View Single Post
  #7 (permalink)  
Old 06-19-2007, 12:26 PM
myxus myxus is offline
Member
 
Join Date: May 2007
Posts: 53
Default Re:Exchanging Data between FFishScript and FLEX..

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 ?
__________________
#define true false //happy debugging, friends
Reply With Quote