[英]XML attribute access in AS3
我有一個xml文件(用URLLoader加載),如下所示:
<?xml version="1.0" encoding="UTF-8"?>
<root>
<localizations>
<words>
<Brand us="Brand Here"></Brand>
</words>
</localizations>
<world squareunits="100"></world>
</root>
一旦加載,使用E4X或純AS3訪問world.squareunits的最快方法是什么?
var xml : XML = new XML( yourStringHere );
trace( xml.world.@squareunits );
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.