Requirements

Flash version >= 9 and ActionScript 3.0

Description

The Video Ads Module provides a way to show video ads (linear and non-linear) on any flash video player with source code access.

The module uses it's own video player engine.

How to use

Functions

Notifications

Notifications are the way to notify the Video Ads Module that something happened and it must do something about it.

For example if the audio volume change on the player then the module must be notified to change it's volume too.

The available notifications are:

Those functions are available through vadsModule.events object

Events

To setup an event handler for Video Ads Module you must use the vadsModule.events.addEventListener function.

For example: vadsModule.events.addEventListener(VideoAdsDefs.VADS_EVENT_LOADED, this.onAdsPluginReady);

The events are:

Objects

VideoAdsEvent

The main event object. Has only one property: object which has the property placement.

placement property can be:

Usage example:

vadsModule.events.addEventListener(VideoAdsDefs.VADS_EVENT_LINEAR_AD_READY, onAdsModuleAdReady);
function onAdsModuleAdReady(evt:VideoAdsEvent) {
   if (evt.object.placement == VideoAdsDefs.VIDEO_AD_PLACEMENT_MID) {
      // do something
   }
}