Packagecom.adobe.portfolio.previews
Classpublic class AudioPreview
InheritanceAudioPreview Inheritance NavSkinnableComponent Inheritance spark.components.supportClasses.SkinnableComponent

Language Version : ActionScript 3.0



Public Properties
 PropertyDefined By
  model : IPreviewModel
AudioPreview
  playing : Boolean
[read-only]
AudioPreview
 InheritedskinState : String
NavSkinnableComponent
  source : Object
AudioPreview
  STATE_PAUSED : String = paused
[static]
AudioPreview
  STATE_PAUSED_HOVER : String = pausedHover
[static]
AudioPreview
  STATE_PLAYING : String = playing
[static]
AudioPreview
  STATE_PLAYING_HOVER : String = playingHover
[static]
AudioPreview
  STATE_STOPPED : String = stopped
[static]
AudioPreview
  STATE_STOPPED_HOVER : String = stoppedHover
[static]
AudioPreview
  visible : Boolean
[override] [write-only]
AudioPreview
  volume : Number
AudioPreview
Protected Properties
 PropertyDefined By
 InheritedautoListen : AutoListen
NavSkinnableComponent
 InheritedautoWatch : AutoWatch
NavSkinnableComponent
  doubleClickHandler : DoubleClickHandler
AudioPreview
  scrubBarChanging : Boolean
AudioPreview
  scrubBarMouseCaptured : Boolean
AudioPreview
 Inherited_skinState : String
NavSkinnableComponent
  sound : Sound
AudioPreview
  soundChannel : SoundChannel
AudioPreview
  wasPlayingBeforeSeeking : Boolean
AudioPreview
Public Methods
 MethodDefined By
  
AudioPreview
 Inherited
NavSkinnableComponent
  
pause():void
AudioPreview
  
play():void
AudioPreview
 Inherited
NavSkinnableComponent
  
setCurrentState(stateName:String, playTransition:Boolean = true):void
[override]
AudioPreview
Protected Methods
 MethodDefined By
 Inherited
addListener(listener:IEventDispatcher, type:String, handler:Function, useCapture:Boolean = false, priority:int = 0):void
NavSkinnableComponent
 Inherited
addWatcher(watcher:ChangeWatcher):void
NavSkinnableComponent
  
attachSkin():void
[override]
AudioPreview
  
detachSkin():void
[override]
AudioPreview
 Inherited
[override]
NavSkinnableComponent
  
initStates():void
[override]
AudioPreview
  
partAdded(partName:String, instance:Object):void
[override]
AudioPreview
 Inherited
partRemoved(partName:String, instance:Object):void
[override]
NavSkinnableComponent
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
  
currentTimeDisplay:spark.components.Label
Required: false Part Type: Static
An optional skin part to display the current time
AudioPreview
  
durationDisplay:spark.components.Label
Required: false Part Type: Static
An optional skin part to display the duration
AudioPreview
  
hoverPlay:spark.components.Button
Required: false Part Type: Static
An optional skin part to display the hover play button.
AudioPreview
  
muteButton:spark.components.mediaClasses.MuteButton
Required: false Part Type: Static
An optional skin part to display the mute button.
AudioPreview
  
playerControls:spark.components.Group
Required: false Part Type: Static
An optional skin part to display the player controls.
AudioPreview
  
playPauseButton:spark.components.ToggleButton
Required: false Part Type: Static
An optional skin part to display the play/pause button.
AudioPreview
  
scrubBar:spark.components.mediaClasses.ScrubBar
Required: false Part Type: Static
An optional skin part to display the scrubBar.
AudioPreview
Public Constants
 ConstantDefined By
 InheritedSTATE_DISABLED : String = disabled
[static]
NavSkinnableComponent
 InheritedSTATE_NORMAL : String = normal
[static]
NavSkinnableComponent
Protected Constants
 ConstantDefined By
  DELTA_TO_END : Number = 10
[static]
AudioPreview
Property Detail
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 
playing:Boolean  [read-only]


Implementation
    public function get playing():Boolean
scrubBarChangingproperty 
protected var scrubBarChanging:Boolean

scrubBarMouseCapturedproperty 
protected var scrubBarMouseCaptured:Boolean

soundproperty 
protected var sound:Sound

soundChannelproperty 
protected var soundChannel:SoundChannel

sourceproperty 
source:Object

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


Implementation
    public function get source():Object
    public function set source(value:Object):void
STATE_PAUSEDproperty 
public static var STATE_PAUSED:String = paused

STATE_PAUSED_HOVERproperty 
public static var STATE_PAUSED_HOVER:String = pausedHover

STATE_PLAYINGproperty 
public static var STATE_PLAYING:String = playing

STATE_PLAYING_HOVERproperty 
public static var STATE_PLAYING_HOVER:String = playingHover

STATE_STOPPEDproperty 
public static var STATE_STOPPED:String = stopped

STATE_STOPPED_HOVERproperty 
public static var STATE_STOPPED_HOVER:String = stoppedHover

visibleproperty 
visible:Boolean  [write-only] [override]


Implementation
    public function set visible(value:Boolean):void
volumeproperty 
volume:Number


Implementation
    public function get volume():Number
    public function set volume(value:Number):void
wasPlayingBeforeSeekingproperty 
protected var wasPlayingBeforeSeeking:Boolean

Constructor Detail
AudioPreview()Constructor
public function AudioPreview()



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

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

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

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

Parameters

partName:String
 
instance:Object

pause()method 
public function pause():void

play()method 
public function play():void

setCurrentState()method 
override public function setCurrentState(stateName:String, playTransition:Boolean = true):void

Parameters

stateName:String
 
playTransition:Boolean (default = true)

Constant Detail
DELTA_TO_ENDConstant
protected static const DELTA_TO_END:Number = 10