Answer the question
In order to leave comments, you need to log in
How to monitor script loading progress on AS3?
Good day!
There is such a modest script (AS3):
Actually, I need to track the loading process of this script (0% loaded, 50%..) with trace output, for example. How to do it?
Answer the question
In order to leave comments, you need to log in
In general, it should be
var reqeust: URLRequest = new URLRequest("https://toster.ru/q/219928");
var loader: URLLoader = new URLLoader();
loader.addEventListener(ProgressEvent.PROGRESS, function(e: ProgressEvent): void {
trace(e.bytesLoaded + "/" + e.bytesTotal);
});
loader.load(request);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question