8 Replies Latest reply on May 14, 2007 9:27 AM by Rothrock

    Loader event not firing - Actionscript 3

    nick mc Level 1
      Hi,

      I have found that Event.COMPLETE doesn't get dispatched in IE 6 or 7 on a PC, but does in Firefox and the Flash authoring environment.

      I would like the swf to declare when it has completed loading. The code is below. SImply put it into frame 1 of the main timeline and publish it.

      In Flash and Firefox it will say 'Initiated' and 'Completed'. In IE it will just say 'Initiated'.

      Could somebody give it a try - it's very confusing.

      Thanks.



      var debugText:TextField = new TextField()
      addChild(debugText)

      var onEvent = function (event:Event):void
      {
      trace(event.type)
      debugText.text += event.type + "\r"
      }


      loaderInfo.addEventListener(Event.INIT, onEvent);
      loaderInfo.addEventListener(Event.COMPLETE, onEvent);