Try event.target.className. Tracy
________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Fotis Chatzinikos Sent: Monday, November 10, 2008 6:05 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Question on how to find out what something is. Something is an event, check the docs... It can be a MouseEvent, ClickEvent, ListEvent, and so on... A generic approach is declaring the function: init (event:Event) but only if you do not know the particular event class, you can then get access to your object (one in your example) via target (usually) or currentTarget... hope it helps ;-) On Tue, Nov 11, 2008 at 1:01 AM, timgerr <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: 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 -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ,