[thelist] setting variables that flash can use...

John Corry webshot at neoncowboy.com
Sun Dec 17 21:38:12 CST 2000


I have a flash movie that serves as the navigation tool for a 5 page
website. The
movie is about 120K. Different movie clips are advanced to labeled frames,
depending on which page the viewer is at, I set that up with a
?var=value appended to the movie src attribute in the HTML...like this:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.ca
b#version=4,0,2,0" width="740" height="272">
<param name=movie value=images/va_final_home_face.swf?pageVar=vision>
<param name=quality value=high>
<embed src="images/va_final_home_face.swf?pageVar=vision" quality=high
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_
Version=ShockwaveFlash" type="application/x-shockwave-flash" width="740"
height="272"></embed>
</object>

My question is this:
Can I use javascript to set that variable's value, and make that variable
available to the movie? It matters, because since the src attribute is
different on each page, it forces the browser to reload from the server for
every page...senseless since its the same file.

What JS sets the value?

thanks,
John





More information about the thelist mailing list