Actionscript and querystring issue
Currently in Flash I am trying to pull in a value based on the querystring. Example..
Html code:
myVideo.swf?video=ThreeGuysOneBall.flv
Flash code:
_textbox1.text = video;开发者_如何学Python
This works in the main flash actionscript, but I need the querystring in a class constructor that I created. How can I pass the querystring to a separated out actionscript file?
try
loaderInfo.parameters.video
Once the swf is loaded/ready you should be able access flash vars through the parameters object.
Ok. I solved my querystring issue. Thanks you George for helping me think about my issue in more detail.
The external actionscript had to have the parent converted to movieclip for me to be able to grab the parameter.
var par:MovieClip = MovieClip(this._parent);
_textbox1.text = par.video;
精彩评论