This document contains the different AS3 functions for Richmedia Ads.

Page Peel One file

Open

function ppOpen(event:MouseEvent):void {
ExternalInterface.call("zzPeelOpen");
}
ppOpenBtn.addEventListener(MouseEvent.CLICK, ppOpen);

Close

function ppClose(event:MouseEvent):void { 
ExternalInterface.call("zzPeelClose"); 
} 
ppCloseBtn.addEventListener(MouseEvent.CLICK, ppClose);

Overlay With base

Open

function overlayOpen(event:MouseEvent):void {
ExternalInterface.call("zzReplay");
}
overlayOpenBtn.addEventListener(MouseEvent.CLICK, overlayOpen);

Close

function overlayClose(event:MouseEvent):void {
ExternalInterface.call("zzClose");
}
overlayCloseBtn.addEventListener(MouseEvent.CLICK, overlayClose);

Overlay Without base

Close

function overlayClose(event:MouseEvent):void {
ExternalInterface.call("zzClose");
}
overlayCloseBtn.addEventListener(MouseEvent.CLICK, overlayClose);

Overlay with video

Open

function overlayOpen(event:MouseEvent):void {
ExternalInterface.call("zzReplay");
}
overlayOpenBtn.addEventListener(MouseEvent.CLICK, overlayOpen);

Close

function overlayClose(event:MouseEvent):void {
ExternalInterface.call("zzClose");
}
overlayCloseBtn.addEventListener(MouseEvent.CLICK, overlayClose);

IAB Billboard

Close

function bbClose(event:MouseEvent):void {
ExternalInterface.call("zzBillBoardClose");
}
bbCloseBtn.addEventListener(MouseEvent.CLICK, bbClose);

IAB Sidekick

Open

function hppOpen(event:MouseEvent):void {
ExternalInterface.call("zzHorizontalPusherOpen");
}
hppOpenBtn.addEventListener(MouseEvent.CLICK, hppOpen);

Close

function hppClose(event:MouseEvent):void {
ExternalInterface.call(“zzcloseAd”);
}
hppCloseBtn.addEventListener(MouseEvent.CLICK, hppClose);

IAB Portrait

Slot1
Expand

function iabPortraitSlot1Open(event:MouseEvent):void {
ExternalInterface.call("zzExpandAdSlot1");
}
port1OpenBtn.addEventListener(MouseEvent.CLICK, iabPortraitSlot1Open);

Close

function iabPortraitSlot1Close(event:MouseEvent):void {
ExternalInterface.call("zzCloseAdSlot1");
}
port1CloseBtn.addEventListener(MouseEvent.CLICK, iabPortraitSlot1Close);

Slot2
Expand

function iabPortraitSlot2Open(event:MouseEvent):void {
ExternalInterface.call("zzExpandAdSlot2");
}
port2OpenBtn.addEventListener(MouseEvent.CLICK, iabPortraitSlot2Open);

Close

function iabPortraitSlot2Close(event:MouseEvent):void {
ExternalInterface.call("zzCloseAdSlot2");
}
port2CloseBtn.addEventListener(MouseEvent.CLICK, iabPortraitSlot2Close);

Slot3
Expand

function iabPortraitSlot3Open(event:MouseEvent):void {
ExternalInterface.call("zzExpandAdSlot3");
}
port3OpenBtn.addEventListener(MouseEvent.CLICK, iabPortraitSlot3Open);

Close

function iabPortraitSlot3Close(event:MouseEvent):void {
ExternalInterface.call("zzCloseAdSlot3");
}
port3CloseBtn.addEventListener(MouseEvent.CLICK, iabPortraitSlot3Close);

IAB Pushdown one file

Expand / Collapse

function iabPushdown(event:MouseEvent):void {
ExternalInterface.call("zzPusherExpandCollapse");
}
iabPushdownBtn.addEventListener(MouseEvent.CLICK, iabPushdown);

IAB Push down two file – 970×90 dim.

Expand

function iabPushdownOpen(event:MouseEvent):void {
ExternalInterface.call("zzPusherExpand");
}
iabPushdownOpenBtn.addEventListener(MouseEvent.CLICK, iabPushdownOpen);

Collapse

function iabPushdownClose(event:MouseEvent):void {
ExternalInterface.call("zzPusherCollapse");
}
iabPushdownCloseBtn.addEventListener(MouseEvent.CLICK, iabPushdownClose);

IAB Pushdown two file – Custom dimension

Expand

function iabPushdownOpen(event:MouseEvent):void {
ExternalInterface.call("zzPusherExpand");
}
iabPushdownOpenBtn.addEventListener(MouseEvent.CLICK, iabPushdownOpen);

Collapse

function iabPushdownClose(event:MouseEvent):void {
ExternalInterface.call("zzPusherCollapse");
}
iabPushdownCloseBtn.addEventListener(MouseEvent.CLICK, iabPushdownClose);

IAB Mobile Adhesion

Collapse

function adhCollapse(event:MouseEvent):void {
ExternalInterface.call("zd_adhCollapse");
}
adhCollapseBtn.addEventListener(MouseEvent.CLICK, adhCollapse);

IAB Mobile Flex

Close

function closeFlex(event:MouseEvent):void {
ExternalInterface.call("closeFlexWrapper");
}
closeFlexBtn.addEventListener(MouseEvent.CLICK, closeFlex);

Stayon

Expandable
Base File

function stayOnExpand(event:MouseEvent):void {
ExternalInterface.call("zzStayOnExpand"+root.loaderInfo.parameters.zzad);
}
expandBtn.addEventListener(MouseEvent.CLICK, stayOnExpand);

Expanded File

function stayOnClose(event:MouseEvent):void {
ExternalInterface.call("zzStayOnClose"+root.loaderInfo.parameters.zzad);
}
closeBtn.addEventListener(MouseEvent.CLICK, stayOnClose);

 

Contact Support with Queries and Suggestions

0 0