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). E.g. the code in green is much less likely to trigger the pop-up blockers than the code in red:

  • When using ActionScript 2:

Correct:

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

Incorrect:

on (release) {
         SOME_FUNCTION();
         getURL (_root.clickTAG, _root.landingPageTarget);
         }
  • When using ActionScript 3:

Correct:

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

Incorrect:

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.

  • When using ActionScript 2:
on(release) {
      getURL(_root.clickTAG, _root.landingPageTarget);
}

Note: 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.

  • When using the ActionScript 3:

Create a button symbol on Flash API stage, and give it a name (e.g. button – pic. below).

Download Adform Core Component and paste this code to the same Flash API timeline frame where you created the button (replace the name "button" with how you actually called the button):

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

4. Banners should be compiled with the Flash 8 or a higher version. According to the Adobe bug (http://bugs.adobe.com/jira/browse/FP-1065) 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.