Packagecom.adobe.portfolio.previews
Classpublic class VideoPreview
InheritanceVideoPreview Inheritance spark.components.VideoPlayer

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

The VideoPreview class extends VideoPlayer to play video content with more controls.

Default MXML Propertysource



Public Properties
 PropertyDefined By
  aspectRatio : Number
VideoPreview
  model : IPreviewModel
VideoPreview
  PLAYING : String = playing
[static]
VideoPreview
  PLAYING_HOVER : String = playingHover
[static]
VideoPreview
  source : Object
[override] [write-only]
VideoPreview
  STOPPED : String = stopped
[static]
VideoPreview
  STOPPED_HOVER : String = stoppedHover
[static]
VideoPreview
Protected Properties
 PropertyDefined By
  autoWatch : AutoWatch
VideoPreview
  doubleClickHandler : DoubleClickHandler
VideoPreview
Public Methods
 MethodDefined By
  
VideoPreview
Protected Methods
 MethodDefined By
  
attachSkin():void
[override]
VideoPreview
  
detachSkin():void
[override]
VideoPreview
  
[override]
VideoPreview
  
partAdded(partName:String, instance:Object):void
[override]
VideoPreview
  
partRemoved(partName:String, instance:Object):void
[override]
VideoPreview
Skin Parts

This component uses skins made up of skin parts. Do not set the skin parts directly. The component's skin sets the skin parts.


 Skin Part Description Defined By
  
hoverPlay:spark.components.Button
Required: false Part Type: Static
An optional skin part to display the hover play button.
VideoPreview
  
minimalScrubBar:spark.components.mediaClasses.ScrubBar
Required: false Part Type: Static
An optional skin part to display the minimalScrubBar play button.
VideoPreview
  
mouseButton:spark.components.Button
Required: true Part Type: Static

VideoPreview
Property Detail
aspectRatioproperty
aspectRatio:Number

This property can be used as the source for data binding.


Implementation
    public function get aspectRatio():Number
    public function set aspectRatio(value:Number):void
autoWatchproperty 
protected var autoWatch:AutoWatch

doubleClickHandlerproperty 
protected var doubleClickHandler:DoubleClickHandler

modelproperty 
model:IPreviewModel

This property can be used as the source for data binding.


Implementation
    public function get model():IPreviewModel
    public function set model(value:IPreviewModel):void
PLAYINGproperty 
public static var PLAYING:String = playing

PLAYING_HOVERproperty 
public static var PLAYING_HOVER:String = playingHover

sourceproperty 
source:Object  [write-only] [override]


Implementation
    public function set source(value:Object):void
STOPPEDproperty 
public static var STOPPED:String = stopped

STOPPED_HOVERproperty 
public static var STOPPED_HOVER:String = stoppedHover

Constructor Detail
VideoPreview()Constructor
public function VideoPreview()



Method Detail
attachSkin()method
override protected function attachSkin():void

detachSkin()method 
override protected function detachSkin():void

getCurrentSkinState()method 
override protected function getCurrentSkinState():String

Returns
String
partAdded()method 
override protected function partAdded(partName:String, instance:Object):void

Parameters

partName:String
 
instance:Object

partRemoved()method 
override protected function partRemoved(partName:String, instance:Object):void

Parameters

partName:String
 
instance:Object