Comunidad de diseño web y desarrollo en internet online

Reproductor MP3 funciona en Firefox pero no en Explorer

Citar            
MensajeEscrito el 16 Ago 2006 08:51 am
Tengo un reproductor mp3 online y me funciona perfectamente en el Firefox.
Pero a la hora de reproducirlo en internet explorer no se escucha el sonido.
He probado en otros ordenadores y me da el mismo problema.
Alguien podría saber donde puede estar el problema???
Gracias de antemano.
En las siguientes lineas pongo el código, por si alguien me puede decir donde está el error.

Código :

_visible = false;
_x = 730;
_y = 88;
_xscale = 60;
_yscale = 60;
var playlistXML:XML = new XML();
playlistXML.ignoreWhite = true;
var music:Sound = new Sound();
var currentSong:String;
playlistXML.onLoad = function(){
   var tempArray = new Array();
   for(var i = 0; i < this.firstChild.childNodes.length; ++i){
      tempArray[i] = new Object();
      tempArray[i].label = this.firstChild.childNodes[i].firstChild.nodeValue;
      tempArray[i].data = this.firstChild.childNodes[i].attributes.URL;
   }
   playlist_lb.dataProvider = tempArray;
}
playlistXML.load("playlist.xml");
var playlist_lbListener:Object = new Object();
playlist_lbListener.change = function(){
   currentSong = playlist_lb.selectedItem.data;
}
playlist_lb.addEventListener("change", playlist_lbListener);
play_btn.onRelease = function(){
   music.stop();
   music = new Sound();
   music.onID3 = function(){
      song_txt.text = this.id3.TIT2;
      artist_txt.text = this.id3.TPE1;
      year_txt.text = this.id3.TYER;
      URL_txt.htmlText = "<a href=\"" + this.id3.WXXX + "\">" + this.id3.WXXX + "</a>";
      comments_txt.text = this.id3.COMM;
   }
   music.loadSound(currentSong, true);
   mano_mc.onEnterFrame = function() {
      this._rotation += 50;
   }
}
stop_btn.onRelease = function(){
   music.stop();
   mano_mc.onEnterFrame = function() {
      this._rotation += 0;
   }
      
}
cerrar_btn.onRelease = function(){
   _visible = false;
   music.stop();
   mano_mc.onEnterFrame = function() {
      this._rotation += 0;
   }
}
with(playlist_lb){
   setStyle("defaultIcon", "CDIcon");
   setStyle("alternatingRowColors", [0x4E535C, 0x565B65]);
   setStyle("color", 0xFFFFFF);
   setStyle("fontWeight", "bold");
   setStyle("rollOverColor", 0x6C7380);
   setStyle("selectionColor", 0x6C7380);
   setStyle("textRollOverColor", 0xFFFFFF);
   setStyle("textSelectedColor", 0xFFFFFF);
   setStyle("textIndent", 2);
}


:)

usa las etiquetas code para postear tu codigo.

Por kahira

43 de clabLevel



 

firefox
Citar            
MensajeEscrito el 16 Ago 2006 10:29 pm
He encontrado donde tenía el problema.
No está en el código.
En el archivo.xml tenía los nombres de las canciones que empezaban con un espacio y es lo que estaba fastidiando el no poder escuchar las canciones en el explorer.
Pues ya estoy contenta : :P

Por kahira

43 de clabLevel



 

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.