After a quick test, it seems to be working.
Now just for my culture, concerning the implementation : wouldn't have it been simpler to use the setTimeout function rather than a Timer ? :
So this :
Code:
setTimeout(function():void {
moduleInfo.load(applicationDomain, securityDomain);
}, 0);
Instead of :
Code:
var timer:Timer = new Timer(0);
var timerHandler:Function = function(event:TimerEvent):void {
timer.removeEventListener(TimerEvent.TIMER, timerHandler);
timer.stop();
timer = null;
moduleInfo.load(applicationDomain, securityDomain);
}
timer.addEventListener(TimerEvent.TIMER, timerHandler, false, 0, true);
timer.start();
Any difference between the two forms ?
Thanks for your time !