as3.0 xml set attribute

引用:http://zhidao.baidu.com/question/157215493.html

var item:XML=<item />
item.@name="demo";
trace(item.toXMLString());
posted @ 2013-01-02 13:09  镇水古月  阅读(150)  评论(0编辑  收藏  举报