Frame 1
function goTo() {
getURL ("http://www.gaming-box.com");
}
_root.timed = false;
stop();
var newMenu = new ContextMenu();
newMenu.hideBuiltInItems();
newMenu.customItems.push(new ContextMenuItem("Gaming-Box.com - Play More Games", goTo));
this.menu = newMenu;
Frame 2
stop();
Frame 3
stop();
_root.head = "Menu";
_root.body = "Welcome to the menu";
Frame 4
stop();
_root.head = "Menu";
_root.body = "Welcome to the menu";
depthHolder = 0;
Frame 5
nextFrame();
Frame 6
nextFrame();
_root.paused = true;
Frame 7
function tile(type, who) {
_root.depthHolder++;
var _local2 = type + _root.depthHolder;
_root.terrain.attachMovie(type, _local2, _root.depthHolder);
point = new Object();
point.x = _root._xmouse;
point.y = _root._ymouse;
terrain.globalToLocal(point);
_root.terrain[_local2]._x = point.x;
_root.terrain[_local2]._y = point.y;
_root.selectedObject = terrain[_local2];
}
stop();
go = false;
Instance of Symbol 171 MovieClip in Frame 7
onClipEvent (load) {
function move(where) {
if (where == "down") {
_y = (startY + 50);
vis = false;
}
if (where == "up") {
_y = startY;
vis = true;
}
}
startY = _y;
vis = true;
done = false;
checkItem();
}
onClipEvent (enterFrame) {
if (!done) {
checkItem();
}
}
onClipEvent (load) {
doubleclickDuration = 300;
lastClick = 0;
x = _x;
y = _y;
}
onClipEvent (mouseUp) {
if (drag) {
if (vis) {
drag = false;
_alpha = 100;
_x = x;
_y = y;
}
_root.tile("straight", this);
}
}
on (press) {
if (_visible) {
drag = true;
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (lastClick > 0) {
if ((getTimer() - lastClick) > doubleclickDuration) {
lastClick = 0;
}
}
if (drag) {
_alpha = 50;
_x = (_root._xmouse - _parent._x);
_y = (_root._ymouse - _parent._y);
}
}
}
Instance of Symbol 173 MovieClip "ball2" in Frame 7
onClipEvent (load) {
yspeed = 0;
xspeed = 0;
gravity = 0.2;
radius = 5;
friction = 0.9;
precision = 360;
bounces = 0;
}
onClipEvent (enterFrame) {
if (_root.go == true) {
collisions = 0;
sum_x = 0;
sum_y = 0;
yspeed = yspeed + gravity;
x = 1;
while (x < precision) {
spot_x = _x + (radius * Math.sin((x * 360) / precision));
spot_y = _y - (radius * Math.cos((x * 360) / precision));
if (_root.terrain.hitTest(spot_x, spot_y, true)) {
collisions++;
sum_x = sum_x + spot_x;
sum_y = sum_y + spot_y;
}
x++;
}
if (collisions > 0) {
_root.last_hit._x = old_x;
_root.last_hit._y = old_y;
bounces++;
_root.collisions.text = "Bounces: " + bounces;
ball_dir = Math.atan(yspeed / (xspeed * -1)) / (Math.PI/180);
if ((xspeed * -1) < 0) {
ball_dir = ball_dir + 180;
}
if (((xspeed * -1) >= 0) && (yspeed < 0)) {
ball_dir = ball_dir + 360;
}
spot_x = sum_x / collisions;
spot_y = sum_y / collisions;
x_cat = spot_x - _x;
y_cat = spot_y - _y;
ball_coll = Math.atan(y_cat / x_cat) / (Math.PI/180);
if (x_cat < 0) {
ball_coll = ball_coll + 180;
}
if ((x_cat >= 0) && (y_cat < 0)) {
ball_coll = ball_coll + 360;
}
ground_rotation = ball_coll - 90;
if (ground_rotation < 0) {
ground_rotation = ground_rotation + 180;
}
bounce_angle = (180 - ball_dir) - (2 * ground_rotation);
if (bounce_angle < 0) {
bounce_angle = bounce_angle + 360;
}
speed = Math.sqrt((yspeed * yspeed) + (xspeed * xspeed));
xspeed = (speed * Math.cos((bounce_angle * Math.PI) / 180)) * friction;
yspeed = ((speed * Math.sin((bounce_angle * Math.PI) / 180)) * -1) * friction;
_x = old_x;
_y = old_y;
} else {
old_x = _x;
old_y = _y;
}
_y = (_y + yspeed);
_x = (_x + xspeed);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.key)) {
_root.key.nextFrame();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.portal.portal2)) {
_root.nextFrame();
}
}
Frame 8
nextFrame();
Frame 9
nextFrame();
_root.paused = true;
go = false;
_root.mode = "none";
_root.go = false;
Frame 10
function tile(type, who) {
_root.depthHolder++;
var _local2 = type + _root.depthHolder;
_root.terrain.attachMovie(type, _local2, _root.depthHolder);
point = new Object();
point.x = _root._xmouse;
point.y = _root._ymouse;
terrain.globalToLocal(point);
_root.terrain[_local2]._x = point.x;
_root.terrain[_local2]._y = point.y;
_root.selectedObject = terrain[_local2];
}
stop();
go = false;
Instance of Symbol 173 MovieClip "ball" in Frame 10
onClipEvent (load) {
yspeed = 0;
xspeed = 0;
gravity = 0.2;
radius = 5;
friction = 0.9;
precision = 360;
bounces = 0;
}
onClipEvent (enterFrame) {
if (_root.go == true) {
collisions = 0;
sum_x = 0;
sum_y = 0;
yspeed = yspeed + gravity;
x = 1;
while (x < precision) {
spot_x = _x + (radius * Math.sin((x * 360) / precision));
spot_y = _y - (radius * Math.cos((x * 360) / precision));
if (_root.terrain.hitTest(spot_x, spot_y, true)) {
collisions++;
sum_x = sum_x + spot_x;
sum_y = sum_y + spot_y;
}
x++;
}
if (collisions > 0) {
_root.last_hit._x = old_x;
_root.last_hit._y = old_y;
bounces++;
_root.collisions.text = "Bounces: " + bounces;
ball_dir = Math.atan(yspeed / (xspeed * -1)) / (Math.PI/180);
if ((xspeed * -1) < 0) {
ball_dir = ball_dir + 180;
}
if (((xspeed * -1) >= 0) && (yspeed < 0)) {
ball_dir = ball_dir + 360;
}
spot_x = sum_x / collisions;
spot_y = sum_y / collisions;
x_cat = spot_x - _x;
y_cat = spot_y - _y;
ball_coll = Math.atan(y_cat / x_cat) / (Math.PI/180);
if (x_cat < 0) {
ball_coll = ball_coll + 180;
}
if ((x_cat >= 0) && (y_cat < 0)) {
ball_coll = ball_coll + 360;
}
ground_rotation = ball_coll - 90;
if (ground_rotation < 0) {
ground_rotation = ground_rotation + 180;
}
bounce_angle = (180 - ball_dir) - (2 * ground_rotation);
if (bounce_angle < 0) {
bounce_angle = bounce_angle + 360;
}
speed = Math.sqrt((yspeed * yspeed) + (xspeed * xspeed));
xspeed = (speed * Math.cos((bounce_angle * Math.PI) / 180)) * friction;
yspeed = ((speed * Math.sin((bounce_angle * Math.PI) / 180)) * -1) * friction;
_x = old_x;
_y = old_y;
} else {
old_x = _x;
old_y = _y;
}
_y = (_y + yspeed);
_x = (_x + xspeed);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.key)) {
_root.key.nextFrame();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.portal.portal2)) {
_root.nextFrame();
}
}
Instance of Symbol 171 MovieClip in Frame 10
onClipEvent (load) {
function move(where) {
if (where == "down") {
_y = (startY + 50);
vis = false;
}
if (where == "up") {
_y = startY;
vis = true;
}
}
startY = _y;
vis = true;
done = false;
checkItem();
}
onClipEvent (enterFrame) {
if (!done) {
checkItem();
}
}
onClipEvent (load) {
doubleclickDuration = 300;
lastClick = 0;
x = _x;
y = _y;
}
onClipEvent (mouseUp) {
if (drag) {
if (vis) {
drag = false;
_alpha = 100;
_x = x;
_y = y;
}
_root.tile("straight", this);
}
}
on (press) {
if (_visible) {
drag = true;
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (lastClick > 0) {
if ((getTimer() - lastClick) > doubleclickDuration) {
lastClick = 0;
}
}
if (drag) {
_alpha = 50;
_x = (_root._xmouse - _parent._x);
_y = (_root._ymouse - _parent._y);
}
}
}
Frame 11
nextFrame();
_root.paused = true;
_root.paused = true;
_root.paused2 = true;
Frame 12
nextFrame();
_root.paused = true;
go = false;
_root.mode = "none";
_root.go = false;
Frame 13
function tile(type, who) {
_root.depthHolder++;
var _local2 = type + _root.depthHolder;
_root.terrain.attachMovie(type, _local2, _root.depthHolder);
point = new Object();
point.x = _root._xmouse;
point.y = _root._ymouse;
terrain.globalToLocal(point);
_root.terrain[_local2]._x = point.x;
_root.terrain[_local2]._y = point.y;
_root.selectedObject = terrain[_local2];
}
stop();
go = false;
Instance of Symbol 173 MovieClip "ball" in Frame 13
onClipEvent (load) {
yspeed = 0;
xspeed = 0;
gravity = 0.2;
radius = 5;
friction = 0.9;
precision = 360;
bounces = 0;
}
onClipEvent (enterFrame) {
if (_root.go == true) {
collisions = 0;
sum_x = 0;
sum_y = 0;
yspeed = yspeed + gravity;
x = 1;
while (x < precision) {
spot_x = _x + (radius * Math.sin((x * 360) / precision));
spot_y = _y - (radius * Math.cos((x * 360) / precision));
if (_root.terrain.hitTest(spot_x, spot_y, true)) {
collisions++;
sum_x = sum_x + spot_x;
sum_y = sum_y + spot_y;
}
x++;
}
if (collisions > 0) {
_root.last_hit._x = old_x;
_root.last_hit._y = old_y;
bounces++;
_root.collisions.text = "Bounces: " + bounces;
ball_dir = Math.atan(yspeed / (xspeed * -1)) / (Math.PI/180);
if ((xspeed * -1) < 0) {
ball_dir = ball_dir + 180;
}
if (((xspeed * -1) >= 0) && (yspeed < 0)) {
ball_dir = ball_dir + 360;
}
spot_x = sum_x / collisions;
spot_y = sum_y / collisions;
x_cat = spot_x - _x;
y_cat = spot_y - _y;
ball_coll = Math.atan(y_cat / x_cat) / (Math.PI/180);
if (x_cat < 0) {
ball_coll = ball_coll + 180;
}
if ((x_cat >= 0) && (y_cat < 0)) {
ball_coll = ball_coll + 360;
}
ground_rotation = ball_coll - 90;
if (ground_rotation < 0) {
ground_rotation = ground_rotation + 180;
}
bounce_angle = (180 - ball_dir) - (2 * ground_rotation);
if (bounce_angle < 0) {
bounce_angle = bounce_angle + 360;
}
speed = Math.sqrt((yspeed * yspeed) + (xspeed * xspeed));
xspeed = (speed * Math.cos((bounce_angle * Math.PI) / 180)) * friction;
yspeed = ((speed * Math.sin((bounce_angle * Math.PI) / 180)) * -1) * friction;
_x = old_x;
_y = old_y;
} else {
old_x = _x;
old_y = _y;
}
_y = (_y + yspeed);
_x = (_x + xspeed);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.key)) {
_root.key.nextFrame();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.portal.portal2)) {
_root.nextFrame();
}
}
Instance of Symbol 171 MovieClip in Frame 13
onClipEvent (load) {
function move(where) {
if (where == "down") {
_y = (startY + 50);
vis = false;
}
if (where == "up") {
_y = startY;
vis = true;
}
}
startY = _y;
vis = true;
done = false;
checkItem();
}
onClipEvent (enterFrame) {
if (!done) {
checkItem();
}
}
onClipEvent (load) {
doubleclickDuration = 300;
lastClick = 0;
x = _x;
y = _y;
}
onClipEvent (mouseUp) {
if (drag) {
if (vis) {
drag = false;
_alpha = 100;
_x = x;
_y = y;
}
_root.tile("straight", this);
}
}
on (press) {
if (_visible) {
drag = true;
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (lastClick > 0) {
if ((getTimer() - lastClick) > doubleclickDuration) {
lastClick = 0;
}
}
if (drag) {
_alpha = 50;
_x = (_root._xmouse - _parent._x);
_y = (_root._ymouse - _parent._y);
}
}
}
Frame 14
nextFrame();
_root.paused = true;
_root.paused = true;
_root.paused2 = true;
Frame 15
nextFrame();
_root.paused = true;
go = false;
_root.mode = "none";
_root.go = false;
Frame 16
function tile(type, who) {
_root.depthHolder++;
var _local2 = type + _root.depthHolder;
_root.terrain.attachMovie(type, _local2, _root.depthHolder);
point = new Object();
point.x = _root._xmouse;
point.y = _root._ymouse;
terrain.globalToLocal(point);
_root.terrain[_local2]._x = point.x;
_root.terrain[_local2]._y = point.y;
_root.selectedObject = terrain[_local2];
}
stop();
go = false;
Instance of Symbol 173 MovieClip "ball" in Frame 16
onClipEvent (load) {
yspeed = 0;
xspeed = 0;
gravity = 0.2;
radius = 5;
friction = 0.9;
precision = 360;
bounces = 0;
}
onClipEvent (enterFrame) {
if (_root.go == true) {
collisions = 0;
sum_x = 0;
sum_y = 0;
yspeed = yspeed + gravity;
x = 1;
while (x < precision) {
spot_x = _x + (radius * Math.sin((x * 360) / precision));
spot_y = _y - (radius * Math.cos((x * 360) / precision));
if (_root.terrain.hitTest(spot_x, spot_y, true)) {
collisions++;
sum_x = sum_x + spot_x;
sum_y = sum_y + spot_y;
}
x++;
}
if (collisions > 0) {
_root.last_hit._x = old_x;
_root.last_hit._y = old_y;
bounces++;
_root.collisions.text = "Bounces: " + bounces;
ball_dir = Math.atan(yspeed / (xspeed * -1)) / (Math.PI/180);
if ((xspeed * -1) < 0) {
ball_dir = ball_dir + 180;
}
if (((xspeed * -1) >= 0) && (yspeed < 0)) {
ball_dir = ball_dir + 360;
}
spot_x = sum_x / collisions;
spot_y = sum_y / collisions;
x_cat = spot_x - _x;
y_cat = spot_y - _y;
ball_coll = Math.atan(y_cat / x_cat) / (Math.PI/180);
if (x_cat < 0) {
ball_coll = ball_coll + 180;
}
if ((x_cat >= 0) && (y_cat < 0)) {
ball_coll = ball_coll + 360;
}
ground_rotation = ball_coll - 90;
if (ground_rotation < 0) {
ground_rotation = ground_rotation + 180;
}
bounce_angle = (180 - ball_dir) - (2 * ground_rotation);
if (bounce_angle < 0) {
bounce_angle = bounce_angle + 360;
}
speed = Math.sqrt((yspeed * yspeed) + (xspeed * xspeed));
xspeed = (speed * Math.cos((bounce_angle * Math.PI) / 180)) * friction;
yspeed = ((speed * Math.sin((bounce_angle * Math.PI) / 180)) * -1) * friction;
_x = old_x;
_y = old_y;
} else {
old_x = _x;
old_y = _y;
}
_y = (_y + yspeed);
_x = (_x + xspeed);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.key)) {
_root.key.nextFrame();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.portal.portal2)) {
_root.nextFrame();
}
}
Instance of Symbol 171 MovieClip in Frame 16
onClipEvent (load) {
function move(where) {
if (where == "down") {
_y = (startY + 50);
vis = false;
}
if (where == "up") {
_y = startY;
vis = true;
}
}
startY = _y;
vis = true;
done = false;
checkItem();
}
onClipEvent (enterFrame) {
if (!done) {
checkItem();
}
}
onClipEvent (load) {
doubleclickDuration = 300;
lastClick = 0;
x = _x;
y = _y;
}
onClipEvent (mouseUp) {
if (drag) {
if (vis) {
drag = false;
_alpha = 100;
_x = x;
_y = y;
}
_root.tile("straight", this);
}
}
on (press) {
if (_visible) {
drag = true;
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (lastClick > 0) {
if ((getTimer() - lastClick) > doubleclickDuration) {
lastClick = 0;
}
}
if (drag) {
_alpha = 50;
_x = (_root._xmouse - _parent._x);
_y = (_root._ymouse - _parent._y);
}
}
}
Frame 17
nextFrame();
_root.paused = true;
_root.paused = true;
_root.paused2 = true;
Frame 18
nextFrame();
_root.paused = true;
go = false;
_root.mode = "none";
_root.go = false;
Frame 19
function tile(type, who) {
_root.depthHolder++;
var _local2 = type + _root.depthHolder;
_root.terrain.attachMovie(type, _local2, _root.depthHolder);
point = new Object();
point.x = _root._xmouse;
point.y = _root._ymouse;
terrain.globalToLocal(point);
_root.terrain[_local2]._x = point.x;
_root.terrain[_local2]._y = point.y;
_root.selectedObject = terrain[_local2];
}
stop();
go = false;
Instance of Symbol 173 MovieClip "ball" in Frame 19
onClipEvent (load) {
yspeed = 0;
xspeed = 0;
gravity = 0.2;
radius = 5;
friction = 0.9;
precision = 360;
bounces = 0;
}
onClipEvent (enterFrame) {
if (_root.go == true) {
collisions = 0;
sum_x = 0;
sum_y = 0;
yspeed = yspeed + gravity;
x = 1;
while (x < precision) {
spot_x = _x + (radius * Math.sin((x * 360) / precision));
spot_y = _y - (radius * Math.cos((x * 360) / precision));
if (_root.terrain.hitTest(spot_x, spot_y, true)) {
collisions++;
sum_x = sum_x + spot_x;
sum_y = sum_y + spot_y;
}
x++;
}
if (collisions > 0) {
_root.last_hit._x = old_x;
_root.last_hit._y = old_y;
bounces++;
_root.collisions.text = "Bounces: " + bounces;
ball_dir = Math.atan(yspeed / (xspeed * -1)) / (Math.PI/180);
if ((xspeed * -1) < 0) {
ball_dir = ball_dir + 180;
}
if (((xspeed * -1) >= 0) && (yspeed < 0)) {
ball_dir = ball_dir + 360;
}
spot_x = sum_x / collisions;
spot_y = sum_y / collisions;
x_cat = spot_x - _x;
y_cat = spot_y - _y;
ball_coll = Math.atan(y_cat / x_cat) / (Math.PI/180);
if (x_cat < 0) {
ball_coll = ball_coll + 180;
}
if ((x_cat >= 0) && (y_cat < 0)) {
ball_coll = ball_coll + 360;
}
ground_rotation = ball_coll - 90;
if (ground_rotation < 0) {
ground_rotation = ground_rotation + 180;
}
bounce_angle = (180 - ball_dir) - (2 * ground_rotation);
if (bounce_angle < 0) {
bounce_angle = bounce_angle + 360;
}
speed = Math.sqrt((yspeed * yspeed) + (xspeed * xspeed));
xspeed = (speed * Math.cos((bounce_angle * Math.PI) / 180)) * friction;
yspeed = ((speed * Math.sin((bounce_angle * Math.PI) / 180)) * -1) * friction;
_x = old_x;
_y = old_y;
} else {
old_x = _x;
old_y = _y;
}
_y = (_y + yspeed);
_x = (_x + xspeed);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.key)) {
_root.key.nextFrame();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.portal.portal2)) {
_root.nextFrame();
}
}
Instance of Symbol 171 MovieClip in Frame 19
onClipEvent (load) {
function move(where) {
if (where == "down") {
_y = (startY + 50);
vis = false;
}
if (where == "up") {
_y = startY;
vis = true;
}
}
startY = _y;
vis = true;
done = false;
checkItem();
}
onClipEvent (enterFrame) {
if (!done) {
checkItem();
}
}
onClipEvent (load) {
doubleclickDuration = 300;
lastClick = 0;
x = _x;
y = _y;
}
onClipEvent (mouseUp) {
if (drag) {
if (vis) {
drag = false;
_alpha = 100;
_x = x;
_y = y;
}
_root.tile("straight", this);
}
}
on (press) {
if (_visible) {
drag = true;
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (lastClick > 0) {
if ((getTimer() - lastClick) > doubleclickDuration) {
lastClick = 0;
}
}
if (drag) {
_alpha = 50;
_x = (_root._xmouse - _parent._x);
_y = (_root._ymouse - _parent._y);
}
}
}
Frame 20
nextFrame();
_root.paused = true;
_root.paused = true;
_root.paused2 = true;
Frame 21
nextFrame();
_root.paused = true;
go = false;
_root.mode = "none";
_root.go = false;
Frame 22
function tile(type, who) {
_root.depthHolder++;
var _local2 = type + _root.depthHolder;
_root.terrain.attachMovie(type, _local2, _root.depthHolder);
point = new Object();
point.x = _root._xmouse;
point.y = _root._ymouse;
terrain.globalToLocal(point);
_root.terrain[_local2]._x = point.x;
_root.terrain[_local2]._y = point.y;
_root.selectedObject = terrain[_local2];
}
stop();
go = false;
Instance of Symbol 173 MovieClip "ball2" in Frame 22
onClipEvent (load) {
yspeed = 0;
xspeed = 0;
gravity = 0.2;
radius = 5;
friction = 0.9;
precision = 360;
bounces = 0;
}
onClipEvent (enterFrame) {
if (_root.go == true) {
collisions = 0;
sum_x = 0;
sum_y = 0;
yspeed = yspeed + gravity;
x = 1;
while (x < precision) {
spot_x = _x + (radius * Math.sin((x * 360) / precision));
spot_y = _y - (radius * Math.cos((x * 360) / precision));
if (_root.terrain.hitTest(spot_x, spot_y, true)) {
collisions++;
sum_x = sum_x + spot_x;
sum_y = sum_y + spot_y;
}
x++;
}
if (collisions > 0) {
_root.last_hit._x = old_x;
_root.last_hit._y = old_y;
bounces++;
_root.collisions.text = "Bounces: " + bounces;
ball_dir = Math.atan(yspeed / (xspeed * -1)) / (Math.PI/180);
if ((xspeed * -1) < 0) {
ball_dir = ball_dir + 180;
}
if (((xspeed * -1) >= 0) && (yspeed < 0)) {
ball_dir = ball_dir + 360;
}
spot_x = sum_x / collisions;
spot_y = sum_y / collisions;
x_cat = spot_x - _x;
y_cat = spot_y - _y;
ball_coll = Math.atan(y_cat / x_cat) / (Math.PI/180);
if (x_cat < 0) {
ball_coll = ball_coll + 180;
}
if ((x_cat >= 0) && (y_cat < 0)) {
ball_coll = ball_coll + 360;
}
ground_rotation = ball_coll - 90;
if (ground_rotation < 0) {
ground_rotation = ground_rotation + 180;
}
bounce_angle = (180 - ball_dir) - (2 * ground_rotation);
if (bounce_angle < 0) {
bounce_angle = bounce_angle + 360;
}
speed = Math.sqrt((yspeed * yspeed) + (xspeed * xspeed));
xspeed = (speed * Math.cos((bounce_angle * Math.PI) / 180)) * friction;
yspeed = ((speed * Math.sin((bounce_angle * Math.PI) / 180)) * -1) * friction;
_x = old_x;
_y = old_y;
} else {
old_x = _x;
old_y = _y;
}
_y = (_y + yspeed);
_x = (_x + xspeed);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.key)) {
_root.key.nextFrame();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.portal.portal2)) {
_root.nextFrame();
}
}
Instance of Symbol 171 MovieClip in Frame 22
onClipEvent (load) {
function move(where) {
if (where == "down") {
_y = (startY + 50);
vis = false;
}
if (where == "up") {
_y = startY;
vis = true;
}
}
startY = _y;
vis = true;
done = false;
checkItem();
}
onClipEvent (enterFrame) {
if (!done) {
checkItem();
}
}
onClipEvent (load) {
doubleclickDuration = 300;
lastClick = 0;
x = _x;
y = _y;
}
onClipEvent (mouseUp) {
if (drag) {
if (vis) {
drag = false;
_alpha = 100;
_x = x;
_y = y;
}
_root.tile("straight", this);
}
}
on (press) {
if (_visible) {
drag = true;
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (lastClick > 0) {
if ((getTimer() - lastClick) > doubleclickDuration) {
lastClick = 0;
}
}
if (drag) {
_alpha = 50;
_x = (_root._xmouse - _parent._x);
_y = (_root._ymouse - _parent._y);
}
}
}
Frame 23
nextFrame();
_root.paused = true;
_root.paused = true;
_root.paused2 = true;
Frame 24
nextFrame();
_root.paused = true;
go = false;
_root.mode = "none";
_root.go = false;
Frame 25
function tile(type, who) {
_root.depthHolder++;
var _local2 = type + _root.depthHolder;
_root.terrain.attachMovie(type, _local2, _root.depthHolder);
point = new Object();
point.x = _root._xmouse;
point.y = _root._ymouse;
terrain.globalToLocal(point);
_root.terrain[_local2]._x = point.x;
_root.terrain[_local2]._y = point.y;
_root.selectedObject = terrain[_local2];
}
stop();
go = false;
Instance of Symbol 173 MovieClip "ball" in Frame 25
onClipEvent (load) {
yspeed = 0;
xspeed = 0;
gravity = 0.2;
radius = 5;
friction = 0.9;
precision = 360;
bounces = 0;
}
onClipEvent (enterFrame) {
if (_root.go == true) {
collisions = 0;
sum_x = 0;
sum_y = 0;
yspeed = yspeed + gravity;
x = 1;
while (x < precision) {
spot_x = _x + (radius * Math.sin((x * 360) / precision));
spot_y = _y - (radius * Math.cos((x * 360) / precision));
if (_root.terrain.hitTest(spot_x, spot_y, true)) {
collisions++;
sum_x = sum_x + spot_x;
sum_y = sum_y + spot_y;
}
x++;
}
if (collisions > 0) {
_root.last_hit._x = old_x;
_root.last_hit._y = old_y;
bounces++;
_root.collisions.text = "Bounces: " + bounces;
ball_dir = Math.atan(yspeed / (xspeed * -1)) / (Math.PI/180);
if ((xspeed * -1) < 0) {
ball_dir = ball_dir + 180;
}
if (((xspeed * -1) >= 0) && (yspeed < 0)) {
ball_dir = ball_dir + 360;
}
spot_x = sum_x / collisions;
spot_y = sum_y / collisions;
x_cat = spot_x - _x;
y_cat = spot_y - _y;
ball_coll = Math.atan(y_cat / x_cat) / (Math.PI/180);
if (x_cat < 0) {
ball_coll = ball_coll + 180;
}
if ((x_cat >= 0) && (y_cat < 0)) {
ball_coll = ball_coll + 360;
}
ground_rotation = ball_coll - 90;
if (ground_rotation < 0) {
ground_rotation = ground_rotation + 180;
}
bounce_angle = (180 - ball_dir) - (2 * ground_rotation);
if (bounce_angle < 0) {
bounce_angle = bounce_angle + 360;
}
speed = Math.sqrt((yspeed * yspeed) + (xspeed * xspeed));
xspeed = (speed * Math.cos((bounce_angle * Math.PI) / 180)) * friction;
yspeed = ((speed * Math.sin((bounce_angle * Math.PI) / 180)) * -1) * friction;
_x = old_x;
_y = old_y;
} else {
old_x = _x;
old_y = _y;
}
_y = (_y + yspeed);
_x = (_x + xspeed);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.key)) {
_root.key.nextFrame();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.portal.portal2)) {
_root.nextFrame();
}
}
Instance of Symbol 171 MovieClip in Frame 25
onClipEvent (load) {
function move(where) {
if (where == "down") {
_y = (startY + 50);
vis = false;
}
if (where == "up") {
_y = startY;
vis = true;
}
}
startY = _y;
vis = true;
done = false;
checkItem();
}
onClipEvent (enterFrame) {
if (!done) {
checkItem();
}
}
onClipEvent (load) {
doubleclickDuration = 300;
lastClick = 0;
x = _x;
y = _y;
}
onClipEvent (mouseUp) {
if (drag) {
if (vis) {
drag = false;
_alpha = 100;
_x = x;
_y = y;
}
_root.tile("straight", this);
}
}
on (press) {
if (_visible) {
drag = true;
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (lastClick > 0) {
if ((getTimer() - lastClick) > doubleclickDuration) {
lastClick = 0;
}
}
if (drag) {
_alpha = 50;
_x = (_root._xmouse - _parent._x);
_y = (_root._ymouse - _parent._y);
}
}
}
Frame 26
nextFrame();
_root.paused = true;
_root.paused = true;
_root.paused2 = true;
Frame 27
nextFrame();
_root.paused = true;
go = false;
_root.mode = "none";
_root.go = false;
Frame 28
function tile(type, who) {
_root.depthHolder++;
var _local2 = type + _root.depthHolder;
_root.terrain.attachMovie(type, _local2, _root.depthHolder);
point = new Object();
point.x = _root._xmouse;
point.y = _root._ymouse;
terrain.globalToLocal(point);
_root.terrain[_local2]._x = point.x;
_root.terrain[_local2]._y = point.y;
_root.selectedObject = terrain[_local2];
}
stop();
go = false;
Instance of Symbol 173 MovieClip "ball" in Frame 28
onClipEvent (load) {
yspeed = 0;
xspeed = 0;
gravity = 0.2;
radius = 5;
friction = 0.9;
precision = 360;
bounces = 0;
}
onClipEvent (enterFrame) {
if (_root.go == true) {
collisions = 0;
sum_x = 0;
sum_y = 0;
yspeed = yspeed + gravity;
x = 1;
while (x < precision) {
spot_x = _x + (radius * Math.sin((x * 360) / precision));
spot_y = _y - (radius * Math.cos((x * 360) / precision));
if (_root.terrain.hitTest(spot_x, spot_y, true)) {
collisions++;
sum_x = sum_x + spot_x;
sum_y = sum_y + spot_y;
}
x++;
}
if (collisions > 0) {
_root.last_hit._x = old_x;
_root.last_hit._y = old_y;
bounces++;
_root.collisions.text = "Bounces: " + bounces;
ball_dir = Math.atan(yspeed / (xspeed * -1)) / (Math.PI/180);
if ((xspeed * -1) < 0) {
ball_dir = ball_dir + 180;
}
if (((xspeed * -1) >= 0) && (yspeed < 0)) {
ball_dir = ball_dir + 360;
}
spot_x = sum_x / collisions;
spot_y = sum_y / collisions;
x_cat = spot_x - _x;
y_cat = spot_y - _y;
ball_coll = Math.atan(y_cat / x_cat) / (Math.PI/180);
if (x_cat < 0) {
ball_coll = ball_coll + 180;
}
if ((x_cat >= 0) && (y_cat < 0)) {
ball_coll = ball_coll + 360;
}
ground_rotation = ball_coll - 90;
if (ground_rotation < 0) {
ground_rotation = ground_rotation + 180;
}
bounce_angle = (180 - ball_dir) - (2 * ground_rotation);
if (bounce_angle < 0) {
bounce_angle = bounce_angle + 360;
}
speed = Math.sqrt((yspeed * yspeed) + (xspeed * xspeed));
xspeed = (speed * Math.cos((bounce_angle * Math.PI) / 180)) * friction;
yspeed = ((speed * Math.sin((bounce_angle * Math.PI) / 180)) * -1) * friction;
_x = old_x;
_y = old_y;
} else {
old_x = _x;
old_y = _y;
}
_y = (_y + yspeed);
_x = (_x + xspeed);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.key)) {
_root.key.nextFrame();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.portal.portal2)) {
_root.nextFrame();
}
}
Instance of Symbol 171 MovieClip in Frame 28
onClipEvent (load) {
function move(where) {
if (where == "down") {
_y = (startY + 50);
vis = false;
}
if (where == "up") {
_y = startY;
vis = true;
}
}
startY = _y;
vis = true;
done = false;
checkItem();
}
onClipEvent (enterFrame) {
if (!done) {
checkItem();
}
}
onClipEvent (load) {
doubleclickDuration = 300;
lastClick = 0;
x = _x;
y = _y;
}
onClipEvent (mouseUp) {
if (drag) {
if (vis) {
drag = false;
_alpha = 100;
_x = x;
_y = y;
}
_root.tile("straight", this);
}
}
on (press) {
if (_visible) {
drag = true;
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (lastClick > 0) {
if ((getTimer() - lastClick) > doubleclickDuration) {
lastClick = 0;
}
}
if (drag) {
_alpha = 50;
_x = (_root._xmouse - _parent._x);
_y = (_root._ymouse - _parent._y);
}
}
}
Frame 29
nextFrame();
_root.paused = true;
_root.paused = true;
_root.paused2 = true;
Frame 30
nextFrame();
_root.paused = true;
go = false;
_root.mode = "none";
_root.go = false;
Frame 31
function tile(type, who) {
_root.depthHolder++;
var _local2 = type + _root.depthHolder;
_root.terrain.attachMovie(type, _local2, _root.depthHolder);
point = new Object();
point.x = _root._xmouse;
point.y = _root._ymouse;
terrain.globalToLocal(point);
_root.terrain[_local2]._x = point.x;
_root.terrain[_local2]._y = point.y;
_root.selectedObject = terrain[_local2];
}
stop();
go = false;
Instance of Symbol 173 MovieClip "ball" in Frame 31
onClipEvent (load) {
yspeed = 0;
xspeed = 0;
gravity = 0.2;
radius = 5;
friction = 0.9;
precision = 360;
bounces = 0;
}
onClipEvent (enterFrame) {
if (_root.go == true) {
collisions = 0;
sum_x = 0;
sum_y = 0;
yspeed = yspeed + gravity;
x = 1;
while (x < precision) {
spot_x = _x + (radius * Math.sin((x * 360) / precision));
spot_y = _y - (radius * Math.cos((x * 360) / precision));
if (_root.terrain.hitTest(spot_x, spot_y, true)) {
collisions++;
sum_x = sum_x + spot_x;
sum_y = sum_y + spot_y;
}
x++;
}
if (collisions > 0) {
_root.last_hit._x = old_x;
_root.last_hit._y = old_y;
bounces++;
_root.collisions.text = "Bounces: " + bounces;
ball_dir = Math.atan(yspeed / (xspeed * -1)) / (Math.PI/180);
if ((xspeed * -1) < 0) {
ball_dir = ball_dir + 180;
}
if (((xspeed * -1) >= 0) && (yspeed < 0)) {
ball_dir = ball_dir + 360;
}
spot_x = sum_x / collisions;
spot_y = sum_y / collisions;
x_cat = spot_x - _x;
y_cat = spot_y - _y;
ball_coll = Math.atan(y_cat / x_cat) / (Math.PI/180);
if (x_cat < 0) {
ball_coll = ball_coll + 180;
}
if ((x_cat >= 0) && (y_cat < 0)) {
ball_coll = ball_coll + 360;
}
ground_rotation = ball_coll - 90;
if (ground_rotation < 0) {
ground_rotation = ground_rotation + 180;
}
bounce_angle = (180 - ball_dir) - (2 * ground_rotation);
if (bounce_angle < 0) {
bounce_angle = bounce_angle + 360;
}
speed = Math.sqrt((yspeed * yspeed) + (xspeed * xspeed));
xspeed = (speed * Math.cos((bounce_angle * Math.PI) / 180)) * friction;
yspeed = ((speed * Math.sin((bounce_angle * Math.PI) / 180)) * -1) * friction;
_x = old_x;
_y = old_y;
} else {
old_x = _x;
old_y = _y;
}
_y = (_y + yspeed);
_x = (_x + xspeed);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.key)) {
_root.key.nextFrame();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.portal.portal2)) {
_root.nextFrame();
}
}
Instance of Symbol 171 MovieClip in Frame 31
onClipEvent (load) {
function move(where) {
if (where == "down") {
_y = (startY + 50);
vis = false;
}
if (where == "up") {
_y = startY;
vis = true;
}
}
startY = _y;
vis = true;
done = false;
checkItem();
}
onClipEvent (enterFrame) {
if (!done) {
checkItem();
}
}
onClipEvent (load) {
doubleclickDuration = 300;
lastClick = 0;
x = _x;
y = _y;
}
onClipEvent (mouseUp) {
if (drag) {
if (vis) {
drag = false;
_alpha = 100;
_x = x;
_y = y;
}
_root.tile("straight", this);
}
}
on (press) {
if (_visible) {
drag = true;
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (lastClick > 0) {
if ((getTimer() - lastClick) > doubleclickDuration) {
lastClick = 0;
}
}
if (drag) {
_alpha = 50;
_x = (_root._xmouse - _parent._x);
_y = (_root._ymouse - _parent._y);
}
}
}
Frame 32
stop();
Frame 33
function tile(type, who) {
_root.depthHolder++;
var _local2 = type + _root.depthHolder;
_root.terrain.attachMovie(type, _local2, _root.depthHolder);
point = new Object();
point.x = _root._xmouse;
point.y = _root._ymouse;
terrain.globalToLocal(point);
_root.terrain[_local2]._x = point.x;
_root.terrain[_local2]._y = point.y;
_root.selectedObject = terrain[_local2];
}
stop();
go = false;
_root.time = 60;
_root.keys = 20;
Instance of Symbol 173 MovieClip "ball" in Frame 33
onClipEvent (load) {
yspeed = 0;
xspeed = 0;
gravity = 0.2;
radius = 5;
friction = 0.9;
precision = 360;
bounces = 0;
}
onClipEvent (enterFrame) {
if (_root.go == true) {
collisions = 0;
sum_x = 0;
sum_y = 0;
yspeed = yspeed + gravity;
x = 1;
while (x < precision) {
spot_x = _x + (radius * Math.sin((x * 360) / precision));
spot_y = _y - (radius * Math.cos((x * 360) / precision));
if (_root.terrain.hitTest(spot_x, spot_y, true)) {
collisions++;
sum_x = sum_x + spot_x;
sum_y = sum_y + spot_y;
}
x++;
}
if (collisions > 0) {
_root.last_hit._x = old_x;
_root.last_hit._y = old_y;
bounces++;
_root.collisions.text = "Bounces: " + bounces;
ball_dir = Math.atan(yspeed / (xspeed * -1)) / (Math.PI/180);
if ((xspeed * -1) < 0) {
ball_dir = ball_dir + 180;
}
if (((xspeed * -1) >= 0) && (yspeed < 0)) {
ball_dir = ball_dir + 360;
}
spot_x = sum_x / collisions;
spot_y = sum_y / collisions;
x_cat = spot_x - _x;
y_cat = spot_y - _y;
ball_coll = Math.atan(y_cat / x_cat) / (Math.PI/180);
if (x_cat < 0) {
ball_coll = ball_coll + 180;
}
if ((x_cat >= 0) && (y_cat < 0)) {
ball_coll = ball_coll + 360;
}
ground_rotation = ball_coll - 90;
if (ground_rotation < 0) {
ground_rotation = ground_rotation + 180;
}
bounce_angle = (180 - ball_dir) - (2 * ground_rotation);
if (bounce_angle < 0) {
bounce_angle = bounce_angle + 360;
}
speed = Math.sqrt((yspeed * yspeed) + (xspeed * xspeed));
xspeed = (speed * Math.cos((bounce_angle * Math.PI) / 180)) * friction;
yspeed = ((speed * Math.sin((bounce_angle * Math.PI) / 180)) * -1) * friction;
_x = old_x;
_y = old_y;
} else {
old_x = _x;
old_y = _y;
}
_y = (_y + yspeed);
_x = (_x + xspeed);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.key)) {
_root.key.nextFrame();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.portal.portal2)) {
_root.nextFrame();
}
}
Instance of Symbol 171 MovieClip in Frame 33
onClipEvent (load) {
function move(where) {
if (where == "down") {
_y = (startY + 50);
vis = false;
}
if (where == "up") {
_y = startY;
vis = true;
}
}
startY = _y;
vis = true;
done = false;
checkItem();
}
onClipEvent (enterFrame) {
if (!done) {
checkItem();
}
}
onClipEvent (load) {
doubleclickDuration = 300;
lastClick = 0;
x = _x;
y = _y;
}
onClipEvent (mouseUp) {
if (drag) {
if (vis) {
drag = false;
_alpha = 100;
_x = x;
_y = y;
}
_root.tile("straight", this);
}
}
on (press) {
if (_visible) {
drag = true;
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (lastClick > 0) {
if ((getTimer() - lastClick) > doubleclickDuration) {
lastClick = 0;
}
}
if (drag) {
_alpha = 50;
_x = (_root._xmouse - _parent._x);
_y = (_root._ymouse - _parent._y);
}
}
}
Instance of Symbol 171 MovieClip in Frame 33
onClipEvent (load) {
function move(where) {
if (where == "down") {
_y = (startY + 50);
vis = false;
}
if (where == "up") {
_y = startY;
vis = true;
}
}
startY = _y;
vis = true;
done = false;
checkItem();
}
onClipEvent (enterFrame) {
if (!done) {
checkItem();
}
}
onClipEvent (load) {
doubleclickDuration = 300;
lastClick = 0;
x = _x;
y = _y;
}
onClipEvent (mouseUp) {
if (drag) {
if (vis) {
drag = false;
_alpha = 100;
_x = x;
_y = y;
}
_root.tile("straight", this);
}
}
on (press) {
if (_visible) {
drag = true;
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (lastClick > 0) {
if ((getTimer() - lastClick) > doubleclickDuration) {
lastClick = 0;
}
}
if (drag) {
_alpha = 50;
_x = (_root._xmouse - _parent._x);
_y = (_root._ymouse - _parent._y);
}
}
}
Instance of Symbol 171 MovieClip in Frame 33
onClipEvent (load) {
function move(where) {
if (where == "down") {
_y = (startY + 50);
vis = false;
}
if (where == "up") {
_y = startY;
vis = true;
}
}
startY = _y;
vis = true;
done = false;
checkItem();
}
onClipEvent (enterFrame) {
if (!done) {
checkItem();
}
}
onClipEvent (load) {
doubleclickDuration = 300;
lastClick = 0;
x = _x;
y = _y;
}
onClipEvent (mouseUp) {
if (drag) {
if (vis) {
drag = false;
_alpha = 100;
_x = x;
_y = y;
}
_root.tile("straight", this);
}
}
on (press) {
if (_visible) {
drag = true;
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (lastClick > 0) {
if ((getTimer() - lastClick) > doubleclickDuration) {
lastClick = 0;
}
}
if (drag) {
_alpha = 50;
_x = (_root._xmouse - _parent._x);
_y = (_root._ymouse - _parent._y);
}
}
}
Instance of Symbol 171 MovieClip in Frame 33
onClipEvent (load) {
function move(where) {
if (where == "down") {
_y = (startY + 50);
vis = false;
}
if (where == "up") {
_y = startY;
vis = true;
}
}
startY = _y;
vis = true;
done = false;
checkItem();
}
onClipEvent (enterFrame) {
if (!done) {
checkItem();
}
}
onClipEvent (load) {
doubleclickDuration = 300;
lastClick = 0;
x = _x;
y = _y;
}
onClipEvent (mouseUp) {
if (drag) {
if (vis) {
drag = false;
_alpha = 100;
_x = x;
_y = y;
}
_root.tile("straight", this);
}
}
on (press) {
if (_visible) {
drag = true;
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (lastClick > 0) {
if ((getTimer() - lastClick) > doubleclickDuration) {
lastClick = 0;
}
}
if (drag) {
_alpha = 50;
_x = (_root._xmouse - _parent._x);
_y = (_root._ymouse - _parent._y);
}
}
}
Symbol 2 MovieClip [p1] Frame 1
yvel = 0;
falling = false;
dir = 1;
gravity = 1;
jumpamount = 20;
x = _xscale;
speed = 7;
onfloor = true;
_y = parent._y;
Symbol 2 MovieClip [p1] Frame 2
if (_root.paused) {
return(undefined);
}
_x = (parent._x - (parent._width / 2));
_y = (_y + yvel);
if (!_root.bg.hitTest(_x, _y + 1, true)) {
yvel = yvel + gravity;
}
while (_root.bg.hitTest(_x, _y + 1, true)) {
this._y = this._y - 1;
onfloor = true;
yvel = 0;
}
if (!_root.bg.hitTest(_x, _y + 5, true)) {
onfloor = false;
}
Symbol 2 MovieClip [p1] Frame 3
gotoAndPlay (2);
Symbol 4 MovieClip [p2] Frame 1
yvel = 0;
falling = false;
dir = 1;
gravity = 1;
jumpamount = 20;
x = _xscale;
speed = 7;
onfloor = true;
_y = parent._y;
Symbol 4 MovieClip [p2] Frame 2
if (_root.paused) {
return(undefined);
}
_x = ((parent._x + (parent._width / 2)) + 5);
_y = (_y + yvel);
if (!_root.bg.hitTest(_x, _y + 1, true)) {
yvel = yvel + gravity;
}
while (_root.bg.hitTest(_x, _y + 1, true)) {
this._y = this._y - 1;
onfloor = true;
yvel = 0;
}
if (!_root.bg.hitTest(_x, _y + 5, true)) {
onfloor = false;
}
if (_root.bg.hitTest(_x, _y + 5, true)) {
hitBg = true;
} else {
hitBg = false;
}
Symbol 4 MovieClip [p2] Frame 3
gotoAndPlay (2);
Symbol 6 MovieClip Frame 1
stop();
Symbol 6 MovieClip Frame 2
stop();
Symbol 13 MovieClip [meh] Frame 1
stop();
Symbol 13 MovieClip [meh] Frame 2
stop();
Symbol 19 MovieClip Frame 1
stop();
Symbol 20 MovieClip Frame 1
stop();
Instance of Symbol 19 MovieClip "rotate" in Symbol 20 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.rotate.startDrag(true);
}
Symbol 20 MovieClip Frame 360
stop();
Symbol 20 MovieClip Frame 361
_root.paused = undefined;
Symbol 21 MovieClip [curve] Frame 1
tile.onRollOver = function () {
highlight.gotoAndStop(2);
};
tile.onRollOut = function () {
highlight.gotoAndStop(1);
};
tile.onPress = function () {
highlight.gotoAndStop(1);
_root.selectedObject = this._parent;
drag = true;
};
this.onEnterFrame = function () {
if (drag) {
_alpha = 50;
_x = (_root._xmouse - _parent._x);
_y = (_root._ymouse - _parent._y);
}
if (_root.selectedObject == this) {
if (Key.isDown(46)) {
this.removeMovieClip();
}
}
};
this.onMouseUp = function () {
if (drag) {
drag = false;
_alpha = 100;
}
if (!(_currentframe === 2)) {
if (!rotateMode) {
rotateMode = true;
return(undefined);
}
if (rotateMode) {
rotateMode = false;
}
}
};
rotateMode = false;
drag = false;
Instance of Symbol 6 MovieClip "highlight" in Symbol 21 MovieClip [curve] Frame 1
onClipEvent (enterFrame) {
_rotation = _parent.tile._rotation;
}
Instance of Symbol 13 MovieClip [meh] in Symbol 21 MovieClip [curve] Frame 1
onClipEvent (load) {
function visCheck() {
if (!_root.paused) {
this.gotoAndStop(2);
}
if (_root.selectedObject == _parent) {
if (_alpha < 100) {
_alpha = (_alpha + 20);
}
}
if (!(_root.selectedObject === _parent)) {
if (_alpha > 0) {
_alpha = (_alpha - 20);
}
}
}
}
onClipEvent (enterFrame) {
visCheck();
}
Instance of Symbol 20 MovieClip in Symbol 21 MovieClip [curve] Frame 1
onClipEvent (load) {
function visCheck() {
if (!_root.paused) {
this.gotoAndStop(361);
}
if (_root.selectedObject == _parent) {
_visible = true;
if (_alpha < 100) {
_alpha = (_alpha + 20);
}
}
if (!(_root.selectedObject === _parent)) {
if (_alpha > 0) {
_alpha = (_alpha - 20);
}
if (_alpha <= 0) {
_visible = false;
}
}
}
rotateMode = false;
}
on (press) {
if (_root.selectedObject == _parent) {
rotateMode = true;
}
}
onClipEvent (enterFrame) {
visCheck();
if (rotateMode) {
if (_root.selectedObject == _parent) {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
deltaX = point.x - _root._xmouse;
deltaY = point.y - _root._ymouse;
angle = -Math.atan2(deltaX, deltaY);
Angle = Math.round((angle * 180) / Math.PI);
if (Angle < 0) {
Angle = 360 + Angle;
}
this.gotoAndStop(Angle);
_parent.tile._rotation = Angle;
}
}
}
onClipEvent (mouseUp) {
if (rotateMode == false) {
if (_root.selectedObject == _parent) {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
deltaX = point.x - _root._xmouse;
deltaY = point.y - _root._ymouse;
dis = Math.sqrt(Math.abs(deltaX) + Math.abs(deltaY));
if (Math.round(dis) > 12) {
_root.selectedObject = undefined;
}
}
}
if (rotateMode) {
if (_root.selectedObject == _parent) {
rotateMode = false;
}
}
}
Symbol 23 MovieClip Frame 1
stop();
Symbol 23 MovieClip Frame 2
stop();
Symbol 30 MovieClip [straight] Frame 1
tile.onRollOver = function () {
highlight.gotoAndStop(2);
};
tile.onRollOut = function () {
highlight.gotoAndStop(1);
};
tile.onPress = function () {
highlight.gotoAndStop(1);
_root.selectedObject = this._parent;
drag = true;
};
this.onEnterFrame = function () {
if (drag) {
_alpha = 50;
_x = (_root._xmouse - _parent._x);
_y = (_root._ymouse - _parent._y);
}
if (_root.selectedObject == this) {
if (Key.isDown(46)) {
this.removeMovieClip();
}
}
};
this.onMouseUp = function () {
if (drag) {
drag = false;
_alpha = 100;
}
if (!(_currentframe === 2)) {
if (!rotateMode) {
rotateMode = true;
return(undefined);
}
if (rotateMode) {
rotateMode = false;
}
}
};
rotateMode = false;
drag = false;
thing = false;
Instance of Symbol 23 MovieClip "highlight" in Symbol 30 MovieClip [straight] Frame 1
onClipEvent (enterFrame) {
_rotation = _parent.tile._rotation;
}
Instance of Symbol 13 MovieClip [meh] "cir" in Symbol 30 MovieClip [straight] Frame 1
onClipEvent (load) {
function visCheck() {
if (_root.paused) {
this.gotoAndStop(1);
}
if (_root.mode == "GAZ") {
this.gotoAndStop(2);
}
if (!(_root.mode === "GAZ")) {
this.gotoAndStop(1);
}
if (_root.selectedObject == _parent) {
if (_alpha < 100) {
_alpha = (_alpha + 20);
}
}
if (!(_root.selectedObject === _parent)) {
if (_alpha > 0) {
_alpha = (_alpha - 20);
}
}
}
}
onClipEvent (enterFrame) {
visCheck();
}
Instance of Symbol 20 MovieClip "next" in Symbol 30 MovieClip [straight] Frame 1
onClipEvent (load) {
function visCheck() {
if ((_root.paused = undefined)) {
this.gotoAndStop(361);
}
if (_root.mode == "GAZ") {
this.gotoAndStop(361);
}
if (!(_root.mode === "GAZ")) {
this.gotoAndStop(Angle);
}
if (_root.selectedObject == _parent) {
_visible = true;
if (_alpha < 100) {
_alpha = (_alpha + 20);
}
}
if (!(_root.selectedObject === _parent)) {
if (_alpha > 0) {
_alpha = (_alpha - 20);
}
if (_alpha <= 0) {
_visible = false;
}
}
}
rotateMode = false;
}
on (press) {
if (_root.selectedObject == _parent) {
rotateMode = true;
}
}
onClipEvent (enterFrame) {
visCheck();
if (rotateMode) {
if (_root.selectedObject == _parent) {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
deltaX = point.x - _root._xmouse;
deltaY = point.y - _root._ymouse;
angle = -Math.atan2(deltaX, deltaY);
Angle = Math.round((angle * 180) / Math.PI);
if (Angle < 0) {
Angle = 360 + Angle;
}
this.gotoAndStop(Angle);
_parent.tile._rotation = Angle;
}
}
}
onClipEvent (mouseUp) {
if (rotateMode == false) {
if (_root.selectedObject == _parent) {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
deltaX = point.x - _root._xmouse;
deltaY = point.y - _root._ymouse;
dis = Math.sqrt(Math.abs(deltaX) + Math.abs(deltaY));
if (Math.round(dis) > 12) {
_root.selectedObject = undefined;
}
}
}
if (rotateMode) {
if (_root.selectedObject == _parent) {
rotateMode = false;
}
}
}
Symbol 61 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndPlay ("loaded");
}
Symbol 61 MovieClip Frame 2
gotoAndPlay (1);
Symbol 61 MovieClip Frame 40
_root.play();
Symbol 68 Button
on (release) {
getURL ("http://www.gaming-box.com/", "_blank");
}
Symbol 81 MovieClip Frame 10
stop();
Symbol 85 MovieClip Frame 6
stop();
Symbol 91 MovieClip Frame 213
_root.nextFrame();
Symbol 92 Button
on (release) {
getURL ("http://www.gaming-box.com/", "_blank");
}
Symbol 95 Button
on (press) {
_root.black.play();
}
on (rollOver) {
_root.head = "Play";
_root.body = "Play The Game";
}
on (rollOut) {
_root.head = "Menu";
_root.body = "Welcome to the menu";
}
Symbol 96 Button
on (rollOver) {
_root.head = "How";
_root.body = "How to play";
}
on (rollOut) {
_root.head = "Menu";
_root.body = "Welcome to the menu";
}
on (press) {
_root.how.play();
}
Symbol 97 Button
on (release) {
getURL ("http://www.gaming-box.com/", "_blank");
}
Symbol 107 Button
on (press) {
nextFrame();
}
Symbol 117 MovieClip Frame 1
stop();
Symbol 117 MovieClip Frame 2
stop();
Symbol 121 MovieClip Frame 10
stop();
Symbol 122 MovieClip Frame 1
stop();
Symbol 122 MovieClip Frame 2
stop();
_root.portal.nextFrame();
Instance of Symbol 19 MovieClip "rotate" in Symbol 138 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.rotate.startDrag(true);
}
Symbol 141 Button
on (press) {
play();
}
Symbol 147 MovieClip Frame 1
stop();
Symbol 147 MovieClip Frame 20
stop();
Symbol 147 MovieClip Frame 21
stop();
Symbol 147 MovieClip Frame 22
stop();
Symbol 147 MovieClip Frame 23
stop();
Instance of Symbol 23 MovieClip "highlight" in Symbol 147 MovieClip Frame 23
onClipEvent (enterFrame) {
_rotation = _parent.tile._rotation;
}
Instance of Symbol 23 MovieClip "highlight" in Symbol 147 MovieClip Frame 23
onClipEvent (enterFrame) {
_rotation = _parent.tile._rotation;
}
Symbol 147 MovieClip Frame 32
gotoAndStop (1);
Symbol 148 MovieClip Frame 1
stop();
Symbol 148 MovieClip Frame 10
_root.gotoAndStop("choose");
Symbol 149 MovieClip Frame 1
stopAllSounds();
Symbol 157 Button
on (press) {
_root.black2.play();
}
Symbol 158 MovieClip Frame 10
stop();
Symbol 160 MovieClip Frame 1
stop();
Symbol 160 MovieClip Frame 10
_root.gotoAndStop("lvl1");
Symbol 168 Button
on (press) {
go = true;
_root.mode = "GAZ";
_root.note2.play();
_root.paused = undefined;
_root.go = true;
stop2 = false;
}
Symbol 169 Button
on (press) {
_root.prevFrame();
_root.mode = "haha";
_root.go = false;
stop2 = true;
}
Symbol 174 Button
on (press) {
go = true;
_root.mode = "GAZ";
_root.note2.play();
_root.paused = false;
}
Symbol 175 Button
on (press) {
_root.prevFrame();
_root.mode = "haha";
}
Instance of Symbol 192 MovieClip in Symbol 193 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball2)) {
_root.prevFrame();
}
}
Instance of Symbol 193 MovieClip in Symbol 194 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.prevFrame();
}
}
Instance of Symbol 193 MovieClip in Symbol 194 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.prevFrame();
}
}
Instance of Symbol 193 MovieClip in Symbol 194 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.prevFrame();
}
}
Instance of Symbol 193 MovieClip in Symbol 194 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.prevFrame();
}
}
Instance of Symbol 193 MovieClip in Symbol 194 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.prevFrame();
}
}
Instance of Symbol 193 MovieClip in Symbol 194 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.prevFrame();
}
}
Symbol 208 Button
on (press) {
gotoAndStop ("menu");
_root.timed = true;
}