From September, Flash will no longer be supported by Chrome. Prepare for the shift towards HTML5 by visiting our Flash to HTML5 help page

Check it out!

Avoiding Pop-Up Blockers

Due to constantly increasing online security measures in internet browsers, the pop-up blocking is becoming a common problem in the online advertising. Adform has compiled a list of tips how to create banners that do not trigger the pop-up blockers.

1. Always make sure you attach the Action Script code that opens a new browser window to an instance of a button, not a movie clip.

2. Make sure that the opening of a new browser window is the first action that happens after a user clicks the banner/button (any delay between a click and a call to the function that opens a new window increases the possibility of triggering the pop-up blocker).

When using ActionScript 2:

Correct Incorrect
on(release) {
         getURL (_root.clickTAG, _root.landingPageTarget);
         SOME_FUNCTION();
         }
on (release) {
         SOME_FUNCTION();
         getURL (_root.clickTAG, _root.landingPageTarget);
         }

When using ActionScript 3:

Correct Incorrect
button.addEventListener(MouseEvent.CLICK, ADFclicked);
         function ADFclicked(event:MouseEvent) {
         AdfURLNavigator.navigateToUrl(AdfFlashVarsUtil.getParameter("clickTAG"), AdfFlashVarsUtil.getParameter("landingPageTarget"));
         SOME_FUNCTION();
         }
button.addEventListener(MouseEvent.CLICK, ADFclicked);
        function ADFclicked(event:MouseEvent) {
        SOME_FUNCTION();
        AdfURLNavigator.navigateToUrl(AdfFlashVarsUtil.getParameter("clickTAG"), AdfFlashVarsUtil.getParameter("landingPageTarget"));
        }

3. Make sure the clickTAG method is implemented exactly as it is described below.

ActionScript 2:

on(release) {
      getURL(_root.clickTAG, _root.landingPageTarget);
}

ActionScript 3:

button.addEventListener(MouseEvent.CLICK, ADFclicked);
function ADFclicked(event:MouseEvent) {
AdfURLNavigator.navigateToUrl(
AdfFlashVarsUtil.getParameter("clickTAG"), AdfFlashVarsUtil.getParameter("landingPageTarget"));
}

 Important: The event, which triggers the opening of a new window, must be “release”, not “press” because opening a new window on “press” event will definitely trigger the pop-up blockers.

 

4. Banners should be compiled with the Flash 8 or a higher version. According to the Adobe bug there might be pop-up problems when interacting with lower version banners in the Internet Explorer 7.


5. Test the Flash banner in the live web environment for the pop-up blocking. You can use Adform Creative Test Module which can be found here.