Grab the SWFObject code from here: http://blog.deconcept.com/swfobject/ and then put it in your template's /js folder.
Make sure you call the js from the header of your template.
Here is the code I am using to pull in the flash, using an extra field:
Code:
{if $Enable_Extra_Field_1 eq 1}{if $link_field1 neq ""}
<!-- this is the youtube embedded file -->
<div id="flashcontent-{$link_shakebox_index}">
This text is replaced by the Flash movie.
</div>
<script type="text/javascript">
var so = new SWFObject("{$link_field1}", "mymovie", "425", "350", "7", "#FFFFFF");
so.write("flashcontent-{$link_shakebox_index}");
</script>
{/if}{/if}
This will only work if the correct part of the provided embed code is used, eg
Code:
http://www.youtube.com/v/FmSIsKckAzE




Linear Mode

