SHARE
TWEET

Untitled

a guest Jan 18th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public function testCallback(callback:Function):void
  2. {
  3.     callback("test");
  4. }
  5.    
  6. public function doNothing():void
  7. {
  8.     // doing nothing
  9. }
  10.  
  11. public function someRandomFunction():void
  12.     // ...
  13.     testCallback(doNothing);
  14. }
  15.    
  16. [Callback(paramName="callback",callbackParams="string")]
  17. public function testCallback(callback:Function):void
  18. {
  19.     callback("test");
  20. }
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