Flash banner

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


Standard flash-banner with fixed size.

Flash-banners - are a more effective way of advertising than usual jpeg or gif banners. Creating flash banner ads - is a good choice for those who want to attract visitor's attention to their site and convey important information to them. Flash technology provides means for unique design, quality animation and creating different-sized banners.


Take a look at a flash banner example. Example

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-banner (*.swf), up to 300Kb;
2. Default image (*.jpg, *.png, *.gif), to display to users who do not have flash-plugin installed. Default image must have the same dimensions in width and height as flash-banner itself.

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.

Preparation of flash-banner

To calculate transitions in AdFox you need to use the standard getURL method. First parameter is a reference to a page, the one you will get to after clicking on the banner. The reference is stored in link1 variable, which is passed to Flash-movie through FlashVars, the second parameter is the window/target (where to open the link).

There are several ways of accomplishing this:

The primary way is for those developers who use ActionScript 2.0:

Create a transparent button in the banner's top layer (we advise you create a new layer specially for this button) and place following code on it:

on (release)
  getURL(_root.link1, "_blank");

Note that you needn't create link1 variable, because AdFox creates it for you (as we have earlier mentioned, it is passed in FashVars). If you want the advertisers site to appear in the current tab/window rather that a new one use "_self" value for the second parameter instead of "_blank".

The second way is basically for those who use ActionScript 3.0:

Create a transparent button over the entire animation, give the button an Instance Name btn, then place this code in the first frame:

var obj:Object = this.root.loaderInfo.parameters;
var url:String = obj.link1;
function onClick(e:MouseEvent):void{
navigateToURL(new URLRequest(url), "_blank");

That's it. Now AdFox will efficiently work with our banner.

If banner have several transition buttons, use the requirements for Flash banner with several buttons and events.

Event counting

Event counting is implemented through AdFox variables event_1 ... event_30 which are also passed in FlashVars.

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

• ActionScript 2.0


• ActionScript 3.0

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

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

Last update: 01.08.2012