Frame 1
function ciel() {
sky.s1._x = sky.s1._x - speed;
sky.s2._x = sky.s2._x - (speed / 2);
}
Stage.scaleMode = "noScale";
Stage.showMenu = false;
speed = 3;
String.prototype.addCommas = function () {
var _local3 = this.length;
var _local2 = "";
var _local1 = 0;
while (_local1 <= _local3) {
_local2 = this.charAt(_local3 - _local1) + _local2;
if ((((_local1 % 3) == 0) && (_local1 > 0)) && (_local1 < _local3)) {
_local2 = "." + _local2;
}
_local1++;
}
return(_local2);
};
game_so = SharedObject.getLocal("ballofmadness");
Instance of Symbol 68 MovieClip "sky" in Frame 1
onClipEvent (enterFrame) {
_root.ciel();
}
Instance of Symbol 80 MovieClip in Frame 1
//component parameters
onClipEvent (initialize) {
xin_motion_val = "Right";
xin_alphatype_val = "Yes";
Set("aso#49657", "Right");
Set("aso#18320", "Yes");
perc_req_val = 100;
Set("aso#80994", "Yes");
slow_factor_val = 0.59;
init_action_val = "_root.stop();";
play_action_val = "_root.play();";
}
Frame 2
function visitus() {
getURL ("http://jeuxflashs.be/ballofmadness/");
}
function ciel() {
sky.s1._x = sky.s1._x - speed;
sky.s2._x = sky.s2._x - (speed / 2);
}
function looop() {
var _local1 = _root;
if ((_local1.dead == false) & (_local1.dropkey == false)) {
if (Key.isDown(40)) {
ball.ymove = ball.ymove + ball.speed;
if (ball.ymove > 5) {
ball.ymove = ball.ymove * 0.9;
}
}
if (Key.isDown(37)) {
ball.xmove = ball.xmove + ((-ball.speed) * 1.8);
if (ball.xmove > 5) {
ball.xmove = ball.xmove * 0.9;
}
}
if (Key.isDown(39)) {
ball.xmove = ball.xmove + (ball.speed * 1.8);
if (ball.xmove > 5) {
ball.xmove = ball.xmove * 0.9;
}
}
if (Key.isDown(38)) {
ball.ymove = ball.ymove + (-ball.speed);
if (ball.ymove > 5) {
ball.ymove = ball.ymove * 0.9;
}
}
}
}
function ballmover() {
var _local1 = _root;
_root.speedx = _local1.Ball.xmove;
_local1.Ball.xmove = int((_local1.Ball.xmove / 1.01) * 100) / 100;
_local1.Ball.ymove = int((_local1.Ball.ymove / 1.01) * 100) / 100;
}
function moveDownRight() {
var _local1 = _root;
_local1.Ball.xmove = _local1.Ball.xmove + 0.1;
_local1.Ball.ymove = _local1.Ball.ymove + 0.13;
}
function glue() {
var _l1 = _root;
ball.xmove = ball.xmove * 0.6;
ball.ymove = ball.ymove * 0.6;
}
function glisse() {
var _l1 = _root;
ball.xmove = ball.xmove * 1.05;
ball.ymove = ball.ymove * 1.05;
}
function moveDownLeft() {
var _local1 = _root;
_local1.Ball.xmove = _local1.Ball.xmove - 0.1;
_local1.Ball.ymove = _local1.Ball.ymove + 0.13;
}
function moveUpLeft() {
var _local1 = _root;
_local1.Ball.xmove = _local1.Ball.xmove + 0.2;
_local1.Ball.ymove = _local1.Ball.ymove - 0.05;
}
function moveUpminiLeft() {
var _local1 = _root;
_local1.Ball.xmove = _local1.Ball.xmove + 0.1;
_local1.Ball.ymove = _local1.Ball.ymove - 0.1;
}
function ballAway() {
_root.Ball2.play();
_root.Ball.play();
}
function Ball_plouf() {
_root.Ball.gotoAndStop("plouf");
}
function aso#61635() {
Ball["aso#30298"]--;
Ball["aso#36287"]._y = Ball["aso#36287"]._y - (Math.sin(ball["aso#98961"]) * 4);
Ball["aso#98961"] = Ball["aso#98961"] + 0.2;
_root["aso#92972"] = 0;
}
function aso#67624() {
_root.ball_stuck = 0;
_root["aso#92972"] = 0;
}
function vide() {
var _local1 = _root;
if ((ball.xmove < 3) & (ball.xmove > -3)) {
_local1.teste = true;
_local1.ball_stuck = 1;
_local1["aso#92972"] = 1;
} else {
_local1.teste = false;
}
}
function end() {
gotoAndStop (67);
}
function highscore() {
avert.gotoAndplay(2);
}
function Main() {
gotoAndStop (2);
}
score = 0;
soundfx = true;
speed = 3;
_root.dead = false;
_root.dropkey = false;
stop();
_quality = "HIGH";
Instance of Symbol 68 MovieClip "sky" in Frame 2
onClipEvent (enterFrame) {
_root.ciel();
}
Instance of Symbol 68 MovieClip "sky" in Frame 3
onClipEvent (enterFrame) {
_root.ciel();
}
Frame 22
stop();
Frame 23
stop();
_root.pose = false;
_root.win = false;
_root.glissade = false;
_root.Ball.gotoAndPlay("on");
_root.txtlevel = 1;
_root.dead = false;
_root.dropkey = false;
_root.level.moment = getTimer();
_root.level.timer = 0;
_root.Ball.xmove = 0;
_root.Ball.ymove = 0;
score = 0;
Instance of Symbol 68 MovieClip "sky" in Frame 23
onClipEvent (enterFrame) {
_root.ciel();
}
Instance of Symbol 117 MovieClip "Ball2" in Frame 23
onClipEvent (enterFrame) {
this._x = _root.Ball._x;
this._y = _root.Ball._y;
}
Instance of Symbol 120 MovieClip in Frame 23
onClipEvent (enterFrame) {
if (this.hitTest(_root.Ball._x, _root.Ball._y, true)) {
_root.moveDownRight();
_root.aso#67624();
}
}
Instance of Symbol 122 MovieClip in Frame 23
onClipEvent (enterFrame) {
if (this.hitTest(_root.Ball._x, _root.Ball._y, true)) {
_root.aso#67624();
}
}
Instance of Symbol 122 MovieClip in Frame 23
onClipEvent (enterFrame) {
if (this.hitTest(_root.Ball._x, _root.Ball._y, true)) {
_root.aso#67624();
}
}
Instance of Symbol 122 MovieClip in Frame 23
onClipEvent (enterFrame) {
if (this.hitTest(_root.Ball._x, _root.Ball._y, true)) {
_root.aso#67624();
}
}
Instance of Symbol 124 MovieClip in Frame 23
onClipEvent (enterFrame) {
if (this.hitTest(_root.Ball._x, _root.Ball._y, true)) {
_root.aso#67624();
if (_root.pose == false) {
if (this._x < _root.ball._x) {
_root.ball.xmove = _root.ball.xmove - 0.2;
}
if (this._x > _root.ball._x) {
_root.ball.xmove = _root.ball.xmove + 0.2;
}
if ((this._y + 5) < _root.ball._y) {
_root.ball.ymove = _root.ball.ymove - 0.2;
}
if ((this._y + 5) > _root.ball._y) {
_root.ball.ymove = _root.ball.ymove + 0.2;
}
}
}
}
Instance of Symbol 136 MovieClip "reflet" in Frame 23
onClipEvent (enterFrame) {
this._x = _root.ball._x;
this._y = _root.ball._y;
}
Instance of Symbol 166 MovieClip "Ball" in Frame 23
onClipEvent (load) {
_root.ball_stuck = 0;
speed = 0.15;
_root.ball_startx = this._x;
_root.ball_starty = this._y;
}
onClipEvent (enterFrame) {
_root.looop();
if (_root.ball_stuck == 1) {
_root.BallAway();
}
_root.ball_stuck = 1;
this._x = this._x + xmove;
this._y = this._y + ymove;
_root.ballmover();
if (aso#30298 > 0) {
_root.aso#61635();
} else {
Set("aso#98961", 0);
this["aso#36287"]._width = aso#36287["aso#55646"];
this["aso#36287"]._height = aso#36287["aso#86983"];
this["aso#36287"]._x = aso#36287.xpos;
this["aso#36287"]._y = aso#36287.ypos;
}
}
Instance of Symbol 168 MovieClip in Frame 23
onClipEvent (enterFrame) {
if (this.hitTest(_root.Ball._x, _root.Ball._y, true) & (_root.dead == true)) {
_root.Ball._alpha = 0;
_root.Ball2._alpha = 100;
tellTarget ("_root.Ball2") {
play();
};
}
}
Instance of Symbol 197 MovieClip "level" in Frame 23
onClipEvent (enterFrame) {
if (!_root.pose) {
timer = int(60 - ((getTimer() - moment) / 1000));
}
if (timer < 10) {
_root.Ball.tim.gotoAndStop(2);
}
if (timer < 1) {
_root.ball.xmove = 0;
_root.ball.ymove = 0;
_root.dropkey = true;
if (_root.win == false) {
this.gotoAndStop("Lost");
}
timer == 0;
}
}
Instance of Symbol 68 MovieClip "sky" in Frame 24
onClipEvent (enterFrame) {
_root.ciel();
}
Frame 43
stop();
Frame 44
fscommand ("showmenu", "true");
stop();
_root.win = false;
_root.Ball.gotoAndPlay("on");
_root.txtlevel = 2;
_root.dead = false;
_root.dropkey = false;
_root.level.moment = getTimer();
_root.level.timer = 0;
_root.Ball.xmove = 0;
_root.Ball.ymove = 0;
Instance of Symbol 68 MovieClip "sky" in Frame 44
onClipEvent (enterFrame) {
_root.ciel();
}
Instance of Symbol 117 MovieClip "Ball2" in Frame 44
onClipEvent (enterFrame) {
this._x = _root.Ball._x;
this._y = _root.Ball._y;
}
Instance of Symbol 122 MovieClip in Frame 44
onClipEvent (enterFrame) {
if (this.hitTest(_root.Ball._x, _root.Ball._y, true)) {
_root.aso#67624();
}
}
Instance of Symbol 122 MovieClip in Frame 44
onClipEvent (enterFrame) {
if (this.hitTest(_root.Ball._x, _root.Ball._y, true)) {
_root.aso#67624();
}
}
Instance of Symbol 122 MovieClip in Frame 44
onClipEvent (enterFrame) {
if (this.hitTest(_root.Ball._x, _root.Ball._y, true)) {
_root.aso#67624();
}
}
Instance of Symbol 201 MovieClip in Frame 44
onClipEvent (enterFrame) {
if (this.hitTest(_root.Ball._x, _root.Ball._y, true)) {
_root.moveDownRight();
_root.aso#67624();
}
}
Instance of Symbol 203 MovieClip in Frame 44
onClipEvent (enterFrame) {
if (this.hitTest(_root.Ball._x, _root.Ball._y, true)) {
_root.aso#67624();
}
}
Instance of Symbol 205 MovieClip in Frame 44
onClipEvent (enterFrame) {
if (this.hitTest(_root.Ball._x, _root.Ball._y, true)) {
_root.aso#67624();
}
}
Instance of Symbol 207 MovieClip in Frame 44
onClipEvent (enterFrame) {
if (this.hitTest(_root.Ball._x, _root.Ball._y, true)) {
_root.aso#67624();
}
}
Instance of Symbol 209 MovieClip in Frame 44
onClipEvent (enterFrame) {
if (this.hitTest(_root.Ball._x, _root.Ball._y, true)) {
_root.moveUpLeft();
_root.aso#67624();
}
}
Instance of Symbol 211 MovieClip in Frame 44
onClipEvent (enterFrame) {
if (this.hitTest(_root.Ball._x, _root.Ball._y, true)) {
_root.aso#67624();
}
}
Instance of Symbol 217 MovieClip in Frame 44
onClipEvent (load) {
this.trig = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Ball._x, _root.Ball._y, true) & (_root.dead == false)) {
if (this.trig == false) {
this.trig = true;
this.gotoandplay(2);
}
_root.ball_stuck = 0;
_root.ball.xmove = _root.ball.xmove - 1.5;
_root.ball.ymove = _root.ball.ymove + 1;
}
}
Instance of Symbol 219 MovieClip in Frame 44
onClipEvent (enterFrame) {
if (this.hitTest(_root.Ball._x, _root.Ball._y, true) & (_root.dead == true)) {
_root.Ball._alpha = 0;
_root.Ball2._alpha = 100;
tellTarget ("_root.Ball2") {
play();
};
}
}
Instance of Symbol 136 MovieClip "reflet" in Frame 44
onClipEvent (enterFrame) {
this._x = _root.ball._x;
this._y = _root.ball._y;
}
Instance of Symbol 166 MovieClip "Ball" in Frame 44
onClipEvent (load) {
_root.ball_stuck = 0;
speed = 0.15;
_root.ball_startx = this._x;
_root.ball_starty = this._y;
}
onClipEvent (enterFrame) {
_root.looop();
if (_root.ball_stuck == 1) {
_root.BallAway();
}
_root.ball_stuck = 1;
this._x = this._x + xmove;
this._y = this._y + ymove;
_root.ballmover();
if (aso#30298 > 0) {
_root.aso#61635();
} else {
Set("aso#98961", 0);
this["aso#36287"]._width = aso#36287["aso#55646"];
this["aso#36287"]._height = aso#36287["aso#86983"];
this["aso#36287"]._x = aso#36287.xpos;
this["aso#36287"]._y = aso#36287.ypos;
}
}
Instance of Symbol 178 MovieClip "bonus2" in Frame 44
onClipEvent (load) {
this.gotoandplay(random(5));
}
Instance of Symbol 197 MovieClip "level" in Frame 44
onClipEvent (enterFrame) {
if (!_root.pose) {
timer = int(60 - ((getTimer() - moment) / 1000));
}
if (timer < 10) {
_root.Ball.tim.gotoAndStop(2);
}
if (timer < 1) {
_root.ball.xmove = 0;
_root.ball.ymove = 0;
_root.dropkey = true;
if (_root.win == false) {
this.gotoAndStop("Lost");
}
timer == 0;
}
}
Instance of Symbol 68 MovieClip "sky" in Frame 45
onClipEvent (enterFrame) {
_root.ciel();
}
Frame 64
stop();
Frame 65
fscommand ("showmenu", "true");
stop();
_root.win = false;
_root.Ball.gotoAndPlay("on");
_root.txtlevel = 3;
_root.dead = false;
_root.dropkey = false;
_root.level.moment = getTimer();
_root.level.timer = 0;
_root.Ball.xmove = 0;
_root.Ball.ymove = 0;
Instance of Symbol 68 MovieClip "sky" in Frame 65
onClipEvent (enterFrame) {
_root.ciel();
}
Instance of Symbol 117 MovieClip "Ball2" in Frame 65
onClipEvent (enterFrame) {
this._x = _root.ball._x;
this._y = _root.ball._y;
}
Instance of Symbol 122 MovieClip in Frame 65
onClipEvent (enterFrame) {
if (this.hitTest(_root.Ball._x, _root.Ball._y, true)) {
_root.aso#67624();
}
}
Instance of Symbol 201 MovieClip in Frame 65
onClipEvent (enterFrame) {
if (this.hitTest(_root.Ball._x, _root.Ball._y, true)) {
_root.moveDownRight();
_root.aso#67624();
}
}
Instance of Symbol 205 MovieClip in Frame 65
onClipEvent (enterFrame) {
if (this.hitTest(_root.Ball._x, _root.Ball._y, true)) {
_root.aso#67624();
}
}
Instance of Symbol 207 MovieClip in Frame 65
onClipEvent (enterFrame) {
if (this.hitTest(_root.Ball._x, _root.Ball._y, true)) {
_root.aso#67624();
}
}
Instance of Symbol 211 MovieClip in Frame 65
onClipEvent (enterFrame) {
if (this.hitTest(_root.Ball._x, _root.Ball._y, true)) {
_root.aso#67624();
}
}
Instance of Symbol 225 MovieClip in Frame 65
onClipEvent (enterFrame) {
if (this.hitTest(_root.Ball._x, _root.Ball._y, true)) {
_root.aso#67624();
}
}
Instance of Symbol 227 MovieClip in Frame 65
onClipEvent (enterFrame) {
if (this.hitTest(_root.Ball._x, _root.Ball._y, true)) {
_root.moveDownRight();
_root.aso#67624();
}
}
Instance of Symbol 229 MovieClip in Frame 65
onClipEvent (enterFrame) {
if (this.hitTest(_root.Ball._x, _root.Ball._y, true)) {
_root.aso#67624();
}
}
Instance of Symbol 201 MovieClip in Frame 65
onClipEvent (enterFrame) {
if (this.hitTest(_root.Ball._x, _root.Ball._y, true)) {
_root.moveDownLeft();
_root.aso#67624();
}
}
Instance of Symbol 207 MovieClip in Frame 65
onClipEvent (enterFrame) {
if (this.hitTest(_root.Ball._x, _root.Ball._y, true)) {
_root.aso#67624();
}
}
Instance of Symbol 207 MovieClip in Frame 65
onClipEvent (enterFrame) {
if (this.hitTest(_root.Ball._x, _root.Ball._y, true)) {
_root.aso#67624();
}
}
Instance of Symbol 217 MovieClip in Frame 65
onClipEvent (load) {
this.trig = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Ball._x, _root.Ball._y, true) & (_root.dead == false)) {
if (this.trig == false) {
this.trig = true;
this.gotoandplay(2);
}
_root.ball_stuck = 0;
_root.ball.xmove = _root.ball.xmove + 1.5;
_root.ball.ymove = _root.ball.ymove + 1;
}
}
Instance of Symbol 238 MovieClip in Frame 65
onClipEvent (enterFrame) {
if (this.hitTest(_root.Ball._x, _root.Ball._y, true) & (_root.dead == true)) {
_root.Ball._alpha = 0;
_root.Ball2._alpha = 100;
tellTarget ("_root.Ball2") {
play();
};
}
}
Instance of Symbol 136 MovieClip "reflet" in Frame 65
onClipEvent (enterFrame) {
this._x = _root.ball._x;
this._y = _root.ball._y;
}
Instance of Symbol 166 MovieClip "Ball" in Frame 65
onClipEvent (load) {
_root.ball_stuck = 0;
speed = 0.15;
_root.ball_startx = this._x;
_root.ball_starty = this._y;
}
onClipEvent (enterFrame) {
_root.looop();
if (_root.ball_stuck == 1) {
_root.BallAway();
}
_root.ball_stuck = 1;
this._x = this._x + xmove;
this._y = this._y + ymove;
_root.ballmover();
if (aso#30298 > 0) {
_root.aso#61635();
} else {
Set("aso#98961", 0);
this["aso#36287"]._width = aso#36287["aso#55646"];
this["aso#36287"]._height = aso#36287["aso#86983"];
this["aso#36287"]._x = aso#36287.xpos;
this["aso#36287"]._y = aso#36287.ypos;
}
}
Instance of Symbol 178 MovieClip "bonus2" in Frame 65
onClipEvent (load) {
this.gotoandplay(random(5));
}
Instance of Symbol 197 MovieClip "level" in Frame 65
onClipEvent (enterFrame) {
if (!_root.pose) {
timer = int(60 - ((getTimer() - moment) / 1000));
}
if (timer < 10) {
_root.Ball.tim.gotoAndStop(2);
}
if (timer < 1) {
_root.ball.xmove = 0;
_root.ball.ymove = 0;
_root.dropkey = true;
if (_root.win == false) {
this.gotoAndStop("Lost");
}
timer == 0;
}
}
Frame 66
stopAllSounds();
stop();
Frame 67
stopAllSounds();
stop();
Symbol 5 MovieClip [boden3] Frame 1
Set("aso#12331", 10);
ballfallfac = 1;
toclimbro = 4;
toclimblu = 4;
toclimbru = 4;
toclimblo = 4;
Instance of Symbol 57 MovieClip [Blank] in Symbol 60 MovieClip [Light] Frame 1
onClipEvent (enterFrame) {
_parent.aso#43668();
}
Instance of Symbol 64 MovieClip "s2" in Symbol 68 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._x < -512) {
this._x = 0;
}
if (this._x > 0) {
this._x = -512;
}
}
Instance of Symbol 67 MovieClip "s1" in Symbol 68 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._x < -512) {
this._x = 0;
}
if (this._x > 0) {
this._x = -512;
}
}
Symbol 80 MovieClip Frame 1
stop();
Instance of Symbol 79 MovieClip "swfloader" in Symbol 80 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 aso#24309(action, timeline) {
action = strip_spaces(action);
if ((action.length > 0) && ((action.indexOf(")") != -1) && (action.indexOf("(") != -1))) {
var _local3 = action.split(".");
var timeline_action = _local3.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 _local2 = timeline;
var _local1 = 0;
while (_local1 < _local3.length) {
_local2 = _local2[_local3[_local1]];
_local1++;
}
if (function_parameter.indexOf("\"") != -1) {
function_parameter = function_parameter.substr(1, function_parameter.length - 2);
}
_local2[timeline_function](function_parameter);
}
}
function execute_action() {
var _local1 = _parent;
unloaded = true;
_local1._visible = false;
aso#24309(_local1.play_action_val, _local1);
}
_parent.anim.gotoAndStop(1);
aso#24309(_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 = 0.75;
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["aso#80994"] == "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["aso#49657"]) {
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["aso#18320"] === "Yes")) {
} else {
_parent._alpha = (orig_a / 100) * (100 - perc_fadeout);
}
} else {
execute_action();
}
}
Symbol 84 MovieClip Frame 1
function pixel(x, y, z) {
var _local1 = this;
_local1.x = x;
_local1.y = y;
_local1.z = z;
}
MAXSTARS = 15;
LAYERS = 2;
field = new Array(MAXSTARS);
i = 0;
while (i < MAXSTARS) {
field[i] = new pixel(random(420), random(420), random(LAYERS) + 1);
duplicateMovieClip ("pixel", "pixel_" add i, i + 10);
i++;
}
Symbol 84 MovieClip Frame 2
i = 0;
while (i < MAXSTARS) {
field[i].x = field[i].x + field[i].z;
if (field[i].x > 550) {
field[i].x = 0;
}
i++;
}
i = 0;
while (i < MAXSTARS) {
setProperty("pixel_" add i, _x , field[i].x);
setProperty("pixel_" add i, _y , field[i].y);
i++;
}
Symbol 84 MovieClip Frame 3
gotoAndPlay(_currentframe - 1);
Symbol 90 Button
on (press) {
stopAllSounds();
play();
}
Symbol 93 Button
on (press) {
visitus();
}
Symbol 96 Button
on (press) {
highscore();
}
Symbol 102 MovieClip Frame 1
stop();
Symbol 113 Button
on (press) {
stopAllSounds();
play();
}
Symbol 117 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 1
stop();
Instance of Symbol 126 MovieClip "hit" in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.Ball._x, _root.Ball._y, true) & (_root.dead == false)) {
_root.level.gotoAndPlay("next");
_root.aso#67624();
_root.ball._visible = 0;
_root.reflet._visible = 0;
_root.ball2._visible = 0;
_parent.gotoandPlay(2);
}
}
Symbol 132 MovieClip Frame 2
_root.dropkey = true;
_root.dead = true;
_root.win = true;
_root.ball.xmove = 0;
_root.ball.ymove = 0;
Symbol 132 MovieClip Frame 20
stop();
Symbol 136 MovieClip Frame 1
stop();
Instance of Symbol 140 MovieClip in Symbol 141 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.timer > 0) {
this.timer = _root.level.timer;
}
}
Symbol 143 MovieClip Frame 39
stop();
Symbol 144 MovieClip Frame 1
stop();
Symbol 144 MovieClip Frame 2
stop();
Symbol 146 MovieClip Frame 24
_parent.gotoandStop(1);
Symbol 163 MovieClip Frame 15
stop();
Symbol 164 MovieClip Frame 1
_root.ball2._x = _root.ball._x;
_root.ball2._y = _root.ball._y;
_root.reflet._visible = 0;
_root.dead = true;
_root.dropkey = true;
_root.glub = false;
Symbol 164 MovieClip Frame 4
_root.glub = true;
_parent.xmove = 0;
_parent.ymove = 0;
Symbol 164 MovieClip Frame 30
_root.dropkey = false;
_root.dead = false;
_parent._x = _root.Ball_startx;
_parent._y = _root.Ball_starty;
_root.Ball2._alpha = 0;
_root.ball2._x = 900;
_root.reflet._visible = 1;
_root.reflet.gotoAndplay("on");
_root.Ball.gotoAndplay("on");
_root.Ball._alpha = 100;
_parent.xmove = 0;
_parent.ymove = 0;
Symbol 166 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 2
_root.dead = true;
_root.dropkey = true;
this.xmove = 0;
this.ymove = 0;
_root.Ball2._x = _root.Ball._x;
_root.Ball2._y = _root.Ball._y;
_root.reflet._visible = 0;
Symbol 166 MovieClip Frame 30
_root.dead = false;
_root.dropkey = false;
this._x = _root.Ball_startx;
this._y = _root.Ball_starty;
this.xmove = 0;
this.ymove = 0;
_root.Ball2._alpha = 0;
_root.Ball2._x = 900;
_root.Ball.gotoAndplay("on");
_root.reflet.gotoAndplay("on");
_root.reflet._visible = 1;
_root.Ball._alpha = 100;
Symbol 166 MovieClip Frame 45
gotoAndStop (1);
Symbol 166 MovieClip Frame 46
stop();
Symbol 178 MovieClip Frame 1
stop();
score = 10;
Instance of Symbol 170 MovieClip in Symbol 178 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.Ball._x, _root.Ball._y, true) & (_root.dead == false)) {
_parent.gotoAndPlay("on");
}
}
Symbol 178 MovieClip Frame 2
stop();
score = 20;
Symbol 178 MovieClip Frame 3
stop();
score = 30;
Symbol 178 MovieClip Frame 4
stop();
score = 40;
Symbol 178 MovieClip Frame 5
stop();
score = 50;
Symbol 178 MovieClip Frame 37
stop();
Symbol 178 MovieClip Frame 39
_root.score = _root.score + score;
fx.score = score;
Symbol 178 MovieClip Frame 74
stop();
Symbol 187 MovieClip Frame 15
stop();
Symbol 188 MovieClip Frame 1
i = 2;
while (Number(i) < 30) {
duplicateMovieClip ("isk1", "isk" add i, i);
setProperty("isk" add i, _rotation , random(360));
scalefactor = 40 + Number(random(60));
setProperty("isk" add i, _xscale , scalefactor);
setProperty("isk" add i, _yscale , scalefactor);
i = Number(i) + 1;
}
Symbol 190 MovieClip Frame 15
stop();
Symbol 191 MovieClip Frame 1
i = 2;
while (Number(i) < 30) {
duplicateMovieClip ("isk1", "isk" add i, i);
setProperty("isk" add i, _rotation , random(360));
scalefactor = 40 + Number(random(60));
setProperty("isk" add i, _xscale , scalefactor);
setProperty("isk" add i, _yscale , scalefactor);
i = Number(i) + 1;
}
Symbol 196 MovieClip Frame 69
stopAllSounds();
_root.end();
Symbol 197 MovieClip Frame 1
stop();
Symbol 197 MovieClip Frame 15
_root.dead = true;
stopAllSounds();
_root.Ball.xmove = 0;
_root.Ball.ymove = 0;
_root.score = _root.score + timer;
Symbol 197 MovieClip Frame 75
_root.dead = false;
_root.play();
Symbol 197 MovieClip Frame 77
stop();
Symbol 217 MovieClip Frame 1
stop();
Symbol 217 MovieClip Frame 16
trig = false;
Symbol 236 MovieClip Frame 1
function carre_hit() {
var _local1 = _root;
_local1.dropkey = true;
_local1.Ball.ymove = -_local1.Ball.ymove;
_local1.Ball.ymove = _local1.Ball.ymove / 2;
_local1.Ball.xmove = _local1.Ball.xmove / 2;
}
stop();
Instance of Symbol 231 MovieClip "carre" in Symbol 236 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.Ball["aso#36287"]) & (_root.dead == false)) {
_parent.carre_hit();
_parent.gotoandplay("bump");
}
}
Symbol 236 MovieClip Frame 8
_root.dropkey = false;
Symbol 252 Button
on (press) {
Main();
}
Symbol 256 MovieClip Frame 10
stop();