Sunday, September 21, 2008

AS3 Event flow

Argh: AS3 Event Dispatcher views an event NOT as a class + type property, but just as a type property. Therefore:

new CustomEvent("onRollOver") is detected (and subsequently incorrectly cast) as new MouseEvent(MouseEvent.ROLL_OVER)

Very surprising.

No comments: