I am trying to control Sound with actionscript and play and stop buttons.
This is the script I have in frame one of my scene.
introSound = new Sound();
introSound.attachSound(“intro”);
introSound.start();
playB.enabled = false;
playB.onRelease = function() {
introSound.start();
playB.enabled = false;
stopB.enabled = true;
};
stopB.onRelease = function() {
introSound.stop();
playB.enabled = true;
stopB.enabled = false;
};
intro is the linkage idname.
playB is the instance of the play button
stopB is the instance of the stop button
the sound intro is on its own layer and is selected as a streaming sound.
My problem is that when I stop and start the sound with the buttons the sound starts from the beginning instead of playing from the frame it is in.
Did I some how forget something.
Please Help
big red