Or you can use the "is" operator:
if (event.currentTarget is CreditCardValidator) {
...
}
But take care of the fact, that it will return true on compatible types
(descendants), too.
Attila
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
From:Tony Alves <
flash.utils.getQualifiedClassName()
Attila
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
From:Tony Alves <[EMAIL PROTECTED]>
To: Flex Coders
Date:Sunday, September 2, 2007, 12:55:37 AM
Subject: [flexcoders] Determine the class of an event current
2 matches
Mail list logo