how to order dictionary object
hi,
i have created dictionary object below. when trace, displaying in different order..
mydict["1"] = {name:"one"};
mydict["2"] = {name:"two"};
mydict["3"] = {name:"three"};
mydict["4"] = {name:"four"};
mydict["5"] = {name:"five"};
for (var key:object in mydict)
{
trace("key ------- ",mydict[key].name)
}
output
key ------- two
key ------- four
key ------- five
key ------- three
key ------- one
any suggestion on how correct order.
thanks in advance
@flash
test no problem
More discussions in ActionScript 3
adobe
Comments
Post a Comment