daily pastebin goal
88%
SHARE
TWEET

Untitled

a guest Apr 24th, 2010 81 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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top