|
-
help? anyone? (Audio related problem)
Hey peeps.
Just need a clear perspective on this.
I've got a sound file playing on my site mc's timeline with this:
// create sound
var sound:Sound = new Sound (this);
sound.attachSound ("dubbed");
// and start playing
sound.start(0,999);
// define a variable which knows when the sound is playing
var isPlaying = true;
// define a variable which knows when the sound isn't playing
var notPlaying = false;
//play button
play_btn.onRelease = function()
{
// if the sound is playing
if (notPlaying)
{
// start it
sound.start();
}
}
//pause button
stop_btn.onRelease = function()
{
// if the sound is playing
if (isPlaying)
{
// stop it
sound.stop();
}
}
The play/stop buttons don't work ? :S
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|