IE6 AS3 Preloader Events Failing
I recently ran upon an interesting problem with the Flash 9 player/AS3. It seems that when attempting to preload the main timeline of an swf that the ProgressEvent.PROGRESS and loaderInfo.addEventListener(Event.COMPLETE... events do not fire in IE6. I have not been able to duplicate this issue in IE7 or Firefox. I have attempted this using a Document Class and straight code on the timeline with the same results.
My research has lead me to several people experiencing similar problems here: http://www.actionscript.org/forums/showthread.php....
This can provide you with the basic idea of the issues being experienced.
Again, this is preloading a swf's main timeline and not loading an external swf into a loader swf file. Any light that anyone can shed on this issue would be much appreciated. Thanks!
My research has lead me to several people experiencing similar problems here: http://www.actionscript.org/forums/showthread.php....
This can provide you with the basic idea of the issues being experienced.
Again, this is preloading a swf's main timeline and not loading an external swf into a loader swf file. Any light that anyone can shed on this issue would be much appreciated. Thanks!

I have been having this problem as well. If I hear of anything I will give you an update.
Posted by
Donovan Adams |
12:11 AM
Hey man,
I was able to get this working, in IE6
I took your code and modified it a little, I just went with a text preloader on the stage named myTxt.
Removing the event listener at the appropriate time, in my case 50% seemed to allow the video to work without a problem
myVid.addEventListener( ProgressEvent.PROGRESS, onProgress );
//myVid.loaderInfo.addEventListener( Event.COMPLETE, onComplete );
function onProgress(event:ProgressEvent):void{
var prog = Math.floor((event.bytesLoaded/event.bytesTotal)*100);
myTxt.htmlText = "Loading " + prog + "%";
if (prog > 50){
myTxt.htmlText = "";
myVid.play();
myVid.removeEventListener( ProgressEvent.PROGRESS, onProgress);
}
}
function onComplete(){
myTxt.htmlText = "Loaded";
}
Posted by
D. B. Wagner |
9:43 PM