Hi
With AfterEffects CC scripting it looks like custom JavaScript functions of a flashplayer object return no value when invoked from ActionScript code
This can be seen in the sample script shipped with ExtendScript Toolkit named ActionScriptDemo.jsx:
Create a flashplayer object in a JSX file with a custom getJavaScriptNumber function:
var flashPlayer = flashPalette.add("flashplayer", cBounds);
flashPlayer.getJavaScriptNumber = function() {
return 12345;
}
Invoke the custom getJavaScriptNumber function from ActionScript code of an .MXML file:
public function requestJavaScriptNumber():void{
var res:int = ExternalInterface.call("getJavaScriptNumber");
estkNumber = res;
}
The ExternalInterface.call("getJavaScriptNumber") call return no value
Any idea or a suggested workaround??
Thanks, Erez.