AS3: loading an external txt file


/ Published in: ActionScript 3
Save to your folder(s)



Copy this code and paste it in your HTML
  1. private function loadDictionary(path:String):void {
  2. loader = new URLLoader();
  3. loader.addEventListener(Event.COMPLETE,dictionaryLoaded);
  4. loader.load(new URLRequest(path));
  5. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.