Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var room_crumbs = new Object();
- var CACHE_AGE;
- var myData = new LoadVars();
- function cacheLoaded(chuncks)
- {
- CACHE_AGE = chuncks;
- if (CACHE_AGE == undefined){
- return cacheError();
- }
- makeCrumbs();
- trace(CACHE_AGE);
- }// end of the function
- function cacheError()
- {
- trace("Error: Attempt reload...");
- myData.load("http://vintagepenguin.pw/play/v2/client/myText1.txt");
- }// end of the function
- function makeCrumbs(ver)
- {
- room_crumbs.town = {path: ("town.swf=" + ver), music_id: 223, room_id: 100};
- room_crumbs.coffee = {path: ("coffee.swf" + ver), music_id: 255, room_id: 110};
- }
- myData.onLoad = function ()
- {
- cacheLoaded(this.myVariable);
- };// end of the function
- myData.onLoadError = function ()
- {
- cacheError();
- };// end of the function
- myData.load("http://vintagepenguin.pw/play/v2/client/myText1.txt");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement