Close and Auto close tag for overlay banners

Screen shot of normal banner click tag in Brand CentralClick image for a screen shot of normal banner click tag in Brand Central

The following article applies to the definition of close tags to be inserted into a Flash banner that will be used within Brand Central.

Close tags can be used in E-Blaster or Eyeblaster banner to make the overlay banner disappear upon a click or user interaction event or on auto close after a certain time. Most publishers require an auto-close after maximum of 15 seconds that an overlay banner is displayed.

Requirements:

  • Macromedia Flash authoring environment
  • Basic knowledge of HTML and Actionscript

Solution:

Create a close button in Flash, define the hitarea and apply the following code (F9) in the action scrip window:

on(release) {
	getURL("javascript:bcDivHide();void(0);");
}

A similiar code could/should be used for auto closing the overlay banner, e.g. after 15 seconds. If publishers require for this particular event or the creative is required to auto close, then the same code should be applied in any frame on the main timeline, just without the functioned being fired by an event :

getURL("javascript:bcDivHide();void(0);");

A sample file can be downloaded here.

Note

Please note that for expandable banners, a different function needs to be called to close the overlay aread of an expanded banner. A more detailed explanation of the Brand Central close function for expanded banners can be found here.