Better alternative to " e.target.getQualifiedClassName=='ClassName' "

EDIT SORRY I obviously got that wrong in the title! below is the correction

I am wondering if there is a better alternative to my current use of:
" getQualifiedClassName(e.target)==‘ClassName’ "
I use it in cases where I want to know what object is say clicked:
for example

function foo(e:MouseEvent):void
{
     if(getQualifiedClassName(e.target)=='Red')trace('Red object clicked');
     else if(getQualifiedClassName(e.target)=='Green')trace('Green object clicked');
     else if(getQualifiedClassName(e.target)=='Blue')trace('Blue object clicked');
}

Thanks for your consideration,

S.