you are using a mx:Form. So from the docs: creationCompleteBroadcast when the object has finished its construction, property processing, measuring, layout, and drawing. At this point, the component may not be visible depending on its visible property, even though it has been drawn. The event object's target property contains a reference to the component that triggered the event. The event object's type property contains the name of the event, creationComplete.
event.target is a Form On Tue, Nov 11, 2008 at 3:03 AM, Jim Hayes <[EMAIL PROTECTED]> wrote: > getQualifiedClassName() in flash.utils should tell you what the object > is, I think, and to pass in any completely unknown object type your > parameter should be typed as "object". > If you only expect a few types to be passed as a parameter then I'd just > test them with the "is" keyword and then cast the object as such. Or a cast > "as" would return null if it failed. > I'm not all that sure what you're trying to achieve though, I have to > admit, so this could be a bit off from what you're looking for. > > > -----Original Message----- > From: [email protected] <flexcoders%40yahoogroups.com> on behalf > of timgerr > Sent: Mon 10/11/2008 23:01 > To: [email protected] <flexcoders%40yahoogroups.com> > 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 > > __________________________________________________________ > This communication is from Primal Pictures Ltd., a company registered in > England and Wales with registration No. 02622298 and registered office: 4th > Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. > VAT registration No. 648874577. > > This e-mail is confidential and may be privileged. It may be read, copied > and used only by the intended recipient. If you have received it in error, > please contact the sender immediately by return e-mail or by telephoning > +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its > contents to any person. > This email has been scanned for Primal Pictures by the MessageLabs Email > Security System. > __________________________________________________________ > > -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation [EMAIL PROTECTED],

