Posted By

burakkirkil on 07/29/12


Tagged


Versions (?)

ExternalInterface - Right Using


 / Published in: ActionScript 3
 

ExternalInterface - Right Using

  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  

You need to login to post a comment.