1 Reply Latest reply on Oct 9, 2007 9:10 AM by peterent

    Loader doesn't fire Event.COMPLETE event

    tagyro
      package
      {
      import flash.display.Loader;
      import flash.display.MovieClip;
      import flash.events.Event;
      import flash.net.URLRequest;

      public class Thumbnail extends MovieClip
      {
      function Thumbnail(file:String):void {
      var loader:Loader=new Loader();
      loader.load(new URLRequest(file));
      loader.addEventListener(Event.COMPLETE,done);
      function done(evt:Event):void {
      addChild(loader);
      }
      }
      }
      }

      The Complete event never get's fired. Am I doing something wrong?