loading a swf file using a variable
I have a website that I am using includes on to make life easier. One issue that has come up is that I am also using a flash header on the top of each page. I would like to put the object and embed tags inside my posthead file with a variable name instead of the movie file name and then set the variable on each page.
This seems like it should be simple but I have been unable to get it to work or find information. Any ideas?
Thanks!
bkendall
Junior Poster in Training
69 posts since Jul 2005
Reputation Points: 10
Solved Threads: 0
I actually worked around the issue by using a css layer over the top of the flash movie and making that a cf variable instead. Basically what I wanted to do was call a flash movie using a variable name for example instead of:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="32" height="32" title="test">
<param name="movie" value="/test.fla" />
<param name="quality" value="high" />
<embed src="/test.fla" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="32" height="32"></embed>
</object>
I wanted to use #movieName# instead of test.fla.
bkendall
Junior Poster in Training
69 posts since Jul 2005
Reputation Points: 10
Solved Threads: 0
Yes, I used the attributes tag inside my CustomTags/PostHead: #Attributes.SwfPath# then on the page I called:
For now this works really well, ultimatly it would be nice to go back and use one swf and then pass the elements into it rather than a seperate swf for each header.
bkendall
Junior Poster in Training
69 posts since Jul 2005
Reputation Points: 10
Solved Threads: 0