describeType tends to be slow the more complex your class and inheritance chain gets.
Dirk. > -----Original Message----- > From: [email protected] > [mailto:[EMAIL PROTECTED] On Behalf Of Ralf Bokelberg > Sent: Wednesday, July 19, 2006 12:29 PM > To: [email protected] > Subject: Re: [flexcoders] Class instance inheritance check > > Would flash.util.describeType be an option? > Cheers, > Ralf. > > On 7/19/06, Sergey Kovalyov <[EMAIL PROTECTED]> wrote: > > Hi All! > > > > Imagine, I have the Class instnace as a function parameter. > > > > function myFunction(clazz : Class) { > > ... > > } > > > > How to check that clazz is inherited from some other class (e. g. > > UIComponent). Sure, I can create instnace. > > > > if (new clazz() is UIComponent) { > > ... > > } > > > > But this approach seems not good as for me. Any ideas? > > > > Sergey. > > > > > > > > -- > > Flexcoders Mailing List > > FAQ: > http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > > Search Archives: > > http://www.mail-archive.com/flexcoders%40yahoogroups.com > > Yahoo! Groups Links > > > > > > > > > > > > > > > > > > > -- > Ralf Bokelberg <[EMAIL PROTECTED]> Flex & Flash > Consultant based in Cologne/Germany > > > ------------------------ Yahoo! Groups Sponsor > --------------------~--> > See what's inside the new Yahoo! Groups email. > http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM > -------------------------------------------------------------- > ------~-> > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.com > Yahoo! Groups Links > > > > > > > ------------------------ Yahoo! Groups Sponsor --------------------~--> Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

