I had trace out z array and nothing,but if i trace inside load function is work.
I need to push load BigDB array result to private class variable.
Thanks for any help
here's my code
- Code: Select all
private var z:Array = [];
client.bigDB.loadRange("MyObjects", "ByType", null, "01", "03", 20,
function(MyData:Array):void{
for( var a:int=0;a<MyData.length;a++){
var x:Object = MyData[a];
var y:Object = {
Type :x.Type,
Status:x.Status,
Level :x.Level
}
trace(y); //trace is working here
z.push(y);
}
}
);
trace(z); //not working here