Embedding Flash many tries, help!

Hi,

I´m having a real trouble to embed a flash file(swf) into a tpl

First I´ve tried to embed within a normal html file like this

<object type=“application/x-shockwave-flash” data=“preloader.swf” width=“100%” height=“100%”>
<param name=“movie” value=“preloader.swf” />
<param name=“quality” value=“high” />
<img src=“flash.png” width=“100%” height=“100%” alt="" />
</object>

it works on the html file but in the tpl it doesn´t show

another way to do the embed is with xhtml and swfobject.js

like this

<script type=“text/javascript” src=“swfobject.js”></script>
<script type=“text/javascript”>
swfobject.embedSWF("preloader.swf ", “miFlash”, “100%”, “100%”, “10.0.0”);
</script>
<div id=“miFlash”>Alt Text</div>

this is a pretty interesting thing to do since it kind of works as css thanks to javascript, and again it works with an html file but with tpl no can do, it only shows the “Alt Text”.

since I’m using oxid for a private sales store with the azure template I want the flash file to appear on the login.tpl (private sales folder), for my second attempt with swfobject.js I´ve using the javascript few lines on the base.tpl, and then in the login.tpl file I put the div id=“miFlash” lines.

I would really appreciate your help on this.

thanks in advance!

“The problem is that The flash movie does not display on the the page even though the swf movie perfectly works if I open it in the flash movie player from within the theme folder.”

Nothing is showing up because, really, your template file is an include. The Flash movie is actually (effectively, really) embedded . Everything is relative to it.

Knowing this, you can change your paths.

1.Now where you embed your movie (flash), put the complete domain url (http://blabla) to the swf file.
2. In your swf file, also put the absolute url (starting with http…) to the xml file.
3. In your xml file, also put the absolute url (starting with http…) to images.

You shouldn’t have permissions problems with such setup, as everything is in the same domain, and your xml and swf files are in a directory accessible from the web.
that should work.

Thanks a lot! it works! I just put everything on the root folder