Flash and Javascript (VERY URGENT)
Hi all,
How can I make javascript write out on the same html page flash text variables. the text fields in flash are called var1 and var2 and here is the code im using,
This is the javascript code which calls the variables out of the flash movie which is embeded beneath
<SCRIPT LANGUAGE='JavaScript'>
<!--
function gogogo(){
var forward1 = Mars Lander.var1
document.write(forward1);
}
-->
</SCRIPT>
This would be the button which activates the javascript code
<INPUT type="button" name="text" onChange="gogogo()" ><br>
Below is the embedded flash movie
<object name="mars" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="550" height="400" id="Mars Lander" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="Mars Lander.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="Mars Lander.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="Mars Lander" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
Please help quickly!
Thanks very much!
__________________
Apocolypse2005, I'm a programmer - of sorts.
|