1

我有一个 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的最快方法是什么?

4

1 回答 1

4
var xml : XML = new XML( yourStringHere );
trace( xml.world.@squareunits );
于 2009-12-17T19:39:49.910 回答