Frame 1
Stage.showMenu = false;
Frame 2
stop();
Frame 3
stop();
Frame 4
stop();
timeit = 60;
max = 2;
score = 0;
onEnterFrame = function () {
timeit--;
if (timeit <= 0) {
max++;
timeit = 60;
_root.enemy.duplicateMovieClip("enemy2" + max, _root.getNextHighestDepth());
}
};
Instance of Symbol 36 MovieClip "bbs" in Frame 4
onClipEvent (enterFrame) {
_x = (_x + (Math.sin(pointer._rotation * (Math.PI/180)) * 5));
_y = (_y + ((Math.cos(pointer._rotation * (Math.PI/180)) * 5) * -1));
if (_y > Stage.height) {
_y = Stage.height;
}
if (_y < 0) {
_y = 0;
}
if (_x > Stage.width) {
_x = Stage.width;
}
if (_x < 0) {
_x = 0;
}
}
Instance of Symbol 42 MovieClip "denvish" in Frame 4
onClipEvent (load) {
speed = 7;
}
onClipEvent (enterFrame) {
if (Key.isDown(39) && (_currentframe == 1)) {
_rotation = (_rotation + speed);
}
if (Key.isDown(37) && (_currentframe == 1)) {
_rotation = (_rotation - speed);
}
if (Key.isDown(38) && (_currentframe == 1)) {
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * speed));
_y = (_y + ((Math.cos(_rotation * (Math.PI/180)) * speed) * -1));
}
if (Key.isDown(32) && (_currentframe == 1)) {
play();
_root.bob.play();
}
if (_y > Stage.height) {
_y = 0;
}
if (_y < 0) {
_y = Stage.height;
}
if (_x < 0) {
_x = Stage.width;
}
if (_x > Stage.width) {
_x = 0;
}
}
Instance of Symbol 44 MovieClip "enemy" in Frame 4
onClipEvent (load) {
currentframe = _root._currentframe;
backup = false;
backleft = false;
backdown = false;
backright = false;
moving = true;
backspeed = 20;
_rotation = random(360);
timer = 2 + random(25);
_x = random(Stage.width);
_y = random(Stage.height);
}
onClipEvent (enterFrame) {
timer--;
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * 2));
_y = (_y + ((Math.cos(_rotation * (Math.PI/180)) * 2) * -1));
if (_y > Stage.height) {
_y = Stage.height;
}
if (timer <= 0) {
_rotation = random(360);
timer = 2 + random(25);
}
if (_y < 0) {
_y = 0;
}
if (_x > Stage.width) {
_x = Stage.width;
}
if (_x < 0) {
_x = 0;
}
if (backup) {
backspeed--;
_y = (_y - backspeed);
}
if (backdown) {
backspeed--;
_y = (_y + backspeed);
}
if (backleft) {
backspeed--;
_x = (_x - backspeed);
}
if (backright) {
backspeed--;
_x = (_x + backspeed);
}
if (((backup || (backdown)) || (backleft)) || (backright)) {
moving = false;
} else {
moving = true;
}
if (backspeed <= 0) {
this.removeMovieClip();
this._visible = false;
_root.score = _root.score + 10;
backspeed = 1E68;
}
if ((this.hitTest(_root.denvish.sword) && (_root.denvish._currentframe != 1)) && (_x > _root.denvish._x)) {
backright = true;
}
if ((this.hitTest(_root.denvish.sword) && (_root.denvish._currentframe != 1)) && (_x < _root.denvish._x)) {
backleft = true;
}
if ((this.hitTest(_root.denvish.sword) && (_root.denvish._currentframe != 1)) && (_y > _root.denvish._y)) {
backdown = true;
}
if ((this.hitTest(_root.denvish.sword) && (_root.denvish._currentframe != 1)) && (_y < _root.denvish._y)) {
backup = true;
}
if (this.hitTest(_root.bbs) && (_visible)) {
_root.play();
}
if (_root._currentframe != currentframe) {
this.removeMovieClip();
}
}
Frame 5
stop();
Symbol 9 Button
on (release) {
getURL ("http://www.powercode.riverheart.net", "_blank");
}
Symbol 14 Button
on (release) {
_root.play();
}
Symbol 15 MovieClip Frame 1
_root.stop();
onEnterFrame = function () {
bytes = _root.getBytesTotal();
bytesloaded = _root.getBytesLoaded();
_root.pc.percent = int((bytesloaded / bytes) * 100) + "%";
if (bytesloaded == bytes) {
gotoAndPlay (3);
}
};
Symbol 15 MovieClip Frame 2
gotoAndStop (1);
Symbol 23 Button
on (release) {
gotoAndPlay (4);
}
Symbol 26 Button
on (release) {
gotoAndPlay (3);
}
Instance of Symbol 33 MovieClip "pointer" in Symbol 36 MovieClip Frame 1
onClipEvent (load) {
timer = 2 + random(25);
_rotation = random(360);
}
onClipEvent (enterFrame) {
timer--;
if (timer <= 0) {
_rotation = random(360);
timer = 2 + random(25);
}
}
Symbol 42 MovieClip Frame 1
stop();
Symbol 49 MovieClip Frame 1
stop();
Symbol 56 Button
on (release) {
gotoAndPlay (2);
}