# Sound.loadSound()

#### Availability

Flash Player 6.

#### Usage

`my_sound.loadSound`("`url`", `isStreaming`)

#### Parameters

`url` The location on a server of an MP3 sound file.

`isStreaming` A Boolean value that indicates whether the sound is a streaming sound (`true`) or event sound (`false`).

#### Returns

Nothing.

#### Description

Method; loads an MP3 file into an instance of the Sound object. You can use the `isStreaming` parameter to indicate whether the sound is an event or a streaming sound.

Event sounds are completely loaded before they play. They are managed by the ActionScript Sound object and respond to all methods and properties of this object.

Streaming sounds play while they are downloading. Playback begins when sufficient data has been received to start the decompressor.

All MP3s (event or streaming) loaded with this method are saved in the browser's file cache on the user's system.

#### Example

The following example loads an event sound:

    my_sound.loadSound( "http://serverpath:port/mp3filename", false);

The following example loads a streaming sound:

    my_sound.loadSound( "http://serverpath:port/mp3filename", true);

#### See also

`Sound.onLoad()`