You are viewing the archives of the original Pixelfumes blog. This blog is no longer maintained. All of the content available on this site is available on the new Pixelfumes blog in addition to all of our new posts! Visit: http://blog.pixelfumes.com.

« Home | Adobe Kuler Swatch Cards » | Jumpeye V3 Components Review » | ActionScript 3 Files Using FLVPlayback Take Over t... » | Flash-based Homestar Runner Rejects TV to Stay Tru... » | Flash CS3 Kuler Panel Video Demo » | Flash CS3 Kuler Panel Updates » | Flash CS3 Kuler Panel Updates Coming » | Kuler Panel for Flash CS3 » | Adobe Kuler Apollo Edition Released » | 12-Line Missile Code and RaidenX » 

Friday, July 13, 2007 

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!

I have been having this problem as well. If I hear of anything I will give you an update.

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";
}

Post a Comment