paularmstrong
05-07-2007, 06:21 PM
I've ported an ActionScript 2.0 application over to 3.0 this weekend. The 2.0 version was using the JavascriptProxy class to interface with the HTML on the page. Long story short, JavascriptProxy looks like it was replaced with ExternalInterface (http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/external/ExternalInterface.html).
I'm not having any luck with it... even on the load of the flash file, I'm not seeing any results in my javascript. Most simple case scenario I've tried:
ActionScript:
ExternalInterface.call("runAlert");
Javascript:
function runAlert() { alert('alert'); }
Has anyone had any luck getting it to work? Am I missing something here?
I'm not having any luck with it... even on the load of the flash file, I'm not seeing any results in my javascript. Most simple case scenario I've tried:
ActionScript:
ExternalInterface.call("runAlert");
Javascript:
function runAlert() { alert('alert'); }
Has anyone had any luck getting it to work? Am I missing something here?