Frame 1
function end() {
gotoAndStop (152);
}
Stage.scaleMode = "noScale";
Stage.showMenu = false;
fscommand ("trapallkeys", "true");
stopAllSounds();
Instance of Symbol 15 MovieClip in Frame 1
//component parameters
onClipEvent (initialize) {
xin_motion_val = "Toward";
xin_alphatype_val = "No";
xout_motion_val = "Away";
xout_alphatype_val = "No";
perc_req_val = 100;
show_perc_val = "Yes";
slow_factor_val = 0.52;
init_action_val = "_root.stop();";
play_action_val = "_root.play();";
}
//component parameters
onClipEvent (initialize) {
xin_motion_val = "Toward";
xin_alphatype_val = "No";
xout_motion_val = "Away";
xout_alphatype_val = "No";
perc_req_val = 100;
show_perc_val = "Yes";
slow_factor_val = 0.52;
init_action_val = "_root.stop();";
play_action_val = "_root.play();";
}
Frame 2
stop();
Frame 3
stopAllSounds();
Instance of Symbol 33 MovieClip in Frame 3
onClipEvent (load) {
_root.soundstatus = "on";
_root.mySound = new Sound(_level0);
_root.mySound2 = new Sound(_level1);
_root.mySound3 = new Sound(_level2);
_root.mySound4 = new Sound(_level3);
_root.mySound5 = new Sound(_level4);
maxvolume = 100;
minvolume = 0;
}
onClipEvent (enterFrame) {
if (_root.soundstatus == "on") {
step = 5;
}
if (_root.soundstatus == "off") {
step = -5;
}
maxvolume = maxvolume + step;
if (maxvolume > 100) {
maxvolume = 100;
}
if (maxvolume < 0) {
maxvolume = 0;
}
_root.mySound.setVolume(maxvolume);
_root.mySound2.setVolume(maxvolume);
_root.mySound3.setVolume(maxvolume);
_root.mySound4.setVolume(maxvolume);
_root.mySound5.setVolume(maxvolume);
}
Instance of Symbol 104 MovieClip "instructions" in Frame 3
onClipEvent (load) {
this._visible = false;
}
Frame 46
stop();
Frame 47
_root.soundstatus = "off";
Frame 85
stopAllSounds();
Frame 86
function scrolling() {
rx2 = -(game_engine.leo.x - 200);
ry2 = -(game_engine.leo.y - 300);
rx = Math.round(((rx * 9) + rx2) / 10);
ry = Math.round(((ry * 9) + ry2) / 10);
if (rx > 700) {
rx = 700;
}
if (rx < b_right) {
rx = b_right;
}
setProperty("game_engine", _x , rx);
setProperty("game_engine", _y , ry);
}
stop();
_root.live.lives = 3;
_root.score = 0;
rx = 0;
ry = 0;
b_right = -1320;
_root.scoreClip.plotScore();
Instance of Symbol 169 MovieClip in Frame 86
onClipEvent (enterFrame) {
if (alive == true) {
if (hitTest(_parent.game_engine.leo.bbox)) {
alive = false;
if (_root.live.lives > 0) {
_parent.game_engine.leo.state = 3;
_parent.game_engine.leo.gotoAndPlay("fall");
_parent.game_engine.leo.hp = 0;
_root.live.lives--;
_root.live.gotoAndStop(_root.live.lives + 1);
} else {
_parent.game_engine.leo.gotoAndPlay("fall");
_root.gameover = true;
}
play();
}
}
}
Instance of Symbol 389 MovieClip "game_engine" in Frame 86
onClipEvent (enterFrame) {
_parent.scrolling();
}
Instance of Symbol 437 MovieClip in Frame 86
onClipEvent (load) {
text1 = "level 1";
text2 = "slimy forest";
}
Instance of Symbol 459 MovieClip "scoreClip" in Frame 86
onClipEvent (load) {
function plotScore() {
var _local2 = this;
s = _root.score;
if (s > 9) {
var _local1 = s % 10;
s = s - _local1;
} else {
var _local1 = s;
}
_local1++;
d1 = _local1++;
tellTarget (digit1) {
gotoAndStop(_local2.d1);
};
if (s > 90) {
_local1 = s % 100;
s = s - _local1;
_local1 = _local1 / 10;
} else {
_local1 = s / 10;
}
_local1++;
d2 = _local1++;
tellTarget (digit2) {
gotoAndStop(_local2.d2);
};
if (s > 900) {
_local1 = s % 1000;
s = s - _local1;
_local1 = _local1 / 100;
} else {
_local1 = s / 100;
}
_local1++;
d3 = _local1++;
tellTarget (digit3) {
gotoAndStop(_local2.d3);
};
if (s > 9000) {
_local1 = s % 10000;
s = s - _local1;
_local1 = _local1 / 1000;
} else {
_local1 = s / 1000;
}
_local1++;
d4 = _local1++;
tellTarget (digit4) {
gotoAndStop(_local2.d4);
};
if (s > 90000) {
_local1 = s % 100000;
s = s - _local1;
_local1 = _local1 / 10000;
} else {
_local1 = s / 10000;
}
_local1++;
d5 = _local1++;
tellTarget (digit5) {
gotoAndStop(_local2.d5);
};
if (s > 900000) {
_local1 = s % 1000000;
s = s - _local1;
_local1 = _local1 / 100000;
} else {
_local1 = s / 100000;
}
_local1++;
d6 = _local1++;
tellTarget (digit6) {
gotoAndStop(_local2.d6);
};
if (s > 9000000) {
_local1 = s % 10000000;
s = s - _local1;
_local1 = _local1 / 1000000;
} else {
_local1 = s / 1000000;
}
_local1++;
d7 = _local1++;
tellTarget (digit7) {
gotoAndStop(_local2.d7);
};
myfunc = null;
}
plotScore();
var d1 = ((d2 = (d3 = (d4 = (d5 = (d6 = (d7 = 0)))))));
}
Instance of Symbol 462 MovieClip "starClip" in Frame 86
onClipEvent (load) {
function plotScore() {
var _local2 = this;
s = _root.game_engine.star;
if (s > 9) {
var _local1 = s % 10;
s = s - _local1;
} else {
var _local1 = s;
}
_local1++;
d1 = _local1++;
tellTarget (digit1) {
gotoAndStop(_local2.d1);
};
if (s > 90) {
_local1 = s % 100;
s = s - _local1;
_local1 = _local1 / 10;
} else {
_local1 = s / 10;
}
_local1++;
d2 = _local1++;
tellTarget (digit2) {
gotoAndStop(_local2.d2);
};
if (s > 900) {
_local1 = s % 1000;
s = s - _local1;
_local1 = _local1 / 100;
} else {
_local1 = s / 100;
}
_local1++;
d3 = _local1++;
tellTarget (digit3) {
gotoAndStop(_local2.d3);
};
if (s > 9000) {
_local1 = s % 10000;
s = s - _local1;
_local1 = _local1 / 1000;
} else {
_local1 = s / 1000;
}
_local1++;
d4 = _local1++;
tellTarget (digit4) {
gotoAndStop(_local2.d4);
};
if (s > 90000) {
_local1 = s % 100000;
s = s - _local1;
_local1 = _local1 / 10000;
} else {
_local1 = s / 10000;
}
_local1++;
d5 = _local1++;
tellTarget (digit5) {
gotoAndStop(_local2.d5);
};
if (s > 900000) {
_local1 = s % 1000000;
s = s - _local1;
_local1 = _local1 / 100000;
} else {
_local1 = s / 100000;
}
_local1++;
d6 = _local1++;
tellTarget (digit6) {
gotoAndStop(_local2.d6);
};
if (s > 9000000) {
_local1 = s % 10000000;
s = s - _local1;
_local1 = _local1 / 1000000;
} else {
_local1 = s / 1000000;
}
_local1++;
d7 = _local1++;
tellTarget (digit7) {
gotoAndStop(_local2.d7);
};
myfunc = null;
}
var d1 = ((d2 = (d3 = (d4 = (d5 = (d6 = (d7 = 0)))))));
}
Instance of Symbol 468 MovieClip "live" in Frame 86
onClipEvent (load) {
this.gotoAndStop(_root.live.lives + 1);
}
Instance of Symbol 33 MovieClip in Frame 86
onClipEvent (load) {
_root.soundstatus = "on";
_root.mySound = new Sound(_level0);
_root.mySound2 = new Sound(_level1);
_root.mySound3 = new Sound(_level2);
_root.mySound4 = new Sound(_level3);
_root.mySound5 = new Sound(_level4);
maxvolume = 100;
minvolume = 0;
}
onClipEvent (enterFrame) {
if (_root.soundstatus == "on") {
step = 5;
}
if (_root.soundstatus == "off") {
step = -5;
}
maxvolume = maxvolume + step;
if (maxvolume > 100) {
maxvolume = 100;
}
if (maxvolume < 0) {
maxvolume = 0;
}
_root.mySound.setVolume(maxvolume);
_root.mySound2.setVolume(maxvolume);
_root.mySound3.setVolume(maxvolume);
_root.mySound4.setVolume(maxvolume);
_root.mySound5.setVolume(maxvolume);
}
Frame 87
_root.soundstatus = "off";
Frame 107
stop();
stopAllSounds();
_root.vies = _root.live.lives;
if (_root.leveldone == true) {
gotoAndStop (108);
}
if (_root.gameover == true) {
gotoAndStop (152);
}
Frame 108
function scrolling() {
rx2 = -(game_engine.leo.x - 200);
ry2 = -(game_engine.leo.y - 300);
rx = Math.round(((rx * 9) + rx2) / 10);
ry = Math.round(((ry * 9) + ry2) / 10);
if (rx > 700) {
rx = 700;
}
if (rx < b_right) {
rx = b_right;
}
setProperty("game_engine", _x , rx);
setProperty("game_engine", _y , ry);
}
stop();
_root.scoreClip.plotScore();
rx = 0;
ry = 0;
_root.live.lives = _root.vies;
b_right = -1320;
Instance of Symbol 497 MovieClip "game_engine" in Frame 108
onClipEvent (enterFrame) {
_parent.scrolling();
}
Instance of Symbol 437 MovieClip in Frame 108
onClipEvent (load) {
text1 = "level 2";
text2 = "slimy's evening";
}
Instance of Symbol 459 MovieClip "scoreClip" in Frame 108
onClipEvent (load) {
function plotScore() {
var _local2 = this;
s = _root.score;
if (s > 9) {
var _local1 = s % 10;
s = s - _local1;
} else {
var _local1 = s;
}
_local1++;
d1 = _local1++;
tellTarget (digit1) {
gotoAndStop(_local2.d1);
};
if (s > 90) {
_local1 = s % 100;
s = s - _local1;
_local1 = _local1 / 10;
} else {
_local1 = s / 10;
}
_local1++;
d2 = _local1++;
tellTarget (digit2) {
gotoAndStop(_local2.d2);
};
if (s > 900) {
_local1 = s % 1000;
s = s - _local1;
_local1 = _local1 / 100;
} else {
_local1 = s / 100;
}
_local1++;
d3 = _local1++;
tellTarget (digit3) {
gotoAndStop(_local2.d3);
};
if (s > 9000) {
_local1 = s % 10000;
s = s - _local1;
_local1 = _local1 / 1000;
} else {
_local1 = s / 1000;
}
_local1++;
d4 = _local1++;
tellTarget (digit4) {
gotoAndStop(_local2.d4);
};
if (s > 90000) {
_local1 = s % 100000;
s = s - _local1;
_local1 = _local1 / 10000;
} else {
_local1 = s / 10000;
}
_local1++;
d5 = _local1++;
tellTarget (digit5) {
gotoAndStop(_local2.d5);
};
if (s > 900000) {
_local1 = s % 1000000;
s = s - _local1;
_local1 = _local1 / 100000;
} else {
_local1 = s / 100000;
}
_local1++;
d6 = _local1++;
tellTarget (digit6) {
gotoAndStop(_local2.d6);
};
if (s > 9000000) {
_local1 = s % 10000000;
s = s - _local1;
_local1 = _local1 / 1000000;
} else {
_local1 = s / 1000000;
}
_local1++;
d7 = _local1++;
tellTarget (digit7) {
gotoAndStop(_local2.d7);
};
myfunc = null;
}
plotScore();
var d1 = ((d2 = (d3 = (d4 = (d5 = (d6 = (d7 = 0)))))));
}
Instance of Symbol 462 MovieClip "starClip" in Frame 108
onClipEvent (load) {
function plotScore() {
var _local2 = this;
s = _root.game_engine.star;
if (s > 9) {
var _local1 = s % 10;
s = s - _local1;
} else {
var _local1 = s;
}
_local1++;
d1 = _local1++;
tellTarget (digit1) {
gotoAndStop(_local2.d1);
};
if (s > 90) {
_local1 = s % 100;
s = s - _local1;
_local1 = _local1 / 10;
} else {
_local1 = s / 10;
}
_local1++;
d2 = _local1++;
tellTarget (digit2) {
gotoAndStop(_local2.d2);
};
if (s > 900) {
_local1 = s % 1000;
s = s - _local1;
_local1 = _local1 / 100;
} else {
_local1 = s / 100;
}
_local1++;
d3 = _local1++;
tellTarget (digit3) {
gotoAndStop(_local2.d3);
};
if (s > 9000) {
_local1 = s % 10000;
s = s - _local1;
_local1 = _local1 / 1000;
} else {
_local1 = s / 1000;
}
_local1++;
d4 = _local1++;
tellTarget (digit4) {
gotoAndStop(_local2.d4);
};
if (s > 90000) {
_local1 = s % 100000;
s = s - _local1;
_local1 = _local1 / 10000;
} else {
_local1 = s / 10000;
}
_local1++;
d5 = _local1++;
tellTarget (digit5) {
gotoAndStop(_local2.d5);
};
if (s > 900000) {
_local1 = s % 1000000;
s = s - _local1;
_local1 = _local1 / 100000;
} else {
_local1 = s / 100000;
}
_local1++;
d6 = _local1++;
tellTarget (digit6) {
gotoAndStop(_local2.d6);
};
if (s > 9000000) {
_local1 = s % 10000000;
s = s - _local1;
_local1 = _local1 / 1000000;
} else {
_local1 = s / 1000000;
}
_local1++;
d7 = _local1++;
tellTarget (digit7) {
gotoAndStop(_local2.d7);
};
myfunc = null;
}
var d1 = ((d2 = (d3 = (d4 = (d5 = (d6 = (d7 = 0)))))));
}
Instance of Symbol 468 MovieClip "live" in Frame 108
onClipEvent (load) {
this.gotoAndStop(_root.live.lives + 1);
}
Instance of Symbol 33 MovieClip in Frame 108
onClipEvent (load) {
_root.soundstatus = "on";
_root.mySound = new Sound(_level0);
_root.mySound2 = new Sound(_level1);
_root.mySound3 = new Sound(_level2);
_root.mySound4 = new Sound(_level3);
_root.mySound5 = new Sound(_level4);
maxvolume = 100;
minvolume = 0;
}
onClipEvent (enterFrame) {
if (_root.soundstatus == "on") {
step = 5;
}
if (_root.soundstatus == "off") {
step = -5;
}
maxvolume = maxvolume + step;
if (maxvolume > 100) {
maxvolume = 100;
}
if (maxvolume < 0) {
maxvolume = 0;
}
_root.mySound.setVolume(maxvolume);
_root.mySound2.setVolume(maxvolume);
_root.mySound3.setVolume(maxvolume);
_root.mySound4.setVolume(maxvolume);
_root.mySound5.setVolume(maxvolume);
}
Frame 109
_root.soundstatus = "off";
Frame 129
stop();
stopAllSounds();
_root.vies = _root.live.lives;
if (_root.leveldone == true) {
gotoAndStop (130);
}
if (_root.gameover == true) {
gotoAndStop (152);
}
Frame 130
function scrolling() {
rx2 = -(game_engine.leo.x - 200);
ry2 = -(game_engine.leo.y - 300);
rx = Math.round(((rx * 9) + rx2) / 10);
ry = Math.round(((ry * 9) + ry2) / 10);
if (rx > 700) {
rx = 700;
}
if (rx < b_right) {
rx = b_right;
}
setProperty("game_engine", _x , rx);
setProperty("game_engine", _y , ry);
}
stop();
rx = 0;
ry = 0;
b_right = -1320;
_root.live.lives = _root.vies;
Instance of Symbol 547 MovieClip "game_engine" in Frame 130
onClipEvent (enterFrame) {
_parent.scrolling();
}
Instance of Symbol 437 MovieClip in Frame 130
onClipEvent (load) {
text1 = "level 3";
text2 = "muffin jack flash";
}
Instance of Symbol 459 MovieClip "scoreClip" in Frame 130
onClipEvent (load) {
function plotScore() {
var _local2 = this;
s = _root.score;
if (s > 9) {
var _local1 = s % 10;
s = s - _local1;
} else {
var _local1 = s;
}
_local1++;
d1 = _local1++;
tellTarget (digit1) {
gotoAndStop(_local2.d1);
};
if (s > 90) {
_local1 = s % 100;
s = s - _local1;
_local1 = _local1 / 10;
} else {
_local1 = s / 10;
}
_local1++;
d2 = _local1++;
tellTarget (digit2) {
gotoAndStop(_local2.d2);
};
if (s > 900) {
_local1 = s % 1000;
s = s - _local1;
_local1 = _local1 / 100;
} else {
_local1 = s / 100;
}
_local1++;
d3 = _local1++;
tellTarget (digit3) {
gotoAndStop(_local2.d3);
};
if (s > 9000) {
_local1 = s % 10000;
s = s - _local1;
_local1 = _local1 / 1000;
} else {
_local1 = s / 1000;
}
_local1++;
d4 = _local1++;
tellTarget (digit4) {
gotoAndStop(_local2.d4);
};
if (s > 90000) {
_local1 = s % 100000;
s = s - _local1;
_local1 = _local1 / 10000;
} else {
_local1 = s / 10000;
}
_local1++;
d5 = _local1++;
tellTarget (digit5) {
gotoAndStop(_local2.d5);
};
if (s > 900000) {
_local1 = s % 1000000;
s = s - _local1;
_local1 = _local1 / 100000;
} else {
_local1 = s / 100000;
}
_local1++;
d6 = _local1++;
tellTarget (digit6) {
gotoAndStop(_local2.d6);
};
if (s > 9000000) {
_local1 = s % 10000000;
s = s - _local1;
_local1 = _local1 / 1000000;
} else {
_local1 = s / 1000000;
}
_local1++;
d7 = _local1++;
tellTarget (digit7) {
gotoAndStop(_local2.d7);
};
myfunc = null;
}
plotScore();
var d1 = ((d2 = (d3 = (d4 = (d5 = (d6 = (d7 = 0)))))));
}
Instance of Symbol 462 MovieClip "starClip" in Frame 130
onClipEvent (load) {
function plotScore() {
var _local2 = this;
s = _root.game_engine.star;
if (s > 9) {
var _local1 = s % 10;
s = s - _local1;
} else {
var _local1 = s;
}
_local1++;
d1 = _local1++;
tellTarget (digit1) {
gotoAndStop(_local2.d1);
};
if (s > 90) {
_local1 = s % 100;
s = s - _local1;
_local1 = _local1 / 10;
} else {
_local1 = s / 10;
}
_local1++;
d2 = _local1++;
tellTarget (digit2) {
gotoAndStop(_local2.d2);
};
if (s > 900) {
_local1 = s % 1000;
s = s - _local1;
_local1 = _local1 / 100;
} else {
_local1 = s / 100;
}
_local1++;
d3 = _local1++;
tellTarget (digit3) {
gotoAndStop(_local2.d3);
};
if (s > 9000) {
_local1 = s % 10000;
s = s - _local1;
_local1 = _local1 / 1000;
} else {
_local1 = s / 1000;
}
_local1++;
d4 = _local1++;
tellTarget (digit4) {
gotoAndStop(_local2.d4);
};
if (s > 90000) {
_local1 = s % 100000;
s = s - _local1;
_local1 = _local1 / 10000;
} else {
_local1 = s / 10000;
}
_local1++;
d5 = _local1++;
tellTarget (digit5) {
gotoAndStop(_local2.d5);
};
if (s > 900000) {
_local1 = s % 1000000;
s = s - _local1;
_local1 = _local1 / 100000;
} else {
_local1 = s / 100000;
}
_local1++;
d6 = _local1++;
tellTarget (digit6) {
gotoAndStop(_local2.d6);
};
if (s > 9000000) {
_local1 = s % 10000000;
s = s - _local1;
_local1 = _local1 / 1000000;
} else {
_local1 = s / 1000000;
}
_local1++;
d7 = _local1++;
tellTarget (digit7) {
gotoAndStop(_local2.d7);
};
myfunc = null;
}
var d1 = ((d2 = (d3 = (d4 = (d5 = (d6 = (d7 = 0)))))));
}
Instance of Symbol 468 MovieClip "live" in Frame 130
onClipEvent (load) {
this.gotoAndStop(_root.live.lives + 1);
}
Instance of Symbol 33 MovieClip in Frame 130
onClipEvent (load) {
_root.soundstatus = "on";
_root.mySound = new Sound(_level0);
_root.mySound2 = new Sound(_level1);
_root.mySound3 = new Sound(_level2);
_root.mySound4 = new Sound(_level3);
_root.mySound5 = new Sound(_level4);
maxvolume = 100;
minvolume = 0;
}
onClipEvent (enterFrame) {
if (_root.soundstatus == "on") {
step = 5;
}
if (_root.soundstatus == "off") {
step = -5;
}
maxvolume = maxvolume + step;
if (maxvolume > 100) {
maxvolume = 100;
}
if (maxvolume < 0) {
maxvolume = 0;
}
_root.mySound.setVolume(maxvolume);
_root.mySound2.setVolume(maxvolume);
_root.mySound3.setVolume(maxvolume);
_root.mySound4.setVolume(maxvolume);
_root.mySound5.setVolume(maxvolume);
}
Frame 131
_root.soundstatus = "off";
Frame 151
stop();
stopAllSounds();
_root.vies = _root.live.lives;
if (_root.leveldone == true) {
gotoAndStop (153);
}
if (_root.gameover == true) {
gotoAndStop (152);
}
Frame 152
stopAllSounds();
Frame 153
stopAllSounds();
Symbol 2 MovieClip [FireHole] Frame 1
alive = true;
Symbol 6 MovieClip Frame 1
lettre._visible = false;
nbr = 10;
df = -150;
niv = 100;
sommets = new Array();
var i = 0;
while (i < nbr) {
sommets[i] = new Object();
sommets[i].x = lettre["s" + i]._x;
sommets[i].y = lettre["s" + i]._y;
sommets[i].z = 40;
i++;
}
sommetsVisibles = true;
formes = true;
cx = 0;
cy = 0;
taille = 4;
couleur0 = "0x000000";
couleur1 = "0xFFF000";
couleur2 = "0xFFF000";
transparence1 = 100;
transparence2 = 100;
alpha = 100;
createEmptyMovieClip("pointsp", 1);
pointsp._x = cx;
pointsp._y = cy;
createEmptyMovieClip("pointsq", 2);
pointsq._x = cx;
pointsq._y = cy;
createEmptyMovieClip("poly", 3);
poly._x = cx;
poly._y = cy;
createEmptyMovieClip("sym", 4);
sym._x = cx;
sym._y = cy;
createEmptyMovieClip("lignes", niv);
lignes._x = cx;
lignes._y = cy;
lignes._alpha = transparence1;
var i = 0;
while (i < nbr) {
pointsp.attachMovie("sommet", "p" + i, i);
pointsq.attachMovie("sommet", "q" + i, i);
i++;
}
alpha1 = 6.283185 * Math.random();
alpha2 = 6.283185 * Math.random();
vertexp = new Array();
vertexq = new Array();
vertexr = new Array();
tourner1 = function (cos, sin, x, y) {
return((cos * x) - (sin * y));
};
tourner2 = function (cos, sin, x, y) {
return((sin * x) + (cos * y));
};
tourner = function () {
var _loc6 = Math.cos(alpha1);
var _loc8 = Math.sin(alpha1);
var _loc5 = Math.cos(alpha2);
var _loc7 = Math.sin(alpha2);
var _local1 = 0;
while (_local1 < nbr) {
var _loc4 = tourner1(_loc6, _loc8, sommets[_local1].x, sommets[_local1].z);
var _local3 = sommets[_local1].y;
var _local2 = tourner2(_loc6, _loc8, sommets[_local1].x, sommets[_local1].z);
vertexp[_local1] = new Object();
vertexp[_local1].x = _loc4;
vertexp[_local1].y = tourner1(_loc5, _loc7, _local3, _local2);
vertexp[_local1].z = tourner2(_loc5, _loc7, _local3, _local2);
_local1++;
}
};
placer = function () {
var _local1 = 0;
while (_local1 < nbr) {
vertexq[_local1] = new Object();
var _local3 = df / (df - vertexp[_local1].z);
vertexq[_local1].x = (-_local3) * vertexp[_local1].x;
vertexq[_local1].y = (-_local3) * vertexp[_local1].y;
vertexq[_local1].z = (-_local3) * vertexp[_local1].z;
var _local2 = pointsq["q" + _local1];
_local2._xscale = (_local2._yscale = 100 * _local3);
_local3 = df / (df + vertexp[_local1].z);
vertexp[_local1].x = vertexp[_local1].x * _local3;
vertexp[_local1].y = vertexp[_local1].y * _local3;
vertexp[_local1].z = vertexp[_local1].z * _local3;
_local2 = pointsp["p" + _local1];
_local2._xscale = (_local2._yscale = 100 * _local3);
pointsp["p" + _local1]._x = vertexp[_local1].x;
pointsp["p" + _local1]._y = vertexp[_local1].y;
pointsq["q" + _local1]._x = vertexq[_local1].x;
pointsq["q" + _local1]._y = vertexq[_local1].y;
_local1++;
}
};
tracer = function () {
var _loc10 = (vertexp[0].x - vertexp[1].x);
var _local3 = vertexp[0].y - vertexp[1].y;
var _loc6 = (vertexp[0].z - vertexp[1].z);
_local3 = vertexp[0].y - vertexp[1].y;
var _loc9 = (vertexp[2].x - vertexp[1].x);
var _loc7 = (vertexp[2].y - vertexp[1].y);
var _loc5 = (vertexp[2].z - vertexp[1].z);
var _loc4 = ((_local3 * _loc5) - (_loc6 * _loc7));
_local3 = (_loc6 * _loc9) - (_loc10 * _loc5);
var _local2 = (_loc10 * _loc7) - (_local3 * _loc9);
var _loc11 = Math.sqrt(((_loc4 * _loc4) + (_local3 * _local3)) + (_local2 * _local2));
_local2 = _local2 / _loc11;
if (_local2 > 0) {
couleurp = couleur1;
} else {
couleurp = couleur2;
}
poly.clear();
poly.lineStyle(taille, couleur0, transparence2);
if (formes) {
poly.beginFill(couleurp, alpha);
}
poly.moveTo(vertexp[0].x, vertexp[0].y);
var _local1 = 1;
while (_local1 < nbr) {
poly.lineTo(vertexp[_local1].x, vertexp[_local1].y);
_local1++;
}
poly.lineTo(vertexp[0].x, vertexp[0].y);
poly.endFill();
_loc10 = vertexq[0].x - vertexq[1].x;
_local3 = vertexq[0].y - vertexq[1].y;
_loc6 = vertexq[0].z - vertexq[1].z;
_local3 = vertexq[0].y - vertexq[1].y;
_loc9 = vertexq[2].x - vertexq[1].x;
_loc7 = vertexq[2].y - vertexq[1].y;
_loc5 = vertexq[2].z - vertexq[1].z;
_loc4 = (_local3 * _loc5) - (_loc6 * _loc7);
_local3 = (_loc6 * _loc9) - (_loc10 * _loc5);
_local2 = (_loc10 * _loc7) - (_local3 * _loc9);
_loc11 = Math.sqrt(((_loc4 * _loc4) + (_local3 * _local3)) + (_local2 * _local2));
_local2 = _local2 / _loc11;
couleurq = ((_local2 > 0) ? (couleur2) : (couleur1));
sym.clear();
sym.lineStyle(taille, couleur0, transparence2);
if (formes) {
sym.beginFill(couleurq, alpha);
}
sym.moveTo(vertexq[0].x, vertexq[0].y);
_local1 = 1;
while (_local1 < nbr) {
sym.lineTo(vertexq[_local1].x, vertexq[_local1].y);
_local1++;
}
sym.lineTo(vertexq[0].x, vertexq[0].y);
sym.endFill();
lignes.clear();
lignes.lineStyle(taille, couleur0, 100);
_local1 = 0;
while (_local1 < nbr) {
lignes.moveTo(vertexp[_local1].x, vertexp[_local1].y);
lignes.lineTo(vertexq[_local1].x, vertexq[_local1].y);
_local1++;
}
if (couleurq == couleurp) {
if (_local2 > 0) {
lignes.swapDepths(niv);
pointsq.swapDepths(niv - 1);
sym.swapDepths(niv - 2);
pointsp.swapDepths(niv - 3);
poly.swapDepths(niv - 4);
} else {
lignes.swapDepths(niv);
pointsq.swapDepths(niv - 3);
sym.swapDepths(niv - 4);
pointsp.swapDepths(niv - 1);
poly.swapDepths(niv - 2);
}
} else if (_local2 < 0) {
pointsq.swapDepths(niv);
sym.swapDepths(niv - 1);
lignes.swapDepths(niv - 2);
pointsp.swapDepths(niv - 3);
poly.swapDepths(niv - 4);
} else {
pointsq.swapDepths(niv - 3);
sym.swapDepths(niv - 4);
lignes.swapDepths(niv - 2);
pointsp.swapDepths(niv);
poly.swapDepths(niv - 1);
}
};
afficherSommets = function () {
sommetsVisibles = !sommetsVisibles;
pointsp._visible = (pointsq._visible = sommetsVisibles);
};
onEnterFrame = function () {
alpha1 = alpha1 + ((0.1 * (100 - cx)) / 200);
alpha2 = alpha2 + ((0.1 * (100 - cy)) / 200);
tourner();
placer();
tracer();
};
lignes._visible = !lignes._visible;
afficherSommets();
coche3._visible = !coche3._visible;
Symbol 15 MovieClip Frame 1
stop();
Instance of Symbol 14 MovieClip "swfloader" in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
function strip_spaces(str) {
var _local2 = str;
var _local3 = new String("");
var _local1 = 0;
while (_local1 < _local2.length) {
if ((_local2.charAt(_local1) != " ") && (_local2.charAt(_local1) != ";")) {
_local3 = _local3 + _local2.charAt(_local1);
}
_local1++;
}
return(_local3);
}
function simple_script(action, timeline) {
action = strip_spaces(action);
if ((action.length > 0) && ((action.indexOf(")") != -1) && (action.indexOf("(") != -1))) {
var _local2 = action.split(".");
var timeline_action = _local2.pop();
var first_paren = timeline_action.indexOf("(");
var second_paren = timeline_action.indexOf(")");
var timeline_function = timeline_action.substr(0, first_paren);
var function_parameter = timeline_action.substr(first_paren + 1, second_paren - (first_paren + 1));
var _local3 = timeline;
var _local1 = 0;
while (_local1 < _local2.length) {
_local3 = _local3[_local2[_local1]];
_local1++;
}
if (function_parameter.indexOf("\"") != -1) {
function_parameter = function_parameter.substr(1, function_parameter.length - 2);
}
_local3[timeline_function](function_parameter);
}
}
function execute_action() {
var _local1 = _parent;
unloaded = true;
_local1._visible = false;
simple_script(_local1.play_action_val, _local1);
}
_parent.anim.gotoAndStop(1);
simple_script(_parent.init_action_val, _parent);
var done = false;
var unloaded = false;
var orig_x = _parent._x;
var orig_y = _parent._y;
var dist_x = (_parent._x + ((_parent._width * 2) / 3));
var dist_y = (_parent._y + ((_parent._height * 2) / 3));
var orig_a = _parent._alpha;
var accel_jump = 20.35;
var slow_factor = _parent.slow_factor_val;
var speed_factor = (1 + (slow_factor / (1 - slow_factor)));
var ready = false;
var perc_fadeout = 0;
if (slow_factor < 1) {
switch (_parent.xin_motion_val) {
case "Up" :
_parent._y = orig_y + (dist_y * 2);
break;
case "Down" :
_parent._y = orig_y - (dist_y * 2);
break;
case "Left" :
_parent._x = orig_x + (dist_x * 2);
break;
case "Right" :
_parent._x = orig_x - (dist_x * 2);
break;
case "Toward" :
_parent._xscale = (_parent._yscale = 1);
break;
case "None" :
_parent._alpha = 0;
}
} else {
ready = true;
}
}
onClipEvent (enterFrame) {
if (unloaded) {
return(undefined);
}
if (!ready) {
switch (_parent.xin_motion_val) {
case "Toward" :
_parent._xscale = _parent._xscale + ((100 - _parent._xscale) * slow_factor);
_parent._yscale = _parent._xscale;
if (_parent.xin_alphatype_val == "Yes") {
_parent._alpha = Math.round((orig_a / 100) * Math.max(0, Math.min(_parent._xscale, 100)));
}
if (Math.abs(100 - _parent._xscale) < 0.5) {
_parent._xscale = (_parent._yscale = 100);
_parent._alpha = orig_a;
ready = true;
}
break;
default :
_parent._x = _parent._x + ((orig_x - _parent._x) * slow_factor);
_parent._y = _parent._y + ((orig_y - _parent._y) * slow_factor);
if (_parent.xin_alphatype_val == "Yes") {
if (_parent.xin_motion_val == "None") {
_parent._alpha = _parent._alpha + ((orig_a - _parent._alpha) * slow_factor);
} else if (Math.abs(orig_x - _parent._x) > Math.abs(orig_y - _parent._y)) {
_parent._alpha = 100 - Math.round(((orig_a / 100) * (Math.min(dist_x, Math.abs(_parent._x - orig_x)) / dist_x)) * 100);
} else {
_parent._alpha = 100 - Math.round(((orig_a / 100) * (Math.min(dist_y, Math.abs(_parent._y - orig_y)) / dist_y)) * 100);
}
}
if (!(((_parent.xin_motion_val == "None") && (Math.abs(_parent._alpha - orig_a) <= 1)) || (((_parent.xin_motion_val != "None") && (Math.abs(_parent._y - orig_y) < 0.5)) && (Math.abs(_parent._x - orig_x) < 0.5)))) {
break;
}
_parent._x = orig_x;
_parent._y = orig_y;
_parent._alpha = orig_a;
ready = true;
}
} else if (!done) {
var rl = _root.getBytesLoaded();
var rt = (_root.getBytesTotal() * (_parent.perc_req_val / 100));
if ((rl > 10) && (rt > 10)) {
rl = Math.min(rl, rt);
var new_frame = (_parent.anim._currentframe + Math.ceil(((_parent.anim._totalframes * (rl / rt)) - _parent.anim._currentframe) / 4));
new_frame = Math.max(1, new_frame);
if (_parent.show_perc_val == "Yes") {
_parent.perc.text = Math.round(((new_frame - 1) / (_parent.anim._totalframes - 1)) * 100) + " %";
}
if (new_frame != _parent.anim._currentframe) {
_parent.anim.gotoAndStop(new_frame);
}
if ((_parent.anim._totalframes == _parent.anim._currentframe) && (rl >= rt)) {
done = true;
}
}
} else if (slow_factor < 1) {
switch (_parent.xout_motion_val) {
case "Down" :
if (_parent._y <= orig_y) {
_parent._y = orig_y + accel_jump;
}
_parent._y = orig_y + (Math.abs(_parent._y - orig_y) * speed_factor);
perc_fadeout = Math.round((Math.min(dist_y, Math.abs(_parent._y - orig_y)) / dist_y) * 100);
if (_parent._y > (orig_y + (dist_y * 2))) {
execute_action();
}
break;
case "Up" :
if (_parent._y >= orig_y) {
_parent._y = orig_y - accel_jump;
}
_parent._y = orig_y - (Math.abs(_parent._y - orig_y) * speed_factor);
perc_fadeout = Math.round((Math.min(dist_y, Math.abs(_parent._y - orig_y)) / dist_y) * 100);
if (_parent._y < (orig_y - (dist_y * 2))) {
execute_action();
}
break;
case "Right" :
if (_parent._x <= orig_x) {
_parent._x = orig_x + accel_jump;
}
_parent._x = orig_x + (Math.abs(_parent._x - orig_x) * speed_factor);
perc_fadeout = Math.round((Math.min(dist_x, Math.abs(_parent._x - orig_x)) / dist_x) * 100);
if (_parent._x > (orig_x + (dist_x * 2))) {
execute_action();
}
break;
case "Left" :
if (_parent._x >= orig_x) {
_parent._x = orig_x - accel_jump;
}
_parent._x = orig_x - (Math.abs(_parent._x - orig_x) * speed_factor);
perc_fadeout = Math.round((Math.min(dist_x, Math.abs(_parent._x - orig_x)) / dist_x) * 100);
if (_parent._x < (orig_x - (dist_x * 2))) {
execute_action();
}
break;
case "Away" :
if ((_parent._xscale >= 100) || (_parent._yscale >= 100)) {
_parent._xscale = (_parent._yscale = 100 - accel_jump);
}
_parent._xscale = (_parent._yscale = Math.max(0.5, 100 - ((100 - _parent._yscale) * speed_factor)));
perc_fadeout = 100 - Math.round(Math.max(0, Math.min(_parent._xscale, 100)));
if (_parent._xscale < 1) {
execute_action();
}
break;
default :
perc_fadeout = perc_fadeout + ((100 - perc_fadeout) * slow_factor);
if (Math.abs(perc_fadeout - 100) > 1) {
break;
}
execute_action();
}
if (!(_parent.xout_alphatype_val === "Yes")) {
} else {
_parent._alpha = (orig_a / 100) * (100 - perc_fadeout);
}
} else {
execute_action();
}
}
Symbol 18 MovieClip Frame 100
_root.play();
Symbol 20 Button
on (release) {
getURL ("http://www.thebestwebgames.com", "_self");
}
Symbol 24 Button
on (release) {
gotoAndPlay (2);
}
on (release) {
_root.soundstatus = "off";
}
Symbol 27 Button
on (release) {
gotoAndPlay (1);
}
on (release) {
_root.soundstatus = "on";
}
Symbol 28 MovieClip Frame 1
stop();
Symbol 28 MovieClip Frame 2
stop();
Symbol 67 MovieClip Frame 10
stop();
Symbol 68 MovieClip Frame 1
i = 0;
while (i < 5) {
duplicateMovieClip ("isk1", "isk" add i, i);
isk1._rotation = random(360);
scalefactor = 30 + Number(random(60));
isk1._xscale = scalefactor;
isk1._yscale = scalefactor;
tellTarget ("isk" add i) {
gotoAndPlay(random(5));
};
i++;
}
Symbol 70 MovieClip Frame 1
stop();
alive = true;
Instance of Symbol 66 MovieClip in Symbol 70 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 5);
}
Symbol 70 MovieClip Frame 2
stop();
alive = false;
Symbol 93 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 2
stop();
Symbol 96 MovieClip Frame 1
stop();
Symbol 96 MovieClip Frame 2
stop();
Symbol 99 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 2
stop();
Symbol 101 MovieClip Frame 1
stop();
Symbol 101 MovieClip Frame 2
stop();
Symbol 103 Button
on (press) {
this._visible = false;
}
Instance of Symbol 70 MovieClip in Symbol 104 MovieClip Frame 1
onClipEvent (enterFrame) {
if (alive == true) {
_y = (_y + (1 * Math.cos((ang = ang + 0.3))));
if (hitTest(_parent.leo.bbox)) {
alive = false;
play();
_parent.scoring(20);
_parent.stars();
}
}
}
Instance of Symbol 117 MovieClip in Symbol 118 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 5);
}
Instance of Symbol 117 MovieClip in Symbol 118 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation - 5);
}
onClipEvent (keyDown) {
_parent.play();
}
Instance of Symbol 117 MovieClip in Symbol 118 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation - 2);
}
Instance of Symbol 117 MovieClip in Symbol 118 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 4);
}
Symbol 124 MovieClip Frame 7
stop();
Instance of Symbol 66 MovieClip in Symbol 125 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 5);
}
Instance of Symbol 66 MovieClip in Symbol 126 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 5);
}
Symbol 128 Button
on (rollOver) {
bounce = false;
xscale = Number(xscale * 1.2);
yscale = Number(yscale * 1.2);
}
on (rollOut) {
bounce = false;
xscale = Number(100);
yscale = Number(100);
}
on (releaseOutside) {
_parent._parent._parent.play();
bounce = false;
xscale = Number(100);
yscale = Number(100);
}
on (release) {
_parent._parent._parent.play();
}
Symbol 129 MovieClip Frame 1
if (_parent:bounce == false) {
Set("_parent:speedXscale", Number(_parent:speedXscale * _parent:friction) + Number((_parent:xscale - getProperty("_parent", _xscale)) * _parent:ratio));
Set("_parent:speedYscale", Number(_parent:speedYscale * _parent:friction) + Number((_parent:yscale - getProperty("_parent", _yscale)) * _parent:ratio));
setProperty("../", _xscale , Number(getProperty("_parent", _xscale)) + Number(_parent:speedXscale));
setProperty("../", _yscale , Number(getProperty("_parent", _yscale)) + Number(_parent:speedYscale));
}
Symbol 129 MovieClip Frame 2
if (_parent:bounce == false) {
Set("_parent:speedXscale", Number(_parent:speedXscale * _parent:friction) + Number((_parent:xscale - getProperty("_parent", _xscale)) * _parent:ratio));
Set("_parent:speedYscale", Number(_parent:speedYscale * _parent:friction) + Number((_parent:yscale - getProperty("_parent", _yscale)) * _parent:ratio));
setProperty("../", _xscale , Number(getProperty("_parent", _xscale)) + Number(_parent:speedXscale));
setProperty("../", _yscale , Number(getProperty("_parent", _yscale)) + Number(_parent:speedYscale));
}
Symbol 130 MovieClip Frame 1
xscale = Number(100);
yscale = Number(100);
friction = 0.7;
ratio = 0.5;
speedXscale = 0;
speedYscale = 0;
bounce = false;
Symbol 133 MovieClip Frame 7
stop();
Symbol 134 Button
on (rollOver) {
bounce = false;
xscale = Number(xscale * 1.2);
yscale = Number(yscale * 1.2);
}
on (rollOut) {
bounce = false;
xscale = Number(100);
yscale = Number(100);
}
on (releaseOutside) {
_parent._parent.play();
bounce = false;
xscale = Number(100);
yscale = Number(100);
}
on (release) {
_parent._parent._parent.instructions._visible = true;
}
Symbol 135 MovieClip Frame 1
xscale = Number(100);
yscale = Number(100);
friction = 0.7;
ratio = 0.5;
speedXscale = 0;
speedYscale = 0;
bounce = false;
tom = false;
Symbol 142 MovieClip Frame 21
stop();
Symbol 168 MovieClip Frame 140
stop();
Symbol 169 MovieClip Frame 1
stop();
alive = true;
Symbol 169 MovieClip Frame 2
alive = false;
Symbol 169 MovieClip Frame 3
_parent.vivant = true;
Symbol 195 MovieClip Frame 60
stop();
Symbol 196 MovieClip Frame 2
stop();
Instance of Symbol 195 MovieClip "shard" in Symbol 196 MovieClip Frame 2
onClipEvent (load) {
xspeed = random(5) - 2;
yspeed = (-random(5)) - 10;
_xscale = (random(10) + 30);
_yscale = _xscale;
bv = 580 - _parent._parent._y;
}
onClipEvent (enterFrame) {
yspeed = yspeed + 1.5;
_rotation = ((Math.atan2(yspeed, xspeed) * 360) / 3.141593);
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_y > (bv + (_height / 4))) {
_y = (bv + (_height / 4));
yspeed = (-yspeed) * 0.3;
xspeed = xspeed * 0.8;
}
if ((_x > 180) || (_x < -180)) {
bv = 300;
}
}
Instance of Symbol 195 MovieClip "shard" in Symbol 196 MovieClip Frame 2
onClipEvent (load) {
xspeed = random(5) - 2;
yspeed = (-random(5)) - 10;
_xscale = (random(10) + 30);
_yscale = _xscale;
bv = 580 - _parent._parent._y;
}
onClipEvent (enterFrame) {
yspeed = yspeed + 1.5;
_rotation = ((Math.atan2(yspeed, xspeed) * 360) / 3.141593);
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_y > (bv + (_height / 4))) {
_y = (bv + (_height / 4));
yspeed = (-yspeed) * 0.3;
xspeed = xspeed * 0.8;
}
if ((_x > 180) || (_x < -180)) {
bv = 300;
}
}
Instance of Symbol 195 MovieClip "shard" in Symbol 196 MovieClip Frame 2
onClipEvent (load) {
xspeed = random(5) - 2;
yspeed = (-random(5)) - 10;
_xscale = (random(10) + 30);
_yscale = _xscale;
bv = 580 - _parent._parent._y;
}
onClipEvent (enterFrame) {
yspeed = yspeed + 1.5;
_rotation = ((Math.atan2(yspeed, xspeed) * 360) / 3.141593);
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_y > (bv + (_height / 4))) {
_y = (bv + (_height / 4));
yspeed = (-yspeed) * 0.3;
xspeed = xspeed * 0.8;
}
if ((_x > 180) || (_x < -180)) {
bv = 300;
}
}
Instance of Symbol 195 MovieClip "shard" in Symbol 196 MovieClip Frame 2
onClipEvent (load) {
xspeed = random(5) - 2;
yspeed = (-random(5)) - 10;
_xscale = (random(10) + 30);
_yscale = _xscale;
bv = 580 - _parent._parent._y;
}
onClipEvent (enterFrame) {
yspeed = yspeed + 1.5;
_rotation = ((Math.atan2(yspeed, xspeed) * 360) / 3.141593);
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_y > (bv + (_height / 4))) {
_y = (bv + (_height / 4));
yspeed = (-yspeed) * 0.3;
xspeed = xspeed * 0.8;
}
if ((_x > 180) || (_x < -180)) {
bv = 300;
}
}
Instance of Symbol 195 MovieClip "shard" in Symbol 196 MovieClip Frame 2
onClipEvent (load) {
xspeed = random(5) - 2;
yspeed = (-random(5)) - 10;
_xscale = (random(10) + 30);
_yscale = _xscale;
bv = 580 - _parent._parent._y;
}
onClipEvent (enterFrame) {
yspeed = yspeed + 1.5;
_rotation = ((Math.atan2(yspeed, xspeed) * 360) / 3.141593);
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_y > (bv + (_height / 4))) {
_y = (bv + (_height / 4));
yspeed = (-yspeed) * 0.3;
xspeed = xspeed * 0.8;
}
if ((_x > 180) || (_x < -180)) {
bv = 300;
}
}
Instance of Symbol 195 MovieClip "shard" in Symbol 196 MovieClip Frame 2
onClipEvent (load) {
xspeed = random(5) - 2;
yspeed = (-random(5)) - 10;
_xscale = (random(10) + 30);
_yscale = _xscale;
bv = 580 - _parent._parent._y;
}
onClipEvent (enterFrame) {
yspeed = yspeed + 1.5;
_rotation = ((Math.atan2(yspeed, xspeed) * 360) / 3.141593);
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_y > (bv + (_height / 4))) {
_y = (bv + (_height / 4));
yspeed = (-yspeed) * 0.3;
xspeed = xspeed * 0.8;
}
if ((_x > 180) || (_x < -180)) {
bv = 300;
}
}
Instance of Symbol 195 MovieClip "shard" in Symbol 196 MovieClip Frame 2
onClipEvent (load) {
xspeed = random(5) - 2;
yspeed = (-random(5)) - 10;
_xscale = (random(10) + 30);
_yscale = _xscale;
bv = 580 - _parent._parent._y;
}
onClipEvent (enterFrame) {
yspeed = yspeed + 1.5;
_rotation = ((Math.atan2(yspeed, xspeed) * 360) / 3.141593);
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_y > (bv + (_height / 4))) {
_y = (bv + (_height / 4));
yspeed = (-yspeed) * 0.3;
xspeed = xspeed * 0.8;
}
if ((_x > 180) || (_x < -180)) {
bv = 300;
}
}
Symbol 197 MovieClip Frame 1
stop();
alive = true;
Symbol 197 MovieClip Frame 2
stop();
alive = false;
_parent._parent.brik_paf._y = _parent._y + _y;
_parent._parent.brik_paf._x = _parent._x + _x;
_parent._parent.brik_paf.gotoAndPlay(2);
Instance of Symbol 197 MovieClip in Symbol 199 MovieClip Frame 1
onClipEvent (enterFrame) {
if (alive == true) {
if (hitTest(_parent._parent.leo.jump.head)) {
alive = false;
_parent._parent.leo.vy = 2;
_parent._parent.scoring(10);
play();
}
}
}
Symbol 215 MovieClip Frame 1
stop();
Symbol 219 MovieClip Frame 11
stop();
Symbol 224 MovieClip Frame 1
stop();
Symbol 224 MovieClip Frame 2
stop();
door.play();
Instance of Symbol 217 MovieClip in Symbol 224 MovieClip Frame 2
onClipEvent (load) {
alive = true;
}
onClipEvent (enterFrame) {
if (hitTest(_parent._parent.leo.bbox)) {
if (alive == true) {
alive == false;
_parent._parent.leo.state = 3;
_parent.play();
}
}
}
Instance of Symbol 221 MovieClip in Symbol 224 MovieClip Frame 2
onClipEvent (enterFrame) {
_xscale = (_xscale + (1 * Math.cos((ang = ang + 0.3))));
_yscale = _xscale;
}
Instance of Symbol 223 MovieClip in Symbol 224 MovieClip Frame 2
onClipEvent (enterFrame) {
_y = (_y + (1 * Math.cos((ang = ang + 0.3))));
}
Symbol 224 MovieClip Frame 3
stop();
_parent.leo.gotoAndPlay("leveldone");
_root.leveldone = true;
Symbol 226 MovieClip Frame 1
stop();
Symbol 226 MovieClip Frame 2
stop();
Symbol 231 MovieClip Frame 1
stop();
alive = true;
Symbol 231 MovieClip Frame 2
alive = false;
Symbol 231 MovieClip Frame 15
stop();
Symbol 256 MovieClip Frame 1
play();
Symbol 256 MovieClip Frame 9
gotoAndPlay (1);
Symbol 268 MovieClip Frame 8
stop();
Symbol 311 MovieClip Frame 22
stop();
Symbol 320 MovieClip Frame 5
stop();
Symbol 321 MovieClip Frame 1
state = 0;
facing = 0;
bw = getProperty("bbox", _width);
bh = getProperty("bbox", _height);
Symbol 321 MovieClip Frame 9
stop();
Symbol 321 MovieClip Frame 13
stand.gotoAndPlay("floor");
Symbol 321 MovieClip Frame 24
if (state == 0) {
gotoAndPlay (2);
}
Symbol 321 MovieClip Frame 38
if (state == 1) {
gotoAndPlay (25);
}
Symbol 321 MovieClip Frame 45
stop();
Symbol 321 MovieClip Frame 71
_parent.leo.x = -580;
_parent.leo.y = 300;
Symbol 321 MovieClip Frame 94
stop();
state = 4;
Symbol 321 MovieClip Frame 119
if (_root.gameover == false) {
_parent.leo.x = -580;
_parent.leo.y = 300;
stop();
state = 4;
} else if (_root.gameover == true) {
_root.play();
state = 3;
_visible = false;
}
Symbol 321 MovieClip Frame 120
_parent.leo.x = -580;
_parent.leo.y = 300;
Symbol 321 MovieClip Frame 143
stop();
state = 4;
Symbol 321 MovieClip Frame 192
stop();
if (_root.gameover == true) {
_root.play();
}
Symbol 321 MovieClip Frame 234
stop();
_root.play();
Symbol 321 MovieClip Frame 260
stop();
Symbol 321 MovieClip Frame 279
state = 8;
Symbol 321 MovieClip Frame 297
stop();
if (_root.gameover == false) {
state = 4;
} else if (_root.gameover == true) {
_root.play();
state = 3;
_visible = false;
}
Symbol 321 MovieClip Frame 326
stop();
if (_root.gameover == false) {
_parent.leo.x = -580;
_parent.leo.y = 300;
stop();
state = 4;
_parent.play();
} else if (_root.gameover == true) {
_root.play();
state = 3;
_visible = false;
}
Symbol 321 MovieClip Frame 357
stop();
if (_root.gameover == false) {
_parent.leo.x = -580;
_parent.leo.y = 300;
stop();
_root.fire = false;
state = 4;
_parent.play();
} else if (_root.gameover == true) {
_root.play();
state = 3;
_visible = false;
}
Symbol 321 MovieClip Frame 367
gotoAndPlay ("stand");
Symbol 333 MovieClip Frame 1
stop();
alive = true;
Symbol 333 MovieClip Frame 2
alive = false;
Symbol 333 MovieClip Frame 603
_parent.play();
Instance of Symbol 333 MovieClip in Symbol 334 MovieClip Frame 1
onClipEvent (enterFrame) {
if (alive == true) {
if (hitTest(_parent._parent.leo.hit)) {
alive = false;
_parent.stop();
_parent._parent.scoring(100);
_parent._parent.leo.vy = -15;
_parent._parent.leo.gotoAndPlay("ecrase");
play();
}
if (hitTest(_parent._parent.leo.bbox)) {
_parent._parent.hurt(100);
if (_parent._parent.leo.state != 3) {
_parent._parent.leo.vy = -8;
_parent._parent.leo.gotoAndPlay("hit_monst");
}
if ((_x + _parent._x) < _parent._parent.leo._x) {
_parent._parent.leo.vx = 15;
} else {
_parent._parent.leo.vx = -15;
}
}
}
}
Symbol 339 MovieClip Frame 1
alive = true;
stop();
Instance of Symbol 335 MovieClip in Symbol 339 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.alive == true) {
if (hitTest(_parent._parent.leo.bbox)) {
_parent._parent.leo.vy = -42;
_parent.alive = false;
_parent.play();
}
}
}
Symbol 341 MovieClip Frame 1
alive = true;
Symbol 341 MovieClip Frame 2
alive = false;
Instance of Symbol 341 MovieClip in Symbol 354 MovieClip Frame 1
onClipEvent (enterFrame) {
if (alive == true) {
if (hitTest(_parent._parent.leo.bbox)) {
_root.fire = true;
_parent._parent.hurt(100);
}
}
}
Symbol 373 MovieClip Frame 1
stop();
alive = true;
Symbol 373 MovieClip Frame 2
alive = false;
_parent.active = false;
Symbol 373 MovieClip Frame 23
_parent.reset();
Symbol 373 MovieClip Frame 601
_parent._parent.trg_bat1.play();
alive = true;
Instance of Symbol 373 MovieClip in Symbol 374 MovieClip Frame 1
onClipEvent (enterFrame) {
if (alive == true) {
if (hitTest(_parent._parent.leo.hit)) {
alive = false;
_parent.stop();
_parent._parent.scoring(100);
_parent._parent.leo.vy = -15;
_parent._parent.leo.gotoAndPlay("ecrase");
play();
}
if (hitTest(_parent._parent.leo.bbox)) {
_parent._parent.hurt(30);
if (_parent._parent.leo.state != 3) {
_parent._parent.leo.vy = -8;
_parent._parent.leo.gotoAndPlay("hit_monst");
}
if ((_x + _parent._x) < _parent._parent.leo._x) {
_parent._parent.leo.vx = 15;
} else {
_parent._parent.leo.vx = -15;
}
}
}
}
Symbol 383 MovieClip Frame 1
stop();
alive = true;
Symbol 383 MovieClip Frame 2
alive = false;
Symbol 383 MovieClip Frame 603
_parent.play();
Instance of Symbol 383 MovieClip in Symbol 384 MovieClip Frame 1
onClipEvent (enterFrame) {
if (alive == true) {
if (hitTest(_parent._parent.leo.hit)) {
alive = false;
_parent.stop();
_parent._parent.scoring(100);
_parent._parent.leo.vy = -15;
_parent._parent.leo.gotoAndPlay("ecrase");
play();
}
if (hitTest(_parent._parent.leo.bbox)) {
_parent._parent.hurt(100);
if (_parent._parent.leo.state != 3) {
_parent._parent.leo.vy = -8;
_parent._parent.leo.gotoAndPlay("hit_monst");
}
if ((_x + _parent._x) < _parent._parent.leo._x) {
_parent._parent.leo.vx = 15;
} else {
_parent._parent.leo.vx = -15;
}
}
}
}
Symbol 389 MovieClip Frame 1
function scoring(point) {
var _local1 = _root;
_local1.score = _local1.score + point;
_local1.scoreClip.plotScore();
}
function miam(val) {
var _local1 = _root;
if (_local1.stam < 18) {
_local1.stam = _local1.stam + val;
}
_local1.stamina.gotoAndStop(_local1.stam);
}
function stars() {
star++;
_root.starClip.plotScore();
if (star > 9) {
door.play();
}
}
function effet(qui, RR, VV, BB) {
myColor = new Color(qui);
myColor.setTransform({ra:"100", ga:"100", ba:"100", rb:RR, gb:VV, bb:BB, aa:"100", ab:0});
}
function hurt(aie) {
var _local1 = _root;
if (leo.hp > 0) {
leo.hurt = aie;
leo.hp = leo.hp - aie;
if (leo.hp <= 0) {
if (_local1.live.lives > 0) {
leo.state = 3;
if (_local1.fire == false) {
leo.gotoAndPlay("angel");
} else {
leo.gotoAndPlay("fire");
_local1.fire = false;
}
leo.hp = 0;
_local1.live.lives--;
_local1.live.gotoAndStop(_local1.live.lives + 1);
} else {
leo.state = 3;
if (_local1.fire == false) {
leo.gotoAndPlay("angel");
} else {
leo.gotoAndPlay("fire");
_local1.fire = false;
}
_local1.gameover = true;
}
}
}
}
function init() {
var _local1 = _root;
star = 0;
_local1.starClip.plotScore();
leftBound = -700;
rightBound = 1773;
gravity = 3;
leo.x = -580;
leo.y = 250;
_local1.fire = false;
_local1.gameover = false;
star = 0;
leo.vx = 0;
leo.vy = 0;
leo.dx = 0;
leo.dy = 0;
leo.hp = 100;
leo.hurt = 0;
leo.score = 0;
leo.skyCounter = 0;
leo.touchLand = 0;
leo.speed = 6;
setProperty("leo", _x , leo.x);
setProperty("leo", _y , leo.y);
}
function leoClear() {
leo.dx = 0;
leo.dy = 0;
}
function leoInputControl() {
if (leo.state == 4) {
leo.state = 2;
leo.hp = 100;
leo.gotoAndPlay("enter");
leo.y = 250;
leo.vy = 20;
leo.vx = 0;
_root.stam = 17;
}
setProperty("_root.hpBar", _width , leo.hp);
if (((leo.touchLand == 0) && (leo.state != 2)) && (leo.state != 3)) {
leo.skyCounter++;
if (leo.skyCounter > 5) {
leo.state = 2;
leo.gotoAndPlay("jump");
leo.skyCounter = 0;
}
} else {
leo.skyCounter = 0;
}
if (leo.state == 2) {
if (key.isDown(39)) {
leo.facing = 0;
leo.dx = leo.dx + leo.speed;
setProperty("leo", _xscale , 100);
}
if (key.isDown(37)) {
leo.facing = 1;
leo.dx = leo.dx - leo.speed;
setProperty("leo", _xscale , -100);
}
if (leo.touchLand == 1) {
leo.state = 0;
leo.gotoAndPlay("stand");
}
}
if (leo.state == 0) {
if (key.isDown(39)) {
leo.state = 1;
leo.facing = 0;
leo.gotoAndPlay("run");
setProperty("leo", _xscale , 100);
}
if (key.isDown(37)) {
leo.state = 1;
leo.facing = 1;
leo.gotoAndPlay("run");
setProperty("leo", _xscale , -100);
}
} else if (leo.state == 1) {
if (leo.facing == 0) {
if (!key.isDown(39)) {
leo.state = 0;
leo.gotoAndPlay("stand");
} else {
leo.dx = leo.dx + leo.speed;
}
} else if (!key.isDown(37)) {
leo.state = 0;
leo.gotoAndPlay("stand");
} else {
leo.dx = leo.dx - leo.speed;
}
}
if ((((leo.state == 0) || (leo.state == 1)) && (key.isDown(38))) && (leo.touchLand == 1)) {
leo.state = 2;
leo.vy = -25;
_root.sound_jump.gotoAndPlay("play");
if (key.isDown(39)) {
setProperty("leo", _xscale , 100);
}
if (key.isDown(37)) {
setProperty("leo", _xscale , -100);
}
leo.gotoAndPlay("jump");
}
}
function detectDown(x, y, dx, dy, hw, hh, vx, vy) {
var _local1 = _root;
var _local2 = dy;
var _local3 = hh;
temp_dy = _local2;
temp_vy = vy;
temp_dx = dx;
temp_vx = vx;
temp_touchLand = 0;
endDetect = 0;
if (_local2 > 0) {
i = (-_local3) / 2;
while ((i < (_local2 + 9)) && (endDetect == 0)) {
if (i > 0) {
j = (i * dx) / _local2;
} else {
j = 0;
}
if (backgr.hitTest((_local1.rx + x) + j, (((_local1.ry + y) + i) + _local3) - 5, true)) {
temp_vy = 0;
temp_vx = 0;
if (leo.state == 2) {
leo.gotoAndPlay("hit_floor");
_local1.sound_touch_ground.gotoAndPlay("play");
}
temp_touchLand = 1;
k = i - 9;
while ((k < i) && (endDetect == 0)) {
if (k > 0) {
j = (k * dx) / _local2;
} else {
j = 0;
}
if (backgr.hitTest((_local1.rx + x) + j, (((_local1.ry + y) + k) + _local3) - 5, true)) {
temp_dy = k;
endDetect = 1;
}
k++;
}
}
i = i + 10;
}
}
if ((temp_dy < 0) && (vy > 0)) {
temp_dx = temp_dx / (1 - ((temp_dy / _local3) * 8));
}
if (_local2 < temp_dy) {
temp_dy = _local2;
}
}
function detectRight(x, y, dx, dy, hw, hh, vx, vy) {
var _local1 = _root;
var _local2 = dx;
var _local3 = hw;
temp_dy = dy;
temp_vy = vy;
temp_dx = _local2;
temp_vx = vx;
endDetect = 0;
if (_local2 >= 0) {
i = (-_local3) / 2;
while ((i < (_local2 + 9)) && (endDetect == 0)) {
if (i > 0) {
j = (i * dy) / _local2;
} else {
j = 0;
}
if (backgr.hitTest(((_local1.rx + x) + i) + _local3, (_local1.ry + y) + j, true)) {
temp_vx = temp_vx >> 1;
k = i - 9;
while ((k < i) && (endDetect == 0)) {
if (k > 0) {
j = (k * dy) / _local2;
} else {
j = 0;
}
if (backgr.hitTest(((_local1.rx + x) + k) + _local3, (_local1.ry + y) + j, true)) {
temp_dx = k;
endDetect = 1;
}
k++;
}
}
i = i + 10;
}
}
if (_local2 < temp_dx) {
temp_dx = _local2;
}
if ((rightBound - _local3) < (x + temp_dx)) {
temp_dx = (rightBound - _local3) - x;
}
}
function detectLeft(x, y, dx, dy, hw, hh, vx, vy) {
var _local1 = _root;
var _local2 = dx;
var _local3 = hw;
temp_dy = dy;
temp_vy = vy;
temp_dx = _local2;
temp_vx = vx;
endDetect = 0;
if (_local2 <= 0) {
i = _local3 / 2;
while (((_local2 - 9) < i) && (endDetect == 0)) {
if (i < 0) {
j = (i * dy) / _local2;
} else {
j = 0;
}
if (backgr.hitTest(((_local1.rx + x) + i) - _local3, (_local1.ry + y) + j, true)) {
temp_vx = temp_vx >> 1;
k = i + 9;
while ((i < k) && (endDetect == 0)) {
if (k < 0) {
j = (k * dy) / _local2;
} else {
j = 0;
}
if (backgr.hitTest(((_local1.rx + x) + k) - _local3, (_local1.ry + y) + j, true)) {
temp_dx = k;
endDetect = 1;
}
k--;
}
}
i = i - 10;
}
}
if (temp_dx < _local2) {
temp_dx = _local2;
}
if ((x + temp_dx) < (leftBound + _local3)) {
temp_dx = (leftBound + _local3) - x;
}
}
function detectUp(x, y, dx, dy, hw, hh, vx, vy) {
var _local1 = _root;
var _local2 = dy;
var _local3 = dx;
temp_dy = _local2;
temp_vy = vy;
temp_dx = _local3;
temp_vx = vx;
endDetect = 0;
if (_local2 < 0) {
i = 0;
while ((_local2 < i) && (endDetect == 0)) {
if (i < 0) {
j = (i * _local3) / _local2;
} else {
j = 0;
}
if (backgr.hitTest((_local1.rx + x) + j, ((_local1.ry + y) + i) - hh, true)) {
temp_vx = temp_vx >> 1;
temp_vy = 0;
k = i + 9;
while ((i < k) && (endDetect == 0)) {
if (k < 0) {
j = (k * _local3) / _local2;
} else {
j = 0;
}
if (backgr.hitTest((_local1.rx + x) + j, ((_local1.ry + y) + k) - hh, true)) {
temp_dy = k;
endDetect = 1;
}
k--;
}
}
i = i - 10;
}
}
if (temp_dy < _local2) {
temp_dy = _local2;
}
}
function leoPhysics() {
if (leo.state == 3) {
return(undefined);
}
leo.vy = leo.vy + gravity;
leo.dy = leo.dy + leo.vy;
leo.dx = leo.dx + leo.vx;
detectDown(leo.x, leo.y, leo.dx, leo.dy, leo.bw >> 1, leo.bh >> 1, leo.vx, leo.vy);
leo.dy = temp_dy;
leo.vy = temp_vy;
leo.dx = temp_dx;
leo.vx = temp_vx;
leo.touchLand = temp_touchLand;
detectRight(leo.x, leo.y, leo.dx, leo.dy, leo.bw >> 1, leo.bh >> 1, leo.vx, leo.vy);
leo.dy = temp_dy;
leo.vy = temp_vy;
leo.dx = temp_dx;
leo.vx = temp_vx;
detectLeft(leo.x, leo.y, leo.dx, leo.dy, leo.bw >> 1, leo.bh >> 1, leo.vx, leo.vy);
leo.dy = temp_dy;
leo.vy = temp_vy;
leo.dx = temp_dx;
leo.vx = temp_vx;
detectUp(leo.x, leo.y, leo.dx, leo.dy, leo.bw >> 1, leo.bh >> 1, leo.vx, leo.vy);
leo.dy = temp_dy;
leo.vy = temp_vy;
leo.dx = temp_dx;
leo.vx = temp_vx;
}
function leoUpdate() {
leo.x = parseInt(leo.x + leo.dx);
leo.y = parseInt(leo.y + leo.dy);
setProperty("leo", _x , leo.x);
setProperty("leo", _y , leo.y);
}
stop();
temp_dy = 0;
temp_vy = 0;
temp_dx = 0;
temp_vx = 0;
temp_touchLand = 0;
init();
Instance of Symbol 226 MovieClip "trg_bat1" in Symbol 389 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_parent.leo.bbox)) {
_parent.bat1.active = true;
play();
}
}
Instance of Symbol 70 MovieClip in Symbol 389 MovieClip Frame 1
onClipEvent (enterFrame) {
if (alive == true) {
_y = (_y + (1 * Math.cos((ang = ang + 0.3))));
if (hitTest(_parent.leo.bbox)) {
alive = false;
play();
_parent.scoring(20);
_parent.stars();
}
}
}
Instance of Symbol 70 MovieClip in Symbol 389 MovieClip Frame 1
onClipEvent (enterFrame) {
if (alive == true) {
_y = (_y + (1 * Math.cos((ang = ang + 0.3))));
if (hitTest(_parent.leo.bbox)) {
alive = false;
play();
_parent.scoring(20);
_parent.stars();
}
}
}
Instance of Symbol 70 MovieClip in Symbol 389 MovieClip Frame 1
onClipEvent (enterFrame) {
if (alive == true) {
_y = (_y + (1 * Math.cos((ang = ang + 0.3))));
if (hitTest(_parent.leo.bbox)) {
alive = false;
play();
_parent.scoring(20);
_parent.stars();
}
}
}
Instance of Symbol 70 MovieClip in Symbol 389 MovieClip Frame 1
onClipEvent (enterFrame) {
if (alive == true) {
_y = (_y + (1 * Math.cos((ang = ang + 0.3))));
if (hitTest(_parent.leo.bbox)) {
alive = false;
play();
_parent.scoring(20);
_parent.stars();
}
}
}
Instance of Symbol 70 MovieClip in Symbol 389 MovieClip Frame 1
onClipEvent (enterFrame) {
if (alive == true) {
_y = (_y + (1 * Math.cos((ang = ang + 0.3))));
if (hitTest(_parent.leo.bbox)) {
alive = false;
play();
_parent.scoring(20);
_parent.stars();
}
}
}
Instance of Symbol 70 MovieClip in Symbol 389 MovieClip Frame 1
onClipEvent (enterFrame) {
if (alive == true) {
_y = (_y + (1 * Math.cos((ang = ang + 0.3))));
if (hitTest(_parent.leo.bbox)) {
alive = false;
play();
_parent.scoring(20);
_parent.stars();
}
}
}
Instance of Symbol 70 MovieClip in Symbol 389 MovieClip Frame 1
onClipEvent (enterFrame) {
if (alive == true) {
_y = (_y + (1 * Math.cos((ang = ang + 0.3))));
if (hitTest(_parent.leo.bbox)) {
alive = false;
play();
_parent.scoring(20);
_parent.stars();
}
}
}
Instance of Symbol 70 MovieClip in Symbol 389 MovieClip Frame 1
onClipEvent (enterFrame) {
if (alive == true) {
_y = (_y + (1 * Math.cos((ang = ang + 0.3))));
if (hitTest(_parent.leo.bbox)) {
alive = false;
play();
_parent.scoring(20);
_parent.stars();
}
}
}
Instance of Symbol 70 MovieClip in Symbol 389 MovieClip Frame 1
onClipEvent (enterFrame) {
if (alive == true) {
_y = (_y + (1 * Math.cos((ang = ang + 0.3))));
if (hitTest(_parent.leo.bbox)) {
alive = false;
play();
_parent.scoring(20);
_parent.stars();
}
}
}
Instance of Symbol 70 MovieClip in Symbol 389 MovieClip Frame 1
onClipEvent (enterFrame) {
if (alive == true) {
_y = (_y + (1 * Math.cos((ang = ang + 0.3))));
if (hitTest(_parent.leo.bbox)) {
alive = false;
play();
_parent.scoring(20);
_parent.stars();
}
}
}
Instance of Symbol 231 MovieClip "cado" in Symbol 389 MovieClip Frame 1
onClipEvent (enterFrame) {
if (alive == true) {
if (hitTest(_parent.leo.bbox)) {
alive = false;
play();
_parent.scoring(20);
}
}
}
Instance of Symbol 374 MovieClip "bat1" in Symbol 389 MovieClip Frame 1
onClipEvent (load) {
function reset() {
_y = by;
_x = bx;
}
function dronefollow() {
m = true;
my_posy = _parent.leo._y - 5;
my_posx = _parent.leo._x - 10;
myx = my_posx;
my = my_posy;
if (my < _y) {
dy = _y - my;
} else {
dy = my - _y;
}
moveSpeedy = dy / 10;
if (my < _y) {
_y = (_y - moveSpeedy);
} else {
_y = (_y + moveSpeedy);
}
if (myx < _x) {
dx = _x - myx;
} else {
dx = myx - _x;
}
moveSpeedx = dx / 30;
if (myx < _x) {
_x = (_x - moveSpeedx);
} else {
_x = (_x + moveSpeedx);
}
}
active = false;
by = _y;
bx = _x;
}
onClipEvent (enterFrame) {
if (active == true) {
dronefollow();
}
}
Instance of Symbol 388 MovieClip in Symbol 389 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.leoClear();
_parent.leoInputControl();
_parent.leoPhysics();
_parent.leoUpdate();
}
Symbol 392 MovieClip Frame 2
stop();
Symbol 395 MovieClip Frame 2
stop();
Symbol 398 MovieClip Frame 1
stop();
Symbol 398 MovieClip Frame 2
stop();
Symbol 399 MovieClip Frame 25
stop();
Symbol 405 MovieClip Frame 29
gotoAndPlay (1);
Symbol 437 MovieClip Frame 114
stop();
Symbol 458 MovieClip Frame 1
stop();
Symbol 468 MovieClip Frame 1
stop();
Symbol 472 Button
on (release) {
getURL ("http://www.thebestwebgames.com", "_self");
}
Symbol 480 Button
on (release) {
getURL ("http://www.thebestwebgames.com", "_self");
}
Symbol 491 MovieClip Frame 1
stop();
alive = true;
Symbol 491 MovieClip Frame 2
alive = false;
Symbol 491 MovieClip Frame 603
_parent.play();
Instance of Symbol 491 MovieClip in Symbol 492 MovieClip Frame 1
onClipEvent (enterFrame) {
if (alive == true) {
if (hitTest(_parent._parent.leo.hit)) {
alive = false;
_parent.stop();
_parent._parent.scoring(100);
_parent._parent.leo.vy = -15;
_parent._parent.leo.gotoAndPlay("ecrase");
play();
}
if (hitTest(_parent._parent.leo.bbox)) {
_parent._parent.hurt(100);
if (_parent._parent.leo.state != 3) {
_parent._parent.leo.vy = -8;
_parent._parent.leo.gotoAndPlay("hit_monst");
}
if ((_x + _parent._x) < _parent._parent.leo._x) {
_parent._parent.leo.vx = 15;
} else {
_parent._parent.leo.vx = -15;
}
}
}
}
Symbol 495 MovieClip Frame 1
stop();
alive = true;
Symbol 495 MovieClip Frame 2
alive = false;
Symbol 495 MovieClip Frame 603
_parent.play();
Instance of Symbol 495 MovieClip in Symbol 496 MovieClip Frame 1
onClipEvent (enterFrame) {
if (alive == true) {
if (hitTest(_parent._parent.leo.hit)) {
alive = false;
_parent.stop();
_parent._parent.scoring(100);
_parent._parent.leo.vy = -15;
_parent._parent.leo.gotoAndPlay("ecrase");
play();
}
if (hitTest(_parent._parent.leo.bbox)) {
_parent._parent.hurt(100);
if (_parent._parent.leo.state != 3) {
_parent._parent.leo.vy = -8;
_parent._parent.leo.gotoAndPlay("hit_monst");
}
if ((_x + _parent._x) < _parent._parent.leo._x) {
_parent._parent.leo.vx = 15;
} else {
_parent._parent.leo.vx = -15;
}
}
}
}
Symbol 497 MovieClip Frame 1
function scoring(point) {
var _local1 = _root;
_local1.score = _local1.score + point;
_local1.scoreClip.plotScore();
}
function miam(val) {
var _local1 = _root;
if (_local1.stam < 18) {
_local1.stam = _local1.stam + val;
}
_local1.stamina.gotoAndStop(_local1.stam);
}
function stars() {
star++;
_root.starClip.plotScore();
if (star > 9) {
door.play();
}
}
function effet(qui, RR, VV, BB) {
myColor = new Color(qui);
myColor.setTransform({ra:"100", ga:"100", ba:"100", rb:RR, gb:VV, bb:BB, aa:"100", ab:0});
}
function hurt(aie) {
var _local1 = _root;
if (leo.hp > 0) {
leo.hurt = aie;
leo.hp = leo.hp - aie;
if (leo.hp <= 0) {
if (_local1.live.lives > 0) {
leo.state = 3;
if (_local1.fire == false) {
leo.gotoAndPlay("angel");
} else {
leo.gotoAndPlay("fire");
_local1.fire = false;
}
leo.hp = 0;
_local1.live.lives--;
_local1.live.gotoAndStop(_local1.live.lives + 1);
} else {
leo.state = 3;
if (_local1.fire == false) {
leo.gotoAndPlay("angel");
} else {
leo.gotoAndPlay("fire");
_local1.fire = false;
}
_local1.gameover = true;
}
}
}
}
function init() {
var _local1 = _root;
star = 0;
_local1.starClip.plotScore();
leftBound = -700;
rightBound = 1773;
gravity = 3;
leo.x = -580;
leo.y = 250;
_local1.fire = false;
_local1.gameover = false;
star = 0;
leo.vx = 0;
leo.vy = 0;
leo.dx = 0;
leo.dy = 0;
leo.hp = 100;
leo.hurt = 0;
leo.score = 0;
leo.skyCounter = 0;
leo.touchLand = 0;
leo.speed = 6;
setProperty("leo", _x , leo.x);
setProperty("leo", _y , leo.y);
}
function leoClear() {
leo.dx = 0;
leo.dy = 0;
}
function leoInputControl() {
if (leo.state == 4) {
leo.state = 2;
leo.hp = 100;
leo.gotoAndPlay("enter");
leo.y = 250;
leo.vy = 20;
leo.vx = 0;
_root.stam = 17;
}
setProperty("_root.hpBar", _width , leo.hp);
if (((leo.touchLand == 0) && (leo.state != 2)) && (leo.state != 3)) {
leo.skyCounter++;
if (leo.skyCounter > 5) {
leo.state = 2;
leo.gotoAndPlay("jump");
leo.skyCounter = 0;
}
} else {
leo.skyCounter = 0;
}
if (leo.state == 2) {
if (key.isDown(39)) {
leo.facing = 0;
leo.dx = leo.dx + leo.speed;
setProperty("leo", _xscale , 100);
}
if (key.isDown(37)) {
leo.facing = 1;
leo.dx = leo.dx - leo.speed;
setProperty("leo", _xscale , -100);
}
if (leo.touchLand == 1) {
leo.state = 0;
leo.gotoAndPlay("stand");
}
}
if (leo.state == 0) {
if (key.isDown(39)) {
leo.state = 1;
leo.facing = 0;
leo.gotoAndPlay("run");
setProperty("leo", _xscale , 100);
}
if (key.isDown(37)) {
leo.state = 1;
leo.facing = 1;
leo.gotoAndPlay("run");
setProperty("leo", _xscale , -100);
}
} else if (leo.state == 1) {
if (leo.facing == 0) {
if (!key.isDown(39)) {
leo.state = 0;
leo.gotoAndPlay("stand");
} else {
leo.dx = leo.dx + leo.speed;
}
} else if (!key.isDown(37)) {
leo.state = 0;
leo.gotoAndPlay("stand");
} else {
leo.dx = leo.dx - leo.speed;
}
}
if ((((leo.state == 0) || (leo.state == 1)) && (key.isDown(38))) && (leo.touchLand == 1)) {
leo.state = 2;
leo.vy = -25;
_root.sound_jump.gotoAndPlay("play");
if (key.isDown(39)) {
setProperty("leo", _xscale , 100);
}
if (key.isDown(37)) {
setProperty("leo", _xscale , -100);
}
leo.gotoAndPlay("jump");
}
}
function detectDown(x, y, dx, dy, hw, hh, vx, vy) {
var _local1 = _root;
var _local2 = dy;
var _local3 = hh;
temp_dy = _local2;
temp_vy = vy;
temp_dx = dx;
temp_vx = vx;
temp_touchLand = 0;
endDetect = 0;
if (_local2 > 0) {
i = (-_local3) / 2;
while ((i < (_local2 + 9)) && (endDetect == 0)) {
if (i > 0) {
j = (i * dx) / _local2;
} else {
j = 0;
}
if (backgr.hitTest((_local1.rx + x) + j, (((_local1.ry + y) + i) + _local3) - 5, true)) {
temp_vy = 0;
temp_vx = 0;
if (leo.state == 2) {
leo.gotoAndPlay("hit_floor");
_local1.sound_touch_ground.gotoAndPlay("play");
}
temp_touchLand = 1;
k = i - 9;
while ((k < i) && (endDetect == 0)) {
if (k > 0) {
j = (k * dx) / _local2;
} else {
j = 0;
}
if (backgr.hitTest((_local1.rx + x) + j, (((_local1.ry + y) + k) + _local3) - 5, true)) {
temp_dy = k;
endDetect = 1;
}
k++;
}
}
i = i + 10;
}
}
if ((temp_dy < 0) && (vy > 0)) {
temp_dx = temp_dx / (1 - ((temp_dy / _local3) * 8));
}
if (_local2 < temp_dy) {
temp_dy = _local2;
}
}
function detectRight(x, y, dx, dy, hw, hh, vx, vy) {
var _local1 = _root;
var _local2 = dx;
var _local3 = hw;
temp_dy = dy;
temp_vy = vy;
temp_dx = _local2;
temp_vx = vx;
endDetect = 0;
if (_local2 >= 0) {
i = (-_local3) / 2;
while ((i < (_local2 + 9)) && (endDetect == 0)) {
if (i > 0) {
j = (i * dy) / _local2;
} else {
j = 0;
}
if (backgr.hitTest(((_local1.rx + x) + i) + _local3, (_local1.ry + y) + j, true)) {
temp_vx = temp_vx >> 1;
k = i - 9;
while ((k < i) && (endDetect == 0)) {
if (k > 0) {
j = (k * dy) / _local2;
} else {
j = 0;
}
if (backgr.hitTest(((_local1.rx + x) + k) + _local3, (_local1.ry + y) + j, true)) {
temp_dx = k;
endDetect = 1;
}
k++;
}
}
i = i + 10;
}
}
if (_local2 < temp_dx) {
temp_dx = _local2;
}
if ((rightBound - _local3) < (x + temp_dx)) {
temp_dx = (rightBound - _local3) - x;
}
}
function detectLeft(x, y, dx, dy, hw, hh, vx, vy) {
var _local1 = _root;
var _local2 = dx;
var _local3 = hw;
temp_dy = dy;
temp_vy = vy;
temp_dx = _local2;
temp_vx = vx;
endDetect = 0;
if (_local2 <= 0) {
i = _local3 / 2;
while (((_local2 - 9) < i) && (endDetect == 0)) {
if (i < 0) {
j = (i * dy) / _local2;
} else {
j = 0;
}
if (backgr.hitTest(((_local1.rx + x) + i) - _local3, (_local1.ry + y) + j, true)) {
temp_vx = temp_vx >> 1;
k = i + 9;
while ((i < k) && (endDetect == 0)) {
if (k < 0) {
j = (k * dy) / _local2;
} else {
j = 0;
}
if (backgr.hitTest(((_local1.rx + x) + k) - _local3, (_local1.ry + y) + j, true)) {
temp_dx = k;
endDetect = 1;
}
k--;
}
}
i = i - 10;
}
}
if (temp_dx < _local2) {
temp_dx = _local2;
}
if ((x + temp_dx) < (leftBound + _local3)) {
temp_dx = (leftBound + _local3) - x;
}
}
function detectUp(x, y, dx, dy, hw, hh, vx, vy) {
var _local1 = _root;
var _local2 = dy;
var _local3 = dx;
temp_dy = _local2;
temp_vy = vy;
temp_dx = _local3;
temp_vx = vx;
endDetect = 0;
if (_local2 < 0) {
i = 0;
while ((_local2 < i) && (endDetect == 0)) {
if (i < 0) {
j = (i * _local3) / _local2;
} else {
j = 0;
}
if (backgr.hitTest((_local1.rx + x) + j, ((_local1.ry + y) + i) - hh, true)) {
temp_vx = temp_vx >> 1;
temp_vy = 0;
k = i + 9;
while ((i < k) && (endDetect == 0)) {
if (k < 0) {
j = (k * _local3) / _local2;
} else {
j = 0;
}
if (backgr.hitTest((_local1.rx + x) + j, ((_local1.ry + y) + k) - hh, true)) {
temp_dy = k;
endDetect = 1;
}
k--;
}
}
i = i - 10;
}
}
if (temp_dy < _local2) {
temp_dy = _local2;
}
}
function leoPhysics() {
if (leo.state == 3) {
return(undefined);
}
leo.vy = leo.vy + gravity;
leo.dy = leo.dy + leo.vy;
leo.dx = leo.dx + leo.vx;
detectDown(leo.x, leo.y, leo.dx, leo.dy, leo.bw >> 1, leo.bh >> 1, leo.vx, leo.vy);
leo.dy = temp_dy;
leo.vy = temp_vy;
leo.dx = temp_dx;
leo.vx = temp_vx;
leo.touchLand = temp_touchLand;
detectRight(leo.x, leo.y, leo.dx, leo.dy, leo.bw >> 1, leo.bh >> 1, leo.vx, leo.vy);
leo.dy = temp_dy;
leo.vy = temp_vy;
leo.dx = temp_dx;
leo.vx = temp_vx;
detectLeft(leo.x, leo.y, leo.dx, leo.dy, leo.bw >> 1, leo.bh >> 1, leo.vx, leo.vy);
leo.dy = temp_dy;
leo.vy = temp_vy;
leo.dx = temp_dx;
leo.vx = temp_vx;
detectUp(leo.x, leo.y, leo.dx, leo.dy, leo.bw >> 1, leo.bh >> 1, leo.vx, leo.vy);
leo.dy = temp_dy;
leo.vy = temp_vy;
leo.dx = temp_dx;
leo.vx = temp_vx;
}
function leoUpdate() {
leo.x = parseInt(leo.x + leo.dx);
leo.y = parseInt(leo.y + leo.dy);
setProperty("leo", _x , leo.x);
setProperty("leo", _y , leo.y);
}
stop();
temp_dy = 0;
temp_vy = 0;
temp_dx = 0;
temp_vx = 0;
temp_touchLand = 0;
init();
Instance of Symbol 70 MovieClip in Symbol 497 MovieClip Frame 1
onClipEvent (enterFrame) {
if (alive == true) {
_y = (_y + (1 * Math.cos((ang = ang + 0.3))));
if (hitTest(_parent.leo.bbox)) {
alive = false;
play();
_parent.scoring(20);
_parent.stars();
}
}
}
Instance of Symbol 70 MovieClip in Symbol 497 MovieClip Frame 1
onClipEvent (enterFrame) {
if (alive == true) {
_y = (_y + (1 * Math.cos((ang = ang + 0.3))));
if (hitTest(_parent.leo.bbox)) {
alive = false;
play();
_parent.scoring(20);
_parent.stars();
}
}
}
Instance of Symbol 70 MovieClip in Symbol 497 MovieClip Frame 1
onClipEvent (enterFrame) {
if (alive == true) {
_y = (_y + (1 * Math.cos((ang = ang + 0.3))));
if (hitTest(_parent.leo.bbox)) {
alive = false;
play();
_parent.scoring(20);
_parent.stars();
}
}
}
Instance of Symbol 70 MovieClip in Symbol 497 MovieClip Frame 1
onClipEvent (enterFrame) {
if (alive == true) {
_y = (_y + (1 * Math.cos((ang = ang + 0.3))));
if (hitTest(_parent.leo.bbox)) {
alive = false;
play();
_parent.scoring(20);
_parent.stars();
}
}
}
Instance of Symbol 70 MovieClip in Symbol 497 MovieClip Frame 1
onClipEvent (enterFrame) {
if (alive == true) {
_y = (_y + (1 * Math.cos((ang = ang + 0.3))));
if (hitTest(_parent.leo.bbox)) {
alive = false;
play();
_parent.scoring(20);
_parent.stars();
}
}
}
Instance of Symbol 70 MovieClip in Symbol 497 MovieClip Frame 1
onClipEvent (enterFrame) {
if (alive == true) {
_y = (_y + (1 * Math.cos((ang = ang + 0.3))));
if (hitTest(_parent.leo.bbox)) {
alive = false;
play();
_parent.scoring(20);
_parent.stars();
}
}
}
Instance of Symbol 70 MovieClip in Symbol 497 MovieClip Frame 1
onClipEvent (enterFrame) {
if (alive == true) {
_y = (_y + (1 * Math.cos((ang = ang + 0.3))));
if (hitTest(_parent.leo.bbox)) {
alive = false;
play();
_parent.scoring(20);
_parent.stars();
}
}
}
Instance of Symbol 70 MovieClip in Symbol 497 MovieClip Frame 1
onClipEvent (enterFrame) {
if (alive == true) {
_y = (_y + (1 * Math.cos((ang = ang + 0.3))));
if (hitTest(_parent.leo.bbox)) {
alive = false;
play();
_parent.scoring(20);
_parent.stars();
}
}
}
Instance of Symbol 70 MovieClip in Symbol 497 MovieClip Frame 1
onClipEvent (enterFrame) {
if (alive == true) {
_y = (_y + (1 * Math.cos((ang = ang + 0.3))));
if (hitTest(_parent.leo.bbox)) {
alive = false;
play();
_parent.scoring(20);
_parent.stars();
}
}
}
Instance of Symbol 70 MovieClip in Symbol 497 MovieClip Frame 1
onClipEvent (enterFrame) {
if (alive == true) {
_y = (_y + (1 * Math.cos((ang = ang + 0.3))));
if (hitTest(_parent.leo.bbox)) {
alive = false;
play();
_parent.scoring(20);
_parent.stars();
}
}
}
Instance of Symbol 388 MovieClip in Symbol 497 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.leoClear();
_parent.leoInputControl();
_parent.leoPhysics();
_parent.leoUpdate();
}
Symbol 545 MovieClip Frame 1
stop();
alive = true;
Symbol 545 MovieClip Frame 2
alive = false;
Symbol 545 MovieClip Frame 603
_parent.play();
Instance of Symbol 545 MovieClip in Symbol 546 MovieClip Frame 1
onClipEvent (enterFrame) {
if (alive == true) {
if (hitTest(_parent._parent.leo.hit)) {
alive = false;
_parent.stop();
_parent._parent.scoring(100);
_parent._parent.leo.vy = -15;
_parent._parent.leo.gotoAndPlay("ecrase");
play();
}
if (hitTest(_parent._parent.leo.bbox)) {
_parent._parent.hurt(100);
if (_parent._parent.leo.state != 3) {
_parent._parent.leo.vy = -8;
_parent._parent.leo.gotoAndPlay("hit_monst");
}
if ((_x + _parent._x) < _parent._parent.leo._x) {
_parent._parent.leo.vx = 15;
} else {
_parent._parent.leo.vx = -15;
}
}
}
}
Symbol 547 MovieClip Frame 1
function scoring(point) {
var _local1 = _root;
_local1.score = _local1.score + point;
_local1.scoreClip.plotScore();
}
function miam(val) {
var _local1 = _root;
if (_local1.stam < 18) {
_local1.stam = _local1.stam + val;
}
_local1.stamina.gotoAndStop(_local1.stam);
}
function stars() {
star++;
_root.starClip.plotScore();
if (star > 9) {
door.play();
}
}
function effet(qui, RR, VV, BB) {
myColor = new Color(qui);
myColor.setTransform({ra:"100", ga:"100", ba:"100", rb:RR, gb:VV, bb:BB, aa:"100", ab:0});
}
function hurt(aie) {
var _local1 = _root;
if (leo.hp > 0) {
leo.hurt = aie;
leo.hp = leo.hp - aie;
if (leo.hp <= 0) {
if (_local1.live.lives > 0) {
leo.state = 3;
if (_local1.fire == false) {
leo.gotoAndPlay("angel");
} else {
leo.gotoAndPlay("fire");
_local1.fire = false;
}
leo.hp = 0;
_local1.live.lives--;
_local1.live.gotoAndStop(_local1.live.lives + 1);
} else {
leo.state = 3;
if (_local1.fire == false) {
leo.gotoAndPlay("angel");
} else {
leo.gotoAndPlay("fire");
_local1.fire = false;
}
_local1.gameover = true;
}
}
}
}
function init() {
var _local1 = _root;
star = 0;
_local1.starClip.plotScore();
leftBound = -700;
rightBound = 1773;
gravity = 3;
leo.x = -580;
leo.y = 250;
_local1.fire = false;
_local1.gameover = false;
star = 0;
leo.vx = 0;
leo.vy = 0;
leo.dx = 0;
leo.dy = 0;
leo.hp = 100;
leo.hurt = 0;
leo.score = 0;
leo.skyCounter = 0;
leo.touchLand = 0;
leo.speed = 6;
setProperty("leo", _x , leo.x);
setProperty("leo", _y , leo.y);
}
function leoClear() {
leo.dx = 0;
leo.dy = 0;
}
function leoInputControl() {
if (leo.state == 4) {
leo.state = 2;
leo.hp = 100;
leo.gotoAndPlay("enter");
leo.y = 250;
leo.vy = 20;
leo.vx = 0;
_root.stam = 17;
}
setProperty("_root.hpBar", _width , leo.hp);
if (((leo.touchLand == 0) && (leo.state != 2)) && (leo.state != 3)) {
leo.skyCounter++;
if (leo.skyCounter > 5) {
leo.state = 2;
leo.gotoAndPlay("jump");
leo.skyCounter = 0;
}
} else {
leo.skyCounter = 0;
}
if (leo.state == 2) {
if (key.isDown(39)) {
leo.facing = 0;
leo.dx = leo.dx + leo.speed;
setProperty("leo", _xscale , 100);
}
if (key.isDown(37)) {
leo.facing = 1;
leo.dx = leo.dx - leo.speed;
setProperty("leo", _xscale , -100);
}
if (leo.touchLand == 1) {
leo.state = 0;
leo.gotoAndPlay("stand");
}
}
if (leo.state == 0) {
if (key.isDown(39)) {
leo.state = 1;
leo.facing = 0;
leo.gotoAndPlay("run");
setProperty("leo", _xscale , 100);
}
if (key.isDown(37)) {
leo.state = 1;
leo.facing = 1;
leo.gotoAndPlay("run");
setProperty("leo", _xscale , -100);
}
} else if (leo.state == 1) {
if (leo.facing == 0) {
if (!key.isDown(39)) {
leo.state = 0;
leo.gotoAndPlay("stand");
} else {
leo.dx = leo.dx + leo.speed;
}
} else if (!key.isDown(37)) {
leo.state = 0;
leo.gotoAndPlay("stand");
} else {
leo.dx = leo.dx - leo.speed;
}
}
if ((((leo.state == 0) || (leo.state == 1)) && (key.isDown(38))) && (leo.touchLand == 1)) {
leo.state = 2;
leo.vy = -25;
_root.sound_jump.gotoAndPlay("play");
if (key.isDown(39)) {
setProperty("leo", _xscale , 100);
}
if (key.isDown(37)) {
setProperty("leo", _xscale , -100);
}
leo.gotoAndPlay("jump");
}
}
function detectDown(x, y, dx, dy, hw, hh, vx, vy) {
var _local1 = _root;
var _local2 = dy;
var _local3 = hh;
temp_dy = _local2;
temp_vy = vy;
temp_dx = dx;
temp_vx = vx;
temp_touchLand = 0;
endDetect = 0;
if (_local2 > 0) {
i = (-_local3) / 2;
while ((i < (_local2 + 9)) && (endDetect == 0)) {
if (i > 0) {
j = (i * dx) / _local2;
} else {
j = 0;
}
if (backgr.hitTest((_local1.rx + x) + j, (((_local1.ry + y) + i) + _local3) - 5, true)) {
temp_vy = 0;
temp_vx = 0;
if (leo.state == 2) {
leo.gotoAndPlay("hit_floor");
_local1.sound_touch_ground.gotoAndPlay("play");
}
temp_touchLand = 1;
k = i - 9;
while ((k < i) && (endDetect == 0)) {
if (k > 0) {
j = (k * dx) / _local2;
} else {
j = 0;
}
if (backgr.hitTest((_local1.rx + x) + j, (((_local1.ry + y) + k) + _local3) - 5, true)) {
temp_dy = k;
endDetect = 1;
}
k++;
}
}
i = i + 10;
}
}
if ((temp_dy < 0) && (vy > 0)) {
temp_dx = temp_dx / (1 - ((temp_dy / _local3) * 8));
}
if (_local2 < temp_dy) {
temp_dy = _local2;
}
}
function detectRight(x, y, dx, dy, hw, hh, vx, vy) {
var _local1 = _root;
var _local2 = dx;
var _local3 = hw;
temp_dy = dy;
temp_vy = vy;
temp_dx = _local2;
temp_vx = vx;
endDetect = 0;
if (_local2 >= 0) {
i = (-_local3) / 2;
while ((i < (_local2 + 9)) && (endDetect == 0)) {
if (i > 0) {
j = (i * dy) / _local2;
} else {
j = 0;
}
if (backgr.hitTest(((_local1.rx + x) + i) + _local3, (_local1.ry + y) + j, true)) {
temp_vx = temp_vx >> 1;
k = i - 9;
while ((k < i) && (endDetect == 0)) {
if (k > 0) {
j = (k * dy) / _local2;
} else {
j = 0;
}
if (backgr.hitTest(((_local1.rx + x) + k) + _local3, (_local1.ry + y) + j, true)) {
temp_dx = k;
endDetect = 1;
}
k++;
}
}
i = i + 10;
}
}
if (_local2 < temp_dx) {
temp_dx = _local2;
}
if ((rightBound - _local3) < (x + temp_dx)) {
temp_dx = (rightBound - _local3) - x;
}
}
function detectLeft(x, y, dx, dy, hw, hh, vx, vy) {
var _local1 = _root;
var _local2 = dx;
var _local3 = hw;
temp_dy = dy;
temp_vy = vy;
temp_dx = _local2;
temp_vx = vx;
endDetect = 0;
if (_local2 <= 0) {
i = _local3 / 2;
while (((_local2 - 9) < i) && (endDetect == 0)) {
if (i < 0) {
j = (i * dy) / _local2;
} else {
j = 0;
}
if (backgr.hitTest(((_local1.rx + x) + i) - _local3, (_local1.ry + y) + j, true)) {
temp_vx = temp_vx >> 1;
k = i + 9;
while ((i < k) && (endDetect == 0)) {
if (k < 0) {
j = (k * dy) / _local2;
} else {
j = 0;
}
if (backgr.hitTest(((_local1.rx + x) + k) - _local3, (_local1.ry + y) + j, true)) {
temp_dx = k;
endDetect = 1;
}
k--;
}
}
i = i - 10;
}
}
if (temp_dx < _local2) {
temp_dx = _local2;
}
if ((x + temp_dx) < (leftBound + _local3)) {
temp_dx = (leftBound + _local3) - x;
}
}
function detectUp(x, y, dx, dy, hw, hh, vx, vy) {
var _local1 = _root;
var _local2 = dy;
var _local3 = dx;
temp_dy = _local2;
temp_vy = vy;
temp_dx = _local3;
temp_vx = vx;
endDetect = 0;
if (_local2 < 0) {
i = 0;
while ((_local2 < i) && (endDetect == 0)) {
if (i < 0) {
j = (i * _local3) / _local2;
} else {
j = 0;
}
if (backgr.hitTest((_local1.rx + x) + j, ((_local1.ry + y) + i) - hh, true)) {
temp_vx = temp_vx >> 1;
temp_vy = 0;
k = i + 9;
while ((i < k) && (endDetect == 0)) {
if (k < 0) {
j = (k * _local3) / _local2;
} else {
j = 0;
}
if (backgr.hitTest((_local1.rx + x) + j, ((_local1.ry + y) + k) - hh, true)) {
temp_dy = k;
endDetect = 1;
}
k--;
}
}
i = i - 10;
}
}
if (temp_dy < _local2) {
temp_dy = _local2;
}
}
function leoPhysics() {
if (leo.state == 3) {
return(undefined);
}
leo.vy = leo.vy + gravity;
leo.dy = leo.dy + leo.vy;
leo.dx = leo.dx + leo.vx;
detectDown(leo.x, leo.y, leo.dx, leo.dy, leo.bw >> 1, leo.bh >> 1, leo.vx, leo.vy);
leo.dy = temp_dy;
leo.vy = temp_vy;
leo.dx = temp_dx;
leo.vx = temp_vx;
leo.touchLand = temp_touchLand;
detectRight(leo.x, leo.y, leo.dx, leo.dy, leo.bw >> 1, leo.bh >> 1, leo.vx, leo.vy);
leo.dy = temp_dy;
leo.vy = temp_vy;
leo.dx = temp_dx;
leo.vx = temp_vx;
detectLeft(leo.x, leo.y, leo.dx, leo.dy, leo.bw >> 1, leo.bh >> 1, leo.vx, leo.vy);
leo.dy = temp_dy;
leo.vy = temp_vy;
leo.dx = temp_dx;
leo.vx = temp_vx;
detectUp(leo.x, leo.y, leo.dx, leo.dy, leo.bw >> 1, leo.bh >> 1, leo.vx, leo.vy);
leo.dy = temp_dy;
leo.vy = temp_vy;
leo.dx = temp_dx;
leo.vx = temp_vx;
}
function leoUpdate() {
leo.x = parseInt(leo.x + leo.dx);
leo.y = parseInt(leo.y + leo.dy);
setProperty("leo", _x , leo.x);
setProperty("leo", _y , leo.y);
}
stop();
temp_dy = 0;
temp_vy = 0;
temp_dx = 0;
temp_vx = 0;
temp_touchLand = 0;
init();
Instance of Symbol 70 MovieClip in Symbol 547 MovieClip Frame 1
onClipEvent (enterFrame) {
if (alive == true) {
_y = (_y + (1 * Math.cos((ang = ang + 0.3))));
if (hitTest(_parent.leo.bbox)) {
alive = false;
play();
_parent.scoring(20);
_parent.stars();
}
}
}
Instance of Symbol 70 MovieClip in Symbol 547 MovieClip Frame 1
onClipEvent (enterFrame) {
if (alive == true) {
_y = (_y + (1 * Math.cos((ang = ang + 0.3))));
if (hitTest(_parent.leo.bbox)) {
alive = false;
play();
_parent.scoring(20);
_parent.stars();
}
}
}
Instance of Symbol 70 MovieClip in Symbol 547 MovieClip Frame 1
onClipEvent (enterFrame) {
if (alive == true) {
_y = (_y + (1 * Math.cos((ang = ang + 0.3))));
if (hitTest(_parent.leo.bbox)) {
alive = false;
play();
_parent.scoring(20);
_parent.stars();
}
}
}
Instance of Symbol 70 MovieClip in Symbol 547 MovieClip Frame 1
onClipEvent (enterFrame) {
if (alive == true) {
_y = (_y + (1 * Math.cos((ang = ang + 0.3))));
if (hitTest(_parent.leo.bbox)) {
alive = false;
play();
_parent.scoring(20);
_parent.stars();
}
}
}
Instance of Symbol 70 MovieClip in Symbol 547 MovieClip Frame 1
onClipEvent (enterFrame) {
if (alive == true) {
_y = (_y + (1 * Math.cos((ang = ang + 0.3))));
if (hitTest(_parent.leo.bbox)) {
alive = false;
play();
_parent.scoring(20);
_parent.stars();
}
}
}
Instance of Symbol 70 MovieClip in Symbol 547 MovieClip Frame 1
onClipEvent (enterFrame) {
if (alive == true) {
_y = (_y + (1 * Math.cos((ang = ang + 0.3))));
if (hitTest(_parent.leo.bbox)) {
alive = false;
play();
_parent.scoring(20);
_parent.stars();
}
}
}
Instance of Symbol 70 MovieClip in Symbol 547 MovieClip Frame 1
onClipEvent (enterFrame) {
if (alive == true) {
_y = (_y + (1 * Math.cos((ang = ang + 0.3))));
if (hitTest(_parent.leo.bbox)) {
alive = false;
play();
_parent.scoring(20);
_parent.stars();
}
}
}
Instance of Symbol 70 MovieClip in Symbol 547 MovieClip Frame 1
onClipEvent (enterFrame) {
if (alive == true) {
_y = (_y + (1 * Math.cos((ang = ang + 0.3))));
if (hitTest(_parent.leo.bbox)) {
alive = false;
play();
_parent.scoring(20);
_parent.stars();
}
}
}
Instance of Symbol 70 MovieClip in Symbol 547 MovieClip Frame 1
onClipEvent (enterFrame) {
if (alive == true) {
_y = (_y + (1 * Math.cos((ang = ang + 0.3))));
if (hitTest(_parent.leo.bbox)) {
alive = false;
play();
_parent.scoring(20);
_parent.stars();
}
}
}
Instance of Symbol 70 MovieClip in Symbol 547 MovieClip Frame 1
onClipEvent (enterFrame) {
if (alive == true) {
_y = (_y + (1 * Math.cos((ang = ang + 0.3))));
if (hitTest(_parent.leo.bbox)) {
alive = false;
play();
_parent.scoring(20);
_parent.stars();
}
}
}
Instance of Symbol 388 MovieClip in Symbol 547 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.leoClear();
_parent.leoInputControl();
_parent.leoPhysics();
_parent.leoUpdate();
}
Symbol 551 MovieClip Frame 30
stop();
Symbol 553 Button
on (rollOver) {
bounce = false;
xscale = Number(xscale * 1.2);
yscale = Number(yscale * 1.2);
}
on (rollOut) {
bounce = false;
xscale = Number(100);
yscale = Number(100);
}
on (releaseOutside) {
_parent._parent._parent.play();
bounce = false;
xscale = Number(100);
yscale = Number(100);
}
on (release) {
_root.gotoAndPlay(3);
}
Symbol 554 MovieClip Frame 1
xscale = Number(100);
yscale = Number(100);
friction = 0.7;
ratio = 0.5;
speedXscale = 0;
speedYscale = 0;
bounce = false;
Symbol 556 Button
on (rollOver) {
bounce = false;
xscale = Number(xscale * 1.2);
yscale = Number(yscale * 1.2);
}
on (rollOut) {
bounce = false;
xscale = Number(100);
yscale = Number(100);
}
on (releaseOutside) {
_parent._parent._parent.play();
bounce = false;
xscale = Number(100);
yscale = Number(100);
}
on (release) {
getURL ("http://www.thebestwebgames.com", "_blank");
}
Symbol 557 MovieClip Frame 1
xscale = Number(100);
yscale = Number(100);
friction = 0.7;
ratio = 0.5;
speedXscale = 0;
speedYscale = 0;
bounce = false;