Advertisement
WindowsTV

Untitled

Mar 15th, 2017
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var room_crumbs = new Object();
  2. var CACHE_AGE;
  3. var myData = new LoadVars();
  4. function cacheLoaded(chuncks)
  5. {
  6.     CACHE_AGE = chuncks;
  7.     if (CACHE_AGE == undefined){
  8.         return cacheError();
  9.     }
  10.     makeCrumbs();
  11.     trace(CACHE_AGE);
  12. }// end of the function
  13. function cacheError()
  14. {
  15.     trace("Error: Attempt reload...");
  16.     myData.load("http://vintagepenguin.pw/play/v2/client/myText1.txt");
  17. }// end of the function
  18. function makeCrumbs(ver)
  19. {
  20.     room_crumbs.town = {path: ("town.swf=" + ver), music_id: 223, room_id: 100};
  21.     room_crumbs.coffee = {path: ("coffee.swf" + ver), music_id: 255, room_id: 110};
  22. }
  23. myData.onLoad = function ()
  24. {
  25.     cacheLoaded(this.myVariable);
  26. };// end of the function
  27. myData.onLoadError = function ()
  28. {
  29.     cacheError();
  30. };// end of the function
  31. myData.load("http://vintagepenguin.pw/play/v2/client/myText1.txt");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement