public class Main extends Sprite { public function Main() { var urlLoader:URLLoader = new URLLoader( ); // Registration order determines execution order urlLoader.addEventListener(Event.COMPLETE, completeListenerA); urlLoader.addEventListener(Event.COMPLETE, completeListenerB); urlLoader.load(new URLRequest("someFile.txt")); }
private function completeListenerA (e:Event):void { trace("Listener A: Load complete"); }