First of all, welcome to the forums Blu.
Now, the way I would do it (this is off the top of my head):
1. Create a small snippet to output the necessary HTML with a parameter to set which file is to be loaded.
2. Create a TV with an @INHERIT binding so you can load different SWF with the snippet, but default to a standard header if required.
Now, I don’t use much flash but I think the snippet would run along the lines of (might need tweaking
):
$file = (isset($file)) ? $file : ''; // insert a default path to the swf file between the ''
$width = (isset($width)) ? $width : 468; //default width is 468 px
$height = (isset($height)) ? $height : 60; //default height is 60 px
$output='';
$output.= '
<object type="application/x-shockwave-flash" data="'.$file.'" width="'.$width.'" height="'.$height.'">
<param name="movie" value="'.$file.'" />
</object>
';
return $output;
You can use this snippet using the following in your page (if the snippet is called flash):
[!flash? &file=`assets/flash/file.swf` &height=`468` &width=`60` !]
The TV would just use the snippet call but would allow for different files to be loaded as and when required.
Please note, I haven’t tested this (I’ve typed it straight into the post) but should hopefully give you a start.
Hope that helps, Garry
edit: i updated my original snippet code to a xhtml-compliant method of calling the swf file.