/ Published in: ActionScript 3
ExternalInterface - Right Using
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
if (ExternalInterface.available) { try { ExternalInterface.addCallback("someFunction", someFunction); } catch(error:Error) { trace("Error: " + error); } catch(secError:SecurityError) { trace("Security error: " + secError); } } else { trace("ExternalInterface is not available"); }