Test for event type does not work

Hi all,

I have an event handler that handles multiple event types so inside it I am trying to do a test for the event type, which to my understanding is a case-sensitive String. I have a statement such as:

trace("evt.type: " + evt.type);
if (evt.type=="clicked")
{
	//do something
}

The trace statement shows that the evt.type is “clicked” and yet the equality comparison doesn’t work. Tracing ‘evt.type==“clicked”’ shows that it is false. Any clues?