Combined Code
movieClip 7 gun {
frame 1 {
stop();
}
frame 9 {
stop();
}
}
frame 1 {
stop();
}
movieClip 12 {
}
instance of movieClip 12 {
onClipEvent (press) {
_root.gotoAndPlay('start');
}
}
frame 2 {
stop();
}
// unknown tag 88 length 93
frame 3 {
fireB = true;
score = 0;
}
movieClip 17 {
}
movieClip 29 {
frame 4 {
gotoAndPlay('normal');
}
frame 9 {
gotoAndPlay('normal');
}
}
movieClip 31 {
frame 1 {
_root.fireB = true;
stop();
}
frame 3 {
this._x = _root.changehiyo._x;
this._y = _root.changehiyo._y;
}
frame 4 {
if (this._x < 700) {
this._x += 90;
this._y = this._y;
} else {
this.gotoAndStop('blank');
}
}
frame 5 {
this.gotoAndPlay(_currentframe - 1);
}
}
instance onaho of movieClip 7 gun {
onClipEvent (load) {
speed = 6;
}
onClipEvent (enterFrame) {
_x = _x - speed;
if (_x < 0) {
_rotation = 0;
_root.onaho.gotoAndStop('normal');
_x = 870;
_y = Math.random() * 400;
++speed;
}
if (_rotation == 0) {
if (hitTest(_root.fire) && _root.fire._visible) {
_root.onaho.gotoAndPlay('hit');
_rotation = 1;
_root.score += 1;
} else {
if (hitTest(_root.changehiyo)) {
stopAllSounds();
_root.gotoAndStop('title');
}
}
}
}
}
frame 4 {
if (Key.isDown(32) && fireB == true) {
fire.gotoAndPlay('fire');
changehiyo.gotoAndPlay('shoot');
fireB = false;
}
if (Key.isDown(38)) {
if (changehiyo._y > 0) {
changehiyo._y -= 10;
if (Key.isDown(32) && fireB == true) {
changehiyo.gotoAndPlay('shoot');
fire.gotoAndPlay('fire');
}
}
} else {
if (Key.isDown(40)) {
if (changehiyo._y < 400) {
changehiyo._y += 10;
if (Key.isDown(32) && fireB == true) {
changehiyo.gotoAndPlay('shoot');
fire.gotoAndPlay('fire');
fireB = false;
}
}
} else {
if (Key.isDown(39)) {
if (changehiyo._x < 600) {
changehiyo._x += 10;
if (Key.isDown(32) && fireB == true) {
changehiyo.gotoAndPlay('shoot');
fire.gotoAndPlay('fire');
fireB = false;
}
}
} else {
if (Key.isDown(37)) {
if (changehiyo._x > 100) {
changehiyo._x -= 10;
if (Key.isDown(32) && fireB == true) {
changehiyo.gotoAndPlay('shoot');
fire.gotoAndPlay('fire');
fireB = false;
}
}
}
}
}
}
}
frame 5 {
gotoAndPlay(_currentframe - 1);
}
frame 7 {
stop();
}