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
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