Posted By

chrisaiv on 02/03/09


Tagged

preloader ie7 as3


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

dx0ne
enajenkins
rdub80
tspitzr


AS3: Handle Preloaders in ie7


 / Published in: ActionScript 3
 

URL: http://blog.hydrotik.com/2007/10/01/as3-useful-little-things/

As always, IE7 is stupid

  1. this.addEventListener("enterFrame",onEnterFrame);
  2.  
  3. function onEnterFrame(e:Event) {
  4. loadbar.width = (this.loaderInfo.bytesLoaded/this.loaderInfo.bytesTotal)*200;
  5. if (this.loaderInfo.bytesLoaded == this.loaderInfo.bytesTotal) {
  6. gotoAndPlay(2);
  7. this.removeEventListener("enterFrame", onEnterFrame);
  8. }
  9. }

Report this snippet  

You need to login to post a comment.