Hola a todos de ante mano dando las gracias a las personas que me ayuden y tambien a los que pensaron ayudarme.
Bueno yo tengo un reproductor de musica que esta alojada dentro de una pelicula, y a lado estan algunas opciones como que el tipo de musica del cual quieres escuchar o el tipo de artista. entonces lo que pasa es que cuando hago click en cada una de estas opciones cambia todo el EL CLIP DE PELICULA MAS EL REPRODUCTOR ( lo que hace lento la lectura por se necesita esperar a que cargue toda la pelicula esto en una web)
AHORA VIENE LO QUE PIDO
NO QUIERO QUE CARGUE TODA LA PELICULA SOLO QUIERO QUE CAMBIE EL XML (la lista de canciones que va a reproducir)
El codigo del reproductor es el siguiente(la ubicacion del nombre del XML esta en rojo
---------------------------------------------------------------------------------------------------------
function loadData(success)
{
var _loc2 = this;
var _loc2 = _loc2;
var _loc3 = _loc2;
if (success)
{
showDisplay = _loc3.firstChild.attributes.showDisplay;
if (showDisplay == "yes")
{
top.easeY(toppos);
topup = false;
display_btn._rotation = display_btn._rotation + 180;
} // end if
showPlaylist = _loc3.firstChild.attributes.showPlaylist;
if (showPlaylist == "yes")
{
bot.easeY(botpos);
botup = false;
list_btn._rotation = list_btn._rotation + 180;
} // end if
aPath = new Array();
songTitel = new Array();
audioTracks = new Array();
audioTracks.shuffle();
audioTracks = _loc3.firstChild.childNodes;
song_total = audioTracks.length;
for (var _loc1 = 0; _loc1 < song_total; ++_loc1)
{
aPath.push(audioTracks[_loc1].attributes.path);
songTitel.push(audioTracks[_loc1].attributes.title);
bot.playlist.btn.duplicateMovieClip("btn" + _loc1, _loc1);
bot.playlist["btn" + _loc1]._y = bot.playlist.btn._y + _loc1 * int(bot.playlist.btn._height) + _loc1;
bot.playlist["btn" + _loc1].txt = checkDigits(_loc1 + 1) + ". " + songTitel[_loc1];
bot.playlist["btn" + _loc1].hit.onPress = function ()
{
listClick(this._parent.getDepth() + 1);
};
} // end of for
autoStart = _loc3.firstChild.attributes.autoStart;
if (autoStart == "yes")
{
playSong();
play_btn._visible = 0;
}
else if (autoStart == "no")
{
play_btn._visible = 1;
pause_btn._visible = 0;
}
else if (autoStart == "random")
{
current_song = random(song_total) + 1;
playSong();
play_btn._visible = 0;
}
else
{
current_song = int(_loc3.firstChild.attributes.autoStart);
playSong();
play_btn._visible = 0;
} // end else if
} // end else if
delete audioTracks;
delete data_xml;
} // End of the function
function listClick(prm)
{
delete pausepos;
current_song = prm;
MySound.stop();
playSong();
} // End of the function
function playSong()
{
var _loc1 = this;
AudioPath = aPath[current_song - 1];
if (pausePos > 0)
{
top.equalizer._visible = 1;
MySound.start(pausePos, 0);
pausePos = 0;
}
else
{
MySound = new Sound();
MySound.setVolume(volume);
MySound.loadSound(AudioPath, true);
MySound.onSoundComplete = function ()
{
top.equalizer._visible = 0;
if (autoStart == "random")
{
current_song = random(song_total) + 1;
}
else
{
current_song == song_total ? (current_song = 1) : (current_song++);
} // end else if
playSong();
};
top.track_load.onEnterFrame = function ()
{
var _loc1 = this;
total = _loc1._parent._parent.MySound.getBytesTotal();
geladen = _loc1._parent._parent.MySound.getBytesLoaded();
if (geladen != total)
{
_loc1._parent.load_display = Math.round(geladen * 100 / total) + "% Jimmy.-DJ'sJOTTER®-.";
_loc1._xscale = Math.round(geladen * 100 / total);
return;
} // end if
_loc1._xscale = 100;
top.equalizer._visible = 1;
delete _loc1.onEnterFrame;
delete _loc1._parent.load_display;
};
} // end else if
play_btn._visible = 0;
pause_btn._visible = 1;
} // End of the function
function checkDigits(toCheck)
{
var _loc1 = toCheck;
return (_loc1 < 10 ? (_loc1 = "" + _loc1, "0" + _loc1) : (_loc1));
} // End of the function
[COLOR="Red"]function scrollTitle()
{
top.title.txt.autoSize = true;
if (songTitel[current_song - 1].length > 30)
{
top.title.txt.text = songTitel[current_song - 1] + " -=::Dj'sJOTTE®::=- " + songTitel[current_song - 1];
top.title._x + top.title._width / 2 + 4 < top.title_mask._x ? (top.title._x = top.title_mask._x) : (top.title._x--);
}
else
{
top.title.txt.text = songTitel[current_song - 1];
top.title._x = top.title_mask._x - 3;
} // end else if
} // End of the function
_root.playlist == undefined ? (playlist = "ListaCanciones.xml") : (playlist = _root.playlist);
Stage.showMenu = false;
Stage.scaleMode = "noScale";
stop ();
volume = 90;
current_song = 1;
top.equalizer._visible = 0;
data_xml = new XML();
data_xml.ignoreWhite = true;
data_xml.onLoad = loadData;
data_xml.load(playlist);
bot.list_bg.onEnterFrame = function ()
{
var _loc1 = this;
if (hitTest(_root._xmouse, _root._ymouse, true) && _loc1._parent.playlist._height > _loc1._height)
{
ymin = _loc1._y + _loc1._height - _loc1._parent.playlist._height;
ymax = _loc1._y + 3;
conv = (_loc1._ymouse - 85) * 3.900000E+000 / _loc1._height;
conv > 1 ? (conv = 1) : (null);
conv < 0 ? (conv = 0) : (null);
_loc1._parent.playlist.easeY(ymax - conv * (ymax - ymin));
} // end if
};
bot.playlist.setMask(bot.list_bg);
play_btn.onRelease = function ()
{
playSong();
};
pause_btn.onRelease = function ()
{
this._visible = 0;
play_btn._visible = 1;
pausePos = MySound.position / 1000;
MySound.stop();
top.equalizer._visible = 0;
};
next_btn.onRelease = function ()
{
delete pausepos;
current_song == song_total ? (current_song = 1) : (current_song++);
MySound.stop();
playSong();
};
prev_btn.onRelease = function ()
{
delete pausepos;
current_song == 1 ? (current_song = song_total) : (current_song--);
MySound.stop();
playSong();
};
top.setMask(top_mask);
toppos = top._y;
top._y = int(toppos + top_mask._height - 29);
topup = true;
display_btn.onPress = function ()
{
if (topup == true)
{
top.easeY(toppos);
topup = false;
}
else
{
top.easeY(int(toppos + top_mask._height - 27));
topup = true;
} // end else if
(no puse el codigo completo de reproductor porq no se me permite mas de 10000 caracteres)
-------------------------------------------------------------------------------------------------------
quisiera que me ayuden como puedo hacre para que solo cambie el XML
Les pediria por favor que me digan el codigo y en que lugar es que lo voy a agregar
Gracias ESPERO ME AYUDEN