flash on 2010-7-30
/**
* Copyright TmskSt ( http://wonderfl.net/user/TmskSt )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/xFVQ
*/
package {
import flash.text.TextField;
import flash.display.Sprite;
public class FlashTest extends Sprite {
public function FlashTest() {
// write as3 code here..
//http://hg.mozilla.org/tamarin-central/file/fbecf6c8a86f/core/XMLParser16.cpp
var str:String = "<>"
var data:XML = XML(<item attr={str} id="
 "></item>);
var field:TextField = this.addChild(new TextField()) as TextField;
field.text = data.toXMLString();
field.autoSize = "left";
var field2:TextField = this.addChild(new TextField()) as TextField;
field2.text = data.@attr.toString() + data.@id.toString();
field2.y = field.height * 2;
}
}
}