1 person found this helpful
Since you are not supplying any access modifier, your variable will be defaulted to protected. Unlike Java action script reflection is not able to perform on private vars. You need to have them public.
Or expose at least a public accessor to show up in describeType().
ok. i've changed it and now my class has accessors and the result is:
<type name="testproject.test::TestClass" base="Object" isDynamic="false" isFinal="false" isStatic="false">
<accessor name="a" access="readwrite" type="String" declaredBy="testproject.test::TestClass"/>
<accessor name="b" access="readwrite" type="Array" declaredBy="testproject.test::TestClass"/>
i see the accessors but not the variables.
is this how it should work? can i only see variables if they are public? is there another way to see the private ones?
i was trying to perform deep copy...
(i know about ObjectUtil.copy, i wanted something general in which i don't have to register all related classes)
Depending on how you declare them they will show up or not on different sections of the xml generated by describeType. I looking at an xml is not your final goal here. Can you share some more details so I have a better picture?