Frame 1
loadedbytes = getBytesLoaded();
totalbytes = getBytesTotal();
Frame 2
if (loadedbytes == totalbytes) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Instance of Symbol 15 MovieClip in Frame 3
onClipEvent (enterFrame) {
this._x = _root.mn1._x;
this._y = _root.mn1._y;
}
Instance of Symbol 19 MovieClip "mn1" in Frame 3
onClipEvent (load) {
var radius = 100;
var speed = -1;
var xcenter = 250;
var ycenter = 250;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 23 MovieClip "one" in Frame 3
onClipEvent (load) {
var radius = 45;
var speed = 2;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.mn1._x;
var ycenter = _root.mn1._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 15 MovieClip in Frame 3
onClipEvent (enterFrame) {
this._x = _root.mn2._x;
this._y = _root.mn2._y;
}
Instance of Symbol 19 MovieClip "mn2" in Frame 3
onClipEvent (load) {
var radius = 100;
var speed = -1;
var xcenter = 250;
var ycenter = 250;
var degree = 72;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 23 MovieClip "two" in Frame 3
onClipEvent (load) {
var radius = 45;
var speed = 2;
var degree = 180;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.mn2._x;
var ycenter = _root.mn2._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 15 MovieClip in Frame 3
onClipEvent (enterFrame) {
this._x = _root.mn3._x;
this._y = _root.mn3._y;
}
Instance of Symbol 19 MovieClip "mn3" in Frame 3
onClipEvent (load) {
var radius = 100;
var speed = -1;
var xcenter = 250;
var ycenter = 250;
var degree = 144;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 23 MovieClip "three" in Frame 3
onClipEvent (load) {
var radius = 45;
var speed = 2;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.mn3._x;
var ycenter = _root.mn3._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 15 MovieClip in Frame 3
onClipEvent (enterFrame) {
this._x = _root.mn4._x;
this._y = _root.mn4._y;
}
Instance of Symbol 19 MovieClip "mn4" in Frame 3
onClipEvent (load) {
var radius = 100;
var speed = -1;
var xcenter = 250;
var ycenter = 250;
var degree = 216;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 23 MovieClip "four" in Frame 3
onClipEvent (load) {
var radius = 45;
var speed = 2;
var degree = 180;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.mn4._x;
var ycenter = _root.mn4._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 15 MovieClip in Frame 3
onClipEvent (enterFrame) {
this._x = _root.mn5._x;
this._y = _root.mn5._y;
}
Instance of Symbol 23 MovieClip "five" in Frame 3
onClipEvent (load) {
var radius = 45;
var speed = 2;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.mn5._x;
var ycenter = _root.mn5._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 19 MovieClip "mn5" in Frame 3
onClipEvent (load) {
var radius = 100;
var speed = -1;
var xcenter = 250;
var ycenter = 250;
var degree = 288;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Frame 3
okToPlay = eval("FALSE");
start.onRelease = function () {
gotoAndStop (5);
};
enterpwd.onRelease = function () {
gotoAndStop (4);
};
instructions.onRelease = function () {
gotoAndStop (107);
};
_global.attempts = 1;
_global.validscore = true;
stop();
Frame 4
stop();
startgame.onRelease = function () {
gotoAndStop (5);
};
back.onRelease = function () {
gotoAndStop (3);
};
Frame 5
stop();
start.onRelease = function () {
gotoAndStop (6);
};
Frame 6
function startGame() {
_root.tryagain._visible = false;
_root.three.gotoAndStop(2);
attempts_txt.text = attempts;
}
function Game() {
doo = new startGame();
}
function calcDistance(xd, yd) {
var _local1 = Math.pow(xd, 2);
var _local2 = Math.pow(yd, 2);
var _local4 = _local1 + _local2;
var _local3 = Math.sqrt(_local4);
return(_local3);
}
function youFailed() {
failed = new Sound(this);
failed.attachSound("failed.wav");
failed.start();
_root.tryagain._visible = true;
_global.attempts++;
attempts_txt.text = attempts;
}
stop();
foo = new Game();
Instance of Symbol 23 MovieClip "three" in Frame 6
onClipEvent (load) {
var radius = 200;
var speed = 1;
var xcenter = ((ycenter = 250));
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 23 MovieClip "two" in Frame 6
onClipEvent (load) {
var radius = 150;
var speed = -1;
var xcenter = ((ycenter = 250));
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 23 MovieClip "one" in Frame 6
onClipEvent (load) {
var radius = 100;
var speed = 2;
var xcenter = ((ycenter = 250));
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Frame 9
gotoAndStop (7);
Frame 10
stop();
start.onRelease = function () {
gotoAndStop (11);
};
Frame 11
function startGame() {
_root.tryagain._visible = false;
_root.three.gotoAndStop(2);
attempts_txt.text = attempts;
}
function Game() {
doo = new startGame();
}
function calcDistance(xd, yd) {
var _local1 = Math.pow(xd, 2);
var _local2 = Math.pow(yd, 2);
var _local4 = _local1 + _local2;
var _local3 = Math.sqrt(_local4);
return(_local3);
}
function youFailed() {
failed = new Sound(this);
failed.attachSound("failed.wav");
failed.start();
_root.tryagain._visible = true;
_global.attempts++;
attempts_txt.text = attempts;
}
stop();
foo = new Game();
Instance of Symbol 23 MovieClip "three" in Frame 11
onClipEvent (load) {
var radius = 200;
var speed = 1;
var xcenter = ((ycenter = 250));
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 23 MovieClip "two" in Frame 11
onClipEvent (load) {
var radius = 150;
var speed = -0.5;
var xcenter = ((ycenter = 250));
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 23 MovieClip "one" in Frame 11
onClipEvent (load) {
var radius = 100;
var speed = 2;
var xcenter = ((ycenter = 250));
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Frame 14
gotoAndStop (12);
Frame 15
stop();
start.onRelease = function () {
gotoAndStop (16);
};
Frame 16
function startGame() {
_root.tryagain._visible = false;
_root.four.gotoAndStop(2);
attempts_txt.text = attempts;
}
function Game() {
doo = new startGame();
}
function calcDistance(xd, yd) {
var _local1 = Math.pow(xd, 2);
var _local2 = Math.pow(yd, 2);
var _local4 = _local1 + _local2;
var _local3 = Math.sqrt(_local4);
return(_local3);
}
function youFailed() {
failed = new Sound(this);
failed.attachSound("failed.wav");
failed.start();
_root.tryagain._visible = true;
_global.attempts++;
attempts_txt.text = attempts;
}
stop();
foo = new Game();
Instance of Symbol 23 MovieClip "four" in Frame 16
onClipEvent (load) {
var radius = 225;
var speed = -1;
var xcenter = ((ycenter = 250));
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 23 MovieClip "three" in Frame 16
onClipEvent (load) {
var radius = 175;
var speed = 1.3;
var xcenter = ((ycenter = 250));
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 23 MovieClip "two" in Frame 16
onClipEvent (load) {
var radius = 125;
var speed = -0.5;
var xcenter = ((ycenter = 250));
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 23 MovieClip "one" in Frame 16
onClipEvent (load) {
var radius = 75;
var speed = 2;
var xcenter = ((ycenter = 250));
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Frame 19
gotoAndStop (17);
Frame 20
stop();
start.onRelease = function () {
gotoAndStop (21);
};
Frame 21
function startGame() {
_root.tryagain._visible = false;
_root.three.gotoAndStop(2);
attempts_txt.text = attempts;
}
function Game() {
doo = new startGame();
}
function calcDistance(xd, yd) {
var _local1 = Math.pow(xd, 2);
var _local2 = Math.pow(yd, 2);
var _local4 = _local1 + _local2;
var _local3 = Math.sqrt(_local4);
return(_local3);
}
function youFailed() {
failed = new Sound(this);
failed.attachSound("failed.wav");
failed.start();
_root.tryagain._visible = true;
_global.attempts++;
attempts_txt.text = attempts;
}
stop();
foo = new Game();
Instance of Symbol 23 MovieClip "three" in Frame 21
onClipEvent (load) {
var radius = 175;
var speed = 1;
var xcenter = ((ycenter = 250));
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 23 MovieClip "two" in Frame 21
onClipEvent (load) {
var radius = 125;
var speed = -0.75;
var xcenter = ((ycenter = 250));
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
if (this._currentframe == 2) {
if (this.hitTest(_root.badelectron)) {
this.gotoAndPlay(1);
impact = new Sound(this);
impact.attachSound("hit.wav");
impact.start();
_root.three.gotoAndStop(2);
}
}
}
Instance of Symbol 23 MovieClip "one" in Frame 21
onClipEvent (load) {
var radius = 75;
var speed = 2;
var xcenter = ((ycenter = 250));
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 73 MovieClip "badelectron" in Frame 21
onClipEvent (load) {
var radius = 125;
var speed = -1.5;
var xcenter = ((ycenter = 250));
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Frame 24
gotoAndStop (22);
Frame 25
stop();
start.onRelease = function () {
gotoAndStop (26);
};
Frame 26
function startGame() {
_root.tryagain._visible = false;
_root.three.gotoAndStop(2);
attempts_txt.text = attempts;
}
function Game() {
doo = new startGame();
}
function calcDistance(xd, yd) {
var _local1 = Math.pow(xd, 2);
var _local2 = Math.pow(yd, 2);
var _local4 = _local1 + _local2;
var _local3 = Math.sqrt(_local4);
return(_local3);
}
function youFailed() {
failed = new Sound(this);
failed.attachSound("failed.wav");
failed.start();
_root.tryagain._visible = true;
_global.attempts++;
attempts_txt.text = attempts;
}
stop();
foo = new Game();
Instance of Symbol 23 MovieClip "three" in Frame 26
onClipEvent (load) {
var radius = 175;
var speed = 2.3;
var xcenter = ((ycenter = 250));
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 23 MovieClip "two" in Frame 26
onClipEvent (load) {
var radius = 125;
var speed = -1.5;
var xcenter = ((ycenter = 250));
var degree = 180;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
if (this._currentframe == 2) {
if (this.hitTest(_root.badelectron)) {
this.gotoAndPlay(1);
impact = new Sound(this);
impact.attachSound("hit.wav");
impact.start();
_root.three.gotoAndStop(2);
}
}
}
Instance of Symbol 23 MovieClip "one" in Frame 26
onClipEvent (load) {
var radius = 75;
var speed = 1.5;
var xcenter = ((ycenter = 250));
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 73 MovieClip "badelectron" in Frame 26
onClipEvent (load) {
var radius = 125;
var speed = 0.75;
var xcenter = ((ycenter = 250));
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Frame 29
gotoAndStop (27);
Frame 30
stop();
start.onRelease = function () {
gotoAndStop (31);
};
Frame 31
function startGame() {
_root.tryagain._visible = false;
_root.aone.gotoAndStop(2);
attempts_txt.text = attempts;
}
function Game() {
doo = new startGame();
}
function calcDistance(xd, yd) {
var _local1 = Math.pow(xd, 2);
var _local2 = Math.pow(yd, 2);
var _local4 = _local1 + _local2;
var _local3 = Math.sqrt(_local4);
return(_local3);
}
function youFailed() {
failed = new Sound(this);
failed.attachSound("failed.wav");
failed.start();
_root.tryagain._visible = true;
_global.attempts++;
attempts_txt.text = attempts;
}
stop();
foo = new Game();
Instance of Symbol 23 MovieClip "athree" in Frame 31
onClipEvent (load) {
var radius = 112;
var speed = 2;
var xcenter = 140;
var ycenter = 220;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 23 MovieClip "atwo" in Frame 31
onClipEvent (load) {
var radius = 80;
var speed = -2.7;
var xcenter = 140;
var ycenter = 220;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 23 MovieClip "aone" in Frame 31
onClipEvent (load) {
var radius = 45;
var speed = 4;
var xcenter = 140;
var ycenter = 220;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 23 MovieClip "btwo" in Frame 31
onClipEvent (load) {
var radius = 80;
var speed = 2.7;
var xcenter = 357;
var ycenter = 220;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 23 MovieClip "bthree" in Frame 31
onClipEvent (load) {
var radius = 112;
var speed = -2;
var xcenter = 357;
var ycenter = 220;
var degree = 180;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 23 MovieClip "bone" in Frame 31
onClipEvent (load) {
var radius = 45;
var speed = 4;
var xcenter = 357;
var ycenter = 220;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Frame 34
gotoAndStop (32);
Frame 35
stop();
start.onRelease = function () {
gotoAndStop (36);
};
Frame 36
function startGame() {
_root.tryagain._visible = false;
_root.aone.gotoAndStop(2);
attempts_txt.text = attempts;
}
function Game() {
doo = new startGame();
}
function calcDistance(xd, yd) {
var _local1 = Math.pow(xd, 2);
var _local2 = Math.pow(yd, 2);
var _local4 = _local1 + _local2;
var _local3 = Math.sqrt(_local4);
return(_local3);
}
function youFailed() {
failed = new Sound(this);
failed.attachSound("failed.wav");
failed.start();
_root.tryagain._visible = true;
_global.attempts++;
attempts_txt.text = attempts;
}
stop();
foo = new Game();
Instance of Symbol 23 MovieClip "athree" in Frame 36
onClipEvent (load) {
var radius = 112;
var speed = 2;
var xcenter = 140;
var ycenter = 220;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 23 MovieClip "atwo" in Frame 36
onClipEvent (load) {
var radius = 80;
var speed = -2.7;
var xcenter = 140;
var ycenter = 220;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
if (this._currentframe == 2) {
if (this.hitTest(_root.abad)) {
this.gotoAndPlay(1);
impact = new Sound(this);
impact.attachSound("hit.wav");
impact.start();
_root.aone.gotoAndStop(2);
}
}
}
Instance of Symbol 23 MovieClip "aone" in Frame 36
onClipEvent (load) {
var radius = 45;
var speed = 4;
var xcenter = 140;
var ycenter = 220;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 23 MovieClip "btwo" in Frame 36
onClipEvent (load) {
var radius = 80;
var speed = 2.7;
var xcenter = 357;
var ycenter = 220;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
if (this._currentframe == 2) {
if (this.hitTest(_root.bbad)) {
this.gotoAndPlay(1);
impact = new Sound(this);
impact.attachSound("hit.wav");
impact.start();
_root.bthree.gotoAndStop(2);
}
}
}
Instance of Symbol 23 MovieClip "bthree" in Frame 36
onClipEvent (load) {
var radius = 112;
var speed = -2;
var xcenter = 357;
var ycenter = 220;
var degree = 180;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 23 MovieClip "bone" in Frame 36
onClipEvent (load) {
var radius = 45;
var speed = 4;
var xcenter = 357;
var ycenter = 220;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 73 MovieClip "abad" in Frame 36
onClipEvent (load) {
var radius = 80;
var speed = -4;
var xcenter = 140;
var ycenter = 220;
var degree = 90;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 73 MovieClip "bbad" in Frame 36
onClipEvent (load) {
var radius = 80;
var speed = 3.4;
var xcenter = 357;
var ycenter = 220;
var degree = 60;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Frame 39
gotoAndStop (37);
Frame 40
stop();
start.onRelease = function () {
gotoAndStop (41);
};
Frame 41
function startGame() {
_root.tryagain._visible = false;
_root.one.gotoAndStop(2);
attempts_txt.text = attempts;
}
function Game() {
doo = new startGame();
}
function calcDistance(xd, yd) {
var _local1 = Math.pow(xd, 2);
var _local2 = Math.pow(yd, 2);
var _local4 = _local1 + _local2;
var _local3 = Math.sqrt(_local4);
return(_local3);
}
function youFailed() {
failed = new Sound(this);
failed.attachSound("failed.wav");
failed.start();
_root.tryagain._visible = true;
_global.attempts++;
attempts_txt.text = attempts;
}
stop();
foo = new Game();
Instance of Symbol 23 MovieClip "three" in Frame 41
onClipEvent (load) {
var radius = 45;
var speed = 4;
var xcenter = 200;
var ycenter = 300;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 23 MovieClip "six" in Frame 41
onClipEvent (load) {
var radius = 45;
var speed = 4;
var xcenter = 360;
var ycenter = 120;
var degree = 180;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 23 MovieClip "five" in Frame 41
onClipEvent (load) {
var radius = 45;
var speed = 4;
var xcenter = 360;
var ycenter = 220;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 23 MovieClip "four" in Frame 41
onClipEvent (load) {
var radius = 45;
var speed = 4;
var xcenter = 300;
var ycenter = 300;
var degree = 180;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 99 MovieClip in Frame 41
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (calcDistance(xdiff, ydiff) > 25) {
_root.one.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (calcDistance(xdiff, ydiff) > 25) {
_root.two.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
var xdiff = (_root.three._x - _root.four._x);
var ydiff = (_root.three._y - _root.four._y);
if (calcDistance(xdiff, ydiff) > 25) {
_root.three.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
_root.three.gotoAndStop(1);
this._visible = false;
};
} else {
_root.three.gotoAndStop(1);
_root.four.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.four._currentframe == 2) {
var xdiff = (_root.four._x - _root.five._x);
var ydiff = (_root.four._y - _root.five._y);
if (calcDistance(xdiff, ydiff) > 25) {
_root.four.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.four.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.four.gotoAndStop(1);
_root.five.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.five._currentframe == 2) {
var xdiff = (_root.five._x - _root.six._x);
var ydiff = (_root.five._y - _root.six._y);
if (calcDistance(xdiff, ydiff) > 25) {
_root.five.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.five.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.five.gotoAndStop(1);
_root.six.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.six._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
_root.gotoAndStop(45);
}
}
Instance of Symbol 23 MovieClip "one" in Frame 41
onClipEvent (load) {
var radius = 45;
var speed = 4;
var xcenter = 140;
var ycenter = 120;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 23 MovieClip "two" in Frame 41
onClipEvent (load) {
var radius = 45;
var speed = 4;
var xcenter = 140;
var ycenter = 220;
var degree = 180;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Frame 44
gotoAndStop (42);
Frame 45
stop();
start.onRelease = function () {
gotoAndStop (46);
};
Frame 46
function startGame() {
_root.tryagain._visible = false;
_root.one.gotoAndStop(2);
attempts_txt.text = attempts;
}
function Game() {
doo = new startGame();
}
function calcDistance(xd, yd) {
var _local1 = Math.pow(xd, 2);
var _local2 = Math.pow(yd, 2);
var _local4 = _local1 + _local2;
var _local3 = Math.sqrt(_local4);
return(_local3);
}
function youFailed() {
failed = new Sound(this);
failed.attachSound("failed.wav");
failed.start();
_root.tryagain._visible = true;
_global.attempts++;
attempts_txt.text = attempts;
}
stop();
foo = new Game();
Instance of Symbol 23 MovieClip "three" in Frame 46
onClipEvent (load) {
var radius = 45;
var speed = 4;
var xcenter = 200;
var ycenter = 300;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
if (this._currentframe == 2) {
if (this.hitTest(_root.badelectron)) {
this.gotoAndPlay(1);
impact = new Sound(this);
impact.attachSound("hit.wav");
impact.start();
_root.two.gotoAndStop(2);
}
}
}
Instance of Symbol 23 MovieClip "six" in Frame 46
onClipEvent (load) {
var radius = 45;
var speed = 4;
var xcenter = 360;
var ycenter = 120;
var degree = 180;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
if (this._currentframe == 2) {
if (this.hitTest(_root.badelectron)) {
this.gotoAndPlay(1);
impact = new Sound(this);
impact.attachSound("hit.wav");
impact.start();
_root.five.gotoAndStop(2);
}
}
}
Instance of Symbol 23 MovieClip "five" in Frame 46
onClipEvent (load) {
var radius = 45;
var speed = 4;
var xcenter = 360;
var ycenter = 220;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
if (this._currentframe == 2) {
if (this.hitTest(_root.badelectron)) {
this.gotoAndPlay(1);
impact = new Sound(this);
impact.attachSound("hit.wav");
impact.start();
_root.four.gotoAndStop(2);
}
}
}
Instance of Symbol 23 MovieClip "four" in Frame 46
onClipEvent (load) {
var radius = 45;
var speed = 4;
var xcenter = 300;
var ycenter = 300;
var degree = 180;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
if (this._currentframe == 2) {
if (this.hitTest(_root.badelectron)) {
this.gotoAndPlay(1);
impact = new Sound(this);
impact.attachSound("hit.wav");
impact.start();
_root.three.gotoAndStop(2);
}
}
}
Instance of Symbol 99 MovieClip in Frame 46
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (calcDistance(xdiff, ydiff) > 20) {
_root.one.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (calcDistance(xdiff, ydiff) > 20) {
_root.two.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
var xdiff = (_root.three._x - _root.four._x);
var ydiff = (_root.three._y - _root.four._y);
if (calcDistance(xdiff, ydiff) > 20) {
_root.three.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
_root.three.gotoAndStop(1);
this._visible = false;
};
} else {
_root.three.gotoAndStop(1);
_root.four.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.four._currentframe == 2) {
var xdiff = (_root.four._x - _root.five._x);
var ydiff = (_root.four._y - _root.five._y);
if (calcDistance(xdiff, ydiff) > 20) {
_root.four.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.four.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.four.gotoAndStop(1);
_root.five.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.five._currentframe == 2) {
var xdiff = (_root.five._x - _root.six._x);
var ydiff = (_root.five._y - _root.six._y);
if (calcDistance(xdiff, ydiff) > 20) {
_root.five.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.five.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.five.gotoAndStop(1);
_root.six.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.six._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
_root.gotoAndStop(50);
}
}
Instance of Symbol 23 MovieClip "one" in Frame 46
onClipEvent (load) {
var radius = 45;
var speed = 4;
var xcenter = 140;
var ycenter = 120;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 23 MovieClip "two" in Frame 46
onClipEvent (load) {
var radius = 45;
var speed = 4;
var xcenter = 140;
var ycenter = 220;
var degree = 180;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
if (this._currentframe == 2) {
if (this.hitTest(_root.badelectron)) {
this.gotoAndPlay(1);
impact = new Sound(this);
impact.attachSound("hit.wav");
impact.start();
_root.one.gotoAndStop(2);
}
}
}
Instance of Symbol 73 MovieClip "badelectron" in Frame 46
onClipEvent (load) {
var radius = 100;
var speed = 2;
var xcenter = 250;
var ycenter = 200;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Frame 49
gotoAndStop (47);
Frame 50
stop();
start.onRelease = function () {
gotoAndStop (51);
};
Frame 51
function startGame() {
_root.tryagain._visible = false;
_root.one.gotoAndStop(2);
attempts_txt.text = attempts;
}
function Game() {
doo = new startGame();
}
function calcDistance(xd, yd) {
var _local1 = Math.pow(xd, 2);
var _local2 = Math.pow(yd, 2);
var _local4 = _local1 + _local2;
var _local3 = Math.sqrt(_local4);
return(_local3);
}
function youFailed() {
failed = new Sound(this);
failed.attachSound("failed.wav");
failed.start();
_root.tryagain._visible = true;
_global.attempts++;
attempts_txt.text = attempts;
}
stop();
foo = new Game();
Instance of Symbol 19 MovieClip "movingnucleus" in Frame 51
onClipEvent (load) {
var radius = 80;
var speed = 2;
var xcenter = 250;
var ycenter = 250;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (_root.calcDistance(xdiff, ydiff) > 57) {
_root.one.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (_root.calcDistance(xdiff, ydiff) > 57) {
_root.two.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
_root.gotoAndStop(55);
}
}
Instance of Symbol 113 MovieClip in Frame 51
onClipEvent (load) {
var radius = 80;
var speed = 2;
var xcenter = 250;
var ycenter = 250;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 23 MovieClip "one" in Frame 51
onClipEvent (load) {
var radius = 100;
var speed = -2;
var degree = 180;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.movingnucleus._x;
var ycenter = _root.movingnucleus._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 23 MovieClip "two" in Frame 51
onClipEvent (load) {
var radius = 75;
var speed = 2;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.movingnucleus._x;
var ycenter = _root.movingnucleus._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 23 MovieClip "three" in Frame 51
onClipEvent (load) {
var radius = 45;
var speed = -2;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.movingnucleus._x;
var ycenter = _root.movingnucleus._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Frame 54
gotoAndStop (52);
Frame 55
stop();
start.onRelease = function () {
gotoAndStop (56);
};
Frame 56
function startGame() {
_root.tryagain._visible = false;
_root.one.gotoAndStop(2);
attempts_txt.text = attempts;
}
function Game() {
doo = new startGame();
}
function calcDistance(xd, yd) {
var _local1 = Math.pow(xd, 2);
var _local2 = Math.pow(yd, 2);
var _local4 = _local1 + _local2;
var _local3 = Math.sqrt(_local4);
return(_local3);
}
function youFailed() {
failed = new Sound(this);
failed.attachSound("failed.wav");
failed.start();
_root.tryagain._visible = true;
_global.attempts++;
attempts_txt.text = attempts;
}
stop();
foo = new Game();
Instance of Symbol 118 MovieClip in Frame 56
onClipEvent (load) {
var radius = 80;
var speed = 2;
var xcenter = 160;
var ycenter = 250;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 118 MovieClip in Frame 56
onClipEvent (load) {
var radius = 80;
var speed = -2;
var xcenter = 320;
var ycenter = 280;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 19 MovieClip "movingnucleus" in Frame 56
onClipEvent (load) {
var radius = 80;
var speed = 2;
var xcenter = 160;
var ycenter = 250;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (_root.calcDistance(xdiff, ydiff) > 37) {
_root.one.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (_root.calcDistance(xdiff, ydiff) > 37) {
_root.two.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
var xdiff = (_root.three._x - _root.four._x);
var ydiff = (_root.three._y - _root.four._y);
if (_root.calcDistance(xdiff, ydiff) > 37) {
_root.three.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.three.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.three.gotoAndStop(1);
_root.four.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.four._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
_root.gotoAndStop(60);
}
}
Instance of Symbol 23 MovieClip "one" in Frame 56
onClipEvent (load) {
var radius = 45;
var speed = -2;
var degree = 180;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.movingnucleus._x;
var ycenter = _root.movingnucleus._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 23 MovieClip "two" in Frame 56
onClipEvent (load) {
var radius = 75;
var speed = 2;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.movingnucleus._x;
var ycenter = _root.movingnucleus._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 23 MovieClip "three" in Frame 56
onClipEvent (load) {
var radius = 75;
var speed = -2;
var degree = 180;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.movingnucleus2._x;
var ycenter = _root.movingnucleus2._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 19 MovieClip "movingnucleus2" in Frame 56
onClipEvent (load) {
var radius = 80;
var speed = -2;
var xcenter = 320;
var ycenter = 280;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (_root.calcDistance(xdiff, ydiff) > 57) {
_root.one.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (_root.calcDistance(xdiff, ydiff) > 57) {
_root.two.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
var xdiff = (_root.three._x - _root.four._x);
var ydiff = (_root.three._y - _root.four._y);
if (_root.calcDistance(xdiff, ydiff) > 57) {
_root.three.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.three.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.three.gotoAndStop(1);
_root.four.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.four._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
_root.gotoAndStop(60);
}
}
Instance of Symbol 23 MovieClip "four" in Frame 56
onClipEvent (load) {
var radius = 45;
var speed = 2;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.movingnucleus2._x;
var ycenter = _root.movingnucleus2._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Frame 59
gotoAndStop (57);
Frame 60
stop();
start.onRelease = function () {
gotoAndStop (61);
};
Frame 61
function startGame() {
_root.tryagain._visible = false;
_root.one.gotoAndStop(2);
attempts_txt.text = attempts;
}
function Game() {
doo = new startGame();
}
function calcDistance(xd, yd) {
var _local1 = Math.pow(xd, 2);
var _local2 = Math.pow(yd, 2);
var _local4 = _local1 + _local2;
var _local3 = Math.sqrt(_local4);
return(_local3);
}
function youFailed() {
failed = new Sound(this);
failed.attachSound("failed.wav");
failed.start();
_root.tryagain._visible = true;
_global.attempts++;
attempts_txt.text = attempts;
}
stop();
foo = new Game();
Instance of Symbol 23 MovieClip "two" in Frame 61
onClipEvent (load) {
var radius = 45;
var speed = 4;
var xcenter = 250;
var ycenter = 250;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 15 MovieClip in Frame 61
onClipEvent (enterFrame) {
this._x = _root.mn2._x;
this._y = _root.mn2._y;
}
Instance of Symbol 23 MovieClip "three" in Frame 61
onClipEvent (load) {
var radius = 45;
var speed = 2;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.mn2._x;
var ycenter = _root.mn2._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 15 MovieClip in Frame 61
onClipEvent (enterFrame) {
this._x = _root.mn1._x;
this._y = _root.mn1._y;
}
Instance of Symbol 19 MovieClip "mn1" in Frame 61
onClipEvent (load) {
var radius = 100;
var speed = -2;
var xcenter = 250;
var ycenter = 250;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (_root.calcDistance(xdiff, ydiff) > 30) {
_root.one.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (_root.calcDistance(xdiff, ydiff) > 30) {
_root.two.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
_root.gotoAndStop(65);
}
}
Instance of Symbol 23 MovieClip "one" in Frame 61
onClipEvent (load) {
var radius = 45;
var speed = 2;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.mn1._x;
var ycenter = _root.mn1._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 99 MovieClip "mn2" in Frame 61
onClipEvent (load) {
var radius = 100;
var speed = -2;
var xcenter = 250;
var ycenter = 250;
var degree = 180;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (_root.calcDistance(xdiff, ydiff) > 30) {
_root.one.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (_root.calcDistance(xdiff, ydiff) > 30) {
_root.two.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
_root.gotoAndStop(65);
}
}
Frame 64
gotoAndStop (62);
Frame 65
stop();
start.onRelease = function () {
gotoAndStop (66);
};
Frame 66
function startGame() {
_root.tryagain._visible = false;
_root.one.gotoAndStop(2);
attempts_txt.text = attempts;
}
function Game() {
doo = new startGame();
}
function calcDistance(xd, yd) {
var _local1 = Math.pow(xd, 2);
var _local2 = Math.pow(yd, 2);
var _local4 = _local1 + _local2;
var _local3 = Math.sqrt(_local4);
return(_local3);
}
function youFailed() {
failed = new Sound(this);
failed.attachSound("failed.wav");
failed.start();
_root.tryagain._visible = true;
_global.attempts++;
attempts_txt.text = attempts;
}
stop();
foo = new Game();
Instance of Symbol 23 MovieClip "two" in Frame 66
onClipEvent (load) {
var radius = 45;
var speed = 4;
var xcenter = 250;
var ycenter = 250;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
if (this._currentframe == 2) {
if (this.hitTest(_root.badelectron)) {
this.gotoAndPlay(1);
impact = new Sound(this);
impact.attachSound("hit.wav");
impact.start();
_root.one.gotoAndStop(2);
}
}
}
Instance of Symbol 15 MovieClip in Frame 66
onClipEvent (enterFrame) {
this._x = _root.mn2._x;
this._y = _root.mn2._y;
}
Instance of Symbol 23 MovieClip "three" in Frame 66
onClipEvent (load) {
var radius = 45;
var speed = 2;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.mn2._x;
var ycenter = _root.mn2._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
if (this._currentframe == 2) {
if (this.hitTest(_root.badelectron)) {
this.gotoAndPlay(1);
impact = new Sound(this);
impact.attachSound("hit.wav");
impact.start();
_root.one.gotoAndStop(2);
}
}
}
Instance of Symbol 15 MovieClip in Frame 66
onClipEvent (enterFrame) {
this._x = _root.mn1._x;
this._y = _root.mn1._y;
}
Instance of Symbol 19 MovieClip "mn1" in Frame 66
onClipEvent (load) {
var radius = 100;
var speed = -2;
var xcenter = 250;
var ycenter = 250;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (_root.calcDistance(xdiff, ydiff) > 30) {
_root.one.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (_root.calcDistance(xdiff, ydiff) > 30) {
_root.two.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
_root.gotoAndStop(70);
}
}
Instance of Symbol 23 MovieClip "one" in Frame 66
onClipEvent (load) {
var radius = 45;
var speed = 2;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.mn1._x;
var ycenter = _root.mn1._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 99 MovieClip "mn2" in Frame 66
onClipEvent (load) {
var radius = 100;
var speed = -2;
var xcenter = 250;
var ycenter = 250;
var degree = 180;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (_root.calcDistance(xdiff, ydiff) > 30) {
_root.one.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (_root.calcDistance(xdiff, ydiff) > 30) {
_root.two.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
_root.gotoAndStop(70);
}
}
Instance of Symbol 73 MovieClip "badelectron" in Frame 66
onClipEvent (load) {
var radius = 100;
var speed = 1.5;
var xcenter = 250;
var ycenter = 250;
var degree = 90;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Frame 69
gotoAndStop (67);
Frame 70
stop();
start.onRelease = function () {
gotoAndStop (71);
};
Frame 71
function startGame() {
_root.tryagain._visible = false;
_root.one.gotoAndStop(2);
attempts_txt.text = attempts;
}
function Game() {
doo = new startGame();
}
function calcDistance(xd, yd) {
var _local1 = Math.pow(xd, 2);
var _local2 = Math.pow(yd, 2);
var _local4 = _local1 + _local2;
var _local3 = Math.sqrt(_local4);
return(_local3);
}
function youFailed() {
failed = new Sound(this);
failed.attachSound("failed.wav");
failed.start();
_root.tryagain._visible = true;
_global.attempts++;
attempts_txt.text = attempts;
}
stop();
foo = new Game();
Instance of Symbol 15 MovieClip in Frame 71
onClipEvent (enterFrame) {
this._x = _root.mn1._x;
this._y = _root.mn1._y;
}
Instance of Symbol 19 MovieClip "mn1" in Frame 71
onClipEvent (load) {
var radius = 100;
var speed = -1;
var xcenter = 250;
var ycenter = 250;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (_root.calcDistance(xdiff, ydiff) > 30) {
_root.one.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (_root.calcDistance(xdiff, ydiff) > 30) {
_root.two.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
var xdiff = (_root.three._x - _root.four._x);
var ydiff = (_root.three._y - _root.four._y);
if (_root.calcDistance(xdiff, ydiff) > 30) {
_root.three.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.three.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.three.gotoAndStop(1);
_root.four.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.four._currentframe == 2) {
var xdiff = (_root.four._x - _root.five._x);
var ydiff = (_root.four._y - _root.five._y);
if (_root.calcDistance(xdiff, ydiff) > 30) {
_root.four.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.four.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.four.gotoAndStop(1);
_root.five.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.five._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
_root.gotoAndStop(75);
}
}
Instance of Symbol 23 MovieClip "one" in Frame 71
onClipEvent (load) {
var radius = 45;
var speed = 2;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.mn1._x;
var ycenter = _root.mn1._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 15 MovieClip in Frame 71
onClipEvent (enterFrame) {
this._x = _root.mn2._x;
this._y = _root.mn2._y;
}
Instance of Symbol 19 MovieClip "mn2" in Frame 71
onClipEvent (load) {
var radius = 100;
var speed = -1;
var xcenter = 250;
var ycenter = 250;
var degree = 72;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (_root.calcDistance(xdiff, ydiff) > 30) {
_root.one.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (_root.calcDistance(xdiff, ydiff) > 30) {
_root.two.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
var xdiff = (_root.three._x - _root.four._x);
var ydiff = (_root.three._y - _root.four._y);
if (_root.calcDistance(xdiff, ydiff) > 30) {
_root.three.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.three.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.three.gotoAndStop(1);
_root.four.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.four._currentframe == 2) {
var xdiff = (_root.four._x - _root.five._x);
var ydiff = (_root.four._y - _root.five._y);
if (_root.calcDistance(xdiff, ydiff) > 30) {
_root.four.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.four.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.four.gotoAndStop(1);
_root.five.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.five._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
_root.gotoAndStop(75);
}
}
Instance of Symbol 23 MovieClip "two" in Frame 71
onClipEvent (load) {
var radius = 45;
var speed = 2;
var degree = 180;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.mn2._x;
var ycenter = _root.mn2._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 15 MovieClip in Frame 71
onClipEvent (enterFrame) {
this._x = _root.mn3._x;
this._y = _root.mn3._y;
}
Instance of Symbol 19 MovieClip "mn3" in Frame 71
onClipEvent (load) {
var radius = 100;
var speed = -1;
var xcenter = 250;
var ycenter = 250;
var degree = 144;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (_root.calcDistance(xdiff, ydiff) > 30) {
_root.one.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (_root.calcDistance(xdiff, ydiff) > 30) {
_root.two.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
var xdiff = (_root.three._x - _root.four._x);
var ydiff = (_root.three._y - _root.four._y);
if (_root.calcDistance(xdiff, ydiff) > 30) {
_root.three.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.three.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.three.gotoAndStop(1);
_root.four.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.four._currentframe == 2) {
var xdiff = (_root.four._x - _root.five._x);
var ydiff = (_root.four._y - _root.five._y);
if (_root.calcDistance(xdiff, ydiff) > 30) {
_root.four.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.four.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.four.gotoAndStop(1);
_root.five.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.five._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
_root.gotoAndStop(75);
}
}
Instance of Symbol 23 MovieClip "three" in Frame 71
onClipEvent (load) {
var radius = 45;
var speed = 2;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.mn3._x;
var ycenter = _root.mn3._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 15 MovieClip in Frame 71
onClipEvent (enterFrame) {
this._x = _root.mn4._x;
this._y = _root.mn4._y;
}
Instance of Symbol 19 MovieClip "mn4" in Frame 71
onClipEvent (load) {
var radius = 100;
var speed = -1;
var xcenter = 250;
var ycenter = 250;
var degree = 216;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (_root.calcDistance(xdiff, ydiff) > 30) {
_root.one.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (_root.calcDistance(xdiff, ydiff) > 30) {
_root.two.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
var xdiff = (_root.three._x - _root.four._x);
var ydiff = (_root.three._y - _root.four._y);
if (_root.calcDistance(xdiff, ydiff) > 30) {
_root.three.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.three.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.three.gotoAndStop(1);
_root.four.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.four._currentframe == 2) {
var xdiff = (_root.four._x - _root.five._x);
var ydiff = (_root.four._y - _root.five._y);
if (_root.calcDistance(xdiff, ydiff) > 30) {
_root.four.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.four.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.four.gotoAndStop(1);
_root.five.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.five._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
_root.gotoAndStop(75);
}
}
Instance of Symbol 23 MovieClip "four" in Frame 71
onClipEvent (load) {
var radius = 45;
var speed = 2;
var degree = 180;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.mn4._x;
var ycenter = _root.mn4._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 15 MovieClip in Frame 71
onClipEvent (enterFrame) {
this._x = _root.mn5._x;
this._y = _root.mn5._y;
}
Instance of Symbol 23 MovieClip "five" in Frame 71
onClipEvent (load) {
var radius = 45;
var speed = 2;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.mn5._x;
var ycenter = _root.mn5._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 99 MovieClip "mn5" in Frame 71
onClipEvent (load) {
var radius = 100;
var speed = -1;
var xcenter = 250;
var ycenter = 250;
var degree = 288;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (_root.calcDistance(xdiff, ydiff) > 30) {
_root.one.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (_root.calcDistance(xdiff, ydiff) > 30) {
_root.two.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
var xdiff = (_root.three._x - _root.four._x);
var ydiff = (_root.three._y - _root.four._y);
if (_root.calcDistance(xdiff, ydiff) > 30) {
_root.three.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.three.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.three.gotoAndStop(1);
_root.four.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.four._currentframe == 2) {
var xdiff = (_root.four._x - _root.five._x);
var ydiff = (_root.four._y - _root.five._y);
if (_root.calcDistance(xdiff, ydiff) > 30) {
_root.four.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.four.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.four.gotoAndStop(1);
_root.five.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.five._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
_root.gotoAndStop(75);
}
}
Frame 74
gotoAndStop (72);
Frame 75
stop();
start.onRelease = function () {
gotoAndStop (76);
};
Frame 76
function startGame() {
_root.tryagain._visible = false;
_root.one.gotoAndStop(2);
attempts_txt.text = attempts;
}
function Game() {
doo = new startGame();
}
function calcDistance(xd, yd) {
var _local1 = Math.pow(xd, 2);
var _local2 = Math.pow(yd, 2);
var _local4 = _local1 + _local2;
var _local3 = Math.sqrt(_local4);
return(_local3);
}
function youFailed() {
failed = new Sound(this);
failed.attachSound("failed.wav");
failed.start();
_root.tryagain._visible = true;
_global.attempts++;
attempts_txt.text = attempts;
}
stop();
foo = new Game();
Instance of Symbol 15 MovieClip in Frame 76
onClipEvent (enterFrame) {
this._x = _root.mn1._x;
this._y = _root.mn1._y;
}
Instance of Symbol 19 MovieClip "mn1" in Frame 76
onClipEvent (load) {
var radius = 150;
var speed = -1.5;
var xcenter = 250;
var ycenter = 80;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
}
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (_root.calcDistance(xdiff, ydiff) > 45) {
_root.one.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (_root.calcDistance(xdiff, ydiff) > 45) {
_root.two.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
var xdiff = (_root.three._x - _root.four._x);
var ydiff = (_root.three._y - _root.four._y);
if (_root.calcDistance(xdiff, ydiff) > 45) {
_root.three.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.three.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.three.gotoAndStop(1);
_root.four.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.four._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
_root.gotoAndStop(80);
}
}
Instance of Symbol 23 MovieClip "one" in Frame 76
onClipEvent (load) {
var radius = 45;
var speed = 2;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.mn1._x;
var ycenter = _root.mn1._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 15 MovieClip in Frame 76
onClipEvent (enterFrame) {
this._x = _root.mn2._x;
this._y = _root.mn2._y;
}
Instance of Symbol 19 MovieClip "mn2" in Frame 76
onClipEvent (load) {
var radius = 150;
var speed = 1.5;
var xcenter = 250;
var ycenter = 160;
var degree = 180;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
}
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (_root.calcDistance(xdiff, ydiff) > 45) {
_root.one.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (_root.calcDistance(xdiff, ydiff) > 45) {
_root.two.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
var xdiff = (_root.three._x - _root.four._x);
var ydiff = (_root.three._y - _root.four._y);
if (_root.calcDistance(xdiff, ydiff) > 45) {
_root.three.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.three.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.three.gotoAndStop(1);
_root.four.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.four._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
_root.gotoAndStop(80);
}
}
Instance of Symbol 23 MovieClip "two" in Frame 76
onClipEvent (load) {
var radius = 45;
var speed = 2;
var degree = 180;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.mn2._x;
var ycenter = _root.mn2._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 15 MovieClip in Frame 76
onClipEvent (enterFrame) {
this._x = _root.mn3._x;
this._y = _root.mn3._y;
}
Instance of Symbol 19 MovieClip "mn3" in Frame 76
onClipEvent (load) {
var radius = 150;
var speed = -1.5;
var xcenter = 250;
var ycenter = 240;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
}
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (_root.calcDistance(xdiff, ydiff) > 45) {
_root.one.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (_root.calcDistance(xdiff, ydiff) > 45) {
_root.two.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
var xdiff = (_root.three._x - _root.four._x);
var ydiff = (_root.three._y - _root.four._y);
if (_root.calcDistance(xdiff, ydiff) > 45) {
_root.three.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.three.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.three.gotoAndStop(1);
_root.four.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.four._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
_root.gotoAndStop(80);
}
}
Instance of Symbol 23 MovieClip "three" in Frame 76
onClipEvent (load) {
var radius = 45;
var speed = 2;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.mn3._x;
var ycenter = _root.mn3._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 15 MovieClip in Frame 76
onClipEvent (enterFrame) {
this._x = _root.mn4._x;
this._y = _root.mn4._y;
}
Instance of Symbol 23 MovieClip "four" in Frame 76
onClipEvent (load) {
var radius = 45;
var speed = 2;
var degree = 180;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.mn4._x;
var ycenter = _root.mn4._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 99 MovieClip "mn4" in Frame 76
onClipEvent (load) {
var radius = 150;
var speed = 1.5;
var xcenter = 250;
var ycenter = 300;
var degree = 180;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
}
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (_root.calcDistance(xdiff, ydiff) > 45) {
_root.one.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (_root.calcDistance(xdiff, ydiff) > 45) {
_root.two.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
var xdiff = (_root.three._x - _root.four._x);
var ydiff = (_root.three._y - _root.four._y);
if (_root.calcDistance(xdiff, ydiff) > 45) {
_root.three.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.three.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.three.gotoAndStop(1);
_root.four.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.four._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
_root.gotoAndStop(80);
}
}
Frame 79
gotoAndStop (77);
Frame 80
stop();
start.onRelease = function () {
gotoAndStop (81);
};
Frame 81
function startGame() {
_root.tryagain._visible = false;
_root.one.gotoAndStop(2);
attempts_txt.text = attempts;
}
function Game() {
doo = new startGame();
}
function calcDistance(xd, yd) {
var _local1 = Math.pow(xd, 2);
var _local2 = Math.pow(yd, 2);
var _local4 = _local1 + _local2;
var _local3 = Math.sqrt(_local4);
return(_local3);
}
function youFailed() {
failed = new Sound(this);
failed.attachSound("failed.wav");
failed.start();
_root.tryagain._visible = true;
_global.attempts++;
attempts_txt.text = attempts;
}
stop();
foo = new Game();
Instance of Symbol 15 MovieClip in Frame 81
onClipEvent (enterFrame) {
this._x = _root.mn1._x;
this._y = _root.mn1._y;
}
Instance of Symbol 19 MovieClip "mn1" in Frame 81
onClipEvent (load) {
var radius = 150;
var speed = -1.5;
var xcenter = 250;
var ycenter = 80;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
}
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.one.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.two.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
var xdiff = (_root.three._x - _root.four._x);
var ydiff = (_root.three._y - _root.four._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.three.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.three.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.three.gotoAndStop(1);
_root.four.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.four._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
_root.gotoAndStop(85);
}
}
Instance of Symbol 23 MovieClip "one" in Frame 81
onClipEvent (load) {
var radius = 45;
var speed = 2;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.mn1._x;
var ycenter = _root.mn1._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 15 MovieClip in Frame 81
onClipEvent (enterFrame) {
this._x = _root.mn2._x;
this._y = _root.mn2._y;
}
Instance of Symbol 19 MovieClip "mn2" in Frame 81
onClipEvent (load) {
var radius = 120;
var speed = 1.5;
var ycenter = 250;
this._x = 400;
var degree = 180;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._y = ycenter - (Math.sin(radian) * radius);
}
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.one.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.two.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
var xdiff = (_root.three._x - _root.four._x);
var ydiff = (_root.three._y - _root.four._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.three.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.three.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.three.gotoAndStop(1);
_root.four.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.four._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
_root.gotoAndStop(85);
}
}
Instance of Symbol 23 MovieClip "two" in Frame 81
onClipEvent (load) {
var radius = 45;
var speed = 2;
var degree = 180;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.mn2._x;
var ycenter = _root.mn2._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 15 MovieClip in Frame 81
onClipEvent (enterFrame) {
this._x = _root.mn3._x;
this._y = _root.mn3._y;
}
Instance of Symbol 19 MovieClip "mn3" in Frame 81
onClipEvent (load) {
var radius = 130;
var speed = -1.5;
var xcenter = 250;
var ycenter = 240;
this._y = 400;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
}
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.one.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.two.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
var xdiff = (_root.three._x - _root.four._x);
var ydiff = (_root.three._y - _root.four._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.three.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.three.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.three.gotoAndStop(1);
_root.four.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.four._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
_root.gotoAndStop(85);
}
}
Instance of Symbol 23 MovieClip "three" in Frame 81
onClipEvent (load) {
var radius = 45;
var speed = 2;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.mn3._x;
var ycenter = _root.mn3._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 15 MovieClip in Frame 81
onClipEvent (enterFrame) {
this._x = _root.mn4._x;
this._y = _root.mn4._y;
}
Instance of Symbol 23 MovieClip "four" in Frame 81
onClipEvent (load) {
var radius = 45;
var speed = 2;
var degree = 180;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.mn4._x;
var ycenter = _root.mn4._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 99 MovieClip "mn4" in Frame 81
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.one.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.two.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
var xdiff = (_root.three._x - _root.four._x);
var ydiff = (_root.three._y - _root.four._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.three.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.three.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.three.gotoAndStop(1);
_root.four.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.four._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
_root.gotoAndStop(85);
}
}
Frame 84
gotoAndStop (82);
Frame 85
stop();
start.onRelease = function () {
gotoAndStop (86);
};
Frame 86
function startGame() {
_root.tryagain._visible = false;
_root.one.gotoAndStop(2);
attempts_txt.text = attempts;
}
function Game() {
doo = new startGame();
}
function calcDistance(xd, yd) {
var _local1 = Math.pow(xd, 2);
var _local2 = Math.pow(yd, 2);
var _local4 = _local1 + _local2;
var _local3 = Math.sqrt(_local4);
return(_local3);
}
function youFailed() {
failed = new Sound(this);
failed.attachSound("failed.wav");
failed.start();
_root.tryagain._visible = true;
_global.attempts++;
attempts_txt.text = attempts;
}
stop();
foo = new Game();
Instance of Symbol 15 MovieClip in Frame 86
onClipEvent (enterFrame) {
this._x = _root.mn1._x;
this._y = _root.mn1._y;
}
Instance of Symbol 19 MovieClip "mn1" in Frame 86
onClipEvent (load) {
var radius = 100;
var speed = 1.6;
var ycenter = 250;
this._x = 100;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._y = ycenter - (Math.sin(radian) * radius);
}
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
trace(_root.calcDistance(xdiff, ydiff));
if (_root.calcDistance(xdiff, ydiff) > 59) {
_root.one.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (_root.calcDistance(xdiff, ydiff) > 59) {
_root.two.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
_root.gotoAndStop(90);
}
}
Instance of Symbol 23 MovieClip "one" in Frame 86
onClipEvent (load) {
var radius = 45;
var speed = 2;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.mn1._x;
var ycenter = _root.mn1._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 15 MovieClip in Frame 86
onClipEvent (enterFrame) {
this._x = _root.mn2._x;
this._y = _root.mn2._y;
}
Instance of Symbol 19 MovieClip "mn2" in Frame 86
onClipEvent (load) {
var radius = 120;
var speed = 1.5;
var xcenter = 250;
var ycenter = 250;
this._x = xcenter;
this._y = ycenter;
var degree = 180;
var radian;
}
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (_root.calcDistance(xdiff, ydiff) > 59) {
_root.one.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (_root.calcDistance(xdiff, ydiff) > 59) {
_root.two.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
_root.gotoAndStop(90);
}
}
Instance of Symbol 23 MovieClip "two" in Frame 86
onClipEvent (load) {
var radius = 95;
var speed = 3;
var degree = 180;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.mn2._x;
var ycenter = _root.mn2._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 15 MovieClip in Frame 86
onClipEvent (enterFrame) {
this._x = _root.mn3._x;
this._y = _root.mn3._y;
}
Instance of Symbol 23 MovieClip "three" in Frame 86
onClipEvent (load) {
var radius = 45;
var speed = -1;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.mn3._x;
var ycenter = _root.mn3._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 99 MovieClip "mn3" in Frame 86
onClipEvent (load) {
var radius = 100;
var speed = 1.6;
var ycenter = 250;
this._x = 400;
var degree = 180;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._y = ycenter - (Math.sin(radian) * radius);
}
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (_root.calcDistance(xdiff, ydiff) > 59) {
_root.one.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (_root.calcDistance(xdiff, ydiff) > 59) {
_root.two.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
_root.gotoAndStop(90);
}
}
Frame 89
gotoAndStop (87);
Frame 90
stop();
start.onRelease = function () {
gotoAndStop (91);
};
Frame 91
function startGame() {
_root.tryagain._visible = false;
_root.one.gotoAndStop(2);
attempts_txt.text = attempts;
}
function Game() {
doo = new startGame();
}
function calcDistance(xd, yd) {
var _local1 = Math.pow(xd, 2);
var _local2 = Math.pow(yd, 2);
var _local4 = _local1 + _local2;
var _local3 = Math.sqrt(_local4);
return(_local3);
}
function youFailed() {
failed = new Sound(this);
failed.attachSound("failed.wav");
failed.start();
_root.tryagain._visible = true;
_global.attempts++;
attempts_txt.text = attempts;
}
stop();
foo = new Game();
Instance of Symbol 15 MovieClip in Frame 91
onClipEvent (enterFrame) {
this._x = _root.mn1._x;
this._y = _root.mn1._y;
}
Instance of Symbol 19 MovieClip "mn1" in Frame 91
onClipEvent (load) {
var radius = 200;
var speed = 1.5;
var xcenter = 250;
var ycenter = 250;
this._x = 400;
var degree = 180;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.one.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.two.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
var xdiff = (_root.three._x - _root.four._x);
var ydiff = (_root.three._y - _root.four._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.three.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.three.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.three.gotoAndStop(1);
_root.four.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.four._currentframe == 2) {
var xdiff = (_root.four._x - _root.five._x);
var ydiff = (_root.four._y - _root.five._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.four.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.four.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.four.gotoAndStop(1);
_root.five.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.five._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
_root.gotoAndStop(95);
}
}
Instance of Symbol 23 MovieClip "one" in Frame 91
onClipEvent (load) {
var radius = 45;
var speed = 4;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.mn1._x;
var ycenter = _root.mn1._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 15 MovieClip in Frame 91
onClipEvent (enterFrame) {
this._x = _root.mn2._x;
this._y = _root.mn2._y;
}
Instance of Symbol 19 MovieClip "mn2" in Frame 91
onClipEvent (load) {
var radius = 100;
var speed = 1.5;
var xcenter = 250;
var ycenter = 250;
this._x = 400;
var degree = 180;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.one.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.two.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
var xdiff = (_root.three._x - _root.four._x);
var ydiff = (_root.three._y - _root.four._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.three.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.three.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.three.gotoAndStop(1);
_root.four.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.four._currentframe == 2) {
var xdiff = (_root.four._x - _root.five._x);
var ydiff = (_root.four._y - _root.five._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.four.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.four.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.four.gotoAndStop(1);
_root.five.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.five._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
_root.gotoAndStop(95);
}
}
Instance of Symbol 23 MovieClip "two" in Frame 91
onClipEvent (load) {
var radius = 45;
var speed = 4;
var degree = 180;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.mn2._x;
var ycenter = _root.mn2._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 15 MovieClip in Frame 91
onClipEvent (enterFrame) {
this._x = _root.mn3._x;
this._y = _root.mn3._y;
}
Instance of Symbol 19 MovieClip "mn3" in Frame 91
onClipEvent (load) {
this._x = (this._y = 250);
}
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.one.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.two.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
var xdiff = (_root.three._x - _root.four._x);
var ydiff = (_root.three._y - _root.four._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.three.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.three.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.three.gotoAndStop(1);
_root.four.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.four._currentframe == 2) {
var xdiff = (_root.four._x - _root.five._x);
var ydiff = (_root.four._y - _root.five._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.four.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.four.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.four.gotoAndStop(1);
_root.five.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.five._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
_root.gotoAndStop(95);
}
}
Instance of Symbol 23 MovieClip "three" in Frame 91
onClipEvent (load) {
var radius = 45;
var speed = 4;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.mn3._x;
var ycenter = _root.mn3._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 15 MovieClip in Frame 91
onClipEvent (enterFrame) {
this._x = _root.mn5._x;
this._y = _root.mn5._y;
}
Instance of Symbol 23 MovieClip "five" in Frame 91
onClipEvent (load) {
var radius = 45;
var speed = 4;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.mn5._x;
var ycenter = _root.mn5._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 99 MovieClip "mn5" in Frame 91
onClipEvent (load) {
var radius = 200;
var speed = 1.5;
var xcenter = 250;
var ycenter = 250;
this._x = 400;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.one.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.two.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
var xdiff = (_root.three._x - _root.four._x);
var ydiff = (_root.three._y - _root.four._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.three.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.three.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.three.gotoAndStop(1);
_root.four.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.four._currentframe == 2) {
var xdiff = (_root.four._x - _root.five._x);
var ydiff = (_root.four._y - _root.five._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.four.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.four.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.four.gotoAndStop(1);
_root.five.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.five._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
_root.gotoAndStop(95);
}
}
Instance of Symbol 15 MovieClip in Frame 91
onClipEvent (enterFrame) {
this._x = _root.mn4._x;
this._y = _root.mn4._y;
}
Instance of Symbol 19 MovieClip "mn4" in Frame 91
onClipEvent (load) {
var radius = 100;
var speed = 1.5;
var xcenter = 250;
var ycenter = 250;
this._x = 400;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.one.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.two.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
var xdiff = (_root.three._x - _root.four._x);
var ydiff = (_root.three._y - _root.four._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.three.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.three.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.three.gotoAndStop(1);
_root.four.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.four._currentframe == 2) {
var xdiff = (_root.four._x - _root.five._x);
var ydiff = (_root.four._y - _root.five._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.four.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.four.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.four.gotoAndStop(1);
_root.five.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.five._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
_root.gotoAndStop(95);
}
}
Instance of Symbol 23 MovieClip "four" in Frame 91
onClipEvent (load) {
var radius = 45;
var speed = 4;
var degree = 180;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.mn4._x;
var ycenter = _root.mn4._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Frame 94
gotoAndStop (92);
Frame 95
stop();
start.onRelease = function () {
gotoAndStop (96);
};
Frame 96
function startGame() {
_root.tryagain._visible = false;
_root.one.gotoAndStop(2);
attempts_txt.text = attempts;
}
function Game() {
doo = new startGame();
}
function calcDistance(xd, yd) {
var _local1 = Math.pow(xd, 2);
var _local2 = Math.pow(yd, 2);
var _local4 = _local1 + _local2;
var _local3 = Math.sqrt(_local4);
return(_local3);
}
function youFailed() {
failed = new Sound(this);
failed.attachSound("failed.wav");
failed.start();
_root.tryagain._visible = true;
_global.attempts++;
attempts_txt.text = attempts;
}
stop();
foo = new Game();
Instance of Symbol 118 MovieClip in Frame 96
onClipEvent (enterFrame) {
this._x = _root.mn1._x;
this._y = _root.mn1._y;
}
Instance of Symbol 19 MovieClip "mn1" in Frame 96
onClipEvent (load) {
var radius = 150;
var speed = 2;
var ycenter = 250;
this._x = 120;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._y = ycenter - (Math.sin(radian) * radius);
}
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (_root.calcDistance(xdiff, ydiff) > 37) {
_root.one.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (_root.calcDistance(xdiff, ydiff) > 37) {
_root.two.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
var xdiff = (_root.three._x - _root.four._x);
var ydiff = (_root.three._y - _root.four._y);
if (_root.calcDistance(xdiff, ydiff) > 37) {
_root.three.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.three.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.three.gotoAndStop(1);
_root.four.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.four._currentframe == 2) {
var xdiff = (_root.four._x - _root.five._x);
var ydiff = (_root.four._y - _root.five._y);
if (_root.calcDistance(xdiff, ydiff) > 37) {
_root.four.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.four.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.four.gotoAndStop(1);
_root.five.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.five._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
_root.gotoAndStop(100);
}
}
Instance of Symbol 23 MovieClip "one" in Frame 96
onClipEvent (load) {
var radius = 45;
var speed = -2;
var degree = 180;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.mn1._x;
var ycenter = _root.mn1._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 23 MovieClip "two" in Frame 96
onClipEvent (load) {
var radius = 75;
var speed = 2;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.mn1._x;
var ycenter = _root.mn1._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 118 MovieClip in Frame 96
onClipEvent (enterFrame) {
this._x = _root.mn3._x;
this._y = _root.mn3._y;
}
Instance of Symbol 23 MovieClip "five" in Frame 96
onClipEvent (load) {
var radius = 45;
var speed = -2;
var degree = 270;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.mn3._x;
var ycenter = _root.mn3._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 23 MovieClip "four" in Frame 96
onClipEvent (load) {
var radius = 75;
var speed = 2;
var degree = 90;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.mn3._x;
var ycenter = _root.mn3._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 15 MovieClip in Frame 96
onClipEvent (enterFrame) {
this._x = _root.mn2._x;
this._y = _root.mn2._y;
}
Instance of Symbol 19 MovieClip "mn2" in Frame 96
onClipEvent (load) {
this._x = (this._y = 250);
}
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (_root.calcDistance(xdiff, ydiff) > 37) {
_root.one.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (_root.calcDistance(xdiff, ydiff) > 37) {
_root.two.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
var xdiff = (_root.three._x - _root.four._x);
var ydiff = (_root.three._y - _root.four._y);
if (_root.calcDistance(xdiff, ydiff) > 45) {
_root.three.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.three.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.three.gotoAndStop(1);
_root.four.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.four._currentframe == 2) {
var xdiff = (_root.four._x - _root.five._x);
var ydiff = (_root.four._y - _root.five._y);
if (_root.calcDistance(xdiff, ydiff) > 37) {
_root.four.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.four.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.four.gotoAndStop(1);
_root.five.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.five._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
_root.gotoAndStop(100);
}
}
Instance of Symbol 23 MovieClip "three" in Frame 96
onClipEvent (load) {
var radius = 45;
var speed = 4;
var degree = 180;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.mn2._x;
var ycenter = _root.mn2._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 99 MovieClip "mn3" in Frame 96
onClipEvent (load) {
var radius = 150;
var speed = 2;
var ycenter = 250;
this._x = 380;
var degree = 90;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._y = ycenter - (Math.sin(radian) * radius);
}
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (_root.calcDistance(xdiff, ydiff) > 37) {
_root.one.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (_root.calcDistance(xdiff, ydiff) > 37) {
_root.two.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
var xdiff = (_root.three._x - _root.four._x);
var ydiff = (_root.three._y - _root.four._y);
if (_root.calcDistance(xdiff, ydiff) > 37) {
_root.three.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.three.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.three.gotoAndStop(1);
_root.four.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.four._currentframe == 2) {
var xdiff = (_root.four._x - _root.five._x);
var ydiff = (_root.four._y - _root.five._y);
if (_root.calcDistance(xdiff, ydiff) > 37) {
_root.four.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.four.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.four.gotoAndStop(1);
_root.five.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.five._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
_root.gotoAndStop(100);
}
}
Frame 99
gotoAndStop (97);
Frame 100
stop();
start.onRelease = function () {
gotoAndStop (101);
};
Frame 101
function startGame() {
_root.tryagain._visible = false;
_root.one.gotoAndStop(2);
attempts_txt.text = attempts;
}
function Game() {
doo = new startGame();
}
function calcDistance(xd, yd) {
var _local1 = Math.pow(xd, 2);
var _local2 = Math.pow(yd, 2);
var _local4 = _local1 + _local2;
var _local3 = Math.sqrt(_local4);
return(_local3);
}
function youFailed() {
failed = new Sound(this);
failed.attachSound("failed.wav");
failed.start();
_root.tryagain._visible = true;
_global.attempts++;
attempts_txt.text = attempts;
}
stop();
foo = new Game();
Instance of Symbol 15 MovieClip in Frame 101
onClipEvent (enterFrame) {
this._x = _root.mn1._x;
this._y = _root.mn1._y;
}
Instance of Symbol 19 MovieClip "mn1" in Frame 101
onClipEvent (load) {
this._x = 60;
this._y = 60;
}
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (_root.calcDistance(xdiff, ydiff) > 20) {
_root.one.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (_root.calcDistance(xdiff, ydiff) > 20) {
_root.two.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
var xdiff = (_root.three._x - _root.four._x);
var ydiff = (_root.three._y - _root.four._y);
if (_root.calcDistance(xdiff, ydiff) > 20) {
_root.three.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.three.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.three.gotoAndStop(1);
_root.four.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.four._currentframe == 2) {
var xdiff = (_root.four._x - _root.five._x);
var ydiff = (_root.four._y - _root.five._y);
if (_root.calcDistance(xdiff, ydiff) > 45) {
_root.four.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.four.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.four.gotoAndStop(1);
_root.five.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.five._currentframe == 2) {
var xdiff = (_root.five._x - _root.six._x);
var ydiff = (_root.five._y - _root.six._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.five.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.five.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.five.gotoAndStop(1);
_root.six.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.six._currentframe == 2) {
var xdiff = (_root.six._x - _root.seven._x);
var ydiff = (_root.six._y - _root.seven._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.six.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.six.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.six.gotoAndStop(1);
_root.seven.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.seven._currentframe == 2) {
var xdiff = (_root.seven._x - _root.eight._x);
var ydiff = (_root.seven._y - _root.eight._y);
if (_root.calcDistance(xdiff, ydiff) > 33) {
_root.seven.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.seven.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.seven.gotoAndStop(1);
_root.eight.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.eight._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
_root.gotoAndStop(105);
}
}
Instance of Symbol 23 MovieClip "one" in Frame 101
onClipEvent (load) {
var radius = 45;
var speed = 4;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.mn1._x;
var ycenter = _root.mn1._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 15 MovieClip in Frame 101
onClipEvent (enterFrame) {
this._x = _root.mn2._x;
this._y = _root.mn2._y;
}
Instance of Symbol 19 MovieClip "mn2" in Frame 101
onClipEvent (load) {
this._x = 160;
this._y = 60;
}
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (_root.calcDistance(xdiff, ydiff) > 20) {
_root.one.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (_root.calcDistance(xdiff, ydiff) > 20) {
_root.two.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
var xdiff = (_root.three._x - _root.four._x);
var ydiff = (_root.three._y - _root.four._y);
if (_root.calcDistance(xdiff, ydiff) > 20) {
_root.three.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.three.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.three.gotoAndStop(1);
_root.four.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.four._currentframe == 2) {
var xdiff = (_root.four._x - _root.five._x);
var ydiff = (_root.four._y - _root.five._y);
if (_root.calcDistance(xdiff, ydiff) > 45) {
_root.four.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.four.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.four.gotoAndStop(1);
_root.five.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.five._currentframe == 2) {
var xdiff = (_root.five._x - _root.six._x);
var ydiff = (_root.five._y - _root.six._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.five.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.five.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.five.gotoAndStop(1);
_root.six.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.six._currentframe == 2) {
var xdiff = (_root.six._x - _root.seven._x);
var ydiff = (_root.six._y - _root.seven._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.six.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.six.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.six.gotoAndStop(1);
_root.seven.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.seven._currentframe == 2) {
var xdiff = (_root.seven._x - _root.eight._x);
var ydiff = (_root.seven._y - _root.eight._y);
if (_root.calcDistance(xdiff, ydiff) > 30) {
_root.seven.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.seven.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.seven.gotoAndStop(1);
_root.eight.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.eight._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
_root.gotoAndStop(105);
}
}
Instance of Symbol 23 MovieClip "two" in Frame 101
onClipEvent (load) {
var radius = 45;
var speed = 4;
var degree = 180;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.mn2._x;
var ycenter = _root.mn2._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 15 MovieClip in Frame 101
onClipEvent (enterFrame) {
this._x = _root.mn3._x;
this._y = _root.mn3._y;
}
Instance of Symbol 19 MovieClip "mn3" in Frame 101
onClipEvent (load) {
this._x = 260;
this._y = 60;
}
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (_root.calcDistance(xdiff, ydiff) > 20) {
_root.one.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (_root.calcDistance(xdiff, ydiff) > 20) {
_root.two.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
var xdiff = (_root.three._x - _root.four._x);
var ydiff = (_root.three._y - _root.four._y);
if (_root.calcDistance(xdiff, ydiff) > 20) {
_root.three.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.three.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.three.gotoAndStop(1);
_root.four.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.four._currentframe == 2) {
var xdiff = (_root.four._x - _root.five._x);
var ydiff = (_root.four._y - _root.five._y);
if (_root.calcDistance(xdiff, ydiff) > 45) {
_root.four.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.four.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.four.gotoAndStop(1);
_root.five.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.five._currentframe == 2) {
var xdiff = (_root.five._x - _root.six._x);
var ydiff = (_root.five._y - _root.six._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.five.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.five.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.five.gotoAndStop(1);
_root.six.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.six._currentframe == 2) {
var xdiff = (_root.six._x - _root.seven._x);
var ydiff = (_root.six._y - _root.seven._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.six.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.six.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.six.gotoAndStop(1);
_root.seven.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.seven._currentframe == 2) {
var xdiff = (_root.seven._x - _root.eight._x);
var ydiff = (_root.seven._y - _root.eight._y);
if (_root.calcDistance(xdiff, ydiff) > 30) {
_root.seven.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.seven.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.seven.gotoAndStop(1);
_root.eight.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.eight._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
_root.gotoAndStop(105);
}
}
Instance of Symbol 23 MovieClip "three" in Frame 101
onClipEvent (load) {
var radius = 45;
var speed = 4;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.mn3._x;
var ycenter = _root.mn3._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 15 MovieClip in Frame 101
onClipEvent (enterFrame) {
this._x = _root.mn5._x;
this._y = _root.mn5._y;
}
Instance of Symbol 23 MovieClip "five" in Frame 101
onClipEvent (load) {
var radius = 45;
var speed = 4;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.mn5._x;
var ycenter = _root.mn5._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 15 MovieClip in Frame 101
onClipEvent (enterFrame) {
this._x = _root.mn4._x;
this._y = _root.mn4._y;
}
Instance of Symbol 19 MovieClip "mn4" in Frame 101
onClipEvent (load) {
this._x = 360;
this._y = 60;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (_root.calcDistance(xdiff, ydiff) > 20) {
_root.one.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (_root.calcDistance(xdiff, ydiff) > 20) {
_root.two.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
var xdiff = (_root.three._x - _root.four._x);
var ydiff = (_root.three._y - _root.four._y);
if (_root.calcDistance(xdiff, ydiff) > 20) {
_root.three.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.three.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.three.gotoAndStop(1);
_root.four.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.four._currentframe == 2) {
var xdiff = (_root.four._x - _root.five._x);
var ydiff = (_root.four._y - _root.five._y);
if (_root.calcDistance(xdiff, ydiff) > 45) {
_root.four.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.four.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.four.gotoAndStop(1);
_root.five.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.five._currentframe == 2) {
var xdiff = (_root.five._x - _root.six._x);
var ydiff = (_root.five._y - _root.six._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.five.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.five.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.five.gotoAndStop(1);
_root.six.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.six._currentframe == 2) {
var xdiff = (_root.six._x - _root.seven._x);
var ydiff = (_root.six._y - _root.seven._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.six.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.six.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.six.gotoAndStop(1);
_root.seven.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.seven._currentframe == 2) {
var xdiff = (_root.seven._x - _root.eight._x);
var ydiff = (_root.seven._y - _root.eight._y);
if (_root.calcDistance(xdiff, ydiff) > 30) {
_root.seven.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.seven.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.seven.gotoAndStop(1);
_root.eight.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.eight._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
_root.gotoAndStop(105);
}
}
Instance of Symbol 23 MovieClip "four" in Frame 101
onClipEvent (load) {
var radius = 45;
var speed = 4;
var degree = 180;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.mn4._x;
var ycenter = _root.mn4._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 19 MovieClip "mn5" in Frame 101
onClipEvent (load) {
var radius = 180;
var speed = 1.5;
var ycenter = 260;
this._x = 450;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._y = ycenter - (Math.sin(radian) * radius);
}
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (_root.calcDistance(xdiff, ydiff) > 20) {
_root.one.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (_root.calcDistance(xdiff, ydiff) > 20) {
_root.two.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
var xdiff = (_root.three._x - _root.four._x);
var ydiff = (_root.three._y - _root.four._y);
if (_root.calcDistance(xdiff, ydiff) > 20) {
_root.three.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.three.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.three.gotoAndStop(1);
_root.four.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.four._currentframe == 2) {
var xdiff = (_root.four._x - _root.five._x);
var ydiff = (_root.four._y - _root.five._y);
if (_root.calcDistance(xdiff, ydiff) > 45) {
_root.four.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.four.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.four.gotoAndStop(1);
_root.five.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.five._currentframe == 2) {
var xdiff = (_root.five._x - _root.six._x);
var ydiff = (_root.five._y - _root.six._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.five.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.five.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.five.gotoAndStop(1);
_root.six.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.six._currentframe == 2) {
var xdiff = (_root.six._x - _root.seven._x);
var ydiff = (_root.six._y - _root.seven._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.six.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.six.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.six.gotoAndStop(1);
_root.seven.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.seven._currentframe == 2) {
var xdiff = (_root.seven._x - _root.eight._x);
var ydiff = (_root.seven._y - _root.eight._y);
if (_root.calcDistance(xdiff, ydiff) > 30) {
_root.seven.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.seven.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.seven.gotoAndStop(1);
_root.eight.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.eight._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
_root.gotoAndStop(105);
}
}
Instance of Symbol 15 MovieClip in Frame 101
onClipEvent (enterFrame) {
this._x = _root.mn6._x;
this._y = _root.mn6._y;
}
Instance of Symbol 19 MovieClip "mn6" in Frame 101
onClipEvent (load) {
var radius = 150;
var speed = -1.5;
var xcenter = 250;
this._y = 420;
var degree = 180;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
}
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (_root.calcDistance(xdiff, ydiff) > 20) {
_root.one.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (_root.calcDistance(xdiff, ydiff) > 20) {
_root.two.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
var xdiff = (_root.three._x - _root.four._x);
var ydiff = (_root.three._y - _root.four._y);
if (_root.calcDistance(xdiff, ydiff) > 20) {
_root.three.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.three.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.three.gotoAndStop(1);
_root.four.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.four._currentframe == 2) {
var xdiff = (_root.four._x - _root.five._x);
var ydiff = (_root.four._y - _root.five._y);
if (_root.calcDistance(xdiff, ydiff) > 45) {
_root.four.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.four.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.four.gotoAndStop(1);
_root.five.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.five._currentframe == 2) {
var xdiff = (_root.five._x - _root.six._x);
var ydiff = (_root.five._y - _root.six._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.five.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.five.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.five.gotoAndStop(1);
_root.six.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.six._currentframe == 2) {
var xdiff = (_root.six._x - _root.seven._x);
var ydiff = (_root.six._y - _root.seven._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.six.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.six.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.six.gotoAndStop(1);
_root.seven.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.seven._currentframe == 2) {
var xdiff = (_root.seven._x - _root.eight._x);
var ydiff = (_root.seven._y - _root.eight._y);
if (_root.calcDistance(xdiff, ydiff) > 30) {
_root.seven.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.seven.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.seven.gotoAndStop(1);
_root.eight.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.eight._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
_root.gotoAndStop(105);
}
}
Instance of Symbol 23 MovieClip "six" in Frame 101
onClipEvent (load) {
var radius = 45;
var speed = 4;
var degree = 180;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.mn6._x;
var ycenter = _root.mn6._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 118 MovieClip in Frame 101
onClipEvent (enterFrame) {
this._x = _root.mn7._x;
this._y = _root.mn7._y;
}
Instance of Symbol 23 MovieClip "eight" in Frame 101
onClipEvent (load) {
var radius = 45;
var speed = -2;
var degree = 270;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.mn7._x;
var ycenter = _root.mn7._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 23 MovieClip "seven" in Frame 101
onClipEvent (load) {
var radius = 75;
var speed = 2;
var degree = 90;
var radian;
}
onClipEvent (enterFrame) {
var xcenter = _root.mn7._x;
var ycenter = _root.mn7._y;
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 99 MovieClip "mn7" in Frame 101
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (_root.calcDistance(xdiff, ydiff) > 20) {
_root.one.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (_root.calcDistance(xdiff, ydiff) > 20) {
_root.two.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
var xdiff = (_root.three._x - _root.four._x);
var ydiff = (_root.three._y - _root.four._y);
if (_root.calcDistance(xdiff, ydiff) > 20) {
_root.three.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.three.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.three.gotoAndStop(1);
_root.four.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.four._currentframe == 2) {
var xdiff = (_root.four._x - _root.five._x);
var ydiff = (_root.four._y - _root.five._y);
if (_root.calcDistance(xdiff, ydiff) > 45) {
_root.four.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.four.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.four.gotoAndStop(1);
_root.five.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.five._currentframe == 2) {
var xdiff = (_root.five._x - _root.six._x);
var ydiff = (_root.five._y - _root.six._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.five.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.five.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.five.gotoAndStop(1);
_root.six.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.six._currentframe == 2) {
var xdiff = (_root.six._x - _root.seven._x);
var ydiff = (_root.six._y - _root.seven._y);
if (_root.calcDistance(xdiff, ydiff) > 55) {
_root.six.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.six.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.six.gotoAndStop(1);
_root.seven.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.seven._currentframe == 2) {
var xdiff = (_root.seven._x - _root.eight._x);
var ydiff = (_root.seven._y - _root.eight._y);
if (_root.calcDistance(xdiff, ydiff) > 30) {
_root.seven.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.seven.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.seven.gotoAndStop(1);
_root.eight.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.eight._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
_root.gotoAndStop(105);
}
}
Frame 104
gotoAndStop (102);
Frame 105
stop();
serverURL = "http://www.scenta.co.uk/nucleus";
if (_global.validscore == true) {
submit_btn._visible = true;
enterscore_txt.text = "Enter your name to submit your hi-score";
playername_txt.maxChars = 50;
playeremail_txt.maxChars = 200;
} else {
submit_btn._visible = false;
playername_txt._visible = false;
nameemail_mc._visible = false;
playeremail_txt._visible = false;
enterscore_txt.text = "";
}
stop();
attempts_txt.text = ("You Took " + attempts) + " attempts";
var dbattempts = attempts;
start.onRelease = function () {
gotoAndStop (3);
};
submit_btn.onRelease = function () {
lv = new LoadVars();
lv.onLoad = function (state) {
if (this.result == "success") {
result_txt.text = "Score added successfully. Refresh page to view";
} else if ((this.result = "fail")) {
result_txt.text = this.reason;
}
};
if (playername_txt.text == "") {
} else {
lv.gameID = "nucleus";
lv.userID = playername_txt.text;
lv.email = playeremail_txt.text;
lv.score = dbattempts;
lv.action = "addNew";
lv.send(serverURL + "addscore.cfm", "_self", "POST");
result_txt.text = "Submitting.....";
submit_btn._visible = false;
}
};
Frame 107
stop();
back.onRelease = function () {
gotoAndStop (3);
};
Symbol 10 Button [start]
on (release) {
if (password_txt.text == "aukfeg") {
_global.validscore = false;
gotoAndPlay (5);
} else if (password_txt.text == "pnmqeb") {
_global.validscore = false;
gotoAndPlay (10);
} else if (password_txt.text == "tvxijk") {
_global.validscore = false;
gotoAndPlay (15);
} else if (password_txt.text == "fwjkxw") {
_global.validscore = false;
gotoAndPlay (20);
} else if (password_txt.text == "alordq") {
_global.validscore = false;
gotoAndPlay (25);
} else if (password_txt.text == "iddqdg") {
_global.validscore = false;
gotoAndPlay (30);
} else if (password_txt.text == "judmbg") {
_global.validscore = false;
gotoAndPlay (35);
} else if (password_txt.text == "aphven") {
_global.validscore = false;
gotoAndPlay (40);
} else if (password_txt.text == "chusxn") {
_global.validscore = false;
gotoAndPlay (45);
} else if (password_txt.text == "medjvs") {
_global.validscore = false;
gotoAndPlay (50);
} else if (password_txt.text == "ckewqa") {
_global.validscore = false;
gotoAndPlay (55);
} else if (password_txt.text == "btplde") {
_global.validscore = false;
gotoAndPlay (60);
} else if (password_txt.text == "bqtvde") {
_global.validscore = false;
gotoAndPlay (65);
} else if (password_txt.text == "cwtdbk") {
_global.validscore = false;
gotoAndPlay (70);
} else if (password_txt.text == "mtfpfd") {
_global.validscore = false;
gotoAndPlay (75);
} else if (password_txt.text == "dkuhts") {
_global.validscore = false;
gotoAndPlay (80);
} else if (password_txt.text == "skwnzo") {
_global.validscore = false;
gotoAndPlay (85);
} else if (password_txt.text == "fjwkus") {
_global.validscore = false;
gotoAndPlay (90);
} else if (password_txt.text == "diwjcm") {
_global.validscore = false;
gotoAndPlay (95);
} else if (password_txt.text == "fujnwn") {
_global.validscore = false;
gotoAndPlay (100);
} else {
gotoAndPlay (3);
}
}
Symbol 23 MovieClip Frame 1
stop();
Symbol 23 MovieClip Frame 15
stop();
Symbol 50 Button
on (release) {
if (_root.three._currentframe == 2) {
var xdiff = (_root.three._x - _root.two._x);
var ydiff = (_root.three._y - _root.two._y);
if (calcDistance(xdiff, ydiff) > 80) {
_root.three.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.three.gotoAndStop(2);
this._visible = false;
};
} else {
_root.three.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.one._x);
var ydiff = (_root.two._y - _root.one._y);
if (calcDistance(xdiff, ydiff) > 80) {
_root.two.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.one._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
_root.statustext.text = "You Won!";
gotoAndPlay (10);
}
}
Symbol 59 Button
on (release) {
if (_root.three._currentframe == 2) {
var xdiff = (_root.three._x - _root.two._x);
var ydiff = (_root.three._y - _root.two._y);
if (calcDistance(xdiff, ydiff) > 70) {
_root.three.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.three.gotoAndStop(2);
this._visible = false;
};
} else {
_root.three.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.one._x);
var ydiff = (_root.two._y - _root.one._y);
if (calcDistance(xdiff, ydiff) > 70) {
_root.two.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.one._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
_root.statustext.text = "You Won!";
gotoAndPlay (15);
}
}
Symbol 65 Button
on (release) {
if (_root.four._currentframe == 2) {
var xdiff = (_root.four._x - _root.three._x);
var ydiff = (_root.four._y - _root.three._y);
if (calcDistance(xdiff, ydiff) > 59) {
_root.four.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.four.gotoAndStop(2);
this._visible = false;
};
} else {
_root.four.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
var xdiff = (_root.three._x - _root.two._x);
var ydiff = (_root.three._y - _root.two._y);
if (calcDistance(xdiff, ydiff) > 59) {
_root.three.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.four.gotoAndStop(2);
_root.three.gotoAndStop(1);
this._visible = false;
};
} else {
_root.three.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.one._x);
var ydiff = (_root.two._y - _root.one._y);
if (calcDistance(xdiff, ydiff) > 52) {
_root.two.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.four.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.one._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
gotoAndPlay (20);
}
}
Symbol 71 Button
on (release) {
if (_root.three._currentframe == 2) {
var xdiff = (_root.three._x - _root.two._x);
var ydiff = (_root.three._y - _root.two._y);
if (calcDistance(xdiff, ydiff) > 59) {
_root.three.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.three.gotoAndStop(2);
this._visible = false;
};
} else {
_root.three.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.one._x);
var ydiff = (_root.two._y - _root.one._y);
if (calcDistance(xdiff, ydiff) > 52) {
_root.two.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.one._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
gotoAndStop (25);
}
}
Symbol 73 MovieClip Frame 1
stop();
Symbol 78 Button
on (release) {
if (_root.three._currentframe == 2) {
var xdiff = (_root.three._x - _root.two._x);
var ydiff = (_root.three._y - _root.two._y);
if (calcDistance(xdiff, ydiff) > 59) {
_root.three.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.three.gotoAndStop(2);
this._visible = false;
};
} else {
_root.three.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.one._x);
var ydiff = (_root.two._y - _root.one._y);
if (calcDistance(xdiff, ydiff) > 52) {
_root.two.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.one._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
gotoAndStop (30);
}
}
Symbol 85 Button
on (release) {
if (_root.aone._currentframe == 2) {
var xdiff = (_root.aone._x - _root.atwo._x);
var ydiff = (_root.aone._y - _root.atwo._y);
if (calcDistance(xdiff, ydiff) > 39) {
_root.aone.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.aone.gotoAndStop(2);
this._visible = false;
};
} else {
_root.aone.gotoAndStop(1);
_root.atwo.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.atwo._currentframe == 2) {
var xdiff = (_root.atwo._x - _root.athree._x);
var ydiff = (_root.atwo._y - _root.athree._y);
if (calcDistance(xdiff, ydiff) > 39) {
_root.atwo.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.atwo.gotoAndStop(1);
_root.aone.gotoAndStop(2);
this._visible = false;
};
} else {
_root.atwo.gotoAndStop(1);
_root.athree.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.athree._currentframe == 2) {
var xdiff = (_root.athree._x - _root.bthree._x);
var ydiff = (_root.athree._y - _root.bthree._y);
if (calcDistance(xdiff, ydiff) > 15) {
_root.athree.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.aone.gotoAndStop(2);
_root.athree.gotoAndStop(1);
this._visible = false;
};
} else {
_root.athree.gotoAndStop(1);
_root.bthree.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.bthree._currentframe == 2) {
var xdiff = (_root.bthree._x - _root.btwo._x);
var ydiff = (_root.bthree._y - _root.btwo._y);
if (calcDistance(xdiff, ydiff) > 39) {
_root.bthree.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.bthree.gotoAndStop(1);
_root.aone.gotoAndStop(2);
this._visible = false;
};
} else {
_root.bthree.gotoAndStop(1);
_root.btwo.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.btwo._currentframe == 2) {
var xdiff = (_root.btwo._x - _root.bone._x);
var ydiff = (_root.btwo._y - _root.bone._y);
if (calcDistance(xdiff, ydiff) > 39) {
_root.btwo.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.btwo.gotoAndStop(1);
_root.aone.gotoAndStop(2);
this._visible = false;
};
} else {
_root.btwo.gotoAndStop(1);
_root.bone.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.bone._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
gotoAndStop (35);
}
}
Symbol 90 Button
on (release) {
if (_root.aone._currentframe == 2) {
var xdiff = (_root.aone._x - _root.atwo._x);
var ydiff = (_root.aone._y - _root.atwo._y);
if (calcDistance(xdiff, ydiff) > 39) {
_root.aone.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.aone.gotoAndStop(2);
this._visible = false;
};
} else {
_root.aone.gotoAndStop(1);
_root.atwo.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.atwo._currentframe == 2) {
var xdiff = (_root.atwo._x - _root.athree._x);
var ydiff = (_root.atwo._y - _root.athree._y);
if (calcDistance(xdiff, ydiff) > 39) {
_root.atwo.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.atwo.gotoAndStop(1);
_root.aone.gotoAndStop(2);
this._visible = false;
};
} else {
_root.atwo.gotoAndStop(1);
_root.athree.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.athree._currentframe == 2) {
var xdiff = (_root.athree._x - _root.bthree._x);
var ydiff = (_root.athree._y - _root.bthree._y);
if (calcDistance(xdiff, ydiff) > 8) {
_root.athree.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.aone.gotoAndStop(2);
_root.athree.gotoAndStop(1);
this._visible = false;
};
} else {
_root.athree.gotoAndStop(1);
_root.bthree.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.bthree._currentframe == 2) {
var xdiff = (_root.bthree._x - _root.btwo._x);
var ydiff = (_root.bthree._y - _root.btwo._y);
if (calcDistance(xdiff, ydiff) > 39) {
_root.bthree.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.bthree.gotoAndStop(1);
_root.aone.gotoAndStop(2);
this._visible = false;
};
} else {
_root.bthree.gotoAndStop(1);
_root.btwo.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.btwo._currentframe == 2) {
var xdiff = (_root.btwo._x - _root.bone._x);
var ydiff = (_root.btwo._y - _root.bone._y);
if (calcDistance(xdiff, ydiff) > 39) {
_root.btwo.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.btwo.gotoAndStop(1);
_root.aone.gotoAndStop(2);
this._visible = false;
};
} else {
_root.btwo.gotoAndStop(1);
_root.bone.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.bone._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
gotoAndStop (40);
}
}
Symbol 96 Button
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (calcDistance(xdiff, ydiff) > 25) {
_root.one.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (calcDistance(xdiff, ydiff) > 25) {
_root.two.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
var xdiff = (_root.three._x - _root.four._x);
var ydiff = (_root.three._y - _root.four._y);
if (calcDistance(xdiff, ydiff) > 25) {
_root.three.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
_root.three.gotoAndStop(1);
this._visible = false;
};
} else {
_root.three.gotoAndStop(1);
_root.four.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.four._currentframe == 2) {
var xdiff = (_root.four._x - _root.five._x);
var ydiff = (_root.four._y - _root.five._y);
if (calcDistance(xdiff, ydiff) > 25) {
_root.four.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.four.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.four.gotoAndStop(1);
_root.five.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.five._currentframe == 2) {
var xdiff = (_root.five._x - _root.six._x);
var ydiff = (_root.five._y - _root.six._y);
if (calcDistance(xdiff, ydiff) > 25) {
_root.five.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.five.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.five.gotoAndStop(1);
_root.six.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.six._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
gotoAndStop (45);
}
}
Symbol 97 Button
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (calcDistance(xdiff, ydiff) > 25) {
_root.one.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (calcDistance(xdiff, ydiff) > 25) {
_root.two.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
var xdiff = (_root.three._x - _root.four._x);
var ydiff = (_root.three._y - _root.four._y);
if (calcDistance(xdiff, ydiff) > 25) {
_root.three.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
_root.three.gotoAndStop(1);
this._visible = false;
};
} else {
_root.three.gotoAndStop(1);
_root.four.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.four._currentframe == 2) {
var xdiff = (_root.four._x - _root.five._x);
var ydiff = (_root.four._y - _root.five._y);
if (calcDistance(xdiff, ydiff) > 25) {
_root.four.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.four.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.four.gotoAndStop(1);
_root.five.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.five._currentframe == 2) {
var xdiff = (_root.five._x - _root.six._x);
var ydiff = (_root.five._y - _root.six._y);
if (calcDistance(xdiff, ydiff) > 25) {
_root.five.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.five.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.five.gotoAndStop(1);
_root.six.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.six._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
gotoAndStop (45);
}
}
Symbol 105 Button
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (calcDistance(xdiff, ydiff) > 20) {
_root.one.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (calcDistance(xdiff, ydiff) > 20) {
_root.two.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
var xdiff = (_root.three._x - _root.four._x);
var ydiff = (_root.three._y - _root.four._y);
if (calcDistance(xdiff, ydiff) > 20) {
_root.three.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
_root.three.gotoAndStop(1);
this._visible = false;
};
} else {
_root.three.gotoAndStop(1);
_root.four.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.four._currentframe == 2) {
var xdiff = (_root.four._x - _root.five._x);
var ydiff = (_root.four._y - _root.five._y);
if (calcDistance(xdiff, ydiff) > 20) {
_root.four.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.four.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.four.gotoAndStop(1);
_root.five.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.five._currentframe == 2) {
var xdiff = (_root.five._x - _root.six._x);
var ydiff = (_root.five._y - _root.six._y);
if (calcDistance(xdiff, ydiff) > 20) {
_root.five.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.five.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.five.gotoAndStop(1);
_root.six.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.six._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
gotoAndStop (50);
}
}
Symbol 106 Button
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (calcDistance(xdiff, ydiff) > 20) {
_root.one.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (calcDistance(xdiff, ydiff) > 20) {
_root.two.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
var xdiff = (_root.three._x - _root.four._x);
var ydiff = (_root.three._y - _root.four._y);
if (calcDistance(xdiff, ydiff) > 20) {
_root.three.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
_root.three.gotoAndStop(1);
this._visible = false;
};
} else {
_root.three.gotoAndStop(1);
_root.four.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.four._currentframe == 2) {
var xdiff = (_root.four._x - _root.five._x);
var ydiff = (_root.four._y - _root.five._y);
if (calcDistance(xdiff, ydiff) > 20) {
_root.four.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.four.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.four.gotoAndStop(1);
_root.five.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.five._currentframe == 2) {
var xdiff = (_root.five._x - _root.six._x);
var ydiff = (_root.five._y - _root.six._y);
if (calcDistance(xdiff, ydiff) > 20) {
_root.five.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.five.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.five.gotoAndStop(1);
_root.six.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.six._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
gotoAndStop (50);
}
}
Symbol 107 Button
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (calcDistance(xdiff, ydiff) > 20) {
_root.one.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (calcDistance(xdiff, ydiff) > 20) {
_root.two.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
var xdiff = (_root.three._x - _root.four._x);
var ydiff = (_root.three._y - _root.four._y);
if (calcDistance(xdiff, ydiff) > 20) {
_root.three.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
_root.three.gotoAndStop(1);
this._visible = false;
};
} else {
_root.three.gotoAndStop(1);
_root.four.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.four._currentframe == 2) {
var xdiff = (_root.four._x - _root.five._x);
var ydiff = (_root.four._y - _root.five._y);
if (calcDistance(xdiff, ydiff) > 20) {
_root.four.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.four.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.four.gotoAndStop(1);
_root.five.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.five._currentframe == 2) {
var xdiff = (_root.five._x - _root.six._x);
var ydiff = (_root.five._y - _root.six._y);
if (calcDistance(xdiff, ydiff) > 20) {
_root.five.gotoAndPlay(3);
youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.five.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.five.gotoAndStop(1);
_root.six.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.six._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
gotoAndStop (50);
}
}
Symbol 124 Button
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (_root.calcDistance(xdiff, ydiff) > 30) {
_root.one.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (_root.calcDistance(xdiff, ydiff) > 30) {
_root.two.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
_root.gotoAndStop(65);
}
}
Symbol 129 Button
on (release) {
if (_root.one._currentframe == 2) {
var xdiff = (_root.one._x - _root.two._x);
var ydiff = (_root.one._y - _root.two._y);
if (_root.calcDistance(xdiff, ydiff) > 30) {
_root.one.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.one.gotoAndStop(1);
_root.two.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.two._currentframe == 2) {
var xdiff = (_root.two._x - _root.three._x);
var ydiff = (_root.two._y - _root.three._y);
if (_root.calcDistance(xdiff, ydiff) > 30) {
_root.two.gotoAndPlay(3);
_root.youFailed();
_root.tryagain.onRelease = function () {
_root.statustext.text = "";
_root.two.gotoAndStop(1);
_root.one.gotoAndStop(2);
this._visible = false;
};
} else {
_root.two.gotoAndStop(1);
_root.three.gotoAndStop(2);
jumpin = new Sound(this);
jumpin.attachSound("nextlevel.wav");
jumpin.start();
}
} else if (_root.three._currentframe == 2) {
winner = new Sound(this);
winner.attachSound("fanfare.wav");
winner.start();
_root.gotoAndStop(70);
}
}