mx.states 

SetEventHandler  - AS3 Flex