Combined Code
movieClip 30 col4 {
}
movieClip 33 col1 {
}
movieClip 36 col2 {
}
movieClip 39 col3 {
}
movieClip 42 por_mc {
}
movieClip 45 kep_mc {
}
movieClip 48 ss6_mc {
}
movieClip 51 ss5_mc {
}
movieClip 54 ss4_mc {
}
movieClip 57 ss3_mc {
}
movieClip 60 ss2_mc {
}
movieClip 63 ss1_mc {
}
movieClip 64 scrshot_mc {
}
movieClip 69 {
frame 1 {
tut05_atxt = _root.getstr('tut05_atxt');
}
}
movieClip 75 tutorial5 {
frame 1 {
stop();
tut05_title = _root.getstr('tut05_title');
tut_ok_btn = _root.getstr('tut_ok_btn');
this.ok_btn.onPress = function () {
_root.game.moving_time_counter.time_counter.play();
removeMovieClip(_root.game.tutorial_popup);
};
}
}
movieClip 78 {
frame 1 {
tut04_atxt = _root.getstr('tut04_atxt');
}
}
movieClip 83 tutorial4 {
frame 1 {
stop();
tut04_title = _root.getstr('tut04_title');
tut_ok_btn = _root.getstr('tut_ok_btn');
this.ok_btn.onPress = function () {
_root.game.moving_time_counter.time_counter.play();
removeMovieClip(_root.game.tutorial_popup);
};
}
}
movieClip 86 {
frame 1 {
tut03_atxt = _root.getstr('tut03_atxt');
}
}
movieClip 91 tutorial3 {
frame 1 {
stop();
tut03_title = _root.getstr('tut03_title');
tut_ok_btn = _root.getstr('tut_ok_btn');
this.ok_btn.onPress = function () {
_root.game.moving_time_counter.time_counter.play();
removeMovieClip(_root.game.tutorial_popup);
};
}
}
movieClip 94 {
frame 1 {
tut02_atxt = _root.getstr('tut02_atxt');
}
}
movieClip 99 tutorial2 {
frame 1 {
stop();
tut02_title = _root.getstr('tut02_title');
tut_ok_btn = _root.getstr('tut_ok_btn');
this.ok_btn.onPress = function () {
_root.game.moving_time_counter.time_counter.play();
removeMovieClip(_root.game.tutorial_popup);
};
}
}
movieClip 102 {
frame 1 {
tut01_atxt = _root.getstr('tut01_atxt');
}
}
movieClip 115 {
frame 1 {
tut01_hint = _root.getstr('tut01_hint');
tut01_undo = _root.getstr('tut01_undo');
tut01_restart = _root.getstr('tut01_restart');
tut01_txt = _root.getstr('tut01_txt');
}
}
movieClip 116 tutorial1 {
frame 1 {
stop();
tut01_title = _root.getstr('tut01_title');
tut_ok_btn = _root.getstr('tut_ok_btn');
this.ok_btn.onPress = function () {
gotoAndPlay(2);
};
}
frame 2 {
stop();
this.ok_btn.onPress = function () {
_root.game.moving_time_counter.time_counter.play();
removeMovieClip(_root.game.tutorial_popup);
};
}
}
button 118 {
on (release) {
if (_root.game._visible == true and _root.game.dropcount > 0) {
_root.game.dropend = true;
}
}
}
movieClip 119 {
frame 1 {
tilt_panel.useHandCursor = false;
}
frame 10 {
stop();
}
}
movieClip 122 tutorial_mc {
frame 10 {
stop();
}
}
movieClip 133 {
frame 1 {
stop();
}
}
movieClip 136 {
}
movieClip 139 {
}
movieClip 142 {
}
movieClip 145 {
}
movieClip 146 cardbreak {
frame 1 {
gotoAndPlay('start');
}
frame 10 {
i = 1;
while (i <= 4) {
eval('ymzg' + i) = -15 + random(5);
eval('xmzg' + i) = random(5) - 2;
eval('rmzg' + i) = random(5) - 2;
++i;
}
i = 5;
while (i <= 14) {
duplicateMovieClip(szilank, 'piece' + i + 'mc', this.getNextHighestDepth());
(eval('piece' + i + 'mc')).gotoAndStop(random(5) + 1);
eval('ymzg' + i) = -15 + random(5);
eval('xmzg' + i) = random(5) - 2;
eval('rmzg' + i) = random(5) - 2;
++i;
}
szilank._visible = false;
_root.playsound('break_0' + (random(5) + 1));
}
frame 11 {
i = 1;
while (i <= 14) {
xpos = (eval('piece' + i + 'mc'))._x;
xpos += eval('xmzg' + i);
eval('piece' + i + 'mc')._x = xpos;
ypos = (eval('piece' + i + 'mc'))._y;
eval('ymzg' + i) += 1;
ypos += eval('ymzg' + i);
eval('piece' + i + 'mc')._y = ypos;
rot = (eval('piece' + i + 'mc'))._rotation;
rot += eval('rmzg' + i);
eval('piece' + i + 'mc')._rotation = rot;
alpha = (eval('piece' + i + 'mc'))._alpha;
if (eval('ymzg' + i) > 0) {
alpha -= 5;
}
eval('piece' + i + 'mc')._alpha = alpha;
++i;
}
}
frame 12 {
if (alpha > 0) {
gotoAndPlay(11);
}
}
frame 13 {
removeMovieClip(this);
}
}
movieClip 159 {
}
movieClip 160 {
frame 1 {
szam = _root.kocsogeltol + _currentframe;
if (szam > 6) {
szam -= 6;
}
kocsogsor.gotoAndStop(szam);
stop();
}
frame 2 {
szam = _root.kocsogeltol + _currentframe;
if (szam > 6) {
szam -= 6;
}
kocsogsor.gotoAndStop(szam);
stop();
}
frame 3 {
szam = _root.kocsogeltol + _currentframe;
if (szam > 6) {
szam -= 6;
}
kocsogsor.gotoAndStop(szam);
stop();
}
frame 4 {
szam = _root.kocsogeltol + _currentframe;
if (szam > 6) {
szam -= 6;
}
kocsogsor.gotoAndStop(szam);
stop();
}
frame 5 {
szam = _root.kocsogeltol + _currentframe;
if (szam > 6) {
szam -= 6;
}
kocsogsor.gotoAndStop(szam);
stop();
}
frame 6 {
szam = _root.kocsogeltol + _currentframe;
if (szam > 6) {
szam -= 6;
}
kocsogsor.gotoAndStop(szam);
stop();
}
}
movieClip 173 {
frame 1 {
stop();
}
}
movieClip 174 {
frame 1 {
lathato = false;
if (_root.tguidance[_root.taktplayer] == 'yes') {
this._visible = true;
} else {
this._visible = false;
}
}
frame 1 {
function mutat() {
if (lathato == true) {
gotoAndPlay('in');
} else {
gotoAndPlay('infade');
}
}
function elrejt() {
if (lathato == true) {
gotoAndPlay('outfade');
} else {
gotoAndPlay('out');
}
}
}
frame 4 {
szam = _root.kocsogeltol + _parent.cardcolor;
if (szam > 6) {
szam -= 6;
}
sign.gotoAndStop(szam);
}
frame 9 {
stop();
}
frame 10 {
szam = _root.kocsogeltol + _parent.cardcolor;
if (szam > 6) {
szam -= 6;
}
sign.gotoAndStop(szam);
}
frame 14 {
szam = _root.kocsogeltol + _parent.cardcolor;
if (szam > 6) {
szam -= 6;
}
sign.gotoAndStop(szam);
}
frame 19 {
lathato = false;
stop();
}
frame 20 {
szam = _root.kocsogeltol + _parent.cardcolor;
if (szam > 6) {
szam -= 6;
}
sign.gotoAndStop(szam);
}
frame 24 {
szam = _root.kocsogeltol + _parent.cardcolor;
if (szam > 6) {
szam -= 6;
}
sign.gotoAndStop(szam);
}
frame 29 {
lathato = false;
stop();
}
frame 30 {
szam = _root.kocsogeltol + _parent.cardcolor;
if (szam > 6) {
szam -= 6;
}
sign.gotoAndStop(szam);
}
frame 34 {
szam = _root.kocsogeltol + _parent.cardcolor;
if (szam > 6) {
szam -= 6;
}
sign.gotoAndStop(szam);
}
frame 39 {
lathato = true;
stop();
}
frame 40 {
szam = _root.kocsogeltol + _parent.cardcolor;
if (szam > 6) {
szam -= 6;
}
sign.gotoAndStop(szam);
}
frame 43 {
szam = _root.kocsogeltol + _parent.cardcolor;
if (szam > 6) {
szam -= 6;
}
sign.gotoAndStop(szam);
}
frame 49 {
lathato = true;
stop();
}
}
movieClip 177 {
}
movieClip 178 {
frame 2 {
stop();
}
frame 10 {
gotoAndPlay(random(10) + 10);
}
frame 55 {
gotoAndPlay(20);
}
}
movieClip 218 card {
frame 1 {
sign2._visible = false;
sign3._visible = false;
putdownsign._visible = false;
hintglow._visible = false;
putdownsign.stop();
}
frame 1 {
function ugorj(hova) {
gotoAndStop(hova);
}
}
frame 2 {
stop();
}
}
movieClip 219 cardlifter {
frame 1 {
szam = 0;
}
frame 2 {
if (_root.game.liftcount == 1) {
_root.game.guidance();
}
++szam;
}
frame 5 {
if (szam < varszam) {
gotoAndPlay(2);
}
}
frame 22 {
if (_root.game.liftcount > 0) {
--_root.game.liftcount;
}
if (_root.game.liftcount < 1) {
_root.game.guidance();
}
removeMovieClip(this);
}
}
movieClip 222 {
}
movieClip 223 {
}
movieClip 226 {
}
movieClip 227 {
}
movieClip 228 {
}
movieClip 229 carddropper {
frame 1 {
++_root.leesolap;
szam = 0;
_root.tilt_panel._visible = true;
_root.carddropping = true;
}
frame 2 {
++szam;
}
frame 4 {
if (szam < varszam) {
gotoAndPlay(2);
}
if (_root.game.dropend == true) {
gotoAndPlay(20);
}
}
frame 6 {
if (_root.game.dropend == true) {
gotoAndPlay(20);
}
}
frame 8 {
if (_root.game.dropend == true) {
gotoAndPlay(20);
}
}
frame 10 {
if (_root.game.dropend == true) {
gotoAndPlay(20);
}
}
frame 12 {
if (_root.game.dropend == true) {
gotoAndPlay(20);
}
}
frame 14 {
if (_root.game.dropend == true) {
gotoAndPlay(20);
}
}
frame 16 {
if (_root.game.dropend == true) {
gotoAndPlay(20);
}
}
frame 18 {
_root.playsound('putdown_0' + (random(5) + 1));
tmp = cname.substring(cname.length - 2, cname.length);
if (tmp == 'd1') {
pufmoving._visible = false;
}
}
frame 20 {
--_root.leesolap;
eval(eval(cname))._visible = true;
eval(eval(cname) + '.sign')._visible = false;
eval(eval(cname))._alpha = 100;
card._visible = false;
if (_root.game.dropcount < 1) {
_root.tilt_panel._visible = false;
}
}
frame 22 {
if (_root.game.dropcount > 0) {
--_root.game.dropcount;
}
}
frame 25 {
if (_root.game.dropcount < 1) {
_root.carddropping = false;
if (_root.tilt_panel._visible == true) {
_root.game.helyzetelemzes();
_root.tilt_panel._visible = false;
}
}
_root.game.guidance();
}
frame 43 {
removeMovieClip(this);
}
}
movieClip 231 cardsout_mc {
frame 64 {
removeMovieClip(this);
}
}
movieClip 233 {
}
movieClip 234 hintglow2 {
frame 47 {
removeMovieClip(this);
stop();
}
}
movieClip 238 bgmask_mc {
}
movieClip 243 contactscreen_mc {
frame 1 {
function sortByDepth(a, b) {
if (a.depth < b.depth) {
return -1;
} else {
if (a.depth > b.depth) {
return 1;
} else {
return 0;
}
}
}
function quit() {
trace('Quit');
}
bgmask_mc.swapDepths(1499);
urltext_txt.htmlText = _root.getstr('credits');
var numorbs = 6;
var orbs = new Array();
var i = 0;
while (i < numorbs) {
this.attachMovie('ss' + (i + 1) + '_mc', 'kep' + i + '_mc', this.getNextHighestDepth(), {'_x': 740, '_y': 619});
var orb = new Orbiter(eval('kep' + i + '_mc'), {'scaleFactor': 1, 'speed': 0.01, 'center': 384, 'phase': i * Math.PI * 2 / numorbs});
orbs[i] = orb;
++i;
}
onEnterFrame = function () {
var v2 = ((_ymouse - Stage.height / 2) / (Stage.height / 2)) * 0.03;
var v1 = 0;
while (v1 < orbs.length) {
orbs[v1].speed = v2;
orbs[v1].update();
++v1;
}
orbs.sort(sortByDepth);
v1 = 0;
while (v1 < orbs.length) {
if (orbs[v1].isInBackground) {
orbs[v1].setFlashDepth(1000 + v1);
} else {
orbs[v1].setFlashDepth(1500 + v1);
}
++v1;
}
};
onMouseDown = quit;
var keyListener = new Object();
keyListener.onKeyDown = quit;
Key.addListener(keyListener);
}
}
movieClip 249 putdownsign {
}
movieClip 252 p11 {
}
movieClip 255 p9 {
}
movieClip 258 p8 {
}
movieClip 261 p7 {
}
movieClip 264 p6 {
}
movieClip 267 p5 {
}
movieClip 270 p4 {
}
movieClip 273 p3 {
}
movieClip 276 p2 {
}
movieClip 279 p1 {
}
frame 1 {
strings_txt.gotoAndPlay('english');
_focusrect = false;
var my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
my_cm.builtInItems.print = true;
this.menu = my_cm;
resdir = '';
if (mdm.System.Paths.temp != undefined) {
tmp = mdm.System.Paths.temp;
resdir = '';
i = 0;
while (i < length(tmp)) {
if (tmp.substr(i, 1) == '\\') {
resdir += '\\';
} else {
resdir += tmp.substr(i, 1);
}
++i;
}
mdm.Application.Library.extractAllToDir(mdm.System.Paths.temp);
}
var myso = SharedObject.getLocal('olympic', '/');
var tplayername = new Array();
var tmoney = new Array();
var taktstep = new Array();
var tmusic_volume = new Array();
var teffect_volume = new Array();
var tplayer_language = new Array();
var tfullscreen = new Array();
var taveragegamesteps = new Array();
var taveragegameundos = new Array();
var taveragegametime = new Array();
var tbestgamesteps = new Array();
var tbestgameundos = new Array();
var tbestgametime = new Array();
var twrostgamesteps = new Array();
var twrostgameundos = new Array();
var twrostgametime = new Array();
tplayercount = 0;
var tcheat1 = new Array();
var tcheat2 = new Array();
var tcheat3 = new Array();
var tcheat4 = new Array();
var tcheat5 = new Array();
var tcheat6 = new Array();
var tcheat1pos = new Array();
var tcheat2pos = new Array();
var tcheat3pos = new Array();
var tcheat4pos = new Array();
var tcheat5pos = new Array();
var tcheat6pos = new Array();
var tguidance = new Array();
var tgame = new Array();
var trowelemszam = new Array();
i = 1;
while (i <= 30) {
trowelemszam[i] = new Array();
++i;
}
var tingame = new Array();
var tpaklitype = new Array();
var tpaklicolor = new Array();
var tallcard = new Array();
var tpaklipos = new Array();
var tlepes = new Array();
var tundocount = new Array();
var tgame2 = new Array();
var trowelemszam2 = new Array();
i = 1;
while (i <= 30) {
trowelemszam2[i] = new Array();
++i;
}
var tingame2 = new Array();
var tpaklitype2 = new Array();
var tpaklicolor2 = new Array();
var tallcard2 = new Array();
var tpaklipos2 = new Array();
var tlepes2 = new Array();
var tundocount2 = new Array();
var tdef_types = new Array();
var tdef_colors = new Array();
var tdef_rows = new Array();
var tdef_down = new Array();
var tdef_up = new Array();
var tdef_packs = new Array();
var tkocsogeltol = new Array();
var tkocsogeltol2 = new Array();
tilt_panel._visible = false;
_root.mousecardrow.onMouseMove = function () {
this._x = _xmouse;
this._y = _ymouse;
updateAfterEvent();
};
player_language = 'eng';
fullscreen = 'false';
music_volume = 50;
effect_volume = 50;
playercount = 0;
aktstep = 1;
lszam = 0;
showmessage_panel._visible = false;
messagedlg_mc._visible = false;
messagebox_mc._visible = false;
music_movie.music = new Sound(music_movie);
tcheat1[_root.taktplayer] = 0;
tcheat2[_root.taktplayer] = 0;
tcheat3[_root.taktplayer] = 0;
tcheat4[_root.taktplayer] = 0;
tcheat5[_root.taktplayer] = 0;
tcheat6[_root.taktplayer] = 0;
_root.fullscreen = 'true';
_root.gotoFullscreen();
fut = true;
_root.leesolap = 0;
}
frame 1 {
stepname1 = 'level01';
stepname2 = 'level02';
stepname3 = 'level03';
stepname4 = 'level04';
stepname5 = 'level05';
stepname6 = 'level06';
stepname7 = 'level07';
stepname8 = 'level08';
stepname9 = 'level09';
stepname10 = 'level10';
stepname11 = 'level11';
stepname12 = 'level12';
stepname13 = 'level13';
stepname14 = 'level14';
stepname15 = 'level15';
stepname16 = 'level16';
stepname17 = 'level17';
stepname18 = 'level18';
stepname19 = 'level19';
stepname20 = 'level20';
stepname21 = 'level21';
stepname22 = 'level22';
stepname23 = 'level23';
stepname24 = 'level24';
stepname25 = 'level25';
stepname26 = 'level26';
stepname27 = 'level27';
stepname28 = 'level28';
stepname29 = 'level29';
stepname30 = 'level30';
stepname31 = 'level31';
stepname32 = 'level32';
stepname33 = 'level33';
stepname34 = 'level34';
stepname35 = 'level35';
stepname36 = 'level36';
stepname37 = 'level37';
stepname38 = 'level38';
stepname39 = 'level39';
stepname40 = 'level40';
stepname41 = 'level41';
stepname42 = 'level42';
stepname43 = 'level43';
stepname44 = 'level44';
stepname45 = 'level45';
stepname46 = 'level46';
stepname47 = 'level47';
stepname48 = 'level48';
stepname49 = 'level49';
stepname50 = 'level50';
}
frame 1 {
function allsave() {
myso.data.taktplayer = _root.taktplayer;
myso.data.tplayercount = _root.tplayercount;
myso.data.tplayername = _root.tplayername;
myso.data.tmoney = _root.tmoney;
myso.data.taktstep = _root.taktstep;
_root.tmusic_volume[_root.taktplayer] = _root.music_volume;
myso.data.tmusic_volume = _root.tmusic_volume;
_root.teffect_volume[_root.taktplayer] = _root.effect_volume;
myso.data.teffect_volume = _root.teffect_volume;
_root.tplayer_language[_root.taktplayer] = _root.player_language;
myso.data.tlanguage = _root.tplayer_language;
_root.tfullscreen[_root.taktplayer] = _root.fullscreen;
myso.data.tfullscreen = _root.tfullscreen;
myso.data.taveragegamesteps = _root.taveragegamesteps;
myso.data.taveragegameundos = _root.taveragegameundos;
myso.data.taveragegametime = _root.taveragegametime;
myso.data.tbestgamesteps = _root.tbestgamesteps;
myso.data.tbestgameundos = _root.tbestgameundos;
myso.data.tbestgametime = _root.tbestgametime;
myso.data.twrostgamesteps = _root.twrostgamesteps;
myso.data.twrostgameundos = _root.twrostgameundos;
myso.data.twrostgametime = _root.twrostgametime;
myso.data.tcheat1 = _root.tcheat1;
myso.data.tcheat2 = _root.tcheat2;
myso.data.tcheat3 = _root.tcheat3;
myso.data.tcheat4 = _root.tcheat4;
myso.data.tcheat5 = _root.tcheat5;
myso.data.tcheat6 = _root.tcheat6;
myso.data.tcheat1pos = _root.tcheat1pos;
myso.data.tcheat2pos = _root.tcheat2pos;
myso.data.tcheat3pos = _root.tcheat3pos;
myso.data.tcheat4pos = _root.tcheat4pos;
myso.data.tcheat5pos = _root.tcheat5pos;
myso.data.tcheat6pos = _root.tcheat6pos;
myso.data.tguidance = _root.tguidance;
if (_root.gametype == 'campign') {
if (_root.briefing_panel._visible == true) {
_root.tingame[_root.taktplayer] = 'false';
}
if (_root.game._visible == true) {
_root.tingame[_root.taktplayer] = 'true';
_root.tgame[_root.taktplayer] = '';
j = 1;
while (j <= 10) {
tmp = eval('_root.game.cardrows.cardrow' + j + '.elemszam');
_root.trowelemszam[_root.taktplayer][j] = tmp;
eval('_root.undo' + _root.game.lepes + '_' + j + '_' + 'elemszam') = tmp;
i = 1;
while (i <= 100) {
ctype = eval('_root.game.cardrows.cardrow' + j + '.card' + i + '.cardtype');
ccolor = eval('_root.game.cardrows.cardrow' + j + '.card' + i + '.cardcolor');
cpos = eval('_root.game.cardrows.cardrow' + j + '.card' + i + '._currentframe');
if (j <= _root.game.def_rows and i <= tmp) {
if (ctype == 10) {
ctype = 'a';
}
if (ctype == 11) {
ctype = 'b';
}
if (ctype == 12) {
ctype = 'c';
}
if (ctype == 13) {
ctype = 'd';
}
if (cpos == 10) {
cpos = 'a';
}
if (cpos == 11) {
cpos = 'b';
}
if (cpos == 12) {
cpos = 'c';
}
if (cpos == 13) {
cpos = 'd';
}
if (cpos == 14) {
cpos = 'e';
}
_root.tgame[_root.taktplayer] = _root.tgame[_root.taktplayer] + ctype + ccolor + cpos;
} else {
_root.tgame[_root.taktplayer] += 'xxx';
}
++i;
}
++j;
}
_root.tallcard[_root.taktplayer] = _root.game.allcard;
_root.tpaklipos[_root.taktplayer] = _root.game.aktcrd;
_root.tpaklitype[_root.taktplayer] = '';
_root.tpaklicolor[_root.taktplayer] = '';
i = 1;
while (i <= _root.game.aktcrd) {
tmp = eval('_root.game.crdtype' + i);
if (tmp > 9) {
if (tmp == 10) {
tmp = 'a';
}
if (tmp == 11) {
tmp = 'b';
}
if (tmp == 12) {
tmp = 'c';
}
if (tmp == 13) {
tmp = 'd';
}
} else {
tmp = _root.inttostr(tmp);
}
_root.tpaklitype[_root.taktplayer] += tmp;
tmp = eval('_root.game.crdcolor' + i);
tmp = _root.inttostr(tmp);
_root.tpaklicolor[_root.taktplayer] += tmp;
++i;
}
_root.tlepes[_root.taktplayer] = _root.game.lepes + _root.game.startstep;
_root.tundocount[_root.taktplayer] = _root.game.undocount + _root.game.startundo;
_root.tkocsogeltol[_root.taktplayer] = _root.kocsogeltol;
}
}
myso.data.tgame = _root.tgame;
myso.data.trowelemszam = _root.trowelemszam;
myso.data.tallcard = _root.tallcard;
myso.data.tpaklipos = _root.tpaklipos;
myso.data.tpaklitype = _root.tpaklitype;
myso.data.tpaklicolor = _root.tpaklicolor;
myso.data.tlepes = _root.tlepes;
myso.data.tundocount = _root.tundocount;
myso.data.tkocsogeltol = _root.tkocsogeltol;
myso.data.tingame = _root.tingame;
if (_root.gametype == 'custom') {
if (_root.parameters_mc._visible == true) {
_root.tingame2[_root.taktplayer] = 'false';
}
if (_root.game._visible == true) {
_root.tingame2[_root.taktplayer] = 'true';
_root.tgame2[_root.taktplayer] = '';
j = 1;
while (j <= 10) {
tmp = eval('_root.game.cardrows.cardrow' + j + '.elemszam');
_root.trowelemszam[_root.taktplayer][j] = tmp;
eval('_root.undo' + _root.game.lepes + '_' + j + '_' + 'elemszam') = tmp;
i = 1;
while (i <= 100) {
ctype = eval('_root.game.cardrows.cardrow' + j + '.card' + i + '.cardtype');
ccolor = eval('_root.game.cardrows.cardrow' + j + '.card' + i + '.cardcolor');
cpos = eval('_root.game.cardrows.cardrow' + j + '.card' + i + '._currentframe');
if (j <= _root.game.def_rows and i <= tmp) {
if (ctype == 10) {
ctype = 'a';
}
if (ctype == 11) {
ctype = 'b';
}
if (ctype == 12) {
ctype = 'c';
}
if (ctype == 13) {
ctype = 'd';
}
if (cpos == 10) {
cpos = 'a';
}
if (cpos == 11) {
cpos = 'b';
}
if (cpos == 12) {
cpos = 'c';
}
if (cpos == 13) {
cpos = 'd';
}
if (cpos == 14) {
cpos = 'e';
}
_root.tgame2[_root.taktplayer] = _root.tgame2[_root.taktplayer] + ctype + ccolor + cpos;
} else {
_root.tgame2[_root.taktplayer] += 'xxx';
}
++i;
}
++j;
}
_root.tallcard2[_root.taktplayer] = _root.game.allcard;
_root.tpaklipos2[_root.taktplayer] = _root.game.aktcrd;
_root.tpaklitype2[_root.taktplayer] = '';
_root.tpaklicolor2[_root.taktplayer] = '';
i = 1;
while (i <= _root.game.aktcrd) {
tmp = eval('_root.game.crdtype' + i);
if (tmp > 9) {
if (tmp == 10) {
tmp = 'a';
}
if (tmp == 11) {
tmp = 'b';
}
if (tmp == 12) {
tmp = 'c';
}
if (tmp == 13) {
tmp = 'd';
}
} else {
tmp = _root.inttostr(tmp);
}
_root.tpaklitype2[_root.taktplayer] += tmp;
tmp = eval('_root.game.crdcolor' + i);
tmp = _root.inttostr(tmp);
_root.tpaklicolor2[_root.taktplayer] += tmp;
++i;
}
_root.tlepes2[_root.taktplayer] = _root.game.lepes + _root.game.startstep;
_root.tundocount2[_root.taktplayer] = _root.game.undocount + _root.game.startundo;
_root.tkocsogeltol2[_root.taktplayer] = _root.kocsogeltol;
}
tdef_types[_root.taktplayer] = _root.def_types;
tdef_colors[_root.taktplayer] = _root.def_colors;
tdef_rows[_root.taktplayer] = _root.def_rows;
tdef_down[_root.taktplayer] = _root.def_down;
tdef_up[_root.taktplayer] = _root.def_up;
tdef_packs[_root.taktplayer] = _root.def_packs;
}
tdef_types[0] = 1;
tdef_colors[0] = 1;
tdef_rows[0] = 1;
tdef_down[0] = 1;
tdef_up[0] = 1;
tdef_packs[0] = 1;
myso.data.tgame2 = _root.tgame2;
myso.data.trowelemszam2 = _root.trowelemszam2;
myso.data.tallcard2 = _root.tallcard2;
myso.data.tpaklipos2 = _root.tpaklipos2;
myso.data.tpaklitype2 = _root.tpaklitype2;
myso.data.tpaklicolor2 = _root.tpaklicolor2;
myso.data.tlepes2 = _root.tlepes2;
myso.data.tundocount2 = _root.tundocount2;
myso.data.tkocsogeltol2 = _root.tkocsogeltol2;
myso.data.tdef_types = _root.tdef_types;
myso.data.tdef_colors = _root.tdef_colors;
myso.data.tdef_rows = _root.tdef_rows;
myso.data.tdef_down = _root.tdef_down;
myso.data.tdef_up = _root.tdef_up;
myso.data.tdef_packs = _root.tdef_packs;
myso.data.tingame2 = _root.tingame2;
var status = myso.flush();
mdm.Input.Mouse.show('MainForm');
if (status == 'pending') {
mdm.Input.Mouse.show('MainForm');
myso.onStatus = statusHandler;
} else {
if (status) {
mdm.Input.Mouse.hide('MainForm');
} else {
mdm.Input.Mouse.hide('MainForm');
_root.messagebox('big_save_error', '');
}
}
}
function statusHandler(status) {
mdm.Input.Mouse.hide('MainForm');
so.onStatus = null;
if (status.code == 'SharedObject.Flush.Success') {
_root.messagebox('save_sucess', '');
mdm.Input.Mouse.hide('MainForm');
} else {
_root.messagebox('save_unsucess', 'save_unsucess');
mdm.Input.Mouse.hide('MainForm');
}
}
function allload() {
if (myso.data.tplayercount == undefined) {
_root.gotoFullscreen();
}
if (myso.data.tplayercount != undefined) {
_root.taktplayer = myso.data.taktplayer;
_root.tplayercount = myso.data.tplayercount;
if (_root.tplayercount == undefined) {
_root.tplayercount = 0;
}
_root.tplayername = myso.data.tplayername;
_root.tmoney = myso.data.tmoney;
_root.taktstep = myso.data.taktstep;
_root.tmusic_volume = myso.data.tmusic_volume;
_root.teffect_volume = myso.data.teffect_volume;
_root.tplayer_language = myso.data.tlanguage;
_root.tfullscreen = myso.data.tfullscreen;
_root.fullscreen = _root.tfullscreen[_root.taktplayer];
if (_root.fullscreen == 'true') {
_root.gotoFullscreen();
} else {
_root.gotoWindowed();
}
_root.taveragegamesteps = myso.data.taveragegamesteps;
_root.taveragegameundos = myso.data.taveragegameundos;
_root.taveragegametime = myso.data.taveragegametime;
_root.tbestgamesteps = myso.data.tbestgamesteps;
_root.tbestgameundos = myso.data.tbestgameundos;
_root.tbestgametime = myso.data.tbestgametime;
_root.twrostgamesteps = myso.data.twrostgamesteps;
_root.twrostgameundos = myso.data.twrostgameundos;
_root.twrostgametime = myso.data.twrostgametime;
_root.tcheat1 = myso.data.tcheat1;
_root.tcheat2 = myso.data.tcheat2;
_root.tcheat3 = myso.data.tcheat3;
_root.tcheat4 = myso.data.tcheat4;
_root.tcheat5 = myso.data.tcheat5;
_root.tcheat6 = myso.data.tcheat6;
_root.tcheat1pos = myso.data.tcheat1pos;
_root.tcheat2pos = myso.data.tcheat2pos;
_root.tcheat3pos = myso.data.tcheat3pos;
_root.tcheat4pos = myso.data.tcheat4pos;
_root.tcheat5pos = myso.data.tcheat5pos;
_root.tcheat6pos = myso.data.tcheat6pos;
_root.tgame = myso.data.tgame;
_root.trowelemszam = myso.data.trowelemszam;
_root.tingame = myso.data.tingame;
_root.tpaklipos = myso.data.tpaklipos;
_root.tallcard = myso.data.tallcard;
_root.tpaklitype = myso.data.tpaklitype;
_root.tpaklicolor = myso.data.tpaklicolor;
_root.tgame2 = myso.data.tgame2;
_root.trowelemszam2 = myso.data.trowelemszam2;
_root.tingame2 = myso.data.tingame2;
_root.tpaklipos2 = myso.data.tpaklipos2;
_root.tallcard2 = myso.data.tallcard2;
_root.tpaklitype2 = myso.data.tpaklitype2;
_root.tpaklicolor2 = myso.data.tpaklicolor2;
_root.tdef_types = myso.data.tdef_types;
_root.tdef_colors = myso.data.tdef_colors;
_root.tdef_rows = myso.data.tdef_rows;
_root.tdef_down = myso.data.tdef_down;
_root.tdef_up = myso.data.tdef_up;
_root.tdef_packs = myso.data.tdef_packs;
_root.tkocsogeltol = myso.data.tkocsogeltol;
_root.tkocsogeltol2 = myso.data.tkocsogeltol2;
_root.tguidance = myso.data.tguidance;
if (_root.taktplayer > 0) {
_root.changeplayer();
}
}
}
function changeplayer() {
if (_root.taktplayer > 0) {
_root.music_volume = _root.tmusic_volume[_root.taktplayer];
var v2 = new Object();
v2.ll = _root.music_volume / 2;
v2.lr = _root.music_volume / 2;
v2.rr = _root.music_volume / 2;
v2.rl = _root.music_volume / 2;
_root.music_movie.music.setTransform(v2);
_root.effect_volume = _root.teffect_volume[_root.taktplayer];
_root.player_language = _root.tplayer_language[_root.taktplayer];
_root.languagechanger.gotoAndPlay('start');
elozofullscreen = _root.fullscreen;
_root.fullscreen = _root.tfullscreen[_root.taktplayer];
if (_root.fullscreen != elozofullscreen) {
if (_root.fullscreen == 'true') {
_root.gotoFullscreen();
} else {
_root.gotoWindowed();
}
}
}
}
function playersave() {
if (_root.playername != '' and _root.playername != undefined) {
szam = 0;
i = 1;
while (i <= _root.tplayercount) {
if (_root.playername == eval('_root.playername' + i)) {
szam = i;
}
++i;
}
fname = savepath + '\\' + eval('_root.filename' + szam) + '.dat';
var fs = new FileStream(fname, 'w');
variablename = 'player_language';
variablevalue = eval(variablename);
fs.writeLine(variablename);
fs.writeLine(variablevalue);
variablename = 'music_volume';
variablevalue = inttostr(eval(variablename));
fs.writeLine(variablename);
fs.writeLine(variablevalue);
variablename = 'effect_volume';
variablevalue = inttostr(eval(variablename));
fs.writeLine(variablename);
fs.writeLine(variablevalue);
variablename = 'money';
variablevalue = inttostr(eval(variablename));
fs.writeLine(variablename);
fs.writeLine(variablevalue);
variablename = 'aktstep';
variablevalue = inttostr(eval(variablename));
fs.writeLine(variablename);
fs.writeLine(variablevalue);
variablename = 'aktpanel';
variablevalue = eval(variablename);
fs.writeLine(variablename);
fs.writeLine(variablevalue);
variablename = 'gametype';
variablevalue = eval(variablename);
fs.writeLine(variablename);
fs.writeLine(variablevalue);
def_types = _root.game.def_types;
variablename = 'def_types';
variablevalue = inttostr(eval(variablename));
fs.writeLine(variablename);
fs.writeLine(variablevalue);
def_colors = _root.game.def_colors;
variablename = 'def_colors';
variablevalue = inttostr(eval(variablename));
fs.writeLine(variablename);
fs.writeLine(variablevalue);
def_rows = _root.game.def_rows;
variablename = 'def_rows';
variablevalue = inttostr(eval(variablename));
fs.writeLine(variablename);
fs.writeLine(variablevalue);
def_list = _root.game.def_list;
variablename = 'def_list';
variablevalue = inttostr(eval(variablename));
fs.writeLine(variablename);
fs.writeLine(variablevalue);
lepes = _root.game.lepes;
variablename = 'lepes';
variablevalue = inttostr(eval(variablename));
fs.writeLine(variablename);
fs.writeLine(variablevalue);
if (_root.game.lepes != undefined) {
j = _root.game.lepes;
while (j <= _root.game.lepes) {
variablename = '_root.undo' + j + '_' + 'crd';
variablevalue = inttostr(eval(variablename));
fs.writeLine(variablename);
fs.writeLine(variablevalue);
lapszam = eval(variablename);
i = 1;
while (i <= lapszam) {
variablename = '_root.undo' + j + '_crdtype' + i;
variablevalue = inttostr(eval(variablename));
fs.writeLine(variablename);
fs.writeLine(variablevalue);
variablename = '_root.undo' + j + '_crdcolor' + i;
variablevalue = inttostr(eval(variablename));
fs.writeLine(variablename);
fs.writeLine(variablevalue);
++i;
}
i = 1;
while (i <= _root.game.def_rows) {
variablename = '_root.undo' + j + '_' + i + '_' + 'elemszam';
variablevalue = inttostr(eval(variablename));
fs.writeLine(variablename);
fs.writeLine(variablevalue);
tmp = eval(variablename);
k = 1;
while (k <= tmp) {
variablename = '_root.undo' + j + '_' + i + '_' + k + 'type';
variablevalue = inttostr(eval(variablename));
fs.writeLine(variablename);
fs.writeLine(variablevalue);
variablename = '_root.undo' + j + '_' + i + '_' + k + 'color';
variablevalue = inttostr(eval(variablename));
fs.writeLine(variablename);
fs.writeLine(variablevalue);
variablename = '_root.undo' + j + '_' + i + '_' + k + 'pos';
variablevalue = inttostr(eval(variablename));
fs.writeLine(variablename);
fs.writeLine(variablevalue);
++k;
}
++i;
}
++j;
}
}
fs.close();
fs.Release();
}
}
function playerload() {
if (_root.playername != '' and _root.playername != undefined and _root.playername != null and _root.playername != 'null') {
szam = 0;
i = 1;
while (i <= _root.tplayercount) {
if (_root.playername == eval('_root.playername' + i)) {
szam = i;
}
++i;
}
fname = savepath + '\\' + eval('_root.filename' + szam) + '.dat';
var fs = new FileStream(fname, 'r');
lszam = 0;
while (!fs.eof) {
++lszam;
line1 = fs.readLine();
eval('l1_' + lszam) = line1;
line2 = fs.readLine();
if (strtoint(line2) > 0 or line2 == '0') {
line2 = strtoint(line2);
}
eval('l2_' + lszam) = line2;
eval(line1) = line2;
}
fs.close();
fs.Release();
_root.game.lepes = lepes;
_root.game.def_types = def_types;
_root.game.def_colors = def_colors;
_root.game.def_rows = def_rows;
_root.game.def_list = def_list;
_root.game.loadplace();
_root.languagechanger.gotoAndPlay('start');
}
}
function fastplayerload() {
if (_root.playername != '' and _root.playername != undefined) {
i = 1;
while (i <= lszam) {
eval('l1_' + i) = eval('l2_' + i);
++i;
}
_root.game.lepes = lepes;
_root.game.def_types = def_types;
_root.game.def_colors = def_colors;
_root.game.def_rows = def_rows;
_root.game.def_list = def_list;
_root.game.loadplace();
}
}
function load_from_file(fname) {
var v1 = new FileStream(fname, 'r');
while (!v1.eof) {
line1 = v1.readLine();
line2 = v1.readLine();
eval(line1) = line2;
}
v1.close();
v1.Release();
}
}
frame 1 {
function exitprogram() {
var v1 = mdm.System.setResolution(origRes[0], origRes[1], origRes[2]);
mdm.Application.exit();
fscommand('quit');
}
function switchScreenMode() {
if (fscreen == false) {
toFullscreen();
fscreen = true;
screenSwitching = true;
} else {
if (fscreen == true) {
toWindowed();
fscreen = false;
}
}
}
function toFullscreen() {
if (OS == 'win') {
mdm.System.DirectX.enable(1024, 768, 32);
} else {
if (OS == 'mac') {
mdm.Forms.thisForm.showFullScreen(true);
var v1 = mdm.System.setResolution(1024, 768, 60);
}
}
mdm.Forms.thisForm.hideCaption(true);
}
function toWindowed() {
if (OS == 'win') {
mdm.System.DirectX.disable();
} else {
if (OS == 'mac') {
mdm.Forms.thisForm.showFullScreen(false);
var v1 = mdm.System.setResolution(origRes[0], origRes[1], origRes[2]);
}
}
mdm.Application.restore();
mdm.Forms.thisForm.hideCaption(false);
}
function gotoWindowed() {
toWindowed();
fscreen = false;
}
function gotoFullscreen() {
toFullscreen();
fscreen = true;
screenSwitching = true;
}
var message = 'Started';
textfield_txt.text = message;
var OS = (System.capabilities.os.substr(0, 3)).toLowerCase();
var origRes = mdm.System.getResolution();
var fscreen = false;
var screenSwitching = false;
mdm.Application.enableExitHandler();
mdm.Application.onAppExit = function () {
var v1 = mdm.System.setResolution(origRes[0], origRes[1], origRes[2]);
mdm.Application.exit();
fscommand('quit');
};
mdm.Application.onAppChangeFocus = function (myObject) {
var v2 = mdm.Application.isMinimized;
fscommand('fullscreen', false);
if (v2 == true) {
_root.fut = false;
_root.game.moving_time_counter.time_counter.stop();
_root.musicplaying = false;
_root.music_movie.music.stop();
} else {
if (fut == false) {
_root.fut = true;
_root.game.moving_time_counter.time_counter.play();
_root.musicplaying = true;
_root.changemusic.musicname = 'music02';
_root.changemusic.gotoAndPlay('start');
}
}
if (fscreen && !screenSwitching) {
toWindowed();
fscreen = false;
screenSwitching = false;
}
};
mdm.Application.onAppMinimize = function () {
_root.fut = false;
_root.game.moving_time_counter.time_counter.stop();
_root.musicplaying = false;
_root.music_movie.music.stop();
};
mdm.Application.onAppRestore = function () {
if (fut == false) {
_root.fut = true;
_root.game.moving_time_counter.time_counter.play();
_root.musicplaying = true;
_root.changemusic.musicname = 'music02';
_root.changemusic.gotoAndPlay('start');
}
};
}
frame 1 {
function toutch(sender) {
tool_tip_timer.gotoAndPlay(2);
tool_tip_timer.sender = sender;
_root.cursor_mc.cursorpic.gotoAndStop('over');
}
function untoutch() {
tool_tip_timer.gotoAndStop(1);
tool_tip._visible = false;
_root.cursor_mc.cursorpic.gotoAndStop('standard');
}
function getstr(instr) {
valtozonev = 'strings_txt.str_' + instr;
sor = eval(valtozonev);
outstr = sor;
if (outstr == undefined) {
outstr = 'NO TRANS: ' + instr;
}
outstr = _root.enterlevag(outstr);
return outstr;
}
function enterlevag(besor) {
valtozas = true;
while (valtozas) {
valtozas = false;
if (besor.charCodeAt(length(besor) - 1) == 10 or besor.charCodeAt(length(besor) - 1) == 13) {
besor = besor.substring(0, length(besor) - 1);
valtozas = true;
}
}
return besor;
}
function blackfade(besor) {
black_fade_panel.action = besor;
black_fade_panel.gotoAndPlay('start');
}
function set_language() {
preloader.start_button.txt = _root.getstr('start_button');
main_panel.credits_button.txt = _root.getstr('credits_button');
main_panel.campaign_button.txt = _root.getstr('campaign_button');
main_panel.main_more_games_button.txt = _root.getstr('main_more_games_button');
main_panel.custom_button.txt = _root.getstr('custom_button');
main_panel.options_button.txt = _root.getstr('options_button');
main_panel.exit_button.txt = _root.getstr('exit_button');
if (_root.taktplayer != undefined and _root.taktplayer != '') {
main_panel.player_button.txt = _root.getstr('wellcome_back') + '\n' + _root.tplayername[_root.taktplayer] + '!';
main_panel.changeplayer_button.txt = _root.getstr('not_you');
} else {
main_panel.player_button.txt = _root.getstr('no_selected_player');
main_panel.changeplayer_button.txt = _root.getstr('here_can');
}
options_panel.back_button.txt = _root.getstr('back_button');
options_panel.options.musicvolumetxt = _root.getstr('music_volume');
options_panel.options.effectvolumetxt = _root.getstr('effect_volume');
options_panel.options.fullscreentxt = _root.getstr('fullscreen');
profile_panel.back_button.txt = _root.getstr('back_button');
profile_panel.new_button.txt = _root.getstr('new_button');
profile_panel.del_button.txt = _root.getstr('del_button');
messagedlg_mc.yes_button.txt = _root.getstr('yes_button');
messagedlg_mc.no_button.txt = _root.getstr('no_button');
new_player_panel.back_button.txt = _root.getstr('back_button');
new_player_panel.create_button.txt = _root.getstr('create_button');
messagebox_mc.close_button.txt = _root.getstr('close_button');
messagebox_mc.undoorrestart_more_games_button.txt = _root.getstr('undoorrestart_more_games_button');
briefing_panel.next_button.txt = _root.getstr('next_button');
briefing_panel.ingamemenu_button.txt = _root.getstr('ingamemenu_button');
briefing_panel.guidance_cb.txt = _root.getstr('guidance');
briefing_panel.briefing_more_games_button.txt = _root.getstr('briefing_more_games_button');
briefing_panel.briefing_free_games_button.txt = _root.getstr('briefing_free_games_button');
briefing_panel.download_button.button.txt = _root.getstr('download_button');
briefing_panel.setupscreen();
game.ingame_panel.ingamemenu_button.txt = _root.getstr('ingamemenu_button');
ingame_menu_panel.more_games_button.txt = _root.getstr('more_games_button');
ingame_menu_panel.main_button.txt = _root.getstr('main_button');
ingame_menu_panel.restart_button.txt = _root.getstr('restart_button');
ingame_menu_panel.back_button.txt = _root.getstr('back_button');
ingame_menu_panel.options_button.txt = _root.getstr('options_button');
game.javito.next_button.txt = _root.getstr('next_button');
parameters_mc.powerstxt = _root.getstr('avaible_powers');
parameters_mc.hiddenamphorastxt = _root.getstr('hidden_amphoras');
parameters_mc.showedamphorastxt = _root.getstr('showed_amphoras');
parameters_mc.packstxt = _root.getstr('packs');
parameters_mc.heighttxt = _root.getstr('height');
parameters_mc.colorstxt = _root.getstr('number_of_colors');
parameters_mc.rowstxt = _root.getstr('number_of_coulds');
parameters_mc.startcustom_button.txt = _root.getstr('startcustom_button');
parameters_mc.amphorastxt = _root.getstr('amphoras_in_game');
parameters_mc.ingamemenu_button.txt = _root.getstr('ingamemenu_button');
parameters_mc.guidance_cb.txt = _root.getstr('guidance');
}
function playsound(sn) {
trace(sn + ' ' + _root.playsound_mc.aktsound);
++_root.playsound_mc.aktsound;
if (_root.playsound_mc.aktsound > 30) {
_root.playsound_mc.aktsound = 1;
}
eval('_root.playsound_mc.soundcontainer' + _root.playsound_mc.aktsound + '.soundname') = sn;
tellTarget (''_root.playsound_mc.soundcontainer' + _root.playsound_mc.aktsound') {
gotoAndPlay('start');
}
}
function showmessage(txt) {
_root.showmessage_panel._visible = true;
_root.showmessage_panel.txt = _root.showmessage_panel.txt + '\r' + txt;
}
function strtoint(sor) {
kiszam = 0;
kiszam += parseInt(sor, 10);
return kiszam;
}
function inttostr(szam) {
kisor = '';
kisor += szam;
return kisor;
}
function messagedlg(uzenet, akcio) {
_root.messagedlg_mc.action = akcio;
_root.messagedlg_mc.txt = _root.getstr(uzenet);
_root.messagedlg_mc.gotoAndPlay('start');
_root.messagedlg_mc._visible = true;
}
function messagebox(uzenet, action) {
_root.messagebox_mc.action = action;
if (action == 'placefinished') {
_root.messagebox_mc.txt = _root.enterlevag(_root.getstr('placefinished1')) + ' ' + _root.enterlevag(_root.getstr('placename' + _root.taktstep[_root.taktplayer])) + _root.enterlevag(_root.getstr('placefinished2')) + ' ' + _root.getstr('placename' + (_root.taktstep[_root.taktplayer] + 7));
} else {
_root.messagebox_mc.txt = _root.getstr(uzenet);
}
_root.messagebox_mc.gotoAndPlay('start');
_root.messagebox_mc._visible = true;
}
function setupcheats() {
van = 0;
eltol = 100;
_root.briefing_panel.bc1mc.gotoAndStop(_root.tcheat1[_root.taktplayer] + 1);
_root.briefing_panel.bc2mc.gotoAndStop(_root.tcheat2[_root.taktplayer] + 1);
_root.briefing_panel.bc3mc.gotoAndStop(_root.tcheat3[_root.taktplayer] + 1);
_root.briefing_panel.bc4mc.gotoAndStop(_root.tcheat4[_root.taktplayer] + 1);
_root.briefing_panel.bc5mc.gotoAndStop(_root.tcheat5[_root.taktplayer] + 1);
_root.briefing_panel.bc6mc.gotoAndStop(_root.tcheat6[_root.taktplayer] + 1);
_root.parameters_mc.bc1mc2.gotoAndStop(_root.tcheat1[_root.taktplayer]);
_root.parameters_mc.bc2mc2.gotoAndStop(_root.tcheat2[_root.taktplayer]);
_root.parameters_mc.bc3mc2.gotoAndStop(_root.tcheat3[_root.taktplayer]);
_root.parameters_mc.bc4mc2.gotoAndStop(_root.tcheat4[_root.taktplayer]);
_root.parameters_mc.bc5mc2.gotoAndStop(_root.tcheat5[_root.taktplayer]);
_root.parameters_mc.bc6mc2.gotoAndStop(_root.tcheat6[_root.taktplayer]);
if (_root.tcheat1[_root.taktplayer] == 0) {
_root.parameters_mc.bc1mc2._visible = false;
}
if (_root.tcheat2[_root.taktplayer] == 0) {
_root.parameters_mc.bc2mc2._visible = false;
}
if (_root.tcheat3[_root.taktplayer] == 0) {
_root.parameters_mc.bc3mc2._visible = false;
}
if (_root.tcheat4[_root.taktplayer] == 0) {
_root.parameters_mc.bc4mc2._visible = false;
}
if (_root.tcheat5[_root.taktplayer] == 0) {
_root.parameters_mc.bc5mc2._visible = false;
}
if (_root.tcheat6[_root.taktplayer] == 0) {
_root.parameters_mc.bc6mc2._visible = false;
}
if (_root.tcheat1[_root.taktplayer] > 0) {
++van;
_root.game.cheats.c1mc._x = (van - 1) * eltol;
_root.game.cheats.c1mc._visible = true;
_root.game.cheats.c1mc.figura.gotoAndStop(_root.tcheat1[_root.taktplayer]);
} else {
_root.game.cheats.c1mc._visible = false;
}
if (_root.tcheat2[_root.taktplayer] > 0) {
++van;
_root.game.cheats.c2mc._x = (van - 1) * eltol;
_root.game.cheats.c2mc._visible = true;
_root.game.cheats.c2mc.figura.gotoAndStop(_root.tcheat2[_root.taktplayer]);
} else {
_root.game.cheats.c2mc._visible = false;
}
if (_root.tcheat3[_root.taktplayer] > 0) {
++van;
_root.game.cheats.c3mc._x = (van - 1) * eltol;
_root.game.cheats.c3mc._visible = true;
_root.game.cheats.c3mc.figura.gotoAndStop(_root.tcheat3[_root.taktplayer]);
} else {
_root.game.cheats.c3mc._visible = false;
}
if (_root.tcheat4[_root.taktplayer] > 0) {
++van;
_root.game.cheats.c4mc._x = (van - 1) * eltol;
_root.game.cheats.c4mc._visible = true;
_root.game.cheats.c4mc.figura.gotoAndStop(_root.tcheat4[_root.taktplayer]);
} else {
_root.game.cheats.c4mc._visible = false;
}
if (_root.tcheat5[_root.taktplayer] > 0) {
++van;
_root.game.cheats.c5mc._x = (van - 1) * eltol;
_root.game.cheats.c5mc._visible = true;
} else {
_root.game.cheats.c5mc._visible = false;
}
if (_root.tcheat6[_root.taktplayer] > 0) {
++van;
_root.game.cheats.c6mc._x = (van - 1) * eltol;
_root.game.cheats.c6mc._visible = true;
} else {
_root.game.cheats.c6mc._visible = false;
}
_root.game.cheats._x = (1024 - van * eltol) / 2 + 30;
if (_root.game.javito._currentframe < 3) {
_root.csaj_mc._alpha = 100;
}
_root.csaj_mc.p1_mc._visible = false;
_root.csaj_mc.p2_mc._visible = false;
_root.csaj_mc.p3_mc._visible = false;
_root.csaj_mc.p4_mc._visible = false;
_root.csaj_mc.p5_mc._visible = false;
_root.csaj_mc.p6_mc._visible = false;
_root.csaj_mc.p7_mc._visible = false;
_root.csaj_mc.p8_mc._visible = false;
_root.csaj_mc.p9_mc._visible = false;
_root.csaj_mc.p10_mc._visible = false;
_root.csaj_mc.p11_mc._visible = false;
if (_root.tcheat1[_root.taktplayer] > 0) {
_root.csaj_mc.p1_mc._visible = true;
}
if (_root.tcheat1[_root.taktplayer] > 1) {
_root.csaj_mc.p2_mc._visible = true;
}
if (_root.tcheat1[_root.taktplayer] > 2) {
_root.csaj_mc.p3_mc._visible = true;
}
if (_root.tcheat2[_root.taktplayer] > 0) {
_root.csaj_mc.p4_mc._visible = true;
}
if (_root.tcheat2[_root.taktplayer] > 1) {
_root.csaj_mc.p5_mc._visible = true;
}
if (_root.tcheat3[_root.taktplayer] > 0) {
_root.csaj_mc.p6_mc._visible = true;
}
if (_root.tcheat3[_root.taktplayer] > 1) {
_root.csaj_mc.p7_mc._visible = true;
}
if (_root.tcheat4[_root.taktplayer] > 0) {
_root.csaj_mc.p8_mc._visible = true;
}
if (_root.tcheat4[_root.taktplayer] > 1) {
_root.csaj_mc.p9_mc._visible = true;
}
if (_root.tcheat5[_root.taktplayer] > 0) {
_root.csaj_mc.p10_mc._visible = true;
}
if (_root.tcheat6[_root.taktplayer] > 0) {
_root.csaj_mc.p11_mc._visible = true;
}
}
var myListener1 = new Object();
myListener1.onKeyDown = function () {
keycode = Key.getAscii();
thekey = chr(keycode);
if (_root.pressedkey != thekey) {
if (keycode == 27) {
if (_root.introcont2._visible == true) {
_root.blackfade('main');
}
if (_root.game._visible == true and _root.game.javito._currentframe == 2) {
_root.fut = false;
_root.game.moving_time_counter.time_counter.stop();
_root.ingame_menu_panel.gotoAndPlay(1);
_root.ingame_menu_panel._visible = true;
}
if (_root.main_panel._visible == true) {
}
if (_root.briefing_panel._visible == true) {
_root.ingame_menu_panel.gotoAndPlay(1);
_root.ingame_menu_panel._visible = true;
}
if (_root.parameters_mc._visible == true) {
_root.ingame_menu_panel.gotoAndPlay('start2');
_root.ingame_menu_panel._visible = true;
}
}
if (thekey == '1' and _root.game._visible == true and _root.tplayername[_root.taktplayer] == 'TZBViza') {
++tcheat1[_root.taktplayer];
if (tcheat1[_root.taktplayer] > 3) {
tcheat1[_root.taktplayer] = 0;
}
}
if (thekey == '2' and _root.game._visible == true and _root.tplayername[_root.taktplayer] == 'TZBViza') {
++tcheat2[_root.taktplayer];
if (tcheat2[_root.taktplayer] > 2) {
tcheat2[_root.taktplayer] = 0;
}
}
if (thekey == '3' and _root.game._visible == true and _root.tplayername[_root.taktplayer] == 'TZBViza') {
++tcheat3[_root.taktplayer];
if (tcheat3[_root.taktplayer] > 2) {
tcheat3[_root.taktplayer] = 0;
}
}
if (thekey == '4' and _root.game._visible == true and _root.tplayername[_root.taktplayer] == 'TZBViza') {
++tcheat4[_root.taktplayer];
if (tcheat4[_root.taktplayer] > 2) {
tcheat4[_root.taktplayer] = 0;
}
}
if (thekey == '5' and _root.game._visible == true and _root.tplayername[_root.taktplayer] == 'TZBViza') {
++tcheat5[_root.taktplayer];
if (tcheat5[_root.taktplayer] > 1) {
tcheat5[_root.taktplayer] = 0;
}
}
if (thekey == '6' and _root.game._visible == true and _root.tplayername[_root.taktplayer] == 'TZBViza') {
++tcheat6[_root.taktplayer];
if (tcheat6[_root.taktplayer] > 1) {
tcheat6[_root.taktplayer] = 0;
}
}
if (thekey == '9' and _root.game._visible == true and _root.tplayername[_root.taktplayer] == 'TZBViza') {
_root.game.aktcrd = 0;
j = 1;
while (j <= _root.game.def_rows) {
eval('_root.game.cardrows.cardrow' + j + '.elemszam') = 0;
++j;
}
_root.game.helyzetelemzes();
}
_root.pressedkey = thekey;
_root.delpressedkey.gotoAndPlay('start');
}
_root.setupcheats();
};
Key.addListener(myListener1);
}
movieClip 282 {
frame 1 {
stop();
}
frame 25 {
_parent.tool_tip.txt = _root.getstr(sender + '_tooltip');
_parent.tool_tip._x = _xmouse + 5 + _x;
_parent.tool_tip._y = _ymouse + 5 + _y;
_parent.tool_tip._visible = true;
_parent.tool_tip.gotoAndPlay(1);
}
}
movieClip 285 {
frame 2 {
stop();
}
frame 25 {
_root.set_language();
gotoAndStop(2);
}
}
movieClip 288 {
frame 1 {
var effect_sound = new Sound(_root.playsound_mc);
stop();
}
frame 10 {
effect_sound.attachSound(soundname);
}
frame 11 {
var mySoundTransformObject = new Object();
mySoundTransformObject.ll = _root.effect_volume;
mySoundTransformObject.lr = _root.effect_volume;
mySoundTransformObject.rr = 0;
mySoundTransformObject.rl = 0;
effect_sound.setTransform(mySoundTransformObject);
effect_sound.start(0, 1);
}
frame 60 {
gotoAndStop(1);
}
}
movieClip 289 {
frame 1 {
aktsound = 0;
}
frame 2 {
stop();
}
}
movieClip 291 {
frame 1 {
var music = new Sound();
}
frame 2 {
stop();
}
}
movieClip 294 {
frame 2 {
stop();
}
frame 10 {
hangero = _root.music_volume;
hangero2 = hangero;
}
frame 11 {
hangero2 -= 3;
if (hangero2 < 0) {
hangero2 = 0;
}
var mySoundTransformObject = new Object();
mySoundTransformObject.ll = hangero2;
mySoundTransformObject.lr = hangero2;
mySoundTransformObject.rr = 0;
mySoundTransformObject.rl = 0;
_root.music_movie.music.setTransform(mySoundTransformObject);
}
frame 12 {
if (hangero2 > 0) {
gotoAndPlay(11);
}
}
frame 13 {
_root.musicplaying = true;
_root.music_movie.music.stop();
_root.music_movie.music.attachSound(musicname);
var mySoundTransformObject = new Object();
mySoundTransformObject.ll = _root.music_volume / 2;
mySoundTransformObject.lr = _root.music_volume / 2;
mySoundTransformObject.rr = _root.music_volume / 2;
mySoundTransformObject.rl = _root.music_volume / 2;
_root.music_movie.music.setTransform(mySoundTransformObject);
}
frame 18 {
_root.music_movie.music.start(1, 200);
var mySoundTransformObject = new Object();
mySoundTransformObject.ll = _root.music_volume / 2;
mySoundTransformObject.lr = _root.music_volume / 2;
mySoundTransformObject.rr = _root.music_volume / 2;
mySoundTransformObject.rl = _root.music_volume / 2;
_root.music_movie.music.setTransform(mySoundTransformObject);
gotoAndStop(2);
}
}
movieClip 296 {
frame 2 {
stop();
}
frame 12 {
_root.pressedkey = '';
gotoAndStop(2);
}
}
movieClip 298 {
frame 2 {
stop();
}
frame 10 {
hangero = _root.music_volume;
hangero2 = hangero;
}
frame 11 {
var mySoundTransformObject = new Object();
mySoundTransformObject.ll = hangero2;
mySoundTransformObject.lr = hangero2;
mySoundTransformObject.rr = 0;
mySoundTransformObject.rl = 0;
_root.music_movie.music.setTransform(mySoundTransformObject);
hangero2 -= 3;
}
frame 12 {
if (hangero2 > 0) {
gotoAndPlay(11);
}
}
frame 13 {
_root.musicplaying = false;
_root.music_movie.music.stop();
_root.music_volume = hangero;
var mySoundTransformObject = new Object();
mySoundTransformObject.ll = _root.music_volume / 2;
mySoundTransformObject.lr = _root.music_volume / 2;
mySoundTransformObject.rr = _root.music_volume / 2;
mySoundTransformObject.rl = _root.music_volume / 2;
_root.music_movie.music.setTransform(mySoundTransformObject);
gotoAndStop(2);
}
}
movieClip 300 {
frame 2 {
stop();
}
frame 35 {
gotoAndStop(2);
}
}
movieClip 303 {
frame 1 {
str_campaign_button = 'Campaign mode';
str_campaign_button_tooltip = 'Story mode';
str_custom_button = 'Custom mode';
str_custom_button_tooltip = 'Change the parameters of your game';
str_endless_button = 'Endless mode';
str_endless_button_tooltip = 'Just relax...';
str_options_button = 'Options';
str_options_button_tooltip = 'Language, screen and sound options';
str_exit_button = 'Exit';
str_exit_button_tooltip = 'Exits game';
str_flag_hu_tooltip = 'Magyar nyelvre vált';
str_flag_eng_tooltip = 'Select English language';
str_back_button = 'Back';
str_back_button_tooltip = 'Back to previous menu';
str_music_volume = 'Music volume';
str_effect_volume = 'Effects volume';
str_fullscreen = 'Full screen';
str_wellcome_back = 'Welcome ';
str_player_button_tooltip = 'Player name';
str_not_you = 'If this is not you, click here!';
str_changeplayer_button_tooltip = 'Change player';
str_no_selected_player = 'There is no player selected';
str_here_can = 'Create a new player profile';
str_new_button = 'New';
str_new_button_tooltip = 'Creates a new player profile';
str_del_button = 'Delete';
str_del_button_tooltip = 'Deletes the selected player profile';
str_yes_button = 'Yes';
str_yes_button_tooltip = 'Answer yes';
str_no_button = 'No';
str_no_button_tooltip = 'Answer no';
str_delete_player = 'Delete selected player?';
str_create_button = 'Create';
str_create_button_tooltip = 'Creates new player profile';
str_no_name_error = 'You must enter a name for the profile!';
str_illegal_caracter_error = 'The \'?\' and \'*\' characters are not allowed in the profile name!';
str_close_button = 'Close';
str_close_button_tooltip = 'Close this window';
str_name_already_exists = 'This name already exists!';
str_exit_game = 'Are you sure you want to exit?';
str_are_you_sure = 'Are you sure you want to restart the current game?';
str_next_button = 'Next';
str_next_button_tooltip = 'Next step';
str_ingamemenu_button = 'Menu';
str_ingamemenu_button_tooltip = 'Opens the in-game menu';
str_main_button = 'Main menu';
str_main_button_tooltip = 'Go back to the main menu';
str_undo_button_tooltip = 'Undo';
str_help_button_tooltip = 'Hint';
str_newcard_button_tooltip = 'Rains new amphoras';
str_coming_soon = 'Coming soon!';
str_restart_button = 'Restart';
str_restart_button_tooltip = 'Restarts current level';
str_coming_soon_endless = 'This game mode offers an absolutely stress-free experience - there are no time limits and no losing conditions - perfectly suitable for meditative relaxation. \n Not available in this demonstration version.';
str_coming_soon_custom = 'In this game mode the player is able to customize every aspect of the gameplay to their liking: the number of colours, the height of the columns, the size of the stack, etc. \n Not available in this demonstration version.';
str_statistics = 'Statistics';
str_last_game = 'Last game';
str_average_so_far = 'Average so far';
str_best_so_far = 'Best so far';
str_worst_so_far = 'Worst so far';
str_time = 'Time';
str_move = 'Moves';
str_undos = 'Undos';
str_cardup_msg = 'Click on a column and the topmost hidden amphora reveals its contents, or click on this panel if you want to keep this bonus for later!';
str_rowup_msg = 'Click on a column, and all the hidden amphoras in it reveal their contents, or click on this panel if you want to keep this bonus for later!';
str_allup_msg = 'Click on any amphora to reveal the contents of every hidden amphora, or click on this panel if you want to keep this bonus for later!';
str_changecards_msg = 'You can exchange two of the topmost amphoras. Click on the first one now, or click on this panel if you want to keep this bonus for later!';
str_changecards_msg2 = 'Now choose the column with the topmost amphora that you want to exchange, or click on this panel if you have changed your mind!';
str_changecards2_msg = 'You can exchange two, non-hidden, amphoras. Click on the first one now, or click on this panel, if you want to keep this bonus for later!';
str_changecards2_msg2 = 'Now choose the amphora to exchange it with, or click on this panel if you have changed your mind!';
str_oneillegalmoving_msg = 'You can move one topmost amphora to the top of any column, regardless of its value. If you want to keep this bonus for later, click on this panel!';
str_oneillegalmoving_msg2 = 'Now you can place it on any column!';
str_illegalmoving_msg = 'You can move an ordered coloumn of amphoras to the top of any column. If you want to keep this bonus for later, click on this panel!';
str_illegalmoving_msg2 = 'Now you can place it on any column!';
str_cardback_msg = 'Click on a column: the topmost amphora will be moved back to the amphora stack. If you want to keep this bonus for later, click on this panel!';
str_rowback_msg = 'Click on a column: all the amphora in it will be moved back to the amphora stack. If you want to keep this bonus for later, click on this panel!';
str_shuffle_msg = 'Click on any amphora, and all the amphoras not already in order will be shuffled around, or click on this panel if you have changed your mind!';
str_illegalrowmoving_msg = 'You can move a column of amphoras, even if they are not in order, but you can only place it on a column with a topmost amphora that has a value one lower then the bottommost amphora of the column that you are moving. If you want to keep this bonus for later, click on this panel!';
str_illegalrowmoving_msg2 = 'Now you can place it on any column!';
str_select_needed = 'Click on any of the statues on the left to reveal the Power it grants you, if purchased.';
str_bronze_owl = 'Athena\'s Bronze Owl';
str_bronze_owl_desc = 'Reveals a hidden amphora.';
str_silver_owl = 'Athena\'s Silver Owl';
str_silver_owl_desc = 'Reveals all the hidden amphoras in a column.';
str_gold_owl = 'Athena\'s Golden Owl';
str_gold_owl_desc = 'Reveals all hidden amphoras in play.';
str_silver_dove = 'Aphrodite\'s Silver Dove';
str_silver_dove_desc = 'Exchanges two of the topmost amphoras.';
str_gold_dove = 'Aphrodite\'s Golden Dove';
str_gold_dove_desc = 'Exchanges any two revealed amphoras.';
str_silver_sandal = 'Hermes\' Silver Winged Boots';
str_silver_sandal_desc = 'Moves an amphora to any column, regardless of its value.';
str_gold_sandal = 'Hermes\' Golden Winged Boots';
str_gold_sandal_desc = 'Moves an ordered amphora column to any other column, regardless of its value.';
str_silver_boar = 'Ares\' Silver Boar';
str_silver_boar_desc = 'Moves a column\'s topmost amphora back to the amphora stack.';
str_gold_boar = 'Ares\' Golden Boar';
str_gold_boar_desc = 'Moves all of a column\'s revealed amphora back to the amphora stack.';
str_gold_grape = 'Dionysus\' Grape';
str_gold_grape_desc = 'Shuffles any amphoras which are not already in order.';
str_gold_harpoon = 'Poseidon\'s Trident';
str_gold_harpoon_desc = 'Moves a column of amphoras, even if they are not in order, to a column with a topmost amphora that has a value one lower than the bottommost amphora of the column that you are moving.';
str_not_enought_money = 'You don\'t have enough money to purchase this Power!';
str_price = 'Price';
str_buy = 'Buy';
str_buy_button_tooltip = 'Buy the selected Power';
str_tut01_title = 'GAMEPLAY';
str_tut01_atxt = ' Clear the table of all amphoras. The amphoras will disappear if they are arranged into ascending order. \n - You can only put an amphora into another one if it has a value exactly one higher. \n - Move them around by dragging them with the mouse. You can move multiple amphoras together, provided that they are already in order.';
str_tut01_txt = 'There are absolutely no restrictions on using these help functions - go ahead and use them as you wish!';
str_tut01_hint = 'The \'Hint\' button will show you one legal move.';
str_tut01_undo = 'The \'Undo\' button allows you to step back in time. ';
str_tut01_restart = 'Restart the level from the in-game menu if you get stuck.';
str_tut02_title = 'HIDDEN AMPHORA';
str_tut02_atxt = '- Some amphoras are hidden in clay. Clear all of the amphoras above them to reveal them. \n - You can place any amphora on an empty cloud.';
str_tut03_title = 'AMPHORA STACK';
str_tut03_atxt = 'The amphora stack, in the lower right-hand corner of the screen, must also be empty in order for you to complete a level. Clicking on the stack will rain some of its amphoras into play.';
str_tut04_title = 'MULTIPLE COLOURS';
str_tut04_atxt = '- Columns can be created, and cleared, using amphoras of different colours. \n - BUT you can\'t move multi-coloured columns, even if they are in order. \n - The small flag on the rim of the amphoras indicates a movable amphora.';
str_tut05_title = 'PREVIEW LEVELS';
str_tut05_atxt = 'The next levels are from the latter part of the game. In the final game the difficulty curve will be much shallower. \n You can enable Powers, to test them, with keys 1-6. Press the keys multiple times to set the level of the enabled bonuses.';
str_tut_ok_btn = 'Ok';
str_intro_nextbtn_txt = 'Next';
str_intro_dlg01 = 'Oh, mighty Zeus! \n We will hold games in your honour, where the best sportsmen of all disciplines will match themselves against one another!';
str_intro_dlg02 = 'Cool!';
str_intro_dlg03 = '...I was getting bored anyway...';
str_intro_dlg04 = 'I accept your offer. I wait eagerly!';
str_intro_dlg05 = 'HOORAY ! ! ! !';
str_intro_dlg06 = 'Some months later...';
str_intro_dlg07 = 'Everything is finished, tomorrow we can start the Olympics!';
str_intro_dlg08 = 'But let\'s celebrate tonight with the aid of Dionysus!';
str_intro_dlg09 = 'The next day...';
str_intro_dlg10 = 'What the heck?...';
str_intro_dlg11 = 'I suppose I\'ll have to go and check this out for myself...';
str_intro_dlg12 = '?!';
str_intro_dlg13 = 'Where';
str_intro_dlg14 = 'are';
str_intro_dlg15 = 'my';
str_intro_dlg16 = 'Olympics!?';
str_intro_dlg17 = '...burp!...';
str_intro_dlg18 = 'Wasters!';
str_intro_dlg19 = 'You are in no condition to organise the Olympics! \n We need professional help!';
str_intro_dlg20 = 'According to my friends, you are the best party coordinator in Greece.';
str_intro_dlg21 = 'You have the honour of tidying up what these amateurs have ruined...';
str_intro_dlg22 = 'The Olympics!';
str_intro_dlg23 = 'But I only organise weddings and barmitsvas!';
str_intro_dlg24 = 'Never mind, you will soon get the hang of it!';
str_intro_dlg25 = 'Olympus';
str_avaible_powers = 'Avaible Powers:';
str_hidden_amphoras = 'Hidden amphoras:';
str_showed_amphoras = 'Revealed amphoras:';
str_packs = 'Amphora packs:';
str_height = 'Target coloumn height:';
str_number_of_colors = 'Number of colors:';
str_number_of_coulds = 'Number of clouds:';
str_amphoras_in_game = 'Amphoras in game:';
str_minusgomb_tooltip = 'Decreases the amount';
str_plusgomb_tooltip = 'Increases the amount';
str_continue_custom = 'Continue game?';
str_startcustom_button = 'Start';
str_startcustom_button_tooltip = 'Starts the game';
str_guidancecheckbox_tooltip = 'Enables or disables guidance functions during the game';
str_guidance = 'Guidance';
str_too_many_player = 'Max 30 save slot available! Please delete one before creating a new profile!';
str_colorsign_tooltip = 'Changing colors';
str_end_of_game = 'Congratulations! You succesfully renovated all the facilities of the Olympic Games, and managed to organize the opening ceremony.';
str_restart_game = 'You have succesfully finished the campiagn mode last time. Would you like to start over?';
str_undorrestart = 'If you feel that you are stuck, feel free to undo back (it has unlimited steps, and cost nothing!), or simply restart the level in the ingame menu.';
str_credits_button = 'Credits';
str_credits_button_tooltip = 'Shows the credits list';
str_firstcustom = 'In this screen you can set up your own customized level. Everything can be set up, from the number of colors to the height of the coloumns... When you feel you are ready just click on the \'Start\' button, and you can play your level!';
str_firstbuy = 'The Power you just bought will be displayed at the bottom of the screen ingame. If you want to use it, wait until fills up completly, then click on it and follow the onscreen instructions!';
str_placefinished1 = 'Congratulation! You completly renovated the';
str_placefinished2 = '! The next scene will be the';
str_placename7 = 'Stadium Square';
str_placename14 = 'Sports Hall';
str_placename21 = 'Stadium';
str_placename28 = 'Box Hall';
str_placename35 = 'Olympic Village';
str_placename42 = 'Sports Bay';
str_placename49 = 'Winners Podium';
str_placename56 = 'Opening Ceremony';
str_credits = '<font size=\'20\'><br>Design, project management<br><font size=\'24\'><b>Zoltán Vigh</b></font><br><br>Programming<br><font size=\'24\'><b>CsabaBencsik</b></font><br><br>Art<br><font size=\'24\'><b>Zsolt Kósa</b><br><b>Richárd Vass</b></font><br><br>Music<br><font size=\'24\'><b>Secta Chameleon</b></font><br><br>Language consultation<br><font size=\'24\'><b>Chris Johnson</b></font><br><br><b>Tonuzaba Entertainment Kft.</b><br><br><font size=\'14\'>Click anywhere to go back!';
str_sponsorlogo1_button_tooltip = 'Play more games';
str_main_more_games_button = 'More games';
str_main_more_games_button_tooltip = 'More games';
str_facebook_button_tooltip = 'Facebook';
str_twitter_button_tooltip = 'Twitter';
str_sponsorlogo2_button_tooltip = 'Play more games';
str_more_games_button = 'More games';
str_more_games_button_tooltip = 'Play more games';
str_sponsorlogo3_button_tooltip = 'Play more games';
str_briefing_more_games_button = 'Play more games';
str_briefing_more_games_button_tooltip = 'Play more games';
str_briefing_free_games_button = 'Play free games';
str_briefing_free_games_button_tooltip = 'Play free games';
str_download_button = 'download';
str_download_button_tooltip = 'Download this game';
str_start_button = 'Continue';
str_start_button_tooltip = 'Click to continue';
}
frame 9 {
stop();
}
frame 10 {
trace('english');
str_campaign_button = 'Campaign mode';
str_campaign_button_tooltip = 'Campaign mode';
str_custom_button = 'Level Editor';
str_custom_button_tooltip = 'Change the parameters of your game';
str_endless_button = 'Endless mode';
str_endless_button_tooltip = 'Just relax...';
str_options_button = 'Options';
str_options_button_tooltip = 'Sound options';
str_exit_button = 'Exit';
str_exit_button_tooltip = 'Exits game';
str_back_button = 'Back';
str_back_button_tooltip = 'Back to previous menu';
str_music_volume = 'Music volume';
str_effect_volume = 'Effects volume';
str_fullscreen = 'Full screen';
str_wellcome_back = 'Welcome';
str_player_button_tooltip = 'Player name';
str_not_you = 'If this is not you, click here!';
str_changeplayer_button_tooltip = 'Change player';
str_no_selected_player = 'No player selected';
str_here_can = 'Create a new player profile';
str_new_button = 'New';
str_new_button_tooltip = 'Creates a new player profile';
str_del_button = 'Delete';
str_del_button_tooltip = 'Deletes the selected player profile';
str_yes_button = 'Yes';
str_yes_button_tooltip = 'Answer yes';
str_no_button = 'No';
str_no_button_tooltip = 'Answer no';
str_delete_player = 'Delete selected player?';
str_create_button = 'Create';
str_create_button_tooltip = 'Creates a new player profile';
str_no_name_error = 'You must enter a name for the profile!';
str_illegal_caracter_error = 'The \'?\' and \'*\' characters are not allowed in the profile name!';
str_close_button = 'Close';
str_close_button_tooltip = 'Close this window';
str_name_already_exists = 'This name already exists!';
str_exit_game = 'Are you sure you want to exit?';
str_are_you_sure = 'Are you sure you want to restart the current game?';
str_next_button = 'Next';
str_next_button_tooltip = 'Next step';
str_ingamemenu_button = 'Menu';
str_ingamemenu_button_tooltip = 'Opens the in-game menu';
str_main_button = 'Main menu';
str_main_button_tooltip = 'Go back to the main menu';
str_undo_button_tooltip = 'Undo';
str_help_button_tooltip = 'Hint';
str_newcard_button_tooltip = 'Rains new amphoras';
str_coming_soon = 'Coming soon!';
str_restart_button = 'Restart';
str_restart_button_tooltip = 'Restarts current level';
str_coming_soon_endless = 'This game mode offers an absolutely stress-free experience - There are no time limits and no losing conditions - perfectly suitable for meditative relaxation.\n Not available in this version.';
str_coming_soon_custom = 'In this game mode the player is able to customize every aspect of the gameplay to their liking: the number of colors, the height of the columns, the size of the stack, etc.\n Not available in this version.';
str_statistics = 'Statistics';
str_last_game = 'Last game';
str_average_so_far = 'Average so far';
str_best_so_far = 'Best so far';
str_worst_so_far = 'Worst so far';
str_time = 'Time';
str_move = 'Moves';
str_undos = 'Undos';
str_cardup_msg = 'Click on a column and the topmost hidden amphora reveals its contents, or click on this panel if you want to keep this bonus for later!';
str_rowup_msg = 'Click on a column, and all the hidden amphoras in it reveal their contents, or click on this panel if you want to keep this bonus for later!';
str_allup_msg = 'Click on any amphora to reveal the contents of every hidden amphora, or click on this panel if you want to keep this bonus for later!';
str_changecards_msg = 'You can exchange two of the topmost amphoras. Click on the first one now, or click on this panel if you want to keep this bonus for later!';
str_changecards_msg2 = 'Now choose the column with the topmost amphora that you want to exchange, or click on this panel if you have changed your mind!';
str_changecards2_msg = 'You can exchange two, non-hidden, amphoras. Click on the first one now, or click on this panel, if you want to keep this bonus for later!';
str_changecards2_msg2 = 'Now choose the amphora to exchange it with, or click on this panel if you changed your mind!';
str_oneillegalmoving_msg = 'You can move one topmost amphora to the top of any column, regardless of its value. If you want to keep this bonus for later, click on this panel!';
str_oneillegalmoving_msg2 = 'Now you can place it on any column!';
str_illegalmoving_msg = 'You can move an ordered column of amphoras to the top of any column. If you want to keep this bonus for later, click on this panel!';
str_illegalmoving_msg2 = 'Now you can place it on any column!';
str_cardback_msg = 'Click on a column: the topmost amphora will be moved back to the amphora stack. If you want to keep this bonus for later, click on this panel!';
str_rowback_msg = 'Click on a column: all the amphora in it will be moved back to the amphora stack. If you want to keep this bonus for later, click on this panel!';
str_shuffle_msg = 'Click on any amphora, and all the amphoras not already in order will be shuffled around, or click on this panel if you have changed your mind!';
str_illegalrowmoving_msg = 'You can move a column of amphoras, even if they are not in order, but you can only place it on a column with a topmost amphora that has a value one lower than the bottommost amphora of the column that you are moving. If you want to keep this bonus for later, click on this panel!';
str_illegalrowmoving_msg2 = 'Now you can place it on any column!';
str_select_needed = 'Click on any of the statues on the left to reveal the Power it grants, if purchased.';
str_bronze_owl = 'Athena\'s Bronze Owl';
str_bronze_owl_desc = 'Reveals a hidden amphora.';
str_silver_owl = 'Athena\'s Silver Owl';
str_silver_owl_desc = 'Reveals all the hidden amphoras in a column.';
str_gold_owl = 'Athena\'s Golden Owl';
str_gold_owl_desc = 'Reveals all hidden amphoras in play.';
str_silver_dove = 'Aphrodite\'s Silver Dove';
str_silver_dove_desc = 'Exchanges two of the topmost amphoras.';
str_gold_dove = 'Aphrodite\'s Golden Dove';
str_gold_dove_desc = 'Exchanges any two revealed amphoras.';
str_silver_sandal = 'Hermes\' Silver Winged Boots';
str_silver_sandal_desc = 'Moves an amphora to any column, regardless of its value.';
str_gold_sandal = 'Hermes\' Golden Winged Boots';
str_gold_sandal_desc = 'Moves an ordered amphora column to any other column, regardless of its value.';
str_silver_boar = 'Ares\' Silver Boar';
str_silver_boar_desc = 'Moves a column\'s topmost amphora back to the amphora stack.';
str_gold_boar = 'Ares\' Golden Boar';
str_gold_boar_desc = 'Moves all of a column\'s revealed amphora back to the amphora stack.';
str_gold_grape = 'Dionysus\' Grape';
str_gold_grape_desc = 'Shuffles any amphoras which are not already in order.';
str_gold_harpoon = 'Poseidon\'s Trident';
str_gold_harpoon_desc = 'Moves a column of amphoras, even if they are not in order, to a column with a topmost amphora that has a value one lower than the bottommost amphora of the column that you are moving.';
str_not_enought_money = 'You don\'t have enough money to purchase this Power!';
str_price = 'Price';
str_buy = 'Buy';
str_buy_button_tooltip = 'Buy the selected Power';
str_tut01_title = 'GAMEPLAY';
str_tut01_atxt = 'Clear the table of all amphoras. The amphoras will disappear if they are arranged into ascending order. \n - You can only put an amphora into another one if it has a value exactly one higher. \n - Move them around by dragging them with the mouse. You can move multiple amphoras together, provided that they are already in order.';
str_tut01_txt = 'There are absolutely no restrictions on using these help functions - go ahead and use them as you wish!';
str_tut01_hint = 'The \'Hint\' button will show you one legal move.';
str_tut01_undo = 'The \'Undo\' button allows you to step back in time.';
str_tut01_restart = 'Restart the level from the in-game menu if you\'re stuck.';
str_tut02_title = 'HIDDEN AMPHORA';
str_tut02_atxt = '- Some amphoras are hidden in clay. Clear all of the amphoras above them to reveal them. \n - You can place any amphora on an empty cloud.';
str_tut03_title = 'AMPHORA STACK';
str_tut03_atxt = 'The amphora stack, in the lower right-hand corner of the screen, must also be empty in order for you to complete a level. Clicking on the stack will rain some of its amphoras into play.';
str_tut04_title = 'MULTIPLE COLOURS';
str_tut04_atxt = '- Columns can be created, and cleared, using amphoras of different colors. \n - BUT you can\'t move multi-colored columns, even if they are in order. \n - The small flag on the rim of the amphoras indicates a movable amphora.';
str_tut05_title = 'PREVIEW LEVELS';
str_tut05_atxt = 'The next levels are from the latter part of the game. In the final game the difficulty curve will be much shallower. \n You can enable Powers, to test them, with keys 1-6. Press the keys multiple times to set the level of the enabled bonuses.';
str_tut_ok_btn = 'Ok';
str_intro_nextbtn_txt = 'Next';
str_intro_dlg01 = 'Oh, mighty Zeus! \n We will hold games in your honor, where the best sportsmen of all disciplines will match themselves against one another!';
str_intro_dlg02 = 'Cool!';
str_intro_dlg03 = '...I was getting bored anyway...';
str_intro_dlg04 = 'I accept your offer. I wait eagerly!';
str_intro_dlg05 = 'HOORAY ! ! ! !';
str_intro_dlg06 = 'Some months later...';
str_intro_dlg07 = 'Everything is finished, tomorrow we can start the Olympics!';
str_intro_dlg08 = 'But let\'s celebrate tonight with the aid of Dionysus!';
str_intro_dlg09 = 'The next day...';
str_intro_dlg10 = 'What the heck?...';
str_intro_dlg11 = 'I suppose I\'ll have to go and check this out for myself...';
str_intro_dlg12 = '?!';
str_intro_dlg13 = 'Where';
str_intro_dlg14 = 'are';
str_intro_dlg15 = 'my';
str_intro_dlg16 = 'Olympics!?';
str_intro_dlg17 = '...burp!...';
str_intro_dlg18 = 'Wasters!';
str_intro_dlg19 = 'You are in no condition to organize the Olympics! \n We need professional help!';
str_intro_dlg20 = 'According to my friends, you are the best party coordinator in Greece.';
str_intro_dlg21 = 'You have the honor of tidying up what these amateurs have ruined...';
str_intro_dlg22 = 'The Olympics!';
str_intro_dlg23 = 'But I only organize weddings and barmitsvas!';
str_intro_dlg24 = 'Never mind, you will soon get the hang of it!';
str_intro_dlg25 = 'Olympus';
str_avaible_powers = 'Available Powers:';
str_hidden_amphoras = 'Hidden amphoras:';
str_showed_amphoras = 'Revealed amphoras:';
str_packs = 'Amphora packs:';
str_height = 'Target column height:';
str_number_of_colors = 'Number of colors:';
str_number_of_coulds = 'Number of clouds:';
str_amphoras_in_game = 'Amphoras in game:';
str_minusgomb_tooltip = 'Decreases the amount';
str_plusgomb_tooltip = 'Increases the amount';
str_continue_custom = 'Continue game?';
str_startcustom_button = 'Start';
str_startcustom_button_tooltip = 'Starts the game';
str_guidancecheckbox_tooltip = 'Enables or disables guidance functions during the game';
str_guidance = 'Guidance';
str_too_many_player = 'Max 30 save slot available! Please delete one before creating a new profile!';
str_colorsign_tooltip = 'Changing colors';
str_end_of_game = 'Congratulations! You successfully renovated all the facilities of the Olympic Games, and managed to organize the opening ceremony.';
str_restart_game = 'You have successfully finished the campaign mode last time. Would you like to start over?';
str_undorrestart = 'If you feel that you are stuck, feel free to undo back (it has unlimited steps, and cost nothing!), or simply restart the level in the in-game menu.';
str_credits_button = 'Credits';
str_credits_button_tooltip = 'Shows the credits list';
str_firstcustom = 'In this screen you can set up your own customized level. Everything can be set up, from the number of colors to the height of the columns... When you feel you are ready just click on the \'Start\' button, and you can play your level!';
str_firstbuy = 'The Power you just bought will be displayed at the bottom of the screen ingame. If you want to use it, wait until fills up completely, then click on it and follow the onscreen instructions!';
str_placefinished1 = 'Congratulation! You completely renovated the';
str_placefinished2 = '! The next scene will be the';
str_placename7 = 'Stadium Square';
str_placename14 = 'Sports Hall';
str_placename21 = 'Stadium';
str_placename28 = 'Box Hall';
str_placename35 = 'Olympic Village';
str_placename42 = 'Sports Bay';
str_placename49 = 'Winners Podium';
str_placename56 = 'Opening Ceremony';
str_credits = '<font size=\'20\'><br>Design, project management<br><font size=\'24\'><b>Zoltán Vigh</b></font><br><br>Programming<br><font size=\'24\'><b>CsabaBencsik</b></font><br><br>Art<br><font size=\'24\'><b>Zsolt Kósa</b><br><b>Richárd Vass</b></font><br><br>Music<br><font size=\'24\'><b>Secta Chameleon</b></font><br><br>Language consultation<br><font size=\'24\'><b>Chris Johnson</b></font><br><br><b>Tonuzaba Entertainment Kft.</b><br><br><font size=\'14\'>Click anywhere to go back!';
str_big_save_error = 'Save error! Please check if there is enough empty space on the drive!';
str_save_sucess = 'Save successful!';
str_save_unsucess = 'Save error! You have to allow Local storage in the dialog in order to store your progress in the game. If it is already allowed, please increase the size!';
str_sponsorlogo1_button_tooltip = 'Play more games';
str_main_more_games_button = 'More games';
str_main_more_games_button_tooltip = 'More games';
str_facebook_button_tooltip = 'Facebook';
str_twitter_button_tooltip = 'Twitter';
str_sponsorlogo2_button_tooltip = 'Play more games';
str_dusttxt = 'Play free games';
str_more_games_button = 'More games';
str_more_games_button_tooltip = 'Play more games';
str_sponsorlogo3_button_tooltip = 'Play more games';
str_briefing_more_games_button = 'Play Puzzle games';
str_briefing_more_games_button_tooltip = 'Play Puzzle games';
str_briefing_free_games_button = 'Play free games';
str_briefing_free_games_button_tooltip = 'Play free games';
str_download_button = 'Download this game';
str_download_button_tooltip = 'Download this game';
str_start_button = 'Continue';
str_start_button_tooltip = 'Click to continue';
str_undoorrestart_more_games_button = 'More games';
str_undoorrestart_more_games_button_tooltip = 'Play more games';
}
frame 19 {
stop();
}
}
movieClip 307 {
}
movieClip 308 {
frame 8 {
stop();
}
frame 19 {
stop();
}
}
movieClip 312 {
frame 1 {
this.tabEnabled = false;
}
frame 8 {
stop();
}
frame 18 {
stop();
}
frame 27 {
stop();
}
}
movieClip 314 {
instance no_button of movieClip 312 {
onClipEvent (rollOver) {
gotoAndStop('over');
_root.toutch(_name);
}
onClipEvent (rollOut) {
gotoAndStop('normal');
_root.untoutch();
}
onClipEvent (press) {
_root.untoutch();
gotoAndStop('normal');
_root.messagedlg_mc._visible = false;
}
}
instance yes_button of movieClip 312 {
onClipEvent (rollOver) {
gotoAndStop('over');
_root.toutch(_name);
}
onClipEvent (rollOut) {
gotoAndStop('normal');
_root.untoutch();
}
onClipEvent (press) {
_root.untoutch();
gotoAndStop('normal');
_root.messagedlg_mc._visible = false;
if (_parent.action == 'restart_game') {
_root.taktstep[_root.taktplayer] = 1;
_root.tingame[_root.taktplayer] = 'false';
_root.allsave();
_root.tingame[_root.taktplayer] = 'false';
_root.gametype = 'campign';
_root.blackfade('campign');
}
if (_parent.action == 'delete player') {
i = _root.taktplayer;
while (i <= _root.tplayercount) {
_root.tplayername[i] = _root.tplayername[i + 1];
_root.tmoney[i] = _root.tmoney[i + 1];
_root.taktstep[i] = _root.taktstep[i + 1];
_root.tmusic_volume[i] = _root.tmusic_volume[i + 1];
_root.teffect_volume[i] = _root.teffect_volume[i + 1];
_root.tplayer_language[i] = _root.tplayer_language[i + 1];
_root.tfullscreen[i] = _root.tfullscreen[i + 1];
_root.taveragegamesteps[i] = _root.taveragegamesteps[i + 1];
_root.taveragegameundos[i] = _root.taveragegameundos[i + 1];
_root.taveragegametime[i] = _root.taveragegametime[i + 1];
_root.tbestgamesteps[i] = _root.tbestgamesteps[i + 1];
_root.tbestgameundos[i] = _root.tbestgameundos[i + 1];
_root.tbestgametime[i] = _root.tbestgametime[i + 1];
_root.twrostgamesteps[i] = _root.twrostgamesteps[i + 1];
_root.twrostgameundos[i] = _root.twrostgameundos[i + 1];
_root.twrostgametime[i] = _root.twrostgametime[i + 1];
_root.cheat1[i] = _root.cheat1[i + 1];
_root.cheat2[i] = _root.cheat2[i + 1];
_root.cheat3[i] = _root.cheat3[i + 1];
_root.cheat4[i] = _root.cheat4[i + 1];
_root.cheat5[i] = _root.cheat5[i + 1];
_root.cheat6[i] = _root.cheat6[i + 1];
_root.cheat1pos[i] = _root.cheat1pos[i + 1];
_root.cheat2pos[i] = _root.cheat2pos[i + 1];
_root.cheat3pos[i] = _root.cheat3pos[i + 1];
_root.cheat4pos[i] = _root.cheat4pos[i + 1];
_root.cheat5pos[i] = _root.cheat5pos[i + 1];
_root.cheat6pos[i] = _root.cheat6pos[i + 1];
_root.tgame[i] = _root.tgame[i + 1];
_root.trowelemszam[i] = _root.trowelemszam[i + 1];
_root.tingame[i] = _root.tingame[i + 1];
_root.tpaklitype[i] = _root.tpaklitype[i + 1];
_root.tpaklicolor[i] = _root.tpaklicolor[i + 1];
_root.tallcard[i] = _root.tallcard[i + 1];
_root.tpaklipos[i] = _root.tpaklipos[i + 1];
_root.tlepes[i] = _root.tlepes[i + 1];
_root.tundocount[i] = _root.tundocount[i + 1];
_root.tgame2[i] = _root.tgame2[i + 1];
_root.trowelemszam2[i] = _root.trowelemszam2[i + 1];
_root.tingame2[i] = _root.tingame2[i + 1];
_root.tpaklitype2[i] = _root.tpaklitype2[i + 1];
_root.tpaklicolor2[i] = _root.tpaklicolor2[i + 1];
_root.tallcard2[i] = _root.tallcard2[i + 1];
_root.tpaklipos2[i] = _root.tpaklipos2[i + 1];
_root.tlepes[i] = _root.tlepes[i + 1];
_root.tundocount[i] = _root.tundocount[i + 1];
_root.tdef_types[i] = _root.tdef_types[i + 1];
_root.tdef_colors[i] = _root.tdef_colors[i + 1];
_root.tdef_rows[i] = _root.tdef_rows[i + 1];
_root.tdef_down[i] = _root.tdef_down[i + 1];
_root.tdef_up[i] = _root.tdef_up[i + 1];
_root.tdef_packs[i] = _root.tdef_packs[i + 1];
++i;
}
_root.taktplayer = undefined;
_root.tplayername[tplayercount] = undefined;
--_root.tplayercount;
_root.allsave();
_root.profile_panel.player_menu.menurefresh();
_root.set_language();
}
if (_parent.action == 'exit_game') {
_root.exitprogram();
}
if (_parent.action == 'restart_level') {
_root.ingame_menu_panel._visible = false;
_root.tingame[_root.taktplayer] = 'false';
if (_root.gametype == 'campign') {
_root.blackfade('campign');
}
if (_root.gametype == 'custom') {
_root.blackfade('custom');
}
}
if (_parent.action == 'continue_custom') {
_root.continuegame = true;
_root.def_types = _root.tdef_types[_root.taktplayer];
_root.def_colors = _root.tdef_colors[_root.taktplayer];
_root.def_rows = _root.tdef_rows[_root.taktplayer];
_root.def_down = _root.tdef_down[_root.taktplayer];
_root.def_up = _root.tdef_up[_root.taktplayer];
_root.def_packs = _root.tdef_packs[_root.taktplayer];
_root.blackfade('customgame');
}
}
}
frame 2 {
_root.set_language();
}
frame 5 {
bcg_mc.gotoAndStop('normal');
if (action == 'delete player') {
bcg_mc.gotoAndStop('minimal');
}
if (action == 'restart_level') {
bcg_mc.gotoAndStop('minimal');
}
}
frame 10 {
stop();
}
}
movieClip 316 {
instance close_button of movieClip 312 {
onClipEvent (rollOver) {
gotoAndStop('over');
_root.toutch(_name);
}
onClipEvent (rollOut) {
gotoAndStop('normal');
_root.untoutch();
}
onClipEvent (press) {
_root.untoutch();
gotoAndStop('normal');
_root.messagebox_mc._visible = false;
if (_parent.action == 'win') {
_root.blackfade('briefing');
}
if (_parent.action == 'end_of_game') {
_root.blackfade('main');
}
if (_parent.action == 'undorrestart') {
_root.game.moving_time_counter.time_counter.gotoAndPlay(5);
}
if (_parent.action == 'placefinished') {
_root.game.backgroundcont.cacheAsBitmap = true;
_root.blackfade('briefing');
}
}
}
frame 2 {
_root.set_language();
}
frame 5 {
if (_root.new_player_panel._visible == true) {
bcg_mc.gotoAndStop('minimal');
} else {
bcg_mc.gotoAndStop('normal');
}
if (action == 'undorrestart') {
gotoAndPlay('start2');
}
}
frame 10 {
stop();
}
frame 11 {
_root.set_language();
}
instance undoorrestart_more_games_button of movieClip 312 {
onClipEvent (rollOver) {
gotoAndStop('over');
_root.toutch(_name);
}
onClipEvent (rollOut) {
gotoAndStop('normal');
_root.untoutch();
}
onClipEvent (press) {
_root.untoutch();
gotoAndStop('normal');
getURL('http://www.bgames.com/?utm_source=Olympic_tidy_up&utm_medium=game&utm_campaign=more_games_pause', '_blank');
}
}
frame 20 {
stop();
}
}
button 320 {
on (release) {
_root.showmessage(_root.fut);
}
}
button 321 {
on (release) {
mdm.Input.Mouse.show('MainForm');
}
}
movieClip 326 {
}
movieClip 327 {
frame 1 {
function sortByDepth(a, b) {
if (a.depth < b.depth) {
return -1;
} else {
if (a.depth > b.depth) {
return 1;
} else {
return 0;
}
}
}
function quit() {
trace('Quit');
}
bgmask_mc.swapDepths(1499);
var numorbs = 8;
var orbs = new Array();
var i = 0;
while (i < numorbs) {
this.attachMovie('col' + (i % 4 + 1), 'kep' + i + '_mc', this.getNextHighestDepth(), {'_x': 0, '_y': 0});
var orb = new HorOrbiter(eval('kep' + i + '_mc'), {'scaleFactor': 1, 'speed': 0.03, 'center': 320, 'phase': i * Math.PI * 2 / numorbs});
orbs[i] = orb;
++i;
}
onEnterFrame = function () {
var v2 = ((_ymouse - Stage.height / 2) / (Stage.height / 2)) * 0.03;
var v1 = 0;
while (v1 < orbs.length) {
orbs[v1].update();
++v1;
}
orbs.sort(sortByDepth);
v1 = 0;
while (v1 < orbs.length) {
if (orbs[v1].isInBackground) {
orbs[v1].setFlashDepth(1000 + v1);
} else {
orbs[v1].setFlashDepth(1500 + v1);
}
++v1;
}
};
onMouseDown = quit;
var keyListener = new Object();
keyListener.onKeyDown = quit;
Key.addListener(keyListener);
}
}
movieClip 329 {
}
movieClip 331 {
frame 1 {
stop();
}
}
button 332 {
on (press) {
getURL('http://www.bgames.com/?utm_source=Olympic_tidy_up&utm_medium=game&utm_campaign=logo_loading', '_blank');
}
}
movieClip 336 {
frame 1 {
this.tabEnabled = false;
}
frame 8 {
stop();
}
frame 18 {
stop();
}
frame 27 {
stop();
}
}
movieClip 338 {
frame 1 {
start_button._visible = false;
_root.stop();
}
instance start_button of movieClip 336 {
onClipEvent (rollOver) {
gotoAndStop('over');
_root.toutch(_name);
}
onClipEvent (rollOut) {
gotoAndStop('normal');
_root.untoutch();
}
onClipEvent (press) {
_root.untoutch();
_root.play();
}
}
frame 3 {
szam = _root._framesloaded / (_root._totalframes / 100);
loaderbar.gotoAndStop(Math.round(szam));
if (szam < 100) {
gotoAndPlay(2);
}
}
frame 4 {
LC = new LocalConnection();
dname = LC.domain();
loaderbar._visible = false;
start_button._visible = true;
stop();
}
frame 5 {
stop();
}
}
movieClip 339 {
frame 1 {
card._visible = false;
liftcount = 0;
}
frame 1 {
function place(cardtype, cardcolor, up, sign) {
++elemszam;
duplicateMovieClip('card', 'card' + elemszam, 500 - elemszam * 2);
eval('card' + elemszam)._visible = false;
eval('card' + elemszam + '.cardtype') = cardtype;
eval('card' + elemszam + '.cardcolor') = cardcolor;
eval('card' + elemszam + '.cardcount') = elemszam;
(eval('card' + elemszam + '.szinfolt')).gotoAndStop(cardcolor);
if (up == 'up') {
(eval('card' + elemszam)).gotoAndStop(cardtype + 1);
} else {
(eval('card' + elemszam)).gotoAndStop(1);
}
if (sign == true) {
(eval('card' + elemszam + '.szalag')).gotoAndPlay('in');
szam = _root.kocsogeltol + cardcolor;
if (szam > 6) {
szam -= 6;
}
(eval('card' + elemszam + '.szalag.sign')).gotoAndStop(szam);
} else {
(eval('card' + elemszam + '.szalag')).gotoAndPlay('out');
}
eval('card' + elemszam)._y = (elemszam - 1) * -30;
eval('card' + elemszam)._visible = true;
eval('card' + elemszam + '.sign2')._visible = false;
}
function placeinvisible(cardtype, cardcolor, up, sign) {
++elemszam;
duplicateMovieClip('card', 'card' + elemszam, 500 - elemszam * 2);
eval('card' + elemszam + '.cardtype') = cardtype;
eval('card' + elemszam + '.cardcolor') = cardcolor;
eval('card' + elemszam + '.cardcount') = elemszam;
(eval('card' + elemszam + '.szinfolt')).gotoAndStop(cardcolor);
if (up == 'up') {
(eval('card' + elemszam)).gotoAndStop(cardtype + 1);
} else {
(eval('card' + elemszam)).gotoAndStop(1);
}
if (sign == true) {
(eval('card' + elemszam + '.szalag')).gotoAndPlay('in');
szam = _root.kocsogeltol + cardcolor;
if (szam > 6) {
szam -= 6;
}
(eval('card' + elemszam + '.szalag.sign')).gotoAndStop(szam);
} else {
(eval('card' + elemszam + '.szalag')).gotoAndPlay('out');
}
eval('card' + elemszam)._y = (elemszam - 1) * -30;
eval('card' + elemszam)._alpha = 0;
eval('card' + elemszam + '.sign')._visible = false;
eval('card' + elemszam + '.sign2')._visible = false;
}
function newcardplace(cardtype, cardcolor, up) {
++elemszam;
duplicateMovieClip('card', 'card' + elemszam, 500 - elemszam * 2);
eval('card' + elemszam)._alpha = 0;
eval('card' + elemszam + '.cardtype') = cardtype;
eval('card' + elemszam + '.cardcolor') = cardcolor;
eval('card' + elemszam + '.cardcount') = elemszam;
(eval('card' + elemszam + '.szinfolt')).gotoAndStop(cardcolor);
if (up == 'up') {
(eval('card' + elemszam)).gotoAndStop(cardtype + 1);
} else {
(eval('card' + elemszam)).gotoAndStop(1);
}
(eval('card' + elemszam)).szalag.gotoAndPlay('in');
eval('card' + elemszam)._y = (elemszam - 1) * -30;
eval('card' + elemszam)._visible = true;
cpos = cardtype + 1;
if (up != 'up') {
cpos = 1;
}
tmpname = 'cd_' + _name + '_' + elemszam;
this.attachMovie('carddropper', tmpname, 499 - elemszam * 2, {'_x': 0, '_y': (elemszam - 1) * -30});
eval(tmpname + '.cname') = '_root.game.cardrows.' + _name + '.card' + elemszam;
(eval(tmpname + '.card.szinfolt')).gotoAndStop(cardcolor);
eval(tmpname + '.card.cardcolor') = cardcolor;
(eval(tmpname + '.card')).gotoAndStop(cpos);
(eval(tmpname + '.card')).szalag.gotoAndPlay('in');
++_root.game.dropcount;
eval(tmpname + '.varszam') = _root.game.dropcount;
}
function cardchange(szam, cardtype, cardcolor, up) {
if (szam < 1) {
szam = elemszam;
}
eval('card' + szam + '.cardtype') = cardtype;
eval('card' + szam + '.cardcolor') = cardcolor;
eval('card' + szam + '.cardcount') = szam;
(eval('card' + szam + '.szinfolt')).gotoAndStop(cardcolor);
if (up == 'up') {
(eval('card' + szam)).gotoAndStop(cardtype + 1);
} else {
(eval('card' + szam)).gotoAndStop(1);
}
}
function remove() {
ctype = eval('card' + elemszam + '.cardtype');
ccolor = eval('card' + elemszam + '.cardcolor');
removeMovieClip('card' + elemszam);
--elemszam;
}
function replace() {
celoszlop = '';
xposition = _root.mousecardrow._x * 1.6 * 0.8695000000000001;
balra = '';
i = 1;
while (i <= _root.game.def_rows) {
xpos = (eval('_root.game.cardrows.cardrow' + i))._x + _root.game.cardrows._x;
if (xposition >= xpos) {
baltav = xposition - xpos;
balra = '_root.game.cardrows.cardrow' + i;
}
++i;
}
jobbra = '';
i = _root.game.def_rows;
while (i >= 1) {
xpos = (eval('_root.game.cardrows.cardrow' + i))._x + _root.game.cardrows._x;
if (xposition < xpos) {
jobbtav = xpos - xposition;
jobbra = '_root.game.cardrows.cardrow' + i;
}
--i;
}
if (balra != '' and jobbra != '') {
if (baltav < jobbtav) {
kozeli = balra;
tavoli = jobbra;
} else {
kozeli = jobbra;
tavoli = balra;
}
} else {
tavoli = '';
if (balra != '') {
kozeli = balra;
}
if (jobbra != '') {
kozeli = jobbra;
}
}
if (tavoli != '') {
mctype = _root.mousecardrow.cardrow.card1.cardtype;
kelemszam = (eval(kozeli)).elemszam;
kctype = eval(kozeli + '.card' + kelemszam + '.cardtype');
telemszam = (eval(tavoli)).elemszam;
tctype = eval(tavoli + '.card' + telemszam + '.cardtype');
if (mctype == kctype + 1 or kctype == undefined) {
celoszlop = kozeli;
} else {
celoszlop = tavoli;
}
} else {
celoszlop = kozeli;
}
if (_root.game.illegalmoving == true or _root.game.oneillegalmoving == true) {
celoszlop = kozeli;
}
teheti = false;
if (celoszlop != '' and celoszlop != '_root.game.cardrows.' + _root.mousecardrow.parentrowname) {
visszetenne = false;
celelemszam = eval(celoszlop + '.elemszam');
celcardtype = eval(celoszlop + '.card' + celelemszam + '.cardtype');
if (celcardtype == _root.mousecardrow.cardrow.card1.cardtype - 1) {
if (celelemszam + _root.mousecardrow.cardrow.elemszam < 100) {
teheti = true;
} else {
teheti = false;
_root.messagebox('too_big_coloums', 'too_big_coloums');
}
}
} else {
visszetenne = true;
}
if (eval(celoszlop + '.elemszam') == 0) {
teheti = true;
}
if (_root.game.illegalmoving == true) {
if (visszetenne == false) {
teheti = true;
_root.game.illegalmoving = false;
_root.game.cheats.c3mc.aktido = 0;
_root.game.cheats.c3mc.gotoAndStop(1);
_root.game.bonuszhelp_panel.gotoAndPlay('stop');
} else {
_root.game.illegalmoving = false;
_root.game.bonuszhelp_panel.gotoAndPlay('stop');
}
}
if (_root.game.oneillegalmoving == true) {
if (visszetenne == false) {
teheti = true;
_root.game.oneillegalmoving = false;
_root.game.cheats.c3mc.aktido = 0;
_root.game.cheats.c3mc.gotoAndStop(1);
_root.game.bonuszhelp_panel.gotoAndPlay('stop');
} else {
_root.game.oneillegalmoving = false;
_root.game.bonuszhelp_panel.gotoAndPlay('stop');
}
}
if (_root.game.illegalrowmoving == true) {
if (teheti == true and visszetenne == false) {
_root.game.illegalrowmoving = false;
_root.game.cheats.c6mc.aktido = 0;
_root.game.cheats.c6mc.gotoAndStop(1);
_root.game.bonuszhelp_panel.gotoAndPlay('stop');
} else {
_root.game.illegalrowmoving = false;
_root.game.bonuszhelp_panel.gotoAndPlay('stop');
}
}
if (teheti == false) {
_root.game.movingrow.lepes = false;
celoszlop = '_root.game.cardrows.' + _root.mousecardrow.parentrowname;
_root.game.movingrow.targetrow = celoszlop;
_root.game.movingrow.esz = eval(celoszlop + '.elemszam') - movingrow.elemszam + 1;
_root.game.movingrow.gotoAndPlay('torow');
tmp = _root.mousecardrow.cardrow.elemszam;
i = 1;
while (i <= tmp) {
_root.mousecardrow.cardrow.remove();
++i;
}
} else {
_root.game.laststeptime = _root.game.moving_time_counter.time_counter.time_sz;
_root.game.movingrow.lepes = true;
_root.game.movingrow.targetrow = celoszlop;
_root.game.movingrow.esz = eval(celoszlop + '.elemszam');
_root.game.movingrow.gotoAndPlay('torow');
tmp = _root.mousecardrow.cardrow.elemszam;
i = 1;
while (i <= tmp) {
ctype = eval('_root.mousecardrow.cardrow.card' + i + '.cardtype');
ccolor = eval('_root.mousecardrow.cardrow.card' + i + '.cardcolor');
szalaglathato = eval('_root.mousecardrow.cardrow.card' + i + '.szalag.lathato');
(eval('_root.game.cardrows.' + celoszlop)).placeinvisible(ctype, ccolor, 'up', szalaglathato);
++i;
}
tmp = _root.mousecardrow.cardrow.elemszam;
i = 1;
while (i <= tmp) {
(eval('_root.game.cardrows.' + _root.mousecardrow.parentrowname)).remove();
++i;
}
tmp = _root.mousecardrow.cardrow.elemszam;
i = 1;
while (i <= tmp) {
_root.mousecardrow.cardrow.remove();
++i;
}
}
if (teheti) {
}
if (_root.game.illegalmoving == true) {
_root.game.illegalmoving = false;
_root.mousecardrow.cheatsign.gotoAndStop(2);
}
if (_root.game.oneillegalmoving == true) {
_root.game.oneillegalmoving = false;
_root.mousecardrow.cheatsign.gotoAndStop(2);
}
}
function guidance() {
if (_root.tguidance[_root.taktplayer] == 'yes') {
if (_root.mousecardrow.cardrow.elemszam == 0) {
i = 1;
while (i <= elemszam) {
if ((eval('card' + i)).putdownsign._visible == true) {
removeMovieClip(eval('card' + i) + '.putdownsign');
}
++i;
}
(eval('card' + elemszam + '.szalag')).mutat();
szam = _root.kocsogeltol + eval('card' + elemszam + '.cardcolor');
if (szam > 6) {
szam -= 6;
}
(eval('card' + elemszam + '.szalag.sign')).gotoAndStop(szam);
eccolor = eval('card' + elemszam + '.cardcolor');
ectype = eval('card' + elemszam + '.cardtype');
ecpos = eval('card' + elemszam + '._currentframe');
joe = true;
i = elemszam - 1;
while (i >= 1) {
ccolor = eval('card' + i + '.cardcolor');
ctype = eval('card' + i + '.cardtype');
cpos = eval('card' + i + '._currentframe');
if (ccolor == eccolor and ctype == ectype - 1 and cpos > 1 and joe == true) {
(eval('card' + i + '.szalag')).mutat();
} else {
(eval('card' + i + '.szalag')).elrejt();
joe = false;
}
eccolor = ccolor;
ectype = ctype;
--i;
}
} else {
kctype = _root.mousecardrow.cardrow.card1.cardtype;
i = 1;
while (i <= elemszam) {
if ((eval('card' + i)).putdownsign._visible == true) {
removeMovieClip(eval('card' + i) + '.putdownsign');
}
++i;
}
ctype = eval('card' + elemszam + '.cardtype');
if (ctype == kctype - 1) {
if ((eval('card' + i)).putdownsign._visible != true) {
(eval('card' + elemszam)).attachMovie('putdownsign', 'putdownsign', 2000, {'_x': 0, '_y': -20});
}
}
}
}
}
function liftingcard(sorszam) {
cpos = eval('card' + sorszam + '.cardtype') + 1;
ccolor = eval('card' + sorszam + '.cardcolor');
szalaglathato = eval('card' + sorszam + '.szalag.lathato');
cy = (eval('card' + sorszam))._y;
tmpname = 'cl_' + sorszam;
this.attachMovie('cardlifter', tmpname, 499 - sorszam * 2, {'_x': 0, '_y': cy});
(eval(tmpname + '.card.szinfolt')).gotoAndStop(ccolor);
if (szalaglathato == true) {
(eval(tmpname + '.card.szalag')).gotoAndPlay('in');
szam = _root.kocsogeltol + ccolor;
if (szam > 6) {
szam -= 6;
}
(eval(tmpname + '.card.szalag.sign')).gotoAndStop(szam);
} else {
(eval(tmpname + '.card.szalag')).gotoAndPlay('out');
}
(eval(tmpname + '.card')).gotoAndStop(cpos);
++_root.game.liftcount;
eval(tmpname + '.varszam') = _root.game.liftcount;
}
}
frame 1 {
elemszam = 0;
}
frame 1 {
}
instance card of movieClip 218 card {
onClipEvent (press) {
var my_date = new Date();
tm = my_date.getTime();
if (_root.game.utolsoclicktime + 300 < tm and _root.carddropping != true) {
_root.game.utolsoclicktime = tm;
normal = true;
if (_root.game.shuffle == true) {
normal = false;
_root.game.shuffle = false;
_root.game.shufflefunction();
_root.game.cheats.c5mc.aktido = 0;
_root.game.cheats.c5mc.gotoAndStop(1);
_root.game.bonuszhelp_panel.gotoAndPlay('stop');
}
if (_root.game.cardback == true) {
normal = false;
_root.game.cardback = false;
_root.mousecardrow.cheatsign.gotoAndStop(2);
ctype = eval('_parent.card' + _parent.elemszam + '.cardtype');
ccolor = eval('_parent.card' + _parent.elemszam + '.cardcolor');
cpos = eval('_parent.card' + _parent.elemszam + '._currentframe');
if (cpos != 1) {
_root.game.lapbeszur(ctype, ccolor);
(eval('_parent.card' + _parent.elemszam))._visible = false;
_root.game.newcardbuttonsetup();
}
_root.game.cheats.c4mc.aktido = 0;
_root.game.cheats.c4mc.gotoAndStop(1);
_root.game.bonuszhelp_panel.gotoAndPlay('stop');
}
if (_root.game.rowback == true) {
normal = false;
_root.game.rowback = false;
_root.mousecardrow.cheatsign.gotoAndStop(2);
i = _parent.elemszam;
while (i >= cardcount) {
ctype = eval('_parent.card' + i + '.cardtype');
ccolor = eval('_parent.card' + i + '.cardcolor');
cpos = eval('_parent.card' + i + '._currentframe');
if (cpos != 1) {
_root.game.lapbeszur(ctype, ccolor);
(eval('_parent.card' + i))._visible = false;
}
--i;
}
_root.game.newcardbuttonsetup();
_root.game.cheats.c4mc.aktido = 0;
_root.game.cheats.c4mc.gotoAndStop(1);
_root.game.bonuszhelp_panel.gotoAndPlay('stop');
}
if (_root.game.cardup == true) {
_root.game.cheats.c1mc.gotoAndStop(1);
_root.game.bonuszhelp_panel.gotoAndPlay('stop');
normal = false;
i = _parent.elemszam;
forditott = false;
while (i > 1 and forditott == false) {
--i;
if (eval('_parent.card' + i + '._currentframe') == 1) {
ctype = eval('_parent.card' + i + '.cardtype');
(eval('_parent.card' + i)).attachMovie('cardbreak', 'break_mc', this.getNextHighestDepth(), {'_x': 0, '_y': 0});
(eval('_parent.card' + i)).gotoAndStop(ctype + 1);
forditott = true;
}
}
_root.game.cardup = false;
_root.game.cheats.c1mc.aktido = 0;
}
if (_root.game.rowup == true) {
normal = false;
i = 1;
while (i <= _parent.elemszam) {
_root.game.cheats.c1mc.gotoAndStop(1);
_root.game.bonuszhelp_panel.gotoAndPlay('stop');
if (eval('_parent.card' + i + '._currentframe') == 1) {
ctype = eval('_parent.card' + i + '.cardtype');
(eval('_parent.card' + i)).gotoAndStop(ctype + 1);
(eval('_parent.card' + i)).attachMovie('cardbreak', 'break_mc', this.getNextHighestDepth(), {'_x': 0, '_y': 0});
}
++i;
}
_root.game.rowup = false;
_root.game.cheats.c1mc.aktido = 0;
}
if (_root.game.allup == true) {
_root.game.cheats.c1mc.aktido = 0;
_root.game.cheats.c1mc.gotoAndStop(1);
_root.game.bonuszhelp_panel.gotoAndPlay('stop');
_root.game.allupfunction();
_root.game.allup = false;
normal = false;
}
if (_root.game.changecards == true) {
normal = false;
if (_root.game.cheatstep == 0) {
_root.game.cheatstep = 1;
_root.game.tmptype = eval('_parent.card' + _parent.elemszam + '.cardtype');
_root.game.tmpcolor = eval('_parent.card' + _parent.elemszam + '.cardcolor');
_root.game.tmprowname = _parent._name;
_root.game.bonuszhelp_panel.gotoAndStop('step2');
} else {
_root.game.tmptype2 = eval('_parent.card' + _parent.elemszam + '.cardtype');
_root.game.tmpcolor2 = eval('_parent.card' + _parent.elemszam + '.cardcolor');
_parent.cardchange(0, _root.game.tmptype, _root.game.tmpcolor, 'up');
(eval('_root.game.cardrows.' + _root.game.tmprowname)).cardchange(0, _root.game.tmptype2, _root.game.tmpcolor2, 'up');
_root.game.cheats.c2mc.gotoAndStop(1);
_root.game.bonuszhelp_panel.gotoAndPlay('stop');
_root.game.changecards = false;
_root.game.cheats.c2mc.aktido = 0;
}
}
if (_root.game.changecards2 == true) {
normal = false;
if (_root.game.cheatstep == 0) {
if (_currentframe != 1) {
_root.game.cheatstep = 1;
_root.game.tmptype = cardtype;
_root.game.tmpcolor = cardcolor;
_root.game.tmprowname = _parent._name;
_root.game.tmpcardcount = cardcount;
_root.game.bonuszhelp_panel.gotoAndStop('step2');
}
} else {
if (_currentframe != 1) {
_root.game.tmptype2 = cardtype;
_root.game.tmpcolor2 = cardcolor;
_parent.cardchange(cardcount, _root.game.tmptype, _root.game.tmpcolor, 'up');
(eval('_root.game.cardrows.' + _root.game.tmprowname)).cardchange(_root.game.tmpcardcount, _root.game.tmptype2, _root.game.tmpcolor2, 'up');
_root.mousecardrow.cheatsign.gotoAndStop(2);
_root.game.changecards2 = false;
_root.game.cheats.c2mc.gotoAndStop(1);
_root.game.bonuszhelp_panel.gotoAndPlay('stop');
_root.game.changecards2 = false;
_root.game.cheats.c2mc.aktido = 0;
}
}
}
if (normal == true) {
mozgathato = _root.game.szinsormer(_parent.rowid);
if (mozgathato > _parent.elemszam - cardcount + 1) {
mozgathato = _parent.elemszam - cardcount + 1;
}
if (_root.game.illegalmoving == true) {
_root.game.bonuszhelp_panel.gotoAndStop('step2');
}
if (_root.game.oneillegalmoving == true) {
if (mozgathato > 0) {
mozgathato = 1;
}
_root.game.bonuszhelp_panel.gotoAndStop('step2');
}
if (_root.game.illegalrowmoving == true) {
i = cardcount;
while (eval('_parent.card' + i + '._currentframe') == 1) {
++i;
}
mozgathato = _parent.elemszam - i + 1;
_root.game.bonuszhelp_panel.gotoAndStop('step2');
}
_root.game.movingrow._x = _parent._x * 1.15 + _parent._parent._x;
masolt = _parent.elemszam - mozgathato + 1;
_root.game.movingrow._y = _parent._y + _parent._parent._y + eval('_parent.card' + masolt + '._y');
_root.mousecardrow.parentrowname = _parent._name;
_root.mousecardrow.cardrow._visible = false;
i = 1;
while (i <= mozgathato) {
masolt = _parent.elemszam - mozgathato + i;
ctype = eval('_parent.card' + masolt + '.cardtype');
ccolor = eval('_parent.card' + masolt + '.cardcolor');
signvisible = eval('_parent.card' + masolt + '.szalag.lathato');
_root.mousecardrow.cardrow.place(ctype, ccolor, 'up', signvisible);
_root.game.movingrow.cardrow.place(ctype, ccolor, 'up', signvisible);
if (mozgathato < _parent.elemszam) {
_root.game.movingrow.gotoAndPlay('tocursor');
} else {
_root.game.movingrow.gotoAndPlay('tocursor2');
}
++i;
}
i = 1;
while (i <= mozgathato) {
tmp = _parent.elemszam - mozgathato + i;
eval('_parent.card' + tmp)._alpha = 20;
++i;
}
} else {
_root.game.helyzetelemzes();
}
_root.game.guidance();
}
}
onClipEvent (releaseOutside) {
if (normal == true) {
_parent.replace();
}
_root.game.guidance();
}
onClipEvent (release) {
if (normal == true) {
_parent.replace();
}
_root.game.guidance();
}
onClipEvent (rollOver) {
_root.game.cardtoutch(cardtype);
}
onClipEvent (rollOut) {
_root.game.carduntoutch(cardtype);
}
}
frame 2 {
stop();
}
}
movieClip 340 {
frame 1 {
tol = 0;
rot = 0;
}
frame 2 {
if (_root.game._visible) {
if (_y < 100 and _root.leesolap == 0) {
if (_root.game.cardrows._y - _root.game.cardrows._height < 0) {
_root.game.cardrows._y = _root.game.cardrows._y + 10 - _y / 10;
}
} else {
if (_root.game.cardrows._y > 477) {
_root.game.cardrows._y -= (_y - 100) / 10;
if (_root.game.cardrows._y < 477) {
_root.game.cardrows._y = 477;
}
}
}
}
xelm = (ex - _x) / 3;
if (xelm > 8) {
xelm = 8;
}
if (xelm < -8) {
xelm = -8;
}
yelm = (ey - _y) / 3;
if (yelm > 8) {
yelm = 8;
}
if (yelm < -8) {
yelm = -8;
}
if (xelm < rot) {
rot -= 1;
}
if (xelm > rot) {
rot += 1;
}
cardrow._rotation = rot;
if (yelm < tol) {
tol -= 1;
}
if (yelm > tol) {
tol += 1;
}
if (cardrow.elemszam > 0) {
i = 1;
while (i <= cardrow.elemszam) {
eval('cardrow.card' + i)._y = i * (-30 + tol);
++i;
}
}
ex = _x;
ey = _y;
}
frame 3 {
gotoAndPlay(2);
}
}
movieClip 342 {
}
movieClip 344 {
frame 1 {
txtfield._height = 18;
txtfield._width = 10;
txtfield._x = -15;
txtfield._y = -15;
tool_tip_background._height = txtfield._height;
tool_tip_background._width = txtfield._width;
tool_tip_background._x = txtfield._x;
tool_tip_background._y = txtfield._y;
}
frame 5 {
if (txtfield.maxscroll > 1) {
if (txtfield._width < 200) {
txtfield._width += 20;
} else {
txtfield._height += 10;
}
txtfield._x = -txtfield._width - 15;
if (_x + txtfield._x < 0) {
txtfield._x = 15;
}
if (_y + txtfield._height > 760) {
txtfield._y = -txtfield._height - 15;
}
tool_tip_background._height = txtfield._height;
tool_tip_background._width = txtfield._width;
tool_tip_background._x = txtfield._x;
tool_tip_background._y = txtfield._y;
gotoAndPlay(4);
}
}
frame 10 {
stop();
}
}
movieClip 346 {
}
movieClip 347 {
frame 2 {
stop();
}
frame 10 {
_root.untoutch();
}
frame 20 {
var s = new Sound();
s.setVolume(100);
_root.untoutch();
if (action == 'campign') {
_root.tutorial = '-';
stepname = _root.enterlevag(eval('_root.stepname' + _root.taktstep[_root.taktplayer]));
_root.levels.gotoAndStop(_root.taktstep[_root.taktplayer]);
}
if (action == 'endcampign') {
_root.gotoAndPlay('endcampign');
}
if (action == 'custom') {
_root.gotoAndPlay('settings');
}
if (action == 'customgame') {
stepname = _root.enterlevag(eval('_root.stepname' + (random(_root.taktstep[_root.taktplayer]) + 1)));
_root.tutorial = '-';
_root.gotoAndPlay('game');
}
if (action == 'main') {
_root.gotoAndPlay('main');
}
if (action == 'intro2') {
_root.gotoAndPlay('intro2');
}
if (action == 'briefing') {
_root.gotoAndPlay('briefing');
}
if (action == 'contact') {
_root.gotoAndPlay('contact');
}
}
frame 22 {
if (action == 'campign') {
_root.def_types = _root.strtoint(_root.cardtype);
_root.def_colors = _root.strtoint(_root.cardcolor);
_root.def_rows = _root.strtoint(_root.rows);
_root.def_down = _root.strtoint(_root.down);
_root.def_up = _root.strtoint(_root.up);
_root.def_list = _root.strtoint(_root.listlength);
_root.def_packs = _root.strtoint(_root.pack);
_root.gotoAndPlay('game');
}
}
frame 40 {
gotoAndStop(2);
}
}
movieClip 350 {
frame 1 {
_root.cardtype = 3;
_root.cardcolor = 1;
_root.rows = 6;
_root.down = 0;
_root.up = 6;
_root.pack = 2;
_root.background = 'background1';
_root.stat = 1;
_root.tutorial = 'tutorial1';
}
frame 2 {
_root.cardtype = 4;
_root.cardcolor = 1;
_root.rows = 8;
_root.down = 0;
_root.up = 16;
_root.pack = 4;
_root.background = 'background1';
_root.stat = 2;
}
frame 3 {
_root.cardtype = 3;
_root.cardcolor = 1;
_root.rows = 6;
_root.down = 6;
_root.up = 6;
_root.pack = 4;
_root.background = 'background1';
_root.stat = 3;
_root.tutorial = 'tutorial2';
}
frame 4 {
_root.cardtype = 4;
_root.cardcolor = 1;
_root.rows = 8;
_root.down = 16;
_root.up = 8;
_root.pack = 6;
_root.background = 'background1';
_root.stat = 4;
}
frame 5 {
_root.cardtype = 3;
_root.cardcolor = 1;
_root.rows = 6;
_root.down = 0;
_root.up = 6;
_root.pack = 4;
_root.background = 'background1';
_root.stat = 5;
_root.tutorial = 'tutorial3';
}
frame 6 {
_root.cardtype = 4;
_root.cardcolor = 1;
_root.rows = 8;
_root.down = 0;
_root.up = 8;
_root.pack = 8;
_root.background = 'background1';
_root.stat = 6;
}
frame 7 {
_root.cardtype = 10;
_root.cardcolor = 1;
_root.rows = 10;
_root.down = 0;
_root.up = 50;
_root.pack = 5;
_root.background = 'background1';
_root.stat = 7;
}
frame 8 {
_root.cardtype = 3;
_root.cardcolor = 2;
_root.rows = 6;
_root.down = 0;
_root.up = 12;
_root.pack = 2;
_root.background = 'terem';
_root.stat = 1;
_root.tutorial = 'tutorial4';
}
frame 9 {
_root.cardtype = 4;
_root.cardcolor = 2;
_root.rows = 8;
_root.down = 0;
_root.up = 24;
_root.pack = 3;
_root.background = 'terem';
_root.stat = 2;
}
frame 10 {
_root.cardtype = 7;
_root.cardcolor = 1;
_root.rows = 7;
_root.down = 21;
_root.up = 7;
_root.pack = 4;
_root.background = 'terem';
_root.stat = 3;
}
frame 11 {
_root.cardtype = 8;
_root.cardcolor = 1;
_root.rows = 8;
_root.down = 16;
_root.up = 24;
_root.pack = 5;
_root.background = 'terem';
_root.stat = 4;
}
frame 12 {
_root.cardtype = 5;
_root.cardcolor = 2;
_root.rows = 10;
_root.down = 20;
_root.up = 10;
_root.pack = 4;
_root.background = 'terem';
_root.stat = 5;
}
frame 13 {
_root.cardtype = 10;
_root.cardcolor = 1;
_root.rows = 10;
_root.down = 30;
_root.up = 10;
_root.pack = 5;
_root.background = 'terem';
_root.stat = 6;
}
frame 14 {
_root.cardtype = 10;
_root.cardcolor = 1;
_root.rows = 10;
_root.down = 30;
_root.up = 20;
_root.pack = 7;
_root.background = 'terem';
_root.stat = 7;
}
frame 15 {
_root.cardtype = 7;
_root.cardcolor = 1;
_root.rows = 7;
_root.down = 0;
_root.up = 21;
_root.pack = 3;
_root.background = 'stadion';
_root.stat = 1;
}
frame 16 {
_root.cardtype = 8;
_root.cardcolor = 1;
_root.rows = 8;
_root.down = 0;
_root.up = 32;
_root.pack = 4;
_root.background = 'stadion';
_root.stat = 2;
}
frame 17 {
_root.cardtype = 7;
_root.cardcolor = 1;
_root.rows = 9;
_root.down = 18;
_root.up = 9;
_root.pack = 9;
_root.background = 'stadion';
_root.stat = 3;
}
frame 18 {
_root.cardtype = 8;
_root.cardcolor = 1;
_root.rows = 10;
_root.down = 20;
_root.up = 10;
_root.pack = 10;
_root.background = 'stadion';
_root.stat = 4;
}
frame 19 {
_root.cardtype = 8;
_root.cardcolor = 1;
_root.rows = 8;
_root.down = 16;
_root.up = 16;
_root.pack = 9;
_root.background = 'stadion';
_root.stat = 5;
}
frame 20 {
_root.cardtype = 10;
_root.cardcolor = 1;
_root.rows = 10;
_root.down = 30;
_root.up = 10;
_root.pack = 9;
_root.background = 'stadion';
_root.stat = 6;
}
frame 21 {
_root.cardtype = 13;
_root.cardcolor = 1;
_root.rows = 10;
_root.down = 30;
_root.up = 10;
_root.pack = 9;
_root.background = 'stadion';
_root.stat = 7;
}
frame 22 {
_root.cardtype = 5;
_root.cardcolor = 1;
_root.rows = 10;
_root.down = 0;
_root.up = 25;
_root.pack = 8;
_root.background = 'boxring';
_root.stat = 1;
}
frame 23 {
_root.cardtype = 6;
_root.cardcolor = 1;
_root.rows = 10;
_root.down = 10;
_root.up = 30;
_root.pack = 8;
_root.background = 'boxring';
_root.stat = 2;
}
frame 24 {
_root.cardtype = 8;
_root.cardcolor = 2;
_root.rows = 8;
_root.down = 16;
_root.up = 16;
_root.pack = 2;
_root.background = 'boxring';
_root.stat = 3;
}
frame 25 {
_root.cardtype = 8;
_root.cardcolor = 2;
_root.rows = 10;
_root.down = 0;
_root.up = 10;
_root.pack = 3;
_root.background = 'boxring';
_root.stat = 4;
}
frame 26 {
_root.cardtype = 6;
_root.cardcolor = 2;
_root.rows = 10;
_root.down = 10;
_root.up = 10;
_root.pack = 5;
_root.background = 'boxring';
_root.stat = 5;
}
frame 27 {
_root.cardtype = 6;
_root.cardcolor = 2;
_root.rows = 10;
_root.down = 20;
_root.up = 10;
_root.pack = 7;
_root.background = 'boxring';
_root.stat = 6;
}
frame 28 {
_root.cardtype = 8;
_root.cardcolor = 2;
_root.rows = 10;
_root.down = 20;
_root.up = 20;
_root.pack = 7;
_root.background = 'boxring';
_root.stat = 7;
}
frame 29 {
_root.cardtype = 12;
_root.cardcolor = 1;
_root.rows = 6;
_root.down = 12;
_root.up = 6;
_root.pack = 4;
_root.background = 'village';
_root.stat = 1;
}
frame 30 {
_root.cardtype = 6;
_root.cardcolor = 2;
_root.rows = 8;
_root.down = 16;
_root.up = 8;
_root.pack = 4;
_root.background = 'village';
_root.stat = 2;
}
frame 31 {
_root.cardtype = 9;
_root.cardcolor = 2;
_root.rows = 10;
_root.down = 0;
_root.up = 10;
_root.pack = 4;
_root.background = 'village';
_root.stat = 3;
}
frame 32 {
_root.cardtype = 5;
_root.cardcolor = 3;
_root.rows = 8;
_root.down = 8;
_root.up = 16;
_root.pack = 3;
_root.background = 'village';
_root.stat = 4;
}
frame 33 {
_root.cardtype = 6;
_root.cardcolor = 3;
_root.rows = 9;
_root.down = 9;
_root.up = 18;
_root.pack = 3;
_root.background = 'village';
_root.stat = 5;
}
frame 34 {
_root.cardtype = 6;
_root.cardcolor = 3;
_root.rows = 10;
_root.down = 10;
_root.up = 10;
_root.pack = 4;
_root.background = 'village';
_root.stat = 6;
}
frame 35 {
_root.cardtype = 8;
_root.cardcolor = 3;
_root.rows = 10;
_root.down = 20;
_root.up = 20;
_root.pack = 4;
_root.background = 'village';
_root.stat = 7;
}
frame 36 {
_root.cardtype = 5;
_root.cardcolor = 4;
_root.rows = 5;
_root.down = 0;
_root.up = 10;
_root.pack = 1;
_root.background = 'watersports';
_root.stat = 1;
}
frame 37 {
_root.cardtype = 6;
_root.cardcolor = 4;
_root.rows = 6;
_root.down = 12;
_root.up = 6;
_root.pack = 2;
_root.background = 'watersports';
_root.stat = 2;
}
frame 38 {
_root.cardtype = 7;
_root.cardcolor = 4;
_root.rows = 9;
_root.down = 9;
_root.up = 18;
_root.pack = 2;
_root.background = 'watersports';
_root.stat = 3;
}
frame 39 {
_root.cardtype = 7;
_root.cardcolor = 4;
_root.rows = 7;
_root.down = 14;
_root.up = 14;
_root.pack = 2;
_root.background = 'watersports';
_root.stat = 4;
}
frame 40 {
_root.cardtype = 8;
_root.cardcolor = 4;
_root.rows = 10;
_root.down = 10;
_root.up = 10;
_root.pack = 2;
_root.background = 'watersports';
_root.stat = 5;
}
frame 41 {
_root.cardtype = 9;
_root.cardcolor = 4;
_root.rows = 10;
_root.down = 10;
_root.up = 10;
_root.pack = 2;
_root.background = 'watersports';
_root.stat = 6;
}
frame 42 {
_root.cardtype = 12;
_root.cardcolor = 4;
_root.rows = 10;
_root.down = 20;
_root.up = 10;
_root.pack = 2;
_root.background = 'watersports';
_root.stat = 7;
}
frame 43 {
_root.cardtype = 10;
_root.cardcolor = 3;
_root.rows = 8;
_root.down = 0;
_root.up = 16;
_root.pack = 2;
_root.background = 'dobogo';
_root.stat = 1;
}
frame 44 {
_root.cardtype = 12;
_root.cardcolor = 3;
_root.rows = 10;
_root.down = 10;
_root.up = 20;
_root.pack = 2;
_root.background = 'dobogo';
_root.stat = 2;
}
frame 45 {
_root.cardtype = 11;
_root.cardcolor = 4;
_root.rows = 10;
_root.down = 10;
_root.up = 30;
_root.pack = 3;
_root.background = 'dobogo';
_root.stat = 3;
}
frame 46 {
_root.cardtype = 11;
_root.cardcolor = 4;
_root.rows = 8;
_root.down = 24;
_root.up = 24;
_root.pack = 3;
_root.background = 'dobogo';
_root.stat = 5;
}
frame 47 {
_root.cardtype = 12;
_root.cardcolor = 4;
_root.rows = 10;
_root.down = 20;
_root.up = 20;
_root.pack = 3;
_root.background = 'dobogo';
_root.stat = 4;
}
frame 48 {
_root.cardtype = 8;
_root.cardcolor = 5;
_root.rows = 8;
_root.down = 16;
_root.up = 16;
_root.pack = 3;
_root.background = 'dobogo';
_root.stat = 6;
}
frame 49 {
_root.cardtype = 10;
_root.cardcolor = 5;
_root.rows = 10;
_root.down = 30;
_root.up = 30;
_root.pack = 3;
_root.background = 'dobogo';
_root.stat = 7;
}
frame 50 {
_root.cardtype = 13;
_root.cardcolor = 6;
_root.rows = 10;
_root.down = 20;
_root.up = 10;
_root.pack = 2;
_root.background = 'olimpiailang';
_root.stat = 1;
}
}
movieClip 1048 __Packages.Orbiter {
#initclip
if (!_global.Orbiter) {
var v1 = function (clip, param) {
this._blur = new flash.filters.BlurFilter(0, 0, 2);
this.my_mc = clip;
if (param.center != undefined) {
this.center = param.center;
}
if (param.phase != undefined) {
this.phase = param.phase;
}
if (param.amplitude != undefined) {
this.amplitude = param.amplitude;
}
if (param.speed != undefined) {
this.speed = param.speed;
}
if (param.dir != undefined) {
this.dir = param.dir;
}
if (param.scaleFactor != undefined) {
this.scaleFactor = param.scaleFactor;
}
};
_global.Orbiter = v1;
var v2 = v1.prototype;
v2.update = function () {
if (!this.dir) {
this.phase += this.speed;
} else {
this.phase -= this.speed;
}
this.phase;
if (this.phase > 6.283185307179586) {
this.phase -= 6.283185307179586;
} else {
if (this.phase < 0) {
this.phase += 6.283185307179586;
}
}
if (this.phase > 1.570796326794897 && this.phase < 4.71238898038469) {
this.back = true;
} else {
this.back = false;
}
this.my_mc._y = this.center + Math.sin(this.phase) * this.amplitude;
this.depth = 75 + Math.cos(this.phase) * 25;
this.my_mc._yscale = this.depth * this.scaleFactor;
this.my_mc._xscale = this.my_mc._yscale;
this.my_mc._x = this.depth * 6 - 65;
if (this.back) {
var v3 = Math.sin(this.phase - 1.570796326794897);
this._blur.blurY = v3 * 10;
this._blur.blurX = this._blur.blurY;
this.my_mc.filters = [this._blur];
var v4 = new flash.geom.Transform(this.my_mc);
var v2 = v4.colorTransform;
v2.blueMultiplier = 1 - v3 / 5;
v2.greenMultiplier = 1 - v3 / 2;
v2.redMultiplier = v2.greenMultiplier;
v4.colorTransform = v2;
}
};
v2.setFlashDepth = function (d) {
this.my_mc.swapDepths(d);
};
v2.__get__isInBackground = function () {
return this.back;
};
v2.depth = -10000;
v2.center = 512;
v2.amplitude = 300;
v2.phase = 0;
v2.speed = 0.05;
v2.back = false;
v2.dir = false;
v2.scaleFactor = 1;
v2.addProperty('isInBackground', v2.__get__isInBackground, function () {});
ASSetPropFlags(_global.Orbiter.prototype, null, 1);
}
#endinitclip
}
movieClip 1049 __Packages.HorOrbiter {
#initclip
if (!_global.HorOrbiter) {
var v1 = function (clip, param) {
this._blur = new flash.filters.BlurFilter(0, 0, 2);
this.my_mc = clip;
if (param.center != undefined) {
this.center = param.center;
}
if (param.phase != undefined) {
this.phase = param.phase;
}
if (param.amplitude != undefined) {
this.amplitude = param.amplitude;
}
if (param.speed != undefined) {
this.speed = param.speed;
}
if (param.dir != undefined) {
this.dir = param.dir;
}
if (param.scaleFactor != undefined) {
this.scaleFactor = param.scaleFactor;
}
};
_global.HorOrbiter = v1;
var v2 = v1.prototype;
v2.update = function () {
if (!this.dir) {
this.phase += this.speed;
} else {
this.phase -= this.speed;
}
this.phase;
if (this.phase > 6.283185307179586) {
this.phase -= 6.283185307179586;
} else {
if (this.phase < 0) {
this.phase += 6.283185307179586;
}
}
if (this.phase > 1.570796326794897 && this.phase < 4.71238898038469) {
this.back = true;
} else {
this.back = false;
}
this.my_mc._x = this.center + Math.sin(this.phase) * this.amplitude;
this.depth = 75 + Math.cos(this.phase) * 25;
this.my_mc._yscale = this.depth * this.scaleFactor;
this.my_mc._xscale = this.my_mc._yscale;
this.my_mc._y = this.depth * 2.5 + 50;
if (this.back) {
var v3 = Math.sin(this.phase - 1.570796326794897);
this._blur.blurY = v3 * 10;
this._blur.blurX = this._blur.blurY;
this.my_mc.filters = [this._blur];
var v4 = new flash.geom.Transform(this.my_mc);
var v2 = v4.colorTransform;
v2.blueMultiplier = 1 - v3 / 5;
v2.greenMultiplier = 1 - v3 / 2;
v2.redMultiplier = v2.greenMultiplier;
v4.colorTransform = v2;
}
};
v2.setFlashDepth = function (d) {
this.my_mc.swapDepths(d);
};
v2.__get__isInBackground = function () {
return this.back;
};
v2.depth = -10000;
v2.center = -250;
v2.amplitude = 200;
v2.phase = 0;
v2.speed = 0.05;
v2.back = false;
v2.dir = false;
v2.scaleFactor = 1;
v2.addProperty('isInBackground', v2.__get__isInBackground, function () {});
ASSetPropFlags(_global.HorOrbiter.prototype, null, 1);
}
#endinitclip
}
movieClip 1050 __Packages.mx.core.UIObject {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.core) {
_global.mx.core = new Object();
}
if (!_global.mx.core.UIObject) {
var v1 = function () {
super();
this.constructObject();
};
mx.core.UIObject = v1;
mx.core.UIObject extends MovieClip;
var v2 = v1.prototype;
v2.__get__width = function () {
return this._width;
};
v2.__get__height = function () {
return this._height;
};
v2.__get__left = function () {
return this._x;
};
v2.__get__x = function () {
return this._x;
};
v2.__get__top = function () {
return this._y;
};
v2.__get__y = function () {
return this._y;
};
v2.__get__right = function () {
return this._parent.width - (this._x + this.__get__width());
};
v2.__get__bottom = function () {
return this._parent.height - (this._y + this.__get__height());
};
v2.getMinHeight = function (Void) {
return this._minHeight;
};
v2.setMinHeight = function (h) {
this._minHeight = h;
};
v2.__get__minHeight = function () {
return this.getMinHeight();
};
v2.__set__minHeight = function (h) {
this.setMinHeight(h);
return this.__get__minHeight();
};
v2.getMinWidth = function (Void) {
return this._minWidth;
};
v2.setMinWidth = function (w) {
this._minWidth = w;
};
v2.__get__minWidth = function () {
return this.getMinWidth();
};
v2.__set__minWidth = function (w) {
this.setMinWidth(w);
return this.__get__minWidth();
};
v2.setVisible = function (x, noEvent) {
if (x != this._visible) {
this._visible = x;
if (noEvent != true) {
this.dispatchEvent({'type': x ? 'reveal' : 'hide'});
}
}
};
v2.__get__visible = function () {
return this._visible;
};
v2.__set__visible = function (x) {
this.setVisible(x, false);
return this.__get__visible();
};
v2.__get__scaleX = function () {
return this._xscale;
};
v2.__set__scaleX = function (x) {
this._xscale = x;
return this.__get__scaleX();
};
v2.__get__scaleY = function () {
return this._yscale;
};
v2.__set__scaleY = function (y) {
this._yscale = y;
return this.__get__scaleY();
};
v2.doLater = function (obj, fn) {
if (this.methodTable == undefined) {
this.methodTable = new Array();
}
this.methodTable.push({'obj': obj, 'fn': fn});
this.onEnterFrame = this.doLaterDispatcher;
};
v2.doLaterDispatcher = function (Void) {
delete this.onEnterFrame;
if (this.invalidateFlag) {
this.redraw();
}
var v3 = this.methodTable;
this.methodTable = new Array();
if (v3.length > 0) {
var v2;
v2 = v3.shift();
while (v2 != undefined) {
v2.obj[v2.fn]();
}
}
};
v2.cancelAllDoLaters = function (Void) {
delete this.onEnterFrame;
this.methodTable = new Array();
};
v2.invalidate = function (Void) {
this.invalidateFlag = true;
this.onEnterFrame = this.doLaterDispatcher;
};
v2.invalidateStyle = function (Void) {
this.invalidate();
};
v2.redraw = function (bAlways) {
if (this.invalidateFlag || bAlways) {
this.invalidateFlag = false;
var v2;
for (v2 in this.tfList) {
this.tfList[v2].draw();
}
this.draw();
this.dispatchEvent({'type': 'draw'});
}
};
v2.draw = function (Void) {};
v2.move = function (x, y, noEvent) {
var v3 = this._x;
var v2 = this._y;
this._x = x;
this._y = y;
if (noEvent != true) {
this.dispatchEvent({'type': 'move', 'oldX': v3, 'oldY': v2});
}
};
v2.setSize = function (w, h, noEvent) {
var v3 = this.__width;
var v2 = this.__height;
this.__width = w;
this.__height = h;
this.size();
if (noEvent != true) {
this.dispatchEvent({'type': 'resize', 'oldWidth': v3, 'oldHeight': v2});
}
};
v2.size = function (Void) {
this._width = this.__width;
this._height = this.__height;
};
v2.drawRect = function (x1, y1, x2, y2) {
this.moveTo(x1, y1);
this.lineTo(x2, y1);
this.lineTo(x2, y2);
this.lineTo(x1, y2);
this.lineTo(x1, y1);
};
v2.createLabel = function (name, depth, text) {
this.createTextField(name, depth, 0, 0, 0, 0);
var v2 = this[name];
v2._color = mx.core.UIObject.textColorList;
v2._visible = false;
v2.__text = text;
if (this.tfList == undefined) {
this.tfList = new Object();
}
this.tfList[name] = v2;
v2.invalidateStyle();
this.invalidate();
v2.styleName = this;
return v2;
};
v2.createObject = function (linkageName, id, depth, initobj) {
return this.attachMovie(linkageName, id, depth, initobj);
};
v2.createClassObject = function (className, id, depth, initobj) {
var v3 = className.symbolName == undefined;
if (v3) {
Object.registerClass(className.symbolOwner.symbolName, className);
}
var v4 = mx.core.UIObject(this.createObject(className.symbolOwner.symbolName, id, depth, initobj));
if (v3) {
Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner);
}
return v4;
};
v2.createEmptyObject = function (id, depth) {
return this.createClassObject(mx.core.UIObject, id, depth);
};
v2.destroyObject = function (id) {
var v2 = this[id];
if (v2.getDepth() < 0) {
var v4 = this.buildDepthTable();
var v5 = this.findNextAvailableDepth(0, v4, 'up');
var v3 = v5;
v2.swapDepths(v3);
}
v2.removeMovieClip();
delete this[id];
};
v2.getSkinIDName = function (tag) {
return this.idNames[tag];
};
v2.setSkin = function (tag, linkageName, initObj) {
if (_global.skinRegistry[linkageName] == undefined) {
mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement);
}
return this.createObject(linkageName, this.getSkinIDName(tag), tag, initObj);
};
v2.createSkin = function (tag) {
var v2 = this.getSkinIDName(tag);
this.createEmptyObject(v2, tag);
return this[v2];
};
v2.createChildren = function (Void) {};
v2._createChildren = function (Void) {
this.createChildren();
this.childrenCreated = true;
};
v2.constructObject = function (Void) {
if (this._name == undefined) {
return undefined;
}
this.init();
this._createChildren();
this.createAccessibilityImplementation();
this._endInit();
if (this.validateNow) {
this.redraw(true);
} else {
this.invalidate();
}
};
v2.initFromClipParameters = function (Void) {
var v4 = false;
var v2;
for (v2 in this.clipParameters) {
if (this.hasOwnProperty(v2)) {
v4 = true;
this['def_' + v2] = this[v2];
delete this[v2];
}
}
if (v4) {
for (v2 in this.clipParameters) {
var v3 = this['def_' + v2];
if (v3 != undefined) {
this[v2] = v3;
}
}
}
};
v2.init = function (Void) {
this.__width = this._width;
this.__height = this._height;
if (this.initProperties == undefined) {
this.initFromClipParameters();
} else {
this.initProperties();
}
if (_global.cascadingStyles == true) {
this.stylecache = new Object();
}
};
v2.getClassStyleDeclaration = function (Void) {
var v4 = this;
var v3 = this.className;
while (v3 != undefined) {
if (this.ignoreClassStyleDeclaration[v3] == undefined) {
if (_global.styles[v3] != undefined) {
return _global.styles[v3];
}
}
v4 = v4.__proto__;
v3 = v4.className;
}
};
v2.setColor = function (color) {};
v2.__getTextFormat = function (tf, bAll) {
var v8 = this.stylecache.tf;
if (v8 != undefined) {
var v3;
for (v3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || mx.styles.StyleManager.TextFormatStyleProps[v3]) {
if (tf[v3] == undefined) {
tf[v3] = v8[v3];
}
}
}
return false;
}
var v6 = false;
for (v3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || mx.styles.StyleManager.TextFormatStyleProps[v3]) {
if (tf[v3] == undefined) {
var v5 = this._tf[v3];
if (v5 != undefined) {
tf[v3] = v5;
} else {
if (v3 == 'font' && this.fontFamily != undefined) {
tf[v3] = this.fontFamily;
} else {
if (v3 == 'size' && this.fontSize != undefined) {
tf[v3] = this.fontSize;
} else {
if (v3 == 'color' && this.color != undefined) {
tf[v3] = this.color;
} else {
if (v3 == 'leftMargin' && this.marginLeft != undefined) {
tf[v3] = this.marginLeft;
} else {
if (v3 == 'rightMargin' && this.marginRight != undefined) {
tf[v3] = this.marginRight;
} else {
if (v3 == 'italic' && this.fontStyle != undefined) {
tf[v3] = this.fontStyle == v3;
} else {
if (v3 == 'bold' && this.fontWeight != undefined) {
tf[v3] = this.fontWeight == v3;
} else {
if (v3 == 'align' && this.textAlign != undefined) {
tf[v3] = this.textAlign;
} else {
if (v3 == 'indent' && this.textIndent != undefined) {
tf[v3] = this.textIndent;
} else {
if (v3 == 'underline' && this.textDecoration != undefined) {
tf[v3] = this.textDecoration == v3;
} else {
if (v3 == 'embedFonts' && this.embedFonts != undefined) {
tf[v3] = this.embedFonts;
} else {
v6 = true;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
if (v6) {
var v9 = this.styleName;
if (v9 != undefined) {
if (typeof v9 != 'string') {
v6 = v9.__getTextFormat(tf, true, this);
} else {
if (_global.styles[v9] != undefined) {
v6 = _global.styles[v9].__getTextFormat(tf, true, this);
}
}
}
}
if (v6) {
var v10 = this.getClassStyleDeclaration();
if (v10 != undefined) {
v6 = v10.__getTextFormat(tf, true, this);
}
}
if (v6) {
if (_global.cascadingStyles) {
if (this._parent != undefined) {
v6 = this._parent.__getTextFormat(tf, false);
}
}
}
if (v6) {
v6 = _global.style.__getTextFormat(tf, true, this);
}
return v6;
};
v2._getTextFormat = function (Void) {
var v2 = this.stylecache.tf;
if (v2 != undefined) {
return v2;
}
v2 = new TextFormat();
this.__getTextFormat(v2, true);
this.stylecache.tf = v2;
if (this.enabled == false) {
var v3 = this.getStyle('disabledColor');
v2.color = v3;
}
return v2;
};
v2.getStyleName = function (Void) {
var v2 = this.styleName;
if (v2 != undefined) {
if (typeof v2 != 'string') {
return v2.getStyleName();
} else {
return v2;
}
}
if (this._parent != undefined) {
return this._parent.getStyleName();
} else {
return undefined;
}
};
v2.getStyle = function (styleProp) {
var v3;
++_global.getStyleCounter;
if (this[styleProp] != undefined) {
return this[styleProp];
}
var v6 = this.styleName;
if (v6 != undefined) {
if (typeof v6 != 'string') {
v3 = v6.getStyle(styleProp);
} else {
var v7 = _global.styles[v6];
v3 = v7.getStyle(styleProp);
}
}
if (v3 != undefined) {
return v3;
}
v7 = this.getClassStyleDeclaration();
if (v7 != undefined) {
v3 = v7[styleProp];
}
if (v3 != undefined) {
return v3;
}
if (_global.cascadingStyles) {
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || mx.styles.StyleManager.isColorStyle(styleProp)) {
var v5 = this.stylecache;
if (v5 != undefined) {
if (v5[styleProp] != undefined) {
return v5[styleProp];
}
}
if (this._parent != undefined) {
v3 = this._parent.getStyle(styleProp);
} else {
v3 = _global.style[styleProp];
}
if (v5 != undefined) {
v5[styleProp] = v3;
}
return v3;
}
}
if (v3 == undefined) {
v3 = _global.style[styleProp];
}
return v3;
};
v1.mergeClipParameters = function (o, p) {
for (var v3 in p) {
o[v3] = p[v3];
}
return true;
};
v1.symbolName = 'UIObject';
v1.symbolOwner = mx.core.UIObject;
v1.version = '2.0.2.126';
v1.textColorList = {'color': 1, 'disabledColor': 1};
v2.invalidateFlag = false;
v2.lineWidth = 1;
v2.lineColor = 0;
v2.tabEnabled = false;
v2.clipParameters = {'visible': 1, 'minHeight': 1, 'minWidth': 1, 'maxHeight': 1, 'maxWidth': 1, 'preferredHeight': 1, 'preferredWidth': 1};
v2.addProperty('bottom', v2.__get__bottom, function () {});
v2.addProperty('height', v2.__get__height, function () {});
v2.addProperty('left', v2.__get__left, function () {});
v2.addProperty('minHeight', v2.__get__minHeight, v2.__set__minHeight);
v2.addProperty('minWidth', v2.__get__minWidth, v2.__set__minWidth);
v2.addProperty('right', v2.__get__right, function () {});
v2.addProperty('scaleX', v2.__get__scaleX, v2.__set__scaleX);
v2.addProperty('scaleY', v2.__get__scaleY, v2.__set__scaleY);
v2.addProperty('top', v2.__get__top, function () {});
v2.addProperty('visible', v2.__get__visible, v2.__set__visible);
v2.addProperty('width', v2.__get__width, function () {});
v2.addProperty('x', v2.__get__x, function () {});
v2.addProperty('y', v2.__get__y, function () {});
ASSetPropFlags(mx.core.UIObject.prototype, null, 1);
}
#endinitclip
}
movieClip 1051 __Packages.mx.skins.SkinElement {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.skins) {
_global.mx.skins = new Object();
}
if (!_global.mx.skins.SkinElement) {
var v1 = function () {
super();
};
mx.skins.SkinElement = v1;
mx.skins.SkinElement extends MovieClip;
var v2 = v1.prototype;
v1.registerElement = function (name, className) {
Object.registerClass(name, (className == undefined) ? mx.skins.SkinElement : className);
_global.skinRegistry[name] = true;
};
v2.__set__visible = function (visible) {
this._visible = visible;
};
v2.move = function (x, y) {
this._x = x;
this._y = y;
};
v2.setSize = function (w, h) {
this._width = w;
this._height = h;
};
ASSetPropFlags(mx.skins.SkinElement.prototype, null, 1);
}
#endinitclip
}
movieClip 1052 __Packages.mx.styles.CSSTextStyles {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.styles) {
_global.mx.styles = new Object();
}
if (!_global.mx.styles.CSSTextStyles) {
var v1 = function () {};
mx.styles.CSSTextStyles = v1;
var v2 = v1.prototype;
v1.addTextStyles = function (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;
});
};
ASSetPropFlags(mx.styles.CSSTextStyles.prototype, null, 1);
}
#endinitclip
}
movieClip 1053 __Packages.mx.styles.CSSStyleDeclaration {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.styles) {
_global.mx.styles = new Object();
}
if (!_global.mx.styles.CSSStyleDeclaration) {
var v1 = function () {};
mx.styles.CSSStyleDeclaration = v1;
var v2 = v1.prototype;
v2.__getTextFormat = function (tf, bAll) {
var v5 = false;
if (this._tf != undefined) {
var v2;
for (v2 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || mx.styles.StyleManager.TextFormatStyleProps[v2]) {
if (tf[v2] == undefined) {
var v3 = this._tf[v2];
if (v3 != undefined) {
tf[v2] = v3;
} else {
v5 = true;
}
}
}
}
return v5;
}
v5 = true;
return v5;
};
v2.getStyle = function (styleProp) {
var v2 = this[styleProp];
var v3 = mx.styles.StyleManager.getColorName(v2);
return (v3 == undefined) ? v2 : v3;
};
v1.classConstruct = function () {
mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true);
return true;
};
v1.classConstructed = mx.styles.CSSStyleDeclaration.classConstruct();
v1.CSSTextStylesDependency = mx.styles.CSSTextStyles;
ASSetPropFlags(mx.styles.CSSStyleDeclaration.prototype, null, 1);
}
#endinitclip
}
movieClip 1054 __Packages.mx.styles.StyleManager {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.styles) {
_global.mx.styles = new Object();
}
if (!_global.mx.styles.StyleManager) {
var v1 = function () {};
mx.styles.StyleManager = v1;
var v2 = v1.prototype;
v1.registerInheritingStyle = function (styleName) {
mx.styles.StyleManager.inheritingStyles[styleName] = true;
};
v1.isInheritingStyle = function (styleName) {
return mx.styles.StyleManager.inheritingStyles[styleName] == true;
};
v1.registerColorStyle = function (styleName) {
mx.styles.StyleManager.colorStyles[styleName] = true;
};
v1.isColorStyle = function (styleName) {
return mx.styles.StyleManager.colorStyles[styleName] == true;
};
v1.registerColorName = function (colorName, colorValue) {
mx.styles.StyleManager.colorNames[colorName] = colorValue;
};
v1.isColorName = function (colorName) {
return mx.styles.StyleManager.colorNames[colorName] != undefined;
};
v1.getColorName = function (colorName) {
return mx.styles.StyleManager.colorNames[colorName];
};
v1.inheritingStyles = {'color': true, 'direction': true, 'fontFamily': true, 'fontSize': true, 'fontStyle': true, 'fontWeight': true, 'textAlign': true, 'textIndent': true};
v1.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};
v1.colorNames = {'black': 0, 'white': 16777215, 'red': 16711680, 'green': 65280, 'blue': 255, 'magenta': 16711935, 'yellow': 16776960, 'cyan': 65535, 'haloGreen': 8453965, 'haloBlue': 2881013, 'haloOrange': 16761344};
v1.TextFormatStyleProps = {'font': true, 'size': true, 'color': true, 'leftMargin': false, 'rightMargin': false, 'italic': true, 'bold': true, 'align': true, 'indent': true, 'underline': false, 'embedFonts': false};
v1.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};
ASSetPropFlags(mx.styles.StyleManager.prototype, null, 1);
}
#endinitclip
}
frame 2 {
allload();
}
frame 3 {
_root.player_language = 'eng';
_root.languagechanger.gotoAndPlay('start');
}
frame 4 {
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = '__mochibot__';
mbc = 'mochibot.com';
g = _global ? _global : _level0._root;
if (g[mb + swfid]) {
return g[mb + swfid];
}
s = System.security;
x = mc._root.getSWFVersion;
fv = x ? mc.getSWFVersion() : (_global ? 6 : 5);
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == 'localWithFile') {
return null;
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = (fv == 5) ? /:$version : System.capabilities.version;
u = 'http://' + mbc + '/my/core.swf?mv=8&fv=' + fv + '&v=' + escape(pv) + '&swfid=' + escape(swfid) + '&l=' + lv + '&f=' + mc + (sb ? '&sb=' + sb : '') + (trk ? '&t=1' : '');
lv = fv > 6 ? mc.getNextHighestDepth() : (g[mb + 'level'] ? g[mb + 'level'] + 1 : lv);
g[mb + 'level'] = lv;
if (fv == 5) {
res = '_level' + lv;
if (!eval(res)) {
loadMovieNum(u, lv);
}
return res;
}
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
return res;
}
__com_mochibot__('0267b691', this, 10301, true);
}
frame 5 {
__com_mochibot__('5c2f0f3c', this, 10301, true);
}
frame 6 {
gotoAndPlay('intro');
}
frame 21 {
changemusic.musicname = 'music02';
changemusic.gotoAndPlay('start');
options_panel._visible = false;
profile_panel._visible = false;
new_player_panel._visible = false;
aktpanel = 'main';
}
movieClip 355 {
frame 1 {
_y = random(50);
}
}
movieClip 358 {
frame 1 {
_y = random(50);
}
}
movieClip 361 {
frame 1 {
_y = random(50);
}
}
movieClip 364 {
frame 1 {
_y = random(50);
}
}
movieClip 367 {
frame 1 {
_y = random(50);
}
}
movieClip 370 {
frame 1 {
_y = random(50);
}
}
movieClip 371 {
frame 1 {
f1.gotoAndPlay(random(2000));
f2.gotoAndPlay(random(2000));
f3.gotoAndPlay(random(2000));
f4.gotoAndPlay(random(2000));
f5.gotoAndPlay(random(2000));
f6.gotoAndPlay(random(2000));
f7.gotoAndPlay(random(2000));
}
frame 2 {
stop();
}
}
movieClip 378 {
frame 1 {
this.tabEnabled = false;
}
frame 8 {
stop();
}
frame 18 {
stop();
}
frame 27 {
stop();
}
}
movieClip 381 {
}
movieClip 384 {
}
movieClip 387 {
frame 1 {
_y = random(50);
}
}
movieClip 390 {
frame 1 {
_y = random(50);
}
}
movieClip 391 {
frame 1 {
f1.gotoAndPlay(random(2000));
f2.gotoAndPlay(random(2000));
}
frame 2 {
stop();
}
}
movieClip 394 {
}
movieClip 395 {
instance campaign_button of movieClip 378 {
onClipEvent (rollOver) {
gotoAndStop('over');
_root.toutch(_name);
}
onClipEvent (rollOut) {
gotoAndStop('normal');
_root.untoutch();
}
onClipEvent (press) {
gotoAndStop('normal');
if (_root.taktplayer != '' and _root.taktplayer != undefined and _root.taktplayer != null and _root.taktplayer != 'null') {
_root.untoutch();
if (_root.taktstep[_root.taktplayer] != -1) {
_root.gametype = 'campign';
_root.blackfade('campign');
} else {
_root.messagedlg('restart_game', 'restart_game');
}
} else {
_root.tplayercount = 1;
_root.taktplayer = _root.tplayercount;
_root.tplayername[_root.tplayercount] = 'player';
_root.tmoney[_root.tplayercount] = 0;
_root.taktstep[_root.tplayercount] = 1;
_root.tmusic_volume[_root.tplayercount] = _root.music_volume;
_root.teffect_volume[_root.tplayercount] = _root.effect_volume;
_root.tplayer_language[_root.tplayercount] = _root.player_language;
_root.taveragegamesteps[_root.tplayercount] = 0;
_root.taveragegameundos[_root.tplayercount] = 0;
_root.taveragegametime[_root.tplayercount] = 0;
_root.tbestgamesteps[_root.tplayercount] = -1;
_root.tbestgameundos[_root.tplayercount] = -1;
_root.tbestgametime[_root.tplayercount] = -1;
_root.twrostgamesteps[_root.tplayercount] = 0;
_root.twrostgameundos[_root.tplayercount] = 0;
_root.twrostgametime[_root.tplayercount] = 0;
_root.tcheat1[_root.tplayercount] = 0;
_root.tcheat2[_root.tplayercount] = 0;
_root.tcheat3[_root.tplayercount] = 0;
_root.tcheat4[_root.tplayercount] = 0;
_root.tcheat5[_root.tplayercount] = 0;
_root.tcheat6[_root.tplayercount] = 0;
_root.tcheat1pos[_root.tplayercount] = 1;
_root.tcheat2pos[_root.tplayercount] = 1;
_root.tcheat3pos[_root.tplayercount] = 1;
_root.tcheat4pos[_root.tplayercount] = 1;
_root.tcheat5pos[_root.tplayercount] = 1;
_root.tcheat6pos[_root.tplayercount] = 1;
_root.tguidance[_root.tplayercount] = 'yes';
_root.def_types = 10;
tdef_types[_root.taktplayer] = _root.def_types;
myso.data.tdef_types = _root.tdef_types;
_root.def_colors = 2;
tdef_colors[_root.taktplayer] = _root.def_colors;
myso.data.tdef_colors = _root.tdef_colors;
_root.def_rows = 10;
tdef_rows[_root.taktplayer] = _root.def_rows;
myso.data.tdef_rows = _root.tdef_rows;
_root.def_down = 10;
tdef_down[_root.taktplayer] = _root.def_down;
myso.data.tdef_down = _root.tdef_down;
_root.def_up = 10;
tdef_up[_root.taktplayer] = _root.def_up;
myso.data.tdef_up = _root.tdef_up;
_root.def_packs = 3;
tdef_packs[_root.taktplayer] = _root.def_packs;
myso.data.tdef_packs = _root.tdef_packs;
_root.allsave();
_root.profile_panel.player_menu.menurefresh();
_root.new_player_panel._visible = false;
_root.playerinfo_save();
_root.gametype = 'campign';
_root.blackfade('campign');
}
}
}
instance custom_button of movieClip 378 {
onClipEvent (rollOver) {
gotoAndStop('over');
_root.toutch(_name);
}
onClipEvent (rollOut) {
gotoAndStop('normal');
_root.untoutch();
}
onClipEvent (press) {
gotoAndStop('normal');
if (_root.taktplayer != '' and _root.taktplayer != undefined and _root.taktplayer != null and _root.taktplayer != 'null') {
_root.untoutch();
_root.gametype = 'custom';
_root.blackfade('custom');
} else {
_root.tplayercount = 1;
_root.taktplayer = _root.tplayercount;
_root.tplayername[_root.tplayercount] = 'player';
_root.tmoney[_root.tplayercount] = 0;
_root.taktstep[_root.tplayercount] = 1;
_root.tmusic_volume[_root.tplayercount] = _root.music_volume;
_root.teffect_volume[_root.tplayercount] = _root.effect_volume;
_root.tplayer_language[_root.tplayercount] = _root.player_language;
_root.taveragegamesteps[_root.tplayercount] = 0;
_root.taveragegameundos[_root.tplayercount] = 0;
_root.taveragegametime[_root.tplayercount] = 0;
_root.tbestgamesteps[_root.tplayercount] = -1;
_root.tbestgameundos[_root.tplayercount] = -1;
_root.tbestgametime[_root.tplayercount] = -1;
_root.twrostgamesteps[_root.tplayercount] = 0;
_root.twrostgameundos[_root.tplayercount] = 0;
_root.twrostgametime[_root.tplayercount] = 0;
_root.tcheat1[_root.tplayercount] = 0;
_root.tcheat2[_root.tplayercount] = 0;
_root.tcheat3[_root.tplayercount] = 0;
_root.tcheat4[_root.tplayercount] = 0;
_root.tcheat5[_root.tplayercount] = 0;
_root.tcheat6[_root.tplayercount] = 0;
_root.tcheat1pos[_root.tplayercount] = 1;
_root.tcheat2pos[_root.tplayercount] = 1;
_root.tcheat3pos[_root.tplayercount] = 1;
_root.tcheat4pos[_root.tplayercount] = 1;
_root.tcheat5pos[_root.tplayercount] = 1;
_root.tcheat6pos[_root.tplayercount] = 1;
_root.tguidance[_root.tplayercount] = 'yes';
_root.def_types = 10;
tdef_types[_root.taktplayer] = _root.def_types;
myso.data.tdef_types = _root.tdef_types;
_root.def_colors = 2;
tdef_colors[_root.taktplayer] = _root.def_colors;
myso.data.tdef_colors = _root.tdef_colors;
_root.def_rows = 10;
tdef_rows[_root.taktplayer] = _root.def_rows;
myso.data.tdef_rows = _root.tdef_rows;
_root.def_down = 10;
tdef_down[_root.taktplayer] = _root.def_down;
myso.data.tdef_down = _root.tdef_down;
_root.def_up = 10;
tdef_up[_root.taktplayer] = _root.def_up;
myso.data.tdef_up = _root.tdef_up;
_root.def_packs = 3;
tdef_packs[_root.taktplayer] = _root.def_packs;
myso.data.tdef_packs = _root.tdef_packs;
_root.allsave();
_root.profile_panel.player_menu.menurefresh();
_root.new_player_panel._visible = false;
_root.playerinfo_save();
_root.gametype = 'custom';
_root.blackfade('custom');
}
}
}
instance options_button of movieClip 378 {
onClipEvent (rollOver) {
gotoAndStop('over');
_root.toutch(_name);
}
onClipEvent (rollOut) {
gotoAndStop('normal');
_root.untoutch();
}
onClipEvent (press) {
_root.untoutch();
gotoAndStop('normal');
_root.options_panel.gotoAndPlay('start');
}
}
instance credits_button of movieClip 378 {
onClipEvent (rollOver) {
gotoAndStop('over');
_root.toutch(_name);
}
onClipEvent (rollOut) {
gotoAndStop('normal');
_root.untoutch();
}
onClipEvent (press) {
_root.untoutch();
gotoAndStop('normal');
_root.blackfade('contact');
}
}
instance main_more_games_button of movieClip 378 {
onClipEvent (rollOver) {
gotoAndStop('over');
_root.toutch(_name);
}
onClipEvent (rollOut) {
gotoAndStop('normal');
_root.untoutch();
}
onClipEvent (press) {
_root.untoutch();
getURL('http://www.bgames.com/?utm_source=Olympic_tidy_up&utm_medium=game&utm_campaign=more_games_menu', '_blank');
}
}
instance facebook_button of movieClip 381 {
onClipEvent (rollOver) {
gotoAndStop('over');
_root.toutch(_name);
}
onClipEvent (rollOut) {
gotoAndStop('normal');
_root.untoutch();
}
onClipEvent (press) {
_root.untoutch();
getURL('http://www.facebook.com/sharer.php?u=http://www.bgames.com/funny-games/the-first-olympic-tidy-up.html&t=First Olympic Tidy Up', '_blank');
}
}
instance twitter_button of movieClip 384 {
onClipEvent (rollOver) {
gotoAndStop('over');
_root.toutch(_name);
}
onClipEvent (rollOut) {
gotoAndStop('normal');
_root.untoutch();
}
onClipEvent (press) {
_root.untoutch();
getURL('http://twitter.com/home?status=Playing First Olympic Tidy Up at http://www.bgames.com/funny-games/the-first-olympic-tidy-up.html', '_blank');
}
}
instance sponsorlogo1_button of movieClip 394 {
onClipEvent (rollOver) {
gotoAndStop('over');
_root.toutch(_name);
}
onClipEvent (rollOut) {
gotoAndStop('normal');
_root.untoutch();
}
onClipEvent (press) {
_root.untoutch();
getURL('http://www.bgames.com/?utm_source=Olympic_tidy_up&utm_medium=game&utm_campaign=logo_main_menu', '_blank');
}
}
frame 2 {
_root.set_language();
}
frame 10 {
stop();
}
}
movieClip 399 {
}
movieClip 402 {
}
movieClip 403 {
frame 1 {
pos = 50;
}
frame 1 {
function setposition(p) {
pos = p;
scrollbar_fogo._x = p * (scrollbar_vonal._width / 100);
}
}
instance scrollbar_fogo of movieClip 402 {
onClipEvent (press) {
_parent.vonszol = true;
}
onClipEvent (release) {
_parent.vonszol = false;
}
onClipEvent (releaseOutside) {
_parent.vonszol = false;
}
}
frame 2 {
if (vonszol) {
fogox = _xmouse;
if (fogox < 0) {
fogox = 0;
}
if (fogox > scrollbar_vonal._width) {
fogox = scrollbar_vonal._width;
}
pos = Math.round(fogox / (scrollbar_vonal._width / 100));
scrollbar_fogo._x = fogox;
}
}
frame 3 {
gotoAndPlay(2);
}
}
movieClip 407 {
frame 1 {
effect_scrollbar.setposition(_root.effect_volume);
music_scrollbar.setposition(_root.music_volume);
fullcb.gotoAndStop('false');
if (_root.fullscreen == 'true') {
fullcb.gotoAndStop('true');
}
szamlalo = 0;
}
frame 2 {
effect_scrollbar.setposition(_root.effect_volume);
music_scrollbar.setposition(_root.music_volume);
fullcb.gotoAndStop('false');
if (_root.fullscreen == 'true') {
fullcb.gotoAndStop('true');
}
szamlalo = 0;
}
frame 3 {
_root.effect_volume = effect_scrollbar.pos;
_root.music_volume = music_scrollbar.pos;
var mySoundTransformObject = new Object();
mySoundTransformObject.ll = _root.music_volume / 2;
mySoundTransformObject.lr = _root.music_volume / 2;
mySoundTransformObject.rr = _root.music_volume / 2;
mySoundTransformObject.rl = _root.music_volume / 2;
_root.music_movie.music.setTransform(mySoundTransformObject);
}
frame 4 {
if (_parent._visible == true) {
gotoAndPlay(3);
szamlalo = 0;
} else {
++szamlalo;
if (szamlalo > 30) {
stop();
} else {
gotoAndPlay(3);
}
}
}
}
movieClip 408 {
frame 1 {
}
instance back_button of movieClip 312 {
onClipEvent (rollOver) {
gotoAndStop('over');
_root.toutch(_name);
}
onClipEvent (rollOut) {
gotoAndStop('normal');
_root.untoutch();
}
onClipEvent (press) {
_root.untoutch();
gotoAndStop('normal');
_root.allsave();
_root.options_panel._visible = false;
gotoAndStop(4);
}
}
frame 4 {
_root.set_language();
stop();
}
frame 5 {
if (_root.ingame_menu_panel._visible == true) {
bcg_mc.gotoAndStop('minimal');
} else {
bcg_mc.gotoAndStop('normal');
}
}
frame 6 {
_root.set_language();
}
frame 7 {
_root.set_language();
_visible = true;
}
frame 10 {
stop();
}
}
movieClip 412 {
frame 1 {
this.tabEnabled = false;
}
frame 8 {
stop();
}
frame 18 {
stop();
}
frame 27 {
stop();
}
}
movieClip 415 {
}
movieClip 416 {
frame 1 {
function menurefresh() {
i = 1;
while (i <= 7) {
felirat = _root.tplayername[i + aktpos - 1];
eval('menubutton' + i + '.txt') = felirat;
eval('menubutton' + i + '.sorszam') = i + aktpos - 1;
if (felirat != undefined and felirat != '') {
eval('menubutton' + i)._visible = true;
} else {
eval('menubutton' + i)._visible = false;
}
if (i + aktpos - 1 == _root.taktplayer) {
(eval('menubutton' + i)).gotoAndStop('press');
} else {
(eval('menubutton' + i)).gotoAndStop('normal');
}
++i;
}
if (aktpos > 1) {
uparrow._visible = true;
} else {
uparrow._visible = false;
}
if (_root.tplayercount > aktpos + 6) {
downarrow._visible = true;
} else {
downarrow._visible = false;
}
}
}
instance uparrow of movieClip 415 {
onClipEvent (press) {
--_parent.aktpos;
_parent.menurefresh();
}
}
instance downarrow of movieClip 415 {
onClipEvent (press) {
++_parent.aktpos;
_parent.menurefresh();
}
}
instance menubutton1 of movieClip 412 {
onClipEvent (rollOver) {
gotoAndStop('over');
}
onClipEvent (rollOut) {
if (sorszam == _root.taktplayer) {
gotoAndStop('press');
} else {
gotoAndStop('normal');
}
}
onClipEvent (press) {
_root.taktplayer = sorszam;
_parent.menurefresh();
}
}
instance menubutton2 of movieClip 412 {
onClipEvent (rollOver) {
gotoAndStop('over');
}
onClipEvent (rollOut) {
if (sorszam == _root.taktplayer) {
gotoAndStop('press');
} else {
gotoAndStop('normal');
}
}
onClipEvent (press) {
_root.taktplayer = sorszam;
_parent.menurefresh();
}
}
instance menubutton3 of movieClip 412 {
onClipEvent (rollOver) {
gotoAndStop('over');
}
onClipEvent (rollOut) {
if (sorszam == _root.taktplayer) {
gotoAndStop('press');
} else {
gotoAndStop('normal');
}
}
onClipEvent (press) {
_root.taktplayer = sorszam;
_parent.menurefresh();
}
}
instance menubutton4 of movieClip 412 {
onClipEvent (rollOver) {
gotoAndStop('over');
}
onClipEvent (rollOut) {
if (sorszam == _root.taktplayer) {
gotoAndStop('press');
} else {
gotoAndStop('normal');
}
}
onClipEvent (press) {
_root.taktplayer = sorszam;
_parent.menurefresh();
}
}
instance menubutton5 of movieClip 412 {
onClipEvent (rollOver) {
gotoAndStop('over');
}
onClipEvent (rollOut) {
if (sorszam == _root.taktplayer) {
gotoAndStop('press');
} else {
gotoAndStop('normal');
}
}
onClipEvent (press) {
_root.taktplayer = sorszam;
_parent.menurefresh();
}
}
instance menubutton6 of movieClip 412 {
onClipEvent (rollOver) {
gotoAndStop('over');
}
onClipEvent (rollOut) {
if (sorszam == _root.taktplayer) {
gotoAndStop('press');
} else {
gotoAndStop('normal');
}
}
onClipEvent (press) {
_root.taktplayer = sorszam;
_parent.menurefresh();
}
}
instance menubutton7 of movieClip 412 {
onClipEvent (rollOver) {
gotoAndStop('over');
}
onClipEvent (rollOut) {
if (sorszam == _root.taktplayer) {
gotoAndStop('press');
} else {
gotoAndStop('normal');
}
}
onClipEvent (press) {
_root.taktplayer = sorszam;
_parent.menurefresh();
}
}
frame 2 {
aktpos = 1;
menurefresh();
}
frame 10 {
stop();
}
}
movieClip 417 {
instance new_button of movieClip 412 {
onClipEvent (rollOver) {
gotoAndStop('over');
_root.toutch(_name);
}
onClipEvent (rollOut) {
gotoAndStop('normal');
_root.untoutch();
}
onClipEvent (press) {
_root.untoutch();
gotoAndStop('normal');
_root.new_player_panel.gotoAndPlay(2);
_root.new_player_panel.startcampign = false;
_root.new_player_panel._visible = true;
}
}
instance del_button of movieClip 412 {
onClipEvent (rollOver) {
gotoAndStop('over');
_root.toutch(_name);
}
onClipEvent (rollOut) {
gotoAndStop('normal');
_root.untoutch();
}
onClipEvent (press) {
_root.untoutch();
gotoAndStop('normal');
if (_root.taktplayer != '' and _root.taktplayer != 0 and _root.taktplayer != undefined) {
_root.messagedlg('delete_player', 'delete player');
}
}
}
instance back_button of movieClip 412 {
onClipEvent (rollOver) {
gotoAndStop('over');
_root.toutch(_name);
}
onClipEvent (rollOut) {
gotoAndStop('normal');
_root.untoutch();
}
onClipEvent (press) {
_root.untoutch();
gotoAndStop('normal');
_root.changeplayer();
_root.allsave();
_root.profile_panel._visible = false;
}
}
frame 2 {
_root.set_language();
player_menu.menurefresh();
}
frame 10 {
stop();
}
}
movieClip 421 {
instance back_button of movieClip 312 {
onClipEvent (rollOver) {
gotoAndStop('over');
_root.toutch(_name);
}
onClipEvent (rollOut) {
gotoAndStop('normal');
_root.untoutch();
}
onClipEvent (press) {
_root.untoutch();
gotoAndStop('normal');
_root.new_player_panel._visible = false;
}
}
instance create_button of movieClip 312 {
onClipEvent (rollOver) {
gotoAndStop('over');
_root.toutch(_name);
}
onClipEvent (rollOut) {
gotoAndStop('normal');
_root.untoutch();
}
onClipEvent (press) {
_root.untoutch();
gotoAndStop('normal');
hiba = false;
nevtxt = _root.enterlevag(_parent.txt);
while (nevtxt.charAt(length(nevtxt) - 1) == ' ') {
nevtxt = nevtxt.substr(0, length(nevtxt) - 1);
}
while (nevtxt.charAt(0) == ' ') {
nevtxt = nevtxt.substr(1, length(nevtxt) - 1);
}
_parent.txt = nevtxt;
if (nevtxt == '' or nevtxt == undefined) {
hiba = true;
_root.messagebox('no_name_error');
}
i = 1;
while (i <= _root.tplayercount) {
if (_root.tplayername[i] == nevtxt) {
hiba = true;
_root.messagebox('name_already_exists');
}
++i;
}
if (_root.tplayercount >= 30) {
hiba = true;
_root.messagebox('too_many_player');
}
if (hiba == false) {
++_root.tplayercount;
_root.taktplayer = _root.tplayercount;
_root.tplayername[_root.tplayercount] = nevtxt;
_root.tmoney[_root.tplayercount] = 0;
_root.taktstep[_root.tplayercount] = 1;
_root.tmusic_volume[_root.tplayercount] = _root.music_volume;
_root.teffect_volume[_root.tplayercount] = _root.effect_volume;
_root.tplayer_language[_root.tplayercount] = _root.player_language;
_root.taveragegamesteps[_root.tplayercount] = 0;
_root.taveragegameundos[_root.tplayercount] = 0;
_root.taveragegametime[_root.tplayercount] = 0;
_root.tbestgamesteps[_root.tplayercount] = -1;
_root.tbestgameundos[_root.tplayercount] = -1;
_root.tbestgametime[_root.tplayercount] = -1;
_root.twrostgamesteps[_root.tplayercount] = 0;
_root.twrostgameundos[_root.tplayercount] = 0;
_root.twrostgametime[_root.tplayercount] = 0;
_root.tcheat1[_root.tplayercount] = 0;
_root.tcheat2[_root.tplayercount] = 0;
_root.tcheat3[_root.tplayercount] = 0;
_root.tcheat4[_root.tplayercount] = 0;
_root.tcheat5[_root.tplayercount] = 0;
_root.tcheat6[_root.tplayercount] = 0;
_root.tcheat1pos[_root.tplayercount] = 1;
_root.tcheat2pos[_root.tplayercount] = 1;
_root.tcheat3pos[_root.tplayercount] = 1;
_root.tcheat4pos[_root.tplayercount] = 1;
_root.tcheat5pos[_root.tplayercount] = 1;
_root.tcheat6pos[_root.tplayercount] = 1;
_root.tguidance[_root.tplayercount] = 'yes';
_root.def_types = 10;
tdef_types[_root.taktplayer] = _root.def_types;
myso.data.tdef_types = _root.tdef_types;
_root.def_colors = 2;
tdef_colors[_root.taktplayer] = _root.def_colors;
myso.data.tdef_colors = _root.tdef_colors;
_root.def_rows = 10;
tdef_rows[_root.taktplayer] = _root.def_rows;
myso.data.tdef_rows = _root.tdef_rows;
_root.def_down = 10;
tdef_down[_root.taktplayer] = _root.def_down;
myso.data.tdef_down = _root.tdef_down;
_root.def_up = 10;
tdef_up[_root.taktplayer] = _root.def_up;
myso.data.tdef_up = _root.tdef_up;
_root.def_packs = 3;
tdef_packs[_root.taktplayer] = _root.def_packs;
myso.data.tdef_packs = _root.tdef_packs;
_root.allsave();
_root.profile_panel.player_menu.menurefresh();
_root.new_player_panel._visible = false;
_root.playerinfo_save();
if (_parent.startcampign == true) {
_root.untoutch();
_root.gametype = 'campign';
_root.blackfade('campign');
}
if (_parent.startcustom == true) {
_root.untoutch();
_root.gametype = 'custom';
_root.blackfade('custom');
}
}
}
}
frame 2 {
_root.set_language();
username_txt.focusEnabled = true;
_root.new_player_panel.username_txt = '';
_root.new_player_panel.username_txt.focusEnabled = true;
Selection.setFocus('_root.new_player_panel.username_txt');
}
frame 6 {
_root.new_player_panel.username_txt = '';
_root.new_player_panel.username_txt.focusEnabled = true;
Selection.setFocus('_root.new_player_panel.username_txt');
}
frame 10 {
stop();
}
}
frame 28 {
stop();
}
frame 29 {
prevFrame();
gotoAndStop(undefined);
undefined;
}
frame 30 {
if (_root.musicplaying != true) {
changemusic.musicname = 'music02';
changemusic.gotoAndPlay('start');
}
aktpanel = 'briefing';
ingame_menu_panel._visible = false;
}
movieClip 430 {
frame 1 {
stop();
}
}
movieClip 437 {
frame 1 {
stop();
}
}
movieClip 444 {
frame 1 {
stop();
}
}
movieClip 448 {
frame 1 {
stop();
}
}
movieClip 452 {
frame 1 {
stop();
}
}
movieClip 467 {
frame 1 {
stop();
}
}
movieClip 472 {
frame 8 {
stop();
}
frame 18 {
stop();
}
frame 27 {
stop();
}
frame 38 {
stop();
}
}
movieClip 478 {
frame 1 {
this.tabEnabled = false;
}
frame 8 {
stop();
}
frame 18 {
stop();
}
frame 27 {
stop();
}
}
movieClip 484 {
}
movieClip 485 {
frame 1 {
checked = false;
stop();
}
frame 10 {
checked = true;
stop();
}
}
movieClip 486 {
frame 1 {
if (_root.tguidance[_root.taktplayer] != 'no') {
guidancecheckbox.gotoAndStop('true');
} else {
guidancecheckbox.gotoAndStop('false');
}
}
instance guidancecheckbox of movieClip 485 {
onClipEvent (rollOver) {
_root.toutch(_name);
}
onClipEvent (rollOut) {
_root.untoutch();
}
onClipEvent (release) {
_root.untoutch();
if (_root.tguidance[_root.taktplayer] == 'yes') {
gotoAndStop('false');
_root.tguidance[_root.taktplayer] = 'no';
} else {
gotoAndStop('true');
_root.tguidance[_root.taktplayer] = 'yes';
}
}
}
frame 10 {
stop();
}
}
movieClip 487 {
}
movieClip 493 {
frame 1 {
this.tabEnabled = false;
}
frame 8 {
stop();
}
frame 18 {
stop();
}
frame 27 {
stop();
}
}
movieClip 494 {
}
movieClip 498 {
frame 1 {
this.tabEnabled = false;
}
frame 8 {
stop();
}
frame 18 {
stop();
}
frame 27 {
stop();
}
}
movieClip 499 {
frame 1 {
if (_root.taktstep[_root.taktplayer] < 5) {
download_button._visible = false;
}
}
frame 1 {
function pressed(sender) {
bc1mc.glow2._visible = false;
bc2mc.glow2._visible = false;
bc3mc.glow2._visible = false;
bc4mc.glow2._visible = false;
bc5mc.glow2._visible = false;
bc6mc.glow2._visible = false;
(eval(sender)).glow2._visible = true;
pos = (eval(sender))._currentframe;
_root.briefing_panel.lastselect = sender;
if (sender == 'bc1mc') {
if (pos == 1) {
_root.briefing_panel.price = 3000;
nametxt = _root.getstr('bronze_owl');
descriptiontxt = _root.getstr('bronze_owl_desc');
}
if (pos == 2) {
_root.briefing_panel.price = 5000;
nametxt = _root.getstr('silver_owl');
descriptiontxt = _root.getstr('silver_owl_desc');
}
if (pos == 3) {
_root.briefing_panel.price = 7500;
nametxt = _root.getstr('gold_owl');
descriptiontxt = _root.getstr('gold_owl_desc');
}
}
if (sender == 'bc2mc') {
if (pos == 1) {
_root.briefing_panel.price = 7000;
nametxt = _root.getstr('silver_dove');
descriptiontxt = _root.getstr('silver_dove_desc');
}
if (pos == 2) {
_root.briefing_panel.price = 10000;
nametxt = _root.getstr('gold_dove');
descriptiontxt = _root.getstr('gold_dove_desc');
}
}
if (sender == 'bc3mc') {
if (pos == 1) {
_root.briefing_panel.price = 7500;
nametxt = _root.getstr('silver_sandal');
descriptiontxt = _root.getstr('silver_sandal_desc');
}
if (pos == 2) {
_root.briefing_panel.price = 11000;
nametxt = _root.getstr('gold_sandal');
descriptiontxt = _root.getstr('gold_sandal_desc');
}
}
if (sender == 'bc4mc') {
if (pos == 1) {
_root.briefing_panel.price = 4000;
nametxt = _root.getstr('silver_boar');
descriptiontxt = _root.getstr('silver_boar_desc');
}
if (pos == 2) {
_root.briefing_panel.price = 6500;
nametxt = _root.getstr('gold_boar');
descriptiontxt = _root.getstr('gold_boar_desc');
}
}
if (sender == 'bc5mc') {
if (pos == 1) {
_root.briefing_panel.price = 3500;
nametxt = _root.getstr('gold_grape');
descriptiontxt = _root.getstr('gold_grape_desc');
}
}
if (sender == 'bc6mc') {
if (pos == 1) {
_root.briefing_panel.price = 12000;
nametxt = _root.getstr('gold_harpoon');
descriptiontxt = _root.getstr('gold_harpoon_desc');
}
}
pricetxt = _root.getstr('price') + ':';
pricetxt2 = price;
if (_root.tmoney[_root.taktplayer] < price) {
buy_button.gotoAndPlay('inactive');
notenoughttxt = _root.getstr('not_enought_money');
} else {
buy_button.gotoAndPlay('normal');
notenoughttxt = '';
}
}
function setupscreen() {
moneytxt = _root.tmoney[_root.taktplayer];
nametxt = '';
descriptiontxt = _root.getstr('select_needed');
pricetxt = '';
pricetxt2 = '';
notenoughttxt = '';
_root.setupcheats();
bc1mc.glow1._visible = false;
bc1mc.glow2._visible = false;
bc2mc.glow1._visible = false;
bc2mc.glow2._visible = false;
bc3mc.glow1._visible = false;
bc3mc.glow2._visible = false;
bc4mc.glow1._visible = false;
bc4mc.glow2._visible = false;
bc5mc.glow1._visible = false;
bc5mc.glow2._visible = false;
bc6mc.glow1._visible = false;
bc6mc.glow2._visible = false;
buy_button.txt = _root.getstr('buy');
buy_button.gotoAndStop('inactive');
statistictxt = _root.getstr('statistics');
lasttxt = _root.getstr('last_game');
averagetxt = _root.getstr('average_so_far');
besttxt = _root.getstr('best_so_far');
worsttxt = _root.getstr('worst_so_far');
time_sz = _root.lastgametime;
o = Math.floor(time_sz / 3600);
p = Math.floor((time_sz - o * 3600) / 60);
mp = time_sz - o * 3600 - p * 60;
lasttimetxt = _root.getstr('time');
lasttimetxt2 = o + ':' + p + ':' + mp;
lastmovestxt = _root.getstr('move');
lastmovestxt2 = _root.lastgamesteps;
lastundostxt = _root.getstr('undos');
lastundostxt2 = _root.lastgameundos;
time_sz = (_root.taveragegametime[_root.taktplayer] * (_root.taktstep[_root.taktplayer] - 1) + _root.lastgametime) / _root.taktstep[_root.taktplayer];
_root.taveragegametime[_root.taktplayer] = time_sz;
o = Math.floor(time_sz / 3600);
p = Math.floor((time_sz - o * 3600) / 60);
mp = Math.floor(time_sz - o * 3600 - p * 60);
averagetimetxt = _root.getstr('time');
averagetimetxt2 = o + ':' + p + ':' + mp;
tmp = (_root.taveragegamesteps[_root.taktplayer] * (_root.taktstep[_root.taktplayer] - 1) + _root.lastgamesteps) / _root.taktstep[_root.taktplayer];
_root.taveragegamesteps[_root.taktplayer] = tmp;
averagemovestxt = _root.getstr('move');
averagemovestxt2 = Math.floor(tmp * 10) / 10;
tmp = (_root.taveragegameundos[_root.taktplayer] * (_root.taktstep[_root.taktplayer] - 1) + _root.lastgameundos) / _root.taktstep[_root.taktplayer];
_root.taveragegameundos[_root.taktplayer] = tmp;
averageundostxt = _root.getstr('undos');
averageundostxt2 = Math.floor(tmp * 10) / 10;
if (_root.tbestgametime[_root.taktplayer] == -1 or _root.tbestgametime[_root.taktplayer] > _root.lastgametime) {
_root.tbestgametime[_root.taktplayer] = _root.lastgametime;
}
time_sz = _root.tbestgametime[_root.taktplayer];
o = Math.floor(time_sz / 3600);
p = Math.floor((time_sz - o * 3600) / 60);
mp = Math.floor(time_sz - o * 3600 - p * 60);
besttimetxt = _root.getstr('time');
besttimetxt2 = o + ':' + p + ':' + mp;
if (_root.tbestgamesteps[_root.taktplayer] == -1 or _root.tbestgamesteps[_root.taktplayer] > _root.lastgamesteps) {
_root.tbestgamesteps[_root.taktplayer] = _root.lastgamesteps;
}
bestmovestxt = _root.getstr('move');
bestmovestxt2 = Math.floor(_root.tbestgamesteps[_root.taktplayer] * 10) / 10;
if (_root.tbestgameundos[_root.taktplayer] == -1 or _root.tbestgameundos[_root.taktplayer] > _root.lastgameundos) {
_root.tbestgameundos[_root.taktplayer] = _root.lastgameundos;
}
bestundostxt = _root.getstr('undos');
bestundostxt2 = Math.floor(_root.tbestgameundos[_root.taktplayer] * 10) / 10;
if (_root.twrostgametime[_root.taktplayer] < _root.lastgametime) {
_root.twrostgametime[_root.taktplayer] = _root.lastgametime;
}
time_sz = _root.twrostgametime[_root.taktplayer];
o = Math.floor(time_sz / 3600);
p = Math.floor((time_sz - o * 3600) / 60);
mp = Math.floor(time_sz - o * 3600 - p * 60);
worsttimetxt = _root.getstr('time');
worsttimetxt2 = o + ':' + p + ':' + mp;
if (_root.twrostgamesteps[_root.taktplayer] < _root.lastgamesteps) {
_root.twrostgamesteps[_root.taktplayer] = _root.lastgamesteps;
}
worstmovestxt = _root.getstr('move');
worstmovestxt2 = Math.floor(_root.twrostgamesteps[_root.taktplayer] * 10) / 10;
if (_root.twrostgameundos[_root.taktplayer] < _root.lastgameundos) {
_root.twrostgameundos[_root.taktplayer] = _root.lastgameundos;
}
worstundostxt = _root.getstr('undos');
worstundostxt2 = Math.floor(_root.twrostgameundos[_root.taktplayer] * 10) / 10;
}
}
instance bc2mc of movieClip 430 {
onClipEvent (rollOver) {
glow1._visible = true;
}
onClipEvent (rollOut) {
glow1._visible = false;
}
onClipEvent (press) {
_parent.pressed(_name);
}
}
instance bc3mc of movieClip 437 {
onClipEvent (rollOver) {
glow1._visible = true;
}
onClipEvent (rollOut) {
glow1._visible = false;
}
onClipEvent (press) {
_parent.pressed(_name);
}
}
instance bc4mc of movieClip 444 {
onClipEvent (rollOver) {
glow1._visible = true;
}
onClipEvent (rollOut) {
glow1._visible = false;
}
onClipEvent (press) {
_parent.pressed(_name);
}
}
instance bc5mc of movieClip 448 {
onClipEvent (rollOver) {
glow1._visible = true;
}
onClipEvent (rollOut) {
glow1._visible = false;
}
onClipEvent (press) {
_parent.pressed(_name);
}
}
instance bc6mc of movieClip 452 {
onClipEvent (rollOver) {
glow1._visible = true;
}
onClipEvent (rollOut) {
glow1._visible = false;
}
onClipEvent (press) {
_parent.pressed(_name);
}
}
instance bc1mc of movieClip 467 {
onClipEvent (rollOver) {
glow1._visible = true;
}
onClipEvent (rollOut) {
glow1._visible = false;
}
onClipEvent (press) {
_parent.pressed(_name);
}
}
instance buy_button of movieClip 472 {
onClipEvent (rollOver) {
if (_currentframe < 30) {
gotoAndStop('over');
}
_root.toutch(_name);
}
onClipEvent (rollOut) {
if (_currentframe < 30) {
gotoAndStop('normal');
}
_root.untoutch();
}
onClipEvent (press) {
_root.untoutch();
if (_currentframe < 30) {
gotoAndStop('normal');
firstbuy = true;
if (_root.tcheat1[_root.taktplayer] > 0) {
firstbuy = false;
}
if (_root.tcheat2[_root.taktplayer] > 0) {
firstbuy = false;
}
if (_root.tcheat3[_root.taktplayer] > 0) {
firstbuy = false;
}
if (_root.tcheat4[_root.taktplayer] > 0) {
firstbuy = false;
}
if (_root.tcheat5[_root.taktplayer] > 0) {
firstbuy = false;
}
if (_root.tcheat6[_root.taktplayer] > 0) {
firstbuy = false;
}
_root.tmoney[_root.taktplayer] -= _parent.price;
if (_parent.lastselect == 'bc1mc') {
++_root.tcheat1[_root.taktplayer];
}
if (_parent.lastselect == 'bc2mc') {
++_root.tcheat2[_root.taktplayer];
}
if (_parent.lastselect == 'bc3mc') {
++_root.tcheat3[_root.taktplayer];
}
if (_parent.lastselect == 'bc4mc') {
++_root.tcheat4[_root.taktplayer];
}
if (_parent.lastselect == 'bc5mc') {
++_root.tcheat5[_root.taktplayer];
}
if (_parent.lastselect == 'bc6mc') {
++_root.tcheat6[_root.taktplayer];
}
_root.playsound('buildupwav');
trace('buildupwav');
_parent.setupscreen();
if (firstbuy == true) {
_root.messagebox('firstbuy', 'firstbuy');
}
}
}
}
instance next_button of movieClip 472 {
onClipEvent (rollOver) {
gotoAndStop('over');
_root.toutch(_name);
}
onClipEvent (rollOut) {
gotoAndStop('normal');
_root.untoutch();
}
onClipEvent (press) {
gotoAndStop('normal');
if (_root.gametype == 'custom') {
_root.blackfade('custom');
}
if (_root.gametype == 'campign') {
_root.blackfade('campign');
}
}
}
instance ingamemenu_button of movieClip 478 {
onClipEvent (rollOver) {
gotoAndStop('over');
_root.toutch(_name);
}
onClipEvent (rollOut) {
gotoAndStop('normal');
_root.untoutch();
}
onClipEvent (press) {
_root.untoutch();
gotoAndStop('normal');
if (_root.game._visible == true) {
_root.fut = false;
_root.game.moving_time_counter.time_counter.stop();
}
_root.ingame_menu_panel.gotoAndPlay('start2');
_root.ingame_menu_panel._visible = true;
}
}
instance sponsorlogo3_button of movieClip 487 {
onClipEvent (rollOver) {
gotoAndStop('over');
_root.toutch(_name);
}
onClipEvent (rollOut) {
gotoAndStop('normal');
_root.untoutch();
}
onClipEvent (press) {
_root.untoutch();
getURL('http://www.bgames.com/?utm_source=Olympic_tidy_up&utm_medium=game&utm_campaign=logo_store', '_blank');
}
}
instance download_button of movieClip 494 {
onClipEvent (rollOver) {
gotoAndStop('over');
_root.toutch(_name);
}
onClipEvent (rollOut) {
gotoAndStop('normal');
_root.untoutch();
}
onClipEvent (press) {
_root.untoutch();
getURL('http://www.bgames.com/sponsor/first-olympic-tidy-up.html?utm_source=Olympic_tidy_up&utm_medium=game&utm_campaign=download_link', '_blank');
}
}
instance briefing_more_games_button of movieClip 498 {
onClipEvent (rollOver) {
gotoAndStop('over');
_root.toutch(_name);
}
onClipEvent (rollOut) {
gotoAndStop('normal');
_root.untoutch();
}
onClipEvent (press) {
_root.untoutch();
getURL('http://www.bgames.com/puzzle-games/?utm_source=Olympic_tidy_up&utm_medium=game&utm_campaign=store_play_puzzle', '_blank');
}
}
instance briefing_free_games_button of movieClip 498 {
onClipEvent (rollOver) {
gotoAndStop('over');
_root.toutch(_name);
}
onClipEvent (rollOut) {
gotoAndStop('normal');
_root.untoutch();
}
onClipEvent (press) {
_root.untoutch();
getURL('http://www.bgames.com/?utm_source=Olympic_tidy_up&utm_medium=game&utm_campaign=play_free_store', '_blank');
}
}
frame 2 {
_root.set_language();
if (_root.gametype == 'campign') {
++_root.taktstep[_root.taktplayer];
}
_root.allsave();
}
frame 10 {
stop();
}
}
movieClip 500 {
frame 1 {
if (_root.briefing_panel._visible == true) {
gotoAndPlay('start2');
}
}
instance main_button of movieClip 378 {
onClipEvent (rollOver) {
gotoAndStop('over');
_root.toutch(_name);
}
onClipEvent (rollOut) {
gotoAndStop('normal');
_root.untoutch();
}
onClipEvent (press) {
_root.untoutch();
_root.allsave();
gotoAndStop('normal');
_root.ingame_menu_panel._visible = false;
_root.blackfade('main');
_root.playersave();
}
}
instance restart_button of movieClip 378 {
onClipEvent (rollOver) {
gotoAndStop('over');
_root.toutch(_name);
}
onClipEvent (rollOut) {
gotoAndStop('normal');
_root.untoutch();
}
onClipEvent (press) {
_root.untoutch();
gotoAndStop('normal');
_root.messagedlg('are_you_sure', 'restart_level');
}
}
instance options_button of movieClip 378 {
onClipEvent (rollOver) {
gotoAndStop('over');
_root.toutch(_name);
}
onClipEvent (rollOut) {
gotoAndStop('normal');
_root.untoutch();
}
onClipEvent (press) {
_root.untoutch();
gotoAndStop('normal');
_root.options_panel.gotoAndPlay('start');
}
}
instance back_button of movieClip 378 {
onClipEvent (rollOver) {
gotoAndStop('over');
_root.toutch(_name);
}
onClipEvent (rollOut) {
gotoAndStop('normal');
_root.untoutch();
}
onClipEvent (press) {
_root.untoutch();
gotoAndStop('normal');
_root.ingame_menu_panel._visible = false;
if (_root.game._visible == true) {
_root.game.moving_time_counter.time_counter.play();
_root.fut = true;
}
}
}
instance more_games_button of movieClip 378 {
onClipEvent (rollOver) {
gotoAndStop('over');
_root.toutch(_name);
}
onClipEvent (rollOut) {
gotoAndStop('normal');
_root.untoutch();
}
onClipEvent (press) {
_root.untoutch();
getURL('http://www.bgames.com/?utm_source=Olympic_tidy_up&utm_medium=game&utm_campaign=more_games_options', '_blank');
}
}
frame 2 {
_root.set_language();
}
frame 10 {
stop();
}
frame 11 {
_root.set_language();
}
frame 20 {
stop();
}
}
movieClip 505 {
}
movieClip 506 {
}
frame 33 {
_root.setupcheats();
}
frame 37 {
stop();
}
frame 38 {
prevFrame();
gotoAndStop(undefined);
undefined;
}
frame 40 {
if (_root.musicplaying != true) {
changemusic.musicname = 'music02';
changemusic.gotoAndPlay('start');
}
changemusic.gotoAndPlay('start');
aktpanel = 'game';
ingame_menu_panel._visible = false;
}
movieClip 508 {
}
movieClip 511 {
}
movieClip 514 {
}
movieClip 516 {
frame 2 {
_visible = false;
stop();
}
frame 11 {
_visible = false;
_root.game.guidance();
gotoAndStop(2);
}
frame 20 {
_root.tilt_panel._visible = true;
}
frame 22 {
_root.game.guidance();
_root.playsound('undo');
}
frame 44 {
_root.tilt_panel._visible = false;
_visible = false;
gotoAndStop(2);
}
}
movieClip 519 {
frame 2 {
stop();
}
frame 10 {
szint = (eval('_root.game.cardrows.cardrow' + jhonnan + '.card' + jmelyiket + '.szinfolt')).getDepth();
(eval('_root.game.cardrows.cardrow' + jhonnan + '.card' + jmelyiket)).attachMovie('hintglow2', 'hintglow2', szint - 1, {'_x': 0, '_y': 20});
}
frame 30 {
esz = eval('_root.game.cardrows.cardrow' + jhova + '.elemszam');
szint = (eval('_root.game.cardrows.cardrow' + jhova + '.card' + esz + '.szinfolt')).getDepth();
(eval('_root.game.cardrows.cardrow' + jhova + '.card' + esz)).attachMovie('hintglow2', 'hintglow', szint - 1, {'_x': 0, '_y': 20});
}
frame 59 {
gotoAndStop(2);
}
frame 60 {
_root.game.newcard_button.hintglow.gotoAndPlay('start');
}
frame 90 {
gotoAndStop(2);
}
}
movieClip 521 {
frame 2 {
stop();
}
frame 15 {
trace(_root.stat);
i = 1;
while (i < _root.stat) {
eval('_root.game.backgroundcont.bcg.p' + i + '_mc')._visible = false;
++i;
}
}
}
movieClip 523 {
frame 2 {
stop();
}
frame 35 {
j = 1;
while (j <= _root.game.def_rows) {
i = 1;
while (i <= eval('_root.game.cardrows.cardrow' + j + '.elemszam')) {
cpos = (eval('_root.game.cardrows.cardrow' + j + '.card' + i))._currentframe;
if (cpos == ctype + 2) {
eval('_root.game.cardrows.cardrow' + j + '.card' + i + '.sign3')._visible = true;
(eval('_root.game.cardrows.cardrow' + j + '.card' + i + '.sign3')).gotoAndPlay('start');
} else {
eval('_root.game.cardrows.cardrow' + j + '.card' + i + '.sign3')._visible = false;
(eval('_root.game.cardrows.cardrow' + j + '.card' + i + '.sign3')).gotoAndStop(2);
}
++i;
}
++j;
}
stop();
}
}
movieClip 530 {
}
movieClip 531 {
}
movieClip 534 {
}
movieClip 537 {
}
movieClip 540 {
}
movieClip 543 {
}
movieClip 546 {
}
movieClip 549 {
}
movieClip 550 {
}
movieClip 555 {
}
movieClip 556 {
}
movieClip 559 {
}
movieClip 562 {
}
movieClip 565 {
}
movieClip 568 {
}
movieClip 571 {
}
movieClip 574 {
}
movieClip 575 {
}
movieClip 580 {
}
movieClip 581 {
}
movieClip 584 {
}
movieClip 587 {
}
movieClip 590 {
}
movieClip 593 {
}
movieClip 596 {
}
movieClip 599 {
}
movieClip 600 {
}
movieClip 605 {
}
movieClip 606 {
}
movieClip 609 {
}
movieClip 612 {
}
movieClip 615 {
}
movieClip 618 {
}
movieClip 621 {
}
movieClip 624 {
}
movieClip 625 {
}
movieClip 630 {
}
movieClip 631 {
}
movieClip 634 {
}
movieClip 637 {
}
movieClip 640 {
}
movieClip 643 {
}
movieClip 646 {
}
movieClip 649 {
}
movieClip 650 {
}
movieClip 655 {
}
movieClip 656 {
}
movieClip 659 {
}
movieClip 662 {
}
movieClip 665 {
}
movieClip 668 {
}
movieClip 671 {
}
movieClip 674 {
}
movieClip 675 {
}
movieClip 680 {
}
movieClip 681 {
}
movieClip 684 {
}
movieClip 687 {
}
movieClip 690 {
}
movieClip 693 {
}
movieClip 696 {
}
movieClip 699 {
}
movieClip 700 {
}
movieClip 703 {
}
movieClip 704 {
frame 2 {
stop();
}
frame 11 {
stop();
}
frame 21 {
stop();
}
frame 31 {
stop();
}
frame 41 {
stop();
}
frame 51 {
stop();
}
frame 61 {
stop();
}
frame 71 {
stop();
}
}
movieClip 710 {
}
movieClip 711 {
}
movieClip 717 {
frame 1 {
this.tabEnabled = false;
stop();
}
}
movieClip 721 {
frame 1 {
this.tabEnabled = false;
stop();
}
}
movieClip 723 {
instance undo_button of movieClip 717 {
onClipEvent (rollOver) {
gotoAndStop('over');
_root.toutch(_name);
}
onClipEvent (rollOut) {
gotoAndStop('normal');
_root.untoutch();
}
onClipEvent (press) {
gotoAndStop('normal');
_root.untoutch();
if (_root.game.lepes > 1 and _root.game.javito._currentframe < 10) {
_root.game.screenshot('_root.game', _root.takaro.container);
_root.takaro._visible = true;
_root.takaro.gotoAndPlay('start2');
_parent._parent.undostep();
}
}
}
instance help_button of movieClip 721 {
onClipEvent (rollOver) {
gotoAndStop('over');
_root.toutch(_name);
}
onClipEvent (rollOut) {
gotoAndStop('normal');
_root.untoutch();
}
onClipEvent (press) {
gotoAndStop('normal');
if (_root.game.javito._currentframe < 10) {
_parent._parent.legalstep(false);
}
}
}
}
movieClip 728 {
frame 2 {
stop();
}
frame 10 {
aktmoney = _root.strtoint(_parent.moneytxt);
if (aktmoney < _root.tmoney[_root.taktplayer]) {
aktmoney += 3;
}
if (aktmoney > _root.tmoney[_root.taktplayer]) {
aktmoney = _root.tmoney[_root.taktplayer];
}
_parent.moneytxt = aktmoney;
}
frame 11 {
if (aktmoney < _root.tmoney[_root.taktplayer]) {
gotoAndPlay(10);
} else {
gotoAndStop(2);
}
}
}
movieClip 729 {
instance ingamemenu_button of movieClip 478 {
onClipEvent (rollOver) {
gotoAndStop('over');
_root.toutch(_name);
}
onClipEvent (rollOut) {
gotoAndStop('normal');
_root.untoutch();
}
onClipEvent (press) {
_root.untoutch();
gotoAndStop('normal');
if (_root.game._visible == true) {
_root.fut = false;
_root.game.moving_time_counter.time_counter.stop();
}
_root.ingame_menu_panel.gotoAndPlay(1);
_root.ingame_menu_panel._visible = true;
}
}
frame 2 {
_root.set_language();
moneytxt = _root.tmoney[_root.taktplayer];
}
frame 10 {
stop();
}
}
movieClip 730 {
frame 1 {
originaldepth = this.getDepth();
}
frame 2 {
_root.tilt_panel._visible = false;
_root.mousecardrow.cardrow._visible = true;
_visible = false;
stop();
}
frame 10 {
_root.tilt_panel._visible = true;
_root.mousecardrow.cardrow._visible = false;
_visible = true;
_root.playsound('pickup_0' + (random(5) + 1));
}
frame 13 {
this.swapDepths(1000);
}
frame 14 {
xtav = _root._xmouse - _x * 0.625;
ytav = _root._ymouse - _y * 0.625;
_x = _x + xtav / 2;
_y = _y + ytav / 2;
}
frame 15 {
if (Math.abs(xtav) > 3 and Math.abs(xtav) > 3) {
gotoAndPlay(_currentframe - 1);
} else {
this.swapDepths(originaldepth);
gotoAndStop(2);
}
}
frame 20 {
this.swapDepths(1000);
_root.tilt_panel._visible = true;
_x = _root._xmouse * 1.6;
_y = _root._ymouse * 1.6;
_visible = true;
}
frame 21 {
esz = eval(targetrow + '.elemszam');
i = 1;
while (i <= eval(targetrow + '.elemszam')) {
if (eval(targetrow + '.card' + i + '._alpha') != 100) {
--esz;
}
++i;
}
if (esz == 0) {
gotoAndPlay('torow2');
}
celx = (eval(targetrow))._x * 1.15 + _root.game.cardrows._x;
cely = (eval(targetrow))._y * 1.15 + _root.game.cardrows._y - esz * 30;
}
frame 22 {
xtav = celx - _x;
ytav = cely - _y;
_x = _x + xtav / 2;
_y = _y + ytav / 2;
}
frame 23 {
if (Math.abs(xtav) > 3 or Math.abs(ytav) > 3) {
gotoAndPlay(_currentframe - 1);
}
}
frame 24 {
this.swapDepths(originaldepth);
}
frame 28 {
_root.playsound('putdown_0' + (random(5) + 1));
if (eval(targetrow + '.elemszam') == 0) {
pufmoving._visible = false;
} else {
pufmoving._visible = true;
}
}
frame 30 {
if (lepes) {
_root.game.helyzetelemzes();
}
_root.tilt_panel._visible = false;
i = 1;
while (i <= eval(targetrow + '.elemszam') + cardrow.elemszam) {
eval(eval(targetrow) + '.card' + i)._alpha = 100;
++i;
}
while (cardrow.elemszam > 0) {
cardrow.remove();
}
}
frame 53 {
gotoAndStop(2);
}
frame 70 {
_y = _y + 95;
_root.tilt_panel._visible = true;
_root.mousecardrow.cardrow._visible = false;
_visible = true;
this.swapDepths(1000);
_root.playsound('pickup_0' + (random(5) + 1));
}
frame 71 {
xtav = _root._xmouse - _x * 0.625;
ytav = _root._ymouse - _y * 0.625;
_x = _x + xtav / 2;
_y = _y + ytav / 2;
}
frame 72 {
if (Math.abs(xtav) > 3 and Math.abs(xtav) > 3) {
gotoAndPlay(71);
} else {
this.swapDepths(originaldepth);
gotoAndStop(2);
}
}
frame 82 {
xtav = (eval(targetrow))._x * 1.15 + _root.game.cardrows._x - _x;
ytav = (eval(targetrow))._y * 1.15 + 10 + _root.game.cardrows._y - esz * 30 - (_y - 95);
_x = _x + xtav / 2;
_y = _y + ytav / 2;
}
frame 83 {
if (Math.abs(xtav) > 3 and Math.abs(xtav) > 3) {
gotoAndPlay(82);
}
}
frame 84 {
this.swapDepths(originaldepth);
}
frame 85 {
i = 1;
while (i <= eval(targetrow + '.elemszam') + cardrow.elemszam) {
eval(eval(targetrow) + '.card' + i)._alpha = 100;
++i;
}
while (cardrow.elemszam > 0) {
cardrow.remove();
}
if (lepes) {
_root.game.helyzetelemzes();
}
_root.playsound('putdown_0' + (random(5) + 1));
gotoAndStop(2);
}
}
movieClip 733 {
frame 1 {
putdownsign._visible = false;
}
frame 2 {
stop();
}
}
movieClip 734 {
frame 2 {
i = 1;
while (i <= _parent.def_rows) {
duplicateMovieClip('cardrow', 'cardrow' + i, this.getNextHighestDepth());
eval('cardrow' + i)._x = (i - 1) * 85;
eval('cardrow' + i)._visible = true;
eval('cardrow' + i + '.rowid') = i;
duplicateMovieClip('felho', 'felho' + i, this.getNextHighestDepth());
eval('felho' + i)._x = (i - 1) * 85 - 40;
++i;
}
felho._visible = false;
_x = (1024 - _width) / 2 + 40;
stop();
}
}
movieClip 736 {
frame 1 {
fut = true;
time_sz = 0;
}
frame 5 {
++time_sz;
o = Math.floor(time_sz / 3600);
p = Math.floor((time_sz - o * 3600) / 60);
mp = time_sz - o * 3600 - p * 60;
timetxt = p + ':' + mp;
_root.game.cheats.c1mc.nextstep();
_root.game.cheats.c2mc.nextstep();
_root.game.cheats.c3mc.nextstep();
_root.game.cheats.c4mc.nextstep();
_root.game.cheats.c5mc.nextstep();
_root.game.cheats.c6mc.nextstep();
_root.game.cheats.c_allup.nextstep();
_root.game.cheats.c_illegalmoving.nextstep();
_root.game.cheats.c_oneillegalmoving.nextstep();
_root.game.cheats.c_changecards.nextstep();
_root.game.cheats.c_changecards2.nextstep();
_root.game.cheats.c_rowup.nextstep();
_root.game.cheats.c_cardup.nextstep();
_root.game.cheats.c_illegalrowmoving.nextstep();
_root.game.cheats.c_cardback.nextstep();
_root.game.cheats.c_rowback.nextstep();
_root.game.cheats.c_shuffle.nextstep();
}
frame 29 {
if (_root.game.laststeptime + 60 == time_sz) {
_root.game.laststeptime = time_sz;
_root.messagebox('undorrestart', 'undorrestart');
this.stop();
}
}
frame 30 {
gotoAndPlay(5);
}
}
movieClip 737 {
}
movieClip 738 {
frame 2 {
stop();
}
frame 10 {
_visible = true;
}
frame 55 {
_visible = false;
gotoAndStop(2);
}
}
movieClip 741 {
}
movieClip 744 {
}
movieClip 747 {
}
movieClip 750 {
}
movieClip 753 {
}
movieClip 754 {
frame 1 {
hintglow._visible = false;
}
frame 10 {
stop();
}
frame 20 {
if (celpos == 2) {
stop();
}
}
frame 30 {
if (celpos == 3) {
stop();
}
}
frame 40 {
if (celpos == 4) {
stop();
}
}
frame 50 {
if (celpos == 5) {
stop();
}
}
frame 61 {
_visible = false;
stop();
}
}
movieClip 760 {
frame 1 {
stop();
}
}
movieClip 761 {
frame 35 {
gotoAndPlay(13);
}
}
movieClip 762 {
frame 1 {
feltoltido = 60;
gotoAndStop(Math.round((50 / feltoltido) * aktido));
}
frame 1 {
function nextstep() {
if (aktido < feltoltido and _visible == true) {
++aktido;
_root.tcheat1pos[_root.tplayercount] = aktido;
gotoAndStop(Math.round((50 / feltoltido) * aktido));
}
}
}
}
movieClip 768 {
frame 1 {
stop();
}
}
movieClip 769 {
frame 1 {
feltoltido = 60;
gotoAndStop(Math.round((50 / feltoltido) * aktido));
}
frame 1 {
function nextstep() {
if (aktido < feltoltido and _visible == true) {
++aktido;
_root.tcheat2pos[_root.tplayercount] = aktido;
gotoAndStop(Math.round((50 / feltoltido) * aktido));
}
}
}
}
movieClip 775 {
frame 1 {
stop();
}
}
movieClip 776 {
frame 1 {
feltoltido = 60;
gotoAndStop(Math.round((50 / feltoltido) * aktido));
}
frame 1 {
function nextstep() {
if (aktido < feltoltido and _visible == true) {
++aktido;
_root.tcheat3pos[_root.tplayercount] = aktido;
gotoAndStop(Math.round((50 / feltoltido) * aktido));
}
}
}
}
movieClip 782 {
frame 1 {
stop();
}
}
movieClip 783 {
frame 1 {
feltoltido = 60;
gotoAndStop(Math.round((50 / feltoltido) * aktido));
}
frame 1 {
function nextstep() {
if (aktido < feltoltido and _visible == true) {
++aktido;
_root.tcheat4pos[_root.tplayercount] = aktido;
gotoAndStop(Math.round((50 / feltoltido) * aktido));
}
}
}
}
movieClip 789 {
frame 1 {
feltoltido = 60;
gotoAndStop(Math.round((50 / feltoltido) * aktido));
}
frame 1 {
function nextstep() {
if (aktido < feltoltido and _visible == true) {
++aktido;
_root.tcheat5pos[_root.tplayercount] = aktido;
gotoAndStop(Math.round((50 / feltoltido) * aktido));
}
}
}
}
movieClip 795 {
frame 1 {
feltoltido = 60;
gotoAndStop(Math.round((50 / feltoltido) * aktido));
}
frame 1 {
function nextstep() {
if (aktido < feltoltido and _visible == true) {
++aktido;
_root.tcheat6pos[_root.tplayercount] = aktido;
gotoAndStop(Math.round((50 / feltoltido) * aktido));
}
}
}
}
movieClip 796 {
frame 1 {
c1mc.aktido = _root.tcheat1pos[_root.tplayercount];
c2mc.aktido = _root.tcheat2pos[_root.tplayercount];
c3mc.aktido = _root.tcheat3pos[_root.tplayercount];
c4mc.aktido = _root.tcheat4pos[_root.tplayercount];
c5mc.aktido = _root.tcheat5pos[_root.tplayercount];
c6mc.aktido = _root.tcheat6pos[_root.tplayercount];
}
instance c1mc of movieClip 762 {
onClipEvent (press) {
_root.untoutch();
if (aktido == feltoltido) {
if (_root.tcheat1[_root.taktplayer] == 1) {
_root.game.bonuszhelp_panel.action = 'cardup';
_root.game.bonuszhelp_panel.gotoAndPlay('start');
_root.game.cardup = true;
}
if (_root.tcheat1[_root.taktplayer] == 2) {
_root.game.bonuszhelp_panel.action = 'rowup';
_root.game.bonuszhelp_panel.gotoAndPlay('start');
_root.game.rowup = true;
}
if (_root.tcheat1[_root.taktplayer] == 3) {
_root.game.bonuszhelp_panel.action = 'allup';
_root.game.bonuszhelp_panel.gotoAndPlay('start');
_root.game.allup = true;
}
}
}
}
instance c2mc of movieClip 769 {
onClipEvent (press) {
_root.untoutch();
if (aktido == feltoltido) {
if (_root.tcheat2[_root.taktplayer] == 1) {
_root.game.bonuszhelp_panel.action = 'changecards';
_root.game.bonuszhelp_panel.gotoAndPlay('start');
_root.game.changecards = true;
_root.game.cheatstep = 0;
}
if (_root.tcheat2[_root.taktplayer] == 2) {
_root.game.bonuszhelp_panel.action = 'changecards2';
_root.game.bonuszhelp_panel.gotoAndPlay('start');
_root.game.changecards2 = true;
_root.game.cheatstep = 0;
}
}
}
}
instance c3mc of movieClip 776 {
onClipEvent (press) {
if (aktido == feltoltido) {
if (_root.tcheat3[_root.taktplayer] == 1) {
_root.game.bonuszhelp_panel.action = 'oneillegalmoving';
_root.game.bonuszhelp_panel.gotoAndPlay('start');
_root.game.oneillegalmoving = true;
_root.game.cheatstep = 0;
}
if (_root.tcheat3[_root.taktplayer] == 2) {
_root.game.bonuszhelp_panel.action = 'illegalmoving';
_root.game.bonuszhelp_panel.gotoAndPlay('start');
_root.game.illegalmoving = true;
_root.game.cheatstep = 0;
}
}
}
}
instance c4mc of movieClip 783 {
onClipEvent (press) {
if (aktido == feltoltido) {
if (_root.tcheat4[_root.taktplayer] == 1) {
_root.game.bonuszhelp_panel.action = 'cardback';
_root.game.bonuszhelp_panel.gotoAndPlay('start');
_root.game.cardback = true;
_root.game.cheatstep = 0;
}
if (_root.tcheat4[_root.taktplayer] == 2) {
_root.game.bonuszhelp_panel.action = 'rowback';
_root.game.bonuszhelp_panel.gotoAndPlay('start');
_root.game.rowback = true;
_root.game.cheatstep = 0;
}
}
}
}
instance c5mc of movieClip 789 {
onClipEvent (press) {
if (aktido == feltoltido) {
_root.game.bonuszhelp_panel.action = 'shuffle';
_root.game.bonuszhelp_panel.gotoAndPlay('start');
_root.game.shuffle = true;
_root.game.cheatstep = 0;
}
}
}
instance c6mc of movieClip 795 {
onClipEvent (press) {
if (aktido == feltoltido) {
_root.game.bonuszhelp_panel.action = 'illegalrowmoving';
_root.game.bonuszhelp_panel.gotoAndPlay('start');
_root.game.illegalrowmoving = true;
_root.game.cheatstep = 0;
}
}
}
frame 2 {
stop();
}
}
movieClip 800 {
}
button 801 {
on (release) {
_root.game.cardup = false;
_root.game.rowup = false;
_root.game.allup = false;
_root.game.changecards = false;
_root.game.changecards2 = false;
_root.game.illegalmoving = false;
_root.game.oneillegalmoving = false;
_root.game.cardback = false;
_root.game.rowback = false;
_root.game.shuffle = false;
_root.game.illegalrowmoving = false;
gotoAndPlay('stop');
}
}
movieClip 802 {
frame 2 {
stop();
}
frame 10 {
bonuszmsg.txt = _root.getstr(action + '_msg');
}
frame 20 {
stop();
}
frame 29 {
bonuszmsg.txt = _root.getstr(action + '_msg2');
stop();
}
}
movieClip 804 {
frame 2 {
_root.tilt_panel._visible = false;
stop();
}
frame 10 {
_root.tilt_panel._visible = true;
if (_root.game.c1name_1 != '') {
var point = {'x': 0, 'y': 0};
tellTarget ('_root.game.c1name_1') {
localToGlobal(_root.game.cardmover_mc.point);
}
x1 = point.x;
y1 = point.y;
ctype = eval(_root.game.c1name_1 + '.cardtype');
ccolor = eval(_root.game.c1name_1 + '.cardcolor');
cpos = eval(_root.game.c1name_1 + '._currentframe');
} else {
x1 = _root.game.x1_1;
y1 = _root.game.y1_1;
ctype = _root.game.ctype_1;
ccolor = _root.game.ccolor_1;
cpos = _root.game.cpos_1;
}
var point = {'x': 0, 'y': 0};
tellTarget ('_root.game.c2name_1') {
localToGlobal(_root.game.cardmover_mc.point);
}
x2 = point.x;
y2 = point.y;
_root.game.movingcard._x = x1;
_root.game.movingcard._y = y1;
_root.game.movingcard.szinfolt.gotoAndStop(ccolor);
_root.game.movingcard.gotoAndStop(cpos);
_root.game.movingcard._visible = true;
}
frame 11 {
var point = {'x': 0, 'y': 0};
tellTarget ('_root.game.c2name_1') {
localToGlobal(_root.game.cardmover_mc.point);
}
x2 = point.x;
y2 = point.y;
xkul = x2 - _root.game.movingcard._x;
ykul = y2 - 100 - _root.game.movingcard._y;
_root.game.movingcard._x += xkul / 2;
_root.game.movingcard._y += ykul / 2;
}
frame 12 {
if (Math.abs(xkul) < 3 and Math.abs(ykul) < 3) {
} else {
gotoAndPlay(11);
}
}
frame 13 {
var point = {'x': 0, 'y': 0};
tellTarget ('_root.game.c2name_1') {
localToGlobal(_root.game.cardmover_mc.point);
}
x2 = point.x;
y2 = point.y;
xkul = x2 - _root.game.movingcard._x;
ykul = y2 - _root.game.movingcard._y;
_root.game.movingcard._x += xkul / 2;
_root.game.movingcard._y += ykul / 2;
}
frame 14 {
if (Math.abs(xkul) < 3 and Math.abs(ykul) < 3) {
_root.game.movingcard._visible = false;
eval(_root.game.c2name_1)._visible = true;
eval(_root.game.c2name_1)._alpha = 100;
--_root.game.cardmovingcount;
if (_root.game.cardmovingcount > 0) {
i = 1;
while (i <= _root.game.cardmovingcount) {
eval('_root.game.c1name_' + i) = eval('_root.game.c1name_' + (i + 1));
eval('_root.game.c2name_' + i) = eval('_root.game.c2name_' + (i + 1));
eval('_root.game.x1_' + i) = eval('_root.game.x1_' + (i + 1));
eval('_root.game.y1_' + i) = eval('_root.game.y1_' + (i + 1));
eval('_root.game.ctype_' + i) = eval('_root.game.ctype_' + (i + 1));
eval('_root.game.ccolor_' + i) = eval('_root.game.ccolor_' + (i + 1));
eval('_root.game.cpos_' + i) = eval('_root.game.cpos_' + (i + 1));
++i;
}
gotoAndPlay('start');
} else {
_root.game.helyzetelemzes();
gotoAndStop(2);
}
} else {
gotoAndPlay(13);
}
}
}
movieClip 811 {
frame 1 {
this.tabEnabled = false;
}
frame 8 {
stop();
}
frame 18 {
stop();
}
frame 27 {
stop();
}
}
movieClip 813 {
frame 65 {
stop();
}
}
movieClip 814 {
instance next_button of movieClip 811 {
onClipEvent (rollOver) {
gotoAndStop('over');
_root.toutch(_name);
}
onClipEvent (rollOut) {
gotoAndStop('normal');
_root.untoutch();
}
onClipEvent (press) {
_root.untoutch();
_root.game.backgroundcont.cacheAsBitmap = true;
_root.blackfade('briefing');
}
}
frame 2 {
next_button._visible = false;
stop();
}
instance next_button of movieClip 811 {
onClipEvent (rollOver) {
gotoAndStop('over');
_root.toutch(_name);
}
onClipEvent (rollOut) {
gotoAndStop('normal');
_root.untoutch();
}
onClipEvent (press) {
_root.untoutch();
_root.game.backgroundcont.cacheAsBitmap = true;
if (_root.taktstep[_root.taktplayer] / 7 != Math.round(_root.taktstep[_root.taktplayer] / 7)) {
_root.blackfade('briefing');
} else {
_root.messagebox('placefinished', 'placefinished');
}
}
}
frame 10 {
next_button._visible = false;
_root.stopmusic.gotoAndPlay('start');
}
frame 30 {
_root.playsound('levelendwav');
}
frame 50 {
_root.set_language();
_root.tilt_panel._visible = true;
_root.untoutch();
}
frame 51 {
_root.tilt_panel._visible = true;
_root.game.ingame_panel._alpha -= 2;
_parent.rock_mc._alpha -= 2;
_parent.cheats._alpha -= 2;
_root.game.felhokmzg1._alpha -= 2;
_root.felhokmzg2._alpha -= 2;
_root.game.moving_time_counter._alpha -= 2;
_root.game.cardrows._alpha -= 2;
_root.csaj_mc._alpha -= 2;
}
frame 52 {
if (_root.game.ingame_panel._alpha > 0 or _root.csaj_mc._alpha > 0) {
gotoAndPlay(_currentframe - 1);
}
}
frame 53 {
if (_root.ingame_panel._alpha > 0 or _root.csaj_mc._alpha > 0) {
gotoAndPlay(_currentframe - 2);
}
}
frame 54 {
_root.felhokmzg2.stop();
_root.game.felhokmzg1.stop();
szam = 10;
}
frame 55 {
szam -= 2;
var filter = _parent.backgroundcont.filters[0];
filter.blurX = szam;
filter.blurY = szam;
filter.quality = 1;
_parent.backgroundcont.filters = new Array(filter);
}
frame 56 {
if (szam > 0) {
gotoAndPlay(_currentframe - 1);
}
}
frame 57 {
_root.ingame_panel._visible = false;
_parent.rock_mc._visible = false;
_parent.cheats._visible = false;
_root.game.felhokmzg1._visible = false;
_root.felhokmzg2._visible = false;
_root.game.moving_time_counter._visible = false;
_root.game.cardrows._visible = false;
_root.csaj_mc._visible = false;
}
frame 59 {
_parent.backgroundcont._alpha += 2;
}
frame 60 {
if (_parent.backgroundcont._alpha < 100) {
gotoAndPlay(_currentframe - 1);
}
}
frame 61 {
_parent.backgroundcont.filters = '';
}
frame 63 {
id = _root.strtoint(_root.stat);
xpos = (eval('_root.game.backgroundcont.bcg.p' + id + '_mc'))._x + (eval('_root.game.backgroundcont.bcg.p' + id + '_mc.middle_mc'))._x;
ypos = (eval('_root.game.backgroundcont.bcg.p' + id + '_mc'))._y + (eval('_root.game.backgroundcont.bcg.p' + id + '_mc.middle_mc'))._y;
buildup_mc._x = xpos;
buildup_mc._y = ypos;
_root.playsound('buildupwav');
trace('buildupwav2');
}
frame 105 {
_parent.backgroundcont.filters = '';
}
frame 106 {
id = _root.strtoint(_root.stat);
szam = 100;
eval('_root.game.backgroundcont.bcg.p' + id + '_mc')._alpha = 100;
eval('_root.game.backgroundcont.bcg.p' + id + '_mc')._visible = true;
}
frame 107 {
szam -= 5;
eval('_root.game.backgroundcont.bcg.p' + id + '_mc')._alpha = szam;
}
frame 108 {
if (szam > 0) {
gotoAndPlay(_currentframe - 1);
}
}
frame 111 {
next_button._visible = true;
}
frame 112 {
_root.tilt_panel._visible = false;
stop();
}
}
movieClip 815 {
frame 1 {
_root.game.ingame_panel._alpha = 100;
_root.ingame_panel._visible = true;
next_button._visible = false;
movingrow._visible = false;
_root.felhokmzg2.play();
_root.game.felhokmzg1.play();
dropcount = 0;
liftcount = 0;
laststeptime = 0;
utolsoclicktime = 0;
}
frame 1 {
function letorol() {
j = 1;
while (j <= _root.game.def_rows) {
esz = eval('_root.game.cardrows.cardrow' + j + '.elemszam');
i = 1;
while (i <= esz) {
(eval('_root.game.cardrows.cardrow' + j)).remove();
++i;
}
++j;
}
dropcount = 0;
}
function kever() {
i = 1;
while (i < 1600) {
eval('crdtype' + i) = undefined;
++i;
}
pack = 1;
while (pack <= def_packs) {
tip = 1;
while (tip <= def_types) {
col = 1;
while (col <= def_colors) {
joe = false;
sz = 0;
while (!joe) {
++sz;
if (sz < 800) {
hova = random(def_packs * def_types * def_colors) + 1;
}
if (sz == 800) {
hova = 1;
trace('ez van');
}
if (sz > 800) {
++hova;
}
if (eval('crdtype' + hova) == undefined) {
joe = true;
eval('crdtype' + hova) = tip;
eval('crdcolor' + hova) = col;
}
}
++col;
}
++tip;
}
++pack;
}
aktcrd = def_packs * def_types * def_colors;
}
function lapbeszur(ctype, ccolor) {
ide = random(aktcrd) + 1;
i = aktcrd;
while (i >= ide) {
eval('crdtype' + (i + 1)) = eval('crdtype' + i);
eval('crdcolor' + (i + 1)) = eval('crdcolor' + i);
--i;
}
eval('crdtype' + ide) = ctype;
eval('crdcolor' + ide) = ccolor;
++aktcrd;
rock_mc.cardcounttxt = aktcrd;
}
function leoszt() {
aktrow = 0;
_root.game.dropend = false;
i = 1;
while (i <= def_down) {
++aktrow;
if (aktrow > def_rows) {
aktrow = 1;
}
tellTarget (''cardrows.cardrow' + aktrow') {
tmp = eval('_parent._parent.crdtype' + _parent._parent.aktcrd);
tmp2 = eval('_parent._parent.crdcolor' + _parent._parent.aktcrd);
newcardplace(tmp, tmp2, 'down');
--_parent._parent.aktcrd;
}
++i;
}
i = 1;
while (i <= def_up) {
++aktrow;
if (aktrow > def_rows) {
aktrow = 1;
}
tellTarget (''cardrows.cardrow' + aktrow') {
tmp = eval('_parent._parent.crdtype' + _parent._parent.aktcrd);
tmp2 = eval('_parent._parent.crdcolor' + _parent._parent.aktcrd);
newcardplace(tmp, tmp2, 'up');
--_parent._parent.aktcrd;
}
++i;
}
if (aktcrd == 0) {
newcard_button._visible = false;
_root.untoutch();
}
rock_mc.cardcounttxt = aktcrd;
allcard = aktcrd;
}
function ujlap() {
if (aktcrd > 0) {
aktrow = 0;
i = 1;
while (i <= def_rows) {
if (aktcrd > 0) {
++aktrow;
if (eval('_root.game.cardrows.cardrow' + aktrow + '.elemszam') < 100) {
tellTarget (''cardrows.cardrow' + aktrow') {
tmp = eval('_root.game.crdtype' + _root.game.aktcrd);
tmp2 = eval('_root.game.crdcolor' + _root.game.aktcrd);
newcardplace(tmp, tmp2, 'up');
--_root.game.aktcrd;
}
}
}
++i;
}
rock_mc.cardcounttxt = aktcrd;
_root.game.dropend = false;
}
szazalek = aktcrd / (allcard / 100);
if (aktcrd == 0) {
newcard_button.celpos = 6;
}
if (szazalek > 0) {
newcard_button.celpos = 5;
}
if (szazalek > 20) {
newcard_button.celpos = 4;
}
if (szazalek > 40) {
newcard_button.celpos = 3;
}
if (szazalek > 60) {
newcard_button.celpos = 2;
}
if (szazalek > 80) {
newcard_button.celpos = 1;
}
if (newcard_button._currentframe != newcard_button.celpos * 10) {
newcard_button.play();
}
rock_mc.swapDepths(this.getNextHighestDepth());
}
function saveundo() {
++_root.game.lepes;
_root.game.stepscounttxt = 'Steps: ' + (_root.game.lepes + undocount - 1);
eval('_root.undo' + _root.game.lepes + '_' + 'money') = _root.tmoney[_root.taktplayer];
eval('_root.undo' + _root.game.lepes + '_' + 'crd') = _root.game.aktcrd;
if (_root.game.aktcrd == undefined) {
_root.game.aktcrd = 0;
}
i = 1;
while (i <= _root.game.aktcrd) {
eval('_root.undo' + _root.game.lepes + '_crdtype' + i) = eval('crdtype' + i);
eval('_root.undo' + _root.game.lepes + '_crdcolor' + i) = eval('crdcolor' + i);
++i;
}
j = 1;
while (j <= _root.game.def_rows) {
tmp = eval('_root.game.cardrows.cardrow' + j + '.elemszam');
eval('_root.undo' + _root.game.lepes + '_' + j + '_' + 'elemszam') = tmp;
i = 1;
while (i <= tmp) {
ctype = eval('_root.game.cardrows.cardrow' + j + '.card' + i + '.cardtype');
ccolor = eval('_root.game.cardrows.cardrow' + j + '.card' + i + '.cardcolor');
cpos = eval('_root.game.cardrows.cardrow' + j + '.card' + i + '._currentframe');
eval('_root.undo' + _root.game.lepes + '_' + j + '_' + i + 'type') = ctype;
eval('_root.undo' + _root.game.lepes + '_' + j + '_' + i + 'color') = ccolor;
eval('_root.undo' + _root.game.lepes + '_' + j + '_' + i + 'pos') = cpos;
++i;
}
++j;
}
}
function sormer(oszlopszam) {
oszlophossz = eval('_root.game.cardrows.cardrow' + oszlopszam + '.elemszam');
ectype = eval('_root.game.cardrows.cardrow' + oszlopszam + '.card' + oszlophossz + '.cardtype');
sor = 1;
eddigjo = true;
i = oszlophossz - 1;
while (i >= 1) {
ctype = eval('_root.game.cardrows.cardrow' + oszlopszam + '.card' + i + '.cardtype');
cpos = eval('_root.game.cardrows.cardrow' + oszlopszam + '.card' + i + '._currentframe');
if (eddigjo == true and ctype == ectype - 1 and cpos != 1) {
++sor;
} else {
eddigjo = false;
}
ectype = ctype;
--i;
}
return sor;
}
function szinsormer(oszlopszam) {
oszlophossz = eval('_root.game.cardrows.cardrow' + oszlopszam + '.elemszam');
ectype = eval('_root.game.cardrows.cardrow' + oszlopszam + '.card' + oszlophossz + '.cardtype');
eccolor = eval('_root.game.cardrows.cardrow' + oszlopszam + '.card' + oszlophossz + '.cardcolor');
sor = 1;
eddigjo = true;
i = oszlophossz - 1;
while (i >= 1) {
ctype = eval('_root.game.cardrows.cardrow' + oszlopszam + '.card' + i + '.cardtype');
ccolor = eval('_root.game.cardrows.cardrow' + oszlopszam + '.card' + i + '.cardcolor');
cpos = eval('_root.game.cardrows.cardrow' + oszlopszam + '.card' + i + '._currentframe');
cvis = eval('_root.game.cardrows.cardrow' + oszlopszam + '.card' + i + '._visible');
calph = eval('_root.game.cardrows.cardrow' + oszlopszam + '.card' + i + '._alpha');
if (eddigjo == true and ctype == ectype - 1 and ccolor == eccolor and cpos != 1 and cvis == true and calph == 100) {
++sor;
} else {
eddigjo = false;
}
ectype = ctype;
--i;
}
return sor;
}
function belsosormer(oszlopszam) {
oszlophossz = eval('_root.game.cardrows.cardrow' + oszlopszam + '.elemszam');
ectype = eval('_root.game.cardrows.cardrow' + oszlopszam + '.card1.cardtype');
ecpos = eval('_root.game.cardrows.cardrow' + oszlopszam + '.card1._currentframe');
sor = 1;
innentol = 0;
i = 2;
while (i <= oszlophossz) {
ctype = eval('_root.game.cardrows.cardrow' + oszlopszam + '.card' + i + '.cardtype');
cpos = eval('_root.game.cardrows.cardrow' + oszlopszam + '.card' + i + '._currentframe');
if (ctype == ectype + 1 and ecpos != 1) {
++sor;
} else {
sor = 1;
}
ectype = ctype;
ecpos = cpos;
if (sor >= def_types) {
innentol = i - sor + 1;
_root.sorhossz = sor;
}
++i;
}
return innentol;
}
function helyzetelemzes() {
strukturalisvaltozas = false;
j = 1;
while (j <= _root.game.def_rows) {
elemsz = eval('_root.game.cardrows.cardrow' + j + '.elemszam');
vanures = false;
i = 1;
while (i <= elemsz) {
eval('ctype' + i) = eval('_root.game.cardrows.cardrow' + j + '.card' + i + '.cardtype');
eval('ccolor' + i) = eval('_root.game.cardrows.cardrow' + j + '.card' + i + '.cardcolor');
eval('cvisible' + i) = eval('_root.game.cardrows.cardrow' + j + '.card' + i + '._visible');
eval('cpos' + i) = 'up';
if (eval('_root.game.cardrows.cardrow' + j + '.card' + i + '._currentframe') == 1) {
eval('cpos' + i) = 'down';
}
if (eval('cvisible' + i) == false) {
vanures = true;
}
++i;
}
if (vanures == true) {
strukturalisvaltozas = true;
i = 1;
while (i <= elemsz) {
(eval('_root.game.cardrows.cardrow' + j)).remove();
++i;
}
i = 1;
while (i <= elemsz) {
if (eval('cvisible' + i) != false) {
(eval('_root.game.cardrows.cardrow' + j)).place(eval('ctype' + i), eval('ccolor' + i), eval('cpos' + i));
}
++i;
}
}
++j;
}
j = 1;
while (j <= _root.game.def_rows) {
elemsz = eval('_root.game.cardrows.cardrow' + j + '.elemszam');
i = 1;
while (i <= elemsz) {
eval('_root.game.cardrows.cardrow' + j + '.card' + i + '.cardcount') = i;
++i;
}
++j;
}
j = 1;
while (j <= _root.game.def_rows) {
innentol = belsosormer(j);
if (innentol != 0) {
if (_root.gametype == 'campign') {
_root.tmoney[_root.taktplayer] = _root.tmoney[_root.taktplayer] + def_types * 10 + 100;
_root.game.ingame_panel.increasemoney.gotoAndPlay('start');
}
(eval('_root.game.cardrows.cardrow' + j)).attachMovie('cardsout_mc', 'cardsout', 1000, {'_x': 0, '_y': innentol * -30 + 30});
(eval('_root.game.cardrows.cardrow' + j + '.cardsout')).blendMode = 'screen';
i = innentol + _root.sorhossz - 1;
while (i >= innentol) {
eval('_root.game.cardrows.cardrow' + j + '.card' + i)._visible = false;
(eval('_root.game.cardrows.cardrow' + j)).liftingcard(i);
--i;
}
_root.playsound('cardsoutwav');
strukturalisvaltozas = true;
}
tmp = eval('_root.game.cardrows.cardrow' + j + '.elemszam');
cpos = eval('_root.game.cardrows.cardrow' + j + '.card' + tmp + '._currentframe');
ctype = eval('_root.game.cardrows.cardrow' + j + '.card' + tmp + '.cardtype');
if (cpos == 1) {
(eval('_root.game.cardrows.cardrow' + j + '.card' + tmp)).gotoAndStop(ctype + 1);
(eval('_root.game.cardrows.cardrow' + j + '.card' + tmp)).attachMovie('cardbreak', 'break_mc', this.getNextHighestDepth(), {'_x': 0, '_y': 0});
}
i = 1;
while (i <= eval('_root.game.cardrows.cardrow' + j + '.elemszam')) {
eval('_root.game.cardrows.cardrow' + j + '.card' + i + '.cardcount') = i;
++i;
}
++j;
}
if (aktcrd == 0) {
uresszam = 0;
j = 1;
while (j <= _root.game.def_rows) {
if (eval('_root.game.cardrows.cardrow' + j + '.elemszam') == 0) {
++uresszam;
}
++j;
}
if (uresszam == def_rows) {
_root.fut = false;
moving_time_counter.time_counter.stop();
if (_root.gametype == 'campign') {
_root.lastgameundos = undocount + startundo;
_root.lastgamesteps = lepes + _root.lastgameundos + startstep;
_root.lastgametime = moving_time_counter.time_counter.time_sz;
stepname = _root.enterlevag(eval('_root.stepname' + (_root.taktstep[_root.taktplayer] + 1)));
if (stepname != undefined) {
_root.tmoney[_root.taktplayer] = _root.tmoney[_root.taktplayer] + (10 - def_rows) * 100 + (def_colors - 1) * 500;
_root.game.ingame_panel.increasemoney.gotoAndPlay('start');
strukturalisvaltozas = false;
javito.gotoAndPlay('start');
sponsorlogo2_button._visible = false;
} else {
_root.taktstep[_root.taktplayer] = -1;
_root.allsave();
_root.blackfade('endcampign');
}
} else {
_root.blackfade('custom');
}
}
}
if (strukturalisvaltozas == true) {
helyzetelemzes();
} else {
saveundo();
}
guidance();
}
function guidance() {
if (_root.tguidance[_root.taktplayer] == 'yes') {
i = 1;
while (i <= _root.game.def_rows) {
(eval('cardrows.cardrow' + i)).guidance();
if (_root.mousecardrow.cardrow.elemszam > 0 and eval('cardrows.cardrow' + i + '.elemszam') == 0) {
(eval('cardrows.felho' + i + '.putdownsign')).play();
eval('cardrows.felho' + i + '.putdownsign')._visible = true;
} else {
(eval('cardrows.felho' + i + '.putdownsign')).stop();
eval('cardrows.felho' + i + '.putdownsign')._visible = false;
}
++i;
}
}
}
function allupfunction() {
j = 1;
while (j <= _root.game.def_rows) {
oszlophossz = eval('_root.game.cardrows.cardrow' + j + '.elemszam');
i = oszlophossz - 1;
while (i >= 1) {
if (eval('_root.game.cardrows.cardrow' + j + '.card' + i + '._currentframe') == 1) {
ctype = eval('_root.game.cardrows.cardrow' + j + '.card' + i + '.cardtype');
(eval('_root.game.cardrows.cardrow' + j + '.card' + i)).gotoAndStop(ctype + 1);
(eval('_root.game.cardrows.cardrow' + j + '.card' + i)).attachMovie('cardbreak', 'break_mc', this.getNextHighestDepth(), {'_x': 0, '_y': 0});
}
--i;
}
++j;
}
}
function cardmover(card1name, card2name, x1, y1, ctype, ccolor, cpos) {
++cardmovingcount;
eval('c1name_' + cardmovingcount) = card1name;
eval('c2name_' + cardmovingcount) = card2name;
eval('x1_' + cardmovingcount) = x1;
eval('y1_' + cardmovingcount) = y1;
eval('ctype_' + cardmovingcount) = ctype;
eval('ccolor_' + cardmovingcount) = ccolor;
eval('cpos_' + cardmovingcount) = cpos;
if (cardmover_mc._currentframe == 2) {
cardmover_mc.gotoAndPlay('start');
}
}
function shufflefunction() {
j = 1;
while (j <= def_rows) {
i = 1;
while (i <= eval('_root.game.cardrows.cardrow' + j + '.elemszam')) {
sor = false;
ctype1 = eval('_root.game.cardrows.cardrow' + j + '.card' + (i - 1) + '.cardtype');
ctype2 = eval('_root.game.cardrows.cardrow' + j + '.card' + i + '.cardtype');
ctype3 = eval('_root.game.cardrows.cardrow' + j + '.card' + (i + 1) + '.cardtype');
cpos = eval('_root.game.cardrows.cardrow' + j + '.card' + i + '._currentframe');
if (ctype1 == ctype2 - 1) {
sor = true;
}
if (ctype2 == ctype3 - 1) {
sor = true;
}
if (cpos == 1) {
sor = true;
}
eval('_root.game.cardrows.cardrow' + j + '.card' + i + '.sor') = sor;
++i;
}
++j;
}
k = 1;
while (k < 300) {
j = random(def_rows) + 1;
i = random(eval('_root.game.cardrows.cardrow' + j + '.elemszam')) + 1;
if (eval('_root.game.cardrows.cardrow' + j + '.card' + i + '.sor') == false) {
ctype1 = eval('_root.game.cardrows.cardrow' + j + '.card' + i + '.cardtype');
ccolor1 = eval('_root.game.cardrows.cardrow' + j + '.card' + i + '.cardcolor');
j2 = random(def_rows) + 1;
i2 = random(eval('_root.game.cardrows.cardrow' + j2 + '.elemszam')) + 1;
if (eval('_root.game.cardrows.cardrow' + j2 + '.card' + i2 + '.sor') == false) {
ctype2 = eval('_root.game.cardrows.cardrow' + j2 + '.card' + i2 + '.cardtype');
ccolor2 = eval('_root.game.cardrows.cardrow' + j2 + '.card' + i2 + '.cardcolor');
eval('_root.game.cardrows.cardrow' + j + '.card' + i + '.cardtype') = ctype2;
eval('_root.game.cardrows.cardrow' + j + '.card' + i + '.cardcolor') = ccolor2;
(eval('_root.game.cardrows.cardrow' + j + '.card' + i)).gotoAndStop(ctype2 + 1);
(eval('_root.game.cardrows.cardrow' + j + '.card' + i + '.szinfolt')).gotoAndStop(ccolor2);
eval('_root.game.cardrows.cardrow' + j2 + '.card' + i2 + '.cardtype') = ctype1;
eval('_root.game.cardrows.cardrow' + j2 + '.card' + i2 + '.cardcolor') = ccolor1;
(eval('_root.game.cardrows.cardrow' + j2 + '.card' + i2)).gotoAndStop(ctype1 + 1);
(eval('_root.game.cardrows.cardrow' + j2 + '.card' + i2 + '.szinfolt')).gotoAndStop(ccolor1);
}
}
++k;
}
helyzetelemzes();
}
function loadplace() {
if (_root.game.lepes > 1) {
j = 1;
while (j <= _root.game.def_rows) {
elemszam = eval('_root.game.cardrows.cardrow' + j + '.elemszam');
i = 1;
while (i <= elemszam) {
(eval('_root.game.cardrows.cardrow' + j)).remove();
++i;
}
++j;
}
_root.game.aktcrd = eval('_root.undo' + _root.game.lepes + '_' + 'crd');
_root.game.rock_mc.cardcounttxt = aktcrd;
i = 1;
while (i <= _root.game.aktcrd) {
eval('crdtype' + i) = eval('_root.undo' + _root.game.lepes + '_crdtype' + i);
eval('crdcolor' + i) = eval('_root.undo' + _root.game.lepes + '_crdcolor' + i);
++i;
}
j = 1;
while (j <= _root.game.def_rows) {
i = 1;
while (i <= eval('_root.undo' + _root.game.lepes + '_' + j + '_' + 'elemszam')) {
ctype = eval('_root.undo' + _root.game.lepes + '_' + j + '_' + i + 'type');
ccolor = eval('_root.undo' + _root.game.lepes + '_' + j + '_' + i + 'color');
cpos = 'up';
if (eval('_root.undo' + _root.game.lepes + '_' + j + '_' + i + 'pos') == 1) {
cpos = 'down';
}
(eval('_root.game.cardrows.cardrow' + j)).place(ctype, ccolor, cpos);
++i;
}
++j;
}
_root.game.stepscounttxt = 'Steps: ' + (_root.game.lepes + undocount - 1);
}
if (aktcrd == 0) {
newcard_button._visible = false;
} else {
newcard_button._visible = true;
}
}
function legalstep(hidden) {
ret = false;
if (helpmutat._currentframe == 2) {
jhonnan = 0;
hmelyiket = 0;
jhova = 0;
j = 1;
while (j <= def_rows) {
tmp = eval('_root.game.cardrows.cardrow' + j + '.elemszam');
ectype = eval('_root.game.cardrows.cardrow' + j + '.card' + tmp + '.cardtype');
eccolor = eval('_root.game.cardrows.cardrow' + j + '.card' + tmp + '.cardcolor');
ecpos = eval('_root.game.cardrows.cardrow' + j + '.card' + tmp + '._currentframe');
if (tmp > 0) {
movablecount = 1;
} else {
tmp = 1;
}
eddigjo = true;
i = tmp - 1;
while (i >= 1) {
ctype = eval('_root.game.cardrows.cardrow' + j + '.card' + i + '.cardtype');
ccolor = eval('_root.game.cardrows.cardrow' + j + '.card' + i + '.cardcolor');
cpos = eval('_root.game.cardrows.cardrow' + j + '.card' + i + '._currentframe');
if (eddigjo and ctype == ectype - 1 and ccolor == eccolor and cpos != 1) {
++movablecount;
} else {
eddigjo = false;
}
ectype = ctype;
eccolor = ccolor;
--i;
}
tmp2 = tmp - movablecount + 1;
ctype = eval('_root.game.cardrows.cardrow' + j + '.card' + tmp2 + '.cardtype');
ccolor = eval('_root.game.cardrows.cardrow' + j + '.card' + tmp2 + '.cardcolor');
cpos = eval('_root.game.cardrows.cardrow' + j + '.card' + tmp2 + '._currentframe');
m = 1;
while (m <= def_rows) {
if (m != j) {
tmp3 = eval('_root.game.cardrows.cardrow' + m + '.elemszam');
uctype = eval('_root.game.cardrows.cardrow' + m + '.card' + tmp3 + '.cardtype');
if (ctype - 1 == uctype) {
if (jhonnan == 0) {
jhonnan = j;
jmelyiket = tmp2;
jhova = m;
}
}
}
++m;
}
++j;
}
if (jhonnan != 0) {
ret = true;
helpmutat.jhonnan = jhonnan;
helpmutat.jmelyiket = jmelyiket;
helpmutat.jhova = jhova;
if (hidden == false) {
helpmutat.gotoAndPlay('start');
}
}
if (jhonnan == 0) {
jhonnan = 0;
hmelyiket = 0;
jhova = 0;
j = 1;
while (j <= def_rows) {
tmp = eval('_root.game.cardrows.cardrow' + j + '.elemszam');
ectype = eval('_root.game.cardrows.cardrow' + j + '.card' + tmp + '.cardtype');
eccolor = eval('_root.game.cardrows.cardrow' + j + '.card' + tmp + '.cardcolor');
ecpos = eval('_root.game.cardrows.cardrow' + j + '.card' + tmp + '._currentframe');
if (tmp > 0) {
movablecount = 1;
} else {
tmp = 1;
}
eddigjo = true;
i = tmp - 1;
while (i >= 1) {
ctype = eval('_root.game.cardrows.cardrow' + j + '.card' + i + '.cardtype');
ccolor = eval('_root.game.cardrows.cardrow' + j + '.card' + i + '.cardcolor');
cpos = eval('_root.game.cardrows.cardrow' + j + '.card' + i + '._currentframe');
if (eddigjo and ctype == ectype - 1 and ccolor == eccolor and cpos != 1) {
++movablecount;
} else {
eddigjo = false;
}
ectype = ctype;
eccolor = ccolor;
--i;
}
k = movablecount;
while (k >= 1) {
tmp2 = tmp - k + 1;
ctype = eval('_root.game.cardrows.cardrow' + j + '.card' + tmp2 + '.cardtype');
ccolor = eval('_root.game.cardrows.cardrow' + j + '.card' + tmp2 + '.cardcolor');
cpos = eval('_root.game.cardrows.cardrow' + j + '.card' + tmp2 + '._currentframe');
m = 1;
while (m <= def_rows) {
if (m != j) {
tmp3 = eval('_root.game.cardrows.cardrow' + m + '.elemszam');
uctype = eval('_root.game.cardrows.cardrow' + m + '.card' + tmp3 + '.cardtype');
if (ctype - 1 == uctype) {
if (jhonnan == 0) {
jhonnan = j;
jmelyiket = tmp2;
jhova = m;
}
}
}
++m;
}
--k;
}
++j;
}
if (jhonnan != 0) {
ret = true;
if (hidden == false) {
helpmutat.jhonnan = jhonnan;
helpmutat.jmelyiket = jmelyiket;
helpmutat.jhova = jhova;
helpmutat.gotoAndPlay('start');
}
return ret;
}
ret = false;
if (aktcrd > 0 and hidden == false) {
helpmutat.gotoAndPlay('start2');
}
}
}
return ret;
}
function undostep() {
if (_root.game.lepes > 1) {
++_root.game.undocount;
_root.game.undocounttxt = 'Undos: ' + _root.game.undocount;
j = 1;
while (j <= _root.game.def_rows) {
esz = eval('_root.game.cardrows.cardrow' + j + '.elemszam');
i = 1;
while (i <= esz) {
(eval('_root.game.cardrows.cardrow' + j)).remove();
++i;
}
++j;
}
--_root.game.lepes;
_root.tmoney[_root.taktplayer] = eval('_root.undo' + _root.game.lepes + '_' + 'money');
_root.game.ingame_panel.moneytxt = _root.tmoney[_root.taktplayer];
_root.game.aktcrd = eval('_root.undo' + _root.game.lepes + '_' + 'crd');
_root.game.rock_mc.cardcounttxt = aktcrd;
i = 1;
while (i <= _root.game.aktcrd) {
eval('crdtype' + i) = eval('_root.undo' + _root.game.lepes + '_crdtype' + i);
eval('crdcolor' + i) = eval('_root.undo' + _root.game.lepes + '_crdcolor' + i);
++i;
}
j = 1;
while (j <= _root.game.def_rows) {
i = 1;
while (i <= eval('_root.undo' + _root.game.lepes + '_' + j + '_' + 'elemszam')) {
ctype = eval('_root.undo' + _root.game.lepes + '_' + j + '_' + i + 'type');
ccolor = eval('_root.undo' + _root.game.lepes + '_' + j + '_' + i + 'color');
cpos = 'up';
if (eval('_root.undo' + _root.game.lepes + '_' + j + '_' + i + 'pos') == 1) {
cpos = 'down';
}
(eval('_root.game.cardrows.cardrow' + j)).place(ctype, ccolor, cpos);
++i;
}
++j;
}
_root.game.stepscounttxt = 'Steps: ' + (_root.game.lepes + undocount - 1);
}
guidance();
newcardbuttonsetup();
}
function loadgame() {
j = 1;
while (j <= _root.game.def_rows) {
esz = eval('_root.game.cardrows.cardrow' + j + '.elemszam');
i = 1;
while (i <= esz) {
(eval('_root.game.cardrows.cardrow' + j)).remove();
++i;
}
++j;
}
j = 1;
while (j <= 10) {
i = 1;
while (i <= 100) {
tmp = _root.myso.data.tgame[_root.taktplayer].charAt((j - 1) * 300 + (i - 1) * 3);
if (tmp != 'x') {
ctype = -1;
if (tmp == 'a') {
ctype = 10;
}
if (tmp == 'b') {
ctype = 11;
}
if (tmp == 'c') {
ctype = 12;
}
if (tmp == 'd') {
ctype = 13;
}
if (ctype == -1) {
ctype = _root.strtoint(tmp);
}
tmp = _root.myso.data.tgame[_root.taktplayer].charAt((j - 1) * 300 + (i - 1) * 3 + 1);
ccolor = _root.strtoint(tmp);
tmp = _root.myso.data.tgame[_root.taktplayer].charAt((j - 1) * 300 + (i - 1) * 3 + 2);
cpos = -1;
if (tmp == 'a') {
cpos == 10;
}
if (tmp == 'b') {
cpos == 11;
}
if (tmp == 'c') {
cpos == 12;
}
if (tmp == 'd') {
cpos == 13;
}
if (tmp == 'e') {
cpos == 14;
}
if (cpos == -1) {
cpos = _root.strtoint(tmp);
}
if (cpos == 1) {
cpos = 'down';
} else {
cpos = 'up';
}
if (isNaN(ctype) == false) {
(eval('_root.game.cardrows.cardrow' + j)).place(ctype, ccolor, cpos);
}
}
++i;
}
++j;
}
_root.game.aktcrd = _root.tpaklipos[_root.taktplayer];
_root.game.allcard = _root.tallcard[_root.taktplayer];
_root.game.rock_mc.cardcounttxt = aktcrd;
szazalek = aktcrd / (allcard / 100);
if (aktcrd == 0) {
newcard_button.celpos = 6;
}
if (szazalek > 0) {
newcard_button.celpos = 5;
}
if (szazalek > 20) {
newcard_button.celpos = 4;
}
if (szazalek > 40) {
newcard_button.celpos = 3;
}
if (szazalek > 60) {
newcard_button.celpos = 2;
}
if (szazalek > 80) {
newcard_button.celpos = 1;
}
if (newcard_button._currentframe != newcard_button.celpos * 10) {
newcard_button.play();
}
if (aktcrd == 0) {
newcard_button._visible = false;
}
i = 1;
while (i <= _root.game.aktcrd) {
tmp = _root.tpaklitype[_root.taktplayer].charAt(i - 1);
tmp2 = -1;
if (tmp == 'a') {
tmp2 = 10;
}
if (tmp == 'b') {
tmp2 = 11;
}
if (tmp == 'c') {
tmp2 = 12;
}
if (tmp == 'd') {
tmp2 = 13;
}
if (tmp2 == -1) {
tmp2 = _root.strtoint(tmp);
}
eval('_root.game.crdtype' + i) = tmp2;
tmp = _root.tpaklicolor[_root.taktplayer].charAt(i - 1);
tmp2 = _root.strtoint(tmp);
eval('_root.game.crdcolor' + i) = tmp2;
++i;
}
rock_mc.swapDepths(this.getNextHighestDepth());
guidance();
}
function loadgame2() {
j = 1;
while (j <= _root.game.def_rows) {
esz = eval('_root.game.cardrows.cardrow' + j + '.elemszam');
i = 1;
while (i <= esz) {
(eval('_root.game.cardrows.cardrow' + j)).remove();
++i;
}
++j;
}
j = 1;
while (j <= 10) {
i = 1;
while (i <= 100) {
tmp = _root.myso.data.tgame2[_root.taktplayer].charAt((j - 1) * 300 + (i - 1) * 3);
if (tmp != 'x') {
ctype = -1;
if (tmp == 'a') {
ctype = 10;
}
if (tmp == 'b') {
ctype = 11;
}
if (tmp == 'c') {
ctype = 12;
}
if (tmp == 'd') {
ctype = 13;
}
if (ctype == -1) {
ctype = _root.strtoint(tmp);
}
tmp = _root.myso.data.tgame2[_root.taktplayer].charAt((j - 1) * 300 + (i - 1) * 3 + 1);
ccolor = _root.strtoint(tmp);
tmp = _root.myso.data.tgame2[_root.taktplayer].charAt((j - 1) * 300 + (i - 1) * 3 + 2);
cpos = -1;
if (tmp == 'a') {
cpos == 10;
}
if (tmp == 'b') {
cpos == 11;
}
if (tmp == 'c') {
cpos == 12;
}
if (tmp == 'd') {
cpos == 13;
}
if (tmp == 'e') {
cpos == 14;
}
if (cpos == -1) {
cpos = _root.strtoint(tmp);
}
if (cpos == 1) {
cpos = 'down';
} else {
cpos = 'up';
}
if (isNaN(ctype) == false) {
(eval('_root.game.cardrows.cardrow' + j)).place(ctype, ccolor, cpos);
}
}
++i;
}
++j;
}
_root.game.aktcrd = _root.tpaklipos2[_root.taktplayer];
_root.game.allcard = _root.tallcard2[_root.taktplayer];
_root.game.rock_mc.cardcounttxt = aktcrd;
szazalek = aktcrd / (allcard / 100);
if (aktcrd == 0) {
newcard_button.celpos = 6;
}
if (szazalek > 0) {
newcard_button.celpos = 5;
}
if (szazalek > 20) {
newcard_button.celpos = 4;
}
if (szazalek > 40) {
newcard_button.celpos = 3;
}
if (szazalek > 60) {
newcard_button.celpos = 2;
}
if (szazalek > 80) {
newcard_button.celpos = 1;
}
i = 1;
while (i <= _root.game.aktcrd) {
tmp = _root.tpaklitype2[_root.taktplayer].charAt(i - 1);
tmp2 = -1;
if (tmp == 'a') {
tmp2 = 10;
}
if (tmp == 'b') {
tmp2 = 11;
}
if (tmp == 'c') {
tmp2 = 12;
}
if (tmp == 'd') {
tmp2 = 13;
}
if (tmp2 == -1) {
tmp2 = _root.strtoint(tmp);
}
eval('_root.game.crdtype' + i) = tmp2;
tmp = _root.tpaklicolor2[_root.taktplayer].charAt(i - 1);
tmp2 = _root.strtoint(tmp);
eval('_root.game.crdcolor' + i) = tmp2;
++i;
}
if (newcard_button._currentframe != newcard_button.celpos * 10) {
newcard_button.play();
}
rock_mc.swapDepths(this.getNextHighestDepth());
guidance();
}
function screenshot(target, contnev) {
var bmpData1 = new flash.display.BitmapData(eval(target + '._width'), eval(target + '._height'), false, 13421772);
bmpData1.draw(eval(target));
(eval(contnev)).attachBitmap(bmpData1, 2, 'auto', true);
}
function newcardbuttonsetup() {
if (aktcrd == 0) {
newcard_button._visible = false;
} else {
newcard_button._visible = true;
szazalek = aktcrd / (allcard / 100);
if (aktcrd == 0) {
newcard_button.celpos = 6;
}
if (szazalek > 0) {
newcard_button.celpos = 5;
}
if (szazalek > 20) {
newcard_button.celpos = 4;
}
if (szazalek > 40) {
newcard_button.celpos = 3;
}
if (szazalek > 60) {
newcard_button.celpos = 2;
}
if (szazalek > 80) {
newcard_button.celpos = 1;
}
newcard_button.gotoAndStop(newcard_button.celpos * 10);
}
}
function cardtoutch(ctype) {
cardtoutch_mc.ctype = ctype;
cardtoutch_mc.gotoAndPlay('start');
}
function carduntoutch() {
j = 1;
while (j <= _root.game.def_rows) {
i = 1;
while (i <= eval('_root.game.cardrows.cardrow' + j + '.elemszam')) {
eval('_root.game.cardrows.cardrow' + j + '.card' + i + '.sign3')._visible = false;
++i;
}
++j;
}
cardtoutch_mc.gotoAndStop(2);
}
function takarrow() {}
}
frame 1 {
def_types = _root.def_types;
def_colors = _root.def_colors;
def_packs = _root.def_packs;
def_rows = _root.def_rows;
def_down = _root.def_down;
def_up = _root.def_up;
def_list = _root.def_list;
lepes = 0;
undocount = 0;
oneillegal = false;
cardmovingcount = 0;
}
instance sponsorlogo2_button of movieClip 711 {
onClipEvent (rollOver) {
gotoAndStop('over');
_root.toutch(_name);
}
onClipEvent (rollOut) {
gotoAndStop('normal');
_root.untoutch();
}
onClipEvent (press) {
_root.untoutch();
getURL('http://www.bgames.com/?utm_source=Olympic_tidy_up&utm_medium=game&utm_campaign=cloud_in_game', '_blank');
}
}
instance newcard_button of movieClip 754 {
onClipEvent (rollOver) {
gotoAndStop('over');
_root.toutch(_name);
}
onClipEvent (rollOut) {
gotoAndStop('normal');
_root.untoutch();
}
onClipEvent (press) {
_root.untoutch();
gotoAndStop('normal');
if (_parent.aktcrd > 0) {
_parent.ujlap();
}
}
}
frame 2 {
if (_root.gametype == 'custom') {
_root.background = 'background1';
}
backgroundcont.gotoAndStop(_root.background);
allapotbeallito.gotoAndPlay('start');
var filter = new flash.filters.BlurFilter(10, 10, 2);
var filterArray = new Array();
filterArray.push(filter);
backgroundcont.filters = filterArray;
backgroundcont._alpha = 70;
}
frame 3 {
if (_root.gametype == 'campign') {
if (_root.tingame[_root.taktplayer] == 'true') {
kever();
_root.kocsogeltol = _root.tkocsogeltol[_root.taktplayer];
_root.game.loadgame();
startstep = _root.myso.data.tlepes[_root.taktplayer];
startundo = _root.myso.data.tundocount[_root.taktplayer];
saveundo();
guidance();
} else {
startstep = 0;
startundo = 0;
_root.kocsogeltol = random(6);
kever();
leoszt();
tmp = legalstep(true);
while (tmp == false) {
letorol();
kever();
leoszt();
tmp = legalstep(true);
}
if (_root.enterlevag(_root.tutorial) != '-') {
_root.fut = false;
_root.game.moving_time_counter.time_counter.stop();
this.attachMovie('tutorial_mc', 'tutorial_popup', this.getNextHighestDepth(), {'_width': 1228, '_height': 921, '_x': -294, '_y': -200});
tutorial_popup.attachMovie(_root.tutorial, 'tutorial_mc2', (this.getNextHighestDepth())(), {'_x': 0, '_y': 0});
}
}
}
if (_root.gametype == 'custom') {
if (_root.continuegame == false) {
startstep = 0;
startundo = 0;
_root.kocsogeltol = _root.tkocsogeltol2[_root.taktplayer];
kever();
leoszt();
tmp = legalstep(true);
while (tmp == false) {
letorol();
kever();
leoszt();
tmp = legalstep(true);
}
if (def_down == 0 and def_up == 0 and aktcrd > 0) {
ujlap();
}
} else {
_root.kocsogeltol = _root.tkocsogeltol2[_root.taktplayer];
_root.game.loadgame2();
startstep = _root.myso.data.tlepes[_root.taktplayer];
startundo = _root.myso.data.tundocount[_root.taktplayer];
saveundo();
}
}
}
frame 4 {
guidance();
stop();
}
}
frame 44 {
_root.setupcheats();
}
frame 48 {
stop();
}
frame 49 {
prevFrame();
gotoAndStop(undefined);
undefined;
}
frame 50 {
ingame_menu_panel._visible = false;
}
movieClip 818 {
frame 1 {
stop();
}
}
movieClip 819 {
frame 1 {
stop();
}
}
movieClip 820 {
frame 1 {
stop();
}
}
movieClip 823 {
}
movieClip 825 {
frame 8 {
stop();
}
frame 18 {
stop();
}
frame 29 {
stop();
}
}
movieClip 834 {
frame 1 {
szammin = 3;
szammax = 10;
}
instance plusgomb of movieClip 825 {
onClipEvent (rollOver) {
gotoAndStop('over');
_root.toutch(_name);
}
onClipEvent (rollOut) {
gotoAndStop('normal');
_root.untoutch();
}
onClipEvent (press) {
gotoAndStop('normal');
szam = _parent._currentframe;
if (szam < 10) {
++szam;
}
_parent.gotoAndStop(szam);
}
}
instance plusgomb of movieClip 825 {
onClipEvent (rollOver) {
gotoAndStop('over');
_root.toutch(_name);
}
onClipEvent (rollOut) {
gotoAndStop('normal');
_root.untoutch();
}
onClipEvent (press) {
gotoAndStop('normal');
szam = _parent._currentframe;
if (szam > 3) {
--szam;
}
_parent.gotoAndStop(szam);
}
}
frame 3 {
_root.untoutch();
stop();
}
instance plusgomb of movieClip 825 {
onClipEvent (rollOver) {
gotoAndStop('over');
_root.toutch(_name);
}
onClipEvent (rollOut) {
gotoAndStop('normal');
_root.untoutch();
}
onClipEvent (press) {
_root.untoutch();
gotoAndStop('normal');
szam = _parent._currentframe;
if (szam < 10) {
++szam;
}
_parent.gotoAndStop(szam);
}
}
instance plusgomb of movieClip 825 {
onClipEvent (rollOver) {
gotoAndStop('over');
_root.toutch(_name);
}
onClipEvent (rollOut) {
gotoAndStop('normal');
_root.untoutch();
}
onClipEvent (press) {
_root.untoutch();
gotoAndStop('normal');
szam = _parent._currentframe;
if (szam > 3) {
--szam;
}
_parent.gotoAndStop(szam);
}
}
}
movieClip 838 {
frame 1 {
szammin = 1;
szammax = 20;
input1.restrict = '0123456789';
input1.onChanged = function () {
szam = _root.strtoint(txt);
if (isNaN(szam)) {
szam = 0;
}
if (szam > szammax) {
szam = szammax;
}
if (szam < szammin) {
szam = szammin;
}
txt = szam;
_parent.numberchange();
};
}
instance plusgomb of movieClip 825 {
onClipEvent (rollOver) {
gotoAndStop('over');
_root.toutch(_name);
}
onClipEvent (rollOut) {
gotoAndStop('normal');
_root.untoutch();
}
onClipEvent (press) {
gotoAndStop('normal');
_root.untoutch();
szam = _root.strtoint(_parent.txt);
if (isNaN(szam)) {
szam = 0;
}
if (szam < _parent.szammax) {
++szam;
}
if (szam > _parent.szammax) {
szam = _parent.szammax;
}
if (szam < _parent.szammin) {
szam = _parent.szammin;
}
_parent.txt = szam;
_parent._parent.numberchange();
}
}
instance minusgomb of movieClip 825 {
onClipEvent (rollOver) {
gotoAndStop('over');
_root.toutch(_name);
}
onClipEvent (rollOut) {
gotoAndStop('normal');
_root.untoutch();
}
onClipEvent (press) {
gotoAndStop('normal');
_root.untoutch();
szam = _root.strtoint(_parent.txt);
if (isNaN(szam)) {
szam = 0;
}
if (szam > _parent.szammin) {
--szam;
}
if (szam > _parent.szammax) {
szam = _parent.szammax;
}
if (szam < _parent.szammin) {
szam = _parent.szammin;
}
_parent.txt = szam;
_parent._parent.numberchange();
}
}
frame 10 {
input1.restrict = '0123456789';
input1.onChanged = function () {
trace('bigó');
szam = _root.strtoint(txt);
if (isNaN(szam)) {
szam = 0;
}
if (szam > szammax) {
szam = szammax;
}
if (szam < szammin) {
szam = szammin;
}
txt = szam;
_parent.numberchange();
};
stop();
}
}
movieClip 850 {
}
movieClip 851 {
frame 1 {
szam = scrollbar.pos;
if (eszam != szam) {
_parent.numberchange();
}
eszam = szam;
szam = Math.round(szam / 10);
kocsogokoszlop.gotoAndStop(szam + 3);
}
frame 2 {
gotoAndPlay(1);
}
}
movieClip 861 {
}
movieClip 865 {
frame 1 {
szineltol = _root.tkocsogeltol2[_root.taktplayer];
if (szineltol == undefined) {
szineltol = 0;
}
}
frame 1 {
function aktualizal() {
szam = _root.strtoint(_parent.colors_numberset.txt);
if (szam == 1) {
c1._visible = true;
c2._visible = false;
c3._visible = false;
c4._visible = false;
c5._visible = false;
c6._visible = false;
}
if (szam == 2) {
c1._visible = true;
c2._visible = true;
c3._visible = false;
c4._visible = false;
c5._visible = false;
c6._visible = false;
}
if (szam == 3) {
c1._visible = true;
c2._visible = true;
c3._visible = true;
c4._visible = false;
c5._visible = false;
c6._visible = false;
}
if (szam == 4) {
c1._visible = true;
c2._visible = true;
c3._visible = true;
c4._visible = true;
c5._visible = false;
c6._visible = false;
}
if (szam == 5) {
c1._visible = true;
c2._visible = true;
c3._visible = true;
c4._visible = true;
c5._visible = true;
c6._visible = false;
}
if (szam == 6) {
c1._visible = true;
c2._visible = true;
c3._visible = true;
c4._visible = true;
c5._visible = true;
c6._visible = true;
}
c1.gotoAndStop(2);
c2.gotoAndStop(2);
c3.gotoAndStop(2);
c4.gotoAndStop(2);
c5.gotoAndStop(2);
c6.gotoAndStop(2);
szin1 = szineltol;
szin2 = szineltol + 1;
szin3 = szineltol + 2;
szin4 = szineltol + 3;
szin5 = szineltol + 4;
szin6 = szineltol + 5;
if (szin2 > 5) {
szin2 -= 6;
}
if (szin3 > 5) {
szin3 -= 6;
}
if (szin4 > 5) {
szin4 -= 6;
}
if (szin5 > 5) {
szin5 -= 6;
}
if (szin6 > 5) {
szin6 -= 6;
}
c1.szinfolt.kocsogsor.gotoAndStop(szin1 + 1);
c2.szinfolt.kocsogsor.gotoAndStop(szin2 + 1);
c3.szinfolt.kocsogsor.gotoAndStop(szin3 + 1);
c4.szinfolt.kocsogsor.gotoAndStop(szin4 + 1);
c5.szinfolt.kocsogsor.gotoAndStop(szin5 + 1);
c6.szinfolt.kocsogsor.gotoAndStop(szin6 + 1);
}
}
frame 10 {
aktualizal();
stop();
}
}
movieClip 866 {
frame 1 {
stop();
}
}
movieClip 867 {
frame 1 {
stop();
}
}
movieClip 868 {
frame 1 {
stop();
}
}
movieClip 869 {
frame 1 {
function numberchange() {
colors = _root.strtoint(colors_numberset.txt);
types = Math.round(typesscroll.scrollbar.pos / 10) + 3;
packs = _root.strtoint(packs_numberset.txt);
down = _root.strtoint(down_numberset.txt);
up = _root.strtoint(up_numberset.txt);
packs = _root.strtoint(packs_numberset.txt);
szam = colors * types * packs;
if (up + down > szam) {
while (up + down > szam) {
++packs;
szam = colors * types * packs;
}
packs_numberset.txt = packs;
}
szammax = Math.floor(1560 / colors * types);
if (szammax > 99) {
szammax = 99;
}
packs_numberset.szammax = szammax;
amphorastxt2 = szam;
colorsign.aktualizal();
}
}
instance startcustom_button of movieClip 472 {
onClipEvent (rollOver) {
gotoAndStop('over');
_root.toutch(_name);
}
onClipEvent (rollOut) {
gotoAndStop('normal');
_root.untoutch();
}
onClipEvent (press) {
gotoAndStop('normal');
_root.continuegame = false;
_root.def_types = Math.round(_parent.typesscroll.scrollbar.pos / 10) + 3;
_root.def_colors = _root.strtoint(_parent.colors_numberset.txt);
_root.def_rows = _parent.couldmenu._currentframe;
_root.def_down = _root.strtoint(_parent.down_numberset.txt);
_root.def_up = _root.strtoint(_parent.up_numberset.txt);
_root.def_packs = _root.strtoint(_parent.packs_numberset.txt);
_root.tkocsogeltol2[_root.taktplayer] = _parent.colorsign.szineltol;
_root.allsave();
_root.blackfade('customgame');
}
}
instance ingamemenu_button of movieClip 478 {
onClipEvent (rollOver) {
gotoAndStop('over');
_root.toutch(_name);
}
onClipEvent (rollOut) {
gotoAndStop('normal');
_root.untoutch();
}
onClipEvent (press) {
_root.untoutch();
gotoAndStop('normal');
_root.ingame_menu_panel.gotoAndPlay('start2');
_root.ingame_menu_panel._visible = true;
}
}
instance colorsign of movieClip 865 {
onClipEvent (rollOver) {
_root.toutch(_name);
}
onClipEvent (rollOut) {
_root.untoutch();
}
onClipEvent (press) {
++szineltol;
if (szineltol > 5) {
szineltol = 0;
}
aktualizal();
}
}
frame 2 {
_root.setupcheats();
_root.set_language();
continue_button._visible = false;
if (_root.tingame2[_root.taktplayer] == 'true') {
continue_button._visible = true;
_root.messagedlg('continue_custom', 'continue_custom');
}
if (_root.tdef_types[_root.taktplayer] == undefined) {
_root.tdef_types[_root.taktplayer] = 8;
_root.messagebox('firstcustom', 'firstcustom');
}
if (_root.tdef_colors[_root.taktplayer] == undefined) {
_root.tdef_colors[_root.taktplayer] = 1;
}
if (_root.tdef_rows[_root.taktplayer] == undefined) {
_root.tdef_rows[_root.taktplayer] = 10;
}
if (_root.tdef_down[_root.taktplayer] == undefined) {
_root.tdef_down[_root.taktplayer] = 20;
}
if (_root.tdef_up[_root.taktplayer] == undefined) {
_root.tdef_up[_root.taktplayer] = 10;
}
if (_root.tdef_packs[_root.taktplayer] == undefined) {
_root.tdef_packs[_root.taktplayer] = 10;
}
typesscroll.scrollbar.pos = (_root.tdef_types[_root.taktplayer] - 3) * 10;
typesscroll.scrollbar.setposition((_root.tdef_types[_root.taktplayer] - 3) * 10);
colors_numberset.txt = _root.tdef_colors[_root.taktplayer];
def_rowstxt = _root.tdef_rows[_root.taktplayer];
down_numberset.txt = _root.tdef_down[_root.taktplayer];
up_numberset.txt = _root.tdef_up[_root.taktplayer];
packs_numberset.txt = _root.tdef_packs[_root.taktplayer];
couldmenu.gotoAndStop(_root.tdef_rows[_root.taktplayer]);
down_numberset.szammin = 0;
down_numberset.szammax = 50;
up_numberset.szammin = 0;
up_numberset.szammax = 50;
colors_numberset.szammin = 1;
colors_numberset.szammax = 6;
packs_numberset.szammin = 1;
packs_numberset.szammax = 20;
}
frame 10 {
numberchange();
stop();
}
}
frame 52 {
_root.setupcheats();
}
frame 58 {
stop();
}
frame 59 {
prevFrame();
gotoAndStop(undefined);
undefined;
}
movieClip 896 {
frame 1 {
var num_Dust = 20;
var timer = new Date();
var lastFrameTime = timer.getTime();
var i = 1;
while (i < num_Dust) {
if (eval('por' + i + '_mc') == undefined) {
var scale = random(100) + 50;
this.attachMovie('por_mc', 'por' + i + '_mc', this.getNextHighestDepth(), {'_x': random(324) - 256, '_y': random(600) - 384, '_alpha': random(40) + 20, '_xscale': scale, '_yscale': scale, '_xspeed': (random(200) - 100) / 100, '_yspeed': (random(200) - 100) / 100, '_timeleft': random(100)});
}
++i;
}
onEnterFrame = function () {
var timer = new Date();
var timeNow = timer.getTime();
var dt = timeNow - lastFrameTime;
lastFrameTime = timeNow;
var i = 1;
while (i < num_Dust) {
var mc = eval('por' + i + '_mc');
mc._x += mc._xspeed;
mc._y += mc._yspeed;
mc._timeleft -= dt;
if (mc._timeleft < 0) {
mc._xspeed = (random(200) - 100) / 100;
mc._yspeed = (random(200) - 100) / 100;
mc._timeleft = random(2000) + 1000;
}
++i;
}
};
}
frame 196 {
_root.play();
stop();
}
}
button 897 {
on (press) {
gotoAndPlay('introstopped');
}
on (keyPress '<Escape>') {
gotoAndPlay('introstopped');
}
on (keyPress '<Space>') {
gotoAndPlay('introstopped');
}
}
frame 112 {
stop();
}
frame 186 {
}
movieClip 907 {
frame 1 {
intro_nextbtn_txt = _root.getstr('intro_nextbtn_txt');
}
frame 10 {
stop();
}
}
movieClip 909 {
}
movieClip 959 {
}
movieClip 964 {
}
movieClip 978 {
}
movieClip 983 {
}
movieClip 986 {
}
movieClip 1018 {
frame 1 {
function gotoNextPhase() {
++currFrameIndex;
gotoAndPlay('fr' + currFrameIndex);
}
var currFrameIndex = 1;
onMouseDown = gotoNextPhase;
var keyListener = new Object();
keyListener.onKeyDown = function () {
if (Key.isDown(27)) {
Key.removeListener(keyListener);
_root.play();
} else {
if (Key.isDown(32)) {
gotoNextPhase();
}
}
};
Key.addListener(keyListener);
}
frame 1 {
stop();
}
frame 1 {
_root.changemusic.musicname = 'music02';
_root.changemusic.gotoAndPlay('start');
}
frame 5 {
_root.playsound('comein');
}
frame 9 {
stop();
dlg01 = _root.getstr('intro_dlg01');
}
frame 13 {
_root.playsound('comein');
}
frame 17 {
dlg02 = _root.getstr('intro_dlg02');
}
frame 33 {
stop();
}
frame 38 {
_root.playsound('comein');
}
frame 41 {
stop();
dlg03 = _root.getstr('intro_dlg03');
}
frame 44 {
_root.playsound('comein');
}
frame 48 {
stop();
dlg04 = _root.getstr('intro_dlg04');
}
frame 49 {
_root.playsound('lelkes');
}
frame 52 {
_root.playsound('comein');
}
frame 55 {
dlg05 = _root.getstr('intro_dlg05');
}
frame 73 {
stop();
}
frame 74 {
stop();
dlg06 = _root.getstr('intro_dlg06');
}
frame 77 {
_root.playsound('comein');
}
frame 81 {
stop();
dlg07 = _root.getstr('intro_dlg07');
}
frame 84 {
_root.playsound('comein');
}
frame 89 {
stop();
dlg08 = _root.getstr('intro_dlg08');
}
frame 90 {
stop();
dlg09 = _root.getstr('intro_dlg09');
}
frame 147 {
_root.playsound('comein');
}
frame 150 {
stop();
dlg10 = _root.getstr('intro_dlg10');
}
frame 154 {
_root.playsound('comein');
}
frame 158 {
stop();
dlg11 = _root.getstr('intro_dlg11');
}
frame 179 {
++currFrameIndex;
}
frame 277 {
_root.playsound('comein');
}
frame 280 {
stop();
dlg12 = _root.getstr('intro_dlg12');
}
frame 303 {
++currFrameIndex;
}
frame 304 {
_root.playsound('thunder');
}
frame 307 {
dlg13 = _root.getstr('intro_dlg13');
dlg14 = _root.getstr('intro_dlg14');
dlg15 = _root.getstr('intro_dlg15');
dlg16 = _root.getstr('intro_dlg16');
}
frame 307 {
_root.playsound('comein');
}
frame 321 {
_root.playsound('comein');
}
frame 332 {
_root.playsound('comein');
}
frame 344 {
_root.playsound('comein');
}
frame 347 {
stop();
}
frame 406 {
_root.playsound('comein');
}
frame 409 {
dlg17 = _root.getstr('intro_dlg17');
}
frame 426 {
stop();
}
frame 457 {
_root.playsound('comein');
_root.playsound('thunder');
}
frame 461 {
stop();
dlg18 = _root.getstr('intro_dlg18');
}
frame 466 {
_root.playsound('comein');
}
frame 469 {
stop();
dlg19 = _root.getstr('intro_dlg19');
}
frame 474 {
_root.playsound('comein');
}
frame 477 {
stop();
dlg20 = _root.getstr('intro_dlg20');
}
frame 481 {
_root.playsound('comein');
}
frame 485 {
stop();
dlg21 = _root.getstr('intro_dlg21');
}
frame 488 {
_root.playsound('comein');
}
frame 493 {
stop();
dlg22 = _root.getstr('intro_dlg22');
}
frame 497 {
_root.playsound('comein');
}
frame 501 {
stop();
dlg23 = _root.getstr('intro_dlg23');
}
frame 505 {
_root.playsound('comein');
}
frame 509 {
dlg24 = _root.getstr('intro_dlg24');
stop();
}
frame 510 {
_root.play();
}
}
button 1024 {
on (press) {
_root.blackfade('main');
}
on (keyPress '<Escape>') {
trace('itt van');
_root.blackfade('main');
}
}
frame 199 {
stop();
}
frame 200 {
_root.blackfade('main');
stop();
}
button 1025 {
on (press) {
_root.blackfade('main');
}
on (keyPress '<Escape>') {
if (_root.black_fade_panel._currentframe == 2) {
_root.blackfade('main');
}
}
}
frame 209 {
stop();
}
movieClip 1030 {
}
movieClip 1036 {
frame 1 {
gotoAndPlay(random(18) + 2);
}
frame 20 {
_rotation = random(10) - 5;
_xscale = 190 + random(20);
_yscale = 190 + random(20);
}
frame 45 {
gotoAndPlay(random(18) + 2);
}
}
movieClip 1037 {
frame 1 {
i = 1;
while (i < 20) {
duplicateMovieClip(fust, 'fust' + i, this.getNextHighestDepth());
++i;
}
}
frame 10 {
stop();
}
}
movieClip 1038 {
}
movieClip 1041 {
}
movieClip 1042 {
frame 98 {
_root.playsound('lelkes');
}
frame 325 {
stop();
}
}
movieClip 1045 {
}
movieClip 1046 {
frame 13 {
i = 1;
while (i < 10) {
duplicateMovieClip(fust, 'fust' + i, this.getNextHighestDepth());
++i;
}
}
frame 50 {
stop();
}
}
movieClip 1047 {
frame 1 {
}
frame 10 {
_root.playsound('tomeg');
}
frame 300 {
_root.messagebox('end_of_game', 'end_of_game');
stop();
}
}
frame 219 {
stop();
}