Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import flash.external.ExternalInterface;
- var flashVars = _level0;
- transitionButton.onRelease = adFoxClickHandler;
- ExternalInterface.call("countDown"+flashVars.bannerID);
- function adFoxClickHandler(evt)
- {
- if(flashVars.target == "_blank")
- {
- getURL(flashVars.link1), flashVars.target);
- ExternalInterface.call("closeFullScreen"+flashVars.bannerID);
- }
- else
- {
- getURL(flashVars.link1), flashVars.target);
- }
- }
- function debugAdFox(browser:String = "other")
- {
- if(ExternalInterface.available && browser == "ie")
- {
- ExternalInterface.call("alert",
- "target перехода "+flashVars.target+"\n"+
- "ссылка перехода "+flashVars.link1+"\n"+
- "ID баннера "+flashVars.bannerID+"\n");
- }
- else if(ExternalInterface.available)
- {
- ExternalInterface.call("console.log",
- "target перехода "+flashVars.target+"\n"+
- "ссылка перехода "+flashVars.link1+"\n"+
- "ID баннера "+flashVars.bannerID+"\n");
- }
- }
- debugAdFox();
Add Comment
Please, Sign In to add comment