Hi cricket, I apologize for the big delay....i was stuck with another big problem to be resolved.
I am able to access main_ani.swf throught browser but not using cakephp. If I place main_ani.swf in a html file (not within cakephp), main_ani.swf is displaying fine in the browser. the flash file sits in wamp/www/merry_flowers/webroot/img. merry_flowers is the name of my project that I baked in cakephp. I tried the following with "<param name="src" value="/main_ani.swf">" <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/ swflash.cab#version=7,0,19,0" width="550" height="300" title="main_ani"> <param name="movie" value="/main_ani.swf" /> <param name="src" value="/main_ani.swf" /> <param name="quality" value="high" /> <embed src="/main_ani.swf" quality="high" pluginspage="http:// www.macromedia.com/go/getflashplayer" type="application/x-shockwave- flash" width="550" height="300"></embed> but the flash animation is not displaying. After the page loads in the browser, main_ani.swf is taking forever to load. It says "1 item remaining. waiting for http://localhost/merry_flowers/pages/test......." "> That would suggest you haven't loaded the FlashHelper." How do I load Flash Helper? thank you so much for the help! :) cricket <[email protected]> wrote: > 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
