hi everyone,
i have a problem with my sound here. The sound has to be loaded as soon as the movie starts, but there are buttons in the movie that take it to the beginning of the timeline (they are necessary), so every time one of those buttons is pressed the sound starts playing all over again. But I only need it to be played once! Despite going back to the beginning of the timeline…
here is my code:
RingSound = new Sound(this);
RingSound.attachSound("ring.mp3");
RingSound.start(6);
this.ring.onRelease = function () {
RingSound.stop();
basically, i need to add something that would prevent the sound from attaching itself again…i suppose an if statement but i’m not sure! Please help!!!