Due to constantly increasing online security measures in internet browsers, pop-up blocking is becoming a common problem in online advertising. Adform has compiled a list of tips how to create banners that do not trigger 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 the new browser window is the first action that happens after user clicks the banner/button (any delay between click and 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 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 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 Flash 8 or higher version. According to Adobe bug (http://bugs.adobe.com/jira/browse/FP-1065) there might be pop-up problems when interacting with lower version banners in Internet Explorer 7.
5. Test the Flash banner in live web environment for pop-up blocking. You can use Adform Creative Test Module which can be found here.