MysticalMatt517
03-27-2010, 06:37 AM
I'm trying to pass a FlashVar that will populate a dynamic text field.
I have created a dynamic text box and named the instance "textbox".
In the first frame I've added the following line of actionscript:
textbox.text = var1;
I've added the following to my HTML file:
<param name=FlashVars value="var1=testing">
<embed src="test.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="test" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" FlashVars="var1=testing" />
When I load the HTML file the movie displays "undefined" which tells me that somehow that variable isn't making it from the HTML file into the swf.
What am I doing wrong?
I have created a dynamic text box and named the instance "textbox".
In the first frame I've added the following line of actionscript:
textbox.text = var1;
I've added the following to my HTML file:
<param name=FlashVars value="var1=testing">
<embed src="test.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="test" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" FlashVars="var1=testing" />
When I load the HTML file the movie displays "undefined" which tells me that somehow that variable isn't making it from the HTML file into the swf.
What am I doing wrong?