Language Version : | ActionScript 3.0 |
Product Version : | Portfolio 10.0 |
Runtime Versions : | Flash Player 10.1, AIR 2.0 |
The AudioPreview class extends NavSkinnableComponent to play audio content.
protected var doubleClickHandler:DoubleClickHandler
duration:Number
Implementation public function get duration():Number
public function set duration(value:Number):void
protected static var fromHover:Object
protected var lastStreamTime:Number
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
playing:Boolean
[read-only]
Language Version : | ActionScript 3.0 |
Product Version : | Portfolio 10.0 |
Runtime Versions : | Flash Player 10.1, AIR 2.0 |
Whether the audio is playing or not.
Implementation public function get playing():Boolean
position:Number
Implementation protected function get position():Number
protected function set position(value:Number):void
protected var scrubBarChanging:Boolean
protected var scrubBarMouseCaptured:Boolean
protected var sound:Sound
protected var soundChannel:SoundChannel
source:Object
Language Version : | ActionScript 3.0 |
Product Version : | Portfolio 10.0 |
Runtime Versions : | Flash Player 10.1, AIR 2.0 |
The source data of an audio preview.
This property can be used as the source for data binding.
Implementation public function get source():Object
public function set source(value:Object):void
public static var STATE_MEDIA_ERROR:String = mediaError
Language Version : | ActionScript 3.0 |
Product Version : | Portfolio 10.1 |
Runtime Versions : | Flash Player 10, AIR 1.5 |
The "mediaError" state for AudioPreview and its skin
public static var STATE_PAUSED:String = paused
Language Version : | ActionScript 3.0 |
Product Version : | Portfolio 10.0 |
Runtime Versions : | Flash Player 10, AIR 1.5 |
The "paused" state for AudioPreview and its skin
public static var STATE_PAUSED_HOVER:String = pausedHover
Language Version : | ActionScript 3.0 |
Product Version : | Portfolio 10.0 |
Runtime Versions : | Flash Player 10, AIR 1.5 |
The "pausedHover" state for AudioPreview and its skin
public static var STATE_PLAYING:String = playing
Language Version : | ActionScript 3.0 |
Product Version : | Portfolio 10.0 |
Runtime Versions : | Flash Player 10, AIR 1.5 |
The "playing" state for AudioPreview and its skin
public static var STATE_PLAYING_HOVER:String = playingHover
Language Version : | ActionScript 3.0 |
Product Version : | Portfolio 10.0 |
Runtime Versions : | Flash Player 10, AIR 1.5 |
The "playingHover" state for AudioPreview and its skin
public static var STATE_STOPPED:String = stopped
Language Version : | ActionScript 3.0 |
Product Version : | Portfolio 10.0 |
Runtime Versions : | Flash Player 10, AIR 1.5 |
The "stopped" state for AudioPreview and its skin
public static var STATE_STOPPED_HOVER:String = stoppedHover
Language Version : | ActionScript 3.0 |
Product Version : | Portfolio 10.0 |
Runtime Versions : | Flash Player 10, AIR 1.5 |
The "stoppedHover" state for AudioPreview and its skin
protected var stream:NetStream
protected static var toHover:Object
protected var updateTimer:Timer
visible:Boolean
[write-only] [override]
Implementation public function set visible(value:Boolean):void
volume:Number
Language Version : | ActionScript 3.0 |
Product Version : | Portfolio 10.0 |
Runtime Versions : | Flash Player 10.1, AIR 2.0 |
The volume of the audio playback.
Implementation public function get volume():Number
public function set volume(value:Number):void
protected var wasPlayingBeforeSeeking:Boolean
public function AudioPreview()
Language Version : | ActionScript 3.0 |
Product Version : | Portfolio 10.0 |
Runtime Versions : | Flash Player 10, AIR 1.5 |
Constructor
override protected function attachSkin():void
override protected function detachSkin():void
protected function formatTimeValue(value:Number):String
Formats a time value, specified in seconds, into a String that
gets used for currentTime
and the duration
.
Parameters
| value:Number — Value in seconds of the time to format
|
Returns | String — Formatted time value
|
protected function handleUpdateTimer(e:Event):void
Parameters
protected function inHoverState():Boolean
Returns protected function initLookups():void
override protected function initStates():void
protected function keyboardHandler(event:KeyboardEvent):void
Parameters
protected function loadSound(mediaModel:IPreviewMediaModel):void
Parameters
protected function mouseClickHandler(event:MouseEvent):void
Parameters
protected function muteButton_changeHandler(event:Event):void
Parameters
protected function netStatusHandler(event:NetStatusEvent):void
Parameters
protected function onIOError(event:Error):void
Parameters
protected function onTunePlaybackComplete(event:Event = null):void
Parameters
| event:Event (default = null )
|
override protected function partAdded(partName:String, instance:Object):void
Parameters
| partName:String |
|
| instance:Object |
public function pause():void
Language Version : | ActionScript 3.0 |
Product Version : | Portfolio 10.0 |
Runtime Versions : | Flash Player 10, AIR 1.5 |
Pause the playback of audio.
public function play():void
Language Version : | ActionScript 3.0 |
Product Version : | Portfolio 10.0 |
Runtime Versions : | Flash Player 10, AIR 1.5 |
Start the playback of audio.
protected function playerControlsMouseClickHandler(event:MouseEvent):void
Parameters
protected function playPauseHandler(event:Event):void
Parameters
protected function rollOutHandler(e:Event):void
Parameters
protected function rollOverHandler(e:Event):void
Parameters
protected function scrubBar_changeEndHandler(event:Event):void
Parameters
protected function scrubBar_changeStartHandler(event:Event):void
Parameters
protected function scrubBar_mouseDownHandler(event:Event):void
Parameters
protected function scrubBar_thumbPressHandler(event:TrackBaseEvent):void
Parameters
protected function scrubBar_thumbReleaseHandler(event:TrackBaseEvent):void
Parameters
protected function seek(value:Number):void
Parameters
override public function setCurrentState(stateName:String, playTransition:Boolean = true):void
Language Version : | ActionScript 3.0 |
Product Version : | Portfolio 10.0 |
Runtime Versions : | Flash Player 10.1, AIR 2.0 |
Sets the current state of AudioPreview and its skin
Parameters
| stateName:String |
|
| playTransition:Boolean (default = true )
|
protected function togglePlay():void
protected function updateDuration():void
protected static const DELTA_TO_END:Number = 100
protected static const DONE_DELTA:int = 50
protected static const MP4_MIMETYPE:String = audio/mp4
Mon Apr 25 2011, 05:54 PM -07:00