Packageno.arton.guitarplayer
Classpublic class Player
InheritancePlayer Inheritance flash.display.Sprite

...



Public Methods
 MethodDefined by
  
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
  
Returns the length of the playlist
Player
  
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
  
loadSong(song:Song, itemId:int):void
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
Constructor detail
Player()constructor
public function Player()
Method detail
fastForward()method
public function fastForward(ms:Number):void

Fast forwarding the audio by milliseconds

Parameters
ms:Number — Number of milliseconds to step forward
getIsLooping()method 
public function getIsLooping():Boolean

Returns the isLooping property.

Returns
Boolean — 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

Returns
Array
getPlayListLenght()method 
public function getPlayListLenght():Number

Returns the length of the playlist

Returns
Number
getPlayListPosition()method 
public function getPlayListPosition():Number

Returns the position of the playlist

Returns
Number
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

Returns
Number
getSong()method 
public function getSong():Song

Returns the current song

Returns
Song
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 
public function loadSong(song:Song, itemId:int):voidParameters
song:Song
 
itemId:int
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

Parameters
pitchOctaves: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):voidParameters
index:uint
rewind()method 
public function rewind(ms:Number):void

Rewinding the audio by milliseconds

Parameters
ms:Number — Number of milliseconds to step backward
setFiles()method 
public function setFiles(files:Object):voidParameters
files:Object
setIsPlaying()method 
public function setIsPlaying(isPlaying:Boolean):voidParameters
isPlaying:Boolean
setLoopRange()method 
public function setLoopRange(loopRange:LoopRange):voidParameters
loopRange:LoopRange
setPitch()method 
public function setPitch(rate:Number):void

Pitching down or up the sound and speed

Parameters
rate: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

Parameters
sourcePosition:Number — The position in milliseconds
setRecentOpenedFiles()method 
public function setRecentOpenedFiles(files:Array):voidParameters
files:Array
setSemiTones()method 
public function setSemiTones(semiTones:Number):void

Pitching the audio semitones up or down but retains the speed

Parameters
semiTones: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

Parameters
tempo:Number — Sets the tempo of the sound in percent where 1 is 100%
setVolume()method 
public function setVolume(volume:Number):voidParameters
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.