Reflecting actionscript objects
Posted
by Chin
on Stack Overflow
See other posts from Stack Overflow
or by Chin
Published on 2010-04-15T14:03:45Z
Indexed on
2010/04/15
14:13 UTC
Read the original article
Hit count: 247
actionscript-3
Is it possible to reflect an object in actionscript and get the property names back in the order they are positioned in the class? I have tried the following
var reflectionObject : Object = ObjectUtil.getClassInfo(obj);
var propsArray : Array = reflectionObject.properties;
(orders alphabetically)
var typeInfo:XML = describeType(obj)
(Not sure what order this is)
© Stack Overflow or respective owner