Re: [flexcoders] Any other alternative to find the type of an object (object is oftype)

2008-09-24 Thread Ralf Bokelberg
I don't think this is possible, unless you put the class name in a string property of your object. If you want to use introspection (eg. is, instanceof, describeType), the class itself has to be available, otherwise there is nothing to introspect really. Cheers Ralf. On Wed, Sep 24, 2008 at

Re: [flexcoders] Any other alternative to find the type of an object (object is oftype)

2008-09-24 Thread Josh McDonald
getFullyQualifiedClassName(instance); -Josh On Wed, Sep 24, 2008 at 5:11 PM, Ralf Bokelberg [EMAIL PROTECTED]wrote: I don't think this is possible, unless you put the class name in a string property of your object. If you want to use introspection (eg. is, instanceof, describeType), the

Re: [flexcoders] Any other alternative to find the type of an object (object is oftype)

2008-09-24 Thread Ralf Bokelberg
Hi Josh Does it work without the class beeing linked to the project? Is it a compiler instruction? Cheers Ralf. On Wed, Sep 24, 2008 at 9:19 AM, Josh McDonald [EMAIL PROTECTED] wrote: getFullyQualifiedClassName(instance); -Josh On Wed, Sep 24, 2008 at 5:11 PM, Ralf Bokelberg [EMAIL

Re: [flexcoders] Any other alternative to find the type of an object (object is oftype)

2008-09-24 Thread Josh McDonald
You can't have an object of a type that's not part of the VM at runtime, but it doesn't include any classes into the swf of the class making that call. It returns a String, which you can then use with getDefinitionByName() without ever knowing (or referencing) the Class object. -Josh On Wed, Sep

Re: [flexcoders] Any other alternative to find the type of an object (object is oftype)

2008-09-24 Thread Ralf Bokelberg
Of cause. This makes perfect sense. We don't want to reference the class. Cheers Ralf. On Wed, Sep 24, 2008 at 10:25 AM, Josh McDonald [EMAIL PROTECTED] wrote: You can't have an object of a type that's not part of the VM at runtime, but it doesn't include any classes into the swf of the class

Re: [flexcoders] Any other alternative to find the type of an object (object is oftype)

2008-09-24 Thread Naaga Maniccam
Hi Guys, sorry for interrupting u , i need help , how to connect flex to mysql, could u please help in this regard Cheers,, NAAGAMANICCAM.T - Original Message From: Ralf Bokelberg [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, 24 September, 2008 2:54:31 PM

Re: [flexcoders] Any other alternative to find the type of an object (object is oftype)

2008-09-24 Thread Michael Schmalle
Naaga, Try posting a new thread (with new title), your answer will never get heard here other than adding a question that is irrelevant to this current thread. Mike On Wed, Sep 24, 2008 at 6:08 AM, Naaga Maniccam [EMAIL PROTECTED]wrote: Hi Guys, sorry for interrupting u , i need help ,

RE: [flexcoders] Any other alternative to find the type of an object (object is oftype)

2008-09-23 Thread Tracy Spratt
Have you looked into describeType()? I understand it is 'expensive' from a computational perspective, but might avoid the problem you are having. It returns xml describing the object. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On