Packagecom.brightcove.fl.advertising.adSwf
Classpublic class AdSwfMediaEvent
InheritanceAdSwfMediaEvent Inheritance flash.events.Event

Video events that can be listened for in your ad SWF when pauseVideoPlayer is set to true. These events allow for your ad SWF to react to different behaviors requested for your video ad. They are only dispatched when pauseVideoPlayer is true.

See also

AdSwfConfig.pauseVideoPlayer


Public Properties
 PropertyDefined By
  volume : Number
The new volume after a volume change.
AdSwfMediaEvent
Public Methods
 MethodDefined By
  
AdSwfMediaEvent(pEventName:String)
AdSwfMediaEvent
Public Constants
 ConstantDefined By
  PAUSE : String = adSwfMediaPause
[static] Dispatched when there's a request for media playback to pause.
AdSwfMediaEvent
  RESUME : String = adSwfMediaResume
[static] Dispatched when there's a request for media playback to resume.
AdSwfMediaEvent
  VOLUME_CHANGE : String = adSwfMediaVolumeChange
[static] Dispatched when there's a request for media playback to change volume.
AdSwfMediaEvent
Property Detail
volumeproperty
public var volume:Number

The new volume after a volume change. This is only set when the event type is MEDIA_VOLUME_CHANGE

Constructor Detail
AdSwfMediaEvent()Constructor
public function AdSwfMediaEvent(pEventName:String)



Parameters
pEventName:String
Constant Detail
PAUSEConstant
public static const PAUSE:String = adSwfMediaPause

Dispatched when there's a request for media playback to pause. This can occur from a user click or a call in the player API to videoModule.pause(true).

RESUMEConstant 
public static const RESUME:String = adSwfMediaResume

Dispatched when there's a request for media playback to resume. This can occur from a user click or a call in the player API to videoModule.pause(false).

VOLUME_CHANGEConstant 
public static const VOLUME_CHANGE:String = adSwfMediaVolumeChange

Dispatched when there's a request for media playback to change volume. This can occur from a user click, a call in the player API to videoModule.setVolume(), or a call to videoModule.mute(). The new volume is set in volume. If the volume is muted, the volume will be 0.