[OLD] BottomLine

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

Description

Leaderboard banner that is attached to the bottom edge of a browser window.

BottomLine - a leaderboard banner 100%x60px that is positioned at the bottom of the browser window, when scrolling stays where it was. On mouse-over expands to 100%x90px. Also has a close button and a transition button.
Other names: CatFish, expanding LeaderBoard.

Example

Example

Preparation (for developers)

Minimum requirements for the development environment (Authoring tool):

1. ActionScript 2.0;
2. FlashPlayer 9.

File size requirements

File size must not exceed the following
- 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.


If you are using ActionScript 2.0

Flash-movie 100%x60px:

Create a transparent button or a movie-clip and position it on the top layer of your movie. We suggest that you create a special layer for this purpose. Assign the following code to your button:

on(rollOver)
{
    getURL("javascript:adfoxOpen"+_root.bannerID+"();","_self"); 
}
on (release)
{
    getURL(_root.link1, "_blank");
}

Flash-movie 100%x90px:

Create a transparent button or a movie-clip and position it on the top layer of your movie. We suggest that you create a special layer for this purpose. Assign the following code to your button:

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

If you are using ActionScript 3.0

Flash-movie 100%x60px:

Create a transparent button or a movie-clip and position it on the top layer of your movie. We suggest that you create a special layer for this purpose. Now give your button an Instance Name for example. To do this open Properties panel for your button and write the name of the button in the Instance Name field. Having this done add this code to the first Frame of your Main Movie:

import flash.external.ExternalInterface;
import flash.net.URLRequest;
var obj:Object = this.root.loaderInfo.parameters;
btn.addEventListener(MouseEvent.CLICK,onClick);
btn.addEventListener(MouseEvent.MOUSE_OVER,onMO);
function onClick(e:MouseEvent):void
{
    navigateToURL(new URLRequest(obj.link1), "_blank");
}
function onMO(e:MouseEvent):void
{
    navigateToURL(new URLRequest("javascript:adfoxOpen"+obj.bannerID+"();","_self"));
}

Flash-movie 100%x90px:

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

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

Done.

Event counting

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

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

• ActionScript 2.0

loadMovieNum(_root.event_N,300);

• 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 … 20.

Last update: 13.04.2012