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 { var loadedText:String = URLLoader(e.target).data; } } }
Related Scripts with Example Source Code in same category :