PDA

View Full Version : Introspection


ysbelman
09-25-2007, 06:21 PM
Is there a way to introspect components such as a Form, to find out what text is set in its TextInput children? The reason I want to introspect is because I would like at run time to build a snapshot of the data in a form and be able to send it over as an xml or json to the backend. I've started looking at describeType() method, but it doesn't give me any values, and it doesn't traverse any children.

drkstr
09-25-2007, 06:40 PM
It only works on dynamically created variables, such as on a dynamic Object or a class declared with the 'dynamic' keyword.

Best Regards,
...aaron

dr_zeus
09-25-2007, 09:19 PM
Are you creating the form in MXML? Why not set the id on each item so that you can refer to it directly?