PDA

View Full Version : var from html help



trec-r
March 11th, 2009, 04:38 AM
I am trying to capture a var passed from the html to the swf. I have read website after website but still can not get it to work. Are there in common mistakes while trying to do this that I might be overlooking.

/*---AS3 Code Snip---*/
var fromHTML:String = new String;
fromHTML = this.loaderInfo.parameters.textValue
testText.text = fromHTML


<-!-html Code Snip--->
<param name="movie" value="flash/test.swf?textValue=it%20worked" />

Thanks
Richie