Events and Event Handling for URLLoader : URLLoader : Network Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Network » URLLoader »

 

Events and Event Handling for URLLoader


 

package {
  import flash.display.*;
  import flash.net.*;
  import flash.events.*;

  public class Main extends Sprite {
    public function Main(  ) {
      var urlLoader:URLLoader = new URLLoader(  );
      urlLoader.addEventListener(Event.COMPLETE, completeListener);
      urlLoader.load(new URLRequest("someFile.txt"));
    }

    private function completeListener (e:Event):void {
      trace("Load complete");
    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Network
» URLLoader