class com.google.ads.studio.video.AbstractVideoControl
Abstract class for each video control.
Events
Name | Type | Description |
---|---|---|
FAIL | com.google.ads.studio.events.StudioEvent | Dispatched when the component has failed to initialize. |
INIT | com.google.ads.studio.events.StudioEvent | Dispatched when a valid video player has been found. |
INIT | com.google.ads.studio.events.StudioEvent | Dispatched when the component has initialized.
This event may fire almost immediately after component construction. To
ensure capturing the initialized state please refer to the example:
// Note the variable component refers to the component instance. import com.google.ads.studio.events.StudioEvent; var initializedHandler:Function = function( event:StudioEvent = null):void { trace("The component initialized!"); }; if (component.isInitialized()) { initializedHandler(); } else { component.addEventListener(StudioEvent.INIT, initializedHandler); } |
Constructors
AbstractVideoControl()
Creates an AbstractVideoControl.
Instance Methods
Defined in: com.google.ads.studio:EnabledComponent
getEnabler()
:
Object
isInitialized()
:
Boolean
Returns whether the component has initialized.
Defined in com.google.ads.studio.video:AbstractVideoControl
getVideoPlayerSearchContainer()
:
DisplayObjectContainer
Gets the scope of where to begin our video player search.
setEnabled(enabled:Boolean)
:
void
Sets the enabled state of the video control.
componentButtonInstance.setEnabled(true); // componentButtonInstance.setEnabled(false);
setVideoPlayerSearchContainer(scope:flash.display:DisplayObjectContainer)
:
void
Sets the scope of where to begin our video player search.