Salve a tutti.
Ho tre file 01.mp3 02.mp3 e 03.mp3 e dovrei farli eseguire sucessivamente tutti e tre in streaming.
Ho scritto il seguente codice :
codice:_root.site.barradestra.sottofondo = new Sound(); sottofondo.loadSound("01.mp3", true); _root.site.barradestra.sottofondo.onSoundComplete = function () { _root.site.barradestra.sottofondo.stop(); _root.site.barradestra.sottofondo = new Sound(); _root.brano+=1; if (_root.brano==4) {_root.brano=1;} if (_root.brano==1){loop="1.MysticTerry";} if (_root.brano==2){loop="2.Fly For Fall";} if (_root.brano==3){loop="3.Tomorrow";} _root.site.barradestra.sottofondo.loadSound("0"+_root.brano+".mp3",true); }
solo che esegue soltanto i due primi pezzi (01 e 02) e poi si ferma.
Cosa sbaglio?
thnx ^^

Rispondi quotando
