Synchronized Flash Banners are often desired when an advertising campaign needs several Flash banners to cooperate on one Media – e.g. ended streaming video in one banner starts another streaming video in another banner, or answering to quiz questions in one banner invokes congratulatory animations in all banners, etc. Adform Synchronized Flash Banners must consist of at least two Flash files. The communication between the banners can be directed in any convenient way – senders/listeners, or all banners can be senders and listeners at the same time. There are no limitations for the content of Adform Synchronized Banners. These banners can combine several advertising techniques (video streaming, interactive content, order/purchase forms, etc.). The instructions for creating Synchronized Flash Banners to be hosted by Adform are given in the text below.

Adform strongly recommends using the Adform Creative Toolkit extension while creating Synchronized banners. The manual of the Adform Creative Toolkit can be found here.

However, it is possible to create Synchronized banners without using the Adform Toolkit, below you will find detailed instructions on this.

Preview:

Examples:

Instructions

1. There must be at least two flash banners that depend on each other.

2. Both banners must communicate through the LocalConnection object. The examples below show the necessary code for sending and receiving commands among separate Flash banners.

a) In case you are using the ActionScript 2 the following code must be implemented in a Flash banner depending if it is sending or receiving commands:

//WHEN SENDING A COMMAND TO ANOTHER BANNER

//Creating the LocalConnection object
var ADFsendLC = new LocalConnection();
//Assigning a send action to some event in the banner – in this example
//it is a click of a button
ADFBUTTON.onRelease = function() {
ADFsendLC.send("ADFconnection","ADFhide");
//First parameter - connection name - must be the same in both –
//sending and receiving banners
//Second parameter - function name that is defined in
//the receiving banner
}

//WHEN LISTENING FOR A COMMAND FROM ANOTHER BANNER

//Creating the LocalConnection object
var ADFreceiveLC = new LocalConnection();
//Defining the function called through the LocalConnection
ADFreceiveLC.ADFhide = function(){
ADFlogo._alpha = 0;
//In this example the remote Flash banner orders the receiver to
//make the an object transparent
}
//Opening the connection and giving the instance a name so that the sender can
//connect to the receiver
ADFreceiveLC.connect("ADFconnection");

b) In case you are using the ActionScript 3 the following code must be implemented in a Flash banner depending if it is sending or receiving commands:

//WHEN SENDING A COMMAND TO ANOTHER BANNER

//Creating the LocalConnection object
var ADFsendLC = new LocalConnection();
//Assigning a send action to some event in the banner – in this example
//it is a click of a button
ADFBUTTON.addEventListener(MouseEvent.CLICK,ADFhide);
function ADFhide(e:MouseEvent) {
ADFsendLC.send("ADFconnection","ADFhide");
//First parameter - connection name - must be the same in both –
//sending and receiving banners
//Second parameter - function name that is defined in
//the receiving banner
}

//WHEN LISTENING FOR A COMMAND FROM ANOTHER BANNER

//Creating the LocalConnection object
var ADFreceiveLC = new LocalConnection();
//Defining the function called through the LocalConnection
function ADFhide() {
ADFlogo.alpha = 0;
//In this example the remote Flash banner orders the receiver to
//make the an object transparent
}
//Opening the connection and giving the instance a name so that the sender can
//connect to the receiver and defining the client for the incoming connection
ADFreceiveLC.connect("ADFconnection");
ADFreceiveLC.client = this;

Important! Due to the technical aspects of LocalConnection, banner synchronization (described above) will only work fine when banners are previewed at the same time in one tab of a browser. In order to avoid this Adform strongly recommends to use the Adform Creative Toolkit.

Synchronized banners made with the Adform Toolkit work fine in more than one browser at the same moment. More info about thr Adform Creative Toolkit can be found here.

3. You need to implement the clickTAG variable. Detailed instructions for the clickTAG implementation can be found here.

4. Banners should be compiled with the Flash 8 or a higher version. There might be pop-up blocker problems when interacting with the lower version banners in the Internet Explorer 7.

5. Test the Flash banner in the live web environment using Adform Creative Test Module.