2 Replies Latest reply on Dec 17, 2008 4:26 PM by 123qweads

    How Can I count Object fields?

    123qweads Level 1
      Hi...
      I've a problem with Object type...
      How Can I count the number of fields of a generic Object??

      For exemple this object has 3 fields...

      Var sam:Object = new Object;
      sam['age']= '2'
      sam['name']= 'b'
      sam['hair']= 'x'

      Object has not a function like .length or similar...
      maybe there is anithig like NumberFields(myObj:Object):int ??...
      some advices? ^__^

      thanks soooooooooo much! : D