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
<*> 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/