Report abuse

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
      //create a new loader
      this.loader = new Loader();
      //tell the loader where to find the picture
      this.loader.load("http://somewebsite.com/image.png");
      //when the loader finishes loading, call the function 'onLoadComplete'
      this.loader.addEventListener(Event.COMPLETE, onLoadComplete);

      //===================================================
      public function onLoadComplete(event:Event):void { //adds the image to a movieclip container
      //===================================================
       //create movie clip container
       var thumbnail:MovieClip = new MovieClip();
       //add image to container
       thumbnail.addChild(this.loader);
      }