Packageorg.audiofx.mp3
Classpublic class MP3FileReferenceLoader
InheritanceMP3FileReferenceLoader Inheritance flash.events.EventDispatcher

Class for loading MP3 files from a FileReference

See also

flash.net.FileReference


Public Methods
 MethodDefined by
  
Constructs an new MP3FileReferenceLoader instance
MP3FileReferenceLoader
  
getSound(fr:FileReference):void
Once a FileReference instance has been obtained, and the user has browsed to a file, call getSound to start loading the MP3 data.
MP3FileReferenceLoader
Events
 EventSummaryDefined by
   Dispatched when the MP3 data is loaded MP3FileReferenceLoader
Constructor detail
MP3FileReferenceLoader()constructor
public function MP3FileReferenceLoader()

Constructs an new MP3FileReferenceLoader instance

Method detail
getSound()method
public function getSound(fr:FileReference):void

Once a FileReference instance has been obtained, and the user has browsed to a file, call getSound to start loading the MP3 data. When the data is ready, an MP3SoundEvent.COMPLETE event is emitted.

Parameters
fr:FileReference — A reference to a local file.

See also

Event detail
completeevent 
Event object type: org.audiofx.mp3.MP3SoundEvent
MP3SoundEvent.type property = org.audiofx.mp3.MP3SoundEvent.COMPLETE

Dispatched when the MP3 data is loaded

Used to signal the loading of a sound by the MP3FileReferenceLoader following a call to MP3FileReferenceLoader.getSound