Clear object

I make a sound object

mSound = new Sound();

How can I clear mSound as in earasing whatever is in it?

Don think you can unload sound

from tute:

mySound = new Sound();
mySound.loadSound(“music.mp3”,true);

you can stop the sound:

mySound.stop()

but rather than unloading you just reload another one in

The sounds object can either be used globally or through a movie clip:

Global: [FONT=courier new][color=blue]new Sound/color;[/FONT]

Movie Clip: [FONT=courier new][color=blue]new Sound/color;[/FONT]

If you load the sound into a movie clip just unload the movie clip!

Thank you:)

This is my new set up.

screen = new Sound(sclip);

One button that has

on (release) {
screen.loadSound(“burnout.mp3”, true);
}

2nd button

on (release) {
unloadMovie(sclip);
}

I hit the 1st button and the song starts, then I hit the 2nd button and the sound does not stop. Should the sound stop or what is going wrong?

If you want to get rid of the object (or not use it anymore),
I would:


1st button

on(release){

//create your obj

mysound=new Sound();
mysound.loadsound("mysong.mp3",true);
}

2nd button

on(release){

mysound.stop();
mysound=new Sound();
}

//it is a poor man's unloader.

What I dont understand is, if it’s streaming, this is the same as just saying stop playing, because the Sound object still exists, it just wont respond to mysound.start();