Frame 1
ifFrameLoaded (9) {
gotoAndStop (3);
}
Frame 2
gotoAndPlay (1);
Frame 3
setProperty("Ball", _x , 200);
setProperty("Ball", _y , -50);
Mouse.show();
stop();
Frame 4
rightmax = "500";
bottommax = "330";
topmax = "-2000";
leftmax = "0";
current_scale = "100";
scale_modifier = "5";
setProperty("ball", _xscale , current_scale);
setProperty("ball", _yscale , current_scale);
obj1_radius = getProperty("ball", _width) / 2;
obj1_origwidth = getProperty("ball", _width);
obj1_origheight = getProperty("ball", _height);
setProperty("ball", _x , 0);
setProperty("ball", _y , 0);
grav_amount = "2";
speed_modifier = "3";
max_dist = "5";
x_dir = 5;
y_dir = 5;
startDrag ("tik", true, 10, 150, 490, 340);
setProperty("cartel", _visible , 0);
setProperty("cartel_w", _visible , 0);
Set("/:count", 0);
tik_toco = false;
conteo = 0;
no_dejar_caer = true;
stabilizar = false;
Frame 5
obj1_x = getProperty("ball", _x);
obj1_y = getProperty("ball", _y);
if ((315 < obj1_y) && (int(obj1Ant_x) == int(obj1_x))) {
conteo++;
if (5 < conteo) {
estabilizar = true;
} else {
estabilizar = false;
}
}
if (estabilizar) {
x_dir = 0;
y_dir = 0;
} else {
Limit = 1 + Number(grav_amount / 10);
y_dir = Number(y_dir) + Limit;
}
obj1Ant_y = getProperty("ball", _y);
obj1Ant_x = getProperty("ball", _x);
setProperty("ball", _x , Number(obj1_x) + Number(x_dir));
setProperty("ball", _y , Number(obj1_y) + Number(y_dir));
obj1_x = getProperty("ball", _x);
obj1_y = getProperty("ball", _y);
if (Number(obj1_x) < Number(Number(leftmax) + Number(obj1_radius))) {
amount_over = Number(leftmax - obj1_x) + Number(obj1_radius * 2);
setProperty("ball", _x , amount_over);
x_dir = x_dir * -1;
} else if (Number(rightmax - obj1_radius) < Number(obj1_x)) {
amount_over = Number(obj1_x - rightmax) + Number(obj1_radius * 2);
setProperty("ball", _x , rightmax - amount_over);
x_dir = x_dir * -1;
}
if (Number(obj1_y) < Number(Number(topmax) + Number(obj1_radius))) {
amount_over = Number(topmax - obj1_y) + Number(obj1_radius * 2);
setProperty("ball", _y , amount_over);
y_dir = y_dir * -1;
} else if (Number(bottommax - obj1_radius) < Number(obj1_y)) {
amount_over = Number(obj1_y - bottommax) + Number(obj1_radius * 2);
setProperty("ball", _y , bottommax - amount_over);
y_dir = y_dir * -1;
y_dir = y_dir * (1 - (grav_amount / 10));
x_dir = x_dir * (1 - (grav_amount / 10));
}
tik_x = getProperty("tik", _x);
tik_y = getProperty("tik", _y);
if (_root.tik.pie.hitTest(_root.ball) && (no_dejar_caer)) {
if ((tik_x != tikAnt_x) || (tik_y != tikAnt_y)) {
estabilizar = false;
conteo = 0;
tik_toco = true;
tellTarget ("tik") {
gotoAndPlay ("pie");
};
voltear_bola_p = 0;
} else {
voltear_bola_p++;
}
y_dir = (tik_y - tikAnt_y) - 5;
x_dir = tik_x - tikAnt_x;
} else if (_root.tik.ore.hitTest(_root.ball) && (no_dejar_caer)) {
if ((tik_x != tikAnt_x) || (tik_y != tikAnt_y)) {
estabilizar = false;
conteo = 0;
tellTarget ("tik") {
gotoAndPlay ("otros");
};
tik_toco = true;
voltear_bola_o = 0;
} else {
voltear_bola_o++;
}
y_dir = (tik_y - tikAnt_y) - 5;
x_dir = tik_x - tikAnt_x;
} else if (_root.tik.rod.hitTest(_root.ball) && (no_dejar_caer)) {
if ((tik_x != tikAnt_x) || (tik_y != tikAnt_y)) {
estabilizar = false;
conteo = 0;
tellTarget ("tik") {
gotoAndPlay ("otros");
};
tik_toco = true;
voltear_bola_r = 0;
} else {
voltear_bola_r++;
}
y_dir = (tik_y - tikAnt_y) - 5;
x_dir = tik_x - tikAnt_x;
}
if (tik_toco) {
setProperty("cartel", _visible , 0);
setProperty("cartel_w", _visible , 0);
}
if (estabilizar) {
no_dejar_caer = true;
}
if ((315 < obj1_y) && (tik_toco)) {
if (/:best < /:count) {
Set("/:best", /:count);
Set("cartel_w:count2", /:count);
setProperty("cartel_w", _visible , 100);
} else {
Set("cartel:count2", /:count);
setProperty("cartel", _visible , 100);
}
tik_toco = false;
Set("/:count", 0);
}
if (((5 < voltear_bola_p) || (5 < voltear_bola_o)) || (5 < voltear_bola_r)) {
no_dejar_caer = false;
voltear_bola_p = 0;
voltear_bola_o = 0;
voltear_bola_r = 0;
}
tikAnt_x = getProperty("tik", _x);
tikAnt_y = getProperty("tik", _y);
Frame 6
gotoAndPlay (5);
Frame 7
rightmax = "500";
bottommax = "330";
topmax = "-2000";
leftmax = "0";
current_scale = "100";
scale_modifier = "5";
setProperty("ball", _xscale , current_scale);
setProperty("ball", _yscale , current_scale);
obj1_radius = getProperty("ball", _width) / 2;
obj1_origwidth = getProperty("ball", _width);
obj1_origheight = getProperty("ball", _height);
setProperty("ball", _x , 0);
setProperty("ball", _y , 0);
grav_amount = "2";
speed_modifier = "3";
max_dist = "5";
x_dir = 5;
y_dir = 5;
startDrag ("tik", true, 10, 150, 490, 340);
setProperty("cartel", _visible , 0);
setProperty("cartel_w", _visible , 0);
Set("/:count", 0);
tik_toco = false;
conteo = 0;
no_dejar_caer = true;
estabilizar = false;
Frame 8
obj1_x = getProperty("ball", _x);
obj1_y = getProperty("ball", _y);
if ((315 < obj1_y) && (int(obj1Ant_x) == int(obj1_x))) {
conteo++;
if (5 < conteo) {
estabilizar = true;
} else {
estabilizar = false;
}
}
if (estabilizar) {
x_dir = 0;
y_dir = 0;
} else {
Limit = 1 + Number(grav_amount / 10);
y_dir = Number(y_dir) + Limit;
}
obj1Ant_y = getProperty("ball", _y);
obj1Ant_x = getProperty("ball", _x);
setProperty("ball", _x , Number(obj1_x) + Number(x_dir));
setProperty("ball", _y , Number(obj1_y) + Number(y_dir));
obj1_x = getProperty("ball", _x);
obj1_y = getProperty("ball", _y);
if (Number(obj1_x) < Number(Number(leftmax) + Number(obj1_radius))) {
amount_over = Number(leftmax - obj1_x) + Number(obj1_radius * 2);
setProperty("ball", _x , amount_over);
x_dir = x_dir * -1;
} else if (Number(rightmax - obj1_radius) < Number(obj1_x)) {
amount_over = Number(obj1_x - rightmax) + Number(obj1_radius * 2);
setProperty("ball", _x , rightmax - amount_over);
x_dir = x_dir * -1;
}
if (Number(obj1_y) < Number(Number(topmax) + Number(obj1_radius))) {
amount_over = Number(topmax - obj1_y) + Number(obj1_radius * 2);
setProperty("ball", _y , amount_over);
y_dir = y_dir * -1;
} else if (Number(bottommax - obj1_radius) < Number(obj1_y)) {
amount_over = Number(obj1_y - bottommax) + Number(obj1_radius * 2);
setProperty("ball", _y , bottommax - amount_over);
y_dir = y_dir * -1;
y_dir = y_dir * (1 - (grav_amount / 10));
x_dir = x_dir * (1 - (grav_amount / 10));
}
tik_x = getProperty("tik", _x);
tik_y = getProperty("tik", _y);
if (_root.tik.pie.hitTest(_root.ball) && (no_dejar_caer)) {
if ((tik_x != tikAnt_x) || (tik_y != tikAnt_y)) {
estabilizar = false;
conteo = 0;
tik_toco = true;
tellTarget ("tik") {
gotoAndPlay ("pie");
};
voltear_bola_p = 0;
} else {
voltear_bola_p++;
}
y_dir = (tik_y - tikAnt_y) - 5;
x_dir = tik_x - tikAnt_x;
} else if (_root.tik.ore.hitTest(_root.ball) && (no_dejar_caer)) {
if ((tik_x != tikAnt_x) || (tik_y != tikAnt_y)) {
estabilizar = false;
conteo = 0;
tellTarget ("tik") {
gotoAndPlay ("otros");
};
tik_toco = true;
voltear_bola_o = 0;
} else {
voltear_bola_o++;
}
y_dir = (tik_y - tikAnt_y) - 5;
x_dir = tik_x - tikAnt_x;
} else if (_root.tik.rod.hitTest(_root.ball) && (no_dejar_caer)) {
if ((tik_x != tikAnt_x) || (tik_y != tikAnt_y)) {
estabilizar = false;
conteo = 0;
tellTarget ("tik") {
gotoAndPlay ("otros");
};
tik_toco = true;
voltear_bola_r = 0;
} else {
voltear_bola_r++;
}
y_dir = (tik_y - tikAnt_y) - 5;
x_dir = tik_x - tikAnt_x;
}
if (tik_toco) {
setProperty("cartel", _visible , 0);
setProperty("cartel_w", _visible , 0);
}
if (estabilizar) {
no_dejar_caer = true;
}
if ((315 < obj1_y) && (tik_toco)) {
if (/:best < /:count) {
Set("/:best", /:count);
Set("cartel_w:count2", /:count);
setProperty("cartel_w", _visible , 100);
} else {
Set("cartel:count2", /:count);
setProperty("cartel", _visible , 100);
}
tik_toco = false;
Set("/:count", 0);
}
if (((5 < voltear_bola_p) || (5 < voltear_bola_o)) || (5 < voltear_bola_r)) {
no_dejar_caer = false;
voltear_bola_p = 0;
voltear_bola_o = 0;
voltear_bola_r = 0;
}
tikAnt_x = getProperty("tik", _x);
tikAnt_y = getProperty("tik", _y);
Frame 9
gotoAndPlay (8);
Symbol 25 MovieClip Frame 20
gotoAndPlay (1);
Symbol 27 Button
on (press) {
gotoAndPlay (4);
}
Symbol 40 Button
on (press) {
gotoAndPlay (7);
}
Symbol 53 Button
on (release) {
gotoAndStop (3);
}
on (rollOver) {
Mouse.show();
}
on (rollOut) {
Mouse.hide();
}
Symbol 59 MovieClip Frame 1
stop();
Mouse.hide();
Symbol 59 MovieClip Frame 8
Set("/:count", /:count + 1);
Symbol 59 MovieClip Frame 12
gotoAndStop (1);
Symbol 59 MovieClip Frame 18
Set("/:count", /:count + 1);
Symbol 59 MovieClip Frame 22
gotoAndStop (1);
Symbol 62 Button
on (press) {
startDrag ("/Ball");
}
on (release) {
stopDrag();
}
Symbol 63 MovieClip Frame 1
stop();
Symbol 63 MovieClip Frame 18
gotoAndPlay (1);
Symbol 79 MovieClip Frame 1
stop();
Mouse.hide();
Symbol 79 MovieClip Frame 8
Set("/:count", /:count + 1);
Symbol 79 MovieClip Frame 12
gotoAndStop (1);
Symbol 79 MovieClip Frame 18
Set("/:count", /:count + 1);
Symbol 79 MovieClip Frame 22
gotoAndStop (1);