how to code a button to play and pause sound using load sound?
how to code a button to play and pause sound using load sound?I have used load sound methos to attach the sound.Can anyone help me?
how to code a button to play and pause sound using load sound?I have used load sound methos to attach the sound.Can anyone help me?
thnx but not working
.I have applied play n stop btn code on play n stop btn.is it fine or i have applied it at wrong place?
i can't determine where the sound is defined and where you're trying to control it. this will work but is sloppy coding:
stop();
adaDrut1.onRelease = function () {
_root.mySoundC = new Sound(this);
_root.mySoundC.loadSound("F#/Bhajni1.ark", true);
_root.mySoundC.onSoundComplete = function() {
this.start(); }
gotoAndPlay("play2");
_global.myTaalLaya = "Low1";
}
play_btn.onRelease=function(){
_root.mySoundC.start();
}
pause_btn.onRelease=function(){
_root.mySoundC.stop();
}
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.