loadSound()
Top  Previous  Next


SWiSH Player Support
SWF6 or later - Not Supported (Use File | Test | Browser/Player)

Syntax
soundObject.loadSound("url", isStreaming);

Arguments
url: path to the sound file to be loaded
isStreaming: a setting of "true" or "false" to indicate whether the Sound is streaming or not.

Returns
Nothing.

Description
Method; loads an .MP3 file located at the specified url into an instance of the specified Sound object. The isStreaming argument determines whether or not the sound is streaming or event-based.

Sample
onFrame (1{
    rockSong = new Sound(mySprite);
    rockSong.loadSound("http://www.yoursite.com/yoursong.mp3", true);
}