Hi All,
I want to play Audio in flex application.I am using SWFLoader for it.Is there any other way to load audio into Flex applications.
Thanks & Regards, Prasanth Babu
Hi All,
I want to play Audio in flex application.I am using SWFLoader for it.Is there any other way to load audio into Flex applications.
Thanks & Regards, Prasanth Babu
Check out the flash.media.Sound class.
The
Sound
class lets you work with sound in an application. TheSound
class lets you create a new Sound object, load and play an external MP3 file into that object, close the sound stream, and access data about the sound, such as information about the number of bytes in the stream and ID3 metadata. More detailed control of the sound is performed through the sound source — theSoundChannel
orMicrophone
object for the sound — and through the properties in theSoundTransform
class that control the output of the sound to the computer's speakers.To control sounds that are embedded in a SWF file, use the properties in the
SoundMixer
class.