leearach2004
Technical User
Hi there hope somone can help this is realy frustrating me now
I am trying to transfer some text from a html form to a flash movie text area, i havent done thi sbefor ebut i have seen loads of examples on the net and they all say they work but i cant get them 2
my flash file has a:
dynamic text area with the var set to myVar
the code fork the html is below
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<html xmlns=" xml:lang="en" lang="en">
<head>
<SCRIPT LANGUAGE=JavaScript>
<!--
function doPassVar(args){
var sendText = args.value;
window.document.myFlash.SetVariable("myVar", sendText);
}
//-->
</SCRIPT>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>javascript_to_flash</title>
</head>
<body bgcolor="#ffffff">
<!--url's used in the movie-->
<!--text used in the movie-->
<p>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=" width="550" height="400" id="myFlash" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="javascript_to_flash.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="javascript_to_flash.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="myFlash" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage=" swLiveConnect="true"/>
</object>
</p>
<form name="form1" id="form1" method="post" action="">
<input type="text" name="sendText" maxlength="45" onChange="doPassVar(this)">
</form>
<p> </p>
</body>
</html>
acording to all the tutorials i have read this should run fine. It doesnt through any errors but after typing into the form text box nothing showsup in the flash files as it is surposed to
hope somone can help me its driving me mad
lee
I am trying to transfer some text from a html form to a flash movie text area, i havent done thi sbefor ebut i have seen loads of examples on the net and they all say they work but i cant get them 2
my flash file has a:
dynamic text area with the var set to myVar
the code fork the html is below
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<html xmlns=" xml:lang="en" lang="en">
<head>
<SCRIPT LANGUAGE=JavaScript>
<!--
function doPassVar(args){
var sendText = args.value;
window.document.myFlash.SetVariable("myVar", sendText);
}
//-->
</SCRIPT>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>javascript_to_flash</title>
</head>
<body bgcolor="#ffffff">
<!--url's used in the movie-->
<!--text used in the movie-->
<p>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=" width="550" height="400" id="myFlash" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="javascript_to_flash.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="javascript_to_flash.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="myFlash" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage=" swLiveConnect="true"/>
</object>
</p>
<form name="form1" id="form1" method="post" action="">
<input type="text" name="sendText" maxlength="45" onChange="doPassVar(this)">
</form>
<p> </p>
</body>
</html>
acording to all the tutorials i have read this should run fine. It doesnt through any errors but after typing into the form text box nothing showsup in the flash files as it is surposed to
hope somone can help me its driving me mad
lee