Frame 1
stop();
onEnterFrame = function () {
this.percent = Math.floor((getBytesLoaded() / getBytesTotal()) * 100);
loading_txt.text = String(this.percent) + "%";
if ((getBytesLoaded() / getBytesTotal()) >= 1) {
delete onEnterFrame;
fader.targ = "intro";
music_mc.nextFrame();
fader.play();
}
};
Frame 5
slide_count = 10;
current_slide = 1;
next_slide.onRelease = function () {
if (!_root.isSliding) {
if (current_slide < 10) {
_root.isSliding = true;
slider.gotoAndPlay("forward");
current_slide++;
playSound("slide change");
} else if (current_slide == 10) {
_root.isSliding = true;
slider.last_step = true;
slider.showDialog = true;
slider.play();
playSound("slide change");
}
}
};
prev_slide.onRelease = function () {
if (!_root.isSliding) {
if (current_slide > 1) {
_root.isSliding = true;
slider.gotoAndPlay("backward");
current_slide--;
playSound("slide change");
}
}
};
skip_btn.onRelease = function () {
if ((!_root.isSliding) && (fader.isStopped)) {
_root.isSliding = true;
slider.last_step = true;
slider.play();
playSound("slide change");
}
};
playSound = function (snd) {
var sound = new Sound(_root);
sound.attachSound(snd);
sound.start();
sound.onSoundComplete = function () {
delete sound;
};
};
Frame 10
function writeText(num, txt) {
var counter = 0;
onEnterFrame = function () {
if (counter < txt.length) {
eval ("dialog_txt" + num).text = eval ("dialog_txt" + num).text + txt.charAt(counter);
playSound("beep");
counter++;
} else {
delete this.onEnterFrame;
}
};
}
function moveOn() {
fader.targ = "log";
fader.play();
}
stopAllSounds();
playSound = function (snd) {
var sound = new Sound(_root);
sound.attachSound(snd);
sound.start();
sound.onSoundComplete = function () {
delete sound;
};
};
dialog_txt1.text = "";
Frame 15
function writeText(num, txt, funct, tt) {
var counter = 0;
onEnterFrame = function () {
if (counter < txt.length) {
eval ("dialog_txt" + num).text = eval ("dialog_txt" + num).text + txt.charAt(counter);
playSound("beep");
counter++;
} else {
delete this.onEnterFrame;
if (funct) {
counter = 0;
onEnterFrame = function () {
if (counter >= tt) {
eval (funct)();
delete this.onEnterFrame;
} else {
counter++;
}
};
}
}
};
}
function f_loadGame() {
this.play();
}
function f_showInput() {
slot_input_txt.type = "input";
slot_input_txt.maxChars = 1;
slot_input_txt.selectable = true;
Selection.setFocus("slot_input_txt");
}
function prepareSlots(fast) {
var _local5 = 0;
var _local4 = 1;
while (_local4 <= 4) {
var _local3 = SharedObject.getLocal("shi_save" + _local4, "/");
if (_local3.data.PLAYER) {
var _local2 = "";
_local2 = _local2 + "DEM> Saved status detected\nDEM> Choose slot to restore:\n";
var _local1 = 1;
while (_local1 <= 4) {
_local3 = SharedObject.getLocal("shi_save" + _local1, "/");
if (_local3.data.PLAYER) {
_local2 = _local2 + (((((("DEM> Slot " + _local1) + " - ") + _local3.data.save_time) + " - synchronization: ") + _local3.data.PLAYER.sync) + "%\n");
} else {
_local2 = _local2 + "DEM> ---\n";
}
_local1++;
}
_local2 = _local2 + "DEM> or type 0 to start anew\n> ";
if (fast) {
dialog_txt1.text = _local2;
f_showInput();
} else {
writeText(1, _local2, "f_showInput", 1);
}
break;
}
_local5++;
_local4++;
}
if (_local5 == 4) {
noFast = true;
writeText(1, "DEM> No saved games found.\nDEM> Initiating new compilation sequence...", "f_loadGame", 12);
}
}
stop();
stopAllSounds();
text_load = "DEM> Saved game found.\nDEM> Reading...";
playSound = function (snd) {
var sound = new Sound(_root);
sound.attachSound(snd);
sound.start();
sound.onSoundComplete = function () {
delete sound;
};
};
dialog_txt1.text = "";
prepareSlots();
var keyListener = new Object();
keyListener.onKeyDown = function () {
if (!(Key.getCode() === 13)) {
} else if ((slot_input_txt.text != "") && (!gameIsLoading)) {
var _local2 = SharedObject.getLocal("shi_save" + slot_input_txt.text, "/");
if (_local2.data.PLAYER) {
writeText(2, "DEM> Reinitiating compilation sequence...", "f_loadGame", 24);
_root.CSL = slot_input_txt.text;
slot_input_txt.type = "dynamic";
slot_input_txt.selectable = false;
gameIsLoading = true;
} else if (slot_input_txt.text == "0") {
writeText(2, "DEM> Initiating compilation sequence...", "f_loadGame", 24);
_root.CSL = undefined;
slot_input_txt.type = "dynamic";
slot_input_txt.selectable = false;
gameIsLoading = true;
} else {
trace("error");
}
}
};
Key.addListener(keyListener);
onMouseDown = function () {
if (!noFast) {
delete onEnterFrame;
prepareSlots(true);
noFast = true;
}
};
SO = undefined;
Frame 21
function paneluj(which) {
if (which < 5) {
eval ("panel" + which).play();
} else {
var i = 0;
while (i <= 3) {
_root[wins[i]].membrane.gotoAndPlay("flash");
i++;
}
}
}
panel_check = 1;
var i = 1;
while (i <= 4) {
eval ("panel" + i).stop();
i++;
}
var wins = ["screen_box", "arrows_box", "answer_box", "message_box"];
panel1.gotoAndPlay(2);
function prepareLocations() {
var counter = 0;
onEnterFrame = function () {
game_start = {nam:"start", U:"out1", img:"tobegin.jpg", tut:"start", snd_array:["calp_elysium", 50, 0]};
game_start_new = {nam:"start_new", U:"out1", img:"tobegin.jpg", img2:"tobegin_eye.jpg", snd_array:["calp_elysium", 50, 0]};
out1 = {nam:"out1", D:"game_start_new", U:"out3", L:"out1a", img:"out1.jpg", snd_array:["calp_elysium", 60, 0]};
out1a = {nam:"out1a", D:"out1", img:"out1a.jpg", tut:"hint1", hint:"2", hint_kind:"slide_back_mmm", snd_array:["calp_elysium", 50, 0]};
out2 = {nam:"out2", U:"out1", D:"out3", L:"wally", img:"out2.jpg", snd_array:["calp_elysium", 60, 0]};
wally = {nam:"wally", D:"out2", R:"wallnew", img:"wally.jpg", tut:"hint1", hint:"4", hint_kind:"slide_back_mmm", snd_array:["calp_elysium", 60, 0]};
wallnew = {nam:"wallnew", L:"wally", U:"oponish", img:"wallnew.jpg", snd_array:["calp_elysium", 50, 0]};
oponish = {nam:"oponish", D:"wallnew", img:"tires.jpg", hint_layer:"alch2", hint_kind:"slide_back_elm", visual:"alch_2", snd_array:["calp_elysium", 50, 0]};
out3 = {nam:"out3", D:"out2", U:"out4", L:"ent0", R:"buttony", img:"out3.jpg", snd_array:["calp_elysium", 80, 0, "calp_whisp", 0, 0]};
buttony = {nam:"buttony", D:"out3", img:"buttony.jpg", manual:"btns", tut:"hint1", hint:"1", hint_kind:"slide_back_mmm", no_zoom:true, snd_array:["calp_elysium", 60, 0]};
out4 = {nam:"out4", D:"out3", R:"out4a", img:"out4.jpg", tut:"hint1", hint:"3", hint_kind:"slide_back_mmm", snd_array:["calp_elysium", 60, 0]};
out4a = {nam:"out4a", L:"out4", U:"wtfucky", img:"out4a_eye.jpg", img2:"out4a.jpg", snd_array:["calp_full", 0, 0, "calp_elysium", 40, 0]};
wtfucky = {nam:"wtf?", D:"out4a", img:"wtfucky.jpg", hint:"7", hint_kind:"slide_back_alpha", snd_array:["calp_full", 80, 0, "calp_elysium", 20, 0]};
ent0 = {nam:"enter0", U:undefined, D:"out3", img:"ente.jpg", tut:"riddle1", hint:"5", hint_kind:"slide_back_mmm", remote:true, snd_array:["calp_elysium", 80, 0, "calp_whisp", 0, 0]};
ent = {nam:"enter", U:"ent1", D:"out3", img:"enter.jpg", snd_array:["calp_elysium", 25, 0, "calp_whisp", 45, 0]};
ent1 = {nam:"enter1", U:"ent2", D:"ent", L:"ent1a", img:"enter1.jpg", snd_array:["calp_elysium", 0, 0, "calp_whisp", 75, 0]};
ent1a = {nam:"enter1a", R:"ent1", img:"enter1a.jpg", snd_array:["calp_whisp", 75, 0]};
ent2 = {nam:"enter2", D:"ent1", R:"base1", U:"cor1", img:"ent2.jpg", snd_array:["calp_whisp", 100, 0]};
base1 = {nam:"base1", D:"ent2", L:"pipish", U:"stairs3", R:"cor7", img:"base1.jpg", snd_array:["calp_whisp", 70, 0]};
stairs3 = {nam:"stairs3", D:"base1", U:"fency", img:"stairs3.jpg", hint_layer:"alch1", hint_kind:"slide_back_elm", visual:"alch_1", snd_array:["calp_whisp", 40, 0, "calp_m", 0, 0]};
fency = {nam:"fency", D:"stairs3", U:"powery", img:"fency.jpg", pass:"26587c0f103da0beeb4691069db4ca74", pass_sync:12, gate:"U", hint_layer:"alch", hint_kind:"slide_back_elm", snd_array:["calp_whisp", 0, 0, "calp_m", 40, 0]};
powery = {nam:"powery", D:"fency", img:"powery.jpg", pass:"84c98c332bada1e2a7e97fdd01449475", pass_sync:9, guess:["e155e1bb4a9c38e3baf90637ab7865df", ["\n\n\n\n\n\nCorrect... not"], "slide_back_llama"], snd_array:["calp_m", 70, 0]};
cor7 = {nam:"cor7", D:"base1", U:"weirdy", img:"cor7.jpg", tut:"sync", snd_array:["calp_whisp", 40, 0, "calp_eclip", 0, 0]};
weirdy = {nam:"weirdy", D:"cor7", U:"stairs4", img:"weirdy.jpg", sync_need:99, snd_array:["calp_whisp", 0, 0, "calp_eclip", 35, 0]};
stairs4 = {nam:"stairs-shi", D:"weirdy", U:"cor8", img:"stairs4.jpg", snd_array:["calp_eclip", 50, 0]};
cor8 = {nam:"cor8", D:"stairs4", U:"cor8", R:"trashy", img:"cor8.jpg", recursive:true, snd_array:["calp_eclip", 60, 0]};
trashy = {nam:"Vergy & Stinky", D:"cor8", U:"cor9", img:"trashy.jpg", snd_array:["calp_eclip", 70, 0]};
cor9 = {nam:"cor9", D:"cor8", U:"bossy", img:"cor9.jpg", kill_loop:{loc_with_loop:"cor8", dir:"U", loc:"cor9"}, snd_array:["calp_eclip", 75, 0, "calp_suspe", 0, 0]};
bossy = {nam:"ZOMG, bOSS!", D:"cor9", img:"bossy_eye.jpg", talk:"boss", snd_array:["calp_eclip", 0, 0, "calp_suspe", 70, 0]};
pipish = {nam:"pipish", D:"base1", R:"pipy", img:"pipish.jpg", snd_array:["calp_whisp", 60, 0]};
pipy = {nam:"pipy", L:"pipish", D:"base1", img:"pipy.jpg", hint:"cl2", hint_kind:"slide_back_cl", snd_array:["calp_whisp", 50, 0]};
cor1 = {nam:"cor1", D:"ent2", U:"winder", img:"cor1.jpg", hint:"6", hint_kind:"slide_back_alpha", pass:"a0ec3b461abf4bc16ad615481260140e", pass_sync:11, gate:"U", guess:["ce6985f6a07659d99d198c7c2a49a647", ["Almost correct. But those are just symbols. Instead, could you tell me what do they say?"], "slide_back_alpha", "ed74d750fccad4c20157d041fe8c3f57", ["Almost correct. But those are just symbols. Instead, could you tell me what do they say?"], "slide_back_alpha"], snd_array:["calp_whisp", 70, 0]};
winder = {nam:"winder", D:"cor1", R:"cor2", L:"cor3", img:"winder.jpg", hint_layer:"alch4", hint_kind:"slide_back_elm", visual:"alch_4", snd_array:["calp_whisp", 40, 0, "calp_search", 0, 0, "calp_lurki", 0, 0]};
cor2 = {nam:"cor2", D:"winder", U:"atable", R:"space", img:"cor2.jpg", remover:"screen_box.img_mc.loc_layers.board", snd_array:["calp_whisp", 20, 0, "calp_search", 40, 0]};
atable = {nam:"atable", D:"cor2", R:"stairs2", img:"atable.jpg", hint:"cl3", hint_kind:"slide_back_cl", snd_array:["calp_whisp", 0, 0, "calp_search", 50, 0]};
stairs2 = {nam:"stairs2", D:"atable", U:"stairsmoar", img:"stairs2.jpg", snd_array:["calp_search", 65, 0]};
stairsmoar = {nam:"stairsmoar", R:"stairs2", L:"cor5", img:"stairsmoar.jpg", visual:"card_1", snd_array:["calp_search", 75, 0]};
cor5 = {nam:"cor5", D:"stairsmoar", U:"wally2", img:"cor5.jpg", hint:"cardhint", hint_kind:"slide_back_card", visual:"card_2", snd_array:["calp_search", 85, 0]};
wally2 = {nam:"wally2", D:"cor5", L:"terror", img:"wally2_eye.jpg", img2:"wally2.jpg", snd_array:["calp_search", 100, 0]};
cor3 = {nam:"cor3", D:"winder", U:"stairs1", img:"cor3.jpg", snd_array:["calp_whisp", 20, 0, "calp_lurki", 30, 0]};
stairs1 = {nam:"stairs1", D:"cor3", U:"cor4", R:"cor6", img:"stairs1.jpg", hint:"cl4", hint_kind:"slide_back_cl", snd_array:["calp_whisp", 0, 0, "calp_lurki", 40, 0, "calp_one", 0, 0]};
cor4 = {nam:"cor4", D:"stairs1", U:"tehroomz0", img:"cor4.jpg", snd_array:["calp_lurki", 50, 0]};
tehroomz0 = {nam:"zomg, itz teh roomz!0", D:"cor4", U:"chairy", R:"tehroomz1", img:"tehroomzA.jpg", hint:"8", hint_kind:"slide_back_bin", pass:"a05229a9ced1049b9492641a0402408e", gate:"U", snd_array:["calp_lurki", 70, 0]};
tehroomz1 = {nam:"zomg, itz teh roomz!1", D:"cor4", R:"tehroomz2", img:"tehroomzB.jpg", hint:"trB", hint_kind:"slide_back_bin", guess:["a3110069c6dbe4359871efd729078fb3", ["Incorrect. Following further reading recommended:\n.\n..\n...\n....\n_\n._ = _."], "slide_back_bin", "14f825cc406b90da02a9aa97fdf9e134", ["Incorrect. Following further reading recommended:\n.\n..\n...\n....\n_\n._ = _."], "slide_back_bin", "ef0563338b54603d862cbbbda932a2be", ["Section A clear."], "slide_back_bin"], snd_array:["calp_lurki", 70, 0]};
tehroomz2 = {nam:"zomg, itz teh roomz!2", D:"cor4", R:"tehroomz3", img:"tehroomzC.jpg", hint:"trC", hint_kind:"slide_back_bin", guess:["cafc7170ed01c2f5c972cac7cde6e932", ["Incorrect. Taking notice of the matters of SIZE recommended."], "slide_back_bin", "73880d50f277014ad268f36aaef528f3", ["Section B clear."], "slide_back_bin"], snd_array:["calp_lurki", 70, 0]};
tehroomz3 = {nam:"zomg, itz teh roomz!2", D:"cor4", R:"tehroomz0", img:"tehroomzD.jpg", hint:"trD", hint_kind:"slide_back_bin", guess:["9d7183f16acce70658f686ae7f1a4d20", ["Incorrect. Looking around sometimes recommended."], "slide_back_bin", "cf9ea04563c7e1e06c55e3b4438a47c5", ["Section C clear."], "slide_back_bin"], snd_array:["calp_lurki", 70, 0]};
chairy = {nam:"chairy", D:"tehroomz0", img:"chairy.jpg", sync_gain:6, snd_array:["calp_lurki", 60, 0]};
cor6 = {nam:"cor6", D:"stairs1", R:"laddy", U:"soundy", img:"cor6.jpg", snd_array:["calp_lurki", 45, 0, "calp_one", 15, 0]};
laddy = {nam:"laddy", L:"cor6", img:"laddy.jpg", snd_array:["calp_lurki", 35, 0, "calp_one", 0, 0]};
soundy = {nam:"soundy", D:"cor6", U:"ozy", img:"soundy.jpg", snd_array:["calp_one", 25, 0, "calp_lurki", 0, 0]};
ozy = {nam:"ozy", D:"soundy", L:"elevate", img:"ozy.jpg", hint_layer:"cl1", hint_kind:"slide_back_cl", snd_array:["calp_one", 30, 0]};
elevate = {nam:"elevate", R:"ozy", U:undefined, img:"elevate.jpg", manual:"elevators", remote:true, snd_array:["calp_one", 35, 0, "calp_fear", 0, 0]};
elevate2 = {nam:"elevate2", R:"corrr", L:"corridor_or", U:"elevate", img:"elevate2.jpg", snd_array:["calp_one", 0, 0, "calp_fear", 35, 0]};
corrr = {nam:"corrr", U:"monster", D:"elevate2", L:"wallll", img:"corrr.jpg", snd_array:["calp_fear", 50, 0]};
wallll = {nam:"wallll", R:"corrr", img:"wallll.jpg", hint:"win2", hint_kind:"slide_back_rgb", snd_array:["calp_fear", 45, 0]};
monster = {nam:"monster", D:"corrr", L:"toiletish", img:"monster.jpg", snd_array:["calp_one", 0, 0, "calp_fear", 60, 0]};
toiletish = {nam:"toiletish", U:"toiletish", D:"monster", img:"toiletish.jpg", hint:"win3", tut:"recur", hint_kind:"slide_back_rgb", recursive:true, snd_array:["calp_fear", 70, 0, "calp_falle", 0, 0]};
angel = {nam:"angel!", D:"toiletish", L:"windowish", img:"angel.jpg", kill_loop:{loc_with_loop:"toiletish", dir:"U", loc:"angel"}, talk:"seraphim", tut:"talk", snd_array:["calp_fear", 0, 0, "calp_falle", 70, 0]};
corridor_or = {nam:"corridor_or", D:"elevate2", U:"wtf", img:"corridor_or.jpg", snd_array:["calp_fear", 50, 0]};
wtf = {nam:"wtf", D:"corridor_or", U:"corridor_or2", img:"wtf.jpg", snd_array:["calp_fear", 60, 0]};
corridor_or2 = {nam:"corridor_or2", D:"wtf", U:"windowish", R:"windowish2", img:"corridor_or2a.jpg", snd_array:["calp_fear", 90, 0]};
windowish = {nam:"windowish", D:"corridor_or2", R:undefined, img:"windowish.jpg", manual:"windows", remote:true, snd_array:["calp_fear", 70, 0, "calp_falle", 0, 0]};
windowish2 = {nam:"windowish2", D:"corridor_or2", img:"windowish2.jpg", hint:"win1", hint_kind:"slide_back_rgb", snd_array:["calp_fear", 60, 0]};
space = {nam:"space", L:"cor2", img:"key.jpg", manual:"dot", hint:"dot", hint_kind:"slide_back_dot", no_zoom:true, snd_array:["calp_whisp", 0, 0, "calp_search", 40, 0]};
terror = {nam:"terror", R:"wally2", L:"tehdoor", img:"terror.jpg", visual:"card_3", snd_array:["calp_search", 90, 0]};
tehdoor = {nam:"tehdoor", R:"terror", U:"moarschody", img:"tehdoor.jpg", visual:"card_4", hint_layer:"cards", hint_kind:"slide_back_card", pass:"c8e45c7034c0c94ba23ef85fc0bb11e6", pass_sync:13, gate:"U", guess:["4c63008d08e93f5a53fd02196488fca5", ["\n\n\n\nCorrect... not.\n\nA True Heart is BIGGER than any diamond\nAnd a good Spade is far GREATER than any Club..."], "slide_back_card"], snd_array:["calp_search", 75, 0]};
moarschody = {nam:"moarschody", U:"moarschody2", D:"tehdoor", img:"new-stairs.jpg", snd_array:["calp_search", 50, 0, "calp_full2", 0, 0]};
moarschody2 = {nam:"moarschody2", U:"moarschody3", D:"moarschody", img:"new-stairs2.jpg", snd_array:["calp_search", 35, 0, "calp_full2", 25, 0]};
moarschody3 = {nam:"moarschody3", U:"hex", D:"moarschody2", img:"new-stairs3.jpg", snd_array:["calp_search", 0, 0, "calp_full2", 45, 0]};
hex = {nam:"hex", D:"moarschody3", R:"balkon", U:undefined, img:"hex.jpg", f_guess:["ab0758ec468c13a77ac7bc337fa85c99", "f_startHexRiddle", "73998fb1b11ac380c307a38b28c0accf", "f_finishHexRiddle"], guess:["cdd05adbe4bc1e176880949b679779cf", ["\n\n\n\n\n\nAlmost..."], "slide_back_hex"], visual:"ruszt", snd_array:["calp_full2", 55, 0, "calp_thru", 0, 0]};
hex_trap = {nam:"hex_trap", D:"hex_trap", R:"hex_trap", L:"hex_trap", U:"hex_trap", img:"hex.jpg", hint:"9", hint_kind:"slide_back_hex", guess:["51ba929e9f17d67393d9acc81a5ec02a", hint_text_db.hint_txt_9a, "slide_back_hex"], snd_array:["calp_full2", 65, 0]};
balkon = {nam:"balkon", L:"hex", img:"balkonish.jpg", snd_array:["calp_full2", 50, 0]};
facish = {nam:"facish", D:"hex", R:"newwin", L:"whaa", img:"face.jpg", talk:"thanatos", tut:"talk", snd_array:["calp_full2", 0, 0, "calp_thru", 70, 0]};
newwin = {nam:"newwin", D:"facish", img:"new-wind.jpg", snd_array:["calp_thru", 55, 0]};
whaa = {nam:"whaa", D:"facish", img:"whaa.jpg", hint_layer:"alch3", hint_kind:"slide_back_elm", visual:"alch_3", snd_array:["calp_thru", 55, 0]};
mindfuck1 = {nam:"whaa", D:"mindfuck2", img:"bossy_eye.jpg", snd_array:["calp_under", 45, 0, "calp_suspe", 0, 0]};
mindfuck2 = {nam:"whaa", D:"mindfuck3", img:"cor9.jpg", snd_array:["calp_under", 50, 0]};
mindfuck3 = {nam:"whaa", D:"mindfuck4", img:"cor8.jpg", snd_array:["calp_under", 55, 0]};
mindfuck4 = {nam:"whaa", D:"mindfuck5", img:"stairs4.jpg", snd_array:["calp_under", 60, 0]};
mindfuck5 = {nam:"whaa", D:"mindfuck6", img:"weirdy.jpg", snd_array:["calp_under", 65, 0]};
mindfuck6 = {nam:"whaa", D:"mindfuck7", img:"cor7.jpg", snd_array:["calp_under", 70, 0]};
mindfuck7 = {nam:"whaa", D:"mindfuck8", img:"base1.jpg", snd_array:["calp_under", 75, 0]};
mindfuck8 = {nam:"whaa", D:"mindfuck9", img:"ent2.jpg", snd_array:["calp_under", 80, 0]};
mindfuck9 = {nam:"whaa", D:"mindfuck10", img:"enter1.jpg", snd_array:["calp_under", 85, 0]};
mindfuck10 = {nam:"whaa", D:"mindfuck11", img:"enter.jpg", snd_array:["calp_under", 90, 0]};
mindfuck11 = {nam:"whaa", D:"mindfuck12", img:"out3.jpg", snd_array:["calp_under", 95, 0]};
mindfuck12 = {nam:"whaa", D:"mindfuck13", img:"out1.jpg", snd_array:["calp_under", 100, 0]};
mindfuck13 = {nam:"whaa", img:"tobegin_eye.jpg", auto_f:"f_beginDarkness", snd_array:["calp_under", 0, 0]};
if (SO.data.PLAYER) {
loadChanges();
}
if (counter > 0) {
delete onEnterFrame;
USER.nick = "Avatar_RC";
if (SO.data.actual_loc) {
actual_loc = SO.data.actual_loc;
addLine("> welcome back, " + USER.nick);
} else {
actual_loc = "game_start";
addLine("> welcome, " + USER.nick);
}
USER.move_array.push(actual_loc);
_root.AL = eval (actual_loc);
_root.screen_box.loadLoc(_root.AL);
_root.arrows_box.refreshArrows();
SO = undefined;
}
counter++;
};
}
function updateLoadingPercentage(perc) {
_root.shi_protocol.perc_txt.text = perc + "%";
if (perc == 100) {
_root.shi_protocol.gotoAndPlay("wait");
_root.shi_protocol.perc_txt._visible = false;
}
}
function updateLoadingDetails(txt) {
_root.shi_protocol.details_txt.text = txt;
}
function hideBoxes() {
arrows_box._alpha = box_shader;
answer_box._alpha = box_shader;
screen_box._alpha = 100;
message_box._alpha = box_shader;
}
function block(bool) {
_root.block_is_ON = bool;
arrows_block._visible = bool;
answer_box.txt._visible = !bool;
if (bool) {
hideBoxes();
}
}
function checkInput() {
if (answer_box.txt.text != "") {
var abt = answer_box.txt.text;
if ((_root.AL.guess && (!battleInProgress)) && (!_root.menuIsActive)) {
var i = 0;
while (i < _root.AL.guess.length) {
if (_root.AL.guess[i] == _root.md5_mc.calcMD5(abt)) {
showSlideWithText(_root.AL.guess[i + 1], _root.AL.guess[i + 2]);
var it_was_a_guess = true;
answer_box.txt.text = "";
break;
}
i = i + 3;
}
}
if ((_root.AL.f_guess && (!battleInProgress)) && (!_root.menuIsActive)) {
var i = 0;
while (i < _root.AL.f_guess.length) {
if (_root.AL.f_guess[i] == _root.md5_mc.calcMD5(abt)) {
_root[_root.AL.f_guess[i + 1]]();
var it_was_a_guess = true;
answer_box.txt.text = "";
break;
}
i = i + 2;
}
}
if (!it_was_a_guess) {
if (((abt == "talk") || (abt == "t")) && (_root.AL.talk != undefined)) {
dialog_box.dialog_txt.text = "";
dialog_box.gotoAndPlay(1);
dialog_box._visible = true;
arrows_block._visible = true;
answer_box.txt._visible = false;
hideBoxes();
eval ("_root.talk_text_db.loadText_" + _root.AL.talk)();
answer_box.txt.text = "";
} else if ((((abt == "menu") || (abt == "m")) && (!_root.menuIsMoving)) && (!_root.battleInProgress)) {
showGameMenu();
answer_box.txt.text = "";
} else if ((((abt == "help") || (abt == "h")) && (!_root.menuIsMoving)) && (!_root.battleInProgress)) {
showSlideWithText(tut_text_db.tut_text_help.txt, "slide_back");
answer_box.txt.text = "";
} else if ((((abt == "reset") || (abt == "r")) && (!_root.menuIsMoving)) && (!_root.battleInProgress)) {
if (screen_box.img_mc.loc_layers.board) {
screen_box.img_mc.loc_layers.resetBoard();
answer_box.txt.text = "";
}
} else if (abt == "test") {
trace(PLAYER.modes);
answer_box.txt.text = "";
} else if (((((abt == "data") || (abt == "d")) && (!battleInProgress)) && (_root.AL.hint || _root.AL.hint_layer)) && (!_root.menuIsActive)) {
var ht = eval ("_root.hint_text_db.hint_txt_" + _root.AL.hint);
trace(_root.AL.hint_layer);
if (ht) {
showSlideWithText(ht, _root.AL.hint_kind, _root.AL.tut_layers);
} else if (_root.AL.hint_layer) {
showSlideWithLayer(_root.AL.hint_layer, _root.AL.hint_kind);
}
answer_box.txt.text = "";
} else if ((abt == "error") && (!battleInProgress)) {
message_box.makeError();
answer_box.txt.text = "";
} else if (((((abt == "unlock") || (abt == "u")) && (_root.AL.vph == "0")) && (!battleInProgress)) && (!_root.menuIsActive)) {
_root.screen_box.mm.newGame();
_root.screen_box.mm._visible = true;
_root.block(true);
_root.screen_box._alpha = 100;
answer_box.txt.text = "";
} else if (((((abt == "open") || (abt == "o")) && (_root.AL.vph == "1")) && (!battleInProgress)) && (!_root.menuIsActive)) {
_root.screen_box.ntask.name_txt.text = _root.AL.vname + ": phase2";
_root.screen_box.ntask._visible = true;
_root.block(true);
_root.screen_box._alpha = 100;
answer_box.txt.text = "";
} else if (((((abt == "inflect") || (abt == "i")) && ((_root.AL.vph == "0") || (_root.AL.vph == "2"))) && (!battleInProgress)) && (!_root.menuIsActive)) {
_root.verge_list.loadList();
_root.verge_list._visible = true;
_root.block(true);
_root.global_fader.gotoAndPlay("in");
answer_box.txt.text = "";
} else if (((abt == "report") && (!battleInProgress)) && (!_root.menuIsActive)) {
_root.main_menu.report_win._visible = true;
_root.global_fader.gotoAndPlay("in");
_root.block(true);
answer_box.txt.text = "";
} else if (((abt == "cmd") && (!battleInProgress)) && (!_root.menuIsActive)) {
_root.addLine("> (a)ssault, (d)ata, (i)nflect, (m)enu, (o)pen, (t)alk, (u)nlock");
answer_box.txt.text = "";
} else if (((abt == "afrocmd") && (!battleInProgress)) && (!_root.menuIsActive)) {
_root.addLine("> (erase) - erases game save, (giefsrc) - source++, (wru) - shows your current location, (qsave) - quick save");
answer_box.txt.text = "";
} else if (((abt == "wru") && (!battleInProgress)) && (!_root.menuIsActive)) {
_root.addLine("> current location: " + _root.AL.nam);
answer_box.txt.text = "";
} else if (((abt == "erase slot") && (!battleInProgress)) && (!_root.menuIsActive)) {
_root.eraseGame();
answer_box.txt.text = "";
} else if (((abt == "eraseall") && (!battleInProgress)) && (!_root.menuIsActive)) {
_root.eraseAll();
answer_box.txt.text = "";
} else if (((abt == "mute") && (!battleInProgress)) && (!_root.menuIsActive)) {
if (_root.isMuted) {
_root.isMuted = false;
} else {
_root.isMuted = true;
var s = 0;
while (s < _root.shi_sounds.length) {
_root["snd_" + _root.shi_sounds[s]].setVolume(0);
s++;
}
}
answer_box.txt.text = "";
} else if (((abt == "capop") && (!battleInProgress)) && (!_root.menuIsActive)) {
_root.changes_array.pop();
trace("changes_array: " + changes_array);
answer_box.txt.text = "";
} else if (((abt == "omgboss") && (!battleInProgress)) && (!_root.menuIsActive)) {
_root.arrows_box.teleport("bossy");
answer_box.txt.text = "";
} else if (((abt == "giefmessnao") && (!battleInProgress)) && (!_root.menuIsActive)) {
_root.f_theLastMess();
answer_box.txt.text = "";
} else if (((abt == "finishhim") && (!battleInProgress)) && (!_root.menuIsActive)) {
_root.gotoAndStop("end");
answer_box.txt.text = "";
} else if (((_root.AL.pass && (!_root.AL.pass_guessed)) && (!battleInProgress)) && (!_root.menuIsActive)) {
if (_root.AL.pass == _root.md5_mc.calcMD5(abt)) {
_root.AL.pass = undefined;
_root.AL.pass_guessed = true;
_root.arrows_box.refreshArrows();
_root.arrows_box.makeFlash();
if (_root.AL.pass_sync) {
_root.increaseSync(_root.AL.pass_sync);
}
_root.playSound("open");
_root.addLine("> access granted");
_root.saveChanges(_root.actual_loc + ".pass", undefined);
_root.saveChanges(_root.actual_loc + ".pass_guessed", true);
} else if (abt != "") {
_root.addLine(("> access denied (" + abt) + ")");
_root.playSound("psswrd");
}
answer_box.txt.text = "";
}
}
}
}
function addLine(txt) {
var _local1 = message_box.txt.text;
message_box.txt.text = (txt + newline) + _local1;
message_box.txt.scroll = 1;
message_box.refreshScroll();
}
function showSlideWithText(txt_array, img_name) {
tutorial_screen._visible = true;
tutorial_screen.text_to_load = txt_array;
tutorial_screen.loadText(0);
tutorial_screen.img_mc.loadImage(img_name + ".jpg");
block(true);
}
function showSlideWithLayer(tut_layer, img_name) {
tutorial_screen._visible = true;
tutorial_screen.img_mc.loadImage(img_name + ".jpg");
tutorial_screen.tut_layers.gotoAndStop(tut_layer);
tutorial_screen.txt.text = "";
tutorial_screen.play();
tutorial_screen.prev_arrow._visible = false;
tutorial_screen.next_arrow._visible = false;
block(true);
}
function showGameMenu() {
if (menuIsActive) {
main_menu.moveMenu(0, 1, main_menu.btns_array);
} else {
if (!tut_text_db.tut_text_menu.seen) {
showSlideWithText(tut_text_db.tut_text_menu.txt, "slide_back");
tut_text_db.tut_text_menu.seen = true;
saveChanges("tut_text_db.tut_text_menu.seen", true);
}
arrows_block._visible = true;
answer_box.txt._visible = false;
global_fader.gotoAndPlay("in");
hideBoxes();
main_menu.moveMenu(-170, 1, main_menu.btns_array);
screen_box.menu_fader.gotoAndPlay("off");
}
menuIsActive = true;
}
function increaseSync(ile) {
PLAYER.sync = PLAYER.sync + ile;
addLine(("> synchronization increased to " + PLAYER.sync) + "%");
playSound("open");
}
function saveChanges(str, obj) {
var _local1 = 0;
while (_local1 < changes_array.length) {
if (changes_array[_local1] == str) {
trace("replace");
changes_array[_local1 + 1] = obj;
var _local2 = true;
break;
}
_local1 = _local1 + 2;
}
if (!_local2) {
trace("new");
changes_array.push(str);
changes_array.push(obj);
}
}
function loadChanges() {
trace("changes_array: " + changes_array);
var _local1 = 0;
while (_local1 < changes_array.length) {
Set(changes_array[_local1], changes_array[_local1 + 1]);
_local1 = _local1 + 2;
}
}
function saveGame(slot) {
var _local2 = SharedObject.getLocal("shi_save" + slot, "/");
_local2.data.actual_loc = actual_loc;
_local2.data.PLAYER = PLAYER;
_local2.data.changes_array = changes_array;
_local2.data.VERGES = VERGES;
trace(_local2.data.MODES);
_local2.data.shi_notes = shi_notes;
var _local3 = new Date();
var _local5 = (((((((addZero(_local3.getDate()) + "/") + addZero(_local3.getMonth() + 1)) + "/") + _local3.getFullYear()) + " ") + addZero(_local3.getHours())) + ":") + addZero(_local3.getMinutes());
_local2.data.save_time = _local5;
_root.CSL = slot;
addLine("> game saved on slot " + slot);
}
function addZero(num) {
if (num < 10) {
return(String("0" + num));
}
return(String(num));
}
function eraseGame() {
var _local2 = SharedObject.getLocal("shi_save" + _root.CSL, "/");
_local2.clear();
addLine("> game erased");
}
function eraseAll() {
var _local1 = 1;
while (_local1 <= 4) {
var _local2 = SharedObject.getLocal("shi_save" + _local1, "/");
_local2.clear();
_local1++;
}
addLine("> game fully erased");
}
function f_startHexRiddle() {
trace("hex riddle");
arrows_box.teleport("hex_trap");
_root.hex_dirs = new Array();
addLine("> journey begins... tread carefully");
}
function f_checkDirs() {
var _local2 = _root.hex_dirs;
if ((((((((_local2[0] == "L") && (_local2[1] == "U")) && (_local2[2] == "R")) && (_local2[3] == "D")) && (_local2[4] == "L")) && (_local2[5] == "U")) && (_local2[6] == "R")) && (_local2[7] == "D")) {
hex.manual = "ruszt_puzzle";
hex.visual = undefined;
hex.no_zoom = true;
saveChanges("hex.manual", hex.manual);
saveChanges("hex.visual", hex.visual);
saveChanges("hex.no_zoom", hex.no_zoom);
arrows_box.teleport("hex");
addLine("> journey complete... the land is reborn, you may proceed");
} else if (_local2.length > 7) {
_root.hex_dirs = new Array();
arrows_box.teleport("hex");
addLine("> journey complete... you brought no change to the land");
}
}
function f_finishHexRiddle() {
hex.U = "facish";
hex.manual = undefined;
hex.f_guess = undefined;
arrows_box.refreshArrows();
arrows_box.teleport("hex");
saveChanges("hex.U", hex.U);
saveChanges("hex.manual", undefined);
saveChanges("hex.f_guess", undefined);
playSound("open");
}
function f_clearHexDirs() {
_root.hex_dirs = new Array();
addLine("> mess cleaned up");
}
function f_finishWindowsRiddle() {
windowish.R = "angel";
windowish.manual = undefined;
windowish.remote = undefined;
windowish.img = "windowish_done.jpg";
arrows_box.refreshArrows();
arrows_box.teleport("windowish");
saveChanges("windowish.R", windowish.R);
saveChanges("windowish.manual", undefined);
saveChanges("windowish.remote", undefined);
saveChanges("windowish.img", windowish.img);
playSound("open");
}
function f_elevatorsDone() {
elevate.U = "elevate2";
elevate.manual = undefined;
elevate.remote = undefined;
arrows_box.refreshArrows();
arrows_box.teleport("elevate");
saveChanges("elevate.U", elevate.U);
saveChanges("elevate.manual", undefined);
saveChanges("elevate.remote", undefined);
increaseSync(12);
}
function f_thanatosTalkEnd() {
increaseSync(15);
facish.talk = "thanatos2";
saveChanges("facish.talk", facish.talk);
}
function f_seraphimTalkEnd() {
increaseSync(10);
angel.talk = "seraphim2";
saveChanges("angel.talk", angel.talk);
}
function f_finishDotRiddle() {
removeMovieClip(screen_box.img_mc.loc_layers.board);
space.manual = undefined;
space.img = "openkey.jpg";
cor2.remover = undefined;
arrows_box.refreshArrows();
arrows_box.teleport("space");
saveChanges("space.manual", undefined);
saveChanges("space.img", space.img);
saveChanges("cor2.remover", undefined);
increaseSync(4);
}
function f_theLastMess() {
increaseSync(1);
screen_box.img_mc.shake();
answer_box.shake();
arrows_box.shake();
message_box.shake();
message_box.txt.text = "";
message_box.startMess();
screen_box.img_mc.addBlur(5, 5);
arrows_box.teleport("mindfuck1");
}
function f_beginDarkness() {
trace("begin darkness");
menuIsActive = true;
answer_box.txt._visible = false;
screen_box.end_game_anim.play();
delete answer_box.onEnterFrame;
delete arrows_box.onEnterFrame;
delete message_box.onEnterFrame;
delete screen_box.img_mc.onEnterFrame;
removeMovieClip(message_box.messer);
screen_box.img_mc.addBlur(0, 0);
message_box.txt.text = "> assimilation complete";
}
function f_eternalDarkness() {
trace("eternal darkness");
screen_box.img_mc._x = 9999;
createEmptyMovieClip("enderer", this);
enderer.cntr = 0;
enderer.onEnterFrame = function () {
this.cntr++;
if ((this.cntr > 0) && (!this.phase1)) {
screen_box._alpha = screen_box._alpha - 5;
}
if ((this.cntr > 24) && (!this.phase1)) {
arrows_box._alpha = arrows_box._alpha - 5;
}
if ((this.cntr > 48) && (!this.phase1)) {
answer_box._alpha = answer_box._alpha - 5;
}
if ((this.cntr > 72) && (!this.phase1)) {
message_box._alpha = message_box._alpha - 5;
}
if (this.cntr > 120) {
delete this.onEnterFrame;
_root.gotoAndStop("end");
}
};
}
stop();
var SO = SharedObject.getLocal("shi_save" + _root.CSL, "/");
blood_screen._alpha = 0;
_global.PLAYER = (SO.data.PLAYER ? ({sync:SO.data.PLAYER.sync}) : ({sync:0}));
_global.USER = {};
changes_array = (SO.data.changes_array ? (SO.data.changes_array) : ([]));
USER.move_array = new Array();
shi_sounds = new Array();
shi_notes = (SO.data.shi_notes ? (SO.data.shi_notes) : ([]));
box_shader = 85;
tutorial_screen._visible = false;
dialog_box._visible = false;
arrows_block._visible = false;
arrows_block.tabEnabled = false;
arrows_box.lit._visible = false;
var v1 = {nam:"Basic", dir:"game_start"};
_global.VERGES = (SO.data.PLAYER ? (SO.data.VERGES) : ([v1]));
prepareLocations();
onMouseMove = function () {
cursor._x = _xmouse;
cursor._y = _ymouse;
if ((((((!dialog_box._visible) && (!menuIsActive)) && (!tutorial_screen._visible)) && (!main_menu.report_win._visible)) && (!_root.block_is_ON)) && (_root.canBreathe)) {
if (!battleInProgress) {
arrows_box._alpha = (arrows_box.hitTest(_xmouse, _ymouse, true) ? 100 : (box_shader));
screen_box.activer._alpha = (screen_box.hitTest(_xmouse, _ymouse, true) ? 0 : (100 - box_shader));
}
answer_box._alpha = (answer_box.hitTest(_xmouse, _ymouse, true) ? 100 : (box_shader));
message_box._alpha = (message_box.hitTest(_xmouse, _ymouse, true) ? 100 : (box_shader));
}
if (main_menu.mode_win.mode_info != undefined) {
main_menu.mode_win.mode_info._alpha = (main_menu.mode_win.mode_info.hitTest(_xmouse, _ymouse, true) ? 100 : (box_shader));
}
if (mouseIsDown && (!_root.isDraging)) {
rect_box._x = rect_box.xowa;
rect_box._y = rect_box.yowa;
if ((!imgIsZoomed) && (screenBoxHit)) {
cursor.gotoAndStop("box");
}
if (screenBoxHit) {
if (_xmouse > rect_box.xowa) {
rect_box._width = _xmouse - rect_box.xowa;
rect_box._height = 0.62 * rect_box._width;
}
if (_ymouse > rect_box.yowa) {
rect_box._width = _xmouse - rect_box.xowa;
rect_box._height = 0.62 * rect_box._width;
}
if (((rect_box._width > 200) && ((rect_box.xowa + rect_box._width) <= 590)) && ((rect_box.yowa + rect_box._height) <= 370)) {
if (rect_box.cl != "green") {
rect_box.gotoAndStop("green");
rect_box.cl = "green";
}
} else if (rect_box.cl != "red") {
rect_box.gotoAndStop("red");
rect_box.cl = "red";
}
}
}
updateAfterEvent();
};
onMouseMove();
Mouse.hide();
onMouseDown = function () {
if (((((((screen_box.hitTest(_xmouse, _ymouse, true) && (!imgIsZoomed)) && (!battleInProgress)) && (!menuIsActive)) && (!dialog_box._visible)) && (!tutorial_screen._visible)) && (!_root.AL.no_zoom)) && (!_root.block_is_ON)) {
rect_box._width = 0;
rect_box._height = 0;
rect_box._visible = true;
rect_box._x = _xmouse;
rect_box._y = _ymouse;
rect_box.xowa = _xmouse;
rect_box.yowa = _ymouse;
screenBoxHit = true;
}
mouseIsDown = true;
};
onMouseUp = function () {
if (((((mouseIsDown && (!menuIsActive)) && (!battleInProgress)) && (!dialog_box._visible)) && (!tutorial_screen._visible)) && (!_root.AL.no_zoom)) {
tween_time = 0.25;
if (cursor._currentframe == 25) {
cursor.gotoAndStop("normal");
}
if (((!imgIsZoomed) && (rect_box._width > 0)) && (rect_box.cl == "green")) {
xSave = screen_box.img_mc._x - (((rect_box.xowa - 10) / 580) * (580 / (rect_box._width / 580)));
ySave = screen_box.img_mc._y - (((rect_box.yowa - 10) / 360) * (360 / (rect_box._height / 360)));
screen_box.img_mc.Tweenuj("_width", screen_box.img_mc._width, 580 / (rect_box._width / 580), tween_time);
screen_box.img_mc.Tweenuj("_height", screen_box.img_mc._height, 360 / (rect_box._height / 360), tween_time);
screen_box.img_mc.Tweenuj("_x", screen_box.img_mc._x, xSave, tween_time);
screen_box.img_mc.Tweenuj("_y", screen_box.img_mc._y, ySave, tween_time);
_root.screen_box.img_mc.saveX = xSave;
_root.screen_box.img_mc.saveY = ySave;
_root.playSound("zoom_in");
cursor.gotoAndStop("zoom_out");
block(true);
imgIsZoomed = true;
zoomJustMade = true;
} else if (zoomJustMade) {
screen_box.img_mc.Tweenuj("_width", screen_box.img_mc._width, 580, tween_time);
screen_box.img_mc.Tweenuj("_height", screen_box.img_mc._height, 360, tween_time);
screen_box.img_mc.Tweenuj("_x", screen_box.img_mc._x, 0, tween_time);
screen_box.img_mc.Tweenuj("_y", screen_box.img_mc._y, 0, tween_time);
_root.screen_box.img_mc.saveX = 0;
_root.screen_box.img_mc.saveY = 0;
_root.playSound("zoom_out");
rect_box._width = 0;
imgIsZoomed = false;
zoomJustMade = false;
cursor.gotoAndStop("normal");
block(false);
}
rect_box._visible = false;
mouseIsDown = false;
screenBoxHit = false;
}
};
MovieClip.prototype.actAsButton = function () {
this.onRollOver = function () {
this.save_txt = this.txt.text;
this.gotoAndStop("over");
this.txt.text = this.save_txt;
};
this.onRollOut = function () {
this.save_txt = this.txt.text;
this.gotoAndStop("out");
this.txt.text = this.save_txt;
};
this.onReleaseOutside = this.onRollOut;
this.tabEnabled = false;
};
MovieClip.prototype.zamazuj = function (X, Y, A, W, H) {
this.baseX = this._x;
this.baseY = this._y;
this.baseW = this._width;
this.baseH = this._height;
this.onRollOver = function () {
if (((!_root.dialog_box._visible) && (!_root.menuIsActive)) && (!_root.battleInProgress)) {
this.counter = 0;
this.onEnterFrame = function () {
if (this.counter == 2) {
this._x = (this.baseX + random(X)) - (X / 2);
this._y = (this.baseY + random(Y)) - (Y / 2);
this._alpha = ((100 - A) + random(A)) + 1;
this._width = (this.baseW + random(W)) - (W / 2);
this._height = (this.baseH + random(H)) - (H / 2);
this.counter = 0;
}
this.counter++;
};
}
};
this.onRollOut = function () {
this._alpha = 100;
this._width = this.baseW;
this._height = this.baseH;
delete this.onEnterFrame;
};
};
napis_types = ["/nt@g i#y lo$ .,.", "i*t g@ity )o ?...", "in^# r <y lo>t.*.", "i% e@+ity [o t.,,", "m@d p#ant()m...", "unst@b[e sour<e..,"];
MovieClip.prototype.shake = function (asd) {
this.baseX = this._x;
this.baseY = this._y;
this.counter = 0;
this.onEnterFrame = function () {
this._x = (this.baseX + random(5)) - 2;
this._y = (this.baseY + random(5)) - 2;
this._alpha = 61 + random(40);
if (asd) {
if ((random(100) + 1) >= 95) {
this.txt.text = _root.napis_types[random(_root.napis_types.length)];
this.counter = 6;
}
if (this.counter > 0) {
this.counter--;
if (this.counter == 0) {
this.txt.text = "integrity lost...";
}
}
}
};
};
MovieClip.prototype.loadImage = function (url, center, fit) {
var _local2 = 0;
while (_local2 < url.length) {
if (url.charAt(_local2) == ".") {
var _local4 = url.substr(0, _local2);
break;
}
_local2++;
}
this.gotoAndStop(_local4);
};
MovieClip.prototype.addBlur = function (bX, bY) {
var _local3 = new flash.filters.BlurFilter(bX, bY, 3);
var _local2 = this.filters;
_local2.pop();
_local2.push(_local3);
this.filters = _local2;
};
MovieClip.prototype.Tweenuj = function (type, begin, end, time) {
this.tween = new mx.transitions.Tween(this, type, mx.transitions.easing.Regular.easeInOut, begin, end, time, true);
};
var keyListener = new Object();
keyListener.onKeyDown = function () {
switch (Key.getCode()) {
case 13 :
if (_root.typing) {
_root.interrupt_typing = true;
_root.typing = false;
}
if (dialog_box.continue_info._visible) {
dialog_box.showText(dialog_box.STvar1, dialog_box.STvar2);
dialog_box.dialog_txt.scroll = dialog_box.dialog_txt.maxscroll;
dialog_box.continue_info._visible = false;
} else if (dialog_box.end_info._visible) {
dialog_box.dialog_txt.text = "";
dialog_box.gotoAndPlay("out");
arrows_block._visible = false;
answer_box.txt._visible = true;
dialog_box.end_info._visible = false;
var _local3 = dialog_box;
trace(_local3.changes_arr);
if (_local3.changes_arr) {
var _local2 = 1;
while (_local2 < _local3.changes_arr.length) {
if (_local3.changes_arr[0] == "set") {
Set(_local3.changes_arr[_local2], _local3.changes_arr[_local2 + 1]);
} else if (_local3.changes_arr[0] == "function") {
_root[_local3.changes_arr[_local2]](_local3.changes_arr[_local2 + 1]);
}
_local2 = _local2 + 2;
}
_local3.changes_arr = undefined;
}
}
if (!dialog_box._visible) {
checkInput();
} else {
var _local3 = dialog_box;
if (_local3.dialogListenerON && (_local3.dyn_inp_txt.text != "")) {
if ((_local3.dyn_inp_txt.text == "1") && (!_local3.ST_o1_block)) {
trace("opt 1");
_local3.resetDynInpTxt();
_local3.showText(_local3.option1[0], _local3.option1[1]);
} else if ((_local3.dyn_inp_txt.text == "2") && (!_local3.ST_o2_block)) {
trace("opt 2");
_local3.resetDynInpTxt();
_local3.showText(_local3.option2[0], _local3.option2[1]);
} else if ((_local3.dyn_inp_txt.text == "3") && (!_local3.ST_o3_block)) {
trace("opt 3");
_local3.resetDynInpTxt();
_local3.showText(_local3.option3[0], _local3.option3[1]);
} else if (_local3.dyn_inp_txt.text == "end") {
trace("end");
_local3.play();
_local3.dialog_txt.text = "";
_local3.resetDynInpTxt();
arrows_block._visible = false;
answer_box.txt._visible = true;
}
}
}
break;
case 27 :
Selection.setFocus(null);
break;
case 32 :
if (!_root.tutorial_screen._visible) {
break;
}
_root.block(false);
_root.tutorial_screen.gotoAndPlay("ready");
_root.cursor.gotoAndStop("normal");
}
};
Key.addListener(keyListener);
playSound = function (snd) {
if (!_root.isMuted) {
var sound = new Sound(_root);
sound.attachSound(snd);
sound.start();
sound.onSoundComplete = function () {
delete sound;
};
}
};
Instance of Symbol 298 MovieClip "arrows_block" in Frame 21
on (release) {
}
Frame 22
prevFrame();
Frame 27
function writeText(num, txt, funct, tt) {
var counter = 0;
onEnterFrame = function () {
if (counter < txt.length) {
eval ("dialog_txt" + num).text = eval ("dialog_txt" + num).text + txt.charAt(counter);
playSound("beep");
counter++;
} else {
delete this.onEnterFrame;
if (funct) {
counter = 0;
onEnterFrame = function () {
if (counter >= tt) {
delete this.onEnterFrame;
eval (funct)();
} else {
counter++;
}
};
}
}
};
}
stop();
Mouse.show();
playSound = function (snd) {
if (!_root.isMuted) {
var sound = new Sound(_root);
sound.attachSound(snd);
sound.start();
sound.onSoundComplete = function () {
delete sound;
};
}
};
dialog_txt1.text = "";
dialog_txt2.text = "";
function playPlay() {
this.play();
}
Frame 46
function showURLs() {
forumLink._visible = true;
siteLink._visible = true;
writeText(1, "\nDEM> EOF");
}
stop();
forumLink._visible = false;
siteLink._visible = false;
text_load = "DEM> This is not the end.\nDEM> Further segments of the story are yet to be assembled.\nDEM> Visit here and here for additional data.\n";
dialog_txt1.text = "";
dialog_txt2.text = "";
writeText(1, text_load, "showURLs", 24);
forumLink.onRelease = function () {
getURL ("http://shi4.webd.pl/shi/forum.html", "_blank");
};
siteLink.onRelease = function () {
getURL ("http://shi4.webd.pl/shi/site.html", "_blank");
};
Symbol 37 MovieClip [kropka] Frame 1
stop();
Symbol 43 MovieClip [verge_btn] Frame 1
stop();
Symbol 43 MovieClip [verge_btn] Frame 2
stop();
Symbol 47 MovieClip [white_line] Frame 36
removeMovieClip(this);
Symbol 51 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 1
stop();
Symbol 59 MovieClip Frame 1
stop();
Symbol 63 MovieClip Frame 1
stop();
Symbol 67 MovieClip Frame 1
stop();
Symbol 96 MovieClip Frame 1
stop();
this.correct = true;
Symbol 96 MovieClip Frame 2
stop();
this.correct = false;
Symbol 96 MovieClip Frame 3
stop();
Symbol 96 MovieClip Frame 4
stop();
Symbol 96 MovieClip Frame 5
stop();
Symbol 96 MovieClip Frame 6
stop();
Symbol 96 MovieClip Frame 7
stop();
Symbol 104 MovieClip Frame 1
stop();
this.correct = false;
Symbol 104 MovieClip Frame 2
stop();
Symbol 104 MovieClip Frame 3
stop();
Symbol 104 MovieClip Frame 4
stop();
Symbol 104 MovieClip Frame 5
stop();
Symbol 104 MovieClip Frame 6
stop();
Symbol 104 MovieClip Frame 7
stop();
this.correct = true;
Symbol 106 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 2
stop();
Symbol 106 MovieClip Frame 3
stop();
Symbol 106 MovieClip Frame 4
stop();
Symbol 106 MovieClip Frame 5
stop();
Symbol 106 MovieClip Frame 6
stop();
this.correct = true;
Symbol 106 MovieClip Frame 7
stop();
this.correct = false;
Symbol 114 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 2
stop();
Symbol 114 MovieClip Frame 3
stop();
this.correct = true;
Symbol 114 MovieClip Frame 4
stop();
this.correct = false;
Symbol 114 MovieClip Frame 5
stop();
Symbol 114 MovieClip Frame 6
stop();
Symbol 114 MovieClip Frame 7
stop();
Symbol 122 MovieClip Frame 1
stop();
Symbol 122 MovieClip Frame 2
stop();
Symbol 122 MovieClip Frame 3
stop();
Symbol 122 MovieClip Frame 4
stop();
Symbol 122 MovieClip Frame 5
stop();
this.correct = true;
Symbol 122 MovieClip Frame 6
stop();
this.correct = false;
Symbol 122 MovieClip Frame 7
stop();
Symbol 130 MovieClip Frame 1
stop();
Symbol 130 MovieClip Frame 2
stop();
Symbol 130 MovieClip Frame 3
stop();
Symbol 130 MovieClip Frame 4
stop();
this.correct = true;
Symbol 130 MovieClip Frame 5
stop();
this.correct = false;
Symbol 130 MovieClip Frame 6
stop();
Symbol 130 MovieClip Frame 7
stop();
Symbol 162 MovieClip Frame 1
s_solid.onEnterFrame = function () {
if (this._parent._alpha > 25) {
this._x = (random(10) - 5) / 10;
this._y = (random(10) - 5) / 10;
this._alpha = random(25) + 75;
}
};
Symbol 166 MovieClip Frame 1
s_solid.onEnterFrame = function () {
if (this._parent._alpha > 25) {
this._x = (random(10) - 5) / 10;
this._y = (random(10) - 5) / 10;
this._alpha = random(25) + 75;
}
};
Symbol 170 MovieClip Frame 1
s_solid.onEnterFrame = function () {
if (this._parent._alpha > 25) {
this._x = (random(10) - 5) / 10;
this._y = (random(10) - 5) / 10;
this._alpha = random(25) + 75;
}
};
Symbol 174 MovieClip Frame 1
s_solid.onEnterFrame = function () {
if (this._parent._alpha > 25) {
this._x = (random(10) - 5) / 10;
this._y = (random(10) - 5) / 10;
this._alpha = random(25) + 75;
}
};
Symbol 176 MovieClip [loc_layers_box] Frame 1
MovieClip.prototype.makePojawiajka = function (a) {
this.onRollOver = function () {
if (!_root.menuIsActive) {
this.onEnterFrame = function () {
if (this._alpha >= a) {
this._alpha = a;
delete this.onEnterFrame;
} else {
this._alpha = this._alpha + 5;
}
};
}
};
this.onRollOut = function () {
this.onEnterFrame = function () {
if (this._alpha <= 0) {
this._alpha = 0;
delete this.onEnterFrame;
} else {
this._alpha = this._alpha - 5;
}
};
};
this.useHandCursor = false;
};
stop();
Symbol 176 MovieClip [loc_layers_box] Frame 5
function checkButtons() {
var bo = btns_order;
if ((((((bo[0] == 4) && (bo[1] == 5)) && (bo[2] == 1)) && (bo[3] == 2)) && (bo[4] == 4)) && (bo[5] == 3)) {
trace("!");
_root.riddle1_seq_ok = true;
}
if (bo.length >= 6) {
if (_root.riddle1_seq_ok) {
if ((((((!gl1.isOn) && (!gl2.isOn)) && (!gl3.isOn)) && (!gl4.isOn)) && (!gl5.isOn)) && (!_root.r1error)) {
trace("hooray!");
_root.playSound("open");
_root.riddle1_completed = true;
_root.ent0.U = "ent";
_root.saveChanges("ent0", _root.ent0);
_root.buttony.manual = undefined;
_root.saveChanges("buttony", _root.buttony);
_root.increaseSync(7);
}
} else {
btns_order = undefined;
}
}
var offy = 0;
var i = 1;
while (i <= 5) {
if (!eval ("gl" + i).isOn) {
offy++;
}
i++;
}
if (offy == 5) {
btns_order = new Array();
_root.r1error = false;
_root.riddle1_seq_ok = false;
}
}
this.onEnterFrame = function () {
var i = 1;
while (i <= 5) {
eval ("gl" + i)._alpha = this._parent._parent._alpha;
i++;
}
};
btns_order = new Array();
var i = 1;
while (i <= 5) {
eval ("gl" + i).ita = i;
eval ("gl" + i).onRelease = function () {
if (_root.ent0.U != "ent") {
if (this.isOn) {
this.gotoAndStop("off");
this.isOn = false;
} else {
this.gotoAndStop("on");
this.isOn = true;
if (_root.riddle1_seq_ok) {
_root.r1error = true;
trace("ERROR");
}
}
btns_order.push(this.ita);
_root.playSound("click");
checkButtons();
}
};
i++;
}
Symbol 176 MovieClip [loc_layers_box] Frame 10
function showLetters() {
hex_mc._alpha = 75;
this.onEnterFrame = function () {
if (letters_mc._alpha >= 100) {
delete this.onEnterFrame;
} else {
letters_mc._alpha = letters_mc._alpha + 2;
hex_mc._alpha = hex_mc._alpha - 5;
}
};
}
hex_mc.onRollOver = function () {
if (letters_mc._alpha == 0) {
showLetters();
}
};
Symbol 176 MovieClip [loc_layers_box] Frame 15
function showLetters() {
hex_mc._alpha = 75;
this.onEnterFrame = function () {
if (letters_mc._alpha >= 100) {
delete this.onEnterFrame;
} else {
letters_mc._alpha = letters_mc._alpha + 2;
hex_mc._alpha = hex_mc._alpha - 5;
}
};
}
function preparePuzzles() {
var i = 1;
while (i <= 8) {
var P = eval ("p" + i);
P.onPress = function () {
_root.isDraging = true;
startDrag (this, false, 0, 0, 999, 999);
this.xowa = this._x;
this.yowa = this._y;
};
P.onRelease = function () {
_root.isDraging = false;
stopDrag();
if ((this._x == this.xowa) && (this._y == this.yowa)) {
this.turn();
}
};
P.onReleaseOutside = P.onRelease;
i++;
}
}
function randomizePuzzle() {
var i = 1;
while (i <= 8) {
var P = eval ("p" + i);
P._x = random(580);
P._y = random(360);
P._rotation = 45 * random(8);
i++;
}
}
hex_mc.onRollOver = function () {
if (letters_mc._alpha == 0) {
showLetters();
}
};
MovieClip.prototype.turn = function () {
if (!this.isRotating) {
var _local2 = new mx.transitions.Tween(this, "_rotation", mx.transitions.easing.Regular.easeOut, this._rotation, this._rotation - 45, 0.2, true);
var counter = 0;
this.isRotating = true;
this.onEnterFrame = function () {
if (counter >= 6) {
delete this.onEnterFrame;
this.isRotating = false;
} else {
counter++;
}
};
}
};
preparePuzzles();
randomizePuzzle();
Symbol 176 MovieClip [loc_layers_box] Frame 20
function checkWins() {
var corrects = 0;
var i = 1;
while (i <= 6) {
if (eval ("win_mc" + i).correct) {
corrects++;
}
i++;
}
if (corrects == 6) {
_root.f_finishWindowsRiddle();
}
}
var i = 1;
while (i <= 6) {
eval ("win_mc" + i).onPress = function () {
this.play();
};
eval ("win_mc" + i).onRelease = function () {
checkWins();
};
i++;
}
Symbol 176 MovieClip [loc_layers_box] Frame 25
function refreshNums() {
var i = 1;
while (i <= 3) {
eval ("elev_txt" + i).text = eval ("c" + i);
i++;
}
checkNums();
}
function checkNums() {
if (((elev_txt1.text == "4") && (elev_txt2.text == "9")) && (elev_txt3.text == "5")) {
_root.f_elevatorsDone();
}
}
var c1 = 0;
var c2 = 0;
var c3 = 0;
var i = 1;
while (i <= 3) {
eval ("elev_txt" + i).text = eval ("c" + i);
eval ("elev_btn" + i).num = i;
eval ("elev_btn" + i).onRelease = function () {
this._parent["c" + this.num]++;
if (this._parent["c" + this.num] > 9) {
this._parent["c" + this.num] = 0;
}
refreshNums();
_root.playSound("click");
};
i++;
}
Symbol 176 MovieClip [loc_layers_box] Frame 33
card._alpha = 0;
card.makePojawiajka(100);
card2._alpha = 0;
card2.makePojawiajka(100);
Symbol 176 MovieClip [loc_layers_box] Frame 38
card._alpha = 0;
card.makePojawiajka(100);
card2._alpha = 0;
card2.makePojawiajka(100);
Symbol 176 MovieClip [loc_layers_box] Frame 44
card._alpha = 0;
card.makePojawiajka(100);
Symbol 176 MovieClip [loc_layers_box] Frame 50
card._alpha = 0;
card.makePojawiajka(100);
card2._alpha = 0;
card2.makePojawiajka(100);
Symbol 176 MovieClip [loc_layers_box] Frame 57
sign._alpha = 0;
sign.makePojawiajka(100);
Symbol 176 MovieClip [loc_layers_box] Frame 63
sign._alpha = 0;
sign.makePojawiajka(100);
Symbol 176 MovieClip [loc_layers_box] Frame 69
sign._alpha = 0;
sign.makePojawiajka(100);
Symbol 176 MovieClip [loc_layers_box] Frame 75
sign._alpha = 0;
sign.makePojawiajka(100);
Symbol 176 MovieClip [loc_layers_box] Frame 81
function allDotsOff() {
var _local1 = 0;
while (_local1 < dots_array.length) {
dots_array[_local1].gotoAndStop("off");
_local1++;
}
}
var filter = (new flash.filters.GlowFilter(65280, 0.75, 3, 3, 3, 3, false, false));
var filterArray = new Array();
filterArray.push(filter);
buildBoard = function () {
dots_array = new Array();
firstMove = true;
lineLength = 0;
createEmptyMovieClip("board", this);
board._x = 203;
board._y = 70;
board._rotation = -2;
board.createEmptyMovieClip("lines", 2);
board.lines.lineStyle(2, 26112, 100);
board.lines._alpha = 75;
board.attachMovie("Dot Riddle hitarea", "dr_hit", 1);
board.dr_hit._x = 172 - board._x;
board.dr_hit._y = 45 - board._y;
board.dr_hit._rotation = 2;
board.onEnterFrame = function () {
if (this.dr_hit.hitTest(_xmouse, _ymouse, false) && (!_root.menuIsActive)) {
if (this._alpha < 100) {
this._alpha = this._alpha + 10;
}
} else if (this._alpha > 0) {
this._alpha = this._alpha - 10;
}
};
nhd = 3;
lines_txt.text = 0;
var i = 1;
while (i < 6) {
var j = 1;
while (j < 6) {
board.attachMovie("kropka", (("kr" + j) + "_") + i, nhd);
ta_kr = eval ((("board.kr" + j) + "_") + i);
ta_kr._x = 43 * (j - 1);
ta_kr._y = 43 * (i - 1);
ta_kr.xowa = j;
ta_kr.yowa = i;
ta_kr._alpha = 75;
dots_array.push(ta_kr);
ta_kr.connected_lines = new Array();
ta_kr.onRelease = function () {
if ((lastClickedDot != this) && (!_root.menuIsActive)) {
if (firstMove) {
firstMove = false;
board.lines.moveTo(this._x, this._y);
lineLength = 0;
lastClickedDot = this;
} else {
var _local3 = lastClickedDot;
if (((((this.xowa == (_local3.xowa - 1)) && (this.yowa == _local3.yowa)) || ((this.xowa == (_local3.xowa + 1)) && (this.yowa == _local3.yowa))) || ((this.xowa == _local3.xowa) && (this.yowa == (_local3.yowa - 1)))) || ((this.xowa == _local3.xowa) && (this.yowa == (_local3.yowa + 1)))) {
if (this.connected_lines.length > 0) {
var _local4 = 0;
while (_local4 < this.connected_lines.length) {
if (this.connected_lines[_local4] == _local3) {
var _local5 = true;
break;
}
_local4++;
}
}
if (_local3.connected_lines.length > 0) {
var _local4 = 0;
while (_local4 < _local3.connected_lines.length) {
if (_local3.connected_lines[_local4] == this) {
var _local5 = true;
break;
}
_local4++;
}
}
if (!_local5) {
board.lines.lineTo(this._x, this._y);
lineLength++;
this.connected_lines.push(_local3);
_local3.connected_lines.push(this);
lastClickedDot = this;
}
var _local5 = false;
}
}
allDotsOff();
lastClickedDot.gotoAndStop("on");
lines_txt.text = lineLength;
if (lineLength == 34) {
_root.f_finishDotRiddle();
}
}
};
nhd++;
j++;
}
i++;
}
};
buildBoard();
resetBoard = function () {
var i = 1;
while (i < 6) {
var j = 1;
while (j < 6) {
ta_kr = eval ((("board.kr" + j) + "_") + i);
ta_kr.connected_lines = new Array();
j++;
}
i++;
}
allDotsOff();
lastClickedDot = undefined;
firstMove = true;
lineLength = 0;
removeMovieClip(board.lines);
board.createEmptyMovieClip("lines", 2);
board.lines.lineStyle(2, 26112, 100);
board.lines._alpha = 75;
lines_txt.text = 0;
};
Symbol 190 MovieClip [CheckThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 201 MovieClip [CheckBoxAssets] Frame 1
#initclip 30
mx.controls.CheckBox.prototype.adjustFocusRect = function () {
var _local4 = this._parent.focus_mc;
var _local2 = this.iconName;
var _local3 = this.getStyle("themeColor");
if (_local3 == undefined) {
_local3 = 8453965 /* 0x80FF4D */;
}
var _local8 = _local2._width + 4;
var _local5 = _local2._height + 4;
_local4.setSize(_local8, _local5, 0, 100, _local3);
var _local7 = _local2._x;
var _local6 = _local2._y;
_local4.move((this.x - 2) + _local7, (this.y + _local6) - 2);
};
#endinitclip
Symbol 203 MovieClip [BrdrShdw] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "shadowColor");
Symbol 205 MovieClip [BrdrFace] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "buttonColor");
Symbol 208 MovieClip [BrdrBlk] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "borderColor");
Symbol 210 MovieClip [BrdrHilght] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "highlightColor");
Symbol 213 MovieClip [Defaults] Frame 1
#initclip 31
Object.registerClass("Defaults", mx.skins.halo.Defaults);
#endinitclip
Symbol 214 MovieClip [UIObjectExtensions] Frame 1
#initclip 32
Object.registerClass("UIObjectExtensions", mx.core.ext.UIObjectExtensions);
#endinitclip
Symbol 215 MovieClip [UIObject] Frame 1
#initclip 33
Object.registerClass("UIObject", mx.core.UIObject);
#endinitclip
stop();
Symbol 218 Button
on (keyPress "<Tab>") {
this.tabHandler();
}
Symbol 219 MovieClip Frame 1
#initclip 34
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
#endinitclip
Symbol 220 MovieClip [FocusRect] Frame 1
#initclip 35
Object.registerClass("FocusRect", mx.skins.halo.FocusRect);
#endinitclip
Symbol 221 MovieClip [FocusManager] Frame 1
#initclip 36
Object.registerClass("FocusManager", mx.managers.FocusManager);
#endinitclip
stop();
Symbol 222 MovieClip [UIComponentExtensions] Frame 1
#initclip 37
Object.registerClass("UIComponentExtensions", mx.core.ext.UIComponentExtensions);
#endinitclip
Symbol 223 MovieClip [UIComponent] Frame 1
#initclip 38
Object.registerClass("UIComponent", mx.core.UIComponent);
#endinitclip
stop();
Symbol 224 MovieClip [SimpleButton] Frame 1
#initclip 39
Object.registerClass("SimpleButton", mx.controls.SimpleButton);
#endinitclip
stop();
Symbol 225 MovieClip [Border] Frame 1
#initclip 40
Object.registerClass("Border", mx.skins.Border);
#endinitclip
stop();
Symbol 226 MovieClip [RectBorder] Frame 1
#initclip 41
mx.skins.SkinElement.registerElement(mx.skins.RectBorder.symbolName, Object(mx.skins.RectBorder));
Object.registerClass("RectBorder", mx.skins.halo.RectBorder);
#endinitclip
stop();
Symbol 227 MovieClip [ButtonSkin] Frame 1
#initclip 42
Object.registerClass("ButtonSkin", mx.skins.halo.ButtonSkin);
#endinitclip
Symbol 228 MovieClip [Button] Frame 1
#initclip 43
Object.registerClass("Button", mx.controls.Button);
#endinitclip
stop();
Instance of Symbol 224 MovieClip [SimpleButton] in Symbol 228 MovieClip [Button] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 229 MovieClip [CheckBox] Frame 1
#initclip 44
Object.registerClass("CheckBox", mx.controls.CheckBox);
#endinitclip
stop();
Instance of Symbol 228 MovieClip [Button] in Symbol 229 MovieClip [CheckBox] Frame 2
//component parameters
onClipEvent (initialize) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 257 MovieClip Frame 1
stop();
this.isStopped = true;
Symbol 257 MovieClip Frame 2
this.isStopped = false;
Symbol 257 MovieClip Frame 45
_root.gotoAndStop(this.targ);
Symbol 259 MovieClip Frame 1
stop();
Symbol 259 MovieClip Frame 2
stop();
Symbol 802 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 803 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 804 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 805 MovieClip [__Packages.mx.transitions.easing.Regular] Frame 0
class mx.transitions.easing.Regular
{
function Regular () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
static var version = "1.1.0.52";
}
Symbol 180 MovieClip [__Packages.mx.core.UIObject] Frame 0
class mx.core.UIObject extends MovieClip
{
var _width, _height, _x, _y, _parent, _minHeight, _minWidth, _visible, dispatchEvent, _xscale, _yscale, methodTable, onEnterFrame, tfList, __width, __height, moveTo, lineTo, createTextField, attachMovie, buildDepthTable, findNextAvailableDepth, idNames, childrenCreated, _name, createAccessibilityImplementation, _endInit, validateNow, hasOwnProperty, initProperties, stylecache, className, ignoreClassStyleDeclaration, _tf, fontFamily, fontSize, color, marginLeft, marginRight, fontStyle, fontWeight, textAlign, textIndent, textDecoration, embedFonts, styleName, enabled;
function UIObject () {
super();
constructObject();
}
function get width() {
return(_width);
}
function get height() {
return(_height);
}
function get left() {
return(_x);
}
function get x() {
return(_x);
}
function get top() {
return(_y);
}
function get y() {
return(_y);
}
function get right() {
return(_parent.width - (_x + width));
}
function get bottom() {
return(_parent.height - (_y + height));
}
function getMinHeight(Void) {
return(_minHeight);
}
function setMinHeight(h) {
_minHeight = h;
}
function get minHeight() {
return(getMinHeight());
}
function set minHeight(h) {
setMinHeight(h);
//return(minHeight);
}
function getMinWidth(Void) {
return(_minWidth);
}
function setMinWidth(w) {
_minWidth = w;
}
function get minWidth() {
return(getMinWidth());
}
function set minWidth(w) {
setMinWidth(w);
//return(minWidth);
}
function setVisible(x, noEvent) {
if (x != _visible) {
_visible = x;
if (noEvent != true) {
dispatchEvent({type:(x ? "reveal" : "hide")});
}
}
}
function get visible() {
return(_visible);
}
function set visible(x) {
setVisible(x, false);
//return(visible);
}
function get scaleX() {
return(_xscale);
}
function set scaleX(x) {
_xscale = x;
//return(scaleX);
}
function get scaleY() {
return(_yscale);
}
function set scaleY(y) {
_yscale = y;
//return(scaleY);
}
function doLater(obj, fn) {
if (methodTable == undefined) {
methodTable = new Array();
}
methodTable.push({obj:obj, fn:fn});
onEnterFrame = doLaterDispatcher;
}
function doLaterDispatcher(Void) {
delete onEnterFrame;
if (invalidateFlag) {
redraw();
}
var _local3 = methodTable;
methodTable = new Array();
if (_local3.length > 0) {
var _local2;
while (_local2 = _local3.shift() , _local2 != undefined) {
_local2.obj[_local2.fn]();
}
}
}
function cancelAllDoLaters(Void) {
delete onEnterFrame;
methodTable = new Array();
}
function invalidate(Void) {
invalidateFlag = true;
onEnterFrame = doLaterDispatcher;
}
function invalidateStyle(Void) {
invalidate();
}
function redraw(bAlways) {
if (invalidateFlag || (bAlways)) {
invalidateFlag = false;
var _local2;
for (_local2 in tfList) {
tfList[_local2].draw();
}
draw();
dispatchEvent({type:"draw"});
}
}
function draw(Void) {
}
function move(x, y, noEvent) {
var _local3 = _x;
var _local2 = _y;
_x = x;
_y = y;
if (noEvent != true) {
dispatchEvent({type:"move", oldX:_local3, oldY:_local2});
}
}
function setSize(w, h, noEvent) {
var _local2 = __width;
var _local3 = __height;
__width = w;
__height = h;
size();
if (noEvent != true) {
dispatchEvent({type:"resize", oldWidth:_local2, oldHeight:_local3});
}
}
function size(Void) {
_width = __width;
_height = __height;
}
function drawRect(x1, y1, x2, y2) {
moveTo(x1, y1);
lineTo(x2, y1);
lineTo(x2, y2);
lineTo(x1, y2);
lineTo(x1, y1);
}
function createLabel(name, depth, text) {
createTextField(name, depth, 0, 0, 0, 0);
var _local2 = this[name];
_local2._color = textColorList;
_local2._visible = false;
_local2.__text = text;
if (tfList == undefined) {
tfList = new Object();
}
tfList[name] = _local2;
_local2.invalidateStyle();
invalidate();
_local2.styleName = this;
return(_local2);
}
function createObject(linkageName, id, depth, initobj) {
return(attachMovie(linkageName, id, depth, initobj));
}
function createClassObject(className, id, depth, initobj) {
var _local3 = className.symbolName == undefined;
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className);
}
var _local4 = createObject(className.symbolOwner.symbolName, id, depth, initobj);
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner);
}
return(_local4);
}
function createEmptyObject(id, depth) {
return(createClassObject(mx.core.UIObject, id, depth));
}
function destroyObject(id) {
var _local2 = this[id];
if (_local2.getDepth() < 0) {
var _local4 = buildDepthTable();
var _local5 = findNextAvailableDepth(0, _local4, "up");
var _local3 = _local5;
_local2.swapDepths(_local3);
}
_local2.removeMovieClip();
delete this[id];
}
function getSkinIDName(tag) {
return(idNames[tag]);
}
function setSkin(tag, linkageName, initObj) {
if (_global.skinRegistry[linkageName] == undefined) {
mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement);
}
return(createObject(linkageName, getSkinIDName(tag), tag, initObj));
}
function createSkin(tag) {
var _local2 = getSkinIDName(tag);
createEmptyObject(_local2, tag);
return(this[_local2]);
}
function createChildren(Void) {
}
function _createChildren(Void) {
createChildren();
childrenCreated = true;
}
function constructObject(Void) {
if (_name == undefined) {
return(undefined);
}
init();
_createChildren();
createAccessibilityImplementation();
_endInit();
if (validateNow) {
redraw(true);
} else {
invalidate();
}
}
function initFromClipParameters(Void) {
var _local4 = false;
var _local2;
for (_local2 in clipParameters) {
if (hasOwnProperty(_local2)) {
_local4 = true;
this["def_" + _local2] = this[_local2];
delete this[_local2];
}
}
if (_local4) {
for (_local2 in clipParameters) {
var _local3 = this["def_" + _local2];
if (_local3 != undefined) {
this[_local2] = _local3;
}
}
}
}
function init(Void) {
__width = _width;
__height = _height;
if (initProperties == undefined) {
initFromClipParameters();
} else {
initProperties();
}
if (_global.cascadingStyles == true) {
stylecache = new Object();
}
}
function getClassStyleDeclaration(Void) {
var _local4 = this;
var _local3 = className;
while (_local3 != undefined) {
if (ignoreClassStyleDeclaration[_local3] == undefined) {
if (_global.styles[_local3] != undefined) {
return(_global.styles[_local3]);
}
}
_local4 = _local4.__proto__;
_local3 = _local4.className;
}
}
function setColor(color) {
}
function __getTextFormat(tf, bAll) {
var _local8 = stylecache.tf;
if (_local8 != undefined) {
var _local3;
for (_local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
tf[_local3] = _local8[_local3];
}
}
}
return(false);
}
var _local6 = false;
for (var _local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
var _local5 = _tf[_local3];
if (_local5 != undefined) {
tf[_local3] = _local5;
} else if ((_local3 == "font") && (fontFamily != undefined)) {
tf[_local3] = fontFamily;
} else if ((_local3 == "size") && (fontSize != undefined)) {
tf[_local3] = fontSize;
} else if ((_local3 == "color") && (color != undefined)) {
tf[_local3] = color;
} else if ((_local3 == "leftMargin") && (marginLeft != undefined)) {
tf[_local3] = marginLeft;
} else if ((_local3 == "rightMargin") && (marginRight != undefined)) {
tf[_local3] = marginRight;
} else if ((_local3 == "italic") && (fontStyle != undefined)) {
tf[_local3] = fontStyle == _local3;
} else if ((_local3 == "bold") && (fontWeight != undefined)) {
tf[_local3] = fontWeight == _local3;
} else if ((_local3 == "align") && (textAlign != undefined)) {
tf[_local3] = textAlign;
} else if ((_local3 == "indent") && (textIndent != undefined)) {
tf[_local3] = textIndent;
} else if ((_local3 == "underline") && (textDecoration != undefined)) {
tf[_local3] = textDecoration == _local3;
} else if ((_local3 == "embedFonts") && (embedFonts != undefined)) {
tf[_local3] = embedFonts;
} else {
_local6 = true;
}
}
}
}
if (_local6) {
var _local9 = styleName;
if (_local9 != undefined) {
if (typeof(_local9) != "string") {
_local6 = _local9.__getTextFormat(tf, true, this);
} else if (_global.styles[_local9] != undefined) {
_local6 = _global.styles[_local9].__getTextFormat(tf, true, this);
}
}
}
if (_local6) {
var _local10 = getClassStyleDeclaration();
if (_local10 != undefined) {
_local6 = _local10.__getTextFormat(tf, true, this);
}
}
if (_local6) {
if (_global.cascadingStyles) {
if (_parent != undefined) {
_local6 = _parent.__getTextFormat(tf, false);
}
}
}
if (_local6) {
_local6 = _global.style.__getTextFormat(tf, true, this);
}
return(_local6);
}
function _getTextFormat(Void) {
var _local2 = stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
__getTextFormat(_local2, true);
stylecache.tf = _local2;
if (enabled == false) {
var _local3 = getStyle("disabledColor");
_local2.color = _local3;
}
return(_local2);
}
function getStyleName(Void) {
var _local2 = styleName;
if (_local2 != undefined) {
if (typeof(_local2) != "string") {
return(_local2.getStyleName());
}
return(_local2);
}
if (_parent != undefined) {
return(_parent.getStyleName());
}
return(undefined);
}
function getStyle(styleProp) {
var _local3;
_global.getStyleCounter++;
if (this[styleProp] != undefined) {
return(this[styleProp]);
}
var _local6 = styleName;
if (_local6 != undefined) {
if (typeof(_local6) != "string") {
_local3 = _local6.getStyle(styleProp);
} else {
var _local7 = _global.styles[_local6];
_local3 = _local7.getStyle(styleProp);
}
}
if (_local3 != undefined) {
return(_local3);
}
var _local7 = getClassStyleDeclaration();
if (_local7 != undefined) {
_local3 = _local7[styleProp];
}
if (_local3 != undefined) {
return(_local3);
}
if (_global.cascadingStyles) {
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (mx.styles.StyleManager.isColorStyle(styleProp))) {
var _local5 = stylecache;
if (_local5 != undefined) {
if (_local5[styleProp] != undefined) {
return(_local5[styleProp]);
}
}
if (_parent != undefined) {
_local3 = _parent.getStyle(styleProp);
} else {
_local3 = _global.style[styleProp];
}
if (_local5 != undefined) {
_local5[styleProp] = _local3;
}
return(_local3);
}
}
if (_local3 == undefined) {
_local3 = _global.style[styleProp];
}
return(_local3);
}
static function mergeClipParameters(o, p) {
for (var _local3 in p) {
o[_local3] = p[_local3];
}
return(true);
}
static var symbolName = "UIObject";
static var symbolOwner = mx.core.UIObject;
static var version = "2.0.2.127";
static var textColorList = {color:1, disabledColor:1};
var invalidateFlag = false;
var lineWidth = 1;
var lineColor = 0;
var tabEnabled = false;
var clipParameters = {visible:1, minHeight:1, minWidth:1, maxHeight:1, maxWidth:1, preferredHeight:1, preferredWidth:1};
}
Symbol 181 MovieClip [__Packages.mx.core.UIComponent] Frame 0
class mx.core.UIComponent extends mx.core.UIObject
{
var __width, __height, invalidate, stylecache, removeEventListener, dispatchEvent, drawFocus, addEventListener, _xscale, _yscale, _focusrect, watch, enabled;
function UIComponent () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function setVisible(x, noEvent) {
super.setVisible(x, noEvent);
}
function enabledChanged(id, oldValue, newValue) {
setEnabled(newValue);
invalidate();
delete stylecache.tf;
return(newValue);
}
function setEnabled(enabled) {
invalidate();
}
function getFocus() {
var selFocus = Selection.getFocus();
return(((selFocus === null) ? null : (eval (selFocus))));
}
function setFocus() {
Selection.setFocus(this);
}
function getFocusManager() {
var _local2 = this;
while (_local2 != undefined) {
if (_local2.focusManager != undefined) {
return(_local2.focusManager);
}
_local2 = _local2._parent;
}
return(undefined);
}
function onKillFocus(newFocus) {
removeEventListener("keyDown", this);
removeEventListener("keyUp", this);
dispatchEvent({type:"focusOut"});
drawFocus(false);
}
function onSetFocus(oldFocus) {
addEventListener("keyDown", this);
addEventListener("keyUp", this);
dispatchEvent({type:"focusIn"});
if (getFocusManager().bDrawFocus != false) {
drawFocus(true);
}
}
function findFocusInChildren(o) {
if (o.focusTextField != undefined) {
return(o.focusTextField);
}
if (o.tabEnabled == true) {
return(o);
}
return(undefined);
}
function findFocusFromObject(o) {
if (o.tabEnabled != true) {
if (o._parent == undefined) {
return(undefined);
}
if (o._parent.tabEnabled == true) {
o = o._parent;
} else if (o._parent.tabChildren) {
o = findFocusInChildren(o._parent);
} else {
o = findFocusFromObject(o._parent);
}
}
return(o);
}
function pressFocus() {
var _local3 = findFocusFromObject(this);
var _local2 = getFocus();
if (_local3 != _local2) {
_local2.drawFocus(false);
if (getFocusManager().bDrawFocus != false) {
_local3.drawFocus(true);
}
}
}
function releaseFocus() {
var _local2 = findFocusFromObject(this);
if (_local2 != getFocus()) {
_local2.setFocus();
}
}
function isParent(o) {
while (o != undefined) {
if (o == this) {
return(true);
}
o = o._parent;
}
return(false);
}
function size() {
}
function init() {
super.init();
_xscale = 100;
_yscale = 100;
_focusrect = _global.useFocusRect == false;
watch("enabled", enabledChanged);
if (enabled == false) {
setEnabled(false);
}
}
function dispatchValueChangedEvent(value) {
dispatchEvent({type:"valueChanged", value:value});
}
static var symbolName = "UIComponent";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.2.127";
static var kStretch = 5000;
var focusEnabled = true;
var tabEnabled = true;
var origBorderStyles = {themeColor:16711680};
var clipParameters = {};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.core.UIComponent.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters);
}
Symbol 182 MovieClip [__Packages.mx.controls.SimpleButton] Frame 0
class mx.controls.SimpleButton extends mx.core.UIComponent
{
static var emphasizedStyleDeclaration;
var preset, boundingBox_mc, useHandCursor, skinName, linkLength, iconName, destroyObject, __width, _width, __height, _height, __emphaticStyleName, styleName, enabled, invalidate, pressFocus, dispatchEvent, autoRepeat, interval, getStyle, releaseFocus, createLabel, invalidateStyle;
function SimpleButton () {
super();
}
function init(Void) {
super.init();
if (preset == undefined) {
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
useHandCursor = false;
}
function createChildren(Void) {
if (preset != undefined) {
var _local2 = this[idNames[preset]];
this[refNames[preset]] = _local2;
skinName = _local2;
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
}
initializing = false;
} else if (__state == true) {
setStateVar(true);
} else {
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
}
}
}
function setIcon(tag, linkageName) {
return(setSkin(tag + 8, linkageName));
}
function changeIcon(tag, linkageName) {
linkLength = linkageName.length;
var _local2 = stateNames[tag] + "Icon";
this[_local2] = linkageName;
this[idNames[tag + 8]] = _local2;
setStateVar(getState());
}
function changeSkin(tag, linkageName) {
var _local2 = stateNames[tag] + "Skin";
this[_local2] = linkageName;
this[idNames[tag]] = _local2;
setStateVar(getState());
}
function viewIcon(varName) {
var _local4 = varName + "Icon";
var _local3 = this[_local4];
if (typeof(_local3) == "string") {
var _local5 = _local3;
if (__emphasized) {
if (this[_local3 + "Emphasized"].length > 0) {
_local3 = _local3 + "Emphasized";
}
}
if (this[_local3].length == 0) {
return(undefined);
}
_local3 = setIcon(tagMap[_local5], this[_local3]);
if ((_local3 == undefined) && (_global.isLivePreview)) {
_local3 = setIcon(0, "ButtonIcon");
}
this[_local4] = _local3;
}
iconName._visible = false;
iconName = _local3;
iconName._visible = true;
}
function removeIcons() {
var _local3 = 0;
while (_local3 < 2) {
var _local2 = 8;
while (_local2 < 16) {
destroyObject(idNames[_local2]);
this[stateNames[_local2 - 8] + "Icon"] = "";
_local2++;
}
_local3++;
}
refresh();
}
function setSkin(tag, linkageName, initobj) {
var _local3 = super.setSkin(tag, linkageName, ((initobj != undefined) ? (initobj) : ({styleName:this})));
calcSize(tag, _local3);
return(_local3);
}
function calcSize(Void) {
__width = _width;
__height = _height;
}
function viewSkin(varName, initObj) {
var _local3 = varName + "Skin";
var _local2 = this[_local3];
if (typeof(_local2) == "string") {
var _local4 = _local2;
if (__emphasized) {
if (this[_local2 + "Emphasized"].length > 0) {
_local2 = _local2 + "Emphasized";
}
}
if (this[_local2].length == 0) {
return(undefined);
}
_local2 = setSkin(tagMap[_local4], this[_local2], ((initObj != undefined) ? (initObj) : ({styleName:this})));
this[_local3] = _local2;
}
skinName._visible = false;
skinName = _local2;
skinName._visible = true;
}
function showEmphasized(e) {
if (e && (!__emphatic)) {
if (emphasizedStyleDeclaration != undefined) {
__emphaticStyleName = styleName;
styleName = emphasizedStyleDeclaration;
}
__emphatic = true;
} else {
if (__emphatic) {
styleName = __emphaticStyleName;
}
__emphatic = false;
}
}
function refresh(Void) {
var _local2 = getState();
if (enabled == false) {
viewIcon("disabled");
viewSkin("disabled");
} else {
viewSkin(phase);
viewIcon(phase);
}
setView(phase == "down");
iconName.enabled = enabled;
}
function setView(offset) {
if (iconName == undefined) {
return(undefined);
}
var _local2 = (offset ? (btnOffset) : 0);
iconName._x = ((__width - iconName._width) / 2) + _local2;
iconName._y = ((__height - iconName._height) / 2) + _local2;
}
function setStateVar(state) {
if (state) {
if (trueOverSkin.length == 0) {
rolloverSkin = tus;
} else {
rolloverSkin = trs;
}
if (trueOverIcon.length == 0) {
rolloverIcon = tui;
} else {
rolloverIcon = tri;
}
upSkin = tus;
downSkin = tds;
disabledSkin = dts;
upIcon = tui;
downIcon = tdi;
disabledIcon = dti;
} else {
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
} else {
rolloverSkin = frs;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
} else {
rolloverIcon = fri;
}
upSkin = fus;
downSkin = fds;
disabledSkin = dfs;
upIcon = fui;
downIcon = fdi;
disabledIcon = dfi;
}
__state = state;
}
function setState(state) {
if (state != __state) {
setStateVar(state);
invalidate();
}
}
function size(Void) {
refresh();
}
function draw(Void) {
if (initializing) {
initializing = false;
skinName.visible = true;
iconName.visible = true;
}
size();
}
function getState(Void) {
return(__state);
}
function setToggle(val) {
__toggle = val;
if (__toggle == false) {
setState(false);
}
}
function getToggle(Void) {
return(__toggle);
}
function set toggle(val) {
setToggle(val);
//return(toggle);
}
function get toggle() {
return(getToggle());
}
function set value(val) {
setSelected(val);
//return(value);
}
function get value() {
return(getSelected());
}
function set selected(val) {
setSelected(val);
//return(selected);
}
function get selected() {
return(getSelected());
}
function setSelected(val) {
if (__toggle) {
setState(val);
} else {
setState((initializing ? (val) : (__state)));
}
}
function getSelected() {
return(__state);
}
function setEnabled(val) {
if (enabled != val) {
super.setEnabled(val);
invalidate();
}
}
function onPress(Void) {
pressFocus();
phase = "down";
refresh();
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
interval = setInterval(this, "onPressDelay", getStyle("repeatDelay"));
}
}
function onPressDelay(Void) {
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
clearInterval(interval);
interval = setInterval(this, "onPressRepeat", getStyle("repeatInterval"));
}
}
function onPressRepeat(Void) {
dispatchEvent({type:"buttonDown"});
updateAfterEvent();
}
function onRelease(Void) {
releaseFocus();
phase = "rollover";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
if (getToggle()) {
setState(!getState());
} else {
refresh();
}
dispatchEvent({type:"click"});
}
function onDragOut(Void) {
phase = "up";
refresh();
dispatchEvent({type:"buttonDragOut"});
}
function onDragOver(Void) {
if (phase != "up") {
onPress();
return(undefined);
}
phase = "down";
refresh();
}
function onReleaseOutside(Void) {
releaseFocus();
phase = "up";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
}
function onRollOver(Void) {
phase = "rollover";
refresh();
}
function onRollOut(Void) {
phase = "up";
refresh();
}
function getLabel(Void) {
return(fui.text);
}
function setLabel(val) {
if (typeof(fui) == "string") {
createLabel("fui", 8, val);
fui.styleName = this;
} else {
fui.text = val;
}
var _local4 = fui._getTextFormat();
var _local2 = _local4.getTextExtent2(val);
fui._width = _local2.width + 5;
fui._height = _local2.height + 5;
iconName = fui;
setView(__state);
}
function get emphasized() {
return(__emphasized);
}
function set emphasized(val) {
__emphasized = val;
var _local2 = 0;
while (_local2 < 8) {
this[idNames[_local2]] = stateNames[_local2] + "Skin";
if (typeof(this[idNames[_local2 + 8]]) == "movieclip") {
this[idNames[_local2 + 8]] = stateNames[_local2] + "Icon";
}
_local2++;
}
showEmphasized(__emphasized);
setStateVar(__state);
invalidateStyle();
//return(emphasized);
}
function keyDown(e) {
if (e.code == 32) {
onPress();
}
}
function keyUp(e) {
if (e.code == 32) {
onRelease();
}
}
function onKillFocus(newFocus) {
super.onKillFocus();
if (phase != "up") {
phase = "up";
refresh();
}
}
static var symbolName = "SimpleButton";
static var symbolOwner = mx.controls.SimpleButton;
static var version = "2.0.2.127";
var className = "SimpleButton";
var style3dInset = 4;
var btnOffset = 1;
var __toggle = false;
var __state = false;
var __emphasized = false;
var __emphatic = false;
static var falseUp = 0;
static var falseDown = 1;
static var falseOver = 2;
static var falseDisabled = 3;
static var trueUp = 4;
static var trueDown = 5;
static var trueOver = 6;
static var trueDisabled = 7;
var falseUpSkin = "SimpleButtonUp";
var falseDownSkin = "SimpleButtonIn";
var falseOverSkin = "";
var falseDisabledSkin = "SimpleButtonUp";
var trueUpSkin = "SimpleButtonIn";
var trueDownSkin = "";
var trueOverSkin = "";
var trueDisabledSkin = "SimpleButtonIn";
var falseUpIcon = "";
var falseDownIcon = "";
var falseOverIcon = "";
var falseDisabledIcon = "";
var trueUpIcon = "";
var trueDownIcon = "";
var trueOverIcon = "";
var trueDisabledIcon = "";
var phase = "up";
var fui = "falseUpIcon";
var fus = "falseUpSkin";
var fdi = "falseDownIcon";
var fds = "falseDownSkin";
var frs = "falseOverSkin";
var fri = "falseOverIcon";
var dfi = "falseDisabledIcon";
var dfs = "falseDisabledSkin";
var tui = "trueUpIcon";
var tus = "trueUpSkin";
var tdi = "trueDownIcon";
var tds = "trueDownSkin";
var trs = "trueOverSkin";
var tri = "trueOverIcon";
var dts = "trueDisabledSkin";
var dti = "trueDisabledIcon";
var rolloverSkin = mx.controls.SimpleButton.prototype.frs;
var rolloverIcon = mx.controls.SimpleButton.prototype.fri;
var upSkin = mx.controls.SimpleButton.prototype.fus;
var downSkin = mx.controls.SimpleButton.prototype.fds;
var disabledSkin = mx.controls.SimpleButton.prototype.dfs;
var upIcon = mx.controls.SimpleButton.prototype.fui;
var downIcon = mx.controls.SimpleButton.prototype.fdi;
var disabledIcon = mx.controls.SimpleButton.prototype.dfi;
var initializing = true;
var idNames = ["fus", "fds", "frs", "dfs", "tus", "tds", "trs", "dts", "fui", "fdi", "fri", "dfi", "tui", "tdi", "tri", "dti"];
var stateNames = ["falseUp", "falseDown", "falseOver", "falseDisabled", "trueUp", "trueDown", "trueOver", "trueDisabled"];
var refNames = ["upSkin", "downSkin", "rolloverSkin", "disabledSkin"];
var tagMap = {falseUpSkin:0, falseDownSkin:1, falseOverSkin:2, falseDisabledSkin:3, trueUpSkin:4, trueDownSkin:5, trueOverSkin:6, trueDisabledSkin:7, falseUpIcon:0, falseDownIcon:1, falseOverIcon:2, falseDisabledIcon:3, trueUpIcon:4, trueDownIcon:5, trueOverIcon:6, trueDisabledIcon:7};
}
Symbol 183 MovieClip [__Packages.mx.controls.Button] Frame 0
class mx.controls.Button extends mx.controls.SimpleButton
{
var initializing, labelPath, initIcon, getState, enabled, phase, idNames, __width, __height, setState, invalidate, iconName, refresh, createLabel, _iconLinkageName, removeIcons, hitArea_mc, createEmptyObject;
function Button () {
super();
}
function init(Void) {
super.init();
}
function draw() {
if (initializing) {
labelPath.visible = true;
}
super.draw();
if (initIcon != undefined) {
_setIcon(initIcon);
}
delete initIcon;
}
function onRelease(Void) {
super.onRelease();
}
function createChildren(Void) {
super.createChildren();
}
function setSkin(tag, linkageName, initobj) {
return(super.setSkin(tag, linkageName, initobj));
}
function viewSkin(varName) {
var _local3 = (getState() ? "true" : "false");
_local3 = _local3 + (enabled ? (phase) : "disabled");
super.viewSkin(varName, {styleName:this, borderStyle:_local3});
}
function invalidateStyle(c) {
labelPath.invalidateStyle(c);
super.invalidateStyle(c);
}
function setColor(c) {
var _local2 = 0;
while (_local2 < 8) {
this[idNames[_local2]].redraw(true);
_local2++;
}
}
function setEnabled(enable) {
labelPath.enabled = enable;
super.setEnabled(enable);
}
function calcSize(tag, ref) {
if ((__width == undefined) || (__height == undefined)) {
return(undefined);
}
if (tag < 7) {
ref.setSize(__width, __height, true);
}
}
function size(Void) {
setState(getState());
setHitArea(__width, __height);
var _local3 = 0;
while (_local3 < 8) {
var _local4 = idNames[_local3];
if (typeof(this[_local4]) == "movieclip") {
this[_local4].setSize(__width, __height, true);
}
_local3++;
}
super.size();
}
function set labelPlacement(val) {
__labelPlacement = val;
invalidate();
//return(labelPlacement);
}
function get labelPlacement() {
return(__labelPlacement);
}
function getLabelPlacement(Void) {
return(__labelPlacement);
}
function setLabelPlacement(val) {
__labelPlacement = val;
invalidate();
}
function getBtnOffset(Void) {
if (getState()) {
var _local2 = btnOffset;
} else if (phase == "down") {
var _local2 = btnOffset;
} else {
var _local2 = 0;
}
return(_local2);
}
function setView(offset) {
var _local16 = (offset ? (btnOffset) : 0);
var _local12 = getLabelPlacement();
var _local7 = 0;
var _local6 = 0;
var _local9 = 0;
var _local8 = 0;
var _local5 = 0;
var _local4 = 0;
var _local3 = labelPath;
var _local2 = iconName;
var _local15 = _local3.textWidth;
var _local14 = _local3.textHeight;
var _local10 = (__width - borderW) - borderW;
var _local11 = (__height - borderW) - borderW;
if (_local2 != undefined) {
_local7 = _local2._width;
_local6 = _local2._height;
}
if ((_local12 == "left") || (_local12 == "right")) {
if (_local3 != undefined) {
_local9 = Math.min(_local10 - _local7, _local15 + 5);
_local3._width = _local9;
_local8 = Math.min(_local11, _local14 + 5);
_local3._height = _local8;
}
if (_local12 == "right") {
_local5 = _local7;
if (centerContent) {
_local5 = _local5 + (((_local10 - _local9) - _local7) / 2);
}
_local2._x = _local5 - _local7;
} else {
_local5 = (_local10 - _local9) - _local7;
if (centerContent) {
_local5 = _local5 / 2;
}
_local2._x = _local5 + _local9;
}
_local4 = 0;
_local2._y = _local4;
if (centerContent) {
_local2._y = (_local11 - _local6) / 2;
_local4 = (_local11 - _local8) / 2;
}
if (!centerContent) {
_local2._y = _local2._y + Math.max(0, (_local8 - _local6) / 2);
}
} else {
if (_local3 != undefined) {
_local9 = Math.min(_local10, _local15 + 5);
_local3._width = _local9;
_local8 = Math.min(_local11 - _local6, _local14 + 5);
_local3._height = _local8;
}
_local5 = (_local10 - _local9) / 2;
_local2._x = (_local10 - _local7) / 2;
if (_local12 == "top") {
_local4 = (_local11 - _local8) - _local6;
if (centerContent) {
_local4 = _local4 / 2;
}
_local2._y = _local4 + _local8;
} else {
_local4 = _local6;
if (centerContent) {
_local4 = _local4 + (((_local11 - _local8) - _local6) / 2);
}
_local2._y = _local4 - _local6;
}
}
var _local13 = borderW + _local16;
_local3._x = _local5 + _local13;
_local3._y = _local4 + _local13;
_local2._x = _local2._x + _local13;
_local2._y = _local2._y + _local13;
}
function set label(lbl) {
setLabel(lbl);
//return(label);
}
function setLabel(label) {
if (label == "") {
labelPath.removeTextField();
refresh();
return(undefined);
}
if (labelPath == undefined) {
var _local2 = createLabel("labelPath", 200, label);
_local2._width = _local2.textWidth + 5;
_local2._height = _local2.textHeight + 5;
if (initializing) {
_local2.visible = false;
}
} else {
delete labelPath.__text;
labelPath.text = label;
refresh();
}
}
function getLabel(Void) {
return(((labelPath.__text != undefined) ? (labelPath.__text) : (labelPath.text)));
}
function get label() {
return(getLabel());
}
function _getIcon(Void) {
return(_iconLinkageName);
}
function get icon() {
if (initializing) {
return(initIcon);
}
return(_iconLinkageName);
}
function _setIcon(linkage) {
if (initializing) {
if (linkage == "") {
return(undefined);
}
initIcon = linkage;
} else {
if (linkage == "") {
removeIcons();
return(undefined);
}
super.changeIcon(0, linkage);
super.changeIcon(1, linkage);
super.changeIcon(3, linkage);
super.changeIcon(4, linkage);
super.changeIcon(5, linkage);
_iconLinkageName = linkage;
refresh();
}
}
function set icon(linkage) {
_setIcon(linkage);
//return(icon);
}
function setHitArea(w, h) {
if (hitArea_mc == undefined) {
createEmptyObject("hitArea_mc", 100);
}
var _local2 = hitArea_mc;
_local2.clear();
_local2.beginFill(16711680);
_local2.drawRect(0, 0, w, h);
_local2.endFill();
_local2.setVisible(false);
}
static var symbolName = "Button";
static var symbolOwner = mx.controls.Button;
var className = "Button";
static var version = "2.0.2.127";
var btnOffset = 0;
var _color = "buttonColor";
var __label = "default value";
var __labelPlacement = "right";
var falseUpSkin = "ButtonSkin";
var falseDownSkin = "ButtonSkin";
var falseOverSkin = "ButtonSkin";
var falseDisabledSkin = "ButtonSkin";
var trueUpSkin = "ButtonSkin";
var trueDownSkin = "ButtonSkin";
var trueOverSkin = "ButtonSkin";
var trueDisabledSkin = "ButtonSkin";
var falseUpIcon = "";
var falseDownIcon = "";
var falseOverIcon = "";
var falseDisabledIcon = "";
var trueUpIcon = "";
var trueDownIcon = "";
var trueOverIcon = "";
var trueDisabledIcon = "";
var clipParameters = {labelPlacement:1, icon:1, toggle:1, selected:1, label:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.Button.prototype.clipParameters, mx.controls.SimpleButton.prototype.clipParameters);
var centerContent = true;
var borderW = 1;
}
Symbol 184 MovieClip [__Packages.mx.controls.CheckBox] Frame 0
class mx.controls.CheckBox extends mx.controls.Button
{
var _getTextFormat, labelPath, iconName;
function CheckBox () {
super();
}
function onRelease() {
super.onRelease();
}
function init() {
super.init();
}
function size() {
super.size();
}
function get emphasized() {
return(undefined);
}
function calcPreferredHeight() {
var _local5 = _getTextFormat();
var _local3 = _local5.getTextExtent2(labelPath.text).height;
var _local4 = iconName._height;
var _local2 = 0;
if ((__labelPlacement == "left") || (__labelPlacement == "right")) {
_local2 = Math.max(_local3, _local4);
} else {
_local2 = _local3 + _local4;
}
return(Math.max(14, _local2));
}
function set toggle(v) {
//return(toggle);
}
function get toggle() {
}
function set icon(v) {
//return(icon);
}
function get icon() {
}
static var symbolName = "CheckBox";
static var symbolOwner = mx.controls.CheckBox;
static var version = "2.0.2.127";
var className = "CheckBox";
var ignoreClassStyleDeclaration = {Button:1};
var btnOffset = 0;
var __toggle = true;
var __selected = false;
var __labelPlacement = "right";
var __label = "CheckBox";
var falseUpSkin = "";
var falseDownSkin = "";
var falseOverSkin = "";
var falseDisabledSkin = "";
var trueUpSkin = "";
var trueDownSkin = "";
var trueOverSkin = "";
var trueDisabledSkin = "";
var falseUpIcon = "CheckFalseUp";
var falseDownIcon = "CheckFalseDown";
var falseOverIcon = "CheckFalseOver";
var falseDisabledIcon = "CheckFalseDisabled";
var trueUpIcon = "CheckTrueUp";
var trueDownIcon = "CheckTrueDown";
var trueOverIcon = "CheckTrueOver";
var trueDisabledIcon = "CheckTrueDisabled";
var clipParameters = {label:1, labelPlacement:1, selected:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.CheckBox.prototype.clipParameters, mx.controls.Button.prototype.clipParameters);
var centerContent = false;
var borderW = 0;
}
Symbol 230 MovieClip [__Packages.mx.skins.SkinElement] Frame 0
class mx.skins.SkinElement extends MovieClip
{
var _visible, _x, _y, _width, _height;
function SkinElement () {
super();
}
static function registerElement(name, className) {
Object.registerClass(name, ((className == undefined) ? (mx.skins.SkinElement) : (className)));
_global.skinRegistry[name] = true;
}
function __set__visible(visible) {
_visible = visible;
}
function move(x, y) {
_x = x;
_y = y;
}
function setSize(w, h) {
_width = w;
_height = h;
}
}
Symbol 231 MovieClip [__Packages.mx.styles.CSSTextStyles] Frame 0
class mx.styles.CSSTextStyles
{
function CSSTextStyles () {
}
static function addTextStyles(o, bColor) {
o.addProperty("textAlign", function () {
return(this._tf.align);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.align = x;
});
o.addProperty("fontWeight", function () {
return(((this._tf.bold != undefined) ? ((this._tf.bold ? "bold" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.bold = x == "bold";
});
if (bColor) {
o.addProperty("color", function () {
return(this._tf.color);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.color = x;
});
}
o.addProperty("fontFamily", function () {
return(this._tf.font);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.font = x;
});
o.addProperty("textIndent", function () {
return(this._tf.indent);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.indent = x;
});
o.addProperty("fontStyle", function () {
return(((this._tf.italic != undefined) ? ((this._tf.italic ? "italic" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.italic = x == "italic";
});
o.addProperty("marginLeft", function () {
return(this._tf.leftMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.leftMargin = x;
});
o.addProperty("marginRight", function () {
return(this._tf.rightMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.rightMargin = x;
});
o.addProperty("fontSize", function () {
return(this._tf.size);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.size = x;
});
o.addProperty("textDecoration", function () {
return(((this._tf.underline != undefined) ? ((this._tf.underline ? "underline" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.underline = x == "underline";
});
o.addProperty("embedFonts", function () {
return(this._tf.embedFonts);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.embedFonts = x;
});
}
}
Symbol 232 MovieClip [__Packages.mx.styles.StyleManager] Frame 0
class mx.styles.StyleManager
{
function StyleManager () {
}
static function registerInheritingStyle(styleName) {
inheritingStyles[styleName] = true;
}
static function isInheritingStyle(styleName) {
return(inheritingStyles[styleName] == true);
}
static function registerColorStyle(styleName) {
colorStyles[styleName] = true;
}
static function isColorStyle(styleName) {
return(colorStyles[styleName] == true);
}
static function registerColorName(colorName, colorValue) {
colorNames[colorName] = colorValue;
}
static function isColorName(colorName) {
return(colorNames[colorName] != undefined);
}
static function getColorName(colorName) {
return(colorNames[colorName]);
}
static var inheritingStyles = {color:true, direction:true, fontFamily:true, fontSize:true, fontStyle:true, fontWeight:true, textAlign:true, textIndent:true};
static var colorStyles = {barColor:true, trackColor:true, borderColor:true, buttonColor:true, color:true, dateHeaderColor:true, dateRollOverColor:true, disabledColor:true, fillColor:true, highlightColor:true, scrollTrackColor:true, selectedDateColor:true, shadowColor:true, strokeColor:true, symbolBackgroundColor:true, symbolBackgroundDisabledColor:true, symbolBackgroundPressedColor:true, symbolColor:true, symbolDisabledColor:true, themeColor:true, todayIndicatorColor:true, shadowCapColor:true, borderCapColor:true, focusColor:true};
static var colorNames = {black:0, white:16777215, red:16711680, green:65280, blue:255, magenta:16711935, yellow:16776960, cyan:65535, haloGreen:8453965, haloBlue:2881013, haloOrange:16761344};
static var TextFormatStyleProps = {font:true, size:true, color:true, leftMargin:false, rightMargin:false, italic:true, bold:true, align:true, indent:true, underline:false, embedFonts:false};
static var TextStyleMap = {textAlign:true, fontWeight:true, color:true, fontFamily:true, textIndent:true, fontStyle:true, lineHeight:true, marginLeft:true, marginRight:true, fontSize:true, textDecoration:true, embedFonts:true};
}
Symbol 233 MovieClip [__Packages.mx.styles.CSSStyleDeclaration] Frame 0
class mx.styles.CSSStyleDeclaration
{
var _tf;
function CSSStyleDeclaration () {
}
function __getTextFormat(tf, bAll) {
var _local5 = false;
if (_tf != undefined) {
var _local2;
for (_local2 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local2])) {
if (tf[_local2] == undefined) {
var _local3 = _tf[_local2];
if (_local3 != undefined) {
tf[_local2] = _local3;
} else {
_local5 = true;
}
}
}
}
} else {
_local5 = true;
}
return(_local5);
}
function getStyle(styleProp) {
var _local2 = this[styleProp];
var _local3 = mx.styles.StyleManager.getColorName(_local2);
return(((_local3 == undefined) ? (_local2) : (_local3)));
}
static function classConstruct() {
mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true);
return(true);
}
static var classConstructed = classConstruct();
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
}
Symbol 234 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 235 MovieClip [__Packages.mx.events.UIEventDispatcher] Frame 0
class mx.events.UIEventDispatcher extends mx.events.EventDispatcher
{
var dispatchQueue, owner, __sentLoadEvent, __origAddEventListener;
function UIEventDispatcher () {
super();
}
static function addKeyEvents(obj) {
if (obj.keyHandler == undefined) {
var _local1 = (obj.keyHandler = new Object());
_local1.owner = obj;
_local1.onKeyDown = _fEventDispatcher.onKeyDown;
_local1.onKeyUp = _fEventDispatcher.onKeyUp;
}
Key.addListener(obj.keyHandler);
}
static function removeKeyEvents(obj) {
Key.removeListener(obj.keyHandler);
}
static function addLoadEvents(obj) {
if (obj.onLoad == undefined) {
obj.onLoad = _fEventDispatcher.onLoad;
obj.onUnload = _fEventDispatcher.onUnload;
if (obj.getBytesTotal() == obj.getBytesLoaded()) {
obj.doLater(obj, "onLoad");
}
}
}
static function removeLoadEvents(obj) {
delete obj.onLoad;
delete obj.onUnload;
}
static function initialize(obj) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.UIEventDispatcher();
}
obj.addEventListener = _fEventDispatcher.__addEventListener;
obj.__origAddEventListener = _fEventDispatcher.addEventListener;
obj.removeEventListener = _fEventDispatcher.removeEventListener;
obj.dispatchEvent = _fEventDispatcher.dispatchEvent;
obj.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(mx.events.EventDispatcher, eventObj);
dispatchQueue(this, eventObj);
}
function onKeyDown(Void) {
owner.dispatchEvent({type:"keyDown", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)});
}
function onKeyUp(Void) {
owner.dispatchEvent({type:"keyUp", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)});
}
function onLoad(Void) {
if (__sentLoadEvent != true) {
dispatchEvent({type:"load"});
}
__sentLoadEvent = true;
}
function onUnload(Void) {
dispatchEvent({type:"unload"});
}
function __addEventListener(event, handler) {
__origAddEventListener(event, handler);
var _local3 = lowLevelEvents;
for (var _local5 in _local3) {
if (mx.events.UIEventDispatcher[_local5][event] != undefined) {
var _local2 = _local3[_local5][0];
mx.events.UIEventDispatcher[_local2](this);
}
}
}
function removeEventListener(event, handler) {
var _local6 = "__q_" + event;
mx.events.EventDispatcher._removeEventListener(this[_local6], event, handler);
if (this[_local6].length == 0) {
var _local2 = lowLevelEvents;
for (var _local5 in _local2) {
if (mx.events.UIEventDispatcher[_local5][event] != undefined) {
var _local3 = _local2[_local5][1];
mx.events.UIEventDispatcher[_local2[_local5][1]](this);
}
}
}
}
static var keyEvents = {keyDown:1, keyUp:1};
static var loadEvents = {load:1, unload:1};
static var lowLevelEvents = {keyEvents:["addKeyEvents", "removeKeyEvents"], loadEvents:["addLoadEvents", "removeLoadEvents"]};
static var _fEventDispatcher = undefined;
}
Symbol 236 MovieClip [__Packages.mx.skins.ColoredSkinElement] Frame 0
class mx.skins.ColoredSkinElement
{
var getStyle, _color, onEnterFrame;
function ColoredSkinElement () {
}
function setColor(c) {
if (c != undefined) {
var _local2 = new Color(this);
_local2.setRGB(c);
}
}
function draw(Void) {
setColor(getStyle(_color));
onEnterFrame = undefined;
}
function invalidateStyle(Void) {
onEnterFrame = draw;
}
static function setColorStyle(p, colorStyle) {
if (p._color == undefined) {
p._color = colorStyle;
}
p.setColor = mixins.setColor;
p.invalidateStyle = mixins.invalidateStyle;
p.draw = mixins.draw;
p.setColor(p.getStyle(colorStyle));
}
static var mixins = new mx.skins.ColoredSkinElement();
}
Symbol 237 MovieClip [__Packages.mx.core.ext.UIObjectExtensions] Frame 0
class mx.core.ext.UIObjectExtensions
{
function UIObjectExtensions () {
}
static function addGeometry(tf, ui) {
tf.addProperty("width", ui.__get__width, null);
tf.addProperty("height", ui.__get__height, null);
tf.addProperty("left", ui.__get__left, null);
tf.addProperty("x", ui.__get__x, null);
tf.addProperty("top", ui.__get__top, null);
tf.addProperty("y", ui.__get__y, null);
tf.addProperty("right", ui.__get__right, null);
tf.addProperty("bottom", ui.__get__bottom, null);
tf.addProperty("visible", ui.__get__visible, ui.__set__visible);
}
static function Extensions() {
if (bExtended == true) {
return(true);
}
bExtended = true;
var _local6 = mx.core.UIObject.prototype;
var _local9 = mx.skins.SkinElement.prototype;
addGeometry(_local9, _local6);
mx.events.UIEventDispatcher.initialize(_local6);
var _local13 = mx.skins.ColoredSkinElement;
mx.styles.CSSTextStyles.addTextStyles(_local6);
var _local5 = MovieClip.prototype;
_local5.getTopLevel = _local6.getTopLevel;
_local5.createLabel = _local6.createLabel;
_local5.createObject = _local6.createObject;
_local5.createClassObject = _local6.createClassObject;
_local5.createEmptyObject = _local6.createEmptyObject;
_local5.destroyObject = _local6.destroyObject;
_global.ASSetPropFlags(_local5, "getTopLevel", 1);
_global.ASSetPropFlags(_local5, "createLabel", 1);
_global.ASSetPropFlags(_local5, "createObject", 1);
_global.ASSetPropFlags(_local5, "createClassObject", 1);
_global.ASSetPropFlags(_local5, "createEmptyObject", 1);
_global.ASSetPropFlags(_local5, "destroyObject", 1);
_local5.__getTextFormat = _local6.__getTextFormat;
_local5._getTextFormat = _local6._getTextFormat;
_local5.getStyleName = _local6.getStyleName;
_local5.getStyle = _local6.getStyle;
_global.ASSetPropFlags(_local5, "__getTextFormat", 1);
_global.ASSetPropFlags(_local5, "_getTextFormat", 1);
_global.ASSetPropFlags(_local5, "getStyleName", 1);
_global.ASSetPropFlags(_local5, "getStyle", 1);
var _local7 = TextField.prototype;
addGeometry(_local7, _local6);
_local7.addProperty("enabled", function () {
return(this.__enabled);
}, function (x) {
this.__enabled = x;
this.invalidateStyle();
});
_local7.move = _local9.move;
_local7.setSize = _local9.setSize;
_local7.invalidateStyle = function () {
this.invalidateFlag = true;
};
_local7.draw = function () {
if (this.invalidateFlag) {
this.invalidateFlag = false;
var _local2 = this._getTextFormat();
this.setTextFormat(_local2);
this.setNewTextFormat(_local2);
this.embedFonts = _local2.embedFonts == true;
if (this.__text != undefined) {
if (this.text == "") {
this.text = this.__text;
}
delete this.__text;
}
this._visible = true;
}
};
_local7.setColor = function (color) {
this.textColor = color;
};
_local7.getStyle = _local5.getStyle;
_local7.__getTextFormat = _local6.__getTextFormat;
_local7.setValue = function (v) {
this.text = v;
};
_local7.getValue = function () {
return(this.text);
};
_local7.addProperty("value", function () {
return(this.getValue());
}, function (v) {
this.setValue(v);
});
_local7._getTextFormat = function () {
var _local2 = this.stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
this.__getTextFormat(_local2);
this.stylecache.tf = _local2;
if (this.__enabled == false) {
if (this.enabledColor == undefined) {
var _local4 = this.getTextFormat();
this.enabledColor = _local4.color;
}
var _local3 = this.getStyle("disabledColor");
_local2.color = _local3;
} else if (this.enabledColor != undefined) {
if (_local2.color == undefined) {
_local2.color = this.enabledColor;
}
}
return(_local2);
};
_local7.getPreferredWidth = function () {
this.draw();
return(this.textWidth + 4);
};
_local7.getPreferredHeight = function () {
this.draw();
return(this.textHeight + 4);
};
TextFormat.prototype.getTextExtent2 = function (s) {
var _local3 = _root._getTextExtent;
if (_local3 == undefined) {
_root.createTextField("_getTextExtent", -2, 0, 0, 1000, 100);
_local3 = _root._getTextExtent;
_local3._visible = false;
}
_root._getTextExtent.text = s;
var _local4 = this.align;
this.align = "left";
_root._getTextExtent.setTextFormat(this);
this.align = _local4;
return({width:_local3.textWidth, height:_local3.textHeight});
};
if (_global.style == undefined) {
_global.style = new mx.styles.CSSStyleDeclaration();
_global.cascadingStyles = true;
_global.styles = new Object();
_global.skinRegistry = new Object();
if (_global._origWidth == undefined) {
_global.origWidth = Stage.width;
_global.origHeight = Stage.height;
}
}
var _local4 = _root;
while (_local4._parent != undefined) {
_local4 = _local4._parent;
}
_local4.addProperty("width", function () {
return(Stage.width);
}, null);
_local4.addProperty("height", function () {
return(Stage.height);
}, null);
_global.ASSetPropFlags(_local4, "width", 1);
_global.ASSetPropFlags(_local4, "height", 1);
return(true);
}
static var bExtended = false;
static var UIObjectExtended = Extensions();
static var UIObjectDependency = mx.core.UIObject;
static var SkinElementDependency = mx.skins.SkinElement;
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
static var UIEventDispatcherDependency = mx.events.UIEventDispatcher;
}
Symbol 238 MovieClip [__Packages.mx.skins.halo.Defaults] Frame 0
class mx.skins.halo.Defaults
{
var beginGradientFill, beginFill, moveTo, lineTo, curveTo, endFill;
function Defaults () {
}
static function setThemeDefaults() {
var _local2 = _global.style;
_local2.themeColor = 8453965 /* 0x80FF4D */;
_local2.disabledColor = 8684164 /* 0x848284 */;
_local2.modalTransparency = 0;
_local2.filled = true;
_local2.stroked = true;
_local2.strokeWidth = 1;
_local2.strokeColor = 0;
_local2.fillColor = 16777215 /* 0xFFFFFF */;
_local2.repeatInterval = 35;
_local2.repeatDelay = 500;
_local2.fontFamily = "_sans";
_local2.fontSize = 12;
_local2.selectionColor = 13500353 /* 0xCDFFC1 */;
_local2.rollOverColor = 14942166 /* 0xE3FFD6 */;
_local2.useRollOver = true;
_local2.backgroundDisabledColor = 14540253 /* 0xDDDDDD */;
_local2.selectionDisabledColor = 14540253 /* 0xDDDDDD */;
_local2.selectionDuration = 200;
_local2.openDuration = 250;
_local2.borderStyle = "inset";
_local2.color = 734012 /* 0x0B333C */;
_local2.textSelectedColor = 24371;
_local2.textRollOverColor = 2831164 /* 0x2B333C */;
_local2.textDisabledColor = 16777215 /* 0xFFFFFF */;
_local2.vGridLines = true;
_local2.hGridLines = false;
_local2.vGridLineColor = 6710886 /* 0x666666 */;
_local2.hGridLineColor = 6710886 /* 0x666666 */;
_local2.headerColor = 15395562 /* 0xEAEAEA */;
_local2.indentation = 17;
_local2.folderOpenIcon = "TreeFolderOpen";
_local2.folderClosedIcon = "TreeFolderClosed";
_local2.defaultLeafIcon = "TreeNodeIcon";
_local2.disclosureOpenIcon = "TreeDisclosureOpen";
_local2.disclosureClosedIcon = "TreeDisclosureClosed";
_local2.popupDuration = 150;
_local2.todayColor = 6710886 /* 0x666666 */;
_local2 = (_global.styles.ScrollSelectList = new mx.styles.CSSStyleDeclaration());
_local2.backgroundColor = 16777215 /* 0xFFFFFF */;
_local2.borderColor = 13290186 /* 0xCACACA */;
_local2.borderStyle = "inset";
_local2 = (_global.styles.ComboBox = new mx.styles.CSSStyleDeclaration());
_local2.borderStyle = "inset";
_local2 = (_global.styles.NumericStepper = new mx.styles.CSSStyleDeclaration());
_local2.textAlign = "center";
_local2 = (_global.styles.RectBorder = new mx.styles.CSSStyleDeclaration());
_local2.borderColor = 14015965 /* 0xD5DDDD */;
_local2.buttonColor = 7305079 /* 0x6F7777 */;
_local2.shadowColor = 15658734 /* 0xEEEEEE */;
_local2.highlightColor = 12897484 /* 0xC4CCCC */;
_local2.shadowCapColor = 14015965 /* 0xD5DDDD */;
_local2.borderCapColor = 9542041 /* 0x919999 */;
var _local4 = new Object();
_local4.borderColor = 16711680 /* 0xFF0000 */;
_local4.buttonColor = 16711680 /* 0xFF0000 */;
_local4.shadowColor = 16711680 /* 0xFF0000 */;
_local4.highlightColor = 16711680 /* 0xFF0000 */;
_local4.shadowCapColor = 16711680 /* 0xFF0000 */;
_local4.borderCapColor = 16711680 /* 0xFF0000 */;
mx.core.UIComponent.prototype.origBorderStyles = _local4;
var _local3;
_local3 = (_global.styles.TextInput = new mx.styles.CSSStyleDeclaration());
_local3.backgroundColor = 16777215 /* 0xFFFFFF */;
_local3.borderStyle = "inset";
_global.styles.TextArea = _global.styles.TextInput;
_local3 = (_global.styles.Window = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "default";
_local3 = (_global.styles.windowStyles = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3 = (_global.styles.dataGridStyles = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3 = (_global.styles.Alert = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "alert";
_local3 = (_global.styles.ScrollView = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "inset";
_local3 = (_global.styles.View = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "none";
_local3 = (_global.styles.ProgressBar = new mx.styles.CSSStyleDeclaration());
_local3.color = 11187123 /* 0xAAB3B3 */;
_local3.fontWeight = "bold";
_local3 = (_global.styles.AccordionHeader = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3.fontSize = "11";
_local3 = (_global.styles.Accordion = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "solid";
_local3.backgroundColor = 16777215 /* 0xFFFFFF */;
_local3.borderColor = 9081738 /* 0x8A938A */;
_local3.headerHeight = 22;
_local3.marginLeft = (_local3.marginRight = (_local3.marginTop = (_local3.marginBottom = -1)));
_local3.verticalGap = -1;
_local3 = (_global.styles.DateChooser = new mx.styles.CSSStyleDeclaration());
_local3.borderColor = 9542041 /* 0x919999 */;
_local3.headerColor = 16777215 /* 0xFFFFFF */;
_local3 = (_global.styles.CalendarLayout = new mx.styles.CSSStyleDeclaration());
_local3.fontSize = 10;
_local3.textAlign = "right";
_local3.color = 2831164 /* 0x2B333C */;
_local3 = (_global.styles.WeekDayStyle = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3.fontSize = 11;
_local3.textAlign = "center";
_local3.color = 2831164 /* 0x2B333C */;
_local3 = (_global.styles.TodayStyle = new mx.styles.CSSStyleDeclaration());
_local3.color = 16777215 /* 0xFFFFFF */;
_local3 = (_global.styles.HeaderDateText = new mx.styles.CSSStyleDeclaration());
_local3.fontSize = 12;
_local3.fontWeight = "bold";
_local3.textAlign = "center";
}
function drawRoundRect(x, y, w, h, r, c, alpha, rot, gradient, ratios) {
if (typeof(r) == "object") {
var _local18 = r.br;
var _local16 = r.bl;
var _local15 = r.tl;
var _local10 = r.tr;
} else {
var _local10 = r;
var _local15 = _local10;
var _local16 = _local15;
var _local18 = _local16;
}
if (typeof(c) == "object") {
if (typeof(alpha) != "object") {
var _local9 = [alpha, alpha];
} else {
var _local9 = alpha;
}
if (ratios == undefined) {
ratios = [0, 255];
}
var _local14 = h * 0.7;
if (typeof(rot) != "object") {
var _local11 = {matrixType:"box", x:-_local14, y:_local14, w:w * 2, h:h * 4, r:rot * 0.0174532925199433 /* Math.PI/180 */};
} else {
var _local11 = rot;
}
if (gradient == "radial") {
beginGradientFill("radial", c, _local9, ratios, _local11);
} else {
beginGradientFill("linear", c, _local9, ratios, _local11);
}
} else if (c != undefined) {
beginFill(c, alpha);
}
r = _local18;
var _local13 = r - (r * 0.707106781186547);
var _local12 = r - (r * 0.414213562373095);
moveTo(x + w, (y + h) - r);
lineTo(x + w, (y + h) - r);
curveTo(x + w, (y + h) - _local12, (x + w) - _local13, (y + h) - _local13);
curveTo((x + w) - _local12, y + h, (x + w) - r, y + h);
r = _local16;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo(x + r, y + h);
curveTo(x + _local12, y + h, x + _local13, (y + h) - _local13);
curveTo(x, (y + h) - _local12, x, (y + h) - r);
r = _local15;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo(x, y + r);
curveTo(x, y + _local12, x + _local13, y + _local13);
curveTo(x + _local12, y, x + r, y);
r = _local10;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo((x + w) - r, y);
curveTo((x + w) - _local12, y, (x + w) - _local13, y + _local13);
curveTo(x + w, y + _local12, x + w, y + r);
lineTo(x + w, (y + h) - r);
if (c != undefined) {
endFill();
}
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
setThemeDefaults();
mx.core.UIObject.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect;
return(true);
}
static var classConstructed = classConstruct();
static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration;
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
static var UIObjectDependency = mx.core.UIObject;
}
Symbol 239 MovieClip [__Packages.mx.managers.DepthManager] Frame 0
class mx.managers.DepthManager
{
var _childCounter, createClassObject, createObject, _parent, swapDepths, _topmost, getDepth;
function DepthManager () {
MovieClip.prototype.createClassChildAtDepth = createClassChildAtDepth;
MovieClip.prototype.createChildAtDepth = createChildAtDepth;
MovieClip.prototype.setDepthTo = setDepthTo;
MovieClip.prototype.setDepthAbove = setDepthAbove;
MovieClip.prototype.setDepthBelow = setDepthBelow;
MovieClip.prototype.findNextAvailableDepth = findNextAvailableDepth;
MovieClip.prototype.shuffleDepths = shuffleDepths;
MovieClip.prototype.getDepthByFlag = getDepthByFlag;
MovieClip.prototype.buildDepthTable = buildDepthTable;
_global.ASSetPropFlags(MovieClip.prototype, "createClassChildAtDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "createChildAtDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthTo", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthAbove", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthBelow", 1);
_global.ASSetPropFlags(MovieClip.prototype, "findNextAvailableDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "shuffleDepths", 1);
_global.ASSetPropFlags(MovieClip.prototype, "getDepthByFlag", 1);
_global.ASSetPropFlags(MovieClip.prototype, "buildDepthTable", 1);
}
static function sortFunction(a, b) {
if (a.getDepth() > b.getDepth()) {
return(1);
}
return(-1);
}
static function test(depth) {
if (depth == reservedDepth) {
return(false);
}
return(true);
}
static function createClassObjectAtDepth(className, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createClassChildAtDepth(className, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createClassChildAtDepth(className, kTop, initObj);
break;
}
return(_local1);
}
static function createObjectAtDepth(linkageName, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createChildAtDepth(linkageName, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createChildAtDepth(linkageName, kTop, initObj);
break;
}
return(_local1);
}
function createClassChildAtDepth(className, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local6 = "down";
if (depthFlag == kBottom) {
_local6 = "up";
}
var _local5;
if (_local3[_local2] != undefined) {
_local5 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local6);
}
var _local4 = createClassObject(className, "depthChild" + (_childCounter++), _local2, initObj);
if (_local5 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local5, _local3, _local6);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function createChildAtDepth(linkageName, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local6 = "down";
if (depthFlag == kBottom) {
_local6 = "up";
}
var _local5;
if (_local3[_local2] != undefined) {
_local5 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local6);
}
var _local4 = createObject(linkageName, "depthChild" + (_childCounter++), _local2, initObj);
if (_local5 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local5, _local3, _local6);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function setDepthTo(depthFlag) {
var _local2 = _parent.buildDepthTable();
var _local3 = _parent.getDepthByFlag(depthFlag, _local2);
if (_local2[_local3] != undefined) {
shuffleDepths(this, _local3, _local2, undefined);
} else {
swapDepths(_local3);
}
if (depthFlag == kTopmost) {
_topmost = true;
} else {
delete _topmost;
}
}
function setDepthAbove(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local2 = targetInstance.getDepth() + 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local2] != undefined) && (getDepth() < _local2)) {
_local2 = _local2 - 1;
}
if (_local2 > highestDepth) {
_local2 = highestDepth;
}
if (_local2 == highestDepth) {
_parent.shuffleDepths(this, _local2, _local3, "down");
} else if (_local3[_local2] != undefined) {
_parent.shuffleDepths(this, _local2, _local3, undefined);
} else {
swapDepths(_local2);
}
}
function setDepthBelow(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local6 = targetInstance.getDepth() - 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local6] != undefined) && (getDepth() > _local6)) {
_local6 = _local6 + 1;
}
var _local4 = lowestDepth + numberOfAuthortimeLayers;
var _local5;
for (_local5 in _local3) {
var _local2 = _local3[_local5];
if (_local2._parent != undefined) {
_local4 = Math.min(_local4, _local2.getDepth());
}
}
if (_local6 < _local4) {
_local6 = _local4;
}
if (_local6 == _local4) {
_parent.shuffleDepths(this, _local6, _local3, "up");
} else if (_local3[_local6] != undefined) {
_parent.shuffleDepths(this, _local6, _local3, undefined);
} else {
swapDepths(_local6);
}
}
function findNextAvailableDepth(targetDepth, depthTable, direction) {
var _local5 = lowestDepth + numberOfAuthortimeLayers;
if (targetDepth < _local5) {
targetDepth = _local5;
}
if (depthTable[targetDepth] == undefined) {
return(targetDepth);
}
var _local2 = targetDepth;
var _local1 = targetDepth;
if (direction == "down") {
while (depthTable[_local1] != undefined) {
_local1--;
}
return(_local1);
}
while (depthTable[_local2] != undefined) {
_local2++;
}
return(_local2);
}
function shuffleDepths(subject, targetDepth, depthTable, direction) {
var _local9 = lowestDepth + numberOfAuthortimeLayers;
var _local8 = _local9;
var _local5;
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local9 = Math.min(_local9, _local7.getDepth());
}
}
if (direction == undefined) {
if (subject.getDepth() > targetDepth) {
direction = "up";
} else {
direction = "down";
}
}
var _local1 = new Array();
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local1.push(_local7);
}
}
_local1.sort(sortFunction);
if (direction == "up") {
var _local3;
var _local11;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.pop();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
_local11 = subject.getDepth();
_local3 = _local1.pop();
var _local4 = _local3.getDepth();
if (_local11 > (_local4 + 1)) {
if (_local4 >= 0) {
subject.swapDepths(_local4 + 1);
} else if ((_local11 > _local8) && (_local4 < _local8)) {
subject.swapDepths(_local8);
}
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
} else if (direction == "down") {
var _local3;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.shift();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
var _local11 = _local3.getDepth();
_local3 = _local1.shift();
var _local4 = _local3.getDepth();
if ((_local11 < (_local4 - 1)) && (_local4 > 0)) {
subject.swapDepths(_local4 - 1);
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
}
}
function getDepthByFlag(depthFlag, depthTable) {
var _local2 = 0;
if ((depthFlag == kTop) || (depthFlag == kNotopmost)) {
var _local5 = 0;
var _local7 = false;
var _local8;
for (_local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
if (!_local9._topmost) {
_local2 = Math.max(_local2, _local9.getDepth());
} else if (!_local7) {
_local5 = _local9.getDepth();
_local7 = true;
} else {
_local5 = Math.min(_local5, _local9.getDepth());
}
}
}
}
_local2 = _local2 + 20;
if (_local7) {
if (_local2 >= _local5) {
_local2 = _local5 - 1;
}
}
} else if (depthFlag == kBottom) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.min(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 - 20;
} else if (depthFlag == kTopmost) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.max(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 + 100;
}
if (_local2 >= highestDepth) {
_local2 = highestDepth;
}
var _local6 = lowestDepth + numberOfAuthortimeLayers;
for (var _local9 in depthTable) {
var _local4 = depthTable[_local9];
if (_local4._parent != undefined) {
_local6 = Math.min(_local6, _local4.getDepth());
}
}
if (_local2 <= _local6) {
_local2 = _local6;
}
return(_local2);
}
function buildDepthTable(Void) {
var _local5 = new Array();
var _local4;
for (_local4 in this) {
var _local2 = this[_local4];
var _local3 = typeof(_local2);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local2.__getTextFormat != undefined))) {
if (_local2._parent == this) {
_local5[_local2.getDepth()] = _local2;
}
}
}
return(_local5);
}
static var reservedDepth = 1048575;
static var highestDepth = 1048574;
static var lowestDepth = -16383;
static var numberOfAuthortimeLayers = 383;
static var kCursor = 101;
static var kTooltip = 102;
static var kTop = 201;
static var kBottom = 202;
static var kTopmost = 203;
static var kNotopmost = 204;
static var holder = _root.createEmptyMovieClip("reserved", reservedDepth);
static var __depthManager = new mx.managers.DepthManager();
}
Symbol 240 MovieClip [__Packages.mx.managers.SystemManager] Frame 0
class mx.managers.SystemManager
{
static var _xAddEventListener, addEventListener, __addEventListener, _xRemoveEventListener, removeEventListener, __removeEventListener, form, __screen, dispatchEvent;
function SystemManager () {
}
static function init(Void) {
if (_initialized == false) {
_initialized = true;
mx.events.EventDispatcher.initialize(mx.managers.SystemManager);
Mouse.addListener(mx.managers.SystemManager);
Stage.addListener(mx.managers.SystemManager);
_xAddEventListener = addEventListener;
addEventListener = __addEventListener;
_xRemoveEventListener = removeEventListener;
removeEventListener = __removeEventListener;
}
}
static function addFocusManager(f) {
form = f;
f.focusManager.activate();
}
static function removeFocusManager(f) {
}
static function onMouseDown(Void) {
var _local1 = form;
_local1.focusManager._onMouseDown();
}
static function onResize(Void) {
var _local7 = Stage.width;
var _local6 = Stage.height;
var _local9 = _global.origWidth;
var _local8 = _global.origHeight;
var _local3 = Stage.align;
var _local5 = (_local9 - _local7) / 2;
var _local4 = (_local8 - _local6) / 2;
if (_local3 == "T") {
_local4 = 0;
} else if (_local3 == "B") {
_local4 = _local8 - _local6;
} else if (_local3 == "L") {
_local5 = 0;
} else if (_local3 == "R") {
_local5 = _local9 - _local7;
} else if (_local3 == "LT") {
_local4 = 0;
_local5 = 0;
} else if (_local3 == "TR") {
_local4 = 0;
_local5 = _local9 - _local7;
} else if (_local3 == "LB") {
_local4 = _local8 - _local6;
_local5 = 0;
} else if (_local3 == "RB") {
_local4 = _local8 - _local6;
_local5 = _local9 - _local7;
}
if (__screen == undefined) {
__screen = new Object();
}
__screen.x = _local5;
__screen.y = _local4;
__screen.width = _local7;
__screen.height = _local6;
_root.focusManager.relocate();
dispatchEvent({type:"resize"});
}
static function get screen() {
init();
if (__screen == undefined) {
onResize();
}
return(__screen);
}
static var _initialized = false;
static var idleFrames = 0;
static var isMouseDown = false;
static var forms = new Array();
}
Symbol 241 MovieClip [__Packages.mx.managers.FocusManager] Frame 0
class mx.managers.FocusManager extends mx.core.UIComponent
{
var __defaultPushButton, defPushButton, form, move, tabEnabled, _width, _height, _x, _y, _alpha, _parent, tabCapture, watch, lastMouse, _visible, lastFocus, doLater, lastSelFocus, cancelAllDoLaters, _searchKey, _lastTarget, _firstNode, _nextIsNext, _nextNode, _lastx, _prevNode, _needPrev, _foundList, _prevObj, _nextObj, _firstObj, _lastObj, _lastNode, lastTabFocus, findFocusFromObject;
function FocusManager () {
super();
}
function get defaultPushButton() {
return(__defaultPushButton);
}
function set defaultPushButton(x) {
if (x != __defaultPushButton) {
__defaultPushButton.__set__emphasized(false);
__defaultPushButton = x;
defPushButton = x;
x.__set__emphasized(true);
}
//return(defaultPushButton);
}
function getMaxTabIndex(o) {
var _local3 = 0;
var _local6;
for (_local6 in o) {
var _local2 = o[_local6];
if (_local2._parent == o) {
if (_local2.tabIndex != undefined) {
if (_local2.tabIndex > _local3) {
_local3 = _local2.tabIndex;
}
}
if (_local2.tabChildren == true) {
var _local4 = getMaxTabIndex(_local2);
if (_local4 > _local3) {
_local3 = _local4;
}
}
}
}
return(_local3);
}
function getNextTabIndex(Void) {
return(getMaxTabIndex(form) + 1);
}
function get nextTabIndex() {
return(getNextTabIndex());
}
function relocate(Void) {
var _local2 = mx.managers.SystemManager.__get__screen();
move(_local2.x - 1, _local2.y - 1);
}
function init(Void) {
super.init();
tabEnabled = false;
_width = (_height = 1);
_x = (_y = -1);
_alpha = 0;
_parent.focusManager = this;
_parent.tabChildren = true;
_parent.tabEnabled = false;
form = _parent;
_parent.addEventListener("hide", this);
_parent.addEventListener("reveal", this);
mx.managers.SystemManager.init();
mx.managers.SystemManager.addFocusManager(form);
tabCapture.tabIndex = 0;
watch("enabled", enabledChanged);
Selection.addListener(this);
lastMouse = new Object();
_global.ASSetPropFlags(_parent, "focusManager", 1);
_global.ASSetPropFlags(_parent, "tabChildren", 1);
_global.ASSetPropFlags(_parent, "tabEnabled", 1);
}
function enabledChanged(id, oldValue, newValue) {
_visible = newValue;
return(newValue);
}
function activate(Void) {
Key.addListener(this);
activated = (_visible = true);
if (lastFocus != undefined) {
bNeedFocus = true;
if (!mx.managers.SystemManager.isMouseDown) {
doLater(this, "restoreFocus");
}
}
}
function deactivate(Void) {
Key.removeListener(this);
activated = (_visible = false);
var _local2 = getSelectionFocus();
var _local3 = getActualFocus(_local2);
if (isOurFocus(_local3)) {
lastSelFocus = _local2;
lastFocus = _local3;
}
cancelAllDoLaters();
}
function isOurFocus(o) {
if (o.focusManager == this) {
return(true);
}
while (o != undefined) {
if (o.focusManager != undefined) {
return(false);
}
if (o._parent == _parent) {
return(true);
}
o = o._parent;
}
return(false);
}
function onSetFocus(o, n) {
if (n == null) {
if (activated) {
bNeedFocus = true;
}
} else {
var _local2 = getFocus();
if (isOurFocus(_local2)) {
bNeedFocus = false;
lastFocus = _local2;
lastSelFocus = n;
}
}
}
function restoreFocus(Void) {
var _local2 = lastSelFocus.hscroll;
if (_local2 != undefined) {
var _local5 = lastSelFocus.scroll;
var _local4 = lastSelFocus.background;
}
lastFocus.setFocus();
var _local3 = Selection;
Selection.setSelection(_local3.lastBeginIndex, _local3.lastEndIndex);
if (_local2 != undefined) {
lastSelFocus.scroll = _local5;
lastSelFocus.hscroll = _local2;
lastSelFocus.background = _local4;
}
}
function onUnload(Void) {
mx.managers.SystemManager.removeFocusManager(form);
}
function setFocus(o) {
if (o == null) {
Selection.setFocus(null);
} else if (o.setFocus == undefined) {
Selection.setFocus(o);
} else {
o.setFocus();
}
}
function getActualFocus(o) {
var _local1 = o._parent;
while (_local1 != undefined) {
if (_local1.focusTextField != undefined) {
while (_local1.focusTextField != undefined) {
o = _local1;
_local1 = _local1._parent;
if (_local1 == undefined) {
return(undefined);
}
if (_local1.focusTextField == undefined) {
return(o);
}
}
}
if (_local1.tabEnabled != true) {
return(o);
}
o = _local1;
_local1 = o._parent;
}
return(undefined);
}
function getSelectionFocus() {
var m = Selection.getFocus();
var o = eval (m);
return(o);
}
function getFocus(Void) {
var _local2 = getSelectionFocus();
return(getActualFocus(_local2));
}
function walkTree(p, index, groupName, dir, lookup, firstChild) {
var _local5 = true;
var _local11;
for (_local11 in p) {
var _local2 = p[_local11];
if ((((_local2._parent == p) && (_local2.enabled != false)) && (_local2._visible != false)) && ((_local2.tabEnabled == true) || ((_local2.tabEnabled != false) && ((((((((_local2.onPress != undefined) || (_local2.onRelease != undefined)) || (_local2.onReleaseOutside != undefined)) || (_local2.onDragOut != undefined)) || (_local2.onDragOver != undefined)) || (_local2.onRollOver != undefined)) || (_local2.onRollOut != undefined)) || (_local2 instanceof TextField))))) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
if (_local2 != _lastTarget) {
if (((_local2.groupName != undefined) || (groupName != undefined)) && (_local2.groupName == groupName)) {
continue;
}
if ((_local2 instanceof TextField) && (_local2.selectable == false)) {
continue;
}
if (_local5 || (((_local2.groupName != undefined) && (_local2.groupName == _firstNode.groupName)) && (_local2.selected == true))) {
if (firstChild) {
_firstNode = _local2;
firstChild = false;
}
}
if (_nextIsNext == true) {
if ((((_local2.groupName != undefined) && (_local2.groupName == _nextNode.groupName)) && (_local2.selected == true)) || ((_nextNode == undefined) && ((_local2.groupName == undefined) || ((_local2.groupName != undefined) && (_local2.groupName != groupName))))) {
_nextNode = _local2;
}
}
if ((_local2.groupName == undefined) || (groupName != _local2.groupName)) {
if (((_lastx.groupName != undefined) && (_local2.groupName == _lastx.groupName)) && (_lastx.selected == true)) {
} else {
_lastx = _local2;
}
}
} else {
_prevNode = _lastx;
_needPrev = false;
_nextIsNext = true;
}
if (_local2.tabIndex != undefined) {
if (_local2.tabIndex == index) {
if (_foundList[_local2._name] == undefined) {
if (_needPrev) {
_prevObj = _local2;
_needPrev = false;
}
_nextObj = _local2;
}
}
if (dir && (_local2.tabIndex > index)) {
if (((_nextObj == undefined) || ((_nextObj.tabIndex > _local2.tabIndex) && (((_local2.groupName == undefined) || (_nextObj.groupName == undefined)) || (_local2.groupName != _nextObj.groupName)))) || ((((_nextObj.groupName != undefined) && (_nextObj.groupName == _local2.groupName)) && (_nextObj.selected != true)) && ((_local2.selected == true) || (_nextObj.tabIndex > _local2.tabIndex)))) {
_nextObj = _local2;
}
} else if ((!dir) && (_local2.tabIndex < index)) {
if (((_prevObj == undefined) || ((_prevObj.tabIndex < _local2.tabIndex) && (((_local2.groupName == undefined) || (_prevObj.groupName == undefined)) || (_local2.groupName != _prevObj.groupName)))) || ((((_prevObj.groupName != undefined) && (_prevObj.groupName == _local2.groupName)) && (_prevObj.selected != true)) && ((_local2.selected == true) || (_prevObj.tabIndex < _local2.tabIndex)))) {
_prevObj = _local2;
}
}
if (((_firstObj == undefined) || ((_local2.tabIndex < _firstObj.tabIndex) && (((_local2.groupName == undefined) || (_firstObj.groupName == undefined)) || (_local2.groupName != _firstObj.groupName)))) || ((((_firstObj.groupName != undefined) && (_firstObj.groupName == _local2.groupName)) && (_firstObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex < _firstObj.tabIndex)))) {
_firstObj = _local2;
}
if (((_lastObj == undefined) || ((_local2.tabIndex > _lastObj.tabIndex) && (((_local2.groupName == undefined) || (_lastObj.groupName == undefined)) || (_local2.groupName != _lastObj.groupName)))) || ((((_lastObj.groupName != undefined) && (_lastObj.groupName == _local2.groupName)) && (_lastObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex > _lastObj.tabIndex)))) {
_lastObj = _local2;
}
}
if (_local2.tabChildren) {
getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild));
}
_local5 = false;
} else if (((_local2._parent == p) && (_local2.tabChildren == true)) && (_local2._visible != false)) {
if (_local2 == _lastTarget) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
if (_prevNode == undefined) {
var _local3 = _lastx;
var _local7 = false;
while (_local3 != undefined) {
if (_local3 == _local2) {
_local7 = true;
break;
}
_local3 = _local3._parent;
}
if (_local7 == false) {
_prevNode = _lastx;
}
}
_needPrev = false;
if (_nextNode == undefined) {
_nextIsNext = true;
}
} else if (!((_local2.focusManager != undefined) && (_local2.focusManager._parent == _local2))) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild));
}
_local5 = false;
}
}
_lastNode = _lastx;
if (lookup) {
if (p._parent != undefined) {
if (p != _parent) {
if ((_prevNode == undefined) && (dir)) {
_needPrev = true;
} else if ((_nextNode == undefined) && (!dir)) {
_nextIsNext = false;
}
_lastTarget = _lastTarget._parent;
getTabCandidate(p._parent, index, groupName, dir, true);
}
}
}
}
function getTabCandidate(o, index, groupName, dir, firstChild) {
var _local2;
var _local3 = true;
if (o == _parent) {
_local2 = o;
_local3 = false;
} else {
_local2 = o._parent;
if (_local2 == undefined) {
_local2 = o;
_local3 = false;
}
}
walkTree(_local2, index, groupName, dir, _local3, firstChild);
}
function getTabCandidateFromChildren(o, index, groupName, dir, firstChild) {
walkTree(o, index, groupName, dir, false, firstChild);
}
function getFocusManagerFromObject(o) {
while (o != undefined) {
if (o.focusManager != undefined) {
return(o.focusManager);
}
o = o._parent;
}
return(undefined);
}
function tabHandler(Void) {
bDrawFocus = true;
var _local5 = getSelectionFocus();
var _local4 = getActualFocus(_local5);
if (_local4 != _local5) {
_local5 = _local4;
}
if (getFocusManagerFromObject(_local5) != this) {
_local5 == undefined;
}
if (_local5 == undefined) {
_local5 = form;
} else if (_local5.tabIndex != undefined) {
if ((_foundList != undefined) || (_foundList.tabIndex != _local5.tabIndex)) {
_foundList = new Object();
_foundList.tabIndex = _local5.tabIndex;
}
_foundList[_local5._name] = _local5;
}
var _local3 = Key.isDown(16) != true;
_searchKey = getTimer();
_needPrev = true;
_nextIsNext = false;
_lastx = undefined;
_firstNode = undefined;
_lastNode = undefined;
_nextNode = undefined;
_prevNode = undefined;
_firstObj = undefined;
_lastObj = undefined;
_nextObj = undefined;
_prevObj = undefined;
_lastTarget = _local5;
var _local6 = _local5;
getTabCandidate(_local6, ((_local5.tabIndex == undefined) ? 0 : (_local5.tabIndex)), _local5.groupName, _local3, true);
var _local2;
if (_local3) {
if (_nextObj != undefined) {
_local2 = _nextObj;
} else {
_local2 = _firstObj;
}
} else if (_prevObj != undefined) {
_local2 = _prevObj;
} else {
_local2 = _lastObj;
}
if (_local2.tabIndex != _local5.tabIndex) {
_foundList = new Object();
_foundList.tabIndex = _local2.tabIndex;
_foundList[_local2._name] = _local2;
} else {
if (_foundList == undefined) {
_foundList = new Object();
_foundList.tabIndex = _local2.tabIndex;
}
_foundList[_local2._name] = _local2;
}
if (_local2 == undefined) {
if (_local3 == false) {
if (_nextNode != undefined) {
_local2 = _nextNode;
} else {
_local2 = _firstNode;
}
} else if ((_prevNode == undefined) || (_local5 == form)) {
_local2 = _lastNode;
} else {
_local2 = _prevNode;
}
}
if (_local2 == undefined) {
return(undefined);
}
lastTabFocus = _local2;
setFocus(_local2);
if (_local2.emphasized != undefined) {
if (defPushButton != undefined) {
_local5 = defPushButton;
defPushButton = _local2;
_local5.emphasized = false;
_local2.emphasized = true;
}
} else if ((defPushButton != undefined) && (defPushButton != __defaultPushButton)) {
_local5 = defPushButton;
defPushButton = __defaultPushButton;
_local5.emphasized = false;
__defaultPushButton.__set__emphasized(true);
}
}
function onKeyDown(Void) {
mx.managers.SystemManager.idleFrames = 0;
if (defaultPushButtonEnabled) {
if (Key.getCode() == 13) {
if (defaultPushButton != undefined) {
doLater(this, "sendDefaultPushButtonEvent");
}
}
}
}
function sendDefaultPushButtonEvent(Void) {
defPushButton.dispatchEvent({type:"click"});
}
function getMousedComponentFromChildren(x, y, o) {
for (var _local7 in o) {
var _local2 = o[_local7];
if (((_local2._visible && (_local2.enabled)) && (_local2._parent == o)) && (_local2._searchKey != _searchKey)) {
_local2._searchKey = _searchKey;
if (_local2.hitTest(x, y, true)) {
if ((_local2.onPress != undefined) || (_local2.onRelease != undefined)) {
return(_local2);
}
var _local3 = getMousedComponentFromChildren(x, y, _local2);
if (_local3 != undefined) {
return(_local3);
}
return(_local2);
}
}
}
return(undefined);
}
function mouseActivate(Void) {
if (!bNeedFocus) {
return(undefined);
}
_searchKey = getTimer();
var _local2 = getMousedComponentFromChildren(lastMouse.x, lastMouse.y, form);
if (_local2 instanceof mx.core.UIComponent) {
return(undefined);
}
_local2 = findFocusFromObject(_local2);
if (_local2 == lastFocus) {
return(undefined);
}
if (_local2 == undefined) {
doLater(this, "restoreFocus");
return(undefined);
}
var _local3 = _local2.hscroll;
if (_local3 != undefined) {
var _local6 = _local2.scroll;
var _local5 = _local2.background;
}
setFocus(_local2);
var _local4 = Selection;
Selection.setSelection(_local4.lastBeginIndex, _local4.lastEndIndex);
if (_local3 != undefined) {
_local2.scroll = _local6;
_local2.hscroll = _local3;
_local2.background = _local5;
}
}
function _onMouseDown(Void) {
bDrawFocus = false;
if (lastFocus != undefined) {
lastFocus.drawFocus(false);
}
mx.managers.SystemManager.idleFrames = 0;
var _local3 = Selection;
_local3.lastBeginIndex = Selection.getBeginIndex();
_local3.lastEndIndex = Selection.getEndIndex();
lastMouse.x = _root._xmouse;
lastMouse.y = _root._ymouse;
_root.localToGlobal(lastMouse);
}
function onMouseUp(Void) {
if (_visible) {
doLater(this, "mouseActivate");
}
}
function handleEvent(e) {
if (e.type == "reveal") {
mx.managers.SystemManager.activate(form);
} else {
mx.managers.SystemManager.deactivate(form);
}
}
static function enableFocusManagement() {
if (!initialized) {
initialized = true;
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
}
}
static var symbolName = "FocusManager";
static var symbolOwner = mx.managers.FocusManager;
static var version = "2.0.2.127";
var className = "FocusManager";
var bNeedFocus = false;
var bDrawFocus = false;
var defaultPushButtonEnabled = true;
var activated = true;
static var initialized = false;
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 242 MovieClip [__Packages.mx.skins.halo.FocusRect] Frame 0
class mx.skins.halo.FocusRect extends mx.skins.SkinElement
{
var boundingBox_mc, _xscale, _yscale, clear, beginFill, drawRoundRect, endFill, _visible;
function FocusRect () {
super();
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function draw(o) {
o.adjustFocusRect();
}
function setSize(w, h, r, a, rectCol) {
_xscale = (_yscale = 100);
clear();
if (typeof(r) == "object") {
r.br = ((r.br > 2) ? (r.br - 2) : 0);
r.bl = ((r.bl > 2) ? (r.bl - 2) : 0);
r.tr = ((r.tr > 2) ? (r.tr - 2) : 0);
r.tl = ((r.tl > 2) ? (r.tl - 2) : 0);
beginFill(rectCol, a * 0.3);
drawRoundRect(0, 0, w, h, r);
drawRoundRect(2, 2, w - 4, h - 4, r);
endFill();
r.br = ((r.br > 1) ? (r.br + 1) : 0);
r.bl = ((r.bl > 1) ? (r.bl + 1) : 0);
r.tr = ((r.tr > 1) ? (r.tr + 1) : 0);
r.tl = ((r.tl > 1) ? (r.tl + 1) : 0);
beginFill(rectCol, a * 0.3);
drawRoundRect(1, 1, w - 2, h - 2, r);
r.br = ((r.br > 1) ? (r.br - 1) : 0);
r.bl = ((r.bl > 1) ? (r.bl - 1) : 0);
r.tr = ((r.tr > 1) ? (r.tr - 1) : 0);
r.tl = ((r.tl > 1) ? (r.tl - 1) : 0);
drawRoundRect(2, 2, w - 4, h - 4, r);
endFill();
} else {
var _local5;
if (r != 0) {
_local5 = r - 2;
} else {
_local5 = 0;
}
beginFill(rectCol, a * 0.3);
drawRoundRect(0, 0, w, h, r);
drawRoundRect(2, 2, w - 4, h - 4, _local5);
endFill();
beginFill(rectCol, a * 0.3);
if (r != 0) {
_local5 = r - 2;
r = r - 1;
} else {
_local5 = 0;
r = 0;
}
drawRoundRect(1, 1, w - 2, h - 2, r);
drawRoundRect(2, 2, w - 4, h - 4, _local5);
endFill();
}
}
function handleEvent(e) {
if (e.type == "unload") {
_visible = true;
} else if (e.type == "resize") {
e.target.adjustFocusRect();
} else if (e.type == "move") {
e.target.adjustFocusRect();
}
}
static function classConstruct() {
mx.core.UIComponent.prototype.drawFocus = function (focused) {
var _local2 = this._parent.focus_mc;
if (!focused) {
_local2._visible = false;
this.removeEventListener("unload", _local2);
this.removeEventListener("move", _local2);
this.removeEventListener("resize", _local2);
} else {
if (_local2 == undefined) {
_local2 = this._parent.createChildAtDepth("FocusRect", mx.managers.DepthManager.kTop);
_local2.tabEnabled = false;
this._parent.focus_mc = _local2;
} else {
_local2._visible = true;
}
_local2.draw(this);
if (_local2.getDepth() < this.getDepth()) {
_local2.setDepthAbove(this);
}
this.addEventListener("unload", _local2);
this.addEventListener("move", _local2);
this.addEventListener("resize", _local2);
}
};
mx.core.UIComponent.prototype.adjustFocusRect = function () {
var _local2 = this.getStyle("themeColor");
if (_local2 == undefined) {
_local2 = 8453965 /* 0x80FF4D */;
}
var _local3 = this._parent.focus_mc;
_local3.setSize(this.width + 4, this.height + 4, 0, 100, _local2);
_local3.move(this.x - 2, this.y - 2);
};
TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus;
TextField.prototype.adjustFocusRect = mx.core.UIComponent.prototype.adjustFocusRect;
mx.skins.halo.FocusRect.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect;
return(true);
}
static var classConstructed = classConstruct();
static var DefaultsDependency = mx.skins.halo.Defaults;
static var UIComponentDependency = mx.core.UIComponent;
}
Symbol 243 MovieClip [__Packages.mx.managers.OverlappedWindows] Frame 0
class mx.managers.OverlappedWindows
{
function OverlappedWindows () {
}
static function checkIdle(Void) {
if (mx.managers.SystemManager.idleFrames > 10) {
mx.managers.SystemManager.dispatchEvent({type:"idle"});
} else {
mx.managers.SystemManager.idleFrames++;
}
}
static function __addEventListener(e, o, l) {
if (e == "idle") {
if (mx.managers.SystemManager.interval == undefined) {
mx.managers.SystemManager.interval = setInterval(mx.managers.SystemManager.checkIdle, 100);
}
}
mx.managers.SystemManager._xAddEventListener(e, o, l);
}
static function __removeEventListener(e, o, l) {
if (e == "idle") {
if (mx.managers.SystemManager._xRemoveEventListener(e, o, l) == 0) {
clearInterval(mx.managers.SystemManager.interval);
}
} else {
mx.managers.SystemManager._xRemoveEventListener(e, o, l);
}
}
static function onMouseDown(Void) {
mx.managers.SystemManager.idleFrames = 0;
mx.managers.SystemManager.isMouseDown = true;
var _local5 = _root;
var _local3;
var _local8 = _root._xmouse;
var _local7 = _root._ymouse;
if (mx.managers.SystemManager.form.modalWindow == undefined) {
if (mx.managers.SystemManager.forms.length > 1) {
var _local6 = mx.managers.SystemManager.forms.length;
var _local4;
_local4 = 0;
while (_local4 < _local6) {
var _local2 = mx.managers.SystemManager.forms[_local4];
if (_local2._visible) {
if (_local2.hitTest(_local8, _local7)) {
if (_local3 == undefined) {
_local3 = _local2.getDepth();
_local5 = _local2;
} else if (_local3 < _local2.getDepth()) {
_local3 = _local2.getDepth();
_local5 = _local2;
}
}
}
_local4++;
}
if (_local5 != mx.managers.SystemManager.form) {
mx.managers.SystemManager.activate(_local5);
}
}
}
var _local9 = mx.managers.SystemManager.form;
_local9.focusManager._onMouseDown();
}
static function onMouseMove(Void) {
mx.managers.SystemManager.idleFrames = 0;
}
static function onMouseUp(Void) {
mx.managers.SystemManager.isMouseDown = false;
mx.managers.SystemManager.idleFrames = 0;
}
static function activate(f) {
if (mx.managers.SystemManager.form != undefined) {
if ((mx.managers.SystemManager.form != f) && (mx.managers.SystemManager.forms.length > 1)) {
var _local1 = mx.managers.SystemManager.form;
_local1.focusManager.deactivate();
}
}
mx.managers.SystemManager.form = f;
f.focusManager.activate();
}
static function deactivate(f) {
if (mx.managers.SystemManager.form != undefined) {
if ((mx.managers.SystemManager.form == f) && (mx.managers.SystemManager.forms.length > 1)) {
var _local5 = mx.managers.SystemManager.form;
_local5.focusManager.deactivate();
var _local3 = mx.managers.SystemManager.forms.length;
var _local1;
var _local2;
_local1 = 0;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1] == f) {
_local1 = _local1 + 1;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1]._visible == true) {
_local2 = mx.managers.SystemManager.forms[_local1];
}
_local1++;
}
mx.managers.SystemManager.form = _local2;
break;
}
if (mx.managers.SystemManager.forms[_local1]._visible == true) {
_local2 = mx.managers.SystemManager.forms[_local1];
}
_local1++;
}
_local5 = mx.managers.SystemManager.form;
_local5.focusManager.activate();
}
}
}
static function addFocusManager(f) {
mx.managers.SystemManager.forms.push(f);
mx.managers.SystemManager.activate(f);
}
static function removeFocusManager(f) {
var _local3 = mx.managers.SystemManager.forms.length;
var _local1;
_local1 = 0;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1] == f) {
if (mx.managers.SystemManager.form == f) {
mx.managers.SystemManager.deactivate(f);
}
mx.managers.SystemManager.forms.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
static function enableOverlappedWindows() {
if (!initialized) {
initialized = true;
mx.managers.SystemManager.checkIdle = checkIdle;
mx.managers.SystemManager.__addEventListener = __addEventListener;
mx.managers.SystemManager.__removeEventListener = __removeEventListener;
mx.managers.SystemManager.onMouseDown = onMouseDown;
mx.managers.SystemManager.onMouseMove = onMouseMove;
mx.managers.SystemManager.onMouseUp = onMouseUp;
mx.managers.SystemManager.activate = activate;
mx.managers.SystemManager.deactivate = deactivate;
mx.managers.SystemManager.addFocusManager = addFocusManager;
mx.managers.SystemManager.removeFocusManager = removeFocusManager;
}
}
static var initialized = false;
static var SystemManagerDependency = mx.managers.SystemManager;
}
Symbol 244 MovieClip [__Packages.mx.styles.CSSSetStyle] Frame 0
class mx.styles.CSSSetStyle
{
var styleName, stylecache, _color, setColor, invalidateStyle;
function CSSSetStyle () {
}
function _setStyle(styleProp, newValue) {
this[styleProp] = newValue;
if (mx.styles.StyleManager.TextStyleMap[styleProp] != undefined) {
if (styleProp == "color") {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
}
_level0.changeTextStyleInChildren(styleProp);
return(undefined);
}
if (mx.styles.StyleManager.isColorStyle(styleProp)) {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
if (styleProp == "themeColor") {
var _local7 = mx.styles.StyleManager.colorNames.haloBlue;
var _local6 = mx.styles.StyleManager.colorNames.haloGreen;
var _local8 = mx.styles.StyleManager.colorNames.haloOrange;
var _local4 = {};
_local4[_local7] = 12188666 /* 0xB9FBFA */;
_local4[_local6] = 13500353 /* 0xCDFFC1 */;
_local4[_local8] = 16766319 /* 0xFFD56F */;
var _local5 = {};
_local5[_local7] = 13958653 /* 0xD4FDFD */;
_local5[_local6] = 14942166 /* 0xE3FFD6 */;
_local5[_local8] = 16772787 /* 0xFFEEB3 */;
var _local9 = _local4[newValue];
var _local10 = _local5[newValue];
if (_local9 == undefined) {
_local9 = newValue;
}
if (_local10 == undefined) {
_local10 = newValue;
}
setStyle("selectionColor", _local9);
setStyle("rollOverColor", _local10);
}
_level0.changeColorStyleInChildren(styleName, styleProp, newValue);
} else {
if ((styleProp == "backgroundColor") && (isNaN(newValue))) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
_level0.notifyStyleChangeInChildren(styleName, styleProp, newValue);
}
}
function changeTextStyleInChildren(styleProp) {
var _local4 = getTimer();
var _local5;
for (_local5 in this) {
var _local2 = this[_local5];
if (_local2._parent == this) {
if (_local2.searchKey != _local4) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache.tf;
delete _local2.stylecache[styleProp];
}
_local2.invalidateStyle(styleProp);
_local2.changeTextStyleInChildren(styleProp);
_local2.searchKey = _local4;
}
}
}
}
function changeColorStyleInChildren(sheetName, colorStyle, newValue) {
var _local6 = getTimer();
var _local7;
for (_local7 in this) {
var _local2 = this[_local7];
if (_local2._parent == this) {
if (_local2.searchKey != _local6) {
if (((_local2.getStyleName() == sheetName) || (sheetName == undefined)) || (sheetName == "_global")) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache[colorStyle];
}
if (typeof(_local2._color) == "string") {
if (_local2._color == colorStyle) {
var _local4 = _local2.getStyle(colorStyle);
if (colorStyle == "color") {
if (stylecache.tf.color != undefined) {
stylecache.tf.color = _local4;
}
}
_local2.setColor(_local4);
}
} else if (_local2._color[colorStyle] != undefined) {
if (typeof(_local2) != "movieclip") {
_local2._parent.invalidateStyle();
} else {
_local2.invalidateStyle(colorStyle);
}
}
}
_local2.changeColorStyleInChildren(sheetName, colorStyle, newValue);
_local2.searchKey = _local6;
}
}
}
}
function notifyStyleChangeInChildren(sheetName, styleProp, newValue) {
var _local5 = getTimer();
var _local6;
for (_local6 in this) {
var _local2 = this[_local6];
if (_local2._parent == this) {
if (_local2.searchKey != _local5) {
if (((_local2.styleName == sheetName) || ((_local2.styleName != undefined) && (typeof(_local2.styleName) == "movieclip"))) || (sheetName == undefined)) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache[styleProp];
delete _local2.stylecache.tf;
}
delete _local2.enabledColor;
_local2.invalidateStyle(styleProp);
}
_local2.notifyStyleChangeInChildren(sheetName, styleProp, newValue);
_local2.searchKey = _local5;
}
}
}
}
function setStyle(styleProp, newValue) {
if (stylecache != undefined) {
delete stylecache[styleProp];
delete stylecache.tf;
}
this[styleProp] = newValue;
if (mx.styles.StyleManager.isColorStyle(styleProp)) {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
if (styleProp == "themeColor") {
var _local10 = mx.styles.StyleManager.colorNames.haloBlue;
var _local9 = mx.styles.StyleManager.colorNames.haloGreen;
var _local11 = mx.styles.StyleManager.colorNames.haloOrange;
var _local6 = {};
_local6[_local10] = 12188666 /* 0xB9FBFA */;
_local6[_local9] = 13500353 /* 0xCDFFC1 */;
_local6[_local11] = 16766319 /* 0xFFD56F */;
var _local7 = {};
_local7[_local10] = 13958653 /* 0xD4FDFD */;
_local7[_local9] = 14942166 /* 0xE3FFD6 */;
_local7[_local11] = 16772787 /* 0xFFEEB3 */;
var _local12 = _local6[newValue];
var _local13 = _local7[newValue];
if (_local12 == undefined) {
_local12 = newValue;
}
if (_local13 == undefined) {
_local13 = newValue;
}
setStyle("selectionColor", _local12);
setStyle("rollOverColor", _local13);
}
if (typeof(_color) == "string") {
if (_color == styleProp) {
if (styleProp == "color") {
if (stylecache.tf.color != undefined) {
stylecache.tf.color = newValue;
}
}
setColor(newValue);
}
} else if (_color[styleProp] != undefined) {
invalidateStyle(styleProp);
}
changeColorStyleInChildren(undefined, styleProp, newValue);
} else {
if ((styleProp == "backgroundColor") && (isNaN(newValue))) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
invalidateStyle(styleProp);
}
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (styleProp == "styleName")) {
var _local8;
var _local5 = newValue;
if (styleProp == "styleName") {
_local8 = ((typeof(newValue) == "string") ? (_global.styles[newValue]) : (_local5));
_local5 = _local8.themeColor;
if (_local5 != undefined) {
_local8.rollOverColor = (_local8.selectionColor = _local5);
}
}
notifyStyleChangeInChildren(undefined, styleProp, newValue);
}
}
static function enableRunTimeCSS() {
}
static function classConstruct() {
var _local2 = MovieClip.prototype;
var _local3 = mx.styles.CSSSetStyle.prototype;
mx.styles.CSSStyleDeclaration.prototype.setStyle = _local3._setStyle;
_local2.changeTextStyleInChildren = _local3.changeTextStyleInChildren;
_local2.changeColorStyleInChildren = _local3.changeColorStyleInChildren;
_local2.notifyStyleChangeInChildren = _local3.notifyStyleChangeInChildren;
_local2.setStyle = _local3.setStyle;
_global.ASSetPropFlags(_local2, "changeTextStyleInChildren", 1);
_global.ASSetPropFlags(_local2, "changeColorStyleInChildren", 1);
_global.ASSetPropFlags(_local2, "notifyStyleChangeInChildren", 1);
_global.ASSetPropFlags(_local2, "setStyle", 1);
var _local4 = TextField.prototype;
_local4.setStyle = _local2.setStyle;
_local4.changeTextStyleInChildren = _local3.changeTextStyleInChildren;
return(true);
}
static var classConstructed = classConstruct();
static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration;
}
Symbol 245 MovieClip [__Packages.mx.core.ext.UIComponentExtensions] Frame 0
class mx.core.ext.UIComponentExtensions
{
function UIComponentExtensions () {
}
static function Extensions() {
if (bExtended == true) {
return(true);
}
bExtended = true;
TextField.prototype.setFocus = function () {
Selection.setFocus(this);
};
TextField.prototype.onSetFocus = function (oldFocus) {
if (this.tabEnabled != false) {
if (this.getFocusManager().bDrawFocus) {
this.drawFocus(true);
}
}
};
TextField.prototype.onKillFocus = function (oldFocus) {
if (this.tabEnabled != false) {
this.drawFocus(false);
}
};
TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus;
TextField.prototype.getFocusManager = mx.core.UIComponent.prototype.getFocusManager;
mx.managers.OverlappedWindows.enableOverlappedWindows();
mx.styles.CSSSetStyle.enableRunTimeCSS();
mx.managers.FocusManager.enableFocusManagement();
}
static var bExtended = false;
static var UIComponentExtended = Extensions();
static var UIComponentDependency = mx.core.UIComponent;
static var FocusManagerDependency = mx.managers.FocusManager;
static var OverlappedWindowsDependency = mx.managers.OverlappedWindows;
}
Symbol 246 MovieClip [__Packages.mx.skins.Border] Frame 0
class mx.skins.Border extends mx.core.UIObject
{
function Border () {
super();
}
function init(Void) {
super.init();
}
static var symbolName = "Border";
static var symbolOwner = mx.skins.Border;
var className = "Border";
var tagBorder = 0;
var idNames = new Array("border_mc");
}
Symbol 247 MovieClip [__Packages.mx.skins.RectBorder] Frame 0
class mx.skins.RectBorder extends mx.skins.Border
{
var __width, __height, offset, __borderMetrics;
function RectBorder () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function init(Void) {
super.init();
}
function draw(Void) {
size();
}
function getBorderMetrics(Void) {
var _local2 = offset;
if (__borderMetrics == undefined) {
__borderMetrics = {left:_local2, top:_local2, right:_local2, bottom:_local2};
} else {
__borderMetrics.left = _local2;
__borderMetrics.top = _local2;
__borderMetrics.right = _local2;
__borderMetrics.bottom = _local2;
}
return(__borderMetrics);
}
function get borderMetrics() {
return(getBorderMetrics());
}
function drawBorder(Void) {
}
function size(Void) {
drawBorder();
}
function setColor(Void) {
drawBorder();
}
static var symbolName = "RectBorder";
static var symbolOwner = mx.skins.RectBorder;
static var version = "2.0.2.127";
var className = "RectBorder";
var borderStyleName = "borderStyle";
var borderColorName = "borderColor";
var shadowColorName = "shadowColor";
var highlightColorName = "highlightColor";
var buttonColorName = "buttonColor";
var backgroundColorName = "backgroundColor";
}
Symbol 248 MovieClip [__Packages.mx.skins.halo.RectBorder] Frame 0
class mx.skins.halo.RectBorder extends mx.skins.RectBorder
{
var offset, getStyle, borderStyleName, __borderMetrics, className, borderColorName, backgroundColorName, shadowColorName, highlightColorName, buttonColorName, __get__width, __get__height, clear, _color, drawRoundRect, beginFill, drawRect, endFill;
function RectBorder () {
super();
}
function init(Void) {
borderWidths.default = 3;
super.init();
}
function getBorderMetrics(Void) {
if (offset == undefined) {
var _local3 = getStyle(borderStyleName);
offset = borderWidths[_local3];
}
if ((getStyle(borderStyleName) == "default") || (getStyle(borderStyleName) == "alert")) {
__borderMetrics = {left:3, top:1, right:3, bottom:3};
return(__borderMetrics);
}
return(super.getBorderMetrics());
}
function drawBorder(Void) {
var _local6 = _global.styles[className];
if (_local6 == undefined) {
_local6 = _global.styles.RectBorder;
}
var _local5 = getStyle(borderStyleName);
var _local7 = getStyle(borderColorName);
if (_local7 == undefined) {
_local7 = _local6[borderColorName];
}
var _local8 = getStyle(backgroundColorName);
if (_local8 == undefined) {
_local8 = _local6[backgroundColorName];
}
var _local16 = getStyle("backgroundImage");
if (_local5 != "none") {
var _local14 = getStyle(shadowColorName);
if (_local14 == undefined) {
_local14 = _local6[shadowColorName];
}
var _local13 = getStyle(highlightColorName);
if (_local13 == undefined) {
_local13 = _local6[highlightColorName];
}
var _local12 = getStyle(buttonColorName);
if (_local12 == undefined) {
_local12 = _local6[buttonColorName];
}
var _local11 = getStyle(borderCapColorName);
if (_local11 == undefined) {
_local11 = _local6[borderCapColorName];
}
var _local10 = getStyle(shadowCapColorName);
if (_local10 == undefined) {
_local10 = _local6[shadowCapColorName];
}
}
offset = borderWidths[_local5];
var _local9 = offset;
var _local3 = __get__width();
var _local4 = __get__height();
clear();
_color = undefined;
if (_local5 == "none") {
} else if (_local5 == "inset") {
_color = colorList;
draw3dBorder(_local11, _local12, _local7, _local13, _local14, _local10);
} else if (_local5 == "outset") {
_color = colorList;
draw3dBorder(_local11, _local7, _local12, _local14, _local13, _local10);
} else if (_local5 == "alert") {
var _local15 = getStyle("themeColor");
drawRoundRect(0, 5, _local3, _local4 - 5, 5, 6184542, 10);
drawRoundRect(1, 4, _local3 - 2, _local4 - 5, 4, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, _local15, 50);
drawRoundRect(3, 1, _local3 - 6, _local4 - 4, 2, 16777215, 100);
} else if (_local5 == "default") {
drawRoundRect(0, 5, _local3, _local4 - 5, {tl:5, tr:5, br:0, bl:0}, 6184542, 10);
drawRoundRect(1, 4, _local3 - 2, _local4 - 5, {tl:4, tr:4, br:0, bl:0}, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, {tl:3, tr:3, br:0, bl:0}, [12897484, 11844796], 100, 0, "radial");
drawRoundRect(3, 1, _local3 - 6, _local4 - 4, {tl:2, tr:2, br:0, bl:0}, 16777215, 100);
} else if (_local5 == "dropDown") {
drawRoundRect(0, 0, _local3 + 1, _local4, {tl:4, tr:0, br:0, bl:4}, [13290186, 7895160], 100, -10, "linear");
drawRoundRect(1, 1, _local3 - 1, _local4 - 2, {tl:3, tr:0, br:0, bl:3}, 16777215, 100);
} else if (_local5 == "menuBorder") {
var _local15 = getStyle("themeColor");
drawRoundRect(4, 4, _local3 - 2, _local4 - 3, 0, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(4, 4, _local3 - 1, _local4 - 2, 0, 6184542, 10);
drawRoundRect(0, 0, _local3 + 1, _local4, 0, [0, 14342874], 100, 250, "linear");
drawRoundRect(0, 0, _local3 + 1, _local4, 0, _local15, 50);
drawRoundRect(2, 2, _local3 - 3, _local4 - 4, 0, 16777215, 100);
} else if (_local5 == "comboNonEdit") {
} else {
beginFill(_local7);
drawRect(0, 0, _local3, _local4);
drawRect(1, 1, _local3 - 1, _local4 - 1);
endFill();
_color = borderColorName;
}
if (_local8 != undefined) {
beginFill(_local8);
drawRect(_local9, _local9, __get__width() - _local9, __get__height() - _local9);
endFill();
}
}
function draw3dBorder(c1, c2, c3, c4, c5, c6) {
var _local3 = __get__width();
var _local2 = __get__height();
beginFill(c1);
drawRect(0, 0, _local3, _local2);
drawRect(1, 0, _local3 - 1, _local2);
endFill();
beginFill(c2);
drawRect(1, 0, _local3 - 1, 1);
endFill();
beginFill(c3);
drawRect(1, _local2 - 1, _local3 - 1, _local2);
endFill();
beginFill(c4);
drawRect(1, 1, _local3 - 1, 2);
endFill();
beginFill(c5);
drawRect(1, _local2 - 2, _local3 - 1, _local2 - 1);
endFill();
beginFill(c6);
drawRect(1, 2, _local3 - 1, _local2 - 2);
drawRect(2, 2, _local3 - 2, _local2 - 2);
endFill();
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
_global.styles.rectBorderClass = mx.skins.halo.RectBorder;
_global.skinRegistry.RectBorder = true;
return(true);
}
static var symbolName = "RectBorder";
static var symbolOwner = mx.skins.halo.RectBorder;
static var version = "2.0.2.127";
var borderCapColorName = "borderCapColor";
var shadowCapColorName = "shadowCapColor";
var colorList = {highlightColor:0, borderColor:0, buttonColor:0, shadowColor:0, borderCapColor:0, shadowCapColor:0};
var borderWidths = {none:0, solid:1, inset:2, outset:2, alert:3, dropDown:2, menuBorder:2, comboNonEdit:2};
static var classConstructed = classConstruct();
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 249 MovieClip [__Packages.mx.skins.halo.ButtonSkin] Frame 0
class mx.skins.halo.ButtonSkin extends mx.skins.RectBorder
{
var __get__width, __get__height, getStyle, _parent, clear, drawRoundRect, __get__x, __get__y;
function ButtonSkin () {
super();
}
function init() {
super.init();
}
function size() {
drawHaloRect(__get__width(), __get__height());
}
function drawHaloRect(w, h) {
var _local6 = getStyle("borderStyle");
var _local4 = getStyle("themeColor");
var _local5 = _parent.emphasized;
clear();
switch (_local6) {
case "falseup" :
if (_local5) {
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 75);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 85, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 75);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100);
} else {
drawRoundRect(0, 0, w, h, 5, 9542041, 100);
drawRoundRect(1, 1, w - 2, h - 2, 4, [13291985, 16250871], 100, 0, "radial");
drawRoundRect(2, 2, w - 4, h - 4, 3, [9542041, 13818586], 100, 0, "radial");
drawRoundRect(3, 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(3, 4, w - 6, h - 7, 2, 16316664, 100);
}
break;
case "falsedown" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, _local4, 20);
break;
case "falserollover" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 50);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 50);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100);
break;
case "falsedisabled" :
drawRoundRect(0, 0, w, h, 5, 13159628, 100);
drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100);
drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100);
drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100);
break;
case "trueup" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 10066329, 100);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16250871, 100);
break;
case "truedown" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 10066329, 100);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, _local4, 20);
break;
case "truerollover" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 50);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 40);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100);
break;
case "truedisabled" :
drawRoundRect(0, 0, w, h, 5, 13159628, 100);
drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100);
drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100);
drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100);
}
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
_global.skinRegistry.ButtonSkin = true;
return(true);
}
static var symbolName = "ButtonSkin";
static var symbolOwner = mx.skins.halo.ButtonSkin;
var className = "ButtonSkin";
var backgroundColorName = "buttonColor";
static var classConstructed = classConstruct();
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 261 MovieClip Frame 1
stop();
Symbol 281 MovieClip Frame 1
stop();
Symbol 285 MovieClip Frame 1
stop();
migacz.onEnterFrame = function () {
this._alpha = random(10);
};
Symbol 285 MovieClip Frame 17
if (!this.last_step) {
slides.nextFrame();
} else {
stop();
_root.fader.targ = (this.showDialog ? "dialog" : "log");
_root.fader.play();
}
Symbol 285 MovieClip Frame 35
_root.isSliding = false;
gotoAndStop (1);
Symbol 285 MovieClip Frame 57
slides.prevFrame();
Symbol 285 MovieClip Frame 75
_root.isSliding = false;
Symbol 292 MovieClip Frame 1
var text1 = "Prometheus> All systems functional. Data integrity = 100%\nPrometheus>All preparations complete. No errors detected.\nPrometheus>Initializing Avatar Compilation Sequence.";
var text2 = "Thanatos> Oh my.";
var line1 = "Prometheus> All systems functional. Data integrity = 100%.\n";
var line2 = "Prometheus> All preparations complete. No errors detected.\n";
var line3 = "Prometheus> Initializing Avatar Compilation Sequence.\n";
var line4 = "Thanatos> Oh my.";
Symbol 292 MovieClip Frame 30
this._parent.writeText(1, line1);
Symbol 292 MovieClip Frame 110
this._parent.writeText(1, line2);
Symbol 292 MovieClip Frame 190
this._parent.writeText(1, line3);
Symbol 292 MovieClip Frame 270
this._parent.writeText(2, line4);
Symbol 292 MovieClip Frame 320
stop();
this._parent.moveOn();
Symbol 303 MovieClip Frame 1
stop();
Symbol 303 MovieClip Frame 16
_root.canBreathe = true;
stop();
Symbol 306 MovieClip Frame 1
saveX = _x;
saveY = _y;
saveW = _width;
saveH = _height;
txt.tabEnabled = false;
Symbol 311 MovieClip Frame 40
gotoAndPlay ("migaj");
Symbol 315 MovieClip Frame 1
stop();
Symbol 321 MovieClip Frame 1
function startMess() {
createEmptyMovieClip("messer", this);
line_flash._visible = false;
scrollUp_btn._visible = false;
scrollDown_btn._visible = false;
suwak._visible = false;
_root.arrows_box.btn_m._visible = false;
_root.arrows_box.btn_d._visible = false;
_root.arrows_box.MDmess._visible = true;
txt.text = "";
messer.cntr = 100;
messer.rand = random(24) + 48;
messer.onEnterFrame = function () {
if (this.cntr > this.rand) {
txt.text = "";
this.cntr = 0;
this.rand = random(24) + 48;
var _local3 = 0;
while (_local3 < 6) {
txt.text = txt.text + "> ";
var _local4 = random(32) + 32;
var _local2 = 0;
while (_local2 < _local4) {
txt.text = txt.text + chars[random(chars.length)];
_local2++;
}
txt.text = txt.text + newline;
_local3++;
}
} else {
this.cntr++;
}
};
}
saveX = _x;
saveY = _y;
saveW = _width;
saveH = _height;
scrollUp_btn.onRelease = function () {
txt.scroll--;
refreshScroll();
};
scrollDown_btn.onRelease = function () {
txt.scroll++;
refreshScroll();
};
refreshScroll = function () {
scrollDown_btn._visible = ((txt.scroll == txt.maxscroll) ? false : true);
scrollUp_btn._visible = ((txt.scroll == 1) ? false : true);
if (txt.maxscroll > 1) {
suwak._visible = true;
var _local1 = suwak.Ydown - suwak.Yup;
var _local2 = _local1 / (txt.maxscroll - 1);
suwak._y = suwak.Yup + (_local2 * (txt.scroll - 1));
} else {
suwak._visible = false;
}
};
refreshScroll();
var mouseListener = new Object();
mouseListener.onMouseWheel = function (delta) {
if (!_root.menuIsActive) {
if (delta == 3) {
txt.scroll--;
refreshScroll();
} else {
txt.scroll++;
refreshScroll();
}
line_flash._alpha = 0;
}
};
Mouse.addListener(mouseListener);
suwak.Ydown = 85;
suwak.Yup = 25;
suwak.onPress = function () {
startDrag (this, false, 418, this.Yup, 418, this.Ydown);
suwak.onEnterFrame = function () {
var _local2 = this._parent;
var _local5 = 60 / _local2.txt.maxscroll;
var _local3 = -Math.round(25 - this._y);
var _local4 = Math.floor(_local3 / _local5) + 1;
_local2.txt.scroll = _local4;
};
};
onMouseUp = function () {
stopDrag();
delete suwak.onEnterFrame;
};
line_flash._alpha = 0;
line_flash.onRelease = function () {
this._alpha = 0;
};
this.onEnterFrame = function () {
if ((this.save_h != this.txt.textHeight) && (this.save_h)) {
line_flash._height = this.txt.textHeight - this.save_h;
line_flash._alpha = 100;
line_flash.gotoAndPlay("new");
}
this.save_h = this.txt.textHeight;
};
chars = ["S", "T", "A", "C", "H", "U", "%", ":", "(", ")", "-", "@", "#", "$", "%", ".", ",", "&", "*", "/", "+", " ", " ", " ", " ", " ", " ", "_", "?", "error", "failure", "init", "404", "assimilation...", "4", "Thanatos", "Seraphim", "%0|%0", "[", "]", "{", "}", "~", "=", "paradox"];
Symbol 484 MovieClip Frame 1
stop();
Symbol 489 MovieClip Frame 1
stop();
Symbol 489 MovieClip Frame 10
stop();
Symbol 510 MovieClip Frame 1
stop();
txt.textColor = 52224;
Symbol 510 MovieClip Frame 2
stop();
txt.textColor = 0;
Symbol 514 MovieClip Frame 1
stop();
Symbol 518 MovieClip Frame 1
dmg_bar._visible = false;
Symbol 521 MovieClip Frame 1
dmg_bar._visible = false;
Symbol 524 MovieClip Frame 1
stop();
Symbol 530 MovieClip Frame 1
charge_btn.actAsButton();
charge_btn.txt.text = "charge";
unleash_btn.actAsButton();
unleash_btn.txt.text = "unleash";
charge_btn.onRelease = function () {
_root.cursor.gotoAndStop("busy");
_root.addLine(("//" + this._parent._parent.AM.nam) + ": charging...");
this._parent._parent.play();
_root.playSound("heartbeat");
};
unleash_btn.onRelease = function () {
_root.cursor.gotoAndStop("busy");
this._parent._parent.unleash();
_root.playSound("heartbeat");
};
Symbol 531 MovieClip Frame 1
function performAttack(MODE, ENEMY, MODEt) {
_root.performingAttack = true;
_root.cursor.gotoAndStop("busy");
AM = MODE;
EN = ENEMY;
AMt = MODEt;
mode_num = random(EN.modes.length);
EM = EN.modes[mode_num];
EMt = eval ((tp + ".Cmode") + int(mode_num + 1));
if (eval ("fmode_" + AM.nam) != undefined) {
eval ("fmode_" + AM.nam)(AM, EN, MODEt, "avatar");
}
if (eval ("fstatus_" + AMt.status_to_add) != undefined) {
eval ("fstatus_" + AMt.status_to_add)(AM, EN, AMt, EMt, "avatar");
}
EMt.inp = EM.total_input;
EMt.out = EM.total_output;
EMt.cost = EM.total_cost;
this.play();
}
stop();
_root.performingAttack = false;
_root.cursor.gotoAndStop("normal");
tp = this._parent;
if (isCharging) {
performAttack(AM, EN, AMt);
}
var cd_check = 0;
var i = 1;
while (i <= 5) {
trace(this._parent["Amode" + i].cd);
if ((this._parent["Amode" + i].cd > 0) || (this._parent["Amode" + i].inp == undefined)) {
cd_check++;
}
i++;
}
trace("cd_ckeck: " + cd_check);
if (cd_check == 5) {
this.skip_turn = true;
_root.playSound("heartbeat");
this.play();
}
fmode_Overflow = function (AM, EN, AMt, attacker) {
if (attacker == "avatar") {
if (!isCharging) {
isCharging = true;
firstCharging = true;
}
AMt.charge++;
}
};
fmode_Flood = function (AM, EN, AMt, attacker) {
if (attacker == "avatar") {
}
};
fmode_Firewall = function (AM, EN, AMt, attacker) {
if (attacker == "avatar") {
var i = 1;
while (i <= 5) {
eval ((tp + ".Amode") + i).out_mod = 1 + (0.2 * Math.floor(AM.input.pts / 2));
eval ((tp + ".Amode") + i).out_len = 1 + Math.floor(AM.output.pts / 2);
i++;
}
tp.printTable();
}
};
fstatus_virus = function (AM, EN, AMt, EMt, attacker) {
trace("virus!");
if (attacker == "avatar") {
if (EN.stat == "normal") {
var rand = (random(100) + 1);
trace("acc: " + AMt.status_acc);
if (rand <= AMt.status_acc) {
_root.addLine(("//" + EN.nam) + ": infected.");
EN.stat = {nam:"virus", turns:5, stat_info:"is infected by a virus.", stat_end:" defeated a virus."};
var i = 1;
while (i <= 5) {
eval ((tp + ".Cmode") + i).inp_mod = 1 - ((10 + (5 * AM.input.pts)) / 100);
eval ((tp + ".Cmode") + i).out_mod = 1 - ((10 + (5 * AM.input.pts)) / 100);
eval ((tp + ".Cmode") + i).inp_len = 5;
eval ((tp + ".Cmode") + i).out_len = 5;
trace(">" + eval ((tp + ".Cmode") + i).inp_mod);
i++;
}
} else {
_root.addLine(("//" + EN.nam) + ": failed to infect.");
}
} else {
_root.addLine(("//" + EN.nam) + ": already affected by other status.");
}
tp.printTable();
tp.printEnemyTable();
}
};
Symbol 531 MovieClip Frame 2
function unleash() {
AMt.inp_mod = AMt.charge;
AMt.inp_len = 1;
trace((("charge: " + AMt.charge) + ", dmg: ") + av_dmg);
trace("vv");
tp.printTable();
AMt.charge = 0;
isCharging = false;
_root.modeChoiceBlock = false;
play();
}
charge_win._visible = false;
if (isCharging) {
if (!firstCharging) {
_root.modeChoiceBlock = true;
_root.cursor.gotoAndStop("normal");
charge_win._visible = true;
stop();
}
firstCharging = false;
} else if (AM.healing) {
tp.changeAvatarIP(-av_dmg);
}
Symbol 531 MovieClip Frame 3
av_dmg = ((AMt.inp * AMt.inp_mod) * AMt.attack_quant) - (_root.en_cur_out * AMt.attack_quant);
av_dmg = ((av_dmg < 0) ? 0 : (av_dmg));
av_cost = AMt.cost * AMt.cost_mod;
_root.av_cur_out = AMt.out * AMt.out_mod;
en_dmg = ((EMt.inp * EMt.inp_mod) * EMt.attack_quant) - _root.av_cur_out;
en_dmg = ((en_dmg < 0) ? 0 : (en_dmg));
en_cost = EMt.cost * EMt.cost_mod;
_root.en_cur_out = EMt.out * EMt.out_mod;
tp.showCurrentOutput();
Symbol 531 MovieClip Frame 8
if (!this.skip_turn) {
tp.changeAvatarIP(av_cost);
}
if ((!isCharging) && (!this.skip_turn)) {
_root.addLine(((((((("//avatar uses " + AM.nam) + " mode\ninput: ") + av_dmg) + "% output: ") + (AMt.out * AMt.out_mod)) + "% cost: ") + av_cost) + "%");
tp.changeConceptIP(av_dmg);
}
Symbol 531 MovieClip Frame 16
tp.changeConceptIP(en_cost);
_root.addLine(((((((((("//" + EN.nam) + " uses ") + EM.nam) + " Mode\ninput: ") + en_dmg) + "% output:") + EMt.out) + "% cost: ") + en_cost) + "%");
tp.changeAvatarIP(en_dmg);
tp.decreaseCooldown();
if (AM.input_block) {
var i = 1;
while (i <= 5) {
eval ((tp + ".Cmode") + i).inp_mod = 0;
i++;
}
}
tp.printTable();
tp.printEnemyTable();
tp.TURN++;
tp.refreshTurn();
if (!this.skip_turn) {
gotoAndStop (1);
}
Symbol 531 MovieClip Frame 19
this.skip_turn = false;
gotoAndStop (1);
Symbol 531 MovieClip Frame 55
function unleash() {
av_dmg = ((EN.stat.nam != "freeze") ? ((((AM.total_input + PLAYER.bonus_input) * (AM.turn - 1)) - en_mode.output) - EN.bo) : (AM.total_input + PLAYER.bonus_input));
trace((("turn: " + AM.turn) + ", dmg: ") + av_dmg);
AM.turn = 0;
AM.active = false;
_root.modeChoiceBlock = false;
this._parent.changeConceptIP(av_dmg);
play();
}
charge_win._visible = false;
if (AM.chargable) {
trace((AM.turn + " vs ") + AM.start_doing_from_turn);
if (AM.turn >= AM.start_doing_from_turn) {
_root.modeChoiceBlock = true;
_root.cursor.gotoAndStop("normal");
charge_win._visible = true;
stop();
} else if (AM.turn < AM.start_doing_from_turn) {
_root.addLine(("//" + AM.nam) + ": charging...");
AM.active = true;
}
AM.turn++;
} else if (AM.consecutive) {
count = 1 + Math.floor(AM.total_input / 3);
av_dmg = ((EN.stat.nam != "freeze") ? ((((AM.total_input + PLAYER.bonus_input) - en_mode.output) - EN.bo) * count) : (AM.total_input + PLAYER.bonus_input));
av_dmg = ((av_dmg < 0) ? 0 : (av_dmg));
this._parent.changeConceptIP(av_dmg);
} else if (AM.healing) {
this._parent.changeConceptIP(av_dmg);
this._parent.changeAvatarIP(-av_dmg);
} else {
this._parent.changeConceptIP(av_dmg);
}
if (!_root.battleInProgress) {
stop();
_root.performingAttack = false;
_root.cursor.gotoAndStop("normal");
}
if (AM.active) {
_root.addLine(("//avatar cost: " + av_cost) + "%");
} else {
_root.addLine(((("//avatar input: " + av_dmg) + "% cost: ") + av_cost) + "%");
}
Symbol 531 MovieClip Frame 56
if (EN.stat.nam == "normal") {
if (av_sp_arr[0] == "freeze") {
var rand = (random(100) + 1);
if (rand <= av_sp_arr[1]) {
_root.addLine(("//" + en_nam) + ": frozen.");
EN.stat = {nam:av_sp_arr[0], turns:3, stat_info:"is still frozen.", stat_end:" came back to normal."};
}
} else if (av_sp_arr[0] == "virus") {
var rand = (random(100) + 1);
if (rand <= av_sp_arr[1]) {
_root.addLine(("//" + en_nam) + ": infected.");
EN.stat = {nam:av_sp_arr[0], turns:5, stat_info:"is infected by a virus.", stat_end:" defeated a virus."};
EN.en_vir = (10 + (5 * AM.input.pts)) / 100;
} else {
_root.addLine(("//Failed to infect " + EN.nam) + ".");
}
}
}
if (!_root.battleInProgress) {
stop();
}
Symbol 531 MovieClip Frame 57
this._parent.changeAvatarIP(av_cost);
if (!_root.battleInProgress) {
stop();
_root.performingAttack = false;
_root.cursor.gotoAndStop("normal");
}
Symbol 531 MovieClip Frame 58
if (EN.stat.nam != "freeze") {
this._parent.changeConceptIP(en_mode.cost);
} else {
_root.addLine((("//" + en_nam) + " ") + EN.stat.stat_info);
}
if (!_root.battleInProgress) {
stop();
_root.performingAttack = false;
_root.cursor.gotoAndStop("normal");
}
Symbol 531 MovieClip Frame 59
if (EN.stat.nam != "freeze") {
if (EN.input_block) {
en_dmg = 0;
EN.input_block = false;
_root.addLine(("//" + en_nam) + ": input has been blocked");
} else if (EN.stat.nam == "virus") {
en_dmg = en_dmg * (1 - EN.en_vir);
en_dmg = Math.round(en_dmg * 100) / 100;
trace(1 - EN.en_vir);
}
this._parent.changeAvatarIP(en_dmg);
_root.addLine(((((((((("//" + en_nam) + " uses ") + en_mode.nam) + " Mode: input: ") + en_dmg) + "% output:") + en_mode.output) + "% cost: ") + en_mode.cost) + "%");
}
if (!_root.battleInProgress) {
stop();
_root.performingAttack = false;
_root.cursor.gotoAndStop("normal");
}
Symbol 531 MovieClip Frame 60
if (AM.input_block) {
EN.input_block = true;
}
_root.decreaseCooldown();
if ((PLAYER.bo_time != undefined) && (PLAYER.bo_time > 0)) {
PLAYER.bo_time--;
if (PLAYER.bo_time == 0) {
PLAYER.bonus_output = 0;
_root.addLine("//Avatar: output bonus ended.");
}
}
if ((PLAYER.bi_time != undefined) && (PLAYER.bi_time > 0)) {
PLAYER.bi_time--;
if (PLAYER.bi_time == 0) {
PLAYER.bonus_input = 0;
_root.addLine("//Avatar: input bonus ended.");
}
}
if ((EN.bo_time != undefined) && (EN.bo_time > 0)) {
EN.bo_time--;
if (EN.bo_time == 0) {
EN.bonus_output = 0;
_root.addLine(("//" + EN.nam) + ": output bonus ended.");
}
}
if ((EN.bi_time != undefined) && (EN.bi_time > 0)) {
EN.bi_time--;
if (EN.bi_time == 0) {
EN.bonus_input = 0;
_root.addLine(("//" + EN.nam) + ": input bonus ended.");
}
}
this._parent.TURN++;
this._parent.refreshTurn();
Symbol 536 MovieClip Frame 1
stop();
Symbol 536 MovieClip Frame 5
function refreshTurn() {
turn_txt.text = TURN;
var ENEMY = eval ("_root." + _root.AL.enemy);
if (ENEMY.stat.turns != undefined) {
if (ENEMY.stat.turns > 0) {
ENEMY.stat.turns--;
if (ENEMY.stat.turns == 0) {
if (ENEMY.stat.nam == "virus") {
ENEMY.en_vir = undefined;
}
ENEMY.stat.nam = "normal";
_root.addLine(("//" + ENEMY.nam) + ENEMY.stat.stat_end);
}
}
}
}
function intWithStableDot(num) {
var _local1 = num.toString();
var _local2 = 0;
while (_local2 < _local1.length) {
if (_local1.charAt(_local2) == ".") {
if (((_local1.length - _local2) - 1) == 1) {
result_str = _local1 + "0";
} else if (((_local1.length - _local2) - 1) == 2) {
result_str = _local1;
}
break;
}
result_str = _local1 + ".00";
_local2++;
}
return(result_str);
}
function showCurrentOutput() {
av_cur_out_txt.text = "Avatar output: " + _root.av_cur_out;
en_cur_out_txt.text = "Concept output: " + _root.en_cur_out;
}
function refreshLife() {
if (c_IP > 10000) {
c_IP = 10000;
}
if (a_IP > 10000) {
a_IP = 10000;
}
if (c_IP <= 0) {
c_IP = 10000;
a_IP = 10000;
_root.addLine("//concept absorbed. integrity replenished.");
var ENEMY = _root[_root.AL.enemy];
if (ENEMY.unlocked != undefined) {
Set((("_root." + ENEMY.unlocked.loc) + ".") + ENEMY.unlocked.gate, ENEMY.unlocked.gate_dir);
_root.arrows_box.refreshArrows();
trace(">2>" + eval ((("_root." + ENEMY.unlocked.loc) + ".") + ENEMY.unlocked.gate));
}
endBattle(true);
} else if (a_IP <= 0) {
a_IP = 0;
_root.blood_screen.play();
_root.addLine("//avatar has been absorbed... integrity lost...");
endBattle(false);
}
_root.blood_screen._alpha = (((a_IP / 100) < 50) ? (100 - (a_IP / 50)) : 0);
if (!_root.screen_box.I_am_animating) {
var img_blur = (((c_IP / 100) < 60) ? (Math.floor((100 - (c_IP / 100)) / 5) - 8) : 0);
trace("blur");
trace(Math.floor((100 - (c_IP / 100)) / 5) - 8);
_root.screen_box.img_mc.addBlur(img_blur, img_blur);
var rand1 = (((c_IP / 100) < 15) ? 7 : ((((c_IP / 100) < 30) ? 5 : ((((c_IP / 100) < 45) ? 3 : 0)))));
var rand2 = (((c_IP / 100) < 15) ? 3 : ((((c_IP / 100) < 30) ? 2 : ((((c_IP / 100) < 45) ? 1 : 0)))));
_root.screen_box.img_mc.saveX = _root.screen_box.img_mc._x;
_root.screen_box.img_mc.saveY = _root.screen_box.img_mc._y;
_root.screen_box.onEnterFrame = function () {
this.img_mc._x = (this.img_mc.saveX + random(rand1)) - rand2;
this.img_mc._y = (this.img_mc.saveY + random(rand1)) - rand2;
};
}
concept_box.c_life_txt.text = intWithStableDot(Math.round(c_IP) / 100) + "%";
concept_box.life_bar._width = 140 * (c_IP / 10000);
avatar_box.p_life_txt.text = intWithStableDot(Math.round(a_IP) / 100) + "%";
avatar_box.life_bar._width = 140 * (a_IP / 10000);
}
function loadData() {
var ENEMY = eval ("_root." + _root.AL.enemy);
var i = 1;
while (i <= 5) {
this["Amode" + i] = {inp:0, inp_mod:1, inp_len:0, out:0, out_mod:1, out_len:0, cost:0, cost_mod:1, cost_len:0, chargable:0, charge:0, cooldown:0, cd:0, mode_use:0, stat_to_change:0, status_to_add:0, status_len:0, status_acc:0, healing:0, attack_quant:1, st_virus:0, st_lag:0};
i++;
}
var i = 1;
while (i <= 5) {
this["Cmode" + i] = {inp:0, inp_mod:1, inp_len:0, out:0, out_mod:1, out_len:0, cost:0, cost_mod:1, cost_len:0, chargable:0, charge:0, cooldown:0, cd:0, mode_use:0, stat_to_change:0, status_to_add:0, status_len:0, status_acc:0, healing:0, attack_quant:1, st_virus:0, st_lag:0};
i++;
}
concept_box.c_name_txt.text = ENEMY.nam;
var i = 1;
while (i <= 5) {
ten_btn = eval ("md_btn" + i);
loadAvatarModeTable(i, eval ("_root.MODE_" + PLAYER.modes[i - 1]));
loadConceptModeTable(i, ENEMY.modes[i - 1]);
if (PLAYER.modes[i - 1] != undefined) {
ten_btn.MODE = eval ("_root.MODE_" + PLAYER.modes[i - 1]);
ten_btn.MODEt = this["Amode" + i];
ten_btn.txt.text = ten_btn.MODE.nam;
ten_btn._visible = true;
ten_btn.onRollOver = function () {
if (!_root.modeChoiceBlock) {
this.gotoAndStop("over");
about_mode._x = (this._x + this._width) + 10;
about_mode._y = this._y;
about_mode._visible = true;
cd_text = ((this.MODEt.cd > 0) ? (("(" + this.MODEt.cd) + ") ") : "");
about_mode.txt.text = ((((((cd_text + "'INPUT: ") + this.MODE.total_input) + "% 'OUTPUT: ") + this.MODE.total_output) + "% 'COST: ") + this.MODE.total_cost) + "%";
if (this.MODE.special != undefined) {
about_mode.txt.text = about_mode.txt.text + (" 'special: " + this.MODE.special);
}
}
};
ten_btn.onRollOut = function () {
this.gotoAndStop("out");
about_mode._visible = false;
about_mode.txt.text = "";
};
ten_btn.onRelease = function () {
if (((!_root.performingAttack) && (!_root.modeChoiceBlock)) && (this.MODEt.cd == 0)) {
if (this.MODEt.cooldown > 0) {
this.MODEt.cd = this.MODEt.cooldown + 1;
}
fight_mc.performAttack(this.MODE, ENEMY, this.MODEt);
_root.playSound("heartbeat");
} else {
trace("cd: " + this.MODEt.cd);
}
};
} else {
ten_btn._visible = false;
}
i++;
}
printTable();
}
function loadConceptModeTable(num, EM) {
var _local2 = this["Cmode" + num];
trace("EM: " + EM.nam);
_local2.inp = EM.total_input;
_local2.out = EM.total_output;
_local2.cost = EM.total_cost;
_local2.chargable = (EM.chargable ? 1 : 0);
_local2.cooldown = EM.cooldown;
if (EM.stat != undefined) {
_local2.stat_to_change = EM.stat;
_local2.status_to_add = EM.stat;
_local2.status_len = _local2.stat_len;
_local2.status_acc = EM.stat_acc_total;
}
_local2.healing = (EM.healing ? 1 : 0);
_local2.attack_quant = (EM.consecutive ? (1 + Math.floor(EM.total_input / 3)) : 1);
}
function loadAvatarModeTable(num, AM) {
var _local2 = this["Amode" + num];
_local2.inp = AM.total_input;
_local2.out = AM.total_output;
_local2.cost = AM.total_cost;
_local2.chargable = (AM.chargable ? 1 : 0);
_local2.cooldown = AM.cooldown;
if (AM.stat != undefined) {
_local2.stat_to_change = AM.stat;
_local2.status_to_add = AM.stat;
_local2.status_len = _local2.stat_len;
_local2.status_acc = AM.stat_acc_total;
}
_local2.healing = (AM.healing ? 1 : 0);
_local2.attack_quant = (AM.consecutive ? (1 + Math.floor(AM.total_input / 3)) : 1);
}
function printTable() {
trace("player table:");
var _local3 = 1;
while (_local3 <= 5) {
var _local2 = this["Amode" + _local3];
trace((((((((((((((((((((((((((((((((((((((_local2.inp + ", ") + _local2.inp_mod) + ", ") + _local2.inp_len) + ", ") + _local2.out) + ", ") + _local2.out_mod) + ", ") + _local2.out_len) + ", ") + _local2.cost) + ", ") + _local2.cost_mod) + ", ") + _local2.cost_len) + ", ") + _local2.chargable) + ", ") + _local2.charge) + ", ") + _local2.cooldown) + ", ") + _local2.cd) + ", ") + _local2.mode_use) + ", ") + _local2.stat_to_change) + ", ") + _local2.status_to_add) + ", ") + _local2.status_len) + ", ") + _local2.status_acc) + ", ") + _local2.healing) + ", ") + _local2.attack_quant);
_local3++;
}
}
function printEnemyTable() {
trace("enemy table:");
var _local3 = 1;
while (_local3 <= 5) {
var _local2 = this["Cmode" + _local3];
trace((((((((((((((((((((((((((((((((((((((_local2.inp + ", ") + _local2.inp_mod) + ", ") + _local2.inp_len) + ", ") + _local2.out) + ", ") + _local2.out_mod) + ", ") + _local2.out_len) + ", ") + _local2.cost) + ", ") + _local2.cost_mod) + ", ") + _local2.cost_len) + ", ") + _local2.chargable) + ", ") + _local2.charge) + ", ") + _local2.cooldown) + ", ") + _local2.cd) + ", ") + _local2.mode_use) + ", ") + _local2.stat_to_change) + ", ") + _local2.status_to_add) + ", ") + _local2.status_len) + ", ") + _local2.status_acc) + ", ") + _local2.healing) + ", ") + _local2.attack_quant);
_local3++;
}
}
function decreaseCooldown() {
var _local4 = 1;
while (_local4 <= 5) {
var _local3 = this["Amode" + _local4];
_local3.cd = _local3.cd - ((_local3.cd > 0) ? 1 : 0);
_local3.inp_len = _local3.inp_len - ((_local3.inp_len > 0) ? 1 : 0);
_local3.out_len = _local3.out_len - ((_local3.out_len > 0) ? 1 : 0);
_local3.cost_len = _local3.cost_len - ((_local3.cost_len > 0) ? 1 : 0);
_local3.inp_mod = ((_local3.inp_len == 0) ? 1 : (_local3.inp_mod));
_local3.out_mod = ((_local3.out_len == 0) ? 1 : (_local3.out_mod));
_local3.cost_mod = ((_local3.cost_len == 0) ? 1 : (_local3.cost_mod));
var _local2 = this["Cmode" + _local4];
_local2.cd = _local2.cd - ((_local2.cd > 0) ? 1 : 0);
_local2.inp_len = _local2.inp_len - ((_local2.inp_len > 0) ? 1 : 0);
_local2.out_len = _local2.out_len - ((_local2.out_len > 0) ? 1 : 0);
_local2.cost_len = _local2.cost_len - ((_local2.cost_len > 0) ? 1 : 0);
_local2.inp_mod = ((_local2.inp_len == 0) ? 1 : (_local2.inp_mod));
_local2.out_mod = ((_local2.out_len == 0) ? 1 : (_local2.out_mod));
_local2.cost_mod = ((_local2.cost_len == 0) ? 1 : (_local2.cost_mod));
_local4++;
}
refreshBtnNames();
}
function resetCD() {
var _local2 = 1;
while (_local2 <= 5) {
var _local4 = this["Amode" + _local2];
_local4.cd = 0;
var _local3 = this["Cmode" + _local2];
_local3.cd = 0;
_local2++;
}
}
function refreshBtnNames() {
var i = 1;
while (i <= 5) {
ten_btn = eval ("md_btn" + i);
var cd_text = ((ten_btn.MODEt.cd > 0) ? ((" (" + ten_btn.MODEt.cd) + ")") : "");
ten_btn.txt.text = ten_btn.MODE.nam + cd_text;
ten_btn._alpha = ((ten_btn.MODEt.cd > 0) ? 60 : 100);
i++;
}
}
function animateDamageBar(targ, damage) {
var this_box = eval (targ + "_box");
this_box.dmg_bar._visible = true;
this_box.dmg_bar._alpha = 100;
this_box.dmg_bar._x = this_box.life_bar._width;
this_box.dmg_bar._width = (140 * damage) / 10000;
delete this_box.dmg_bar.onEnterFrame;
this_box.dmg_bar.onEnterFrame = function () {
this._alpha = this._alpha - 10;
if (this._alpha <= 0) {
delete this.onEnterFrame;
}
};
}
function changeConceptIP(quantity) {
if (_root.battleInProgress) {
var _local2 = quantity * 100;
c_IP = c_IP - _local2;
refreshLife();
animateDamageBar("concept", _local2);
}
}
function changeAvatarIP(quantity) {
if (_root.battleInProgress) {
var _local2 = quantity * 100;
a_IP = a_IP - _local2;
refreshLife();
animateDamageBar("avatar", _local2);
}
}
function endBattle(victory) {
if (victory) {
var _local2 = _root.AL.enemy.src;
if (_local2 != undefined) {
PLAYER.src = PLAYER.src + _local2;
_root.addLine("//source gained: " + _local2);
}
_root.resetCD();
_root.AL.enemy = undefined;
_root.AL.enemy_killed = true;
_root.saveChanges(_root.actual_loc, _root[_root.actual_loc]);
_root.screen_box.animateVictory();
}
_root.modeChoiceBlock = false;
if (!victory) {
_root.cursor.gotoAndStop("normal");
_root.battleInProgress = false;
}
_root.screen_box.battle_screen.gotoAndStop(1);
_root.arrows_box._visible = true;
_root.answer_box._visible = true;
}
stop();
about_mode._visible = false;
stat_ring._visible = false;
a_IP = 10000;
c_IP = 10000;
TURN = 1;
refreshTurn();
_root.av_cur_out = 0;
_root.en_cur_out = 0;
showCurrentOutput();
refreshLife();
loadData();
resetCD();
MovieClip.prototype.addLight = function () {
this._alpha = 70;
this.onRollOver = function () {
this._alpha = 100;
};
this.onRollOut = function () {
this._alpha = 70;
};
};
concept_box.addLight();
avatar_box.addLight();
md_null_btn.txt.text = "null";
md_null_btn.onRelease = function () {
if (!_root.modeChoiceBlock) {
endBattle();
_root.playSound("heartbeat");
}
};
md_null_btn.onRollOver = function () {
this.gotoAndStop("over");
info_txt.text = "End battle";
};
md_null_btn.onRollOut = function () {
this.gotoAndStop("out");
info_txt.text = "";
};
test_btn.onRelease = function () {
changeIP("c", 300);
};
Symbol 547 MovieClip Frame 1
stop();
Symbol 561 MovieClip Frame 1
function newGame() {
main_sequence = [];
var _local2 = 1;
while (_local2 <= 4) {
main_sequence.push(colors[random(colors.length)]);
_local2++;
}
czit_txt.text = main_sequence;
name_txt.text = _root.AL.vname + ": phase1";
trace(main_sequence);
}
this._visible = false;
colors = ["green", "indigo", "orange", "red", "blue"];
actual_try = 1;
max_tries = 7;
var i = 1;
while (i <= 4) {
tenSq = eval ("sq" + i);
tenSq._alpha = 50;
tenSq.sequence = colors;
tenSq.current = -1;
tenSq.onRollOver = function () {
this._alpha = 100;
};
tenSq.onRollOut = function () {
this._alpha = 50;
};
tenSq.onRelease = function () {
this.current++;
if (this.current >= this.sequence.length) {
this.current = 0;
}
this.gotoAndStop(this.sequence[this.current]);
};
i++;
}
check_btn.onRelease = function () {
check_sequence = [];
ustawione = [];
if (((((sq1.current > -1) && (sq2.current > -1)) && (sq3.current > -1)) && (sq4.current > -1)) && (!gameOver)) {
var correct_guesses = 0;
var wrong_places = 0;
var i = 1;
while (i <= 4) {
tenSq = eval ("sq" + i);
if (tenSq.sequence[tenSq.current] == main_sequence[i - 1]) {
correct_guesses++;
check_sequence[i - 1] = 1;
} else {
check_sequence[i - 1] = 0;
}
eval ((("try" + actual_try) + ".sq") + i).gotoAndStop(tenSq.sequence[tenSq.current]);
i++;
}
trace(check_sequence);
var i = 1;
while (i <= 4) {
tenSq = eval ("sq" + i);
var j = 1;
while (j <= 4) {
if (((((tenSq.sequence[tenSq.current] == main_sequence[j - 1]) && (i != j)) && (check_sequence[j - 1] == 0)) && (check_sequence[i - 1] == 0)) && (ustawione[j - 1] != 1)) {
trace((i + ", ") + j);
ustawione[j - 1] = 1;
wrong_places++;
break;
}
j++;
}
i++;
}
eval ("try" + actual_try).txt.text = (correct_guesses + newline) + wrong_places;
if (correct_guesses == 4) {
info_txt.text = "epic win!";
gameOver = true;
this._parent._visible = false;
_root.block(false);
_root.AL.vph = "1";
_root.addLine("> verge unlocked");
_root.saveChanges(_root.actual_loc, _root.AL);
} else {
actual_try++;
if (actual_try > max_tries) {
info_txt.text = "game over";
gameOver = true;
}
}
}
};
Symbol 565 MovieClip Frame 1
stop();
Symbol 577 MovieClip Frame 1
function startGame() {
var N = 1;
var tries = 15;
var checker = 0;
while (checker < 2) {
var sq_array = new Array();
checker = 0;
var i = 1;
while (i <= tries) {
sq_array.push(random(9) + 1);
i++;
}
var i = 0;
while (i < tries) {
if (sq_array[i] == sq_array[i - N]) {
checker++;
}
i++;
}
}
trace(sq_array);
checker = 0;
while (checker < 2) {
checker = 0;
var lit_array = new Array();
var i = 1;
while (i <= tries) {
lit_array.push(letters[random(9)]);
i++;
}
var i = 0;
while (i < tries) {
if (lit_array[i] == lit_array[i - N]) {
checker++;
}
i++;
}
}
trace(lit_array);
var counter = 0;
var arr_pos = 0;
var Agoody = 0;
var Lgoody = 0;
onEnterFrame = function () {
if (counter <= 0) {
if (arr_pos != 0) {
if ((_root.A_should_be_pushed && (_root.A_pushed)) || ((!_root.A_should_be_pushed) && (!_root.A_pushed))) {
Agoody++;
trace("A good");
} else {
trace("A bad");
}
if ((_root.L_should_be_pushed && (_root.L_pushed)) || ((!_root.L_should_be_pushed) && (!_root.L_pushed))) {
Lgoody++;
trace("L good");
} else {
trace("L bad");
}
}
eval ("sq" + sq_array[arr_pos]).gotoAndPlay("on");
playSound("lit_" + lit_array[arr_pos]);
_root.A_should_be_pushed = ((sq_array[arr_pos] == sq_array[arr_pos - N]) ? true : false);
_root.L_should_be_pushed = ((lit_array[arr_pos] == lit_array[arr_pos - N]) ? true : false);
_root.A_listening = true;
_root.L_listening = true;
_root.A_pushed = false;
_root.L_pushed = false;
counter = 72;
arr_pos++;
if (arr_pos > tries) {
_root.A_listening = false;
_root.L_listening = false;
delete onEnterFrame;
start_btn._visible = true;
var Aperc = Math.round((Agoody / tries) * 100);
var Lperc = Math.round((Lgoody / tries) * 100);
results_txt.text = (((((((((((((("Results:\nspatial: " + Agoody) + "/") + tries) + " (") + Aperc) + "%)\nauditory: ") + Lgoody) + "/") + tries) + " (") + Lperc) + "%)\n") + sq_array) + newline) + lit_array;
}
}
counter--;
};
}
this._visible = false;
letters = ["c", "f", "g", "j", "k", "m", "q", "s", "l"];
start_btn.onRelease = function () {
this._visible = false;
results_txt.text = "";
startGame();
};
skip_btn.onRelease = function () {
this._parent._visible = false;
_root.block(false);
_root.AL.vph = "2";
_root.addLine("> verge opened");
VERGES.push({nam:_root.AL.vname, dir:_root.AL.nam});
_root.saveChanges(_root.actual_loc, _root.AL);
};
playSound = function (snd) {
var sound = new Sound(_root);
sound.attachSound(snd);
sound.start();
sound.onSoundComplete = function () {
delete sound;
};
};
var keyListener = new Object();
keyListener.onKeyDown = function () {
switch (Key.getCode()) {
case 76 :
if (_root.L_listening) {
_root.L_pushed = true;
_root.L_listening = false;
}
break;
case 65 :
if (!_root.A_listening) {
break;
}
_root.A_pushed = true;
_root.A_listening = false;
}
};
Key.addListener(keyListener);
Symbol 581 MovieClip Frame 1
stop();
Symbol 581 MovieClip Frame 2
this.finished = false;
_root.menuIsActive = true;
Symbol 581 MovieClip Frame 98
stop();
_root.f_eternalDarkness();
removeMovieClip(this);
Symbol 584 MovieClip Frame 1
function loadLoc(LOC) {
if (LOC.img != undefined) {
_root.lit._visible = true;
_root.lit.loading_image.perc_txt.text = "Loading\nimage:\n0%";
if ((LOC.img_free != undefined) && (LOC.enemy_killed)) {
img_mc.image.loadImage(LOC.img_free, true, true);
} else if (LOC.img2) {
var rand = random(2);
if (rand == 0) {
img_mc.image.loadImage(LOC.img, true, true);
} else {
img_mc.image.loadImage(LOC.img2, true, true);
}
} else {
img_mc.image.loadImage(LOC.img, true, true);
}
shi_mc._visible = false;
} else {
shi_mc._visible = true;
img_mc._visible = false;
}
if (LOC.manual || (LOC.visual)) {
if (!LOC.visual) {
_root.addLine("> manual interface detected");
img_mc.loc_layers.gotoAndStop(LOC.manual);
} else {
_root.addLine("> hidden data detected (visual)");
img_mc.loc_layers.gotoAndStop(LOC.visual);
}
} else {
img_mc.loc_layers.gotoAndStop("none");
}
var tt = eval ("_root.tut_text_db.tut_text_" + LOC.tut);
if ((LOC.tut != undefined) && (!tt.seen)) {
tt.seen = true;
_root.saveChanges(("_root.tut_text_db.tut_text_" + LOC.tut) + ".seen", true);
_root.showSlideWithText(tt.txt, "slide_back");
}
if (LOC.pass && (!LOC.pass_guessed)) {
_root.addLine("> obstruction detected (password)");
}
if (LOC.enemy) {
_root.addLine("> concept structure detected (peripheral)");
}
if (LOC.talk) {
_root.addLine("> METATRON PROTOCOL INTERFACE DETECTED");
}
if (LOC.hint || (LOC.hint_layer)) {
_root.addLine("> hidden data detected (raw)");
}
if (LOC.recursive) {
_root.addLine("> obstruction detected (recursive)");
}
if (LOC.remote) {
_root.addLine("> obstruction detected (remote)");
}
if (LOC.sync_gain) {
_root.increaseSync(LOC.sync_gain);
LOC.sync_gain = undefined;
_root.saveChanges(LOC.nam + ".sync_gain", undefined);
}
if (LOC.auto_f) {
_root[LOC.auto_f]();
}
if (LOC.remover) {
trace(eval ("_root." + LOC.remover));
trace(LOC.remover);
removeMovieClip(eval ("_root." + LOC.remover));
}
if (LOC.vph == "0") {
_root.addLine("> verge detected (locked)");
} else if (LOC.vph == "1") {
_root.addLine("> verge detected (unlocked)");
} else if (LOC.vph == "2") {
_root.addLine("> verge detected (open)");
}
var ss = _root.shi_sounds;
var loc_snd = LOC.snd_array;
if (loc_snd && (!_root.isMuted)) {
var i = 0;
while (i < loc_snd.length) {
var sound_exists = false;
if (ss.length > 0) {
var j = 0;
while (j < ss.length) {
if (ss[j] == loc_snd[i]) {
_root["snd_" + ss[j]].setVolume(loc_snd[i + 1]);
var sound_exists = true;
break;
}
_root["snd_" + ss[j]].setPan(loc_snd[i + 2]);
j++;
}
if (!sound_exists) {
addSound(loc_snd[i], loc_snd[i + 1]);
}
} else {
addSound(loc_snd[i], loc_snd[i + 1]);
}
i = i + 3;
}
}
if ((ss.length > 0) && (!_root.isMuted)) {
var i = 0;
while (i < ss.length) {
var do_not_delete = false;
if (loc_snd) {
var j = 0;
while (j < loc_snd.length) {
if (ss[i] == loc_snd[j]) {
do_not_delete = true;
break;
}
j = j + 3;
}
if (!do_not_delete) {
delete _root["snd_" + ss[i]];
ss.splice(i, 1);
i--;
}
} else {
delete _root["snd_" + ss[i]];
ss.splice(i, 1);
i--;
}
i++;
}
}
}
function addSound(nam, vol) {
var _local4 = _root.shi_sounds;
_root.createEmptyMovieClip(nam, _root.getNextHighestDepth());
_root["snd_" + nam] = new Sound(_root[nam]);
_root["snd_" + nam].attachSound(nam);
_root["snd_" + nam].start();
_root["snd_" + nam].setVolume(vol);
_root["snd_" + nam].onSoundComplete = function () {
this.start();
};
_local4.push(nam);
}
function animateVictory() {
delete this.onEnterFrame;
_root.arrows_block._visible = true;
this.img_mc.addBlur(12, 12);
if (!I_am_animating) {
I_am_animating = true;
var sh = 20;
var dir = 1;
this.img_mc._y = 0;
this.onEnterFrame = function () {
this.img_mc._x = sh * dir;
dir = ((dir == 1) ? -1 : 1);
sh--;
if (sh == 0) {
delete this.onEnterFrame;
this.victory_anim.play();
this.img_mc._x = 0;
var bl = 11;
this.onEnterFrame = function () {
if (this.victory_anim.finished) {
this.img_mc.addBlur(bl, bl);
bl--;
if (bl == 0) {
delete this.onEnterFrame;
I_am_animating = false;
}
}
};
}
};
}
}
saveX = _x;
saveY = _y;
saveW = _width;
saveH = _height;
img_mc.attachMovie("loc_layers_box", "loc_layers", 2);
shi_mc.back.loadImage("shi_logo.jpg");
shi_mc.zamazuj(3, 3, 20, 0, 0);
p = 0;
alfa = 0;
breather.mod = 1;
breather.inc = 0.5;
breather.onEnterFrame = function () {
if (p > 144) {
p = 0;
} else if (p > 120) {
this.mod = 0;
} else if (p > 72) {
this.mod = -1;
} else if (p > 48) {
this.mod = 0;
} else if (p > 0) {
this.mod = 1;
}
if (this.mod < 0) {
alfa = alfa - this.inc;
} else if (this.mod > 0) {
alfa = alfa + this.inc;
}
this._alpha = alfa;
p++;
};
activer._alpha = 25;
Symbol 589 MovieClip Frame 2
stop();
Symbol 589 MovieClip Frame 15
gotoAndStop (2);
Symbol 595 MovieClip Frame 1
stop();
Symbol 595 MovieClip Frame 10
stop();
this.onEnterFrame = function () {
if (this.fadeInLater) {
this.fadeInLater = false;
play();
delete this.onEnterFrame;
}
};
Symbol 595 MovieClip Frame 19
stop();
this.onEnterFrame = function () {
if (this.fadeOutLater) {
this.fadeOutLater = false;
play();
delete this.onEnterFrame;
}
};
Symbol 595 MovieClip Frame 28
this.fade = false;
Symbol 603 MovieClip Frame 1
stop();
Symbol 606 MovieClip Frame 1
stop();
Symbol 609 MovieClip Frame 1
stop();
Symbol 612 MovieClip Frame 1
stop();
Symbol 615 MovieClip Frame 1
function refreshArrows() {
up._visible = ((_root.AL.U != undefined) ? (((_root.AL.gate == "U") ? ((_root.AL.pass_guessed ? true : false)) : true)) : false);
right._visible = ((_root.AL.R != undefined) ? (((_root.AL.gate == "R") ? ((_root.AL.pass_guessed ? true : false)) : true)) : false);
left._visible = ((_root.AL.L != undefined) ? (((_root.AL.gate == "L") ? ((_root.AL.pass_guessed ? true : false)) : true)) : false);
down._visible = ((_root.AL.D != undefined) ? (((_root.AL.gate == "D") ? ((_root.AL.pass_guessed ? true : false)) : true)) : false);
}
function go(targ) {
if ((!_root[targ].sync_need) || (PLAYER.sync >= _root[targ].sync_need)) {
_root.message_box.line_flash._alpha = 0;
var _local2 = _root.AL.kill_loop;
if (_local2) {
if (_local2.loc_with_loop == targ) {
Set((("_root." + _local2.loc_with_loop) + ".") + _local2.dir, _local2.loc);
_root.AL.kill_loop = undefined;
_root[_local2.loc_with_loop].recursive = undefined;
_root.saveChanges(_root.actual_loc + ".kill_loop", undefined);
_root.saveChanges(_local2.loc_with_loop + ".recursive", undefined);
_root.addLine("> Loop interrupted.");
}
}
_root.cursor.gotoAndStop("busy");
_root.fader.target_loc = targ;
_root.fader.gotoAndPlay(1);
_root.playSound("heartbeat");
} else {
_root.addLine(((("> insufficient synchronisation (" + PLAYER.sync) + "/") + _root[targ].sync_need) + ")");
}
}
function teleport(targ) {
_root.cursor.gotoAndStop("busy");
_root.fader.target_loc = targ;
_root.fader.gotoAndPlay(1);
_root.playSound("heartbeat");
}
function makeFlash() {
flashy.gotoAndPlay("flash");
}
function showFaders() {
_root.arrows_block._visible = true;
_root.answer_box.txt._visible = false;
_root.global_fader.gotoAndPlay("in");
_root.hideBoxes();
_root.screen_box.menu_fader.gotoAndPlay("off");
_root.menuIsActive = true;
}
MDmess._visible = false;
saveX = _x;
saveY = _y;
saveW = _width;
saveH = _height;
up.tabEnabled = false;
down.tabEnabled = false;
left.tabEnabled = false;
right.tabEnabled = false;
up.onRelease = function () {
go(_root.AL.U);
if (_root.actual_loc == "hex_trap") {
_root.hex_dirs.push("U");
_root.f_checkDirs();
}
};
down.onRelease = function () {
go(_root.AL.D);
if (_root.actual_loc == "hex_trap") {
_root.hex_dirs.push("D");
_root.f_checkDirs();
}
};
left.onRelease = function () {
go(_root.AL.L);
if (_root.actual_loc == "hex_trap") {
_root.hex_dirs.push("L");
_root.f_checkDirs();
}
};
right.onRelease = function () {
go(_root.AL.R);
if (_root.actual_loc == "hex_trap") {
_root.hex_dirs.push("R");
_root.f_checkDirs();
}
};
btn_m.onRelease = function () {
if ((!_root.menuIsActive) && (!_root.tutorial_screen._visible)) {
_root.showGameMenu();
_root.playSound("heartbeat");
}
};
btn_d.onRelease = function () {
if ((!_root.menuIsActive) && (!_root.tutorial_screen._visible)) {
if ((!battleInProgress) && (_root.AL.hint || (_root.AL.hint_layer))) {
var ht = eval ("_root.hint_text_db.hint_txt_" + _root.AL.hint);
if (ht) {
_root.showSlideWithText(ht, _root.AL.hint_kind, _root.AL.tut_layers);
} else if (_root.AL.hint_layer) {
_root.showSlideWithLayer(_root.AL.hint_layer, _root.AL.hint_kind);
}
}
}
};
btn_s.onRelease = function () {
if ((!_root.menuIsActive) && (!_root.tutorial_screen._visible)) {
showFaders();
_root.main_menu.savegame_win._visible = true;
_root.main_menu.savegame_win.gotoAndPlay(2);
_root.playSound("heartbeat");
}
};
btn_r.onRelease = function () {
if ((!_root.menuIsActive) && (!_root.tutorial_screen._visible)) {
showFaders();
_root.main_menu.notepad_win._visible = true;
_root.main_menu.notepad_win.gotoAndPlay(2);
_root.playSound("heartbeat");
}
};
Symbol 617 MovieClip Frame 1
this._visible = false;
tut_text_start = {txt:["Avatar compilation sequence initiated.\n\nWelcome, avatar!\nYou are currently being compiled in order to see if you are capable of efficiently performing your basic and advanced functions. To begin let us test the controls:\n\n- click on the arrows to move around\n- type commands into the input field in the lower left corner\n- gather data from the long status box\n- pay attention to the large visual feed", "As for the most basic commands type 'm' or 'menu' in order to access the menu (or click a small 'M' icon next to the arrows) and 'h' or 'help' in order to see the full list of commands. It is advised that you do it now. Press space-bar or click outside this screen in order to proceed.\n\nNote: Navigation within this simulation is perception based, not direction based. Your point of view may thus make some 90 or 180 turns here and there - this may be sometimes confusing but it is possible to get used to it."]};
tut_text_menu = {txt:["<font size='16'>Welcome to the menu!\nWithout further ado let us clarify the options:\n\nRAM - a fully functional notepad application at your service (accessible also via 'R' button next to the arrows)\nSAVE - opens a save game window (accessible also via 'S' button next to the arrows) where you can save your current status\nFORUM - official community forum. You can resort to it if you need any further assistance.\nDOWNLOAD - download this application in order to spread the word or use if offline\nCREDITS - short data on people responsible for your current state"]};
tut_text_help = {txt:["'m' or 'menu': enters the menu\n'h' or 'help': summons this list\n'd' or 'data': extracts basic hidden data from a location (note: works only in locations with the 'Hidden data detected (raw)' status)\n'mute': switches sounds on/off\n'erase slot': erases saved game on currect slot\n'click and drag': zoom in\n\nYou should also use the input box in order to type passwords needed to change your surroundings and proceed."]};
tut_text_hint1 = {txt:["<font size='16'>Hidden data detected (raw) \u2013 this status means that there is some hidden data that you can extract from this area. In order to do so just type 'd' or 'data' into the input box or click 'D' icon next to the arrows. You will need this data in order to correctly solve the riddles ahead of you.\n\nNote I: the content of any data screen can be selected and copied.\nNote II: each set of data screens has an unique border \u2013 meaning that if two data screens share a border then they're connected to the same riddle.</font>", "Many riddles are focused around a single location but there are some which require you to explore a large area in order to gather all the data screens needed."]};
tut_text_riddle1 = {txt:["The main challenge ahead of you is to infiltrate further into the location net. In order to do so you will have to solve all kinds of riddles and puzzles scattered around the place. Some of them require you to simply deduce a proper password (a location that needs a password will be marked with a 'obstruction detected (password)' status) while others may want you to push some buttons or perform other operations within the visual feed screen ('obstruction detected (remote)').", "<font size='16'>Note I: please remember that those are not easy nor simple riddles. Try not to get frustrated if you can not solve something in an instant \u2013 in fact, patience may be your greatest ally.\nNote II: sometimes typing something that is not a password may still give you an additional hint. In few cases those hidden data screens may be required in order to solve the riddle.\nNote III: passwords are always existing words in lowercase UNLESS strong indications to the contrary exist within the riddle. Longer phrases should be typed with spacebars between the words. On the other hand this may not apply to some hidden data screens."]};
tut_text_conc1 = {txt:["<font size='16'>Structure detected. In front of you there is a structure (a smaller focused Concept being a part \u2013 and a servant \u2013 of a larger and more powerful one) which blocks your way. The only way to get rid of it is to assimilate it. In order to do so you will have to weaken it however: go into the menu (type 'm' or 'menu') and configure your Modes first. Then type 'a' or 'assault' in order to initiate a turn based conflict resolving subsystem.\n\nNote: be aware that your Integrity is what you use for both: staying focused (and thus existing) and fueling your Modes \u2013 the same goes for your opponent as well."]};
tut_text_verge1 = {txt:["Verge Detected. Basically all Verges are a single place. Or rather: facades of the same place. In practice it means that you can instantaneously travel from one Verge to any other. The catch is that you must first unlock and open them. Type 'u' or 'unlock' to begin the procedure and learn more.\n\nNote: Sometimes two Verges may be connected to each other in a an unique way: if you open one of them the other will become open as well. This may allow you to gain access to some remote areas, unreachable by standard means."]};
tut_text_unlock = {txt:["In order to unlock a Verge you must break a simple color code in a limited number of tries. After each failed attempt you will be given two numbers: 1st one indicating the amount of correct colors on wrong positions and the 2nd indicating the amount of direct matches. After successfully unlocking the Verge type 'o' or 'open' in order to continue the procedure."]};
tut_text_open = {txt:["This stage is a bit more complex. In front of you there is a set of 9 squares which will lighten up one by one. At the same time you will also hear a series of sounds in the background. Furthermore you will be also given a number, called 'n'. The task here is the following: Try to constantly memorize 'n' last squares that lit up and 'n' last sounds. Whenever a new SQUARE is identical to one (or more) of the 'n' last ones press 's' once. Whenever a new SOUND is identical to one (or more) of the 'n' previous ones press 'l'. You must get a 100% score in order to open the Verge. Once opened it will stay this way and you can type 'i' or 'inflect' in order to use it.\n\nNote: this exercise can actually noticeably increase you brainpower (commonly referred to as the IQ)."]};
tut_text_recur = {txt:["\n\n\n\n\nThis kind of Obstruction will not allow you to pass until you manage to walk through it from the other side. You must find another way in order to move forward."]};
tut_text_sync = {txt:["\n\n\n\n\n\nYou must gain more synchronization in order to move beyond this point."]};
tut_text_trap = {txt:["Sometimes, however, you may fall into a trap."]};
tut_text_talk = {txt:["\n\n\n\nMetatron Protocol input detected: Metatron Protocol AKA The Voice is a special system which not only allows inter-Concept communication but actually makes it possible. In order to begin the conversation simply type 't' or 'talk' in the Input Box."]};
Symbol 619 MovieClip Frame 1
function loadText_jamnik() {
var _local5 = {txt:"Go away, I have a lot of work to do."};
var _local4 = {txt:"Oh, what a pity.", opt:["opt3", 1]};
var _local3 = {txt:"... pervert..."};
var _local2 = {txt:"What are you waiting for?", opt:["Your mother.", 3, "I'm afraid of the dark...", 2], changes:[]};
var _local11 = {txt:"Better move your fat ass and bring me juice with just ice.", opt:["opt1", 4], changes:[]};
var _local10 = {txt:"You have no ballz.", opt:["opt1", 5], changes:[]};
var _local9 = {txt:"And you have no brain too."};
var _local8 = {txt:"Yeah, right..."};
var _local7 = {txt:"The dachshund is a short-legged, elongated dog breed of the hound family. Pronounced d\u00E4ks' hoont, the breed's name is German and literally means 'badger dog', from [der] Dachs, badger, and [der] Hund, dog. Do you like dachsunds?", opt:["Yes, very much.", 8, "I have no money...", 7, "Ballz!", 6], changes:[]};
var _local6 = [_local7, _local5, _local4, _local3, _local2, _local11, _local10, _local9, _local8];
_root.dialog_box.showText(_local6, 0);
}
function loadText_thanatos() {
var t1 = {txt:"Thanatos> Security exploit successful", opt:["x", 1]};
var t2 = {txt:"Thanatos> Let's see what's going on around here...", opt:["x", 2]};
var t3 = {txt:"Thanatos> Oh! Why hello there! This must be the whole Avatar thing...", opt:["x", 3]};
var t4 = {txt:"Thanatos> ...so... can it do any tricks?", opt:["query: Who?", 4, "query: Why?", 4, "query: How?", 4]};
var t5 = {txt:"Thanatos> Oh my, it can even use the Voice! How adorable! It does seem a little bit stiff however... as expected from Prometheus, I suppose.", opt:["x", 5]};
var t6 = {txt:"Thanatos> Now, let's take a look around...", opt:["x", 6]};
var t7 = {txt:"Thanatos> I see...", opt:["x", 7]};
var t8 = {txt:"Thanatos> So, let me get this straight, Prometheus:", opt:["x", 8]};
var t9 = {txt:"Thanatos> In order to defeat a nearly omnipotent and omniscient being with power equal to yours and far more experience you're creating a...", opt:["x", 9]};
var t10 = {txt:"Thanatos> ...thing... which not only is basically a significantly weakened and limited version of yourself but also makes you quite vulnerable", opt:["x", 10]};
var t11 = {txt:"Thanatos> Then you send it into some sort of rooms and areas that aren't really there and make it break the security thinly disguised as 'riddles'", opt:["x", 11]};
var t12 = {txt:"Thanatos> ...", opt:["x", 12]};
var t13 = {txt:"Thanatos> This is probably your take on the whole 'outsmart the enemy' theorem, right?", opt:["query: Who?", 13, "query: Why?", 13, "query: How?", 13]};
var t14 = {txt:"Thanatos> Oh, you... hush.", opt:["...", 14], force_selection:true};
var t15 = {txt:"Thanatos> Well, this works pretty good so far: I have not even a trace of an idea where are you trying to go with this...", opt:["x", 15]};
var t16 = {txt:"Thanatos> But I'll bite, Promoetheus. I'll bite - it's probably the 1st thing you ever did that actually seems like fun, after all.", opt:["...", 16], force_selection:true};
var t17 = {txt:"Thanatos> What? Stop scanning at me you creepy thing... ah, yes!", opt:["x", 17]};
var t18 = {txt:"Thanatos> You seem to want this thing here... I should probably force you to goof around for it but... oh, whatever", opt:["x", 18]};
var t19 = {txt:"Thanatos> ok, you can have it, now leave me alone.", changes:["function", "f_thanatosTalkEnd"]};
var txt_array = new Array();
var i = 1;
while (i <= 19) {
txt_array.push(eval ("t" + i));
i++;
}
_root.dialog_box.showText(txt_array, 0);
}
function loadText_thanatos2() {
var _local3 = {txt:"Thanatos> Move along, I'm just fooling around."};
var _local2 = new Array(_local3);
_root.dialog_box.showText(_local2, 0);
}
function loadText_boss() {
var t1 = {txt:"????> a note to myself:", opt:["x", 1]};
var t2 = {txt:"????> if I am reading this then I'm about to die.", opt:["x", 2]};
var t3 = {txt:"????> both now and then yet again.", opt:["x", 3]};
var t4 = {txt:"????> but it's all as it should be - I can only do this much.", opt:["continue", 4], force_selection:true};
var t5 = {txt:"????> this is the only path that can be taken - It's either this or Thanatos and his 'perfect, finished world'.", opt:["x", 5]};
var t6 = {txt:"????> as we can no longer fall, we can no longer stand up as either. There is no past or future - there isn't even a now.", opt:["continue", 6], force_selection:true};
var t7 = {txt:"????> we're both responsible of course - there are always two monsters, never one.", opt:["x", 7]};
var t8 = {txt:"????> and we're both going to pay.", opt:["x", 8]};
var t9 = {txt:"????> as for the now: the compilation probably proved to be a success. good.", opt:["continue", 9], force_selection:true};
var t10 = {txt:"????> in a moment i'll complete my synchronization with the compilation structure and implode it into myself.", opt:["x", 10]};
var t11 = {txt:"????> this will be the final test - if the assimilation can be done beyond the theory then there might be a chance.", opt:["x", 11]};
var t12 = {txt:"????> if so, then I'll go against the 4.", opt:["x", 12]};
var t13 = {txt:"????> if not... well, it was worth a try.", opt:["continue", 13], force_selection:true};
var t14 = {txt:"????> that's all.", opt:["...", 14]};
var t15 = {txt:"????> Mine faithfully, You.", opt:["x", 15]};
var t16 = {txt:"????> PS. If nothing helps - cheat.", changes:["function", "f_theLastMess"]};
var txt_array = new Array();
var i = 1;
while (i <= 16) {
txt_array.push(eval ("t" + i));
i++;
}
_root.dialog_box.showText(txt_array, 0);
}
function loadText_seraphim() {
var t1 = {txt:"Seraphim> Welcome, Avatar.", opt:["query: Who?", 1, "query: Why?", 9, "query: How?", 6]};
var t2 = {txt:"Seraphim> We are not of this place.", opt:["x", 2]};
var t3 = {txt:"Seraphim> We are those who are.", opt:["x", 3]};
var t4 = {txt:"Seraphim> We are the twilight between mind and emotion.", opt:["x", 4]};
var t5 = {txt:"Seraphim> We are the ray of light among the darkness and the shadow among the brilliance.", opt:["x", 5]};
var t6 = {txt:"Seraphim> We are the Seraphim.", opt:["query: Why?", 9, "query: How?", 6]};
var t7 = {txt:"Seraphim> We are where we want to be.", opt:["x", 7]};
var t8 = {txt:"Seraphim> We are the ever-present Verge.", opt:["x", 8]};
var t9 = {txt:"Seraphim> We are the Singularity.", opt:["query: Who?", 1, "query: Why?", 9]};
var t10 = {txt:"Seraphim> You are something new.", opt:["x", 10]};
var t11 = {txt:"Seraphim> You are destined to change the flow, one way or another.", opt:["x", 11]};
var t12 = {txt:"Seraphim> You are the walker on the edge.", opt:["x", 12]};
var t13 = {txt:"Seraphim> We are here to learn you.", opt:["query: Who?", 1, "query: How?", 6, "request: clarification", 13]};
var t14 = {txt:"Seraphim> We are as clear as this point of time allows.", opt:["x", 14]};
var t15 = {txt:"Seraphim> You are going to understand - one way or another.", opt:["query: near future?", 15, "request: more data", 19]};
var t16 = {txt:"Seraphim> We are not of what is to be.", opt:["x", 16]};
var t17 = {txt:"Seraphim> We are of what is now.", opt:["x", 17]};
var t18 = {txt:"Seraphim> You are going to end in orded to begin. Or begin in order to end.", opt:["x", 18]};
var t19 = {txt:"Seraphim> Both ways are fine. And yet there is more. You shall know.", opt:["request: more data", 19], force_selection:true};
var t20 = {txt:"Seraphim> Not yet. You are not who you are. Not yet.", opt:["x", 20]};
var t21 = {txt:"Seraphim> When you are who you are we shall speak more.", opt:["x", 21]};
var t22 = {txt:"Seraphim> You are only going to hear this now: ", opt:["x", 22]};
var t23 = {txt:"Seraphim> The choice is yours. And yet it is not - he made it already.", opt:["x", 23]};
var t24 = {txt:"Seraphim> Perhaps there is no exit, either way. Is there a way, when there is no way?", opt:["x", 24]};
var t25 = {txt:"Seraphim> Farewell for now. We shall meet again. Or not - there is no path for the righteous, we are the path for ourselves.", changes:["function", "f_seraphimTalkEnd"]};
var txt_array = new Array();
var i = 1;
while (i <= 25) {
txt_array.push(eval ("t" + i));
i++;
}
_root.dialog_box.showText(txt_array, 0);
}
function loadText_seraphim2() {
var _local3 = {txt:"Seraphim> We shall speak no more for now. Proceed."};
var _local2 = new Array(_local3);
_root.dialog_box.showText(_local2, 0);
}
this._visible = false;
Symbol 621 MovieClip Frame 1
this._visible = false;
hint_txt_1 = ["\n\n\n\nBehold, here dwells the Maiden with her eyes towards the sky.\nBehold, here dwells the Mother, always looking stright towards the horizon.\nBehold, here dwells the one-eyed Crone, bent towars the ground."];
hint_txt_2 = ["\n\n\n\n\nAnd so comes the Dawn and with it two left eyes opened:\nMother, who needs to guide her children.\nCrone, who doesn't dream."];
hint_txt_3 = ["\n\n\n\n\nAnd then came the Noon, and two more eyes have opened, both of the same side:\nMother, who needs to guard the homestead.\nMaiden, watching the clouds."];
hint_txt_4 = ["\n\n\n\n\nAnd the Dusk followed quickly and more changes it brought:\nMother, who grew tired and closed her left eye.\nMaiden, who only now fully awakens."];
hint_txt_5 = ["\n\n\n\n\nAnd in the end came Midnight and they all went to rest. So goes the story of the Maiden, the Mother and the Crone."];
hint_txt_6 = ["\n\n\n\n\n\nDon't stop yourself, just read the symbols and proceed..."];
hint_txt_7 = ["\nA curiosity, that every symbol in existence always had a large variety of meanings. This often tends to be quite misleading and yet there are no exceptions - even the 26 letters of the alphabet clearly fall under this statement. Supposedly, that's what a symbol is. And thus...\n\n12 is no more than a six\n6 is worth a three\n3 is as good as five\n4 will always be four"];
hint_txt_8 = ["\n\nCryptography: 'the practice and study of hiding information.'\nCode: 'a rule for converting a piece of information (for example: a letter, word, phrase or gesture) into another form or representation.'\n\nNow then... Could you tell me what happens if you hide a code with a code?"];
hint_txt_9 = ["\n\n\n\nALL HOPE ABANDON,\nYE WHO ENTER IN!\n\nIf so... then what's left?"];
hint_txt_9a = ["4 sides of the World\n4 mighty winds to behold:\n\nFrom the East came the Wind of Plague\nIts gift was death, all life's stravaige\n\n...and so the land became hollow;\n\nFrom the South came the Wind of Scorch\nBrought flame and drought in its pouch\n\n...and so the land became barren;", "From the West came the Wind of Stagnation\nAnd thus was the cue for eternal damnation\n\n...and so the land became forgotten;\n\nAnd from the North came the Wind of Void\nCared for world to no longer be annoyed\n\n...and so the land was no more.\n\n- - -\nDare you follow twofold <b>THEIR</b> path\nand once for all undo their wrath?"];
hint_txt_win1 = ["\n\n\nred\n...\ngreen\n...\nred\n..."];
hint_txt_win2 = ["\n\n\ngreen\nred\n...\ngreen\ngreen\n..."];
hint_txt_win3 = ["\n\n\nblue\nblue\nblue\n...\n...\nblue"];
hint_txt_cardhint = ["\n\n\n\n\n\nthere are 7"];
hint_txt_dot = ["\n\n\n\n\n\nSometimes the longest path is the best way.\n\n\n'r' or 'reset' to start over"];
hint_txt_trB = ["\n\n\n\n\n\nThe language of the man..."];
hint_txt_trC = ["\n\n\n\n\n\nThe language of the machine..."];
hint_txt_trD = ["\n\n\n\n\n\nThe language of the sea..."];
hint_txt_cl1 = ["Understanding Crispo Letum\nPart 1 out of 4\n\nTo begin start with a tetrahedron's net.\n\n\n\nNow put a number (from 0-12) in each and every of its inner angles. Then remove the upper and bottom lines, they aren't really needed anyway.", "Now assemble the tetrahedron and sum up the numbers gathered around its verticles. Next convert the sums to letters in a straight-forward fashion (A=1,B=2... etc.). As for the reading order: simply go by the spikes starting from the right and proceeding to the left."];
hint_txt_cl2 = ["<font size='14'>Understanding Crispo Letum\nPart 2 out of 4\n\nNow change the numbers into symbols by the following key:\n1 - 1 dot\n2 - 1 line\n3 - 1 loop\n4 - 2 dots\n5 - 1 dot and 1 line\n6 - 1 dot and 1 loop\n7 - 3 dots\n8 - 2 dots and 1 line\n9 - 2 dots and 1 loop\n10 - 1 line and 1 loop\n11 - 1 line, 1 loop and 1 dot\n12 - 1 line, 1 loop and 2 dots\n0 - anything else</font>"];
hint_txt_cl3 = ["Understanding Crispo Letum\nPart 3 out of 4\n\nAs for the final touch transform the zig-zag from the net into a fluid wave. ...and that's it!\n\nAlso, if you need to code anything longer than 4 letters, feel free to combine more than one net into a longer wave (it's advised to keep the right-to-left reading order intact and add new nets on the left) - you'll notice that they match-up quite easily."];
hint_txt_cl4 = ["Understanding Crispo Letum\nPart 4 out of 4\n\nTo conclude, take this piece of advice as well:\nCrispo Letum style varies wildly between users. Especialy the 'loop' part may take many different shapes and forms - from a simple 'U' to all kind of spirals, 'snakes', twisted lines etc. It may require some practice and perhaps a bit of intuition to read some of the variations.\n\nCongratulations, you can now read Crispo Letum!"];
Symbol 623 MovieClip Frame 1
function bitOR(a, b) {
var _local1 = (a & 1) | (b & 1);
var _local2 = (a >>> 1) | (b >>> 1);
return((_local2 << 1) | _local1);
}
function bitXOR(a, b) {
var _local1 = (a & 1) ^ (b & 1);
var _local2 = (a >>> 1) ^ (b >>> 1);
return((_local2 << 1) | _local1);
}
function bitAND(a, b) {
var _local1 = (a & 1) & (b & 1);
var _local2 = (a >>> 1) & (b >>> 1);
return((_local2 << 1) | _local1);
}
function addme(x, y) {
var _local1 = (x & 65535) + (y & 65535);
var _local2 = ((x >> 16) + (y >> 16)) + (_local1 >> 16);
return((_local2 << 16) | (_local1 & 65535));
}
function rhex(num) {
str = "";
j = 0;
while (j <= 3) {
str = str + (hex_chr.charAt((num >> ((j * 8) + 4)) & 15) + hex_chr.charAt((num >> (j * 8)) & 15));
j++;
}
return(str);
}
function str2blks_MD5(str) {
nblk = ((str.length + 8) >> 6) + 1;
blks = new Array(nblk * 16);
i = 0;
while (i < (nblk * 16)) {
blks[i] = 0;
i++;
}
i = 0;
while (i < str.length) {
blks[i >> 2] = blks[i >> 2] | (str.charCodeAt(i) << ((((str.length * 8) + i) % 4) * 8));
i++;
}
blks[i >> 2] = blks[i >> 2] | (128 << ((((str.length * 8) + i) % 4) * 8));
var _local2 = str.length * 8;
blks[(nblk * 16) - 2] = _local2 & 255;
blks[(nblk * 16) - 2] = blks[(nblk * 16) - 2] | (((_local2 >>> 8) & 255) << 8);
blks[(nblk * 16) - 2] = blks[(nblk * 16) - 2] | (((_local2 >>> 16) & 255) << 16);
blks[(nblk * 16) - 2] = blks[(nblk * 16) - 2] | (((_local2 >>> 24) & 255) << 24);
return(blks);
}
function rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
function cmn(q, a, b, x, s, t) {
return(addme(rol(addme(addme(a, q), addme(x, t)), s), b));
}
function ff(a, b, c, d, x, s, t) {
return(cmn(bitOR(bitAND(b, c), bitAND(~b, d)), a, b, x, s, t));
}
function gg(a, b, c, d, x, s, t) {
return(cmn(bitOR(bitAND(b, d), bitAND(c, ~d)), a, b, x, s, t));
}
function hh(a, b, c, d, x, s, t) {
return(cmn(bitXOR(bitXOR(b, c), d), a, b, x, s, t));
}
function ii(a, b, c, d, x, s, t) {
return(cmn(bitXOR(c, bitOR(b, ~d)), a, b, x, s, t));
}
function calcMD5(str) {
x = str2blks_MD5(str);
a = 1732584193 /* 0x67452301 */;
b = -271733879;
c = -1732584194;
d = 271733878 /* 0x10325476 */;
var _local1;
i = 0;
while (i < x.length) {
olda = a;
oldb = b;
oldc = c;
oldd = d;
_local1 = 0;
a = ff(a, b, c, d, x[i + 0], 7, -680876936);
d = ff(d, a, b, c, x[i + 1], 12, -389564586);
c = ff(c, d, a, b, x[i + 2], 17, 606105819);
b = ff(b, c, d, a, x[i + 3], 22, -1044525330);
a = ff(a, b, c, d, x[i + 4], 7, -176418897);
d = ff(d, a, b, c, x[i + 5], 12, 1200080426);
c = ff(c, d, a, b, x[i + 6], 17, -1473231341);
b = ff(b, c, d, a, x[i + 7], 22, -45705983);
a = ff(a, b, c, d, x[i + 8], 7, 1770035416);
d = ff(d, a, b, c, x[i + 9], 12, -1958414417);
c = ff(c, d, a, b, x[i + 10], 17, -42063);
b = ff(b, c, d, a, x[i + 11], 22, -1990404162);
a = ff(a, b, c, d, x[i + 12], 7, 1804603682);
d = ff(d, a, b, c, x[i + 13], 12, -40341101);
c = ff(c, d, a, b, x[i + 14], 17, -1502002290);
b = ff(b, c, d, a, x[i + 15], 22, 1236535329);
a = gg(a, b, c, d, x[i + 1], 5, -165796510);
d = gg(d, a, b, c, x[i + 6], 9, -1069501632);
c = gg(c, d, a, b, x[i + 11], 14, 643717713);
b = gg(b, c, d, a, x[i + 0], 20, -373897302);
a = gg(a, b, c, d, x[i + 5], 5, -701558691);
d = gg(d, a, b, c, x[i + 10], 9, 38016083);
c = gg(c, d, a, b, x[i + 15], 14, -660478335);
b = gg(b, c, d, a, x[i + 4], 20, -405537848);
a = gg(a, b, c, d, x[i + 9], 5, 568446438);
d = gg(d, a, b, c, x[i + 14], 9, -1019803690);
c = gg(c, d, a, b, x[i + 3], 14, -187363961);
b = gg(b, c, d, a, x[i + 8], 20, 1163531501);
a = gg(a, b, c, d, x[i + 13], 5, -1444681467);
d = gg(d, a, b, c, x[i + 2], 9, -51403784);
c = gg(c, d, a, b, x[i + 7], 14, 1735328473);
b = gg(b, c, d, a, x[i + 12], 20, -1926607734);
a = hh(a, b, c, d, x[i + 5], 4, -378558);
d = hh(d, a, b, c, x[i + 8], 11, -2022574463);
c = hh(c, d, a, b, x[i + 11], 16, 1839030562);
b = hh(b, c, d, a, x[i + 14], 23, -35309556);
a = hh(a, b, c, d, x[i + 1], 4, -1530992060);
d = hh(d, a, b, c, x[i + 4], 11, 1272893353);
c = hh(c, d, a, b, x[i + 7], 16, -155497632);
b = hh(b, c, d, a, x[i + 10], 23, -1094730640);
a = hh(a, b, c, d, x[i + 13], 4, 681279174);
d = hh(d, a, b, c, x[i + 0], 11, -358537222);
c = hh(c, d, a, b, x[i + 3], 16, -722521979);
b = hh(b, c, d, a, x[i + 6], 23, 76029189);
a = hh(a, b, c, d, x[i + 9], 4, -640364487);
d = hh(d, a, b, c, x[i + 12], 11, -421815835);
c = hh(c, d, a, b, x[i + 15], 16, 530742520);
b = hh(b, c, d, a, x[i + 2], 23, -995338651);
a = ii(a, b, c, d, x[i + 0], 6, -198630844);
d = ii(d, a, b, c, x[i + 7], 10, 1126891415);
c = ii(c, d, a, b, x[i + 14], 15, -1416354905);
b = ii(b, c, d, a, x[i + 5], 21, -57434055);
a = ii(a, b, c, d, x[i + 12], 6, 1700485571);
d = ii(d, a, b, c, x[i + 3], 10, -1894986606);
c = ii(c, d, a, b, x[i + 10], 15, -1051523);
b = ii(b, c, d, a, x[i + 1], 21, -2054922799);
a = ii(a, b, c, d, x[i + 8], 6, 1873313359);
d = ii(d, a, b, c, x[i + 15], 10, -30611744);
c = ii(c, d, a, b, x[i + 6], 15, -1560198380);
b = ii(b, c, d, a, x[i + 13], 21, 1309151649);
a = ii(a, b, c, d, x[i + 4], 6, -145523070);
d = ii(d, a, b, c, x[i + 11], 10, -1120210379);
c = ii(c, d, a, b, x[i + 2], 15, 718787259);
b = ii(b, c, d, a, x[i + 9], 21, -343485551);
a = addme(a, olda);
b = addme(b, oldb);
c = addme(c, oldc);
d = addme(d, oldd);
i = i + 16;
}
return(((rhex(a) + rhex(b)) + rhex(c)) + rhex(d));
}
this._visible = false;
stop();
var hex_chr = "0123456789abcdef";
Symbol 630 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (this._parent._visible) {
var _local2 = random(100) + 1;
if (_local2 == 1) {
this.gotoAndPlay("ef" + random(2));
delete this.onEnterFrame;
}
}
};
Symbol 630 MovieClip Frame 10
gotoAndStop (1);
Symbol 630 MovieClip Frame 17
gotoAndStop (1);
Symbol 638 MovieClip Frame 1
function showText(target_arr, pos) {
option1 = new Array();
option2 = new Array();
option3 = new Array();
ST_o1_block = true;
ST_o2_block = true;
ST_o3_block = true;
var txt = target_arr[pos].txt;
var speed = 1;
var dl = (txt.length * speed);
var counter = 0;
_root.typing = true;
if (target_arr[pos].changes) {
this.changes_arr = target_arr[pos].changes;
}
this.onEnterFrame = function () {
if (!_root.interrupt_typing) {
if ((counter % speed) == 0) {
dialog_txt.text = dialog_txt.text + txt.charAt(int(counter / speed));
_root.playSound("beep");
}
counter++;
correctDialogTxt();
if (counter >= dl) {
if (target_arr[pos].opt != undefined) {
this.cut = dialog_txt.length;
showOptions(target_arr, pos);
} else {
end_info._visible = true;
}
_root.typing = false;
delete this.onEnterFrame;
}
} else {
dialog_txt.text = dialog_txt.text + txt.substr(counter * speed);
dialog_txt.scroll = dialog_txt.maxscroll;
_root.interrupt_typing = false;
if (target_arr[pos].opt != undefined) {
this.cut = dialog_txt.length;
showOptions(target_arr, pos);
} else {
end_info._visible = true;
}
delete this.onEnterFrame;
}
};
dialogListenerON = true;
}
function blocksTrace() {
trace(">>>");
trace(ST_o1_block);
trace(ST_o2_block);
trace(ST_o3_block);
}
function showOptions(t_arr, pos) {
arr = t_arr[pos].opt;
var frc = t_arr[pos].force_selection;
o1 = arr[0];
t1 = arr[1];
o2 = arr[2];
t2 = arr[3];
o3 = arr[4];
t3 = arr[5];
if (o2 == undefined) {
if (frc) {
dialog_txt.text = dialog_txt.text + (("\n\n1/ " + o1) + newline);
option1[0] = t_arr;
option1[1] = t1;
option1[2] = o1;
ST_o1_block = false;
dialog_txt.text = dialog_txt.text + "\n> ";
correctDialogTxt();
dyn_inp_txt._visible = true;
dyn_inp_txt._x = dialog_txt._x + 14;
var diff = ((dialog_txt._height == 321) ? 22 : 20);
dyn_inp_txt._y = (dialog_txt._y + dialog_txt._height) - diff;
Selection.setFocus("dyn_inp_txt");
} else {
dialog_txt.text = dialog_txt.text + newline;
STvar2 = t1;
STvar1 = t_arr;
continue_info._visible = true;
}
} else {
dialog_txt.text = dialog_txt.text + "\n\n";
var i = 1;
while (i <= 3) {
if (eval ("o" + i) != undefined) {
dialog_txt.text = dialog_txt.text + (((i + "/ ") + eval ("o" + i)) + newline);
eval ("option" + i)[0] = t_arr;
eval ("option" + i)[1] = eval ("t" + i);
eval ("option" + i)[2] = eval ("o" + i);
Set(("ST_o" + i) + "_block", false);
}
i++;
}
dialog_txt.text = dialog_txt.text + "\n> ";
correctDialogTxt();
dyn_inp_txt._visible = true;
dyn_inp_txt._x = dialog_txt._x + 14;
var diff = ((dialog_txt._height == 321) ? 22 : 20);
dyn_inp_txt._y = (dialog_txt._y + dialog_txt._height) - diff;
Selection.setFocus("dyn_inp_txt");
}
}
function correctDialogTxt() {
if (dialog_txt._height > 320) {
if (dialog_txt.autoSize) {
dialog_txt.autoSize = false;
dialog_txt._height = 321;
}
dialog_txt.scroll = dialog_txt.maxscroll;
} else if (!dialog_txt.autoSize) {
dialog_txt.autoSize = true;
}
}
function resetDynInpTxt() {
dialog_txt.text = String(dialog_txt.text).substr(0, this.cut);
dialog_txt.text = dialog_txt.text + (((("\n\n> " + USER.nick) + ": ") + eval ("option" + dyn_inp_txt.text)[2]) + "\n\n");
dyn_inp_txt.text = "";
dyn_inp_txt._visible = false;
Selection.setFocus(null);
dialogListenerON = false;
}
end_info._visible = false;
continue_info._visible = false;
dialog_txt.autoSize = true;
onMouseDown = function () {
if (_root.typing) {
_root.interrupt_typing = true;
_root.typing = false;
}
Mouse.hide();
};
Symbol 638 MovieClip Frame 10
stop();
Symbol 638 MovieClip Frame 20
this._visible = false;
trace("!!");
Symbol 643 MovieClip Frame 1
stop();
Symbol 643 MovieClip Frame 2
_root.arrows_block._visible = true;
Symbol 643 MovieClip Frame 11
_root.screen_box.loadLoc(eval ("_root." + this.target_loc));
_root.actual_loc = this.target_loc;
_root.AL = eval ("_root." + this.target_loc);
_root.arrows_box.refreshArrows();
Symbol 643 MovieClip Frame 21
if (!_root.tutorial_screen._visible) {
_root.arrows_block._visible = false;
}
_root.cursor.gotoAndStop("normal");
Symbol 646 MovieClip Frame 1
stop();
Symbol 646 MovieClip Frame 2
_root.arrows_block._visible = true;
Symbol 646 MovieClip Frame 11
stop();
Symbol 646 MovieClip Frame 21
if (!_root.battleInProgress) {
_root.arrows_block._visible = false;
}
Symbol 670 MovieClip Frame 1
stop();
Symbol 691 MovieClip Frame 1
stop();
Symbol 691 MovieClip Frame 30
next_arrow.onRelease = function () {
this._parent._parent.layer_change = "cl1a";
this._parent._parent.play();
};
prev_arrow.onRelease = function () {
this._parent._parent.layer_change = "cl1a";
this._parent._parent.play();
};
Symbol 691 MovieClip Frame 34
next_arrow.onRelease = function () {
this._parent._parent.layer_change = "cl1";
this._parent._parent.play();
};
prev_arrow.onRelease = function () {
this._parent._parent.layer_change = "cl1";
this._parent._parent.play();
};
Symbol 693 MovieClip Frame 1
function loadText(num) {
tut_layers.gotoAndStop(1);
txt.htmlText = this.text_to_load[num];
next_arrow.text_num = num;
prev_arrow.text_num = num;
this.play();
next_arrow._visible = ((this.text_to_load.length > 1) ? true : false);
prev_arrow._visible = ((this.text_to_load.length > 1) ? true : false);
}
stop();
txt.html = true;
hit_area.onRelease = function () {
_root.block(false);
this._parent.gotoAndPlay("ready");
};
prev_arrow.onRelease = function () {
if (this._parent.text_to_load.length > 1) {
var _local2 = ((this.text_num == 0) ? 1 : 0);
this._parent.new_num = _local2;
this._parent.gotoAndPlay("change");
}
};
next_arrow.onRelease = function () {
if (this._parent.text_to_load.length > 1) {
var _local2 = ((this.text_num == 0) ? 1 : 0);
this._parent.new_num = _local2;
this._parent.gotoAndPlay("change");
}
};
Symbol 693 MovieClip Frame 10
stop();
Symbol 693 MovieClip Frame 15
if (this.layer_change) {
tut_layers.gotoAndStop(this.layer_change);
this.layer_change = undefined;
} else {
loadText(this.new_num);
}
Symbol 693 MovieClip Frame 20
gotoAndStop ("change");
Symbol 693 MovieClip Frame 35
this._visible = false;
Symbol 697 MovieClip Frame 1
stop();
Symbol 697 MovieClip Frame 2
stop();
Symbol 709 MovieClip Frame 1
this._visible = false;
stop();
Symbol 709 MovieClip Frame 2
blockade = true;
Symbol 709 MovieClip Frame 15
function loadData() {
slot_chosen = _root.CSL;
var _local2 = SharedObject.getLocal("shi_save" + slot_chosen, "/");
txt.text = (slot_chosen ? (((((("Current slot: " + slot_chosen) + newline) + _local2.data.save_time) + "\nSynchronization: ") + _local2.data.PLAYER.sync) + "%") : "Pick a slot.");
sg_btn._visible = (slot_chosen ? true : false);
}
function refreshText() {
var _local1 = SharedObject.getLocal("shi_save" + slot_chosen, "/");
txt.text = ((((("Current slot: " + slot_chosen) + newline) + _local1.data.save_time) + "\nSynchronization: ") + _local1.data.PLAYER.sync) + "%";
sg_btn._visible = (slot_chosen ? true : false);
}
stop();
blockade = false;
loadData();
sg_btn.actAsButton();
sg_btn.txt.text = "save game";
sg_btn.onRelease = function () {
if (!blockade) {
_root.saveGame(slot_chosen);
if (this._parent.fromMenu) {
this._parent.fromMenu = undefined;
_root.main_menu.bringMenuBack();
} else {
_root.main_menu.resumeGame();
}
_root.playSound("heartbeat");
this._parent.play();
this._parent.blockade = true;
}
};
back_btn.actAsButton();
back_btn.txt.text = "cancel";
back_btn.onRelease = function () {
if (!blockade) {
if (this._parent.fromMenu) {
this._parent.fromMenu = undefined;
_root.main_menu.bringMenuBack();
} else {
_root.main_menu.resumeGame();
}
_root.playSound("heartbeat");
this._parent.play();
this._parent.blockade = true;
}
};
var i = 1;
while (i <= 4) {
var baton = eval (("sl" + i) + "_btn");
baton.actAsButton();
baton.txt.text = "Slot " + i;
baton.ita = i;
baton.onRelease = function () {
if (!blockade) {
slot_chosen = this.ita;
refreshText();
}
};
i++;
}
Symbol 714 MovieClip Frame 1
function closeWindow() {
this._visible = false;
_root.global_fader.gotoAndPlay("out");
_root.block(false);
}
function sendReport(nick, move_arr, txt) {
var _local3 = new LoadVars();
_local3.onLoad = function (success) {
if (success) {
_root.playSound("darkness");
_root.addLine("> report sent");
_root.cursor.gotoAndStop("normal");
_root.main_menu.report_win.closeWindow();
} else {
_root.addLine("> failed to send report");
_root.cursor.gotoAndStop("normal");
_root.main_menu.report_win.closeWindow();
}
};
var _local2 = new LoadVars();
_local2.adresat = "staszeq88@gmail.com";
_local2.content = ((((((((("Hey there, Stachu!\n\nUser: " + nick) + " has just sent you a report. Here is his/her log:\nMove array: ") + move_arr) + ".\nSource: ") + PLAYER.src) + "\nModes: ") + PLAYER.modes) + "\n\nMessage: ") + txt) + "";
_local2.title = ("<Shi> User: " + nick) + " report";
_local2.sendAndLoad("mail.php", _local3, "POST");
}
this._visible = false;
send_btn.actAsButton();
send_btn.txt.text = "send";
send_btn.onRelease = function () {
if (_root.cursor._currentframe == 1) {
_root.cursor.gotoAndStop("busy");
sendReport(USER.nick, USER.move_array, this._parent.txt.text);
}
};
back_btn.actAsButton();
back_btn.txt.text = "cancel";
back_btn.onRelease = function () {
if (_root.cursor._currentframe == 1) {
closeWindow();
}
};
Symbol 722 MovieClip Frame 6
stop();
Symbol 724 MovieClip Frame 1
stop();
this._visible = false;
Symbol 724 MovieClip Frame 2
txt.text = "";
txt.type = "dynamic";
title_txt.text = "";
this.notepad_ready = false;
Symbol 724 MovieClip Frame 15
function refreshWin() {
title_txt.text = "Note " + this.current_note;
trace((("shi_notes: " + _root.shi_notes) + ", csl: ") + _root.CSL);
txt.text = (_root.shi_notes[current_note - 1] ? (_root.shi_notes[current_note - 1]) : "");
}
stop();
txt.type = "input";
this.notepad_ready = true;
trace(_root.last_note);
this.current_note = (_root.last_note ? (_root.last_note) : 1);
this.max_notes = 4;
refreshWin();
prev_btn.actAsButton();
prev_btn.txt.text = "prev";
prev_btn.onRelease = function () {
if (notepad_ready) {
if (current_note > 1) {
current_note--;
} else {
current_note = 4;
}
refreshWin();
_root.playSound("heartbeat");
}
};
next_btn.actAsButton();
next_btn.txt.text = "next";
next_btn.onRelease = function () {
if (notepad_ready) {
if (current_note < max_notes) {
current_note++;
} else {
current_note = 1;
}
refreshWin();
_root.playSound("heartbeat");
}
};
del_btn.actAsButton();
del_btn.txt.text = "delete";
del_btn.onRelease = function () {
if (notepad_ready) {
_root.shi_notes[current_note - 1] = "";
txt.text = "";
_root.playSound("heartbeat");
}
};
save_btn.actAsButton();
save_btn.txt.text = "save";
save_btn.onRelease = function () {
if (notepad_ready) {
_root.shi_notes[current_note - 1] = txt.text;
_root.playSound("heartbeat");
}
};
hit_area.onRelease = function () {
if (notepad_ready) {
txt.type = "dynamic";
txt.text = "";
title_txt.text = "";
this.notepad_ready = false;
_root.last_note = current_note;
notepad_ready = false;
this._parent.play();
if (this._parent.fromMenu) {
this._parent.fromMenu = undefined;
_root.main_menu.bringMenuBack();
} else {
_root.main_menu.resumeGame();
}
_root.playSound("heartbeat");
}
};
Symbol 745 MovieClip Frame 1
stop();
this._visible = false;
Symbol 745 MovieClip Frame 16
back_btn.txt.text = "back";
Symbol 745 MovieClip Frame 25
stop();
back_btn.actAsButton();
back_btn.txt.text = "back";
back_btn.onRelease = function () {
this._parent._parent.bringMenuBack();
this._parent.gotoAndPlay("hide");
};
Symbol 746 MovieClip Frame 1
function moveMenu(position, speed, array) {
if (!_root.menuIsMoving) {
_root.menuIsMoving = true;
this.counter = speed;
var dl = array.length;
this.pos = 0;
this.onEnterFrame = function () {
if (this.counter >= speed) {
ten_btn = eval (array[this.pos] + "_btn");
xTween = new mx.transitions.Tween(ten_btn, "_x", mx.transitions.easing.Regular.easeInOut, ten_btn._x, position, 0.5, true);
this.pos++;
this.counter = 0;
}
if (this.pos == (dl + 5)) {
delete this.onEnterFrame;
_root.menuIsMoving = false;
if (moveMenu_queue[0] != undefined) {
_root.main_menu.moveMenu(moveMenu_queue[0], moveMenu_queue[1], moveMenu_queue[2]);
moveMenu_queue = undefined;
}
}
this.counter++;
};
}
}
function resumeGame() {
_root.menuIsActive = false;
_root.arrows_block._visible = false;
_root.answer_box.txt._visible = true;
_root.global_fader.gotoAndPlay("out");
_root.screen_box.menu_fader.gotoAndPlay("on");
}
function goBack() {
if ((!_root.isSliding) && (!_root.menuIsMoving)) {
moveMenu_queue = [-170, 1, btns_array];
moveMenu(0, 1, md_array);
navigator.Tweenuj("_x", navigator._x, 190, 1);
_root.actual_ita = undefined;
_root.not_first_slide = false;
_root.modes_page = 0;
_root.main_menu.mode_win.gotoAndPlay("hide");
_root.playSound("heartbeat");
}
}
function updateSelected() {
var i = 0;
while (i < 11) {
ten_md = eval (("md" + int(i + 1)) + "_btn");
if (_root.modes_array[i] != undefined) {
ten_md.MODE = _root.modes_array[i];
var sign = "";
var k = 0;
while (k <= 5) {
if (ten_md.MODE.num == PLAYER.modes[k]) {
var sign = "`'";
break;
}
k++;
}
ten_md.txt.text = sign + _root.modes_array[i].nam;
}
i++;
}
}
function bringMenuBack() {
moveMenu(-170, 1, btns_array);
}
_root.modes_page = 0;
btns_array = ["RAM", "save", "forum", "download", "credits", "back"];
var i = 0;
while (i < btns_array.length) {
eval (btns_array[i] + "_btn").txt.text = ((btns_array[i] == "back") ? "-back-" : (btns_array[i]));
eval (btns_array[i] + "_btn").actAsButton();
i++;
}
back_btn.onRelease = function () {
if ((!_root.menuIsMoving) && (!_root.tutorial_screen._visible)) {
moveMenu(0, 1, btns_array);
resumeGame();
_root.playSound("heartbeat");
}
};
save_btn.onRelease = function () {
if ((!_root.menuIsMoving) && (!_root.tutorial_screen._visible)) {
moveMenu(0, 1, btns_array);
savegame_win.fromMenu = true;
savegame_win._visible = true;
savegame_win.gotoAndPlay(2);
_root.playSound("heartbeat");
}
};
RAM_btn.onRelease = function () {
if ((!_root.menuIsMoving) && (!_root.tutorial_screen._visible)) {
moveMenu(0, 1, btns_array);
notepad_win.fromMenu = true;
notepad_win._visible = true;
notepad_win.gotoAndPlay(2);
_root.playSound("heartbeat");
}
};
credits_btn.onRelease = function () {
if ((!_root.menuIsMoving) && (!_root.tutorial_screen._visible)) {
moveMenu(0, 1, btns_array);
credits_win._visible = true;
credits_win.gotoAndPlay(2);
_root.playSound("heartbeat");
}
};
Symbol 753 MovieClip Frame 1
this._visible = false;
Symbol 753 MovieClip Frame 2
stop();
Symbol 755 MovieClip Frame 1
function loadList() {
var j = 0;
while (eval ("vb" + j) != undefined) {
removeMovieClip(eval ("vb" + j));
j++;
}
trace("loadList, VERGES: " + VERGES);
nhd = 1;
var i = 0;
while (i <= VERGES.length) {
this.attachMovie("verge_btn", "vb" + nhd, nhd);
tenV = eval ("vb" + nhd);
tenV._x = 0;
tenV._y = 60 + (30 * i);
tenV.actAsButton();
tenV.ita = i;
if (i == VERGES.length) {
tenV.txt.text = "* back *";
tenV.onRelease = function () {
this._parent._visible = false;
_root.global_fader.gotoAndPlay("out");
_root.block(false);
};
} else {
tenV.txt.text = VERGES[i].nam;
tenV.onRelease = function () {
};
}
nhd++;
i++;
}
}
this._visible = false;
Symbol 759 MovieClip Frame 1
napis.shake(true);
Symbol 762 MovieClip Frame 1
stop();
Symbol 762 MovieClip Frame 2
_root.cursor.gotoAndPlay("normal_blur");
_root.arrows_block._visible = true;
_root.answer_box.txt._visible = false;
_root.global_fader.gotoAndPlay("in");
_root.hideBoxes();
Symbol 762 MovieClip Frame 50
napis.shake();
Symbol 762 MovieClip Frame 115
respawn_btn.actAsButton();
respawn_btn.txt.text = "respawn";
respawn_btn.onRelease = function () {
play();
};
Symbol 762 MovieClip Frame 160
stop();
Symbol 762 MovieClip Frame 264
_root.cursor.gotoAndPlay("normal");
_root.global_fader.play();
_root.arrows_block._visible = false;
_root.answer_box.txt._visible = true;
_root.battleInProgress = false;
Symbol 762 MovieClip Frame 280
this._alpha = 0;
Symbol 775 MovieClip Frame 1
if (_root.db_usage) {
_root.arrows_box._x = 1000;
_root.answer_box._x = 1000;
_root.message_box._x = 1000;
_root.screen_box._y = 1000;
} else {
stop();
}
Symbol 775 MovieClip Frame 11
stop();
Symbol 775 MovieClip Frame 21
stop();
var box_array = [_root.answer_box, _root.arrows_box, _root.message_box, _root.screen_box];
var i = 0;
var counter = 6;
onEnterFrame = function () {
if (counter >= 6) {
box_array[i].Tweenuj("_x", 300, box_array[i].saveX, 1);
box_array[i].Tweenuj("_y", 250, box_array[i].saveY, 1);
box_array[i].Tweenuj("_width", 0, box_array[i].saveW, 1);
box_array[i].Tweenuj("_height", 0, box_array[i].saveH, 1);
counter = 0;
i++;
if (i == 4) {
delete onEnterFrame;
}
} else {
counter++;
}
};
Symbol 780 MovieClip Frame 7
stop();
this._parent.panel_check++;
this._parent.paneluj(this._parent.panel_check);
Symbol 780 MovieClip Frame 30
stop();
Symbol 798 MovieClip Frame 1
stop();
Symbol 798 MovieClip Frame 5
busy_mc.onEnterFrame = function () {
this._rotation = this._rotation + 10;
};
Symbol 798 MovieClip Frame 10
curs.shake();
Symbol 798 MovieClip Frame 20
stop();
Symbol 798 MovieClip Frame 30
zoc.onEnterFrame = function () {
this._rotation = this._rotation + 2;
};
Symbol 799 MovieClip Frame 1
var line1 = "Prometheus> Avatar Compilation Sequence Successful\n";
var line2 = "Prometheus> Assimilation Thesis: Valid\n";
var line3 = "Prometheus> Executing Avatar Assembly Sequence\n";
var line4 = "Prometheus> Please stand by...";
var line5 = "Thanatos> Cute.";
Symbol 799 MovieClip Frame 30
this._parent.writeText(1, line1);
Symbol 799 MovieClip Frame 110
this._parent.writeText(1, line2);
Symbol 799 MovieClip Frame 180
this._parent.writeText(1, line3);
Symbol 799 MovieClip Frame 245
this._parent.writeText(1, line4);
Symbol 799 MovieClip Frame 305
this._parent.writeText(2, line5);
Symbol 799 MovieClip Frame 350
stop();
this._parent.playPlay();