Frame 1
stop();
Frame 2
function addNewEnemy(xLocation, yLocation) {
var _local2 = _root.attachMovie("Enemy", "Enemy" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local2._x = xLocation;
_local2._y = yLocation;
enemies.push(_local2);
}
var enemies = [];
addNewEnemy(_root.char._x + 1500, _root.char._y);
Instance of Symbol 78 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
if (Key.isDown(32)) {
_root.ground.gotoAndStop(2);
_root.char._x = 129.35;
_root.char._y = 184.35;
_root.vcam.level.counter++;
_root.gotoAndStop(3);
}
}
}
Instance of Symbol 101 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.time_mc.counter++;
unloadMovie (this);
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y;
reward.field.text = 1;
_root.soundFX.attachSound("coin.wav");
_root.soundFX.start();
}
}
Instance of Symbol 101 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.time_mc.counter++;
unloadMovie (this);
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y;
reward.field.text = 1;
_root.soundFX.attachSound("coin.wav");
_root.soundFX.start();
}
}
Instance of Symbol 101 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.time_mc.counter++;
unloadMovie (this);
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y;
reward.field.text = 1;
_root.soundFX.attachSound("coin.wav");
_root.soundFX.start();
}
}
Instance of Symbol 104 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.hp.gotoAndStop(1);
unloadMovie (this);
_root.soundFX.attachSound("hp+.wav");
_root.soundFX.start();
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y + 0;
reward.field.text = "HP+";
}
}
Instance of Symbol 109 MovieClip in Frame 2
onClipEvent (load) {
this.gotoAndStop(1);
_root.ground.gate2.gotoAndStop();
}
onClipEvent (keyUp) {
if (_root.char.hitTest(this)) {
if (this._currentframe == 1) {
if (Key.getCode() == 32) {
_root.ground.gate.gotoAndPlay(2);
_root.soundFX.attachSound("gate.wav");
_root.soundFX.start();
this.gotoAndStop(2);
_root.soundFX.attachSound("button.wav");
_root.soundFX.start();
}
} else if (Key.getCode() == 32) {
_root.ground.gate.gotoAndPlay(21);
_root.soundFX.attachSound("gate.wav");
_root.soundFX.start();
this.gotoAndStop(1);
_root.soundFX.attachSound("button.wav");
_root.soundFX.start();
}
}
}
Instance of Symbol 109 MovieClip "button1" in Frame 2
onClipEvent (load) {
this.gotoAndStop(1);
_root.ground.gate2.gotoAndStop();
}
onClipEvent (keyUp) {
if (_root.char.hitTest(this)) {
if (this._currentframe == 1) {
if (Key.getCode() == 32) {
_root.ground.gate2.gotoAndPlay(2);
_root.soundFX.attachSound("gate.wav");
_root.soundFX.start();
this.gotoAndStop(2);
_root.button2.gotoAndStop(2);
_root.soundFX.attachSound("button.wav");
_root.soundFX.start();
}
} else if (Key.getCode() == 32) {
_root.ground.gate2.gotoAndPlay(21);
_root.soundFX.attachSound("gate.wav");
_root.soundFX.start();
this.gotoAndStop(1);
_root.button2.gotoAndStop(1);
_root.soundFX.attachSound("button.wav");
_root.soundFX.start();
}
}
}
Instance of Symbol 109 MovieClip "button2" in Frame 2
onClipEvent (load) {
this.gotoAndStop(1);
_root.ground.gate2.gotoAndStop();
}
onClipEvent (keyUp) {
if (_root.char.hitTest(this)) {
if (this._currentframe == 1) {
if (Key.getCode() == 32) {
_root.ground.gate2.gotoAndPlay(2);
_root.soundFX.attachSound("gate.wav");
_root.soundFX.start();
this.gotoAndStop(2);
_root.button1.gotoAndStop(2);
_root.soundFX.attachSound("button.wav");
_root.soundFX.start();
}
} else if (Key.getCode() == 32) {
_root.ground.gate2.gotoAndPlay(21);
_root.soundFX.attachSound("gate.wav");
_root.soundFX.start();
this.gotoAndStop(1);
_root.button1.gotoAndStop(1);
_root.soundFX.attachSound("button.wav");
_root.soundFX.start();
}
}
}
Instance of Symbol 138 MovieClip "vcam" in Frame 2
onClipEvent (enterFrame) {
_y = (_y + ((_root.char._y - _y) / 4));
_x = (_x + ((_root.char._x - _x) / 4));
}
Frame 3
function addNewEnemy(xLocation, yLocation) {
var _local2 = _root.attachMovie("Enemy", "Enemy" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local2._x = xLocation;
_local2._y = yLocation;
enemies.push(_local2);
}
var enemies = [];
addNewEnemy(_root.char._x + 1100, _root.char._y - 150);
Instance of Symbol 78 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
if (Key.isDown(32)) {
_root.ground.gotoAndStop(3);
_root.char._x = 475.35;
_root.char._y = -554.35;
_root.vcam.level.counter++;
_root.gotoAndStop(4);
}
}
}
Instance of Symbol 145 MovieClip "ladder" in Frame 3
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
if (Key.isDown(87)) {
_root.char._y = _root.char._y - 8;
_root.char.grav = 0;
_root.char.gotoAndStop(17);
_root.char.body_mc.play(1);
}
}
}
Instance of Symbol 145 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
if (Key.isDown(87)) {
_root.char._y = _root.char._y - 8;
_root.char.grav = 0;
_root.char.gotoAndStop(17);
_root.char.body_mc.play(1);
}
}
}
Instance of Symbol 145 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
if (Key.isDown(87)) {
_root.char._y = _root.char._y - 8;
_root.char.grav = 0;
_root.char.gotoAndStop(17);
_root.char.body_mc.play(1);
}
}
}
Instance of Symbol 145 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
if (Key.isDown(87)) {
_root.char._y = _root.char._y - 8;
_root.char.grav = 0;
_root.char.gotoAndStop(17);
_root.char.body_mc.play(1);
}
}
}
Instance of Symbol 104 MovieClip "medikit1" in Frame 3
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.hp.gotoAndStop(1);
unloadMovie (this);
_root.soundFX.attachSound("hp+.wav");
_root.soundFX.start();
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y + 0;
reward.field.text = "HP+";
}
}
Instance of Symbol 101 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.time_mc.counter++;
unloadMovie (this);
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y;
reward.field.text = 1;
}
}
Instance of Symbol 101 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.time_mc.counter++;
unloadMovie (this);
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y;
reward.field.text = 1;
_root.soundFX.attachSound("coin.wav");
_root.soundFX.start();
}
}
Instance of Symbol 101 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.time_mc.counter++;
unloadMovie (this);
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y;
reward.field.text = 1;
_root.soundFX.attachSound("coin.wav");
_root.soundFX.start();
}
}
Instance of Symbol 101 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.time_mc.counter++;
unloadMovie (this);
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y;
reward.field.text = 1;
_root.soundFX.attachSound("coin.wav");
_root.soundFX.start();
}
}
Instance of Symbol 101 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.time_mc.counter++;
unloadMovie (this);
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y;
reward.field.text = 1;
_root.soundFX.attachSound("coin.wav");
_root.soundFX.start();
}
}
Instance of Symbol 101 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.time_mc.counter++;
unloadMovie (this);
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y;
reward.field.text = 1;
_root.soundFX.attachSound("coin.wav");
_root.soundFX.start();
}
}
Instance of Symbol 109 MovieClip in Frame 3
onClipEvent (load) {
this.gotoAndStop(1);
_root.ground.gate3.gotoAndStop(1);
_root.ground.gate4.gotoAndStop(1);
}
onClipEvent (keyUp) {
if (_root.char.hitTest(this)) {
if (this._currentframe == 1) {
if (Key.getCode() == 32) {
_root.ground.gate3.gotoAndPlay(2);
_root.ground.gate4.gotoAndPlay(2);
_root.soundFX.attachSound("gate.wav");
_root.soundFX.start();
this.gotoAndStop(2);
_root.soundFX.attachSound("button.wav");
_root.soundFX.start();
}
} else if (Key.getCode() == 32) {
_root.ground.gate3.gotoAndPlay(21);
_root.ground.gate4.gotoAndPlay(21);
_root.soundFX.attachSound("gate.wav");
_root.soundFX.start();
this.gotoAndStop(1);
_root.soundFX.attachSound("button.wav");
_root.soundFX.start();
}
}
}
Frame 4
function addNewEnemy(xLocation, yLocation) {
var _local2 = _root.attachMovie("Enemy", "Enemy" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local2._x = xLocation;
_local2._y = yLocation;
enemies.push(_local2);
}
var enemies = [];
addNewEnemy(700, -544);
addNewEnemy(500, -144);
addNewEnemy(900, 10);
Instance of Symbol 78 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
if (Key.isDown(32)) {
_root.ground.gotoAndStop(4);
_root.char._x = 1273;
_root.char._y = 140;
_root.vcam.level.counter++;
_root.gotoAndStop(5);
}
}
}
Instance of Symbol 145 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
if (Key.isDown(87)) {
_root.char._y = _root.char._y - 8;
_root.char.grav = 0;
_root.char.gotoAndStop(17);
_root.char.body_mc.play(1);
}
}
}
Instance of Symbol 145 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
if (Key.isDown(87)) {
_root.char._y = _root.char._y - 8;
_root.char.grav = 0;
_root.char.gotoAndStop(17);
_root.char.body_mc.play(1);
}
}
}
Instance of Symbol 101 MovieClip "c5" in Frame 4
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.time_mc.counter++;
unloadMovie (this);
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y;
reward.field.text = 1;
_root.soundFX.attachSound("coin.wav");
_root.soundFX.start();
}
}
Instance of Symbol 104 MovieClip "m1" in Frame 4
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.hp.gotoAndStop(1);
unloadMovie (this);
_root.soundFX.attachSound("hp+.wav");
_root.soundFX.start();
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y + 0;
reward.field.text = "HP+";
}
}
Instance of Symbol 104 MovieClip "m2" in Frame 4
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.hp.gotoAndStop(1);
unloadMovie (this);
_root.soundFX.attachSound("hp+.wav");
_root.soundFX.start();
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y + 0;
reward.field.text = "HP+";
}
}
Instance of Symbol 109 MovieClip in Frame 4
onClipEvent (load) {
this.gotoAndStop(1);
_root.ground.gate5.gotoAndStop(1);
}
onClipEvent (keyUp) {
if (_root.char.hitTest(this)) {
if (this._currentframe == 1) {
if (Key.getCode() == 32) {
_root.ground.gate5.gotoAndPlay(2);
_root.soundFX.attachSound("gate.wav");
_root.soundFX.start();
this.gotoAndStop(2);
_root.soundFX.attachSound("button.wav");
_root.soundFX.start();
}
} else if (Key.getCode() == 32) {
_root.ground.gate5.gotoAndPlay(21);
_root.soundFX.attachSound("gate.wav");
_root.soundFX.start();
this.gotoAndStop(1);
_root.soundFX.attachSound("button.wav");
_root.soundFX.start();
}
}
}
Frame 5
function addNewEnemy(xLocation, yLocation) {
var _local2 = _root.attachMovie("Enemy", "Enemy" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local2._x = xLocation;
_local2._y = yLocation;
enemies.push(_local2);
}
var enemies = [];
addNewEnemy(0, 308);
addNewEnemy(100, 308);
addNewEnemy(2300, 314);
addNewEnemy(2100, 314);
Instance of Symbol 78 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
if (Key.isDown(32)) {
_root.ground.gotoAndStop(5);
_root.char._x = -90.35;
_root.char._y = 184.35;
_root.vcam.level.counter++;
_root.gotoAndStop(6);
}
}
}
Instance of Symbol 101 MovieClip "c8" in Frame 5
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.time_mc.counter++;
unloadMovie (this);
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y;
reward.field.text = 1;
_root.soundFX.attachSound("coin.wav");
_root.soundFX.start();
}
}
Instance of Symbol 101 MovieClip "c7" in Frame 5
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.time_mc.counter++;
unloadMovie (this);
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y;
reward.field.text = 1;
_root.soundFX.attachSound("coin.wav");
_root.soundFX.start();
}
}
Instance of Symbol 104 MovieClip "m3" in Frame 5
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.hp.gotoAndStop(1);
unloadMovie (this);
_root.soundFX.attachSound("hp+.wav");
_root.soundFX.start();
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y + 0;
reward.field.text = "HP+";
}
}
Instance of Symbol 101 MovieClip "c10" in Frame 5
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.time_mc.counter++;
unloadMovie (this);
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y;
reward.field.text = 1;
_root.soundFX.attachSound("coin.wav");
_root.soundFX.start();
}
}
Instance of Symbol 101 MovieClip "c9" in Frame 5
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.time_mc.counter++;
unloadMovie (this);
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y;
reward.field.text = 1;
_root.soundFX.attachSound("coin.wav");
_root.soundFX.start();
}
}
Instance of Symbol 109 MovieClip in Frame 5
onClipEvent (load) {
this.gotoAndStop(1);
_root.ground.gate6.gotoAndStop(1);
}
onClipEvent (keyUp) {
if (_root.char.hitTest(this)) {
if (this._currentframe == 1) {
if (Key.getCode() == 32) {
_root.ground.gate6.gotoAndPlay(2);
_root.soundFX.attachSound("gate.wav");
_root.soundFX.start();
this.gotoAndStop(2);
_root.soundFX.attachSound("button.wav");
_root.soundFX.start();
}
} else if (Key.getCode() == 32) {
_root.ground.gate6.gotoAndPlay(21);
_root.soundFX.attachSound("gate.wav");
_root.soundFX.start();
this.gotoAndStop(1);
_root.soundFX.attachSound("button.wav");
_root.soundFX.start();
}
}
}
Instance of Symbol 109 MovieClip in Frame 5
onClipEvent (load) {
this.gotoAndStop(1);
_root.ground.gate7.gotoAndStop(1);
}
onClipEvent (keyUp) {
if (_root.char.hitTest(this)) {
if (this._currentframe == 1) {
if (Key.getCode() == 32) {
_root.ground.gate7.gotoAndPlay(2);
_root.soundFX.attachSound("gate.wav");
_root.soundFX.start();
this.gotoAndStop(2);
_root.soundFX.attachSound("button.wav");
_root.soundFX.start();
}
} else if (Key.getCode() == 32) {
_root.ground.gate7.gotoAndPlay(21);
_root.soundFX.attachSound("gate.wav");
_root.soundFX.start();
this.gotoAndStop(1);
_root.soundFX.attachSound("button.wav");
_root.soundFX.start();
}
}
}
Frame 6
function addNewEnemy(xLocation, yLocation) {
var _local2 = _root.attachMovie("Enemy", "Enemy" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local2._x = xLocation;
_local2._y = yLocation;
enemies.push(_local2);
}
var enemies = [];
addNewEnemy(100, 300);
addNewEnemy(800, 300);
addNewEnemy(1500, 300);
addNewEnemy(500, -300);
addNewEnemy(-100, -300);
addNewEnemy(800, -900);
addNewEnemy(1000, -900);
addNewEnemy(2500, -900);
Instance of Symbol 78 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
if (Key.isDown(32)) {
_root.ground.gotoAndStop(6);
_root.char._x = 0.35;
_root.char._y = 184.35;
_root.vcam.level.counter++;
_root.gotoAndStop(7);
}
}
}
Instance of Symbol 101 MovieClip "c11" in Frame 6
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.time_mc.counter++;
unloadMovie (this);
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y;
reward.field.text = 1;
_root.soundFX.attachSound("coin.wav");
_root.soundFX.start();
}
}
Instance of Symbol 101 MovieClip "c12" in Frame 6
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.time_mc.counter++;
unloadMovie (this);
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y;
reward.field.text = 1;
_root.soundFX.attachSound("coin.wav");
_root.soundFX.start();
}
}
Instance of Symbol 104 MovieClip "m5" in Frame 6
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.hp.gotoAndStop(1);
unloadMovie (this);
_root.soundFX.attachSound("hp+.wav");
_root.soundFX.start();
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y + 0;
reward.field.text = "HP+";
}
}
Instance of Symbol 101 MovieClip "c17" in Frame 6
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.time_mc.counter++;
unloadMovie (this);
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y;
reward.field.text = 1;
_root.soundFX.attachSound("coin.wav");
_root.soundFX.start();
}
}
Instance of Symbol 101 MovieClip "c15" in Frame 6
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.time_mc.counter++;
unloadMovie (this);
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y;
reward.field.text = 1;
_root.soundFX.attachSound("coin.wav");
_root.soundFX.start();
}
}
Instance of Symbol 101 MovieClip "c13" in Frame 6
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.time_mc.counter++;
unloadMovie (this);
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y;
reward.field.text = 1;
_root.soundFX.attachSound("coin.wav");
_root.soundFX.start();
}
}
Instance of Symbol 101 MovieClip "c14" in Frame 6
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.time_mc.counter++;
unloadMovie (this);
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y;
reward.field.text = 1;
_root.soundFX.attachSound("coin.wav");
_root.soundFX.start();
}
}
Instance of Symbol 101 MovieClip "c18" in Frame 6
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.time_mc.counter++;
unloadMovie (this);
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y;
reward.field.text = 1;
_root.soundFX.attachSound("coin.wav");
_root.soundFX.start();
}
}
Instance of Symbol 101 MovieClip "c16" in Frame 6
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.time_mc.counter++;
unloadMovie (this);
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y;
reward.field.text = 1;
_root.soundFX.attachSound("coin.wav");
_root.soundFX.start();
}
}
Instance of Symbol 104 MovieClip "m4" in Frame 6
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.hp.gotoAndStop(1);
unloadMovie (this);
_root.soundFX.attachSound("hp+.wav");
_root.soundFX.start();
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y + 0;
reward.field.text = "HP+";
}
}
Instance of Symbol 104 MovieClip "m6" in Frame 6
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.hp.gotoAndStop(1);
unloadMovie (this);
_root.soundFX.attachSound("hp+.wav");
_root.soundFX.start();
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y + 0;
reward.field.text = "HP+";
}
}
Instance of Symbol 109 MovieClip in Frame 6
onClipEvent (load) {
this.gotoAndStop(1);
_root.ground.gate8.gotoAndStop(1);
}
onClipEvent (keyUp) {
if (_root.char.hitTest(this)) {
if (this._currentframe == 1) {
if (Key.getCode() == 32) {
_root.ground.gate8.gotoAndPlay(2);
_root.soundFX.attachSound("gate.wav");
_root.soundFX.start();
this.gotoAndStop(2);
_root.soundFX.attachSound("button.wav");
_root.soundFX.start();
}
} else if (Key.getCode() == 32) {
_root.ground.gate8.gotoAndPlay(21);
_root.soundFX.attachSound("gate.wav");
_root.soundFX.start();
this.gotoAndStop(1);
_root.soundFX.attachSound("button.wav");
_root.soundFX.start();
}
}
}
Frame 7
function addNewEnemy(xLocation, yLocation) {
var _local2 = _root.attachMovie("Enemy", "Enemy" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local2._x = xLocation;
_local2._y = yLocation;
enemies.push(_local2);
}
var enemies = [];
addNewEnemy(276, 0);
addNewEnemy(1460, 0);
addNewEnemy(2000, 0);
addNewEnemy(2800, 0);
addNewEnemy(2900, 0);
addNewEnemy(1462, -400);
addNewEnemy(2317, -400);
addNewEnemy(1000, -400);
addNewEnemy(2371, -800);
addNewEnemy(1256, -900);
addNewEnemy(192, -900);
addNewEnemy(20, -900);
Instance of Symbol 78 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
if (Key.isDown(32)) {
_root.gotoAndStop(9);
}
}
}
Instance of Symbol 101 MovieClip "c24" in Frame 7
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.time_mc.counter++;
unloadMovie (this);
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y;
reward.field.text = 1;
_root.soundFX.attachSound("coin.wav");
_root.soundFX.start();
}
}
Instance of Symbol 101 MovieClip "c25" in Frame 7
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.time_mc.counter++;
unloadMovie (this);
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y;
reward.field.text = 1;
_root.soundFX.attachSound("coin.wav");
_root.soundFX.start();
}
}
Instance of Symbol 104 MovieClip "m8" in Frame 7
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.hp.gotoAndStop(1);
unloadMovie (this);
_root.soundFX.attachSound("hp+.wav");
_root.soundFX.start();
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y + 0;
reward.field.text = "HP+";
}
}
Instance of Symbol 101 MovieClip "c22" in Frame 7
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.time_mc.counter++;
unloadMovie (this);
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y;
reward.field.text = 1;
_root.soundFX.attachSound("coin.wav");
_root.soundFX.start();
}
}
Instance of Symbol 101 MovieClip "c20" in Frame 7
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.time_mc.counter++;
unloadMovie (this);
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y;
reward.field.text = 1;
_root.soundFX.attachSound("coin.wav");
_root.soundFX.start();
}
}
Instance of Symbol 101 MovieClip "c26" in Frame 7
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.time_mc.counter++;
unloadMovie (this);
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y;
reward.field.text = 1;
_root.soundFX.attachSound("coin.wav");
_root.soundFX.start();
}
}
Instance of Symbol 101 MovieClip "c27" in Frame 7
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.time_mc.counter++;
unloadMovie (this);
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y;
reward.field.text = 1;
_root.soundFX.attachSound("coin.wav");
_root.soundFX.start();
}
}
Instance of Symbol 101 MovieClip "c23" in Frame 7
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.time_mc.counter++;
unloadMovie (this);
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y;
reward.field.text = 1;
_root.soundFX.attachSound("coin.wav");
_root.soundFX.start();
}
}
Instance of Symbol 101 MovieClip "c21" in Frame 7
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.time_mc.counter++;
unloadMovie (this);
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y;
reward.field.text = 1;
_root.soundFX.attachSound("coin.wav");
_root.soundFX.start();
}
}
Instance of Symbol 104 MovieClip "m7" in Frame 7
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.hp.gotoAndStop(1);
unloadMovie (this);
_root.soundFX.attachSound("hp+.wav");
_root.soundFX.start();
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y + 0;
reward.field.text = "HP+";
}
}
Instance of Symbol 104 MovieClip "m9" in Frame 7
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.hp.gotoAndStop(1);
unloadMovie (this);
_root.soundFX.attachSound("hp+.wav");
_root.soundFX.start();
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y + 0;
reward.field.text = "HP+";
}
}
Instance of Symbol 101 MovieClip "c30" in Frame 7
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.time_mc.counter++;
unloadMovie (this);
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y;
reward.field.text = 1;
_root.soundFX.attachSound("coin.wav");
_root.soundFX.start();
}
}
Instance of Symbol 101 MovieClip "c28" in Frame 7
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.time_mc.counter++;
unloadMovie (this);
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y;
reward.field.text = 1;
_root.soundFX.attachSound("coin.wav");
_root.soundFX.start();
}
}
Instance of Symbol 101 MovieClip "c31" in Frame 7
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.time_mc.counter++;
unloadMovie (this);
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y;
reward.field.text = 1;
_root.soundFX.attachSound("coin.wav");
_root.soundFX.start();
}
}
Instance of Symbol 101 MovieClip "c29" in Frame 7
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.time_mc.counter++;
unloadMovie (this);
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y;
reward.field.text = 1;
_root.soundFX.attachSound("coin.wav");
_root.soundFX.start();
}
}
Instance of Symbol 104 MovieClip "m10" in Frame 7
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.vcam.hp.gotoAndStop(1);
unloadMovie (this);
_root.soundFX.attachSound("hp+.wav");
_root.soundFX.start();
var reward = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
reward._x = _x;
reward._y = _y + 0;
reward.field.text = "HP+";
}
}
Instance of Symbol 109 MovieClip in Frame 7
onClipEvent (load) {
this.gotoAndStop(1);
_root.ground.gate9.gotoAndStop(1);
_root.ground.gate10.gotoAndStop(1);
}
onClipEvent (keyUp) {
if (_root.char.hitTest(this)) {
if (this._currentframe == 1) {
if (Key.getCode() == 32) {
_root.ground.gate9.gotoAndPlay(2);
_root.ground.gate10.gotoAndPlay(2);
_root.soundFX.attachSound("gate.wav");
_root.soundFX.start();
this.gotoAndStop(2);
_root.soundFX.attachSound("button.wav");
_root.soundFX.start();
}
} else if (Key.getCode() == 32) {
_root.ground.gate10.gotoAndPlay(21);
_root.ground.gate10.gotoAndPlay(21);
_root.soundFX.attachSound("gate.wav");
_root.soundFX.start();
this.gotoAndStop(1);
_root.soundFX.attachSound("button.wav");
_root.soundFX.start();
}
}
}
Symbol 12 MovieClip [RewardPoints] Frame 1
#initclip 14
Object.registerClass("RewardPoints", RewardPoints);
#endinitclip
Symbol 18 MovieClip [Explosion] Frame 1
#initclip 8
Object.registerClass("Explosion", Explosion);
#endinitclip
Symbol 20 MovieClip [EnemyBullet] Frame 1
#initclip 9
Object.registerClass("EnemyBullet", EnemyBullet);
#endinitclip
Symbol 27 MovieClip Frame 1
stop();
Symbol 31 MovieClip Frame 1
stop();
Symbol 32 MovieClip [Enemy] Frame 1
#initclip 10
Object.registerClass("Enemy", Enemy);
#endinitclip
stop();
Symbol 33 MovieClip [Bullet] Frame 1
#initclip 11
Object.registerClass("Bullet", Bullet);
#endinitclip
Symbol 36 MovieClip [Blood] Frame 1
#initclip 12
Object.registerClass("Blood", Blood);
#endinitclip
Symbol 43 MovieClip Frame 1
stop();
Symbol 47 MovieClip Frame 1
stop();
Symbol 53 MovieClip [Character] Frame 1
#initclip 13
Object.registerClass("Character", Character);
#endinitclip
stop();
Symbol 58 Button
on (release) {
_root.gotoAndStop(2);
}
on (keyPress "<Space>") {
_root.gotoAndStop(2);
stop();
}
Symbol 162 MovieClip [__Packages.Explosion] Frame 0
class Explosion extends MovieClip
{
var _totalframes, _currentframe, removeMovieClip;
function Explosion () {
super();
}
function onEnterFrame() {
if (_currentframe == _totalframes) {
removeMovieClip();
}
}
}
Symbol 163 MovieClip [__Packages.EnemyBullet] Frame 0
class EnemyBullet extends MovieClip
{
var speed, _x, _width, _height, _y, unloadMovie, hitTest;
function EnemyBullet () {
super();
}
function onLoad() {
for (var _local3 in _root.enemies) {
if (_root.enemies[_local3]._x > _root.char._x) {
speed = 30;
} else {
speed = -30;
}
}
}
function onEnterFrame() {
_x = _x - speed;
if (_root.ground.hitTest(_x + (_width / 2), _y - (_height / 2), true)) {
explode();
unloadMovie();
}
if (hitTest(_root.char)) {
unloadMovie();
_root.char.takeDamage();
for (var _local3 in _root.enemies) {
if (_root.char._x < _root.enemies[_local3]._x) {
_root.char._x = _root.char._x - 8;
} else {
_root.char._x = _root.char._x + 8;
}
}
}
}
function explode() {
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_root.soundFX.attachSound("smallexplosion.wav");
_root.soundFX.start();
}
}
Symbol 164 MovieClip [__Packages.Enemy] Frame 0
class Enemy extends MovieClip
{
var ground, grav, gravity, speed, maxJump, touchingGround, shootLimter, health, _y, distance, _x, gotoAndStop, last_move, _width, _height, hitTest, unloadMovie;
function Enemy () {
super();
}
function onLoad() {
ground = _root.ground;
grav = 0;
gravity = 3;
speed = 14;
maxJump = -20;
touchingGround = false;
shootLimter = 0;
health = 100;
}
function onEnterFrame() {
_y = _y + grav;
grav = grav + gravity;
distance = _x - _root.char._x;
if ((_root.char._x < _x) && (distance < 380)) {
gotoAndStop(1);
last_move = "left";
} else {
gotoAndStop(5);
last_move = "right";
}
while (ground.hitTest(_x, _y, true)) {
_y = _y - gravity;
grav = 0;
shootLimter = shootLimter + 1;
if ((((distance < 380) && (distance > -380)) && (shootLimter > 4)) && (((_root.char._y - _y) <= 100) && ((_root.char._y - _y) >= -100))) {
shootLimter = 0;
var _local3 = _root.attachMovie("EnemyBullet", "EnemyBullet" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.soundFX.attachSound("shoot.wav");
_root.soundFX.start();
if (last_move == "left") {
_local3._x = _x - 80;
} else {
_local3._x = _x + 100;
}
_local3._y = _y - 90;
}
}
if (ground.hitTest(_x, _y + 5, true)) {
touchingGround = true;
if (last_move == "left") {
gotoAndStop(1);
} else {
gotoAndStop(5);
}
} else {
touchingGround = false;
}
if ((_root.char._y > (_y + 10)) && (touchingGround)) {
if (last_move == "left") {
gotoAndStop(9);
} else {
gotoAndStop(13);
}
grav = maxJump;
}
if ((_root.char._x < (_x - 200)) && (((_root.char._y - _y) <= 100) && ((_root.char._y - _y) >= -100))) {
_x = _x - speed;
gotoAndStop(1);
for (var _local4 in _root.enemies) {
_root.enemies[_local4].enemy_mc.play(3);
}
last_move = "left";
}
if ((_root.char._x > (_x + 200)) && (((_root.char._y - _y) <= 100) && ((_root.char._y - _y) >= -100))) {
_x = _x + speed;
gotoAndStop(5);
for (var _local4 in _root.enemies) {
_root.enemies[_local4].enemy_mc2.play(3);
}
last_move = "right";
}
if (ground.hitTest(_x + (_width / 2), _y - (_height / 2), true)) {
_x = _x - speed;
}
if (ground.hitTest(_x - (_width / 2), _y - (_height / 2), true)) {
_x = _x + speed;
}
if (ground.hitTest(_x, _y - _height, true)) {
grav = 3;
}
if (hitTest(_root.char)) {
_x = _x + 10;
}
}
function explode() {
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y - 100;
_root.soundFX.attachSound("explosion.wav");
_root.soundFX.start();
}
function blood() {
var _local3 = _root.attachMovie("Blood", "Blood" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y - 100;
}
function takeDamage() {
health = health - 10;
blood();
if (health < 1) {
explode();
unloadMovie();
_root.vcam.time_mc.counter++;
var _local3 = _root.attachMovie("RewardPoints", "RewardPoints" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y + 500;
_local3.field.text = 1;
}
}
}
Symbol 165 MovieClip [__Packages.Bullet] Frame 0
class Bullet extends MovieClip
{
var speed, _x, _width, _height, _y, unloadMovie, hitTest;
function Bullet () {
super();
}
function onLoad() {
if (_root.char.last_move == "right") {
speed = -90;
} else {
speed = 90;
}
}
function onEnterFrame() {
_x = _x - speed;
if (_root.ground.hitTest(_x + (_width / 2), _y - (_height / 2), true)) {
explode();
unloadMovie();
}
for (var _local3 in _root.enemies) {
if (hitTest(_root.enemies[_local3])) {
if (_root.char._x < _root.enemies[_local3]._x) {
_root.enemies[_local3]._x = _root.enemies[_local3]._x + 10;
} else {
_root.enemies[_local3]._x = _root.enemies[_local3]._x - 10;
}
unloadMovie();
_root.enemies[_local3].takeDamage();
}
}
}
function explode() {
var _local3 = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_root.soundFX.attachSound("smallexplosion.wav");
_root.soundFX.start();
}
}
Symbol 166 MovieClip [__Packages.Blood] Frame 0
class Blood extends MovieClip
{
var _totalframes, _currentframe, removeMovieClip;
function Blood () {
super();
}
function onEnterFrame() {
if (_currentframe == _totalframes) {
removeMovieClip();
}
}
}
Symbol 167 MovieClip [__Packages.Character] Frame 0
class Character extends MovieClip
{
var ground, grav, gravity, speed, maxJump, touchingGround, last_move, _y, _x, gotoAndStop, _width, _height, onMouseDown;
function Character () {
super();
}
function onLoad() {
ground = _root.ground;
grav = 0;
gravity = 3;
speed = 19;
maxJump = -22;
touchingGround = false;
last_move = "right";
_root.soundFX = new Sound();
_root.backgroundMusic = new Sound();
_root.backgroundMusic.attachSound("music.mp3");
_root.backgroundMusic.start(1, 1000);
}
function onEnterFrame() {
_y = _y + grav;
grav = grav + gravity;
while (ground.hitTest(_x, _y, true)) {
_y = _y - gravity;
grav = 0;
}
if (ground.hitTest(_x, _y + 5, true)) {
touchingGround = true;
if (last_move == "right") {
gotoAndStop(1);
} else {
gotoAndStop(5);
}
} else {
touchingGround = false;
}
if (Key.isDown(87) && (touchingGround)) {
if (last_move == "right") {
gotoAndStop(9);
} else {
gotoAndStop(13);
}
grav = maxJump;
_root.soundFX.attachSound("jump.wav");
_root.soundFX.start();
}
if (Key.isDown(68)) {
_x = _x + speed;
gotoAndStop(1);
if (touchingGround) {
_root.char.body_mc.play(3);
} else {
gotoAndStop(9);
}
last_move = "right";
}
if (Key.isDown(65)) {
_x = _x - speed;
gotoAndStop(5);
if (touchingGround) {
_root.char.body_mc2.play(3);
} else {
gotoAndStop(13);
}
last_move = "left";
}
if (ground.hitTest(_x + (_width / 2), _y - (_height / 2), true)) {
_x = _x - speed;
}
if (ground.hitTest(_x - (_width / 2), _y - (_height / 2), true)) {
_x = _x + speed;
}
if (ground.hitTest(_x, _y - _height, true)) {
grav = 3;
}
onMouseDown = function () {
var _local3 = _root.attachMovie("Bullet", "Bullet" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.soundFX.attachSound("shoot.wav");
_root.soundFX.start();
if (this.last_move == "right") {
_local3._x = _root.char._x - 10;
} else {
_local3._x = _root.char._x;
}
_local3._y = _root.char._y - 115;
};
}
function blood() {
var _local3 = _root.attachMovie("Blood", "Blood" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y - 100;
}
function takeDamage() {
blood();
_root.vcam.hp.nextFrame();
}
}
Symbol 168 MovieClip [__Packages.RewardPoints] Frame 0
class RewardPoints extends MovieClip
{
var _alpha, removeMovieClip;
function RewardPoints () {
super();
}
function onEnterFrame() {
_alpha = _alpha - 2;
if (_alpha < 0) {
removeMovieClip();
}
}
}
Symbol 87 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 20
stop();
Symbol 98 MovieClip Frame 1
stop();
Instance of Symbol 87 MovieClip "gate" in Symbol 98 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 87 MovieClip "gate2" in Symbol 98 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
}
Symbol 109 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 17
_root.gotoAndStop(8);
Symbol 137 Button
on (release) {
_root.ground.gotoAndStop(6);
_root.char._x = -200;
_root.char._y = 184.35;
_root.vcam.level.counter++;
_root.gotoAndStop(7);
}
Symbol 138 MovieClip Frame 1
function camControl() {
rp.x = _x;
rp.y = _y - 200;
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);
}
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;
Symbol 160 Button
on (release) {
_root.gotoAndStop(1);
}