>  <mx:Form id="One">
>  My question is what is One, what kind of component or object is it.

It is an instance of the class mx.containers.Form, as specified by the 
following entry in the file frameworks/mxml-manifest.xml

        <component id="Form" class="mx.containers.Form"/>

Gordon Smith
Adobe Flex SDK Team


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of timgerr
Sent: Monday, November 10, 2008 3:02 PM
To: [email protected]
Subject: [flexcoders] Question on how to find out what something is.


So I have this form
<mx:Form id="One">
<mx:FormItem label="First">
<mx:TextInput id="first"/>
</mx:FormItem>
</mx:Form>

so I have this function
init():void
{
trace(One.getChildren().length)
}

My question is what is One, what kind of component or object is it.
This is what I mean;

I take the same form and add a creationcomplete to it:
<mx:Form id="One" creationcomplete="init(somthing)">
<mx:FormItem label="First">
<mx:TextInput id="first"/>
</mx:FormItem>
</mx:Form>

In the above example I pass something into init (init(something), what
is that something? I am not sure how to declare it?

init(this:NotSureWhatItIs)
{
trace ???
}

If I do an object I do not have access to getChildren().

What do I do?
Thanks for the help
timgerr

Reply via email to