Frame 1
stop();
Instance of Symbol 3 MovieClip "bg" in Frame 1
onClipEvent (enterFrame) {
this._x = this._x - (_root.moon.moveSpeed * -0.82);
}
Instance of Symbol 16 MovieClip "mars1" in Frame 1
onClipEvent (load) {
var Left = true;
var Speed = 3;
}
onClipEvent (enterFrame) {
if (this._currentframe != 2) {
if (Left == true) {
this._xscale = 100;
this._x = this._x - Speed;
} else {
this._xscale = -100;
this._x = this._x - (-Speed);
}
}
if (this.hitTest(_root.marshitL)) {
Left = false;
}
if (this.hitTest(_root.marshitR)) {
Left = true;
}
if (this.hitTest(_root.moon.kick.kickPoint)) {
this.gotoAndStop(2);
if (Left == true) {
this._rotation = 10;
} else {
this._rotation = -10;
}
}
}
Instance of Symbol 16 MovieClip "mars3" in Frame 1
onClipEvent (load) {
var Left = true;
var Speed = 3;
}
onClipEvent (enterFrame) {
if (this._currentframe != 2) {
if (Left == true) {
this._xscale = 100;
this._x = this._x - Speed;
} else {
this._xscale = -100;
this._x = this._x - (-Speed);
}
}
if (this.hitTest(_root.marshitL1)) {
Left = false;
}
if (this.hitTest(_root.marshitR1)) {
Left = true;
}
if (this.hitTest(_root.moon.kick.kickPoint)) {
this.gotoAndStop(2);
if (Left == true) {
this._rotation = 10;
} else {
this._rotation = -10;
}
}
}
Instance of Symbol 20 MovieClip "ground" in Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.moon)) {
if (_root.moon.falling == true) {
_root.moon.falling = false;
_root.moon.jumping = false;
}
} else {
_root.moon.falling = true;
_root.moon.jumping = true;
}
}
Instance of Symbol 24 MovieClip "ball1" in Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.moon.buttUp.buttPoint)) {
_root.moon.pts++;
_root.moon._width++;
this.gotoAndStop(2);
}
}
Instance of Symbol 54 MovieClip "moon" in Frame 1
onClipEvent (load) {
var HP = 10;
var faceLeft = true;
var moveSpeed = 0;
var walkSpeed = 5;
var jumpSet = 6;
var jumpSpeed = 6;
var Acl = 0.3;
var jumping = true;
var falling = true;
var pts = 0;
var kicking = false;
var aligned = false;
}
onClipEvent (enterFrame) {
this._x = this._x - (-moveSpeed);
if (jumping == true) {
this._y = this._y - jumpSpeed;
jumpSpeed = jumpSpeed - Acl;
} else {
jumpSpeed = jumpSet;
}
if (_root.moon._currentframe != 3) {
if (jumping == false) {
if (Key.isDown(32)) {
_root.moon.gotoAndStop(3);
}
}
if (Key.isDown(40)) {
if (jumping == true) {
kicking = true;
} else {
_root.moon.gotoAndStop(6);
}
}
if (Key.isDown(37)) {
if (jumping == false) {
if (this.hitTest(_root.Lwall)) {
moveSpeed = 0;
} else {
moveSpeed = -walkSpeed;
}
if (Key.isDown(32)) {
_root.moon.gotoAndStop(3);
moveSpeed = 0;
} else {
faceLeft = true;
if (jumping == false) {
_root.moon.gotoAndStop(2);
}
}
}
}
if (Key.isDown(39)) {
if (jumping == false) {
if (this.hitTest(_root.Rwall)) {
moveSpeed = 0;
} else {
moveSpeed = walkSpeed;
}
if (Key.isDown(32)) {
moveSpeed = 0;
_root.moon.gotoAndStop(3);
} else {
faceLeft = false;
if (jumping == false) {
_root.moon.gotoAndStop(2);
}
}
}
}
}
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
if (jumping == false) {
if (_root.moon._currentframe != 3) {
if (_root.moon._currentframe != 6) {
_root.moon.gotoAndStop(1);
moveSpeed = 0;
}
}
}
}
if (faceLeft == true) {
this._xscale = 100;
} else {
this._xscale = -100;
}
if (Key.isDown(38)) {
if ((_root.moon._currentframe != 3) && (_root.moon._currentframe != 4)) {
if (jumping == false) {
jumping = true;
}
}
}
if (jumping == true) {
if (this.hitTest(_root.Lwall)) {
moveSpeed = 0;
}
if (this.hitTest(_root.bigJup.Rwall)) {
moveSpeed = 0;
}
if (kicking == false) {
_root.moon.gotoAndStop(5);
} else {
_root.moon.gotoAndStop(7);
}
} else {
kicking = false;
}
}
Instance of Symbol 57 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (_root.moon.aligned == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
this._x = this._x - (-_root.moon.moveSpeed);
}
Instance of Symbol 62 MovieClip "frem" in Frame 1
onClipEvent (enterFrame) {
if (_root.frem.point._x <= _root.moon._x) {
_root.frem._x = _root.frem._x - (-_root.moon.moveSpeed);
} else {
_root.frem._x = _root.frem._x - _root.moon.moveSpeed;
}
}
Instance of Symbol 64 MovieClip "healthBar" in Frame 1
onClipEvent (enterFrame) {
this._width = _root.monn.HP * 10;
this._x = this._x - (-_root.moon.moveSpeed);
}
Instance of Symbol 67 MovieClip in Frame 1
onClipEvent (enterFrame) {
this._x = this._x - (-_root.moon.moveSpeed);
}
Symbol 16 MovieClip Frame 1
stop();
Instance of Symbol 15 MovieClip "hitPoint" in Symbol 16 MovieClip Frame 2
onClipEvent (load) {
var count = 3;
var done = true;
var see = true;
var eating = false;
var eator = _parent._x;
var eat3r = (_parent._x + (_parent._width / 2));
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.moon.intoPoint._x)) {
_root.moon.aligned = true;
} else {
_root.moon.aligned = false;
}
if (count > 0) {
if (eating == true) {
if (_parent._x < _root.moon.intoButt._x) {
_parent._x = _parent._x - -3;
} else {
_parent._x = _parent._x - 3;
}
_parent._x = _parent._x - -2;
_parent._width = _parent._width * 0.77;
_parent._height = _parent._height / 2;
_parent._y = _parent._y - (_parent._height * 0.5);
count--;
done = false;
}
if (_root.moon.jumpSpeed < 0) {
if (this.hitTest(_root.moon.intoButt)) {
eating = true;
}
}
} else {
_parent._visible = false;
see = false;
}
if (see == false) {
if (done == false) {
_root.moon.pts++;
_root.moon._width++;
done = true;
}
}
}
Symbol 24 MovieClip Frame 1
stop();
Instance of Symbol 15 MovieClip "hitPoint" in Symbol 26 MovieClip Frame 1
onClipEvent (load) {
var count = 3;
var done = true;
var see = true;
var eating = false;
}
onClipEvent (enterFrame) {
if (count > 0) {
if (eating == true) {
_parent._width = _parent._width * 0.8;
_parent._height = _parent._height / 2;
_parent._y = _parent._y - (_parent._height * 0.5);
count--;
done = false;
}
if (_root.moon.jumpSpeed < 0) {
if (this.hitTest(_root.moon.intoButt)) {
eating = true;
}
}
} else {
_parent._visible = false;
see = false;
}
if (see == false) {
if (done == false) {
_root.moon.pts++;
done = true;
}
}
}
Symbol 40 MovieClip Frame 12
_root.moon.gotoAndStop(1);
Symbol 43 MovieClip Frame 5
if (_root.moon.HP > 0) {
_root.moon.gotoAndStop(1);
}
Symbol 52 MovieClip Frame 9
_root.moon.gotoAndStop(1);
Symbol 54 MovieClip Frame 1
stop();
Symbol 57 MovieClip Frame 1
stop();
Symbol 57 MovieClip Frame 2
stop();
Symbol 62 MovieClip Frame 1
function camControl() {
parentColor.setTransform(camColor.getTransform());
var _local4 = sX / this._width;
var _local3 = sY / this._height;
_parent._x = cX - (this._x * _local4);
_parent._y = cY - (this._y * _local3);
_parent._xscale = 100 * _local4;
_parent._yscale = 100 * _local3;
}
function resetStage() {
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(_local2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = (Stage.width / 2);
var cY = (Stage.height / 2);
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;