Joshua_abdon_sly
%Europe/Berlin %757 %2008, 19:10
Beste FF'ers,
Ik zou graag een muziekje laten horen als je op de play/stop knop drukt, dit is me al gelukt, maar nu wil ik als het muziekje stopt, de stop knop weergegeven wordt.
De voorlopige code:
var bgsound:Sound = new Sound();
bgsound.loadSound("background.mp3", false);
bgsound.onSoundComplete = function() {
bgsound.stop();
};
playstop_mc.stop();
playstop_mc.onRelease = function() {
if (!go) {
go = true;
bgsound.start(0);
this.nextFrame();
} else {
bgsound.stop();
this.prevFrame();
go = false;
}
};
Iemand een suggestie?
grtz
Josh
Ik zou graag een muziekje laten horen als je op de play/stop knop drukt, dit is me al gelukt, maar nu wil ik als het muziekje stopt, de stop knop weergegeven wordt.
De voorlopige code:
var bgsound:Sound = new Sound();
bgsound.loadSound("background.mp3", false);
bgsound.onSoundComplete = function() {
bgsound.stop();
};
playstop_mc.stop();
playstop_mc.onRelease = function() {
if (!go) {
go = true;
bgsound.start(0);
this.nextFrame();
} else {
bgsound.stop();
this.prevFrame();
go = false;
}
};
Iemand een suggestie?
grtz
Josh