How do I check if an SWF file loaded?
I want to execute a script when an SWF file has finished loading,
root.addEventListener(Event.COMPLETE, onComplete);
root.addEventListener(ProgressEvent.PROGRESS, onProgress);
function onProgress(e:ProgressEvent):void
{
trace("onProgress");
}
function onComplete(e:Event):void
{
trace("onComplete");
}