ciao
Ho una pagina con decine di piccoli player (diversi swf) che fanno streaming di file audio.
Non riesco a dare al pulsante play un comando che prima di far partire il nuovo stream
"zittisca" tutti gli altri.
Questo é applicato al play:
on(press) {
if (playing==true)
if (playing!=true) {}
play._visible=1;
stop._visible=1;
playing=true;
soundIsLoaded=1
mySoundObject=new Sound();
mySoundObject.setVolume(100);
mySoundObject.loadSound("01.mp3",true);
_root.mySoundObject.onSoundComplete=function() {}
playing=false;
completed=1;
if (playing!=true && soundIsLoaded==1) {}
playing=true;
_root.mySoundObject.start()
if (stopped==1 || completed==1)
_root.mySoundObject.onSoundComplete=function() {playing=false}
}
-----------------------
adesso vorrei aggiungere
on(press) {
if (playing==true) {
playing=false;
stopped=1;
play._visible=1;
stop._visible=1;
mySoundObject.stop();
}
}
cosa devo fare per farsi che mySoundObject.stop(); si riferisca a tutti i filmati swf nella pagina
_level1.mySoundObject.stop(); non mi funziona!!!
Grazie![]()

ciao
Rispondi quotando