Frame 1
stop();
_root.best = 0;
_root.sunet = 1;
logo.onEnterFrame = function () {
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
this.play();
} else {
tgFrame = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
this.progress.gotoAndStop(tgFrame);
}
};
Frame 2
stop();
_root.score = 0;
_root.lifes = 3;
_root.tabla._visible = 0;
son = new Sound();
son.attachSound("muzica");
son.setVolume(40);
son1 = new Sound();
son1.attachSound("shot");
if (_root.kx == null) {
son.start(1, 9999);
_root.kx = 1;
}
but.onPress = function () {
_root.gotoAndStop(3);
};
scorB1 = tabla.scor.text;
if (scorB1 > _root.best) {
_root.best = scorB1;
tabla.scorB.text = scorB1;
}
Instance of Symbol 55 MovieClip "tabla" in Frame 2
onClipEvent (enterFrame) {
this.scor.text = _root.score;
}
Frame 3
stop();
this.onEnterFrame = function () {
if (Key.isDown(80) && ((getTimer() - getT) > 500)) {
getT = getTimer();
if (_root.ok == 1) {
_root.ok = 0;
} else {
_root.ok = 1;
}
}
};
_root.tabla._visible = 1;
_root.fuel = 1000;
_root.ship._x = 230;
_root.ship._y = 50;
_root.ok = 1;
Frame 4
stop();
delete this.onEnterFrame;
Frame 5
stop();
this.onEnterFrame = function () {
if (Key.isDown(80) && ((getTimer() - getT) > 500)) {
getT = getTimer();
if (_root.ok == 1) {
_root.ok = 0;
} else {
_root.ok = 1;
}
}
};
_root.fuel = 1000;
_root.ship._x = 230;
_root.ship._y = 50;
_root.ok = 1;
Frame 6
stop();
delete this.onEnterFrame;
Frame 7
stop();
this.onEnterFrame = function () {
if (Key.isDown(80) && ((getTimer() - getT) > 500)) {
getT = getTimer();
if (_root.ok == 1) {
_root.ok = 0;
} else {
_root.ok = 1;
}
}
};
_root.fuel = 1000;
_root.ship._x = 230;
_root.ship._y = 50;
_root.ok = 1;
Frame 8
stop();
delete this.onEnterFrame;
Frame 9
stop();
this.onEnterFrame = function () {
if (Key.isDown(80) && ((getTimer() - getT) > 500)) {
getT = getTimer();
if (_root.ok == 1) {
_root.ok = 0;
} else {
_root.ok = 1;
}
}
};
_root.fuel = 1000;
_root.ship._x = 230;
_root.ship._y = 50;
_root.ok = 1;
Frame 10
stop();
delete this.onEnterFrame;
Frame 11
stop();
this.onEnterFrame = function () {
if (Key.isDown(80) && ((getTimer() - getT) > 500)) {
getT = getTimer();
if (_root.ok == 1) {
_root.ok = 0;
} else {
_root.ok = 1;
}
}
};
_root.fuel = 1000;
_root.ship._x = 230;
_root.ship._y = 50;
_root.ok = 1;
Frame 12
stop();
delete this.onEnterFrame;
Frame 13
stop();
this.onEnterFrame = function () {
if (Key.isDown(80) && ((getTimer() - getT) > 500)) {
getT = getTimer();
if (_root.ok == 1) {
_root.ok = 0;
} else {
_root.ok = 1;
}
}
};
_root.fuel = 1000;
_root.ship._x = 230;
_root.ship._y = 50;
_root.ok = 1;
Frame 14
stop();
delete this.onEnterFrame;
Symbol 10 MovieClip Frame 1
stop();
Symbol 14 MovieClip Frame 63
stop();
Symbol 14 MovieClip Frame 272
_root.gotoAndStop(2);
Symbol 42 MovieClip Frame 1
stop();
Symbol 42 MovieClip Frame 25
stop();
Symbol 58 MovieClip Frame 1
stop();
speedX = 0.0001;
accY = 0.01;
this.onEnterFrame = function () {
if (_root.ok == 1) {
targ = 1001 - _root.fuel;
_root.gas.gotoAndStop(targ);
burnL._visible = 0;
burnR._visible = 0;
burnD._visible = 0;
_x = (_x + speedX);
_y = (_y + speedY);
signX = Math.abs(speedX) / speedX;
speedX = speedX + (((-signX) * 0.002) + accX);
speedY = speedY + accY;
accX = 0;
accY = 0.01;
if (Key.isDown(37)) {
if (_root.fuel > 0) {
_root.fuel = _root.fuel - 1;
accX = 0.02;
burnL._visible = 1;
}
}
if (Key.isDown(39)) {
if (_root.fuel > 0) {
_root.fuel = _root.fuel - 1;
accX = -0.02;
burnR._visible = 1;
}
}
if (Key.isDown(40)) {
if (_root.fuel > 0) {
_root.fuel = _root.fuel - 1;
accY = -0.01;
burnD._visible = 1;
}
}
}
};
Symbol 58 MovieClip Frame 2
_root.ok = 0;
Symbol 58 MovieClip Frame 25
stop();
if (_root.lf3._visible == 1) {
_root.lf3._visible = 0;
_root.fuel = 1000;
} else if (_root.lf2._visible == 1) {
_root.lf2._visible = 0;
_root.fuel = 1000;
} else if (_root.lf1._visible == 1) {
_root.lf1._visible = 0;
_root.fuel = 1000;
}
_root.ship._x = 230;
_root.ship._y = 50;
_root.ok = 1;
_root.ship.speedY = 0.0001;
_root.ship.accY = 0.01;
_root.ship.gotoAndStop(1);
_root.lifes = _root.lifes - 1;
if (_root.lifes < 0) {
_root.gotoAndStop(2);
}
Symbol 60 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.ok == 1) {
_parent.ship._alpha = 100;
if (this.hittest(_parent.ship._x + 35, _parent.ship._y - 4, true)) {
_parent.ship.gotoAndPlay(2);
_root.ship.burnL._visible = 0;
_root.ship.burnR._visible = 0;
_root.ship.burnD._visible = 0;
}
if (this.hittest(_parent.ship._x - 35, _parent.ship._y - 4, true)) {
_parent.ship.gotoAndPlay(2);
_root.ship.burnL._visible = 0;
_root.ship.burnR._visible = 0;
_root.ship.burnD._visible = 0;
}
if (this.hittest(_parent.ship._x + 28, _parent.ship._y + 12, true)) {
_parent.ship.gotoAndPlay(2);
_root.ship.burnL._visible = 0;
_root.ship.burnR._visible = 0;
_root.ship.burnD._visible = 0;
}
if (this.hittest(_parent.ship._x - 28, _parent.ship._y + 12, true)) {
_parent.ship.gotoAndPlay(2);
_root.ship.burnL._visible = 0;
_root.ship.burnR._visible = 0;
_root.ship.burnD._visible = 0;
}
if (this.hittest(_parent.ship._x, _parent.ship._y + 13, true)) {
_parent.ship.gotoAndPlay(2);
_root.ship.burnL._visible = 0;
_root.ship.burnR._visible = 0;
_root.ship.burnD._visible = 0;
}
if (this.hittest(_parent.ship._x, _parent.ship._y - 7, true)) {
_parent.ship.gotoAndPlay(2);
_root.ship.burnL._visible = 0;
_root.ship.burnR._visible = 0;
_root.ship.burnD._visible = 0;
}
}
};
Symbol 64 MovieClip Frame 1
stop();
Symbol 67 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.ok == 1) {
if (this.hittest(_root.ship.targxx)) {
if ((Math.abs(_root.ship.speedY) < 0.3) && (Math.abs(_root.ship.speedX) < 0.3)) {
_root.ship.burnL._visible = 0;
_root.ship.burnR._visible = 0;
_root.ship.burnD._visible = 0;
_root.score = _root.score + 150;
_root.play();
} else {
_root.ship.burnL._visible = 0;
_root.ship.burnR._visible = 0;
_root.ship.burnD._visible = 0;
_root.ship.gotoAndPlay(2);
}
_root.ok = 0;
}
}
};
Symbol 74 Button
on (release) {
_root.gotoAndStop(2);
}
Symbol 77 MovieClip Frame 1
stop();
Symbol 79 Button
on (release) {
if (_root.ok == 1) {
_root.ok = 0;
} else {
_root.ok = 1;
}
}
Symbol 82 Button
on (release) {
if (_root.sunet == 0) {
_root.sunet = 1;
_root.son.start(0, 100);
} else {
_root.sunet = 0;
_root.son.stop();
}
}
Symbol 85 Button
on (release) {
_root.play();
}
Symbol 88 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.ok == 1) {
_parent.ship._alpha = 100;
if (this.hittest(_parent.ship._x + 35, _parent.ship._y - 4, true)) {
_parent.ship.gotoAndPlay(2);
_root.ship.burnL._visible = 0;
_root.ship.burnR._visible = 0;
_root.ship.burnD._visible = 0;
}
if (this.hittest(_parent.ship._x - 35, _parent.ship._y - 4, true)) {
_parent.ship.gotoAndPlay(2);
_root.ship.burnL._visible = 0;
_root.ship.burnR._visible = 0;
_root.ship.burnD._visible = 0;
}
if (this.hittest(_parent.ship._x + 28, _parent.ship._y + 12, true)) {
_parent.ship.gotoAndPlay(2);
_root.ship.burnL._visible = 0;
_root.ship.burnR._visible = 0;
_root.ship.burnD._visible = 0;
}
if (this.hittest(_parent.ship._x - 28, _parent.ship._y + 12, true)) {
_parent.ship.gotoAndPlay(2);
_root.ship.burnL._visible = 0;
_root.ship.burnR._visible = 0;
_root.ship.burnD._visible = 0;
}
if (this.hittest(_parent.ship._x, _parent.ship._y + 13, true)) {
_parent.ship.gotoAndPlay(2);
_root.ship.burnL._visible = 0;
_root.ship.burnR._visible = 0;
_root.ship.burnD._visible = 0;
}
if (this.hittest(_parent.ship._x, _parent.ship._y - 7, true)) {
_parent.ship.gotoAndPlay(2);
_root.ship.burnL._visible = 0;
_root.ship.burnR._visible = 0;
_root.ship.burnD._visible = 0;
}
}
};
Symbol 89 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.ok == 1) {
if (this.hittest(_root.ship.targxx)) {
if ((Math.abs(_root.ship.speedY) < 0.3) && (Math.abs(_root.ship.speedX) < 0.3)) {
_root.ship.burnL._visible = 0;
_root.ship.burnR._visible = 0;
_root.ship.burnD._visible = 0;
_root.score = _root.score + 150;
_root.play();
} else {
_root.ship.burnL._visible = 0;
_root.ship.burnR._visible = 0;
_root.ship.burnD._visible = 0;
_root.ship.gotoAndPlay(2);
}
_root.ok = 0;
}
}
};
Symbol 94 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.ok == 1) {
_parent.ship._alpha = 100;
if (this.hittest(_parent.ship._x + 35, _parent.ship._y - 4, true)) {
_parent.ship.gotoAndPlay(2);
_root.ship.burnL._visible = 0;
_root.ship.burnR._visible = 0;
_root.ship.burnD._visible = 0;
}
if (this.hittest(_parent.ship._x - 35, _parent.ship._y - 4, true)) {
_parent.ship.gotoAndPlay(2);
_root.ship.burnL._visible = 0;
_root.ship.burnR._visible = 0;
_root.ship.burnD._visible = 0;
}
if (this.hittest(_parent.ship._x + 28, _parent.ship._y + 12, true)) {
_parent.ship.gotoAndPlay(2);
_root.ship.burnL._visible = 0;
_root.ship.burnR._visible = 0;
_root.ship.burnD._visible = 0;
}
if (this.hittest(_parent.ship._x - 28, _parent.ship._y + 12, true)) {
_parent.ship.gotoAndPlay(2);
_root.ship.burnL._visible = 0;
_root.ship.burnR._visible = 0;
_root.ship.burnD._visible = 0;
}
if (this.hittest(_parent.ship._x, _parent.ship._y + 13, true)) {
_parent.ship.gotoAndPlay(2);
_root.ship.burnL._visible = 0;
_root.ship.burnR._visible = 0;
_root.ship.burnD._visible = 0;
}
if (this.hittest(_parent.ship._x, _parent.ship._y - 7, true)) {
_parent.ship.gotoAndPlay(2);
_root.ship.burnL._visible = 0;
_root.ship.burnR._visible = 0;
_root.ship.burnD._visible = 0;
}
}
};
Symbol 96 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.ok == 1) {
_parent.ship._alpha = 100;
if (this.hittest(_parent.ship._x + 35, _parent.ship._y - 4, true)) {
_parent.ship.gotoAndPlay(2);
_root.ship.burnL._visible = 0;
_root.ship.burnR._visible = 0;
_root.ship.burnD._visible = 0;
}
if (this.hittest(_parent.ship._x - 35, _parent.ship._y - 4, true)) {
_parent.ship.gotoAndPlay(2);
_root.ship.burnL._visible = 0;
_root.ship.burnR._visible = 0;
_root.ship.burnD._visible = 0;
}
if (this.hittest(_parent.ship._x + 28, _parent.ship._y + 12, true)) {
_parent.ship.gotoAndPlay(2);
_root.ship.burnL._visible = 0;
_root.ship.burnR._visible = 0;
_root.ship.burnD._visible = 0;
}
if (this.hittest(_parent.ship._x - 28, _parent.ship._y + 12, true)) {
_parent.ship.gotoAndPlay(2);
_root.ship.burnL._visible = 0;
_root.ship.burnR._visible = 0;
_root.ship.burnD._visible = 0;
}
if (this.hittest(_parent.ship._x, _parent.ship._y + 13, true)) {
_parent.ship.gotoAndPlay(2);
_root.ship.burnL._visible = 0;
_root.ship.burnR._visible = 0;
_root.ship.burnD._visible = 0;
}
if (this.hittest(_parent.ship._x, _parent.ship._y - 7, true)) {
_parent.ship.gotoAndPlay(2);
_root.ship.burnL._visible = 0;
_root.ship.burnR._visible = 0;
_root.ship.burnD._visible = 0;
}
}
};
Symbol 98 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.ok == 1) {
_parent.ship._alpha = 100;
if (this.hittest(_parent.ship._x + 35, _parent.ship._y - 4, true)) {
_parent.ship.gotoAndPlay(2);
_root.ship.burnL._visible = 0;
_root.ship.burnR._visible = 0;
_root.ship.burnD._visible = 0;
}
if (this.hittest(_parent.ship._x - 35, _parent.ship._y - 4, true)) {
_parent.ship.gotoAndPlay(2);
_root.ship.burnL._visible = 0;
_root.ship.burnR._visible = 0;
_root.ship.burnD._visible = 0;
}
if (this.hittest(_parent.ship._x + 28, _parent.ship._y + 12, true)) {
_parent.ship.gotoAndPlay(2);
_root.ship.burnL._visible = 0;
_root.ship.burnR._visible = 0;
_root.ship.burnD._visible = 0;
}
if (this.hittest(_parent.ship._x - 28, _parent.ship._y + 12, true)) {
_parent.ship.gotoAndPlay(2);
_root.ship.burnL._visible = 0;
_root.ship.burnR._visible = 0;
_root.ship.burnD._visible = 0;
}
if (this.hittest(_parent.ship._x, _parent.ship._y + 13, true)) {
_parent.ship.gotoAndPlay(2);
_root.ship.burnL._visible = 0;
_root.ship.burnR._visible = 0;
_root.ship.burnD._visible = 0;
}
if (this.hittest(_parent.ship._x, _parent.ship._y - 7, true)) {
_parent.ship.gotoAndPlay(2);
_root.ship.burnL._visible = 0;
_root.ship.burnR._visible = 0;
_root.ship.burnD._visible = 0;
}
}
};
Symbol 100 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.ok == 1) {
_parent.ship._alpha = 100;
if (this.hittest(_parent.ship._x + 35, _parent.ship._y - 4, true)) {
_parent.ship.gotoAndPlay(2);
_root.ship.burnL._visible = 0;
_root.ship.burnR._visible = 0;
_root.ship.burnD._visible = 0;
}
if (this.hittest(_parent.ship._x - 35, _parent.ship._y - 4, true)) {
_parent.ship.gotoAndPlay(2);
_root.ship.burnL._visible = 0;
_root.ship.burnR._visible = 0;
_root.ship.burnD._visible = 0;
}
if (this.hittest(_parent.ship._x + 28, _parent.ship._y + 12, true)) {
_parent.ship.gotoAndPlay(2);
_root.ship.burnL._visible = 0;
_root.ship.burnR._visible = 0;
_root.ship.burnD._visible = 0;
}
if (this.hittest(_parent.ship._x - 28, _parent.ship._y + 12, true)) {
_parent.ship.gotoAndPlay(2);
_root.ship.burnL._visible = 0;
_root.ship.burnR._visible = 0;
_root.ship.burnD._visible = 0;
}
if (this.hittest(_parent.ship._x, _parent.ship._y + 13, true)) {
_parent.ship.gotoAndPlay(2);
_root.ship.burnL._visible = 0;
_root.ship.burnR._visible = 0;
_root.ship.burnD._visible = 0;
}
if (this.hittest(_parent.ship._x, _parent.ship._y - 7, true)) {
_parent.ship.gotoAndPlay(2);
_root.ship.burnL._visible = 0;
_root.ship.burnR._visible = 0;
_root.ship.burnD._visible = 0;
}
}
};