anyone know how to do this? if you could write the actual actionscript out for me that would be awesome. Been having a lot of trouble lately :(
I tried
on (release) {
sound1.stop();
}
I am such a newb so I don't know whats wrong
anyone know how to do this? if you could write the actual actionscript out for me that would be awesome. Been having a lot of trouble lately :(
I tried
on (release) {
sound1.stop();
}
I am such a newb so I don't know whats wrong
That code is indeed correct. You just need to make a sound object first on the button that plays the sound:
on(release){
sound1 = new Sound();
sound1.attachSound("sound");
sound1.start();
}
then you simply use the above code on another button to stop that particular sound object ;)
And btw, I am actually right now, trying to write a script which will do what you wanted in your previous topic, so stay tuned :P