That’s right, Flash is invoking the function calls, but they’re executing in the browser. Now switch these around — put the first block in the applet, and the second block in the browser JavaScript — and it still runs the same way, except that it’s the browser that invokes the functions, and they run in the applet
js – flash communication