views:

27

answers:

0

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:

enter code here<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"&gt;&lt;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!