Hey, I'm working on a simple play/pause button for a wav file.
Starting script:
Code:
sound = element("sound track 3 edited");
playing = false;
I have two buttons: Play Button and Stop Button. In the Play Button's button up event I have the script:
Code:
if (!playing)
{
sound.start(pos);
element ("Play Button").hide();
element ("Stop Button").show();
}
and in the Stop Button's Button up event:
Code:
if (!playing)
{
pos = sound.position;
sound.stop();
element ("Stop Button").hide();
element ("Play Button").show();
}
When I trace(pos) what seems to be happening is the sound.position property isn't giving a correct position of the playing sound.
Very strange. How would I start a sound at a offset in seconds?
Thanks for reading, I hope this 3dfa forum isn't to dead to be asking a question on it.