I’ve updated my OpenLaszlo utility grab-bag to make browser <-> applet communication even easier. How easy?
Proxies
Put this in your browser JavaScript:
var gObject = { f: function() { console.info(‘gObject.f’, arguments) }, g: function() { console.info(‘gObject.g’, arguments) } };
And this in an OpenLaszlo applet:
var gObject = FlashBridge.createRemoteProxy(‘gObject’, [‘f’, ‘g’]); gObject.f(1, 2); gObject.g(3);
When you run the applet code, it prints this to the browser console: read more »
