the file loads but the progress of the load isn't tracing.
Code:
var urRequest:URLRequest = new URLRequest('http://www.focusonmedia.com/vqs/as3/externaltext.txt');
var ulLoader:URLLoader = new URLLoader();
ulLoader.addEventListener(ProgressEvent.PROGRESS,loaderProgressHandler);
ulLoader.addEventListener(Event.COMPLETE,loaderCompleteHandler);
function loaderProgressHandler(evt:ProgressEvent):void {
var bLoaded:Number = evt.target.bytesLoaded;
var bTotal:Number = evt.target.bytesTotal;
trace(bLoaded + '/' + bTotal + 'has loaded');
}
function loaderCompleteHandler(evt:Event):void {
trace(evt.target.data);
}
ulLoader.load(urRequest);
How have you tested this?
If only in the Flash IDE, then it's because the txt file is loaded too quickly and it doesn't have time to register the progress.
The code seems fine, so I think that's the problem.
If you want to test how it would look on a slow connection you can use a webproxy (for instance Charles: http://www.charlesproxy.com/ ) to throttle and simulate a different download speed.