Packagecom.brightcove.fl.advertising.adSwf
Classpublic class AdSwfContext
InheritanceAdSwfContext Inheritance Object

Holds the current state of the player for use in an ad SWF. You can use the properties and functions to display and manage the ad SWF.



Public Properties
 PropertyDefined By
  adSwfFormat : Object
[read-only] Returns information about the ad SWF format.
AdSwfContext
  moduleLoader : Object
[read-only] Allows access to the APIs, even if APIs are disabled in the current player.
AdSwfContext
Public Methods
 MethodDefined By
  
If a trackStartURL has been specified, the tracking server will be pinged to track the impression.
AdSwfContext
Property Detail
adSwfFormatproperty
adSwfFormat:Object  [read-only]

Returns information about the ad SWF format. There's only one property on the Object, additionalElements.


Implementation
    public function get adSwfFormat():Object
moduleLoaderproperty 
moduleLoader:Object  [read-only]

Allows access to the APIs, even if APIs are disabled in the current player. Valid functions are loadModules() and getModule(). When loadModules() is complete, it dispatches Event.COMPLETE. The video player module can behave differently when an ad is playing- see AdSwf and the player API documentation for more details.


Implementation
    public function get moduleLoader():Object
Method Detail
markTrackStartImpression()method
public function markTrackStartImpression():void

If a trackStartURL has been specified, the tracking server will be pinged to track the impression. Ad SWFs only support the trackStartURL and not midpoint or endpoint impressions. These must be set up within the ad SWF is desired. This must be called when the ad has completed loading/buffering.