ExternalInterface - Right Using


/ Published in: ActionScript 3
Save to your folder(s)

ExternalInterface - Right Using


Copy this code and paste it in your HTML
  1. if (ExternalInterface.available)
  2. {
  3. try
  4. {
  5. ExternalInterface.addCallback("someFunction", someFunction);
  6. }
  7. catch(error:Error)
  8. {
  9. trace("Error: " + error);
  10. }
  11. catch(secError:SecurityError)
  12. {
  13. trace("Security error: " + secError);
  14. }
  15. }
  16. else
  17. {
  18. trace("ExternalInterface is not available");
  19. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.