PDA

View Full Version : display data in the dynamic textfield of a flash movie symbol using javascript



dynamics
03-02-2009, 10:48 PM
need help need to display data in the dynamic textfield of a flash movie symbol using javascript. If the dynamic text field is not in a movie symbol, it works but as soon as i put the dynamic text field in a movie symbol it doesn't work.
Here's my code

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>movie</title>
<script language = "JavaScript"><!--
window.onload =function PassFlash(){
window.document.welcomez.SetVariable("firstname", "hello");
}
//--></script>
</head>
<body bgcolor="#ffffff">
<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="640" height="240" id="welcomez" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="welcomez.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="welcomez.swf" quality="high" bgcolor="#ffffff" width="640" height="240" name="welcomez" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
<a href="#" onClick="PassFlash()">Pass The Variable</a>
</body>
</html>

firstname is variable name of the dynamic textfield.