Frame 1
stop();
Instance of Symbol 66 MovieClip in Frame 1
onClipEvent (load) {
b = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
l = _root.getBytesLoaded();
p = (l / b) * 100;
this.data.text = Math.floor(p) + "%";
if (l >= b) {
_root.play();
}
}
Frame 2
CSound.getInstance().setMuteMusic(false);
CSound.getInstance().playMusic(CSound.SND1);
play();
Frame 3
_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, "");
Frame 5
_global.buttonList = new Array({area:[460, 350], obj:"button_0", frame:15, url:""}, {area:[440, 390], obj:"button_2", frame:0, url:"http://sexgamesbox.com/?fr=sexwithangel-en"});
_global.myButtons = new Buttons(_global.buttonList);
stop();
Frame 7
_global.popupDatas = new Object({area:[320, 100, 250, 60], up_arrow:true, down_arrow:false, frame:8, text:"text1"});
_global.myPopup = new Popup(_global.popupDatas);
stop();
Frame 8
_global.popupDatas = new Object({area:[320, 100, 250, 60], up_arrow:true, down_arrow:false, frame:9, text:"text2"});
_global.myPopup = new Popup(_global.popupDatas);
stop();
Frame 9
_global.popupDatas = new Object({area:[320, 100, 250, 60], up_arrow:true, down_arrow:false, frame:10, text:"text3"});
_global.myPopup = new Popup(_global.popupDatas);
stop();
Frame 10
_global.popupDatas = new Object({area:[320, 100, 250, 60], up_arrow:true, down_arrow:false, frame:15, text:"text4"});
_global.myPopup = new Popup(_global.popupDatas);
stop();
Frame 12
_global.popupDatas = new Object({area:[320, 100, 250, 60], up_arrow:true, down_arrow:false, frame:23, text:"text5"});
_global.myPopup = new Popup(_global.popupDatas);
stop();
Frame 13
_global.popupDatas = new Object({area:[320, 100, 250, 60], up_arrow:true, down_arrow:false, frame:27, text:"text6"});
_global.myPopup = new Popup(_global.popupDatas);
stop();
Frame 15
_global.dialogList = new Array({phrase:"Damn! You look so sexy!", answer:"Of couse I'm sexy...how do you think I got the job?", correct:false, frame:17}, {phrase:"Strip dowd, baby. I need to check out your ass.", answer:"Hold your horses, Cowboy! Wait for the evening show.", correct:false, frame:17}, {phrase:"Can you help me? I'm looking for someone", answer:"We are all looking honey.", correct:true, frame:18});
_global.myDialog = new Dialog(_global.dialogList, 45, 360, [120, 310, 250, 60, false, true], [260, 260, 250, 60, true, false], 125);
stop();
Frame 19
_global.dialogList = new Array({phrase:"Damn! You look so sexy!", answer:"Of couse I'm sexy...how do you think I got the job?", correct:false, frame:21}, {phrase:"Strip dowd, baby. I need to check out your ass.", answer:"Hold your horses, Cowboy! Wait for the evening show.", correct:false, frame:21}, {phrase:"Can you help me? I'm looking for someone", answer:"We are all looking honey.", correct:true, frame:22});
_global.myDialog = new Dialog(_global.dialogList, 45, 360, [120, 310, 250, 60, false, true], [320, 210, 250, 60, true, false], 12);
stop();
Frame 23
_global.dialogList = new Array({phrase:"Damn! You look so sexy!", answer:"Of couse I'm sexy...how do you think I got the job?", correct:false, frame:25}, {phrase:"Strip dowd, baby. I need to check out your ass.", answer:"Hold your horses, Cowboy! Wait for the evening show.", correct:false, frame:25}, {phrase:"Can you help me? I'm looking for someone", answer:"We are all looking honey.", correct:true, frame:26});
_global.myDialog = new Dialog(_global.dialogList, 45, 360, [120, 310, 250, 60, false, true], [320, 210, 250, 60, true, false], 13);
stop();
Frame 27
_global.dialogList = new Array({phrase:"Damn! You look so sexy!", answer:"Of couse I'm sexy...how do you think I got the job?", correct:false, frame:29}, {phrase:"Strip dowd, baby. I need to check out your ass.", answer:"Hold your horses, Cowboy! Wait for the evening show.", correct:false, frame:29}, {phrase:"Can you help me? I'm looking for someone", answer:"We are all looking honey.", correct:true, frame:30});
_global.myDialog = new Dialog(_global.dialogList, 45, 360, [120, 310, 250, 60, false, true], [320, 210, 250, 60, true, false], 31);
stop();
Frame 31
_global.sequenceList = new Array({add_percents:125, type:"click-n-hold", masks:[{mask:"mask_1", speed:0.8, good:{frame:39, text:"Uhhhhhh, /nI like it!"}, bad:{frame:40, text:"Ohhhhhh, /nStop it sir!"}}, {mask:"mask_2", speed:0.8, good:{frame:41, text:"Uhhhhhh, /nI like it!"}, bad:{frame:42, text:"Ohhhhhh, /nStop it sir!"}}]}, {add_percents:125, type:"click-n-hold", masks:[{mask:"mask_3", speed:0.8, good:{frame:43, text:"Uhhhhhh, /nI like it!"}, bad:{frame:44, text:"Ohhhhhh, /nStop it sir!"}}, {mask:"mask_4", speed:0.8, good:{frame:45, text:"Uhhhhhh, /nI like it!"}, bad:{frame:46, text:"Ohhhhhh, /nStop it sir!"}}]}, {add_percents:125, type:"click-n-hold", masks:[{mask:"mask_5", speed:0.8, good:{frame:47, text:"Uhhhhhh, /nI like it!"}, bad:{frame:48, text:"Ohhhhhh, /nStop it sir!"}}, {mask:"mask_6", speed:0.8, good:{frame:49, text:"Uhhhhhh, /nI like it!"}, bad:{frame:50, text:"Ohhhhhh, /nStop it sir!"}}]}, {add_percents:125, type:"click-n-hold", masks:[{mask:"mask_7", speed:0.8, good:{frame:51, text:"Uhhhhhh, /nI like it!"}, bad:{frame:52, text:"Ohhhhhh, /nStop it sir!"}}]});
_global.mySequence = new Sequence(_global.sequenceList, [420, 270, 200, 60, true, false], "btn_next", 55);
stop();
Frame 55
_global.sequenceList = new Array({add_percents:500, type:"move", masks:[{mask:"mask_0", speed:0.8, good:{frame:57, text:"Uhhhhhh, /nI like it!"}, bad:{frame:58, text:"Ohhhhhh, /nStop it sir!"}}]});
_global.mySequence = new Sequence(_global.sequenceList, [420, 200, 200, 60, true, false], "btn_next", 60);
stop();
Frame 60
CSound.getInstance().setMuteMusic(true);
CSound.getInstance().playMusic(CSound.SND2);
play();
Frame 77
_global.buttonList = new Array({area:[460, 400], obj:"btn_Cum", frame:78, url:""});
_global.myButtons = new Buttons(_global.buttonList);
stop();
Frame 78
CSound.getInstance().setMuteMusic(false);
CSound.getInstance().playSound(CSound.SND3);
play();
Frame 92
_root.mc1.gotoAndStop(1);
Frame 122
_global.buttonList = new Array({area:[300, 400], obj:"btn_End", frame:1, url:""});
_global.myButtons = new Buttons(_global.buttonList);
stop();
Frame 125
_global.sequenceList = new Array({add_percents:125, type:"click-n-hold", masks:[{mask:"mask_2", speed:0.8, good:{frame:135, text:"Uhhhhhh, /nI like it!"}, bad:{frame:136, text:"Ohhhhhh, /nStop it sir!"}}]}, {add_percents:125, type:"click-n-hold", masks:[{mask:"mask_3", speed:0.8, good:{frame:137, text:"Uhhhhhh, /nI like it!"}, bad:{frame:138, text:"Ohhhhhh, /nStop it sir!"}}, {mask:"mask_4", speed:0.8, good:{frame:139, text:"Uhhhhhh, /nI like it!"}, bad:{frame:140, text:"Ohhhhhh, /nStop it sir!"}}]}, {add_percents:125, type:"click-n-hold", masks:[{mask:"mask_5", speed:0.8, good:{frame:141, text:"Uhhhhhh, /nI like it!"}, bad:{frame:142, text:"Ohhhhhh, /nStop it sir!"}}]}, {add_percents:125, type:"click-n-hold", masks:[{mask:"mask_7", speed:0.8, good:{frame:145, text:"Uhhhhhh, /nI like it!"}, bad:{frame:146, text:"Ohhhhhh, /nStop it sir!"}}]});
_global.mySequence = new Sequence(_global.sequenceList, [420, 270, 200, 60, true, false], "btn_next", 31);
stop();
Symbol 71 Button
on (release) {
getURL ("http://sexgamesbox.com/?fr=sexwithangel-en", "_blank");
}
Symbol 125 MovieClip [__Packages.CSound] Frame 0
class CSound
{
static var SND1, SND2, SND3, SND4, instance;
var Snd, Mus;
function CSound () {
Snd = new WaveEngine(1);
Mus = new WaveEngine(2);
SND1 = Mus.addStream("sound1", false);
SND2 = Mus.addStream("sound2", false);
SND3 = Snd.addStream("sound3", false);
SND4 = Snd.addStream("sound4", false);
}
static function getInstance() {
if (instance == null) {
instance = new CSound();
}
return(instance);
}
function playSound(nId) {
trace("9999" + bMute);
if (bMute) {
return(undefined);
}
Snd.play(nId);
}
function playMusic(nId) {
trace("555" + bMuteMusic);
if (bMuteMusic) {
return(undefined);
}
Mus.stopAll();
Mus.play(nId, 0, 1000);
}
function setMute(_bMute) {
bMute = !_bMute;
if (bMute) {
Snd.soundOff();
} else {
Snd.soundOn();
}
}
function getMute() {
return(bMute);
}
function setMuteMusic(_bMuteMusic) {
bMuteMusic = !_bMuteMusic;
if (bMuteMusic) {
Mus.stopAll();
}
}
function setSoundVolume(nVolume) {
nSoundVolume = nVolume;
Snd.setAllVolume(nSoundVolume);
}
function setMusicVolume(nVolume) {
nMusicVolume = nVolume;
Mus.setAllVolume(nMusicVolume);
}
var bMute = false;
var bMuteMusic = false;
var nSoundVolume = 100;
var nMusicVolume = 100;
}
Symbol 126 MovieClip [__Packages.WaveEngine] Frame 0
class WaveEngine
{
var type, stack, debugOn, mute, _mc;
function WaveEngine (type, debugOn) {
this.type = ((type == undefined) ? 1 : (type));
stack = new Object();
this.debugOn = ((type == undefined) ? false : (debugOn));
mute = false;
init();
}
function init() {
_numClass++;
_mc = _root.createEmptyMovieClip((("WaveEngine_" + _numClass) + "_") + type, _root.getNextHighestDepth());
}
function soundOff() {
if (!mute) {
debug("soundOff()");
for (var _local2 in stack) {
stack[_local2]._oldVolume = stack[_local2].getVolume();
setVolume(_local2, 0);
}
mute = true;
}
}
function soundOn() {
if (mute) {
mute = false;
debug("soundOn()");
for (var _local3 in stack) {
var _local2 = ((stack[_local3]._oldVolume == undefined) ? 100 : (stack[_local3]._oldVolume));
setVolume(_local3, _local2);
}
}
}
function getSoundStatus() {
return(!mute);
}
function play(id, secondsOffset, loops) {
if ((id == undefined) || (stack[id] == undefined)) {
return(0);
}
if (type == 2) {
stopAll();
}
secondsOffset = ((secondsOffset == undefined) ? 0 : (secondsOffset));
loops = ((loops == undefined) ? 1 : (loops));
var _local3 = stack[id];
if (mute) {
_local3.setVolume(0);
} else if (type == 2) {
_local3.setVolume(nMucisVolume);
}
if (type == 2) {
loops = 65536;
}
_local3.start(secondsOffset, loops);
debug(((((("play(" + _local3.__link) + ", ") + secondsOffset) + ", ") + loops) + ")");
}
function playAll(secondsOffset, loops, autoDelete) {
for (var _local5 in stack) {
play(_local5, secondsOffset, loops, autoDelete);
}
}
function addStream(link_name, autoDelete) {
if (link_name == undefined) {
return(0);
}
autoDelete = ((autoDelete == undefined) ? true : (autoDelete));
var _local4 = _mc.createEmptyMovieClip("attachS_" + (++_numSound), _mc.getNextHighestDepth());
var _local2 = new Sound(_local4);
_local2.attachSound(link_name);
_local2.__parent = this;
_local2.__link = link_name;
_local2.__num = _numSound;
_local2.__mc = _local4;
_local2.__autoDelete = autoDelete;
_local2.onSoundComplete = function () {
if (this.__autoDelete) {
this.__parent.deleteSound(this.__num);
}
};
debug(("addStream(" + link_name) + ")");
stack[_numSound] = _local2;
return(_local2.__num);
}
function deleteSound(id) {
if ((id == undefined) || (stack[id] == undefined)) {
return(0);
}
var _local2 = stack[id];
debug("Stack deletes a " + _local2.__link);
delete stack[id];
removeMovieClip(_local2.__mc);
}
function deleteAllSound() {
debug("deleteAllSound()");
for (var _local2 in stack) {
deleteSound(_local2);
}
}
function stop(id) {
if ((id == undefined) || (stack[id] == undefined)) {
return(0);
}
var _local3 = stack[id];
_local3.stop();
debug(("stop(" + _local3.__link) + ")");
if (_local3.__autoDelete) {
if ((id != _numSound) || (type != 2)) {
deleteSound(id);
}
}
}
function stopAll() {
debug("stopAll()");
for (var _local2 in stack) {
stop(_local2);
}
}
function setVolume(id, volume) {
if (((id == undefined) || (volume == undefined)) || (stack[id] == undefined)) {
return(0);
}
var _local2 = stack[id];
if (type == 2) {
nMucisVolume = volume;
}
if (mute) {
_local2._oldVolume = volume;
return(0);
}
debug(((("setVolume(" + _local2.__link) + ", ") + volume) + ")");
if (_local2 != undefined) {
_local2.setVolume(volume);
}
}
function setAllVolume(volume) {
for (var _local2 in stack) {
setVolume(_local2, volume);
}
}
function debug(msg) {
if (debugOn) {
trace((type + " ") + msg);
}
}
function toString() {
return("[sound.CsoundEngine.WaveEngine]");
}
var _numSound = 0;
var nMucisVolume = 100;
static var _numClass = 0;
}
Symbol 127 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 128 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");
}
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 129 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] - 40;
popupObject.popup_button._y = _global.popupDatas.area[3] - 10;
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 130 MovieClip [__Packages.Dialog] Frame 0
class Dialog extends MovieClip
{
var dailogList, popupObject;
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].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;
}
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);
}
_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] - 40;
popupObject.popup_button._y = popupObject["popup_" + popupNumb][3] - 10;
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 {
trace((choiceNumb + " ") + _global.myDialog.dailogList[choiceNumb].correct);
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();
CSound.getInstance().setMute(true);
CSound.getInstance().playSound(CSound.SND4);
} else {
_root.gotoAndStop(_root.finishFrame);
_global.myDialog.kill();
CSound.getInstance().setMute(true);
CSound.getInstance().playSound(CSound.SND3);
}
}
};
}
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;
}
}
Symbol 131 MovieClip [__Packages.Sequence] Frame 0
class Sequence extends MovieClip
{
var classVar, sequenceData, sequenceArea, sequenceList, sequenceNumb, persentsNumb, onEnterFrame, 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].onRelease = (sequenceList[_local5].onReleaseOutside = function () {
_global.mySequence.onReleseAction(this);
});
_local6++;
}
_local5++;
}
_root.attachMovie("counter", "counter", 49, {_x:15, _y:35});
_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;
}
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;
CSound.getInstance().setMuteMusic(false);
classVar.proc = 0;
if (sequenceNumb == sequenceData.length) {
_root[classVar.next_btn]._visible = true;
CSound.getInstance().setMute(true);
CSound.getInstance().playSound(CSound.SND3);
}
clearInterval(classVar.interv);
}
_root.counter.gotoAndStop(int(persentsNumb));
break;
case "move" :
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;
_root[classVar.next_btn]._visible = true;
clearInterval(classVar.interv);
}
_root.counter.gotoAndStop(int(persentsNumb));
}
}
}
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);
CSound.getInstance().setMuteMusic(true);
CSound.getInstance().playMusic(CSound.SND1);
}
if (myObject.seq < sequenceNumb) {
_root.gotoAndStop(sequenceData[myObject.seq].masks[myObject.id].good.frame);
makePopup(sequenceData[myObject.seq].masks[myObject.id].bad.text);
CSound.getInstance().setMute(true);
CSound.getInstance().playSound(CSound.SND4);
}
if (myObject.seq > sequenceNumb) {
_root.gotoAndStop(sequenceData[myObject.seq].masks[myObject.id].bad.frame);
makePopup(sequenceData[myObject.seq].masks[myObject.id].bad.text);
CSound.getInstance().setMute(true);
CSound.getInstance().playSound(CSound.SND4);
}
break;
case "move" :
delete onEnterFrame;
if (myObject.seq != sequenceNumb) {
break;
}
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);
CSound.getInstance().setMuteMusic(true);
CSound.getInstance().playMusic(CSound.SND1);
}
}
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" :
CSound.getInstance().setMuteMusic(false);
clearInterval(classVar.interv);
_root.gotoAndStop(classVar.start_frame);
_global.gameTexts.text_0.setText("");
popupObject.removeMovieClip();
break;
case "move" :
CSound.getInstance().setMuteMusic(false);
clearInterval(classVar.interv);
trace(classVar.start_frame);
_root.gotoAndStop(classVar.start_frame);
_global.gameTexts.text_0.setText("");
popupObject.removeMovieClip();
}
}
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() {
_root.counter.removeMovieClip();
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].onRelease;
_local4++;
}
_local5++;
}
delete sequenceList;
delete popupObject;
delete _global.mySequence;
}
}
Symbol 116 MovieClip Frame 10
gotoAndPlay (2);