I can’t seem to actually find a reference to ‘is’ in the AS3 documentation for type comparison other than in examples. Perhaps this can’t be done, but it seems like there should be something for this scenario…
Right now I have:
if ( event.target is Class )
{
}
else
{
// What I really want to do!
}
This seems silly because what I really want to say is…
if ( event.target isNot Class )
{
// Sure would be cleaner!
}
Can I do that?
Why not just do: