Guest User

Untitled

a guest
Jun 5th, 2018
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import flash.external.ExternalInterface;
  2.  
  3. var flashVars = _level0;
  4.  
  5. transitionButton.onRelease = adFoxClickHandler;
  6. ExternalInterface.call("countDown"+flashVars.bannerID);
  7.    
  8. function adFoxClickHandler(evt)
  9. {
  10.     if(flashVars.target == "_blank")
  11.     {
  12.         getURL(flashVars.link1), flashVars.target);
  13.         ExternalInterface.call("closeFullScreen"+flashVars.bannerID);
  14.     }
  15.     else
  16.     {
  17.         getURL(flashVars.link1), flashVars.target);
  18.     }
  19. }
  20.  
  21. function debugAdFox(browser:String = "other")
  22. {
  23.     if(ExternalInterface.available && browser == "ie")
  24.     {
  25.         ExternalInterface.call("alert",
  26.                                "target перехода "+flashVars.target+"\n"+
  27.                                "ссылка перехода "+flashVars.link1+"\n"+
  28.                                "ID баннера "+flashVars.bannerID+"\n");
  29.     }
  30.     else if(ExternalInterface.available)
  31.     {
  32.         ExternalInterface.call("console.log",
  33.                                "target перехода "+flashVars.target+"\n"+
  34.                                "ссылка перехода "+flashVars.link1+"\n"+
  35.                                "ID баннера "+flashVars.bannerID+"\n");
  36.     }
  37. }
  38. debugAdFox();
Add Comment
Please, Sign In to add comment