Frame 1
ifFrameLoaded (47) {
gotoAndPlay (6);
}
Frame 2
gotoAndPlay (1);
Frame 6
stop();
Frame 7
s1 = new Sound(loop1);
s1.attachSound("loop1");
s2 = new Sound(loop2);
s2.attachSound("loop2");
s1.setVolume(0);
s2.setVolume(0);
Frame 8
fscommand ("allowscale", "false");
reset = "";
vel = "0";
fase = "1";
erro = "1";
caidas = "0";
pos_1 = "1358";
pos_2 = "1245";
pos_3 = "3489";
pos_4 = "125";
pos_5 = "12458";
pos_6 = "25";
pos_7 = "4789";
pos_8 = "246789";
pos_9 = "246789";
pos_10 = "246789";
pos_11 = "24789";
pos_12 = "1234568";
pos_13 = "1256";
pos_14 = "12346789";
pos_15 = "125";
pos_16 = "1234568";
pos_17 = "26";
num_1 = "4";
num_2 = "4";
num_3 = "4";
num_4 = "3";
num_5 = "5";
num_6 = "2";
num_7 = "4";
num_8 = "6";
num_9 = "6";
num_10 = "6";
num_11 = "5";
num_12 = "7";
num_13 = "4";
num_14 = "8";
num_15 = "3";
num_16 = "7";
num_17 = "2";
Frame 9
x_1 = "100";
y_1 = "157";
x_2 = "162";
y_2 = "154";
x_3 = "231";
y_3 = "152";
x_4 = "302";
y_4 = "153";
x_5 = "363";
y_5 = "155";
x_6 = "421";
y_6 = "156";
x_7 = "112";
y_7 = "202";
x_8 = "197";
y_8 = "204";
x_9 = "271";
y_9 = "204";
x_10 = "345";
y_10 = "204";
x_11 = "416";
y_11 = "203";
x_12 = "102";
y_12 = "261";
x_13 = "162";
y_13 = "264";
x_14 = "230";
y_14 = "264";
x_15 = "303";
y_15 = "263";
x_16 = "363";
y_16 = "263";
x_17 = "421";
y_17 = "258";
pix_1 = "160";
pix_2 = "221";
pix_3 = "286";
pix_4 = "250";
pix_5 = "303";
pix_6 = "357";
pix_7 = "171";
pix_8 = "261";
pix_9 = "218";
pix_10 = "283";
pix_11 = "351";
Frame 10
peca_1 = "";
peca_2 = "";
peca_3 = "";
peca_4 = "";
peca_5 = "";
peca_6 = "";
peca_7 = "";
peca_8 = "";
peca_9 = "";
peca_10 = "";
peca_11 = "";
peca_12 = "";
peca_13 = "";
peca_14 = "";
peca_15 = "";
peca_16 = "";
peca_17 = "";
cai_1 = "";
cai_2 = "";
cai_3 = "";
cai_4 = "";
cai_5 = "";
cai_6 = "";
cai_7 = "";
cai_8 = "";
cai_9 = "";
cai_10 = "";
cai_11 = "";
Frame 36
duplicateMovieClip ("/iguinho", "ig", 150);
setProperty("ig", _x , "74");
setProperty("ig", _y , "302");
reset = "";
Frame 37
stop();
tellTarget ("/placar") {
gotoAndPlay ("zera");
};
Frame 44
removeMovieClip("ig");
f = "1";
while (Number(/:erro) >= Number(f)) {
removeMovieClip("/erro_" add f);
f = Number(f) + 1;
}
g = "1";
while (17 >= Number(g)) {
removeMovieClip("/merc_" add g);
g = Number(g) + 1;
}
fase = "2";
reset = "ok";
stop();
Frame 45
removeMovieClip("ig");
f = "1";
while (Number(/:erro) >= Number(f)) {
removeMovieClip("/erro_" add f);
f = Number(f) + 1;
}
g = "1";
while (17 >= Number(g)) {
removeMovieClip("/merc_" add g);
g = Number(g) + 1;
}
fase = "3";
reset = "ok";
stop();
Frame 46
removeMovieClip("ig");
f = "1";
while (Number(/:erro) >= Number(f)) {
removeMovieClip("/erro_" add f);
f = Number(f) + 1;
}
g = "1";
while (17 >= Number(g)) {
removeMovieClip("/merc_" add g);
g = Number(g) + 1;
}
fase = "3";
reset = "ok";
stop();
Frame 47
loop1.gotoAndPlay("out");
loop2.gotoAndPlay("in");
removeMovieClip("ig");
f = "1";
while (Number(/:erro) >= Number(f)) {
removeMovieClip("/erro_" add f);
f = Number(f) + 1;
}
g = "1";
while (17 >= Number(g)) {
removeMovieClip("/merc_" add g);
g = Number(g) + 1;
}
reset = "ok";
tellTarget ("/placar") {
gotoAndStop ("fase");
};
stop();
Symbol 6 MovieClip Frame 1
stop();
Symbol 6 MovieClip Frame 7
gotoAndPlay (2);
Symbol 6 MovieClip Frame 8
stop();
Symbol 6 MovieClip Frame 9
stop();
Symbol 10 MovieClip Frame 1
stop();
Symbol 10 MovieClip Frame 7
gotoAndPlay (2);
Symbol 10 MovieClip Frame 8
stop();
Symbol 10 MovieClip Frame 9
stop();
Symbol 15 MovieClip Frame 1
stop();
Symbol 15 MovieClip Frame 7
gotoAndPlay (2);
Symbol 15 MovieClip Frame 8
stop();
Symbol 15 MovieClip Frame 9
stop();
Symbol 20 MovieClip Frame 12
stop();
Symbol 42 Button
on (release) {
gotoAndPlay (7);
}
Symbol 44 Button
on (release) {
gotoAndStop (5);
}
Symbol 45 Button
on (release) {
play();
}
Symbol 59 MovieClip Frame 1
pontos = "0";
stop();
Symbol 59 MovieClip Frame 2
tempo = "90";
start = getTimer();
Symbol 59 MovieClip Frame 3
timer = tempo - int((getTimer() - start) / 1000);
Symbol 59 MovieClip Frame 4
if (0 < Number(timer)) {
gotoAndPlay (3);
} else {
tellTarget ("/") {
gotoAndPlay("fase" add (/:fase + 1));
};
gotoAndPlay (5);
}
Symbol 59 MovieClip Frame 5
stop();
Symbol 62 MovieClip Frame 1
tellTarget ("/vidas") {
gotoAndStop(/:erro);
};
if (Number(/ig:merc_car) >= 7) {
setProperty("/ig/alert", _visible , "1");
}
Symbol 62 MovieClip Frame 2
gotoAndPlay (1);
Symbol 67 MovieClip Frame 1
stop();
Symbol 67 MovieClip Frame 2
stop();
Symbol 67 MovieClip Frame 3
stop();
Symbol 67 MovieClip Frame 4
stop();
Symbol 67 MovieClip Frame 5
stop();
Symbol 67 MovieClip Frame 6
stop();
tellTarget ("/") {
gotoAndStop ("gameover");
};
Symbol 71 MovieClip Frame 1
stop();
Symbol 71 MovieClip Frame 7
gotoAndPlay (2);
Symbol 71 MovieClip Frame 8
stop();
Symbol 71 MovieClip Frame 9
stop();
Symbol 74 MovieClip Frame 1
stop();
Symbol 74 MovieClip Frame 7
gotoAndPlay (2);
Symbol 74 MovieClip Frame 8
stop();
Symbol 74 MovieClip Frame 9
stop();
Symbol 79 MovieClip Frame 1
stop();
Symbol 79 MovieClip Frame 7
gotoAndPlay (2);
Symbol 79 MovieClip Frame 8
stop();
Symbol 79 MovieClip Frame 9
stop();
Symbol 84 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 7
gotoAndPlay (2);
Symbol 84 MovieClip Frame 8
stop();
Symbol 84 MovieClip Frame 9
stop();
Symbol 87 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 7
gotoAndPlay (2);
Symbol 87 MovieClip Frame 8
stop();
Symbol 87 MovieClip Frame 9
stop();
Symbol 91 MovieClip Frame 1
stop();
Symbol 91 MovieClip Frame 7
gotoAndPlay (2);
Symbol 91 MovieClip Frame 8
stop();
Symbol 91 MovieClip Frame 9
stop();
Symbol 92 MovieClip Frame 1
stop();
Symbol 92 MovieClip Frame 7
gotoAndPlay (2);
Symbol 92 MovieClip Frame 8
stop();
Symbol 92 MovieClip Frame 9
stop();
Symbol 98 MovieClip Frame 1
o = "1";
while (9 >= Number(o)) {
setProperty("" add o, _visible , "0");
o = Number(o) + 1;
}
Symbol 98 MovieClip Frame 2
stop();
Symbol 98 MovieClip Frame 3
stop();
Symbol 98 MovieClip Frame 4
stop();
Symbol 120 MovieClip Frame 1
setProperty("alert", _visible , "0");
merc_car = "0";
Symbol 120 MovieClip Frame 2
tellTarget ("car") {
gotoAndStop ("para");
};
stop();
Symbol 120 MovieClip Frame 3
tellTarget ("car") {
gotoAndStop ("esq");
};
stop();
Symbol 120 MovieClip Frame 4
tellTarget ("car") {
gotoAndStop ("dir");
};
stop();
Symbol 120 MovieClip Frame 5
_root.s1.setVolume(0);
_root.s2.setVolume(50);
Symbol 120 MovieClip Frame 26
m = "1";
while (9 >= Number(m)) {
setProperty("car/" add m, _visible , "0");
m = Number(m) + 1;
}
Symbol 120 MovieClip Frame 46
_root.s1.setVolume(70);
_root.s2.setVolume(0);
tellTarget ("/control_ig") {
gotoAndStop (1);
};
gotoAndPlay (1);
Symbol 121 MovieClip Frame 1
stop();
Symbol 121 MovieClip Frame 5
Set("/:volume1", /:s1.getVolume());
Symbol 121 MovieClip Frame 6
_root.s1.setVolume(/:volume1);
if (/:volume1 < 70) {
Set("/:volume2", /:volume1 + ((70 - /:volume1) / 20));
Set("/:volume1", int(/:volume2) + 1);
} else {
gotoAndStop (1);
}
Symbol 121 MovieClip Frame 7
gotoAndPlay (6);
Symbol 121 MovieClip Frame 15
Set("/:volume1", /:s1.getVolume());
Symbol 121 MovieClip Frame 16
_root.s1.setVolume(/:volume1);
if (0 < /:volume1) {
Set("/:volume1", int(/:volume1 - (/:volume1 / 20)));
} else {
gotoAndStop (1);
}
Symbol 121 MovieClip Frame 17
gotoAndPlay (16);
Symbol 122 MovieClip Frame 1
stop();
Symbol 122 MovieClip Frame 5
Set("/:volume3", /:s2.getVolume());
Symbol 122 MovieClip Frame 6
_root.s2.setVolume(/:volume3);
if (/:volume3 < 50) {
Set("/:volume4", /:volume3 + ((50 - /:volume3) / 20));
Set("/:volume3", int(/:volume4) + 1);
} else {
gotoAndStop (1);
}
Symbol 122 MovieClip Frame 7
gotoAndPlay (6);
Symbol 122 MovieClip Frame 15
Set("/:volume3", /:s2.getVolume());
Symbol 122 MovieClip Frame 16
_root.s2.setVolume(/:volume3);
if (0 < /:volume3) {
Set("/:volume3", int(/:volume3 - (/:volume3 / 20)));
} else {
gotoAndStop (1);
}
Symbol 122 MovieClip Frame 17
gotoAndPlay (16);
Symbol 124 MovieClip Frame 6
_root.s1.start(0, 999);
_root.s2.start(0, 999);
Symbol 124 MovieClip Frame 10
_root.loop1.gotoAndPlay("in");
stop();
Symbol 126 MovieClip Frame 1
i = "1";
peca_sorteia = "";
while (17 >= Number(i)) {
if (eval ("/:peca_" add i) eq "") {
peca_sorteia = i;
}
i = Number(i) + 1;
}
if (peca_sorteia ne "") {
a = random(eval ("/:num_" add peca_sorteia)) + 1;
b = substring(eval ("/:pos_" add peca_sorteia), a, 1);
Set("/:peca_" add peca_sorteia, b);
duplicateMovieClip ("/obj_" add b, "merc_" add peca_sorteia, 50 - peca_sorteia);
setProperty("/merc_" add peca_sorteia, _x , eval ("/:x_" add peca_sorteia));
setProperty("/merc_" add peca_sorteia, _y , eval ("/:y_" add peca_sorteia));
}
Symbol 126 MovieClip Frame 2
gotoAndPlay (1);
Symbol 133 MovieClip Frame 1
setProperty("/pit", _visible , "1");
_visible = "0";
tellTarget ("/pit_control") {
gotoAndPlay ("start");
};
stop();
Symbol 135 Button
on (keyPress "<Right>") {
tellTarget ("/ig") {
gotoAndStop ("dir");
};
Set("/:vel", "15");
}
on (keyPress "<Left>") {
tellTarget ("/ig") {
gotoAndStop ("esq");
};
Set("/:vel", "-15");
}
on (keyPress "<Up>") {
tellTarget ("/ig") {
gotoAndStop ("para");
};
Set("/:vel", "0");
}
on (keyPress "<Space>") {
tellTarget ("/ig") {
gotoAndPlay ("solta");
};
Set("/:vel", "0");
nextFrame();
}
Symbol 136 MovieClip Frame 1
stop();
Symbol 136 MovieClip Frame 2
stop();
Symbol 137 MovieClip Frame 1
vel = /:vel;
next = Number(getProperty("/ig", _x)) + Number(vel);
if ((Number(next) < 74) or (435 < Number(next))) {
Set("/:vel", "0");
tellTarget ("/ig") {
gotoAndStop ("para");
};
} else {
setProperty("../ig", _x , next);
}
Symbol 137 MovieClip Frame 2
gotoAndPlay (1);
Symbol 138 MovieClip Frame 2
start = getTimer();
Symbol 138 MovieClip Frame 3
if (Number(Number(start) + Number(0.5//:fase * 1000)) < Number(getTimer())) {
nxt = Number(random(11)) + 1;
empurra = random(3);
next_x = eval ("/:pix_" add nxt);
gotoAndPlay (5);
}
Symbol 138 MovieClip Frame 4
gotoAndPlay (3);
Symbol 138 MovieClip Frame 5
if (Number(getProperty("/pit", _x)) < Number(next_x)) {
incr_x = 15 * (/:fase / 2);
dire = "dir";
} else if (Number(next_x) < Number(getProperty("/pit", _x))) {
incr_x = -15 * (/:fase / 2);
dire = "esq";
} else {
gotoAndPlay (2);
}
Symbol 138 MovieClip Frame 6
setProperty("/pit", _x , Number(getProperty("/pit", _x)) + Number(incr_x));
Symbol 138 MovieClip Frame 7
if (dire eq "dir") {
if (Number(next_x) < Number(getProperty("/pit", _x))) {
setProperty("/pit", _x , next_x);
gotoAndPlay (8);
} else {
gotoAndPlay (6);
}
} else if (dire eq "esq") {
if (Number(getProperty("/pit", _x)) < Number(next_x)) {
setProperty("/pit", _x , next_x);
gotoAndPlay (8);
} else {
gotoAndPlay (6);
}
}
Symbol 138 MovieClip Frame 8
if ((eval ("/:cai_" add nxt) eq "ok") or (0 < empurra)) {
gotoAndPlay (2);
} else {
Set("/:caidas", Number(/:caidas) + 1);
Set("/:cai_" add nxt, "ok");
duplicateMovieClip ("/pc", (("pc_" add nxt) add "5_") add /:caidas, 160 + Number(/:caidas));
}
Symbol 138 MovieClip Frame 9
tellTarget ((("/pc_" add nxt) add "5_") add /:caidas) {
play();
};
gotoAndPlay (2);
Symbol 138 MovieClip Frame 10
incr_x = -30;
next_x = 102;
Symbol 138 MovieClip Frame 11
setProperty("/pit", _x , Number(getProperty("/pit", _x)) + Number(incr_x));
Symbol 138 MovieClip Frame 12
if (Number(getProperty("/pit", _x)) < Number(next_x)) {
setProperty("/pit", _x , next_x);
gotoAndPlay (13);
} else {
gotoAndPlay (11);
}
Symbol 138 MovieClip Frame 13
setProperty("/sarro", _visible , "1");
setProperty("/pit", _visible , "0");
tellTarget ("/sarro") {
play();
};
stop();
Symbol 142 MovieClip Frame 1
peca = substring(_name, 4, 2);
if (14 < Number(peca)) {
peca = substring(_name, 4, 1);
}
stop();
Symbol 142 MovieClip Frame 2
tellTarget ("/merc_" add peca) {
gotoAndPlay ("mexe");
};
Symbol 142 MovieClip Frame 32
tellTarget ("/merc_" add peca) {
gotoAndPlay ("cai");
};
Symbol 142 MovieClip Frame 33
vel = 6 * (/:fase / 2);
Symbol 142 MovieClip Frame 34
setProperty("/merc_" add peca, _y , getProperty("/merc_" add peca, _y) + vel);
if (/:reset ne "") {
removeMovieClip(_target);
}
Symbol 142 MovieClip Frame 35
if (((300 < getProperty("/merc_" add peca, _y)) and (getProperty("/merc_" add peca, _y) < 330)) and (/ig:merc_car < 10)) {
if (((getProperty("/ig", _x) + 4) < getProperty("/merc_" add peca, _x)) and (getProperty("/merc_" add peca, _x) < (getProperty("/ig", _x) + 70))) {
gotoAndPlay (37);
} else {
gotoAndPlay (34);
}
} else if (330 < getProperty("/merc_" add peca, _y)) {
gotoAndPlay (41);
} else {
gotoAndPlay (34);
}
Symbol 142 MovieClip Frame 37
removeMovieClip("/merc_" add peca);
mercadoria = eval ("/:peca_" add peca);
setProperty("/ig/car/" add mercadoria, _visible , "1");
Set("/:cai_" add peca, "");
Set("/:peca_" add peca, "");
Set("/ig:merc_car", Number(/ig:merc_car) + 1);
Set("/placar:pontos", Number(/placar:pontos) + Number(/:fase * 10));
removeMovieClip(_target);
stop();
Symbol 142 MovieClip Frame 41
mercadoria = eval ("/:peca_" add peca);
duplicateMovieClip ("/obj_" add mercadoria, "erro_" add /:erro, Number(/:erro) + 5);
setProperty("/erro_" add /:erro, _x , getProperty("/merc_" add peca, _x));
setProperty("/erro_" add /:erro, _y , getProperty("/merc_" add peca, _y));
tellTarget ("/erro_" add /:erro) {
gotoAndStop ("chao");
};
Set("/:cai_" add peca, "");
Set("/:peca_" add peca, "");
Set("/:erro", Number(/:erro) + 1);
tellTarget ("/pit_control") {
gotoAndPlay ("vai_sarro");
};
removeMovieClip("/merc_" add peca);
removeMovieClip(_target);
stop();
Symbol 144 Button
on (release) {
gotoAndPlay (10);
}
Symbol 146 Button
on (release) {
gotoAndPlay (10);
}
Symbol 150 Button
on (release) {
gotoAndPlay (8);
}
Symbol 154 Button
on (release) {
gotoAndPlay (8);
loop1.gotoAndPlay("in");
loop2.gotoAndPlay("out");
}