the base param can be used to fix this its part of the standard object/embed
stuff
swfobject supports base param in both static & dynamic methods
so for example if you directory set up is like so:
public_html/index.html <- the page embedding the swf
/flash
/img
/gallery.xml
/test.swf
and your flash when embedded in you page is not being able to load gallery
img then you should add ./flash as base param
this would fix paths that are loading files like:
/img/my.png
/gallery.xml
when they should be
/flash/img/my.png
/flash/gallery.xml
use the generator (especially if you new to flash/swfobject) enter ./flash
- use firebug or a tool that allows you to monitor http activity showing
the paths of whats loaded
- S
2009/10/27 Forrest <[email protected]>
>
> I have been using swfobject for some time now and I always seem to
> have one recurring issue that I could use some insight on.
>
> If I create a page with a swfobject and the swf file is in the same
> directory, I can always get it to load properly. However, if I have
> the swf file and in some cases the .xml file and related images in
> another directory, I don't seem to be able to link the content to the
> page properly.
>
> How do I set the parameters to bring those files in correctly?
>
> For example if I have the swf file, .xml file and images folder in the
> a directory called flash and my html page is in the root directory I
> would do my code like this:
>
> <object id="myId" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
> width="300" height="120">
> <param name="movie" value="flash/test.swf" />
> <!--[if !IE]>-->
> <object type="application/x-shockwave-flash"
> data="flash/test.swf" width="300" height="120">
> <!--<![endif]-->
> <div>
> <h1>Alternative content</h1>
> <p><a href="http://www.adobe.com/go/
> getflashplayer"><img src="http://www.adobe.com/images/shared/
> download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /
> ></a></p>
> </div>
> <!--[if !IE]>-->
> </object>
> <!--<![endif]-->
>
> But this somehow breaks the link. Are there other parameters that I
> need to enter somewhere to get this to link properly?
>
> Thanks!
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---