XML dosyamın kodunu çözme konusunda yardıma ihtiyacım var. Bu şuna benzer:AS3 XML dosyasını çözme
<?xml version="1.0" encoding="UTF-8"?>
<design>
<images>
<cell id="fill" file="cellImages/cellFill"/>
<cell id="top" file="cellImages/cellTop"/>
<cell id="topLeft" file="cellImages/cellTopLeft"/>
<cell id="topRight" file="cellImages/cellTopRight"/>
<cell id="bottom" file="cellImages/cellBottom"/>
<cell id="bottomLeft" file="cellImages/cellBottomLeft"/>
<cell id="bottomRight" file="cellImages/cellBottomRIght"/>
</images>
</design>
ve bu benim kodudur:
function xmlLoaded(event:Event):void
{
_structXML = XML(_structLoader.data);
trace("Data loaded." + _structXML);
var a:XML;
for each(a in _structXML.images.cell)
{
trace("test=" + a);
}
}
o izleri tüm hiçbir veri XML izlenir XML ve 7 "= test" dir.
yardım edin :) boş XML düğümlerini konum (içeriksiz ama sadece nitelikleri) çünkü tüm a
değerleri için boş dizeleri izleri