I have an object that gets properties added in this sequence.
Home
School
living
status
sound
Memory
When I loop through the object they don’t come out in that sequence. How do I get them to come out in this order.
data is the object
for (var i:String in data)
{
trace(i + ": " + data[i]);
}
Is there a way to sort it maybe?
The only way to sort the order that you can access properties is manually. Here is a function I have created for you to do just that:
Trial: