PDA

View Full Version : play/stop issue


whitemotel
02-12-2006, 12:54 PM
whazzzzup..

im hoping someone can help me out on this forum...i created a simple audio control that plays and stops a audio track....the tracks plays when the page loads...but when you stop it, and click on another button besides play, it will play the track again...i have added variables, if statments, but no luck...check it out for yourself @ www.beatmanproductions.com...i am using flash mx...

here is the code i use on the buttons...

on (press) {
set ("_root.bgmusic",1);
tellTarget ("_root.bgmusic") {
gotoAndPlay(1);
}
}
-----------------
on (press) {
set ("_root.bgmusic",0);
tellTarget ("bgmusic") {
gotoAndStop(1651);
}
}

thanks for you help...

whitemotel

Glen Charles Rowell
02-12-2006, 01:46 PM
Do you want a pause button instead?

whitemotel
02-12-2006, 01:54 PM
i actually tried pausing current frame...for some odd reason, pressing other buttons on timeline, it plays the track again....its like it ignores the variables...frustrating