Frame 1
stop();
_root.newLoad = 0;
fscommand ("showmenu", "false");
fscommand ("allowscale", "true");
myLocalSO = sharedobject.getLocal("flashcookie");
if (myLocalSO.data.name_a_1 != null) {
name_a_1 = myLocalSO.data.name_a_1;
name_a_2 = myLocalSO.data.name_a_2;
name_a_3 = myLocalSO.data.name_a_3;
score_a_1 = myLocalSO.data.score_a_1;
score_a_2 = myLocalSO.data.score_a_2;
score_a_3 = myLocalSO.data.score_a_3;
name_b_1 = myLocalSO.data.name_b_1;
name_b_2 = myLocalSO.data.name_b_2;
name_b_3 = myLocalSO.data.name_b_3;
score_b_1 = myLocalSO.data.score_b_1;
score_b_2 = myLocalSO.data.score_b_2;
score_b_3 = myLocalSO.data.score_b_3;
name_c_1 = myLocalSO.data.name_c_1;
name_c_2 = myLocalSO.data.name_c_2;
name_c_3 = myLocalSO.data.name_c_3;
score_c_1 = myLocalSO.data.score_c_1;
score_c_2 = myLocalSO.data.score_c_2;
score_c_3 = myLocalSO.data.score_c_3;
numVisits.text = ("You have been here " + myLocalSO.data.counter) + " times.";
} else {
name_a_1 = "mark";
name_a_2 = "pol";
name_a_3 = "pete";
score_a_1 = 48;
score_a_2 = 62;
score_a_3 = 75;
name_b_1 = "tetsuo";
name_b_2 = "bob";
name_b_3 = "matt";
score_b_1 = 41;
score_b_2 = 42;
score_b_3 = 53;
name_c_1 = "champ";
name_c_2 = "master";
name_c_3 = "bob";
score_c_1 = 46;
score_c_2 = 55;
score_c_3 = 62;
myLocalSO.data.name_a_1 = name_a_1;
myLocalSO.data.name_a_2 = name_a_2;
myLocalSO.data.name_a_3 = name_a_3;
myLocalSO.data.score_a_1 = score_a_1;
myLocalSO.data.score_a_2 = score_a_2;
myLocalSO.data.score_a_3 = score_a_3;
myLocalSO.data.name_b_1 = name_b_1;
myLocalSO.data.name_b_2 = name_b_2;
myLocalSO.data.name_b_3 = name_b_3;
myLocalSO.data.score_b_1 = score_b_1;
myLocalSO.data.score_b_2 = score_b_2;
myLocalSO.data.score_b_3 = score_b_3;
myLocalSO.data.name_c_1 = name_c_1;
myLocalSO.data.name_c_2 = name_c_2;
myLocalSO.data.name_c_3 = name_c_3;
myLocalSO.data.score_c_1 = score_c_1;
myLocalSO.data.score_c_2 = score_c_2;
myLocalSO.data.score_c_3 = score_c_3;
myLocalSO.data.counter = 1;
numVisits.text = myLocalSO.data.counter;
}
myLocalSO.data.counter++;
userName.onChanged = function () {
myLocalSO.data.name = userName.text;
};
Instance of Symbol 25 MovieClip "preloader" in Frame 1
onClipEvent (enterFrame) {
if (_root._framesloaded > 8) {
}
}
Frame 2
stop();
w1 = 0;
Instance of Symbol 37 MovieClip "musicswitch" in Frame 2
onClipEvent (enterFrame) {
}
onClipEvent (load) {
}
Instance of Symbol 41 MovieClip "storage" in Frame 2
onClipEvent (load) {
_root.worldrankingscores = 0;
_root.loadedC1 = 0;
_root.loadedC2 = 0;
_root.loadedC3 = 0;
_root.myActualFrame = _root._currentframe;
_root.myTargetFrame = _root._currentframe;
var a = new LoadVars();
a.onLoad = function () {
trace("loaded ok");
_root.$hiscores1 = this.$hiscores;
trace("vars = " + this.$hiscores);
course_1_scores = this.$hiscores1.split(",");
_root.loadedC1 = 1;
};
a.load("../hiscore_eggrun.php?name=&score=0&email=&slice=10&england=1&chart=1");
var b = new LoadVars();
b.onLoad = function () {
trace("loaded ok");
_root.$hiscores2 = this.$hiscores;
trace("vars = " + this.$hiscores);
course_2_scores = this.$hiscores2.split(",");
_root.loadedC2 = 1;
};
b.load("../hiscore_eggrun.php?name=&score=0&email=&slice=10&england=1&chart=2");
var c = new LoadVars();
c.onLoad = function () {
trace("loaded ok");
_root.$hiscores3 = this.$hiscores;
trace("vars = " + this.$hiscores);
course_3_scores = this.$hiscores3.split(",");
_root.loadedC3 = 1;
};
c.load("../hiscore_eggrun.php?name=&score=0&email=&slice=10&england=1&chart=3");
}
onClipEvent (enterFrame) {
_root.myActualFrame = _root._currentframe;
if (_root.myActualFrame != _root.myTargetFrame) {
trace("frame error");
_root.gotoAndPlay(_root.myTargetFrame);
}
if (_root.loadedC1 == 1) {
if (_root.loadedC2 == 1) {
if (_root.loadedC3 == 1) {
_root.worldrankingscores = 1;
}
}
}
}
Instance of Symbol 42 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() {
if (_root.newLoad == 0) {
_root.newLoad = 1;
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");
};
}
onClipEvent (enterFrame) {
}
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(",");
name_a_1 = myLocalSO.data.name_a_1;
name_a_2 = myLocalSO.data.name_a_2;
name_a_3 = myLocalSO.data.name_a_3;
score_a_1 = myLocalSO.data.score_a_1;
score_a_2 = myLocalSO.data.score_a_2;
score_a_3 = myLocalSO.data.score_a_3;
name_b_1 = myLocalSO.data.name_b_1;
name_b_2 = myLocalSO.data.name_b_2;
name_b_3 = myLocalSO.data.name_b_3;
score_b_1 = myLocalSO.data.score_b_1;
score_b_2 = myLocalSO.data.score_b_2;
score_b_3 = myLocalSO.data.score_b_3;
name_c_1 = myLocalSO.data.name_c_1;
name_c_2 = myLocalSO.data.name_c_2;
name_c_3 = myLocalSO.data.name_c_3;
score_c_1 = myLocalSO.data.score_c_1;
score_c_2 = myLocalSO.data.score_c_2;
score_c_3 = myLocalSO.data.score_c_3;
Frame 6
stop();
Frame 7
stop();
Frame 9
stop();
_root.playername = "";
Instance of Symbol 168 MovieClip "loader1" in Frame 9
onClipEvent (enterFrame) {
if (_root._framesloaded > 110) {
gotoAndStop (2);
}
}
Frame 10
stop();
Instance of Symbol 287 MovieClip "egg" in Frame 10
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 20
stop();
Instance of Symbol 291 MovieClip "egg" in Frame 20
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 30
stop();
Instance of Symbol 295 MovieClip "egg" in Frame 30
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 40
stop();
Instance of Symbol 298 MovieClip "egg" in Frame 40
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 50
stop();
Instance of Symbol 301 MovieClip "egg" in Frame 50
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 60
stop();
Instance of Symbol 305 MovieClip "egg" in Frame 60
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 70
stop();
Instance of Symbol 308 MovieClip "egg" in Frame 70
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 80
stop();
Instance of Symbol 311 MovieClip "egg" in Frame 80
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 90
stop();
Instance of Symbol 314 MovieClip "egg" in Frame 90
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 100
stop();
Instance of Symbol 317 MovieClip "egg" in Frame 100
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 110
stop();
Instance of Symbol 326 MovieClip "score" in Frame 110
onClipEvent (load) {
if (_root.w1 < _root.score_a_3) {
gotoAndStop (2);
}
}
Instance of Symbol 337 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
_root.myTargetFrame = 2;
Frame 119
stop();
w1 = 0;
Instance of Symbol 168 MovieClip "loader1" in Frame 119
onClipEvent (enterFrame) {
if (_root._framesloaded > 220) {
gotoAndStop (2);
}
}
Frame 120
stop();
Instance of Symbol 341 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 341 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 341 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 341 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 341 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 341 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 341 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 341 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 341 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 341 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 341 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 341 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 341 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 341 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 350 MovieClip "egg" in Frame 120
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 130
stop();
Instance of Symbol 355 MovieClip "egg" in Frame 130
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 140
stop();
Instance of Symbol 358 MovieClip "egg" in Frame 140
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 150
stop();
Instance of Symbol 362 MovieClip "egg" in Frame 150
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 160
stop();
Instance of Symbol 366 MovieClip "egg" in Frame 160
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 170
stop();
Instance of Symbol 367 MovieClip "egg" in Frame 170
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 180
stop();
Instance of Symbol 368 MovieClip "egg" in Frame 180
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 190
stop();
Instance of Symbol 371 MovieClip "egg" in Frame 190
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 200
stop();
Instance of Symbol 372 MovieClip "egg" in Frame 200
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 210
stop();
Instance of Symbol 374 MovieClip "egg" in Frame 210
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 220
stop();
Instance of Symbol 377 MovieClip in Frame 220
onClipEvent (load) {
if (_root.w1 < _root.score_b_3) {
gotoAndStop (2);
}
}
Instance of Symbol 337 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
_root.myTargetFrame = 2;
Frame 249
stop();
w1 = 0;
Instance of Symbol 168 MovieClip "loader1" in Frame 249
onClipEvent (enterFrame) {
if (_root._framesloaded == _root._totalframes) {
gotoAndStop (2);
}
}
Frame 250
stop();
Instance of Symbol 398 MovieClip "egg" in Frame 250
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 260
stop();
Instance of Symbol 404 MovieClip "egg" in Frame 260
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 270
stop();
Instance of Symbol 409 MovieClip "egg" in Frame 270
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 280
stop();
Instance of Symbol 413 MovieClip "egg" in Frame 280
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 290
stop();
Instance of Symbol 418 MovieClip "egg" in Frame 290
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 300
stop();
Instance of Symbol 422 MovieClip "egg" in Frame 300
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 310
stop();
Instance of Symbol 424 MovieClip "egg" in Frame 310
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 320
stop();
Instance of Symbol 426 MovieClip "egg" in Frame 320
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 330
stop();
Instance of Symbol 428 MovieClip "egg" in Frame 330
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 340
stop();
Instance of Symbol 431 MovieClip "egg" in Frame 340
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 350
stop();
Instance of Symbol 434 MovieClip "score" in Frame 350
onClipEvent (load) {
if (_root.w1 < _root.score_c_3) {
gotoAndStop (2);
}
}
Instance of Symbol 337 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
_root.myTargetFrame = 2;
Symbol 19 MovieClip Frame 53
_root.nextFrame();
_root.myTargetFrame = 2;
Symbol 34 Button
on (release) {
_root.sound.buttonsound();
_root.sound.musicstatus = false;
_root.sound.stopsound();
gotoAndStop (2);
trace("stop button - sound status---" + _root.sound.intro_s.position);
}
Symbol 36 Button
on (release) {
_root.sound.buttonsound();
_root.sound.musicstatus = true;
_root.sound.main_s.start();
gotoAndStop (1);
trace("start button - sound status---" + _root.sound.intro_s.position);
}
Symbol 37 MovieClip Frame 1
stop();
Symbol 37 MovieClip Frame 2
stop();
Symbol 49 Button
on (release) {
_root.sound.buttonsound();
_root.myTargetFrame = 5;
}
Symbol 54 Button
on (release) {
_root.sound.buttonsound();
_root.myTargetFrame = 4;
}
Symbol 59 Button
on (release) {
_root.sound.buttonsound();
_root.myTargetFrame = 3;
}
Symbol 68 Button
on (release) {
_root.gotoAndStop(2);
}
Symbol 69 Button
on (release) {
_root.sound.buttonsound();
_root.myTargetFrame = 2;
}
Symbol 72 Button
on (release) {
_root.sound.buttonsound();
_root.myTargetFrame = 9;
}
Symbol 75 Button
on (release) {
_root.gotoAndPlay(6);
_root.sound.buttonsound();
}
Symbol 78 Button
on (release) {
_root.gotoAndPlay(7);
_root.sound.buttonsound();
}
Symbol 79 Button
on (release) {
_root.sound.buttonsound();
_root.myTargetFrame = 7;
}
Symbol 80 Button
on (release) {
_root.sound.buttonsound();
_root.myTargetFrame = 6;
}
Symbol 81 MovieClip Frame 30
stop();
Symbol 82 Button
on (release) {
_root.sound.buttonsound();
}
Symbol 83 Button
on (release) {
_root.sound.buttonsound();
}
Symbol 84 Button
on (release) {
_root.sound.buttonsound();
}
Instance of Symbol 85 MovieClip in Symbol 87 MovieClip Frame 1
onClipEvent (load) {
n = 5;
}
onClipEvent (enterFrame) {
if (this._x > -350) {
this._x = this._x - n;
n = n + 2;
}
}
Instance of Symbol 86 MovieClip in Symbol 87 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._alpha > 40) {
this._alpha = this._alpha - 5;
}
}
Symbol 88 MovieClip Frame 10
stop();
Symbol 89 Button
on (release) {
_root.sound.buttonsound();
_root.myTargetFrame = 2;
}
Symbol 91 MovieClip Frame 30
stop();
Instance of Symbol 85 MovieClip in Symbol 92 MovieClip Frame 1
onClipEvent (load) {
n = 5;
}
onClipEvent (enterFrame) {
if (this._x > -350) {
this._x = this._x - n;
n = n + 2;
}
}
Instance of Symbol 86 MovieClip in Symbol 92 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._alpha > 40) {
this._alpha = this._alpha - 5;
}
}
Symbol 102 Button
on (release) {
_parent.scores.gotoAndStop(1);
}
Symbol 103 Button
on (release) {
_parent.scores.gotoAndStop(2);
}
Symbol 104 Button
on (release) {
_parent.gotoAndStop(1);
}
Symbol 105 Button
on (release) {
_parent.gotoAndStop(2);
}
Symbol 106 MovieClip Frame 19
stop();
Instance of Symbol 97 MovieClip "wrloadercheck" in Symbol 106 MovieClip Frame 19
onClipEvent (enterFrame) {
if (_root.worldrankingscores == 1) {
_parent.gotoAndPlay(20);
}
}
Symbol 106 MovieClip Frame 32
stop();
Symbol 111 MovieClip Frame 1
stop();
Symbol 112 Button
on (release) {
changed = true;
currentcourse = 1;
_root.sound.buttonsound();
}
Symbol 113 Button
on (release) {
changed = true;
currentcourse = 2;
_root.sound.buttonsound();
}
Symbol 114 Button
on (release) {
changed = true;
currentcourse = 3;
_root.sound.buttonsound();
}
Symbol 115 Button
on (release) {
changed = true;
currentcourse = 2;
_root.sound.buttonsound();
gotoAndStop (31);
}
Symbol 116 Button
on (release) {
changed = true;
currentcourse = 3;
_root.sound.buttonsound();
gotoAndStop (32);
}
Symbol 117 Button
on (release) {
changed = true;
currentcourse = 1;
_root.sound.buttonsound();
gotoAndStop (30);
}
Symbol 118 Button
on (release) {
changed = true;
currentcourse = 2;
_root.sound.buttonsound();
gotoAndStop (31);
}
Symbol 119 Button
on (release) {
changed = true;
currentcourse = 3;
_root.sound.buttonsound();
gotoAndStop (32);
}
Symbol 120 MovieClip Frame 1
currentcourse = 1;
Symbol 120 MovieClip Frame 30
stop();
Symbol 120 MovieClip Frame 31
stop();
Symbol 120 MovieClip Frame 32
stop();
Symbol 127 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 127 MovieClip Frame 25
stop();
_root.tempname_a_1 = _root.name_a_1;
_root.tempname_a_2 = _root.name_a_2;
_root.tempname_a_3 = _root.name_a_3;
_root.tempscore_a_1 = _root.score_a_1;
_root.tempscore_a_2 = _root.score_a_2;
_root.tempscore_a_3 = _root.score_a_3;
Instance of Symbol 120 MovieClip in Symbol 127 MovieClip Frame 25
onClipEvent (load) {
changed = false;
currentcourse = 1;
}
onClipEvent (enterFrame) {
if (changed == true) {
if (currentcourse == 1) {
changed = false;
_root.tempname_a_1 = _root.name_a_1;
_root.tempname_a_2 = _root.name_a_2;
_root.tempname_a_3 = _root.name_a_3;
_root.tempscore_a_1 = _root.score_a_1;
_root.tempscore_a_2 = _root.score_a_2;
_root.tempscore_a_3 = _root.score_a_3;
}
if (currentcourse == 2) {
changed = false;
_root.tempname_a_1 = _root.name_b_1;
_root.tempname_a_2 = _root.name_b_2;
_root.tempname_a_3 = _root.name_b_3;
_root.tempscore_a_1 = _root.score_b_1;
_root.tempscore_a_2 = _root.score_b_2;
_root.tempscore_a_3 = _root.score_b_3;
}
if (currentcourse == 3) {
changed = false;
_root.tempname_a_1 = _root.name_c_1;
_root.tempname_a_2 = _root.name_c_2;
_root.tempname_a_3 = _root.name_c_3;
_root.tempscore_a_1 = _root.score_c_1;
_root.tempscore_a_2 = _root.score_c_2;
_root.tempscore_a_3 = _root.score_c_3;
}
}
}
Symbol 127 MovieClip Frame 26
stop();
Symbol 129 MovieClip Frame 1
stop();
Symbol 150 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 150 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];
trace("now");
trace(_root.course_1_scores);
Instance of Symbol 120 MovieClip in Symbol 150 MovieClip Frame 25
onClipEvent (load) {
changed = false;
currentcourse = 1;
}
onClipEvent (enterFrame) {
if (changed == true) {
if (currentcourse == 1) {
changed = false;
trace("changed");
_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;
trace("changed");
_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;
trace("changed");
_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];
}
}
}
Symbol 151 MovieClip Frame 1
stop();
Instance of Symbol 106 MovieClip "scoreSelect" in Symbol 151 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 85 MovieClip in Symbol 151 MovieClip Frame 1
onClipEvent (load) {
n = 5;
}
onClipEvent (enterFrame) {
if (this._x > -350) {
this._x = this._x - n;
n = n + 2;
}
}
Instance of Symbol 86 MovieClip in Symbol 151 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._alpha > 40) {
this._alpha = this._alpha - 5;
}
}
Symbol 151 MovieClip Frame 2
stop();
Symbol 153 MovieClip Frame 15
gotoAndPlay (1);
Symbol 154 MovieClip Frame 1
stop();
Instance of Symbol 25 MovieClip "preloader" in Symbol 154 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root._framesloaded > 220) {
_parent.gotoAndStop(2);
}
}
Symbol 154 MovieClip Frame 2
stop();
Instance of Symbol 153 MovieClip in Symbol 154 MovieClip Frame 2
onClipEvent (load) {
Mouse.addListener(trigger);
}
onClipEvent (enterFrame) {
this.onMouseUp = function () {
_root.myTargetFrame = 120;
};
}
Symbol 160 MovieClip Frame 1
stop();
Instance of Symbol 25 MovieClip "preloader" in Symbol 160 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root._framesloaded > 349) {
_parent.gotoAndStop(2);
}
}
Symbol 160 MovieClip Frame 2
stop();
Instance of Symbol 153 MovieClip in Symbol 160 MovieClip Frame 2
onClipEvent (load) {
Mouse.addListener(trigger);
}
onClipEvent (enterFrame) {
this.onMouseUp = function () {
_root.myTargetFrame = 250;
};
}
Symbol 168 MovieClip Frame 1
stop();
Symbol 168 MovieClip Frame 2
stop();
Instance of Symbol 153 MovieClip in Symbol 168 MovieClip Frame 2
onClipEvent (load) {
Mouse.addListener(trigger);
}
onClipEvent (enterFrame) {
this.onMouseUp = function () {
_root.myTargetFrame = 10;
};
}
Instance of Symbol 181 MovieClip "numbers" in Symbol 183 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 185 Button
on (press) {
_parent._parent.eggstatus = "firing";
}
Instance of Symbol 189 MovieClip in Symbol 191 MovieClip Frame 1
onClipEvent (load) {
if (_root._currentFrame > 115) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 192 MovieClip Frame 1
stop();
Instance of Symbol 191 MovieClip "eggbodygraphic" in Symbol 192 MovieClip Frame 1
onClipEvent (load) {
if (_root._currentFrame > 240) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 192 MovieClip Frame 2
stop();
Instance of Symbol 191 MovieClip "eggbodygraphic" in Symbol 192 MovieClip Frame 2
onClipEvent (load) {
if (_root._currentFrame > 240) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 197 MovieClip Frame 1
stop();
Instance of Symbol 196 MovieClip in Symbol 197 MovieClip Frame 1
onClipEvent (load) {
if (_root._currentFrame > 240) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 197 MovieClip Frame 2
stop();
Symbol 198 MovieClip Frame 1
trace("start");
Instance of Symbol 192 MovieClip "body" in Symbol 198 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 198 MovieClip Frame 40
_root.myTargetFrame = _root._currentFrame + 10;
Symbol 199 MovieClip Frame 1
stop();
Instance of Symbol 186 MovieClip "trigger" in Symbol 199 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 192 MovieClip "body" in Symbol 199 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 199 MovieClip Frame 2
stop();
Symbol 204 MovieClip Frame 15
gotoAndPlay (1);
Symbol 205 MovieClip Frame 1
stop();
Symbol 205 MovieClip Frame 2
stop();
Instance of Symbol 201 MovieClip "mask" in Symbol 205 MovieClip Frame 2
onClipEvent (enterFrame) {
this._width = _parent._parent.power * 12;
if (this._width > 80) {
this._width = 80;
}
}
Symbol 208 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 208 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 269 MovieClip Frame 29
gotoAndPlay (1);
Symbol 270 MovieClip Frame 1
stop();
this.ready = true;
Symbol 270 MovieClip Frame 2
this.ready = false;
_root.sound.gottwig();
Symbol 270 MovieClip Frame 40
stop();
_parent.ladder.gotoAndPlay(2);
Symbol 275 MovieClip Frame 1
stop();
Symbol 275 MovieClip Frame 2
stop();
Symbol 276 MovieClip Frame 1
stop();
ready = false;
Instance of Symbol 275 MovieClip in Symbol 276 MovieClip Frame 1
onClipEvent (load) {
if (_root._currentFrame > 240) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 276 MovieClip Frame 2
ready = true;
Symbol 276 MovieClip Frame 30
stop();
ready = true;
Instance of Symbol 192 MovieClip "body" in Symbol 284 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 284 MovieClip Frame 30
stop();
_parent._parent._parent.gotoAndPlay(20);
Symbol 285 MovieClip Frame 30
stop();
_parent._parent.gotoAndPlay(1);
Symbol 286 MovieClip Frame 1
stop();
launchsound = new Sound();
launchsound.attachSound("boing_even_shorter.wav");
launchsound.start();
Instance of Symbol 192 MovieClip "body" in Symbol 286 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 286 MovieClip Frame 2
stop();
Instance of Symbol 285 MovieClip "eggup" in Symbol 286 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 286 MovieClip Frame 3
stop();
Symbol 287 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 199 MovieClip "mainegg" in Symbol 287 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 205 MovieClip "comp" in Symbol 287 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 206 MovieClip "clip" in Symbol 287 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 208 MovieClip "platform1" in Symbol 287 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 210 MovieClip "platform1" in Symbol 287 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 208 MovieClip "platform1" in Symbol 287 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 208 MovieClip "platform1" in Symbol 287 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 208 MovieClip "platform1" in Symbol 287 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 270 MovieClip "twig" in Symbol 287 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 287 MovieClip Frame 2
stop();
Instance of Symbol 286 MovieClip "spinningegg" in Symbol 287 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 291 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 199 MovieClip "mainegg" in Symbol 291 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 205 MovieClip "comp" in Symbol 291 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 206 MovieClip "clip" in Symbol 291 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 208 MovieClip "platform1" in Symbol 291 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 210 MovieClip "platform1" in Symbol 291 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 208 MovieClip "platform1" in Symbol 291 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 208 MovieClip "platform1" in Symbol 291 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 208 MovieClip "platform1" in Symbol 291 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 208 MovieClip "platform1" in Symbol 291 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 270 MovieClip "twig" in Symbol 291 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 291 MovieClip Frame 2
stop();
Instance of Symbol 286 MovieClip "spinningegg" in Symbol 291 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 295 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 199 MovieClip "mainegg" in Symbol 295 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 205 MovieClip "comp" in Symbol 295 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 206 MovieClip "clip" in Symbol 295 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 210 MovieClip "platform1" in Symbol 295 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 208 MovieClip "platform1" in Symbol 295 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 208 MovieClip "platform1" in Symbol 295 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 208 MovieClip "platform1" in Symbol 295 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 208 MovieClip "platform1" in Symbol 295 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 208 MovieClip "platform1" in Symbol 295 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 270 MovieClip "twig" in Symbol 295 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 295 MovieClip Frame 2
stop();
Instance of Symbol 286 MovieClip "spinningegg" in Symbol 295 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 298 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 199 MovieClip "mainegg" in Symbol 298 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 205 MovieClip "comp" in Symbol 298 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 206 MovieClip "clip" in Symbol 298 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 210 MovieClip "platform1" in Symbol 298 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 208 MovieClip "platform1" in Symbol 298 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 208 MovieClip "platform1" in Symbol 298 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 208 MovieClip "platform1" in Symbol 298 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 208 MovieClip "platform1" in Symbol 298 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 208 MovieClip "platform1" in Symbol 298 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 270 MovieClip "twig" in Symbol 298 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 298 MovieClip Frame 2
stop();
Instance of Symbol 286 MovieClip "spinningegg" in Symbol 298 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 301 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 199 MovieClip "mainegg" in Symbol 301 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 205 MovieClip "comp" in Symbol 301 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 206 MovieClip "clip" in Symbol 301 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 210 MovieClip "platform1" in Symbol 301 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 208 MovieClip "platform1" in Symbol 301 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 208 MovieClip "platform1" in Symbol 301 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 208 MovieClip "platform1" in Symbol 301 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 208 MovieClip "platform1" in Symbol 301 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 270 MovieClip "twig" in Symbol 301 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 301 MovieClip Frame 2
stop();
Instance of Symbol 286 MovieClip "spinningegg" in Symbol 301 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 305 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 199 MovieClip "mainegg" in Symbol 305 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 205 MovieClip "comp" in Symbol 305 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 206 MovieClip "clip" in Symbol 305 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 210 MovieClip "platform1" in Symbol 305 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 208 MovieClip "platform1" in Symbol 305 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 208 MovieClip "platform1" in Symbol 305 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 208 MovieClip "platform1" in Symbol 305 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 208 MovieClip "platform1" in Symbol 305 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 208 MovieClip "platform1" in Symbol 305 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 270 MovieClip "twig" in Symbol 305 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 305 MovieClip Frame 2
stop();
Instance of Symbol 286 MovieClip "spinningegg" in Symbol 305 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 308 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 199 MovieClip "mainegg" in Symbol 308 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 205 MovieClip "comp" in Symbol 308 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 206 MovieClip "clip" in Symbol 308 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 210 MovieClip "platform1" in Symbol 308 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 208 MovieClip "platform1" in Symbol 308 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 208 MovieClip "platform1" in Symbol 308 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 208 MovieClip "platform1" in Symbol 308 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 208 MovieClip "platform1" in Symbol 308 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 208 MovieClip "platform1" in Symbol 308 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 270 MovieClip "twig" in Symbol 308 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 308 MovieClip Frame 2
stop();
Instance of Symbol 286 MovieClip "spinningegg" in Symbol 308 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 311 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 199 MovieClip "mainegg" in Symbol 311 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 205 MovieClip "comp" in Symbol 311 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 206 MovieClip "clip" in Symbol 311 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 210 MovieClip "platform1" in Symbol 311 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 208 MovieClip "platform1" in Symbol 311 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 208 MovieClip "platform1" in Symbol 311 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 208 MovieClip "platform1" in Symbol 311 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 208 MovieClip "platform1" in Symbol 311 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 208 MovieClip "platform1" in Symbol 311 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 208 MovieClip "platform1" in Symbol 311 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 270 MovieClip "twig" in Symbol 311 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 311 MovieClip Frame 2
stop();
Instance of Symbol 286 MovieClip "spinningegg" in Symbol 311 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 314 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 199 MovieClip "mainegg" in Symbol 314 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 205 MovieClip "comp" in Symbol 314 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 206 MovieClip "clip" in Symbol 314 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 210 MovieClip "platform1" in Symbol 314 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 210 MovieClip "platform1" in Symbol 314 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 208 MovieClip "platform1" in Symbol 314 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 208 MovieClip "platform1" in Symbol 314 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 208 MovieClip "platform1" in Symbol 314 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 208 MovieClip "platform1" in Symbol 314 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 270 MovieClip "twig" in Symbol 314 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 314 MovieClip Frame 2
stop();
Instance of Symbol 286 MovieClip "spinningegg" in Symbol 314 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 317 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 199 MovieClip "mainegg" in Symbol 317 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 205 MovieClip "comp" in Symbol 317 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 206 MovieClip "clip" in Symbol 317 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 210 MovieClip "platform1" in Symbol 317 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 208 MovieClip "platform1" in Symbol 317 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 208 MovieClip "platform1" in Symbol 317 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 208 MovieClip "platform1" in Symbol 317 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 270 MovieClip "twig" in Symbol 317 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 317 MovieClip Frame 2
stop();
Instance of Symbol 286 MovieClip "spinningegg" in Symbol 317 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 318 MovieClip Frame 1
play();
Symbol 318 MovieClip Frame 90
_root.nextFrame();
Symbol 324 Button
on (release) {
done = false;
_root.sound.buttonsound();
if (_root.playername == "") {
_root.playername = "egg";
}
if (_root.w1 < _root.score_a_1) {
_root.myLocalSO.data.name_a_3 = _root.myLocalSO.data.name_a_2;
_root.myLocalSO.data.name_a_2 = _root.myLocalSO.data.name_a_1;
_root.myLocalSO.data.name_a_1 = _root.playername;
_root.myLocalSO.data.score_a_3 = _root.myLocalSO.data.score_a_2;
_root.myLocalSO.data.score_a_2 = _root.myLocalSO.data.score_a_1;
_root.myLocalSO.data.score_a_1 = _root.w1;
done = true;
}
if (done == false) {
if (_root.w1 < _root.score_a_2) {
_root.myLocalSO.data.name_a_3 = _root.myLocalSO.data.name_a_2;
_root.myLocalSO.data.name_a_2 = _root.playername;
_root.myLocalSO.data.score_a_3 = _root.myLocalSO.data.score_a_2;
_root.myLocalSO.data.score_a_2 = _root.w1;
} else {
_root.myLocalSO.data.name_a_3 = _root.playername;
_root.myLocalSO.data.score_a_3 = _root.w1;
}
}
var d = new LoadVars();
d.onLoad = function () {
trace("loaded ok");
_root.$hiscores1 = this.$hiscores;
trace("vars = " + this.$hiscores);
_root.nextFrame();
};
c = 0;
n = _root.playername;
i = 0;
while (i < n.length) {
c = c + n.charCodeAt(i);
i++;
}
c = c + _root.w1;
trace(c);
d.load((((("../hiscore_eggrun.php?name=" + _root.playername) + "&score=") + _root.w1) + "&email=x&slice=10&england=1&chart=1&c=") + c);
_root.myTargetFrame = _root.myTargetFrame + 1;
}
Symbol 326 MovieClip Frame 1
stop();
Symbol 326 MovieClip Frame 2
stop();
Symbol 340 MovieClip Frame 20
gotoAndPlay (1);
Symbol 341 MovieClip Frame 15
gotoAndPlay (1);
Symbol 342 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 342 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 350 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 199 MovieClip "mainegg" in Symbol 350 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 205 MovieClip "comp" in Symbol 350 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 206 MovieClip "clip" in Symbol 350 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 208 MovieClip "platform1" in Symbol 350 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 342 MovieClip "platform1" in Symbol 350 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 208 MovieClip "platform1" in Symbol 350 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 210 MovieClip "platform1" in Symbol 350 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 208 MovieClip "platform1" in Symbol 350 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 270 MovieClip "twig" in Symbol 350 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 350 MovieClip Frame 2
stop();
Instance of Symbol 286 MovieClip "spinningegg" in Symbol 350 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 355 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 199 MovieClip "mainegg" in Symbol 355 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 205 MovieClip "comp" in Symbol 355 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 206 MovieClip "clip" in Symbol 355 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 342 MovieClip "platform1" in Symbol 355 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 342 MovieClip "platform1" in Symbol 355 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 208 MovieClip "platform1" in Symbol 355 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 210 MovieClip "platform1" in Symbol 355 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 208 MovieClip "platform1" in Symbol 355 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 270 MovieClip "twig" in Symbol 355 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 355 MovieClip Frame 2
stop();
Instance of Symbol 286 MovieClip "spinningegg" in Symbol 355 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 358 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 199 MovieClip "mainegg" in Symbol 358 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 205 MovieClip "comp" in Symbol 358 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 206 MovieClip "clip" in Symbol 358 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 208 MovieClip "platform1" in Symbol 358 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 208 MovieClip "platform1" in Symbol 358 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 210 MovieClip "platform1" in Symbol 358 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 208 MovieClip "platform1" in Symbol 358 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 270 MovieClip "twig" in Symbol 358 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 358 MovieClip Frame 2
stop();
Instance of Symbol 286 MovieClip "spinningegg" in Symbol 358 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 362 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 199 MovieClip "mainegg" in Symbol 362 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 205 MovieClip "comp" in Symbol 362 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 206 MovieClip "clip" in Symbol 362 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 208 MovieClip "platform1" in Symbol 362 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 208 MovieClip "platform1" in Symbol 362 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 210 MovieClip "platform1" in Symbol 362 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 208 MovieClip "platform1" in Symbol 362 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 270 MovieClip "twig" in Symbol 362 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 362 MovieClip Frame 2
stop();
Instance of Symbol 286 MovieClip "spinningegg" in Symbol 362 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 366 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 199 MovieClip "mainegg" in Symbol 366 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 205 MovieClip "comp" in Symbol 366 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 206 MovieClip "clip" in Symbol 366 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 342 MovieClip "platform1" in Symbol 366 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 208 MovieClip "platform1" in Symbol 366 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 208 MovieClip "platform1" in Symbol 366 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 210 MovieClip "platform1" in Symbol 366 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 208 MovieClip "platform1" in Symbol 366 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 270 MovieClip "twig" in Symbol 366 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 366 MovieClip Frame 2
stop();
Instance of Symbol 286 MovieClip "spinningegg" in Symbol 366 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 367 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 199 MovieClip "mainegg" in Symbol 367 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 205 MovieClip "comp" in Symbol 367 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 206 MovieClip "clip" in Symbol 367 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 342 MovieClip "platform1" in Symbol 367 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 208 MovieClip "platform1" in Symbol 367 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 210 MovieClip "platform1" in Symbol 367 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 208 MovieClip "platform1" in Symbol 367 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 270 MovieClip "twig" in Symbol 367 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 367 MovieClip Frame 2
stop();
Instance of Symbol 286 MovieClip "spinningegg" in Symbol 367 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 368 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 199 MovieClip "mainegg" in Symbol 368 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 205 MovieClip "comp" in Symbol 368 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 206 MovieClip "clip" in Symbol 368 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 208 MovieClip "platform1" in Symbol 368 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 208 MovieClip "platform1" in Symbol 368 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 210 MovieClip "platform1" in Symbol 368 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 208 MovieClip "platform1" in Symbol 368 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 270 MovieClip "twig" in Symbol 368 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 368 MovieClip Frame 2
stop();
Instance of Symbol 286 MovieClip "spinningegg" in Symbol 368 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 371 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 199 MovieClip "mainegg" in Symbol 371 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 205 MovieClip "comp" in Symbol 371 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 206 MovieClip "clip" in Symbol 371 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 208 MovieClip "platform1" in Symbol 371 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 208 MovieClip "platform1" in Symbol 371 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 208 MovieClip "platform1" in Symbol 371 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 210 MovieClip "platform1" in Symbol 371 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 208 MovieClip "platform1" in Symbol 371 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 270 MovieClip "twig" in Symbol 371 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 371 MovieClip Frame 2
stop();
Instance of Symbol 286 MovieClip "spinningegg" in Symbol 371 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 372 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 199 MovieClip "mainegg" in Symbol 372 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 205 MovieClip "comp" in Symbol 372 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 206 MovieClip "clip" in Symbol 372 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 342 MovieClip "platform1" in Symbol 372 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 342 MovieClip "platform1" in Symbol 372 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 208 MovieClip "platform1" in Symbol 372 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 210 MovieClip "platform1" in Symbol 372 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 208 MovieClip "platform1" in Symbol 372 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 270 MovieClip "twig" in Symbol 372 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 372 MovieClip Frame 2
stop();
Instance of Symbol 286 MovieClip "spinningegg" in Symbol 372 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 374 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 199 MovieClip "mainegg" in Symbol 374 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 205 MovieClip "comp" in Symbol 374 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 206 MovieClip "clip" in Symbol 374 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 342 MovieClip "platform1" in Symbol 374 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 208 MovieClip "platform1" in Symbol 374 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 208 MovieClip "platform1" in Symbol 374 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 210 MovieClip "platform1" in Symbol 374 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 208 MovieClip "platform1" in Symbol 374 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 270 MovieClip "twig" in Symbol 374 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 374 MovieClip Frame 2
stop();
Instance of Symbol 286 MovieClip "spinningegg" in Symbol 374 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 375 Button
on (release) {
done = false;
_root.sound.buttonsound();
if (_root.playername == "") {
_root.playername = "egg";
}
if (_root.w1 < _root.score_b_1) {
_root.myLocalSO.data.name_b_3 = _root.myLocalSO.data.name_b_2;
_root.myLocalSO.data.name_b_2 = _root.myLocalSO.data.name_b_1;
_root.myLocalSO.data.name_b_1 = _root.playername;
_root.myLocalSO.data.score_b_3 = _root.myLocalSO.data.score_b_2;
_root.myLocalSO.data.score_b_2 = _root.myLocalSO.data.score_b_1;
_root.myLocalSO.data.score_b_1 = _root.w1;
done = true;
}
if (done == false) {
if (_root.w1 < _root.score_b_2) {
_root.myLocalSO.data.name_b_3 = _root.myLocalSO.data.name_b_2;
_root.myLocalSO.data.name_b_2 = _root.playername;
_root.myLocalSO.data.score_b_3 = _root.myLocalSO.data.score_b_2;
_root.myLocalSO.data.score_b_2 = _root.w1;
} else {
_root.myLocalSO.data.name_b_3 = _root.playername;
_root.myLocalSO.data.score_b_3 = _root.w1;
}
}
var d = new LoadVars();
d.onLoad = function () {
trace("loaded ok");
_root.$hiscores1 = this.$hiscores;
trace("vars = " + this.$hiscores);
_root.nextFrame();
};
c = 0;
n = _root.playername;
i = 0;
while (i < n.length) {
c = c + n.charCodeAt(i);
i++;
}
c = c + _root.w1;
trace(c);
d.load((((("../hiscore_eggrun.php?name=" + _root.playername) + "&score=") + _root.w1) + "&email=x&slice=10&england=1&chart=2&c=") + c);
_root.myTargetFrame = _root.currentframe + 1;
}
Symbol 377 MovieClip Frame 1
stop();
Symbol 377 MovieClip Frame 2
stop();
Symbol 385 MovieClip Frame 73
gotoAndPlay (1);
Symbol 388 MovieClip Frame 1
stop();
Symbol 388 MovieClip Frame 2
stop();
Symbol 392 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 392 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 389 MovieClip "code" in Symbol 393 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 397 MovieClip Frame 1
stop();
Instance of Symbol 388 MovieClip "satellite_2" in Symbol 397 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 398 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 199 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 205 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 206 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 208 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 208 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 208 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 210 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 270 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 286 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 399 MovieClip Frame 40
stop();
Symbol 404 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 199 MovieClip "mainegg" in Symbol 404 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 205 MovieClip "comp" in Symbol 404 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 206 MovieClip "clip" in Symbol 404 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 208 MovieClip "platform1" in Symbol 404 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 208 MovieClip "platform1" in Symbol 404 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 208 MovieClip "platform1" in Symbol 404 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 208 MovieClip "platform1" in Symbol 404 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 208 MovieClip "platform1" in Symbol 404 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 208 MovieClip "platform1" in Symbol 404 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 210 MovieClip "platform1" in Symbol 404 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 270 MovieClip "twig" in Symbol 404 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 404 MovieClip Frame 2
stop();
Instance of Symbol 286 MovieClip "spinningegg" in Symbol 404 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 405 MovieClip Frame 40
stop();
Symbol 409 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 199 MovieClip "mainegg" in Symbol 409 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 205 MovieClip "comp" in Symbol 409 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 206 MovieClip "clip" in Symbol 409 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 208 MovieClip "platform1" in Symbol 409 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 208 MovieClip "platform1" in Symbol 409 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 208 MovieClip "platform1" in Symbol 409 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 208 MovieClip "platform1" in Symbol 409 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 208 MovieClip "platform1" in Symbol 409 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 210 MovieClip "platform1" in Symbol 409 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 270 MovieClip "twig" in Symbol 409 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 409 MovieClip Frame 2
stop();
Instance of Symbol 286 MovieClip "spinningegg" in Symbol 409 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 410 MovieClip Frame 40
stop();
Symbol 413 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 199 MovieClip "mainegg" in Symbol 413 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 205 MovieClip "comp" in Symbol 413 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 206 MovieClip "clip" in Symbol 413 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 208 MovieClip "platform1" in Symbol 413 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 208 MovieClip "platform1" in Symbol 413 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 208 MovieClip "platform1" in Symbol 413 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 208 MovieClip "platform1" in Symbol 413 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 210 MovieClip "platform1" in Symbol 413 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 270 MovieClip "twig" in Symbol 413 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 208 MovieClip "platform1" in Symbol 413 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 208 MovieClip "platform1" in Symbol 413 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 413 MovieClip Frame 2
stop();
Instance of Symbol 286 MovieClip "spinningegg" in Symbol 413 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 414 MovieClip Frame 40
stop();
Symbol 418 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 199 MovieClip "mainegg" in Symbol 418 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 205 MovieClip "comp" in Symbol 418 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 206 MovieClip "clip" in Symbol 418 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 208 MovieClip "platform1" in Symbol 418 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 208 MovieClip "platform1" in Symbol 418 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 208 MovieClip "platform1" in Symbol 418 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 208 MovieClip "platform1" in Symbol 418 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 208 MovieClip "platform1" in Symbol 418 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 210 MovieClip "platform1" in Symbol 418 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 270 MovieClip "twig" in Symbol 418 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 418 MovieClip Frame 2
stop();
Instance of Symbol 286 MovieClip "spinningegg" in Symbol 418 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 422 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 199 MovieClip "mainegg" in Symbol 422 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 205 MovieClip "comp" in Symbol 422 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 206 MovieClip "clip" in Symbol 422 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 208 MovieClip "platform1" in Symbol 422 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 208 MovieClip "platform1" in Symbol 422 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 208 MovieClip "platform1" in Symbol 422 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 208 MovieClip "platform1" in Symbol 422 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 208 MovieClip "platform1" in Symbol 422 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 210 MovieClip "platform1" in Symbol 422 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 270 MovieClip "twig" in Symbol 422 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 208 MovieClip "platform1" in Symbol 422 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 422 MovieClip Frame 2
stop();
Instance of Symbol 286 MovieClip "spinningegg" in Symbol 422 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 424 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 199 MovieClip "mainegg" in Symbol 424 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 205 MovieClip "comp" in Symbol 424 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 206 MovieClip "clip" in Symbol 424 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 208 MovieClip "platform1" in Symbol 424 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 208 MovieClip "platform1" in Symbol 424 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 208 MovieClip "platform1" in Symbol 424 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 210 MovieClip "platform1" in Symbol 424 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 270 MovieClip "twig" in Symbol 424 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 424 MovieClip Frame 2
stop();
Instance of Symbol 286 MovieClip "spinningegg" in Symbol 424 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 426 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 199 MovieClip "mainegg" in Symbol 426 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 205 MovieClip "comp" in Symbol 426 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 206 MovieClip "clip" in Symbol 426 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 208 MovieClip "platform1" in Symbol 426 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 208 MovieClip "platform1" in Symbol 426 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 208 MovieClip "platform1" in Symbol 426 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 208 MovieClip "platform1" in Symbol 426 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 210 MovieClip "platform1" in Symbol 426 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 208 MovieClip "platform1" in Symbol 426 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 270 MovieClip "twig" in Symbol 426 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 426 MovieClip Frame 2
stop();
Instance of Symbol 286 MovieClip "spinningegg" in Symbol 426 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 428 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 199 MovieClip "mainegg" in Symbol 428 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 205 MovieClip "comp" in Symbol 428 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 206 MovieClip "clip" in Symbol 428 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 208 MovieClip "platform1" in Symbol 428 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 208 MovieClip "platform1" in Symbol 428 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 208 MovieClip "platform1" in Symbol 428 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 208 MovieClip "platform1" in Symbol 428 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 210 MovieClip "platform1" in Symbol 428 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 270 MovieClip "twig" in Symbol 428 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 428 MovieClip Frame 2
stop();
Instance of Symbol 286 MovieClip "spinningegg" in Symbol 428 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 429 MovieClip Frame 40
stop();
Symbol 431 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 199 MovieClip "mainegg" in Symbol 431 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 205 MovieClip "comp" in Symbol 431 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 206 MovieClip "clip" in Symbol 431 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 208 MovieClip "platform1" in Symbol 431 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 208 MovieClip "platform1" in Symbol 431 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 208 MovieClip "platform1" in Symbol 431 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 210 MovieClip "platform1" in Symbol 431 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 270 MovieClip "twig" in Symbol 431 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 431 MovieClip Frame 2
stop();
Instance of Symbol 286 MovieClip "spinningegg" in Symbol 431 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 432 Button
on (release) {
done = false;
_root.sound.buttonsound();
if (_root.playername == "") {
_root.playername = "egg";
}
if (_root.w1 < _root.score_c_1) {
_root.myLocalSO.data.name_c_3 = _root.myLocalSO.data.name_c_2;
_root.myLocalSO.data.name_c_2 = _root.myLocalSO.data.name_c_1;
_root.myLocalSO.data.name_c_1 = _root.playername;
_root.myLocalSO.data.score_c_3 = _root.myLocalSO.data.score_c_2;
_root.myLocalSO.data.score_c_2 = _root.myLocalSO.data.score_c_1;
_root.myLocalSO.data.score_c_1 = _root.w1;
done = true;
}
if (done == false) {
if (_root.w1 < _root.score_c_2) {
_root.myLocalSO.data.name_c_3 = _root.myLocalSO.data.name_c_2;
_root.myLocalSO.data.name_c_2 = _root.playername;
_root.myLocalSO.data.score_c_3 = _root.myLocalSO.data.score_c_2;
_root.myLocalSO.data.score_c_2 = _root.w1;
} else {
_root.myLocalSO.data.name_c_3 = _root.playername;
_root.myLocalSO.data.score_c_3 = _root.w1;
}
}
var d = new LoadVars();
d.onLoad = function () {
trace("loaded ok");
_root.$hiscores1 = this.$hiscores;
trace("vars = " + this.$hiscores);
_root.nextFrame();
};
c = 0;
n = _root.playername;
i = 0;
while (i < n.length) {
c = c + n.charCodeAt(i);
i++;
}
c = c + _root.w1;
trace(c);
d.load((((("../hiscore_eggrun.php?name=" + _root.playername) + "&score=") + _root.w1) + "&email=x&slice=10&england=1&chart=3&c=") + c);
_root.myTargetFrame = _root.currentframe + 1;
}
Symbol 434 MovieClip Frame 1
stop();
Symbol 434 MovieClip Frame 2
stop();