Thursday, April 28, 2011

Re: how to embed swf animation in home.ctp of my cakephp project

On Thu, Apr 28, 2011 at 11:47 AM, varai <vaanipala@gmail.com> wrote:
> Hi
>
> "Not working" means no flash animation is displaying.
>
>> Can you access main_ani.swf directly in your web browser?
> Yes, I can.

Using what path? Is the flash file sitting in app/webroot? Try:

/main_ani.swf

(note the slash)

Also, your markup gives the path for the embed tag but not the object.
You need to realise that embed and object are two different things.
Some browsers use one and some the other. The object tag requires
param tags inside it which have the same values as the attributes of
the embed tag. Notice that you have not included the path to the
flash file for the object tag.

<param name="src" value="/main_ani.swf">

>> I haven't read that tutorial, but I just skimmed it, and it doesn't say to call $this->renderSwf; it says to call $flash->renderSwf.
> Yes, I had tried $flash->renderSwf earlier, But i got the following
> error:
> Notice (8): Undefined variable: flash [APP\views\pages\home.ctp, line

That would suggest you haven't loaded the FlashHelper.

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate