Avatar of coolguy2009
coolguy2009
 asked on

Getting javascript to pass value to actionscript

I need help loading values into a dynamic textfield embedded in movie clip symbol of a flash
movie. My code works if the dynamic text field is not in a movie
clip symbol. But as soon as i put the dynamic textfield in a movie
clip it doesn't work. Here's my code.

<title>movie< /title>
<script language = "JavaScript" ><!--
window.onload =function Flash(){
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-44455354000 0"
codebase="http://fpdownload. macromedia. com/pub/shockwav e/cabs/flash/ s
wflash.cab#version= 7,0,0,0" width="640" height="240" id="welcomez"
align="middle" >
<param name="allowScriptAc cess" 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.macromed ia.com/go/ getflashplayer" />
</object>

</body>
</html>

Name is the name of the movieclip.

firstname is the variable name of the dynamic textfield.

i tried _root.Name.firstnam e but it doesnt work.
JavaScript

Avatar of undefined
Last Comment
Roonaan

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Roonaan

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck