Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function testCallback(callback:Function):void
- {
- callback("test");
- }
- public function doNothing():void
- {
- // doing nothing
- }
- public function someRandomFunction():void
- // ...
- testCallback(doNothing);
- }
- [Callback(paramName="callback",callbackParams="string")]
- public function testCallback(callback:Function):void
- {
- callback("test");
- }
Add Comment
Please, Sign In to add comment