Frame 1
function gotoMySite() {
getURL ("http://www.fingertime.com", "_top");
}
_root.newLoad = 0;
var myMenu:ContextMenu = new ContextMenu();
myMenu.hideBuiltInItems();
var siteLink:ContextMenuItem = new ContextMenuItem("\u00A9 Fingertime.com", gotoMySite);
var moreGames:ContextMenuItem = new ContextMenuItem("Play more free games...", gotoMySite);
myMenu.customItems.push(siteLink, moreGames);
_root.menu = myMenu;
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 91 MovieClip [ftloader] in Frame 1
//component parameters
onClipEvent (construct) {
pUseLoader = true;
pVersion = true;
pMajor = 8;
pMinor = 0;
pSecurity = false;
pServer = "fingertime";
pURL = "http://www.fingertime.com/eggrun2onice.php";
pLabel = "intro";
pAdvert = true;
}
Instance of Symbol 97 MovieClip "preloader" in Frame 1
onClipEvent (enterFrame) {
if (_root._framesloaded > 8) {
}
}
Frame 2
play_btn.onRelease = function () {
this._parent.play();
};
highscore_btn.onRelease = function () {
getURL ("http://www.fingertime.com/eggrun2.php", "_blank");
};
stop();
Instance of Symbol 111 MovieClip in Frame 2
//component parameters
onClipEvent (construct) {
pT = "button on / sub-header on";
pU = "http://www.fingertime.com";
pB = "_blank";
}
Instance of Symbol 16 MovieClip [mc.soundclip] "musicswitch" in Frame 2
onClipEvent (enterFrame) {
}
onClipEvent (load) {
}
Instance of Symbol 113 MovieClip "storage" in Frame 2
/* no clip actions */
Instance of Symbol 114 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");
}
}
function stopsound() {
trace("function ok");
}
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");
}
onClipEvent (enterFrame) {
}
Frame 3
ok_mc.onRelease = function () {
this._parent.gotoAndPlay("game");
};
stop();
Frame 10
_root.playername = "";
stop();
Instance of Symbol 234 MovieClip "egg" in Frame 10
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 11
stop();
Instance of Symbol 242 MovieClip "egg" in Frame 11
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 12
stop();
Instance of Symbol 246 MovieClip "egg" in Frame 12
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 13
stop();
Instance of Symbol 250 MovieClip "egg" in Frame 13
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 14
stop();
Instance of Symbol 252 MovieClip "egg" in Frame 14
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 15
stop();
Instance of Symbol 254 MovieClip "egg" in Frame 15
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 16
stop();
Instance of Symbol 256 MovieClip "egg" in Frame 16
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 17
stop();
Instance of Symbol 260 MovieClip "egg" in Frame 17
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 18
stop();
Instance of Symbol 263 MovieClip "egg" in Frame 18
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 19
stop();
Instance of Symbol 266 MovieClip "egg" in Frame 19
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 20
stop();
Instance of Symbol 269 MovieClip "egg" in Frame 20
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 21
stop();
Instance of Symbol 273 MovieClip "egg" in Frame 21
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 22
stop();
Instance of Symbol 275 MovieClip "egg" in Frame 22
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 23
stop();
Instance of Symbol 277 MovieClip "egg" in Frame 23
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 24
stop();
Instance of Symbol 280 MovieClip "egg" in Frame 24
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 25
stop();
Instance of Symbol 282 MovieClip "egg" in Frame 25
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 26
stop();
Instance of Symbol 284 MovieClip "egg" in Frame 26
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 27
stop();
Instance of Symbol 286 MovieClip "egg" in Frame 27
onClipEvent (load) {
new_x = mainegg._x;
new_y = mainegg._y;
this.complete = false;
}
Frame 28
highscore_btn.onRelease = function () {
getURL ("http://www.fingertime.com/eggrun2.php", "_blank");
};
ice_btn.onRelease = function () {
getURL ("http://www.fingertime.com/eggrun2onice.php", "_blank");
};
space_btn.onRelease = function () {
getURL ("http://www.fingertime.com/eggrun2inspace.php", "_blank");
};
stop();
Frame 31
stop();
Symbol 13 MovieClip Frame 1
this._alpha = 0;
this._parent.hitArea = this;
stop();
Symbol 16 MovieClip [mc.soundclip] Frame 1
function setVol(x) {
pLoop.setVolume(x * 100);
}
function playsound(snd) {
eval (snd).start();
}
function onRelease() {
if (pVol == 100) {
pVol = 0;
this.setVol(0);
gotoAndStop (3);
} else {
pVol = 100;
this.setVol(1);
gotoAndStop (2);
}
}
var pVol = 100;
var pLoop = new Sound(this);
pLoop.attachSound("grassperfectloop.wav");
this.playloop = function (tx) {
if (tx == 1) {
pLoop.start(0, 9999);
} else {
pLoop.stop();
}
};
this.setVol(1);
this.playloop(1);
stop();
Symbol 16 MovieClip [mc.soundclip] Frame 4
stop();
Symbol 39 Button
on (release) {
getURL ("http://www.fingertime.com", "_blank");
}
Symbol 40 MovieClip Frame 1
gotoAndPlay (2);
Symbol 40 MovieClip Frame 127
this._parent.logoDone();
stop();
Symbol 56 MovieClip Frame 1
this.resizePanel = function (x, y) {
var _local2 = x / 2;
this.panelTL_mc._x = -_local2;
this.panelTR_mc._x = _local2 - 20;
this.panelBL_mc._x = -_local2;
this.panelBR_mc._x = _local2 - 20;
this.panelTM_mc._width = x - 40;
this.panelBM_mc._width = x - 40;
this.panelTM_mc._x = (-_local2) + 20;
this.panelBM_mc._x = (-_local2) + 20;
this.panelBL_mc._y = y - 45;
this.panelBM_mc._y = y - 45;
this.panelBR_mc._y = y - 45;
this.panelBg_mc._x = -_local2;
this.panelBg_mc._y = 59;
this.panelBg_mc._width = x;
this.panelBg_mc._height = y - 104;
};
stop();
Symbol 71 MovieClip Frame 1
this.init = function () {
this.pTotal = _root.getBytesTotal();
this.pUnit = 100 / this.pTotal;
this.pFrame = 0;
this.pAdCheck = true;
this.onEnterFrame = this.animate;
};
this.animate = function () {
this.pFrame = Math.floor(this.pUnit * _root.getBytesLoaded());
this.gotoAndStop(this.pFrame + 1);
this.loading_txt.text = ("LOADING... " + String(this._currentframe - 1)) + "%";
if (this.pFrame >= 100) {
if (this._parent._parent.AdForDisplay()) {
this.loading_txt.text = "START GAME.";
this.onPress = function () {
delete this.onPress;
delete this.onEnterFrame;
this._parent._parent.exitLoader();
};
} else {
this.loading_txt.text = "LOADED.";
}
this.gotoAndStop(102);
delete this.onEnterFrame;
this.onEnterFrame = this.pause;
}
if (this.pAdCheck) {
if (this._parent._parent.AdForDisplay()) {
if (this._parent._parent.AdReady()) {
this._parent.openForAd();
this.pAdCheck = false;
}
} else {
this.pAdCheck = false;
}
}
};
this.pause = function () {
this.pFrame = this.pFrame - 3;
if (this.pFrame <= 0) {
delete this.onEnterFrame;
this._parent._parent.loadDone();
}
};
stop();
Symbol 74 MovieClip Frame 1
this.init = function () {
this.pX = 260;
this.pY = 104;
};
this.resizePanel = function (tX, tY) {
this.pTargetX = Math.max(260, tX);
this.pTargetY = Math.max(104, tY);
if ((this.pTargetX != this.pX) || (this.pTargetY != this.pY)) {
this.onEnterFrame = function () {
this.pX = this.pX + ((this.pTargetX - this.pX) / 5);
this.pY = this.pY + ((this.pTargetY - this.pY) / 5);
this.pX = Math.round(this.pX);
this.pY = Math.round(this.pY);
if ((Math.abs(this.pTargetX - this.pX) < 5) && (Math.abs(this.pTargetY - this.pY) < 5)) {
this.pX = this.pTargetX;
this.pY = this.pTargetY;
delete this.onEnterFrame;
this._parent.showAdvert();
}
this.panel_mc.resizePanel(this.pX, this.pY);
this.loaderbar_mc._y = this.pY - 97;
this._y = Math.round(((Stage.height - this.pY) / 2) + 52);
};
}
};
this.openForAd = function () {
var _local2 = this._parent.getAdSize();
this.resizePanel(_local2.x + 10, _local2.y + 114);
trace((("resizing to " + _local2.x) + ", ") + _local2.y);
};
this.init();
this.gotoAndPlay(2);
Symbol 74 MovieClip Frame 14
this.loaderbar_mc.init();
stop();
Symbol 82 Button
on (release) {
getURL ("http://www.macromedia.com/go/getflashplayer", "_blank");
}
Symbol 84 Button
on (release) {
this._parent.logoPlay();
}
Symbol 85 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 1
stop();
Symbol 90 MovieClip Frame 1
stop();
Symbol 91 MovieClip [ftloader] Frame 1
_root.stop();
this._x = 0;
this._y = 0;
this.bg_mc._width = Stage.width;
this.bg_mc._height = Stage.height;
Symbol 91 MovieClip [ftloader] Frame 2
if (this.pUseLoader) {
this.loadAdvert = function () {
if (this.pAdvert) {
trace("loading adv");
this.pAdUrl = _root.adv;
if (this.pAdUrl == undefined) {
this.pAdvert = false;
} else {
this.pAdReady = false;
var _local4 = this.createEmptyMovieClip("adSpace_mc", this.getNextHighestDepth());
var _local5 = _local4.createEmptyMovieClip("ad_mc", 100);
var _local3 = new MovieClipLoader();
_local3.onLoadInit = function () {
trace("advert loaded!");
positionAdvert();
};
_local3.loadClip(this.pAdUrl, _local5);
}
}
};
this.positionAdvert = function () {
var _local3 = this.adSpace_mc.ad_mc._width;
var _local2 = this.adSpace_mc.ad_mc._height;
this.pAdx = _local3;
this.pAdy = _local2;
this.adSpace_mc._x = (Stage.width - _local3) / 2;
this.adSpace_mc._y = (Stage.height - _local2) / 2;
this.adSpace_mc.ad_mc._visible = false;
var _local4 = this.adSpace_mc.attachMovie("mc.mask", "mask_mc", 1);
_local4._width = _local3;
_local4._height = _local2;
this.adSpace_mc.setMask(_local4);
this.pAdReady = true;
};
this.AdForDisplay = function () {
return(this.pAdvert);
};
this.AdReady = function () {
return(this.pAdReady);
};
this.showAdvert = function () {
trace("showingAd");
this.adSpace_mc.ad_mc._visible = true;
};
this.getAdSize = function () {
var _local2 = new Object();
_local2.x = this.pAdx;
_local2.y = this.pAdy;
return(_local2);
};
this.loadDone = function () {
if (this.pAdvert) {
} else {
this.exitLoader();
}
};
this.exitLoader = function () {
trace("exiting loader");
_root.gotoAndPlay(this.pLabel);
};
this.logoPlay = function () {
this.gotoAndPlay("logoAni");
};
this.logoDone = function () {
if (this.pSecurity) {
this.serverCheck();
} else {
this.gotoAndPlay("loader");
}
};
this.positionLogo = function () {
var _local2 = Stage.width / 15;
this.logo_mc._xscale = _local2;
this.logo_mc._yscale = _local2;
this.logo_mc._x = Stage.width / 2;
this.logo_mc._y = Stage.height / 2;
};
this.positionLoader = function () {
this.loadPanel_mc._x = Stage.width / 2;
this.loadPanel_mc._y = Stage.height / 2;
};
this.gotoStolen = function () {
this.gotoAndPlay("stolen");
getURL (this.pURL, "_self");
};
this.serverCheck = function () {
trace("checking server");
var _local4 = _root._url;
if (_local4.substring(0, 4) == "http") {
var _local5 = _local4.split("/")[2];
trace(_local5);
var _local3 = _local5.split(".");
if (_local3[_local3.length - 2] == this.pServer) {
if (_local3[_local3.length - 1] == "com") {
this.gotoAndPlay("loader");
} else {
this.gotoStolen();
}
} else {
this.gotoStolen();
}
} else {
trace("running locally");
this.gotoAndPlay("local");
}
};
this.versionCheck = function () {
trace("checking version");
var _local4 = System.capabilities.version;
var _local3 = _local4.substring(_local4.indexOf(" ") + 1).split(",");
var _local6 = parseInt(_local3[0]);
var _local5 = parseInt(_local3[2]);
var _local2 = false;
if (_local6 < this.pMajor) {
_local2 = true;
} else if (_local5 < this.pMinor) {
_local2 = true;
}
return(!_local2);
};
if (this.pVersion) {
if (this.versionCheck()) {
this.logoPlay();
} else {
this.gotoAndPlay("update");
}
} else {
this.logoPlay();
}
this.loadAdvert();
} else {
_root.gotoAndPlay(this.pLabel);
}
Symbol 91 MovieClip [ftloader] Frame 6
this.positionLogo();
stop();
Symbol 91 MovieClip [ftloader] Frame 13
this.positionLoader();
stop();
Symbol 91 MovieClip [ftloader] Frame 19
this.updatePanel_mc._x = Math.round(Stage.width / 2);
this.updatePanel_mc._y = Math.round(Stage.height / 2);
stop();
Symbol 91 MovieClip [ftloader] Frame 26
stop();
Symbol 91 MovieClip [ftloader] Frame 32
this.local_mc._x = Math.round(Stage.width / 2);
this.local_mc._y = Math.round(Stage.height / 2);
stop();
Symbol 110 Button
on (press) {
getURL ("http://www.fingertime.com", "_blank");
}
Symbol 111 MovieClip Frame 1
this.onRelease = function () {
getURL ("http://www.fingertime.com/", "_blank");
};
stop();
Symbol 118 MovieClip Frame 1
stop();
Symbol 122 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 15
gotoAndPlay (1);
Symbol 129 MovieClip Frame 1
stop();
Symbol 134 MovieClip Frame 1
_global.gSC = 0;
this.addscore = function (tx) {
_global.gSC = _global.gSC + tx;
scoretxt.text = gSC;
};
Symbol 136 Button
on (press) {
_parent._parent.eggstatus = "firing";
}
Instance of Symbol 140 MovieClip in Symbol 142 MovieClip Frame 1
onClipEvent (load) {
if (_root._currentFrame > 115) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 143 MovieClip Frame 1
stop();
Instance of Symbol 142 MovieClip "eggbodygraphic" in Symbol 143 MovieClip Frame 1
onClipEvent (load) {
if (_root._currentFrame > 240) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 143 MovieClip Frame 2
stop();
Instance of Symbol 142 MovieClip "eggbodygraphic" in Symbol 143 MovieClip Frame 2
onClipEvent (load) {
if (_root._currentFrame > 240) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 148 MovieClip Frame 1
stop();
Instance of Symbol 147 MovieClip in Symbol 148 MovieClip Frame 1
onClipEvent (load) {
if (_root._currentFrame > 240) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 148 MovieClip Frame 2
stop();
Symbol 149 MovieClip Frame 1
trace("start");
Instance of Symbol 143 MovieClip "body" in Symbol 149 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 149 MovieClip Frame 40
this._parent._parent._parent.play();
Symbol 150 MovieClip Frame 1
stop();
Instance of Symbol 137 MovieClip "trigger" in Symbol 150 MovieClip Frame 1
onClipEvent (load) {
Mouse.addListener(trigger);
}
onClipEvent (enterFrame) {
this.onMouseUp = function () {
if (_parent._parent.eggstatus == "firing") {
_parent._parent.eggstatus = "launch";
_root.score_mc.addscore(1);
trace("score " + _root.w1);
_parent.body._rotation = 0;
_parent._parent.gotoAndPlay(2);
}
};
}
Instance of Symbol 143 MovieClip "body" in Symbol 150 MovieClip Frame 1
onClipEvent (load) {
this.maxpower = 8.5;
}
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 150 MovieClip Frame 2
stop();
Symbol 154 MovieClip Frame 15
gotoAndPlay (1);
Symbol 155 MovieClip Frame 1
stop();
Symbol 155 MovieClip Frame 2
stop();
Instance of Symbol 152 MovieClip "mask" in Symbol 155 MovieClip Frame 2
onClipEvent (enterFrame) {
this._width = _parent._parent.power * 12;
if (this._width > 100) {
this._width = 100;
}
}
Symbol 158 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 158 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 160 MovieClip Frame 1
this._alpha = 0;
stop();
Symbol 218 MovieClip Frame 29
gotoAndPlay (1);
Symbol 219 MovieClip Frame 1
stop();
this.ready = true;
Symbol 219 MovieClip Frame 2
this.ready = false;
_root.sound.gottwig();
Symbol 219 MovieClip Frame 40
stop();
_parent.ladder.gotoAndPlay(2);
Symbol 224 MovieClip Frame 1
stop();
Symbol 224 MovieClip Frame 2
stop();
Symbol 225 MovieClip Frame 1
stop();
ready = false;
Instance of Symbol 224 MovieClip in Symbol 225 MovieClip Frame 1
onClipEvent (load) {
if (_root._currentFrame > 240) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 225 MovieClip Frame 2
ready = true;
Symbol 225 MovieClip Frame 30
stop();
ready = true;
Instance of Symbol 143 MovieClip "body" in Symbol 231 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 231 MovieClip Frame 30
stop();
_parent._parent._parent.gotoAndPlay(20);
Symbol 232 MovieClip Frame 30
stop();
_parent._parent.gotoAndPlay(1);
Symbol 233 MovieClip Frame 1
stop();
launchsound = new Sound();
launchsound.attachSound("boing_even_shorter.wav");
launchsound.start();
Instance of Symbol 143 MovieClip "body" in Symbol 233 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 233 MovieClip Frame 2
stop();
Instance of Symbol 232 MovieClip "eggup" in Symbol 233 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 233 MovieClip Frame 3
stop();
Symbol 234 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 150 MovieClip "mainegg" in Symbol 234 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 155 MovieClip "comp" in Symbol 234 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 156 MovieClip "clip" in Symbol 234 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 158 MovieClip "platform1" in Symbol 234 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 160 MovieClip "platform1" in Symbol 234 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 158 MovieClip "platform1" in Symbol 234 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 158 MovieClip "platform1" in Symbol 234 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 158 MovieClip "platform1" in Symbol 234 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 219 MovieClip "twig" in Symbol 234 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 234 MovieClip Frame 2
stop();
Instance of Symbol 233 MovieClip "spinningegg" in Symbol 234 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 > 360) {
if (screaming == false) {
_root.score_mc.addscore(2);
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 242 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 150 MovieClip "mainegg" in Symbol 242 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 155 MovieClip "comp" in Symbol 242 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 156 MovieClip "clip" in Symbol 242 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 160 MovieClip "platform1" in Symbol 242 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 158 MovieClip "platform1" in Symbol 242 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 158 MovieClip "platform1" in Symbol 242 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 158 MovieClip "platform1" in Symbol 242 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 158 MovieClip "platform1" in Symbol 242 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 158 MovieClip "platform1" in Symbol 242 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 158 MovieClip "platform1" in Symbol 242 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 219 MovieClip "twig" in Symbol 242 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 242 MovieClip Frame 2
stop();
Instance of Symbol 233 MovieClip "spinningegg" in Symbol 242 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 > 200) {
if (screaming == false) {
_root.score_mc.addscore(2);
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 246 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 150 MovieClip "mainegg" in Symbol 246 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 155 MovieClip "comp" in Symbol 246 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 156 MovieClip "clip" in Symbol 246 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 160 MovieClip "platform1" in Symbol 246 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 158 MovieClip "platform1" in Symbol 246 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 158 MovieClip "platform1" in Symbol 246 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 158 MovieClip "platform1" in Symbol 246 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 219 MovieClip "twig" in Symbol 246 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 246 MovieClip Frame 2
stop();
Instance of Symbol 233 MovieClip "spinningegg" in Symbol 246 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 > 200) {
if (screaming == false) {
_root.score_mc.addscore(2);
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 250 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 150 MovieClip "mainegg" in Symbol 250 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 155 MovieClip "comp" in Symbol 250 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 156 MovieClip "clip" in Symbol 250 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 160 MovieClip "platform1" in Symbol 250 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 158 MovieClip "platform1" in Symbol 250 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 158 MovieClip "platform1" in Symbol 250 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 158 MovieClip "platform1" in Symbol 250 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 158 MovieClip "platform1" in Symbol 250 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 158 MovieClip "platform1" in Symbol 250 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 219 MovieClip "twig" in Symbol 250 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 250 MovieClip Frame 2
stop();
Instance of Symbol 233 MovieClip "spinningegg" in Symbol 250 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 > 200) {
if (screaming == false) {
_root.score_mc.addscore(2);
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 252 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 150 MovieClip "mainegg" in Symbol 252 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 155 MovieClip "comp" in Symbol 252 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 156 MovieClip "clip" in Symbol 252 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 160 MovieClip "platform1" in Symbol 252 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 158 MovieClip "platform1" in Symbol 252 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 158 MovieClip "platform1" in Symbol 252 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 158 MovieClip "platform1" in Symbol 252 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 219 MovieClip "twig" in Symbol 252 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 252 MovieClip Frame 2
stop();
Instance of Symbol 233 MovieClip "spinningegg" in Symbol 252 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 > 200) {
if (screaming == false) {
_root.score_mc.addscore(2);
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 254 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 150 MovieClip "mainegg" in Symbol 254 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 155 MovieClip "comp" in Symbol 254 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 156 MovieClip "clip" in Symbol 254 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 160 MovieClip "platform1" in Symbol 254 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 158 MovieClip "platform1" in Symbol 254 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 158 MovieClip "platform1" in Symbol 254 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 158 MovieClip "platform1" in Symbol 254 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 158 MovieClip "platform1" in Symbol 254 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 158 MovieClip "platform1" in Symbol 254 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 158 MovieClip "platform1" in Symbol 254 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 219 MovieClip "twig" in Symbol 254 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 254 MovieClip Frame 2
stop();
Instance of Symbol 233 MovieClip "spinningegg" in Symbol 254 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 > 200) {
if (screaming == false) {
_root.score_mc.addscore(2);
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 256 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 150 MovieClip "mainegg" in Symbol 256 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 155 MovieClip "comp" in Symbol 256 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 156 MovieClip "clip" in Symbol 256 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 158 MovieClip "platform1" in Symbol 256 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 160 MovieClip "platform1" in Symbol 256 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 158 MovieClip "platform1" in Symbol 256 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 158 MovieClip "platform1" in Symbol 256 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 158 MovieClip "platform1" in Symbol 256 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 158 MovieClip "platform1" in Symbol 256 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 219 MovieClip "twig" in Symbol 256 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 256 MovieClip Frame 2
stop();
Instance of Symbol 233 MovieClip "spinningegg" in Symbol 256 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 > 200) {
if (screaming == false) {
_root.score_mc.addscore(2);
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 260 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 150 MovieClip "mainegg" in Symbol 260 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 155 MovieClip "comp" in Symbol 260 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 156 MovieClip "clip" in Symbol 260 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 160 MovieClip "platform1" in Symbol 260 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 158 MovieClip "platform1" in Symbol 260 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 158 MovieClip "platform1" in Symbol 260 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 158 MovieClip "platform1" in Symbol 260 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 219 MovieClip "twig" in Symbol 260 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 260 MovieClip Frame 2
stop();
Instance of Symbol 233 MovieClip "spinningegg" in Symbol 260 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 > 200) {
if (screaming == false) {
_root.score_mc.addscore(2);
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 263 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 150 MovieClip "mainegg" in Symbol 263 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 155 MovieClip "comp" in Symbol 263 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 156 MovieClip "clip" in Symbol 263 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 160 MovieClip "platform1" in Symbol 263 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 158 MovieClip "platform1" in Symbol 263 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 158 MovieClip "platform1" in Symbol 263 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 158 MovieClip "platform1" in Symbol 263 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 219 MovieClip "twig" in Symbol 263 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 263 MovieClip Frame 2
stop();
Instance of Symbol 233 MovieClip "spinningegg" in Symbol 263 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 > 200) {
if (screaming == false) {
_root.score_mc.addscore(2);
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 266 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 150 MovieClip "mainegg" in Symbol 266 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 155 MovieClip "comp" in Symbol 266 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 156 MovieClip "clip" in Symbol 266 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 158 MovieClip "platform1" in Symbol 266 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 160 MovieClip "platform1" in Symbol 266 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 158 MovieClip "platform1" in Symbol 266 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 158 MovieClip "platform1" in Symbol 266 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 219 MovieClip "twig" in Symbol 266 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 266 MovieClip Frame 2
stop();
Instance of Symbol 233 MovieClip "spinningegg" in Symbol 266 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 > 200) {
if (screaming == false) {
_root.score_mc.addscore(2);
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 269 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 150 MovieClip "mainegg" in Symbol 269 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 158 MovieClip "platform1" in Symbol 269 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 158 MovieClip "platform1" in Symbol 269 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 155 MovieClip "comp" in Symbol 269 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 156 MovieClip "clip" in Symbol 269 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 158 MovieClip "platform1" in Symbol 269 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 160 MovieClip "platform1" in Symbol 269 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 158 MovieClip "platform1" in Symbol 269 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 158 MovieClip "platform1" in Symbol 269 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 219 MovieClip "twig" in Symbol 269 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 269 MovieClip Frame 2
stop();
Instance of Symbol 233 MovieClip "spinningegg" in Symbol 269 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 > 200) {
if (screaming == false) {
_root.score_mc.addscore(2);
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 273 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 150 MovieClip "mainegg" in Symbol 273 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 155 MovieClip "comp" in Symbol 273 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 156 MovieClip "clip" in Symbol 273 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 158 MovieClip "platform1" in Symbol 273 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 158 MovieClip "platform1" in Symbol 273 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 160 MovieClip "platform1" in Symbol 273 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 158 MovieClip "platform1" in Symbol 273 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 158 MovieClip "platform1" in Symbol 273 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 219 MovieClip "twig" in Symbol 273 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 273 MovieClip Frame 2
stop();
Instance of Symbol 233 MovieClip "spinningegg" in Symbol 273 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 > 200) {
if (screaming == false) {
_root.score_mc.addscore(2);
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 275 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 150 MovieClip "mainegg" in Symbol 275 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 158 MovieClip "platform1" in Symbol 275 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 158 MovieClip "platform1" in Symbol 275 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 158 MovieClip "platform1" in Symbol 275 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 155 MovieClip "comp" in Symbol 275 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 156 MovieClip "clip" in Symbol 275 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 158 MovieClip "platform1" in Symbol 275 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 160 MovieClip "platform1" in Symbol 275 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 158 MovieClip "platform1" in Symbol 275 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 219 MovieClip "twig" in Symbol 275 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 275 MovieClip Frame 2
stop();
Instance of Symbol 233 MovieClip "spinningegg" in Symbol 275 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 > 200) {
if (screaming == false) {
_root.score_mc.addscore(2);
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 277 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 150 MovieClip "mainegg" in Symbol 277 MovieClip Frame 1
onClipEvent (load) {
this._x = _parent.new_x;
this._y = _parent.new_y;
trace("dir ---" + _parent.facing);
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
}
Instance of Symbol 158 MovieClip "platform1" in Symbol 277 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 158 MovieClip "platform1" in Symbol 277 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 155 MovieClip "comp" in Symbol 277 MovieClip Frame 1
onClipEvent (load) {
_parent.power = 0;
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
}
onClipEvent (enterFrame) {
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
this._rotation = _parent.clip.deg;
trace(_parent.eggstatus);
if (_parent.eggstatus == "firing") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 156 MovieClip "clip" in Symbol 277 MovieClip Frame 1
onClipEvent (enterFrame) {
x = _root._xmouse - (_root.egg._x + _parent.comp._x);
y = _root._ymouse - (_root.egg._y + _parent.comp._y);
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
} else if ((Math.floor(y) == 0) && (x < 0)) {
deg = 180;
}
}
Instance of Symbol 158 MovieClip "platform1" in Symbol 277 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 160 MovieClip "platform1" in Symbol 277 MovieClip Frame 1
onClipEvent (load) {
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (_parent.ladder.ready == true) {
if (_parent.spinningegg.active == false) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
_parent.mainegg._x = this._x;
_parent.mainegg._y = this._y;
_parent.mainegg._rotation = 0;
this.collision = true;
if (_parent.complete == false) {
_root.sound.levelcomplete();
}
_parent.complete = true;
}
}
}
}
}
}
}
Instance of Symbol 158 MovieClip "platform1" in Symbol 277 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 219 MovieClip "twig" in Symbol 277 MovieClip Frame 1
onClipEvent (load) {
this.ready = true;
trace("twig mc name " + this._name);
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (this.ready == true) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
trace("got twig ");
gotoAndPlay (2);
this.ready = false;
}
}
}
}
}
}
Symbol 277 MovieClip Frame 2
stop();
Instance of Symbol 233 MovieClip "spinningegg" in Symbol 277 MovieClip Frame 2
onClipEvent (load) {
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
screaming = false;
this._x = _parent.new_x;
this._y = _parent.new_y;
eggspin = 2 + (_parent.xpower / 1);
active = true;
power = 0.4 * Math.sqrt((_parent._parent.xpower * _parent._parent.xpower) + (_parent._parent.ypower * _parent._parent.ypower));
gravity = 0.5;
gravity2 = gravity;
_parent.dropvar = 1;
}
onClipEvent (enterFrame) {
if (active == true) {
trace((("_parent.ypower " + _parent.ypower) + " xpower ") + _parent.xpower);
if (gravity < 40) {
gravity = gravity + (gravity2 / 1.5);
}
this._x = this._x + (_parent.xpower * 0.7);
this._y = (this._y + (_parent.ypower * 0.7)) + gravity;
this._rotation = this._rotation + eggspin;
if (this._rotation > 360) {
this._rotation = 360;
}
if (this._x > 1000) {
_parent.gotoAndStop(1);
}
if (this._y < -1000) {
_parent.gotoAndStop(1);
}
if (this._x < -1000) {
_parent.gotoAndStop(1);
}
if (this._y > 200) {
if (screaming == false) {
_root.score_mc.addscore(2);
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 280 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 150 MovieClip "mainegg" in Symbol 280 MovieClip Frame 1
onClipEvent (load) {
this._x = _parent.new_x;
this._y = _parent.new_y;
trace("dir ---" + _parent.facing);
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
}
Instance of Symbol 158 MovieClip "platform1" in Symbol 280 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 158 MovieClip "platform1" in Symbol 280 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 155 MovieClip "comp" in Symbol 280 MovieClip Frame 1
onClipEvent (load) {
_parent.power = 0;
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
}
onClipEvent (enterFrame) {
this._x = _parent.mainegg._x;
this._y = _parent.mainegg._y;
this._rotation = _parent.clip.deg;
trace(_parent.eggstatus);
if (_parent.eggstatus == "firing") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 156 MovieClip "clip" in Symbol 280 MovieClip Frame 1
onClipEvent (enterFrame) {
x = _root._xmouse - (_root.egg._x + _parent.comp._x);
y = _root._ymouse - (_root.egg._y + _parent.comp._y);
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
} else if ((Math.floor(y) == 0) && (x < 0)) {
deg = 180;
}
}
Instance of Symbol 158 MovieClip "platform1" in Symbol 280 MovieClip Frame 1
onClipEvent (load) {
this.edge = 10;
this.collision = false;
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
Instance of Symbol 160 MovieClip "platform1" in Symbol 280 MovieClip Frame 1
onClipEvent (load) {
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (_parent.ladder.ready == true) {
if (_parent.spinningegg.active == false) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
_parent.mainegg._x = this._x;
_parent.mainegg._y = this._y;
_parent.mainegg._rotation = 0;
this.collision = true;
if (_parent.complete == false) {
_root.sound.levelcomplete();
}
_parent.complete = true;
}
}
}
}
}
}
}
Instance of Symbol 219 MovieClip "twig" in Symbol 280 MovieClip Frame 1
onClipEvent (load) {
this.ready = true;
trace("twig mc name " + this._name);
this.leftside = this._x - (this._width / 2);
this.rightside = this.leftside + this._width;
this.top = this._y - (this._height / 2);
this.bottom = this.top + this._height;
}
onClipEvent (enterFrame) {
if (this.ready == true) {
if ((_parent.spinningegg._x + 10) > this.leftside) {
if ((_parent.spinningegg._y + 10) > this.top) {
if ((_parent.spinningegg._y - 10) < this.bottom) {
if ((_parent.spinningegg._x - 10) < this.rightside) {
trace("got twig ");
gotoAndPlay (2);
this.ready = false;
}
}
}
}
}
}
Symbol 280 MovieClip Frame 2
stop();
Instance of Symbol 233 MovieClip "spinningegg" in Symbol 280 MovieClip Frame 2
onClipEvent (load) {
if (_parent.facing == "left") {
body.gotoAndPlay(2);
feet.gotoAndPlay(2);
} else {
body.gotoAndPlay(1);
feet.gotoAndPlay(1);
}
screaming = false;
this._x = _parent.new_x;
this._y = _parent.new_y;
eggspin = 2 + (_parent.xpower / 1);
active = true;
power = 0.4 * Math.sqrt((_parent._parent.xpower * _parent._parent.xpower) + (_parent._parent.ypower * _parent._parent.ypower));
gravity = 0.5;
gravity2 = gravity;
_parent.dropvar = 1;
}
onClipEvent (enterFrame) {
if (active == true) {
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 > 200) {
if (screaming == false) {
_root.score_mc.addscore(2);
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 282 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 150 MovieClip "mainegg" in Symbol 282 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 158 MovieClip "platform1" in Symbol 282 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 158 MovieClip "platform1" in Symbol 282 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 158 MovieClip "platform1" in Symbol 282 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 158 MovieClip "platform1" in Symbol 282 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 155 MovieClip "comp" in Symbol 282 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 156 MovieClip "clip" in Symbol 282 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 158 MovieClip "platform1" in Symbol 282 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 160 MovieClip "platform1" in Symbol 282 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 219 MovieClip "twig" in Symbol 282 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 282 MovieClip Frame 2
stop();
Instance of Symbol 233 MovieClip "spinningegg" in Symbol 282 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 > 200) {
if (screaming == false) {
_root.score_mc.addscore(2);
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 284 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 150 MovieClip "mainegg" in Symbol 284 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 158 MovieClip "platform1" in Symbol 284 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 158 MovieClip "platform1" in Symbol 284 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 158 MovieClip "platform1" in Symbol 284 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 158 MovieClip "platform1" in Symbol 284 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 158 MovieClip "platform1" in Symbol 284 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 155 MovieClip "comp" in Symbol 284 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 156 MovieClip "clip" in Symbol 284 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 158 MovieClip "platform1" in Symbol 284 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 160 MovieClip "platform1" in Symbol 284 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 219 MovieClip "twig" in Symbol 284 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 284 MovieClip Frame 2
stop();
Instance of Symbol 233 MovieClip "spinningegg" in Symbol 284 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 > 200) {
if (screaming == false) {
_root.score_mc.addscore(2);
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 286 MovieClip Frame 1
stop();
bounced = false;
if (this.complete == true) {
mainegg.gotoAndPlay(2);
}
Instance of Symbol 150 MovieClip "mainegg" in Symbol 286 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 219 MovieClip "twig" in Symbol 286 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;
}
}
}
}
}
}
Instance of Symbol 158 MovieClip "platform1" in Symbol 286 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 158 MovieClip "platform1" in Symbol 286 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 158 MovieClip "platform1" in Symbol 286 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 158 MovieClip "platform1" in Symbol 286 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 158 MovieClip "platform1" in Symbol 286 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 158 MovieClip "platform1" in Symbol 286 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 155 MovieClip "comp" in Symbol 286 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 156 MovieClip "clip" in Symbol 286 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 158 MovieClip "platform1" in Symbol 286 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 160 MovieClip "platform1" in Symbol 286 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;
}
}
}
}
}
}
}
Symbol 286 MovieClip Frame 2
stop();
Instance of Symbol 233 MovieClip "spinningegg" in Symbol 286 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 > 200) {
if (screaming == false) {
_root.score_mc.addscore(2);
screaming = true;
fallingsound = new Sound();
fallingsound.attachSound("falling.wav");
fallingsound.start();
}
}
if (this._y > 1000) {
screaming = false;
_parent.gotoAndStop(1);
}
}
}
Symbol 290 MovieClip Frame 1
stop();
Symbol 294 MovieClip Frame 1
stop();