Perdon por el OT de antes :) Estos de ya.com...

 Al grano,

 tengo el siguiente reproductor:

 <code>

 // VARIABLES GLOBALES
 var canciones:Array = new Array();
 canciones[0] = "01 - Swan Bwoy [Fyahbwoy] - Alianza no trata feat La
 Cobra.mp3";
 canciones[1] = "02 - Swan Bwoy [Fyahbwoy] - Por fumar (street swing
 riddim).mp3";
 canciones[2] = "03 - Swan Bwoy [Fyahbwoy] - Los Bwoys feat La Cobra
 (special Kachafayah sound).mp3";
 canciones[3] = "04 - Swan Bwoy [Fyahbwoy] - Nuh real shotta.mp3";
 canciones[4] = "05 - Swan Bwoy [Fyahbwoy] - Avecina tormenta (special
 Kaloncha sound).mp3";
 var titulos:Array = new Array();
 titulos[0] = "01 Alianza no trata feat La Cobra";
 titulos[1] = "02 Por fumar (street swing riddim)";
 titulos[2] = "03 Los Bwoys feat La Cobra (special Kachafayah sound)";
 titulos[3] = "04 Nuh real shotta";
 titulos[4] = "05 Avecina tormenta (special Kaloncha sound)";

 var suena:Boolean = false;
 var carga:Number = 0;

 var sonido:Sound = new Sound();

 _root.createEmptyMovieClip("vacio_mc",1000)

 // FUNCIONES
 function sCarga(vSound:Sound, vString:String):Void{
 vSound.onLoad = function(exito:Boolean){
  if(exito){
   this.start();
  }
 }
 vSound.onSoundComplete = function(){
  carga++;
 }
 vSound.loadSound("files/audio/"+vString,false);

 _root.vacio_mc.onEnterFrame = function() {
  var pct:Number = Math.round( vSound.getBytesLoaded()/
 vSound.getBytesTotal()*100);
  estado_txt.text = "Loading... SWAN BWOY " + pct + "%";
  cancion_txt.text = "";
  if(pct>=99.9){
   delete this.onEnterFrame;
   estado_txt.text = "Playing... SWAN BWOY";
   cancion_txt.text = titulos[carga];
  }
 }
 }

 // INICIALIZA SONIDO

 sCarga(sonido, canciones[carga]);

 // EVENTOS DE BOTON
 boton1_mc.onRollOver = boton2_mc.onRollOver = boton3_mc.onRollOver =
 boton4_mc.onRollOver = function(){
 this.gotoAndPlay('over');
 }
 boton1_mc.onRollOut = boton2_mc.onRollOut = boton3_mc.onRollOut =
 boton4_mc.onRollOut = function(){
 this.gotoAndStop('out');
 }
 boton3_mc.onRelease = function(){
 this._parent.carga--;
 if(this._parent.carga <= -1){
  this._parent.carga = this._parent.canciones.length-1;
 }
 trace(this._parent.carga);
 this._parent.sCarga(this._parent.sonido,
 this._parent.canciones[this._parent.carga]);
 }
 boton4_mc.onRelease = function(){
 this._parent.carga++;
 if(this._parent.carga >= this._parent.canciones.length){
  this._parent.carga = 0;
 }
 trace(this._parent.carga);
 this._parent.sCarga(this._parent.sonido,
 this._parent.canciones[this._parent.carga]);
 }



 </code>

 Si lo pruebo en LOCAL me funciona la precarga del sonido. Si lo pruebo a
 traves de mi SERVIDOR LOCAL (localhost) tambien se me ve la precarga del
 sonido. Si lo subo a la web no hace ni puto caso a la precarga, y no hace 
el
 loading, ¿Por que pasa esto? me estoy dejando la cabeza y no encuentro
 solucion!!!

 Por cierto, tengo el Player 9 instalado y lo pruebo tanto en Explorer 7,
 FireFox 2 y NetsCape 8.1 y na'd'na

 ¿Puede ser por el servidor en el que esta alojado?

 os dejo la direccion para que hagais la prueba:
 http://www.nebulus-imacom.com/reproductor/sociata_de_palo.html

 Gracias por vuestra ayuda!!! 


-----------------------------------------------------
ASNativos
www.5dms.com
subscripciones/desubscripciones
http://asnativos.5dms.com
-----------------------------------------------------

Responder a