Ciao a tutti.
Ho un problema stranissimo con una pagina web.
In as2 il filmato flash carica alcuni dati xml (passo 1), carica un file mp3 (passo 2) e poi parte.
Il mio problema è che su alcuni computer parte in modo anomalo!
il passo 1 è ottenuto con
var caricaXML:XML = new XML();
caricaXML.ignoreWhite = true;
caricaXML.onLoad = leggiXML;
caricaXML.load(_root.sorgente_str);
function leggiXML(succes:Boolean) {
if (succes == true) {
_root.gotoAndPlay("carica_musica");
}
else{
_root.gotoAndPlay("genera_errore");
}
stop();
il passo 2 con
var musica:Sound = new Sound();
// Create the polling function that tracks download progress.
// This is the function that is "polled." It checks
// the downloading progress of the Sound object passed as a reference.
function checkProgress (soundObj:Object):Void {
var numBytesLoaded:Number = soundObj.getBytesLoaded();
var numBytesTotal:Number = soundObj.getBytesTotal();
var numPercentLoaded:Number = Math.floor(numBytesLoaded / numBytesTotal * 100);
if (!isNaN(numPercentLoaded)) {
trace(numPercentLoaded + "% loaded.");
_root.tota.text = "loading sound: " + numPercentLoaded + " %";
}
};
// When the file has finished loading, clear the interval polling.
musica.onLoad = function ():Void {
trace("load complete");
clearInterval(poll);
_root.musica_on = true;
musica.start();
gotoAndPlay("start_site");
};
// Load streaming MP3 file and start calling checkProgress(),
musica.loadSound("sounds/t1.mp3", false);
var poll:Number = setInterval(checkProgress, 100, musica);
stop();
Il problema è che su alcuni pc tutto fila liscio mentre su altri non carica i dati xml mentre su altri tutto fila liscio.
il link è: www.livingislife.it/test1.html
Qualcuno mi sa dire dove sbaglio?
Un saluto.

Rispondi quotando