So i have this mp3 player that is loading in the lyrics from a txt file. it's pretty old..but anyway the issue is that after the player has loaded and you go to a new album or two the lyricslist.txt file isn't being reloaded. if i empty the cache it works.. I've tried a cahe killer on the end of the file name ,but it doesn't work.. anyway heres the code..
var lyriclist =''; //###################################################### LoadVars
varSenderLyr = new LoadVars();
varSenderLyr.cacheKiller = new Date().getTime();
varReceiverLyr = new LoadVars();
//############################ varReceiverLyr.onLoad = function(success) { if (success) { root.varArrayLyr = new Array(); for (p in this) { _root.varArrayLyr.push(this[p]); _root.arrlyLength = _root.varArrayLyr.length; } if (varArrayLyr.length == n+1) { // //_root.makeButtons(); } varArrayLyr.reverse(); } else { _root.lyrics.text = ""; } }; //###################### varPreloader = setInterval(checkVarStatus, 100); //############## Request the variables. var songdir = "album" add album ; var lyriclist = "songlyrics" add album add ".txt";
varSenderLyr.sendAndLoad(lyriclist, varReceiverLyr, "GET");
//
and here's the site... HOT cache issue PORN
thanks in advance..
var lyriclist = "songlyrics" add album add ".txt?"+new Date().getTime();
thanks i'll give that a try...