Brian is right. You need to change the path to be relative to the root of your site, not the page.
So change this: media/jpgrotator.swf to this: /media/jpgrotator.swf In all instances and it should work. Also, if you are loading other swfs, images, text files, etc, from inside flash, those paths will need to be relative to the root as well. Cheers, Adam brian wrote: > On Sun, Feb 22, 2009 at 2:34 PM, Bankai<[email protected]> wrote: > >> My flash movies are not loading in cakephp. All the files are located >> in the webroot directory. >> In the past I use the following (valid xhtml code) to embed flash: >> <!--========= Flash Banner Starts HERE ===============--> >> <div id="rotator"> >> <script type="text/javascript"> >> AC_FL_RunContent( >> "type","application/x-shockwave-flash", >> "data","media/jpgrotator.swf", >> "width","742px", >> "height","275px", >> "movie","media/jpgrotator", >> "quality","high", >> "wmode","transparent" ); >> </script> >> <noscript> >> <div> >> <object type="application/x-shockwave- >> flash" data="media/jpgrotator.swf" width="742px" height="275px"> >> <param name="movie" value="media/ >> jpgrotator.swf" /> >> <param name="quality" value="high" /> >> <param name="wmode" >> value="transparent" /> >> </object> >> </div> >> </noscript> >> </div> >> <!--========= Flash Banner ENDS HERE ===============-- >> >> Web URL: http://www.hld-hoteles.com/ >> >> In the body I would use the script: AC_RunActiveContent.js. >> http://www.hld-hoteles.com/js/AC_RunActiveContent.js >> >> When I run the swf directly it runs fine: >> http://www.hld-hoteles.com/media/jpgrotator.swf >> >> I am using xml to load the images: >> http://www.hld-hoteles.com/media/jpgrotator.xml >> When I right click on the banner I can tell that the flash is loading, >> but the images are not showing up. >> I wanna know why the images are not loading. >> > > Well, I'd guess that your image paths are wrong. > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
