ciao! sto impazzendo con questo codice che dovrebbe caricarmi un wav ma la musica non si sente in nessun modo: non so cosa può essere forse qualcosa nelle impostazioni o c'è un errore?? questo è il codice: (le casse sono accese e se associo un suono ad un fotogramma lo sento ma musica.wav che è sul server e ho provato a sentirlo e funziona il mio filmato flash lo carica ma non si sente, - il percorso è giusto - qualche idea??
codice:file1="musica.wav"; function song(file){ mySound = new Sound(); mySound.onLoad = function(success){ output.text = file; } mySound.loadSound("files/"+file, false); //pause = false; _root.control.onEnterFrame = function(){ tot = mySound.getBytesTotal(); loa = mySound.getBytesLoaded(); if (loa != tot) { output.text = "loading... " + Math.round((loa / tot) * 100) + "%"; } else { output.text = "playing..."+file; //gotoAndStop("artista"); delete _root.control.onEnterFrame; mySound.start(0, 9999); //gotoAndStop("istruzioni"); } }; } song(file1);![]()
![]()
![]()

Rispondi quotando
