AS3에서 XML 속성 액세스
-
20-09-2019 - |
문제
다음과 같이 보이는 XML 파일 (urlloader로로드)이 있습니다.
<?xml version="1.0" encoding="UTF-8"?>
<root>
<localizations>
<words>
<Brand us="Brand Here"></Brand>
</words>
</localizations>
<world squareunits="100"></world>
</root>
로드되면 가장 빠른 액세스 방법은 무엇입니까? 세계 .squareunits E4X 또는 순수한 AS3로?
해결책
var xml : XML = new XML( yourStringHere );
trace( xml.world.@squareunits );
제휴하지 않습니다 StackOverflow