Well the question is quite simple but I somehow can't figure it out.
For example I have string variable ts. After my loader loads image in movieclip instance i want to change ts value to something. The problem is - ts value isn't changing on my doneLoad function. Here's the code
var ts:String = "loading";
var imgload = new Loader();
imgload.load(new URLRequest("http://images.op.com/cards/up1x3941204.jpg"));
imgload.contentLoaderInfo.addEventListener(Event.COMPLETE,doneLoad);
function doneLoad(e:Event):void {
ts = "done";
}
trace(ts); // returns "loading"
What's the problem?