Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var listen:Function = switcher( this, handle, FlexEvent.CREATION_COMPLETE, FlexEvent.PREINITIALIZE, FlexEvent.INITIALIZE );
- listen( true ); //Adds listener "handle" to CREATION_COMPLETE, PREINITIALIZE, INITIALIZE events
- listen( false ); //Removes them
- //Or
- var listen:Function = switcher( this, FlexEvent.CREATION_COMPLETE, handleCreationComplete,
- FlexEvent.PREINITIALIZE, handlePreInitialize,
- FlexEvent.INITIALIZE, handleInitialize,
- false, 0, true ); //capture = false, priority = 0, weakReference = true
- listen( true ); //Adds handleCreationComplete => CREATION_COMPLETE, handlePreInitialize => PREINITIALIZE etc.
- listen( false ); //Removes them
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement