I would try altering your paths - also I would look at the base param. the specifics of what I suggest will vary depending on set up.
using absolute paths may solve your issues. When I am developing with flash I ensure that the flash IDE uses one set of files and my localhost testing uses roughly a mirror of live site I suggest that you try something like firebug's net tab (firefox plugin)as it will show you what files are not found (fullpath in red) when you view your flash project* EG You may have the path to your xml incorrect for your setup - it may be missing a folder - when you inspect this it may well provide you enough information to fix the issue I often set base to '/' or '/flashysite' (you omit the trailing slash with base - unless its ./ or /) - by default base is ./ ie relative to the location of page that embeds the flash or when viewing the flash directly from itself. (this sounds like what is happening) -- * viewing flash locally is different from over http - so I emulate my hosted sites on a local server - S On 20 April 2010 18:28, LK <[email protected]> wrote: > The message I wrote the other day doesn't seem to have been sent. I'll > try again... > > The html file contains the following code in the head-tag: > > <script type="text/javascript" src="otherfiles/swfobject.js"></script> > <script type="text/javascript"> > swfobject.registerObject("myFlashContent", "9.0.0"); > </script> > > and the following (amongst others) in the body-tag: > > <div id="showcase"> > <div class="container"> > <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" > width="400" height="260" id="myFlashContent"> > <param name="movie" > value="siteimages/rotator.swf" /> > <!--<param name="wmode" value="transparent" > />--> > <!--[if !IE]>--> > <object type="application/x-shockwave-flash" > data="siteimages/ > rotator.swf" width="400" height="260"> > <!--<param name="wmode" value="transparent" > />--> > <!--<![endif]--> > <a href="" title=""><img src="" > alt="" /></a> > <!--[if !IE]>--> > </object> > <!--<![endif]--> > </object> > </div> > <!--/container--> > </div> > <!--/showcase--> > > I changed the swf file to the file I have currently on the live site > (the "frame to frame" animation) and it worked. With the new swf file > it just shows a white square where the pictures should be so the swf > file seems to show, but not the pictures. I guess there is something > wrong between the swf file and the xml file when showing in the > browser, but it works just fine when running it from the map (in the > web page map with the other files in different maps, as it is live)... > > The flash file (AS3) linkes to the xml file with this line: > > urlLoader.load(new URLRequest("../otherfiles/showcase.xml")); > > And the xml file looks like this: > > <?xml version="1.0" encoding="UTF-8"?> > > <rotator speed="2"> > <image url="image.jpg" /> > <image url="image2.jpg" /> > </rotator> > > Any ideas or is more info required? > > > On 15 Apr, 20:33, Sam Sherlock <[email protected]> wrote: > > Do you have a link to this example? > > > > or sample code without either of these suggestions are just shots in the > > dark. > > > > You should easily be able to set this up. Its how I use flash/swfobject > all > > the time. > > > > - S > > > > On 15 April 2010 15:27, LK <[email protected]> wrote: > > > > > to that extent. But the pictures are not > > > showing. Since it is working when I play it manually there shouldn't > > > be anything wrong with the files so I wonder if there is something > > > with the SWFObject code that is me > > -- > You received this message because you are subscribed to the Google Groups > "SWFObject" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<swfobject%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/swfobject?hl=en. > > -- You received this message because you are subscribed to the Google Groups "SWFObject" 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/swfobject?hl=en.
