Frame 1
b1 = _root.getBytesLoaded();
b2 = _root.getBytesTotal();
nFr = 1 + Math.round((b1 * 100) / b2);
loader_mc.gotoAndStop(nFr);
if (b1 >= b2) {
gotoAndPlay ("intro");
}
_root.loadplay = false;
Frame 6
if (Math.round(b1 / 1024) <= 20) {
gotoAndPlay ("loop1");
}
Frame 7
_root.b1 = _root.getBytesLoaded();
_root.b2 = _root.getBytesTotal();
_root.nFr = 1 + Math.round((b1 * 100) / b2);
_root.tg = _root.nFr - 2;
trace("_root.tg: " + _root.tg);
if (_root.tg <= 9) {
_root.procent = "0" + _root.tg;
} else {
_root.procent = _root.tg;
}
_root.loader_mc.gotoAndStop(_root.nFr);
Frame 11
if (Math.round(b1 / 1024) <= 35) {
gotoAndPlay ("loop2");
}
Frame 13
_root.b1 = _root.getBytesLoaded();
_root.b2 = _root.getBytesTotal();
_root.nFr = 1 + Math.round((b1 * 100) / b2);
_root.tg = _root.nFr - 2;
trace("_root.TG: " + nFr);
if (_root.nFr <= 9) {
_root.procent = "0" + tg;
trace(_root.procent);
} else {
_root.procent = tg;
}
_root.loader_mc.gotoAndStop(_root.nFr);
Frame 17
if (b1 < b2) {
gotoAndPlay ("loop3");
} else {
gotoAndPlay ("intro");
}
Frame 19
_root.procent = "99";
loader_mc.gotoAndStop(100);
Frame 23
if (!_root.loadplay) {
gotoAndPlay ("intro");
}
Frame 24
function RollOver() {
sound_mc.menuM_sound.start();
}
function URLonRelease(url) {
sound_mc.menuM_sound.start();
getURL (this.param_url, "_blank");
}
function clearloadvar() {
delete b1;
delete b2;
delete nFr;
delete tg;
delete procent;
delete loadplay;
}
stop();
numlevel = 0;
_root.attachMovie("soundB", "soundmc_mc", 1100);
soundmc_mc._x = 590;
soundmc_mc._y = 70;
_root.menu_mc.start_btn.onRelease = function () {
sound_mc.menuM_sound.start();
Mouse.removeListener(mouseOverviewListener);
play();
};
_root.menu_mc.help_btn.onRelease = function () {
sound_mc.menuM_sound.start();
if (_root.menu_mc._currentframe == 1) {
_root.menu_mc.gotoAndStop(2);
var _local3 = ["prev_btn", "next_btn", "back_btn"];
var _local2 = 0;
while (_local2 < _local3.length) {
_root.menu_mc[_local3[_local2]].onRollOver = RollOver;
switch (_local2) {
case 0 :
_root.menu_mc[_local3[_local2]].onRelease = function () {
sound_mc.menuM_sound.start();
if (_root.menu_mc._currentframe > 2) {
_root.menu_mc.prevFrame();
}
};
break;
case 1 :
_root.menu_mc[_local3[_local2]].onRelease = function () {
sound_mc.menuM_sound.start();
if (_root.menu_mc._currentframe < _root.menu_mc._totalframes) {
_root.menu_mc.nextFrame();
}
};
break;
case 2 :
_root.menu_mc[_local3[_local2]].onRelease = function () {
sound_mc.menuM_sound.start();
_root.menu_mc.gotoAndStop(1);
Mouse.removeListener(mouseOverviewListener);
};
}
_local2++;
}
mouseOverviewListener = new Object();
mouseOverviewListener.onMouseWheel = function (delta) {
if (delta < 0) {
_root.menu_mc.overview.scroll++;
} else {
_root.menu_mc.overview.scroll--;
}
};
Mouse.addListener(mouseOverviewListener);
} else {
Mouse.removeListener(mouseOverviewListener);
_root.menu_mc.gotoAndStop(1);
}
};
_root.menu_mc.overview = "<p>Piloting the fighting plane, free the world from air invaders in the game \u201CAir Mission\u201D.</p><p>Your plane is equipped with fighting weapons and a bomber.</p><p>You are entrusted with a difficult mission- to eliminate all enemy raiders and land invaders.</p><p>The detachments of airplanes, helicopters, fighting airships and landing party force will attack you during the mission. Besides, avoid the attacks of the land patrol towers and rocket emplacements. A bomber will help to resist. It is possible to get weapons, ammunition, protection, life and scores periodically.</p><p>Good luck in a battle!</p>";
_root.sound_btn.onRelease = function () {
if (_root.sound_mc != undefined) {
_root.sound_mc.menuM_sound.start();
_root.soundmc_mc.gotoAndStop(2);
removeMovieClip(sound_mc);
} else {
var _local3 = ["bonusM", "bulletM", "explodeM", "humanM", "loosM", "menuM", "roketM", "winlevelM"];
_root.soundmc_mc.gotoAndStop(1);
_root.createEmptyMovieClip("sound_mc", 2000);
var _local2 = 0;
while (_local2 < _local3.length) {
sound_mc[_local3[_local2] + "_sound"] = new Sound();
sound_mc[_local3[_local2] + "_sound"].attachSound(_local3[_local2]);
_local2++;
}
_root.sound_mc.hero_shotM_sound.setVolume(100);
_root.sound_mc.menuM_sound.start();
}
};
_root.menu_mc.share_btn.onRelease = function () {
sound_mc.menuM_sound.start();
gotoAndStop ("download");
};
_root.menu_mc.subscribe_btn.onRelease = URLonRelease;
_root.menu_mc.custom_btn.onRelease = URLonRelease;
_root.menu_mc.download_btn.onRelease = URLonRelease;
_root.menu_mc.moregames_btn.onRelease = URLonRelease;
_root.menu_mc.addgames_btn.onRelease = URLonRelease;
_root.myplaycity_btn.onRelease = URLonRelease;
_root.menu_mc.subscribe_btn.param_url = "http://www.myplaycity.com/subscribe";
_root.menu_mc.custom_btn.param_url = "http://www.myplaycity.com/custom_games/online";
_root.menu_mc.download_btn.param_url = "http://www.myplaycity.com/brave_plane";
_root.menu_mc.moregames_btn.param_url = "http://www.myplaycity.com/online_games";
_root.menu_mc.addgames_btn.param_url = "http://www.myplaycity.com/free_content";
_root.menu_mc.myplaycity_btn.param_url = "http://www.myplaycity.com";
var arraybtn = ["share_btn", "custom_btn", "subscribe_btn", "download_btn", "moregames_btn", "addgames_btn"];
var i = 0;
while (i < arraybtn.length) {
_root.menu_mc[arraybtn[i]].onRollOver = RollOver;
i++;
}
_root.myplaycity_btn.onRollOver = RollOver;
_root.sound_btn.onRollOver = RollOver;
arraybtn = ["start_btn", "help_btn"];
var i = 0;
while (i < arraybtn.length) {
_root.menu_mc[arraybtn[i]].onRollOver = RollOver;
i++;
}
delete arraybtn;
clearloadvar();
if (_root.sound_mc == undefined) {
_root.sound_btn.onRelease();
}
Frame 30
function restartPanel() {
panelmc_mc.gotoAndStop(1);
panelmc_mc.bonusicon_mc.gotoAndStop(1);
panelmc_mc.shieldtxt = "";
panelmc_mc.bonustxt = "";
}
function scoref() {
panelmc_mc.scoretxt = String(score);
}
function createbg(num) {
var _local4 = bgmc_mc["bg" + num].getNextHighestDepth();
var _local3 = bgmc_mc["bg" + num].attachMovie("bg" + num, (("bg" + num) + "_") + _local4, _local4);
_local3.posledovatel = false;
_local3.num = num;
_local3.onEnterFrame = _root.movebg;
}
function movebg() {
if (!pauseflag) {
switch (this.num) {
case 1 :
this._x = this._x - 4;
break;
case 2 :
this._x = this._x - 3;
break;
case 3 :
this._x = this._x - 2;
}
if ((!this.posledovatel) && (this._x < Stage.width)) {
this.posledovatel = true;
var _local4 = bgmc_mc["bg" + this.num].getNextHighestDepth();
var _local3 = bgmc_mc["bg" + this.num].attachMovie("bg" + this.num, (("bg" + this.num) + "_") + _local4, _local4);
_local3.posledovatel = false;
_local3.num = this.num;
_local3._y = this._y;
_local3._x = this._x + this._width;
_local3.onEnterFrame = _root.movebg;
}
if ((this._x + this._width) < 0) {
removeMovieClip(this);
}
}
}
function remove() {
enemy1_mc.removeMovieClip();
enemy_mc.removeMovieClip();
shotenemy_mc.removeMovieClip();
shothero_mc.removeMovieClip();
bonus_mc.removeMovieClip();
explosive_mc.removeMovieClip();
}
function nextlevelfunction() {
pausefunction();
remove();
Mouse.removeListener(mouseListener);
Key.removeListener(keyListener);
restartPanel();
delete panelmc_mc.onEnterFrame;
_root.gotoAndStop("wait");
sound_mc.winlevelM_sound.start();
}
function escapefunction() {
player_mc.removeMovieClip();
bg_mc.removeMovieClip();
panel_mc.removeMovieClip();
soundmc_mc.removeMovieClip();
remove();
Mouse.removeListener(mouseListener);
Key.removeListener(keyListener);
_root.gotoAndStop("menu");
}
function pausefunction() {
if (!pauseflag) {
delete pl_mc.onEnterFrame;
panelmc_mc.labeltxt = "PAUSE";
movestop();
} else {
pl_mc.onEnterFrame = playerEnterFrame;
panelmc_mc.labeltxt = "";
moveplay();
}
pauseflag = !pauseflag;
}
function moveplay() {
_root.pl_mc.play();
}
function movestop() {
_root.pl_mc.stop();
}
function playerEnterFrame() {
if (pl_mc.drakmove) {
pl_mc.xspeed = pl_mc._xmouse / 4;
pl_mc._x = pl_mc._x + pl_mc.xspeed;
if (((pl_mc._y + (pl_mc._ymouse / 2)) < 385) && ((pl_mc._y + (pl_mc._ymouse / 2)) > 60)) {
if (pl_mc._ymouse < 0) {
pl_mc.plane.gotoAndStop(2);
} else {
pl_mc.plane.gotoAndStop(3);
}
pl_mc.yspeed = pl_mc._ymouse / 2;
pl_mc._y = pl_mc._y + pl_mc.yspeed;
} else {
if (pl_mc._ymouse < 0) {
pl_mc.plane.gotoAndStop(2);
pl_mc.yspeed = (-(pl_mc._y - 60)) / 2;
} else {
pl_mc.plane.gotoAndStop(3);
pl_mc.yspeed = (385 - pl_mc._y) / 2;
}
pl_mc._y = pl_mc._y + pl_mc.yspeed;
}
if ((Math.abs(_root._xmouse - pl_mc._x) < 5) && (Math.abs(_root._ymouse - pl_mc._y) < 5)) {
pl_mc.plane.gotoAndStop(1);
pl_mc.drakmove = false;
}
}
if (pl_mc.shield._visible != 1) {
for (var _local11 in shotenemy_mc) {
if (this.hit_mc.hitTest(shotenemy_mc[_local11])) {
this.energy = this.energy - shotenemy_mc[_local11].power;
var _local3 = explosion_mc.getNextHighestDepth();
var _local5 = {_x:(this._x + (Math.random() * 60)) - 30, _y:this._y, _xscale:20, _yscale:20, speed:pl_mc.speed};
var _local4 = explosion_mc.attachMovie("explosion", ("explosion" + _local3) + "_mc", _local3, _local5);
_local4.onEnterFrame = _root.explosionplayerenemy;
removeMovieClip(shotenemy_mc[_local11]);
}
}
if (pl_mc.energy <= 50) {
pl_mc.smoke._visible = 1;
}
if (pl_mc.energy <= 0) {
this.onEnterFrame = _root.killplayer;
}
}
}
function killplayer() {
sound_mc.explodeM_sound.start();
_root.kill = true;
this._visible = false;
lives = lives - 1;
panelmc_mc.livestxt = lives;
var _local4 = explosion_mc.getNextHighestDepth();
var _local3 = explosion_mc.attachMovie("explosion", ("explosion" + _local4) + "_mc", _local4);
_local3.onEnterFrame = _root.explosionplayer;
_local3._x = pl_mc._x + 20;
_local3._y = pl_mc._y;
this.sortweapon = 1;
this.bombweapon = false;
pl_mc.smoke._visible = 0;
this._x = 100;
this._y = 100;
this.firetimer = getTimer();
pl_mc.fire = false;
delete shothero_mc.onEnterFrame;
Mouse.removeListener(mouseListener);
Key.removeListener(keyListener);
delete this.onEnterFrame;
}
function explosionplayer() {
if (!pauseflag) {
this.play();
this._x = this._x - 4;
if (this._currentframe == this._totalframes) {
_root.kill = false;
removeMovieClip(this);
}
if (!_root.kill) {
if (lives != 0) {
pl_mc.energy = 100;
pl_mc._visible = true;
pl_mc.onEnterFrame = _root.playerEnterFrame;
Mouse.addListener(mouseListener);
Key.addListener(keyListener);
with (panelmc_mc) {
timebegin = timebegin + (getTimer() - timekillpausebegin);
}
} else {
pausefunction();
sound_mc.loosM_sound.start();
panelmc_mc.labeltxt = "GAME OVER";
_root.gotoAndStop("dead");
}
}
} else {
this.stop();
}
}
function explosionplayerenemy() {
if (!pauseflag) {
this.play();
this._x = this._x + pl_mc.xspeed;
this._y = this._y + pl_mc.yspeed;
if (this._currentframe == this._totalframes) {
removeMovieClip(this);
}
} else {
this.stop();
}
}
function shotHeroEnterFrame() {
if (!pauseflag) {
if (pl_mc.fire) {
var _local6 = 200;
var _local4 = 50;
switch (pl_mc.sortweapon) {
case 1 :
break;
case 2 :
_local6 = 500;
_local4 = 30;
break;
case 3 :
_local6 = 500;
_local4 = 30;
break;
case 4 :
_local6 = 350;
_local4 = 40;
break;
case 5 :
_local6 = 750;
_local4 = 30;
}
if ((getTimer() - pl_mc.firetimer) > _local6) {
pl_mc.firetimer = getTimer();
switch (pl_mc.sortweapon) {
case 1 :
sound_mc.bulletM_sound.start();
var _local5 = shothero_mc.getNextHighestDepth();
var _local3 = shothero_mc.attachMovie("weapon", ("weapon" + _local5) + "_mc", _local5, {m_x:_local4, m_y:0, _x:pl_mc._x + (pl_mc.hit_mc._width / 2), _y:pl_mc._y, power:1});
_local3.gotoAndStop(pl_mc.sortweapon);
_local3.onEnterFrame = _root.flypatron;
break;
case 2 :
sound_mc.bulletM_sound.start();
var _local2 = 0;
while (_local2 < 2) {
_local5 = shothero_mc.getNextHighestDepth();
_local3 = shothero_mc.attachMovie("weapon", ("weapon" + _local5) + "_mc", _local5, {m_x:_local4, m_y:0, _x:pl_mc._x + (pl_mc.hit_mc._width / 2), _y:(pl_mc._y - 12) + (_local2 * 24), power:2});
_local3.gotoAndStop(pl_mc.sortweapon);
_local3.onEnterFrame = _root.flypatron;
_local2++;
}
break;
case 3 :
sound_mc.bulletM_sound.start();
_local2 = 0;
while (_local2 < 3) {
_local5 = shothero_mc.getNextHighestDepth();
_local3 = shothero_mc.attachMovie("weapon", ("weapon" + _local5) + "_mc", _local5, {m_x:(_local4 * 3) / 4, m_y:(-_local4) + (_local2 * _local4), _x:pl_mc._x + (pl_mc.hit_mc._width / 2), _y:pl_mc._y, power:2});
_local3.gotoAndStop(pl_mc.sortweapon);
_local3.onEnterFrame = _root.flypatron;
_local2++;
}
break;
case 4 :
sound_mc.roketM_sound.start();
_local5 = shothero_mc.getNextHighestDepth();
_local3 = shothero_mc.attachMovie("weapon", ("weapon" + _local5) + "_mc", _local5, {m_x:_local4, m_y:0, _x:pl_mc._x + (pl_mc.hit_mc._width / 2), _y:pl_mc._y, power:4});
_local3.gotoAndStop(pl_mc.sortweapon);
_local3.onEnterFrame = _root.flypatron;
break;
case 5 :
sound_mc.roketM_sound.start();
_local2 = 0;
for(;;){
if (_local2 >= 2) {
break;
}
_local5 = shothero_mc.getNextHighestDepth();
_local3 = shothero_mc.attachMovie("weapon", ("weapon" + _local5) + "_mc", _local5, {m_x:_local4, m_y:0, _x:pl_mc._x + (pl_mc.hit_mc._width / 2), _y:(pl_mc._y - 12) + (_local2 * 24), power:5});
_local3.gotoAndStop(pl_mc.sortweapon);
_local3.onEnterFrame = _root.flypatron;
_local2++;
};
}
}
}
if (pl_mc.bombweapon) {
var _local6 = 900;
var _local4 = 20;
if (pl_mc.firebomb && ((getTimer() - pl_mc.firebombtimer) > _local6)) {
sound_mc.roketM_sound.start();
pl_mc.firebombtimer = getTimer();
var _local5 = shothero_mc.getNextHighestDepth();
var _local3 = shothero_mc.attachMovie("weapon", ("weapon" + _local5) + "_mc", _local5, {m_x:_local4 / 5, m_y:_local4, _x:pl_mc._x, _y:pl_mc._y + (pl_mc._height / 2), power:10});
_local3.gotoAndStop(6);
_local3.onEnterFrame = _root.flypatron;
}
}
}
}
function flypatron() {
if (!pauseflag) {
this._x = this._x + this.m_x;
this._y = this._y + this.m_y;
if (((this._x > Stage.width) || (this._y < 0)) || ((this._y > Stage.height) && (this._currentframe != 6))) {
removeMovieClip(this);
}
if ((this._currentframe == 6) && (this._y > 450)) {
var _local3 = explosion_mc.getNextHighestDepth();
var _local4 = explosion_mc.attachMovie("rocetexplosion", ("rocetexplosion" + _local3) + "_mc", _local3, {_x:this._x, _y:450, _xscale:70, _yscale:70});
_local4.onEnterFrame = _root.explosionbomb;
sound_mc.explodeM_sound.start();
removeMovieClip(this);
}
}
}
function explosionbomb() {
if (!pauseflag) {
this.play();
this._x = this._x - 4;
if (this._currentframe == this._totalframes) {
removeMovieClip(this);
}
} else {
this.stop();
}
}
function createenemy() {
switch (numlevel) {
case 1 :
case 2 :
var _local2 = Math.ceil(Math.random() * (numlevel + 2));
if (_local2 > (numlevel + 1)) {
_local2 = _local2 + (7 - numlevel);
} else if (_local2 > numlevel) {
_local2 = _local2 + (5 - numlevel);
}
break;
case 3 :
case 4 :
_local2 = Math.ceil(Math.random() * (numlevel + 3));
if (_local2 > (numlevel + 2)) {
_local2 = _local2 + (7 - numlevel);
} else if (_local2 > numlevel) {
_local2 = _local2 + (5 - numlevel);
}
break;
default :
_local2 = Math.ceil(Math.random() * 9);
if (_local2 <= 6) {
break;
}
_local2 = _local2 + 2;
}
trace("enemy " + _local2);
var _local3 = enemy_mc.getNextHighestDepth();
var _local1 = enemy_mc.attachMovie("enemy", "enemy_" + String(_local3), _local3);
enemy_mc.enemycount++;
_local1.gotoAndStop(_local2);
_local1.hit_mc._visible = 0;
_local1.hit1_mc._visible = 0;
_local1._x = ((Stage.width + ((Math.random() * 50) * enemy_mc.enemycount)) + (50 * enemy_mc.enemycount)) + _local1._width;
switch (_local2) {
case 1 :
case 2 :
case 3 :
case 5 :
_local1._y = (27 + (_local1._height / 2)) + (Math.random() * 320);
break;
case 4 :
case 6 :
_local1._y = (27 + (_local1._height / 2)) + (Math.random() * 220);
break;
case 9 :
case 10 :
case 11 :
_local1._y = 455;
break;
default :
_local1._y = (27 + (_local1._height / 2)) + (Math.random() * 220);
}
switch (_local2) {
case 1 :
_local1.energy = 10;
break;
case 2 :
_local1.energy = 20;
break;
case 3 :
_local1.energy = 30;
break;
case 4 :
_local1.energy = 40;
break;
case 5 :
_local1.energy = 50;
break;
case 6 :
_local1.energy = 100;
break;
case 9 :
_local1.energy = 1;
break;
case 10 :
_local1.energy = 7;
break;
case 11 :
_local1.energy = 10;
}
switch (_local2) {
case 1 :
case 2 :
case 3 :
case 5 :
_local1.speed = 5 + (Math.random() * 3);
break;
case 4 :
case 6 :
_local1.speed = 5;
break;
case 9 :
case 10 :
case 11 :
_local1.speed = 4;
}
_local1.kill = false;
_local1.timefireenemy = getTimer();
_local1.onEnterFrame = moveenemy;
}
function createenemy78(mc) {
var _local2 = Math.ceil(Math.random() * 2);
if (numlevel < 3) {
_local2 = 1;
}
trace("enemy " + _local2);
var _local3 = enemy1_mc.getNextHighestDepth();
var _local1 = enemy1_mc.attachMovie("enemy", "enemy_" + String(_local3), _local3);
_local1.gotoAndStop(_local2 + 6);
_local1.hit_mc._visible = 0;
_local1._x = mc._x;
_local1._y = mc._y;
switch (_local2) {
case 1 :
_local1.energy = 1;
break;
case 2 :
_local1.energy = 2;
}
_local1.xspeed = mc.speed;
_local1.yspeed = 3;
_local1.kill = false;
_local1.timefireenemy = getTimer();
_local1.onEnterFrame = moveenemy1278;
}
function createenemy12(mc) {
var _local2 = 12;
trace("enemy " + _local2);
var _local3 = enemy1_mc.getNextHighestDepth();
var _local1 = enemy1_mc.attachMovie("enemy", "enemy_" + String(_local3), _local3);
_local1.gotoAndStop(_local2);
_local1.hit_mc._visible = 0;
_local1._x = mc._x;
_local1._y = mc._y;
_local1.energy = 5;
_local1.speed = 10;
_local1.kill = false;
_local1.timefireenemy = getTimer();
_local1.onEnterFrame = moveenemy1278;
}
function moveenemy1278() {
if (!pauseflag) {
if ((this._x < (-this._width)) || (this._y > (Stage.width + this._height))) {
this.onEnterFrame = this._parent._parent.killenemy1278;
}
switch (this._currentframe) {
case 7 :
case 8 :
this._x = this._x - (this.xspeed - 1);
this._y = this._y + this.yspeed;
break;
case 12 :
this._x = this._x - this.speed;
if (pl_mc._y > this._y) {
this._y = this._y + 5;
} else {
this._y = this._y - 5;
}
}
if ((this.hit_mc.hitTest(pl_mc.hit_mc) || (this.hit1_mc.hitTest(pl_mc.hit_mc))) || ((pl_mc.shield._visible != 0) && (this.hit_mc.hitTest(pl_mc.shield) || (this.hit1_mc.hitTest(pl_mc.shield))))) {
this.kill = true;
switch (this._currentframe) {
case 7 :
pl_mc.energy = pl_mc.energy - 1;
break;
case 8 :
pl_mc.energy = pl_mc.energy - 2;
break;
case 12 :
pl_mc.energy = pl_mc.energy - 5;
}
}
for (var _local8 in shothero_mc) {
if (this.hit_mc.hitTest(shothero_mc[_local8]) || (this.hit1_mc.hitTest(shothero_mc[_local8]))) {
this.energy = this.energy - shothero_mc[_local8].power;
var _local3 = explosion_mc.getNextHighestDepth();
var _local5 = {_x:this._x, _y:this._y, _xscale:20, _yscale:20, speed:this.speed};
var _local4 = explosion_mc.attachMovie("explosion", ("explosion" + _local3) + "_mc", _local3, _local5);
_local4.onEnterFrame = _root.explosionenemy;
removeMovieClip(shothero_mc[_local8]);
}
}
if ((this.energy <= 0) || (this.kill)) {
_root.killcount--;
trace(_root.killcount);
if (_root.killcount < 1) {
_root.nextlevelfunction();
}
this.onEnterFrame = this._parent._parent.killenemy1278;
switch (this._currentframe) {
case 7 :
sound_mc.humanM_sound.start();
score = score + 1;
break;
case 8 :
sound_mc.humanM_sound.start();
score = score + 2;
break;
case 12 :
sound_mc.explodeM_sound.start();
score = score + 5;
}
scoref();
}
if ((this._x < Stage.width) && (this._currentframe != 12)) {
this._parent._parent.fireenemy(this);
}
}
}
function moveenemy() {
if (!pauseflag) {
if ((this._x < (-this._width)) || (this._y > (Stage.height + this._height))) {
this.onEnterFrame = this._parent._parent.killenemy;
}
this._x = this._x - this.speed;
switch (this._currentframe) {
case 9 :
var _local8 = (Math.atan2((-this._x) + pl_mc._x, this._y - pl_mc._y) * 180) / Math.PI;
if (_local8 > 0) {
this._xscale = -100;
this.thing._rotation = -_local8;
} else {
this._xscale = 100;
this.thing._rotation = _local8;
}
this.rot = _local8;
break;
case 10 :
case 11 :
_local8 = (Math.atan2((-this._x) + pl_mc._x, this._y - pl_mc._y) * 180) / Math.PI;
this.thing._rotation = _local8;
this.rot = _local8;
}
if ((this.hit_mc.hitTest(pl_mc.hit_mc) || (this.hit1_mc.hitTest(pl_mc.hit_mc))) || ((pl_mc.shield._visible != 0) && (this.hit_mc.hitTest(pl_mc.shield) || (this.hit1_mc.hitTest(pl_mc.shield))))) {
this.kill = true;
switch (this._currentframe) {
case 1 :
pl_mc.energy = pl_mc.energy - 10;
break;
case 2 :
pl_mc.energy = pl_mc.energy - 20;
break;
case 3 :
pl_mc.energy = pl_mc.energy - 30;
break;
case 4 :
pl_mc.energy = pl_mc.energy - 40;
break;
case 5 :
pl_mc.energy = pl_mc.energy - 50;
break;
case 6 :
pl_mc.energy = pl_mc.energy - 100;
break;
case 9 :
pl_mc.energy = pl_mc.energy - 1;
break;
case 10 :
pl_mc.energy = pl_mc.energy - 7;
break;
case 11 :
pl_mc.energy = pl_mc.energy - 10;
}
}
for (var _local7 in shothero_mc) {
if (this.hit_mc.hitTest(shothero_mc[_local7]) || (this.hit1_mc.hitTest(shothero_mc[_local7]))) {
this.energy = this.energy - shothero_mc[_local7].power;
var _local3 = explosion_mc.getNextHighestDepth();
if (((this._currentframe != 9) && (this._currentframe != 10)) && (this._currentframe != 11)) {
var _local5 = {_x:(this._x + (Math.random() * 60)) - 30, _y:this._y, _xscale:20, _yscale:20, speed:this.speed};
} else {
var _local5 = {_x:this._x, _y:this._y - (this._height / 2), _xscale:20, _yscale:20, speed:this.speed};
}
var _local4 = explosion_mc.attachMovie("explosion", ("explosion" + _local3) + "_mc", _local3, _local5);
_local4.onEnterFrame = _root.explosionenemy;
removeMovieClip(shothero_mc[_local7]);
}
}
if ((this.energy <= 0) || (this.kill)) {
sound_mc.explodeM_sound.start();
_root.killcount--;
trace(_root.killcount);
if (_root.killcount < 1) {
_root.nextlevelfunction();
}
if (this._currentframe != 9) {
sound_mc.explodeM_sound.start();
} else {
sound_mc.humanM_sound.start();
}
this.onEnterFrame = this._parent._parent.killenemy;
switch (this._currentframe) {
case 1 :
score = score + 10;
break;
case 2 :
score = score + 20;
break;
case 3 :
score = score + 30;
break;
case 4 :
score = score + 40;
break;
case 5 :
score = score + 50;
break;
case 6 :
score = score + 100;
break;
case 9 :
score = score + 1;
break;
case 10 :
score = score + 7;
break;
case 11 :
score = score + 10;
}
scoref();
}
if ((this._x < Stage.width) && (this._currentframe != 12)) {
this._parent._parent.fireenemy(this);
}
}
}
function killenemy() {
if (this._x > 0) {
var t = explosion_mc.getNextHighestDepth();
if (((this._currentframe != 9) && (this._currentframe != 10)) && (this._currentframe != 11)) {
var obj = {_x:this._x, _y:this._y, _xscale:50, _yscale:50, speed:this.speed};
} else {
var obj = {_x:this._x, _y:this._y - (this._height / 2), _xscale:50, _yscale:50, speed:this.speed};
}
var exp_mc = explosion_mc.attachMovie("explosion", ("explosion" + t) + "_mc", t, obj);
exp_mc.onEnterFrame = _root.explosionenemy;
}
with (this) {
_x = (-_width) * 2;
if (((getTimer() - _parent.timecreateenemy) > 500) && (_parent.enemycount < _parent.enemymax)) {
_parent.timecreateenemy = getTimer();
_parent._parent.createenemy();
}
var count = ((numlevel < 2) ? 2 : 3);
if (_parent.enemycount > count) {
_parent.enemycount--;
removeMovieClip(this);
}
}
}
function killenemy1278() {
if (this._x > 0) {
var t = explosion_mc.getNextHighestDepth();
var obj = {_x:this._x, _y:this._y, _xscale:50, _yscale:50, speed:this.speed};
var exp_mc = explosion_mc.attachMovie("explosion", ("explosion" + t) + "_mc", t, obj);
exp_mc.onEnterFrame = _root.explosionenemy;
}
with (this) {
_x = (-_width) * 2;
removeMovieClip(this);
}
}
function fireenemy(mc) {
var _local5 = mc._currentframe;
var _local3 = 500;
var _local4 = 0.05;
if (numlevel < 31) {
switch (_local5) {
case 1 :
case 2 :
case 3 :
_local3 = _local3 - (numlevel * 10);
_local4 = _local4 + (numlevel * 0.005);
break;
case 5 :
_local3 = _local3 - (numlevel * 5);
_local4 = _local4 + (numlevel * 0.005);
break;
case 6 :
case 4 :
_local3 = 1000;
_local4 = 0.05 + (numlevel * 0.005);
break;
case 9 :
break;
case 10 :
_local3 = 900 - (numlevel * 10);
_local4 = 0.1 + (numlevel * 0.005);
break;
case 11 :
_local3 = 1000 - (numlevel * 10);
_local4 = 0.1 + (numlevel * 0.005);
}
} else {
_local3 = ((numlevel < 100) ? (300 - (numlevel * 1)) : 100);
_local4 = ((numlevel < 100) ? (0.2 + (numlevel * 0.002)) : 0.5);
}
if ((Math.random() < _local4) && ((getTimer() - mc.timefireenemy) > _local3)) {
mc.timefireenemy = getTimer();
if ((_local5 != 4) && (_local5 != 6)) {
var _local6 = shotenemy_mc.getNextHighestDepth();
var _local1 = shotenemy_mc.attachMovie("weapon", ("weapon" + _local6) + "_mc", _local6);
}
switch (_local5) {
case 1 :
sound_mc.bulletM_sound.start();
_local1._x = mc._x - 10;
_local1._y = mc._y;
_local1.power = 1;
_local1.gotoAndStop(1);
break;
case 2 :
sound_mc.bulletM_sound.start();
_local1._x = mc._x - 10;
_local1._y = mc._y;
_local1.power = 2;
_local1.gotoAndStop(2);
break;
case 3 :
sound_mc.roketM_sound.start();
_local1._x = mc._x;
_local1._y = mc._y + 10;
_local1.power = 5;
_local1.gotoAndStop(8);
break;
case 5 :
sound_mc.roketM_sound.start();
_local1._x = mc._x - 30;
_local1._y = mc._y + 15;
_local1.power = 5;
_local1.gotoAndStop(8);
break;
case 9 :
sound_mc.bulletM_sound.start();
_local1._x = mc._x;
_local1._y = mc._y - 15;
_local1.power = 1;
_local1.rot = mc.rot;
_local1.gotoAndStop(1);
break;
case 10 :
sound_mc.bulletM_sound.start();
_local1._x = mc._x - 7;
_local1._y = mc._y - 10;
_local1.power = 5;
_local1.rot = mc.rot;
_local1.gotoAndStop(9);
break;
case 11 :
sound_mc.roketM_sound.start();
_local1._x = mc._x + 6;
_local1._y = mc._y - 45;
_local1.power = 10;
_local1.rot = mc.rot;
_local1.gotoAndStop(10);
break;
case 4 :
createenemy12(mc);
break;
case 6 :
createenemy78(mc);
break;
case 7 :
sound_mc.bulletM_sound.start();
_local1._x = mc._x;
_local1._y = mc._y + 11;
_local1.power = 1;
_local1.gotoAndStop(1);
break;
case 8 :
sound_mc.roketM_sound.start();
_local1._x = mc._x;
_local1._y = mc._y + 2;
_local1.power = 5;
_local1.gotoAndStop(7);
break;
}
_local1.mfr = _local5;
_local1.onEnterFrame = flyenemyPatron;
}
}
function flyenemyPatron() {
if (!pauseflag) {
switch (this.mfr) {
case 1 :
case 2 :
this._x = this._x - 20;
break;
case 3 :
case 5 :
this._x = this._x - 30;
break;
case 7 :
this._x = this._x - 30;
break;
case 8 :
this._x = this._x - 20;
break;
case 9 :
case 10 :
this._x = this._x + (Math.sin((this.rot * Math.PI) / 180) * 20);
this._y = this._y - (Math.cos((this.rot * Math.PI) / 180) * 20);
break;
case 11 :
this._x = this._x + (Math.sin((this.rot * Math.PI) / 180) * 30);
this._y = this._y - (Math.cos((this.rot * Math.PI) / 180) * 30);
this._rotation = this.rot;
}
if ((((this._x < (-this._width)) || (this._y < (-this._height))) || (this._x > Stage.width)) || (this._y > Stage.height)) {
removeMovieClip(this);
}
}
}
function explosionenemy() {
if (!pauseflag) {
this.play();
this._x = this._x - this.speed;
if (this._currentframe == this._totalframes) {
removeMovieClip(this);
}
} else {
this.stop();
}
}
function createbonus() {
if (numlevel < 6) {
var _local2 = Math.ceil(Math.random() * (numlevel + 4));
if (_local2 > (numlevel - 1)) {
_local2 = _local2 + 4;
}
} else {
var _local2 = Math.ceil(Math.random() * 9);
}
var _local3 = bonus_mc.getNextHighestDepth();
var _local1 = bonus_mc.attachMovie("bonus", "bonus" + String(_local3), _local3);
trace("bonus " + _local2);
bonus_mc.bonuscount++;
_local1.gotoAndStop(_local2);
_local1._x = ((Stage.width + ((Math.random() * Stage.width) * bonus_mc.bonuscount)) + (100 * bonus_mc.bonuscount)) + _local1._width;
_local1._y = -100 - (Math.random() * 100);
_local1.onEnterFrame = movebonus;
}
function movebonus() {
if (!pauseflag) {
this._x = this._x - 3;
if (this._x < (-this._width)) {
this.onEnterFrame = this._parent._parent.gatherbonus;
}
if (this._x < 500) {
this._y = this._y + 3;
}
if (this.hit.hitTest(pl_mc._x, pl_mc._y, false)) {
sound_mc.bonusM_sound.start();
this.onEnterFrame = this._parent._parent.gatherbonus;
switch (this._currentframe) {
case 1 :
pl_mc.sortweapon = 2;
break;
case 2 :
pl_mc.sortweapon = 3;
break;
case 3 :
pl_mc.sortweapon = 4;
break;
case 4 :
pl_mc.sortweapon = 5;
break;
case 5 :
pl_mc.bombweapon = true;
break;
case 6 :
if (panelmc_mc._currentframe == 1) {
panelmc_mc.gotoAndStop(4);
} else {
panelmc_mc.gotoAndStop(3);
}
panelmc_mc.bonustime[this._currentframe] = 180;
panelmc_mc.shieldtxt = panelmc_mc.bonustime[6];
pl_mc.shield._visible = 1;
break;
case 7 :
for (var _local2 in enemy_mc) {
if (enemy_mc[_local2]._x < Stage.width) {
enemy_mc[_local2].kill = true;
}
}
for (var _local2 in enemy1_mc) {
if (enemy1_mc[_local2]._x < Stage.width) {
enemy1_mc[_local2].kill = true;
}
}
panelmc_mc.bonusicon_mc.gotoAndStop(2);
break;
case 8 :
lives = lives + 1;
panelmc_mc.livestxt = lives;
panelmc_mc.bonusicon_mc.gotoAndStop(3);
break;
case 9 :
score = score + 100;
scoref();
panelmc_mc.bonusicon_mc.gotoAndStop(4);
}
switch (this._currentframe) {
case 1 :
case 2 :
case 3 :
case 4 :
panelmc_mc.bonustime[1] = 180;
panelmc_mc.bonustxt = panelmc_mc.bonustime[1];
if (panelmc_mc._currentframe == 1) {
panelmc_mc.gotoAndStop(2);
} else {
panelmc_mc.gotoAndStop(3);
}
break;
case 5 :
panelmc_mc.bonustime[5] = 180;
panelmc_mc.bonustxt = panelmc_mc.bonustime[5];
if (panelmc_mc._currentframe == 1) {
panelmc_mc.gotoAndStop(2);
} else {
panelmc_mc.gotoAndStop(3);
}
break;
case 7 :
case 8 :
case 9 :
panelmc_mc.bonustime[7] = 60;
}
panelmc_mc.onEnterFrame = panelEnterFrame;
}
}
}
function gatherbonus() {
with (this) {
_x = (-_width) * 2;
if (((getTimer() - _parent.timecreatebonus) > 5000) && (_parent.bonuscount <= _parent.bonusmax)) {
_parent.timecreatebonus = getTimer();
_parent._parent.createbonus();
}
var count = ((numlevel < 3) ? 2 : 3);
if (_parent.bonuscount > count) {
_parent.bonuscount--;
removeMovieClip(this);
}
}
}
function panelEnterFrame() {
if (!pauseflag) {
if (panelmc_mc.bonustime[1] > 0) {
panelmc_mc.bonustime[1]--;
}
if (panelmc_mc.bonustime[5] > 0) {
panelmc_mc.bonustime[5]--;
}
if (panelmc_mc.bonustime[6] > 0) {
panelmc_mc.bonustime[6]--;
}
if (panelmc_mc.bonustime[7] > 0) {
panelmc_mc.bonustime[7]--;
}
if (panelmc_mc.bonusicon_mc._currentframe != 1) {
if (panelmc_mc.bonustime[7] == 0) {
panelmc_mc.bonusicon_mc.gotoAndStop(1);
}
}
if (panelmc_mc.shieldtxt != "") {
if (panelmc_mc.bonustime[6] == 0) {
panelmc_mc.shieldtxt = "";
if (panelmc_mc._currentframe == 4) {
panelmc_mc.gotoAndStop(1);
} else {
panelmc_mc.gotoAndStop(2);
}
pl_mc.shield._visible = 0;
} else {
panelmc_mc.shieldtxt = Math.floor(panelmc_mc.bonustime[6] / 12);
}
}
var _local2 = 1;
if (panelmc_mc.bonustime[1] < panelmc_mc.bonustime[5]) {
_local2 = 5;
}
if (panelmc_mc.bonustxt != "") {
if (panelmc_mc.bonustime[5] == 0) {
pl_mc.bombweapon = false;
}
if (panelmc_mc.bonustime[_local2] == 0) {
panelmc_mc.bonustxt = "";
if (panelmc_mc._currentframe == 2) {
panelmc_mc.gotoAndStop(1);
} else {
panelmc_mc.gotoAndStop(4);
}
pl_mc.sortweapon = 1;
} else {
panelmc_mc.bonustxt = Math.floor(panelmc_mc.bonustime[_local2] / 12);
}
}
if (((panelmc_mc.bonustime[7] == 0) && (panelmc_mc.bonustime[6] == 0)) && (panelmc_mc.bonustime[_local2] == 0)) {
delete this.onEnterFrame;
}
}
}
stop();
soundmc_mc._x = 610;
soundmc_mc._y = 50;
_root.createEmptyMovieClip("enemy1_mc", 190);
_root.createEmptyMovieClip("enemy_mc", 200);
_root.createEmptyMovieClip("shotenemy_mc", 180);
_root.createEmptyMovieClip("shothero_mc", 400);
_root.createEmptyMovieClip("bonus_mc", 150);
_root.createEmptyMovieClip("explosion_mc", 700);
if (numlevel == 0) {
score = 0;
lives = 3;
_root.createEmptyMovieClip("player_mc", 500);
var pl_mc = player_mc.attachMovie("hero", "hero_mc", 1);
pl_mc.hit_mc._visible = 0;
var panelmc_mc = _root.attachMovie("panel", "panel_mc", 1000);
panelmc_mc.livestxt = lives;
restartPanel();
var bgmc_mc = _root.createEmptyMovieClip("bg_mc", 100);
bgmc_mc._y = 480;
bgmc_mc.createEmptyMovieClip("bg1", 3);
bgmc_mc.createEmptyMovieClip("bg2", 2);
bgmc_mc.createEmptyMovieClip("bg3", 1);
createbg(1);
createbg(2);
createbg(3);
}
pl_mc.plane.gotoAndStop(1);
pl_mc.energy = 100;
pl_mc.shield._visible = 0;
pl_mc.smoke._visible = 0;
pl_mc.sortweapon = 1;
pl_mc.bombweapon = false;
pl_mc.drakmove = true;
pl_mc._x = 100;
pl_mc._y = 100;
pl_mc.firetimer = getTimer();
pl_mc.firebombtimer = getTimer();
_root.kill = false;
pauseflag = true;
movestop();
numlevel++;
killcount = numlevel * 10;
panelmc_mc.labeltxt = ("LEVEL " + String(numlevel)) + "";
panelmc_mc.leveltxt = String(numlevel);
scoref();
_root.createEmptyMovieClip("timewait_mc", 1);
timewait_mc.createtime = getTimer();
timewait_mc.onEnterFrame = function () {
if ((getTimer() - this.createtime) > 2000) {
_root.play();
removeMovieClip(timewait_mc);
}
};
keyflag = false;
var keyListener = new Object();
keyListener.onKeyDown = function () {
if ((!keyflag) && (!_root.kill)) {
keyflag = true;
if ((Key.getCode() == 32) || (Key.getCode() == 80)) {
pausefunction();
}
if (Key.getCode() == 83) {
_root.sound_btn.onRelease();
}
if (((Key.getCode() == 27) || (Key.getCode() == 81)) || (Key.getCode() == 192)) {
lives = 1;
pl_mc.energy = pl_mc.energy - 100;
}
if ((Key.getCode() == 13) || (Key.getCode() == 17)) {
pl_mc.firebomb = true;
shothero_mc.onEnterFrame = shotHeroEnterFrame;
}
}
};
keyListener.onKeyUp = function () {
keyflag = false;
if ((Key.getCode() == 13) || (Key.getCode() == 17)) {
pl_mc.firebomb = false;
if (!pl_mc.fire) {
delete shothero_mc.onEnterFrame;
}
}
};
var mouseListener = new Object();
mouseListener.onMouseMove = function () {
pl_mc.drakmove = true;
};
mouseListener.onMouseDown = function () {
pl_mc.fire = true;
shothero_mc.onEnterFrame = shotHeroEnterFrame;
};
mouseListener.onMouseUp = function () {
pl_mc.fire = false;
if (!pl_mc.firebomb) {
delete shothero_mc.onEnterFrame;
}
};
enemy_mc.enemycount = 0;
enemy_mc.enemymax = ((numlevel < 10) ? (numlevel + 2) : 15);
enemy_mc.timecreateenemy = getTimer();
var i = 0;
while (i < 2) {
createenemy();
i++;
}
bonus_mc.bonuscount = 0;
bonus_mc.bonusmax = ((numlevel < 4) ? (numlevel + 1) : 5);
bonus_mc.timecreatebonus = getTimer();
panelmc_mc.bonustime = [];
var k = 1;
while (k < 8) {
panelmc_mc.bonustime[k] = 0;
k++;
}
var k = 1;
while (k < 3) {
createbonus();
k++;
}
Frame 35
stop();
pausefunction();
Key.addListener(keyListener);
Mouse.addListener(mouseListener);
Frame 41
stop();
_root.createEmptyMovieClip("timewait_mc", 1);
timewait_mc.createtime = getTimer();
timewait_mc.onEnterFrame = function () {
if ((getTimer() - this.createtime) > 2000) {
_root.play();
removeMovieClip(timewait_mc);
}
};
Frame 47
panelmc_mc.labeltxt = "";
Frame 53
remove();
player_mc.removeMovieClip();
bg_mc.removeMovieClip();
panel_mc.removeMovieClip();
soundmc_mc.removeMovieClip();
var namecreater = "MyPlayCity.com";
_root.share_mc.name_txt.text = namecreater;
LoadVars.prototype.clear = function () {
for (element in this) {
if (typeof(this[element]) != "function") {
delete this[element];
}
}
};
setStatus = function (statusText) {
_root.share_mc.status_txt.text = statusText;
};
getStatus = function () {
return(share_mc.status_txt.text);
};
setFocusHandler = function () {
setStatus(this.statusText);
this.backgroundColor = 16777215 /* 0xFFFFFF */;
};
killFocusHandler = function () {
setStatus("");
this.backgroundColor = 13291221 /* 0xCACED5 */;
};
changedHandler = function () {
var _local2 = true;
var _local3 = false;
_local3 = true;
if (((_root.share_mc.name_txt.length == 0) || (_root.share_mc.email_txt.length == 0)) || (((_root.share_mc.email1_txt.length == 0) && (_root.share_mc.email2_txt.length == 0)) && (_root.share_mc.email3_txt.length == 0))) {
_local2 = false;
}
if (_local2) {
share_mc.submitBtn.enable();
} else {
share_mc.submitBtn.disable();
}
if (_local3) {
share_mc.resetBtn.enable();
} else {
share_mc.resetBtn.disable();
}
};
enableForm = function () {
var _local2 = 0;
while (_local2 < textFields.length) {
_root.share_mc[textFields[_local2]].selectable = true;
_root.share_mc[textFields[_local2]].border = true;
_local2++;
}
share_mc.submitBtn.enable();
share_mc.resetBtn.enable();
share_mc.cancelBtn.enable();
};
disableForm = function () {
var _local2 = 0;
while (_local2 < textFields.length) {
_root.share_mc[textFields[_local2]].selectable = false;
_root.share_mc[textFields[_local2]].border = false;
_local2++;
}
share_mc.submitBtn.disable();
share_mc.resetBtn.disable();
share_mc.cancelBtn.disable();
};
resetForm = function () {
trace("reset");
setStatus("");
_global.oldStatusText = "";
var _local3 = 0;
while (_local3 < textFields.length) {
_root.share_mc[textFields[_local3]].selectable = true;
_root.share_mc[textFields[_local3]].border = true;
if (_root.share_mc[textFields[_local3]]._name != "subject_txt") {
_root.share_mc[textFields[_local3]].text = "";
}
if (_root.share_mc[textFields[_local3]]._name == "name_txt") {
_root.share_mc[textFields[_local3]].text = namecreater;
}
_local3++;
}
share_mc.resetBtn.disable();
share_mc.submitBtn.disable();
};
submitForm = function () {
disableForm();
dataHandler.clear();
var _local2 = 0;
while (_local2 < textFields.length) {
if (_local2 != (textFields.length - 1)) {
dataHandler[textFields[_local2]] = _root.share_mc[textFields[_local2]].text;
} else {
var _local3 = new String(_root._url);
dataHandler[textFields[_local2]] = _local3.substr(0, _local3.length - 4) + ".html";
}
_local2++;
}
dataHandler.sendAndLoad("mailer.php", dataHandler, "POST");
setStatus("Contacting server...please wait!");
};
cancelForm = function () {
trace("escape");
gotoAndStop ("menu");
};
messageBox = function (message) {
setStatus("");
_global.oldStatusText = "";
var _local7 = 200;
var _local4 = _root.createEmptyMovieClip("msgBox_mc", 0);
_local4.createTextField("body_txt", 1, 5, 5, _local7 - 10, 10);
_local4.body_txt.multiline = true;
_local4.body_txt.autoSize = true;
_local4.body_txt.wordWrap = true;
_local4.body_txt.selectable = false;
_local4.body_txt.textColor = 6776679 /* 0x676767 */;
_local4.body_txt.text = message;
var _local8 = new TextFormat();
_local8.align = "center";
_local8.font = "_sans";
_local8.size = 12;
_local4.body_txt.setTextFormat(_local8);
var _local6 = _local4.body_txt.textHeight + 10;
var _local5 = _local4.attachMovie("FSimpleButton", "closeBtn", 0);
_local5._x = (_local7 - _local5._width) / 2;
_local5._y = _local6;
_local5.captionText = "Ok";
_local5.showHand = false;
_local5.captionColor = 6776681 /* 0x676769 */;
_local5.init();
_local5.onRelease = function () {
enableForm();
this._parent.removeMovieClip();
};
_local6 = _local6 + (_local5._height + 5);
_local4._x = (Stage.width - _local7) / 2;
_local4._y = (Stage.height - _local6) / 2;
_local4.moveTo(0, _local6);
_local4.lineStyle(1, 16119544, 100);
_local4.beginFill(15461616, 100);
_local4.lineTo(0, 0);
_local4.lineTo(_local7, 0);
_local4.lineStyle(1, 12763844, 100);
_local4.lineTo(_local7, _local6);
_local4.lineTo(0, _local6);
_local4.endFill();
};
dataHandler = new LoadVars();
dataHandler.onLoad = function (success) {
messageBox("Thank you!");
};
textFields = ["name_txt", "email_txt", "subject_txt", "email1_txt", "email2_txt", "email3_txt", "link_txt"];
statusStrings = ["Enter your name here", "You should enter your email address here", "This is the subject of your email", "You should enter friend's email address here", "You should enter friend's email address here", "You should enter friend's email address here"];
count = 0;
while (count < (textFields.length - 1)) {
textField_txt = share_mc[textFields[count]];
textField_txt.border = true;
textField_txt.borderColor = 11645361 /* 0xB1B1B1 */;
textField_txt.background = true;
textField_txt.backgroundColor = 13291221 /* 0xCACED5 */;
textField_txt.onSetFocus = setFocusHandler;
textField_txt.onKillFocus = killFocusHandler;
textField_txt.onChanged = changedHandler;
textField_txt.statusText = statusStrings[count];
count++;
}
changedHandler();
resetForm();
stop();
Symbol 19 Button
on (release) {
getURL ("http://www.myplaycity.com", "_blank");
}
Symbol 23 MovieClip Frame 1
stop();
Symbol 33 MovieClip Frame 1
stop();
Symbol 43 MovieClip Frame 61
_root.loadplay = true;
stop();
Symbol 53 MovieClip Frame 1
stop();
Symbol 215 MovieClip [soundB] Frame 1
stop();
Symbol 305 Button
on (release) {
overview.scroll++;
}
Symbol 306 Button
on (release) {
overview.scroll--;
}
Symbol 325 MovieClip Frame 1
stop();
Symbol 355 MovieClip [FSimpleButton] Frame 1
#initclip 1
FSimpleButton = function () {
this.init();
};
FSimpleButton.prototype = new MovieClip();
FSimpleButton.prototype.init = function () {
this.caption_txt.text = this.captionText;
this.caption_txt.textColor = this.captionColor;
this.useHandCursor = this.showHand;
this.tabEnabled = false;
this.onRollOut = this.myRollOut;
this.onRollOver = this.myRollOver;
this.onPress = this.myPress;
this.onRelease = this.myRelease;
this.onDragOut = this.myDragOut;
this.onDragOver = this.myDragOver;
this.onReleaseOutside = this.myReleaseOutside;
};
FSimpleButton.prototype.myRollOut = function () {
this._parent[this.statusVar] = _global.oldStatusText;
};
FSimpleButton.prototype.myRollOver = function () {
_global.oldStatusText = this._parent[this.statusVar];
this._parent[this.statusVar] = this.statusText;
};
FSimpleButton.prototype.myPress = function () {
};
FSimpleButton.prototype.myRelease = function () {
_root[this.clickHandler](this);
};
FSimpleButton.prototype.myDragOut = function () {
this.gotoAndStop("_up");
};
FSimpleButton.prototype.myDragOver = function () {
};
FSimpleButton.prototype.myReleaseOutside = function () {
};
FSimpleButton.prototype.disable = function () {
this.caption_txt.textColor = this.captionDisabledColor;
this.gotoAndStop("disabled");
this.enabled = false;
};
FSimpleButton.prototype.enable = function () {
this.enabled = true;
this.gotoAndStop("_up");
this.caption_txt.textColor = this.captionColor;
};
FSimpleButton.prototype.isEnabled = function () {
return(this.enabled);
};
Object.registerClass("FSimpleButton", FSimpleButton);
#endinitclip
stop();
Instance of Symbol 355 MovieClip [FSimpleButton] "submitBtn" in Symbol 356 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
captionText = "Submit";
captionColor = 6776681 /* 0x676769 */;
captionDisabledColor = 11645361 /* 0xB1B1B1 */;
clickHandler = "submitForm";
showHand = false;
statusText = "Submit form details to server";
statusVar = "statusText";
}
Instance of Symbol 355 MovieClip [FSimpleButton] "resetBtn" in Symbol 356 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
captionText = "Reset";
captionColor = 6776681 /* 0x676769 */;
captionDisabledColor = 11645361 /* 0xB1B1B1 */;
clickHandler = "resetForm";
showHand = false;
statusText = "Clear the form fields";
statusVar = "statusText";
}
Instance of Symbol 355 MovieClip [FSimpleButton] "cancelBtn" in Symbol 356 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
captionText = "Cancel";
captionColor = 6776681 /* 0x676769 */;
captionDisabledColor = 11645361 /* 0xB1B1B1 */;
clickHandler = "cancelForm";
showHand = false;
statusText = "Return to Menu";
statusVar = "statusText";
}