2 a.m. and my eyes are crusting over...
I've done some quick looking around and have been led to believe this won't work. All I want to do is show the progress bar component while a rather large xml file is loading. The XML loads just fine but it's as if the trace doesn't happen until the load is complete. What am I missing?
Here's what I've got so far. I've got an instance name "progressBar on the stage.
Actionscript Code:
var xmlResults:XML;
var xRequest:URLRequest=new URLRequest("detail.xml");
var xmlLoader:URLLoader = new URLLoader();
progressBar.source = xmlLoader;
progressBar.mode = ProgressBarMode.POLLED
xmlLoader.load(xRequest);
progressBar.addEventListener(ProgressEvent.PROGRESS, progressHandler);
progressBar.addEventListener(Event.COMPLETE, progressComplete);
function progressHandler(event:ProgressEvent):void{
trace("Loading");
}
function progressComplete(event:Event):void{
trace("Loading complete");
}
As always, thanks!