Frame 2
function wait(delay, callBack) {
function _wait() {
trace("here");
clearInterval(_interval);
callBack();
}
var _initTime = getTimer();
_interval = setInterval(_wait, delay);
}
stop();
var rootMenu = new ContextMenu();
rootMenu.hideBuiltInItems();
totalWidth = percentbar_mc._width;
percentbar_mc._width = 0;
var _interval;
preloader_mc.onEnterFrame = function () {
var _local2 = _root.getBytesLoaded();
var _local1 = _root.getBytesTotal();
if (_local1 != -1) {
var kLoaded = Math.round(_local2 / 1024);
var _local3 = Math.round(_local1 / 1024);
percent = Math.round((kLoaded / _local3) * 100);
if (isNaN(percent)) {
kPercent.text = "0%";
} else {
kPercent.text = percent + "%";
percentbar_mc._width = totalWidth * (percent / 100);
}
if ((_local2 == _local1) && (_local1 > 0)) {
delete this.onEnterFrame;
wait(5000, function () {
_root.gotoAndPlay("start");
});
this._visible = false;
} else if (_local2 == -1) {
failureReport_txt.text = "The file is not currently available. Please try again later. If you continue to receive this message, please contact the system administrator.";
}
}
};
Frame 3
function __com_mochibot__(swfid, mc, lv) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = ((((((((((("http://" + mbc) + "/my/core.swf?mv=5&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
g[n] = res;
return(res);
}
__com_mochibot__("51825b25", this, 10301);
stop();
_quality = "MEDIUM";
var missions = new Array(new Array("1", "Persian Gulf", -114, 62, "Our radars have picked up fifteen unknown bogeys entering friendly allied air space. Identify the intruders and engage if hostile."), new Array("2", "Persian Gulf", -114, 62, "It looks like we are in for a showdown. Enemy fighters are on approach. Recon indicates F14 Tomcats and F15 Eagles. Destroy 25 enemies."), new Array("3", "Persian Gulf", -114, 62, "Two frigates carrying munitions to terrorist organisations have been identified in the Gulf. Communication attempts have failed. Locate and destroy both Frigates. Heavy air support is expected."), new Array("4", "Sea of Japan", -291, 85, "North Korean MiG 21's are claiming we are in their waters. They are enroute to engage. Intercept and destroy. Destroy 50 Enemy fighters."), new Array("5", "Sea of Japan", -291, 85, "Recon indicates the North Koreans have scrambled their MiG 29's. They are fast and deadly. Collect 8 bonuses."), new Array("6", "Sea of Japan", -291, 85, "Three frigates carrying nuclear materials are refusing inspection. Engage and destroy all frigates. Be prepared for heavy air support MiG 21 and MiG 29's."), new Array("7", "South China Sea", -255, 38, "Intelligence reports one of our Stealth fighters has been stolen and is enroute to a secret airforce base in China. It will not appear on radar. You have three minutes to seek and destroy it. We expect heavy air support. "), new Array("8", "South China Sea", -255, 38, "Radar is showing we are in for an all out assault. The Chinese airforce are claiming we have entered their territorial waters. Engage and destroy... destroy 75 enemies"));
_root.mission = 1;
_root.smoke_depth = 20000;
_root.score = 0;
_root.kills = 0;
_root.createEmptyMovieClip("sfx_thrust_mc", 280);
sfxThrust = new Sound(sfx_thrust_mc);
sfxThrust.attachSound("XLE2.wav");
sfxThrust_min = 3;
sfxThrust_max = 8;
sfxThrust_vol = 0;
_root.createEmptyMovieClip("sfx_bullet_mc", 281);
sfxBullet = new Sound(sfx_bullet_mc);
sfxBullet.attachSound("bullet_3.wav");
sfxBullet.setVolume(100);
sfxBullet_playing = false;
_root.createEmptyMovieClip("sfx_powerup_mc", 283);
sfxPower = new Sound(sfx_powerup_mc);
sfxPower.attachSound("proxmine_act.wav");
sfxPower.setVolume(60);
MovieClip.prototype.g = {};
g.bounds = {xMin:30, xMax:500, yMin:30, yMax:400};
g.particle = [];
g.index = 0;
g.toRads = (Math.PI/180);
MovieClip.prototype.rand = function (num) {
var _local1 = num;
var _local2 = arguments;
if (_local2.length == 1) {
return(Math.floor(Math.random() * _local1) + 1);
}
return(Math.floor(Math.random() * (Math.abs(_local2[1] - _local1) + 1)) + Math.min(_local1, _local2[1]));
};
MovieClip.prototype.Emit = function (num) {
var _local2 = _root;
var _local3 = 0;
while (_local3 < num) {
var _local1 = _local2.attachMovie("fire", "spark" + _local2.smoke_depth, _local2.smoke_depth);
_local2.smoke_depth++;
_local2.smoke_depth = _local2.smoke_depth % 40;
_local2.smoke_depth = _local2.smoke_depth + 20000;
g.particle[g.particle.length] = _local1;
_local1._x = this._x;
_local1._y = this._y;
var angle = (((this._rotation + 90) + rand(-20, 20)) * g.toRads);
_local1.vector = [Math.cos(angle) * rand(10, 30), Math.sin(angle) * rand(10, 30)];
_local1._xscale = (_local1._yscale = rand(25, 100));
_local1._alpha = rand(10, 60);
_local3++;
}
};
MovieClip.prototype.Shower = function () {
g.index = 0;
while (g.index < g.particle.length) {
g.particle[g.index].fire();
g.index++;
}
};
MovieClip.prototype.fire = function () {
var _local1 = this;
if (!_local1.ini) {
_local1.vector[0] = _local1.vector[0] * 0.07;
_local1.vector[1] = _local1.vector[1] * 0.07;
_local1.ini = 1;
}
var _local2 = _local1._xscale * 0.01;
_local1._x = _local1._x + ((_local1.vector[0] * _local2) + _root.me.vx);
_local1._y = _local1._y + ((((_local1.vector[1] = _local1.vector[1] - 0.05)) * _local2) + _root.me.vy);
_local1._xscale = (_local1._yscale = _local1._yscale * 1.15);
_local1._alpha = _local1._alpha - 2;
_local1._rotation = _local1._rotation + (_local1.vector[0] * 20);
if (_local1._alpha <= 4) {
_local1.Remove();
}
};
MovieClip.prototype.Remove = function () {
g.particle.splice(g.index--, 1);
this.removeMovieClip();
};
MovieClip.prototype.ClearSmoke = function () {
i = 0;
while (i < g.particle.length) {
g.particle[i].removeMovieClip();
i++;
}
g.particle = [];
this.depth = 0;
};
Frame 4
stop();
Frame 11
stop();
_root.radar_carrier_start_x = _root.carrier._x;
_root.radar_carrier_start_y = _root.carrier._y;
mission_array = _root.mission - 1;
briefing.txt_mission = _root.missions[mission_array][0];
briefing.txt_briefing = _root.missions[mission_array][4];
briefing.txt_location = _root.missions[mission_array][1];
briefing.map.map._x = _root.missions[mission_array][2];
briefing.map.map._y = _root.missions[mission_array][3];
Frame 18
function position_frigate(id) {
var _local1 = id;
if (_local1 == 1) {
holder["frigate" + _local1]._y = -1200 - (Math.random() * 1200);
holder["frigate" + _local1]._x = (Math.random() * 2000) - 1000;
} else if (_local1 == 2) {
holder["frigate" + _local1]._y = 600;
holder["frigate" + _local1]._x = (Math.random() * 2000) - 1000;
} else {
holder["frigate" + _local1]._y = 800 + (Math.random() * 800);
holder["frigate" + _local1]._x = (Math.random() * 2000) - 1000;
}
}
function spawn_frigate(id) {
var _local1 = this;
var _local2 = _root;
var _local3 = id;
frigate = holder.attachMovie("destroyer", "frigate" + _local3, 260 + _local3);
position_frigate(_local3);
_local2.radar.attachMovie("blip_frigate", "blip_frigate" + _local3, 250 + _local3);
_local2.radar["blip_frigate" + _local3]._x = ((_local2.holder._x + _local2.holder["frigate" + _local3]._x) / _local2.radar_scale) - _local2.correctx;
_local2.radar["blip_frigate" + _local3]._y = ((_local2.holder._y + _local2.holder["frigate" + _local3]._y) / _local2.radar_scale) - _local2.correcty;
frigate.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
if (!_local1.dead) {
if (((_local1.turret_top.energy <= 0) && (!_local1.turret_top.dead)) && (!_local1.turret_bot.dead)) {
_local1.turret_top.dead = true;
_local2.setScore(500, 0);
_local1.gotoAndPlay("top");
} else if (((_local1.turret_bot.energy <= 0) && (!_local1.turret_top.dead)) && (!_local1.turret_bot.dead)) {
_local1.turret_bot.dead = true;
_local2.setScore(500, 0);
_local1.gotoAndPlay("bot");
} else if (((_local1.turret_bot.energy <= 0) && (_local1.turret_top.dead)) && (!_local1.turret_bot.dead)) {
_local1.turret_bot.dead = true;
_local1.dead = true;
_local2.frigates_alive--;
_local2.setScore(1000, 0);
_local1.gotoAndPlay("all");
} else if (((_local1.turret_top.energy <= 0) && (!_local1.turret_top.dead)) && (_local1.turret_bot.dead)) {
_local1.turret_top.dead = true;
_local1.dead = true;
_local2.frigates_alive--;
_local2.setScore(1000, 0);
_local1.gotoAndPlay("all");
}
tAx = _local2.me._x;
tAy = _local2.me._y;
tBx = _local2.holder._x + _local1._x;
tBy = (_local2.holder._y + _local1._y) - 136;
trange = _local2.getRange(tAx, tAy, tBx, tBy);
turret_top_dir = _local2.getDir(tAx, tAy, tBx, tBy, _local1.turret_top._rotation);
tDiff = turret_top_dir - _local1.turret_top._rotation;
if (tDiff < (-1 * _local1.turret_sensitivity)) {
_local1.turret_top._rotation = _local1.turret_top._rotation - (_local1.turret_turn * _local2.me.dt);
} else if (tDiff > turret_sensitivity) {
_local1.turret_top._rotation = _local1.turret_top._rotation + (_local1.turret_turn * _local2.me.dt);
}
var dx = Math.sin((_local1.turret_top._rotation * Math.PI) / 180);
var _local3 = Math.cos((_local1.turret_top._rotation * Math.PI) / 180);
if (trange <= _local1.fire_range) {
if ((Math.random() > _local1.intensity) && (!_local1.turret_top.dead)) {
top_bullet_mc = _local2.holder.attachMovie("bullet_frigate", "top_bullet" + top_bullet_depth, top_bullet_depth);
top_bullet_mc._x = _local1._x;
top_bullet_mc._y = _local1._y - 126;
top_bullet_mc._rotation = _local1.turret_top._rotation;
top_bullet_mc.x = (dx * _local1.bullet_speed) * _local2.me.dt;
top_bullet_mc.y = ((-_local3) * _local1.bullet_speed) * _local2.me.dt;
top_bullet_mc.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
_local1._x = _local1._x + (_local1.x + _local2.me.vx);
_local1._y = _local1._y + (_local1.y + _local2.me.vy);
if (_local1.hitTest(_local2.me.plane.hitarea)) {
if (!_local2.has_shield) {
_local2.me.energy = _local2.me.energy - _local2.bullet_strength;
}
_local1.removeMovieClip();
}
};
top_bullet_depth++;
top_bullet_depth = top_bullet_depth % 50;
top_bullet_depth = top_bullet_depth + 40000;
}
}
bAx = _local2.me._x;
bAy = _local2.me._y;
bBx = _local2.holder._x + _local1._x;
bBy = (_local2.holder._y + _local1._y) + 30;
brange = _local2.getRange(bAx, bAy, bBx, bBy);
turret_bot_dir = _local2.getDir(bAx, bAy, bBx, bBy, _local1.turret_bot._rotation);
bDiff = turret_bot_dir - _local1.turret_bot._rotation;
if (bDiff < (-1 * _local1.turret_sensitivity)) {
_local1.turret_bot._rotation = _local1.turret_bot._rotation - (_local1.turret_turn * _local2.me.dt);
} else if (bDiff > turret_sensitivity) {
_local1.turret_bot._rotation = _local1.turret_bot._rotation + (_local1.turret_turn * _local2.me.dt);
}
var dx = Math.sin((_local1.turret_bot._rotation * Math.PI) / 180);
_local3 = Math.cos((_local1.turret_bot._rotation * Math.PI) / 180);
if (brange <= _local1.fire_range) {
if ((Math.random() > _local1.intensity) && (!_local1.turret_bot.dead)) {
bot_bullet_mc = _local2.holder.attachMovie("bullet_frigate", "bot_bullet" + bot_bullet_depth, bot_bullet_depth);
bot_bullet_mc._x = _local1._x;
bot_bullet_mc._y = _local1._y + 30;
bot_bullet_mc._rotation = _local1.turret_bot._rotation;
bot_bullet_mc.x = (dx * _local1.bullet_speed) * _local2.me.dt;
bot_bullet_mc.y = ((-_local3) * _local1.bullet_speed) * _local2.me.dt;
bot_bullet_mc.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
_local1._x = _local1._x + (_local1.x + _local2.me.vx);
_local1._y = _local1._y + (_local1.y + _local2.me.vy);
if (_local1.hitTest(_local2.me.plane.hitarea)) {
if (!_local2.has_shield) {
_local2.me.energy = _local2.me.energy - _local2.bullet_strength;
}
_local1.removeMovieClip();
}
};
bot_bullet_depth++;
bot_bullet_depth = bot_bullet_depth % 50;
bot_bullet_depth = bot_bullet_depth + 50000;
}
}
}
};
}
stop();
_root.correctx = 4;
_root.correcty = 4;
carrier_return._visible = false;
_root.radar_scale = 40;
if (_root.mission == 3) {
_root.isFrigates = true;
_root.frigates = 2;
_root.frigates_alive = _root.frigates;
i = 0;
while (i < _root.frigates) {
spawn_frigate(i);
i++;
}
} else if (_root.mission == 6) {
_root.isFrigates = true;
_root.frigates = 3;
_root.frigates_alive = _root.frigates;
i = 0;
while (i < _root.frigates) {
spawn_frigate(i);
i++;
}
} else if (_root.mission == 7) {
_root.Stealth = true;
_root.stealth_time_start = getTimer();
_root.stealth_time = 180000 /* 0x02BF20 */;
} else {
_root.isFrigates = false;
_root.Stealth = false;
_root.frigates = 0;
}
top_bullet_depth = 40000;
bot_bullet_depth = 50000;
Instance of Symbol 347 MovieClip "me" in Frame 18
onClipEvent (load) {
this.plane.afterburner._visible = false;
t0 = getTimer();
screenH = 400;
screenW = 500;
end_shade_x = this.shade._x;
end_shade_y = this.shade._y;
currentframe = 10;
this.plane.gotoAndStop(currentframe);
this.shade.gotoAndStop(currentframe);
this.shade._x = 4;
this.shade._y = 8;
px = 250;
py = 150;
_root.ground._x = px;
_root.ground._y = py;
_root.radar_carrier_start_x = _root.carrier._x;
_root.radar_carrier_start_y = _root.carrier._y;
speed = 25;
i = 0;
step = 50;
xstep = (end_shade_x - this.shade._x) / step;
ystep = (end_shade_y - this.shade._y) / step;
vx = 0;
vy = 0;
_root.sfxThrust.start(0, 999);
_root.sfxThrust.setVolume(sfxThrust_vol);
}
onClipEvent (enterFrame) {
_root.sfxThrust_vol = _root.sfxThrust_vol + 0.1;
_root.sfxThrust.setVolume(Math.min(_root.sfxThrust_vol, _root.sfxThrust_min));
t = getTimer();
dt = (t - t0) / 100;
vy = speed * dt;
py = (py + vy) % screenH;
_root.ground._y = py;
_root.carrier._y = _root.carrier._y + vy;
_root.holder._y = _root.holder._y + vy;
_root.radar.blip._x = (_root.carrier._x - _root.radar_carrier_start_x) / _root.radar_scale;
_root.radar.blip._y = (_root.carrier._y - _root.radar_carrier_start_y) / _root.radar_scale;
if (i <= step) {
this.shade._x = this.shade._x + xstep;
this.shade._y = this.shade._y + ystep;
i++;
} else {
_root.gotoAndPlay("mission");
}
t0 = t;
}
Frame 26
function setScore(a, b) {
var _local1 = _root;
_local1.score = _local1.score + a;
_local1.kills = _local1.kills + b;
_local1.txt_score = _local1.score;
_local1.txt_kills = _local1.kills;
}
function setBonus() {
var _local1 = _root;
_local1.bonus++;
_local1.txt_bonus = _local1.bonus;
}
function getDir(Ax, Ay, Bx, By, Rotation) {
var _local1 = Bx;
var _local2 = Ax;
var _local3 = By;
A = Math.abs(_local2 - _local1);
B = Math.abs(Ay - _local3);
Dir = Math.atan2(B, A);
Dir = (Dir * 180) / Math.PI;
if (Ay > _local3) {
if (_local2 < _local1) {
Dir = (-Dir) + 270;
}
if (_local2 > _local1) {
Dir = Dir + 90;
}
}
if (Ay < _local3) {
if (_local2 < _local1) {
Dir = Dir + 270;
}
if (_local2 > _local1) {
Dir = (-Dir) + 90;
}
}
if (Dir > Rotation) {
if ((Dir - Rotation) > 180) {
Dir = Dir - 360;
}
} else if ((Rotation - Dir) > 180) {
Dir = Dir + 360;
}
return(Dir);
}
function odds(a, b, percent) {
var _local1 = percent;
seed = Math.random() * 100;
if (((_local1 > 0) && (_local1 <= 100)) && (seed <= _local1)) {
return(a);
}
return(b);
}
function generate_enemy() {
switch (_root.mission) {
case 1 :
return("enemyf14");
case 2 :
return(odds("enemyf14", "enemyf15", 50));
case 3 :
return(odds("enemyf14", "enemyf15", 50));
case 4 :
return("enemymig21");
case 5 :
return(odds("enemymig21", "enemymig29", 80));
case 6 :
return(odds("enemymig21", "enemymig29", 70));
case 7 :
return(odds(odds("enemymig21", "enemymig22", 50), "enemymig29", 60));
case 8 :
return(odds(odds("enemymig21", "enemymig22", 50), "enemymig29", 50));
}
return("enemyf14");
}
function getRange(Ax, Ay, Bx, By) {
return(Math.sqrt(((Ax - Bx) * (Ax - Bx)) + ((Ay - By) * (Ay - By))));
}
function getClosest(Ax, Ay) {
var _local1 = _root;
var _local2 = Ay;
var _local3 = Ax;
min_range = 100000 /* 0x0186A0 */;
closest = "";
i = 0;
while (i < _local1.enemy_array.length) {
if (_local1.enemy_array[i] != "dead") {
range = _local1.getRange(_local3, _local2, _local1[_local1.enemy_array[i]]._x, _local1[enemy_array[i]]._y);
if (range < min_range) {
min_range = range;
closest = _local1.enemy_array[i];
}
}
i++;
}
return(closest);
}
function move_powerup(mc) {
var _local1 = _root;
var _local2 = mc;
_local1["powerup_" + _local2]._x = _local1["powerup_" + _local2]._x + _local1.me.vx;
_local1["powerup_" + _local2]._y = _local1["powerup_" + _local2]._y + _local1.me.vy;
_local1.radar["blip_" + _local2]._x = (_local1["powerup_" + _local2]._x / _local1.radar_scale) - _local1.correctx;
_local1.radar["blip_" + _local2]._y = (_local1["powerup_" + _local2]._y / _local1.radar_scale) - _local1.correcty;
}
function kill_powerup(mc) {
var _local1 = mc;
var _local2 = _root;
_local2["powerup_" + _local1].removeMovieClip();
_local2.radar["blip_" + _local1].removeMovieClip();
_local2[_local1 + "_visible"] = false;
}
function spawn_powerup(mc, depth, time) {
var _local1 = mc;
var _local2 = this;
var _local3 = _root;
_local3[_local1 + "_visible"] = true;
clip = _local3.attachMovie("powerup_" + _local1, "powerup_" + _local1, 3000 + depth);
clip.id = _local1;
clip.timer_start = getTimer();
clip.timer_show = time;
clip._xscale = 50;
clip._yscale = 50;
position(clip);
blip = _local3.radar.attachMovie("blip_" + _local1, "blip_" + _local1, 50 + depth);
blip._x = (powerup_mc._x / _local3.radar_scale) - correctx;
blip._y = powerup_mc._y / _local3.radar_scale;
clip.onEnterFrame = function () {
var _local1 = this;
_local1.timer = getTimer();
if (_local1.timer > (_local1.timer_start + _local1.timer_show)) {
kill_powerup(_local1.id);
}
};
}
function position(mc) {
var _local1 = mc;
if (Math.random() > 0.5) {
_local1._y = -1000 - (Math.random() * 1000);
} else {
_local1._y = 1000 + (Math.random() * 1000);
}
_local1._x = (Math.random() * 2000) - 1000;
}
function spawn() {
var _local1 = _root;
var _local2 = this;
if (_local1.enemies < _local1.enemy_array.length) {
i = 0;
while (i < _local1.enemy_array.length) {
if (_local1.enemy_array[i] == "dead") {
_local1.enemy_array[i] = "enemy" + i;
spawnid = i;
break;
}
i++;
}
enemy_type = generate_enemy();
enemy = _local1.attachMovie(enemy_type, _local1.enemy_array[spawnid], enemy_level);
enemy.spawn = spawnid;
enemy.tint = 0;
_local1.enemy_level++;
_local1.enemies++;
enemy.width = 60;
enemy.height = 84.2;
enemy.shade.gotoAndStop(10);
position(enemy);
_local1.radar.attachMovie("blip", _local1.enemy_array[spawnid], 200 + spawnid);
_local1.radar.enemy_array[spawnid]._x = (_local1.enemy_array[spawnid]._x / _local1.radar_scale) - _local1.correctx;
_local1.radar.enemy_array[spawnid]._y = (_local1.enemy_array[spawnid]._y / _local1.radar_scale) - _local1.correcty;
enemy.Rotation = enemy._rotation;
enemy.angle = enemy._rotation;
enemy.vx = 0;
enemy.vy = 0;
enemy.px = enemy._x;
enemy.py = enemy._y;
enemy.dead = false;
enemy.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
_local1.tint = _local1.tint - 10;
if (_local1.tint < 0) {
_local1.tint = 0;
}
col = new Color(_local1.plane);
col.tintRGB(16777215, 100 - _local1.tint);
if ((_local1.energy < 0) && (!_local1.dead)) {
_local2.radar[_local2.enemy_array[_local1.spawn]].removeMovieClip();
_local2.enemy_array[_local1.spawn] = "dead";
_local1.dead = true;
_local2.enemies--;
_local1.gotoAndPlay("dead");
_local2.setScore(100, 1);
} else {
_local2.radar[_local2.enemy_array[_local1.spawn]]._x = (_local1._x / radar_scale) - _local2.correctx;
_local2.radar[_local2.enemy_array[_local1.spawn]]._y = (_local1._y / radar_scale) - _local2.correcty;
Ax = _local2.me._x;
Ay = _local2.me._y;
Bx = _local1._x;
By = _local1._y;
range = _local2.getRange(Ax, Ay, Bx, By);
Dir = _local2.getDir(Ax, Ay, Bx, By, _local1.Rotation);
Diff = Dir - _local1.Rotation;
if (Diff < (-1 * _local1.sensitivity)) {
if (range < _local1.collision_range) {
_local1.Rotation = _local1.Rotation + ((_local1.angle_increment * _local1.collision_veer) * _local2.me.dt);
} else {
_local1.Rotation = _local1.Rotation - (_local1.angle_increment * _local2.me.dt);
}
} else if (Diff > _local1.sensitivity) {
if (range < _local1.collision_range) {
_local1.Rotation = _local1.Rotation - ((_local1.angle_increment * _local1.collision_veer) * _local2.me.dt);
} else {
_local1.Rotation = _local1.Rotation + (_local1.angle_increment * _local2.me.dt);
}
}
var dx = Math.sin((_local1.Rotation * Math.PI) / 180);
var _local3 = Math.cos((_local1.Rotation * Math.PI) / 180);
vx = (dx * _local1.speed) * _local2.me.dt;
vy = (_local3 * _local1.speed) * _local2.me.dt;
if (!_local1.dead) {
_local1.px = (_local1.px + vx) + _local2.me.vx;
_local1.py = (_local1.py - vy) + _local2.me.vy;
_local1._rotation = _local1.Rotation;
} else {
_local1.px = _local1.px + _local2.me.vx;
_local1.py = _local1.py + _local2.me.vy;
}
_local1._x = _local1.px;
_local1._y = _local1.py;
if ((range < _local1.inrange) && (Math.abs(Diff) < _local1.spray_angle)) {
if ((Math.random() > _local1.intensity) && (!_local1.dead)) {
enemy_bullet_mc = _local2.attachMovie("enemy_bullet", "enemy_bullet" + _local2.bullet_depth, _local2.bullet_depth);
enemy_bullet_mc._x = _local1._x;
enemy_bullet_mc._y = _local1._y;
enemy_bullet_mc._rotation = _local1.Rotation;
enemy_bullet_mc.x = (dx * _local1.bullet_speed) * _local2.me.dt;
enemy_bullet_mc.y = ((-_local3) * _local1.bullet_speed) * _local2.me.dt;
enemy_bullet_mc.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
_local1._x = _local1._x + (_local1.x + _local2.me.vx);
_local1._y = _local1._y + (_local1.y + _local2.me.vy);
if (_local1.hitTest(_local2.me.plane.hitarea)) {
if (!_local2.has_shield) {
_local2.me.energy = _local2.me.energy - _local2.bullet_strength;
}
_local1.removeMovieClip();
}
};
_local2.bullet_depth++;
_local2.bullet_depth = _local2.bullet_depth % 200;
_local2.bullet_depth = _local2.bullet_depth + 10000;
}
}
}
};
}
}
function spawn_fuel() {
spawn_powerup("fuel", 1, 15000);
}
function spawn_missiles() {
spawn_powerup("missiles", 2, 15000);
}
function spawn_health() {
spawn_powerup("health", 3, 15000);
}
function spawn_smart() {
spawn_powerup("smart", 4, 15000);
}
function spawn_bonus() {
spawn_powerup("bonus", 5, 15000);
}
function spawn_turbo() {
spawn_powerup("turbo", 6, 15000);
}
function spawn_turn() {
spawn_powerup("turn", 7, 15000);
}
function spawn_shield() {
spawn_powerup("shield", 8, 15000);
}
function spawn_gun() {
spawn_powerup("gun", 9, 15000);
}
function spawn_generic() {
var _local1 = _root;
bonus_toggle = Math.round(Math.random() * 6);
if ((bonus_toggle == 1) && (!_local1.has_turbo)) {
spawn_turbo();
} else if ((bonus_toggle == 2) && (!_local1.has_turn)) {
spawn_turn();
} else if ((bonus_toggle == 3) && (!_local1.has_shield)) {
spawn_shield();
} else if ((bonus_toggle == 4) && (!_local1.has_gun)) {
spawn_gun();
} else {
spawn_bonus();
}
}
stop();
_root.smartbomb = false;
_root.smartbombs = 1;
_root.enemies = 0;
_root.enemy_array = new Array("dead", "dead", "dead", "dead", "dead");
_root.enemy_level = 5000;
_root.bullet_depth = 10000;
_root.bullet_strength = 0.5;
_root.missiles = 6;
_root.missiles_max = 6;
_root.missile_firing = false;
_root.radar_scale = 40;
_root.blipdepth = 500;
_root.correctx = 4;
_root.correcty = 4;
_root.fuel_visible = false;
_root.health_visible = false;
_root.missiles_visible = false;
_root.smart_visible = false;
_root.gun_visible = false;
_root.shield_visible = false;
_root.turbo_visible = false;
_root.turn_visible = false;
_root.bonus_visible = false;
_root.has_turbo = false;
_root.has_turn = false;
_root.has_shield = false;
_root.has_gun = false;
_root.bonus = 0;
_root.txt_bonus = _root.bonus;
Color.prototype.reduceRGB = function (p) {
var _local3 = p;
var _local1 = this.getTransform();
var _local2 = (100 - _local3) / 100;
this.setTransform({ra:_local3, rb:_local1.rb * _local2, ga:_local3, gb:_local1.gb * _local2, ba:_local3, bb:_local1.bb * _local2});
};
Color.prototype.tintRGB = function (hex, p) {
this.setRGB(hex);
this.reduceRGB(p);
};
spawn();
enemy_interval = 6000 - (_root.mission * 250);
var intervalSpawn = setInterval(spawn, 6000);
var intervalFuel = setInterval(spawn_fuel, 22000);
var intervalHealth = setInterval(spawn_health, 75000);
var intervalMissiles = setInterval(spawn_missiles, 64000);
var intervalSmart = setInterval(spawn_smart, 85000);
var intervalPowerup = setInterval(spawn_generic, 12000);
if (_root.Stealth) {
waypoint = 0;
stealth_coords = new Array(new Array(700, 900, true), new Array(1000, -400, false), new Array(400, -400, false), new Array(800, 800, false), new Array(-1060, -480, false), new Array(-550, 760, false), new Array(730, 0, false), new Array(900, 830, false), new Array(-1100, 780, false), new Array(0, -470, false));
stealth = _root.attachMovie("stealth", "stealth", 270);
stealth.width = 60;
stealth.height = 84.2;
position(stealth);
stealth.sAngle_increment = 25;
stealth.sSpeed = 36;
stealth.waypoint_range = 50;
stealth.spx = stealth._x;
stealth.spy = stealth._y;
stealth.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
if ((_local1.energy < 0) && (!_local1.dead)) {
_local1.dead = true;
_local1.gotoAndPlay("dead");
_local2.setScore(1500, 1);
} else {
sRotation = _local1._rotation;
sAx = _local2.carrier._x + _local2.stealth_coords[_local2.waypoint][0];
sAy = _local2.carrier._y + _local2.stealth_coords[_local2.waypoint][1];
sBx = _local1._x;
sBy = _local1._y;
srange = _local2.getRange(sAx, sAy, sBx, sBy);
sDir = _local2.getDir(sAx, sAy, sBx, sBy, _local1.sRotation);
if ((srange <= _local1.waypoint_range) && (_local2.stealth_coords[_local2.waypoint][2])) {
_local2.stealth_coords[_local2.waypoint][2] = false;
_local2.waypoint++;
if (_local2.waypoint >= _local2.stealth_coords.length) {
_local2.waypoint = 0;
}
_local2.stealth_coords[_local2.waypoint][2] = true;
}
sDiff = sDir - _local1.sRotation;
if (sDiff < -5) {
_local1.sRotation = _local1.sRotation - (_local1.sAngle_increment * _local2.me.dt);
} else if (sDiff > 5) {
_local1.sRotation = _local1.sRotation + (_local1.sAngle_increment * _local2.me.dt);
}
_local1.sdx = Math.sin((_local1.sRotation * Math.PI) / 180);
_local1.sdy = Math.cos((_local1.sRotation * Math.PI) / 180);
_local1.svx = (_local1.sdx * _local1.sSpeed) * _local2.me.dt;
_local1.svy = (_local1.sdy * _local1.sSpeed) * _local2.me.dt;
if (!_local1.dead) {
_local1.spx = (_local1.spx + _local1.svx) + _local2.me.vx;
_local1.spy = (_local1.spy - _local1.svy) + _local2.me.vy;
_local1._rotation = _local1.sRotation;
} else {
_local1.spx = _local1.spx + _local2.me.vx;
_local1.spy = _local1.spy + _local2.me.vy;
}
_local1._x = _local1.spx;
_local1._y = _local1.spy;
}
};
}
Instance of Symbol 347 MovieClip "me" in Frame 26
onClipEvent (load) {
function mission_complete(mission) {
var _local1 = mission;
var _local2 = _root;
if (_local1 == 1) {
return(_local2.kills >= 15);
}
if (_local1 == 2) {
return(_local2.kills >= 25);
}
if (_local1 == 3) {
return(_local2.frigates_alive == 0);
}
if (_local1 == 4) {
return(_local2.kills >= 35);
}
if (_local1 == 5) {
return(_local2.bonus >= 8);
}
if (_local1 == 6) {
return(_local2.frigates_alive == 0);
}
if (_local1 == 7) {
return(_local2.stealth.dead == true);
}
if (_local1 == 8) {
return(_local2.kills >= 75);
}
return(undefined);
}
function movecarrier() {
var _local1 = _root;
_local1.carrier._y = _local1.carrier._y + vy;
_local1.carrier._x = _local1.carrier._x + vx;
if ((((_local1.carrier._x > -250) && (_local1.carrier._x < 530)) && (_local1.carrier._y > -680)) && (_local1.carrier._y < 350)) {
if (!carrier_visible) {
_local1.carrier._visible = true;
carrier_visible = true;
}
} else {
_local1.carrier._visible = false;
carrier_visible = false;
}
_local1.radar.blip._x = (_local1.carrier._x - _local1.radar_carrier_start_x) / _local1.radar_scale;
_local1.radar.blip._y = (_local1.carrier._y - _local1.radar_carrier_start_y) / _local1.radar_scale;
_local1.arrow_carrier._rotation = 180 + _local1.getDir(_local1.me._x, _local1.me._y, _local1.carrier._x, _local1.carrier._y, 0);
}
function move_frigates() {
var _local1 = _root;
_local1.holder._y = _local1.holder._y + vy;
_local1.holder._x = _local1.holder._x + vx;
i = 0;
while (i < _local1.frigates) {
_local1.radar["blip_frigate" + i]._x = ((_local1.holder._x + _local1.holder["frigate" + i]._x) / _local1.radar_scale) - _local1.correctx;
_local1.radar["blip_frigate" + i]._y = ((_local1.holder._y + _local1.holder["frigate" + i]._y) / _local1.radar_scale) - _local1.correcty;
i++;
}
}
function smoke() {
smoke_intensity = Math.floor((100 - energy) / smokeamount);
Emit(smoke_intensity);
Shower();
}
function showstatus() {
var _local1 = _root;
_local1.statusbars.mask_health._width = (energy / energy_max) * health_width;
if (energy < 25) {
_local1.statusbars.health.gotoAndPlay("warning");
} else {
_local1.statusbars.health.gotoAndPlay("ok");
}
fuel = fuel - (speed * fuel_consumption);
_local1.statusbars.mask_fuel._width = (fuel / fuel_max) * fuel_width;
}
function controls() {
var _local1 = this;
if (Key.isDown(38)) {
speed = speed + accel_up;
speed = Math.min(speed, speed_max);
} else if (Key.isDown(40)) {
speed = speed - accel_down;
speed = Math.max(speed, speed_min);
}
if (Key.isDown(39)) {
angle = angle + (angle_increment * dt);
currentframe = currentframe + 1;
turnAng = turnAng - (turnAngle * dt);
} else if (Key.isDown(37)) {
angle = angle - (angle_increment * dt);
currentframe = currentframe - 1;
turnAng = turnAng + (turnAngle * dt);
} else {
if (currentframe > 10) {
currentframe = currentframe - 1;
}
if (currentframe < 10) {
currentframe = currentframe + 1;
}
}
if (currentframe >= max_frame) {
currentframe = max_frame;
}
if (currentframe <= min_frame) {
currentframe = min_frame;
}
_local1.plane._rotation = angle;
_local1.plane.gotoAndStop(currentframe);
_local1.shade._rotation = angle;
_local1.shade.gotoAndStop(currentframe);
}
t0 = getTimer();
this.plane.afterburner._visible = false;
angle = this._rotation;
angle_increment = 20;
angle_increment_base = 20;
angle_increment_powerup = 25;
energy = 200;
energy_max = 200;
fuel = 100;
fuel_max = 100;
bullet = 30000;
bullet_speed = 40;
bullet_type = 0;
weapons = new Array(new Array(20, "bullet_0"), new Array(16, "bullet_1"), new Array(12, "bullet_2"));
smokeamount = 50;
speed = 25;
speed_min = 25;
speed_max = 35;
afterburn = 45;
accel_up = 0.5;
accel_down = 0.3;
missile_speed = 70;
missile_turn = 100;
missile_sensitivity = 5;
missile_damage = 300;
Height = 15;
Width = 15;
screenW = Stage.width;
screenH = Stage.height;
health_width = _root.statusbars.mask_health._width;
fuel_width = _root.statusbars.mask_fuel._width;
currentframe = 10;
mid_frame = 10;
max_frame = 20;
min_frame = 1;
this.plane.gotoAndStop(currentframe);
this.shade.gotoAndStop(currentframe);
turnAngle = (angle_increment * Math.PI) / 180;
turnAng = (angle * Math.PI) / 180;
px = _root.ground._x;
py = _root.ground._y;
vx = 0;
vy = 0;
missile_depth = 1000;
bullet = 10000;
firing = false;
dead = false;
carrier_visible = true;
}
onClipEvent (enterFrame) {
t = getTimer();
dt = (t - t0) / 100;
if (((energy < 0) || (fuel < 0)) && (!dead)) {
this.gotoAndPlay("dead");
dead = true;
} else {
smoke();
controls();
var dx = Math.sin(turnAng);
var dy = Math.cos(turnAng);
vx = (dx * speed) * dt;
vy = (dy * speed) * dt;
px = (px + vx) % screenW;
py = (py + vy) % screenH;
_root.ground._x = px;
_root.ground._y = py;
movecarrier();
if (_root.isFrigates) {
move_frigates();
}
fuel_consumption = speed * 2.6E-5;
showstatus();
if (_root.fuel_visible) {
_root.move_powerup("fuel");
if (this.hitTest(_root.powerup_fuel)) {
_root.sfxPower.start(0, 1);
fuel = fuel_max;
_root.kill_powerup("fuel");
}
}
if (_root.health_visible) {
_root.move_powerup("health");
if (this.hitTest(_root.powerup_health)) {
_root.sfxPower.start(0, 1);
energy = energy_max;
_root.kill_powerup("health");
}
}
if (_root.missiles_visible) {
_root.move_powerup("missiles");
if (this.hitTest(_root.powerup_missiles)) {
_root.sfxPower.start(0, 1);
_root.missiles = _root.missiles_max;
_root.missile_display.mask._x = 57;
_root.kill_powerup("missiles");
}
}
if (_root.smart_visible) {
_root.move_powerup("smart");
if (this.hitTest(_root.powerup_smart)) {
_root.sfxPower.start(0, 1);
_root.smartbombs = 1;
_root.smart_icon._visible = true;
_root.kill_powerup("smart");
}
}
if (_root.bonus_visible) {
_root.move_powerup("bonus");
if (this.hitTest(_root.powerup_bonus)) {
_root.sfxPower.start(0, 1);
_root.setBonus();
_root.kill_powerup("bonus");
}
}
if (_root.turbo_visible) {
_root.move_powerup("turbo");
if (this.hitTest(_root.powerup_turbo)) {
_root.sfxPower.start(0, 1);
this.speed_max = this.afterburn;
this.plane.afterburner._visible = true;
_root.has_turbo = true;
_root.kill_powerup("turbo");
}
}
if (_root.turn_visible) {
_root.move_powerup("turn");
if (this.hitTest(_root.powerup_turn)) {
_root.sfxPower.start(0, 1);
angle_increment = angle_increment_powerup;
turnAngle = (angle_increment * Math.PI) / 180;
_root.has_turn = true;
_root.kill_powerup("turn");
}
}
if (_root.shield_visible) {
_root.move_powerup("shield");
if (this.hitTest(_root.powerup_shield)) {
_root.sfxPower.start(0, 1);
_root.has_shield = true;
_root.me.shield.gotoAndPlay("shield");
_root.kill_powerup("shield");
}
}
if (_root.gun_visible) {
_root.move_powerup("gun");
if (this.hitTest(_root.powerup_gun)) {
_root.sfxPower.start(0, 1);
bullet_type++;
if (bullet_type >= (weapons.length - 1)) {
bullet_type = weapons.length - 1;
_root.has_gun = true;
}
_root.kill_powerup("gun");
}
}
if (Key.isDown(77)) {
if ((_root.missiles > 0) && (!_root.missile_firing)) {
_root.missile_firing = true;
_root.missiles--;
_root.missile_display.mask._x = -3 + (_root.missiles * 10);
missile_mc = _root.attachMovie("stinger", "stinger" + missile_depth, missile_depth);
missile_mc.isAlive = true;
missile_depth++;
missile_mc._x = _x;
missile_mc._y = _y;
missile_mc._rotation = this.plane._rotation;
_root.missile_target = _root.getClosest(_x, _y);
missile_mc.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
mRotation = _local1._rotation;
mAx = _local2[_local2.missile_target]._x;
mAy = _local2[_local2.missile_target]._y;
mBx = _local1._x;
mBy = _local1._y;
mDir = _local2.getDir(mAx, mAy, mBx, mBy, mRotation);
mDiff = mDir - mRotation;
if (mDiff < -5) {
mRotation = mRotation - (missile_turn * dt);
} else if (mDiff > 5) {
mRotation = mRotation + (missile_turn * dt);
}
var mdx = Math.sin((mRotation * Math.PI) / 180);
var _local3 = Math.cos((mRotation * Math.PI) / 180);
mvx = (mdx * missile_speed) * dt;
mvy = (_local3 * missile_speed) * dt;
_local1._x = _local1._x + (mvx + _local2.me.vx);
_local1._y = _local1._y - (mvy - _local2.me.vy);
_local1._rotation = mRotation;
hitMc = _local2[_local2.missile_target];
if (_local1.hitTest(hitMC.plane.hitarea) && (_local1.isAlive)) {
hitMc.energy = hitMc.energy - missile_damage;
_local1._visible = false;
_local1.isAlive = false;
}
};
}
}
if (Key.isDown(32) && (!this.dead)) {
if (!_root.sfxBullet_playing) {
_root.sfxBullet.start(0, 999);
_root.sfxBullet_playing = true;
}
bullet_mc = _root.attachMovie(weapons[bullet_type][1], "bullet" + bullet, bullet);
bullet_mc._x = this._x;
bullet_mc._y = this._y;
bullet_mc._rotation = this.angle;
bullet_mc.x = ((-dx) * bullet_speed) * dt;
bullet_mc.y = ((-dy) * bullet_speed) * dt;
bullet_mc.onEnterFrame = function () {
var _local1 = _root;
var _local2 = this;
_local2._x = _local2._x + _local2.x;
_local2._y = _local2._y + _local2.y;
i = 0;
while (i < _local1.enemy_array.length) {
if (_local1.enemy_array[i] != "dead") {
if (_local2.hitTest(_local1[_local1.enemy_array[i]].plane.hitarea)) {
enemy_mc = _local1[_local1.enemy_array[i]];
enemy_mc.tint = 100;
enemy_mc.energy = enemy_mc.energy - weapons[bullet_type][0];
_local2.removeMovieClip();
}
}
i++;
}
if (_local1.isFrigates && (_local1.frigates > 0)) {
i = 0;
while (i < _local1.frigates) {
if (!_local1["frigate" + i].dead) {
if (_local2.hitTest(_local1.holder["frigate" + i].turret_top)) {
_local1.holder["frigate" + i].turret_top.energy = _local1.holder["frigate" + i].turret_top.energy - weapons[bullet_type][0];
_local2.removeMovieClip();
} else if (_local2.hitTest(_local1.holder["frigate" + i].turret_bot)) {
_local1.holder["frigate" + i].turret_bot.energy = _local1.holder["frigate" + i].turret_bot.energy - weapons[bullet_type][0];
_local2.removeMovieClip();
}
}
i++;
}
}
if (_local1.Stealth) {
if (_local2.hitTest(_local1.stealth.plane.hitarea)) {
_local1.stealth.energy = _local1.stealth.energy - weapons[bullet_type][0];
_local2.removeMovieClip();
}
}
bullet++;
bullet = bullet % 100;
bullet = bullet + 30000;
};
} else {
_root.sfxBullet.stop();
_root.sfxBullet_playing = false;
}
if ((Key.isDown(66) && (!_root.smartbomb)) && (_root.smartbombs > 0)) {
_root.smart.gotoAndPlay("bang");
_root.smartbomb = true;
_root.smartbombs = 0;
_root.smart_icon._visible = false;
i = 0;
while (i < _root.enemy_array.length) {
if (_root.enemy_array[i] != "dead") {
_root[_root.enemy_array[i]].energy = -10;
}
i++;
}
}
t0 = t;
if (mission_complete(_root.mission)) {
_root.carrier_return._visible = true;
if (this.hitTest(_root.carrier)) {
if (_root.mission == 8) {
_root.finished = true;
_root.gotoAndPlay("gameover");
} else {
_root.gotoAndPlay("complete");
}
}
} else if (_root.stealth) {
gametime = getTimer() - _root.stealth_time_start;
if (gametime > _root.stealth_time) {
trace("failed");
_root.gotoAndPlay("gameover");
}
}
}
_root.sfxThrust_vol = (((speed - speed_min) / (afterburn - speed_min)) * (_root.sfxThrust_max - _root.sfxThrust_min)) + _root.sfxThrust_min;
_root.sfxThrust.setVolume(_root.sfxThrust_vol);
}
Frame 60
if (_root.finished) {
complete.txt_title = "GAME COMPLETE! ";
} else {
complete.txt_title = "GAME OVER";
}
_root.carrier_return._visible = false;
complete.txt_kills = _root.kills;
complete.txt_bonus = _root.bonus;
complete.killsbonus = (_root.kills * _root.bonus) * 60;
complete.txt_killsbonus = complete.killsbonus;
_root.score = _root.score + complete.killsbonus;
complete.txt_score = _root.score;
_root.kills = 0;
_root.bonus = 0;
_root.txt_kills = _root.kills;
_root.txt_bonus = _root.bonus;
_root.txt_score = _root.score;
_root.x1025 = _root.score;
_root.mission = 1;
stop();
sfxThrust.stop();
sfxBullet.stop();
sfxBullet_playing = false;
_root.carrier._x = _root.radar_carrier_start_x;
_root.carrier._y = _root.radar_carrier_start_y;
_root.holder._x = Stage.width / 2;
_root.holder._y = Stage.height / 2;
i = 0;
while (i <= _root.enemies) {
_root["enemy" + i].removeMovieClip();
_root.radar["enemy" + i].removeMovieClip();
i++;
}
i = 0;
while (i <= 3) {
_root["frigate" + i].removeMovieClip();
_root.radar["blip_frigate" + i].removeMovieClip();
i++;
}
_root.stealth.removeMovieClip();
_root.fuel_visible = false;
_root.health_visible = false;
_root.missiles_visible = false;
_root.smart_visible = false;
_root.gun_visible = false;
_root.shield_visible = false;
_root.turbo_visible = false;
_root.turn_visible = false;
_root.bonus_visible = false;
_root.has_turbo = false;
_root.has_turn = false;
_root.has_shield = false;
_root.has_gun = false;
_root.radar.blip_fuel.removeMovieClip();
_root.radar.blip_health.removeMovieClip();
_root.radar.blip_missiles.removeMovieClip();
_root.radar.blip_smart.removeMovieClip();
_root.radar.blip_bonus.removeMovieClip();
_root.radar.blip_turbo.removeMovieClip();
_root.radar.blip_turn.removeMovieClip();
_root.radar.blip_shield.removeMovieClip();
_root.radar.blip_gun.removeMovieClip();
_root.powerup_fuel.removeMovieClip();
_root.powerup_health.removeMovieClip();
_root.powerup_missiles.removeMovieClip();
_root.powerup_smart.removeMovieClip();
_root.powerup_bonus.removeMovieClip();
_root.powerup_turbo.removeMovieClip();
_root.powerup_turn.removeMovieClip();
_root.powerup_shield.removeMovieClip();
_root.powerup_gun.removeMovieClip();
_root.missile_display.mask._x = 57;
_root.smartbomb = false;
_root.smartbombs = 1;
_root.smart_icon._visible = true;
_root.me.ClearSmoke();
_root.me.plane.afterburner._visible = true;
_root.me.angle_increment = _root.me.angle_increment_base;
clearInterval(intervalSpawn);
clearInterval(intervalFuel);
clearInterval(intervalHealth);
clearInterval(intervalMissiles);
clearInterval(intervalSmart);
clearInterval(intervalBonus);
clearInterval(intervalTurbo);
clearInterval(intervalTurn);
clearInterval(intervalShield);
clearInterval(intervalGun);
Frame 69
_root.carrier_return._visible = false;
complete.txt_kills = _root.kills;
complete.txt_bonus = _root.bonus;
complete.killsbonus = (_root.kills * _root.bonus) * 60;
complete.txt_killsbonus = complete.killsbonus;
_root.score = _root.score + complete.killsbonus;
complete.txt_score = _root.score;
_root.kills = 0;
_root.bonus = 0;
_root.txt_kills = _root.kills;
_root.txt_bonus = _root.bonus;
_root.txt_score = _root.score;
_root.mission++;
stop();
sfxThrust.stop();
sfxBullet.stop();
sfxBullet_playing = false;
_root.carrier._x = _root.radar_carrier_start_x;
_root.carrier._y = _root.radar_carrier_start_y;
_root.holder._x = Stage.width / 2;
_root.holder._y = Stage.height / 2;
i = 0;
while (i <= _root.enemies) {
_root["enemy" + i].removeMovieClip();
_root.radar["enemy" + i].removeMovieClip();
i++;
}
i = 0;
while (i <= 3) {
_root["frigate" + i].removeMovieClip();
_root.radar["blip_frigate" + i].removeMovieClip();
i++;
}
_root.stealth.removeMovieClip();
_root.fuel_visible = false;
_root.health_visible = false;
_root.missiles_visible = false;
_root.smart_visible = false;
_root.gun_visible = false;
_root.shield_visible = false;
_root.turbo_visible = false;
_root.turn_visible = false;
_root.bonus_visible = false;
_root.has_turbo = false;
_root.has_turn = false;
_root.has_shield = false;
_root.has_gun = false;
_root.radar.blip_fuel.removeMovieClip();
_root.radar.blip_health.removeMovieClip();
_root.radar.blip_missiles.removeMovieClip();
_root.radar.blip_smart.removeMovieClip();
_root.radar.blip_bonus.removeMovieClip();
_root.radar.blip_turbo.removeMovieClip();
_root.radar.blip_turn.removeMovieClip();
_root.radar.blip_shield.removeMovieClip();
_root.radar.blip_gun.removeMovieClip();
_root.powerup_fuel.removeMovieClip();
_root.powerup_health.removeMovieClip();
_root.powerup_missiles.removeMovieClip();
_root.powerup_smart.removeMovieClip();
_root.powerup_bonus.removeMovieClip();
_root.powerup_turbo.removeMovieClip();
_root.powerup_turn.removeMovieClip();
_root.powerup_shield.removeMovieClip();
_root.powerup_gun.removeMovieClip();
_root.missile_display.mask._x = 57;
_root.smartbomb = false;
_root.smartbombs = 1;
_root.smart_icon._visible = true;
_root.me.ClearSmoke();
_root.me.plane.afterburner._visible = true;
_root.me.angle_increment = _root.me.angle_increment_base;
clearInterval(intervalSpawn);
clearInterval(intervalFuel);
clearInterval(intervalHealth);
clearInterval(intervalMissiles);
clearInterval(intervalSmart);
clearInterval(intervalBonus);
clearInterval(intervalTurbo);
clearInterval(intervalTurn);
clearInterval(intervalShield);
clearInterval(intervalGun);
Frame 77
scoreboard = new Array("Player", "", "", "Score");
_root.scoreboard_mc.jumpto = "load";
_root.scoreboard_mc.gotoAndPlay("clear");
stop();
Frame 78
scoreboard = new Array("Player", "", "", "Score");
_root.scoreboard_mc.jumpto = "submit";
_root.scoreboard_mc.gotoAndPlay("clear");
stop();
Frame 79
stop();
Symbol 16 MovieClip [enemy_bullet] Frame 23
this.removeMovieClip();
Symbol 18 MovieClip [bullet_0] Frame 20
this.removeMovieClip();
Symbol 66 MovieClip Frame 1
hitarea._visible = false;
stop();
Symbol 66 MovieClip Frame 2
stop();
Symbol 66 MovieClip Frame 3
stop();
Symbol 66 MovieClip Frame 4
stop();
Symbol 66 MovieClip Frame 5
stop();
Symbol 66 MovieClip Frame 6
stop();
Symbol 66 MovieClip Frame 7
stop();
Symbol 66 MovieClip Frame 8
stop();
Symbol 66 MovieClip Frame 9
stop();
Symbol 66 MovieClip Frame 10
stop();
Symbol 66 MovieClip Frame 11
stop();
Symbol 66 MovieClip Frame 12
stop();
Symbol 66 MovieClip Frame 13
stop();
Symbol 66 MovieClip Frame 14
stop();
Symbol 66 MovieClip Frame 15
stop();
Symbol 66 MovieClip Frame 16
stop();
Symbol 66 MovieClip Frame 17
stop();
Symbol 66 MovieClip Frame 18
stop();
Symbol 66 MovieClip Frame 19
stop();
Symbol 66 MovieClip Frame 20
stop();
Symbol 66 MovieClip Frame 21
stop();
Symbol 69 MovieClip Frame 1
stop();
hitarea._visible = false;
Symbol 102 MovieClip Frame 33
stop();
Symbol 104 MovieClip [enemyf14] Frame 1
energy = 180;
angle_increment = rand(15, 20);
speed = rand(20, 25);
inrange = 250;
spray_angle = rand(10, 20);
collision_range = 100;
collision_veer = 1.2;
attack_range = 200;
sensitivity = 5;
intensity = 0.5;
bullet_speed = 40;
stop();
Symbol 104 MovieClip [enemyf14] Frame 40
this.removeMovieClip();
Symbol 107 MovieClip Frame 1
stop();
hitarea._visible = false;
Symbol 108 MovieClip [enemyf16] Frame 1
energy = 200;
angle_increment = rand(20, 25);
speed = rand(30, 35);
inrange = 250;
spray_angle = rand(10, 30);
collision_range = 100;
collision_veer = 1.2;
attack_range = 200;
sensitivity = 5;
intensity = 0.45;
bullet_speed = 40;
stop();
Symbol 108 MovieClip [enemyf16] Frame 40
this.removeMovieClip();
Symbol 111 MovieClip Frame 1
stop();
hitarea._visible = false;
Symbol 112 MovieClip [stealth] Frame 1
energy = 1500;
dead = false;
stop();
Symbol 112 MovieClip [stealth] Frame 40
stop();
Symbol 115 MovieClip Frame 1
stop();
hitarea._visible = false;
Symbol 116 MovieClip [enemymig29] Frame 1
energy = 200 + (_root.mission * 10);
angle_increment = rand(15, 25);
speed = rand(35, 45);
inrange = 250;
spray_angle = rand(10, 20);
collision_range = 100;
collision_veer = 1.3;
attack_range = 200;
sensitivity = 5;
intensity = 0.1;
bullet_speed = 40;
stop();
Symbol 116 MovieClip [enemymig29] Frame 40
this.removeMovieClip();
Symbol 119 MovieClip Frame 1
stop();
hitarea._visible = false;
Symbol 120 MovieClip [enemymig22] Frame 1
energy = 200 + (_root.mission * 10);
angle_increment = rand(15, 20);
speed = rand(25, 32);
inrange = 250;
spray_angle = rand(10, 20);
collision_range = 100;
collision_veer = 1.2;
attack_range = 200;
sensitivity = 5;
intensity = 0.4;
bullet_speed = 40;
stop();
Symbol 120 MovieClip [enemymig22] Frame 40
this.removeMovieClip();
Symbol 123 MovieClip Frame 1
stop();
hitarea._visible = false;
Symbol 124 MovieClip [enemymig21] Frame 1
energy = 200 + (_root.mission * 10);
angle_increment = rand(15, 20);
speed = rand(25, 30);
inrange = 250;
spray_angle = rand(10, 20);
collision_range = 100;
collision_veer = 1.2;
attack_range = 200;
sensitivity = 5;
intensity = 0.4;
bullet_speed = 40;
stop();
Symbol 124 MovieClip [enemymig21] Frame 40
this.removeMovieClip();
Symbol 127 MovieClip Frame 1
stop();
hitarea._visible = false;
Symbol 128 MovieClip [enemyf15] Frame 1
energy = 200;
angle_increment = rand(15, 20);
speed = rand(25, 30);
inrange = 250;
spray_angle = rand(10, 20);
collision_range = 100;
collision_veer = 1.2;
attack_range = 200;
sensitivity = 5;
intensity = 0.5;
bullet_speed = 40;
stop();
Symbol 128 MovieClip [enemyf15] Frame 40
this.removeMovieClip();
Symbol 134 MovieClip [stinger] Frame 47
_root.missile_firing = false;
this.removeMovieClip();
Symbol 177 MovieClip Frame 35
stop();
Symbol 182 MovieClip [destroyer] Frame 1
turret_top._visible = false;
turret_bot._visible = false;
turret_top.energy = 2000;
turret_bot.energy = 2000;
turret_top.dead = false;
turret_bot.dead = false;
fire_range = 200;
turret_turn = 30;
turret_sensitivity = 5;
dead = false;
intensity = 0.5;
bullet_speed = 100;
stop();
Symbol 182 MovieClip [destroyer] Frame 2
Symbol 182 MovieClip [destroyer] Frame 8
stop();
Symbol 182 MovieClip [destroyer] Frame 18
stop();
Symbol 182 MovieClip [destroyer] Frame 28
stop();
Symbol 185 MovieClip [bullet_frigate] Frame 18
this.removeMovieClip();
Symbol 186 MovieClip [bullet_2] Frame 21
this.removeMovieClip();
Symbol 189 MovieClip [bullet_1] Frame 20
this.removeMovieClip();
Symbol 193 MovieClip [waypoint] Frame 1
stop();
Symbol 490 MovieClip [__Packages.com.meychi.ascrypt.RC4] Frame 0
class com.meychi.ascrypt.RC4
{
function RC4 () {
}
static function encrypt(src, key) {
var _local3 = strToChars(src);
var _local1 = strToChars(key);
var _local2 = calculate(_local3, _local1);
return(charsToHex(_local2));
}
static function decrypt(src, key) {
var _local3 = hexToChars(src);
var _local1 = strToChars(key);
var _local2 = calculate(_local3, _local1);
return(charsToStr(_local2));
}
static function initialize(pwd) {
var _local2 = 0;
var _local3;
var intLength = pwd.length;
var _local1 = 0;
while (_local1 <= 255) {
mykey[_local1] = pwd[_local1 % intLength];
sbox[_local1] = _local1;
_local1++;
}
_local1 = 0;
while (_local1 <= 255) {
_local2 = ((_local2 + sbox[_local1]) + mykey[_local1]) % 256;
_local3 = sbox[_local1];
sbox[_local1] = sbox[_local2];
sbox[_local2] = _local3;
_local1++;
}
}
static function calculate(plaintxt, psw) {
initialize(psw);
var _local1 = 0;
var _local2 = 0;
var cipher = new Array();
var k;
var temp;
var cipherby;
var _local3 = 0;
while (_local3 < plaintxt.length) {
_local1 = (_local1 + 1) % 256;
_local2 = (_local2 + sbox[_local1]) % 256;
temp = sbox[_local1];
sbox[_local1] = sbox[_local2];
sbox[_local2] = temp;
var idx = ((sbox[_local1] + sbox[_local2]) % 256);
k = sbox[idx];
cipherby = plaintxt[_local3] ^ k;
cipher.push(cipherby);
_local3++;
}
return(cipher);
}
static function charsToHex(chars) {
var _local2 = chars;
var result = new String("");
var _local3 = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
var _local1 = 0;
while (_local1 < _local2.length) {
result = result + (_local3[_local2[_local1] >> 4] + _local3[_local2[_local1] & 15]);
_local1++;
}
return(result);
}
static function hexToChars(hex) {
var _local2 = hex;
var _local3 = new Array();
var _local1 = ((_local2.substr(0, 2) == "0x") ? 2 : 0);
while (_local1 < _local2.length) {
_local3.push(parseInt(_local2.substr(_local1, 2), 16));
_local1 = _local1 + 2;
}
return(_local3);
}
static function charsToStr(chars) {
var _local2 = chars;
var _local3 = new String("");
var _local1 = 0;
while (_local1 < _local2.length) {
_local3 = _local3 + String.fromCharCode(_local2[_local1]);
_local1++;
}
return(_local3);
}
static function strToChars(str) {
var _local2 = str;
var _local3 = new Array();
var _local1 = 0;
while (_local1 < _local2.length) {
_local3.push(_local2.charCodeAt(_local1));
_local1++;
}
return(_local3);
}
static var sbox = new Array(255);
static var mykey = new Array(255);
}
Symbol 254 Button
on (release) {
getURL ("http://www.markfennell.com/flash", "_blank");
}
Symbol 269 MovieClip Frame 35
stop();
Symbol 271 Button
on (release) {
getURL ("http://www.dailyfreegames.com", "_blank");
}
Symbol 280 Button
on (release) {
gotoAndPlay ("briefing");
}
Symbol 284 Button
on (release) {
gotoAndPlay ("help");
}
Symbol 286 Button
on (release) {
getURL ("http://www.markfennell.com", "_blank");
}
Symbol 290 Button
on (release) {
getURL ("http://www.markfennell.com/flash/f18/showscores.php", "_blank");
}
Symbol 294 Button
on (release) {
getURL ("http://www.dailyfreegames.com", "_blank");
}
Symbol 322 Button
on (release) {
_root.gotoAndPlay("briefing");
}
Symbol 337 Button
on (release) {
_root.gotoAndPlay("launch");
}
Symbol 346 MovieClip Frame 1
stop();
Symbol 346 MovieClip Frame 672
_root.has_shield = false;
Symbol 347 MovieClip Frame 1
stop();
Symbol 347 MovieClip Frame 22
stop();
_root.gotoAndPlay("gameover");
Symbol 362 MovieClip Frame 1
stop();
Symbol 362 MovieClip Frame 2
stop();
Symbol 365 MovieClip Frame 1
stop();
Symbol 365 MovieClip Frame 2
stop();
Symbol 382 MovieClip Frame 1
stop();
Symbol 382 MovieClip Frame 21
stop();
_root.smartbomb = false;
Symbol 397 Button
on (release) {
_root.gotoAndPlay("start");
}
Symbol 401 Button
on (release) {
_root.gotoAndPlay("submitscore");
}
Symbol 410 Button
on (release) {
_root.gotoAndPlay("briefing");
}
Symbol 412 MovieClip Frame 8
stop();
Symbol 413 MovieClip Frame 26
stop();
Symbol 439 MovieClip [GWBaseClass] Frame 1
#initclip 2
_global.GWBaseClass = function () {
this.init();
};
GWBaseClass.prototype = new MovieClip();
GWBaseClass.prototype.init = function (c) {
var _local1 = this;
_local1.classHolder._visible = 0;
if (_local1._targetInstanceName.length) {
var _local2 = _local1._parent[_local1._targetInstanceName];
for (var _local3 in _local1) {
_local2[_local3] = _local1[_local3];
}
_local1.inherit(c, _local2);
_local2.init();
_local1.snapToPixels(_local2);
} else {
_local1.snapToPixels(_local1);
}
};
GWBaseClass.prototype.inherit = function (c, o) {
var _local1 = c;
var _local2 = o;
if (_local2 == undefined) {
_local2 = this;
}
for (var _local3 in _local1.prototype) {
_local2[_local3] = _local1.prototype[_local3];
}
};
GWBaseClass.prototype.snapToPixels = function (t) {
var _local1 = t;
_local1.classHolder._visible = 0;
while (_local1._parent) {
_local1._x = Math.round(_local1._x);
_local1._y = Math.round(_local1._y);
_local1 = _local1._parent;
}
};
GWBaseClass.prototype.drawBox = function (n, d, x, y, w, h, c, a, o) {
var _local1 = o;
var _local2 = n;
var _local3 = y;
if (a == undefined) {
a = 100;
}
if (_local1 == undefined) {
_local1 = this;
}
_local1.createEmptyMovieClip(_local2, d);
_local1[_local2].beginFill(c, a);
_local1[_local2].moveTo(x, _local3);
_local1[_local2].lineTo(x + w, _local3);
_local1[_local2].lineTo(x + w, _local3 + h);
_local1[_local2].lineTo(x, _local3 + h);
_local1[_local2].lineTo(x, _local3);
_local1[_local2].endFill();
};
GWBaseClass.prototype.sizeMe = function (w, h, o) {
var _local1 = o;
var _local2 = h;
var _local3 = w;
_local3 = Math.round(_local3);
_local2 = Math.round(_local2);
if (_local1.setSize) {
_local1.setSize(_local3, _local2);
} else if (_local1.TL) {
_local1._xscale = (_local1._yscale = 100);
_local1.T._width = (_local3 - _local1.TL._width) - _local1.TR._width;
_local1.B._width = (_local3 - _local1.BL._width) - _local1.BR._width;
_local1.L._height = (_local2 - _local1.TL._height) - _local1.BL._height;
_local1.R._height = (_local2 - _local1.TR._height) - _local1.BR._height;
_local1.BL._y = _local2 - _local1.BL._height;
_local1.BR._y = _local2 - _local1.BR._height;
_local1.B._y = _local2 - _local1.B._height;
_local1.TR._x = _local3 - _local1.TR._width;
_local1.BR._x = _local3 - _local1.BR._width;
_local1.R._x = _local3 - _local1.R._width;
_local1.C._width = _local1.T._width;
_local1.C._height = _local1.L._height;
_local1.width = _local3;
_local1.height = _local2;
} else if ((_local1._width != _local3) || (_local1._height != _local2)) {
_local1.width = (_local1._width = _local3);
_local1.height = (_local1._height = _local2);
}
};
GWBaseClass.prototype.drag = function (o, lock, left, top, right, bottom) {
var _local3 = o;
if (lock == -1) {
delete _local3.onMouseMove;
_local3.onDrop();
} else {
var _local2 = function () {
var _local1 = arguments.callee;
var _local3 = _local1.t._parent._xmouse + _local1.xd;
var _local2 = _local1.t._parent._ymouse + _local1.yd;
if ((_local3 < _local1.left) && (_local1.left != null)) {
_local3 = _local1.left;
}
if ((_local3 > _local1.right) && (_local1.right != null)) {
_local3 = _local1.right;
}
if ((_local2 < _local1.top) && (_local1.top != null)) {
_local2 = _local1.top;
}
if ((_local2 > _local1.bottom) && (_local1.bottom != null)) {
_local2 = _local1.bottom;
}
_local1.t._x = _local3;
_local1.t._y = _local2;
_local1.t.onDrag();
updateAfterEvent();
};
_local2.t = _local3;
if ((lock == false) or (lock == undefined)) {
_local2.xd = _local3._x - _local3._parent._xmouse;
_local2.yd = _local3._y - _local3._parent._ymouse;
}
if (left != undefined) {
_local2.left = left;
} else {
_local2.left = null;
}
if (right != undefined) {
_local2.right = right;
} else {
_local2.right = null;
}
if (top != undefined) {
_local2.top = top;
} else {
_local2.top = null;
}
if (bottom != undefined) {
_local2.bottom = bottom;
} else {
_local2.bottom = null;
}
_local3.onMouseMove = _local2;
}
};
ASSetPropFlags(GWBaseClass.prototype, "drag", 1);
ASSetPropFlags(GWBaseClass.prototype, "sizeMe", 1);
ASSetPropFlags(GWBaseClass.prototype, "drawBox", 1);
ASSetPropFlags(GWBaseClass.prototype, "snapToPixels", 1);
ASSetPropFlags(GWBaseClass.prototype, "inherit", 1);
#endinitclip
Symbol 440 MovieClip [GWListBoxClass] Frame 1
#initclip 7
_global.GWListBoxClass = function () {
var _local1 = this;
_local1.rowHeight = 18;
_local1.face = 16777215 /* 0xFFFFFF */;
_local1.highlight = 4210752 /* 0x404040 */;
_local1.highlight3D = 8421504 /* 0x808080 */;
_local1.shadow = 13947080 /* 0xD4D0C8 */;
_local1.darkshadow = 16777215 /* 0xFFFFFF */;
_local1.itemcolor_on = 664682 /* 0x0A246A */;
_local1.itemcolor_off = 16777215 /* 0xFFFFFF */;
_local1.itemcolor_out = 16777215 /* 0xFFFFFF */;
_local1.fontcolor_on = 16777215 /* 0xFFFFFF */;
_local1.fontcolor_off = 0;
_local1.fontcolor_out = 0;
super.init(GWListBoxClass);
};
GWListBoxClass.prototype = new GWBaseClass();
Object.registerClass("GWListBoxClass", GWListBoxClass);
GWListBoxClass.prototype.init = function () {
var _local1 = this;
if (_local1.width == undefined) {
_local1.width = _local1._width;
}
if (_local1.height == undefined) {
_local1.height = _local1._height;
}
_local1._xscale = (_local1._yscale = 100);
_local1.createEmptyMovieClip("list_mc", 1);
_local1.list_mc.createEmptyMovieClip("content_mc", 1);
_local1.list_mc.content_mc.createEmptyMovieClip("holder_mc", 1);
_local1.list_mc.content_mc._x = (_local1.list_mc.content_mc._y = _local1.pad);
_local1.list_mc.content_mc.root = _local1;
_local1.drawBox("mask_mc", 2, 0, 0, 1, 1, 0, 100, _local1.list_mc.content_mc);
_local1.list_mc.content_mc.setMask(_local1.list_mc.content_mc.mask_mc);
_local1.sbprops.height = _local1.height - (_local1.pad * 2);
_local1.list_mc.attachMovie(_local1.sbSymbol, "vscroll_mc", 3, _local1.sbprops);
_local1.barwidth = _local1.list_mc.vscroll_mc._width;
delete _local1.sb_props;
_local1.list_mc.vscroll_mc._y = _local1.pad;
_local1.list_mc.vscroll_mc.setScrollTarget(_local1.list_mc.content_mc);
_local1.list_mc.content_mc.addListener(_local1);
_local1.width = Math.round(Math.max(_local1.barwidth * 3, _local1.width));
_local1.height = Math.round(Math.max(_local1.barwidth * 3, _local1.height));
_local1.frame_mc.colorObj = {face:_local1.face, highlight:_local1.highlight, highlight3D:_local1.highlight3D, shadow:_local1.shadow, darkshadow:_local1.darkshadow};
_local1.list_mc.frame_mc = _local1.frame_mc;
_local1.setFrameColor({face:_local1.face, highlight:_local1.highlight, highlight3D:_local1.highlight3D, shadow:_local1.shadow, darkshadow:_local1.darkshadow});
_local1.list = _local1.list_mc.content_mc.holder_mc;
_local1.setSmallScroll(_local1.rowHeight);
_local1.setLargeScroll(_local1.rowHeight * 2);
_local1.item_mc.unloadMovie();
_local1.items = [];
var _local3 = _local1.labels.length;
var _local2 = 0;
while (_local2 < _local3) {
_local1.items.push({label:_local1.labels[_local2], data:_local1.data[_local2], icon:_local1.icons[_local2]});
_local2++;
}
_local1.rowCount = _local1.rowCount || (Math.ceil(_local1.height / _local1.rowHeight));
if (_local1.items.length) {
_local1.setDataProvider(_local1.items);
} else {
_local1.refreshPane();
}
if (_local1.checkFocus) {
_local1.onMouseDown = function () {
var _local1 = this;
var _local3 = _local1.items.length;
if (_local1.list_mc.frame_mc.hitTest(_root._xmouse, _root._ymouse, 1)) {
var _local2 = 0;
while (_local2 < _local3) {
if (_local1.items[_local2].selected) {
_local1.list["item" + _local2].setLabelColor(_local1.list["item" + _local2].fontcolor_on);
_local1.list["item" + _local2].setBaseColor(_local1.itemcolor_on);
}
_local2++;
}
} else {
var _local2 = 0;
while (_local2 < _local3) {
if (_local1.items[_local2].selected) {
_local1.list["item" + _local2].setLabelColor(_local1.list["item" + _local2].fontcolor_out);
_local1.list["item" + _local2].setBaseColor(_local1.itemcolor_out);
}
_local2++;
}
}
};
}
};
GWListBoxClass.prototype.getLength = function () {
return(this.items.length);
};
GWListBoxClass.prototype.setDataProvider = function (d) {
var _local1 = this;
var _local3 = d;
_local1.items = [];
_local1.list_mc.content_mc.createEmptyMovieClip("holder_mc", 1);
if (!(_local3[0] instanceof Object)) {
_local1.items = [];
var j = _local3.length;
var _local2 = 0;
while (_local2 < j) {
_local1.items.push({data:_local3[_local2], label:_local3[_local2]});
_local2++;
}
} else {
_local1.items = _local3;
}
_local1.drawBox("height_mc", -1, 0, (_local1.items.length - 1) * _local1.rowHeight, 1, 1, 0, 0, _local1.list);
if (_local1.items.length) {
_local1.rowCount = _local1.rowCount || (Math.ceil(_local1.height / _local1.rowHeight));
var _local2 = 0;
while (_local2 < _local1.rowCount) {
_local1._buildItem(_local2);
_local2++;
}
}
_local1.refreshPane();
return(_local1.items);
};
GWListBoxClass.prototype.deSelect = function (i) {
var _local1 = this;
var _local2 = i;
if (!_local1.items[_local2].isHeader) {
_local1.items[_local2].selected = 0;
_local1.list["item" + _local2].setLabelColor(_local1.list["item" + _local2].fontcolor_off);
_local1.list["item" + _local2].setBaseColor(_local1.itemcolor_off);
}
};
GWListBoxClass.prototype.deSelectAll = function () {
var _local3 = this;
var _local2 = _local3.items.length;
var _local1 = 0;
while (_local1 < _local2) {
_local3.deSelect(_local1);
_local1++;
}
};
GWListBoxClass.prototype.selectAll = function () {
var _local2 = this;
if (_local2.selectMultiple) {
var _local3 = _local2.items.length;
var _local1 = 0;
while (_local1 < _local3) {
_local2.select(_local1);
_local1++;
}
}
};
GWListBoxClass.prototype.setFrameColor = function (c) {
var _local1 = c;
var _local2 = this;
for (var _local3 in _local1) {
_local2.list_mc.frame_mc[_local3] = _local1[_local3];
}
_local2.list_mc.frame_mc.setColor(_local1);
};
GWListBoxClass.prototype.getSelectMultiple = function () {
return(this.selectMultiple);
};
GWListBoxClass.prototype.setSelectMultiple = function (f) {
var _local1 = this;
_local1.selectMultiple = f;
if (!f) {
_local1.deSelectAll();
_local1.select(_local1.lastIdx);
}
};
GWListBoxClass.prototype.select = function (i) {
var _local1 = this;
var _local2 = i;
if ((!_local1.selectMultiple) && (_local1.getSelectedIndices().length)) {
} else if (!_local1.items[_local2].isHeader) {
_local1.items[_local2].selected = 1;
_local1.list["item" + _local2].setLabelColor(_local1.list["item" + _local2].fontcolor_on);
_local1.list["item" + _local2].setBaseColor(_local1.itemcolor_on);
}
};
GWListBoxClass.prototype.setSelectedIndex = function (i) {
var _local1 = this;
var _local2 = i;
_local1.lastIdx = _local2;
_local1.select(_local2);
if ((_local2 >= (_local1.getScrollPosition() + _local1.getRowCount())) || (_local2 <= _local1.getScrollPosition())) {
_local1.setScrollPosition(_local2 - 1);
}
_local1.onSelect(_local2);
};
GWListBoxClass.prototype.setSelectedIndices = function (a) {
var _local1 = a;
var _local2 = this;
_local2.deSelectAll();
for (var _local3 in _local1) {
_local2.select(_local1[_local3]);
}
};
GWListBoxClass.prototype.getValue = function () {
return(this.getSelectedItem().data);
};
GWListBoxClass.prototype.getSelectedItem = function () {
var _local1 = this;
if (_local1.items[_local1.lastIdx].selected) {
return({data:((_local1.items[_local1.lastIdx].data == undefined) ? (_local1.items[_local1.lastIdx].label) : (_local1.items[_local1.lastIdx].data)), label:_local1.items[_local1.lastIdx].label, icon:_local1.items[_local1.lastIdx].icon});
}
return(null);
};
GWListBoxClass.prototype.getSelectedIndices = function () {
var _local2 = [];
var _local3 = this.items.length;
var _local1 = 0;
while (_local1 < _local3) {
if (this.items[_local1].selected) {
_local2.push(_local1);
}
_local1++;
}
return(_local2);
};
GWListBoxClass.prototype.getSelectedItems = function () {
var _local2 = this;
var d = [];
var j = _local2.items.length;
var _local1 = 0;
while (_local1 < j) {
if (_local2.items[_local1].selected) {
d.push({data:((_local2.items[_local1].data == undefined) ? (_local2.items[_local1].label) : (_local2.items[_local1].data)), label:_local2.items[_local1].label});
}
_local1++;
}
return(d);
};
GWListBoxClass.prototype.getRowCount = function () {
var _local1 = this;
_local1.rowCount = Math.ceil((_local1.list_mc.content_mc.mask_mc._height - (_local1.pad * 2)) / _local1.rowHeight);
return(_local1.rowCount);
};
GWListBoxClass.prototype.setRowCount = function (n) {
var _local1 = this;
var _local2 = n;
if (_local2) {
_local1.rowCount = _local2;
if (_local1.items.length > 1) {
if ((_local2 * _local1.rowHeight) < (_local1.barwidth * 2)) {
_local1.setRowHeight((_local1.barwidth * 2) / _local2);
}
}
_local1.setSize(_local1.width, _local1.rowHeight * _local2);
}
};
GWListBoxClass.prototype.getRowHeight = function () {
return(this.rowHeight);
};
GWListBoxClass.prototype.setRowHeight = function (n) {
var _local1 = this;
var _local2 = n;
_local1.rowHeight = _local2;
_local1.setSmallScroll(_local2);
_local1.setLargeScroll(_local2 * 2);
_local1.setDataProvider(_local1.items);
_local1.setSize(_local1.width, Math.max(_local1.getRowCount() * _local2, _local1.height));
};
GWListBoxClass.prototype.getEnabled = function () {
return(this.enabled);
};
GWListBoxClass.prototype.setEnabled = function (f) {
this.enabled = f;
this.list_mc.vscroll_mc.setEnabled(f);
};
GWListBoxClass.prototype.removeAll = function () {
var _local1 = this;
_local1.items = [];
_local1.list_mc.content_mc.createEmptyMovieClip("holder_mc", 1);
_local1.setSize(_local1.width, _local1.height, 1);
};
GWListBoxClass.prototype.getSize = function () {
return({width:this.width, height:this.height});
};
GWListBoxClass.prototype.setSize = function (w, h) {
var _local1 = this;
var _local2 = w;
if (((arguments.length > 2) || (_local1.width != _local2)) || (_local1.height != h)) {
var _local3 = _local1.pad * 2;
_local2 = (_local1.width = Math.round(Math.max((_local1.barwidth * 2) + _local3, _local2)));
var h = ((_local1.height = Math.round(Math.max(_local1.barwidth * 2, Math.floor(h / _local1.rowHeight) * _local1.rowHeight) + _local3)));
_local1.list_mc.content_mc.bottomScroll = (_local1.list_mc.content_mc.mask_mc._height = h - _local3);
_local1.list_mc.vscroll_mc.setSize(_local1.barwidth, h - _local3);
_local1.list_mc.vscroll_mc._x = (_local2 - _local1.barwidth) - _local1.pad;
_local1.list_mc.content_mc.onChanged();
_local1.list_mc.content_mc.mask_mc._width = _local2 - _local3;
_local1.sizeMe(_local1.width, _local1.height, _local1.list_mc.frame_mc);
for (var i in _local1.list) {
_local1.list[i].setSize(_local2, _local1.rowHeight);
}
_local1.setVScroll();
_local1.list_mc.content_mc.maxscroll = Math.max(0, Math.ceil((_local1.list_mc.content_mc.holder_mc._height - _local1.list_mc.content_mc.mask_mc._height) / _local1.rowHeight) * _local1.rowHeight);
_local1.setScrollPosition(_local1.getScrollPosition());
}
};
GWListBoxClass.prototype.getEnabled = function () {
return(this.enabled);
};
GWListBoxClass.prototype.setEnabled = function (f) {
this.list_mc.vscroll_mc.setEnabled(f);
this.enabled = f;
};
GWListBoxClass.prototype.getSize = function () {
return({width:this.width, height:this.height});
};
GWListBoxClass.prototype.getScrollPosition = function () {
return(this.list_mc.vscroll_mc.getScrollPosition() / this.rowHeight);
};
GWListBoxClass.prototype.setScrollPosition = function (pos) {
var _local1 = this;
if (_local1.getEnabled()) {
_local1.list_mc.vscroll_mc.setScrollPosition(Math.max(0, Math.min(pos * _local1.rowHeight, _local1.list_mc.content_mc.maxscroll)));
}
};
GWListBoxClass.prototype.setSmallScroll = function (n) {
this.smallScroll = n;
this.list_mc.vscroll_mc.setSmallScroll(n);
};
GWListBoxClass.prototype.setLargeScroll = function (n) {
this.largeScroll = n;
this.list_mc.vscroll_mc.setLargeScroll(n);
};
GWListBoxClass.prototype.setVScroll = function () {
var _local1 = this;
_local1.list_mc.vscroll_mc._visible = ((_local1.items.length > _local1.getRowCount()) ? 1 : 0);
};
GWListBoxClass.prototype.setScrollBarColor = function (c) {
var _local1 = c;
var _local2 = this;
for (var _local3 in _local1) {
_local2.list_mc.vscroll_mc[_local3] = _local1[_local3];
}
_local2.list_mc.vscroll_mc.setColor(_local1);
};
GWListBoxClass.prototype.refreshPane = function () {
var _local1 = this;
clearInterval(_local1.initID);
_local1.list_mc.content_mc.watch("scrollpos", _local1._updateScroll);
_local1.setSize(_local1.width, _local1.height, 1);
_local1.setEnabled(_local1.enabled);
};
GWListBoxClass.prototype._buildItem = function (i) {
var _local1 = this;
var _local2 = i;
if (_local1.items[_local2] == undefined) {
} else {
_local1.list.attachMovie("GWListItemClass", "item" + _local2, _local2, {_y:_local2 * _local1.rowHeight, idx:_local2, width:_local1.width, height:_local1.rowHeight, font:_local1.font, fontsize:_local1.fontsize, useEmbedFonts:_local1.useEmbedFonts, fontcolor:((_local1.items[_local2].fontcolor == undefined) ? (_local1.fontcolor_off) : (_local1.items[_local2].fontcolor)), fontcolor_off:((_local1.items[_local2].fontcolor_off == undefined) ? (_local1.fontcolor_off) : (_local1.items[_local2].fontcolor_off)), fontcolor_on:((_local1.items[_local2].fontcolor_on == undefined) ? (_local1.fontcolor_on) : (_local1.items[_local2].fontcolor_on)), fontcolor_out:((_local1.items[_local2].fontcolor_out == undefined) ? (_local1.fontcolor_out) : (_local1.items[_local2].fontcolor_out)), basecolor_off:_local1.itemcolor_off, data:((_local1.items[_local2].data == undefined) ? (_local1.items[_local2].label) : (_local1.items[_local2].data)), icon:_local1.items[_local2].icon, label:_local1.items[_local2].label, root:_local1});
if (!_local1.items[_local2].isHeader) {
if (_local1.items[_local2].selected) {
_local1.list["item" + _local2].setLabelColor(_local1.list["item" + _local2].fontcolor_on);
_local1.list["item" + _local2].setBaseColor(_local1.itemcolor_on);
}
_local1.list["item" + _local2].trackAsMenu = true;
_local1.list["item" + _local2].onDragOver = function () {
var _local1 = this;
_local1.root.select(_local1.idx);
if ((_local1.root.lastDragIdx != _local1.root.lastIdx) && (((_local1.idx > _local1.root.lastDragIdx) && (_local1.root.lastDragIdx < _local1.root.lastIdx)) || ((_local1.idx < _local1.root.lastDragIdx) && (_local1.root.lastDragIdx > _local1.root.lastIdx)))) {
_local1.root.deSelect(_local1.root.lastDragIdx);
}
if (!_local1.root.selectMultiple) {
_local1.root.lastIdx = _local1.idx;
}
_local1.root.lastDragIdx = _local1.idx;
};
_local1.list["item" + _local2].onDragOut = function () {
var _local1 = this;
if (!_local1.root.selectMultiple) {
_local1.root.deSelect(_local1.idx);
}
};
_local1.list["item" + _local2].onReleaseOutside = (_local1.list["item" + _local2].onRelease = function () {
var _local1 = this;
clearInterval(_local1.root.isScrolling);
delete _local1.root.onMouseMove;
if ((_local1.idx == _local1.lastIdx) && ((getTimer() - _local1.lastHit) < 250)) {
clearInterval(_local1.root.clickID);
_local1.root.onDSelect(_local1.idx);
} else if (_local1.root.onDSelect == undefined) {
_local1.root.onSelect(_local1.idx);
} else {
_local1.root._onSelect = function (idx) {
clearInterval(this.clickID);
this.onSelect(idx);
};
_local1.root.clickID = setInterval(_local1.root, "_onSelect", 250, _local1.idx);
}
_local1.lastHit = getTimer();
_local1.lastIdx = _local1.idx;
});
_local1.list["item" + _local2].onPress = function () {
var _local1 = this;
if (_local1.root.getEnabled()) {
if ((!Key.isDown(17)) || (!_local1.root.selectMultiple)) {
_local1.root.deSelectAll();
}
if (Key.isDown(16) && (_local1.root.selectMultiple)) {
if (_local1.root.lastIdx <= _local1.idx) {
var _local2 = _local1.root.lastIdx;
while (_local2 <= _local1.idx) {
_local1.root.select(_local2);
_local2++;
}
} else {
var _local2 = _local1.root.lastIdx;
while (_local2 >= _local1.idx) {
_local1.root.select(_local2);
_local2--;
}
}
} else {
_local1.root._startSelect(_local1.idx);
}
}
};
}
_local1.onBuildItem(_local2);
}
};
GWListBoxClass.prototype._updateScroll = function () {
var _local2 = this;
_local2.holder_mc._y = (-Math.round(Math.min(arguments[2], Math.min(_local2.maxscroll, Math.max(0, _local2.holder_mc._height - _local2.mask_mc._height))) / _local2.root.rowHeight)) * _local2.root.rowHeight;
var _local1 = (-_local2.holder_mc._y) / _local2.root.rowHeight;
var _local3 = _local1 + _local2.root.rowCount;
do {
if (!_local2.root.list["item" + _local1]) {
_local2.root._buildItem(_local1);
}
_local1++;
} while (_local1 <= _local3);
};
GWListBoxClass.prototype._startSelect = function (i) {
var _local1 = this;
var _local2 = i;
_local1.onMouseMove = function () {
var _local1 = this;
clearInterval(_local1.isScrolling);
if (_local1._parent._ymouse >= (_local1._y + _local1.height)) {
_local1.isScrolling = setInterval(_local1, "_startScroll", 100, 1);
} else if (_local1._parent._ymouse <= _local1._y) {
_local1.isScrolling = setInterval(_local1, "_startScroll", 100, -1);
}
};
if (_local1.items[_local2].selected) {
_local1.deSelect(_local2);
} else {
_local1.select(_local2);
_local1.lastIdx = _local2;
}
};
GWListBoxClass.prototype._startScroll = function (d) {
var _local1 = this;
_local1.setScrollPosition(_local1.getScrollPosition() + d);
if (_local1.selectMultiple) {
_local1.select(((d > 0) ? ((_local1.getScrollPosition() + _local1.getRowCount()) - 1) : (_local1.getScrollPosition())));
}
};
#endinitclip
Instance of Symbol 439 MovieClip [GWBaseClass] "baseclass" in Symbol 440 MovieClip [GWListBoxClass] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 441 MovieClip [GWComboBoxClass] Frame 1
#initclip 3
_global.GWComboBoxClass = function () {
var _local1 = this;
_local1.cbDepth = 17000;
_local1.rowHeight = 18;
_local1.listPos = "bottom";
_local1.face = 16777215 /* 0xFFFFFF */;
_local1.highlight = 4210752 /* 0x404040 */;
_local1.highlight3D = 8421504 /* 0x808080 */;
_local1.shadow = 13947080 /* 0xD4D0C8 */;
_local1.darkshadow = 16777215 /* 0xFFFFFF */;
_local1.fontcolor_on = 16777215 /* 0xFFFFFF */;
_local1.fontcolor_off = 0;
_local1.itemcolor_on = 664682 /* 0x0A246A */;
_local1.itemcolor_off = 16777215 /* 0xFFFFFF */;
super.init(GWComboBoxClass);
};
GWComboBoxClass.prototype = new GWBaseClass();
Object.registerClass("GWComboBoxClass", GWComboBoxClass);
GWComboBoxClass.prototype.init = function () {
var _local1 = this;
_local1.width = Math.round(_local1._width);
_local1.height = Math.round(_local1._height);
_local1._xscale = (_local1._yscale = 100);
var depth = _local1.getDepth();
if (_local1._parent._GWTopComboBoxDepth == undefined) {
_local1._parent._GWTopComboBoxDepth = depth;
} else if (depth > _local1._parent._GWTopComboBoxDepth) {
_local1._parent._GWTopComboBoxDepth = depth;
}
_local1.items = [];
var j = _local1.labels.length;
var i = 0;
while (i < j) {
_local1.items.push({label:_local1.labels[i], data:_local1.data[i], icon:_local1.icons[i]});
i++;
}
if (_local1.listprops == undefined) {
_local1.listprops = {};
}
_local1.listprops.face = (_local1.listprops.highlight = (_local1.listprops.shadow = (_local1.listprops.itemcolor_off = _local1.itemcolor_off)));
_local1.listprops.highlight3D = (_local1.listprops.darkshadow = _local1.listborder || 4210752);
_local1.listprops.vScroll = "auto";
_local1.listprops.pad = _local1.listpad || 1;
_local1.listprops.width = _local1.width;
_local1.listprops.rowHeight = _local1.rowHeight;
_local1.listprops.rowCount = _local1.rowCount || (_local1.items.length);
_local1.listprops.useEmbedFonts = _local1.useEmbedFonts;
_local1.box_mc.colorObj = {face:_local1.face, highlight:_local1.highlight, highlight3D:_local1.highlight3D, shadow:_local1.shadow, darkshadow:_local1.darkshadow};
_local1.box_mc.useHandCursor = false;
_local1.box_mc.onPress = function () {
var _local1 = this;
if (_local1._parent.list_mc._visible) {
_local1._parent.hideList();
} else {
_local1._parent.showList();
}
};
_local1.attachMovie("GWListItemClass", "item_mc", 2, {_x:_local1.pad, _y:_local1.pad, font:_local1.font, fontsize:_local1.fontsize, fontcolor:_local1.fontcolor, label:"", useEmbedFonts:_local1.useEmbedFonts, width:_local1.width - (_local1.pad * 2), height:Math.max(_local1.rowHeight + (_local1.pad * 2), _local1.height) - (_local1.pad * 2)});
_local1.setSize(_local1.width, _local1.height);
_local1.arrow_mc.useHandCursor = false;
_local1.arrow_mc.onPress = function () {
var _local1 = this;
_local1._parent.box_mc.onPress();
if (_local1._parent.enabled) {
for (var _local2 in _local1) {
_local1[_local2]._visible = 0;
}
_local1.down_mc._visible = 1;
}
};
_local1.arrow_mc.onRelease = (_local1.arrow_mc.onReleaseOutside = function () {
var _local1 = this;
if (_local1._parent.enabled) {
for (var _local2 in _local1) {
_local1[_local2]._visible = 0;
}
_local1.up_mc._visible = 1;
}
});
_local1.arrow_mc.swapDepths(3);
_local1.onMouseDown();
if (_local1.items.length) {
if ((_local1.idx != undefined) && (_local1.idx != "")) {
_local1.select(parseInt(_local1.idx));
}
} else {
_local1.setEnabled(false);
}
if (_local1.spawnAtRoot && (!_root.__GWcombobox)) {
_root.createEmptyMovieClip("__GWcombobox", _local1.cbDepth);
_root.__GWcombobox.count = 1;
}
_local1.depth = _root.__GWcombobox.count++;
};
GWComboBoxClass.prototype.onMouseDown = function () {
var _local1 = this;
var _local2 = _root;
if (!((_local1.list_mc._visible && (_local1.list_mc.hitTest(_local2._xmouse, _local2._ymouse, 1))) || (_local1.box_mc.hitTest(_local2._xmouse, _local2._ymouse, 1)))) {
_local1.hideList();
_local1.item_mc.setLabelEnabled(_local1.getEnabled());
_local1.item_mc.setBaseColor(_local1.box_mc.colorObj.face);
}
};
GWComboBoxClass.prototype.select = function (i) {
var _local1 = this;
var _local2 = i;
if (_local2 == -1) {
_local1.item_mc.icon_mc.removeMovieClip();
_local1.item_mc.setLabel("");
delete _local1.item_mc.idx;
} else if (_local1.items[_local2]) {
_local1.item_mc.icon_mc.removeMovieClip();
_local1.item_mc.setIcon(_local1.items[_local2].icon);
_local1.item_mc.setLabel(_local1.items[_local2].label);
_local1.item_mc.idx = _local2;
_local1.list_mc.select(_local2);
_local1.hideList();
_local1.onSelect(_local2);
}
};
GWComboBoxClass.prototype.setSelectedIndex = function (i) {
this.select(i);
};
GWComboBoxClass.prototype.getEnabled = function () {
return(this.enabled);
};
GWComboBoxClass.prototype.setEnabled = function (f) {
var _local1 = this;
for (var _local2 in _local1.arrow_mc) {
_local1.arrow_mc[_local2]._visible = 0;
}
if (!f) {
_local1.arrow_mc.off_mc._visible = 1;
_local1.enabled = false;
_local1.item_mc.setLabelEnabled(false);
} else {
_local1.arrow_mc.up_mc._visible = 1;
_local1.enabled = true;
_local1.item_mc.setLabelEnabled(true);
}
};
GWComboBoxClass.prototype.getSize = function () {
return({width:this.width, height:this.height});
};
GWComboBoxClass.prototype.setSize = function (w, h) {
var _local1 = this;
var w = ((_local1.width = Math.round(w)));
var h = ((_local1.height = Math.round(h)));
var _local2 = _local1.pad * 2;
_local1.sizeMe(w, Math.max(_local1.rowHeight + _local2, h), _local1.box_mc);
_local1.listprops.width = _local1.width;
_local1.item_mc.setSize(w - _local2, Math.max(_local1.rowHeight + _local2, h) - _local2);
_local1.select(_local1.getSelectedIndex());
var y = (_local1.arrow_mc.down_mc.arrow_mc._y - _local1.arrow_mc.up_mc.arrow_mc._y);
for (var _local3 in _local1.arrow_mc) {
_local1.sizeMe(_local1.arrow_mc._width, _local1.item_mc.height, _local1.arrow_mc[_local3].base_mc);
_local1.arrow_mc[_local3].arrow_mc._y = (_local1.arrow_mc[_local3].shadow_mc._y = Math.round((_local1.item_mc.height - _local1.arrow_mc[_local3].arrow_mc._height) / 2));
}
_local1.arrow_mc.down_mc.arrow_mc._y = _local1.arrow_mc.down_mc.arrow_mc._y + y;
_local1.arrow_mc._x = (w - _local1.arrow_mc._width) - _local1.pad;
_local1.arrow_mc._y = _local1.pad;
_local1.initList = false;
};
GWComboBoxClass.prototype.getSelectedIndex = function () {
return(this.item_mc.idx);
};
GWComboBoxClass.prototype.getSelectedItem = function () {
return(this.items[this.item_mc.idx]);
};
GWComboBoxClass.prototype.getValue = function () {
return(this.items[this.item_mc.idx].data);
};
GWComboBoxClass.prototype.setValue = function (v) {
var _local2 = this;
var _local3 = _local2.items.length;
var _local1 = 0;
while (_local1 < _local3) {
if (_local2.items[_local1].data == v) {
_local2.list_mc.deSelectAll();
_local2.select(_local1);
return(undefined);
}
_local1++;
}
return(false);
return(undefined);
};
GWComboBoxClass.prototype.setBoxColor = function (c) {
var _local1 = this;
_local1.box_mc.setColor(c);
_local1.item_mc.setLabelColor(_local1.fontcolor);
_local1.item_mc.setBaseColor(_local1.box_mc.colorObj.face);
};
GWComboBoxClass.prototype.setListPlacement = function (p) {
this.listPos = p;
var _local3 = this._x;
var _local2 = this._y;
var _local1 = this;
do {
_local1 = _local1._parent;
pt = {x:_local1._x, y:_local1._y};
_local3 = _local3 + pt.x;
_local2 = _local2 + pt.y;
} while (_local1 != _root);
this.y = _local2;
if (!this.spawnAtRoot) {
_local3 = 0;
_local2 = 0;
}
this.list_mc._x = _local3;
if (p == "top") {
this.list_mc._y = _local2 - this.list_mc.height;
} else if (p == "bottom") {
this.list_mc._y = _local2 + this.box_mc.height;
} else {
this.list_mc._y = _local2 - Math.floor((this.list_mc.height - this.box_mc.height) / 2);
}
};
GWComboBoxClass.prototype.setRowCount = function (n) {
this.rowCount = n;
this.initList = false;
};
GWComboBoxClass.prototype.setRowHeight = function (n) {
this.rowHeight = n;
this.initList = false;
};
GWComboBoxClass.prototype.setDataProvider = function (d) {
var _local1 = this;
var _local3 = _root;
if ((_local1.spawnAtRoot && (!_local3.__GWcombobox["cb" + _local1.depth])) || (!_local1.list_mc)) {
if (_local1.spawnAtRoot) {
_local3.__GWcombobox.attachMovie(_local1.listSymbol, "cb" + _local1.depth, _local1.depth, _local1.listprops);
_local1.list_mc = _local3.__GWcombobox["cb" + _local1.depth];
} else {
_local1.attachMovie(_local1.listSymbol, "list_mc", 4, _local1.listprops);
}
_local1.list_mc.parent = _local1;
_local1.list_mc.data = _local1.data;
_local1.list_mc.icons = _local1.icons;
_local1.list_mc.labels = _local1.labels;
_local1.list_mc.font = _local1.font;
_local1.list_mc.fontsize = _local1.fontsize;
_local1.list_mc.itemcolor_on = _local1.itemcolor_on;
_local1.list_mc.face = (_local1.list_mc.highlight = (_local1.list_mc.shadow = (_local1.list_mc.itemcolor_off = _local1.itemcolor_off)));
_local1.list_mc.fontcolor_on = _local1.fontcolor_on;
_local1.list_mc.fontcolor_off = _local1.fontcolor_off;
_local1.list_mc.rowCount = _local1.rowCount || (_local1.items.length);
_local1.list_mc.onSelect = function (i) {
var _local1 = this;
_local1.parent.select(i);
_local1.parent.item_mc.setLabelColor(_local1.parent.fontcolor_on);
_local1.parent.item_mc.setBaseColor(_local1.parent.itemcolor_on);
};
_local1.list_mc._startSelect = function (i) {
this.select(i);
};
_local1.list_mc.onBuildItem = function (i) {
var _local1 = this;
var _local3 = i;
_local1.list["item" + _local3].trackAsMenu = true;
_local1.list["item" + _local3].onDragOver = (_local1.list["item" + _local3].onRollOver = function () {
var _local1 = this;
for (var _local2 in _local1._parent) {
_local1._parent[_local2].setLabelColor(_local1.root.fontcolor_off);
_local1._parent[_local2].setBaseColor(_local1.root.itemcolor_off);
}
_local1.setLabelColor(_local1.root.fontcolor_on);
_local1.setBaseColor(_local1.root.itemcolor_on);
});
};
}
_local1.items = _local1.list_mc.setDataProvider(d);
_local1.list_mc.setSize(_local1.width, _local1.list_mc.height);
_local1.initList = false;
_local1.setEnabled(_local1.items.length);
_local1.onMouseDown();
};
GWComboBoxClass.prototype.showList = function () {
var _local1 = this;
var _local2 = _root;
if (_local1.spawnAtRoot) {
_local2.__GWcombobox.swapDepths(_local1.cbDepth);
_local2.__GWcombobox.active.hideList();
} else {
_local1.swapDepths(_local1._parent._GWTopComboBoxDepth);
}
if (_local1.getEnabled() && (_local1.items.length)) {
if (!_local1.initList) {
_local1.listprops.rowHeight = _local1.rowHeight;
_local1.setDataProvider(_local1.items);
_local1.list_mc.setRowCount(_local1.rowCount || (_local1.items.length));
_local1.initList = true;
}
_local1.setListPlacement(_local1.listPos);
_local1.list_mc._visible = 1;
_local1.list_mc.select(_local1.item_mc.idx);
if ((_local1.item_mc.idx >= (_local1.list_mc.getScrollPosition() + _local1.list_mc.getRowCount())) || (_local1.item_mc.idx <= _local1.list_mc.getScrollPosition())) {
_local1.list_mc.setScrollPosition(_local1.item_mc.idx - 1);
}
if ((_local1.useEdgeScroll && (_local1.rowCount)) && (_local1.items.length > _local1.rowCount)) {
_local1.onMouseMove = function () {
var _local1 = this;
clearInterval(_local1.isScrolling);
if (_root._ymouse < Math.min(_local1.y, (_local1.spawnAtRoot ? 0 : (_local1.y)) + _local1.list_mc._y)) {
_local1.isScrolling = setInterval(_local1.list_mc, "_startScroll", 100, -1);
} else if (_root._ymouse > Math.max(_local1.y + _local1.box_mc.height, ((_local1.spawnAtRoot ? 0 : (_local1.y)) + _local1.list_mc._y) + _local1.list_mc.height)) {
_local1.isScrolling = setInterval(_local1.list_mc, "_startScroll", 100, 1);
}
};
}
_local2.__GWcombobox.active = _local1;
}
};
GWComboBoxClass.prototype.hideList = function () {
var _local1 = this;
_local1.list_mc._visible = 0;
_local1.list_mc.deSelectAll();
_local1.onMouseMove = null;
clearInterval(_local1.isScrolling);
};
#endinitclip
Instance of Symbol 439 MovieClip [GWBaseClass] "baseclass" in Symbol 441 MovieClip [GWComboBoxClass] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 445 MovieClip [GWPanel] Frame 1
#initclip 4
_global.GWPanel = function () {
var _local1 = this;
if (_local1.colorObj != undefined) {
for (var _local2 in _local1.colorObj) {
_local1[_local2] = _local1.colorObj[_local2];
}
}
super.init(GWPanel);
_local1.init();
};
GWPanel.prototype = new GWBaseClass();
Object.registerClass("GWPanel", GWPanel);
GWPanel.prototype.init = function () {
var _local1 = this;
_local1.face = ((_local1.face == undefined) ? 13947080 : (_local1.face));
_local1.highlight = ((_local1.highlight == undefined) ? 13947080 : (_local1.highlight));
_local1.highlight3D = ((_local1.highlight3D == undefined) ? 16777215 : (_local1.highlight3D));
_local1.shadow = ((_local1.shadow == undefined) ? 8421504 : (_local1.shadow));
_local1.darkshadow = ((_local1.darkshadow == undefined) ? 4210752 : (_local1.darkshadow));
_local1.width = Math.round(_local1.width || (_local1._width));
_local1.height = Math.round(_local1.height || (_local1._height));
_local1._xscale = (_local1._yscale = 100);
_local1.classHolder._width = _local1.width;
_local1.classHolder._height = _local1.height;
_local1.setSize();
};
GWPanel.prototype.setSize = function (w, h) {
var _local1 = this;
var _local2 = h;
var _local3 = w;
_local1.snapToPixels(_local1);
if (!arguments.length) {
_local3 = (_local1.width = _local1.width || (_local1._width));
_local2 = (_local1.height = _local1.height || (_local1._height));
_local1._xscale = (_local1._yscale = 100);
} else {
_local3 = Math.round(_local3);
_local1.width = _local3;
_local2 = Math.round(_local2);
_local1.height = _local2;
}
_local1.drawPanel(_local3, _local2);
};
GWPanel.prototype.getSize = function () {
return({width:this._width, height:this._height});
};
GWPanel.prototype.setColor = function (c) {
var _local1 = this;
var _local3 = c;
_local3 = ((_local3 != undefined) ? (_local3) : (_local1.colorObj));
for (var i in _local3) {
_local1[i] = _local3[i];
}
_local1.colorObj = _local3;
var _local2 = new Color(_local1.iMC);
_local2.setRGB(_local1.face);
_local2 = new Color(_local1.eMC);
_local2.setRGB(_local1.highlight);
_local2 = new Color(_local1.fMC);
_local2.setRGB(_local1.highlight);
_local2 = new Color(_local1.aMC);
_local2.setRGB(_local1.highlight3D);
_local2 = new Color(_local1.bMC);
_local2.setRGB(_local1.highlight3D);
_local2 = new Color(_local1.gMC);
_local2.setRGB(_local1.shadow);
_local2 = new Color(_local1.hMC);
_local2.setRGB(_local1.shadow);
_local2 = new Color(_local1.cMC);
_local2.setRGB(_local1.darkshadow);
_local2 = new Color(_local1.dMC);
_local2.setRGB(_local1.darkshadow);
};
GWPanel.prototype.drawPanel = function (w, h) {
var _local1 = this;
var _local2 = h;
var _local3 = w;
if ((_local1._width != _local3) || (_local1._height != _local2)) {
_local3 = (_local1.width = Math.max(4, _local3 || (_local1.width)));
_local2 = (_local1.height = Math.max(4, _local2 || (_local1.height)));
_local1.aMC._width = _local3 - 1;
_local1.bMC._height = _local2 - 2;
_local1.cMC._width = _local3;
_local1.dMC._height = _local2 - 1;
_local1.eMC._width = _local3 - 3;
_local1.fMC._height = _local2 - 4;
_local1.gMC._width = _local3 - 2;
_local1.hMC._height = _local2 - 3;
_local1.iMC._width = _local3 - 4;
_local1.iMC._height = _local2 - 4;
_local1.cMC._y = _local2 - 1;
_local1.dMC._x = _local3 - 1;
_local1.gMC._y = _local2 - 2;
_local1.hMC._x = _local3 - 2;
}
_local1.setColor();
};
#endinitclip
Instance of Symbol 439 MovieClip [GWBaseClass] "baseclass" in Symbol 445 MovieClip [GWPanel] Frame 1
//component parameters
onClipEvent (initialize) {
}
Instance of Symbol 445 MovieClip [GWPanel] "base_mc" in Symbol 446 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
face = 13947080 /* 0xD4D0C8 */;
highlight = 16777215 /* 0xFFFFFF */;
highlight3D = 13947080 /* 0xD4D0C8 */;
shadow = 8421504 /* 0x808080 */;
darkshadow = 4210752 /* 0x404040 */;
}
Instance of Symbol 445 MovieClip [GWPanel] "base_mc" in Symbol 449 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
face = 13947080 /* 0xD4D0C8 */;
highlight = 13947080 /* 0xD4D0C8 */;
highlight3D = 8421504 /* 0x808080 */;
shadow = 13947080 /* 0xD4D0C8 */;
darkshadow = 8421504 /* 0x808080 */;
}
Instance of Symbol 445 MovieClip [GWPanel] "base_mc" in Symbol 450 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
face = 13947080 /* 0xD4D0C8 */;
highlight = 16777215 /* 0xFFFFFF */;
highlight3D = 13947080 /* 0xD4D0C8 */;
shadow = 8421504 /* 0x808080 */;
darkshadow = 4210752 /* 0x404040 */;
}
Instance of Symbol 445 MovieClip [GWPanel] "base_mc" in Symbol 451 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
face = 13947080 /* 0xD4D0C8 */;
highlight = 16777215 /* 0xFFFFFF */;
highlight3D = 13947080 /* 0xD4D0C8 */;
shadow = 8421504 /* 0x808080 */;
darkshadow = 4210752 /* 0x404040 */;
}
Instance of Symbol 445 MovieClip [GWPanel] "base_mc" in Symbol 455 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
face = 13947080 /* 0xD4D0C8 */;
highlight = 13947080 /* 0xD4D0C8 */;
highlight3D = 8421504 /* 0x808080 */;
shadow = 13947080 /* 0xD4D0C8 */;
darkshadow = 8421504 /* 0x808080 */;
}
Instance of Symbol 445 MovieClip [GWPanel] "base_mc" in Symbol 456 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
face = 13947080 /* 0xD4D0C8 */;
highlight = 16777215 /* 0xFFFFFF */;
highlight3D = 13947080 /* 0xD4D0C8 */;
shadow = 8421504 /* 0x808080 */;
darkshadow = 4210752 /* 0x404040 */;
}
Instance of Symbol 445 MovieClip [GWPanel] "base_mc" in Symbol 457 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
face = 13947080 /* 0xD4D0C8 */;
highlight = 16777215 /* 0xFFFFFF */;
highlight3D = 13947080 /* 0xD4D0C8 */;
shadow = 8421504 /* 0x808080 */;
darkshadow = 4210752 /* 0x404040 */;
}
Symbol 460 MovieClip [GWScrollerClass] Frame 1
#initclip 5
_global.GWScrollerClass = function () {
super.init(GWScrollerClass);
};
GWScrollerClass.prototype = new GWBaseClass();
Object.registerClass("GWScrollerClass", GWScrollerClass);
GWScrollerClass.prototype.init = function () {
var _local1 = this;
if (_local1.horizontal && (_local1._rotation == 90)) {
_local1.isHorizontal = true;
}
_local1.snapToPixels(_local1);
_local1.largeScroll = (_local1.horizontal ? 30 : 5);
_local1.smallScroll = (_local1.horizontal ? 5 : 1);
for (var _local2 in _local1.scrollbar_mc) {
_local1.scrollbar_mc[_local2].useHandCursor = false;
}
var w = (_local1.width || ((_local1.horizontal ? (_local1._height) : (_local1._width))));
var h = (_local1.height || ((_local1.horizontal ? (_local1._width) : (_local1._height))));
_local1._xscale = (_local1._yscale = 100);
_local1.thumbMinSize = _local1.scrollbar_mc.thumb_mc._height;
_local1.setSize(w, h);
for (var _local2 in _local1.scrollbar_mc.bot_mc) {
if (_local2 == "over_mc") {
_local1.scrollbar_mc.bot_mc.onRollOver = (_local1.scrollbar_mc.top_mc.onRollOver = function () {
var _local1 = this;
if (_local1._parent._parent.enabled) {
for (var _local2 in _local1) {
_local1[_local2]._visible = 0;
}
_local1.over_mc._visible = 1;
}
});
} else if (_local2 == "down_mc") {
_local1.scrollbar_mc.bot_mc.onPress = (_local1.scrollbar_mc.top_mc.onPress = function () {
var _local1 = this;
if (_local1._parent._parent.enabled) {
for (var _local2 in _local1) {
_local1[_local2]._visible = 0;
}
_local1.down_mc._visible = 1;
var _local3 = ((_local1._name == "bot_mc") ? 1 : -1) * _local1._parent._parent.smallScroll;
_local1._parent._parent.isScrolling = setInterval(_local1._parent._parent, "_doScroll", 100, _local3);
}
});
} else if (_local2 == "up_mc") {
_local1.scrollbar_mc.bot_mc.onRelease = (_local1.scrollbar_mc.bot_mc.onReleaseOutside = (_local1.scrollbar_mc.top_mc.onRelease = (_local1.scrollbar_mc.top_mc.onReleaseOutside = function () {
var _local1 = this;
if (_local1._parent._parent.enabled) {
for (var _local2 in _local1) {
_local1[_local2]._visible = 0;
}
_local1.up_mc._visible = 1;
clearInterval(_local1._parent._parent.isScrolling);
delete _local1._parent._parent.isScrolling;
var _local3 = ((_local1._name == "bot_mc") ? 1 : -1) * _local1._parent._parent.smallScroll;
_local1._parent._parent._doScroll(_local3, _local1._parent._parent);
}
})));
}
}
_local1.scrollbar_mc.thumb_mc.onPress = function () {
var _local1 = this;
_local1._parent._parent.drag(_local1, false, 0, _local1._parent.track_mc._y, 0, (_local1._parent.track_mc._y + _local1._parent.track_mc._height) - _local1.height);
_local1.onDrag = _local1._parent._parent._onThumbDrag;
_local1._parent._parent.isDragging = true;
};
_local1.scrollbar_mc.thumb_mc.onRelease = (_local1.scrollbar_mc.thumb_mc.onReleaseOutside = function () {
var _local1 = this;
_local1._parent._parent.drag(_local1, -1);
_local1._parent._parent.isDragging = false;
_local1._parent._parent.scrollTarget.onChanged();
});
_local1.scrollbar_mc.track_mc.onPress = function () {
var _local1 = this;
if (_local1._parent._parent.enabled) {
var _local2 = _local1._parent._parent.largeScroll * ((_local1._parent._ymouse > _local1._parent.thumb_mc._y) ? 1 : -1);
_local1._parent._parent.isScrolling = setInterval(_local1._parent._parent, "_doScroll", 50, _local2, _local1._parent._ymouse);
_local1._parent._parent._doScroll(_local2);
}
};
_local1.scrollbar_mc.track_mc.onDragOut = (_local1.scrollbar_mc.track_mc.onRelease = (_local1.scrollbar_mc.track_mc.onReleaseOutside = function () {
clearInterval(this._parent._parent.isScrolling);
delete this._parent._parent.isScrolling;
}));
_local1.setScrollTarget(((_local1.scrollTarget.length > 0) ? (_local1.scrollTarget) : (_local1._targetInstanceName)));
_local1.scrollTarget.onChanged();
};
GWScrollerClass.prototype.setHorizontal = function (f) {
var _local1 = this;
_local1.horizontal = f;
_local1.setSize(_local1.width, _local1.height, 1);
};
GWScrollerClass.prototype.getSize = function () {
return({width:this._width, height:this._height});
};
GWScrollerClass.prototype.setSize = function (w, h) {
var _local2 = w;
var _local3 = this;
if (((arguments.length > 2) || (_local3.width != _local2)) || (_local3.height != h)) {
_local2 = (_local3.width = Math.round(_local2));
var h = ((_local3.height = Math.round(h)));
var _local1 = _local3.scrollbar_mc;
_local3._rotation = 0;
var x = (_local1.bot_mc.down_mc.arrow_mc._x - _local1.bot_mc.up_mc.arrow_mc._x);
for (var i in _local1.bot_mc) {
_local1.bot_mc[i]._x = (_local1.bot_mc[i]._y = 0);
_local1.top_mc[i]._x = (_local1.top_mc[i]._y = 0);
_local1.bot_mc[i]._visible = (_local1.top_mc[i]._visible = 0);
_local3.sizeMe(_local2, _local1.bot_mc[i]._height, _local1.bot_mc[i].base_mc);
_local3.sizeMe(_local2, _local1.top_mc[i]._height, _local1.top_mc[i].base_mc);
_local1.bot_mc[i].arrow_mc._x = (_local1.top_mc[i].arrow_mc._x = Math.floor((_local2 - _local1.bot_mc.up_mc.arrow_mc._width) / 2));
_local1.bot_mc[i].shadow_mc._x = (_local1.top_mc[i].shadow_mc._x = Math.floor((_local2 - _local1.top_mc[i].shadow_mc._width) / 2));
}
_local1.bot_mc.down_mc.arrow_mc._x = (_local1.top_mc.down_mc.arrow_mc._x = Math.floor((_local2 - _local1.bot_mc.down_mc.arrow_mc._width) / 2) + x);
_local1.bot_mc.up_mc._visible = (_local1.top_mc.up_mc._visible = 1);
_local3.sizeMe(_local2, (h - _local1.top_mc._height) - _local1.bot_mc._height, _local1.track_mc);
_local3.sizeMe(_local2, _local1.thumb_mc._height, _local1.thumb_mc.base_mc);
_local1.track_mc._y = _local1.top_mc._height;
_local1.bot_mc._y = h - _local1.bot_mc._height;
if (_local3.horizontal) {
_local3._rotation = 90;
if (!_local3.isHorizontal) {
_local3._yscale = -Math.abs(_local3._yscale);
}
}
_local3._updateThumb();
}
};
GWScrollerClass.prototype.getScrollPosition = function () {
return(this.scrollpos);
};
GWScrollerClass.prototype.setScrollPosition = function (p) {
var _local1 = this;
if (_local1.horizontal) {
_local1.scrollTarget.hscroll = p;
} else {
_local1.scrollTarget.scroll = p;
}
_local1.scrollTarget.onChanged();
};
GWScrollerClass.prototype.setSmallScroll = function (n) {
this.smallScroll = n;
};
GWScrollerClass.prototype.setLargeScroll = function (n) {
this.largeScroll = n;
};
GWScrollerClass.prototype.setEnabled = function (f) {
var _local3 = this;
var _local1 = _local3.scrollbar_mc;
for (var _local2 in _local1.bot_mc) {
_local1.bot_mc[_local2]._visible = 0;
_local1.top_mc[_local2]._visible = 0;
}
if (!f) {
_local1.bot_mc.off_mc._visible = (_local1.top_mc.off_mc._visible = 1);
_local1.thumb_mc._visible = 0;
_local3.enabled = false;
} else {
_local1.bot_mc.up_mc._visible = (_local1.top_mc.up_mc._visible = 1);
_local3._updateThumb();
_local3.enabled = true;
}
};
GWScrollerClass.prototype.setScrollTarget = function (t) {
var _local1 = this;
var _local2 = t;
if (_local2 != undefined) {
_local2 = (((_local2 instanceof TextField) || (_local2 instanceof MovieClip)) ? (_local2) : (_local1._parent[_local2]));
if ((_local2 instanceof TextField) || (_local2 instanceof MovieClip)) {
_local1.scrollTarget = _local2;
if (!_local1.scrollTarget.scroller) {
_local1.scrollTarget.scroller = [_local1];
} else {
_local1.scrollTarget.scroller.push(_local1);
}
_local1.scrollTarget.addListener(_local1);
_local1.scrollTarget.onScroller = (_local1.scrollTarget.onChanged = function () {
var _local1 = this;
for (var _local2 in _local1.scroller) {
_local1.scroller[_local2]._onChanged(_local1);
}
});
} else {
delete _local1.scrollTarget;
}
}
};
GWScrollerClass.prototype._doScroll = function (d, t) {
var _local1 = this;
var _local2 = d;
var _local3 = t;
_local1.scrollpos = _local1.scrollpos || 0;
_local1.scrollpos = _local1.scrollpos + _local2;
_local1.scrollpos = ((_local2 > 0) ? (Math.min(_local1.scrollpos, _local1.maxscroll)) : (Math.max(_local1.scrollpos, (_local1.horizontal ? 0 : (((_local1.scrollTarget instanceof TextField) ? 1 : 0))))));
_local1._updateThumb();
if (_local3) {
if (((_local2 > 0) && ((_local1.scrollbar_mc.thumb_mc._y + _local1.scrollbar_mc.thumb_mc.height) > _local3)) || ((_local2 < 0) && (_local1.scrollbar_mc.thumb_mc._y < _local3))) {
_local1.scrollbar_mc.track_mc.onRelease();
}
}
};
GWScrollerClass.prototype._onChanged = function (t) {
var _local1 = this;
var _local2 = t;
if (_local1.isDragging) {
} else {
_local1.scrollpos = (_local1.horizontal ? (_local2.hscroll) : (_local2.scroll)) || 0;
_local1.maxscroll = (_local1.horizontal ? (_local2.maxhscroll) : (_local2.maxscroll));
_local1.pageSize = ((_local2 instanceof TextField) ? ((_local1.horizontal ? (_local1.largeScroll) : (_local2.bottomScroll - _local2.scroll))) : (_local2.bottomScroll - (_local2.scrollpos || 0)));
if (!_local1.isScrolling) {
if (_local1.maxscroll > 1) {
_local1.setEnabled(true);
_local1._updateThumb();
} else {
_local1.setEnabled(false);
}
}
}
};
GWScrollerClass.prototype._onThumbDrag = function () {
var _local2 = this;
var _local1 = _local2._parent._parent.scrollTarget;
var _local3 = _local2._parent.track_mc._height - _local2.height;
if (_local2._parent._parent.horizontal) {
var i = (_local3 / _local1.maxhscroll);
_local1.hscroll = (_local1.hscrollpos = Math.round((_local2._y - _local2._parent.track_mc._y) / i));
} else {
var i = (_local3 / _local1.maxscroll);
_local1.scroll = (_local1.scrollpos = Math.round((_local2._y - _local2._parent.track_mc._y) / i) + ((_local1 instanceof TextField) ? 1 : 0));
}
};
GWScrollerClass.prototype._updateThumb = function () {
var _local1 = this;
var _local2 = _local1.scrollbar_mc;
var h = (Math.max(_local1.thumbMinSize, Math.round((_local1.pageSize / (_local1.maxscroll + _local1.pageSize)) * _local2.track_mc._height)) || (_local1.thumbMinSize));
if (_local1.scrollTarget) {
_local1.sizeMe(_local1.width, h, _local2.thumb_mc.base_mc);
_local2.thumb_mc.height = h;
}
_local2.thumb_mc.mid_mc._x = Math.floor(((_local2.thumb_mc.width || (_local2.thumb_mc._width)) - _local2.thumb_mc.mid_mc._width) / 2);
_local2.thumb_mc.mid_mc._y = Math.floor(((_local2.thumb_mc.height || (_local2.thumb_mc._height)) - _local2.thumb_mc.mid_mc._height) / 2);
var _local3 = _local2.track_mc._height - h;
var i = (_local3 / (_local1.maxscroll - 1));
_local2.thumb_mc._visible = _local3 > 0;
_local2.thumb_mc._y = _local2.track_mc._y + Math.max(0, Math.round(Math.min(_local3, (_local1.scrollpos - 1) * i)));
if (_local1.horizontal) {
_local1.scrollTarget.hscroll = (_local1.scrollTarget.hscrollpos = _local1.scrollpos);
} else {
_local1.scrollTarget.scroll = (_local1.scrollTarget.scrollpos = _local1.scrollpos);
}
};
#endinitclip
Instance of Symbol 439 MovieClip [GWBaseClass] "baseclass" in Symbol 460 MovieClip [GWScrollerClass] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 461 MovieClip [GWScrollBar] Frame 1
#initclip 11
_global.GWScrollBar = function () {
super.init();
this.init();
};
GWScrollBar.prototype = new GWScrollerClass();
Object.registerClass("GWScrollBar", GWScrollBar);
GWScrollBar.prototype.init = function () {
var _local1 = this;
_local1.face = ((_local1.face == undefined) ? 13947080 : (_local1.face));
_local1.highlight = ((_local1.highlight == undefined) ? 16777215 : (_local1.highlight));
_local1.highlight3D = ((_local1.highlight3D == undefined) ? 13947080 : (_local1.highlight3D));
_local1.shadow = ((_local1.shadow == undefined) ? 8421504 : (_local1.shadow));
_local1.darkshadow = ((_local1.darkshadow == undefined) ? 4210752 : (_local1.darkshadow));
_local1.face_down = ((_local1.face_down == undefined) ? 13947080 : (_local1.face_down));
_local1.highlight_down = ((_local1.highlight_down == undefined) ? 13947080 : (_local1.highlight_down));
_local1.highlight3D_down = ((_local1.highlight3D_down == undefined) ? 8421504 : (_local1.highlight3D_down));
_local1.shadow_down = ((_local1.shadow_down == undefined) ? 13947080 : (_local1.shadow_down));
_local1.darkshadow_down = ((_local1.darkshadow_down == undefined) ? 8421504 : (_local1.darkshadow_down));
_local1.face_off = ((_local1.face_off == undefined) ? 13947080 : (_local1.face_off));
_local1.highlight_off = ((_local1.highlight_off == undefined) ? 16777215 : (_local1.highlight_off));
_local1.highlight3D_off = ((_local1.highlight3D_off == undefined) ? 13947080 : (_local1.highlight3D_off));
_local1.shadow_off = ((_local1.shadow_off == undefined) ? 8421504 : (_local1.shadow_off));
_local1.darkshadow_off = ((_local1.darkshadow_off == undefined) ? 4210752 : (_local1.darkshadow_off));
_local1.arrow_off = ((_local1.arrow_off == undefined) ? 8421504 : (_local1.arrow_off));
_local1.scrollbar_mc.thumb_mc.base_mc.face = _local1.face;
_local1.scrollbar_mc.thumb_mc.base_mc.highlight = _local1.highlight;
_local1.scrollbar_mc.thumb_mc.base_mc.highlight3D = _local1.highlight3D;
_local1.scrollbar_mc.thumb_mc.base_mc.shadow = _local1.shadow;
_local1.scrollbar_mc.thumb_mc.base_mc.darkshadow = _local1.darkshadow;
_local1.scrollbar_mc.bot_mc.up_mc.base_mc.face = _local1.face;
_local1.scrollbar_mc.bot_mc.up_mc.base_mc.highlight = _local1.highlight;
_local1.scrollbar_mc.bot_mc.up_mc.base_mc.highlight3D = _local1.highlight3D;
_local1.scrollbar_mc.bot_mc.up_mc.base_mc.shadow = _local1.shadow;
_local1.scrollbar_mc.bot_mc.up_mc.base_mc.darkshadow = _local1.darkshadow;
_local1.scrollbar_mc.top_mc.up_mc.base_mc.face = _local1.face;
_local1.scrollbar_mc.top_mc.up_mc.base_mc.highlight = _local1.highlight;
_local1.scrollbar_mc.top_mc.up_mc.base_mc.highlight3D = _local1.highlight3D;
_local1.scrollbar_mc.top_mc.up_mc.base_mc.shadow = _local1.shadow;
_local1.scrollbar_mc.top_mc.up_mc.base_mc.darkshadow = _local1.darkshadow;
_local1.scrollbar_mc.bot_mc.down_mc.base_mc.face = _local1.face_down;
_local1.scrollbar_mc.bot_mc.down_mc.base_mc.highlight = _local1.highlight_down;
_local1.scrollbar_mc.bot_mc.down_mc.base_mc.highlight3D = _local1.highlight3D_down;
_local1.scrollbar_mc.bot_mc.down_mc.base_mc.shadow = _local1.shadow_down;
_local1.scrollbar_mc.bot_mc.down_mc.base_mc.darkshadow = _local1.darkshadow_down;
_local1.scrollbar_mc.top_mc.down_mc.base_mc.face = _local1.face_down;
_local1.scrollbar_mc.top_mc.down_mc.base_mc.highlight = _local1.highlight_down;
_local1.scrollbar_mc.top_mc.down_mc.base_mc.highlight3D = _local1.highlight3D_down;
_local1.scrollbar_mc.top_mc.down_mc.base_mc.shadow = _local1.shadow_down;
_local1.scrollbar_mc.top_mc.down_mc.base_mc.darkshadow = _local1.darkshadow_down;
_local1.scrollbar_mc.bot_mc.off_mc.base_mc.face = _local1.face_off;
_local1.scrollbar_mc.bot_mc.off_mc.base_mc.highlight = _local1.highlight_off;
_local1.scrollbar_mc.bot_mc.off_mc.base_mc.highlight3D = _local1.highlight3D_off;
_local1.scrollbar_mc.bot_mc.off_mc.base_mc.shadow = _local1.shadow_off;
_local1.scrollbar_mc.bot_mc.off_mc.base_mc.darkshadow = _local1.darkshadow_off;
_local1.scrollbar_mc.top_mc.off_mc.base_mc.face = _local1.face_off;
_local1.scrollbar_mc.top_mc.off_mc.base_mc.highlight = _local1.highlight_off;
_local1.scrollbar_mc.top_mc.off_mc.base_mc.highlight3D = _local1.highlight3D_off;
_local1.scrollbar_mc.top_mc.off_mc.base_mc.shadow = _local1.shadow_off;
_local1.scrollbar_mc.top_mc.off_mc.base_mc.darkshadow = _local1.darkshadow_off;
_local1.setColor();
};
GWScrollBar.prototype.setColor = function (o) {
var _local1 = this;
var _local2 = o;
_local1.face = ((_local2.face == undefined) ? (_local1.face) : (_local2.face));
_local1.highlight = ((_local2.highlight == undefined) ? (_local1.highlight) : (_local2.highlight));
_local1.highlight3D = ((_local2.highlight3D == undefined) ? (_local1.highlight3D) : (_local2.highlight3D));
_local1.shadow = ((_local2.shadow == undefined) ? (_local1.shadow) : (_local2.shadow));
_local1.darkshadow = ((_local2.darkshadow == undefined) ? (_local1.darkshadow) : (_local2.darkshadow));
_local1.arrow = ((_local2.arrow == undefined) ? (_local1.arrow) : (_local2.arrow));
_local1.track = ((_local2.track == undefined) ? (_local1.track) : (_local2.track));
_local1.face_down = ((_local2.face_down == undefined) ? (_local1.face_down) : (_local2.face_down));
_local1.highlight_down = ((_local2.highlight_down == undefined) ? (_local1.highlight_down) : (_local2.highlight_down));
_local1.highlight3D_down = ((_local2.highlight3D_down == undefined) ? (_local1.highlight3D_down) : (_local2.highlight3D_down));
_local1.shadow_down = ((_local2.shadow_down == undefined) ? (_local1.shadow_down) : (_local2.shadow_down));
_local1.darkshadow_down = ((_local2.darkshadow_down == undefined) ? (_local1.darkshadow_down) : (_local2.darkshadow_down));
_local1.arrow_down = ((_local2.arrow_down == undefined) ? (_local1.arrow_down) : (_local2.arrow_down));
_local1.face_off = ((_local2.face_off == undefined) ? (_local1.face_off) : (_local2.face_off));
_local1.highlight_off = ((_local2.highlight_off == undefined) ? (_local1.highlight_off) : (_local2.highlight_off));
_local1.highlight3D_off = ((_local2.highlight3D_off == undefined) ? (_local1.highlight3D_off) : (_local2.highlight3D_off));
_local1.shadow_off = ((_local2.shadow_off == undefined) ? (_local1.shadow_off) : (_local2.shadow_off));
_local1.darkshadow_off = ((_local2.darkshadow_off == undefined) ? (_local1.darkshadow_off) : (_local2.darkshadow_off));
_local1.arrow_off = ((_local2.arrow_off == undefined) ? (_local1.arrow_off) : (_local2.arrow_off));
_local1.scrollbar_mc.thumb_mc.base_mc.colorObj = (_local1.scrollbar_mc.bot_mc.up_mc.base_mc.colorObj = (_local1.scrollbar_mc.top_mc.up_mc.base_mc.colorObj = {face:_local1.face, highlight:_local1.highlight, highlight3D:_local1.highlight3D, shadow:_local1.shadow, darkshadow:_local1.darkshadow}));
_local1.scrollbar_mc.top_mc.down_mc.base_mc.colorObj = (_local1.scrollbar_mc.bot_mc.down_mc.base_mc.colorObj = {face:_local1.face_down, highlight:_local1.highlight_down, highlight3D:_local1.highlight3D_down, shadow:_local1.shadow_down, darkshadow:_local1.darkshadow_down});
_local1.scrollbar_mc.bot_mc.off_mc.base_mc.colorObj = (_local1.scrollbar_mc.top_mc.off_mc.base_mc.colorObj = {face:_local1.face_off, highlight:_local1.highlight_off, highlight3D:_local1.highlight3D_off, shadow:_local1.shadow_off, darkshadow:_local1.darkshadow_off});
_local1.scrollbar_mc.thumb_mc.base_mc.setColor();
_local1.scrollbar_mc.bot_mc.up_mc.base_mc.setColor();
_local1.scrollbar_mc.top_mc.up_mc.base_mc.setColor();
_local1.scrollbar_mc.bot_mc.down_mc.base_mc.setColor();
_local1.scrollbar_mc.top_mc.down_mc.base_mc.setColor();
_local1.scrollbar_mc.top_mc.off_mc.base_mc.setColor();
_local1.scrollbar_mc.bot_mc.off_mc.base_mc.setColor();
_local1.setClipColor(_local1.scrollbar_mc.bot_mc.up_mc.arrow_mc, _local1.arrow);
_local1.setClipColor(_local1.scrollbar_mc.top_mc.up_mc.arrow_mc, _local1.arrow);
_local1.setClipColor(_local1.scrollbar_mc.bot_mc.down_mc.arrow_mc, _local1.arrow_down);
_local1.setClipColor(_local1.scrollbar_mc.top_mc.down_mc.arrow_mc, _local1.arrow_down);
_local1.setClipColor(_local1.scrollbar_mc.bot_mc.off_mc.arrow_mc, _local1.arrow_off);
_local1.setClipColor(_local1.scrollbar_mc.top_mc.off_mc.arrow_mc, _local1.arrow_off);
if (_local1.track != undefined) {
_local1.setClipColor(_local1.scrollbar_mc.track_mc, _local1.track);
}
};
GWScrollBar.prototype.setClipColor = function (m, n) {
var _local1 = new Color(m);
_local1.setRGB(n);
};
#endinitclip
Instance of Symbol 460 MovieClip [GWScrollerClass] in Symbol 461 MovieClip [GWScrollBar] Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "";
}
Symbol 462 MovieClip Frame 1
stop();
Instance of Symbol 461 MovieClip [GWScrollBar] in Symbol 462 MovieClip Frame 2
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "";
horizontal = false;
face = 13947080 /* 0xD4D0C8 */;
highlight = 16777215 /* 0xFFFFFF */;
highlight3D = 13947080 /* 0xD4D0C8 */;
shadow = 8421504 /* 0x808080 */;
darkshadow = 4210752 /* 0x404040 */;
face_down = 13947080 /* 0xD4D0C8 */;
highlight_down = 13947080 /* 0xD4D0C8 */;
highlight3D_down = 8421504 /* 0x808080 */;
shadow_down = 13947080 /* 0xD4D0C8 */;
darkshadow_down = 8421504 /* 0x808080 */;
face_off = 13947080 /* 0xD4D0C8 */;
highlight_off = 16777215 /* 0xFFFFFF */;
highlight3D_off = 13947080 /* 0xD4D0C8 */;
shadow_off = 8421504 /* 0x808080 */;
darkshadow_off = 4210752 /* 0x404040 */;
arrow = 0;
arrow_down = 0;
arrow_off = 8421504 /* 0x808080 */;
track = 15527148 /* 0xECECEC */;
}
Symbol 463 MovieClip [GWLabelClass] Frame 1
#initclip 6
function GWLabelClass() {
this.fontcolor_off = 8421504 /* 0x808080 */;
this.fontcolor_shadow = 16777215 /* 0xFFFFFF */;
super.init(GWLabelClass);
}
GWLabelClass.prototype = new GWBaseClass();
Object.registerClass("GWLabelClass", GWLabelClass);
GWLabelClass.prototype.init = function () {
var _local1 = this;
_local1.padx = _local1.padx || 0;
_local1.pady = _local1.pady || 0;
_local1.buffer = _local1.buffer || 2;
};
GWLabelClass.prototype.alignLabel = function (a) {
var _local1 = this;
if (a == "right") {
_local1.label_mc._x = (_local1.mask_mc._width - _local1.label_mc._width) - _local1.padx;
} else if (a == "center") {
_local1.label_mc._x = Math.max(0, Math.round((_local1.width - _local1.label_mc._width) / 2));
} else {
_local1.label_mc._x = _local1.padx;
}
_local1.label_mc._y = Math.max(0, Math.round((_local1.height - _local1.label_mc._height) / 2));
_local1.label_mc.x = _local1.label_mc._x;
_local1.label_mc.y = _local1.label_mc._y;
};
GWLabelClass.prototype.gethtmlLabel = function () {
return(this.label_mc.label_txt.htmlText);
};
GWLabelClass.prototype.getLabel = function () {
return(this.label_mc.label_txt.text);
};
GWLabelClass.prototype.setLabelFormat = function (f) {
var _local1 = this;
_local1.myFormat = f;
_local1.setLabel(_local1.gethtmlLabel());
};
GWLabelClass.prototype.setLabel = function (t) {
var _local1 = this;
_local1.width = _local1.width || (_local1._width);
_local1.height = _local1.height || (_local1._height);
if (!_local1.label_mc) {
_local1.createEmptyMovieClip("label_mc", 500);
_local1.drawBox("mask_mc", 501, 0, 0, _local1.width - _local1.padx, _local1.height - _local1.pady, 0, 0);
}
if (!_local1.myFormat) {
_local1.myFormat = new TextFormat();
}
_local1.label_mc.createTextField("label_txt", 2, 0, 0, _local1.width, _local1.height);
if (_local1.useEmbedFonts) {
_local1.label_mc.label_txt.embedFonts = true;
}
_local1.label_mc.label_txt.selectable = false;
_local1.label_mc.label_txt.multiline = true;
_local1.label_mc.label_txt.html = true;
_local1.label_mc.label_txt.autoSize = "left";
_local1.label_mc.label_txt.htmlText = t;
_local1.myFormat.font = ((_local1.font == undefined) ? "Tahoma" : (_local1.font));
_local1.myFormat.size = _local1.fontsize || 11;
_local1.myFormat.color = _local1.fontcolor;
_local1.label_mc.label_txt.setTextFormat(_local1.myFormat);
if (_local1.fitLabel) {
_local1.mask_mc._width = (_local1.width = Math.max(_local1.width, ((((_local1.labelpos == "left") || (_local1.labelpos == "right")) ? (_local1.icon_mc._width) : 0) + _local1.label_mc._width) + (_local1.padx * 2)));
_local1.mask_mc._height = (_local1.height = Math.max(_local1.height, ((((_local1.labelpos == "top") || (_local1.labelpos == "bottom")) ? (_local1.icon_mc._height) : 0) + _local1.label_mc._height) + (_local1.pady * 2)));
_local1.setSize(_local1.width, _local1.height);
}
_local1.alignLabel(_local1.align);
if (_local1.labelpos != undefined) {
_local1.setLabelPlacement(_local1.labelpos);
}
_local1.setMask(_local1.mask_mc);
};
GWLabelClass.prototype.setLabelEnabled = function (f) {
var _local1 = this;
if (f) {
_local1.setLabelColor(_local1.fontcolor);
_local1.label_mc.shadow_txt.text = "";
} else {
_local1.setLabelColor(_local1.fontcolor_off);
if (_local1.fontcolor_shadow != undefined) {
_local1.label_mc.createTextField("shadow_txt", 1, 1, 1, _local1.width, _local1.height);
_local1.label_mc.shadow_txt.autoSize = "left";
_local1.label_mc.shadow_txt.selectable = false;
_local1.label_mc.shadow_txt.html = true;
_local1.label_mc.shadow_txt.htmlText = _local1.getLabel();
_local1.myFormat.color = _local1.fontcolor_shadow;
_local1.label_mc.shadow_txt.setTextFormat(_local1.myFormat);
}
}
};
GWLabelClass.prototype.setLabelColor = function (c) {
var _local1 = this;
_local1.myFormat.color = c || 0;
_local1.label_mc.label_txt.setTextFormat(_local1.myFormat);
};
GWLabelClass.prototype.setLabelPlacement = function (pos) {
var _local1 = this;
var _local2 = pos;
_local1.labelpos = _local2;
_local1.valign = "center";
_local1.align = "center";
if (_local2 == "left") {
_local1.align = "right";
_local1.width = Math.max(_local1.width, (_local1.label_mc._width + _local1.icon_mc._width) + _local1.buffer);
if (_local1.fitLabel) {
_local1.setSize(_local1.width, _local1.height);
}
_local1.label_mc._x = (_local1.icon_mc._x - _local1.label_mc._width) - _local1.buffer;
_local1.icon_mc._y = Math.round((_local1.height - _local1.icon_mc._height) / 2);
} else if (_local2 == "right") {
_local1.align = "left";
_local1.width = Math.max(_local1.width, (_local1.label_mc._width + _local1.icon_mc._width) + _local1.buffer);
if (_local1.fitLabel) {
_local1.setSize(_local1.width, _local1.height);
}
_local1.label_mc._x = (_local1.icon_mc._x + _local1.icon_mc._width) + _local1.buffer;
_local1.icon_mc._y = Math.round((_local1.height - _local1.icon_mc._height) / 2);
} else if (_local2 == "top") {
_local1.valign = "bottom";
_local1.width = Math.max(_local1.width, _local1._width);
_local1.height = Math.max(_local1.height, (_local1.label_mc._height + _local1.icon_mc._height) + _local1.buffer);
if (_local1.fitLabel) {
_local1.setSize(_local1.width, _local1.height);
}
_local1.label_mc._x = Math.max(0, Math.round((_local1.width - _local1.label_mc._width) / 2));
_local1.label_mc._y = (_local1.icon_mc._y - _local1.label_mc._height) - _local1.buffer;
} else if (_local2 == "bottom") {
_local1.valign = "top";
_local1.width = Math.max(_local1.width, _local1._width);
_local1.height = Math.max(_local1.height, (_local1.label_mc._height + _local1.icon_mc._height) + _local1.buffer);
if (_local1.fitLabel) {
_local1.setSize(_local1.width, _local1.height);
}
_local1.label_mc._x = Math.max(0, Math.round((_local1.width - _local1.label_mc._width) / 2));
_local1.label_mc._y = (_local1.icon_mc._y + _local1.icon_mc._height) + _local1.buffer;
}
};
#endinitclip
Instance of Symbol 439 MovieClip [GWBaseClass] "base" in Symbol 463 MovieClip [GWLabelClass] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 464 MovieClip [GWListItemClass] Frame 1
#initclip 8
_global.GWListItemClass = function (o) {
super.init();
this.init();
};
GWListItemClass.prototype = new GWLabelClass();
Object.registerClass("GWListItemClass", GWListItemClass);
GWListItemClass.prototype.init = function () {
var _local1 = this;
_local1.basecolor_on = ((_local1.basecolor_on == undefined) ? 664682 : (_local1.basecolor_on));
_local1.basecolor_off = ((_local1.basecolor_off == undefined) ? 16777215 : (_local1.basecolor_off));
_local1.basecolor_over = ((_local1.basecolor_over == undefined) ? 16777215 : (_local1.basecolor_over));
_local1.fontcolor_on = ((_local1.fontcolor_on == undefined) ? 16777215 : (_local1.fontcolor_on));
_local1.fontcolor_off = ((_local1.fontcolor_off == undefined) ? 0 : (_local1.fontcolor_off));
_local1.fontcolor_over = ((_local1.fontcolor_over == undefined) ? 0 : (_local1.fontcolor_over));
_local1.width = Math.round(_local1.width || (_local1._width));
_local1.height = Math.round(_local1.height || (_local1._height));
_local1._xscale = (_local1._yscale = 100);
_local1.drawBox("base_mc", 2, 0, 0, 1, 1, _local1.basecolor_off, 100);
_local1.base_mc._alpha = ((_local1.alpha == undefined) ? 100 : (_local1.alpha));
_local1.setSize(_local1.width, _local1.height);
_local1.setLabel(_local1.label);
_local1.setIcon(_local1.icon);
_local1.pady = 0;
_local1.useHandCursor = false;
};
GWListItemClass.prototype.setData = function (d) {
this.data = d;
};
GWListItemClass.prototype.getData = function () {
return(this.data);
};
GWListItemClass.prototype.setIcon = function (i) {
var _local1 = this;
if (i.length) {
_local1.attachMovie(i, "icon_mc", 3, {_x:4});
if (_local1.icon_mc._height > _local1.height) {
_local1.sizeMe(_local1.icon_mc._width * (_local1.height / _local1.icon_mc._height), _local1.height, _local1.icon_mc);
}
_local1.setLabelPlacement("right");
}
};
GWListItemClass.prototype.setSize = function (w, h) {
var _local1 = this;
if (!_local1.label_mc) {
_local1.createEmptyMovieClip("label_mc", 500);
_local1.drawBox("mask_mc", 501, 0, 0, _local1.width - _local1.padx, _local1.height - _local1.pady, 0, 0);
}
_local1.width = (_local1.base_mc._width = w);
_local1.height = (_local1.base_mc._height = h);
_local1.mask_mc._width = w - (_local1.padx * 3);
_local1.mask_mc._height = h - (_local1.pady * 2);
if (_local1.labelAlign == "center") {
_local1.label_mc._x = Math.round((_local1.width - _local1.label_mc._width) / 2);
}
};
GWListItemClass.prototype.setBaseColor = function (c) {
var _local1 = new Color(this.base_mc);
_local1.setRGB(c);
};
#endinitclip
Instance of Symbol 463 MovieClip [GWLabelClass] in Symbol 464 MovieClip [GWListItemClass] Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "";
}
Symbol 465 MovieClip [GWListBox] Frame 1
#initclip 9
_global.GWListBox = function () {
var _local1 = this;
_local1.pad = _local1.pad || 2;
_local1.sbSymbol = "GWScrollBar";
_local1.sbprops = {};
for (var _local2 in _local1) {
if (_local2.indexOf("sb_") != -1) {
_local1.sbprops[_local2.substr(3)] = _local1[_local2];
}
}
super.init();
};
GWListBox.prototype = new GWListBoxClass();
Object.registerClass("GWListBox", GWListBox);
#endinitclip
Instance of Symbol 440 MovieClip [GWListBoxClass] in Symbol 465 MovieClip [GWListBox] Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "";
}
Instance of Symbol 464 MovieClip [GWListItemClass] "item_mc" in Symbol 465 MovieClip [GWListBox] Frame 1
//component parameters
onClipEvent (initialize) {
}
Instance of Symbol 445 MovieClip [GWPanel] "frame_mc" in Symbol 465 MovieClip [GWListBox] Frame 1
//component parameters
onClipEvent (initialize) {
face = 16777215 /* 0xFFFFFF */;
highlight = 4210752 /* 0x404040 */;
highlight3D = 8421504 /* 0x808080 */;
shadow = 13947080 /* 0xD4D0C8 */;
darkshadow = 16777215 /* 0xFFFFFF */;
}
Symbol 466 MovieClip Frame 1
stop();
Instance of Symbol 465 MovieClip [GWListBox] in Symbol 466 MovieClip Frame 2
//component parameters
onClipEvent (initialize) {
selectMultiple = false;
font = "Tahoma";
fontsize = 11;
rowHeight = 18;
checkFocus = false;
fontcolor_on = 16777215 /* 0xFFFFFF */;
fontcolor_off = 0;
fontcolor_out = 0;
itemcolor_on = 664682 /* 0x0A246A */;
itemcolor_off = 16777215 /* 0xFFFFFF */;
itemcolor_out = 14078926 /* 0xD6D3CE */;
face = 16777215 /* 0xFFFFFF */;
highlight = 4210752 /* 0x404040 */;
highlight3D = 8421504 /* 0x808080 */;
shadow = 13947080 /* 0xD4D0C8 */;
darkshadow = 16777215 /* 0xFFFFFF */;
sb_face = 13947080 /* 0xD4D0C8 */;
sb_highlight = 16777215 /* 0xFFFFFF */;
sb_highlight3D = 13947080 /* 0xD4D0C8 */;
sb_shadow = 8421504 /* 0x808080 */;
sb_darkshadow = 4210752 /* 0x404040 */;
sb_face_down = 13947080 /* 0xD4D0C8 */;
sb_highlight_down = 13947080 /* 0xD4D0C8 */;
sb_highlight3D_down = 8421504 /* 0x808080 */;
sb_shadow_down = 13947080 /* 0xD4D0C8 */;
sb_darkshadow_down = 8421504 /* 0x808080 */;
sb_face_off = 13947080 /* 0xD4D0C8 */;
sb_highlight_off = 16777215 /* 0xFFFFFF */;
sb_highlight3D_off = 13947080 /* 0xD4D0C8 */;
sb_shadow_off = 8421504 /* 0x808080 */;
sb_darkshadow_down = 4210752 /* 0x404040 */;
sb_arrow = 0;
sb_arrow_down = 0;
sb_arrow_off = 8421504 /* 0x808080 */;
sb_track = 15527148 /* 0xECECEC */;
pad = 2;
useEmbedFonts = false;
}
Symbol 467 MovieClip [GWComboBox] Frame 1
#initclip 10
_global.GWComboBox = function () {
var _local1 = this;
var _local2 = {sb_face:13947080, sb_highlight:16777215, sb_highlight3D:13947080, sb_shadow:8421504, sb_darkshadow:4210752, sb_face_down:13947080, sb_highlight_down:13947080, sb_highlight3D_down:8421504, sb_shadow_down:13947080, sb_darkshadow_down:8421504, sb_face_off:13947080, sb_highlight_off:16777215, sb_highlight3D_off:13947080, sb_shadow_off:8421504, sb_darkshadow_off:4210752, sb_arrow_off:8421504};
for (var i in _local2) {
if (_local1[i] == undefined) {
_local1[i] = _local2[i];
}
}
_local1.blank_mc._visible = 0;
_local1.pad = _local1.pad || 2;
_local1.listprops = {};
for (var i in _local1) {
if (i.indexOf("sb_") != -1) {
_local1.listprops[i] = _local1[i];
}
}
_local1.listSymbol = "GWListBox";
super.init();
_local1.arrow_mc.up_mc.base_mc.colorObj = {face:_local1.sb_face, highlight:_local1.sb_highlight, highlight3D:_local1.sb_highlight3D, shadow:_local1.sb_shadow, darkshadow:_local1.sb_darkshadow};
_local1.arrow_mc.down_mc.base_mc.colorObj = {face:_local1.sb_face_down, highlight:_local1.sb_highlight_down, highlight3D:_local1.sb_highlight3D_down, shadow:_local1.sb_shadow_down, darkshadow:_local1.sb_darkshadow_down};
_local1.arrow_mc.off_mc.base_mc.colorObj = {face:_local1.sb_face_off, highlight:_local1.sb_highlight_off, highlight3D:_local1.sb_highlight3D_off, shadow:_local1.sb_shadow_off, darkshadow:_local1.sb_darkshadow_off};
var _local3 = new Color(_local1.arrow_mc.up_mc.arrow_mc);
_local3.setRGB(_local1.sb_arrow);
_local3 = new Color(_local1.arrow_mc.down_mc.arrow_mc);
_local3.setRGB(_local1.sb_arrow_down);
_local3 = new Color(_local1.arrow_mc.off_mc.arrow_mc);
_local3.setRGB(_local1.sb_arrow_off);
};
GWComboBox.prototype = new GWComboBoxClass();
Object.registerClass("GWComboBox", GWComboBox);
#endinitclip
Instance of Symbol 440 MovieClip [GWListBoxClass] in Symbol 467 MovieClip [GWComboBox] Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "";
}
Instance of Symbol 441 MovieClip [GWComboBoxClass] in Symbol 467 MovieClip [GWComboBox] Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "";
}
Instance of Symbol 445 MovieClip [GWPanel] "box_mc" in Symbol 467 MovieClip [GWComboBox] Frame 1
//component parameters
onClipEvent (initialize) {
face = 16777215 /* 0xFFFFFF */;
highlight = 4210752 /* 0x404040 */;
highlight3D = 8421504 /* 0x808080 */;
shadow = 13947080 /* 0xD4D0C8 */;
darkshadow = 16777215 /* 0xFFFFFF */;
}
Symbol 468 MovieClip Frame 1
stop();
Instance of Symbol 467 MovieClip [GWComboBox] "my_cb" in Symbol 468 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
idx = "";
font = "Tahoma";
fontsize = 11;
rowHeight = 18;
rowCount = 8;
useEdgeScroll = true;
listPos = "bottom";
listborder = 6710886 /* 0x666666 */;
face = 0;
highlight = 4210752 /* 0x404040 */;
highlight3D = 8421504 /* 0x808080 */;
shadow = 4210752 /* 0x404040 */;
darkshadow = 8421504 /* 0x808080 */;
fontcolor = 16777215 /* 0xFFFFFF */;
fontcolor_on = 16761856 /* 0xFFC400 */;
fontcolor_off = 16777215 /* 0xFFFFFF */;
itemcolor_on = 3355443 /* 0x333333 */;
itemcolor_off = 0;
sb_face = 6710886 /* 0x666666 */;
sb_highlight = 6710886 /* 0x666666 */;
sb_highlight3D = 6710886 /* 0x666666 */;
sb_shadow = 10066329 /* 0x999999 */;
sb_darkshadow = 6710886 /* 0x666666 */;
sb_face_down = 6710886 /* 0x666666 */;
sb_highlight_down = 10066329 /* 0x999999 */;
sb_highlight3D_down = 6710886 /* 0x666666 */;
sb_shadow_down = 6710886 /* 0x666666 */;
sb_darkshadow_down = 8421504 /* 0x808080 */;
sb_face_off = 8421504 /* 0x808080 */;
sb_highlight_off = 8421504 /* 0x808080 */;
sb_highlight3D_off = 8421504 /* 0x808080 */;
sb_shadow_off = 8421504 /* 0x808080 */;
sb_darkshadow_off = 8421504 /* 0x808080 */;
sb_arrow = 16777215 /* 0xFFFFFF */;
sb_arrow_down = 16777215 /* 0xFFFFFF */;
sb_arrow_off = 16777215 /* 0xFFFFFF */;
sb_track = 3355443 /* 0x333333 */;
useEmbedFonts = false;
pad = 2;
listpad = 1;
cbDepth = 17000;
spawnAtRoot = false;
}
Symbol 483 MovieClip Frame 26
function is_Empty(string) {
var _local1 = string;
if (((_local1 == "") || (_local1 == undefined)) || (_local1 == null)) {
return(true);
}
return(false);
}
function makeCountries() {
i = 0;
while (i < countries.length) {
countriesArray.push({data:countries[i][0], label:countries[i][1]});
i++;
}
form.my_cb.setDataProvider(countriesArray);
form.my_cb.select(0);
form.my_cb.onSelect = function (index) {
if (index != 0) {
country = countriesArray[index].data;
}
};
}
function is_null(string) {
var _local1 = string;
if (((_local1 == null) || (_local1 == undefined)) || (_local1 == "")) {
return("null");
}
return(_local1);
}
function submit(user, email) {
var _local1 = user;
var _local2 = _root;
var _local3 = email;
trace("submitting");
trace(_local2.x1025);
score = _local2.x1025;
score2 = is_null(_local2.x1026);
img = country;
_local1 = _local1.replace("|", "");
_local1 = _local1.replace(",", "");
rc4_text = _local3 + "|";
rc4_text = rc4_text + (_local1 + "|");
rc4_text = rc4_text + (((score + "|") + score.toString(10).checksum()) + "|");
rc4_text = rc4_text + (((score2 + "|") + score2.toString(10).checksum()) + "|");
rc4_text = rc4_text + (((img + "|") + img.toString(10).checksum()) + "|");
rc4_text = rc4_text + _local3.checksum();
rc4_key = "topgun";
_local2.rc4_hash = com.meychi.ascrypt.RC4.encrypt(rc4_text, rc4_key);
local_data.data.user_name = _local1;
local_data.data.user_email = _local3;
local_data.flush();
}
String.prototype.replace = function (pattern, replacement) {
return(this.split(pattern).join(replacement));
};
String.prototype.isEmail = function () {
var invalid_message = "Invalid email address";
var _local2 = this;
var _local1 = new Array("@", ".");
var _local3 = new Array();
i = 0;
while (i < 200) {
if (((((((i >= 33) && (i <= 45)) || (i == 47)) || ((i >= 58) && (i <= 63))) || ((i > 91) && (i <= 96))) || ((i >= 123) && (i <= 126))) || ((i >= 161) && (i <= 199))) {
var char = String.fromCharCode(i);
_local3.push(char);
}
i++;
}
i = 0;
while (i < _local3.length) {
if (_local2.indexOf(_local3[i]) != -1) {
var char = _local3[i];
return(false);
}
i++;
}
i = 0;
while (i < _local1.length) {
if (_local2.indexOf(_local1[i]) != -1) {
index = _local2.indexOf(_local1[i]);
if ((_local2.indexOf(_local1[i], index + 1) != -1) && (_local1[i] != ".")) {
return(false);
}
i++;
continue;
return(true);
}
}
return(true);
return(false);
};
String.prototype.checksum = function () {
var _local1 = this;
sum = 0;
i = 0;
while (i < _local1.length) {
sum = sum + _local1.charCodeAt(i);
i++;
}
return(sum);
};
_global.countries = [[null, "Select Your Country"], ["AF", "Afghanistan"], ["AL", "Albania"], ["DZ", "Algeria"], ["AS", "American Samoa"], ["AG", "Antigua Barbuda"], ["AR", "Argentina"], ["AU", "Australia"], ["AT", "Austria"], ["AZ", "Azerbaijan"], ["BH", "Bahrain"], ["BD", "Bangladesh"], ["BB", "Barbados"], ["BY", "Belarus"], ["BE", "Belgium"], ["BZ", "Belize"], ["BJ", "Benin"], ["BM", "Bermuda"], ["BT", "Bhutan"], ["BO", "Bolivia"], ["BA", "Bosnia Herzegovina"], ["BW", "Botswana"], ["BR", "Brazil"], ["BN", "Brunei"], ["BG", "Bulgaria"], ["BF", "Burkina Faso"], ["BI", "Burundi"], ["KH", "Cambodia"], ["CM", "Cameroon"], ["CA", "Canada"], ["CV", "Cape Verde"], ["KY", "Cayman Islands"], ["CF", "Cent African Rep"], ["TD", "Chad"], ["JI", "Channel Islands"], ["CL", "Chile"], ["CN", "China"], ["CO", "Columbia"], ["KM", "Comoros"], ["CG", "Congo"], ["CK", "Cook Islands"], ["CR", "Costa Rica"], ["HR", "Croatia"], ["CU", "Cuba"], ["CY", "Cyprus"], ["CZ", "Czech Republic"], ["DK", "Denmark"], ["DM", "Dominica"], ["DO", "Dominican Republic"], ["TL", "East Timor"], ["EC", "Ecuador"], ["EG", "Egypt"], ["SV", "El Salvador"], ["GQ", "Equatorial Guinea"], ["ER", "Eritrea"], ["EE", "Estonia"], ["ET", "Ethiopia"], ["FJ", "Fiji"], ["FI", "Finland"], ["FR", "France"], ["GF", "French Guiana"], ["PF", "French Polynesia"], ["GM", "Gambia"], ["GE", "Georgia"], ["DE", "Germany"], ["GH", "Ghana"], ["GI", "Gibraltar"], ["GR", "Greece"], ["GL", "Greenland"], ["GD", "Grenada"], ["GP", "Guadeloupe"], ["GU", "Guam"], ["GT", "Guatemala"], ["GW", "Guinea Bissau"], ["GY", "Guyana"], ["HT", "Haiti"], ["HW", "Hawaii"], ["HN", "Honduras"], ["HK", "Hong Kong"], ["HU", "Hungary"], ["IS", "Iceland"], ["IN", "India"], ["ID", "Indonesia"], ["IR", "Iran"], ["IQ", "Iraq"], ["IE", "Ireland"], ["IM", "Isle of Man"], ["IL", "Israel"], ["IT", "Italy"], ["CI", "Ivory Coast"], ["JM", "Jamaica"], ["JP", "Japan"], ["JO", "Jordan"], ["KZ", "Kazakhstan"], ["KE", "Kenya"], ["KS", "Korea South"], ["KW", "Kuwait"], ["KG", "Kyrgyzstan"], ["LA", "Laos"], ["LV", "Latvia"], ["LB", "Lebanon"], ["LS", "Lesotho"], ["LR", "Liberia"], ["LY", "Libya"], ["LI", "Liechtenstein"], ["LT", "Lithuania"], ["LU", "Luxembourg"], ["MO", "Macau"], ["MK", "Macedonia"], ["MG", "Madagascar"], ["MW", "Malawi"], ["MY", "Malaysia"], ["MV", "Maldives"], ["ML", "Mali"], ["MT", "Malta"], ["MQ", "Martinique"], ["MU", "Mauritius"], ["YT", "Mayotte"], ["MX", "Mexico"], ["MD", "Moldova"], ["MC", "Monaco"], ["MN", "Mongolia"], ["MS", "Montserrat"], ["MA", "Morocco"], ["MZ", "Mozambique"], ["MM", "Myanmar"], ["NA", "Namibia"], ["NR", "Nauru"], ["NP", "Nepal"], ["NL", "Netherlands"], ["NC", "New Caledonia"], ["NZ", "New Zealand"], ["NI", "Nicaragua"], ["NE", "Niger"], ["NG", "Nigeria"], ["NO", "Norway"], ["OM", "Oman"], ["PK", "Pakistan"], ["PA", "Panama"], ["PG", "Papua New Guinea"], ["PY", "Paraguay"], ["PE", "Peru"], ["PH", "Philippines"], ["PN", "Pitcairn Island"], ["PL", "Poland"], ["PT", "Portugal"], ["PR", "Puerto Rico"], ["QA", "Qatar"], ["RE", "Reunion"], ["RO", "Romania"], ["RU", "Russia"], ["RW", "Rwanda"], ["SM", "San Marino"], ["ST", "Sao Tome Principe"], ["SA", "Saudi Arabia"], ["SN", "Senegal"], ["CS", "Serbia Montenegro"], ["SL", "Sierra Leone"], ["SG", "Singapore"], ["SK", "Slovakia"], ["SI", "Slovenia"], ["SB", "Solomon Islands"], ["SO", "Somalia"], ["ZA", "South Africa"], ["ES", "Spain"], ["LK", "Sri Lanka"], ["SH", "St Helena"], ["KN", "St Kitts-Nevis"], ["LC", "St Lucia"], ["MB", "St Maarten"], ["PM", "St Pierre Miquelon"], ["VC", "St Vincent Grenadines"], ["SD", "Sudan"], ["SR", "Suriname"], ["SZ", "Swaziland"], ["SE", "Sweden"], ["CH", "Switzerland"], ["SY", "Syria"], ["TA", "Tahiti"], ["TW", "Taiwan"], ["TJ", "Tajikistan"], ["TZ", "Tanzania"], ["TH", "Thailand"], ["TG", "Togo"], ["TT", "Trinidad Tobago"], ["TN", "Tunisia"], ["TR", "Turkey"], ["TM", "Turkmenistan"], ["UA", "Ukraine"], ["AE", "UAE"], ["GB", "United Kingdom"], ["US", "USA"], ["UY", "Uruguay"], ["UZ", "Uzbekistan"], ["VU", "Vanuatu"], ["VE", "Venezuela"], ["VN", "Vietnam"], ["VI", "Virgin Islands"], ["EH", "Western Sahara"], ["ZM", "Zambia"], ["ZW", "Zimbabwe"]];
var countriesArray = [];
var country = null;
var defaultTextName = "Enter your name";
var defaultTextEmail = "Enter email (optional)";
form.txtName.text = defaultTextName;
form.txtEmail.text = defaultTextEmail;
trace(form.txtName);
form.txtName.onSetFocus = function () {
trace("here");
if (this.text == defaultTextName) {
this.text = "";
}
};
form.txtEmail.onSetFocus = function () {
if (this.text == defaultTextEmail) {
this.text = "";
}
};
makeCountries();
local_data = SharedObject.getLocal("user_data");
stored_user_name = local_data.data.user_name;
stored_user_email = local_data.data.user_email;
if (!is_Empty(stored_user_name)) {
form.txtName.text = stored_user_name;
}
if (!is_Empty(stored_user_email)) {
form.txtEmail.text = stored_user_email;
}
txt_info = "submit score";
form.btnSubmit.onRelease = function () {
trace("validating");
trace(form.txtName.text);
if ((form.txtName.text.length > 0) && (form.txtName.text != defaultTextName)) {
if ((form.txtEmail.text.isEmail() || (form.txtEmail.text == defaultTextEmail)) || (form.txtEmail.text.length == 0)) {
if (form.txtEmail.text == defaultTextEmail) {
submitMail = "";
} else {
submitMail = form.txtEmail.text;
}
if (country != null) {
submit(form.txtName.text, submitMail);
gotoAndPlay ("submitdata");
} else {
form.txtWarning.text = "Please select a country";
}
} else {
form.txtWarning.text = "Please enter a valid email";
}
} else {
form.txtWarning.text = "Please enter your name";
}
};
stop();
Symbol 483 MovieClip Frame 27
this.createEmptyMovieClip("xj22", 1);
xj22.xj25 = _root.rc4_hash;
xj22.loadVariables("http://www.markfennell.com/flash/f18/submit.php", "POST");
xj22.onEnterFrame = function () {
var _local1 = this;
if (_local1.Loaded == "done") {
if (_local1.msg != undefined) {
txt_info = _local1.msg.toLowerCase();
}
accessing._visible = false;
delete _local1.onEnterFrame;
}
};
stop();
Symbol 483 MovieClip Frame 36
stop();
txt_info = "Tell a friend";
stored_user_name = local_data.data.user_name;
stored_user_email = local_data.data.user_email;
if (!is_Empty(stored_user_name)) {
txt_name = stored_user_name;
}
if (!is_Empty(stored_user_email)) {
txt_email = stored_user_email;
}
submit_btn.onRelease = function () {
var _local1 = _root;
if (txt_email.isEmail() && (txt_name.length > 0)) {
if (txt_friendemail.isEmail() && (txt_friend.length > 0)) {
_local1.tell_txt_name = txt_name;
_local1.tell_txt_email = txt_email;
_local1.tell_txt_friend = txt_friend;
_local1.tell_txt_friendemail = txt_friendemail;
gotoAndPlay ("tellsubmit");
} else {
txt_friendemail = "";
}
} else {
txt_email = "";
}
};
exit_btn.onRelease = function () {
exit();
};
stop();
Symbol 483 MovieClip Frame 37
accessing._visible = true;
this.createEmptyMovieClip("xj23", 1);
xj23.me = _root.tell_txt_name;
xj23.email = _root.tell_txt_email;
xj23.friend = _root.tell_txt_friend;
xj23.friendaddr = _root.tell_txt_friendemail;
xj23.loadVariables("tell.php", "POST");
xj23.onEnterFrame = function () {
var _local1 = this;
if (_local1.Loaded == "done") {
if (_local1.msg != undefined) {
txt_info = _local1.msg;
}
accessing._visible = false;
delete _local1.onEnterFrame;
}
};
exit_btn.onRelease = function () {
exit();
};
stop();
Symbol 487 Button
on (release) {
_root.gotoAndPlay("start");
}
Symbol 489 Button
on (release) {
getURL ("http://www.markfennell.com/flash/f18", "_self");
}