Floating multimedia ads

iPROM AdServer
Floating multimedia ads
Instructions and technical specifications
iPROM, d.o.o.
+386 1 511 07 86
info@iprom.si
Šlandrova ulica 4 B
+386 1 511 07 83
www.iprom.si
SI-1231 Ljubljana – Črnuče
iPROM AdServer
Floating multimedia ads
Instructions and technical specifications
Floating multimedia ads are displayed on websites and usually do not depend on a fixed
position on a website. There are the following types of multimedia ads:
•
Floating multimedia ad (an ad that covers only a part of content – standard
dimensions: 250 x 250 px or 500 x 500 px);
•
Banderola (an ad displayed as a full-width and 150 px high banner at the bottom of
the screen);
•
Full-screen ad (the ad covers the entire screen – standard to 800 x 600 px).
Preparation instructions:
•
Size should not exceed 100 KB;
•
Please, send the target link (URL address of the landing site);
•
The close button (X, Close) must be visible at all times while the ad is displayed;
•
Define an ActionScript function in Flash to make the banner clickable (please, copypaste the following code):
Action Script 2.0:
on (release) {
if (_root.clickthru != "" && _root.clickthru != null) {
getURL(_root.clickthru, "_blank");
} else if (_root.clickTAG != "" && _root.clickTAG != null) {
getURL(_root.clickTAG, "_blank");
} else if (_root.url != "" && _root.url != null) {
getURL(_root.url, "_blank");
} else if (_root.clickTag != "" && _root.clickTag != null) {
getURL(_root.clickTag, "_blank");
}
}
Action Script 3.0:
var paramList:Object = this.root.loaderInfo.parameters;
this.addEventListener(MouseEvent.CLICK, openURL);
function openURL(evtObj:MouseEvent):void {
var link:String = "";
if (paramList["clickthru"] != "" && paramList["clickthru"] != null) {
link = paramList["clickthru"];
}
else if (paramList["clickTAG"] != "" && paramList["clickTAG"] != null) {
link = paramList["clickTAG"];
}
else if (paramList["url"] != "" && paramList["url"] != null) {
link = paramList["url"];
}
else if (paramList["clickTag"] != "" && paramList["clickTag"] != null) {
link = paramList["clickTag"];
}
var request:URLRequest = new URLRequest(link);
navigateToURL(request, "_blank");
iPROM, d.o.o.
+386 1 511 07 86
info@iprom.si
Šlandrova ulica 4 B
+386 1 511 07 83
www.iprom.si
SI-1231 Ljubljana – Črnuče
iPROM AdServer
Floating multimedia ads
Instructions and technical specifications
}
this.buttonMode = true;
this.useHandCursor = true;
To ensure the correct operation of the close button (X), please, use the following function
in ActionScript:
Action Script 2.0:
on (release) {
getURL("javascript:if(self.praHide){self.praHide();}");
getURL("javascript:if(self.MI_HideAd){MI_HideOnTimeOut=1;MI_HideAd();}");
getURL("javascript:if(self.close_phpads_layer){close_phpads_layer();}");
getURL("javascript:if(self.onFinishedPlaying){onFinishedPlaying();}");
}
Action Script 3.0:
function closeX(evtObj2: MouseEvent): void {
var r: URLRequest = new URLRequest("javascript:if(self.praHide)
self.praHide();}");
navigateToURL(r, '_self' );
}
closeButton. addEventListener(MouseEvent. CLICK, closeX);
For the Banderola ad format, you have to set the correct parameter in ActionScript
(noScale mode):
Action Script 2.0 & Action Script 3.0:
Stage.scaleMode = "noScale";
iPROM, d.o.o.
+386 1 511 07 86
info@iprom.si
Šlandrova ulica 4 B
+386 1 511 07 83
www.iprom.si
SI-1231 Ljubljana – Črnuče
iPROM AdServer
Floating multimedia ads
Instructions and technical specifications
Example of an ad being prepared in Adobe Flash CS6:
Action Script 2.0:
Action Script 3.0:
iPROM, d.o.o.
+386 1 511 07 86
info@iprom.si
Šlandrova ulica 4 B
+386 1 511 07 83
www.iprom.si
SI-1231 Ljubljana – Črnuče