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] on behalf of timgerr Sent: Mon 10/11/2008 23:01 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 ______________________________________________________________________ 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. ______________________________________________________________________
<<winmail.dat>>

