Frame 2
_global.gameTexts = new Object();
_global.gameTexts.dialog_0 = new Texts("dialog_0", "gialog", 10, 10, 0, "left", 0, 1000, "");
_global.gameTexts.dialog_1 = new Texts("dialog_1", "gialog", 10, 45, 0, "left", 0, 1001, "");
_global.gameTexts.dialog_2 = new Texts("dialog_2", "gialog", 10, 80, 0, "left", 0, 1002, "");
_global.gameTexts.dialog_3 = new Texts("dialog_3", "gialog", 10, 80, 0, "left", 0, 1003, "");
_global.gameTexts.dialog_4 = new Texts("dialog_4", "gialog", 10, 80, 0, "left", 0, 1004, "");
_global.gameTexts.text_0 = new Texts("text_0", "gialog", 10, 80, 0, "left", 0, 1010, "");
_global.gameTexts.text_1 = new Texts("text_1", "gialog", 10, 80, 0, "left", 0, 1011, "");
_global.haveOfficeSex = false;
_global.haveRoom_1Sex = false;
_global.haveRoom_2Sex = false;
Frame 5
Frame 9
_root.btn_logo.onRelease = function () {
getURL ("http://www.sexgamesbox.com/?fr=christmas-sex-tales-en", "blank");
};
_root.sound = new Sound(_root.sound_switch);
_root.sound1 = new Sound(_root.music_switch);
_root.sound1.attachSound("jingle_bells");
_root.sound1.start(0, 100000);
_root.music_vol = 100;
_root.music_switch.gotoAndStop(1);
_root.music_switch.onRelease = function () {
if (_root.music_vol == 100) {
_root.music_switch.gotoAndStop(2);
_root.music_vol = 0;
} else {
_root.music_switch.gotoAndStop(1);
_root.music_vol = 100;
}
_root.sound1.setVolume(_root.music_vol);
};
_root.sound_vol = 100;
_root.sound_switch.gotoAndStop(1);
_root.sound_switch.onRelease = function () {
if (_root.sound_vol == 100) {
_root.sound_switch.gotoAndStop(2);
_root.sound_vol = 0;
} else {
_root.sound_switch.gotoAndStop(1);
_root.sound_vol = 100;
}
_root.sound.setVolume(_root.sound_vol);
};
Frame 10
_global.buttonList = new Array({area:[180, 330], obj:"button_play", frame:20, url:""});
_global.myButtons = new Buttons(_global.buttonList);
stop();
Frame 20
_global.myWaiting = new Waiting(30, 21);
stop();
Frame 21
_global.popupDatas = new Object({area:[150, 380, 280, 60], up_arrow:false, down_arrow:true, frame:22, text:"If happened so that I caught a cold in the Christmas, so I need to vivify it."});
_global.myPopup = new Popup(_global.popupDatas);
stop();
Frame 22
_global.buttonList = new Array({area:[430, 90], obj:"btn_enter_room_1", frame:30, url:""});
_global.myButtons = new Buttons(_global.buttonList);
stop();
Frame 30
_global.dialogList = new Array({phrase:"Howdy babe! Can you heal me?", answer:"Why should I take care of you? You\u2019d better ask my nurses. I\u2019m too busy.", correct:true, frame:32, snd:"bad"}, {phrase:"Hi babe! Take care of you dear Santa!", answer:"Santa is a magician himself, isn\u2019t it? He should take of himself.", correct:true, frame:32, snd:"bad"}, {phrase:"I have a temperature. Will you subdue my fever?", answer:"And how should I do it?", correct:true, frame:32, snd:"bad"});
_global.myDialog = new Dialog(_global.dialogList, 10, 10, [30, 380, 250, 60, false, true], [80, 395, 250, 70, true, false], 34);
stop();
Frame 34
_global.dialogList = new Array({phrase:"I want you, babe, come here!", answer:"If you do not overheat, you are to know that it is Christmas Eve that's why we need New Year's Tree and gifts.", correct:true, frame:36, snd:"bad"}, {phrase:"You\u2019re bitch! I\u2019ll show the real Christmas right now! ", answer:"If you do not overheat, you are to know that it is Christmas Eve that's why we need New Year's Tree and gifts.", correct:true, frame:36, snd:"bad"}, {phrase:"I think if we fuck right now, your temperature will fall!", answer:"If you do not overheat, you are to know that it is Christmas Eve that's why we need New Year's Tree and gifts.", correct:true, frame:36, snd:"bad"});
_global.myDialog = new Dialog(_global.dialogList, 10, 10, [30, 380, 250, 60, false, true], [10, 395, 320, 70, true, false], 38);
stop();
Frame 38
_global.popupDatas = new Object({area:[10, 395, 320, 70], up_arrow:true, down_arrow:false, frame:39, text:"As soon as you get it, perhaps I\u2019ll help you with your temperature."});
_global.myPopup = new Popup(_global.popupDatas);
stop();
Frame 39
_global.myWaiting = new Waiting(30, 45);
stop();
Frame 45
_global.myWaiting = new Waiting(30, 46);
stop();
Frame 46
office_goto = 30;
if (_global.haveRoom_1Sex eq false) {
room_1_goto = 55;
} else {
room_1_goto = 70;
}
if (_global.haveRoom_2Sex eq false) {
room_2_goto = 120;
} else {
room_2_goto = 135;
}
if ((_global.haveRoom_1Sex eq false) and (_global.haveRoom_2Sex eq false)) {
office_goto = 250;
} else if ((_global.haveRoom_1Sex eq true) and (_global.haveRoom_2Sex eq false)) {
office_goto = 251;
} else if ((_global.haveRoom_1Sex eq false) and (_global.haveRoom_2Sex eq true)) {
office_goto = 252;
} else if ((_global.haveRoom_1Sex eq true) and (_global.haveRoom_2Sex eq true)) {
office_goto = 190;
}
_global.buttonList = new Array({area:[430, 90], obj:"btn_enter_room_1", frame:office_goto, url:""}, {area:[65, 150], obj:"btn_enter_room_2", frame:room_1_goto, url:""}, {area:[140, 190], obj:"btn_enter_room_3", frame:room_2_goto, url:""});
_global.myButtons = new Buttons(_global.buttonList);
stop();
Frame 55
_global.dialogList = new Array({phrase:"Hey, chick, have you got a Christmas tree?", answer:"Yes, if you insist on it, I\u2019ll ready to sell it.", correct:true, frame:58, snd:"good"}, {phrase:"Would you like to fuck?", answer:"How can you say so? It is a hospital!", correct:false, frame:57, snd:"bad"}, {phrase:"It is so sensible to have sex at a hospital, isn\u2019t it?", answer:"It is possible, but I\u2019m not going to discuss it with you!", correct:false, frame:57, snd:"bad"});
_global.myDialog = new Dialog(_global.dialogList, 10, 10, [30, 380, 250, 60, false, true], [80, 395, 250, 70, true, false], 60);
stop();
Frame 60
_global.dialogList = new Array({phrase:"What can I wait for? I have no money at all!", answer:"Today is Christmas! Think over!", correct:true, frame:63, snd:"good"}, {phrase:"What of Christmas tree?", answer:"What can you offer for me?", correct:false, frame:62, snd:"bad"}, {phrase:"I can fuck you! Will you give this tree?", answer:"The brute!", correct:false, frame:62, snd:"bad"});
_global.myDialog = new Dialog(_global.dialogList, 10, 10, [30, 380, 250, 60, false, true], [80, 395, 250, 70, true, false], 65);
stop();
Frame 65
_global.dialogList = new Array({phrase:"You know, you are so beautiful on the eve of Christmas!", answer:"Do You always tell this shit to all girls?", correct:false, frame:67, snd:"good"}, {phrase:"May be we will start sex?", answer:"hhh...I even don't know what to say!!!", correct:false, frame:67, snd:"good"}, {phrase:"I will help you realize your secret desires!", answer:"Come to me....", correct:true, frame:68, snd:"good"});
_global.myDialog = new Dialog(_global.dialogList, 10, 10, [30, 380, 250, 60, false, true], [80, 395, 250, 70, true, false], 75);
stop();
Frame 70
_global.buttonList = new Array({area:[180, 400], obj:"btn_no", frame:45, url:""}, {area:[340, 400], obj:"btn_yes", frame:75, url:""});
_global.myButtons = new Buttons(_global.buttonList);
stop();
Frame 75
_global.sequenceList = new Array({add_percents:20, type:"click-n-hold", masks:[{mask:"m_hand", speed:0.1, good:{frame:77, text:"Uhhhhhh, /nI like it!", snd:"like"}, bad:{frame:38, text:"Ohhhhhh, /nStop it sir!", snd:"dontlike"}}]}, {add_percents:20, type:"click-n-hold", masks:[{mask:"m_leg_1", speed:0.1, good:{frame:78, text:"Uhhhhhh, /nI like it!", snd:"like"}, bad:{frame:79, text:"Ohhhhhh, /nStop it sir!", snd:"dontlike"}}]}, {add_percents:20, type:"click-n-hold", masks:[{mask:"m_leg_2", speed:0.1, good:{frame:80, text:"Uhhhhhh, /nI like it!", snd:"like"}, bad:{frame:81, text:"Ohhhhhh, /nStop it sir!", snd:"dontlike"}}]}, {add_percents:20, type:"click-n-hold", masks:[{mask:"m_breast_1", speed:0.1, good:{frame:82, text:"Uhhhhhh, /nI like it!", snd:"like"}, bad:{frame:83, text:"Ohhhhhh, /nStop it sir!", snd:"dontlike"}}]}, {add_percents:20, type:"click-n-hold", masks:[{mask:"m_breast_2", speed:0.1, good:{frame:84, text:"Uhhhhhh, /nI like it!", snd:"like"}, bad:{frame:85, text:"\u041E-\u041E-\u041E-\u041E-\u041E \u041D\u0435\u0442!!! /n\u041E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0441\u044C!!!", snd:"dontlike"}}]});
_global.mySequence = new Sequence(_global.sequenceList, [320, 50, 200, 60, false, false], "next_button", 86);
stop();
Frame 86
_global.myWaiting = new Waiting(30, 89);
stop();
Frame 89
_global.myWaiting = new Waiting(30, 90);
stop();
Frame 90
_global.regimeList = new Array({btn:"temp_1", time:0, frame:91, snd:""}, {btn:"temp_2", time:9, frame:92, snd:"temp_1"}, {btn:"temp_3", time:9, frame:93, snd:"temp_2"}, {btn:"temp_4", time:9, frame:94, snd:"temp_3"});
_global.myRegime = new Regime(_global.regimeList, "btn_next", 95);
stop();
Frame 95
_global.buttonList = new Array({area:[560, 400], obj:"btn_next", frame:96, url:""});
_global.myButtons = new Buttons(_global.buttonList);
Frame 96
_global.myWaiting = new Waiting(30, 100);
stop();
Frame 100
_global.myWaiting = new Waiting(30, 101);
stop();
Frame 101
_global.regimeList = new Array({btn:"temp_1", time:0, frame:102, snd:""}, {btn:"temp_2", time:9, frame:103, snd:"temp_1"}, {btn:"temp_3", time:9, frame:104, snd:"temp_2"}, {btn:"temp_4", time:9, frame:105, snd:"temp_3"});
_global.myRegime = new Regime(_global.regimeList, "btn_next", 106);
stop();
Frame 106
_global.buttonList = new Array({area:[560, 400], obj:"btn_next", frame:107, url:""});
_global.myButtons = new Buttons(_global.buttonList);
Frame 107
if (_global.haveRoom_1Sex eq false) {
_global.room_1_goto = 110;
} else {
_global.room_1_goto = 45;
}
_global.haveRoom_1Sex = true;
_global.myWaiting = new Waiting(30, _global.room_1_goto);
stop();
Frame 110
_global.myWaiting = new Waiting(60, 46);
stop();
Frame 120
_global.dialogList = new Array({phrase:"Hi, give me a present!", answer:"What can I get instead of it?", correct:true, frame:123, snd:"good"}, {phrase:"What if we fuck?", answer:"I thought you were different but you are as like as all these stupid visitors of this hospital.", correct:false, frame:122, snd:"bad"}, {phrase:"Would you like to play with my dick?", answer:"Do you always try to meet girls?", correct:false, frame:122, snd:"bad"});
_global.myDialog = new Dialog(_global.dialogList, 10, 10, [30, 380, 250, 60, false, true], [80, 395, 250, 70, true, false], 125);
stop();
Frame 125
_global.dialogList = new Array({phrase:"I\u2019m glad to fulfil all secret fantasies of a young and bored woman.", answer:"It sounds nice. What can you advise me?", correct:true, frame:128, snd:"good"}, {phrase:"You\u2019re are stupid girl, how long are you going to bullshit me?", answer:"I shall call for security and they will kick you away!", correct:false, frame:127, snd:"bad"}, {phrase:"Why, did it not work?", answer:"The brute!", correct:false, frame:127, snd:"bad"});
_global.myDialog = new Dialog(_global.dialogList, 10, 10, [30, 380, 250, 70, false, true], [80, 395, 250, 70, true, false], 130);
stop();
Frame 130
_global.dialogList = new Array({phrase:"As you like my charming girl!!!", answer:"Come up to me, my Christmas present!", correct:true, frame:133, snd:"good"}, {phrase:"Stop it, give me my present!", answer:"Oh, dear, I have no question!", correct:false, frame:132, snd:"bad"}, {phrase:"What does it bother you, pretty girl?", answer:"Stupid boy!", correct:false, frame:132, snd:"bad"});
_global.myDialog = new Dialog(_global.dialogList, 10, 10, [30, 380, 250, 70, false, true], [80, 395, 250, 70, true, false], 140);
stop();
Frame 135
_global.buttonList = new Array({area:[180, 400], obj:"btn_no", frame:45, url:""}, {area:[340, 400], obj:"btn_yes", frame:140, url:""});
_global.myButtons = new Buttons(_global.buttonList);
stop();
Frame 140
_global.sequenceList = new Array({add_percents:20, type:"click-n-hold", masks:[{mask:"m_hand_2", speed:0.1, good:{frame:142, text:"Uhhhhhh, /nI like it!", snd:"like"}, bad:{frame:142, text:"Ohhhhhh, /nStop it sir!", snd:"dontlike"}}]}, {add_percents:20, type:"click-n-hold", masks:[{mask:"m_leg_2_2", speed:0.1, good:{frame:145, text:"Uhhhhhh, /nI like it!", snd:"like"}, bad:{frame:146, text:"Ohhhhhh, /nStop it sir!", snd:"dontlike"}}]}, {add_percents:20, type:"click-n-hold", masks:[{mask:"m_leg_2_1", speed:0.1, good:{frame:143, text:"Uhhhhhh, /nI like it!", snd:"like"}, bad:{frame:144, text:"Ohhhhhh, /nStop it sir!", snd:"dontlike"}}]}, {add_percents:20, type:"click-n-hold", masks:[{mask:"m_breast_2_1", speed:0.1, good:{frame:147, text:"Uhhhhhh, /nI like it!", snd:"like"}, bad:{frame:148, text:"Ohhhhhh, /nStop it sir!", snd:"dontlike"}}]}, {add_percents:20, type:"click-n-hold", masks:[{mask:"m_breast_2_2", speed:0.1, good:{frame:149, text:"Uhhhhhh, /nI like it!", snd:"like"}, bad:{frame:150, text:"Ohhhhhh, /nStop it sir!", snd:"dontlike"}}]});
_global.mySequence = new Sequence(_global.sequenceList, [90, 10, 200, 60, false, false], "next_button", 151);
stop();
Frame 151
_global.myWaiting = new Waiting(30, 155);
stop();
Frame 155
_global.myWaiting = new Waiting(30, 156);
stop();
Frame 156
_global.regimeList = new Array({btn:"temp_1", time:0, frame:157, snd:""}, {btn:"temp_2", time:9, frame:158, snd:"temp_1"}, {btn:"temp_3", time:9, frame:159, snd:"temp_2"}, {btn:"temp_4", time:9, frame:160, snd:"temp_3"});
_global.myRegime = new Regime(_global.regimeList, "btn_next", 161);
stop();
Frame 161
_global.buttonList = new Array({area:[560, 400], obj:"btn_next", frame:162, url:""});
_global.myButtons = new Buttons(_global.buttonList);
Frame 162
_global.myWaiting = new Waiting(30, 170);
stop();
Frame 170
_global.myWaiting = new Waiting(30, 171);
stop();
Frame 171
_global.regimeList = new Array({btn:"temp_1", time:0, frame:172, snd:""}, {btn:"temp_2", time:9, frame:173, snd:"temp_1"}, {btn:"temp_3", time:9, frame:174, snd:"temp_2"}, {btn:"temp_4", time:9, frame:175, snd:"temp_3"});
_global.myRegime = new Regime(_global.regimeList, "btn_next", 176);
stop();
Frame 176
_global.buttonList = new Array({area:[560, 400], obj:"btn_next", frame:177, url:""});
_global.myButtons = new Buttons(_global.buttonList);
Frame 177
if (_global.haveRoom_2Sex eq false) {
_global.room_2_goto = 180;
} else {
_global.room_2_goto = 45;
}
_global.haveRoom_2Sex = true;
_global.myWaiting = new Waiting(30, _global.room_2_goto);
stop();
Frame 180
_global.myWaiting = new Waiting(60, 46);
stop();
Frame 190
_global.myWaiting = new Waiting(40, 191);
stop();
Frame 191
_global.popupDatas = new Object({area:[10, 395, 320, 70], up_arrow:true, down_arrow:false, frame:200, text:"Now I see that you are ready for the holiday, come up to me and I\u2019ll take care of you!"});
_global.myPopup = new Popup(_global.popupDatas);
stop();
Frame 200
_global.myWaiting = new Waiting(30, 201);
stop();
Frame 201
_global.regimeList = new Array({btn:"temp_1", time:0, frame:202, snd:""}, {btn:"temp_2", time:9, frame:203, snd:"temp_1"}, {btn:"temp_3", time:9, frame:204, snd:"temp_2"}, {btn:"temp_4", time:9, frame:205, snd:"temp_3"});
_global.myRegime = new Regime(_global.regimeList, "btn_next", 206);
stop();
Frame 206
_global.buttonList = new Array({area:[560, 400], obj:"btn_next", frame:207, url:""});
_global.myButtons = new Buttons(_global.buttonList);
Frame 207
_global.myWaiting = new Waiting(30, 210);
stop();
Frame 210
_global.myWaiting = new Waiting(30, 211);
stop();
Frame 211
_global.regimeList = new Array({btn:"temp_1", time:0, frame:212, snd:""}, {btn:"temp_4", time:7, frame:215, snd:"temp_1"}, {btn:"temp_5", time:7, frame:216, snd:"temp_2"}, {btn:"temp_2", time:7, frame:213, snd:"temp_1"}, {btn:"temp_3", time:7, frame:214, snd:"temp_2"});
_global.myRegime = new Regime(_global.regimeList, "btn_next", 225);
stop();
Frame 225
_global.buttonList = new Array({area:[560, 400], obj:"btn_next", frame:226, url:""});
_global.myButtons = new Buttons(_global.buttonList);
Frame 226
_global.myWaiting = new Waiting(30, 260);
stop();
Frame 250
_global.myWaiting = new Waiting(30, 46);
stop();
Frame 251
_global.myWaiting = new Waiting(30, 46);
stop();
Frame 252
_global.myWaiting = new Waiting(30, 46);
stop();
Frame 253
_global.myWaiting = new Waiting(30, 45);
stop();
Frame 260
_global.buttonList = new Array({area:[180, 310], obj:"btn_again", frame:20, url:""}, {area:[180, 383], obj:"btn_more", frame:0, url:"http://www.SexGamesBox.com"});
_global.myButtons = new Buttons(_global.buttonList);
stop();
Symbol 708 MovieClip [__Packages.Texts] Frame 0
class Texts
{
var format, newObject, rootClip;
function Texts (myClip, myFont, xPos, yPos, myWidth, myAlig, myFrame, mySprite, myText) {
textObj = _root.attachMovie(myFont, myClip, mySprite);
textObj.gotoAndStop(myFrame);
textObj.txt = myText;
textObj._x = xPos;
textObj._y = yPos;
if (myWidth > 0) {
textObj.fld._width = myWidth;
}
if (myAlig ne "") {
format = new TextFormat();
format.align = myAlig;
textObj.fld.setTextFormat(format);
}
}
function pres() {
rootClip[newObject].font.gotoAndStop(3);
}
function over() {
rootClip[newObject].font.gotoAndStop(2);
}
function norm() {
rootClip[newObject].font.gotoAndStop(1);
}
function setMoney(myCurrency, mySeparator, myPosition, myMoney, myPrev) {
var _local2 = "";
var _local5 = 0;
var _local3 = String(myMoney).length - 1;
while (_local3 >= 0) {
_local5 = _local5 + 1;
if (_local5 > 3) {
_local5 = 1;
if (mySeparator eq "SPACE") {
_local2 = _local2 + " ";
} else {
_local2 = _local2 + mySeparator;
}
}
_local2 = _local2 + String(myMoney).charAt(_local3);
_local3--;
}
myMoney = "";
_local3 = 0;
while (_local3 < String(_local2).length) {
myMoney = myMoney + String(_local2).charAt((String(_local2).length - _local3) - 1);
_local3++;
}
switch (String(myPosition)) {
case "beginning" :
rootClip[newObject].font.txt = (myPrev + myCurrency) + myMoney;
break;
case "end" :
rootClip[newObject].font.txt = (myPrev + myMoney) + myCurrency;
break;
default :
rootClip[newObject].font.txt = (myPrev + myCurrency) + myMoney;
}
}
function textConfigure(myText) {
var _local3 = myText.split("/n");
var _local2 = "";
var _local1 = 0;
while (_local1 < _local3.length) {
_local2 = _local2 + _local3[_local1];
if (_local1 < (_local3.length - 1)) {
_local2 = _local2 + newline;
}
_local1++;
}
return(_local2);
}
function setText(myText) {
textObj.txt = textConfigure(myText);
}
function setAlign(myAlig) {
format.align = myAlig;
textObj.fld.setTextFormat(format);
}
function setPosition(myX, myY) {
textObj._x = myX;
textObj._y = myY;
}
function setRotation(myRot) {
rootClip[newObject]._rotation = myRot;
}
function setWidth(myWidth) {
textObj.fld._width = myWidth;
}
function setVisible(myVis) {
textObj._visible = myVis;
}
function setAlpha(myAlpha) {
rootClip[newObject]._alpha = myAlpha;
}
var textObj = new Object();
}
Symbol 709 MovieClip [__Packages.Buttons] Frame 0
class Buttons extends MovieClip
{
var buttonList;
function Buttons (myList) {
super();
buttonList = new Array();
var _local5 = 0;
while (_local5 < myList.length) {
buttonList[_local5] = _root.attachMovie(myList[_local5].obj, "button_obj_" + _local5, 150 + _local5);
buttonList[_local5]._x = myList[_local5].area[0];
buttonList[_local5]._y = myList[_local5].area[1];
buttonList[_local5].frame = myList[_local5].frame;
buttonList[_local5].url = myList[_local5].url;
buttonList[_local5].gotoAndStop(1);
buttonList[_local5].onRollOver = function () {
this.gotoAndStop(2);
};
buttonList[_local5].onRollOut = function () {
this.gotoAndStop(1);
};
buttonList[_local5].onDragOut = function () {
this.gotoAndStop(1);
};
buttonList[_local5].onRelease = function () {
if (this.url ne "") {
(this.getURL(this.url, "blank"));// not popped
}
if (this.frame != 0) {
_root.gotoAndStop(this.frame);
_global.myButtons.kill();
}
};
_local5++;
}
}
function kill() {
var _local3 = 0;
while (_local3 < buttonList.length) {
delete buttonList[_local3].onRollOver;
delete buttonList[_local3].onRollOut;
delete buttonList[_local3].onDragOut;
delete buttonList[_local3].onRelease;
buttonList[_local3].removeMovieClip();
_local3++;
}
delete buttonList;
delete _global.myButtons;
}
}
Symbol 710 MovieClip [__Packages.Waiting] Frame 0
class Waiting extends MovieClip
{
var framesQty, gotoFrame, counter;
function Waiting (myFramesQty, myFrame) {
super();
framesQty = myFramesQty;
gotoFrame = myFrame;
counter = 0;
_root.onEnterFrame = function () {
_global.myWaiting.counter = _global.myWaiting.counter + 1;
if (_global.myWaiting.counter >= _global.myWaiting.framesQty) {
_global.myWaiting.kill();
_root.gotoAndStop(_global.myWaiting.gotoFrame);
}
};
}
function kill() {
delete _root.onEnterFrame;
}
}
Symbol 711 MovieClip [__Packages.Popup] Frame 0
class Popup extends MovieClip
{
var popupObject;
function Popup (myList) {
super();
popupObject = new Object();
popupObject = _root.attachMovie("popup_obj", "popup_obj", 50);
popupObject._x = _global.popupDatas.area[0];
popupObject._y = _global.popupDatas.area[1];
popupObject.frame = myList.frame;
popupObject.popup_1_2._width = _global.popupDatas.area[2] - 40;
popupObject.popup_2_2._width = _global.popupDatas.area[2] - 40;
popupObject.popup_3_2._width = _global.popupDatas.area[2] - 40;
popupObject.popup_2_1._height = _global.popupDatas.area[3] - 40;
popupObject.popup_2_2._height = _global.popupDatas.area[3] - 40;
popupObject.popup_2_3._height = _global.popupDatas.area[3] - 40;
popupObject.popup_1_3._x = _global.popupDatas.area[2] - 20;
popupObject.popup_2_3._x = _global.popupDatas.area[2] - 0;
popupObject.popup_3_3._x = _global.popupDatas.area[2] - 20;
popupObject.popup_3_1._y = _global.popupDatas.area[3] - 20;
popupObject.popup_3_2._y = _global.popupDatas.area[3] - 0;
popupObject.popup_3_3._y = _global.popupDatas.area[3] - 20;
_global.gameTexts.text_0.setText(myList.text);
_global.gameTexts.text_0.setAlign("center");
_global.gameTexts.text_0.setPosition(_global.popupDatas.area[0] + 10, _global.popupDatas.area[1] + 15);
_global.gameTexts.text_0.setWidth(_global.popupDatas.area[2] - 20);
_global.gameTexts.text_0.setVisible(true);
popupObject.popup_arrow_up._x = _global.popupDatas.area[2] - 90;
popupObject.popup_arrow_down._y = _global.popupDatas.area[3] - 0;
popupObject.popup_button._x = _global.popupDatas.area[2] - 50;
popupObject.popup_button._y = _global.popupDatas.area[3] - 15;
popupObject.popup_arrow_up._visible = _global.popupDatas.up_arrow;
popupObject.popup_arrow_down._visible = _global.popupDatas.down_arrow;
popupObject.popup_button.gotoAndStop(1);
popupObject.popup_button.onRollOver = function () {
this.gotoAndStop(2);
};
popupObject.popup_button.onRollOut = function () {
this.gotoAndStop(1);
};
popupObject.popup_button.onDragOut = function () {
this.gotoAndStop(1);
};
popupObject.popup_button.onRelease = function () {
_root.gotoAndStop(this._parent.frame);
_global.myPopup.kill();
};
}
function kill() {
delete popupObject.popup_button.onRollOver;
delete popupObject.popup_button.onRollOut;
delete popupObject.popup_button.onDragOut;
delete popupObject.popup_button.onRelease;
_global.gameTexts.text_0.setText("");
popupObject.removeMovieClip();
delete popupObject;
delete _global.myPopup;
}
}
Symbol 712 MovieClip [__Packages.Dialog] Frame 0
class Dialog extends MovieClip
{
var dailogList, popupObject, sound;
function Dialog (myList, xPos, yPos, popup_1, popup_2, myFrame) {
super();
dailogList = new Array();
var _local5 = 0;
while (_local5 < myList.length) {
dailogList[_local5] = _root.attachMovie("phrase_area", "phrase_obj_" + _local5, 100 + _local5);
dailogList[_local5]._x = xPos;
dailogList[_local5]._y = yPos + (_local5 * 35);
dailogList[_local5].phrase = myList[_local5].phrase;
dailogList[_local5].answer = myList[_local5].answer;
dailogList[_local5].correct = myList[_local5].correct;
dailogList[_local5].frame = myList[_local5].frame;
dailogList[_local5].snd = myList[_local5].snd;
dailogList[_local5].visited = false;
dailogList[_local5].numb = _local5;
dailogList[_local5].gotoAndStop(1);
_global.gameTexts["dialog_" + _local5].setText(myList[_local5].phrase);
_global.gameTexts["dialog_" + _local5].setAlign("left");
_global.gameTexts["dialog_" + _local5].setPosition(xPos + 5, (yPos + (_local5 * 35)) + 7);
_global.gameTexts["dialog_" + _local5].setVisible(true);
dailogList[_local5].onRollOver = function () {
if (this.visited eq false) {
this.gotoAndStop(2);
}
};
dailogList[_local5].onRollOut = function () {
if (this.visited eq false) {
this.gotoAndStop(1);
}
};
dailogList[_local5].onDragOut = function () {
if (this.visited eq false) {
this.gotoAndStop(1);
}
};
dailogList[_local5].onRelease = function () {
if (this.visited eq false) {
_global.myDialog.makePopup(this.numb, 1);
}
};
_local5++;
}
popupObject = new Object();
popupObject = _root.attachMovie("popup_obj", "popup_obj", 50, {_visible:false});
popupObject.popup_1 = popup_1;
popupObject.popup_2 = popup_2;
popupObject.popup_button.gotoAndStop(1);
_root.startFrame = _root._currentframe + 1;
_root.finishFrame = myFrame;
sound = new Sound();
}
function makePopup(choiceNumb, popupNumb) {
hideDialog();
popupObject._visible = true;
popupObject._x = popupObject["popup_" + popupNumb][0];
popupObject._y = popupObject["popup_" + popupNumb][1];
popupObject.popup_1_2._width = popupObject["popup_" + popupNumb][2] - 40;
popupObject.popup_2_2._width = popupObject["popup_" + popupNumb][2] - 40;
popupObject.popup_3_2._width = popupObject["popup_" + popupNumb][2] - 40;
popupObject.popup_2_1._height = popupObject["popup_" + popupNumb][3] - 40;
popupObject.popup_2_2._height = popupObject["popup_" + popupNumb][3] - 40;
popupObject.popup_2_3._height = popupObject["popup_" + popupNumb][3] - 40;
popupObject.popup_1_3._x = popupObject["popup_" + popupNumb][2] - 20;
popupObject.popup_2_3._x = popupObject["popup_" + popupNumb][2] - 0;
popupObject.popup_3_3._x = popupObject["popup_" + popupNumb][2] - 20;
popupObject.popup_3_1._y = popupObject["popup_" + popupNumb][3] - 20;
popupObject.popup_3_2._y = popupObject["popup_" + popupNumb][3] - 0;
popupObject.popup_3_3._y = popupObject["popup_" + popupNumb][3] - 20;
if (popupNumb == 1) {
_global.gameTexts.text_0.setText(dailogList[choiceNumb].phrase);
} else {
_global.gameTexts.text_0.setText(dailogList[choiceNumb].answer);
playSound(_global.myDialog.dailogList[choiceNumb].snd, false);
}
_global.gameTexts.text_0.setAlign("center");
_global.gameTexts.text_0.setPosition(popupObject["popup_" + popupNumb][0] + 10, popupObject["popup_" + popupNumb][1] + 15);
_global.gameTexts.text_0.setWidth(popupObject["popup_" + popupNumb][2] - 20);
_global.gameTexts.text_0.setVisible(true);
popupObject.popup_arrow_up._x = popupObject["popup_" + popupNumb][2] - 90;
popupObject.popup_arrow_down._y = popupObject["popup_" + popupNumb][3] - 0;
popupObject.popup_button._x = popupObject["popup_" + popupNumb][2] - 50;
popupObject.popup_button._y = popupObject["popup_" + popupNumb][3] - 15;
popupObject.popup_arrow_up._visible = popupObject["popup_" + popupNumb][4];
popupObject.popup_arrow_down._visible = popupObject["popup_" + popupNumb][5];
popupObject.popup_button.gotoAndStop(1);
popupObject.popup_button.onRollOver = function () {
this.gotoAndStop(2);
};
popupObject.popup_button.onRollOut = function () {
this.gotoAndStop(1);
};
popupObject.popup_button.onDragOut = function () {
this.gotoAndStop(1);
};
popupObject.popup_button.onRelease = function () {
_global.myDialog.kullPopup(popupNumb);
if (popupNumb == 1) {
_root.gotoAndStop(_global.myDialog.dailogList[choiceNumb].frame);
_global.myDialog.makePopup(choiceNumb, 2);
} else if (_global.myDialog.dailogList[choiceNumb].correct eq false) {
_global.myDialog.dailogList[choiceNumb].visited = true;
_global.myDialog.dailogList[choiceNumb].gotoAndStop(3);
_root.gotoAndStop(_root.startFrame);
_global.myDialog.showDialog();
} else {
_root.gotoAndStop(_root.finishFrame);
_global.myDialog.kill();
}
};
}
function showDialog() {
var _local3 = 0;
while (_local3 < dailogList.length) {
dailogList[_local3]._visible = true;
_global.gameTexts["dialog_" + _local3].setVisible(true);
_local3++;
}
}
function hideDialog() {
var _local3 = 0;
while (_local3 < dailogList.length) {
dailogList[_local3]._visible = false;
_global.gameTexts["dialog_" + _local3].setVisible(false);
_local3++;
}
}
function kullPopup(popupNumb) {
delete popupObject.popup_button.onRollOver;
delete popupObject.popup_button.onRollOut;
delete popupObject.popup_button.onDragOut;
delete popupObject.popup_button.onRelease;
popupObject._visible = false;
_global.gameTexts.text_0.setVisible(false);
}
function kill() {
popupObject.removeMovieClip();
delete popupObject;
var _local3 = 0;
while (_local3 < dailogList.length) {
delete dailogList[_local3].onRollOver;
delete dailogList[_local3].onRollOut;
delete dailogList[_local3].onDragOut;
delete dailogList[_local3].onRelease;
dailogList[_local3].removeMovieClip();
_local3++;
}
delete dailogList;
delete _global.myDialog;
}
function playSound(soundName, loop) {
_root.sound.attachSound(soundName);
if (loop) {
_root.sound.start(0, 100000);
} else {
_root.sound.start();
}
}
}
Symbol 713 MovieClip [__Packages.Sequence] Frame 0
class Sequence extends MovieClip
{
var classVar, sequenceData, sequenceArea, sequenceList, sequenceNumb, persentsNumb, sound, soundName, popupObject;
function Sequence (myList, myArea, myBtn, myFrame) {
super();
classVar = new Object({start_frame:_root._currentframe + 1, mouse_press:false, cur_seq:-1, cur_id:-1, proc:0, interv:0, next_btn:myBtn});
sequenceData = myList;
sequenceArea = myArea;
sequenceList = new Array();
sequenceNumb = 0;
persentsNumb = 0;
var _local5 = 0;
while (_local5 < sequenceData.length) {
var _local6 = 0;
while (_local6 < sequenceData[_local5].masks.length) {
sequenceList[_local5] = _root[sequenceData[_local5].masks[_local6].mask];
sequenceList[_local5].seq = _local5;
sequenceList[_local5].id = _local6;
sequenceList[_local5].onPress = function () {
_global.mySequence.onPressAction(this);
};
sequenceList[_local5].onDragOut = function () {
_global.mySequence.onReleseAction(this);
};
sequenceList[_local5].onRelease = function () {
_global.mySequence.onReleseAction(this);
};
_local6++;
}
_local5++;
}
_root.counter.gotoAndStop(1);
_root[classVar.next_btn].gotoAndStop(1);
_root[classVar.next_btn].onRollOver = function () {
this.gotoAndStop(2);
};
_root[classVar.next_btn].onRollOut = function () {
this.gotoAndStop(1);
};
_root[classVar.next_btn].onDragOut = function () {
this.gotoAndStop(1);
};
_root[classVar.next_btn].onRelease = function () {
_global.mySequence.kill();
_root.gotoAndStop(myFrame);
};
_root[classVar.next_btn]._visible = false;
sound = new Sound();
}
function onFrameAction() {
if (classVar.mouse_press eq true) {
switch (sequenceData[classVar.cur_seq].type) {
case "click-n-hold" :
classVar.proc = classVar.proc + sequenceData[classVar.cur_seq].masks[classVar.cur_id].speed;
persentsNumb = persentsNumb + sequenceData[classVar.cur_seq].masks[classVar.cur_id].speed;
if (classVar.proc >= sequenceData[classVar.cur_seq].add_percents) {
persentsNumb = Math.round(persentsNumb - (classVar.proc - sequenceData[classVar.cur_seq].add_percents));
sequenceNumb = sequenceNumb + 1;
classVar.proc = 0;
if (sequenceNumb == sequenceData.length) {
_root[classVar.next_btn]._visible = true;
}
clearInterval(classVar.interv);
}
_root.counter.gotoAndStop(int(persentsNumb * 5));
break;
case "move" :
}
}
}
function onPressAction(myObject) {
switch (sequenceData[myObject.seq].type) {
case "click" :
break;
case "click-n-hold" :
if (myObject.seq == sequenceNumb) {
clearInterval(classVar.interv);
classVar.mouse_press = true;
classVar.cur_seq = myObject.seq;
classVar.cur_id = myObject.id;
classVar.interv = setInterval(this, "onFrameAction", 30);
_root.gotoAndStop(sequenceData[myObject.seq].masks[myObject.id].good.frame);
makePopup(sequenceData[myObject.seq].masks[myObject.id].good.text);
soundName = sequenceData[myObject.seq].masks[myObject.id].good.snd;
playSound(soundName, false);
}
if (myObject.seq < sequenceNumb) {
_root.gotoAndStop(sequenceData[myObject.seq].masks[myObject.id].good.frame);
soundName = sequenceData[myObject.seq].masks[myObject.id].good.snd;
playSound(soundName, false);
}
if (myObject.seq > sequenceNumb) {
_root.gotoAndStop(sequenceData[myObject.seq].masks[myObject.id].bad.frame);
makePopup(sequenceData[myObject.seq].masks[myObject.id].bad.text);
soundName = sequenceData[myObject.seq].masks[myObject.id].bad.snd;
playSound(soundName, false);
}
break;
case "move" :
}
}
function onReleseAction(myObject) {
switch (sequenceData[myObject.seq].type) {
case "click" :
if (myObject.seq == sequenceNumb) {
persentsNumb = persentsNumb + sequenceData[myObject.seq].add_percents;
sequenceNumb = sequenceNumb + 1;
_root.counter.gotoAndStop(persentsNumb);
}
if (myObject.seq > sequenceNumb) {
}
if (myObject.seq < sequenceNumb) {
}
break;
case "click-n-hold" :
clearInterval(classVar.interv);
_root.gotoAndStop(classVar.start_frame);
_global.gameTexts.text_0.setText("");
sound.stop(soundName);
popupObject.removeMovieClip();
break;
case "move" :
}
}
function makePopup(myText) {
popupObject = new Object();
popupObject = _root.attachMovie("popup_obj", "popup_obj", 50);
popupObject._x = sequenceArea[0];
popupObject._y = sequenceArea[1];
popupObject.popup_1_2._width = sequenceArea[2] - 40;
popupObject.popup_2_2._width = sequenceArea[2] - 40;
popupObject.popup_3_2._width = sequenceArea[2] - 40;
popupObject.popup_2_1._height = sequenceArea[3] - 40;
popupObject.popup_2_2._height = sequenceArea[3] - 40;
popupObject.popup_2_3._height = sequenceArea[3] - 40;
popupObject.popup_1_3._x = sequenceArea[2] - 20;
popupObject.popup_2_3._x = sequenceArea[2] - 0;
popupObject.popup_3_3._x = sequenceArea[2] - 20;
popupObject.popup_3_1._y = sequenceArea[3] - 20;
popupObject.popup_3_2._y = sequenceArea[3] - 0;
popupObject.popup_3_3._y = sequenceArea[3] - 20;
_global.gameTexts.text_0.setText(myText);
_global.gameTexts.text_0.setAlign("center");
_global.gameTexts.text_0.setPosition(sequenceArea[0] + 10, sequenceArea[1] + 15);
_global.gameTexts.text_0.setWidth(sequenceArea[2] - 20);
_global.gameTexts.text_0.setVisible(true);
popupObject.popup_arrow_up._x = sequenceArea[2] - 90;
popupObject.popup_arrow_down._y = sequenceArea[3] - 0;
popupObject.popup_arrow_up._visible = sequenceArea[4];
popupObject.popup_arrow_down._visible = sequenceArea[5];
popupObject.popup_button._visible = false;
}
function kill() {
delete _root[classVar.next_btn].onRollOver;
delete _root[classVar.next_btn].onRollOut;
delete _root[classVar.next_btn].onDragOut;
delete _root[classVar.next_btn].onRelease;
var _local5 = 0;
while (_local5 < sequenceData.length) {
var _local4 = 0;
while (_local4 < sequenceData[_local5].masks.length) {
delete _root[sequenceData[_local5].masks[_local4].mask].onPress;
delete _root[sequenceData[_local5].masks[_local4].mask].onDragOut;
delete _root[sequenceData[_local5].masks[_local4].mask].onRelease;
_local4++;
}
_local5++;
}
delete sequenceList;
delete popupObject;
delete _global.mySequence;
}
function playSound(soundName, loop) {
_root.sound.attachSound(soundName);
if (loop) {
_root.sound.start(0, 100000);
} else {
_root.sound.start();
}
}
}
Symbol 714 MovieClip [__Packages.Regime] Frame 0
class Regime extends MovieClip
{
var regimeData, nextBtn, nextframe, regimeCurr, _passFR, _totalFR, sound, regimeIntr, soundName, _sound;
function Regime (myList, myBtn, myFrame) {
super();
regimeData = myList;
nextBtn = myBtn;
nextframe = myFrame;
regimeCurr = 0;
_passFR = 0;
_totalFR = 0;
regimeData[0].cntr = 0;
regimeData[0].pass = true;
regimeData[0].time = (regimeData[0].time * 30) + 1;
_totalFR = _totalFR + regimeData[0].time;
var _local5 = 1;
while (_local5 < regimeData.length) {
regimeData[_local5].cntr = 0;
regimeData[_local5].pass = false;
regimeData[_local5].time = (regimeData[_local5].time * 30) + 1;
_totalFR = _totalFR + regimeData[_local5].time;
_local5++;
}
_root.counter.gotoAndStop(1);
startAnimation(0);
_root[nextBtn].gotoAndStop(1);
_root[nextBtn].onRollOver = function () {
this.gotoAndStop(2);
};
_root[nextBtn].onRollOut = function () {
this.gotoAndStop(1);
};
_root[nextBtn].onDragOut = function () {
this.gotoAndStop(1);
};
_root[nextBtn].onRelease = function () {
_global.myRegime.kill();
_root.gotoAndStop(myFrame);
};
_root[nextBtn]._visible = false;
sound = new Sound();
}
function init() {
var _local4 = 0;
while (_local4 < regimeData.length) {
_root[regimeData[_local4].btn].gotoAndStop(1);
if (regimeData[_local4].pass eq true) {
if (_local4 != regimeCurr) {
_root[regimeData[_local4].btn].id = _local4;
_root[regimeData[_local4].btn].onRollOver = function () {
this.gotoAndStop(2);
};
_root[regimeData[_local4].btn].onRollOut = function () {
this.gotoAndStop(1);
};
_root[regimeData[_local4].btn].onDragOut = function () {
this.gotoAndStop(1);
};
_root[regimeData[_local4].btn].onRelease = function () {
_global.myRegime.startAnimation(this.id);
};
} else {
_root[regimeData[_local4].btn].gotoAndStop(3);
}
_root[regimeData[_local4].btn]._alpha = 100;
} else {
_root[regimeData[_local4].btn]._alpha = 30;
}
_local4++;
}
}
function drop() {
var _local3 = 0;
while (_local3 < regimeData.length) {
if (regimeData[_local3].pass eq true) {
delete _root[regimeData[_local3].btn].onRollOver;
delete _root[regimeData[_local3].btn].onRollOut;
delete _root[regimeData[_local3].btn].onDragOut;
delete _root[regimeData[_local3].btn].onRelease;
}
_local3++;
}
}
function startAnimation(myID) {
drop();
regimeCurr = myID;
clearInterval(regimeIntr);
_root.gotoAndStop(regimeData[myID].frame);
regimeIntr = setInterval(this, "runAnimation", 33);
init();
sound.stop(soundName);
if (myID > 0) {
soundName = regimeData[myID].snd;
playSound(soundName, true);
} else {
_root.sound.stop(_sound);
}
}
function runAnimation() {
if (regimeData[regimeCurr].cntr < regimeData[regimeCurr].time) {
regimeData[regimeCurr].cntr = regimeData[regimeCurr].cntr + 1;
_passFR = _passFR + 1;
_root.counter.gotoAndStop(int((500 * _passFR) / _totalFR));
if (regimeData[regimeCurr].cntr == regimeData[regimeCurr].time) {
drop();
regimeData[regimeCurr + 1].pass = true;
init();
if (regimeCurr == (regimeData.length - 1)) {
_root[nextBtn]._visible = true;
}
}
}
}
function kill() {
_root.sound.stop(_sound);
regimeIntr = setInterval(this, "runAnimation", 33);
drop();
delete regimeData;
}
function playSound(soundName, loop) {
if (_sound ne undefined) {
_root.sound.stop(_sound);
}
_sound = soundName;
_root.sound.attachSound(soundName);
if (loop) {
_root.sound.start(0, 100000);
} else {
_root.sound.start();
}
}
}
Symbol 98 MovieClip Frame 30
stop();
Symbol 117 MovieClip Frame 105
gotoAndPlay (10);
Symbol 120 MovieClip Frame 30
stop();
Symbol 247 MovieClip Frame 100
stop();
Symbol 339 MovieClip Frame 100
stop();
Symbol 451 MovieClip Frame 100
stop();
Symbol 538 MovieClip Frame 95
stop();
Symbol 615 MovieClip Frame 100
stop();
Symbol 702 MovieClip Frame 100
stop();