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
The aspect ratio of the preview.
VideoPreview
  model : IPreviewModel
The current preview model.
VideoPreview
  PAUSED : String = paused
[static] The "paused" state for VideoPreview and its skin
VideoPreview
  PAUSED_HOVER : String = pausedHover
[static] The "pausedHover" state for VideoPreview and its skin
VideoPreview
  PLAYING : String = playing
[static] The "playing" state for VideoPreview and its skin
VideoPreview
  PLAYING_HOVER : String = playingHover
[static] The "playingHover" state for VideoPreview and its skin
VideoPreview
  source : Object
[override] [write-only]
VideoPreview
  STOPPED : String = stopped
[static] The "stopped" state for VideoPreview and its skin
VideoPreview
  STOPPED_HOVER : String = stoppedHover
[static] The "stoppedHover" state for VideoPreview and its skin
VideoPreview
Protected Properties
 PropertyDefined By
  autoWatch : AutoWatch
VideoPreview
  controlBarChanging : Boolean
VideoPreview
  doubleClickHandler : DoubleClickHandler
VideoPreview
  rollOver : Boolean
VideoPreview
  skinState : String
VideoPreview
Public Methods
 MethodDefined By
  
Constructor
VideoPreview
Protected Methods
 MethodDefined By
  
attachSkin():void
[override]
VideoPreview
  
VideoPreview
  
VideoPreview
  
detachSkin():void
[override]
VideoPreview
  
[override]
VideoPreview
  
initStates():void
VideoPreview
  
keyboardHandler(event:KeyboardEvent):void
VideoPreview
  
mouseClickHandler(event:MouseEvent):void
VideoPreview
  
onMediaStateChange(e:MediaPlayerStateChangeEvent):void
VideoPreview
  
partAdded(partName:String, instance:Object):void
[override]
VideoPreview
  
partRemoved(partName:String, instance:Object):void
[override]
VideoPreview
  
rollOutHandler(e:Event):void
VideoPreview
  
rollOverHandler(e:Event):void
VideoPreview
  
VideoPreview
  
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
  
controlBar:spark.components.Group
Required: false Part Type: Static
An optional skin part to display a slideable control bar
VideoPreview
  
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
A required skin part to handle double-click events.
VideoPreview
Protected Constants
 ConstantDefined By
  NEAR_ZERO : Number = 0.041666666666666664
[static]
VideoPreview
Property Detail
aspectRatioproperty
aspectRatio:Number

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

The aspect ratio of the preview.

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


Implementation
    public function get aspectRatio():Number
    public function set aspectRatio(value:Number):void

See also

autoWatchproperty 
protected var autoWatch:AutoWatch

controlBarChangingproperty 
protected var controlBarChanging:Boolean

doubleClickHandlerproperty 
protected var doubleClickHandler:DoubleClickHandler

modelproperty 
model:IPreviewModel

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

The current preview model.

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


Implementation
    public function get model():IPreviewModel
    public function set model(value:IPreviewModel):void

See also

PAUSEDproperty 
public static var PAUSED:String = paused

Language Version : ActionScript 3.0
Product Version : Flex 4
Runtime Versions : Flash Player 10, AIR 1.5

The "paused" state for VideoPreview and its skin

PAUSED_HOVERproperty 
public static var PAUSED_HOVER:String = pausedHover

Language Version : ActionScript 3.0
Product Version : Flex 4
Runtime Versions : Flash Player 10, AIR 1.5

The "pausedHover" state for VideoPreview and its skin

PLAYINGproperty 
public static var PLAYING:String = playing

Language Version : ActionScript 3.0
Product Version : Flex 4
Runtime Versions : Flash Player 10, AIR 1.5

The "playing" state for VideoPreview and its skin

PLAYING_HOVERproperty 
public static var PLAYING_HOVER:String = playingHover

Language Version : ActionScript 3.0
Product Version : Flex 4
Runtime Versions : Flash Player 10, AIR 1.5

The "playingHover" state for VideoPreview and its skin

rollOverproperty 
protected var rollOver:Boolean

skinStateproperty 
skinState:String


Implementation
    protected function get skinState():String
    protected function set skinState(value:String):void
sourceproperty 
source:Object  [write-only] [override]


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

Language Version : ActionScript 3.0
Product Version : Flex 4
Runtime Versions : Flash Player 10, AIR 1.5

The "stopped" state for VideoPreview and its skin

STOPPED_HOVERproperty 
public static var STOPPED_HOVER:String = stoppedHover

Language Version : ActionScript 3.0
Product Version : Flex 4
Runtime Versions : Flash Player 10, AIR 1.5

The "stoppedHover" state for VideoPreview and its skin

Constructor Detail
VideoPreview()Constructor
public function VideoPreview()

Language Version : ActionScript 3.0
Product Version : Flex 4
Runtime Versions : Flash Player 10, AIR 1.5

Constructor

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

controlBar_mouseDownHandler()method 
protected function controlBar_mouseDownHandler(e:Event):void

Parameters

e:Event

controlBar_mouseUpHandler()method 
protected function controlBar_mouseUpHandler(e:Event):void

Parameters

e:Event

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

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

Returns
String
initStates()method 
protected function initStates():void

keyboardHandler()method 
protected function keyboardHandler(event:KeyboardEvent):void

Parameters

event:KeyboardEvent

mouseClickHandler()method 
protected function mouseClickHandler(event:MouseEvent):void

Parameters

event:MouseEvent

onMediaStateChange()method 
protected function onMediaStateChange(e:MediaPlayerStateChangeEvent):void

Parameters

e:MediaPlayerStateChangeEvent

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

rollOutHandler()method 
protected function rollOutHandler(e:Event):void

Parameters

e:Event

rollOverHandler()method 
protected function rollOverHandler(e:Event):void

Parameters

e:Event

setDimensions()method 
protected function setDimensions():void

setInvalidVideo()method 
protected function setInvalidVideo():void

Constant Detail
NEAR_ZEROConstant
protected static const NEAR_ZERO:Number = 0.041666666666666664