Reputation: 23
How to get all properties from my Object ?
My object is:
var myObj: Object = {
stringOne: "One",
stringTwo: "Two",
intOne: 1,
intTwo: 2
}
Upvotes: 1
Views: 367
Reputation: 410
Try with this:
for(var key:* in myObj) {
trace (key + ':' + myObj[key]);
}
Upvotes: 3