Frame 1
byteloaded = _root.getBytesLoaded();
bytetotal = _root.getBytesTotal();
loaded = int((byteloaded / bytetotal) * 100);
bar1.gotoAndStop(loaded);
percent = loaded + "%";
Frame 13
if (byteloaded == bytetotal) {
gotoAndPlay (14);
} else {
gotoAndPlay (1);
}
Frame 14
gotoAndPlay (39);
Frame 23
function chktop() {
if (man._y <= 98) {
wo.start();
man._y = 99;
addhit();
gotoAndPlay (27);
dellife();
}
}
function setwt(wt) {
var _local1 = wt;
aa = random(100);
if (aa < 28) {
_local1.gotoAndStop("p");
_local1.s = "p";
} else if ((aa >= 28) && (aa < 46)) {
_local1.gotoAndStop("t");
_local1.s = "t";
} else if ((aa >= 46) && (aa < 55)) {
_local1.gotoAndPlay("rolll");
_local1.s = "rolll";
} else if ((aa >= 55) && (aa < 64)) {
_local1.gotoAndPlay("rollr");
_local1.s = "rollr";
} else if ((aa >= 64) && (aa < 83)) {
_local1.gotoAndStop("c");
_local1.s = "c";
} else if ((aa >= 83) && (aa < 100)) {
_local1.gotoAndStop("d");
_local1.s = "d";
}
}
function movwt() {
var _local1 = _root;
i = 0;
while (i <= 8) {
wt = "wt" + i;
_local1[wt]._y = _local1[wt]._y - _local1.speed;
if (_local1[wt]._y < 30) {
_local1[wt]._y = 570;
_local1[wt]._x = 100 + (random(19) * 20);
setwt(_local1[wt]);
}
i++;
}
_local1.l1._y = _local1.l1._y - _local1.speed;
if (_local1.l1._y < 60) {
_local1.l1._y = 500;
_local1.lev = _local1.lev + 1;
if (_local1.lev < 10) {
_local1.bg2.level = "00" + _local1.lev;
} else if (_local1.lev >= 100) {
_local1.pic._visible = true;
_local1.bg2.level = _local1.lev;
} else {
_local1.bg2.level = "0" + _local1.lev;
}
}
_local1.l2._y = _local1.l2._y - _local1.speed;
if (_local1.l2._y < 60) {
_local1.l2._y = 500;
}
}
function movmanl() {
var _local1 = _root;
if (Key.isDown(39)) {
_local1.man._x = _local1.man._x + _local1.movx;
if (_local1.man.state != "r") {
_local1.man.gotoAndPlay("right");
_local1.man.state = "r";
}
} else if (Key.isDown(37)) {
_local1.man._x = _local1.man._x - _local1.movx;
if (_local1.man.state != "l") {
_local1.man.gotoAndPlay("left");
_local1.man.state = "l";
}
} else {
_local1.man.gotoAndStop(1);
_local1.man.state = "p";
}
_local1.man._x = _local1.man._x - 2;
if (_local1.man._x > 500) {
_local1.man._x = 500;
} else if (_local1.man._x < 60) {
_local1.man._x = 60;
}
}
function movmanr() {
var _local1 = _root;
if (Key.isDown(39)) {
_local1.man._x = _local1.man._x + _local1.movx;
if (_local1.man.state != "r") {
_local1.man.gotoAndPlay("right");
_local1.man.state = "r";
}
} else if (Key.isDown(37)) {
_local1.man._x = _local1.man._x - _local1.movx;
if (_local1.man.state != "l") {
_local1.man.gotoAndPlay("left");
_local1.man.state = "l";
}
} else {
_local1.man.gotoAndStop(1);
_local1.man.state = "p";
}
_local1.man._x = _local1.man._x + 2;
if (_local1.man._x > 500) {
_local1.man._x = 500;
} else if (_local1.man._x < 60) {
_local1.man._x = 60;
}
}
function movman() {
var _local1 = _root;
if (Key.isDown(39)) {
_local1.man._x = _local1.man._x + _local1.movx;
if (_local1.man.state != "r") {
_local1.man.gotoAndPlay("right");
_local1.man.state = "r";
}
} else if (Key.isDown(37)) {
_local1.man._x = _local1.man._x - _local1.movx;
if (_local1.man.state != "l") {
_local1.man.gotoAndPlay("left");
_local1.man.state = "l";
}
} else {
_local1.man.gotoAndStop(1);
_local1.man.state = "p";
}
if (_local1.man._x > 500) {
_local1.man._x = 500;
} else if (_local1.man._x < 60) {
_local1.man._x = 60;
}
}
function movman2() {
var _local1 = _root;
if (Key.isDown(39)) {
_local1.man._x = _local1.man._x + _local1.movx;
if (_local1.man.state != "r2") {
_local1.man.gotoAndPlay("fr");
_local1.man.state = "r2";
}
} else if (Key.isDown(37)) {
_local1.man._x = _local1.man._x - _local1.movx;
if (_local1.man.state != "l2") {
_local1.man.gotoAndPlay("fl");
_local1.man.state = "l2";
}
} else if (_local1.man.state != "f") {
_local1.man.gotoAndPlay("fly");
_local1.man.state = "f";
}
if (_local1.man._x > 500) {
_local1.man._x = 500;
} else if (_local1.man._x < 60) {
_local1.man._x = 60;
}
}
function addlife() {
lif = _root.life._currentframe - 1;
if (lif <= 0) {
lif = 1;
}
_root.life.gotoAndStop(lif);
}
function dellife() {
var _local1 = _root;
lif = _local1.life._currentframe + 5;
if (lif >= 13) {
_local1.life.gotoAndStop(13);
dead.start();
_local1.gotoAndPlay("over");
} else {
_local1.life.gotoAndStop(lif);
}
}
function goto() {
var _local1 = _root;
cframe = _local1["wt" + _local1.hit].s;
if (cframe == "p") {
pause.start();
addlife();
_local1.gotoAndPlay("stopman");
} else if (cframe == "c") {
wo.start();
_local1.gotoAndPlay("stopman");
dellife();
} else if (cframe == "t") {
th.start();
addlife();
_local1["wt" + _local1.hit].gotoAndPlay("pop");
_local1.gotoAndPlay("popman");
} else if (cframe == "d") {
drop.start();
addlife();
_local1["wt" + _local1.hit].gotoAndPlay("cut");
_local1.gotoAndPlay("cutman");
} else if (cframe == "rolll") {
pause.start();
addlife();
_local1.gotoAndPlay("rolllman");
} else if (cframe == "rollr") {
pause.start();
addlife();
_local1.gotoAndPlay("rollrman");
}
}
function addhit() {
var _local1 = _root;
_local1.hit = _local1.hit + 1;
if (_local1.hit == 9) {
_local1.hit = 0;
}
}
poph = 5.3;
movy2 = 0;
cutloop = 0;
hit = 7;
lev = 1;
top.duplicateMovieClip("top2", 201);
bg.duplicateMovieClip("bg2", 202);
bg2.mask._visible = false;
bg2.level = "001";
present.duplicateMovieClip("present2", 203);
life2.duplicateMovieClip("life", 205);
life.gotoAndStop(1);
movx = 5;
speed = 2.2;
movy = 0.5;
wty = 90;
i = 0;
while (i <= 8) {
wtxx.duplicateMovieClip("wt" + i, i + 100);
wt = "wt" + i;
_root[wt]._y = wty;
_root[wt]._x = 100 + (random(19) * 20);
wty = wty + 60;
i++;
}
wt7._x = 280;
man2.duplicateMovieClip("man", 200);
man._y = wt7._y - 30;
man.state = "p";
dead = new Sound();
dead.attachSound("dead");
pause = new Sound();
pause.attachSound("pause");
wo = new Sound();
wo.attachSound("wo");
th = new Sound();
th.attachSound("th");
drop = new Sound();
drop.attachSound("drop");
Frame 24
i = 0;
while (i <= 8) {
setwt(_root["wt" + i]);
i++;
}
wt7.gotoAndStop("p");
wt7.s = "p";
Frame 25
movman();
movwt();
man._y = man._y - speed;
if (((_root["wt" + hit]._x - 60) > (man._x + 15)) || ((_root["wt" + hit]._x + 60) < (man._x - 15))) {
addhit();
gotoAndPlay (27);
}
chktop();
Frame 26
movman();
movwt();
man._y = man._y - speed;
if (((_root["wt" + hit]._x - 60) > (man._x + 15)) || ((_root["wt" + hit]._x + 60) < (man._x - 15))) {
addhit();
gotoAndPlay (27);
} else {
gotoAndPlay (25);
}
chktop();
Frame 27
movwt();
movman2();
man._y = man._y + movy2;
movy2 = movy2 + movy;
wt = "wt" + hit;
if ((man._y + 20) >= (_root[wt]._y - 10)) {
if (((_root[wt]._x - 60) < (man._x + 15)) && ((_root[wt]._x + 60) > (man._x - 15))) {
man._y = _root[wt]._y - 30;
movy2 = 0;
goto();
} else {
addhit();
}
}
if (man._y >= 480) {
dead.start();
gotoAndPlay (37);
}
Frame 28
movwt();
movman2();
man._y = man._y + movy2;
movy2 = movy2 + movy;
wt = "wt" + hit;
if ((man._y + 20) >= (_root[wt]._y - 10)) {
if (((_root[wt]._x - 60) < (man._x + 15)) && ((_root[wt]._x + 60) > (man._x - 15))) {
man._y = _root[wt]._y - 30;
movy2 = 0;
goto();
} else {
addhit();
gotoAndPlay (27);
}
} else {
gotoAndPlay (27);
}
if (man._y >= 480) {
dead.start();
gotoAndPlay (37);
}
Frame 29
man._y = man._y - poph;
poph = poph - 0.1;
movman2();
movwt();
if (poph <= 3) {
poph = 5.3;
gotoAndPlay (27);
}
chktop();
Frame 30
man._y = man._y - poph;
poph = poph - 0.1;
movman2();
movwt();
if (poph <= 3) {
poph = 5.3;
gotoAndPlay (27);
} else {
gotoAndPlay (29);
}
chktop();
Frame 31
movman();
movwt();
man._y = man._y - speed;
if (((_root["wt" + hit]._x - 60) > (man._x + 15)) || ((_root["wt" + hit]._x + 60) < (man._x - 15))) {
addhit();
cutloop = 0;
gotoAndPlay (27);
} else if (cutloop == 5) {
addhit();
cutloop = 0;
gotoAndPlay (27);
}
chktop();
Frame 32
movman();
movwt();
man._y = man._y - speed;
if (((_root["wt" + hit]._x - 60) > (man._x + 15)) || ((_root["wt" + hit]._x + 60) < (man._x - 15))) {
addhit();
cutloop = 0;
gotoAndPlay (27);
} else {
cutloop = cutloop + 1;
gotoAndPlay (31);
}
chktop();
Frame 33
movmanl();
movwt();
man._y = man._y - speed;
if (((_root["wt" + hit]._x - 60) > (man._x + 15)) || ((_root["wt" + hit]._x + 60) < (man._x - 15))) {
addhit();
gotoAndPlay (27);
}
chktop();
Frame 34
movmanl();
movwt();
man._y = man._y - speed;
if (((_root["wt" + hit]._x - 60) > (man._x + 15)) || ((_root["wt" + hit]._x + 60) < (man._x - 15))) {
addhit();
gotoAndPlay (27);
} else {
gotoAndPlay (33);
}
chktop();
Frame 35
movmanr();
movwt();
man._y = man._y - speed;
if (((_root["wt" + hit]._x - 60) > (man._x + 15)) || ((_root["wt" + hit]._x + 60) < (man._x - 15))) {
addhit();
gotoAndPlay (27);
}
chktop();
Frame 36
movmanr();
movwt();
man._y = man._y - speed;
if (((_root["wt" + hit]._x - 60) > (man._x + 15)) || ((_root["wt" + hit]._x + 60) < (man._x - 15))) {
addhit();
gotoAndPlay (27);
} else {
gotoAndPlay (35);
}
chktop();
Frame 37
movwt();
man._y = man._y + movy2;
movy2 = movy2 + movy;
if (man._y >= 520) {
gotoAndPlay (39);
}
Frame 38
movwt();
man._y = man._y + movy2;
movy2 = movy2 + movy;
if (man._y >= 520) {
gotoAndPlay (39);
} else {
gotoAndPlay (37);
}
Frame 39
i = 0;
while (i <= 8) {
removeMovieClip("wt" + i);
i++;
}
removeMovieClip("top2");
removeMovieClip("life");
removeMovieClip("bg2");
removeMovieClip("man");
Frame 67
if (pass == "8360459") {
pic._visible = true;
} else {
pic._visible = false;
}
stop();
Frame 94
stop();
Symbol 77 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 2
stop();
Symbol 77 MovieClip Frame 3
stop();
Symbol 77 MovieClip Frame 4
stop();
Symbol 77 MovieClip Frame 11
gotoAndStop (3);
Symbol 77 MovieClip Frame 25
stop();
Symbol 77 MovieClip Frame 37
gotoAndPlay (26);
Symbol 77 MovieClip Frame 49
gotoAndPlay (38);
Symbol 89 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 5
_root.man.r = 0;
gotoAndPlay (2);
Symbol 89 MovieClip Frame 9
_root.man.l = 0;
gotoAndPlay (6);
Symbol 89 MovieClip Frame 13
gotoAndPlay (10);
Symbol 89 MovieClip Frame 17
gotoAndPlay (14);
Symbol 89 MovieClip Frame 21
gotoAndPlay (18);
Symbol 111 Button
on (press) {
gotoAndPlay (15);
}
Symbol 117 Button
on (press) {
gotoAndPlay (39);
}