You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
addCallback(this.Callback);
private function Callback():String
{
return 'test123';
}
public function addCallback(callback:Function):void
{
Window.console.log(callback());
}
Actionscript:
Javascript:
notice that '(,' should actually be '(this,'
changing
to
results in the correct output:
work around, simply don't add this. infront of function when passing them as params.
But would be nice if the compiler took care of this.
The text was updated successfully, but these errors were encountered: