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="" xml:lang="en" lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script language = "JavaScript"><!--
window.onload =function PassFlash(){
window.document.welcomez.SetVariable("firstname", "hello");
<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=",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="" />
<a href="#" onClick="PassFlash()">Pass The Variable</a>

firstname is variable name of the dynamic textfield.