On Thu, Apr 28, 2011 at 11:47 AM, varai <[email protected]> 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 [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
