Frame 1
var my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
this.menu = my_cm;
MochiAd.showPreloaderAd({id:"e8d1331d0dbdab78", res:"800x600"});
Frame 3
if (_root.getBytesLoaded() < _root.getBytesTotal()) {
gotoAndStop ("loading");
}
Frame 5
stop();
Frame 7
function showBtns(Void) {
i = totalBtn - 1;
setDelay(function (Void) {
this["btn" + i].show();
if ((--i) < 0) {
clearDelay();
}
}, 4);
}
function hideBtns(Void) {
satellite_mc.onEnterFrame = function () {
this._alpha = this._alpha / 1.2;
};
i = 0;
setDelay(function (Void) {
this["btn" + i].hide();
if ((++i) >= totalBtn) {
clearDelay();
}
}, 4);
}
function stageClear(Void) {
game.pause = true;
if (game._currentframe == game._totalframes) {
gotoAndStop ("win");
} else {
gotoAndStop ("stageClear");
}
}
function finishGameRun(Void) {
game.pause = true;
gameEffect.showAll();
setDelay(function () {
clearDelay();
gameEffect.hide();
gameEffect.onHide = function () {
setDelay(function () {
clearDelay();
nextFrame();
}, 30);
};
}, 3);
}
function finishGameRun2(Void) {
scoreNums.num = (score = game.score);
totalBtn = 7;
showBtns();
btn1.press = function () {
submit_mc.gotoAndStop("submit");
};
fwgCtrl.initMmBtn(btn2);
fwgCtrl.initBtns(null, btn3, btn4, btn5, btn6);
fwgCtrl.gotoMainMenu = function () {
game.clearAll();
_root.onEnterFrame = function () {
if (((this._alpha = this._alpha / 1.5)) < 5) {
delete this.onEnterFrame;
this._alpha = 100;
delete this.onPress;
this.enabled = true;
this.gotoAndStop("mainMenu");
}
};
};
}
function setDelay(f, _totalDelayFrame) {
totalDelayFrame = _totalDelayFrame;
delayF = f;
this.onEnterFrame = function () {
if ((++delayFrame) >= totalDelayFrame) {
delayFrame = 0;
delayF();
}
};
}
function clearDelay(Void) {
delete this.onEnterFrame;
delayF = null;
}
stop();
var delayFrame;
var totalDelayFrame;
if (fwgCtrl == undefined) {
var fwgCtrl = new FwgCtrl(this, "tank2007");
fwgCtrl.musicStart("NG38866");
}
fwgCtrl.initBtns(btn0, btn1, btn2, btn3, btn4, btn5);
fwgCtrl.playGame = function () {
hideBtns();
btn5.onHide = function () {
onHideBtns();
};
onHideBtns = function () {
gotoAndStop ("prevGame");
mainEffect.hide();
mainEffect.onHide = function () {
gotoAndStop ("game");
};
};
};
fwgCtrl.gotoMainMenu = function (Void) {
gotoAndStop ("prevMainMenu");
};
fwgCtrl.showInfo = function (Void) {
infoEffect.show();
};
fwgCtrl.pause = function (Void) {
return(game.pause());
};
mainEffect.show();
mainEffect.onShow = function () {
showBtns();
btn0.onShow = function () {
nextFrame();
};
};
var i;
var totalBtn = 6;
var run;
var onHideBtns;
gameEffect.removeMovieClip();
Instance of Symbol 487 MovieClip [RecEffect] "mainEffect" in Frame 7
//component parameters
onClipEvent (construct) {
maskMc = "index_bg";
}
Instance of Symbol 487 MovieClip [RecEffect] "music_credits_effect" in Frame 7
//component parameters
onClipEvent (construct) {
maskMc = "music_credits_";
}
Instance of Symbol 487 MovieClip [RecEffect] "infoEffect" in Frame 7
//component parameters
onClipEvent (construct) {
maskMc = "key_setting";
}
Frame 9
if (infoShowed) {
game.pause = false;
hitRec._visible = false;
} else {
game.pause = true;
hitRec._visible = true;
}
Frame 10
if (infoShowed) {
game.pause = false;
} else {
game.pause = true;
info_mc.gotoAndPlay(2);
infoShowed = true;
}
Frame 11
game.pause = true;
gameEffect.showAll();
setDelay(function () {
clearDelay();
gameEffect.hide();
game.stageClear();
gameEffect.onHide = function () {
gotoAndStop ("showResult");
};
}, 30);
Instance of Symbol 487 MovieClip [RecEffect] "gameEffect" in Frame 11
//component parameters
onClipEvent (construct) {
maskMc = "game";
}
Frame 12
setDelay(function () {
clearDelay();
game.nextStage();
gameEffect.show();
gameEffect.onShow = function () {
gotoAndStop ("game");
};
}, 30);
Frame 13
game.pause = true;
gameEffect.showAll();
setDelay(function () {
clearDelay();
gameEffect.hide();
gameEffect.onHide = function () {
game.clearAll();
gotoAndStop ("mainMenu");
};
}, 3);
Frame 14
finishGameRun();
Frame 15
finishGameRun2();
btn0.press = function () {
game.continuePlay();
gameEffect.show();
gameEffect.onShow = function () {
gotoAndStop ("game");
};
};
Instance of Symbol 1076 MovieClip "submit_mc" in Frame 15
//component parameters
onClipEvent (construct) {
_game_name = "tank2007";
score_var = "_root.score";
}
Frame 16
finishGameRun();
Frame 17
finishGameRun2();
Instance of Symbol 1076 MovieClip "submit_mc" in Frame 17
//component parameters
onClipEvent (construct) {
_game_name = "tank2007";
score_var = "_root.score";
}
Symbol 5 MovieClip [tree3_piece5] Frame 1
#initclip 221
Object.registerClass("tree3_piece5", Piece);
#endinitclip
Symbol 7 MovieClip [tree3_piece6] Frame 1
#initclip 51
Object.registerClass("tree3_piece6", Piece);
#endinitclip
Symbol 9 MovieClip [tree3_piece7] Frame 1
#initclip 52
Object.registerClass("tree3_piece7", Piece);
#endinitclip
Symbol 11 MovieClip [tree3_piece8] Frame 1
#initclip 53
Object.registerClass("tree3_piece8", Piece);
#endinitclip
Symbol 13 MovieClip [tree3_piece4] Frame 1
#initclip 54
Object.registerClass("tree3_piece4", Piece);
#endinitclip
Symbol 15 MovieClip [tree3_piece3] Frame 1
#initclip 55
Object.registerClass("tree3_piece3", Piece);
#endinitclip
Symbol 17 MovieClip [tree3_piece2] Frame 1
#initclip 56
Object.registerClass("tree3_piece2", Piece);
#endinitclip
Symbol 19 MovieClip [tree3_piece1] Frame 1
#initclip 57
Object.registerClass("tree3_piece1", Piece);
#endinitclip
Symbol 23 MovieClip [rocketSmoke_mc] Frame 22
this.removeMovieClip();
Symbol 29 MovieClip [rocket] Frame 1
#initclip 58
Object.registerClass("rocket", Rocket);
#endinitclip
Symbol 33 MovieClip Frame 1
this._xscale = (this._yscale = random(40) + 60);
Symbol 33 MovieClip Frame 6
gotoAndPlay (2);
Symbol 37 MovieClip [light_flash] Frame 6
stop();
this.removeMovieClip();
Symbol 42 MovieClip [Missile] Frame 1
#initclip 59
Object.registerClass("Missile", Missile);
#endinitclip
Symbol 46 MovieClip [num_mc] Frame 16
this.removeMovieClip();
Symbol 53 MovieClip [house_piece2] Frame 1
#initclip 60
Object.registerClass("house_piece2", Piece);
#endinitclip
Symbol 55 MovieClip [house_piece3] Frame 1
#initclip 61
Object.registerClass("house_piece3", Piece);
#endinitclip
Symbol 57 MovieClip [house_piece4] Frame 1
#initclip 62
Object.registerClass("house_piece4", Piece);
#endinitclip
Symbol 59 MovieClip [house_piece5] Frame 1
#initclip 63
Object.registerClass("house_piece5", Piece);
#endinitclip
Symbol 61 MovieClip [house_piece6] Frame 1
#initclip 64
Object.registerClass("house_piece6", Piece);
#endinitclip
Symbol 63 MovieClip [house_piece7] Frame 1
#initclip 65
Object.registerClass("house_piece7", Piece);
#endinitclip
Symbol 65 MovieClip [house_piece8] Frame 1
#initclip 66
Object.registerClass("house_piece8", Piece);
#endinitclip
Symbol 67 MovieClip [house_piece9] Frame 1
#initclip 67
Object.registerClass("house_piece9", Piece);
#endinitclip
Symbol 69 MovieClip [house_piece10] Frame 1
#initclip 68
Object.registerClass("house_piece10", Piece);
#endinitclip
Symbol 71 MovieClip [house_piece11] Frame 1
#initclip 69
Object.registerClass("house_piece11", Piece);
#endinitclip
Symbol 73 MovieClip [house_piece12] Frame 1
#initclip 70
Object.registerClass("house_piece12", Piece);
#endinitclip
Symbol 75 MovieClip [house_piece13] Frame 1
#initclip 71
Object.registerClass("house_piece13", Piece);
#endinitclip
Symbol 77 MovieClip [house_piece14] Frame 1
#initclip 72
Object.registerClass("house_piece14", Piece);
#endinitclip
Symbol 79 MovieClip [house_piece15] Frame 1
#initclip 73
Object.registerClass("house_piece15", Piece);
#endinitclip
Symbol 81 MovieClip [house_piece1] Frame 1
#initclip 74
Object.registerClass("house_piece1", Piece);
#endinitclip
Symbol 83 MovieClip [house2_piece8] Frame 1
#initclip 75
Object.registerClass("house2_piece8", Piece);
#endinitclip
Symbol 85 MovieClip [house2_piece3] Frame 1
#initclip 76
Object.registerClass("house2_piece3", Piece);
#endinitclip
Symbol 87 MovieClip [house2_piece4] Frame 1
#initclip 77
Object.registerClass("house2_piece4", Piece);
#endinitclip
Symbol 89 MovieClip [hosue2_piece5] Frame 1
#initclip 78
Object.registerClass("hosue2_piece5", Piece);
#endinitclip
Symbol 91 MovieClip [house2_piece6] Frame 1
#initclip 79
Object.registerClass("house2_piece6", Piece);
#endinitclip
Symbol 93 MovieClip [house2_piece7] Frame 1
#initclip 80
Object.registerClass("house2_piece7", Piece);
#endinitclip
Symbol 95 MovieClip [house2_piece2] Frame 1
#initclip 81
Object.registerClass("house2_piece2", Piece);
#endinitclip
Symbol 97 MovieClip [house2_piece1] Frame 1
#initclip 82
Object.registerClass("house2_piece1", Piece);
#endinitclip
Symbol 110 MovieClip [tree1_piece4] Frame 1
#initclip 83
Object.registerClass("tree1_piece4", Piece);
#endinitclip
Symbol 112 MovieClip [tree1_piece3] Frame 1
#initclip 84
Object.registerClass("tree1_piece3", Piece);
#endinitclip
Symbol 114 MovieClip [tree1_piece2] Frame 1
#initclip 85
Object.registerClass("tree1_piece2", Piece);
#endinitclip
Symbol 116 MovieClip [tree1_piece1] Frame 1
#initclip 86
Object.registerClass("tree1_piece1", Piece);
#endinitclip
Symbol 119 MovieClip [tree2_piece5] Frame 1
#initclip 87
Object.registerClass("tree2_piece5", Piece);
#endinitclip
Symbol 121 MovieClip [tree2_piece4] Frame 1
#initclip 88
Object.registerClass("tree2_piece4", Piece);
#endinitclip
Symbol 123 MovieClip [tree2_piece3] Frame 1
#initclip 89
Object.registerClass("tree2_piece3", Piece);
#endinitclip
Symbol 125 MovieClip [tree2_piece2] Frame 1
#initclip 90
Object.registerClass("tree2_piece2", Piece);
#endinitclip
Symbol 127 MovieClip [tree2_piece1] Frame 1
#initclip 91
Object.registerClass("tree2_piece1", Piece);
#endinitclip
Symbol 133 MovieClip [Blood] Frame 1
#initclip 92
Object.registerClass("Blood", Blood);
#endinitclip
Symbol 135 MovieClip [Bullet] Frame 1
#initclip 93
Object.registerClass("Bullet", Bullet);
#endinitclip
Symbol 137 MovieClip [enemy_battery_piece3] Frame 1
#initclip 94
Object.registerClass("enemy_battery_piece3", Piece);
#endinitclip
Symbol 139 MovieClip [enemy_battery_piece2] Frame 1
#initclip 95
Object.registerClass("enemy_battery_piece2", Piece);
#endinitclip
Symbol 141 MovieClip [enemy_battery_piece1] Frame 1
#initclip 96
Object.registerClass("enemy_battery_piece1", Piece);
#endinitclip
Symbol 143 MovieClip [enemy_battery_piece7] Frame 1
#initclip 97
Object.registerClass("enemy_battery_piece7", Piece);
#endinitclip
Symbol 145 MovieClip [enemy_battery_piece6] Frame 1
#initclip 98
Object.registerClass("enemy_battery_piece6", Piece);
#endinitclip
Symbol 147 MovieClip [enemy_battery_piece5] Frame 1
#initclip 99
Object.registerClass("enemy_battery_piece5", Piece);
#endinitclip
Symbol 149 MovieClip [enemy_battery_piece4] Frame 1
#initclip 100
Object.registerClass("enemy_battery_piece4", Piece);
#endinitclip
Symbol 152 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 1
stop();
Symbol 158 MovieClip [enemy_tank_1_piece6] Frame 1
#initclip 101
Object.registerClass("enemy_tank_1_piece6", Piece);
#endinitclip
Symbol 160 MovieClip [enemy_tank_1_piece5] Frame 1
#initclip 102
Object.registerClass("enemy_tank_1_piece5", Piece);
#endinitclip
Symbol 162 MovieClip [enemy_tank_1_piece7] Frame 1
#initclip 103
Object.registerClass("enemy_tank_1_piece7", Piece);
#endinitclip
Symbol 164 MovieClip [enemy_tank_1_piece8] Frame 1
#initclip 104
Object.registerClass("enemy_tank_1_piece8", Piece);
#endinitclip
Symbol 166 MovieClip [enemy_tank_1_piece3] Frame 1
#initclip 105
Object.registerClass("enemy_tank_1_piece3", Piece);
#endinitclip
Symbol 168 MovieClip [enemy_tank_1_piece4] Frame 1
#initclip 106
Object.registerClass("enemy_tank_1_piece4", Piece);
#endinitclip
Symbol 170 MovieClip [enemy_tank_1_piece2] Frame 1
#initclip 107
Object.registerClass("enemy_tank_1_piece2", Piece);
#endinitclip
Symbol 172 MovieClip [enemy_tank_1_piece1] Frame 1
#initclip 108
Object.registerClass("enemy_tank_1_piece1", Piece);
#endinitclip
Symbol 175 MovieClip Frame 1
stop();
Symbol 178 MovieClip [enemy_tank_2_piece10] Frame 1
#initclip 109
Object.registerClass("enemy_tank_2_piece10", Piece);
#endinitclip
Symbol 180 MovieClip [enemy_tank_2_piece11] Frame 1
#initclip 110
Object.registerClass("enemy_tank_2_piece11", Piece);
#endinitclip
Symbol 182 MovieClip [enemy_tank_2_piece9] Frame 1
#initclip 111
Object.registerClass("enemy_tank_2_piece9", Piece);
#endinitclip
Symbol 184 MovieClip [enemy_tank_2_piece7] Frame 1
#initclip 112
Object.registerClass("enemy_tank_2_piece7", Piece);
#endinitclip
Symbol 186 MovieClip [enemy_tank_2_piece8] Frame 1
#initclip 113
Object.registerClass("enemy_tank_2_piece8", Piece);
#endinitclip
Symbol 188 MovieClip [enemy_tank_2_piece3] Frame 1
#initclip 114
Object.registerClass("enemy_tank_2_piece3", Piece);
#endinitclip
Symbol 190 MovieClip [enemy_tank_2_piece4] Frame 1
#initclip 115
Object.registerClass("enemy_tank_2_piece4", Piece);
#endinitclip
Symbol 192 MovieClip [enemy_tank_2_piece6] Frame 1
#initclip 116
Object.registerClass("enemy_tank_2_piece6", Piece);
#endinitclip
Symbol 194 MovieClip [enemy_tank_2_piece5] Frame 1
#initclip 117
Object.registerClass("enemy_tank_2_piece5", Piece);
#endinitclip
Symbol 196 MovieClip [enemy_tank_2_piece2] Frame 1
#initclip 118
Object.registerClass("enemy_tank_2_piece2", Piece);
#endinitclip
Symbol 198 MovieClip [enemy_tank_2_piece1] Frame 1
#initclip 119
Object.registerClass("enemy_tank_2_piece1", Piece);
#endinitclip
Symbol 200 MovieClip Frame 1
stop();
Symbol 203 MovieClip [enemy_tank_3_piece5] Frame 1
#initclip 120
Object.registerClass("enemy_tank_3_piece5", Piece);
#endinitclip
Symbol 205 MovieClip [enemy_tank_3_piece4] Frame 1
#initclip 121
Object.registerClass("enemy_tank_3_piece4", Piece);
#endinitclip
Symbol 207 MovieClip [enemy_tank_3_piece1] Frame 1
#initclip 122
Object.registerClass("enemy_tank_3_piece1", Piece);
#endinitclip
Symbol 209 MovieClip [enemy_tank_3_piece6] Frame 1
#initclip 123
Object.registerClass("enemy_tank_3_piece6", Piece);
#endinitclip
Symbol 211 MovieClip [enemy_tank_3_piece3] Frame 1
#initclip 124
Object.registerClass("enemy_tank_3_piece3", Piece);
#endinitclip
Symbol 213 MovieClip [enemy_tank_3_piece2] Frame 1
#initclip 125
Object.registerClass("enemy_tank_3_piece2", Piece);
#endinitclip
Symbol 215 MovieClip Frame 1
stop();
Symbol 217 MovieClip [hero_piece2] Frame 1
#initclip 126
Object.registerClass("hero_piece2", Piece);
#endinitclip
Symbol 219 MovieClip [hero_piece1] Frame 1
#initclip 127
Object.registerClass("hero_piece1", Piece);
#endinitclip
Symbol 221 MovieClip [hero_piece3] Frame 1
#initclip 128
Object.registerClass("hero_piece3", Piece);
#endinitclip
Symbol 223 MovieClip [hero_piece16] Frame 1
#initclip 129
Object.registerClass("hero_piece16", Piece);
#endinitclip
Symbol 225 MovieClip [hero_piece15] Frame 1
#initclip 130
Object.registerClass("hero_piece15", Piece);
#endinitclip
Symbol 227 MovieClip [hero_piece14] Frame 1
#initclip 131
Object.registerClass("hero_piece14", Piece);
#endinitclip
Symbol 229 MovieClip [hero_piece9] Frame 1
#initclip 132
Object.registerClass("hero_piece9", Piece);
#endinitclip
Symbol 231 MovieClip [hero_piece8] Frame 1
#initclip 133
Object.registerClass("hero_piece8", Piece);
#endinitclip
Symbol 233 MovieClip [hero_piece7] Frame 1
#initclip 134
Object.registerClass("hero_piece7", Piece);
#endinitclip
Symbol 235 MovieClip [hero_piece6] Frame 1
#initclip 135
Object.registerClass("hero_piece6", Piece);
#endinitclip
Symbol 237 MovieClip [hero_piece5] Frame 1
#initclip 136
Object.registerClass("hero_piece5", Piece);
#endinitclip
Symbol 239 MovieClip [hero_piece4] Frame 1
#initclip 137
Object.registerClass("hero_piece4", Piece);
#endinitclip
Symbol 241 MovieClip [hero_piece13] Frame 1
#initclip 138
Object.registerClass("hero_piece13", Piece);
#endinitclip
Symbol 243 MovieClip [hero_piece12] Frame 1
#initclip 139
Object.registerClass("hero_piece12", Piece);
#endinitclip
Symbol 245 MovieClip [hero_piece11] Frame 1
#initclip 140
Object.registerClass("hero_piece11", Piece);
#endinitclip
Symbol 247 MovieClip [hero_piece10] Frame 1
#initclip 141
Object.registerClass("hero_piece10", Piece);
#endinitclip
Symbol 250 MovieClip [plane2_piece1] Frame 1
#initclip 142
Object.registerClass("plane2_piece1", Piece);
#endinitclip
Symbol 252 MovieClip [plane2_piece2] Frame 1
#initclip 143
Object.registerClass("plane2_piece2", Piece);
#endinitclip
Symbol 254 MovieClip [plane2_piece3] Frame 1
#initclip 144
Object.registerClass("plane2_piece3", Piece);
#endinitclip
Symbol 256 MovieClip [plane2_piece4] Frame 1
#initclip 145
Object.registerClass("plane2_piece4", Piece);
#endinitclip
Symbol 258 MovieClip [plane2_piece5] Frame 1
#initclip 146
Object.registerClass("plane2_piece5", Piece);
#endinitclip
Symbol 260 MovieClip [plane2_piece6] Frame 1
#initclip 147
Object.registerClass("plane2_piece6", Piece);
#endinitclip
Symbol 262 MovieClip [plane2_piece11] Frame 1
#initclip 148
Object.registerClass("plane2_piece11", Piece);
#endinitclip
Symbol 264 MovieClip [plane2_piece12] Frame 1
#initclip 149
Object.registerClass("plane2_piece12", Piece);
#endinitclip
Symbol 266 MovieClip [plane2_piece13] Frame 1
#initclip 150
Object.registerClass("plane2_piece13", Piece);
#endinitclip
Symbol 268 MovieClip [plane2_piece7] Frame 1
#initclip 151
Object.registerClass("plane2_piece7", Piece);
#endinitclip
Symbol 270 MovieClip [plane2_piece8] Frame 1
#initclip 152
Object.registerClass("plane2_piece8", Piece);
#endinitclip
Symbol 272 MovieClip [plane2_piece9] Frame 1
#initclip 153
Object.registerClass("plane2_piece9", Piece);
#endinitclip
Symbol 274 MovieClip [plane2_piece10] Frame 1
#initclip 154
Object.registerClass("plane2_piece10", Piece);
#endinitclip
Symbol 276 MovieClip [plane2_piece14] Frame 1
#initclip 155
Object.registerClass("plane2_piece14", Piece);
#endinitclip
Symbol 278 MovieClip [plane2_piece15] Frame 1
#initclip 156
Object.registerClass("plane2_piece15", Piece);
#endinitclip
Symbol 280 MovieClip [plane2_piece16] Frame 1
#initclip 157
Object.registerClass("plane2_piece16", Piece);
#endinitclip
Symbol 282 MovieClip [plane2_piece17] Frame 1
#initclip 158
Object.registerClass("plane2_piece17", Piece);
#endinitclip
Symbol 284 MovieClip [plane2_piece18] Frame 1
#initclip 159
Object.registerClass("plane2_piece18", Piece);
#endinitclip
Symbol 286 MovieClip [plane2_piece19] Frame 1
#initclip 160
Object.registerClass("plane2_piece19", Piece);
#endinitclip
Symbol 288 MovieClip [plane2_piece20] Frame 1
#initclip 161
Object.registerClass("plane2_piece20", Piece);
#endinitclip
Symbol 290 MovieClip [plane2_piece21] Frame 1
#initclip 162
Object.registerClass("plane2_piece21", Piece);
#endinitclip
Symbol 292 MovieClip [plane2_piece22] Frame 1
#initclip 163
Object.registerClass("plane2_piece22", Piece);
#endinitclip
Symbol 294 MovieClip [plane2_piece25] Frame 1
#initclip 164
Object.registerClass("plane2_piece25", Piece);
#endinitclip
Symbol 296 MovieClip [plane2_piece26] Frame 1
#initclip 165
Object.registerClass("plane2_piece26", Piece);
#endinitclip
Symbol 298 MovieClip [plane2_piece23] Frame 1
#initclip 166
Object.registerClass("plane2_piece23", Piece);
#endinitclip
Symbol 300 MovieClip [plane2_piece24] Frame 1
#initclip 167
Object.registerClass("plane2_piece24", Piece);
#endinitclip
Symbol 302 MovieClip [plane2_piece27] Frame 1
#initclip 168
Object.registerClass("plane2_piece27", Piece);
#endinitclip
Symbol 304 MovieClip [plane2_piece29] Frame 1
#initclip 169
Object.registerClass("plane2_piece29", Piece);
#endinitclip
Symbol 306 MovieClip [plane2_piece28] Frame 1
#initclip 170
Object.registerClass("plane2_piece28", Piece);
#endinitclip
Symbol 325 Button
on (rollOver) {
rollOver();
}
on (rollOut) {
rollOut();
}
on (press) {
press();
}
Symbol 326 MovieClip [infoBtn] Frame 1
#initclip 171
Object.registerClass("infoBtn", Btn);
#endinitclip
Symbol 329 MovieClip [Satellite] Frame 1
#initclip 172
Object.registerClass("Satellite", Satellite);
#endinitclip
Symbol 336 MovieClip [Shield] Frame 1
#initclip 173
Object.registerClass("Shield", Shield);
#endinitclip
Symbol 341 MovieClip [tree4_piece2] Frame 1
#initclip 174
Object.registerClass("tree4_piece2", Piece);
#endinitclip
Symbol 343 MovieClip [tree4_piece3] Frame 1
#initclip 175
Object.registerClass("tree4_piece3", Piece);
#endinitclip
Symbol 345 MovieClip [tree4_piece4] Frame 1
#initclip 176
Object.registerClass("tree4_piece4", Piece);
#endinitclip
Symbol 347 MovieClip [tree4_piece5] Frame 1
#initclip 177
Object.registerClass("tree4_piece5", Piece);
#endinitclip
Symbol 349 MovieClip [tree4_piece1] Frame 1
#initclip 178
Object.registerClass("tree4_piece1", Piece);
#endinitclip
Symbol 351 MovieClip [tree4_piece11] Frame 1
#initclip 179
Object.registerClass("tree4_piece11", Piece);
#endinitclip
Symbol 353 MovieClip [tree4_piece12] Frame 1
#initclip 180
Object.registerClass("tree4_piece12", Piece);
#endinitclip
Symbol 355 MovieClip [tree4_piece13] Frame 1
#initclip 181
Object.registerClass("tree4_piece13", Piece);
#endinitclip
Symbol 357 MovieClip [tree4_piece10] Frame 1
#initclip 182
Object.registerClass("tree4_piece10", Piece);
#endinitclip
Symbol 359 MovieClip [tree4_piece14] Frame 1
#initclip 183
Object.registerClass("tree4_piece14", Piece);
#endinitclip
Symbol 361 MovieClip [tree4_piece9] Frame 1
#initclip 184
Object.registerClass("tree4_piece9", Piece);
#endinitclip
Symbol 363 MovieClip [tree4_piece6] Frame 1
#initclip 185
Object.registerClass("tree4_piece6", Piece);
#endinitclip
Symbol 365 MovieClip [tree4_piece7] Frame 1
#initclip 186
Object.registerClass("tree4_piece7", Piece);
#endinitclip
Symbol 367 MovieClip [tree4_piece8] Frame 1
#initclip 187
Object.registerClass("tree4_piece8", Piece);
#endinitclip
Symbol 370 MovieClip [tree5_piece1] Frame 1
#initclip 188
Object.registerClass("tree5_piece1", Piece);
#endinitclip
Symbol 372 MovieClip [tree5_piece2] Frame 1
#initclip 189
Object.registerClass("tree5_piece2", Piece);
#endinitclip
Symbol 374 MovieClip [tree5_piece3] Frame 1
#initclip 190
Object.registerClass("tree5_piece3", Piece);
#endinitclip
Symbol 376 MovieClip [tree5_piece4] Frame 1
#initclip 191
Object.registerClass("tree5_piece4", Piece);
#endinitclip
Symbol 378 MovieClip [tree5_piece5] Frame 1
#initclip 192
Object.registerClass("tree5_piece5", Piece);
#endinitclip
Symbol 380 MovieClip [tree5_piece6] Frame 1
#initclip 193
Object.registerClass("tree5_piece6", Piece);
#endinitclip
Symbol 387 MovieClip [okBtn] Frame 1
#initclip 194
Object.registerClass("okBtn", Btn);
#endinitclip
Symbol 390 MovieClip [ssBtn] Frame 1
#initclip 195
Object.registerClass("ssBtn", Btn);
#endinitclip
Symbol 396 MovieClip [cgBtn] Frame 1
#initclip 196
Object.registerClass("cgBtn", Btn);
#endinitclip
Symbol 398 MovieClip [mmBtn] Frame 1
#initclip 197
Object.registerClass("mmBtn", Btn);
#endinitclip
Symbol 410 MovieClip [Nums] Frame 1
#initclip 198
Object.registerClass("Nums", Nums);
#endinitclip
Symbol 417 MovieClip [pad_energyBar] Frame 1
#initclip 199
Object.registerClass("pad_energyBar", EnergyBar);
#endinitclip
Symbol 425 Button
on (rollOver) {
rollOver();
}
on (rollOut) {
rollOut();
}
on (press) {
press();
}
Symbol 432 MovieClip [pad_item_item] Frame 1
#initclip 200
Object.registerClass("pad_item_item", EnabledManager);
#endinitclip
Symbol 435 MovieClip [BatteryBg] Frame 1
#initclip 201
Object.registerClass("BatteryBg", BatteryBg);
#endinitclip
Symbol 436 MovieClip [OtherEffect] Frame 1
#initclip 202
Object.registerClass("OtherEffect", OtherEffect);
#endinitclip
Symbol 437 MovieClip [EffectArea] Frame 1
#initclip 203
Object.registerClass("EffectArea", EffectArea);
#endinitclip
Symbol 438 MovieClip [Bg] Frame 1
#initclip 204
Object.registerClass("Bg", Bg);
#endinitclip
Symbol 443 MovieClip [UserMouse] Frame 1
#initclip 205
Object.registerClass("UserMouse", UserMouse);
#endinitclip
Symbol 443 MovieClip [UserMouse] Frame 5
gotoAndStop (2);
Symbol 449 MovieClip [defaultBtn] Frame 1
#initclip 206
Object.registerClass("defaultBtn", Btn);
#endinitclip
Symbol 451 MovieClip [backBtn] Frame 1
#initclip 207
Object.registerClass("backBtn", Btn);
#endinitclip
Symbol 453 MovieClip [optionBtn] Frame 1
#initclip 208
Object.registerClass("optionBtn", Btn);
#endinitclip
Symbol 459 MovieClip [vhBtn] Frame 1
#initclip 209
Object.registerClass("vhBtn", Btn);
#endinitclip
Symbol 465 MovieClip [agtysBtn] Frame 1
#initclip 210
Object.registerClass("agtysBtn", Btn);
#endinitclip
Symbol 467 MovieClip [dgBtn] Frame 1
#initclip 211
Object.registerClass("dgBtn", Btn);
#endinitclip
Symbol 473 MovieClip [pmgBtn] Frame 1
#initclip 212
Object.registerClass("pmgBtn", Btn);
#endinitclip
Symbol 479 MovieClip [pgBtn] Frame 1
#initclip 213
Object.registerClass("pgBtn", Btn);
#endinitclip
Symbol 480 MovieClip [Rec] Frame 1
#initclip 214
Object.registerClass("Rec", Rec);
#endinitclip
Symbol 487 MovieClip [RecEffect] Frame 1
#initclip 215
Object.registerClass("RecEffect", RecEffect);
#endinitclip
Symbol 487 MovieClip [RecEffect] Frame 8
onRec();
Symbol 487 MovieClip [RecEffect] Frame 9
stop();
Symbol 487 MovieClip [RecEffect] Frame 16
stop();
onHide();
Symbol 488 MovieClip [EnterFrameManager] Frame 1
#initclip 216
Object.registerClass("EnterFrameManager", EnterFrameManager);
#endinitclip
Symbol 489 MovieClip Frame 1
this.onPress = function () {
};
this.enabled = false;
Symbol 498 MovieClip [Alert] Frame 1
#initclip 217
Object.registerClass("Alert", Alert);
#endinitclip
Symbol 500 MovieClip [tree3_body] Frame 1
#initclip 218
Object.registerClass("tree3_body", Piece);
#endinitclip
Symbol 502 MovieClip [tree2_body] Frame 1
#initclip 219
Object.registerClass("tree2_body", Piece);
#endinitclip
Symbol 504 MovieClip [tree1_body] Frame 1
#initclip 220
Object.registerClass("tree1_body", Piece);
#endinitclip
Symbol 509 MovieClip Frame 1
onEnterFrame = function () {
var _local4 = _root.getBytesLoaded();
var _local3 = _root.getBytesTotal();
var _local5 = int((_local4 / _local3) * 100);
num_txt.text = _local5 + "%";
if (_local4 == _local3) {
delete this.onEnterFrame;
if ((_root._mochiad instanceof MovieClip) != true) {
_root.play();
}
}
};
Symbol 513 MovieClip Frame 1
this._visible = false;
Symbol 513 MovieClip Frame 2
this._visible = true;
Symbol 513 MovieClip Frame 39
stop();
Instance of Symbol 506 MovieClip in Symbol 513 MovieClip Frame 39
on (release) {
getURL ("http://www.freeworldgroup.com/", "_blank");
}
Symbol 1083 MovieClip [__Packages.RecEffect] Frame 0
class RecEffect extends MovieClip
{
var maskMc, _parent, wid, _width, hei, _height, _xscale, _yscale, gotoAndStop, widt, heit, maskRec, rec, onEnterFrame, onRun, gotoAndPlay;
function RecEffect (Void) {
super();
maskMc = _parent[maskMc];
maskMc._visible = false;
wid = _width;
hei = _height;
_xscale = (_yscale = 100);
gotoAndStop("nothing");
}
function onRec(Void) {
widt = wid;
rec.hei = (maskRec._height = (heit = 1));
onEnterFrame = function () {
this.run();
};
onRun = function () {
this.heit = this.hei;
this.maskMc._visible = true;
this.maskMc.setMask(this.maskRec);
this.onRun = function () {
delete this.onEnterFrame;
this.onShow();
};
};
}
function run(Void) {
var _local3 = widt - maskRec._width;
var _local2 = heit - maskRec._height;
if (((_local3 * _local3) + (_local2 * _local2)) < 1) {
rec.wid = (maskRec._width = widt);
rec.hei = (maskRec._height = heit);
onRun();
} else {
rec.wid = (maskRec._width = maskRec._width + (_local3 * 0.4));
rec.hei = (maskRec._height = maskRec._height + (_local2 * 0.4));
}
}
function show(Void) {
maskMc._visible = false;
gotoAndPlay("show");
}
function showAll(Void) {
gotoAndStop("onShow");
rec.wid = (maskRec._width = wid);
rec.hei = (maskRec._height = hei);
maskMc._visible = true;
maskMc.setMask(maskRec);
}
function hide(Void) {
widt = wid;
heit = 1;
onEnterFrame = function () {
this.run();
};
onRun = function () {
this.maskMc._visible = false;
this.widt = 1;
this.onRun = function () {
delete this.onEnterFrame;
this.gotoAndPlay("hide");
};
};
}
}
Symbol 1084 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function showPreloaderAd(options) {
var _local29 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812};
options = _parseOptions(options, _local29);
var _local15 = options.clip;
var _local25 = 11000;
var _local28 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
return(undefined);
}
_local15.stop();
var mc = _local15._mochiad;
mc.onUnload = function () {
this._parent.play();
};
var _local16 = _getRes(options);
var _local5 = _local16[0];
var _local14 = _local16[1];
mc._x = _local5 * 0.5;
mc._y = _local14 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local5 * -0.5;
chk._y = _local14 * -0.5;
var _local8 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local8._x = 10;
_local8._y = _local14 - 20;
var _local24 = options.color;
delete options.color;
var _local21 = options.background;
delete options.background;
var _local26 = options.outline;
delete options.outline;
var _local6 = _local8.createEmptyMovieClip("_outline", 1);
_local6.beginFill(_local21);
_local6.moveTo(0, 0);
_local6.lineTo(_local5 - 20, 0);
_local6.lineTo(_local5 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
_local6.endFill();
var _local4 = _local8.createEmptyMovieClip("_inside", 2);
_local4.beginFill(_local24);
_local4.moveTo(0, 0);
_local4.lineTo(_local5 - 20, 0);
_local4.lineTo(_local5 - 20, 10);
_local4.lineTo(0, 10);
_local4.lineTo(0, 0);
_local4.endFill();
_local4._xscale = 0;
var _local7 = _local8.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local26, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local5 - 20, 0);
_local7.lineTo(_local5 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local25;
chk.ad_timeout = _local28;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
var _local15 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd"};
options = _parseOptions(options, _local15);
var _local6 = options.clip;
var _local12 = 11000;
var _local14 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
return(undefined);
}
_local6.stop();
var mc = _local6._mochiad;
mc.onUnload = function () {
this._parent.play();
};
var _local7 = _getRes(options);
var _local16 = _local7[0];
var _local13 = _local7[1];
mc._x = _local16 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local12;
chk.ad_timeout = _local14;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function _loadCommunicator(options) {
var _local25 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local25);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = "1.4";
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local24 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local24);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb) {
cb = parseInt(cb);
var _local4 = this._callbacks[cb];
if (!_local4) {
return(undefined);
}
delete this._callbacks[cb];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = "1.4";
var _local7 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local7._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local7.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local7._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
if (_local7._url.indexOf("http") != 0) {
options.no_page = true;
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local9 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local9;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local9);
_local6.lc = _local5;
_local4.lc = _local9;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local4);
}
}
Symbol 1085 MovieClip [__Packages.Piece] Frame 0
class Piece extends MovieClip
{
var swapDepths, _parent, getBounds, transform, removeMovieClip;
function Piece (Void) {
super();
swapDepths(0);
var _local5 = _parent.getNextHighestDepth();
var _local4 = _parent.createEmptyMovieClip("piece" + _local5, _local5);
_local4.createEmptyMovieClip("loader", 0);
var _local6 = new flash.geom.Matrix();
var _local3 = getBounds(this);
_local6.translate(-_local3.xMin, -_local3.yMin);
var _local7 = new flash.display.BitmapData(_local3.xMax - _local3.xMin, _local3.yMax - _local3.yMin, true, 0);
_local7.draw(this, _local6);
_local4.loader.attachBitmap(_local7, 0);
_local4.loader._x = _local3.xMin;
_local4.loader._y = _local3.yMin;
_local4.transform.matrix = transform.matrix;
removeMovieClip();
}
}
Symbol 1086 MovieClip [__Packages.Char] Frame 0
class Char extends MovieClip
{
var name, game, xyObj, _visible, _x, wid2, _y, hei2, life, totalLife, swapDepths, localToGlobal, blood_mc, holeId, piecesId, value;
function Char (Void) {
super();
name = "char";
game = _root.game;
xyObj = {x:0, y:0};
_root.enterFrameManager.add(this, "run0");
}
function run0(Void) {
if (game.pause) {
return(undefined);
}
run();
normalRun();
}
function run(Void) {
}
function normalRun(Void) {
if (_visible) {
var _local3 = game.hero._x - _x;
if ((_local3 * _local3) < ((4 * wid2) * wid2)) {
var _local2 = game.hero._y - _y;
if ((_local2 * _local2) < ((4 * hei2) * hei2)) {
game.hero.hurt(life);
hurt(totalLife, game.hero);
return(undefined);
}
}
}
}
function removeMovieClip(Void) {
_root.enterFrameManager.del(this, "run0");
swapDepths(0);
super.removeMovieClip();
}
function isHit(x, y, shapeMc) {
xyObj.x = x;
xyObj.y = y;
localToGlobal(xyObj);
return(shapeMc.hitTest(xyObj.x, xyObj.y, true));
}
function hurt(dLife, hitter) {
if (((life = life - dLife)) <= 0) {
life = 0;
exp();
return(true);
}
blood_mc.removeMovieClip();
blood_mc = game.effectArea.addEffect("Blood", {char:this});
return(true);
}
function exp(Void) {
var _local3 = game.effectArea.addEffect(holeId, {_x:_x, _y:_y});
game.mainBg.stick(_local3);
var _local2;
for (var _local4 in _local3) {
_local2 = _local3[_local4];
if (typeof(_local2) == "movieclip") {
game.mainBg.makeHole({_x:(_local2._x + _x) + ((Math.random() - 0.5) * 10), _y:(_local2._y + _y) + ((Math.random() - 0.5) * 10)});
}
}
_local3.removeMovieClip();
game.addSound("exp.mp3", _x, _y);
new Exp(game.effectArea.addEffect(piecesId, {_x:_x, _y:_y}));
if (value > 0) {
game.score = game.score + value;
game.coins = game.coins + value;
game.effectArea.addEffect("num_mc", {_x:_x, _y:_y, txt:value});
}
game.shake();
removeMovieClip();
}
static var a2r = 57.2957795130823;
}
Symbol 1087 MovieClip [__Packages.Exp] Frame 0
class Exp
{
var mc, totalPiece;
function Exp (_mc) {
mc = _mc;
mc.filters = null;
mc.exp = this;
mc._rotation = 0;
totalPiece = 0;
mc.stop();
mc.onEnterFrame = function () {
delete this.onEnterFrame;
this.exp.init();
};
}
function init(Void) {
var _local3;
var _local8 = 1;
for (var _local9 in mc) {
_local3 = mc[_local9];
if (_local3._parent != mc) {
continue;
}
totalPiece++;
_local3.swapDepths(_local8++);
_local3.x = (0.3 * _local3._y) + ((Math.random() - 0.5) * 7);
_local3.y = (0.3 * _local3._x) + ((Math.random() - 0.5) * 7);
_local3.z = 0;
_local3.vx = _local3.x;
_local3.vy = _local3.y;
_local3.vz = 20 * (Math.random() + 0.5);
_local3.va = 10 - (Math.random() * 21);
_local3.g = Game.g;
_local3.onEnterFrame = function () {
this._rotation = this._rotation + this.va;
this.vx = this.vx * 0.95;
this.vy = this.vy * 0.95;
this.x = this.x + this.vx;
this.y = this.y + this.vy;
this.vz = this.vz + this.g;
this.z = this.z + this.vz;
if (this.z <= 0) {
this.z = 0;
this.vz = this.vz * -0.6;
_root.game.mainBg.makeHole({_x:this._x + this._parent._x, _y:this._y + this._parent._y, _xscale:this._xscale, _yscale:this._yscale});
}
this.xyObj = Game.getXY(this.x, this.y, this.z);
this._x = this.xyObj._x;
this._y = this.xyObj._y;
this._xscale = (this._yscale = this._yscale * 0.95);
if (((((this.vx * this.vx) + (this.vy * this.vy)) + (this.vz * this.vz)) + (this.z * this.z)) < 5) {
this._parent.exp.delPiece();
this.removeMovieClip();
}
};
}
mc.gotoAndStop(2);
}
function delPiece(Void) {
if ((--totalPiece) <= 0) {
mc.swapDepths(0);
mc.removeMovieClip();
}
}
}
Symbol 1088 MovieClip [__Packages.Game] Frame 0
class Game extends MovieClip
{
var game, wid, hei, zoomWid, zoomHei, x0, _x, y0, _y, xyObj, localToGlobal, xCenter, yCenter, left, top, right, bottom, zoomLeft, zoomTop, zoomRight, zoomBottom, pause, gotoAndStop, _currentframe, heroPosMc, hero, bmp, mapMc, mainBg, houseArea, otherEffect, attachMovie, heroObj, effectArea, chars, mines, _score, _coins, _stage, onEnterFrame, _totalframes, nextFrame, bulletArea;
function Game (Void) {
super();
game = this;
score = (0);
coins = (0);
stage = (1);
wid = 1600;
hei = 1600;
zoomWid = 800;
zoomHei = 600;
x0 = _x;
y0 = _y;
xyObj = {x:zoomWid / 2, y:zoomHei / 2};
localToGlobal(xyObj);
xCenter = xyObj.x;
yCenter = xyObj.y;
left = (zoomWid - wid) + x0;
top = (zoomHei - hei) + y0;
right = x0;
bottom = y0;
zoomLeft = x0 - _x;
zoomTop = y0 - _y;
zoomRight = zoomLeft + zoomWid;
zoomBottom = zoomTop + zoomHei;
pause = false;
gotoAndStop(stage + 1);
}
function init(Void) {
Mouse.hide();
trace("\u5F53\u524D\u5E27:" + _currentframe);
hero._x = heroPosMc._x;
hero._y = heroPosMc._y;
bmp = new flash.display.BitmapData(wid, hei, false);
bmp.draw(mapMc);
mapMc.swapDepths(0);
mapMc.removeMovieClip();
mainBg.init(bmp);
game.scrollBy(hero);
mainBg.movTo(-_x, -_y);
for (var _local3 in houseArea) {
if (houseArea[_local3].name == "unbreakAble") {
mainBg.stick(houseArea[_local3]);
houseArea[_local3].swapDepths(0);
houseArea[_local3].removeMovieClip();
}
}
_root.enterFrameManager.add(this, "run");
_root.enterFrameManager.add(hero, "run");
_root.enterFrameManager.add(otherEffect, "effect");
hero.movingMissileNum = 0;
}
function continuePlay(Void) {
score = (Math.round(score / 2));
coins = (Math.round(coins / 2));
stage = (_currentframe - 1);
attachMovie("Hero", "hero", heroObj.depth, heroObj);
}
function run(Void) {
var _local3 = 0;
var _local4 = getTimer();
var _local2;
for (_local2 in otherEffect) {
setVisible(otherEffect, otherEffect[_local2]);
_local3++;
}
for (_local2 in effectArea) {
setVisible(effectArea, effectArea[_local2]);
_local3++;
}
for (_local2 in houseArea) {
setVisible(houseArea, houseArea[_local2]);
_local3++;
}
for (_local2 in chars) {
setVisible(chars, chars[_local2]);
_local3++;
}
for (_local2 in mines) {
setVisible(mines, mines[_local2]);
_local3++;
}
}
function get score() {
return(_score);
}
function set score(__score) {
_score = __score;
_root.pad.pad.scoreNum.num = _score;
//return(score);
}
function get coins() {
return(_coins);
}
function set coins(__coins) {
_coins = __coins;
_root.pad.pad.coinsNum.num = _coins;
//return(coins);
}
function get stage() {
return(_stage);
}
function set stage(__stage) {
_stage = __stage;
_root.pad.pad.stageNum.num = _stage;
//return(stage);
}
function scrollBy(mc) {
xyObj.x = mc._x;
xyObj.y = mc._y;
localToGlobal(xyObj);
var _local3 = (_x + xCenter) - xyObj.x;
var _local2 = (_y + yCenter) - xyObj.y;
if (_local3 > right) {
_local3 = right;
} else if (_local3 < left) {
_local3 = left;
}
if (_local2 > bottom) {
_local2 = bottom;
} else if (_local2 < top) {
_local2 = top;
}
_x = _local3;
_y = _local2;
zoomLeft = x0 - _x;
zoomTop = y0 - _y;
zoomRight = zoomLeft + zoomWid;
zoomBottom = zoomTop + zoomHei;
}
function setVisible(parentMc, mc) {
if (mc._parent == parentMc) {
mc._visible = (((mc._x >= (zoomLeft - 70)) && (mc._y >= (zoomTop - 70))) && (mc._x <= (zoomRight + 70))) && (mc._y <= (zoomBottom + 70));
}
}
function isVisible(x, y) {
return((((x >= (zoomLeft - 70)) && (y >= (zoomTop - 70))) && (x <= (zoomRight + 70))) && (y <= (zoomBottom + 70)));
}
function shake(dx, dy) {
if (isNaN(dx)) {
dx = (Math.random() - 0.5) * 10;
dy = (Math.random() - 0.5) * 10;
}
_root._x = _root._x + dx;
_root._y = _root._y + dy;
onEnterFrame = function () {
this.shakeRun();
};
}
function shakeRun(Void) {
_root._x = _root._x - (_root._x * 1.8);
_root._y = _root._y - (_root._y * 1.8);
if (((_root._x * _root._x) + (_root._y * _root._y)) < 5) {
_root._x = (_root._y = 0);
delete onEnterFrame;
}
}
static function getXY(x, y, z) {
return({_x:y, _y:x - (z * 0.2)});
}
static function getXYZ(x, y, z) {
return({x:y + (0.2 * z), y:x, z:z});
}
function nextStage(Void) {
if (_currentframe == _totalframes) {
trace("win");
win();
} else {
nextFrame();
stage = (_currentframe - 1);
}
}
function gameover(Void) {
trace("gameover");
heroObj = new Object();
heroObj.depth = hero.getDepth();
heroObj._x = hero._x;
heroObj._y = hero._y;
heroObj._rotation = hero._rotation;
_root.gotoAndStop("gameover");
}
function win(Void) {
_root.gotoAndStop("win");
}
function warningOn(Void) {
_root.warning_mc.show();
}
function warningOff(Void) {
_root.warning_mc.hide();
}
function stageClear(Void) {
trace("stageClear");
pause = true;
clearAll();
}
function clearAll(Void) {
trace("game--clearAll");
for (var _local3 in otherEffect) {
trace(otherEffect[_local3]);
otherEffect[_local3].removeMovieClip();
trace("clear" + otherEffect[_local3]);
}
otherEffect.isEffecting = false;
for (var _local3 in effectArea) {
trace(effectArea[_local3]);
effectArea[_local3].removeMovieClip();
trace("clear" + effectArea[_local3]);
}
for (var _local3 in bulletArea) {
trace(bulletArea[_local3]);
bulletArea[_local3].removeMovieClip();
trace("clear" + bulletArea[_local3]);
}
for (var _local3 in mines) {
trace(mines[_local3]);
mines[_local3].removeMovieClip();
trace("clear" + mines[_local3]);
}
_root.enterFrameManager.clearAll();
}
function addSound(id, x, y) {
xyObj.x = x;
xyObj.y = y;
game.localToGlobal(xyObj);
_root.fwgCtrl.soundStart(id, xyObj.x, xyObj.y);
}
static var g = -2;
}
Symbol 1089 MovieClip [__Packages.Rocket] Frame 0
class Rocket extends Char
{
var stop, _rotation, c, s, v, vMax, vOffset, _x, offsetId, _y, nextFrame;
function Rocket (Void) {
super();
stop();
var _local3 = _rotation / Char.a2r;
c = Math.cos(_local3);
s = Math.sin(_local3);
v = 0;
vMax = 50;
vOffset = 5;
}
function run(Void) {
vOffset = vOffset / 1.4;
_x = _x + ((offsetId * vOffset) * s);
_y = _y + (((-offsetId) * vOffset) * c);
if (vOffset < 0.2) {
vOffset = 0;
nextFrame();
run = function (Void) {
if (!this._visible) {
this.game.hero.movingMissileNum--;
this.removeMovieClip();
return(undefined);
}
this.v = this.v + 1.5;
this._x = this._x + (this.v * this.c);
this._y = this._y + (this.v * this.s);
this.game.effectArea.addEffect("rocketSmoke_mc", {_x:this._x, _y:this._y, _rotation:this._rotation});
var _local2;
for (var _local7 in this.game.chars) {
_local2 = this.game.chars[_local7];
if (_local2._visible && (_local2.hitTest(this))) {
var _local4 = _local2._x;
var _local3 = _local2._y;
if (_local2.hurt(Infinity, this.game.hero)) {
this.game.effectArea.addEffect("light_flash", {_x:_local4, _y:_local3, _xscale:200, _yscale:200});
this.game.hero.movingMissileNum--;
this.removeMovieClip();
return(undefined);
}
}
}
};
}
}
}
Symbol 1090 MovieClip [__Packages.Missile] Frame 0
class Missile extends Char
{
var name, holeId, piecesId, dropShadow, filters, xyObj, x, y, z, _x, _y, vz, game, host_mc, exp;
function Missile (Void) {
super();
name = "misslie";
holeId = "missile_hole";
piecesId = "missile_pieces";
dropShadow = new flash.filters.DropShadowFilter(4, 45, 0, 0.5, 5, 5);
dropShadow.distance = 0;
filters = [dropShadow];
xyObj = Game.getXY(x, y, z);
_x = xyObj._x;
_y = xyObj._y;
vz = 0;
}
function run(Void) {
vz = vz + Game.g;
if (((z = z + vz)) <= 0) {
var _local8;
var _local7;
if (host_mc == game.hero) {
var _local4 = game.chars;
var _local3;
for (var _local6 in _local4) {
_local3 = _local4[_local6];
_local8 = _local3._x - _x;
_local7 = _local3._y - _y;
if (((_local8 * _local8) + (_local7 * _local7)) < 6400) {
_local3.hurt(_local3.totalLife, host_mc);
}
}
} else {
_local8 = game.hero._x - _x;
_local7 = game.hero._y - _y;
if (((_local8 * _local8) + (_local7 * _local7)) < 6400) {
game.hero.hurt(50);
}
}
var _local5 = game.houseArea;
var _local2;
xyObj.x = _x;
xyObj.y = _y;
game.localToGlobal(xyObj);
for (var _local6 in _local5) {
_local2 = _local5[_local6];
_local8 = _local2._x - _x;
_local7 = _local2._y - _y;
if (_local2.hitTest(xyObj.x, xyObj.y, true)) {
_local2.hurt(50, host_mc);
} else if (((_local8 * _local8) + (_local7 * _local7)) < 6400) {
_local2.hurt(20, host_mc);
}
}
exp();
return(undefined);
}
xyObj = Game.getXY(x, y, z);
_x = xyObj._x;
_y = xyObj._y;
xyObj = Game.getXYZ(_x, _y, z);
xyObj = Game.getXY(xyObj.x, xyObj.y, 0);
var _local8 = xyObj._x - _x;
var _local7 = xyObj._y - _y;
dropShadow.distance = Math.sqrt((_local8 * _local8) + (_local7 * _local7));
filters = [dropShadow];
}
}
Symbol 1091 MovieClip [__Packages.Blood] Frame 0
class Blood extends MovieClip
{
var delayTime, char, _x, _y, gotoAndStop, swapDepths;
function Blood (Void) {
super();
delayTime = 30;
run();
_root.enterFrameManager.add(this, "run");
}
function run(Void) {
if (((char._name == undefined) || (char._visible == false)) || ((--delayTime) <= 0)) {
removeMovieClip();
return(undefined);
}
_x = char._x + 15;
_y = char._y + 15;
gotoAndStop(Math.round(100 * (char.life / char.totalLife)) + 1);
}
function removeMovieClip(Void) {
_root.enterFrameManager.del(this, "run");
swapDepths(0);
super.removeMovieClip();
}
}
Symbol 1092 MovieClip [__Packages.Bullet] Frame 0
class Bullet extends Char
{
var name, segs, x, x0, y, y0, dx, xt, dy, yt, a, range, vx, v, vy, smoke_mc, attachMovie, bullet_mc, game, powerId, power, shapeBrick, host_mc, hitChar, removeMovieClip, prevX, prevY, xyObj;
function Bullet (Void) {
super();
name = "bullet";
segs = 10;
x = x0;
y = y0;
dx = xt - x0;
dy = yt - y0;
a = Math.atan2(yt - y0, xt - x0);
xt = x0 + (range * Math.cos(a));
yt = y0 + (range * Math.sin(a));
vx = v * Math.cos(a);
vy = v * Math.sin(a);
smoke_mc = attachMovie("Smoke", "smoke_mc", 1, {_x:x, _y:y});
smoke_mc.init(x0, y0, xt, yt);
bullet_mc = attachMovie(((game.stage > 10) ? "bullet_mc2" : "bullet_mc"), "bullet_mc", 2, {_rotation:a * Char.a2r, _x:x, _y:y});
bullet_mc.gotoAndStop(powerId + 1);
bullet_mc._visible = false;
power = powerArr[powerId];
shapeBrick = game.shapeArea.shapeBrick;
if (host_mc == game.hero) {
hitChar = function () {
var _local3;
var _local2 = 0;
while (_local2 <= this.segs) {
this.xyObj.x = this.prevX + (this.dx * _local2);
this.xyObj.y = this.prevY + (this.dy * _local2);
this.game.localToGlobal(this.xyObj);
if (this.game.chars.hitTest(this.xyObj.x, this.xyObj.y, true)) {
for (var _local6 in this.game.chars) {
_local3 = this.game.chars[_local6];
if (typeof(_local3) == "movieclip") {
if (_local3._visible && (_local3.hitTest(this.xyObj.x, this.xyObj.y, true))) {
if (_local3.hurt(this.power)) {
this.game.effectArea.addEffect("light_flash", {_x:this.prevX + (this.dx * _local2), _y:this.prevY + (this.dy * _local2)});
this.removeMovieClip();
return(undefined);
}
}
}
}
}
_local2++;
}
};
} else {
hitChar = function () {
var _local5;
var _local2 = 0;
while (_local2 <= this.segs) {
this.xyObj.x = this.prevX + (this.dx * _local2);
this.xyObj.y = this.prevY + (this.dy * _local2);
this.game.localToGlobal(this.xyObj);
if (this.game.hero.hitTest(this.xyObj.x, this.xyObj.y, true)) {
if (this.game.hero.hurt(this.power)) {
this.game.effectArea.addEffect("light_flash", {_x:this.prevX + (this.dx * _local2), _y:this.prevY + (this.dy * _local2)});
this.removeMovieClip();
return(undefined);
}
}
_local2++;
}
};
}
}
function run(Void) {
bullet_mc._visible = true;
if ((x == xt) && (y == yt)) {
game.effectArea.addEffect("light_flash", {_x:xt, _y:yt});
removeMovieClip();
return(undefined);
}
prevX = x;
prevY = y;
x = x + vx;
y = y + vy;
if (((((vx > 0) && (x > xt)) || ((vx < 0) && (x < xt))) || ((vy > 0) && (y > yt))) || ((vy < 0) && (y < yt))) {
x = xt;
y = yt;
}
dx = (x - prevX) / segs;
dy = (y - prevY) / segs;
var _local3;
var _local2 = 0;
while (_local2 <= segs) {
xyObj.x = prevX + (dx * _local2);
xyObj.y = prevY + (dy * _local2);
game.localToGlobal(xyObj);
if (shapeBrick.hitTest(xyObj.x, xyObj.y, true)) {
for (var _local4 in shapeBrick) {
_local3 = shapeBrick[_local4];
if (_local3.hitTest(xyObj.x, xyObj.y, true)) {
_local3.bodyMc.hurt(power, host_mc);
game.effectArea.addEffect("light_flash", {_x:prevX + (dx * _local2), _y:prevY + (dy * _local2)});
removeMovieClip();
return(undefined);
}
}
game.effectArea.addEffect("light_flash", {_x:prevX + (dx * _local2), _y:prevY + (dy * _local2)});
removeMovieClip();
return(undefined);
}
_local2++;
}
bullet_mc._x = x;
bullet_mc._y = y;
hitChar();
}
function normalRun(Void) {
}
static var p0 = new flash.geom.Point(0, 0);
static var bf = new flash.filters.BlurFilter();
static var powerArr = [5, 10, 20, 30, 45, 60];
}
Symbol 1093 MovieClip [__Packages.Btn] Frame 0
class Btn extends MovieClip
{
var x0, _x, bf, enabled, btn, rollOver, rollOut, press, onSwing, xt, onEnterFrame;
function Btn (Void) {
super();
x0 = _x;
bf = new flash.filters.BlurFilter();
_x = 810;
enabled = false;
btn.onRollOver = function () {
_root.fwgCtrl.soundStart("rollOver.mp3", this._x, this._y);
_root.userMouse.rollOver();
this._parent.rollOver();
};
btn.onRollOut = function () {
_root.userMouse.rollOut();
this._parent.rollOut();
};
btn.onPress = function () {
_root.fwgCtrl.soundStart("press.mp3", this._x, this._y);
this._parent.press();
};
rollOver = function () {
new STween(_root.satellite_mc, this._x - 10, this._y);
};
rollOut = function () {
};
press = function () {
};
}
function show(Void) {
_x = 810;
swing(x0);
onSwing = function () {
this.enabled = true;
this.onShow();
};
}
function hide(Void) {
enabled = false;
swing(-300);
onSwing = function () {
this.onHide();
};
}
function swing(_xt) {
xt = _xt;
onEnterFrame = function () {
var _local2 = this.xt - this._x;
this.bf.blurX = Math.abs(this._x - this.x0);
this._x = this._x + (_local2 * 0.4);
this.filters = [this.bf];
if ((_local2 * _local2) < 1) {
delete this.onEnterFrame;
this._x = this.xt;
this.filters = [];
this.onSwing();
}
};
}
}
Symbol 1094 MovieClip [__Packages.STween] Frame 0
class STween
{
var mc, xt, yt, u, scalet, intervalId, dx, dy, dScale, onMov;
function STween (_mc, _xt, _yt, _scalet, _u) {
mc = _mc;
if (mc.stween != undefined) {
mc.stween.stopMov();
}
mc.stween = this;
xt = _xt;
yt = _yt;
if (isNaN(_scalet)) {
_scalet = 100;
}
if (isNaN(_u)) {
_u = 0.5;
}
u = _u;
scalet = _scalet;
intervalId = setInterval(this, "mov", 33);
}
function mov(Void) {
if (mc._x == undefined) {
clearInterval(intervalId);
} else {
dx = xt - mc._x;
dy = yt - mc._y;
dScale = scalet - mc._xscale;
mc._x = mc._x + (dx * u);
mc._y = mc._y + (dy * u);
mc._yscale = (mc._xscale = mc._xscale + (dScale * u));
if ((((dx * dx) + (dy * dy)) + (dScale * dScale)) < 1) {
clearInterval(intervalId);
mc._x = xt;
mc._y = yt;
mc._yscale = (mc._xscale = scalet);
onMov(mc);
}
}
}
function stopMov(Void) {
clearInterval(intervalId);
mc.stween = undefined;
}
}
Symbol 1095 MovieClip [__Packages.Satellite] Frame 0
class Satellite extends Char
{
var isFireing, _x, game, _y, _rotation, dis, target, char, dx, dy, dis2, laser_mc;
function Satellite (Void) {
super();
isFireing = false;
_x = game.hero._x;
_y = game.hero._y - 10;
}
function run(Void) {
_rotation = _rotation + 2;
if (isFireing) {
return(undefined);
}
dis = Infinity;
target = undefined;
for (var _local2 in game.chars) {
char = game.chars[_local2];
if (char._visible) {
dx = char._x - _x;
dy = char._y - _y;
if (((dis2 = (dx * dx) + (dy * dy))) < dis) {
dis = dis2;
target = char;
}
}
}
if (target != undefined) {
fire();
}
}
function normalRun(Void) {
}
function fire(Void) {
isFireing = true;
var _local5 = game.bulletArea.getNextHighestDepth();
laser_mc = game.effectArea.addEffect("laser_mc", {_x:_x, _y:_y});
var _local4 = Math.atan2(target._y - _y, target._x - _x);
laser_mc.vx = laser_mc._width * Math.cos(_local4);
laser_mc.vy = laser_mc._width * Math.sin(_local4);
laser_mc._rotation = _local4 * Char.a2r;
normalRun = function () {
this.prevX = this.laser_mc._x;
this.prevY = this.laser_mc._y;
this.laser_mc._x = this.laser_mc._x + this.laser_mc.vx;
this.laser_mc._y = this.laser_mc._y + this.laser_mc.vy;
var _local2 = 0;
while (_local2 <= 10) {
this.xyObj.x = this.prevX + ((this.laser_mc.vx * _local2) / 10);
this.xyObj.y = this.prevY + ((this.laser_mc.vy * _local2) / 10);
this.game.localToGlobal(this.xyObj);
if (this.game.chars.hitTest(this.xyObj.x, this.xyObj.y, true)) {
for (var _local3 in this.game.chars) {
this.char = this.game.chars[_local3];
if (this.char.hitTest(this.xyObj.x, this.xyObj.y, true)) {
this.char.hurt(this.char.totalLife);
}
}
}
_local2++;
}
if (!this.laser_mc._visible) {
this.isFireing = false;
this.laser_mc.removeMovieClip();
this.normalRun = null;
}
};
}
}
Symbol 1096 MovieClip [__Packages.Shield] Frame 0
class Shield extends MovieClip
{
var totalLife, _life, removeMovieClip, gotoAndStop, _totalframes;
function Shield (Void) {
super();
life = ((totalLife = 300));
}
function get life() {
return(_life);
}
function set life(__life) {
_life = __life;
if (_life <= 0) {
removeMovieClip();
return;
}
gotoAndStop(Math.round((_life / totalLife) * _totalframes));
//return(life);
}
}
Symbol 1097 MovieClip [__Packages.Nums] Frame 0
class Nums extends MovieClip
{
var _num;
function Nums (Void) {
super();
num = (0);
}
function get num() {
return(_num);
}
function set num(__num) {
_num = __num;
var _local3 = String(_num);
var _local4 = _local3.length;
var _local2 = 0;
while (_local2 < _local4) {
this["num" + _local2].gotoAndStop(Number(_local3.charAt(_local2)) + 1);
_local2++;
}
while (_local2 < 5) {
this["num" + (_local2++)].gotoAndStop("blank");
}
//return(num);
}
}
Symbol 1098 MovieClip [__Packages.EnergyBar] Frame 0
class EnergyBar extends MovieClip
{
var stop, _value, gotoAndStop;
function EnergyBar (Void) {
super();
stop();
}
function get value() {
return(_value);
}
function set value(__value) {
_value = __value;
gotoAndStop(_value);
//return(value);
}
}
Symbol 1099 MovieClip [__Packages.EnabledManager] Frame 0
class EnabledManager extends MovieClip
{
var colorfulArr, filters, greyArr, _enabled, onErrorPress, onPress, onMouseDown;
function EnabledManager (Void) {
super();
colorfulArr = filters.slice();
greyArr = filters.slice();
greyArr.push(new flash.filters.ColorMatrixFilter([0.3, 0.59, 0.11, 0, 0, 0.3, 0.59, 0.11, 0, 0, 0.3, 0.59, 0.11, 0, 0, 0, 0, 0, 1, 0]));
_enabled = true;
onErrorPress = function (Void) {
trace("\u975E\u6CD5\u70B9\u51FB");
};
}
function get enabled() {
return(_enabled);
}
function set enabled(__enabled) {
_enabled = __enabled;
if (__enabled) {
filters = colorfulArr;
delete onPress;
delete onMouseDown;
} else {
filters = greyArr;
onPress = function () {
};
onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.onErrorPress();
}
};
}
//return(enabled);
}
}
Symbol 1100 MovieClip [__Packages.BatteryBg] Frame 0
class BatteryBg extends MovieClip
{
var _y, _x;
function BatteryBg (Void) {
super();
var _local4 = _root.game.chars.getNextHighestDepth();
_root.game.chars.attachMovie("Battery", "battery" + _local4, _local4, {_x:_x, _y:_y});
}
}
Symbol 1101 MovieClip [__Packages.OtherEffect] Frame 0
class OtherEffect extends MovieClip
{
var game, isEffecting, attachMovie;
function OtherEffect (Void) {
super();
game = _root.game;
isEffecting = false;
}
function onEffect(Void) {
for (var _local2 in this) {
this[_local2].removeMovieClip();
}
isEffecting = false;
}
function callPlane(Void) {
isEffecting = true;
var _local9;
var _local2 = 0;
while (_local2 < 3) {
attachMovie("Plane", "plane" + _local2, _local2, {_x:(game.zoomLeft + 100) + (_local2 * 300), _y:game.zoomBottom + 100, vx:0, vy:-5, _rotation:-90, host_mc:game.hero});
_local2++;
}
}
function effect(Void) {
if (random(1000) > 0) {
return(undefined);
}
trace(this + ",effect");
if (isEffecting) {
return(undefined);
}
isEffecting = true;
if (!(random(1) === 0)) {
} else {
var _local6;
var _local5;
var _local12;
var _local9;
var _local8;
var _local4;
var _local2 = 5;
var _local3 = 50;
switch (random(4)) {
case 0 :
_local6 = (game.zoomLeft + 300) - _local3;
_local5 = game.zoomTop - _local3;
_local9 = _local2;
_local8 = _local2;
_local4 = 45;
break;
case 1 :
_local6 = (game.zoomRight - 300) + _local3;
_local5 = game.zoomTop - _local3;
_local9 = -_local2;
_local8 = _local2;
_local4 = 135;
break;
case 2 :
_local6 = (game.zoomRight + 100) + _local3;
_local5 = game.zoomBottom + _local3;
_local9 = -_local2;
_local8 = -_local2;
_local4 = -135;
break;
case 3 :
_local6 = (game.zoomLeft - 100) - _local3;
_local5 = game.zoomBottom + _local3;
_local9 = _local2;
_local8 = -_local2;
_local4 = -45;
}
attachMovie("Plane", "plane", 0, {_x:_local6, _y:_local5, vx:_local9, vy:_local8, _rotation:_local4});
}
}
}
Symbol 1102 MovieClip [__Packages.EffectArea] Frame 0
class EffectArea extends MovieClip
{
var depth, attachMovie;
function EffectArea (Void) {
super();
depth = 0;
}
function addEffect(id, args) {
depth++;
return(attachMovie(id, id + depth, depth, args));
}
}
Symbol 1103 MovieClip [__Packages.Bg] Frame 0
class Bg extends MovieClip
{
var bmp, attachBitmap, p, shapeWater, stickMc, bmp2, m, createEmptyMovieClip;
function Bg (Void) {
super();
}
function init(_bmp) {
bmp = _bmp;
attachBitmap(bmp, 0);
p = new flash.geom.Point(0, 0);
shapeWater = _root.game.shapeArea.shapeWater;
}
function attachMovie(id, args) {
stickMc = super.attachMovie(id, "stickMc", 1, args);
stick(stickMc);
stickMc.removeMovieClip();
}
function stick(mc) {
var _local3 = mc.getBounds(_root);
if (((shapeWater.hitTest(_local3.xMin, _local3.yMin, true) || (shapeWater.hitTest(_local3.xMin, _local3.yMax, true))) || (shapeWater.hitTest(_local3.xMax, _local3.yMin, true))) || (shapeWater.hitTest(_local3.xMax, _local3.yMax, true))) {
return(undefined);
}
bmp2 = new flash.display.BitmapData(mc._width, mc._height, true, 0);
m = mc.transform.matrix;
_local3 = mc.getBounds(mc._parent);
m.translate(-_local3.xMin, -_local3.yMin);
bmp2.draw(mc, m);
_local3 = mc.getBounds(this);
stickBmp(bmp2, _local3.xMin, _local3.yMin);
}
function stickBmp(bmp2, x, y) {
p.x = x;
p.y = y;
bmp.copyPixels(bmp2, bmp2.rectangle, p);
}
function makeHole(args) {
stickMc = createEmptyMovieClip("hole_mc", 1);
for (var _local6 in args) {
stickMc[_local6] = args[_local6];
}
stickMc.clear();
stickMc.lineStyle(2, 0, 40);
var _local3;
var _local4;
var _local2 = 0;
while (_local2 < 40) {
_local3 = random(10) + 10;
_local4 = (Math.random() * Math.PI) * 2;
stickMc.moveTo(0, 0);
stickMc.lineTo(_local3 * Math.cos(_local4), _local3 * Math.sin(_local4));
_local2++;
}
stickMc.filters = [bf, bf, bf];
stick(stickMc);
stickMc.removeMovieClip();
}
static var bf = new flash.filters.BlurFilter();
}
Symbol 1104 MovieClip [__Packages.UserMouse] Frame 0
class UserMouse extends MovieClip
{
var startDrag, onMouseDown, gotoAndStop;
function UserMouse (Void) {
super();
Mouse.hide();
startDrag(true);
onMouseDown = function () {
this.gotoAndPlay(3);
};
gotoAndStop(2);
}
function rollOver(Void) {
gotoAndStop(3);
}
function rollOut(Void) {
gotoAndStop(2);
}
function press(Void) {
gotoAndStop(2);
}
}
Symbol 1105 MovieClip [__Packages.Rec] Frame 0
class Rec extends MovieClip
{
var _wid, wid2, _hei, hei2, clear, lineStyle, beginFill, moveTo, lineTo, endFill;
function Rec (Void) {
super();
wid = (0);
hei = (0);
}
function get wid() {
return(_wid);
}
function set wid(__wid) {
_wid = __wid;
wid2 = _wid / 2;
redraw();
//return(wid);
}
function get hei() {
return(_hei);
}
function set hei(__hei) {
_hei = __hei;
hei2 = _hei / 2;
redraw();
//return(hei);
}
function redraw(Void) {
clear();
lineStyle(1, 65280);
beginFill(65280, 0);
moveTo(-wid2, -hei2);
lineTo(wid2, -hei2);
lineTo(wid2, hei2);
lineTo(-wid2, hei2);
lineTo(-wid2, -hei2);
endFill();
}
}
Symbol 1106 MovieClip [__Packages.EnterFrameManager] Frame 0
class EnterFrameManager extends MovieClip
{
var onEnterFrame, totalF, objArr, fArr;
function EnterFrameManager (Void) {
super();
clearAll();
onEnterFrame = function () {
var _local2 = 0;
while (_local2 < this.totalF) {
if ((this.objArr[_local2] == undefined) || (this.fArr[_local2] == undefined)) {
this.objArr.splice(_local2, 1);
this.fArr.splice(_local2, 1);
this.totalF--;
_local2--;
} else {
this.objArr[_local2][this.fArr[_local2]]();
}
_local2++;
}
};
}
function clearAll(Void) {
trace("enterFrameManager--clearAll");
totalF = 0;
objArr = new Array();
fArr = new Array();
}
function add(obj, f) {
totalF++;
objArr.push(obj);
fArr.push(f);
}
function del(obj, f) {
var _local2 = 0;
while (_local2 < totalF) {
if ((obj == objArr[_local2]) && (f == fArr[_local2])) {
totalF--;
objArr.splice(_local2, 1);
fArr.splice(_local2, 1);
return(undefined);
}
_local2++;
}
}
}
Symbol 1107 MovieClip [__Packages.Alert] Frame 0
class Alert extends MovieClip
{
var _visible, _name, yBtn, nBtn, msg, onCallBack;
function Alert (Void) {
super();
_visible = false;
_name = "alert";
yBtn.onPress = function () {
this._parent.callBack(true);
};
nBtn.onPress = function () {
this._parent.callBack(false);
};
}
static function show(_msg, _onCallBack) {
_root.alert.show_(_msg, _onCallBack);
}
function show_(_msg, _onCallBack) {
_visible = true;
msg = _msg;
onCallBack = _onCallBack;
}
function callBack(flag) {
_visible = false;
onCallBack(flag);
}
}
Symbol 1108 MovieClip [__Packages.Battery] Frame 0
class Battery extends Char
{
var name, piecesId, holeId, totalLife, life, vBullet, wid2, hei2, value, isDouble, _rangeId, game, range, _visible, xyObj, globalToLocal, head_mc, _x, _y, _rotation;
function Battery (Void) {
super();
name = "battery";
piecesId = "battery_pieces";
holeId = "battery_hole";
totalLife = (life = 40);
vBullet = 40;
wid2 = (hei2 = 15);
value = 10;
rangeId = (0);
isDouble = true;
}
function get rangeId() {
return(_rangeId);
}
function set rangeId(__rangeId) {
_rangeId = __rangeId + Math.round(game.stage / 5);
if (_rangeId > 5) {
_rangeId = 5;
}
range = rangeArr[_rangeId];
//return(rangeId);
}
function run(Void) {
if (_visible) {
pointTo(game.hero._x, game.hero._y);
if (random(100) < 1) {
fire(game.hero._x, game.hero._y);
}
}
}
function pointTo(x, y) {
xyObj.x = x;
xyObj.y = y;
game.localToGlobal(xyObj);
globalToLocal(xyObj);
head_mc._rotation = Char.a2r * Math.atan2(xyObj.y, xyObj.x);
}
function fire(xt, yt) {
if (isNaN(xt)) {
return(undefined);
}
if ((head_mc._currentframe == 2) || (head_mc._currentframe == 3)) {
return(undefined);
}
head_mc.gotoAndPlay(2);
head_mc.frame.play();
game.addSound("shot.mp3", _x, _y);
if (isDouble) {
var _local4 = (head_mc._rotation + _rotation) / Char.a2r;
var _local3 = 3 * Math.sin(_local4);
var _local2 = -3 * Math.cos(_local4);
var _local5 = game.bulletArea.getNextHighestDepth();
game.bulletArea.attachMovie("Bullet", "bullet" + _local5, _local5, {host_mc:this, bulletId:"bullet_mc", x0:_x - _local3, y0:_y - _local2, xt:xt - _local3, yt:yt - _local2, v:vBullet, powerId:rangeId, range:range});
_local5 = game.bulletArea.getNextHighestDepth();
game.bulletArea.attachMovie("Bullet", "bullet" + _local5, _local5, {host_mc:this, bulletId:"bullet_mc", x0:_x + _local3, y0:_y + _local2, xt:xt + _local3, yt:yt + _local2, v:vBullet, powerId:rangeId, range:range});
} else {
var _local5 = game.bulletArea.getNextHighestDepth();
game.bulletArea.attachMovie("Bullet", "bullet" + _local5, _local5, {host_mc:this, bulletId:"bullet_mc", x0:_x, y0:_y, xt:xt, yt:yt, v:vBullet, powerId:rangeId, range:range});
}
}
static var rangeArr = [200, 250, 300, 350, 400, 500];
}
Symbol 1109 MovieClip [__Packages.UnbreakAble] Frame 0
class UnbreakAble extends MovieClip
{
var name, _rotation, _yscale, _xscale, _y, _x;
function UnbreakAble (hitAreaId) {
super();
name = "unbreakAble";
var _local4 = _root.game.shapeArea.shapeBrick.getNextHighestDepth();
_root.game.shapeArea.shapeBrick.attachMovie(hitAreaId, "hitArea" + _local4, _local4, {_x:_x, _y:_y, _xscale:_xscale, _yscale:_yscale, _rotation:_rotation, bodyMc:this});
}
}
Symbol 1110 MovieClip [__Packages.Cactus] Frame 0
class Cactus extends UnbreakAble
{
function Cactus (Void) {
super("cactusHitArea");
}
}
Symbol 1111 MovieClip [__Packages.Mine] Frame 0
class Mine extends Char
{
var name, piecesId, holeId, totalLife, life, wid2, hei2, light_mc, value, _x, game, _y, _visible, delayTime;
function Mine (Void) {
super();
name = "mine";
piecesId = "mine_pieces";
holeId = "mine_hole";
totalLife = (life = 50);
wid2 = (hei2 = 5);
light_mc.stop();
value = 0;
}
function hurt(dLife) {
return(false);
}
function exp(Void) {
var _local4 = game.hero._x - _x;
var _local3 = game.hero._y - _y;
if (((_local4 * _local4) + (_local3 * _local3)) <= 10000) {
game.hero.hurt(30);
}
super.exp();
}
function run(Void) {
if (_visible == false) {
return(undefined);
}
var _local3 = game.hero._x - _x;
var _local2 = game.hero._y - _y;
if (((_local3 * _local3) + (_local2 * _local2)) <= 10000) {
light_mc.play();
delayTime = 30;
run = function () {
var _local3 = this.game.hero._x - this._x;
var _local2 = this.game.hero._y - this._y;
if ((((_local3 * _local3) + (_local2 * _local2)) < 400) || ((--this.delayTime) <= 0)) {
this.exp();
return(undefined);
}
};
}
}
}
Symbol 1112 MovieClip [__Packages.Tank] Frame 0
class Tank extends Battery
{
var name, wid2, hei2, v, av, a, _rotation, va, vaMax, ava, holeId, isDouble, _vId, vMax, game, _visible, delayTime, pointTo, head_mc, fire, _x, _y, isHit;
function Tank (Void) {
super();
name = "tank";
wid2 = 14;
hei2 = 11;
v = 0;
av = 0.5;
a = _rotation / Char.a2r;
va = 0;
vaMax = 0.08;
ava = 0.005;
holeId = "tank_hole";
isDouble = false;
}
function get vId() {
return(_vId);
}
function set vId(__vId) {
_vId = __vId;
vMax = (vArr[_vId] * (15 + (2 * game.stage))) / 45;
//return(vId);
}
function run(Void) {
if (_visible) {
if (delayTime > 0) {
delayTime--;
mov(1);
} else if (delayTime < 0) {
delayTime++;
mov(-1);
} else {
delayTime = random(60) - 30;
}
pointTo(game.hero._x, game.hero._y);
rotate(head_mc._rotation);
if (random(100) < 1) {
fire(game.hero._x, game.hero._y);
}
} else if (random(100) < 5) {
pointTo(game.hero._x, game.hero._y);
rotate(head_mc._rotation);
mov(1);
}
}
function mov(value) {
if (value < 0) {
if (((v = v - av)) < (-vMax)) {
v = -vMax;
}
} else if (((v = v + av)) > vMax) {
v = vMax;
}
_x = Math.round(_x + (v * Math.cos(a)));
_y = Math.round(_y + (v * Math.sin(a)));
checkHit();
}
function slide(Void) {
if ((v * v) < 1) {
return(undefined);
}
v = v * 0.9;
_x = Math.round(_x + (v * Math.cos(a)));
_y = Math.round(_y + (v * Math.sin(a)));
checkHit();
}
function rotate(value) {
if (value < 0) {
if (((va = va - ava)) < (-vaMax)) {
va = -vaMax;
}
} else if (((va = va + ava)) > vaMax) {
va = vaMax;
}
_rotation = ((a = a + va)) * Char.a2r;
}
function slideA(Void) {
if ((va * va) < 0.001) {
va = 0;
return(undefined);
}
va = va * 0.9;
_rotation = ((a = a + va)) * Char.a2r;
}
function checkHit(Void) {
if (v > 0) {
if ((isHit(wid2, -hei2, game.shapeArea) || (isHit(wid2, 0, game.shapeArea))) || (isHit(wid2, hei2, game.shapeArea))) {
v = v * -1;
}
} else if ((isHit(-wid2, -hei2, game.shapeArea) || (isHit(-wid2, 0, game.shapeArea))) || (isHit(-wid2, hei2, game.shapeArea))) {
v = v * -1;
}
}
static var vArr = [6, 8, 10, 11.5, 13, 14.5];
}
Symbol 1113 MovieClip [__Packages.Tank_1] Frame 0
class Tank_1 extends Tank
{
var piecesId, totalLife, life, __set__rangeId, __set__vId, value, swapDepths, _parent;
function Tank_1 (Void) {
super();
piecesId = "tank_1_pieces";
totalLife = (life = 20);
__set__rangeId(0);
__set__vId(0);
value = 5;
swapDepths(_parent.getNextHighestDepth());
}
}
Symbol 1114 MovieClip [__Packages.Tank_2] Frame 0
class Tank_2 extends Tank
{
var piecesId, totalLife, life, __set__rangeId, __set__vId, value, swapDepths, _parent;
function Tank_2 (Void) {
super();
piecesId = "tank_2_pieces";
totalLife = (life = 40);
__set__rangeId(3);
__set__vId(1);
value = 10;
swapDepths(_parent.getNextHighestDepth());
}
}
Symbol 1115 MovieClip [__Packages.Tank_3] Frame 0
class Tank_3 extends Tank
{
var piecesId, totalLife, life, __set__rangeId, __set__vId, value, swapDepths, _parent;
function Tank_3 (Void) {
super();
piecesId = "tank_3_pieces";
totalLife = (life = 100);
__set__rangeId(4);
__set__vId(0);
value = 15;
swapDepths(_parent.getNextHighestDepth());
}
}
Symbol 1116 MovieClip [__Packages.Hero] Frame 0
class Hero extends Tank
{
var name, modeNum, leftKey, upKey, rightKey, downKey, missileKey, totalLife, life, value, rocketNum, movingMissileNum, double_count, rocket_count, isFireing, fireDelay, onMouseDown, onMouseUp, piecesId, _rangeId, range, _vId, vMax, game, shield, exp, blood_mc, satellite, _x, _y, a, _rotation, rotate, slideA, head_mc, isDouble, fire, pointTo, attachMovie;
function Hero (Void) {
super();
name = "hero";
var _local5 = SharedObject.getLocal("tank2007", "/");
modeNum = _local5.data.dataObj.modeNum;
var _local4 = new KeySetting();
leftKey = _local4.getCode(0);
upKey = _local4.getCode(1);
rightKey = _local4.getCode(2);
downKey = _local4.getCode(3);
missileKey = _local4.getCode(10);
totalLife = (life = 1000);
rangeId = (0);
vId = (0);
value = 0;
rocketNum = 0;
movingMissileNum = 0;
double_count = _root.radio_mc.double_count;
rocket_count = _root.radio_mc.rocket_count;
isFireing = false;
fireDelay = 0;
onMouseDown = function () {
if (this.game.pause) {
return(undefined);
}
this.fireDelay = 0;
this.isFireing = true;
};
onMouseUp = function () {
this.isFireing = false;
};
piecesId = "hero_pieces";
_root.enterFrameManager.del(this, "run0");
}
function get rangeId() {
return(_rangeId);
}
function set rangeId(__rangeId) {
_rangeId = __rangeId;
range = Battery.rangeArr[_rangeId];
_root.pad.pad.rangeBar.value = __rangeId + 1;
//return(rangeId);
}
function get vId() {
return(_vId);
}
function set vId(__vId) {
_vId = __vId;
vMax = Tank.vArr[_vId];
_root.pad.pad.speedBar.value = __vId + 1;
//return(vId);
}
function mov(value) {
super.mov(value);
game.scrollBy(this);
}
function slide(Void) {
super.slide();
game.scrollBy(this);
}
function hurt(dLife) {
if (shield._name != undefined) {
shield.life = shield.life - dLife;
return(true);
}
if (((life = life - dLife)) <= 0) {
life = 0;
game.warningOff();
game.gameover();
exp();
return(true);
}
if (life <= (totalLife * 0.2)) {
game.warningOn();
}
blood_mc.removeMovieClip();
blood_mc = game.effectArea.addEffect("Blood", {char:this});
return(true);
}
function run(Void) {
if (game.pause) {
return(undefined);
}
satellite._x = satellite._x + ((_x - satellite._x) * 0.2);
satellite._y = satellite._y + (((_y - 10) - satellite._y) * 0.2);
switch (modeNum) {
case 2 :
var _local2;
if (Key.isDown(leftKey)) {
if (Key.isDown(upKey)) {
_local2 = -135;
} else if (Key.isDown(downKey)) {
_local2 = 135;
} else {
_local2 = -180;
}
} else if (Key.isDown(rightKey)) {
if (Key.isDown(upKey)) {
_local2 = -45;
} else if (Key.isDown(downKey)) {
_local2 = 45;
} else {
_local2 = 0;
}
} else if (Key.isDown(upKey)) {
_local2 = -90;
} else if (Key.isDown(downKey)) {
_local2 = 90;
} else {
slide();
break;
}
var _local3 = _local2 - (a * Char.a2r);
if (_local3 < -180) {
_local3 = _local3 + 360;
} else if (_local3 > 180) {
_local3 = _local3 - 360;
}
_rotation = _rotation + (_local3 * 0.2);
a = _rotation / Char.a2r;
mov(1);
break;
default :
if (Key.isDown(leftKey)) {
rotate(-1);
} else if (Key.isDown(rightKey)) {
rotate(1);
} else {
slideA();
}
if (Key.isDown(upKey)) {
mov(1);
} else if (Key.isDown(downKey)) {
mov(-1);
} else {
slide();
}
}
if (Key.isDown(missileKey)) {
if ((rocketNum == 0) || (movingMissileNum > 0)) {
return(undefined);
}
movingMissileNum = 2;
if (rocketNum > 0) {
rocketNum = rocketNum - 2;
rocket_count.gotoAndStop(rocketNum + 1);
game.effectArea.addEffect("Rocket", {_x:_x, _y:_y, _rotation:_rotation + head_mc._rotation, offsetId:1});
game.effectArea.addEffect("Rocket", {_x:_x, _y:_y, _rotation:_rotation + head_mc._rotation, offsetId:-1});
}
}
if (isFireing) {
if ((--fireDelay) <= 0) {
fireDelay = 5;
if (isDouble) {
if (((double_count.num = double_count.num - 2)) <= 0) {
double_count._visible = false;
isDouble = false;
}
}
fire(game._xmouse, game._ymouse);
}
}
pointTo(game._xmouse, game._ymouse);
}
function normalRun(Void) {
}
function speedUp(Void) {
if (vId < 5) {
vId = ((vId+1));
}
trace("speedUp" + vId);
}
function addLife(Void) {
life = life + 500;
if (life > totalLife) {
life = totalLife;
}
blood_mc.removeMovieClip();
blood_mc = game.effectArea.addEffect("Blood", {char:this});
game.warningOff();
}
function rangeUp(Void) {
if (rangeId < 5) {
rangeId = ((rangeId+1));
}
trace("rangeUp" + rangeId);
}
function setDouble(Void) {
isDouble = true;
double_count._visible = true;
double_count.num = 1000;
}
function addRocket(Void) {
rocketNum = 30;
rocket_count.gotoAndStop(rocketNum + 1);
}
function addShield(Void) {
shield = attachMovie("Shield", "shield", 0);
}
function callPlane(Void) {
game.otherEffect.callPlane();
}
function addSatellite(Void) {
satellite = game.effectArea.addEffect("Satellite", {_x:_x, _y:_y});
}
}
Symbol 1117 MovieClip [__Packages.KeySetting] Frame 0
class KeySetting
{
var lso, isFirstPlay, keyCodeArr;
function KeySetting (Void) {
lso = SharedObject.getLocal("KeySetting", "/");
if (lso.data.dataObj == undefined) {
trace("\u7B2C\u4E00\u6B21\u8BBE\u5B9A");
setDefault();
isFirstPlay = true;
} else {
isFirstPlay = false;
}
keyCodeArr = lso.data.dataObj.keyCodeArr;
}
function getCode(id) {
return(keyCodeArr[id]);
}
function setDefault(Void) {
var _local2 = "AWDSJILKVB ";
lso.data.dataObj = {keyCodeArr:[_local2.charCodeAt(0), _local2.charCodeAt(1), _local2.charCodeAt(2), _local2.charCodeAt(3), _local2.charCodeAt(4), _local2.charCodeAt(5), _local2.charCodeAt(6), _local2.charCodeAt(7), _local2.charCodeAt(8), _local2.charCodeAt(9), _local2.charCodeAt(10)]};
}
function save(oldCode, newCode) {
var _local2 = 0;
while (_local2 < 11) {
if (keyCodeArr[_local2] == oldCode) {
keyCodeArr[_local2] = newCode;
return(true);
}
_local2++;
}
return(false);
}
}
Symbol 1118 MovieClip [__Packages.Brick] Frame 0
class Brick extends MovieClip
{
var game, name, value, frameId, piecesId, holeId, hitAreaId, totalLife, life, hitArea_mc, _rotation, _yscale, _xscale, _y, _x, frameEffect, swapDepths, removeMovieClip;
function Brick (name1, _value, _life) {
super();
game = _root.game;
name = name1;
value = _value;
frameId = name + "_frame";
piecesId = name + "_pieces";
holeId = name + "_hole";
hitAreaId = name + "HitArea";
totalLife = (life = _life);
var _local4 = game.shapeArea.shapeBrick.getNextHighestDepth();
hitArea_mc = game.shapeArea.shapeBrick.attachMovie(hitAreaId, "hitArea" + _local4, _local4, {_x:_x, _y:_y, _xscale:_xscale, _yscale:_yscale, _rotation:_rotation, bodyMc:this});
}
function hurt(dLife) {
if (((life = life - dLife)) <= 0) {
life = 0;
exp();
return(true);
}
frameEffect = game.effectArea.addEffect(frameId, {_x:_x, _y:_y});
frameEffect.gotoAndStop(Math.round(100 * (life / totalLife)) + 1);
hurt = function (dLife) {
if (((this.life = this.life - dLife)) <= 0) {
this.life = 0;
this.frameEffect.removeMovieClip();
this.exp();
return(true);
}
this.frameEffect.gotoAndStop(Math.round(100 * (this.life / this.totalLife)) + 1);
return(true);
};
_root.enterFrameManager.add(this, "run");
return(true);
}
function run(Void) {
if (game.pause) {
return(undefined);
}
hurt(0.2);
}
function exp(Void) {
_root.enterFrameManager.del(this, "run");
game.addSound("exp.mp3", _x, _y);
hitArea_mc.removeMovieClip();
var _local4 = game.effectArea.addEffect(holeId, {_x:_x, _y:_y});
game.mainBg.stick(_local4);
var _local3;
for (var _local5 in _local4) {
_local3 = _local4[_local5];
if (typeof(_local3) == "movieclip") {
game.mainBg.makeHole({_x:(_local3._x + _x) + ((Math.random() - 0.5) * 10), _y:(_local3._y + _y) + ((Math.random() - 0.5) * 10)});
}
}
_local4.removeMovieClip();
new Exp(game.effectArea.addEffect(piecesId, {_x:_x, _y:_y}));
game.score = game.score + value;
game.coins = game.coins + value;
game.effectArea.addEffect("num_mc", {_x:_x, _y:_y, txt:value});
game.shake();
swapDepths(0);
removeMovieClip();
}
}
Symbol 1119 MovieClip [__Packages.House] Frame 0
class House extends Brick
{
function House (Void) {
super("house", 7, 100);
}
}
Symbol 1120 MovieClip [__Packages.House2] Frame 0
class House2 extends Brick
{
function House2 (Void) {
super("house2", 7, 100);
}
}
Symbol 1121 MovieClip [__Packages.Plane] Frame 0
class Plane extends Char
{
var _visible, dropShadow, xyObj, _x, _y, x, y, z, filters, delayTime, vx, vy, game, removeMovieClip, host_mc;
function Plane (Void) {
super();
_visible = false;
dropShadow = new flash.filters.DropShadowFilter(0, 45, 0, 0.5, 5, 5);
xyObj = Game.getXYZ(_x, _y, 1000);
x = xyObj.x;
y = xyObj.y;
z = xyObj.z;
xyObj = Game.getXY(x, y, 0);
var _local4 = xyObj._x - _x;
var _local3 = xyObj._y - _y;
dropShadow.distance = Math.sqrt((_local4 * _local4) + (_local3 * _local3));
filters = [dropShadow];
delayTime = 30;
}
function run(Void) {
_x = _x + vx;
_y = _y + vy;
if ((--delayTime) <= 0) {
delayTime = 30;
addMissile();
}
if (((((vx > 0) && (_x > game.zoomRight)) || ((vx < 0) && (_x < game.zoomLeft))) || ((vy > 0) && (_y > game.zoomBottom))) || ((vy < 0) && (_y < (game.zoomTop - 200)))) {
game.otherEffect.onEffect();
removeMovieClip();
}
}
function addMissile(Void) {
xyObj = Game.getXYZ(_x, _y, 1000);
game.effectArea.addEffect("Missile", {x:xyObj.x, y:xyObj.y, z:xyObj.z, host_mc:host_mc});
}
}
Symbol 1122 MovieClip [__Packages.Plane2] Frame 0
class Plane2 extends Brick
{
function Plane2 (Void) {
super("plane2", 20, 150);
}
}
Symbol 1123 MovieClip [__Packages.Pyramid] Frame 0
class Pyramid extends UnbreakAble
{
function Pyramid (Void) {
super("pyramidHitArea");
}
}
Symbol 1124 MovieClip [__Packages.Rock] Frame 0
class Rock extends UnbreakAble
{
function Rock (Void) {
super("rockHitArea");
}
}
Symbol 1125 MovieClip [__Packages.Tree] Frame 0
class Tree extends Brick
{
var hitArea_mc, game, holeId, _y, _x, piecesId, value, swapDepths, removeMovieClip;
function Tree (name) {
super(name, 1, 1);
}
function hurt(dLife, hitter) {
hitArea_mc.removeMovieClip();
var _local3 = game.effectArea.addEffect(holeId, {_x:_x, _y:_y});
game.mainBg.stick(_local3);
var _local2;
for (var _local4 in _local3) {
_local2 = _local3[_local4];
if (typeof(_local2) == "movieclip") {
game.mainBg.makeHole({_x:(_local2._x + _x) + ((Math.random() - 0.5) * 10), _y:(_local2._y + _y) + ((Math.random() - 0.5) * 10)});
}
}
_local3.removeMovieClip();
new Exp(game.effectArea.addEffect(piecesId, {_x:_x, _y:_y}));
if (hitter == game.hero) {
game.score = game.score + value;
game.coins = game.coins + value;
game.effectArea.addEffect("num_mc", {_x:_x, _y:_y, txt:value});
}
swapDepths(0);
removeMovieClip();
}
}
Symbol 1126 MovieClip [__Packages.Tree1] Frame 0
class Tree1 extends Tree
{
function Tree1 (Void) {
super("tree1");
}
}
Symbol 1127 MovieClip [__Packages.Tree2] Frame 0
class Tree2 extends Tree
{
function Tree2 (Void) {
super("tree2");
}
}
Symbol 1128 MovieClip [__Packages.Tree3] Frame 0
class Tree3 extends Tree
{
function Tree3 (Void) {
super("tree3");
}
}
Symbol 1129 MovieClip [__Packages.Tree4] Frame 0
class Tree4 extends Tree
{
function Tree4 (Void) {
super("tree4");
}
}
Symbol 1130 MovieClip [__Packages.Tree5] Frame 0
class Tree5 extends Tree
{
function Tree5 (Void) {
super("tree5");
}
}
Symbol 1131 MovieClip [__Packages.Base] Frame 0
class Base extends Brick
{
function Base (Void) {
super("base", 40, 150);
}
}
Symbol 1132 MovieClip [__Packages.FwgCtrl] Frame 0
class FwgCtrl extends MovieClip
{
var movie, gameName, music_snd, musicOn, soundOn, pgBtn, vhBtn, mogBtn, dgBtn, agtysBtn, infoBtn, mmBtn, pauseBtn, qBtn, mBtn, sBtn, getURL;
function FwgCtrl (_movie, _gameName) {
super();
movie = _movie;
gameName = _gameName;
music_snd = new Sound(movie.createEmptyMovieClip("CtrlmusicMc", 10001));
music_snd.setVolume(90);
movie.createEmptyMovieClip("CtrlsoundMc", 10000);
musicOn = true;
soundOn = true;
}
function initBtns(_pgBtn, _vhBtn, _mogBtn, _dgBtn, _agtysBtn, _infoBtn) {
pgBtn = _pgBtn;
vhBtn = _vhBtn;
mogBtn = _mogBtn;
dgBtn = _dgBtn;
agtysBtn = _agtysBtn;
infoBtn = _infoBtn;
pgBtn.fc = this;
vhBtn.fc = this;
infoBtn.fc = this;
pgBtn.txt = "Play Game";
vhBtn.txt = "View Highscore";
mogBtn.txt = "More Online Games";
dgBtn.txt = "Download Games";
agtysBtn.txt = "Add Games To Your Site";
infoBtn.txt = "Instructions";
pgBtn.press = function () {
_root.fwgCtrl.soundStart("press.mp3", this._x, this._y);
this.fc.playGame();
};
vhBtn.press = function () {
_root.fwgCtrl.soundStart("press.mp3", this._x, this._y);
this.fc.viewHighscore();
};
mogBtn.press = function () {
_root.fwgCtrl.soundStart("press.mp3", this._x, this._y);
this.getURL("http://www.freeworldgroup.com/", "_blank");
};
dgBtn.press = function () {
_root.fwgCtrl.soundStart("press.mp3", this._x, this._y);
this.getURL("http://www.ifungames.com", "_blank");
};
agtysBtn.press = function () {
_root.fwgCtrl.soundStart("press.mp3", this._x, this._y);
this.getURL("http://www.freeworldgroup.com/koalafiles.htm", "_blank");
};
infoBtn.press = function () {
_root.fwgCtrl.soundStart("press.mp3", this._x, this._y);
this.fc.showInfo();
};
}
function initMmBtn(_mmBtn) {
mmBtn = _mmBtn;
mmBtn.txt = "Main Menu";
mmBtn.fc = this;
mmBtn.press = function () {
_root.fwgCtrl.soundStart("press.mp3", this._x, this._y);
this.fc.gotoMainMenu();
};
}
function initPauseBtn(_pauseBtn) {
pauseBtn = _pauseBtn;
pauseBtn.txt = "Pause";
pauseBtn.fc = this;
pauseBtn.press = function () {
_root.fwgCtrl.soundStart("press.mp3", this._x, this._y);
if (this.fc.pause()) {
this.txt = "Resume";
} else {
this.txt = "Pause";
}
};
}
function initGameCtrl(_qBtn, _mBtn, _sBtn) {
qBtn = _qBtn;
qBtn.fc = this;
mBtn = _mBtn;
mBtn.fc = this;
sBtn = _sBtn;
sBtn.fc = this;
qBtn.stop();
qBtn.close = function () {
this.fc.enabledAll(true);
this.gotoAndStop(1);
this.onPress = function () {
this.open();
};
};
qBtn.open = function () {
this.gotoAndStop(2);
this.btn0.txt = "Low";
this.btn1.txt = "Medium";
this.btn2.txt = "High";
this.btn3.txt = "Best";
delete this.onPress;
this.rec.onPress = function () {
};
this.rec.enabled = false;
var _local4 = 0;
while (_local4 < 4) {
var _local3 = this["btn" + _local4];
_local3.press = function () {
_root.fwgCtrl.soundStart("press.mp3", this._x, this._y);
this._parent.rec.yt = this._y;
new STween(this._parent.rec, this._parent.rec._x, this._parent.rec.yt);
this._parent.fc.movie._quality = this.txt.toUpperCase();
};
if (this.fc.movie._quality == _local3.txt.toUpperCase()) {
this.rec._y = _local3._y;
}
_local4++;
}
this.hitRec.onPress = function () {
this._parent.close();
};
};
qBtn.press = function () {
_root.fwgCtrl.soundStart("press.mp3", this._x, this._y);
this.open();
};
if (musicOn) {
mBtn.gotoAndStop(1);
} else {
mBtn.gotoAndStop(2);
}
mBtn.press = function () {
_root.fwgCtrl.soundStart("press.mp3", this._x, this._y);
this.fc.musicCtrl();
};
if (soundOn) {
sBtn.gotoAndStop(1);
} else {
sBtn.gotoAndStop(2);
}
sBtn.press = function () {
_root.fwgCtrl.soundStart("press.mp3", this._x, this._y);
this.fc.soundCtrl();
};
}
function musicCtrl(Void) {
if (musicOn) {
musicOn = false;
music_snd.setVolume(0);
mBtn.gotoAndStop(2);
} else {
musicOn = true;
music_snd.setVolume(100);
mBtn.gotoAndStop(1);
}
}
function musicStart(id) {
if (musicOn) {
musicStop();
music_snd.attachSound(id);
music_snd.start(0, 10000);
}
}
function musicStop(Void) {
music_snd.stop();
}
function soundCtrl(Void) {
if (soundOn) {
soundOn = false;
sBtn.gotoAndStop(2);
} else {
soundOn = true;
sBtn.gotoAndStop(1);
}
}
function soundStart(id, x, y) {
if (soundOn) {
x = x - 400;
y = y - 300;
var _local3 = movie.CtrlsoundMc.getNextHighestDepth();
var sound_mc = movie.CtrlsoundMc.createEmptyMovieClip("sound_mc" + _local3, _local3);
var _local2 = new Sound(sound_mc);
_local2.sound_mc = sound_mc;
_local2.attachSound(id);
_local2.setVolume(100 - (Math.sqrt((x * x) + (y * y)) / 12));
_local2.setPan(x / 5);
_local2.start();
_local2.onSoundComplete = function () {
this.sound_mc.removeMovieClip();
};
}
}
function viewHighscore(Void) {
getURL("http://www.freeworldgroup.com/score/index.asp?game=" + gameName, "_blank");
}
}
Symbol 515 MovieClip Frame 1
stop();
this._visible = false;
Symbol 521 MovieClip Frame 26
stop();
Symbol 595 Button
on (release) {
getURL ("http://www.freeworldgroup.com/", "_blank");
}
Symbol 596 MovieClip Frame 117
_root.play();
Symbol 606 MovieClip [Base] Frame 1
#initclip 242
Object.registerClass("Base", Base);
#endinitclip
Symbol 679 MovieClip Frame 1
gotoAndPlay(random(this._totalframes - 2) + 2);
Symbol 679 MovieClip Frame 37
gotoAndPlay (2);
Symbol 683 MovieClip [Battery] Frame 1
#initclip 222
Object.registerClass("Battery", Battery);
#endinitclip
Symbol 687 MovieClip [Cactus] Frame 1
#initclip 223
Object.registerClass("Cactus", Cactus);
#endinitclip
Symbol 693 MovieClip [enemy_mine1] Frame 1
#initclip 224
Object.registerClass("enemy_mine1", Mine);
#endinitclip
Symbol 699 MovieClip [enemy_mine2] Frame 1
#initclip 225
Object.registerClass("enemy_mine2", Mine);
#endinitclip
Symbol 702 MovieClip [enemy_tank_1] Frame 1
#initclip 226
Object.registerClass("enemy_tank_1", Tank_1);
#endinitclip
Symbol 705 MovieClip [enemy_tank_2] Frame 1
#initclip 227
Object.registerClass("enemy_tank_2", Tank_2);
#endinitclip
Symbol 708 MovieClip [enemy_tank_3] Frame 1
#initclip 228
Object.registerClass("enemy_tank_3", Tank_3);
#endinitclip
Symbol 715 MovieClip Frame 1
stop();
Symbol 716 MovieClip [Hero] Frame 1
#initclip 229
Object.registerClass("Hero", Hero);
#endinitclip
Symbol 719 MovieClip [House] Frame 1
#initclip 230
Object.registerClass("House", House);
#endinitclip
Symbol 723 MovieClip [House2] Frame 1
#initclip 231
Object.registerClass("House2", House2);
#endinitclip
Symbol 725 MovieClip [Plane] Frame 1
#initclip 232
Object.registerClass("Plane", Plane);
#endinitclip
Symbol 727 MovieClip [Plane2] Frame 1
#initclip 233
Object.registerClass("Plane2", Plane2);
#endinitclip
Symbol 733 MovieClip [Pyramid] Frame 1
#initclip 234
Object.registerClass("Pyramid", Pyramid);
#endinitclip
Symbol 736 MovieClip [rock] Frame 1
#initclip 235
Object.registerClass("rock", Rock);
#endinitclip
Symbol 739 MovieClip [rock2] Frame 1
#initclip 236
Object.registerClass("rock2", Rock);
#endinitclip
Symbol 740 MovieClip [tree1] Frame 1
#initclip 237
Object.registerClass("tree1", Tree1);
#endinitclip
Symbol 741 MovieClip [tree2] Frame 1
#initclip 238
Object.registerClass("tree2", Tree2);
#endinitclip
Symbol 742 MovieClip [tree3] Frame 1
#initclip 239
Object.registerClass("tree3", Tree3);
#endinitclip
Symbol 745 MovieClip [tree4] Frame 1
#initclip 240
Object.registerClass("tree4", Tree4);
#endinitclip
Symbol 748 MovieClip [tree5] Frame 1
#initclip 241
Object.registerClass("tree5", Tree5);
#endinitclip
Symbol 749 MovieClip Frame 1
stop();
Symbol 759 MovieClip Frame 1
this.onRelease = function () {
getURL ("http://www.freeworldgroup.com/", "_blank");
};
Symbol 764 Button
on (release) {
getURL ("http://www.freeworldgroup.com/", "_blank");
}
Symbol 767 Button
on (release) {
getURL ("http://www.freeworldgroup.com/games6/gameindex/tank-2007.htm", "_blank");
}
Symbol 784 Button
on (release) {
var ks = new KeySetting();
var str = "AWDSJILKVB ";
if (((((ks.getCode(0) == str.charCodeAt(0)) && (ks.getCode(1) == str.charCodeAt(1))) && (ks.getCode(2) == str.charCodeAt(2))) && (ks.getCode(3) == str.charCodeAt(3))) && (ks.getCode(10) == str.charCodeAt(10))) {
gotoAndPlay ("f2");
} else {
gotoAndPlay ("f1");
}
}
Symbol 789 Button
on (release) {
play();
}
Symbol 792 Button
on (release) {
var ks = new KeySetting();
var str = "AWDSJILKVB ";
if (((((ks.getCode(0) == str.charCodeAt(0)) && (ks.getCode(1) == str.charCodeAt(1))) && (ks.getCode(2) == str.charCodeAt(2))) && (ks.getCode(3) == str.charCodeAt(3))) && (ks.getCode(10) == str.charCodeAt(10))) {
gotoAndStop (4);
} else {
gotoAndStop (3);
}
}
Symbol 812 MovieClip Frame 1
stop();
Symbol 812 MovieClip Frame 2
_parent.hitRec._visible = true;
Symbol 812 MovieClip Frame 10
stop();
Symbol 812 MovieClip Frame 20
stop();
Symbol 812 MovieClip Frame 30
gotoAndStop ("f");
Symbol 812 MovieClip Frame 40
stop();
Symbol 812 MovieClip Frame 50
gotoAndStop ("f");
Symbol 812 MovieClip Frame 51
stop();
_parent.hitRec._visible = false;
_parent.game.pause = false;
gotoAndStop (1);
Symbol 815 Button
on (release) {
music_credits_effect.show();
}
Symbol 821 Button
on (release) {
_parent.music_credits_effect.hide();
}
Symbol 823 MovieClip Frame 120
gotoAndPlay (1);
Symbol 920 MovieClip Frame 1
function movTo(mc) {
this._x = mc._x + 10;
this.clear();
this.lineStyle(1, 16777215);
this.moveTo(0, 0);
this.lineTo(0, mc._y - this._y);
}
Symbol 935 Button
on (rollOver) {
rollOver();
}
on (rollOut) {
rollOut();
}
on (press) {
press();
}
Symbol 937 MovieClip Frame 1
function setKey(key_mc) {
key_mc.isUsed = true;
key_mc.info1 = currentKey.info1;
key_mc.info2 = currentKey.info2;
currentKey.prevFrame();
key_mc.nextFrame();
popup_mc.movTo(key_mc);
popup_mc.txt = key_mc["info" + modeNum];
ks.save(currentKey.code, key_mc.code);
var _local2 = 0;
while (_local2 < 256) {
key_mc = keyBoard["key_mc" + _local2];
if (typeof(key_mc) == "movieclip") {
key_mc.enabled = key_mc.isUsed;
if (!key_mc.enabled) {
key_mc.prevFrame();
}
}
_local2++;
}
Key.removeListener(keyBoard);
}
key_mc27.str = "Esc";
key_mc32.str = "Space";
key_mc37.str = "Left";
key_mc38.str = "Up";
key_mc39.str = "Right";
key_mc40.str = "Down";
key_mc47.str = "";
key_mc48.str = "0";
key_mc49.str = "1";
key_mc50.str = "2";
key_mc51.str = "3";
key_mc52.str = "4";
key_mc53.str = "5";
key_mc54.str = "6";
key_mc55.str = "7";
key_mc56.str = "8";
key_mc57.str = "9";
key_mc65.str = "A";
key_mc66.str = "B";
key_mc67.str = "C";
key_mc68.str = "D";
key_mc69.str = "E";
key_mc70.str = "F";
key_mc71.str = "G";
key_mc72.str = "H";
key_mc73.str = "I";
key_mc74.str = "J";
key_mc75.str = "K";
key_mc76.str = "L";
key_mc77.str = "M";
key_mc78.str = "N";
key_mc79.str = "O";
key_mc80.str = "P";
key_mc81.str = "Q";
key_mc82.str = "R";
key_mc83.str = "S";
key_mc84.str = "T";
key_mc85.str = "U";
key_mc86.str = "V";
key_mc87.str = "W";
key_mc88.str = "X";
key_mc89.str = "Y";
key_mc90.str = "Z";
key_mc96.str = "NumPad0";
key_mc97.str = "NumPad1";
key_mc98.str = "NumPad2";
key_mc99.str = "NumPad3";
key_mc100.str = "NumPad4";
key_mc101.str = "NumPad5";
key_mc102.str = "NumPad6";
key_mc103.str = "NumPad7";
key_mc104.str = "NumPad8";
key_mc105.str = "NumPad9";
key_mc106.str = "*";
key_mc107.str = "+";
key_mc108.str = "";
key_mc109.str = "-";
key_mc110.str = ".";
key_mc111.str = "/";
key_mc112.str = "F1";
key_mc113.str = "F2";
key_mc114.str = "F3";
key_mc115.str = "F4";
key_mc116.str = "F5";
key_mc117.str = "F6";
key_mc118.str = "F7";
key_mc119.str = "F8";
key_mc120.str = "F9";
key_mc122.str = "F11";
key_mc123.str = "F12";
key_mc186.str = ";";
key_mc187.str = "=";
key_mc188.str = ",";
key_mc189.str = "-";
key_mc190.str = ".";
key_mc191.str = "/";
key_mc192.str = "`";
key_mc219.str = "[";
key_mc220.str = "\\";
key_mc221.str = "]";
key_mc222.str = "'";
var ks = new KeySetting();
var keyArr = [[ks.getCode(0), "Turn Left", "Move Left"], [ks.getCode(1), "Move Forwards", "Move Up"], [ks.getCode(2), "Turn Right", "Move Right"], [ks.getCode(3), "Move Backwards", "Move Down"], [ks.getCode(10), "Missile", "Missile"]];
var lso = SharedObject.getLocal("tank2007", "/");
if (lso.data.dataObj == undefined) {
lso.data.dataObj = {modeNum:2};
}
var modeNum = lso.data.dataObj.modeNum;
var totalCtrl = keyArr.length;
var keyBoard = this;
var currentKey;
popup_mc._visible = false;
modeSelect_mc.gotoAndStop(modeNum);
modeSelect_mc.rollOver = function () {
_root.userMouse.rollOver();
};
modeSelect_mc.rollOut = function () {
_root.userMouse.rollOut();
};
modeSelect_mc.press = function () {
lso.data.dataObj.modeNum = (modeNum = 3 - modeNum);
this.gotoAndStop(modeNum);
};
var i = 0;
while (i < 256) {
var key_mc = this["key_mc" + i];
if (typeof(key_mc) == "movieclip") {
key_mc.gotoAndStop(1);
key_mc.code = i;
key_mc.isUsed = false;
key_mc.enabled = false;
key_mc.onRollOver = function () {
this.nextFrame();
if (this.isUsed) {
popup_mc.movTo(this);
popup_mc._visible = true;
popup_mc.txt = this["info" + modeNum];
}
_root.userMouse.rollOver();
};
key_mc.onRollOut = function () {
if (this.isUsed) {
popup_mc._visible = false;
} else {
this.prevFrame();
}
_root.userMouse.rollOut();
};
key_mc.onPress = function () {
if (this.isUsed) {
currentKey = this;
currentKey.isUsed = false;
popup_mc.txt = "Press Any Key To Change";
var _local2 = 0;
while (_local2 < 256) {
var _local3 = keyBoard["key_mc" + _local2];
if (typeof(_local3) == "movieclip") {
_local3.enabled = !_local3.isUsed;
}
_local2++;
}
Key.addListener(keyBoard);
keyBoard.onKeyDown = function () {
var _local1 = keyBoard["key_mc" + Key.getCode()];
if (_local1.isUsed == false) {
setKey(_local1);
}
};
} else {
setKey(this);
}
};
}
i++;
}
var i = 0;
while (i < totalCtrl) {
var key_mc = keyBoard["key_mc" + keyArr[i][0]];
key_mc.info1 = keyArr[i][1];
key_mc.info2 = keyArr[i][2];
key_mc.isUsed = true;
key_mc.enabled = true;
key_mc.nextFrame();
i++;
}
Symbol 937 MovieClip Frame 2
stop();
Symbol 938 MovieClip Frame 1
backBtn.show();
backBtn.press = function () {
_parent.infoEffect.hide();
};
defaultBtn.show();
defaultBtn.press = function () {
keyBoard.ks.setDefault();
keyBoard.gotoAndPlay(1);
};
Symbol 1003 MovieClip [Game] Frame 1
#initclip 243
Object.registerClass("Game", Game);
#endinitclip
Symbol 1003 MovieClip [Game] Frame 2
init();
Symbol 1003 MovieClip [Game] Frame 3
init();
Symbol 1003 MovieClip [Game] Frame 4
init();
Symbol 1003 MovieClip [Game] Frame 5
init();
Symbol 1003 MovieClip [Game] Frame 6
init();
Symbol 1003 MovieClip [Game] Frame 7
init();
Symbol 1008 MovieClip Frame 1
stop();
Symbol 1012 MovieClip Frame 1
this._visible = false;
Symbol 1013 MovieClip Frame 1
function update(Void) {
if (game.pause) {
return(undefined);
}
total = 0;
drawArea.clear();
rec._x = game.zoomLeft / 16;
rec._y = game.zoomTop / 16;
drawArea.lineStyle(2, 16724787);
rangeCircle._x = hero._x / 16;
rangeCircle._y = hero._y / 16;
rangeCircle._width = (rangeCircle._height = hero.range / 8);
drawArea.moveTo(hero._x / 16, hero._y / 16);
drawArea.lineTo((hero._x / 16) + 1, hero._y / 16);
drawArea.lineStyle(2, 3407667);
for (var _local2 in chars) {
mc = chars[_local2];
if (typeof(mc) == "movieclip") {
total++;
drawArea.moveTo(mc._x / 16, mc._y / 16);
drawArea.lineTo((mc._x / 16) + 1, mc._y / 16);
}
}
if (total == 0) {
_root.stageClear();
}
}
var game = _parent.game;
var hero = game.hero;
var chars = game.chars;
var mc;
update();
this.onEnterFrame = function () {
update();
};
var total;
Symbol 1017 MovieClip Frame 1
function show(msg, mc) {
this._xscale = 100;
this._visible = true;
txt = msg;
this._y = mc._y - 10;
}
function hide(Void) {
this._xscale = 1;
this._visible = false;
}
var txt;
hide();
Symbol 1018 MovieClip Frame 1
function update(Void) {
var _local3 = 1;
while (_local3 <= total) {
item = this["item" + _local3];
if (_root.game.coins < item.price) {
item.enabled = false;
item.onErrorPress = function () {
popup_mc.show("Can't Afford", this);
};
} else {
item.enabled = true;
item.onErrorPress = function () {
};
}
_local3++;
}
if (hero.vId >= 5) {
item1.enabled = false;
}
if (hero.life == hero.totalLife) {
item2.enabled = false;
}
if (hero.rangeId >= 5) {
item3.enabled = false;
}
if (hero.isDouble) {
item4.enabled = false;
}
if (hero.rocketNum > 0) {
item5.enabled = false;
}
if (hero.shield._name != undefined) {
item6.enabled = false;
}
if (_root.game.otherEffect.isEffecting) {
item7.enabled = false;
}
if (hero.satellite._name != undefined) {
item8.enabled = false;
}
}
var total = 8;
var hero = _root.game.hero;
var price_array = [150, 150, 150, 500, 500, 500, 500, 500];
var item;
var i = 1;
while (i <= total) {
item = this["item" + i];
item.gotoAndStop(i);
item.price = price_array[i - 1];
item.rollOver = function () {
popup_mc.show(this.info, this);
_root.userMouse.rollOver();
};
item.rollOut = function () {
popup_mc.hide();
_root.userMouse.rollOut();
};
item.press = function () {
popup_mc.hide();
_root.game.coins = _root.game.coins - this.price;
this.run();
update();
};
i++;
}
item1.info = "Speed Up";
item2.info = "Recover";
item3.info = "Fire Power";
item4.info = "Double";
item5.info = "Missile";
item6.info = "Shield";
item7.info = "Bombard";
item8.info = "Satellite";
item1.run = function () {
hero.speedUp();
};
item2.run = function () {
hero.addLife();
};
item3.run = function () {
hero.rangeUp();
};
item4.run = function () {
hero.setDouble();
};
item5.run = function () {
hero.addRocket();
};
item6.run = function () {
hero.addShield();
};
item7.run = function () {
hero.callPlane();
};
item8.run = function () {
hero.addSatellite();
};
Symbol 1025 Button
on (rollOver) {
rollOver();
}
on (rollOut) {
rollOut();
}
on (press) {
press();
}
Symbol 1031 Button
on (rollOver) {
rollOver();
}
on (rollOut) {
rollOut();
}
on (press) {
press();
}
Symbol 1037 Button
on (rollOver) {
rollOver();
}
on (rollOut) {
rollOut();
}
on (press) {
press();
}
Symbol 1043 Button
on (rollOver) {
rollOver();
gotoAndPlay ("show");
}
on (rollOut) {
rollOut();
gotoAndPlay ("hide");
}
on (press) {
press();
gotoAndPlay ("hide");
}
Symbol 1044 MovieClip Frame 1
stop();
hitRec._width = txt_mc.labelTxt.textWidth * 0.7;
Symbol 1044 MovieClip Frame 9
stop();
Symbol 1050 MovieClip Frame 1
mmBtn.press = function () {
_root.pad.checkHit = false;
Alert.show("Quit to Menu?", function (flag) {
if (flag) {
_root.fwgCtrl.gotoMainMenu();
} else {
_root.pad.checkHit = true;
}
});
};
_root.fwgCtrl.initGameCtrl(qBtn, mBtn, sBtn);
qBtn.rollOver = (mBtn.rollOver = (sBtn.rollOver = function () {
_root.userMouse.rollOver();
}));
qBtn.rollOut = (mBtn.rollOut = (sBtn.rollOut = function () {
_root.userMouse.rollOut();
}));
mmBtn.show();
scoreNum.num = _root.game.score;
coinsNum.num = _root.game.coins;
stageNum.num = _root.game._currentframe - 1;
Symbol 1052 MovieClip Frame 1
function show(Void) {
_root.game.pause = true;
hitRec._visible = true;
item_mc._visible = true;
item_mc.update();
pad._visible = true;
new STween(item_mc, item_mc.x0 - item_mc._width, item_mc.y0);
new STween(pad, pad.x0, pad.y0 - pad._height);
this.onEnterFrame = function () {
if (checkHit) {
if (!this.hitTest(_root._xmouse, _root._ymouse, true)) {
hide();
delete this.onEnterFrame;
}
}
};
delete this.onRollOver;
}
function hide(Void) {
item_mc.popup_mc.hide();
stween = new STween(item_mc, item_mc.x0, item_mc.y0);
stween.onMov = function () {
item_mc._visible = false;
item_mc._parent.onRollOver = function () {
show();
};
};
stween = new STween(pad, pad.x0, pad.y0);
stween.onMov = function () {
pad._visible = false;
_root.game.pause = false;
trace("pause");
hitRec._visible = false;
};
}
var stween;
var checkHit = true;
hitRec = _parent.hitRec;
item_mc.x0 = item_mc._x;
item_mc.y0 = item_mc._y;
pad.x0 = pad._x;
pad.y0 = pad._y;
item_mc._visible = false;
pad._visible = false;
hitRec._visible = false;
this.onRollOver = function () {
if (_root.game.pause) {
return(undefined);
}
show();
};
Symbol 1054 MovieClip Frame 1
function show(Void) {
if (this._currentframe == 2) {
gotoAndPlay (3);
}
}
function hide(Void) {
gotoAndStop (2);
}
hide();
Symbol 1054 MovieClip Frame 3
_root.fwgCtrl.soundStart("warning.mp3", 400, 300);
Symbol 1054 MovieClip Frame 40
gotoAndPlay (3);
Symbol 1060 Button
on (release) {
gotoAndStop (1);
}
Symbol 1070 Button
on (release) {
gotoAndStop ("submited");
}
Symbol 1075 Button
on (release) {
viewHighscore();
}
Symbol 1076 MovieClip Frame 1
stop();
_global.game_name = _game_name;
var highscore = eval (score_var);
_global.viewHighscore = function () {
getURL ("http://www.freeworldgroup.com/score/index.asp?game=" + game_name, "_blank");
};
if (highscore == 0) {
this._visible = false;
}
trace(game_name);
trace(highscore);
trace("http://www.freeworldgroup.com/score/index.asp?game=" + game_name);
Symbol 1076 MovieClip Frame 3
function sendData() {
send_var.game = game_name;
send_var.score = highscore;
send_var.name = name_txt.text;
if (send_var.name == "") {
send_var.name = "guest" + int(Math.random() * 1000);
}
send_var.sendAndLoad("http://www.freeworldgroup.com/score/score.asp", load_var, "POST");
gotoAndStop ("sending");
}
stop();
gold_txt.text = highscore;
send_var = new LoadVars();
load_var = new LoadVars();
ok_btn.onRelease = sendData;
load_var.onLoad = function () {
gotoAndStop ("done");
};
Instance of Symbol 1057 MovieClip in Symbol 1076 MovieClip Frame 3
on (release) {
}