Skip to main content
Inspiring
January 15, 2007
Question

Advanced Sounds..

  • January 15, 2007
  • 1 reply
  • 157 views
I have some animation where a sound plays on several dynamically created
objects on my screen.

Here's my sound as:
// ------------ walking
soundWalking:Sound = new Sound(this);
soundWalking.attachSound("walkin");

function walkingSnd() {
soundWalking.start(0,1);
};
function walkingStopSnd() {
soundWalking.stop();
};

// ----------- stand
var soundStand:Sound = new Sound(this);
soundStand.attachSound("stand");

function standingSnd() {
soundStand.start(0,1);
};

Unfortunately, once "walkingStopSnd()" is called anywhere in my
actionscript, all the other sounds for each object stops also..

Any way to get around this?

Thanks

-Bill
This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
January 15, 2007
use a different timeline for each sound that you want to control independently. you're using "this" timeline for both the sounds shown.