"Русская версия"


This type of banner appears above all page content right after the page is loaded. It maintains its position when the page is scrolled. In other words it has a fixed position above page content

Rich-media - in addition to functionality described above any banner of this type must have a close button. Clicking on it will make the banner disappear from the page which will allow the user to surf the page normally.
Our template allows 9 ways of positioning our ReachMedia. Its position relative of the browser window remains the same.

The banner can be either an image or a flash with default image or without.

Preparation (for developers)

Requirements for the development environment (Authoring tool):

1. ActionScript 2.0 or ActionScript 3.0;
2. FlashPlayer 8.0.

What you need to prepare:

1. Flash-movie (*.swf), no more than 300Kb in size with two buttons: a close button described above and a transition button.
2. Default image (*.jpg, *.png, *.gif) with the same dimensions as the flash-movie.

File size requirements

File size must not exceed the following
- Images (*.jpg, *.png, *.gif) — up 300 Kb.
- Flash-movies (*. swf ) up to 300 Kb.

The limitations are checked separately for each file.   To use files that exceed those limits host them somewhere on your server and use URL field when creating the banner to provide a direct link to your file. (http://...)

File names
File names may only contain letters of English alphabet lower and upper case, numbers and ‘_’.   All other symbols such as russian letters,  space symbol and ‘“’ , ’”’, ‘-’ are not allowed.

Preparing your flash-movie using ActionScript 2.0

1. First you will need to copypaste this code into the first Frame of your Main Timeline.

import flash.external.ExternalInterface;
function afKill(){,_root.aNum);
function afClick(){
    getURL(_root.link1, _root.aTarget);

2. Create a transparent button or a movie-clip and place it in the top layer of your banner. We suggest that you create a layer specifically for this button. Then add the following code to your button:

on (release)
    setTimeout(_root.afKill, 1000);

afClick function redirects the user to the advertiser's page.
afKill function closes the banner.

3. Just like in section 2 create a close button for your banner. It may be a transparent button placed above an image, or a movie-clip containing a close button image. Needles to say close button should occupy a layer higher than the transition button or else it wouldn't work. Add code to this button to make it work (when user clicks on the button he triggers a click event, and we handle this event with afKill function):

on (release)
Note once again that the presence of a close button in a banner is a must.

Preparing your flash-movie using ActionScript 3.0

1. All you need to do is put this code in the first frame of your MainTimeline:

import flash.external.ExternalInterface;
var flashVars = this.root.loaderInfo.parameters;
afGoButton.addEventListener(MouseEvent.CLICK, afGo);
afCloseButton.addEventListener(MouseEvent.CLICK, afKill);
function afGo(evt:Object)
function afKill(evt:Object = null)
function afClick(evt:Object = null)
    navigateToURL(new URLRequest(flashVars.link1), flashVars.aTarget);

2. Position your transition button in the top layer or in any way that it will be clickable, meaning it won’t be completely covered by some other elements, movie-clips etc (give it an instance name afGoButton), then position the close button above the transition button (give it an instance name afCloseButton).

Note once again that the presence of a close button in a banner is a must.

3. Banner is ready.


Event counting

This banner already has one event counted. The event is called: “Close button has been pressed”.

To count your particular event, you need to place this code whenever your event occurs:

• ActionScript 2.0


• ActionScript 3.0

var flashVars:Object = this.root.loaderInfo.parameters;
sendToURL(new URLRequest(flashVars.event_N));

where N-is the event number, N may be 6 … 30.

Last update: 13.09.2013