Frame 1
function menuChoiceOne() {
}
function menuChoiceTwo() {
_root._quality = "HIGH";
}
function menuChoiceThree() {
_root._quality = "MEDIUM";
}
function menuChoiceFour() {
_root._quality = "LOW";
}
_root.starting = 1;
NewMenu = new ContextMenu();
NewMenu.hideBuiltInItems();
NewMenu.customItems.push(new ContextMenuItem("EmbraceMorbidity Games", menuChoiceOne));
NewMenu.customItems.push(new ContextMenuItem("- High Quality", menuChoiceTwo));
NewMenu.customItems.push(new ContextMenuItem("- Medium Quality", menuChoiceThree));
NewMenu.customItems.push(new ContextMenuItem("- Low Quality", menuChoiceFour));
this.menu = NewMenu;
Frame 2
_root.press = 0;
Frame 3
stop();
_root.spermmusicSound.stop();
_root.housemusicSound.stop();
if (_root.press == 1) {
click2Sound = new Sound(_root.s1);
click2Sound.attachSound("click");
click2Sound.start(0, 1);
_root.press = 0;
}
Frame 4
_root.canlose = 1;
_root.spermmusicSound = new Sound();
_root.spermmusicSound.attachSound("sperm_music");
_root.spermmusicSound.start(0, 0);
Instance of Symbol 64 MovieClip in Frame 4
onClipEvent (load) {
done2 = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.egg) && (!this.hitTest(_root.stopper))) {
_root.canlose = 0;
if (done2 == 0) {
_root.spermwinSound = new Sound(_root.s1);
_root.spermwinSound.attachSound("sperm_win");
_root.spermwinSound.start(0, 1);
}
done2 = 1;
this._y = this._y - 4;
}
if (this.hitTest(_root.stopper)) {
_root.gotoAndStop("win1");
}
if (Key.isDown(32) && (!this.hitTest(_root.egg))) {
if (done == 0) {
this._y = this._y - 4;
done = 1;
}
} else {
done = 0;
}
}
Instance of Symbol 69 MovieClip in Frame 4
onClipEvent (load) {
this.gotoAndPlay(Math.floor(Math.random(1) * 9));
speed = Math.random(1) * 3;
if (speed <= 1) {
speed = 1;
}
speed = speed / 3;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.loser) && (_root.canlose == 1)) {
_root.gotoAndStop("lose1");
}
this._y = this._y - speed;
}
Instance of Symbol 69 MovieClip in Frame 4
onClipEvent (load) {
this.gotoAndPlay(Math.floor(Math.random(1) * 9));
speed = Math.random(1) * 3;
if (speed <= 1) {
speed = 1;
}
speed = speed / 3;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.loser) && (_root.canlose == 1)) {
_root.gotoAndStop("lose1");
}
this._y = this._y - speed;
}
Instance of Symbol 69 MovieClip in Frame 4
onClipEvent (load) {
this.gotoAndPlay(Math.floor(Math.random(1) * 9));
speed = Math.random(1) * 3;
if (speed <= 1) {
speed = 1;
}
speed = speed / 3;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.loser) && (_root.canlose == 1)) {
_root.gotoAndStop("lose1");
}
this._y = this._y - speed;
}
Instance of Symbol 69 MovieClip in Frame 4
onClipEvent (load) {
this.gotoAndPlay(Math.floor(Math.random(1) * 9));
speed = Math.random(1) * 3;
if (speed <= 1) {
speed = 1;
}
speed = speed / 3;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.loser) && (_root.canlose == 1)) {
_root.gotoAndStop("lose1");
}
this._y = this._y - speed;
}
Instance of Symbol 69 MovieClip in Frame 4
onClipEvent (load) {
this.gotoAndPlay(Math.floor(Math.random(1) * 9));
speed = Math.random(1) * 3;
if (speed <= 1) {
speed = 1;
}
speed = speed / 3;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.loser) && (_root.canlose == 1)) {
_root.gotoAndStop("lose1");
}
this._y = this._y - speed;
}
Instance of Symbol 69 MovieClip in Frame 4
onClipEvent (load) {
this.gotoAndPlay(Math.floor(Math.random(1) * 9));
speed = Math.random(1) * 3;
if (speed <= 1) {
speed = 1;
}
speed = speed / 3;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.loser) && (_root.canlose == 1)) {
_root.gotoAndStop("lose1");
}
this._y = this._y - speed;
}
Instance of Symbol 69 MovieClip in Frame 4
onClipEvent (load) {
this.gotoAndPlay(Math.floor(Math.random(1) * 9));
speed = Math.random(1) * 3;
if (speed <= 1) {
speed = 1;
}
speed = speed / 3;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.loser) && (_root.canlose == 1)) {
_root.gotoAndStop("lose1");
}
this._y = this._y - speed;
}
Instance of Symbol 69 MovieClip in Frame 4
onClipEvent (load) {
this.gotoAndPlay(Math.floor(Math.random(1) * 9));
speed = Math.random(1) * 3;
if (speed <= 1) {
speed = 1;
}
speed = speed / 3;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.loser) && (_root.canlose == 1)) {
_root.gotoAndStop("lose1");
}
this._y = this._y - speed;
}
Instance of Symbol 69 MovieClip in Frame 4
onClipEvent (load) {
this.gotoAndPlay(Math.floor(Math.random(1) * 9));
speed = Math.random(1) * 3;
if (speed <= 1) {
speed = 1;
}
speed = speed / 3;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.loser) && (_root.canlose == 1)) {
_root.gotoAndStop("lose1");
}
this._y = this._y - speed;
}
Instance of Symbol 69 MovieClip in Frame 4
onClipEvent (load) {
this.gotoAndPlay(Math.floor(Math.random(1) * 9));
speed = Math.random(1) * 3;
if (speed <= 1) {
speed = 1;
}
speed = speed / 3;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.loser) && (_root.canlose == 1)) {
_root.gotoAndStop("lose1");
}
this._y = this._y - speed;
}
Instance of Symbol 69 MovieClip in Frame 4
onClipEvent (load) {
this.gotoAndPlay(Math.floor(Math.random(1) * 9));
speed = Math.random(1) * 3;
if (speed <= 1) {
speed = 1;
}
speed = speed / 3;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.loser) && (_root.canlose == 1)) {
_root.gotoAndStop("lose1");
}
this._y = this._y - speed;
}
Instance of Symbol 69 MovieClip in Frame 4
onClipEvent (load) {
this.gotoAndPlay(Math.floor(Math.random(1) * 9));
speed = Math.random(1) * 3;
if (speed <= 1) {
speed = 1;
}
speed = speed / 3;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.loser) && (_root.canlose == 1)) {
_root.gotoAndStop("lose1");
}
this._y = this._y - speed;
}
Instance of Symbol 69 MovieClip in Frame 4
onClipEvent (load) {
this.gotoAndPlay(Math.floor(Math.random(1) * 9));
speed = Math.random(1) * 3;
if (speed <= 1) {
speed = 1;
}
speed = speed / 3;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.loser) && (_root.canlose == 1)) {
_root.gotoAndStop("lose1");
}
this._y = this._y - speed;
}
Instance of Symbol 69 MovieClip in Frame 4
onClipEvent (load) {
this.gotoAndPlay(Math.floor(Math.random(1) * 9));
speed = Math.random(1) * 3;
if (speed <= 1) {
speed = 1;
}
speed = speed / 3;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.loser) && (_root.canlose == 1)) {
_root.gotoAndStop("lose1");
}
this._y = this._y - speed;
}
Frame 5
loseSound = new Sound();
loseSound.attachSound("sperm_lose");
loseSound.start(0, 1);
Frame 7
_root.housemusicSound = new Sound();
_root.housemusicSound.attachSound("feeding_time_music");
_root.housemusicSound.start(0, 0);
function move_wait() {
if (Key.isDown(Kleft)) {
this.bubMC._xscale = -100;
this.bubMC.gotoAndStop("run");
} else if (Key.isDown(Kright)) {
this.bubMC._xscale = 100;
this.bubMC.gotoAndStop("run");
}
}
function jump_wait() {
if (nojump == 0) {
if (jumping == 0) {
if (Key.isDown(Kjump)) {
this.bubMC.gotoAndStop("jumpUp");
jumping = 1;
}
}
}
}
function fall_wait() {
if (!this.stageMC.limitMC.hitTest(this.bubMC._x, this.bubMC._y, true)) {
this.bubMC.gotoAndStop("jumpDown");
}
}
function move_left(valueX) {
if (!this.stageMC.limitMC.hitTest((this.bubMC._x - valueX) - 8, this.bubMC._y - 45, true)) {
if (!this.stageMC.limitMC.hitTest((this.bubMC._x - valueX) - 8, this.bubMC._y - 44, true)) {
if (!this.stageMC.limitMC.hitTest((this.bubMC._x - valueX) - 8, this.bubMC._y - 43, true)) {
if (!this.stageMC.limitMC.hitTest((this.bubMC._x - valueX) - 8, this.bubMC._y - 42, true)) {
if (!this.stageMC.limitMC.hitTest((this.bubMC._x - valueX) - 8, this.bubMC._y - 41, true)) {
if (!this.stageMC.limitMC.hitTest((this.bubMC._x - valueX) - 8, this.bubMC._y - 40, true)) {
if (!this.stageMC.limitMC.hitTest((this.bubMC._x - valueX) - 8, this.bubMC._y - 39, true)) {
if (!this.stageMC.limitMC.hitTest((this.bubMC._x - valueX) - 8, this.bubMC._y - 38, true)) {
if (!this.stageMC.limitMC.hitTest((this.bubMC._x - valueX) - 8, this.bubMC._y - 37, true)) {
if (!this.stageMC.limitMC.hitTest((this.bubMC._x - valueX) - 8, this.bubMC._y - 36, true)) {
if (!this.stageMC.limitMC.hitTest((this.bubMC._x - valueX) - 8, this.bubMC._y - 35, true)) {
if (!this.stageMC.limitMC.hitTest((this.bubMC._x - valueX) - 8, this.bubMC._y - 34, true)) {
if (!this.stageMC.limitMC.hitTest((this.bubMC._x - valueX) - 8, this.bubMC._y - 6, true)) {
if (!this.stageMC.limitMC.hitTest((this.bubMC._x - valueX) - 8, this.bubMC._y - 7, true)) {
if (!this.stageMC.limitMC.hitTest((this.bubMC._x - valueX) - 8, this.bubMC._y - 8, true)) {
if (!this.stageMC.limitMC.hitTest((this.bubMC._x - valueX) - 8, this.bubMC._y - 9, true)) {
if (!this.stageMC.limitMC.hitTest((this.bubMC._x - valueX) - 8, this.bubMC._y - 10, true)) {
if (!this.stageMC.limitMC.hitTest((this.bubMC._x - valueX) - 8, this.bubMC._y - 11, true)) {
if (!this.stageMC.limitMC.hitTest((this.bubMC._x - valueX) - 8, this.bubMC._y - 12, true)) {
if (!this.stageMC.limitMC.hitTest((this.bubMC._x - valueX) - 8, this.bubMC._y - 13, true)) {
if (!this.stageMC.limitMC.hitTest((this.bubMC._x - valueX) - 8, this.bubMC._y - 14, true)) {
if (!this.stageMC.limitMC.hitTest((this.bubMC._x - valueX) - 8, this.bubMC._y - 15, true)) {
if (!this.stageMC.limitMC.hitTest((this.bubMC._x - valueX) - 8, this.bubMC._y - 16, true)) {
this.bubMC._x = this.bubMC._x - valueX;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
} else if (!this.stageMC.limitMC.hitTest((this.bubMC._x - valueX) - 8, this.bubMC._y - 33, true)) {
this.bubMC._x = this.bubMC._x - valueX;
}
}
function move_right(valueX) {
if (!this.stageMC.limitMC.hitTest(this.bubMC._x + 10, this.bubMC._y - 45, true)) {
if (!this.stageMC.limitMC.hitTest(this.bubMC._x + 10, this.bubMC._y - 44, true)) {
if (!this.stageMC.limitMC.hitTest(this.bubMC._x + 10, this.bubMC._y - 43, true)) {
if (!this.stageMC.limitMC.hitTest(this.bubMC._x + 10, this.bubMC._y - 42, true)) {
if (!this.stageMC.limitMC.hitTest(this.bubMC._x + 10, this.bubMC._y - 41, true)) {
if (!this.stageMC.limitMC.hitTest(this.bubMC._x + 10, this.bubMC._y - 40, true)) {
if (!this.stageMC.limitMC.hitTest(this.bubMC._x + 10, this.bubMC._y - 39, true)) {
if (!this.stageMC.limitMC.hitTest(this.bubMC._x + 10, this.bubMC._y - 38, true)) {
if (!this.stageMC.limitMC.hitTest(this.bubMC._x + 10, this.bubMC._y - 37, true)) {
if (!this.stageMC.limitMC.hitTest(this.bubMC._x + 10, this.bubMC._y - 36, true)) {
if (!this.stageMC.limitMC.hitTest(this.bubMC._x + 10, this.bubMC._y - 35, true)) {
if (!this.stageMC.limitMC.hitTest(this.bubMC._x + 10, this.bubMC._y - 34, true)) {
if (!this.stageMC.limitMC.hitTest(this.bubMC._x + 10, this.bubMC._y - 6, true)) {
if (!this.stageMC.limitMC.hitTest(this.bubMC._x + 10, this.bubMC._y - 7, true)) {
if (!this.stageMC.limitMC.hitTest(this.bubMC._x + 10, this.bubMC._y - 8, true)) {
if (!this.stageMC.limitMC.hitTest(this.bubMC._x + 10, this.bubMC._y - 9, true)) {
if (!this.stageMC.limitMC.hitTest(this.bubMC._x + 10, this.bubMC._y - 10, true)) {
if (!this.stageMC.limitMC.hitTest(this.bubMC._x + 10, this.bubMC._y - 11, true)) {
if (!this.stageMC.limitMC.hitTest(this.bubMC._x + 10, this.bubMC._y - 12, true)) {
if (!this.stageMC.limitMC.hitTest(this.bubMC._x + 10, this.bubMC._y - 13, true)) {
if (!this.stageMC.limitMC.hitTest(this.bubMC._x + 10, this.bubMC._y - 14, true)) {
if (!this.stageMC.limitMC.hitTest(this.bubMC._x + 10, this.bubMC._y - 15, true)) {
if (!this.stageMC.limitMC.hitTest(this.bubMC._x + 10, this.bubMC._y - 16, true)) {
this.bubMC._x = this.bubMC._x + valueX;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
} else if (!this.stageMC.limitMC.hitTest(this.bubMC._x + 10, this.bubMC._y - 33, true)) {
this.bubMC._x = this.bubMC._x + valueX;
}
}
function jump_down(valueY) {
if (!this.stageMC.limitMC.hitTest(this.bubMC._x, this.bubMC._y, true)) {
this.bubMC._y = this.bubMC._y + valueY;
} else {
i = 1;
while (i <= 10) {
if (!this.stageMC.limitMC.hitTest(this.bubMC._x, this.bubMC._y - i, true)) {
this.bubMC._y = this.bubMC._y - (i - 3);
break;
}
i++;
}
jumping = 0;
this.bubMC.gotoAndStop("stand");
}
}
totalfoods = 0;
Kleft = 37;
Kright = 39;
Kjump = 32;
walkSpeed = 4;
jumpHeight = 13;
jumpSpeed = 0.5;
fallSpeed = 8;
jumping = 0;
nojump = 0;
Instance of Symbol 88 MovieClip "stageMC" in Frame 7
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 91 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.bubMC)) {
_root.totalfoods++;
powerupSound = new Sound();
powerupSound.attachSound("powerup");
powerupSound.start(0, 1);
this.unloadMovie();
}
}
Instance of Symbol 93 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.bubMC)) {
_root.totalfoods++;
powerupSound = new Sound();
powerupSound.attachSound("powerup");
powerupSound.start(0, 1);
this.unloadMovie();
}
}
Instance of Symbol 95 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.bubMC)) {
_root.totalfoods++;
powerupSound = new Sound();
powerupSound.attachSound("powerup");
powerupSound.start(0, 1);
this.unloadMovie();
}
}
Instance of Symbol 97 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.bubMC)) {
_root.totalfoods++;
powerupSound = new Sound();
powerupSound.attachSound("powerup");
powerupSound.start(0, 1);
this.unloadMovie();
}
}
Instance of Symbol 95 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.bubMC)) {
_root.totalfoods++;
powerupSound = new Sound();
powerupSound.attachSound("powerup");
powerupSound.start(0, 1);
this.unloadMovie();
}
}
Instance of Symbol 95 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.bubMC)) {
_root.totalfoods++;
powerupSound = new Sound();
powerupSound.attachSound("powerup");
powerupSound.start(0, 1);
this.unloadMovie();
}
}
Instance of Symbol 93 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.bubMC)) {
_root.totalfoods++;
powerupSound = new Sound();
powerupSound.attachSound("powerup");
powerupSound.start(0, 1);
this.unloadMovie();
}
}
Instance of Symbol 93 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.bubMC)) {
_root.totalfoods++;
powerupSound = new Sound();
powerupSound.attachSound("powerup");
powerupSound.start(0, 1);
this.unloadMovie();
}
}
Instance of Symbol 97 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.bubMC)) {
_root.totalfoods++;
powerupSound = new Sound();
powerupSound.attachSound("powerup");
powerupSound.start(0, 1);
this.unloadMovie();
}
}
Instance of Symbol 99 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.bubMC)) {
_root.gotoAndStop("lose2");
}
}
Instance of Symbol 101 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.bubMC)) {
_root.gotoAndStop("lose2");
}
}
Instance of Symbol 103 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.bubMC)) {
_root.gotoAndStop("lose2");
}
}
Instance of Symbol 105 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.bubMC)) {
_root.gotoAndStop("lose2");
}
}
Instance of Symbol 107 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.bubMC)) {
_root.gotoAndStop("lose2");
}
}
Instance of Symbol 105 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.bubMC)) {
_root.gotoAndStop("lose2");
}
}
Instance of Symbol 107 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.bubMC)) {
_root.gotoAndStop("lose2");
}
}
Instance of Symbol 109 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.bubMC) && (_root.totalfoods >= 9)) {
_root.gotoAndStop("win2");
}
}
Instance of Symbol 130 MovieClip "cam" in Frame 7
onClipEvent (enterFrame) {
this._x = this._x + ((_root.bubMC._x - this._x) / 10);
}
Frame 8
win2Sound = new Sound();
win2Sound.attachSound("sperm_win");
win2Sound.start(0, 1);
Frame 9
screamSound = new Sound();
screamSound.attachSound("scream");
screamSound.start(0, 1);
Symbol 29 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
bar.stop();
gotoAndStop ("loaded");
}
Symbol 29 MovieClip Frame 2
gotoAndPlay (1);
Symbol 29 MovieClip Frame 3
_root.gotoAndPlay(2);
Symbol 34 Button
on (release) {
_root.gotoAndStop("level1");
clickSound = new Sound();
clickSound.attachSound("click");
clickSound.start(0, 1);
}
on (rollOver) {
rolloverSound = new Sound();
rolloverSound.attachSound("rollover");
rolloverSound.start(0, 1);
}
Symbol 41 Button
on (release) {
_root.gotoAndStop("level2");
clickSound = new Sound();
clickSound.attachSound("click");
clickSound.start(0, 1);
}
on (rollOver) {
rolloverSound = new Sound();
rolloverSound.attachSound("rollover");
rolloverSound.start(0, 1);
}
Symbol 78 Button
on (release) {
_root.press = 1;
_root.gotoAndStop("menu");
}
on (rollOver) {
rolloverSound = new Sound();
rolloverSound.attachSound("rollover");
rolloverSound.start(0, 1);
}
Symbol 112 MovieClip Frame 1
stop();
Symbol 123 MovieClip Frame 1
walkSound = new Sound();
walkSound.attachSound("walk");
walkSound.start(0, 1);
Symbol 123 MovieClip Frame 5
walkSound = new Sound();
walkSound.attachSound("walk");
walkSound.start(0, 1);
Symbol 127 MovieClip Frame 5
stop();
Symbol 128 MovieClip Frame 1
stop();
Instance of Symbol 112 MovieClip in Symbol 128 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.move_wait();
_root.jump_wait();
_root.jumping = 0;
}
Instance of Symbol 112 MovieClip in Symbol 128 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_parent._xscale == 100) {
_root.move_right(_root.walkSpeed);
if (!Key.isDown(_root.Kright)) {
_parent.gotoAndStop("stand");
}
} else {
_root.move_left(_root.walkSpeed);
if (!Key.isDown(_root.Kleft)) {
_parent.gotoAndStop("stand");
}
}
_root.jump_wait();
_root.fall_wait();
_root.jumping = 0;
}
Symbol 128 MovieClip Frame 3
jumpSound = new Sound();
jumpSound.attachSound("jump");
jumpSound.start(0, 1);
Instance of Symbol 112 MovieClip in Symbol 128 MovieClip Frame 3
onClipEvent (load) {
jumpH = -_root.jumpHeight;
}
onClipEvent (enterFrame) {
_parent._y = _parent._y + jumpH;
jumpH = jumpH + _root.jumpSpeed;
if (jumpH >= 0) {
_parent.gotoAndStop("jumpDown");
}
if (Key.isDown(_root.Kright)) {
_parent._xscale = 100;
_root.move_right(_root.walkSpeed);
} else if (Key.isDown(_root.Kleft)) {
_parent._xscale = -100;
_root.move_left(_root.walkSpeed);
}
}
Instance of Symbol 112 MovieClip in Symbol 128 MovieClip Frame 4
onClipEvent (load) {
jumpH = 0;
}
onClipEvent (enterFrame) {
if (jumpH < _root.fallSpeed) {
jumpH = jumpH + _root.jumpSpeed;
}
_root.jump_down(jumpH);
if (Key.isDown(_root.Kright)) {
_parent._xscale = 100;
_root.move_right(_root.walkSpeed);
} else if (Key.isDown(_root.Kleft)) {
_parent._xscale = -100;
_root.move_left(_root.walkSpeed);
}
}
Symbol 130 MovieClip Frame 1
function camControl() {
rp.x = _x;
rp.y = _y;
var _local5 = camH * (_yscale * 0.01);
var _local6 = camW * (_xscale * 0.01);
var _local3 = sH / _local5;
var _local4 = sW / _local6;
_x2 = (_local6 / 2) * _local4;
_y2 = (_local5 / 2) * _local3;
_xscale2 = _local4 * 100;
_yscale2 = _local3 * 100;
_rotation2 = -_rotation;
_parent.filters = this.filters;
_parent.transform.colorTransform = this.transform.colorTransform;
}
function reset() {
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
_parent._rotation = 0;
_parent._visible = true;
}
function set_x2(value) {
var _local2 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local2);
_parent._x = _parent._x + (value - _local2.x);
}
function get_x2() {
var _local2 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local2);
return(_local2.x);
}
function set_y2(value) {
var _local2 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local2);
_parent._y = _parent._y + (value - _local2.y);
}
function get_y2() {
var _local2 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local2);
return(_local2.y);
}
function get_xscale2() {
return(_parent._xscale);
}
function set_xscale2(value) {
setProperty2("_xscale", value);
}
function get_yscale2() {
return(_parent._yscale);
}
function set_yscale2(value) {
setProperty2("_yscale", value);
}
function get_rotation2() {
return(parent.rotation);
}
function set_rotation2(value) {
setProperty2("_rotation", value);
}
function setProperty2(prop, n) {
var _local3 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local3);
_parent[prop] = n;
var _local2 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local2);
_parent._x = _parent._x - (_local2.x - _local3.x);
_parent._y = _parent._y - (_local2.y - _local3.y);
}
_visible = false;
addProperty("_x2", get_x2, set_x2);
addProperty("_y2", get_y2, set_y2);
addProperty("_xscale2", get_xscale2, set_xscale2);
addProperty("_yscale2", get_yscale2, set_yscale2);
addProperty("_rotation2", get_rotation2, set_rotation2);
var oldScaleMode = stage.scaleMode;
stage.scaleMode = "exactFit";
var sW = Stage.width;
var sH = Stage.height;
stage.scaleMode = oldScaleMode;
var bounds_obj = this.getBounds(this);
var camH = Math.abs(bounds_obj.yMax - bounds_obj.yMin);
var camW = Math.abs(bounds_obj.xMax - bounds_obj.xMin);
var rp = {x:this._x, y:this._y};
onEnterFrame = function () {
camControl();
};
this.onUnload = reset;