Search code examples
actionscriptactionscript-2flashvars

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;

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?


Solution

  • try loaderInfo.parameters.video

    Once the swf is loaded/ready you should be able access flash vars through the parameters object.