Method | Defined by | ||
---|---|---|---|
Player()
| Player | ||
fastForward(ms:Number):void
Fast forwarding the audio by milliseconds
| Player | ||
getIsLooping():Boolean
Returns the isLooping property.
| Player | ||
getIsPlaying():Boolean
| Player | ||
getPlayList():Array
Returns the playlist
| Player | ||
getPlayListLenght():Number
Returns the length of the playlist
| Player | ||
getPlayListPosition():Number
Returns the position of the playlist
| Player | ||
getPosition():Number
| Player | ||
getRate():Number
The rate of the sound
| Player | ||
Returns the current song
| Player | ||
getSourceLength():Number
| Player | ||
getTempo():Number
| Player | ||
Player | |||
open():void
Opens the "Open file" dialog box
| Player | ||
pause():void
Pausing the audio
| Player | ||
pitchOctaves(pitchOctaves:Number):void
Pitching the audio octaves up or down but retains the speed
| Player | ||
play():void
Starts playing the audio
| Player | ||
playNext():void
Plays the next song on the playlist
| Player | ||
playPrevious():void
Plays the previous song on the playlist
| Player | ||
removeFromPlayList(index:uint):void
| Player | ||
rewind(ms:Number):void
Rewinding the audio by milliseconds
| Player | ||
setFiles(files:Object):void
| Player | ||
setIsPlaying(isPlaying:Boolean):void
| Player | ||
setLoopRange(loopRange:LoopRange):void
| Player | ||
setPitch(rate:Number):void
Pitching down or up the sound and speed
| Player | ||
setPosition(sourcePosition:Number):void
Set the source position of the sound
| Player | ||
setRecentOpenedFiles(files:Array):void
| Player | ||
setSemiTones(semiTones:Number):void
Pitching the audio semitones up or down but retains the speed
| Player | ||
setTempo(tempo:Number):void
Changing the speed of the sound without changing the pitch
| Player | ||
setVolume(volume:Number):void
| Player | ||
stop():void
Stopping the audio
| Player | ||
toggleLoop():void
Turns looping on and off.
| Player |
Player | () | constructor |
public function Player()
fastForward | () | method |
public function fastForward(ms:Number):void
Fast forwarding the audio by milliseconds
Parametersms:Number — Number of milliseconds to step forward
|
getIsLooping | () | method |
public function getIsLooping():Boolean
Returns the isLooping property.
ReturnsBoolean — Returns true if the player is playing
|
getIsPlaying | () | method |
public function getIsPlaying():Boolean
Returns
Boolean — If the player is playing or not
|
getPlayList | () | method |
public function getPlayList():Array
Returns the playlist
ReturnsArray |
getPlayListLenght | () | method |
public function getPlayListLenght():Number
Returns the length of the playlist
ReturnsNumber |
getPlayListPosition | () | method |
public function getPlayListPosition():Number
Returns the position of the playlist
ReturnsNumber |
getPosition | () | method |
public function getPosition():Number
Returns
Number — Returns the actual position of the sound in milliseconds
|
getRate | () | method |
public function getRate():Number
The rate of the sound
ReturnsNumber |
getSong | () | method |
getSourceLength | () | method |
public function getSourceLength():Number
Returns
Number — Returns the actual length of the loaded sound
|
getTempo | () | method |
public function getTempo():Number
Returns
Number — Returns the tempo of the sound in percent where 1 is 100%
|
loadSong | () | method |
open | () | method |
public function open():void
Opens the "Open file" dialog box
pause | () | method |
public function pause():void
Pausing the audio
pitchOctaves | () | method |
public function pitchOctaves(pitchOctaves:Number):void
Pitching the audio octaves up or down but retains the speed
ParameterspitchOctaves:Number — Number of octaves to pitch up or down. -1 pitch one octave down, and 1 pitch one octave up
|
play | () | method |
public function play():void
Starts playing the audio
playNext | () | method |
public function playNext():void
Plays the next song on the playlist
playPrevious | () | method |
public function playPrevious():void
Plays the previous song on the playlist
removeFromPlayList | () | method |
public function removeFromPlayList(index:uint):void
Parameters
index:uint |
rewind | () | method |
public function rewind(ms:Number):void
Rewinding the audio by milliseconds
Parametersms:Number — Number of milliseconds to step backward
|
setFiles | () | method |
public function setFiles(files:Object):void
Parameters
files:Object |
setIsPlaying | () | method |
public function setIsPlaying(isPlaying:Boolean):void
Parameters
isPlaying:Boolean |
setLoopRange | () | method |
setPitch | () | method |
public function setPitch(rate:Number):void
Pitching down or up the sound and speed
Parametersrate:Number — Sets the pitch and tempo of the sound in percent where 1 is 100%
|
setPosition | () | method |
public function setPosition(sourcePosition:Number):void
Set the source position of the sound
ParameterssourcePosition:Number — The position in milliseconds
|
setRecentOpenedFiles | () | method |
public function setRecentOpenedFiles(files:Array):void
Parameters
files:Array |
setSemiTones | () | method |
public function setSemiTones(semiTones:Number):void
Pitching the audio semitones up or down but retains the speed
ParameterssemiTones:Number — Number of semitones to pitch up of down. -1 pitch one semitone down and 2 pitch a whole tone up
|
setTempo | () | method |
public function setTempo(tempo:Number):void
Changing the speed of the sound without changing the pitch
Parameterstempo:Number — Sets the tempo of the sound in percent where 1 is 100%
|
setVolume | () | method |
public function setVolume(volume:Number):void
Parameters
volume:Number |
stop | () | method |
public function stop():void
Stopping the audio
toggleLoop | () | method |
public function toggleLoop():void
Turns looping on and off. Default it is set to off.