TwelvestoneFlash

flash cahching vars issue


Sign in

  • Waiting for Godot ( 730 k posts )
    Just conversation.
  • Thunder Dome ( 23 k posts )
    Photoshop Tennis and Collabs.
  • Photography ( 5.1 k posts )
    For all you shutterbugs, sh...
  • Flash ( 18 k posts )
    ActionScripting to tweens, ...
  • Front End ( 5.9 k posts )
    general front end design an...
  • Back End ( 9.7 k posts )
    serverside scripting, progr...
  • Projects and Theory ( 12 k posts )
    This forum is for discussio...
  • FAQ ( 269 posts )
    All those nagging questions...
  • Design ( 17 k posts )
    graphics & all aspects of g...
  • Purgatory ( 3.6 k posts )
    12stone Jail, feel free to ...
adamordna
 
2007-10-09

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..

persist
 
2007-10-09

var lyriclist = "songlyrics" add album add ".txt?"+new Date().getTime();

adamordna
 
2007-10-09

thanks i'll give that a try...

Sorry, you must be a member to post to a conversation. Either log in or sign up to get involved.
TwelvestoneFlash

flash cahching vars issue