1

How to get all properties from my Object ?

My object is:

var myObj: Object = {
    stringOne: "One",
    stringTwo: "Two",
    intOne: 1,
    intTwo: 2
}
c4086478
  • 23
  • 4
  • possible duplicate of [How can I get list of properties in an object in Actionscript?](http://stackoverflow.com/questions/372317/how-can-i-get-list-of-properties-in-an-object-in-actionscript) – Bono Jan 19 '15 at 18:20

1 Answers1

3

Try with this:

for(var key:* in myObj) {
    trace (key + ':' + myObj[key]);
}
GabrielAtan
  • 410
  • 4
  • 11