| Package | com.adobe.portfolio.previews |
| Class | public class AudioPreview |
| Inheritance | AudioPreview NavSkinnableComponent spark.components.supportClasses.SkinnableComponent |
| Language Version : | ActionScript 3.0 |
| Product Version : | Portfolio 10.0 |
| Runtime Versions : | Flash Player 10.1, AIR 2.0 |
| Property | Defined By | ||
|---|---|---|---|
| model : IPreviewModel | AudioPreview | ||
| playing : Boolean [read-only] | AudioPreview | ||
![]() | skinState : 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 | ||
| Property | Defined By | ||
|---|---|---|---|
![]() | autoListen : AutoListen | NavSkinnableComponent | |
![]() | autoWatch : AutoWatch | NavSkinnableComponent | |
| doubleClickHandler : DoubleClickHandler | AudioPreview | ||
| scrubBarChanging : Boolean | AudioPreview | ||
| scrubBarMouseCaptured : Boolean | AudioPreview | ||
![]() | _skinState : String | NavSkinnableComponent | |
| sound : Sound | AudioPreview | ||
| soundChannel : SoundChannel | AudioPreview | ||
| wasPlayingBeforeSeeking : Boolean | AudioPreview | ||
| Method | Defined By | ||
|---|---|---|---|
| AudioPreview | |||
![]() | addListenAndWatch():void | NavSkinnableComponent | |
pause():void | AudioPreview | ||
play():void | AudioPreview | ||
![]() | removeListenAndWatch():void | NavSkinnableComponent | |
setCurrentState(stateName:String, playTransition:Boolean = true):void [override] | AudioPreview | ||
| Method | Defined By | ||
|---|---|---|---|
![]() | addListener(listener:IEventDispatcher, type:String, handler:Function, useCapture:Boolean = false, priority:int = 0):void | NavSkinnableComponent | |
![]() | addWatcher(watcher:ChangeWatcher):void | NavSkinnableComponent | |
attachSkin():void [override] | AudioPreview | ||
detachSkin():void [override] | AudioPreview | ||
![]() | getCurrentSkinState():String [override] | NavSkinnableComponent | |
initStates():void [override] | AudioPreview | ||
partAdded(partName:String, instance:Object):void [override] | AudioPreview | ||
![]() | partRemoved(partName:String, instance:Object):void [override] | NavSkinnableComponent | |
This component uses skins made up of skin parts. Do not set the skin parts directly. The component's skin sets the skin parts.
| Constant | Defined By | ||
|---|---|---|---|
| DELTA_TO_END : Number = 10 [static] | AudioPreview | ||
| doubleClickHandler | property |
protected var doubleClickHandler:DoubleClickHandler| model | property |
model:IPreviewModelThis property can be used as the source for data binding.
public function get model():IPreviewModel public function set model(value:IPreviewModel):void| playing | property |
playing:Boolean [read-only] public function get playing():Boolean| scrubBarChanging | property |
protected var scrubBarChanging:Boolean| scrubBarMouseCaptured | property |
protected var scrubBarMouseCaptured:Boolean| sound | property |
protected var sound:Sound| soundChannel | property |
protected var soundChannel:SoundChannel| source | property |
source:ObjectThis property can be used as the source for data binding.
public function get source():Object public function set source(value:Object):void| STATE_PAUSED | property |
public static var STATE_PAUSED:String = paused| STATE_PAUSED_HOVER | property |
public static var STATE_PAUSED_HOVER:String = pausedHover| STATE_PLAYING | property |
public static var STATE_PLAYING:String = playing| STATE_PLAYING_HOVER | property |
public static var STATE_PLAYING_HOVER:String = playingHover| STATE_STOPPED | property |
public static var STATE_STOPPED:String = stopped| STATE_STOPPED_HOVER | property |
public static var STATE_STOPPED_HOVER:String = stoppedHover| visible | property |
visible:Boolean [write-only] [override] public function set visible(value:Boolean):void| volume | property |
volume:Number public function get volume():Number public function set volume(value:Number):void| wasPlayingBeforeSeeking | property |
protected var wasPlayingBeforeSeeking:Boolean| AudioPreview | () | Constructor |
public function AudioPreview()| 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):voidParameters
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):voidParameters
stateName:String | |
playTransition:Boolean (default = true) |
| DELTA_TO_END | Constant |
protected static const DELTA_TO_END:Number = 10