Advertisement
Guest User

Untitled

a guest
Apr 24th, 2010
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var listen:Function = switcher( this, handle, FlexEvent.CREATION_COMPLETE, FlexEvent.PREINITIALIZE, FlexEvent.INITIALIZE );
  2.     listen( true ); //Adds listener "handle" to CREATION_COMPLETE, PREINITIALIZE, INITIALIZE events
  3.     listen( false );    //Removes them
  4. //Or
  5. var listen:Function = switcher( this, FlexEvent.CREATION_COMPLETE, handleCreationComplete,
  6.                       FlexEvent.PREINITIALIZE, handlePreInitialize,
  7.                       FlexEvent.INITIALIZE, handleInitialize,
  8.                       false, 0, true ); //capture = false, priority = 0, weakReference = true
  9.     listen( true );     //Adds handleCreationComplete => CREATION_COMPLETE, handlePreInitialize => PREINITIALIZE etc.
  10.     listen( false );    //Removes them
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement