XMLファイルの場合、0、1、2などではなく、設定したキーを使用して特定の値を参照できる配列をactionscriptで作成したいと思います。
buildings = myParsedObjectFromXML;
var aBuildings = new Array();
for ( building in buildings ) {
var currentBuilding = buildings[building][0];
var key:String = currentBuilding.buildingCode;
aBuildings[key][property1] = currentBuilding.someOtherValue;
aBuildings[key][property2] = currentBuilding.aDifferentValue;
... etc
}
後日、次のようにデータにアクセスできるようにします。
// building description
trace( aBuildings[BUILDING1][property2] );
しかし、上記は機能していません-私は何が欠けていますか?