Frame 1
fscommand ("showmenu", "false");
local_data = SharedObject.getLocal("user_data");
som = new Sound();
musica = new Sound(movMusica);
playData = new Object();
backup = new Object();
resetPlayer = function () {
moviePos = "intro";
_root.playData.chassi = "shipA";
_root.playData.beam = "beam11";
_root.playData.missile = "none";
_root.playData.drone = "none";
_root.playData.shield = 100;
_root.playData.spd = 4;
_root.playData.acc = 0.6;
_root.playData.ene = 100;
_root.playData.rechar = 3;
_root.playData.posChassi = 1;
_root.playData.posBeam = 1;
_root.playData.posLvlBeam = 1;
_root.playData.posMissile = 0;
_root.playData.posDrone = 0;
_root.playData.posShield = 0;
_root.playData.posPropulsor = 1;
_root.playData.posGenerator = 1;
_root.playData.specialEvasao = false;
_root.playData.specialAliados = false;
_root.playData.specialAfterburn = false;
_root.playData.specialWeapon = false;
_root.playData.score = 0;
_root.playData.money = 2000;
_root.playData.level = 1;
};
copyPlayerData = function (ori, cpy) {
cpy.chassi = ori.chassi;
cpy.beam = ori.beam;
cpy.missile = ori.missile;
cpy.drone = ori.drone;
cpy.shield = ori.shield;
cpy.spd = ori.spd;
cpy.acc = ori.acc;
cpy.ene = ori.ene;
cpy.rechar = ori.rechar;
cpy.posChassi = ori.posChassi;
cpy.posBeam = ori.posBeam;
cpy.posLvlBeam = ori.posLvlBeam;
cpy.posMissile = ori.posMissile;
cpy.posDrone = ori.posDrone;
cpy.posShield = ori.posShield;
cpy.posPropulsor = ori.posPropulsor;
cpy.posGenerator = ori.posGenerator;
cpy.specialEvasao = ori.specialEvasao;
cpy.specialAliados = ori.specialAliados;
cpy.specialAfterburn = ori.specialAfterburn;
cpy.specialWeapon = ori.specialWeapon;
cpy.score = ori.score;
cpy.money = ori.money;
cpy.level = ori.level;
};
backupPlayer = function () {
copyPlayerData(_root.playData, _root.backup);
};
restorePlayer = function () {
copyPlayerData(_root.backup, _root.playData);
};
savePlayer = function () {
copyPlayerData(_root.playData, local_data.data);
local_data.data.dificuldade = _root.dificuldade;
local_data.flush();
};
loadPlayer = function () {
copyPlayerData(local_data.data, _root.playData);
_root.dificuldade = local_data.data.dificuldade;
};
saveConfig = function () {
local_data.data.quality = _root._quality;
local_data.data.dificuldade = _root.dificuldade;
local_data.data.volSom = _root.som.getVolume();
local_data.data.volMusica = _root.musica.getVolume();
local_data.flush();
};
loadConfig = function () {
_root._quality = local_data.data.quality;
_root.dificuldade = local_data.data.dificuldade;
_root.som.setVolume(local_data.data.volSom);
};
remove = function (obj) {
obj.removeMovieClip();
};
stopMusica = function () {
musica.stop();
};
changeMusica = function (music) {
musica.stop();
musica.attachSound(music);
musica.start(0, 99999999);
musica.setVolume(local_data.data.volMusica);
};
if (local_data.data.quality != null) {
loadConfig();
} else {
_quality = "LOW";
dificuldade = "medium";
musica.setVolume(100);
som.setVolume(100);
saveConfig();
savePlayer();
}
resetPlayer();
backupPlayer();
stop();
Frame 10
changeMusica("musica- title");
resetPlayer();
stop();
Frame 11
gotoAndStop ("menu");
Frame 13
gotoAndStop ("movie");
Frame 14
changeMusica("musica- shop");
savePlayer();
stop();
Frame 15
gotoAndStop ("shop");
Frame 16
stop();
Frame 17
gotoAndStop ("game");
Frame 18
stop();
Frame 19
gotoAndStop ("map");
Symbol 11 MovieClip [BrdrShdw] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "shadowColor");
Symbol 13 MovieClip [BrdrFace] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "buttonColor");
Symbol 16 MovieClip [BrdrBlk] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "borderColor");
Symbol 18 MovieClip [BrdrHilght] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "highlightColor");
Symbol 21 MovieClip [Defaults] Frame 1
#initclip 28
Object.registerClass("Defaults", mx.skins.halo.Defaults);
#endinitclip
Symbol 22 MovieClip [UIObjectExtensions] Frame 1
#initclip 29
Object.registerClass("UIObjectExtensions", mx.core.ext.UIObjectExtensions);
#endinitclip
Symbol 23 MovieClip [UIObject] Frame 1
#initclip 30
Object.registerClass("UIObject", mx.core.UIObject);
#endinitclip
stop();
Symbol 26 Button
on (keyPress "<Tab>") {
this.tabHandler();
}
Symbol 27 MovieClip [FocusRect] Frame 1
#initclip 31
Object.registerClass("FocusRect", mx.skins.halo.FocusRect);
#endinitclip
Symbol 28 MovieClip [FocusManager] Frame 1
#initclip 32
Object.registerClass("FocusManager", mx.managers.FocusManager);
#endinitclip
stop();
Symbol 29 MovieClip [UIComponentExtensions] Frame 1
#initclip 33
Object.registerClass("UIComponentExtensions", mx.core.ext.UIComponentExtensions);
#endinitclip
Symbol 30 MovieClip [UIComponent] Frame 1
#initclip 34
Object.registerClass("UIComponent", mx.core.UIComponent);
#endinitclip
stop();
Symbol 31 MovieClip [SimpleButton] Frame 1
#initclip 35
Object.registerClass("SimpleButton", mx.controls.SimpleButton);
#endinitclip
stop();
Symbol 32 MovieClip [Border] Frame 1
#initclip 36
Object.registerClass("Border", mx.skins.Border);
#endinitclip
stop();
Symbol 33 MovieClip [RectBorder] Frame 1
#initclip 37
mx.skins.SkinElement.registerElement(mx.skins.RectBorder.symbolName, Object(mx.skins.RectBorder));
Object.registerClass("RectBorder", mx.skins.halo.RectBorder);
#endinitclip
stop();
Symbol 34 MovieClip [ButtonSkin] Frame 1
#initclip 38
Object.registerClass("ButtonSkin", mx.skins.halo.ButtonSkin);
#endinitclip
Symbol 35 MovieClip [Button] Frame 1
#initclip 39
Object.registerClass("Button", mx.controls.Button);
#endinitclip
stop();
Instance of Symbol 31 MovieClip [SimpleButton] in Symbol 35 MovieClip [Button] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 40 MovieClip [RadioThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 44 MovieClip [RadioThemeColor2] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 50 MovieClip [RadioButtonAssets] Frame 1
#initclip 40
mx.controls.RadioButton.prototype.adjustFocusRect = function () {
var _local4 = this._parent.focus_mc;
var _local2 = this.iconName;
var _local3 = this.getStyle("themeColor");
if (_local3 == undefined) {
_local3 = 8453965 /* 0x80FF4D */;
}
var _local5 = _local2._width + 4;
var _local6 = _local2._height + 4;
_local4.setSize(_local5, _local6, 8, 100, _local3);
var _local8 = _local2._x;
var _local7 = _local2._y;
_local4.move((this.x - 2) + _local8, (this.y + _local7) - 2);
};
#endinitclip
Symbol 51 MovieClip [RadioButton] Frame 1
#initclip 41
Object.registerClass("RadioButton", mx.controls.RadioButton);
#endinitclip
stop();
Instance of Symbol 35 MovieClip [Button] "foo" in Symbol 51 MovieClip [RadioButton] Frame 2
//component parameters
onClipEvent (initialize) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 77 MovieClip [CheckThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 88 MovieClip [CheckBoxAssets] Frame 1
#initclip 42
mx.controls.CheckBox.prototype.adjustFocusRect = function () {
var _local4 = this._parent.focus_mc;
var _local2 = this.iconName;
var _local3 = this.getStyle("themeColor");
if (_local3 == undefined) {
_local3 = 8453965 /* 0x80FF4D */;
}
var _local8 = _local2._width + 4;
var _local5 = _local2._height + 4;
_local4.setSize(_local8, _local5, 0, 100, _local3);
var _local7 = _local2._x;
var _local6 = _local2._y;
_local4.move((this.x - 2) + _local7, (this.y + _local6) - 2);
};
#endinitclip
Symbol 89 MovieClip [CheckBox] Frame 1
#initclip 43
Object.registerClass("CheckBox", mx.controls.CheckBox);
#endinitclip
stop();
Instance of Symbol 35 MovieClip [Button] in Symbol 89 MovieClip [CheckBox] Frame 2
//component parameters
onClipEvent (initialize) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 95 MovieClip Frame 1
status = "normal";
Symbol 95 MovieClip Frame 2
stop();
Symbol 95 MovieClip Frame 5
stop();
Symbol 95 MovieClip Frame 8
stop();
Symbol 95 MovieClip Frame 9
status = "turbo";
Symbol 95 MovieClip Frame 62
gotoAndPlay ("stop");
Symbol 110 MovieClip Frame 1
icoShield._visible = false;
Symbol 110 MovieClip Frame 2
stop();
Symbol 110 MovieClip Frame 3
_parent._parent.statusShield = "on";
Symbol 110 MovieClip Frame 33
stop();
_parent._parent.statusShield = "off";
Symbol 117 MovieClip [ship4] Frame 1
hp = 2000;
_parent.hp = hp;
_parent.maxHp = hp;
go = function (where) {
if ((where != _parent.statusX) && (where != _parent.statusY)) {
if ((where == "left") || (where == "right")) {
gotoAndPlay(where);
tMoveY.start();
} else if ((where == "up") || (where == "down")) {
fireMove1.gotoAndPlay(where);
fireMove2.gotoAndPlay(where);
} else if (where == "stopX") {
gotoAndPlay ("stop");
} else if (where == "stopY") {
fireMove1.gotoAndPlay("stop");
fireMove2.gotoAndPlay("stop");
}
}
};
Symbol 117 MovieClip [ship4] Frame 4
stop();
Symbol 117 MovieClip [ship4] Frame 8
stop();
Symbol 117 MovieClip [ship4] Frame 12
stop();
Symbol 117 MovieClip [ship4] Frame 110
stop();
Symbol 120 MovieClip [ship3] Frame 1
hp = 1000;
_parent.hp = hp;
_parent.maxHp = hp;
go = function (where) {
if ((where != _parent.statusX) && (where != _parent.statusY)) {
if ((where == "left") || (where == "right")) {
gotoAndPlay(where);
tMoveY.start();
} else if ((where == "up") || (where == "down")) {
fireMove.gotoAndPlay(where);
} else if (where == "stopX") {
gotoAndPlay ("stop");
} else if (where == "stopY") {
fireMove.gotoAndPlay("stop");
}
}
};
Symbol 120 MovieClip [ship3] Frame 4
stop();
Symbol 120 MovieClip [ship3] Frame 8
stop();
Symbol 120 MovieClip [ship3] Frame 12
stop();
Symbol 120 MovieClip [ship3] Frame 110
stop();
Symbol 123 MovieClip [shipB] Frame 1
hp = 500;
_parent.hp = hp;
_parent.maxHp = hp;
go = function (where) {
if ((where != _parent.statusX) && (where != _parent.statusY)) {
if ((where == "left") || (where == "right")) {
gotoAndPlay(where);
tMoveY.start();
} else if ((where == "up") || (where == "down")) {
fireMove.gotoAndPlay(where);
} else if (where == "stopX") {
gotoAndPlay ("stop");
} else if (where == "stopY") {
fireMove.gotoAndPlay("stop");
}
}
};
Symbol 123 MovieClip [shipB] Frame 4
stop();
Symbol 123 MovieClip [shipB] Frame 8
stop();
Symbol 123 MovieClip [shipB] Frame 12
stop();
Symbol 123 MovieClip [shipB] Frame 110
stop();
Symbol 127 MovieClip [shipA] Frame 1
hp = 200;
_parent.hp = hp;
_parent.maxHp = hp;
go = function (where) {
if ((where != _parent.statusX) && (where != _parent.statusY)) {
if ((where == "left") || (where == "right")) {
gotoAndPlay(where);
tMoveY.start();
} else if (((where == "up") || (where == "down")) && (fireMove.status != "turbo")) {
fireMove.gotoAndPlay(where);
} else if (where == "stopX") {
gotoAndPlay ("stop");
} else if ((where == "stopY") && (fireMove.status != "turbo")) {
fireMove.gotoAndPlay("stop");
} else if (where == "turbo") {
fireMove.gotoAndPlay("turbo");
}
}
};
Symbol 127 MovieClip [shipA] Frame 4
stop();
Symbol 127 MovieClip [shipA] Frame 8
stop();
Symbol 127 MovieClip [shipA] Frame 12
stop();
Symbol 127 MovieClip [shipA] Frame 45
stop();
Symbol 127 MovieClip [shipA] Frame 95
stop();
Symbol 134 MovieClip Frame 1
function reset() {
_counter = 0;
_noVezes = 1;
_startTime = new Date();
onReset();
}
function start() {
reset();
onStart();
this.gotoAndPlay("fStart");
}
function stop() {
gotoAndStop ("fStop");
onStop();
}
function execute(_tipo, _tempo, _vezes) {
setTipo(_tipo);
setTempo(_tempo);
setVezes(_vezes);
start();
}
function _executaTimer() {
OnTimer();
_noVezes++;
if ((vezes >= 0) && (_noVezes > vezes)) {
this.stop();
}
}
function _execute() {
_counter++;
if (_counter >= tempo) {
_counter = 0;
_executaTimer();
}
}
indicador._visible = false;
tempo = 1;
tipo = "frame";
vezes = -1;
_noVezes = 1;
_counter = 0;
_timeStart = new Date();
getTipo = function () {
return(tipo);
};
setTipo = function (t) {
if ((t == "frame") || (t == "time")) {
tipo = t;
} else {
trace("[SSPtimer] ERRO: valor de tipo deve ser igual a \"frame\" ou \"time\".");
}
};
getTempo = function () {
return(tempo);
};
setTempo = function (valor) {
tempo = valor;
};
getVezes = function () {
return(vezes);
};
setVezes = function (no) {
if (no >= -1) {
vezes = no;
} else {
trace("[SSPtimer] ERRO: n\u00FAmero de vezes deve ser -1 ou um n\u00FAmero inteiro positivo.");
}
};
OnTimer = function () {
};
OnStart = function () {
};
OnStop = function () {
};
OnReset = function () {
};
Symbol 134 MovieClip Frame 2
stop();
Symbol 134 MovieClip Frame 3
_execute();
Symbol 134 MovieClip Frame 4
_execute();
gotoAndPlay ("fStart");
Symbol 140 MovieClip Frame 2
stop();
Symbol 140 MovieClip Frame 11
_parent.removeMovieClip();
stop();
Symbol 141 MovieClip [shotDrone2] Frame 1
delayShot = 16;
shotSpeed = 7;
genCost = 150;
damage = 500;
y = _y;
x = _x;
status = "stop";
if (_parent.side == null) {
side = "player";
} else {
side = _parent.side;
}
hitShot = function () {
status = "blow";
shotSpeed = shotSpeed / 2;
beam.gotoAndPlay("blow");
};
checaColisao = function () {
_x = (_x + (shotSpeed * sideMove));
if (status != "blow") {
lp = 0;
while (lp < _parent._parent.noEnemies) {
if (this.hitTest(_parent._parent.enemies[lp].getHit())) {
_parent._parent.hitEnemy(lp, damage);
hitShot();
}
lp++;
}
}
};
Symbol 141 MovieClip [shotDrone2] Frame 2
shotNo = 0;
canShot = true;
fire = function () {
result = null;
if (canShot) {
canShot = false;
this.duplicateMovieClip("shotDroneL" + shotNo, 1000 + shotNo);
_parent["shotDroneL" + shotNo]._x = (_parent.ship._x + _parent.ship.droneL._x) - 10;
_parent["shotDroneL" + shotNo]._y = (_parent.ship._y + _parent.ship.droneL._y) + 10;
_parent["shotDroneL" + shotNo]._rotation = -90;
_parent["shotDroneL" + shotNo].sideMove = -1;
_parent["shotDroneL" + shotNo]._visible = true;
_parent["shotDroneL" + shotNo].gotoAndPlay("fire");
result = _parent["shotDroneL" + shotNo];
this.duplicateMovieClip("shotDroneR" + shotNo, 1100 + shotNo);
_parent["shotDroneR" + shotNo]._x = (_parent.ship._x + _parent.ship.droneR._x) + 10;
_parent["shotDroneR" + shotNo]._y = (_parent.ship._y + _parent.ship.droneR._y) + 10;
_parent["shotDroneR" + shotNo].sideMove = 1;
_parent["shotDroneR" + shotNo]._rotation = 90;
_parent["shotDroneR" + shotNo]._visible = true;
_parent["shotDroneR" + shotNo].gotoAndPlay("fire");
result = _parent["shotDroneR" + shotNo];
shotNo++;
if (shotNo > 199) {
shotNo = 0;
}
}
return(result);
};
tShotDelay.OnTimer = function () {
canShot = true;
};
tShotDelay.execute("frame", delayShot);
stop();
Symbol 141 MovieClip [shotDrone2] Frame 3
checaColisao();
Symbol 141 MovieClip [shotDrone2] Frame 4
checaColisao();
Symbol 141 MovieClip [shotDrone2] Frame 5
checaColisao();
if ((((_y < (y - 800)) || (_y > (y + 800))) || (_x < (x - 600))) || (_x > (x + 600))) {
this.removeMovieClip();
this.unloadMovie();
}
gotoAndPlay ("fireCont");
Symbol 146 MovieClip Frame 2
stop();
Symbol 146 MovieClip Frame 11
_parent.removeMovieClip();
stop();
Symbol 147 MovieClip [shotDrone1] Frame 1
delayShot = 14;
shotSpeed = 16;
genCost = 100;
damage = 300;
y = _y;
x = _x;
status = "stop";
if (_parent.side == null) {
side = "player";
} else {
side = _parent.side;
}
hitShot = function () {
status = "blow";
shotSpeed = shotSpeed / 2;
beam.gotoAndPlay("blow");
};
checaColisao = function () {
if (status != "blow") {
lp = 0;
while (lp < _parent._parent.noEnemies) {
if (this.hitTest(_parent._parent.enemies[lp].getHit())) {
_parent._parent.hitEnemy(lp, damage);
hitShot();
}
lp++;
}
}
};
Symbol 147 MovieClip [shotDrone1] Frame 2
shotNo = 0;
canShot = true;
fire = function () {
if (canShot) {
canShot = false;
this.duplicateMovieClip("shotDroneL" + shotNo, 1000 + shotNo);
_parent["shotDroneL" + shotNo]._x = _parent.ship._x + _parent.ship.droneL._x;
_parent["shotDroneL" + shotNo]._y = (_parent.ship._y + _parent.ship.droneL._y) + 10;
_parent["shotDroneL" + shotNo]._visible = true;
_parent["shotDroneL" + shotNo].gotoAndPlay("fire");
this.duplicateMovieClip("shotDroneR" + shotNo, 1100 + shotNo);
_parent["shotDroneR" + shotNo]._x = _parent.ship._x + _parent.ship.droneR._x;
_parent["shotDroneR" + shotNo]._y = (_parent.ship._y + _parent.ship.droneR._y) + 10;
_parent["shotDroneR" + shotNo]._visible = true;
_parent["shotDroneR" + shotNo].gotoAndPlay("fire");
shotNo++;
if (shotNo > 199) {
shotNo = 0;
}
}
};
tShotDelay.OnTimer = function () {
canShot = true;
};
tShotDelay.execute("frame", delayShot);
stop();
Symbol 147 MovieClip [shotDrone1] Frame 3
_y = (_y - shotSpeed);
checaColisao();
Symbol 147 MovieClip [shotDrone1] Frame 4
_y = (_y - shotSpeed);
checaColisao();
Symbol 147 MovieClip [shotDrone1] Frame 5
_y = (_y - shotSpeed);
checaColisao();
if ((((_y < (y - 800)) || (_y > (y + 800))) || (_x < (x - 600))) || (_x > (x + 600))) {
this.removeMovieClip();
this.unloadMovie();
}
gotoAndPlay ("fireCont");
Symbol 155 MovieClip Frame 5
stop();
Symbol 155 MovieClip Frame 14
_parent.removeMovieClip();
stop();
Symbol 157 MovieClip [beam15] Frame 1
delayShot = 8;
shotSpeed = 22;
damage = 2000;
genCost = 160;
y = _y;
x = _x;
status = "stop";
if (_parent.side == null) {
side = "player";
} else {
side = _parent.side;
}
hitShot = function () {
status = "blow";
shotSpeed = shotSpeed / 2;
beam.gotoAndPlay("blow");
};
checaColisao = function () {
if (status != "blow") {
lp = 0;
while (lp < _parent._parent.noEnemies) {
if (this.hitTest(_parent._parent.enemies[lp].getHit())) {
_parent._parent.hitEnemy(lp, damage);
hitShot();
}
lp++;
}
}
};
Symbol 157 MovieClip [beam15] Frame 2
shotNo = 0;
canShot = true;
fire = function () {
result = null;
if (canShot) {
canShot = false;
_parent.shot.duplicateMovieClip("shot" + shotNo, 100 + shotNo);
_parent["shot" + shotNo]._x = _parent.ship._x;
_parent["shot" + shotNo]._y = _parent.ship._y;
_parent["shot" + shotNo]._visible = true;
_parent["shot" + shotNo].gotoAndPlay("fire");
result = _parent["shot" + shotNo];
shotNo++;
if (shotNo > 99) {
shotNo = 0;
}
}
return(result);
};
tShotDelay.OnTimer = function () {
canShot = true;
};
tShotDelay.execute("frame", delayShot);
stop();
Symbol 157 MovieClip [beam15] Frame 3
_y = (_y - shotSpeed);
checaColisao();
Symbol 157 MovieClip [beam15] Frame 4
_y = (_y - shotSpeed);
checaColisao();
Symbol 157 MovieClip [beam15] Frame 5
_y = (_y - shotSpeed);
checaColisao();
if (_y < (y - 600)) {
this.removeMovieClip();
}
gotoAndPlay ("fireCont");
Symbol 162 MovieClip Frame 3
stop();
Symbol 162 MovieClip Frame 12
_parent.removeMovieClip();
stop();
Symbol 163 MovieClip [beam14] Frame 1
delayShot = 11;
shotSpeed = 17;
damage = 2000;
genCost = 200;
y = _y;
x = _x;
status = "stop";
if (_parent.side == null) {
side = "player";
} else {
side = _parent.side;
}
hitShot = function () {
status = "blow";
shotSpeed = shotSpeed / 2;
beam.gotoAndPlay("blow");
};
checaColisao = function () {
if (status != "blow") {
lp = 0;
while (lp < _parent._parent.noEnemies) {
if (this.hitTest(_parent._parent.enemies[lp].getHit())) {
_parent._parent.hitEnemy(lp, damage);
hitShot();
}
lp++;
}
}
};
Symbol 163 MovieClip [beam14] Frame 2
shotNo = 0;
canShot = true;
fire = function () {
result = null;
if (canShot) {
canShot = false;
_parent.shot.duplicateMovieClip("shot" + shotNo, 100 + shotNo);
_parent["shot" + shotNo]._x = _parent.ship._x;
_parent["shot" + shotNo]._y = _parent.ship._y;
_parent["shot" + shotNo]._visible = true;
_parent["shot" + shotNo].gotoAndPlay("fire");
result = _parent["shot" + shotNo];
shotNo++;
if (shotNo > 99) {
shotNo = 0;
}
}
return(result);
};
tShotDelay.OnTimer = function () {
canShot = true;
};
tShotDelay.execute("frame", delayShot);
stop();
Symbol 163 MovieClip [beam14] Frame 3
_y = (_y - shotSpeed);
checaColisao();
Symbol 163 MovieClip [beam14] Frame 4
_y = (_y - shotSpeed);
checaColisao();
Symbol 163 MovieClip [beam14] Frame 5
_y = (_y - shotSpeed);
checaColisao();
if (_y < (y - 600)) {
this.removeMovieClip();
}
gotoAndPlay ("fireCont");
Symbol 167 MovieClip Frame 1
stop();
Symbol 167 MovieClip Frame 10
_parent.removeMovieClip();
stop();
Symbol 171 MovieClip Frame 5
stop();
Symbol 173 MovieClip [beam25] Frame 1
delayShot = 2;
shotSpeed = 40;
damage = 363;
genCost = 36;
y = beam._y;
x = beam._x;
status = "stop";
if (_parent.side == null) {
side = "player";
} else {
side = _parent.side;
}
hitShot = function () {
status = "blow";
shotSpeed = shotSpeed / 2;
beam.gotoAndPlay("blow");
};
checaColisao = function () {
if (status != "blow") {
if ((side == "player") || (side == "ally")) {
lp = 0;
while (lp < _parent._parent.noEnemies) {
if (beam.hitTest(_parent._parent.enemies[lp].getHit())) {
_parent._parent.hitEnemy(lp, damage);
hitShot();
}
lp++;
}
}
if ((side == "player") || (side == "enemy")) {
lp = 0;
while (lp < _parent._parent.noAllies) {
if (_parent._parent.allies[lp].getHit().hitTest(beam)) {
_parent._parent.hitAlly(lp, damage);
hitShot();
}
lp++;
}
}
}
};
turn = function () {
beam._y = beam._y - shotSpeed;
fire._x = _parent.ship._x - this._x;
fire._y = (_parent.ship._y - this._y) - 20;
checaColisao();
};
Symbol 173 MovieClip [beam25] Frame 2
shotNo = 0;
canShot = true;
fire = function () {
result = null;
if (canShot) {
canShot = false;
_parent.shot.duplicateMovieClip("shot" + shotNo, 100 + shotNo);
_parent["shot" + shotNo]._x = _parent.ship._x;
_parent["shot" + shotNo]._y = _parent.ship._y;
_parent["shot" + shotNo]._visible = true;
_parent["shot" + shotNo].gotoAndPlay("fire");
result = _parent["shot" + shotNo];
shotNo++;
if (shotNo > 99) {
shotNo = 0;
}
}
return(result);
};
tShotDelay.OnTimer = function () {
canShot = true;
};
tShotDelay.execute("frame", delayShot);
stop();
Symbol 173 MovieClip [beam25] Frame 3
turn();
Symbol 173 MovieClip [beam25] Frame 4
turn();
Symbol 173 MovieClip [beam25] Frame 5
turn();
if ((beam._y < (y - 800)) || (beam._y > (y + 800))) {
this.removeMovieClip();
this.unloadMovie();
}
gotoAndPlay ("fireCont");
Symbol 177 MovieClip Frame 1
stop();
Symbol 177 MovieClip Frame 10
_parent.removeMovieClip();
stop();
Symbol 178 MovieClip [beam24] Frame 1
delayShot = 3;
shotSpeed = 30;
damage = 275;
genCost = 27;
y = beam._y;
x = beam._x;
status = "stop";
if (_parent.side == null) {
side = "player";
} else {
side = _parent.side;
}
hitShot = function () {
status = "blow";
shotSpeed = shotSpeed / 2;
beam.gotoAndPlay("blow");
};
checaColisao = function () {
if (status != "blow") {
if ((side == "player") || (side == "ally")) {
lp = 0;
while (lp < _parent._parent.noEnemies) {
if (beam.hitTest(_parent._parent.enemies[lp].getHit())) {
_parent._parent.hitEnemy(lp, damage);
hitShot();
}
lp++;
}
}
if ((side == "player") || (side == "enemy")) {
lp = 0;
while (lp < _parent._parent.noAllies) {
if (_parent._parent.allies[lp].getHit().hitTest(beam)) {
_parent._parent.hitAlly(lp, damage);
hitShot();
}
lp++;
}
}
}
};
turn = function () {
beam._y = beam._y - shotSpeed;
fire._x = _parent.ship._x - this._x;
fire._y = (_parent.ship._y - this._y) - 20;
checaColisao();
};
Symbol 178 MovieClip [beam24] Frame 2
shotNo = 0;
canShot = true;
fire = function () {
result = null;
if (canShot) {
canShot = false;
_parent.shot.duplicateMovieClip("shot" + shotNo, 100 + shotNo);
_parent["shot" + shotNo]._x = _parent.ship._x;
_parent["shot" + shotNo]._y = _parent.ship._y;
_parent["shot" + shotNo]._visible = true;
_parent["shot" + shotNo].gotoAndPlay("fire");
result = _parent["shot" + shotNo];
shotNo++;
if (shotNo > 99) {
shotNo = 0;
}
}
return(result);
};
tShotDelay.OnTimer = function () {
canShot = true;
};
tShotDelay.execute("frame", delayShot);
stop();
Symbol 178 MovieClip [beam24] Frame 3
turn();
Symbol 178 MovieClip [beam24] Frame 4
turn();
Symbol 178 MovieClip [beam24] Frame 5
turn();
if ((beam._y < (y - 800)) || (beam._y > (y + 800))) {
this.removeMovieClip();
}
gotoAndPlay ("fireCont");
Symbol 182 MovieClip Frame 1
stop();
Symbol 182 MovieClip Frame 10
_parent.removeMovieClip();
stop();
Symbol 183 MovieClip [beam23] Frame 1
delayShot = 4;
shotSpeed = 20;
damage = 143;
genCost = 14;
y = beam._y;
x = beam._x;
status = "stop";
if (_parent.side == null) {
side = "player";
} else {
side = _parent.side;
}
hitShot = function () {
status = "blow";
shotSpeed = shotSpeed / 2;
beam.gotoAndPlay("blow");
};
checaColisao = function () {
if (status != "blow") {
if ((side == "player") || (side == "ally")) {
lp = 0;
while (lp < _parent._parent.noEnemies) {
if (beam.hitTest(_parent._parent.enemies[lp].getHit())) {
_parent._parent.hitEnemy(lp, damage);
hitShot();
}
lp++;
}
}
if ((side == "player") || (side == "enemy")) {
lp = 0;
while (lp < _parent._parent.noAllies) {
if (_parent._parent.allies[lp].getHit().hitTest(beam)) {
_parent._parent.hitAlly(lp, damage);
hitShot();
}
lp++;
}
}
}
};
turn = function () {
beam._y = beam._y - shotSpeed;
fire._x = _parent.ship._x - this._x;
fire._y = (_parent.ship._y - this._y) - 20;
checaColisao();
};
Symbol 183 MovieClip [beam23] Frame 2
shotNo = 0;
canShot = true;
fire = function () {
result = null;
if (canShot) {
canShot = false;
_parent.shot.duplicateMovieClip("shot" + shotNo, 100 + shotNo);
_parent["shot" + shotNo]._x = _parent.ship._x;
_parent["shot" + shotNo]._y = _parent.ship._y;
_parent["shot" + shotNo]._visible = true;
_parent["shot" + shotNo].gotoAndPlay("fire");
result = _parent["shot" + shotNo];
shotNo++;
if (shotNo > 99) {
shotNo = 0;
}
}
return(result);
};
tShotDelay.OnTimer = function () {
canShot = true;
};
tShotDelay.execute("frame", delayShot);
stop();
Symbol 183 MovieClip [beam23] Frame 3
turn();
Symbol 183 MovieClip [beam23] Frame 4
turn();
Symbol 183 MovieClip [beam23] Frame 5
turn();
if ((beam._y < (y - 800)) || (beam._y > (y + 800))) {
this.removeMovieClip();
}
gotoAndPlay ("fireCont");
Symbol 187 MovieClip Frame 1
stop();
Symbol 187 MovieClip Frame 10
_parent.removeMovieClip();
stop();
Symbol 188 MovieClip [beam22] Frame 1
delayShot = 5;
shotSpeed = 20;
damage = 60;
genCost = 7;
y = beam._y;
x = beam._x;
status = "stop";
if (_parent.side == null) {
side = "player";
} else {
side = _parent.side;
}
hitShot = function () {
status = "blow";
shotSpeed = shotSpeed / 2;
beam.gotoAndPlay("blow");
};
checaColisao = function () {
if (status != "blow") {
if ((side == "player") || (side == "ally")) {
lp = 0;
while (lp < _parent._parent.noEnemies) {
if (beam.hitTest(_parent._parent.enemies[lp].getHit())) {
_parent._parent.hitEnemy(lp, damage);
hitShot();
}
lp++;
}
}
if ((side == "player") || (side == "enemy")) {
lp = 0;
while (lp < _parent._parent.noAllies) {
if (_parent._parent.allies[lp].getHit().hitTest(beam)) {
_parent._parent.hitAlly(lp, damage);
hitShot();
}
lp++;
}
}
}
};
turn = function () {
beam._y = beam._y - shotSpeed;
fire._x = _parent.ship._x - this._x;
fire._y = (_parent.ship._y - this._y) - 20;
checaColisao();
};
Symbol 188 MovieClip [beam22] Frame 2
shotNo = 0;
canShot = true;
fire = function () {
result = null;
if (canShot) {
canShot = false;
_parent.shot.duplicateMovieClip("shot" + shotNo, 100 + shotNo);
_parent["shot" + shotNo]._x = _parent.ship._x;
_parent["shot" + shotNo]._y = _parent.ship._y;
_parent["shot" + shotNo]._visible = true;
_parent["shot" + shotNo].gotoAndPlay("fire");
result = _parent["shot" + shotNo];
shotNo++;
if (shotNo > 99) {
shotNo = 0;
}
}
return(result);
};
tShotDelay.OnTimer = function () {
canShot = true;
};
tShotDelay.execute("frame", delayShot);
stop();
Symbol 188 MovieClip [beam22] Frame 3
turn();
Symbol 188 MovieClip [beam22] Frame 4
turn();
Symbol 188 MovieClip [beam22] Frame 5
turn();
if ((beam._y < (y - 800)) || (beam._y > (y + 800))) {
this.removeMovieClip();
}
gotoAndPlay ("fireCont");
Symbol 193 MovieClip Frame 1
stop();
Symbol 193 MovieClip Frame 2
play();
_parent.checaColisao();
Symbol 193 MovieClip Frame 11
_parent.removeMovieClip();
stop();
Symbol 195 MovieClip [missile2] Frame 1
delayShot = 120;
shotSpeed = 1;
damage = 5000;
genCost = 0;
qtde = 3;
y = beam._y;
x = beam._x;
status = "stop";
if (_parent.side == null) {
side = "player";
} else {
side = _parent.side;
}
hitShot = function () {
status = "blow";
shotSpeed = shotSpeed / 2;
beam.gotoAndPlay("blow");
};
checaColisao = function () {
if (status != "blow") {
lp = 0;
while (lp < _parent._parent.noEnemies) {
_parent._parent.hitEnemy(lp, damage);
lp++;
}
_parent._parent.clearShots();
}
};
turn = function () {
fire._x = _parent.ship._x - this._x;
fire._y = (_parent.ship._y - this._y) - 20;
};
Symbol 195 MovieClip [missile2] Frame 2
shotNo = 0;
canShot = true;
fire = function () {
result = null;
if (canShot && (qtde > 0)) {
canShot = false;
this.duplicateMovieClip("shotMissile" + shotNo, 100 + shotNo);
_parent["shotMissile" + shotNo]._x = _parent.ship._x;
_parent["shotMissile" + shotNo]._y = _parent.ship._y;
_parent["shotMissile" + shotNo]._visible = true;
_parent["shotMissile" + shotNo].gotoAndPlay("fire");
result = _parent["shotMissile" + shotNo];
shotNo++;
qtde--;
if (shotNo > 99) {
shotNo = 0;
}
}
return(result);
};
tShotDelay.OnTimer = function () {
canShot = true;
};
tShotDelay.execute("frame", delayShot);
stop();
Symbol 195 MovieClip [missile2] Frame 3
beam.gotoAndPlay("fire");
turn();
Symbol 195 MovieClip [missile2] Frame 4
turn();
Symbol 195 MovieClip [missile2] Frame 5
turn();
if ((beam._y < (y - 800)) || (beam._y > (y + 800))) {
this.removeMovieClip();
this.unloadMovie();
}
gotoAndPlay ("fireCont");
Symbol 197 MovieClip Frame 1
stop();
Symbol 197 MovieClip Frame 2
play();
Symbol 197 MovieClip Frame 15
_parent.removeMovieClip();
stop();
Symbol 199 MovieClip [missile3] Frame 1
delayShot = 120;
shotSpeed = 1;
damage = 2000;
genCost = 500;
qtde = 15;
y = beam._y;
x = beam._x;
status = "stop";
if (_parent.side == null) {
side = "player";
} else {
side = _parent.side;
}
hitShot = function () {
status = "blow";
shotSpeed = shotSpeed / 2;
beam.gotoAndPlay("blow");
};
checaColisao = function () {
if (status != "blow") {
lp = 0;
while (lp < _parent._parent.noEnemies) {
if (beam.hitTest(_parent._parent.enemies[lp].getHit())) {
_parent._parent.hitEnemy(lp, damage);
}
lp++;
}
lp = 0;
while (lp < _parent._parent.noShots) {
if (beam.hitTest(_parent._parent.eShots[lp].beam)) {
_parent._parent.eShots[lp].removeMovieClip();
}
lp++;
}
}
};
turn = function () {
beam._x = _parent.ship._x - this._x;
beam._y = _parent.ship._y - this._y;
checaColisao();
};
Symbol 199 MovieClip [missile3] Frame 2
shotNo = 0;
canShot = true;
fire = function () {
result = null;
if ((canShot && (qtde > 0)) && (_parent.ship.curEne > 0)) {
canShot = false;
this.duplicateMovieClip("shotMissile" + shotNo, 100 + shotNo);
_parent["shotMissile" + shotNo]._x = _parent.ship._x;
_parent["shotMissile" + shotNo]._y = _parent.ship._y;
_parent["shotMissile" + shotNo]._visible = true;
_parent["shotMissile" + shotNo].gotoAndPlay("fire");
result = _parent["shotMissile" + shotNo];
shotNo++;
qtde--;
_parent.ship.useEnergy(genCost);
if (shotNo > 99) {
shotNo = 0;
}
}
return(result);
};
tShotDelay.OnTimer = function () {
canShot = true;
};
tShotDelay.execute("frame", delayShot);
stop();
Symbol 199 MovieClip [missile3] Frame 3
beam.gotoAndPlay("fire");
turn();
Symbol 199 MovieClip [missile3] Frame 4
turn();
Symbol 199 MovieClip [missile3] Frame 5
turn();
if ((beam._y < (y - 800)) || (beam._y > (y + 800))) {
this.removeMovieClip();
this.unloadMovie();
}
gotoAndPlay ("fireCont");
Symbol 206 MovieClip Frame 2
stop();
Symbol 206 MovieClip Frame 12
_parent.removeMovieClip();
stop();
Symbol 209 MovieClip Frame 11
stop();
Symbol 211 MovieClip [missile1] Frame 1
delayShot = 20;
shotSpeed = 10;
damage = 1000;
genCost = 0;
qtde = 50;
y = beam._y;
x = beam._x;
status = "stop";
if (_parent.side == null) {
side = "player";
} else {
side = _parent.side;
}
hitShot = function () {
status = "blow";
shotSpeed = shotSpeed / 2;
beam.gotoAndPlay("blow");
};
checaColisao = function () {
if (status != "blow") {
if ((side == "player") || (side == "ally")) {
lp = 0;
while (lp < _parent._parent.noEnemies) {
if (beam.hitTest(_parent._parent.enemies[lp].getHit())) {
_parent._parent.hitEnemy(lp, damage);
hitShot();
}
lp++;
}
}
if (side == "enemy") {
lp = 0;
while (lp < _parent._parent.noAllies) {
if (_parent._parent.allies[lp].getHit().hitTest(beam)) {
_parent._parent.hitAlly(lp, damage);
hitShot();
}
lp++;
}
}
}
};
turn = function () {
beam._y = beam._y - shotSpeed;
checaColisao();
};
Symbol 211 MovieClip [missile1] Frame 2
shotNo = 0;
canShot = true;
fire = function () {
result = null;
if (canShot && (qtde > 0)) {
canShot = false;
this.duplicateMovieClip("shotMissile" + shotNo, 100 + shotNo);
_parent["shotMissile" + shotNo]._x = _parent.ship._x;
_parent["shotMissile" + shotNo]._y = _parent.ship._y;
_parent["shotMissile" + shotNo]._visible = true;
_parent["shotMissile" + shotNo].gotoAndPlay("fire");
result = _parent["shotMissile" + shotNo];
shotNo++;
qtde--;
if (shotNo > 99) {
shotNo = 0;
}
}
return(result);
};
tShotDelay.OnTimer = function () {
canShot = true;
};
tShotDelay.execute("frame", delayShot);
stop();
Symbol 211 MovieClip [missile1] Frame 3
turn();
Symbol 211 MovieClip [missile1] Frame 4
turn();
Symbol 211 MovieClip [missile1] Frame 5
turn();
if ((beam._y < (y - 800)) || (beam._y > (y + 800))) {
this.removeMovieClip();
this.unloadMovie();
}
gotoAndPlay ("fireCont");
Symbol 216 MovieClip Frame 1
status = "normal";
statusHit = "normal";
damage = 65;
stop();
Symbol 216 MovieClip Frame 2
statusHit = "blow";
Symbol 216 MovieClip Frame 10
status = "dead";
stop();
Symbol 220 MovieClip Frame 5
stop();
Symbol 222 MovieClip [beam31] Frame 1
delayShot = 25;
shotSpeed = 10;
damage = 0;
genCost = 13;
noBeams = 2;
y = beam1._y;
x = beam1._x;
status = "stop";
if (_parent.side == null) {
side = "player";
} else {
side = _parent.side;
}
hitShot = function (beam) {
beam.gotoAndPlay("blow");
};
checaColisao = function () {
lp = 0;
while (lp < _parent._parent.noEnemies) {
lp2 = 1;
while (lp2 <= noBeams) {
if ((this["beam" + lp2].statusHit != "blow") && (this["beam" + lp2].hitTest(_parent._parent.enemies[lp].getHit()))) {
_parent._parent.hitEnemy(lp, this["beam" + lp2].damage);
hitShot(this["beam" + lp2]);
}
lp2++;
}
lp++;
}
};
turn = function () {
beam1._y = beam1._y - shotSpeed;
beam1._x = beam1._x - (shotSpeed / 4);
beam2._y = beam2._y - shotSpeed;
beam2._x = beam2._x + (shotSpeed / 4);
checaColisao();
lp = 1;
while (lp <= noBeams) {
if ((((this["beam" + lp]._y < (y - 800)) || (this["beam" + lp]._y > (y + 800))) || (this["beam" + lp]._x < (x - 1000))) || (this["beam" + lp]._x > (x + 1000))) {
this["beam" + lp].status = "dead";
}
lp++;
}
if ((beam1.status == "dead") && (beam2.status == "dead")) {
status = "dead";
}
if (status == "dead") {
this.removeMovieClip();
this.unloadMovie();
}
};
Symbol 222 MovieClip [beam31] Frame 2
shotNo = 0;
canShot = true;
fire = function () {
result = null;
if (canShot) {
canShot = false;
_parent.shot.duplicateMovieClip("shot" + shotNo, 100 + shotNo);
_parent["shot" + shotNo]._x = _parent.ship._x;
_parent["shot" + shotNo]._y = _parent.ship._y;
_parent["shot" + shotNo]._visible = true;
_parent["shot" + shotNo].gotoAndPlay("fire");
result = _parent["shot" + shotNo];
shotNo++;
if (shotNo > 99) {
shotNo = 0;
}
}
return(result);
};
tShotDelay.OnTimer = function () {
canShot = true;
};
tShotDelay.execute("frame", delayShot);
stop();
Symbol 222 MovieClip [beam31] Frame 3
turn();
Symbol 222 MovieClip [beam31] Frame 4
turn();
Symbol 222 MovieClip [beam31] Frame 5
turn();
gotoAndPlay ("fireCont");
Symbol 226 MovieClip Frame 1
status = "normal";
statusHit = "normal";
damage = 225;
stop();
Symbol 226 MovieClip Frame 2
statusHit = "blow";
Symbol 226 MovieClip Frame 10
status = "dead";
stop();
Symbol 227 MovieClip [beam33] Frame 1
delayShot = 25;
shotSpeed = 10;
damage = 0;
genCost = 90;
noBeams = 4;
y = beam1._y;
x = beam1._x;
status = "stop";
if (_parent.side == null) {
side = "player";
} else {
side = _parent.side;
}
hitShot = function (beam) {
beam.gotoAndPlay("blow");
};
checaColisao = function () {
lp = 0;
while (lp < _parent._parent.noEnemies) {
lp2 = 1;
while (lp2 <= noBeams) {
if ((this["beam" + lp2].statusHit != "blow") && (this["beam" + lp2].hitTest(_parent._parent.enemies[lp].getHit()))) {
_parent._parent.hitEnemy(lp, this["beam" + lp2].damage);
hitShot(this["beam" + lp2]);
}
lp2++;
}
lp++;
}
};
turn = function () {
beam1._y = beam1._y - shotSpeed;
beam2._x = beam2._x + shotSpeed;
beam3._x = beam3._x - shotSpeed;
beam4._y = beam4._y + shotSpeed;
checaColisao();
lp = 1;
while (lp <= noBeams) {
if ((((this["beam" + lp]._y < (y - 800)) || (this["beam" + lp]._y > (y + 800))) || (this["beam" + lp]._x < (x - 1000))) || (this["beam" + lp]._x > (x + 1000))) {
this["beam" + lp].status = "dead";
}
lp++;
}
flagdead = true;
lp = 1;
while (lp <= noBeams) {
if (this["beam" + lp].status != "dead") {
flagdead = false;
}
lp++;
}
if (flagdead == true) {
status = "dead";
this.removeMovieClip();
this.unloadMovie();
}
};
Symbol 227 MovieClip [beam33] Frame 2
shotNo = 0;
canShot = true;
fire = function () {
result = null;
if (canShot) {
canShot = false;
_parent.shot.duplicateMovieClip("shot" + shotNo, 100 + shotNo);
_parent["shot" + shotNo]._x = _parent.ship._x;
_parent["shot" + shotNo]._y = _parent.ship._y;
_parent["shot" + shotNo]._visible = true;
_parent["shot" + shotNo].gotoAndPlay("fire");
result = _parent["shot" + shotNo];
shotNo++;
if (shotNo > 99) {
shotNo = 0;
}
}
return(result);
};
tShotDelay.OnTimer = function () {
canShot = true;
};
tShotDelay.execute("frame", delayShot);
stop();
Symbol 227 MovieClip [beam33] Frame 3
turn();
Symbol 227 MovieClip [beam33] Frame 4
turn();
Symbol 227 MovieClip [beam33] Frame 5
turn();
gotoAndPlay ("fireCont");
Symbol 231 MovieClip Frame 1
status = "normal";
statusHit = "normal";
damage = 400;
stop();
Symbol 231 MovieClip Frame 2
statusHit = "blow";
Symbol 231 MovieClip Frame 10
status = "dead";
stop();
Symbol 233 MovieClip [beam35] Frame 1
delayShot = 15;
shotSpeed = 10;
damage = 0;
genCost = 350;
noBeams = 7;
y = beam1._y;
x = beam1._x;
status = "stop";
if (_parent.side == null) {
side = "player";
} else {
side = _parent.side;
}
hitShot = function (beam) {
beam.gotoAndPlay("blow");
};
checaColisao = function () {
lp = 0;
while (lp < _parent._parent.noEnemies) {
lp2 = 1;
while (lp2 <= noBeams) {
if ((this["beam" + lp2].statusHit != "blow") && (this["beam" + lp2].hitTest(_parent._parent.enemies[lp].getHit()))) {
_parent._parent.hitEnemy(lp, this["beam" + lp2].damage);
hitShot(this["beam" + lp2]);
}
lp2++;
}
lp++;
}
};
checaDeadState = function () {
lp = 1;
while (lp <= noBeams) {
if ((((this["beam" + lp]._y < (y - 800)) || (this["beam" + lp]._y > (y + 800))) || (this["beam" + lp]._x < (x - 800))) || (this["beam" + lp]._x > (x + 1000))) {
this["beam" + lp].status = "dead";
}
lp++;
}
flagdead = true;
lp = 1;
while (lp <= noBeams) {
if (this["beam" + lp].status != "dead") {
flagdead = false;
}
lp++;
}
if (flagdead == true) {
status = "dead";
this.removeMovieClip();
this.unloadMovie();
}
};
turn = function () {
beam1._y = beam1._y - shotSpeed;
beam1._x = beam1._x - shotSpeed;
beam2._y = beam2._y - shotSpeed;
beam2._x = beam2._x + shotSpeed;
beam3._y = beam3._y + shotSpeed;
beam3._x = beam3._x - (shotSpeed / 2);
beam4._y = beam4._y + shotSpeed;
beam4._x = beam4._x + (shotSpeed / 2);
beam5._y = beam5._y - (shotSpeed * 1.5);
beam6._x = beam6._x - (shotSpeed * 1.5);
beam7._x = beam7._x + (shotSpeed * 1.5);
checaColisao();
};
Symbol 233 MovieClip [beam35] Frame 2
shotNo = 0;
canShot = true;
fire = function () {
result = null;
if (canShot) {
canShot = false;
_parent.shot.duplicateMovieClip("shot" + shotNo, 100 + shotNo);
_parent["shot" + shotNo]._x = _parent.ship._x;
_parent["shot" + shotNo]._y = _parent.ship._y;
_parent["shot" + shotNo]._visible = true;
_parent["shot" + shotNo].gotoAndPlay("fire");
result = _parent["shot" + shotNo];
shotNo++;
if (shotNo > 99) {
shotNo = 0;
}
}
return(result);
};
tShotDelay.OnTimer = function () {
canShot = true;
};
tShotDelay.execute("frame", delayShot);
stop();
Symbol 233 MovieClip [beam35] Frame 3
turn();
Symbol 233 MovieClip [beam35] Frame 4
turn();
Symbol 233 MovieClip [beam35] Frame 5
turn();
Symbol 233 MovieClip [beam35] Frame 6
turn();
Symbol 233 MovieClip [beam35] Frame 7
turn();
Symbol 233 MovieClip [beam35] Frame 8
turn();
Symbol 233 MovieClip [beam35] Frame 9
turn();
Symbol 233 MovieClip [beam35] Frame 10
turn();
Symbol 233 MovieClip [beam35] Frame 11
turn();
Symbol 233 MovieClip [beam35] Frame 12
turn();
Symbol 233 MovieClip [beam35] Frame 13
turn();
Symbol 233 MovieClip [beam35] Frame 14
turn();
Symbol 233 MovieClip [beam35] Frame 15
turn();
Symbol 233 MovieClip [beam35] Frame 16
turn();
Symbol 233 MovieClip [beam35] Frame 17
turn();
Symbol 233 MovieClip [beam35] Frame 18
turn();
Symbol 233 MovieClip [beam35] Frame 19
turn();
Symbol 233 MovieClip [beam35] Frame 20
turn();
checaDeadState();
gotoAndPlay ("fireCont");
Symbol 237 MovieClip Frame 1
status = "normal";
statusHit = "normal";
damage = 365;
stop();
Symbol 237 MovieClip Frame 2
statusHit = "blow";
Symbol 237 MovieClip Frame 10
status = "dead";
stop();
Symbol 238 MovieClip [beam34] Frame 1
delayShot = 20;
shotSpeed = 10;
damage = 0;
genCost = 180;
noBeams = 5;
y = beam1._y;
x = beam1._x;
status = "stop";
if (_parent.side == null) {
side = "player";
} else {
side = _parent.side;
}
hitShot = function (beam) {
beam.gotoAndPlay("blow");
};
checaColisao = function () {
lp = 0;
while (lp < _parent._parent.noEnemies) {
lp2 = 1;
while (lp2 <= noBeams) {
if ((this["beam" + lp2].statusHit != "blow") && (this["beam" + lp2].hitTest(_parent._parent.enemies[lp].getHit()))) {
_root.game.hitEnemy(lp, this["beam" + lp2].damage);
hitShot(this["beam" + lp2]);
}
lp2++;
}
lp++;
}
};
turn = function () {
beam1._y = beam1._y - (shotSpeed / 2);
beam1._x = beam1._x - shotSpeed;
beam2._y = beam2._y - (shotSpeed / 2);
beam2._x = beam2._x + shotSpeed;
beam3._y = beam3._y + shotSpeed;
beam3._x = beam3._x - (shotSpeed / 2);
beam4._y = beam4._y + shotSpeed;
beam4._x = beam4._x + (shotSpeed / 2);
beam5._y = beam5._y - shotSpeed;
checaColisao();
lp = 1;
while (lp <= noBeams) {
if ((((this["beam" + lp]._y < (y - 800)) || (this["beam" + lp]._y > (y + 800))) || (this["beam" + lp]._x < (x - 1000))) || (this["beam" + lp]._x > (x + 1000))) {
this["beam" + lp].status = "dead";
}
lp++;
}
flagdead = true;
lp = 1;
while (lp <= noBeams) {
if (this["beam" + lp].status != "dead") {
flagdead = false;
}
lp++;
}
if (flagdead == true) {
status = "dead";
this.removeMovieClip();
this.unloadMovie();
}
};
Symbol 238 MovieClip [beam34] Frame 2
shotNo = 0;
canShot = true;
fire = function () {
result = null;
if (canShot) {
canShot = false;
_parent.shot.duplicateMovieClip("shot" + shotNo, 100 + shotNo);
_parent["shot" + shotNo]._x = _parent.ship._x;
_parent["shot" + shotNo]._y = _parent.ship._y;
_parent["shot" + shotNo]._visible = true;
_parent["shot" + shotNo].gotoAndPlay("fire");
result = _parent["shot" + shotNo];
shotNo++;
if (shotNo > 99) {
shotNo = 0;
}
}
return(result);
};
tShotDelay.OnTimer = function () {
canShot = true;
};
tShotDelay.execute("frame", delayShot);
stop();
Symbol 238 MovieClip [beam34] Frame 3
turn();
Symbol 238 MovieClip [beam34] Frame 4
turn();
Symbol 238 MovieClip [beam34] Frame 5
turn();
gotoAndPlay ("fireCont");
Symbol 242 MovieClip Frame 1
status = "normal";
statusHit = "normal";
damage = 100;
stop();
Symbol 242 MovieClip Frame 2
statusHit = "blow";
Symbol 242 MovieClip Frame 10
status = "dead";
stop();
Symbol 243 MovieClip [beam32] Frame 1
delayShot = 25;
shotSpeed = 10;
damage = 0;
genCost = 37;
noBeams = 3;
y = beam1._y;
x = beam1._x;
status = "stop";
if (_parent.side == null) {
side = "player";
} else {
side = _parent.side;
}
hitShot = function (beam) {
beam.gotoAndPlay("blow");
};
checaColisao = function () {
lp = 0;
while (lp < _parent._parent.noEnemies) {
lp2 = 1;
while (lp2 <= noBeams) {
if ((this["beam" + lp2].statusHit != "blow") && (this["beam" + lp2].hitTest(_parent._parent.enemies[lp].getHit()))) {
_parent._parent.hitEnemy(lp, this["beam" + lp2].damage);
hitShot(this["beam" + lp2]);
}
lp2++;
}
lp++;
}
};
turn = function () {
beam1._y = beam1._y - shotSpeed;
beam1._x = beam1._x - (shotSpeed / 2);
beam2._y = beam2._y - shotSpeed;
beam2._x = beam2._x + (shotSpeed / 2);
beam3._y = beam3._y - (shotSpeed * 1.5);
checaColisao();
lp = 1;
while (lp <= noBeams) {
if ((((this["beam" + lp]._y < (y - 800)) || (this["beam" + lp]._y > (y + 800))) || (this["beam" + lp]._x < (x - 1000))) || (this["beam" + lp]._x > (x + 1000))) {
this["beam" + lp].status = "dead";
}
lp++;
}
if ((beam1.status == "dead") && (beam2.status == "dead")) {
status = "dead";
}
if (status == "dead") {
this.removeMovieClip();
this.unloadMovie();
}
};
Symbol 243 MovieClip [beam32] Frame 2
shotNo = 0;
canShot = true;
fire = function () {
result = null;
if (canShot) {
canShot = false;
_parent.shot.duplicateMovieClip("shot" + shotNo, 100 + shotNo);
_parent["shot" + shotNo]._x = _parent.ship._x;
_parent["shot" + shotNo]._y = _parent.ship._y;
_parent["shot" + shotNo]._visible = true;
_parent["shot" + shotNo].gotoAndPlay("fire");
result = _parent["shot" + shotNo];
shotNo++;
if (shotNo > 99) {
shotNo = 0;
}
}
return(result);
};
tShotDelay.OnTimer = function () {
canShot = true;
};
tShotDelay.execute("frame", delayShot);
stop();
Symbol 243 MovieClip [beam32] Frame 3
turn();
Symbol 243 MovieClip [beam32] Frame 4
turn();
Symbol 243 MovieClip [beam32] Frame 5
turn();
gotoAndPlay ("fireCont");
Symbol 245 MovieClip Frame 1
status = "normal";
Symbol 245 MovieClip Frame 17
status = "dead";
stop();
Symbol 247 MovieClip [beam45] Frame 1
delayShot = 3;
shotSpeed = 9;
damage = 500;
genCost = 55;
y = beam._y;
x = beam._x;
status = "stop";
if (_parent.side == null) {
side = "player";
} else {
side = _parent.side;
}
hitShot = function () {
status = "blow";
shotSpeed = shotSpeed / 2;
beam.gotoAndPlay("blow");
};
checaColisao = function () {
if (status != "blow") {
if ((side == "player") || (side == "ally")) {
lp = 0;
while (lp < _parent._parent.noEnemies) {
if (beam.hitTest(_parent._parent.enemies[lp].getHit())) {
_parent._parent.hitEnemy(lp, damage);
hitShot();
}
lp++;
}
}
if ((side == "player") || (side == "enemy")) {
lp = 0;
while (lp < _parent._parent.noAllies) {
if (_parent._parent.allies[lp].getHit().hitTest(beam)) {
_parent._parent.hitAlly(lp, damage);
hitShot();
}
lp++;
}
}
}
};
turn = function () {
beam._y = beam._y - shotSpeed;
if (beam.status == "dead") {
this.removeMovieClip();
this.unloadMovie();
}
checaColisao();
};
Symbol 247 MovieClip [beam45] Frame 2
shotNo = 0;
canShot = true;
fire = function () {
result = null;
if (canShot) {
canShot = false;
_parent.shot.duplicateMovieClip("shot" + shotNo, 100 + shotNo);
_parent["shot" + shotNo]._x = _parent.ship._x;
_parent["shot" + shotNo]._y = _parent.ship._y;
_parent["shot" + shotNo]._visible = true;
_parent["shot" + shotNo].gotoAndPlay("fire");
result = _parent["shot" + shotNo];
shotNo++;
if (shotNo > 99) {
shotNo = 0;
}
}
return(result);
};
tShotDelay.OnTimer = function () {
canShot = true;
};
tShotDelay.execute("frame", delayShot);
stop();
Symbol 247 MovieClip [beam45] Frame 3
turn();
Symbol 247 MovieClip [beam45] Frame 4
turn();
Symbol 247 MovieClip [beam45] Frame 5
turn();
gotoAndPlay ("fireCont");
Symbol 248 MovieClip Frame 1
status = "normal";
Symbol 248 MovieClip Frame 17
status = "dead";
stop();
Symbol 249 MovieClip [beam44] Frame 1
delayShot = 3;
shotSpeed = 7;
damage = 250;
genCost = 25;
y = beam._y;
x = beam._x;
status = "stop";
if (_parent.side == null) {
side = "player";
} else {
side = _parent.side;
}
hitShot = function () {
status = "blow";
shotSpeed = shotSpeed / 2;
beam.gotoAndPlay("blow");
};
checaColisao = function () {
if (status != "blow") {
if ((side == "player") || (side == "ally")) {
lp = 0;
while (lp < _parent._parent.noEnemies) {
if (beam.hitTest(_parent._parent.enemies[lp].getHit())) {
_parent._parent.hitEnemy(lp, damage);
hitShot();
}
lp++;
}
}
if ((side == "player") || (side == "enemy")) {
lp = 0;
while (lp < _parent._parent.noAllies) {
if (_parent._parent.allies[lp].getHit().hitTest(beam)) {
_parent._parent.hitAlly(lp, damage);
hitShot();
}
lp++;
}
}
}
};
turn = function () {
beam._y = beam._y - shotSpeed;
if (beam.status == "dead") {
this.removeMovieClip();
this.unloadMovie();
}
checaColisao();
};
Symbol 249 MovieClip [beam44] Frame 2
shotNo = 0;
canShot = true;
fire = function () {
result = null;
if (canShot) {
canShot = false;
_parent.shot.duplicateMovieClip("shot" + shotNo, 100 + shotNo);
_parent["shot" + shotNo]._x = _parent.ship._x;
_parent["shot" + shotNo]._y = _parent.ship._y;
_parent["shot" + shotNo]._visible = true;
_parent["shot" + shotNo].gotoAndPlay("fire");
result = _parent["shot" + shotNo];
shotNo++;
if (shotNo > 99) {
shotNo = 0;
}
}
return(result);
};
tShotDelay.OnTimer = function () {
canShot = true;
};
tShotDelay.execute("frame", delayShot);
stop();
Symbol 249 MovieClip [beam44] Frame 3
turn();
Symbol 249 MovieClip [beam44] Frame 4
turn();
Symbol 249 MovieClip [beam44] Frame 5
turn();
gotoAndPlay ("fireCont");
Symbol 250 MovieClip Frame 1
status = "normal";
Symbol 250 MovieClip Frame 17
status = "dead";
stop();
Symbol 251 MovieClip [beam43] Frame 1
delayShot = 3;
shotSpeed = 5;
damage = 100;
genCost = 10;
y = beam._y;
x = beam._x;
status = "stop";
if (_parent.side == null) {
side = "player";
} else {
side = _parent.side;
}
hitShot = function () {
status = "blow";
shotSpeed = shotSpeed / 2;
beam.gotoAndPlay("blow");
};
checaColisao = function () {
if (status != "blow") {
if ((side == "player") || (side == "ally")) {
lp = 0;
while (lp < _parent._parent.noEnemies) {
if (beam.hitTest(_parent._parent.enemies[lp].getHit())) {
_parent._parent.hitEnemy(lp, damage);
hitShot();
}
lp++;
}
}
if ((side == "player") || (side == "enemy")) {
lp = 0;
while (lp < _parent._parent.noAllies) {
if (_parent._parent.allies[lp].getHit().hitTest(beam)) {
_parent._parent.hitAlly(lp, damage);
hitShot();
}
lp++;
}
}
}
};
turn = function () {
beam._y = beam._y - shotSpeed;
if (beam.status == "dead") {
this.removeMovieClip();
this.unloadMovie();
}
checaColisao();
};
Symbol 251 MovieClip [beam43] Frame 2
shotNo = 0;
canShot = true;
fire = function () {
result = null;
if (canShot) {
canShot = false;
_parent.shot.duplicateMovieClip("shot" + shotNo, 100 + shotNo);
_parent["shot" + shotNo]._x = _parent.ship._x;
_parent["shot" + shotNo]._y = _parent.ship._y;
_parent["shot" + shotNo]._visible = true;
_parent["shot" + shotNo].gotoAndPlay("fire");
result = _parent["shot" + shotNo];
shotNo++;
if (shotNo > 99) {
shotNo = 0;
}
}
return(result);
};
tShotDelay.OnTimer = function () {
canShot = true;
};
tShotDelay.execute("frame", delayShot);
stop();
Symbol 251 MovieClip [beam43] Frame 3
turn();
Symbol 251 MovieClip [beam43] Frame 4
turn();
Symbol 251 MovieClip [beam43] Frame 5
turn();
gotoAndPlay ("fireCont");
Symbol 252 MovieClip Frame 1
status = "normal";
Symbol 252 MovieClip Frame 14
status = "dead";
stop();
Symbol 253 MovieClip [beam42] Frame 1
delayShot = 3;
shotSpeed = 5;
damage = 60;
genCost = 5;
y = beam._y;
x = beam._x;
status = "stop";
if (_parent.side == null) {
side = "player";
} else {
side = _parent.side;
}
hitShot = function () {
status = "blow";
shotSpeed = shotSpeed / 2;
beam.gotoAndPlay("blow");
};
checaColisao = function () {
if (status != "blow") {
if ((side == "player") || (side == "ally")) {
lp = 0;
while (lp < _parent._parent.noEnemies) {
if (beam.hitTest(_parent._parent.enemies[lp].getHit())) {
_parent._parent.hitEnemy(lp, damage);
hitShot();
}
lp++;
}
}
if ((side == "player") || (side == "enemy")) {
lp = 0;
while (lp < _parent._parent.noAllies) {
if (_parent._parent.allies[lp].getHit().hitTest(beam)) {
_parent._parent.hitAlly(lp, damage);
hitShot();
}
lp++;
}
}
}
};
turn = function () {
beam._y = beam._y - shotSpeed;
if (beam.status == "dead") {
this.removeMovieClip();
this.unloadMovie();
}
checaColisao();
};
Symbol 253 MovieClip [beam42] Frame 2
shotNo = 0;
canShot = true;
fire = function () {
result = null;
if (canShot) {
canShot = false;
_parent.shot.duplicateMovieClip("shot" + shotNo, 100 + shotNo);
_parent["shot" + shotNo]._x = _parent.ship._x;
_parent["shot" + shotNo]._y = _parent.ship._y;
_parent["shot" + shotNo]._visible = true;
_parent["shot" + shotNo].gotoAndPlay("fire");
result = _parent["shot" + shotNo];
shotNo++;
if (shotNo > 99) {
shotNo = 0;
}
}
return(result);
};
tShotDelay.OnTimer = function () {
canShot = true;
};
tShotDelay.execute("frame", delayShot);
stop();
Symbol 253 MovieClip [beam42] Frame 3
turn();
Symbol 253 MovieClip [beam42] Frame 4
turn();
Symbol 253 MovieClip [beam42] Frame 5
turn();
gotoAndPlay ("fireCont");
Symbol 254 MovieClip Frame 1
status = "normal";
Symbol 254 MovieClip Frame 11
status = "dead";
stop();
Symbol 255 MovieClip [beam41] Frame 1
delayShot = 3;
shotSpeed = 5;
damage = 30;
genCost = 2;
y = beam._y;
x = beam._x;
status = "stop";
if (_parent.side == null) {
side = "player";
} else {
side = _parent.side;
}
hitShot = function () {
status = "blow";
shotSpeed = shotSpeed / 2;
beam.gotoAndPlay("blow");
};
checaColisao = function () {
if (status != "blow") {
if ((side == "player") || (side == "ally")) {
lp = 0;
while (lp < _parent._parent.noEnemies) {
if (beam.hitTest(_parent._parent.enemies[lp].getHit())) {
_parent._parent.hitEnemy(lp, damage);
hitShot();
}
lp++;
}
}
if ((side == "player") || (side == "enemy")) {
lp = 0;
while (lp < _parent._parent.noAllies) {
if (_parent._parent.allies[lp].getHit().hitTest(beam)) {
_parent._parent.hitAlly(lp, damage);
hitShot();
}
lp++;
}
}
}
};
turn = function () {
beam._y = beam._y - shotSpeed;
if (beam.status == "dead") {
this.removeMovieClip();
this.unloadMovie();
}
checaColisao();
};
Symbol 255 MovieClip [beam41] Frame 2
shotNo = 0;
canShot = true;
fire = function () {
result = null;
if (canShot) {
canShot = false;
_parent.shot.duplicateMovieClip("shot" + shotNo, 100 + shotNo);
_parent["shot" + shotNo]._x = _parent.ship._x;
_parent["shot" + shotNo]._y = _parent.ship._y;
_parent["shot" + shotNo]._visible = true;
_parent["shot" + shotNo].gotoAndPlay("fire");
result = _parent["shot" + shotNo];
shotNo++;
if (shotNo > 99) {
shotNo = 0;
}
}
return(result);
};
tShotDelay.OnTimer = function () {
canShot = true;
};
tShotDelay.execute("frame", delayShot);
stop();
Symbol 255 MovieClip [beam41] Frame 3
turn();
Symbol 255 MovieClip [beam41] Frame 4
turn();
Symbol 255 MovieClip [beam41] Frame 5
turn();
gotoAndPlay ("fireCont");
Symbol 257 MovieClip Frame 1
status = "normal";
Symbol 257 MovieClip Frame 31
status = "dead";
stop();
Symbol 259 MovieClip Frame 2
stop();
Symbol 261 MovieClip [beam55] Frame 1
function colideBeam(target) {
beamColision.duplicateMovieClip("colision" + colisionNo, 5000 + colisionNo);
col = this["colision" + colisionNo];
ptTarget = new Object();
ptTarget.x = target._x;
ptTarget.y = target._y;
target._parent.localToGlobal(ptTarget);
globalToLocal(ptTarget);
col._x = beam._x - (col._width / 2);
col._y = ((ptTarget.y + target._height) - col._height) + 3;
col._visible = true;
colisionNo++;
}
delayShot = 75;
shotSpeed = 0;
damage = 220;
genCost = 1400;
beamColision._visible = false;
colisionNo = 0;
y = beam._y;
x = beam._x;
status = "stop";
if (_parent.side == null) {
side = "player";
} else {
side = _parent.side;
}
hitShot = function () {
status = "blow";
shotSpeed = shotSpeed / 2;
beam.gotoAndPlay("blow");
};
checaColisao = function () {
if (status != "blow") {
lp = 0;
while (lp < _parent._parent.noEnemies) {
if (beam.hitTest(_parent._parent.enemies[lp].getHit())) {
_parent._parent.hitEnemy(lp, damage);
colideBeam(_parent._parent.enemies[lp].getHit());
}
lp++;
}
}
};
turn = function () {
checaColisao();
beam._x = _parent.ship._x - this._x;
beam._y = _parent.ship._y - this._y;
if (beam.status == "dead") {
this.removeMovieClip();
this.unloadMovie();
}
};
Symbol 261 MovieClip [beam55] Frame 2
shotNo = 0;
canShot = true;
fire = function () {
result = null;
if (canShot) {
canShot = false;
_parent.shot.duplicateMovieClip("shot" + shotNo, 100 + shotNo);
_parent["shot" + shotNo]._x = _parent.ship._x;
_parent["shot" + shotNo]._y = _parent.ship._y;
_parent["shot" + shotNo]._visible = true;
_parent["shot" + shotNo].gotoAndPlay("fire");
result = _parent["shot" + shotNo];
shotNo++;
if (shotNo > 99) {
shotNo = 0;
}
}
return(result);
};
tShotDelay.OnTimer = function () {
canShot = true;
};
tShotDelay.execute("frame", delayShot);
stop();
Symbol 261 MovieClip [beam55] Frame 3
turn();
Symbol 261 MovieClip [beam55] Frame 4
turn();
Symbol 261 MovieClip [beam55] Frame 5
turn();
gotoAndPlay ("fireCont");
Symbol 262 MovieClip Frame 1
status = "normal";
Symbol 262 MovieClip Frame 26
status = "dead";
stop();
Symbol 263 MovieClip [beam54] Frame 1
function colideBeam(target) {
beamColision.duplicateMovieClip("colision" + colisionNo, 5000 + colisionNo);
col = this["colision" + colisionNo];
ptTarget = new Object();
ptTarget.x = target._x;
ptTarget.y = target._y;
target._parent.localToGlobal(ptTarget);
globalToLocal(ptTarget);
col._x = beam._x - (col._width / 2);
col._y = ((ptTarget.y + target._height) - col._height) + 3;
col._visible = true;
colisionNo++;
}
delayShot = 75;
shotSpeed = 0;
damage = 136;
genCost = 700;
beamColision._visible = false;
colisionNo = 0;
y = beam._y;
x = beam._x;
status = "stop";
if (_parent.side == null) {
side = "player";
} else {
side = _parent.side;
}
hitShot = function () {
status = "blow";
shotSpeed = shotSpeed / 2;
beam.gotoAndPlay("blow");
};
checaColisao = function () {
if (status != "blow") {
lp = 0;
while (lp < _parent._parent.noEnemies) {
if (beam.hitTest(_parent._parent.enemies[lp].getHit())) {
_parent._parent.hitEnemy(lp, damage);
colideBeam(_parent._parent.enemies[lp].getHit());
}
lp++;
}
}
};
turn = function () {
checaColisao();
beam._x = _parent.ship._x - this._x;
beam._y = _parent.ship._y - this._y;
if (beam.status == "dead") {
this.removeMovieClip();
this.unloadMovie();
}
};
Symbol 263 MovieClip [beam54] Frame 2
shotNo = 0;
canShot = true;
fire = function () {
result = null;
if (canShot) {
canShot = false;
_parent.shot.duplicateMovieClip("shot" + shotNo, 100 + shotNo);
_parent["shot" + shotNo]._x = _parent.ship._x;
_parent["shot" + shotNo]._y = _parent.ship._y;
_parent["shot" + shotNo]._visible = true;
_parent["shot" + shotNo].gotoAndPlay("fire");
result = _parent["shot" + shotNo];
shotNo++;
if (shotNo > 99) {
shotNo = 0;
}
}
return(result);
};
tShotDelay.OnTimer = function () {
canShot = true;
};
tShotDelay.execute("frame", delayShot);
stop();
Symbol 263 MovieClip [beam54] Frame 3
turn();
Symbol 263 MovieClip [beam54] Frame 4
turn();
Symbol 263 MovieClip [beam54] Frame 5
turn();
gotoAndPlay ("fireCont");
Symbol 265 MovieClip Frame 1
status = "normal";
Symbol 265 MovieClip Frame 21
status = "dead";
stop();
Symbol 267 MovieClip [beam53] Frame 1
function colideBeam(target) {
beamColision.duplicateMovieClip("colision" + colisionNo, 5000 + colisionNo);
col = this["colision" + colisionNo];
ptTarget = new Object();
ptTarget.x = target._x;
ptTarget.y = target._y;
target._parent.localToGlobal(ptTarget);
globalToLocal(ptTarget);
col._x = beam._x - (col._width / 2);
col._y = ((ptTarget.y + target._height) - col._height) + 3;
col._visible = true;
colisionNo++;
}
delayShot = 75;
shotSpeed = 0;
damage = 67;
genCost = 270;
beamColision._visible = false;
colisionNo = 0;
y = beam._y;
x = beam._x;
status = "stop";
if (_parent.side == null) {
side = "player";
} else {
side = _parent.side;
}
hitShot = function () {
status = "blow";
shotSpeed = shotSpeed / 2;
beam.gotoAndPlay("blow");
};
checaColisao = function () {
if (status != "blow") {
lp = 0;
while (lp < _parent._parent.noEnemies) {
if (beam.hitTest(_parent._parent.enemies[lp].getHit())) {
_parent._parent.hitEnemy(lp, damage);
colideBeam(_parent._parent.enemies[lp].getHit());
}
lp++;
}
}
};
turn = function () {
checaColisao();
beam._x = _parent.ship._x - this._x;
beam._y = _parent.ship._y - this._y;
if (beam.status == "dead") {
this.removeMovieClip();
this.unloadMovie();
}
};
Symbol 267 MovieClip [beam53] Frame 2
shotNo = 0;
canShot = true;
fire = function () {
result = null;
if (canShot) {
canShot = false;
_parent.shot.duplicateMovieClip("shot" + shotNo, 100 + shotNo);
_parent["shot" + shotNo]._x = _parent.ship._x;
_parent["shot" + shotNo]._y = _parent.ship._y;
_parent["shot" + shotNo]._visible = true;
_parent["shot" + shotNo].gotoAndPlay("fire");
result = _parent["shot" + shotNo];
shotNo++;
if (shotNo > 99) {
shotNo = 0;
}
}
return(result);
};
tShotDelay.OnTimer = function () {
canShot = true;
};
tShotDelay.execute("frame", delayShot);
stop();
Symbol 267 MovieClip [beam53] Frame 3
turn();
Symbol 267 MovieClip [beam53] Frame 4
turn();
Symbol 267 MovieClip [beam53] Frame 5
turn();
gotoAndPlay ("fireCont");
Symbol 268 MovieClip Frame 1
status = "normal";
Symbol 268 MovieClip Frame 16
status = "dead";
stop();
Symbol 269 MovieClip [beam52] Frame 1
function colideBeam(target) {
beamColision.duplicateMovieClip("colision" + colisionNo, 5000 + colisionNo);
col = this["colision" + colisionNo];
ptTarget = new Object();
ptTarget.x = target._x;
ptTarget.y = target._y;
target._parent.localToGlobal(ptTarget);
globalToLocal(ptTarget);
col._x = beam._x - (col._width / 2);
col._y = ((ptTarget.y + target._height) - col._height) + 3;
col._visible = true;
colisionNo++;
}
delayShot = 75;
shotSpeed = 0;
damage = 30;
genCost = 110;
beamColision._visible = false;
colisionNo = 0;
y = beam._y;
x = beam._x;
status = "stop";
if (_parent.side == null) {
side = "player";
} else {
side = _parent.side;
}
hitShot = function () {
status = "blow";
shotSpeed = shotSpeed / 2;
beam.gotoAndPlay("blow");
};
checaColisao = function () {
if (status != "blow") {
lp = 0;
while (lp < _parent._parent.noEnemies) {
if (beam.hitTest(_parent._parent.enemies[lp].getHit())) {
_parent._parent.hitEnemy(lp, damage);
colideBeam(_parent._parent.enemies[lp].getHit());
}
lp++;
}
}
};
turn = function () {
checaColisao();
beam._x = _parent.ship._x - this._x;
beam._y = _parent.ship._y - this._y;
if (beam.status == "dead") {
this.removeMovieClip();
this.unloadMovie();
}
};
Symbol 269 MovieClip [beam52] Frame 2
shotNo = 0;
canShot = true;
fire = function () {
result = null;
if (canShot) {
canShot = false;
_parent.shot.duplicateMovieClip("shot" + shotNo, 100 + shotNo);
_parent["shot" + shotNo]._x = _parent.ship._x;
_parent["shot" + shotNo]._y = _parent.ship._y;
_parent["shot" + shotNo]._visible = true;
_parent["shot" + shotNo].gotoAndPlay("fire");
result = _parent["shot" + shotNo];
shotNo++;
if (shotNo > 99) {
shotNo = 0;
}
}
return(result);
};
tShotDelay.OnTimer = function () {
canShot = true;
};
tShotDelay.execute("frame", delayShot);
stop();
Symbol 269 MovieClip [beam52] Frame 3
turn();
Symbol 269 MovieClip [beam52] Frame 4
turn();
Symbol 269 MovieClip [beam52] Frame 5
turn();
gotoAndPlay ("fireCont");
Symbol 270 MovieClip Frame 1
status = "normal";
Symbol 270 MovieClip Frame 11
status = "dead";
stop();
Symbol 271 MovieClip [beam51] Frame 1
function colideBeam(target) {
beamColision.duplicateMovieClip("colision" + colisionNo, 5000 + colisionNo);
col = this["colision" + colisionNo];
ptTarget = new Object();
ptTarget.x = target._x;
ptTarget.y = target._y;
target._parent.localToGlobal(ptTarget);
globalToLocal(ptTarget);
col._x = beam._x - (col._width / 2);
col._y = ((ptTarget.y + target._height) - col._height) + 3;
col._visible = true;
colisionNo++;
}
delayShot = 75;
shotSpeed = 0;
damage = 19;
genCost = 40;
beamColision._visible = false;
colisionNo = 0;
y = beam._y;
x = beam._x;
status = "stop";
if (_parent.side == null) {
side = "player";
} else {
side = _parent.side;
}
hitShot = function () {
status = "blow";
shotSpeed = shotSpeed / 2;
beam.gotoAndPlay("blow");
};
checaColisao = function () {
if (status != "blow") {
lp = 0;
while (lp < _parent._parent.noEnemies) {
if (beam.hitTest(_parent._parent.enemies[lp].getHit())) {
_parent._parent.hitEnemy(lp, damage);
colideBeam(_parent._parent.enemies[lp].getHit());
}
lp++;
}
}
};
turn = function () {
checaColisao();
beam._x = _parent.ship._x - this._x;
beam._y = _parent.ship._y - this._y;
if (beam.status == "dead") {
this.removeMovieClip();
this.unloadMovie();
}
};
Symbol 271 MovieClip [beam51] Frame 2
shotNo = 0;
canShot = true;
fire = function () {
result = null;
if (canShot) {
canShot = false;
_parent.shot.duplicateMovieClip("shot" + shotNo, 100 + shotNo);
_parent["shot" + shotNo]._x = _parent.ship._x;
_parent["shot" + shotNo]._y = _parent.ship._y;
_parent["shot" + shotNo]._visible = true;
_parent["shot" + shotNo].gotoAndPlay("fire");
result = _parent["shot" + shotNo];
shotNo++;
if (shotNo > 99) {
shotNo = 0;
}
}
return(result);
};
tShotDelay.OnTimer = function () {
canShot = true;
};
tShotDelay.execute("frame", delayShot);
stop();
Symbol 271 MovieClip [beam51] Frame 3
turn();
Symbol 271 MovieClip [beam51] Frame 4
turn();
Symbol 271 MovieClip [beam51] Frame 5
turn();
gotoAndPlay ("fireCont");
Symbol 275 MovieClip Frame 1
stop();
Symbol 275 MovieClip Frame 10
_parent.removeMovieClip();
stop();
Symbol 276 MovieClip [beam21] Frame 1
delayShot = 5;
shotSpeed = 20;
damage = 25;
genCost = 2;
y = beam._y;
x = beam._x;
status = "stop";
if (_parent.side == null) {
side = "player";
} else {
side = _parent.side;
}
hitShot = function () {
status = "blow";
shotSpeed = shotSpeed / 2;
beam.gotoAndPlay("blow");
};
checaColisao = function () {
if (status != "blow") {
if ((side == "player") || (side == "ally")) {
lp = 0;
while (lp < _parent._parent.noEnemies) {
if (beam.hitTest(_parent._parent.enemies[lp].getHit())) {
_parent._parent.hitEnemy(lp, damage);
hitShot();
}
lp++;
}
}
if ((side == "player") || (side == "enemy")) {
lp = 0;
while (lp < _parent._parent.noAllies) {
if (_parent._parent.allies[lp].getHit().hitTest(beam)) {
_parent._parent.hitAlly(lp, damage);
hitShot();
}
lp++;
}
}
}
};
turn = function () {
beam._y = beam._y - shotSpeed;
fire._x = _parent.ship._x - this._x;
fire._y = (_parent.ship._y - this._y) - 20;
checaColisao();
};
Symbol 276 MovieClip [beam21] Frame 2
shotNo = 0;
canShot = true;
fire = function () {
result = null;
if (canShot) {
canShot = false;
_parent.shot.duplicateMovieClip("shot" + shotNo, 100 + shotNo);
_parent["shot" + shotNo]._x = _parent.ship._x;
_parent["shot" + shotNo]._y = _parent.ship._y;
_parent["shot" + shotNo]._visible = true;
_parent["shot" + shotNo].gotoAndPlay("fire");
result = _parent["shot" + shotNo];
shotNo++;
if (shotNo > 99) {
shotNo = 0;
}
}
return(result);
};
tShotDelay.OnTimer = function () {
canShot = true;
};
tShotDelay.execute("frame", delayShot);
stop();
Symbol 276 MovieClip [beam21] Frame 3
turn();
Symbol 276 MovieClip [beam21] Frame 4
turn();
Symbol 276 MovieClip [beam21] Frame 5
turn();
if ((beam._y < (y - 800)) || (beam._y > (y + 800))) {
this.removeMovieClip();
}
gotoAndPlay ("fireCont");
Symbol 280 MovieClip Frame 2
stop();
Symbol 280 MovieClip Frame 11
_parent.removeMovieClip();
stop();
Symbol 282 MovieClip [beam12] Frame 1
delayShot = 17;
shotSpeed = 12;
damage = 200;
genCost = 25;
y = _y;
x = _x;
status = "stop";
if (_parent.side == null) {
side = "player";
} else {
side = _parent.side;
}
hitShot = function () {
status = "blow";
shotSpeed = shotSpeed / 2;
beam.gotoAndPlay("blow");
};
checaColisao = function () {
if (status != "blow") {
lp = 0;
while (lp < _parent._parent.noEnemies) {
if (this.hitTest(_parent._parent.enemies[lp].getHit())) {
_parent._parent.hitEnemy(lp, damage);
hitShot();
}
lp++;
}
}
};
Symbol 282 MovieClip [beam12] Frame 2
shotNo = 0;
canShot = true;
fire = function () {
result = null;
if (canShot) {
canShot = false;
_parent.shot.duplicateMovieClip("shot" + shotNo, 100 + shotNo);
_parent["shot" + shotNo]._x = _parent.ship._x;
_parent["shot" + shotNo]._y = _parent.ship._y;
_parent["shot" + shotNo]._visible = true;
_parent["shot" + shotNo].gotoAndPlay("fire");
result = _parent["shot" + shotNo];
shotNo++;
if (shotNo > 99) {
shotNo = 0;
}
}
return(result);
};
tShotDelay.OnTimer = function () {
canShot = true;
};
tShotDelay.execute("frame", delayShot);
stop();
Symbol 282 MovieClip [beam12] Frame 3
_y = (_y - shotSpeed);
checaColisao();
Symbol 282 MovieClip [beam12] Frame 4
_y = (_y - shotSpeed);
checaColisao();
Symbol 282 MovieClip [beam12] Frame 5
_y = (_y - shotSpeed);
checaColisao();
if (_y < (y - 600)) {
this.removeMovieClip();
}
gotoAndPlay ("fireCont");
Symbol 286 MovieClip Frame 2
stop();
Symbol 286 MovieClip Frame 11
_parent.removeMovieClip();
stop();
Symbol 287 MovieClip [beam11] Frame 1
delayShot = 20;
shotSpeed = 10;
damage = 100;
genCost = 10;
y = beam._y;
x = beam._x;
status = "stop";
if (_parent.side == null) {
side = "player";
} else {
side = _parent.side;
}
hitShot = function () {
status = "blow";
shotSpeed = shotSpeed / 2;
beam.gotoAndPlay("blow");
};
checaColisao = function () {
beam._y = beam._y - shotSpeed;
if (status != "blow") {
lp = 0;
while (lp < _root.game.noEnemies) {
if (this.hitTest(_root.game.enemies[lp].getHit())) {
_root.game.hitEnemy(lp, damage);
hitShot();
}
lp++;
}
}
};
Symbol 287 MovieClip [beam11] Frame 2
shotNo = 0;
canShot = true;
fire = function () {
result = null;
if (canShot) {
canShot = false;
_parent.shot.duplicateMovieClip("shot" + shotNo, 100 + shotNo);
_parent["shot" + shotNo]._x = _parent.ship._x;
_parent["shot" + shotNo]._y = _parent.ship._y;
_parent["shot" + shotNo]._visible = true;
_parent["shot" + shotNo].gotoAndPlay("fire");
result = _parent["shot" + shotNo];
shotNo++;
if (shotNo > 99) {
shotNo = 0;
}
}
return(result);
};
tShotDelay.OnTimer = function () {
canShot = true;
};
tShotDelay.execute("frame", delayShot);
stop();
Symbol 287 MovieClip [beam11] Frame 3
checaColisao();
Symbol 287 MovieClip [beam11] Frame 4
checaColisao();
Symbol 287 MovieClip [beam11] Frame 5
checaColisao();
if (beam._y < (y - 600)) {
this.removeMovieClip();
}
gotoAndPlay ("fireCont");
Symbol 293 MovieClip [ship5] Frame 1
hp = 5000;
_parent.hp = hp;
_parent.maxHp = hp;
go = function (where) {
if ((where != _parent.statusX) && (where != _parent.statusY)) {
if ((where == "left") || (where == "right")) {
gotoAndPlay(where);
tMoveY.start();
} else if ((where == "up") || (where == "down")) {
fireMove.gotoAndPlay(where);
} else if (where == "stopX") {
gotoAndPlay ("stop");
} else if (where == "stopY") {
fireMove.gotoAndPlay("stop");
}
}
};
Symbol 293 MovieClip [ship5] Frame 4
stop();
Symbol 293 MovieClip [ship5] Frame 8
stop();
Symbol 293 MovieClip [ship5] Frame 12
stop();
Symbol 293 MovieClip [ship5] Frame 110
stop();
Symbol 294 MovieClip [beam13] Frame 1
delayShot = 14;
shotSpeed = 15;
damage = 500;
genCost = 50;
y = _y;
x = _x;
status = "stop";
if (_parent.side == null) {
side = "player";
} else {
side = _parent.side;
}
hitShot = function () {
status = "blow";
shotSpeed = shotSpeed / 2;
beam.gotoAndPlay("blow");
};
checaColisao = function () {
if (status != "blow") {
lp = 0;
while (lp < _root.game.noEnemies) {
if (this.hitTest(_root.game.enemies[lp].getHit())) {
_root.game.hitEnemy(lp, damage);
hitShot();
}
lp++;
}
}
};
Symbol 294 MovieClip [beam13] Frame 2
shotNo = 0;
canShot = true;
fire = function () {
result = null;
if (canShot) {
canShot = false;
_parent.shot.duplicateMovieClip("shot" + shotNo, 100 + shotNo);
_parent["shot" + shotNo]._x = _parent.ship._x;
_parent["shot" + shotNo]._y = _parent.ship._y;
_parent["shot" + shotNo]._visible = true;
_parent["shot" + shotNo].gotoAndPlay("fire");
result = _parent["shot" + shotNo];
shotNo++;
if (shotNo > 99) {
shotNo = 0;
}
}
return(result);
};
tShotDelay.OnTimer = function () {
canShot = true;
};
tShotDelay.execute("frame", delayShot);
stop();
Symbol 294 MovieClip [beam13] Frame 3
_y = (_y - shotSpeed);
checaColisao();
Symbol 294 MovieClip [beam13] Frame 4
_y = (_y - shotSpeed);
checaColisao();
Symbol 294 MovieClip [beam13] Frame 5
_y = (_y - shotSpeed);
Symbol 294 MovieClip [beam13] Frame 6
_y = (_y - shotSpeed);
Symbol 294 MovieClip [beam13] Frame 7
_y = (_y - shotSpeed);
checaColisao();
if ((((_y < (y - 800)) || (_y > (y + 800))) || (_x < (x - 600))) || (_x > (x + 600))) {
this.removeMovieClip();
}
gotoAndPlay ("fireCont");
Symbol 296 MovieClip Frame 4
stop();
Symbol 299 MovieClip Frame 6
stop();
Symbol 300 MovieClip [beamspecial] Frame 1
delayShot = 20;
shotSpeed = 40;
damage = 500;
genCost = 300;
y = beam._y;
x = beam._x;
status = "stop";
if (_parent.side == null) {
side = "player";
} else {
side = _parent.side;
}
checaColisao = function () {
lp = 0;
while (lp < _parent._parent.noEnemies) {
if (this.hitTest(_parent._parent.enemies[lp].getHit())) {
_parent._parent.hitEnemy(lp, damage);
}
lp++;
}
};
Symbol 300 MovieClip [beamspecial] Frame 2
canShot = true;
fire = function () {
shotNo = _parent.shot.shotNo;
result = null;
if (canShot) {
canShot = false;
this.duplicateMovieClip("shotSpecial" + shotNo, 100 + shotNo);
_parent["shotSpecial" + shotNo]._x = _parent.ship._x;
_parent["shotSpecial" + shotNo]._y = _parent.ship._y;
_parent["shotSpecial" + shotNo]._visible = true;
_parent["shotSpecial" + shotNo].gotoAndPlay("fire");
result = _parent["shotSpecial" + shotNo];
_parent.shot.shotNo++;
if (_parent.shot.shotNo > 99) {
_parent.shot.shotNo = 0;
}
}
return(result);
};
tShotDelay.OnTimer = function () {
canShot = true;
};
tShotDelay.execute("frame", delayShot);
stop();
Symbol 300 MovieClip [beamspecial] Frame 3
_y = (_y - shotSpeed);
checaColisao();
Symbol 300 MovieClip [beamspecial] Frame 4
beam._y = beam._y - shotSpeed;
checaColisao();
Symbol 300 MovieClip [beamspecial] Frame 5
beam._y = beam._y - shotSpeed;
checaColisao();
if (beam._y < (y - 600)) {
this.removeMovieClip();
}
gotoAndPlay ("fireCont");
Symbol 308 MovieClip Frame 1
cnt = 0;
rnd = random(100);
Symbol 308 MovieClip Frame 3
cnt++;
if (cnt < rnd) {
gotoAndPlay ("wait");
}
Symbol 323 MovieClip Frame 50
stop();
Symbol 330 Button
on (release) {
getURL ("http://www.newgrounds.com", "_self");
}
Symbol 335 MovieClip Frame 30
if (_root.titlecod != null) {
_root.gotoAndPlay(_root.titlecod);
}
stop();
Symbol 342 Button
on (release) {
getURL ("mailto:sspecter@gmail.com", "_self");
}
Symbol 346 MovieClip Frame 1
function reset() {
barra = _parent;
movie = _root;
total = 0;
loaded = 0;
maximo = 0;
_percentLoaded = 0;
tipo = "byte";
}
function inicia() {
barra.stop();
movie.stop();
if (maximo > 0) {
total = maximo;
} else if (tipo == "frame") {
total = movie._totalframes;
} else {
total = movie.getBytesTotal();
}
}
function para() {
timer.stop();
gotoAndStop ("ativo");
}
function setBarra(bar) {
barra = bar;
}
function getBarra() {
return(barra);
}
function setMovie(mv) {
movie = mv;
}
function getMovie() {
return(movie);
}
function getTipo() {
return(tipo);
}
function getMaximo() {
return(maximo);
}
function onLoadComplete() {
}
indicador._visible = false;
barra = null;
movie = null;
total = 0;
loaded = 0;
_percentLoaded = 0;
tipo = "byte";
maximo = 0;
real_maximo = 4883;
setTipo = function (t) {
if ((t == "frame") || (t == "byte")) {
tipo = t;
} else {
trace("[SSPLoader] ERRO: valor de tipo deve ser igual a \"frame\" ou \"byte\", em min\u00FAsculas.");
}
};
setMaximo = function (max) {
if (maximo > 0) {
maximo = max;
} else {
trace("[SSPLoader] ERRO: valor m\u00E1ximo verificado deve ser maior que 0.");
}
};
reset();
inicia();
Symbol 346 MovieClip Frame 2
timer.OnTimer = function () {
txtTipo = "";
if (tipo == "frame") {
loaded = _root._framesloaded;
txtTipo = "frames";
} else {
loaded = _root.getBytesLoaded();
txtTipo = "kb";
}
if ((loaded > total) || (loaded < 0)) {
trace(((("[SSPLoader] ERRO: bytes carregados (" + loaded) + ") ou total de bytes (") + maximo) + ") possuem valor inv\u00E1lido.");
} else {
real_loaded = Math.round((real_maximo * loaded) / maximo);
_percentLoaded = total / loaded;
frame = barra._totalframes / _percentLoaded;
barra.gotoAndStop(frame);
txtLoaded = Math.round((_root.getBytesLoaded() * real_maximo) / total);
txtTotal = Math.round(real_maximo);
barra.txtLoaded = (((txtLoaded + txtTipo) + " of ") + txtTotal) + txtTipo;
if (loaded == total) {
timer.reset();
barra._visible = false;
movie.play();
onLoadComplete();
}
}
};
timer.execute("frame", 1);
stop();
Symbol 356 MovieClip Frame 1
stop();
Symbol 371 MovieClip Frame 1
stop();
Symbol 3 MovieClip [__Packages.mx.core.UIObject] Frame 0
class mx.core.UIObject extends MovieClip
{
var _width, _height, _x, _y, _parent, _minHeight, _minWidth, _visible, dispatchEvent, _xscale, _yscale, methodTable, onEnterFrame, tfList, __width, __height, moveTo, lineTo, createTextField, attachMovie, buildDepthTable, findNextAvailableDepth, idNames, childrenCreated, _name, createAccessibilityImplementation, _endInit, validateNow, hasOwnProperty, initProperties, stylecache, className, ignoreClassStyleDeclaration, _tf, fontFamily, fontSize, color, marginLeft, marginRight, fontStyle, fontWeight, textAlign, textIndent, textDecoration, embedFonts, styleName, enabled;
function UIObject () {
super();
constructObject();
}
function get width() {
return(_width);
}
function get height() {
return(_height);
}
function get left() {
return(_x);
}
function get x() {
return(_x);
}
function get top() {
return(_y);
}
function get y() {
return(_y);
}
function get right() {
return(_parent.width - (_x + width));
}
function get bottom() {
return(_parent.height - (_y + height));
}
function getMinHeight(Void) {
return(_minHeight);
}
function setMinHeight(h) {
_minHeight = h;
}
function get minHeight() {
return(getMinHeight());
}
function set minHeight(h) {
setMinHeight(h);
//return(minHeight);
}
function getMinWidth(Void) {
return(_minWidth);
}
function setMinWidth(w) {
_minWidth = w;
}
function get minWidth() {
return(getMinWidth());
}
function set minWidth(w) {
setMinWidth(w);
//return(minWidth);
}
function setVisible(x, noEvent) {
if (x != _visible) {
_visible = x;
if (noEvent != true) {
dispatchEvent({type:(x ? "reveal" : "hide")});
}
}
}
function get visible() {
return(_visible);
}
function set visible(x) {
setVisible(x, false);
//return(visible);
}
function get scaleX() {
return(_xscale);
}
function set scaleX(x) {
_xscale = x;
//return(scaleX);
}
function get scaleY() {
return(_yscale);
}
function set scaleY(y) {
_yscale = y;
//return(scaleY);
}
function doLater(obj, fn) {
if (methodTable == undefined) {
methodTable = new Array();
}
methodTable.push({obj:obj, fn:fn});
onEnterFrame = doLaterDispatcher;
}
function doLaterDispatcher(Void) {
delete onEnterFrame;
if (invalidateFlag) {
redraw();
}
var _local3 = methodTable;
methodTable = new Array();
if (_local3.length > 0) {
var _local2;
while (_local2 = _local3.shift() , _local2 != undefined) {
_local2.obj[_local2.fn]();
}
}
}
function cancelAllDoLaters(Void) {
delete onEnterFrame;
methodTable = new Array();
}
function invalidate(Void) {
invalidateFlag = true;
onEnterFrame = doLaterDispatcher;
}
function invalidateStyle(Void) {
invalidate();
}
function redraw(bAlways) {
if (invalidateFlag || (bAlways)) {
invalidateFlag = false;
var _local2;
for (_local2 in tfList) {
tfList[_local2].draw();
}
draw();
dispatchEvent({type:"draw"});
}
}
function draw(Void) {
}
function move(x, y, noEvent) {
var _local3 = _x;
var _local2 = _y;
_x = x;
_y = y;
if (noEvent != true) {
dispatchEvent({type:"move", oldX:_local3, oldY:_local2});
}
}
function setSize(w, h, noEvent) {
var _local2 = __width;
var _local3 = __height;
__width = w;
__height = h;
size();
if (noEvent != true) {
dispatchEvent({type:"resize", oldWidth:_local2, oldHeight:_local3});
}
}
function size(Void) {
_width = __width;
_height = __height;
}
function drawRect(x1, y1, x2, y2) {
moveTo(x1, y1);
lineTo(x2, y1);
lineTo(x2, y2);
lineTo(x1, y2);
lineTo(x1, y1);
}
function createLabel(name, depth, text) {
createTextField(name, depth, 0, 0, 0, 0);
var _local2 = this[name];
_local2._color = textColorList;
_local2._visible = false;
_local2.__text = text;
if (tfList == undefined) {
tfList = new Object();
}
tfList[name] = _local2;
_local2.invalidateStyle();
invalidate();
_local2.styleName = this;
return(_local2);
}
function createObject(linkageName, id, depth, initobj) {
return(attachMovie(linkageName, id, depth, initobj));
}
function createClassObject(className, id, depth, initobj) {
var _local3 = className.symbolName == undefined;
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className);
}
var _local4 = createObject(className.symbolOwner.symbolName, id, depth, initobj);
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner);
}
return(_local4);
}
function createEmptyObject(id, depth) {
return(createClassObject(mx.core.UIObject, id, depth));
}
function destroyObject(id) {
var _local2 = this[id];
if (_local2.getDepth() < 0) {
var _local4 = buildDepthTable();
var _local5 = findNextAvailableDepth(0, _local4, "up");
var _local3 = _local5;
_local2.swapDepths(_local3);
}
_local2.removeMovieClip();
delete this[id];
}
function getSkinIDName(tag) {
return(idNames[tag]);
}
function setSkin(tag, linkageName, initObj) {
if (_global.skinRegistry[linkageName] == undefined) {
mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement);
}
return(createObject(linkageName, getSkinIDName(tag), tag, initObj));
}
function createSkin(tag) {
var _local2 = getSkinIDName(tag);
createEmptyObject(_local2, tag);
return(this[_local2]);
}
function createChildren(Void) {
}
function _createChildren(Void) {
createChildren();
childrenCreated = true;
}
function constructObject(Void) {
if (_name == undefined) {
return(undefined);
}
init();
_createChildren();
createAccessibilityImplementation();
_endInit();
if (validateNow) {
redraw(true);
} else {
invalidate();
}
}
function initFromClipParameters(Void) {
var _local4 = false;
var _local2;
for (_local2 in clipParameters) {
if (hasOwnProperty(_local2)) {
_local4 = true;
this["def_" + _local2] = this[_local2];
delete this[_local2];
}
}
if (_local4) {
for (_local2 in clipParameters) {
var _local3 = this["def_" + _local2];
if (_local3 != undefined) {
this[_local2] = _local3;
}
}
}
}
function init(Void) {
__width = _width;
__height = _height;
if (initProperties == undefined) {
initFromClipParameters();
} else {
initProperties();
}
if (_global.cascadingStyles == true) {
stylecache = new Object();
}
}
function getClassStyleDeclaration(Void) {
var _local4 = this;
var _local3 = className;
while (_local3 != undefined) {
if (ignoreClassStyleDeclaration[_local3] == undefined) {
if (_global.styles[_local3] != undefined) {
return(_global.styles[_local3]);
}
}
_local4 = _local4.__proto__;
_local3 = _local4.className;
}
}
function setColor(color) {
}
function __getTextFormat(tf, bAll) {
var _local8 = stylecache.tf;
if (_local8 != undefined) {
var _local3;
for (_local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
tf[_local3] = _local8[_local3];
}
}
}
return(false);
}
var _local6 = false;
for (var _local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
var _local5 = _tf[_local3];
if (_local5 != undefined) {
tf[_local3] = _local5;
} else if ((_local3 == "font") && (fontFamily != undefined)) {
tf[_local3] = fontFamily;
} else if ((_local3 == "size") && (fontSize != undefined)) {
tf[_local3] = fontSize;
} else if ((_local3 == "color") && (color != undefined)) {
tf[_local3] = color;
} else if ((_local3 == "leftMargin") && (marginLeft != undefined)) {
tf[_local3] = marginLeft;
} else if ((_local3 == "rightMargin") && (marginRight != undefined)) {
tf[_local3] = marginRight;
} else if ((_local3 == "italic") && (fontStyle != undefined)) {
tf[_local3] = fontStyle == _local3;
} else if ((_local3 == "bold") && (fontWeight != undefined)) {
tf[_local3] = fontWeight == _local3;
} else if ((_local3 == "align") && (textAlign != undefined)) {
tf[_local3] = textAlign;
} else if ((_local3 == "indent") && (textIndent != undefined)) {
tf[_local3] = textIndent;
} else if ((_local3 == "underline") && (textDecoration != undefined)) {
tf[_local3] = textDecoration == _local3;
} else if ((_local3 == "embedFonts") && (embedFonts != undefined)) {
tf[_local3] = embedFonts;
} else {
_local6 = true;
}
}
}
}
if (_local6) {
var _local9 = styleName;
if (_local9 != undefined) {
if (typeof(_local9) != "string") {
_local6 = _local9.__getTextFormat(tf, true, this);
} else if (_global.styles[_local9] != undefined) {
_local6 = _global.styles[_local9].__getTextFormat(tf, true, this);
}
}
}
if (_local6) {
var _local10 = getClassStyleDeclaration();
if (_local10 != undefined) {
_local6 = _local10.__getTextFormat(tf, true, this);
}
}
if (_local6) {
if (_global.cascadingStyles) {
if (_parent != undefined) {
_local6 = _parent.__getTextFormat(tf, false);
}
}
}
if (_local6) {
_local6 = _global.style.__getTextFormat(tf, true, this);
}
return(_local6);
}
function _getTextFormat(Void) {
var _local2 = stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
__getTextFormat(_local2, true);
stylecache.tf = _local2;
if (enabled == false) {
var _local3 = getStyle("disabledColor");
_local2.color = _local3;
}
return(_local2);
}
function getStyleName(Void) {
var _local2 = styleName;
if (_local2 != undefined) {
if (typeof(_local2) != "string") {
return(_local2.getStyleName());
}
return(_local2);
}
if (_parent != undefined) {
return(_parent.getStyleName());
}
return(undefined);
}
function getStyle(styleProp) {
var _local3;
_global.getStyleCounter++;
if (this[styleProp] != undefined) {
return(this[styleProp]);
}
var _local6 = styleName;
if (_local6 != undefined) {
if (typeof(_local6) != "string") {
_local3 = _local6.getStyle(styleProp);
} else {
var _local7 = _global.styles[_local6];
_local3 = _local7.getStyle(styleProp);
}
}
if (_local3 != undefined) {
return(_local3);
}
var _local7 = getClassStyleDeclaration();
if (_local7 != undefined) {
_local3 = _local7[styleProp];
}
if (_local3 != undefined) {
return(_local3);
}
if (_global.cascadingStyles) {
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (mx.styles.StyleManager.isColorStyle(styleProp))) {
var _local5 = stylecache;
if (_local5 != undefined) {
if (_local5[styleProp] != undefined) {
return(_local5[styleProp]);
}
}
if (_parent != undefined) {
_local3 = _parent.getStyle(styleProp);
} else {
_local3 = _global.style[styleProp];
}
if (_local5 != undefined) {
_local5[styleProp] = _local3;
}
return(_local3);
}
}
if (_local3 == undefined) {
_local3 = _global.style[styleProp];
}
return(_local3);
}
static function mergeClipParameters(o, p) {
for (var _local3 in p) {
o[_local3] = p[_local3];
}
return(true);
}
static var symbolName = "UIObject";
static var symbolOwner = mx.core.UIObject;
static var version = "2.0.0.360";
static var textColorList = {color:1, disabledColor:1};
var invalidateFlag = false;
var lineWidth = 1;
var lineColor = 0;
var tabEnabled = false;
var clipParameters = {visible:1, minHeight:1, minWidth:1, maxHeight:1, maxWidth:1, preferredHeight:1, preferredWidth:1};
}
Symbol 4 MovieClip [__Packages.mx.core.UIComponent] Frame 0
class mx.core.UIComponent extends mx.core.UIObject
{
var __width, __height, invalidate, stylecache, removeEventListener, dispatchEvent, drawFocus, addEventListener, _xscale, _yscale, _focusrect, watch, enabled;
function UIComponent () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function setVisible(x, noEvent) {
super.setVisible(x, noEvent);
}
function enabledChanged(id, oldValue, newValue) {
setEnabled(newValue);
invalidate();
delete stylecache.tf;
return(newValue);
}
function setEnabled(enabled) {
invalidate();
}
function getFocus() {
var selFocus = Selection.getFocus();
return(((selFocus === null) ? null : (eval (selFocus))));
}
function setFocus() {
Selection.setFocus(this);
}
function getFocusManager() {
var _local2 = this;
while (_local2 != undefined) {
if (_local2.focusManager != undefined) {
return(_local2.focusManager);
}
_local2 = _local2._parent;
}
return(undefined);
}
function onKillFocus(newFocus) {
removeEventListener("keyDown", this);
removeEventListener("keyUp", this);
dispatchEvent({type:"focusOut"});
drawFocus(false);
}
function onSetFocus(oldFocus) {
addEventListener("keyDown", this);
addEventListener("keyUp", this);
dispatchEvent({type:"focusIn"});
if (getFocusManager().bDrawFocus != false) {
drawFocus(true);
}
}
function findFocusInChildren(o) {
if (o.focusTextField != undefined) {
return(o.focusTextField);
}
if (o.tabEnabled == true) {
return(o);
}
return(undefined);
}
function findFocusFromObject(o) {
if (o.tabEnabled != true) {
if (o._parent == undefined) {
return(undefined);
}
if (o._parent.tabEnabled == true) {
o = o._parent;
} else if (o._parent.tabChildren) {
o = findFocusInChildren(o._parent);
} else {
o = findFocusFromObject(o._parent);
}
}
return(o);
}
function pressFocus() {
var _local3 = findFocusFromObject(this);
var _local2 = getFocus();
if (_local3 != _local2) {
_local2.drawFocus(false);
if (getFocusManager().bDrawFocus != false) {
_local3.drawFocus(true);
}
}
}
function releaseFocus() {
var _local2 = findFocusFromObject(this);
if (_local2 != getFocus()) {
_local2.setFocus();
}
}
function isParent(o) {
while (o != undefined) {
if (o == this) {
return(true);
}
o = o._parent;
}
return(false);
}
function size() {
}
function init() {
super.init();
_xscale = 100;
_yscale = 100;
_focusrect = _global.useFocusRect == false;
watch("enabled", enabledChanged);
if (enabled == false) {
setEnabled(false);
}
}
function dispatchValueChangedEvent(value) {
dispatchEvent({type:"valueChanged", value:value});
}
static var symbolName = "UIComponent";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.0.360";
static var kStretch = 5000;
var focusEnabled = true;
var tabEnabled = true;
var origBorderStyles = {themeColor:16711680};
var clipParameters = {};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.core.UIComponent.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters);
}
Symbol 5 MovieClip [__Packages.mx.controls.SimpleButton] Frame 0
class mx.controls.SimpleButton extends mx.core.UIComponent
{
static var emphasizedStyleDeclaration;
var preset, boundingBox_mc, useHandCursor, skinName, linkLength, iconName, destroyObject, __width, _width, __height, _height, __emphaticStyleName, styleName, enabled, invalidate, pressFocus, dispatchEvent, autoRepeat, interval, getStyle, releaseFocus, createLabel, invalidateStyle;
function SimpleButton () {
super();
}
function init(Void) {
super.init();
if (preset == undefined) {
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
useHandCursor = false;
}
function createChildren(Void) {
if (preset != undefined) {
var _local2 = this[idNames[preset]];
this[refNames[preset]] = _local2;
skinName = _local2;
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
}
initializing = false;
} else if (__state == true) {
setStateVar(true);
} else {
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
}
}
}
function setIcon(tag, linkageName) {
return(setSkin(tag + 8, linkageName));
}
function changeIcon(tag, linkageName) {
linkLength = linkageName.length;
var _local2 = stateNames[tag] + "Icon";
this[_local2] = linkageName;
this[idNames[tag + 8]] = _local2;
setStateVar(getState());
}
function changeSkin(tag, linkageName) {
var _local2 = stateNames[tag] + "Skin";
this[_local2] = linkageName;
this[idNames[tag]] = _local2;
setStateVar(getState());
}
function viewIcon(varName) {
var _local4 = varName + "Icon";
var _local3 = this[_local4];
if (typeof(_local3) == "string") {
var _local5 = _local3;
if (__emphasized) {
if (this[_local3 + "Emphasized"].length > 0) {
_local3 = _local3 + "Emphasized";
}
}
if (this[_local3].length == 0) {
return(undefined);
}
_local3 = setIcon(tagMap[_local5], this[_local3]);
if ((_local3 == undefined) && (_global.isLivePreview)) {
_local3 = setIcon(0, "ButtonIcon");
}
this[_local4] = _local3;
}
iconName._visible = false;
iconName = _local3;
iconName._visible = true;
}
function removeIcons() {
var _local3 = 0;
while (_local3 < 2) {
var _local2 = 8;
while (_local2 < 16) {
destroyObject(idNames[_local2]);
this[stateNames[_local2 - 8] + "Icon"] = "";
_local2++;
}
_local3++;
}
refresh();
}
function setSkin(tag, linkageName, initobj) {
var _local3 = super.setSkin(tag, linkageName, ((initobj != undefined) ? (initobj) : ({styleName:this})));
calcSize(tag, _local3);
return(_local3);
}
function calcSize(Void) {
__width = _width;
__height = _height;
}
function viewSkin(varName, initObj) {
var _local3 = varName + "Skin";
var _local2 = this[_local3];
if (typeof(_local2) == "string") {
var _local4 = _local2;
if (__emphasized) {
if (this[_local2 + "Emphasized"].length > 0) {
_local2 = _local2 + "Emphasized";
}
}
if (this[_local2].length == 0) {
return(undefined);
}
_local2 = setSkin(tagMap[_local4], this[_local2], ((initObj != undefined) ? (initObj) : ({styleName:this})));
this[_local3] = _local2;
}
skinName._visible = false;
skinName = _local2;
skinName._visible = true;
}
function showEmphasized(e) {
if (e && (!__emphatic)) {
if (emphasizedStyleDeclaration != undefined) {
__emphaticStyleName = styleName;
styleName = emphasizedStyleDeclaration;
}
__emphatic = true;
} else {
if (__emphatic) {
styleName = __emphaticStyleName;
}
__emphatic = false;
}
}
function refresh(Void) {
var _local2 = getState();
if (enabled == false) {
viewIcon("disabled");
viewSkin("disabled");
} else {
viewSkin(phase);
viewIcon(phase);
}
setView(phase == "down");
iconName.enabled = enabled;
}
function setView(offset) {
if (iconName == undefined) {
return(undefined);
}
var _local2 = (offset ? (btnOffset) : 0);
iconName._x = ((__width - iconName._width) / 2) + _local2;
iconName._y = ((__height - iconName._height) / 2) + _local2;
}
function setStateVar(state) {
if (state) {
if (trueOverSkin.length == 0) {
rolloverSkin = tus;
} else {
rolloverSkin = trs;
}
if (trueOverIcon.length == 0) {
rolloverIcon = tui;
} else {
rolloverIcon = tri;
}
upSkin = tus;
downSkin = tds;
disabledSkin = dts;
upIcon = tui;
downIcon = tdi;
disabledIcon = dti;
} else {
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
} else {
rolloverSkin = frs;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
} else {
rolloverIcon = fri;
}
upSkin = fus;
downSkin = fds;
disabledSkin = dfs;
upIcon = fui;
downIcon = fdi;
disabledIcon = dfi;
}
__state = state;
}
function setState(state) {
if (state != __state) {
setStateVar(state);
invalidate();
}
}
function size(Void) {
refresh();
}
function draw(Void) {
if (initializing) {
initializing = false;
skinName.visible = true;
iconName.visible = true;
}
size();
}
function getState(Void) {
return(__state);
}
function setToggle(val) {
__toggle = val;
if (__toggle == false) {
setState(false);
}
}
function getToggle(Void) {
return(__toggle);
}
function set toggle(val) {
setToggle(val);
//return(toggle);
}
function get toggle() {
return(getToggle());
}
function set value(val) {
setSelected(val);
//return(value);
}
function get value() {
return(getSelected());
}
function set selected(val) {
setSelected(val);
//return(selected);
}
function get selected() {
return(getSelected());
}
function setSelected(val) {
if (__toggle) {
setState(val);
} else {
setState(__state);
}
}
function getSelected() {
return(__state);
}
function setEnabled(val) {
if (enabled != val) {
super.setEnabled(val);
invalidate();
}
}
function onPress(Void) {
pressFocus();
phase = "down";
refresh();
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
interval = setInterval(this, "onPressDelay", getStyle("repeatDelay"));
}
}
function onPressDelay(Void) {
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
clearInterval(interval);
interval = setInterval(this, "onPressRepeat", getStyle("repeatInterval"));
}
}
function onPressRepeat(Void) {
dispatchEvent({type:"buttonDown"});
updateAfterEvent();
}
function onRelease(Void) {
releaseFocus();
phase = "rollover";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
if (getToggle()) {
setState(!getState());
} else {
refresh();
}
dispatchEvent({type:"click"});
}
function onDragOut(Void) {
phase = "up";
refresh();
dispatchEvent({type:"buttonDragOut"});
}
function onDragOver(Void) {
if (phase != "up") {
onPress();
return(undefined);
}
phase = "down";
refresh();
}
function onReleaseOutside(Void) {
releaseFocus();
phase = "up";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
}
function onRollOver(Void) {
phase = "rollover";
refresh();
}
function onRollOut(Void) {
phase = "up";
refresh();
}
function getLabel(Void) {
return(fui.text);
}
function setLabel(val) {
if (typeof(fui) == "string") {
createLabel("fui", 8, val);
fui.styleName = this;
} else {
fui.text = val;
}
var _local4 = fui._getTextFormat();
var _local2 = _local4.getTextExtent2(val);
fui._width = _local2.width + 5;
fui._height = _local2.height + 5;
iconName = fui;
setView(__state);
}
function get emphasized() {
return(__emphasized);
}
function set emphasized(val) {
__emphasized = val;
var _local2 = 0;
while (_local2 < 8) {
this[idNames[_local2]] = stateNames[_local2] + "Skin";
if (typeof(this[idNames[_local2 + 8]]) == "movieclip") {
this[idNames[_local2 + 8]] = stateNames[_local2] + "Icon";
}
_local2++;
}
showEmphasized(__emphasized);
setStateVar(__state);
invalidateStyle();
//return(emphasized);
}
function keyDown(e) {
if (e.code == 32) {
onPress();
}
}
function keyUp(e) {
if (e.code == 32) {
onRelease();
}
}
function onKillFocus(newFocus) {
super.onKillFocus();
if (phase != "up") {
phase = "up";
refresh();
}
}
static var symbolName = "SimpleButton";
static var symbolOwner = mx.controls.SimpleButton;
static var version = "2.0.0.360";
var className = "SimpleButton";
var style3dInset = 4;
var btnOffset = 1;
var __toggle = false;
var __state = false;
var __emphasized = false;
var __emphatic = false;
static var falseUp = 0;
static var falseDown = 1;
static var falseOver = 2;
static var falseDisabled = 3;
static var trueUp = 4;
static var trueDown = 5;
static var trueOver = 6;
static var trueDisabled = 7;
var falseUpSkin = "SimpleButtonUp";
var falseDownSkin = "SimpleButtonIn";
var falseOverSkin = "";
var falseDisabledSkin = "SimpleButtonUp";
var trueUpSkin = "SimpleButtonIn";
var trueDownSkin = "";
var trueOverSkin = "";
var trueDisabledSkin = "SimpleButtonIn";
var falseUpIcon = "";
var falseDownIcon = "";
var falseOverIcon = "";
var falseDisabledIcon = "";
var trueUpIcon = "";
var trueDownIcon = "";
var trueOverIcon = "";
var trueDisabledIcon = "";
var phase = "up";
var fui = "falseUpIcon";
var fus = "falseUpSkin";
var fdi = "falseDownIcon";
var fds = "falseDownSkin";
var frs = "falseOverSkin";
var fri = "falseOverIcon";
var dfi = "falseDisabledIcon";
var dfs = "falseDisabledSkin";
var tui = "trueUpIcon";
var tus = "trueUpSkin";
var tdi = "trueDownIcon";
var tds = "trueDownSkin";
var trs = "trueOverSkin";
var tri = "trueOverIcon";
var dts = "trueDisabledSkin";
var dti = "trueDisabledIcon";
var rolloverSkin = mx.controls.SimpleButton.prototype.frs;
var rolloverIcon = mx.controls.SimpleButton.prototype.fri;
var upSkin = mx.controls.SimpleButton.prototype.fus;
var downSkin = mx.controls.SimpleButton.prototype.fds;
var disabledSkin = mx.controls.SimpleButton.prototype.dfs;
var upIcon = mx.controls.SimpleButton.prototype.fui;
var downIcon = mx.controls.SimpleButton.prototype.fdi;
var disabledIcon = mx.controls.SimpleButton.prototype.dfi;
var initializing = true;
var idNames = ["fus", "fds", "frs", "dfs", "tus", "tds", "trs", "dts", "fui", "fdi", "fri", "dfi", "tui", "tdi", "tri", "dti"];
var stateNames = ["falseUp", "falseDown", "falseOver", "falseDisabled", "trueUp", "trueDown", "trueOver", "trueDisabled"];
var refNames = ["upSkin", "downSkin", "rolloverSkin", "disabledSkin"];
var tagMap = {falseUpSkin:0, falseDownSkin:1, falseOverSkin:2, falseDisabledSkin:3, trueUpSkin:4, trueDownSkin:5, trueOverSkin:6, trueDisabledSkin:7, falseUpIcon:0, falseDownIcon:1, falseOverIcon:2, falseDisabledIcon:3, trueUpIcon:4, trueDownIcon:5, trueOverIcon:6, trueDisabledIcon:7};
}
Symbol 6 MovieClip [__Packages.mx.controls.Button] Frame 0
class mx.controls.Button extends mx.controls.SimpleButton
{
var initIcon, getState, enabled, phase, labelPath, idNames, __width, __height, setState, invalidate, iconName, refresh, createLabel, _iconLinkageName, initializing, removeIcons, hitArea_mc, createEmptyObject;
function Button () {
super();
}
function init(Void) {
super.init();
}
function draw() {
super.draw();
if (initIcon != undefined) {
_setIcon(initIcon);
}
delete initIcon;
}
function onRelease(Void) {
super.onRelease();
}
function createChildren(Void) {
super.createChildren();
}
function setSkin(tag, linkageName, initobj) {
return(super.setSkin(tag, linkageName, initobj));
}
function viewSkin(varName) {
var _local3 = (getState() ? "true" : "false");
_local3 = _local3 + (enabled ? (phase) : "disabled");
super.viewSkin(varName, {styleName:this, borderStyle:_local3});
}
function invalidateStyle(c) {
labelPath.invalidateStyle(c);
super.invalidateStyle(c);
}
function setColor(c) {
var _local2 = 0;
while (_local2 < 8) {
this[idNames[_local2]].redraw(true);
_local2++;
}
}
function setEnabled(enable) {
labelPath.enabled = enable;
super.setEnabled(enable);
}
function calcSize(tag, ref) {
if ((__width == undefined) || (__height == undefined)) {
return(undefined);
}
if (tag < 7) {
ref.setSize(__width, __height, true);
}
}
function size(Void) {
setState(getState());
setHitArea(__width, __height);
var _local3 = 0;
while (_local3 < 8) {
var _local4 = idNames[_local3];
if (typeof(this[_local4]) == "movieclip") {
this[_local4].setSize(__width, __height, true);
}
_local3++;
}
super.size();
}
function set labelPlacement(val) {
__labelPlacement = val;
invalidate();
//return(labelPlacement);
}
function get labelPlacement() {
return(__labelPlacement);
}
function getLabelPlacement(Void) {
return(__labelPlacement);
}
function setLabelPlacement(val) {
__labelPlacement = val;
invalidate();
}
function getBtnOffset(Void) {
if (getState()) {
var _local2 = btnOffset;
} else if (phase == "down") {
var _local2 = btnOffset;
} else {
var _local2 = 0;
}
return(_local2);
}
function setView(offset) {
var _local16 = (offset ? (btnOffset) : 0);
var _local12 = getLabelPlacement();
var _local7 = 0;
var _local6 = 0;
var _local9 = 0;
var _local8 = 0;
var _local5 = 0;
var _local4 = 0;
var _local3 = labelPath;
var _local2 = iconName;
var _local15 = _local3.textWidth;
var _local14 = _local3.textHeight;
var _local10 = (__width - borderW) - borderW;
var _local11 = (__height - borderW) - borderW;
_local3._visible = true;
if (_local2 != undefined) {
_local7 = _local2._width;
_local6 = _local2._height;
}
if ((_local12 == "left") || (_local12 == "right")) {
if (_local3 != undefined) {
_local9 = Math.min(_local10 - _local7, _local15 + 5);
_local3._width = _local9;
_local8 = Math.min(_local11, _local14 + 5);
_local3._height = _local8;
}
if (_local12 == "right") {
_local5 = _local7;
if (centerContent) {
_local5 = _local5 + (((_local10 - _local9) - _local7) / 2);
}
_local2._x = _local5 - _local7;
} else {
_local5 = (_local10 - _local9) - _local7;
if (centerContent) {
_local5 = _local5 / 2;
}
_local2._x = _local5 + _local9;
}
_local4 = 0;
_local2._y = _local4;
if (centerContent) {
_local2._y = (_local11 - _local6) / 2;
_local4 = (_local11 - _local8) / 2;
}
if (!centerContent) {
_local2._y = _local2._y + Math.max(0, (_local8 - _local6) / 2);
}
} else {
if (_local3 != undefined) {
_local9 = Math.min(_local10, _local15 + 5);
_local3._width = _local9;
_local8 = Math.min(_local11 - _local6, _local14 + 5);
_local3._height = _local8;
}
_local5 = (_local10 - _local9) / 2;
_local2._x = (_local10 - _local7) / 2;
if (_local12 == "top") {
_local4 = (_local11 - _local8) - _local6;
if (centerContent) {
_local4 = _local4 / 2;
}
_local2._y = _local4 + _local8;
} else {
_local4 = _local6;
if (centerContent) {
_local4 = _local4 + (((_local11 - _local8) - _local6) / 2);
}
_local2._y = _local4 - _local6;
}
}
var _local13 = borderW + _local16;
_local3._x = _local5 + _local13;
_local3._y = _local4 + _local13;
_local2._x = _local2._x + _local13;
_local2._y = _local2._y + _local13;
}
function set label(lbl) {
setLabel(lbl);
//return(label);
}
function setLabel(label) {
if (label == "") {
labelPath.removeTextField();
refresh();
return(undefined);
}
if (labelPath == undefined) {
var _local2 = createLabel("labelPath", 200, label);
_local2._width = _local2.textWidth + 5;
_local2._height = _local2.textHeight + 5;
_local2.visible = false;
} else {
labelPath.text = label;
refresh();
}
}
function getLabel(Void) {
return(labelPath.text);
}
function get label() {
return(labelPath.text);
}
function _getIcon(Void) {
return(_iconLinkageName);
}
function get icon() {
if (initializing) {
return(initIcon);
}
return(_iconLinkageName);
}
function _setIcon(linkage) {
if (initializing) {
if (linkage == "") {
return(undefined);
}
initIcon = linkage;
} else {
if (linkage == "") {
removeIcons();
return(undefined);
}
super.changeIcon(0, linkage);
super.changeIcon(1, linkage);
super.changeIcon(4, linkage);
super.changeIcon(5, linkage);
_iconLinkageName = linkage;
refresh();
}
}
function set icon(linkage) {
_setIcon(linkage);
//return(icon);
}
function setHitArea(w, h) {
if (hitArea_mc == undefined) {
createEmptyObject("hitArea_mc", 100);
}
var _local2 = hitArea_mc;
_local2.clear();
_local2.beginFill(16711680);
_local2.drawRect(0, 0, w, h);
_local2.endFill();
_local2.setVisible(false);
}
static var symbolName = "Button";
static var symbolOwner = mx.controls.Button;
var className = "Button";
static var version = "2.0.0.360";
var btnOffset = 0;
var _color = "buttonColor";
var __label = "default value";
var __labelPlacement = "right";
var falseUpSkin = "ButtonSkin";
var falseDownSkin = "ButtonSkin";
var falseOverSkin = "ButtonSkin";
var falseDisabledSkin = "ButtonSkin";
var trueUpSkin = "ButtonSkin";
var trueDownSkin = "ButtonSkin";
var trueOverSkin = "ButtonSkin";
var trueDisabledSkin = "ButtonSkin";
var falseUpIcon = "";
var falseDownIcon = "";
var falseOverIcon = "";
var falseDisabledIcon = "";
var trueUpIcon = "";
var trueDownIcon = "";
var trueOverIcon = "";
var trueDisabledIcon = "";
var clipParameters = {labelPlacement:1, icon:1, toggle:1, selected:1, label:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.Button.prototype.clipParameters, mx.controls.SimpleButton.prototype.clipParameters);
var centerContent = true;
var borderW = 1;
}
Symbol 7 MovieClip [__Packages.mx.controls.RadioButton] Frame 0
class mx.controls.RadioButton extends mx.controls.Button
{
var setToggle, __value, selected, releaseFocus, phase, dispatchEvent, _parent, __data, setState, __state, getFocusManager;
function RadioButton () {
super();
}
function init(Void) {
setToggle(__toggle);
__value = this;
super.init();
}
function size(Void) {
super.size();
}
function onRelease() {
if (selected) {
return(undefined);
}
releaseFocus();
phase = "up";
setSelected(true);
dispatchEvent({type:"click"});
_parent[__groupName].dispatchEvent({type:"click"});
}
function setData(val) {
__data = val;
}
function set data(val) {
__data = val;
//return(data);
}
function getData(val) {
return(__data);
}
function get data() {
return(__data);
}
function onUnload() {
if (_parent[__groupName].selectedRadio == this) {
_parent[__groupName].selectedRadio = undefined;
}
_parent[__groupName].radioList[indexNumber] = null;
delete _parent[__groupName].radioList[indexNumber];
}
function setSelected(val) {
var _local2 = _parent[__groupName];
var _local4 = _local2.selectedRadio.__width;
var _local5 = _local2.selectedRadio.__height;
if (val) {
_local2.selectedRadio.setState(false);
_local2.selectedRadio = this;
} else if (_local2.selectedRadio == this) {
_local2.selectedRadio.setState(false);
_local2.selectedRadio = undefined;
}
setState(val);
}
function deleteGroupObj(groupName) {
delete _parent[groupName];
}
function getGroupName() {
return(__groupName);
}
function get groupName() {
return(__groupName);
}
function setGroupName(groupName) {
if ((groupName == undefined) || (groupName == "")) {
return(undefined);
}
delete _parent[__groupName].radioList[__data];
addToGroup(groupName);
__groupName = groupName;
}
function set groupName(groupName) {
setGroupName(groupName);
//return(this.groupName);
}
function addToGroup(groupName) {
if ((groupName == "") || (groupName == undefined)) {
return(undefined);
}
var _local2 = _parent[groupName];
if (_local2 == undefined) {
_local2 = (_parent[groupName] = new mx.controls.RadioButtonGroup());
_local2.__groupName = groupName;
}
_local2.addInstance(this);
if (__state) {
_local2.selectedRadio.setState(false);
_local2.selectedRadio = this;
}
}
function get emphasized() {
return(undefined);
}
function keyDown(e) {
switch (e.code) {
case 40 :
setNext();
break;
case 38 :
setPrev();
break;
case 37 :
setPrev();
break;
case 39 :
setNext();
}
}
function setNext() {
var _local2 = _parent[groupName];
if ((_local2.selectedRadio.indexNumber + 1) == _local2.radioList.length) {
return(undefined);
}
var _local5 = (_local2.selectedRadio ? (_local2.selectedRadio.indexNumber) : -1);
var _local3 = 1;
while (_local3 < _local2.radioList.length) {
if (_local2.radioList[_local5 + _local3] != undefined) {
var _local4 = getFocusManager();
_local2.radioList[_local5 + _local3].selected = true;
_local4.setFocus(_local2.radioList[_local2.selectedRadio.indexNumber]);
_local2.dispatchEvent({type:"click"});
break;
}
_local3++;
}
}
function setPrev() {
var _local2 = _parent[groupName];
if (_local2.selectedRadio.indexNumber == 0) {
return(undefined);
}
var _local5 = (_local2.selectedRadio ? (_local2.selectedRadio.indexNumber) : 1);
var _local3 = 1;
while (_local3 < _local2.radioList.length) {
if (_local2.radioList[_local5 - _local3] != undefined) {
var _local4 = getFocusManager();
_local2.radioList[_local5 - _local3].selected = true;
_local4.setFocus(_local2.radioList[_local2.selectedRadio.indexNumber]);
_local2.dispatchEvent({type:"click"});
break;
}
_local3++;
}
}
function set toggle(v) {
//return(toggle);
}
function get toggle() {
}
function set icon(v) {
//return(icon);
}
function get icon() {
}
static var symbolName = "RadioButton";
static var symbolOwner = mx.controls.RadioButton;
static var version = "2.0.0.360";
var className = "RadioButton";
var btnOffset = 0;
var __toggle = true;
var __label = "Radio Button";
var __labelPlacement = "right";
var ignoreClassStyleDeclaration = {Button:1};
var __groupName = "radioGroup";
var indexNumber = 0;
var offset = false;
var falseUpSkin = "";
var falseDownSkin = "";
var falseOverSkin = "";
var falseDisabledSkin = "";
var trueUpSkin = "";
var trueDownSkin = "";
var trueOverSkin = "";
var trueDisabledSkin = "";
var falseUpIcon = "RadioFalseUp";
var falseDownIcon = "RadioFalseDown";
var falseOverIcon = "RadioFalseOver";
var falseDisabledIcon = "RadioFalseDisabled";
var trueUpIcon = "RadioTrueUp";
var trueDownIcon = "";
var trueOverIcon = "";
var trueDisabledIcon = "RadioTrueDisabled";
var centerContent = false;
var borderW = 0;
var clipParameters = {labelPlacement:1, data:1, label:1, groupName:1, selected:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.RadioButton.prototype.clipParameters, mx.controls.Button.prototype.clipParameters);
}
Symbol 52 MovieClip [__Packages.mx.skins.SkinElement] Frame 0
class mx.skins.SkinElement extends MovieClip
{
var _visible, _x, _y, _width, _height;
function SkinElement () {
super();
}
static function registerElement(name, className) {
Object.registerClass(name, ((className == undefined) ? (mx.skins.SkinElement) : (className)));
_global.skinRegistry[name] = true;
}
function __set__visible(visible) {
_visible = visible;
}
function move(x, y) {
_x = x;
_y = y;
}
function setSize(w, h) {
_width = w;
_height = h;
}
}
Symbol 53 MovieClip [__Packages.mx.styles.CSSTextStyles] Frame 0
class mx.styles.CSSTextStyles
{
function CSSTextStyles () {
}
static function addTextStyles(o, bColor) {
o.addProperty("textAlign", function () {
return(this._tf.align);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.align = x;
});
o.addProperty("fontWeight", function () {
return(((this._tf.bold != undefined) ? ((this._tf.bold ? "bold" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.bold = x == "bold";
});
if (bColor) {
o.addProperty("color", function () {
return(this._tf.color);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.color = x;
});
}
o.addProperty("fontFamily", function () {
return(this._tf.font);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.font = x;
});
o.addProperty("textIndent", function () {
return(this._tf.indent);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.indent = x;
});
o.addProperty("fontStyle", function () {
return(((this._tf.italic != undefined) ? ((this._tf.italic ? "italic" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.italic = x == "italic";
});
o.addProperty("marginLeft", function () {
return(this._tf.leftMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.leftMargin = x;
});
o.addProperty("marginRight", function () {
return(this._tf.rightMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.rightMargin = x;
});
o.addProperty("fontSize", function () {
return(this._tf.size);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.size = x;
});
o.addProperty("textDecoration", function () {
return(((this._tf.underline != undefined) ? ((this._tf.underline ? "underline" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.underline = x == "underline";
});
o.addProperty("embedFonts", function () {
return(this._tf.embedFonts);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.embedFonts = x;
});
}
}
Symbol 54 MovieClip [__Packages.mx.styles.StyleManager] Frame 0
class mx.styles.StyleManager
{
function StyleManager () {
}
static function registerInheritingStyle(styleName) {
inheritingStyles[styleName] = true;
}
static function isInheritingStyle(styleName) {
return(inheritingStyles[styleName] == true);
}
static function registerColorStyle(styleName) {
colorStyles[styleName] = true;
}
static function isColorStyle(styleName) {
return(colorStyles[styleName] == true);
}
static function registerColorName(colorName, colorValue) {
colorNames[colorName] = colorValue;
}
static function isColorName(colorName) {
return(colorNames[colorName] != undefined);
}
static function getColorName(colorName) {
return(colorNames[colorName]);
}
static var inheritingStyles = {color:true, direction:true, fontFamily:true, fontSize:true, fontStyle:true, fontWeight:true, textAlign:true, textIndent:true};
static var colorStyles = {barColor:true, trackColor:true, borderColor:true, buttonColor:true, color:true, dateHeaderColor:true, dateRollOverColor:true, disabledColor:true, fillColor:true, highlightColor:true, scrollTrackColor:true, selectedDateColor:true, shadowColor:true, strokeColor:true, symbolBackgroundColor:true, symbolBackgroundDisabledColor:true, symbolBackgroundPressedColor:true, symbolColor:true, symbolDisabledColor:true, themeColor:true, todayIndicatorColor:true, shadowCapColor:true, borderCapColor:true, focusColor:true};
static var colorNames = {black:0, white:16777215, red:16711680, green:65280, blue:255, magenta:16711935, yellow:16776960, cyan:65535, haloGreen:8453965, haloBlue:2881013, haloOrange:16761344};
static var TextFormatStyleProps = {font:true, size:true, color:true, leftMargin:false, rightMargin:false, italic:true, bold:true, align:true, indent:true, underline:false, embedFonts:false};
static var TextStyleMap = {textAlign:true, fontWeight:true, color:true, fontFamily:true, textIndent:true, fontStyle:true, lineHeight:true, marginLeft:true, marginRight:true, fontSize:true, textDecoration:true, embedFonts:true};
}
Symbol 55 MovieClip [__Packages.mx.styles.CSSStyleDeclaration] Frame 0
class mx.styles.CSSStyleDeclaration
{
var _tf;
function CSSStyleDeclaration () {
}
function __getTextFormat(tf, bAll) {
var _local5 = false;
if (_tf != undefined) {
var _local2;
for (_local2 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local2])) {
if (tf[_local2] == undefined) {
var _local3 = _tf[_local2];
if (_local3 != undefined) {
tf[_local2] = _local3;
} else {
_local5 = true;
}
}
}
}
} else {
_local5 = true;
}
return(_local5);
}
function getStyle(styleProp) {
var _local2 = this[styleProp];
var _local3 = mx.styles.StyleManager.getColorName(_local2);
return(((_local3 == undefined) ? (_local2) : (_local3)));
}
static function classConstruct() {
mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true);
return(true);
}
static var classConstructed = classConstruct();
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
}
Symbol 56 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent == undefined) {
_local1[eventObj.type](eventObj);
} else {
_local1.handleEvent(eventObj);
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
}
Symbol 57 MovieClip [__Packages.mx.events.UIEventDispatcher] Frame 0
class mx.events.UIEventDispatcher extends mx.events.EventDispatcher
{
var dispatchQueue, owner, __sentLoadEvent, __origAddEventListener;
function UIEventDispatcher () {
super();
}
static function addKeyEvents(obj) {
if (obj.keyHandler == undefined) {
var _local1 = (obj.keyHandler = new Object());
_local1.owner = obj;
_local1.onKeyDown = _fEventDispatcher.onKeyDown;
_local1.onKeyUp = _fEventDispatcher.onKeyUp;
}
Key.addListener(obj.keyHandler);
}
static function removeKeyEvents(obj) {
Key.removeListener(obj.keyHandler);
}
static function addLoadEvents(obj) {
if (obj.onLoad == undefined) {
obj.onLoad = _fEventDispatcher.onLoad;
obj.onUnload = _fEventDispatcher.onUnload;
if (obj.getBytesTotal() == obj.getBytesLoaded()) {
obj.doLater(obj, "onLoad");
}
}
}
static function removeLoadEvents(obj) {
delete obj.onLoad;
delete obj.onUnload;
}
static function initialize(obj) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.UIEventDispatcher();
}
obj.addEventListener = _fEventDispatcher.__addEventListener;
obj.__origAddEventListener = _fEventDispatcher.addEventListener;
obj.removeEventListener = _fEventDispatcher.removeEventListener;
obj.dispatchEvent = _fEventDispatcher.dispatchEvent;
obj.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(mx.events.EventDispatcher, eventObj);
dispatchQueue(this, eventObj);
}
function onKeyDown(Void) {
owner.dispatchEvent({type:"keyDown", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)});
}
function onKeyUp(Void) {
owner.dispatchEvent({type:"keyUp", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)});
}
function onLoad(Void) {
if (__sentLoadEvent != true) {
dispatchEvent({type:"load"});
}
__sentLoadEvent = true;
}
function onUnload(Void) {
dispatchEvent({type:"unload"});
}
function __addEventListener(event, handler) {
__origAddEventListener(event, handler);
var _local3 = lowLevelEvents;
for (var _local5 in _local3) {
if (mx.events.UIEventDispatcher[_local5][event] != undefined) {
var _local2 = _local3[_local5][0];
mx.events.UIEventDispatcher[_local2](this);
}
}
}
function removeEventListener(event, handler) {
var _local6 = "__q_" + event;
mx.events.EventDispatcher._removeEventListener(this[_local6], event, handler);
if (this[_local6].length == 0) {
var _local2 = lowLevelEvents;
for (var _local5 in _local2) {
if (mx.events.UIEventDispatcher[_local5][event] != undefined) {
var _local3 = _local2[_local5][1];
mx.events.UIEventDispatcher[_local2[_local5][1]](this);
}
}
}
}
static var keyEvents = {keyDown:1, keyUp:1};
static var loadEvents = {load:1, unload:1};
static var lowLevelEvents = {keyEvents:["addKeyEvents", "removeKeyEvents"], loadEvents:["addLoadEvents", "removeLoadEvents"]};
static var _fEventDispatcher = undefined;
}
Symbol 58 MovieClip [__Packages.mx.controls.RadioButtonGroup] Frame 0
class mx.controls.RadioButtonGroup
{
var radioList, __groupName, selectedRadio;
function RadioButtonGroup () {
init();
mx.events.UIEventDispatcher.initialize(this);
}
function init(Void) {
radioList = new Array();
}
function setGroupName(groupName) {
if ((groupName == undefined) || (groupName == "")) {
return(undefined);
}
var _local6 = __groupName;
_parent[groupName] = this;
for (var _local5 in radioList) {
radioList[_local5].groupName = groupName;
var _local3 = radioList[_local5];
}
_local3.deleteGroupObj(_local6);
}
function getGroupName() {
return(__groupName);
}
function addInstance(instance) {
instance.indexNumber = indexNumber++;
radioList.push(instance);
}
function getValue() {
if (selectedRadio.data == "") {
return(selectedRadio.label);
}
return(selectedRadio.__data);
}
function getLabelPlacement() {
for (var _local3 in radioList) {
var _local2 = radioList[_local3].getLabelPlacement();
}
return(_local2);
}
function setLabelPlacement(pos) {
for (var _local3 in radioList) {
radioList[_local3].setLabelPlacement(pos);
}
}
function setEnabled(val) {
for (var _local3 in radioList) {
radioList[_local3].enabled = val;
}
}
function setSize(val, val1) {
for (var _local3 in radioList) {
radioList[_local3].setSize(val, val1);
}
}
function getEnabled() {
for (var _local4 in radioList) {
var _local2 = radioList[_local4].enabled;
var _local3 = t + (_local2 + 0);
}
if (_local3 == radioList.length) {
return(true);
}
if (_local3 == 0) {
return(false);
}
}
function setStyle(name, val) {
for (var _local4 in radioList) {
radioList[_local4].setStyle(name, val);
}
}
function setInstance(val) {
for (var _local3 in radioList) {
if (radioList[_local3] == val) {
radioList[_local3].selected = true;
}
}
}
function getInstance() {
return(selectedRadio);
}
function setValue(val) {
for (var _local4 in radioList) {
if ((radioList[_local4].__data == val) || (radioList[_local4].label == val)) {
var _local2 = _local4;
break;
}
}
if (_local2 != undefined) {
selectedRadio.setState(false);
selectedRadio.hitArea_mc._height = selectedRadio.__height;
selectedRadio.hitArea_mc._width = selectedRadio.__width;
selectedRadio = radioList[_local2];
selectedRadio.setState(true);
selectedRadio.hitArea_mc._height = (selectedRadio.hitArea_mc._width = 0);
}
}
function set groupName(groupName) {
if ((groupName == undefined) || (groupName == "")) {
return;
}
var _local6 = __groupName;
_parent[groupName] = this;
for (var _local5 in radioList) {
radioList[_local5].groupName = groupName;
var _local3 = radioList[_local5];
}
_local3.deleteGroupObj(_local6);
//return(this.groupName);
}
function get groupName() {
return(__groupName);
}
function set selectedData(val) {
for (var _local4 in radioList) {
if ((radioList[_local4].__data == val) || (radioList[_local4].label == val)) {
var _local2 = _local4;
break;
}
}
if (_local2 != undefined) {
selectedRadio.setState(false);
selectedRadio = radioList[_local2];
selectedRadio.setState(true);
}
//return(selectedData);
}
function get selectedData() {
if ((selectedRadio.data == "") || (selectedRadio.data == undefined)) {
return(selectedRadio.label);
}
return(selectedRadio.__data);
}
function get selection() {
return(selectedRadio);
}
function set selection(val) {
for (var _local3 in radioList) {
if (radioList[_local3] == val) {
radioList[_local3].selected = true;
}
}
//return(selection);
}
function set labelPlacement(pos) {
for (var _local3 in radioList) {
radioList[_local3].setLabelPlacement(pos);
}
//return(labelPlacement);
}
function get labelPlacement() {
for (var _local3 in radioList) {
var _local2 = radioList[_local3].getLabelPlacement();
}
return(_local2);
}
function set enabled(val) {
for (var _local3 in radioList) {
radioList[_local3].enabled = val;
}
//return(enabled);
}
function get enabled() {
var _local2 = 0;
for (var _local3 in radioList) {
_local2 = _local2 + radioList[_local3].enabled;
}
if (_local2 == 0) {
return(false);
}
if (_local2 == radioList.length) {
return(true);
}
}
static var symbolName = "RadioButtonGroup";
static var symbolOwner = mx.controls.RadioButtonGroup;
static var version = "2.0.0.360";
var className = "RadioButtonGroup";
var indexNumber = 0;
}
Symbol 59 MovieClip [__Packages.mx.skins.ColoredSkinElement] Frame 0
class mx.skins.ColoredSkinElement
{
var getStyle, _color, onEnterFrame;
function ColoredSkinElement () {
}
function setColor(c) {
if (c != undefined) {
var _local2 = new Color(this);
_local2.setRGB(c);
}
}
function draw(Void) {
setColor(getStyle(_color));
onEnterFrame = undefined;
}
function invalidateStyle(Void) {
onEnterFrame = draw;
}
static function setColorStyle(p, colorStyle) {
if (p._color == undefined) {
p._color = colorStyle;
}
p.setColor = mixins.setColor;
p.invalidateStyle = mixins.invalidateStyle;
p.draw = mixins.draw;
p.setColor(p.getStyle(colorStyle));
}
static var mixins = new mx.skins.ColoredSkinElement();
}
Symbol 60 MovieClip [__Packages.mx.core.ext.UIObjectExtensions] Frame 0
class mx.core.ext.UIObjectExtensions
{
function UIObjectExtensions () {
}
static function addGeometry(tf, ui) {
tf.addProperty("width", ui.__get__width, null);
tf.addProperty("height", ui.__get__height, null);
tf.addProperty("left", ui.__get__left, null);
tf.addProperty("x", ui.__get__x, null);
tf.addProperty("top", ui.__get__top, null);
tf.addProperty("y", ui.__get__y, null);
tf.addProperty("right", ui.__get__right, null);
tf.addProperty("bottom", ui.__get__bottom, null);
tf.addProperty("visible", ui.__get__visible, ui.__set__visible);
}
static function Extensions() {
if (bExtended == true) {
return(true);
}
bExtended = true;
var _local4 = mx.core.UIObject.prototype;
var _local8 = mx.skins.SkinElement.prototype;
addGeometry(_local8, _local4);
mx.events.UIEventDispatcher.initialize(_local4);
var _local12 = mx.skins.ColoredSkinElement;
mx.styles.CSSTextStyles.addTextStyles(_local4);
var _local5 = MovieClip.prototype;
_local5.getTopLevel = _local4.getTopLevel;
_local5.createLabel = _local4.createLabel;
_local5.createObject = _local4.createObject;
_local5.createClassObject = _local4.createClassObject;
_local5.createEmptyObject = _local4.createEmptyObject;
_local5.destroyObject = _local4.destroyObject;
_local5.__getTextFormat = _local4.__getTextFormat;
_local5._getTextFormat = _local4._getTextFormat;
_local5.getStyleName = _local4.getStyleName;
_local5.getStyle = _local4.getStyle;
var _local6 = TextField.prototype;
addGeometry(_local6, _local4);
_local6.addProperty("enabled", function () {
return(this.__enabled);
}, function (x) {
this.__enabled = x;
this.invalidateStyle();
});
_local6.move = _local8.move;
_local6.setSize = _local8.setSize;
_local6.invalidateStyle = function () {
this.invalidateFlag = true;
};
_local6.draw = function () {
if (this.invalidateFlag) {
this.invalidateFlag = false;
var _local2 = this._getTextFormat();
this.setTextFormat(_local2);
this.setNewTextFormat(_local2);
this.embedFonts = _local2.embedFonts == true;
if (this.__text != undefined) {
if (this.text == "") {
this.text = this.__text;
}
delete this.__text;
}
this._visible = true;
}
};
_local6.setColor = function (color) {
this.textColor = color;
};
_local6.getStyle = _local5.getStyle;
_local6.__getTextFormat = _local4.__getTextFormat;
_local6.setValue = function (v) {
this.text = v;
};
_local6.getValue = function () {
return(this.text);
};
_local6.addProperty("value", function () {
return(this.getValue());
}, function (v) {
this.setValue(v);
});
_local6._getTextFormat = function () {
var _local2 = this.stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
this.__getTextFormat(_local2);
this.stylecache.tf = _local2;
if (this.__enabled == false) {
if (this.enabledColor == undefined) {
var _local4 = this.getTextFormat();
this.enabledColor = _local4.color;
}
var _local3 = this.getStyle("disabledColor");
_local2.color = _local3;
} else if (this.enabledColor != undefined) {
if (_local2.color == undefined) {
_local2.color = this.enabledColor;
}
}
return(_local2);
};
_local6.getPreferredWidth = function () {
this.draw();
return(this.textWidth + 4);
};
_local6.getPreferredHeight = function () {
this.draw();
return(this.textHeight + 4);
};
TextFormat.prototype.getTextExtent2 = function (s) {
var _local3 = _root._getTextExtent;
if (_local3 == undefined) {
_root.createTextField("_getTextExtent", -2, 0, 0, 1000, 100);
_local3 = _root._getTextExtent;
_local3._visible = false;
}
_root._getTextExtent.text = s;
var _local4 = this.align;
this.align = "left";
_root._getTextExtent.setTextFormat(this);
this.align = _local4;
return({width:_local3.textWidth, height:_local3.textHeight});
};
if (_global.style == undefined) {
_global.style = new mx.styles.CSSStyleDeclaration();
_global.cascadingStyles = true;
_global.styles = new Object();
_global.skinRegistry = new Object();
_global.origWidth = Stage.width;
_global.origHeight = Stage.height;
}
_root.addProperty("width", function () {
return(Stage.width);
}, null);
_root.addProperty("height", function () {
return(Stage.height);
}, null);
return(true);
}
static var bExtended = false;
static var UIObjectExtended = Extensions();
static var UIObjectDependency = mx.core.UIObject;
static var SkinElementDependency = mx.skins.SkinElement;
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
static var UIEventDispatcherDependency = mx.events.UIEventDispatcher;
}
Symbol 61 MovieClip [__Packages.mx.skins.halo.Defaults] Frame 0
class mx.skins.halo.Defaults
{
var beginGradientFill, beginFill, moveTo, lineTo, curveTo, endFill;
function Defaults () {
}
static function setThemeDefaults() {
var _local2 = _global.style;
_local2.themeColor = 8453965 /* 0x80FF4D */;
_local2.disabledColor = 8684164 /* 0x848284 */;
_local2.modalTransparency = 0;
_local2.filled = true;
_local2.stroked = true;
_local2.strokeWidth = 1;
_local2.strokeColor = 0;
_local2.fillColor = 16777215 /* 0xFFFFFF */;
_local2.repeatInterval = 35;
_local2.repeatDelay = 500;
_local2.fontFamily = "_sans";
_local2.fontSize = 12;
_local2.selectionColor = 13500353 /* 0xCDFFC1 */;
_local2.rollOverColor = 14942166 /* 0xE3FFD6 */;
_local2.useRollOver = true;
_local2.backgroundDisabledColor = 14540253 /* 0xDDDDDD */;
_local2.selectionDisabledColor = 14540253 /* 0xDDDDDD */;
_local2.selectionDuration = 200;
_local2.openDuration = 250;
_local2.borderStyle = "inset";
_local2.color = 734012 /* 0x0B333C */;
_local2.textSelectedColor = 24371;
_local2.textRollOverColor = 2831164 /* 0x2B333C */;
_local2.textDisabledColor = 16777215 /* 0xFFFFFF */;
_local2.vGridLines = true;
_local2.hGridLines = false;
_local2.vGridLineColor = 6710886 /* 0x666666 */;
_local2.hGridLineColor = 6710886 /* 0x666666 */;
_local2.headerColor = 15395562 /* 0xEAEAEA */;
_local2.indentation = 17;
_local2.folderOpenIcon = "TreeFolderOpen";
_local2.folderClosedIcon = "TreeFolderClosed";
_local2.defaultLeafIcon = "TreeNodeIcon";
_local2.disclosureOpenIcon = "TreeDisclosureOpen";
_local2.disclosureClosedIcon = "TreeDisclosureClosed";
_local2.popupDuration = 150;
_local2.todayColor = 6710886 /* 0x666666 */;
_local2 = (_global.styles.ScrollSelectList = new mx.styles.CSSStyleDeclaration());
_local2.backgroundColor = 16777215 /* 0xFFFFFF */;
_local2.borderColor = 13290186 /* 0xCACACA */;
_local2.borderStyle = "inset";
_local2 = (_global.styles.ComboBox = new mx.styles.CSSStyleDeclaration());
_local2.borderStyle = "inset";
_local2 = (_global.styles.NumericStepper = new mx.styles.CSSStyleDeclaration());
_local2.textAlign = "center";
_local2 = (_global.styles.RectBorder = new mx.styles.CSSStyleDeclaration());
_local2.borderColor = 14015965 /* 0xD5DDDD */;
_local2.buttonColor = 7305079 /* 0x6F7777 */;
_local2.shadowColor = 15658734 /* 0xEEEEEE */;
_local2.highlightColor = 12897484 /* 0xC4CCCC */;
_local2.shadowCapColor = 14015965 /* 0xD5DDDD */;
_local2.borderCapColor = 9542041 /* 0x919999 */;
var _local4 = new Object();
_local4.borderColor = 16711680 /* 0xFF0000 */;
_local4.buttonColor = 16711680 /* 0xFF0000 */;
_local4.shadowColor = 16711680 /* 0xFF0000 */;
_local4.highlightColor = 16711680 /* 0xFF0000 */;
_local4.shadowCapColor = 16711680 /* 0xFF0000 */;
_local4.borderCapColor = 16711680 /* 0xFF0000 */;
mx.core.UIComponent.prototype.origBorderStyles = _local4;
var _local3;
_local3 = (_global.styles.TextInput = new mx.styles.CSSStyleDeclaration());
_local3.backgroundColor = 16777215 /* 0xFFFFFF */;
_local3.borderStyle = "inset";
_global.styles.TextArea = _global.styles.TextInput;
_local3 = (_global.styles.Window = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "default";
_local3 = (_global.styles.windowStyles = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3 = (_global.styles.dataGridStyles = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3 = (_global.styles.Alert = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "alert";
_local3 = (_global.styles.ScrollView = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "inset";
_local3 = (_global.styles.View = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "none";
_local3 = (_global.styles.ProgressBar = new mx.styles.CSSStyleDeclaration());
_local3.color = 11187123 /* 0xAAB3B3 */;
_local3.fontWeight = "bold";
_local3 = (_global.styles.AccordionHeader = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3.fontSize = "11";
_local3 = (_global.styles.Accordion = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "solid";
_local3.backgroundColor = 16777215 /* 0xFFFFFF */;
_local3.borderColor = 9081738 /* 0x8A938A */;
_local3.headerHeight = 22;
_local3.marginLeft = (_local3.marginRight = (_local3.marginTop = (_local3.marginBottom = -1)));
_local3.verticalGap = -1;
_local3 = (_global.styles.DateChooser = new mx.styles.CSSStyleDeclaration());
_local3.borderColor = 9542041 /* 0x919999 */;
_local3.headerColor = 16777215 /* 0xFFFFFF */;
_local3 = (_global.styles.CalendarLayout = new mx.styles.CSSStyleDeclaration());
_local3.fontSize = 10;
_local3.textAlign = "right";
_local3.color = 2831164 /* 0x2B333C */;
_local3 = (_global.styles.WeekDayStyle = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3.fontSize = 11;
_local3.textAlign = "center";
_local3.color = 2831164 /* 0x2B333C */;
_local3 = (_global.styles.TodayStyle = new mx.styles.CSSStyleDeclaration());
_local3.color = 16777215 /* 0xFFFFFF */;
_local3 = (_global.styles.HeaderDateText = new mx.styles.CSSStyleDeclaration());
_local3.fontSize = 12;
_local3.fontWeight = "bold";
_local3.textAlign = "center";
}
function drawRoundRect(x, y, w, h, r, c, alpha, rot, gradient, ratios) {
if (typeof(r) == "object") {
var _local18 = r.br;
var _local16 = r.bl;
var _local15 = r.tl;
var _local10 = r.tr;
} else {
var _local10 = r;
var _local15 = _local10;
var _local16 = _local15;
var _local18 = _local16;
}
if (typeof(c) == "object") {
if (typeof(alpha) != "object") {
var _local9 = [alpha, alpha];
} else {
var _local9 = alpha;
}
if (ratios == undefined) {
ratios = [0, 255];
}
var _local14 = h * 0.7;
if (typeof(rot) != "object") {
var _local11 = {matrixType:"box", x:-_local14, y:_local14, w:w * 2, h:h * 4, r:rot * 0.0174532925199433 /* Math.PI/180 */};
} else {
var _local11 = rot;
}
if (gradient == "radial") {
beginGradientFill("radial", c, _local9, ratios, _local11);
} else {
beginGradientFill("linear", c, _local9, ratios, _local11);
}
} else if (c != undefined) {
beginFill(c, alpha);
}
r = _local18;
var _local13 = r - (r * 0.707106781186547);
var _local12 = r - (r * 0.414213562373095);
moveTo(x + w, (y + h) - r);
lineTo(x + w, (y + h) - r);
curveTo(x + w, (y + h) - _local12, (x + w) - _local13, (y + h) - _local13);
curveTo((x + w) - _local12, y + h, (x + w) - r, y + h);
r = _local16;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo(x + r, y + h);
curveTo(x + _local12, y + h, x + _local13, (y + h) - _local13);
curveTo(x, (y + h) - _local12, x, (y + h) - r);
r = _local15;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo(x, y + r);
curveTo(x, y + _local12, x + _local13, y + _local13);
curveTo(x + _local12, y, x + r, y);
r = _local10;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo((x + w) - r, y);
curveTo((x + w) - _local12, y, (x + w) - _local13, y + _local13);
curveTo(x + w, y + _local12, x + w, y + r);
lineTo(x + w, (y + h) - r);
if (c != undefined) {
endFill();
}
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
setThemeDefaults();
mx.core.UIObject.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect;
return(true);
}
static var classConstructed = classConstruct();
static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration;
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
static var UIObjectDependency = mx.core.UIObject;
}
Symbol 62 MovieClip [__Packages.mx.managers.DepthManager] Frame 0
class mx.managers.DepthManager
{
var _childCounter, createClassObject, createObject, _parent, swapDepths, _topmost, getDepth;
function DepthManager () {
MovieClip.prototype.createClassChildAtDepth = createClassChildAtDepth;
MovieClip.prototype.createChildAtDepth = createChildAtDepth;
MovieClip.prototype.setDepthTo = setDepthTo;
MovieClip.prototype.setDepthAbove = setDepthAbove;
MovieClip.prototype.setDepthBelow = setDepthBelow;
MovieClip.prototype.findNextAvailableDepth = findNextAvailableDepth;
MovieClip.prototype.shuffleDepths = shuffleDepths;
MovieClip.prototype.getDepthByFlag = getDepthByFlag;
MovieClip.prototype.buildDepthTable = buildDepthTable;
}
static function sortFunction(a, b) {
if (a.getDepth() > b.getDepth()) {
return(1);
}
return(-1);
}
static function test(depth) {
if (depth == reservedDepth) {
return(false);
}
return(true);
}
static function createClassObjectAtDepth(className, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createClassChildAtDepth(className, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createClassChildAtDepth(className, kTop, initObj);
break;
}
return(_local1);
}
static function createObjectAtDepth(linkageName, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createChildAtDepth(linkageName, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createChildAtDepth(linkageName, kTop, initObj);
break;
}
return(_local1);
}
function createClassChildAtDepth(className, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local6 = "down";
if (depthFlag == kBottom) {
_local6 = "up";
}
var _local5;
if (_local3[_local2] != undefined) {
_local5 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local6);
}
var _local4 = createClassObject(className, "depthChild" + (_childCounter++), _local2, initObj);
if (_local5 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local5, _local3, _local6);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function createChildAtDepth(linkageName, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local6 = "down";
if (depthFlag == kBottom) {
_local6 = "up";
}
var _local5;
if (_local3[_local2] != undefined) {
_local5 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local6);
}
var _local4 = createObject(linkageName, "depthChild" + (_childCounter++), _local2, initObj);
if (_local5 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local5, _local3, _local6);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function setDepthTo(depthFlag) {
var _local2 = _parent.buildDepthTable();
var _local3 = _parent.getDepthByFlag(depthFlag, _local2);
if (_local2[_local3] != undefined) {
shuffleDepths(this, _local3, _local2, undefined);
} else {
swapDepths(_local3);
}
if (depthFlag == kTopmost) {
_topmost = true;
} else {
delete _topmost;
}
}
function setDepthAbove(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local2 = targetInstance.getDepth() + 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local2] != undefined) && (getDepth() < _local2)) {
_local2 = _local2 - 1;
}
if (_local2 > highestDepth) {
_local2 = highestDepth;
}
if (_local2 == highestDepth) {
_parent.shuffleDepths(this, _local2, _local3, "down");
} else if (_local3[_local2] != undefined) {
_parent.shuffleDepths(this, _local2, _local3, undefined);
} else {
swapDepths(_local2);
}
}
function setDepthBelow(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local6 = targetInstance.getDepth() - 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local6] != undefined) && (getDepth() > _local6)) {
_local6 = _local6 + 1;
}
var _local4 = lowestDepth + numberOfAuthortimeLayers;
var _local5;
for (_local5 in _local3) {
var _local2 = _local3[_local5];
if (_local2._parent != undefined) {
_local4 = Math.min(_local4, _local2.getDepth());
}
}
if (_local6 < _local4) {
_local6 = _local4;
}
if (_local6 == _local4) {
_parent.shuffleDepths(this, _local6, _local3, "up");
} else if (_local3[_local6] != undefined) {
_parent.shuffleDepths(this, _local6, _local3, undefined);
} else {
swapDepths(_local6);
}
}
function findNextAvailableDepth(targetDepth, depthTable, direction) {
var _local5 = lowestDepth + numberOfAuthortimeLayers;
if (targetDepth < _local5) {
targetDepth = _local5;
}
if (depthTable[targetDepth] == undefined) {
return(targetDepth);
}
var _local2 = targetDepth;
var _local1 = targetDepth;
if (direction == "down") {
while (depthTable[_local1] != undefined) {
_local1--;
}
return(_local1);
}
while (depthTable[_local2] != undefined) {
_local2++;
}
return(_local2);
}
function shuffleDepths(subject, targetDepth, depthTable, direction) {
var _local9 = lowestDepth + numberOfAuthortimeLayers;
var _local8 = _local9;
var _local5;
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local9 = Math.min(_local9, _local7.getDepth());
}
}
if (direction == undefined) {
if (subject.getDepth() > targetDepth) {
direction = "up";
} else {
direction = "down";
}
}
var _local1 = new Array();
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local1.push(_local7);
}
}
_local1.sort(sortFunction);
if (direction == "up") {
var _local3;
var _local11;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.pop();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
_local11 = subject.getDepth();
_local3 = _local1.pop();
var _local4 = _local3.getDepth();
if (_local11 > (_local4 + 1)) {
if (_local4 >= 0) {
subject.swapDepths(_local4 + 1);
} else if ((_local11 > _local8) && (_local4 < _local8)) {
subject.swapDepths(_local8);
}
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
} else if (direction == "down") {
var _local3;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.shift();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
var _local11 = _local3.getDepth();
_local3 = _local1.shift();
var _local4 = _local3.getDepth();
if ((_local11 < (_local4 - 1)) && (_local4 > 0)) {
subject.swapDepths(_local4 - 1);
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
}
}
function getDepthByFlag(depthFlag, depthTable) {
var _local2 = 0;
if ((depthFlag == kTop) || (depthFlag == kNotopmost)) {
var _local5 = 0;
var _local7 = false;
var _local8;
for (_local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
if (!_local9._topmost) {
_local2 = Math.max(_local2, _local9.getDepth());
} else if (!_local7) {
_local5 = _local9.getDepth();
_local7 = true;
} else {
_local5 = Math.min(_local5, _local9.getDepth());
}
}
}
}
_local2 = _local2 + 20;
if (_local7) {
if (_local2 >= _local5) {
_local2 = _local5 - 1;
}
}
} else if (depthFlag == kBottom) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.min(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 - 20;
} else if (depthFlag == kTopmost) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.max(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 + 100;
}
if (_local2 >= highestDepth) {
_local2 = highestDepth;
}
var _local6 = lowestDepth + numberOfAuthortimeLayers;
for (var _local9 in depthTable) {
var _local4 = depthTable[_local9];
if (_local4._parent != undefined) {
_local6 = Math.min(_local6, _local4.getDepth());
}
}
if (_local2 <= _local6) {
_local2 = _local6;
}
return(_local2);
}
function buildDepthTable(Void) {
var _local5 = new Array();
var _local4;
for (_local4 in this) {
var _local2 = this[_local4];
var _local3 = typeof(_local2);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local2.__getTextFormat != undefined))) {
if (_local2._parent == this) {
_local5[_local2.getDepth()] = _local2;
}
}
}
return(_local5);
}
static var reservedDepth = 1048575;
static var highestDepth = 1048574;
static var lowestDepth = -16383;
static var numberOfAuthortimeLayers = 383;
static var kCursor = 101;
static var kTooltip = 102;
static var kTop = 201;
static var kBottom = 202;
static var kTopmost = 203;
static var kNotopmost = 204;
static var holder = _root.createEmptyMovieClip("reserved", reservedDepth);
static var __depthManager = new mx.managers.DepthManager();
}
Symbol 63 MovieClip [__Packages.mx.managers.SystemManager] Frame 0
class mx.managers.SystemManager
{
static var _xAddEventListener, addEventListener, __addEventListener, _xRemoveEventListener, removeEventListener, __removeEventListener, form, __screen, dispatchEvent;
function SystemManager () {
}
static function init(Void) {
if (_initialized == false) {
_initialized = true;
mx.events.EventDispatcher.initialize(mx.managers.SystemManager);
Mouse.addListener(mx.managers.SystemManager);
Stage.addListener(mx.managers.SystemManager);
_xAddEventListener = addEventListener;
addEventListener = __addEventListener;
_xRemoveEventListener = removeEventListener;
removeEventListener = __removeEventListener;
}
}
static function addFocusManager(f) {
form = f;
f.focusManager.activate();
}
static function removeFocusManager(f) {
}
static function onMouseDown(Void) {
var _local1 = form;
_local1.focusManager._onMouseDown();
}
static function onResize(Void) {
var _local7 = Stage.width;
var _local6 = Stage.height;
var _local9 = _global.origWidth;
var _local8 = _global.origHeight;
var _local3 = Stage.align;
var _local5 = (_local9 - _local7) / 2;
var _local4 = (_local8 - _local6) / 2;
if (_local3 == "T") {
_local4 = 0;
} else if (_local3 == "B") {
_local4 = _local8 - _local6;
} else if (_local3 == "L") {
_local5 = 0;
} else if (_local3 == "R") {
_local5 = _local9 - _local7;
} else if (_local3 == "LT") {
_local4 = 0;
_local5 = 0;
} else if (_local3 == "TR") {
_local4 = 0;
_local5 = _local9 - _local7;
} else if (_local3 == "LB") {
_local4 = _local8 - _local6;
_local5 = 0;
} else if (_local3 == "RB") {
_local4 = _local8 - _local6;
_local5 = _local9 - _local7;
}
if (__screen == undefined) {
__screen = new Object();
}
__screen.x = _local5;
__screen.y = _local4;
__screen.width = _local7;
__screen.height = _local6;
_root.focusManager.relocate();
dispatchEvent({type:"resize"});
}
static function get screen() {
init();
if (__screen == undefined) {
onResize();
}
return(__screen);
}
static var _initialized = false;
static var idleFrames = 0;
static var isMouseDown = false;
static var forms = new Array();
}
Symbol 64 MovieClip [__Packages.mx.managers.FocusManager] Frame 0
class mx.managers.FocusManager extends mx.core.UIComponent
{
var __defaultPushButton, defPushButton, form, move, tabEnabled, _width, _height, _x, _y, _alpha, _parent, tabCapture, watch, _visible, lastFocus, doLater, lastSelFocus, cancelAllDoLaters, _searchKey, _lastTarget, _firstNode, _nextIsNext, _nextNode, _lastx, _prevNode, _needPrev, _foundList, _prevObj, _nextObj, _firstObj, _lastObj, _lastNode, lastTabFocus, lastXMouse, lastYMouse, findFocusFromObject;
function FocusManager () {
super();
}
function get defaultPushButton() {
return(__defaultPushButton);
}
function set defaultPushButton(x) {
if (x != __defaultPushButton) {
__defaultPushButton.__set__emphasized(false);
__defaultPushButton = x;
defPushButton = x;
x.__set__emphasized(true);
}
//return(defaultPushButton);
}
function getMaxTabIndex(o) {
var _local3 = 0;
var _local6;
for (_local6 in o) {
var _local2 = o[_local6];
if (_local2._parent == o) {
if (_local2.tabIndex != undefined) {
if (_local2.tabIndex > _local3) {
_local3 = _local2.tabIndex;
}
}
if (_local2.tabChildren == true) {
var _local4 = getMaxTabIndex(_local2);
if (_local4 > _local3) {
_local3 = _local4;
}
}
}
}
return(_local3);
}
function getNextTabIndex(Void) {
return(getMaxTabIndex(form) + 1);
}
function get nextTabIndex() {
return(getNextTabIndex());
}
function relocate(Void) {
var _local2 = mx.managers.SystemManager.__get__screen();
move(_local2.x - 1, _local2.y - 1);
}
function init(Void) {
super.init();
tabEnabled = false;
_width = (_height = 1);
_x = (_y = -1);
_alpha = 0;
_parent.focusManager = this;
_parent.tabChildren = true;
_parent.tabEnabled = false;
form = _parent;
_parent.addEventListener("hide", this);
_parent.addEventListener("reveal", this);
mx.managers.SystemManager.init();
mx.managers.SystemManager.addFocusManager(form);
tabCapture.tabIndex = 0;
watch("enabled", enabledChanged);
Selection.addListener(this);
}
function enabledChanged(id, oldValue, newValue) {
_visible = newValue;
return(newValue);
}
function activate(Void) {
Key.addListener(this);
activated = (_visible = true);
if (lastFocus != undefined) {
bNeedFocus = true;
if (!mx.managers.SystemManager.isMouseDown) {
doLater(this, "restoreFocus");
}
}
}
function deactivate(Void) {
Key.removeListener(this);
activated = (_visible = false);
var _local2 = getSelectionFocus();
var _local3 = getActualFocus(_local2);
if (isOurFocus(_local3)) {
lastSelFocus = _local2;
lastFocus = _local3;
}
cancelAllDoLaters();
}
function isOurFocus(o) {
if (o.focusManager == this) {
return(true);
}
while (o != undefined) {
if (o.focusManager != undefined) {
return(false);
}
if (o._parent == _parent) {
return(true);
}
o = o._parent;
}
return(false);
}
function onSetFocus(o, n) {
if (n == null) {
if (activated) {
bNeedFocus = true;
}
} else {
var _local2 = getFocus();
if (isOurFocus(_local2)) {
bNeedFocus = false;
lastFocus = _local2;
lastSelFocus = n;
}
}
}
function restoreFocus(Void) {
var _local2 = lastSelFocus.hscroll;
if (_local2 != undefined) {
var _local5 = lastSelFocus.scroll;
var _local4 = lastSelFocus.background;
}
lastFocus.setFocus();
var _local3 = Selection;
Selection.setSelection(_local3.lastBeginIndex, _local3.lastEndIndex);
if (_local2 != undefined) {
lastSelFocus.scroll = _local5;
lastSelFocus.hscroll = _local2;
lastSelFocus.background = _local4;
}
}
function onUnload(Void) {
mx.managers.SystemManager.removeFocusManager(form);
}
function setFocus(o) {
if (o == null) {
Selection.setFocus(null);
} else if (o.setFocus == undefined) {
Selection.setFocus(o);
} else {
o.setFocus();
}
}
function getActualFocus(o) {
var _local1 = o._parent;
while (_local1 != undefined) {
if (_local1.focusTextField != undefined) {
while (_local1.focusTextField != undefined) {
o = _local1;
_local1 = _local1._parent;
if (_local1 == undefined) {
return(undefined);
}
if (_local1.focusTextField == undefined) {
return(o);
}
}
}
if (_local1.tabEnabled != true) {
return(o);
}
o = _local1;
_local1 = o._parent;
}
return(undefined);
}
function getSelectionFocus() {
var m = Selection.getFocus();
var o = eval (m);
return(o);
}
function getFocus(Void) {
var _local2 = getSelectionFocus();
return(getActualFocus(_local2));
}
function walkTree(p, index, groupName, dir, lookup, firstChild) {
var _local5 = true;
var _local11;
for (_local11 in p) {
var _local2 = p[_local11];
if ((((_local2._parent == p) && (_local2.enabled != false)) && (_local2._visible != false)) && ((_local2.tabEnabled == true) || ((_local2.tabEnabled != false) && ((((((((_local2.onPress != undefined) || (_local2.onRelease != undefined)) || (_local2.onReleaseOutside != undefined)) || (_local2.onDragOut != undefined)) || (_local2.onDragOver != undefined)) || (_local2.onRollOver != undefined)) || (_local2.onRollOut != undefined)) || (_local2 instanceof TextField))))) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
if (_local2 != _lastTarget) {
if (((_local2.groupName != undefined) || (groupName != undefined)) && (_local2.groupName == groupName)) {
continue;
}
if ((_local2 instanceof TextField) && (_local2.selectable == false)) {
continue;
}
if (_local5 || (((_local2.groupName != undefined) && (_local2.groupName == _firstNode.groupName)) && (_local2.selected == true))) {
if (firstChild) {
_firstNode = _local2;
firstChild = false;
}
}
if (_nextIsNext == true) {
if ((((_local2.groupName != undefined) && (_local2.groupName == _nextNode.groupName)) && (_local2.selected == true)) || ((_nextNode == undefined) && ((_local2.groupName == undefined) || ((_local2.groupName != undefined) && (_local2.groupName != groupName))))) {
_nextNode = _local2;
}
}
if ((_local2.groupName == undefined) || (groupName != _local2.groupName)) {
if (((_lastx.groupName != undefined) && (_local2.groupName == _lastx.groupName)) && (_lastx.selected == true)) {
} else {
_lastx = _local2;
}
}
} else {
_prevNode = _lastx;
_needPrev = false;
_nextIsNext = true;
}
if (_local2.tabIndex != undefined) {
if (_local2.tabIndex == index) {
if (_foundList[_local2._name] == undefined) {
if (_needPrev) {
_prevObj = _local2;
_needPrev = false;
}
_nextObj = _local2;
}
}
if (dir && (_local2.tabIndex > index)) {
if (((_nextObj == undefined) || ((_nextObj.tabIndex > _local2.tabIndex) && (((_local2.groupName == undefined) || (_nextObj.groupName == undefined)) || (_local2.groupName != _nextObj.groupName)))) || ((((_nextObj.groupName != undefined) && (_nextObj.groupName == _local2.groupName)) && (_nextObj.selected != true)) && ((_local2.selected == true) || (_nextObj.tabIndex > _local2.tabIndex)))) {
_nextObj = _local2;
}
} else if ((!dir) && (_local2.tabIndex < index)) {
if (((_prevObj == undefined) || ((_prevObj.tabIndex < _local2.tabIndex) && (((_local2.groupName == undefined) || (_prevObj.groupName == undefined)) || (_local2.groupName != _prevObj.groupName)))) || ((((_prevObj.groupName != undefined) && (_prevObj.groupName == _local2.groupName)) && (_prevObj.selected != true)) && ((_local2.selected == true) || (_prevObj.tabIndex < _local2.tabIndex)))) {
_prevObj = _local2;
}
}
if (((_firstObj == undefined) || ((_local2.tabIndex < _firstObj.tabIndex) && (((_local2.groupName == undefined) || (_firstObj.groupName == undefined)) || (_local2.groupName != _firstObj.groupName)))) || ((((_firstObj.groupName != undefined) && (_firstObj.groupName == _local2.groupName)) && (_firstObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex < _firstObj.tabIndex)))) {
_firstObj = _local2;
}
if (((_lastObj == undefined) || ((_local2.tabIndex > _lastObj.tabIndex) && (((_local2.groupName == undefined) || (_lastObj.groupName == undefined)) || (_local2.groupName != _lastObj.groupName)))) || ((((_lastObj.groupName != undefined) && (_lastObj.groupName == _local2.groupName)) && (_lastObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex > _lastObj.tabIndex)))) {
_lastObj = _local2;
}
}
if (_local2.tabChildren) {
getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild));
}
_local5 = false;
} else if (((_local2._parent == p) && (_local2.tabChildren == true)) && (_local2._visible != false)) {
if (_local2 == _lastTarget) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
if (_prevNode == undefined) {
var _local3 = _lastx;
var _local7 = false;
while (_local3 != undefined) {
if (_local3 == _local2) {
_local7 = true;
break;
}
_local3 = _local3._parent;
}
if (_local7 == false) {
_prevNode = _lastx;
}
}
_needPrev = false;
if (_nextNode == undefined) {
_nextIsNext = true;
}
} else if (!((_local2.focusManager != undefined) && (_local2.focusManager._parent == _local2))) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild));
}
_local5 = false;
}
}
_lastNode = _lastx;
if (lookup) {
if (p._parent != undefined) {
if (p != _parent) {
if ((_prevNode == undefined) && (dir)) {
_needPrev = true;
} else if ((_nextNode == undefined) && (!dir)) {
_nextIsNext = false;
}
_lastTarget = _lastTarget._parent;
getTabCandidate(p._parent, index, groupName, dir, true);
}
}
}
}
function getTabCandidate(o, index, groupName, dir, firstChild) {
var _local2;
var _local3 = true;
if (o == _parent) {
_local2 = o;
_local3 = false;
} else {
_local2 = o._parent;
if (_local2 == undefined) {
_local2 = o;
_local3 = false;
}
}
walkTree(_local2, index, groupName, dir, _local3, firstChild);
}
function getTabCandidateFromChildren(o, index, groupName, dir, firstChild) {
walkTree(o, index, groupName, dir, false, firstChild);
}
function getFocusManagerFromObject(o) {
while (o != undefined) {
if (o.focusManager != undefined) {
return(o.focusManager);
}
o = o._parent;
}
return(undefined);
}
function tabHandler(Void) {
bDrawFocus = true;
var _local5 = getSelectionFocus();
var _local4 = getActualFocus(_local5);
if (_local4 != _local5) {
_local5 = _local4;
}
if (getFocusManagerFromObject(_local5) != this) {
_local5 == undefined;
}
if (_local5 == undefined) {
_local5 = form;
} else if (_local5.tabIndex != undefined) {
if ((_foundList != undefined) || (_foundList.tabIndex != _local5.tabIndex)) {
_foundList = new Object();
_foundList.tabIndex = _local5.tabIndex;
}
_foundList[_local5._name] = _local5;
}
var _local3 = Key.isDown(16) != true;
_searchKey = getTimer();
_needPrev = true;
_nextIsNext = false;
_lastx = undefined;
_firstNode = undefined;
_lastNode = undefined;
_nextNode = undefined;
_prevNode = undefined;
_firstObj = undefined;
_lastObj = undefined;
_nextObj = undefined;
_prevObj = undefined;
_lastTarget = _local5;
var _local6 = _local5;
getTabCandidate(_local6, ((_local5.tabIndex == undefined) ? 0 : (_local5.tabIndex)), _local5.groupName, _local3, true);
var _local2;
if (_local3) {
if (_nextObj != undefined) {
_local2 = _nextObj;
} else {
_local2 = _firstObj;
}
} else if (_prevObj != undefined) {
_local2 = _prevObj;
} else {
_local2 = _lastObj;
}
if (_local2.tabIndex != _local5.tabIndex) {
_foundList = new Object();
_foundList.tabIndex = _local2.tabIndex;
_foundList[_local2._name] = _local2;
} else {
if (_foundList == undefined) {
_foundList = new Object();
_foundList.tabIndex = _local2.tabIndex;
}
_foundList[_local2._name] = _local2;
}
if (_local2 == undefined) {
if (_local3 == false) {
if (_nextNode != undefined) {
_local2 = _nextNode;
} else {
_local2 = _firstNode;
}
} else if ((_prevNode == undefined) || (_local5 == form)) {
_local2 = _lastNode;
} else {
_local2 = _prevNode;
}
}
if (_local2 == undefined) {
return(undefined);
}
lastTabFocus = _local2;
setFocus(_local2);
if (_local2.emphasized != undefined) {
if (defPushButton != undefined) {
_local5 = defPushButton;
defPushButton = _local2;
_local5.emphasized = false;
_local2.emphasized = true;
}
} else if ((defPushButton != undefined) && (defPushButton != __defaultPushButton)) {
_local5 = defPushButton;
defPushButton = __defaultPushButton;
_local5.emphasized = false;
__defaultPushButton.__set__emphasized(true);
}
}
function onKeyDown(Void) {
mx.managers.SystemManager.idleFrames = 0;
if (defaultPushButtonEnabled) {
if (Key.getCode() == 13) {
if (defaultPushButton != undefined) {
doLater(this, "sendDefaultPushButtonEvent");
}
}
}
}
function sendDefaultPushButtonEvent(Void) {
defPushButton.dispatchEvent({type:"click"});
}
function getMousedComponentFromChildren(x, y, o) {
for (var _local7 in o) {
var _local2 = o[_local7];
if (((_local2._visible && (_local2.enabled)) && (_local2._parent == o)) && (_local2._searchKey != _searchKey)) {
_local2._searchKey = _searchKey;
if (_local2.hitTest(x, y, true)) {
if ((_local2.onPress != undefined) || (_local2.onRelease != undefined)) {
return(_local2);
}
var _local3 = getMousedComponentFromChildren(x, y, _local2);
if (_local3 != undefined) {
return(_local3);
}
return(_local2);
}
}
}
return(undefined);
}
function mouseActivate(Void) {
if (!bNeedFocus) {
return(undefined);
}
_searchKey = getTimer();
var _local2 = getMousedComponentFromChildren(lastXMouse, lastYMouse, form);
if (_local2 instanceof mx.core.UIComponent) {
return(undefined);
}
_local2 = findFocusFromObject(_local2);
if (_local2 == lastFocus) {
return(undefined);
}
if (_local2 == undefined) {
doLater(this, "restoreFocus");
return(undefined);
}
var _local3 = _local2.hscroll;
if (_local3 != undefined) {
var _local6 = _local2.scroll;
var _local5 = _local2.background;
}
setFocus(_local2);
var _local4 = Selection;
Selection.setSelection(_local4.lastBeginIndex, _local4.lastEndIndex);
if (_local3 != undefined) {
_local2.scroll = _local6;
_local2.hscroll = _local3;
_local2.background = _local5;
}
}
function _onMouseDown(Void) {
bDrawFocus = false;
if (lastFocus != undefined) {
lastFocus.drawFocus(false);
}
mx.managers.SystemManager.idleFrames = 0;
var _local3 = Selection;
_local3.lastBeginIndex = Selection.getBeginIndex();
_local3.lastEndIndex = Selection.getEndIndex();
lastXMouse = _root._xmouse;
lastYMouse = _root._ymouse;
}
function onMouseUp(Void) {
if (_visible) {
doLater(this, "mouseActivate");
}
}
function handleEvent(e) {
if (e.type == "reveal") {
mx.managers.SystemManager.activate(form);
} else {
mx.managers.SystemManager.deactivate(form);
}
}
static function enableFocusManagement() {
if (!initialized) {
initialized = true;
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
}
}
static var symbolName = "FocusManager";
static var symbolOwner = mx.managers.FocusManager;
static var version = "2.0.0.360";
var className = "FocusManager";
var bNeedFocus = false;
var bDrawFocus = false;
var defaultPushButtonEnabled = true;
var activated = true;
static var initialized = false;
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 65 MovieClip [__Packages.mx.skins.halo.FocusRect] Frame 0
class mx.skins.halo.FocusRect extends mx.skins.SkinElement
{
var boundingBox_mc, _xscale, _yscale, clear, beginFill, drawRoundRect, endFill, _visible;
function FocusRect () {
super();
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function draw(o) {
o.adjustFocusRect();
}
function setSize(w, h, r, a, rectCol) {
_xscale = (_yscale = 100);
clear();
if (typeof(r) == "object") {
r.br = ((r.br > 2) ? (r.br - 2) : 0);
r.bl = ((r.bl > 2) ? (r.bl - 2) : 0);
r.tr = ((r.tr > 2) ? (r.tr - 2) : 0);
r.tl = ((r.tl > 2) ? (r.tl - 2) : 0);
beginFill(rectCol, a * 0.3);
drawRoundRect(0, 0, w, h, r);
drawRoundRect(2, 2, w - 4, h - 4, r);
endFill();
r.br = ((r.br > 1) ? (r.br + 1) : 0);
r.bl = ((r.bl > 1) ? (r.bl + 1) : 0);
r.tr = ((r.tr > 1) ? (r.tr + 1) : 0);
r.tl = ((r.tl > 1) ? (r.tl + 1) : 0);
beginFill(rectCol, a * 0.3);
drawRoundRect(1, 1, w - 2, h - 2, r);
r.br = ((r.br > 1) ? (r.br - 1) : 0);
r.bl = ((r.bl > 1) ? (r.bl - 1) : 0);
r.tr = ((r.tr > 1) ? (r.tr - 1) : 0);
r.tl = ((r.tl > 1) ? (r.tl - 1) : 0);
drawRoundRect(2, 2, w - 4, h - 4, r);
endFill();
} else {
var _local5;
if (r != 0) {
_local5 = r - 2;
} else {
_local5 = 0;
}
beginFill(rectCol, a * 0.3);
drawRoundRect(0, 0, w, h, r);
drawRoundRect(2, 2, w - 4, h - 4, _local5);
endFill();
beginFill(rectCol, a * 0.3);
if (r != 0) {
_local5 = r - 2;
r = r - 1;
} else {
_local5 = 0;
r = 0;
}
drawRoundRect(1, 1, w - 2, h - 2, r);
drawRoundRect(2, 2, w - 4, h - 4, _local5);
endFill();
}
}
function handleEvent(e) {
if (e.type == "unload") {
_visible = true;
} else if (e.type == "resize") {
e.target.adjustFocusRect();
} else if (e.type == "move") {
e.target.adjustFocusRect();
}
}
static function classConstruct() {
mx.core.UIComponent.prototype.drawFocus = function (focused) {
var _local2 = this._parent.focus_mc;
if (!focused) {
_local2._visible = false;
this.removeEventListener("unload", _local2);
this.removeEventListener("move", _local2);
this.removeEventListener("resize", _local2);
} else {
if (_local2 == undefined) {
_local2 = this._parent.createChildAtDepth("FocusRect", mx.managers.DepthManager.kTop);
_local2.tabEnabled = false;
this._parent.focus_mc = _local2;
} else {
_local2._visible = true;
}
_local2.draw(this);
if (_local2.getDepth() < this.getDepth()) {
_local2.setDepthAbove(this);
}
this.addEventListener("unload", _local2);
this.addEventListener("move", _local2);
this.addEventListener("resize", _local2);
}
};
mx.core.UIComponent.prototype.adjustFocusRect = function () {
var _local2 = this.getStyle("themeColor");
if (_local2 == undefined) {
_local2 = 8453965 /* 0x80FF4D */;
}
var _local3 = this._parent.focus_mc;
_local3.setSize(this.width + 4, this.height + 4, 0, 100, _local2);
_local3.move(this.x - 2, this.y - 2);
};
TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus;
TextField.prototype.adjustFocusRect = mx.core.UIComponent.prototype.adjustFocusRect;
mx.skins.halo.FocusRect.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect;
return(true);
}
static var classConstructed = classConstruct();
static var DefaultsDependency = mx.skins.halo.Defaults;
static var UIComponentDependency = mx.core.UIComponent;
}
Symbol 66 MovieClip [__Packages.mx.managers.OverlappedWindows] Frame 0
class mx.managers.OverlappedWindows
{
function OverlappedWindows () {
}
static function checkIdle(Void) {
if (mx.managers.SystemManager.idleFrames > 10) {
mx.managers.SystemManager.dispatchEvent({type:"idle"});
} else {
mx.managers.SystemManager.idleFrames++;
}
}
static function __addEventListener(e, o, l) {
if (e == "idle") {
if (mx.managers.SystemManager.interval == undefined) {
mx.managers.SystemManager.interval = setInterval(mx.managers.SystemManager.checkIdle, 100);
}
}
mx.managers.SystemManager._xAddEventListener(e, o, l);
}
static function __removeEventListener(e, o, l) {
if (e == "idle") {
if (mx.managers.SystemManager._xRemoveEventListener(e, o, l) == 0) {
clearInterval(mx.managers.SystemManager.interval);
}
} else {
mx.managers.SystemManager._xRemoveEventListener(e, o, l);
}
}
static function onMouseDown(Void) {
mx.managers.SystemManager.idleFrames = 0;
mx.managers.SystemManager.isMouseDown = true;
var _local5 = _root;
var _local3;
var _local8 = _root._xmouse;
var _local7 = _root._ymouse;
if (mx.managers.SystemManager.form.modalWindow == undefined) {
if (mx.managers.SystemManager.forms.length > 1) {
var _local6 = mx.managers.SystemManager.forms.length;
var _local4;
_local4 = 0;
while (_local4 < _local6) {
var _local2 = mx.managers.SystemManager.forms[_local4];
if (_local2._visible) {
if (_local2.hitTest(_local8, _local7)) {
if (_local3 == undefined) {
_local3 = _local2.getDepth();
_local5 = _local2;
} else if (_local3 < _local2.getDepth()) {
_local3 = _local2.getDepth();
_local5 = _local2;
}
}
}
_local4++;
}
if (_local5 != mx.managers.SystemManager.form) {
mx.managers.SystemManager.activate(_local5);
}
}
}
var _local9 = mx.managers.SystemManager.form;
_local9.focusManager._onMouseDown();
}
static function onMouseMove(Void) {
mx.managers.SystemManager.idleFrames = 0;
}
static function onMouseUp(Void) {
mx.managers.SystemManager.isMouseDown = false;
mx.managers.SystemManager.idleFrames = 0;
}
static function activate(f) {
if (mx.managers.SystemManager.form != undefined) {
if ((mx.managers.SystemManager.form != f) && (mx.managers.SystemManager.forms.length > 1)) {
var _local1 = mx.managers.SystemManager.form;
_local1.focusManager.deactivate();
}
}
mx.managers.SystemManager.form = f;
f.focusManager.activate();
}
static function deactivate(f) {
if (mx.managers.SystemManager.form != undefined) {
if ((mx.managers.SystemManager.form == f) && (mx.managers.SystemManager.forms.length > 1)) {
var _local5 = mx.managers.SystemManager.form;
_local5.focusManager.deactivate();
var _local3 = mx.managers.SystemManager.forms.length;
var _local1;
var _local2;
_local1 = 0;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1] == f) {
_local1 = _local1 + 1;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1]._visible == true) {
_local2 = mx.managers.SystemManager.forms[_local1];
}
_local1++;
}
mx.managers.SystemManager.form = _local2;
break;
}
if (mx.managers.SystemManager.forms[_local1]._visible == true) {
_local2 = mx.managers.SystemManager.forms[_local1];
}
_local1++;
}
_local5 = mx.managers.SystemManager.form;
_local5.focusManager.activate();
}
}
}
static function addFocusManager(f) {
mx.managers.SystemManager.forms.push(f);
mx.managers.SystemManager.activate(f);
}
static function removeFocusManager(f) {
var _local3 = mx.managers.SystemManager.forms.length;
var _local1;
_local1 = 0;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1] == f) {
if (mx.managers.SystemManager.form == f) {
mx.managers.SystemManager.deactivate(f);
}
mx.managers.SystemManager.forms.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
static function enableOverlappedWindows() {
if (!initialized) {
initialized = true;
mx.managers.SystemManager.checkIdle = checkIdle;
mx.managers.SystemManager.__addEventListener = __addEventListener;
mx.managers.SystemManager.__removeEventListener = __removeEventListener;
mx.managers.SystemManager.onMouseDown = onMouseDown;
mx.managers.SystemManager.onMouseMove = onMouseMove;
mx.managers.SystemManager.onMouseUp = onMouseUp;
mx.managers.SystemManager.activate = activate;
mx.managers.SystemManager.deactivate = deactivate;
mx.managers.SystemManager.addFocusManager = addFocusManager;
mx.managers.SystemManager.removeFocusManager = removeFocusManager;
}
}
static var initialized = false;
static var SystemManagerDependency = mx.managers.SystemManager;
}
Symbol 67 MovieClip [__Packages.mx.styles.CSSSetStyle] Frame 0
class mx.styles.CSSSetStyle
{
var styleName, stylecache, _color, setColor, invalidateStyle;
function CSSSetStyle () {
}
function _setStyle(styleProp, newValue) {
this[styleProp] = newValue;
if (mx.styles.StyleManager.TextStyleMap[styleProp] != undefined) {
if (styleProp == "color") {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
}
_level0.changeTextStyleInChildren(styleProp);
return(undefined);
}
if (mx.styles.StyleManager.isColorStyle(styleProp)) {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
if (styleProp == "themeColor") {
var _local7 = mx.styles.StyleManager.colorNames.haloBlue;
var _local6 = mx.styles.StyleManager.colorNames.haloGreen;
var _local8 = mx.styles.StyleManager.colorNames.haloOrange;
var _local4 = {};
_local4[_local7] = 12188666 /* 0xB9FBFA */;
_local4[_local6] = 13500353 /* 0xCDFFC1 */;
_local4[_local8] = 16766319 /* 0xFFD56F */;
var _local5 = {};
_local5[_local7] = 13958653 /* 0xD4FDFD */;
_local5[_local6] = 14942166 /* 0xE3FFD6 */;
_local5[_local8] = 16772787 /* 0xFFEEB3 */;
var _local9 = _local4[newValue];
var _local10 = _local5[newValue];
if (_local9 == undefined) {
_local9 = newValue;
}
if (_local10 == undefined) {
_local10 = newValue;
}
setStyle("selectionColor", _local9);
setStyle("rollOverColor", _local10);
}
_level0.changeColorStyleInChildren(styleName, styleProp, newValue);
} else {
if ((styleProp == "backgroundColor") && (isNaN(newValue))) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
_level0.notifyStyleChangeInChildren(styleName, styleProp, newValue);
}
}
function changeTextStyleInChildren(styleProp) {
var _local4 = getTimer();
var _local5;
for (_local5 in this) {
var _local2 = this[_local5];
if (_local2._parent == this) {
if (_local2.searchKey != _local4) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache.tf;
delete _local2.stylecache[styleProp];
}
_local2.invalidateStyle(styleProp);
_local2.changeTextStyleInChildren(styleProp);
_local2.searchKey = _local4;
}
}
}
}
function changeColorStyleInChildren(sheetName, colorStyle, newValue) {
var _local6 = getTimer();
var _local7;
for (_local7 in this) {
var _local2 = this[_local7];
if (_local2._parent == this) {
if (_local2.searchKey != _local6) {
if (((_local2.getStyleName() == sheetName) || (sheetName == undefined)) || (sheetName == "_global")) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache[colorStyle];
}
if (typeof(_local2._color) == "string") {
if (_local2._color == colorStyle) {
var _local4 = _local2.getStyle(colorStyle);
if (colorStyle == "color") {
if (stylecache.tf.color != undefined) {
stylecache.tf.color = _local4;
}
}
_local2.setColor(_local4);
}
} else if (_local2._color[colorStyle] != undefined) {
if (typeof(_local2) != "movieclip") {
_local2._parent.invalidateStyle();
} else {
_local2.invalidateStyle(colorStyle);
}
}
}
_local2.changeColorStyleInChildren(sheetName, colorStyle, newValue);
_local2.searchKey = _local6;
}
}
}
}
function notifyStyleChangeInChildren(sheetName, styleProp, newValue) {
var _local5 = getTimer();
var _local6;
for (_local6 in this) {
var _local2 = this[_local6];
if (_local2._parent == this) {
if (_local2.searchKey != _local5) {
if (((_local2.styleName == sheetName) || ((_local2.styleName != undefined) && (typeof(_local2.styleName) == "movieclip"))) || (sheetName == undefined)) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache[styleProp];
delete _local2.stylecache.tf;
}
delete _local2.enabledColor;
_local2.invalidateStyle(styleProp);
}
_local2.notifyStyleChangeInChildren(sheetName, styleProp, newValue);
_local2.searchKey = _local5;
}
}
}
}
function setStyle(styleProp, newValue) {
if (stylecache != undefined) {
delete stylecache[styleProp];
delete stylecache.tf;
}
this[styleProp] = newValue;
if (mx.styles.StyleManager.isColorStyle(styleProp)) {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
if (styleProp == "themeColor") {
var _local10 = mx.styles.StyleManager.colorNames.haloBlue;
var _local9 = mx.styles.StyleManager.colorNames.haloGreen;
var _local11 = mx.styles.StyleManager.colorNames.haloOrange;
var _local6 = {};
_local6[_local10] = 12188666 /* 0xB9FBFA */;
_local6[_local9] = 13500353 /* 0xCDFFC1 */;
_local6[_local11] = 16766319 /* 0xFFD56F */;
var _local7 = {};
_local7[_local10] = 13958653 /* 0xD4FDFD */;
_local7[_local9] = 14942166 /* 0xE3FFD6 */;
_local7[_local11] = 16772787 /* 0xFFEEB3 */;
var _local12 = _local6[newValue];
var _local13 = _local7[newValue];
if (_local12 == undefined) {
_local12 = newValue;
}
if (_local13 == undefined) {
_local13 = newValue;
}
setStyle("selectionColor", _local12);
setStyle("rollOverColor", _local13);
}
if (typeof(_color) == "string") {
if (_color == styleProp) {
if (styleProp == "color") {
if (stylecache.tf.color != undefined) {
stylecache.tf.color = newValue;
}
}
setColor(newValue);
}
} else if (_color[styleProp] != undefined) {
invalidateStyle(styleProp);
}
changeColorStyleInChildren(undefined, styleProp, newValue);
} else {
if ((styleProp == "backgroundColor") && (isNaN(newValue))) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
invalidateStyle(styleProp);
}
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (styleProp == "styleName")) {
var _local8;
var _local5 = newValue;
if (styleProp == "styleName") {
_local8 = ((typeof(newValue) == "string") ? (_global.styles[newValue]) : (_local5));
_local5 = _local8.themeColor;
if (_local5 != undefined) {
_local8.rollOverColor = (_local8.selectionColor = _local5);
}
}
notifyStyleChangeInChildren(undefined, styleProp, newValue);
}
}
static function enableRunTimeCSS() {
}
static function classConstruct() {
var _local2 = MovieClip.prototype;
var _local1 = mx.styles.CSSSetStyle.prototype;
mx.styles.CSSStyleDeclaration.prototype.setStyle = _local1._setStyle;
_local2.changeTextStyleInChildren = _local1.changeTextStyleInChildren;
_local2.changeColorStyleInChildren = _local1.changeColorStyleInChildren;
_local2.notifyStyleChangeInChildren = _local1.notifyStyleChangeInChildren;
_local2.setStyle = _local1.setStyle;
var _local3 = TextField.prototype;
_local3.setStyle = _local2.setStyle;
_local3.changeTextStyleInChildren = _local1.changeTextStyleInChildren;
return(true);
}
static var classConstructed = classConstruct();
static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration;
}
Symbol 68 MovieClip [__Packages.mx.core.ext.UIComponentExtensions] Frame 0
class mx.core.ext.UIComponentExtensions
{
function UIComponentExtensions () {
}
static function Extensions() {
if (bExtended == true) {
return(true);
}
bExtended = true;
TextField.prototype.setFocus = function () {
Selection.setFocus(this);
};
TextField.prototype.onSetFocus = function (oldFocus) {
if (this.tabEnabled != false) {
if (this.getFocusManager().bDrawFocus) {
this.drawFocus(true);
}
}
};
TextField.prototype.onKillFocus = function (oldFocus) {
if (this.tabEnabled != false) {
this.drawFocus(false);
}
};
TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus;
TextField.prototype.getFocusManager = mx.core.UIComponent.prototype.getFocusManager;
mx.managers.OverlappedWindows.enableOverlappedWindows();
mx.styles.CSSSetStyle.enableRunTimeCSS();
mx.managers.FocusManager.enableFocusManagement();
}
static var bExtended = false;
static var UIComponentExtended = Extensions();
static var UIComponentDependency = mx.core.UIComponent;
static var FocusManagerDependency = mx.managers.FocusManager;
static var OverlappedWindowsDependency = mx.managers.OverlappedWindows;
}
Symbol 69 MovieClip [__Packages.mx.skins.Border] Frame 0
class mx.skins.Border extends mx.core.UIObject
{
function Border () {
super();
}
function init(Void) {
super.init();
}
static var symbolName = "Border";
static var symbolOwner = mx.skins.Border;
var className = "Border";
var tagBorder = 0;
var idNames = new Array("border_mc");
}
Symbol 70 MovieClip [__Packages.mx.skins.RectBorder] Frame 0
class mx.skins.RectBorder extends mx.skins.Border
{
var __width, __height, offset, __borderMetrics;
function RectBorder () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function init(Void) {
super.init();
}
function draw(Void) {
size();
}
function getBorderMetrics(Void) {
var _local2 = offset;
if (__borderMetrics == undefined) {
__borderMetrics = {left:_local2, top:_local2, right:_local2, bottom:_local2};
} else {
__borderMetrics.left = _local2;
__borderMetrics.top = _local2;
__borderMetrics.right = _local2;
__borderMetrics.bottom = _local2;
}
return(__borderMetrics);
}
function get borderMetrics() {
return(getBorderMetrics());
}
function drawBorder(Void) {
}
function size(Void) {
drawBorder();
}
function setColor(Void) {
drawBorder();
}
static var symbolName = "RectBorder";
static var symbolOwner = mx.skins.RectBorder;
static var version = "2.0.0.360";
var className = "RectBorder";
var borderStyleName = "borderStyle";
var borderColorName = "borderColor";
var shadowColorName = "shadowColor";
var highlightColorName = "highlightColor";
var buttonColorName = "buttonColor";
var backgroundColorName = "backgroundColor";
}
Symbol 71 MovieClip [__Packages.mx.skins.halo.RectBorder] Frame 0
class mx.skins.halo.RectBorder extends mx.skins.RectBorder
{
var offset, getStyle, borderStyleName, __borderMetrics, className, borderColorName, backgroundColorName, shadowColorName, highlightColorName, buttonColorName, __get__width, __get__height, clear, _color, drawRoundRect, beginFill, drawRect, endFill;
function RectBorder () {
super();
}
function init(Void) {
borderWidths.default = 3;
super.init();
}
function getBorderMetrics(Void) {
if (offset == undefined) {
var _local3 = getStyle(borderStyleName);
offset = borderWidths[_local3];
}
if ((getStyle(borderStyleName) == "default") || (getStyle(borderStyleName) == "alert")) {
__borderMetrics = {left:3, top:1, right:3, bottom:3};
return(__borderMetrics);
}
return(super.getBorderMetrics());
}
function drawBorder(Void) {
var _local6 = _global.styles[className];
if (_local6 == undefined) {
_local6 = _global.styles.RectBorder;
}
var _local5 = getStyle(borderStyleName);
var _local7 = getStyle(borderColorName);
if (_local7 == undefined) {
_local7 = _local6[borderColorName];
}
var _local8 = getStyle(backgroundColorName);
if (_local8 == undefined) {
_local8 = _local6[backgroundColorName];
}
var _local16 = getStyle("backgroundImage");
if (_local5 != "none") {
var _local14 = getStyle(shadowColorName);
if (_local14 == undefined) {
_local14 = _local6[shadowColorName];
}
var _local13 = getStyle(highlightColorName);
if (_local13 == undefined) {
_local13 = _local6[highlightColorName];
}
var _local12 = getStyle(buttonColorName);
if (_local12 == undefined) {
_local12 = _local6[buttonColorName];
}
var _local11 = getStyle(borderCapColorName);
if (_local11 == undefined) {
_local11 = _local6[borderCapColorName];
}
var _local10 = getStyle(shadowCapColorName);
if (_local10 == undefined) {
_local10 = _local6[shadowCapColorName];
}
}
offset = borderWidths[_local5];
var _local9 = offset;
var _local3 = __get__width();
var _local4 = __get__height();
clear();
_color = undefined;
if (_local5 == "none") {
} else if (_local5 == "inset") {
_color = colorList;
draw3dBorder(_local11, _local12, _local7, _local13, _local14, _local10);
} else if (_local5 == "outset") {
_color = colorList;
draw3dBorder(_local11, _local7, _local12, _local14, _local13, _local10);
} else if (_local5 == "alert") {
var _local15 = getStyle("themeColor");
drawRoundRect(0, 5, _local3, _local4 - 5, 5, 6184542, 10);
drawRoundRect(1, 4, _local3 - 2, _local4 - 5, 4, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, _local15, 50);
drawRoundRect(3, 1, _local3 - 6, _local4 - 4, 2, 16777215, 100);
} else if (_local5 == "default") {
drawRoundRect(0, 5, _local3, _local4 - 5, {tl:5, tr:5, br:0, bl:0}, 6184542, 10);
drawRoundRect(1, 4, _local3 - 2, _local4 - 5, {tl:4, tr:4, br:0, bl:0}, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, {tl:3, tr:3, br:0, bl:0}, [12897484, 11844796], 100, 0, "radial");
drawRoundRect(3, 1, _local3 - 6, _local4 - 4, {tl:2, tr:2, br:0, bl:0}, 16777215, 100);
} else if (_local5 == "dropDown") {
drawRoundRect(0, 0, _local3 + 1, _local4, {tl:4, tr:0, br:0, bl:4}, [13290186, 7895160], 100, -10, "linear");
drawRoundRect(1, 1, _local3 - 1, _local4 - 2, {tl:3, tr:0, br:0, bl:3}, 16777215, 100);
} else if (_local5 == "menuBorder") {
var _local15 = getStyle("themeColor");
drawRoundRect(4, 4, _local3 - 2, _local4 - 3, 0, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(4, 4, _local3 - 1, _local4 - 2, 0, 6184542, 10);
drawRoundRect(0, 0, _local3 + 1, _local4, 0, [0, 14342874], 100, 250, "linear");
drawRoundRect(0, 0, _local3 + 1, _local4, 0, _local15, 50);
drawRoundRect(2, 2, _local3 - 3, _local4 - 4, 0, 16777215, 100);
} else if (_local5 == "comboNonEdit") {
} else {
beginFill(_local7);
drawRect(0, 0, _local3, _local4);
drawRect(1, 1, _local3 - 1, _local4 - 1);
endFill();
_color = borderColorName;
}
if (_local8 != undefined) {
beginFill(_local8);
drawRect(_local9, _local9, __get__width() - _local9, __get__height() - _local9);
endFill();
}
}
function draw3dBorder(c1, c2, c3, c4, c5, c6) {
var _local3 = __get__width();
var _local2 = __get__height();
beginFill(c1);
drawRect(0, 0, _local3, _local2);
drawRect(1, 0, _local3 - 1, _local2);
endFill();
beginFill(c2);
drawRect(1, 0, _local3 - 1, 1);
endFill();
beginFill(c3);
drawRect(1, _local2 - 1, _local3 - 1, _local2);
endFill();
beginFill(c4);
drawRect(1, 1, _local3 - 1, 2);
endFill();
beginFill(c5);
drawRect(1, _local2 - 2, _local3 - 1, _local2 - 1);
endFill();
beginFill(c6);
drawRect(1, 2, _local3 - 1, _local2 - 2);
drawRect(2, 2, _local3 - 2, _local2 - 2);
endFill();
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
_global.styles.rectBorderClass = mx.skins.halo.RectBorder;
_global.skinRegistry.RectBorder = true;
return(true);
}
static var symbolName = "RectBorder";
static var symbolOwner = mx.skins.halo.RectBorder;
static var version = "2.0.0.360";
var borderCapColorName = "borderCapColor";
var shadowCapColorName = "shadowCapColor";
var colorList = {highlightColor:0, borderColor:0, buttonColor:0, shadowColor:0, borderCapColor:0, shadowCapColor:0};
var borderWidths = {none:0, solid:1, inset:2, outset:2, alert:3, dropDown:2, menuBorder:2, comboNonEdit:2};
static var classConstructed = classConstruct();
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 72 MovieClip [__Packages.mx.skins.halo.ButtonSkin] Frame 0
class mx.skins.halo.ButtonSkin extends mx.skins.RectBorder
{
var __get__width, __get__height, getStyle, _parent, clear, drawRoundRect, __get__x, __get__y;
function ButtonSkin () {
super();
}
function init() {
super.init();
}
function size() {
drawHaloRect(__get__width(), __get__height());
}
function drawHaloRect(w, h) {
var _local6 = getStyle("borderStyle");
var _local4 = getStyle("themeColor");
var _local5 = _parent.emphasized;
clear();
switch (_local6) {
case "falseup" :
if (_local5) {
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 75);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 85, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 75);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100);
} else {
drawRoundRect(0, 0, w, h, 5, 9542041, 100);
drawRoundRect(1, 1, w - 2, h - 2, 4, [13291985, 16250871], 100, 0, "radial");
drawRoundRect(2, 2, w - 4, h - 4, 3, [9542041, 13818586], 100, 0, "radial");
drawRoundRect(3, 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(3, 4, w - 6, h - 7, 2, 16316664, 100);
}
break;
case "falsedown" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, _local4, 20);
break;
case "falserollover" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 50);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 50);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100);
break;
case "falsedisabled" :
drawRoundRect(0, 0, w, h, 5, 13159628, 100);
drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100);
drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100);
drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100);
break;
case "trueup" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 10066329, 100);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16250871, 100);
break;
case "truedown" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 10066329, 100);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, _local4, 20);
break;
case "truerollover" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 50);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 40);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100);
break;
case "truedisabled" :
drawRoundRect(0, 0, w, h, 5, 13159628, 100);
drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100);
drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100);
drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100);
}
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
_global.skinRegistry.ButtonSkin = true;
return(true);
}
static var symbolName = "ButtonSkin";
static var symbolOwner = mx.skins.halo.ButtonSkin;
var className = "ButtonSkin";
var backgroundColorName = "buttonColor";
static var classConstructed = classConstruct();
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 73 MovieClip [__Packages.mx.controls.CheckBox] Frame 0
class mx.controls.CheckBox extends mx.controls.Button
{
var _getTextFormat, labelPath, iconName;
function CheckBox () {
super();
}
function onRelease() {
super.onRelease();
}
function init() {
super.init();
}
function size() {
super.size();
}
function get emphasized() {
return(undefined);
}
function calcPreferredHeight() {
var _local5 = _getTextFormat();
var _local3 = _local5.getTextExtent2(labelPath.text).height;
var _local4 = iconName._height;
var _local2 = 0;
if ((__labelPlacement == "left") || (__labelPlacement == "right")) {
_local2 = Math.max(_local3, _local4);
} else {
_local2 = _local3 + _local4;
}
return(Math.max(14, _local2));
}
function set toggle(v) {
//return(toggle);
}
function get toggle() {
}
function set icon(v) {
//return(icon);
}
function get icon() {
}
static var symbolName = "CheckBox";
static var symbolOwner = mx.controls.CheckBox;
static var version = "2.0.0.360";
var className = "CheckBox";
var ignoreClassStyleDeclaration = {Button:1};
var btnOffset = 0;
var __toggle = true;
var __selected = false;
var __labelPlacement = "right";
var __label = "CheckBox";
var falseUpSkin = "";
var falseDownSkin = "";
var falseOverSkin = "";
var falseDisabledSkin = "";
var trueUpSkin = "";
var trueDownSkin = "";
var trueOverSkin = "";
var trueDisabledSkin = "";
var falseUpIcon = "CheckFalseUp";
var falseDownIcon = "CheckFalseDown";
var falseOverIcon = "CheckFalseOver";
var falseDisabledIcon = "CheckFalseDisabled";
var trueUpIcon = "CheckTrueUp";
var trueDownIcon = "CheckTrueDown";
var trueOverIcon = "CheckTrueOver";
var trueDisabledIcon = "CheckTrueDisabled";
var clipParameters = {label:1, labelPlacement:1, selected:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.CheckBox.prototype.clipParameters, mx.controls.Button.prototype.clipParameters);
var centerContent = false;
var borderW = 0;
}
Symbol 383 Button
on (press) {
if (_root.local_data.data.chassi == null) {
_root.playData.level = 1;
_root.moviePos = "intro";
_root.gotoAndStop("movie");
} else {
btnNew._visible = false;
btnCont._visible = false;
btnOpt._visible = false;
btnHow._visible = false;
btnHelp._visible = false;
btnCredits._visible = false;
confirm._visible = true;
}
}
Symbol 388 Button
on (press) {
if (confirm._visible == false) {
_parent.gotoAndPlay("principal_to_opcoes");
}
}
Symbol 393 Button
on (press) {
if ((_root.local_data.data.chassi != null) && (confirm._visible == false)) {
_root.loadPlayer();
_root.gotoAndStop("shop");
}
}
Symbol 398 Button
on (press) {
if (confirm._visible == false) {
_parent.gotoAndPlay("principal_to_controls");
}
}
Symbol 403 Button
on (press) {
if (confirm._visible == false) {
_parent.gotoAndPlay("principal_to_credits");
}
}
Symbol 408 Button
on (press) {
if (confirm._visible == false) {
_parent.gotoAndPlay("principal_to_help");
}
}
Symbol 415 Button
on (release) {
_root.playData.level = 1;
_root.moviePos = "intro";
_root.gotoAndStop("movie");
}
Symbol 417 Button
on (release) {
_parent.btnNew._visible = true;
_parent.btnCont._visible = true;
_parent.btnOpt._visible = true;
_parent.btnHow._visible = true;
_parent.btnHelp._visible = true;
_parent.btnCredits._visible = true;
this._visible = false;
}
Symbol 418 MovieClip Frame 1
this._visible = false;
stop();
Symbol 419 MovieClip Frame 1
if (_root.local_data.data.chassi == null) {
btnCont._alpha = 25;
}
Symbol 425 Button
on (press) {
_root.saveConfig();
_parent.gotoAndPlay("opcoes_to_principal");
}
Symbol 429 MovieClip Frame 1
function onChange(val) {
}
indicador._visible = false;
stop();
_mouseDown = false;
_barraCenterX = _parent.barra._width / 2;
_barraCenterY = _parent.barra._height / 2;
_cursorCenterX = _parent.cursor._width / 2;
_cursorCenterY = _parent.cursor._height / 2;
borda = 0;
_cursorMinX = (_parent.barra._x + _cursorCenterX) + borda;
_cursorMaxX = ((_parent.barra._x + _parent.barra._width) - _cursorCenterX) - borda;
_cursorMinY = (_parent.barra._y + _cursorCenterY) + borda;
_cursorMaxY = ((_parent.barra._y + _parent.barra._height) - _cursorCenterY) - borda;
orientacao = "horizontal";
valor = 0;
maxValor = 100;
_parent.barra.onPress = function () {
mouseDown = true;
_updateCursor();
};
_parent.cursor.onPress = function () {
mouseDown = true;
_updateCursor();
};
_parent.barra.onMouseUp = function () {
mouseDown = false;
};
_parent.barra.onMouseMove = function () {
_updateCursor();
};
_updateCursor = function () {
if (mouseDown) {
moveCursor();
posMouse = new Object();
posMouse.x = _root._xmouse;
posMouse.y = _root._ymouse;
_moveCursor(posMouse);
onChange(getValor());
}
};
_moveCursor = function (pos) {
_parent.globalToLocal(pos);
if (orientacao == "horizontal") {
if (pos.x < _cursorMinX) {
_parent.cursor._x = _cursorMinX - _cursorCenterX;
} else if (pos.x > _cursorMaxX) {
_parent.cursor._x = _cursorMaxX - _cursorCenterX;
} else {
_parent.cursor._x = pos.x - _cursorCenterX;
}
} else if (pos.y < _cursorMinY) {
_parent.cursor._y = _cursorMinY - _cursorCenterY;
} else if (pos.y > _cursorMaxY) {
_parent.cursor._y = _cursorMaxY - _cursorCenterY;
} else {
_parent.cursor._y = pos.y - _cursorCenterY;
}
};
_setCurPos = function (val) {
if (orientacao == "horizontal") {
barl = _cursorMaxX - _cursorMinX;
_parent.cursor._x = (_cursorMinX + ((barl * valor) / maxValor)) - _cursorCenterX;
} else {
barl = _cursorMaxY - _cursorMinY;
_parent.cursor._Y = (_cursorMinY + ((barl * valor) / maxValor)) - _cursorCenterY;
}
};
_updateLimite = function () {
_cursorMinX = (_parent.barra._x + _cursorCenterX) + borda;
_cursorMaxX = ((_parent.barra._x + _parent.barra._width) - _cursorCenterX) - borda;
_cursorMinY = (_parent.barra._y + _cursorCenterY) + borda;
_cursorMaxY = ((_parent.barra._y + _parent.barra._height) - _cursorCenterY) - borda;
};
setOrientacao = function (orient) {
if ((orient == "horizontal") || (orient == "vertical")) {
orientacao = orient;
} else {
trace(("[SSPSlidebar] ERRO: valor para orienta\u00E7\u00E3o inv\u00E1lida (" + orient) + "). Deve ser 'horizontal' ou 'vertical'");
}
};
getOrientacao = function () {
return(orientacao);
};
setMaxValor = function (val) {
if (val >= 1) {
maxValor = val;
if (valor > maxValor) {
setValor(maxValor);
}
} else {
trace(("[SSPSlidebar] ERRO: valor m\u00E1ximo (" + val) + ") deve ser no m\u00EDnimo 1");
}
};
getMaxValor = function () {
return(maxValor);
};
setValor = function (val) {
if ((val >= 0) && (val <= maxValor)) {
valor = val;
_setCurPos(val);
onChange(getValor());
} else {
trace((("[SSPSlidebar] ERRO: valor (" + val) + ") deve ser entre 0 e ") + maxValor);
}
};
getValor = function () {
if (orientacao == "horizontal") {
barl = _cursorMaxX - _cursorMinX;
cur = (_parent.cursor._x + _cursorCenterX) - _cursorMinX;
} else {
barl = _cursorMaxY - _cursorMinY;
cur = (_parent.cursor._y + _cursorCenterY) - _cursorMinY;
}
valor = (cur * maxValor) / barl;
return(Math.round(valor));
};
setBorda = function (val) {
if ((val >= 0) && (val < ((maxValor / 2) - 1))) {
borda = val;
_updateLimite();
} else {
trace(((("[SSPSlidebar] ERRO: valor m\u00E1ximo (" + val) + ") deve ser no m\u00EDnimo 1 e no m\u00E1ximo ") + (maxValor / 2)) - 1);
}
};
getBorda = function () {
return(borda);
};
if (_parent.borda != undefined) {
setBorda(_parent.borda);
}
if (_parent.orientacao == "vertical") {
setOrientacao(_parent.orientacao);
}
if (_parent.maxValor != undefined) {
setMaxValor(_parent.maxValor);
}
if (_parent.valor != undefined) {
setValor(_parent.valor);
}
_updateCursor();
Symbol 434 MovieClip Frame 1
valor = _root.som.getVolume();
maxValor = 100;
orientacao = "horizontal";
Instance of Symbol 431 MovieClip "barra" in Symbol 434 MovieClip Frame 1
/* no clip actions */
Symbol 434 MovieClip Frame 2
stop();
slidebar.onChange = function (val) {
_root.som.setVolume(val);
};
Symbol 435 MovieClip Frame 1
valor = _root.musica.getVolume();
maxValor = 100;
orientacao = "horizontal";
Instance of Symbol 431 MovieClip "barra" in Symbol 435 MovieClip Frame 1
/* no clip actions */
Symbol 435 MovieClip Frame 2
stop();
slidebar.onChange = function (val) {
_root.musica.setVolume(val);
};
Symbol 441 MovieClip Frame 1
function onChange(selected) {
}
indicador._visible = false;
stop();
numeroItens = 2;
_maxNoItens = 20;
selected = 1;
boxLocal = _parent;
curLocal = _parent;
_updateCursor = function () {
cx = boxLocal["box" + selected]._x + (boxLocal["box" + selected]._width / 2);
cy = boxLocal["box" + selected]._y + (boxLocal["box" + selected]._height / 2);
curx = cx - (curLocal.cursor._width / 2);
cury = cy - (curLocal.cursor._height / 2);
curLocal.cursor._x = curx;
curLocal.cursor._y = cury;
};
setSelected = function (num) {
if ((num >= 1) && (num <= numeroItens)) {
selected = num;
_updateCursor();
onChange(num);
} else {
trace(((("[SSPRadioBox] ERRO: n\u00FAmero do item inv\u00E1lido (" + num) + "). Deve ser maior ou igual a 1 e menor ou igual a ") + numeroItens) + ".");
}
};
getSelected = function () {
return(selected);
};
setNumeroItens = function (num) {
if ((num >= 1) && (num <= _maxNoItens)) {
numeroItens = num;
} else {
trace(((("[SSPRadioBox] ERRO: n\u00FAmero de \u00EDtens inv\u00E1lido (" + num) + "). Deve ser maior ou igual a 1 e menor ou igual a ") + _maxNoItens) + ".");
}
};
getNumeroItens = function (num) {
return(numeroItens);
};
if (_parent.numeroItens != undefined) {
numeroItens = _parent.numeroItens;
}
if (_parent.selected != undefined) {
setSelected(_parent.selected);
} else {
setSelected(1);
}
boxLocal.box1.onPress = function () {
setSelected(1);
};
boxLocal.box2.onPress = function () {
setSelected(2);
};
boxLocal.box3.onPress = function () {
setSelected(3);
};
boxLocal.box4.onPress = function () {
setSelected(4);
};
boxLocal.box5.onPress = function () {
setSelected(5);
};
boxLocal.box6.onPress = function () {
setSelected(6);
};
boxLocal.box7.onPress = function () {
setSelected(7);
};
boxLocal.box8.onPress = function () {
setSelected(8);
};
boxLocal.box9.onPress = function () {
setSelected(9);
};
boxLocal.box10.onPress = function () {
setSelected(10);
};
boxLocal.box11.onPress = function () {
setSelected(11);
};
boxLocal.box12.onPress = function () {
setSelected(12);
};
boxLocal.box13.onPress = function () {
setSelected(13);
};
boxLocal.box14.onPress = function () {
setSelected(14);
};
boxLocal.box15.onPress = function () {
setSelected(15);
};
boxLocal.box16.onPress = function () {
setSelected(16);
};
boxLocal.box17.onPress = function () {
setSelected(17);
};
boxLocal.box18.onPress = function () {
setSelected(18);
};
boxLocal.box19.onPress = function () {
setSelected(19);
};
boxLocal.box20.onPress = function () {
setSelected(20);
};
Symbol 451 MovieClip Frame 1
numeroItens = 5;
if (_root.dificuldade == "easiest") {
selected = 1;
} else if (_root.dificuldade == "easy") {
selected = 2;
} else if (_root.dificuldade == "medium") {
selected = 3;
} else if (_root.dificuldade == "hard") {
selected = 4;
} else if (_root.dificuldade == "hardest") {
selected = 5;
} else {
selected = 3;
}
Instance of Symbol 443 MovieClip "box2" in Symbol 451 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 443 MovieClip "box3" in Symbol 451 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 443 MovieClip "box4" in Symbol 451 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 443 MovieClip "box1" in Symbol 451 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 443 MovieClip "box5" in Symbol 451 MovieClip Frame 1
/* no clip actions */
Symbol 451 MovieClip Frame 2
rb.onChange = function (sel) {
if (sel == 1) {
_root.dificuldade = "easiest";
} else if (sel == 2) {
_root.dificuldade = "easy";
} else if (sel == 3) {
_root.dificuldade = "medium";
} else if (sel == 4) {
_root.dificuldade = "hard";
} else if (sel == 5) {
_root.dificuldade = "hardest";
}
};
stop();
Symbol 455 MovieClip Frame 1
numeroItens = 3;
if (_root._quality == "LOW") {
selected = 1;
} else if (_root._quality == "HIGH") {
selected = 3;
} else {
selected = 2;
}
Instance of Symbol 443 MovieClip "box1" in Symbol 455 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 443 MovieClip "box2" in Symbol 455 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 443 MovieClip "box3" in Symbol 455 MovieClip Frame 1
/* no clip actions */
Symbol 455 MovieClip Frame 2
rb.onChange = function (sel) {
if (sel == 1) {
_root._quality = "LOW";
} else if (sel == 3) {
_root._quality = "HIGH";
} else {
_root._quality = "MEDIUM";
}
};
stop();
Symbol 457 Button
on (press) {
_root.saveConfig();
_parent.gotoAndPlay("controls_to_principal");
}
Symbol 463 Button
on (press) {
this.nextFrame();
}
Symbol 472 Button
on (press) {
this.prevFrame();
}
Symbol 489 Button
on (release) {
_parent.btnLow.gotoAndStop("off");
_parent.btnMed.gotoAndStop("off");
_parent.btnHigh.gotoAndStop("off");
gotoAndStop ("on");
_quality = valor;
}
Symbol 491 MovieClip Frame 1
valor = "MEDIUM";
Symbol 491 MovieClip Frame 2
status = "off";
stop();
Symbol 491 MovieClip Frame 3
status = "on";
stop();
Symbol 499 Button
on (press) {
gotoAndPlay ("open");
}
Symbol 504 Button
on (press) {
gotoAndPlay ("click");
}
Symbol 506 MovieClip Frame 1
status = "closed";
stop();
Symbol 506 MovieClip Frame 2
status = "open";
Symbol 506 MovieClip Frame 270
gotoAndPlay ("stop");
Symbol 506 MovieClip Frame 272
_root.game.player.ship.hit("999999999999999");
stop();
Symbol 522 MovieClip Frame 1
stop();
Symbol 522 MovieClip Frame 16
stop();
Symbol 528 MovieClip Frame 1
stop();
Symbol 532 MovieClip Frame 1
stop();
Symbol 535 MovieClip Frame 1
stop();
Symbol 536 MovieClip Frame 2
btnLow.valor = "LOW";
btnMed.valor = "MEDIUM";
btnHigh.valor = "HIGH";
if (_quality == "LOW") {
btnLow.gotoAndStop("on");
} else if (_quality == "MEDIUM") {
btnMed.gotoAndStop("on");
} else {
btnHigh.gotoAndStop("on");
}
Symbol 565 Button
on (release) {
setSelect(1);
if (cur == sel) {
setCurrentLvl(_root.playData.posLvlBeam);
setSelectLvl(_root.playData.posLvlBeam);
_parent.setCostBeam(0);
} else {
setCurrentLvl(0);
setSelectLvl(1);
_parent.setCostBeam(costBeam[sel][selLvl]);
}
_parent.changeBeam(("beam" + sel) + selLvl);
}
Symbol 573 Button
on (release) {
setSelect(2);
if (cur == sel) {
setCurrentLvl(_root.playData.posLvlBeam);
setSelectLvl(_root.playData.posLvlBeam);
_parent.setCostBeam(0);
} else {
setCurrentLvl(0);
setSelectLvl(1);
_parent.setCostBeam(costBeam[sel][selLvl]);
}
_parent.changeBeam(("beam" + sel) + selLvl);
}
Symbol 580 Button
on (release) {
setSelect(3);
if (cur == sel) {
setCurrentLvl(_root.playData.posLvlBeam);
setSelectLvl(_root.playData.posLvlBeam);
_parent.setCostBeam(0);
} else {
setCurrentLvl(0);
setSelectLvl(1);
_parent.setCostBeam(costBeam[sel][selLvl]);
}
_parent.changeBeam(("beam" + sel) + selLvl);
}
Symbol 585 Button
on (release) {
setSelect(4);
if (cur == sel) {
setCurrentLvl(_root.playData.posLvlBeam);
setSelectLvl(_root.playData.posLvlBeam);
_parent.setCostBeam(0);
} else {
setCurrentLvl(0);
setSelectLvl(1);
_parent.setCostBeam(costBeam[sel][selLvl]);
}
_parent.changeBeam(("beam" + sel) + selLvl);
}
Symbol 591 Button
on (release) {
setSelect(5);
if (cur == sel) {
setCurrentLvl(_root.playData.posLvlBeam);
setSelectLvl(_root.playData.posLvlBeam);
_parent.setCostBeam(0);
} else {
setCurrentLvl(0);
setSelectLvl(1);
_parent.setCostBeam(costBeam[sel][selLvl]);
}
_parent.changeBeam(("beam" + sel) + selLvl);
}
Symbol 657 Button
on (release) {
setSelectLvl(1);
if (curLvl == selLvl) {
_parent.setCostBeam(0);
} else {
_parent.setCostBeam(costBeam[sel][selLvl]);
}
_parent.changeBeam(("beam" + sel) + selLvl);
}
Symbol 661 Button
on (release) {
setSelectLvl(2);
if (curLvl == selLvl) {
_parent.setCostBeam(0);
} else {
_parent.setCostBeam(costBeam[sel][selLvl]);
}
_parent.changeBeam(("beam" + sel) + selLvl);
}
Symbol 665 Button
on (release) {
setSelectLvl(3);
if (curLvl == selLvl) {
_parent.setCostBeam(0);
} else {
_parent.setCostBeam(costBeam[sel][selLvl]);
}
_parent.changeBeam(("beam" + sel) + selLvl);
}
Symbol 668 Button
on (release) {
setSelectLvl(4);
if (curLvl == selLvl) {
_parent.setCostBeam(0);
} else {
_parent.setCostBeam(costBeam[sel][selLvl]);
}
_parent.changeBeam(("beam" + sel) + selLvl);
}
Symbol 672 Button
on (release) {
setSelectLvl(5);
if (curLvl == selLvl) {
_parent.setCostBeam(0);
} else {
_parent.setCostBeam(costBeam[sel][selLvl]);
}
_parent.changeBeam(("beam" + sel) + selLvl);
}
Symbol 702 Button
on (release) {
setSelect(4);
_parent.changeShip("ship" + sel);
if (cur == sel) {
_parent.setCostShip(0);
} else {
_parent.setCostShip(2000);
}
}
Symbol 706 Button
on (release) {
setSelect(5);
_parent.changeShip("ship" + sel);
if (cur == sel) {
_parent.setCostShip(0);
} else {
_parent.setCostShip(4000);
}
}
Symbol 711 Button
on (release) {
_parent.changeShip("shipA");
if (cur == 1) {
_parent.setCostShip(0);
} else {
_parent.setCostShip(250);
}
setSelect(1);
}
Symbol 715 Button
on (release) {
_parent.changeShip("shipB");
if (cur == 2) {
_parent.setCostShip(0);
} else {
_parent.setCostShip(500);
}
setSelect(2);
}
Symbol 719 Button
on (release) {
setSelect(3);
_parent.changeShip("ship" + sel);
if (cur == sel) {
_parent.setCostShip(0);
} else {
_parent.setCostShip(1000);
}
}
Symbol 739 MovieClip Frame 1
stop();
Symbol 740 Button
on (press) {
_root.saveConfig();
_parent.gotoAndPlay("credits_to_principal");
}
Symbol 749 Button
on (release) {
getURL ("http://www.flashkit.com", "_self");
}
Symbol 753 Button
on (release) {
_root.changeMusica("musica- title");
}
Symbol 756 Button
on (release) {
_root.changeMusica("musica- shop");
}
Symbol 759 Button
on (release) {
_root.changeMusica("musica- boss");
}
Symbol 762 Button
on (release) {
if (_root.playData.level > 4) {
_root.changeMusica("musica- final boss");
}
}
Symbol 765 Button
on (release) {
_root.changeMusica("musica- fase 1");
}
Symbol 768 Button
on (release) {
_root.changeMusica("musica- fase 2");
}
Symbol 770 Button
on (release) {
_root.changeMusica("musica- fase 3");
}
Symbol 773 Button
on (release) {
_root.changeMusica("musica- fase 4");
}
Symbol 775 Button
on (release) {
_root.changeMusica("musica- bonus");
}
Symbol 784 MovieClip Frame 1
stop();
Symbol 784 MovieClip Frame 10
stop();
Symbol 784 MovieClip Frame 20
gotoAndStop ("principal");
Symbol 784 MovieClip Frame 30
stop();
Symbol 784 MovieClip Frame 40
gotoAndStop ("principal");
Symbol 784 MovieClip Frame 50
stop();
Symbol 784 MovieClip Frame 60
gotoAndStop ("principal");
Symbol 784 MovieClip Frame 70
stop();
Symbol 784 MovieClip Frame 80
gotoAndStop ("principal");
Symbol 789 Button
on (press) {
endMovie();
}
Symbol 800 MovieClip Frame 450
stop();
Symbol 881 MovieClip Frame 467
stop();
Symbol 884 MovieClip Frame 1
_root.changeMusica("musica- fase 1");
Symbol 884 MovieClip Frame 2915
_parent.endMovie();
Symbol 914 MovieClip Frame 1
_root.changeMusica("musica- title");
Symbol 914 MovieClip Frame 1574
stop();
Symbol 914 MovieClip Frame 1575
Symbol 915 MovieClip Frame 8
stop();
this.removeMovieClip();
Symbol 919 MovieClip Frame 5
cnt = 0;
Symbol 919 MovieClip Frame 9
cnt++;
if (cnt < 6) {
gotoAndPlay ("blow");
}
Symbol 919 MovieClip Frame 10
stop();
Symbol 920 MovieClip Frame 192
stop();
Symbol 929 MovieClip Frame 126
stop();
Symbol 971 MovieClip Frame 8
stop();
this.removeMovieClip();
Symbol 983 MovieClip Frame 13
stop();
Symbol 987 MovieClip Frame 1
_root.changeMusica("musica- fase 1");
Symbol 987 MovieClip Frame 1615
_parent.endMovie();
stop();
Symbol 1012 MovieClip Frame 1
_root.changeMusica("musica- fase 1");
Symbol 1012 MovieClip Frame 901
_parent.endMovie();
stop();
Symbol 1016 MovieClip Frame 1
_root.changeMusica("musica- fase 1");
Symbol 1016 MovieClip Frame 341
_parent.endMovie();
stop();
Symbol 1017 MovieClip Frame 1
quality = _root._quality;
_root._quality = "HIGH";
moviePos = _root.moviePos;
gotoAndStop(moviePos);
endMovie = function () {
_root._quality = quality;
if (moviePos == "end") {
_root.gotoAndStop("menu");
} else {
_root.gotoAndStop("shop");
}
};
stop();
Symbol 1018 MovieClip Frame 1
hp = 50;
go = function (where) {
if ((where != _parent.statusX) && (where != _parent.statusY)) {
if ((where == "left") || (where == "right")) {
gotoAndPlay(where);
tMoveY.start();
} else if ((where == "up") || (where == "down")) {
fireMove.gotoAndPlay(where);
} else if (where == "stopX") {
gotoAndPlay ("stop");
} else if (where == "stopY") {
fireMove.gotoAndPlay("stop");
}
}
};
Symbol 1018 MovieClip Frame 4
stop();
Symbol 1018 MovieClip Frame 8
stop();
Symbol 1018 MovieClip Frame 12
stop();
Symbol 1018 MovieClip Frame 110
stop();
Symbol 1021 MovieClip Frame 2
cnt = 0;
times = 10;
shake = function () {
_parent.moveX = _parent.moveX + ((2 * Math.random()) - 1);
_parent.moveY = _parent.moveY + ((2 * Math.random()) - 1);
};
setTimes = function (valor) {
times = valor;
if (times > 10) {
times = 10;
}
};
stop();
Symbol 1021 MovieClip Frame 3
shake();
cnt++;
Symbol 1021 MovieClip Frame 4
cnt++;
shake();
if ((cnt < times) && (cnt < 20)) {
gotoAndPlay ("shake");
}
Symbol 1021 MovieClip Frame 5
stop();
cnt = 0;
Symbol 1025 MovieClip Frame 120
stop();
Symbol 1026 MovieClip Frame 1
beamSpecial._visible = false;
maxShld = 1;
maxHp = 1;
hp = maxHp;
shld = maxShld;
atq = 1;
spd = 3;
turbo = 0;
acc = 0.3;
spddec = acc / 8;
ene = 10;
curEne = 10;
recharge_rate = 1;
recharge_shield = 1;
statusX = "stopX";
statusY = "stopY";
moveX = 0;
moveY = 0;
Symbol 1026 MovieClip Frame 5
if (status == "demo") {
gotoAndPlay ("demo");
} else {
gotoAndPlay ("invulnerable");
}
statusShield = "off";
goX = function (where) {
if (status != "blow") {
shipSkin.go(where);
droneL.go(where);
droneR.go(where);
statusX = where;
if (where != "stopX") {
tMoveX.reset();
}
}
};
goY = function (where) {
if (status != "blow") {
shipSkin.go(where);
droneL.go(where);
droneR.go(where);
statusY = where;
if (where != "stopY") {
tMoveY.reset();
}
}
};
useEnergy = function (qtde) {
curEne = curEne - qtde;
val = 0;
if (curEne > ene) {
curEne = ene;
}
_parent._parent.updateEnergy();
};
fire = function () {
if (curEne > 0) {
if (_parent.shot.canShot) {
_parent.shot.fire();
useEnergy(_parent.shot.genCost);
}
if ((_parent.p_drone != "none") && (_parent.droneShot.canShot)) {
_parent.droneShot.fire();
useEnergy(_parent.droneShot.genCost);
}
}
};
fireSpecial = function () {
if (curEne > 0) {
if (_parent.shotSpecial.canShot) {
trace("[ship.5.fireSpecial] asking special to fire");
_parent.shotSpecial.fire();
useEnergy(_parent.shotSpecial.genCost);
}
}
};
fireMissile = function () {
_parent.shotMissile.fire();
_parent._parent.updatePnlWeapon();
};
_goLeft = function () {
a = acc;
if (turbo > 0) {
a = 10;
}
goX("left");
moveX = moveX - a;
if (moveX < (-(spd + turbo))) {
moveX = -(spd + turbo);
}
};
_goRight = function () {
a = acc;
if (turbo > 0) {
a = 10;
}
goX("right");
moveX = moveX + a;
if (moveX > (spd + turbo)) {
moveX = spd + turbo;
}
};
_goUp = function () {
a = acc;
if (turbo > 0) {
a = 10;
}
goY("up");
moveY = moveY - a;
if (moveY < (-(spd + turbo))) {
moveY = -(spd + turbo);
}
};
_goDown = function () {
a = acc;
if (turbo > 0) {
a = 10;
}
goY("down");
moveY = moveY + a;
if (moveY > (spd + turbo)) {
moveY = spd + turbo;
}
};
onEnterFrame = function () {
if ((status != "blow") && (!_parent.pauseControl)) {
if (Key.isDown(38)) {
_goUp();
} else if (Key.isDown(40)) {
_goDown();
}
if (Key.isDown(39)) {
_goRight();
} else if (Key.isDown(37)) {
_goLeft();
}
if (Key.isDown(90)) {
fire();
}
if (Key.isDown(88)) {
fireMissile();
}
if (((Key.isDown(67) && (_root.playData.specialEvasao == true)) && (_root.game.special > 0)) && (status != "invulnerable")) {
this.gotoAndPlay("invulnerable");
_root.game.useSpecial();
}
if (Key.isDown(83) && (_root.playData.specialWeapon == true)) {
fireSpecial();
}
if ((Key.isDown(86) && (_root.playData.specialAliados == true)) && (_root.game.special > 0)) {
_root.game.special2();
}
if ((Key.isDown(66) && (_root.playData.specialAfterburn == true)) && (_root.game.special > 0)) {
_root.game.special3();
}
if (Key.isDown(27)) {
}
} else if (Key.isDown(90)) {
_root.game.dialog.stopDialog();
}
};
decreaseMove = function () {
if (moveX > 0) {
moveX = moveX - (spddec + (turbo / 10));
if (moveX < 0) {
moveX = 0;
}
} else if (moveX < 0) {
moveX = moveX + (spddec + (turbo / 10));
if (moveX > 0) {
moveX = 0;
}
}
if (moveY > 0) {
moveY = moveY - (spddec + (turbo / 10));
if (moveY < 0) {
moveY = 0;
}
} else if (moveY < 0) {
moveY = moveY + (spddec + (turbo / 10));
if (moveY > 0) {
moveY = 0;
}
}
if (turbo > 0) {
turbo = turbo - 0.01;
if (turbo < 0) {
turbo = 0;
}
}
};
checkHit = function () {
if ((status != "blow") && (status != "invulnerable")) {
objeto = null;
lp = 0;
while (lp < _parent._parent.noEnemies) {
objeto = _parent._parent.enemies[lp];
targethit = objeto.getHit();
if (objeto.type == "mina") {
if (shipSkin.hit.hitTest(objeto.getHitMine())) {
objeto.activate();
}
}
if ((objeto != null) && (objeto.hp >= 0)) {
if ((objeto.type == "preciseHit") && ((((shipSkin.hit.hitTest(targethit.hit1) || (shipSkin.hit.hitTest(targethit.hit2))) || (shipSkin.hit.hitTest(targethit.hit3))) || (shipSkin.hit.hitTest(targethit.hit4))) || (shipSkin.hit.hitTest(targethit.hit5)))) {
damage = (hp + shld) + 1;
_parent._parent.hitEnemy(lp, enemyDamage);
hit(damage);
} else if (shipSkin.hit.hitTest(targethit)) {
damage = (hp + shld) + 1;
if (objeto.type == "mina") {
damage = objeto.hp * 10;
} else if (objeto.hp < damage) {
damage = objeto.hp + 1;
}
damage = damage * 2;
enemyDamage = damage;
_parent._parent.hitEnemy(lp, enemyDamage);
hit(damage);
}
}
lp++;
}
lp = 0;
while (lp < _parent._parent.noShots) {
objeto = _parent._parent.eShots[lp];
if ((objeto != null) && (objeto.status != "blow")) {
damage = objeto.damage;
if (objeto.type == "rotatedBeam") {
hitObj = objeto.beam;
if ((((shipSkin.hit.hitTest(objeto.hit1) || (shipSkin.hit.hitTest(objeto.hit2))) || (shipSkin.hit.hitTest(objeto.hit3))) || (shipSkin.hit.hitTest(objeto.hit4))) || (shipSkin.hit.hitTest(objeto.hit5))) {
hit(damage);
objeto.hitShot();
}
} else if (shipSkin.hit.hitTest(objeto)) {
hit(damage);
objeto.hitShot();
}
}
lp++;
}
lp = 0;
while (lp < _root.game.noCoins) {
objeto = _root.game.moedas[lp];
if (((objeto != null) && (shipSkin.hit.hitTest(objeto))) && (objeto.status != "got")) {
_root.game.addMoney(objeto.money);
objeto.get();
}
lp++;
}
}
};
hit = function (damage) {
if (_root.dificuldade != "medium") {
if (_root.dificuldade == "easy") {
damage = damage / 2;
} else if (_root.dificuldade == "hard") {
damage = damage * 2;
} else if (_root.dificuldade == "hardest") {
damage = damage * 4;
} else if (_root.dificuldade == "easiest") {
damage = damage / 4;
}
}
if ((!damage.isNaN()) && (damage > 0)) {
shake.setTimes(damage);
shake.gotoAndPlay("shake");
if (hp > 0) {
dmg = damage;
if (shld > 0) {
shld = shld - dmg;
if (statusShield != "on") {
shipSkin.shield.gotoAndPlay("hit");
}
if (shld < 0) {
dmg = -shld;
shld = 0;
} else {
dmg = 0;
}
_parent._parent.updateShield();
}
if (dmg > 0) {
hp = hp - damage;
if (hp <= 0) {
hp = 0;
blow();
}
_parent._parent.updateLife();
}
}
}
};
blow = function () {
status = "blow";
shipSkin.gotoAndPlay("blow");
_parent._parent.die();
};
tMoveX.OnTimer = function () {
goX("stopX");
};
tMoveY.OnTimer = function () {
goY("stopY");
};
changeShield = function (val) {
shld = shld + val;
if (shld > maxShld) {
shld = maxShld;
} else if (shld < 0) {
dmg = -shld;
shld = 0;
hit(dmg);
}
_parent._parent.updateShield();
};
tRecharge.OnTimer = function () {
if (status != "blow") {
if ((shld < maxShld) && (curEne > 0)) {
changeShield(recharge_shield);
useEnergy(recharge_shield * 2);
}
useEnergy(-recharge_rate);
}
};
tMoveX.execute("frame", 5);
tMoveY.execute("frame", 5);
tRecharge.execute("frame", 6);
Symbol 1026 MovieClip Frame 6
status = "invulnerable";
play();
Symbol 1026 MovieClip Frame 124
status = "normal";
Symbol 1026 MovieClip Frame 125
checkHit();
Symbol 1026 MovieClip Frame 129
checkHit();
if (status == "normal") {
gotoAndPlay ("vulnerable");
} else if (status == "invulnerable") {
gotoAndPlay ("invulnerable");
}
Symbol 1026 MovieClip Frame 132
gotoAndPlay ("vulnerable");
Symbol 1026 MovieClip Frame 144
gotoAndPlay ("reviveB");
Symbol 1026 MovieClip Frame 214
hp = maxHp;
maxShld = shld;
this._y = 600;
this._x = 400;
moveX = 0;
moveY = -spd;
cnt = 0;
shipSkin.gotoAndPlay("stop");
Symbol 1026 MovieClip Frame 215
cnt++;
if (_y > 500) {
moveY = -spd;
moveX = 0;
}
Symbol 1026 MovieClip Frame 216
cnt++;
if (_y > 500) {
moveY = -spd;
moveX = 0;
}
if (cnt > 50) {
gotoAndPlay ("invulnerable");
status = "invulnerable";
}
_parent._parent.setShield(99);
_parent._parent.setLife(99);
_parent._parent.setEnergy(99);
Symbol 1026 MovieClip Frame 305
status = "normal";
gotoAndPlay ("vulnerable");
Symbol 1026 MovieClip Frame 306
demoCenterX = _x;
posAcc = -1;
demoAcc = -acc;
demoStatus = "left";
demoShot = "beam";
demoFireMissile = function () {
_parent.shotMissile.qtde = 99;
fireMissile();
};
demoplay = function () {
if (demoShot == "beam") {
fire();
}
if (demoShot == "missile") {
demoFireMissile();
}
demoAcc = posAcc * acc;
moveX = moveX + demoAcc;
goX(demoStatus);
if (moveX > spd) {
moveX = spd;
} else if ((-moveX) > spd) {
moveX = -spd;
}
if ((_x + moveX) > (demoCenterX + 100)) {
posAcc = -1;
demoStatus = "left";
} else if ((_x + moveX) < (demoCenterX - 100)) {
posAcc = 1;
demoStatus = "right";
}
};
Symbol 1026 MovieClip Frame 307
demoplay();
Symbol 1026 MovieClip Frame 308
demoplay();
Symbol 1026 MovieClip Frame 309
demoplay();
Symbol 1026 MovieClip Frame 310
demoplay();
Symbol 1026 MovieClip Frame 311
demoplay();
Symbol 1026 MovieClip Frame 312
demoplay();
Symbol 1026 MovieClip Frame 313
demoplay();
Symbol 1026 MovieClip Frame 314
demoplay();
Symbol 1026 MovieClip Frame 315
demoplay();
Symbol 1026 MovieClip Frame 316
demoplay();
Symbol 1026 MovieClip Frame 317
demoplay();
gotoAndPlay ("demoB");
Symbol 1027 MovieClip Frame 1
life = 0;
p_chassi = "";
p_beam = "";
p_missile = "";
p_drone = "";
score = 0;
money = 0;
side = "player";
pauseControl = false;
hp = ship.shipSkin.hp;
shot._visible = false;
ptBoundsTL = new Object();
ptBoundsTL.x = 10;
ptBoundsTL.y = 20;
globalToLocal(ptBoundsTL);
ptBoundsBR = new Object();
ptBoundsBR.x = 680;
ptBoundsBR.y = 630;
globalToLocal(ptBoundsBR);
createShip = function (chassi, beam, missile, drone, shield, speed, acc, energy, recharge) {
setChassi(chassi);
setBeam(beam);
setMissile(missile);
setDrone(drone);
setShield(shield);
setEngine(speed, acc);
setGenerator(energy, recharge);
};
restoreShip = function () {
createShip(_root.playData.chassi, _root.playData.beam, _root.playData.missile, _root.playData.drone, _root.playData.shield, _root.playData.spd, _root.playData.acc, _root.playData.ene, _root.playData.rechar);
score = _root.playData.score;
money = _root.playData.money;
};
updatePlayer = function () {
_root.playData.chassi = getChassi();
_root.playData.beam = getBeam();
_root.playData.missile = getMissile();
_root.playData.drone = getDrone();
_root.playData.shield = getShield();
_root.playData.spd = getSpeed();
_root.playData.acc = getAcceleration();
_root.playData.ene = getEnergy();
_root.playData.rechar = getRechargeRate();
_root.playData.score = score;
_root.playData.money = money;
};
setChassi = function (chassi) {
p_chassi = chassi;
ship.attachMovie(chassi, "shipSkin", 50);
ship.shipSkin._y = ship.shipSkin._y - 10;
ship.hp = ship.shipSkin.hp;
ship.maxHp = ship.shipSkin.hp;
};
getChassi = function () {
return(p_chassi);
};
setBeam = function (beam) {
p_beam = beam;
attachMovie(beam, "shot", 51);
};
getBeam = function () {
return(p_beam);
};
setMissile = function (missile) {
p_missile = missile;
attachMovie(missile, "shotMissile", 53);
};
getMissile = function () {
return(p_missile);
};
setShield = function (shield) {
ship.maxShld = shield;
ship.shld = shield;
ship.recharge_shield = shield / 250;
};
getShield = function () {
return(ship.maxShld);
};
setEngine = function (speed, aceleration) {
ship.spd = speed;
ship.acc = aceleration;
ship.spddec = aceleration / 8;
ship.moveX = 0;
ship.moveY = 0;
};
getSpeed = function () {
return(ship.spd);
};
getAcceleration = function () {
return(ship.acc);
};
setGenerator = function (energy, recharge) {
ship.ene = energy;
ship.curEne = energy;
ship.recharge_rate = recharge;
};
getEnergy = function () {
return(ship.ene);
};
getRechargeRate = function () {
return(ship.recharge_rate);
};
setDrone = function (name) {
p_drone = name;
if (name == "none") {
ship.droneL._visible = false;
ship.droneR._visible = false;
removeMovieClip(droneShot);
} else {
ship.droneL._visible = true;
ship.droneR._visible = true;
attachMovie(name, "droneShot", 52);
}
};
getDrone = function () {
return(p_drone);
};
Symbol 1027 MovieClip Frame 2
tMove.OnTimer = function () {
px = ship._x + ship.moveX;
py = ship._y + ship.moveY;
spd = ship.acc + ship.turbo;
dist = 5;
if (px > ptBoundsBR.x) {
ship.moveX = -spd;
} else if (px < ptBoundsTL.x) {
ship.moveX = spd;
}
if (py > ptBoundsBR.y) {
ship.moveY = -spd;
} else if (py < ptBoundsTL.y) {
ship.moveY = spd;
}
px = ship._x + ship.moveX;
py = ship._y + ship.moveY;
ship._x = px;
ship._y = py;
if (ship.status != "demo") {
}
ship.decreaseMove();
};
shot.side = "player";
tMove.execute("frame", 1);
restoreShip();
Symbol 1027 MovieClip Frame 3
stop();
Symbol 1040 Button
on (release) {
setSelect(3);
_parent.setMissile("missile" + sel);
if (cur == sel) {
_parent.setCostMissile(0);
} else {
_parent.setCostMissile(2000);
}
}
Symbol 1047 Button
on (release) {
setSelect(1);
_parent.setMissile("missile" + sel);
if (cur == sel) {
_parent.setCostMissile(0);
} else {
_parent.setCostMissile(1500);
}
}
Symbol 1053 Button
on (release) {
setSelect(2);
_parent.setMissile("missile" + sel);
if (cur == sel) {
_parent.setCostMissile(0);
} else {
_parent.setCostMissile(2000);
}
}
Symbol 1058 Button
on (release) {
setSelect(0);
_parent.setMissile("none");
_parent.setCostMissile(0);
}
Symbol 1065 Button
on (release) {
setSelect(3);
_parent.setShield(2500);
if (cur == sel) {
_parent.setCostShield(0);
} else {
_parent.setCostShield(2000);
}
}
Symbol 1071 Button
on (release) {
setSelect(4);
_parent.setShield(1000);
if (cur == sel) {
_parent.setCostShield(0);
} else {
_parent.setCostShield(4000);
}
}
Symbol 1079 Button
on (release) {
_parent.setShield(100);
if (cur == 1) {
_parent.setCostShield(0);
} else {
_parent.setCostShield(500);
}
setSelect(1);
}
Symbol 1083 Button
on (release) {
_parent.setShield(0);
_parent.setCostShield(0);
setSelect(0);
}
Symbol 1090 Button
on (release) {
_parent.setShield(200);
if (cur == 2) {
_parent.setCostShield(0);
} else {
_parent.setCostShield(1000);
}
setSelect(2);
}
Symbol 1099 Button
on (release) {
_parent.setEngine(4, 0.6);
if (cur == 1) {
_parent.setCostEngine(0);
} else {
_parent.setCostEngine(250);
}
setSelect(1);
}
Symbol 1106 Button
on (release) {
_parent.setEngine(5.5, 1.2);
if (cur == 2) {
_parent.setCostEngine(0);
} else {
_parent.setCostEngine(500);
}
setSelect(2);
}
Symbol 1113 Button
on (release) {
setSelect(3);
_parent.setEngine(7, 2.4);
if (cur == sel) {
_parent.setCostEngine(0);
} else {
_parent.setCostEngine(1000);
}
}
Symbol 1120 Button
on (release) {
setSelect(4);
_parent.setEngine(8.5, 4.8);
if (cur == sel) {
_parent.setCostEngine(0);
} else {
_parent.setCostEngine(2000);
}
}
Symbol 1128 Button
on (release) {
setSelect(5);
_parent.setEngine(10, 10);
if (cur == 5) {
_parent.setCostEngine(0);
} else {
_parent.setCostEngine(5000);
}
}
Symbol 1135 Button
on (release) {
_parent.setGenerator(100, 1);
if (cur == 1) {
_parent.setCostGenerator(0);
} else {
_parent.setCostGenerator(250);
}
setSelect(1);
}
Symbol 1142 Button
on (release) {
_parent.setGenerator(200, 3);
if (cur == 2) {
_parent.setCostGenerator(0);
} else {
_parent.setCostGenerator(500);
}
setSelect(2);
}
Symbol 1148 Button
on (release) {
setSelect(3);
_parent.setGenerator(500, 9);
if (cur == sel) {
_parent.setCostGenerator(0);
} else {
_parent.setCostGenerator(1000);
}
}
Symbol 1154 Button
on (release) {
setSelect(4);
_parent.setGenerator(1000, 27);
if (cur == sel) {
_parent.setCostGenerator(0);
} else {
_parent.setCostGenerator(2000);
}
}
Symbol 1160 Button
on (release) {
setSelect(5);
_parent.setGenerator(2000, 90);
if (cur == sel) {
_parent.setCostGenerator(0);
} else {
_parent.setCostGenerator(4000);
}
}
Symbol 1164 Button
on (release) {
_parent.setDrone("shotDrone1");
if (cur == 1) {
_parent.setCostDrone(0);
} else {
_parent.setCostDrone(1000);
}
setSelect(1);
}
Symbol 1168 Button
on (release) {
_parent.setDrone("none");
_parent.setCostDrone(0);
setSelect(0);
}
Symbol 1172 Button
on (release) {
_parent.setDrone("shotDrone2");
if (cur == 2) {
_parent.setCostDrone(0);
} else {
_parent.setCostDrone(1000);
}
setSelect(2);
}
Symbol 1173 MovieClip Frame 1
cur = 0;
sel = 0;
curLvl = 0;
selLvl = 0;
selName = "";
posName = "";
costBeam = new Array();
costBeam[1] = new Array();
costBeam[2] = new Array();
costBeam[3] = new Array();
costBeam[4] = new Array();
costBeam[5] = new Array();
costBeam[1][1] = 120;
costBeam[1][2] = 250;
costBeam[1][3] = 500;
costBeam[1][4] = 1000;
costBeam[1][5] = 2000;
costBeam[2][1] = 60;
costBeam[2][2] = 120;
costBeam[2][3] = 250;
costBeam[2][4] = 500;
costBeam[2][5] = 1000;
costBeam[3][1] = 60;
costBeam[3][2] = 120;
costBeam[3][3] = 250;
costBeam[3][4] = 500;
costBeam[3][5] = 1500;
costBeam[4][1] = 80;
costBeam[4][2] = 150;
costBeam[4][3] = 300;
costBeam[4][4] = 600;
costBeam[4][5] = 1200;
costBeam[5][1] = 80;
costBeam[5][2] = 150;
costBeam[5][3] = 300;
costBeam[5][4] = 600;
costBeam[5][5] = 1200;
setSelColor = function (selection, color) {
if (color != "none") {
corBtn = new Color(this[selection]);
corBtn.setRGB(color);
this[selection]._visible = true;
} else {
this[selection]._visible = false;
}
};
resetSel = function () {
lp = 0;
while (lp < 10) {
setSelColor(selName + lp, "none");
lp++;
}
};
resetSelLvl = function () {
lp = 0;
while (lp < 6) {
setSelColor((selName + "Lvl") + lp, "none");
lp++;
}
};
setCurrent = function (pos) {
setSelColor(selName + cur, "none");
setSelColor(selName + pos, 16776960);
cur = pos;
};
setCurrentLvl = function (pos) {
setSelColor((selName + "Lvl") + curLvl, "none");
setSelColor((selName + "Lvl") + pos, 16776960);
curLvl = pos;
};
setSelect = function (pos) {
deselect();
if (cur != pos) {
setSelColor(selName + pos, 8947967);
}
sel = pos;
_parent[posName] = pos;
};
setSelectLvl = function (pos) {
deselectLvl();
if (curLvl != pos) {
setSelColor((selName + "Lvl") + pos, 8947967);
}
selLvl = pos;
_parent.posLvlBeam = pos;
};
deselect = function () {
if (cur != sel) {
setSelColor(selName + sel, "none");
}
};
deselectLvl = function () {
if (curLvl != selLvl) {
setSelColor((selName + "Lvl") + selLvl, "none");
}
};
Symbol 1173 MovieClip Frame 2
stop();
selName = "sShip";
posName = "posChassi";
_parent.player.ship.demoShot = "beam";
resetSel();
setCurrent(_root.playData.posChassi);
setSelect(_parent.posChassi);
Symbol 1173 MovieClip Frame 3
selName = "sBeam";
posName = "posBeam";
_parent.player.ship.demoShot = "beam";
resetSel();
setCurrent(_root.playData.posBeam);
setSelect(_parent.posBeam);
resetSelLvl();
if (sel == cur) {
setCurrentLvl(_root.playData.posLvlBeam);
}
setSelectLvl(_parent.posLvlBeam);
Symbol 1173 MovieClip Frame 4
selName = "sMissile";
posName = "posMissile";
_parent.player.ship.demoShot = "missile";
resetSel();
setCurrent(_root.playData.posMissile);
setSelect(_parent.posMissile);
Symbol 1173 MovieClip Frame 5
selName = "sShield";
posName = "posShield";
_parent.player.ship.demoShot = "beam";
resetSel();
setCurrent(_root.playData.posShield);
setSelect(_parent.posShield);
Symbol 1173 MovieClip Frame 6
selName = "sPropulsor";
posName = "posPropulsor";
_parent.player.ship.demoShot = "beam";
resetSel();
setCurrent(_root.playData.posPropulsor);
setSelect(_parent.posPropulsor);
Symbol 1173 MovieClip Frame 7
selName = "sGenerator";
posName = "posGenerator";
_parent.player.ship.demoShot = "beam";
resetSel();
setCurrent(_root.playData.posGenerator);
setSelect(_parent.posGenerator);
Symbol 1173 MovieClip Frame 8
selName = "sDrone";
posName = "posDrone";
_parent.player.ship.demoShot = "beam";
resetSel();
setCurrent(_root.playData.posDrone);
setSelect(_parent.posDrone);
Symbol 1173 MovieClip Frame 20
stop();
Symbol 1175 Button
on (release) {
barSide.gotoAndStop("chassi");
}
Symbol 1176 Button
on (release) {
barSide.gotoAndStop("weapon1");
}
Symbol 1177 Button
on (release) {
barSide.gotoAndStop("weapon2");
}
Symbol 1178 Button
on (release) {
barSide.gotoAndStop("shield");
}
Symbol 1179 Button
on (release) {
barSide.gotoAndStop("propulsor");
}
Symbol 1180 Button
on (release) {
barSide.gotoAndStop("energy");
}
Symbol 1181 Button
on (release) {
barSide.gotoAndStop("drone");
}
Symbol 1182 Button
on (release) {
if (_root.playData.money < getTotalCost()) {
window_noFund._visible = true;
} else {
_root.backupPlayer();
_root.saveConfig();
updatePlayer();
_root.playData.money = _root.playData.money - getTotalCost();
_root.gotoAndPlay("map");
}
}
Symbol 1183 Button
on (release) {
player.restoreShip();
resetCost();
barSide.deselect();
barSide.sel = barSide.cur;
}
Symbol 1184 Button
on (release) {
barSide.gotoAndPlay("config");
}
Symbol 1185 Button
on (release) {
window_exitConfirm._visible = true;
}
Symbol 1192 Button
on (release) {
this._visible = false;
}
Symbol 1197 Button
on (release) {
_root.gotoAndStop("menu");
}
Symbol 1198 Button
on (release) {
this._visible = false;
}
Symbol 1200 MovieClip Frame 1
window_noFund._visible = false;
window_exitConfirm._visible = false;
barBotton.txtMoney = _root.playData.money;
resetCost = function () {
costShip = 0;
costBeam = 0;
costMissile = 0;
costShield = 0;
costEngine = 0;
costGenerator = 0;
costDrone = 0;
updateCost();
posChassi = _root.playData.posChassi;
posBeam = _root.playData.posBeam;
posLvlBeam = _root.playData.posLvlBeam;
posMissile = _root.playData.posMissile;
posDrone = _root.playData.posDrone;
posShield = _root.playData.posShield;
posGenerator = _root.playData.posGenerator;
posPropulsor = _root.playData.posPropulsor;
};
updatePlayer = function () {
_root.playData.posChassi = posChassi;
_root.playData.posBeam = posBeam;
_root.playData.posLvlBeam = posLvlBeam;
_root.playData.posMissile = posMissile;
_root.playData.posDrone = posDrone;
_root.playData.posShield = posShield;
_root.playData.posGenerator = posGenerator;
_root.playData.posPropulsor = posPropulsor;
player.updatePlayer();
};
setCostShip = function (val) {
costShip = val;
updateCost();
};
setCostBeam = function (val) {
costBeam = val;
updateCost();
};
setCostMissile = function (val) {
costMissile = val;
updateCost();
};
setCostShield = function (val) {
costShield = val;
updateCost();
};
setCostEngine = function (val) {
costEngine = val;
updateCost();
};
setCostGenerator = function (val) {
costGenerator = val;
updateCost();
};
setCostDrone = function (val) {
costDrone = val;
updateCost();
};
getTotalCost = function () {
result = (((((costShip + costBeam) + costMissile) + costShield) + costEngine) + costGenerator) + costDrone;
return(result);
};
updateCost = function () {
result = getTotalCost();
barBotton.txtCost = result;
corTxt = new Color(barBotton.txtColor);
if (result > _root.playData.money) {
corTxt.setRGB(16746496);
} else {
corTxt.setRGB(16776960);
}
};
changeShip = function (shipName) {
player.setChassi(shipName);
};
changeBeam = function (beamName) {
player.setBeam(beamName);
};
setMissile = function (name) {
player.setMissile(name);
};
setShield = function (shield) {
player.setShield(shield);
};
setEngine = function (speed, aceleration) {
player.setEngine(speed, aceleration);
};
setGenerator = function (energy, recharge) {
player.setGenerator(energy, recharge);
};
setDrone = function (name) {
player.setDrone(name);
};
setEnergy = function (valor) {
panel.energyBar.gotoAndStop(Math.round(400 - (valor * 4)));
};
updateEnergy = function () {
setEnergy((player.ship.curEne * 100) / player.ship.ene);
};
resetCost();
updateCost();
Symbol 1200 MovieClip Frame 2
player.ship.status = "demo";
player.pauseControl = true;
Symbol 1200 MovieClip Frame 3
stop();
Symbol 1201 MovieClip Frame 1
moves = 3;
active = false;
states = new Array();
states[0] = "rightleft";
states[1] = "leftright";
states[2] = "updown";
states[3] = "diagonal1";
states[4] = "diagonal2";
states[5] = "horario";
states[6] = "antihorario";
noStates = 7;
statesFinal = new Array();
statesFinal[0] = "leave1";
statesFinal[1] = "leave2";
statesFinal[2] = "Leave3";
noStatesFinal = 3;
hp = 5000;
score = -1000;
side = "ally";
status = "normal";
getHit = function () {
return(ship.hit);
};
blow = function () {
status = "blow";
ship.gotoAndPlay("blow");
};
shoot = function () {
if (status != "blow") {
tiro = shot.fire();
_root.game.addAShot(tiro);
} else {
tFire.stop();
}
};
stop();
Symbol 1201 MovieClip Frame 2
tFire.OnTimer = function () {
shoot();
};
tFire.execute("frame", 20);
play();
Symbol 1201 MovieClip Frame 23
gotoAndPlay ("random");
Symbol 1201 MovieClip Frame 75
gotoAndPlay ("random");
Symbol 1201 MovieClip Frame 127
gotoAndPlay ("random");
Symbol 1201 MovieClip Frame 179
gotoAndPlay ("random");
Symbol 1201 MovieClip Frame 231
gotoAndPlay ("random");
Symbol 1201 MovieClip Frame 283
gotoAndPlay ("random");
Symbol 1201 MovieClip Frame 329
gotoAndPlay ("random");
Symbol 1201 MovieClip Frame 375
gotoAndPlay ("random");
Symbol 1201 MovieClip Frame 377
if (moves > 0) {
sorted = random(noStates);
gotoAndPlay(states[sorted]);
moves--;
} else {
sorted = random(noStatesFinal);
gotoAndPlay(statesFinal[sorted]);
}
Symbol 1201 MovieClip Frame 430
gotoAndPlay ("end");
Symbol 1201 MovieClip Frame 480
gotoAndPlay ("end");
Symbol 1201 MovieClip Frame 530
gotoAndPlay ("end");
Symbol 1201 MovieClip Frame 532
stop();
tFire.stop();
_parent.specialAlly.active = false;
this.removeMovieClip();
Symbol 1202 MovieClip Frame 2
ship = null;
delayFrames = 1;
noTimes = 0;
minX = 0;
maxX = 0;
rndX = false;
minY = 0;
maxY = 0;
rndX = false;
setShip = function (eship) {
this.ship = eship;
};
setDelayFrames = function (no) {
this.delayFrames = no;
};
setNoTimes = function (times) {
noTimes = times;
};
setX = function (min, max, rnd) {
minX = min;
maxX = max;
rndX = rnd;
};
setY = function (min, max, rnd) {
minY = min;
maxY = max;
rndY = rnd;
};
getX = function () {
result = maxX;
if (rndX) {
result = minX + random(maxX - minX);
}
return(result);
};
getY = function () {
result = maxY;
if (rndY) {
result = minY + random(maxY - minY);
}
return(result);
};
createShips = function (ship, pminX, pmaxX, prndX, pminY, pmaxY, prndY, times, delay) {
setShip(ship);
setX(pminX, pmaxX, prndX);
setY(pminY, pmaxY, prndY);
setNoTimes(times);
setDelayFrames(delay);
startCreation();
};
createAllies = function (ship, pminX, pmaxX, prndX, pminY, pmaxY, prndY, times, delay) {
setShip(ship);
setX(pminX, pmaxX, prndX);
setY(pminY, pmaxY, prndY);
setNoTimes(times);
setDelayFrames(delay);
startCreationAllies();
};
startCreation = function () {
tCreateHorde.OnTimer = function () {
_root.game.newEnemy(ship, getX(), getY());
};
tStop.OnTimer = function () {
stopCreation();
};
tCreateHorde.execute("frame", delayFrames, noTimes);
};
startCreationAllies = function () {
tCreateHorde.OnTimer = function () {
_root.game.newAlly(ship, getX(), getY());
};
tStop.OnTimer = function () {
stopCreation();
};
tCreateHorde.execute("frame", delayFrames, noTimes);
};
stopCreation = function () {
tCreateHorde.stop();
tStop.stop();
this.stop();
};
stop();
Symbol 1210 MovieClip Frame 51
stop();
Symbol 1211 MovieClip Frame 1
stop();
Symbol 1211 MovieClip Frame 30
gotoAndPlay ("play");
Symbol 1211 MovieClip Frame 50
gotoAndPlay ("blow");
Symbol 1211 MovieClip Frame 149
this.unloadMovie();
Symbol 1222 MovieClip Frame 1
stop();
Symbol 1222 MovieClip Frame 2
_parent.stop();
Symbol 1222 MovieClip Frame 29
stop();
this.removeMovieClip();
Symbol 1223 MovieClip Frame 1
damage = 100;
Symbol 1224 MovieClip Frame 1
damage = 500;
y = beam._y;
x = beam._x;
status = "stop";
if (_parent.side == null) {
side = "player";
} else {
side = _parent.side;
}
hitShot = function () {
status = "blow";
};
checaColisao = function () {
beam._y = beam._y - shotSpeed;
if (status != "blow") {
lp = 0;
while (lp < _root.game.noEnemies) {
if (beam.hitTest(_root.game.enemies[lp].getHit())) {
_root.game.hitEnemy(lp, damage);
hitShot();
}
lp++;
}
}
};
Symbol 1225 MovieClip Frame 1
addEnemy = function (ship) {
_parent.addEnemy(ship);
};
addEShot = function (shot) {
_parent.addEShot(shot);
};
hp = 900000 /* 0x0DBBA0 */;
score = 100;
getHit = function () {
return(ship.hit);
};
blow = function () {
ship.gotoAndPlay("blow");
};
Symbol 1225 MovieClip Frame 25
missile.dmg = 1000;
Symbol 1225 MovieClip Frame 51
Symbol 1225 MovieClip Frame 76
stop();
Symbol 1226 MovieClip Frame 1
ship.hp = 100000 /* 0x0186A0 */;
score = 100;
getHit = function () {
return(ship.hit);
};
blow = function () {
ship.gotoAndPlay("blow");
};
Symbol 1226 MovieClip Frame 25
missile.dmg = 1000;
hp = 10;
Symbol 1226 MovieClip Frame 51
Symbol 1226 MovieClip Frame 76
stop();
Symbol 1227 MovieClip Frame 1
addEnemy = function (ship) {
return(_parent.addEnemy(ship));
};
addEShot = function (shot) {
return(_parent.addEShot(shot));
};
Symbol 1227 MovieClip Frame 2
addEnemy(Eship1);
addEnemy(Eship2);
stop();
Symbol 1235 MovieClip Frame 75
stop();
Symbol 1240 MovieClip Frame 81
stop();
Symbol 1243 MovieClip Frame 1
stop();
Symbol 1243 MovieClip Frame 32
stop();
_parent.removeMovieClip();
Symbol 1247 MovieClip Frame 2
stop();
Symbol 1247 MovieClip Frame 11
_parent.removeMovieClip();
stop();
Symbol 1249 MovieClip Frame 1
delayShot = 20;
shotSpeed = 7;
damage = 75;
genCost = 10;
y = beam._y;
x = beam._x;
status = "stop";
side = "enemy";
hitShot = function () {
status = "blow";
shotSpeed = shotSpeed / 2;
beam.gotoAndPlay("blow");
};
checaColisao = function () {
beam._y = beam._y - shotSpeed;
};
Symbol 1249 MovieClip Frame 2
shotNo = 0;
canShot = true;
fire = function () {
result = null;
if (canShot) {
canShot = false;
_parent.shot.duplicateMovieClip("shot" + shotNo, 100 + shotNo);
_parent["shot" + shotNo]._x = _parent.ship._x;
_parent["shot" + shotNo]._y = _parent.ship._y;
_parent["shot" + shotNo]._visible = true;
_parent["shot" + shotNo].gotoAndPlay("fire");
result = _parent["shot" + shotNo];
shotNo++;
if (shotNo > 99) {
shotNo = 0;
}
}
return(result);
};
tShotDelay.OnTimer = function () {
canShot = true;
};
tShotDelay.execute("frame", delayShot);
stop();
Symbol 1249 MovieClip Frame 3
checaColisao();
Symbol 1249 MovieClip Frame 4
checaColisao();
Symbol 1249 MovieClip Frame 5
checaColisao();
if ((((beam._y < (y - 800)) || (beam._y > (y + 800))) || (beam._x < (x - 600))) || (beam._x > (x + 600))) {
this.removeMovieClip();
}
gotoAndPlay ("fireCont");
Symbol 1250 MovieClip Frame 1
hp = 80;
shot._visible = false;
status = "normal";
getHit = function () {
if (status != "blow") {
return(ship.hit);
}
};
blow = function () {
if (status != "blow") {
_root.game.coin10.drop(ship.hit);
status = "blow";
ship.gotoAndPlay("blow");
}
};
stop();
shoot = function () {
if (status != "blow") {
tiro = shot.fire();
_root.game.addEShot(tiro);
}
};
Symbol 1250 MovieClip Frame 2
play();
Symbol 1250 MovieClip Frame 60
shoot();
Symbol 1250 MovieClip Frame 181
stop();
this.removeMovieClip();
Symbol 1251 MovieClip Frame 28
stop();
Symbol 1252 MovieClip Frame 1
hp = 20;
Symbol 1252 MovieClip Frame 4
stop();
Symbol 1252 MovieClip Frame 16
stop();
_root.remove(_parent);
Symbol 1253 MovieClip Frame 1
addEnemy = function (ship) {
_parent.addEnemy(ship);
};
addEShot = function (shot) {
_parent.addEShot(shot);
};
hp = 20;
score = -50;
getHit = function () {
return(ship.hit);
};
blow = function () {
ship.gotoAndPlay("blow");
};
stop();
Symbol 1253 MovieClip Frame 2
play();
Symbol 1253 MovieClip Frame 123
stop();
Symbol 1254 MovieClip Frame 1
hp = 10;
score = -50;
side = "ally";
status = "normal";
getHit = function () {
return(ship.hit);
};
blow = function () {
status = "blow";
ship.gotoAndPlay("blow");
};
shoot = function () {
if (status != "blow") {
tiro = shot.fire();
_root.game.addAShot(tiro);
}
};
stop();
Symbol 1254 MovieClip Frame 2
play();
Symbol 1254 MovieClip Frame 70
shoot();
Symbol 1254 MovieClip Frame 107
shoot();
Symbol 1254 MovieClip Frame 130
shoot();
Symbol 1254 MovieClip Frame 156
shoot();
Symbol 1254 MovieClip Frame 178
shoot();
Symbol 1254 MovieClip Frame 198
shoot();
Symbol 1254 MovieClip Frame 237
stop();
Symbol 1255 MovieClip Frame 1
delayShot = 20;
shotSpeed = 10;
damage = 500;
genCost = 0;
qtde = 50;
y = beam._y;
x = beam._x;
status = "stop";
if (_parent.side == null) {
side = "player";
} else {
side = _parent.side;
}
hitShot = function () {
status = "blow";
shotSpeed = shotSpeed / 2;
beam.gotoAndPlay("blow");
};
checaColisao = function () {
};
turn = function () {
beam._y = beam._y - shotSpeed;
};
Symbol 1255 MovieClip Frame 2
shotNo = 0;
canShot = true;
fire = function () {
result = null;
if (canShot && (qtde > 0)) {
canShot = false;
this.duplicateMovieClip("shotMissile" + shotNo, 100 + shotNo);
_parent["shotMissile" + shotNo]._x = _parent.ship._x;
_parent["shotMissile" + shotNo]._y = _parent.ship._y;
_parent["shotMissile" + shotNo]._visible = true;
_parent["shotMissile" + shotNo].gotoAndPlay("fire");
result = _parent["shotMissile" + shotNo];
shotNo++;
qtde--;
if (shotNo > 99) {
shotNo = 0;
}
}
return(result);
};
tShotDelay.OnTimer = function () {
canShot = true;
};
tShotDelay.execute("frame", delayShot);
stop();
Symbol 1255 MovieClip Frame 3
turn();
Symbol 1255 MovieClip Frame 4
turn();
Symbol 1255 MovieClip Frame 5
turn();
if ((beam._y < (y - 800)) || (beam._y > (y + 800))) {
this.removeMovieClip();
this.unloadMovie();
}
gotoAndPlay ("fireCont");
Symbol 1256 MovieClip Frame 1
hp = 180;
score = 10;
shot._visible = false;
status = "normal";
getHit = function () {
return(ship.hit);
};
blow = function () {
if (status != "blow") {
status = "blow";
ship.gotoAndPlay("blow");
_root.game.coin20.drop(ship);
}
};
stop();
shoot = function () {
if (status != "blow") {
tiro = shot.fire();
_root.game.addEShot(tiro);
}
};
Symbol 1256 MovieClip Frame 2
play();
Symbol 1256 MovieClip Frame 75
shoot();
Symbol 1256 MovieClip Frame 132
stop();
this.RemoveMovieClip();
Symbol 1260 MovieClip Frame 1
Symbol 1260 MovieClip Frame 59
gotoAndPlay ("normal");
Symbol 1260 MovieClip Frame 90
_parent._parent.removeMovieClip();
stop();
Symbol 1261 MovieClip Frame 1
stop();
Symbol 1261 MovieClip Frame 2
play();
Symbol 1261 MovieClip Frame 400
stop();
_parent.removeMovieClip();
Symbol 1262 MovieClip Frame 1
hp = 500;
status = "normal";
type = "preciseHit";
getHit = function () {
if (status != "blow") {
return(aship.ship);
}
};
blow = function () {
if (status != "blow") {
status = "blow";
aship.ship.gotoAndPlay("blow");
_root.game.coin50.drop(aship.ship);
}
};
stop();
Symbol 1262 MovieClip Frame 2
pt = new Object();
pt.x = aship._x;
pt.y = aship._y;
localToGlobal(pt);
ptPlayer = new Object();
ptPlayer.x = _root.game.player.ship._x + (_root.game.player.ship._width / 2);
ptPlayer.y = _root.game.player.ship._y + (_root.game.player.ship._height / 2);
_root.game.player.localToGlobal(ptPlayer);
x = pt.x - ptPlayer.x;
y = pt.y - ptPlayer.y;
r = -Math.atan2(x, y);
r = 185 + ((r * 180) / Math.PI);
aship._rotation = r;
aship.gotoAndPlay("start");
Symbol 1270 MovieClip Frame 2
blowno = 0;
blow.stop();
createBlow = function () {
blow.duplicateMovieClip("b" + blowno, 5000 + blowno);
this["b" + blowno]._x = random(600);
this["b" + blowno]._y = random(550);
scale = random(100);
this["b" + blowno]._xscale = 30 + scale;
this["b" + blowno]._yscale = 30 + scale;
blowno++;
};
Symbol 1270 MovieClip Frame 13
createBlow();
gotoAndPlay ("blow");
Symbol 1274 MovieClip Frame 21
stop();
this.removeMovieClip();
Symbol 1275 MovieClip Frame 2
no = 0;
fire.stop();
createFire = function () {
fire.duplicateMovieClip("f" + no, 5100 + no);
pos = random(3);
scale = random(100);
rotation = random(360);
if (pos == 0) {
this["f" + no]._x = random(680);
this["f" + no]._y = 0;
} else if (pos == 1) {
this["f" + no]._x = random(680);
this["f" + no]._y = 0;
} else if (pos == 2) {
this["f" + no]._x = random(680);
this["f" + no]._y = 640;
} else {
this["f" + no]._x = 680;
this["f" + no]._y = random(640);
}
this["f" + no]._xscale = scale;
this["f" + no]._yscale = scale;
this["f" + no]._rotation = rotation;
no++;
};
Symbol 1275 MovieClip Frame 26
createFire();
gotoAndPlay(fire);
Symbol 1281 MovieClip Frame 1
status = "repeat";
Symbol 1281 MovieClip Frame 300
if (status == "repeat") {
gotoAndPlay ("battle");
}
Symbol 1281 MovieClip Frame 301
Symbol 1281 MovieClip Frame 601
stop();
this.unloadMovie();
Symbol 1284 MovieClip Frame 1
stop();
Symbol 1287 MovieClip Frame 20
gotoAndPlay ("minimal");
Symbol 1288 MovieClip Frame 30
gotoAndPlay ("minimal");
Symbol 1289 MovieClip Frame 1
stop();
Symbol 1289 MovieClip Frame 2
stop();
Symbol 1304 MovieClip Frame 1
hp = 5000;
score = 10;
addEnemy = function (ship) {
_root.game.addEnemy(ship);
};
addEShot = function (shot) {
_root.game.addEShot(shot);
};
getHit = function () {
return(hit);
};
blow = function () {
gotoAndPlay ("blow");
_root.game.coin100.drop(this);
};
gotoHit = function () {
gotoAndStop ("target");
};
addEnemy(this);
stop();
Symbol 1304 MovieClip Frame 2
stop();
Symbol 1304 MovieClip Frame 33
stop();
_root.remove(this);
Symbol 1307 MovieClip Frame 1
hp = 5000;
score = 10;
addEnemy = function (ship) {
_root.game.addEnemy(ship);
};
addEShot = function (shot) {
_root.game.addEShot(shot);
};
getHit = function () {
return(hit);
};
blow = function () {
gotoAndPlay ("blow");
_root.game.coin100.drop(this);
};
gotoHit = function () {
gotoAndStop ("target");
};
addEnemy(this);
stop();
Symbol 1307 MovieClip Frame 2
stop();
Symbol 1307 MovieClip Frame 33
stop();
_root.remove(this);
Symbol 1310 MovieClip Frame 1
hp = 5000;
score = 10;
addEnemy = function (ship) {
_root.game.addEnemy(ship);
};
addEShot = function (shot) {
_root.game.addEShot(shot);
};
getHit = function () {
return(hit);
};
blow = function () {
gotoAndPlay ("blow");
_root.game.coin100.drop(this);
};
gotoHit = function () {
gotoAndStop ("target");
};
addEnemy(this);
stop();
Symbol 1310 MovieClip Frame 2
stop();
Symbol 1310 MovieClip Frame 33
stop();
_root.remove(this);
Symbol 1313 MovieClip Frame 1
hp = 5000;
score = 10;
addEnemy = function (ship) {
_root.game.addEnemy(ship);
};
addEShot = function (shot) {
_root.game.addEShot(shot);
};
getHit = function () {
return(hit);
};
blow = function () {
gotoAndPlay ("blow");
_root.game.coin100.drop(this);
};
gotoHit = function () {
gotoAndStop ("target");
};
addEnemy(this);
stop();
Symbol 1313 MovieClip Frame 2
stop();
Symbol 1313 MovieClip Frame 33
stop();
_root.remove(this);
Symbol 1316 MovieClip Frame 1
hp = 5000;
score = 10;
addEnemy = function (ship) {
_root.game.addEnemy(ship);
};
addEShot = function (shot) {
_root.game.addEShot(shot);
};
getHit = function () {
return(hit);
};
blow = function () {
gotoAndPlay ("blow");
_root.game.coin100.drop(this);
};
gotoHit = function () {
gotoAndStop ("target");
};
addEnemy(this);
stop();
Symbol 1316 MovieClip Frame 2
stop();
Symbol 1316 MovieClip Frame 33
stop();
_root.remove(this);
Symbol 1319 MovieClip Frame 1
hp = 5000;
score = 10;
addEnemy = function (ship) {
_root.game.addEnemy(ship);
};
addEShot = function (shot) {
_root.game.addEShot(shot);
};
getHit = function () {
return(hit);
};
blow = function () {
gotoAndPlay ("blow");
_root.game.coin100.drop(this);
};
gotoHit = function () {
gotoAndStop ("target");
};
addEnemy(this);
stop();
Symbol 1319 MovieClip Frame 2
stop();
Symbol 1319 MovieClip Frame 33
stop();
_root.remove(this);
Symbol 1322 MovieClip Frame 1
hp = 5000;
score = 10;
addEnemy = function (ship) {
_root.game.addEnemy(ship);
};
addEShot = function (shot) {
_root.game.addEShot(shot);
};
getHit = function () {
return(hit);
};
blow = function () {
gotoAndPlay ("blow");
_root.game.coin100.drop(this);
};
gotoHit = function () {
gotoAndStop ("target");
};
addEnemy(this);
stop();
Symbol 1322 MovieClip Frame 2
stop();
Symbol 1322 MovieClip Frame 33
stop();
_root.remove(this);
Symbol 1325 MovieClip Frame 1
hp = 5000;
score = 10;
addEnemy = function (ship) {
_root.game.addEnemy(ship);
};
addEShot = function (shot) {
_root.game.addEShot(shot);
};
getHit = function () {
return(hit);
};
blow = function () {
gotoAndPlay ("blow");
_root.game.coin100.drop(this);
};
gotoHit = function () {
gotoAndStop ("target");
};
addEnemy(this);
stop();
Symbol 1325 MovieClip Frame 2
stop();
Symbol 1325 MovieClip Frame 33
stop();
_root.remove(this);
Symbol 1328 MovieClip Frame 1
hp = 10000;
score = 10000;
addEnemy = function (ship) {
_root.game.addEnemy(ship);
};
addEShot = function (shot) {
_root.game.addEShot(shot);
};
getHit = function () {
return(hit);
};
blow = function () {
gotoAndPlay ("blow");
_root.game.coin1000.drop(this);
};
gotoHit = function () {
gotoAndStop ("target");
};
addEnemy(this);
stop();
Symbol 1328 MovieClip Frame 2
stop();
Symbol 1328 MovieClip Frame 33
stop();
_root.remove(this);
_parent._parent._parent.blow();
Symbol 1331 MovieClip Frame 1
hp = 5000;
score = 10;
addEnemy = function (ship) {
_root.game.addEnemy(ship);
};
addEShot = function (shot) {
_root.game.addEShot(shot);
};
getHit = function () {
return(hit);
};
gotoHit = function () {
gotoAndStop ("target");
};
blow = function () {
gotoAndPlay ("blow");
_root.game.coin200.drop(this);
};
addEnemy(this);
stop();
Symbol 1331 MovieClip Frame 2
stop();
Symbol 1331 MovieClip Frame 33
stop();
_root.remove(this);
Symbol 1332 MovieClip Frame 2
tRotate.OnTimer = function () {
ptCanon = new Object();
ptCanon.x = _parent.ship._x;
ptCanon.y = _parent.ship._y;
_parent.localToGlobal(ptCanon);
ptPlayer = new Object();
ptPlayer.x = _root.game.player.ship._x + (_root.game.player.ship._width / 2);
ptPlayer.y = _root.game.player.ship._y + (_root.game.player.ship._height / 2);
_root.game.player.localToGlobal(ptPlayer);
x = ptCanon.x - ptPlayer.x;
y = ptCanon.y - ptPlayer.y;
r = -Math.atan2(x, y);
r = (185 + ((r * 180) / Math.PI)) - _parent._parent._rotation;
_parent.ship._rotation = r;
};
tRotate.execute("frame", 8);
Symbol 1332 MovieClip Frame 3
stop();
Symbol 1335 MovieClip Frame 1
stop();
Symbol 1335 MovieClip Frame 25
stop();
_root.remove(this);
Symbol 1336 MovieClip Frame 1
hp = 5000;
score = 100;
shot._visible = false;
side = "enemy";
addEnemy = function (ship) {
_root.game.addEnemy(this);
};
addEShot = function (shot) {
_root.game.addEShot(shot);
};
getHit = function () {
return(ship.hit);
};
blow = function () {
_root.game.coin200.drop(ship.hit);
ship.gotoAndPlay("blow");
};
startShoot = function (shootpattern) {
gotoAndPlay(shootpattern);
};
shoot = function () {
tiro = _parent._parent._parent.shot.fire(ship);
_root.game.addEShot(tiro);
};
addEnemy();
Symbol 1336 MovieClip Frame 2
stop();
Symbol 1336 MovieClip Frame 35
shoot();
Symbol 1336 MovieClip Frame 36
gotoAndPlay ("shot1");
Symbol 1336 MovieClip Frame 40
shoot();
Symbol 1336 MovieClip Frame 45
shoot();
Symbol 1336 MovieClip Frame 50
shoot();
Symbol 1336 MovieClip Frame 55
shoot();
Symbol 1336 MovieClip Frame 60
shoot();
Symbol 1336 MovieClip Frame 65
shoot();
gotoAndPlay ("shot2");
Symbol 1337 MovieClip Frame 1
startShoot = function (shootpattern) {
cannon1.startShoot(shootpattern);
cannon2.startShoot(shootpattern);
cannon3.startShoot(shootpattern);
cannon4.startShoot(shootpattern);
};
startRot = _rotation;
stop();
Symbol 1337 MovieClip Frame 2
_parent.stop();
Symbol 1337 MovieClip Frame 194
stop();
_root.game.winFase();
root.remove(_parent._parent);
Symbol 1338 MovieClip Frame 70
mothership.startShoot("shot1");
Symbol 1338 MovieClip Frame 836
gotoAndPlay ("continue");
Symbol 1343 MovieClip Frame 1
som = new Sound("som");
som.attachSound("laser1");
som.setVolume(50);
som.start();
Symbol 1343 MovieClip Frame 2
som.start();
stop();
Symbol 1343 MovieClip Frame 11
_parent.removeMovieClip();
stop();
Symbol 1344 MovieClip Frame 1
delayShot = 1;
shotSpeed = 5;
damage = 10;
genCost = 10;
y = beam._y;
x = beam._x;
status = "stop";
side = "enemy";
if (_parent.side == null) {
side = "player";
} else {
side = _parent.side;
}
hitShot = function () {
status = "blow";
shotSpeed = shotSpeed / 2;
beam.gotoAndPlay("blow");
};
checaColisao = function () {
beam._y = beam._y - shotSpeed;
};
Symbol 1344 MovieClip Frame 2
shotNo = 0;
canShot = true;
fire = function (obj) {
result = null;
canShot = false;
_parent.shot.duplicateMovieClip("shot" + shotNo, 100 + shotNo);
_parent["shot" + shotNo]._visible = true;
ptObj = new Object();
pt = new Object();
ptObj.x = obj._x;
ptObj.y = obj._y;
obj._parent.localToGlobal(ptObj);
_parent.globalToLocal(ptObj);
_parent["shot" + shotNo]._x = ptObj.x;
_parent["shot" + shotNo]._y = ptObj.y;
_parent["shot" + shotNo]._rotation = _parent.mothership.mothership._rotation + obj._rotation;
_parent["shot" + shotNo].gotoAndPlay("fire");
result = _parent["shot" + shotNo];
shotNo++;
if (shotNo > 99) {
shotNo = 0;
}
return(result);
};
tShotDelay.OnTimer = function () {
canShot = true;
};
tShotDelay.execute("frame", delayShot);
stop();
Symbol 1344 MovieClip Frame 3
checaColisao();
Symbol 1344 MovieClip Frame 4
Symbol 1344 MovieClip Frame 5
checaColisao();
if ((((beam._y < (y - 800)) || (beam._y > (y + 800))) || (beam._x < (x - 600))) || (beam._x > (x + 600))) {
this.removeMovieClip();
}
gotoAndPlay ("fireCont");
Symbol 1345 MovieClip Frame 1
blow = function () {
mothership.mothership.gotoAndPlay("blow");
};
Symbol 1346 MovieClip Frame 1
_root.changeMusica("musica- fase 1");
addEnemy = function (ship) {
return(_parent.addEnemy(ship));
};
addAlly = function (ship) {
return(_parent.addAlly(ship));
};
newEnemy = function (modelo, posX, posY) {
no = _root.game.getNextEnemyPos();
pt = new Object();
pt.x = posX;
pt.y = posY;
this.globalToLocal(pt);
modelo.duplicateMovieClip("enemy" + no, 200 + no);
result = _root.game.addEnemy(this["enemy" + no]);
this["enemy" + no]._x = pt.x;
this["enemy" + no]._y = pt.y;
this["enemy" + no].gotoAndPlay("start");
return(result);
};
newAlly = function (modelo, posX, posY) {
no = _root.game.noAllies;
pt = new Object();
pt.x = posX;
pt.y = posY;
this.globalToLocal(pt);
modelo.duplicateMovieClip("ally" + no, 300 + no);
result = _root.game.addAlly(this["ally" + no]);
this["ally" + no]._x = pt.x;
this["ally" + no]._y = pt.y;
this["ally" + no].gotoAndPlay("start");
return(result);
};
addEShot = function (shot) {
return(_parent.addEShot(shot));
};
getEnemy = function (no) {
return(_parent._parent.enemies[no]);
};
playDialog = function (dlg) {
_root.game.dialog.playDialog(dlg, "1");
};
Symbol 1346 MovieClip Frame 149
bkg1.gotoAndPlay("play");
Symbol 1346 MovieClip Frame 326
groupCreator.createShips(Eship2, 0, 660, true, 0, 0, false, 6, 10);
Symbol 1346 MovieClip Frame 578
playDialog("l1-2");
Symbol 1346 MovieClip Frame 585
groupCreator2.createAllies(Aship2, 0, 660, true, 660, 660, false, 6, 20);
Symbol 1346 MovieClip Frame 600
groupCreator.createShips(Eship2, 0, 660, true, 0, 0, false, 10, 22);
Symbol 1346 MovieClip Frame 1001
groupCreator.createShips(Eship1, 0, 660, true, -100, -100, false, 5, 50);
Symbol 1346 MovieClip Frame 1251
bkg1.gotoAndPlay("blow");
Symbol 1346 MovieClip Frame 1322
bkg1.gotoAndPlay("exit");
Symbol 1346 MovieClip Frame 1431
battlefield.battle.status = "leave";
Symbol 1346 MovieClip Frame 1623
allyCapital.gotoAndStop("power on");
Symbol 1346 MovieClip Frame 1635
playDialog("l1-3");
Symbol 1346 MovieClip Frame 1641
allyCapital.gotoAndPlay("fire");
Symbol 1346 MovieClip Frame 1816
groupCreator.createShips(Eship1, 0, 660, true, -100, -100, false, 10, 50);
Symbol 1346 MovieClip Frame 2226
groupCreator.createShips(Eship3, 0, 660, true, 0, 0, false, 20, 100);
Symbol 1346 MovieClip Frame 3220
groupCreator.createShips(Eship3, 0, 660, true, 0, 0, false, 10, 200);
groupCreator2.createShips(Eship2, 0, 660, true, 0, 0, false, 10, 100);
Symbol 1346 MovieClip Frame 3720
groupCreator2.createShips(Eship1, 0, 660, true, 0, 0, false, 20, 50);
Symbol 1346 MovieClip Frame 4298
_root.stopMusica();
playDialog("l1-4");
Symbol 1346 MovieClip Frame 4299
_root.changeMusica("musica- boss");
stop();
Symbol 1346 MovieClip Frame 4300
battlefield.battle.stop();
stop();
Symbol 1352 MovieClip Frame 1
stop();
Symbol 1354 MovieClip Frame 1
tipo = "sand";
changeTo = "sand";
change = function (tipo) {
changeTo = tipo;
};
Symbol 1354 MovieClip Frame 121
if (changeTo == "sand") {
gotoAndPlay ("sand");
} else if (changeTo == "sea") {
gotoAndPlay ("sand-sea");
}
Symbol 1354 MovieClip Frame 241
if (changeTo == "sand") {
gotoAndPlay ("sea-sand");
} else if (changeTo == "sea") {
gotoAndPlay ("sea");
}
Symbol 1354 MovieClip Frame 361
if (changeTo == "sea") {
gotoAndPlay ("sea");
} else if (changeTo == "sand") {
gotoAndPlay ("sea-sand");
}
Symbol 1354 MovieClip Frame 481
if (changeTo == "sand") {
gotoAndPlay ("sand");
} else if (changeTo == "sea") {
gotoAndPlay ("sand-sea");
}
Symbol 1359 MovieClip Frame 2
stop();
Symbol 1359 MovieClip Frame 11
_parent.removeMovieClip();
stop();
Symbol 1361 MovieClip Frame 1
delayShot = 1;
shotSpeed = 3;
damage = 200;
genCost = 10;
y = beam._y;
x = beam._x;
status = "stop";
side = "enemy";
if (_parent.side == null) {
side = "player";
} else {
side = _parent.side;
}
hitShot = function () {
status = "blow";
shotSpeed = shotSpeed / 2;
beam.gotoAndPlay("blow");
};
checaColisao = function () {
beam._y = beam._y - shotSpeed;
if (status != "blow") {
lp = 0;
while (lp < _parent._parent.noAllies) {
if (_parent._parent.allies[lp].getHit().hitTest(this)) {
_parent._parent.hitAlly(lp, damage);
hitShot();
}
lp++;
}
}
};
Symbol 1361 MovieClip Frame 2
shotNo = 0;
canShot = true;
y = beam._y;
x = beam._x;
fire = function (obj) {
result = null;
canShot = false;
_parent.shot.duplicateMovieClip("shot" + shotNo, 100 + shotNo);
_parent["shot" + shotNo]._visible = true;
ptObj = new Object();
pt = new Object();
ptObj.x = obj._x;
ptObj.y = obj._y;
obj._parent.localToGlobal(ptObj);
_parent.globalToLocal(ptObj);
_parent["shot" + shotNo]._x = ptObj.x;
_parent["shot" + shotNo]._y = ptObj.y;
_parent["shot" + shotNo]._rotation = obj._rotation;
_parent["shot" + shotNo].gotoAndPlay("fire");
result = _parent["shot" + shotNo];
shotNo++;
if (shotNo > 99) {
shotNo = 0;
}
return(result);
};
tShotDelay.OnTimer = function () {
canShot = true;
};
tShotDelay.execute("frame", delayShot);
stop();
Symbol 1361 MovieClip Frame 3
checaColisao();
Symbol 1361 MovieClip Frame 4
checaColisao();
Symbol 1361 MovieClip Frame 5
checaColisao();
if ((((beam._y < (y - 840)) || (beam._y > (y + 840))) || (beam._x < (x - 840))) || (beam._x > (x + 840))) {
this.removeMovieClip();
}
gotoAndPlay ("fireCont");
Symbol 1368 MovieClip Frame 1
stop();
Symbol 1368 MovieClip Frame 3
stop();
Symbol 1368 MovieClip Frame 4
_parent._parent.stop();
_parent.rotate.stop();
Symbol 1368 MovieClip Frame 48
_parent._parent.removeMovieClip();
stop();
Symbol 1369 MovieClip Frame 2
tRotate.OnTimer = function () {
ptCanon = new Object();
ptCanon.x = _parent.ship._x;
ptCanon.y = _parent.ship._y;
_parent.localToGlobal(ptCanon);
ptPlayer = new Object();
ptPlayer.x = _root.game.player.ship._x + (_root.game.player.ship._width / 2);
ptPlayer.y = _root.game.player.ship._y + (_root.game.player.ship._height / 2);
_root.game.player.localToGlobal(ptPlayer);
x = ptCanon.x - ptPlayer.x;
y = ptCanon.y - ptPlayer.y;
r = -Math.atan2(x, y);
r = (r * 180) / Math.PI;
_parent.ship._rotation = r - _parent._parent._rotation;
};
tRotate.execute("frame", 10, -1);
Symbol 1369 MovieClip Frame 3
stop();
Symbol 1371 MovieClip Frame 1
hp = 400;
score = 100;
shot._visible = false;
getHit = function () {
return(ship.ship.hit);
};
blow = function () {
ship.ship.gotoAndPlay("blow");
_root.game.coin20.drop(ship);
};
shoot = function () {
beam = shot.fire(ship.ship);
_root.game.addEShot(beam);
};
stop();
Symbol 1371 MovieClip Frame 2
ship.ship.gotoAndPlay("normal");
play();
Symbol 1371 MovieClip Frame 52
shoot();
Symbol 1371 MovieClip Frame 82
shoot();
Symbol 1371 MovieClip Frame 104
shoot();
Symbol 1371 MovieClip Frame 113
shoot();
Symbol 1371 MovieClip Frame 122
shoot();
Symbol 1371 MovieClip Frame 145
shoot();
Symbol 1371 MovieClip Frame 170
shoot();
Symbol 1371 MovieClip Frame 229
this.removeMovieClip();
stop();
Symbol 1376 MovieClip Frame 1
stop();
Symbol 1376 MovieClip Frame 32
stop();
_parent._parent.removeMovieClip();
Symbol 1380 MovieClip Frame 2
stop();
Symbol 1380 MovieClip Frame 11
_parent.removeMovieClip();
stop();
Symbol 1382 MovieClip Frame 1
delayShot = 20;
shotSpeed = 7;
damage = 300;
genCost = 10;
y = beam._y;
x = beam._x;
status = "stop";
side = "enemy";
hitShot = function () {
status = "blow";
shotSpeed = shotSpeed / 2;
beam.gotoAndPlay("blow");
};
checaColisao = function () {
beam._y = beam._y - shotSpeed;
if (status != "blow") {
lp = 0;
while (lp < _root.game.noAllies) {
if (_root.game.allies[lp].getHit().hitTest(this)) {
_root.game.hitAlly(lp, damage);
hitShot();
}
lp++;
}
}
};
Symbol 1382 MovieClip Frame 2
shotNo = 0;
canShot = true;
fire = function () {
result = null;
if (canShot) {
canShot = false;
_parent.shot.duplicateMovieClip("shot" + shotNo, 100 + shotNo);
obj = _parent.ship.ship;
pt = new Object();
pt.x = obj._x;
pt.y = obj._y;
obj._parent.localToGlobal(pt);
if ((((pt.y > 0) && (pt.y < 600)) && (pt.x > 0)) && (pt.x < 700)) {
_parent.globalToLocal(pt);
_parent["shot" + shotNo]._x = pt.x;
_parent["shot" + shotNo]._y = pt.y;
_parent["shot" + shotNo]._rotation = obj._rotation;
_parent["shot" + shotNo]._visible = true;
_parent["shot" + shotNo].gotoAndPlay("fire");
result = _parent["shot" + shotNo];
shotNo++;
if (shotNo > 99) {
shotNo = 0;
}
}
}
return(result);
};
tShotDelay.OnTimer = function () {
canShot = true;
};
tShotDelay.execute("frame", delayShot);
stop();
Symbol 1382 MovieClip Frame 3
checaColisao();
Symbol 1382 MovieClip Frame 4
checaColisao();
Symbol 1382 MovieClip Frame 5
checaColisao();
if ((((beam._y < (y - 900)) || (beam._y > (y + 900))) || (beam._x < (x - 700))) || (beam._x > (x + 700))) {
this.removeMovieClip();
}
gotoAndPlay ("fireCont");
Symbol 1383 MovieClip Frame 1
stop();
Symbol 1383 MovieClip Frame 2
play();
Symbol 1383 MovieClip Frame 45
_parent.shoot();
Symbol 1383 MovieClip Frame 90
_parent.shoot();
Symbol 1383 MovieClip Frame 135
_parent.shoot();
Symbol 1383 MovieClip Frame 221
stop();
_parent.removeMovieClip();
Symbol 1384 MovieClip Frame 1
hp = 500;
aship.shot._visible = false;
status = "normal";
getHit = function () {
if (status != "blow") {
return(aship.ship.hit);
}
};
blow = function () {
if (status != "blow") {
aship.ship.gotoAndPlay("blow");
status = "blow";
_root.game.coin50.drop(aship.ship);
}
};
stop();
shoot = function () {
if (status != "blow") {
tiro = aship.shot.fire();
if (tiro != null) {
_root.game.addEShot(tiro);
}
}
};
Symbol 1384 MovieClip Frame 2
r = 135 + random(90);
aship._rotation = r;
aship.gotoAndPlay("start");
Symbol 1384 MovieClip Frame 3
stop();
Symbol 1388 MovieClip Frame 11
stop();
Symbol 1401 MovieClip Frame 74
_parent.removeMovieClip();
stop();
Symbol 1401 MovieClip Frame 136
_parent.removeMovieClip();
Symbol 1402 MovieClip Frame 1
hp = 1500;
status = "normal";
getHit = function () {
return(worm.hit);
};
blow = function () {
_root.game.coin100.drop(worm.hit);
worm.gotoAndPlay("blow");
status = "blow";
};
stop();
Symbol 1402 MovieClip Frame 2
stop();
Symbol 1402 MovieClip Frame 4
stop();
Symbol 1405 MovieClip Frame 81
stop();
Symbol 1415 MovieClip Frame 1
hp = 10000;
status = "normal";
getHit = function () {
if (status != "blow") {
return(hit);
}
};
gotoHit = function () {
if (status == "normal") {
gotoAndStop ("target");
status = "hit";
}
};
blow = function () {
if (status != "blow") {
gotoAndPlay ("blow");
_root.game.coin500.drop(this);
}
};
_root.game.addEnemy(this);
stop();
Symbol 1415 MovieClip Frame 2
stop();
Symbol 1415 MovieClip Frame 3
_parent.rotateHead.stop();
Symbol 1415 MovieClip Frame 33
this.removeMovieClip();
stop();
Symbol 1417 MovieClip Frame 1
hp = 10000;
status = "normal";
getHit = function () {
if (status != "blow") {
return(this);
}
};
gotoHit = function () {
if (status == "normal") {
gotoAndStop ("target");
status = "hit";
}
};
blow = function () {
if (status != "blow") {
gotoAndPlay ("blow");
_root.game.coin200.drop(this);
}
};
_root.game.addEnemy(this);
stop();
Symbol 1417 MovieClip Frame 2
stop();
Symbol 1417 MovieClip Frame 3
_parent.rotateHead.stop();
Symbol 1417 MovieClip Frame 33
this.removeMovieClip();
stop();
Symbol 1419 MovieClip Frame 1
hp = 10000;
status = "normal";
getHit = function () {
if (status != "blow") {
return(this);
}
};
gotoHit = function () {
if (status == "normal") {
gotoAndStop ("target");
status = "hit";
}
};
blow = function () {
if (status != "blow") {
gotoAndPlay ("blow");
_root.game.coin200.drop(this);
}
};
_root.game.addEnemy(this);
stop();
Symbol 1419 MovieClip Frame 2
stop();
Symbol 1419 MovieClip Frame 3
_parent.rotateHead.stop();
Symbol 1419 MovieClip Frame 33
this.removeMovieClip();
stop();
Symbol 1422 MovieClip Frame 1
hp = 20000;
status = "normal";
getHit = function () {
if (status != "blow") {
return(hit);
}
};
gotoHit = function () {
if (status == "normal") {
gotoAndStop ("target");
status = "hit";
}
};
blow = function () {
if (status != "blow") {
gotoAndPlay ("blow");
_root.game.coin500.drop(this);
}
};
_root.game.addEnemy(this);
stop();
Symbol 1422 MovieClip Frame 2
stop();
Symbol 1422 MovieClip Frame 3
_parent.rotateHead.stop();
Symbol 1422 MovieClip Frame 33
this.removeMovieClip();
stop();
Symbol 1426 MovieClip Frame 1
hp = 30000;
status = "normal";
getHit = function () {
if (status != "blow") {
return(hit);
}
};
gotoHit = function () {
if (status == "normal") {
gotoAndStop ("target");
status = "hit";
}
};
blow = function () {
if (status != "blow") {
status = "blow";
gotoAndPlay ("blow");
_root.game.coin500.drop(this);
}
};
_root.game.addEnemy(this);
stop();
Symbol 1426 MovieClip Frame 25
_root.game.map.map2.groupCreator.createShips(_parent._parent._parent.shot1, 0, 660, true, -50, -50, false, 7, 5);
if (status == "hit") {
gotoAndStop ("hit");
} else {
gotoAndPlay ("normal");
}
Symbol 1426 MovieClip Frame 51
stop();
Symbol 1428 MovieClip Frame 2
tRotate.OnTimer = function () {
ptCanon = new Object();
ptCanon.x = _parent.ship._x;
ptCanon.y = _parent.ship._y;
_parent.localToGlobal(ptCanon);
ptPlayer = new Object();
ptPlayer.x = _root.game.player.ship._x + (_root.game.player.ship._width / 2);
ptPlayer.y = _root.game.player.ship._y + (_root.game.player.ship._height / 2);
_root.game.player.localToGlobal(ptPlayer);
x = ptCanon.x - ptPlayer.x;
y = ptCanon.y - ptPlayer.y;
r = -Math.atan2(x, y);
r = (r * 180) / Math.PI;
if (((r > 135) && (r < 225)) || ((r < -135) && (r > -225))) {
_parent.ship._rotation = r - _parent._parent._rotation;
}
};
tRotate.execute("frame", 5, -1);
Symbol 1428 MovieClip Frame 3
stop();
Symbol 1433 MovieClip Frame 1
hp = 60000;
status = "normal";
getHit = function () {
if (status != "blow") {
return(hit);
}
};
gotoHit = function () {
if (status == "normal") {
gotoAndStop ("target");
status = "hit";
}
};
blow = function () {
if (status != "blow") {
gotoAndPlay ("blow");
_root.game.coin2000.drop(this);
}
};
_root.game.addEnemy(this);
stop();
Symbol 1433 MovieClip Frame 2
stop();
Symbol 1433 MovieClip Frame 3
_parent.rotateHead.stop();
Symbol 1433 MovieClip Frame 33
_parent.gotoAndPlay("blow");
stop();
Symbol 1435 MovieClip Frame 1
hp = 1000;
status = "normal";
getHit = function () {
if (status != "blow") {
return(this);
}
};
_root.game.addEnemy(this);
Symbol 1444 MovieClip Frame 1
status = "normal";
Symbol 1444 MovieClip Frame 70
gotoAndPlay ("walk");
Symbol 1444 MovieClip Frame 120
gotoAndStop ("stand");
Symbol 1444 MovieClip Frame 321
status = "blow";
_parent.stop();
rotateHead.tRotate.stop();
Symbol 1444 MovieClip Frame 551
_root.game.winFase();
stop();
Symbol 1449 MovieClip Frame 2
stop();
Symbol 1449 MovieClip Frame 12
_parent.removeMovieClip();
stop();
Symbol 1450 MovieClip Frame 1
hp = 1000;
status = "normal";
getHit = function () {
if (status != "blow") {
return(ship.hit);
}
};
blow = function () {
if (status != "blow") {
status = "blow";
ship.gotoAndPlay("blow");
}
};
stop();
Symbol 1450 MovieClip Frame 2
play();
Symbol 1450 MovieClip Frame 53
this.removeMovieClip();
Symbol 1454 MovieClip Frame 1
damage = 900000 /* 0x0DBBA0 */;
shotNo = 0;
y = _y;
x = _x;
status = "stop";
side = "enemy";
type = "rotatedBeam";
canShot = true;
hitShot = function () {
};
checaColisao = function () {
if (status != "blow") {
lp = 0;
while (lp < _parent._parent.noAllies) {
if (_parent._parent.allies[lp].getHit().hitTest(this)) {
_parent._parent.hitAlly(lp, damage);
hitShot();
}
lp++;
}
}
};
fire = function () {
result = null;
if (canShot) {
obj = _parent.boss.ship;
pt = new Object();
pt.x = obj._x;
pt.y = obj._y;
obj._parent.localToGlobal(pt);
if ((((pt.y > -50) && (pt.y < 700)) && (pt.x > -50)) && (pt.x < 850)) {
_parent.globalToLocal(pt);
this.duplicateMovieClip("shotLaser" + shotNo, 1200 + shotNo);
_parent["shotLaser" + shotNo]._x = pt.x;
_parent["shotLaser" + shotNo]._y = pt.y;
_parent["shotLaser" + shotNo]._rotation = 180 + obj._rotation;
_parent["shotLaser" + shotNo]._visible = true;
_parent["shotLaser" + shotNo].gotoAndPlay("fire");
result = _parent["shotLaser" + shotNo];
shotNo++;
if (shotNo > 99) {
shotNo = 0;
}
}
}
return(result);
};
stop();
Symbol 1454 MovieClip Frame 2
cnt = 0;
_parent.headStop();
play();
Symbol 1454 MovieClip Frame 53
cnt++;
if (cnt < 20) {
gotoAndPlay ("continue");
}
Symbol 1454 MovieClip Frame 67
_parent.headStart();
stop();
this.removeMovieClip();
Symbol 1455 MovieClip Frame 1
shot1._visible = false;
status = "normal";
blow = function () {
};
shoot1 = function () {
if ((boss.status != "blow") && (boss.ship.status != "blow")) {
if (boss.chest.missile1.status != "blow") {
boss.chest.missile1.gotoAndPlay("fire");
}
if (boss.chest.missile2.status != "blow") {
boss.chest.missile2.gotoAndPlay("fire");
}
}
};
shoot2 = function () {
if ((boss.status != "blow") && (boss.ship.status != "blow")) {
tiro = headShot.fire();
_root.game.addEShot(tiro);
}
};
shoot3 = function () {
if ((boss.status != "blow") && (boss.ship.status != "blow")) {
boss.gotoAndPlay("punch");
}
};
headStop = function () {
boss.rotateHead.tRotate.stop();
};
headStart = function () {
boss.rotateHead.tRotate.start();
};
Symbol 1455 MovieClip Frame 2
boss.gotoAndPlay("walk");
play();
Symbol 1455 MovieClip Frame 125
boss.gotoAndStop("stand");
Symbol 1455 MovieClip Frame 155
shoot1();
Symbol 1455 MovieClip Frame 179
shoot1();
Symbol 1455 MovieClip Frame 270
shoot3();
Symbol 1455 MovieClip Frame 313
shoot1();
Symbol 1455 MovieClip Frame 343
shoot1();
Symbol 1455 MovieClip Frame 387
shoot2();
Symbol 1455 MovieClip Frame 473
gotoAndPlay ("attack");
Symbol 1456 MovieClip Frame 1
_root.changeMusica("musica- fase 2");
Symbol 1456 MovieClip Frame 148
groupCreator.createShips(eship1, 0, 660, true, -200, -80, true, 20, 100);
Symbol 1456 MovieClip Frame 1121
bkg.change("sea");
Symbol 1456 MovieClip Frame 1151
groupCreator.createShips(eship2, 330, 660, true, -200, -80, true, 3, 50);
Symbol 1456 MovieClip Frame 1251
groupCreator2.createShips(eship2, 0, 330, true, -200, -80, true, 3, 50);
Symbol 1456 MovieClip Frame 1351
groupCreator.createShips(eship2, 0, 660, true, -200, -80, true, 10, 100);
Symbol 1456 MovieClip Frame 1601
bkg.change("sand");
Symbol 1456 MovieClip Frame 1901
groupCreator.createShips(eship3, 100, 600, true, 100, 500, true, 10, 100);
Symbol 1456 MovieClip Frame 2550
_root.changeMusica("musica- boss");
bkg.stop();
stop();
Symbol 1460 MovieClip Frame 1
stop();
Symbol 1460 MovieClip Frame 20
gotoAndPlay ("normal");
Symbol 1460 MovieClip Frame 24
gotoAndPlay ("fast");
Symbol 1463 MovieClip Frame 1
stop();
Symbol 1463 MovieClip Frame 2
mine.gotoAndPlay("fast");
Symbol 1463 MovieClip Frame 24
_parent.stop();
Symbol 1463 MovieClip Frame 25
_root.game.addEShot(explosao);
Symbol 1463 MovieClip Frame 38
stop();
_parent._parent.noMines--;
_parent.removeMovieClip();
Symbol 1464 MovieClip Frame 1
hp = 250;
score = 100;
shot._visible = false;
type = "mina";
getHit = function () {
return(ship.mine);
};
getHitMine = function () {
return(ship.deteccao);
};
blow = function () {
ship.gotoAndPlay("blow");
};
activate = function () {
ship.gotoAndPlay("activate");
};
stop();
Symbol 1464 MovieClip Frame 2
ship.mine.gotoAndPlay("normal");
play();
Symbol 1464 MovieClip Frame 537
_parent.noMines--;
this.removeMovieClip();
Symbol 1467 MovieClip Frame 1
stop();
Symbol 1467 MovieClip Frame 14
_parent.gotoAndPlay("waitmines");
Symbol 1469 MovieClip Frame 1
hp = 2000;
score = 100;
shot._visible = false;
noMines = 0;
getHit = function () {
return(ship.hit);
};
blow = function () {
ship.gotoAndPlay("blow");
_root.game.coin100.drop(ship);
};
shoot = function () {
obj = ship;
pt = new Object();
pt.x = obj._x;
pt.y = obj._y;
obj._parent.localToGlobal(pt);
if ((((pt.y > 10) && (pt.y < 500)) && (pt.x > 10)) && (pt.x < 800)) {
no = _root.game.getNextEnemyPos();
mine.duplicateMovieClip("mine" + no, 200 + no);
this["mine" + no]._x = ship._x;
this["mine" + no]._y = ship._y - 20;
this["mine" + no].gotoAndPlay("start");
_root.game.insertEnemy(this["mine" + no], no);
noMines++;
}
};
stop();
Symbol 1469 MovieClip Frame 2
play();
Symbol 1469 MovieClip Frame 15
shoot();
Symbol 1469 MovieClip Frame 30
shoot();
Symbol 1469 MovieClip Frame 45
shoot();
Symbol 1469 MovieClip Frame 60
shoot();
Symbol 1469 MovieClip Frame 75
shoot();
Symbol 1469 MovieClip Frame 121
if (noMines > 0) {
gotoAndPlay ("waitmines");
}
Symbol 1469 MovieClip Frame 122
this.removeMovieClip();
stop();
Symbol 1470 MovieClip Frame 1
hp = 2000;
score = 100;
shot._visible = false;
noMines = 0;
getHit = function () {
return(ship.hit);
};
blow = function () {
ship.gotoAndPlay("blow");
_root.game.coin100.drop(ship);
};
shoot = function () {
obj = ship;
pt = new Object();
pt.x = obj._x;
pt.y = obj._y;
obj._parent.localToGlobal(pt);
if ((((pt.y > 10) && (pt.y < 500)) && (pt.x > 10)) && (pt.x < 800)) {
no = _root.game.getNextEnemyPos();
mine.duplicateMovieClip("mine" + no, 200 + no);
this["mine" + no]._x = ship._x;
this["mine" + no]._y = ship._y - 20;
this["mine" + no].gotoAndPlay("start");
_root.game.insertEnemy(this["mine" + no], no);
noMines++;
}
};
stop();
Symbol 1470 MovieClip Frame 2
play();
Symbol 1470 MovieClip Frame 15
shoot();
Symbol 1470 MovieClip Frame 30
shoot();
Symbol 1470 MovieClip Frame 45
shoot();
Symbol 1470 MovieClip Frame 60
shoot();
Symbol 1470 MovieClip Frame 75
shoot();
Symbol 1470 MovieClip Frame 123
if (noMines > 0) {
gotoAndPlay ("waitmines");
}
Symbol 1470 MovieClip Frame 124
this.removeMovieClip();
stop();
Symbol 1473 MovieClip Frame 1
stop();
Symbol 1473 MovieClip Frame 32
stop();
_root.remove(_parent);
Symbol 1474 MovieClip Frame 1
delayShot = 10;
shotSpeed = 20;
damage = 400;
genCost = 10;
y = beam._y;
x = beam._x;
status = "stop";
side = "enemy";
hitShot = function () {
status = "blow";
shotSpeed = shotSpeed / 2;
beam.gotoAndPlay("blow");
};
checaColisao = function () {
beam._y = beam._y - shotSpeed;
if (status != "blow") {
lp = 0;
while (lp < _root.game.noAllies) {
if (_root.game.allies[lp].getHit().hitTest(this)) {
_root.game.hitAlly(lp, damage);
hitShot();
}
lp++;
}
}
};
Symbol 1474 MovieClip Frame 2
shotNo = 0;
canShot = true;
fire = function () {
result = null;
if (canShot) {
canShot = false;
_parent.shot.duplicateMovieClip("shot" + shotNo, 100 + shotNo);
_parent["shot" + shotNo]._x = _parent.ship._x;
_parent["shot" + shotNo]._y = _parent.ship._y;
_parent["shot" + shotNo]._visible = true;
_parent["shot" + shotNo].gotoAndPlay("fire");
result = _parent["shot" + shotNo];
shotNo++;
if (shotNo > 99) {
shotNo = 0;
}
}
return(result);
};
tShotDelay.OnTimer = function () {
canShot = true;
};
tShotDelay.execute("frame", delayShot);
stop();
Symbol 1474 MovieClip Frame 3
checaColisao();
Symbol 1474 MovieClip Frame 4
checaColisao();
Symbol 1474 MovieClip Frame 5
checaColisao();
if ((((beam._y < (y - 800)) || (beam._y > (y + 800))) || (beam._x < (x - 600))) || (beam._x > (x + 600))) {
this.removeMovieClip();
}
gotoAndPlay ("fireCont");
Symbol 1475 MovieClip Frame 1
hp = 500;
shot._visible = false;
status = "normal";
getHit = function () {
if (status != "blow") {
return(ship.hit);
}
};
blow = function () {
if (status != "blow") {
ship.gotoAndPlay("blow");
status = "blow";
_root.game.coin50.drop(ship);
}
};
stop();
shoot = function () {
if (status != "blow") {
tiro = shot.fire();
_root.game.addEShot(tiro);
}
};
Symbol 1475 MovieClip Frame 2
_rotation = (135 + random(90));
play();
Symbol 1475 MovieClip Frame 19
shoot();
Symbol 1475 MovieClip Frame 39
shoot();
Symbol 1475 MovieClip Frame 61
shoot();
Symbol 1475 MovieClip Frame 121
stop();
this.removeMovieClip();
Symbol 1476 MovieClip Frame 1
delayShot = 1;
shotSpeed = 10;
damage = 600;
genCost = 0;
qtde = 50;
y = beam._y;
x = beam._x;
status = "stop";
if (_parent.side == null) {
side = "player";
} else {
side = _parent.side;
}
hitShot = function () {
status = "blow";
shotSpeed = shotSpeed / 2;
beam.gotoAndPlay("blow");
};
checaColisao = function () {
if (status != "blow") {
if ((side == "player") || (side == "ally")) {
lp = 0;
while (lp < _parent._parent.noEnemies) {
if (beam.hitTest(_parent._parent.enemies[lp].getHit())) {
_parent._parent.hitEnemy(lp, damage);
hitShot();
}
lp++;
}
}
if ((side == "player") || (side == "enemy")) {
lp = 0;
while (lp < _parent._parent.noAllies) {
if (_parent._parent.allies[lp].getHit().hitTest(beam)) {
_parent._parent.hitAlly(lp, damage);
hitShot();
}
lp++;
}
}
}
};
turn = function () {
beam._y = beam._y - shotSpeed;
checaColisao();
};
Symbol 1476 MovieClip Frame 2
shotNo = 0;
canShot = true;
fire = function () {
result = null;
if (canShot && (qtde > 0)) {
canShot = false;
this.duplicateMovieClip("shotMissile" + shotNo, 100 + shotNo);
_parent["shotMissile" + shotNo]._x = _parent.ship._x;
_parent["shotMissile" + shotNo]._y = _parent.ship._y;
_parent["shotMissile" + shotNo]._visible = true;
_parent["shotMissile" + shotNo].gotoAndPlay("fire");
result = _parent["shotMissile" + shotNo];
shotNo++;
qtde--;
if (shotNo > 99) {
shotNo = 0;
}
}
return(result);
};
tShotDelay.OnTimer = function () {
canShot = true;
};
tShotDelay.execute("frame", delayShot);
stop();
Symbol 1476 MovieClip Frame 3
turn();
Symbol 1476 MovieClip Frame 4
turn();
Symbol 1476 MovieClip Frame 5
turn();
if ((beam._y < (y - 800)) || (beam._y > (y + 800))) {
this.removeMovieClip();
this.unloadMovie();
}
gotoAndPlay ("fireCont");
Symbol 1479 MovieClip Frame 1
stop();
Symbol 1479 MovieClip Frame 2
_parent.stop();
Symbol 1479 MovieClip Frame 30
stop();
_parent.removeMovieClip();
Symbol 1480 MovieClip Frame 1
hp = 1000;
shot._visible = false;
status = "normal";
getHit = function () {
return(ship.hit);
};
blow = function () {
if (status != "blow") {
status = "blow";
ship.gotoAndPlay("blow");
_root.game.coin100.drop(ship);
}
};
stop();
shoot = function (grau) {
if (status != "blow") {
tiro = shot.fire();
tiro._rotation = grau;
_root.game.addEShot(tiro);
}
};
shoot1 = function () {
shoot(180);
};
shoot2 = function () {
shoot(160);
};
shoot3 = function () {
shoot(200);
};
shoot4 = function () {
shoot(135);
};
shoot5 = function () {
shoot(225);
};
Symbol 1480 MovieClip Frame 2
play();
Symbol 1480 MovieClip Frame 63
shoot1();
Symbol 1480 MovieClip Frame 66
shoot2();
Symbol 1480 MovieClip Frame 69
shoot3();
Symbol 1480 MovieClip Frame 72
shoot4();
Symbol 1480 MovieClip Frame 75
shoot5();
Symbol 1480 MovieClip Frame 132
stop();
this.removeMovieClip();
Symbol 1482 MovieClip Frame 1
startShoot = function (shootpattern) {
cannon1.startShoot(shootpattern);
cannon2.startShoot(shootpattern);
cannon3.startShoot(shootpattern);
cannon4.startShoot(shootpattern);
};
stop();
Symbol 1482 MovieClip Frame 2
stop();
Symbol 1482 MovieClip Frame 3
_parent.stop();
Symbol 1482 MovieClip Frame 111
stop();
_parent._parent.removeMovieClip();
Symbol 1483 MovieClip Frame 1
stop();
Symbol 1483 MovieClip Frame 2
play();
Symbol 1483 MovieClip Frame 71
mothership.startShoot("shot1");
Symbol 1483 MovieClip Frame 243
_parent.removeMovieClip();
stop();
Symbol 1484 MovieClip Frame 1
blow = function () {
mothership.mothership.gotoAndPlay("blow");
};
stop();
Symbol 1484 MovieClip Frame 2
mothership.gotoAndPlay("start");
mothership.mothership.gotoAndStop("normal");
Symbol 1488 MovieClip Frame 1
Symbol 1488 MovieClip Frame 59
gotoAndPlay ("normal");
Symbol 1488 MovieClip Frame 90
_parent._parent.removeMovieClip();
stop();
Symbol 1489 MovieClip Frame 1
stop();
Symbol 1489 MovieClip Frame 2
play();
Symbol 1489 MovieClip Frame 400
stop();
_parent.removeMovieClip();
Symbol 1490 MovieClip Frame 1
hp = 4000;
status = "normal";
type = "preciseHit";
getHit = function () {
if (status != "blow") {
return(aship.ship);
}
};
blow = function () {
if (status != "blow") {
status = "blow";
aship.ship.gotoAndPlay("blow");
_root.game.coin200.drop(aship.ship);
}
};
stop();
Symbol 1490 MovieClip Frame 2
pt = new Object();
pt.x = aship._x;
pt.y = aship._y;
localToGlobal(pt);
ptPlayer = new Object();
ptPlayer.x = _root.game.player.ship._x + (_root.game.player.ship._width / 2);
ptPlayer.y = _root.game.player.ship._y + (_root.game.player.ship._height / 2);
_root.game.player.localToGlobal(ptPlayer);
x = pt.x - ptPlayer.x;
y = pt.y - ptPlayer.y;
r = -Math.atan2(x, y);
r = 185 + ((r * 180) / Math.PI);
aship._rotation = r;
aship.gotoAndPlay("start");
Symbol 1493 MovieClip Frame 81
this.removeMovieClip();
stop();
Symbol 1499 MovieClip Frame 2
stop();
Symbol 1499 MovieClip Frame 11
_parent.removeMovieClip();
stop();
Symbol 1501 MovieClip Frame 1
delayShot = 1;
shotSpeed = 10;
damage = 600;
genCost = 10;
y = beam._y;
x = beam._x;
status = "stop";
side = "enemy";
hitShot = function () {
status = "blow";
shotSpeed = shotSpeed / 2;
beam.gotoAndPlay("blow");
};
checaColisao = function () {
beam._y = beam._y - shotSpeed;
if (status != "blow") {
lp = 0;
while (lp < _root.game.noAllies) {
if (_root.game.allies[lp].getHit().hitTest(this)) {
_root.game.hitAlly(lp, damage);
hitShot();
}
lp++;
}
}
};
Symbol 1501 MovieClip Frame 2
shotNo = 0;
canShot = true;
fire = function () {
result = null;
if (canShot) {
canShot = false;
_parent.shot1.duplicateMovieClip("shot1" + shotNo, 100 + shotNo);
_parent["shot1" + shotNo]._x = _parent.boss._x + 70;
_parent["shot1" + shotNo]._y = _parent.boss._y + 95;
_parent["shot1" + shotNo]._visible = true;
_parent["shot1" + shotNo].gotoAndPlay("fire");
result = _parent["shot1" + shotNo];
shotNo++;
if (shotNo > 99) {
shotNo = 0;
}
}
return(result);
};
tShotDelay.OnTimer = function () {
canShot = true;
};
tShotDelay.execute("frame", delayShot);
stop();
Symbol 1501 MovieClip Frame 3
checaColisao();
Symbol 1501 MovieClip Frame 4
checaColisao();
Symbol 1501 MovieClip Frame 5
checaColisao();
if ((((beam._y < (y - 800)) || (beam._y > (y + 800))) || (beam._x < (x - 600))) || (beam._x > (x + 600))) {
this.removeMovieClip();
}
gotoAndPlay ("fireCont");
Symbol 1505 MovieClip Frame 2
stop();
Symbol 1505 MovieClip Frame 12
_parent.removeMovieClip();
stop();
Symbol 1506 MovieClip Frame 1
delayShot = 1;
shotSpeed = 10;
damage = 800;
genCost = 0;
y = beam._y;
x = beam._x;
status = "stop";
if (_parent.side == null) {
side = "player";
} else {
side = _parent.side;
}
hitShot = function () {
status = "blow";
shotSpeed = shotSpeed / 2;
beam.gotoAndPlay("blow");
};
checaColisao = function () {
if (status != "blow") {
if ((side == "player") || (side == "ally")) {
lp = 0;
while (lp < _parent._parent.noEnemies) {
if (beam.hitTest(_parent._parent.enemies[lp].getHit())) {
_parent._parent.hitEnemy(lp, damage);
hitShot();
}
lp++;
}
}
if ((side == "player") || (side == "enemy")) {
lp = 0;
while (lp < _parent._parent.noAllies) {
if (_parent._parent.allies[lp].getHit().hitTest(beam)) {
_parent._parent.hitAlly(lp, damage);
hitShot();
}
lp++;
}
}
}
};
turn = function () {
beam._y = beam._y - shotSpeed;
checaColisao();
};
Symbol 1506 MovieClip Frame 2
shotNo = 0;
canShot = true;
createFire = function (rotation) {
this.duplicateMovieClip("shot2" + shotNo, 1200 + shotNo);
_parent["shot2" + shotNo]._x = _parent.boss._x + 70;
_parent["shot2" + shotNo]._y = _parent.boss._y + 50;
_parent["shot2" + shotNo]._visible = true;
_parent["shot2" + shotNo]._rotation = rotation;
_parent["shot2" + shotNo].gotoAndPlay("fire");
result = _parent["shot2" + shotNo];
shotNo++;
if (shotNo > 99) {
shotNo = 0;
}
_root.game.addEShot(result);
};
fire = function () {
result = null;
if (canShot) {
createFire(90);
createFire(120);
createFire(150);
createFire(180);
createFire(210);
createFire(240);
createFire(270);
}
};
tShotDelay.OnTimer = function () {
canShot = true;
};
tShotDelay.execute("frame", delayShot);
stop();
Symbol 1506 MovieClip Frame 3
turn();
Symbol 1506 MovieClip Frame 4
turn();
Symbol 1506 MovieClip Frame 5
turn();
if ((beam._y < (y - 800)) || (beam._y > (y + 800))) {
this.removeMovieClip();
this.unloadMovie();
}
gotoAndPlay ("fireCont");
Symbol 1522 MovieClip Frame 6
stop();
stop();
Symbol 1522 MovieClip Frame 17
gotoAndStop ("stop");
Symbol 1525 MovieClip Frame 5
stop();
Symbol 1526 MovieClip Frame 48
gotoAndPlay ("stand");
Symbol 1526 MovieClip Frame 56
stop();
Symbol 1526 MovieClip Frame 65
gotoAndPlay ("stand");
Symbol 1526 MovieClip Frame 76
stop();
Symbol 1526 MovieClip Frame 77
shld1.gotoAndPlay("hit");
shld2.gotoAndPlay("hit");
shld3.gotoAndPlay("hit");
Symbol 1526 MovieClip Frame 83
gotoAndPlay ("stand");
Symbol 1526 MovieClip Frame 89
stop();
Symbol 1526 MovieClip Frame 95
gotoAndPlay ("stand");
Symbol 1526 MovieClip Frame 105
gotoAndPlay ("stand");
Symbol 1526 MovieClip Frame 106
_parent.stop();
Symbol 1526 MovieClip Frame 250
_root.game.winFase();
stop();
Symbol 1527 MovieClip Frame 1
states = new Array();
states[0] = "fire1";
states[1] = "fire2";
states[2] = "fire3";
states[3] = "shield";
states[4] = "throttle";
states[5] = "throttle2";
states[6] = "throttle3";
states[7] = "fire1";
states[8] = "fire2";
states[9] = "fire3";
states[10] = "fire1";
states[11] = "fire2";
states[12] = "fire3";
states[13] = "fire2";
states[14] = "fire3";
states[15] = "fire2";
states[16] = "fire3";
states[17] = "fire2";
states[18] = "fire3";
states[19] = "fire2";
states[20] = "fire3";
states[21] = "fire2";
states[22] = "fire3";
states[23] = "fire1b";
states[24] = "fire1b";
states[25] = "fire1b";
noStates = 26;
boss.gotoAndStop("fly_cont");
hp = 150000 /* 0x0249F0 */;
shot1._visible = false;
shot2._visible = false;
status = "normal";
getHit = function () {
if (status != "blow") {
return(boss);
}
};
blow = function () {
if (status != "blow") {
stop();
boss.gotoAndPlay("blow");
status = "blow";
_root.game.coin10000.drop(ship);
}
};
shoot1 = function () {
if (status != "blow") {
tiro = shot1.fire();
_root.game.addEShot(tiro);
}
};
shoot2 = function (grau) {
if (status != "blow") {
shot2.fire();
}
};
_root.game.addEnemy(this);
Symbol 1527 MovieClip Frame 13
_root.game.dialog.playDialog("l3-1", "3");
boss.gotoAndPlay("fly_stop");
Symbol 1527 MovieClip Frame 15
if (_root.game.dialog.status == "on") {
gotoAndPlay ("waitDlg");
}
Symbol 1527 MovieClip Frame 86
boss.gotoAndPlay("fire");
Symbol 1527 MovieClip Frame 96
shoot1();
Symbol 1527 MovieClip Frame 102
shoot1();
Symbol 1527 MovieClip Frame 108
shoot1();
Symbol 1527 MovieClip Frame 114
shoot1();
Symbol 1527 MovieClip Frame 120
shoot1();
Symbol 1527 MovieClip Frame 121
boss.gotoAndPlay("fire_stop");
Symbol 1527 MovieClip Frame 132
gotoAndPlay ("sort");
Symbol 1527 MovieClip Frame 133
boss.gotoAndPlay("defend");
Symbol 1527 MovieClip Frame 174
boss.gotoAndPlay("defend_stop");
Symbol 1527 MovieClip Frame 180
gotoAndPlay ("sort");
Symbol 1527 MovieClip Frame 181
boss.gotoAndPlay("fire2");
Symbol 1527 MovieClip Frame 184
shoot2();
Symbol 1527 MovieClip Frame 188
gotoAndPlay ("sort");
Symbol 1527 MovieClip Frame 190
sorted = random(noStates);
if (status == "blow") {
stop();
boss.gotoAndPlay("blow");
} else {
gotoAndPlay(states[sorted]);
}
Symbol 1527 MovieClip Frame 191
boss.gotoAndPlay("fly");
Symbol 1527 MovieClip Frame 205
boss.gotoAndPlay("fly_stop");
Symbol 1527 MovieClip Frame 230
gotoAndPlay ("sort");
Symbol 1527 MovieClip Frame 231
shoot1();
boss.gotoAndPlay("fire_stop");
Symbol 1527 MovieClip Frame 236
gotoAndPlay ("sort");
Symbol 1527 MovieClip Frame 237
boss.gotoAndPlay("fly");
Symbol 1527 MovieClip Frame 248
boss.gotoAndPlay("fly_stop");
Symbol 1527 MovieClip Frame 270
gotoAndPlay ("sort");
Symbol 1527 MovieClip Frame 271
boss.gotoAndPlay("fly");
Symbol 1527 MovieClip Frame 282
boss.gotoAndPlay("fly_stop");
Symbol 1527 MovieClip Frame 304
gotoAndPlay ("sort");
Symbol 1527 MovieClip Frame 305
boss.gotoAndPlay("fire");
Symbol 1527 MovieClip Frame 318
shoot1();
Symbol 1527 MovieClip Frame 324
shoot1();
Symbol 1527 MovieClip Frame 330
shoot1();
Symbol 1527 MovieClip Frame 336
shoot1();
Symbol 1527 MovieClip Frame 340
boss.gotoAndPlay("fire_stop");
Symbol 1527 MovieClip Frame 351
gotoAndPlay ("sort");
Symbol 1528 MovieClip Frame 1
_root.changeMusica("musica- fase 3");
Symbol 1528 MovieClip Frame 131
groupCreator.createShips(Eship1, 0, 660, true, -200, -80, true, 30, 20);
Symbol 1528 MovieClip Frame 400
groupCreator.createShips(Eship2, 50, 300, true, -200, -80, true, 5, 200);
Symbol 1528 MovieClip Frame 450
groupCreator2.createShips(Eship2, 350, 650, true, -200, -80, true, 5, 200);
Symbol 1528 MovieClip Frame 900
groupCreator3.createShips(Eship3, 0, 660, true, -100, -50, true, 20, 100);
Symbol 1528 MovieClip Frame 1901
groupCreator.createShips(Eship4a, -10, -200, true, 10, 100, true, 5, 400);
groupCreator2.createShips(Eship4b, 800, 900, true, 10, 100, true, 5, 400);
Symbol 1528 MovieClip Frame 2900
groupCreator.createShips(Eship4a, -10, -200, true, 10, 100, true, 5, 200);
groupCreator2.createShips(Eship4b, 800, 900, true, 10, 100, true, 5, 200);
Symbol 1528 MovieClip Frame 2947
groupCreator3.createShips(Eship2, 0, 660, true, -200, -80, true, 5, 200);
Symbol 1528 MovieClip Frame 3501
groupCreator.createShips(Eship5, 200, 400, true, -10, -10, false, 2, 500);
Symbol 1528 MovieClip Frame 4001
groupCreator2.createShips(Eship5, 200, 400, true, -10, -10, false, 1, 500);
Symbol 1528 MovieClip Frame 4050
groupCreator3.createShips(Eship1, 0, 660, true, -200, -80, true, 10, 20);
Symbol 1528 MovieClip Frame 4250
_root.changeMusica("musica- boss");
stop();
Symbol 1528 MovieClip Frame 4251
stop();
Symbol 1528 MovieClip Frame 4252
stop();
Symbol 1531 MovieClip Frame 1
hp = 999999999 /* 0x3B9AC9FF */;
status = "normal";
getHit = function () {
return(this);
};
_root.game.addEnemy(this);
stop();
Symbol 1550 MovieClip Frame 1
stop();
Symbol 1550 MovieClip Frame 33
tDelay.OnTimer = function () {
_parent.reborn();
};
tDelay.execute("frame", 240, 1);
stop();
Symbol 1550 MovieClip Frame 100
_parent.status = "normal";
_parent.play();
gotoAndStop ("stop");
Symbol 1551 MovieClip Frame 1
delayShot = 1;
shotSpeed = 10;
damage = 1000;
genCost = 10;
y = beam._y;
x = beam._x;
status = "stop";
side = "enemy";
hitShot = function () {
status = "blow";
shotSpeed = shotSpeed / 2;
beam.gotoAndPlay("blow");
};
checaColisao = function () {
beam._y = beam._y - shotSpeed;
};
Symbol 1551 MovieClip Frame 2
shotNo = 0;
canShot = true;
fire = function () {
result = null;
if (canShot) {
canShot = false;
_parent.shot.duplicateMovieClip("shot" + shotNo, 100 + shotNo);
obj = _parent.ship.ship;
pt = new Object();
pt.x = obj._x;
pt.y = obj._y;
obj._parent.localToGlobal(pt);
if ((((pt.y > -50) && (pt.y < 700)) && (pt.x > -50)) && (pt.x < 850)) {
_parent.globalToLocal(pt);
_parent["shot" + shotNo]._x = pt.x;
_parent["shot" + shotNo]._y = pt.y;
_parent["shot" + shotNo]._rotation = obj._rotation;
_parent["shot" + shotNo]._visible = true;
_parent["shot" + shotNo].gotoAndPlay("fire");
result = _parent["shot" + shotNo];
shotNo++;
if (shotNo > 99) {
shotNo = 0;
}
}
}
return(result);
};
tShotDelay.OnTimer = function () {
canShot = true;
};
tShotDelay.execute("frame", delayShot);
stop();
Symbol 1551 MovieClip Frame 3
checaColisao();
Symbol 1551 MovieClip Frame 4
checaColisao();
Symbol 1551 MovieClip Frame 5
checaColisao();
Symbol 1551 MovieClip Frame 6
checaColisao();
Symbol 1551 MovieClip Frame 7
checaColisao();
Symbol 1551 MovieClip Frame 8
checaColisao();
Symbol 1551 MovieClip Frame 9
checaColisao();
Symbol 1551 MovieClip Frame 10
checaColisao();
Symbol 1551 MovieClip Frame 11
checaColisao();
Symbol 1551 MovieClip Frame 12
checaColisao();
Symbol 1551 MovieClip Frame 13
checaColisao();
Symbol 1551 MovieClip Frame 14
checaColisao();
Symbol 1551 MovieClip Frame 15
checaColisao();
Symbol 1551 MovieClip Frame 16
checaColisao();
Symbol 1551 MovieClip Frame 17
checaColisao();
Symbol 1551 MovieClip Frame 18
checaColisao();
Symbol 1551 MovieClip Frame 19
checaColisao();
Symbol 1551 MovieClip Frame 20
checaColisao();
Symbol 1551 MovieClip Frame 21
checaColisao();
Symbol 1551 MovieClip Frame 22
checaColisao();
Symbol 1551 MovieClip Frame 23
checaColisao();
Symbol 1551 MovieClip Frame 24
checaColisao();
Symbol 1551 MovieClip Frame 25
checaColisao();
if ((((beam._y < (y - 900)) || (beam._y > (y + 900))) || (beam._x < (x - 700))) || (beam._x > (x + 700))) {
this.removeMovieClip();
}
gotoAndPlay ("fireCont");
Symbol 1552 MovieClip Frame 1
hp = 2000;
shot._visible = false;
status = "normal";
getHit = function () {
if (status != "blow") {
return(ship.hit);
}
};
blow = function () {
if (status != "blow") {
ship.gotoAndPlay("blow");
status = "blow";
_root.game.coin200.drop(ship.hit);
}
};
stop();
shoot = function () {
if (status != "blow") {
tiro = shot.fire();
if (tiro != null) {
_root.game.addEShot(tiro);
}
}
};
stop();
Symbol 1552 MovieClip Frame 2
play();
Symbol 1552 MovieClip Frame 45
shoot();
Symbol 1552 MovieClip Frame 90
shoot();
Symbol 1552 MovieClip Frame 135
shoot();
Symbol 1552 MovieClip Frame 270
stop();
this.removeMovieClip();
Symbol 1558 MovieClip Frame 2
gotoAndPlay ("fire");
Symbol 1558 MovieClip Frame 12
_parent.removeMovieClip();
stop();
Symbol 1559 MovieClip Frame 1
delayShot = 1;
shotSpeed = 5;
damage = 400;
genCost = 0;
y = beam._y;
x = beam._x;
status = "stop";
if (_parent.side == null) {
side = "player";
} else {
side = _parent.side;
}
hitShot = function () {
status = "blow";
shotSpeed = shotSpeed / 2;
beam.gotoAndPlay("blow");
};
checaColisao = function () {
if (status != "blow") {
if ((side == "player") || (side == "ally")) {
lp = 0;
while (lp < _parent._parent.noEnemies) {
if (beam.hitTest(_parent._parent.enemies[lp].getHit())) {
_parent._parent.hitEnemy(lp, damage);
hitShot();
}
lp++;
}
}
if ((side == "player") || (side == "enemy")) {
lp = 0;
while (lp < _parent._parent.noAllies) {
if (_parent._parent.allies[lp].getHit().hitTest(beam)) {
_parent._parent.hitAlly(lp, damage);
hitShot();
}
lp++;
}
}
}
};
turn = function () {
beam._y = beam._y - shotSpeed;
checaColisao();
};
Symbol 1559 MovieClip Frame 2
shotNo = 0;
canShot = true;
createFire = function (rotation) {
this.duplicateMovieClip("shot" + shotNo, 1200 + shotNo);
_parent["shot" + shotNo]._x = _parent.ship._x;
_parent["shot" + shotNo]._y = _parent.ship._y;
_parent["shot" + shotNo]._visible = true;
_parent["shot" + shotNo]._rotation = rotation;
_parent["shot" + shotNo].gotoAndPlay("fire");
result = _parent["shot" + shotNo];
shotNo++;
if (shotNo > 99) {
shotNo = 0;
}
_root.game.addEShot(result);
};
fire = function () {
result = null;
if (canShot) {
createFire(0);
createFire(45);
createFire(90);
createFire(135);
createFire(180);
createFire(225);
createFire(270);
createFire(315);
}
};
tShotDelay.OnTimer = function () {
canShot = true;
};
tShotDelay.execute("frame", delayShot);
stop();
Symbol 1559 MovieClip Frame 3
turn();
Symbol 1559 MovieClip Frame 4
turn();
Symbol 1559 MovieClip Frame 5
turn();
if ((beam._y < (y - 800)) || (beam._y > (y + 800))) {
this.removeMovieClip();
this.unloadMovie();
}
gotoAndPlay ("fireCont");
Symbol 1562 MovieClip Frame 1
stop();
Symbol 1562 MovieClip Frame 2
_parent.stop();
Symbol 1562 MovieClip Frame 32
stop();
_parent.removeMovieClip();
Symbol 1563 MovieClip Frame 1
hp = 1500;
shot._visible = false;
status = "normal";
getHit = function () {
if (status != "blow") {
return(ship.hit);
}
};
blow = function () {
if (status != "blow") {
ship.gotoAndPlay("blow");
status = "blow";
_root.game.coin100.drop(ship);
_root.game.coin50.drop(ship);
}
};
stop();
shoot = function () {
if (status != "blow") {
tiro = shot.fire();
_root.game.addEShot(tiro);
}
};
Symbol 1563 MovieClip Frame 2
play();
Symbol 1563 MovieClip Frame 15
shoot();
Symbol 1563 MovieClip Frame 45
shoot();
Symbol 1563 MovieClip Frame 75
shoot();
Symbol 1563 MovieClip Frame 104
shoot();
Symbol 1563 MovieClip Frame 135
shoot();
Symbol 1563 MovieClip Frame 165
shoot();
Symbol 1563 MovieClip Frame 171
stop();
this.removeMovieClip();
Symbol 1567 MovieClip Frame 2
stop();
Symbol 1567 MovieClip Frame 11
_parent.removeMovieClip();
stop();
Symbol 1568 MovieClip Frame 1
delayShot = 1;
shotSpeed = 15;
damage = 2000;
genCost = 10;
y = beam._y;
x = beam._x;
status = "stop";
side = "enemy";
hitShot = function () {
status = "blow";
shotSpeed = shotSpeed / 2;
beam.gotoAndPlay("blow");
};
checaColisao = function () {
beam._y = beam._y - shotSpeed;
if (status != "blow") {
lp = 0;
while (lp < _root.game.noAllies) {
if (_root.game.allies[lp].getHit().hitTest(this)) {
_root.game.hitAlly(lp, damage);
hitShot();
}
lp++;
}
}
};
Symbol 1568 MovieClip Frame 2
shotNo = 0;
canShot = true;
fire = function () {
result = null;
if (canShot) {
canShot = false;
this.duplicateMovieClip("shot" + shotNo, 1300 + shotNo);
obj = _parent.ship;
pt = new Object();
pt.x = obj._x;
pt.y = obj._y;
obj._parent.localToGlobal(pt);
_parent.globalToLocal(pt);
_parent["shot" + shotNo]._x = pt.x;
_parent["shot" + shotNo]._y = pt.y;
ptCanon = new Object();
ptCanon.x = _parent["shot" + shotNo]._x + 40;
ptCanon.y = _parent["shot" + shotNo]._y + 50;
_parent.localToGlobal(ptCanon);
ptPlayer = new Object();
ptPlayer.x = _root.game.player.ship._x + (_root.game.player.ship._width / 2);
ptPlayer.y = _root.game.player.ship._y + (_root.game.player.ship._height / 2);
_root.game.player.localToGlobal(ptPlayer);
x = ptCanon.x - ptPlayer.x;
y = ptCanon.y - ptPlayer.y;
r = -Math.atan2(x, y);
r = (r * 180) / Math.PI;
_parent["shot" + shotNo]._rotation = r;
_parent["shot" + shotNo]._visible = true;
_parent["shot" + shotNo].gotoAndPlay("fire");
result = _parent["shot" + shotNo];
shotNo++;
if (shotNo > 99) {
shotNo = 0;
}
}
return(result);
};
tShotDelay.OnTimer = function () {
canShot = true;
};
tShotDelay.execute("frame", delayShot);
stop();
Symbol 1568 MovieClip Frame 3
checaColisao();
Symbol 1568 MovieClip Frame 4
checaColisao();
Symbol 1568 MovieClip Frame 5
checaColisao();
if ((((beam._y < (y - 900)) || (beam._y > (y + 900))) || (beam._x < (x - 700))) || (beam._x > (x + 700))) {
this.removeMovieClip();
}
gotoAndPlay ("fireCont");
Symbol 1571 MovieClip Frame 2
stop();
Symbol 1571 MovieClip Frame 19
_parent.gotoAndPlay("wait shot");
Symbol 1572 MovieClip Frame 1
hp = 1500;
shot._visible = false;
status = "normal";
getHit = function () {
return(ship.hit);
};
blow = function () {
if (status != "blow") {
status = "blow";
this.stop();
ship.gotoAndPlay("blow");
_root.game.coin200.drop(ship);
_root.game.coin50.drop(ship);
}
};
stop();
shoot = function (grau) {
if (status != "blow") {
tiro = shot.fire();
tiro._rotation = grau;
_root.game.addEShot(tiro);
}
};
Symbol 1572 MovieClip Frame 2
play();
Symbol 1572 MovieClip Frame 57
sort = random(2);
if (sort == 0) {
gotoAndPlay ("go left");
} else {
gotoAndPlay ("go right");
}
Symbol 1572 MovieClip Frame 87
shoot();
Symbol 1572 MovieClip Frame 104
gotoAndPlay ("wait shot");
Symbol 1572 MovieClip Frame 134
shoot();
Symbol 1572 MovieClip Frame 150
gotoAndPlay ("wait shot");
Symbol 1572 MovieClip Frame 320
this.removeMovieClip();
Symbol 1575 MovieClip Frame 1
stop();
Symbol 1575 MovieClip Frame 30
stop();
Symbol 1576 MovieClip Frame 1
hp = 50000;
status = "normal";
getHit = function () {
if (status != "blow") {
return(ship);
}
};
blow = function () {
if (status != "blow") {
ship.gotoAndPlay("blow");
status = "blow";
_root.game.coin10000.drop(ship.hit);
}
};
stop();
Symbol 1576 MovieClip Frame 2
play();
Symbol 1576 MovieClip Frame 270
stop();
this.removeMovieClip();
Symbol 1579 MovieClip Frame 81
stop();
Symbol 1580 MovieClip Frame 1
maxhp = 10000;
hp = maxhp;
shot._visible = false;
status = "normal";
getHit = function () {
if (status != "blow") {
return(ship.ship);
}
};
blow = function () {
if (status != "blow") {
ship.gotoAndPlay("blow");
status = "blow";
stop();
}
};
reborn = function () {
ship.gotoAndPlay("reborn");
hp = maxhp;
};
stop();
shoot = function () {
if (status != "blow") {
tiro = shot.fire();
if (tiro != null) {
_root.game.addEShot(tiro);
}
}
};
_root.game.addEnemy(this);
stop();
Symbol 1580 MovieClip Frame 2
play();
Symbol 1580 MovieClip Frame 45
shoot();
Symbol 1580 MovieClip Frame 65
shoot();
Symbol 1580 MovieClip Frame 85
shoot();
Symbol 1580 MovieClip Frame 140
shoot();
Symbol 1580 MovieClip Frame 269
gotoAndPlay ("start");
Symbol 1587 MovieClip Frame 1
hp = 100000 /* 0x0186A0 */;
score = 10;
status = "normal";
addEnemy = function (ship) {
_root.game.addEnemy(ship);
};
addEShot = function (shot) {
_root.game.addEShot(shot);
};
getHit = function () {
if (status != "blow") {
return(hit);
}
};
blow = function () {
if (status != "blow") {
gotoAndPlay ("blow");
status = "blow";
_root.game.coin2000.drop(this);
}
};
addEnemy(this);
stop();
Symbol 1587 MovieClip Frame 2
stop();
Symbol 1587 MovieClip Frame 33
stop();
Symbol 1587 MovieClip Frame 52
gotoAndPlay ("stop");
Symbol 1603 MovieClip Frame 1
hp = 200000 /* 0x030D40 */;
score = 10;
shielded = true;
hitShield = function (damage) {
if ((_parent.shld.status != "blow") || (_parent.shld2.status != "blow")) {
gotoAndPlay ("noHit");
if (_parent.shld.status != "blow") {
_parent.shld.gotoAndPlay("activate");
}
if (_parent.shld2.status != "blow") {
_parent.shld2.gotoAndPlay("activate");
}
} else {
shielded = false;
}
};
addEnemy = function (ship) {
_root.game.addEnemy(ship);
};
addEShot = function (shot) {
_root.game.addEShot(shot);
};
getHit = function () {
return(hit);
};
blow = function () {
gotoAndPlay ("blow");
_root.game.coin100000.drop(this);
};
gotoHit = function () {
gotoAndStop ("target");
};
addEnemy(this);
stop();
Symbol 1603 MovieClip Frame 2
stop();
Symbol 1603 MovieClip Frame 33
_parent.turret1.status = "blow";
_parent.turret2.status = "blow";
_parent.turret3.status = "blow";
_parent.turret4.status = "blow";
_parent.turret5.status = "blow";
_parent.turret6.status = "blow";
Symbol 1603 MovieClip Frame 80
stop();
_parent._parent._parent.gotoAndPlay("boss2");
Symbol 1603 MovieClip Frame 92
gotoAndStop ("target");
Symbol 1604 MovieClip Frame 1
stop();
Symbol 1605 MovieClip Frame 35
stop();
_parent.bkg.stop();
_parent.stop();
boss.turret1.gotoAndPlay("start");
boss.turret2.gotoAndPlay("start");
boss.turret3.gotoAndPlay("start");
boss.turret4.gotoAndPlay("start");
boss.turret5.gotoAndPlay("start");
boss.turret6.gotoAndPlay("start");
Symbol 1612 MovieClip Frame 1
hp = 20000;
status = "normal";
getHit = function () {
if (status != "blow") {
return(hit);
}
};
blow = function () {
if (status != "blow") {
gotoAndPlay ("blow");
status = "blow";
}
};
gotoHit = function () {
gotoAndStop ("target");
};
_root.game.addEnemy(this);
stop();
Symbol 1612 MovieClip Frame 16
_parent.removeMovieClip();
Symbol 1615 MovieClip Frame 1
stop();
Symbol 1615 MovieClip Frame 24
stop();
Symbol 1615 MovieClip Frame 47
stop();
Symbol 1615 MovieClip Frame 71
stop();
Symbol 1615 MovieClip Frame 95
stop();
Symbol 1615 MovieClip Frame 119
stop();
Symbol 1615 MovieClip Frame 143
stop();
Symbol 1615 MovieClip Frame 167
stop();
Symbol 1615 MovieClip Frame 191
stop();
Symbol 1615 MovieClip Frame 215
stop();
Symbol 1615 MovieClip Frame 239
stop();
Symbol 1615 MovieClip Frame 263
stop();
Symbol 1615 MovieClip Frame 287
stop();
Symbol 1615 MovieClip Frame 311
stop();
Symbol 1615 MovieClip Frame 335
stop();
Symbol 1615 MovieClip Frame 359
stop();
Symbol 1615 MovieClip Frame 383
stop();
Symbol 1615 MovieClip Frame 407
stop();
Symbol 1615 MovieClip Frame 431
stop();
Symbol 1615 MovieClip Frame 455
stop();
Symbol 1615 MovieClip Frame 479
stop();
Symbol 1615 MovieClip Frame 503
stop();
Symbol 1615 MovieClip Frame 527
stop();
Symbol 1615 MovieClip Frame 551
stop();
Symbol 1615 MovieClip Frame 575
stop();
Symbol 1615 MovieClip Frame 599
stop();
Symbol 1615 MovieClip Frame 623
stop();
Symbol 1615 MovieClip Frame 647
stop();
Symbol 1615 MovieClip Frame 671
stop();
Symbol 1615 MovieClip Frame 695
stop();
Symbol 1615 MovieClip Frame 719
stop();
Symbol 1617 MovieClip Frame 1
_parent.stop();
Symbol 1617 MovieClip Frame 75
stop();
_parent.status = "normal";
_parent.gotoAndPlay("stop");
Symbol 1617 MovieClip Frame 99
stop();
Symbol 1617 MovieClip Frame 256
_root.game.winFase();
stop();
Symbol 1620 MovieClip Frame 2
stop();
Symbol 1620 MovieClip Frame 11
_parent.removeMovieClip();
stop();
Symbol 1621 MovieClip Frame 1
delayShot = 1;
shotSpeed = 15;
damage = 1000;
genCost = 10;
y = beam._y;
x = beam._x;
status = "stop";
side = "enemy";
hitShot = function () {
status = "blow";
shotSpeed = shotSpeed / 2;
beam.gotoAndPlay("blow");
};
checaColisao = function () {
beam._y = beam._y - shotSpeed;
};
Symbol 1621 MovieClip Frame 2
shotNo = 0;
canShot = true;
fire = function () {
result = null;
if (canShot) {
canShot = false;
this.duplicateMovieClip("shot1" + shotNo, 3000 + shotNo);
obj = _parent.boss;
pt = new Object();
pt.x = obj._x;
pt.y = obj._y;
obj._parent.localToGlobal(pt);
_parent.globalToLocal(pt);
_parent["shot1" + shotNo]._x = pt.x + 70;
_parent["shot1" + shotNo]._y = pt.y + 10;
ptCanon = new Object();
ptCanon.x = _parent["shot1" + shotNo]._x + 40;
ptCanon.y = _parent["shot1" + shotNo]._y + 50;
_parent.localToGlobal(ptCanon);
ptPlayer = new Object();
ptPlayer.x = _root.game.player.ship._x + (_root.game.player.ship._width / 2);
ptPlayer.y = _root.game.player.ship._y + (_root.game.player.ship._height / 2);
_root.game.player.localToGlobal(ptPlayer);
x = ptCanon.x - ptPlayer.x;
y = ptCanon.y - ptPlayer.y;
r = -Math.atan2(x, y);
r = (r * 180) / Math.PI;
_parent["shot1" + shotNo]._rotation = r;
_parent["shot1" + shotNo]._visible = true;
_parent["shot1" + shotNo].gotoAndPlay("fire");
result = _parent["shot1" + shotNo];
shotNo++;
if (shotNo > 99) {
shotNo = 0;
}
}
return(result);
};
tShotDelay.OnTimer = function () {
canShot = true;
};
tShotDelay.execute("frame", delayShot);
stop();
Symbol 1621 MovieClip Frame 3
checaColisao();
Symbol 1621 MovieClip Frame 4
beam._y = beam._y - shotSpeed;
Symbol 1621 MovieClip Frame 5
beam._y = beam._y - shotSpeed;
Symbol 1621 MovieClip Frame 6
beam._y = beam._y - shotSpeed;
Symbol 1621 MovieClip Frame 7
beam._y = beam._y - shotSpeed;
Symbol 1621 MovieClip Frame 8
beam._y = beam._y - shotSpeed;
Symbol 1621 MovieClip Frame 9
beam._y = beam._y - shotSpeed;
Symbol 1621 MovieClip Frame 10
beam._y = beam._y - shotSpeed;
Symbol 1621 MovieClip Frame 11
beam._y = beam._y - shotSpeed;
Symbol 1621 MovieClip Frame 12
beam._y = beam._y - shotSpeed;
Symbol 1621 MovieClip Frame 13
beam._y = beam._y - shotSpeed;
Symbol 1621 MovieClip Frame 14
beam._y = beam._y - shotSpeed;
Symbol 1621 MovieClip Frame 15
beam._y = beam._y - shotSpeed;
Symbol 1621 MovieClip Frame 16
beam._y = beam._y - shotSpeed;
Symbol 1621 MovieClip Frame 17
beam._y = beam._y - shotSpeed;
Symbol 1621 MovieClip Frame 18
beam._y = beam._y - shotSpeed;
Symbol 1621 MovieClip Frame 19
beam._y = beam._y - shotSpeed;
Symbol 1621 MovieClip Frame 20
beam._y = beam._y - shotSpeed;
Symbol 1621 MovieClip Frame 21
beam._y = beam._y - shotSpeed;
Symbol 1621 MovieClip Frame 22
beam._y = beam._y - shotSpeed;
Symbol 1621 MovieClip Frame 23
beam._y = beam._y - shotSpeed;
Symbol 1621 MovieClip Frame 24
beam._y = beam._y - shotSpeed;
Symbol 1621 MovieClip Frame 25
beam._y = beam._y - shotSpeed;
if ((((beam._y < (y - 900)) || (beam._y > (y + 900))) || (beam._x < (x - 700))) || (beam._x > (x + 700))) {
this.removeMovieClip();
}
gotoAndPlay ("fireCont");
Symbol 1625 MovieClip Frame 2
stop();
Symbol 1625 MovieClip Frame 12
_parent.removeMovieClip();
stop();
Symbol 1626 MovieClip Frame 1
delayShot = 1;
shotSpeed = 10;
damage = 700;
genCost = 0;
y = beam._y;
x = beam._x;
status = "stop";
if (_parent.side == null) {
side = "player";
} else {
side = _parent.side;
}
hitShot = function () {
status = "blow";
shotSpeed = shotSpeed / 2;
beam.gotoAndPlay("blow");
};
checaColisao = function () {
};
turn = function () {
beam._y = beam._y - shotSpeed;
};
Symbol 1626 MovieClip Frame 2
shotNo = 0;
canShot = true;
createFire = function (rotation) {
this.duplicateMovieClip("shot2" + shotNo, 1200 + shotNo);
_parent["shot2" + shotNo]._x = _parent.boss._x + 70;
_parent["shot2" + shotNo]._y = _parent.boss._y + 40;
_parent["shot2" + shotNo]._visible = true;
_parent["shot2" + shotNo]._rotation = rotation;
_parent["shot2" + shotNo].gotoAndPlay("fire");
result = _parent["shot2" + shotNo];
shotNo++;
if (shotNo > 99) {
shotNo = 0;
}
_root.game.addEShot(result);
};
fire = function () {
result = null;
if (canShot) {
createFire(90);
createFire(120);
createFire(150);
createFire(180);
createFire(210);
createFire(240);
createFire(270);
}
};
tShotDelay.OnTimer = function () {
canShot = true;
};
tShotDelay.execute("frame", delayShot);
stop();
Symbol 1626 MovieClip Frame 3
turn();
Symbol 1626 MovieClip Frame 4
turn();
Symbol 1626 MovieClip Frame 5
turn();
Symbol 1626 MovieClip Frame 6
turn();
Symbol 1626 MovieClip Frame 7
turn();
Symbol 1626 MovieClip Frame 8
turn();
Symbol 1626 MovieClip Frame 9
turn();
Symbol 1626 MovieClip Frame 10
turn();
Symbol 1626 MovieClip Frame 11
turn();
Symbol 1626 MovieClip Frame 12
turn();
Symbol 1626 MovieClip Frame 13
turn();
Symbol 1626 MovieClip Frame 14
turn();
Symbol 1626 MovieClip Frame 15
turn();
Symbol 1626 MovieClip Frame 16
turn();
Symbol 1626 MovieClip Frame 17
turn();
Symbol 1626 MovieClip Frame 18
turn();
Symbol 1626 MovieClip Frame 19
turn();
Symbol 1626 MovieClip Frame 20
turn();
Symbol 1626 MovieClip Frame 21
turn();
Symbol 1626 MovieClip Frame 22
turn();
Symbol 1626 MovieClip Frame 23
turn();
Symbol 1626 MovieClip Frame 24
turn();
Symbol 1626 MovieClip Frame 25
turn();
if ((beam._y < (y - 800)) || (beam._y > (y + 800))) {
this.removeMovieClip();
this.unloadMovie();
}
gotoAndPlay ("fireCont");
Symbol 1627 MovieClip Frame 1
maxhp = 200000 /* 0x030D40 */;
hp = maxhp;
shot1._visible = false;
shot2._visible = false;
status = "starting";
states = new Array();
states[0] = "fire1";
states[1] = "fire1";
states[2] = "fire1";
states[3] = "fire1";
states[4] = "fire2";
states[5] = "fire2";
states[6] = "fire2";
states[7] = "fire2";
states[8] = "stop";
states[9] = "createShell";
noStates = 10;
frags = new Array();
noFrags = 0;
boss.gotoAndStop("fly_cont");
getHit = function () {
if (status != "blow") {
return(boss);
}
};
hit = function () {
if (status == "normal") {
pos = (hp * 100) / maxhp;
healthpos = 100;
boss.gotoAndStop(Math.round((healthpos + 100) - pos));
}
};
blow = function () {
if (status != "blow") {
stop();
boss.gotoAndPlay("blow");
status = "blow";
_root.game.coin500000.drop(ship);
}
};
shoot1 = function () {
if (status != "blow") {
tiro = shot1.fire();
_root.game.addEShot(tiro);
}
};
shoot2 = function (grau) {
if (status != "blow") {
tiro = shot2.fire();
}
};
shoot3 = function () {
if (status != "blow") {
tiro = shot3.fire();
_root.game.addEShot(tiro);
}
};
createShell = function () {
newfrag = shell.duplicateMovieClip("shell" + noFrags, 100 + noFrags);
frags[lp] = newfrag;
noFrags++;
lp = 0;
while (lp < noFrags) {
frags[lp].play();
lp++;
}
};
_root.game.addEnemy(this);
Symbol 1627 MovieClip Frame 14
gotoAndPlay ("sort");
Symbol 1627 MovieClip Frame 16
sorted = random(noStates);
gotoAndPlay(states[sorted]);
Symbol 1627 MovieClip Frame 17
shoot1();
Symbol 1627 MovieClip Frame 18
gotoAndPlay ("sort");
Symbol 1627 MovieClip Frame 19
shoot2();
Symbol 1627 MovieClip Frame 20
gotoAndPlay ("sort");
Symbol 1627 MovieClip Frame 21
shoot3();
Symbol 1627 MovieClip Frame 22
gotoAndPlay ("sort");
Symbol 1627 MovieClip Frame 23
createShell();
Symbol 1627 MovieClip Frame 46
gotoAndPlay ("sort");
Symbol 1628 MovieClip Frame 1
_root.changeMusica("musica- fase 4");
Symbol 1628 MovieClip Frame 249
groupCreator.createShips(turret, 300, 550, true, -200, -80, true, 10, 200);
groupCreator2.createShips(turret, 100, 250, true, -200, -80, true, 10, 200);
Symbol 1628 MovieClip Frame 600
groupCreator3.createShips(Eship2, 0, 660, true, -200, -80, true, 5, 200);
Symbol 1628 MovieClip Frame 1149
groupCreator.createShips(wallr, 551, 551, false, -80, -80, false, 4, 300);
Symbol 1628 MovieClip Frame 1226
groupCreator2.createShips(walll, 148, 148, false, -80, -80, false, 4, 300);
Symbol 1628 MovieClip Frame 1875
groupCreator3.createShips(eship1, 300, 400, true, -200, -80, true, 10, 100);
Symbol 1628 MovieClip Frame 2525
groupCreator.createShips(Eship2, 0, 660, true, -200, -80, true, 10, 100);
groupCreator2.createShips(eship3, 300, 400, true, -200, -100, true, 10, 100);
Symbol 1628 MovieClip Frame 3176
_root.changeMusica("musica- boss");
stop();
Symbol 1628 MovieClip Frame 3178
_root.stopMusica();
_root.game.dialog.playDialog("l4-1", "4");
Symbol 1628 MovieClip Frame 3180
_root.changeMusica("musica- final boss");
stop();
Symbol 1629 MovieClip Frame 1
player.pauseControl = false;
addEnemy = function (ship) {
return(_parent.addEnemy(ship));
};
addEShot = function (shot) {
return(_parent.addEShot(shot));
};
addAlly = function (ship) {
return(_parent.addAlly(ship));
};
gotoAndStop("level" + _root.playData.selLvl);
Symbol 1635 MovieClip Frame 1
status = "off";
canExit = false;
stop();
this._visible = false;
states = new Array();
states[0] = "Next time, pal!";
states[1] = "Sayonara";
states[2] = "Auf Wiedersehen";
states[3] = "Hasta la vista, baby!";
states[4] = "You Suck!";
states[5] = "Try harder, god dammit!";
states[6] = "Arrivederci";
states[7] = "OMG SUXXOR!";
states[8] = "@#$%&*!";
states[9] = "vaarwel";
states[10] = "au revoir";
states[11] = "Ouch that hurts!";
states[12] = "...and the Earth was destroyed...";
states[13] = "...there was once a pilot...";
states[14] = "AAAAAARGH!";
states[15] = "You should have turned left...";
states[16] = "The Earth gonna be destroyed \n and this is how you play???";
states[17] = "fatality!";
states[18] = "Lesson of today: \n Dont hammer your ship \n into the enemy";
states[19] = "You WON!!! \n Ops im wrong, you died...";
states[20] = "You've unlocked a bonus stage! \n (just kidding, you're dead.)";
states[21] = "Owned by the scripted enemy...";
states[22] = "Wow, you must like to die...";
states[23] = "Keep trying, \n Next time you can be lucky.";
states[24] = "Here we go again.";
states[25] = "The force is NOT with you!";
states[26] = "It's possible, you know!";
states[27] = "Pehaps its too though to you! \n Try turning difficulty to EASIEST.";
states[28] = "There are an EASY mode \n for whimps like you.";
states[29] = "You blew like fireworks!";
states[30] = "saving checkpoint... Ops, I \n forgot I dont have checkpoints!";
states[31] = "EJECT!!! EJECT!!!";
states[32] = "KABOOOM!!!";
states[33] = "Ramming your ship wont work!!!";
states[34] = "If you gonna do that all the\n time just press the auto-destruct!";
states[35] = "The End.... of you...";
states[36] = "Why dont you buy Starfire \n cheat codes? Just call 123-4567-8910.";
states[37] = "Are you training to be\n kamikazi?";
states[38] = "You feel the cold touch of\n death.";
states[39] = "You must have forgot to buy\n better shields.";
states[40] = "You must have forgot to buy\n a better ship.";
states[41] = "You blew straight to hell.";
states[42] = "The Earth will be destroyed,\n and you wont be remembered.";
states[43] = "Hidden is laughting of you!\n Don't let this happen!";
states[44] = "You did great\n (not)";
states[45] = "You did great\n but it wasn't sufficient.";
states[46] = "I know youre capable of win\n that game! You can do it!";
states[47] = "Never surrender!!!";
states[48] = "No one heard your scream.";
states[49] = "Goodbye Jim.";
states[50] = "Don't relay on your shields\n everytime.";
states[51] = "Ouch! I didnt saw that.";
states[52] = "AGAIN!!!";
states[53] = "NEXT!!!";
noStates = 54;
Symbol 1635 MovieClip Frame 2
status = "on";
canExit = false;
this._visible = true;
_root.game.player.pauseControl = true;
_root.restorePlayer();
onEnterFrame = function () {
if (Key.isDown(90) || (Key.isDown(88))) {
if (canExit) {
_root.gotoAndPlay("shop");
}
}
};
Symbol 1635 MovieClip Frame 50
canExit = true;
sorted = random(noStates);
msg = states[sorted];
Symbol 1635 MovieClip Frame 250
_root.gotoAndPlay("shop");
stop();
Symbol 1641 MovieClip Frame 20
gotoAndPlay ("start");
Symbol 1641 MovieClip Frame 31
_parent.removeMovieClip();
Symbol 1642 MovieClip Frame 1
speed = 1;
money = 10;
y = coin._y;
x = coin._x;
status = "stop";
get = function () {
status = "got";
coin.gotoAndPlay("get");
};
checaColisao = function () {
coin._y = coin._y + speed;
};
Symbol 1642 MovieClip Frame 2
coinName = "coin10-";
drop = function (obj) {
result = null;
coinNo = _parent.coinId;
_parent.coinId++;
this.duplicateMovieClip(coinName + coinNo, 100 + coinNo);
ptObj = new Object();
ptObj.x = obj._x;
ptObj.y = obj._y;
obj._parent.localToGlobal(ptObj);
_parent.globalToLocal(ptObj);
_parent[coinName + coinNo]._x = ptObj.x;
_parent[coinName + coinNo]._y = ptObj.y;
_parent[coinName + coinNo]._visible = true;
_parent[coinName + coinNo].gotoAndPlay("drop");
_root.game.addCoin(_parent[coinName + coinNo]);
result = _parent[coinName + coinNo];
return(result);
};
stop();
Symbol 1642 MovieClip Frame 3
checaColisao();
Symbol 1642 MovieClip Frame 4
checaColisao();
Symbol 1642 MovieClip Frame 5
checaColisao();
if ((((coin._y < (y - 800)) || (coin._y > (y + 800))) || (coin._x < (x - 600))) || (coin._x > (x + 600))) {
this.removeMovieClip();
this.unloadMovie();
}
gotoAndPlay ("dropCont");
Symbol 1644 MovieClip Frame 20
gotoAndPlay ("start");
Symbol 1644 MovieClip Frame 31
_parent.removeMovieClip();
Symbol 1645 MovieClip Frame 1
speed = 1;
money = 20;
y = coin._y;
x = coin._x;
status = "stop";
get = function () {
status = "got";
coin.gotoAndPlay("get");
};
checaColisao = function () {
coin._y = coin._y + speed;
};
Symbol 1645 MovieClip Frame 2
coinName = "coin20-";
drop = function (obj) {
result = null;
coinNo = _parent.coinId;
_parent.coinId++;
this.duplicateMovieClip(coinName + coinNo, 100 + coinNo);
ptObj = new Object();
ptObj.x = obj._x;
ptObj.y = obj._y;
obj._parent.localToGlobal(ptObj);
_parent.globalToLocal(ptObj);
_parent[coinName + coinNo]._x = ptObj.x;
_parent[coinName + coinNo]._y = ptObj.y;
_parent[coinName + coinNo]._visible = true;
_parent[coinName + coinNo].gotoAndPlay("drop");
_root.game.addCoin(_parent[coinName + coinNo]);
result = _parent[coinName + coinNo];
return(result);
};
stop();
Symbol 1645 MovieClip Frame 3
checaColisao();
Symbol 1645 MovieClip Frame 4
checaColisao();
Symbol 1645 MovieClip Frame 5
checaColisao();
if ((((coin._y < (y - 800)) || (coin._y > (y + 800))) || (coin._x < (x - 600))) || (coin._x > (x + 600))) {
this.removeMovieClip();
this.unloadMovie();
}
gotoAndPlay ("dropCont");
Symbol 1647 MovieClip Frame 20
gotoAndPlay ("start");
Symbol 1647 MovieClip Frame 31
_parent.removeMovieClip();
Symbol 1648 MovieClip Frame 1
speed = 1;
money = 50;
y = coin._y;
x = coin._x;
status = "stop";
get = function () {
status = "got";
coin.gotoAndPlay("get");
};
checaColisao = function () {
coin._y = coin._y + speed;
};
Symbol 1648 MovieClip Frame 2
coinName = "coin50-";
drop = function (obj) {
result = null;
coinNo = _parent.coinId;
_parent.coinId++;
this.duplicateMovieClip(coinName + coinNo, 100 + coinNo);
ptObj = new Object();
ptObj.x = obj._x;
ptObj.y = obj._y;
obj._parent.localToGlobal(ptObj);
_parent.globalToLocal(ptObj);
_parent[coinName + coinNo]._x = ptObj.x;
_parent[coinName + coinNo]._y = ptObj.y;
_parent[coinName + coinNo]._visible = true;
_parent[coinName + coinNo].gotoAndPlay("drop");
_root.game.addCoin(_parent[coinName + coinNo]);
result = _parent[coinName + coinNo];
return(result);
};
stop();
Symbol 1648 MovieClip Frame 3
checaColisao();
Symbol 1648 MovieClip Frame 4
checaColisao();
Symbol 1648 MovieClip Frame 5
checaColisao();
if ((((coin._y < (y - 800)) || (coin._y > (y + 800))) || (coin._x < (x - 600))) || (coin._x > (x + 600))) {
this.removeMovieClip();
this.unloadMovie();
}
gotoAndPlay ("dropCont");
Symbol 1650 MovieClip Frame 30
gotoAndPlay ("start");
Symbol 1650 MovieClip Frame 41
_parent.removeMovieClip();
Symbol 1651 MovieClip Frame 1
speed = 1;
money = 100;
y = coin._y;
x = coin._x;
status = "stop";
get = function () {
status = "got";
speed = 1;
coin.gotoAndPlay("get");
};
checaColisao = function () {
coin._y = coin._y + speed;
};
Symbol 1651 MovieClip Frame 2
coinName = "coin100-";
drop = function (obj) {
result = null;
coinNo = _parent.coinId;
_parent.coinId++;
this.duplicateMovieClip(coinName + coinNo, 100 + coinNo);
ptObj = new Object();
ptObj.x = obj._x;
ptObj.y = obj._y;
obj._parent.localToGlobal(ptObj);
_parent.globalToLocal(ptObj);
_parent[coinName + coinNo]._x = ptObj.x;
_parent[coinName + coinNo]._y = ptObj.y;
_parent[coinName + coinNo]._visible = true;
_parent[coinName + coinNo].gotoAndPlay("drop");
_root.game.addCoin(_parent[coinName + coinNo]);
result = _parent[coinName + coinNo];
return(result);
};
stop();
Symbol 1651 MovieClip Frame 3
checaColisao();
Symbol 1651 MovieClip Frame 4
checaColisao();
Symbol 1651 MovieClip Frame 5
checaColisao();
if ((((coin._y < (y - 800)) || (coin._y > (y + 800))) || (coin._x < (x - 600))) || (coin._x > (x + 600))) {
this.removeMovieClip();
this.unloadMovie();
}
gotoAndPlay ("dropCont");
Symbol 1653 MovieClip Frame 30
gotoAndPlay ("start");
Symbol 1653 MovieClip Frame 41
_parent.removeMovieClip();
Symbol 1654 MovieClip Frame 1
speed = 1;
money = 200;
y = coin._y;
x = coin._x;
status = "stop";
get = function () {
status = "got";
speed = 1;
coin.gotoAndPlay("get");
};
checaColisao = function () {
coin._y = coin._y + speed;
};
Symbol 1654 MovieClip Frame 2
coinName = "coin200-";
drop = function (obj) {
result = null;
coinNo = _parent.coinId;
_parent.coinId++;
this.duplicateMovieClip(coinName + coinNo, 100 + coinNo);
ptObj = new Object();
ptObj.x = obj._x;
ptObj.y = obj._y;
obj._parent.localToGlobal(ptObj);
_parent.globalToLocal(ptObj);
_parent[coinName + coinNo]._x = ptObj.x;
_parent[coinName + coinNo]._y = ptObj.y;
_parent[coinName + coinNo]._visible = true;
_parent[coinName + coinNo].gotoAndPlay("drop");
_root.game.addCoin(_parent[coinName + coinNo]);
result = _parent[coinName + coinNo];
return(result);
};
stop();
Symbol 1654 MovieClip Frame 3
checaColisao();
Symbol 1654 MovieClip Frame 4
checaColisao();
Symbol 1654 MovieClip Frame 5
checaColisao();
if ((((coin._y < (y - 800)) || (coin._y > (y + 800))) || (coin._x < (x - 600))) || (coin._x > (x + 600))) {
this.removeMovieClip();
this.unloadMovie();
}
gotoAndPlay ("dropCont");
Symbol 1656 MovieClip Frame 30
gotoAndPlay ("start");
Symbol 1656 MovieClip Frame 41
_parent.removeMovieClip();
Symbol 1657 MovieClip Frame 1
speed = 1;
money = 500;
y = coin._y;
x = coin._x;
status = "stop";
get = function () {
status = "got";
coin.gotoAndPlay("get");
};
checaColisao = function () {
coin._y = coin._y + speed;
};
Symbol 1657 MovieClip Frame 2
coinName = "coin500-";
drop = function (obj) {
result = null;
coinNo = _parent.coinId;
_parent.coinId++;
this.duplicateMovieClip(coinName + coinNo, 100 + coinNo);
ptObj = new Object();
ptObj.x = obj._x;
ptObj.y = obj._y;
obj._parent.localToGlobal(ptObj);
_parent.globalToLocal(ptObj);
_parent[coinName + coinNo]._x = ptObj.x;
_parent[coinName + coinNo]._y = ptObj.y;
_parent[coinName + coinNo]._visible = true;
_parent[coinName + coinNo].gotoAndPlay("drop");
_root.game.addCoin(_parent[coinName + coinNo]);
result = _parent[coinName + coinNo];
return(result);
};
stop();
Symbol 1657 MovieClip Frame 3
checaColisao();
Symbol 1657 MovieClip Frame 4
checaColisao();
Symbol 1657 MovieClip Frame 5
checaColisao();
if ((((coin._y < (y - 800)) || (coin._y > (y + 800))) || (coin._x < (x - 600))) || (coin._x > (x + 600))) {
this.removeMovieClip();
this.unloadMovie();
}
gotoAndPlay ("dropCont");
Symbol 1662 MovieClip Frame 40
gotoAndPlay ("start");
Symbol 1662 MovieClip Frame 51
_parent.removeMovieClip();
Symbol 1663 MovieClip Frame 1
speed = 2;
money = 1000;
y = coin._y;
x = coin._x;
status = "stop";
get = function () {
status = "got";
coin.gotoAndPlay("get");
};
checaColisao = function () {
coin._y = coin._y + speed;
};
Symbol 1663 MovieClip Frame 2
coinName = "coin1K-";
drop = function (obj) {
result = null;
coinNo = _parent.coinId;
_parent.coinId++;
this.duplicateMovieClip(coinName + coinNo, 100 + coinNo);
ptObj = new Object();
ptObj.x = obj._x;
ptObj.y = obj._y;
obj._parent.localToGlobal(ptObj);
_parent.globalToLocal(ptObj);
_parent[coinName + coinNo]._x = ptObj.x;
_parent[coinName + coinNo]._y = ptObj.y;
_parent[coinName + coinNo]._visible = true;
_parent[coinName + coinNo].gotoAndPlay("drop");
_root.game.addCoin(_parent[coinName + coinNo]);
result = _parent[coinName + coinNo];
return(result);
};
stop();
Symbol 1663 MovieClip Frame 3
checaColisao();
Symbol 1663 MovieClip Frame 4
checaColisao();
Symbol 1663 MovieClip Frame 5
checaColisao();
if ((((coin._y < (y - 800)) || (coin._y > (y + 800))) || (coin._x < (x - 600))) || (coin._x > (x + 600))) {
this.removeMovieClip();
this.unloadMovie();
}
gotoAndPlay ("dropCont");
Symbol 1665 MovieClip Frame 40
gotoAndPlay ("start");
Symbol 1665 MovieClip Frame 51
_parent.removeMovieClip();
Symbol 1666 MovieClip Frame 1
speed = 2;
money = 2000;
y = coin._y;
x = coin._x;
status = "stop";
get = function () {
status = "got";
coin.gotoAndPlay("get");
};
checaColisao = function () {
coin._y = coin._y + speed;
};
Symbol 1666 MovieClip Frame 2
coinName = "coin2K-";
drop = function (obj) {
result = null;
coinNo = _parent.coinId;
_parent.coinId++;
this.duplicateMovieClip(coinName + coinNo, 100 + coinNo);
ptObj = new Object();
ptObj.x = obj._x;
ptObj.y = obj._y;
obj._parent.localToGlobal(ptObj);
_parent.globalToLocal(ptObj);
_parent[coinName + coinNo]._x = ptObj.x;
_parent[coinName + coinNo]._y = ptObj.y;
_parent[coinName + coinNo]._visible = true;
_parent[coinName + coinNo].gotoAndPlay("drop");
_root.game.addCoin(_parent[coinName + coinNo]);
result = _parent[coinName + coinNo];
return(result);
};
stop();
Symbol 1666 MovieClip Frame 3
checaColisao();
Symbol 1666 MovieClip Frame 4
checaColisao();
Symbol 1666 MovieClip Frame 5
checaColisao();
if ((((coin._y < (y - 800)) || (coin._y > (y + 800))) || (coin._x < (x - 600))) || (coin._x > (x + 600))) {
this.removeMovieClip();
this.unloadMovie();
}
gotoAndPlay ("dropCont");
Symbol 1668 MovieClip Frame 40
gotoAndPlay ("start");
Symbol 1668 MovieClip Frame 51
_parent.removeMovieClip();
Symbol 1669 MovieClip Frame 1
speed = 2;
money = 5000;
y = coin._y;
x = coin._x;
status = "stop";
get = function () {
status = "got";
coin.gotoAndPlay("get");
};
checaColisao = function () {
coin._y = coin._y + speed;
};
Symbol 1669 MovieClip Frame 2
coinName = "coin5K-";
drop = function (obj) {
result = null;
coinNo = _parent.coinId;
_parent.coinId++;
this.duplicateMovieClip(coinName + coinNo, 100 + coinNo);
ptObj = new Object();
ptObj.x = obj._x;
ptObj.y = obj._y;
obj._parent.localToGlobal(ptObj);
_parent.globalToLocal(ptObj);
_parent[coinName + coinNo]._x = ptObj.x;
_parent[coinName + coinNo]._y = ptObj.y;
_parent[coinName + coinNo]._visible = true;
_parent[coinName + coinNo].gotoAndPlay("drop");
_root.game.addCoin(_parent[coinName + coinNo]);
result = _parent[coinName + coinNo];
return(result);
};
stop();
Symbol 1669 MovieClip Frame 3
checaColisao();
Symbol 1669 MovieClip Frame 4
checaColisao();
Symbol 1669 MovieClip Frame 5
checaColisao();
if ((((coin._y < (y - 800)) || (coin._y > (y + 800))) || (coin._x < (x - 600))) || (coin._x > (x + 600))) {
this.removeMovieClip();
this.unloadMovie();
}
gotoAndPlay ("dropCont");
Symbol 1671 MovieClip Frame 40
gotoAndPlay ("start");
Symbol 1671 MovieClip Frame 51
_parent.removeMovieClip();
Symbol 1672 MovieClip Frame 1
speed = 2;
money = 10000;
y = coin._y;
x = coin._x;
status = "stop";
get = function () {
status = "got";
speed = 1;
coin.gotoAndPlay("get");
};
checaColisao = function () {
coin._y = coin._y + speed;
};
Symbol 1672 MovieClip Frame 2
coinName = "coin10K-";
drop = function (obj) {
result = null;
coinNo = _parent.coinId;
_parent.coinId++;
this.duplicateMovieClip(coinName + coinNo, 100 + coinNo);
ptObj = new Object();
ptObj.x = obj._x;
ptObj.y = obj._y;
obj._parent.localToGlobal(ptObj);
_parent.globalToLocal(ptObj);
_parent[coinName + coinNo]._x = ptObj.x;
_parent[coinName + coinNo]._y = ptObj.y;
_parent[coinName + coinNo]._visible = true;
_parent[coinName + coinNo].gotoAndPlay("drop");
_root.game.addCoin(_parent[coinName + coinNo]);
result = _parent[coinName + coinNo];
return(result);
};
stop();
Symbol 1672 MovieClip Frame 3
checaColisao();
Symbol 1672 MovieClip Frame 4
checaColisao();
Symbol 1672 MovieClip Frame 5
checaColisao();
if ((((coin._y < (y - 800)) || (coin._y > (y + 800))) || (coin._x < (x - 600))) || (coin._x > (x + 600))) {
this.removeMovieClip();
this.unloadMovie();
}
gotoAndPlay ("dropCont");
Symbol 1686 MovieClip Frame 1
_root.changeMusica("musica- bonus");
Symbol 1686 MovieClip Frame 19
_parent.canExit = true;
stop();
Symbol 1690 MovieClip Frame 1
_root.changeMusica("musica- bonus");
Symbol 1690 MovieClip Frame 19
_parent.canExit = true;
stop();
Symbol 1693 MovieClip Frame 1
_root.changeMusica("musica- bonus");
Symbol 1693 MovieClip Frame 19
_parent.canExit = true;
stop();
Symbol 1697 MovieClip Frame 1
_root.changeMusica("musica- bonus");
Symbol 1697 MovieClip Frame 19
_parent.canExit = true;
stop();
Symbol 1698 MovieClip Frame 1
status = "off";
canExit = false;
stop();
this._visible = false;
goNextFase = function () {
goto = "exit";
if (_root.playData.selLvl == 1) {
if (((!_root.playData.specialAfterburn) && (_root.dificuldade != "easiest")) && (_root.dificuldade != "easy")) {
_root.playData.specialAfterburn = true;
goto = "newSpecialAfterburn";
}
} else if (_root.playData.selLvl == 2) {
if (((!_root.playData.specialAliados) && (_root.dificuldade != "easiest")) && (_root.dificuldade != "easy")) {
_root.playData.specialAliados = true;
goto = "newSpecialInvulnerable";
}
} else if (_root.playData.selLvl == 3) {
if (((!_root.playData.specialEvasao) && (_root.dificuldade != "easiest")) && (_root.dificuldade != "easy")) {
_root.playData.specialEvasao = true;
goto = "newSpecialInvulnerable";
}
} else if (_root.playData.selLvl == 4) {
if (((!_root.playData.specialWeapon) && (_root.dificuldade != "easiest")) && (_root.dificuldade != "easy")) {
_root.playData.specialWeapon = true;
goto = "newSpecialWeapon";
}
}
if (_root.playData.level == _root.playData.selLvl) {
_root.playData.level++;
}
_root.savePlayer();
if (goto == "exit") {
exit();
} else {
gotoAndPlay(goto);
}
};
exit = function () {
if (_root.playData.selLvl < 4) {
_root.moviePos = "fase" + _root.playData.selLvl;
} else {
_root.moviePos = "end";
}
_root.gotoAndPlay("movie");
};
Symbol 1698 MovieClip Frame 3
if (_root.game.gameOver.status == "on") {
gotoAndStop ("off");
} else {
status = "on";
canExit = false;
this._visible = true;
_root.game.player.pauseControl = true;
onEnterFrame = function () {
if (Key.isDown(90) || (Key.isDown(88))) {
if (canExit) {
goNextFase();
}
}
};
_root.stopMusica();
}
Symbol 1698 MovieClip Frame 50
canExit = true;
Symbol 1698 MovieClip Frame 251
goNextFase();
stop();
Symbol 1698 MovieClip Frame 252
canExit = false;
onEnterFrame = function () {
if (Key.isDown(90) || (Key.isDown(88))) {
if (canExit) {
exit();
}
}
};
Symbol 1698 MovieClip Frame 253
stop();
Symbol 1698 MovieClip Frame 254
canExit = false;
onEnterFrame = function () {
if (Key.isDown(90) || (Key.isDown(88))) {
if (canExit) {
exit();
}
}
};
Symbol 1698 MovieClip Frame 255
stop();
Symbol 1698 MovieClip Frame 256
canExit = false;
onEnterFrame = function () {
if (Key.isDown(90) || (Key.isDown(88))) {
if (canExit) {
exit();
}
}
};
Symbol 1698 MovieClip Frame 257
stop();
Symbol 1698 MovieClip Frame 258
canExit = false;
onEnterFrame = function () {
if (Key.isDown(90) || (Key.isDown(88))) {
if (canExit) {
exit();
}
}
};
Symbol 1698 MovieClip Frame 259
stop();
Symbol 1700 MovieClip Frame 40
gotoAndPlay ("start");
Symbol 1700 MovieClip Frame 51
_parent.removeMovieClip();
Symbol 1701 MovieClip Frame 1
speed = 2;
money = 20000;
y = coin._y;
x = coin._x;
status = "stop";
get = function () {
status = "got";
coin.gotoAndPlay("get");
};
checaColisao = function () {
coin._y = coin._y + speed;
};
Symbol 1701 MovieClip Frame 2
coinName = "coin20K-";
drop = function (obj) {
result = null;
coinNo = _parent.coinId;
_parent.coinId++;
this.duplicateMovieClip(coinName + coinNo, 100 + coinNo);
ptObj = new Object();
ptObj.x = obj._x;
ptObj.y = obj._y;
obj._parent.localToGlobal(ptObj);
_parent.globalToLocal(ptObj);
_parent[coinName + coinNo]._x = ptObj.x;
_parent[coinName + coinNo]._y = ptObj.y;
_parent[coinName + coinNo]._visible = true;
_parent[coinName + coinNo].gotoAndPlay("drop");
_root.game.addCoin(_parent[coinName + coinNo]);
result = _parent[coinName + coinNo];
return(result);
};
stop();
Symbol 1701 MovieClip Frame 3
checaColisao();
Symbol 1701 MovieClip Frame 4
checaColisao();
Symbol 1701 MovieClip Frame 5
checaColisao();
if ((((coin._y < (y - 800)) || (coin._y > (y + 800))) || (coin._x < (x - 600))) || (coin._x > (x + 600))) {
this.removeMovieClip();
this.unloadMovie();
}
gotoAndPlay ("dropCont");
Symbol 1703 MovieClip Frame 40
gotoAndPlay ("start");
Symbol 1703 MovieClip Frame 51
_parent.removeMovieClip();
Symbol 1704 MovieClip Frame 1
speed = 2;
money = 50000;
y = coin._y;
x = coin._x;
status = "stop";
get = function () {
status = "got";
coin.gotoAndPlay("get");
};
checaColisao = function () {
coin._y = coin._y + speed;
};
Symbol 1704 MovieClip Frame 2
coinName = "coin50K-";
drop = function (obj) {
result = null;
coinNo = _parent.coinId;
_parent.coinId++;
this.duplicateMovieClip(coinName + coinNo, 100 + coinNo);
ptObj = new Object();
ptObj.x = obj._x;
ptObj.y = obj._y;
obj._parent.localToGlobal(ptObj);
_parent.globalToLocal(ptObj);
_parent[coinName + coinNo]._x = ptObj.x;
_parent[coinName + coinNo]._y = ptObj.y;
_parent[coinName + coinNo]._visible = true;
_parent[coinName + coinNo].gotoAndPlay("drop");
_root.game.addCoin(_parent[coinName + coinNo]);
result = _parent[coinName + coinNo];
return(result);
};
stop();
Symbol 1704 MovieClip Frame 3
checaColisao();
Symbol 1704 MovieClip Frame 4
checaColisao();
Symbol 1704 MovieClip Frame 5
checaColisao();
if ((((coin._y < (y - 800)) || (coin._y > (y + 800))) || (coin._x < (x - 600))) || (coin._x > (x + 600))) {
this.removeMovieClip();
this.unloadMovie();
}
gotoAndPlay ("dropCont");
Symbol 1706 MovieClip Frame 1
stop();
Symbol 1706 MovieClip Frame 51
_parent.removeMovieClip();
Symbol 1707 MovieClip Frame 1
speed = 3;
money = 100000 /* 0x0186A0 */;
y = coin._y;
x = coin._x;
status = "stop";
get = function () {
status = "got";
coin.gotoAndPlay("get");
};
checaColisao = function () {
coin._y = coin._y + speed;
};
Symbol 1707 MovieClip Frame 2
coinName = "coin100K-";
drop = function (obj) {
result = null;
coinNo = _parent.coinId;
_parent.coinId++;
this.duplicateMovieClip(coinName + coinNo, 100 + coinNo);
ptObj = new Object();
ptObj.x = obj._x;
ptObj.y = obj._y;
obj._parent.localToGlobal(ptObj);
_parent.globalToLocal(ptObj);
_parent[coinName + coinNo]._x = ptObj.x;
_parent[coinName + coinNo]._y = ptObj.y;
_parent[coinName + coinNo]._visible = true;
_parent[coinName + coinNo].gotoAndPlay("drop");
_root.game.addCoin(_parent[coinName + coinNo]);
result = _parent[coinName + coinNo];
return(result);
};
stop();
Symbol 1707 MovieClip Frame 3
checaColisao();
Symbol 1707 MovieClip Frame 4
checaColisao();
Symbol 1707 MovieClip Frame 5
checaColisao();
if ((((coin._y < (y - 800)) || (coin._y > (y + 800))) || (coin._x < (x - 600))) || (coin._x > (x + 600))) {
this.removeMovieClip();
this.unloadMovie();
}
gotoAndPlay ("dropCont");
Symbol 1709 MovieClip Frame 1
stop();
Symbol 1709 MovieClip Frame 51
_parent.removeMovieClip();
Symbol 1710 MovieClip Frame 1
speed = 3;
money = 200000 /* 0x030D40 */;
y = coin._y;
x = coin._x;
status = "stop";
get = function () {
status = "got";
coin.gotoAndPlay("get");
};
checaColisao = function () {
coin._y = coin._y + speed;
};
Symbol 1710 MovieClip Frame 2
coinName = "coin200K-";
drop = function (obj) {
result = null;
coinNo = _parent.coinId;
_parent.coinId++;
this.duplicateMovieClip(coinName + coinNo, 100 + coinNo);
ptObj = new Object();
ptObj.x = obj._x;
ptObj.y = obj._y;
obj._parent.localToGlobal(ptObj);
_parent.globalToLocal(ptObj);
_parent[coinName + coinNo]._x = ptObj.x;
_parent[coinName + coinNo]._y = ptObj.y;
_parent[coinName + coinNo]._visible = true;
_parent[coinName + coinNo].gotoAndPlay("drop");
_root.game.addCoin(_parent[coinName + coinNo]);
result = _parent[coinName + coinNo];
return(result);
};
stop();
Symbol 1710 MovieClip Frame 3
checaColisao();
Symbol 1710 MovieClip Frame 4
checaColisao();
Symbol 1710 MovieClip Frame 5
checaColisao();
if ((((coin._y < (y - 800)) || (coin._y > (y + 800))) || (coin._x < (x - 600))) || (coin._x > (x + 600))) {
this.removeMovieClip();
this.unloadMovie();
}
gotoAndPlay ("dropCont");
Symbol 1712 MovieClip Frame 1
stop();
Symbol 1712 MovieClip Frame 51
_parent.removeMovieClip();
Symbol 1713 MovieClip Frame 1
speed = 3;
money = 500000 /* 0x07A120 */;
y = coin._y;
x = coin._x;
status = "stop";
get = function () {
status = "got";
coin.gotoAndPlay("get");
};
checaColisao = function () {
coin._y = coin._y + speed;
};
Symbol 1713 MovieClip Frame 2
coinName = "coin500K-";
drop = function (obj) {
result = null;
coinNo = _parent.coinId;
_parent.coinId++;
this.duplicateMovieClip(coinName + coinNo, 100 + coinNo);
ptObj = new Object();
ptObj.x = obj._x;
ptObj.y = obj._y;
obj._parent.localToGlobal(ptObj);
_parent.globalToLocal(ptObj);
_parent[coinName + coinNo]._x = ptObj.x;
_parent[coinName + coinNo]._y = ptObj.y;
_parent[coinName + coinNo]._visible = true;
_parent[coinName + coinNo].gotoAndPlay("drop");
_root.game.addCoin(_parent[coinName + coinNo]);
result = _parent[coinName + coinNo];
return(result);
};
stop();
Symbol 1713 MovieClip Frame 3
checaColisao();
Symbol 1713 MovieClip Frame 4
checaColisao();
Symbol 1713 MovieClip Frame 5
checaColisao();
if ((((coin._y < (y - 800)) || (coin._y > (y + 800))) || (coin._x < (x - 600))) || (coin._x > (x + 600))) {
this.removeMovieClip();
this.unloadMovie();
}
gotoAndPlay ("dropCont");
Symbol 1723 Button
on (release) {
nextFrame();
}
Symbol 1725 Button
on (release) {
stopDialog();
}
Symbol 1735 MovieClip Frame 2
status = "off";
map = 0;
playDialog = function (dlg, mapno) {
status = "on";
map = mapno;
_root.game.map["map" + mapno].stop();
_root.game.player.pauseControl = true;
gotoAndStop(dlg);
};
stopDialog = function () {
if (status == "on") {
status = "off";
gotoAndStop ("stop");
_root.game.map["map" + map].play();
_root.game.player.pauseControl = false;
}
};
stop();
Symbol 1736 MovieClip Frame 1
screenWidth = 800;
screenHeight = 640;
noEnemies = 0;
enemies = new Array();
noAllies = 0;
allies = new Array();
noShots = 0;
eShots = new Array();
noCoins = 0;
coinId = 1;
moedas = new Array();
special = 3;
setLevel = function (no) {
panel.txtLvl = no;
};
addMoney = function (no) {
if ((no != null) && (no > 0)) {
_root.playData.score = _root.playData.score + no;
_root.playData.money = _root.playData.money + no;
money = _root.playData.money;
score = _root.playData.score;
if (_root.dificuldade != "medium") {
if (_root.dificuldade == "easiest") {
money = money * 2;
score = Math.round(score / 8);
} else if (_root.dificuldade == "easy") {
score = Math.round(score / 4);
} else if (_root.dificuldade == "hard") {
score = score * 2;
} else if (_root.dificuldade == "hardest") {
score = score * 4;
}
}
panel.txtMoney = money;
panel.txtScore = score;
}
};
updateSpecial = function () {
if (special < 3) {
panel.sp3._visible = false;
}
if (special < 2) {
panel.sp2._visible = false;
}
if (special < 1) {
panel.sp1._visible = false;
}
};
useSpecial = function () {
if (special > 0) {
panel["sp" + special].gotoAndPlay("fadeOut");
special--;
}
};
special2 = function () {
if (!map.specialAlly.active) {
useSpecial();
map.specialAlly.active = true;
map.groupCreator.createAllies(map.specialAlly, 100, 500, true, 750, 660, true, 5, 12);
}
};
special3 = function () {
if (player.ship.turbo <= 0) {
useSpecial();
player.ship.shipSkin.go("turbo");
player.ship.turbo = 5;
}
};
die = function () {
restorePlayer();
gameOver._visible = true;
gameOver.gotoAndPlay("play");
};
updatePnlWeapon = function () {
val = player.shotMissile.qtde;
if (val == null) {
val = "none";
}
panel.txtWeapon2 = val;
};
start = function () {
updatePnlWeapon();
setLevel(_root.playData.selLvl);
panel.txtMoney = _root.playData.money;
};
getNextEnemyPos = function () {
result = -1;
lp = 0;
while ((lp < noEnemies) && (result == -1)) {
if (!enemies[lp].flagExist) {
result = lp;
break;
}
lp++;
}
if (result == -1) {
result = noEnemies;
noEnemies++;
if (noEnemies > 99) {
noEnemies = 0;
}
}
return(result);
};
insertEnemy = function (ship, pos) {
enemies[pos] = ship;
ship.flagExist = true;
return(ship);
};
addEnemy = function (ship) {
result = getNextEnemyPos();
insertEnemy(ship, result);
return(result);
};
addEShot = function (shot) {
eShots[noShots] = shot;
noShots++;
if (noShots > 99) {
noShots = 0;
}
};
clearShots = function () {
lp = 0;
while (lp < noShots) {
eShots[lp].removeMovieClip();
lp++;
}
noShots = 0;
};
addAlly = function (ship) {
allies[noAllies] = ship;
result = noAllies;
noAllies++;
if (noAllies > 99) {
noAllies = 0;
}
return(result);
};
addCoin = function (coin) {
moedas[noCoins] = coin;
noCoins++;
if (noCoins > 99) {
noCoins = noCoins - 99;
}
if (coinId > 99) {
coinId = coinId - 99;
}
};
hitEnemy = function (enemyNo, damage) {
if (_root.dificuldade != "normal") {
if (_root.dificuldade == "easiest") {
damage = damage * 3;
} else if (_root.dificuldade == "easy") {
damage = damage * 2;
} else if (_root.dificuldade == "hard") {
damage = damage / 2;
} else if (_root.dificuldade == "hardest") {
damage = damage / 4;
}
}
if (enemies[enemyNo].hp > 0) {
if (enemies[enemyNo].shielded == true) {
enemies[enemyNo].hitShield(damage);
} else {
enemies[enemyNo].hp = enemies[enemyNo].hp - damage;
enemies[enemyNo].hit(damage);
if (enemies[enemyNo].hp <= 0) {
enemies[enemyNo].blow();
} else {
enemies[enemyNo].gotoHit();
}
}
}
};
hitAlly = function (allyNo, damage) {
if (allies[allyNo].hp > 0) {
allies[allyNo].hp = allies[allyNo].hp - damage;
allies[allyNo].getHit();
if (allies[allyNo].hp <= 0) {
allies[allyNo].blow();
}
}
};
setShield = function (valor) {
panel.shieldBar.gotoAndStop(Math.round(400 - (valor * 4)));
};
setLife = function (valor) {
panel.lifeBar.gotoAndStop(Math.round(400 - (valor * 4)));
};
setEnergy = function (valor) {
panel.energyBar.gotoAndStop(Math.round(400 - (valor * 4)));
};
updateShield = function () {
setShield((player.ship.shld * 100) / player.ship.maxShld);
};
updateLife = function () {
setLife((player.ship.hp * 100) / player.ship.maxHp);
};
updateEnergy = function () {
cur = player.ship.curEne;
if (cur < 0) {
cur = 0;
}
val = Math.round((cur * 100) / player.ship.ene);
if (val < 1) {
val = 1;
} else if (val > 400) {
val = 400;
}
setEnergy(val);
};
newEnemy = function (modelo, posX, posY) {
no = getNextEnemyPos();
pt = new Object();
pt.x = posX;
pt.y = posY;
modelo._parent.globalToLocal(pt);
modelo.duplicateMovieClip("enemy" + no, 200 + no);
result = insertEnemy(modelo._parent["enemy" + no], no);
modelo._parent["enemy" + no]._x = pt.x;
modelo._parent["enemy" + no]._y = pt.y;
modelo._parent["enemy" + no].gotoAndPlay("start");
return(result);
};
newAlly = function (modelo, posX, posY) {
no = noAllies;
pt = new Object();
pt.x = posX;
pt.y = posY;
modelo._parent.globalToLocal(pt);
modelo.duplicateMovieClip("ally" + no, 300 + no);
result = addAlly(modelo._parent["ally" + no]);
modelo._parent["ally" + no]._x = pt.x;
modelo._parent["ally" + no]._y = pt.y;
modelo._parent["ally" + no].gotoAndPlay("start");
return(result);
};
winFase = function () {
if (gameOver.status == "off") {
map["map" + mapno].gotoAndPlay("win");
win._visible = true;
win.gotoAndPlay("play");
}
};
start();
Symbol 1736 MovieClip Frame 2
stop();
Symbol 1741 Button
on (press) {
_root.playData.selLvl = 1;
_root.gotoAndStop("game");
}
Symbol 1744 Button
on (press) {
gotoAndPlay ("enterShop");
}
Symbol 1748 Button
on (press) {
_root.playData.selLvl = 2;
_root.gotoAndStop("game");
}
Symbol 1749 Button
on (press) {
_root.playData.selLvl = 1;
_root.gotoAndStop("game");
}
Symbol 1753 Button
on (press) {
_root.playData.selLvl = 3;
_root.gotoAndStop("game");
}
Symbol 1754 Button
on (press) {
_root.playData.selLvl = 2;
_root.gotoAndStop("game");
}
Symbol 1757 Button
on (press) {
_root.playData.selLvl = 4;
_root.gotoAndStop("game");
}
Symbol 1759 Button
on (press) {
_root.playData.selLvl = 3;
_root.gotoAndStop("game");
}
Symbol 1761 Button
on (press) {
_root.playData.selLvl = 4;
_root.gotoAndStop("game");
}
Symbol 1768 MovieClip Frame 24
stop();
Symbol 1769 MovieClip Frame 24
stop();
Symbol 1770 MovieClip Frame 1
gotoAndPlay ("exitShop");
Symbol 1770 MovieClip Frame 30
_root.restorePlayer();
_root.gotoAndPlay("shop");
Symbol 1770 MovieClip Frame 53
gotoAndStop("fase" + _root.playData.level);