Frame 3
_global.saveFunctions = new com.nitrome.sandman.SaveFunctions();
stop();
Instance of Symbol 60 MovieClip "preloader" in Frame 3
onClipEvent (load) {
_global.done_load = false;
}
onClipEvent (enterFrame) {
if (_global.done_load != true) {
var byt = _root.getBytesLoaded();
var tot = _root.getBytesTotal();
var percent = Math.round((byt / tot) * 100);
_root.preloader.bar._xscale = percent;
if (byt == tot) {
_global.done_load = true;
_root.gotoAndPlay("nitrome");
}
}
}
Frame 12
play();
Frame 67
_root.star_sound_fx.gotoAndPlay(2);
Frame 101
_root.music_controller.startMenuMusic();
Frame 102
stop();
Frame 112
stop();
Frame 122
stop();
Frame 132
stop();
Frame 142
stop();
Frame 152
stop();
Frame 162
stop();
Frame 172
stop();
Frame 182
stop();
Frame 192
stop();
Frame 202
stop();
Frame 212
stop();
Frame 222
stop();
Frame 232
stop();
Frame 242
stop();
Frame 252
stop();
Frame 263
if (_global.current_level == 1) {
_global.level_width = 700;
_global.level_height = 400;
_global.scroll_x_min = 550 - _global.level_width;
_global.scroll_x_max = 0;
_global.scroll_y_min = 0;
_global.scroll_y_max = 0;
_global.x_scroll = 0;
_global.y_scroll = 0;
_global.sky_x_scroll = -45;
_global.sky_y_scroll = -323;
_global.collision_map = "stage_1";
_global.teleporter_map = "teleporter_map_1";
_global.graphics_layer = "graphics_1";
_global.back_graphics_layer = "back_graphics_1";
_global.water_layer = "";
_global.total_people = 6;
_global.total_people_left = 6;
_global.people_saved = 0;
_global.moving_platform = false;
_global.wheel_moving_platform = false;
_global.weighted_platforms = false;
_global.stage_10_platform = false;
_global.stage_13_platform = false;
_global.stage_11_door = false;
_global.stage_12_platform = false;
} else if (_global.current_level == 2) {
_global.level_width = 700;
_global.level_height = 400;
_global.scroll_x_min = 550 - _global.level_width;
_global.scroll_x_max = 0;
_global.scroll_y_min = 400 - _global.level_height;
_global.scroll_y_max = 0;
_global.x_scroll = 0;
_global.y_scroll = 0;
_global.sky_x_scroll = -55;
_global.sky_y_scroll = -30;
_global.collision_map = "stage_2";
_global.teleporter_map = "teleporter_map_2";
_global.graphics_layer = "graphics_2";
_global.back_graphics_layer = "back_graphics_2";
_global.water_layer = "";
_global.total_people = 6;
_global.total_people_left = 6;
_global.people_saved = 0;
_global.moving_platform = false;
_global.wheel_moving_platform = false;
_global.weighted_platforms = false;
_global.stage_10_platform = false;
_global.stage_13_platform = false;
_global.stage_11_door = false;
_global.stage_12_platform = false;
} else if (_global.current_level == 3) {
_global.level_width = 900;
_global.level_height = 400;
_global.scroll_x_min = 550 - _global.level_width;
_global.scroll_x_max = 0;
_global.scroll_y_min = 400 - _global.level_height;
_global.scroll_y_max = 0;
_global.x_scroll = 0;
_global.y_scroll = 0;
_global.sky_x_scroll = -55;
_global.sky_y_scroll = -30;
_global.collision_map = "stage_3";
_global.teleporter_map = "teleporter_map_3";
_global.graphics_layer = "graphics_3";
_global.back_graphics_layer = "back_graphics_3";
_global.water_layer = "";
_global.total_people = 6;
_global.total_people_left = 6;
_global.people_saved = 0;
_global.moving_platform = false;
_global.wheel_moving_platform = false;
_global.weighted_platforms = false;
_global.stage_10_platform = false;
_global.stage_13_platform = false;
_global.stage_11_door = false;
_global.stage_12_platform = false;
} else if (_global.current_level == 4) {
_global.level_width = 800;
_global.level_height = 400;
_global.scroll_x_min = 550 - _global.level_width;
_global.scroll_x_max = 0;
_global.scroll_y_min = 400 - _global.level_height;
_global.scroll_y_max = 0;
_global.x_scroll = 0;
_global.y_scroll = 0;
_global.sky_x_scroll = -55;
_global.sky_y_scroll = -244;
_global.collision_map = "stage_4";
_global.teleporter_map = "teleporter_map_4";
_global.graphics_layer = "graphics_4";
_global.back_graphics_layer = "back_graphics_4";
_global.water_layer = "";
_global.total_people = 6;
_global.total_people_left = 6;
_global.people_saved = 0;
_global.moving_platform = false;
_global.wheel_moving_platform = false;
_global.weighted_platforms = false;
_global.stage_10_platform = false;
_global.stage_13_platform = false;
_global.stage_11_door = false;
_global.stage_12_platform = false;
} else if (_global.current_level == 5) {
_global.level_width = 922;
_global.level_height = 534;
_global.scroll_x_min = 550 - _global.level_width;
_global.scroll_x_max = 0;
_global.scroll_y_min = 400 - _global.level_height;
_global.scroll_y_max = 0;
_global.x_scroll = 0;
_global.y_scroll = 0;
_global.sky_x_scroll = -45;
_global.sky_y_scroll = -323;
_global.collision_map = "stage_5";
_global.teleporter_map = "teleporter_map_5";
_global.graphics_layer = "graphics_5";
_global.back_graphics_layer = "back_graphics_5";
_global.water_layer = "";
_global.total_people = 6;
_global.total_people_left = 6;
_global.people_saved = 0;
_global.moving_platform = false;
_global.wheel_moving_platform = false;
_global.weighted_platforms = false;
_global.stage_10_platform = false;
_global.stage_13_platform = false;
_global.stage_11_door = false;
_global.stage_12_platform = false;
} else if (_global.current_level == 6) {
_global.level_width = 550;
_global.level_height = 800;
_global.scroll_x_min = 550 - _global.level_width;
_global.scroll_x_max = 0;
_global.scroll_y_min = 400 - _global.level_height;
_global.scroll_y_max = 0;
_global.x_scroll = 0;
_global.y_scroll = 0;
_global.sky_x_scroll = -45;
_global.sky_y_scroll = -134;
_global.collision_map = "stage_6";
_global.teleporter_map = "teleporter_map_6";
_global.graphics_layer = "graphics_6";
_global.back_graphics_layer = "back_graphics_6";
_global.water_layer = "";
_global.total_people = 6;
_global.total_people_left = 6;
_global.people_saved = 0;
_global.moving_platform = false;
_global.wheel_moving_platform = false;
_global.weighted_platforms = false;
_global.stage_10_platform = false;
_global.stage_13_platform = false;
_global.stage_11_door = false;
_global.stage_12_platform = false;
} else if (_global.current_level == 7) {
_global.level_width = 1100;
_global.level_height = 400;
_global.scroll_x_min = 550 - _global.level_width;
_global.scroll_x_max = 0;
_global.scroll_y_min = 400 - _global.level_height;
_global.scroll_y_max = 0;
_global.x_scroll = 0;
_global.y_scroll = 0;
_global.sky_x_scroll = -45;
_global.sky_y_scroll = -134;
_global.collision_map = "stage_7";
_global.teleporter_map = "teleporter_map_7";
_global.graphics_layer = "graphics_7";
_global.back_graphics_layer = "back_graphics_7";
_global.water_layer = "";
_global.total_people = 6;
_global.total_people_left = 6;
_global.people_saved = 0;
_global.moving_platform = false;
_global.wheel_moving_platform = false;
_global.weighted_platforms = false;
_global.stage_10_platform = false;
_global.stage_13_platform = false;
_global.stage_11_door = false;
_global.stage_12_platform = false;
} else if (_global.current_level == 8) {
_global.level_width = 788;
_global.level_height = 400;
_global.scroll_x_min = 550 - _global.level_width;
_global.scroll_x_max = 0;
_global.scroll_y_min = 400 - _global.level_height;
_global.scroll_y_max = 0;
_global.x_scroll = 0;
_global.y_scroll = 0;
_global.sky_x_scroll = -45;
_global.sky_y_scroll = -134;
_global.collision_map = "stage_8";
_global.teleporter_map = "teleporter_map_8";
_global.graphics_layer = "graphics_8";
_global.back_graphics_layer = "back_graphics_8";
_global.water_layer = "water_layer_8";
_global.total_people = 6;
_global.total_people_left = 6;
_global.people_saved = 0;
_global.moving_platform = false;
_global.wheel_moving_platform = false;
_global.weighted_platforms = false;
_global.stage_10_platform = false;
_global.stage_13_platform = false;
_global.stage_11_door = false;
_global.stage_12_platform = true;
} else if (_global.current_level == 9) {
_global.level_width = 968;
_global.level_height = 400;
_global.scroll_x_min = 550 - _global.level_width;
_global.scroll_x_max = 0;
_global.scroll_y_min = 400 - _global.level_height;
_global.scroll_y_max = 0;
_global.x_scroll = 0;
_global.y_scroll = 0;
_global.sky_x_scroll = -45;
_global.sky_y_scroll = -134;
_global.collision_map = "stage_9";
_global.teleporter_map = "teleporter_map_9";
_global.graphics_layer = "graphics_9";
_global.back_graphics_layer = "back_graphics_9";
_global.water_layer = "";
_global.total_people = 6;
_global.total_people_left = 6;
_global.people_saved = 0;
_global.moving_platform = false;
_global.wheel_moving_platform = false;
_global.weighted_platforms = false;
_global.stage_10_platform = false;
_global.stage_13_platform = false;
_global.stage_11_door = false;
_global.stage_12_platform = false;
} else if (_global.current_level == 10) {
_global.level_width = 550;
_global.level_height = 600;
_global.scroll_x_min = 550 - _global.level_width;
_global.scroll_x_max = 0;
_global.scroll_y_min = 400 - _global.level_height;
_global.scroll_y_max = 0;
_global.x_scroll = 0;
_global.y_scroll = 0;
_global.sky_x_scroll = -45;
_global.sky_y_scroll = -134;
_global.collision_map = "stage_10";
_global.teleporter_map = "teleporter_map_10";
_global.graphics_layer = "graphics_10";
_global.back_graphics_layer = "back_graphics_10";
_global.water_layer = "water_layer_10";
_global.total_people = 6;
_global.total_people_left = 6;
_global.people_saved = 0;
_global.moving_platform = false;
_global.wheel_moving_platform = false;
_global.weighted_platforms = false;
_global.stage_10_platform = false;
_global.stage_13_platform = false;
_global.stage_11_door = false;
_global.stage_12_platform = false;
} else if (_global.current_level == 11) {
_global.level_width = 1100;
_global.level_height = 710;
_global.scroll_x_min = 550 - _global.level_width;
_global.scroll_x_max = 0;
_global.scroll_y_min = 400 - _global.level_height;
_global.scroll_y_max = 0;
_global.x_scroll = -350;
_global.y_scroll = 0;
_global.sky_x_scroll = -45;
_global.sky_y_scroll = -134;
_global.collision_map = "stage_11";
_global.teleporter_map = "teleporter_map_11";
_global.graphics_layer = "graphics_11";
_global.back_graphics_layer = "back_graphics_11";
_global.water_layer = "";
_global.total_people = 6;
_global.total_people_left = 6;
_global.people_saved = 0;
_global.moving_platform = false;
_global.wheel_moving_platform = false;
_global.weighted_platforms = false;
_global.stage_10_platform = false;
_global.stage_13_platform = false;
_global.stage_11_door = true;
_global.stage_12_platform = false;
} else if (_global.current_level == 12) {
_global.level_width = 1100;
_global.level_height = 400;
_global.scroll_x_min = 550 - _global.level_width;
_global.scroll_x_max = 0;
_global.scroll_y_min = 400 - _global.level_height;
_global.scroll_y_max = 0;
_global.x_scroll = 0;
_global.y_scroll = 0;
_global.sky_x_scroll = -45;
_global.sky_y_scroll = -134;
_global.collision_map = "stage_12";
_global.teleporter_map = "teleporter_map_12";
_global.graphics_layer = "graphics_12";
_global.back_graphics_layer = "back_graphics_12";
_global.water_layer = "water_layer_12";
_global.total_people = 6;
_global.total_people_left = 6;
_global.people_saved = 0;
_global.moving_platform = false;
_global.wheel_moving_platform = false;
_global.weighted_platforms = false;
_global.stage_10_platform = true;
_global.stage_13_platform = false;
_global.stage_11_door = false;
_global.stage_12_platform = false;
} else if (_global.current_level == 13) {
_global.level_width = 1100;
_global.level_height = 400;
_global.scroll_x_min = 550 - _global.level_width;
_global.scroll_x_max = 0;
_global.scroll_y_min = 400 - _global.level_height;
_global.scroll_y_max = 0;
_global.x_scroll = 0;
_global.y_scroll = 0;
_global.sky_x_scroll = -45;
_global.sky_y_scroll = -134;
_global.collision_map = "stage_13";
_global.teleporter_map = "teleporter_map_13";
_global.graphics_layer = "graphics_13";
_global.back_graphics_layer = "back_graphics_13";
_global.water_layer = "";
_global.total_people = 6;
_global.total_people_left = 6;
_global.people_saved = 0;
_global.moving_platform = false;
_global.wheel_moving_platform = false;
_global.weighted_platforms = false;
_global.stage_10_platform = false;
_global.stage_13_platform = true;
_global.stage_11_door = false;
_global.stage_12_platform = false;
} else if (_global.current_level == 14) {
_global.level_width = 900;
_global.level_height = 800;
_global.scroll_x_min = 550 - _global.level_width;
_global.scroll_x_max = 0;
_global.scroll_y_min = 400 - _global.level_height;
_global.scroll_y_max = 0;
_global.x_scroll = 0;
_global.y_scroll = 0;
_global.sky_x_scroll = -45;
_global.sky_y_scroll = -134;
_global.collision_map = "stage_14";
_global.teleporter_map = "teleporter_map_14";
_global.graphics_layer = "graphics_14";
_global.back_graphics_layer = "back_graphics_14";
_global.water_layer = "";
_global.total_people = 6;
_global.total_people_left = 6;
_global.people_saved = 0;
_global.moving_platform = false;
_global.wheel_moving_platform = false;
_global.weighted_platforms = false;
_global.stage_10_platform = false;
_global.stage_13_platform = false;
_global.stage_11_door = false;
_global.stage_12_platform = false;
} else if (_global.current_level == 15) {
_global.level_width = 550;
_global.level_height = 1100;
_global.scroll_x_min = 550 - _global.level_width;
_global.scroll_x_max = 0;
_global.scroll_y_min = 400 - _global.level_height;
_global.scroll_y_max = 0;
_global.x_scroll = 0;
_global.y_scroll = 0;
_global.sky_x_scroll = -45;
_global.sky_y_scroll = -134;
_global.collision_map = "stage_15";
_global.teleporter_map = "teleporter_map_15";
_global.graphics_layer = "graphics_15";
_global.back_graphics_layer = "back_graphics_15";
_global.water_layer = "";
_global.total_people = 6;
_global.total_people_left = 6;
_global.people_saved = 0;
_global.moving_platform = false;
_global.wheel_moving_platform = false;
_global.weighted_platforms = false;
_global.stage_10_platform = false;
_global.stage_13_platform = false;
_global.stage_11_door = false;
_global.stage_12_platform = false;
}
Frame 275
_root.game_holder.teleporter_map_holder.map.teleporter_start1.clearPeople();
_root.game_holder.teleporter_map_holder.map.dark_teleporter_start1.clearPeople();
Frame 276
_root.scroll_up.scrollLayers();
if (_global.current_level == 1) {
_root.game_holder.teleporter_map_holder.map.teleporter_start1.setTotalPeople(6);
} else if (_global.current_level == 2) {
_root.game_holder.teleporter_map_holder.map.teleporter_start1.setTotalPeople(6);
} else if (_global.current_level == 3) {
_root.game_holder.teleporter_map_holder.map.teleporter_start1.setTotalPeople(6);
_root.glass_holder.clearAll();
_root.glass_holder.createPanel(376, 232, 152, 124);
_root.glass_holder.createPanel(600, 232, 152, 124);
} else if (_global.current_level == 4) {
_root.game_holder.teleporter_map_holder.map.teleporter_start1.setTotalPeople(6);
} else if (_global.current_level == 5) {
_root.game_holder.teleporter_map_holder.map.teleporter_start1.setTotalPeople(6);
} else if (_global.current_level == 6) {
_root.game_holder.teleporter_map_holder.map.teleporter_start1.setTotalPeople(3);
_root.game_holder.teleporter_map_holder.map.teleporter_start2.setTotalPeople(3);
} else if (_global.current_level == 7) {
_root.game_holder.teleporter_map_holder.map.teleporter_start1.setTotalPeople(6);
_root.game_holder.teleporter_map_holder.map.dark_teleporter_start1.setTotalPeople(1);
_root.game_holder.teleporter_map_holder.map.dark_teleporter_start2.setTotalPeople(1);
_root.game_holder.teleporter_map_holder.map.dark_teleporter_start3.setTotalPeople(1);
} else if (_global.current_level == 8) {
_root.game_holder.teleporter_map_holder.map.teleporter_start1.setTotalPeople(6);
_root.game_holder.wheel_holder.addWheel(329, 232, "level_12_platform");
} else if (_global.current_level == 9) {
_root.game_holder.teleporter_map_holder.map.teleporter_start1.setTotalPeople(6);
_root.glass_holder.clearAll();
_root.glass_holder.createPanel(8, 105, 950, 288);
} else if (_global.current_level == 10) {
_root.game_holder.teleporter_map_holder.map.teleporter_start1.setTotalPeople(6);
_root.game_holder.teleporter_map_holder.map.dark_teleporter_start1.setTotalPeople(1);
} else if (_global.current_level == 11) {
_root.game_holder.teleporter_map_holder.map.teleporter_start1.setTotalPeople(6);
_root.game_holder.teleporter_map_holder.map.dark_teleporter_start1.setTotalPeople(1);
_root.game_holder.teleporter_map_holder.map.dark_teleporter_start2.setTotalPeople(1);
_root.game_holder.teleporter_map_holder.map.dark_teleporter_start3.setTotalPeople(1);
_root.game_holder.teleporter_map_holder.map.dark_teleporter_start4.setTotalPeople(1);
_root.game_holder.wheel_holder.addWheel(117, 420, "level_11_door");
} else if (_global.current_level == 12) {
_root.game_holder.teleporter_map_holder.map.teleporter_start1.setTotalPeople(6);
_root.game_holder.teleporter_map_holder.map.dark_teleporter_start1.setTotalPeople(1);
_root.game_holder.wheel_holder.addWheel(691, 116, "level_10_platform");
} else if (_global.current_level == 13) {
_root.game_holder.teleporter_map_holder.map.teleporter_start1.setTotalPeople(6);
_root.game_holder.teleporter_map_holder.map.dark_teleporter_start1.setTotalPeople(1);
_root.game_holder.teleporter_map_holder.map.dark_teleporter_start2.setTotalPeople(1);
} else if (_global.current_level == 14) {
_root.game_holder.teleporter_map_holder.map.teleporter_start1.setTotalPeople(6);
_root.game_holder.teleporter_map_holder.map.dark_teleporter_start1.setTotalPeople(1);
} else if (_global.current_level == 15) {
_root.game_holder.teleporter_map_holder.map.teleporter_start1.setTotalPeople(6);
_root.game_holder.teleporter_map_holder.map.dark_teleporter_start1.setTotalPeople(2);
}
Frame 277
_root.timer_clip.startTimer();
Frame 278
stop();
Frame 284
stop();
Frame 291
stop();
Frame 299
stop();
Frame 309
stop();
Frame 321
_root.score = _global.saveFunctions.getTotalHiscore();
stop();
Instance of Symbol 1035 MovieClip "comHighscores" in Frame 321
//component parameters
onClipEvent (construct) {
scoreLocation = "_root.score";
gamename = "sandman";
saveScore = true;
scoreIsTime = false;
scoreReversed = false;
negativeScoreAllowed = false;
}
Symbol 1036 MovieClip [__Packages.com.nitrome.sandman.SaveFunctions] Frame 0
class com.nitrome.sandman.SaveFunctions
{
function SaveFunctions () {
}
function saveSound(s) {
var _local1 = SharedObject.getLocal("sound");
_local1.data.soundstring = s;
_local1.flush();
}
function getSound() {
var _local1 = SharedObject.getLocal("sound");
var _local2 = false;
for (var _local3 in _local1.data) {
_local2 = true;
break;
}
if (_local2 == true) {
if (_local1.data.soundstring != undefined) {
return(_local1.data.soundstring);
}
return("on");
}
return("on");
}
function saveQuality(s) {
var _local1 = SharedObject.getLocal("quality");
_local1.data.qualitystring = s;
_local1.flush();
}
function getQuality() {
var _local1 = SharedObject.getLocal("quality");
var _local2 = false;
for (var _local3 in _local1.data) {
_local2 = true;
break;
}
if (_local2 == true) {
if (_local1.data.qualitystring != undefined) {
return(_local1.data.qualitystring);
}
return("high");
}
return("high");
}
function saveCompletedGame() {
var _local1 = SharedObject.getLocal("completedgame");
_local1.data.completed = "true";
_local1.flush();
}
function getCompletedGame() {
var _local2 = SharedObject.getLocal("completedgame");
var _local1 = false;
for (var _local3 in _local2.data) {
_local1 = true;
break;
}
if (_local1 == true) {
if (_local2.data.completed == "true") {
return(true);
}
return(false);
}
return(false);
}
function getSaveGame() {
var _local1 = SharedObject.getLocal("savegame");
var _local2 = false;
for (var _local3 in _local1.data) {
_local2 = true;
break;
}
if (_local2 == true) {
if ((_local1.data.hiscores == "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0") || (_local1.data.hiscores == undefined)) {
return(false);
}
return(true);
}
return(false);
}
function clearSaveGame() {
var _local1 = SharedObject.getLocal("savegame");
_local1.clear();
_local1 = SharedObject.getLocal("completedgame");
_local1.clear();
_local1 = SharedObject.getLocal("lastsavedhiscore");
_local1.clear();
}
function saveStageHiscore(stage, score) {
var _local1 = SharedObject.getLocal("savegame");
var _local2 = false;
for (var _local3 in _local1.data) {
_local2 = true;
break;
}
if (_local2 == true) {
if (_local1.data.hiscores != undefined) {
var _local6 = _local1.data.hiscores;
} else {
var _local6 = "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0";
}
var _local4 = _local6.split(",");
if (score > _local4[stage - 1]) {
_local4[stage - 1] = score;
}
var _local5 = _local4.toString();
_local1.data.hiscores = _local5;
_local1.flush();
} else {
var _local6 = "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0";
var _local4 = _local6.split(",");
_local4[stage - 1] = score;
var _local5 = _local4.toString();
_local1.data.hiscores = _local5;
_local1.flush();
}
}
function getStageHiscore(stage) {
var _local1 = SharedObject.getLocal("savegame");
var _local2 = false;
for (var _local3 in _local1.data) {
_local2 = true;
break;
}
if (_local2 == true) {
if (_local1.data.hiscores != undefined) {
var _local4 = _local1.data.hiscores;
} else {
return(0);
}
var _local5 = _local4.split(",");
return(Number(_local5[stage - 1]));
}
return(0);
}
function getTotalHiscore() {
var _local5 = SharedObject.getLocal("savegame");
var _local4 = false;
for (var _local6 in _local5.data) {
_local4 = true;
break;
}
if (_local4 == true) {
var _local7 = _local5.data.hiscores;
var _local2 = _local7.split(",");
var _local3 = 0;
var _local1 = 0;
while (_local1 < _local2.length) {
if (!isNaN(Number(_local2[_local1]))) {
_local3 = _local3 + Number(_local2[_local1]);
}
_local1++;
}
return(_local3);
}
return(0);
}
function saveHiscoreSubmitted(n) {
var _local1 = SharedObject.getLocal("lastsavedhiscore");
_local1.data.lastsavedhiscore = n;
_local1.flush();
}
function getTotalHiscoreHigher() {
var _local3 = SharedObject.getLocal("lastsavedhiscore");
var _local2 = false;
for (var _local4 in _local3.data) {
_local2 = true;
break;
}
if (_local2 == true) {
var _local5 = getTotalHiscore();
var _local6 = _local3.data.lastsavedhiscore;
if ((_local5 > _local6) && (_local5 > 0)) {
return(true);
}
return(false);
}
return(true);
}
function getNumberHigherThan(n) {
var _local2 = SharedObject.getLocal("lastsavedhiscore");
var _local1 = false;
for (var _local3 in _local2.data) {
_local1 = true;
break;
}
if (_local1 == true) {
var _local4 = n;
var _local5 = _local2.data.lastsavedhiscore;
if ((_local4 > _local5) && (_local4 > 0)) {
return(true);
}
return(false);
}
return(true);
}
function saveLastOpenedStage(stage) {
var _local1 = SharedObject.getLocal("savegame");
if (_local1.data.laststage != undefined) {
if (Number(_local1.data.laststage) <= stage) {
_local1.data.laststage = stage;
} else {
trace("already played past here - so not saving this stage as the last one");
}
} else {
_local1.data.laststage = stage;
}
_local1.flush();
}
function getLastOpenedStage() {
var _local1 = SharedObject.getLocal("savegame");
var _local2 = false;
for (var _local3 in _local1.data) {
_local2 = true;
break;
}
if (_local2 == true) {
if (_local1.data.laststage != undefined) {
return(_local1.data.laststage);
}
_local1.data.laststage = 1;
_local1.flush();
return(1);
}
_local1.data.laststage = 1;
_local1.flush();
return(1);
}
}
Symbol 1037 MovieClip [__Packages.com.nitrome.security.NitromeLock] Frame 0
class com.nitrome.security.NitromeLock extends MovieClip
{
var _visible;
function NitromeLock () {
super();
_visible = false;
var _local6 = false;
var _local4 = 0;
while (_local4 < urls.length) {
var _local5 = urls[_local4];
if (_root._url.substr(0, _local5.length) == _local5) {
_local6 = true;
}
_local4++;
}
if (_local6 == true) {
trace("url match");
_visible = false;
} else {
trace("problem with url: " + _root._url);
_visible = true;
}
}
var done_check = false;
var urls = new Array("http://www.nitrome.com", "http://www.miniclip.com", "http://www.miniclip.co.uk", "http://www.miniclip", "http://miniclip");
}
Symbol 1038 MovieClip [__Packages.com.nitrome.sandman.BackGraphicsLayer] Frame 0
class com.nitrome.sandman.BackGraphicsLayer extends MovieClip
{
var attachMovie;
function BackGraphicsLayer () {
super();
init();
}
function init() {
attachMovie(_global.back_graphics_layer, "graphics", 1);
}
}
Symbol 1039 MovieClip [__Packages.com.nitrome.sandman.SimpleButton] Frame 0
class com.nitrome.sandman.SimpleButton extends MovieClip
{
var _name, gotoAndStop, useHandCursor;
function SimpleButton () {
super();
if (_name == "load_game_button") {
if (_global.saveFunctions.getSaveGame() == false) {
disabled = true;
gotoAndStop("_off");
}
}
if (_name == "finish_game_button") {
disabled = true;
gotoAndStop("_off");
}
}
function enable() {
disabled = false;
gotoAndStop("_up");
}
function onRollOver() {
if (disabled == false) {
useHandCursor = true;
gotoAndStop("_over");
} else {
useHandCursor = false;
gotoAndStop("_off");
}
}
function onRollOut() {
if (disabled == false) {
gotoAndStop("_up");
} else {
gotoAndStop("_off");
}
}
function onRelease() {
if (disabled == false) {
if (_name == "new_game_button") {
_global.saveFunctions.clearSaveGame();
_root.fade_out_clip.doFade("NEWGAME");
} else if (_name == "load_game_button") {
_root.fade_out_clip.doFade("LOADGAME");
} else if (_name == "credits_button") {
_root.fade_out_clip.doFade("CREDITS");
} else if (_name == "instructions_button") {
_root.fade_out_clip.doFade("INSTRUCTIONS");
} else if (_name == "play_next_level_button") {
_global.person_score = Number(_global.people_saved * 50);
var _local5 = _root.timer_clip.getTotalMilliseconds();
var _local7 = 1000;
var _local6 = Math.round(_local5 / 1000);
_global.time_bonus = _local7 - _local6;
if (_global.time_bonus <= 0) {
_global.time_bonus = 0;
}
_global.total_score = _global.person_score + _global.time_bonus;
_global.saveFunctions.saveStageHiscore(_global.current_level, _global.total_score);
_global.saveFunctions.saveLastOpenedStage(_global.current_level + 1);
_global.current_level++;
_global.play_next_level = true;
_root.level_complete_popup.gotoAndPlay("close");
} else if (_name == "save_and_quit_button") {
_global.person_score = Number(_global.people_saved * 50);
var _local5 = _root.timer_clip.getTotalMilliseconds();
var _local7 = 1000;
var _local6 = Math.round(_local5 / 1000);
_global.time_bonus = _local7 - _local6;
if (_global.time_bonus <= 0) {
_global.time_bonus = 0;
}
_global.total_score = _global.person_score + _global.time_bonus;
_global.saveFunctions.saveStageHiscore(_global.current_level, _global.total_score);
_global.saveFunctions.saveLastOpenedStage(_global.current_level + 1);
_global.play_next_level = false;
_root.music_controller.fadeOutGameMusic();
_root.level_complete_popup.gotoAndPlay("close");
} else if (_name == "try_again_button") {
_global.try_again = true;
_root.game_over_popup.gotoAndPlay("close");
} else if (_name == "back_to_menu_button") {
_global.try_again = false;
_root.music_controller.fadeOutGameMusic();
_root.game_over_popup.gotoAndPlay("close");
} else if (_name == "finish_game_button") {
for (var _local4 in _root.game_holder.teleporter_map_holder.map) {
if (_root.game_holder.teleporter_map_holder.map[_local4] instanceof com.nitrome.sandman.Person) {
_root.game_holder.teleporter_map_holder.map[_local4].doPause();
}
}
_root.game_holder.teleporter_map_holder.map.teleporter_start.pauseTeleport();
_root.timer_clip.stopTimer();
_root.level_complete_popup.gotoAndPlay("open");
} else if (_name == "quit_game_button") {
for (var _local4 in _root.game_holder.teleporter_map_holder.map) {
if (_root.game_holder.teleporter_map_holder.map[_local4] instanceof com.nitrome.sandman.Person) {
_root.game_holder.teleporter_map_holder.map[_local4].doPause();
}
}
_root.game_holder.teleporter_map_holder.map.teleporter_start.pauseTeleport();
_root.check_quit_popup.gotoAndPlay("open");
_root.timer_clip.stopTimer();
} else if (_name == "yes_quit_button") {
_global.quit_game_flag = true;
_root.music_controller.fadeOutGameMusic();
_root.check_quit_popup.gotoAndPlay("close");
} else if (_name == "no_quit_button") {
_global.quit_game_flag = false;
for (var _local4 in _root.game_holder.teleporter_map_holder.map) {
if (_root.game_holder.teleporter_map_holder.map[_local4] instanceof com.nitrome.sandman.Person) {
_root.game_holder.teleporter_map_holder.map[_local4].doRestart();
}
}
_root.game_holder.teleporter_map_holder.map.teleporter_start.restartTeleport();
_root.check_quit_popup.gotoAndPlay("close");
_root.timer_clip.restartTimer();
} else if (_name == "menu_button") {
_root.fade_out_clip.doFade("MENU");
} else if (_name == "instructions_prev_button") {
_root.instructions_clip.gotoAndStop("step_" + _global.prev_instructions);
} else if (_name == "instructions_next_button") {
_root.instructions_clip.gotoAndStop("step_" + _global.next_instructions);
} else if (_name == "submit_button") {
_root.fade_out_clip.doFade("HISCORE");
_root.music_controller.fadeOutGameMusic();
} else if (_name == "submit_complete_button") {
_global.person_score = Number(_global.people_saved * 50);
var _local5 = _root.timer_clip.getTotalMilliseconds();
var _local7 = 1000;
var _local6 = Math.round(_local5 / 1000);
_global.time_bonus = _local7 - _local6;
if (_global.time_bonus <= 0) {
_global.time_bonus = 0;
}
_global.total_score = _global.person_score + _global.time_bonus;
_global.saveFunctions.saveStageHiscore(_global.current_level, _global.total_score);
_global.saveFunctions.saveLastOpenedStage(_global.current_level + 1);
_root.fade_out_clip.doFade("HISCORE");
_root.music_controller.fadeOutGameMusic();
} else if (_name == "submit_gameover_button") {
_root.fade_out_clip.doFade("HISCORE");
_root.music_controller.fadeOutGameMusic();
} else if (_name == "final_submit_button") {
_root.score = _global.saveFunctions.getTotalHiscore();
_global.saveFunctions.saveHiscoreSubmitted(_root.score);
_root.gotoAndStop("hiscore_miniclip");
} else if (_name == "play_again_miniclip") {
_root.fade_out_clip.doFade("NEXTSELECTSCREEN");
}
} else if ((_name == "finish_game_button") || (_name == "load_game_button")) {
gotoAndStop("_off");
}
}
var disabled = false;
}
Symbol 1040 MovieClip [__Packages.com.nitrome.sandman.Person] Frame 0
class com.nitrome.sandman.Person extends MovieClip
{
var _visible, man, hit_test, _parent, dir, gotoAndPlay, onEnterFrame, hitTest, _x, _y, gotoAndStop, prev_x, removeMovieClip, prev_y;
function Person () {
super();
_visible = false;
}
function doPause() {
is_paused = true;
man.stop();
}
function doRestart() {
is_paused = false;
man.play();
}
function checkExit() {
if (this instanceof com.nitrome.sandman.Sleeper) {
if (hit_test.hitTest(_parent.teleporter_end.teleporter_centre)) {
_parent.teleporter_end.doBeamUp();
if (dir == -1) {
gotoAndPlay("beamup_left");
} else if (dir == 1) {
gotoAndPlay("beamup_right");
}
delete onEnterFrame;
done_splat = true;
return(true);
}
}
return(false);
}
function checkNightmares() {
if (this instanceof com.nitrome.sandman.Sleeper) {
var _local2 = 1;
while (_local2 <= 10) {
if (hitTest(_parent["nightmare" + _local2])) {
falling = false;
climbing = false;
if (dir == -1) {
gotoAndPlay("die_left");
} else if (dir == 1) {
gotoAndPlay("die_right");
}
delete onEnterFrame;
done_splat = true;
return(true);
}
_local2++;
}
}
return(false);
}
function checkWater() {
if (((hitTest(_parent.water1.water_hit) || (hitTest(_parent.water2.water_hit))) || (hitTest(_parent.water3.water_hit))) || (hitTest(_parent.water4.water_hit))) {
falling = false;
climbing = false;
if (dir == -1) {
gotoAndPlay("die_left");
} else if (dir == 1) {
gotoAndPlay("die_right");
}
delete onEnterFrame;
done_splat = true;
return(true);
}
return(false);
}
function init(xpos, ypos) {
_x = xpos;
_y = ypos;
dir = random(2);
if (dir == 0) {
dir = -1;
}
displayDirection();
_x = Math.round(_x);
_y = Math.round(_y);
_visible = true;
onEnterFrame = function () {
if (this.is_paused == false) {
if (this.done_splat == false) {
if (this.checkExit() == false) {
if (this.checkWater() == false) {
if (this.checkNightmares() == false) {
if (this.climbing == true) {
this._y = this._y - this.move_amount;
if (this.checkPixel(this._x, this._y - this.move_amount) == true) {
} else {
this.displayDirection();
this.climbing = false;
}
} else if (this.stunned == true) {
if (this.checkPixel(this._x, this._y - this.move_amount) == true) {
this._y = this._y - this.move_amount;
}
} else {
var _local2 = false;
if (this.recently_stunned < this.max_stunned) {
this.recently_stunned++;
_local2 = true;
}
if ((this.checkFallingPixels() == true) && (_local2 == false)) {
if (this.checkPixel(this._x, this._y) == false) {
this.doFall();
} else {
this.dir = this.dir * -1;
this.stunned = true;
this.climbing = false;
this.gotoAndPlay("stunned");
}
} else if (this.checkStuck() == true) {
trace(this._name + " is stuck!");
this.climbing = true;
this.stunned = false;
if (this.dir == -1) {
this.gotoAndStop("climb_left");
} else if (this.dir == 1) {
this.gotoAndStop("climb_right");
}
} else if (this.checkPixel(this._x, this._y) == true) {
this.fall_count = 0;
if (this.falling == true) {
if (this.splatting == true) {
this.gotoAndPlay("splat");
this.done_splat = true;
} else {
if (this.displayed_falling == true) {
this.displayDirection();
this.displayed_falling = false;
}
this.falling = false;
}
}
this.checkSteps();
this.checkHitTestUp();
} else {
this.doFall();
}
}
}
}
}
}
this.storePosition();
}
};
}
function doFall() {
falling = true;
if (fall_count > 4) {
gotoAndStop("fall");
displayed_falling = true;
} else {
displayed_falling = false;
}
_y = _y + move_amount;
fall_count++;
if (fall_count > max_fall) {
splatting = true;
}
}
function finishStunned() {
recently_stunned = 0;
stunned = false;
climbing = false;
displayDirection();
}
function checkStuck() {
if (falling == false) {
if (_x == prev_x) {
if (checkPixel(_x, _y - move_amount) == true) {
stuck_count++;
if (stuck_count >= stuck_time) {
return(true);
}
return(false);
}
stuck_count = 0;
return(false);
}
stuck_count = 0;
return(false);
}
}
function die() {
if (this instanceof com.nitrome.sandman.Sleeper) {
_global.total_people_left--;
if (_global.total_people_left == 0) {
if (_global.people_saved > 0) {
_root.timer_clip.stopTimer();
if (_global.current_level == 15) {
_root.final_level_complete_popup.gotoAndPlay("open");
} else {
_root.level_complete_popup.gotoAndPlay("open");
}
} else {
_root.timer_clip.stopTimer();
_root.game_over_popup.gotoAndPlay("open");
}
}
}
done_splat = true;
delete onEnterFrame;
_visible = false;
(removeMovieClip());// not popped
}
function finishClimb() {
climbing = false;
stunned = false;
stuck_count = 0;
hit_up_count = 0;
falling = false;
displayDirection();
}
function checkPixel(x, y) {
var _local5 = Math.round(x / 2);
var _local4 = Math.round(y / 2);
var _local11 = _root.game_holder.finished_sand_box.getOpaqueNotRed(_local5, _local4);
var _local7 = false;
var _local6 = false;
var _local9 = false;
var _local10 = false;
var _local8 = false;
if (_global.stage_10_platform == true) {
_local7 = _root.game_holder.level_10_platform.getOpaque(_local5, _local4);
}
if (_global.stage_13_platform == true) {
_local6 = _root.game_holder.level_13_platform_1.getOpaque(_local5, _local4);
_local9 = _root.game_holder.level_13_platform_2.getOpaque(_local5, _local4);
}
if (_global.stage_11_door == true) {
_local10 = _root.game_holder.level_11_door.getOpaque(_local5, _local4);
}
if (_global.stage_12_platform == true) {
_local8 = _root.game_holder.level_12_platform.getOpaque(_local5, _local4);
}
if (_local7 == true) {
onLevel10Platform = true;
} else {
onLevel10Platform = false;
}
if (_local6 == true) {
onLevel13Platform1 = true;
} else {
onLevel13Platform1 = false;
}
if (_local9 == true) {
onLevel13Platform2 = true;
} else {
onLevel13Platform2 = false;
}
if (_local8 == true) {
onLevel12Platform = true;
} else {
onLevel12Platform = false;
}
if ((((((_local11 == true) || (_local7 == true)) || (_local6 == true)) || (_local9 == true)) || (_local10 == true)) || (_local8 == true)) {
return(true);
}
return(false);
}
function getOnLevel10Platform() {
return(onLevel10Platform);
}
function getOnLevel12Platform() {
return(onLevel12Platform);
}
function getOnLevel13Platform1() {
return(onLevel13Platform1);
}
function getOnLevel13Platform2() {
return(onLevel13Platform2);
}
function checkFallingPixels() {
var _local8 = new Array(_x - 4, _x - 3, _x - 2, _x - 1, _x, _x + 1, _x + 2, _x + 3, _x + 4);
var _local9 = new Array(_y - 16, _y - 16, _y - 16, _y - 16, _y - 16, _y - 16, _y - 16, _y - 16, _y - 16);
var _local3 = 0;
while (_local3 < _local8.length) {
var _local7 = _local8[_local3];
var _local6 = _local9[_local3];
var _local5 = Math.round(_local7 / 2);
var _local4 = Math.round(_local6 / 2);
if (_root.game_holder.sand_box.getOpaque(_local5, _local4) == true) {
return(true);
}
_local3++;
}
}
function displayDirection() {
if (dir == -1) {
gotoAndPlay("left");
} else if (dir == 1) {
gotoAndPlay("right");
}
}
function checkHitTestUp() {
if (checkPixel(_x, _y - 16) == true) {
dir = dir * -1;
displayDirection();
hit_up_count++;
if (hit_up_count >= 5) {
done_splat = true;
if (dir == -1) {
gotoAndPlay("die_left");
} else if (dir == 1) {
gotoAndPlay("die_right");
}
}
} else {
hit_up_count = 0;
}
}
function checkSteps() {
if (checkPixel(_x + (move_amount * dir), _y - 4) == true) {
dir = dir * -1;
displayDirection();
} else if (checkPixel(_x + (move_amount * dir), _y - 3) == true) {
_x = _x + (move_amount * dir);
_y = _y - move_amount;
} else if (checkPixel(_x + (move_amount * dir), _y - 2) == true) {
_x = _x + (move_amount * dir);
} else if (checkPixel(_x + (move_amount * dir), _y - 1) == true) {
_x = _x + (move_amount * dir);
} else if (checkPixel(_x + (move_amount * dir), _y) == true) {
_x = _x + (move_amount * dir);
_y = _y - move_amount;
} else {
_x = _x + (move_amount * dir);
_y = _y + move_amount;
}
}
function storePosition() {
_x = Math.round(_x);
_y = Math.round(_y);
prev_x = _x;
prev_y = _y;
}
function playDieSound() {
_root.die_sound_fx.gotoAndPlay(2);
}
var move_amount = 2;
var fall_count = 0;
var max_fall = 50;
var splatting = false;
var falling = false;
var climbing = false;
var done_splat = false;
var displayed_falling = false;
var stuck_count = 0;
var hit_up_count = 0;
var stunned = false;
var stuck_time = 10;
var recently_stunned = 100;
var max_stunned = 50;
var is_paused = false;
var onWeightBlockLeft = false;
var onWeightBlockRight = false;
var onLevel10Platform = false;
var onLevel12Platform = false;
var onLevel13Platform1 = false;
var onLevel13Platform2 = false;
}
Symbol 1041 MovieClip [__Packages.com.nitrome.sandman.Sleeper] Frame 0
class com.nitrome.sandman.Sleeper extends com.nitrome.sandman.Person
{
function Sleeper () {
super();
}
}
Symbol 1042 MovieClip [__Packages.com.nitrome.sandman.SkyBackground] Frame 0
class com.nitrome.sandman.SkyBackground extends MovieClip
{
var _width, _height;
function SkyBackground () {
super();
_width = _global._global.level_width;
_height = _global._global.level_height;
}
}
Symbol 1043 MovieClip [__Packages.com.nitrome.sandman.ColourButton] Frame 0
class com.nitrome.sandman.ColourButton extends MovieClip
{
var _name, _x, _parent, _y, gotoAndStop;
function ColourButton () {
super();
}
function onPress() {
_root.sand_button.setColour(_name);
_parent.selected_colour._x = _x;
_parent.selected_colour._y = _y;
}
function onRollOver() {
gotoAndStop("_over");
}
function onRollOut() {
gotoAndStop("_up");
}
}
Symbol 1044 MovieClip [__Packages.com.nitrome.sandman.ColourPanel] Frame 0
class com.nitrome.sandman.ColourPanel extends MovieClip
{
var gotoAndStop;
function ColourPanel () {
super();
if (_global.saveFunctions.getCompletedGame() == true) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
Symbol 1045 MovieClip [__Packages.com.nitrome.sandman.DarkTeleporterStart] Frame 0
class com.nitrome.sandman.DarkTeleporterStart extends MovieClip
{
var evilspin, interval, _x, _y, _parent;
function DarkTeleporterStart () {
super();
if (_global.quality_setting == "low") {
evilspin.stop();
}
}
function clearPeople() {
main_teleport_count = 0;
}
function setTotalPeople(n) {
total_people = n;
teleport_count = 0;
interval = setInterval(this, "doTeleport", 1000);
}
function doTeleport() {
if (teleport_count < total_people) {
teleport_count++;
main_teleport_count++;
createPerson(_x, _y);
} else {
clearInterval(interval);
}
}
function createPerson() {
_parent["nightmare" + main_teleport_count].init(_x, _y - 4);
}
function pauseTeleport() {
clearInterval(interval);
}
function restartTeleport() {
if (teleport_count < total_people) {
interval = setInterval(this, "doTeleport", 1000);
}
}
var teleport_count = 0;
static var main_teleport_count = 0;
var total_people = 0;
}
Symbol 1046 MovieClip [__Packages.com.nitrome.sandman.FadeOutClip] Frame 0
class com.nitrome.sandman.FadeOutClip extends MovieClip
{
var task, gotoAndPlay;
function FadeOutClip () {
super();
}
function doFade(task) {
this.task = task;
gotoAndPlay(2);
}
function performTask() {
if (task == "QUITGAME") {
_root.gotoAndStop("level_select_" + _global.current_level);
} else if (task == "PLAYGAME") {
_root.gotoAndPlay("game_level");
} else if (task == "NEWGAME") {
_root.gotoAndStop("level_select_1");
} else if (task == "LOADGAME") {
var _local5 = _global.saveFunctions.getLastOpenedStage();
var _local4 = String("level_select_" + _local5);
_root.gotoAndStop(_local4);
} else if (task == "INSTRUCTIONS") {
_root.gotoAndStop("instructions");
} else if (task == "CREDITS") {
_root.gotoAndStop("credits");
} else if (task == "PLAYNEXTLEVEL") {
_root.game_holder.finished_sand_box.clearMemory();
_root.game_holder.sand_box.clearMemory();
if (_global.stage_10_platform == true) {
_root.game_holder.level_10_platform.clearMemory();
}
if (_global.stage_11_door == true) {
_root.game_holder.level_11_door.clearMemory();
}
if (_global.stage_12_platform == true) {
_root.game_holder.level_12_platform.clearMemory();
}
if (_global.stage_13_platform == true) {
_root.game_holder.level_13_platform1.clearMemory();
_root.game_holder.level_13_platform2.clearMemory();
}
_root.gotoAndPlay("game_level");
} else if (task == "NEXTSELECTSCREEN") {
_root.game_holder.finished_sand_box.clearMemory();
_root.game_holder.sand_box.clearMemory();
if (_global.stage_10_platform == true) {
_root.game_holder.level_10_platform.clearMemory();
}
if (_global.stage_11_door == true) {
_root.game_holder.level_11_door.clearMemory();
}
if (_global.stage_12_platform == true) {
_root.game_holder.level_12_platform.clearMemory();
}
if (_global.stage_13_platform == true) {
_root.game_holder.level_13_platform1.clearMemory();
_root.game_holder.level_13_platform2.clearMemory();
}
var _local5 = _global.saveFunctions.getLastOpenedStage();
var _local4 = String("level_select_" + _local5);
_root.gotoAndStop(_local4);
} else if (task == "TRYAGAIN") {
_root.game_holder.finished_sand_box.clearMemory();
_root.game_holder.sand_box.clearMemory();
if (_global.stage_10_platform == true) {
_root.game_holder.level_10_platform.clearMemory();
}
if (_global.stage_11_door == true) {
_root.game_holder.level_11_door.clearMemory();
}
if (_global.stage_12_platform == true) {
_root.game_holder.level_12_platform.clearMemory();
}
if (_global.stage_13_platform == true) {
_root.game_holder.level_13_platform1.clearMemory();
_root.game_holder.level_13_platform2.clearMemory();
}
_root.gotoAndPlay("game_level");
} else if (task == "MENU") {
_root.game_holder.finished_sand_box.clearMemory();
_root.game_holder.sand_box.clearMemory();
if (_global.stage_10_platform == true) {
_root.game_holder.level_10_platform.clearMemory();
}
if (_global.stage_11_door == true) {
_root.game_holder.level_11_door.clearMemory();
}
if (_global.stage_12_platform == true) {
_root.game_holder.level_12_platform.clearMemory();
}
if (_global.stage_13_platform == true) {
_root.game_holder.level_13_platform1.clearMemory();
_root.game_holder.level_13_platform2.clearMemory();
}
_root.gotoAndStop("start_screen");
} else if (task == "CONGRATULATIONS") {
_root.game_holder.finished_sand_box.clearMemory();
_root.game_holder.sand_box.clearMemory();
if (_global.stage_10_platform == true) {
_root.game_holder.level_10_platform.clearMemory();
}
if (_global.stage_11_door == true) {
_root.game_holder.level_11_door.clearMemory();
}
if (_global.stage_12_platform == true) {
_root.game_holder.level_12_platform.clearMemory();
}
if (_global.stage_13_platform == true) {
_root.game_holder.level_13_platform1.clearMemory();
_root.game_holder.level_13_platform2.clearMemory();
}
_root.gotoAndStop("congratulations");
} else if (task == "NITROME") {
_root.gotoAndPlay("nitrome");
} else if (task == "START_SCREEN") {
_root.gotoAndStop("start_screen");
} else if (task == "HISCORE") {
_root.game_holder.finished_sand_box.clearMemory();
_root.game_holder.sand_box.clearMemory();
if (_global.stage_10_platform == true) {
_root.game_holder.level_10_platform.clearMemory();
}
if (_global.stage_11_door == true) {
_root.game_holder.level_11_door.clearMemory();
}
if (_global.stage_12_platform == true) {
_root.game_holder.level_12_platform.clearMemory();
}
if (_global.stage_13_platform == true) {
_root.game_holder.level_13_platform1.clearMemory();
_root.game_holder.level_13_platform2.clearMemory();
}
_root.gotoAndStop("hiscore");
}
}
}
Symbol 1047 MovieClip [__Packages.com.nitrome.sandman.TeleporterMapHolder] Frame 0
class com.nitrome.sandman.TeleporterMapHolder extends MovieClip
{
var attachMovie;
function TeleporterMapHolder () {
super();
init();
}
function init() {
attachMovie(_global.teleporter_map, "map", 1);
}
}
Symbol 1048 MovieClip [__Packages.com.nitrome.sandman.FinishedSandBox] Frame 0
class com.nitrome.sandman.FinishedSandBox extends MovieClip
{
var interval, createEmptyMovieClip, mc;
function FinishedSandBox () {
super();
interval = setInterval(this, "init", 100);
}
function clearMemory() {
_global.bitmap_finished.dispose();
}
function init() {
clearMemory();
_global.bitmap_finished = new flash.display.BitmapData(_global.level_width / 2, _global.level_height / 2, true, 16777215);
_global.bitmap_finished = flash.display.BitmapData.loadBitmap(_global.collision_map);
createEmptyMovieClip("mc", 100);
mc.attachBitmap(_global.bitmap_finished, 1);
clearInterval(interval);
mc._width = _global.level_width;
mc._height = _global.level_height;
}
function getOpaque(x, y) {
var _local3 = _global.bitmap_finished.getPixel32(x, y);
var _local2 = (_global.bitmap_finished.getPixel32(x, y) >> 24) & 255;
if (_local2 == 0) {
return(false);
}
return(true);
}
function getOpaqueNotRed(x, y) {
var _local2 = _global.bitmap_finished.getPixel32(x, y);
var _local6 = (_local2 >> 24) & 255;
var _local3 = (_local2 >> 16) & 255;
var _local5 = (_local2 >> 8) & 255;
var _local4 = _local2 & 255;
if (_local6 == 0) {
return(false);
}
if (((_local3 > 0) && (_local5 == 0)) && (_local4 == 0)) {
return(false);
}
return(true);
}
function getOpaqueNotGreenOrBlue(x, y) {
var _local2 = _global.bitmap_finished.getPixel32(x, y);
var _local6 = (_local2 >> 24) & 255;
var _local3 = (_local2 >> 16) & 255;
var _local5 = (_local2 >> 8) & 255;
var _local4 = _local2 & 255;
if (_local6 == 0) {
return(false);
}
if ((((_local3 == 0) && (_local5 > 0)) && (_local4 == 0)) || (((_local3 == 0) && (_local5 == 0)) && (_local4 > 0))) {
return(false);
}
return(true);
}
function getOpaqueGreen(x, y) {
var _local2 = _global.bitmap_finished.getPixel32(x, y);
var _local6 = (_local2 >> 24) & 255;
var _local3 = (_local2 >> 16) & 255;
var _local5 = (_local2 >> 8) & 255;
var _local4 = _local2 & 255;
if (_local6 == 0) {
return(false);
}
if (((_local3 == 0) && (_local5 > 0)) && (_local4 == 0)) {
return(true);
}
return(false);
}
function getOpaqueBlue(x, y) {
var _local2 = _global.bitmap_finished.getPixel32(x, y);
var _local6 = (_local2 >> 24) & 255;
var _local3 = (_local2 >> 16) & 255;
var _local5 = (_local2 >> 8) & 255;
var _local4 = _local2 & 255;
if (_local6 == 0) {
return(false);
}
if (((_local3 == 0) && (_local5 == 0)) && (_local4 > 0)) {
return(true);
}
return(false);
}
function paintPixel(x, y, c) {
var _local2 = (c & 16711680) >> 16;
var _local6 = (c & 65280) >> 8;
var _local3 = c & 255;
var _local5 = ((-16777216 | (_local2 << 16)) | (_local6 << 8)) | _local3;
_global.bitmap_finished.setPixel32(x, y, _local5);
}
function paintPixel32(x, y, c) {
_global.bitmap_finished.setPixel32(x, y, c);
}
function getPixelColour(x, y) {
return(_global.bitmap_finished.getPixel32(x, y));
}
}
Symbol 1049 MovieClip [__Packages.com.nitrome.sandman.WheelHolder] Frame 0
class com.nitrome.sandman.WheelHolder extends MovieClip
{
var attachMovie;
function WheelHolder () {
super();
}
function addWheel(xpos, ypos, control) {
wheel_count++;
attachMovie("wheel", "wheel" + wheel_count, wheel_count);
this["wheel" + wheel_count].init(xpos, ypos, control);
}
var wheel_count = 0;
}
Symbol 1050 MovieClip [__Packages.com.nitrome.sandman.SandBox] Frame 0
class com.nitrome.sandman.SandBox extends MovieClip
{
var interval, createEmptyMovieClip, mc;
function SandBox () {
super();
interval = setInterval(this, "init", 100);
}
function clearMemory() {
_global.bitmap_falling.dispose();
}
function init() {
clearMemory();
_global.bitmap_falling = new flash.display.BitmapData(_global.level_width / 2, _global.level_height / 2, true, 16777215);
createEmptyMovieClip("mc", 100);
mc.attachBitmap(_global.bitmap_falling, 1);
mc._width = _global.level_width;
mc._height = _global.level_height;
clearInterval(interval);
interval = setInterval(this, "checkSpilling", 75);
}
function checkSpilling() {
if (_global.spilling == true) {
attachPixelGroup(_root.sand_button._xmouse / 2, _root.sand_button._ymouse / 2);
}
}
function attachPixelGroup(x, y) {
x = Math.round(x);
y = Math.round(y);
if ((x % 2) != 0) {
x--;
}
if ((y % 2) != 0) {
y--;
}
var _local4 = new Array(x - 2, x - 1, x, x - 1, x, x + 1, x - 1, x);
var _local7 = new Array(y, y, y, y + 1, y + 1, y + 1, y + 2, y + 2);
var _local3 = 0;
while (_local3 < _local4.length) {
pixels[pixel_count] = new com.nitrome.sandman.FallingPixel();
pixels[pixel_count].init(_local4[_local3], _local7[_local3], _global.selected_colour);
pixel_count++;
_local3++;
}
}
function paintPixelTransparent(x, y) {
_global.bitmap_falling.setPixel32(x, y, 0);
}
function paintPixel(x, y, c) {
var _local2 = (c & 16711680) >> 16;
var _local6 = (c & 65280) >> 8;
var _local3 = c & 255;
var _local5 = ((-16777216 | (_local2 << 16)) | (_local6 << 8)) | _local3;
_global.bitmap_falling.setPixel32(x, y, _local5);
}
function getOpaque(x, y) {
var _local3 = _global.bitmap_falling.getPixel32(x, y);
var _local2 = (_global.bitmap_falling.getPixel32(x, y) >> 24) & 255;
if (_local2 == 0) {
return(false);
}
return(true);
}
var pixels = new Array();
var pixel_count = 0;
}
Symbol 1051 MovieClip [__Packages.com.nitrome.sandman.FallingPixel] Frame 0
class com.nitrome.sandman.FallingPixel
{
var xpos, ypos, colour, fallInterval, prev_xpos, prev_ypos;
function FallingPixel () {
}
function init(x, y, colour) {
if (_root.game_holder.finished_sand_box.getOpaque(x, y)) {
paintClear();
} else {
xpos = x;
ypos = y;
this.colour = colour;
fallInterval = setInterval(this, "fall", 20);
}
}
function fall() {
prev_xpos = xpos;
prev_ypos = ypos;
var _local5;
var _local4;
_local5 = xpos;
_local4 = ypos + speed;
if (_root.game_holder.finished_sand_box.getOpaqueNotGreenOrBlue(_local5, _local4)) {
_local5 = xpos - speed;
_local4 = ypos + speed;
if (_root.game_holder.finished_sand_box.getOpaqueNotGreenOrBlue(_local5, _local4)) {
_local5 = xpos + speed;
_local4 = ypos + speed;
if (_root.game_holder.finished_sand_box.getOpaqueNotGreenOrBlue(_local5, _local4)) {
paintClear();
stopFalling();
} else {
ypos = ypos + speed;
xpos = xpos + speed;
paint();
}
} else {
ypos = ypos + speed;
xpos = xpos - speed;
paint();
}
} else if ((_global.moving_platform == true) && (_root.game_holder.moving_platform_layer.getOpaque(_local5, _local4))) {
_local5 = xpos - speed;
_local4 = ypos + speed;
if (_root.game_holder.moving_platform_layer.getOpaque(_local5, _local4)) {
_local5 = xpos + speed;
_local4 = ypos + speed;
if (_root.game_holder.moving_platform_layer.getOpaque(_local5, _local4)) {
_root.game_holder.moving_platform_layer.addPixelToBitmap(xpos, ypos, colour);
stopFallingOnPlatform();
} else {
ypos = ypos + speed;
xpos = xpos + speed;
paint();
}
} else {
ypos = ypos + speed;
xpos = xpos - speed;
paint();
}
} else if ((_global.wheel_moving_platform == true) && (_root.game_holder.wheel_controlled_platform.getOpaque(_local5, _local4))) {
_local5 = xpos - speed;
_local4 = ypos + speed;
if (_root.game_holder.wheel_controlled_platform.getOpaque(_local5, _local4)) {
_local5 = xpos + speed;
_local4 = ypos + speed;
if (_root.game_holder.wheel_controlled_platform.getOpaque(_local5, _local4)) {
_root.game_holder.wheel_controlled_platform.addPixelToBitmap(xpos, ypos, colour);
stopFallingOnPlatform();
} else {
ypos = ypos + speed;
xpos = xpos + speed;
paint();
}
} else {
ypos = ypos + speed;
xpos = xpos - speed;
paint();
}
} else if (_global.weighted_platforms == true) {
if (_root.game_holder.weight_block_left.getOpaque(_local5, _local4)) {
_local5 = xpos - speed;
_local4 = ypos + speed;
if (_root.game_holder.weight_block_left.getOpaque(_local5, _local4)) {
_local5 = xpos + speed;
_local4 = ypos + speed;
if (_root.game_holder.weight_block_left.getOpaque(_local5, _local4)) {
_root.game_holder.weight_block_left.addPixelToBitmap(xpos, ypos, colour);
stopFallingOnPlatform();
} else {
ypos = ypos + speed;
xpos = xpos + speed;
paint();
}
} else {
ypos = ypos + speed;
xpos = xpos - speed;
paint();
}
} else if (_root.game_holder.weight_block_right.getOpaque(_local5, _local4)) {
_local5 = xpos - speed;
_local4 = ypos + speed;
if (_root.game_holder.weight_block_right.getOpaque(_local5, _local4)) {
_local5 = xpos + speed;
_local4 = ypos + speed;
if (_root.game_holder.weight_block_right.getOpaque(_local5, _local4)) {
_root.game_holder.weight_block_right.addPixelToBitmap(xpos, ypos, colour);
stopFallingOnPlatform();
} else {
ypos = ypos + speed;
xpos = xpos + speed;
paint();
}
} else {
ypos = ypos + speed;
xpos = xpos - speed;
paint();
}
} else {
ypos = ypos + speed;
paint();
}
} else if ((_global.stage_10_platform == true) && (_root.game_holder.level_10_platform.getOpaque(_local5, _local4))) {
_local5 = xpos - speed;
_local4 = ypos + speed;
if (_root.game_holder.level_10_platform.getOpaque(_local5, _local4)) {
_local5 = xpos + speed;
_local4 = ypos + speed;
if (_root.game_holder.level_10_platform.getOpaque(_local5, _local4)) {
_root.game_holder.level_10_platform.addPixelToBitmap(xpos, ypos, colour);
stopFallingOnPlatform();
} else {
ypos = ypos + speed;
xpos = xpos + speed;
paint();
}
} else {
ypos = ypos + speed;
xpos = xpos - speed;
paint();
}
} else if ((_global.stage_13_platform == true) && (_root.game_holder.level_13_platform_1.getOpaque(_local5, _local4))) {
_local5 = xpos - speed;
_local4 = ypos + speed;
if (_root.game_holder.level_13_platform_1.getOpaque(_local5, _local4)) {
_local5 = xpos + speed;
_local4 = ypos + speed;
if (_root.game_holder.level_13_platform_1.getOpaque(_local5, _local4)) {
_root.game_holder.level_13_platform_1.addPixelToBitmap(xpos, ypos, colour);
stopFallingOnPlatform();
} else {
ypos = ypos + speed;
xpos = xpos + speed;
paint();
}
} else {
ypos = ypos + speed;
xpos = xpos - speed;
paint();
}
} else if ((_global.stage_13_platform == true) && (_root.game_holder.level_13_platform_2.getOpaque(_local5, _local4))) {
_local5 = xpos - speed;
_local4 = ypos + speed;
if (_root.game_holder.level_13_platform_2.getOpaque(_local5, _local4)) {
_local5 = xpos + speed;
_local4 = ypos + speed;
if (_root.game_holder.level_13_platform_2.getOpaque(_local5, _local4)) {
_root.game_holder.level_13_platform_2.addPixelToBitmap(xpos, ypos, colour);
stopFallingOnPlatform();
} else {
ypos = ypos + speed;
xpos = xpos + speed;
paint();
}
} else {
ypos = ypos + speed;
xpos = xpos - speed;
paint();
}
} else if ((_global.stage_12_platform == true) && _root.game_holder.level_12_platform.getOpaque(_local5, _local4)) {
_local5 = xpos - speed;
_local4 = ypos + speed;
if (_root.game_holder.level_12_platform.getOpaque(_local5, _local4)) {
_local5 = xpos + speed;
_local4 = ypos + speed;
if (_root.game_holder.level_12_platform.getOpaque(_local5, _local4)) {
_root.game_holder.level_12_platform.addPixelToBitmap(xpos, ypos, colour);
stopFallingOnPlatform();
} else {
ypos = ypos + speed;
xpos = xpos + speed;
paint();
}
} else {
ypos = ypos + speed;
xpos = xpos - speed;
paint();
}
} else {
ypos = ypos + speed;
paint();
}
checkForWheel();
}
function stopFallingOnPlatform() {
_root.game_holder.sand_box.paintPixelTransparent(prev_xpos, prev_ypos);
clearInterval(fallInterval);
}
function stopFalling() {
_root.game_holder.sand_box.paintPixelTransparent(prev_xpos, prev_ypos);
_root.game_holder.finished_sand_box.paintPixel(xpos, ypos, colour);
clearInterval(fallInterval);
}
function paint() {
_root.game_holder.sand_box.paintPixelTransparent(prev_xpos, prev_ypos);
_root.game_holder.sand_box.paintPixel(xpos, ypos, colour);
}
function paintClear() {
_root.game_holder.sand_box.paintPixelTransparent(prev_xpos, prev_ypos);
_root.game_holder.sand_box.paintPixelTransparent(xpos, ypos);
}
function checkForWheel() {
if (_root.game_holder.finished_sand_box.getOpaqueGreen(xpos, ypos)) {
_root.game_holder.wheel_holder.wheel1.incrementWheelMovingLeft();
} else if (_root.game_holder.finished_sand_box.getOpaqueBlue(xpos, ypos)) {
_root.game_holder.wheel_holder.wheel1.incrementWheelMovingRight();
}
}
static var speed = 1;
var active = false;
}
Symbol 1052 MovieClip [__Packages.com.nitrome.sandman.WaterLayer] Frame 0
class com.nitrome.sandman.WaterLayer extends MovieClip
{
var attachMovie;
function WaterLayer () {
super();
init();
}
function init() {
attachMovie(_global.water_layer, "water", 1);
}
}
Symbol 1053 MovieClip [__Packages.com.nitrome.sandman.GraphicsLayer] Frame 0
class com.nitrome.sandman.GraphicsLayer extends MovieClip
{
var attachMovie;
function GraphicsLayer () {
super();
init();
}
function init() {
attachMovie(_global.graphics_layer, "graphics", 1);
}
}
Symbol 1054 MovieClip [__Packages.com.nitrome.sandman.SteppedMovingPixelObject] Frame 0
class com.nitrome.sandman.SteppedMovingPixelObject extends MovieClip
{
var removeMovieClip, prev_xpos, prev_ypos, graphic_width, graphic_height, xpos, ypos, createEmptyMovieClip, mc, getNextHighestDepth, linkage_id, interval, start_x, start_y, end_x, end_y;
function SteppedMovingPixelObject () {
super();
}
function clearMemory() {
_global.stepped_bitmap_layer.dispose();
_global.stepped_bitmap.dispose();
(removeMovieClip());// not popped
}
function drawToScreen() {
_global.stepped_bitmap_layer.fillRect(new flash.geom.Rectangle(prev_xpos, prev_ypos, graphic_width, graphic_height), 16777215);
_global.stepped_bitmap_layer.copyPixels(_global.stepped_bitmap, new flash.geom.Rectangle(0, 0, graphic_width, graphic_height), new flash.geom.Point(xpos, ypos));
}
function init() {
_global.stepped_bitmap_layer = new flash.display.BitmapData(_global.level_width / 2, _global.level_height / 2, true, 16777215);
createEmptyMovieClip("mc", 100);
mc.attachBitmap(_global.stepped_bitmap_layer, getNextHighestDepth());
mc._width = _global.level_width;
mc._height = _global.level_height;
_global.stepped_bitmap = new flash.display.BitmapData(graphic_width, graphic_height, true, 16777215);
_global.stepped_bitmap = flash.display.BitmapData.loadBitmap(linkage_id);
clearInterval(interval);
xpos = start_x;
ypos = start_y;
drawToScreen();
}
function moveLeft() {
prev_xpos = xpos;
prev_ypos = ypos;
if ((xpos - move_amount) < start_x) {
xpos = start_x;
checkPeopleX(0);
} else {
xpos = xpos - move_amount;
checkPeopleX(-move_amount);
}
drawToScreen();
}
function moveRight() {
prev_xpos = xpos;
prev_ypos = ypos;
if ((xpos + move_amount) > end_x) {
xpos = end_x;
checkPeopleX(0);
} else {
xpos = xpos + move_amount;
checkPeopleX(move_amount);
}
drawToScreen();
}
function moveUp() {
prev_xpos = xpos;
prev_ypos = ypos;
if ((ypos - move_amount) < start_y) {
ypos = start_y;
} else {
ypos = ypos - move_amount;
}
drawToScreen();
}
function moveDown() {
prev_xpos = xpos;
prev_ypos = ypos;
if ((ypos + move_amount) > end_y) {
ypos = end_y;
} else {
ypos = ypos + move_amount;
}
drawToScreen();
}
function checkPeopleX(n) {
var _local2 = 1;
while (_local2 <= 10) {
if (_root.game_holder.teleporter_map_holder.map["person" + _local2].getOnLevel10Platform() == true) {
trace(("person" + _local2) + " is being moved along");
_root.game_holder.teleporter_map_holder.map["person" + _local2]._x = _root.game_holder.teleporter_map_holder.map["person" + _local2]._x + (n * 4);
}
_local2++;
}
}
function getOpaque(x, y) {
var _local3 = _global.stepped_bitmap_layer.getPixel32(x, y);
var _local2 = (_global.stepped_bitmap_layer.getPixel32(x, y) >> 24) & 255;
if (_local2 == 0) {
return(false);
}
return(true);
}
function addPixelToBitmap(x, y, c) {
var _local7 = x - xpos;
var _local6 = y - ypos;
var _local3 = (c & 16711680) >> 16;
var _local9 = (c & 65280) >> 8;
var _local4 = c & 255;
var _local8 = ((-16777216 | (_local3 << 16)) | (_local9 << 8)) | _local4;
_global.stepped_bitmap.setPixel32(_local7, _local6, _local8);
drawToScreen();
}
function getXpos() {
return(xpos);
}
function getYpos() {
return(ypos);
}
var move_amount = 5;
}
Symbol 1055 MovieClip [__Packages.com.nitrome.sandman.Level10Platform] Frame 0
class com.nitrome.sandman.Level10Platform extends com.nitrome.sandman.SteppedMovingPixelObject
{
var interval;
function Level10Platform () {
super();
if (_global.stage_10_platform == true) {
interval = setInterval(this, "init", 100);
}
}
function checkPeopleX(n) {
var _local2 = 1;
while (_local2 <= 10) {
if (_root.game_holder.teleporter_map_holder.map["person" + _local2].getOnLevel10Platform() == true) {
trace(("person" + _local2) + " is being moved along");
_root.game_holder.teleporter_map_holder.map["person" + _local2]._x = _root.game_holder.teleporter_map_holder.map["person" + _local2]._x + (n * 4);
}
_local2++;
}
}
var linkage_id = "stage_10_platform";
var graphic_width = 40;
var graphic_height = 300;
var start_x = 352;
var start_y = -200;
var end_x = 473;
var end_y = -200;
var move_amount = 1;
}
Symbol 1056 MovieClip [__Packages.com.nitrome.sandman.RealLevel10Platform] Frame 0
class com.nitrome.sandman.RealLevel10Platform extends MovieClip
{
var interval, _visible, _x, _y;
function RealLevel10Platform () {
super();
if (_global.stage_10_platform == true) {
checkMove();
interval = setInterval(this, "checkMove", 20);
} else {
_visible = false;
}
}
function checkMove() {
var _local4 = _root.game_holder.level_10_platform.getXpos();
var _local3 = _root.game_holder.level_10_platform.getYpos();
_local3 = _local3 + 288;
_x = _local4 * 2;
_y = _local3 * 2;
updateAfterEvent();
}
}
Symbol 1057 MovieClip [__Packages.com.nitrome.sandman.Level11Door] Frame 0
class com.nitrome.sandman.Level11Door extends com.nitrome.sandman.SteppedMovingPixelObject
{
var interval, move_interval, ypos, moveDown;
function Level11Door () {
super();
if (_global.stage_11_door == true) {
interval = setInterval(this, "init", 100);
move_interval = setInterval(this, "tryMoveDown", 500);
}
}
function tryMoveDown() {
if (_root.game_holder.wheel_holder.wheel1.getWheelMoving() == false) {
if (ypos < end_y) {
moveDown();
}
}
}
var linkage_id = "stage_11_door";
var graphic_width = 14;
var graphic_height = 61;
var start_x = 120;
var start_y = 155;
var end_x = 120;
var end_y = 179;
var move_amount = 1;
}
Symbol 1058 MovieClip [__Packages.com.nitrome.sandman.Level12Platform] Frame 0
class com.nitrome.sandman.Level12Platform extends com.nitrome.sandman.SteppedMovingPixelObject
{
var interval;
function Level12Platform () {
super();
if (_global.stage_12_platform == true) {
interval = setInterval(this, "init", 100);
}
}
function checkPeopleX(n) {
var _local2 = 1;
while (_local2 <= 10) {
if (_root.game_holder.teleporter_map_holder.map["person" + _local2].getOnLevel12Platform() == true) {
trace(("person" + _local2) + " is being moved along");
_root.game_holder.teleporter_map_holder.map["person" + _local2]._x = _root.game_holder.teleporter_map_holder.map["person" + _local2]._x + (n * 4);
}
_local2++;
}
}
var linkage_id = "stage_10_platform";
var graphic_width = 40;
var graphic_height = 300;
var start_x = 244;
var start_y = -228;
var end_x = 295;
var end_y = -228;
var move_amount = 1;
}
Symbol 1059 MovieClip [__Packages.com.nitrome.sandman.RealLevel12Platform] Frame 0
class com.nitrome.sandman.RealLevel12Platform extends MovieClip
{
var interval, _visible, _x, _y;
function RealLevel12Platform () {
super();
if (_global.stage_12_platform == true) {
checkMove();
interval = setInterval(this, "checkMove", 20);
} else {
_visible = false;
}
}
function checkMove() {
var _local4 = _root.game_holder.level_12_platform.getXpos();
var _local3 = _root.game_holder.level_12_platform.getYpos();
_local3 = _local3 + 288;
_x = _local4 * 2;
_y = _local3 * 2;
updateAfterEvent();
}
}
Symbol 1060 MovieClip [__Packages.com.nitrome.sandman.Level13Platform1] Frame 0
class com.nitrome.sandman.Level13Platform1 extends MovieClip
{
var interval, createEmptyMovieClip, mc, xpos, start_x, ypos, start_y, prev_xpos, prev_ypos;
function Level13Platform1 () {
super();
if (_global.stage_13_platform == true) {
interval = setInterval(this, "init", 100);
}
}
function clearMemory() {
_global.level_13_1_bitmap_layer.dispose();
_global.level_13_1_bitmap.dispose();
}
function init() {
_global.level_13_1_bitmap_layer = new flash.display.BitmapData(_global.level_width / 2, _global.level_height / 2, true, 16777215);
createEmptyMovieClip("mc", 100);
mc.attachBitmap(_global.level_13_1_bitmap_layer, 1);
mc._width = _global.level_width;
mc._height = _global.level_height;
_global.level_13_1_bitmap = new flash.display.BitmapData(graphic_width, graphic_height, true, 16777215);
_global.level_13_1_bitmap = flash.display.BitmapData.loadBitmap(linkage_id);
clearInterval(interval);
xpos = start_x;
ypos = start_y;
interval = setInterval(this, "moveOnScreen", 100);
}
function drawToScreen() {
_global.level_13_1_bitmap_layer.fillRect(new flash.geom.Rectangle(prev_xpos, prev_ypos, graphic_width, graphic_height), 16777215);
_global.level_13_1_bitmap_layer.copyPixels(_global.level_13_1_bitmap, new flash.geom.Rectangle(0, 0, graphic_width, graphic_height), new flash.geom.Point(xpos, ypos));
}
function moveOnScreen() {
prev_xpos = xpos;
prev_ypos = ypos;
array_count++;
if (array_count >= x_values.length) {
array_count = 0;
}
xpos = x_values[array_count];
ypos = y_values[array_count];
if (xpos != prev_xpos) {
var _local4;
if (xpos > prev_xpos) {
_local4 = xpos - prev_xpos;
} else if (xpos < prev_xpos) {
_local4 = -(prev_xpos - xpos);
}
var _local3 = 1;
while (_local3 <= 10) {
if (_root.game_holder.teleporter_map_holder.map["person" + _local3].getOnLevel13Platform1() == true) {
_root.game_holder.teleporter_map_holder.map["person" + _local3]._x = _root.game_holder.teleporter_map_holder.map["person" + _local3]._x + (_local4 * 8);
}
_local3++;
}
}
drawToScreen();
}
function addPixelToBitmap(x, y, c) {
var _local7 = x - xpos;
var _local6 = y - ypos;
var _local3 = (c & 16711680) >> 16;
var _local9 = (c & 65280) >> 8;
var _local4 = c & 255;
var _local8 = ((-16777216 | (_local3 << 16)) | (_local9 << 8)) | _local4;
_global.level_13_1_bitmap.setPixel32(_local7, _local6, _local8);
drawToScreen();
}
function getOpaque(x, y) {
var _local3 = _global.level_13_1_bitmap_layer.getPixel32(x, y);
var _local2 = (_global.level_13_1_bitmap_layer.getPixel32(x, y) >> 24) & 255;
if (_local2 == 0) {
return(false);
}
return(true);
}
function getXpos() {
return(xpos);
}
function getYpos() {
return(ypos);
}
var x_values = new Array(103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 184, 183, 182, 181, 180, 179, 178, 177, 176, 175, 174, 173, 172, 171, 170, 169, 168, 167, 166, 165, 164, 163, 162, 161, 160, 159, 158, 157, 156, 155, 154, 153, 152, 151, 150, 149, 148, 147, 146, 145, 144, 143, 142, 141, 140, 139, 138, 137, 136, 135, 134, 133, 132, 131, 130, 129, 128, 127, 126, 125, 124, 123, 122, 121, 120, 119, 118, 117, 116, 115, 114, 113, 112, 111, 110, 109, 108, 107, 106, 105, 104);
var y_values = new Array(-47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47, -47);
var array_count = 0;
var linkage_id = "stage_13_platform_1";
var graphic_width = 40;
var graphic_height = 200;
}
Symbol 1061 MovieClip [__Packages.com.nitrome.sandman.RealLevel13Platform1] Frame 0
class com.nitrome.sandman.RealLevel13Platform1 extends MovieClip
{
var interval, _visible, _x, _y;
function RealLevel13Platform1 () {
super();
if (_global.stage_13_platform == true) {
checkMove();
interval = setInterval(this, "checkMove", 20);
} else {
_visible = false;
}
}
function checkMove() {
var _local4 = _root.game_holder.level_13_platform_1.getXpos();
var _local3 = _root.game_holder.level_13_platform_1.getYpos();
_local3 = _local3 + 188;
_x = _local4 * 2;
_y = _local3 * 2;
updateAfterEvent();
}
}
Symbol 1062 MovieClip [__Packages.com.nitrome.sandman.Level13Platform2] Frame 0
class com.nitrome.sandman.Level13Platform2 extends MovieClip
{
var interval, createEmptyMovieClip, mc, xpos, start_x, ypos, start_y, prev_xpos, prev_ypos;
function Level13Platform2 () {
super();
if (_global.stage_13_platform == true) {
interval = setInterval(this, "init", 100);
}
}
function clearMemory() {
_global.level_13_2_bitmap_layer.dispose();
_global.level_13_2_bitmap.dispose();
}
function init() {
_global.level_13_2_bitmap_layer = new flash.display.BitmapData(_global.level_width / 2, _global.level_height / 2, true, 16777215);
createEmptyMovieClip("mc", 100);
mc.attachBitmap(_global.level_13_2_bitmap_layer, 1);
mc._width = _global.level_width;
mc._height = _global.level_height;
_global.level_13_2_bitmap = new flash.display.BitmapData(graphic_width, graphic_height, true, 16777215);
_global.level_13_2_bitmap = flash.display.BitmapData.loadBitmap(linkage_id);
clearInterval(interval);
xpos = start_x;
ypos = start_y;
interval = setInterval(this, "moveOnScreen", 100);
}
function drawToScreen() {
_global.level_13_2_bitmap_layer.fillRect(new flash.geom.Rectangle(prev_xpos, prev_ypos, graphic_width, graphic_height), 16777215);
_global.level_13_2_bitmap_layer.copyPixels(_global.level_13_2_bitmap, new flash.geom.Rectangle(0, 0, graphic_width, graphic_height), new flash.geom.Point(xpos, ypos));
}
function moveOnScreen() {
prev_xpos = xpos;
prev_ypos = ypos;
array_count++;
if (array_count >= x_values.length) {
array_count = 0;
}
xpos = x_values[array_count];
ypos = y_values[array_count];
if (xpos != prev_xpos) {
var _local4;
if (xpos > prev_xpos) {
_local4 = xpos - prev_xpos;
} else if (xpos < prev_xpos) {
_local4 = -(prev_xpos - xpos);
}
var _local3 = 1;
while (_local3 <= 10) {
if (_root.game_holder.teleporter_map_holder.map["person" + _local3].getOnLevel13Platform2() == true) {
_root.game_holder.teleporter_map_holder.map["person" + _local3]._x = _root.game_holder.teleporter_map_holder.map["person" + _local3]._x + (_local4 * 8);
}
_local3++;
}
}
drawToScreen();
}
function addPixelToBitmap(x, y, c) {
var _local7 = x - xpos;
var _local6 = y - ypos;
var _local3 = (c & 16711680) >> 16;
var _local9 = (c & 65280) >> 8;
var _local4 = c & 255;
var _local8 = ((-16777216 | (_local3 << 16)) | (_local9 << 8)) | _local4;
_global.level_13_2_bitmap.setPixel32(_local7, _local6, _local8);
drawToScreen();
}
function getOpaque(x, y) {
var _local3 = _global.level_13_2_bitmap_layer.getPixel32(x, y);
var _local2 = (_global.level_13_2_bitmap_layer.getPixel32(x, y) >> 24) & 255;
if (_local2 == 0) {
return(false);
}
return(true);
}
function getXpos() {
return(xpos);
}
function getYpos() {
return(ypos);
}
var x_values = new Array(387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 387, 386, 385, 384, 383, 382, 381, 380, 379, 378, 377, 376, 375, 374, 373, 372, 371, 370, 369, 368, 367, 366, 365, 364, 363, 362, 361, 360, 359, 358, 357, 356, 355, 354, 353, 352, 351, 350, 349, 348, 347, 346, 345, 344, 343, 342, 341, 340, 339, 338, 337, 336, 335, 334, 333, 332, 331, 330, 329, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386);
var y_values = new Array(-51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51, -51);
var array_count = 0;
var linkage_id = "stage_13_platform_2";
var graphic_width = 125;
var graphic_height = 200;
}
Symbol 1063 MovieClip [__Packages.com.nitrome.sandman.RealLevel13Platform2] Frame 0
class com.nitrome.sandman.RealLevel13Platform2 extends MovieClip
{
var interval, _visible, _x, _y;
function RealLevel13Platform2 () {
super();
if (_global.stage_13_platform == true) {
checkMove();
interval = setInterval(this, "checkMove", 20);
} else {
_visible = false;
}
}
function checkMove() {
var _local4 = _root.game_holder.level_13_platform_2.getXpos();
var _local3 = _root.game_holder.level_13_platform_2.getYpos();
_local3 = _local3 + 192;
_x = _local4 * 2;
_y = _local3 * 2;
updateAfterEvent();
}
}
Symbol 1064 MovieClip [__Packages.com.nitrome.sandman.GameHolder] Frame 0
class com.nitrome.sandman.GameHolder extends MovieClip
{
function GameHolder () {
super();
if ((_root.nitrome_lock.getCode() == undefined) || (_root.nitrome_lock.getCode() == null)) {
_root.gotoAndStop("stolen");
}
}
}
Symbol 1065 MovieClip [__Packages.com.nitrome.sandman.GlassHolder] Frame 0
class com.nitrome.sandman.GlassHolder extends MovieClip
{
var attachMovie;
function GlassHolder () {
super();
}
function clearAll() {
var _local2 = 1;
while (_local2 <= panel_count) {
this["glass" + _local2].removeMovieClip();
_local2++;
}
panel_count = 0;
}
function createPanel(x, y, w, h) {
panel_count++;
attachMovie("glass_panel", "glass" + panel_count, panel_count);
this["glass" + panel_count]._x = x;
this["glass" + panel_count]._y = y;
this["glass" + panel_count]._width = w;
this["glass" + panel_count]._height = h;
}
var panel_count = 0;
}
Symbol 1066 MovieClip [__Packages.com.nitrome.sandman.GlassPanel] Frame 0
class com.nitrome.sandman.GlassPanel extends MovieClip
{
var useHandCursor;
function GlassPanel () {
super();
useHandCursor = false;
}
function onPress() {
_root.tap_sound_fx.gotoAndPlay(2);
}
}
Symbol 1067 MovieClip [__Packages.com.nitrome.sandman.NextButton] Frame 0
class com.nitrome.sandman.NextButton extends com.nitrome.sandman.SimpleButton
{
var _name, id, disabled, gotoAndStop;
function NextButton () {
super();
var _local4 = _name.split("_");
id = Number(_local4[2]);
var _local5 = _global.saveFunctions.getLastOpenedStage();
if (id >= _local5) {
disabled = true;
gotoAndStop("_off");
}
}
function onRelease() {
if (disabled == false) {
if (_name == "next_button_1") {
_root.gotoAndStop("level_select_2");
} else if (_name == "next_button_2") {
_root.gotoAndStop("level_select_3");
} else if (_name == "next_button_3") {
_root.gotoAndStop("level_select_4");
} else if (_name == "next_button_4") {
_root.gotoAndStop("level_select_5");
} else if (_name == "next_button_5") {
_root.gotoAndStop("level_select_6");
} else if (_name == "next_button_6") {
_root.gotoAndStop("level_select_7");
} else if (_name == "next_button_7") {
_root.gotoAndStop("level_select_8");
} else if (_name == "next_button_8") {
_root.gotoAndStop("level_select_9");
} else if (_name == "next_button_9") {
_root.gotoAndStop("level_select_10");
} else if (_name == "next_button_10") {
_root.gotoAndStop("level_select_11");
} else if (_name == "next_button_11") {
_root.gotoAndStop("level_select_12");
} else if (_name == "next_button_12") {
_root.gotoAndStop("level_select_13");
} else if (_name == "next_button_13") {
_root.gotoAndStop("level_select_14");
} else if (_name == "next_button_14") {
_root.gotoAndStop("level_select_15");
}
}
}
}
Symbol 1068 MovieClip [__Packages.com.nitrome.sandman.Nightmare] Frame 0
class com.nitrome.sandman.Nightmare extends com.nitrome.sandman.Person
{
function Nightmare () {
super();
}
var max_fall = 500000;
}
Symbol 1069 MovieClip [__Packages.com.nitrome.sandman.NoClicks] Frame 0
class com.nitrome.sandman.NoClicks extends MovieClip
{
var useHandCursor;
function NoClicks () {
super();
useHandCursor = false;
}
function onPress() {
}
}
Symbol 1070 MovieClip [__Packages.com.nitrome.sandman.PlayButton] Frame 0
class com.nitrome.sandman.PlayButton extends MovieClip
{
var _name, id, gotoAndStop;
function PlayButton () {
super();
var _local3 = _name.split("_");
id = Number(_local3[2]);
}
function onRollOver() {
gotoAndStop("_over");
}
function onRollOut() {
gotoAndStop("_up");
}
function onRelease() {
_global.current_level = id;
_root.music_controller.fadeOutMenuMusic();
_root.fade_out_clip.doFade("PLAYGAME");
}
var replay_mode = false;
}
Symbol 1071 MovieClip [__Packages.com.nitrome.sandman.PrevButton] Frame 0
class com.nitrome.sandman.PrevButton extends com.nitrome.sandman.SimpleButton
{
var disabled, _name;
function PrevButton () {
super();
}
function onRelease() {
if (disabled == false) {
if (_name == "prev_button_2") {
_root.gotoAndStop("level_select_1");
} else if (_name == "prev_button_3") {
_root.gotoAndStop("level_select_2");
} else if (_name == "prev_button_4") {
_root.gotoAndStop("level_select_3");
} else if (_name == "prev_button_5") {
_root.gotoAndStop("level_select_4");
} else if (_name == "prev_button_6") {
_root.gotoAndStop("level_select_5");
} else if (_name == "prev_button_7") {
_root.gotoAndStop("level_select_6");
} else if (_name == "prev_button_8") {
_root.gotoAndStop("level_select_7");
} else if (_name == "prev_button_9") {
_root.gotoAndStop("level_select_8");
} else if (_name == "prev_button_10") {
_root.gotoAndStop("level_select_9");
} else if (_name == "prev_button_11") {
_root.gotoAndStop("level_select_10");
} else if (_name == "prev_button_12") {
_root.gotoAndStop("level_select_11");
} else if (_name == "prev_button_13") {
_root.gotoAndStop("level_select_12");
} else if (_name == "prev_button_14") {
_root.gotoAndStop("level_select_13");
} else if (_name == "prev_button_15") {
_root.gotoAndStop("level_select_14");
}
}
}
}
Symbol 1072 MovieClip [__Packages.com.nitrome.sandman.SandPress] Frame 0
class com.nitrome.sandman.SandPress extends MovieClip
{
var onEnterFrame;
function SandPress () {
super();
_global.selected_colour = nextColour();
if (_global.quality_setting == "high") {
onEnterFrame = function () {
this.colour_count++;
if (this.colour_count >= this.max_colour_count) {
_global.selected_colour = this.nextColour();
this.colour_count = 0;
}
};
}
}
function setColour(s) {
current_colour = s;
_global.selected_colour = nextColour();
}
function onPress() {
_global.spilling = true;
}
function onRelease() {
_global.spilling = false;
}
function onDragOut() {
_global.spilling = false;
}
function nextColour() {
colour_id++;
if (current_colour == "colour_red") {
if (colour_id >= red_colour_array.length) {
colour_id = 0;
}
return(red_colour_array[colour_id]);
}
if (current_colour == "colour_orange") {
if (colour_id >= orange_colour_array.length) {
colour_id = 0;
}
return(orange_colour_array[colour_id]);
}
if (current_colour == "colour_yellow") {
if (colour_id >= yellow_colour_array.length) {
colour_id = 0;
}
return(yellow_colour_array[colour_id]);
}
if (current_colour == "colour_green") {
if (colour_id >= green_colour_array.length) {
colour_id = 0;
}
return(green_colour_array[colour_id]);
}
if (current_colour == "colour_lightblue") {
if (colour_id >= lightblue_colour_array.length) {
colour_id = 0;
}
return(lightblue_colour_array[colour_id]);
}
if (current_colour == "colour_darkblue") {
if (colour_id >= darkblue_colour_array.length) {
colour_id = 0;
}
return(darkblue_colour_array[colour_id]);
}
if (current_colour == "colour_purple") {
if (colour_id >= purple_colour_array.length) {
colour_id = 0;
}
return(purple_colour_array[colour_id]);
}
if (current_colour == "colour_pink") {
if (colour_id >= pink_colour_array.length) {
colour_id = 0;
}
return(pink_colour_array[colour_id]);
}
if (current_colour == "colour_original") {
if (colour_id >= original_colour_array.length) {
colour_id = 0;
}
return(original_colour_array[colour_id]);
}
}
var original_colour_array = new Array(13408512, 13342720, 13276928, 13211136, 13145344, 13079552, 13013760, 12947968, 12882176, 12816384, 12750592, 12684800, 12619008, 12553216, 12487424, 12421632, 12355840, 12290048, 12224256, 12158464, 12092672, 12026880, 11961088, 11895296, 11829504, 11763712, 11697920, 11632128, 11566336, 11500544, 11434752, 11368960, 11303168, 11237376, 11171584, 11105792, 11040000, 10974208, 10908416, 10842624, 10776832, 10711040, 10645248, 10579456, 10513664, 10447872, 10382080, 10316288, 10250496, 10184704, 10118912, 10053120, 10118912, 10184704, 10250496, 10316288, 10382080, 10447872, 10513664, 10579456, 10645248, 10711040, 10776832, 10842624, 10908416, 10974208, 11040000, 11105792, 11171584, 11237376, 11303168, 11368960, 11434752, 11500544, 11566336, 11632128, 11697920, 11763712, 11829504, 11895296, 11961088, 12026880, 12092672, 12158464, 12224256, 12290048, 12355840, 12421632, 12487424, 12553216, 12619008, 12684800, 12750592, 12816384, 12882176, 12947968, 13013760, 13079552, 13145344, 13211136, 13276928, 13342720, 13408512);
var red_colour_array = new Array(16735324, 16603738, 16472152, 16340566, 16208980, 16077394, 15946065, 15814479, 15682893, 15551307, 15419721, 15288135, 15156549, 15025220, 14893634, 14762048, 14630462, 14498876, 14433083, 14235961, 14104375, 13972789, 13841203, 13775153, 13643567, 13512238, 13315116, 13249066, 13117480, 12985894, 12854308, 12722722, 12591393, 12459807, 12328221, 12196635, 12065049, 11933463, 11802134, 11670548, 11538962, 11407376, 11275790, 11144204, 11012618, 10881289, 10749703, 10618117, 10486531, 10354945, 10289152, 10354945, 10486531, 10618117, 10749703, 10881289, 11012618, 11144204, 11275790, 11407376, 11538962, 11670548, 11802134, 11933463, 12065049, 12196635, 11802134, 11933463, 12591393, 12722722, 12854308, 12985894, 13117480, 13249066, 13315116, 13512238, 13643567, 13775153, 13841203, 13972789, 14104375, 14235961, 14433083, 14498876, 14630462, 14762048, 14893634, 15025220, 15156549, 15288135, 15419721, 15551307, 15682893, 15814479, 15946065, 16077394, 16208980, 16340566, 16472152, 16603738);
var orange_colour_array = new Array(16754013, 16622427, 16490841, 16425047, 16293461, 16227411, 16096082, 16030032, 15898446, 15832652, 15701066, 15569480, 15503430, 15372100, 15306051, 15174465, 15043135, 14977085, 14845499, 14713913, 14648119, 14516533, 14450484, 14319154, 14253104, 14121518, 13989932, 13924139, 13792552, 13726503, 13595173, 13529123, 13397537, 13266207, 13200157, 13068572, 12936985, 12871192, 12739606, 12673556, 12542226, 12476176, 12344590, 12278797, 12147211, 12147211, 12081161, 11949575, 11818245, 11752195, 11620609, 11554816, 11620609, 11752195, 11818245, 11949575, 12081161, 12147211, 12147211, 12278797, 12344590, 12476176, 12542226, 12673556, 12739606, 12871192, 12936985, 13068572, 13200157, 13266207, 13397537, 13529123, 13595173, 13726503, 13792552, 13924139, 13989932, 14121518, 14253104, 14319154, 14450484, 14516533, 14648119, 14713913, 14845499, 14977085, 15043135, 15174465, 15306051, 15372100, 15503430, 15569480, 15701066, 15832652, 15898446, 16030032, 16096082, 16227411, 16293461, 16425047, 16490841, 16622427);
var yellow_colour_array = new Array(16709469, 16577883, 16446297, 16380503, 16248917, 16183123, 16051538, 15985744, 15854158, 15788364, 15656778, 15590728, 15459398, 15393349, 15262019, 15195969, 15064639, 14998589, 14867260, 14735674, 14669624, 14538294, 14472244, 14340914, 14274864, 14143535, 14011949, 13946155, 13880105, 13748519, 13617189, 13551139, 13419810, 13353760, 13222430, 13156380, 13024794, 12893464, 12827415, 12696085, 12630035, 12498705, 12432655, 12301325, 12235275, 12103690, 12037896, 11906310, 11840516, 11708930, 11643137, 11708930, 11840516, 11906310, 12037896, 12103690, 12235275, 12301325, 12432655, 12498705, 12630035, 12696085, 12827415, 12893464, 13024794, 13156380, 13222430, 13353760, 13419810, 13551139, 13617189, 13748519, 13880105, 13946155, 14011949, 14143535, 14274864, 14340914, 14472244, 14538294, 14669624, 14735674, 14867260, 14998589, 15064639, 15195969, 15262019, 15393349, 15459398, 15590728, 15656778, 15788364, 15854158, 15985744, 16051538, 16183123, 16248917, 16380503, 16446297, 16577883);
var green_colour_array = new Array(8847197, 8715611, 8583769, 8452183, 8320341, 8188755, 8057170, 7925328, 7793742, 7662156, 7530570, 7398728, 7267142, 7135300, 7003715, 6872129, 6740287, 6608701, 6477115, 6345273, 6213687, 6081845, 5950260, 5818674, 5687088, 5555246, 5423660, 5292075, 5156904, 5028647, 4896805, 4765219, 4633633, 4501791, 4370205, 4238620, 4107034, 3975192, 3843350, 3711764, 3580178, 3448592, 3316750, 3185164, 3119115, 2987273, 2790151, 2658309, 2526723, 2395137, 2329088, 2395137, 2526723, 2658309, 2790151, 2987273, 3119115, 3185164, 3316750, 3448592, 3580178, 3711764, 3843350, 3975192, 4107034, 4238620, 4370205, 4501791, 4633633, 4765219, 4896805, 5028647, 5156904, 5292075, 5423660, 5555246, 5687088, 5818674, 5950260, 6081845, 6213687, 6345273, 6477115, 6608701, 6740287, 6872129, 7003715, 7135300, 7267142, 7398728, 7530570, 7662156, 7793742, 7925328, 8057170, 8188755, 8320341, 8452183, 8583769, 8715611);
var lightblue_colour_array = new Array(6160114, 6028528, 5896685, 5765099, 5633256, 5501414, 5435363, 5303777, 5171935, 5040348, 4908506, 4842455, 4645077, 4579026, 4447184, 4315597, 4183755, 4052169, 3986118, 3854276, 3722690, 3590847, 3459004, 3327418, 3195832, 3129525, 2997682, 2866096, 2734510, 2602667, 2471081, 2339239, 2273188, 2141346, 2009759, 1877917, 1746330, 1614488, 1548437, 1416851, 1285009, 1153422, 1021580, 889994, 823687, 692100, 560258, 428672, 296829, 165243, 99193, 165243, 296829, 428672, 560258, 692100, 823687, 889994, 1021580, 1153422, 1285009, 1416851, 1548437, 1614488, 1746330, 1877917, 2009759, 2141346, 2273188, 2339239, 2471081, 2602667, 2734510, 2866096, 2997682, 3129525, 3195832, 3327418, 3459004, 3590847, 3722690, 3854276, 3986118, 4052169, 4183755, 4315597, 4447184, 4579026, 4645077, 4842455, 4908506, 5040348, 5171935, 5303777, 5435363, 5501414, 5633256, 5765099, 5896685, 6028528);
var darkblue_colour_array = new Array(6201343, 6069757, 5938172, 5806586, 5675256, 5543671, 5412085, 5346035, 5214706, 5082864, 4951535, 4819949, 4688363, 4556778, 4425448, 4293862, 4227813, 4096227, 3964641, 3833312, 3701726, 3570141, 3438555, 3307225, 3241176, 3109590, 2978005, 2846675, 2715089, 2583503, 2451918, 2320332, 2189003, 2122953, 1991368, 1859782, 1728196, 1596866, 1465281, 1333695, 1202110, 1070780, 1004731, 873145, 741559, 610230, 478388, 347058, 215473, 83887, 18094, 83887, 215473, 347058, 478388, 610230, 741559, 873145, 1004731, 1070780, 1202110, 1333695, 1465281, 1596866, 1728196, 1859782, 1991368, 2122953, 2189003, 2320332, 2451918, 2583503, 2715089, 2846675, 2978005, 3109590, 3241176, 3307225, 3438555, 3570141, 3701726, 3833312, 3964641, 4096227, 4227813, 4293862, 4425448, 4556778, 4688363, 4819949, 4951535, 5082864, 5214706, 5346035, 5412085, 5543671, 5675256, 5806586, 5938172, 6069757);
var purple_colour_array = new Array(9592575, 9460989, 9329403, 9197817, 9066231, 8934645, 8803059, 8671729, 8540143, 8474093, 8276971, 8145385, 8079335, 7947749, 7816163, 7684577, 7553247, 7421661, 7290075, 7158489, 7026903, 6895317, 6763731, 6632145, 6566351, 6434765, 6303179, 6171593, 6040006, 5908420, 5776835, 5645249, 5513663, 5382333, 5250747, 5119161, 4987574, 4855988, 4724402, 4658352, 4526767, 4395181, 4263851, 4132265, 4000679, 3869093, 3737506, 3605920, 3474334, 3342748, 3276955, 3342748, 3474334, 3605920, 3737506, 3869093, 4000679, 4132265, 4263851, 4395181, 4526767, 4658352, 4724402, 4855988, 4987574, 5119161, 5250747, 5382333, 5513663, 5645249, 5776835, 5908420, 6040006, 6171593, 6303179, 6434765, 6566351, 6632145, 6763731, 6895317, 7026903, 7158489, 7290075, 7421661, 7553247, 7684577, 7816163, 7947749, 8079335, 8145385, 8276971, 8474093, 8540143, 8671729, 8803059, 8934645, 9066231, 9197817, 9329403, 9460989);
var pink_colour_array = new Array(15686911, 15555325, 15423739, 15292153, 15160567, 15028981, 14897651, 14766065, 14634479, 14568430, 14436844, 14305514, 14173674, 14042342, 13910756, 13779170, 13647584, 13515998, 13384668, 13253082, 13121496, 12989910, 12858324, 12726738, 12660689, 12529359, 12397773, 12266187, 12134601, 12003015, 11871429, 11739843, 11608513, 11476927, 11345341, 11213755, 11082169, 10950583, 10819253, 10753204, 10621618, 10490032, 10358446, 10226860, 10095274, 9963944, 9832358, 9700772, 9569186, 9437600, 9371807, 9437600, 9569186, 9700772, 9832358, 9963944, 10095274, 10226860, 10358446, 10490032, 10621618, 10753204, 10819253, 10950583, 11082169, 11213755, 11345341, 11476927, 11608513, 11739843, 11871429, 12003015, 12134601, 12266187, 12397773, 12529359, 12660689, 12726738, 12858324, 12989910, 13121496, 13253082, 13384668, 13515998, 13647584, 13779170, 13910756, 14042342, 14173674, 14305514, 14436844, 14568430, 14634479, 14766065, 14897651, 15028981, 15160567, 15292153, 15423739, 15555325);
var colour_count = 0;
var max_colour_count = 10;
var colour_id = 0;
var current_colour = "colour_original";
}
Symbol 1073 MovieClip [__Packages.com.nitrome.sandman.scrolling.ScrollButton] Frame 0
class com.nitrome.sandman.scrolling.ScrollButton extends MovieClip
{
var interval, useHandCursor, onEnterFrame, gotoAndStop;
function ScrollButton () {
super();
interval = setInterval(this, "checkVisible", 100);
useHandCursor = false;
}
function onRollOver() {
onEnterFrame = doScroll;
gotoAndStop(2);
}
function onDragOver() {
onEnterFrame = doScroll;
gotoAndStop(2);
}
function onRollOut() {
delete onEnterFrame;
gotoAndStop(1);
}
function onDragOut() {
delete onEnterFrame;
gotoAndStop(1);
}
function doScroll() {
}
function checkVisible() {
}
function scrollLayers() {
_root.game_holder._x = _global.x_scroll;
_root.game_holder._y = _global.y_scroll;
_root.sand_button._x = _global.x_scroll;
_root.sand_button._y = _global.y_scroll;
_root.glass_holder._x = _global.x_scroll;
_root.glass_holder._y = _global.y_scroll;
}
var scroll_value = 5;
var sky_scroll_value = 1;
}
Symbol 1074 MovieClip [__Packages.com.nitrome.sandman.scrolling.ScrollButtonDown] Frame 0
class com.nitrome.sandman.scrolling.ScrollButtonDown extends com.nitrome.sandman.scrolling.ScrollButton
{
var scroll_value, sky_scroll_value, scrollLayers, _visible;
function ScrollButtonDown () {
super();
}
function doScroll() {
if (_global.y_scroll > _global.scroll_y_min) {
_global.y_scroll = _global.y_scroll - scroll_value;
_global.sky_y_scroll = _global.sky_y_scroll - sky_scroll_value;
scrollLayers();
}
}
function checkVisible() {
if (_global.y_scroll > _global.scroll_y_min) {
_visible = true;
} else {
_visible = false;
}
}
}
Symbol 1075 MovieClip [__Packages.com.nitrome.sandman.scrolling.ScrollButtonDownLeft] Frame 0
class com.nitrome.sandman.scrolling.ScrollButtonDownLeft extends com.nitrome.sandman.scrolling.ScrollButton
{
var scroll_value, sky_scroll_value, scrollLayers, _visible;
function ScrollButtonDownLeft () {
super();
}
function doScroll() {
if (_global.y_scroll > _global.scroll_y_min) {
_global.y_scroll = _global.y_scroll - scroll_value;
_global.sky_y_scroll = _global.sky_y_scroll - sky_scroll_value;
scrollLayers();
}
if (_global.x_scroll < _global.scroll_x_max) {
_global.x_scroll = _global.x_scroll + scroll_value;
_global.sky_x_scroll = _global.sky_x_scroll + sky_scroll_value;
scrollLayers();
}
}
function checkVisible() {
if ((_global.y_scroll > _global.scroll_y_min) && (_global.x_scroll < _global.scroll_x_max)) {
_visible = true;
} else if (_global.y_scroll > _global.scroll_y_min) {
_visible = true;
} else if (_global.x_scroll < _global.scroll_x_max) {
_visible = true;
} else {
_visible = false;
}
}
}
Symbol 1076 MovieClip [__Packages.com.nitrome.sandman.scrolling.ScrollButtonDownRight] Frame 0
class com.nitrome.sandman.scrolling.ScrollButtonDownRight extends com.nitrome.sandman.scrolling.ScrollButton
{
var scroll_value, sky_scroll_value, scrollLayers, _visible;
function ScrollButtonDownRight () {
super();
}
function doScroll() {
if (_global.y_scroll > _global.scroll_y_min) {
_global.y_scroll = _global.y_scroll - scroll_value;
_global.sky_y_scroll = _global.sky_y_scroll - sky_scroll_value;
scrollLayers();
}
if (_global.x_scroll > _global.scroll_x_min) {
_global.x_scroll = _global.x_scroll - scroll_value;
_global.sky_x_scroll = _global.sky_x_scroll - sky_scroll_value;
scrollLayers();
}
}
function checkVisible() {
if ((_global.y_scroll > _global.scroll_y_min) && (_global.x_scroll > _global.scroll_x_min)) {
_visible = true;
} else if (_global.y_scroll > _global.scroll_y_min) {
_visible = true;
} else if (_global.x_scroll > _global.scroll_x_min) {
_visible = true;
} else {
_visible = false;
}
}
}
Symbol 1077 MovieClip [__Packages.com.nitrome.sandman.scrolling.ScrollButtonLeft] Frame 0
class com.nitrome.sandman.scrolling.ScrollButtonLeft extends com.nitrome.sandman.scrolling.ScrollButton
{
var scroll_value, sky_scroll_value, scrollLayers, _visible;
function ScrollButtonLeft () {
super();
}
function doScroll() {
if (_global.x_scroll < _global.scroll_x_max) {
_global.x_scroll = _global.x_scroll + scroll_value;
_global.sky_x_scroll = _global.sky_x_scroll + sky_scroll_value;
scrollLayers();
}
}
function checkVisible() {
if (_global.x_scroll < _global.scroll_x_max) {
_visible = true;
} else {
_visible = false;
}
}
}
Symbol 1078 MovieClip [__Packages.com.nitrome.sandman.scrolling.ScrollButtonRight] Frame 0
class com.nitrome.sandman.scrolling.ScrollButtonRight extends com.nitrome.sandman.scrolling.ScrollButton
{
var scroll_value, sky_scroll_value, scrollLayers, _visible;
function ScrollButtonRight () {
super();
}
function doScroll() {
if (_global.x_scroll > _global.scroll_x_min) {
_global.x_scroll = _global.x_scroll - scroll_value;
_global.sky_x_scroll = _global.sky_x_scroll - sky_scroll_value;
scrollLayers();
}
}
function checkVisible() {
if (_global.x_scroll > _global.scroll_x_min) {
_visible = true;
} else {
_visible = false;
}
}
}
Symbol 1079 MovieClip [__Packages.com.nitrome.sandman.scrolling.ScrollButtonUp] Frame 0
class com.nitrome.sandman.scrolling.ScrollButtonUp extends com.nitrome.sandman.scrolling.ScrollButton
{
var scroll_value, sky_scroll_value, scrollLayers, _visible;
function ScrollButtonUp () {
super();
}
function doScroll() {
if (_global.y_scroll < _global.scroll_y_max) {
_global.y_scroll = _global.y_scroll + scroll_value;
_global.sky_y_scroll = _global.sky_y_scroll + sky_scroll_value;
scrollLayers();
}
}
function checkVisible() {
if (_global.y_scroll < _global.scroll_y_max) {
_visible = true;
} else {
_visible = false;
}
}
}
Symbol 1080 MovieClip [__Packages.com.nitrome.sandman.scrolling.ScrollButtonUpLeft] Frame 0
class com.nitrome.sandman.scrolling.ScrollButtonUpLeft extends com.nitrome.sandman.scrolling.ScrollButton
{
var scroll_value, sky_scroll_value, scrollLayers, _visible;
function ScrollButtonUpLeft () {
super();
}
function doScroll() {
if (_global.y_scroll < _global.scroll_y_max) {
_global.y_scroll = _global.y_scroll + scroll_value;
_global.sky_y_scroll = _global.sky_y_scroll + sky_scroll_value;
scrollLayers();
}
if (_global.x_scroll < _global.scroll_x_max) {
_global.x_scroll = _global.x_scroll + scroll_value;
_global.sky_x_scroll = _global.sky_x_scroll + sky_scroll_value;
scrollLayers();
}
}
function checkVisible() {
if ((_global.y_scroll < _global.scroll_y_max) && (_global.x_scroll < _global.scroll_x_max)) {
_visible = true;
} else if (_global.y_scroll < _global.scroll_y_max) {
_visible = true;
} else if (_global.x_scroll < _global.scroll_x_max) {
_visible = true;
} else {
_visible = false;
}
}
}
Symbol 1081 MovieClip [__Packages.com.nitrome.sandman.scrolling.ScrollButtonUpRight] Frame 0
class com.nitrome.sandman.scrolling.ScrollButtonUpRight extends com.nitrome.sandman.scrolling.ScrollButton
{
var scroll_value, sky_scroll_value, scrollLayers, _visible;
function ScrollButtonUpRight () {
super();
}
function doScroll() {
if (_global.y_scroll < _global.scroll_y_max) {
_global.y_scroll = _global.y_scroll + scroll_value;
_global.sky_y_scroll = _global.sky_y_scroll + sky_scroll_value;
scrollLayers();
}
if (_global.x_scroll > _global.scroll_x_min) {
_global.x_scroll = _global.x_scroll - scroll_value;
_global.sky_x_scroll = _global.sky_x_scroll - sky_scroll_value;
scrollLayers();
}
}
function checkVisible() {
if ((_global.y_scroll < _global.scroll_y_max) && (_global.x_scroll > _global.scroll_x_min)) {
_visible = true;
} else if (_global.y_scroll < _global.scroll_y_max) {
_visible = true;
} else if (_global.x_scroll > _global.scroll_x_min) {
_visible = true;
} else {
_visible = false;
}
}
}
Symbol 1082 MovieClip [__Packages.com.nitrome.sandman.SoundToggle] Frame 0
class com.nitrome.sandman.SoundToggle extends MovieClip
{
var gotoAndStop, rollover;
function SoundToggle () {
super();
if (_global.saveFunctions.getSound() == "on") {
sound_state = ON;
_global.sound_on = true;
gotoAndStop("sound_on");
_root.music_controller.turnMusicOn();
} else if (_global.saveFunctions.getSound() == "off") {
sound_state = OFF;
_global.sound_on = false;
gotoAndStop("sound_off");
_root.music_controller.turnMusicOff();
}
}
function onRollOver() {
rollover._alpha = 100;
}
function onRollOut() {
rollover._alpha = 0;
}
function onPress() {
if (sound_state == ON) {
gotoAndStop("sound_off");
sound_state = OFF;
_global.sound_on = false;
_global.saveFunctions.saveSound("off");
_root.music_controller.turnMusicOff();
} else if (sound_state == OFF) {
gotoAndStop("sound_on");
sound_state = ON;
_global.sound_on = true;
_global.saveFunctions.saveSound("on");
_root.music_controller.turnMusicOn();
}
}
var sound_state = 1;
var ON = 1;
var OFF = 0;
}
Symbol 1083 MovieClip [__Packages.com.nitrome.sandman.HiscoreDisplay] Frame 0
class com.nitrome.sandman.HiscoreDisplay extends MovieClip
{
var _name, id, score_length, hiscore_text;
function HiscoreDisplay () {
super();
var _local6 = _name.split("_");
id = Number(_local6[1]);
if (id == 100) {
score_length = 5;
var _local4 = String(_global.saveFunctions.getTotalHiscore());
var _local5 = formatString(_local4);
hiscore_text.text = _local5;
} else {
score_length = 4;
var _local4 = String(_global.saveFunctions.getStageHiscore(id));
var _local5 = formatString(_local4);
hiscore_text.text = _local5;
}
}
function formatString(s) {
var _local2 = "";
var _local3 = 0;
while (_local3 < s.length) {
if (s.charAt(_local3) == "0") {
_local2 = _local2 + "O";
} else {
_local2 = _local2 + String(s.charAt(_local3));
}
_local3++;
}
if (_local2.length < score_length) {
var _local5 = score_length - _local2.length;
_local3 = 1;
while (_local3 <= _local5) {
_local2 = "O" + _local2;
_local3++;
}
}
return(_local2);
}
}
Symbol 1084 MovieClip [__Packages.com.nitrome.sandman.TeleporterEnd] Frame 0
class com.nitrome.sandman.TeleporterEnd extends MovieClip
{
var gotoAndStop;
function TeleporterEnd () {
super();
if (_global.quality_setting == "low") {
gotoAndStop(1);
}
}
function doBeamUp() {
_root.gate_sound_fx.gotoAndPlay(2);
beamup_count++;
_global.people_saved++;
_global.total_people_left--;
if (_global.people_saved == 1) {
_root.finish_game_button.enable();
}
if (_global.total_people_left <= 0) {
_root.timer_clip.stopTimer();
if (_global.current_level == 15) {
_root.final_level_complete_popup.gotoAndPlay("open");
} else {
_root.level_complete_popup.gotoAndPlay("open");
}
}
}
var beamup_count = 0;
}
Symbol 1085 MovieClip [__Packages.com.nitrome.sandman.TeleporterMapBackground] Frame 0
class com.nitrome.sandman.TeleporterMapBackground extends MovieClip
{
var _width, _height, _visible;
function TeleporterMapBackground () {
super();
_width = _global._global.level_width;
_height = _global._global.level_height;
_visible = false;
}
}
Symbol 1086 MovieClip [__Packages.com.nitrome.sandman.TeleporterStart] Frame 0
class com.nitrome.sandman.TeleporterStart extends MovieClip
{
var twirl, interval, _x, _y, gotoAndPlay, _parent;
function TeleporterStart () {
super();
if (_global.quality_setting == "low") {
twirl.stop();
}
}
function clearPeople() {
main_teleport_count = 0;
}
function setTotalPeople(n) {
total_people = n;
teleport_count = 0;
interval = setInterval(this, "doTeleport", 997);
}
function doTeleport() {
if (teleport_count < total_people) {
teleport_count++;
main_teleport_count++;
createPerson(_x, _y);
} else {
gotoAndPlay("fadeaway");
clearInterval(interval);
}
}
function createPerson() {
_parent["person" + main_teleport_count].init(_x, _y - 4);
}
function pauseTeleport() {
clearInterval(interval);
}
function restartTeleport() {
if (teleport_count < total_people) {
interval = setInterval(this, "doTeleport", 1000);
}
}
var teleport_count = 0;
static var main_teleport_count = 0;
var total_people = 0;
}
Symbol 1087 MovieClip [__Packages.com.nitrome.sandman.Timer] Frame 0
class com.nitrome.sandman.Timer extends MovieClip
{
var minutes, seconds, milliseconds, interval, clock, minutes_string, seconds_string, ms_string, white_text, black_text;
function Timer () {
super();
}
function startTimer() {
minutes = 0;
seconds = 0;
milliseconds = 0;
interval = setInterval(this, "doTimer", 100);
clock.hand.play();
}
function restartTimer() {
interval = setInterval(this, "doTimer", 100);
clock.hand.play();
}
function doTimer() {
milliseconds = milliseconds + 100;
if (milliseconds == 1000) {
seconds = seconds + 1;
milliseconds = 0;
if (seconds == 60) {
minutes = minutes + 1;
seconds = 0;
}
}
if (minutes <= 9) {
if (minutes == 0) {
minutes_string = "OO";
} else {
minutes_string = String("O" + minutes);
}
} else if ((minutes % 10) == 0) {
minutes_string = String((minutes / 10) + "O");
} else {
minutes_string = String(minutes);
}
if (seconds <= 9) {
if (seconds == 0) {
seconds_string = "OO";
} else {
seconds_string = String("O" + seconds);
}
} else if ((seconds % 10) == 0) {
seconds_string = String((seconds / 10) + "O");
} else {
seconds_string = String(seconds);
}
var _local2 = milliseconds / 100;
if (_local2 <= 9) {
if (_local2 == 0) {
ms_string = "OO";
} else {
ms_string = String("O" + _local2);
}
} else if ((_local2 % 10) == 0) {
ms_string = String((_local2 / 10) + "O");
} else {
ms_string = String(_local2);
}
white_text.text = String((((minutes_string + " ") + seconds_string) + " ") + ms_string);
black_text.text = String((((minutes_string + " ") + seconds_string) + " ") + ms_string);
updateAfterEvent();
}
function getTotalMilliseconds() {
var _local2 = (milliseconds + (seconds * 1000)) + ((minutes * 60) * 1000);
return(_local2);
}
function getCurrentMilliseconds() {
return(milliseconds);
}
function getCurrentSeconds() {
return(seconds);
}
function getCurrentMinutes() {
return(minutes);
}
function stopTimer() {
clearInterval(interval);
clock.hand.stop();
}
}
Symbol 1088 MovieClip [__Packages.com.nitrome.sandman.Water] Frame 0
class com.nitrome.sandman.Water extends MovieClip
{
function Water () {
super();
}
}
Symbol 1089 MovieClip [__Packages.com.nitrome.sandman.Wheel] Frame 0
class com.nitrome.sandman.Wheel extends MovieClip
{
var anim_holder, _x, _y, control_object, interval, _parent;
function Wheel () {
super();
anim_holder.wheel_anim.stop();
}
function getWheelMoving() {
if ((wheel_moving_left == true) || (wheel_moving_right == true)) {
return(true);
}
return(false);
}
function init(xpos, ypos, control) {
_x = xpos;
_y = ypos;
control_object = control;
interval = setInterval(this, "run", 250);
}
function run() {
if (left_count > right_count) {
if (dir != DIR_LEFT) {
wheel_moving_left = true;
wheel_moving_right = false;
anim_holder.gotoAndStop("turn_left");
anim_holder.wheel_anim.gotoAndPlay(cor_wheel_frame);
} else if ((dir == DIR_LEFT) && (wheel_moving_left == false)) {
wheel_moving_left = true;
wheel_moving_right = false;
}
move_count = 0;
dir = DIR_LEFT;
} else if (right_count > left_count) {
if (dir != DIR_RIGHT) {
wheel_moving_right = true;
wheel_moving_left = false;
anim_holder.gotoAndStop("turn_right");
anim_holder.wheel_anim.gotoAndPlay(cor_wheel_frame);
} else if ((dir == DIR_RIGHT) && (wheel_moving_right == false)) {
wheel_moving_right = true;
wheel_moving_left = false;
}
move_count = 0;
dir = DIR_RIGHT;
} else if (left_count == right_count) {
wheel_moving_right = false;
wheel_moving_left = false;
}
if (wheel_moving_left == true) {
move_count++;
if (move_count < max_move) {
anim_holder.wheel_anim.play();
moveControlLeft();
} else {
anim_holder.wheel_anim.stop();
wheel_moving_left = false;
}
} else if (wheel_moving_right == true) {
move_count++;
if (move_count < max_move) {
anim_holder.wheel_anim.play();
moveControlRight();
} else {
anim_holder.wheel_anim.stop();
wheel_moving_right = false;
}
} else {
anim_holder.wheel_anim.stop();
}
left_count = 0;
right_count = 0;
updateAfterEvent();
}
function setWheelPosition(n) {
cor_wheel_frame = n;
}
function incrementWheelMovingLeft() {
left_count++;
}
function incrementWheelMovingRight() {
right_count++;
}
function setWheelMovingLeft() {
if (dir != DIR_LEFT) {
wheel_moving_left = true;
wheel_moving_right = false;
anim_holder.gotoAndStop("turn_left");
anim_holder.wheel_anim.gotoAndPlay(cor_wheel_frame);
} else if ((dir == DIR_LEFT) && (wheel_moving_left == false)) {
wheel_moving_left = true;
wheel_moving_right = false;
}
move_count = 0;
dir = DIR_LEFT;
}
function setWheelMovingRight() {
if (dir != DIR_RIGHT) {
wheel_moving_right = true;
wheel_moving_left = false;
anim_holder.gotoAndStop("turn_right");
anim_holder.wheel_anim.gotoAndPlay(cor_wheel_frame);
} else if ((dir == DIR_RIGHT) && (wheel_moving_right == false)) {
wheel_moving_right = true;
wheel_moving_left = false;
}
move_count = 0;
dir = DIR_RIGHT;
}
function moveControlLeft() {
if (_global.stage_11_door == true) {
_parent._parent[control_object].moveUp();
} else {
_parent._parent[control_object].moveLeft();
}
}
function moveControlRight() {
if (_global.stage_11_door == true) {
} else {
_parent._parent[control_object].moveRight();
}
}
var wheel_moving_left = false;
var wheel_moving_right = false;
var max_move = 10;
var move_count = 0;
var cor_wheel_frame = 0;
var dir = 0;
var DIR_LEFT = 1;
var DIR_RIGHT = 2;
var left_count = 0;
var right_count = 0;
}
Symbol 1090 MovieClip [__Packages.com.nitrome.sandman.InvisibleBlock] Frame 0
class com.nitrome.sandman.InvisibleBlock extends MovieClip
{
var gotoAndStop;
function InvisibleBlock () {
super();
if (_global.quality_setting == "low") {
gotoAndStop(7);
}
}
}
Symbol 1091 MovieClip [__Packages.com.nitrome.sandman.WaterAnim] Frame 0
class com.nitrome.sandman.WaterAnim extends MovieClip
{
var gotoAndStop;
function WaterAnim () {
super();
if (_global.quality_setting == "low") {
gotoAndStop(1);
}
}
}
Symbol 1092 MovieClip [__Packages.com.nitrome.sandman.QualityToggle] Frame 0
class com.nitrome.sandman.QualityToggle extends MovieClip
{
var gotoAndStop, _quality;
function QualityToggle () {
super();
_global.quality_setting = _global.saveFunctions.getQuality();
if (_global.quality_setting == "high") {
gotoAndStop("high_up");
} else if (_global.quality_setting == "low") {
gotoAndStop("low_up");
}
}
function onRollOver() {
if (_global.quality_setting == "high") {
gotoAndStop("high_over");
} else if (_global.quality_setting == "low") {
gotoAndStop("low_over");
}
}
function onRollOut() {
if (_global.quality_setting == "high") {
gotoAndStop("high_up");
} else if (_global.quality_setting == "low") {
gotoAndStop("low_up");
}
}
function onDragOut() {
if (_global.quality_setting == "high") {
gotoAndStop("high_up");
} else if (_global.quality_setting == "low") {
gotoAndStop("low_up");
}
}
function onPress() {
if (_global.quality_setting == "high") {
_global.quality_setting = "low";
gotoAndStop("low_over");
_global.saveFunctions.saveQuality("low");
_quality = "MEDIUM";
} else if (_global.quality_setting == "low") {
_global.quality_setting = "high";
gotoAndStop("high_over");
_global.saveFunctions.saveQuality("high");
_quality = "HIGH";
}
}
}
Symbol 1093 MovieClip [__Packages.com.nitrome.sandman.MusicController] Frame 0
class com.nitrome.sandman.MusicController extends MovieClip
{
var menu_sound, game_sound;
function MusicController () {
super();
menu_sound = new Sound();
game_sound = new Sound();
}
function turnMusicOn() {
volume_level = 100;
menu_sound.setVolume(100);
game_sound.setVolume(100);
}
function turnMusicOff() {
volume_level = 0;
menu_sound.setVolume(0);
game_sound.setVolume(0);
}
function startMenuMusic() {
game_sound.stop();
menu_sound = new Sound();
if (_global.sound_on == false) {
menu_sound.setVolume(0);
volume_level = 0;
} else {
menu_sound.setVolume(100);
volume_level = 100;
}
fading_out_game = false;
fading_out_menu = false;
menu_sound.attachSound("menu_music");
menu_sound.start();
menu_sound.onSoundComplete = function () {
this.start();
};
}
function startGameMusic() {
menu_sound.stop();
game_sound = new Sound();
if (_global.sound_on == false) {
game_sound.setVolume(0);
volume_level = 0;
} else {
game_sound.setVolume(100);
volume_level = 100;
}
fading_out_game = false;
fading_out_menu = false;
game_sound.attachSound("game_music");
game_sound.start();
game_sound.onSoundComplete = function () {
this.start();
};
}
function fadeOutMenuMusic() {
volume_level = 100;
fading_out_menu = true;
fading_out_game = false;
}
function fadeOutGameMusic() {
volume_level = 100;
fading_out_game = true;
fading_out_menu = false;
}
function onEnterFrame() {
if (fading_out_menu == true) {
volume_level = volume_level - 10;
if (_global.sound_on == true) {
menu_sound.setVolume(volume_level);
}
if (volume_level == 0) {
startGameMusic();
fading_out_menu = false;
}
} else if (fading_out_game == true) {
volume_level = volume_level - 10;
if (_global.sound_on == true) {
game_sound.setVolume(volume_level);
}
if (volume_level == 0) {
startMenuMusic();
fading_out_game = false;
}
}
}
var fading_out_menu = false;
var fading_out_game = false;
var volume_level = 100;
}
Symbol 1094 MovieClip [__Packages.com.nitrome.sandman.SubmitScoreFeedback] Frame 0
class com.nitrome.sandman.SubmitScoreFeedback extends MovieClip
{
var gotoAndStop;
function SubmitScoreFeedback () {
super();
}
function displaySubmit() {
if (_global.saveFunctions.getTotalHiscoreHigher() == true) {
gotoAndStop(2);
}
}
function displaySubmitWithNumber(n) {
var _local3 = _global.saveFunctions.getTotalHiscore() + n;
if (_global.saveFunctions.getNumberHigherThan(_local3) == true) {
gotoAndStop(2);
}
}
}
Symbol 5 MovieClip Frame 1
this._visible = false;
Symbol 11 Button
on (release) {
getURL ("http://www.miniclip.com", "_blank");
}
Symbol 16 MovieClip Frame 2
if (_url.indexOf("http") > -1) {
if (_parent._parent._parent.loadAdNow) {
cacheBuster = getTimer() + random(999999);
showAd = "http://www.miniclip.com/swfcontent/push/didyouknow.swf?cacheBuster" + cacheBuster;
trace("Loading ad: " + showAd);
mcAd.loadMovie(showAd);
} else {
gotoAndPlay(_currentframe - 1);
}
}
Symbol 16 MovieClip Frame 4
if ((mcAd.getBytesTotal() != 0) && (mcAd.getBytesLoaded() == mcAd.getBytesTotal())) {
gotoAndStop ("showAd");
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 16 MovieClip Frame 12
stop();
Symbol 26 MovieClip Frame 1
stop();
Symbol 26 MovieClip Frame 100
stop();
Symbol 28 MovieClip Frame 1
stop();
Symbol 28 MovieClip Frame 12
_root.play();
_root.isFinished = true;
_parent.stop();
stop();
Symbol 32 Button
on (release) {
getURL ("http://www.miniclip.com/", "_blank");
}
Symbol 33 MovieClip Frame 2
_parent.mcAnimation.play();
stop();
Symbol 33 MovieClip Frame 13
_parent.gotoAndPlay("preload");
stop();
Symbol 49 MovieClip Frame 1
stop();
Symbol 49 MovieClip Frame 60
Symbol 49 MovieClip Frame 121
_parent.mcBackground.play();
stop();
Symbol 50 MovieClip Frame 1
loadAdNow = false;
_root.stop();
play();
Instance of Symbol 5 MovieClip "mcIntro" in Symbol 50 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 50 MovieClip Frame 2
xPos = _x;
yPos = _y;
mcBackground._x = mcBackground._x - xPos;
mcBackground._y = mcBackground._y - yPos;
mcAnimation._x = mcAnimation._x - xPos;
mcAnimation._y = mcAnimation._y - yPos;
var stageWidth = Stage.width;
var stageHeight = Stage.height;
var centerStageX = (stageWidth / 2);
var centerStageY = (stageHeight / 2);
mcBackground._width = stageWidth;
mcBackground._height = stageHeight;
mcAnimation._x = mcAnimation._x + centerStageX;
mcAnimation._y = mcAnimation._y + (centerStageY - (stageHeight / 10));
stop();
Instance of Symbol 28 MovieClip "mcLoadingAnimated" in Symbol 50 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Symbol 50 MovieClip Frame 3
var loadedPercent = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (loadedPercent == 100) {
_root.play();
stop();
} else {
loadAdNow = true;
mcLoadingAnimated._visible = true;
}
Symbol 50 MovieClip Frame 5
var loadedPercent = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (loadedPercent < 100) {
mcLoadingAnimated.mcLoading.gotoAndStop(loadedPercent);
mcLoadingAnimated.mcLoading.txtPercentLoaded1 = ("The game is loading (" + loadedPercent) + "%)";
mcLoadingAnimated.mcLoading.txtPercentLoaded2 = ("The game is loading (" + loadedPercent) + "%)";
gotoAndPlay(_currentframe - 1);
} else {
mcLoadingAnimated.play();
stop();
}
Symbol 55 Button
on (release) {
getURL ("http://www.miniclip.com", "_blank");
}
Symbol 73 MovieClip [NitromeLock] Frame 1
#initclip 60
Object.registerClass("NitromeLock", com.nitrome.security.NitromeLock);
#endinitclip
_parent._lockroot = false;
Symbol 76 MovieClip [back_button] Frame 1
#initclip 137
Object.registerClass("back_button", com.nitrome.sandman.SimpleButton);
#endinitclip
stop();
Symbol 76 MovieClip [back_button] Frame 5
stop();
Symbol 77 MovieClip [back_graphics_layer] Frame 1
#initclip 61
Object.registerClass("back_graphics_layer", com.nitrome.sandman.BackGraphicsLayer);
#endinitclip
Symbol 82 MovieClip [back_to_menu_button] Frame 1
#initclip 62
Object.registerClass("back_to_menu_button", com.nitrome.sandman.SimpleButton);
#endinitclip
stop();
Symbol 82 MovieClip [back_to_menu_button] Frame 5
stop();
Symbol 86 MovieClip [background] Frame 1
#initclip 63
Object.registerClass("background", com.nitrome.sandman.SkyBackground);
#endinitclip
Symbol 90 MovieClip [colour_button_darkblue] Frame 1
#initclip 64
Object.registerClass("colour_button_darkblue", com.nitrome.sandman.ColourButton);
#endinitclip
stop();
Symbol 90 MovieClip [colour_button_darkblue] Frame 5
stop();
Symbol 91 MovieClip [colour_button_green] Frame 1
#initclip 65
Object.registerClass("colour_button_green", com.nitrome.sandman.ColourButton);
#endinitclip
stop();
Symbol 91 MovieClip [colour_button_green] Frame 5
stop();
Symbol 92 MovieClip [colour_button_lightblue] Frame 1
#initclip 66
Object.registerClass("colour_button_lightblue", com.nitrome.sandman.ColourButton);
#endinitclip
stop();
Symbol 92 MovieClip [colour_button_lightblue] Frame 5
stop();
Symbol 93 MovieClip [colour_button_orange] Frame 1
#initclip 67
Object.registerClass("colour_button_orange", com.nitrome.sandman.ColourButton);
#endinitclip
stop();
Symbol 93 MovieClip [colour_button_orange] Frame 5
stop();
Symbol 94 MovieClip [colour_button_original] Frame 1
#initclip 68
Object.registerClass("colour_button_original", com.nitrome.sandman.ColourButton);
#endinitclip
stop();
Symbol 94 MovieClip [colour_button_original] Frame 5
stop();
Symbol 95 MovieClip [colour_button_pink] Frame 1
#initclip 69
Object.registerClass("colour_button_pink", com.nitrome.sandman.ColourButton);
#endinitclip
stop();
Symbol 95 MovieClip [colour_button_pink] Frame 5
stop();
Symbol 96 MovieClip [colour_button_purple] Frame 1
#initclip 70
Object.registerClass("colour_button_purple", com.nitrome.sandman.ColourButton);
#endinitclip
stop();
Symbol 96 MovieClip [colour_button_purple] Frame 5
stop();
Symbol 97 MovieClip [colour_button] Frame 1
#initclip 71
Object.registerClass("colour_button", com.nitrome.sandman.ColourButton);
#endinitclip
stop();
Symbol 97 MovieClip [colour_button] Frame 5
stop();
Symbol 98 MovieClip [colour_button_yellow] Frame 1
#initclip 72
Object.registerClass("colour_button_yellow", com.nitrome.sandman.ColourButton);
#endinitclip
stop();
Symbol 98 MovieClip [colour_button_yellow] Frame 5
stop();
Symbol 100 Button
on (release) {
getURL ("http://www.miniclip.com", "_blank");
}
Symbol 103 MovieClip [colour_picker] Frame 1
#initclip 73
Object.registerClass("colour_picker", com.nitrome.sandman.ColourPanel);
#endinitclip
stop();
Symbol 103 MovieClip [colour_picker] Frame 2
stop();
Symbol 109 MovieClip [credits_button] Frame 1
#initclip 74
Object.registerClass("credits_button", com.nitrome.sandman.SimpleButton);
#endinitclip
stop();
Symbol 109 MovieClip [credits_button] Frame 5
stop();
Symbol 153 MovieClip [dark_teleporter_start] Frame 1
#initclip 75
Object.registerClass("dark_teleporter_start", com.nitrome.sandman.DarkTeleporterStart);
#endinitclip
Symbol 154 MovieClip [fade_out_clip] Frame 1
#initclip 76
Object.registerClass("fade_out_clip", com.nitrome.sandman.FadeOutClip);
#endinitclip
stop();
Symbol 154 MovieClip [fade_out_clip] Frame 12
this.performTask();
Symbol 162 MovieClip [finish_game_button] Frame 1
#initclip 77
Object.registerClass("finish_game_button", com.nitrome.sandman.SimpleButton);
#endinitclip
stop();
Symbol 162 MovieClip [finish_game_button] Frame 5
stop();
Symbol 162 MovieClip [finish_game_button] Frame 10
stop();
Symbol 163 MovieClip [teleporter_map_holder] Frame 1
#initclip 78
Object.registerClass("teleporter_map_holder", com.nitrome.sandman.TeleporterMapHolder);
#endinitclip
Symbol 164 MovieClip [sand_box_finished] Frame 1
#initclip 79
Object.registerClass("sand_box_finished", com.nitrome.sandman.FinishedSandBox);
#endinitclip
Symbol 165 MovieClip [wheel_holder] Frame 1
#initclip 80
Object.registerClass("wheel_holder", com.nitrome.sandman.WheelHolder);
#endinitclip
Symbol 166 MovieClip [sand_box] Frame 1
#initclip 81
Object.registerClass("sand_box", com.nitrome.sandman.SandBox);
#endinitclip
Symbol 167 MovieClip [water_layer] Frame 1
#initclip 82
Object.registerClass("water_layer", com.nitrome.sandman.WaterLayer);
#endinitclip
Symbol 168 MovieClip [graphics_layer] Frame 1
#initclip 83
Object.registerClass("graphics_layer", com.nitrome.sandman.GraphicsLayer);
#endinitclip
Symbol 169 MovieClip [level_10_platform] Frame 1
#initclip 84
Object.registerClass("level_10_platform", com.nitrome.sandman.Level10Platform);
#endinitclip
Symbol 172 MovieClip [real_level_10_platform] Frame 1
#initclip 85
Object.registerClass("real_level_10_platform", com.nitrome.sandman.RealLevel10Platform);
#endinitclip
Symbol 174 MovieClip [level_11_door] Frame 1
#initclip 86
Object.registerClass("level_11_door", com.nitrome.sandman.Level11Door);
#endinitclip
Symbol 175 MovieClip [level_12_platform] Frame 1
#initclip 87
Object.registerClass("level_12_platform", com.nitrome.sandman.Level12Platform);
#endinitclip
Symbol 176 MovieClip [real_level_12_platform] Frame 1
#initclip 88
Object.registerClass("real_level_12_platform", com.nitrome.sandman.RealLevel12Platform);
#endinitclip
Symbol 178 MovieClip [level_13_platform_1] Frame 1
#initclip 89
Object.registerClass("level_13_platform_1", com.nitrome.sandman.Level13Platform1);
#endinitclip
Symbol 179 MovieClip [real_level_13_platform_1] Frame 1
#initclip 90
Object.registerClass("real_level_13_platform_1", com.nitrome.sandman.RealLevel13Platform1);
#endinitclip
Symbol 181 MovieClip [level_13_platform_2] Frame 1
#initclip 91
Object.registerClass("level_13_platform_2", com.nitrome.sandman.Level13Platform2);
#endinitclip
Symbol 184 MovieClip [real_level_13_platform_2] Frame 1
#initclip 92
Object.registerClass("real_level_13_platform_2", com.nitrome.sandman.RealLevel13Platform2);
#endinitclip
Symbol 186 MovieClip [game_holder] Frame 1
#initclip 93
Object.registerClass("game_holder", com.nitrome.sandman.GameHolder);
#endinitclip
Symbol 187 MovieClip [glass_holder] Frame 1
#initclip 94
Object.registerClass("glass_holder", com.nitrome.sandman.GlassHolder);
#endinitclip
Symbol 189 MovieClip [glass_panel] Frame 1
#initclip 95
Object.registerClass("glass_panel", com.nitrome.sandman.GlassPanel);
#endinitclip
Symbol 192 MovieClip [instructions_button] Frame 1
#initclip 96
Object.registerClass("instructions_button", com.nitrome.sandman.SimpleButton);
#endinitclip
stop();
Symbol 192 MovieClip [instructions_button] Frame 5
stop();
Symbol 196 MovieClip [instructions_next_button] Frame 1
#initclip 97
Object.registerClass("instructions_next_button", com.nitrome.sandman.SimpleButton);
#endinitclip
stop();
Symbol 196 MovieClip [instructions_next_button] Frame 5
stop();
Symbol 196 MovieClip [instructions_next_button] Frame 10
stop();
Symbol 199 MovieClip [instructions_previous_button] Frame 1
#initclip 98
Object.registerClass("instructions_previous_button", com.nitrome.sandman.SimpleButton);
#endinitclip
stop();
Symbol 199 MovieClip [instructions_previous_button] Frame 5
stop();
Symbol 202 MovieClip [load_game_button] Frame 1
#initclip 99
Object.registerClass("load_game_button", com.nitrome.sandman.SimpleButton);
#endinitclip
stop();
Symbol 202 MovieClip [load_game_button] Frame 6
stop();
Symbol 202 MovieClip [load_game_button] Frame 12
stop();
Symbol 207 MovieClip [menu_button] Frame 1
#initclip 100
Object.registerClass("menu_button", com.nitrome.sandman.SimpleButton);
#endinitclip
stop();
Symbol 207 MovieClip [menu_button] Frame 5
stop();
Symbol 210 MovieClip [new_game_button] Frame 1
#initclip 101
Object.registerClass("new_game_button", com.nitrome.sandman.SimpleButton);
#endinitclip
stop();
Symbol 210 MovieClip [new_game_button] Frame 6
stop();
Symbol 211 MovieClip [next_button] Frame 1
#initclip 102
Object.registerClass("next_button", com.nitrome.sandman.NextButton);
#endinitclip
stop();
Symbol 211 MovieClip [next_button] Frame 5
stop();
Symbol 211 MovieClip [next_button] Frame 10
stop();
Symbol 252 MovieClip [nightmare] Frame 1
#initclip 103
Object.registerClass("nightmare", com.nitrome.sandman.Nightmare);
#endinitclip
stop();
Symbol 252 MovieClip [nightmare] Frame 7
stop();
Symbol 252 MovieClip [nightmare] Frame 13
stop();
Symbol 252 MovieClip [nightmare] Frame 42
this.die();
stop();
Symbol 252 MovieClip [nightmare] Frame 43
stop();
Symbol 252 MovieClip [nightmare] Frame 52
stop();
Symbol 252 MovieClip [nightmare] Frame 61
play();
Symbol 252 MovieClip [nightmare] Frame 76
this.die();
stop();
Symbol 252 MovieClip [nightmare] Frame 92
this.die();
stop();
Symbol 252 MovieClip [nightmare] Frame 93
play();
Symbol 252 MovieClip [nightmare] Frame 100
this.finishStunned();
Symbol 256 MovieClip [no_quit_button] Frame 1
#initclip 104
Object.registerClass("no_quit_button", com.nitrome.sandman.SimpleButton);
#endinitclip
stop();
Symbol 256 MovieClip [no_quit_button] Frame 5
stop();
Symbol 258 MovieClip [noclicks_clip] Frame 1
#initclip 105
Object.registerClass("noclicks_clip", com.nitrome.sandman.NoClicks);
#endinitclip
Symbol 263 MovieClip [play_button] Frame 1
#initclip 106
Object.registerClass("play_button", com.nitrome.sandman.PlayButton);
#endinitclip
stop();
Symbol 263 MovieClip [play_button] Frame 5
stop();
Symbol 263 MovieClip [play_button] Frame 10
stop();
Symbol 263 MovieClip [play_button] Frame 18
stop();
Symbol 268 MovieClip [play_next_level_button] Frame 1
#initclip 107
Object.registerClass("play_next_level_button", com.nitrome.sandman.SimpleButton);
#endinitclip
stop();
Symbol 268 MovieClip [play_next_level_button] Frame 5
stop();
Symbol 269 MovieClip [previous_button] Frame 1
#initclip 108
Object.registerClass("previous_button", com.nitrome.sandman.PrevButton);
#endinitclip
stop();
Symbol 269 MovieClip [previous_button] Frame 5
stop();
Symbol 273 MovieClip [quit_game_button] Frame 1
#initclip 109
Object.registerClass("quit_game_button", com.nitrome.sandman.SimpleButton);
#endinitclip
stop();
Symbol 273 MovieClip [quit_game_button] Frame 5
stop();
Symbol 275 MovieClip [sand_button] Frame 1
#initclip 110
Object.registerClass("sand_button", com.nitrome.sandman.SandPress);
#endinitclip
Symbol 280 MovieClip [save_and_quit_button] Frame 1
#initclip 111
Object.registerClass("save_and_quit_button", com.nitrome.sandman.SimpleButton);
#endinitclip
stop();
Symbol 280 MovieClip [save_and_quit_button] Frame 5
stop();
Symbol 283 MovieClip [scroll_down] Frame 1
#initclip 112
Object.registerClass("scroll_down", com.nitrome.sandman.scrolling.ScrollButtonDown);
#endinitclip
stop();
Symbol 283 MovieClip [scroll_down] Frame 2
stop();
Symbol 286 MovieClip [scroll_down_left] Frame 1
#initclip 113
Object.registerClass("scroll_down_left", com.nitrome.sandman.scrolling.ScrollButtonDownLeft);
#endinitclip
stop();
Symbol 286 MovieClip [scroll_down_left] Frame 2
stop();
Symbol 289 MovieClip [scroll_down_right] Frame 1
#initclip 114
Object.registerClass("scroll_down_right", com.nitrome.sandman.scrolling.ScrollButtonDownRight);
#endinitclip
stop();
Symbol 289 MovieClip [scroll_down_right] Frame 2
stop();
Symbol 292 MovieClip [scroll_left] Frame 1
#initclip 115
Object.registerClass("scroll_left", com.nitrome.sandman.scrolling.ScrollButtonLeft);
#endinitclip
stop();
Symbol 292 MovieClip [scroll_left] Frame 2
stop();
Symbol 295 MovieClip [scroll_right] Frame 1
#initclip 116
Object.registerClass("scroll_right", com.nitrome.sandman.scrolling.ScrollButtonRight);
#endinitclip
stop();
Symbol 295 MovieClip [scroll_right] Frame 2
stop();
Symbol 298 MovieClip [scroll_up] Frame 1
#initclip 117
Object.registerClass("scroll_up", com.nitrome.sandman.scrolling.ScrollButtonUp);
#endinitclip
stop();
Symbol 298 MovieClip [scroll_up] Frame 2
stop();
Symbol 301 MovieClip [scroll_up_left] Frame 1
#initclip 118
Object.registerClass("scroll_up_left", com.nitrome.sandman.scrolling.ScrollButtonUpLeft);
#endinitclip
stop();
Symbol 301 MovieClip [scroll_up_left] Frame 2
stop();
Symbol 304 MovieClip [scroll_up_right] Frame 1
#initclip 119
Object.registerClass("scroll_up_right", com.nitrome.sandman.scrolling.ScrollButtonUpRight);
#endinitclip
stop();
Symbol 304 MovieClip [scroll_up_right] Frame 2
stop();
Symbol 367 MovieClip [sleeper] Frame 1
#initclip 120
Object.registerClass("sleeper", com.nitrome.sandman.Sleeper);
#endinitclip
stop();
Symbol 367 MovieClip [sleeper] Frame 7
stop();
Symbol 367 MovieClip [sleeper] Frame 13
stop();
Symbol 367 MovieClip [sleeper] Frame 19
this.playDieSound();
Symbol 367 MovieClip [sleeper] Frame 42
this.die();
stop();
Symbol 367 MovieClip [sleeper] Frame 43
stop();
Symbol 367 MovieClip [sleeper] Frame 52
stop();
Symbol 367 MovieClip [sleeper] Frame 61
this.playDieSound();
play();
Symbol 367 MovieClip [sleeper] Frame 76
this.die();
stop();
Symbol 367 MovieClip [sleeper] Frame 77
this.playDieSound();
play();
Symbol 367 MovieClip [sleeper] Frame 92
this.die();
stop();
Symbol 367 MovieClip [sleeper] Frame 93
play();
Symbol 367 MovieClip [sleeper] Frame 99
this.finishStunned();
Symbol 367 MovieClip [sleeper] Frame 100
play();
Symbol 367 MovieClip [sleeper] Frame 115
stop();
Symbol 367 MovieClip [sleeper] Frame 131
stop();
Symbol 373 MovieClip [sound_toggle_clip] Frame 1
#initclip 121
Object.registerClass("sound_toggle_clip", com.nitrome.sandman.SoundToggle);
#endinitclip
stop();
Symbol 373 MovieClip [sound_toggle_clip] Frame 10
stop();
Symbol 378 MovieClip [stage_hiscore_display] Frame 1
#initclip 122
Object.registerClass("stage_hiscore_display", com.nitrome.sandman.HiscoreDisplay);
#endinitclip
Symbol 383 MovieClip [submit_button] Frame 1
#initclip 123
Object.registerClass("submit_button", com.nitrome.sandman.SimpleButton);
#endinitclip
stop();
Symbol 383 MovieClip [submit_button] Frame 5
stop();
Symbol 426 MovieClip [teleporter_end] Frame 1
#initclip 124
Object.registerClass("teleporter_end", com.nitrome.sandman.TeleporterEnd);
#endinitclip
Symbol 427 MovieClip [people_holder_background] Frame 1
#initclip 125
Object.registerClass("people_holder_background", com.nitrome.sandman.TeleporterMapBackground);
#endinitclip
Symbol 434 MovieClip [teleporter_start] Frame 1
#initclip 126
Object.registerClass("teleporter_start", com.nitrome.sandman.TeleporterStart);
#endinitclip
stop();
Symbol 434 MovieClip [teleporter_start] Frame 53
stop();
Symbol 444 MovieClip [timer_clip] Frame 1
#initclip 127
Object.registerClass("timer_clip", com.nitrome.sandman.Timer);
#endinitclip
Symbol 446 MovieClip [total_hiscore_display] Frame 1
#initclip 128
Object.registerClass("total_hiscore_display", com.nitrome.sandman.HiscoreDisplay);
#endinitclip
Symbol 451 MovieClip [try_again_button] Frame 1
#initclip 129
Object.registerClass("try_again_button", com.nitrome.sandman.SimpleButton);
#endinitclip
stop();
Symbol 451 MovieClip [try_again_button] Frame 5
stop();
Symbol 454 MovieClip [wateranim] Frame 1
#initclip 130
Object.registerClass("wateranim", com.nitrome.sandman.Water);
#endinitclip
Symbol 458 MovieClip Frame 1
_parent._parent.setWheelPosition(1);
Symbol 458 MovieClip Frame 2
_parent._parent.setWheelPosition(160);
Symbol 458 MovieClip Frame 3
_parent._parent.setWheelPosition(159);
Symbol 458 MovieClip Frame 4
_parent._parent.setWheelPosition(158);
Symbol 458 MovieClip Frame 5
_parent._parent.setWheelPosition(157);
Symbol 458 MovieClip Frame 6
_parent._parent.setWheelPosition(156);
Symbol 458 MovieClip Frame 7
_parent._parent.setWheelPosition(155);
Symbol 458 MovieClip Frame 8
_parent._parent.setWheelPosition(154);
Symbol 458 MovieClip Frame 9
_parent._parent.setWheelPosition(153);
Symbol 458 MovieClip Frame 10
_parent._parent.setWheelPosition(152);
Symbol 458 MovieClip Frame 11
_parent._parent.setWheelPosition(151);
Symbol 458 MovieClip Frame 12
_parent._parent.setWheelPosition(150);
Symbol 458 MovieClip Frame 13
_parent._parent.setWheelPosition(149);
Symbol 458 MovieClip Frame 14
_parent._parent.setWheelPosition(148);
Symbol 458 MovieClip Frame 15
_parent._parent.setWheelPosition(147);
Symbol 458 MovieClip Frame 16
_parent._parent.setWheelPosition(146);
Symbol 458 MovieClip Frame 17
_parent._parent.setWheelPosition(145);
Symbol 458 MovieClip Frame 18
_parent._parent.setWheelPosition(144);
Symbol 458 MovieClip Frame 19
_parent._parent.setWheelPosition(143);
Symbol 458 MovieClip Frame 20
_parent._parent.setWheelPosition(142);
Symbol 458 MovieClip Frame 21
_parent._parent.setWheelPosition(141);
Symbol 458 MovieClip Frame 22
_parent._parent.setWheelPosition(140);
Symbol 458 MovieClip Frame 23
_parent._parent.setWheelPosition(139);
Symbol 458 MovieClip Frame 24
_parent._parent.setWheelPosition(138);
Symbol 458 MovieClip Frame 25
_parent._parent.setWheelPosition(137);
Symbol 458 MovieClip Frame 26
_parent._parent.setWheelPosition(136);
Symbol 458 MovieClip Frame 27
_parent._parent.setWheelPosition(135);
Symbol 458 MovieClip Frame 28
_parent._parent.setWheelPosition(134);
Symbol 458 MovieClip Frame 29
_parent._parent.setWheelPosition(133);
Symbol 458 MovieClip Frame 30
_parent._parent.setWheelPosition(132);
Symbol 458 MovieClip Frame 31
_parent._parent.setWheelPosition(131);
Symbol 458 MovieClip Frame 32
_parent._parent.setWheelPosition(130);
Symbol 458 MovieClip Frame 33
_parent._parent.setWheelPosition(129);
Symbol 458 MovieClip Frame 34
_parent._parent.setWheelPosition(128);
Symbol 458 MovieClip Frame 35
_parent._parent.setWheelPosition(127);
Symbol 458 MovieClip Frame 36
_parent._parent.setWheelPosition(126);
Symbol 458 MovieClip Frame 37
_parent._parent.setWheelPosition(125);
Symbol 458 MovieClip Frame 38
_parent._parent.setWheelPosition(124);
Symbol 458 MovieClip Frame 39
_parent._parent.setWheelPosition(123);
Symbol 458 MovieClip Frame 40
_parent._parent.setWheelPosition(122);
Symbol 458 MovieClip Frame 41
_parent._parent.setWheelPosition(121);
Symbol 458 MovieClip Frame 42
_parent._parent.setWheelPosition(120);
Symbol 458 MovieClip Frame 43
_parent._parent.setWheelPosition(119);
Symbol 458 MovieClip Frame 44
_parent._parent.setWheelPosition(118);
Symbol 458 MovieClip Frame 45
_parent._parent.setWheelPosition(117);
Symbol 458 MovieClip Frame 46
_parent._parent.setWheelPosition(116);
Symbol 458 MovieClip Frame 47
_parent._parent.setWheelPosition(115);
Symbol 458 MovieClip Frame 48
_parent._parent.setWheelPosition(114);
Symbol 458 MovieClip Frame 49
_parent._parent.setWheelPosition(113);
Symbol 458 MovieClip Frame 50
_parent._parent.setWheelPosition(112);
Symbol 458 MovieClip Frame 51
_parent._parent.setWheelPosition(111);
Symbol 458 MovieClip Frame 52
_parent._parent.setWheelPosition(110);
Symbol 458 MovieClip Frame 53
_parent._parent.setWheelPosition(109);
Symbol 458 MovieClip Frame 54
_parent._parent.setWheelPosition(108);
Symbol 458 MovieClip Frame 55
_parent._parent.setWheelPosition(107);
Symbol 458 MovieClip Frame 56
_parent._parent.setWheelPosition(106);
Symbol 458 MovieClip Frame 57
_parent._parent.setWheelPosition(105);
Symbol 458 MovieClip Frame 58
_parent._parent.setWheelPosition(104);
Symbol 458 MovieClip Frame 59
_parent._parent.setWheelPosition(103);
Symbol 458 MovieClip Frame 60
_parent._parent.setWheelPosition(102);
Symbol 458 MovieClip Frame 61
_parent._parent.setWheelPosition(101);
Symbol 458 MovieClip Frame 62
_parent._parent.setWheelPosition(100);
Symbol 458 MovieClip Frame 63
_parent._parent.setWheelPosition(99);
Symbol 458 MovieClip Frame 64
_parent._parent.setWheelPosition(98);
Symbol 458 MovieClip Frame 65
_parent._parent.setWheelPosition(97);
Symbol 458 MovieClip Frame 66
_parent._parent.setWheelPosition(96);
Symbol 458 MovieClip Frame 67
_parent._parent.setWheelPosition(95);
Symbol 458 MovieClip Frame 68
_parent._parent.setWheelPosition(94);
Symbol 458 MovieClip Frame 69
_parent._parent.setWheelPosition(93);
Symbol 458 MovieClip Frame 70
_parent._parent.setWheelPosition(92);
Symbol 458 MovieClip Frame 71
_parent._parent.setWheelPosition(91);
Symbol 458 MovieClip Frame 72
_parent._parent.setWheelPosition(90);
Symbol 458 MovieClip Frame 73
_parent._parent.setWheelPosition(89);
Symbol 458 MovieClip Frame 74
_parent._parent.setWheelPosition(88);
Symbol 458 MovieClip Frame 75
_parent._parent.setWheelPosition(87);
Symbol 458 MovieClip Frame 76
_parent._parent.setWheelPosition(86);
Symbol 458 MovieClip Frame 77
_parent._parent.setWheelPosition(85);
Symbol 458 MovieClip Frame 78
_parent._parent.setWheelPosition(84);
Symbol 458 MovieClip Frame 79
_parent._parent.setWheelPosition(83);
Symbol 458 MovieClip Frame 80
_parent._parent.setWheelPosition(82);
Symbol 458 MovieClip Frame 81
_parent._parent.setWheelPosition(81);
Symbol 458 MovieClip Frame 82
_parent._parent.setWheelPosition(80);
Symbol 458 MovieClip Frame 83
_parent._parent.setWheelPosition(79);
Symbol 458 MovieClip Frame 84
_parent._parent.setWheelPosition(78);
Symbol 458 MovieClip Frame 85
_parent._parent.setWheelPosition(77);
Symbol 458 MovieClip Frame 86
_parent._parent.setWheelPosition(76);
Symbol 458 MovieClip Frame 87
_parent._parent.setWheelPosition(75);
Symbol 458 MovieClip Frame 88
_parent._parent.setWheelPosition(74);
Symbol 458 MovieClip Frame 89
_parent._parent.setWheelPosition(73);
Symbol 458 MovieClip Frame 90
_parent._parent.setWheelPosition(72);
Symbol 458 MovieClip Frame 91
_parent._parent.setWheelPosition(71);
Symbol 458 MovieClip Frame 92
_parent._parent.setWheelPosition(70);
Symbol 458 MovieClip Frame 93
_parent._parent.setWheelPosition(69);
Symbol 458 MovieClip Frame 94
_parent._parent.setWheelPosition(68);
Symbol 458 MovieClip Frame 95
_parent._parent.setWheelPosition(67);
Symbol 458 MovieClip Frame 96
_parent._parent.setWheelPosition(66);
Symbol 458 MovieClip Frame 97
_parent._parent.setWheelPosition(65);
Symbol 458 MovieClip Frame 98
_parent._parent.setWheelPosition(64);
Symbol 458 MovieClip Frame 99
_parent._parent.setWheelPosition(63);
Symbol 458 MovieClip Frame 100
_parent._parent.setWheelPosition(62);
Symbol 458 MovieClip Frame 101
_parent._parent.setWheelPosition(61);
Symbol 458 MovieClip Frame 102
_parent._parent.setWheelPosition(60);
Symbol 458 MovieClip Frame 103
_parent._parent.setWheelPosition(59);
Symbol 458 MovieClip Frame 104
_parent._parent.setWheelPosition(58);
Symbol 458 MovieClip Frame 105
_parent._parent.setWheelPosition(57);
Symbol 458 MovieClip Frame 106
_parent._parent.setWheelPosition(56);
Symbol 458 MovieClip Frame 107
_parent._parent.setWheelPosition(55);
Symbol 458 MovieClip Frame 108
_parent._parent.setWheelPosition(54);
Symbol 458 MovieClip Frame 109
_parent._parent.setWheelPosition(53);
Symbol 458 MovieClip Frame 110
_parent._parent.setWheelPosition(52);
Symbol 458 MovieClip Frame 111
_parent._parent.setWheelPosition(51);
Symbol 458 MovieClip Frame 112
_parent._parent.setWheelPosition(50);
Symbol 458 MovieClip Frame 113
_parent._parent.setWheelPosition(49);
Symbol 458 MovieClip Frame 114
_parent._parent.setWheelPosition(48);
Symbol 458 MovieClip Frame 115
_parent._parent.setWheelPosition(47);
Symbol 458 MovieClip Frame 116
_parent._parent.setWheelPosition(46);
Symbol 458 MovieClip Frame 117
_parent._parent.setWheelPosition(45);
Symbol 458 MovieClip Frame 118
_parent._parent.setWheelPosition(44);
Symbol 458 MovieClip Frame 119
_parent._parent.setWheelPosition(43);
Symbol 458 MovieClip Frame 120
_parent._parent.setWheelPosition(42);
Symbol 458 MovieClip Frame 121
_parent._parent.setWheelPosition(41);
Symbol 458 MovieClip Frame 122
_parent._parent.setWheelPosition(40);
Symbol 458 MovieClip Frame 123
_parent._parent.setWheelPosition(39);
Symbol 458 MovieClip Frame 124
_parent._parent.setWheelPosition(38);
Symbol 458 MovieClip Frame 125
_parent._parent.setWheelPosition(37);
Symbol 458 MovieClip Frame 126
_parent._parent.setWheelPosition(36);
Symbol 458 MovieClip Frame 127
_parent._parent.setWheelPosition(35);
Symbol 458 MovieClip Frame 128
_parent._parent.setWheelPosition(34);
Symbol 458 MovieClip Frame 129
_parent._parent.setWheelPosition(33);
Symbol 458 MovieClip Frame 130
_parent._parent.setWheelPosition(32);
Symbol 458 MovieClip Frame 131
_parent._parent.setWheelPosition(31);
Symbol 458 MovieClip Frame 132
_parent._parent.setWheelPosition(30);
Symbol 458 MovieClip Frame 133
_parent._parent.setWheelPosition(29);
Symbol 458 MovieClip Frame 134
_parent._parent.setWheelPosition(28);
Symbol 458 MovieClip Frame 135
_parent._parent.setWheelPosition(27);
Symbol 458 MovieClip Frame 136
_parent._parent.setWheelPosition(26);
Symbol 458 MovieClip Frame 137
_parent._parent.setWheelPosition(25);
Symbol 458 MovieClip Frame 138
_parent._parent.setWheelPosition(24);
Symbol 458 MovieClip Frame 139
_parent._parent.setWheelPosition(23);
Symbol 458 MovieClip Frame 140
_parent._parent.setWheelPosition(22);
Symbol 458 MovieClip Frame 141
_parent._parent.setWheelPosition(21);
Symbol 458 MovieClip Frame 142
_parent._parent.setWheelPosition(20);
Symbol 458 MovieClip Frame 143
_parent._parent.setWheelPosition(19);
Symbol 458 MovieClip Frame 144
_parent._parent.setWheelPosition(18);
Symbol 458 MovieClip Frame 145
_parent._parent.setWheelPosition(17);
Symbol 458 MovieClip Frame 146
_parent._parent.setWheelPosition(16);
Symbol 458 MovieClip Frame 147
_parent._parent.setWheelPosition(15);
Symbol 458 MovieClip Frame 148
_parent._parent.setWheelPosition(14);
Symbol 458 MovieClip Frame 149
_parent._parent.setWheelPosition(13);
Symbol 458 MovieClip Frame 150
_parent._parent.setWheelPosition(12);
Symbol 458 MovieClip Frame 151
_parent._parent.setWheelPosition(11);
Symbol 458 MovieClip Frame 152
_parent._parent.setWheelPosition(10);
Symbol 458 MovieClip Frame 153
_parent._parent.setWheelPosition(9);
Symbol 458 MovieClip Frame 154
_parent._parent.setWheelPosition(8);
Symbol 458 MovieClip Frame 155
_parent._parent.setWheelPosition(7);
Symbol 458 MovieClip Frame 156
_parent._parent.setWheelPosition(6);
Symbol 458 MovieClip Frame 157
_parent._parent.setWheelPosition(5);
Symbol 458 MovieClip Frame 158
_parent._parent.setWheelPosition(4);
Symbol 458 MovieClip Frame 159
_parent._parent.setWheelPosition(3);
Symbol 458 MovieClip Frame 160
_parent._parent.setWheelPosition(2);
Symbol 459 MovieClip Frame 1
_parent._parent.setWheelPosition(1);
Symbol 459 MovieClip Frame 2
_parent._parent.setWheelPosition(160);
Symbol 459 MovieClip Frame 3
_parent._parent.setWheelPosition(159);
Symbol 459 MovieClip Frame 4
_parent._parent.setWheelPosition(158);
Symbol 459 MovieClip Frame 5
_parent._parent.setWheelPosition(157);
Symbol 459 MovieClip Frame 6
_parent._parent.setWheelPosition(156);
Symbol 459 MovieClip Frame 7
_parent._parent.setWheelPosition(155);
Symbol 459 MovieClip Frame 8
_parent._parent.setWheelPosition(154);
Symbol 459 MovieClip Frame 9
_parent._parent.setWheelPosition(153);
Symbol 459 MovieClip Frame 10
_parent._parent.setWheelPosition(152);
Symbol 459 MovieClip Frame 11
_parent._parent.setWheelPosition(151);
Symbol 459 MovieClip Frame 12
_parent._parent.setWheelPosition(150);
Symbol 459 MovieClip Frame 13
_parent._parent.setWheelPosition(149);
Symbol 459 MovieClip Frame 14
_parent._parent.setWheelPosition(148);
Symbol 459 MovieClip Frame 15
_parent._parent.setWheelPosition(147);
Symbol 459 MovieClip Frame 16
_parent._parent.setWheelPosition(146);
Symbol 459 MovieClip Frame 17
_parent._parent.setWheelPosition(145);
Symbol 459 MovieClip Frame 18
_parent._parent.setWheelPosition(144);
Symbol 459 MovieClip Frame 19
_parent._parent.setWheelPosition(143);
Symbol 459 MovieClip Frame 20
_parent._parent.setWheelPosition(142);
Symbol 459 MovieClip Frame 21
_parent._parent.setWheelPosition(141);
Symbol 459 MovieClip Frame 22
_parent._parent.setWheelPosition(140);
Symbol 459 MovieClip Frame 23
_parent._parent.setWheelPosition(139);
Symbol 459 MovieClip Frame 24
_parent._parent.setWheelPosition(138);
Symbol 459 MovieClip Frame 25
_parent._parent.setWheelPosition(137);
Symbol 459 MovieClip Frame 26
_parent._parent.setWheelPosition(136);
Symbol 459 MovieClip Frame 27
_parent._parent.setWheelPosition(135);
Symbol 459 MovieClip Frame 28
_parent._parent.setWheelPosition(134);
Symbol 459 MovieClip Frame 29
_parent._parent.setWheelPosition(133);
Symbol 459 MovieClip Frame 30
_parent._parent.setWheelPosition(132);
Symbol 459 MovieClip Frame 31
_parent._parent.setWheelPosition(131);
Symbol 459 MovieClip Frame 32
_parent._parent.setWheelPosition(130);
Symbol 459 MovieClip Frame 33
_parent._parent.setWheelPosition(129);
Symbol 459 MovieClip Frame 34
_parent._parent.setWheelPosition(128);
Symbol 459 MovieClip Frame 35
_parent._parent.setWheelPosition(127);
Symbol 459 MovieClip Frame 36
_parent._parent.setWheelPosition(126);
Symbol 459 MovieClip Frame 37
_parent._parent.setWheelPosition(125);
Symbol 459 MovieClip Frame 38
_parent._parent.setWheelPosition(124);
Symbol 459 MovieClip Frame 39
_parent._parent.setWheelPosition(123);
Symbol 459 MovieClip Frame 40
_parent._parent.setWheelPosition(122);
Symbol 459 MovieClip Frame 41
_parent._parent.setWheelPosition(121);
Symbol 459 MovieClip Frame 42
_parent._parent.setWheelPosition(120);
Symbol 459 MovieClip Frame 43
_parent._parent.setWheelPosition(119);
Symbol 459 MovieClip Frame 44
_parent._parent.setWheelPosition(118);
Symbol 459 MovieClip Frame 45
_parent._parent.setWheelPosition(117);
Symbol 459 MovieClip Frame 46
_parent._parent.setWheelPosition(116);
Symbol 459 MovieClip Frame 47
_parent._parent.setWheelPosition(115);
Symbol 459 MovieClip Frame 48
_parent._parent.setWheelPosition(114);
Symbol 459 MovieClip Frame 49
_parent._parent.setWheelPosition(113);
Symbol 459 MovieClip Frame 50
_parent._parent.setWheelPosition(112);
Symbol 459 MovieClip Frame 51
_parent._parent.setWheelPosition(111);
Symbol 459 MovieClip Frame 52
_parent._parent.setWheelPosition(110);
Symbol 459 MovieClip Frame 53
_parent._parent.setWheelPosition(109);
Symbol 459 MovieClip Frame 54
_parent._parent.setWheelPosition(108);
Symbol 459 MovieClip Frame 55
_parent._parent.setWheelPosition(107);
Symbol 459 MovieClip Frame 56
_parent._parent.setWheelPosition(106);
Symbol 459 MovieClip Frame 57
_parent._parent.setWheelPosition(105);
Symbol 459 MovieClip Frame 58
_parent._parent.setWheelPosition(104);
Symbol 459 MovieClip Frame 59
_parent._parent.setWheelPosition(103);
Symbol 459 MovieClip Frame 60
_parent._parent.setWheelPosition(102);
Symbol 459 MovieClip Frame 61
_parent._parent.setWheelPosition(101);
Symbol 459 MovieClip Frame 62
_parent._parent.setWheelPosition(100);
Symbol 459 MovieClip Frame 63
_parent._parent.setWheelPosition(99);
Symbol 459 MovieClip Frame 64
_parent._parent.setWheelPosition(98);
Symbol 459 MovieClip Frame 65
_parent._parent.setWheelPosition(97);
Symbol 459 MovieClip Frame 66
_parent._parent.setWheelPosition(96);
Symbol 459 MovieClip Frame 67
_parent._parent.setWheelPosition(95);
Symbol 459 MovieClip Frame 68
_parent._parent.setWheelPosition(94);
Symbol 459 MovieClip Frame 69
_parent._parent.setWheelPosition(93);
Symbol 459 MovieClip Frame 70
_parent._parent.setWheelPosition(92);
Symbol 459 MovieClip Frame 71
_parent._parent.setWheelPosition(91);
Symbol 459 MovieClip Frame 72
_parent._parent.setWheelPosition(90);
Symbol 459 MovieClip Frame 73
_parent._parent.setWheelPosition(89);
Symbol 459 MovieClip Frame 74
_parent._parent.setWheelPosition(88);
Symbol 459 MovieClip Frame 75
_parent._parent.setWheelPosition(87);
Symbol 459 MovieClip Frame 76
_parent._parent.setWheelPosition(86);
Symbol 459 MovieClip Frame 77
_parent._parent.setWheelPosition(85);
Symbol 459 MovieClip Frame 78
_parent._parent.setWheelPosition(84);
Symbol 459 MovieClip Frame 79
_parent._parent.setWheelPosition(83);
Symbol 459 MovieClip Frame 80
_parent._parent.setWheelPosition(82);
Symbol 459 MovieClip Frame 81
_parent._parent.setWheelPosition(81);
Symbol 459 MovieClip Frame 82
_parent._parent.setWheelPosition(80);
Symbol 459 MovieClip Frame 83
_parent._parent.setWheelPosition(79);
Symbol 459 MovieClip Frame 84
_parent._parent.setWheelPosition(78);
Symbol 459 MovieClip Frame 85
_parent._parent.setWheelPosition(77);
Symbol 459 MovieClip Frame 86
_parent._parent.setWheelPosition(76);
Symbol 459 MovieClip Frame 87
_parent._parent.setWheelPosition(75);
Symbol 459 MovieClip Frame 88
_parent._parent.setWheelPosition(74);
Symbol 459 MovieClip Frame 89
_parent._parent.setWheelPosition(73);
Symbol 459 MovieClip Frame 90
_parent._parent.setWheelPosition(72);
Symbol 459 MovieClip Frame 91
_parent._parent.setWheelPosition(71);
Symbol 459 MovieClip Frame 92
_parent._parent.setWheelPosition(70);
Symbol 459 MovieClip Frame 93
_parent._parent.setWheelPosition(69);
Symbol 459 MovieClip Frame 94
_parent._parent.setWheelPosition(68);
Symbol 459 MovieClip Frame 95
_parent._parent.setWheelPosition(67);
Symbol 459 MovieClip Frame 96
_parent._parent.setWheelPosition(66);
Symbol 459 MovieClip Frame 97
_parent._parent.setWheelPosition(65);
Symbol 459 MovieClip Frame 98
_parent._parent.setWheelPosition(64);
Symbol 459 MovieClip Frame 99
_parent._parent.setWheelPosition(63);
Symbol 459 MovieClip Frame 100
_parent._parent.setWheelPosition(62);
Symbol 459 MovieClip Frame 101
_parent._parent.setWheelPosition(61);
Symbol 459 MovieClip Frame 102
_parent._parent.setWheelPosition(60);
Symbol 459 MovieClip Frame 103
_parent._parent.setWheelPosition(59);
Symbol 459 MovieClip Frame 104
_parent._parent.setWheelPosition(58);
Symbol 459 MovieClip Frame 105
_parent._parent.setWheelPosition(57);
Symbol 459 MovieClip Frame 106
_parent._parent.setWheelPosition(56);
Symbol 459 MovieClip Frame 107
_parent._parent.setWheelPosition(55);
Symbol 459 MovieClip Frame 108
_parent._parent.setWheelPosition(54);
Symbol 459 MovieClip Frame 109
_parent._parent.setWheelPosition(53);
Symbol 459 MovieClip Frame 110
_parent._parent.setWheelPosition(52);
Symbol 459 MovieClip Frame 111
_parent._parent.setWheelPosition(51);
Symbol 459 MovieClip Frame 112
_parent._parent.setWheelPosition(50);
Symbol 459 MovieClip Frame 113
_parent._parent.setWheelPosition(49);
Symbol 459 MovieClip Frame 114
_parent._parent.setWheelPosition(48);
Symbol 459 MovieClip Frame 115
_parent._parent.setWheelPosition(47);
Symbol 459 MovieClip Frame 116
_parent._parent.setWheelPosition(46);
Symbol 459 MovieClip Frame 117
_parent._parent.setWheelPosition(45);
Symbol 459 MovieClip Frame 118
_parent._parent.setWheelPosition(44);
Symbol 459 MovieClip Frame 119
_parent._parent.setWheelPosition(43);
Symbol 459 MovieClip Frame 120
_parent._parent.setWheelPosition(42);
Symbol 459 MovieClip Frame 121
_parent._parent.setWheelPosition(41);
Symbol 459 MovieClip Frame 122
_parent._parent.setWheelPosition(40);
Symbol 459 MovieClip Frame 123
_parent._parent.setWheelPosition(39);
Symbol 459 MovieClip Frame 124
_parent._parent.setWheelPosition(38);
Symbol 459 MovieClip Frame 125
_parent._parent.setWheelPosition(37);
Symbol 459 MovieClip Frame 126
_parent._parent.setWheelPosition(36);
Symbol 459 MovieClip Frame 127
_parent._parent.setWheelPosition(35);
Symbol 459 MovieClip Frame 128
_parent._parent.setWheelPosition(34);
Symbol 459 MovieClip Frame 129
_parent._parent.setWheelPosition(33);
Symbol 459 MovieClip Frame 130
_parent._parent.setWheelPosition(32);
Symbol 459 MovieClip Frame 131
_parent._parent.setWheelPosition(31);
Symbol 459 MovieClip Frame 132
_parent._parent.setWheelPosition(30);
Symbol 459 MovieClip Frame 133
_parent._parent.setWheelPosition(29);
Symbol 459 MovieClip Frame 134
_parent._parent.setWheelPosition(28);
Symbol 459 MovieClip Frame 135
_parent._parent.setWheelPosition(27);
Symbol 459 MovieClip Frame 136
_parent._parent.setWheelPosition(26);
Symbol 459 MovieClip Frame 137
_parent._parent.setWheelPosition(25);
Symbol 459 MovieClip Frame 138
_parent._parent.setWheelPosition(24);
Symbol 459 MovieClip Frame 139
_parent._parent.setWheelPosition(23);
Symbol 459 MovieClip Frame 140
_parent._parent.setWheelPosition(22);
Symbol 459 MovieClip Frame 141
_parent._parent.setWheelPosition(21);
Symbol 459 MovieClip Frame 142
_parent._parent.setWheelPosition(20);
Symbol 459 MovieClip Frame 143
_parent._parent.setWheelPosition(19);
Symbol 459 MovieClip Frame 144
_parent._parent.setWheelPosition(18);
Symbol 459 MovieClip Frame 145
_parent._parent.setWheelPosition(17);
Symbol 459 MovieClip Frame 146
_parent._parent.setWheelPosition(16);
Symbol 459 MovieClip Frame 147
_parent._parent.setWheelPosition(15);
Symbol 459 MovieClip Frame 148
_parent._parent.setWheelPosition(14);
Symbol 459 MovieClip Frame 149
_parent._parent.setWheelPosition(13);
Symbol 459 MovieClip Frame 150
_parent._parent.setWheelPosition(12);
Symbol 459 MovieClip Frame 151
_parent._parent.setWheelPosition(11);
Symbol 459 MovieClip Frame 152
_parent._parent.setWheelPosition(10);
Symbol 459 MovieClip Frame 153
_parent._parent.setWheelPosition(9);
Symbol 459 MovieClip Frame 154
_parent._parent.setWheelPosition(8);
Symbol 459 MovieClip Frame 155
_parent._parent.setWheelPosition(7);
Symbol 459 MovieClip Frame 156
_parent._parent.setWheelPosition(6);
Symbol 459 MovieClip Frame 157
_parent._parent.setWheelPosition(5);
Symbol 459 MovieClip Frame 158
_parent._parent.setWheelPosition(4);
Symbol 459 MovieClip Frame 159
_parent._parent.setWheelPosition(3);
Symbol 459 MovieClip Frame 160
_parent._parent.setWheelPosition(2);
Symbol 460 MovieClip Frame 1
stop();
Symbol 460 MovieClip Frame 8
stop();
Symbol 461 MovieClip [wheel] Frame 1
#initclip 131
Object.registerClass("wheel", com.nitrome.sandman.Wheel);
#endinitclip
Symbol 463 MovieClip [yes_quit_button] Frame 1
#initclip 132
Object.registerClass("yes_quit_button", com.nitrome.sandman.SimpleButton);
#endinitclip
stop();
Symbol 463 MovieClip [yes_quit_button] Frame 5
stop();
Symbol 626 MovieClip [invisible_block] Frame 1
#initclip 133
Object.registerClass("invisible_block", com.nitrome.sandman.InvisibleBlock);
#endinitclip
Symbol 777 MovieClip [water] Frame 1
#initclip 134
Object.registerClass("water", com.nitrome.sandman.WaterAnim);
#endinitclip
Symbol 787 MovieClip [quality_toggle] Frame 1
#initclip 135
Object.registerClass("quality_toggle", com.nitrome.sandman.QualityToggle);
#endinitclip
stop();
Symbol 787 MovieClip [quality_toggle] Frame 5
stop();
Symbol 787 MovieClip [quality_toggle] Frame 9
stop();
Symbol 787 MovieClip [quality_toggle] Frame 13
stop();
Symbol 790 MovieClip [music_controller] Frame 1
#initclip 136
Object.registerClass("music_controller", com.nitrome.sandman.MusicController);
#endinitclip
Symbol 793 MovieClip Frame 1
stop();
Symbol 795 MovieClip Frame 1
stop();
Symbol 800 MovieClip Frame 1
stop();
Symbol 802 MovieClip Frame 1
stop();
Symbol 804 MovieClip Frame 1
stop();
Symbol 806 MovieClip Frame 1
stop();
Symbol 816 MovieClip Frame 1
play();
Symbol 816 MovieClip Frame 13
stop();
Symbol 828 MovieClip [total_hiscore_display_submit_page] Frame 1
#initclip 138
Object.registerClass("total_hiscore_display_submit_page", com.nitrome.sandman.HiscoreDisplay);
#endinitclip
Symbol 900 MovieClip Frame 1
stop();
Symbol 900 MovieClip Frame 2
_global.person_score = Number(_global.people_saved * 50);
_global.person_score_count = 0;
Symbol 900 MovieClip Frame 3
play();
var str = String(_global.person_score_count);
var new_string = "";
var i = 0;
while (i < str.length) {
if (str.charAt(i) == "0") {
new_string = new_string + "O";
} else {
new_string = new_string + String(str.charAt(i));
}
i++;
}
score_text.text = new_string;
_global.person_score_count = _global.person_score_count + 10;
Symbol 900 MovieClip Frame 4
if (_global.person_score_count >= _global.person_score) {
gotoAndPlay ("endloop");
} else {
gotoAndPlay ("loop");
}
Symbol 900 MovieClip Frame 13
var s = String(_global.person_score);
var new_string = "";
var i = 0;
while (i < s.length) {
if (s.charAt(i) == "0") {
new_string = new_string + "O";
} else {
new_string = new_string + String(s.charAt(i));
}
i++;
}
score_text.text = new_string;
Symbol 900 MovieClip Frame 22
_parent._parent.timer_score.gotoAndPlay(2);
stop();
Symbol 902 MovieClip Frame 1
stop();
Symbol 902 MovieClip Frame 2
play();
Symbol 902 MovieClip Frame 19
if (_global.people_saved > 1) {
gotoAndPlay ("person_2");
} else {
sandman_score.gotoAndPlay(2);
stop();
}
Symbol 902 MovieClip Frame 29
if (_global.people_saved > 2) {
gotoAndPlay ("person_3");
} else {
sandman_score.gotoAndPlay(2);
stop();
}
Symbol 902 MovieClip Frame 39
if (_global.people_saved > 3) {
gotoAndPlay ("person_4");
} else {
sandman_score.gotoAndPlay(2);
stop();
}
Symbol 902 MovieClip Frame 49
if (_global.people_saved > 4) {
gotoAndPlay ("person_5");
} else {
sandman_score.gotoAndPlay(2);
stop();
}
Symbol 902 MovieClip Frame 59
if (_global.people_saved > 5) {
gotoAndPlay ("person_6");
} else {
sandman_score.gotoAndPlay(2);
stop();
}
Symbol 902 MovieClip Frame 69
sandman_score.gotoAndPlay(2);
stop();
Symbol 913 MovieClip Frame 1
stop();
Symbol 913 MovieClip Frame 2
var ms = _root.timer_clip.getTotalMilliseconds();
var max_time_bonus = 1000;
var s = Math.round(ms / 1000);
_global.time_bonus = max_time_bonus - s;
if (_global.time_bonus <= 0) {
_global.time_bonus = 0;
gotoAndPlay ("alarm_play");
} else {
_global.time_bonus_count = 0;
gotoAndPlay ("alarm");
}
stop();
Symbol 913 MovieClip Frame 3
play();
var str = String(_global.time_bonus_count);
var new_string = "";
var i = 0;
while (i < str.length) {
if (str.charAt(i) == "0") {
new_string = new_string + "O";
} else {
new_string = new_string + String(str.charAt(i));
}
i++;
}
time_bonus_text.text = new_string;
_global.time_bonus_count = _global.time_bonus_count + 50;
Symbol 913 MovieClip Frame 4
if (_global.time_bonus_count >= _global.time_bonus) {
gotoAndPlay ("alarm_play");
} else {
gotoAndPlay ("alarm");
}
Symbol 913 MovieClip Frame 9
var str = String(_global.time_bonus);
var new_string = "";
var i = 0;
while (i < str.length) {
if (str.charAt(i) == "0") {
new_string = new_string + "O";
} else {
new_string = new_string + String(str.charAt(i));
}
i++;
}
time_bonus_text.text = new_string;
Symbol 913 MovieClip Frame 22
_parent.endgame_stage_score.gotoAndPlay(2);
stop();
Symbol 916 MovieClip Frame 1
stop();
Symbol 916 MovieClip Frame 2
_global.total_score = _global.person_score + _global.time_bonus;
_global.total_score_count = 0;
Symbol 916 MovieClip Frame 3
play();
var s = String(_global.total_score_count);
var new_string = "";
var i = 0;
while (i < s.length) {
if (s.charAt(i) == "0") {
new_string = new_string + "O";
} else {
new_string = new_string + String(s.charAt(i));
}
i++;
}
stage_score.text = new_string;
_global.total_score_count = _global.total_score_count + 50;
Symbol 916 MovieClip Frame 4
if (_global.total_score_count >= _global.total_score) {
gotoAndStop ("endloop");
} else {
gotoAndPlay ("loop");
}
Symbol 916 MovieClip Frame 11
var s = String(_global.total_score);
var new_string = "";
var i = 0;
while (i < s.length) {
if (s.charAt(i) == "0") {
new_string = new_string + "O";
} else {
new_string = new_string + String(s.charAt(i));
}
i++;
}
stage_score.text = new_string;
play();
Symbol 916 MovieClip Frame 45
_root.final_level_complete_popup.gotoAndPlay("open_endscreen");
Symbol 918 MovieClip Frame 1
stop();
Symbol 918 MovieClip Frame 2
level_complete_clip.sandman_counter.gotoAndPlay("start_count");
Symbol 918 MovieClip Frame 10
stop();
Symbol 918 MovieClip Frame 11
_global.saveFunctions.saveStageHiscore(_global.current_level, _global.total_score);
_global.saveFunctions.saveLastOpenedStage(_global.current_level);
_global.saveFunctions.saveCompletedGame();
Symbol 918 MovieClip Frame 13
_root.fade_out_clip.doFade("CONGRATULATIONS");
Symbol 922 MovieClip Frame 1
stop();
Symbol 922 MovieClip Frame 2
_global.total_score = _global.person_score + _global.time_bonus;
_global.total_score_count = 0;
Symbol 922 MovieClip Frame 3
play();
var s = String(_global.total_score_count);
var new_string = "";
var i = 0;
while (i < s.length) {
if (s.charAt(i) == "0") {
new_string = new_string + "O";
} else {
new_string = new_string + String(s.charAt(i));
}
i++;
}
stage_score.text = new_string;
_global.total_score_count = _global.total_score_count + 50;
Symbol 922 MovieClip Frame 4
if (_global.total_score_count >= _global.total_score) {
gotoAndStop ("endloop");
} else {
gotoAndPlay ("loop");
}
Symbol 922 MovieClip Frame 11
var s = String(_global.total_score);
var new_string = "";
var i = 0;
while (i < s.length) {
if (s.charAt(i) == "0") {
new_string = new_string + "O";
} else {
new_string = new_string + String(s.charAt(i));
}
i++;
}
stage_score.text = new_string;
_parent.submit_score.displaySubmitWithNumber(_global.total_score);
stop();
Symbol 924 MovieClip Frame 1
stop();
Symbol 924 MovieClip Frame 2
level_complete_clip.sandman_counter.gotoAndPlay("start_count");
Symbol 924 MovieClip Frame 10
stop();
Symbol 924 MovieClip Frame 19
if (_global.play_next_level == true) {
_root.fade_out_clip.doFade("PLAYNEXTLEVEL");
} else {
_root.fade_out_clip.doFade("NEXTSELECTSCREEN");
}
Symbol 929 MovieClip [submit_button_end_of_level_screens] Frame 1
#initclip 140
Object.registerClass("submit_button_end_of_level_screens", com.nitrome.sandman.SimpleButton);
#endinitclip
stop();
Symbol 929 MovieClip [submit_button_end_of_level_screens] Frame 5
stop();
Symbol 931 MovieClip [submit_score_feedback_clip] Frame 1
#initclip 139
Object.registerClass("submit_score_feedback_clip", com.nitrome.sandman.SubmitScoreFeedback);
#endinitclip
stop();
Symbol 931 MovieClip [submit_score_feedback_clip] Frame 2
stop();
Symbol 932 MovieClip Frame 1
submit_score.displaySubmit();
Symbol 933 MovieClip Frame 1
stop();
Symbol 933 MovieClip Frame 10
stop();
Symbol 933 MovieClip Frame 19
if (_global.try_again == true) {
_root.fade_out_clip.doFade("TRYAGAIN");
} else {
_root.fade_out_clip.doFade("NEXTSELECTSCREEN");
}
Symbol 938 MovieClip Frame 1
stop();
Symbol 938 MovieClip Frame 10
stop();
Symbol 938 MovieClip Frame 19
if (_global.quit_game_flag == true) {
_root.fade_out_clip.doFade("QUITGAME");
}
Symbol 992 MovieClip Frame 1
_global.next_instructions = 2;
stop();
Symbol 992 MovieClip Frame 10
_global.next_instructions = 3;
_global.prev_instructions = 1;
stop();
Symbol 992 MovieClip Frame 20
_global.next_instructions = 4;
_global.prev_instructions = 2;
stop();
Symbol 992 MovieClip Frame 30
_global.next_instructions = 5;
_global.prev_instructions = 3;
stop();
Symbol 992 MovieClip Frame 40
_global.next_instructions = 6;
_global.prev_instructions = 4;
stop();
Symbol 992 MovieClip Frame 50
_global.next_instructions = 7;
_global.prev_instructions = 5;
stop();
Symbol 992 MovieClip Frame 60
_global.next_instructions = 8;
_global.prev_instructions = 6;
stop();
Symbol 992 MovieClip Frame 70
_global.next_instructions = 9;
_global.prev_instructions = 7;
stop();
Symbol 992 MovieClip Frame 80
_global.next_instructions = 10;
_global.prev_instructions = 8;
stop();
Symbol 992 MovieClip Frame 90
_global.prev_instructions = 9;
stop();
Symbol 1000 MovieClip Frame 4
var choice = (random(100) + 1);
if (choice <= 30) {
gotoAndPlay ("start");
} else {
gotoAndPlay (2);
}
Symbol 1000 MovieClip Frame 12
var choice = (random(100) + 1);
if (choice <= 30) {
gotoAndPlay ("start");
} else {
gotoAndPlay (2);
}
Symbol 1000 MovieClip Frame 23
var choice = (random(100) + 1);
if (choice <= 30) {
gotoAndPlay ("start");
} else {
gotoAndPlay (2);
}
Symbol 1009 MovieClip [play_again_button] Frame 1
#initclip 141
Object.registerClass("play_again_button", com.nitrome.sandman.SimpleButton);
#endinitclip
stop();
Symbol 1009 MovieClip [play_again_button] Frame 5
stop();
Symbol 1015 MovieClip Frame 1
this._visible = false;
Symbol 1033 Button
on (release) {
gameURL = ("http://www.miniclip.com/" + gamename) + ".htm";
getURL (gameURL, "_blank");
}
Symbol 1035 MovieClip Frame 1
System.security.allowDomain("www.miniclip.com");
Instance of Symbol 1015 MovieClip "mcHighscores" in Symbol 1035 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 1035 MovieClip Frame 2
if ((((_url.indexOf("miniclip.com") == -1) && (_url.indexOf("miniclip.net") == -1)) && (_url.indexOf("miniclip.co.uk") == -1)) && (_url.indexOf("miniclips.com"))) {
gotoAndStop(_currentframe + 1);
} else {
var noCache = (getTimer() + random(100000));
mcTarget.loadMovie("http://www.miniclip.com/swfcontent/highscore.swf?noCache=" + noCache);
stop();
}
Symbol 1035 MovieClip Frame 3
stop();