i type in as1/as2
Code:
function myFunc(x, y) {return x + y; }
function myMethod(x, y) { return x + y + y; }
ExternalInterface.addCallback("myFunc", myFunc);
ExternalInterface.addCallback("myFunc2", myMethod);
and type
Code:
Application.registerASMethods("myFunc", "myFunc2");
trace(myFunc("hello ", "world"));
trace(myFunc2("hello ", "world"));
in initialize script.
It prints 'undefined'.
Where the problem can be ?