flash on 2011-9-11
♥0 |
Line 24 |
Modified 2011-09-12 14:19:03 |
MIT License
archived:2017-03-20 15:51:52
ActionScript3 source code
/**
* Copyright andrewexex886 ( http://wonderfl.net/user/andrewexex886 )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/UL2L
*/
package {
import flash.text.TextField;
import flash.events.Event;
import flash.net.URLRequest;
import flash.net.URLLoader;
import flash.display.Sprite;
public class FlashTest extends Sprite {
private var xml:XML;
private var TF:TextField;
public function FlashTest() {
TF=new TextField();
TF.text="123";
addChild(TF);
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, loadXML);
loader.load(new URLRequest("Dictation_Machine_Vocabulary.xml"));
}
private function loadXML(e:Event):void
{
TF.text="456";
xml = new XML(e.target.data);
}
}
}