Frame 1
stop();
fscommand ("showmenu", "false");
fscommand ("allowscale", "false");
Instance of Symbol 12 MovieClip "preloader" in Frame 1
onClipEvent (enterFrame) {
if (_root._framesloaded > 8) {
_root.gotoAndPlay(2);
}
}
Frame 2
stop();
w1 = 0;
Instance of Symbol 24 MovieClip "musicswitch" in Frame 2
onClipEvent (enterFrame) {
}
onClipEvent (load) {
}
Instance of Symbol 25 MovieClip "storage" in Frame 2
onClipEvent (load) {
var a = new LoadVars();
a.onLoad = function () {
trace("loaded ok");
_root.$hiscores1 = this.$hiscores;
trace("vars = " + this.$hiscores);
};
a.load("http://www.playerthree.net/ping/hiscore.php?name=&score=0&email=nobody@playerthree.net&slice=10&england=1&chart=1");
var b = new LoadVars();
b.onLoad = function () {
trace("loaded ok");
_root.$hiscores2 = this.$hiscores;
trace("vars = " + this.$hiscores);
};
b.load("http://www.playerthree.net/ping/hiscore.php?name=&score=0&email=nobody@playerthree.net&slice=10&england=1&chart=2");
var c = new LoadVars();
c.onLoad = function () {
trace("loaded ok");
_root.$hiscores3 = this.$hiscores;
trace("vars = " + this.$hiscores);
};
c.load("http://www.playerthree.net/ping/hiscore.php?name=&score=0&email=nobody@playerthree.net&slice=10&england=1&chart=3");
}
Instance of Symbol 26 MovieClip "sound" in Frame 2
onClipEvent (load) {
function gottwig() {
trace("function ok");
gottwig_s.start();
}
function buttonsound() {
trace("function ok");
button_s.start();
}
function levelcomplete() {
trace("function ok");
levelcomplete_s.start();
}
function startsound() {
trace("function ok");
intro_s.start();
}
function stopsound() {
trace("function ok");
main_s.stop("egg_main_loop2.wav");
main_s.start();
main_s.stop("egg_main_loop2.wav");
}
musicstatus = true;
gottwig_s = new Sound();
gottwig_s.attachSound("eggfx_pickup.wav");
button_s = new Sound();
button_s.attachSound("eggfx_button.wav");
levelcomplete_s = new Sound();
levelcomplete_s.attachSound("eggfx_finish_level.wav");
main_s = new Sound();
main_s.attachSound("egg_main_loop2.wav");
main_s.onSoundComplete = function () {
main_s.start();
trace("main started");
};
intro_s = new Sound();
intro_s.attachSound("egg_main_intro.wav");
intro_s.start();
trace("intro started");
intro_s.onSoundComplete = function () {
main_s.start();
trace("intro finished");
};
}
Frame 3
stop();
Frame 4
stop();
Frame 5
stop();
course_1_scores = _root.$hiscores1.split(",");
course_2_scores = _root.$hiscores2.split(",");
course_3_scores = _root.$hiscores3.split(",");
Frame 6
stop();
Frame 7
stop();
Frame 9
stop();
_root.playername = "";
Instance of Symbol 134 MovieClip "loader1" in Frame 9
onClipEvent (enterFrame) {
if (_root._framesloaded > 110) {
gotoAndStop (2);
}
}
Frame 10
stop();
Instance of Symbol 253 MovieClip "egg" in Frame 10
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 20
stop();
Instance of Symbol 257 MovieClip "egg" in Frame 20
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 30
stop();
Instance of Symbol 261 MovieClip "egg" in Frame 30
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 40
stop();
Instance of Symbol 264 MovieClip "egg" in Frame 40
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 50
stop();
Instance of Symbol 267 MovieClip "egg" in Frame 50
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 60
stop();
Instance of Symbol 271 MovieClip "egg" in Frame 60
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 70
stop();
Instance of Symbol 274 MovieClip "egg" in Frame 70
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 80
stop();
Instance of Symbol 277 MovieClip "egg" in Frame 80
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 90
stop();
Instance of Symbol 280 MovieClip "egg" in Frame 90
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 100
stop();
Instance of Symbol 283 MovieClip "egg" in Frame 100
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 110
stop();
Instance of Symbol 310 MovieClip "numbers" in Frame 110
onClipEvent (enterFrame) {
if (_root.w1 < 10) {
this.gotoAndStop(1);
temp = _root.w1;
_parent.numbers2.gotoAndStop(temp + 1);
}
if (_root.w1 > 9) {
this.gotoAndStop(2);
temp = _root.w1 - 10;
_parent.numbers2.gotoAndStop(temp + 1);
}
if (_root.w1 > 19) {
this.gotoAndStop(3);
temp = _root.w1 - 20;
_parent.numbers2.gotoAndStop(temp + 1);
}
if (_root.w1 > 29) {
this.gotoAndStop(4);
temp = _root.w1 - 30;
_parent.numbers2.gotoAndStop(temp + 1);
}
if (_root.w1 > 39) {
this.gotoAndStop(5);
temp = _root.w1 - 40;
_parent.numbers2.gotoAndStop(temp + 1);
}
if (_root.w1 > 49) {
this.gotoAndStop(6);
temp = _root.w1 - 50;
_parent.numbers2.gotoAndStop(temp + 1);
}
if (_root.w1 > 59) {
this.gotoAndStop(7);
temp = _root.w1 - 60;
_parent.numbers2.gotoAndStop(temp + 1);
}
if (_root.w1 > 69) {
this.gotoAndStop(8);
temp = _root.w1 - 70;
_parent.numbers2.gotoAndStop(temp + 1);
}
if (_root.w1 > 79) {
this.gotoAndStop(9);
temp = _root.w1 - 80;
_parent.numbers2.gotoAndStop(temp + 1);
}
if (_root.w1 > 89) {
this.gotoAndStop(10);
temp = _root.w1 - 90;
_parent.numbers2.gotoAndStop(temp + 1);
}
if (_root.w1 > 99) {
_root.w1 = 99;
}
}
Frame 111
gotoAndPlay (2);
Frame 119
stop();
w1 = 0;
Instance of Symbol 134 MovieClip "loader1" in Frame 119
onClipEvent (enterFrame) {
if (_root._framesloaded > 220) {
gotoAndStop (2);
}
}
Frame 120
stop();
Instance of Symbol 314 MovieClip in Frame 120
onClipEvent (enterFrame) {
this._y = this._y + this.yspeed;
this._x = this._x + this.xspeed;
if (this._y > 310) {
this.temp = Math.random();
this.speed = 5 * this.temp;
this._y = random(10) - 10;
this._x = random(700) - 300;
}
if (this._x > 410) {
this.temp = Math.random();
this.speed = 5 * this.temp;
this._y = random(10) - 10;
this._x = random(600) - 200;
}
}
onClipEvent (load) {
this.temp = Math.random();
this.speed = 5 * this.temp;
this.yspeed = this.speed + 1;
this.xspeed = (2 / this.yspeed) + (2 * this.temp);
this.star1.gotoAndPlay(1);
this.star1.star2.gotoAndPlay(1);
this._width = (this.temp * 5) + 2;
this._height = this._width;
this._y = random(300) - 300;
this._x = random(700) - 300;
this.star1.gotoAndPlay(2 / (random(15) + random(15)));
this.star1.star2.gotoAndPlay(2 / (random(20) + random(20)));
}
Instance of Symbol 314 MovieClip in Frame 120
onClipEvent (enterFrame) {
this._y = this._y + this.yspeed;
this._x = this._x + this.xspeed;
if (this._y > 310) {
this.temp = Math.random();
this.speed = 5 * this.temp;
this._y = random(10) - 10;
this._x = random(700) - 300;
}
if (this._x > 410) {
this.temp = Math.random();
this.speed = 3 * this.temp;
this._y = random(10) - 10;
this._x = random(500) - 500;
}
}
onClipEvent (load) {
this.temp = Math.random();
this.speed = 5 * this.temp;
this.yspeed = this.speed + 1;
this.xspeed = (2 / this.yspeed) + (2 * this.temp);
this.star1.gotoAndPlay(1);
this.star1.star2.gotoAndPlay(1);
this._width = (this.temp * 5) + 2;
this._height = this._width;
this._y = random(300) - 300;
this._x = random(700) - 300;
this.star1.gotoAndPlay(2 / (random(15) + random(15)));
this.star1.star2.gotoAndPlay(2 / (random(20) + random(20)));
}
Instance of Symbol 314 MovieClip in Frame 120
onClipEvent (enterFrame) {
this._y = this._y + this.yspeed;
this._x = this._x + this.xspeed;
if (this._y > 310) {
this.temp = Math.random();
this.speed = 5 * this.temp;
this._y = random(10) - 10;
this._x = random(700) - 300;
}
if (this._x > 410) {
this.temp = Math.random();
this.speed = 5 * this.temp;
this._y = random(10) - 10;
this._x = random(600) - 200;
}
}
onClipEvent (load) {
this.temp = Math.random();
this.speed = 5 * this.temp;
this.yspeed = this.speed + 1;
this.xspeed = (2 / this.yspeed) + (2 * this.temp);
this.star1.gotoAndPlay(1);
this.star1.star2.gotoAndPlay(1);
this._width = (this.temp * 5) + 2;
this._height = this._width;
this._y = random(300) - 300;
this._x = random(700) - 300;
this.star1.gotoAndPlay(2 / (random(15) + random(15)));
this.star1.star2.gotoAndPlay(2 / (random(20) + random(20)));
}
Instance of Symbol 314 MovieClip in Frame 120
onClipEvent (enterFrame) {
this._y = this._y + this.yspeed;
this._x = this._x + this.xspeed;
if (this._y > 310) {
this.temp = Math.random();
this.speed = 5 * this.temp;
this._y = random(10) - 10;
this._x = random(700) - 300;
}
if (this._x > 410) {
this.temp = Math.random();
this.speed = 5 * this.temp;
this._y = random(10) - 10;
this._x = random(600) - 200;
}
}
onClipEvent (load) {
this.temp = Math.random();
this.speed = 5 * this.temp;
this.yspeed = this.speed + 1;
this.xspeed = (2 / this.yspeed) + (2 * this.temp);
this.star1.gotoAndPlay(1);
this.star1.star2.gotoAndPlay(1);
this._width = (this.temp * 5) + 2;
this._height = this._width;
this._y = random(300) - 300;
this._x = random(700) - 300;
this.star1.gotoAndPlay(2 / (random(15) + random(15)));
this.star1.star2.gotoAndPlay(2 / (random(20) + random(20)));
}
Instance of Symbol 314 MovieClip in Frame 120
onClipEvent (enterFrame) {
this._y = this._y + this.yspeed;
this._x = this._x + this.xspeed;
if (this._y > 310) {
this.temp = Math.random();
this.speed = 5 * this.temp;
this._y = random(10) - 10;
this._x = random(700) - 300;
}
if (this._x > 410) {
this.temp = Math.random();
this.speed = 5 * this.temp;
this._y = random(10) - 10;
this._x = random(600) - 200;
}
}
onClipEvent (load) {
this.temp = Math.random();
this.speed = 5 * this.temp;
this.yspeed = this.speed + 1;
this.xspeed = (2 / this.yspeed) + (2 * this.temp);
this.star1.gotoAndPlay(1);
this.star1.star2.gotoAndPlay(1);
this._width = (this.temp * 5) + 2;
this._height = this._width;
this._y = random(300) - 300;
this._x = random(700) - 300;
this.star1.gotoAndPlay(2 / (random(15) + random(15)));
this.star1.star2.gotoAndPlay(2 / (random(20) + random(20)));
}
Instance of Symbol 314 MovieClip in Frame 120
onClipEvent (enterFrame) {
this._y = this._y + this.yspeed;
this._x = this._x + this.xspeed;
if (this._y > 310) {
this.temp = Math.random();
this.speed = 5 * this.temp;
this._y = random(10) - 10;
this._x = random(700) - 300;
}
if (this._x > 410) {
this.temp = Math.random();
this.speed = 3 * this.temp;
this._y = random(10) - 10;
this._x = random(500) - 500;
}
}
onClipEvent (load) {
this.temp = Math.random();
this.speed = 5 * this.temp;
this.yspeed = this.speed + 1;
this.xspeed = (2 / this.yspeed) + (2 * this.temp);
this.star1.gotoAndPlay(1);
this.star1.star2.gotoAndPlay(1);
this._width = (this.temp * 5) + 2;
this._height = this._width;
this._y = random(300) - 300;
this._x = random(700) - 300;
this.star1.gotoAndPlay(2 / (random(15) + random(15)));
this.star1.star2.gotoAndPlay(2 / (random(20) + random(20)));
}
Instance of Symbol 314 MovieClip in Frame 120
onClipEvent (enterFrame) {
this._y = this._y + this.yspeed;
this._x = this._x + this.xspeed;
if (this._y > 310) {
this.temp = Math.random();
this.speed = 5 * this.temp;
this._y = random(10) - 10;
this._x = random(700) - 300;
}
if (this._x > 410) {
this.temp = Math.random();
this.speed = 5 * this.temp;
this._y = random(10) - 10;
this._x = random(600) - 200;
}
}
onClipEvent (load) {
this.temp = Math.random();
this.speed = 5 * this.temp;
this.yspeed = this.speed + 1;
this.xspeed = (2 / this.yspeed) + (2 * this.temp);
this.star1.gotoAndPlay(1);
this.star1.star2.gotoAndPlay(1);
this._width = (this.temp * 5) + 2;
this._height = this._width;
this._y = random(300) - 300;
this._x = random(700) - 300;
this.star1.gotoAndPlay(2 / (random(15) + random(15)));
this.star1.star2.gotoAndPlay(2 / (random(20) + random(20)));
}
Instance of Symbol 314 MovieClip in Frame 120
onClipEvent (enterFrame) {
this._y = this._y + this.yspeed;
this._x = this._x + this.xspeed;
if (this._y > 310) {
this.temp = Math.random();
this.speed = 5 * this.temp;
this._y = random(10) - 10;
this._x = random(700) - 300;
}
if (this._x > 410) {
this.temp = Math.random();
this.speed = 5 * this.temp;
this._y = random(10) - 10;
this._x = random(600) - 200;
}
}
onClipEvent (load) {
this.temp = Math.random();
this.speed = 5 * this.temp;
this.yspeed = this.speed + 1;
this.xspeed = (2 / this.yspeed) + (2 * this.temp);
this.star1.gotoAndPlay(1);
this.star1.star2.gotoAndPlay(1);
this._width = (this.temp * 5) + 2;
this._height = this._width;
this._y = random(300) - 300;
this._x = random(700) - 300;
this.star1.gotoAndPlay(2 / (random(15) + random(15)));
this.star1.star2.gotoAndPlay(2 / (random(20) + random(20)));
}
Instance of Symbol 314 MovieClip in Frame 120
onClipEvent (enterFrame) {
this._y = this._y + this.yspeed;
this._x = this._x + this.xspeed;
if (this._y > 310) {
this.temp = Math.random();
this.speed = 5 * this.temp;
this._y = random(10) - 10;
this._x = random(700) - 300;
}
if (this._x > 410) {
this.temp = Math.random();
this.speed = 5 * this.temp;
this._y = random(10) - 10;
this._x = random(600) - 200;
}
}
onClipEvent (load) {
this.temp = Math.random();
this.speed = 5 * this.temp;
this.yspeed = this.speed + 1;
this.xspeed = (2 / this.yspeed) + (2 * this.temp);
this.star1.gotoAndPlay(1);
this.star1.star2.gotoAndPlay(1);
this._width = (this.temp * 5) + 2;
this._height = this._width;
this._y = random(300) - 300;
this._x = random(700) - 300;
this.star1.gotoAndPlay(2 / (random(15) + random(15)));
this.star1.star2.gotoAndPlay(2 / (random(20) + random(20)));
}
Instance of Symbol 314 MovieClip in Frame 120
onClipEvent (enterFrame) {
this._y = this._y + this.yspeed;
this._x = this._x + this.xspeed;
if (this._y > 310) {
this.temp = Math.random();
this.speed = 5 * this.temp;
this._y = random(10) - 10;
this._x = random(700) - 300;
}
if (this._x > 410) {
this.temp = Math.random();
this.speed = 5 * this.temp;
this._y = random(10) - 10;
this._x = random(600) - 200;
}
}
onClipEvent (load) {
this.temp = Math.random();
this.speed = 5 * this.temp;
this.yspeed = this.speed + 1;
this.xspeed = (2 / this.yspeed) + (2 * this.temp);
this.star1.gotoAndPlay(1);
this.star1.star2.gotoAndPlay(1);
this._width = (this.temp * 5) + 2;
this._height = this._width;
this._y = random(300) - 300;
this._x = random(700) - 300;
this.star1.gotoAndPlay(2 / (random(15) + random(15)));
this.star1.star2.gotoAndPlay(2 / (random(20) + random(20)));
}
Instance of Symbol 314 MovieClip in Frame 120
onClipEvent (enterFrame) {
this._y = this._y + this.yspeed;
this._x = this._x + this.xspeed;
if (this._y > 310) {
this.temp = Math.random();
this.speed = 5 * this.temp;
this._y = random(10) - 10;
this._x = random(700) - 300;
}
if (this._x > 410) {
this.temp = Math.random();
this.speed = 5 * this.temp;
this._y = random(10) - 10;
this._x = random(600) - 200;
}
}
onClipEvent (load) {
this.temp = Math.random();
this.speed = 5 * this.temp;
this.yspeed = this.speed + 1;
this.xspeed = (2 / this.yspeed) + (2 * this.temp);
this.star1.gotoAndPlay(1);
this.star1.star2.gotoAndPlay(1);
this._width = (this.temp * 5) + 2;
this._height = this._width;
this._y = random(300) - 300;
this._x = random(700) - 300;
this.star1.gotoAndPlay(2 / (random(15) + random(15)));
this.star1.star2.gotoAndPlay(2 / (random(20) + random(20)));
}
Instance of Symbol 314 MovieClip in Frame 120
onClipEvent (enterFrame) {
this._y = this._y + this.yspeed;
this._x = this._x + this.xspeed;
if (this._y > 310) {
this.temp = Math.random();
this.speed = 5 * this.temp;
this._y = random(10) - 10;
this._x = random(700) - 300;
}
if (this._x > 410) {
this.temp = Math.random();
this.speed = 5 * this.temp;
this._y = random(10) - 10;
this._x = random(600) - 200;
}
}
onClipEvent (load) {
this.temp = Math.random();
this.speed = 5 * this.temp;
this.yspeed = this.speed + 1;
this.xspeed = (2 / this.yspeed) + (2 * this.temp);
this.star1.gotoAndPlay(1);
this.star1.star2.gotoAndPlay(1);
this._width = (this.temp * 5) + 2;
this._height = this._width;
this._y = random(300) - 300;
this._x = random(700) - 300;
this.star1.gotoAndPlay(2 / (random(15) + random(15)));
this.star1.star2.gotoAndPlay(2 / (random(20) + random(20)));
}
Instance of Symbol 314 MovieClip in Frame 120
onClipEvent (enterFrame) {
this._y = this._y + this.yspeed;
this._x = this._x + this.xspeed;
if (this._y > 310) {
this.temp = Math.random();
this.speed = 5 * this.temp;
this._y = random(10) - 10;
this._x = random(700) - 300;
}
if (this._x > 410) {
this.temp = Math.random();
this.speed = 5 * this.temp;
this._y = random(10) - 10;
this._x = random(600) - 200;
}
}
onClipEvent (load) {
this.temp = Math.random();
this.speed = 5 * this.temp;
this.yspeed = this.speed + 1;
this.xspeed = (2 / this.yspeed) + (2 * this.temp);
this.star1.gotoAndPlay(1);
this.star1.star2.gotoAndPlay(1);
this._width = (this.temp * 5) + 2;
this._height = this._width;
this._y = random(300) - 300;
this._x = random(700) - 300;
this.star1.gotoAndPlay(2 / (random(15) + random(15)));
this.star1.star2.gotoAndPlay(2 / (random(20) + random(20)));
}
Instance of Symbol 314 MovieClip in Frame 120
onClipEvent (enterFrame) {
this._y = this._y + this.yspeed;
this._x = this._x + this.xspeed;
if (this._y > 310) {
this.temp = Math.random();
this.speed = 5 * this.temp;
this._y = random(10) - 10;
this._x = random(700) - 300;
}
if (this._x > 410) {
this.temp = Math.random();
this.speed = 5 * this.temp;
this._y = random(10) - 10;
this._x = random(600) - 200;
}
}
onClipEvent (load) {
this.temp = Math.random();
this.speed = 5 * this.temp;
this.yspeed = this.speed + 1;
this.xspeed = (2 / this.yspeed) + (2 * this.temp);
this.star1.gotoAndPlay(1);
this.star1.star2.gotoAndPlay(1);
this._width = (this.temp * 5) + 2;
this._height = this._width;
this._y = random(300) - 300;
this._x = random(700) - 300;
this.star1.gotoAndPlay(2 / (random(15) + random(15)));
this.star1.star2.gotoAndPlay(2 / (random(20) + random(20)));
}
Instance of Symbol 323 MovieClip "egg" in Frame 120
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 130
stop();
Instance of Symbol 328 MovieClip "egg" in Frame 130
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 140
stop();
Instance of Symbol 331 MovieClip "egg" in Frame 140
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 150
stop();
Instance of Symbol 335 MovieClip "egg" in Frame 150
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 160
stop();
Instance of Symbol 339 MovieClip "egg" in Frame 160
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 170
stop();
Instance of Symbol 340 MovieClip "egg" in Frame 170
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 180
stop();
Instance of Symbol 341 MovieClip "egg" in Frame 180
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 190
stop();
Instance of Symbol 344 MovieClip "egg" in Frame 190
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 200
stop();
Instance of Symbol 345 MovieClip "egg" in Frame 200
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 210
stop();
Instance of Symbol 347 MovieClip "egg" in Frame 210
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 220
stop();
Instance of Symbol 310 MovieClip "numbers" in Frame 220
onClipEvent (enterFrame) {
if (_root.w1 < 10) {
this.gotoAndStop(1);
temp = _root.w1;
_parent.numbers2.gotoAndStop(temp + 1);
}
if (_root.w1 > 9) {
this.gotoAndStop(2);
temp = _root.w1 - 10;
_parent.numbers2.gotoAndStop(temp + 1);
}
if (_root.w1 > 19) {
this.gotoAndStop(3);
temp = _root.w1 - 20;
_parent.numbers2.gotoAndStop(temp + 1);
}
if (_root.w1 > 29) {
this.gotoAndStop(4);
temp = _root.w1 - 30;
_parent.numbers2.gotoAndStop(temp + 1);
}
if (_root.w1 > 39) {
this.gotoAndStop(5);
temp = _root.w1 - 40;
_parent.numbers2.gotoAndStop(temp + 1);
}
if (_root.w1 > 49) {
this.gotoAndStop(6);
temp = _root.w1 - 50;
_parent.numbers2.gotoAndStop(temp + 1);
}
if (_root.w1 > 59) {
this.gotoAndStop(7);
temp = _root.w1 - 60;
_parent.numbers2.gotoAndStop(temp + 1);
}
if (_root.w1 > 69) {
this.gotoAndStop(8);
temp = _root.w1 - 70;
_parent.numbers2.gotoAndStop(temp + 1);
}
if (_root.w1 > 79) {
this.gotoAndStop(9);
temp = _root.w1 - 80;
_parent.numbers2.gotoAndStop(temp + 1);
}
if (_root.w1 > 89) {
this.gotoAndStop(10);
temp = _root.w1 - 90;
_parent.numbers2.gotoAndStop(temp + 1);
}
if (_root.w1 > 99) {
_root.w1 = 99;
}
}
Frame 221
gotoAndPlay (2);
Frame 249
stop();
w1 = 0;
Instance of Symbol 134 MovieClip "loader1" in Frame 249
onClipEvent (enterFrame) {
if (_root._framesloaded == _root._totalframes) {
gotoAndStop (2);
}
}
Frame 250
stop();
Instance of Symbol 370 MovieClip "egg" in Frame 250
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 260
stop();
Instance of Symbol 376 MovieClip "egg" in Frame 260
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 270
stop();
Instance of Symbol 381 MovieClip "egg" in Frame 270
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 280
stop();
Instance of Symbol 385 MovieClip "egg" in Frame 280
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 290
stop();
Instance of Symbol 390 MovieClip "egg" in Frame 290
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 300
stop();
Instance of Symbol 394 MovieClip "egg" in Frame 300
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 310
stop();
Instance of Symbol 396 MovieClip "egg" in Frame 310
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 320
stop();
Instance of Symbol 398 MovieClip "egg" in Frame 320
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 330
stop();
Instance of Symbol 400 MovieClip "egg" in Frame 330
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 340
stop();
Instance of Symbol 403 MovieClip "egg" in Frame 340
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 350
stop();
Instance of Symbol 310 MovieClip "numbers" in Frame 350
onClipEvent (enterFrame) {
if (_root.w1 < 10) {
this.gotoAndStop(1);
temp = _root.w1;
_parent.numbers2.gotoAndStop(temp + 1);
}
if (_root.w1 > 9) {
this.gotoAndStop(2);
temp = _root.w1 - 10;
_parent.numbers2.gotoAndStop(temp + 1);
}
if (_root.w1 > 19) {
this.gotoAndStop(3);
temp = _root.w1 - 20;
_parent.numbers2.gotoAndStop(temp + 1);
}
if (_root.w1 > 29) {
this.gotoAndStop(4);
temp = _root.w1 - 30;
_parent.numbers2.gotoAndStop(temp + 1);
}
if (_root.w1 > 39) {
this.gotoAndStop(5);
temp = _root.w1 - 40;
_parent.numbers2.gotoAndStop(temp + 1);
}
if (_root.w1 > 49) {
this.gotoAndStop(6);
temp = _root.w1 - 50;
_parent.numbers2.gotoAndStop(temp + 1);
}
if (_root.w1 > 59) {
this.gotoAndStop(7);
temp = _root.w1 - 60;
_parent.numbers2.gotoAndStop(temp + 1);
}
if (_root.w1 > 69) {
this.gotoAndStop(8);
temp = _root.w1 - 70;
_parent.numbers2.gotoAndStop(temp + 1);
}
if (_root.w1 > 79) {
this.gotoAndStop(9);
temp = _root.w1 - 80;
_parent.numbers2.gotoAndStop(temp + 1);
}
if (_root.w1 > 89) {
this.gotoAndStop(10);
temp = _root.w1 - 90;
_parent.numbers2.gotoAndStop(temp + 1);
}
if (_root.w1 > 99) {
_root.w1 = 99;
}
}
Frame 351
gotoAndPlay (2);
Symbol 21 Button
on (release) {
_root.sound.buttonsound();
_root.sound.musicstatus = false;
_root.sound.stopsound();
gotoAndStop (2);
}
Symbol 23 Button
on (release) {
_root.sound.buttonsound();
_root.sound.musicstatus = true;
_root.sound.startsound();
gotoAndStop (1);
}
Symbol 24 MovieClip Frame 1
stop();
Symbol 24 MovieClip Frame 2
stop();
Symbol 31 Button
on (release) {
_root.sound.buttonsound();
_root.gotoAndStop(5);
}
Symbol 34 Button
on (release) {
_root.sound.buttonsound();
_root.gotoAndStop(4);
}
Symbol 37 Button
on (release) {
_root.sound.buttonsound();
_root.nextFrame();
}
Symbol 45 Button
on (release) {
_root.gotoAndStop(2);
}
Symbol 46 Button
on (release) {
_root.sound.buttonsound();
_root.gotoAndStop(2);
}
Symbol 49 Button
on (release) {
_root.sound.buttonsound();
_root.gotoAndPlay(9);
}
Symbol 52 Button
on (release) {
_root.gotoAndPlay(6);
_root.sound.buttonsound();
}
Symbol 55 Button
on (release) {
_root.gotoAndPlay(7);
_root.sound.buttonsound();
}
Symbol 56 Button
on (release) {
_root.sound.buttonsound();
_root.gotoAndPlay(7);
}
Symbol 57 Button
on (release) {
_root.sound.buttonsound();
_root.gotoAndPlay(6);
}
Symbol 58 MovieClip Frame 30
stop();
Symbol 59 Button
on (release) {
_root.sound.buttonsound();
}
Symbol 60 Button
on (release) {
_root.sound.buttonsound();
}
Symbol 61 Button
on (release) {
_root.sound.buttonsound();
}
Instance of Symbol 62 MovieClip in Symbol 64 MovieClip Frame 1
onClipEvent (load) {
n = 5;
}
onClipEvent (enterFrame) {
if (this._x > -350) {
this._x = this._x - n;
n = n + 2;
}
}
Instance of Symbol 63 MovieClip in Symbol 64 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._alpha > 40) {
this._alpha = this._alpha - 5;
}
}
Symbol 65 MovieClip Frame 10
stop();
Symbol 66 Button
on (release) {
_root.sound.buttonsound();
_root.gotoAndStop(2);
}
Symbol 71 MovieClip Frame 30
stop();
Instance of Symbol 62 MovieClip in Symbol 72 MovieClip Frame 1
onClipEvent (load) {
n = 5;
}
onClipEvent (enterFrame) {
if (this._x > -350) {
this._x = this._x - n;
n = n + 2;
}
}
Instance of Symbol 63 MovieClip in Symbol 72 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._alpha > 40) {
this._alpha = this._alpha - 5;
}
}
Symbol 75 MovieClip Frame 1
stop();
Symbol 76 Button
on (release) {
changed = true;
currentcourse = 1;
_root.sound.buttonsound();
}
Symbol 77 Button
on (release) {
changed = true;
currentcourse = 2;
_root.sound.buttonsound();
}
Symbol 78 Button
on (release) {
changed = true;
currentcourse = 3;
_root.sound.buttonsound();
}
Symbol 79 Button
on (release) {
changed = true;
currentcourse = 2;
_root.sound.buttonsound();
gotoAndStop (31);
}
Symbol 80 Button
on (release) {
changed = true;
currentcourse = 3;
_root.sound.buttonsound();
gotoAndStop (32);
}
Symbol 81 Button
on (release) {
changed = true;
currentcourse = 1;
_root.sound.buttonsound();
gotoAndStop (30);
}
Symbol 82 Button
on (release) {
changed = true;
currentcourse = 2;
_root.sound.buttonsound();
gotoAndStop (31);
}
Symbol 83 Button
on (release) {
changed = true;
currentcourse = 3;
_root.sound.buttonsound();
gotoAndStop (32);
}
Symbol 84 MovieClip Frame 1
currentcourse = 1;
Symbol 84 MovieClip Frame 30
stop();
Symbol 84 MovieClip Frame 31
stop();
Symbol 84 MovieClip Frame 32
stop();
Symbol 118 MovieClip Frame 1
scoretemp1b = _root.course_1_scores[0];
scoretemp1a = _root.course_1_scores[1];
scoretemp2b = _root.course_1_scores[3];
scoretemp2a = _root.course_1_scores[4];
scoretemp3b = _root.course_1_scores[6];
scoretemp3a = _root.course_1_scores[7];
scoretemp4b = _root.course_1_scores[9];
scoretemp4a = _root.course_1_scores[10];
scoretemp5b = _root.course_1_scores[12];
scoretemp5a = _root.course_1_scores[13];
scoretemp6b = _root.course_1_scores[15];
scoretemp6a = _root.course_1_scores[16];
scoretemp7b = _root.course_1_scores[18];
scoretemp7a = _root.course_1_scores[19];
scoretemp8b = _root.course_1_scores[21];
scoretemp8a = _root.course_1_scores[22];
scoretemp9b = _root.course_1_scores[24];
scoretemp9a = _root.course_1_scores[25];
scoretemp10b = _root.course_1_scores[27];
scoretemp10a = _root.course_1_scores[28];
Symbol 118 MovieClip Frame 25
stop();
scoretemp1b = _root.course_1_scores[0];
scoretemp1a = _root.course_1_scores[1];
scoretemp2b = _root.course_1_scores[3];
scoretemp2a = _root.course_1_scores[4];
scoretemp3b = _root.course_1_scores[6];
scoretemp3a = _root.course_1_scores[7];
scoretemp4b = _root.course_1_scores[9];
scoretemp4a = _root.course_1_scores[10];
scoretemp5b = _root.course_1_scores[12];
scoretemp5a = _root.course_1_scores[13];
scoretemp6b = _root.course_1_scores[15];
scoretemp6a = _root.course_1_scores[16];
scoretemp7b = _root.course_1_scores[18];
scoretemp7a = _root.course_1_scores[19];
scoretemp8b = _root.course_1_scores[21];
scoretemp8a = _root.course_1_scores[22];
scoretemp9b = _root.course_1_scores[24];
scoretemp9a = _root.course_1_scores[25];
scoretemp10b = _root.course_1_scores[27];
scoretemp10a = _root.course_1_scores[28];
Instance of Symbol 84 MovieClip in Symbol 118 MovieClip Frame 25
onClipEvent (load) {
changed = false;
currentcourse = 1;
}
onClipEvent (enterFrame) {
if (changed == true) {
if (currentcourse == 1) {
changed = false;
_parent.scoretemp1b = _root.course_1_scores[0];
_parent.scoretemp1a = _root.course_1_scores[1];
_parent.scoretemp2b = _root.course_1_scores[3];
_parent.scoretemp2a = _root.course_1_scores[4];
_parent.scoretemp3b = _root.course_1_scores[6];
_parent.scoretemp3a = _root.course_1_scores[7];
_parent.scoretemp4b = _root.course_1_scores[9];
_parent.scoretemp4a = _root.course_1_scores[10];
_parent.scoretemp5b = _root.course_1_scores[12];
_parent.scoretemp5a = _root.course_1_scores[13];
_parent.scoretemp6b = _root.course_1_scores[15];
_parent.scoretemp6a = _root.course_1_scores[16];
_parent.scoretemp7b = _root.course_1_scores[18];
_parent.scoretemp7a = _root.course_1_scores[19];
_parent.scoretemp8b = _root.course_1_scores[21];
_parent.scoretemp8a = _root.course_1_scores[22];
_parent.scoretemp9b = _root.course_1_scores[24];
_parent.scoretemp9a = _root.course_1_scores[25];
_parent.scoretemp10b = _root.course_1_scores[27];
_parent.scoretemp10a = _root.course_1_scores[28];
}
if (currentcourse == 2) {
changed = false;
_parent.scoretemp1b = _root.course_2_scores[0];
_parent.scoretemp1a = _root.course_2_scores[1];
_parent.scoretemp2b = _root.course_2_scores[3];
_parent.scoretemp2a = _root.course_2_scores[4];
_parent.scoretemp3b = _root.course_2_scores[6];
_parent.scoretemp3a = _root.course_2_scores[7];
_parent.scoretemp4b = _root.course_2_scores[9];
_parent.scoretemp4a = _root.course_2_scores[10];
_parent.scoretemp5b = _root.course_2_scores[12];
_parent.scoretemp5a = _root.course_2_scores[13];
_parent.scoretemp6b = _root.course_2_scores[15];
_parent.scoretemp6a = _root.course_2_scores[16];
_parent.scoretemp7b = _root.course_2_scores[18];
_parent.scoretemp7a = _root.course_2_scores[19];
_parent.scoretemp8b = _root.course_2_scores[21];
_parent.scoretemp8a = _root.course_2_scores[22];
_parent.scoretemp9b = _root.course_2_scores[24];
_parent.scoretemp9a = _root.course_2_scores[25];
_parent.scoretemp10b = _root.course_2_scores[27];
_parent.scoretemp10a = _root.course_2_scores[28];
}
if (currentcourse == 3) {
changed = false;
_parent.scoretemp1b = _root.course_3_scores[0];
_parent.scoretemp1a = _root.course_3_scores[1];
_parent.scoretemp2b = _root.course_3_scores[3];
_parent.scoretemp2a = _root.course_3_scores[4];
_parent.scoretemp3b = _root.course_3_scores[6];
_parent.scoretemp3a = _root.course_3_scores[7];
_parent.scoretemp4b = _root.course_3_scores[9];
_parent.scoretemp4a = _root.course_3_scores[10];
_parent.scoretemp5b = _root.course_3_scores[12];
_parent.scoretemp5a = _root.course_3_scores[13];
_parent.scoretemp6b = _root.course_3_scores[15];
_parent.scoretemp6a = _root.course_3_scores[16];
_parent.scoretemp7b = _root.course_3_scores[18];
_parent.scoretemp7a = _root.course_3_scores[19];
_parent.scoretemp8b = _root.course_3_scores[21];
_parent.scoretemp8a = _root.course_3_scores[22];
_parent.scoretemp9b = _root.course_3_scores[24];
_parent.scoretemp9a = _root.course_3_scores[25];
_parent.scoretemp10b = _root.course_3_scores[27];
_parent.scoretemp10a = _root.course_3_scores[28];
}
}
}
Instance of Symbol 62 MovieClip in Symbol 119 MovieClip Frame 1
onClipEvent (load) {
n = 5;
}
onClipEvent (enterFrame) {
if (this._x > -350) {
this._x = this._x - n;
n = n + 2;
}
}
Instance of Symbol 63 MovieClip in Symbol 119 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._alpha > 40) {
this._alpha = this._alpha - 5;
}
}
Symbol 121 MovieClip Frame 15
gotoAndPlay (1);
Symbol 122 MovieClip Frame 1
stop();
Instance of Symbol 12 MovieClip "preloader" in Symbol 122 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root._framesloaded > 220) {
_parent.gotoAndStop(2);
}
}
Symbol 122 MovieClip Frame 2
stop();
Instance of Symbol 121 MovieClip in Symbol 122 MovieClip Frame 2
onClipEvent (load) {
Mouse.addListener(trigger);
}
onClipEvent (enterFrame) {
this.onMouseUp = function () {
_parent._parent.gotoAndPlay(120);
};
}
Symbol 127 MovieClip Frame 1
stop();
Instance of Symbol 12 MovieClip "preloader" in Symbol 127 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root._framesloaded > 349) {
_parent.gotoAndStop(2);
}
}
Symbol 127 MovieClip Frame 2
stop();
Instance of Symbol 121 MovieClip in Symbol 127 MovieClip Frame 2
onClipEvent (load) {
Mouse.addListener(trigger);
}
onClipEvent (enterFrame) {
this.onMouseUp = function () {
_parent._parent.gotoAndPlay(250);
};
}
Symbol 134 MovieClip Frame 1
stop();
Symbol 134 MovieClip Frame 2
stop();
Instance of Symbol 121 MovieClip in Symbol 134 MovieClip Frame 2
onClipEvent (load) {
Mouse.addListener(trigger);
}
onClipEvent (enterFrame) {
this.onMouseUp = function () {
_parent._parent.nextFrame();
};
}
Instance of Symbol 147 MovieClip "numbers" in Symbol 149 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.w1 < 10) {
this.gotoAndStop(1);
temp = _root.w1;
_parent.numbers2.gotoAndStop(temp + 1);
}
if (_root.w1 > 9) {
this.gotoAndStop(2);
temp = _root.w1 - 10;
_parent.numbers2.gotoAndStop(temp + 1);
}
if (_root.w1 > 19) {
this.gotoAndStop(3);
temp = _root.w1 - 20;
_parent.numbers2.gotoAndStop(temp + 1);
}
if (_root.w1 > 29) {
this.gotoAndStop(4);
temp = _root.w1 - 30;
_parent.numbers2.gotoAndStop(temp + 1);
}
if (_root.w1 > 39) {
this.gotoAndStop(5);
temp = _root.w1 - 40;
_parent.numbers2.gotoAndStop(temp + 1);
}
if (_root.w1 > 49) {
this.gotoAndStop(6);
temp = _root.w1 - 50;
_parent.numbers2.gotoAndStop(temp + 1);
}
if (_root.w1 > 59) {
this.gotoAndStop(7);
temp = _root.w1 - 60;
_parent.numbers2.gotoAndStop(temp + 1);
}
if (_root.w1 > 69) {
this.gotoAndStop(8);
temp = _root.w1 - 70;
_parent.numbers2.gotoAndStop(temp + 1);
}
if (_root.w1 > 79) {
this.gotoAndStop(9);
temp = _root.w1 - 80;
_parent.numbers2.gotoAndStop(temp + 1);
}
if (_root.w1 > 89) {
this.gotoAndStop(10);
temp = _root.w1 - 90;
_parent.numbers2.gotoAndStop(temp + 1);
}
if (_root.w1 > 99) {
_root.w1 = 99;
}
}
Symbol 151 Button
on (press) {
_parent._parent.eggstatus = "firing";
}
Instance of Symbol 155 MovieClip in Symbol 157 MovieClip Frame 1
onClipEvent (load) {
if (_root._currentFrame > 115) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 158 MovieClip Frame 1
stop();
Instance of Symbol 157 MovieClip "eggbodygraphic" in Symbol 158 MovieClip Frame 1
onClipEvent (load) {
if (_root._currentFrame > 240) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 158 MovieClip Frame 2
stop();
Instance of Symbol 157 MovieClip "eggbodygraphic" in Symbol 158 MovieClip Frame 2
onClipEvent (load) {
if (_root._currentFrame > 240) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 163 MovieClip Frame 1
stop();
Instance of Symbol 162 MovieClip in Symbol 163 MovieClip Frame 1
onClipEvent (load) {
if (_root._currentFrame > 240) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 163 MovieClip Frame 2
stop();
Symbol 164 MovieClip Frame 1
trace("start");
Instance of Symbol 158 MovieClip "body" in Symbol 164 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.eggstatus == "firing") {
_parent.xpower = _parent._parent.egg._x - _parent._parent._xmouse;
_parent.ypower = _parent._parent.egg._y - _parent._parent._ymouse;
if (_parent.xpower > 55) {
trace("limit");
_parent.xpower = 55;
}
if (_parent.ypower > 55) {
trace("limit");
_parent.ypower = 55;
}
this._rotation = 360 - _parent.xpower;
}
}
Symbol 164 MovieClip Frame 40
trace("testing =" + _parent._parent._parent._currentFrame);
_parent._parent._parent.gotoAndPlay(_parent._parent._parent._currentFrame + 10);
Symbol 165 MovieClip Frame 1
stop();
Instance of Symbol 152 MovieClip "trigger" in Symbol 165 MovieClip Frame 1
onClipEvent (load) {
Mouse.addListener(trigger);
}
onClipEvent (enterFrame) {
this.onMouseUp = function () {
if (_parent._parent.eggstatus == "firing") {
_parent._parent.eggstatus = "launch";
_root.w1 = _root.w1 + 1;
trace("score " + _root.w1);
_parent.body._rotation = 0;
_parent._parent.gotoAndPlay(2);
}
};
}
Instance of Symbol 158 MovieClip "body" in Symbol 165 MovieClip Frame 1
onClipEvent (load) {
this.maxpower = 6;
}
onClipEvent (enterFrame) {
if (_parent._parent.eggstatus == "firing") {
_parent._parent.xpower = 0.4 * (_parent._parent._parent.egg.mainegg._x - _parent._parent._xmouse);
_parent._parent.ypower = 0.4 * (_parent._parent._parent.egg.mainegg._y - _parent._parent._ymouse);
power = 0.4 * Math.sqrt((_parent._parent.xpower * _parent._parent.xpower) + (_parent._parent.ypower * _parent._parent.ypower));
_parent._parent.power = power;
if (power < maxpower) {
_parent._parent.xpower = 0.4 * (_parent._parent._parent.egg.mainegg._x - _parent._parent._xmouse);
_parent._parent.ypower = 0.4 * (_parent._parent._parent.egg.mainegg._y - _parent._parent._ymouse);
scalefactor = 1;
} else {
scalefactor = Math.abs(power) / Math.abs(maxpower);
_parent._parent.xpower = (0.4 * (_parent._parent._parent.egg.mainegg._x - _parent._parent._xmouse)) / scalefactor;
_parent._parent.ypower = (0.4 * (_parent._parent._parent.egg.mainegg._y - _parent._parent._ymouse)) / scalefactor;
}
if (_parent._parent._parent.egg.mainegg._x > _parent._parent._xmouse) {
_parent._parent.facing = "right";
this._rotation = 360 - ((power * 10) / scalefactor);
_parent.feet.gotoAndStop(1);
this.gotoAndStop(1);
trace(this._rotation);
} else {
_parent._parent.facing = "left";
this._rotation = 360 + ((power * 10) / scalefactor);
_parent.feet.gotoAndStop(2);
this.gotoAndStop(2);
}
}
}
Symbol 165 MovieClip Frame 2
stop();
Symbol 170 MovieClip Frame 15
gotoAndPlay (1);
Symbol 171 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 2
stop();
Instance of Symbol 167 MovieClip "mask" in Symbol 171 MovieClip Frame 2
onClipEvent (enterFrame) {
this._width = _parent._parent.power * 12;
if (this._width > 80) {
this._width = 80;
}
}
Symbol 174 MovieClip Frame 1
this.collision = false;
if (_parent.spinningegg.active == true) {
if ((_parent.spinningegg._x + this.edge) > this.leftside) {
if ((_parent.spinningegg._y + this.edge) > this.top) {
if ((_parent.spinningegg._y - this.edge) < this.bottom) {
if ((_parent.spinningegg._x - this.edge) < this.rightside) {
if (_parent.dropvar > 0) {
this.collision = true;
landingsound = new Sound();
landingsound.attachSound("land_real_short.wav");
landingsound.start();
}
}
}
}
}
if (this.collision == true) {
this.found = false;
if (this.found == false) {
if (_parent.spinningegg._x > this.rightside) {
if (_parent.xpower < 0) {
_parent.spinningegg._x = (_parent.spinningegg._x - _parent.xpower) + 2;
_parent.xpower = Math.abs(_parent.xpower - (1.5 * _parent.xpower));
_parent.spinningegg.eggspin = _parent.spinningegg.eggspin - (2 * _parent.spinningegg.eggspin);
}
this.found = true;
}
}
if (this.found == false) {
if (_parent.spinningegg._x < this.leftside) {
if (_parent.xpower > 0) {
_parent.spinningegg._x = (_parent.spinningegg._x - _parent.xpower) - 2;
_parent.xpower = _parent.xpower - (1.5 * _parent.xpower);
_parent.spinningegg.eggspin = _parent.spinningegg.eggspin - (2 * _parent.spinningegg.eggspin);
}
this.found = true;
}
}
if (this.found == false) {
if (_parent.spinningegg._y > (this.bottom - this.edge)) {
this.found = true;
_parent.spinningegg._y = this.bottom + 10;
_parent.ypower = 0;
_parent.spinningegg.gravity = 0.3;
_parent.spinningegg.gravity2 = 0.3;
}
}
if (this.found == false) {
if (_parent.spinningegg._y < this.top) {
_parent.spinningegg._y = this.top - 10;
_parent.spinningegg.active = false;
_parent.spinningegg.gotoAndPlay(2);
_parent.new_x = _parent.spinningegg._x;
_parent.new_y = _parent.spinningegg._y;
this.found = true;
}
}
if (this.found == false) {
_parent.spinningegg.active = false;
_parent.spinningegg.gotoAndPlay(2);
_parent.spinningegg._y = this.top - 10;
_parent.new_x = _parent.spinningegg._x;
_parent.new_y = _parent.spinningegg._y;
}
}
}
Symbol 174 MovieClip Frame 2
this.collision = false;
if (_parent.spinningegg.active == true) {
if ((_parent.spinningegg._x + this.edge) > this.leftside) {
if ((_parent.spinningegg._y + this.edge) > this.top) {
if ((_parent.spinningegg._y - this.edge) < this.bottom) {
if ((_parent.spinningegg._x - this.edge) < this.rightside) {
if (_parent.dropvar > 0) {
this.collision = true;
landingsound = new Sound();
landingsound.attachSound("land_real_short.wav");
landingsound.start();
}
}
}
}
}
if (this.collision == true) {
this.found = false;
if (this.found == false) {
if (_parent.spinningegg._x > this.rightside) {
if (_parent.xpower < 0) {
_parent.spinningegg._x = (_parent.spinningegg._x - _parent.xpower) + 2;
_parent.xpower = Math.abs(_parent.xpower - (1.5 * _parent.xpower));
_parent.spinningegg.eggspin = _parent.spinningegg.eggspin - (2 * _parent.spinningegg.eggspin);
}
this.found = true;
}
}
if (this.found == false) {
if (_parent.spinningegg._x < this.leftside) {
if (_parent.xpower > 0) {
_parent.spinningegg._x = (_parent.spinningegg._x - _parent.xpower) - 2;
_parent.xpower = _parent.xpower - (1.5 * _parent.xpower);
_parent.spinningegg.eggspin = _parent.spinningegg.eggspin - (2 * _parent.spinningegg.eggspin);
}
this.found = true;
}
}
if (this.found == false) {
if (_parent.spinningegg._y > (this.bottom - this.edge)) {
this.found = true;
_parent.spinningegg._y = this.bottom + 10;
_parent.ypower = 0;
_parent.spinningegg.gravity = 0.3;
_parent.spinningegg.gravity2 = 0.3;
}
}
if (this.found == false) {
if (_parent.spinningegg._y < this.top) {
_parent.spinningegg._y = this.top - 10;
_parent.spinningegg.active = false;
_parent.spinningegg.gotoAndPlay(2);
_parent.new_x = _parent.spinningegg._x;
_parent.new_y = _parent.spinningegg._y;
this.found = true;
}
}
if (this.found == false) {
_parent.spinningegg.active = false;
_parent.spinningegg.gotoAndPlay(2);
_parent.spinningegg._y = this.top - 10;
_parent.new_x = _parent.spinningegg._x;
_parent.new_y = _parent.spinningegg._y;
}
}
}
gotoAndPlay (1);
Symbol 235 MovieClip Frame 29
gotoAndPlay (1);
Symbol 236 MovieClip Frame 1
stop();
this.ready = true;
Symbol 236 MovieClip Frame 2
this.ready = false;
_root.sound.gottwig();
Symbol 236 MovieClip Frame 40
stop();
_parent.ladder.gotoAndPlay(2);
Symbol 241 MovieClip Frame 1
stop();
Symbol 241 MovieClip Frame 2
stop();
Symbol 242 MovieClip Frame 1
stop();
ready = false;
Instance of Symbol 241 MovieClip in Symbol 242 MovieClip Frame 1
onClipEvent (load) {
if (_root._currentFrame > 240) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 242 MovieClip Frame 2
ready = true;
Symbol 242 MovieClip Frame 30
stop();
ready = true;
Instance of Symbol 158 MovieClip "body" in Symbol 250 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.eggstatus == "firing") {
_parent.xpower = _parent._parent.egg._x - _parent._parent._xmouse;
_parent.ypower = _parent._parent.egg._y - _parent._parent._ymouse;
if (_parent.xpower > 55) {
trace("limit");
_parent.xpower = 55;
}
if (_parent.ypower > 55) {
trace("limit");
_parent.ypower = 55;
}
this._rotation = 360 - _parent.xpower;
}
}
Symbol 250 MovieClip Frame 30
stop();
_parent._parent._parent.gotoAndPlay(20);
Symbol 251 MovieClip Frame 30
stop();
_parent._parent.gotoAndPlay(1);
Symbol 252 MovieClip Frame 1
stop();
launchsound = new Sound();
launchsound.attachSound("boing_even_shorter.wav");
launchsound.start();
Instance of Symbol 158 MovieClip "body" in Symbol 252 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.eggstatus == "firing") {
_parent.xpower = _parent._parent.egg._x - _parent._parent._xmouse;
_parent.ypower = _parent._parent.egg._y - _parent._parent._ymouse;
if (_parent.xpower > 55) {
_parent.xpower = 55;
}
if (_parent.ypower > 55) {
_parent.ypower = 55;
}
this._rotation = 360 - _parent.xpower;
}
}
Symbol 252 MovieClip Frame 2
stop();
Instance of Symbol 251 MovieClip "eggup" in Symbol 252 MovieClip Frame 2
onClipEvent (load) {
if (_parent._parent.facing == "left") {
adjust.body.gotoAndPlay(2);
adjust.feet.gotoAndPlay(2);
} else {
adjust.body.gotoAndPlay(1);
adjust.feet.gotoAndPlay(1);
}
n = 0;
temp = _parent._rotation;
if (_parent._parent.facing == "left") {
direction = -1;
} else {
direction = 1;
}
}
onClipEvent (enterFrame) {
n = n + 1;
if (n < 7) {
if (direction == -1) {
newtemp = 360 - temp;
_parent._rotation = _parent._rotation - (newtemp / 7);
} else {
newtemp = 360 - temp;
_parent._rotation = _parent._rotation + (newtemp / 7);
}
} else {
_parent._rotation = 0;
}
}
Symbol 252 MovieClip Frame 3
stop();
Symbol 253 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 165 MovieClip "mainegg" in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
this._x = _parent.new_x;
this._y = _parent.new_y;
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
}
Instance of Symbol 171 MovieClip "comp" in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
_parent.power = 0;
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
}
onClipEvent (enterFrame) {
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
this._rotation = _parent.clip.deg;
trace(_parent.eggstatus);
if (_parent.eggstatus == "firing") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 172 MovieClip "clip" in Symbol 253 MovieClip Frame 1
onClipEvent (enterFrame) {
x = _root._xmouse - (_root.egg._x + _parent.comp._x);
y = _root._ymouse - (_root.egg._y + _parent.comp._y);
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
} else if ((Math.floor(y) == 0) && (x < 0)) {
deg = 180;
}
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 176 MovieClip "platform1" in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
_parent.complete = false;
}
onClipEvent (enterFrame) {
if (_parent.ladder.ready == true) {
if (_parent.spinningegg.active == false) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
_parent.mainegg._x = this._x;
_parent.mainegg._y = this._y;
_parent.mainegg._rotation = 0;
this.collision = true;
if (_parent.complete == false) {
_root.sound.levelcomplete();
}
_parent.complete = true;
}
}
}
}
}
}
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 236 MovieClip "twig" in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
this.ready = true;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (this.ready == true) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
trace("got twig ");
gotoAndPlay (2);
this.ready = false;
}
}
}
}
}
}
Symbol 253 MovieClip Frame 2
stop();
Instance of Symbol 252 MovieClip "spinningegg" in Symbol 253 MovieClip Frame 2
onClipEvent (load) {
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
screaming = false;
this._x = _parent.new_x;
this._y = _parent.new_y;
eggspin = 2 + (_parent.xpower / 1);
active = true;
power = 0.4 * Math.sqrt((_parent._parent.xpower * _parent._parent.xpower) + (_parent._parent.ypower * _parent._parent.ypower));
gravity = 0.5;
gravity2 = gravity;
_parent.dropvar = 1;
}
onClipEvent (enterFrame) {
if (active == true) {
if (gravity < 40) {
gravity = gravity + (gravity2 / 1.5);
}
this._x = this._x + (_parent.xpower * 0.7);
this._y = (this._y + (_parent.ypower * 0.7)) + gravity;
this._rotation = this._rotation + eggspin;
if (this._rotation > 360) {
this._rotation = 360;
}
if (this._x > 1000) {
_parent.gotoAndStop(1);
_root.w1 = _root.w1 + 1;
}
if (this._y < -1000) {
_parent.gotoAndStop(1);
_root.w1 = _root.w1 + 1;
}
if (this._x < -1000) {
_parent.gotoAndStop(1);
_root.w1 = _root.w1 + 1;
}
if (this._y > 100) {
if (screaming == false) {
_root.w1 = _root.w1 + 2;
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 257 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 165 MovieClip "mainegg" in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
this._x = _parent.new_x;
this._y = _parent.new_y;
trace("dir ---" + _parent.facing);
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
}
Instance of Symbol 171 MovieClip "comp" in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
_parent.power = 0;
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
}
onClipEvent (enterFrame) {
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
this._rotation = _parent.clip.deg;
trace(_parent.eggstatus);
if (_parent.eggstatus == "firing") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 172 MovieClip "clip" in Symbol 257 MovieClip Frame 1
onClipEvent (enterFrame) {
x = _root._xmouse - (_root.egg._x + _parent.comp._x);
y = _root._ymouse - (_root.egg._y + _parent.comp._y);
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
} else if ((Math.floor(y) == 0) && (x < 0)) {
deg = 180;
}
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 176 MovieClip "platform1" in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (_parent.ladder.ready == true) {
if (_parent.spinningegg.active == false) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
_parent.mainegg._x = this._x;
_parent.mainegg._y = this._y;
_parent.mainegg._rotation = 0;
this.collision = true;
if (_parent.complete == false) {
_root.sound.levelcomplete();
}
_parent.complete = true;
}
}
}
}
}
}
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 236 MovieClip "twig" in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
this.ready = true;
trace("twig mc name " + this._name);
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (this.ready == true) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
trace("got twig ");
gotoAndPlay (2);
this.ready = false;
}
}
}
}
}
}
Symbol 257 MovieClip Frame 2
stop();
Instance of Symbol 252 MovieClip "spinningegg" in Symbol 257 MovieClip Frame 2
onClipEvent (load) {
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
screaming = false;
this._x = _parent.new_x;
this._y = _parent.new_y;
eggspin = 2 + (_parent.xpower / 1);
active = true;
power = 0.4 * Math.sqrt((_parent._parent.xpower * _parent._parent.xpower) + (_parent._parent.ypower * _parent._parent.ypower));
gravity = 0.5;
gravity2 = gravity;
_parent.dropvar = 1;
}
onClipEvent (enterFrame) {
if (active == true) {
trace((("_parent.ypower " + _parent.ypower) + " xpower ") + _parent.xpower);
if (gravity < 40) {
gravity = gravity + (gravity2 / 1.5);
}
this._x = this._x + (_parent.xpower * 0.7);
this._y = (this._y + (_parent.ypower * 0.7)) + gravity;
this._rotation = this._rotation + eggspin;
if (this._rotation > 360) {
this._rotation = 360;
}
if (this._x > 1000) {
_parent.gotoAndStop(1);
}
if (this._y < -1000) {
_parent.gotoAndStop(1);
}
if (this._x < -1000) {
_parent.gotoAndStop(1);
}
if (this._y > 100) {
if (screaming == false) {
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 261 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 165 MovieClip "mainegg" in Symbol 261 MovieClip Frame 1
onClipEvent (load) {
this._x = _parent.new_x;
this._y = _parent.new_y;
trace("dir ---" + _parent.facing);
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
}
onClipEvent (enterFrame) {
if (_parent.complete == true) {
if (this._currentFrame == 1) {
this.gotoAndPlay(2);
}
}
}
Instance of Symbol 171 MovieClip "comp" in Symbol 261 MovieClip Frame 1
onClipEvent (load) {
_parent.power = 0;
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
}
onClipEvent (enterFrame) {
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
this._rotation = _parent.clip.deg;
trace(_parent.eggstatus);
if (_parent.eggstatus == "firing") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 172 MovieClip "clip" in Symbol 261 MovieClip Frame 1
onClipEvent (enterFrame) {
x = _root._xmouse - (_root.egg._x + _parent.comp._x);
y = _root._ymouse - (_root.egg._y + _parent.comp._y);
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
} else if ((Math.floor(y) == 0) && (x < 0)) {
deg = 180;
}
}
Instance of Symbol 176 MovieClip "platform1" in Symbol 261 MovieClip Frame 1
onClipEvent (load) {
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (_parent.ladder.ready == true) {
if (_parent.spinningegg.active == false) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
_parent.mainegg._x = this._x;
_parent.mainegg._y = this._y;
_parent.mainegg._rotation = 0;
this.collision = true;
if (_parent.complete == false) {
_root.sound.levelcomplete();
}
_parent.complete = true;
}
}
}
}
}
}
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 261 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 261 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 261 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 261 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 261 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 236 MovieClip "twig" in Symbol 261 MovieClip Frame 1
onClipEvent (load) {
this.ready = true;
trace("twig mc name " + this._name);
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (this.ready == true) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
trace("got twig ");
gotoAndPlay (2);
this.ready = false;
}
}
}
}
}
}
Symbol 261 MovieClip Frame 2
stop();
Instance of Symbol 252 MovieClip "spinningegg" in Symbol 261 MovieClip Frame 2
onClipEvent (load) {
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
screaming = false;
this._x = _parent.new_x;
this._y = _parent.new_y;
eggspin = 2 + (_parent.xpower / 1);
active = true;
power = 0.4 * Math.sqrt((_parent._parent.xpower * _parent._parent.xpower) + (_parent._parent.ypower * _parent._parent.ypower));
gravity = 0.5;
gravity2 = gravity;
_parent.dropvar = 1;
}
onClipEvent (enterFrame) {
if (active == true) {
trace((("_parent.ypower " + _parent.ypower) + " xpower ") + _parent.xpower);
if (gravity < 40) {
gravity = gravity + (gravity2 / 1.5);
}
this._x = this._x + (_parent.xpower * 0.7);
this._y = (this._y + (_parent.ypower * 0.7)) + gravity;
this._rotation = this._rotation + eggspin;
if (this._rotation > 360) {
this._rotation = 360;
}
if (this._x > 1000) {
_parent.gotoAndStop(1);
}
if (this._y < -1000) {
_parent.gotoAndStop(1);
}
if (this._x < -1000) {
_parent.gotoAndStop(1);
}
if (this._y > 100) {
if (screaming == false) {
_root.w1 = _root.w1 + 2;
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 264 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 165 MovieClip "mainegg" in Symbol 264 MovieClip Frame 1
onClipEvent (load) {
this._x = _parent.new_x;
this._y = _parent.new_y;
trace("dir ---" + _parent.facing);
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
}
Instance of Symbol 171 MovieClip "comp" in Symbol 264 MovieClip Frame 1
onClipEvent (load) {
_parent.power = 0;
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
}
onClipEvent (enterFrame) {
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
this._rotation = _parent.clip.deg;
trace(_parent.eggstatus);
if (_parent.eggstatus == "firing") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 172 MovieClip "clip" in Symbol 264 MovieClip Frame 1
onClipEvent (enterFrame) {
x = _root._xmouse - (_root.egg._x + _parent.comp._x);
y = _root._ymouse - (_root.egg._y + _parent.comp._y);
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
} else if ((Math.floor(y) == 0) && (x < 0)) {
deg = 180;
}
}
Instance of Symbol 176 MovieClip "platform1" in Symbol 264 MovieClip Frame 1
onClipEvent (load) {
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (_parent.ladder.ready == true) {
if (_parent.spinningegg.active == false) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
_parent.mainegg._x = this._x;
_parent.mainegg._y = this._y;
_parent.mainegg._rotation = 0;
this.collision = true;
if (_parent.complete == false) {
_root.sound.levelcomplete();
}
_parent.complete = true;
}
}
}
}
}
}
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 264 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 264 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 264 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 264 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 264 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 236 MovieClip "twig" in Symbol 264 MovieClip Frame 1
onClipEvent (load) {
this.ready = true;
trace("twig mc name " + this._name);
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (this.ready == true) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
trace("got twig ");
this.ready = false;
gotoAndPlay (2);
}
}
}
}
}
}
Symbol 264 MovieClip Frame 2
stop();
Instance of Symbol 252 MovieClip "spinningegg" in Symbol 264 MovieClip Frame 2
onClipEvent (load) {
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
screaming = false;
this._x = _parent.new_x;
this._y = _parent.new_y;
eggspin = 2 + (_parent.xpower / 1);
active = true;
power = 0.4 * Math.sqrt((_parent._parent.xpower * _parent._parent.xpower) + (_parent._parent.ypower * _parent._parent.ypower));
gravity = 0.5;
gravity2 = gravity;
_parent.dropvar = 1;
}
onClipEvent (enterFrame) {
if (active == true) {
trace((("_parent.ypower " + _parent.ypower) + " xpower ") + _parent.xpower);
if (gravity < 40) {
gravity = gravity + (gravity2 / 1.5);
}
this._x = this._x + (_parent.xpower * 0.7);
this._y = (this._y + (_parent.ypower * 0.7)) + gravity;
this._rotation = this._rotation + eggspin;
if (this._rotation > 360) {
this._rotation = 360;
}
if (this._x > 1000) {
_parent.gotoAndStop(1);
}
if (this._y < -1000) {
_parent.gotoAndStop(1);
}
if (this._x < -1000) {
_parent.gotoAndStop(1);
}
if (this._y > 100) {
if (screaming == false) {
_root.w1 = _root.w1 + 2;
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 267 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 165 MovieClip "mainegg" in Symbol 267 MovieClip Frame 1
onClipEvent (load) {
this._x = _parent.new_x;
this._y = _parent.new_y;
trace("dir ---" + _parent.facing);
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
}
Instance of Symbol 171 MovieClip "comp" in Symbol 267 MovieClip Frame 1
onClipEvent (load) {
_parent.power = 0;
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
}
onClipEvent (enterFrame) {
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
this._rotation = _parent.clip.deg;
trace(_parent.eggstatus);
if (_parent.eggstatus == "firing") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 172 MovieClip "clip" in Symbol 267 MovieClip Frame 1
onClipEvent (enterFrame) {
x = _root._xmouse - (_root.egg._x + _parent.comp._x);
y = _root._ymouse - (_root.egg._y + _parent.comp._y);
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
} else if ((Math.floor(y) == 0) && (x < 0)) {
deg = 180;
}
}
Instance of Symbol 176 MovieClip "platform1" in Symbol 267 MovieClip Frame 1
onClipEvent (load) {
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (_parent.ladder.ready == true) {
if (_parent.spinningegg.active == false) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
_parent.mainegg._x = this._x;
_parent.mainegg._y = this._y;
_parent.mainegg._rotation = 0;
this.collision = true;
if (_parent.complete == false) {
_root.sound.levelcomplete();
}
_parent.complete = true;
}
}
}
}
}
}
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 267 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 267 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 267 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 267 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 236 MovieClip "twig" in Symbol 267 MovieClip Frame 1
onClipEvent (load) {
this.ready = true;
trace("twig mc name " + this._name);
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (this.ready == true) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
trace("got twig ");
_parent.ladder.ready = false;
gotoAndPlay (2);
this.ready = false;
}
}
}
}
}
}
Symbol 267 MovieClip Frame 2
stop();
Instance of Symbol 252 MovieClip "spinningegg" in Symbol 267 MovieClip Frame 2
onClipEvent (load) {
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
screaming = false;
this._x = _parent.new_x;
this._y = _parent.new_y;
eggspin = 2 + (_parent.xpower / 1);
active = true;
power = 0.4 * Math.sqrt((_parent._parent.xpower * _parent._parent.xpower) + (_parent._parent.ypower * _parent._parent.ypower));
gravity = 0.5;
gravity2 = gravity;
_parent.dropvar = 1;
}
onClipEvent (enterFrame) {
if (active == true) {
trace((("_parent.ypower " + _parent.ypower) + " xpower ") + _parent.xpower);
if (gravity < 40) {
gravity = gravity + (gravity2 / 1.5);
}
this._x = this._x + (_parent.xpower * 0.7);
this._y = (this._y + (_parent.ypower * 0.7)) + gravity;
this._rotation = this._rotation + eggspin;
if (this._rotation > 360) {
this._rotation = 360;
}
if (this._x > 1000) {
_parent.gotoAndStop(1);
}
if (this._y < -1000) {
_parent.gotoAndStop(1);
}
if (this._x < -1000) {
_parent.gotoAndStop(1);
}
if (this._y > 100) {
if (screaming == false) {
_root.w1 = _root.w1 + 2;
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 271 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 165 MovieClip "mainegg" in Symbol 271 MovieClip Frame 1
onClipEvent (load) {
this._x = _parent.new_x;
this._y = _parent.new_y;
trace("dir ---" + _parent.facing);
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
}
Instance of Symbol 171 MovieClip "comp" in Symbol 271 MovieClip Frame 1
onClipEvent (load) {
_parent.power = 0;
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
}
onClipEvent (enterFrame) {
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
this._rotation = _parent.clip.deg;
trace(_parent.eggstatus);
if (_parent.eggstatus == "firing") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 172 MovieClip "clip" in Symbol 271 MovieClip Frame 1
onClipEvent (enterFrame) {
x = _root._xmouse - (_root.egg._x + _parent.comp._x);
y = _root._ymouse - (_root.egg._y + _parent.comp._y);
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
} else if ((Math.floor(y) == 0) && (x < 0)) {
deg = 180;
}
}
Instance of Symbol 176 MovieClip "platform1" in Symbol 271 MovieClip Frame 1
onClipEvent (load) {
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (_parent.ladder.ready == true) {
if (_parent.spinningegg.active == false) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
_parent.mainegg._x = this._x;
_parent.mainegg._y = this._y;
_parent.mainegg._rotation = 0;
this.collision = true;
if (_parent.complete == false) {
_root.sound.levelcomplete();
}
_parent.complete = true;
}
}
}
}
}
}
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 271 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 271 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 271 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 271 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 271 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 236 MovieClip "twig" in Symbol 271 MovieClip Frame 1
onClipEvent (load) {
this.ready = true;
trace("twig mc name " + this._name);
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (this.ready == true) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
trace("got twig ");
_parent.ladder.ready = false;
gotoAndPlay (2);
this.ready = false;
}
}
}
}
}
}
Symbol 271 MovieClip Frame 2
stop();
Instance of Symbol 252 MovieClip "spinningegg" in Symbol 271 MovieClip Frame 2
onClipEvent (load) {
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
screaming = false;
this._x = _parent.new_x;
this._y = _parent.new_y;
eggspin = 2 + (_parent.xpower / 1);
active = true;
power = 0.4 * Math.sqrt((_parent._parent.xpower * _parent._parent.xpower) + (_parent._parent.ypower * _parent._parent.ypower));
gravity = 0.5;
gravity2 = gravity;
_parent.dropvar = 1;
}
onClipEvent (enterFrame) {
if (active == true) {
trace((("_parent.ypower " + _parent.ypower) + " xpower ") + _parent.xpower);
if (gravity < 40) {
gravity = gravity + (gravity2 / 1.5);
}
this._x = this._x + (_parent.xpower * 0.7);
this._y = (this._y + (_parent.ypower * 0.7)) + gravity;
this._rotation = this._rotation + eggspin;
if (this._rotation > 360) {
this._rotation = 360;
}
if (this._x > 1000) {
_parent.gotoAndStop(1);
}
if (this._y < -1000) {
_parent.gotoAndStop(1);
}
if (this._x < -1000) {
_parent.gotoAndStop(1);
}
if (this._y > 100) {
if (screaming == false) {
_root.w1 = _root.w1 + 2;
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 274 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 165 MovieClip "mainegg" in Symbol 274 MovieClip Frame 1
onClipEvent (load) {
this._x = _parent.new_x;
this._y = _parent.new_y;
trace("dir ---" + _parent.facing);
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
}
Instance of Symbol 171 MovieClip "comp" in Symbol 274 MovieClip Frame 1
onClipEvent (load) {
_parent.power = 0;
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
}
onClipEvent (enterFrame) {
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
this._rotation = _parent.clip.deg;
trace(_parent.eggstatus);
if (_parent.eggstatus == "firing") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 172 MovieClip "clip" in Symbol 274 MovieClip Frame 1
onClipEvent (enterFrame) {
x = _root._xmouse - (_root.egg._x + _parent.comp._x);
y = _root._ymouse - (_root.egg._y + _parent.comp._y);
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
} else if ((Math.floor(y) == 0) && (x < 0)) {
deg = 180;
}
}
Instance of Symbol 176 MovieClip "platform1" in Symbol 274 MovieClip Frame 1
onClipEvent (load) {
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (_parent.ladder.ready == true) {
if (_parent.spinningegg.active == false) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
_parent.mainegg._x = this._x;
_parent.mainegg._y = this._y;
_parent.mainegg._rotation = 0;
this.collision = true;
if (_parent.complete == false) {
_root.sound.levelcomplete();
}
_parent.complete = true;
}
}
}
}
}
}
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 274 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 274 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 274 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 274 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 274 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 236 MovieClip "twig" in Symbol 274 MovieClip Frame 1
onClipEvent (load) {
this.ready = true;
trace("twig mc name " + this._name);
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (this.ready == true) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
trace("got twig ");
_parent.ladder.ready = false;
gotoAndPlay (2);
this.ready = false;
}
}
}
}
}
}
Symbol 274 MovieClip Frame 2
stop();
Instance of Symbol 252 MovieClip "spinningegg" in Symbol 274 MovieClip Frame 2
onClipEvent (load) {
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
screaming = false;
this._x = _parent.new_x;
this._y = _parent.new_y;
eggspin = 2 + (_parent.xpower / 1);
active = true;
power = 0.4 * Math.sqrt((_parent._parent.xpower * _parent._parent.xpower) + (_parent._parent.ypower * _parent._parent.ypower));
gravity = 0.5;
gravity2 = gravity;
_parent.dropvar = 1;
}
onClipEvent (enterFrame) {
if (active == true) {
trace((("_parent.ypower " + _parent.ypower) + " xpower ") + _parent.xpower);
if (gravity < 40) {
gravity = gravity + (gravity2 / 1.5);
}
this._x = this._x + (_parent.xpower * 0.7);
this._y = (this._y + (_parent.ypower * 0.7)) + gravity;
this._rotation = this._rotation + eggspin;
if (this._rotation > 360) {
this._rotation = 360;
}
if (this._x > 1000) {
_parent.gotoAndStop(1);
}
if (this._y < -1000) {
_parent.gotoAndStop(1);
}
if (this._x < -1000) {
_parent.gotoAndStop(1);
}
if (this._y > 100) {
if (screaming == false) {
_root.w1 = _root.w1 + 2;
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 277 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 165 MovieClip "mainegg" in Symbol 277 MovieClip Frame 1
onClipEvent (load) {
this._x = _parent.new_x;
this._y = _parent.new_y;
trace("dir ---" + _parent.facing);
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
}
Instance of Symbol 171 MovieClip "comp" in Symbol 277 MovieClip Frame 1
onClipEvent (load) {
_parent.power = 0;
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
}
onClipEvent (enterFrame) {
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
this._rotation = _parent.clip.deg;
trace(_parent.eggstatus);
if (_parent.eggstatus == "firing") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 172 MovieClip "clip" in Symbol 277 MovieClip Frame 1
onClipEvent (enterFrame) {
x = _root._xmouse - (_root.egg._x + _parent.comp._x);
y = _root._ymouse - (_root.egg._y + _parent.comp._y);
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
} else if ((Math.floor(y) == 0) && (x < 0)) {
deg = 180;
}
}
Instance of Symbol 176 MovieClip "platform1" in Symbol 277 MovieClip Frame 1
onClipEvent (load) {
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (_parent.ladder.ready == true) {
if (_parent.spinningegg.active == false) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
_parent.mainegg._x = this._x;
_parent.mainegg._y = this._y;
_parent.mainegg._rotation = 0;
this.collision = true;
if (_parent.complete == false) {
_root.sound.levelcomplete();
}
_parent.complete = true;
}
}
}
}
}
}
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 277 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 277 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 277 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 277 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 277 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 277 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 236 MovieClip "twig" in Symbol 277 MovieClip Frame 1
onClipEvent (load) {
this.ready = true;
trace("twig mc name " + this._name);
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (this.ready == true) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
trace("got twig ");
_parent.ladder.ready = false;
gotoAndPlay (2);
this.ready = false;
}
}
}
}
}
}
Symbol 277 MovieClip Frame 2
stop();
Instance of Symbol 252 MovieClip "spinningegg" in Symbol 277 MovieClip Frame 2
onClipEvent (load) {
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
screaming = false;
this._x = _parent.new_x;
this._y = _parent.new_y;
eggspin = 2 + (_parent.xpower / 1);
active = true;
power = 0.4 * Math.sqrt((_parent._parent.xpower * _parent._parent.xpower) + (_parent._parent.ypower * _parent._parent.ypower));
gravity = 0.5;
gravity2 = gravity;
_parent.dropvar = 1;
}
onClipEvent (enterFrame) {
if (active == true) {
trace((("_parent.ypower " + _parent.ypower) + " xpower ") + _parent.xpower);
if (gravity < 40) {
gravity = gravity + (gravity2 / 1.5);
}
this._x = this._x + (_parent.xpower * 0.7);
this._y = (this._y + (_parent.ypower * 0.7)) + gravity;
this._rotation = this._rotation + eggspin;
if (this._rotation > 360) {
this._rotation = 360;
}
if (this._x > 1000) {
_parent.gotoAndStop(1);
}
if (this._y < -1000) {
_parent.gotoAndStop(1);
}
if (this._x < -1000) {
_parent.gotoAndStop(1);
}
if (this._y > 100) {
if (screaming == false) {
_root.w1 = _root.w1 + 2;
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 280 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 165 MovieClip "mainegg" in Symbol 280 MovieClip Frame 1
onClipEvent (load) {
this._x = _parent.new_x;
this._y = _parent.new_y;
trace("dir ---" + _parent.facing);
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
}
Instance of Symbol 171 MovieClip "comp" in Symbol 280 MovieClip Frame 1
onClipEvent (load) {
_parent.power = 0;
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
}
onClipEvent (enterFrame) {
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
this._rotation = _parent.clip.deg;
trace(_parent.eggstatus);
if (_parent.eggstatus == "firing") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 172 MovieClip "clip" in Symbol 280 MovieClip Frame 1
onClipEvent (enterFrame) {
x = _root._xmouse - (_root.egg._x + _parent.comp._x);
y = _root._ymouse - (_root.egg._y + _parent.comp._y);
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
} else if ((Math.floor(y) == 0) && (x < 0)) {
deg = 180;
}
}
Instance of Symbol 176 MovieClip "platform1" in Symbol 280 MovieClip Frame 1
onClipEvent (load) {
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (_parent.ladder.ready == true) {
if (_parent.spinningegg.active == false) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
_parent.mainegg._x = this._x;
_parent.mainegg._y = this._y;
_parent.mainegg._rotation = 0;
this.collision = true;
if (_parent.complete == false) {
_root.sound.levelcomplete();
}
_parent.complete = true;
}
}
}
}
}
}
}
Instance of Symbol 176 MovieClip "platform1" in Symbol 280 MovieClip Frame 1
onClipEvent (load) {
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
this.collision = false;
if (_parent.ladder.ready == true) {
if (_parent.spinningegg.active == false) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
if (_parent.dropvar > 0) {
this.collision = true;
trace("hit ladder " + _parent._currentFrame);
_parent.mainegg._x = this._x;
_parent.mainegg._y = this._y;
_parent.mainegg._rotation = 0;
this.collision = true;
_parent.complete = true;
}
}
}
}
}
}
}
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 280 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 280 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 280 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 280 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 236 MovieClip "twig" in Symbol 280 MovieClip Frame 1
onClipEvent (load) {
this.ready = true;
trace("twig mc name " + this._name);
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (this.ready == true) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
trace("got twig ");
_parent.ladder.ready = false;
gotoAndPlay (2);
this.ready = false;
}
}
}
}
}
}
Symbol 280 MovieClip Frame 2
stop();
Instance of Symbol 252 MovieClip "spinningegg" in Symbol 280 MovieClip Frame 2
onClipEvent (load) {
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
screaming = false;
this._x = _parent.new_x;
this._y = _parent.new_y;
eggspin = 2 + (_parent.xpower / 1);
active = true;
power = 0.4 * Math.sqrt((_parent._parent.xpower * _parent._parent.xpower) + (_parent._parent.ypower * _parent._parent.ypower));
gravity = 0.5;
gravity2 = gravity;
_parent.dropvar = 1;
}
onClipEvent (enterFrame) {
if (active == true) {
if (gravity < 40) {
gravity = gravity + (gravity2 / 1.5);
}
this._x = this._x + (_parent.xpower * 0.7);
this._y = (this._y + (_parent.ypower * 0.7)) + gravity;
this._rotation = this._rotation + eggspin;
if (this._rotation > 360) {
this._rotation = 360;
}
if (this._x > 1000) {
_parent.gotoAndStop(1);
}
if (this._y < -1000) {
_parent.gotoAndStop(1);
}
if (this._x < -1000) {
_parent.gotoAndStop(1);
}
if (this._y > 100) {
if (screaming == false) {
_root.w1 = _root.w1 + 2;
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 283 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 165 MovieClip "mainegg" in Symbol 283 MovieClip Frame 1
onClipEvent (load) {
this._x = _parent.new_x;
this._y = _parent.new_y;
trace("dir ---" + _parent.facing);
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
}
Instance of Symbol 171 MovieClip "comp" in Symbol 283 MovieClip Frame 1
onClipEvent (load) {
_parent.power = 0;
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
}
onClipEvent (enterFrame) {
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
this._rotation = _parent.clip.deg;
trace(_parent.eggstatus);
if (_parent.eggstatus == "firing") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 172 MovieClip "clip" in Symbol 283 MovieClip Frame 1
onClipEvent (enterFrame) {
x = _root._xmouse - (_root.egg._x + _parent.comp._x);
y = _root._ymouse - (_root.egg._y + _parent.comp._y);
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
} else if ((Math.floor(y) == 0) && (x < 0)) {
deg = 180;
}
}
Instance of Symbol 176 MovieClip "platform1" in Symbol 283 MovieClip Frame 1
onClipEvent (load) {
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (_parent.ladder.ready == true) {
if (_parent.spinningegg.active == false) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
_parent.mainegg._x = this._x;
_parent.mainegg._y = this._y;
_parent.mainegg._rotation = 0;
this.collision = true;
if (_parent.complete == false) {
_root.sound.levelcomplete();
}
_parent.complete = true;
}
}
}
}
}
}
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 283 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 283 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 283 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 236 MovieClip "twig" in Symbol 283 MovieClip Frame 1
onClipEvent (load) {
this.ready = true;
trace("twig mc name " + this._name);
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (this.ready == true) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
trace("got twig ");
_parent.ladder.ready = false;
gotoAndPlay (2);
this.ready = false;
}
}
}
}
}
}
Symbol 283 MovieClip Frame 2
stop();
Instance of Symbol 252 MovieClip "spinningegg" in Symbol 283 MovieClip Frame 2
onClipEvent (load) {
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
screaming = false;
this._x = _parent.new_x;
this._y = _parent.new_y;
eggspin = 2 + (_parent.xpower / 1);
active = true;
power = 0.4 * Math.sqrt((_parent._parent.xpower * _parent._parent.xpower) + (_parent._parent.ypower * _parent._parent.ypower));
gravity = 0.5;
gravity2 = gravity;
_parent.dropvar = 1;
}
onClipEvent (enterFrame) {
if (active == true) {
if (gravity < 40) {
gravity = gravity + (gravity2 / 1.5);
}
this._x = this._x + (_parent.xpower * 0.7);
this._y = (this._y + (_parent.ypower * 0.7)) + gravity;
this._rotation = this._rotation + eggspin;
if (this._rotation > 360) {
this._rotation = 360;
}
if (this._x > 1000) {
_parent.gotoAndStop(1);
}
if (this._y < -1000) {
_parent.gotoAndStop(1);
}
if (this._x < -1000) {
_parent.gotoAndStop(1);
}
if (this._y > 100) {
if (screaming == false) {
_root.w1 = _root.w1 + 2;
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 288 Button
on (release) {
_root.sound.buttonsound();
if (_root.playername == "") {
playername = "egg";
}
var d = new LoadVars();
d.onLoad = function () {
trace("loaded ok");
_root.$hiscores1 = this.$hiscores;
trace("vars = " + this.$hiscores);
_root.nextFrame();
};
d.load(((("http://www.playerthree.net/ping/hiscore.php?name=" + playername) + "&score=") + w1) + "&email=nobody@playerthree.net&slice=10&england=1&chart=1");
}
Symbol 313 MovieClip Frame 20
gotoAndPlay (1);
Symbol 314 MovieClip Frame 15
gotoAndPlay (1);
Symbol 315 MovieClip Frame 1
this.collision = false;
if (_parent.spinningegg.active == true) {
if ((_parent.spinningegg._x + this.edge) > this.leftside) {
if ((_parent.spinningegg._y + this.edge) > this.top) {
if ((_parent.spinningegg._y - this.edge) < this.bottom) {
if ((_parent.spinningegg._x - this.edge) < this.rightside) {
if (_parent.dropvar > 0) {
this.collision = true;
if (this.sliding == false) {
landingsound = new Sound();
landingsound.attachSound("land_real_short.wav");
landingsound.start();
}
}
}
}
}
}
if (this.collision == true) {
this.found = false;
if (this.found == false) {
if (_parent.spinningegg._x > this.rightside) {
if (_parent.xpower < 0) {
trace("---x---");
_parent.spinningegg._x = (_parent.spinningegg._x - _parent.xpower) + 2;
_parent.xpower = Math.abs(_parent.xpower - (1.5 * _parent.xpower));
_parent.spinningegg.eggspin = _parent.spinningegg.eggspin - (2 * _parent.spinningegg.eggspin);
}
this.found = true;
}
}
if (this.found == false) {
if (_parent.spinningegg._x < this.leftside) {
if (_parent.xpower > 0) {
_parent.spinningegg._x = (_parent.spinningegg._x - _parent.xpower) - 2;
_parent.xpower = _parent.xpower - (1.5 * _parent.xpower);
_parent.spinningegg.eggspin = _parent.spinningegg.eggspin - (2 * _parent.spinningegg.eggspin);
}
this.found = true;
}
}
if (this.found == false) {
if (_parent.spinningegg._y > (this.bottom - this.edge)) {
this.found = true;
_parent.ypower = 0;
}
}
if (this.found == false) {
if (_parent.spinningegg._y < this.top) {
_parent.spinningegg._y = this.top - 10;
if (_parent.xpower > 0) {
_parent.xpower = _parent.xpower - 0.1;
} else {
_parent.xpower = _parent.xpower + 0.1;
}
_parent.ypower = 0;
_parent.spinningegg.gravity = 0;
_parent.spinningegg.eggspin = 0;
this.sliding = true;
this.found = true;
if (_parent.xpower < 0.1) {
if (_parent.xpower > -0.1) {
_parent.spinningegg.active = false;
_parent.spinningegg.gotoAndPlay(2);
_parent.new_x = _parent.spinningegg._x;
_parent.new_y = _parent.spinningegg._y;
}
}
}
}
if (this.found == false) {
_parent.spinningegg.active = false;
_parent.spinningegg.gotoAndPlay(2);
_parent.spinningegg._y = this.top - 10;
_parent.new_x = _parent.spinningegg._x;
_parent.new_y = _parent.spinningegg._y;
}
}
}
Symbol 315 MovieClip Frame 2
this.collision = false;
if (_parent.spinningegg.active == true) {
if ((_parent.spinningegg._x + this.edge) > this.leftside) {
if ((_parent.spinningegg._y + this.edge) > this.top) {
if ((_parent.spinningegg._y - this.edge) < this.bottom) {
if ((_parent.spinningegg._x - this.edge) < this.rightside) {
if (_parent.dropvar > 0) {
this.collision = true;
if (this.sliding == false) {
landingsound = new Sound();
landingsound.attachSound("land_real_short.wav");
landingsound.start();
}
}
}
}
}
}
if (this.collision == true) {
this.found = false;
if (this.found == false) {
if (_parent.spinningegg._x > this.rightside) {
if (_parent.xpower < 0) {
trace("---x---");
_parent.spinningegg._x = (_parent.spinningegg._x - _parent.xpower) + 2;
_parent.xpower = Math.abs(_parent.xpower - (1.5 * _parent.xpower));
_parent.spinningegg.eggspin = _parent.spinningegg.eggspin - (2 * _parent.spinningegg.eggspin);
}
this.found = true;
}
}
if (this.found == false) {
if (_parent.spinningegg._x < this.leftside) {
if (_parent.xpower > 0) {
_parent.spinningegg._x = (_parent.spinningegg._x - _parent.xpower) - 2;
_parent.xpower = _parent.xpower - (1.5 * _parent.xpower);
_parent.spinningegg.eggspin = _parent.spinningegg.eggspin - (2 * _parent.spinningegg.eggspin);
}
this.found = true;
}
}
if (this.found == false) {
if (_parent.spinningegg._y > (this.bottom - this.edge)) {
this.found = true;
_parent.ypower = 0;
}
}
if (this.found == false) {
if (_parent.spinningegg._y < this.top) {
_parent.spinningegg._y = this.top - 10;
if (_parent.xpower > 0) {
_parent.xpower = _parent.xpower - 0.1;
} else {
_parent.xpower = _parent.xpower + 0.1;
}
_parent.ypower = 0;
_parent.spinningegg.gravity = 0;
_parent.spinningegg.eggspin = 0;
this.sliding = true;
this.found = true;
if (_parent.xpower < 0.1) {
if (_parent.xpower > -0.1) {
_parent.spinningegg.active = false;
_parent.spinningegg.gotoAndPlay(2);
_parent.new_x = _parent.spinningegg._x;
_parent.new_y = _parent.spinningegg._y;
}
}
}
}
if (this.found == false) {
_parent.spinningegg.active = false;
_parent.spinningegg.gotoAndPlay(2);
_parent.spinningegg._y = this.top - 10;
_parent.new_x = _parent.spinningegg._x;
_parent.new_y = _parent.spinningegg._y;
}
}
}
gotoAndPlay (1);
Symbol 323 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 165 MovieClip "mainegg" in Symbol 323 MovieClip Frame 1
onClipEvent (load) {
this._x = _parent.new_x;
this._y = _parent.new_y;
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
}
Instance of Symbol 171 MovieClip "comp" in Symbol 323 MovieClip Frame 1
onClipEvent (load) {
_parent.power = 0;
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
}
onClipEvent (enterFrame) {
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
this._rotation = _parent.clip.deg;
trace(_parent.eggstatus);
if (_parent.eggstatus == "firing") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 172 MovieClip "clip" in Symbol 323 MovieClip Frame 1
onClipEvent (enterFrame) {
x = _root._xmouse - (_root.egg._x + _parent.comp._x);
y = _root._ymouse - (_root.egg._y + _parent.comp._y);
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
} else if ((Math.floor(y) == 0) && (x < 0)) {
deg = 180;
}
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 323 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 315 MovieClip "platform1" in Symbol 323 MovieClip Frame 1
onClipEvent (load) {
this.sliding = false;
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 323 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 176 MovieClip "platform1" in Symbol 323 MovieClip Frame 1
onClipEvent (load) {
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (_parent.ladder.ready == true) {
if (_parent.spinningegg.active == false) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
_parent.mainegg._x = this._x;
_parent.mainegg._y = this._y;
_parent.mainegg._rotation = 0;
this.collision = true;
if (_parent.complete == false) {
_root.sound.levelcomplete();
}
_parent.complete = true;
}
}
}
}
}
}
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 323 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 236 MovieClip "twig" in Symbol 323 MovieClip Frame 1
onClipEvent (load) {
this.ready = true;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (this.ready == true) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
_parent.ladder.ready = false;
gotoAndPlay (2);
this.ready = false;
}
}
}
}
}
}
Symbol 323 MovieClip Frame 2
stop();
Instance of Symbol 252 MovieClip "spinningegg" in Symbol 323 MovieClip Frame 2
onClipEvent (load) {
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
screaming = false;
this._x = _parent.new_x;
this._y = _parent.new_y;
eggspin = 2 + (_parent.xpower / 1);
active = true;
power = 0.4 * Math.sqrt((_parent._parent.xpower * _parent._parent.xpower) + (_parent._parent.ypower * _parent._parent.ypower));
gravity = 0.5;
gravity2 = gravity;
_parent.dropvar = 1;
}
onClipEvent (enterFrame) {
if (active == true) {
if (gravity < 40) {
gravity = gravity + (gravity2 / 1.5);
}
this._x = this._x + (_parent.xpower * 0.7);
this._y = (this._y + (_parent.ypower * 0.7)) + gravity;
this._rotation = this._rotation + eggspin;
if (this._rotation > 360) {
this._rotation = 360;
}
if (this._x > 1000) {
_parent.gotoAndStop(1);
}
if (this._y < -1000) {
_parent.gotoAndStop(1);
}
if (this._x < -1000) {
_parent.gotoAndStop(1);
}
if (this._y > 100) {
if (screaming == false) {
_root.w1 = _root.w1 + 2;
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 328 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 165 MovieClip "mainegg" in Symbol 328 MovieClip Frame 1
onClipEvent (load) {
this._x = _parent.new_x;
this._y = _parent.new_y;
trace("dir ---" + _parent.facing);
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
}
Instance of Symbol 171 MovieClip "comp" in Symbol 328 MovieClip Frame 1
onClipEvent (load) {
_parent.power = 0;
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
}
onClipEvent (enterFrame) {
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
this._rotation = _parent.clip.deg;
trace(_parent.eggstatus);
if (_parent.eggstatus == "firing") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 172 MovieClip "clip" in Symbol 328 MovieClip Frame 1
onClipEvent (enterFrame) {
x = _root._xmouse - (_root.egg._x + _parent.comp._x);
y = _root._ymouse - (_root.egg._y + _parent.comp._y);
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
} else if ((Math.floor(y) == 0) && (x < 0)) {
deg = 180;
}
}
Instance of Symbol 315 MovieClip "platform1" in Symbol 328 MovieClip Frame 1
onClipEvent (load) {
this.sliding = false;
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 315 MovieClip "platform1" in Symbol 328 MovieClip Frame 1
onClipEvent (load) {
this.sliding = false;
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 328 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 176 MovieClip "platform1" in Symbol 328 MovieClip Frame 1
onClipEvent (load) {
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (_parent.ladder.ready == true) {
if (_parent.spinningegg.active == false) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
_parent.mainegg._x = this._x;
_parent.mainegg._y = this._y;
_parent.mainegg._rotation = 0;
this.collision = true;
if (_parent.complete == false) {
_root.sound.levelcomplete();
}
_parent.complete = true;
}
}
}
}
}
}
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 328 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 236 MovieClip "twig" in Symbol 328 MovieClip Frame 1
onClipEvent (load) {
this.ready = true;
trace("twig mc name " + this._name);
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (this.ready == true) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
trace("got twig ");
_parent.ladder.ready = false;
gotoAndPlay (2);
this.ready = false;
}
}
}
}
}
}
Symbol 328 MovieClip Frame 2
stop();
Instance of Symbol 252 MovieClip "spinningegg" in Symbol 328 MovieClip Frame 2
onClipEvent (load) {
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
screaming = false;
this._x = _parent.new_x;
this._y = _parent.new_y;
eggspin = 2 + (_parent.xpower / 1);
active = true;
power = 0.4 * Math.sqrt((_parent._parent.xpower * _parent._parent.xpower) + (_parent._parent.ypower * _parent._parent.ypower));
gravity = 0.5;
gravity2 = gravity;
_parent.dropvar = 1;
}
onClipEvent (enterFrame) {
if (active == true) {
if (gravity < 40) {
gravity = gravity + (gravity2 / 1.5);
}
this._x = this._x + (_parent.xpower * 0.7);
this._y = (this._y + (_parent.ypower * 0.7)) + gravity;
this._rotation = this._rotation + eggspin;
if (this._rotation > 360) {
this._rotation = 360;
}
if (this._x > 1000) {
_parent.gotoAndStop(1);
}
if (this._y < -1000) {
_parent.gotoAndStop(1);
}
if (this._x < -1000) {
_parent.gotoAndStop(1);
}
if (this._y > 100) {
if (screaming == false) {
_root.w1 = _root.w1 + 2;
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 331 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 165 MovieClip "mainegg" in Symbol 331 MovieClip Frame 1
onClipEvent (load) {
this._x = _parent.new_x;
this._y = _parent.new_y;
trace("dir ---" + _parent.facing);
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
}
Instance of Symbol 171 MovieClip "comp" in Symbol 331 MovieClip Frame 1
onClipEvent (load) {
_parent.power = 0;
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
}
onClipEvent (enterFrame) {
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
this._rotation = _parent.clip.deg;
trace(_parent.eggstatus);
if (_parent.eggstatus == "firing") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 172 MovieClip "clip" in Symbol 331 MovieClip Frame 1
onClipEvent (enterFrame) {
x = _root._xmouse - (_root.egg._x + _parent.comp._x);
y = _root._ymouse - (_root.egg._y + _parent.comp._y);
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
} else if ((Math.floor(y) == 0) && (x < 0)) {
deg = 180;
}
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 331 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 331 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 176 MovieClip "platform1" in Symbol 331 MovieClip Frame 1
onClipEvent (load) {
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (_parent.ladder.ready == true) {
if (_parent.spinningegg.active == false) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
_parent.mainegg._x = this._x;
_parent.mainegg._y = this._y;
_parent.mainegg._rotation = 0;
this.collision = true;
if (_parent.complete == false) {
_root.sound.levelcomplete();
}
_parent.complete = true;
}
}
}
}
}
}
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 331 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 236 MovieClip "twig" in Symbol 331 MovieClip Frame 1
onClipEvent (load) {
this.ready = true;
trace("twig mc name " + this._name);
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (this.ready == true) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
trace("got twig ");
_parent.ladder.ready = false;
gotoAndPlay (2);
this.ready = false;
}
}
}
}
}
}
Symbol 331 MovieClip Frame 2
stop();
Instance of Symbol 252 MovieClip "spinningegg" in Symbol 331 MovieClip Frame 2
onClipEvent (load) {
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
screaming = false;
this._x = _parent.new_x;
this._y = _parent.new_y;
eggspin = 2 + (_parent.xpower / 1);
active = true;
power = 0.4 * Math.sqrt((_parent._parent.xpower * _parent._parent.xpower) + (_parent._parent.ypower * _parent._parent.ypower));
gravity = 0.5;
gravity2 = gravity;
_parent.dropvar = 1;
}
onClipEvent (enterFrame) {
if (active == true) {
if (gravity < 40) {
gravity = gravity + (gravity2 / 1.5);
}
this._x = this._x + (_parent.xpower * 0.7);
this._y = (this._y + (_parent.ypower * 0.7)) + gravity;
this._rotation = this._rotation + eggspin;
if (this._rotation > 360) {
this._rotation = 360;
}
if (this._x > 1000) {
_parent.gotoAndStop(1);
}
if (this._y < -1000) {
_parent.gotoAndStop(1);
}
if (this._x < -1000) {
_parent.gotoAndStop(1);
}
if (this._y > 100) {
if (screaming == false) {
_root.w1 = _root.w1 + 2;
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 335 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 165 MovieClip "mainegg" in Symbol 335 MovieClip Frame 1
onClipEvent (load) {
this._x = _parent.new_x;
this._y = _parent.new_y;
trace("dir ---" + _parent.facing);
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
}
Instance of Symbol 171 MovieClip "comp" in Symbol 335 MovieClip Frame 1
onClipEvent (load) {
_parent.power = 0;
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
}
onClipEvent (enterFrame) {
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
this._rotation = _parent.clip.deg;
trace(_parent.eggstatus);
if (_parent.eggstatus == "firing") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 172 MovieClip "clip" in Symbol 335 MovieClip Frame 1
onClipEvent (enterFrame) {
x = _root._xmouse - (_root.egg._x + _parent.comp._x);
y = _root._ymouse - (_root.egg._y + _parent.comp._y);
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
} else if ((Math.floor(y) == 0) && (x < 0)) {
deg = 180;
}
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 335 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 335 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 176 MovieClip "platform1" in Symbol 335 MovieClip Frame 1
onClipEvent (load) {
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (_parent.ladder.ready == true) {
if (_parent.spinningegg.active == false) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
_parent.mainegg._x = this._x;
_parent.mainegg._y = this._y;
_parent.mainegg._rotation = 0;
this.collision = true;
if (_parent.complete == false) {
_root.sound.levelcomplete();
}
_parent.complete = true;
}
}
}
}
}
}
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 335 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 236 MovieClip "twig" in Symbol 335 MovieClip Frame 1
onClipEvent (load) {
this.ready = true;
trace("twig mc name " + this._name);
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (this.ready == true) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
trace("got twig ");
_parent.ladder.ready = false;
gotoAndPlay (2);
this.ready = false;
}
}
}
}
}
}
Symbol 335 MovieClip Frame 2
stop();
Instance of Symbol 252 MovieClip "spinningegg" in Symbol 335 MovieClip Frame 2
onClipEvent (load) {
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
screaming = false;
this._x = _parent.new_x;
this._y = _parent.new_y;
eggspin = 2 + (_parent.xpower / 1);
active = true;
power = 0.4 * Math.sqrt((_parent._parent.xpower * _parent._parent.xpower) + (_parent._parent.ypower * _parent._parent.ypower));
gravity = 0.5;
gravity2 = gravity;
_parent.dropvar = 1;
}
onClipEvent (enterFrame) {
if (active == true) {
if (gravity < 40) {
gravity = gravity + (gravity2 / 1.5);
}
this._x = this._x + (_parent.xpower * 0.7);
this._y = (this._y + (_parent.ypower * 0.7)) + gravity;
this._rotation = this._rotation + eggspin;
if (this._rotation > 360) {
this._rotation = 360;
}
if (this._x > 1000) {
_parent.gotoAndStop(1);
}
if (this._y < -1000) {
_parent.gotoAndStop(1);
}
if (this._x < -1000) {
_parent.gotoAndStop(1);
}
if (this._y > 100) {
if (screaming == false) {
_root.w1 = _root.w1 + 2;
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 339 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 165 MovieClip "mainegg" in Symbol 339 MovieClip Frame 1
onClipEvent (load) {
this._x = _parent.new_x;
this._y = _parent.new_y;
trace("dir ---" + _parent.facing);
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
}
Instance of Symbol 171 MovieClip "comp" in Symbol 339 MovieClip Frame 1
onClipEvent (load) {
_parent.power = 0;
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
}
onClipEvent (enterFrame) {
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
this._rotation = _parent.clip.deg;
trace(_parent.eggstatus);
if (_parent.eggstatus == "firing") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 172 MovieClip "clip" in Symbol 339 MovieClip Frame 1
onClipEvent (enterFrame) {
x = _root._xmouse - (_root.egg._x + _parent.comp._x);
y = _root._ymouse - (_root.egg._y + _parent.comp._y);
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
} else if ((Math.floor(y) == 0) && (x < 0)) {
deg = 180;
}
}
Instance of Symbol 315 MovieClip "platform1" in Symbol 339 MovieClip Frame 1
onClipEvent (load) {
this.sliding = false;
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 339 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 339 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 176 MovieClip "platform1" in Symbol 339 MovieClip Frame 1
onClipEvent (load) {
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (_parent.ladder.ready == true) {
if (_parent.spinningegg.active == false) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
_parent.mainegg._x = this._x;
_parent.mainegg._y = this._y;
_parent.mainegg._rotation = 0;
this.collision = true;
if (_parent.complete == false) {
_root.sound.levelcomplete();
}
_parent.complete = true;
}
}
}
}
}
}
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 339 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 236 MovieClip "twig" in Symbol 339 MovieClip Frame 1
onClipEvent (load) {
this.ready = true;
trace("twig mc name " + this._name);
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (this.ready == true) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
trace("got twig ");
_parent.ladder.ready = false;
gotoAndPlay (2);
this.ready = false;
}
}
}
}
}
}
Symbol 339 MovieClip Frame 2
stop();
Instance of Symbol 252 MovieClip "spinningegg" in Symbol 339 MovieClip Frame 2
onClipEvent (load) {
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
screaming = false;
this._x = _parent.new_x;
this._y = _parent.new_y;
eggspin = 2 + (_parent.xpower / 1);
active = true;
power = 0.4 * Math.sqrt((_parent._parent.xpower * _parent._parent.xpower) + (_parent._parent.ypower * _parent._parent.ypower));
gravity = 0.5;
gravity2 = gravity;
_parent.dropvar = 1;
}
onClipEvent (enterFrame) {
if (active == true) {
if (gravity < 40) {
gravity = gravity + (gravity2 / 1.5);
}
this._x = this._x + (_parent.xpower * 0.7);
this._y = (this._y + (_parent.ypower * 0.7)) + gravity;
this._rotation = this._rotation + eggspin;
if (this._rotation > 360) {
this._rotation = 360;
}
if (this._x > 1000) {
_parent.gotoAndStop(1);
}
if (this._y < -1000) {
_parent.gotoAndStop(1);
}
if (this._x < -1000) {
_parent.gotoAndStop(1);
}
if (this._y > 100) {
if (screaming == false) {
_root.w1 = _root.w1 + 2;
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 340 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 165 MovieClip "mainegg" in Symbol 340 MovieClip Frame 1
onClipEvent (load) {
this._x = _parent.new_x;
this._y = _parent.new_y;
trace("dir ---" + _parent.facing);
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
}
Instance of Symbol 171 MovieClip "comp" in Symbol 340 MovieClip Frame 1
onClipEvent (load) {
_parent.power = 0;
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
}
onClipEvent (enterFrame) {
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
this._rotation = _parent.clip.deg;
trace(_parent.eggstatus);
if (_parent.eggstatus == "firing") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 172 MovieClip "clip" in Symbol 340 MovieClip Frame 1
onClipEvent (enterFrame) {
x = _root._xmouse - (_root.egg._x + _parent.comp._x);
y = _root._ymouse - (_root.egg._y + _parent.comp._y);
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
} else if ((Math.floor(y) == 0) && (x < 0)) {
deg = 180;
}
}
Instance of Symbol 315 MovieClip "platform1" in Symbol 340 MovieClip Frame 1
onClipEvent (load) {
this.sliding = false;
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 340 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 176 MovieClip "platform1" in Symbol 340 MovieClip Frame 1
onClipEvent (load) {
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (_parent.ladder.ready == true) {
if (_parent.spinningegg.active == false) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
_parent.mainegg._x = this._x;
_parent.mainegg._y = this._y;
_parent.mainegg._rotation = 0;
this.collision = true;
if (_parent.complete == false) {
_root.sound.levelcomplete();
}
_parent.complete = true;
}
}
}
}
}
}
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 340 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 236 MovieClip "twig" in Symbol 340 MovieClip Frame 1
onClipEvent (load) {
this.ready = true;
trace("twig mc name " + this._name);
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (this.ready == true) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
trace("got twig ");
_parent.ladder.ready = false;
gotoAndPlay (2);
this.ready = false;
}
}
}
}
}
}
Symbol 340 MovieClip Frame 2
stop();
Instance of Symbol 252 MovieClip "spinningegg" in Symbol 340 MovieClip Frame 2
onClipEvent (load) {
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
screaming = false;
this._x = _parent.new_x;
this._y = _parent.new_y;
eggspin = 2 + (_parent.xpower / 1);
active = true;
power = 0.4 * Math.sqrt((_parent._parent.xpower * _parent._parent.xpower) + (_parent._parent.ypower * _parent._parent.ypower));
gravity = 0.5;
gravity2 = gravity;
_parent.dropvar = 1;
}
onClipEvent (enterFrame) {
if (active == true) {
if (gravity < 40) {
gravity = gravity + (gravity2 / 1.5);
}
this._x = this._x + (_parent.xpower * 0.7);
this._y = (this._y + (_parent.ypower * 0.7)) + gravity;
this._rotation = this._rotation + eggspin;
if (this._rotation > 360) {
this._rotation = 360;
}
if (this._x > 1000) {
_parent.gotoAndStop(1);
}
if (this._y < -1000) {
_parent.gotoAndStop(1);
}
if (this._x < -1000) {
_parent.gotoAndStop(1);
}
if (this._y > 100) {
if (screaming == false) {
_root.w1 = _root.w1 + 2;
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 341 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 165 MovieClip "mainegg" in Symbol 341 MovieClip Frame 1
onClipEvent (load) {
this._x = _parent.new_x;
this._y = _parent.new_y;
trace("dir ---" + _parent.facing);
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
}
Instance of Symbol 171 MovieClip "comp" in Symbol 341 MovieClip Frame 1
onClipEvent (load) {
_parent.power = 0;
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
}
onClipEvent (enterFrame) {
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
this._rotation = _parent.clip.deg;
trace(_parent.eggstatus);
if (_parent.eggstatus == "firing") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 172 MovieClip "clip" in Symbol 341 MovieClip Frame 1
onClipEvent (enterFrame) {
x = _root._xmouse - (_root.egg._x + _parent.comp._x);
y = _root._ymouse - (_root.egg._y + _parent.comp._y);
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
} else if ((Math.floor(y) == 0) && (x < 0)) {
deg = 180;
}
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 341 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 341 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 176 MovieClip "platform1" in Symbol 341 MovieClip Frame 1
onClipEvent (load) {
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (_parent.ladder.ready == true) {
if (_parent.spinningegg.active == false) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
_parent.mainegg._x = this._x;
_parent.mainegg._y = this._y;
_parent.mainegg._rotation = 0;
this.collision = true;
if (_parent.complete == false) {
_root.sound.levelcomplete();
}
_parent.complete = true;
}
}
}
}
}
}
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 341 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 236 MovieClip "twig" in Symbol 341 MovieClip Frame 1
onClipEvent (load) {
this.ready = true;
trace("twig mc name " + this._name);
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (this.ready == true) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
trace("got twig ");
_parent.ladder.ready = false;
gotoAndPlay (2);
this.ready = false;
}
}
}
}
}
}
Symbol 341 MovieClip Frame 2
stop();
Instance of Symbol 252 MovieClip "spinningegg" in Symbol 341 MovieClip Frame 2
onClipEvent (load) {
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
screaming = false;
this._x = _parent.new_x;
this._y = _parent.new_y;
eggspin = 2 + (_parent.xpower / 1);
active = true;
power = 0.4 * Math.sqrt((_parent._parent.xpower * _parent._parent.xpower) + (_parent._parent.ypower * _parent._parent.ypower));
gravity = 0.5;
gravity2 = gravity;
_parent.dropvar = 1;
}
onClipEvent (enterFrame) {
if (active == true) {
if (gravity < 40) {
gravity = gravity + (gravity2 / 1.5);
}
this._x = this._x + (_parent.xpower * 0.7);
this._y = (this._y + (_parent.ypower * 0.7)) + gravity;
this._rotation = this._rotation + eggspin;
if (this._rotation > 360) {
this._rotation = 360;
}
if (this._x > 1000) {
_parent.gotoAndStop(1);
}
if (this._y < -1000) {
_parent.gotoAndStop(1);
}
if (this._x < -1000) {
_parent.gotoAndStop(1);
}
if (this._y > 100) {
if (screaming == false) {
_root.w1 = _root.w1 + 2;
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 344 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 165 MovieClip "mainegg" in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
this._x = _parent.new_x;
this._y = _parent.new_y;
trace("dir ---" + _parent.facing);
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
}
Instance of Symbol 171 MovieClip "comp" in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
_parent.power = 0;
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
}
onClipEvent (enterFrame) {
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
this._rotation = _parent.clip.deg;
trace(_parent.eggstatus);
if (_parent.eggstatus == "firing") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 172 MovieClip "clip" in Symbol 344 MovieClip Frame 1
onClipEvent (enterFrame) {
x = _root._xmouse - (_root.egg._x + _parent.comp._x);
y = _root._ymouse - (_root.egg._y + _parent.comp._y);
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
} else if ((Math.floor(y) == 0) && (x < 0)) {
deg = 180;
}
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 176 MovieClip "platform1" in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (_parent.ladder.ready == true) {
if (_parent.spinningegg.active == false) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
_parent.mainegg._x = this._x;
_parent.mainegg._y = this._y;
_parent.mainegg._rotation = 0;
this.collision = true;
if (_parent.complete == false) {
_root.sound.levelcomplete();
}
_parent.complete = true;
}
}
}
}
}
}
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 236 MovieClip "twig" in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
this.ready = true;
trace("twig mc name " + this._name);
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (this.ready == true) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
trace("got twig ");
_parent.ladder.ready = false;
gotoAndPlay (2);
this.ready = false;
}
}
}
}
}
}
Symbol 344 MovieClip Frame 2
stop();
Instance of Symbol 252 MovieClip "spinningegg" in Symbol 344 MovieClip Frame 2
onClipEvent (load) {
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
screaming = false;
this._x = _parent.new_x;
this._y = _parent.new_y;
eggspin = 2 + (_parent.xpower / 1);
active = true;
power = 0.4 * Math.sqrt((_parent._parent.xpower * _parent._parent.xpower) + (_parent._parent.ypower * _parent._parent.ypower));
gravity = 0.5;
gravity2 = gravity;
_parent.dropvar = 1;
}
onClipEvent (enterFrame) {
if (active == true) {
if (gravity < 40) {
gravity = gravity + (gravity2 / 1.5);
}
this._x = this._x + (_parent.xpower * 0.7);
this._y = (this._y + (_parent.ypower * 0.7)) + gravity;
this._rotation = this._rotation + eggspin;
if (this._rotation > 360) {
this._rotation = 360;
}
if (this._x > 1000) {
_parent.gotoAndStop(1);
}
if (this._y < -1000) {
_parent.gotoAndStop(1);
}
if (this._x < -1000) {
_parent.gotoAndStop(1);
}
if (this._y > 100) {
if (screaming == false) {
_root.w1 = _root.w1 + 2;
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 345 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 165 MovieClip "mainegg" in Symbol 345 MovieClip Frame 1
onClipEvent (load) {
this._x = _parent.new_x;
this._y = _parent.new_y;
trace("dir ---" + _parent.facing);
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
}
Instance of Symbol 171 MovieClip "comp" in Symbol 345 MovieClip Frame 1
onClipEvent (load) {
_parent.power = 0;
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
}
onClipEvent (enterFrame) {
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
this._rotation = _parent.clip.deg;
trace(_parent.eggstatus);
if (_parent.eggstatus == "firing") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 172 MovieClip "clip" in Symbol 345 MovieClip Frame 1
onClipEvent (enterFrame) {
x = _root._xmouse - (_root.egg._x + _parent.comp._x);
y = _root._ymouse - (_root.egg._y + _parent.comp._y);
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
} else if ((Math.floor(y) == 0) && (x < 0)) {
deg = 180;
}
}
Instance of Symbol 315 MovieClip "platform1" in Symbol 345 MovieClip Frame 1
onClipEvent (load) {
this.sliding = false;
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 315 MovieClip "platform1" in Symbol 345 MovieClip Frame 1
onClipEvent (load) {
this.sliding = false;
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 345 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 176 MovieClip "platform1" in Symbol 345 MovieClip Frame 1
onClipEvent (load) {
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (_parent.ladder.ready == true) {
if (_parent.spinningegg.active == false) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
_parent.mainegg._x = this._x;
_parent.mainegg._y = this._y;
_parent.mainegg._rotation = 0;
this.collision = true;
if (_parent.complete == false) {
_root.sound.levelcomplete();
}
_parent.complete = true;
}
}
}
}
}
}
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 345 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 236 MovieClip "twig" in Symbol 345 MovieClip Frame 1
onClipEvent (load) {
this.ready = true;
trace("twig mc name " + this._name);
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (this.ready == true) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
trace("got twig ");
_parent.ladder.ready = false;
gotoAndPlay (2);
this.ready = false;
}
}
}
}
}
}
Symbol 345 MovieClip Frame 2
stop();
Instance of Symbol 252 MovieClip "spinningegg" in Symbol 345 MovieClip Frame 2
onClipEvent (load) {
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
screaming = false;
this._x = _parent.new_x;
this._y = _parent.new_y;
eggspin = 2 + (_parent.xpower / 1);
active = true;
power = 0.4 * Math.sqrt((_parent._parent.xpower * _parent._parent.xpower) + (_parent._parent.ypower * _parent._parent.ypower));
gravity = 0.5;
gravity2 = gravity;
_parent.dropvar = 1;
}
onClipEvent (enterFrame) {
if (active == true) {
if (gravity < 40) {
gravity = gravity + (gravity2 / 1.5);
}
this._x = this._x + (_parent.xpower * 0.7);
this._y = (this._y + (_parent.ypower * 0.7)) + gravity;
this._rotation = this._rotation + eggspin;
if (this._rotation > 360) {
this._rotation = 360;
}
if (this._x > 1000) {
_parent.gotoAndStop(1);
}
if (this._y < -1000) {
_parent.gotoAndStop(1);
}
if (this._x < -1000) {
_parent.gotoAndStop(1);
}
if (this._y > 100) {
if (screaming == false) {
_root.w1 = _root.w1 + 2;
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 347 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 165 MovieClip "mainegg" in Symbol 347 MovieClip Frame 1
onClipEvent (load) {
this._x = _parent.new_x;
this._y = _parent.new_y;
trace("dir ---" + _parent.facing);
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
}
Instance of Symbol 171 MovieClip "comp" in Symbol 347 MovieClip Frame 1
onClipEvent (load) {
_parent.power = 0;
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
}
onClipEvent (enterFrame) {
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
this._rotation = _parent.clip.deg;
trace(_parent.eggstatus);
if (_parent.eggstatus == "firing") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 172 MovieClip "clip" in Symbol 347 MovieClip Frame 1
onClipEvent (enterFrame) {
x = _root._xmouse - (_root.egg._x + _parent.comp._x);
y = _root._ymouse - (_root.egg._y + _parent.comp._y);
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
} else if ((Math.floor(y) == 0) && (x < 0)) {
deg = 180;
}
}
Instance of Symbol 315 MovieClip "platform1" in Symbol 347 MovieClip Frame 1
onClipEvent (load) {
this.sliding = false;
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 347 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 347 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 176 MovieClip "platform1" in Symbol 347 MovieClip Frame 1
onClipEvent (load) {
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (_parent.ladder.ready == true) {
if (_parent.spinningegg.active == false) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
_parent.mainegg._x = this._x;
_parent.mainegg._y = this._y;
_parent.mainegg._rotation = 0;
this.collision = true;
if (_parent.complete == false) {
_root.sound.levelcomplete();
}
_parent.complete = true;
}
}
}
}
}
}
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 347 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 236 MovieClip "twig" in Symbol 347 MovieClip Frame 1
onClipEvent (load) {
this.ready = true;
trace("twig mc name " + this._name);
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (this.ready == true) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
trace("got twig ");
_parent.ladder.ready = false;
gotoAndPlay (2);
this.ready = false;
}
}
}
}
}
}
Symbol 347 MovieClip Frame 2
stop();
Instance of Symbol 252 MovieClip "spinningegg" in Symbol 347 MovieClip Frame 2
onClipEvent (load) {
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
screaming = false;
this._x = _parent.new_x;
this._y = _parent.new_y;
eggspin = 2 + (_parent.xpower / 1);
active = true;
power = 0.4 * Math.sqrt((_parent._parent.xpower * _parent._parent.xpower) + (_parent._parent.ypower * _parent._parent.ypower));
gravity = 0.5;
gravity2 = gravity;
_parent.dropvar = 1;
}
onClipEvent (enterFrame) {
if (active == true) {
if (gravity < 40) {
gravity = gravity + (gravity2 / 1.5);
}
this._x = this._x + (_parent.xpower * 0.7);
this._y = (this._y + (_parent.ypower * 0.7)) + gravity;
this._rotation = this._rotation + eggspin;
if (this._rotation > 360) {
this._rotation = 360;
}
if (this._x > 1000) {
_parent.gotoAndStop(1);
}
if (this._y < -1000) {
_parent.gotoAndStop(1);
}
if (this._x < -1000) {
_parent.gotoAndStop(1);
}
if (this._y > 100) {
if (screaming == false) {
_root.w1 = _root.w1 + 2;
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 348 Button
on (release) {
_root.sound.buttonsound();
if (_root.playername == "") {
playername = "egg";
}
var e = new LoadVars();
e.onLoad = function () {
trace("loaded ok");
_root.$hiscores2 = this.$hiscores;
trace("vars = " + this.$hiscores);
_root.nextFrame();
};
e.load(((("http://www.playerthree.net/ping/hiscore.php?name=" + playername) + "&score=") + w1) + "&email=nobody@playerthree.net&slice=10&england=1&chart=2");
}
Symbol 357 MovieClip Frame 73
gotoAndPlay (1);
Symbol 360 MovieClip Frame 1
stop();
Symbol 360 MovieClip Frame 2
stop();
Symbol 364 MovieClip Frame 1
this._x = this._x - this.myspeed;
if (this.newinstance == "false") {
} else {
this.rand1 = Math.random();
this.myspeed = this.rand1 / 4;
this._x = 320 * Math.random();
this._y = 240 * Math.random();
this._xscale = 100 * this.rand1;
this._yscale = 100 * this.rand1;
}
this.newinstance = "false";
if (this._x < -2) {
this.myspeed = this.rand1 / 4;
this._x = 322;
this._y = 240 * Math.random();
this._xscale = 100 * this.rand1;
this._yscale = 100 * this.rand1;
}
Symbol 364 MovieClip Frame 2
this._x = this._x - this.myspeed;
if (this._x < -2) {
this.myspeed = this.rand1 / 4;
this._x = 322;
this._y = 240 * Math.random();
this._xscale = 100 * this.rand1;
this._yscale = 100 * this.rand1;
}
gotoAndPlay (1);
Instance of Symbol 361 MovieClip "code" in Symbol 365 MovieClip Frame 1
onClipEvent (load) {
n = 1;
amount = 20;
while (amount > 1) {
duplicateMovieClip (_parent.star0, "star" + amount, amount);
setProperty("star" + amount, _xscale , 100);
setProperty("star" + amount, _yscale , 100);
amount--;
}
}
Symbol 369 MovieClip Frame 1
stop();
Instance of Symbol 360 MovieClip "satellite_2" in Symbol 369 MovieClip Frame 1
onClipEvent (load) {
this.rand1 = (0.6 * Math.random()) + 0.4;
this.myspeed = this.rand1 / 2;
this._x = 230;
this._y = (150 * Math.random()) - 120;
this._xscale = (this.rand1 * 85) + 15;
this._yscale = (this.rand1 * 85) + 15;
this._rotation = Math.random() * 360;
}
onClipEvent (enterFrame) {
this._x = this._x - this.myspeed;
this._rotation = this._rotation + 0.5;
if (this._x < -230) {
trace("x pos" + this._x);
this.rand1 = (0.6 * Math.random()) + 0.4;
this.myspeed = this.rand1 / 2;
this._x = 230;
this._y = (150 * Math.random()) - 120;
this._xscale = (this.rand1 * 85) + 15;
this._yscale = (this.rand1 * 85) + 15;
this._rotation = Math.random() * 360;
}
}
Symbol 370 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 165 MovieClip "mainegg" in Symbol 370 MovieClip Frame 1
onClipEvent (load) {
this._x = _parent.new_x;
this._y = _parent.new_y;
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
}
Instance of Symbol 171 MovieClip "comp" in Symbol 370 MovieClip Frame 1
onClipEvent (load) {
_parent.power = 0;
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
}
onClipEvent (enterFrame) {
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
this._rotation = _parent.clip.deg;
trace(_parent.eggstatus);
if (_parent.eggstatus == "firing") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 172 MovieClip "clip" in Symbol 370 MovieClip Frame 1
onClipEvent (enterFrame) {
x = _root._xmouse - (_root.egg._x + _parent.comp._x);
y = _root._ymouse - (_root.egg._y + _parent.comp._y);
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
} else if ((Math.floor(y) == 0) && (x < 0)) {
deg = 180;
}
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 370 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 370 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 370 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 176 MovieClip "platform1" in Symbol 370 MovieClip Frame 1
onClipEvent (load) {
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (_parent.ladder.ready == true) {
if (_parent.spinningegg.active == false) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
_parent.mainegg._x = this._x;
_parent.mainegg._y = this._y;
_parent.mainegg._rotation = 0;
this.collision = true;
if (_parent.complete == false) {
_root.sound.levelcomplete();
}
_parent.complete = true;
}
}
}
}
}
}
}
Instance of Symbol 236 MovieClip "twig" in Symbol 370 MovieClip Frame 1
onClipEvent (load) {
this.ready = true;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (this.ready == true) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
_parent.ladder.ready = false;
gotoAndPlay (2);
this.ready = false;
}
}
}
}
}
}
Symbol 370 MovieClip Frame 2
stop();
Instance of Symbol 252 MovieClip "spinningegg" in Symbol 370 MovieClip Frame 2
onClipEvent (load) {
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
screaming = false;
this._x = _parent.new_x;
this._y = _parent.new_y;
eggspin = 2 + (_parent.xpower / 1);
active = true;
power = 0.2 * Math.sqrt((_parent._parent.xpower * _parent._parent.xpower) + (_parent._parent.ypower * _parent._parent.ypower));
gravity = 0.3;
gravity2 = gravity;
_parent.dropvar = 1;
}
onClipEvent (enterFrame) {
if (active == true) {
if (gravity < 20) {
gravity = gravity + (gravity2 / 2.25);
}
this._x = this._x + (_parent.xpower * 0.5);
this._y = (this._y + (_parent.ypower * 0.5)) + gravity;
this._rotation = this._rotation + eggspin;
if (this._rotation > 360) {
this._rotation = 360;
}
if (this._x > 1000) {
_parent.gotoAndStop(1);
}
if (this._y < -1000) {
_parent.gotoAndStop(1);
}
if (this._x < -1000) {
_parent.gotoAndStop(1);
}
if (this._y > 100) {
if (screaming == false) {
_root.w1 = _root.w1 + 2;
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 371 MovieClip Frame 40
stop();
Symbol 376 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 165 MovieClip "mainegg" in Symbol 376 MovieClip Frame 1
onClipEvent (load) {
this._x = _parent.new_x;
this._y = _parent.new_y;
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
}
Instance of Symbol 171 MovieClip "comp" in Symbol 376 MovieClip Frame 1
onClipEvent (load) {
_parent.power = 0;
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
}
onClipEvent (enterFrame) {
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
this._rotation = _parent.clip.deg;
trace(_parent.eggstatus);
if (_parent.eggstatus == "firing") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 172 MovieClip "clip" in Symbol 376 MovieClip Frame 1
onClipEvent (enterFrame) {
x = _root._xmouse - (_root.egg._x + _parent.comp._x);
y = _root._ymouse - (_root.egg._y + _parent.comp._y);
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
} else if ((Math.floor(y) == 0) && (x < 0)) {
deg = 180;
}
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 376 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 376 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 376 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 376 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 376 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 376 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 176 MovieClip "platform1" in Symbol 376 MovieClip Frame 1
onClipEvent (load) {
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (_parent.ladder.ready == true) {
if (_parent.spinningegg.active == false) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
_parent.mainegg._x = this._x;
_parent.mainegg._y = this._y;
_parent.mainegg._rotation = 0;
this.collision = true;
if (_parent.complete == false) {
_root.sound.levelcomplete();
}
_parent.complete = true;
}
}
}
}
}
}
}
Instance of Symbol 236 MovieClip "twig" in Symbol 376 MovieClip Frame 1
onClipEvent (load) {
this.ready = true;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (this.ready == true) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
_parent.ladder.ready = false;
gotoAndPlay (2);
this.ready = false;
}
}
}
}
}
}
Symbol 376 MovieClip Frame 2
stop();
Instance of Symbol 252 MovieClip "spinningegg" in Symbol 376 MovieClip Frame 2
onClipEvent (load) {
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
screaming = false;
this._x = _parent.new_x;
this._y = _parent.new_y;
eggspin = 2 + (_parent.xpower / 1);
active = true;
power = 0.2 * Math.sqrt((_parent._parent.xpower * _parent._parent.xpower) + (_parent._parent.ypower * _parent._parent.ypower));
gravity = 0.3;
gravity2 = gravity;
_parent.dropvar = 1;
}
onClipEvent (enterFrame) {
if (active == true) {
if (gravity < 20) {
gravity = gravity + (gravity2 / 2.25);
}
this._x = this._x + (_parent.xpower * 0.5);
this._y = (this._y + (_parent.ypower * 0.5)) + gravity;
this._rotation = this._rotation + eggspin;
if (this._rotation > 360) {
this._rotation = 360;
}
if (this._x > 1000) {
_parent.gotoAndStop(1);
}
if (this._y < -1000) {
_parent.gotoAndStop(1);
}
if (this._x < -1000) {
_parent.gotoAndStop(1);
}
if (this._y > 100) {
if (screaming == false) {
_root.w1 = _root.w1 + 2;
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 377 MovieClip Frame 40
stop();
Symbol 381 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 165 MovieClip "mainegg" in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
this._x = _parent.new_x;
this._y = _parent.new_y;
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
}
Instance of Symbol 171 MovieClip "comp" in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
_parent.power = 0;
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
}
onClipEvent (enterFrame) {
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
this._rotation = _parent.clip.deg;
trace(_parent.eggstatus);
if (_parent.eggstatus == "firing") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 172 MovieClip "clip" in Symbol 381 MovieClip Frame 1
onClipEvent (enterFrame) {
x = _root._xmouse - (_root.egg._x + _parent.comp._x);
y = _root._ymouse - (_root.egg._y + _parent.comp._y);
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
} else if ((Math.floor(y) == 0) && (x < 0)) {
deg = 180;
}
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 176 MovieClip "platform1" in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (_parent.ladder.ready == true) {
if (_parent.spinningegg.active == false) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
_parent.mainegg._x = this._x;
_parent.mainegg._y = this._y;
_parent.mainegg._rotation = 0;
this.collision = true;
if (_parent.complete == false) {
_root.sound.levelcomplete();
}
_parent.complete = true;
}
}
}
}
}
}
}
Instance of Symbol 236 MovieClip "twig" in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
this.ready = true;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (this.ready == true) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
_parent.ladder.ready = false;
gotoAndPlay (2);
this.ready = false;
}
}
}
}
}
}
Symbol 381 MovieClip Frame 2
stop();
Instance of Symbol 252 MovieClip "spinningegg" in Symbol 381 MovieClip Frame 2
onClipEvent (load) {
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
screaming = false;
this._x = _parent.new_x;
this._y = _parent.new_y;
eggspin = 2 + (_parent.xpower / 1);
active = true;
power = 0.2 * Math.sqrt((_parent._parent.xpower * _parent._parent.xpower) + (_parent._parent.ypower * _parent._parent.ypower));
gravity = 0.3;
gravity2 = gravity;
_parent.dropvar = 1;
}
onClipEvent (enterFrame) {
if (active == true) {
if (gravity < 20) {
gravity = gravity + (gravity2 / 2.25);
}
this._x = this._x + (_parent.xpower * 0.5);
this._y = (this._y + (_parent.ypower * 0.5)) + gravity;
this._rotation = this._rotation + eggspin;
if (this._rotation > 360) {
this._rotation = 360;
}
if (this._x > 1000) {
_parent.gotoAndStop(1);
}
if (this._y < -1000) {
_parent.gotoAndStop(1);
}
if (this._x < -1000) {
_parent.gotoAndStop(1);
}
if (this._y > 100) {
if (screaming == false) {
_root.w1 = _root.w1 + 2;
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 382 MovieClip Frame 40
stop();
Symbol 385 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 165 MovieClip "mainegg" in Symbol 385 MovieClip Frame 1
onClipEvent (load) {
this._x = _parent.new_x;
this._y = _parent.new_y;
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
}
Instance of Symbol 171 MovieClip "comp" in Symbol 385 MovieClip Frame 1
onClipEvent (load) {
_parent.power = 0;
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
}
onClipEvent (enterFrame) {
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
this._rotation = _parent.clip.deg;
trace(_parent.eggstatus);
if (_parent.eggstatus == "firing") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 172 MovieClip "clip" in Symbol 385 MovieClip Frame 1
onClipEvent (enterFrame) {
x = _root._xmouse - (_root.egg._x + _parent.comp._x);
y = _root._ymouse - (_root.egg._y + _parent.comp._y);
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
} else if ((Math.floor(y) == 0) && (x < 0)) {
deg = 180;
}
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 385 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 385 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 385 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 385 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 176 MovieClip "platform1" in Symbol 385 MovieClip Frame 1
onClipEvent (load) {
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (_parent.ladder.ready == true) {
if (_parent.spinningegg.active == false) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
_parent.mainegg._x = this._x;
_parent.mainegg._y = this._y;
_parent.mainegg._rotation = 0;
this.collision = true;
if (_parent.complete == false) {
_root.sound.levelcomplete();
}
_parent.complete = true;
}
}
}
}
}
}
}
Instance of Symbol 236 MovieClip "twig" in Symbol 385 MovieClip Frame 1
onClipEvent (load) {
this.ready = true;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (this.ready == true) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
_parent.ladder.ready = false;
gotoAndPlay (2);
this.ready = false;
}
}
}
}
}
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 385 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 385 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Symbol 385 MovieClip Frame 2
stop();
Instance of Symbol 252 MovieClip "spinningegg" in Symbol 385 MovieClip Frame 2
onClipEvent (load) {
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
screaming = false;
this._x = _parent.new_x;
this._y = _parent.new_y;
eggspin = 2 + (_parent.xpower / 1);
active = true;
power = 0.2 * Math.sqrt((_parent._parent.xpower * _parent._parent.xpower) + (_parent._parent.ypower * _parent._parent.ypower));
gravity = 0.3;
gravity2 = gravity;
_parent.dropvar = 1;
}
onClipEvent (enterFrame) {
if (active == true) {
if (gravity < 20) {
gravity = gravity + (gravity2 / 2.25);
}
this._x = this._x + (_parent.xpower * 0.5);
this._y = (this._y + (_parent.ypower * 0.5)) + gravity;
this._rotation = this._rotation + eggspin;
if (this._rotation > 360) {
this._rotation = 360;
}
if (this._x > 1000) {
_parent.gotoAndStop(1);
}
if (this._y < -1000) {
_parent.gotoAndStop(1);
}
if (this._x < -1000) {
_parent.gotoAndStop(1);
}
if (this._y > 100) {
if (screaming == false) {
_root.w1 = _root.w1 + 2;
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 386 MovieClip Frame 40
stop();
Symbol 390 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 165 MovieClip "mainegg" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
this._x = _parent.new_x;
this._y = _parent.new_y;
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
}
Instance of Symbol 171 MovieClip "comp" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
_parent.power = 0;
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
}
onClipEvent (enterFrame) {
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
this._rotation = _parent.clip.deg;
trace(_parent.eggstatus);
if (_parent.eggstatus == "firing") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 172 MovieClip "clip" in Symbol 390 MovieClip Frame 1
onClipEvent (enterFrame) {
x = _root._xmouse - (_root.egg._x + _parent.comp._x);
y = _root._ymouse - (_root.egg._y + _parent.comp._y);
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
} else if ((Math.floor(y) == 0) && (x < 0)) {
deg = 180;
}
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 176 MovieClip "platform1" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (_parent.ladder.ready == true) {
if (_parent.spinningegg.active == false) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
_parent.mainegg._x = this._x;
_parent.mainegg._y = this._y;
_parent.mainegg._rotation = 0;
this.collision = true;
if (_parent.complete == false) {
_root.sound.levelcomplete();
}
_parent.complete = true;
}
}
}
}
}
}
}
Instance of Symbol 236 MovieClip "twig" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
this.ready = true;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (this.ready == true) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
_parent.ladder.ready = false;
gotoAndPlay (2);
this.ready = false;
}
}
}
}
}
}
Symbol 390 MovieClip Frame 2
stop();
Instance of Symbol 252 MovieClip "spinningegg" in Symbol 390 MovieClip Frame 2
onClipEvent (load) {
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
screaming = false;
this._x = _parent.new_x;
this._y = _parent.new_y;
eggspin = 2 + (_parent.xpower / 1);
active = true;
power = 0.2 * Math.sqrt((_parent._parent.xpower * _parent._parent.xpower) + (_parent._parent.ypower * _parent._parent.ypower));
gravity = 0.3;
gravity2 = gravity;
_parent.dropvar = 1;
}
onClipEvent (enterFrame) {
if (active == true) {
if (gravity < 20) {
gravity = gravity + (gravity2 / 2.25);
}
this._x = this._x + (_parent.xpower * 0.5);
this._y = (this._y + (_parent.ypower * 0.5)) + gravity;
this._rotation = this._rotation + eggspin;
if (this._rotation > 360) {
this._rotation = 360;
}
if (this._x > 1000) {
_parent.gotoAndStop(1);
}
if (this._y < -1000) {
_parent.gotoAndStop(1);
}
if (this._x < -1000) {
_parent.gotoAndStop(1);
}
if (this._y > 100) {
if (screaming == false) {
_root.w1 = _root.w1 + 2;
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 394 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 165 MovieClip "mainegg" in Symbol 394 MovieClip Frame 1
onClipEvent (load) {
this._x = _parent.new_x;
this._y = _parent.new_y;
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
}
Instance of Symbol 171 MovieClip "comp" in Symbol 394 MovieClip Frame 1
onClipEvent (load) {
_parent.power = 0;
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
}
onClipEvent (enterFrame) {
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
this._rotation = _parent.clip.deg;
trace(_parent.eggstatus);
if (_parent.eggstatus == "firing") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 172 MovieClip "clip" in Symbol 394 MovieClip Frame 1
onClipEvent (enterFrame) {
x = _root._xmouse - (_root.egg._x + _parent.comp._x);
y = _root._ymouse - (_root.egg._y + _parent.comp._y);
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
} else if ((Math.floor(y) == 0) && (x < 0)) {
deg = 180;
}
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 394 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 394 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 394 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 394 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 394 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 176 MovieClip "platform1" in Symbol 394 MovieClip Frame 1
onClipEvent (load) {
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (_parent.ladder.ready == true) {
if (_parent.spinningegg.active == false) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
_parent.mainegg._x = this._x;
_parent.mainegg._y = this._y;
_parent.mainegg._rotation = 0;
this.collision = true;
if (_parent.complete == false) {
_root.sound.levelcomplete();
}
_parent.complete = true;
}
}
}
}
}
}
}
Instance of Symbol 236 MovieClip "twig" in Symbol 394 MovieClip Frame 1
onClipEvent (load) {
this.ready = true;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (this.ready == true) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
_parent.ladder.ready = false;
gotoAndPlay (2);
this.ready = false;
}
}
}
}
}
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 394 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Symbol 394 MovieClip Frame 2
stop();
Instance of Symbol 252 MovieClip "spinningegg" in Symbol 394 MovieClip Frame 2
onClipEvent (load) {
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
screaming = false;
this._x = _parent.new_x;
this._y = _parent.new_y;
eggspin = 2 + (_parent.xpower / 1);
active = true;
power = 0.2 * Math.sqrt((_parent._parent.xpower * _parent._parent.xpower) + (_parent._parent.ypower * _parent._parent.ypower));
gravity = 0.3;
gravity2 = gravity;
_parent.dropvar = 1;
}
onClipEvent (enterFrame) {
if (active == true) {
if (gravity < 20) {
gravity = gravity + (gravity2 / 2.25);
}
this._x = this._x + (_parent.xpower * 0.5);
this._y = (this._y + (_parent.ypower * 0.5)) + gravity;
this._rotation = this._rotation + eggspin;
if (this._rotation > 360) {
this._rotation = 360;
}
if (this._x > 1000) {
_parent.gotoAndStop(1);
}
if (this._y < -1000) {
_parent.gotoAndStop(1);
}
if (this._x < -1000) {
_parent.gotoAndStop(1);
}
if (this._y > 100) {
if (screaming == false) {
_root.w1 = _root.w1 + 2;
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 396 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 165 MovieClip "mainegg" in Symbol 396 MovieClip Frame 1
onClipEvent (load) {
this._x = _parent.new_x;
this._y = _parent.new_y;
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
}
Instance of Symbol 171 MovieClip "comp" in Symbol 396 MovieClip Frame 1
onClipEvent (load) {
_parent.power = 0;
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
}
onClipEvent (enterFrame) {
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
this._rotation = _parent.clip.deg;
trace(_parent.eggstatus);
if (_parent.eggstatus == "firing") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 172 MovieClip "clip" in Symbol 396 MovieClip Frame 1
onClipEvent (enterFrame) {
x = _root._xmouse - (_root.egg._x + _parent.comp._x);
y = _root._ymouse - (_root.egg._y + _parent.comp._y);
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
} else if ((Math.floor(y) == 0) && (x < 0)) {
deg = 180;
}
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 396 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 396 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 396 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 176 MovieClip "platform1" in Symbol 396 MovieClip Frame 1
onClipEvent (load) {
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (_parent.ladder.ready == true) {
if (_parent.spinningegg.active == false) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
_parent.mainegg._x = this._x;
_parent.mainegg._y = this._y;
_parent.mainegg._rotation = 0;
this.collision = true;
if (_parent.complete == false) {
_root.sound.levelcomplete();
}
_parent.complete = true;
}
}
}
}
}
}
}
Instance of Symbol 236 MovieClip "twig" in Symbol 396 MovieClip Frame 1
onClipEvent (load) {
this.ready = true;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (this.ready == true) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
_parent.ladder.ready = false;
gotoAndPlay (2);
this.ready = false;
}
}
}
}
}
}
Symbol 396 MovieClip Frame 2
stop();
Instance of Symbol 252 MovieClip "spinningegg" in Symbol 396 MovieClip Frame 2
onClipEvent (load) {
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
screaming = false;
this._x = _parent.new_x;
this._y = _parent.new_y;
eggspin = 2 + (_parent.xpower / 1);
active = true;
power = 0.2 * Math.sqrt((_parent._parent.xpower * _parent._parent.xpower) + (_parent._parent.ypower * _parent._parent.ypower));
gravity = 0.3;
gravity2 = gravity;
_parent.dropvar = 1;
}
onClipEvent (enterFrame) {
if (active == true) {
if (gravity < 20) {
gravity = gravity + (gravity2 / 2.25);
}
this._x = this._x + (_parent.xpower * 0.5);
this._y = (this._y + (_parent.ypower * 0.5)) + gravity;
this._rotation = this._rotation + eggspin;
if (this._rotation > 360) {
this._rotation = 360;
}
if (this._x > 1000) {
_parent.gotoAndStop(1);
}
if (this._y < -1000) {
_parent.gotoAndStop(1);
}
if (this._x < -1000) {
_parent.gotoAndStop(1);
}
if (this._y > 100) {
if (screaming == false) {
_root.w1 = _root.w1 + 2;
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 398 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 165 MovieClip "mainegg" in Symbol 398 MovieClip Frame 1
onClipEvent (load) {
this._x = _parent.new_x;
this._y = _parent.new_y;
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
}
Instance of Symbol 171 MovieClip "comp" in Symbol 398 MovieClip Frame 1
onClipEvent (load) {
_parent.power = 0;
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
}
onClipEvent (enterFrame) {
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
this._rotation = _parent.clip.deg;
trace(_parent.eggstatus);
if (_parent.eggstatus == "firing") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 172 MovieClip "clip" in Symbol 398 MovieClip Frame 1
onClipEvent (enterFrame) {
x = _root._xmouse - (_root.egg._x + _parent.comp._x);
y = _root._ymouse - (_root.egg._y + _parent.comp._y);
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
} else if ((Math.floor(y) == 0) && (x < 0)) {
deg = 180;
}
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 398 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 398 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 398 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 398 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 176 MovieClip "platform1" in Symbol 398 MovieClip Frame 1
onClipEvent (load) {
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (_parent.ladder.ready == true) {
if (_parent.spinningegg.active == false) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
_parent.mainegg._x = this._x;
_parent.mainegg._y = this._y;
_parent.mainegg._rotation = 0;
this.collision = true;
if (_parent.complete == false) {
_root.sound.levelcomplete();
}
_parent.complete = true;
}
}
}
}
}
}
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 398 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 236 MovieClip "twig" in Symbol 398 MovieClip Frame 1
onClipEvent (load) {
this.ready = true;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (this.ready == true) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
_parent.ladder.ready = false;
gotoAndPlay (2);
this.ready = false;
}
}
}
}
}
}
Symbol 398 MovieClip Frame 2
stop();
Instance of Symbol 252 MovieClip "spinningegg" in Symbol 398 MovieClip Frame 2
onClipEvent (load) {
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
screaming = false;
this._x = _parent.new_x;
this._y = _parent.new_y;
eggspin = 2 + (_parent.xpower / 1);
active = true;
power = 0.2 * Math.sqrt((_parent._parent.xpower * _parent._parent.xpower) + (_parent._parent.ypower * _parent._parent.ypower));
gravity = 0.3;
gravity2 = gravity;
_parent.dropvar = 1;
}
onClipEvent (enterFrame) {
if (active == true) {
if (gravity < 20) {
gravity = gravity + (gravity2 / 2.25);
}
this._x = this._x + (_parent.xpower * 0.5);
this._y = (this._y + (_parent.ypower * 0.5)) + gravity;
this._rotation = this._rotation + eggspin;
if (this._rotation > 360) {
this._rotation = 360;
}
if (this._x > 1000) {
_parent.gotoAndStop(1);
}
if (this._y < -1000) {
_parent.gotoAndStop(1);
}
if (this._x < -1000) {
_parent.gotoAndStop(1);
}
if (this._y > 100) {
if (screaming == false) {
_root.w1 = _root.w1 + 2;
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 400 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 165 MovieClip "mainegg" in Symbol 400 MovieClip Frame 1
onClipEvent (load) {
this._x = _parent.new_x;
this._y = _parent.new_y;
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
}
Instance of Symbol 171 MovieClip "comp" in Symbol 400 MovieClip Frame 1
onClipEvent (load) {
_parent.power = 0;
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
}
onClipEvent (enterFrame) {
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
this._rotation = _parent.clip.deg;
trace(_parent.eggstatus);
if (_parent.eggstatus == "firing") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 172 MovieClip "clip" in Symbol 400 MovieClip Frame 1
onClipEvent (enterFrame) {
x = _root._xmouse - (_root.egg._x + _parent.comp._x);
y = _root._ymouse - (_root.egg._y + _parent.comp._y);
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
} else if ((Math.floor(y) == 0) && (x < 0)) {
deg = 180;
}
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 400 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 400 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 400 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 400 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 176 MovieClip "platform1" in Symbol 400 MovieClip Frame 1
onClipEvent (load) {
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (_parent.ladder.ready == true) {
if (_parent.spinningegg.active == false) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
_parent.mainegg._x = this._x;
_parent.mainegg._y = this._y;
_parent.mainegg._rotation = 0;
this.collision = true;
if (_parent.complete == false) {
_root.sound.levelcomplete();
}
_parent.complete = true;
}
}
}
}
}
}
}
Instance of Symbol 236 MovieClip "twig" in Symbol 400 MovieClip Frame 1
onClipEvent (load) {
this.ready = true;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (this.ready == true) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
_parent.ladder.ready = false;
gotoAndPlay (2);
this.ready = false;
}
}
}
}
}
}
Symbol 400 MovieClip Frame 2
stop();
Instance of Symbol 252 MovieClip "spinningegg" in Symbol 400 MovieClip Frame 2
onClipEvent (load) {
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
screaming = false;
this._x = _parent.new_x;
this._y = _parent.new_y;
eggspin = 2 + (_parent.xpower / 1);
active = true;
power = 0.2 * Math.sqrt((_parent._parent.xpower * _parent._parent.xpower) + (_parent._parent.ypower * _parent._parent.ypower));
gravity = 0.3;
gravity2 = gravity;
_parent.dropvar = 1;
}
onClipEvent (enterFrame) {
if (active == true) {
if (gravity < 20) {
gravity = gravity + (gravity2 / 2.25);
}
this._x = this._x + (_parent.xpower * 0.5);
this._y = (this._y + (_parent.ypower * 0.5)) + gravity;
this._rotation = this._rotation + eggspin;
if (this._rotation > 360) {
this._rotation = 360;
}
if (this._x > 1000) {
_parent.gotoAndStop(1);
}
if (this._y < -1000) {
_parent.gotoAndStop(1);
}
if (this._x < -1000) {
_parent.gotoAndStop(1);
}
if (this._y > 100) {
if (screaming == false) {
_root.w1 = _root.w1 + 2;
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 401 MovieClip Frame 40
stop();
Symbol 403 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 165 MovieClip "mainegg" in Symbol 403 MovieClip Frame 1
onClipEvent (load) {
this._x = _parent.new_x;
this._y = _parent.new_y;
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
}
Instance of Symbol 171 MovieClip "comp" in Symbol 403 MovieClip Frame 1
onClipEvent (load) {
_parent.power = 0;
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
}
onClipEvent (enterFrame) {
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
this._rotation = _parent.clip.deg;
trace(_parent.eggstatus);
if (_parent.eggstatus == "firing") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 172 MovieClip "clip" in Symbol 403 MovieClip Frame 1
onClipEvent (enterFrame) {
x = _root._xmouse - (_root.egg._x + _parent.comp._x);
y = _root._ymouse - (_root.egg._y + _parent.comp._y);
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
} else if ((Math.floor(y) == 0) && (x < 0)) {
deg = 180;
}
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 403 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 403 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 174 MovieClip "platform1" in Symbol 403 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 176 MovieClip "platform1" in Symbol 403 MovieClip Frame 1
onClipEvent (load) {
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (_parent.ladder.ready == true) {
if (_parent.spinningegg.active == false) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
_parent.mainegg._x = this._x;
_parent.mainegg._y = this._y;
_parent.mainegg._rotation = 0;
this.collision = true;
if (_parent.complete == false) {
_root.sound.levelcomplete();
}
_parent.complete = true;
}
}
}
}
}
}
}
Instance of Symbol 236 MovieClip "twig" in Symbol 403 MovieClip Frame 1
onClipEvent (load) {
this.ready = true;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (this.ready == true) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
_parent.ladder.ready = false;
gotoAndPlay (2);
this.ready = false;
}
}
}
}
}
}
Symbol 403 MovieClip Frame 2
stop();
Instance of Symbol 252 MovieClip "spinningegg" in Symbol 403 MovieClip Frame 2
onClipEvent (load) {
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
screaming = false;
this._x = _parent.new_x;
this._y = _parent.new_y;
eggspin = 2 + (_parent.xpower / 1);
active = true;
power = 0.2 * Math.sqrt((_parent._parent.xpower * _parent._parent.xpower) + (_parent._parent.ypower * _parent._parent.ypower));
gravity = 0.3;
gravity2 = gravity;
_parent.dropvar = 1;
}
onClipEvent (enterFrame) {
if (active == true) {
if (gravity < 20) {
gravity = gravity + (gravity2 / 2.25);
}
this._x = this._x + (_parent.xpower * 0.5);
this._y = (this._y + (_parent.ypower * 0.5)) + gravity;
this._rotation = this._rotation + eggspin;
if (this._rotation > 360) {
this._rotation = 360;
}
if (this._x > 1000) {
_parent.gotoAndStop(1);
}
if (this._y < -1000) {
_parent.gotoAndStop(1);
}
if (this._x < -1000) {
_parent.gotoAndStop(1);
}
if (this._y > 100) {
if (screaming == false) {
_root.w1 = _root.w1 + 2;
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 404 Button
on (release) {
_root.sound.buttonsound();
if (_root.playername == "") {
playername = "egg";
}
var f = new LoadVars();
f.onLoad = function () {
trace("loaded ok");
_root.$hiscores3 = this.$hiscores;
trace("vars = " + this.$hiscores);
_root.nextFrame();
};
f.load(((("http://www.playerthree.net/ping/hiscore.php?name=" + playername) + "&score=") + w1) + "&email=nobody@playerthree.net&slice=10&england=1&chart=3");
}