Guest User

Untitled

a guest
Jan 18th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  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. }
Add Comment
Please, Sign In to add comment