Frame 1
if (_root._framesloaded >= _root._totalframes) {
gotoAndStop (3);
} else {
setProperty(_root.loaderbar, _xscale , (_root._framesloaded / _root._totalframes) * 100);
}
Instance of Symbol 21 MovieClip "loaderbar" in Frame 1
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
total = _root.getBytesTotal();
this._xscale = (loaded / total) * 100;
}
Frame 3
stop();
Frame 4
var coincount = 12;
var lvl = 1;
var die = 0;
stop();
stopAllSounds();
music = new Sound();
music.attachSound("levelmusic");
music.start(0, 100);
coin.duplicateMovieClip("coin1", 5);
_root.coin1._x = 29.9;
_root.coin1._y = 73.3;
coin.duplicateMovieClip("coin2", 6);
_root.coin2._x = 52.4;
_root.coin2._y = 73.3;
coin.duplicateMovieClip("coin3", 7);
_root.coin3._x = 73.3;
_root.coin3._y = 73.3;
coin.duplicateMovieClip("coin4", 8);
_root.coin4._x = 122.3;
_root.coin4._y = 48.4;
coin.duplicateMovieClip("coin5", 9);
_root.coin5._x = 139.8;
_root.coin5._y = 48.4;
coin.duplicateMovieClip("coin6", 10);
_root.coin6._x = 181.3;
_root.coin6._y = 38.9;
coin.duplicateMovieClip("coin7", 11);
_root.coin7._x = 101.3;
_root.coin7._y = 113.8;
coin.duplicateMovieClip("coin8", 12);
_root.coin8._x = 121.3;
_root.coin8._y = 113.8;
coin.duplicateMovieClip("coin9", 13);
_root.coin9._x = 144.3;
_root.coin9._y = 113.8;
coin.duplicateMovieClip("coin10", 14);
_root.coin10._x = 204.3;
_root.coin10._y = 175.8;
coin.duplicateMovieClip("coin11", 15);
_root.coin11._x = 233.3;
_root.coin11._y = 175.8;
coin.duplicateMovieClip("coin12", 16);
_root.coin12._x = 263.4;
_root.coin12._y = 107.8;
Instance of Symbol 31 MovieClip in Frame 4
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((xMin < _root.circle.xMax) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if (yMin < (_root.circle.yMax - (_root.circle.jump * 2))) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(yMin) < Math.round(_root.circle.yMax)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (xmax < _root.circle.xmin)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (ymax < _root.circle.ymin)) && (-1 < _root.circle.jump)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = -2;
activated = false;
}
if (((hitTest(_root.circle) && (ymin < _root.circle.ymax)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if (((((ymin < (_root.circle.ymax - _root.circle.jump)) && (_root.circle.xMin < xMax)) && (xMin < _root.circle.xMax)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 14 MovieClip [coin] "coin" in Frame 4
onClipEvent (enterFrame) {
if (this.hittest(_root.circle) == true) {
coinsound = new Sound(_root);
coinsound.attachSound("coinwav");
coinsound.start();
_root.coincount = _root.coincount - 1;
this.removeMovieClip();
}
if (_root.die == 1) {
this.removeMovieClip();
}
}
Instance of Symbol 36 MovieClip "door2" in Frame 4
onClipEvent (enterFrame) {
if (_root.coincount == 0) {
this._x = 233;
this._y = 75.5;
poof = new Sound();
poof.attachSound("poofwav");
poof.start();
_root.coincount = -1;
}
if (_root.circle.hittest(_root.door2._x, _root.door2._y, false) == true) {
_root.nextFrame();
}
}
Instance of Symbol 46 MovieClip in Frame 4
onClipEvent (load) {
fall = false;
a = 2;
_name = "circle";
jump = 0;
speed = 5;
jumpheight = 10;
maxfall = -10;
jumpsound = new Sound();
jumpsound.attachSound("jumpwav");
}
onClipEvent (enterFrame) {
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if ((Key.isDown(Key.SPACE) && (fall == false)) && (jump == undefined)) {
fall = true;
jump = jumpheight;
jumpsound.start();
if (a == 1) {
this.gotoAndStop(8);
a = 3;
}
if (a == 2) {
this.gotoAndStop(7);
a = 4;
}
}
if (jump != undefined) {
if (fall == true) {
if (a == 1) {
this.gotoAndStop(8);
a = 3;
}
if (a == 2) {
this.gotoAndStop(7);
a = 4;
}
}
if (maxfall < jump) {
jump--;
}
_y = (_y - jump);
}
if (Key.isDown(Key.LEFT) && (8 < _x)) {
_x = (_x - speed);
if (a < 3) {
this.gotoAndStop(5);
}
a = 1;
} else if (a == 1) {
this.gotoAndStop(4);
}
if (Key.isDown(Key.RIGHT) && (_x < 267)) {
_x = (_x + speed);
if ((a < 3) && (a != 1)) {
this.gotoAndStop(2);
}
a = 2;
} else if (a == 2) {
this.gotoAndStop(1);
}
if (a == 3) {
a = 1;
}
if (a == 4) {
a = 2;
}
}
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((xMin < _root.circle.xMax) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if (yMin < (_root.circle.yMax - (_root.circle.jump * 2))) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(yMin) < Math.round(_root.circle.yMax)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (xmax < _root.circle.xmin)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (ymax < _root.circle.ymin)) && (-1 < _root.circle.jump)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = -2;
activated = false;
}
if (((hitTest(_root.circle) && (ymin < _root.circle.ymax)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if (((((ymin < (_root.circle.ymax - _root.circle.jump)) && (_root.circle.xMin < xMax)) && (xMin < _root.circle.xMax)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((xMin < _root.circle.xMax) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if (yMin < (_root.circle.yMax - (_root.circle.jump * 2))) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(yMin) < Math.round(_root.circle.yMax)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (xmax < _root.circle.xmin)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (ymax < _root.circle.ymin)) && (-1 < _root.circle.jump)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = -2;
activated = false;
}
if (((hitTest(_root.circle) && (ymin < _root.circle.ymax)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if (((((ymin < (_root.circle.ymax - _root.circle.jump)) && (_root.circle.xMin < xMax)) && (xMin < _root.circle.xMax)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((xMin < _root.circle.xMax) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if (yMin < (_root.circle.yMax - (_root.circle.jump * 2))) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(yMin) < Math.round(_root.circle.yMax)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (xmax < _root.circle.xmin)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (ymax < _root.circle.ymin)) && (-1 < _root.circle.jump)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = -2;
activated = false;
}
if (((hitTest(_root.circle) && (ymin < _root.circle.ymax)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if (((((ymin < (_root.circle.ymax - _root.circle.jump)) && (_root.circle.xMin < xMax)) && (xMin < _root.circle.xMax)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Frame 5
stop();
var coincount = 10;
_root.lvl = 2;
coin.duplicateMovieClip("coin1", 5);
_root.coin1._x = 80.8;
_root.coin1._y = 123.8;
coin.duplicateMovieClip("coin2", 6);
_root.coin2._x = 32.9;
_root.coin2._y = 82.8;
coin.duplicateMovieClip("coin3", 7);
_root.coin3._x = 58.9;
_root.coin3._y = 82.8;
coin.duplicateMovieClip("coin4", 8);
_root.coin4._x = 84.8;
_root.coin4._y = 82.8;
coin.duplicateMovieClip("coin5", 9);
_root.coin5._x = 127.3;
_root.coin5._y = 33.9;
coin.duplicateMovieClip("coin6", 10);
_root.coin6._x = 147.8;
_root.coin6._y = 33.9;
coin.duplicateMovieClip("coin7", 11);
_root.coin7._x = 186.8;
_root.coin7._y = 82.8;
coin.duplicateMovieClip("coin8", 12);
_root.coin8._x = 213.8;
_root.coin8._y = 82.8;
coin.duplicateMovieClip("coin9", 13);
_root.coin9._x = 241.3;
_root.coin9._y = 82.8;
coin.duplicateMovieClip("coin10", 14);
_root.coin10._x = 188.8;
_root.coin10._y = 123.8;
Instance of Symbol 50 MovieClip "blocker2" in Frame 5
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((xMin < _root.circle.xMax) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if (yMin < (_root.circle.yMax - (_root.circle.jump * 2))) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(yMin) < Math.round(_root.circle.yMax)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (xmax < _root.circle.xmin)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (ymax < _root.circle.ymin)) && (-1 < _root.circle.jump)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = 0;
activated = false;
}
if (((hitTest(_root.circle) && (ymin < _root.circle.ymax)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if (((((ymin < (_root.circle.ymax - _root.circle.jump)) && (_root.circle.xMin < xMax)) && (xMin < _root.circle.xMax)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Instance of Symbol 56 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.circle) == true) {
stopAllSounds();
_root.gotoAndStop(7);
}
}
Instance of Symbol 56 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.circle) == true) {
stopAllSounds();
_root.gotoAndStop(7);
}
}
Instance of Symbol 59 MovieClip "door3" in Frame 5
onClipEvent (enterFrame) {
if (_root.coincount == 0) {
this._x = 137.8;
this._y = 58.6;
poof = new Sound();
poof.attachSound("poofwav");
poof.start();
_root.coincount = -1;
}
if (_root.circle.hittest(_root.door3._x, _root.door3._y, false) == true) {
_root.circle._x = 26.4;
_root.circle._y = 140.3;
_root.gotoAndStop(6);
}
}
Instance of Symbol 60 MovieClip in Frame 5
onClipEvent (load) {
fall = false;
a = 2;
_name = "circle";
jump = 0;
speed = 5;
jumpheight = 10;
maxfall = -8;
jumpsound = new Sound();
jumpsound.attachSound("jumpwav");
}
onClipEvent (enterFrame) {
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if ((Key.isDown(Key.SPACE) && (fall == false)) && (jump == undefined)) {
fall = true;
jump = jumpheight;
jumpsound.start();
if (a == 1) {
this.gotoAndStop(8);
a = 3;
}
if (a == 2) {
this.gotoAndStop(7);
a = 4;
}
}
if (jump != undefined) {
if (fall == true) {
if (a == 1) {
this.gotoAndStop(8);
a = 3;
}
if (a == 2) {
this.gotoAndStop(7);
a = 4;
}
}
if (maxfall < jump) {
jump--;
}
_y = (_y - jump);
}
if (Key.isDown(Key.LEFT) && (8 < _x)) {
_x = (_x - speed);
if (a < 3) {
this.gotoAndStop(5);
}
a = 1;
} else if (a == 1) {
this.gotoAndStop(4);
}
if (Key.isDown(Key.RIGHT) && (_x < 267)) {
_x = (_x + speed);
if ((a < 3) && (a != 1)) {
this.gotoAndStop(2);
}
a = 2;
} else if (a == 2) {
this.gotoAndStop(1);
}
if (a == 3) {
a = 1;
}
if (a == 4) {
a = 2;
}
}
Instance of Symbol 49 MovieClip in Frame 5
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((xMin < _root.circle.xMax) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if (yMin < (_root.circle.yMax - (_root.circle.jump * 2))) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (Math.round(yMin) < Math.round(_root.circle.yMax)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (xmax < _root.circle.xmin)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
if ((hitTest(_root.circle) && (ymax < _root.circle.ymin)) && (-1 < _root.circle.jump)) {
_root.circle.jump = -1 * _root.circle.jump;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = -2;
activated = false;
}
if (((hitTest(_root.circle) && (ymin < _root.circle.ymax)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
if (((((ymin < (_root.circle.ymax - _root.circle.jump)) && (_root.circle.xMin < xMax)) && (xMin < _root.circle.xMax)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
Frame 6
stop();
_root.lvl = 3;
Instance of Symbol 64 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.circle.hittest(this._x, this._y, false) == true) {
_root.gotoAndStop(8);
}
}
Instance of Symbol 65 MovieClip in Frame 6
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((xMin < _root.circle.xMax) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if (yMin < (_root.circle.yMax - (_root.circle.jump * 2))) {
if (_root.circle.jump < 0) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
}
if (Math.round(yMin) < Math.round(_root.circle.yMax)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (xmax < _root.circle.xmin)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = -2;
activated = false;
}
if (((hitTest(_root.circle) && (ymin < _root.circle.ymax)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
if (_root.circle.jump < 0) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (((((ymin < (_root.circle.ymax - _root.circle.jump)) && (_root.circle.xMin < xMax)) && (xMin < _root.circle.xMax)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
if (_root.circle.jump < 0) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
}
Instance of Symbol 65 MovieClip in Frame 6
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((xMin < _root.circle.xMax) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if (yMin < (_root.circle.yMax - (_root.circle.jump * 2))) {
if (_root.circle.jump < 0) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
}
if (Math.round(yMin) < Math.round(_root.circle.yMax)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (xmax < _root.circle.xmin)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = -2;
activated = false;
}
if (((hitTest(_root.circle) && (ymin < _root.circle.ymax)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
if (_root.circle.jump < 0) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (((((ymin < (_root.circle.ymax - _root.circle.jump)) && (_root.circle.xMin < xMax)) && (xMin < _root.circle.xMax)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
if (_root.circle.jump < 0) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
}
Instance of Symbol 65 MovieClip in Frame 6
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((xMin < _root.circle.xMax) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if (yMin < (_root.circle.yMax - (_root.circle.jump * 2))) {
if (_root.circle.jump < 0) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
}
if (Math.round(yMin) < Math.round(_root.circle.yMax)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (xmax < _root.circle.xmin)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = -2;
activated = false;
}
if (((hitTest(_root.circle) && (ymin < _root.circle.ymax)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
if (_root.circle.jump < 0) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (((((ymin < (_root.circle.ymax - _root.circle.jump)) && (_root.circle.xMin < xMax)) && (xMin < _root.circle.xMax)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
if (_root.circle.jump < 0) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
}
Instance of Symbol 65 MovieClip in Frame 6
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((xMin < _root.circle.xMax) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if (yMin < (_root.circle.yMax - (_root.circle.jump * 2))) {
if (_root.circle.jump < 0) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
}
if (Math.round(yMin) < Math.round(_root.circle.yMax)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (xmax < _root.circle.xmin)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = -2;
activated = false;
}
if (((hitTest(_root.circle) && (ymin < _root.circle.ymax)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
if (_root.circle.jump < 0) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (((((ymin < (_root.circle.ymax - _root.circle.jump)) && (_root.circle.xMin < xMax)) && (xMin < _root.circle.xMax)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
if (_root.circle.jump < 0) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
}
Instance of Symbol 65 MovieClip in Frame 6
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((xMin < _root.circle.xMax) && (_root.circle.xMin < xMax)) && (_root.circle.yMax < yMin)) {
if (yMin < (_root.circle.yMax - (_root.circle.jump * 2))) {
if (_root.circle.jump < 0) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
}
if (Math.round(yMin) < Math.round(_root.circle.yMax)) {
if (hitTest(_root.circle) && (_root.circle.xmax < xmin)) {
_root.circle._x = _root.circle._x - _root.circle.speed;
}
if (hitTest(_root.circle) && (xmax < _root.circle.xmin)) {
_root.circle._x = _root.circle._x + _root.circle.speed;
}
}
if (((activated == true) && (!hitTest(_root.circle))) && (_root.circle.jump == undefined)) {
_root.circle.jump = -2;
activated = false;
}
if (((hitTest(_root.circle) && (ymin < _root.circle.ymax)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
if (_root.circle.jump < 0) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
if (((((ymin < (_root.circle.ymax - _root.circle.jump)) && (_root.circle.xMin < xMax)) && (xMin < _root.circle.xMax)) && (_root.circle.jump != undefined)) && (_root.circle._y < _y)) {
if (_root.circle.jump < 0) {
_root.circle._y = ymin - (_root.circle._height / 2);
_root.circle.jump = undefined;
_root.circle.fall = false;
activated = true;
}
}
}
Frame 7
_root.die = 1;
Frame 8
die = 1;
Symbol 29 Button
on (release) {
gotoAndPlay (3);
}
Symbol 46 MovieClip Frame 1
stop();
Symbol 60 MovieClip Frame 1
stop();
Symbol 69 Button
on (release) {
_root.die = 0;
stopAllSounds();
music = new Sound();
music.attachSound("levelmusic");
music.start(0, 100);
gotoAndPlay(_root.lvl + 3);
}
Symbol 72 Button
on (release) {
_root.die = 0;
stopAllSounds();
music = new Sound();
music.attachSound("levelmusic");
music.start(0, 100);
gotoAndPlay (4);
}