STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
228069
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2560 · P5120

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/16021564?noj=FRM16021564-28DC" width="1" height="1"></div>

Tank Wars RTS.swf

This is the info page for
Flash #117019

(Click the ID number above for more basic data on this flash file.)


Text
Rocket Launcher


firepower:
HP:
speed:
shellspeed:
range:
fire period:

<p align="left"></p>

<p align="justify"><font face="Arial" size="16" color="#00ff00" letterSpacing="1.000000" kerning="1"><b>Copyright(c)</b></font></p><p align="justify"><font face="Arial" size="16" color="#00ff00" letterSpacing="1.000000" kerning="1"><b>Tank Wars</b></font></p><p align="justify"><font face="Arial" size="16" color="#00ff00" letterSpacing="1.000000" kerning="1"><b>2007</b></font></p><p align="justify"><font face="Arial" size="16" color="#00ff00" letterSpacing="1.000000" kerning="1"><b>best quality: medium</b></font></p><p align="justify"></p><p align="justify"><font face="Arial" size="16" color="#00ff00" letterSpacing="1.000000" kerning="1"><b>Dont build more than 50 units or lag.</b></font></p>

<p align="justify"><font face="Arial" size="20" color="#ff0000" letterSpacing="1.000000" kerning="1"><b>Territory Units</b></font></p>

<p align="justify"><font face="Arial" size="20" color="#ff0000" letterSpacing="1.000000" kerning="1"><b>Strike Force Units</b></font></p>

<p align="justify"><font face="Arial" size="20" color="#ff0000" letterSpacing="1.000000" kerning="1"><b>Territory Information</b></font></p>

<p align="justify"><font face="Impact" size="30" color="#000066" letterSpacing="5.000000" kerning="1">Invade</font></p>

<p align="justify"><font face="Impact" size="30" color="#003300" letterSpacing="5.000000" kerning="1">Invade</font></p>

<p align="justify"><font face="Impact" size="30" color="#003300" letterSpacing="5.000000" kerning="1">Invade</font></p>

<p align="justify"><font face="Impact" size="30" color="#00cc00" letterSpacing="5.000000" kerning="1">Command</font></p>

<p align="justify"><font face="Impact" size="30" color="#0000ff" letterSpacing="5.000000" kerning="1">Command</font></p>

<p align="justify"><font face="Impact" size="30" color="#0000ff" letterSpacing="5.000000" kerning="1">Command</font></p>

Destroy all enemy forces in the area to win.
The war factory complex must remain standing.

Objective 1:
Objective 2:

Destroy all enemy forces in the area to win.

Objective 1:

Destroy all  invading enemy forces in the area to win.
The airport must survive.

Objective 1:
Objective 2 :

Destroy all  invading enemy forces in the area to win.
All 4 oil derricks must survive.

Destroy all enemy forces in the area to win.
Our tech centre must survive.

Destroy all enemy forces in the area to win.
Our sensor net array must survive.

Destroy all enemy forces in the area to win (Including all their weapon silos).

Destroy all enemy forces in the area to win.
The enemy's airport must survive.

Destroy all enemy forces in the area to win.
The enemy's tech centre must survive.

Destroy all enemy forces in the area to win.
The enemy's sensor net array must survive.

Destroy all enemy forces in the area to win.
The enemy's war factory complex must survive.

Well Done! Looks like you have gotten rid of the enemy forces in the base.But
there's more where that came from.I'm detecting massive enemy forces around our base...Standby.

Base Commander :

Assume command of the base and defend it from further enemy attacks.
A construction dozer has been provided for base repair and reconstruction.

Objective 1:

The next wave of enemy forces wil be arriving in:          seconds.
Waves left:

<p align="left"></p>

<p align="left"></p>

Help! Our base is being destroyed!

I'm sending in a squad of our best tanks to assist you. Commander, proceed to the
base in the north and destroy all the enemy invaders.Do not let it be completely destroyed.

General :

Destroy all enemy forces in the area.
Do not let the base be destroyed.

$1500

Building:       %

<p align="left"><font face="Arial" size="16" color="#990000" letterSpacing="0.000000" kerning="1">0</font></p>

Building:       %

<p align="left"><font face="Arial" size="16" color="#ffffff" letterSpacing="0.000000" kerning="1">100</font></p>

Building:       %

<p align="left"><font face="Arial" size="16" color="#0000ff" letterSpacing="0.000000" kerning="1">0</font></p>

Building:       %

<p align="left"><font face="Arial" size="16" color="#0000ff" letterSpacing="0.000000" kerning="1">0</font></p>

<p align="left"><font face="Arial" size="16" color="#ffffff" letterSpacing="0.000000" kerning="1">100</font></p>

Quit

Quit

Options

Options

Skirmish

Skirmish

Campaign

Campaign

Tutorial

Tutorial

Back

Back

Campaign

Choose a Difficulty Level:

Easy

Easy

Medium

Medium

Medium

Hard

Hard

Hard

Options

Sounds :

Music :

Video Quality :

Smart AI :

FullScreen :

<p align="left"><font face="MS Reference Sans Serif" size="40" color="#00ff00" letterSpacing="0.000000" kerning="1"><b>Off</b></font></p>

Display the game in full screen
on your computer. (Note: this
is not recommended if your
resolution is less than 1024
x768)

<p align="left"><font face="MS Reference Sans Serif" size="40" color="#00ff00" letterSpacing="0.000000" kerning="1"><b>Off</b></font></p>

Makes the skirmish ingame
AI able to plan strategies.
If enabled, this might make
the game more laggy.

<p align="left"><font face="MS Reference Sans Serif" size="40" color="#00ff00" letterSpacing="0.000000" kerning="1"><b>medium</b></font></p>

Toggles the quality level of the
game. The default reccomended
is "medium".Note: this is a
really laggy game so do not set
the quality to High or Best
unless your computer is
extremely powerful.

<p align="left"><font face="MS Reference Sans Serif" size="40" color="#00ff00" letterSpacing="0.000000" kerning="1"><b>On</b></font></p>

Click to turn music  on or
off

<p align="left"><font face="MS Reference Sans Serif" size="40" color="#00ff00" letterSpacing="0.000000" kerning="1"><b>On</b></font></p>

Click to turn in-game sound
effects on or off

Fog Of War :

<p align="left"><font face="MS Reference Sans Serif" size="40" color="#00ff00" letterSpacing="0.000000" kerning="1"><b>Off</b></font></p>

When on, the shroud
regrows after all friendly
units leave a shrouded
area.

Skirmish

Start Battle

Start Battle

<p align="left"><font face="MS Reference Sans Serif" size="40" color="#00ff00" letterSpacing="0.000000" kerning="1"><b>Off</b></font></p>

Turns on or off the shroud
which obscures the enemy
base from view.

Shroud:

Your starting position.
Oilfield.
Enemy's starting position.

Starting Credits:
(The amount of money you and
the enemy begins with)

<p align="left"></p>

<p align="center"><font face="MS Reference Sans Serif" size="25" color="#ffff00" letterSpacing="0.000000" kerning="1">Arena</font></p>

AI :

Map:

Difficulty   :

<p align="left"><font face="MS Reference Sans Serif" size="15" color="#ffffff" letterSpacing="0.000000" kerning="1">Technology Commander</font></p>

<p align="left"><font face="MS Reference Sans Serif" size="15" color="#ffffff" letterSpacing="0.000000" kerning="1">Novice Enemy</font></p>

(The more difficult the AI, the faster it responds
to events and builds troops).

Easy Enemy

Easy Enemy

Medium Enemy

Medium Enemy

Hard Enemy

Hard Enemy

Brutal Enemy

Brutal Enemy

Superweapon Commander

Novice Enemy

Novice Enemy

Technology Commander

The technology commander makes careful
use of few but heavily upgraded units to
engage in battle.

Technology Commander

Offensive Commander

The offense commander's strength lies in attack.
Using the various hit and run tactics of this
strategy, this commander can quickly confuse an
enemy into submission (smart AI only)

Offensive Commander

The offense commander's strength lies in attack.
Using the various hit and run tactics of this
strategy, this commander can  quickly confuse an
enemy into submission (smart AI only)

Defensive Commander

Overly concerned about the base's safety, the
Defense Commander will amass all available
troops at its base before it strikes in
overwhelming numbers.

Defensive Commander

Superweapon Commander

This commander prefers to attack using long-
ranged artillery to devastate an enemy base
before using tactical nukes to finish it off !

Economic Commander

The Ecomonic Commander will focus mainly
on earning money and gaining control of all
the oilfields on the map and then try to
starve the enemy base out of valuable
funds and into surrender (Smart AI only)

Economic Commander

The Ecomonic Commander will focus mainly
on earning money and gaining control of all
the oilfields on the map and then try to
starve the enemy base out of valuable
funds and surrender.

Destroy all enemy forces in the area to win.
The allied general's base (green) must survive.

Building:       %

<p align="left"><font face="Arial" size="16" color="#990000" letterSpacing="0.000000" kerning="1">0</font></p>

1

<p align="left"><font face="Arial" size="14" color="#0000ff" letterSpacing="0.000000" kerning="1"><b>100</b></font></p>

Nuclear Missile :        %

Ready

<p align="left"><font face="Arial" size="14" color="#990000" letterSpacing="0.000000" kerning="1"><b>100</b></font></p>

Nuclear Missile :        %

100

100

Nuclear Missile :        %

Rocket Launcher


firepower:
HP:
speed:
shellspeed:
range:
fire period:

STOP

<p align="center"></p>

+

+

<p align="center"><font face="Arial" size="21" color="#0000ff" letterSpacing="1.000000" kerning="1"><b>+</b></font></p>

+

+1

<p align="left"></p>

$

<p align="center"><font face="Arial" size="14" color="#00ff00" letterSpacing="1.000000" kerning="1"><b>Build Menu</b></font></p>

<p align="center"></p>

<p align="center"><font face="Arial" size="14" color="#00ff00" letterSpacing="1.000000" kerning="1"><b>Unit Upgrades</b></font></p>

Already built

$

<p align="center"><font face="Arial" size="23" color="#0000ff" letterSpacing="1.000000" kerning="1"><b>Radar Unavailable</b></font></p>

What do you want to do?

Abort Game

Abort Game

Surrender

Surrender

<p align="left"><font face="Arial" size="12" color="#000000" letterSpacing="0.000000" kerning="1"><b>dddd</b></font></p>

Press any key to continue...

You are Victorious!

Kills:

Losses:

Built:

<p align="left"></p>

<p align="left"></p>

<p align="left"></p>

Score:

<p align="left"></p>

You have been defeated!

<p align="left"></p>

<p align="left"></p>

<p align="left"></p>

<p align="left"></p>

<p align="left"><font face="Arial" size="12" color="#000000" letterSpacing="0.000000" kerning="1"><b>dddd</b></font></p>

<p align="left"></p>

You are Victorious!

Click to continue...

You have been defeated!

Click to restart...

Choose a territory to invade or command.

Warning  !

You have been invaded by the enemy. Click to continue.

<p align="left"><font face="Arial" size="12" color="#000000" letterSpacing="0.000000" kerning="1"><b>dddd</b></font></p>

<p align="left"><font face="Arial" size="12" color="#000000" letterSpacing="0.000000" kerning="1"><b>dddd</b></font></p>

Destroy all enemy forces in the area to win.
The enemy's oil derricks must survive.

12

<p align="left"></p>

<p align="left"></p>

<p align="left"></p>

<p align="left"></p>

<p align="left"><font face="Arial" size="12" color="#000000" letterSpacing="0.000000" kerning="1"><b>dddd</b></font></p>

Welcome Commander !

Welcome to your basic military
training. (To skip a section, press
SHIFT).

Tank Wars

Tank Wars is a fully-fledged real-time
strategy  game built in flash, where
you construct bases, build and
upgrade your units and command
them to destroy the enemy!

Interface

On the screen you see the battlefield
interface. It shows you the positions
of your units and structures. Right
now, you see an army tank right in
the middle of the screen. Click on it
to select it.

Moving

Once you have selected a unit, you
are in control of it. See that flag at the
right of the screen? Click on it to
command your tank to move to the
flag. Once you're done, we'll proceed.

Scrolling

Of course, the whole map is too big
for the interface to show alone. You
can scroll the map to the left ,right,
top and bottom by moving the mouse
to the edges of the screen.Scroll to
the right until you  see another flag.

Now, command your tank to move to
the next flag.

Attacking

Scroll Downwards until you see a building. The
building is marked  in red to show that it
belongs to the enemy. Your units are colored
in blue in contrast. Command your tank to
attack the building by selecting it and clicking
on the building. Once the building is
destroyed, we shall continue.

Selecting Multiple Units

Scroll to the bottom where you will
find a group of tanks and a humvee.
Select them by holding down your
mouse button and dragging a box
over them. release your mouse
button and you're done!

Deselecting Units

Press SPACE to deselect all your
units. Do it now.

Identifying Units

To the left of the map, there is an
enemy tank and it looks different
from the ones in your command. To
know what it is, select it by clicking
on it .

Look at the panel screen at the
bottom left the screen. It tells you
that the enemy tank is a "heavy tank"
and all the info on the tank such as
firepower, speed and HP. Once you
are done, select your units again.

Here is an overview of what you saw on the panel:
firepower: how much damage a shot does
HP: how much damage a unit can take before its
destroyed
weapon speed: the speed of the shots fired by the
unit.
reload time: the time taken for the unit to reload its
weapons.

range: how far this unit can shoot.
speed: how fast the unit moves
avoid fire and guardmode are tactical controls
which determine how the unit engages the
enemy
(but we will  cover that later).
All the stats can be upgraded (but we will also
cover how to later).

The heavy tank is more powerful than all of your
units alone, but if they attack it together, the
heavy tank doesn't stand a chance.Command
your units to destroy the heavy tank (be careful, it
retaliates)
(don't worry if all your units are destroyed. They
will respawn where you found them earlier until
the tank is destroyed)

When attacking, you will find that the heavy tank
hardly gets to hit your humvee as it zips around.
Certain units are strong against others, like
humvee vs heavy tank. As you play, you will find
out more about the best units to use while
dealing with others. Now, scroll to the Right until
you find another group of units. Select them.

Unit  Strengths

Once your group of tanks gets large, you will find that as
they move, they tend to clump together closely, making
them easy targets for enemy artillery. There is a formations
that allows you to avoid such happening. Click on the
button  at the bottom of the screen and click on the
interface for
your units to gather in a sparse formation  at the loaction
specified. Do it now.

Unit  Formations

As you hover your mouse over the rows of buttons you find
at the bottom left corner of the screen, the centre panel
shows a description about what each button does. The
button for example lets your units move around to
avoid return fire when attacking and the
buttons enable and disable guard mode.
There's an unguarded enemy base on
the  bottom left corner of the map.
Destroy it to complete the first part of this tutorial.

Task Buttons

Click to continue

Welcome to part 2 of your basic
military training, where you will learn
to build a base and destroy the
enemy.

Shrouds

Notice that the area around the screen is all
black. The terrain is shrouded. Only certain
maps have shrouds.Have your dozer(the unit
in the centre of your screen), to drive into the
shroud to the right and reveal a flag.
Command your dozer to move to the flag.

Buidling a Base

Have your dozer build a command centre by
selecting it and clicking on the icon of it on the
centre panel of the build menu.Drag the
construction icon to where you want to build it
and click.The building will begin building.

Radar

Now, once you have a command centre, you will see
that the panel in the bottom right side of the screen
change from "Radar Unavailable" to a picture of the
map. This is your radar. It shows you the position of all
the units on the map.Radar has the ability to see
through the shroud and show you where the enemy is
without revealing the shroud.You may also click on the
radar screen to zoom your interface on a specific point
of the minimap.

Building a Base

Now, build an oil refinery. Its the
icon next to that of your
command centre

Oil

You will see an oil truck spawn next to the
refinery and go to the nearest oil field to
collect oil. The oil truck then goes back to the
refinery and converts the oil into cash. Oil is
important because it provides you with money
to build or upgrade. Be sure to guard your
refinery, oil trucks and oil field well.

Now, build a war factory. That is the third icon
on your buildlist. A war factory enables you to
build units to guard   your base or attack the
enemy base.

In this tutorial, all you can build are humvees.
Build five of them and have the scout out the
enemy base.(note: you can queue an unlimited
number of units by clicking on their icons while
one is building). Set a rally point by clicking
anywhere while the warfactory is selected. Units
newly created will gather there.

Turrets

You can defend your base by building turrets.
These structures are far cheaper than equally
powerful units but can't move around.Build
three gattling turrets (the first icon on the last
row of the buildlist), and we shall proceed.

Defending your base.

A strike team of enemy humvees is on its way
to attack your base. Be prepared!
If your buildings get damaged the dozers will
repair them by getting close to them.

Unit Upgrades

By building a tech centre upgrades for your
units can be unlocked. Upgrades make your
units have certain abilities they won't
otherwise have, and they're instantaneous.Go
on, build a tech centre, and then we'll proceed.

Once you have your tech centre, click on the
"unt upgrades" button on your build menu.The
menu now displays all the possible upgrades
for your humvee. Lets try adding a laser to a
humvee. Click on the             button after
selecting a humvee.                Do it now!

By box selecting multiple units, you can
upgrade all of them at once. The total cost is
calculated and subtracted from your funds.
Let's try upgrading the speed of  three of your
humvees. Select your humvees again and click
on the icon on the bottom-left of the menu.(the
one that looks like a wheel).

Notice that the cost for the speed upgrade is
now more costly.Each unit also has a stats
upgrade limit of 5. This means that you can
only upgrade a unit's firepower, weapon
speed, reload time, range and HP only five
times. This is to prevent certain units from
being "overly powerful".

Theres a patriot missile turret to the right of
the map. Have your humvees with lasers
attack it and you'll see what the laser upgrade
does.

Tutorial

That quite about covers it. Destroy the enemy
commander's base to the right to complete
this  tutorial.

Click to restart

Welcome to your strategic territory
command training. In this tutorial,
you will learn how to manipulate the
strategic interface which will be used
in campaign mode of this game.

Campaign Mode

Unlike most campaigns which
involve a story, Tank Wars'  is based
solely on conquest. To beat the
campaign, simply conquer all the 8
territories of the map you see above.

The first two missions of the campaign
require you to retake your main base
and defend it from enemy attacks. Then,
you are taken to this screen, where you
can decide which territory to attack
next.

The Interface

Once you have completed your second
mission, (or any missions for that
matter), your units already present on
that territory  are saved in their present
state before you are taken to this
screen.

For example, if you have built a refinery on a
certain territory , and it survives until you win,
the refinery will be saved in that territory.
Should you decide to re-enter  that territory
again (which will be shown later), you will find
that the refinery is still there,in the same
position and with the same stats as before.

Territories

On the above map, territories that belong to
you are shown in blue, and red, your
enemy's.The green territory belongs to your
ally (we'll touch on that later). Hover your
mouse over a territory to obtain information
about it. It will be displayed on the bottom
right screen of the sidebar.

Yours

Enemy

Ally

Click on a territory to select it. If it belongs to
you, the units already present on it since your
last battle are displayed on the "Territory
Units" screen on the bottom left.Their
upgrades will be shown on the icons
representing the units. You can also hover
your mouse over the icons to display their
stats.

Click on the arrows to the right of the territory
units screen to  view the next or previous 20 of
the units on the selected territory.

Invading

On the centre of the sidebar you see a panel
marked "Strike Force Units". These are the
units that you wish to attack an enemy territory
with.To transfer a unit from your territory to
your strike team, simply click on its icon on
the screen.Note that you can only transfer
units with the ability to move (obviously)

To transfer your unit back to a territory, simply
click on its icon on the strike team panel. You
can move a unit from one territory to another
by putting it into your strike team, and then
selecting another territory and clicking on its
icon to put it back.

Once you think you have enough units in your
strike team  to sucessfully invade an enemy
territory, select it and press the "Invade"
button on the bottom right of the sidebar,
below the information display. You will be
taken to that map instantly.

Upon victory, the base that you've built on that
territory as well as any surviving troops will be
saved on that territory and you will be taken
back to this screen.
Of course, if you are defeated, all of the units
in your strike team get destroyed.

Defending

You must be wondering, why not send all
available troops to invade a territory then? The
reason for not doing so is simple: Since this is
a conquest game, your enemy might
sometimes invade one of your territories as
well, so you might as well leave some forces
behind for defense.

Remember to defend your main base well. If it
is conquered, you have to restart the entire
campaign again as you retake it frome enemy
hands.

A territory being attacked will flash. You will be
warned of the imminent invasion beforehand.
Simply click anywhere to take control of your
forces and drive the invaders out!

Commanding

Any time where you are at peace , you can select
any of your territories and take control of it to
either build more forces or fortify it. Simply click
on the "Command" button below the territory
information display. Be sure to keep your strike
team list empty first, or you ''ll lose all the units in
it! When you're done commanding, simply press
ENTER and you will be taken back here.

Your Enemy

Your enemy also gets more powerful the more
time you spend tending to your forces or
battling. Hence, its a good tactic to finish
battles as quickly as possible and not waste
time building forces you don't need.

Your Ally

There is a certain green territory we've talked about
earlier. This belongs to your ally. Although he does not
allow you to put your troops directly on his land, he can
still be attacked by the enemy nonetheless.The battle
between him and the enemy will be autocalculated. To
gain a highier chance of  him winning, be sure to leave
behind extra forces for him to command the first time
you liberate his base from enemy forces!

That concludes it. Click anywhere to
return to the main menu.

ActionScript [AS1/AS2]

Frame 1
function emailHandler3() { _root.gotoAndStop("victree"); } _global.teamtype = function (named, people, maxlength) { _root[named] = new Object(); _root[named].namet = named; _root.ai.teamslist.push(named); _root[named].maxlength = maxlength; _root[named].members = people.concat(); trace("maxlength"); if (people == undefined) { _root[named].members = []; } _root[named].targets = undefined; _root[named].attack = function (what, occupied) { trace("attacking" + what); this.targets = what; var _local4 = this.members.length - 1; while (_local4 > -1) { var _local3 = this.members[_local4]; if (_root[_local3].damage != undefined) { if ((occupied === true) && (_root[_local3].fireing || (_root[_local3].walking))) { } else { _root[_local3].aiattack(what); } } _local4--; } }; _root[named].goto = function (wherex, wherey, waypoint, occupied) { this.targets = undefined; var _local6 = wherex; var _local5 = wherey; if (_root[waypoint]._x != undefined) { _local6 = _root[waypoint]._x; _local5 = _root[waypoint]._y; } var _local4 = this.members.length - 1; while (_local4 > -1) { var _local3 = this.members[_local4]; if ((occupied === true) && (_root[_local3].fireing || (_root[_local3].walking))) { } else { _root[_local3].aigoto(_local6, _local5, false); } _local4--; } }; _root[named].checks = function () { var _local3 = this.members.length - 1; while (_local3 > -1) { var _local4 = this.members[_local3]; if ((_root[_local4].life <= 0) || (_root[_local4].life == undefined)) { this.members.splice(_local3, 1); } _local3--; } }; _root[named].command = function (whats, values) { trace(("upgrade" + whats) + values); if ((whats != undefined) && (values != undefined)) { var _local3 = this.members.length - 1; while (_local3 > -1) { var _local4 = this.members[_local3]; if (_root[_local4][whats] != undefined) { _root[_local4][whats] = values; } _local3--; } } }; _root[named].upgrade = function (attribute, magnitude) { var _local3 = this.members.length - 1; while (_local3 > -1) { var _local4 = this.members[_local3]; _root[_local4][attribute] = _root[_local4][attribute] * magnitude; _local3--; } }; _root[named].istargetdestroyed = function () { if ((_root[this.targets].life <= 0) || (_root[this.targets].life == undefined)) { return(true); } return(false); }; _root[named].isfree = function () { var _local5 = true; var _local3 = this.members.length - 1; while (_local3 > -1) { var _local4 = this.members[_local3]; if (_root[_local4].walking || (_root[_local4].fireing)) { _local5 = false; break; } _local3--; } return(_local5); }; _root[named].iswithindistance = function (targeted, ranger) { var _local7 = true; var _local3 = this.members.length - 1; while (_local3 > -1) { var _local4 = this.members[_local3]; var _local5 = Math.sqrt(Math.pow(_root[_local4]._x - _root[targeted]._x, 2) + Math.pow(_root[_local4]._y - _root[targeted]._y, 2)); if (_local5 > ranger) { _local7 = false; break; } _local3--; } return(_local7); }; _root[named].iswithindistance2 = function (targeted, ranger) { var _local7 = false; var _local3 = this.members.length - 1; while (_local3 > -1) { var _local4 = this.members[_local3]; var _local5 = Math.sqrt(Math.pow(_root[_local4]._x - _root[targeted]._x, 2) + Math.pow(_root[_local4]._y - _root[targeted]._y, 2)); if (_local5 < ranger) { _local7 = true; break; } _local3--; } return(_local7); }; _root[named].destroy = function () { _root.ai.teamslist.findandsplice(this.namet); }; return(_root[named]); }; py = teamtype("3a", [], 4); trace(py.maxlength); var my_cm = new ContextMenu(); var menuItem_cmi3 = new ContextMenuItem("Win", emailHandler3); my_cm.customItems.push(menuItem_cmi3); _root.menu = my_cm; _root.fog = false; stop(); for (var name in _root) { if (typeof(_root[name]) == "movieclip") { _root[name].removeMovieClip(); } } MovieClip.prototype.aiattack = function (what) { current2 = what; if (_root[current2]._x != undefined) { current = this._name; _root[current].targetobj = current2; _root[current].attack = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root["flag" + current]._visible = false; _root["flag" + current]._x = _root[current2]._x; _root["flag" + current]._y = _root[current2]._y; _root.objarray.push("flag" + current); _root[current].walking = true; _root.n++; hit = true; } }; MovieClip.prototype.aigoto = function (x1, y1, lock) { current = this._name; _root[current].attack = false; _root[current].walking = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag", "flag" + current, _root.n); if ((!lock) || (lock == undefined)) { _root["flag" + current]._x = x1; _root["flag" + current]._y = y1; } if (lock) { _root["flag" + current]._x = x1 + _root.back._x; _root["flag" + current]._y = y1 + _root.back._y; } _root["flag" + current].vsisible = false; _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; }; MovieClip.prototype.aigoto = function (x1, y1, lock) { current = this._name; _root[current].attack = false; _root[current].walking = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag", "flag" + current, _root.n); if ((!lock) || (lock == undefined)) { _root["flag" + current]._x = x1; _root["flag" + current]._y = y1; } if (lock) { _root["flag" + current]._x = x1 + _root.back._x; _root["flag" + current]._y = y1 + _root.back._y; } _root["flag" + current].vsisible = false; _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; }; Array.prototype.arrayfind = function (element) { var _local4 = false; var _local3 = this.length - 1; while (_local3 > -1) { elementsearched = this[_local3]; if (_root[elementsearched].unittype == element) { _local4 = true; break; } _local3--; } return(_local4); };
Frame 2
_root.soundon = false; _root.smartai = true; _root.screen = false; _root.owmmap5 = false; _root.setsoundon = true; _root._quality = "MEDIUM"; _root.attachMovie("bar", "bar", 11000); _root.bar._x = _root.flagn._x; _root.bar._y = _root.flagn._y; fscommand ("showmenu", false); _global.x1 = 624; _global.y1 = 420; _global.x2 = 772.2; _global.y2 = 420; _global.x3 = 616.2; _global.y3 = 576; _global.x4 = 772.2; _global.y4 = 537; _root.n = 0; _root.n = 0; _root.guyzarray = []; _root.setsoundon = true; _root.musicon = true; stop(); _root.friendlylist = []; _root.unitsarray = []; _root.turretarray = []; _root.enemyarray = []; _root.objarray = []; _root.shellarray = []; Array.prototype.findandsplice = function (element) { var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { this.splice(_local2, 1); break; } _local2--; } }; _root.monet = 30000; Mouse.show(); MovieClip.prototype.aigoto = function (x1, y1, lock) { current = this._name; _root[current].attack = false; _root[current].walking = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag", "flag" + current, _root.n); if ((!lock) || (lock == undefined)) { _root["flag" + current]._x = x1; _root["flag" + current]._y = y1; } if (lock) { _root["flag" + current]._x = x1 + _root.back._x; _root["flag" + current]._y = y1 + _root.back._y; } _root["flag" + current].vsisible = false; _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; }; Array.prototype.arrayfind = function (element) { var _local4 = false; var _local3 = this.length - 1; while (_local3 > -1) { elementsearched = this[_local3]; if (_root[elementsearched].unittype == element) { _local4 = true; break; } _local3--; } return(_local4); }; _global.createobj = function () { a = Math.random(); if ((a > 0) && (a < 0.3)) { unittype = "light"; } if ((a > 0.3) && (a < 0.5)) { unittype = "rocket"; } if ((a > 0.5) && (a < 0.6)) { unittype = "heavy"; } if ((a > 0.6) && (a < 0.8)) { unittype = "humvee"; } if ((a > 0.9) && (a < 1)) { unittype = "artillery"; } _root.attachMovie(unittype, unittype + _root.n, _root.n); var _local2 = Math.ceil(Math.random() * 5); _root[unittype + _root.n]._x = _root["reinforcement" + _local2]._x + (a * 100); _root[unittype + _root.n]._y = _root["reinforcement" + _local2]._y; _root[unittype + _root.n]._rotation = 0; _root.guyzarray.push(unittype + _root.n); unittype = undefined; _root.n++; if (_root.n > 10000) { _root.n = 1; } }; _global.createobj2 = function () { a = Math.random(); if ((a > 0) && (a < 0.3)) { unittype = "enemylight"; } if ((a > 0.3) && (a < 0.5)) { unittype = "enemyrocket"; } if ((a > 0.5) && (a < 0.6)) { unittype = "enemyheavy"; } if ((a > 0.6) && (a < 0.9)) { unittype = "enemyhumvee"; } if ((a > 0.9) && (a < 1)) { unittype = "enemyartillery"; } _root.attachMovie(unittype, unittype + _root.n, _root.n); var _local2 = 5 + Math.ceil(Math.random() * 5); _root[unittype + _root.n]._x = _root["reinforcement" + _local2]._x + (a * 100); _root[unittype + _root.n]._y = _root["reinforcement" + _local2]._y; _root[unittype + _root.n]._rotation = 0; _root.guyzarray.push(unittype + _root.n); unittype = undefined; _root.n++; }; _global.applyobj = function () { var _local4 = _root.guyzarray.length - 1; while (_local4 > -1) { current = _root.guyzarray[_local4]; _root.guyzarray.splice(_local4, 1); var _local3 = ["auto", "avoid", "laser", "seeker", "accurate", "gatling", "crush", "missile", "emp", "nuke", "blast", "shell2", "hitonly"]; var _local2 = _local3.length - 1; while (_local2 > -1) { currents = _local3[_local2]; if (Math.random() > 0.5) { _root[current][currents] = !_root[current][currents]; } _local2--; } _root[current].miss = Math.ceil(Math.random() * 3); if (_root[current]._y < _root.centre._y) { _root[current].aigoto(_root[current]._x, _root.centre1._y); } if (_root[current]._y > _root.centre._y) { _root[current].aigoto(_root[current]._x, _root.centre2._y); } _local4--; } };
Instance of Symbol 1009 MovieClip "comcentre1" in Frame 2
onClipEvent (load) { ranges = 1; life = 0; }
Instance of Symbol 1014 MovieClip in Frame 2
onClipEvent (load) { _root.music = new Sound(); _root.music.attachSound("music"); _root.music.stop(); _root.music.start(0, 1000); }
Frame 3
for (var name in _root) { if (typeof(_root[name]) == "movieclip") { _root[name].removeMovieClip(); } } _root.soundon = _root.setsoundon; gotoAndPlay (93);
Frame 4
_root.soundon = _root.setsoundon; gotoAndPlay (7); _root.bar.removeMovieClip();
Frame 5
_root.soundon = _root.setsoundon; gotoAndPlay (24); _root.bar.removeMovieClip();
Frame 7
array1 = []; enemymines = 0; _root.obsarray = []; _root.shroudarray = []; _root.soundon = false; _root.scrolla = true; _global.createai = function (mines, minew, turretsneeded, turretm, techcentrem, servicedepotm, teamsn, team1m, teaml, dozersn, nuket, oiltn, difi) { _root.ai.timer = 0; _root.array2 = []; _root.array1 = []; _root.ai.build = true; _root.ai.rounds = 0; _root.enemyoiltrucks = 0; _root.ai.minesneeded = mines; _root.ai.mineweight = minew; var _local2 = 1; while (_local2 < turretsneeded) { _root["enemyturret" + _local2] = false; _local2++; } _root.ai.pteam = 0; _root.ai.turretmoney = turretm; _root.ai.techcentremoney = techcentrem; _root.ai.servicedepotmoney = servicedepotm; _root.ai.teamslist = []; _root.ai.teamsneeded = teamsn; _root.ai.minteamlength = teamlm; _root.ai.teamlength = teaml; _root.ai.dozersneeded = dozersn; _root.ai.timeelasped = 0; _root.ai.nuketime = nuket; _root.ai.uppermoney = upperm; _root.ai.lowermoney = lowerm; _root.ai.oiltrucksneeded = oiltn; _root.ai.difficulty = difi; }; for (var name in _root) { if (typeof(_root[name]) == "movieclip") { _root[name].removeMovieClip(); } } if (_root.smartai) { } _root.kills = 0; _root.losses = 0; _root.built = 0;
Frame 8
_root.gotoAndStop("skirmish" + currento); trace("skirmish" + currento);
Frame 9
_root.attachMovie("sidebar", "sidebar", 1000000); _root.attachMovie("mo", "mouse", 1000001); _root.sidebar._x = 132.6; _root.sidebar._y = 615; _root.sidebar._xscale = -58.5; _root.sidebar._yscale = 49.14; _root.sidebar._rotation = 90; _global.orix = _root.back._x; _global.oriy = _root.back._y; _root.attachMovie("box5", "box6", 10000004); _root.box6._x = x1; _root.box6._y = y1; _root.box6._height = (_root.box5._height / _root.back._height) * (y4 - y1); _root.box6._width = (_root.box5._width / _root.back._width) * (x4 - x1); _global.constanty = (y4 - y1) / _root.back._height; _global.constantx = (x4 - x1) / _root.back._width; _global.constantsy = (y4 - y1) / _root.back._height; _global.constantsx = (x4 - x1) / _root.back._width; _root.array1 = []; trace("skir0"); _root.rallylist = []; _root.enemyrallylist = []; MovieClip.prototype.aiattack = function (what) { current2 = what; if (_root[current2]._x != undefined) { current = this._name; _root[current].targetobj = current2; _root[current].attack = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root["flag" + current]._visible = false; _root["flag" + current]._x = _root[current2]._x; _root["flag" + current]._y = _root[current2]._y; _root.objarray.push("flag" + current); _root[current].walking = true; _root.n++; hit = true; } }; MovieClip.prototype.aigoto = function (x1, y1, lock) { current = this._name; _root[current].attack = false; _root[current].walking = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag", "flag" + current, _root.n); if ((!lock) || (lock == undefined)) { _root["flag" + current]._x = x1; _root["flag" + current]._y = y1; } if (lock) { _root["flag" + current]._x = x1 + _root.back._x; _root["flag" + current]._y = y1 + _root.back._y; } _root["flag" + current].vsisible = false; _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; }; Array.prototype.arrayfind = function (element) { var _local4 = false; trace(this.length); var _local3 = this.length - 1; while (_local3 > -1) { elementsearched = this[_local3]; trace(_root[elementsearched].unittype + elementsearched); if (_root[elementsearched].unittype == element) { _local4 = true; break; } _local3--; } return(_local4); }; Array.prototype.arrayfindfirst = function (element) { var _local3 = false; trace(this.length); var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { _local3 = _local2; break; } _local2--; } return(_local3); }; Array.prototype.findsfirst = function (element) { var _local4 = false; var _local3 = this.length - 1; while (_local3 > -1) { elementsearched2 = this[_local3]; if (_root[elementsearched2].unittype == element) { _local4 = elementsearched2; break; } _local3--; } return(_local4); }; MovieClip.prototype.movesym = function () { _root[this._name + "symbols"]._x = (x1 + ((this._x - _root.back._x) * constantx)) - 10; _root[this._name + "symbols"]._y = (y1 + ((this._y - _root.back._y) * constanty)) - 10; }; nextFrame(); _root.timer = 6999; _root.limit = 1200; Array.prototype.countduplicate = function (element) { var _local3 = 0; var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { _local3++; } _local2--; } return(_local3); }; Array.prototype.arrayfind = function (element) { var _local3 = false; var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { _local3 = true; break; } _local2--; } return(_local3); }; Array.prototype.finds = function (element) { var _local3 = -1; var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { _local3 = _local2; break; } _local2--; } return(_local3); }; Array.prototype.findandsplice = function (element) { var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { this.splice(_local2, 1); break; } _local2--; } }; _root.objarray = []; _root.num = 0; _root.sparsex = [0, -50, 150, 100, -100, 150, 250, 200, -250, 300, 300, 350, -350, 400, -410, 500, -550]; _root.sparsey = [0, -50, 80, -180, 250, -50, 140, -150, 60, 150, -70, -220, -350, 350, -350, 375, -375]; _root.linex = [0, 0, 50, 50, 100, 100, 150, 150, 200, 200, 350, 350, 400, 400, 450, 450, 500, 500, 550, 550]; _root.liney = [0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50]; _root.unitsarray = []; _root.flagsarray = []; _root.selectedarray = []; _root.enemyarray = []; _root.friendlylist = []; _root.shellarray = []; _root.enemyminearray = []; _root.minearray = []; _root.enemyminearray = []; _root.money = _root.monet; _root.enemymoney = _root.money; _root.warfactory = 0; _root.enemywarfactory = 0; _global.dozers = []; _root.dozerarray = []; _root.enemydozerarray = []; _root.structurearray = []; _root.enemyservicedepot = 0; _root.enemystructurearray = []; _root.comcentre = 0; _root.enemycomcentre = 0; _root.oilarray = []; _root.enemyoiltruckarray = []; _root.oiltruckarray = []; _root.refinery = 0; _root.enemyrefinery = 0; _root.techcentre = 0; _root.enemytechcentre = 0; _root.enemyweaponsilo = 0; _root.turretarray = []; _root.enemyturretarray = []; _root.enemyturret1 = false; _root.enemyturret2 = false; _root.enemyturret3 = false; _root.enemyturret4 = false; _root.enemyturret5 = false; _root.n = 1000;
Frame 10
Mouse.hide(); stop(); stop(); stop();
Instance of Symbol 1022 MovieClip in Frame 10
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(38))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y + 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 10
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(37))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x + 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 10
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(39))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x - 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - 20; i--; } } } }
Instance of Symbol 1022 MovieClip in Frame 10
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(40))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y - 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y - 20; i--; } } } }
Instance of Symbol 1036 MovieClip "rig6" in Frame 10
onClipEvent (load) { oilfield = "oil6"; _root.objarray.push(this._name); }
Instance of Symbol 1036 MovieClip "rig10" in Frame 10
onClipEvent (load) { oilfield = "oil3"; _root.objarray.push(this._name); }
Instance of Symbol 1036 MovieClip "rig11" in Frame 10
onClipEvent (load) { oilfield = "oil2"; _root.objarray.push(this._name); }
Instance of Symbol 1036 MovieClip "rig12" in Frame 10
onClipEvent (load) { oilfield = "oil4"; _root.objarray.push(this._name); }
Instance of Symbol 1036 MovieClip "rig19" in Frame 10
onClipEvent (load) { oilfield = "oil1"; _root.objarray.push(this._name); }
Instance of Symbol 1036 MovieClip "rig122" in Frame 10
onClipEvent (load) { oilfield = "oil5"; _root.objarray.push(this._name); }
Instance of Symbol 1038 MovieClip "burton" in Frame 10
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1009 MovieClip in Frame 10
/* no clip actions */
Instance of Symbol 1042 MovieClip "box" in Frame 10
onClipEvent (mouseDown) { x = _root.mouse._x - 30; y = _root.mouse._y - 30; if (((_root.sidebar.mapp.hitTest(x, y, true) && (_root.comcentre1.life > 0)) && (_root.comcentre1.life != undefined)) && (_root.sidebar._visible)) { x1s = x - x1; y1s = y - y1; x2s = _root.box6._x - x1; y2s = _root.box6._y - y1; _root.box6._x = x; _root.box6._y = y; x1s = x1s / constantx; y1s = y1s / constanty; x2s = x2s / constantx; y2s = y2s / constanty; _root.back._x = _root.back._x - (x1s - x2s); _root.back._y = _root.back._y - (y1s - y2s); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - (x1s - x2s); _root[current]._y = _root[current]._y - (y1s - y2s); i--; } } if ((!_root.sidebar.hitTest(x, y, false)) || (!_root.sidebar._visible)) { if (_root.selectedarray.arrayfind("warfactory1")) { _root.rallypoint._x = _root.mouse._x; _root.rallypoint._y = _root.mouse._y; } hits = false; this._x = _root._xmouse; this._y = _root._ymouse; i = _root.friendlylist.length - 1; while (i > -1) { current = _root.friendlylist[i]; if (_root[current].hitTest(this) && (current != "servicedepot1")) { hits = true; break; } i--; } origx = _root.mouse._x; origy = _root.mouse._y; this._visible = true; array = _root.formation; _root.formation = undefined; if (!hits) { i = _root.selectedarray.length - 1; while (i > -1) { current = _root.selectedarray[i]; if ((!_root[current].enemy) && (_root[current].speed != undefined)) { _root[current].turret._rotation = _root[current].dummy._rotation; c = _root.enemyarray.length - 1; while (c > -1) { current2 = _root.enemyarray[c]; if (_root.mouse.hitTest(_root[current2])) { _root[current].targetobj = current2; _root[current].attack = true; _root[current].dummy.obstacle = false; _root[current].dummy.flag2 = undefined; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root["flag" + current]._x = _root.boxns._x; _root["flag" + current]._y = _root.boxns._y; _root[current].locx = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root[current].locy = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root.objarray.push("flag" + current); _root[current].walking = true; _root.n++; hit = true; break; } c--; } if (!hit) { origx = _root.mouse._x + _root[array + "x"][i]; origy = _root.mouse._y + _root[array + "y"][i]; if (isNaN(origx)) { origx = _root.mouse._x; } if (isNaN(origy)) { origy = _root.mouse._y; } current = _root.selectedarray[i]; _root[current].destx = origx; _root[current].desty = origy; _root[current].attack = false; _root[current].locx = undefined; _root[current].locy = undefined; _root[current].walking = true; _root[current].dummy.obstacle = false; _root[current].dummy.flag2 = undefined; _root["flag" + current].removeMovieClip(); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag", "flag" + current, _root.n); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } } if (Key.isDown(17)) { _root[current].targetobj = "flag" + current; _root[current].attack = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } hit = false; i--; } } } } onClipEvent (mouseUp) { x = _root.mouse._x; y = _root.mouse._y; _root.mouse.gotoAndStop(2); if ((!_root.sidebar.hitTest(x, y, true)) || (!_root.sidebar._visible)) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (_root[current].hitTest(this) && (!_root.selectedarray.arrayfind(current))) { _root[current].selector._visible = true; _root[current].selected1 = true; _root.selectedarray.push(current); } i--; } } origx = undefined; origy = undefined; this._visible = false; _root.sidebar.calccost(); } onClipEvent (enterFrame) { if (_root.mouse.hitTest(_root.sidebar)) { _root.sidebar._alpha = 100; } else { _root.sidebar._alpha = 30; _root.sidebar.cacheAsBitmap = true; } _root.timer++; if (_root.timer == 7000) { for (var name in _root) { if (typeof(_root[name]) == "movieclip") { if ((_root[name].fulllife != undefined) && ((_root[name].life == undefined) || (_root[name].life <= 0))) { _root[name].removeMovieClip(); } } } i = _root.friendlylist.length - 1; while (i > -1) { currents = _root.friendlylist[i]; if ((_root.friendlylist.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.friendlylist.splice(i, 1); } i--; } i = _root.enemyarray.length - 1; while (i > -1) { currents = _root.enemyarray[i]; if ((_root.enemyarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.enemyarray.splice(i, 1); } i--; } i = _root.objarray.length - 1; while (i > -1) { currents = _root.objarray[i]; if ((_root.objarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.objarray.splice(i, 1); } i--; } i = _root.unitsarray.length - 1; while (i > -1) { currents = _root.unitsarray[i]; if (((_root.unitsarray.countduplicate(currents) > 1) || (_root[currents].life == undefined)) || (_root[currents + "symbols"]._x == undefined)) { _root.unitsarray.splice(i, 1); } i--; } i = _root.shellarray.length - 1; while (i > -1) { currents = _root.shellarray[i]; if (_root.shellarray.countduplicate(currents) > 1) { _root.shellarray.splice(i, 1); } i--; } _root.timer = 0; } if (Key.isDown(32)) { _root.mouse.gotoAndStop(1); _root.selectedarray = []; i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; _root[current].selector._visible = false; _root[current].selected1 = false; _root.sidebar.calccost(); i--; } } if (this._visible) { a = _root._xmouse - origx; b = _root._ymouse - origy; this._width = Math.abs(a); this._height = Math.abs(b); if (a < 0) { this._xscale = this._xscale * -1; } if (b < 0) { this._yscale = this._yscale * -1; } } }
Instance of Symbol 1044 MovieClip "ai" in Frame 10
onClipEvent (load) { _root.ai.timer = 0; this.aicheck = function () { if (type == 1) { commandteamtype(); } if (type == 2) { commandteamtype2(); } if (type == 3) { commandteamtype3(); } if (type == 4) { commandteamtype4(); } if (type == 5) { commandteamtype5(); } timeelasped++; ppp = _root.enemyarray.toString(); Mouse.hide(); _root.ai.timer++; if (_root.ai.timer == Math.round(difficulty * 150)) { if (this.teamslist.length < teamsneeded) { nabei = Math.round(minteamlength + (Math.random() * teamlength)); teamtype("team" + pteam, [], nabei); pteam++; } i = 0; while (i < this.teamslist.length) { current = this.teamslist[i]; if (_root[current].members != undefined) { _root[current].checks; } i++; } } if (_root.ai.timer == Math.round(difficulty * 500)) { if (_root.enemymines < minesneeded) { a = dozers[0]; if ((!_root[a].build) && (!_root[current].walking)) { if (Math.random() < mineweight) { p = Math.floor(Math.random() * minesneeded); _root[current].aibuild2("enemymine", _root["minept" + p]._x, _root["minept" + p]._y, 500, 0, 5); _root[current].build = true; } } } _root.ai.timer = 0; n = 1; while (n < turretsneeded) { if ((!_root["enemyturret" + n]) && (_root.enemymoney >= turretmoney)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { bb = Math.random(); if (bb < turret1wt) { _root[current].aibuild2("enemyturret", _root["turretpt" + n]._x, _root["turretpt" + n]._y, 1000, n, 1.5); _root[current].build = true; break; } if ((bb > turret1wt) && (bb < turret2wt)) { _root[current].aibuild2("enemymultiple", _root["turretpt" + n]._x, _root["turretpt" + n]._y, 1500, n, 1.5); _root[current].build = true; break; } if (bb > turret3wt) { _root[current].aibuild2("enemylaser", _root["turretpt" + n]._x, _root["turretpt" + n]._y, 1500, n, 1.5); _root[current].build = true; break; } } i--; } } n++; } } if (_root.ai.timer == Math.round(difficulty * 250)) { if ((_root.enemycomcentre < 1) && (_root.enemymoney >= 5000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemycomcentre", _root.comcentrept._x, _root.comcentrept._y, 5000, 0.5); _root[current].build = true; break; } i--; } } if ((_root.enemyservicedepot < 1) && (_root.enemymoney >= servicedepotmoney)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyservicedepot", _root.servpt._x, _root.servpt._y, 1500, 1); _root[current].build = true; break; } i--; } } if ((_root.enemyrefinery < 1) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyrefinery", _root.refpt._x, _root.refpt._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemywarfactory == 0) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemywarfactory", _root.warpt._x, _root.warpt._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemytechcentre < 1) && (_root.enemymoney >= techcentremoney)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemytechcentre", _root.techpt._x, _root.techpt._y, 1500, 0.7); _root[current].build = true; break; } i--; } } if (((_root.enemytechcentre1._x != undefined) && (timeelasped >= this.nuketime)) && (_root.enemyweaponsilo == 0)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyweaponsilo", _root.silopt._x, _root.silopt._y, 10000, 0.2); _root[current].build = true; timeelasped = 0; break; } i--; } } } if ((Math.round(_root.ai.timer / 30) * 30) == _root.ai.timer) { if (_root.enemyarray.length <= 0) { _root.gotoAndStop("victory"); } if (_root.friendlylist.length <= 0) { _root.gotoAndStop("defeat"); } n = _root.enemystructurearray.length - 1; while (n > -1) { current2 = _root.enemystructurearray[n]; i = dozers.length - 1; while (i > -1) { current = dozers[i]; if (_root[current].build || (_root[current].walking)) { } else { dx = _root[current]._x - _root[current2]._x; dy = _root[current]._y - _root[current2]._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 1500) { ant = 0; if (((_root[current2].life < _root[current2].fulllife) && (_root[current2].percent == undefined)) && (_root[current2].auto._currentframe == 1)) { if (!_root[current].hitTest(_root[current2])) { _root[current].aigoto(_root[current2]._x, _root[current2]._y, false); } _root[current2].auto.play(); h = array1.length - 1; while (h > -1) { currents = _root.array1[h]; if ((((_root[currents].natack == undefined) && (!_root[currents].walking)) && (!_root[currents].fireing)) && (ant < 5)) { ant++; _root[currents].aigoto(_root[current2]._x, _root[current2]._y, false); if (_root[current2].targetobj != undefined) { targetobj = _root[current2].targetobj; _root[currents].aiattack(targetobj); } } h--; } } } break; } i--; } n--; } } if ((Math.round(_root.ai.timer / 70) * 70) == _root.ai.timer) { if (((dozers.length < dozersneeded) && (_root.enemycomcentre1._x != undefined)) && (_root.enemymoney > 1000)) { _root.enemymoney = _root.enemymoney - (1000 * difficulty); _root.attachMovie("enemydozer", "enemydozer" + _root.n, _root.n); _root["enemydozer" + _root.n]._x = _root.enemycomcentre1._x; _root["enemydozer" + _root.n]._y = _root.enemycomcentre1._y; _root["enemydozer" + _root.n]._rotation = 0; _root.n++; } if ((_root.enemymoney > uppermoney) && (!build)) { build = true; rounds++; } if ((_root.enemymoney < lowermoney) && (build)) { build = false; } arrayone = _root.array1.toString(); if (_root.enemywarfactory1.life > 0) { if ((_root.enemyoiltrucks < oiltrucksneeded) && (_root.enemymoney >= 2000)) { _root.enemymoney = _root.enemymoney - (1500 * difficulty); _root.attachMovie("enemyoiltruck", "enemyoiltruck" + _root.n, _root.n); _root["enemyoiltruck" + _root.n]._x = _root.enemywarfactory1._x; _root["enemyoiltruck" + _root.n]._y = _root.enemywarfactory1._y; _root["enemyoiltruck" + _root.n]._rotation = 0; _root.n++; } if (build && (_root.enemymoney > 0)) { i = 0; while (i < (this.teamslist.length - 1)) { current = this.teamslist[i]; if (_root[current].members.length < _root[current].maxlength) { a = Math.random(); if ((a > 0) && (a < lightwt)) { unittype = "enemylight"; _root.enemymoney = _root.enemymoney - (1000 * difficulty); } if ((a > lightwt) && (a < rocketwt)) { unittype = "enemyrocket"; _root.enemymoney = _root.enemymoney - (1500 * difficulty); } if ((a > rocketwt) && (a < heavywt)) { unittype = "enemyheavy"; _root.enemymoney = _root.enemymoney - (2500 * difficulty); } if ((a > heavywt) && (a < humveewt)) { unittype = "enemyhumvee"; _root.enemymoney = _root.enemymoney - (500 * difficulty); } if ((a > humveewt) && (a < 1)) { unittype = "enemyartillery"; _root.enemymoney = _root.enemymoney - 2000; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.enemywarfactory1._x; _root[unittype + _root.n]._y = _root.enemywarfactory1._y + 100; _root[unittype + _root.n]._rotation = 0; _root[current].members.push(unittype + _root.n); unittype = undefined; _root.n++; break; } i++; } if ((_root.enemylasertank1._x == undefined) && (_root.enemytechcentre1._x != undefined)) { if (Math.random() > 0.9) { _root.attachMovie("enemylasertank", "enemylasertank1", _root.n); _root.enemylasertank1._x = _root.enemywarfactory1._x; _root.enemylasertank1._y = _root.enemywarfactory1._y + 100; _root.enemylasertank1._rotation = 0; _root.enemymoney = _root.enemymoney - (7500 * difficulty); _root[current].members.push("enemylasertank1"); } } } } } }; this.stupidai = function () { ppp = _root.enemyarray.toString(); Mouse.hide(); _root.ai.timer++; if (_root.ai.timer == Math.round(difficulty * 500)) { _root.ai.timer = 0; if (_root.enemymines < minesneeded) { a = dozers[0]; if ((!_root[a].build) && (!_root[current].walking)) { if (Math.random() < mineweight) { p = Math.floor(Math.random() * minesneeded); _root[current].aibuild2("enemymine", _root["minept" + p]._x, _root["minept" + p]._y, 500, 0, 5); _root[current].build = true; } } } n = 1; while (n < turretsneeded) { if ((!_root["enemyturret" + n]) && (_root.enemymoney >= turretmoney)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { bb = Math.random(); if (bb < turret1wt) { _root[current].aibuild2("enemyturret", _root["turretpt" + n]._x, _root["turretpt" + n]._y, 1000, n, 1.5); _root[current].build = true; break; } if ((bb > turret1wt) && (bb < turret2wt)) { _root[current].aibuild2("enemymultiple", _root["turretpt" + n]._x, _root["turretpt" + n]._y, 1500, n, 1.5); _root[current].build = true; break; } if (bb > turret3wt) { _root[current].aibuild2("enemylaser", _root["turretpt" + n]._x, _root["turretpt" + n]._y, 1500, n, 1.5); _root[current].build = true; break; } } i--; } } n++; } } if (_root.ai.timer == Math.round(difficulty * 250)) { if ((_root.enemycomcentre < 1) && (_root.enemymoney >= 5000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemycomcentre", _root.comcentrept._x, _root.comcentrept._y, 5000, 0.5); _root[current].build = true; break; } i--; } } if ((_root.enemyservicedepot < 1) && (_root.enemymoney >= servicedepotmoney)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyservicedepot", _root.servpt._x, _root.servpt._y, 1500, 1); _root[current].build = true; break; } i--; } } if ((_root.enemyrefinery < 1) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyrefinery", _root.refpt._x, _root.refpt._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemywarfactory == 0) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemywarfactory", _root.warpt._x, _root.warpt._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemytechcentre < 1) && (_root.enemymoney >= techcentremoney)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemytechcentre", _root.techpt._x, _root.techpt._y, 1500, 0.7); _root[current].build = true; break; } i--; } } if (((_root.enemytechcentre1._x != undefined) && (timeelasped >= this.nuketime)) && (_root.enemyweaponsilo == 0)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyweaponsilo", _root.silopt._x, _root.silopt._y, 10000, 0.2); _root[current].build = true; timeelasped = 0; break; } i--; } } i = 0; while (i < _root.array1.length) { current = _root.array1[i]; if (_root[current].life == undefined) { _root.array1.splice(i, 1); } if (i < (_root.array1.length - peoplestay)) { _root.array2.push(current); _root.array1.splice(i, 1); if (Math.random() > 0.5) { _root[current].avoid = true; } if (Math.random() > 0.8) { _root[current].aggressive = false; } } else if (_root[current].unittype != "artillery") { this.waypoint = "waypoint" + String(Math.floor(Math.random() * 7) + 100); if (_root[this.waypoint]._x != undefined) { _root[current].aigoto(_root[this.waypoint]._x, _root[this.waypoint]._y, false); } } i++; } } if ((Math.round(_root.ai.timer / 30) * 30) == _root.ai.timer) { if (_root.enemyarray.length <= 0) { _root.gotoAndStop("victory"); } if (_root.friendlylist.length <= 0) { _root.gotoAndStop("defeat"); } n = _root.enemystructurearray.length - 1; while (n > -1) { current2 = _root.enemystructurearray[n]; i = dozers.length - 1; while (i > -1) { current = dozers[i]; if (_root[current].build || (_root[current].walking)) { } else { dx = _root[current]._x - _root[current2]._x; dy = _root[current]._y - _root[current2]._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 1500) { ant = 0; if (((_root[current2].life < _root[current2].fulllife) && (_root[current2].percent == undefined)) && (_root[current2].auto._currentframe == 1)) { if (!_root[current].hitTest(_root[current2])) { _root[current].aigoto(_root[current2]._x, _root[current2]._y, false); } _root[current2].auto.play(); h = array1.length - 1; while (h > -1) { currents = _root.array1[h]; if ((((_root[currents].natack == undefined) && (!_root[currents].walking)) && (!_root[currents].fireing)) && (ant < 5)) { ant++; _root[currents].aigoto(_root[current2]._x, _root[current2]._y, false); if (_root[current2].targetobj != undefined) { targetobj = _root[current2].targetobj; _root[currents].aiattack(targetobj); } } h--; } } } break; } i--; } n--; } } if ((Math.round(_root.ai.timer / 70) * 70) == _root.ai.timer) { if (((dozers.length < dozersneeded) && (_root.enemycomcentre1._x != undefined)) && (_root.enemymoney > 1000)) { _root.enemymoney = _root.enemymoney - 1000; _root.attachMovie("enemydozer", "enemydozer" + _root.n, _root.n); _root["enemydozer" + _root.n]._x = _root.enemycomcentre1._x; _root["enemydozer" + _root.n]._y = _root.enemycomcentre1._y; _root["enemydozer" + _root.n]._rotation = 0; _root.n++; } if ((_root.enemymoney > uppermoney) && (!build)) { build = true; rounds++; } if ((_root.enemymoney < lowermoney) && (build)) { build = false; } i = 0; while (i < _root.array2.length) { current = _root.array2[i]; if (_root[current].life == undefined) { _root.array2.splice(i, 1); } else if ((!_root[current].fireing) && (!_root[current].walking)) { lo = Math.floor(Math.random() * (_root.friendlylist.length - 1)); unit = _root.friendlylist[lo]; _root[current].aiattack(unit); } i++; } arrayone = _root.array1.toString(); if (_root.enemywarfactory1.life > 0) { if ((_root.enemyoiltrucks < oiltrucksneeded) && (_root.enemymoney >= 2000)) { _root.enemymoney = _root.enemymoney - 1500; _root.attachMovie("enemyoiltruck", "enemyoiltruck" + _root.n, _root.n); _root["enemyoiltruck" + _root.n]._x = _root.enemywarfactory1._x; _root["enemyoiltruck" + _root.n]._y = _root.enemywarfactory1._y; _root["enemyoiltruck" + _root.n]._rotation = 0; _root.n++; } if (build || ((_root.array1.length < totalpeople) && (_root.enemymoney > 0))) { a = Math.random(); if ((a > 0) && (a < lightwt)) { unittype = "enemylight"; _root.enemymoney = _root.enemymoney - 1000; } if ((a > lightwt) && (a < rocketwt)) { unittype = "enemyrocket"; _root.enemymoney = _root.enemymoney - 1500; } if ((a > rocketwt) && (a < heavywt)) { unittype = "enemyheavy"; _root.enemymoney = _root.enemymoney - 2500; } if ((a > heavywt) && (a < humveewt)) { unittype = "enemyhumvee"; _root.enemymoney = _root.enemymoney - 500; } if ((a > humveewt) && (a < 1)) { unittype = "enemyartillery"; _root.enemymoney = _root.enemymoney - 2000; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.enemywarfactory1._x; _root[unittype + _root.n]._y = _root.enemywarfactory1._y + 100; _root[unittype + _root.n]._rotation = 0; _root.array1.push(unittype + _root.n); unittype = undefined; _root.n++; if ((_root.enemylasertank1._x == undefined) && (_root.enemytechcentre1._x != undefined)) { if (Math.random() > 0.9) { _root.attachMovie("enemylasertank", "enemylasertank1", _root.n); _root.enemylasertank1._x = _root.enemywarfactory1._x; _root.enemylasertank1._y = _root.enemywarfactory1._y + 100; _root.enemylasertank1._rotation = 0; _root.enemymoney = _root.enemymoney - 7500; _root.array1.push("enemylasertank1"); } } } } } }; } onClipEvent (enterFrame) { if (_root.smartai) { aicheck(); } else { stupidai(); } }
Instance of Symbol 1009 MovieClip in Frame 10
onClipEvent (enterFrame) { po++; if (po == _root.obsarray.length) { po = 0; } current = _root.obsarray[po]; i = _root.unitsarray.length - 1; while (i > -1) { current2 = _root.unitsarray[i]; if (_root[current2].walking || (_root[current2].fireing)) { if (_root.back[current].hitTest(_root[current2])) { if (_root[current2].dummy.obstacle == undefined) { _root[current2].dummy.obstacle = false; } if ((!_root[current2].dummy.obstacle) || (_root[current2].dummy.obstacle == undefined)) { _root[current2].dummy.obstacle = true; if (_root.back[current].pos == "hoz") { roattion = _root[current2].dummy._rotation; trace(roattion + "hoz"); if ((_root[current2].dummy._rotation >= -90) && (_root[current2].dummy._rotation < 90)) { _root[current2].dummy.flag2 = _root.back[current].rights; } if ((_root[current2].dummy._rotation >= 90) && (_root[current2].dummy._rotation < 360)) { _root[current2].dummy.flag2 = _root.back[current].lefts; } } if (_root.back[current].pos == "ver") { roattion = _root[current2].dummy._rotation; trace(roattion + "ver"); if ((_root[current2].dummy._rotation <= 0) && (_root[current2].dummy._rotation > -180)) { _root[current2].dummy.flag2 = _root.back[current].tops; } if ((_root[current2].dummy._rotation > 0) && (_root[current2].dummy._rotation < 180)) { _root[current2].dummy.flag2 = _root.back[current].bottoms; } } } } } i--; } } onClipEvent (load) { po = 0; }
Instance of Symbol 20 MovieClip in Frame 10
onClipEvent (enterFrame) { po++; if (po == _root.shroudarray.length) { po = 0; } current = _root.shroudarray[po]; var revealed = false; i = _root.friendlylist.length - 1; while (i > -1) { current2 = _root.friendlylist[i]; if (_root[current2].unittype != "construction") { if (_root[current].hitTest(_root[current2])) { revealed = true; break; } } i--; } if (revealed) { _root[current]._visible = false; } if ((!revealed) && (_root.fog)) { _root[current]._visible = true; } } onClipEvent (load) { po = 0; }
Frame 11
for (var name in _root) { if (typeof(_root[name]) == "movieclip") { _root[name].removeMovieClip(); } } stop();
Instance of Symbol 369 MovieClip in Frame 11
/* no clip actions */
Instance of Symbol 1009 MovieClip in Frame 11
onClipEvent (keyDown) { for (var name in _root) { if (typeof(_root[name]) == "movieclip") { _root[name].removeMovieClip(); } } _root.tutorial._visible = false; _root.gotoAndStop("end2"); } onClipEvent (load) { _root.score = (_root.kills * _root.kills) + ((656 * (_root.kills * (_root.built + 1))) / (_root.losses * _root.losses)); _root.buil = 0; _root.kill = 0; _root.loss = 0; _root.scores = 0; trace(_root.score + "score"); } onClipEvent (enterFrame) { if (_root.buil < _root.built) { _root.buil++; } if (_root.kill < _root.kills) { _root.kill++; } if (_root.loss < _root.losses) { _root.loss++; } if (_root.scores < _root.score) { _root.scores = _root.scores + 158; } }
Frame 12
for (var name in _root) { if (typeof(_root[name]) == "movieclip") { _root[name].removeMovieClip(); } } stop();
Instance of Symbol 1009 MovieClip in Frame 12
onClipEvent (keyDown) { for (var name in _root) { if (typeof(_root[name]) == "movieclip") { _root[name].removeMovieClip(); } } _root.tutorial._visible = false; _root.gotoAndStop("end2"); } onClipEvent (load) { _root.score = (656 * (_root.kills * (_root.built + 1))) / (_root.losses * _root.losses); _root.buil = 0; _root.kill = 0; _root.loss = 0; _root.scores = 0; trace(_root.score + "score"); } onClipEvent (enterFrame) { if (_root.buil < _root.built) { _root.buil++; } if (_root.kill < _root.kills) { _root.kill++; } if (_root.loss < _root.losses) { _root.loss++; } if (_root.scores < _root.score) { _root.scores = _root.scores + 100; } }
Frame 13
_root.attachMovie("sidebar", "sidebar", 1000000); _root.attachMovie("mo", "mouse", 1000001); _root.sidebar._x = 132.6; _root.sidebar._y = 615; _root.sidebar._xscale = -58.5; _root.sidebar._yscale = 49.14; _root.sidebar._rotation = 90; _global.orix = _root.back._x; _global.oriy = _root.back._y; _root.attachMovie("box5", "box6", 10000004); _root.box6._x = x1; _root.box6._y = y1; _root.box6._height = (_root.box5._height / _root.back._height) * (y4 - y1); _root.box6._width = (_root.box5._width / _root.back._width) * (x4 - x1); _global.constanty = (y4 - y1) / _root.back._height; _global.constantx = (x4 - x1) / _root.back._width; _global.constantsy = (y4 - y1) / _root.back._height; _global.constantsx = (x4 - x1) / _root.back._width; _root.array1 = []; trace("skir2"); _root.rallylist = []; _root.enemyrallylist = []; MovieClip.prototype.aiattack = function (what) { current2 = what; if (_root[current2]._x != undefined) { current = this._name; _root[current].targetobj = current2; _root[current].attack = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root["flag" + current]._visible = false; _root["flag" + current]._x = _root[current2]._x; _root["flag" + current]._y = _root[current2]._y; _root.objarray.push("flag" + current); _root[current].walking = true; _root.n++; hit = true; } }; MovieClip.prototype.aigoto = function (x1, y1, lock) { current = this._name; _root[current].attack = false; _root[current].walking = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag", "flag" + current, _root.n); if ((!lock) || (lock == undefined)) { _root["flag" + current]._x = x1; _root["flag" + current]._y = y1; } if (lock) { _root["flag" + current]._x = x1 + _root.back._x; _root["flag" + current]._y = y1 + _root.back._y; } _root["flag" + current].vsisible = false; _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; }; Array.prototype.arrayfind = function (element) { var _local4 = false; trace(this.length); var _local3 = this.length - 1; while (_local3 > -1) { elementsearched = this[_local3]; trace(_root[elementsearched].unittype + elementsearched); if (_root[elementsearched].unittype == element) { _local4 = true; break; } _local3--; } return(_local4); }; Array.prototype.arrayfindfirst = function (element) { var _local3 = false; trace(this.length); var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { _local3 = _local2; break; } _local2--; } return(_local3); }; Array.prototype.findsfirst = function (element) { var _local4 = false; var _local3 = this.length - 1; while (_local3 > -1) { elementsearched2 = this[_local3]; if (_root[elementsearched2].unittype == element) { _local4 = elementsearched2; break; } _local3--; } return(_local4); }; MovieClip.prototype.movesym = function () { _root[this._name + "symbols"]._x = (x1 + ((this._x - _root.back._x) * constantx)) - 10; _root[this._name + "symbols"]._y = (y1 + ((this._y - _root.back._y) * constanty)) - 10; }; nextFrame(); _root.timer = 6999; _root.limit = 1200; Array.prototype.countduplicate = function (element) { var _local3 = 0; var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { _local3++; } _local2--; } return(_local3); }; Array.prototype.arrayfind = function (element) { var _local3 = false; var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { _local3 = true; break; } _local2--; } return(_local3); }; Array.prototype.finds = function (element) { var _local3 = -1; var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { _local3 = _local2; break; } _local2--; } return(_local3); }; Array.prototype.findandsplice = function (element) { var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { this.splice(_local2, 1); break; } _local2--; } }; _root.objarray = []; _root.num = 0; _root.sparsex = [0, -50, 150, 100, -100, 150, 250, 200, -250, 300, 300, 350, -350, 400, -410, 500, -550]; _root.sparsey = [0, -50, 80, -180, 250, -50, 140, -150, 60, 150, -70, -220, -350, 350, -350, 375, -375]; _root.linex = [0, 0, 50, 50, 100, 100, 150, 150, 200, 200, 350, 350, 400, 400, 450, 450, 500, 500, 550, 550]; _root.liney = [0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50]; _root.unitsarray = []; _root.flagsarray = []; _root.selectedarray = []; _root.enemyarray = []; _root.friendlylist = []; _root.shellarray = []; _root.enemyminearray = []; _root.minearray = []; _root.enemyminearray = []; _root.money = _root.monet; _root.enemymoney = _root.money; _root.warfactory = 0; _root.enemywarfactory = 0; _global.dozers = []; _root.dozerarray = []; _root.enemydozerarray = []; _root.structurearray = []; _root.enemyservicedepot = 0; _root.enemystructurearray = []; _root.comcentre = 0; _root.enemycomcentre = 0; _root.oilarray = []; _root.enemyoiltruckarray = []; _root.oiltruckarray = []; _root.refinery = 0; _root.enemyrefinery = 0; _root.techcentre = 0; _root.enemytechcentre = 0; _root.enemyweaponsilo = 0; _root.turretarray = []; _root.enemyturretarray = []; _root.enemyturret1 = false; _root.enemyturret2 = false; _root.enemyturret3 = false; _root.enemyturret4 = false; _root.enemyturret5 = false; _root.n = 1000;
Instance of Symbol 1070 MovieClip "back" in Frame 13
onClipEvent (load) { this._x = 0; this._y = 0; }
Frame 14
_root.sidebar.mapp.gotoAndStop(6); Mouse.hide(); stop(); stop(); stop();
Instance of Symbol 1022 MovieClip in Frame 14
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(38))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y + 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 14
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(37))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x + 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 14
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(39))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x - 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - 20; i--; } } } }
Instance of Symbol 1022 MovieClip in Frame 14
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(40))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y - 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y - 20; i--; } } } }
Instance of Symbol 1070 MovieClip "back" in Frame 14
onClipEvent (load) { this._x = 0; this._y = 0; }
Instance of Symbol 1029 MovieClip "oil3" in Frame 14
onClipEvent (load) { this.oilspill._xscale = 100; this.oilspill._yscale = 100; }
Instance of Symbol 1029 MovieClip "oil2" in Frame 14
onClipEvent (load) { this.oilspill._xscale = 100; this.oilspill._yscale = 100; }
Instance of Symbol 1038 MovieClip "burton" in Frame 14
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 20 MovieClip in Frame 14
onClipEvent (enterFrame) { po++; if (po == _root.shroudarray.length) { po = 0; } current = _root.shroudarray[po]; var revealed = false; i = _root.friendlylist.length - 1; while (i > -1) { current2 = _root.friendlylist[i]; if (_root[current2].unittype != "construction") { if (_root[current].hitTest(_root[current2])) { revealed = true; break; } } i--; } if (revealed) { _root[current]._visible = false; } if ((!revealed) && (_root.fog)) { _root[current]._visible = true; } } onClipEvent (load) { po = 0; }
Instance of Symbol 1036 MovieClip "rig19" in Frame 14
onClipEvent (load) { oilfield = "oil1"; _root.objarray.push(this._name); }
Instance of Symbol 1009 MovieClip in Frame 14
/* no clip actions */
Instance of Symbol 1042 MovieClip "box" in Frame 14
onClipEvent (mouseDown) { x = _root.mouse._x - 30; y = _root.mouse._y - 30; if (((_root.sidebar.mapp.hitTest(x, y, true) && (_root.comcentre1.life > 0)) && (_root.comcentre1.life != undefined)) && (_root.sidebar._visible)) { x1s = x - x1; y1s = y - y1; x2s = _root.box6._x - x1; y2s = _root.box6._y - y1; _root.box6._x = x; _root.box6._y = y; x1s = x1s / constantx; y1s = y1s / constanty; x2s = x2s / constantx; y2s = y2s / constanty; _root.back._x = _root.back._x - (x1s - x2s); _root.back._y = _root.back._y - (y1s - y2s); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - (x1s - x2s); _root[current]._y = _root[current]._y - (y1s - y2s); i--; } } if ((!_root.sidebar.hitTest(x, y, false)) || (!_root.sidebar._visible)) { if (_root.selectedarray.arrayfind("warfactory1")) { _root.rallypoint._x = _root.mouse._x; _root.rallypoint._y = _root.mouse._y; } hits = false; this._x = _root._xmouse; this._y = _root._ymouse; i = _root.friendlylist.length - 1; while (i > -1) { current = _root.friendlylist[i]; if (_root[current].hitTest(this) && (current != "servicedepot1")) { hits = true; break; } i--; } origx = _root.mouse._x; origy = _root.mouse._y; this._visible = true; array = _root.formation; _root.formation = undefined; if (!hits) { i = _root.selectedarray.length - 1; while (i > -1) { current = _root.selectedarray[i]; if ((!_root[current].enemy) && (_root[current].speed != undefined)) { _root[current].turret._rotation = _root[current].dummy._rotation; c = _root.enemyarray.length - 1; while (c > -1) { current2 = _root.enemyarray[c]; if (_root.mouse.hitTest(_root[current2])) { _root[current].targetobj = current2; _root[current].attack = true; _root[current].dummy.obstacle = false; _root[current].dummy.flag2 = undefined; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root["flag" + current]._x = _root.boxns._x; _root["flag" + current]._y = _root.boxns._y; _root[current].locx = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root[current].locy = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root.objarray.push("flag" + current); _root[current].walking = true; _root.n++; hit = true; break; } c--; } if (!hit) { origx = _root.mouse._x + _root[array + "x"][i]; origy = _root.mouse._y + _root[array + "y"][i]; if (isNaN(origx)) { origx = _root.mouse._x; } if (isNaN(origy)) { origy = _root.mouse._y; } current = _root.selectedarray[i]; _root[current].destx = origx; _root[current].desty = origy; _root[current].attack = false; _root[current].locx = undefined; _root[current].locy = undefined; _root[current].walking = true; _root[current].dummy.obstacle = false; _root[current].dummy.flag2 = undefined; _root["flag" + current].removeMovieClip(); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag", "flag" + current, _root.n); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } } if (Key.isDown(17)) { _root[current].targetobj = "flag" + current; _root[current].attack = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } hit = false; i--; } } } } onClipEvent (mouseUp) { x = _root.mouse._x; y = _root.mouse._y; _root.mouse.gotoAndStop(2); if ((!_root.sidebar.hitTest(x, y, true)) || (!_root.sidebar._visible)) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (_root[current].hitTest(this) && (!_root.selectedarray.arrayfind(current))) { _root[current].selector._visible = true; _root[current].selected1 = true; _root.selectedarray.push(current); } i--; } } origx = undefined; origy = undefined; this._visible = false; _root.sidebar.calccost(); } onClipEvent (enterFrame) { if (_root.mouse.hitTest(_root.sidebar)) { _root.sidebar._alpha = 100; } else { _root.sidebar._alpha = 30; } _root.timer++; if (_root.timer == 7000) { for (var name in _root) { if (typeof(_root[name]) == "movieclip") { if ((_root[name].fulllife != undefined) && ((_root[name].life == undefined) || (_root[name].life <= 0))) { _root[name].removeMovieClip(); } } } i = _root.friendlylist.length - 1; while (i > -1) { currents = _root.friendlylist[i]; if ((_root.friendlylist.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.friendlylist.splice(i, 1); } i--; } i = _root.enemyarray.length - 1; while (i > -1) { currents = _root.enemyarray[i]; if ((_root.enemyarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.enemyarray.splice(i, 1); } i--; } i = _root.objarray.length - 1; while (i > -1) { currents = _root.objarray[i]; if ((_root.objarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.objarray.splice(i, 1); } i--; } i = _root.unitsarray.length - 1; while (i > -1) { currents = _root.unitsarray[i]; if (((_root.unitsarray.countduplicate(currents) > 1) || (_root[currents].life == undefined)) || (_root[currents + "symbols"]._x == undefined)) { _root.unitsarray.splice(i, 1); } i--; } i = _root.shellarray.length - 1; while (i > -1) { currents = _root.shellarray[i]; if (_root.shellarray.countduplicate(currents) > 1) { _root.shellarray.splice(i, 1); } i--; } _root.timer = 0; } if (Key.isDown(32)) { _root.mouse.gotoAndStop(1); _root.selectedarray = []; i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; _root[current].selector._visible = false; _root[current].selected1 = false; _root.sidebar.calccost(); i--; } } if (this._visible) { a = _root._xmouse - origx; b = _root._ymouse - origy; this._width = Math.abs(a); this._height = Math.abs(b); if (a < 0) { this._xscale = this._xscale * -1; } if (b < 0) { this._yscale = this._yscale * -1; } } }
Instance of Symbol 1009 MovieClip in Frame 14
onClipEvent (enterFrame) { po++; if (po == _root.obsarray.length) { po = 0; } current = _root.obsarray[po]; i = _root.unitsarray.length - 1; while (i > -1) { current2 = _root.unitsarray[i]; if (_root[current2].walking || (_root[current2].fireing)) { if (_root.back[current].hitTest(_root[current2])) { if (_root[current2].dummy.obstacle == undefined) { _root[current2].dummy.obstacle = false; } if ((!_root[current2].dummy.obstacle) || (_root[current2].dummy.obstacle == undefined)) { _root[current2].dummy.obstacle = true; if (_root.back[current].pos == "hoz") { roattion = _root[current2].dummy._rotation; trace(roattion + "hoz"); if ((_root[current2].dummy._rotation >= -90) && (_root[current2].dummy._rotation < 90)) { _root[current2].dummy.flag2 = _root.back[current].rights; } if ((_root[current2].dummy._rotation >= 90) && (_root[current2].dummy._rotation < 360)) { _root[current2].dummy.flag2 = _root.back[current].lefts; } } if (_root.back[current].pos == "ver") { roattion = _root[current2].dummy._rotation; trace(roattion + "ver"); if ((_root[current2].dummy._rotation <= 0) && (_root[current2].dummy._rotation > -180)) { _root[current2].dummy.flag2 = _root.back[current].tops; } if ((_root[current2].dummy._rotation > 0) && (_root[current2].dummy._rotation < 180)) { _root[current2].dummy.flag2 = _root.back[current].bottoms; } } } } } i--; } } onClipEvent (load) { po = 0; }
Instance of Symbol 1044 MovieClip "ai" in Frame 14
onClipEvent (load) { this.aicheck = function () { if (type == 1) { commandteamtype(); } if (type == 2) { commandteamtype2(); } if (type == 3) { commandteamtype3(); } if (type == 4) { commandteamtype4(); } if (type == 5) { commandteamtype5(); } timeelasped++; ppp = _root.enemyarray.toString(); Mouse.hide(); _root.ai.timer++; if (_root.ai.timer == Math.round(difficulty * 150)) { if (this.teamslist.length < teamsneeded) { nabei = Math.round(minteamlength + (Math.random() * teamlength)); teamtype("team" + pteam, [], nabei); pteam++; } i = 0; while (i < this.teamslist.length) { current = this.teamslist[i]; if (_root[current].members != undefined) { _root[current].checks; } i++; } } if (_root.ai.timer == Math.round(difficulty * 500)) { if (_root.enemymines < minesneeded) { a = dozers[0]; if ((!_root[a].build) && (!_root[current].walking)) { if (Math.random() < mineweight) { p = Math.floor(Math.random() * minesneeded); _root[current].aibuild2("enemymine", _root["minept" + p]._x, _root["minept" + p]._y, 500, 0, 5); _root[current].build = true; } } } _root.ai.timer = 0; n = 1; while (n < turretsneeded) { if ((!_root["enemyturret" + n]) && (_root.enemymoney >= turretmoney)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { bb = Math.random(); if (bb < turret1wt) { _root[current].aibuild2("enemyturret", _root["turretpt" + n]._x, _root["turretpt" + n]._y, 1000, n, 1.5); _root[current].build = true; break; } if ((bb > turret1wt) && (bb < turret2wt)) { _root[current].aibuild2("enemymultiple", _root["turretpt" + n]._x, _root["turretpt" + n]._y, 1500, n, 1.5); _root[current].build = true; break; } if (bb > turret3wt) { _root[current].aibuild2("enemylaser", _root["turretpt" + n]._x, _root["turretpt" + n]._y, 1500, n, 1.5); _root[current].build = true; break; } } i--; } } n++; } } if (_root.ai.timer == Math.round(difficulty * 250)) { if ((_root.enemycomcentre < 1) && (_root.enemymoney >= 5000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemycomcentre", _root.comcentrept._x, _root.comcentrept._y, 5000, 0.5); _root[current].build = true; break; } i--; } } if ((_root.enemyservicedepot < 1) && (_root.enemymoney >= servicedepotmoney)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyservicedepot", _root.servpt._x, _root.servpt._y, 1500, 1); _root[current].build = true; break; } i--; } } if ((_root.enemyrefinery < 1) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyrefinery", _root.refpt._x, _root.refpt._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemywarfactory == 0) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemywarfactory", _root.warpt._x, _root.warpt._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemytechcentre < 1) && (_root.enemymoney >= techcentremoney)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemytechcentre", _root.techpt._x, _root.techpt._y, 1500, 0.7); _root[current].build = true; break; } i--; } } if (((_root.enemytechcentre1._x != undefined) && (timeelasped >= this.nuketime)) && (_root.enemyweaponsilo == 0)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyweaponsilo", _root.silopt._x, _root.silopt._y, 10000, 0.2); _root[current].build = true; timeelasped = 0; break; } i--; } } } if ((Math.round(_root.ai.timer / 30) * 30) == _root.ai.timer) { if (_root.enemyarray.length <= 0) { _root.gotoAndStop("victory"); } if (_root.friendlylist.length <= 0) { _root.gotoAndStop("defeat"); } n = _root.enemystructurearray.length - 1; while (n > -1) { current2 = _root.enemystructurearray[n]; i = dozers.length - 1; while (i > -1) { current = dozers[i]; if (_root[current].build || (_root[current].walking)) { } else { dx = _root[current]._x - _root[current2]._x; dy = _root[current]._y - _root[current2]._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 1500) { ant = 0; if (((_root[current2].life < _root[current2].fulllife) && (_root[current2].percent == undefined)) && (_root[current2].auto._currentframe == 1)) { if (!_root[current].hitTest(_root[current2])) { _root[current].aigoto(_root[current2]._x, _root[current2]._y, false); } _root[current2].auto.play(); h = array1.length - 1; while (h > -1) { currents = _root.array1[h]; if ((((_root[currents].natack == undefined) && (!_root[currents].walking)) && (!_root[currents].fireing)) && (ant < 5)) { ant++; _root[currents].aigoto(_root[current2]._x, _root[current2]._y, false); if (_root[current2].targetobj != undefined) { targetobj = _root[current2].targetobj; _root[currents].aiattack(targetobj); } } h--; } } } break; } i--; } n--; } } if ((Math.round(_root.ai.timer / 70) * 70) == _root.ai.timer) { if (((dozers.length < dozersneeded) && (_root.enemycomcentre1._x != undefined)) && (_root.enemymoney > 1000)) { _root.enemymoney = _root.enemymoney - (1000 * difficulty); _root.attachMovie("enemydozer", "enemydozer" + _root.n, _root.n); _root["enemydozer" + _root.n]._x = _root.enemycomcentre1._x; _root["enemydozer" + _root.n]._y = _root.enemycomcentre1._y; _root["enemydozer" + _root.n]._rotation = 0; _root.n++; } if ((_root.enemymoney > uppermoney) && (!build)) { build = true; rounds++; } if ((_root.enemymoney < lowermoney) && (build)) { build = false; } arrayone = _root.array1.toString(); if (_root.enemywarfactory1.life > 0) { if ((_root.enemyoiltrucks < oiltrucksneeded) && (_root.enemymoney >= 2000)) { _root.enemymoney = _root.enemymoney - (1500 * difficulty); _root.attachMovie("enemyoiltruck", "enemyoiltruck" + _root.n, _root.n); _root["enemyoiltruck" + _root.n]._x = _root.enemywarfactory1._x; _root["enemyoiltruck" + _root.n]._y = _root.enemywarfactory1._y; _root["enemyoiltruck" + _root.n]._rotation = 0; _root.n++; } if (build && (_root.enemymoney > 0)) { i = 0; while (i < (this.teamslist.length - 1)) { current = this.teamslist[i]; if (_root[current].members.length < _root[current].maxlength) { a = Math.random(); if ((a > 0) && (a < lightwt)) { unittype = "enemylight"; _root.enemymoney = _root.enemymoney - (1000 * difficulty); } if ((a > lightwt) && (a < rocketwt)) { unittype = "enemyrocket"; _root.enemymoney = _root.enemymoney - (1500 * difficulty); } if ((a > rocketwt) && (a < heavywt)) { unittype = "enemyheavy"; _root.enemymoney = _root.enemymoney - (2500 * difficulty); } if ((a > heavywt) && (a < humveewt)) { unittype = "enemyhumvee"; _root.enemymoney = _root.enemymoney - (500 * difficulty); } if ((a > humveewt) && (a < 1)) { unittype = "enemyartillery"; _root.enemymoney = _root.enemymoney - 2000; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.enemywarfactory1._x; _root[unittype + _root.n]._y = _root.enemywarfactory1._y + 100; _root[unittype + _root.n]._rotation = 0; _root[current].members.push(unittype + _root.n); unittype = undefined; _root.n++; break; } i++; } if ((_root.enemylasertank1._x == undefined) && (_root.enemytechcentre1._x != undefined)) { if (Math.random() > 0.9) { _root.attachMovie("enemylasertank", "enemylasertank1", _root.n); _root.enemylasertank1._x = _root.enemywarfactory1._x; _root.enemylasertank1._y = _root.enemywarfactory1._y + 100; _root.enemylasertank1._rotation = 0; _root.enemymoney = _root.enemymoney - (7500 * difficulty); _root[current].members.push("enemylasertank1"); } } } } } }; this.stupidai = function () { ppp = _root.enemyarray.toString(); Mouse.hide(); _root.ai.timer++; if (_root.ai.timer == Math.round(difficulty * 500)) { if (_root.enemymines < minesneeded) { a = dozers[0]; if ((!_root[a].build) && (!_root[current].walking)) { if (Math.random() < mineweight) { p = Math.floor(Math.random() * minesneeded); _root[current].aibuild2("enemymine", _root["minept" + p]._x, _root["minept" + p]._y, 500, 0, 5); _root[current].build = true; } } } _root.ai.timer = 0; n = 1; while (n < turretsneeded) { if ((!_root["enemyturret" + n]) && (_root.enemymoney >= turretmoney)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { bb = Math.random(); if (bb < turret1wt) { _root[current].aibuild2("enemyturret", _root["turretpt" + n]._x, _root["turretpt" + n]._y, 1000, n, 1.5); _root[current].build = true; break; } if ((bb > turret1wt) && (bb < turret2wt)) { _root[current].aibuild2("enemymultiple", _root["turretpt" + n]._x, _root["turretpt" + n]._y, 1500, n, 1.5); _root[current].build = true; break; } if (bb > turret3wt) { _root[current].aibuild2("enemylaser", _root["turretpt" + n]._x, _root["turretpt" + n]._y, 1500, n, 1.5); _root[current].build = true; break; } } i--; } } n++; } } if (_root.ai.timer == Math.round(difficulty * 250)) { if ((_root.enemycomcentre < 1) && (_root.enemymoney >= 5000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemycomcentre", _root.comcentrept._x, _root.comcentrept._y, 5000, 0.5); _root[current].build = true; break; } i--; } } if ((_root.enemyservicedepot < 1) && (_root.enemymoney >= servicedepotmoney)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyservicedepot", _root.servpt._x, _root.servpt._y, 1500, 1); _root[current].build = true; break; } i--; } } if ((_root.enemyrefinery < 1) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyrefinery", _root.refpt._x, _root.refpt._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemywarfactory == 0) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemywarfactory", _root.warpt._x, _root.warpt._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemytechcentre < 1) && (_root.enemymoney >= techcentremoney)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemytechcentre", _root.techpt._x, _root.techpt._y, 1500, 0.7); _root[current].build = true; break; } i--; } } if (((_root.enemytechcentre1._x != undefined) && (timeelasped >= this.nuketime)) && (_root.enemyweaponsilo == 0)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyweaponsilo", _root.silopt._x, _root.silopt._y, 10000, 0.2); _root[current].build = true; timeelasped = 0; break; } i--; } } i = 0; while (i < _root.array1.length) { current = _root.array1[i]; if (_root[current].life == undefined) { _root.array1.splice(i, 1); } if (i < (_root.array1.length - peoplestay)) { _root.array2.push(current); _root.array1.splice(i, 1); if (Math.random() > 0.5) { _root[current].avoid = true; } if (Math.random() > 0.8) { _root[current].aggressive = false; } } else if (_root[current].unittype != "artillery") { this.waypoint = "waypoint" + String(Math.floor(Math.random() * 7) + 100); if (_root[this.waypoint]._x != undefined) { _root[current].aigoto(_root[this.waypoint]._x, _root[this.waypoint]._y, false); } } i++; } } if ((Math.round(_root.ai.timer / 30) * 30) == _root.ai.timer) { if (_root.enemyarray.length <= 0) { _root.gotoAndStop("victory"); } if (_root.friendlylist.length <= 0) { _root.gotoAndStop("defeat"); } n = _root.enemystructurearray.length - 1; while (n > -1) { current2 = _root.enemystructurearray[n]; i = dozers.length - 1; while (i > -1) { current = dozers[i]; if (_root[current].build || (_root[current].walking)) { } else { dx = _root[current]._x - _root[current2]._x; dy = _root[current]._y - _root[current2]._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 1500) { ant = 0; if (((_root[current2].life < _root[current2].fulllife) && (_root[current2].percent == undefined)) && (_root[current2].auto._currentframe == 1)) { if (!_root[current].hitTest(_root[current2])) { _root[current].aigoto(_root[current2]._x, _root[current2]._y, false); } _root[current2].auto.play(); h = array1.length - 1; while (h > -1) { currents = _root.array1[h]; if ((((_root[currents].natack == undefined) && (!_root[currents].walking)) && (!_root[currents].fireing)) && (ant < 5)) { ant++; _root[currents].aigoto(_root[current2]._x, _root[current2]._y, false); if (_root[current2].targetobj != undefined) { targetobj = _root[current2].targetobj; _root[currents].aiattack(targetobj); } } h--; } } } break; } i--; } n--; } } if ((Math.round(_root.ai.timer / 70) * 70) == _root.ai.timer) { if (((dozers.length < dozersneeded) && (_root.enemycomcentre1._x != undefined)) && (_root.enemymoney > 1000)) { _root.enemymoney = _root.enemymoney - 1000; _root.attachMovie("enemydozer", "enemydozer" + _root.n, _root.n); _root["enemydozer" + _root.n]._x = _root.enemycomcentre1._x; _root["enemydozer" + _root.n]._y = _root.enemycomcentre1._y; _root["enemydozer" + _root.n]._rotation = 0; _root.n++; } if ((_root.enemymoney > uppermoney) && (!build)) { build = true; rounds++; } if ((_root.enemymoney < lowermoney) && (build)) { build = false; } i = 0; while (i < _root.array2.length) { current = _root.array2[i]; if (_root[current].life == undefined) { _root.array2.splice(i, 1); } else if ((!_root[current].fireing) && (!_root[current].walking)) { lo = Math.floor(Math.random() * (_root.friendlylist.length - 1)); unit = _root.friendlylist[lo]; _root[current].aiattack(unit); } i++; } arrayone = _root.array1.toString(); if (_root.enemywarfactory1.life > 0) { if ((_root.enemyoiltrucks < oiltrucksneeded) && (_root.enemymoney >= 2000)) { _root.enemymoney = _root.enemymoney - 1500; _root.attachMovie("enemyoiltruck", "enemyoiltruck" + _root.n, _root.n); _root["enemyoiltruck" + _root.n]._x = _root.enemywarfactory1._x; _root["enemyoiltruck" + _root.n]._y = _root.enemywarfactory1._y; _root["enemyoiltruck" + _root.n]._rotation = 0; _root.n++; } if (build || ((_root.array1.length < totalpeople) && (_root.enemymoney > 0))) { a = Math.random(); if ((a > 0) && (a < lightwt)) { unittype = "enemylight"; _root.enemymoney = _root.enemymoney - 1000; } if ((a > lightwt) && (a < rocketwt)) { unittype = "enemyrocket"; _root.enemymoney = _root.enemymoney - 1500; } if ((a > rocketwt) && (a < heavywt)) { unittype = "enemyheavy"; _root.enemymoney = _root.enemymoney - 2500; } if ((a > heavywt) && (a < humveewt)) { unittype = "enemyhumvee"; _root.enemymoney = _root.enemymoney - 500; } if ((a > humveewt) && (a < 1)) { unittype = "enemyartillery"; _root.enemymoney = _root.enemymoney - 2000; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.enemywarfactory1._x; _root[unittype + _root.n]._y = _root.enemywarfactory1._y + 100; _root[unittype + _root.n]._rotation = 0; _root.array1.push(unittype + _root.n); unittype = undefined; _root.n++; if ((_root.enemylasertank1._x == undefined) && (_root.enemytechcentre1._x != undefined)) { if (Math.random() > 0.9) { _root.attachMovie("enemylasertank", "enemylasertank1", _root.n); _root.enemylasertank1._x = _root.enemywarfactory1._x; _root.enemylasertank1._y = _root.enemywarfactory1._y + 100; _root.enemylasertank1._rotation = 0; _root.enemymoney = _root.enemymoney - 7500; _root.array1.push("enemylasertank1"); } } } } } }; } onClipEvent (enterFrame) { if (_root.smartai) { aicheck(); } else { stupidai(); } }
Frame 15
_root.attachMovie("sidebar", "sidebar", 1000000); _root.attachMovie("mo", "mouse", 1000001); _root.sidebar._x = 132.6; _root.sidebar._y = 615; _root.sidebar._xscale = -58.5; _root.sidebar._yscale = 49.14; _root.sidebar._rotation = 90; _global.orix = _root.back._x; _global.oriy = _root.back._y; _root.attachMovie("box5", "box6", 10000004); _root.box6._x = x1; _root.box6._y = y1; _root.box6._height = (_root.box5._height / _root.back._height) * (y4 - y1); _root.box6._width = (_root.box5._width / _root.back._width) * (x4 - x1); _global.constanty = (y4 - y1) / _root.back._height; _global.constantx = (x4 - x1) / _root.back._width; _global.constantsy = (y4 - y1) / _root.back._height; _global.constantsx = (x4 - x1) / _root.back._width; _root.array1 = []; _root.rallylist = []; _root.enemyrallylist = []; trace("skir2"); MovieClip.prototype.aiattack = function (what) { current2 = what; if (_root[current2]._x != undefined) { current = this._name; _root[current].targetobj = current2; _root[current].attack = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root["flag" + current]._visible = false; _root["flag" + current]._x = _root[current2]._x; _root["flag" + current]._y = _root[current2]._y; _root.objarray.push("flag" + current); _root[current].walking = true; _root.n++; hit = true; } }; MovieClip.prototype.aigoto = function (x1, y1, lock) { current = this._name; _root[current].attack = false; _root[current].walking = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag", "flag" + current, _root.n); if ((!lock) || (lock == undefined)) { _root["flag" + current]._x = x1; _root["flag" + current]._y = y1; } if (lock) { _root["flag" + current]._x = x1 + _root.back._x; _root["flag" + current]._y = y1 + _root.back._y; } _root["flag" + current].vsisible = false; _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; }; Array.prototype.arrayfind = function (element) { var _local4 = false; trace(this.length); var _local3 = this.length - 1; while (_local3 > -1) { elementsearched = this[_local3]; trace(_root[elementsearched].unittype + elementsearched); if (_root[elementsearched].unittype == element) { _local4 = true; break; } _local3--; } return(_local4); }; Array.prototype.arrayfindfirst = function (element) { var _local3 = false; trace(this.length); var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { _local3 = _local2; break; } _local2--; } return(_local3); }; Array.prototype.findsfirst = function (element) { var _local4 = false; var _local3 = this.length - 1; while (_local3 > -1) { elementsearched2 = this[_local3]; if (_root[elementsearched2].unittype == element) { _local4 = elementsearched2; break; } _local3--; } return(_local4); }; MovieClip.prototype.movesym = function () { _root[this._name + "symbols"]._x = (x1 + ((this._x - _root.back._x) * constantx)) - 10; _root[this._name + "symbols"]._y = (y1 + ((this._y - _root.back._y) * constanty)) - 10; }; nextFrame(); _root.timer = 6999; _root.limit = 1200; Array.prototype.countduplicate = function (element) { var _local3 = 0; var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { _local3++; } _local2--; } return(_local3); }; Array.prototype.arrayfind = function (element) { var _local3 = false; var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { _local3 = true; break; } _local2--; } return(_local3); }; Array.prototype.finds = function (element) { var _local3 = -1; var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { _local3 = _local2; break; } _local2--; } return(_local3); }; Array.prototype.findandsplice = function (element) { var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { this.splice(_local2, 1); break; } _local2--; } }; gotoAndStop ("bo"); _root.objarray = []; _root.num = 0; _root.sparsex = [0, -50, 150, 100, -100, 150, 250, 200, -250, 300, 300, 350, -350, 400, -410, 500, -550]; _root.sparsey = [0, -50, 80, -180, 250, -50, 140, -150, 60, 150, -70, -220, -350, 350, -350, 375, -375]; _root.linex = [0, 0, 50, 50, 100, 100, 150, 150, 200, 200, 350, 350, 400, 400, 450, 450, 500, 500, 550, 550]; _root.liney = [0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50]; _root.unitsarray = []; _root.flagsarray = []; _root.selectedarray = []; _root.enemyarray = []; _root.friendlylist = []; _root.shellarray = []; _root.enemyminearray = []; _root.minearray = []; _root.enemyminearray = []; _root.money = _root.monet; _root.enemymoney = _root.money; _root.warfactory = 0; _root.enemywarfactory = 0; _global.dozers = []; _root.dozerarray = []; _root.enemydozerarray = []; _root.structurearray = []; _root.enemyservicedepot = 0; _root.enemystructurearray = []; _root.comcentre = 0; _root.enemycomcentre = 0; _root.oilarray = []; _root.enemyoiltruckarray = []; _root.oiltruckarray = []; _root.refinery = 0; _root.enemyrefinery = 0; _root.techcentre = 0; _root.enemytechcentre = 0; _root.enemyweaponsilo = 0; _root.turretarray = []; _root.enemyturretarray = []; _root.enemyturret1 = false; _root.enemyturret2 = false; _root.enemyturret3 = false; _root.enemyturret4 = false; _root.enemyturret5 = false; _root.n = 1000;
Instance of Symbol 1075 MovieClip "back" in Frame 15
onClipEvent (load) { this._x = 0; this._y = 0; }
Frame 16
Mouse.hide(); _root.sidebar.mapp.gotoAndStop(8); trace("bull"); stop(); stop();
Instance of Symbol 1022 MovieClip in Frame 16
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(38))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y + 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 16
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(37))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x + 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 16
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(39))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x - 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - 20; i--; } } } }
Instance of Symbol 1022 MovieClip in Frame 16
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(40))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y - 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y - 20; i--; } } } }
Instance of Symbol 1075 MovieClip "back" in Frame 16
onClipEvent (load) { this._x = 0; this._y = 0; }
Instance of Symbol 1036 MovieClip "rig10" in Frame 16
onClipEvent (load) { oilfield = "oil3"; _root.objarray.push(this._name); }
Instance of Symbol 1036 MovieClip "rig11" in Frame 16
onClipEvent (load) { oilfield = "oil2"; _root.objarray.push(this._name); }
Instance of Symbol 1036 MovieClip "rig19" in Frame 16
onClipEvent (load) { oilfield = "oil1"; _root.objarray.push(this._name); }
Instance of Symbol 1036 MovieClip "rig1" in Frame 16
onClipEvent (load) { oilfield = "oil122"; _root.objarray.push(this._name); }
Instance of Symbol 1038 MovieClip "burton" in Frame 16
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1009 MovieClip in Frame 16
/* no clip actions */
Instance of Symbol 20 MovieClip in Frame 16
onClipEvent (enterFrame) { po++; if (po == _root.shroudarray.length) { po = 0; } current = _root.shroudarray[po]; var revealed = false; i = _root.friendlylist.length - 1; while (i > -1) { current2 = _root.friendlylist[i]; if (_root[current2].unittype != "construction") { if (_root[current].hitTest(_root[current2])) { revealed = true; break; } } i--; } if (revealed) { _root[current]._visible = false; } if ((!revealed) && (_root.fog)) { _root[current]._visible = true; } } onClipEvent (load) { po = 0; }
Instance of Symbol 1042 MovieClip "box" in Frame 16
onClipEvent (mouseDown) { x = _root.mouse._x - 30; y = _root.mouse._y - 30; if (((_root.sidebar.mapp.hitTest(x, y, true) && (_root.comcentre1.life > 0)) && (_root.comcentre1.life != undefined)) && (_root.sidebar._visible)) { x1s = x - x1; y1s = y - y1; x2s = _root.box6._x - x1; y2s = _root.box6._y - y1; _root.box6._x = x; _root.box6._y = y; x1s = x1s / constantx; y1s = y1s / constanty; x2s = x2s / constantx; y2s = y2s / constanty; _root.back._x = _root.back._x - (x1s - x2s); _root.back._y = _root.back._y - (y1s - y2s); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - (x1s - x2s); _root[current]._y = _root[current]._y - (y1s - y2s); i--; } } if ((!_root.sidebar.hitTest(x, y, false)) || (!_root.sidebar._visible)) { if (_root.selectedarray.arrayfind("warfactory1")) { _root.rallypoint._x = _root.mouse._x; _root.rallypoint._y = _root.mouse._y; } hits = false; this._x = _root._xmouse; this._y = _root._ymouse; i = _root.friendlylist.length - 1; while (i > -1) { current = _root.friendlylist[i]; if (_root[current].hitTest(this) && (current != "servicedepot1")) { hits = true; break; } i--; } origx = _root.mouse._x; origy = _root.mouse._y; this._visible = true; array = _root.formation; _root.formation = undefined; if (!hits) { i = _root.selectedarray.length - 1; while (i > -1) { current = _root.selectedarray[i]; if ((!_root[current].enemy) && (_root[current].speed != undefined)) { _root[current].turret._rotation = _root[current].dummy._rotation; c = _root.enemyarray.length - 1; while (c > -1) { current2 = _root.enemyarray[c]; if (_root.mouse.hitTest(_root[current2])) { _root[current].targetobj = current2; _root[current].attack = true; _root[current].dummy.obstacle = false; _root[current].dummy.flag2 = undefined; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root["flag" + current]._x = _root.boxns._x; _root["flag" + current]._y = _root.boxns._y; _root[current].locx = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root[current].locy = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root.objarray.push("flag" + current); _root[current].walking = true; _root.n++; hit = true; break; } c--; } if (!hit) { origx = _root.mouse._x + _root[array + "x"][i]; origy = _root.mouse._y + _root[array + "y"][i]; if (isNaN(origx)) { origx = _root.mouse._x; } if (isNaN(origy)) { origy = _root.mouse._y; } current = _root.selectedarray[i]; _root[current].destx = origx; _root[current].desty = origy; _root[current].attack = false; _root[current].locx = undefined; _root[current].locy = undefined; _root[current].walking = true; _root[current].dummy.obstacle = false; _root[current].dummy.flag2 = undefined; _root["flag" + current].removeMovieClip(); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag", "flag" + current, _root.n); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } } if (Key.isDown(17)) { _root[current].targetobj = "flag" + current; _root[current].attack = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } hit = false; i--; } } } } onClipEvent (mouseUp) { x = _root.mouse._x; y = _root.mouse._y; _root.mouse.gotoAndStop(2); if ((!_root.sidebar.hitTest(x, y, true)) || (!_root.sidebar._visible)) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (_root[current].hitTest(this) && (!_root.selectedarray.arrayfind(current))) { _root[current].selector._visible = true; _root[current].selected1 = true; _root.selectedarray.push(current); } i--; } } origx = undefined; origy = undefined; this._visible = false; _root.sidebar.calccost(); } onClipEvent (enterFrame) { if (_root.mouse.hitTest(_root.sidebar)) { _root.sidebar._alpha = 100; } else { _root.sidebar._alpha = 30; } _root.timer++; if (_root.timer == 7000) { for (var name in _root) { if (typeof(_root[name]) == "movieclip") { if ((_root[name].fulllife != undefined) && ((_root[name].life == undefined) || (_root[name].life <= 0))) { _root[name].removeMovieClip(); } } } i = _root.friendlylist.length - 1; while (i > -1) { currents = _root.friendlylist[i]; if ((_root.friendlylist.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.friendlylist.splice(i, 1); } i--; } i = _root.enemyarray.length - 1; while (i > -1) { currents = _root.enemyarray[i]; if ((_root.enemyarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.enemyarray.splice(i, 1); } i--; } i = _root.objarray.length - 1; while (i > -1) { currents = _root.objarray[i]; if ((_root.objarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.objarray.splice(i, 1); } i--; } i = _root.unitsarray.length - 1; while (i > -1) { currents = _root.unitsarray[i]; if (((_root.unitsarray.countduplicate(currents) > 1) || (_root[currents].life == undefined)) || (_root[currents + "symbols"]._x == undefined)) { _root.unitsarray.splice(i, 1); } i--; } i = _root.shellarray.length - 1; while (i > -1) { currents = _root.shellarray[i]; if (_root.shellarray.countduplicate(currents) > 1) { _root.shellarray.splice(i, 1); } i--; } _root.timer = 0; } if (Key.isDown(32)) { _root.mouse.gotoAndStop(1); _root.selectedarray = []; i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; _root[current].selector._visible = false; _root[current].selected1 = false; _root.sidebar.calccost(); i--; } } if (this._visible) { a = _root._xmouse - origx; b = _root._ymouse - origy; this._width = Math.abs(a); this._height = Math.abs(b); if (a < 0) { this._xscale = this._xscale * -1; } if (b < 0) { this._yscale = this._yscale * -1; } } }
Instance of Symbol 1044 MovieClip "ai" in Frame 16
onClipEvent (load) { this.aicheck = function () { commandteamtype(); timeelasped++; ppp = _root.enemyarray.toString(); Mouse.hide(); _root.ai.timer++; if (_root.ai.timer == Math.round(difficulty * 150)) { if (this.teamslist.length < teamsneeded) { nabei = Math.round(minteamlength + (Math.random() * teamlength)); teamtype("team" + pteam, [], nabei); pteam++; } i = 0; while (i < this.teamslist.length) { current = this.teamslist[i]; if (_root[current].members != undefined) { _root[current].checks; } i++; } } if (_root.ai.timer == Math.round(difficulty * 500)) { if (_root.enemymines < minesneeded) { a = dozers[0]; if ((!_root[a].build) && (!_root[current].walking)) { if (Math.random() < mineweight) { p = Math.floor(Math.random() * minesneeded); _root[current].aibuild2("enemymine", _root["minept" + p]._x, _root["minept" + p]._y, 500, 0, 5); _root[current].build = true; } } } _root.ai.timer = 0; n = 1; while (n < 5) { if ((!_root["enemyturret" + n]) && (_root.enemymoney >= turretmoney)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { bb = Math.random(); if (bb < turret1wt) { _root[current].aibuild2("enemyturret", _root["turretpt" + n]._x, _root["turretpt" + n]._y, 1000, n, 1.5); _root[current].build = true; break; } if ((bb > turret1wt) && (bb < turret2wt)) { _root[current].aibuild2("enemymultiple", _root["turretpt" + n]._x, _root["turretpt" + n]._y, 1500, n, 1.5); _root[current].build = true; break; } if (bb > turret3wt) { _root[current].aibuild2("enemylaser", _root["turretpt" + n]._x, _root["turretpt" + n]._y, 1500, n, 1.5); _root[current].build = true; break; } } i--; } } n++; } } if (_root.ai.timer == Math.round(difficulty * 250)) { if ((_root.enemycomcentre < 1) && (_root.enemymoney >= 5000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemycomcentre", _root.comcentrept._x, _root.comcentrept._y, 5000, 0.5); _root[current].build = true; break; } i--; } } if ((_root.enemyservicedepot < 1) && (_root.enemymoney >= servicedepotmoney)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyservicedepot", _root.servpt._x, _root.servpt._y, 1500, 1); _root[current].build = true; break; } i--; } } if ((_root.enemyrefinery < 1) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyrefinery", _root.refpt._x, _root.refpt._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemywarfactory == 0) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemywarfactory", _root.warpt._x, _root.warpt._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemytechcentre < 1) && (_root.enemymoney >= techcentremoney)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemytechcentre", _root.techpt._x, _root.techpt._y, 1500, 0.7); _root[current].build = true; break; } i--; } } if (((_root.enemytechcentre1._x != undefined) && (timeelasped >= this.nuketime)) && (_root.enemyweaponsilo == 0)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyweaponsilo", _root.silopt._x, _root.silopt._y, 10000, 0.2); _root[current].build = true; timeelasped = 0; break; } i--; } } } if ((Math.round(_root.ai.timer / 30) * 30) == _root.ai.timer) { if (_root.enemyarray.length <= 0) { _root.gotoAndStop("victory"); } if (_root.friendlylist.length <= 0) { _root.gotoAndStop("defeat"); } n = _root.enemystructurearray.length - 1; while (n > -1) { current2 = _root.enemystructurearray[n]; i = dozers.length - 1; while (i > -1) { current = dozers[i]; if (_root[current].build || (_root[current].walking)) { } else { dx = _root[current]._x - _root[current2]._x; dy = _root[current]._y - _root[current2]._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 1500) { ant = 0; if (((_root[current2].life < _root[current2].fulllife) && (_root[current2].percent == undefined)) && (_root[current2].auto._currentframe == 1)) { if (!_root[current].hitTest(_root[current2])) { _root[current].aigoto(_root[current2]._x, _root[current2]._y, false); } _root[current2].auto.play(); h = array1.length - 1; while (h > -1) { currents = _root.array1[h]; if ((((_root[currents].natack == undefined) && (!_root[currents].walking)) && (!_root[currents].fireing)) && (ant < 5)) { ant++; _root[currents].aigoto(_root[current2]._x, _root[current2]._y, false); if (_root[current2].targetobj != undefined) { targetobj = _root[current2].targetobj; _root[currents].aiattack(targetobj); } } h--; } } } break; } i--; } n--; } } if ((Math.round(_root.ai.timer / 70) * 70) == _root.ai.timer) { if (((dozers.length < dozersneeded) && (_root.enemycomcentre1._x != undefined)) && (_root.enemymoney > 1000)) { _root.enemymoney = _root.enemymoney - 1000; _root.attachMovie("enemydozer", "enemydozer" + _root.n, _root.n); _root["enemydozer" + _root.n]._x = _root.enemycomcentre1._x; _root["enemydozer" + _root.n]._y = _root.enemycomcentre1._y; _root["enemydozer" + _root.n]._rotation = 0; _root.n++; } if ((_root.enemymoney > uppermoney) && (!build)) { build = true; rounds++; } if ((_root.enemymoney < lowermoney) && (build)) { build = false; } arrayone = _root.array1.toString(); if (_root.enemywarfactory1.life > 0) { if ((_root.enemyoiltrucks < oiltrucksneeded) && (_root.enemymoney >= 2000)) { _root.enemymoney = _root.enemymoney - 1500; _root.attachMovie("enemyoiltruck", "enemyoiltruck" + _root.n, _root.n); _root["enemyoiltruck" + _root.n]._x = _root.enemywarfactory1._x; _root["enemyoiltruck" + _root.n]._y = _root.enemywarfactory1._y; _root["enemyoiltruck" + _root.n]._rotation = 0; _root.n++; } if (build && (_root.enemymoney > 0)) { i = 0; while (i < (this.teamslist.length - 1)) { current = this.teamslist[i]; if (_root[current].members.length < _root[current].maxlength) { a = Math.random(); if ((a > 0) && (a < lightwt)) { unittype = "enemylight"; _root.enemymoney = _root.enemymoney - 1000; } if ((a > lightwt) && (a < rocketwt)) { unittype = "enemyrocket"; _root.enemymoney = _root.enemymoney - 1500; } if ((a > rocketwt) && (a < heavywt)) { unittype = "enemyheavy"; _root.enemymoney = _root.enemymoney - 2500; } if ((a > heavywt) && (a < humveewt)) { unittype = "enemyhumvee"; _root.enemymoney = _root.enemymoney - 500; } if ((a > humveewt) && (a < 1)) { unittype = "enemyartillery"; _root.enemymoney = _root.enemymoney - 2000; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.enemywarfactory1._x; _root[unittype + _root.n]._y = _root.enemywarfactory1._y + 100; _root[unittype + _root.n]._rotation = 0; _root[current].members.push(unittype + _root.n); unittype = undefined; _root.n++; break; } i++; } if ((_root.enemylasertank1._x == undefined) && (_root.enemytechcentre1._x != undefined)) { if (Math.random() > 0.9) { _root.attachMovie("enemylasertank", "enemylasertank1", _root.n); _root.enemylasertank1._x = _root.enemywarfactory1._x; _root.enemylasertank1._y = _root.enemywarfactory1._y + 100; _root.enemylasertank1._rotation = 0; _root.enemymoney = _root.enemymoney - 7500; _root.team1.push("enemylasertank1"); } } } } } }; this.stupidai = function () { ppp = _root.enemyarray.toString(); Mouse.hide(); _root.ai.timer++; if (_root.ai.timer == Math.round(difficulty * 500)) { if (_root.enemymines < minesneeded) { a = dozers[0]; if ((!_root[a].build) && (!_root[current].walking)) { if (Math.random() < mineweight) { p = Math.floor(Math.random() * minesneeded); _root[current].aibuild2("enemymine", _root["minept" + p]._x, _root["minept" + p]._y, 500, 0, 5); _root[current].build = true; } } } _root.ai.timer = 0; n = 1; while (n < 5) { if ((!_root["enemyturret" + n]) && (_root.enemymoney >= turretmoney)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { bb = Math.random(); if (bb < turret1wt) { _root[current].aibuild2("enemyturret", _root["turretpt" + n]._x, _root["turretpt" + n]._y, 1000, n, 1.5); _root[current].build = true; break; } if ((bb > turret1wt) && (bb < turret2wt)) { _root[current].aibuild2("enemymultiple", _root["turretpt" + n]._x, _root["turretpt" + n]._y, 1500, n, 1.5); _root[current].build = true; break; } if (bb > turret3wt) { _root[current].aibuild2("enemylaser", _root["turretpt" + n]._x, _root["turretpt" + n]._y, 1500, n, 1.5); _root[current].build = true; break; } } i--; } } n++; } } if (_root.ai.timer == Math.round(difficulty * 250)) { if ((_root.enemycomcentre < 1) && (_root.enemymoney >= 5000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemycomcentre", _root.comcentrept._x, _root.comcentrept._y, 5000, 0.5); _root[current].build = true; break; } i--; } } if ((_root.enemyservicedepot < 1) && (_root.enemymoney >= servicedepotmoney)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyservicedepot", _root.servpt._x, _root.servpt._y, 1500, 1); _root[current].build = true; break; } i--; } } if ((_root.enemyrefinery < 1) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyrefinery", _root.refpt._x, _root.refpt._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemywarfactory == 0) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemywarfactory", _root.warpt._x, _root.warpt._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemytechcentre < 1) && (_root.enemymoney >= techcentremoney)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemytechcentre", _root.techpt._x, _root.techpt._y, 1500, 0.7); _root[current].build = true; break; } i--; } } if (((_root.enemytechcentre1._x != undefined) && (timeelasped >= this.nuketime)) && (_root.enemyweaponsilo == 0)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyweaponsilo", _root.silopt._x, _root.silopt._y, 10000, 0.2); _root[current].build = true; timeelasped = 0; break; } i--; } } i = 0; while (i < _root.array1.length) { current = _root.array1[i]; if (_root[current].life == undefined) { _root.array1.splice(i, 1); } if (i < (_root.array1.length - peoplestay)) { _root.array2.push(current); _root.array1.splice(i, 1); if (Math.random() > 0.5) { _root[current].avoid = true; } if (Math.random() > 0.8) { _root[current].aggressive = false; } } else if (_root[current].unittype != "artillery") { this.waypoint = "waypoint" + String(Math.floor(Math.random() * 7) + 100); if (_root[this.waypoint]._x != undefined) { _root[current].aigoto(_root[this.waypoint]._x, _root[this.waypoint]._y, false); } } i++; } } if ((Math.round(_root.ai.timer / 30) * 30) == _root.ai.timer) { if (_root.enemyarray.length <= 0) { _root.gotoAndStop("victory"); } if (_root.friendlylist.length <= 0) { _root.gotoAndStop("defeat"); } n = _root.enemystructurearray.length - 1; while (n > -1) { current2 = _root.enemystructurearray[n]; i = dozers.length - 1; while (i > -1) { current = dozers[i]; if (_root[current].build || (_root[current].walking)) { } else { dx = _root[current]._x - _root[current2]._x; dy = _root[current]._y - _root[current2]._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 1500) { ant = 0; if (((_root[current2].life < _root[current2].fulllife) && (_root[current2].percent == undefined)) && (_root[current2].auto._currentframe == 1)) { if (!_root[current].hitTest(_root[current2])) { _root[current].aigoto(_root[current2]._x, _root[current2]._y, false); } _root[current2].auto.play(); h = array1.length - 1; while (h > -1) { currents = _root.array1[h]; if ((((_root[currents].natack == undefined) && (!_root[currents].walking)) && (!_root[currents].fireing)) && (ant < 5)) { ant++; _root[currents].aigoto(_root[current2]._x, _root[current2]._y, false); if (_root[current2].targetobj != undefined) { targetobj = _root[current2].targetobj; _root[currents].aiattack(targetobj); } } h--; } } } break; } i--; } n--; } } if ((Math.round(_root.ai.timer / 70) * 70) == _root.ai.timer) { if (((dozers.length < dozersneeded) && (_root.enemycomcentre1._x != undefined)) && (_root.enemymoney > 1000)) { _root.enemymoney = _root.enemymoney - 1000; _root.attachMovie("enemydozer", "enemydozer" + _root.n, _root.n); _root["enemydozer" + _root.n]._x = _root.enemycomcentre1._x; _root["enemydozer" + _root.n]._y = _root.enemycomcentre1._y; _root["enemydozer" + _root.n]._rotation = 0; _root.n++; } if ((_root.enemymoney > uppermoeny) && (!build)) { build = true; rounds++; } if ((_root.enemymoney < lowermoney) && (build)) { build = false; } i = 0; while (i < _root.array2.length) { current = _root.array2[i]; if (_root[current].life == undefined) { _root.array2.splice(i, 1); } else if ((!_root[current].fireing) && (!_root[current].walking)) { lo = Math.floor(Math.random() * (_root.friendlylist.length - 1)); unit = _root.friendlylist[lo]; _root[current].aiattack(unit); } i++; } arrayone = _root.array1.toString(); if (_root.enemywarfactory1.life > 0) { if ((_root.enemyoiltrucks < oiltrucksneeded) && (_root.enemymoney >= 2000)) { _root.enemymoney = _root.enemymoney - 1500; _root.attachMovie("enemyoiltruck", "enemyoiltruck" + _root.n, _root.n); _root["enemyoiltruck" + _root.n]._x = _root.enemywarfactory1._x; _root["enemyoiltruck" + _root.n]._y = _root.enemywarfactory1._y; _root["enemyoiltruck" + _root.n]._rotation = 0; _root.n++; } if (build || ((_root.array1.length < totalpeople) && (_root.enemymoney > 0))) { a = Math.random(); if ((a > 0) && (a < lightwt)) { unittype = "enemylight"; _root.enemymoney = _root.enemymoney - 1000; } if ((a > lightwt) && (a < rocketwt)) { unittype = "enemyrocket"; _root.enemymoney = _root.enemymoney - 1500; } if ((a > rocketwt) && (a < heavywt)) { unittype = "enemyheavy"; _root.enemymoney = _root.enemymoney - 2500; } if ((a > heavywt) && (a < humveewt)) { unittype = "enemyhumvee"; _root.enemymoney = _root.enemymoney - 500; } if ((a > humveewt) && (a < 1)) { unittype = "enemyartillery"; _root.enemymoney = _root.enemymoney - 2000; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.enemywarfactory1._x; _root[unittype + _root.n]._y = _root.enemywarfactory1._y + 100; _root[unittype + _root.n]._rotation = 0; _root.array1.push(unittype + _root.n); unittype = undefined; _root.n++; if ((_root.enemylasertank1._x == undefined) && (_root.enemytechcentre1._x != undefined)) { if (Math.random() > 0.9) { _root.attachMovie("enemylasertank", "enemylasertank1", _root.n); _root.enemylasertank1._x = _root.enemywarfactory1._x; _root.enemylasertank1._y = _root.enemywarfactory1._y + 100; _root.enemylasertank1._rotation = 0; _root.enemymoney = _root.enemymoney - 7500; _root.array1.push("enemylasertank1"); } } } } } }; } onClipEvent (enterFrame) { if (_root.smartai) { aicheck(); } else { stupidai(); } }
Instance of Symbol 1009 MovieClip in Frame 16
onClipEvent (enterFrame) { po++; if (po == _root.obsarray.length) { po = 0; } current = _root.obsarray[po]; i = _root.unitsarray.length - 1; while (i > -1) { current2 = _root.unitsarray[i]; if (_root[current2].walking || (_root[current2].fireing)) { if (_root.back[current].hitTest(_root[current2])) { if (_root[current2].dummy.obstacle == undefined) { _root[current2].dummy.obstacle = false; } if ((!_root[current2].dummy.obstacle) || (_root[current2].dummy.obstacle == undefined)) { _root[current2].dummy.obstacle = true; if (_root.back[current].pos == "hoz") { roattion = _root[current2].dummy._rotation; trace(roattion + "hoz"); if ((_root[current2].dummy._rotation >= -90) && (_root[current2].dummy._rotation < 90)) { _root[current2].dummy.flag2 = _root.back[current].rights; } if ((_root[current2].dummy._rotation >= 90) && (_root[current2].dummy._rotation < 360)) { _root[current2].dummy.flag2 = _root.back[current].lefts; } } if (_root.back[current].pos == "ver") { roattion = _root[current2].dummy._rotation; trace(roattion + "ver"); if ((_root[current2].dummy._rotation <= 0) && (_root[current2].dummy._rotation > -180)) { _root[current2].dummy.flag2 = _root.back[current].tops; } if ((_root[current2].dummy._rotation > 0) && (_root[current2].dummy._rotation < 180)) { _root[current2].dummy.flag2 = _root.back[current].bottoms; } } } } } i--; } } onClipEvent (load) { po = 0; }
Frame 17
_root.attachMovie("sidebar", "sidebar", 1000000); _root.attachMovie("mo", "mouse", 1000001); _root.sidebar._x = 132.6; _root.sidebar._y = 615; _root.sidebar._xscale = -58.5; _root.sidebar._yscale = 49.14; _root.sidebar._rotation = 90; _global.orix = _root.back._x; _global.oriy = _root.back._y; _root.attachMovie("box5", "box6", 10000004); _root.box6._x = x1; _root.box6._y = y1; _root.box6._height = (_root.box5._height / _root.back._height) * (y4 - y1); _root.box6._width = (_root.box5._width / _root.back._width) * (x4 - x1); _global.constanty = (y4 - y1) / _root.back._height; _global.constantx = (x4 - x1) / _root.back._width; _global.constantsy = (y4 - y1) / _root.back._height; _global.constantsx = (x4 - x1) / _root.back._width; _root.array1 = []; _root.rallylist = []; _root.enemyrallylist = []; trace("skir3"); trace(_root.currento); MovieClip.prototype.aiattack = function (what) { current2 = what; if (_root[current2]._x != undefined) { current = this._name; _root[current].targetobj = current2; _root[current].attack = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root["flag" + current]._visible = false; _root["flag" + current]._x = _root[current2]._x; _root["flag" + current]._y = _root[current2]._y; _root.objarray.push("flag" + current); _root[current].walking = true; _root.n++; hit = true; } }; MovieClip.prototype.aigoto = function (x1, y1, lock) { current = this._name; _root[current].attack = false; _root[current].walking = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag", "flag" + current, _root.n); if ((!lock) || (lock == undefined)) { _root["flag" + current]._x = x1; _root["flag" + current]._y = y1; } if (lock) { _root["flag" + current]._x = x1 + _root.back._x; _root["flag" + current]._y = y1 + _root.back._y; } _root["flag" + current].vsisible = false; _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; }; Array.prototype.arrayfind = function (element) { var _local4 = false; trace(this.length); var _local3 = this.length - 1; while (_local3 > -1) { elementsearched = this[_local3]; trace(_root[elementsearched].unittype + elementsearched); if (_root[elementsearched].unittype == element) { _local4 = true; break; } _local3--; } return(_local4); }; Array.prototype.arrayfindfirst = function (element) { var _local3 = false; trace(this.length); var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { _local3 = _local2; break; } _local2--; } return(_local3); }; Array.prototype.findsfirst = function (element) { var _local4 = false; var _local3 = this.length - 1; while (_local3 > -1) { elementsearched2 = this[_local3]; if (_root[elementsearched2].unittype == element) { _local4 = elementsearched2; break; } _local3--; } return(_local4); }; MovieClip.prototype.movesym = function () { _root[this._name + "symbols"]._x = (x1 + ((this._x - _root.back._x) * constantx)) - 10; _root[this._name + "symbols"]._y = (y1 + ((this._y - _root.back._y) * constanty)) - 10; }; _root.timer = 6999; _root.limit = 1200; Array.prototype.countduplicate = function (element) { var _local3 = 0; var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { _local3++; } _local2--; } return(_local3); }; Array.prototype.arrayfind = function (element) { var _local3 = false; var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { _local3 = true; break; } _local2--; } return(_local3); }; Array.prototype.finds = function (element) { var _local3 = -1; var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { _local3 = _local2; break; } _local2--; } return(_local3); }; Array.prototype.findandsplice = function (element) { var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { this.splice(_local2, 1); break; } _local2--; } }; nextFrame(); _root.objarray = []; _root.num = 0; _root.sparsex = [0, -50, 150, 100, -100, 150, 250, 200, -250, 300, 300, 350, -350, 400, -410, 500, -550]; _root.sparsey = [0, -50, 80, -180, 250, -50, 140, -150, 60, 150, -70, -220, -350, 350, -350, 375, -375]; _root.linex = [0, 0, 50, 50, 100, 100, 150, 150, 200, 200, 350, 350, 400, 400, 450, 450, 500, 500, 550, 550]; _root.liney = [0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50]; _root.unitsarray = []; _root.flagsarray = []; _root.selectedarray = []; _root.enemyarray = []; _root.friendlylist = []; _root.shellarray = []; _root.enemyminearray = []; _root.minearray = []; _root.enemyminearray = []; _root.money = _root.monet; _root.enemymoney = _root.money; _root.warfactory = 0; _root.enemywarfactory = 0; _global.dozers = []; _root.dozerarray = []; _root.enemydozerarray = []; _root.structurearray = []; _root.enemyservicedepot = 0; _root.enemystructurearray = []; _root.comcentre = 0; _root.enemycomcentre = 0; _root.oilarray = []; _root.enemyoiltruckarray = []; _root.oiltruckarray = []; _root.refinery = 0; _root.enemyrefinery = 0; _root.techcentre = 0; _root.enemytechcentre = 0; _root.enemyweaponsilo = 0; _root.turretarray = []; _root.enemyturretarray = []; _root.enemyturret1 = false; _root.enemyturret2 = false; _root.enemyturret3 = false; _root.enemyturret4 = false; _root.enemyturret5 = false; _root.n = 1000;
Frame 18
Mouse.hide(); _root.sidebar.mapp.gotoAndStop(2); stop(); stop();
Instance of Symbol 1022 MovieClip in Frame 18
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(38))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y + 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 18
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(37))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x + 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 18
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(39))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x - 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - 20; i--; } } } }
Instance of Symbol 1022 MovieClip in Frame 18
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(40))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y - 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y - 20; i--; } } } }
Instance of Symbol 1036 MovieClip "rig10" in Frame 18
onClipEvent (load) { oilfield = "oil3"; _root.objarray.push(this._name); }
Instance of Symbol 1036 MovieClip "rig19" in Frame 18
onClipEvent (load) { oilfield = "oil1"; _root.objarray.push(this._name); }
Instance of Symbol 1038 MovieClip "burton" in Frame 18
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1009 MovieClip in Frame 18
/* no clip actions */
Instance of Symbol 20 MovieClip in Frame 18
onClipEvent (enterFrame) { po++; if (po == _root.shroudarray.length) { po = 0; } current = _root.shroudarray[po]; var revealed = false; i = _root.friendlylist.length - 1; while (i > -1) { current2 = _root.friendlylist[i]; if (_root[current2].unittype != "construction") { if (_root[current].hitTest(_root[current2])) { revealed = true; break; } } i--; } if (revealed) { _root[current]._visible = false; } if ((!revealed) && (_root.fog)) { _root[current]._visible = true; } } onClipEvent (load) { po = 0; }
Instance of Symbol 1042 MovieClip "box" in Frame 18
onClipEvent (mouseDown) { x = _root.mouse._x - 30; y = _root.mouse._y - 30; if (((_root.sidebar.mapp.hitTest(x, y, true) && (_root.comcentre1.life > 0)) && (_root.comcentre1.life != undefined)) && (_root.sidebar._visible)) { x1s = x - x1; y1s = y - y1; x2s = _root.box6._x - x1; y2s = _root.box6._y - y1; _root.box6._x = x; _root.box6._y = y; x1s = x1s / constantx; y1s = y1s / constanty; x2s = x2s / constantx; y2s = y2s / constanty; _root.back._x = _root.back._x - (x1s - x2s); _root.back._y = _root.back._y - (y1s - y2s); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - (x1s - x2s); _root[current]._y = _root[current]._y - (y1s - y2s); i--; } } if ((!_root.sidebar.hitTest(x, y, false)) || (!_root.sidebar._visible)) { if (_root.selectedarray.arrayfind("warfactory1")) { _root.rallypoint._x = _root.mouse._x; _root.rallypoint._y = _root.mouse._y; } hits = false; this._x = _root._xmouse; this._y = _root._ymouse; i = _root.friendlylist.length - 1; while (i > -1) { current = _root.friendlylist[i]; if (_root[current].hitTest(this) && (current != "servicedepot1")) { hits = true; break; } i--; } origx = _root.mouse._x; origy = _root.mouse._y; this._visible = true; array = _root.formation; _root.formation = undefined; if (!hits) { i = _root.selectedarray.length - 1; while (i > -1) { current = _root.selectedarray[i]; if ((!_root[current].enemy) && (_root[current].speed != undefined)) { _root[current].turret._rotation = _root[current].dummy._rotation; c = _root.enemyarray.length - 1; while (c > -1) { current2 = _root.enemyarray[c]; if (_root.mouse.hitTest(_root[current2])) { _root[current].targetobj = current2; _root[current].attack = true; _root[current].dummy.obstacle = false; _root[current].dummy.flag2 = undefined; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root["flag" + current]._x = _root.boxns._x; _root["flag" + current]._y = _root.boxns._y; _root[current].locx = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root[current].locy = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root.objarray.push("flag" + current); _root[current].walking = true; _root.n++; hit = true; break; } c--; } if (!hit) { origx = _root.mouse._x + _root[array + "x"][i]; origy = _root.mouse._y + _root[array + "y"][i]; if (isNaN(origx)) { origx = _root.mouse._x; } if (isNaN(origy)) { origy = _root.mouse._y; } current = _root.selectedarray[i]; _root[current].destx = origx; _root[current].desty = origy; _root[current].attack = false; _root[current].locx = undefined; _root[current].locy = undefined; _root[current].walking = true; _root[current].dummy.obstacle = false; _root[current].dummy.flag2 = undefined; _root["flag" + current].removeMovieClip(); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag", "flag" + current, _root.n); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } } if (Key.isDown(17)) { _root[current].targetobj = "flag" + current; _root[current].attack = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } hit = false; i--; } } } } onClipEvent (mouseUp) { x = _root.mouse._x; y = _root.mouse._y; _root.mouse.gotoAndStop(2); if ((!_root.sidebar.hitTest(x, y, true)) || (!_root.sidebar._visible)) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (_root[current].hitTest(this) && (!_root.selectedarray.arrayfind(current))) { _root[current].selector._visible = true; _root[current].selected1 = true; _root.selectedarray.push(current); } i--; } } origx = undefined; origy = undefined; this._visible = false; _root.sidebar.calccost(); } onClipEvent (enterFrame) { if (_root.mouse.hitTest(_root.sidebar)) { _root.sidebar._alpha = 100; } else { _root.sidebar._alpha = 30; } _root.timer++; if (_root.timer == 7000) { for (var name in _root) { if (typeof(_root[name]) == "movieclip") { if ((_root[name].fulllife != undefined) && ((_root[name].life == undefined) || (_root[name].life <= 0))) { _root[name].removeMovieClip(); } } } i = _root.friendlylist.length - 1; while (i > -1) { currents = _root.friendlylist[i]; if ((_root.friendlylist.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.friendlylist.splice(i, 1); } i--; } i = _root.enemyarray.length - 1; while (i > -1) { currents = _root.enemyarray[i]; if ((_root.enemyarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.enemyarray.splice(i, 1); } i--; } i = _root.objarray.length - 1; while (i > -1) { currents = _root.objarray[i]; if ((_root.objarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.objarray.splice(i, 1); } i--; } i = _root.unitsarray.length - 1; while (i > -1) { currents = _root.unitsarray[i]; if (((_root.unitsarray.countduplicate(currents) > 1) || (_root[currents].life == undefined)) || (_root[currents + "symbols"]._x == undefined)) { _root.unitsarray.splice(i, 1); } i--; } i = _root.shellarray.length - 1; while (i > -1) { currents = _root.shellarray[i]; if (_root.shellarray.countduplicate(currents) > 1) { _root.shellarray.splice(i, 1); } i--; } _root.timer = 0; } if (Key.isDown(32)) { _root.mouse.gotoAndStop(1); _root.selectedarray = []; i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; _root[current].selector._visible = false; _root[current].selected1 = false; _root.sidebar.calccost(); i--; } } if (this._visible) { a = _root._xmouse - origx; b = _root._ymouse - origy; this._width = Math.abs(a); this._height = Math.abs(b); if (a < 0) { this._xscale = this._xscale * -1; } if (b < 0) { this._yscale = this._yscale * -1; } } }
Instance of Symbol 1009 MovieClip in Frame 18
onClipEvent (enterFrame) { po++; if (po == _root.obsarray.length) { po = 0; } current = _root.obsarray[po]; i = _root.unitsarray.length - 1; while (i > -1) { current2 = _root.unitsarray[i]; if (_root[current2].walking || (_root[current2].fireing)) { if (_root.back[current].hitTest(_root[current2])) { if (_root[current2].dummy.obstacle == undefined) { _root[current2].dummy.obstacle = false; } if ((!_root[current2].dummy.obstacle) || (_root[current2].dummy.obstacle == undefined)) { _root[current2].dummy.obstacle = true; if (_root.back[current].pos == "hoz") { roattion = _root[current2].dummy._rotation; trace(roattion + "hoz"); if ((_root[current2].dummy._rotation >= -90) && (_root[current2].dummy._rotation < 90)) { _root[current2].dummy.flag2 = _root.back[current].rights; } if ((_root[current2].dummy._rotation >= 90) && (_root[current2].dummy._rotation < 360)) { _root[current2].dummy.flag2 = _root.back[current].lefts; } } if (_root.back[current].pos == "ver") { roattion = _root[current2].dummy._rotation; trace(roattion + "ver"); if ((_root[current2].dummy._rotation <= 0) && (_root[current2].dummy._rotation > -180)) { _root[current2].dummy.flag2 = _root.back[current].tops; } if ((_root[current2].dummy._rotation > 0) && (_root[current2].dummy._rotation < 180)) { _root[current2].dummy.flag2 = _root.back[current].bottoms; } } } } } i--; } } onClipEvent (load) { po = 0; }
Instance of Symbol 1044 MovieClip "ai" in Frame 18
onClipEvent (load) { this.aicheck = function () { if (type == 1) { commandteamtype(); } if (type == 2) { commandteamtype2(); } if (type == 3) { commandteamtype3(); } if (type == 4) { commandteamtype4(); } if (type == 5) { commandteamtype5(); } timeelasped++; ppp = _root.enemyarray.toString(); Mouse.hide(); _root.ai.timer++; if (_root.ai.timer == Math.round(difficulty * 150)) { if (this.teamslist.length < teamsneeded) { nabei = Math.round(minteamlength + (Math.random() * teamlength)); teamtype("team" + pteam, [], nabei); pteam++; } i = 0; while (i < this.teamslist.length) { current = this.teamslist[i]; if (_root[current].members != undefined) { _root[current].checks; } i++; } } if (_root.ai.timer == Math.round(difficulty * 500)) { if (_root.enemymines < minesneeded) { a = dozers[0]; if ((!_root[a].build) && (!_root[current].walking)) { if (Math.random() < mineweight) { p = Math.floor(Math.random() * minesneeded); _root[current].aibuild2("enemymine", _root["minept" + p]._x, _root["minept" + p]._y, 500, 0, 5); _root[current].build = true; } } } _root.ai.timer = 0; n = 1; while (n < turretsneeded) { if ((!_root["enemyturret" + n]) && (_root.enemymoney >= turretmoney)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { bb = Math.random(); if (bb < turret1wt) { _root[current].aibuild2("enemyturret", _root["turretpt" + n]._x, _root["turretpt" + n]._y, 1000, n, 1.5); _root[current].build = true; break; } if ((bb > turret1wt) && (bb < turret2wt)) { _root[current].aibuild2("enemymultiple", _root["turretpt" + n]._x, _root["turretpt" + n]._y, 1500, n, 1.5); _root[current].build = true; break; } if (bb > turret3wt) { _root[current].aibuild2("enemylaser", _root["turretpt" + n]._x, _root["turretpt" + n]._y, 1500, n, 1.5); _root[current].build = true; break; } } i--; } } n++; } } if (_root.ai.timer == Math.round(difficulty * 250)) { if ((_root.enemycomcentre < 1) && (_root.enemymoney >= 5000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemycomcentre", _root.comcentrept._x, _root.comcentrept._y, 5000, 0.5); _root[current].build = true; break; } i--; } } if ((_root.enemyservicedepot < 1) && (_root.enemymoney >= servicedepotmoney)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyservicedepot", _root.servpt._x, _root.servpt._y, 1500, 1); _root[current].build = true; break; } i--; } } if ((_root.enemyrefinery < 1) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyrefinery", _root.refpt._x, _root.refpt._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemywarfactory == 0) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemywarfactory", _root.warpt._x, _root.warpt._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemytechcentre < 1) && (_root.enemymoney >= techcentremoney)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemytechcentre", _root.techpt._x, _root.techpt._y, 1500, 0.7); _root[current].build = true; break; } i--; } } if (((_root.enemytechcentre1._x != undefined) && (timeelasped >= this.nuketime)) && (_root.enemyweaponsilo == 0)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyweaponsilo", _root.silopt._x, _root.silopt._y, 10000, 0.2); _root[current].build = true; timeelasped = 0; break; } i--; } } } if ((Math.round(_root.ai.timer / 30) * 30) == _root.ai.timer) { if (_root.enemyarray.length <= 0) { _root.gotoAndStop("victory"); } if (_root.friendlylist.length <= 0) { _root.gotoAndStop("defeat"); } n = _root.enemystructurearray.length - 1; while (n > -1) { current2 = _root.enemystructurearray[n]; i = dozers.length - 1; while (i > -1) { current = dozers[i]; if (_root[current].build || (_root[current].walking)) { } else { dx = _root[current]._x - _root[current2]._x; dy = _root[current]._y - _root[current2]._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 1500) { ant = 0; if (((_root[current2].life < _root[current2].fulllife) && (_root[current2].percent == undefined)) && (_root[current2].auto._currentframe == 1)) { if (!_root[current].hitTest(_root[current2])) { _root[current].aigoto(_root[current2]._x, _root[current2]._y, false); } _root[current2].auto.play(); h = array1.length - 1; while (h > -1) { currents = _root.array1[h]; if ((((_root[currents].natack == undefined) && (!_root[currents].walking)) && (!_root[currents].fireing)) && (ant < 5)) { ant++; _root[currents].aigoto(_root[current2]._x, _root[current2]._y, false); if (_root[current2].targetobj != undefined) { targetobj = _root[current2].targetobj; _root[currents].aiattack(targetobj); } } h--; } } } break; } i--; } n--; } } if ((Math.round(_root.ai.timer / 70) * 70) == _root.ai.timer) { if (((dozers.length < dozersneeded) && (_root.enemycomcentre1._x != undefined)) && (_root.enemymoney > 1000)) { _root.enemymoney = _root.enemymoney - (1000 * difficulty); _root.attachMovie("enemydozer", "enemydozer" + _root.n, _root.n); _root["enemydozer" + _root.n]._x = _root.enemycomcentre1._x; _root["enemydozer" + _root.n]._y = _root.enemycomcentre1._y; _root["enemydozer" + _root.n]._rotation = 0; _root.n++; } if ((_root.enemymoney > uppermoney) && (!build)) { build = true; rounds++; } if ((_root.enemymoney < lowermoney) && (build)) { build = false; } arrayone = _root.array1.toString(); if (_root.enemywarfactory1.life > 0) { if ((_root.enemyoiltrucks < oiltrucksneeded) && (_root.enemymoney >= 2000)) { _root.enemymoney = _root.enemymoney - (1500 * difficulty); _root.attachMovie("enemyoiltruck", "enemyoiltruck" + _root.n, _root.n); _root["enemyoiltruck" + _root.n]._x = _root.enemywarfactory1._x; _root["enemyoiltruck" + _root.n]._y = _root.enemywarfactory1._y; _root["enemyoiltruck" + _root.n]._rotation = 0; _root.n++; } if (build && (_root.enemymoney > 0)) { i = 0; while (i < (this.teamslist.length - 1)) { current = this.teamslist[i]; if (_root[current].members.length < _root[current].maxlength) { a = Math.random(); if ((a > 0) && (a < lightwt)) { unittype = "enemylight"; _root.enemymoney = _root.enemymoney - (1000 * difficulty); } if ((a > lightwt) && (a < rocketwt)) { unittype = "enemyrocket"; _root.enemymoney = _root.enemymoney - (1500 * difficulty); } if ((a > rocketwt) && (a < heavywt)) { unittype = "enemyheavy"; _root.enemymoney = _root.enemymoney - (2500 * difficulty); } if ((a > heavywt) && (a < humveewt)) { unittype = "enemyhumvee"; _root.enemymoney = _root.enemymoney - (500 * difficulty); } if ((a > humveewt) && (a < 1)) { unittype = "enemyartillery"; _root.enemymoney = _root.enemymoney - 2000; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.enemywarfactory1._x; _root[unittype + _root.n]._y = _root.enemywarfactory1._y + 100; _root[unittype + _root.n]._rotation = 0; _root[current].members.push(unittype + _root.n); unittype = undefined; _root.n++; break; } i++; } if ((_root.enemylasertank1._x == undefined) && (_root.enemytechcentre1._x != undefined)) { if (Math.random() > 0.9) { _root.attachMovie("enemylasertank", "enemylasertank1", _root.n); _root.enemylasertank1._x = _root.enemywarfactory1._x; _root.enemylasertank1._y = _root.enemywarfactory1._y + 100; _root.enemylasertank1._rotation = 0; _root.enemymoney = _root.enemymoney - (7500 * difficulty); _root[current].members.push("enemylasertank1"); } } } } } }; this.stupidai = function () { ppp = _root.enemyarray.toString(); Mouse.hide(); _root.ai.timer++; if (_root.ai.timer == Math.round(difficulty * 500)) { if (_root.enemymines < minesneeded) { a = dozers[0]; if ((!_root[a].build) && (!_root[current].walking)) { if (Math.random() < mineweight) { p = Math.floor(Math.random() * minesneeded); _root[current].aibuild2("enemymine", _root["minept" + p]._x, _root["minept" + p]._y, 500, 0, 5); _root[current].build = true; } } } _root.ai.timer = 0; n = 1; while (n < turretsneeded) { if ((!_root["enemyturret" + n]) && (_root.enemymoney >= turretmoney)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { bb = Math.random(); if (bb < turret1wt) { _root[current].aibuild2("enemyturret", _root["turretpt" + n]._x, _root["turretpt" + n]._y, 1000, n, 1.5); _root[current].build = true; break; } if ((bb > turret1wt) && (bb < turret2wt)) { _root[current].aibuild2("enemymultiple", _root["turretpt" + n]._x, _root["turretpt" + n]._y, 1500, n, 1.5); _root[current].build = true; break; } if (bb > turret3wt) { _root[current].aibuild2("enemylaser", _root["turretpt" + n]._x, _root["turretpt" + n]._y, 1500, n, 1.5); _root[current].build = true; break; } } i--; } } n++; } } if (_root.ai.timer == Math.round(difficulty * 250)) { if ((_root.enemycomcentre < 1) && (_root.enemymoney >= 5000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemycomcentre", _root.comcentrept._x, _root.comcentrept._y, 5000, 0.5); _root[current].build = true; break; } i--; } } if ((_root.enemyservicedepot < 1) && (_root.enemymoney >= servicedepotmoney)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyservicedepot", _root.servpt._x, _root.servpt._y, 1500, 1); _root[current].build = true; break; } i--; } } if ((_root.enemyrefinery < 1) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyrefinery", _root.refpt._x, _root.refpt._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemywarfactory == 0) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemywarfactory", _root.warpt._x, _root.warpt._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemytechcentre < 1) && (_root.enemymoney >= techcentremoney)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemytechcentre", _root.techpt._x, _root.techpt._y, 1500, 0.7); _root[current].build = true; break; } i--; } } if (((_root.enemytechcentre1._x != undefined) && (timeelasped >= this.nuketime)) && (_root.enemyweaponsilo == 0)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyweaponsilo", _root.silopt._x, _root.silopt._y, 10000, 0.2); _root[current].build = true; timeelasped = 0; break; } i--; } } i = 0; while (i < _root.array1.length) { current = _root.array1[i]; if (_root[current].life == undefined) { _root.array1.splice(i, 1); } if (i < (_root.array1.length - peoplestay)) { _root.array2.push(current); _root.array1.splice(i, 1); if (Math.random() > 0.5) { _root[current].avoid = true; } if (Math.random() > 0.8) { _root[current].aggressive = false; } } else if (_root[current].unittype != "artillery") { this.waypoint = "waypoint" + String(Math.floor(Math.random() * 7) + 100); if (_root[this.waypoint]._x != undefined) { _root[current].aigoto(_root[this.waypoint]._x, _root[this.waypoint]._y, false); } } i++; } } if ((Math.round(_root.ai.timer / 30) * 30) == _root.ai.timer) { if (_root.enemyarray.length <= 0) { _root.gotoAndStop("victory"); } if (_root.friendlylist.length <= 0) { _root.gotoAndStop("defeat"); } n = _root.enemystructurearray.length - 1; while (n > -1) { current2 = _root.enemystructurearray[n]; i = dozers.length - 1; while (i > -1) { current = dozers[i]; if (_root[current].build || (_root[current].walking)) { } else { dx = _root[current]._x - _root[current2]._x; dy = _root[current]._y - _root[current2]._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 1500) { ant = 0; if (((_root[current2].life < _root[current2].fulllife) && (_root[current2].percent == undefined)) && (_root[current2].auto._currentframe == 1)) { if (!_root[current].hitTest(_root[current2])) { _root[current].aigoto(_root[current2]._x, _root[current2]._y, false); } _root[current2].auto.play(); h = array1.length - 1; while (h > -1) { currents = _root.array1[h]; if ((((_root[currents].natack == undefined) && (!_root[currents].walking)) && (!_root[currents].fireing)) && (ant < 5)) { ant++; _root[currents].aigoto(_root[current2]._x, _root[current2]._y, false); if (_root[current2].targetobj != undefined) { targetobj = _root[current2].targetobj; _root[currents].aiattack(targetobj); } } h--; } } } break; } i--; } n--; } } if ((Math.round(_root.ai.timer / 70) * 70) == _root.ai.timer) { if (((dozers.length < dozersneeded) && (_root.enemycomcentre1._x != undefined)) && (_root.enemymoney > 1000)) { _root.enemymoney = _root.enemymoney - 1000; _root.attachMovie("enemydozer", "enemydozer" + _root.n, _root.n); _root["enemydozer" + _root.n]._x = _root.enemycomcentre1._x; _root["enemydozer" + _root.n]._y = _root.enemycomcentre1._y; _root["enemydozer" + _root.n]._rotation = 0; _root.n++; } if ((_root.enemymoney > uppermoney) && (!build)) { build = true; rounds++; } if ((_root.enemymoney < lowermoney) && (build)) { build = false; } i = 0; while (i < _root.array2.length) { current = _root.array2[i]; if (_root[current].life == undefined) { _root.array2.splice(i, 1); } else if ((!_root[current].fireing) && (!_root[current].walking)) { lo = Math.floor(Math.random() * (_root.friendlylist.length - 1)); unit = _root.friendlylist[lo]; _root[current].aiattack(unit); } i++; } arrayone = _root.array1.toString(); if (_root.enemywarfactory1.life > 0) { if ((_root.enemyoiltrucks < oiltrucksneeded) && (_root.enemymoney >= 2000)) { _root.enemymoney = _root.enemymoney - 1500; _root.attachMovie("enemyoiltruck", "enemyoiltruck" + _root.n, _root.n); _root["enemyoiltruck" + _root.n]._x = _root.enemywarfactory1._x; _root["enemyoiltruck" + _root.n]._y = _root.enemywarfactory1._y; _root["enemyoiltruck" + _root.n]._rotation = 0; _root.n++; } if (build || ((_root.array1.length < totalpeople) && (_root.enemymoney > 0))) { a = Math.random(); if ((a > 0) && (a < lightwt)) { unittype = "enemylight"; _root.enemymoney = _root.enemymoney - 1000; } if ((a > lightwt) && (a < rocketwt)) { unittype = "enemyrocket"; _root.enemymoney = _root.enemymoney - 1500; } if ((a > rocketwt) && (a < heavywt)) { unittype = "enemyheavy"; _root.enemymoney = _root.enemymoney - 2500; } if ((a > heavywt) && (a < humveewt)) { unittype = "enemyhumvee"; _root.enemymoney = _root.enemymoney - 500; } if ((a > humveewt) && (a < 1)) { unittype = "enemyartillery"; _root.enemymoney = _root.enemymoney - 2000; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.enemywarfactory1._x; _root[unittype + _root.n]._y = _root.enemywarfactory1._y + 100; _root[unittype + _root.n]._rotation = 0; _root.array1.push(unittype + _root.n); unittype = undefined; _root.n++; if ((_root.enemylasertank1._x == undefined) && (_root.enemytechcentre1._x != undefined)) { if (Math.random() > 0.9) { _root.attachMovie("enemylasertank", "enemylasertank1", _root.n); _root.enemylasertank1._x = _root.enemywarfactory1._x; _root.enemylasertank1._y = _root.enemywarfactory1._y + 100; _root.enemylasertank1._rotation = 0; _root.enemymoney = _root.enemymoney - 7500; _root.array1.push("enemylasertank1"); } } } } } }; } onClipEvent (enterFrame) { if (_root.smartai) { aicheck(); } else { stupidai(); } }
Frame 19
_root.attachMovie("sidebar", "sidebar", 1000000); _root.attachMovie("mo", "mouse", 1000001); _root.sidebar._x = 132.6; _root.sidebar._y = 615; _root.sidebar._xscale = -58.5; _root.sidebar._yscale = 49.14; _root.sidebar._rotation = 90; _global.orix = _root.back._x; _global.oriy = _root.back._y; _root.attachMovie("box5", "box6", 10000004); _root.box6._x = x1; _root.box6._y = y1; _root.box6._height = (_root.box5._height / _root.back._height) * (y4 - y1); _root.box6._width = (_root.box5._width / _root.back._width) * (x4 - x1); _global.constanty = (y4 - y1) / _root.back._height; _global.constantx = (x4 - x1) / _root.back._width; _global.constantsy = (y4 - y1) / _root.back._height; _global.constantsx = (x4 - x1) / _root.back._width; _root.array1 = []; _root.rallylist = []; _root.enemyrallylist = []; MovieClip.prototype.aiattack = function (what) { current2 = what; if (_root[current2]._x != undefined) { current = this._name; _root[current].targetobj = current2; _root[current].attack = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root["flag" + current]._visible = false; _root["flag" + current]._x = _root[current2]._x; _root["flag" + current]._y = _root[current2]._y; _root.objarray.push("flag" + current); _root[current].walking = true; _root.n++; hit = true; } }; MovieClip.prototype.aigoto = function (x1, y1, lock) { current = this._name; _root[current].attack = false; _root[current].walking = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag", "flag" + current, _root.n); if ((!lock) || (lock == undefined)) { _root["flag" + current]._x = x1; _root["flag" + current]._y = y1; } if (lock) { _root["flag" + current]._x = x1 + _root.back._x; _root["flag" + current]._y = y1 + _root.back._y; } _root["flag" + current].vsisible = false; _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; }; Array.prototype.arrayfind = function (element) { var _local4 = false; trace(this.length); var _local3 = this.length - 1; while (_local3 > -1) { elementsearched = this[_local3]; trace(_root[elementsearched].unittype + elementsearched); if (_root[elementsearched].unittype == element) { _local4 = true; break; } _local3--; } return(_local4); }; Array.prototype.arrayfindfirst = function (element) { var _local3 = false; trace(this.length); var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { _local3 = _local2; break; } _local2--; } return(_local3); }; Array.prototype.findsfirst = function (element) { var _local4 = false; var _local3 = this.length - 1; while (_local3 > -1) { elementsearched2 = this[_local3]; if (_root[elementsearched2].unittype == element) { _local4 = elementsearched2; break; } _local3--; } return(_local4); }; MovieClip.prototype.movesym = function () { _root[this._name + "symbols"]._x = (x1 + ((this._x - _root.back._x) * constantx)) - 10; _root[this._name + "symbols"]._y = (y1 + ((this._y - _root.back._y) * constanty)) - 10; }; _root.timer = 6999; _root.limit = 1200; Array.prototype.countduplicate = function (element) { var _local3 = 0; var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { _local3++; } _local2--; } return(_local3); }; Array.prototype.arrayfind = function (element) { var _local3 = false; var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { _local3 = true; break; } _local2--; } return(_local3); }; Array.prototype.finds = function (element) { var _local3 = -1; var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { _local3 = _local2; break; } _local2--; } return(_local3); }; Array.prototype.findandsplice = function (element) { var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { this.splice(_local2, 1); break; } _local2--; } }; nextFrame(); _root.objarray = []; _root.num = 0; _root.sparsex = [0, -50, 150, 100, -100, 150, 250, 200, -250, 300, 300, 350, -350, 400, -410, 500, -550]; _root.sparsey = [0, -50, 80, -180, 250, -50, 140, -150, 60, 150, -70, -220, -350, 350, -350, 375, -375]; _root.linex = [0, 0, 50, 50, 100, 100, 150, 150, 200, 200, 350, 350, 400, 400, 450, 450, 500, 500, 550, 550]; _root.liney = [0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50]; _root.unitsarray = []; _root.flagsarray = []; _root.selectedarray = []; _root.enemyarray = []; _root.friendlylist = []; _root.shellarray = []; _root.enemyminearray = []; _root.minearray = []; _root.enemyminearray = []; _root.money = _root.monet; _root.enemymoney = _root.money; _root.warfactory = 0; _root.enemywarfactory = 0; _global.dozers = []; _root.dozerarray = []; _root.enemydozerarray = []; _root.structurearray = []; _root.enemyservicedepot = 0; _root.enemystructurearray = []; _root.comcentre = 0; _root.enemycomcentre = 0; _root.oilarray = []; _root.enemyoiltruckarray = []; _root.oiltruckarray = []; _root.refinery = 0; _root.enemyrefinery = 0; _root.techcentre = 0; _root.enemytechcentre = 0; _root.enemyweaponsilo = 0; _root.turretarray = []; _root.enemyturretarray = []; _root.enemyturret1 = false; _root.enemyturret2 = false; _root.enemyturret3 = false; _root.enemyturret4 = false; _root.enemyturret5 = false; _root.n = 1000;
Instance of Symbol 1086 MovieClip "back" in Frame 19
onClipEvent (load) { this._x = 0; this._y = 0; }
Frame 20
Mouse.hide(); _root.sidebar.mapp.gotoAndStop(10); stop(); stop();
Instance of Symbol 1022 MovieClip in Frame 20
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(38))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y + 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 20
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(37))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x + 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 20
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(39))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x - 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - 20; i--; } } } }
Instance of Symbol 1022 MovieClip in Frame 20
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(40))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y - 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y - 20; i--; } } } }
Instance of Symbol 1086 MovieClip "back" in Frame 20
onClipEvent (load) { this._x = 0; this._y = 0; }
Instance of Symbol 1029 MovieClip "oil4" in Frame 20
onClipEvent (load) { this.oilspill._xscale = 100; this.oilspill._yscale = 100; }
Instance of Symbol 1036 MovieClip "rig10" in Frame 20
onClipEvent (load) { oilfield = "oil4"; _root.objarray.push(this._name); }
Instance of Symbol 1036 MovieClip "rig19" in Frame 20
onClipEvent (load) { oilfield = "oil1"; _root.objarray.push(this._name); }
Instance of Symbol 1036 MovieClip "rig11" in Frame 20
onClipEvent (load) { oilfield = "oil4"; _root.objarray.push(this._name); }
Instance of Symbol 1036 MovieClip "rig12" in Frame 20
onClipEvent (load) { oilfield = "oil4"; _root.objarray.push(this._name); }
Instance of Symbol 1036 MovieClip "rig20" in Frame 20
onClipEvent (load) { oilfield = "oil1"; _root.objarray.push(this._name); }
Instance of Symbol 1036 MovieClip "rig21" in Frame 20
onClipEvent (load) { oilfield = "oil1"; _root.objarray.push(this._name); }
Instance of Symbol 1038 MovieClip "burton" in Frame 20
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1009 MovieClip in Frame 20
/* no clip actions */
Instance of Symbol 20 MovieClip in Frame 20
onClipEvent (enterFrame) { po++; if (po == _root.shroudarray.length) { po = 0; } current = _root.shroudarray[po]; var revealed = false; i = _root.friendlylist.length - 1; while (i > -1) { current2 = _root.friendlylist[i]; if (_root[current2].unittype != "construction") { if (_root[current].hitTest(_root[current2])) { revealed = true; break; } } i--; } if (revealed) { _root[current]._visible = false; } if ((!revealed) && (_root.fog)) { _root[current]._visible = true; } } onClipEvent (load) { po = 0; }
Instance of Symbol 1042 MovieClip "box" in Frame 20
onClipEvent (mouseDown) { x = _root.mouse._x - 30; y = _root.mouse._y - 30; if (((_root.sidebar.mapp.hitTest(x, y, true) && (_root.comcentre1.life > 0)) && (_root.comcentre1.life != undefined)) && (_root.sidebar._visible)) { x1s = x - x1; y1s = y - y1; x2s = _root.box6._x - x1; y2s = _root.box6._y - y1; _root.box6._x = x; _root.box6._y = y; x1s = x1s / constantx; y1s = y1s / constanty; x2s = x2s / constantx; y2s = y2s / constanty; _root.back._x = _root.back._x - (x1s - x2s); _root.back._y = _root.back._y - (y1s - y2s); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - (x1s - x2s); _root[current]._y = _root[current]._y - (y1s - y2s); i--; } } if ((!_root.sidebar.hitTest(x, y, false)) || (!_root.sidebar._visible)) { if (_root.selectedarray.arrayfind("warfactory1")) { _root.rallypoint._x = _root.mouse._x; _root.rallypoint._y = _root.mouse._y; } hits = false; this._x = _root._xmouse; this._y = _root._ymouse; i = _root.friendlylist.length - 1; while (i > -1) { current = _root.friendlylist[i]; if (_root[current].hitTest(this) && (current != "servicedepot1")) { hits = true; break; } i--; } origx = _root.mouse._x; origy = _root.mouse._y; this._visible = true; array = _root.formation; _root.formation = undefined; if (!hits) { i = _root.selectedarray.length - 1; while (i > -1) { current = _root.selectedarray[i]; if ((!_root[current].enemy) && (_root[current].speed != undefined)) { _root[current].turret._rotation = _root[current].dummy._rotation; c = _root.enemyarray.length - 1; while (c > -1) { current2 = _root.enemyarray[c]; if (_root.mouse.hitTest(_root[current2])) { _root[current].targetobj = current2; _root[current].attack = true; _root[current].dummy.obstacle = false; _root[current].dummy.flag2 = undefined; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root["flag" + current]._x = _root.boxns._x; _root["flag" + current]._y = _root.boxns._y; _root[current].locx = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root[current].locy = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root.objarray.push("flag" + current); _root[current].walking = true; _root.n++; hit = true; break; } c--; } if (!hit) { origx = _root.mouse._x + _root[array + "x"][i]; origy = _root.mouse._y + _root[array + "y"][i]; if (isNaN(origx)) { origx = _root.mouse._x; } if (isNaN(origy)) { origy = _root.mouse._y; } current = _root.selectedarray[i]; _root[current].destx = origx; _root[current].desty = origy; _root[current].attack = false; _root[current].locx = undefined; _root[current].locy = undefined; _root[current].walking = true; _root[current].dummy.obstacle = false; _root[current].dummy.flag2 = undefined; _root["flag" + current].removeMovieClip(); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag", "flag" + current, _root.n); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } } if (Key.isDown(17)) { _root[current].targetobj = "flag" + current; _root[current].attack = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } hit = false; i--; } } } } onClipEvent (mouseUp) { x = _root.mouse._x; y = _root.mouse._y; _root.mouse.gotoAndStop(2); if ((!_root.sidebar.hitTest(x, y, true)) || (!_root.sidebar._visible)) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (_root[current].hitTest(this) && (!_root.selectedarray.arrayfind(current))) { _root[current].selector._visible = true; _root[current].selected1 = true; _root.selectedarray.push(current); } i--; } } origx = undefined; origy = undefined; this._visible = false; _root.sidebar.calccost(); } onClipEvent (enterFrame) { if (_root.mouse.hitTest(_root.sidebar)) { _root.sidebar._alpha = 100; } else { _root.sidebar._alpha = 30; } _root.timer++; if (_root.timer == 7000) { for (var name in _root) { if (typeof(_root[name]) == "movieclip") { if ((_root[name].fulllife != undefined) && ((_root[name].life == undefined) || (_root[name].life <= 0))) { _root[name].removeMovieClip(); } } } i = _root.friendlylist.length - 1; while (i > -1) { currents = _root.friendlylist[i]; if ((_root.friendlylist.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.friendlylist.splice(i, 1); } i--; } i = _root.enemyarray.length - 1; while (i > -1) { currents = _root.enemyarray[i]; if ((_root.enemyarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.enemyarray.splice(i, 1); } i--; } i = _root.objarray.length - 1; while (i > -1) { currents = _root.objarray[i]; if ((_root.objarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.objarray.splice(i, 1); } i--; } i = _root.unitsarray.length - 1; while (i > -1) { currents = _root.unitsarray[i]; if (((_root.unitsarray.countduplicate(currents) > 1) || (_root[currents].life == undefined)) || (_root[currents + "symbols"]._x == undefined)) { _root.unitsarray.splice(i, 1); } i--; } i = _root.shellarray.length - 1; while (i > -1) { currents = _root.shellarray[i]; if (_root.shellarray.countduplicate(currents) > 1) { _root.shellarray.splice(i, 1); } i--; } _root.timer = 0; } if (Key.isDown(32)) { _root.mouse.gotoAndStop(1); _root.selectedarray = []; i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; _root[current].selector._visible = false; _root[current].selected1 = false; _root.sidebar.calccost(); i--; } } if (this._visible) { a = _root._xmouse - origx; b = _root._ymouse - origy; this._width = Math.abs(a); this._height = Math.abs(b); if (a < 0) { this._xscale = this._xscale * -1; } if (b < 0) { this._yscale = this._yscale * -1; } } }
Instance of Symbol 1009 MovieClip in Frame 20
onClipEvent (enterFrame) { po++; if (po == _root.obsarray.length) { po = 0; } current = _root.obsarray[po]; i = _root.unitsarray.length - 1; while (i > -1) { current2 = _root.unitsarray[i]; if (_root[current2].walking || (_root[current2].fireing)) { if (_root.back[current].hitTest(_root[current2])) { if (_root[current2].dummy.obstacle == undefined) { _root[current2].dummy.obstacle = false; } if ((!_root[current2].dummy.obstacle) || (_root[current2].dummy.obstacle == undefined)) { _root[current2].dummy.obstacle = true; if (_root.back[current].pos == "hoz") { roattion = _root[current2].dummy._rotation; trace(roattion + "hoz"); if ((_root[current2].dummy._rotation >= -90) && (_root[current2].dummy._rotation < 90)) { _root[current2].dummy.flag2 = _root.back[current].rights; } if ((_root[current2].dummy._rotation >= 90) && (_root[current2].dummy._rotation < 360)) { _root[current2].dummy.flag2 = _root.back[current].lefts; } } if (_root.back[current].pos == "ver") { roattion = _root[current2].dummy._rotation; trace(roattion + "ver"); if ((_root[current2].dummy._rotation <= 0) && (_root[current2].dummy._rotation > -180)) { _root[current2].dummy.flag2 = _root.back[current].tops; } if ((_root[current2].dummy._rotation > 0) && (_root[current2].dummy._rotation < 180)) { _root[current2].dummy.flag2 = _root.back[current].bottoms; } } } } } i--; } } onClipEvent (load) { po = 0; }
Instance of Symbol 1044 MovieClip "ai" in Frame 20
onClipEvent (load) { this.aicheck = function () { if (type == 1) { commandteamtype(); } if (type == 2) { commandteamtype2(); } if (type == 3) { commandteamtype3(); } if (type == 4) { commandteamtype4(); } if (type == 5) { commandteamtype5(); } timeelasped++; ppp = _root.enemyarray.toString(); Mouse.hide(); _root.ai.timer++; if (_root.ai.timer == Math.round(difficulty * 150)) { if (this.teamslist.length < teamsneeded) { nabei = Math.round(minteamlength + (Math.random() * teamlength)); teamtype("team" + pteam, [], nabei); pteam++; } i = 0; while (i < this.teamslist.length) { current = this.teamslist[i]; if (_root[current].members != undefined) { _root[current].checks; } i++; } } if (_root.ai.timer == Math.round(difficulty * 500)) { if (_root.enemymines < minesneeded) { a = dozers[0]; if ((!_root[a].build) && (!_root[current].walking)) { if (Math.random() < mineweight) { p = Math.floor(Math.random() * minesneeded); _root[current].aibuild2("enemymine", _root["minept" + p]._x, _root["minept" + p]._y, 500, 0, 5); _root[current].build = true; } } } _root.ai.timer = 0; n = 1; while (n < turretsneeded) { if ((!_root["enemyturret" + n]) && (_root.enemymoney >= turretmoney)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { bb = Math.random(); if (bb < turret1wt) { _root[current].aibuild2("enemyturret", _root["turretpt" + n]._x, _root["turretpt" + n]._y, 1000, n, 1.5); _root[current].build = true; break; } if ((bb > turret1wt) && (bb < turret2wt)) { _root[current].aibuild2("enemymultiple", _root["turretpt" + n]._x, _root["turretpt" + n]._y, 1500, n, 1.5); _root[current].build = true; break; } if (bb > turret3wt) { _root[current].aibuild2("enemylaser", _root["turretpt" + n]._x, _root["turretpt" + n]._y, 1500, n, 1.5); _root[current].build = true; break; } } i--; } } n++; } } if (_root.ai.timer == Math.round(difficulty * 250)) { if ((_root.enemycomcentre < 1) && (_root.enemymoney >= 5000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemycomcentre", _root.comcentrept._x, _root.comcentrept._y, 5000, 0.5); _root[current].build = true; break; } i--; } } if ((_root.enemyservicedepot < 1) && (_root.enemymoney >= servicedepotmoney)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyservicedepot", _root.servpt._x, _root.servpt._y, 1500, 1); _root[current].build = true; break; } i--; } } if ((_root.enemyrefinery < 1) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyrefinery", _root.refpt._x, _root.refpt._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemywarfactory == 0) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemywarfactory", _root.warpt._x, _root.warpt._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemytechcentre < 1) && (_root.enemymoney >= techcentremoney)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemytechcentre", _root.techpt._x, _root.techpt._y, 1500, 0.7); _root[current].build = true; break; } i--; } } if (((_root.enemytechcentre1._x != undefined) && (timeelasped >= this.nuketime)) && (_root.enemyweaponsilo == 0)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyweaponsilo", _root.silopt._x, _root.silopt._y, 10000, 0.2); _root[current].build = true; timeelasped = 0; break; } i--; } } } if ((Math.round(_root.ai.timer / 30) * 30) == _root.ai.timer) { if (_root.enemyarray.length <= 0) { _root.gotoAndStop("victory"); } if (_root.friendlylist.length <= 0) { _root.gotoAndStop("defeat"); } n = _root.enemystructurearray.length - 1; while (n > -1) { current2 = _root.enemystructurearray[n]; i = dozers.length - 1; while (i > -1) { current = dozers[i]; if (_root[current].build || (_root[current].walking)) { } else { dx = _root[current]._x - _root[current2]._x; dy = _root[current]._y - _root[current2]._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 1500) { ant = 0; if (((_root[current2].life < _root[current2].fulllife) && (_root[current2].percent == undefined)) && (_root[current2].auto._currentframe == 1)) { if (!_root[current].hitTest(_root[current2])) { _root[current].aigoto(_root[current2]._x, _root[current2]._y, false); } _root[current2].auto.play(); h = array1.length - 1; while (h > -1) { currents = _root.array1[h]; if ((((_root[currents].natack == undefined) && (!_root[currents].walking)) && (!_root[currents].fireing)) && (ant < 5)) { ant++; _root[currents].aigoto(_root[current2]._x, _root[current2]._y, false); if (_root[current2].targetobj != undefined) { targetobj = _root[current2].targetobj; _root[currents].aiattack(targetobj); } } h--; } } } break; } i--; } n--; } } if ((Math.round(_root.ai.timer / 70) * 70) == _root.ai.timer) { if (((dozers.length < dozersneeded) && (_root.enemycomcentre1._x != undefined)) && (_root.enemymoney > 1000)) { _root.enemymoney = _root.enemymoney - (1000 * difficulty); _root.attachMovie("enemydozer", "enemydozer" + _root.n, _root.n); _root["enemydozer" + _root.n]._x = _root.enemycomcentre1._x; _root["enemydozer" + _root.n]._y = _root.enemycomcentre1._y; _root["enemydozer" + _root.n]._rotation = 0; _root.n++; } if ((_root.enemymoney > uppermoney) && (!build)) { build = true; rounds++; } if ((_root.enemymoney < lowermoney) && (build)) { build = false; } arrayone = _root.array1.toString(); if (_root.enemywarfactory1.life > 0) { if ((_root.enemyoiltrucks < oiltrucksneeded) && (_root.enemymoney >= 2000)) { _root.enemymoney = _root.enemymoney - (1500 * difficulty); _root.attachMovie("enemyoiltruck", "enemyoiltruck" + _root.n, _root.n); _root["enemyoiltruck" + _root.n]._x = _root.enemywarfactory1._x; _root["enemyoiltruck" + _root.n]._y = _root.enemywarfactory1._y; _root["enemyoiltruck" + _root.n]._rotation = 0; _root.n++; } if (build && (_root.enemymoney > 0)) { i = 0; while (i < (this.teamslist.length - 1)) { current = this.teamslist[i]; if (_root[current].members.length < _root[current].maxlength) { a = Math.random(); if ((a > 0) && (a < lightwt)) { unittype = "enemylight"; _root.enemymoney = _root.enemymoney - (1000 * difficulty); } if ((a > lightwt) && (a < rocketwt)) { unittype = "enemyrocket"; _root.enemymoney = _root.enemymoney - (1500 * difficulty); } if ((a > rocketwt) && (a < heavywt)) { unittype = "enemyheavy"; _root.enemymoney = _root.enemymoney - (2500 * difficulty); } if ((a > heavywt) && (a < humveewt)) { unittype = "enemyhumvee"; _root.enemymoney = _root.enemymoney - (500 * difficulty); } if ((a > humveewt) && (a < 1)) { unittype = "enemyartillery"; _root.enemymoney = _root.enemymoney - 2000; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.enemywarfactory1._x; _root[unittype + _root.n]._y = _root.enemywarfactory1._y + 100; _root[unittype + _root.n]._rotation = 0; _root[current].members.push(unittype + _root.n); unittype = undefined; _root.n++; break; } i++; } if ((_root.enemylasertank1._x == undefined) && (_root.enemytechcentre1._x != undefined)) { if (Math.random() > 0.9) { _root.attachMovie("enemylasertank", "enemylasertank1", _root.n); _root.enemylasertank1._x = _root.enemywarfactory1._x; _root.enemylasertank1._y = _root.enemywarfactory1._y + 100; _root.enemylasertank1._rotation = 0; _root.enemymoney = _root.enemymoney - (7500 * difficulty); _root[current].members.push("enemylasertank1"); } } } } } }; this.stupidai = function () { ppp = _root.enemyarray.toString(); Mouse.hide(); _root.ai.timer++; if (_root.ai.timer == Math.round(difficulty * 500)) { if (_root.enemymines < minesneeded) { a = dozers[0]; if ((!_root[a].build) && (!_root[current].walking)) { if (Math.random() < mineweight) { p = Math.floor(Math.random() * minesneeded); _root[current].aibuild2("enemymine", _root["minept" + p]._x, _root["minept" + p]._y, 500, 0, 5); _root[current].build = true; } } } _root.ai.timer = 0; n = 1; while (n < turretsneeded) { if ((!_root["enemyturret" + n]) && (_root.enemymoney >= turretmoney)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { bb = Math.random(); if (bb < turret1wt) { _root[current].aibuild2("enemyturret", _root["turretpt" + n]._x, _root["turretpt" + n]._y, 1000, n, 1.5); _root[current].build = true; break; } if ((bb > turret1wt) && (bb < turret2wt)) { _root[current].aibuild2("enemymultiple", _root["turretpt" + n]._x, _root["turretpt" + n]._y, 1500, n, 1.5); _root[current].build = true; break; } if (bb > turret3wt) { _root[current].aibuild2("enemylaser", _root["turretpt" + n]._x, _root["turretpt" + n]._y, 1500, n, 1.5); _root[current].build = true; break; } } i--; } } n++; } } if (_root.ai.timer == Math.round(difficulty * 250)) { if ((_root.enemycomcentre < 1) && (_root.enemymoney >= 5000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemycomcentre", _root.comcentrept._x, _root.comcentrept._y, 5000, 0.5); _root[current].build = true; break; } i--; } } if ((_root.enemyservicedepot < 1) && (_root.enemymoney >= servicedepotmoney)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyservicedepot", _root.servpt._x, _root.servpt._y, 1500, 1); _root[current].build = true; break; } i--; } } if ((_root.enemyrefinery < 1) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyrefinery", _root.refpt._x, _root.refpt._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemywarfactory == 0) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemywarfactory", _root.warpt._x, _root.warpt._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemytechcentre < 1) && (_root.enemymoney >= techcentremoney)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemytechcentre", _root.techpt._x, _root.techpt._y, 1500, 0.7); _root[current].build = true; break; } i--; } } if (((_root.enemytechcentre1._x != undefined) && (timeelasped >= this.nuketime)) && (_root.enemyweaponsilo == 0)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyweaponsilo", _root.silopt._x, _root.silopt._y, 10000, 0.2); _root[current].build = true; timeelasped = 0; break; } i--; } } i = 0; while (i < _root.array1.length) { current = _root.array1[i]; if (_root[current].life == undefined) { _root.array1.splice(i, 1); } if (i < (_root.array1.length - peoplestay)) { _root.array2.push(current); _root.array1.splice(i, 1); if (Math.random() > 0.5) { _root[current].avoid = true; } if (Math.random() > 0.8) { _root[current].aggressive = false; } } else if (_root[current].unittype != "artillery") { this.waypoint = "waypoint" + String(Math.floor(Math.random() * 7) + 100); if (_root[this.waypoint]._x != undefined) { _root[current].aigoto(_root[this.waypoint]._x, _root[this.waypoint]._y, false); } } i++; } } if ((Math.round(_root.ai.timer / 30) * 30) == _root.ai.timer) { if (_root.enemyarray.length <= 0) { _root.gotoAndStop("victory"); } if (_root.friendlylist.length <= 0) { _root.gotoAndStop("defeat"); } n = _root.enemystructurearray.length - 1; while (n > -1) { current2 = _root.enemystructurearray[n]; i = dozers.length - 1; while (i > -1) { current = dozers[i]; if (_root[current].build || (_root[current].walking)) { } else { dx = _root[current]._x - _root[current2]._x; dy = _root[current]._y - _root[current2]._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 1500) { ant = 0; if (((_root[current2].life < _root[current2].fulllife) && (_root[current2].percent == undefined)) && (_root[current2].auto._currentframe == 1)) { if (!_root[current].hitTest(_root[current2])) { _root[current].aigoto(_root[current2]._x, _root[current2]._y, false); } _root[current2].auto.play(); h = array1.length - 1; while (h > -1) { currents = _root.array1[h]; if ((((_root[currents].natack == undefined) && (!_root[currents].walking)) && (!_root[currents].fireing)) && (ant < 5)) { ant++; _root[currents].aigoto(_root[current2]._x, _root[current2]._y, false); if (_root[current2].targetobj != undefined) { targetobj = _root[current2].targetobj; _root[currents].aiattack(targetobj); } } h--; } } } break; } i--; } n--; } } if ((Math.round(_root.ai.timer / 70) * 70) == _root.ai.timer) { if (((dozers.length < dozersneeded) && (_root.enemycomcentre1._x != undefined)) && (_root.enemymoney > 1000)) { _root.enemymoney = _root.enemymoney - 1000; _root.attachMovie("enemydozer", "enemydozer" + _root.n, _root.n); _root["enemydozer" + _root.n]._x = _root.enemycomcentre1._x; _root["enemydozer" + _root.n]._y = _root.enemycomcentre1._y; _root["enemydozer" + _root.n]._rotation = 0; _root.n++; } if ((_root.enemymoney > uppermoney) && (!build)) { build = true; rounds++; } if ((_root.enemymoney < lowermoney) && (build)) { build = false; } i = 0; while (i < _root.array2.length) { current = _root.array2[i]; if (_root[current].life == undefined) { _root.array2.splice(i, 1); } else if ((!_root[current].fireing) && (!_root[current].walking)) { lo = Math.floor(Math.random() * (_root.friendlylist.length - 1)); unit = _root.friendlylist[lo]; _root[current].aiattack(unit); } i++; } arrayone = _root.array1.toString(); if (_root.enemywarfactory1.life > 0) { if ((_root.enemyoiltrucks < oiltrucksneeded) && (_root.enemymoney >= 2000)) { _root.enemymoney = _root.enemymoney - 1500; _root.attachMovie("enemyoiltruck", "enemyoiltruck" + _root.n, _root.n); _root["enemyoiltruck" + _root.n]._x = _root.enemywarfactory1._x; _root["enemyoiltruck" + _root.n]._y = _root.enemywarfactory1._y; _root["enemyoiltruck" + _root.n]._rotation = 0; _root.n++; } if (build || ((_root.array1.length < totalpeople) && (_root.enemymoney > 0))) { a = Math.random(); if ((a > 0) && (a < lightwt)) { unittype = "enemylight"; _root.enemymoney = _root.enemymoney - 1000; } if ((a > lightwt) && (a < rocketwt)) { unittype = "enemyrocket"; _root.enemymoney = _root.enemymoney - 1500; } if ((a > rocketwt) && (a < heavywt)) { unittype = "enemyheavy"; _root.enemymoney = _root.enemymoney - 2500; } if ((a > heavywt) && (a < humveewt)) { unittype = "enemyhumvee"; _root.enemymoney = _root.enemymoney - 500; } if ((a > humveewt) && (a < 1)) { unittype = "enemyartillery"; _root.enemymoney = _root.enemymoney - 2000; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.enemywarfactory1._x; _root[unittype + _root.n]._y = _root.enemywarfactory1._y + 100; _root[unittype + _root.n]._rotation = 0; _root.array1.push(unittype + _root.n); unittype = undefined; _root.n++; if ((_root.enemylasertank1._x == undefined) && (_root.enemytechcentre1._x != undefined)) { if (Math.random() > 0.9) { _root.attachMovie("enemylasertank", "enemylasertank1", _root.n); _root.enemylasertank1._x = _root.enemywarfactory1._x; _root.enemylasertank1._y = _root.enemywarfactory1._y + 100; _root.enemylasertank1._rotation = 0; _root.enemymoney = _root.enemymoney - 7500; _root.array1.push("enemylasertank1"); } } } } } }; } onClipEvent (enterFrame) { if (_root.smartai) { aicheck(); } else { stupidai(); } }
Frame 21
_root.attachMovie("sidebar", "sidebar", 1000000); _root.attachMovie("mo", "mouse", 1000001); _root.sidebar._x = 132.6; _root.sidebar._y = 615; _root.sidebar._xscale = -58.5; _root.sidebar._yscale = 49.14; _root.sidebar._rotation = 90; _global.orix = _root.back._x; _global.oriy = _root.back._y; _root.attachMovie("box5", "box6", 10000004); _root.box6._x = x1; _root.box6._y = y1; _root.box6._height = (_root.box5._height / _root.back._height) * (y4 - y1); _root.box6._width = (_root.box5._width / _root.back._width) * (x4 - x1); _global.constanty = (y4 - y1) / _root.back._height; _global.constantx = (x4 - x1) / _root.back._width; _global.constantsy = (y4 - y1) / _root.back._height; _global.constantsx = (x4 - x1) / _root.back._width; _root.array1 = []; _root.rallylist = []; _root.enemyrallylist = []; MovieClip.prototype.aiattack = function (what) { current2 = what; if (_root[current2]._x != undefined) { current = this._name; _root[current].targetobj = current2; _root[current].attack = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root["flag" + current]._visible = false; _root["flag" + current]._x = _root[current2]._x; _root["flag" + current]._y = _root[current2]._y; _root.objarray.push("flag" + current); _root[current].walking = true; _root.n++; hit = true; } }; MovieClip.prototype.aigoto = function (x1, y1, lock) { current = this._name; _root[current].attack = false; _root[current].walking = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag", "flag" + current, _root.n); if ((!lock) || (lock == undefined)) { _root["flag" + current]._x = x1; _root["flag" + current]._y = y1; } if (lock) { _root["flag" + current]._x = x1 + _root.back._x; _root["flag" + current]._y = y1 + _root.back._y; } _root["flag" + current].vsisible = false; _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; }; Array.prototype.arrayfind = function (element) { var _local4 = false; trace(this.length); var _local3 = this.length - 1; while (_local3 > -1) { elementsearched = this[_local3]; trace(_root[elementsearched].unittype + elementsearched); if (_root[elementsearched].unittype == element) { _local4 = true; break; } _local3--; } return(_local4); }; Array.prototype.arrayfindfirst = function (element) { var _local3 = false; trace(this.length); var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { _local3 = _local2; break; } _local2--; } return(_local3); }; Array.prototype.findsfirst = function (element) { var _local4 = false; var _local3 = this.length - 1; while (_local3 > -1) { elementsearched2 = this[_local3]; if (_root[elementsearched2].unittype == element) { _local4 = elementsearched2; break; } _local3--; } return(_local4); }; MovieClip.prototype.movesym = function () { _root[this._name + "symbols"]._x = (x1 + ((this._x - _root.back._x) * constantx)) - 10; _root[this._name + "symbols"]._y = (y1 + ((this._y - _root.back._y) * constanty)) - 10; }; _root.timer = 6999; _root.limit = 1200; Array.prototype.countduplicate = function (element) { var _local3 = 0; var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { _local3++; } _local2--; } return(_local3); }; Array.prototype.arrayfind = function (element) { var _local3 = false; var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { _local3 = true; break; } _local2--; } return(_local3); }; Array.prototype.finds = function (element) { var _local3 = -1; var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { _local3 = _local2; break; } _local2--; } return(_local3); }; Array.prototype.findandsplice = function (element) { var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { this.splice(_local2, 1); break; } _local2--; } }; nextFrame(); _root.objarray = []; _root.num = 0; _root.sparsex = [0, -50, 150, 100, -100, 150, 250, 200, -250, 300, 300, 350, -350, 400, -410, 500, -550]; _root.sparsey = [0, -50, 80, -180, 250, -50, 140, -150, 60, 150, -70, -220, -350, 350, -350, 375, -375]; _root.linex = [0, 0, 50, 50, 100, 100, 150, 150, 200, 200, 350, 350, 400, 400, 450, 450, 500, 500, 550, 550]; _root.liney = [0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50]; _root.unitsarray = []; _root.flagsarray = []; _root.selectedarray = []; _root.enemyarray = []; _root.friendlylist = []; _root.shellarray = []; _root.enemyminearray = []; _root.minearray = []; _root.enemyminearray = []; _root.money = _root.monet; _root.enemymoney = _root.money; _root.warfactory = 0; _root.enemywarfactory = 0; _global.dozers = []; _root.dozerarray = []; _root.enemydozerarray = []; _root.structurearray = []; _root.enemyservicedepot = 0; _root.enemystructurearray = []; _root.comcentre = 0; _root.enemycomcentre = 0; _root.oilarray = []; _root.enemyoiltruckarray = []; _root.oiltruckarray = []; _root.refinery = 0; _root.enemyrefinery = 0; _root.techcentre = 0; _root.enemytechcentre = 0; _root.enemyweaponsilo = 0; _root.turretarray = []; _root.enemyturretarray = []; _root.enemyturret1 = false; _root.enemyturret2 = false; _root.enemyturret3 = false; _root.enemyturret4 = false; _root.enemyturret5 = false; _root.n = 1000;
Instance of Symbol 1088 MovieClip "back" in Frame 21
onClipEvent (load) { this._x = 0; this._y = 0; }
Frame 22
Mouse.hide(); _root.sidebar.mapp.gotoAndStop(4); stop(); stop();
Instance of Symbol 1022 MovieClip in Frame 22
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(38))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y + 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 22
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(37))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x + 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 22
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(39))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x - 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - 20; i--; } } } }
Instance of Symbol 1022 MovieClip in Frame 22
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(40))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y - 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y - 20; i--; } } } }
Instance of Symbol 1088 MovieClip "back" in Frame 22
onClipEvent (load) { this._x = 0; this._y = 0; }
Instance of Symbol 1029 MovieClip "oil9" in Frame 22
onClipEvent (load) { this.oilspill._xscale = 100; this.oilspill._yscale = 100; }
Instance of Symbol 1036 MovieClip "rig12" in Frame 22
onClipEvent (load) { oilfield = "oil9"; _root.objarray.push(this._name); }
Instance of Symbol 1036 MovieClip "rig19" in Frame 22
onClipEvent (load) { oilfield = "oil1"; _root.objarray.push(this._name); }
Instance of Symbol 1029 MovieClip "oil33" in Frame 22
onClipEvent (load) { this.oilspill._xscale = 100; this.oilspill._yscale = 100; }
Instance of Symbol 1029 MovieClip "oil8" in Frame 22
onClipEvent (load) { this.oilspill._xscale = 100; this.oilspill._yscale = 100; }
Instance of Symbol 1036 MovieClip "rig19" in Frame 22
onClipEvent (load) { oilfield = "oil6"; _root.objarray.push(this._name); }
Instance of Symbol 1036 MovieClip "rig31" in Frame 22
onClipEvent (load) { oilfield = "oil34"; _root.objarray.push(this._name); }
Instance of Symbol 1036 MovieClip "rig20" in Frame 22
onClipEvent (load) { oilfield = "oil0"; _root.objarray.push(this._name); }
Instance of Symbol 1038 MovieClip "burton" in Frame 22
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1009 MovieClip in Frame 22
/* no clip actions */
Instance of Symbol 20 MovieClip in Frame 22
onClipEvent (enterFrame) { po++; if (po == _root.shroudarray.length) { po = 0; } current = _root.shroudarray[po]; var revealed = false; i = _root.friendlylist.length - 1; while (i > -1) { current2 = _root.friendlylist[i]; if (_root[current2].unittype != "construction") { if (_root[current].hitTest(_root[current2])) { revealed = true; break; } } i--; } if (revealed) { _root[current]._visible = false; } if ((!revealed) && (_root.fog)) { _root[current]._visible = true; } } onClipEvent (load) { po = 0; }
Instance of Symbol 1042 MovieClip "box" in Frame 22
onClipEvent (mouseDown) { x = _root.mouse._x - 30; y = _root.mouse._y - 30; if (((_root.sidebar.mapp.hitTest(x, y, true) && (_root.comcentre1.life > 0)) && (_root.comcentre1.life != undefined)) && (_root.sidebar._visible)) { x1s = x - x1; y1s = y - y1; x2s = _root.box6._x - x1; y2s = _root.box6._y - y1; _root.box6._x = x; _root.box6._y = y; x1s = x1s / constantx; y1s = y1s / constanty; x2s = x2s / constantx; y2s = y2s / constanty; _root.back._x = _root.back._x - (x1s - x2s); _root.back._y = _root.back._y - (y1s - y2s); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - (x1s - x2s); _root[current]._y = _root[current]._y - (y1s - y2s); i--; } } if ((!_root.sidebar.hitTest(x, y, false)) || (!_root.sidebar._visible)) { if (_root.selectedarray.arrayfind("warfactory1")) { _root.rallypoint._x = _root.mouse._x; _root.rallypoint._y = _root.mouse._y; } hits = false; this._x = _root._xmouse; this._y = _root._ymouse; i = _root.friendlylist.length - 1; while (i > -1) { current = _root.friendlylist[i]; if (_root[current].hitTest(this) && (current != "servicedepot1")) { hits = true; break; } i--; } origx = _root.mouse._x; origy = _root.mouse._y; this._visible = true; array = _root.formation; _root.formation = undefined; if (!hits) { i = _root.selectedarray.length - 1; while (i > -1) { current = _root.selectedarray[i]; if ((!_root[current].enemy) && (_root[current].speed != undefined)) { _root[current].turret._rotation = _root[current].dummy._rotation; c = _root.enemyarray.length - 1; while (c > -1) { current2 = _root.enemyarray[c]; if (_root.mouse.hitTest(_root[current2])) { _root[current].targetobj = current2; _root[current].attack = true; _root[current].dummy.obstacle = false; _root[current].dummy.flag2 = undefined; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root["flag" + current]._x = _root.boxns._x; _root["flag" + current]._y = _root.boxns._y; _root[current].locx = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root[current].locy = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root.objarray.push("flag" + current); _root[current].walking = true; _root.n++; hit = true; break; } c--; } if (!hit) { origx = _root.mouse._x + _root[array + "x"][i]; origy = _root.mouse._y + _root[array + "y"][i]; if (isNaN(origx)) { origx = _root.mouse._x; } if (isNaN(origy)) { origy = _root.mouse._y; } current = _root.selectedarray[i]; _root[current].destx = origx; _root[current].desty = origy; _root[current].attack = false; _root[current].locx = undefined; _root[current].locy = undefined; _root[current].walking = true; _root[current].dummy.obstacle = false; _root[current].dummy.flag2 = undefined; _root["flag" + current].removeMovieClip(); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag", "flag" + current, _root.n); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } } if (Key.isDown(17)) { _root[current].targetobj = "flag" + current; _root[current].attack = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } hit = false; i--; } } } } onClipEvent (mouseUp) { x = _root.mouse._x; y = _root.mouse._y; _root.mouse.gotoAndStop(2); if ((!_root.sidebar.hitTest(x, y, true)) || (!_root.sidebar._visible)) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (_root[current].hitTest(this) && (!_root.selectedarray.arrayfind(current))) { _root[current].selector._visible = true; _root[current].selected1 = true; _root.selectedarray.push(current); } i--; } } origx = undefined; origy = undefined; this._visible = false; _root.sidebar.calccost(); } onClipEvent (enterFrame) { if (_root.mouse.hitTest(_root.sidebar)) { _root.sidebar._alpha = 100; } else { _root.sidebar._alpha = 30; } _root.timer++; if (_root.timer == 7000) { for (var name in _root) { if (typeof(_root[name]) == "movieclip") { if ((_root[name].fulllife != undefined) && ((_root[name].life == undefined) || (_root[name].life <= 0))) { _root[name].removeMovieClip(); } } } i = _root.friendlylist.length - 1; while (i > -1) { currents = _root.friendlylist[i]; if ((_root.friendlylist.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.friendlylist.splice(i, 1); } i--; } i = _root.enemyarray.length - 1; while (i > -1) { currents = _root.enemyarray[i]; if ((_root.enemyarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.enemyarray.splice(i, 1); } i--; } i = _root.objarray.length - 1; while (i > -1) { currents = _root.objarray[i]; if ((_root.objarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.objarray.splice(i, 1); } i--; } i = _root.unitsarray.length - 1; while (i > -1) { currents = _root.unitsarray[i]; if (((_root.unitsarray.countduplicate(currents) > 1) || (_root[currents].life == undefined)) || (_root[currents + "symbols"]._x == undefined)) { _root.unitsarray.splice(i, 1); } i--; } i = _root.shellarray.length - 1; while (i > -1) { currents = _root.shellarray[i]; if (_root.shellarray.countduplicate(currents) > 1) { _root.shellarray.splice(i, 1); } i--; } _root.timer = 0; } if (Key.isDown(32)) { _root.mouse.gotoAndStop(1); _root.selectedarray = []; i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; _root[current].selector._visible = false; _root[current].selected1 = false; _root.sidebar.calccost(); i--; } } if (this._visible) { a = _root._xmouse - origx; b = _root._ymouse - origy; this._width = Math.abs(a); this._height = Math.abs(b); if (a < 0) { this._xscale = this._xscale * -1; } if (b < 0) { this._yscale = this._yscale * -1; } } }
Instance of Symbol 1009 MovieClip in Frame 22
onClipEvent (enterFrame) { po++; if (po == _root.obsarray.length) { po = 0; } current = _root.obsarray[po]; i = _root.unitsarray.length - 1; while (i > -1) { current2 = _root.unitsarray[i]; if (_root[current2].walking || (_root[current2].fireing)) { if (_root.back[current].hitTest(_root[current2])) { if (_root[current2].dummy.obstacle == undefined) { _root[current2].dummy.obstacle = false; } if ((!_root[current2].dummy.obstacle) || (_root[current2].dummy.obstacle == undefined)) { _root[current2].dummy.obstacle = true; if (_root.back[current].pos == "hoz") { roattion = _root[current2].dummy._rotation; trace(roattion + "hoz"); if ((_root[current2].dummy._rotation >= -90) && (_root[current2].dummy._rotation < 90)) { _root[current2].dummy.flag2 = _root.back[current].rights; } if ((_root[current2].dummy._rotation >= 90) && (_root[current2].dummy._rotation < 360)) { _root[current2].dummy.flag2 = _root.back[current].lefts; } } if (_root.back[current].pos == "ver") { roattion = _root[current2].dummy._rotation; trace(roattion + "ver"); if ((_root[current2].dummy._rotation <= 0) && (_root[current2].dummy._rotation > -180)) { _root[current2].dummy.flag2 = _root.back[current].tops; } if ((_root[current2].dummy._rotation > 0) && (_root[current2].dummy._rotation < 180)) { _root[current2].dummy.flag2 = _root.back[current].bottoms; } } } } } i--; } } onClipEvent (load) { po = 0; }
Instance of Symbol 1044 MovieClip "ai" in Frame 22
onClipEvent (load) { this.aicheck = function () { if (type == 1) { commandteamtype(); } if (type == 2) { commandteamtype2(); } if (type == 3) { commandteamtype3(); } if (type == 4) { commandteamtype4(); } if (type == 5) { commandteamtype5(); } timeelasped++; ppp = _root.enemyarray.toString(); Mouse.hide(); _root.ai.timer++; if (_root.ai.timer == Math.round(difficulty * 150)) { if (this.teamslist.length < teamsneeded) { nabei = Math.round(minteamlength + (Math.random() * teamlength)); teamtype("team" + pteam, [], nabei); pteam++; } i = 0; while (i < this.teamslist.length) { current = this.teamslist[i]; if (_root[current].members != undefined) { _root[current].checks; } i++; } } if (_root.ai.timer == Math.round(difficulty * 500)) { if (_root.enemymines < minesneeded) { a = dozers[0]; if ((!_root[a].build) && (!_root[current].walking)) { if (Math.random() < mineweight) { p = Math.floor(Math.random() * minesneeded); _root[current].aibuild2("enemymine", _root["minept" + p]._x, _root["minept" + p]._y, 500, 0, 5); _root[current].build = true; } } } _root.ai.timer = 0; n = 1; while (n < turretsneeded) { if ((!_root["enemyturret" + n]) && (_root.enemymoney >= turretmoney)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { bb = Math.random(); if (bb < turret1wt) { _root[current].aibuild2("enemyturret", _root["turretpt" + n]._x, _root["turretpt" + n]._y, 1000, n, 1.5); _root[current].build = true; break; } if ((bb > turret1wt) && (bb < turret2wt)) { _root[current].aibuild2("enemymultiple", _root["turretpt" + n]._x, _root["turretpt" + n]._y, 1500, n, 1.5); _root[current].build = true; break; } if (bb > turret3wt) { _root[current].aibuild2("enemylaser", _root["turretpt" + n]._x, _root["turretpt" + n]._y, 1500, n, 1.5); _root[current].build = true; break; } } i--; } } n++; } } if (_root.ai.timer == Math.round(difficulty * 250)) { if ((_root.enemycomcentre < 1) && (_root.enemymoney >= 5000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemycomcentre", _root.comcentrept._x, _root.comcentrept._y, 5000, 0.5); _root[current].build = true; break; } i--; } } if ((_root.enemyservicedepot < 1) && (_root.enemymoney >= servicedepotmoney)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyservicedepot", _root.servpt._x, _root.servpt._y, 1500, 1); _root[current].build = true; break; } i--; } } if ((_root.enemyrefinery < 1) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyrefinery", _root.refpt._x, _root.refpt._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemywarfactory == 0) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemywarfactory", _root.warpt._x, _root.warpt._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemytechcentre < 1) && (_root.enemymoney >= techcentremoney)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemytechcentre", _root.techpt._x, _root.techpt._y, 1500, 0.7); _root[current].build = true; break; } i--; } } if (((_root.enemytechcentre1._x != undefined) && (timeelasped >= this.nuketime)) && (_root.enemyweaponsilo == 0)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyweaponsilo", _root.silopt._x, _root.silopt._y, 10000, 0.2); _root[current].build = true; timeelasped = 0; break; } i--; } } } if ((Math.round(_root.ai.timer / 30) * 30) == _root.ai.timer) { if (_root.enemyarray.length <= 0) { _root.gotoAndStop("victory"); } if (_root.friendlylist.length <= 0) { _root.gotoAndStop("defeat"); } n = _root.enemystructurearray.length - 1; while (n > -1) { current2 = _root.enemystructurearray[n]; i = dozers.length - 1; while (i > -1) { current = dozers[i]; if (_root[current].build || (_root[current].walking)) { } else { dx = _root[current]._x - _root[current2]._x; dy = _root[current]._y - _root[current2]._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 1500) { ant = 0; if (((_root[current2].life < _root[current2].fulllife) && (_root[current2].percent == undefined)) && (_root[current2].auto._currentframe == 1)) { if (!_root[current].hitTest(_root[current2])) { _root[current].aigoto(_root[current2]._x, _root[current2]._y, false); } _root[current2].auto.play(); h = array1.length - 1; while (h > -1) { currents = _root.array1[h]; if ((((_root[currents].natack == undefined) && (!_root[currents].walking)) && (!_root[currents].fireing)) && (ant < 5)) { ant++; _root[currents].aigoto(_root[current2]._x, _root[current2]._y, false); if (_root[current2].targetobj != undefined) { targetobj = _root[current2].targetobj; _root[currents].aiattack(targetobj); } } h--; } } } break; } i--; } n--; } } if ((Math.round(_root.ai.timer / 70) * 70) == _root.ai.timer) { if (((dozers.length < dozersneeded) && (_root.enemycomcentre1._x != undefined)) && (_root.enemymoney > 1000)) { _root.enemymoney = _root.enemymoney - (1000 * difficulty); _root.attachMovie("enemydozer", "enemydozer" + _root.n, _root.n); _root["enemydozer" + _root.n]._x = _root.enemycomcentre1._x; _root["enemydozer" + _root.n]._y = _root.enemycomcentre1._y; _root["enemydozer" + _root.n]._rotation = 0; _root.n++; } if ((_root.enemymoney > uppermoney) && (!build)) { build = true; rounds++; } if ((_root.enemymoney < lowermoney) && (build)) { build = false; } arrayone = _root.array1.toString(); if (_root.enemywarfactory1.life > 0) { if ((_root.enemyoiltrucks < oiltrucksneeded) && (_root.enemymoney >= 2000)) { _root.enemymoney = _root.enemymoney - (1500 * difficulty); _root.attachMovie("enemyoiltruck", "enemyoiltruck" + _root.n, _root.n); _root["enemyoiltruck" + _root.n]._x = _root.enemywarfactory1._x; _root["enemyoiltruck" + _root.n]._y = _root.enemywarfactory1._y; _root["enemyoiltruck" + _root.n]._rotation = 0; _root.n++; } if (build && (_root.enemymoney > 0)) { i = 0; while (i < (this.teamslist.length - 1)) { current = this.teamslist[i]; if (_root[current].members.length < _root[current].maxlength) { a = Math.random(); if ((a > 0) && (a < lightwt)) { unittype = "enemylight"; _root.enemymoney = _root.enemymoney - (1000 * difficulty); } if ((a > lightwt) && (a < rocketwt)) { unittype = "enemyrocket"; _root.enemymoney = _root.enemymoney - (1500 * difficulty); } if ((a > rocketwt) && (a < heavywt)) { unittype = "enemyheavy"; _root.enemymoney = _root.enemymoney - (2500 * difficulty); } if ((a > heavywt) && (a < humveewt)) { unittype = "enemyhumvee"; _root.enemymoney = _root.enemymoney - (500 * difficulty); } if ((a > humveewt) && (a < 1)) { unittype = "enemyartillery"; _root.enemymoney = _root.enemymoney - 2000; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.enemywarfactory1._x; _root[unittype + _root.n]._y = _root.enemywarfactory1._y + 100; _root[unittype + _root.n]._rotation = 0; _root[current].members.push(unittype + _root.n); unittype = undefined; _root.n++; break; } i++; } if ((_root.enemylasertank1._x == undefined) && (_root.enemytechcentre1._x != undefined)) { if (Math.random() > 0.9) { _root.attachMovie("enemylasertank", "enemylasertank1", _root.n); _root.enemylasertank1._x = _root.enemywarfactory1._x; _root.enemylasertank1._y = _root.enemywarfactory1._y + 100; _root.enemylasertank1._rotation = 0; _root.enemymoney = _root.enemymoney - (7500 * difficulty); _root[current].members.push("enemylasertank1"); } } } } } }; this.stupidai = function () { ppp = _root.enemyarray.toString(); Mouse.hide(); _root.ai.timer++; if (_root.ai.timer == Math.round(difficulty * 500)) { if (_root.enemymines < minesneeded) { a = dozers[0]; if ((!_root[a].build) && (!_root[current].walking)) { if (Math.random() < mineweight) { p = Math.floor(Math.random() * minesneeded); _root[current].aibuild2("enemymine", _root["minept" + p]._x, _root["minept" + p]._y, 500, 0, 5); _root[current].build = true; } } } _root.ai.timer = 0; n = 1; while (n < turretsneeded) { if ((!_root["enemyturret" + n]) && (_root.enemymoney >= turretmoney)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { bb = Math.random(); if (bb < turret1wt) { _root[current].aibuild2("enemyturret", _root["turretpt" + n]._x, _root["turretpt" + n]._y, 1000, n, 1.5); _root[current].build = true; break; } if ((bb > turret1wt) && (bb < turret2wt)) { _root[current].aibuild2("enemymultiple", _root["turretpt" + n]._x, _root["turretpt" + n]._y, 1500, n, 1.5); _root[current].build = true; break; } if (bb > turret3wt) { _root[current].aibuild2("enemylaser", _root["turretpt" + n]._x, _root["turretpt" + n]._y, 1500, n, 1.5); _root[current].build = true; break; } } i--; } } n++; } } if (_root.ai.timer == Math.round(difficulty * 250)) { if ((_root.enemycomcentre < 1) && (_root.enemymoney >= 5000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemycomcentre", _root.comcentrept._x, _root.comcentrept._y, 5000, 0.5); _root[current].build = true; break; } i--; } } if ((_root.enemyservicedepot < 1) && (_root.enemymoney >= servicedepotmoney)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyservicedepot", _root.servpt._x, _root.servpt._y, 1500, 1); _root[current].build = true; break; } i--; } } if ((_root.enemyrefinery < 1) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyrefinery", _root.refpt._x, _root.refpt._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemywarfactory == 0) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemywarfactory", _root.warpt._x, _root.warpt._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemytechcentre < 1) && (_root.enemymoney >= techcentremoney)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemytechcentre", _root.techpt._x, _root.techpt._y, 1500, 0.7); _root[current].build = true; break; } i--; } } if (((_root.enemytechcentre1._x != undefined) && (timeelasped >= this.nuketime)) && (_root.enemyweaponsilo == 0)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyweaponsilo", _root.silopt._x, _root.silopt._y, 10000, 0.2); _root[current].build = true; timeelasped = 0; break; } i--; } } i = 0; while (i < _root.array1.length) { current = _root.array1[i]; if (_root[current].life == undefined) { _root.array1.splice(i, 1); } if (i < (_root.array1.length - peoplestay)) { _root.array2.push(current); _root.array1.splice(i, 1); if (Math.random() > 0.5) { _root[current].avoid = true; } if (Math.random() > 0.8) { _root[current].aggressive = false; } } else if (_root[current].unittype != "artillery") { this.waypoint = "waypoint" + String(Math.floor(Math.random() * 7) + 100); if (_root[this.waypoint]._x != undefined) { _root[current].aigoto(_root[this.waypoint]._x, _root[this.waypoint]._y, false); } } i++; } } if ((Math.round(_root.ai.timer / 30) * 30) == _root.ai.timer) { if (_root.enemyarray.length <= 0) { _root.gotoAndStop("victory"); } if (_root.friendlylist.length <= 0) { _root.gotoAndStop("defeat"); } n = _root.enemystructurearray.length - 1; while (n > -1) { current2 = _root.enemystructurearray[n]; i = dozers.length - 1; while (i > -1) { current = dozers[i]; if (_root[current].build || (_root[current].walking)) { } else { dx = _root[current]._x - _root[current2]._x; dy = _root[current]._y - _root[current2]._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 1500) { ant = 0; if (((_root[current2].life < _root[current2].fulllife) && (_root[current2].percent == undefined)) && (_root[current2].auto._currentframe == 1)) { if (!_root[current].hitTest(_root[current2])) { _root[current].aigoto(_root[current2]._x, _root[current2]._y, false); } _root[current2].auto.play(); h = array1.length - 1; while (h > -1) { currents = _root.array1[h]; if ((((_root[currents].natack == undefined) && (!_root[currents].walking)) && (!_root[currents].fireing)) && (ant < 5)) { ant++; _root[currents].aigoto(_root[current2]._x, _root[current2]._y, false); if (_root[current2].targetobj != undefined) { targetobj = _root[current2].targetobj; _root[currents].aiattack(targetobj); } } h--; } } } break; } i--; } n--; } } if ((Math.round(_root.ai.timer / 70) * 70) == _root.ai.timer) { if (((dozers.length < dozersneeded) && (_root.enemycomcentre1._x != undefined)) && (_root.enemymoney > 1000)) { _root.enemymoney = _root.enemymoney - 1000; _root.attachMovie("enemydozer", "enemydozer" + _root.n, _root.n); _root["enemydozer" + _root.n]._x = _root.enemycomcentre1._x; _root["enemydozer" + _root.n]._y = _root.enemycomcentre1._y; _root["enemydozer" + _root.n]._rotation = 0; _root.n++; } if ((_root.enemymoney > uppermoney) && (!build)) { build = true; rounds++; } if ((_root.enemymoney < lowermoney) && (build)) { build = false; } i = 0; while (i < _root.array2.length) { current = _root.array2[i]; if (_root[current].life == undefined) { _root.array2.splice(i, 1); } else if ((!_root[current].fireing) && (!_root[current].walking)) { lo = Math.floor(Math.random() * (_root.friendlylist.length - 1)); unit = _root.friendlylist[lo]; _root[current].aiattack(unit); } i++; } arrayone = _root.array1.toString(); if (_root.enemywarfactory1.life > 0) { if ((_root.enemyoiltrucks < oiltrucksneeded) && (_root.enemymoney >= 2000)) { _root.enemymoney = _root.enemymoney - 1500; _root.attachMovie("enemyoiltruck", "enemyoiltruck" + _root.n, _root.n); _root["enemyoiltruck" + _root.n]._x = _root.enemywarfactory1._x; _root["enemyoiltruck" + _root.n]._y = _root.enemywarfactory1._y; _root["enemyoiltruck" + _root.n]._rotation = 0; _root.n++; } if (build || ((_root.array1.length < totalpeople) && (_root.enemymoney > 0))) { a = Math.random(); if ((a > 0) && (a < lightwt)) { unittype = "enemylight"; _root.enemymoney = _root.enemymoney - 1000; } if ((a > lightwt) && (a < rocketwt)) { unittype = "enemyrocket"; _root.enemymoney = _root.enemymoney - 1500; } if ((a > rocketwt) && (a < heavywt)) { unittype = "enemyheavy"; _root.enemymoney = _root.enemymoney - 2500; } if ((a > heavywt) && (a < humveewt)) { unittype = "enemyhumvee"; _root.enemymoney = _root.enemymoney - 500; } if ((a > humveewt) && (a < 1)) { unittype = "enemyartillery"; _root.enemymoney = _root.enemymoney - 2000; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.enemywarfactory1._x; _root[unittype + _root.n]._y = _root.enemywarfactory1._y + 100; _root[unittype + _root.n]._rotation = 0; _root.array1.push(unittype + _root.n); unittype = undefined; _root.n++; if ((_root.enemylasertank1._x == undefined) && (_root.enemytechcentre1._x != undefined)) { if (Math.random() > 0.9) { _root.attachMovie("enemylasertank", "enemylasertank1", _root.n); _root.enemylasertank1._x = _root.enemywarfactory1._x; _root.enemylasertank1._y = _root.enemywarfactory1._y + 100; _root.enemylasertank1._rotation = 0; _root.enemymoney = _root.enemymoney - 7500; _root.array1.push("enemylasertank1"); } } } } } }; } onClipEvent (enterFrame) { if (_root.smartai) { aicheck(); } else { stupidai(); } }
Frame 23
for (var name in _root) { if (typeof(_root[name]) == "movieclip") { _root[name].removeMovieClip(); } } _root.tutorial._visible = false; gotoAndStop (2);
Frame 24
function loadattunits() { i = _root.attackarray.length - 1; while (i > -1) { current = _root.attackarray[i]; if (_root[current + "obj"] != undefined) { unittype = _root[current + "obj"].unittype; _root.attachMovie(unittype, current, _root.n); _root.n++; if (i < _root.liney.length) { _root[current]._x = _root.lock1._x + _root.linex[i]; _root[current]._y = _root.lock1._y + _root.liney[i]; } if (i >= _root.liney.length) { _root[current]._x = _root.lock1._x; _root[current]._y = _root.lock1._y; } _root[current].damage = _root[current + "obj"].damage; _root[current].range = _root[current + "obj"].range; _root[current].firerate = _root[current + "obj"].firerate; _root[current].speed = _root[current + "obj"].speed; _root[current].fulllife = _root[current + "obj"].fulllife; _root[current].shellspd = _root[current + "obj"].shellspd; _root[current].laser = _root[current + "obj"].laser; _root[current].gatling = _root[current + "obj"].gatling; _root[current].crush = _root[current + "obj"].crush; _root[current].missile = _root[current + "obj"].missile; _root[current].auto = _root[current + "obj"].auto; _root[current].nuke = _root[current + "obj"].nuke; _root[current].emp = _root[current + "obj"].emp; _root[current].shell2 = _root[current + "obj"].shell2; _root[current].accurate = _root[current + "obj"].accurate; _root[current].miss = _root[current + "obj"].miss; _root[current].seeker = _root[current + "obj"].seeker; _root[current].blast = _root[current + "obj"].blast; _root[current].hitonly = _root[current + "obj"].hitonly; } i--; } } function saveunits(whichmap) { trace("\n saveunits"); i = _root.friendlylist.length - 1; while (i > -1) { current = _root.friendlylist[i]; trace(current + "blackcurrane"); trace(_root[current].fulllife + current); if (_root[current].fulllife != undefined) { _root[whichmap + "array"].push(current); if ((_root[current].dummy._x == undefined) && (isNaN(_root[current].damage))) { current2 = current; current = current + whichmap; trace(current + "current"); trace(current2 + "current2"); } _root[current + "obj"] = {}; if (current.indexOf(whichmap) == -1) { _root[current + "obj"].unittype = _root[current].unittype; } if (current.indexOf(whichmap) != -1) { _root[current + "obj"].unittype = _root[current2].unittype; } _root[current + "obj"].unit = current + whichmap; if (current.indexOf(whichmap) == -1) { trace("indexofwhichmap==-1"); _root[current + "obj"].x = _root[current]._x; _root[current + "obj"].y = _root[current]._y; _root[current + "obj"].fulllife = _root[current].fulllife; } if (current.indexOf(whichmap) != -1) { trace("indexofwhichmap!=-1"); _root[current + "obj"].x = _root[current2]._x; _root[current + "obj"].y = _root[current2]._y; trace(_root[current2]._name + "name"); _root[current + "obj"].fulllife = _root[current2].fulllife; } trace(_root[current + "obj"].x + "axe"); if (_root[current].damage != undefined) { _root[current + "obj"].damage = _root[current].damage; _root[current + "obj"].range = _root[current].range; _root[current + "obj"].firerate = _root[current].firerate; _root[current + "obj"].shellspd = _root[current].shellspd; } if (current.indexOf(whichmap) == -1) { _root[current + "obj"].damage = _root[current].damage; _root[current + "obj"].range = _root[current].range; _root[current + "obj"].firerate = _root[current].firerate; _root[current + "obj"].speed = _root[current].speed; _root[current + "obj"].fulllife = _root[current].fulllife; _root[current + "obj"].shellspd = _root[current].shellspd; _root[current + "obj"].laser = _root[current].laser; _root[current + "obj"].gatling = _root[current].gatling; _root[current + "obj"].crush = _root[current].crush; _root[current + "obj"].missile = _root[current].missile; _root[current + "obj"].auto = _root[current].auto; _root[current + "obj"].nuke = _root[current].nuke; _root[current + "obj"].emp = _root[current].emp; _root[current + "obj"].shell2 = _root[current].shell2; _root[current + "obj"].accurate = _root[current].accurate; _root[current + "obj"].miss = _root[current].miss; _root[current + "obj"].seeker = _root[current].seeker; _root[current + "obj"].blast = _root[current].blast; _root[current + "obj"].hitonly = _root[current].hitonly; } } i--; } } function loadefunits(whichmap) { i = _root[whichmap + "array"].length - 1; while (i > -1) { current = _root[whichmap + "array"][i]; if (_root[current + "obj"].fulllife == undefined) { current2 = current; current = current + whichmap; } if (_root[current + "obj"] != undefined) { unittype = _root[current + "obj"].unittype; if (unittype == "turret1") { unittype = "turrets"; } if (unittype == "turret2") { unittype = "patriotmiss"; } if (unittype == "turret3") { unittype = "laserbasedefense"; } if (unittype == "war factory") { unittype = "warfactory"; } if (current.indexOf(whichmap) == -1) { _root.attachMovie(unittype, current, _root.n); } if (current.indexOf(whichmap) != -1) { _root.attachMovie(unittype, current2, _root.n); } _root.n++; if (i < _root.liney.length) { _root[current]._x = _root.lock1._x + _root.linex[i]; _root[current]._y = _root.lock1._y + _root.liney[i]; } if (i >= _root.liney.length) { _root[current]._x = _root.lock1._x; _root[current]._y = _root.lock1._y; } if (_root[current + "obj"].x != undefined) { if (current.indexOf(whichmap) == -1) { _root[current]._x = _root[current + "obj"].x; _root[current]._y = _root[current + "obj"].y; } if (current.indexOf(whichmap) != -1) { _root[current2]._x = _root[current + "obj"].x; _root[current2]._y = _root[current + "obj"].y; } } } i--; } } _global.assignvars = function () { i = _root.attackarray.length - 1; while (i > -1) { current = _root.attackarray[i]; if (_root[current + "obj"] != undefined) { _root[current].damage = _root[current + "obj"].damage; _root[current].range = _root[current + "obj"].range; _root[current].firerate = _root[current + "obj"].firerate; _root[current].speed = _root[current + "obj"].speed; _root[current].fulllife = _root[current + "obj"].fulllife; _root[current].shellspd = _root[current + "obj"].shellspd; _root[current].laser = _root[current + "obj"].laser; _root[current].gatling = _root[current + "obj"].gatling; _root[current].crush = _root[current + "obj"].crush; _root[current].missile = _root[current + "obj"].missile; _root[current].auto = _root[current + "obj"].auto; _root[current].nuke = _root[current + "obj"].nuke; _root[current].emp = _root[current + "obj"].emp; _root[current].shell2 = _root[current + "obj"].shell2; _root[current].accurate = _root[current + "obj"].accurate; _root[current].miss = _root[current + "obj"].miss; _root[current].seeker = _root[current + "obj"].seeker; _root[current].blast = _root[current + "obj"].blast; _root[current].hitonly = _root[current + "obj"].hitonly; } _root[current + "obj"] = undefined; i--; } }; _global.assigndefvar = function (whatmap) { trace("\n assign def vars"); i = _root[whatmap + "array"].length - 1; while (i > -1) { current = _root[whatmap + "array"][i]; if (_root[current + "obj"] == undefined) { current2 = current; current = current + whatmap; trace(current2 + "current2"); } if (_root[current + "obj"] != undefined) { _root[current].damage = _root[current + "obj"].damage; _root[current].range = _root[current + "obj"].range; _root[current].firerate = _root[current + "obj"].firerate; _root[current].speed = _root[current + "obj"].speed; if (current.indexOf(whatmap) != -1) { currents = current2; _root[currents].fulllife = _root[current + "obj"].fulllife; } if (current.indexOf(whatmap) == -1) { _root[current].fulllife = _root[current + "obj"].fulllife; } _root[current].shellspd = _root[current + "obj"].shellspd; _root[current].laser = _root[current + "obj"].laser; _root[current].gatling = _root[current + "obj"].gatling; _root[current].crush = _root[current + "obj"].crush; _root[current].missile = _root[current + "obj"].missile; _root[current].auto = _root[current + "obj"].auto; _root[current].nuke = _root[current + "obj"].nuke; _root[current].emp = _root[current + "obj"].emp; _root[current].shell2 = _root[current + "obj"].shell2; _root[current].accurate = _root[current + "obj"].accurate; _root[current].miss = _root[current + "obj"].miss; _root[current].seeker = _root[current + "obj"].seeker; _root[current].blast = _root[current + "obj"].blast; _root[current].hitonly = _root[current + "obj"].hitonly; _root[current + "obj"] = undefined; } i--; } var i = (_root.enemyarray.length - 1); while (i > -1) { forc = _root.enemyarray[i]; if (_root[forc].damage != undefined) { _root.ai.array1.push(forc); } i--; } }; array1 = []; enemymines = 0; _root.shroudarray = []; _root.build = 0; _root.kills = 0; _root.losses = 0; for (var name in _root) { if (typeof(_root[name]) == "movieclip") { _root[name].removeMovieClip(); } } _root.missions = 0; buildary = ["turrets", "refinery", "warfactory", "comcentre", "laser", "patriotmissile", "servicedepot", "techcentre", "weaponsilo", "mine"]; buildray = ["light", "dozer", "oiltruck", "humvee", "heavy", "rocket", "lasertank", "artillery"]; function emailHandler() { _root.attachMovie("lasertank", "elite1", 1); _root.elite1._x = _root.lock1._x; _root.elite1._y = _root.lock1._y; } function emailHandler2() { _root.elite1.life = 100000 /* 0x0186A0 */; _root.elite1.fulllife = 100000 /* 0x0186A0 */; _root.elite1.damage = 1000; _root.elite1.speed = 10; _root.elite1.firerate = 1; } var my_cm = new ContextMenu(); var menuItem_cmi = new ContextMenuItem("cheat", emailHandler); my_cm.customItems.push(menuItem_cmi); _root.menu = my_cm; var menuItem_cmi2 = new ContextMenuItem("cheat2", emailHandler2); my_cm.customItems.push(menuItem_cmi2); _root.menu = my_cm;
Frame 25
_root.soundon = _root.setsoundon; _root.attachMovie("sidebar", "sidebar", 1000000); _root.attachMovie("mo", "mouse", 1000001); _root.sidebar._x = 132.6; _root.sidebar._y = 615; _root.sidebar._xscale = -58.5; _root.sidebar._yscale = 49.14; _root.sidebar._rotation = 90; _global.orix = _root.back._x; _global.oriy = _root.back._y; _root.attachMovie("box5", "box6", 10000004); _root.box6._x = x1; _root.box6._y = y1; _root.box6._height = (_root.box5._height / _root.back._height) * (y4 - y1); _root.box6._width = (_root.box5._width / _root.back._width) * (x4 - x1); _global.constanty = (y4 - y1) / _root.back._height; _global.constantx = (x4 - x1) / _root.back._width; _global.constantsy = (y4 - y1) / _root.back._height; _global.constantsx = (x4 - x1) / _root.back._width; _root.array1 = []; _root.rallylist = []; _root.enemyrallylist = []; MovieClip.prototype.aiattack = function (what) { current2 = what; if (_root[current2]._x != undefined) { current = this._name; _root[current].targetobj = current2; _root[current].attack = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root["flag" + current]._visible = false; _root["flag" + current]._x = _root[current2]._x; _root["flag" + current]._y = _root[current2]._y; _root.objarray.push("flag" + current); _root[current].walking = true; _root.n++; hit = true; } }; MovieClip.prototype.aigoto = function (x1, y1, lock) { current = this._name; _root[current].attack = false; _root[current].walking = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag", "flag" + current, _root.n); if ((!lock) || (lock == undefined)) { _root["flag" + current]._x = x1; _root["flag" + current]._y = y1; } if (lock) { _root["flag" + current]._x = x1 + _root.back._x; _root["flag" + current]._y = y1 + _root.back._y; } _root["flag" + current].vsisible = false; _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; }; Array.prototype.arrayfind = function (element) { var _local4 = false; var _local3 = this.length - 1; while (_local3 > -1) { elementsearched = this[_local3]; if (_root[elementsearched].unittype == element) { _local4 = true; break; } _local3--; } return(_local4); }; Array.prototype.arrayfindfirst = function (element) { var _local3 = false; var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { _local3 = _local2; break; } _local2--; } return(_local3); }; Array.prototype.findsfirst = function (element) { var _local4 = false; var _local3 = this.length - 1; while (_local3 > -1) { elementsearched2 = this[_local3]; if (_root[elementsearched2].unittype == element) { _local4 = elementsearched2; break; } _local3--; } return(_local4); }; MovieClip.prototype.movesym = function () { _root[this._name + "symbols"]._x = (x1 + ((this._x - _root.back._x) * constantx)) - 10; _root[this._name + "symbols"]._y = (y1 + ((this._y - _root.back._y) * constanty)) - 10; }; _root.timer = 6999; _root.limit = 1200; Array.prototype.countduplicate = function (element) { var _local3 = 0; var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { _local3++; } _local2--; } return(_local3); }; _global.movetozero = function () { var _local4 = _root.back._x; var _local5 = _root.back._y; i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; var _local3 = _root[current]._x; var _local2 = _root[current]._y; _root[current]._x = _local3 - _local4; _root[current]._y = _local2 - _local5; i--; } _root.back._x = 0; _root.back._y = 0; }; _global.movetoloc = function (x, y) { xb = _root.back._x; yb = _root.back._y; _root.box6._x = x1 + (constantx * (x - xb)); _root.box6._y = y1 + (constanty * (y - yb)); _root.back._x = _root.back._x - (x - xb); _root.back._y = _root.back._y - (y - yb); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - (x - xb); _root[current]._y = _root[current]._y - (y - yb); i--; } }; Array.prototype.arrayfind = function (element) { var _local3 = false; var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { _local3 = true; break; } _local2--; } return(_local3); }; Array.prototype.finds = function (element) { var _local3 = -1; var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { _local3 = _local2; break; } _local2--; } return(_local3); }; Array.prototype.findandsplice = function (element) { var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { this.splice(_local2, 1); break; } _local2--; } }; _root.objarray = []; _root.num = 0; _root.sparsex = [0, -50, 150, 100, -100, 150, 250, 200, -250, 300, 300, 350, -350, 400, -410, 500, -550]; _root.sparsey = [0, -50, 80, -180, 250, -50, 140, -150, 60, 150, -70, -220, -350, 350, -350, 375, -375]; _root.linex = [0, 0, 50, 50, 100, 100, 150, 150, 200, 200, 350, 350, 400, 400, 450, 450, 500, 500, 550, 550]; _root.liney = [0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50]; _root.unitsarray = []; _root.flagsarray = []; _root.selectedarray = []; _root.enemyarray = []; _root.friendlylist = []; _root.shellarray = []; _root.enemyminearray = []; _root.minearray = []; _root.enemyminearray = []; _root.money = 0; _root.enemypower = 0; _root.enemymoney = 30000; _root.warfactory = 0; _root.enemywarfactory = 0; _root.attackarray = []; _global.dozers = []; _root.dozerarray = []; _root.enemydozerarray = []; _root.structurearray = []; _root.enemyservicedepot = 0; _root.enemystructurearray = []; _root.comcentre = 0; _root.enemycomcentre = 0; _root.oilarray = []; _root.enemyoiltruckarray = []; _root.oiltruckarray = []; _root.refinery = 0; _root.enemyrefinery = 0; _root.techcentre = 0; _root.enemytechcentre = 0; _root.enemyweaponsilo = 0; _root.turretarray = []; _root.enemyturretarray = []; _root.enemyturret1 = false; _root.enemyturret2 = false; _root.enemyturret3 = false; _root.enemyturret4 = false; _root.enemyturret5 = false; _root.n = 1000; _root.ownmap4 = false;
Instance of Symbol 804 MovieClip "back" in Frame 25
onClipEvent (load) { this._x = 0; this._y = 0; }
Instance of Symbol 1014 MovieClip in Frame 25
onClipEvent (load) { _root.music.start(); }
Frame 26
_root.attachMovie("mission", "tutoriall", 1000900); _root.tutoriall._x = 46.8; _root.tutoriall._y = 10.9; Mouse.hide(); stop(); stop();
Instance of Symbol 1022 MovieClip in Frame 26
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(38))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y + 30; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y + 30; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 26
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(37))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x + 30; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x + 30; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 26
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(39))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x - 30; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - 30; i--; } } } }
Instance of Symbol 1022 MovieClip in Frame 26
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(40))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y - 30; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y - 30; i--; } } } }
Instance of Symbol 804 MovieClip "back" in Frame 26
onClipEvent (load) { this._x = 0; this._y = 0; }
Instance of Symbol 1095 MovieClip "wall1" in Frame 26
onClipEvent (load) { _root.objarray.push(this._name); _root.unitsarray.push(this._name); this.life = 500; this.fulllife = 500; this.unittype = "wall"; }
Instance of Symbol 1095 MovieClip "wall2" in Frame 26
onClipEvent (load) { _root.objarray.push(this._name); _root.unitsarray.push(this._name); this.life = 500; this.fulllife = 500; this.unittype = "wall"; }
Instance of Symbol 1036 MovieClip "rig10" in Frame 26
onClipEvent (load) { oilfield = "oil3"; _root.objarray.push(this._name); }
Instance of Symbol 1038 MovieClip "burton" in Frame 26
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1009 MovieClip in Frame 26
onClipEvent (load) { ranges = 1; }
Instance of Symbol 1009 MovieClip in Frame 26
onClipEvent (enterFrame) { po++; if (po == _root.shroudarray.length) { po = 0; } current = _root.shroudarray[po]; var revealed = false; i = _root.friendlylist.length - 1; while (i > -1) { current2 = _root.friendlylist[i]; if (_root[current2].unittype != "construction") { if (_root[current].hitTest(_root[current2])) { revealed = true; break; } } i--; } if (revealed) { _root[current]._visible = false; } if ((!revealed) && (_root.fog)) { _root[current]._visible = true; } } onClipEvent (load) { po = 0; } onClipEvent (load) { po = 0; }
Instance of Symbol 1042 MovieClip "box" in Frame 26
onClipEvent (mouseDown) { x = _root.mouse._x - 30; y = _root.mouse._y - 30; if ((((_root.sidebar.mapp.hitTest(x, y, true) && (_root.comcentre1.life > 0)) && (_root.comcentre1.life != undefined)) && (_root.sidebar._visible)) && (_root.scrolla)) { x1s = x - x1; y1s = y - y1; x2s = _root.box6._x - x1; y2s = _root.box6._y - y1; _root.box6._x = x; _root.box6._y = y; x1s = x1s / constantx; y1s = y1s / constanty; x2s = x2s / constantx; y2s = y2s / constanty; _root.back._x = _root.back._x - (x1s - x2s); _root.back._y = _root.back._y - (y1s - y2s); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - (x1s - x2s); _root[current]._y = _root[current]._y - (y1s - y2s); i--; } } if ((!_root.sidebar.hitTest(x, y, false)) || (!_root.sidebar._visible)) { if (_root.selectedarray.arrayfind("warfactory1")) { _root.rallypoint._x = _root.mouse._x; _root.rallypoint._y = _root.mouse._y; } hits = false; this._x = _root._xmouse; this._y = _root._ymouse; i = _root.friendlylist.length - 1; while (i > -1) { current = _root.friendlylist[i]; if (_root[current].hitTest(this) && (current != "servicedepot1")) { hits = true; break; } i--; } origx = _root.mouse._x; origy = _root.mouse._y; this._visible = true; array = _root.formation; _root.formation = undefined; if (!hits) { i = _root.selectedarray.length - 1; while (i > -1) { current = _root.selectedarray[i]; if ((!_root[current].enemy) && (_root[current].speed != undefined)) { _root[current].turret._rotation = _root[current].dummy._rotation; c = _root.enemyarray.length - 1; while (c > -1) { current2 = _root.enemyarray[c]; if (_root.mouse.hitTest(_root[current2])) { _root[current].targetobj = current2; _root[current].attack = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root["flag" + current]._x = _root.boxns._x; _root["flag" + current]._y = _root.boxns._y; _root[current].locx = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root[current].locy = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root.objarray.push("flag" + current); _root[current].walking = true; _root.n++; hit = true; break; } c--; } if (!hit) { origx = _root.mouse._x + _root[array + "x"][i]; origy = _root.mouse._y + _root[array + "y"][i]; if (isNaN(origx)) { origx = _root.mouse._x; } if (isNaN(origy)) { origy = _root.mouse._y; } current = _root.selectedarray[i]; _root[current].destx = origx; _root[current].desty = origy; _root[current].attack = false; _root[current].locx = undefined; _root[current].locy = undefined; _root[current].walking = true; _root["flag" + current].removeMovieClip(); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag", "flag" + current, _root.n); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } } if (Key.isDown(17)) { _root[current].targetobj = "flag" + current; _root[current].attack = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } hit = false; i--; } } } } onClipEvent (mouseUp) { x = _root.mouse._x; y = _root.mouse._y; _root.mouse.gotoAndStop(2); if ((!_root.sidebar.hitTest(x, y, true)) || (!_root.sidebar._visible)) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (_root[current].hitTest(this) && (!_root.selectedarray.arrayfind(current))) { _root[current].selector._visible = true; _root[current].selected1 = true; _root.selectedarray.push(current); } i--; } } origx = undefined; origy = undefined; this._visible = false; _root.sidebar.calccost(); } onClipEvent (enterFrame) { if (_root.mouse.hitTest(_root.sidebar)) { _root.sidebar._alpha = 100; } else { _root.sidebar._alpha = 30; } _root.timer++; if (_root.timer == 7000) { for (var name in _root) { if (typeof(_root[name]) == "movieclip") { if ((_root[name].fulllife != undefined) && ((_root[name].life == undefined) || (_root[name].life <= 0))) { _root[name].removeMovieClip(); } } } i = _root.friendlylist.length - 1; while (i > -1) { currents = _root.friendlylist[i]; if ((_root.friendlylist.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.friendlylist.splice(i, 1); } i--; } i = _root.enemyarray.length - 1; while (i > -1) { currents = _root.enemyarray[i]; if ((_root.enemyarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.enemyarray.splice(i, 1); } i--; } i = _root.objarray.length - 1; while (i > -1) { currents = _root.objarray[i]; if ((_root.objarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.objarray.splice(i, 1); } i--; } i = _root.unitsarray.length - 1; while (i > -1) { currents = _root.unitsarray[i]; if (((_root.unitsarray.countduplicate(currents) > 1) || (_root[currents].life == undefined)) || (_root[currents + "symbols"]._x == undefined)) { _root.unitsarray.splice(i, 1); } i--; } i = _root.shellarray.length - 1; while (i > -1) { currents = _root.shellarray[i]; if (_root.shellarray.countduplicate(currents) > 1) { _root.shellarray.splice(i, 1); } i--; } _root.timer = 0; } if (Key.isDown(32)) { _root.mouse.gotoAndStop(1); _root.selectedarray = []; i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; _root[current].selector._visible = false; _root[current].selected1 = false; _root.sidebar.calccost(); i--; } } if (this._visible) { a = _root._xmouse - origx; b = _root._ymouse - origy; this._width = Math.abs(a); this._height = Math.abs(b); if (a < 0) { this._xscale = this._xscale * -1; } if (b < 0) { this._yscale = this._yscale * -1; } } }
Instance of Symbol 1099 MovieClip "ai" in Frame 26
onClipEvent (load) { timer = 0; _root.refinery1e = 1; _root.comcentre1e = 1; _root.warfactory1e = 1; _root.pat1e = 1; _root.pat2e = 1; _root.array2 = []; build = true; rounds = 0; _root.enemyoiltrucks = 0; timer5 = 0; } onClipEvent (enterFrame) { _root.sidebar.build.light.gotoAndStop(1); _root.sidebar.build.oiltruck.gotoAndStop(1); _root.sidebar.build.heavy.gotoAndStop(1); _root.sidebar.build.dozer.gotoAndStop(1); _root.sidebar.build.humvee.gotoAndStop(1); _root.sidebar.build.artillery.gotoAndStop(1); _root.sidebar.build.weaponsilo.gotoAndStop(1); _root.sidebar.build.lasertank.gotoAndStop(1); _root.sidebar.build.rocket.gotoAndStop(1); timer++; if (timer == 100) { _root.enemypower = _root.enemypower + _root.difficulty; timer5++; if (_root.refinery1.life <= 0) { _root.refinery1e = 0; } if (_root.comcentre1.life <= 0) { _root.comcentre1e = 0; } if (_root.warfactorey1._currentframe > 2) { _root.warfactory1e = 0; } if (_root.pat1.life <= 0) { _root.pat1e = 0; } if (_root.pat2.life <= 0) { _root.pat2e = 0; } if ((_root.enemyarray.length <= 0) || (Key.isDown(16))) { var i = 10; while (i > 0) { _root["elite" + i]._visible = false; i--; } _root.gotoAndStop("victory1"); } if (_root.structurearray.length <= 0) { _root.gotoAndStop("defeat1"); } i = _root.enemyarray.length - 1; while (i > -1) { current = _root.enemyarray[i]; if ((_root[current].unittype == "artillery") && (_root[current].turret._currentframe == 1)) { _root[current].deploy(); } if ((((_root[current].speed != undefined) && (!_root[current].fireing)) && ((_root[current]._y < _root.wall1._y) || (timer5 > 50))) && (_root[current].dummy._currentframe == 1)) { pat = _root.structurearray[Math.floor(Math.random() * _root.structurearray.length)]; _root[current].aiattack(pat); pat2 = _root.structurearray[0]; if ((_root[pat2].life <= 0) || (_root[pat2]._x == undefined)) { _root.gotoAndStop("defeat"); break; } } i--; } timer = 0; } }
Frame 27
for (var name in _root) { if (typeof(_root[name]) == "movieclip") { if (_root[name]._visible) { _root[name].removeMovieClip(); } } } _root.missions++; _root.tutoriall.removeMovieClip(); _root.box6.removeMovieClip(); stop();
Instance of Symbol 1099 MovieClip "ai" in Frame 27
onClipEvent (mouseUp) { _root.gotoAndPlay("map2"); }
Frame 28
for (var name in _root) { if (typeof(_root[name]) == "movieclip") { _root[name].removeMovieClip(); } } stop();
Instance of Symbol 1099 MovieClip "ai" in Frame 28
onClipEvent (mouseUp) { _root.gotoAndPlay("end6"); }
Frame 29
_root.attachMovie("sidebar", "sidebar", 1000000); _root.attachMovie("mo", "mouse", 1000001); _root.sidebar._x = 132.6; _root.sidebar._y = 615; _root.sidebar._xscale = -58.5; _root.sidebar._yscale = 49.14; _root.sidebar._rotation = 90; _global.orix = _root.back._x; _global.oriy = _root.back._y; _root.attachMovie("box5", "box6", 10000004); _root.box6._x = x1; _root.box6._y = y1; _root.box6._height = (_root.box5._height / _root.back._height) * (y4 - y1); _root.box6._width = (_root.box5._width / _root.back._width) * (x4 - x1); _global.constanty = (y4 - y1) / _root.back._height; _global.constantx = (x4 - x1) / _root.back._width; _global.constantsy = (y4 - y1) / _root.back._height; _global.constantsx = (x4 - x1) / _root.back._width; _root.objarray = []; _root.num = 0; _root.sparsex = [0, -50, 150, 100, -100, 150, 250, 200, -250, 300, 300, 350, -350, 400, -410, 500, -550]; _root.sparsey = [0, -50, 80, -180, 250, -50, 140, -150, 60, 150, -70, -220, -350, 350, -350, 375, -375]; _root.linex = [0, 0, 50, 50, 100, 100, 150, 150, 200, 200, 350, 350, 400, 400, 450, 450, 500, 500, 550, 550]; _root.liney = [0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50]; _root.unitsarray = []; _root.flagsarray = []; _root.selectedarray = []; _root.enemyarray = []; _root.shroudarray = []; _root.friendlylist = []; _root.shellarray = []; _root.enemyminearray = []; _root.minearray = []; _root.enemyminearray = []; _root.money = _root.money + (50000 * (10 / _root.difficulty)); _root.enemymoney = 0; _root.warfactory = 0; _root.enemywarfactory = 0; _global.dozers = []; _root.dozerarray = []; _root.enemydozerarray = []; _root.structurearray = []; _root.enemyservicedepot = 0; _root.enemystructurearray = []; _root.comcentre = 0; _root.enemycomcentre = 0; _root.oilarray = []; _root.enemyoiltruckarray = []; _root.oiltruckarray = []; _root.refinery = 0; _root.enemyrefinery = 0; _root.techcentre = 0; _root.enemytechcentre = 0; _root.enemyweaponsilo = 0; _root.turretarray = []; _root.enemyturretarray = [];
Instance of Symbol 1088 MovieClip "back" in Frame 29
onClipEvent (load) { this._x = 0; this._y = 0; }
Frame 30
_root.waves = 0; _root.timert = 0; _root.attachMovie("mission2", "tutorial", 1000900); _root.tutorial._x = 46.8; _root.tutorial._y = 10.9; var i = (buildary.length - 1); while (i > -1) { _root.sidebar.build[buildary[i]].buildrate = _root.sidebar.build[buildary[i]].buildrate * 0.5; i--; } var i = (buildray.length - 1); while (i > -1) { _root.sidebar.build[buildray[i]].rates = _root.sidebar.build[buildray[i]].rates * 1.5; i--; } Mouse.hide(); stop(); stop();
Instance of Symbol 1022 MovieClip in Frame 30
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(38))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y + 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 30
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(37))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x + 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 30
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(39))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x - 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - 20; i--; } } } }
Instance of Symbol 1022 MovieClip in Frame 30
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(40))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y - 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y - 20; i--; } } } }
Instance of Symbol 1088 MovieClip "back" in Frame 30
onClipEvent (load) { this._x = 0; this._y = 0; }
Instance of Symbol 621 MovieClip [warfactory] "warfactory1" in Frame 30
onClipEvent (load) { if (_root.warfactoryle == 0) { gotoAndStop (34); } }
Instance of Symbol 625 MovieClip [comcentre] "comcentre1" in Frame 30
onClipEvent (load) { if (_root.comcentre1e == 0) { gotoAndStop (34); } }
Instance of Symbol 619 MovieClip [patriotmiss] in Frame 30
onClipEvent (load) { if (_root.pat1e == 0) { gotoAndStop (34); } }
Instance of Symbol 619 MovieClip [patriotmiss] in Frame 30
onClipEvent (load) { if (_root.pat2e == 0) { gotoAndStop (34); } }
Instance of Symbol 1095 MovieClip "wall1" in Frame 30
onClipEvent (load) { _root.objarray.push(this._name); _root.unitsarray.push(this._name); this.life = 500; this.fulllife = 500; this.unittype = "wall"; }
Instance of Symbol 1095 MovieClip "wall2" in Frame 30
onClipEvent (load) { _root.objarray.push(this._name); _root.unitsarray.push(this._name); this.life = 500; this.fulllife = 500; this.unittype = "wall"; }
Instance of Symbol 1036 MovieClip "rig11" in Frame 30
onClipEvent (load) { oilfield = "oil6"; _root.objarray.push(this._name); }
Instance of Symbol 1036 MovieClip "rig5" in Frame 30
onClipEvent (load) { oilfield = "oil4"; _root.objarray.push(this._name); }
Instance of Symbol 1038 MovieClip "burton" in Frame 30
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1009 MovieClip in Frame 30
onClipEvent (load) { ranges = 1; }
Instance of Symbol 1009 MovieClip in Frame 30
onClipEvent (enterFrame) { po++; if (po == _root.shroudarray.length) { po = 0; } current = _root.shroudarray[po]; var revealed = false; i = _root.friendlylist.length - 1; while (i > -1) { current2 = _root.friendlylist[i]; if (_root[current2].unittype != "construction") { if (_root[current].hitTest(_root[current2])) { revealed = true; break; } } i--; } if (revealed) { _root[current]._visible = false; } if ((!revealed) && (_root.fog)) { _root[current]._visible = true; } } onClipEvent (load) { po = 0; } onClipEvent (load) { po = 0; }
Instance of Symbol 1042 MovieClip "box" in Frame 30
onClipEvent (mouseDown) { x = _root.mouse._x - 30; y = _root.mouse._y - 30; if ((((_root.sidebar.mapp.hitTest(x, y, true) && (_root.comcentre1.life > 0)) && (_root.comcentre1.life != undefined)) && (_root.sidebar._visible)) && (_root.scrolla)) { x1s = x - x1; y1s = y - y1; x2s = _root.box6._x - x1; y2s = _root.box6._y - y1; _root.box6._x = x; _root.box6._y = y; x1s = x1s / constantx; y1s = y1s / constanty; x2s = x2s / constantx; y2s = y2s / constanty; _root.back._x = _root.back._x - (x1s - x2s); _root.back._y = _root.back._y - (y1s - y2s); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - (x1s - x2s); _root[current]._y = _root[current]._y - (y1s - y2s); i--; } } if ((!_root.sidebar.hitTest(x, y, false)) || (!_root.sidebar._visible)) { if (_root.selectedarray.arrayfind("warfactory1")) { _root.rallypoint._x = _root.mouse._x; _root.rallypoint._y = _root.mouse._y; } hits = false; this._x = _root._xmouse; this._y = _root._ymouse; i = _root.friendlylist.length - 1; while (i > -1) { current = _root.friendlylist[i]; if (_root[current].hitTest(this) && (current != "servicedepot1")) { hits = true; break; } i--; } origx = _root.mouse._x; origy = _root.mouse._y; this._visible = true; array = _root.formation; _root.formation = undefined; if (!hits) { i = _root.selectedarray.length - 1; while (i > -1) { current = _root.selectedarray[i]; if ((!_root[current].enemy) && (_root[current].speed != undefined)) { _root[current].turret._rotation = _root[current].dummy._rotation; c = _root.enemyarray.length - 1; while (c > -1) { current2 = _root.enemyarray[c]; if (_root.mouse.hitTest(_root[current2])) { _root[current].targetobj = current2; _root[current].attack = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root["flag" + current]._x = _root.boxns._x; _root["flag" + current]._y = _root.boxns._y; _root[current].locx = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root[current].locy = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root.objarray.push("flag" + current); _root[current].walking = true; _root.n++; hit = true; break; } c--; } if (!hit) { origx = _root.mouse._x + _root[array + "x"][i]; origy = _root.mouse._y + _root[array + "y"][i]; if (isNaN(origx)) { origx = _root.mouse._x; } if (isNaN(origy)) { origy = _root.mouse._y; } current = _root.selectedarray[i]; _root[current].destx = origx; _root[current].desty = origy; _root[current].attack = false; _root[current].locx = undefined; _root[current].locy = undefined; _root[current].walking = true; _root["flag" + current].removeMovieClip(); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag", "flag" + current, _root.n); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } } if (Key.isDown(17)) { _root[current].targetobj = "flag" + current; _root[current].attack = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } hit = false; i--; } } } } onClipEvent (mouseUp) { x = _root.mouse._x; y = _root.mouse._y; _root.mouse.gotoAndStop(2); if ((!_root.sidebar.hitTest(x, y, true)) || (!_root.sidebar._visible)) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (_root[current].hitTest(this) && (!_root.selectedarray.arrayfind(current))) { _root[current].selector._visible = true; _root[current].selected1 = true; _root.selectedarray.push(current); } i--; } } origx = undefined; origy = undefined; this._visible = false; _root.sidebar.calccost(); } onClipEvent (enterFrame) { if (_root.mouse.hitTest(_root.sidebar)) { _root.sidebar._alpha = 100; } else { _root.sidebar._alpha = 30; } _root.timer++; if (_root.timer == 7000) { for (var name in _root) { if (typeof(_root[name]) == "movieclip") { if ((_root[name].fulllife != undefined) && ((_root[name].life == undefined) || (_root[name].life <= 0))) { _root[name].removeMovieClip(); } } } i = _root.friendlylist.length - 1; while (i > -1) { currents = _root.friendlylist[i]; if ((_root.friendlylist.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.friendlylist.splice(i, 1); } i--; } i = _root.enemyarray.length - 1; while (i > -1) { currents = _root.enemyarray[i]; if ((_root.enemyarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.enemyarray.splice(i, 1); } i--; } i = _root.objarray.length - 1; while (i > -1) { currents = _root.objarray[i]; if ((_root.objarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.objarray.splice(i, 1); } i--; } i = _root.unitsarray.length - 1; while (i > -1) { currents = _root.unitsarray[i]; if (((_root.unitsarray.countduplicate(currents) > 1) || (_root[currents].life == undefined)) || (_root[currents + "symbols"]._x == undefined)) { _root.unitsarray.splice(i, 1); } i--; } i = _root.shellarray.length - 1; while (i > -1) { currents = _root.shellarray[i]; if (_root.shellarray.countduplicate(currents) > 1) { _root.shellarray.splice(i, 1); } i--; } _root.timer = 0; } if (Key.isDown(32)) { _root.mouse.gotoAndStop(1); _root.selectedarray = []; i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; _root[current].selector._visible = false; _root[current].selected1 = false; _root.sidebar.calccost(); i--; } } if (this._visible) { a = _root._xmouse - origx; b = _root._ymouse - origy; this._width = Math.abs(a); this._height = Math.abs(b); if (a < 0) { this._xscale = this._xscale * -1; } if (b < 0) { this._yscale = this._yscale * -1; } } }
Instance of Symbol 1099 MovieClip "ai" in Frame 30
onClipEvent (load) { _root.enemypower = _root.enemypower + _root.difficulty; timer = 0; gather = []; _root.waves = 7; attack = []; refinery = false; warfactory = false; comcentrequeue = 0; warfactoryqueue = 0; currentrepairunit = undefined; dozers = ["enemydozer1"]; oiltrucks = []; attacktimer = 0; _root.timert = 20 * (400 / _root.enemypower); warfactorybuildteam4 = ["enemyrocket", "enemyrocket", "enemyrocket", "enemyrocket", "enemylight"]; warfactorybuildteam3 = ["enemyartillery", "enemyartillery", "enemyartillery", "enemyartillery", "enemylight"]; warfactorybuildteam2 = ["enemyhumvee", "enemyhumvee", "enemyhumvee", "enemyhumvee", "enemylight"]; warfactorybuildteam = ["enemylight", "enemylight", "enemylight", "enemylight", "enemyrocket"]; } onClipEvent (enterFrame) { if (!(_root.ownmap6 === true)) { _root.sidebar.build.lasertank.gotoAndStop(1); } _root.timert = _root.timert - 0.05; timer++; warfactoryqueue++; attacktimer++; if ((_root.timert < 0) && (_root.waves > 0)) { _root.timert = 90; i = 5; while (i > 0) { current = warfactorybuildteam2[0]; _root.attachMovie(current, current + _root.n, _root.n); _root[current + _root.n]._x = _root.enemywarfactory1._x + _root.linex[i]; _root[current + _root.n]._y = _root.enemywarfactory1._y + _root.liney[i]; _root[current + _root.n]._rotation = 0; _root[current + _root.n].attacks = true; this.attack.push(current + _root.n); _root.n++; warfactorybuildteam2.splice(0, 1); if (warfactorybuildteam2.length <= 0) { warfactorybuildteam2 = ["enemyhumvee", "enemyhumvee", "enemyrocket", "enemylight", "enemyartillery"]; } i--; } i = 5; while (i > 0) { current = warfactorybuildteam[0]; _root.attachMovie(current, current + _root.n, _root.n); _root[current + _root.n]._x = _root.enemywarfactory2._x + _root.linex[i]; _root[current + _root.n]._y = _root.enemywarfactory2._y + _root.liney[i]; _root[current + _root.n]._rotation = 0; _root[current + _root.n].attacks = true; this.attack.push(current + _root.n); _root.n++; warfactorybuildteam.splice(0, 1); if (warfactorybuildteam.length <= 0) { warfactorybuildteam = ["enemylight", "enemyrocket", "enemyartillery", "enemyheavy", "enemyheavy"]; } i--; } i = 5; while (i > 0) { current = warfactorybuildteam3[0]; _root.attachMovie(current, current + _root.n, _root.n); _root[current + _root.n]._x = _root.enemywarfactory3._x + _root.linex[i]; _root[current + _root.n]._y = _root.enemywarfactory3._y + _root.liney[i]; _root[current + _root.n]._rotation = 0; _root[current + _root.n].attacks = true; this.attack.push(current + _root.n); _root.n++; warfactorybuildteam3.splice(0, 1); if (warfactorybuildteam3.length <= 0) { warfactorybuildteam3 = ["enemyrocket", "enemyrocket", "enemyhumvee", "enemylight", "enemyheavy"]; } i--; } i = 5; while (i > 0) { current = warfactorybuildteam4[0]; _root.attachMovie(current, current + _root.n, _root.n); _root[current + _root.n]._x = _root.enemywarfactory4._x + _root.linex[i]; _root[current + _root.n]._y = _root.enemywarfactory4._y + _root.liney[i]; _root[current + _root.n]._rotation = 0; _root[current + _root.n].attacks = true; this.attack.push(current + _root.n); _root.n++; warfactorybuildteam4.splice(0, 1); if (warfactorybuildteam4.length <= 0) { warfactorybuildteam4 = ["enemyrocket", "enemyrocket", "enemylight", "enemyheavy", "enemyheavy"]; } i--; } warfactoryqueue = 0; _root.waves--; } if (warfactoryqueue == 50) { _root.enemypower = _root.enemypower + 10; timer = 0; i = _root.enemyarray.length - 1; while (i > -1) { current = _root.enemyarray[i]; if ((_root[current].life <= 0) || (_root[current].life == undefined)) { _root.enemyarray.splice(i, 1); } else { attackunit = "friendlylist"; units = _root[attackunit][Math.floor(Math.random() * _root.friendlylist.length)]; _root[current].aiattack(units); } i--; } } if (_root.friendlylist.length <= 4) { _root.gotoAndStop("defeat2"); } if ((_root.waves == 0) && (_root.enemyarray.length <= 0)) { _root.gotoAndStop("victory2"); } }
Frame 31
_root.map2array = []; movetozero(); saveunits("map2"); for (var name in _root) { if (typeof(_root[name]) == "movieclip") { _root[name].removeMovieClip(); } } _root.warfactory1e = 0; _root.refinery1e = 0; _root.pat1e = 0; _root.pat2e = 0; _root.comcentre1e = 0; _root.enemypower = _root.enemypower - 70; _root.enemyattack = 0; _root.box6.removeMovieClip(); _root.ownmap2 = true; _root.ownmap3 = false; _root.missions++; stop();
Instance of Symbol 1099 MovieClip "ai" in Frame 31
onClipEvent (mouseUp) { _root.gotoAndStop("mapbar"); }
Frame 32
for (var name in _root) { if (typeof(_root[name]) == "movieclip") { _root[name].removeMovieClip(); } } stop();
Instance of Symbol 1099 MovieClip "ai" in Frame 32
onClipEvent (mouseUp) { _root.gotoAndPlay("end6"); }
Frame 33
_root.attachMovie("mapbar", "mapbar", 1000000); _root.attachMovie("mo", "mouse", 1000001); _root.mapbar._x = 132.6; _root.mapbar._y = 615; _root.mapbar._xscale = -58.5; _root.mapbar._yscale = 49.14; _root.mapbar._rotation = 90; _root.enemyattack = 0; _root.nooiltruck = undefined; win = true; n = 9; while (n > 2) { if (!(_root["ownmap" + n] === true)) { win = false; } n--; } _root.alarm._x = 46.8; _root.alarm._y = 10.9; if (win) { _root.gotoAndStop("victree"); } stop();
Instance of Symbol 1117 MovieClip "map2" in Frame 33
onClipEvent (load) { if (!_root.ownmap2) { gotoAndStop (25); } if (this._currentframe == 1) { this.words = "Our main base location since the first msssion."; } if (this._currentframe == 2) { this.words = "This territory has been conquered by the enemy. Click on it to invade."; } } onClipEvent (enterFrame) { nn = _root.map2array.toString(); }
Instance of Symbol 1117 MovieClip "map6" in Frame 33
onClipEvent (load) { if (!_root.ownmap6) { gotoAndStop (25); } if (_root.missions < 3) { this._visible = false; } if (this._currentframe == 1) { this.words = "Our laser tank prototype production facility . Provides us the ability to build our laser tank prototype."; } if (this._currentframe == 2) { this.words = "The enemy's laser tank prototype facility. The enemy uses it to construct laser tanks for use in battle.\n This territory has been conquered by the enemy. Click on it to invade."; } }
Instance of Symbol 1120 MovieClip "map3" in Frame 33
onClipEvent (load) { if (!_root.ownmap3) { gotoAndStop (25); } if (_root.missions < 2) { this._visible = false; } if (this._currentframe == 1) { this.words = "The location of an allied general's base.He will send his troops to aid us during battle.(You cannot place your own troops in this territory.)"; } if (this._currentframe == 2) { this.words = "An allied general's base.This territory has been conquered by the enemy. Click on it to invade.(You cannot occupy this territory with your own troops, if invasion is sucessful, troops will go towards your ally)"; } }
Instance of Symbol 1117 MovieClip "map5" in Frame 33
onClipEvent (load) { if (!_root.ownmap5) { gotoAndStop (25); } if (_root.missions < 3) { this._visible = false; } if (this._currentframe == 1) { this.words = "The location of our sensorNewtork facility.Allows us to revealed all the shrouds at the start of battle. "; } if (this._currentframe == 2) { this.words = "The enemy's Sensor Network.Allows the enemy quickly detect our presnece in battle and produce units to counterattack.\n This territory has been conquered by the enemy. Click on it to invade."; } }
Instance of Symbol 1117 MovieClip "map9" in Frame 33
onClipEvent (load) { if (!_root.ownmap9) { gotoAndStop (25); } if (_root.missions < 4) { this._visible = false; } if (this._currentframe == 1) { this.words = "Our superweapon facility. Allows us to use the nuclear missile superweapon during battle without a weapons silo"; } if (this._currentframe == 2) { this.words = "The enemy's superweapons facility.Allows the enemy to launch nuclear missiles at us.\n This territory has been conquered by the enemy. Click on it to invade."; } }
Instance of Symbol 1117 MovieClip "map8" in Frame 33
onClipEvent (load) { if (!_root.ownmap8) { gotoAndStop (25); } if (_root.missions < 4) { this._visible = false; } if (this._currentframe == 1) { this.words = "Our airport. Allows us to send reinforcements quickly during battle"; } if (this._currentframe == 2) { this.words = "The enemy's airport.Allows the enemy to send reinforcements to the battlefield.\n This territory has been conquered by the enemy. Click on it to invade."; } }
Instance of Symbol 1117 MovieClip "map4" in Frame 33
onClipEvent (load) { if (!_root.ownmap4) { gotoAndStop (25); } if (_root.missions < 3) { this._visible = false; } if (this._currentframe == 1) { this.words = "Our primary production base. Provides us with faster production rates."; } if (this._currentframe == 2) { this.words = "The enemy's primary production base.Allows the enemy a faster production rate during battle.\n This territory has been conquered by the enemy. Click on it to invade."; } }
Instance of Symbol 1117 MovieClip "map7" in Frame 33
onClipEvent (load) { if (!_root.ownmap7) { gotoAndStop (25); } if (_root.missions < 4) { this._visible = false; } if (this._currentframe == 1) { this.words = "Our oil refinery platform. Provides us with a steady flow of cash during battle"; } if (this._currentframe == 2) { this.words = "The enemy's oil refining platform.Provides extra cash to the enemy in battle.\n This territory has been conquered by the enemy. Click on it to invade."; } }
Instance of Symbol 1099 MovieClip "ai" in Frame 33
onClipEvent (enterFrame) { opens++; timer++; if (timer == 100) { _root.enemypower = _root.enemypower + _root.difficulty; timer = 0; } if (_root.enemyattack > 0) { _root.mapbar.invbutton._visible = false; if (_root.mapbar.mapn != territory) { _root.mapbar.commandbutton._visible = false; } } if (opens > (randomdelay * 5)) { if (_root.enemyattack == 0) { noob = 2 + Math.round(Math.random() * 7); territory = "map" + noob; trace(territory + "territory"); if (noob != 3) { if (_root["own" + territory] === true) { trace("ownistrue"); enemyattack = Math.round(_root.enemypower * 0.17); _root.enemyattack = enemyattack; if (_root.enemyattack > 0) { _root.alarm.play(); _root.alarm.territory = territory; trace(_root.alarm.territory); _root["map" + noob].words = "This territory is under attack by the enemy. Press command to assume control of your base"; } } } } if (noob == 3) { if (_root.ownmap3 === true) { trace("attackally"); _root.alarm.play(); _root.alarm.territory = "map" + noob; } } } } onClipEvent (load) { _root.enemypower = 100; opens = 0; if (_root.ownmap5 === false) { chances = 1; } else { chances = 2; } if (_root.enemypower <= 10) { _root.enemypower = 10; } randomdelay = Math.round((Math.random() * (5500 / _root.enemypower)) * chances); territory = undefined; _root.enemyattack = 0; noob = 0; timer = 0; }
Instance of Symbol 1128 MovieClip "alarm" in Frame 33
onClipEvent (load) { this.territory = undefined; } onClipEvent (mouseDown) { if (this._currentframe != 1) { _root.gotoAndPlay(territory + "d"); } }
Frame 34
_root.mapbar.removeMovieClip(); _root.attachMovie("sidebar", "sidebar", 1000000); _root.attachMovie("mo", "mouse", 1000001); _root.sidebar._x = 132.6; _root.sidebar._y = 615; _root.sidebar._xscale = -58.5; _root.sidebar._yscale = 49.14; _root.sidebar._rotation = 90; _global.orix = _root.back._x; _global.oriy = _root.back._y; _root.attachMovie("box5", "box6", 10000004); _root.box6._x = x1; _root.box6._y = y1; _root.box6._height = (_root.box5._height / _root.back._height) * (y4 - y1); _root.box6._width = (_root.box5._width / _root.back._width) * (x4 - x1); _global.constanty = (y4 - y1) / _root.back._height; _global.constantx = (x4 - x1) / _root.back._width; _global.constantsy = (y4 - y1) / _root.back._height; _global.constantsx = (x4 - x1) / _root.back._width; play(); _root.objarray = []; _root.num = 0; _root.sparsex = [0, -50, 150, 100, -100, 150, 250, 200, -250, 300, 300, 350, -350, 400, -410, 500, -550]; _root.sparsey = [0, -50, 80, -180, 250, -50, 140, -150, 60, 150, -70, -220, -350, 350, -350, 375, -375]; _root.linex = [0, 0, 50, 50, 100, 100, 150, 150, 200, 200, 350, 350, 400, 400, 450, 450, 500, 500, 550, 550]; _root.liney = [0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50]; _root.unitsarray = []; _root.flagsarray = []; _root.selectedarray = []; _root.enemyarray = []; _root.shroudarray = []; _root.friendlylist = []; _root.shellarray = []; _root.enemyminearray = []; _root.obsarray = []; _root.minearray = []; _root.enemyminearray = []; _root.enemymoney = 30000 + (500 * _root.enemypower); _root.warfactory = 0; _root.enemywarfactory = 0; _global.dozers = []; _root.dozerarray = []; _root.enemydozerarray = []; _root.structurearray = []; _root.enemyservicedepot = 0; _root.enemystructurearray = []; _root.comcentre = 0; _root.enemycomcentre = 0; _root.oilarray = []; _root.enemyoiltruckarray = []; _root.oiltruckarray = []; _root.refinery = 0; _root.enemyrefinery = 0; _root.techcentre = 0; _root.enemytechcentre = 0; _root.enemyweaponsilo = 0; _root.turretarray = []; _root.enemyturretarray = [];
Instance of Symbol 1132 MovieClip "back" in Frame 34
onClipEvent (load) { this._x = 0; this._y = 0; }
Frame 35
_root.attachMovie("mission3", "tutorial", 1000900); _root.tutorial._x = 46.8; _root.tutorial._y = 10.9; if (!(_root.ownmap4 === true)) { var i = (buildary.length - 1); while (i > -1) { _root.sidebar.build[buildary[i]].buildrate = _root.sidebar.build[buildary[i]].buildrate * 0.5; i--; } var i = (buildray.length - 1); while (i > -1) { _root.sidebar.build[buildray[i]].rates = _root.sidebar.build[buildray[i]].rates * 1.5; i--; } } if (_root.ownmap9 === false) { _root.sidebar.enemynuketimer.gotoAndPlay(2); } if (_root.ownmap9 === true) { _root.sidebar.nuketimer.gotoAndPlay(2); } _root.alliedunits = 4; _root.back._x = 0; _root.back._y = 0; Mouse.hide(); _root.sidebar.mapp.gotoAndStop(5); loadattunits(); movetoloc(_root.lock2._x, _root.lock2._y); _root.waypoint100._x = _root.comally._x; _root.waypoint100._y = _root.comally._y; _root.waypoint101._x = _root.warally._x; _root.waypoint101._y = _root.warally._y; stop(); stop();
Instance of Symbol 1022 MovieClip in Frame 35
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(38))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y + 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 35
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(37))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x + 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 35
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(39))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x - 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - 20; i--; } } } }
Instance of Symbol 1022 MovieClip in Frame 35
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(40))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y - 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y - 20; i--; } } } }
Instance of Symbol 1132 MovieClip "back" in Frame 35
onClipEvent (load) { this._x = 0; this._y = 0; }
Instance of Symbol 1095 MovieClip "wall2" in Frame 35
onClipEvent (load) { _root.objarray.push(this._name); _root.unitsarray.push(this._name); this.life = 500; this.fulllife = 500; this.unittype = "wall"; }
Instance of Symbol 1095 MovieClip "wall3" in Frame 35
onClipEvent (load) { _root.objarray.push(this._name); _root.unitsarray.push(this._name); this.life = 500; this.fulllife = 500; this.unittype = "wall"; }
Instance of Symbol 1095 MovieClip "wall1" in Frame 35
onClipEvent (load) { _root.objarray.push(this._name); _root.unitsarray.push(this._name); this.life = 500; this.fulllife = 500; this.unittype = "wall"; }
Instance of Symbol 602 MovieClip [enemylaser] in Frame 35
onClipEvent (load) { if (_root.enemypower < 50) { gotoAndStop (34); } }
Instance of Symbol 602 MovieClip [enemylaser] in Frame 35
onClipEvent (load) { if (_root.enemypower < 50) { gotoAndStop (34); } }
Instance of Symbol 645 MovieClip [enemyartillery] in Frame 35
onClipEvent (load) { if (_root.enemypower < 50) { this.dummy.gotoAndStop(20); } }
Instance of Symbol 645 MovieClip [enemyartillery] in Frame 35
onClipEvent (load) { if (_root.enemypower < 50) { this.dummy.gotoAndStop(20); } }
Instance of Symbol 645 MovieClip [enemyartillery] in Frame 35
onClipEvent (load) { if (_root.enemypower < 80) { this.dummy.gotoAndStop(20); } }
Instance of Symbol 645 MovieClip [enemyartillery] in Frame 35
onClipEvent (load) { if (_root.enemypower < 80) { this.dummy.gotoAndStop(20); } }
Instance of Symbol 641 MovieClip [enemyheavy] in Frame 35
onClipEvent (load) { if (_root.enemypower < 30) { this.dummy.gotoAndStop(8); } }
Instance of Symbol 641 MovieClip [enemyheavy] in Frame 35
onClipEvent (load) { if (_root.enemypower < 30) { this.dummy.gotoAndStop(8); } }
Instance of Symbol 602 MovieClip [enemylaser] in Frame 35
onClipEvent (load) { if (_root.enemypower < 50) { gotoAndStop (34); } }
Instance of Symbol 602 MovieClip [enemylaser] in Frame 35
onClipEvent (load) { if (_root.enemypower < 100) { gotoAndStop (34); } }
Instance of Symbol 602 MovieClip [enemylaser] in Frame 35
onClipEvent (load) { if (_root.enemypower < 50) { gotoAndStop (34); } }
Instance of Symbol 644 MovieClip [enemylight] in Frame 35
onClipEvent (load) { if (_root.enemypower < 60) { this.dummy.gotoAndStop(8); } }
Instance of Symbol 644 MovieClip [enemylight] in Frame 35
onClipEvent (load) { if (_root.enemypower < 60) { this.dummy.gotoAndStop(8); } }
Instance of Symbol 1009 MovieClip in Frame 35
onClipEvent (enterFrame) { po++; if (po == _root.obsarray.length) { po = 0; } current = _root.obsarray[po]; i = _root.unitsarray.length - 1; while (i > -1) { current2 = _root.unitsarray[i]; if (_root[current2].walking || (_root[current2].fireing)) { if (_root.back[current].hitTest(_root[current2])) { if (_root[current2].dummy.obstacle == undefined) { _root[current2].dummy.obstacle = false; } if ((!_root[current2].dummy.obstacle) || (_root[current2].dummy.obstacle == undefined)) { _root[current2].dummy.obstacle = true; if (_root.back[current].pos == "hoz") { roattion = _root[current2].dummy._rotation; if ((_root[current2].dummy._rotation >= -90) && (_root[current2].dummy._rotation < 90)) { _root[current2].dummy.flag2 = _root.back[current].rights; } if ((_root[current2].dummy._rotation >= 90) && (_root[current2].dummy._rotation < 360)) { _root[current2].dummy.flag2 = _root.back[current].lefts; } } if (_root.back[current].pos == "ver") { roattion = _root[current2].dummy._rotation; if ((_root[current2].dummy._rotation <= 0) && (_root[current2].dummy._rotation > -180)) { _root[current2].dummy.flag2 = _root.back[current].tops; } if ((_root[current2].dummy._rotation > 0) && (_root[current2].dummy._rotation < 180)) { _root[current2].dummy.flag2 = _root.back[current].bottoms; } } } } } i--; } } onClipEvent (load) { po = 0; }
Instance of Symbol 1099 MovieClip "ai" in Frame 35
onClipEvent (load) { timer = 0; _root.array2 = []; build = true; rounds = 0; _root.enemyoiltrucks = 0; } onClipEvent (enterFrame) { if (!(_root.ownmap6 === true)) { _root.sidebar.build.lasertank.gotoAndStop(1); } ppp = _root.enemyarray.toString(); Mouse.hide(); timer++; if (timer == 500) { var p = 2; while (p > 0) { a = Math.random(); if ((a > 0) && (a < 0.2)) { unittype = "light"; } if ((a > 0.2) && (a < 0.4)) { unittype = "rocket"; } if ((a > 0.4) && (a < 0.6)) { unittype = "heavy"; } if ((a > 0.6) && (a < 0.8)) { unittype = "humvee"; } if ((a > 0.8) && (a < 1)) { unittype = "artillery"; } _root.attachMovie(unittype + "ally", unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.flag2._x; _root[unittype + _root.n]._y = _root.flag2._y; _root[unittype + _root.n]._rotation = 0; _root[unittype + _root.n].ally = true; unittype = undefined; _root.n++; p--; } if (_root.ownmap7 === false) { p = 2; while (p > 0) { a = Math.random(); if ((a > 0) && (a < 0.2)) { unittype = "enemylight"; } if ((a > 0.2) && (a < 0.4)) { unittype = "enemyrocket"; } if ((a > 0.4) && (a < 0.6)) { unittype = "enemyheavy"; } if ((a > 0.6) && (a < 0.8)) { unittype = "enemyhumvee"; } if ((a > 0.8) && (a < 1)) { unittype = "enemyartillery"; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.flag1._x; _root[unittype + _root.n]._y = _root.flag1._y; _root[unittype + _root.n]._rotation = 0; _root.array2.push(unittype + _root.n); unittype = undefined; _root.n++; p--; } } _root.enemypower = _root.enemypower + (_root.difficulty * 5); timer = 0; n = 1; while (n < 3) { if ((!_root["enemyturret" + n]) && (_root.enemymoney >= 1000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { bb = Math.random(); if (bb < 0.3) { _root[current].aibuild2("enemyturret", _root["waypoint2" + n]._x, _root["waypoint2" + n]._y, 1000, n, 1.5); _root[current].build = true; break; } if ((bb > 0.3) && (bb < 0.6)) { _root[current].aibuild2("enemymultiple", _root["waypoint2" + n]._x, _root["waypoint2" + n]._y, 1500, n, 1.5); _root[current].build = true; break; } if (bb > 0.6) { _root[current].aibuild2("enemylaser", _root["waypoint2" + n]._x, _root["waypoint2" + n]._y, 1500, n, 1.5); _root[current].build = true; break; } } i--; } } n++; } } if (timer == 250) { if (_root.ownmap7 === false) { _root.enemymoney = _root.enemymoney + 10000; } if (_root.ownmap7 === true) { _root.money = _root.money + 10000; } if ((_root.enemycomcentre < 1) && (_root.enemymoney >= 5000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemycomcentre", _root.waypoint3._x, _root.waypoint3._y, 5000, 0.5); _root[current].build = true; break; } i--; } } if ((_root.enemyrefinery < 1) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyrefinery", _root.waypoint2._x, _root.waypoint2._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemywarfactory == 0) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemywarfactory", _root.waypoint1._x, _root.waypoint1._y, 2000, 1); _root[current].build = true; break; } i--; } } i = 0; while (i < _root.array1.length) { current = _root.array1[i]; if (_root[current].life == undefined) { _root.array1.splice(i, 1); } if (i < (_root.array1.length - 10)) { _root.array2.push(current); _root.array1.splice(i, 1); if (Math.random() > 0.5) { _root[current].avoid = true; } if (Math.random() > 0.8) { _root[current].aggressive = false; } } i++; } } if ((Math.round(timer / 30) * 30) == timer) { if (_root.enemyarray.length <= 0) { _root.gotoAndStop("victory3"); } if (_root.friendlylist.length <= 0) { _root.gotoAndStop("defeat3"); } n = _root.enemystructurearray.length - 1; while (n > -1) { current2 = _root.enemystructurearray[n]; i = dozers.length - 1; while (i > -1) { current = dozers[i]; if (_root[current].build || (_root[current].walking)) { } else { dx = _root[current]._x - _root[current2]._x; dy = _root[current]._y - _root[current2]._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 1500) { ant = 0; if (((_root[current2].life < _root[current2].fulllife) && (_root[current2].percent == undefined)) && (_root[current2].auto._currentframe == 1)) { if (!_root[current].hitTest(_root[current2])) { _root[current].aigoto(_root[current2]._x, _root[current2]._y, false); } _root[current2].auto.play(); h = array1.length - 1; while (h > -1) { currents = _root.array1[h]; if ((((_root[currents].natack == undefined) && (!_root[currents].walking)) && (!_root[currents].fireing)) && (ant < 5)) { ant++; _root[currents].aigoto(_root[current2]._x, _root[current2]._y, false); if (_root[current2].targetobj != undefined) { targetobj = _root[current2].targetobj; _root[currents].aiattack(targetobj); } } h--; } } } break; } i--; } n--; } } timescale = 8000 / _root.enemypower; if (_root.ownmap4 === false) { timescale = timescale * 0.5; } if ((Math.round(timer / timescale) * timescale) == timer) { if (((dozers.length < 4) && (_root.enemycomcentre1.life > 0)) && (_root.enemymoney > 1000)) { _root.enemymoney = _root.enemymoney - 1000; _root.attachMovie("enemydozer", "enemydozer" + _root.n, _root.n); _root["enemydozer" + _root.n]._x = _root.enemycomcentre1._x; _root["enemydozer" + _root.n]._y = _root.enemycomcentre1._y; _root["enemydozer" + _root.n]._rotation = 0; _root.n++; } if ((_root.enemymoney > 40000) && (!build)) { build = true; rounds++; } if ((_root.enemymoney < 15000) && (build)) { build = false; } i = 0; while (i < _root.enemyarray.length) { current = _root.enemyarray[i]; if (_root[current].life == undefined) { _root.array2.splice(i, 1); } else if (((((!_root[current].fireing) && (!(_root[current].walking && (_root[current].attack === true)))) && (_root[current].getDepth() > 0)) && (_root[current].damage != undefined)) && (_root[current].speed != undefined)) { lo = Math.floor(Math.random() * (_root.friendlylist.length - 1)); unit = _root.friendlylist[lo]; _root[current].aiattack(unit); } i++; } arrayone = _root.array1.toString(); if (_root.enemywarfactory1.life > 0) { if ((_root.enemyoiltrucks < 4) && (_root.enemymoney >= 2000)) { _root.enemymoney = _root.enemymoney - 1500; _root.attachMovie("enemyoiltruck", "enemyoiltruck" + _root.n, _root.n); _root["enemyoiltruck" + _root.n]._x = _root.enemywarfactory1._x; _root["enemyoiltruck" + _root.n]._y = _root.enemywarfactory1._y; _root["enemyoiltruck" + _root.n]._rotation = 0; _root.n++; } if (build || ((_root.array1.length < 14) && (_root.enemymoney > 0))) { a = Math.random(); if ((a > 0) && (a < 0.2)) { unittype = "enemylight"; _root.enemymoney = _root.enemymoney - 1000; } if ((a > 0.2) && (a < 0.4)) { unittype = "enemyrocket"; _root.enemymoney = _root.enemymoney - 1500; } if ((a > 0.4) && (a < 0.6)) { unittype = "enemyheavy"; _root.enemymoney = _root.enemymoney - 2500; } if ((a > 0.6) && (a < 0.8)) { unittype = "enemyhumvee"; _root.enemymoney = _root.enemymoney - 500; } if ((a > 0.8) && (a < 1)) { unittype = "enemyartillery"; _root.enemymoney = _root.enemymoney - 2000; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.enemywarfactory1._x; _root[unittype + _root.n]._y = _root.enemywarfactory1._y + 100; _root[unittype + _root.n]._rotation = 0; _root.array1.push(unittype + _root.n); unittype = undefined; _root.n++; if (((_root.enemylasertank1._x == undefined) && (_root.enemytechcentre1._x != undefined)) && (_root.ownmap6 === false)) { if (Math.random() > 0.9) { _root.attachMovie("enemylasertank", "enemylasertank1", _root.n); _root.enemylasertank1._x = _root.enemywarfactory1._x; _root.enemylasertank1._y = _root.enemywarfactory1._y + 100; _root.enemylasertank1._rotation = 0; _root.enemymoney = _root.enemymoney - 7500; _root.array1.push("enemylasertank1"); } } } } } }
Instance of Symbol 645 MovieClip [enemyartillery] in Frame 35
onClipEvent (load) { if (_root.enemypower < 60) { this.dummy.gotoAndStop(20); } }
Instance of Symbol 645 MovieClip [enemyartillery] in Frame 35
onClipEvent (load) { if (_root.enemypower < 60) { this.dummy.gotoAndStop(20); } }
Instance of Symbol 1036 MovieClip "rig11" in Frame 35
onClipEvent (load) { oilfield = "oil6"; _root.objarray.push(this._name); }
Instance of Symbol 1036 MovieClip "rig12" in Frame 35
onClipEvent (load) { oilfield = "oil5"; _root.objarray.push(this._name); }
Instance of Symbol 1036 MovieClip "rig9" in Frame 35
onClipEvent (load) { oilfield = "oil3"; _root.objarray.push(this._name); }
Instance of Symbol 1036 MovieClip "rig1" in Frame 35
onClipEvent (load) { oilfield = "oil1"; _root.objarray.push(this._name); }
Instance of Symbol 644 MovieClip [enemylight] in Frame 35
onClipEvent (load) { if (_root.enemypower < 60) { this.dummy.gotoAndStop(8); } }
Instance of Symbol 644 MovieClip [enemylight] in Frame 35
onClipEvent (load) { if (_root.enemypower < 60) { this.dummy.gotoAndStop(8); } }
Instance of Symbol 641 MovieClip [enemyheavy] in Frame 35
onClipEvent (load) { if (_root.enemypower < 60) { this.dummy.gotoAndStop(8); } }
Instance of Symbol 643 MovieClip [enemyhumvee] in Frame 35
onClipEvent (load) { if (_root.enemypower < 60) { this.dummy.gotoAndStop(8); } }
Instance of Symbol 643 MovieClip [enemyhumvee] in Frame 35
onClipEvent (load) { if (_root.enemypower < 60) { this.dummy.gotoAndStop(8); } }
Instance of Symbol 641 MovieClip [enemyheavy] in Frame 35
onClipEvent (load) { if (_root.enemypower < 60) { this.dummy.gotoAndStop(8); } }
Instance of Symbol 642 MovieClip [enemyrocket] in Frame 35
onClipEvent (load) { if (_root.enemypower < 60) { this.dummy.gotoAndStop(8); } }
Instance of Symbol 1009 MovieClip in Frame 35
onClipEvent (load) { ranges = 1; }
Instance of Symbol 1009 MovieClip in Frame 35
onClipEvent (enterFrame) { po++; if (po == _root.shroudarray.length) { po = 0; } current = _root.shroudarray[po]; var revealed = false; i = _root.friendlylist.length - 1; while (i > -1) { current2 = _root.friendlylist[i]; if (_root[current2].unittype != "construction") { if (_root[current].hitTest(_root[current2])) { revealed = true; break; } } i--; } if (revealed) { _root[current]._visible = false; } if ((!revealed) && (_root.fog)) { _root[current]._visible = true; } } onClipEvent (load) { po = 0; }
Instance of Symbol 1038 MovieClip "burton" in Frame 35
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1042 MovieClip "box" in Frame 35
onClipEvent (mouseDown) { x = _root.mouse._x - 30; y = _root.mouse._y - 30; if (((_root.sidebar.mapp.hitTest(x, y, true) && (_root.comcentre1.life > 0)) && (_root.comcentre1.life != undefined)) && (_root.sidebar._visible)) { x1s = x - x1; y1s = y - y1; x2s = _root.box6._x - x1; y2s = _root.box6._y - y1; _root.box6._x = x; _root.box6._y = y; x1s = x1s / constantx; y1s = y1s / constanty; x2s = x2s / constantx; y2s = y2s / constanty; _root.back._x = _root.back._x - (x1s - x2s); _root.back._y = _root.back._y - (y1s - y2s); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - (x1s - x2s); _root[current]._y = _root[current]._y - (y1s - y2s); i--; } } if ((!_root.sidebar.hitTest(x, y, false)) || (!_root.sidebar._visible)) { if (_root.selectedarray.arrayfind("warfactory1")) { _root.rallypoint._x = _root.mouse._x; _root.rallypoint._y = _root.mouse._y; } hits = false; this._x = _root._xmouse; this._y = _root._ymouse; i = _root.friendlylist.length - 1; while (i > -1) { current = _root.friendlylist[i]; if (_root[current].hitTest(this) && (current != "servicedepot1")) { hits = true; break; } i--; } origx = _root.mouse._x; origy = _root.mouse._y; this._visible = true; array = _root.formation; _root.formation = undefined; if (!hits) { i = _root.selectedarray.length - 1; while (i > -1) { current = _root.selectedarray[i]; if (((!_root[current].enemy) && (_root[current].speed != undefined)) && (!(_root[current].ally === true))) { _root[current].turret._rotation = _root[current].dummy._rotation; c = _root.enemyarray.length - 1; while (c > -1) { current2 = _root.enemyarray[c]; if (_root.mouse.hitTest(_root[current2])) { _root[current].targetobj = current2; _root[current].attack = true; _root[current].dummy.obstacle = false; _root[current].dummy.flag2 = undefined; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root["flag" + current]._x = _root.boxns._x; _root["flag" + current]._y = _root.boxns._y; _root[current].locx = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root[current].locy = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root.objarray.push("flag" + current); _root[current].walking = true; _root.n++; hit = true; break; } c--; } if (!hit) { origx = _root.mouse._x + _root[array + "x"][i]; origy = _root.mouse._y + _root[array + "y"][i]; if (isNaN(origx)) { origx = _root.mouse._x; } if (isNaN(origy)) { origy = _root.mouse._y; } current = _root.selectedarray[i]; _root[current].destx = origx; _root[current].desty = origy; _root[current].attack = false; _root[current].locx = undefined; _root[current].locy = undefined; _root[current].walking = true; _root[current].dummy.obstacle = false; _root[current].dummy.flag2 = undefined; _root["flag" + current].removeMovieClip(); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag", "flag" + current, _root.n); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } } if (Key.isDown(17)) { _root[current].targetobj = "flag" + current; _root[current].attack = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } hit = false; i--; } } } } onClipEvent (mouseUp) { x = _root.mouse._x; y = _root.mouse._y; _root.mouse.gotoAndStop(2); if ((!_root.sidebar.hitTest(x, y, true)) || (!_root.sidebar._visible)) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (_root[current].hitTest(this) && (!_root.selectedarray.arrayfind(current))) { _root[current].selector._visible = true; _root[current].selected1 = true; _root.selectedarray.push(current); } i--; } } origx = undefined; origy = undefined; this._visible = false; _root.sidebar.calccost(); } onClipEvent (enterFrame) { if (_root.mouse.hitTest(_root.sidebar)) { _root.sidebar._alpha = 100; } else { _root.sidebar._alpha = 30; } _root.timer++; if (_root.timer == 7000) { for (var name in _root) { if (typeof(_root[name]) == "movieclip") { if ((_root[name].fulllife != undefined) && ((_root[name].life == undefined) || (_root[name].life <= 0))) { _root[name].removeMovieClip(); } } } i = _root.friendlylist.length - 1; while (i > -1) { currents = _root.friendlylist[i]; if ((_root.friendlylist.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.friendlylist.splice(i, 1); } i--; } i = _root.enemyarray.length - 1; while (i > -1) { currents = _root.enemyarray[i]; if ((_root.enemyarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.enemyarray.splice(i, 1); } i--; } i = _root.objarray.length - 1; while (i > -1) { currents = _root.objarray[i]; if ((_root.objarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.objarray.splice(i, 1); } i--; } i = _root.unitsarray.length - 1; while (i > -1) { currents = _root.unitsarray[i]; if (((_root.unitsarray.countduplicate(currents) > 1) || (_root[currents].life == undefined)) || (_root[currents + "symbols"]._x == undefined)) { _root.unitsarray.splice(i, 1); } i--; } i = _root.shellarray.length - 1; while (i > -1) { currents = _root.shellarray[i]; if (_root.shellarray.countduplicate(currents) > 1) { _root.shellarray.splice(i, 1); } i--; } _root.timer = 0; } if (Key.isDown(32)) { _root.mouse.gotoAndStop(1); _root.selectedarray = []; i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; _root[current].selector._visible = false; _root[current].selected1 = false; _root.sidebar.calccost(); i--; } } if (this._visible) { a = _root._xmouse - origx; b = _root._ymouse - origy; this._width = Math.abs(a); this._height = Math.abs(b); if (a < 0) { this._xscale = this._xscale * -1; } if (b < 0) { this._yscale = this._yscale * -1; } } }
Frame 36
totalhp = 0; i = _root.friendlylist.length - 1; while (i > -1) { current = _root.friendlylist[i]; if (!isNaN(_root[current].life)) { totalhp = totalhp + _root[current].life; } i--; } _root.box6.removeMovieClip(); for (var name in _root) { if (typeof(_root[name]) == "movieclip") { if (_root[name]._visible) { _root[name].removeMovieClip(); } } } _root.attackarray = []; _root.enemypower = _root.enemypower - 60; _root.ownmap3 = true; _root.missions++; _root.alliedunits = undefined; if (_root.ownmap4 == undefined) { _root.ownmap4 = false; _root.ownmap6 = false; } stop();
Instance of Symbol 1099 MovieClip "ai" in Frame 36
onClipEvent (mouseUp) { _root.gotoAndStop("mapbar"); }
Frame 37
for (var name in _root) { if (typeof(_root[name]) == "movieclip") { _root[name].removeMovieClip(); } } _root.attackarray = []; _root.alliedunits = undefined; if (_root.ownmap4 == undefined) { _root.ownmap3 = true; _root.ownmap4 = false; _root.ownmap6 = false; _root.missions++; } stop();
Frame 38
_root.attachMovie("sidebar", "sidebar", 1000000); _root.attachMovie("mo", "mouse", 1000001); _root.sidebar._x = 132.6; _root.sidebar._y = 615; _root.sidebar._xscale = -58.5; _root.sidebar._yscale = 49.14; _root.sidebar._rotation = 90; _global.orix = _root.back._x; _global.oriy = _root.back._y; _root.attachMovie("box5", "box6", 10000004); _root.box6._x = x1; _root.box6._y = y1; _root.box6._height = (_root.box5._height / _root.back._height) * (y4 - y1); _root.box6._width = (_root.box5._width / _root.back._width) * (x4 - x1); _global.constanty = (y4 - y1) / _root.back._height; _global.constantx = (x4 - x1) / _root.back._width; _global.constantsy = (y4 - y1) / _root.back._height; _global.constantsx = (x4 - x1) / _root.back._width; play(); _root.objarray = []; _root.num = 0; _root.sparsex = [0, -50, 150, 100, -100, 150, 250, 200, -250, 300, 300, 350, -350, 400, -410, 500, -550]; _root.sparsey = [0, -50, 80, -180, 250, -50, 140, -150, 60, 150, -70, -220, -350, 350, -350, 375, -375]; _root.linex = [0, 0, 50, 50, 100, 100, 150, 150, 200, 200, 350, 350, 400, 400, 450, 450, 500, 500, 550, 550]; _root.liney = [0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50]; _root.unitsarray = []; _root.flagsarray = []; _root.selectedarray = []; _root.enemyarray = []; _root.shroudarray = []; _root.friendlylist = []; _root.shellarray = []; _root.enemyminearray = []; _root.minearray = []; _root.enemyminearray = []; _root.enemymoney = 30000 + (_root.enemypower * 200); _root.warfactory = 0; _root.enemywarfactory = 0; _global.dozers = []; _root.dozerarray = []; _root.enemydozerarray = []; _root.structurearray = []; _root.enemyservicedepot = 0; _root.enemystructurearray = []; _root.comcentre = 0; _root.enemycomcentre = 0; _root.oilarray = []; _root.enemyoiltruckarray = []; _root.oiltruckarray = []; _root.refinery = 0; _root.enemyrefinery = 0; _root.techcentre = 0; _root.enemytechcentre = 0; _root.enemyweaponsilo = 0; _root.turretarray = []; _root.enemyturretarray = [];
Instance of Symbol 1088 MovieClip "back" in Frame 38
onClipEvent (load) { this._x = 0; this._y = 0; }
Frame 39
_root.attachMovie("missiondefend", "tutorial", 1000900); _root.tutorial._x = 46.8; _root.tutorial._y = 10.9; if (!(_root.ownmap4 === true)) { var i = (buildary.length - 1); while (i > -1) { _root.sidebar.build[buildary[i]].buildrate = _root.sidebar.build[buildary[i]].buildrate * 0.5; i--; } var i = (buildray.length - 1); while (i > -1) { _root.sidebar.build[buildray[i]].rates = _root.sidebar.build[buildray[i]].rates * 1.5; i--; } } if (_root.ownmap9 === false) { _root.sidebar.enemynuketimer.gotoAndPlay(2); } if (_root.ownmap9 === true) { _root.sidebar.nuketimer.gotoAndPlay(2); } Mouse.hide(); movetozero(); _root.nooiltruck = true; loadefunits("map2"); _root.sidebar.mapp.gotoAndStop(4); movetoloc(_root.tartar._x, _root.tartar._y); _root.waypoint100._x = _root.sensor1._x; _root.waypoint100._y = _root.sensor1._y; _root.waypoint101._x = _root.sensor1._x; _root.waypoint101._y = _root.sensor1._y; stop(); var no = _root.enemyattack; while (no > 0) { var p = 0; a = Math.random(); if ((a > 0) && (a < 0.2)) { unittype = "enemylight"; } if ((a > 0.2) && (a < 0.4)) { unittype = "enemyrocket"; } if ((a > 0.4) && (a < 0.6)) { unittype = "enemyheavy"; } if ((a > 0.6) && (a < 0.8)) { unittype = "enemyhumvee"; } if ((a > 0.8) && (a < 1)) { unittype = "enemyartillery"; } if (Math.random() < 0.8) { _root.attachMovie("enemydozer", "enemydozer" + _root.n, _root.n); _root["enemydozer" + _root.n]._x = _root.flag1._x; _root["enemydozer" + _root.n]._y = _root.flag1._y; _root["enemydozer" + _root.n]._rotation = 0; _root.n++; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.flag1._x + _root.linex[p]; _root[unittype + _root.n]._y = _root.flag1._y + _root.liney[p]; if (p >= _root.linex.length) { p = 0; } _root[unittype + _root.n]._rotation = 0; _root.array1.push(unittype + _root.n); unittype = undefined; _root.n++; no--; } stop();
Instance of Symbol 1022 MovieClip in Frame 39
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(38))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y + 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 39
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(37))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x + 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 39
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(39))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x - 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - 20; i--; } } } }
Instance of Symbol 1022 MovieClip in Frame 39
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(40))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y - 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y - 20; i--; } } } }
Instance of Symbol 1088 MovieClip "back" in Frame 39
onClipEvent (load) { this._x = 0; this._y = 0; }
Instance of Symbol 1036 MovieClip "rig11" in Frame 39
onClipEvent (load) { oilfield = "oil6"; _root.objarray.push(this._name); }
Instance of Symbol 1036 MovieClip "rig5" in Frame 39
onClipEvent (load) { oilfield = "oil4"; _root.objarray.push(this._name); }
Instance of Symbol 1036 MovieClip "rig10" in Frame 39
onClipEvent (load) { oilfield = "oil3"; _root.objarray.push(this._name); }
Instance of Symbol 20 MovieClip in Frame 39
onClipEvent (enterFrame) { po++; if (po == _root.shroudarray.length) { po = 0; } current = _root.shroudarray[po]; var revealed = false; i = _root.friendlylist.length - 1; while (i > -1) { current2 = _root.friendlylist[i]; if (_root[current2].unittype != "construction") { if (_root[current].hitTest(_root[current2])) { revealed = true; break; } } i--; } if (revealed) { _root[current]._visible = false; } if ((!revealed) && (_root.fog)) { _root[current]._visible = true; } } onClipEvent (load) { po = 0; } onClipEvent (load) { po = 0; }
Instance of Symbol 1099 MovieClip "ai" in Frame 39
onClipEvent (load) { timer = 0; _root.array1 = []; _root.array2 = []; build = true; rounds = 0; _root.enemyoiltrucks = 0; } onClipEvent (keyDown) { if ((_root.enemyattack <= 0) && (Key.isDown(13))) { _root.gotoAndStop("victory2d"); } } onClipEvent (enterFrame) { if (!(_root.ownmap6 === true)) { _root.sidebar.build.lasertank.gotoAndStop(1); } ppp = _root.enemyarray.toString(); Mouse.hide(); timer++; if (timer == 500) { if (_root.enemyattack <= 0) { _root.enemypower = _root.enemypower + 5; } } if (_root.enemyattack > 0) { if (timer == 500) { if (_root.ownmap8 === false) { p = 5; while (p > 0) { a = Math.random(); if ((a > 0) && (a < 0.2)) { unittype = "enemylight"; } if ((a > 0.2) && (a < 0.4)) { unittype = "enemyrocket"; } if ((a > 0.4) && (a < 0.6)) { unittype = "enemyheavy"; } if ((a > 0.6) && (a < 0.8)) { unittype = "enemyhumvee"; } if ((a > 0.8) && (a < 1)) { unittype = "enemyartillery"; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.flag1._x; _root[unittype + _root.n]._y = _root.flag1._y; _root[unittype + _root.n]._rotation = 0; _root.array2.push(unittype + _root.n); unittype = undefined; _root.n++; p--; } } if (_root.ownmap3 === true) { var p = 2; while (p > 0) { a = Math.random(); if ((a > 0) && (a < 0.2)) { unittype = "light"; } if ((a > 0.2) && (a < 0.4)) { unittype = "rocket"; } if ((a > 0.4) && (a < 0.6)) { unittype = "heavy"; } if ((a > 0.6) && (a < 0.8)) { unittype = "humvee"; } if ((a > 0.8) && (a < 1)) { unittype = "artillery"; } _root.attachMovie(unittype + "ally", unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.reinforcement._x; _root[unittype + _root.n]._y = _root.reinforcement._y; _root[unittype + _root.n]._rotation = 0; _root[unittype + _root.n].ally = true; unittype = undefined; _root.n++; p--; } } timer = 0; } if (timer == 250) { if (_root.ownmap3 === true) { var p = 1; while (p > 0) { a = Math.random(); if ((a > 0) && (a < 0.2)) { unittype = "light"; } if ((a > 0.2) && (a < 0.4)) { unittype = "rocket"; } if ((a > 0.4) && (a < 0.6)) { unittype = "heavy"; } if ((a > 0.6) && (a < 0.8)) { unittype = "humvee"; } if ((a > 0.8) && (a < 1)) { unittype = "artillery"; } _root.attachMovie(unittype + "ally", unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.reinforcement._x; _root[unittype + _root.n]._y = _root.reinforcement._y; _root[unittype + _root.n]._rotation = 0; _root[unittype + _root.n].ally = true; unittype = undefined; _root.n++; p--; } } if (_root.ownmap7 === false) { _root.enemymoney = _root.enemymoney + 10000; } if (_root.ownmap7 === true) { _root.money = _root.money + 10000; } if ((_root.enemycomcentre < 1) && (_root.enemymoney >= 5000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemycomcentre", _root.waypoint3._x, _root.waypoint3._y, 5000, 0.5); _root[current].build = true; break; } i--; } } if ((_root.enemyservicedepot < 1) && (_root.enemymoney >= 35000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyservicedepot", _root.waypoint47._x, _root.waypoint47._y, 1500, 1); _root[current].build = true; break; } i--; } } if ((_root.enemyrefinery < 1) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyrefinery", _root.waypoint2._x, _root.waypoint2._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemywarfactory == 0) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemywarfactory", _root.waypoint1._x, _root.waypoint1._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemytechcentre < 1) && (_root.enemymoney >= 40000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemytechcentre", _root.waypoint16._x, _root.waypoint16._y, 1500, 0.7); _root[current].build = true; break; } i--; } } if (((_root.enemytechcentre1._x != undefined) && (_root.enemyweaponsilo == 0)) && (_root.enemypower > 100)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyweaponsilo", _root.waypoint160._x, _root.waypoint160._y, 10000, 0.2); _root[current].build = true; break; } i--; } } i = 0; while (i < _root.array1.length) { current = _root.array1[i]; if (_root[current].life == undefined) { _root.array1.splice(i, 1); } if (i < (_root.array1.length - 10)) { _root.array2.push(current); _root.array1.splice(i, 1); if (Math.random() > 0.5) { _root[current].avoid = true; } if (Math.random() > 0.8) { _root[current].aggressive = false; } } i++; } } if ((Math.round(timer / 30) * 30) == timer) { if (_root.enemyarray.length <= 0) { _root.gotoAndStop("victory2d"); } if (_root.friendlylist.length <= 0) { _root.gotoAndStop("defeat2d"); } n = _root.enemystructurearray.length - 1; while (n > -1) { current2 = _root.enemystructurearray[n]; i = dozers.length - 1; while (i > -1) { current = dozers[i]; if (_root[current].build || (_root[current].walking)) { } else { dx = _root[current]._x - _root[current2]._x; dy = _root[current]._y - _root[current2]._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 1500) { ant = 0; if (((_root[current2].life < _root[current2].fulllife) && (_root[current2].percent == undefined)) && (_root[current2].auto._currentframe == 1)) { if (!_root[current].hitTest(_root[current2])) { _root[current].aigoto(_root[current2]._x, _root[current2]._y, false); } _root[current2].auto.play(); if (_root.ownmap5 === false) { h = array1.length - 1; while (h > -1) { currents = _root.array1[h]; if ((((_root[currents].natack == undefined) && (!_root[currents].walking)) && (!_root[currents].fireing)) && (ant < 5)) { ant++; _root[currents].aigoto(_root[current2]._x, _root[current2]._y, false); if (_root[current2].targetobj != undefined) { targetobj = _root[current2].targetobj; _root[currents].aiattack(targetobj); } } h--; } } } } break; } i--; } n--; } } timescale = 8000 / _root.enemypower; if (_root.ownmap4 === false) { timescale = timescale * 0.5; } if ((Math.round(timer / timescale) * timescale) == timer) { if (((dozers.length < 4) && (_root.enemycomcentre1.life > 0)) && (_root.enemymoney > 1000)) { _root.enemymoney = _root.enemymoney - 1000; _root.attachMovie("enemydozer", "enemydozer" + _root.n, _root.n); _root["enemydozer" + _root.n]._x = _root.enemycomcentre1._x; _root["enemydozer" + _root.n]._y = _root.enemycomcentre1._y; _root["enemydozer" + _root.n]._rotation = 0; _root.n++; } if ((_root.enemymoney > 40000) && (!build)) { build = true; rounds++; } if ((_root.enemymoney < 15000) && (build)) { build = false; } i = 0; while (i < _root.enemyarray.length) { current = _root.enemyarray[i]; if (_root[current].life == undefined) { _root.array2.splice(i, 1); } else if (((((!_root[current].fireing) && (!(_root[current].walking && (_root[current].attack === true)))) && (_root[current].getDepth() > 0)) && (_root[current].damage != undefined)) && (_root[current].speed != undefined)) { lo = Math.floor(Math.random() * (_root.friendlylist.length - 1)); unit = _root.friendlylist[lo]; _root[current].aiattack(unit); } i++; } arrayone = _root.array1.toString(); if (_root.enemywarfactory1.life > 0) { if ((_root.enemyoiltrucks < 4) && (_root.enemymoney >= 2000)) { _root.enemymoney = _root.enemymoney - 1500; _root.attachMovie("enemyoiltruck", "enemyoiltruck" + _root.n, _root.n); _root["enemyoiltruck" + _root.n]._x = _root.enemywarfactory1._x; _root["enemyoiltruck" + _root.n]._y = _root.enemywarfactory1._y; _root["enemyoiltruck" + _root.n]._rotation = 0; _root.n++; } if (build || ((_root.array1.length < 14) && (_root.enemymoney > 0))) { a = Math.random(); if ((a > 0) && (a < 0.2)) { unittype = "enemylight"; _root.enemymoney = _root.enemymoney - 1000; } if ((a > 0.2) && (a < 0.4)) { unittype = "enemyrocket"; _root.enemymoney = _root.enemymoney - 1500; } if ((a > 0.4) && (a < 0.6)) { unittype = "enemyheavy"; _root.enemymoney = _root.enemymoney - 2500; } if ((a > 0.6) && (a < 0.8)) { unittype = "enemyhumvee"; _root.enemymoney = _root.enemymoney - 500; } if ((a > 0.8) && (a < 1)) { unittype = "enemyartillery"; _root.enemymoney = _root.enemymoney - 2000; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.enemywarfactory1._x; _root[unittype + _root.n]._y = _root.enemywarfactory1._y + 100; _root[unittype + _root.n]._rotation = 0; _root.array1.push(unittype + _root.n); unittype = undefined; _root.n++; if (((_root.enemylasertank1._x == undefined) && (_root.enemytechcentre1._x != undefined)) && (_root.ownmap6 === false)) { if (Math.random() > 0.9) { _root.attachMovie("enemylasertank", "enemylasertank1", _root.n); _root.enemylasertank1._x = _root.enemywarfactory1._x; _root.enemylasertank1._y = _root.enemywarfactory1._y + 100; _root.enemylasertank1._rotation = 0; _root.enemymoney = _root.enemymoney - 7500; _root.array1.push("enemylasertank1"); } } } } } } }
Instance of Symbol 1009 MovieClip in Frame 39
onClipEvent (load) { ranges = 1; }
Instance of Symbol 1038 MovieClip "burton" in Frame 39
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1042 MovieClip "box" in Frame 39
onClipEvent (mouseDown) { x = _root.mouse._x - 30; y = _root.mouse._y - 30; if ((((_root.sidebar.mapp.hitTest(x, y, true) && (_root.comcentre1.life > 0)) && (_root.comcentre1.life != undefined)) && (_root.sidebar._visible)) && (_root.scrolla)) { x1s = x - x1; y1s = y - y1; x2s = _root.box6._x - x1; y2s = _root.box6._y - y1; _root.box6._x = x; _root.box6._y = y; x1s = x1s / constantx; y1s = y1s / constanty; x2s = x2s / constantx; y2s = y2s / constanty; _root.back._x = _root.back._x - (x1s - x2s); _root.back._y = _root.back._y - (y1s - y2s); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - (x1s - x2s); _root[current]._y = _root[current]._y - (y1s - y2s); i--; } } if ((!_root.sidebar.hitTest(x, y, false)) || (!_root.sidebar._visible)) { if (_root.selectedarray.arrayfind("warfactory1")) { _root.rallypoint._x = _root.mouse._x; _root.rallypoint._y = _root.mouse._y; } hits = false; this._x = _root._xmouse; this._y = _root._ymouse; i = _root.friendlylist.length - 1; while (i > -1) { current = _root.friendlylist[i]; if (_root[current].hitTest(this) && (current != "servicedepot1")) { hits = true; break; } i--; } origx = _root.mouse._x; origy = _root.mouse._y; this._visible = true; array = _root.formation; _root.formation = undefined; if (!hits) { i = _root.selectedarray.length - 1; while (i > -1) { current = _root.selectedarray[i]; if (((!_root[current].enemy) && (!(_root[current].ally === true))) && (_root[current].speed != undefined)) { _root[current].turret._rotation = _root[current].dummy._rotation; c = _root.enemyarray.length - 1; while (c > -1) { current2 = _root.enemyarray[c]; if (_root.mouse.hitTest(_root[current2])) { _root[current].targetobj = current2; _root[current].attack = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root["flag" + current]._x = _root.boxns._x; _root["flag" + current]._y = _root.boxns._y; _root[current].locx = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root[current].locy = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root.objarray.push("flag" + current); _root[current].walking = true; _root.n++; hit = true; break; } c--; } if (!hit) { origx = _root.mouse._x + _root[array + "x"][i]; origy = _root.mouse._y + _root[array + "y"][i]; if (isNaN(origx)) { origx = _root.mouse._x; } if (isNaN(origy)) { origy = _root.mouse._y; } current = _root.selectedarray[i]; _root[current].destx = origx; _root[current].desty = origy; _root[current].attack = false; _root[current].locx = undefined; _root[current].locy = undefined; _root[current].walking = true; _root["flag" + current].removeMovieClip(); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag", "flag" + current, _root.n); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } } if (Key.isDown(17)) { _root[current].targetobj = "flag" + current; _root[current].attack = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } hit = false; i--; } } } } onClipEvent (mouseUp) { x = _root.mouse._x; y = _root.mouse._y; _root.mouse.gotoAndStop(2); if ((!_root.sidebar.hitTest(x, y, true)) || (!_root.sidebar._visible)) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (_root[current].hitTest(this) && (!_root.selectedarray.arrayfind(current))) { _root[current].selector._visible = true; _root[current].selected1 = true; _root.selectedarray.push(current); } i--; } } origx = undefined; origy = undefined; this._visible = false; _root.sidebar.calccost(); } onClipEvent (enterFrame) { if (_root.mouse.hitTest(_root.sidebar)) { _root.sidebar._alpha = 100; } else { _root.sidebar._alpha = 30; } _root.timer++; if (_root.timer == 7000) { for (var name in _root) { if (typeof(_root[name]) == "movieclip") { if ((_root[name].fulllife != undefined) && ((_root[name].life == undefined) || (_root[name].life <= 0))) { _root[name].removeMovieClip(); } } } i = _root.friendlylist.length - 1; while (i > -1) { currents = _root.friendlylist[i]; if ((_root.friendlylist.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.friendlylist.splice(i, 1); } i--; } i = _root.enemyarray.length - 1; while (i > -1) { currents = _root.enemyarray[i]; if ((_root.enemyarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.enemyarray.splice(i, 1); } i--; } i = _root.objarray.length - 1; while (i > -1) { currents = _root.objarray[i]; if ((_root.objarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.objarray.splice(i, 1); } i--; } i = _root.unitsarray.length - 1; while (i > -1) { currents = _root.unitsarray[i]; if (((_root.unitsarray.countduplicate(currents) > 1) || (_root[currents].life == undefined)) || (_root[currents + "symbols"]._x == undefined)) { _root.unitsarray.splice(i, 1); } i--; } i = _root.shellarray.length - 1; while (i > -1) { currents = _root.shellarray[i]; if (_root.shellarray.countduplicate(currents) > 1) { _root.shellarray.splice(i, 1); } i--; } _root.timer = 0; } if (Key.isDown(32)) { _root.mouse.gotoAndStop(1); _root.selectedarray = []; i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; _root[current].selector._visible = false; _root[current].selected1 = false; _root.sidebar.calccost(); i--; } } if (this._visible) { a = _root._xmouse - origx; b = _root._ymouse - origy; this._width = Math.abs(a); this._height = Math.abs(b); if (a < 0) { this._xscale = this._xscale * -1; } if (b < 0) { this._yscale = this._yscale * -1; } } }
Frame 40
_root.map2array = []; movetozero(); saveunits("map2"); for (var name in _root) { if (typeof(_root[name]) == "movieclip") { _root[name].removeMovieClip(); } } _root.enemyattack = 0; _root.box6.removeMovieClip(); _root.ownmap2 = true; stop();
Instance of Symbol 1099 MovieClip "ai" in Frame 40
onClipEvent (mouseUp) { _root.gotoAndStop("mapbar"); }
Frame 41
for (var name in _root) { if (typeof(_root[name]) == "movieclip") { _root[name].removeMovieClip(); } } stop();
Instance of Symbol 1099 MovieClip "ai" in Frame 41
onClipEvent (mouseUp) { _root.gotoAndPlay("end6"); }
Frame 42
_root.mapbar.removeMovieClip(); _root.attachMovie("sidebar", "sidebar", 1000000); _root.attachMovie("mo", "mouse", 1000001); _root.sidebar._x = 132.6; _root.sidebar._y = 615; _root.sidebar._xscale = -58.5; _root.sidebar._yscale = 49.14; _root.sidebar._rotation = 90; _global.orix = _root.back._x; _global.oriy = _root.back._y; _root.attachMovie("box5", "box6", 10000004); _root.box6._x = x1; _root.box6._y = y1; _root.box6._height = (_root.box5._height / _root.back._height) * (y4 - y1); _root.box6._width = (_root.box5._width / _root.back._width) * (x4 - x1); _global.constanty = (y4 - y1) / _root.back._height; _global.constantx = (x4 - x1) / _root.back._width; _global.constantsy = (y4 - y1) / _root.back._height; _global.constantsx = (x4 - x1) / _root.back._width; play(); _root.objarray = []; _root.num = 0; _root.sparsex = [0, -50, 150, 100, -100, 150, 250, 200, -250, 300, 300, 350, -350, 400, -410, 500, -550]; _root.sparsey = [0, -50, 80, -180, 250, -50, 140, -150, 60, 150, -70, -220, -350, 350, -350, 375, -375]; _root.linex = [0, 0, 50, 50, 100, 100, 150, 150, 200, 200, 350, 350, 400, 400, 450, 450, 500, 500, 550, 550]; _root.liney = [0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50]; _root.unitsarray = []; _root.flagsarray = []; _root.selectedarray = []; _root.enemyarray = []; _root.shroudarray = []; _root.friendlylist = []; _root.shellarray = []; _root.enemyminearray = []; _root.obsarray = []; _root.minearray = []; _root.enemyminearray = []; _root.enemymoney = 30000 + (5000 * _root.enemypower); _root.warfactory = 0; _root.enemywarfactory = 0; _global.dozers = []; _root.dozerarray = []; _root.enemydozerarray = []; _root.structurearray = []; _root.enemyservicedepot = 0; _root.enemystructurearray = []; _root.comcentre = 0; _root.enemycomcentre = 0; _root.oilarray = []; _root.enemyoiltruckarray = []; _root.oiltruckarray = []; _root.refinery = 0; _root.enemyrefinery = 0; _root.techcentre = 0; _root.enemytechcentre = 0; _root.enemyweaponsilo = 0; _root.turretarray = []; _root.enemyturretarray = [];
Instance of Symbol 1132 MovieClip "back" in Frame 42
onClipEvent (load) { this._x = 0; this._y = 0; }
Frame 43
_root.attachMovie("mission4", "tutorial", 1000900); _root.tutorial._x = 46.8; _root.tutorial._y = 10.9; if (!(_root.ownmap4 === true)) { var i = (buildary.length - 1); while (i > -1) { _root.sidebar.build[buildary[i]].buildrate = _root.sidebar.build[buildary[i]].buildrate * 0.5; i--; } var i = (buildray.length - 1); while (i > -1) { _root.sidebar.build[buildray[i]].rates = _root.sidebar.build[buildray[i]].rates * 1.5; i--; } } if (_root.ownmap9 === false) { _root.sidebar.enemynuketimer.gotoAndPlay(2); } if (_root.ownmap9 === true) { _root.sidebar.nuketimer.gotoAndPlay(2); } _root.warfactories = 4; _root.back._x = 0; _root.back._y = 0; Mouse.hide(); _root.sidebar.mapp.gotoAndStop(6); loadattunits(); movetoloc(_root.lock2._x, _root.lock2._y); _root.waypoint100._x = _root.sensor1._x; _root.waypoint100._y = _root.sensor1._y; _root.waypoint101._x = _root.sensor1._x; _root.waypoint101._y = _root.sensor1._y; stop(); stop();
Instance of Symbol 1022 MovieClip in Frame 43
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(38))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y + 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 43
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(37))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x + 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 43
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(39))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x - 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - 20; i--; } } } }
Instance of Symbol 1022 MovieClip in Frame 43
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(40))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y - 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y - 20; i--; } } } }
Instance of Symbol 1070 MovieClip "back" in Frame 43
onClipEvent (load) { this._x = 0; this._y = 0; }
Instance of Symbol 1099 MovieClip "ai" in Frame 43
onClipEvent (load) { timer = 0; _root.array2 = []; build = true; rounds = 0; _root.enemyoiltrucks = 0; } onClipEvent (enterFrame) { if (!(_root.ownmap6 === true)) { _root.sidebar.build.lasertank.gotoAndStop(1); } ppp = _root.enemyarray.toString(); Mouse.hide(); timer++; if (timer == 500) { if (_root.ownmap8 === true) { var p = 2; while (p > 0) { a = Math.random(); if ((a > 0) && (a < 0.2)) { unittype = "light"; } if ((a > 0.2) && (a < 0.4)) { unittype = "rocket"; } if ((a > 0.4) && (a < 0.6)) { unittype = "heavy"; } if ((a > 0.6) && (a < 0.8)) { unittype = "humvee"; } if ((a > 0.8) && (a < 1)) { unittype = "artillery"; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.reinforcement._x; _root[unittype + _root.n]._y = _root.reinforcement._y; _root[unittype + _root.n]._rotation = 0; unittype = undefined; _root.n++; p--; } } if (_root.ownmap8 === false) { p = 2; while (p > 0) { a = Math.random(); if ((a > 0) && (a < 0.2)) { unittype = "enemylight"; } if ((a > 0.2) && (a < 0.4)) { unittype = "enemyrocket"; } if ((a > 0.4) && (a < 0.6)) { unittype = "enemyheavy"; } if ((a > 0.6) && (a < 0.8)) { unittype = "enemyhumvee"; } if ((a > 0.8) && (a < 1)) { unittype = "enemyartillery"; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.flag1._x; _root[unittype + _root.n]._y = _root.flag1._y; _root[unittype + _root.n]._rotation = 0; _root.array2.push(unittype + _root.n); unittype = undefined; _root.n++; p--; } } _root.enemypower = _root.enemypower + 5; timer = 0; } if (timer == 250) { if (_root.ownmap7 === false) { _root.enemymoney = _root.enemymoney + 10000; } if (_root.ownmap7 === true) { _root.money = _root.money + 10000; } if ((_root.enemycomcentre < 1) && (_root.enemymoney >= 5000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemycomcentre", _root.waypoint3._x, _root.waypoint3._y, 5000, 0.5); _root[current].build = true; break; } i--; } } if ((_root.enemyservicedepot < 1) && (_root.enemymoney >= 35000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyservicedepot", _root.waypoint47._x, _root.waypoint47._y, 1500, 1); _root[current].build = true; break; } i--; } } if ((_root.enemyrefinery < 1) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyrefinery", _root.waypoint2._x, _root.waypoint2._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemywarfactory == 0) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemywarfactory", _root.waypoint1._x, _root.waypoint1._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemytechcentre < 1) && (_root.enemymoney >= 40000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemytechcentre", _root.waypoint16._x, _root.waypoint16._y, 1500, 0.7); _root[current].build = true; break; } i--; } } if (((_root.enemytechcentre1._x != undefined) && (_root.enemyweaponsilo == 0)) && (_root.enemypower > 100)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyweaponsilo", _root.waypoint160._x, _root.waypoint160._y, 10000, 0.2); _root[current].build = true; break; } i--; } } i = 0; while (i < _root.array1.length) { current = _root.array1[i]; if (_root[current].life == undefined) { _root.array1.splice(i, 1); } if (i < (_root.array1.length - 5)) { _root.array2.push(current); _root.array1.splice(i, 1); if (Math.random() > 0.5) { _root[current].avoid = true; } if (Math.random() > 0.8) { _root[current].aggressive = false; } } i++; } } if ((Math.round(timer / 30) * 30) == timer) { if (_root.enemyarray.length == 4) { _root.gotoAndStop("victory4"); } if (_root.friendlylist.length <= 0) { _root.gotoAndStop("defeat4"); } n = _root.enemystructurearray.length - 1; while (n > -1) { current2 = _root.enemystructurearray[n]; i = dozers.length - 1; while (i > -1) { current = dozers[i]; if (_root[current].build || (_root[current].walking)) { } else { dx = _root[current]._x - _root[current2]._x; dy = _root[current]._y - _root[current2]._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 1500) { ant = 0; if (((_root[current2].life < _root[current2].fulllife) && (_root[current2].percent == undefined)) && (_root[current2].auto._currentframe == 1)) { if (!_root[current].hitTest(_root[current2])) { _root[current].aigoto(_root[current2]._x, _root[current2]._y, false); } _root[current2].auto.play(); h = array1.length - 1; while (h > -1) { currents = _root.array1[h]; if ((((_root[currents].natack == undefined) && (!_root[currents].walking)) && (!_root[currents].fireing)) && (ant < 5)) { ant++; _root[currents].aigoto(_root[current2]._x, _root[current2]._y, false); if (_root[current2].targetobj != undefined) { targetobj = _root[current2].targetobj; _root[currents].aiattack(targetobj); } } h--; } } } break; } i--; } n--; } } timescale = 8000 / _root.enemypower; if (_root.ownmap4 === false) { timescale = timescale * 0.5; } if ((Math.round(timer / timescale) * timescale) == timer) { if (((dozers.length < 4) && (_root.enemycomcentre1.life > 0)) && (_root.enemymoney > 1000)) { _root.enemymoney = _root.enemymoney - 1000; _root.attachMovie("enemydozer", "enemydozer" + _root.n, _root.n); _root["enemydozer" + _root.n]._x = _root.enemycomcentre1._x; _root["enemydozer" + _root.n]._y = _root.enemycomcentre1._y; _root["enemydozer" + _root.n]._rotation = 0; _root.n++; } if ((_root.enemymoney > 40000) && (!build)) { build = true; rounds++; } if ((_root.enemymoney < 15000) && (build)) { build = false; } i = 0; while (i < _root.enemyarray.length) { current = _root.enemyarray[i]; if (_root[current].life == undefined) { _root.array2.splice(i, 1); } else if (((((!_root[current].fireing) && (!(_root[current].walking && (_root[current].attack === true)))) && (_root[current].getDepth() > 0)) && (_root[current].damage != undefined)) && (_root[current].speed != undefined)) { lo = Math.floor(Math.random() * (_root.friendlylist.length - 1)); unit = _root.friendlylist[lo]; _root[current].aiattack(unit); } i++; } arrayone = _root.array1.toString(); if (_root.enemywarfactory1.life > 0) { if ((_root.enemyoiltrucks < 4) && (_root.enemymoney >= 2000)) { _root.enemymoney = _root.enemymoney - 1500; _root.attachMovie("enemyoiltruck", "enemyoiltruck" + _root.n, _root.n); _root["enemyoiltruck" + _root.n]._x = _root.enemywarfactory1._x; _root["enemyoiltruck" + _root.n]._y = _root.enemywarfactory1._y; _root["enemyoiltruck" + _root.n]._rotation = 0; _root.n++; } if ((build && (_root.enemyunits.length < 40)) && (_root.enemymoney > 0)) { a = Math.random(); if ((a > 0) && (a < 0.2)) { unittype = "enemylight"; _root.enemymoney = _root.enemymoney - 1000; } if ((a > 0.2) && (a < 0.4)) { unittype = "enemyrocket"; _root.enemymoney = _root.enemymoney - 1500; } if ((a > 0.4) && (a < 0.6)) { unittype = "enemyheavy"; _root.enemymoney = _root.enemymoney - 2500; } if ((a > 0.6) && (a < 0.8)) { unittype = "enemyhumvee"; _root.enemymoney = _root.enemymoney - 500; } if ((a > 0.8) && (a < 1)) { unittype = "enemyartillery"; _root.enemymoney = _root.enemymoney - 2000; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.enemywarfactory1._x; _root[unittype + _root.n]._y = _root.enemywarfactory1._y + 100; _root[unittype + _root.n]._rotation = 0; _root.array1.push(unittype + _root.n); unittype = undefined; _root.n++; if (((_root.enemylasertank1._x == undefined) && (_root.enemytechcentre1._x != undefined)) && (_root.ownmap6 === false)) { if (Math.random() > 0.9) { _root.attachMovie("enemylasertank", "enemylasertank1", _root.n); _root.enemylasertank1._x = _root.enemywarfactory1._x; _root.enemylasertank1._y = _root.enemywarfactory1._y + 100; _root.enemylasertank1._rotation = 0; _root.enemymoney = _root.enemymoney - 7500; _root.array1.push("enemylasertank1"); } } } } } }
Instance of Symbol 586 MovieClip [enemywarfactory] "production1" in Frame 43
onClipEvent (load) { this.fulllife = this.fulllife * 5; this.life = this.life * 5; }
Instance of Symbol 586 MovieClip [enemywarfactory] "production4" in Frame 43
onClipEvent (load) { this.fulllife = this.fulllife * 5; this.life = this.life * 5; }
Instance of Symbol 586 MovieClip [enemywarfactory] "production3" in Frame 43
onClipEvent (load) { this.fulllife = this.fulllife * 5; this.life = this.life * 5; }
Instance of Symbol 586 MovieClip [enemywarfactory] "production2" in Frame 43
onClipEvent (load) { this.fulllife = this.fulllife * 5; this.life = this.life * 5; }
Instance of Symbol 602 MovieClip [enemylaser] in Frame 43
onClipEvent (load) { if (_root.enemypower < 70) { gotoAndPlay (33); } }
Instance of Symbol 609 MovieClip [enemymine] in Frame 43
onClipEvent (load) { if (_root.enemypower < 70) { gotoAndPlay (55); } }
Instance of Symbol 609 MovieClip [enemymine] in Frame 43
onClipEvent (load) { if (_root.enemypower < 30) { gotoAndPlay (55); } }
Instance of Symbol 609 MovieClip [enemymine] in Frame 43
onClipEvent (load) { if (_root.enemypower < 50) { gotoAndPlay (55); } }
Instance of Symbol 609 MovieClip [enemymine] in Frame 43
onClipEvent (load) { if (_root.enemypower < 60) { gotoAndPlay (55); } }
Instance of Symbol 609 MovieClip [enemymine] in Frame 43
onClipEvent (load) { if (_root.enemypower < 70) { gotoAndPlay (55); } }
Instance of Symbol 617 MovieClip [enemymultiple] in Frame 43
onClipEvent (load) { if (_root.enemypower < 50) { gotoAndStop (34); } }
Instance of Symbol 617 MovieClip [enemymultiple] in Frame 43
onClipEvent (load) { if (_root.enemypower < 70) { gotoAndPlay (33); } }
Instance of Symbol 582 MovieClip [enemyturret] in Frame 43
onClipEvent (load) { if (_root.enemypower < 50) { gotoAndStop (34); } }
Instance of Symbol 582 MovieClip [enemyturret] in Frame 43
onClipEvent (load) { if (_root.enemypower < 80) { gotoAndPlay (33); } }
Instance of Symbol 582 MovieClip [enemyturret] in Frame 43
onClipEvent (load) { if (_root.enemypower < 70) { gotoAndPlay (33); } }
Instance of Symbol 596 MovieClip [enemytechcentre] "enemytechcentre1" in Frame 43
onClipEvent (load) { if (_root.enemypower < 70) { gotoAndPlay (33); } }
Instance of Symbol 602 MovieClip [enemylaser] in Frame 43
onClipEvent (load) { if (_root.enemypower < 50) { gotoAndStop (34); } }
Instance of Symbol 582 MovieClip [enemyturret] in Frame 43
onClipEvent (load) { if (_root.enemypower < 80) { gotoAndPlay (33); } }
Instance of Symbol 582 MovieClip [enemyturret] in Frame 43
onClipEvent (load) { if (_root.enemypower < 70) { gotoAndPlay (33); } }
Instance of Symbol 582 MovieClip [enemyturret] in Frame 43
onClipEvent (load) { if (_root.enemypower < 40) { gotoAndPlay (33); } }
Instance of Symbol 609 MovieClip [enemymine] in Frame 43
onClipEvent (load) { if (_root.enemypower < 80) { gotoAndPlay (55); } }
Instance of Symbol 575 MovieClip [enemylasertank] in Frame 43
onClipEvent (load) { if (!(_root.ownmap6 === false)) { this.dummy.gotoAndPlay(8); } }
Instance of Symbol 1036 MovieClip "rig11" in Frame 43
onClipEvent (load) { oilfield = "oil6"; _root.objarray.push(this._name); }
Instance of Symbol 1036 MovieClip "rig1" in Frame 43
onClipEvent (load) { oilfield = "oil5"; _root.objarray.push(this._name); }
Instance of Symbol 1036 MovieClip "rig2" in Frame 43
onClipEvent (load) { oilfield = "oil4"; _root.objarray.push(this._name); }
Instance of Symbol 1009 MovieClip in Frame 43
onClipEvent (load) { ranges = 1; }
Instance of Symbol 20 MovieClip in Frame 43
onClipEvent (enterFrame) { po++; if (po == _root.shroudarray.length) { po = 0; } current = _root.shroudarray[po]; var revealed = false; i = _root.friendlylist.length - 1; while (i > -1) { current2 = _root.friendlylist[i]; if (_root[current2].unittype != "construction") { if (_root[current].hitTest(_root[current2])) { revealed = true; break; } } i--; } if (revealed) { _root[current]._visible = false; } if ((!revealed) && (_root.fog)) { _root[current]._visible = true; } } onClipEvent (load) { po = 0; }
Instance of Symbol 1038 MovieClip "burton" in Frame 43
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1042 MovieClip "box" in Frame 43
onClipEvent (mouseDown) { x = _root.mouse._x - 30; y = _root.mouse._y - 30; if (((_root.sidebar.mapp.hitTest(x, y, true) && (_root.comcentre1.life > 0)) && (_root.comcentre1.life != undefined)) && (_root.sidebar._visible)) { x1s = x - x1; y1s = y - y1; x2s = _root.box6._x - x1; y2s = _root.box6._y - y1; _root.box6._x = x; _root.box6._y = y; x1s = x1s / constantx; y1s = y1s / constanty; x2s = x2s / constantx; y2s = y2s / constanty; _root.back._x = _root.back._x - (x1s - x2s); _root.back._y = _root.back._y - (y1s - y2s); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - (x1s - x2s); _root[current]._y = _root[current]._y - (y1s - y2s); i--; } } if ((!_root.sidebar.hitTest(x, y, false)) || (!_root.sidebar._visible)) { if (_root.selectedarray.arrayfind("warfactory1")) { _root.rallypoint._x = _root.mouse._x; _root.rallypoint._y = _root.mouse._y; } hits = false; this._x = _root._xmouse; this._y = _root._ymouse; i = _root.friendlylist.length - 1; while (i > -1) { current = _root.friendlylist[i]; if (_root[current].hitTest(this) && (current != "servicedepot1")) { hits = true; break; } i--; } origx = _root.mouse._x; origy = _root.mouse._y; this._visible = true; array = _root.formation; _root.formation = undefined; if (!hits) { i = _root.selectedarray.length - 1; while (i > -1) { current = _root.selectedarray[i]; if (((!_root[current].enemy) && (_root[current].speed != undefined)) && (!(_root[current].ally === true))) { _root[current].turret._rotation = _root[current].dummy._rotation; c = _root.enemyarray.length - 1; while (c > -1) { current2 = _root.enemyarray[c]; if (_root.mouse.hitTest(_root[current2])) { _root[current].targetobj = current2; _root[current].attack = true; _root[current].dummy.obstacle = false; _root[current].dummy.flag2 = undefined; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root["flag" + current]._x = _root.boxns._x; _root["flag" + current]._y = _root.boxns._y; _root[current].locx = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root[current].locy = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root.objarray.push("flag" + current); _root[current].walking = true; _root.n++; hit = true; break; } c--; } if (!hit) { origx = _root.mouse._x + _root[array + "x"][i]; origy = _root.mouse._y + _root[array + "y"][i]; if (isNaN(origx)) { origx = _root.mouse._x; } if (isNaN(origy)) { origy = _root.mouse._y; } current = _root.selectedarray[i]; _root[current].destx = origx; _root[current].desty = origy; _root[current].attack = false; _root[current].locx = undefined; _root[current].locy = undefined; _root[current].walking = true; _root[current].dummy.obstacle = false; _root[current].dummy.flag2 = undefined; _root["flag" + current].removeMovieClip(); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag", "flag" + current, _root.n); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } } if (Key.isDown(17)) { _root[current].targetobj = "flag" + current; _root[current].attack = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } hit = false; i--; } } } } onClipEvent (mouseUp) { x = _root.mouse._x; y = _root.mouse._y; _root.mouse.gotoAndStop(2); if ((!_root.sidebar.hitTest(x, y, true)) || (!_root.sidebar._visible)) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (_root[current].hitTest(this) && (!_root.selectedarray.arrayfind(current))) { _root[current].selector._visible = true; _root[current].selected1 = true; _root.selectedarray.push(current); } i--; } } origx = undefined; origy = undefined; this._visible = false; _root.sidebar.calccost(); } onClipEvent (enterFrame) { if (_root.mouse.hitTest(_root.sidebar)) { _root.sidebar._alpha = 100; } else { _root.sidebar._alpha = 30; } _root.timer++; if (_root.timer == 7000) { for (var name in _root) { if (typeof(_root[name]) == "movieclip") { if ((_root[name].fulllife != undefined) && ((_root[name].life == undefined) || (_root[name].life <= 0))) { _root[name].removeMovieClip(); } } } i = _root.friendlylist.length - 1; while (i > -1) { currents = _root.friendlylist[i]; if ((_root.friendlylist.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.friendlylist.splice(i, 1); } i--; } i = _root.enemyarray.length - 1; while (i > -1) { currents = _root.enemyarray[i]; if ((_root.enemyarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.enemyarray.splice(i, 1); } i--; } i = _root.objarray.length - 1; while (i > -1) { currents = _root.objarray[i]; if ((_root.objarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.objarray.splice(i, 1); } i--; } i = _root.unitsarray.length - 1; while (i > -1) { currents = _root.unitsarray[i]; if (((_root.unitsarray.countduplicate(currents) > 1) || (_root[currents].life == undefined)) || (_root[currents + "symbols"]._x == undefined)) { _root.unitsarray.splice(i, 1); } i--; } i = _root.shellarray.length - 1; while (i > -1) { currents = _root.shellarray[i]; if (_root.shellarray.countduplicate(currents) > 1) { _root.shellarray.splice(i, 1); } i--; } _root.timer = 0; } if (Key.isDown(32)) { _root.mouse.gotoAndStop(1); _root.selectedarray = []; i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; _root[current].selector._visible = false; _root[current].selected1 = false; _root.sidebar.calccost(); i--; } } if (this._visible) { a = _root._xmouse - origx; b = _root._ymouse - origy; this._width = Math.abs(a); this._height = Math.abs(b); if (a < 0) { this._xscale = this._xscale * -1; } if (b < 0) { this._yscale = this._yscale * -1; } } }
Frame 44
_root.map4array = []; _root.attackarray = []; movetozero(); saveunits("map4"); _root.box6.removeMovieClip(); for (var name in _root) { if (typeof(_root[name]) == "movieclip") { if (_root[name]._visible) { _root[name].removeMovieClip(); } } } _root.enemypower = _root.enemypower - 80; _root.ownmap4 = true; _root.alliedunits = undefined; if (_root.ownmap7 == undefined) { _root.ownmap7 = false; _root.ownmap8 = false; _root.ownmap9 = false; } _root.missions++; stop();
Instance of Symbol 1099 MovieClip "ai" in Frame 44
onClipEvent (mouseUp) { _root.gotoAndStop("mapbar"); }
Frame 45
for (var name in _root) { if (typeof(_root[name]) == "movieclip") { _root[name].removeMovieClip(); } } _root.attackarray = []; _root.alliedunits = undefined; _root.ownmap4 = false; stop();
Frame 46
_root.mapbar.removeMovieClip(); _root.attachMovie("sidebar", "sidebar", 1000000); _root.attachMovie("mo", "mouse", 1000001); _root.sidebar._x = 132.6; _root.sidebar._y = 615; _root.sidebar._xscale = -58.5; _root.sidebar._yscale = 49.14; _root.sidebar._rotation = 90; _global.orix = _root.back._x; _global.oriy = _root.back._y; _root.attachMovie("box5", "box6", 10000004); _root.box6._x = x1; _root.box6._y = y1; _root.box6._height = (_root.box5._height / _root.back._height) * (y4 - y1); _root.box6._width = (_root.box5._width / _root.back._width) * (x4 - x1); _global.constanty = (y4 - y1) / _root.back._height; _global.constantx = (x4 - x1) / _root.back._width; _global.constantsy = (y4 - y1) / _root.back._height; _global.constantsx = (x4 - x1) / _root.back._width; play(); _root.objarray = []; _root.num = 0; _root.sparsex = [0, -50, 150, 100, -100, 150, 250, 200, -250, 300, 300, 350, -350, 400, -410, 500, -550]; _root.sparsey = [0, -50, 80, -180, 250, -50, 140, -150, 60, 150, -70, -220, -350, 350, -350, 375, -375]; _root.linex = [0, 0, 50, 50, 100, 100, 150, 150, 200, 200, 350, 350, 400, 400, 450, 450, 500, 500, 550, 550]; _root.liney = [0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50]; _root.unitsarray = []; _root.flagsarray = []; _root.selectedarray = []; _root.enemyarray = []; _root.shroudarray = []; _root.friendlylist = []; _root.shellarray = []; _root.enemyminearray = []; _root.obsarray = []; _root.minearray = []; _root.enemyminearray = []; _root.enemymoney = 30000 + (5000 * _root.enemypower); _root.warfactory = 0; _root.enemywarfactory = 0; _global.dozers = []; _root.dozerarray = []; _root.enemydozerarray = []; _root.structurearray = []; _root.enemyservicedepot = 0; _root.enemystructurearray = []; _root.comcentre = 0; _root.enemycomcentre = 0; _root.oilarray = []; _root.enemyoiltruckarray = []; _root.oiltruckarray = []; _root.refinery = 0; _root.enemyrefinery = 0; _root.techcentre = 0; _root.enemytechcentre = 0; _root.enemyweaponsilo = 0; _root.turretarray = []; _root.enemyturretarray = [];
Instance of Symbol 1070 MovieClip "back" in Frame 46
onClipEvent (load) { this._x = 0; this._y = 0; }
Frame 47
_root.attachMovie("mission4", "tutorial", 1000900); _root.tutorial._x = 46.8; _root.tutorial._y = 10.9; if (!(_root.ownmap4 === true)) { var i = (buildary.length - 1); while (i > -1) { _root.sidebar.build[buildary[i]].buildrate = _root.sidebar.build[buildary[i]].buildrate * 0.5; i--; } var i = (buildray.length - 1); while (i > -1) { _root.sidebar.build[buildray[i]].rates = _root.sidebar.build[buildray[i]].rates * 1.5; i--; } } if (_root.ownmap9 === false) { _root.sidebar.enemynuketimer.gotoAndPlay(2); } if (_root.ownmap9 === true) { _root.sidebar.nuketimer.gotoAndPlay(2); } _root.warfactories = 4; _root.back._x = 0; _root.back._y = 0; Mouse.hide(); _root.nooiltruck = true; movetozero(); loadefunits("map4"); _root.sidebar.mapp.gotoAndStop(6); movetoloc(_root.lock2._x, _root.lock2._y); _root.waypoint100._x = _root.sensor1._x; _root.waypoint100._y = _root.sensor1._y; _root.waypoint101._x = _root.sensor1._x; _root.waypoint101._y = _root.sensor1._y; stop(); var no = _root.enemyattack; while (no > 0) { var p = 0; a = Math.random(); if ((a > 0) && (a < 0.1)) { unittype = "enemylight"; } if ((a > 0.1) && (a < 0.4)) { unittype = "enemyrocket"; } if ((a > 0.4) && (a < 0.6)) { unittype = "enemyheavy"; } if ((a > 0.6) && (a < 0.7)) { unittype = "enemyhumvee"; } if ((a > 0.7) && (a < 1)) { unittype = "enemyartillery"; } if (Math.random() < 0.8) { _root.attachMovie("enemydozer", "enemydozer" + _root.n, _root.n); _root["enemydozer" + _root.n]._x = _root.flag1._x; _root["enemydozer" + _root.n]._y = _root.flag1._y; _root["enemydozer" + _root.n]._rotation = 0; _root.n++; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.waypoint1._x + _root.linex[p]; _root[unittype + _root.n]._y = _root.waypoint1._y + _root.liney[p]; if (p >= _root.linex.length) { p = 0; } _root[unittype + _root.n]._rotation = 0; _root.array1.push(unittype + _root.n); unittype = undefined; _root.n++; no--; } stop();
Instance of Symbol 1022 MovieClip in Frame 47
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(38))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y + 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 47
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(37))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x + 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 47
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(39))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x - 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - 20; i--; } } } }
Instance of Symbol 1022 MovieClip in Frame 47
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(40))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y - 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y - 20; i--; } } } }
Instance of Symbol 1070 MovieClip "back" in Frame 47
onClipEvent (load) { this._x = 0; this._y = 0; }
Instance of Symbol 1136 MovieClip "production1" in Frame 47
onClipEvent (load) { this.fulllife = this.fulllife * 5; this.life = this.life * 5; }
Instance of Symbol 1136 MovieClip "production4" in Frame 47
onClipEvent (load) { this.fulllife = this.fulllife * 5; this.life = this.life * 5; }
Instance of Symbol 1136 MovieClip "production3" in Frame 47
onClipEvent (load) { this.fulllife = this.fulllife * 5; this.life = this.life * 5; }
Instance of Symbol 1136 MovieClip "production2" in Frame 47
onClipEvent (load) { this.fulllife = this.fulllife * 5; this.life = this.life * 5; }
Instance of Symbol 1036 MovieClip "rig11" in Frame 47
onClipEvent (load) { oilfield = "oil6"; _root.objarray.push(this._name); }
Instance of Symbol 1036 MovieClip "rig2" in Frame 47
onClipEvent (load) { oilfield = "oil4"; _root.objarray.push(this._name); }
Instance of Symbol 1036 MovieClip "rig1" in Frame 47
onClipEvent (load) { oilfield = "oil5"; _root.objarray.push(this._name); }
Instance of Symbol 1099 MovieClip "ai" in Frame 47
onClipEvent (load) { timer = 0; _root.array1 = []; _root.array2 = []; build = true; rounds = 0; _root.enemyoiltrucks = 0; } onClipEvent (keyDown) { if ((_root.enemyattack <= 0) && (Key.isDown(13))) { _root.gotoAndStop("victory4d"); } } onClipEvent (enterFrame) { if (!(_root.ownmap6 === true)) { _root.sidebar.build.lasertank.gotoAndStop(1); } ppp = _root.enemyarray.toString(); Mouse.hide(); timer++; if (timer == 500) { if (_root.enemyattack <= 0) { _root.enemypower = _root.enemypower + (_root.difficulty * 5); } } if (_root.enemyattack > 0) { if (timer == 500) { if (_root.ownmap8 === false) { p = 2; while (p > 0) { a = Math.random(); if ((a > 0) && (a < 0.2)) { unittype = "enemylight"; } if ((a > 0.2) && (a < 0.4)) { unittype = "enemyrocket"; } if ((a > 0.4) && (a < 0.6)) { unittype = "enemyheavy"; } if ((a > 0.6) && (a < 0.8)) { unittype = "enemyhumvee"; } if ((a > 0.8) && (a < 1)) { unittype = "enemyartillery"; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.flag1._x; _root[unittype + _root.n]._y = _root.flag1._y; _root[unittype + _root.n]._rotation = 0; _root.array2.push(unittype + _root.n); unittype = undefined; _root.n++; p--; } } if (_root.ownmap3 === true) { var p = 2; while (p > 0) { a = Math.random(); if ((a > 0) && (a < 0.2)) { unittype = "light"; } if ((a > 0.2) && (a < 0.4)) { unittype = "rocket"; } if ((a > 0.4) && (a < 0.6)) { unittype = "heavy"; } if ((a > 0.6) && (a < 0.8)) { unittype = "humvee"; } if ((a > 0.8) && (a < 1)) { unittype = "artillery"; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.reinforcement._x; _root[unittype + _root.n]._y = _root.reinforcement._y; _root[unittype + _root.n]._rotation = 0; _root[unittype + _root.n].ally = true; unittype = undefined; _root.n++; p--; } } _root.enemypower = _root.enemypower + (_root.difficulty * 5); timer = 0; } if (timer == 250) { if (_root.ownmap3 === true) { var p = 2; while (p > 0) { a = Math.random(); if ((a > 0) && (a < 0.2)) { unittype = "light"; } if ((a > 0.2) && (a < 0.4)) { unittype = "rocket"; } if ((a > 0.4) && (a < 0.6)) { unittype = "heavy"; } if ((a > 0.6) && (a < 0.8)) { unittype = "humvee"; } if ((a > 0.8) && (a < 1)) { unittype = "artillery"; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.reinforcement._x; _root[unittype + _root.n]._y = _root.reinforcement._y; _root[unittype + _root.n]._rotation = 0; _root[unittype + _root.n].ally = true; unittype = undefined; _root.n++; p--; } } if (_root.ownmap7 === false) { _root.enemymoney = _root.enemymoney + 10000; } if (_root.ownmap7 === true) { _root.money = _root.money + 10000; } if ((_root.enemycomcentre < 1) && (_root.enemymoney >= 5000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemycomcentre", _root.waypoint3._x, _root.waypoint3._y, 5000, 0.5); _root[current].build = true; break; } i--; } } if ((_root.enemyservicedepot < 1) && (_root.enemymoney >= 35000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyservicedepot", _root.waypoint47._x, _root.waypoint47._y, 1500, 1); _root[current].build = true; break; } i--; } } if ((_root.enemyrefinery < 1) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyrefinery", _root.waypoint2._x, _root.waypoint2._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemywarfactory == 0) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemywarfactory", _root.waypoint1._x, _root.waypoint1._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemytechcentre < 1) && (_root.enemymoney >= 40000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemytechcentre", _root.waypoint16._x, _root.waypoint16._y, 1500, 0.7); _root[current].build = true; break; } i--; } } if (((_root.enemytechcentre1._x != undefined) && (_root.enemyweaponsilo == 0)) && (_root.enemypower > 100)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyweaponsilo", _root.waypoint160._x, _root.waypoint160._y, 10000, 0.2); _root[current].build = true; break; } i--; } } i = 0; while (i < _root.array1.length) { current = _root.array1[i]; if (_root[current].life == undefined) { _root.array1.splice(i, 1); } if (i < (_root.array1.length - 10)) { _root.array2.push(current); _root.array1.splice(i, 1); if (Math.random() > 0.5) { _root[current].avoid = true; } if (Math.random() > 0.8) { _root[current].aggressive = false; } } i++; } } if ((Math.round(timer / 30) * 30) == timer) { if (_root.enemyarray.length <= 0) { _root.gotoAndStop("victory4d"); } if (_root.friendlylist.length <= 0) { _root.gotoAndStop("defeat4d"); } n = _root.enemystructurearray.length - 1; while (n > -1) { current2 = _root.enemystructurearray[n]; i = dozers.length - 1; while (i > -1) { current = dozers[i]; if (_root[current].build || (_root[current].walking)) { } else { dx = _root[current]._x - _root[current2]._x; dy = _root[current]._y - _root[current2]._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 1500) { ant = 0; if (((_root[current2].life < _root[current2].fulllife) && (_root[current2].percent == undefined)) && (_root[current2].auto._currentframe == 1)) { if (!_root[current].hitTest(_root[current2])) { _root[current].aigoto(_root[current2]._x, _root[current2]._y, false); } _root[current2].auto.play(); if (_root.ownmap5 === false) { h = array1.length - 1; while (h > -1) { currents = _root.array1[h]; if ((((_root[currents].natack == undefined) && (!_root[currents].walking)) && (!_root[currents].fireing)) && (ant < 5)) { ant++; _root[currents].aigoto(_root[current2]._x, _root[current2]._y, false); if (_root[current2].targetobj != undefined) { targetobj = _root[current2].targetobj; _root[currents].aiattack(targetobj); } } h--; } } } } break; } i--; } n--; } } timescale = 8000 / _root.enemypower; if (_root.ownmap4 === false) { timescale = timescale * 0.5; } if ((Math.round(timer / timescale) * timescale) == timer) { if (((dozers.length < 4) && (_root.enemycomcentre1.life > 0)) && (_root.enemymoney > 1000)) { _root.enemymoney = _root.enemymoney - 1000; _root.attachMovie("enemydozer", "enemydozer" + _root.n, _root.n); _root["enemydozer" + _root.n]._x = _root.enemycomcentre1._x; _root["enemydozer" + _root.n]._y = _root.enemycomcentre1._y; _root["enemydozer" + _root.n]._rotation = 0; _root.n++; } if ((_root.enemymoney > 40000) && (!build)) { build = true; rounds++; } if ((_root.enemymoney < 15000) && (build)) { build = false; } i = 0; while (i < _root.enemyarray.length) { current = _root.enemyarray[i]; if (_root[current].life == undefined) { _root.array2.splice(i, 1); } else if (((((!_root[current].fireing) && (!(_root[current].walking && (_root[current].attack === true)))) && (_root[current].getDepth() > 0)) && (_root[current].damage != undefined)) && (_root[current].speed != undefined)) { lo = Math.floor(Math.random() * (_root.friendlylist.length - 1)); unit = _root.friendlylist[lo]; _root[current].aiattack(unit); } i++; } arrayone = _root.array1.toString(); if (_root.enemywarfactory1.life > 0) { if ((_root.enemyoiltrucks < 4) && (_root.enemymoney >= 2000)) { _root.enemymoney = _root.enemymoney - 1500; _root.attachMovie("enemyoiltruck", "enemyoiltruck" + _root.n, _root.n); _root["enemyoiltruck" + _root.n]._x = _root.enemywarfactory1._x; _root["enemyoiltruck" + _root.n]._y = _root.enemywarfactory1._y; _root["enemyoiltruck" + _root.n]._rotation = 0; _root.n++; } if (build || ((_root.array1.length < 14) && (_root.enemymoney > 0))) { a = Math.random(); if ((a > 0) && (a < 0.2)) { unittype = "enemylight"; _root.enemymoney = _root.enemymoney - 1000; } if ((a > 0.2) && (a < 0.4)) { unittype = "enemyrocket"; _root.enemymoney = _root.enemymoney - 1500; } if ((a > 0.4) && (a < 0.6)) { unittype = "enemyheavy"; _root.enemymoney = _root.enemymoney - 2500; } if ((a > 0.6) && (a < 0.8)) { unittype = "enemyhumvee"; _root.enemymoney = _root.enemymoney - 500; } if ((a > 0.8) && (a < 1)) { unittype = "enemyartillery"; _root.enemymoney = _root.enemymoney - 2000; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.enemywarfactory1._x; _root[unittype + _root.n]._y = _root.enemywarfactory1._y + 100; _root[unittype + _root.n]._rotation = 0; _root.array1.push(unittype + _root.n); unittype = undefined; _root.n++; if (((_root.enemylasertank1._x == undefined) && (_root.enemytechcentre1._x != undefined)) && (_root.ownmap6 === false)) { if (Math.random() > 0.9) { _root.attachMovie("enemylasertank", "enemylasertank1", _root.n); _root.enemylasertank1._x = _root.enemywarfactory1._x; _root.enemylasertank1._y = _root.enemywarfactory1._y + 100; _root.enemylasertank1._rotation = 0; _root.enemymoney = _root.enemymoney - 7500; _root.array1.push("enemylasertank1"); } } } } } } }
Instance of Symbol 1009 MovieClip in Frame 47
onClipEvent (load) { ranges = 1; }
Instance of Symbol 20 MovieClip in Frame 47
onClipEvent (enterFrame) { po++; if (po == _root.shroudarray.length) { po = 0; } current = _root.shroudarray[po]; var revealed = false; i = _root.friendlylist.length - 1; while (i > -1) { current2 = _root.friendlylist[i]; if (_root[current2].unittype != "construction") { if (_root[current].hitTest(_root[current2])) { revealed = true; break; } } i--; } if (revealed) { _root[current]._visible = false; } if ((!revealed) && (_root.fog)) { _root[current]._visible = true; } } onClipEvent (load) { po = 0; }
Instance of Symbol 1038 MovieClip "burton" in Frame 47
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1042 MovieClip "box" in Frame 47
onClipEvent (mouseDown) { x = _root.mouse._x - 30; y = _root.mouse._y - 30; if (((_root.sidebar.mapp.hitTest(x, y, true) && (_root.comcentre1.life > 0)) && (_root.comcentre1.life != undefined)) && (_root.sidebar._visible)) { x1s = x - x1; y1s = y - y1; x2s = _root.box6._x - x1; y2s = _root.box6._y - y1; _root.box6._x = x; _root.box6._y = y; x1s = x1s / constantx; y1s = y1s / constanty; x2s = x2s / constantx; y2s = y2s / constanty; _root.back._x = _root.back._x - (x1s - x2s); _root.back._y = _root.back._y - (y1s - y2s); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - (x1s - x2s); _root[current]._y = _root[current]._y - (y1s - y2s); i--; } } if ((!_root.sidebar.hitTest(x, y, false)) || (!_root.sidebar._visible)) { if (_root.selectedarray.arrayfind("warfactory1")) { _root.rallypoint._x = _root.mouse._x; _root.rallypoint._y = _root.mouse._y; } hits = false; this._x = _root._xmouse; this._y = _root._ymouse; i = _root.friendlylist.length - 1; while (i > -1) { current = _root.friendlylist[i]; if (_root[current].hitTest(this) && (current != "servicedepot1")) { hits = true; break; } i--; } origx = _root.mouse._x; origy = _root.mouse._y; this._visible = true; array = _root.formation; _root.formation = undefined; if (!hits) { i = _root.selectedarray.length - 1; while (i > -1) { current = _root.selectedarray[i]; if (((!_root[current].enemy) && (_root[current].speed != undefined)) && (!(_root[current].ally === true))) { _root[current].turret._rotation = _root[current].dummy._rotation; c = _root.enemyarray.length - 1; while (c > -1) { current2 = _root.enemyarray[c]; if (_root.mouse.hitTest(_root[current2])) { _root[current].targetobj = current2; _root[current].attack = true; _root[current].dummy.obstacle = false; _root[current].dummy.flag2 = undefined; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root["flag" + current]._x = _root.boxns._x; _root["flag" + current]._y = _root.boxns._y; _root[current].locx = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root[current].locy = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root.objarray.push("flag" + current); _root[current].walking = true; _root.n++; hit = true; break; } c--; } if (!hit) { origx = _root.mouse._x + _root[array + "x"][i]; origy = _root.mouse._y + _root[array + "y"][i]; if (isNaN(origx)) { origx = _root.mouse._x; } if (isNaN(origy)) { origy = _root.mouse._y; } current = _root.selectedarray[i]; _root[current].destx = origx; _root[current].desty = origy; _root[current].attack = false; _root[current].locx = undefined; _root[current].locy = undefined; _root[current].walking = true; _root[current].dummy.obstacle = false; _root[current].dummy.flag2 = undefined; _root["flag" + current].removeMovieClip(); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag", "flag" + current, _root.n); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } } if (Key.isDown(17)) { _root[current].targetobj = "flag" + current; _root[current].attack = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } hit = false; i--; } } } } onClipEvent (mouseUp) { x = _root.mouse._x; y = _root.mouse._y; _root.mouse.gotoAndStop(2); if ((!_root.sidebar.hitTest(x, y, true)) || (!_root.sidebar._visible)) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (_root[current].hitTest(this) && (!_root.selectedarray.arrayfind(current))) { _root[current].selector._visible = true; _root[current].selected1 = true; _root.selectedarray.push(current); } i--; } } origx = undefined; origy = undefined; this._visible = false; _root.sidebar.calccost(); } onClipEvent (enterFrame) { if (_root.mouse.hitTest(_root.sidebar)) { _root.sidebar._alpha = 100; } else { _root.sidebar._alpha = 30; } _root.timer++; if (_root.timer == 7000) { for (var name in _root) { if (typeof(_root[name]) == "movieclip") { if ((_root[name].fulllife != undefined) && ((_root[name].life == undefined) || (_root[name].life <= 0))) { _root[name].removeMovieClip(); } } } i = _root.friendlylist.length - 1; while (i > -1) { currents = _root.friendlylist[i]; if ((_root.friendlylist.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.friendlylist.splice(i, 1); } i--; } i = _root.enemyarray.length - 1; while (i > -1) { currents = _root.enemyarray[i]; if ((_root.enemyarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.enemyarray.splice(i, 1); } i--; } i = _root.objarray.length - 1; while (i > -1) { currents = _root.objarray[i]; if ((_root.objarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.objarray.splice(i, 1); } i--; } i = _root.unitsarray.length - 1; while (i > -1) { currents = _root.unitsarray[i]; if (((_root.unitsarray.countduplicate(currents) > 1) || (_root[currents].life == undefined)) || (_root[currents + "symbols"]._x == undefined)) { _root.unitsarray.splice(i, 1); } i--; } i = _root.shellarray.length - 1; while (i > -1) { currents = _root.shellarray[i]; if (_root.shellarray.countduplicate(currents) > 1) { _root.shellarray.splice(i, 1); } i--; } _root.timer = 0; } if (Key.isDown(32)) { _root.mouse.gotoAndStop(1); _root.selectedarray = []; i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; _root[current].selector._visible = false; _root[current].selected1 = false; _root.sidebar.calccost(); i--; } } if (this._visible) { a = _root._xmouse - origx; b = _root._ymouse - origy; this._width = Math.abs(a); this._height = Math.abs(b); if (a < 0) { this._xscale = this._xscale * -1; } if (b < 0) { this._yscale = this._yscale * -1; } } }
Frame 48
_root.map4array = []; _root.attackarray = []; movetozero(); saveunits("map4"); _root.box6.removeMovieClip(); for (var name in _root) { if (typeof(_root[name]) == "movieclip") { if (_root[name]._visible) { _root[name].removeMovieClip(); } } } _root.alliedunits = undefined; if (_root.ownmap7 == undefined) { _root.ownmap4 = true; _root.ownmap7 = false; _root.ownmap8 = false; _root.ownmap9 = false; } _root.missions++; stop();
Instance of Symbol 1099 MovieClip "ai" in Frame 48
onClipEvent (mouseUp) { _root.gotoAndStop("mapbar"); }
Frame 49
for (var name in _root) { if (typeof(_root[name]) == "movieclip") { _root[name].removeMovieClip(); } } _root.map4array = []; _root.attackarray = []; _root.alliedunits = undefined; _root.ownmap4 = false; stop();
Frame 50
_root.mapbar.removeMovieClip(); _root.attachMovie("sidebar", "sidebar", 1000000); _root.attachMovie("mo", "mouse", 1000001); _root.sidebar._x = 132.6; _root.sidebar._y = 615; _root.sidebar._xscale = -58.5; _root.sidebar._yscale = 49.14; _root.sidebar._rotation = 90; _global.orix = _root.back._x; _global.oriy = _root.back._y; _root.attachMovie("box5", "box6", 10000004); _root.box6._x = x1; _root.box6._y = y1; _root.box6._height = (_root.box5._height / _root.back._height) * (y4 - y1); _root.box6._width = (_root.box5._width / _root.back._width) * (x4 - x1); _global.constanty = (y4 - y1) / _root.back._height; _global.constantx = (x4 - x1) / _root.back._width; _global.constantsy = (y4 - y1) / _root.back._height; _global.constantsx = (x4 - x1) / _root.back._width; play(); _root.objarray = []; _root.num = 0; _root.sparsex = [0, -50, 150, 100, -100, 150, 250, 200, -250, 300, 300, 350, -350, 400, -410, 500, -550]; _root.sparsey = [0, -50, 80, -180, 250, -50, 140, -150, 60, 150, -70, -220, -350, 350, -350, 375, -375]; _root.linex = [0, 0, 50, 50, 100, 100, 150, 150, 200, 200, 350, 350, 400, 400, 450, 450, 500, 500, 550, 550]; _root.liney = [0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50]; _root.unitsarray = []; _root.flagsarray = []; _root.selectedarray = []; _root.enemyarray = []; _root.shroudarray = []; _root.friendlylist = []; _root.shellarray = []; _root.enemyminearray = []; _root.obsarray = []; _root.minearray = []; _root.enemyminearray = []; _root.enemymoney = 30000 + (5000 * _root.enemypower); _root.warfactory = 0; _root.enemywarfactory = 0; _global.dozers = []; _root.dozerarray = []; _root.enemydozerarray = []; _root.structurearray = []; _root.enemyservicedepot = 0; _root.enemystructurearray = []; _root.comcentre = 0; _root.enemycomcentre = 0; _root.oilarray = []; _root.enemyoiltruckarray = []; _root.oiltruckarray = []; _root.refinery = 0; _root.enemyrefinery = 0; _root.techcentre = 0; _root.enemytechcentre = 0; _root.enemyweaponsilo = 0; _root.turretarray = []; _root.enemyturretarray = [];
Instance of Symbol 1149 MovieClip "back" in Frame 50
onClipEvent (load) { this._x = 0; this._y = 0; }
Frame 51
_root.attachMovie("mission5", "tutorial", 1000900); _root.tutorial._x = 46.8; _root.tutorial._y = 10.9; if (!(_root.ownmap4 === true)) { var i = (buildary.length - 1); while (i > -1) { _root.sidebar.build[buildary[i]].buildrate = _root.sidebar.build[buildary[i]].buildrate * 0.5; i--; } var i = (buildray.length - 1); while (i > -1) { _root.sidebar.build[buildray[i]].rates = _root.sidebar.build[buildray[i]].rates * 1.5; i--; } } if (_root.ownmap9 === false) { _root.sidebar.enemynuketimer.gotoAndPlay(2); } if (_root.ownmap9 === true) { _root.sidebar.nuketimer.gotoAndPlay(2); } _root.sensornets = 3; _root.back._x = 0; _root.back._y = 0; Mouse.hide(); _root.sidebar.mapp.gotoAndStop(7); loadattunits(); movetoloc(_root.lock2._x, _root.lock2._y); _root.waypoint100._x = _root.sensor1._x; _root.waypoint100._y = _root.sensor1._y; _root.waypoint101._x = _root.sensor1._x; _root.waypoint101._y = _root.sensor1._y; stop(); stop();
Instance of Symbol 1022 MovieClip in Frame 51
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(38))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y + 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 51
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(37))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x + 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 51
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(39))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x - 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - 20; i--; } } } }
Instance of Symbol 1022 MovieClip in Frame 51
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(40))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y - 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y - 20; i--; } } } }
Instance of Symbol 1099 MovieClip "ai" in Frame 51
onClipEvent (load) { timer = 0; _root.array2 = []; build = true; rounds = 0; _root.enemyoiltrucks = 0; } onClipEvent (enterFrame) { if (!(_root.ownmap6 === true)) { _root.sidebar.build.lasertank.gotoAndStop(1); } ppp = _root.enemyarray.toString(); Mouse.hide(); timer++; if (timer == 500) { if (_root.ownmap8 === true) { var p = 2; while (p > 0) { a = Math.random(); if ((a > 0) && (a < 0.2)) { unittype = "light"; } if ((a > 0.2) && (a < 0.4)) { unittype = "rocket"; } if ((a > 0.4) && (a < 0.6)) { unittype = "heavy"; } if ((a > 0.6) && (a < 0.8)) { unittype = "humvee"; } if ((a > 0.8) && (a < 1)) { unittype = "artillery"; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.reinforcement._x; _root[unittype + _root.n]._y = _root.reinforcement._y; _root[unittype + _root.n]._rotation = 0; unittype = undefined; _root.n++; p--; } } if (_root.ownmap8 === false) { p = 2; while (p > 0) { a = Math.random(); if ((a > 0) && (a < 0.2)) { unittype = "enemylight"; } if ((a > 0.2) && (a < 0.4)) { unittype = "enemyrocket"; } if ((a > 0.4) && (a < 0.6)) { unittype = "enemyheavy"; } if ((a > 0.6) && (a < 0.8)) { unittype = "enemyhumvee"; } if ((a > 0.8) && (a < 1)) { unittype = "enemyartillery"; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.flag1._x; _root[unittype + _root.n]._y = _root.flag1._y; _root[unittype + _root.n]._rotation = 0; _root.array2.push(unittype + _root.n); unittype = undefined; _root.n++; p--; } } _root.enemypower = _root.enemypower + (_root.difficulty * 5); timer = 0; } if (timer == 250) { if (_root.ownmap7 === false) { _root.enemymoney = _root.enemymoney + 10000; } if (_root.ownmap7 === true) { _root.money = _root.money + 10000; } if ((_root.enemycomcentre < 1) && (_root.enemymoney >= 5000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemycomcentre", _root.waypoint3._x, _root.waypoint3._y, 5000, 0.5); _root[current].build = true; break; } i--; } } if ((_root.enemyservicedepot < 1) && (_root.enemymoney >= 35000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyservicedepot", _root.waypoint47._x, _root.waypoint47._y, 1500, 1); _root[current].build = true; break; } i--; } } if ((_root.enemyrefinery < 1) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyrefinery", _root.waypoint2._x, _root.waypoint2._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemywarfactory == 0) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemywarfactory", _root.waypoint1._x, _root.waypoint1._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemytechcentre < 1) && (_root.enemymoney >= 40000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemytechcentre", _root.waypoint16._x, _root.waypoint16._y, 1500, 0.7); _root[current].build = true; break; } i--; } } if (((_root.enemytechcentre1._x != undefined) && (_root.enemyweaponsilo == 0)) && (_root.enemypower > 100)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyweaponsilo", _root.waypoint160._x, _root.waypoint160._y, 10000, 0.2); _root[current].build = true; break; } i--; } } i = 0; while (i < _root.array1.length) { current = _root.array1[i]; if (_root[current].life == undefined) { _root.array1.splice(i, 1); } if (i < (_root.array1.length - 12)) { _root.array2.push(current); _root.array1.splice(i, 1); if (Math.random() > 0.5) { _root[current].avoid = true; } if (Math.random() > 0.8) { _root[current].aggressive = false; } } i++; } } if ((Math.round(timer / 30) * 30) == timer) { if (_root.enemyarray.length == 4) { _root.gotoAndStop("victory5"); } if (_root.friendlylist.length <= 0) { _root.gotoAndStop("defeat5"); } n = _root.enemystructurearray.length - 1; while (n > -1) { current2 = _root.enemystructurearray[n]; i = dozers.length - 1; while (i > -1) { current = dozers[i]; if (_root[current].build || (_root[current].walking)) { } else { dx = _root[current]._x - _root[current2]._x; dy = _root[current]._y - _root[current2]._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 1500) { ant = 0; if (((_root[current2].life < _root[current2].fulllife) && (_root[current2].percent == undefined)) && (_root[current2].auto._currentframe == 1)) { if (!_root[current].hitTest(_root[current2])) { _root[current].aigoto(_root[current2]._x, _root[current2]._y, false); } _root[current2].auto.play(); h = array1.length - 1; while (h > -1) { currents = _root.array1[h]; if ((((_root[currents].natack == undefined) && (!_root[currents].walking)) && (!_root[currents].fireing)) && (ant < 5)) { ant++; _root[currents].aigoto(_root[current2]._x, _root[current2]._y, false); if (_root[current2].targetobj != undefined) { targetobj = _root[current2].targetobj; _root[currents].aiattack(targetobj); } } h--; } } } break; } i--; } n--; } } timescale = 8000 / _root.enemypower; if (_root.ownmap4 === false) { timescale = timescale * 0.5; } if ((Math.round(timer / timescale) * timescale) == timer) { if (((dozers.length < 4) && (_root.enemycomcentre1.life > 0)) && (_root.enemymoney > 1000)) { _root.enemymoney = _root.enemymoney - 1000; _root.attachMovie("enemydozer", "enemydozer" + _root.n, _root.n); _root["enemydozer" + _root.n]._x = _root.enemycomcentre1._x; _root["enemydozer" + _root.n]._y = _root.enemycomcentre1._y; _root["enemydozer" + _root.n]._rotation = 0; _root.n++; } if ((_root.enemymoney > 40000) && (!build)) { build = true; rounds++; } if ((_root.enemymoney < 15000) && (build)) { build = false; } i = 0; while (i < _root.enemyarray.length) { current = _root.enemyarray[i]; if (_root[current].life == undefined) { _root.array2.splice(i, 1); } else if (((((!_root[current].fireing) && (!(_root[current].walking && (_root[current].attack === true)))) && (_root[current].getDepth() > 0)) && (_root[current].damage != undefined)) && (_root[current].speed != undefined)) { lo = Math.floor(Math.random() * (_root.friendlylist.length - 1)); unit = _root.friendlylist[lo]; if ((_root.techcentre1.life > 0) && (Math.random() > 0.5)) { unit = "sensornet1"; } _root[current].aiattack(unit); } i++; } arrayone = _root.array1.toString(); if (_root.enemywarfactory1.life > 0) { if ((_root.enemyoiltrucks < 4) && (_root.enemymoney >= 2000)) { _root.enemymoney = _root.enemymoney - 1500; _root.attachMovie("enemyoiltruck", "enemyoiltruck" + _root.n, _root.n); _root["enemyoiltruck" + _root.n]._x = _root.enemywarfactory1._x; _root["enemyoiltruck" + _root.n]._y = _root.enemywarfactory1._y; _root["enemyoiltruck" + _root.n]._rotation = 0; _root.n++; } if (build && (_root.enemymoney > 0)) { a = Math.random(); if ((a > 0) && (a < 0.2)) { unittype = "enemylight"; _root.enemymoney = _root.enemymoney - 1000; } if ((a > 0.2) && (a < 0.4)) { unittype = "enemyrocket"; _root.enemymoney = _root.enemymoney - 1500; } if ((a > 0.4) && (a < 0.6)) { unittype = "enemyheavy"; _root.enemymoney = _root.enemymoney - 2500; } if ((a > 0.6) && (a < 0.8)) { unittype = "enemyhumvee"; _root.enemymoney = _root.enemymoney - 500; } if ((a > 0.8) && (a < 1)) { unittype = "enemyartillery"; _root.enemymoney = _root.enemymoney - 2000; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.enemywarfactory1._x; _root[unittype + _root.n]._y = _root.enemywarfactory1._y + 100; _root[unittype + _root.n]._rotation = 0; _root.array1.push(unittype + _root.n); unittype = undefined; _root.n++; if (((_root.enemylasertank1._x == undefined) && (_root.enemytechcentre1._x != undefined)) && (_root.ownmap6 === false)) { if (Math.random() > 0.9) { _root.attachMovie("enemylasertank", "enemylasertank1", _root.n); _root.enemylasertank1._x = _root.enemywarfactory1._x; _root.enemylasertank1._y = _root.enemywarfactory1._y + 100; _root.enemylasertank1._rotation = 0; _root.enemymoney = _root.enemymoney - 7500; _root.array1.push("enemylasertank1"); } } } } } }
Instance of Symbol 1009 MovieClip in Frame 51
onClipEvent (load) { ranges = 1; }
Instance of Symbol 20 MovieClip in Frame 51
onClipEvent (enterFrame) { po++; if (po == _root.shroudarray.length) { po = 0; } current = _root.shroudarray[po]; var revealed = false; i = _root.friendlylist.length - 1; while (i > -1) { current2 = _root.friendlylist[i]; if (_root[current2].unittype != "construction") { if (_root[current].hitTest(_root[current2])) { revealed = true; break; } } i--; } if (revealed) { _root[current]._visible = false; } if ((!revealed) && (_root.fog)) { _root[current]._visible = true; } } onClipEvent (load) { po = 0; }
Instance of Symbol 1036 MovieClip "rig11" in Frame 51
onClipEvent (load) { oilfield = "oil6"; _root.objarray.push(this._name); }
Instance of Symbol 1036 MovieClip "rig10" in Frame 51
onClipEvent (load) { oilfield = "oil5"; _root.objarray.push(this._name); }
Instance of Symbol 1038 MovieClip "burton" in Frame 51
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1042 MovieClip "box" in Frame 51
onClipEvent (mouseDown) { x = _root.mouse._x - 30; y = _root.mouse._y - 30; if ((((_root.sidebar.mapp.hitTest(x, y, true) && (_root.comcentre1.life > 0)) && (_root.comcentre1.life != undefined)) && (_root.sidebar._visible)) && (_root.scrolla)) { x1s = x - x1; y1s = y - y1; x2s = _root.box6._x - x1; y2s = _root.box6._y - y1; _root.box6._x = x; _root.box6._y = y; x1s = x1s / constantx; y1s = y1s / constanty; x2s = x2s / constantx; y2s = y2s / constanty; _root.back._x = _root.back._x - (x1s - x2s); _root.back._y = _root.back._y - (y1s - y2s); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - (x1s - x2s); _root[current]._y = _root[current]._y - (y1s - y2s); i--; } } if ((!_root.sidebar.hitTest(x, y, false)) || (!_root.sidebar._visible)) { if (_root.selectedarray.arrayfind("warfactory1")) { _root.rallypoint._x = _root.mouse._x; _root.rallypoint._y = _root.mouse._y; } hits = false; this._x = _root._xmouse; this._y = _root._ymouse; i = _root.friendlylist.length - 1; while (i > -1) { current = _root.friendlylist[i]; if (_root[current].hitTest(this) && (current != "servicedepot1")) { hits = true; break; } i--; } origx = _root.mouse._x; origy = _root.mouse._y; this._visible = true; array = _root.formation; _root.formation = undefined; if (!hits) { i = _root.selectedarray.length - 1; while (i > -1) { current = _root.selectedarray[i]; if (((!_root[current].enemy) && (!(_root[current].ally === true))) && (_root[current].speed != undefined)) { _root[current].turret._rotation = _root[current].dummy._rotation; c = _root.enemyarray.length - 1; while (c > -1) { current2 = _root.enemyarray[c]; if (_root.mouse.hitTest(_root[current2])) { _root[current].targetobj = current2; _root[current].attack = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root["flag" + current]._x = _root.boxns._x; _root["flag" + current]._y = _root.boxns._y; _root[current].locx = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root[current].locy = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root.objarray.push("flag" + current); _root[current].walking = true; _root.n++; hit = true; break; } c--; } if (!hit) { origx = _root.mouse._x + _root[array + "x"][i]; origy = _root.mouse._y + _root[array + "y"][i]; if (isNaN(origx)) { origx = _root.mouse._x; } if (isNaN(origy)) { origy = _root.mouse._y; } current = _root.selectedarray[i]; _root[current].destx = origx; _root[current].desty = origy; _root[current].attack = false; _root[current].locx = undefined; _root[current].locy = undefined; _root[current].walking = true; _root["flag" + current].removeMovieClip(); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag", "flag" + current, _root.n); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } } if (Key.isDown(17)) { _root[current].targetobj = "flag" + current; _root[current].attack = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } hit = false; i--; } } } } onClipEvent (mouseUp) { x = _root.mouse._x; y = _root.mouse._y; _root.mouse.gotoAndStop(2); if ((!_root.sidebar.hitTest(x, y, true)) || (!_root.sidebar._visible)) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (_root[current].hitTest(this) && (!_root.selectedarray.arrayfind(current))) { _root[current].selector._visible = true; _root[current].selected1 = true; _root.selectedarray.push(current); } i--; } } origx = undefined; origy = undefined; this._visible = false; _root.sidebar.calccost(); } onClipEvent (enterFrame) { if (_root.mouse.hitTest(_root.sidebar)) { _root.sidebar._alpha = 100; } else { _root.sidebar._alpha = 30; } _root.timer++; if (_root.timer == 7000) { for (var name in _root) { if (typeof(_root[name]) == "movieclip") { if ((_root[name].fulllife != undefined) && ((_root[name].life == undefined) || (_root[name].life <= 0))) { _root[name].removeMovieClip(); } } } i = _root.friendlylist.length - 1; while (i > -1) { currents = _root.friendlylist[i]; if ((_root.friendlylist.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.friendlylist.splice(i, 1); } i--; } i = _root.enemyarray.length - 1; while (i > -1) { currents = _root.enemyarray[i]; if ((_root.enemyarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.enemyarray.splice(i, 1); } i--; } i = _root.objarray.length - 1; while (i > -1) { currents = _root.objarray[i]; if ((_root.objarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.objarray.splice(i, 1); } i--; } i = _root.unitsarray.length - 1; while (i > -1) { currents = _root.unitsarray[i]; if (((_root.unitsarray.countduplicate(currents) > 1) || (_root[currents].life == undefined)) || (_root[currents + "symbols"]._x == undefined)) { _root.unitsarray.splice(i, 1); } i--; } i = _root.shellarray.length - 1; while (i > -1) { currents = _root.shellarray[i]; if (_root.shellarray.countduplicate(currents) > 1) { _root.shellarray.splice(i, 1); } i--; } _root.timer = 0; } if (Key.isDown(32)) { _root.mouse.gotoAndStop(1); _root.selectedarray = []; i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; _root[current].selector._visible = false; _root[current].selected1 = false; _root.sidebar.calccost(); i--; } } if (this._visible) { a = _root._xmouse - origx; b = _root._ymouse - origy; this._width = Math.abs(a); this._height = Math.abs(b); if (a < 0) { this._xscale = this._xscale * -1; } if (b < 0) { this._yscale = this._yscale * -1; } } }
Frame 52
_root.map5array = []; _root.attackarray = []; movetozero(); i = _root.friendlylist.length - 1; while (i > -1) { current = _root.friendlylist[i]; if (_root[current].fulllife != undefined) { _root[current + "obj"] = {}; _root[current + "obj"].unittype = _root[current].unittype; _root[current + "obj"].unit = current + "map5"; _root.map5array.push(current); if (_root[current].auto._x != undefined) { _root[current + "obj"].x = _root[current]._x; _root[current + "obj"].y = _root[current]._y; _root[current + "obj"].fulllife = _root[current].fulllife; if (_root[current].damage != undefined) { _root[current + "obj"].damage = _root[current].damage; _root[current + "obj"].range = _root[current].range; _root[current + "obj"].firerate = _root[current].firerate; _root[current + "obj"].shellspd = _root[current].shellspd; } } if (_root[current].auto._x == undefined) { _root[current + "obj"].damage = _root[current].damage; _root[current + "obj"].range = _root[current].range; _root[current + "obj"].firerate = _root[current].firerate; _root[current + "obj"].speed = _root[current].speed; _root[current + "obj"].fulllife = _root[current].fulllife; _root[current + "obj"].shellspd = _root[current].shellspd; _root[current + "obj"].laser = _root[current].laser; _root[current + "obj"].gatling = _root[current].gatling; _root[current + "obj"].crush = _root[current].crush; _root[current + "obj"].missile = _root[current].missile; _root[current + "obj"].auto = _root[current].auto; _root[current + "obj"].nuke = _root[current].nuke; _root[current + "obj"].emp = _root[current].emp; _root[current + "obj"].shell2 = _root[current].shell2; _root[current + "obj"].accurate = _root[current].accurate; _root[current + "obj"].miss = _root[current].miss; _root[current + "obj"].seeker = _root[current].seeker; _root[current + "obj"].blast = _root[current].blast; _root[current + "obj"].hitonly = _root[current].hitonly; } } i--; } _root.box6.removeMovieClip(); for (var name in _root) { if (typeof(_root[name]) == "movieclip") { if (_root[name]._visible) { _root[name].removeMovieClip(); } } } _root.enemypower = _root.enemypower - 80; _root.alliedunits = undefined; _root.ownmap5 = true; if (_root.ownmap7 == undefined) { _root.ownmap7 = false; _root.ownmap8 = false; _root.ownmap9 = false; } _root.missions++; stop();
Instance of Symbol 1099 MovieClip "ai" in Frame 52
onClipEvent (mouseUp) { _root.gotoAndStop("mapbar"); }
Frame 53
for (var name in _root) { if (typeof(_root[name]) == "movieclip") { _root[name].removeMovieClip(); } } _root.attackarray = []; _root.alliedunits = undefined; _root.ownmap5 = false; _root.sensornets = undefined; stop();
Frame 54
_root.attachMovie("sidebar", "sidebar", 1000000); _root.attachMovie("mo", "mouse", 1000001); _root.sidebar._x = 132.6; _root.sidebar._y = 615; _root.sidebar._xscale = -58.5; _root.sidebar._yscale = 49.14; _root.sidebar._rotation = 90; _global.orix = _root.back._x; _global.oriy = _root.back._y; _root.attachMovie("box5", "box6", 10000004); _root.box6._x = x1; _root.box6._y = y1; _root.box6._height = (_root.box5._height / _root.back._height) * (y4 - y1); _root.box6._width = (_root.box5._width / _root.back._width) * (x4 - x1); _global.constanty = (y4 - y1) / _root.back._height; _global.constantx = (x4 - x1) / _root.back._width; _global.constantsy = (y4 - y1) / _root.back._height; _global.constantsx = (x4 - x1) / _root.back._width; play(); _root.objarray = []; _root.num = 0; _root.sparsex = [0, -50, 150, 100, -100, 150, 250, 200, -250, 300, 300, 350, -350, 400, -410, 500, -550]; _root.sparsey = [0, -50, 80, -180, 250, -50, 140, -150, 60, 150, -70, -220, -350, 350, -350, 375, -375]; _root.linex = [0, 0, 50, 50, 100, 100, 150, 150, 200, 200, 350, 350, 400, 400, 450, 450, 500, 500, 550, 550]; _root.liney = [0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50]; _root.unitsarray = []; _root.flagsarray = []; _root.selectedarray = []; _root.enemyarray = []; _root.shroudarray = []; _root.friendlylist = []; _root.shellarray = []; _root.enemyminearray = []; _root.minearray = []; _root.enemyminearray = []; _root.enemymoney = 50000; _root.warfactory = 0; _root.enemywarfactory = 0; _global.dozers = []; _root.dozerarray = []; _root.enemydozerarray = []; _root.structurearray = []; _root.enemyservicedepot = 0; _root.enemystructurearray = []; _root.comcentre = 0; _root.enemycomcentre = 0; _root.oilarray = []; _root.enemyoiltruckarray = []; _root.oiltruckarray = []; _root.refinery = 0; _root.enemyrefinery = 0; _root.techcentre = 0; _root.enemytechcentre = 0; _root.enemyweaponsilo = 0; _root.turretarray = []; _root.enemyturretarray = [];
Instance of Symbol 1149 MovieClip "back" in Frame 54
onClipEvent (load) { this._x = 0; this._y = 0; }
Frame 55
_root.attachMovie("missiondefend3", "tutorial", 1000900); _root.tutorial._x = 46.8; _root.tutorial._y = 10.9; if (!(_root.ownmap4 === true)) { var i = (buildary.length - 1); while (i > -1) { _root.sidebar.build[buildary[i]].buildrate = _root.sidebar.build[buildary[i]].buildrate * 0.5; i--; } var i = (buildray.length - 1); while (i > -1) { _root.sidebar.build[buildray[i]].rates = _root.sidebar.build[buildray[i]].rates * 1.5; i--; } } if (_root.ownmap9 === false) { _root.sidebar.enemynuketimer.gotoAndPlay(2); } if (_root.ownmap9 === true) { _root.sidebar.nuketimer.gotoAndPlay(2); } Mouse.hide(); movetozero(); _root.nooiltruck = true; loadefunits("map5"); _root.sidebar.mapp.gotoAndStop(7); movetoloc(_root.lock2._x, _root.lock2._y); _root.waypoint100._x = _root.sensor1._x; _root.waypoint100._y = _root.sensor1._y; _root.waypoint101._x = _root.sensor1._x; _root.waypoint101._y = _root.sensor1._y; stop(); var no = _root.enemyattack; while (no > 0) { var p = 0; a = Math.random(); if ((a > 0) && (a < 0.2)) { unittype = "enemylight"; } if ((a > 0.2) && (a < 0.3)) { unittype = "enemyrocket"; } if ((a > 0.3) && (a < 0.4)) { unittype = "enemyheavy"; } if ((a > 0.4) && (a < 0.6)) { unittype = "enemyhumvee"; } if ((a > 0.6) && (a < 1)) { unittype = "enemyartillery"; } if (Math.random() < 0.8) { _root.attachMovie("enemydozer", "enemydozer" + _root.n, _root.n); _root["enemydozer" + _root.n]._x = _root.flag1._x; _root["enemydozer" + _root.n]._y = _root.flag1._y; _root["enemydozer" + _root.n]._rotation = 0; _root.n++; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.waypoint1._x + _root.linex[p]; _root[unittype + _root.n]._y = _root.waypoint1._y + _root.liney[p]; if (p >= _root.linex.length) { p = 0; } _root[unittype + _root.n]._rotation = 0; _root.array1.push(unittype + _root.n); unittype = undefined; _root.n++; no--; } stop();
Instance of Symbol 1022 MovieClip in Frame 55
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(38))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y + 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 55
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(37))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x + 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 55
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(39))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x - 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - 20; i--; } } } }
Instance of Symbol 1022 MovieClip in Frame 55
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(40))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y - 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y - 20; i--; } } } }
Instance of Symbol 1149 MovieClip "back" in Frame 55
onClipEvent (load) { this._x = 0; this._y = 0; }
Instance of Symbol 1036 MovieClip "rig11" in Frame 55
onClipEvent (load) { oilfield = "oil6"; _root.objarray.push(this._name); }
Instance of Symbol 1009 MovieClip in Frame 55
onClipEvent (load) { ranges = 1; }
Instance of Symbol 1099 MovieClip "ai" in Frame 55
onClipEvent (load) { timer = 0; _root.array1 = []; _root.array2 = []; build = true; rounds = 0; _root.enemyoiltrucks = 0; } onClipEvent (keyDown) { if ((_root.enemyattack <= 0) && (Key.isDown(13))) { _root.gotoAndStop("victory5d"); } } onClipEvent (enterFrame) { if (!(_root.ownmap6 === true)) { _root.sidebar.build.lasertank.gotoAndStop(1); } ppp = _root.enemyarray.toString(); Mouse.hide(); timer++; if (timer == 500) { if (_root.enemyattack <= 0) { _root.enemypower = _root.enemypower + 5; } } if (_root.enemyattack > 0) { if (timer == 500) { if (_root.ownmap8 === false) { p = 5; while (p > 0) { a = Math.random(); if ((a > 0) && (a < 0.2)) { unittype = "enemylight"; } if ((a > 0.2) && (a < 0.4)) { unittype = "enemyrocket"; } if ((a > 0.4) && (a < 0.6)) { unittype = "enemyheavy"; } if ((a > 0.6) && (a < 0.8)) { unittype = "enemyhumvee"; } if ((a > 0.8) && (a < 1)) { unittype = "enemyartillery"; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.flag1._x; _root[unittype + _root.n]._y = _root.flag1._y; _root[unittype + _root.n]._rotation = 0; _root.array2.push(unittype + _root.n); unittype = undefined; _root.n++; p--; } } if (_root.ownmap3 === true) { var p = 2; while (p > 0) { a = Math.random(); if ((a > 0) && (a < 0.2)) { unittype = "light"; } if ((a > 0.2) && (a < 0.4)) { unittype = "rocket"; } if ((a > 0.4) && (a < 0.6)) { unittype = "heavy"; } if ((a > 0.6) && (a < 0.8)) { unittype = "humvee"; } if ((a > 0.8) && (a < 1)) { unittype = "artillery"; } _root.attachMovie(unittype + "ally", unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.reinforcement._x; _root[unittype + _root.n]._y = _root.reinforcement._y; _root[unittype + _root.n]._rotation = 0; _root[unittype + _root.n].ally = true; unittype = undefined; _root.n++; p--; } } _root.enemypower = _root.enemypower + 5; timer = 0; } if (timer == 250) { if (_root.ownmap3 === true) { var p = 2; while (p > 0) { a = Math.random(); if ((a > 0) && (a < 0.2)) { unittype = "light"; } if ((a > 0.2) && (a < 0.4)) { unittype = "rocket"; } if ((a > 0.4) && (a < 0.6)) { unittype = "heavy"; } if ((a > 0.6) && (a < 0.8)) { unittype = "humvee"; } if ((a > 0.8) && (a < 1)) { unittype = "artillery"; } _root.attachMovie(unittype + "ally", unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.reinforcement._x; _root[unittype + _root.n]._y = _root.reinforcement._y; _root[unittype + _root.n]._rotation = 0; _root[unittype + _root.n].ally = true; unittype = undefined; _root.n++; p--; } } if (_root.ownmap6 === false) { _root.enemymoney = _root.enemymoney + 10000; } if (_root.ownmap6 === true) { _root.money = _root.money + 10000; } if ((_root.enemycomcentre < 1) && (_root.enemymoney >= 5000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemycomcentre", _root.waypoint3._x, _root.waypoint3._y, 5000, 0.5); _root[current].build = true; break; } i--; } } if ((_root.enemyservicedepot < 1) && (_root.enemymoney >= 35000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyservicedepot", _root.waypoint47._x, _root.waypoint47._y, 1500, 1); _root[current].build = true; break; } i--; } } if ((_root.enemyrefinery < 1) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyrefinery", _root.waypoint2._x, _root.waypoint2._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemywarfactory == 0) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemywarfactory", _root.waypoint1._x, _root.waypoint1._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemytechcentre < 1) && (_root.enemymoney >= 40000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemytechcentre", _root.waypoint16._x, _root.waypoint16._y, 1500, 0.7); _root[current].build = true; break; } i--; } } if (((_root.enemytechcentre1._x != undefined) && (_root.enemyweaponsilo == 0)) && (_root.enemypower > 100)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyweaponsilo", _root.waypoint160._x, _root.waypoint160._y, 10000, 0.2); _root[current].build = true; break; } i--; } } i = 0; while (i < _root.array1.length) { current = _root.array1[i]; if (_root[current].life == undefined) { _root.array1.splice(i, 1); } if (i < (_root.array1.length - 10)) { _root.array2.push(current); _root.array1.splice(i, 1); if (Math.random() > 0.5) { _root[current].avoid = true; } if (Math.random() > 0.8) { _root[current].aggressive = false; } } i++; } } if ((Math.round(timer / 30) * 30) == timer) { if (_root.enemyarray.length <= 0) { _root.gotoAndStop("victory5d"); } if (_root.friendlylist.length <= 0) { _root.gotoAndStop("defeat5d"); } n = _root.enemystructurearray.length - 1; while (n > -1) { current2 = _root.enemystructurearray[n]; i = dozers.length - 1; while (i > -1) { current = dozers[i]; if (_root[current].build || (_root[current].walking)) { } else { dx = _root[current]._x - _root[current2]._x; dy = _root[current]._y - _root[current2]._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 1500) { ant = 0; if (((_root[current2].life < _root[current2].fulllife) && (_root[current2].percent == undefined)) && (_root[current2].auto._currentframe == 1)) { if (!_root[current].hitTest(_root[current2])) { _root[current].aigoto(_root[current2]._x, _root[current2]._y, false); } _root[current2].auto.play(); if (_root.ownmap5 === false) { h = array1.length - 1; while (h > -1) { currents = _root.array1[h]; if ((((_root[currents].natack == undefined) && (!_root[currents].walking)) && (!_root[currents].fireing)) && (ant < 5)) { ant++; _root[currents].aigoto(_root[current2]._x, _root[current2]._y, false); if (_root[current2].targetobj != undefined) { targetobj = _root[current2].targetobj; _root[currents].aiattack(targetobj); } } h--; } } } } break; } i--; } n--; } } timescale = 8000 / _root.enemypower; if (_root.ownmap4 === false) { timescale = timescale * 0.5; } if ((Math.round(timer / timescale) * timescale) == timer) { if (((dozers.length < 4) && (_root.enemycomcentre1.life > 0)) && (_root.enemymoney > 1000)) { _root.enemymoney = _root.enemymoney - 1000; _root.attachMovie("enemydozer", "enemydozer" + _root.n, _root.n); _root["enemydozer" + _root.n]._x = _root.enemycomcentre1._x; _root["enemydozer" + _root.n]._y = _root.enemycomcentre1._y; _root["enemydozer" + _root.n]._rotation = 0; _root.n++; } if ((_root.enemymoney > 40000) && (!build)) { build = true; rounds++; } if ((_root.enemymoney < 15000) && (build)) { build = false; } i = 0; while (i < _root.enemyarray.length) { current = _root.enemyarray[i]; if (_root[current].life == undefined) { _root.array2.splice(i, 1); } else if (((((!_root[current].fireing) && (!(_root[current].walking && (_root[current].attack === true)))) && (_root[current].getDepth() > 0)) && (_root[current].damage != undefined)) && (_root[current].speed != undefined)) { lo = Math.floor(Math.random() * (_root.friendlylist.length - 1)); unit = _root.friendlylist[lo]; _root[current].aiattack(unit); } i++; } arrayone = _root.array1.toString(); if (_root.enemywarfactory1.life > 0) { if ((_root.enemyoiltrucks < 4) && (_root.enemymoney >= 2000)) { _root.enemymoney = _root.enemymoney - 1500; _root.attachMovie("enemyoiltruck", "enemyoiltruck" + _root.n, _root.n); _root["enemyoiltruck" + _root.n]._x = _root.enemywarfactory1._x; _root["enemyoiltruck" + _root.n]._y = _root.enemywarfactory1._y; _root["enemyoiltruck" + _root.n]._rotation = 0; _root.n++; } if (build || ((_root.array1.length < 14) && (_root.enemymoney > 0))) { a = Math.random(); if ((a > 0) && (a < 0.2)) { unittype = "enemylight"; _root.enemymoney = _root.enemymoney - 1000; } if ((a > 0.2) && (a < 0.4)) { unittype = "enemyrocket"; _root.enemymoney = _root.enemymoney - 1500; } if ((a > 0.4) && (a < 0.6)) { unittype = "enemyheavy"; _root.enemymoney = _root.enemymoney - 2500; } if ((a > 0.6) && (a < 0.8)) { unittype = "enemyhumvee"; _root.enemymoney = _root.enemymoney - 500; } if ((a > 0.8) && (a < 1)) { unittype = "enemyartillery"; _root.enemymoney = _root.enemymoney - 2000; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.enemywarfactory1._x; _root[unittype + _root.n]._y = _root.enemywarfactory1._y + 100; _root[unittype + _root.n]._rotation = 0; _root.array1.push(unittype + _root.n); unittype = undefined; _root.n++; if (((_root.enemylasertank1._x == undefined) && (_root.enemytechcentre1._x != undefined)) && (_root.ownmap6 === false)) { if (Math.random() > 0.9) { _root.attachMovie("enemylasertank", "enemylasertank1", _root.n); _root.enemylasertank1._x = _root.enemywarfactory1._x; _root.enemylasertank1._y = _root.enemywarfactory1._y + 100; _root.enemylasertank1._rotation = 0; _root.enemymoney = _root.enemymoney - 7500; _root.array1.push("enemylasertank1"); } } } } } } }
Instance of Symbol 1036 MovieClip "rig10" in Frame 55
onClipEvent (load) { oilfield = "oil5"; _root.objarray.push(this._name); }
Instance of Symbol 20 MovieClip in Frame 55
onClipEvent (enterFrame) { po++; if (po == _root.obsarray.length) { po = 0; } current = _root.obsarray[po]; i = _root.unitsarray.length - 1; while (i > -1) { current2 = _root.unitsarray[i]; if (_root[current2].walking || (_root[current2].fireing)) { if (_root.back[current].hitTest(_root[current2])) { if (_root[current2].dummy.obstacle == undefined) { _root[current2].dummy.obstacle = false; } if ((!_root[current2].dummy.obstacle) || (_root[current2].dummy.obstacle == undefined)) { _root[current2].dummy.obstacle = true; if (_root.back[current].pos == "hoz") { roattion = _root[current2].dummy._rotation; if ((_root[current2].dummy._rotation >= -90) && (_root[current2].dummy._rotation < 90)) { _root[current2].dummy.flag2 = _root.back[current].rights; } if ((_root[current2].dummy._rotation >= 90) && (_root[current2].dummy._rotation < 360)) { _root[current2].dummy.flag2 = _root.back[current].lefts; } } if (_root.back[current].pos == "ver") { roattion = _root[current2].dummy._rotation; if ((_root[current2].dummy._rotation <= 0) && (_root[current2].dummy._rotation > -180)) { _root[current2].dummy.flag2 = _root.back[current].tops; } if ((_root[current2].dummy._rotation > 0) && (_root[current2].dummy._rotation < 180)) { _root[current2].dummy.flag2 = _root.back[current].bottoms; } } } } } i--; } } onClipEvent (load) { po = 0; }
Instance of Symbol 1038 MovieClip "burton" in Frame 55
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1042 MovieClip "box" in Frame 55
onClipEvent (mouseDown) { x = _root.mouse._x - 30; y = _root.mouse._y - 30; if (((_root.sidebar.mapp.hitTest(x, y, true) && (_root.comcentre1.life > 0)) && (_root.comcentre1.life != undefined)) && (_root.sidebar._visible)) { x1s = x - x1; y1s = y - y1; x2s = _root.box6._x - x1; y2s = _root.box6._y - y1; _root.box6._x = x; _root.box6._y = y; x1s = x1s / constantx; y1s = y1s / constanty; x2s = x2s / constantx; y2s = y2s / constanty; _root.back._x = _root.back._x - (x1s - x2s); _root.back._y = _root.back._y - (y1s - y2s); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - (x1s - x2s); _root[current]._y = _root[current]._y - (y1s - y2s); i--; } } if ((!_root.sidebar.hitTest(x, y, false)) || (!_root.sidebar._visible)) { if (_root.selectedarray.arrayfind("warfactory1")) { _root.rallypoint._x = _root.mouse._x; _root.rallypoint._y = _root.mouse._y; } hits = false; this._x = _root._xmouse; this._y = _root._ymouse; i = _root.friendlylist.length - 1; while (i > -1) { current = _root.friendlylist[i]; if (_root[current].hitTest(this) && (current != "servicedepot1")) { hits = true; break; } i--; } origx = _root.mouse._x; origy = _root.mouse._y; this._visible = true; array = _root.formation; _root.formation = undefined; if (!hits) { i = _root.selectedarray.length - 1; while (i > -1) { current = _root.selectedarray[i]; if (((!_root[current].enemy) && (_root[current].speed != undefined)) && (!(_root[current].ally === true))) { _root[current].turret._rotation = _root[current].dummy._rotation; c = _root.enemyarray.length - 1; while (c > -1) { current2 = _root.enemyarray[c]; if (_root.mouse.hitTest(_root[current2])) { _root[current].targetobj = current2; _root[current].attack = true; _root[current].dummy.obstacle = false; _root[current].dummy.flag2 = undefined; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root["flag" + current]._x = _root.boxns._x; _root["flag" + current]._y = _root.boxns._y; _root[current].locx = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root[current].locy = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root.objarray.push("flag" + current); _root[current].walking = true; _root.n++; hit = true; break; } c--; } if (!hit) { origx = _root.mouse._x + _root[array + "x"][i]; origy = _root.mouse._y + _root[array + "y"][i]; if (isNaN(origx)) { origx = _root.mouse._x; } if (isNaN(origy)) { origy = _root.mouse._y; } current = _root.selectedarray[i]; _root[current].destx = origx; _root[current].desty = origy; _root[current].attack = false; _root[current].locx = undefined; _root[current].locy = undefined; _root[current].walking = true; _root[current].dummy.obstacle = false; _root[current].dummy.flag2 = undefined; _root["flag" + current].removeMovieClip(); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag", "flag" + current, _root.n); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } } if (Key.isDown(17)) { _root[current].targetobj = "flag" + current; _root[current].attack = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } hit = false; i--; } } } } onClipEvent (mouseUp) { x = _root.mouse._x; y = _root.mouse._y; _root.mouse.gotoAndStop(2); if ((!_root.sidebar.hitTest(x, y, true)) || (!_root.sidebar._visible)) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (_root[current].hitTest(this) && (!_root.selectedarray.arrayfind(current))) { _root[current].selector._visible = true; _root[current].selected1 = true; _root.selectedarray.push(current); } i--; } } origx = undefined; origy = undefined; this._visible = false; _root.sidebar.calccost(); } onClipEvent (enterFrame) { if (_root.mouse.hitTest(_root.sidebar)) { _root.sidebar._alpha = 100; } else { _root.sidebar._alpha = 30; } _root.timer++; if (_root.timer == 7000) { for (var name in _root) { if (typeof(_root[name]) == "movieclip") { if ((_root[name].fulllife != undefined) && ((_root[name].life == undefined) || (_root[name].life <= 0))) { _root[name].removeMovieClip(); } } } i = _root.friendlylist.length - 1; while (i > -1) { currents = _root.friendlylist[i]; if ((_root.friendlylist.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.friendlylist.splice(i, 1); } i--; } i = _root.enemyarray.length - 1; while (i > -1) { currents = _root.enemyarray[i]; if ((_root.enemyarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.enemyarray.splice(i, 1); } i--; } i = _root.objarray.length - 1; while (i > -1) { currents = _root.objarray[i]; if ((_root.objarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.objarray.splice(i, 1); } i--; } i = _root.unitsarray.length - 1; while (i > -1) { currents = _root.unitsarray[i]; if (((_root.unitsarray.countduplicate(currents) > 1) || (_root[currents].life == undefined)) || (_root[currents + "symbols"]._x == undefined)) { _root.unitsarray.splice(i, 1); } i--; } i = _root.shellarray.length - 1; while (i > -1) { currents = _root.shellarray[i]; if (_root.shellarray.countduplicate(currents) > 1) { _root.shellarray.splice(i, 1); } i--; } _root.timer = 0; } if (Key.isDown(32)) { _root.mouse.gotoAndStop(1); _root.selectedarray = []; i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; _root[current].selector._visible = false; _root[current].selected1 = false; _root.sidebar.calccost(); i--; } } if (this._visible) { a = _root._xmouse - origx; b = _root._ymouse - origy; this._width = Math.abs(a); this._height = Math.abs(b); if (a < 0) { this._xscale = this._xscale * -1; } if (b < 0) { this._yscale = this._yscale * -1; } } }
Frame 56
_root.map5array = []; movetozero(); saveunits("map5"); for (var name in _root) { if (typeof(_root[name]) == "movieclip") { _root[name].removeMovieClip(); } } _root.enemyattack = 0; _root.box6.removeMovieClip(); _root.ownmap5 = true; _root.missions++; stop();
Instance of Symbol 1099 MovieClip "ai" in Frame 56
onClipEvent (mouseUp) { _root.gotoAndStop("mapbar"); }
Frame 57
for (var name in _root) { if (typeof(_root[name]) == "movieclip") { _root[name].removeMovieClip(); } } _root.map5array = []; _root.ownmap5 = false; stop();
Instance of Symbol 1099 MovieClip "ai" in Frame 57
onClipEvent (mouseUp) { _root.gotoAndPlay("mapbar"); }
Frame 58
_root.mapbar.removeMovieClip(); _root.attachMovie("sidebar", "sidebar", 1000000); _root.attachMovie("mo", "mouse", 1000001); _root.sidebar._x = 132.6; _root.sidebar._y = 615; _root.sidebar._xscale = -58.5; _root.sidebar._yscale = 49.14; _root.sidebar._rotation = 90; _global.orix = _root.back._x; _global.oriy = _root.back._y; _root.attachMovie("box5", "box6", 10000004); _root.box6._x = x1; _root.box6._y = y1; _root.box6._height = (_root.box5._height / _root.back._height) * (y4 - y1); _root.box6._width = (_root.box5._width / _root.back._width) * (x4 - x1); _global.constanty = (y4 - y1) / _root.back._height; _global.constantx = (x4 - x1) / _root.back._width; _global.constantsy = (y4 - y1) / _root.back._height; _global.constantsx = (x4 - x1) / _root.back._width; play(); _root.objarray = []; _root.num = 0; _root.sparsex = [0, -50, 150, 100, -100, 150, 250, 200, -250, 300, 300, 350, -350, 400, -410, 500, -550]; _root.sparsey = [0, -50, 80, -180, 250, -50, 140, -150, 60, 150, -70, -220, -350, 350, -350, 375, -375]; _root.linex = [0, 0, 50, 50, 100, 100, 150, 150, 200, 200, 350, 350, 400, 400, 450, 450, 500, 500, 550, 550]; _root.liney = [0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50]; _root.unitsarray = []; _root.flagsarray = []; _root.selectedarray = []; _root.enemyarray = []; _root.shroudarray = []; _root.friendlylist = []; _root.shellarray = []; _root.enemyminearray = []; _root.obsarray = []; _root.minearray = []; _root.enemyminearray = []; _root.enemymoney = 50000 + (5000 * _root.enemypower); _root.warfactory = 0; _root.enemywarfactory = 0; _global.dozers = []; _root.dozerarray = []; _root.enemydozerarray = []; _root.structurearray = []; _root.enemyservicedepot = 0; _root.enemystructurearray = []; _root.comcentre = 0; _root.enemycomcentre = 0; _root.oilarray = []; _root.enemyoiltruckarray = []; _root.oiltruckarray = []; _root.refinery = 0; _root.enemyrefinery = 0; _root.techcentre = 0; _root.enemytechcentre = 0; _root.enemyweaponsilo = 0; _root.turretarray = []; _root.enemyturretarray = [];
Instance of Symbol 1075 MovieClip "back" in Frame 58
onClipEvent (load) { this._x = 0; this._y = 0; }
Frame 59
_root.attachMovie("mission6", "tutorial", 1000900); _root.tutorial._x = 46.8; _root.tutorial._y = 10.9; if (!(_root.ownmap4 === true)) { var i = (buildary.length - 1); while (i > -1) { _root.sidebar.build[buildary[i]].buildrate = _root.sidebar.build[buildary[i]].buildrate * 0.5; i--; } var i = (buildray.length - 1); while (i > -1) { _root.sidebar.build[buildray[i]].rates = _root.sidebar.build[buildray[i]].rates * 1.5; i--; } } if (_root.ownmap9 === false) { _root.sidebar.enemynuketimer.gotoAndPlay(2); } if (_root.ownmap9 === true) { _root.sidebar.nuketimer.gotoAndPlay(2); } _root.lasertankfacility = true; _root.back._x = 0; _root.back._y = 0; Mouse.hide(); _root.sidebar.mapp.gotoAndStop(8); loadattunits(); movetoloc(_root.lock2._x, _root.lock2._y); _root.waypoint100._x = _root.sensor1._x; _root.waypoint100._y = _root.sensor1._y; _root.waypoint101._x = _root.sensor1._x; _root.waypoint101._y = _root.sensor1._y; stop(); stop();
Instance of Symbol 1022 MovieClip in Frame 59
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(38))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y + 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 59
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(37))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x + 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 59
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(39))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x - 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - 20; i--; } } } }
Instance of Symbol 1022 MovieClip in Frame 59
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(40))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y - 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y - 20; i--; } } } }
Instance of Symbol 1099 MovieClip "ai" in Frame 59
onClipEvent (load) { timer = 0; _root.array2 = []; build = true; rounds = 0; _root.enemyoiltrucks = 0; } onClipEvent (enterFrame) { if (!(_root.ownmap6 === true)) { _root.sidebar.build.lasertank.gotoAndStop(1); } ppp = _root.enemyarray.toString(); Mouse.hide(); timer++; if (timer == 500) { _root.enemymoney = _root.enemymoney * 0.5; if (_root.ownmap8 === true) { var p = 2; while (p > 0) { a = Math.random(); if ((a > 0) && (a < 0.2)) { unittype = "light"; } if ((a > 0.2) && (a < 0.4)) { unittype = "rocket"; } if ((a > 0.4) && (a < 0.6)) { unittype = "heavy"; } if ((a > 0.6) && (a < 0.8)) { unittype = "humvee"; } if ((a > 0.8) && (a < 1)) { unittype = "artillery"; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.reinforcement._x; _root[unittype + _root.n]._y = _root.reinforcement._y; _root[unittype + _root.n]._rotation = 0; unittype = undefined; _root.n++; p--; } } if (_root.ownmap8 === false) { p = 2; while (p > 0) { a = Math.random(); if ((a > 0) && (a < 0.2)) { unittype = "enemylight"; } if ((a > 0.2) && (a < 0.4)) { unittype = "enemyrocket"; } if ((a > 0.4) && (a < 0.6)) { unittype = "enemyheavy"; } if ((a > 0.6) && (a < 0.8)) { unittype = "enemyhumvee"; } if ((a > 0.8) && (a < 1)) { unittype = "enemyartillery"; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.flag1._x; _root[unittype + _root.n]._y = _root.flag1._y; _root[unittype + _root.n]._rotation = 0; _root.array2.push(unittype + _root.n); unittype = undefined; _root.n++; p--; } } _root.enemypower = _root.enemypower + (_root.difficulty * 5); timer = 0; } if (timer == 250) { _root.enemymoney = _root.enemymoney * 2; if (_root.ownmap7 === false) { _root.enemymoney = _root.enemymoney + 10000; } if (_root.ownmap7 === true) { _root.money = _root.money + 10000; } if ((_root.enemycomcentre < 1) && (_root.enemymoney >= 5000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemycomcentre", _root.waypoint3._x, _root.waypoint3._y, 5000, 0.5); _root[current].build = true; break; } i--; } } if ((_root.enemyservicedepot < 1) && (_root.enemymoney >= 35000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyservicedepot", _root.waypoint47._x, _root.waypoint47._y, 1500, 1); _root[current].build = true; break; } i--; } } if ((_root.enemyrefinery < 1) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyrefinery", _root.waypoint2._x, _root.waypoint2._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemywarfactory == 0) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemywarfactory", _root.waypoint1._x, _root.waypoint1._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemytechcentre < 1) && (_root.enemymoney >= 40000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemytechcentre", _root.waypoint16._x, _root.waypoint16._y, 1500, 0.7); _root[current].build = true; break; } i--; } } if (((_root.enemytechcentre1._x != undefined) && (_root.enemyweaponsilo == 0)) && (_root.enemypower > 100)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyweaponsilo", _root.waypoint160._x, _root.waypoint160._y, 10000, 0.2); _root[current].build = true; break; } i--; } } i = 0; while (i < _root.array1.length) { current = _root.array1[i]; if (_root[current].life == undefined) { _root.array1.splice(i, 1); } if (i < (_root.array1.length - 12)) { _root.array2.push(current); _root.array1.splice(i, 1); if (Math.random() > 0.5) { _root[current].avoid = true; } if (Math.random() > 0.8) { _root[current].aggressive = false; } } i++; } } if ((Math.round(timer / 30) * 30) == timer) { if (_root.enemyarray.length == 1) { _root.gotoAndStop("victory6"); } if (_root.friendlylist.length <= 0) { _root.gotoAndStop("defeat6"); } n = _root.enemystructurearray.length - 1; while (n > -1) { current2 = _root.enemystructurearray[n]; i = dozers.length - 1; while (i > -1) { current = dozers[i]; if (_root[current].build || (_root[current].walking)) { } else { dx = _root[current]._x - _root[current2]._x; dy = _root[current]._y - _root[current2]._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 1500) { ant = 0; if (((_root[current2].life < _root[current2].fulllife) && (_root[current2].percent == undefined)) && (_root[current2].auto._currentframe == 1)) { if (!_root[current].hitTest(_root[current2])) { _root[current].aigoto(_root[current2]._x, _root[current2]._y, false); } _root[current2].auto.play(); h = array1.length - 1; while (h > -1) { currents = _root.array1[h]; if ((((_root[currents].natack == undefined) && (!_root[currents].walking)) && (!_root[currents].fireing)) && (ant < 5)) { ant++; _root[currents].aigoto(_root[current2]._x, _root[current2]._y, false); if (_root[current2].targetobj != undefined) { targetobj = _root[current2].targetobj; _root[currents].aiattack(targetobj); } } h--; } } } break; } i--; } n--; } } timescale = 8000 / _root.enemypower; if (_root.ownmap4 === false) { timescale = timescale * 0.5; } if ((Math.round(timer / timescale) * timescale) == timer) { if (((dozers.length < 4) && (_root.enemycomcentre1.life > 0)) && (_root.enemymoney > 1000)) { _root.enemymoney = _root.enemymoney - 1000; _root.attachMovie("enemydozer", "enemydozer" + _root.n, _root.n); _root["enemydozer" + _root.n]._x = _root.enemycomcentre1._x; _root["enemydozer" + _root.n]._y = _root.enemycomcentre1._y; _root["enemydozer" + _root.n]._rotation = 0; _root.n++; } if ((_root.enemymoney > 20000) && (!build)) { build = true; rounds++; } if ((_root.enemymoney < 15000) && (build)) { build = false; } i = 0; while (i < _root.enemyarray.length) { current = _root.enemyarray[i]; if (_root[current].life == undefined) { _root.array2.splice(i, 1); } else if (((((!_root[current].fireing) && (!(_root[current].walking && (_root[current].attack === true)))) && (_root[current].getDepth() > 0)) && (_root[current].damage != undefined)) && (_root[current].speed != undefined)) { lo = Math.floor(Math.random() * (_root.friendlylist.length - 1)); unit = _root.friendlylist[lo]; _root[current].aiattack(unit); } i++; } arrayone = _root.array1.toString(); if (_root.enemywarfactory1.life > 0) { if ((_root.enemyoiltrucks < 2) && (_root.enemymoney >= 2000)) { _root.enemymoney = _root.enemymoney - 1500; _root.attachMovie("enemyoiltruck", "enemyoiltruck" + _root.n, _root.n); _root["enemyoiltruck" + _root.n]._x = _root.enemywarfactory1._x; _root["enemyoiltruck" + _root.n]._y = _root.enemywarfactory1._y; _root["enemyoiltruck" + _root.n]._rotation = 0; _root.n++; } if (build && (_root.enemymoney > 0)) { a = Math.random(); if ((a > 0) && (a < 0.2)) { unittype = "enemylight"; _root.enemymoney = _root.enemymoney - 1000; } if ((a > 0.2) && (a < 0.4)) { unittype = "enemyrocket"; _root.enemymoney = _root.enemymoney - 1500; } if ((a > 0.4) && (a < 0.6)) { unittype = "enemyheavy"; _root.enemymoney = _root.enemymoney - 2500; } if ((a > 0.6) && (a < 0.8)) { unittype = "enemyhumvee"; _root.enemymoney = _root.enemymoney - 500; } if ((a > 0.8) && (a < 1)) { unittype = "enemyartillery"; _root.enemymoney = _root.enemymoney - 2000; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.enemywarfactory1._x; _root[unittype + _root.n]._y = _root.enemywarfactory1._y + 100; _root[unittype + _root.n]._rotation = 0; _root.array1.push(unittype + _root.n); unittype = undefined; _root.n++; if (((_root.enemylasertank1._x == undefined) && (_root.enemytechcentre1._x != undefined)) && (_root.ownmap6 === false)) { if (Math.random() > 0.9) { _root.attachMovie("enemylasertank", "enemylasertank1", _root.n); _root.enemylasertank1._x = _root.enemywarfactory1._x; _root.enemylasertank1._y = _root.enemywarfactory1._y + 100; _root.enemylasertank1._rotation = 0; _root.enemymoney = _root.enemymoney - 7500; _root.array1.push("enemylasertank1"); } } } } } }
Instance of Symbol 609 MovieClip [enemymine] in Frame 59
onClipEvent (load) { if (_root.enemypower < 90) { this.gotoAndStop(34); } }
Instance of Symbol 609 MovieClip [enemymine] in Frame 59
onClipEvent (load) { if (_root.enemypower < 50) { this.gotoAndStop(34); } }
Instance of Symbol 1009 MovieClip in Frame 59
onClipEvent (load) { ranges = 1; }
Instance of Symbol 20 MovieClip in Frame 59
onClipEvent (enterFrame) { po++; if (po == _root.shroudarray.length) { po = 0; } current = _root.shroudarray[po]; var revealed = false; i = _root.friendlylist.length - 1; while (i > -1) { current2 = _root.friendlylist[i]; if (_root[current2].unittype != "construction") { if (_root[current].hitTest(_root[current2])) { revealed = true; break; } } i--; } if (revealed) { _root[current]._visible = false; } if ((!revealed) && (_root.fog)) { _root[current]._visible = true; } } onClipEvent (load) { po = 0; }
Instance of Symbol 1036 MovieClip "rig10" in Frame 59
onClipEvent (load) { oilfield = "oil5"; _root.objarray.push(this._name); }
Instance of Symbol 1029 MovieClip "oil4" in Frame 59
onClipEvent (load) { this.oilspill._xscale = 100; this.oilspill._yscale = 100; }
Instance of Symbol 1029 MovieClip "oil3" in Frame 59
onClipEvent (load) { this.oilspill._xscale = 100; this.oilspill._yscale = 100; }
Instance of Symbol 1036 MovieClip "rig8" in Frame 59
onClipEvent (load) { oilfield = "oil5"; _root.objarray.push(this._name); }
Instance of Symbol 602 MovieClip [enemylaser] in Frame 59
onClipEvent (load) { if (_root.enemypower < 70) { this.gotoAndPlay(10); } }
Instance of Symbol 602 MovieClip [enemylaser] in Frame 59
onClipEvent (load) { if (_root.enemypower < 50) { this.gotoAndPlay(10); } }
Instance of Symbol 602 MovieClip [enemylaser] in Frame 59
onClipEvent (load) { if (_root.enemypower < 70) { this.gotoAndPlay(10); } }
Instance of Symbol 575 MovieClip [enemylasertank] in Frame 59
onClipEvent (load) { if (_root.enemypower < 70) { this.gotoAndStop(2); } }
Instance of Symbol 575 MovieClip [enemylasertank] in Frame 59
onClipEvent (load) { if (_root.enemypower < 50) { this.gotoAndStop(2); } }
Instance of Symbol 602 MovieClip [enemylaser] in Frame 59
onClipEvent (load) { if (_root.enemypower < 50) { this.gotoAndPlay(10); } }
Instance of Symbol 575 MovieClip [enemylasertank] in Frame 59
onClipEvent (load) { if (_root.enemypower < 90) { this.gotoAndStop(2); } }
Instance of Symbol 575 MovieClip [enemylasertank] in Frame 59
onClipEvent (load) { if (_root.enemypower < 30) { this.gotoAndStop(2); } }
Instance of Symbol 609 MovieClip [enemymine] in Frame 59
onClipEvent (load) { if (_root.enemypower < 90) { this.gotoAndStop(34); } }
Instance of Symbol 609 MovieClip [enemymine] in Frame 59
onClipEvent (load) { if (_root.enemypower < 70) { this.gotoAndStop(34); } }
Instance of Symbol 645 MovieClip [enemyartillery] in Frame 59
onClipEvent (load) { if (_root.enemypower < 50) { this.gotoAndStop(2); } }
Instance of Symbol 645 MovieClip [enemyartillery] in Frame 59
onClipEvent (load) { if (_root.enemypower < 50) { this.gotoAndStop(2); } }
Instance of Symbol 1038 MovieClip "burton" in Frame 59
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1042 MovieClip "box" in Frame 59
onClipEvent (mouseDown) { x = _root.mouse._x - 30; y = _root.mouse._y - 30; if (((_root.sidebar.mapp.hitTest(x, y, true) && (_root.comcentre1.life > 0)) && (_root.comcentre1.life != undefined)) && (_root.sidebar._visible)) { x1s = x - x1; y1s = y - y1; x2s = _root.box6._x - x1; y2s = _root.box6._y - y1; _root.box6._x = x; _root.box6._y = y; x1s = x1s / constantx; y1s = y1s / constanty; x2s = x2s / constantx; y2s = y2s / constanty; _root.back._x = _root.back._x - (x1s - x2s); _root.back._y = _root.back._y - (y1s - y2s); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - (x1s - x2s); _root[current]._y = _root[current]._y - (y1s - y2s); i--; } } if ((!_root.sidebar.hitTest(x, y, false)) || (!_root.sidebar._visible)) { if (_root.selectedarray.arrayfind("warfactory1")) { _root.rallypoint._x = _root.mouse._x; _root.rallypoint._y = _root.mouse._y; } hits = false; this._x = _root._xmouse; this._y = _root._ymouse; i = _root.friendlylist.length - 1; while (i > -1) { current = _root.friendlylist[i]; if (_root[current].hitTest(this) && (current != "servicedepot1")) { hits = true; break; } i--; } origx = _root.mouse._x; origy = _root.mouse._y; this._visible = true; array = _root.formation; _root.formation = undefined; if (!hits) { i = _root.selectedarray.length - 1; while (i > -1) { current = _root.selectedarray[i]; if (((!_root[current].enemy) && (_root[current].speed != undefined)) && (!(_root[current].ally === true))) { _root[current].turret._rotation = _root[current].dummy._rotation; c = _root.enemyarray.length - 1; while (c > -1) { current2 = _root.enemyarray[c]; if (_root.mouse.hitTest(_root[current2])) { _root[current].targetobj = current2; _root[current].attack = true; _root[current].dummy.obstacle = false; _root[current].dummy.flag2 = undefined; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root["flag" + current]._x = _root.boxns._x; _root["flag" + current]._y = _root.boxns._y; _root[current].locx = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root[current].locy = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root.objarray.push("flag" + current); _root[current].walking = true; _root.n++; hit = true; break; } c--; } if (!hit) { origx = _root.mouse._x + _root[array + "x"][i]; origy = _root.mouse._y + _root[array + "y"][i]; if (isNaN(origx)) { origx = _root.mouse._x; } if (isNaN(origy)) { origy = _root.mouse._y; } current = _root.selectedarray[i]; _root[current].destx = origx; _root[current].desty = origy; _root[current].attack = false; _root[current].locx = undefined; _root[current].locy = undefined; _root[current].walking = true; _root[current].dummy.obstacle = false; _root[current].dummy.flag2 = undefined; _root["flag" + current].removeMovieClip(); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag", "flag" + current, _root.n); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } } if (Key.isDown(17)) { _root[current].targetobj = "flag" + current; _root[current].attack = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } hit = false; i--; } } } } onClipEvent (mouseUp) { x = _root.mouse._x; y = _root.mouse._y; _root.mouse.gotoAndStop(2); if ((!_root.sidebar.hitTest(x, y, true)) || (!_root.sidebar._visible)) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (_root[current].hitTest(this) && (!_root.selectedarray.arrayfind(current))) { _root[current].selector._visible = true; _root[current].selected1 = true; _root.selectedarray.push(current); } i--; } } origx = undefined; origy = undefined; this._visible = false; _root.sidebar.calccost(); } onClipEvent (enterFrame) { if (_root.mouse.hitTest(_root.sidebar)) { _root.sidebar._alpha = 100; } else { _root.sidebar._alpha = 30; } _root.timer++; if (_root.timer == 7000) { for (var name in _root) { if (typeof(_root[name]) == "movieclip") { if ((_root[name].fulllife != undefined) && ((_root[name].life == undefined) || (_root[name].life <= 0))) { _root[name].removeMovieClip(); } } } i = _root.friendlylist.length - 1; while (i > -1) { currents = _root.friendlylist[i]; if ((_root.friendlylist.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.friendlylist.splice(i, 1); } i--; } i = _root.enemyarray.length - 1; while (i > -1) { currents = _root.enemyarray[i]; if ((_root.enemyarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.enemyarray.splice(i, 1); } i--; } i = _root.objarray.length - 1; while (i > -1) { currents = _root.objarray[i]; if ((_root.objarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.objarray.splice(i, 1); } i--; } i = _root.unitsarray.length - 1; while (i > -1) { currents = _root.unitsarray[i]; if (((_root.unitsarray.countduplicate(currents) > 1) || (_root[currents].life == undefined)) || (_root[currents + "symbols"]._x == undefined)) { _root.unitsarray.splice(i, 1); } i--; } i = _root.shellarray.length - 1; while (i > -1) { currents = _root.shellarray[i]; if (_root.shellarray.countduplicate(currents) > 1) { _root.shellarray.splice(i, 1); } i--; } _root.timer = 0; } if (Key.isDown(32)) { _root.mouse.gotoAndStop(1); _root.selectedarray = []; i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; _root[current].selector._visible = false; _root[current].selected1 = false; _root.sidebar.calccost(); i--; } } if (this._visible) { a = _root._xmouse - origx; b = _root._ymouse - origy; this._width = Math.abs(a); this._height = Math.abs(b); if (a < 0) { this._xscale = this._xscale * -1; } if (b < 0) { this._yscale = this._yscale * -1; } } }
Frame 60
_root.map6array = []; _root.attackarray = []; movetozero(); i = _root.friendlylist.length - 1; while (i > -1) { current = _root.friendlylist[i]; if (_root[current].fulllife != undefined) { _root[current + "obj"] = {}; _root[current + "obj"].unittype = _root[current].unittype; _root[current + "obj"].unit = current + "map6"; _root.map6array.push(current); if (_root[current].auto._x != undefined) { _root[current + "obj"].x = _root[current]._x; _root[current + "obj"].y = _root[current]._y; _root[current + "obj"].fulllife = _root[current].fulllife; if (_root[current].damage != undefined) { _root[current + "obj"].damage = _root[current].damage; _root[current + "obj"].range = _root[current].range; _root[current + "obj"].firerate = _root[current].firerate; _root[current + "obj"].shellspd = _root[current].shellspd; } } if (_root[current].auto._x == undefined) { _root[current + "obj"].damage = _root[current].damage; _root[current + "obj"].range = _root[current].range; _root[current + "obj"].firerate = _root[current].firerate; _root[current + "obj"].speed = _root[current].speed; _root[current + "obj"].fulllife = _root[current].fulllife; _root[current + "obj"].shellspd = _root[current].shellspd; _root[current + "obj"].laser = _root[current].laser; _root[current + "obj"].gatling = _root[current].gatling; _root[current + "obj"].crush = _root[current].crush; _root[current + "obj"].missile = _root[current].missile; _root[current + "obj"].auto = _root[current].auto; _root[current + "obj"].nuke = _root[current].nuke; _root[current + "obj"].emp = _root[current].emp; _root[current + "obj"].shell2 = _root[current].shell2; _root[current + "obj"].accurate = _root[current].accurate; _root[current + "obj"].miss = _root[current].miss; _root[current + "obj"].seeker = _root[current].seeker; _root[current + "obj"].blast = _root[current].blast; _root[current + "obj"].hitonly = _root[current].hitonly; } } i--; } _root.box6.removeMovieClip(); for (var name in _root) { if (typeof(_root[name]) == "movieclip") { if (_root[name]._visible) { _root[name].removeMovieClip(); } } } _root.enemypower = _root.enemypower - 80; _root.alliedunits = undefined; _root.ownmap6 = true; if (_root.ownmap7 == undefined) { _root.ownmap7 = false; _root.ownmap8 = false; _root.ownmap9 = false; } _root.missions++; stop();
Instance of Symbol 1099 MovieClip "ai" in Frame 60
onClipEvent (mouseUp) { _root.gotoAndStop("mapbar"); }
Frame 61
for (var name in _root) { if (typeof(_root[name]) == "movieclip") { _root[name].removeMovieClip(); } } _root.attackarray = []; _root.ownmap6 = false; _root.lasertankfactlity = undefined; stop();
Frame 62
_root.attachMovie("sidebar", "sidebar", 1000000); _root.attachMovie("mo", "mouse", 1000001); _root.sidebar._x = 132.6; _root.sidebar._y = 615; _root.sidebar._xscale = -58.5; _root.sidebar._yscale = 49.14; _root.sidebar._rotation = 90; _global.orix = _root.back._x; _global.oriy = _root.back._y; _root.attachMovie("box5", "box6", 10000004); _root.box6._x = x1; _root.box6._y = y1; _root.box6._height = (_root.box5._height / _root.back._height) * (y4 - y1); _root.box6._width = (_root.box5._width / _root.back._width) * (x4 - x1); _global.constanty = (y4 - y1) / _root.back._height; _global.constantx = (x4 - x1) / _root.back._width; _global.constantsy = (y4 - y1) / _root.back._height; _global.constantsx = (x4 - x1) / _root.back._width; play(); _root.objarray = []; _root.num = 0; _root.sparsex = [0, -50, 150, 100, -100, 150, 250, 200, -250, 300, 300, 350, -350, 400, -410, 500, -550]; _root.sparsey = [0, -50, 80, -180, 250, -50, 140, -150, 60, 150, -70, -220, -350, 350, -350, 375, -375]; _root.linex = [0, 0, 50, 50, 100, 100, 150, 150, 200, 200, 350, 350, 400, 400, 450, 450, 500, 500, 550, 550]; _root.liney = [0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50]; _root.unitsarray = []; _root.flagsarray = []; _root.selectedarray = []; _root.enemyarray = []; _root.shroudarray = []; _root.friendlylist = []; _root.shellarray = []; _root.enemyminearray = []; _root.minearray = []; _root.enemyminearray = []; _root.enemymoney = 50000; _root.warfactory = 0; _root.enemywarfactory = 0; _global.dozers = []; _root.dozerarray = []; _root.enemydozerarray = []; _root.structurearray = []; _root.enemyservicedepot = 0; _root.enemystructurearray = []; _root.comcentre = 0; _root.enemycomcentre = 0; _root.oilarray = []; _root.enemyoiltruckarray = []; _root.oiltruckarray = []; _root.refinery = 0; _root.enemyrefinery = 0; _root.techcentre = 0; _root.enemytechcentre = 0; _root.enemyweaponsilo = 0; _root.turretarray = []; _root.enemyturretarray = [];
Instance of Symbol 1075 MovieClip "back" in Frame 62
onClipEvent (load) { this._x = 0; this._y = 0; }
Frame 63
_root.attachMovie("missiondefend4", "tutorial", 1000900); _root.tutorial._x = 46.8; _root.tutorial._y = 10.9; if (!(_root.ownmap4 === true)) { var i = (buildary.length - 1); while (i > -1) { _root.sidebar.build[buildary[i]].buildrate = _root.sidebar.build[buildary[i]].buildrate * 0.5; i--; } var i = (buildray.length - 1); while (i > -1) { _root.sidebar.build[buildray[i]].rates = _root.sidebar.build[buildray[i]].rates * 1.5; i--; } } if (_root.ownmap9 === false) { _root.sidebar.enemynuketimer.gotoAndPlay(2); } if (_root.ownmap9 === true) { _root.sidebar.nuketimer.gotoAndPlay(2); } Mouse.hide(); movetozero(); _root.nooiltruck = true; loadefunits("map6"); _root.sidebar.mapp.gotoAndStop(8); movetoloc(_root.lock2._x, _root.lock2._y); _root.waypoint100._x = _root.sensor1._x; _root.waypoint100._y = _root.sensor1._y; _root.waypoint101._x = _root.sensor1._x; _root.waypoint101._y = _root.sensor1._y; stop(); var no = _root.enemyattack; while (no > 0) { var p = 0; a = Math.random(); if ((a > 0) && (a < 0.2)) { unittype = "enemylight"; } if ((a > 0.2) && (a < 0.3)) { unittype = "enemyrocket"; } if ((a > 0.3) && (a < 0.4)) { unittype = "enemyheavy"; } if ((a > 0.4) && (a < 0.6)) { unittype = "enemyhumvee"; } if ((a > 0.6) && (a < 1)) { unittype = "enemyartillery"; } if (Math.random() < 0.8) { _root.attachMovie("enemydozer", "enemydozer" + _root.n, _root.n); _root["enemydozer" + _root.n]._x = _root.flag1._x; _root["enemydozer" + _root.n]._y = _root.flag1._y; _root["enemydozer" + _root.n]._rotation = 0; _root.n++; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.waypoint1._x + _root.linex[p]; _root[unittype + _root.n]._y = _root.waypoint1._y + _root.liney[p]; if (p >= _root.linex.length) { p = 0; } _root[unittype + _root.n]._rotation = 0; _root.array1.push(unittype + _root.n); unittype = undefined; _root.n++; no--; } stop();
Instance of Symbol 1022 MovieClip in Frame 63
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(38))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y + 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 63
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(37))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x + 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 63
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(39))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x - 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - 20; i--; } } } }
Instance of Symbol 1022 MovieClip in Frame 63
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(40))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y - 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y - 20; i--; } } } }
Instance of Symbol 1075 MovieClip "back" in Frame 63
onClipEvent (load) { this._x = 0; this._y = 0; }
Instance of Symbol 1036 MovieClip "rig10" in Frame 63
onClipEvent (load) { oilfield = "oil5"; _root.objarray.push(this._name); }
Instance of Symbol 1029 MovieClip "oil4" in Frame 63
onClipEvent (load) { this.oilspill._xscale = 100; this.oilspill._yscale = 100; }
Instance of Symbol 1009 MovieClip in Frame 63
onClipEvent (load) { ranges = 1; }
Instance of Symbol 1009 MovieClip in Frame 63
onClipEvent (enterFrame) { po++; if (po == _root.shroudarray.length) { po = 0; } current = _root.shroudarray[po]; var revealed = false; i = _root.friendlylist.length - 1; while (i > -1) { current2 = _root.friendlylist[i]; if (_root[current2].unittype != "construction") { if (_root[current].hitTest(_root[current2])) { revealed = true; break; } } i--; } if (revealed) { _root[current]._visible = false; } if ((!revealed) && (_root.fog)) { _root[current]._visible = true; } } onClipEvent (load) { po = 0; } onClipEvent (load) { po = 0; }
Instance of Symbol 1099 MovieClip "ai" in Frame 63
onClipEvent (load) { timer = 0; _root.array1 = []; _root.array2 = []; build = true; rounds = 0; _root.enemyoiltrucks = 0; } onClipEvent (keyDown) { if ((_root.enemyattack <= 0) && (Key.isDown(13))) { _root.gotoAndStop("victory6d"); } } onClipEvent (enterFrame) { if (!(_root.ownmap6 === true)) { _root.sidebar.build.lasertank.gotoAndStop(1); } ppp = _root.enemyarray.toString(); Mouse.hide(); timer++; if (timer == 500) { if (_root.enemyattack <= 0) { _root.enemypower = _root.enemypower + (_root.difficulty * 5); } } if (_root.enemyattack > 0) { if (timer == 500) { if (_root.ownmap8 === false) { p = 5; while (p > 0) { a = Math.random(); if ((a > 0) && (a < 0.2)) { unittype = "enemylight"; } if ((a > 0.2) && (a < 0.4)) { unittype = "enemyrocket"; } if ((a > 0.4) && (a < 0.6)) { unittype = "enemyheavy"; } if ((a > 0.6) && (a < 0.8)) { unittype = "enemyhumvee"; } if ((a > 0.8) && (a < 1)) { unittype = "enemyartillery"; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.flag1._x; _root[unittype + _root.n]._y = _root.flag1._y; _root[unittype + _root.n]._rotation = 0; _root.array2.push(unittype + _root.n); unittype = undefined; _root.n++; p--; } } if (_root.ownmap3 === true) { var p = 1; while (p > 0) { a = Math.random(); if ((a > 0) && (a < 0.2)) { unittype = "light"; } if ((a > 0.2) && (a < 0.4)) { unittype = "rocket"; } if ((a > 0.4) && (a < 0.6)) { unittype = "heavy"; } if ((a > 0.6) && (a < 0.8)) { unittype = "humvee"; } if ((a > 0.8) && (a < 1)) { unittype = "artillery"; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.reinforcement._x; _root[unittype + _root.n]._y = _root.reinforcement._y; _root[unittype + _root.n]._rotation = 0; _root[unittype + _root.n].ally = true; unittype = undefined; _root.n++; p--; } } _root.enemypower = _root.enemypower + (_root.difficulty * 5); timer = 0; } if (timer == 250) { if (_root.ownmap3 === true) { var p = 1; while (p > 0) { a = Math.random(); if ((a > 0) && (a < 0.2)) { unittype = "light"; } if ((a > 0.2) && (a < 0.4)) { unittype = "rocket"; } if ((a > 0.4) && (a < 0.6)) { unittype = "heavy"; } if ((a > 0.6) && (a < 0.8)) { unittype = "humvee"; } if ((a > 0.8) && (a < 1)) { unittype = "artillery"; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.reinforcement._x; _root[unittype + _root.n]._y = _root.reinforcement._y; _root[unittype + _root.n]._rotation = 0; _root[unittype + _root.n].ally = true; unittype = undefined; _root.n++; p--; } } if (_root.ownmap7 === false) { _root.enemymoney = _root.enemymoney + 10000; } if (_root.ownmap7 === true) { _root.money = _root.money + 10000; } if ((_root.enemycomcentre < 1) && (_root.enemymoney >= 5000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemycomcentre", _root.waypoint3._x, _root.waypoint3._y, 5000, 0.5); _root[current].build = true; break; } i--; } } if ((_root.enemyservicedepot < 1) && (_root.enemymoney >= 35000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyservicedepot", _root.waypoint47._x, _root.waypoint47._y, 1500, 1); _root[current].build = true; break; } i--; } } if ((_root.enemyrefinery < 1) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyrefinery", _root.waypoint2._x, _root.waypoint2._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemywarfactory == 0) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemywarfactory", _root.waypoint1._x, _root.waypoint1._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemytechcentre < 1) && (_root.enemymoney >= 40000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemytechcentre", _root.waypoint16._x, _root.waypoint16._y, 1500, 0.7); _root[current].build = true; break; } i--; } } if (((_root.enemytechcentre1._x != undefined) && (_root.enemyweaponsilo == 0)) && (_root.enemypower > 100)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyweaponsilo", _root.waypoint160._x, _root.waypoint160._y, 10000, 0.2); _root[current].build = true; break; } i--; } } i = 0; while (i < _root.array1.length) { current = _root.array1[i]; if (_root[current].life == undefined) { _root.array1.splice(i, 1); } if (i < (_root.array1.length - 10)) { _root.array2.push(current); _root.array1.splice(i, 1); if (Math.random() > 0.5) { _root[current].avoid = true; } if (Math.random() > 0.8) { _root[current].aggressive = false; } } i++; } } if ((Math.round(timer / 30) * 30) == timer) { if (_root.enemyarray.length <= 0) { _root.gotoAndStop("victory6d"); } if (_root.friendlylist.length <= 0) { _root.gotoAndStop("defeat6d"); } n = _root.enemystructurearray.length - 1; while (n > -1) { current2 = _root.enemystructurearray[n]; i = dozers.length - 1; while (i > -1) { current = dozers[i]; if (_root[current].build || (_root[current].walking)) { } else { dx = _root[current]._x - _root[current2]._x; dy = _root[current]._y - _root[current2]._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 1500) { ant = 0; if (((_root[current2].life < _root[current2].fulllife) && (_root[current2].percent == undefined)) && (_root[current2].auto._currentframe == 1)) { if (!_root[current].hitTest(_root[current2])) { _root[current].aigoto(_root[current2]._x, _root[current2]._y, false); } _root[current2].auto.play(); if (_root.ownmap5 === false) { h = array1.length - 1; while (h > -1) { currents = _root.array1[h]; if ((((_root[currents].natack == undefined) && (!_root[currents].walking)) && (!_root[currents].fireing)) && (ant < 5)) { ant++; _root[currents].aigoto(_root[current2]._x, _root[current2]._y, false); if (_root[current2].targetobj != undefined) { targetobj = _root[current2].targetobj; _root[currents].aiattack(targetobj); } } h--; } } } } break; } i--; } n--; } } timescale = 8000 / _root.enemypower; if (_root.ownmap4 === false) { timescale = timescale * 0.5; } if ((Math.round(timer / timescale) * timescale) == timer) { if (((dozers.length < 4) && (_root.enemycomcentre1.life > 0)) && (_root.enemymoney > 1000)) { _root.enemymoney = _root.enemymoney - 1000; _root.attachMovie("enemydozer", "enemydozer" + _root.n, _root.n); _root["enemydozer" + _root.n]._x = _root.enemycomcentre1._x; _root["enemydozer" + _root.n]._y = _root.enemycomcentre1._y; _root["enemydozer" + _root.n]._rotation = 0; _root.n++; } if ((_root.enemymoney > 40000) && (!build)) { build = true; rounds++; } if ((_root.enemymoney < 15000) && (build)) { build = false; } i = 0; while (i < _root.enemyarray.length) { current = _root.enemyarray[i]; if (_root[current].life == undefined) { _root.array2.splice(i, 1); } else if (((((!_root[current].fireing) && (!(_root[current].walking && (_root[current].attack === true)))) && (_root[current].getDepth() > 0)) && (_root[current].damage != undefined)) && (_root[current].speed != undefined)) { lo = Math.floor(Math.random() * (_root.friendlylist.length - 1)); unit = _root.friendlylist[lo]; if ((_root.techcentre1.life > 0) && (Math.random() > 0.5)) { unit = "techcentre1"; } _root[current].aiattack(unit); } i++; } arrayone = _root.array1.toString(); if (_root.enemywarfactory1.life > 0) { if ((_root.enemyoiltrucks < 4) && (_root.enemymoney >= 2000)) { _root.enemymoney = _root.enemymoney - 1500; _root.attachMovie("enemyoiltruck", "enemyoiltruck" + _root.n, _root.n); _root["enemyoiltruck" + _root.n]._x = _root.enemywarfactory1._x; _root["enemyoiltruck" + _root.n]._y = _root.enemywarfactory1._y; _root["enemyoiltruck" + _root.n]._rotation = 0; _root.n++; } if (build || ((_root.array1.length < 20) && (_root.enemymoney > 0))) { a = Math.random(); if ((a > 0) && (a < 0.2)) { unittype = "enemylight"; _root.enemymoney = _root.enemymoney - 1000; } if ((a > 0.2) && (a < 0.4)) { unittype = "enemyrocket"; _root.enemymoney = _root.enemymoney - 1500; } if ((a > 0.4) && (a < 0.6)) { unittype = "enemyheavy"; _root.enemymoney = _root.enemymoney - 2500; } if ((a > 0.6) && (a < 0.8)) { unittype = "enemyhumvee"; _root.enemymoney = _root.enemymoney - 500; } if ((a > 0.8) && (a < 1)) { unittype = "enemyartillery"; _root.enemymoney = _root.enemymoney - 2000; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.enemywarfactory1._x; _root[unittype + _root.n]._y = _root.enemywarfactory1._y + 100; _root[unittype + _root.n]._rotation = 0; _root.array1.push(unittype + _root.n); unittype = undefined; _root.n++; if (((_root.enemylasertank1._x == undefined) && (_root.enemytechcentre1._x != undefined)) && (_root.ownmap6 === false)) { if (Math.random() > 0.9) { _root.attachMovie("enemylasertank", "enemylasertank1", _root.n); _root.enemylasertank1._x = _root.enemywarfactory1._x; _root.enemylasertank1._y = _root.enemywarfactory1._y + 100; _root.enemylasertank1._rotation = 0; _root.enemymoney = _root.enemymoney - 7500; _root.array1.push("enemylasertank1"); } } } } } } }
Instance of Symbol 1029 MovieClip "oil3" in Frame 63
onClipEvent (load) { this.oilspill._xscale = 100; this.oilspill._yscale = 100; }
Instance of Symbol 1036 MovieClip "rig8" in Frame 63
onClipEvent (load) { oilfield = "oil5"; _root.objarray.push(this._name); }
Instance of Symbol 1038 MovieClip "burton" in Frame 63
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1042 MovieClip "box" in Frame 63
onClipEvent (mouseDown) { x = _root.mouse._x - 30; y = _root.mouse._y - 30; if ((((_root.sidebar.mapp.hitTest(x, y, true) && (_root.comcentre1.life > 0)) && (_root.comcentre1.life != undefined)) && (_root.sidebar._visible)) && (_root.scrolla)) { x1s = x - x1; y1s = y - y1; x2s = _root.box6._x - x1; y2s = _root.box6._y - y1; _root.box6._x = x; _root.box6._y = y; x1s = x1s / constantx; y1s = y1s / constanty; x2s = x2s / constantx; y2s = y2s / constanty; _root.back._x = _root.back._x - (x1s - x2s); _root.back._y = _root.back._y - (y1s - y2s); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - (x1s - x2s); _root[current]._y = _root[current]._y - (y1s - y2s); i--; } } if ((!_root.sidebar.hitTest(x, y, false)) || (!_root.sidebar._visible)) { if (_root.selectedarray.arrayfind("warfactory1")) { _root.rallypoint._x = _root.mouse._x; _root.rallypoint._y = _root.mouse._y; } hits = false; this._x = _root._xmouse; this._y = _root._ymouse; i = _root.friendlylist.length - 1; while (i > -1) { current = _root.friendlylist[i]; if (_root[current].hitTest(this) && (current != "servicedepot1")) { hits = true; break; } i--; } origx = _root.mouse._x; origy = _root.mouse._y; this._visible = true; array = _root.formation; _root.formation = undefined; if (!hits) { i = _root.selectedarray.length - 1; while (i > -1) { current = _root.selectedarray[i]; if (((!_root[current].enemy) && (!(_root[current].ally === true))) && (_root[current].speed != undefined)) { _root[current].turret._rotation = _root[current].dummy._rotation; c = _root.enemyarray.length - 1; while (c > -1) { current2 = _root.enemyarray[c]; if (_root.mouse.hitTest(_root[current2])) { _root[current].targetobj = current2; _root[current].attack = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root["flag" + current]._x = _root.boxns._x; _root["flag" + current]._y = _root.boxns._y; _root[current].locx = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root[current].locy = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root.objarray.push("flag" + current); _root[current].walking = true; _root.n++; hit = true; break; } c--; } if (!hit) { origx = _root.mouse._x + _root[array + "x"][i]; origy = _root.mouse._y + _root[array + "y"][i]; if (isNaN(origx)) { origx = _root.mouse._x; } if (isNaN(origy)) { origy = _root.mouse._y; } current = _root.selectedarray[i]; _root[current].destx = origx; _root[current].desty = origy; _root[current].attack = false; _root[current].locx = undefined; _root[current].locy = undefined; _root[current].walking = true; _root["flag" + current].removeMovieClip(); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag", "flag" + current, _root.n); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } } if (Key.isDown(17)) { _root[current].targetobj = "flag" + current; _root[current].attack = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } hit = false; i--; } } } } onClipEvent (mouseUp) { x = _root.mouse._x; y = _root.mouse._y; _root.mouse.gotoAndStop(2); if ((!_root.sidebar.hitTest(x, y, true)) || (!_root.sidebar._visible)) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (_root[current].hitTest(this) && (!_root.selectedarray.arrayfind(current))) { _root[current].selector._visible = true; _root[current].selected1 = true; _root.selectedarray.push(current); } i--; } } origx = undefined; origy = undefined; this._visible = false; _root.sidebar.calccost(); } onClipEvent (enterFrame) { if (_root.mouse.hitTest(_root.sidebar)) { _root.sidebar._alpha = 100; } else { _root.sidebar._alpha = 30; } _root.timer++; if (_root.timer == 7000) { for (var name in _root) { if (typeof(_root[name]) == "movieclip") { if ((_root[name].fulllife != undefined) && ((_root[name].life == undefined) || (_root[name].life <= 0))) { _root[name].removeMovieClip(); } } } i = _root.friendlylist.length - 1; while (i > -1) { currents = _root.friendlylist[i]; if ((_root.friendlylist.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.friendlylist.splice(i, 1); } i--; } i = _root.enemyarray.length - 1; while (i > -1) { currents = _root.enemyarray[i]; if ((_root.enemyarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.enemyarray.splice(i, 1); } i--; } i = _root.objarray.length - 1; while (i > -1) { currents = _root.objarray[i]; if ((_root.objarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.objarray.splice(i, 1); } i--; } i = _root.unitsarray.length - 1; while (i > -1) { currents = _root.unitsarray[i]; if (((_root.unitsarray.countduplicate(currents) > 1) || (_root[currents].life == undefined)) || (_root[currents + "symbols"]._x == undefined)) { _root.unitsarray.splice(i, 1); } i--; } i = _root.shellarray.length - 1; while (i > -1) { currents = _root.shellarray[i]; if (_root.shellarray.countduplicate(currents) > 1) { _root.shellarray.splice(i, 1); } i--; } _root.timer = 0; } if (Key.isDown(32)) { _root.mouse.gotoAndStop(1); _root.selectedarray = []; i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; _root[current].selector._visible = false; _root[current].selected1 = false; _root.sidebar.calccost(); i--; } } if (this._visible) { a = _root._xmouse - origx; b = _root._ymouse - origy; this._width = Math.abs(a); this._height = Math.abs(b); if (a < 0) { this._xscale = this._xscale * -1; } if (b < 0) { this._yscale = this._yscale * -1; } } }
Frame 64
_root.map6array = []; movetozero(); saveunits("map6"); for (var name in _root) { if (typeof(_root[name]) == "movieclip") { _root[name].removeMovieClip(); } } _root.enemyattack = 0; _root.box6.removeMovieClip(); _root.ownmap6 = true; _root.missions++; stop();
Instance of Symbol 1099 MovieClip "ai" in Frame 64
onClipEvent (mouseUp) { _root.gotoAndStop("mapbar"); }
Frame 65
for (var name in _root) { if (typeof(_root[name]) == "movieclip") { _root[name].removeMovieClip(); } } _root.map6array = []; _root.ownmap6 = false; stop();
Frame 66
_root.mapbar.removeMovieClip(); _root.attachMovie("sidebar", "sidebar", 1000000); _root.attachMovie("mo", "mouse", 1000001); _root.sidebar._x = 132.6; _root.sidebar._y = 615; _root.sidebar._xscale = -58.5; _root.sidebar._yscale = 49.14; _root.sidebar._rotation = 90; _global.orix = _root.back._x; _global.oriy = _root.back._y; _root.attachMovie("box5", "box6", 10000004); _root.box6._x = x1; _root.box6._y = y1; _root.box6._height = (_root.box5._height / _root.back._height) * (y4 - y1); _root.box6._width = (_root.box5._width / _root.back._width) * (x4 - x1); _global.constanty = (y4 - y1) / _root.back._height; _global.constantx = (x4 - x1) / _root.back._width; _global.constantsy = (y4 - y1) / _root.back._height; _global.constantsx = (x4 - x1) / _root.back._width; play(); _root.objarray = []; _root.num = 0; _root.sparsex = [0, -50, 150, 100, -100, 150, 250, 200, -250, 300, 300, 350, -350, 400, -410, 500, -550]; _root.sparsey = [0, -50, 80, -180, 250, -50, 140, -150, 60, 150, -70, -220, -350, 350, -350, 375, -375]; _root.linex = [0, 0, 50, 50, 100, 100, 150, 150, 200, 200, 350, 350, 400, 400, 450, 450, 500, 500, 550, 550]; _root.liney = [0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50]; _root.unitsarray = []; _root.flagsarray = []; _root.selectedarray = []; _root.enemyarray = []; _root.shroudarray = []; _root.friendlylist = []; _root.shellarray = []; _root.enemyminearray = []; _root.obsarray = []; _root.minearray = []; _root.enemyminearray = []; _root.enemymoney = 30000; _root.warfactory = 0; _root.enemywarfactory = 0; _global.dozers = []; _root.dozerarray = []; _root.enemydozerarray = []; _root.structurearray = []; _root.enemyservicedepot = 0; _root.enemystructurearray = []; _root.comcentre = 0; _root.enemycomcentre = 0; _root.oilarray = []; _root.enemyoiltruckarray = []; _root.oiltruckarray = []; _root.refinery = 0; _root.enemyrefinery = 0; _root.techcentre = 0; _root.enemytechcentre = 0; _root.enemyweaponsilo = 0; _root.turretarray = []; _root.enemyturretarray = [];
Instance of Symbol 1156 MovieClip "back" in Frame 66
onClipEvent (load) { this._x = 0; this._y = 0; }
Frame 67
_root.attachMovie("mission7", "tutorial", 1000900); _root.tutorial._x = 46.8; _root.tutorial._y = 10.9; if (!(_root.ownmap4 === true)) { var i = (buildary.length - 1); while (i > -1) { _root.sidebar.build[buildary[i]].buildrate = _root.sidebar.build[buildary[i]].buildrate * 0.5; i--; } var i = (buildray.length - 1); while (i > -1) { _root.sidebar.build[buildray[i]].rates = _root.sidebar.build[buildray[i]].rates * 1.5; i--; } } if (_root.ownmap9 === false) { _root.sidebar.enemynuketimer.gotoAndPlay(2); } if (_root.ownmap9 === true) { _root.sidebar.nuketimer.gotoAndPlay(2); } if (_root.ownmap5 === true) { while (_root.shroudarray.length > 0) { current = _root.shroudarray[0]; _root[current]._visible = true; _root.shroudarray.splice(0, 1); } } _root.oilderricks = 4; _root.back._x = 0; _root.back._y = 0; Mouse.hide(); _root.sidebar.mapp.gotoAndStop(9); loadattunits(); movetoloc(_root.lock2._x, _root.lock2._y); _root.waypoint100._x = _root.sensor1._x; _root.waypoint100._y = _root.sensor1._y; _root.waypoint101._x = _root.sensor1._x; _root.waypoint101._y = _root.sensor1._y; stop(); stop();
Instance of Symbol 1022 MovieClip in Frame 67
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(38))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y + 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 67
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(37))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x + 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 67
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(39))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x - 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - 20; i--; } } } }
Instance of Symbol 1022 MovieClip in Frame 67
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(40))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y - 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y - 20; i--; } } } }
Instance of Symbol 1099 MovieClip "ai" in Frame 67
onClipEvent (load) { timer = 0; _root.array2 = []; build = true; rounds = 0; _root.enemyoiltrucks = 0; } onClipEvent (enterFrame) { if (!(_root.ownmap6 === true)) { _root.sidebar.build.lasertank.gotoAndStop(1); } ppp = _root.enemyarray.toString(); Mouse.hide(); timer++; if (timer == 500) { i = _root.enemyarray.length - 1; while (i > -1) { current = _root.enemyarray[i]; if ((_root[current].unittype == "artillery") && (_root[current].turret._currentframe == 1)) { _root[current].deploy(); } i--; } if (_root.ownmap8 === true) { var p = 2; while (p > 0) { a = Math.random(); if ((a > 0) && (a < 0.1)) { unittype = "light"; } if ((a > 0.1) && (a < 0.4)) { unittype = "rocket"; } if ((a > 0.4) && (a < 0.5)) { unittype = "heavy"; } if ((a > 0.5) && (a < 0.6)) { unittype = "humvee"; } if ((a > 0.6) && (a < 1)) { unittype = "artillery"; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.reinforcement._x; _root[unittype + _root.n]._y = _root.reinforcement._y; _root[unittype + _root.n]._rotation = 0; unittype = undefined; _root.n++; p--; } } if (_root.ownmap8 === false) { p = 2; while (p > 0) { a = Math.random(); if ((a > 0) && (a < 0.2)) { unittype = "enemylight"; } if ((a > 0.2) && (a < 0.4)) { unittype = "enemyrocket"; } if ((a > 0.4) && (a < 0.6)) { unittype = "enemyheavy"; } if ((a > 0.6) && (a < 0.8)) { unittype = "enemyhumvee"; } if ((a > 0.8) && (a < 1)) { unittype = "enemyartillery"; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.flag1._x; _root[unittype + _root.n]._y = _root.flag1._y; _root[unittype + _root.n]._rotation = 0; _root.array2.push(unittype + _root.n); unittype = undefined; _root.n++; p--; } } _root.enemypower = _root.enemypower + (_root.difficulty * 5); timer = 0; } if (timer == 250) { if (_root.ownmap7 === false) { _root.enemymoney = _root.enemymoney + 10000; } if (_root.ownmap7 === true) { _root.money = _root.money + 10000; } if ((_root.enemycomcentre < 1) && (_root.enemymoney >= 5000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemycomcentre", _root.waypoint3._x, _root.waypoint3._y, 5000, 0.5); _root[current].build = true; break; } i--; } } if ((_root.enemyservicedepot < 1) && (_root.enemymoney >= 35000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyservicedepot", _root.waypoint47._x, _root.waypoint47._y, 1500, 1); _root[current].build = true; break; } i--; } } if ((_root.enemyrefinery < 1) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyrefinery", _root.waypoint2._x, _root.waypoint2._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemywarfactory == 0) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemywarfactory", _root.waypoint1._x, _root.waypoint1._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemytechcentre < 1) && (_root.enemymoney >= 40000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemytechcentre", _root.waypoint16._x, _root.waypoint16._y, 1500, 0.7); _root[current].build = true; break; } i--; } } i = 0; while (i < _root.array1.length) { current = _root.array1[i]; if (_root[current].life == undefined) { _root.array1.splice(i, 1); } if (i < (_root.array1.length - 5)) { _root.array2.push(current); _root.array1.splice(i, 1); if (Math.random() > 0.8) { _root[current].avoid = true; } if (Math.random() > 0.2) { _root[current].aggressive = false; } } i++; } } if ((Math.round(timer / 30) * 30) == timer) { if (_root.enemyarray.length == 0) { _root.gotoAndStop("victory7"); } if (_root.friendlylist.length <= 0) { _root.gotoAndStop("defeat7"); } n = _root.enemystructurearray.length - 1; while (n > -1) { current2 = _root.enemystructurearray[n]; i = dozers.length - 1; while (i > -1) { current = dozers[i]; if (_root[current].build || (_root[current].walking)) { } else { dx = _root[current]._x - _root[current2]._x; dy = _root[current]._y - _root[current2]._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 1500) { ant = 0; if (((_root[current2].life < _root[current2].fulllife) && (_root[current2].percent == undefined)) && (_root[current2].auto._currentframe == 1)) { if (!_root[current].hitTest(_root[current2])) { _root[current].aigoto(_root[current2]._x, _root[current2]._y, false); } _root[current2].auto.play(); h = array1.length - 1; while (h > -1) { currents = _root.array1[h]; if ((((_root[currents].natack == undefined) && (!_root[currents].walking)) && (!_root[currents].fireing)) && (ant < 5)) { ant++; _root[currents].aigoto(_root[current2]._x, _root[current2]._y, false); if (_root[current2].targetobj != undefined) { targetobj = _root[current2].targetobj; _root[currents].aiattack(targetobj); } } h--; } } } break; } i--; } n--; } } timescale = 8000 / _root.enemypower; if (_root.ownmap4 === false) { timescale = timescale * 0.5; } if ((Math.round(timer / timescale) * timescale) == timer) { if (((dozers.length < 4) && (_root.enemycomcentre1.life > 0)) && (_root.enemymoney > 1000)) { _root.enemymoney = _root.enemymoney - 1000; _root.attachMovie("enemydozer", "enemydozer" + _root.n, _root.n); _root["enemydozer" + _root.n]._x = _root.enemycomcentre1._x; _root["enemydozer" + _root.n]._y = _root.enemycomcentre1._y; _root["enemydozer" + _root.n]._rotation = 0; _root.n++; } if ((_root.enemymoney > 20000) && (!build)) { build = true; rounds++; } if ((_root.enemymoney < 15000) && (build)) { build = false; } i = 0; while (i < _root.enemyarray.length) { current = _root.enemyarray[i]; if (_root[current].life == undefined) { _root.array2.splice(i, 1); } else if (((((!_root[current].fireing) && (!(_root[current].walking && (_root[current].attack === true)))) && (_root[current].getDepth() > 0)) && (_root[current].damage != undefined)) && (_root[current].speed != undefined)) { lo = Math.floor(Math.random() * (_root.friendlylist.length - 1)); unit = _root.friendlylist[lo]; _root[current].aiattack(unit); } i++; } arrayone = _root.array1.toString(); if (_root.enemywarfactory1.life > 0) { if ((_root.enemyoiltrucks < 2) && (_root.enemymoney >= 2000)) { _root.enemymoney = _root.enemymoney - 1500; _root.attachMovie("enemyoiltruck", "enemyoiltruck" + _root.n, _root.n); _root["enemyoiltruck" + _root.n]._x = _root.enemywarfactory1._x; _root["enemyoiltruck" + _root.n]._y = _root.enemywarfactory1._y; _root["enemyoiltruck" + _root.n]._rotation = 0; _root.n++; } if (build && (_root.enemymoney > 0)) { a = Math.random(); if ((a > 0) && (a < 0.1)) { unittype = "enemylight"; _root.enemymoney = _root.enemymoney - 1000; } if ((a > 0.1) && (a < 0.4)) { unittype = "enemyrocket"; _root.enemymoney = _root.enemymoney - 1500; } if ((a > 0.4) && (a < 0.5)) { unittype = "enemyheavy"; _root.enemymoney = _root.enemymoney - 2500; } if ((a > 0.5) && (a < 0.6)) { unittype = "enemyhumvee"; _root.enemymoney = _root.enemymoney - 500; } if ((a > 0.6) && (a < 1)) { unittype = "enemyartillery"; _root.enemymoney = _root.enemymoney - 2000; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.enemywarfactory1._x; _root[unittype + _root.n]._y = _root.enemywarfactory1._y + 100; _root[unittype + _root.n]._rotation = 0; _root.array1.push(unittype + _root.n); unittype = undefined; _root.n++; if (((_root.enemylasertank1._x == undefined) && (_root.enemytechcentre1._x != undefined)) && (_root.ownmap6 === false)) { if (Math.random() > 0.9) { _root.attachMovie("enemylasertank", "enemylasertank1", _root.n); _root.enemylasertank1._x = _root.enemywarfactory1._x; _root.enemylasertank1._y = _root.enemywarfactory1._y + 100; _root.enemylasertank1._rotation = 0; _root.enemymoney = _root.enemymoney - 7500; _root.array1.push("enemylasertank1"); } } } } } }
Instance of Symbol 617 MovieClip [enemymultiple] in Frame 67
onClipEvent (load) { if (_root.enemypower < 50) { gotoAndStop (34); } }
Instance of Symbol 582 MovieClip [enemyturret] in Frame 67
onClipEvent (load) { if (_root.enemypower < 60) { gotoAndPlay (33); } }
Instance of Symbol 602 MovieClip [enemylaser] in Frame 67
onClipEvent (load) { if (_root.enemypower < 50) { gotoAndStop (34); } }
Instance of Symbol 617 MovieClip [enemymultiple] in Frame 67
onClipEvent (load) { if (_root.enemypower < 80) { gotoAndPlay (33); } }
Instance of Symbol 596 MovieClip [enemytechcentre] "enemytechcentre1" in Frame 67
onClipEvent (load) { if (_root.enemypower < 70) { gotoAndPlay (31); } }
Instance of Symbol 645 MovieClip [enemyartillery] in Frame 67
onClipEvent (load) { if (_root.enemypower < 50) { this.gotoAndPlay(2); } }
Instance of Symbol 645 MovieClip [enemyartillery] in Frame 67
onClipEvent (load) { if (_root.enemypower < 90) { this.gotoAndPlay(2); } }
Instance of Symbol 645 MovieClip [enemyartillery] in Frame 67
onClipEvent (load) { if (_root.enemypower < 90) { this.gotoAndPlay(2); } }
Instance of Symbol 645 MovieClip [enemyartillery] in Frame 67
onClipEvent (load) { if (_root.enemypower < 70) { this.gotoAndPlay(2); } }
Instance of Symbol 645 MovieClip [enemyartillery] in Frame 67
onClipEvent (load) { if (_root.enemypower < 70) { this.gotoAndPlay(2); } }
Instance of Symbol 645 MovieClip [enemyartillery] in Frame 67
onClipEvent (load) { if (_root.enemypower < 50) { this.gotoAndPlay(2); } }
Instance of Symbol 609 MovieClip [enemymine] in Frame 67
onClipEvent (load) { if (_root.enemypower < 70) { this.gotoAndStop(34); } }
Instance of Symbol 609 MovieClip [enemymine] in Frame 67
onClipEvent (load) { if (_root.enemypower < 60) { this.gotoAndStop(34); } }
Instance of Symbol 609 MovieClip [enemymine] in Frame 67
onClipEvent (load) { if (_root.enemypower < 80) { this.gotoAndStop(34); } }
Instance of Symbol 1036 MovieClip "rig10" in Frame 67
onClipEvent (load) { oilfield = "oil5"; _root.objarray.push(this._name); }
Instance of Symbol 1036 MovieClip "rig11" in Frame 67
onClipEvent (load) { oilfield = "oil5"; _root.objarray.push(this._name); }
Instance of Symbol 1036 MovieClip "rig12" in Frame 67
onClipEvent (load) { oilfield = "oil5"; _root.objarray.push(this._name); }
Instance of Symbol 1029 MovieClip "oil4" in Frame 67
onClipEvent (load) { this.oil.oilspill._xscale = 100; this.oil.oilspill._yscale = 100; }
Instance of Symbol 1029 MovieClip "oil3" in Frame 67
onClipEvent (load) { this.oil.oilspill._xscale = 100; this.oil.oilspill._yscale = 100; }
Instance of Symbol 580 MovieClip [enemyoiltruck] in Frame 67
onClipEvent (load) { if (_root.enemypower < 110) { this.gotoAndStop(2); } }
Instance of Symbol 580 MovieClip [enemyoiltruck] in Frame 67
onClipEvent (load) { if (_root.enemypower < 30) { this.gotoAndStop(2); } }
Instance of Symbol 580 MovieClip [enemyoiltruck] in Frame 67
onClipEvent (load) { if (_root.enemypower < 80) { this.gotoAndStop(2); } }
Instance of Symbol 580 MovieClip [enemyoiltruck] in Frame 67
onClipEvent (load) { if (_root.enemypower < 100) { this.gotoAndStop(2); } }
Instance of Symbol 580 MovieClip [enemyoiltruck] in Frame 67
onClipEvent (load) { if (_root.enemypower < 60) { this.gotoAndStop(2); } }
Instance of Symbol 1009 MovieClip in Frame 67
onClipEvent (load) { ranges = 1; }
Instance of Symbol 1038 MovieClip "burton" in Frame 67
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1042 MovieClip "box" in Frame 67
onClipEvent (mouseDown) { x = _root.mouse._x - 30; y = _root.mouse._y - 30; if (((_root.sidebar.mapp.hitTest(x, y, true) && (_root.comcentre1.life > 0)) && (_root.comcentre1.life != undefined)) && (_root.sidebar._visible)) { x1s = x - x1; y1s = y - y1; x2s = _root.box6._x - x1; y2s = _root.box6._y - y1; _root.box6._x = x; _root.box6._y = y; x1s = x1s / constantx; y1s = y1s / constanty; x2s = x2s / constantx; y2s = y2s / constanty; _root.back._x = _root.back._x - (x1s - x2s); _root.back._y = _root.back._y - (y1s - y2s); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - (x1s - x2s); _root[current]._y = _root[current]._y - (y1s - y2s); i--; } } if ((!_root.sidebar.hitTest(x, y, false)) || (!_root.sidebar._visible)) { if (_root.selectedarray.arrayfind("warfactory1")) { _root.rallypoint._x = _root.mouse._x; _root.rallypoint._y = _root.mouse._y; } hits = false; this._x = _root._xmouse; this._y = _root._ymouse; i = _root.friendlylist.length - 1; while (i > -1) { current = _root.friendlylist[i]; if (_root[current].hitTest(this) && (current != "servicedepot1")) { hits = true; break; } i--; } origx = _root.mouse._x; origy = _root.mouse._y; this._visible = true; array = _root.formation; _root.formation = undefined; if (!hits) { i = _root.selectedarray.length - 1; while (i > -1) { current = _root.selectedarray[i]; if (((!_root[current].enemy) && (_root[current].speed != undefined)) && (!(_root[current].ally === true))) { _root[current].turret._rotation = _root[current].dummy._rotation; c = _root.enemyarray.length - 1; while (c > -1) { current2 = _root.enemyarray[c]; if (_root.mouse.hitTest(_root[current2])) { _root[current].targetobj = current2; _root[current].attack = true; _root[current].dummy.obstacle = false; _root[current].dummy.flag2 = undefined; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root["flag" + current]._x = _root.boxns._x; _root["flag" + current]._y = _root.boxns._y; _root[current].locx = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root[current].locy = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root.objarray.push("flag" + current); _root[current].walking = true; _root.n++; hit = true; break; } c--; } if (!hit) { origx = _root.mouse._x + _root[array + "x"][i]; origy = _root.mouse._y + _root[array + "y"][i]; if (isNaN(origx)) { origx = _root.mouse._x; } if (isNaN(origy)) { origy = _root.mouse._y; } current = _root.selectedarray[i]; _root[current].destx = origx; _root[current].desty = origy; _root[current].attack = false; _root[current].locx = undefined; _root[current].locy = undefined; _root[current].walking = true; _root[current].dummy.obstacle = false; _root[current].dummy.flag2 = undefined; _root["flag" + current].removeMovieClip(); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag", "flag" + current, _root.n); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } } if (Key.isDown(17)) { _root[current].targetobj = "flag" + current; _root[current].attack = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } hit = false; i--; } } } } onClipEvent (mouseUp) { x = _root.mouse._x; y = _root.mouse._y; _root.mouse.gotoAndStop(2); if ((!_root.sidebar.hitTest(x, y, true)) || (!_root.sidebar._visible)) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (_root[current].hitTest(this) && (!_root.selectedarray.arrayfind(current))) { _root[current].selector._visible = true; _root[current].selected1 = true; _root.selectedarray.push(current); } i--; } } origx = undefined; origy = undefined; this._visible = false; _root.sidebar.calccost(); } onClipEvent (enterFrame) { if (_root.mouse.hitTest(_root.sidebar)) { _root.sidebar._alpha = 100; } else { _root.sidebar._alpha = 30; } _root.timer++; if (_root.timer == 7000) { for (var name in _root) { if (typeof(_root[name]) == "movieclip") { if ((_root[name].fulllife != undefined) && ((_root[name].life == undefined) || (_root[name].life <= 0))) { _root[name].removeMovieClip(); } } } i = _root.friendlylist.length - 1; while (i > -1) { currents = _root.friendlylist[i]; if ((_root.friendlylist.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.friendlylist.splice(i, 1); } i--; } i = _root.enemyarray.length - 1; while (i > -1) { currents = _root.enemyarray[i]; if ((_root.enemyarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.enemyarray.splice(i, 1); } i--; } i = _root.objarray.length - 1; while (i > -1) { currents = _root.objarray[i]; if ((_root.objarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.objarray.splice(i, 1); } i--; } i = _root.unitsarray.length - 1; while (i > -1) { currents = _root.unitsarray[i]; if (((_root.unitsarray.countduplicate(currents) > 1) || (_root[currents].life == undefined)) || (_root[currents + "symbols"]._x == undefined)) { _root.unitsarray.splice(i, 1); } i--; } i = _root.shellarray.length - 1; while (i > -1) { currents = _root.shellarray[i]; if (_root.shellarray.countduplicate(currents) > 1) { _root.shellarray.splice(i, 1); } i--; } _root.timer = 0; } if (Key.isDown(32)) { _root.mouse.gotoAndStop(1); _root.selectedarray = []; i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; _root[current].selector._visible = false; _root[current].selected1 = false; _root.sidebar.calccost(); i--; } } if (this._visible) { a = _root._xmouse - origx; b = _root._ymouse - origy; this._width = Math.abs(a); this._height = Math.abs(b); if (a < 0) { this._xscale = this._xscale * -1; } if (b < 0) { this._yscale = this._yscale * -1; } } }
Instance of Symbol 20 MovieClip in Frame 67
onClipEvent (enterFrame) { po++; if (po == _root.shroudarray.length) { po = 0; } current = _root.shroudarray[po]; var revealed = false; i = _root.friendlylist.length - 1; while (i > -1) { current2 = _root.friendlylist[i]; if (_root[current2].unittype != "construction") { if (_root[current].hitTest(_root[current2])) { revealed = true; break; } } i--; } if (revealed) { _root[current]._visible = false; } if ((!revealed) && (_root.fog)) { _root[current]._visible = true; } } onClipEvent (load) { po = 0; } onClipEvent (load) { po = 0; }
Frame 68
_root.map7array = []; _root.attackarray = []; movetozero(); i = _root.friendlylist.length - 1; while (i > -1) { current = _root.friendlylist[i]; if (_root[current].fulllife != undefined) { _root[current + "obj"] = {}; _root[current + "obj"].unittype = _root[current].unittype; _root[current + "obj"].unit = current + "map7"; _root.map7array.push(current); if (_root[current].auto._x != undefined) { _root[current + "obj"].x = _root[current]._x; _root[current + "obj"].y = _root[current]._y; _root[current + "obj"].fulllife = _root[current].fulllife; if (_root[current].damage != undefined) { _root[current + "obj"].damage = _root[current].damage; _root[current + "obj"].range = _root[current].range; _root[current + "obj"].firerate = _root[current].firerate; _root[current + "obj"].shellspd = _root[current].shellspd; } } if (_root[current].auto._x == undefined) { _root[current + "obj"].damage = _root[current].damage; _root[current + "obj"].range = _root[current].range; _root[current + "obj"].firerate = _root[current].firerate; _root[current + "obj"].speed = _root[current].speed; _root[current + "obj"].fulllife = _root[current].fulllife; _root[current + "obj"].shellspd = _root[current].shellspd; _root[current + "obj"].laser = _root[current].laser; _root[current + "obj"].gatling = _root[current].gatling; _root[current + "obj"].crush = _root[current].crush; _root[current + "obj"].missile = _root[current].missile; _root[current + "obj"].auto = _root[current].auto; _root[current + "obj"].nuke = _root[current].nuke; _root[current + "obj"].emp = _root[current].emp; _root[current + "obj"].shell2 = _root[current].shell2; _root[current + "obj"].accurate = _root[current].accurate; _root[current + "obj"].miss = _root[current].miss; _root[current + "obj"].seeker = _root[current].seeker; _root[current + "obj"].blast = _root[current].blast; _root[current + "obj"].hitonly = _root[current].hitonly; } } i--; } _root.box6.removeMovieClip(); for (var name in _root) { if (typeof(_root[name]) == "movieclip") { if (_root[name]._visible) { _root[name].removeMovieClip(); } } } _root.oilderricks = undefined; _root.enemypower = _root.enemypower - 50; _root.ownmap7 = true; if (_root.ownmap7 == undefined) { _root.ownmap7 = false; _root.ownmap8 = false; _root.ownmap9 = false; } _root.missions++; stop();
Instance of Symbol 1099 MovieClip "ai" in Frame 68
onClipEvent (mouseUp) { _root.gotoAndStop("mapbar"); }
Frame 69
for (var name in _root) { if (typeof(_root[name]) == "movieclip") { _root[name].removeMovieClip(); } } _root.attackarray = []; _root.ownmap7 = false; stop();
Frame 70
_root.attachMovie("sidebar", "sidebar", 1000000); _root.attachMovie("mo", "mouse", 1000001); _root.sidebar._x = 132.6; _root.sidebar._y = 615; _root.sidebar._xscale = -58.5; _root.sidebar._yscale = 49.14; _root.sidebar._rotation = 90; _global.orix = _root.back._x; _global.oriy = _root.back._y; _root.attachMovie("box5", "box6", 10000004); _root.box6._x = x1; _root.box6._y = y1; _root.box6._height = (_root.box5._height / _root.back._height) * (y4 - y1); _root.box6._width = (_root.box5._width / _root.back._width) * (x4 - x1); _global.constanty = (y4 - y1) / _root.back._height; _global.constantx = (x4 - x1) / _root.back._width; _global.constantsy = (y4 - y1) / _root.back._height; _global.constantsx = (x4 - x1) / _root.back._width; play(); _root.objarray = []; _root.num = 0; _root.sparsex = [0, -50, 150, 100, -100, 150, 250, 200, -250, 300, 300, 350, -350, 400, -410, 500, -550]; _root.sparsey = [0, -50, 80, -180, 250, -50, 140, -150, 60, 150, -70, -220, -350, 350, -350, 375, -375]; _root.linex = [0, 0, 50, 50, 100, 100, 150, 150, 200, 200, 350, 350, 400, 400, 450, 450, 500, 500, 550, 550]; _root.liney = [0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50]; _root.unitsarray = []; _root.flagsarray = []; _root.selectedarray = []; _root.enemyarray = []; _root.shroudarray = []; _root.friendlylist = []; _root.shellarray = []; _root.enemyminearray = []; _root.minearray = []; _root.enemyminearray = []; _root.enemymoney = 50000; _root.warfactory = 0; _root.enemywarfactory = 0; _global.dozers = []; _root.dozerarray = []; _root.enemydozerarray = []; _root.structurearray = []; _root.enemyservicedepot = 0; _root.enemystructurearray = []; _root.comcentre = 0; _root.enemycomcentre = 0; _root.oilarray = []; _root.enemyoiltruckarray = []; _root.oiltruckarray = []; _root.refinery = 0; _root.enemyrefinery = 0; _root.techcentre = 0; _root.enemytechcentre = 0; _root.enemyweaponsilo = 0; _root.turretarray = []; _root.enemyturretarray = [];
Instance of Symbol 1156 MovieClip "back" in Frame 70
onClipEvent (load) { this._x = 0; this._y = 0; }
Frame 71
_root.attachMovie("missiondefend5", "tutorial", 1000900); _root.tutorial._x = 46.8; _root.tutorial._y = 10.9; if (!(_root.ownmap4 === true)) { var i = (buildary.length - 1); while (i > -1) { _root.sidebar.build[buildary[i]].buildrate = _root.sidebar.build[buildary[i]].buildrate * 0.5; i--; } var i = (buildray.length - 1); while (i > -1) { _root.sidebar.build[buildray[i]].rates = _root.sidebar.build[buildray[i]].rates * 1.5; i--; } } if (_root.ownmap9 === false) { _root.sidebar.enemynuketimer.gotoAndPlay(2); } if (_root.ownmap9 === true) { _root.sidebar.nuketimer.gotoAndPlay(2); } Mouse.hide(); movetozero(); _root.nooiltruck = true; loadefunits("map7"); _root.sidebar.mapp.gotoAndStop(9); movetoloc(_root.lock2._x, _root.lock2._y); _root.waypoint100._x = _root.sensor1._x; _root.waypoint100._y = _root.sensor1._y; _root.waypoint101._x = _root.sensor1._x; _root.waypoint101._y = _root.sensor1._y; stop(); var no = _root.enemyattack; while (no > 0) { var p = 0; a = Math.random(); if ((a > 0) && (a < 0.2)) { unittype = "enemylight"; } if ((a > 0.2) && (a < 0.3)) { unittype = "enemyrocket"; } if ((a > 0.3) && (a < 0.6)) { unittype = "enemyheavy"; } if ((a > 0.6) && (a < 0.8)) { unittype = "enemyhumvee"; } if ((a > 0.8) && (a < 1)) { unittype = "enemyartillery"; } if (Math.random() < 0.8) { _root.attachMovie("enemydozer", "enemydozer" + _root.n, _root.n); _root["enemydozer" + _root.n]._x = _root.flag1._x; _root["enemydozer" + _root.n]._y = _root.flag1._y; _root["enemydozer" + _root.n]._rotation = 0; _root.n++; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.waypoint1._x + _root.linex[p]; _root[unittype + _root.n]._y = _root.waypoint1._y + _root.liney[p]; if (p >= _root.linex.length) { p = 0; } _root[unittype + _root.n]._rotation = 0; _root.array1.push(unittype + _root.n); unittype = undefined; _root.n++; no--; } stop();
Instance of Symbol 1022 MovieClip in Frame 71
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(38))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y + 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 71
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(37))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x + 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 71
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(39))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x - 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - 20; i--; } } } }
Instance of Symbol 1022 MovieClip in Frame 71
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(40))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y - 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y - 20; i--; } } } }
Instance of Symbol 1156 MovieClip "back" in Frame 71
onClipEvent (load) { this._x = 0; this._y = 0; }
Instance of Symbol 1024 MovieClip in Frame 71
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(39))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x - 30; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - 30; i--; } } } }
Instance of Symbol 1022 MovieClip in Frame 71
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(40))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y - 30; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y - 30; i--; } } } }
Instance of Symbol 1156 MovieClip "back" in Frame 71
onClipEvent (load) { this._x = 0; this._y = 0; }
Instance of Symbol 1036 MovieClip "rig10" in Frame 71
onClipEvent (load) { oilfield = "oil5"; _root.objarray.push(this._name); }
Instance of Symbol 1036 MovieClip "rig11" in Frame 71
onClipEvent (load) { oilfield = "oil5"; _root.objarray.push(this._name); }
Instance of Symbol 1036 MovieClip "rig12" in Frame 71
onClipEvent (load) { oilfield = "oil5"; _root.objarray.push(this._name); }
Instance of Symbol 1029 MovieClip "oil4" in Frame 71
onClipEvent (load) { this.oil.oilspill._xscale = 100; this.oil.oilspill._yscale = 100; }
Instance of Symbol 1029 MovieClip "oil3" in Frame 71
onClipEvent (load) { this.oil.oilspill._xscale = 100; this.oil.oilspill._yscale = 100; }
Instance of Symbol 1009 MovieClip in Frame 71
onClipEvent (load) { ranges = 1; }
Instance of Symbol 20 MovieClip in Frame 71
onClipEvent (enterFrame) { po++; if (po == _root.shroudarray.length) { po = 0; } current = _root.shroudarray[po]; var revealed = false; i = _root.friendlylist.length - 1; while (i > -1) { current2 = _root.friendlylist[i]; if (_root[current2].unittype != "construction") { if (_root[current].hitTest(_root[current2])) { revealed = true; break; } } i--; } if (revealed) { _root[current]._visible = false; } if ((!revealed) && (_root.fog)) { _root[current]._visible = true; } } onClipEvent (load) { po = 0; } onClipEvent (load) { po = 0; }
Instance of Symbol 1099 MovieClip "ai" in Frame 71
onClipEvent (load) { timer = 0; _root.array1 = []; _root.array2 = []; build = true; rounds = 0; _root.enemyoiltrucks = 0; } onClipEvent (keyDown) { if ((_root.enemyattack <= 0) && (Key.isDown(13))) { _root.gotoAndStop("victory7d"); } } onClipEvent (enterFrame) { if (!(_root.ownmap6 === true)) { _root.sidebar.build.lasertank.gotoAndStop(1); } ppp = _root.enemyarray.toString(); Mouse.hide(); timer++; if (timer == 500) { if (_root.enemyattack <= 0) { _root.enemypower = _root.enemypower + 5; } } if (_root.enemyattack > 0) { if (timer == 500) { if (_root.ownmap8 === false) { p = 5; while (p > 0) { a = Math.random(); if ((a > 0) && (a < 0.2)) { unittype = "enemylight"; } if ((a > 0.2) && (a < 0.4)) { unittype = "enemyrocket"; } if ((a > 0.4) && (a < 0.6)) { unittype = "enemyheavy"; } if ((a > 0.6) && (a < 0.8)) { unittype = "enemyhumvee"; } if ((a > 0.8) && (a < 1)) { unittype = "enemyartillery"; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.flag1._x; _root[unittype + _root.n]._y = _root.flag1._y; _root[unittype + _root.n]._rotation = 0; _root.array2.push(unittype + _root.n); unittype = undefined; _root.n++; p--; } } if (_root.ownmap3 === true) { var p = 1; while (p > 0) { a = Math.random(); if ((a > 0) && (a < 0.2)) { unittype = "light"; } if ((a > 0.2) && (a < 0.4)) { unittype = "rocket"; } if ((a > 0.4) && (a < 0.6)) { unittype = "heavy"; } if ((a > 0.6) && (a < 0.8)) { unittype = "humvee"; } if ((a > 0.8) && (a < 1)) { unittype = "artillery"; } _root.attachMovie(unittype + "ally", unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.reinforcement._x; _root[unittype + _root.n]._y = _root.reinforcement._y; _root[unittype + _root.n]._rotation = 0; _root[unittype + _root.n].ally = true; unittype = undefined; _root.n++; p--; } } _root.enemypower = _root.enemypower + 5; timer = 0; } if (timer == 250) { if (_root.ownmap8 === true) { var p = 2; while (p > 0) { a = Math.random(); if ((a > 0) && (a < 0.2)) { unittype = "light"; } if ((a > 0.2) && (a < 0.4)) { unittype = "rocket"; } if ((a > 0.4) && (a < 0.6)) { unittype = "heavy"; } if ((a > 0.6) && (a < 0.8)) { unittype = "humvee"; } if ((a > 0.8) && (a < 1)) { unittype = "artillery"; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.reinforcement._x; _root[unittype + _root.n]._y = _root.reinforcement._y; _root[unittype + _root.n]._rotation = 0; _root[unittype + _root.n].ally = true; unittype = undefined; _root.n++; p--; } } if (_root.ownmap7 === false) { _root.enemymoney = _root.enemymoney + 10000; } if (_root.ownmap7 === true) { _root.money = _root.money + 10000; } if ((_root.enemycomcentre < 1) && (_root.enemymoney >= 5000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemycomcentre", _root.waypoint3._x, _root.waypoint3._y, 5000, 0.5); _root[current].build = true; break; } i--; } } if ((_root.enemyservicedepot < 1) && (_root.enemymoney >= 35000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyservicedepot", _root.waypoint47._x, _root.waypoint47._y, 1500, 1); _root[current].build = true; break; } i--; } } if ((_root.enemyrefinery < 1) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyrefinery", _root.waypoint2._x, _root.waypoint2._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemywarfactory == 0) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemywarfactory", _root.waypoint1._x, _root.waypoint1._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemytechcentre < 1) && (_root.enemymoney >= 40000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemytechcentre", _root.waypoint16._x, _root.waypoint16._y, 1500, 0.7); _root[current].build = true; break; } i--; } } if (((_root.enemytechcentre1._x != undefined) && (_root.enemyweaponsilo == 0)) && (_root.enemypower > 100)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyweaponsilo", _root.waypoint160._x, _root.waypoint160._y, 10000, 0.2); _root[current].build = true; break; } i--; } } i = 0; while (i < _root.array1.length) { current = _root.array1[i]; if (_root[current].life == undefined) { _root.array1.splice(i, 1); } if (i < (_root.array1.length - 10)) { _root.array2.push(current); _root.array1.splice(i, 1); if (Math.random() > 0.5) { _root[current].avoid = true; } if (Math.random() > 0.8) { _root[current].aggressive = false; } } i++; } } if ((Math.round(timer / 30) * 30) == timer) { if (_root.enemyarray.length <= 0) { _root.gotoAndStop("victory7d"); } if (_root.friendlylist.length <= 0) { _root.gotoAndStop("defeat7d"); } n = _root.enemystructurearray.length - 1; while (n > -1) { current2 = _root.enemystructurearray[n]; i = dozers.length - 1; while (i > -1) { current = dozers[i]; if (_root[current].build || (_root[current].walking)) { } else { dx = _root[current]._x - _root[current2]._x; dy = _root[current]._y - _root[current2]._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 1500) { ant = 0; if (((_root[current2].life < _root[current2].fulllife) && (_root[current2].percent == undefined)) && (_root[current2].auto._currentframe == 1)) { if (!_root[current].hitTest(_root[current2])) { _root[current].aigoto(_root[current2]._x, _root[current2]._y, false); } _root[current2].auto.play(); if (_root.ownmap5 === false) { h = array1.length - 1; while (h > -1) { currents = _root.array1[h]; if ((((_root[currents].natack == undefined) && (!_root[currents].walking)) && (!_root[currents].fireing)) && (ant < 5)) { ant++; _root[currents].aigoto(_root[current2]._x, _root[current2]._y, false); if (_root[current2].targetobj != undefined) { targetobj = _root[current2].targetobj; _root[currents].aiattack(targetobj); } } h--; } } } } break; } i--; } n--; } } timescale = 8000 / _root.enemypower; if (_root.ownmap4 === false) { timescale = timescale * 0.5; } if ((Math.round(timer / timescale) * timescale) == timer) { if (((dozers.length < 4) && (_root.enemycomcentre1.life > 0)) && (_root.enemymoney > 1000)) { _root.enemymoney = _root.enemymoney - 1000; _root.attachMovie("enemydozer", "enemydozer" + _root.n, _root.n); _root["enemydozer" + _root.n]._x = _root.enemycomcentre1._x; _root["enemydozer" + _root.n]._y = _root.enemycomcentre1._y; _root["enemydozer" + _root.n]._rotation = 0; _root.n++; } if ((_root.enemymoney > 40000) && (!build)) { build = true; rounds++; } if ((_root.enemymoney < 15000) && (build)) { build = false; } i = 0; while (i < _root.enemyarray.length) { current = _root.enemyarray[i]; if (_root[current].life == undefined) { _root.array2.splice(i, 1); } else if (((((!_root[current].fireing) && (!(_root[current].walking && (_root[current].attack === true)))) && (_root[current].getDepth() > 0)) && (_root[current].damage != undefined)) && (_root[current].speed != undefined)) { lo = Math.floor(Math.random() * (_root.friendlylist.length - 1)); unit = _root.friendlylist[lo]; if ((_root.techcentre1.life > 0) && (Math.random() > 0.5)) { unit = "derrick1"; } _root[current].aiattack(unit); } i++; } arrayone = _root.array1.toString(); if (_root.enemywarfactory1.life > 0) { if ((_root.enemyoiltrucks < 4) && (_root.enemymoney >= 2000)) { _root.enemymoney = _root.enemymoney - 1500; _root.attachMovie("enemyoiltruck", "enemyoiltruck" + _root.n, _root.n); _root["enemyoiltruck" + _root.n]._x = _root.enemywarfactory1._x; _root["enemyoiltruck" + _root.n]._y = _root.enemywarfactory1._y; _root["enemyoiltruck" + _root.n]._rotation = 0; _root.n++; } if (build || ((_root.array1.length < 20) && (_root.enemymoney > 0))) { a = Math.random(); if ((a > 0) && (a < 0.1)) { unittype = "enemylight"; _root.enemymoney = _root.enemymoney - 1000; } if ((a > 0.2) && (a < 0.4)) { unittype = "enemyrocket"; _root.enemymoney = _root.enemymoney - 1500; } if ((a > 0.4) && (a < 0.6)) { unittype = "enemyheavy"; _root.enemymoney = _root.enemymoney - 2500; } if ((a > 0.6) && (a < 0.9)) { unittype = "enemyhumvee"; _root.enemymoney = _root.enemymoney - 500; } if ((a > 0.9) && (a < 1)) { unittype = "enemyartillery"; _root.enemymoney = _root.enemymoney - 2000; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.enemywarfactory1._x; _root[unittype + _root.n]._y = _root.enemywarfactory1._y + 100; _root[unittype + _root.n]._rotation = 0; _root.array1.push(unittype + _root.n); unittype = undefined; _root.n++; if (((_root.enemylasertank1._x == undefined) && (_root.enemytechcentre1._x != undefined)) && (_root.ownmap6 === false)) { if (Math.random() > 0.9) { _root.attachMovie("enemylasertank", "enemylasertank1", _root.n); _root.enemylasertank1._x = _root.enemywarfactory1._x; _root.enemylasertank1._y = _root.enemywarfactory1._y + 100; _root.enemylasertank1._rotation = 0; _root.enemymoney = _root.enemymoney - 7500; _root.array1.push("enemylasertank1"); } } } } } } }
Instance of Symbol 1038 MovieClip "burton" in Frame 71
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1042 MovieClip "box" in Frame 71
onClipEvent (mouseDown) { x = _root.mouse._x - 30; y = _root.mouse._y - 30; if (((_root.sidebar.mapp.hitTest(x, y, true) && (_root.comcentre1.life > 0)) && (_root.comcentre1.life != undefined)) && (_root.sidebar._visible)) { x1s = x - x1; y1s = y - y1; x2s = _root.box6._x - x1; y2s = _root.box6._y - y1; _root.box6._x = x; _root.box6._y = y; x1s = x1s / constantx; y1s = y1s / constanty; x2s = x2s / constantx; y2s = y2s / constanty; _root.back._x = _root.back._x - (x1s - x2s); _root.back._y = _root.back._y - (y1s - y2s); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - (x1s - x2s); _root[current]._y = _root[current]._y - (y1s - y2s); i--; } } if ((!_root.sidebar.hitTest(x, y, false)) || (!_root.sidebar._visible)) { if (_root.selectedarray.arrayfind("warfactory1")) { _root.rallypoint._x = _root.mouse._x; _root.rallypoint._y = _root.mouse._y; } hits = false; this._x = _root._xmouse; this._y = _root._ymouse; i = _root.friendlylist.length - 1; while (i > -1) { current = _root.friendlylist[i]; if (_root[current].hitTest(this) && (current != "servicedepot1")) { hits = true; break; } i--; } origx = _root.mouse._x; origy = _root.mouse._y; this._visible = true; array = _root.formation; _root.formation = undefined; if (!hits) { i = _root.selectedarray.length - 1; while (i > -1) { current = _root.selectedarray[i]; if (((!_root[current].enemy) && (_root[current].speed != undefined)) && (!(_root[current].ally === true))) { _root[current].turret._rotation = _root[current].dummy._rotation; c = _root.enemyarray.length - 1; while (c > -1) { current2 = _root.enemyarray[c]; if (_root.mouse.hitTest(_root[current2])) { _root[current].targetobj = current2; _root[current].attack = true; _root[current].dummy.obstacle = false; _root[current].dummy.flag2 = undefined; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root["flag" + current]._x = _root.boxns._x; _root["flag" + current]._y = _root.boxns._y; _root[current].locx = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root[current].locy = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root.objarray.push("flag" + current); _root[current].walking = true; _root.n++; hit = true; break; } c--; } if (!hit) { origx = _root.mouse._x + _root[array + "x"][i]; origy = _root.mouse._y + _root[array + "y"][i]; if (isNaN(origx)) { origx = _root.mouse._x; } if (isNaN(origy)) { origy = _root.mouse._y; } current = _root.selectedarray[i]; _root[current].destx = origx; _root[current].desty = origy; _root[current].attack = false; _root[current].locx = undefined; _root[current].locy = undefined; _root[current].walking = true; _root[current].dummy.obstacle = false; _root[current].dummy.flag2 = undefined; _root["flag" + current].removeMovieClip(); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag", "flag" + current, _root.n); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } } if (Key.isDown(17)) { _root[current].targetobj = "flag" + current; _root[current].attack = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } hit = false; i--; } } } } onClipEvent (mouseUp) { x = _root.mouse._x; y = _root.mouse._y; _root.mouse.gotoAndStop(2); if ((!_root.sidebar.hitTest(x, y, true)) || (!_root.sidebar._visible)) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (_root[current].hitTest(this) && (!_root.selectedarray.arrayfind(current))) { _root[current].selector._visible = true; _root[current].selected1 = true; _root.selectedarray.push(current); } i--; } } origx = undefined; origy = undefined; this._visible = false; _root.sidebar.calccost(); } onClipEvent (enterFrame) { if (_root.mouse.hitTest(_root.sidebar)) { _root.sidebar._alpha = 100; } else { _root.sidebar._alpha = 30; } _root.timer++; if (_root.timer == 7000) { for (var name in _root) { if (typeof(_root[name]) == "movieclip") { if ((_root[name].fulllife != undefined) && ((_root[name].life == undefined) || (_root[name].life <= 0))) { _root[name].removeMovieClip(); } } } i = _root.friendlylist.length - 1; while (i > -1) { currents = _root.friendlylist[i]; if ((_root.friendlylist.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.friendlylist.splice(i, 1); } i--; } i = _root.enemyarray.length - 1; while (i > -1) { currents = _root.enemyarray[i]; if ((_root.enemyarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.enemyarray.splice(i, 1); } i--; } i = _root.objarray.length - 1; while (i > -1) { currents = _root.objarray[i]; if ((_root.objarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.objarray.splice(i, 1); } i--; } i = _root.unitsarray.length - 1; while (i > -1) { currents = _root.unitsarray[i]; if (((_root.unitsarray.countduplicate(currents) > 1) || (_root[currents].life == undefined)) || (_root[currents + "symbols"]._x == undefined)) { _root.unitsarray.splice(i, 1); } i--; } i = _root.shellarray.length - 1; while (i > -1) { currents = _root.shellarray[i]; if (_root.shellarray.countduplicate(currents) > 1) { _root.shellarray.splice(i, 1); } i--; } _root.timer = 0; } if (Key.isDown(32)) { _root.mouse.gotoAndStop(1); _root.selectedarray = []; i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; _root[current].selector._visible = false; _root[current].selected1 = false; _root.sidebar.calccost(); i--; } } if (this._visible) { a = _root._xmouse - origx; b = _root._ymouse - origy; this._width = Math.abs(a); this._height = Math.abs(b); if (a < 0) { this._xscale = this._xscale * -1; } if (b < 0) { this._yscale = this._yscale * -1; } } }
Frame 72
_root.map7array = []; movetozero(); saveunits("map7"); for (var name in _root) { if (typeof(_root[name]) == "movieclip") { _root[name].removeMovieClip(); } } _root.enemyattack = 0; _root.box6.removeMovieClip(); _root.ownmap7 = true; _root.missions++; stop();
Instance of Symbol 1099 MovieClip "ai" in Frame 72
onClipEvent (mouseUp) { _root.gotoAndStop("mapbar"); }
Frame 73
for (var name in _root) { if (typeof(_root[name]) == "movieclip") { _root[name].removeMovieClip(); } } _root.map7array = []; _root.ownmap7 = false; stop();
Frame 74
_root.mapbar.removeMovieClip(); _root.attachMovie("sidebar", "sidebar", 1000000); _root.attachMovie("mo", "mouse", 1000001); _root.sidebar._x = 132.6; _root.sidebar._y = 615; _root.sidebar._xscale = -58.5; _root.sidebar._yscale = 49.14; _root.sidebar._rotation = 90; _global.orix = _root.back._x; _global.oriy = _root.back._y; _root.attachMovie("box5", "box6", 10000004); _root.box6._x = x1; _root.box6._y = y1; _root.box6._height = (_root.box5._height / _root.back._height) * (y4 - y1); _root.box6._width = (_root.box5._width / _root.back._width) * (x4 - x1); _global.constanty = (y4 - y1) / _root.back._height; _global.constantx = (x4 - x1) / _root.back._width; _global.constantsy = (y4 - y1) / _root.back._height; _global.constantsx = (x4 - x1) / _root.back._width; play(); _root.objarray = []; _root.num = 0; _root.sparsex = [0, -50, 150, 100, -100, 150, 250, 200, -250, 300, 300, 350, -350, 400, -410, 500, -550]; _root.sparsey = [0, -50, 80, -180, 250, -50, 140, -150, 60, 150, -70, -220, -350, 350, -350, 375, -375]; _root.linex = [0, 0, 50, 50, 100, 100, 150, 150, 200, 200, 350, 350, 400, 400, 450, 450, 500, 500, 550, 550]; _root.liney = [0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50]; _root.unitsarray = []; _root.flagsarray = []; _root.selectedarray = []; _root.enemyarray = []; _root.shroudarray = []; _root.friendlylist = []; _root.shellarray = []; _root.enemyminearray = []; _root.obsarray = []; _root.minearray = []; _root.enemyminearray = []; _root.enemymoney = 30000; _root.warfactory = 0; _root.enemywarfactory = 0; _global.dozers = []; _root.dozerarray = []; _root.enemydozerarray = []; _root.structurearray = []; _root.enemyservicedepot = 0; _root.enemystructurearray = []; _root.comcentre = 0; _root.enemycomcentre = 0; _root.oilarray = []; _root.enemyoiltruckarray = []; _root.oiltruckarray = []; _root.refinery = 0; _root.enemyrefinery = 0; _root.techcentre = 0; _root.enemytechcentre = 0; _root.enemyweaponsilo = 0; _root.turretarray = []; _root.enemyturretarray = [];
Instance of Symbol 1086 MovieClip "back" in Frame 74
onClipEvent (load) { this._x = 0; this._y = 0; }
Frame 75
_root.attachMovie("mission8", "tutorial", 1000900); _root.tutorial._x = 46.8; _root.tutorial._y = 10.9; if (!(_root.ownmap4 === true)) { var i = (buildary.length - 1); while (i > -1) { _root.sidebar.build[buildary[i]].buildrate = _root.sidebar.build[buildary[i]].buildrate * 0.5; i--; } var i = (buildray.length - 1); while (i > -1) { _root.sidebar.build[buildray[i]].rates = _root.sidebar.build[buildray[i]].rates * 1.5; i--; } } if (_root.ownmap9 === false) { _root.sidebar.enemynuketimer.gotoAndPlay(2); } if (_root.ownmap9 === true) { _root.sidebar.nuketimer.gotoAndPlay(2); } _root.back._x = 0; _root.back._y = 0; Mouse.hide(); _root.sidebar.mapp.gotoAndStop(10); loadattunits(); movetoloc(_root.lock2._x, _root.lock2._y); stop(); stop();
Instance of Symbol 1022 MovieClip in Frame 75
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(38))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y + 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 75
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(37))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x + 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 75
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(39))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x - 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - 20; i--; } } } }
Instance of Symbol 1022 MovieClip in Frame 75
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(40))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y - 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y - 20; i--; } } } }
Instance of Symbol 20 MovieClip in Frame 75
onClipEvent (enterFrame) { po++; if (po == _root.obsarray.length) { po = 0; } current = _root.obsarray[po]; i = _root.unitsarray.length - 1; while (i > -1) { current2 = _root.unitsarray[i]; if (_root[current2].walking || (_root[current2].fireing)) { if (_root.back[current].hitTest(_root[current2])) { if (_root[current2].dummy.obstacle == undefined) { _root[current2].dummy.obstacle = false; } if ((!_root[current2].dummy.obstacle) || (_root[current2].dummy.obstacle == undefined)) { _root[current2].dummy.obstacle = true; if (_root.back[current].pos == "hoz") { roattion = _root[current2].dummy._rotation; if ((_root[current2].dummy._rotation >= -90) && (_root[current2].dummy._rotation < 90)) { _root[current2].dummy.flag2 = _root.back[current].rights; } if ((_root[current2].dummy._rotation >= 90) && (_root[current2].dummy._rotation < 360)) { _root[current2].dummy.flag2 = _root.back[current].lefts; } } if (_root.back[current].pos == "ver") { roattion = _root[current2].dummy._rotation; if ((_root[current2].dummy._rotation <= 0) && (_root[current2].dummy._rotation > -180)) { _root[current2].dummy.flag2 = _root.back[current].tops; } if ((_root[current2].dummy._rotation > 0) && (_root[current2].dummy._rotation < 180)) { _root[current2].dummy.flag2 = _root.back[current].bottoms; } } } } } i--; } } onClipEvent (load) { po = 0; }
Instance of Symbol 1099 MovieClip "ai" in Frame 75
onClipEvent (load) { timer = 0; _root.array2 = []; build = true; rounds = 0; _root.enemyoiltrucks = 0; } onClipEvent (enterFrame) { if (!(_root.ownmap6 === true)) { _root.sidebar.build.lasertank.gotoAndStop(1); } ppp = _root.enemyarray.toString(); Mouse.hide(); timer++; if (timer == 500) { i = _root.enemyarray.length - 1; while (i > -1) { current = _root.enemyarray[i]; if ((_root[current].unittype == "artillery") && (_root[current].turret._currentframe == 1)) { _root[current].deploy(); } i--; } if (_root.ownmap8 === true) { var p = 2; while (p > 0) { a = Math.random(); if ((a > 0) && (a < 0.1)) { unittype = "light"; } if ((a > 0.1) && (a < 0.4)) { unittype = "rocket"; } if ((a > 0.4) && (a < 0.5)) { unittype = "heavy"; } if ((a > 0.5) && (a < 0.6)) { unittype = "humvee"; } if ((a > 0.6) && (a < 1)) { unittype = "artillery"; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.reinforcement._x; _root[unittype + _root.n]._y = _root.reinforcement._y; _root[unittype + _root.n]._rotation = 0; unittype = undefined; _root.n++; p--; } } if (_root.ownmap8 === false) { p = 2; while (p > 0) { a = Math.random(); if ((a > 0) && (a < 0.4)) { unittype = "enemylight"; } if ((a > 0.4) && (a < 0.5)) { unittype = "enemyrocket"; } if ((a > 0.5) && (a < 0.6)) { unittype = "enemyheavy"; } if ((a > 0.6) && (a < 0.9)) { unittype = "enemyhumvee"; } if ((a > 0.9) && (a < 1)) { unittype = "enemyartillery"; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.flag1._x; _root[unittype + _root.n]._y = _root.flag1._y; _root[unittype + _root.n]._rotation = 0; _root.array2.push(unittype + _root.n); unittype = undefined; _root.n++; p--; } } _root.enemypower = _root.enemypower + 5; timer = 0; } if (timer == 250) { if (_root.ownmap7 === false) { _root.enemymoney = _root.enemymoney + 10000; } if (_root.ownmap7 === true) { _root.money = _root.money + 10000; } if ((_root.enemycomcentre < 1) && (_root.enemymoney >= 5000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemycomcentre", _root.waypoint3._x, _root.waypoint3._y, 5000, 0.5); _root[current].build = true; break; } i--; } } if ((_root.enemyservicedepot < 1) && (_root.enemymoney >= 35000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyservicedepot", _root.waypoint47._x, _root.waypoint47._y, 1500, 1); _root[current].build = true; break; } i--; } } if ((_root.enemyrefinery < 1) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyrefinery", _root.waypoint2._x, _root.waypoint2._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemywarfactory == 0) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemywarfactory", _root.waypoint1._x, _root.waypoint1._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemytechcentre < 1) && (_root.enemymoney >= 40000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemytechcentre", _root.waypoint16._x, _root.waypoint16._y, 1500, 0.7); _root[current].build = true; break; } i--; } } i = 0; while (i < _root.array1.length) { current = _root.array1[i]; if (_root[current].life == undefined) { _root.array1.splice(i, 1); } if (i < (_root.array1.length - 5)) { _root.array2.push(current); _root.array1.splice(i, 1); if (Math.random() > 0.8) { _root[current].avoid = true; } if (Math.random() > 0.2) { _root[current].aggressive = false; } } i++; } } if ((Math.round(timer / 30) * 30) == timer) { if (_root.enemyarray.length == 0) { _root.gotoAndStop("victory8"); } if (_root.friendlylist.length <= 0) { _root.gotoAndStop("defeat8"); } n = _root.enemystructurearray.length - 1; while (n > -1) { current2 = _root.enemystructurearray[n]; i = dozers.length - 1; while (i > -1) { current = dozers[i]; if (_root[current].build || (_root[current].walking)) { } else { dx = _root[current]._x - _root[current2]._x; dy = _root[current]._y - _root[current2]._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 1500) { ant = 0; if (((_root[current2].life < _root[current2].fulllife) && (_root[current2].percent == undefined)) && (_root[current2].auto._currentframe == 1)) { if (!_root[current].hitTest(_root[current2])) { _root[current].aigoto(_root[current2]._x, _root[current2]._y, false); } _root[current2].auto.play(); h = array1.length - 1; while (h > -1) { currents = _root.array1[h]; if ((((_root[currents].natack == undefined) && (!_root[currents].walking)) && (!_root[currents].fireing)) && (ant < 5)) { ant++; _root[currents].aigoto(_root[current2]._x, _root[current2]._y, false); if (_root[current2].targetobj != undefined) { targetobj = _root[current2].targetobj; _root[currents].aiattack(targetobj); } } h--; } } } break; } i--; } n--; } } timescale = 8000 / _root.enemypower; if (_root.ownmap4 === false) { timescale = timescale * 0.5; } if ((Math.round(timer / timescale) * timescale) == timer) { if (((dozers.length < 4) && (_root.enemycomcentre1.life > 0)) && (_root.enemymoney > 1000)) { _root.enemymoney = _root.enemymoney - 1000; _root.attachMovie("enemydozer", "enemydozer" + _root.n, _root.n); _root["enemydozer" + _root.n]._x = _root.enemycomcentre1._x; _root["enemydozer" + _root.n]._y = _root.enemycomcentre1._y; _root["enemydozer" + _root.n]._rotation = 0; _root.n++; } if ((_root.enemymoney > 20000) && (!build)) { build = true; rounds++; } if ((_root.enemymoney < 15000) && (build)) { build = false; } i = 0; while (i < _root.enemyarray.length) { current = _root.enemyarray[i]; if (_root[current].life == undefined) { _root.array2.splice(i, 1); } else if (((((!_root[current].fireing) && (!(_root[current].walking && (_root[current].attack === true)))) && (_root[current].getDepth() > 0)) && (_root[current].damage != undefined)) && (_root[current].speed != undefined)) { lo = Math.floor(Math.random() * (_root.friendlylist.length - 1)); unit = _root.friendlylist[lo]; if ((_root.techcentre1.life > 0) && (Math.random() > 0.5)) { unit = "techcentre1"; } _root[current].aiattack(unit); } i++; } arrayone = _root.array1.toString(); if (_root.enemywarfactory1.life > 0) { if ((_root.enemyoiltrucks < 2) && (_root.enemymoney >= 2000)) { _root.enemymoney = _root.enemymoney - 1500; _root.attachMovie("enemyoiltruck", "enemyoiltruck" + _root.n, _root.n); _root["enemyoiltruck" + _root.n]._x = _root.enemywarfactory1._x; _root["enemyoiltruck" + _root.n]._y = _root.enemywarfactory1._y; _root["enemyoiltruck" + _root.n]._rotation = 0; _root.n++; } if (build && (_root.enemymoney > 0)) { a = Math.random(); if ((a > 0) && (a < 0.4)) { unittype = "enemylight"; _root.enemymoney = _root.enemymoney - 1000; } if ((a > 0.4) && (a < 0.5)) { unittype = "enemyrocket"; _root.enemymoney = _root.enemymoney - 1500; } if ((a > 0.5) && (a < 0.6)) { unittype = "enemyheavy"; _root.enemymoney = _root.enemymoney - 2500; } if ((a > 0.6) && (a < 0.9)) { unittype = "enemyhumvee"; _root.enemymoney = _root.enemymoney - 500; } if ((a > 0.9) && (a < 1)) { unittype = "enemyartillery"; _root.enemymoney = _root.enemymoney - 2000; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.enemywarfactory1._x; _root[unittype + _root.n]._y = _root.enemywarfactory1._y + 100; _root[unittype + _root.n]._rotation = 0; _root.array1.push(unittype + _root.n); unittype = undefined; _root.n++; if (((_root.enemylasertank1._x == undefined) && (_root.enemytechcentre1._x != undefined)) && (_root.ownmap6 === false)) { if (Math.random() > 0.9) { _root.attachMovie("enemylasertank", "enemylasertank1", _root.n); _root.enemylasertank1._x = _root.enemywarfactory1._x; _root.enemylasertank1._y = _root.enemywarfactory1._y + 100; _root.enemylasertank1._rotation = 0; _root.enemymoney = _root.enemymoney - 7500; _root.array1.push("enemylasertank1"); } } } } } }
Instance of Symbol 1029 MovieClip "oil2" in Frame 75
onClipEvent (load) { this.oil.oilspill._xscale = 100; this.oil.oilspill._yscale = 100; }
Instance of Symbol 1029 MovieClip "oil1" in Frame 75
onClipEvent (load) { this.oil.oilspill._xscale = 100; this.oil.oilspill._yscale = 100; }
Instance of Symbol 1029 MovieClip "oil3" in Frame 75
onClipEvent (load) { this.oil.oilspill._xscale = 100; this.oil.oilspill._yscale = 100; }
Instance of Symbol 1036 MovieClip "rig10" in Frame 75
onClipEvent (load) { oilfield = "oil3"; _root.objarray.push(this._name); }
Instance of Symbol 1036 MovieClip "rig11" in Frame 75
onClipEvent (load) { oilfield = "oil2"; _root.objarray.push(this._name); }
Instance of Symbol 1038 MovieClip "burton" in Frame 75
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1009 MovieClip in Frame 75
onClipEvent (load) { ranges = 1; }
Instance of Symbol 1042 MovieClip "box" in Frame 75
onClipEvent (mouseDown) { x = _root.mouse._x - 30; y = _root.mouse._y - 30; if (((_root.sidebar.mapp.hitTest(x, y, true) && (_root.comcentre1.life > 0)) && (_root.comcentre1.life != undefined)) && (_root.sidebar._visible)) { x1s = x - x1; y1s = y - y1; x2s = _root.box6._x - x1; y2s = _root.box6._y - y1; _root.box6._x = x; _root.box6._y = y; x1s = x1s / constantx; y1s = y1s / constanty; x2s = x2s / constantx; y2s = y2s / constanty; _root.back._x = _root.back._x - (x1s - x2s); _root.back._y = _root.back._y - (y1s - y2s); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - (x1s - x2s); _root[current]._y = _root[current]._y - (y1s - y2s); i--; } } if ((!_root.sidebar.hitTest(x, y, false)) || (!_root.sidebar._visible)) { if (_root.selectedarray.arrayfind("warfactory1")) { _root.rallypoint._x = _root.mouse._x; _root.rallypoint._y = _root.mouse._y; } hits = false; this._x = _root._xmouse; this._y = _root._ymouse; i = _root.friendlylist.length - 1; while (i > -1) { current = _root.friendlylist[i]; if (_root[current].hitTest(this) && (current != "servicedepot1")) { hits = true; break; } i--; } origx = _root.mouse._x; origy = _root.mouse._y; this._visible = true; array = _root.formation; _root.formation = undefined; if (!hits) { i = _root.selectedarray.length - 1; while (i > -1) { current = _root.selectedarray[i]; if (((!_root[current].enemy) && (_root[current].speed != undefined)) && (!(_root[current].ally === true))) { _root[current].turret._rotation = _root[current].dummy._rotation; c = _root.enemyarray.length - 1; while (c > -1) { current2 = _root.enemyarray[c]; if (_root.mouse.hitTest(_root[current2])) { _root[current].targetobj = current2; _root[current].attack = true; _root[current].dummy.obstacle = false; _root[current].dummy.flag2 = undefined; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root["flag" + current]._x = _root.boxns._x; _root["flag" + current]._y = _root.boxns._y; _root[current].locx = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root[current].locy = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root.objarray.push("flag" + current); _root[current].walking = true; _root.n++; hit = true; break; } c--; } if (!hit) { origx = _root.mouse._x + _root[array + "x"][i]; origy = _root.mouse._y + _root[array + "y"][i]; if (isNaN(origx)) { origx = _root.mouse._x; } if (isNaN(origy)) { origy = _root.mouse._y; } current = _root.selectedarray[i]; _root[current].destx = origx; _root[current].desty = origy; _root[current].attack = false; _root[current].locx = undefined; _root[current].locy = undefined; _root[current].walking = true; _root[current].dummy.obstacle = false; _root[current].dummy.flag2 = undefined; _root["flag" + current].removeMovieClip(); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag", "flag" + current, _root.n); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } } if (Key.isDown(17)) { _root[current].targetobj = "flag" + current; _root[current].attack = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } hit = false; i--; } } } } onClipEvent (mouseUp) { x = _root.mouse._x; y = _root.mouse._y; _root.mouse.gotoAndStop(2); if ((!_root.sidebar.hitTest(x, y, true)) || (!_root.sidebar._visible)) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (_root[current].hitTest(this) && (!_root.selectedarray.arrayfind(current))) { _root[current].selector._visible = true; _root[current].selected1 = true; _root.selectedarray.push(current); } i--; } } origx = undefined; origy = undefined; this._visible = false; _root.sidebar.calccost(); } onClipEvent (enterFrame) { if (_root.mouse.hitTest(_root.sidebar)) { _root.sidebar._alpha = 100; } else { _root.sidebar._alpha = 30; } _root.timer++; if (_root.timer == 7000) { for (var name in _root) { if (typeof(_root[name]) == "movieclip") { if ((_root[name].fulllife != undefined) && ((_root[name].life == undefined) || (_root[name].life <= 0))) { _root[name].removeMovieClip(); } } } i = _root.friendlylist.length - 1; while (i > -1) { currents = _root.friendlylist[i]; if ((_root.friendlylist.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.friendlylist.splice(i, 1); } i--; } i = _root.enemyarray.length - 1; while (i > -1) { currents = _root.enemyarray[i]; if ((_root.enemyarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.enemyarray.splice(i, 1); } i--; } i = _root.objarray.length - 1; while (i > -1) { currents = _root.objarray[i]; if ((_root.objarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.objarray.splice(i, 1); } i--; } i = _root.unitsarray.length - 1; while (i > -1) { currents = _root.unitsarray[i]; if (((_root.unitsarray.countduplicate(currents) > 1) || (_root[currents].life == undefined)) || (_root[currents + "symbols"]._x == undefined)) { _root.unitsarray.splice(i, 1); } i--; } i = _root.shellarray.length - 1; while (i > -1) { currents = _root.shellarray[i]; if (_root.shellarray.countduplicate(currents) > 1) { _root.shellarray.splice(i, 1); } i--; } _root.timer = 0; } if (Key.isDown(32)) { _root.mouse.gotoAndStop(1); _root.selectedarray = []; i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; _root[current].selector._visible = false; _root[current].selected1 = false; _root.sidebar.calccost(); i--; } } if (this._visible) { a = _root._xmouse - origx; b = _root._ymouse - origy; this._width = Math.abs(a); this._height = Math.abs(b); if (a < 0) { this._xscale = this._xscale * -1; } if (b < 0) { this._yscale = this._yscale * -1; } } }
Instance of Symbol 20 MovieClip in Frame 75
onClipEvent (enterFrame) { po++; if (po == _root.shroudarray.length) { po = 0; } current = _root.shroudarray[po]; var revealed = false; i = _root.friendlylist.length - 1; while (i > -1) { current2 = _root.friendlylist[i]; if (_root[current2].unittype != "construction") { if (_root[current].hitTest(_root[current2])) { revealed = true; break; } } i--; } if (revealed) { _root[current]._visible = false; } if ((!revealed) && (_root.fog)) { _root[current]._visible = true; } } onClipEvent (load) { po = 0; } onClipEvent (load) { po = 0; }
Frame 76
_root.map8array = []; _root.attackarray = []; movetozero(); i = _root.friendlylist.length - 1; while (i > -1) { current = _root.friendlylist[i]; if (_root[current].fulllife != undefined) { _root[current + "obj"] = {}; _root[current + "obj"].unittype = _root[current].unittype; _root[current + "obj"].unit = current + "map8"; _root.map8array.push(current); if (_root[current].auto._x != undefined) { _root[current + "obj"].x = _root[current]._x; _root[current + "obj"].y = _root[current]._y; _root[current + "obj"].fulllife = _root[current].fulllife; if (_root[current].damage != undefined) { _root[current + "obj"].damage = _root[current].damage; _root[current + "obj"].range = _root[current].range; _root[current + "obj"].firerate = _root[current].firerate; _root[current + "obj"].shellspd = _root[current].shellspd; } } if (_root[current].auto._x == undefined) { _root[current + "obj"].damage = _root[current].damage; _root[current + "obj"].range = _root[current].range; _root[current + "obj"].firerate = _root[current].firerate; _root[current + "obj"].speed = _root[current].speed; _root[current + "obj"].fulllife = _root[current].fulllife; _root[current + "obj"].shellspd = _root[current].shellspd; _root[current + "obj"].laser = _root[current].laser; _root[current + "obj"].gatling = _root[current].gatling; _root[current + "obj"].crush = _root[current].crush; _root[current + "obj"].missile = _root[current].missile; _root[current + "obj"].auto = _root[current].auto; _root[current + "obj"].nuke = _root[current].nuke; _root[current + "obj"].emp = _root[current].emp; _root[current + "obj"].shell2 = _root[current].shell2; _root[current + "obj"].accurate = _root[current].accurate; _root[current + "obj"].miss = _root[current].miss; _root[current + "obj"].seeker = _root[current].seeker; _root[current + "obj"].blast = _root[current].blast; _root[current + "obj"].hitonly = _root[current].hitonly; } } i--; } _root.box6.removeMovieClip(); for (var name in _root) { if (typeof(_root[name]) == "movieclip") { if (_root[name]._visible) { _root[name].removeMovieClip(); } } } _root.enemypower = _root.enemypower - 50; _root.ownmap8 = true; if (_root.ownmap7 == undefined) { _root.ownmap7 = false; _root.ownmap8 = false; _root.ownmap9 = false; } _root.missions++; stop();
Instance of Symbol 1099 MovieClip "ai" in Frame 76
onClipEvent (mouseUp) { _root.gotoAndStop("mapbar"); }
Frame 77
for (var name in _root) { if (typeof(_root[name]) == "movieclip") { _root[name].removeMovieClip(); } } _root.attackarray = []; _root.ownmap8 = false; _root.lasertankfactlity = undefined; stop();
Frame 78
_root.attachMovie("sidebar", "sidebar", 1000000); _root.attachMovie("mo", "mouse", 1000001); _root.sidebar._x = 132.6; _root.sidebar._y = 615; _root.sidebar._xscale = -58.5; _root.sidebar._yscale = 49.14; _root.sidebar._rotation = 90; _global.orix = _root.back._x; _global.oriy = _root.back._y; _root.attachMovie("box5", "box6", 10000004); _root.box6._x = x1; _root.box6._y = y1; _root.box6._height = (_root.box5._height / _root.back._height) * (y4 - y1); _root.box6._width = (_root.box5._width / _root.back._width) * (x4 - x1); _global.constanty = (y4 - y1) / _root.back._height; _global.constantx = (x4 - x1) / _root.back._width; _global.constantsy = (y4 - y1) / _root.back._height; _global.constantsx = (x4 - x1) / _root.back._width; play(); _root.objarray = []; _root.num = 0; _root.sparsex = [0, -50, 150, 100, -100, 150, 250, 200, -250, 300, 300, 350, -350, 400, -410, 500, -550]; _root.sparsey = [0, -50, 80, -180, 250, -50, 140, -150, 60, 150, -70, -220, -350, 350, -350, 375, -375]; _root.linex = [0, 0, 50, 50, 100, 100, 150, 150, 200, 200, 350, 350, 400, 400, 450, 450, 500, 500, 550, 550]; _root.liney = [0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50]; _root.unitsarray = []; _root.flagsarray = []; _root.selectedarray = []; _root.enemyarray = []; _root.shroudarray = []; _root.friendlylist = []; _root.shellarray = []; _root.enemyminearray = []; _root.minearray = []; _root.enemyminearray = []; _root.enemymoney = 50000; _root.warfactory = 0; _root.enemywarfactory = 0; _global.dozers = []; _root.dozerarray = []; _root.enemydozerarray = []; _root.structurearray = []; _root.enemyservicedepot = 0; _root.enemystructurearray = []; _root.comcentre = 0; _root.enemycomcentre = 0; _root.oilarray = []; _root.enemyoiltruckarray = []; _root.oiltruckarray = []; _root.refinery = 0; _root.enemyrefinery = 0; _root.techcentre = 0; _root.enemytechcentre = 0; _root.enemyweaponsilo = 0; _root.turretarray = []; _root.enemyturretarray = [];
Instance of Symbol 1086 MovieClip "back" in Frame 78
onClipEvent (load) { this._x = 0; this._y = 0; }
Frame 79
_root.attachMovie("missiondefend6", "tutorial", 1000900); _root.tutorial._x = 46.8; _root.tutorial._y = 10.9; if (!(_root.ownmap4 === true)) { var i = (buildary.length - 1); while (i > -1) { _root.sidebar.build[buildary[i]].buildrate = _root.sidebar.build[buildary[i]].buildrate * 0.5; i--; } var i = (buildray.length - 1); while (i > -1) { _root.sidebar.build[buildray[i]].rates = _root.sidebar.build[buildray[i]].rates * 1.5; i--; } } if (_root.ownmap9 === false) { _root.sidebar.enemynuketimer.gotoAndPlay(2); } if (_root.ownmap9 === true) { _root.sidebar.nuketimer.gotoAndPlay(2); } Mouse.hide(); movetozero(); _root.nooiltruck = true; loadefunits("map8"); _root.sidebar.mapp.gotoAndStop(10); movetoloc(_root.lock2._x, _root.lock2._y); _root.waypoint100._x = _root.sensor1._x; _root.waypoint100._y = _root.sensor1._y; _root.waypoint101._x = _root.sensor1._x; _root.waypoint101._y = _root.sensor1._y; stop(); var no = _root.enemyattack; while (no > 0) { var p = 0; a = Math.random(); if ((a > 0) && (a < 0.2)) { unittype = "enemylight"; } if ((a > 0.2) && (a < 0.3)) { unittype = "enemyrocket"; } if ((a > 0.3) && (a < 0.4)) { unittype = "enemyheavy"; } if ((a > 0.4) && (a < 0.9)) { unittype = "enemyhumvee"; } if ((a > 0.9) && (a < 1)) { unittype = "enemyartillery"; } if (Math.random() < 0.8) { _root.attachMovie("enemydozer", "enemydozer" + _root.n, _root.n); _root["enemydozer" + _root.n]._x = _root.flag1._x; _root["enemydozer" + _root.n]._y = _root.flag1._y; _root["enemydozer" + _root.n]._rotation = 0; _root.n++; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.waypoint1._x + _root.linex[p]; _root[unittype + _root.n]._y = _root.waypoint1._y + _root.liney[p]; if (p >= _root.linex.length) { p = 0; } _root[unittype + _root.n]._rotation = 0; _root.array1.push(unittype + _root.n); unittype = undefined; _root.n++; no--; } stop();
Instance of Symbol 1022 MovieClip in Frame 79
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(38))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y + 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 79
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(37))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x + 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 79
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(39))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x - 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - 20; i--; } } } }
Instance of Symbol 1022 MovieClip in Frame 79
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(40))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y - 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y - 20; i--; } } } }
Instance of Symbol 1086 MovieClip "back" in Frame 79
onClipEvent (load) { this._x = 0; this._y = 0; }
Instance of Symbol 1099 MovieClip "ai" in Frame 79
onClipEvent (load) { timer = 0; _root.array2 = []; build = true; rounds = 0; _root.enemyoiltrucks = 0; } onClipEvent (enterFrame) { if (!(_root.ownmap6 === true)) { _root.sidebar.build.lasertank.gotoAndStop(1); } ppp = _root.enemyarray.toString(); Mouse.hide(); timer++; if (timer == 500) { i = _root.enemyarray.length - 1; while (i > -1) { current = _root.enemyarray[i]; if ((_root[current].unittype == "artillery") && (_root[current].turret._currentframe == 1)) { _root[current].deploy(); } i--; } if (_root.ownmap7 === true) { var p = 1; while (p > 0) { a = Math.random(); if ((a > 0) && (a < 0.1)) { unittype = "light"; } if ((a > 0.1) && (a < 0.4)) { unittype = "rocket"; } if ((a > 0.4) && (a < 0.5)) { unittype = "heavy"; } if ((a > 0.5) && (a < 0.6)) { unittype = "humvee"; } if ((a > 0.6) && (a < 1)) { unittype = "artillery"; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.reinforcement._x; _root[unittype + _root.n]._y = _root.reinforcement._y; _root[unittype + _root.n]._rotation = 0; unittype = undefined; _root.n++; p--; } } if (_root.ownmap7 === false) { p = 2; while (p > 0) { a = Math.random(); if ((a > 0) && (a < 0.4)) { unittype = "enemylight"; } if ((a > 0.4) && (a < 0.5)) { unittype = "enemyrocket"; } if ((a > 0.5) && (a < 0.6)) { unittype = "enemyheavy"; } if ((a > 0.6) && (a < 0.9)) { unittype = "enemyhumvee"; } if ((a > 0.9) && (a < 1)) { unittype = "enemyartillery"; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.flag1._x; _root[unittype + _root.n]._y = _root.flag1._y; _root[unittype + _root.n]._rotation = 0; _root.array2.push(unittype + _root.n); unittype = undefined; _root.n++; p--; } } _root.enemypower = _root.enemypower + (_root.difficulty * 5); timer = 0; } if (timer == 250) { if (_root.ownmap6 === false) { _root.enemymoney = _root.enemymoney + 10000; } if (_root.ownmap6 === true) { _root.money = _root.money + 10000; } if ((_root.enemycomcentre < 1) && (_root.enemymoney >= 5000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemycomcentre", _root.waypoint3._x, _root.waypoint3._y, 5000, 0.5); _root[current].build = true; break; } i--; } } if ((_root.enemyservicedepot < 1) && (_root.enemymoney >= 35000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyservicedepot", _root.waypoint47._x, _root.waypoint47._y, 1500, 1); _root[current].build = true; break; } i--; } } if ((_root.enemyrefinery < 1) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyrefinery", _root.waypoint2._x, _root.waypoint2._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemywarfactory == 0) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemywarfactory", _root.waypoint1._x, _root.waypoint1._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemytechcentre < 1) && (_root.enemymoney >= 40000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemytechcentre", _root.waypoint16._x, _root.waypoint16._y, 1500, 0.7); _root[current].build = true; break; } i--; } } i = 0; while (i < _root.array1.length) { current = _root.array1[i]; if (_root[current].life == undefined) { _root.array1.splice(i, 1); } if (i < (_root.array1.length - 5)) { _root.array2.push(current); _root.array1.splice(i, 1); if (Math.random() > 0.8) { _root[current].avoid = true; } if (Math.random() > 0.2) { _root[current].aggressive = false; } } i++; } } if ((Math.round(timer / 30) * 30) == timer) { if (_root.enemyarray.length == 0) { _root.gotoAndStop("victory8"); } if (_root.friendlylist.length <= 0) { _root.gotoAndStop("defeat8"); } n = _root.enemystructurearray.length - 1; while (n > -1) { current2 = _root.enemystructurearray[n]; i = dozers.length - 1; while (i > -1) { current = dozers[i]; if (_root[current].build || (_root[current].walking)) { } else { dx = _root[current]._x - _root[current2]._x; dy = _root[current]._y - _root[current2]._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 1500) { ant = 0; if (((_root[current2].life < _root[current2].fulllife) && (_root[current2].percent == undefined)) && (_root[current2].auto._currentframe == 1)) { if (!_root[current].hitTest(_root[current2])) { _root[current].aigoto(_root[current2]._x, _root[current2]._y, false); } _root[current2].auto.play(); h = array1.length - 1; while (h > -1) { currents = _root.array1[h]; if ((((_root[currents].natack == undefined) && (!_root[currents].walking)) && (!_root[currents].fireing)) && (ant < 5)) { ant++; _root[currents].aigoto(_root[current2]._x, _root[current2]._y, false); if (_root[current2].targetobj != undefined) { targetobj = _root[current2].targetobj; _root[currents].aiattack(targetobj); } } h--; } } } break; } i--; } n--; } } timescale = 8000 / _root.enemypower; if (_root.ownmap4 === false) { timescale = timescale * 0.5; } if ((Math.round(timer / timescale) * timescale) == timer) { if (((dozers.length < 4) && (_root.enemycomcentre1.life > 0)) && (_root.enemymoney > 1000)) { _root.enemymoney = _root.enemymoney - 1000; _root.attachMovie("enemydozer", "enemydozer" + _root.n, _root.n); _root["enemydozer" + _root.n]._x = _root.enemycomcentre1._x; _root["enemydozer" + _root.n]._y = _root.enemycomcentre1._y; _root["enemydozer" + _root.n]._rotation = 0; _root.n++; } if ((_root.enemymoney > 20000) && (!build)) { build = true; rounds++; } if ((_root.enemymoney < 15000) && (build)) { build = false; } i = 0; while (i < _root.array2.length) { current = _root.array2[i]; if (_root[current].life == undefined) { _root.array2.splice(i, 1); } else if (((!_root[current].fireing) && (!_root[current].walking)) && (!_root[current].walking)) { lo = Math.floor(Math.random() * (_root.friendlylist.length - 1)); unit = _root.friendlylist[lo]; _root[current].aiattack(unit); } i++; } arrayone = _root.array1.toString(); if (_root.enemywarfactory1.life > 0) { if ((_root.enemyoiltrucks < 2) && (_root.enemymoney >= 2000)) { _root.enemymoney = _root.enemymoney - 1500; _root.attachMovie("enemyoiltruck", "enemyoiltruck" + _root.n, _root.n); _root["enemyoiltruck" + _root.n]._x = _root.enemywarfactory1._x; _root["enemyoiltruck" + _root.n]._y = _root.enemywarfactory1._y; _root["enemyoiltruck" + _root.n]._rotation = 0; _root.n++; } if (build && (_root.enemymoney > 0)) { a = Math.random(); if ((a > 0) && (a < 0.4)) { unittype = "enemylight"; _root.enemymoney = _root.enemymoney - 1000; } if ((a > 0.4) && (a < 0.5)) { unittype = "enemyrocket"; _root.enemymoney = _root.enemymoney - 1500; } if ((a > 0.5) && (a < 0.6)) { unittype = "enemyheavy"; _root.enemymoney = _root.enemymoney - 2500; } if ((a > 0.6) && (a < 0.9)) { unittype = "enemyhumvee"; _root.enemymoney = _root.enemymoney - 500; } if ((a > 0.9) && (a < 1)) { unittype = "enemyartillery"; _root.enemymoney = _root.enemymoney - 2000; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.enemywarfactory1._x; _root[unittype + _root.n]._y = _root.enemywarfactory1._y + 100; _root[unittype + _root.n]._rotation = 0; _root.array1.push(unittype + _root.n); unittype = undefined; _root.n++; if (((_root.enemylasertank1._x == undefined) && (_root.enemytechcentre1._x != undefined)) && (_root.ownmap6 === false)) { if (Math.random() > 0.9) { _root.attachMovie("enemylasertank", "enemylasertank1", _root.n); _root.enemylasertank1._x = _root.enemywarfactory1._x; _root.enemylasertank1._y = _root.enemywarfactory1._y + 100; _root.enemylasertank1._rotation = 0; _root.enemymoney = _root.enemymoney - 7500; _root.array1.push("enemylasertank1"); } } } } } }
Instance of Symbol 1029 MovieClip "oil2" in Frame 79
onClipEvent (load) { this.oil.oilspill._xscale = 100; this.oil.oilspill._yscale = 100; }
Instance of Symbol 1029 MovieClip "oil1" in Frame 79
onClipEvent (load) { this.oil.oilspill._xscale = 100; this.oil.oilspill._yscale = 100; }
Instance of Symbol 1029 MovieClip "oil3" in Frame 79
onClipEvent (load) { this.oil.oilspill._xscale = 100; this.oil.oilspill._yscale = 100; }
Instance of Symbol 1036 MovieClip "rig10" in Frame 79
onClipEvent (load) { oilfield = "oil3"; _root.objarray.push(this._name); }
Instance of Symbol 1036 MovieClip "rig11" in Frame 79
onClipEvent (load) { oilfield = "oil2"; _root.objarray.push(this._name); }
Instance of Symbol 1038 MovieClip "burton" in Frame 79
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1009 MovieClip in Frame 79
onClipEvent (load) { ranges = 1; }
Instance of Symbol 20 MovieClip in Frame 79
onClipEvent (enterFrame) { po++; if (po == _root.shroudarray.length) { po = 0; } current = _root.shroudarray[po]; var revealed = false; i = _root.friendlylist.length - 1; while (i > -1) { current2 = _root.friendlylist[i]; if (_root[current2].unittype != "construction") { if (_root[current].hitTest(_root[current2])) { revealed = true; break; } } i--; } if (revealed) { _root[current]._visible = false; } if ((!revealed) && (_root.fog)) { _root[current]._visible = true; } } onClipEvent (load) { po = 0; }
Instance of Symbol 1099 MovieClip "ai" in Frame 79
onClipEvent (load) { timer = 0; _root.array1 = []; _root.array2 = []; build = true; rounds = 0; _root.enemyoiltrucks = 0; } onClipEvent (keyDown) { if ((_root.enemyattack <= 0) && (Key.isDown(13))) { _root.gotoAndStop("victory8d"); } } onClipEvent (enterFrame) { if (!(_root.ownmap6 === true)) { _root.sidebar.build.lasertank.gotoAndStop(1); } ppp = _root.enemyarray.toString(); Mouse.hide(); timer++; if (timer == 500) { if (_root.enemyattack <= 0) { _root.enemypower = _root.enemypower + 5; } } if (_root.enemyattack > 0) { if (timer == 500) { if (_root.ownmap8 === false) { p = 5; while (p > 0) { a = Math.random(); if ((a > 0) && (a < 0.2)) { unittype = "enemylight"; } if ((a > 0.2) && (a < 0.4)) { unittype = "enemyrocket"; } if ((a > 0.4) && (a < 0.6)) { unittype = "enemyheavy"; } if ((a > 0.6) && (a < 0.8)) { unittype = "enemyhumvee"; } if ((a > 0.8) && (a < 1)) { unittype = "enemyartillery"; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.flag1._x; _root[unittype + _root.n]._y = _root.flag1._y; _root[unittype + _root.n]._rotation = 0; _root.array2.push(unittype + _root.n); unittype = undefined; _root.n++; p--; } } if (_root.ownmap3 === true) { var p = 1; while (p > 0) { a = Math.random(); if ((a > 0) && (a < 0.2)) { unittype = "lightally"; } if ((a > 0.2) && (a < 0.4)) { unittype = "rocketally"; } if ((a > 0.4) && (a < 0.6)) { unittype = "heavyally"; } if ((a > 0.6) && (a < 0.8)) { unittype = "humveeally"; } if ((a > 0.8) && (a < 1)) { unittype = "artilleryally"; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.reinforcement._x; _root[unittype + _root.n]._y = _root.reinforcement._y; _root[unittype + _root.n]._rotation = 0; _root[unittype + _root.n].ally = true; unittype = undefined; _root.n++; p--; } } _root.enemypower = _root.enemypower + 5; timer = 0; } if (timer == 250) { if (_root.ownmap8 === true) { var p = 2; while (p > 0) { a = Math.random(); if ((a > 0) && (a < 0.2)) { unittype = "light"; } if ((a > 0.2) && (a < 0.4)) { unittype = "rocket"; } if ((a > 0.4) && (a < 0.6)) { unittype = "heavy"; } if ((a > 0.6) && (a < 0.8)) { unittype = "humvee"; } if ((a > 0.8) && (a < 1)) { unittype = "artillery"; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.reinforcement._x; _root[unittype + _root.n]._y = _root.reinforcement._y; _root[unittype + _root.n]._rotation = 0; _root[unittype + _root.n].ally = true; unittype = undefined; _root.n++; p--; } } if (_root.ownmap7 === false) { _root.enemymoney = _root.enemymoney + 10000; } if (_root.ownmap7 === true) { _root.money = _root.money + 10000; } if ((_root.enemycomcentre < 1) && (_root.enemymoney >= 5000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemycomcentre", _root.waypoint3._x, _root.waypoint3._y, 5000, 0.5); _root[current].build = true; break; } i--; } } if ((_root.enemyservicedepot < 1) && (_root.enemymoney >= 35000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyservicedepot", _root.waypoint47._x, _root.waypoint47._y, 1500, 1); _root[current].build = true; break; } i--; } } if ((_root.enemyrefinery < 1) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyrefinery", _root.waypoint2._x, _root.waypoint2._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemywarfactory == 0) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemywarfactory", _root.waypoint1._x, _root.waypoint1._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemytechcentre < 1) && (_root.enemymoney >= 40000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemytechcentre", _root.waypoint16._x, _root.waypoint16._y, 1500, 0.7); _root[current].build = true; break; } i--; } } if (((_root.enemytechcentre1._x != undefined) && (_root.enemyweaponsilo == 0)) && (_root.enemypower > 100)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyweaponsilo", _root.waypoint160._x, _root.waypoint160._y, 10000, 0.2); _root[current].build = true; break; } i--; } } i = 0; while (i < _root.array1.length) { current = _root.array1[i]; if (_root[current].life == undefined) { _root.array1.splice(i, 1); } if (i < (_root.array1.length - 5)) { _root.array2.push(current); _root.array1.splice(i, 1); if (Math.random() > 0.5) { _root[current].avoid = true; } if (Math.random() > 0.8) { _root[current].aggressive = false; } } i++; } } if ((Math.round(timer / 30) * 30) == timer) { if (_root.enemyarray.length <= 0) { _root.gotoAndStop("victory8d"); } if (_root.friendlylist.length <= 0) { _root.gotoAndStop("defeat8d"); } n = _root.enemystructurearray.length - 1; while (n > -1) { current2 = _root.enemystructurearray[n]; i = dozers.length - 1; while (i > -1) { current = dozers[i]; if (_root[current].build || (_root[current].walking)) { } else { dx = _root[current]._x - _root[current2]._x; dy = _root[current]._y - _root[current2]._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 1500) { ant = 0; if (((_root[current2].life < _root[current2].fulllife) && (_root[current2].percent == undefined)) && (_root[current2].auto._currentframe == 1)) { if (!_root[current].hitTest(_root[current2])) { _root[current].aigoto(_root[current2]._x, _root[current2]._y, false); } _root[current2].auto.play(); if (_root.ownmap5 === false) { h = array1.length - 1; while (h > -1) { currents = _root.array1[h]; if ((((_root[currents].natack == undefined) && (!_root[currents].walking)) && (!_root[currents].fireing)) && (ant < 5)) { ant++; _root[currents].aigoto(_root[current2]._x, _root[current2]._y, false); if (_root[current2].targetobj != undefined) { targetobj = _root[current2].targetobj; _root[currents].aiattack(targetobj); } } h--; } } } } break; } i--; } n--; } } timescale = 8000 / _root.enemypower; if (_root.ownmap4 === false) { timescale = timescale * 0.5; } if ((Math.round(timer / timescale) * timescale) == timer) { if (((dozers.length < 4) && (_root.enemycomcentre1.life > 0)) && (_root.enemymoney > 1000)) { _root.enemymoney = _root.enemymoney - 1000; _root.attachMovie("enemydozer", "enemydozer" + _root.n, _root.n); _root["enemydozer" + _root.n]._x = _root.enemycomcentre1._x; _root["enemydozer" + _root.n]._y = _root.enemycomcentre1._y; _root["enemydozer" + _root.n]._rotation = 0; _root.n++; } if ((_root.enemymoney > 40000) && (!build)) { build = true; rounds++; } if ((_root.enemymoney < 15000) && (build)) { build = false; } i = 0; while (i < _root.enemyarray.length) { current = _root.enemyarray[i]; if (_root[current].life == undefined) { _root.array2.splice(i, 1); } else if (((((!_root[current].fireing) && (!(_root[current].walking && (_root[current].attack === true)))) && (_root[current].getDepth() > 0)) && (_root[current].damage != undefined)) && (_root[current].speed != undefined)) { lo = Math.floor(Math.random() * (_root.friendlylist.length - 1)); unit = _root.friendlylist[lo]; if ((_root.techcentre1.life > 0) && (Math.random() > 0.5)) { unit = "airport"; } _root[current].aiattack(unit); } i++; } arrayone = _root.array1.toString(); if (_root.enemywarfactory1.life > 0) { if ((_root.enemyoiltrucks < 4) && (_root.enemymoney >= 2000)) { _root.enemymoney = _root.enemymoney - 1500; _root.attachMovie("enemyoiltruck", "enemyoiltruck" + _root.n, _root.n); _root["enemyoiltruck" + _root.n]._x = _root.enemywarfactory1._x; _root["enemyoiltruck" + _root.n]._y = _root.enemywarfactory1._y; _root["enemyoiltruck" + _root.n]._rotation = 0; _root.n++; } if (build || ((_root.array1.length < 20) && (_root.enemymoney > 0))) { a = Math.random(); if ((a > 0) && (a < 0.1)) { unittype = "enemylight"; _root.enemymoney = _root.enemymoney - 1000; } if ((a > 0.2) && (a < 0.4)) { unittype = "enemyrocket"; _root.enemymoney = _root.enemymoney - 1500; } if ((a > 0.4) && (a < 0.6)) { unittype = "enemyheavy"; _root.enemymoney = _root.enemymoney - 2500; } if ((a > 0.6) && (a < 0.9)) { unittype = "enemyhumvee"; _root.enemymoney = _root.enemymoney - 500; } if ((a > 0.9) && (a < 1)) { unittype = "enemyartillery"; _root.enemymoney = _root.enemymoney - 2000; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.enemywarfactory1._x; _root[unittype + _root.n]._y = _root.enemywarfactory1._y + 100; _root[unittype + _root.n]._rotation = 0; _root.array1.push(unittype + _root.n); unittype = undefined; _root.n++; if (((_root.enemylasertank1._x == undefined) && (_root.enemytechcentre1._x != undefined)) && (_root.ownmap6 === false)) { if (Math.random() > 0.9) { _root.attachMovie("enemylasertank", "enemylasertank1", _root.n); _root.enemylasertank1._x = _root.enemywarfactory1._x; _root.enemylasertank1._y = _root.enemywarfactory1._y + 100; _root.enemylasertank1._rotation = 0; _root.enemymoney = _root.enemymoney - 7500; _root.array1.push("enemylasertank1"); } } } } } } }
Instance of Symbol 1042 MovieClip "box" in Frame 79
onClipEvent (mouseDown) { x = _root.mouse._x - 30; y = _root.mouse._y - 30; if (((_root.sidebar.mapp.hitTest(x, y, true) && (_root.comcentre1.life > 0)) && (_root.comcentre1.life != undefined)) && (_root.sidebar._visible)) { x1s = x - x1; y1s = y - y1; x2s = _root.box6._x - x1; y2s = _root.box6._y - y1; _root.box6._x = x; _root.box6._y = y; x1s = x1s / constantx; y1s = y1s / constanty; x2s = x2s / constantx; y2s = y2s / constanty; _root.back._x = _root.back._x - (x1s - x2s); _root.back._y = _root.back._y - (y1s - y2s); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - (x1s - x2s); _root[current]._y = _root[current]._y - (y1s - y2s); i--; } } if ((!_root.sidebar.hitTest(x, y, false)) || (!_root.sidebar._visible)) { if (_root.selectedarray.arrayfind("warfactory1")) { _root.rallypoint._x = _root.mouse._x; _root.rallypoint._y = _root.mouse._y; } hits = false; this._x = _root._xmouse; this._y = _root._ymouse; i = _root.friendlylist.length - 1; while (i > -1) { current = _root.friendlylist[i]; if (_root[current].hitTest(this) && (current != "servicedepot1")) { hits = true; break; } i--; } origx = _root.mouse._x; origy = _root.mouse._y; this._visible = true; array = _root.formation; _root.formation = undefined; if (!hits) { i = _root.selectedarray.length - 1; while (i > -1) { current = _root.selectedarray[i]; if (((!_root[current].enemy) && (_root[current].speed != undefined)) && (!(_root[current].ally === true))) { _root[current].turret._rotation = _root[current].dummy._rotation; c = _root.enemyarray.length - 1; while (c > -1) { current2 = _root.enemyarray[c]; if (_root.mouse.hitTest(_root[current2])) { _root[current].targetobj = current2; _root[current].attack = true; _root[current].dummy.obstacle = false; _root[current].dummy.flag2 = undefined; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root["flag" + current]._x = _root.boxns._x; _root["flag" + current]._y = _root.boxns._y; _root[current].locx = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root[current].locy = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root.objarray.push("flag" + current); _root[current].walking = true; _root.n++; hit = true; break; } c--; } if (!hit) { origx = _root.mouse._x + _root[array + "x"][i]; origy = _root.mouse._y + _root[array + "y"][i]; if (isNaN(origx)) { origx = _root.mouse._x; } if (isNaN(origy)) { origy = _root.mouse._y; } current = _root.selectedarray[i]; _root[current].destx = origx; _root[current].desty = origy; _root[current].attack = false; _root[current].locx = undefined; _root[current].locy = undefined; _root[current].walking = true; _root[current].dummy.obstacle = false; _root[current].dummy.flag2 = undefined; _root["flag" + current].removeMovieClip(); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag", "flag" + current, _root.n); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } } if (Key.isDown(17)) { _root[current].targetobj = "flag" + current; _root[current].attack = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } hit = false; i--; } } } } onClipEvent (mouseUp) { x = _root.mouse._x; y = _root.mouse._y; _root.mouse.gotoAndStop(2); if ((!_root.sidebar.hitTest(x, y, true)) || (!_root.sidebar._visible)) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (_root[current].hitTest(this) && (!_root.selectedarray.arrayfind(current))) { _root[current].selector._visible = true; _root[current].selected1 = true; _root.selectedarray.push(current); } i--; } } origx = undefined; origy = undefined; this._visible = false; _root.sidebar.calccost(); } onClipEvent (enterFrame) { if (_root.mouse.hitTest(_root.sidebar)) { _root.sidebar._alpha = 100; } else { _root.sidebar._alpha = 30; } _root.timer++; if (_root.timer == 7000) { for (var name in _root) { if (typeof(_root[name]) == "movieclip") { if ((_root[name].fulllife != undefined) && ((_root[name].life == undefined) || (_root[name].life <= 0))) { _root[name].removeMovieClip(); } } } i = _root.friendlylist.length - 1; while (i > -1) { currents = _root.friendlylist[i]; if ((_root.friendlylist.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.friendlylist.splice(i, 1); } i--; } i = _root.enemyarray.length - 1; while (i > -1) { currents = _root.enemyarray[i]; if ((_root.enemyarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.enemyarray.splice(i, 1); } i--; } i = _root.objarray.length - 1; while (i > -1) { currents = _root.objarray[i]; if ((_root.objarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.objarray.splice(i, 1); } i--; } i = _root.unitsarray.length - 1; while (i > -1) { currents = _root.unitsarray[i]; if (((_root.unitsarray.countduplicate(currents) > 1) || (_root[currents].life == undefined)) || (_root[currents + "symbols"]._x == undefined)) { _root.unitsarray.splice(i, 1); } i--; } i = _root.shellarray.length - 1; while (i > -1) { currents = _root.shellarray[i]; if (_root.shellarray.countduplicate(currents) > 1) { _root.shellarray.splice(i, 1); } i--; } _root.timer = 0; } if (Key.isDown(32)) { _root.mouse.gotoAndStop(1); _root.selectedarray = []; i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; _root[current].selector._visible = false; _root[current].selected1 = false; _root.sidebar.calccost(); i--; } } if (this._visible) { a = _root._xmouse - origx; b = _root._ymouse - origy; this._width = Math.abs(a); this._height = Math.abs(b); if (a < 0) { this._xscale = this._xscale * -1; } if (b < 0) { this._yscale = this._yscale * -1; } } }
Frame 80
_root.map8array = []; movetozero(); saveunits("map8"); for (var name in _root) { if (typeof(_root[name]) == "movieclip") { _root[name].removeMovieClip(); } } _root.enemyattack = 0; _root.box6.removeMovieClip(); _root.ownmap9 = true; _root.missions++; stop();
Instance of Symbol 1099 MovieClip "ai" in Frame 80
onClipEvent (mouseUp) { _root.gotoAndStop("mapbar"); }
Frame 81
for (var name in _root) { if (typeof(_root[name]) == "movieclip") { _root[name].removeMovieClip(); } } _root.map8array = []; _root.ownmap8 = false; stop();
Frame 82
_root.mapbar.removeMovieClip(); _root.attachMovie("sidebar", "sidebar", 1000000); _root.attachMovie("mo", "mouse", 1000001); _root.sidebar._x = 132.6; _root.sidebar._y = 615; _root.sidebar._xscale = -58.5; _root.sidebar._yscale = 49.14; _root.sidebar._rotation = 90; _global.orix = _root.back._x; _global.oriy = _root.back._y; _root.attachMovie("box5", "box6", 10000004); _root.box6._x = x1; _root.box6._y = y1; _root.box6._height = (_root.box5._height / _root.back._height) * (y4 - y1); _root.box6._width = (_root.box5._width / _root.back._width) * (x4 - x1); _global.constanty = (y4 - y1) / _root.back._height; _global.constantx = (x4 - x1) / _root.back._width; _global.constantsy = (y4 - y1) / _root.back._height; _global.constantsx = (x4 - x1) / _root.back._width; play(); _root.objarray = []; _root.num = 0; _root.sparsex = [0, -50, 150, 100, -100, 150, 250, 200, -250, 300, 300, 350, -350, 400, -410, 500, -550]; _root.sparsey = [0, -50, 80, -180, 250, -50, 140, -150, 60, 150, -70, -220, -350, 350, -350, 375, -375]; _root.linex = [0, 0, 50, 50, 100, 100, 150, 150, 200, 200, 350, 350, 400, 400, 450, 450, 500, 500, 550, 550]; _root.liney = [0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50]; _root.unitsarray = []; _root.flagsarray = []; _root.selectedarray = []; _root.enemyarray = []; _root.shroudarray = []; _root.friendlylist = []; _root.shellarray = []; _root.enemyminearray = []; _root.obsarray = []; _root.minearray = []; _root.enemyminearray = []; _root.enemymoney = 30000; _root.warfactory = 0; _root.enemywarfactory = 0; _global.dozers = []; _root.dozerarray = []; _root.enemydozerarray = []; _root.structurearray = []; _root.enemyservicedepot = 0; _root.enemystructurearray = []; _root.comcentre = 0; _root.enemycomcentre = 0; _root.oilarray = []; _root.enemyoiltruckarray = []; _root.oiltruckarray = []; _root.refinery = 0; _root.enemyrefinery = 0; _root.techcentre = 0; _root.enemytechcentre = 0; _root.enemyweaponsilo = 0; _root.turretarray = []; _root.enemyturretarray = [];
Frame 83
_root.attachMovie("mission9", "tutorial", 1000900); _root.tutorial._x = 46.8; _root.tutorial._y = 10.9; if (!(_root.ownmap4 === true)) { var i = (buildary.length - 1); while (i > -1) { _root.sidebar.build[buildary[i]].buildrate = _root.sidebar.build[buildary[i]].buildrate * 0.5; i--; } var i = (buildray.length - 1); while (i > -1) { _root.sidebar.build[buildray[i]].rates = _root.sidebar.build[buildray[i]].rates * 1.5; i--; } } if (_root.ownmap9 === false) { _root.sidebar.enemynuketimer.gotoAndPlay(2); } if (_root.ownmap9 === true) { _root.sidebar.nuketimer.gotoAndPlay(2); } _root.back._x = 0; _root.back._y = 0; Mouse.hide(); _root.sidebar.mapp.gotoAndStop(11); loadattunits(); movetoloc(_root.lock2._x, _root.lock2._y); _root.waypoint100._x = _root.sensor1._x; _root.waypoint100._y = _root.sensor1._y; _root.waypoint101._x = _root.sensor1._x; _root.waypoint101._y = _root.sensor1._y; stop(); stop();
Instance of Symbol 1022 MovieClip in Frame 83
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(38))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y + 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 83
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(37))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x + 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 83
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(39))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x - 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - 20; i--; } } } }
Instance of Symbol 1022 MovieClip in Frame 83
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(40))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y - 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y - 20; i--; } } } }
Instance of Symbol 1164 MovieClip "back" in Frame 83
onClipEvent (load) { this._x = 0; this._y = 0; }
Instance of Symbol 20 MovieClip in Frame 83
onClipEvent (enterFrame) { po++; if (po == _root.obsarray.length) { po = 0; } current = _root.obsarray[po]; i = _root.unitsarray.length - 1; while (i > -1) { current2 = _root.unitsarray[i]; if (_root[current2].walking || (_root[current2].fireing)) { if (_root.back[current].hitTest(_root[current2])) { if (_root[current2].dummy.obstacle == undefined) { _root[current2].dummy.obstacle = false; } if ((!_root[current2].dummy.obstacle) || (_root[current2].dummy.obstacle == undefined)) { _root[current2].dummy.obstacle = true; if (_root.back[current].pos == "hoz") { roattion = _root[current2].dummy._rotation; if ((_root[current2].dummy._rotation >= -90) && (_root[current2].dummy._rotation < 90)) { _root[current2].dummy.flag2 = _root.back[current].rights; } if ((_root[current2].dummy._rotation >= 90) && (_root[current2].dummy._rotation < 360)) { _root[current2].dummy.flag2 = _root.back[current].lefts; } } if (_root.back[current].pos == "ver") { roattion = _root[current2].dummy._rotation; if ((_root[current2].dummy._rotation <= 0) && (_root[current2].dummy._rotation > -180)) { _root[current2].dummy.flag2 = _root.back[current].tops; } if ((_root[current2].dummy._rotation > 0) && (_root[current2].dummy._rotation < 180)) { _root[current2].dummy.flag2 = _root.back[current].bottoms; } } } } } i--; } } onClipEvent (load) { po = 0; }
Instance of Symbol 1099 MovieClip "ai" in Frame 83
onClipEvent (load) { timer = 0; _root.array2 = []; build = true; rounds = 0; _root.enemyoiltrucks = 0; } onClipEvent (enterFrame) { if (!(_root.ownmap6 === true)) { _root.sidebar.build.lasertank.gotoAndStop(1); } ppp = _root.enemyarray.toString(); Mouse.hide(); timer++; if (timer == 500) { i = _root.enemyarray.length - 1; while (i > -1) { current = _root.enemyarray[i]; if ((_root[current].unittype == "artillery") && (_root[current].turret._currentframe == 1)) { _root[current].deploy(); } i--; } if (_root.ownmap8 === true) { var p = 1; while (p > 0) { a = Math.random(); if ((a > 0) && (a < 0.1)) { unittype = "light"; } if ((a > 0.1) && (a < 0.4)) { unittype = "rocket"; } if ((a > 0.4) && (a < 0.5)) { unittype = "heavy"; } if ((a > 0.5) && (a < 0.6)) { unittype = "humvee"; } if ((a > 0.6) && (a < 1)) { unittype = "artillery"; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.reinforcement._x; _root[unittype + _root.n]._y = _root.reinforcement._y; _root[unittype + _root.n]._rotation = 0; unittype = undefined; _root.n++; p--; } } if (_root.ownmap8 === false) { p = 2; while (p > 0) { a = Math.random(); if ((a > 0) && (a < 0.2)) { unittype = "enemylight"; } if ((a > 0.2) && (a < 0.5)) { unittype = "enemyrocket"; } if ((a > 0.5) && (a < 0.8)) { unittype = "enemyheavy"; } if ((a > 0.8) && (a < 0.9)) { unittype = "enemyhumvee"; } if ((a > 0.9) && (a < 1)) { unittype = "enemyartillery"; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.flag1._x; _root[unittype + _root.n]._y = _root.flag1._y; _root[unittype + _root.n]._rotation = 0; _root.array2.push(unittype + _root.n); unittype = undefined; _root.n++; p--; } } _root.enemypower = _root.enemypower + (_root.difficulty * 5); timer = 0; } if (timer == 250) { if (_root.ownmap7 === false) { _root.enemymoney = _root.enemymoney + 10000; } if (_root.ownmap7 === true) { _root.money = _root.money + 10000; } if ((_root.enemycomcentre < 1) && (_root.enemymoney >= 5000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemycomcentre", _root.waypoint3._x, _root.waypoint3._y, 5000, 0.5); _root[current].build = true; break; } i--; } } if ((_root.enemyservicedepot < 1) && (_root.enemymoney >= 35000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyservicedepot", _root.waypoint47._x, _root.waypoint47._y, 1500, 1); _root[current].build = true; break; } i--; } } if ((_root.enemyrefinery < 1) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyrefinery", _root.waypoint2._x, _root.waypoint2._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemywarfactory == 0) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemywarfactory", _root.waypoint1._x, _root.waypoint1._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemytechcentre < 1) && (_root.enemymoney >= 40000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemytechcentre", _root.waypoint16._x, _root.waypoint16._y, 1500, 0.7); _root[current].build = true; break; } i--; } } i = 0; while (i < _root.array1.length) { current = _root.array1[i]; if (_root[current].life == undefined) { _root.array1.splice(i, 1); } if (i < (_root.array1.length - 5)) { _root.array2.push(current); _root.array1.splice(i, 1); if (Math.random() > 0.8) { _root[current].avoid = true; } if (Math.random() > 0.2) { _root[current].aggressive = false; } } i++; } } if ((Math.round(timer / 30) * 30) == timer) { if (_root.enemyarray.length == 0) { _root.gotoAndStop("victory9"); } if (_root.friendlylist.length <= 0) { _root.gotoAndStop("defeat9"); } n = _root.enemystructurearray.length - 1; while (n > -1) { current2 = _root.enemystructurearray[n]; i = dozers.length - 1; while (i > -1) { current = dozers[i]; if (_root[current].build || (_root[current].walking)) { } else { dx = _root[current]._x - _root[current2]._x; dy = _root[current]._y - _root[current2]._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 1500) { ant = 0; if (((_root[current2].life < _root[current2].fulllife) && (_root[current2].percent == undefined)) && (_root[current2].auto._currentframe == 1)) { if (!_root[current].hitTest(_root[current2])) { _root[current].aigoto(_root[current2]._x, _root[current2]._y, false); } _root[current2].auto.play(); h = array1.length - 1; while (h > -1) { currents = _root.array1[h]; if ((((_root[currents].natack == undefined) && (!_root[currents].walking)) && (!_root[currents].fireing)) && (ant < 5)) { ant++; _root[currents].aigoto(_root[current2]._x, _root[current2]._y, false); if (_root[current2].targetobj != undefined) { targetobj = _root[current2].targetobj; _root[currents].aiattack(targetobj); } } h--; } } } break; } i--; } n--; } } timescale = 8000 / _root.enemypower; if (_root.ownmap4 === false) { timescale = timescale * 0.5; } if ((Math.round(timer / timescale) * timescale) == timer) { if (((dozers.length < 4) && (_root.enemycomcentre1.life > 0)) && (_root.enemymoney > 1000)) { _root.enemymoney = _root.enemymoney - 1000; _root.attachMovie("enemydozer", "enemydozer" + _root.n, _root.n); _root["enemydozer" + _root.n]._x = _root.enemycomcentre1._x; _root["enemydozer" + _root.n]._y = _root.enemycomcentre1._y; _root["enemydozer" + _root.n]._rotation = 0; _root.n++; } if ((_root.enemymoney > 40000) && (!build)) { build = true; rounds++; } if ((_root.enemymoney < 15000) && (build)) { build = false; } i = 0; while (i < _root.enemyarray.length) { current = _root.enemyarray[i]; if (_root[current].life == undefined) { _root.array2.splice(i, 1); } else if (((((!_root[current].fireing) && (!(_root[current].walking && (_root[current].attack === true)))) && (_root[current].getDepth() > 0)) && (_root[current].damage != undefined)) && (_root[current].speed != undefined)) { lo = Math.floor(Math.random() * (_root.friendlylist.length - 1)); unit = _root.friendlylist[lo]; _root[current].aiattack(unit); } i++; } arrayone = _root.array1.toString(); if (_root.enemywarfactory1.life > 0) { if ((_root.enemyoiltrucks < 2) && (_root.enemymoney >= 2000)) { _root.enemymoney = _root.enemymoney - 1500; _root.attachMovie("enemyoiltruck", "enemyoiltruck" + _root.n, _root.n); _root["enemyoiltruck" + _root.n]._x = _root.enemywarfactory1._x; _root["enemyoiltruck" + _root.n]._y = _root.enemywarfactory1._y; _root["enemyoiltruck" + _root.n]._rotation = 0; _root.n++; } if (build && (_root.enemymoney > 0)) { a = Math.random(); if ((a > 0) && (a < 0.2)) { unittype = "enemylight"; _root.enemymoney = _root.enemymoney - 1000; } if ((a > 0.2) && (a < 0.5)) { unittype = "enemyrocket"; _root.enemymoney = _root.enemymoney - 1500; } if ((a > 0.5) && (a < 0.8)) { unittype = "enemyheavy"; _root.enemymoney = _root.enemymoney - 2500; } if ((a > 0.8) && (a < 0.9)) { unittype = "enemyhumvee"; _root.enemymoney = _root.enemymoney - 500; } if ((a > 0.9) && (a < 1)) { unittype = "enemyartillery"; _root.enemymoney = _root.enemymoney - 2000; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.enemywarfactory1._x; _root[unittype + _root.n]._y = _root.enemywarfactory1._y + 100; _root[unittype + _root.n]._rotation = 0; _root.array1.push(unittype + _root.n); unittype = undefined; _root.n++; if (((_root.enemylasertank1._x == undefined) && (_root.enemytechcentre1._x != undefined)) && (_root.ownmap6 === false)) { if (Math.random() > 0.9) { _root.attachMovie("enemylasertank", "enemylasertank1", _root.n); _root.enemylasertank1._x = _root.enemywarfactory1._x; _root.enemylasertank1._y = _root.enemywarfactory1._y + 100; _root.enemylasertank1._rotation = 0; _root.enemymoney = _root.enemymoney - 7500; _root.array1.push("enemylasertank1"); } } } } } }
Instance of Symbol 1038 MovieClip "burton" in Frame 83
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1009 MovieClip in Frame 83
onClipEvent (load) { ranges = 1; }
Instance of Symbol 1029 MovieClip "oil2" in Frame 83
onClipEvent (load) { this.oil.oilspill._xscale = 100; this.oil.oilspill._yscale = 100; }
Instance of Symbol 1036 MovieClip "rig11" in Frame 83
onClipEvent (load) { oilfield = "oil2"; _root.objarray.push(this._name); }
Instance of Symbol 1029 MovieClip "oil1" in Frame 83
onClipEvent (load) { this.oil.oilspill._xscale = 100; this.oil.oilspill._yscale = 100; }
Instance of Symbol 1036 MovieClip "rig10" in Frame 83
onClipEvent (load) { oilfield = "oil1"; _root.objarray.push(this._name); }
Instance of Symbol 1042 MovieClip "box" in Frame 83
onClipEvent (mouseDown) { x = _root.mouse._x - 30; y = _root.mouse._y - 30; if (((_root.sidebar.mapp.hitTest(x, y, true) && (_root.comcentre1.life > 0)) && (_root.comcentre1.life != undefined)) && (_root.sidebar._visible)) { x1s = x - x1; y1s = y - y1; x2s = _root.box6._x - x1; y2s = _root.box6._y - y1; _root.box6._x = x; _root.box6._y = y; x1s = x1s / constantx; y1s = y1s / constanty; x2s = x2s / constantx; y2s = y2s / constanty; _root.back._x = _root.back._x - (x1s - x2s); _root.back._y = _root.back._y - (y1s - y2s); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - (x1s - x2s); _root[current]._y = _root[current]._y - (y1s - y2s); i--; } } if ((!_root.sidebar.hitTest(x, y, false)) || (!_root.sidebar._visible)) { if (_root.selectedarray.arrayfind("warfactory1")) { _root.rallypoint._x = _root.mouse._x; _root.rallypoint._y = _root.mouse._y; } hits = false; this._x = _root._xmouse; this._y = _root._ymouse; i = _root.friendlylist.length - 1; while (i > -1) { current = _root.friendlylist[i]; if (_root[current].hitTest(this) && (current != "servicedepot1")) { hits = true; break; } i--; } origx = _root.mouse._x; origy = _root.mouse._y; this._visible = true; array = _root.formation; _root.formation = undefined; if (!hits) { i = _root.selectedarray.length - 1; while (i > -1) { current = _root.selectedarray[i]; if (((!_root[current].enemy) && (_root[current].speed != undefined)) && (!(_root[current].ally === true))) { _root[current].turret._rotation = _root[current].dummy._rotation; c = _root.enemyarray.length - 1; while (c > -1) { current2 = _root.enemyarray[c]; if (_root.mouse.hitTest(_root[current2])) { _root[current].targetobj = current2; _root[current].attack = true; _root[current].dummy.obstacle = false; _root[current].dummy.flag2 = undefined; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root["flag" + current]._x = _root.boxns._x; _root["flag" + current]._y = _root.boxns._y; _root[current].locx = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root[current].locy = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root.objarray.push("flag" + current); _root[current].walking = true; _root.n++; hit = true; break; } c--; } if (!hit) { origx = _root.mouse._x + _root[array + "x"][i]; origy = _root.mouse._y + _root[array + "y"][i]; if (isNaN(origx)) { origx = _root.mouse._x; } if (isNaN(origy)) { origy = _root.mouse._y; } current = _root.selectedarray[i]; _root[current].destx = origx; _root[current].desty = origy; _root[current].attack = false; _root[current].locx = undefined; _root[current].locy = undefined; _root[current].walking = true; _root[current].dummy.obstacle = false; _root[current].dummy.flag2 = undefined; _root["flag" + current].removeMovieClip(); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag", "flag" + current, _root.n); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } } if (Key.isDown(17)) { _root[current].targetobj = "flag" + current; _root[current].attack = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } hit = false; i--; } } } } onClipEvent (mouseUp) { x = _root.mouse._x; y = _root.mouse._y; _root.mouse.gotoAndStop(2); if ((!_root.sidebar.hitTest(x, y, true)) || (!_root.sidebar._visible)) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (_root[current].hitTest(this) && (!_root.selectedarray.arrayfind(current))) { _root[current].selector._visible = true; _root[current].selected1 = true; _root.selectedarray.push(current); } i--; } } origx = undefined; origy = undefined; this._visible = false; _root.sidebar.calccost(); } onClipEvent (enterFrame) { if (_root.mouse.hitTest(_root.sidebar)) { _root.sidebar._alpha = 100; } else { _root.sidebar._alpha = 30; } _root.timer++; if (_root.timer == 7000) { for (var name in _root) { if (typeof(_root[name]) == "movieclip") { if ((_root[name].fulllife != undefined) && ((_root[name].life == undefined) || (_root[name].life <= 0))) { _root[name].removeMovieClip(); } } } i = _root.friendlylist.length - 1; while (i > -1) { currents = _root.friendlylist[i]; if ((_root.friendlylist.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.friendlylist.splice(i, 1); } i--; } i = _root.enemyarray.length - 1; while (i > -1) { currents = _root.enemyarray[i]; if ((_root.enemyarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.enemyarray.splice(i, 1); } i--; } i = _root.objarray.length - 1; while (i > -1) { currents = _root.objarray[i]; if ((_root.objarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.objarray.splice(i, 1); } i--; } i = _root.unitsarray.length - 1; while (i > -1) { currents = _root.unitsarray[i]; if (((_root.unitsarray.countduplicate(currents) > 1) || (_root[currents].life == undefined)) || (_root[currents + "symbols"]._x == undefined)) { _root.unitsarray.splice(i, 1); } i--; } i = _root.shellarray.length - 1; while (i > -1) { currents = _root.shellarray[i]; if (_root.shellarray.countduplicate(currents) > 1) { _root.shellarray.splice(i, 1); } i--; } _root.timer = 0; } if (Key.isDown(32)) { _root.mouse.gotoAndStop(1); _root.selectedarray = []; i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; _root[current].selector._visible = false; _root[current].selected1 = false; _root.sidebar.calccost(); i--; } } if (this._visible) { a = _root._xmouse - origx; b = _root._ymouse - origy; this._width = Math.abs(a); this._height = Math.abs(b); if (a < 0) { this._xscale = this._xscale * -1; } if (b < 0) { this._yscale = this._yscale * -1; } } }
Instance of Symbol 20 MovieClip in Frame 83
onClipEvent (enterFrame) { po++; if (po == _root.shroudarray.length) { po = 0; } current = _root.shroudarray[po]; var revealed = false; i = _root.friendlylist.length - 1; while (i > -1) { current2 = _root.friendlylist[i]; if (_root[current2].unittype != "construction") { if (_root[current].hitTest(_root[current2])) { revealed = true; break; } } i--; } if (revealed) { _root[current]._visible = false; } if ((!revealed) && (_root.fog)) { _root[current]._visible = true; } } onClipEvent (load) { po = 0; } onClipEvent (load) { po = 0; }
Frame 84
_root.map9array = []; _root.attackarray = []; movetozero(); i = _root.friendlylist.length - 1; while (i > -1) { current = _root.friendlylist[i]; if (_root[current].fulllife != undefined) { _root[current + "obj"] = {}; _root[current + "obj"].unittype = _root[current].unittype; _root[current + "obj"].unit = current + "map9"; _root.map9array.push(current); if (_root[current].auto._x != undefined) { _root[current + "obj"].x = _root[current]._x; _root[current + "obj"].y = _root[current]._y; _root[current + "obj"].fulllife = _root[current].fulllife; if (_root[current].damage != undefined) { _root[current + "obj"].damage = _root[current].damage; _root[current + "obj"].range = _root[current].range; _root[current + "obj"].firerate = _root[current].firerate; _root[current + "obj"].shellspd = _root[current].shellspd; } } if (_root[current].auto._x == undefined) { _root[current + "obj"].damage = _root[current].damage; _root[current + "obj"].range = _root[current].range; _root[current + "obj"].firerate = _root[current].firerate; _root[current + "obj"].speed = _root[current].speed; _root[current + "obj"].fulllife = _root[current].fulllife; _root[current + "obj"].shellspd = _root[current].shellspd; _root[current + "obj"].laser = _root[current].laser; _root[current + "obj"].gatling = _root[current].gatling; _root[current + "obj"].crush = _root[current].crush; _root[current + "obj"].missile = _root[current].missile; _root[current + "obj"].auto = _root[current].auto; _root[current + "obj"].nuke = _root[current].nuke; _root[current + "obj"].emp = _root[current].emp; _root[current + "obj"].shell2 = _root[current].shell2; _root[current + "obj"].accurate = _root[current].accurate; _root[current + "obj"].miss = _root[current].miss; _root[current + "obj"].seeker = _root[current].seeker; _root[current + "obj"].blast = _root[current].blast; _root[current + "obj"].hitonly = _root[current].hitonly; } } i--; } _root.box6.removeMovieClip(); for (var name in _root) { if (typeof(_root[name]) == "movieclip") { if (_root[name]._visible) { _root[name].removeMovieClip(); } } } _root.enemypower = _root.enemypower - 50; _root.ownmap9 = true; if (_root.ownmap7 == undefined) { _root.ownmap7 = false; _root.ownmap8 = false; _root.ownmap9 = false; } _root.missions++; stop();
Instance of Symbol 1099 MovieClip "ai" in Frame 84
onClipEvent (mouseUp) { _root.gotoAndStop("mapbar"); }
Frame 85
for (var name in _root) { if (typeof(_root[name]) == "movieclip") { _root[name].removeMovieClip(); } } _root.attackarray = []; _root.ownmap9 = false; _root.lasertankfactlity = undefined; stop();
Frame 86
_root.attachMovie("sidebar", "sidebar", 1000000); _root.attachMovie("mo", "mouse", 1000001); _root.sidebar._x = 132.6; _root.sidebar._y = 615; _root.sidebar._xscale = -58.5; _root.sidebar._yscale = 49.14; _root.sidebar._rotation = 90; _global.orix = _root.back._x; _global.oriy = _root.back._y; _root.attachMovie("box5", "box6", 10000004); _root.box6._x = x1; _root.box6._y = y1; _root.box6._height = (_root.box5._height / _root.back._height) * (y4 - y1); _root.box6._width = (_root.box5._width / _root.back._width) * (x4 - x1); _global.constanty = (y4 - y1) / _root.back._height; _global.constantx = (x4 - x1) / _root.back._width; _global.constantsy = (y4 - y1) / _root.back._height; _global.constantsx = (x4 - x1) / _root.back._width; play(); _root.objarray = []; _root.num = 0; _root.sparsex = [0, -50, 150, 100, -100, 150, 250, 200, -250, 300, 300, 350, -350, 400, -410, 500, -550]; _root.sparsey = [0, -50, 80, -180, 250, -50, 140, -150, 60, 150, -70, -220, -350, 350, -350, 375, -375]; _root.linex = [0, 0, 50, 50, 100, 100, 150, 150, 200, 200, 350, 350, 400, 400, 450, 450, 500, 500, 550, 550]; _root.liney = [0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50]; _root.unitsarray = []; _root.flagsarray = []; _root.selectedarray = []; _root.enemyarray = []; _root.shroudarray = []; _root.friendlylist = []; _root.shellarray = []; _root.enemyminearray = []; _root.minearray = []; _root.enemyminearray = []; _root.enemymoney = 50000; _root.warfactory = 0; _root.enemywarfactory = 0; _global.dozers = []; _root.dozerarray = []; _root.enemydozerarray = []; _root.structurearray = []; _root.enemyservicedepot = 0; _root.enemystructurearray = []; _root.comcentre = 0; _root.enemycomcentre = 0; _root.oilarray = []; _root.enemyoiltruckarray = []; _root.oiltruckarray = []; _root.refinery = 0; _root.enemyrefinery = 0; _root.techcentre = 0; _root.enemytechcentre = 0; _root.enemyweaponsilo = 0; _root.turretarray = []; _root.enemyturretarray = [];
Instance of Symbol 1164 MovieClip "back" in Frame 86
onClipEvent (load) { this._x = 0; this._y = 0; }
Frame 87
_root.attachMovie("missiondefend7", "tutorial", 1000900); _root.tutorial._x = 46.8; _root.tutorial._y = 10.9; if (!(_root.ownmap4 === true)) { var i = (buildary.length - 1); while (i > -1) { _root.sidebar.build[buildary[i]].buildrate = _root.sidebar.build[buildary[i]].buildrate * 0.5; i--; } var i = (buildray.length - 1); while (i > -1) { _root.sidebar.build[buildray[i]].rates = _root.sidebar.build[buildray[i]].rates * 1.5; i--; } } if (_root.ownmap9 === false) { _root.sidebar.enemynuketimer.gotoAndPlay(2); } if (_root.ownmap9 === true) { _root.sidebar.nuketimer.gotoAndPlay(2); } Mouse.hide(); movetozero(); _root.nooiltruck = true; loadefunits("map9"); _root.sidebar.mapp.gotoAndStop(10); movetoloc(_root.lock2._x, _root.lock2._y); _root.waypoint100._x = _root.sensor1._x; _root.waypoint100._y = _root.sensor1._y; _root.waypoint101._x = _root.sensor1._x; _root.waypoint101._y = _root.sensor1._y; stop(); var no = _root.enemyattack; while (no > 0) { var p = 0; a = Math.random(); if ((a > 0) && (a < 0.2)) { unittype = "enemylight"; } if ((a > 0.2) && (a < 0.3)) { unittype = "enemyrocket"; } if ((a > 0.3) && (a < 0.4)) { unittype = "enemyheavy"; } if ((a > 0.4) && (a < 0.9)) { unittype = "enemyhumvee"; } if ((a > 0.9) && (a < 1)) { unittype = "enemyartillery"; } if (Math.random() < 0.8) { _root.attachMovie("enemydozer", "enemydozer" + _root.n, _root.n); _root["enemydozer" + _root.n]._x = _root.flag1._x; _root["enemydozer" + _root.n]._y = _root.flag1._y; _root["enemydozer" + _root.n]._rotation = 0; _root.n++; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.waypoint1._x + _root.linex[p]; _root[unittype + _root.n]._y = _root.waypoint1._y + _root.liney[p]; if (p >= _root.linex.length) { p = 0; } _root[unittype + _root.n]._rotation = 0; _root.array1.push(unittype + _root.n); unittype = undefined; _root.n++; no--; } stop();
Instance of Symbol 1022 MovieClip in Frame 87
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(38))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y + 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 87
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(37))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x + 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 87
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(39))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x - 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - 20; i--; } } } }
Instance of Symbol 1022 MovieClip in Frame 87
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(40))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y - 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y - 20; i--; } } } }
Instance of Symbol 1164 MovieClip "back" in Frame 87
onClipEvent (load) { this._x = 0; this._y = 0; }
Instance of Symbol 1099 MovieClip "ai" in Frame 87
onClipEvent (load) { timer = 0; _root.array2 = []; build = true; rounds = 0; _root.enemyoiltrucks = 0; } onClipEvent (enterFrame) { if (!(_root.ownmap6 === true)) { _root.sidebar.build.lasertank.gotoAndStop(1); } ppp = _root.enemyarray.toString(); Mouse.hide(); timer++; if (timer == 500) { i = _root.enemyarray.length - 1; while (i > -1) { current = _root.enemyarray[i]; if ((_root[current].unittype == "artillery") && (_root[current].turret._currentframe == 1)) { _root[current].deploy(); } i--; } if (_root.ownmap7 === true) { var p = 1; while (p > 0) { a = Math.random(); if ((a > 0) && (a < 0.1)) { unittype = "light"; } if ((a > 0.1) && (a < 0.4)) { unittype = "rocket"; } if ((a > 0.4) && (a < 0.5)) { unittype = "heavy"; } if ((a > 0.5) && (a < 0.6)) { unittype = "humvee"; } if ((a > 0.6) && (a < 1)) { unittype = "artillery"; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.reinforcement._x; _root[unittype + _root.n]._y = _root.reinforcement._y; _root[unittype + _root.n]._rotation = 0; unittype = undefined; _root.n++; p--; } } if (_root.ownmap7 === false) { p = 2; while (p > 0) { a = Math.random(); if ((a > 0) && (a < 0.4)) { unittype = "enemylight"; } if ((a > 0.4) && (a < 0.5)) { unittype = "enemyrocket"; } if ((a > 0.5) && (a < 0.6)) { unittype = "enemyheavy"; } if ((a > 0.6) && (a < 0.9)) { unittype = "enemyhumvee"; } if ((a > 0.9) && (a < 1)) { unittype = "enemyartillery"; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.flag1._x; _root[unittype + _root.n]._y = _root.flag1._y; _root[unittype + _root.n]._rotation = 0; _root.array2.push(unittype + _root.n); unittype = undefined; _root.n++; p--; } } _root.enemypower = _root.enemypower + (_root.difficulty * 5); timer = 0; } if (timer == 250) { if (_root.ownmap6 === false) { _root.enemymoney = _root.enemymoney + 10000; } if (_root.ownmap6 === true) { _root.money = _root.money + 10000; } if ((_root.enemycomcentre < 1) && (_root.enemymoney >= 5000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemycomcentre", _root.waypoint3._x, _root.waypoint3._y, 5000, 0.5); _root[current].build = true; break; } i--; } } if ((_root.enemyservicedepot < 1) && (_root.enemymoney >= 35000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyservicedepot", _root.waypoint47._x, _root.waypoint47._y, 1500, 1); _root[current].build = true; break; } i--; } } if ((_root.enemyrefinery < 1) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyrefinery", _root.waypoint2._x, _root.waypoint2._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemywarfactory == 0) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemywarfactory", _root.waypoint1._x, _root.waypoint1._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemytechcentre < 1) && (_root.enemymoney >= 40000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemytechcentre", _root.waypoint16._x, _root.waypoint16._y, 1500, 0.7); _root[current].build = true; break; } i--; } } i = 0; while (i < _root.array1.length) { current = _root.array1[i]; if (_root[current].life == undefined) { _root.array1.splice(i, 1); } if (i < (_root.array1.length - 5)) { _root.array2.push(current); _root.array1.splice(i, 1); if (Math.random() > 0.8) { _root[current].avoid = true; } if (Math.random() > 0.2) { _root[current].aggressive = false; } } i++; } } if ((Math.round(timer / 30) * 30) == timer) { if (_root.enemyarray.length == 0) { _root.gotoAndStop("victory8"); } if (_root.friendlylist.length <= 0) { _root.gotoAndStop("defeat8"); } n = _root.enemystructurearray.length - 1; while (n > -1) { current2 = _root.enemystructurearray[n]; i = dozers.length - 1; while (i > -1) { current = dozers[i]; if (_root[current].build || (_root[current].walking)) { } else { dx = _root[current]._x - _root[current2]._x; dy = _root[current]._y - _root[current2]._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 1500) { ant = 0; if (((_root[current2].life < _root[current2].fulllife) && (_root[current2].percent == undefined)) && (_root[current2].auto._currentframe == 1)) { if (!_root[current].hitTest(_root[current2])) { _root[current].aigoto(_root[current2]._x, _root[current2]._y, false); } _root[current2].auto.play(); h = array1.length - 1; while (h > -1) { currents = _root.array1[h]; if ((((_root[currents].natack == undefined) && (!_root[currents].walking)) && (!_root[currents].fireing)) && (ant < 5)) { ant++; _root[currents].aigoto(_root[current2]._x, _root[current2]._y, false); if (_root[current2].targetobj != undefined) { targetobj = _root[current2].targetobj; _root[currents].aiattack(targetobj); } } h--; } } } break; } i--; } n--; } } timescale = 8000 / _root.enemypower; if (_root.ownmap4 === false) { timescale = timescale * 0.5; } if ((Math.round(timer / timescale) * timescale) == timer) { if (((dozers.length < 4) && (_root.enemycomcentre1.life > 0)) && (_root.enemymoney > 1000)) { _root.enemymoney = _root.enemymoney - 1000; _root.attachMovie("enemydozer", "enemydozer" + _root.n, _root.n); _root["enemydozer" + _root.n]._x = _root.enemycomcentre1._x; _root["enemydozer" + _root.n]._y = _root.enemycomcentre1._y; _root["enemydozer" + _root.n]._rotation = 0; _root.n++; } if ((_root.enemymoney > 20000) && (!build)) { build = true; rounds++; } if ((_root.enemymoney < 15000) && (build)) { build = false; } i = 0; while (i < _root.array2.length) { current = _root.array2[i]; if (_root[current].life == undefined) { _root.array2.splice(i, 1); } else if (((!_root[current].fireing) && (!_root[current].walking)) && (!_root[current].walking)) { lo = Math.floor(Math.random() * (_root.friendlylist.length - 1)); unit = _root.friendlylist[lo]; _root[current].aiattack(unit); } i++; } arrayone = _root.array1.toString(); if (_root.enemywarfactory1.life > 0) { if ((_root.enemyoiltrucks < 2) && (_root.enemymoney >= 2000)) { _root.enemymoney = _root.enemymoney - 1500; _root.attachMovie("enemyoiltruck", "enemyoiltruck" + _root.n, _root.n); _root["enemyoiltruck" + _root.n]._x = _root.enemywarfactory1._x; _root["enemyoiltruck" + _root.n]._y = _root.enemywarfactory1._y; _root["enemyoiltruck" + _root.n]._rotation = 0; _root.n++; } if (build && (_root.enemymoney > 0)) { a = Math.random(); if ((a > 0) && (a < 0.4)) { unittype = "enemylight"; _root.enemymoney = _root.enemymoney - 1000; } if ((a > 0.4) && (a < 0.5)) { unittype = "enemyrocket"; _root.enemymoney = _root.enemymoney - 1500; } if ((a > 0.5) && (a < 0.6)) { unittype = "enemyheavy"; _root.enemymoney = _root.enemymoney - 2500; } if ((a > 0.6) && (a < 0.9)) { unittype = "enemyhumvee"; _root.enemymoney = _root.enemymoney - 500; } if ((a > 0.9) && (a < 1)) { unittype = "enemyartillery"; _root.enemymoney = _root.enemymoney - 2000; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.enemywarfactory1._x; _root[unittype + _root.n]._y = _root.enemywarfactory1._y + 100; _root[unittype + _root.n]._rotation = 0; _root.array1.push(unittype + _root.n); unittype = undefined; _root.n++; if (((_root.enemylasertank1._x == undefined) && (_root.enemytechcentre1._x != undefined)) && (_root.ownmap6 === false)) { if (Math.random() > 0.9) { _root.attachMovie("enemylasertank", "enemylasertank1", _root.n); _root.enemylasertank1._x = _root.enemywarfactory1._x; _root.enemylasertank1._y = _root.enemywarfactory1._y + 100; _root.enemylasertank1._rotation = 0; _root.enemymoney = _root.enemymoney - 7500; _root.array1.push("enemylasertank1"); } } } } } }
Instance of Symbol 1029 MovieClip "oil2" in Frame 87
onClipEvent (load) { this.oil.oilspill._xscale = 100; this.oil.oilspill._yscale = 100; }
Instance of Symbol 1029 MovieClip "oil3" in Frame 87
onClipEvent (load) { this.oil.oilspill._xscale = 100; this.oil.oilspill._yscale = 100; }
Instance of Symbol 1036 MovieClip "rig10" in Frame 87
onClipEvent (load) { oilfield = "oil3"; _root.objarray.push(this._name); }
Instance of Symbol 1036 MovieClip "rig11" in Frame 87
onClipEvent (load) { oilfield = "oil2"; _root.objarray.push(this._name); }
Instance of Symbol 1038 MovieClip "burton" in Frame 87
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1009 MovieClip in Frame 87
onClipEvent (load) { ranges = 1; }
Instance of Symbol 20 MovieClip in Frame 87
onClipEvent (enterFrame) { po++; if (po == _root.shroudarray.length) { po = 0; } current = _root.shroudarray[po]; var revealed = false; i = _root.friendlylist.length - 1; while (i > -1) { current2 = _root.friendlylist[i]; if (_root[current2].unittype != "construction") { if (_root[current].hitTest(_root[current2])) { revealed = true; break; } } i--; } if (revealed) { _root[current]._visible = false; } if ((!revealed) && (_root.fog)) { _root[current]._visible = true; } } onClipEvent (load) { po = 0; }
Instance of Symbol 1099 MovieClip "ai" in Frame 87
onClipEvent (load) { timer = 0; _root.array1 = []; _root.array2 = []; build = true; rounds = 0; _root.enemyoiltrucks = 0; } onClipEvent (keyDown) { if ((_root.enemyattack <= 0) && (Key.isDown(13))) { _root.gotoAndStop("victory9d"); } } onClipEvent (enterFrame) { if (!(_root.ownmap6 === true)) { _root.sidebar.build.lasertank.gotoAndStop(1); } ppp = _root.enemyarray.toString(); Mouse.hide(); timer++; if (timer == 500) { if (_root.enemyattack <= 0) { _root.enemypower = _root.enemypower + 5; } } if (_root.enemyattack > 0) { if (timer == 500) { if (_root.ownmap8 === false) { p = 5; while (p > 0) { a = Math.random(); if ((a > 0) && (a < 0.1)) { unittype = "enemylight"; } if ((a > 0.2) && (a < 0.3)) { unittype = "enemyrocket"; } if ((a > 0.3) && (a < 0.6)) { unittype = "enemyheavy"; } if ((a > 0.6) && (a < 0.9)) { unittype = "enemyhumvee"; } if ((a > 0.9) && (a < 1)) { unittype = "enemyartillery"; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.flag1._x; _root[unittype + _root.n]._y = _root.flag1._y; _root[unittype + _root.n]._rotation = 0; _root.array2.push(unittype + _root.n); unittype = undefined; _root.n++; p--; } } if (_root.ownmap3 === true) { var p = 1; while (p > 0) { a = Math.random(); if ((a > 0) && (a < 0.2)) { unittype = "light"; } if ((a > 0.2) && (a < 0.4)) { unittype = "rocket"; } if ((a > 0.4) && (a < 0.6)) { unittype = "heavy"; } if ((a > 0.6) && (a < 0.8)) { unittype = "humvee"; } if ((a > 0.8) && (a < 1)) { unittype = "artillery"; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.reinforcement._x; _root[unittype + _root.n]._y = _root.reinforcement._y; _root[unittype + _root.n]._rotation = 0; _root[unittype + _root.n].ally = true; unittype = undefined; _root.n++; p--; } } _root.enemypower = _root.enemypower + 5; timer = 0; } if (timer == 250) { if (_root.ownmap8 === true) { var p = 1; while (p > 0) { a = Math.random(); if ((a > 0) && (a < 0.2)) { unittype = "light"; } if ((a > 0.2) && (a < 0.4)) { unittype = "rocket"; } if ((a > 0.4) && (a < 0.6)) { unittype = "heavy"; } if ((a > 0.6) && (a < 0.8)) { unittype = "humvee"; } if ((a > 0.8) && (a < 1)) { unittype = "artillery"; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.reinforcement._x; _root[unittype + _root.n]._y = _root.reinforcement._y; _root[unittype + _root.n]._rotation = 0; _root[unittype + _root.n].ally = true; unittype = undefined; _root.n++; p--; } } if (_root.ownmap7 === false) { _root.enemymoney = _root.enemymoney + 10000; } if (_root.ownmap7 === true) { _root.money = _root.money + 10000; } if ((_root.enemycomcentre < 1) && (_root.enemymoney >= 5000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemycomcentre", _root.waypoint3._x, _root.waypoint3._y, 5000, 0.5); _root[current].build = true; break; } i--; } } if ((_root.enemyservicedepot < 1) && (_root.enemymoney >= 35000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyservicedepot", _root.waypoint47._x, _root.waypoint47._y, 1500, 1); _root[current].build = true; break; } i--; } } if ((_root.enemyrefinery < 1) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyrefinery", _root.waypoint2._x, _root.waypoint2._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemywarfactory == 0) && (_root.enemymoney >= 2000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemywarfactory", _root.waypoint1._x, _root.waypoint1._y, 2000, 1); _root[current].build = true; break; } i--; } } if ((_root.enemytechcentre < 1) && (_root.enemymoney >= 40000)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemytechcentre", _root.waypoint16._x, _root.waypoint16._y, 1500, 0.7); _root[current].build = true; break; } i--; } } if (((_root.enemytechcentre1._x != undefined) && (_root.enemyweaponsilo == 0)) && (_root.enemypower > 100)) { i = dozers.length - 1; while (i > -1) { current = dozers[i]; if ((!_root[current].walking) && (!_root[current].build)) { _root[current].aibuild("enemyweaponsilo", _root.waypoint160._x, _root.waypoint160._y, 10000, 0.2); _root[current].build = true; break; } i--; } } i = 0; while (i < _root.array1.length) { current = _root.array1[i]; if (_root[current].life == undefined) { _root.array1.splice(i, 1); } if (i < (_root.array1.length - 7)) { _root.array2.push(current); _root.array1.splice(i, 1); if (Math.random() > 0.5) { _root[current].avoid = true; } if (Math.random() > 0.8) { _root[current].aggressive = false; } } i++; } } if ((Math.round(timer / 30) * 30) == timer) { if (_root.enemyarray.length <= 0) { _root.gotoAndStop("victory9d"); } if (_root.friendlylist.length <= 0) { _root.gotoAndStop("defeat9d"); } n = _root.enemystructurearray.length - 1; while (n > -1) { current2 = _root.enemystructurearray[n]; i = dozers.length - 1; while (i > -1) { current = dozers[i]; if (_root[current].build || (_root[current].walking)) { } else { dx = _root[current]._x - _root[current2]._x; dy = _root[current]._y - _root[current2]._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 1500) { ant = 0; if (((_root[current2].life < _root[current2].fulllife) && (_root[current2].percent == undefined)) && (_root[current2].auto._currentframe == 1)) { if (!_root[current].hitTest(_root[current2])) { _root[current].aigoto(_root[current2]._x, _root[current2]._y, false); } _root[current2].auto.play(); if (_root.ownmap5 === false) { h = array1.length - 1; while (h > -1) { currents = _root.array1[h]; if ((((_root[currents].natack == undefined) && (!_root[currents].walking)) && (!_root[currents].fireing)) && (ant < 5)) { ant++; _root[currents].aigoto(_root[current2]._x, _root[current2]._y, false); if (_root[current2].targetobj != undefined) { targetobj = _root[current2].targetobj; _root[currents].aiattack(targetobj); } } h--; } } } } break; } i--; } n--; } } timescale = 8000 / _root.enemypower; if (_root.ownmap4 === false) { timescale = timescale * 0.5; } if ((Math.round(timer / timescale) * timescale) == timer) { if (((dozers.length < 4) && (_root.enemycomcentre1.life > 0)) && (_root.enemymoney > 1000)) { _root.enemymoney = _root.enemymoney - 1000; _root.attachMovie("enemydozer", "enemydozer" + _root.n, _root.n); _root["enemydozer" + _root.n]._x = _root.enemycomcentre1._x; _root["enemydozer" + _root.n]._y = _root.enemycomcentre1._y; _root["enemydozer" + _root.n]._rotation = 0; _root.n++; } if ((_root.enemymoney > 40000) && (!build)) { build = true; rounds++; } if ((_root.enemymoney < 15000) && (build)) { build = false; } i = 0; while (i < _root.array2.length) { current = _root.array2[i]; if (_root[current].life == undefined) { _root.array2.splice(i, 1); } else if (((((!_root[current].fireing) && (!(_root[current].walking && (_root[current].attack === true)))) && (_root[current].getDepth() > 0)) && (_root[current].damage != undefined)) && (_root[current].speed != undefined)) { lo = Math.floor(Math.random() * (_root.friendlylist.length - 1)); unit = _root.friendlylist[lo]; if ((_root.airport.life > 0) && (Math.random() > 0.8)) { unit = "airport"; } _root[current].aiattack(unit); } i++; } arrayone = _root.array1.toString(); if (_root.enemywarfactory1.life > 0) { if ((_root.enemyoiltrucks < 4) && (_root.enemymoney >= 2000)) { _root.enemymoney = _root.enemymoney - 1500; _root.attachMovie("enemyoiltruck", "enemyoiltruck" + _root.n, _root.n); _root["enemyoiltruck" + _root.n]._x = _root.enemywarfactory1._x; _root["enemyoiltruck" + _root.n]._y = _root.enemywarfactory1._y; _root["enemyoiltruck" + _root.n]._rotation = 0; _root.n++; } if (build || ((_root.array1.length < 5) && (_root.enemymoney > 0))) { a = Math.random(); if ((a > 0) && (a < 0.3)) { unittype = "enemylight"; _root.enemymoney = _root.enemymoney - 1000; } if ((a > 0.3) && (a < 0.5)) { unittype = "enemyrocket"; _root.enemymoney = _root.enemymoney - 1500; } if ((a > 0.5) && (a < 0.6)) { unittype = "enemyheavy"; _root.enemymoney = _root.enemymoney - 2500; } if ((a > 0.6) && (a < 0.9)) { unittype = "enemyhumvee"; _root.enemymoney = _root.enemymoney - 500; } if ((a > 0.9) && (a < 1)) { unittype = "enemyartillery"; _root.enemymoney = _root.enemymoney - 2000; } _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.enemywarfactory1._x; _root[unittype + _root.n]._y = _root.enemywarfactory1._y + 100; _root[unittype + _root.n]._rotation = 0; _root.array1.push(unittype + _root.n); unittype = undefined; _root.n++; if (((_root.enemylasertank1._x == undefined) && (_root.enemytechcentre1._x != undefined)) && (_root.ownmap6 === false)) { if (Math.random() > 0.9) { _root.attachMovie("enemylasertank", "enemylasertank1", _root.n); _root.enemylasertank1._x = _root.enemywarfactory1._x; _root.enemylasertank1._y = _root.enemywarfactory1._y + 100; _root.enemylasertank1._rotation = 0; _root.enemymoney = _root.enemymoney - 7500; _root.array1.push("enemylasertank1"); } } } } } } }
Instance of Symbol 20 MovieClip in Frame 87
onClipEvent (enterFrame) { po++; if (po == _root.obsarray.length) { po = 0; } current = _root.obsarray[po]; i = _root.unitsarray.length - 1; while (i > -1) { current2 = _root.unitsarray[i]; if (_root[current2].walking || (_root[current2].fireing)) { if (_root.back[current].hitTest(_root[current2])) { if (_root[current2].dummy.obstacle == undefined) { _root[current2].dummy.obstacle = false; } if ((!_root[current2].dummy.obstacle) || (_root[current2].dummy.obstacle == undefined)) { _root[current2].dummy.obstacle = true; if (_root.back[current].pos == "hoz") { roattion = _root[current2].dummy._rotation; if ((_root[current2].dummy._rotation >= -90) && (_root[current2].dummy._rotation < 90)) { _root[current2].dummy.flag2 = _root.back[current].rights; } if ((_root[current2].dummy._rotation >= 90) && (_root[current2].dummy._rotation < 360)) { _root[current2].dummy.flag2 = _root.back[current].lefts; } } if (_root.back[current].pos == "ver") { roattion = _root[current2].dummy._rotation; if ((_root[current2].dummy._rotation <= 0) && (_root[current2].dummy._rotation > -180)) { _root[current2].dummy.flag2 = _root.back[current].tops; } if ((_root[current2].dummy._rotation > 0) && (_root[current2].dummy._rotation < 180)) { _root[current2].dummy.flag2 = _root.back[current].bottoms; } } } } } i--; } } onClipEvent (load) { po = 0; }
Instance of Symbol 1042 MovieClip "box" in Frame 87
onClipEvent (mouseDown) { x = _root.mouse._x - 30; y = _root.mouse._y - 30; if (((_root.sidebar.mapp.hitTest(x, y, true) && (_root.comcentre1.life > 0)) && (_root.comcentre1.life != undefined)) && (_root.sidebar._visible)) { x1s = x - x1; y1s = y - y1; x2s = _root.box6._x - x1; y2s = _root.box6._y - y1; _root.box6._x = x; _root.box6._y = y; x1s = x1s / constantx; y1s = y1s / constanty; x2s = x2s / constantx; y2s = y2s / constanty; _root.back._x = _root.back._x - (x1s - x2s); _root.back._y = _root.back._y - (y1s - y2s); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - (x1s - x2s); _root[current]._y = _root[current]._y - (y1s - y2s); i--; } } if ((!_root.sidebar.hitTest(x, y, false)) || (!_root.sidebar._visible)) { if (_root.selectedarray.arrayfind("warfactory1")) { _root.rallypoint._x = _root.mouse._x; _root.rallypoint._y = _root.mouse._y; } hits = false; this._x = _root._xmouse; this._y = _root._ymouse; i = _root.friendlylist.length - 1; while (i > -1) { current = _root.friendlylist[i]; if (_root[current].hitTest(this) && (current != "servicedepot1")) { hits = true; break; } i--; } origx = _root.mouse._x; origy = _root.mouse._y; this._visible = true; array = _root.formation; _root.formation = undefined; if (!hits) { i = _root.selectedarray.length - 1; while (i > -1) { current = _root.selectedarray[i]; if (((!_root[current].enemy) && (_root[current].speed != undefined)) && (!(_root[current].ally === true))) { _root[current].turret._rotation = _root[current].dummy._rotation; c = _root.enemyarray.length - 1; while (c > -1) { current2 = _root.enemyarray[c]; if (_root.mouse.hitTest(_root[current2])) { _root[current].targetobj = current2; _root[current].attack = true; _root[current].dummy.obstacle = false; _root[current].dummy.flag2 = undefined; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root["flag" + current]._x = _root.boxns._x; _root["flag" + current]._y = _root.boxns._y; _root[current].locx = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root[current].locy = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root.objarray.push("flag" + current); _root[current].walking = true; _root.n++; hit = true; break; } c--; } if (!hit) { origx = _root.mouse._x + _root[array + "x"][i]; origy = _root.mouse._y + _root[array + "y"][i]; if (isNaN(origx)) { origx = _root.mouse._x; } if (isNaN(origy)) { origy = _root.mouse._y; } current = _root.selectedarray[i]; _root[current].destx = origx; _root[current].desty = origy; _root[current].attack = false; _root[current].locx = undefined; _root[current].locy = undefined; _root[current].walking = true; _root[current].dummy.obstacle = false; _root[current].dummy.flag2 = undefined; _root["flag" + current].removeMovieClip(); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag", "flag" + current, _root.n); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } } if (Key.isDown(17)) { _root[current].targetobj = "flag" + current; _root[current].attack = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } hit = false; i--; } } } } onClipEvent (mouseUp) { x = _root.mouse._x; y = _root.mouse._y; _root.mouse.gotoAndStop(2); if ((!_root.sidebar.hitTest(x, y, true)) || (!_root.sidebar._visible)) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (_root[current].hitTest(this) && (!_root.selectedarray.arrayfind(current))) { _root[current].selector._visible = true; _root[current].selected1 = true; _root.selectedarray.push(current); } i--; } } origx = undefined; origy = undefined; this._visible = false; _root.sidebar.calccost(); } onClipEvent (enterFrame) { if (_root.mouse.hitTest(_root.sidebar)) { _root.sidebar._alpha = 100; } else { _root.sidebar._alpha = 30; } _root.timer++; if (_root.timer == 7000) { for (var name in _root) { if (typeof(_root[name]) == "movieclip") { if ((_root[name].fulllife != undefined) && ((_root[name].life == undefined) || (_root[name].life <= 0))) { _root[name].removeMovieClip(); } } } i = _root.friendlylist.length - 1; while (i > -1) { currents = _root.friendlylist[i]; if ((_root.friendlylist.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.friendlylist.splice(i, 1); } i--; } i = _root.enemyarray.length - 1; while (i > -1) { currents = _root.enemyarray[i]; if ((_root.enemyarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.enemyarray.splice(i, 1); } i--; } i = _root.objarray.length - 1; while (i > -1) { currents = _root.objarray[i]; if ((_root.objarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.objarray.splice(i, 1); } i--; } i = _root.unitsarray.length - 1; while (i > -1) { currents = _root.unitsarray[i]; if (((_root.unitsarray.countduplicate(currents) > 1) || (_root[currents].life == undefined)) || (_root[currents + "symbols"]._x == undefined)) { _root.unitsarray.splice(i, 1); } i--; } i = _root.shellarray.length - 1; while (i > -1) { currents = _root.shellarray[i]; if (_root.shellarray.countduplicate(currents) > 1) { _root.shellarray.splice(i, 1); } i--; } _root.timer = 0; } if (Key.isDown(32)) { _root.mouse.gotoAndStop(1); _root.selectedarray = []; i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; _root[current].selector._visible = false; _root[current].selected1 = false; _root.sidebar.calccost(); i--; } } if (this._visible) { a = _root._xmouse - origx; b = _root._ymouse - origy; this._width = Math.abs(a); this._height = Math.abs(b); if (a < 0) { this._xscale = this._xscale * -1; } if (b < 0) { this._yscale = this._yscale * -1; } } }
Frame 88
_root.map9array = []; movetozero(); saveunits("map9"); for (var name in _root) { if (typeof(_root[name]) == "movieclip") { _root[name].removeMovieClip(); } } _root.enemyattack = 0; _root.box6.removeMovieClip(); _root.ownmap9 = true; _root.missions++; stop();
Instance of Symbol 1099 MovieClip "ai" in Frame 88
onClipEvent (mouseUp) { _root.gotoAndStop("mapbar"); }
Frame 89
for (var name in _root) { if (typeof(_root[name]) == "movieclip") { _root[name].removeMovieClip(); } } _root.map9array = []; _root.ownmap9 = false; stop();
Instance of Symbol 1099 MovieClip "ai" in Frame 89
onClipEvent (mouseUp) { _root.gotoAndPlay("mapbar"); }
Frame 90
for (var name in _root) { if (typeof(_root[name]) == "movieclip") { _root[name].removeMovieClip(); } } _root.tutorial._visible = false; gotoAndStop (2);
Frame 91
for (var name in _root) { if (typeof(_root[name]) == "movieclip") { _root[name].removeMovieClip(); } }
Instance of Symbol 369 MovieClip in Frame 91
/* no clip actions */
Instance of Symbol 1009 MovieClip in Frame 91
onClipEvent (keyDown) { for (var name in _root) { if (typeof(_root[name]) == "movieclip") { _root[name].removeMovieClip(); } } _root.tutorial._visible = false; _root.gotoAndStop("end"); } onClipEvent (load) { _root.score = (_root.kills * _root.kills) + ((656 * (_root.kills * (_root.built + 1))) / (_root.losses * _root.losses)); _root.buil = 0; _root.kill = 0; _root.loss = 0; _root.scores = 0; trace(_root.score + "score"); } onClipEvent (enterFrame) { if (_root.buil < _root.built) { _root.buil++; } if (_root.kill < _root.kills) { _root.kill++; } if (_root.loss < _root.losses) { _root.loss++; } if (_root.scores < _root.score) { _root.scores = _root.scores + 158; } }
Frame 92
gotoAndPlay (24);
Frame 93
array1 = []; enemymines = 0; _root.soundon = _root.setsoundon; for (var name in _root) { if (typeof(_root[name]) == "movieclip") { _root[name].removeMovieClip(); } } con = new ContextMenu(); con.hideBuiltInItems();
Frame 94
_root.attachMovie("sidebar", "sidebar", 1000000); _root.attachMovie("mo", "mouse", 1000001); _root.sidebar._x = 132.6; _root.sidebar._y = 615; _root.sidebar._xscale = -58.5; _root.sidebar._yscale = 49.14; _root.sidebar._rotation = 90; _global.orix = _root.back._x; _global.oriy = _root.back._y; _root.attachMovie("box5", "box6", 10000004); _root.box6._x = x1; _root.box6._y = y1; _root.box6._height = (_root.box5._height / _root.back._height) * (y4 - y1); _root.box6._width = (_root.box5._width / _root.back._width) * (x4 - x1); _global.constanty = (y4 - y1) / _root.back._height; _global.constantx = (x4 - x1) / _root.back._width; _global.constantsy = (y4 - y1) / _root.back._height; _global.constantsx = (x4 - x1) / _root.back._width; _root.array1 = []; _root.rallylist = []; _root.enemyrallylist = []; MovieClip.prototype.aiattack = function (what) { current2 = what; if (_root[current2]._x != undefined) { current = this._name; _root[current].targetobj = current2; _root[current].attack = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root["flag" + current]._visible = false; _root["flag" + current]._x = _root[current2]._x; _root["flag" + current]._y = _root[current2]._y; _root.objarray.push("flag" + current); _root[current].walking = true; _root.n++; hit = true; } }; MovieClip.prototype.aigoto = function (x1, y1, lock) { current = this._name; _root[current].attack = false; _root[current].walking = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag", "flag" + current, _root.n); if ((!lock) || (lock == undefined)) { _root["flag" + current]._x = x1; _root["flag" + current]._y = y1; } if (lock) { _root["flag" + current]._x = x1 + _root.back._x; _root["flag" + current]._y = y1 + _root.back._y; } _root["flag" + current].vsisible = false; _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; }; Array.prototype.arrayfind = function (element) { var _local4 = false; trace(this.length); var _local3 = this.length - 1; while (_local3 > -1) { elementsearched = this[_local3]; trace(_root[elementsearched].unittype + elementsearched); if (_root[elementsearched].unittype == element) { _local4 = true; break; } _local3--; } return(_local4); }; Array.prototype.arrayfindfirst = function (element) { var _local3 = false; trace(this.length); var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { _local3 = _local2; break; } _local2--; } return(_local3); }; Array.prototype.findsfirst = function (element) { var _local4 = false; var _local3 = this.length - 1; while (_local3 > -1) { elementsearched2 = this[_local3]; if (_root[elementsearched2].unittype == element) { _local4 = elementsearched2; break; } _local3--; } return(_local4); }; MovieClip.prototype.movesym = function () { _root[this._name + "symbols"]._x = (x1 + ((this._x - _root.back._x) * constantx)) - 10; _root[this._name + "symbols"]._y = (y1 + ((this._y - _root.back._y) * constanty)) - 10; }; _root.timer = 6999; _root.limit = 1200; Array.prototype.countduplicate = function (element) { var _local3 = 0; var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { _local3++; } _local2--; } return(_local3); }; Array.prototype.arrayfind = function (element) { var _local3 = false; var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { _local3 = true; break; } _local2--; } return(_local3); }; Array.prototype.finds = function (element) { var _local3 = -1; var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { _local3 = _local2; break; } _local2--; } return(_local3); }; Array.prototype.findandsplice = function (element) { var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { this.splice(_local2, 1); break; } _local2--; } }; _root.objarray = []; _root.num = 0; _root.sparsex = [0, -50, 150, 100, -100, 150, 250, 200, -250, 300, 300, 350, -350, 400, -410, 500, -550]; _root.sparsey = [0, -50, 80, -180, 250, -50, 140, -150, 60, 150, -70, -220, -350, 350, -350, 375, -375]; _root.linex = [0, 0, 50, 50, 100, 100, 150, 150, 200, 200, 350, 350, 400, 400, 450, 450, 500, 500, 550, 550]; _root.liney = [0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50]; _root.unitsarray = []; _root.flagsarray = []; _root.selectedarray = []; _root.enemyarray = []; _root.friendlylist = []; _root.shellarray = []; _root.enemyminearray = []; _root.minearray = []; _root.enemyminearray = []; _root.money = 30000; _root.enemymoney = 30000; _root.warfactory = 0; _root.enemywarfactory = 0; _global.dozers = []; _root.dozerarray = []; _root.enemydozerarray = []; _root.structurearray = []; _root.enemyservicedepot = 0; _root.enemystructurearray = []; _root.comcentre = 0; _root.enemycomcentre = 0; _root.oilarray = []; _root.enemyoiltruckarray = []; _root.oiltruckarray = []; _root.refinery = 0; _root.enemyrefinery = 0; _root.techcentre = 0; _root.enemytechcentre = 0; _root.enemyweaponsilo = 0; _root.turretarray = []; _root.enemyturretarray = []; _root.enemyturret1 = false; _root.enemyturret2 = false; _root.enemyturret3 = false; _root.enemyturret4 = false; _root.enemyturret5 = false; _root.n = 1000;
Frame 95
Mouse.hide(); stop(); stop();
Instance of Symbol 1022 MovieClip in Frame 95
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(38))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y + 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 95
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(37))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x + 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 95
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(39))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x - 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - 20; i--; } } } }
Instance of Symbol 1022 MovieClip in Frame 95
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(40))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y - 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y - 20; i--; } } } }
Instance of Symbol 1036 MovieClip "rig6" in Frame 95
onClipEvent (load) { oilfield = "oil6"; _root.objarray.push(this._name); }
Instance of Symbol 1036 MovieClip "rig10" in Frame 95
onClipEvent (load) { oilfield = "oil3"; _root.objarray.push(this._name); }
Instance of Symbol 1036 MovieClip "rig19" in Frame 95
onClipEvent (load) { oilfield = "oil1"; _root.objarray.push(this._name); }
Instance of Symbol 1038 MovieClip "burton" in Frame 95
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1009 MovieClip in Frame 95
/* no clip actions */
Instance of Symbol 1042 MovieClip "box" in Frame 95
onClipEvent (mouseDown) { x = _root.mouse._x - 30; y = _root.mouse._y - 30; if (((_root.sidebar.mapp.hitTest(x, y, true) && (_root.comcentre1.life > 0)) && (_root.comcentre1.life != undefined)) && (_root.sidebar._visible)) { x1s = x - x1; y1s = y - y1; x2s = _root.box6._x - x1; y2s = _root.box6._y - y1; _root.box6._x = x; _root.box6._y = y; x1s = x1s / constantx; y1s = y1s / constanty; x2s = x2s / constantx; y2s = y2s / constanty; _root.back._x = _root.back._x - (x1s - x2s); _root.back._y = _root.back._y - (y1s - y2s); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - (x1s - x2s); _root[current]._y = _root[current]._y - (y1s - y2s); i--; } } if ((!_root.sidebar.hitTest(x, y, false)) || (!_root.sidebar._visible)) { if (_root.selectedarray.arrayfind("warfactory1")) { _root.rallypoint._x = _root.mouse._x; _root.rallypoint._y = _root.mouse._y; } hits = false; this._x = _root._xmouse; this._y = _root._ymouse; i = _root.friendlylist.length - 1; while (i > -1) { current = _root.friendlylist[i]; if (_root[current].hitTest(this) && (current != "servicedepot1")) { hits = true; break; } i--; } origx = _root.mouse._x; origy = _root.mouse._y; this._visible = true; array = _root.formation; _root.formation = undefined; if (!hits) { i = _root.selectedarray.length - 1; while (i > -1) { current = _root.selectedarray[i]; if ((!_root[current].enemy) && (_root[current].speed != undefined)) { _root[current].turret._rotation = _root[current].dummy._rotation; c = _root.enemyarray.length - 1; while (c > -1) { current2 = _root.enemyarray[c]; if (_root.mouse.hitTest(_root[current2])) { _root[current].targetobj = current2; _root[current].attack = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root["flag" + current]._x = _root.boxns._x; _root["flag" + current]._y = _root.boxns._y; _root[current].locx = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root[current].locy = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root.objarray.push("flag" + current); _root[current].walking = true; _root.n++; hit = true; break; } c--; } if (!hit) { origx = _root.mouse._x + _root[array + "x"][i]; origy = _root.mouse._y + _root[array + "y"][i]; if (isNaN(origx)) { origx = _root.mouse._x; } if (isNaN(origy)) { origy = _root.mouse._y; } if ((_root.tutorial._currentframe == 16) && (array != undefined)) { _root.tutorial.nextFrame(); } current = _root.selectedarray[i]; _root[current].destx = origx; _root[current].desty = origy; _root[current].attack = false; _root[current].locx = undefined; _root[current].locy = undefined; _root[current].walking = true; _root["flag" + current].removeMovieClip(); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag", "flag" + current, _root.n); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } } if (Key.isDown(17)) { _root[current].targetobj = "flag" + current; _root[current].attack = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } hit = false; i--; } } } } onClipEvent (mouseUp) { x = _root.mouse._x; y = _root.mouse._y; _root.mouse.gotoAndStop(2); if ((!_root.sidebar.hitTest(x, y, true)) || (!_root.sidebar._visible)) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (_root[current].hitTest(this) && (!_root.selectedarray.arrayfind(current))) { _root[current].selector._visible = true; _root[current].selected1 = true; _root.selectedarray.push(current); } i--; } } origx = undefined; origy = undefined; this._visible = false; _root.sidebar.calccost(); } onClipEvent (enterFrame) { if (_root.mouse.hitTest(_root.sidebar)) { _root.sidebar._alpha = 100; } else { _root.sidebar._alpha = 30; } _root.timer++; if (_root.timer == 7000) { for (var name in _root) { if (typeof(_root[name]) == "movieclip") { if ((_root[name].fulllife != undefined) && ((_root[name].life == undefined) || (_root[name].life <= 0))) { _root[name].removeMovieClip(); } } } i = _root.friendlylist.length - 1; while (i > -1) { currents = _root.friendlylist[i]; if ((_root.friendlylist.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.friendlylist.splice(i, 1); } i--; } i = _root.enemyarray.length - 1; while (i > -1) { currents = _root.enemyarray[i]; if ((_root.enemyarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.enemyarray.splice(i, 1); } i--; } i = _root.objarray.length - 1; while (i > -1) { currents = _root.objarray[i]; if ((_root.objarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.objarray.splice(i, 1); } i--; } i = _root.unitsarray.length - 1; while (i > -1) { currents = _root.unitsarray[i]; if (((_root.unitsarray.countduplicate(currents) > 1) || (_root[currents].life == undefined)) || (_root[currents + "symbols"]._x == undefined)) { _root.unitsarray.splice(i, 1); } i--; } i = _root.shellarray.length - 1; while (i > -1) { currents = _root.shellarray[i]; if (_root.shellarray.countduplicate(currents) > 1) { _root.shellarray.splice(i, 1); } i--; } _root.timer = 0; } if (Key.isDown(32)) { _root.mouse.gotoAndStop(1); _root.selectedarray = []; i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; _root[current].selector._visible = false; _root[current].selected1 = false; _root.sidebar.calccost(); i--; } } if (this._visible) { a = _root._xmouse - origx; b = _root._ymouse - origy; this._width = Math.abs(a); this._height = Math.abs(b); if (a < 0) { this._xscale = this._xscale * -1; } if (b < 0) { this._yscale = this._yscale * -1; } } }
Frame 96
for (var name in _root) { if (typeof(_root[name]) == "movieclip") { _root[name].removeMovieClip(); } } play();
Instance of Symbol 1213 MovieClip "victory" in Frame 96
onClipEvent (mouseDown) { _root.gotoAndPlay("motor"); }
Frame 129
_root.victory._visible = false; _root.tutorial.swapDepths(-2);
Frame 130
array1 = []; enemymines = 0; _root.shroudarray = []; play(); for (var name in _root) { if (typeof(_root[name]) == "movieclip") { _root[name].removeMovieClip(); } } con = new ContextMenu(); con.hideBuiltInItems();
Frame 131
_root.attachMovie("sidebar", "sidebar", 1000000); _root.attachMovie("mo", "mouse", 1000001); _root.sidebar._x = 132.6; _root.sidebar._y = 615; _root.sidebar._xscale = -58.5; _root.sidebar._yscale = 49.14; _root.sidebar._rotation = 90; _global.orix = _root.back._x; _global.oriy = _root.back._y; _root.attachMovie("box5", "box6", 10000004); _root.box6._x = x1; _root.box6._y = y1; _root.box6._height = (_root.box5._height / _root.back._height) * (y4 - y1); _root.box6._width = (_root.box5._width / _root.back._width) * (x4 - x1); _global.constanty = (y4 - y1) / _root.back._height; _global.constantx = (x4 - x1) / _root.back._width; _global.constantsy = (y4 - y1) / _root.back._height; _global.constantsx = (x4 - x1) / _root.back._width; _root.array1 = []; _root.rallylist = []; _root.enemyrallylist = []; MovieClip.prototype.aiattack = function (what) { current2 = what; if (_root[current2]._x != undefined) { current = this._name; _root[current].targetobj = current2; _root[current].attack = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root["flag" + current]._visible = false; _root["flag" + current]._x = _root[current2]._x; _root["flag" + current]._y = _root[current2]._y; _root.objarray.push("flag" + current); _root[current].walking = true; _root.n++; hit = true; } }; MovieClip.prototype.aigoto = function (x1, y1, lock) { current = this._name; _root[current].attack = false; _root[current].walking = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag", "flag" + current, _root.n); if ((!lock) || (lock == undefined)) { _root["flag" + current]._x = x1; _root["flag" + current]._y = y1; } if (lock) { _root["flag" + current]._x = x1 + _root.back._x; _root["flag" + current]._y = y1 + _root.back._y; } _root["flag" + current].vsisible = false; _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; }; Array.prototype.arrayfind = function (element) { var _local4 = false; trace(this.length); var _local3 = this.length - 1; while (_local3 > -1) { elementsearched = this[_local3]; trace(_root[elementsearched].unittype + elementsearched); if (_root[elementsearched].unittype == element) { _local4 = true; break; } _local3--; } return(_local4); }; Array.prototype.arrayfindfirst = function (element) { var _local3 = false; trace(this.length); var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { _local3 = _local2; break; } _local2--; } return(_local3); }; Array.prototype.findsfirst = function (element) { var _local4 = false; var _local3 = this.length - 1; while (_local3 > -1) { elementsearched2 = this[_local3]; if (_root[elementsearched2].unittype == element) { _local4 = elementsearched2; break; } _local3--; } return(_local4); }; MovieClip.prototype.movesym = function () { _root[this._name + "symbols"]._x = (x1 + ((this._x - _root.back._x) * constantx)) - 10; _root[this._name + "symbols"]._y = (y1 + ((this._y - _root.back._y) * constanty)) - 10; }; _root.timer = 6999; _root.limit = 1200; Array.prototype.countduplicate = function (element) { var _local3 = 0; var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { _local3++; } _local2--; } return(_local3); }; Array.prototype.arrayfind = function (element) { var _local3 = false; var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { _local3 = true; break; } _local2--; } return(_local3); }; Array.prototype.finds = function (element) { var _local3 = -1; var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { _local3 = _local2; break; } _local2--; } return(_local3); }; Array.prototype.findandsplice = function (element) { var _local2 = this.length - 1; while (_local2 > -1) { elementsearched = this[_local2]; if (elementsearched == element) { this.splice(_local2, 1); break; } _local2--; } }; _root.objarray = []; _root.num = 0; _root.sparsex = [0, -50, 150, 100, -100, 150, 250, 200, -250, 300, 300, 350, -350, 400, -410, 500, -550]; _root.sparsey = [0, -50, 80, -180, 250, -50, 140, -150, 60, 150, -70, -220, -350, 350, -350, 375, -375]; _root.linex = [0, 0, 50, 50, 100, 100, 150, 150, 200, 200, 350, 350, 400, 400, 450, 450, 500, 500, 550, 550]; _root.liney = [0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50, 0, 50]; _root.unitsarray = []; _root.flagsarray = []; _root.selectedarray = []; _root.enemyarray = []; _root.friendlylist = []; _root.shellarray = []; _root.enemyminearray = []; _root.minearray = []; _root.enemyminearray = []; _root.money = 30000; _root.enemymoney = 30000; _root.warfactory = 0; _root.enemywarfactory = 0; _global.dozers = []; _root.dozerarray = []; _root.enemydozerarray = []; _root.structurearray = []; _root.enemyservicedepot = 0; _root.enemystructurearray = []; _root.comcentre = 0; _root.enemycomcentre = 0; _root.oilarray = []; _root.enemyoiltruckarray = []; _root.oiltruckarray = []; _root.refinery = 0; _root.enemyrefinery = 0; _root.techcentre = 0; _root.enemytechcentre = 0; _root.enemyweaponsilo = 0; _root.turretarray = []; _root.enemyturretarray = []; _root.enemyturret1 = false; _root.enemyturret2 = false; _root.enemyturret3 = false; _root.enemyturret4 = false; _root.enemyturret5 = false; _root.n = 1000;
Frame 132
Mouse.hide(); stop(); this.sidebar.mapp.gotoAndStop("map2"); stop();
Instance of Symbol 1022 MovieClip in Frame 132
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(38))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y + 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 132
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(37))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x + 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x + 20; i--; } } } }
Instance of Symbol 1024 MovieClip in Frame 132
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(39))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._x = _root.back._x - 20; _root.box6._x = x1 - (_root.back._x * constantx); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - 20; i--; } } } }
Instance of Symbol 1022 MovieClip in Frame 132
onClipEvent (enterFrame) { if ((this.hitTest(_root.mouse) || (Key.isDown(40))) && (_root.scrolla)) { if (this.hitTest(_root.back.centre)) { _root.back._y = _root.back._y - 20; _root.box6._y = y1 - (_root.back._y * constanty); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._y = _root[current]._y - 20; i--; } } } }
Instance of Symbol 1036 MovieClip "rig10" in Frame 132
onClipEvent (load) { oilfield = "oil3"; _root.objarray.push(this._name); }
Instance of Symbol 1036 MovieClip "rig10" in Frame 132
onClipEvent (load) { oilfield = "oil2"; _root.objarray.push(this._name); }
Instance of Symbol 1009 MovieClip in Frame 132
onClipEvent (enterFrame) { po++; if (po == _root.shroudarray.length) { po = 0; } current = _root.shroudarray[po]; i = _root.friendlylist.length - 1; while (i > -1) { current2 = _root.friendlylist[i]; if (_root[current2].unittype != "construction") { if (_root[current].hitTest(_root[current2])) { _root[current]._visible = false; break; } } i--; } } onClipEvent (load) { po = 0; }
Instance of Symbol 1099 MovieClip "ai" in Frame 132
onClipEvent (load) { timer = 0; _root.array2 = []; build = true; rounds = 0; _root.enemyoiltrucks = 0; } onClipEvent (enterFrame) { ppp = _root.enemyarray.toString(); Mouse.hide(); timer++; if ((Math.round(timer / 30) * 30) == timer) { if (_root.enemyarray.length <= 0) { _root.gotoAndStop("victory2e"); } if (_root.friendlylist.length <= 0) { _root.gotoAndStop("defeat2e"); } n = _root.enemystructurearray.length - 1; while (n > -1) { current2 = _root.enemystructurearray[n]; i = dozers.length - 1; while (i > -1) { current = dozers[i]; if (_root[current].build || (_root[current].walking)) { } else { dx = _root[current]._x - _root[current2]._x; dy = _root[current]._y - _root[current2]._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 1500) { ant = 0; if (((_root[current2].life < _root[current2].fulllife) && (_root[current2].percent == undefined)) && (_root[current2].auto._currentframe == 1)) { if (!_root[current].hitTest(_root[current2])) { _root[current].aigoto(_root[current2]._x, _root[current2]._y, false); } _root[current2].auto.play(); h = array1.length - 1; while (h > -1) { currents = _root.array1[h]; if ((((_root[currents].natack == undefined) && (!_root[currents].walking)) && (!_root[currents].fireing)) && (ant < 5)) { ant++; _root[currents].aigoto(_root[current2]._x, _root[current2]._y, false); if (_root[current2].targetobj != undefined) { targetobj = _root[current2].targetobj; _root[currents].aiattack(targetobj); } } h--; } } } break; } i--; } n--; } } if ((Math.round(timer / 70) * 70) == timer) { if (((dozers.length < 4) && (_root.enemycomcentre1.life >= 0)) && (_root.enemymoney > 1000)) { _root.enemymoney = _root.enemymoney - 1000; _root.attachMovie("enemydozer", "enemydozer" + _root.n, _root.n); _root["enemydozer" + _root.n]._x = _root.enemycomcentre1._x; _root["enemydozer" + _root.n]._y = _root.enemycomcentre1._y; _root["enemydozer" + _root.n]._rotation = 0; _root.n++; } if ((_root.enemymoney > 50000) && (!build)) { build = true; rounds++; } if ((_root.enemymoney < 20000) && (build)) { build = false; } i = 0; while (i < _root.array2.length) { current = _root.array2[i]; if (_root[current].life == undefined) { _root.array2.splice(i, 1); } else if ((!_root[current].fireing) && (!_root[current].walking)) { lo = Math.floor(Math.random() * (_root.friendlylist.length - 1)); unit = _root.friendlylist[lo]; _root[current].aiattack(unit); } i++; } arrayone = _root.array1.toString(); if (_root.enemywarfactory1.life > 0) { if ((_root.enemyoiltrucks < 1) && (_root.enemymoney >= 2000)) { _root.enemymoney = _root.enemymoney - 1500; _root.attachMovie("enemyoiltruck", "enemyoiltruck" + _root.n, _root.n); _root["enemyoiltruck" + _root.n]._x = _root.enemywarfactory1._x; _root["enemyoiltruck" + _root.n]._y = _root.enemywarfactory1._y; _root["enemyoiltruck" + _root.n]._rotation = 0; _root.n++; } if ((_root.enemyarray.length < 15) && (_root.enemymoney > 0)) { unittype = "enemyhumvee"; _root.enemymoney = _root.enemymoney - 500; _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.enemywarfactory1._x; _root[unittype + _root.n]._y = _root.enemywarfactory1._y + 100; _root[unittype + _root.n]._rotation = 0; unittype = undefined; _root.n++; } } } }
Instance of Symbol 1038 MovieClip "burton" in Frame 132
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1042 MovieClip "box" in Frame 132
onClipEvent (mouseDown) { x = _root.mouse._x - 30; y = _root.mouse._y - 30; if (((_root.sidebar.mapp.hitTest(x, y, true) && (_root.comcentre1.life > 0)) && (_root.comcentre1.life != undefined)) && (_root.sidebar._visible)) { x1s = x - x1; y1s = y - y1; x2s = _root.box6._x - x1; y2s = _root.box6._y - y1; _root.box6._x = x; _root.box6._y = y; x1s = x1s / constantx; y1s = y1s / constanty; x2s = x2s / constantx; y2s = y2s / constanty; _root.back._x = _root.back._x - (x1s - x2s); _root.back._y = _root.back._y - (y1s - y2s); i = _root.objarray.length - 1; while (i > -1) { current = _root.objarray[i]; _root[current]._x = _root[current]._x - (x1s - x2s); _root[current]._y = _root[current]._y - (y1s - y2s); i--; } } if ((!_root.sidebar.hitTest(x, y, false)) || (!_root.sidebar._visible)) { if (_root.selectedarray.arrayfind("warfactory1")) { _root.rallypoint._x = _root.mouse._x; _root.rallypoint._y = _root.mouse._y; } hits = false; this._x = _root._xmouse; this._y = _root._ymouse; i = _root.friendlylist.length - 1; while (i > -1) { current = _root.friendlylist[i]; if (_root[current].hitTest(this) && (current != "servicedepot1")) { hits = true; break; } i--; } origx = _root.mouse._x; origy = _root.mouse._y; this._visible = true; array = _root.formation; _root.formation = undefined; if (!hits) { i = _root.selectedarray.length - 1; while (i > -1) { current = _root.selectedarray[i]; if ((!_root[current].enemy) && (_root[current].speed != undefined)) { _root[current].turret._rotation = _root[current].dummy._rotation; c = _root.enemyarray.length - 1; while (c > -1) { current2 = _root.enemyarray[c]; if (_root.mouse.hitTest(_root[current2])) { _root[current].targetobj = current2; _root[current].attack = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root["flag" + current]._x = _root.boxns._x; _root["flag" + current]._y = _root.boxns._y; _root[current].locx = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root[current].locy = ((Math.random() - 0.5) * _root[current].range) * 1.5; _root.objarray.push("flag" + current); _root[current].walking = true; _root.n++; hit = true; break; } c--; } if (!hit) { origx = _root.mouse._x + _root[array + "x"][i]; origy = _root.mouse._y + _root[array + "y"][i]; if (isNaN(origx)) { origx = _root.mouse._x; } if (isNaN(origy)) { origy = _root.mouse._y; } if ((_root.tutorial._currentframe == 16) && (array != undefined)) { _root.tutorial.nextFrame(); } current = _root.selectedarray[i]; _root[current].destx = origx; _root[current].desty = origy; _root[current].attack = false; _root[current].locx = undefined; _root[current].locy = undefined; _root[current].walking = true; _root["flag" + current].removeMovieClip(); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag", "flag" + current, _root.n); _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } } if (Key.isDown(17)) { _root[current].targetobj = "flag" + current; _root[current].attack = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root.n++; } hit = false; i--; } } } } onClipEvent (mouseUp) { x = _root.mouse._x; y = _root.mouse._y; _root.mouse.gotoAndStop(2); if ((!_root.sidebar.hitTest(x, y, true)) || (!_root.sidebar._visible)) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (_root[current].hitTest(this) && (!_root.selectedarray.arrayfind(current))) { _root[current].selector._visible = true; _root[current].selected1 = true; _root.selectedarray.push(current); } i--; } } origx = undefined; origy = undefined; this._visible = false; _root.sidebar.calccost(); } onClipEvent (enterFrame) { if (_root.mouse.hitTest(_root.sidebar)) { _root.sidebar._alpha = 100; } else { _root.sidebar._alpha = 30; } _root.timer++; if (_root.timer == 7000) { for (var name in _root) { if (typeof(_root[name]) == "movieclip") { if ((_root[name].fulllife != undefined) && ((_root[name].life == undefined) || (_root[name].life <= 0))) { _root[name].removeMovieClip(); } } } i = _root.friendlylist.length - 1; while (i > -1) { currents = _root.friendlylist[i]; if ((_root.friendlylist.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.friendlylist.splice(i, 1); } i--; } i = _root.enemyarray.length - 1; while (i > -1) { currents = _root.enemyarray[i]; if ((_root.enemyarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.enemyarray.splice(i, 1); } i--; } i = _root.objarray.length - 1; while (i > -1) { currents = _root.objarray[i]; if ((_root.objarray.countduplicate(currents) > 1) || (_root[currents]._x == undefined)) { _root.objarray.splice(i, 1); } i--; } i = _root.unitsarray.length - 1; while (i > -1) { currents = _root.unitsarray[i]; if (((_root.unitsarray.countduplicate(currents) > 1) || (_root[currents].life == undefined)) || (_root[currents + "symbols"]._x == undefined)) { _root.unitsarray.splice(i, 1); } i--; } i = _root.shellarray.length - 1; while (i > -1) { currents = _root.shellarray[i]; if (_root.shellarray.countduplicate(currents) > 1) { _root.shellarray.splice(i, 1); } i--; } _root.timer = 0; } if (Key.isDown(32)) { _root.mouse.gotoAndStop(1); _root.selectedarray = []; i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; _root[current].selector._visible = false; _root[current].selected1 = false; _root.sidebar.calccost(); i--; } } if (this._visible) { a = _root._xmouse - origx; b = _root._ymouse - origy; this._width = Math.abs(a); this._height = Math.abs(b); if (a < 0) { this._xscale = this._xscale * -1; } if (b < 0) { this._yscale = this._yscale * -1; } } }
Instance of Symbol 1036 MovieClip "rig122" in Frame 132
onClipEvent (load) { oilfield = "oil5"; _root.objarray.push(this._name); }
Frame 133
for (var name in _root) { if (typeof(_root[name]) == "movieclip") { _root[name].removeMovieClip(); } } play();
Instance of Symbol 1213 MovieClip "victory" in Frame 133
onClipEvent (mouseDown) { _root.gotoAndPlay("motor"); }
Frame 135
_root.gotoAndStop("mapbarn");
Frame 136
_root.map2array = ["tt1", "tt2", "tt3", "tt4"]; _root.tt1obj = {}; _root.tt2map2obj = {}; _root.tt3map2obj = {}; _root.tt4obj = {}; _root.tt1obj.unittype = "light"; _root.tt1obj.fulllife = 100; _root.tt1obj.damage = 10; _root.tt1obj.speed = 2; _root.tt1obj.shellspd = 5; _root.tt1obj.range = 200; _root.tt1obj.shell2 = true; _root.tt1obj.firerate = 20; _root.tt2map2obj.unittype = "comcentre"; _root.tt2map2obj.fulllife = 1000; _root.tt3map2obj.unittype = "refinery"; _root.tt3map2obj.fulllife = 800; _root.attackarray = []; _root.map4array = []; _root.tt4obj.unittype = "humvee"; _root.tt4obj.fulllife = 300; _root.tt4obj.damage = 7; _root.tt4obj.speed = 9; _root.tt4obj.shellspd = 13; _root.tt4obj.range = 100; _root.tt4obj.laser = true; _root.attachMovie("mapbar", "mapbar", 1000000); _root.attachMovie("mo", "mouse", 1000001); _root.mapbar._x = 132.6; _root.mapbar._y = 615; _root.mapbar._xscale = -58.5; _root.mapbar._yscale = 49.14; _root.mapbar._rotation = 90; _root.enemyattack = 0; _root.nooiltruck = undefined; _root.ownmap2 = true; _root.ownmap4 = true; _root.ownmap3 = true; stop();
Instance of Symbol 1117 MovieClip "map2" in Frame 136
onClipEvent (load) { if (!_root.ownmap2) { gotoAndStop (94); } if (this._currentframe == 1) { this.words = "Our main base location since the first msssion."; } if (this._currentframe == 2) { this.words = "This territory has been conquered by the enemy. Click on it to invade."; } } onClipEvent (enterFrame) { nn = _root.map2array.toString(); }
Instance of Symbol 1117 MovieClip "map6" in Frame 136
onClipEvent (load) { if (!_root.ownmap6) { gotoAndStop (94); } if (_root.missions < 3) { this._visible = false; } if (this._currentframe == 1) { this.words = "Our laser tank prototype production facility . Provides us the ability to build our laser tank prototype."; } if (this._currentframe == 2) { this.words = "The enemy's laser tank prototype facility. The enemy uses it to construct laser tanks for use in battle.\n This territory has been conquered by the enemy. Click on it to invade."; } }
Instance of Symbol 1120 MovieClip "map3" in Frame 136
onClipEvent (load) { if (!_root.ownmap3) { gotoAndStop (94); } if (_root.missions < 2) { this._visible = false; } if (this._currentframe == 1) { this.words = "The location of an allied general's base.He will send his troops to aid us during battle.(You cannot place your own troops in this territory.)"; } if (this._currentframe == 2) { this.words = "An allied general's base.This territory has been conquered by the enemy. Click on it to invade.(You cannot occupy this territory with your own troops, if invasion is sucessful, troops will go towards your ally)"; } }
Instance of Symbol 1117 MovieClip "map5" in Frame 136
onClipEvent (load) { if (!_root.ownmap5) { gotoAndStop (94); } if (_root.missions < 3) { this._visible = false; } if (this._currentframe == 1) { this.words = "The location of our sensorNewtork facility.Allows us to revealed all the shrouds at the start of battle. "; } if (this._currentframe == 2) { this.words = "The enemy's Sensor Network.Allows the enemy quickly detect our presnece in battle and produce units to counterattack.\n This territory has been conquered by the enemy. Click on it to invade."; } }
Instance of Symbol 1117 MovieClip "map9" in Frame 136
onClipEvent (load) { if (!_root.ownmap9) { gotoAndStop (94); } if (_root.missions < 4) { this._visible = false; } if (this._currentframe == 1) { this.words = "Our superweapon facility. Allows us to use the nuclear missile superweapon during battle without a weapons silo"; } if (this._currentframe == 2) { this.words = "The enemy's superweapons facility.Allows the enemy to launch nuclear missiles at us.\n This territory has been conquered by the enemy. Click on it to invade."; } }
Instance of Symbol 1117 MovieClip "map8" in Frame 136
onClipEvent (load) { if (!_root.ownmap8) { gotoAndStop (94); } if (_root.missions < 4) { this._visible = false; } if (this._currentframe == 1) { this.words = "Our airport. Allows us to send reinforcements quickly during battle"; } if (this._currentframe == 2) { this.words = "The enemy's airport.Allows the enemy to send reinforcements to the battlefield.\n This territory has been conquered by the enemy. Click on it to invade."; } }
Instance of Symbol 1117 MovieClip "map4" in Frame 136
onClipEvent (load) { if (!_root.ownmap4) { gotoAndStop (94); } if (_root.missions < 3) { this._visible = false; } if (this._currentframe == 1) { this.words = "Our primary production base. Provides us with faster production rates."; } if (this._currentframe == 2) { this.words = "The enemy's primary production base.Allows the enemy a faster production rate during battle.\n This territory has been conquered by the enemy. Click on it to invade."; } }
Instance of Symbol 1117 MovieClip "map7" in Frame 136
onClipEvent (load) { if (!_root.ownmap7) { gotoAndStop (94); } if (_root.missions < 4) { this._visible = false; } if (this._currentframe == 1) { this.words = "Our oil refinery platform. Provides us with a steady flow of cash during battle"; } if (this._currentframe == 2) { this.words = "The enemy's oil refining platform.Provides extra cash to the enemy in battle.\n This territory has been conquered by the enemy. Click on it to invade."; } }
Instance of Symbol 1128 MovieClip "alarm" in Frame 136
onClipEvent (load) { this.territory = undefined; }
Frame 137
for (var name in _root) { if (typeof(_root[name]) == "movieclip") { _root[name].removeMovieClip(); } } _root.tutorial._visible = false; gotoAndStop (2);
Symbol 20 MovieClip Frame 1
n = 0; hit = false; stop();
Symbol 20 MovieClip Frame 2
stop();
Symbol 31 Button
on (rollOver) { hp = _root[unit].life; firepower = _root[unit].damage; hp2 = _root[unit].fulllife; rate = 1 / _root[unit].firerate; speed = _root[unit].speed; range = _root[unit].range; unittype = _root[unit].unittype; _parent.unittype = unittype; if (unittype == "rocket") { unittype2 = "rocket launcher"; } if (unittype == "humvee") { unittype2 = "humvee"; } if (unittype == "artillery") { unittype2 = "artillery"; } if (unittype == "light") { unittype2 = "light tank"; } if (unittype == "heavy") { unittype2 = "heavy tank"; } if (unittype == "war factory") { unittype2 = "war factory"; } if (unittype == "dozer") { unittype2 = "dozer"; } if (unittype == "comcentre") { unittype2 = "comcentre"; } if (unittype == "lasertank") { unittype2 = "lasertank"; } if (unittype == "oiltruck") { unittype2 = "oiltruck"; } if (unittype == "refinery") { unittype2 = "refinery"; } if (unittype == "construction") { unittype2 = "construction"; } if (unittype == "turret1") { unittype2 = "gattling gun"; } if (unittype == "mine") { unittype2 = "mine"; } if (unittype == "turret2") { unittype2 = "patroit missile"; } if (unittype == "servicedepot") { unittype2 = "servicedepot"; } if (unittype == "turret3") { unittype2 = "laser"; } if (unittype == "weaponsilo") { unittype2 = "weaponsilo"; } if (unittype == "techcentre") { unittype2 = "techcentre"; } _root.mapbar.build.texts = (((((((((((((((unittype2 + newline) + newline) + "firepower:") + firepower) + newline) + "HP:") + hp2) + newline) + "speed:") + speed) + newline) + "rate of fire:") + rate) + newline) + "range:") + range; } on (press) { if (_root.soundon) { soundobj = new Sound(); soundobj.attachSound("blip"); soundobj.start(); } if (_root[unit].speed != undefined) { mapn = _root.mapbar.mapn; trace(_root.mapbar.selectedarray.length); _root.mapbar.selectedarray.findandsplice(unitn); trace(_root.mapbar.selectedarray.length); _root[mapn + "array"].findandsplice(unitn); _root.attackarray.push(unitn); gotoAndStop (1); _root.mapbar.calccost2(); _root.mapbar.calccost(); } }
Symbol 57 MovieClip Frame 1
if (_parent._parent.enemy) { gotoAndStop ("red"); } if (_parent._parent.ally === true) { this._visible = false; } stop();
Symbol 57 MovieClip Frame 2
stop();
Symbol 64 MovieClip Frame 1
stop();
Symbol 64 MovieClip Frame 2
if (_parent.life < _parent.fulllife) { _parent.life = _parent.life + 5; }
Symbol 64 MovieClip Frame 6
if (_parent.life < _parent.fulllife) { _parent.life = _parent.life + 5; }
Symbol 64 MovieClip Frame 9
gotoAndStop (1);
Symbol 76 MovieClip Frame 1
stop();
Symbol 76 MovieClip Frame 2
stop();
Instance of Symbol 20 MovieClip "boxns" in Symbol 76 MovieClip Frame 2
onClipEvent (load) { if (_root[_parent.unit].enemy) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 24 MovieClip in Symbol 76 MovieClip Frame 2
onClipEvent (load) { if (!_root[_parent.unit].accurate) { this._visible = false; } }
Instance of Symbol 26 MovieClip in Symbol 76 MovieClip Frame 2
onClipEvent (load) { if (!_root[_parent.unit].nuke) { this._visible = false; } }
Instance of Symbol 28 MovieClip in Symbol 76 MovieClip Frame 2
onClipEvent (load) { if (!_root[_parent.unit].emp) { this._visible = false; } }
Symbol 76 MovieClip Frame 3
stop();
Instance of Symbol 34 MovieClip in Symbol 76 MovieClip Frame 3
onClipEvent (load) { if (!_root[_parent.unit].shell2) { this._visible = false; } }
Instance of Symbol 36 MovieClip in Symbol 76 MovieClip Frame 3
onClipEvent (load) { if (!_root[_parent.unit].hitonly) { this._visible = false; } }
Instance of Symbol 38 MovieClip in Symbol 76 MovieClip Frame 3
onClipEvent (load) { if (!_root[_parent.unit].auto) { this._visible = false; } }
Symbol 76 MovieClip Frame 4
stop();
Instance of Symbol 41 MovieClip in Symbol 76 MovieClip Frame 4
onClipEvent (load) { if (!_root[_parent.unit].seeker) { this._visible = false; } }
Instance of Symbol 43 MovieClip in Symbol 76 MovieClip Frame 4
onClipEvent (load) { if (_root[_parent.unit].miss != 3) { this._visible = false; } }
Instance of Symbol 45 MovieClip in Symbol 76 MovieClip Frame 4
onClipEvent (load) { if (_root[_parent.unit].miss != 2) { this._visible = false; } }
Instance of Symbol 47 MovieClip in Symbol 76 MovieClip Frame 4
onClipEvent (load) { if (!_root[_parent.unit].blast) { this._visible = false; } }
Symbol 76 MovieClip Frame 5
stop();
Instance of Symbol 50 MovieClip in Symbol 76 MovieClip Frame 5
onClipEvent (load) { if (!_root[_parent.unit].gatling) { this._visible = false; } }
Instance of Symbol 52 MovieClip in Symbol 76 MovieClip Frame 5
onClipEvent (load) { if (!_root[_parent.unit].laser) { this._visible = false; } }
Symbol 76 MovieClip Frame 6
stop();
Instance of Symbol 59 MovieClip in Symbol 76 MovieClip Frame 6
onClipEvent (load) { if (!_root[_parent.unit].crush) { this._visible = false; } }
Instance of Symbol 45 MovieClip in Symbol 76 MovieClip Frame 6
onClipEvent (load) { if (!_root[_parent.unit].missile) { this._visible = false; } }
Instance of Symbol 36 MovieClip in Symbol 76 MovieClip Frame 6
onClipEvent (load) { if (!_root[_parent.unit].hitonly) { this._visible = false; } }
Instance of Symbol 38 MovieClip in Symbol 76 MovieClip Frame 6
onClipEvent (load) { if (!_root[_parent.unit].auto) { this._visible = false; } }
Symbol 76 MovieClip Frame 7
stop();
Symbol 76 MovieClip Frame 8
stop();
Symbol 76 MovieClip Frame 9
stop();
Symbol 76 MovieClip Frame 10
stop();
Symbol 76 MovieClip Frame 11
stop();
Symbol 76 MovieClip Frame 12
stop();
Symbol 76 MovieClip Frame 13
stop();
Symbol 76 MovieClip Frame 14
stop();
Symbol 76 MovieClip Frame 15
stop();
Symbol 76 MovieClip Frame 16
stop();
Symbol 76 MovieClip Frame 17
stop();
Symbol 76 MovieClip Frame 18
stop();
Symbol 76 MovieClip Frame 19
stop();
Symbol 76 MovieClip Frame 20
stop();
Symbol 96 MovieClip Frame 1
stop();
Symbol 96 MovieClip Frame 2
stop();
Instance of Symbol 20 MovieClip "boxns" in Symbol 96 MovieClip Frame 2
onClipEvent (load) { if (_root[_parent._parent.unit].enemy) { gotoAndStop (2); } else { gotoAndStop (1); } }
Symbol 96 MovieClip Frame 3
stop();
Symbol 96 MovieClip Frame 4
stop();
Symbol 96 MovieClip Frame 5
stop();
Symbol 96 MovieClip Frame 6
stop();
Symbol 96 MovieClip Frame 7
stop();
Symbol 96 MovieClip Frame 8
stop();
Symbol 96 MovieClip Frame 9
stop();
Symbol 96 MovieClip Frame 10
stop();
Symbol 96 MovieClip Frame 11
stop();
Symbol 96 MovieClip Frame 12
stop();
Symbol 96 MovieClip Frame 13
stop();
Symbol 96 MovieClip Frame 14
stop();
Symbol 96 MovieClip Frame 15
stop();
Symbol 96 MovieClip Frame 16
stop();
Symbol 96 MovieClip Frame 17
stop();
Symbol 96 MovieClip Frame 18
stop();
Symbol 96 MovieClip Frame 19
stop();
Symbol 96 MovieClip Frame 20
stop();
Symbol 97 MovieClip Frame 1
stop();
Symbol 97 MovieClip Frame 2
stop();
Instance of Symbol 96 MovieClip "picture" in Symbol 97 MovieClip Frame 2
onClipEvent (load) { this.gotoAndStop(_parent.unittype); } onClipEvent (enterFrame) { unit = _parent.unit; hp = Math.round(_root[unit].life); if ((hp < 0) || (hp == undefined)) { _parent.prevFrame(); } firepower = _root[unit].damage; hp2 = _root[unit].fulllife; rate = _root[unit].firerate; speed = _root[unit].speed; shellspd = _root[unit].shellspd; range = _root[unit].range; unittype = _root[unit].unittype; _parent.unittype = unittype; if (unittype == "light") { unittype2 = "Light Tank"; } if (unittype == "lasertank") { unittype2 = "Laser Tank"; } if (unittype == "techcentre") { unittype2 = "Tech Centre"; } if (unittype == "heavy") { unittype2 = "Heavy Tank"; } if (unittype == "rocket") { unittype2 = "Rocket Launcher"; } if (unittype == "humvee") { unittype2 = "Humvee"; } if (unittype == "artillery") { unittype2 = "Artillery"; } if (unittype == "war factory") { unittype2 = "War Factory"; } if (unittype == "dozer") { unittype2 = "Construction Dozer"; } if (unittype == "comcentre") { unittype2 = "Command Centre"; } if (unittype == "oiltruck") { unittype2 = "Oil Truck"; } if (unittype == "refinery") { unittype2 = "Oil Refinery"; } if (unittype == "construction") { unittype2 = "Construction Site"; } if (unittype == "turret1") { unittype2 = "Gattling Turret"; } if (unittype == "turret2") { unittype2 = "Patriot Missile"; } if (unittype == "turret3") { unittype2 = "Laser"; } if (unittype == "servicedepot") { unittype2 = "Service Depot"; } if (unittype == "mine") { unittype2 = "Mine"; } if (unittype == "weaponsilo") { unittype2 = "Weapon Silo"; } if (_root[unit].enemy) { unittype2 = "Enemy " + unittype2; } i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; _root[current].selector._visible = false; _root[current].selected1 = false; i--; } aggressive = _root[unit].aggressive; avoid = _root[unit].avoid; _root.selectedarray = [unit]; _root[unit].selector._visible = true; _parent.stats = (((((((((((((((((((((((unittype2 + newline) + "firepower:") + firepower) + newline) + "HP:") + hp) + "/") + hp2) + newline) + "speed:") + speed) + newline) + "weapon speed:") + shellspd) + newline) + "reload time:") + rate) + newline) + "range:") + range) + "\n guardmode:") + aggressive) + "\n avoid fire:") + avoid; }
Instance of Symbol 24 MovieClip in Symbol 97 MovieClip Frame 2
onClipEvent (enterFrame) { if (!_root[_parent.unit].accurate) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 26 MovieClip in Symbol 97 MovieClip Frame 2
onClipEvent (enterFrame) { if (!_root[_parent.unit].nuke) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 28 MovieClip in Symbol 97 MovieClip Frame 2
onClipEvent (load) { if (!_root[_parent.unit].emp) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 34 MovieClip in Symbol 97 MovieClip Frame 2
onClipEvent (enterFrame) { if (!_root[_parent.unit].shell2) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 36 MovieClip in Symbol 97 MovieClip Frame 2
onClipEvent (enterFrame) { if (!_root[_parent.unit].hitonly) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 38 MovieClip in Symbol 97 MovieClip Frame 2
onClipEvent (enterFrame) { if (!_root[_parent.unit].auto) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 50 MovieClip in Symbol 97 MovieClip Frame 2
onClipEvent (enterFrame) { if (!_root[_parent.unit].gatling) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 52 MovieClip in Symbol 97 MovieClip Frame 2
onClipEvent (enterFrame) { if (!_root[_parent.unit].laser) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 59 MovieClip in Symbol 97 MovieClip Frame 2
onClipEvent (enterFrame) { if (!_root[_parent.unit].crush) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 43 MovieClip in Symbol 97 MovieClip Frame 2
onClipEvent (enterFrame) { if (_root[_parent.unit].miss != 3) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 41 MovieClip in Symbol 97 MovieClip Frame 2
onClipEvent (enterFrame) { if (!_root[_parent.unit].seeker) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 45 MovieClip in Symbol 97 MovieClip Frame 2
onClipEvent (enterFrame) { if ((_root[_parent.unit].miss != 2) || (_root[_parent.unit].missile && (_root[_parent.unit].unittype == "heavy"))) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 47 MovieClip in Symbol 97 MovieClip Frame 2
onClipEvent (enterFrame) { if (!_root[_parent.unit].blast) { this._visible = false; } else { this._visible = true; } }
Symbol 103 Button
on (press) { if (_root.mapbar.moven >= 18) { _root.mapbar.moven = _root.mapbar.moven - 18; _root.mapbar.calccost2(); } } on (keyPress "A") { if (_root.mapbar.moven >= 18) { _root.mapbar.moven = _root.mapbar.moven - 18; _root.mapbar.calccost2(); } }
Symbol 104 Button
on (press) { if (_root.mapbar.moven < _root.attackarray.length) { _root.mapbar.moven = _root.mapbar.moven + 18; _root.mapbar.calccost2(); } } on (keyPress "D") { if (_root.mapbar.moven < _root.attackarray.length) { _root.mapbar.moven = _root.mapbar.moven + 18; _root.mapbar.calccost2(); } }
Symbol 107 Button
on (rollOver) { hp = _root[unit].life; firepower = _root[unit].damage; hp2 = _root[unit].fulllife; rate = 1 / _root[unit].firerate; speed = _root[unit].speed; range = _root[unit].range; unittype = _root[unit].unittype; _parent.unittype = unittype; if (unittype == "light") { unittype2 = "Light Tank"; } if (unittype == "heavy") { unittype2 = "Heavy Tank"; } if (unittype == "rocket") { unittype2 = "Rocket Launcher"; } if (unittype == "humvee") { unittype2 = "Humvee"; } if (unittype == "artillery") { unittype2 = "Artillery"; } if (unittype == "dozer") { unittype2 = "Construction Dozer"; } _root.mapbar.build.texts = (((((((((((((((unittype2 + newline) + newline) + "firepower:") + firepower) + newline) + "HP:") + hp2) + newline) + "speed:") + speed) + newline) + "rate of fire:") + rate) + newline) + "range:") + range; } on (press) { if (_root.soundon) { soundobj = new Sound(); soundobj.attachSound("blip"); soundobj.start(); } trace(unit + "iop"); if ((_root[unit].speed != undefined) && (_root[_root.mapbar.mapn]._currentframe == 1)) { mapn = _root.mapbar.mapn; trace(_root[mapn + "array"].length); _root.mapbar.selectedarray.push(unitn); _root[mapn + "array"].push(unitn); trace(_root[mapn + "array"].length + "LENGTHAFTER"); _root.attackarray.findandsplice(unitn); gotoAndStop (1); _root.mapbar.calccost2(); _root.mapbar.calccost(); } }
Symbol 114 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 2
stop();
Instance of Symbol 24 MovieClip in Symbol 114 MovieClip Frame 2
onClipEvent (load) { if (!_root[_parent.unit].accurate) { this._visible = false; } }
Instance of Symbol 26 MovieClip in Symbol 114 MovieClip Frame 2
onClipEvent (load) { if (!_root[_parent.unit].nuke) { this._visible = false; } }
Instance of Symbol 28 MovieClip in Symbol 114 MovieClip Frame 2
onClipEvent (load) { if (!_root[_parent.unit].emp) { this._visible = false; } }
Symbol 114 MovieClip Frame 3
stop();
Instance of Symbol 34 MovieClip in Symbol 114 MovieClip Frame 3
onClipEvent (load) { if (!_root[_parent.unit].shell2) { this._visible = false; } }
Instance of Symbol 36 MovieClip in Symbol 114 MovieClip Frame 3
onClipEvent (load) { if (!_root[_parent.unit].hitonly) { this._visible = false; } }
Instance of Symbol 38 MovieClip in Symbol 114 MovieClip Frame 3
onClipEvent (load) { if (!_root[_parent.unit].auto) { this._visible = false; } }
Symbol 114 MovieClip Frame 4
stop();
Instance of Symbol 41 MovieClip in Symbol 114 MovieClip Frame 4
onClipEvent (load) { if (!_root[_parent.unit].seeker) { this._visible = false; } }
Instance of Symbol 43 MovieClip in Symbol 114 MovieClip Frame 4
onClipEvent (load) { if (_root[_parent.unit].miss != 3) { this._visible = false; } }
Instance of Symbol 45 MovieClip in Symbol 114 MovieClip Frame 4
onClipEvent (load) { if (_root[_parent.unit].miss != 2) { this._visible = false; } }
Instance of Symbol 47 MovieClip in Symbol 114 MovieClip Frame 4
onClipEvent (load) { if (!_root[_parent.unit].blast) { this._visible = false; } }
Symbol 114 MovieClip Frame 5
stop();
Instance of Symbol 50 MovieClip in Symbol 114 MovieClip Frame 5
onClipEvent (load) { if (!_root[_parent.unit].gatling) { this._visible = false; } }
Instance of Symbol 52 MovieClip in Symbol 114 MovieClip Frame 5
onClipEvent (load) { if (!_root[_parent.unit].laser) { this._visible = false; } }
Symbol 114 MovieClip Frame 6
stop();
Instance of Symbol 59 MovieClip in Symbol 114 MovieClip Frame 6
onClipEvent (load) { if (!_root[_parent.unit].crush) { this._visible = false; } }
Instance of Symbol 45 MovieClip in Symbol 114 MovieClip Frame 6
onClipEvent (load) { if (!_root[_parent.unit].missile) { this._visible = false; } }
Instance of Symbol 36 MovieClip in Symbol 114 MovieClip Frame 6
onClipEvent (load) { if (!_root[_parent.unit].hitonly) { this._visible = false; } }
Instance of Symbol 38 MovieClip in Symbol 114 MovieClip Frame 6
onClipEvent (load) { if (!_root[_parent.unit].auto) { this._visible = false; } }
Symbol 114 MovieClip Frame 7
stop();
Symbol 114 MovieClip Frame 8
stop();
Symbol 120 Button
on (press) { if (garn >= 20) { garn = garn - 20; calccost(); } } on (keyPress "a") { if (garn >= 20) { garn = garn - 20; calccost(); } }
Symbol 121 Button
on (press) { if (garn < selectedarray.length) { _root.mapbar.garn = _root.mapbar.garn + 20; calccost(); } } on (keyPress "d") { if (garn < selectedarray.length) { _root.mapbar.garn = _root.mapbar.garn + 20; calccost(); } }
Symbol 131 Button
on (release) { _root.gotoAndStop(_root.mapbar.mapn); }
Symbol 137 Button
on (release) { _root.gotoAndStop(_root.mapbar.mapn + "d"); }
Symbol 138 MovieClip [mapbar] Frame 1
function calccost2() { trace(_root.attackarray.toString() + "attackary"); var _local3 = 20 + moven; while (_local3 > (moven - 1)) { current = _root.attackarray[_local3]; this.build["d" + Number((_local3 + 1) - moven)].gotoAndStop(1); trace(_root[current + "obj"].unittype); this.build["d" + Number((_local3 - moven) + 1)].gotoAndStop(_root[current + "obj"].unittype); this.build["d" + Number((_local3 - moven) + 1)].unit = current + "obj"; this.build["d" + Number((_local3 - moven) + 1)].unitn = current; _local3--; } } function calccost() { if (selectedarray.length == 0) { this.shower.gotoAndStop(1); } i = 20 + garn; while (i > (garn - 1)) { this["s" + i].gotoAndStop(1); this.shower["d" + Number((i + 1) - garn)].gotoAndStop(1); i--; } i = selectedarray.length - 1; while (i > -1) { current = selectedarray[i]; if (_root[current + "obj"].fulllife == undefined) { current = current + mapn; } if (_root[current + "obj"].unittype == "rocket") { this.shower["d" + Number((i + 1) - garn)].gotoAndStop("rocket"); } if (_root[current + "obj"].unittype == "humvee") { this.shower["d" + Number((i + 1) - garn)].gotoAndStop("humvee"); } if (_root[current + "obj"].unittype == "artillery") { this.shower["d" + Number((i + 1) - garn)].gotoAndStop("artillery"); } if (_root[current + "obj"].unittype == "light") { this.shower["d" + Number((i + 1) - garn)].gotoAndStop("light"); } if (_root[current + "obj"].unittype == "heavy") { this.shower["d" + Number((i + 1) - garn)].gotoAndStop("heavy"); } if (_root[current + "obj"].unittype == "war factory") { this.shower["d" + Number((i + 1) - garn)].gotoAndStop("war factory"); } if (_root[current + "obj"].unittype == "dozer") { this.shower["d" + Number((i + 1) - garn)].gotoAndStop("dozer"); } if (_root[current + "obj"].unittype == "comcentre") { this.shower["d" + Number((i + 1) - garn)].gotoAndStop("comcentre"); } if (_root[current + "obj"].unittype == "lasertank") { this.shower["d" + Number((i + 1) - garn)].gotoAndStop("lasertank"); } if (_root[current + "obj"].unittype == "oiltruck") { this.shower["d" + Number((i + 1) - garn)].gotoAndStop("oiltruck"); } if (_root[current + "obj"].unittype == "refinery") { this.shower["d" + Number((i + 1) - garn)].gotoAndStop("refinery"); } if (_root[current + "obj"].unittype == "construction") { this.shower["d" + Number((i + 1) - garn)].gotoAndStop("construction"); } if (_root[current + "obj"].unittype == "turret1") { this.shower["d" + Number((i + 1) - garn)].gotoAndStop("turret1"); } if (_root[current + "obj"].unittype == "mine") { this.shower["d" + Number((i + 1) - garn)].gotoAndStop("mine"); } if (_root[current + "obj"].unittype == "turret2") { this.shower["d" + Number((i + 1) - garn)].gotoAndStop("turret2"); } if (_root[current + "obj"].unittype == "servicedepot") { this.shower["d" + Number((i + 1) - garn)].gotoAndStop("servicedepot"); } if (_root[current + "obj"].unittype == "turret3") { this.shower["d" + Number((i + 1) - garn)].gotoAndStop("turret3"); } if (_root[current + "obj"].unittype == "weaponsilo") { this.shower["d" + Number((i + 1) - garn)].gotoAndStop("weaponsilo"); } if (_root[current + "obj"].unittype == "techcentre") { this.shower["d" + Number((i + 1) - garn)].gotoAndStop("techcentre"); } this.shower["d" + Number((i + 1) - garn)].unitn = current; this.shower["d" + Number((i + 1) - garn)].unit = current + "obj"; i--; } } avoid = true; garn = 0; moven = 0; invadebutton._visible = false; commandbutton._visible = false; stop();
Instance of Symbol 97 MovieClip "shower" in Symbol 138 MovieClip [mapbar] Frame 1
onClipEvent (load) { _parent.build.buildlist = []; }
Instance of Symbol 116 MovieClip "build" in Symbol 138 MovieClip [mapbar] Frame 1
/* no clip actions */
Symbol 144 MovieClip [missiondefend2] Frame 2
pp = 0; stop(); assigndefvar("map4"); stop();
Instance of Symbol 141 MovieClip in Symbol 144 MovieClip [missiondefend2] Frame 2
onClipEvent (enterFrame) { if (_root.production3.life <= 0) { _root.gotoAndStop("defeat4"); } if (_root.production1.life <= 0) { _root.gotoAndStop("defeat4"); } if (_root.production2.life <= 0) { _root.gotoAndStop("defeat4"); } if (_root.production4.life <= 0) { _root.gotoAndStop("defeat4"); } }
Symbol 147 MovieClip [missiondefend] Frame 2
pp = 0; stop(); assigndefvar("map2"); stop();
Symbol 150 MovieClip [missiondefend6] Frame 2
pp = 0; stop(); assigndefvar("map8"); stop();
Instance of Symbol 141 MovieClip in Symbol 150 MovieClip [missiondefend6] Frame 2
onClipEvent (enterFrame) { if (_root.airport.life <= 0) { _root.gotoAndStop("defeat8d"); } }
Symbol 152 MovieClip [missiondefend5] Frame 2
pp = 0; stop(); assigndefvar("map7"); stop();
Instance of Symbol 141 MovieClip in Symbol 152 MovieClip [missiondefend5] Frame 2
onClipEvent (enterFrame) { if (_root.oilderricks <= 4) { _root.gotoAndStop("defeat7d"); } }
Symbol 154 MovieClip [missiondefend4] Frame 2
pp = 0; stop(); assigndefvar("map6"); stop();
Instance of Symbol 141 MovieClip in Symbol 154 MovieClip [missiondefend4] Frame 2
onClipEvent (enterFrame) { if (_root.techcentre1.life <= 0) { _root.gotoAndStop("defeat6d"); } }
Symbol 156 MovieClip [missiondefend3] Frame 2
pp = 0; stop(); assigndefvar("map5"); stop();
Instance of Symbol 141 MovieClip in Symbol 156 MovieClip [missiondefend3] Frame 2
onClipEvent (enterFrame) { if (_root.sensornets <= 0) { _root.gotoAndStop("defeat5"); } }
Symbol 158 MovieClip [mission9] Frame 2
pp = 0; stop(); assignvars(); stop();
Symbol 160 MovieClip [mission8] Frame 2
pp = 0; stop(); assignvars(); stop();
Instance of Symbol 141 MovieClip in Symbol 160 MovieClip [mission8] Frame 2
onClipEvent (enterFrame) { if (_root.airport.life <= 0) { _root.gotoAndStop("defeat8"); } }
Symbol 162 MovieClip [mission6] Frame 2
pp = 0; stop(); assignvars(); _root.attackarray = []; stop();
Instance of Symbol 141 MovieClip in Symbol 162 MovieClip [mission6] Frame 2
onClipEvent (enterFrame) { if (_root.enemytechcentre1.life <= 0) { _root.gotoAndStop("defeat6"); } }
Symbol 164 MovieClip [mission5] Frame 2
pp = 0; stop(); assignvars(); _root.attackarray = []; stop();
Instance of Symbol 141 MovieClip in Symbol 164 MovieClip [mission5] Frame 2
onClipEvent (enterFrame) { if (_root.sensornets <= 0) { _root.gotoAndStop("defeat5"); } }
Symbol 166 MovieClip [mission4] Frame 2
pp = 0; stop(); assignvars(); _root.attackarray = []; stop();
Instance of Symbol 141 MovieClip in Symbol 166 MovieClip [mission4] Frame 2
onClipEvent (enterFrame) { if (_root.production3.life <= 0) { _root.gotoAndStop("defeat4"); } if (_root.production1.life <= 0) { _root.gotoAndStop("defeat4"); } if (_root.production2.life <= 0) { _root.gotoAndStop("defeat4"); } if (_root.production4.life <= 0) { _root.gotoAndStop("defeat4"); } }
Symbol 174 MovieClip [mission2] Frame 1
_root.sidebar.mapp.gotoAndStop(4); movetoloc(_root.tartar._x, _root.tartar._y); _root.scrolla = true; this._x = this._x * 0.78; this._y = this._y * 0.78; var i = 10; while (i > 0) { if (_root["elite" + i].life != undefined) { _root["elite" + i].life = _root["elite" + i].fulllife; _root["elite" + i]._x = _root.tart5._x + _root.linex[i]; _root["elite" + i]._y = _root.tart5._y + _root.liney[i]; _root["elite" + i]._visible = true; _root["elite" + i].walking = false; _root["elite" + i].fireing = false; _root.friendlylist.push("elite" + i); _root.unitsarray.push("elite" + i); _root.objarray.push("elite" + i); } i--; } stop();
Instance of Symbol 141 MovieClip in Symbol 174 MovieClip [mission2] Frame 1
onClipEvent (enterFrame) { pp++; if (pp > 100) { _parent.nextFrame(); } } onClipEvent (load) { pp = 0; }
Symbol 174 MovieClip [mission2] Frame 2
pp = 0; var i = 10; while (i > 0) { _root["elite" + i].swapDepths(i); _root["elite" + i].aigoto(_root.tart6._x, _root.tart6._y, false); i--; } stop();
Instance of Symbol 141 MovieClip in Symbol 174 MovieClip [mission2] Frame 2
onClipEvent (enterFrame) { _parent.pp++; if (_parent.pp > 100) { _parent.nextFrame(); } } onClipEvent (load) { _parent.pp = 0; }
Symbol 174 MovieClip [mission2] Frame 3
nextFrame();
Instance of Symbol 141 MovieClip in Symbol 174 MovieClip [mission2] Frame 3
/* no clip actions */
Symbol 174 MovieClip [mission2] Frame 4
stop();
Symbol 179 MovieClip [mission] Frame 1
_root.sidebar.mapp.gotoAndStop(3); _root.scrolla = false; this._x = this._x * 0.78; this._y = this._y * 0.78; unitsarray = _root.unitsarray.concat(_root.oilarray); i = unitsarray.length - 1; while (i > -1) { current = unitsarray[i]; _root[current + "symbols"]._visible = false; i--; } i = _root.friendlylist.length - 1; while (i > -1) { current = _root.friendlylist[i]; if (_root[current].auto._x != undefined) { _root[current].life = _root[current].life * 5; _root[current].fulllife = _root[current].fulllife * 10; } if (_root[current].speed != undefined) { _root[current].life = _root[current].life * 2; _root[current].fulllife = _root[current].fulllife * 2; _root[current].laser = true; _root[current].auto = true; _root[current].miss = 2; _root[current].shell2 = true; } i--; } _root.box6._visible = false; _root.sidebar._visible = false; stop();
Instance of Symbol 141 MovieClip in Symbol 179 MovieClip [mission] Frame 1
onClipEvent (enterFrame) { pp++; if (pp > 100) { _parent.nextFrame(); } } onClipEvent (load) { pp = 0; }
Symbol 179 MovieClip [mission] Frame 2
pp = 0; stop();
Instance of Symbol 141 MovieClip in Symbol 179 MovieClip [mission] Frame 2
onClipEvent (enterFrame) { _parent.pp++; if (_parent.pp > 100) { _parent.nextFrame(); } } onClipEvent (load) { _parent.pp = 0; }
Symbol 179 MovieClip [mission] Frame 3
movetoloc(_root.tartar._x, _root.tartar._y); _root.scrolla = true; var i = 4; while (i > 0) { _root.attachMovie("light", "elite" + i, _root.n); _root["elite" + i]._x = _root.tart._x; _root["elite" + i]._y = _root.tart._y; _root["elite" + i].life = 500; _root["elite" + i].fulllife = 500; _root["elite" + i].shell2 = true; _root["elite" + i].auto = true; _root["elite" + i].firerate = 10; _root.n++; i--; } var i = 6; while (i > 4) { _root.attachMovie("rocket", "elite" + i, _root.n); _root["elite" + i]._x = _root.tart._x; _root["elite" + i]._y = _root.tart._y; _root["elite" + i].miss = 2; _root["elite" + i].damage = 75; _root["elite" + i].seeker = true; _root.n++; i--; } var i = 9; while (i > 6) { _root.attachMovie("humvee", "elite" + i, _root.n); _root["elite" + i]._x = _root.tart._x; _root["elite" + i]._y = _root.tart._y; _root["elite" + i].laser = true; _root["elite" + i].speed = 8; _root.n++; i--; } var i = 10; while (i > 9) { _root.attachMovie("artillery", "elite" + i, _root.n); _root["elite" + i]._x = _root.tart._x; _root["elite" + i]._y = _root.tart._y; _root["elite" + i].emp = true; _root.n++; i--; } nextFrame();
Instance of Symbol 141 MovieClip in Symbol 179 MovieClip [mission] Frame 3
/* no clip actions */
Symbol 179 MovieClip [mission] Frame 4
stop(); var i = 9; while (i > 0) { _root["elite" + i].aigoto(_root.tart3._x, _root.tart3._y); i--; } var i = 4; while (i > 0) { _root["elite" + i].life = 700; _root["elite" + i].fulllife = 700; _root["elite" + i].shell2 = true; _root["elite" + i].auto = true; _root["elite" + i].firerate = 10; i--; } var i = 6; while (i > 4) { _root["elite" + i].miss = 2; _root["elite" + i].damage = 105; _root["elite" + i].life = 500; _root["elite" + i].fulllife = 500; _root["elite" + i].seeker = true; i--; } var i = 9; while (i > 6) { _root["elite" + i].laser = true; _root["elite" + i].life = 300; _root["elite" + i].fulllife = 300; _root["elite" + i].speed = 8; i--; } var i = 10; while (i > 9) { _root["elite" + i].life = 500; _root["elite" + i].fulllife = 500; _root["elite" + i].emp = true; i--; }
Symbol 183 Button
on (rollOver) { if (_parent.enemy) { if (_root.selectedarray.length > 0) { _root.mouse.gotoAndStop("attacker"); } } } on (rollOut) { if (_parent.enemy) { if (_root.selectedarray.length > 0) { _root.mouse.gotoAndStop("locator"); } } } on (press) { if (_root.soundon) { soundobj = new Sound(); soundobj.attachSound("blip"); soundobj.start(); } }
Symbol 186 MovieClip Frame 1
stop();
Symbol 186 MovieClip Frame 2
if (_parent.enemy) { _root.kills++; } if (!_parent.enemy) { _root.losses++; } _parent.turret._visible = false; if (((((_parent._x < 1000) && (_parent._y < 768)) && (_parent._x > 0)) && (_parent._y > 0)) && (_root.soundon)) { soundobj = new Sound(); soundobj.attachSound("crash"); soundobj.start(); }
Symbol 186 MovieClip Frame 8
_root.objarray.findandsplice(_parent._name); _root.unitsarray.findandsplice(_parent._name); _root.enemyarray.findandsplice(_parent._name); _root.friendlylist.findandsplice(_parent._name); _root.objarray.findandsplice("flag" + _parent._name); _root.selectedarray.findandsplice(_parent._name); _root.flagsarray.findandsplice("flag" + _parent._name); _root.sidebar.calccost(); _root[_parent._name + "symbols"].removeMovieClip(); _root["flag" + _parent._name].removeMovieClip(); _parent.nextFrame(); _parent.removeMovieClip(); stop();
Symbol 193 MovieClip Frame 1
stop();
Symbol 193 MovieClip Frame 4
_root.attachMovie("shell", "shell" + _root.n, _root.n); _root["shell" + _root.n]._x = _parent._x; _root["shell" + _root.n]._y = _parent._y; _root["shell" + _root.n]._rotation = this._rotation; _root["shell" + _root.n].damage = _parent.damage; _root["shell" + _root.n].shellspd = _parent.shellspd; _root["shell" + _root.n].targetobj = targetobj; _root["shell" + _root.n].hitonly = _parent.hitonly; _root["shell" + _root.n].firerer = _parent._name; _root.objarray.push("shell" + _root.n); _root.n++; if (((((_parent._x < 1000) && (_parent._y < 768)) && (_parent._x > 0)) && (_parent._y > 0)) && (_root.soundon)) { soundobj = new Sound(); soundobj.attachSound("lights"); soundobj.start(); }
Symbol 193 MovieClip Frame 10
if (_parent.shell2) { _root.attachMovie("shell", "she2ll" + _root.n, _root.n); _root["she2ll" + _root.n]._x = _parent._x; _root["she2ll" + _root.n]._y = _parent._y; _root["she2ll" + _root.n]._rotation = this._rotation; _root["she2ll" + _root.n].damage = _parent.damage; _root["she2ll" + _root.n].shellspd = _parent.shellspd; _root["she2ll" + _root.n].targetobj = targetobj; _root["she2ll" + _root.n].hitonly = _parent.hitonly; _root["she2ll" + _root.n].firerer = _parent._name; _root.objarray.push("she2ll" + _root.n); _root.n++; } if ((!_root[targetobj].walking) && (!_root[targetobj].fireing)) { if (_root[targetobj].aggressive) { _root[targetobj].aiattack(_parent._name); } }
Instance of Symbol 141 MovieClip in Symbol 193 MovieClip Frame 10
onClipEvent (enterFrame) { n++; if (n > _parent._parent.firerate) { _parent.gotoAndStop(1); } } onClipEvent (load) { n = 0; }
Symbol 193 MovieClip Frame 16
gotoAndStop ("normal");
Symbol 197 MovieClip [lightally] Frame 1
stop();
Instance of Symbol 186 MovieClip "dummy" in Symbol 197 MovieClip [lightally] Frame 1
onClipEvent (load) { _root.attachMovie("dot", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; _parent.upgrade = 0; _parent.auto = false; _parent.unittype = "light"; _parent.shell2 = false; _parent.hitonly = false; _parent.damage = 20; _parent.shellspd = 10; _parent.aggressive = true; this.stripe._visible = false; _parent.enemy = false; _parent.num = _root.num; _root.num++; _parent.selected1 = false; _root.unitsarray.push(_parent._name); _root.objarray.push(_parent._name); _parent.life = 300; nohit = 0; _parent.avoid = true; _parent.fulllife = 300; _parent.speed = 3; _parent.firerate = 5; _parent.walking = false; _parent.fireing = false; _parent.attack = false; _parent.range = 200; empulse = 0; as = 0; left = 1; } onClipEvent (enterFrame) { if (empulse > 0) { empulse--; } if (empulse == 0) { if ((!_parent.walking) && (!_parent.fireing)) { lo = Math.floor(Math.random() * (_root.enemyarray.length - 1)); unit = _root.enemyarray[lo]; _parent.aiattack(unit); } if (_parent.attack) { if (_root[_parent.targetobj].life <= 0) { obstacle = false; _parent.targetobj = undefined; _parent.walking = false; _parent.attack = false; } _root[flag]._x = _root[_parent.targetobj]._x; _root[flag]._y = _root[_parent.targetobj]._y; dx = _root[_parent.targetobj]._x - _parent._x; dy = _root[_parent.targetobj]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < _parent.range) { obstacle = false; _parent.walking = false; _parent.fireing = true; _parent.turret._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); if (_parent.turret._currentframe == 1) { _parent.turret.play(); _parent.turret.targetobj = _parent.targetobj; } if (_root[_parent.targetobj].life <= 0) { _parent.targetobj = undefined; _parent.attack = false; _parent.fireing = false; } } } if (_parent.walking == true) { _parent.fireing = false; hit = false; flag = "flag" + _parent._name; if (_parent.locx == undefined) { _parent.locx = 0; _parent.locy = 0; } if (!obstacle) { dx = (_root[flag]._x - _parent._x) + _parent.locx; dy = (_root[flag]._y - _parent._y) + _parent.locy; this._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); } if (obstacle) { dxn = _root[flag2]._x - _parent._x; dyn = _root[flag2]._y - _parent._y; this._rotation = (Math.atan2(dyn, dxn) * 360) / (Math.PI*2); } rads = (this._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * _parent.speed); _parent._y = _parent._y + (Math.sin(rads) * _parent.speed); _parent.movesym(); nohit++; if (nohit == 20) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (this.hitTest(_root[current])) { if (_parent.num > _root[current].num) { if (this._rotation > 0) { _parent._x = _parent._x + (_parent._width / 2); _parent._y = _parent._y + (_parent._height / 2); } if (this._rotation < 0) { _parent._x = _parent._x - (_parent._width / 2); _parent._y = _parent._y - (_parent._height / 2); } break; } } i--; } nohit = 0; } if (obstacle) { dx = _root[flag2]._x - _parent._x; dy = _root[flag2]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 10) { obstacle = false; } } if (!obstacle) { dx = _root[flag]._x - _parent._x; dy = _root[flag]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 10) { _root[flag].removeMovieClip(); _root.objarray.findandsplice(flag); _root.flagsarray.findandsplice(flag); _parent.walking = false; } } } if (_parent.fireing) { dx = _root[_parent.targetobj]._x - _parent._x; dy = _root[_parent.targetobj]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist > (_parent.range * 1.5)) { _parent.walking = true; _root[flag]._x = _root[_parent.targetobj]._x; _root[flag]._y = _root[_parent.targetobj]._y; _parent.fireing = false; } } if (_parent.fireing) { _parent.turret._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); if (_parent.turret._currentframe == 1) { _parent.turret.play(); _parent.turret.targetobj = _parent.targetobj; } if (_root[_parent.targetobj].life <= 0) { _parent.targetobj = undefined; _parent.fireing = false; _parent.attack = false; } if (!_parent.walking) { if (_parent.avoid) { as++; if (!obstacle) { if (left > 0) { this._rotation = ((Math.atan2(dy, dx) * 360) / (Math.PI*2)) - 90; } if (left < 0) { this._rotation = ((Math.atan2(dy, dx) * 360) / (Math.PI*2)) + 135; } if (as > 50) { as = 0; left = -left; } } if (obstacle) { dxn = _root[flag2]._x - _parent._x; dyn = _root[flag2]._y - _parent._y; this._rotation = (Math.atan2(dyn, dxn) * 360) / (Math.PI*2); } rads = (this._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * _parent.speed); _parent._y = _parent._y + (Math.sin(rads) * _parent.speed); _parent.movesym(); } } if (_parent.hitTest(_root.back.tops)) { _parent._y = _parent._y + 20; } if (_parent.hitTest(_root.back.bottoms)) { _parent._y = _parent._y - 20; } if (_parent.hitTest(_root.back.lefts)) { _parent._x = _parent._x + 20; } if (_parent.hitTest(_root.back.rights)) { _parent._x = _parent._x - 20; } } } }
Instance of Symbol 188 MovieClip "selector" in Symbol 197 MovieClip [lightally] Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 197 MovieClip [lightally] Frame 1
onClipEvent (enterFrame) { this._xscale = 90 * (_parent.life / _parent.fulllife); if (_parent.dummy._currentframe == 1) { if (_parent.life <= 0) { _parent.dummy.gotoAndPlay("explode"); } } }
Symbol 197 MovieClip [lightally] Frame 2
stop();
Symbol 202 MovieClip Frame 1
stop();
Symbol 202 MovieClip Frame 2
if (_parent.enemy) { _root.money = _root.money + 500; } if (!_parent.enemy) { _root.enemymoney = _root.enemymoney + 500; } _parent.turret._visible = false; if (((((_parent._x < 1000) && (_parent._y < 768)) && (_parent._x > 0)) && (_parent._y > 0)) && (_root.soundon)) { soundobj = new Sound(); soundobj.attachSound("crash"); soundobj.start(); }
Symbol 202 MovieClip Frame 8
_root.objarray.findandsplice(_parent._name); _root.unitsarray.findandsplice(_parent._name); _root.enemyarray.findandsplice(_parent._name); _root.friendlylist.findandsplice(_parent._name); _root.objarray.findandsplice("flag" + _parent._name); _root.selectedarray.findandsplice(_parent._name); _root.flagsarray.findandsplice("flag" + _parent._name); _root["flag" + _parent._name].removeMovieClip(); _root[_parent._name + "symbols"].removeMovieClip(); _root.sidebar.calccost(); _parent.nextFrame(); _parent.removeMovieClip(); stop();
Symbol 205 MovieClip Frame 1
stop();
Symbol 205 MovieClip Frame 4
_root.attachMovie("shell", "shell" + _root.n, _root.n); _root["shell" + _root.n]._x = _parent._x; _root["shell" + _root.n]._y = _parent._y; _root["shell" + _root.n]._rotation = this._rotation; _root["shell" + _root.n].damage = _parent.damage; _root["shell" + _root.n].shellspd = _parent.shellspd; _root["shell" + _root.n].targetobj = targetobj; _root["shell" + _root.n].hitonly = _parent.hitonly; _root["shell" + _root.n].firerer = _parent._name; _root.objarray.push("shell" + _root.n); _root.n++; if (((((_parent._x < 1000) && (_parent._y < 768)) && (_parent._x > 0)) && (_parent._y > 0)) && (_root.soundon)) { soundobj = new Sound(); soundobj.attachSound("cannon6"); soundobj.start(); }
Symbol 205 MovieClip Frame 5
if (_parent.missile) { _root.attachMovie("missile", "missile" + _root.n, _root.n); _root["missile" + _root.n]._x = _parent._x; _root["missile" + _root.n]._y = _parent._y; _root["missile" + _root.n]._rotation = this._rotation; _root["missile" + _root.n].damage = _parent.damage / 2; _root["missile" + _root.n].shellspd = _parent.shellspd / 2; _root["missile" + _root.n].targetobj = targetobj; _root["missile" + _root.n].hitonly = _parent.hitonly; _root.objarray.push("missile" + _root.n); _root.n++; }
Symbol 205 MovieClip Frame 6
_root.attachMovie("shell", "she2ll" + _root.n, _root.n); _root["she2ll" + _root.n]._x = _parent._x; _root["she2ll" + _root.n]._y = _parent._y - 20; _root["she2ll" + _root.n]._rotation = this._rotation; _root["she2ll" + _root.n].damage = _parent.damage; _root["she2ll" + _root.n].shellspd = _parent.shellspd; _root["she2ll" + _root.n].targetobj = targetobj; _root["she2ll" + _root.n].hitonly = _parent.hitonly; _root["she2ll" + _root.n].firerer = _parent._name; _root.objarray.push("she2ll" + _root.n); _root.n++; if (((((_parent._x < 1000) && (_parent._y < 768)) && (_parent._x > 0)) && (_parent._y > 0)) && (_root.soundon)) { soundobj = new Sound(); soundobj.attachSound("cannon6"); soundobj.start(); }
Symbol 205 MovieClip Frame 7
if (_parent.missile) { _root.attachMovie("missile", "miss2ile" + _root.n, _root.n); _root["miss2ile" + _root.n]._x = _parent._x; _root["miss2ile" + _root.n]._y = _parent._y - 40; _root["miss2ile" + _root.n]._rotation = this._rotation; _root["miss2ile" + _root.n].damage = _parent.damage / 2; _root["miss2ile" + _root.n].shellspd = _parent.shellspd / 2; _root["miss2ile" + _root.n].targetobj = targetobj; _root["miss2ile" + _root.n].hitonly = _parent.hitonly; _root.objarray.push("miss2ile" + _root.n); _root.n++; }
Symbol 205 MovieClip Frame 10
if (shell2) { _root.attachMovie("shell", "she2ll" + _root.n, _root.n); _root["she2ll" + _root.n]._x = _parent._x; _root["she2ll" + _root.n]._y = _parent._y; _root["she2ll" + _root.n]._rotation = this._rotation; _root["she2ll" + _root.n].damage = _parent.damage; _root["she2ll" + _root.n].shellspd = _parent.shellspd; _root["she2ll" + _root.n].targetobj = targetobj; _root["she2ll" + _root.n].hitonly = _parent.hitonly; _root.objarray.push("she2ll" + _root.n); } if ((!_root[targetobj].fireing) && (!_root[targetobj].walking)) { if (_root[targetobj].aggressive) { _root[targetobj].targetobj = firerer; _root[targetobj].attack = true; _root["flag" + targetobj].removeMovieClip(); _root.flagsarray.findandsplice("flag" + targetobj); _root.objarray.findandsplice("flag" + targetobj); _root.attachMovie("flag2", "flag" + targetobj, _root.n); _root["flag" + targetobj]._visible = false; _root["flag" + targetobj]._x = origx; _root["flag" + targetobj]._y = origy; _root.flagsarray.push("flag" + targetobj); _root.objarray.push("flag" + targetobj); _root[targetobj].walking = true; _root.n++; hit = true; } }
Instance of Symbol 141 MovieClip in Symbol 205 MovieClip Frame 10
onClipEvent (enterFrame) { n++; if (n > _parent._parent.firerate) { _parent.gotoAndStop(1); } } onClipEvent (load) { n = 0; }
Symbol 205 MovieClip Frame 30
if (shell2) { _root.attachMovie("shell", "she2ll" + _root.n, _root.n); _root["she2ll" + _root.n]._x = _parent._x; _root["she2ll" + _root.n]._y = _parent._y; _root["she2ll" + _root.n]._rotation = this._rotation; _root["she2ll" + _root.n].damage = _parent.damage; _root["she2ll" + _root.n].shellspd = _parent.shellspd; _root["she2ll" + _root.n].targetobj = targetobj; _root["she2ll" + _root.n].hitonly = _parent.hitonly; _root.objarray.push("she2ll" + _root.n); } gotoAndStop ("normal");
Symbol 206 MovieClip [heavyally] Frame 1
stop();
Instance of Symbol 202 MovieClip "dummy" in Symbol 206 MovieClip [heavyally] Frame 1
onClipEvent (load) { _root.attachMovie("dot", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; _parent.upgrade = 0; _parent.auto = false; _parent.unittype = "heavy"; _parent.crush = false; _parent.missile = false; _parent.hitonly = false; _parent.avoid = false; _parent.damage = 30; _parent.shellspd = 12; _parent.aggressive = true; _parent.enemy = false; _parent.num = _root.num; _root.num++; nohit = 0; _parent.turret.stripe._visible = false; _parent.selected1 = false; _root.unitsarray.push(_parent._name); _root.objarray.push(_parent._name); _parent.life = 600; _parent.fulllife = 600; _parent.speed = 1; _parent.firerate = 20; _parent.walking = false; _parent.fireing = false; _parent.attack = false; _parent.range = 200; as = 0; left = 1; empulse = 0; lo = Math.floor(Math.random() * (_root.enemyarray.length - 1)); unit = _root.enemyarray[lo]; _parent.aiattack(unit); } onClipEvent (enterFrame) { if (empulse > 0) { empulse--; } if (empulse == 0) { if ((!_parent.walking) && (!_parent.fireing)) { lo = Math.floor(Math.random() * (_root.enemyarray.length - 1)); unit = _root.enemyarray[lo]; _parent.aiattack(unit); } if (_parent.attack) { if (_root[_parent.targetobj].life <= 0) { obstacle = false; _parent.targetobj = undefined; _parent.walking = false; _parent.attack = false; } _root[flag]._x = _root[_parent.targetobj]._x; _root[flag]._y = _root[_parent.targetobj]._y; dx = _root[_parent.targetobj]._x - _parent._x; dy = _root[_parent.targetobj]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < _parent.range) { obstacle = false; _parent.walking = false; _parent.fireing = true; _parent.turret._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); if (_parent.turret._currentframe == 1) { _parent.turret.play(); _parent.turret.targetobj = _parent.targetobj; } if (_root[_parent.targetobj].life <= 0) { _parent.targetobj = undefined; _parent.attack = false; _parent.fireing = false; } } } if (_parent.walking == true) { _parent.fireing = false; hit = false; flag = "flag" + _parent._name; if (_parent.locx == undefined) { _parent.locx = 0; _parent.locy = 0; } if (!obstacle) { dx = (_root[flag]._x - _parent._x) + _parent.locx; dy = (_root[flag]._y - _parent._y) + _parent.locy; this._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); } if (obstacle) { dxn = _root[flag2]._x - _parent._x; dyn = _root[flag2]._y - _parent._y; this._rotation = (Math.atan2(dyn, dxn) * 360) / (Math.PI*2); } rads = (this._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * _parent.speed); _parent._y = _parent._y + (Math.sin(rads) * _parent.speed); _parent.movesym(); nohit++; if (nohit == 20) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (this.hitTest(_root[current])) { if (_parent.num > _root[current].num) { if (this._rotation > 0) { _parent._x = _parent._x + (0.2 * _parent._width); _parent._y = _parent._y + (0.2 * _parent._height); } if (this._rotation < 0) { _parent._x = _parent._x - (0.2 * _parent._width); _parent._y = _parent._y - (0.2 * _parent._height); } } } i--; } nohit = 0; } if (obstacle) { dx = _root[flag2]._x - _parent._x; dy = _root[flag2]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 10) { obstacle = false; } } if (!obstacle) { dx = _root[flag]._x - _parent._x; dy = _root[flag]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 10) { _root[flag].removeMovieClip(); _root.objarray.findandsplice(flag); _root.flagsarray.findandsplice(flag); _parent.walking = false; } } } if (_parent.fireing) { dx = _root[_parent.targetobj]._x - _parent._x; dy = _root[_parent.targetobj]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist > (_parent.range * 1.5)) { _parent.walking = true; _root[flag]._x = _root[_parent.targetobj]._x; _root[flag]._y = _root[_parent.targetobj]._y; _parent.fireing = false; } } if (_parent.fireing) { _parent.turret._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); if (_parent.turret._currentframe == 1) { _parent.turret.play(); _parent.turret.targetobj = _parent.targetobj; } if (_root[_parent.targetobj].life <= 0) { _parent.targetobj = undefined; _parent.fireing = false; _parent.attack = false; } if (!_parent.walking) { if (_parent.crush) { this._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); rads = (this._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * _parent.speed); _parent._y = _parent._y + (Math.sin(rads) * _parent.speed); _parent.movesym(); if ((dist < 10) && (_root[_parent.targetobj].auto._x == undefined)) { _root[_parent.targetobj].life = -1; _parent._x = _root[_parent.targetobj]._x; _parent._y = _root[_parent.targetobj]._y; } } if (_parent.avoid) { if (!obstacle) { as++; if (left > 0) { if (!_parent.crush) { this._rotation = ((Math.atan2(dy, dx) * 360) / (Math.PI*2)) + 90; } } if (left < 0) { this._rotation = -((Math.atan2(dy, dx) * 360) / (Math.PI*2)); } if (as > 100) { as = 0; } } if (obstacle) { dxn = _root[flag2]._x - _parent._x; dyn = _root[flag2]._y - _parent._y; this._rotation = (Math.atan2(dyn, dxn) * 360) / (Math.PI*2); } rads = (this._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * _parent.speed); _parent._y = _parent._y + (Math.sin(rads) * _parent.speed); _parent.movesym(); } } if (_parent.hitTest(_root.back.tops)) { _parent._y = _parent._y + 20; } if (_parent.hitTest(_root.back.bottoms)) { _parent._y = _parent._y - 20; } if (_parent.hitTest(_root.back.lefts)) { _parent._x = _parent._x + 20; } if (_parent.hitTest(_root.back.rights)) { _parent._x = _parent._x - 20; } } } }
Instance of Symbol 188 MovieClip "selector" in Symbol 206 MovieClip [heavyally] Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 206 MovieClip [heavyally] Frame 1
onClipEvent (enterFrame) { this._xscale = 115 * (_parent.life / _parent.fulllife); if (_parent.dummy._currentframe == 1) { if (_parent.life <= 0) { _parent.dummy.gotoAndPlay("explode"); } } }
Symbol 206 MovieClip [heavyally] Frame 2
stop();
Symbol 209 Button
on (rollOver) { if (_parent.enemy) { if (_root.selectedarray.length > 0) { _root.mouse.gotoAndStop("attacker"); } } } on (rollOut) { if (_parent.enemy) { if (_root.selectedarray.length > 0) { _root.mouse.gotoAndStop("locator"); } } }
Symbol 215 MovieClip Frame 1
if (_parent.ally === true) { this.stripe._visible = false; } stop();
Symbol 215 MovieClip Frame 2
if (_parent.ally === true) { this.stripe._visible = false; } play();
Instance of Symbol 211 MovieClip in Symbol 215 MovieClip Frame 2
onClipEvent (enterFrame) { n++; if (n > 4) { n = 0; _parent.nextFrame(); } } onClipEvent (load) { this._visible = false; n = 0; }
Symbol 215 MovieClip Frame 3
stop();
Symbol 215 MovieClip Frame 7
play();
Symbol 215 MovieClip Frame 10
_parent.turret.gotoAndStop(2); _parent.turret._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); _parent.turret.play(); _parent.turret.targetobj = _parent.targetobj; if (_root[_parent.targetobj].life <= 0) { _parent.targetobj = undefined; _parent.attack = false; _parent.fireing = false; } stop();
Symbol 215 MovieClip Frame 11
play(); _parent.turret._visible = false; if (_parent.enemy) { _root.kills++; } if (!_parent.enemy) { _root.losses++; } if (((((_parent._x < 1000) && (_parent._y < 768)) && (_parent._x > 0)) && (_parent._y > 0)) && (_root.soundon)) { soundobj = new Sound(); soundobj.attachSound("crash"); soundobj.start(); }
Symbol 215 MovieClip Frame 20
_root.objarray.findandsplice(_parent._name); _root.unitsarray.findandsplice(_parent._name); _root.enemyarray.findandsplice(_parent._name); _root.friendlylist.findandsplice(_parent._name); _root.objarray.findandsplice("flag" + _parent._name); _root.selectedarray.findandsplice(_parent._name); _root.flagsarray.findandsplice("flag" + _parent._name); _root.sidebar.calccost(); _root["flag" + _parent._name].removeMovieClip(); _root[_parent._name + "symbols"].removeMovieClip(); _parent.nextFrame(); _parent.removeMovieClip(); stop();
Symbol 225 MovieClip Frame 1
_parent.aggressive = false; stop();
Symbol 225 MovieClip Frame 2
stop();
Symbol 225 MovieClip Frame 3
x = _root[targetobj]._x; y = _root[targetobj]._y;
Symbol 225 MovieClip Frame 12
if (((((_parent._x < 1000) && (_parent._y < 768)) && (_parent._x > 0)) && (_parent._y > 0)) && (_root.soundon)) { soundobj = new Sound(); soundobj.attachSound("ar"); soundobj.start(); }
Symbol 225 MovieClip Frame 14
Symbol 225 MovieClip Frame 30
if (_parent.accurate) { x = _root[targetobj]._x; y = _root[targetobj]._y; } if (_parent.enemy) { _root.attachMovie("bomb2", "bomb" + _root.n, _root.n); } if (!_parent.enemy) { _root.attachMovie("bomb", "bomb" + _root.n, _root.n); } _root["bomb" + _root.n]._x = x; _root["bomb" + _root.n]._y = y; _root["bomb" + _root.n]._rotation = this._rotation; _root["bomb" + _root.n].damage = _parent.damage; _root["bomb" + _root.n].firerer = _parent._name; _root["bomb" + _root.n].targetobj = targetobj; _root["bomb" + _root.n].emp = _parent.emp; _root["bomb" + _root.n].nuke = _parent.nuke; _root.objarray.push("bomb" + _root.n); _root.n++;
Instance of Symbol 211 MovieClip in Symbol 225 MovieClip Frame 30
onClipEvent (enterFrame) { n++; if (n > (_parent._parent.firerate - 8)) { _parent.gotoAndStop(2); } } onClipEvent (load) { n = 0; }
Symbol 225 MovieClip Frame 44
gotoAndStop ("ready");
Instance of Symbol 211 MovieClip in Symbol 225 MovieClip Frame 44
onClipEvent (enterFrame) { n++; if (n > _parent._parent.firerate) { _parent.gotoAndStop(1); } } onClipEvent (load) { n = 0; }
Symbol 226 MovieClip [artilleryally] Frame 1
stop();
Instance of Symbol 215 MovieClip "dummy" in Symbol 226 MovieClip [artilleryally] Frame 1
onClipEvent (load) { _root.attachMovie("dot", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; _parent.upgrade = 0; _parent.deploy = function () { this.walking = false; this.dummy.gotoAndPlay("deploying"); this.dummy._rotation = 90; }; _parent.unittype = "artillery"; _parent.accurate = false; _parent.nuke = false; _parent.emp = false; _parent.damage = 35; _parent.aggressive = false; this.stripe._visible = false; _parent.enemy = false; _parent.num = _root.num; _root.num++; _parent.selected1 = false; _root.unitsarray.push(_parent._name); _root.objarray.push(_parent._name); _parent.life = 300; _parent.fulllife = 300; _parent.speed = 1; _parent.firerate = 30; _parent.walking = false; _parent.fireing = false; _parent.attack = false; _parent.range = 550; empulse = 0; n = 0; lo = Math.floor(Math.random() * (_root.enemyarray.length - 1)); unit = _root.enemyarray[lo]; _parent.aiattack(unit); } onClipEvent (enterFrame) { if (empulse > 0) { empulse--; } if (empulse == 0) { if ((!_parent.walking) && (!_parent.fireing)) { lo = Math.floor(Math.random() * (_root.enemyarray.length - 1)); unit = _root.enemyarray[lo]; _parent.aiattack(unit); } if (this._currentframe == 10) { n++; if (n == 10) { n = 0; if (!_parent.fireing) { n = _root.enemyarray.length - 1; while (n > -1) { current2 = _root.enemyarray[n]; dx = -(_parent._x - _root[current2]._x); dy = -(_parent._y - _root[current2]._y); dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < _parent.range) { _parent.targetobj = current2; _parent.fireing = true; _parent.turret._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); if (_parent.turret._currentframe == 1) { _parent.turret.play(); _parent.turret.targetobj = _parent.targetobj; } hit = true; } n--; } } } } if (_parent.attack) { _root[flag]._x = _root[_parent.targetobj]._x; _root[flag]._y = _root[_parent.targetobj]._y; dx = _root[_parent.targetobj]._x - _parent._x; dy = _root[_parent.targetobj]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < _parent.range) { obstacle = false; if (this._currentframe == 1) { _parent.walking = false; this._rotation = 90; gotoAndPlay ("deploying"); _parent.fireing = true; } } } if (_parent.walking == true) { if (this._currentframe > 1) { gotoAndStop (1); _parent.turret.gotoAndStop(1); } if (this._currentframe == 1) { _parent.fireing = false; hit = false; flag = "flag" + _parent._name; if (!obstacle) { dx = _root[flag]._x - _parent._x; dy = _root[flag]._y - _parent._y; this._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); } if (obstacle) { dxn = _root[flag2]._x - _parent._x; dyn = _root[flag2]._y - _parent._y; this._rotation = (Math.atan2(dyn, dxn) * 360) / (Math.PI*2); } rads = (this._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * _parent.speed); _parent._y = _parent._y + (Math.sin(rads) * _parent.speed); _parent.movesym(); i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (this.hitTest(_root[current])) { if (_parent.num > this.num) { if (this._rotation > 0) { _parent._x = _parent._x + (0.2 * _parent._width); _parent._y = _parent._y + (0.2 * _parent._height); } if (this._rotation < 0) { _parent._x = _parent._x - (0.2 * _parent._width); _parent._y = _parent._y - (0.2 * _parent._height); } } } i--; } if (obstacle) { dx = _root[flag2]._x - _parent._x; dy = _root[flag2]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 10) { obstacle = false; } } if (!obstacle) { dx = _root[flag]._x - _parent._x; dy = _root[flag]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 10) { _root[flag].removeMovieClip(); _root.objarray.findandsplice(flag); _root.flagsarray.findandsplice(flag); _parent.walking = false; } } } } if (_parent.fireing) { dx = _root[_parent.targetobj]._x - _parent._x; dy = _root[_parent.targetobj]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < _parent.range) { _parent.turret._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); if (_parent.turret._currentframe == 2) { _parent.turret.play(); _parent.turret.targetobj = _parent.targetobj; } if (_root[_parent.targetobj].life <= 0) { _parent.targetobj = undefined; _parent.fireing = false; _parent.attack = false; } } else { _parent.targetobj = undefined; _parent.fireing = false; _parent.attack = false; } } } }
Instance of Symbol 188 MovieClip "selector" in Symbol 226 MovieClip [artilleryally] Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 226 MovieClip [artilleryally] Frame 1
onClipEvent (enterFrame) { this._xscale = 110 * (_parent.life / _parent.fulllife); if (_parent.dummy._currentframe <= 10) { if (_parent.life <= 0) { _parent.dummy.gotoAndPlay("explode"); } } }
Symbol 226 MovieClip [artilleryally] Frame 2
stop();
Symbol 228 Button
on (rollOver) { if (_parent.enemy) { if (_root.selectedarray.length > 0) { _root.mouse.gotoAndStop("attacker"); } } } on (rollOut) { if (_parent.enemy) { if (_root.selectedarray.length > 0) { _root.mouse.gotoAndStop("locator"); } } } on (press) { if (_root.soundon) { soundobj = new Sound(); soundobj.attachSound("blip"); soundobj.start(); } }
Symbol 229 MovieClip Frame 1
stop();
Symbol 229 MovieClip Frame 2
if (_parent.enemy) { _root.kills++; } if (!_parent.enemy) { _root.losses++; } _parent.turret._visible = false; if (((((_parent._x < 1000) && (_parent._y < 768)) && (_parent._x > 0)) && (_parent._y > 0)) && (_root.soundon)) { soundobj = new Sound(); soundobj.attachSound("crash"); soundobj.start(); }
Symbol 229 MovieClip Frame 8
_root.objarray.findandsplice(_parent._name); _root.unitsarray.findandsplice(_parent._name); _root.enemyarray.findandsplice(_parent._name); _root.friendlylist.findandsplice(_parent._name); _root.objarray.findandsplice("flag" + _parent._name); _root.selectedarray.findandsplice(_parent._name); _root.flagsarray.findandsplice("flag" + _parent._name); _root.sidebar.calccost(); _root["flag" + _parent._name].removeMovieClip(); _root[_parent._name + "symbols"].removeMovieClip(); _parent.nextFrame(); _parent.removeMovieClip(); stop();
Symbol 238 MovieClip Frame 1
stop();
Symbol 238 MovieClip Frame 5
_root.attachMovie("missile", "missile" + _root.n, _root.n); _root["missile" + _root.n]._x = _parent._x; _root["missile" + _root.n]._y = _parent._y; _root["missile" + _root.n]._rotation = this._rotation; _root["missile" + _root.n].damage = _parent.damage; _root["missile" + _root.n].shellspd = _parent.shellspd; _root["missile" + _root.n].targetobj = targetobj; _root["missile" + _root.n].hitonly = _parent.hitonly; _root["missile" + _root.n].blast = _parent.blast; _root["missile" + _root.n].seeker = _parent.seeker; _root["missile" + _root.n].firerer = _parent._name; _root.objarray.push("missile" + _root.n); _root.n++; if (((((_parent._x < 1000) && (_parent._y < 768)) && (_parent._x > 0)) && (_parent._y > 0)) && (_root.soundon)) { soundobj = new Sound(); soundobj.attachSound("missi"); soundobj.start(); }
Instance of Symbol 236 MovieClip in Symbol 238 MovieClip Frame 5
onClipEvent (enterFrame) { n++; if (n > _parent._parent.firerate) { _parent.gotoAndStop(1); } } onClipEvent (load) { n = 0; }
Symbol 238 MovieClip Frame 10
if (_parent.miss < 2) { gotoAndPlay ("rd"); }
Symbol 238 MovieClip Frame 14
_root.attachMovie("missile", "miss2ile" + _root.n, _root.n); _root["miss2ile" + _root.n]._x = _parent._x; _root["miss2ile" + _root.n]._y = _parent._y; _root["miss2ile" + _root.n]._rotation = this._rotation; _root["miss2ile" + _root.n].damage = _parent.damage; _root["miss2ile" + _root.n].shellspd = _parent.shellspd; _root["miss2ile" + _root.n].targetobj = targetobj; _root["miss2ile" + _root.n].hitonly = _parent.hitonly; _root["miss2ile" + _root.n].blast = _parent.blast; _root["miss2ile" + _root.n].seeker = _parent.seeker; _root["miss2ile" + _root.n].firerer = _parent._name; _root.objarray.push("miss2ile" + _root.n); _root.n++; if (((((_parent._x < 1000) && (_parent._y < 768)) && (_parent._x > 0)) && (_parent._y > 0)) && (_root.soundon)) { soundobj = new Sound(); soundobj.attachSound("missi"); soundobj.start(); }
Symbol 238 MovieClip Frame 15
if (_parent.miss < 3) { gotoAndPlay ("rd"); }
Symbol 238 MovieClip Frame 17
_root.attachMovie("missile", "miss3ile" + _root.n, _root.n); _root["miss3ile" + _root.n]._x = _parent._x; _root["miss3ile" + _root.n]._y = _parent._y; _root["miss3ile" + _root.n]._rotation = this._rotation; _root["miss3ile" + _root.n].damage = _parent.damage; _root["miss3ile" + _root.n].shellspd = _parent.shellspd; _root["miss3ile" + _root.n].targetobj = targetobj; _root["miss3ile" + _root.n].hitonly = _parent.hitonly; _root["miss3ile" + _root.n].blast = _parent.blast; _root["miss3ile" + _root.n].seeker = _parent.seeker; _root["miss3ile" + _root.n].firerer = _parent._name; _root.objarray.push("miss3ile" + _root.n); _root.n++; if (((((_parent._x < 1000) && (_parent._y < 768)) && (_parent._x > 0)) && (_parent._y > 0)) && (_root.soundon)) { soundobj = new Sound(); soundobj.attachSound("missi"); soundobj.start(); }
Symbol 238 MovieClip Frame 55
gotoAndStop ("normal");
Symbol 239 MovieClip [rocketally] Frame 1
stop();
Instance of Symbol 229 MovieClip "dummy" in Symbol 239 MovieClip [rocketally] Frame 1
onClipEvent (load) { _root.attachMovie("dot", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; _parent.upgrade = 0; _parent.unittype = "rocket"; _parent.seeker = false; _parent.hitonly = false; _parent.blast = false; _parent.miss = 1; _parent.damage = 50; _parent.shellspd = 3; _parent.avoid = false; _parent.aggressive = true; _parent.turret.stripe._visible = false; _parent.enemy = false; _parent.num = _root.num; _root.num++; nohit = 0; _parent.selected1 = false; _root.unitsarray.push(_parent._name); _root.objarray.push(_parent._name); _parent.life = 250; _parent.fulllife = 250; _parent.speed = 2; _parent.firerate = 25; _parent.walking = false; _parent.fireing = false; _parent.attack = false; _parent.range = 350; as = 0; left = 1; empulse = 0; lo = Math.floor(Math.random() * (_root.enemyarray.length - 1)); unit = _root.enemyarray[lo]; _parent.aiattack(unit); } onClipEvent (enterFrame) { if (empulse > 0) { empulse--; } if (empulse == 0) { if ((!_parent.walking) && (!_parent.fireing)) { lo = Math.floor(Math.random() * (_root.enemyarray.length - 1)); unit = _root.enemyarray[lo]; _parent.aiattack(unit); } if (_parent.attack) { if (_root[_parent.targetobj].life <= 0) { obstacle = false; _parent.targetobj = undefined; _parent.walking = false; _parent.attack = false; } _root[flag]._x = _root[_parent.targetobj]._x; _root[flag]._y = _root[_parent.targetobj]._y; dx = _root[_parent.targetobj]._x - _parent._x; dy = _root[_parent.targetobj]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < _parent.range) { obstacle = false; _parent.walking = false; _parent.fireing = true; _parent.turret._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); if (_parent.turret._currentframe == 1) { _parent.turret.play(); _parent.turret.targetobj = _parent.targetobj; } if (_root[_parent.targetobj].life <= 0) { _parent.targetobj = undefined; _parent.attack = false; _parent.fireing = false; } } } if (_parent.walking == true) { _parent.fireing = false; hit = false; flag = "flag" + _parent._name; if (_parent.locx == undefined) { _parent.locx = 0; _parent.locy = 0; } if (!obstacle) { dx = (_root[flag]._x - _parent._x) + _parent.locx; dy = (_root[flag]._y - _parent._y) + _parent.locy; this._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); } if (obstacle) { dxn = _root[flag2]._x - _parent._x; dyn = _root[flag2]._y - _parent._y; this._rotation = (Math.atan2(dyn, dxn) * 360) / (Math.PI*2); } rads = (this._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * _parent.speed); _parent._y = _parent._y + (Math.sin(rads) * _parent.speed); _parent.movesym(); nohit++; if (nohit == 20) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (this.hitTest(_root[current])) { if (_parent.num > _root[current].num) { if (this._rotation > 0) { _parent._x = _parent._x + (0.2 * _parent._width); _parent._y = _parent._y + (0.2 * _parent._height); } if (this._rotation < 0) { _parent._x = _parent._x - (0.2 * _parent._width); _parent._y = _parent._y - (0.2 * _parent._height); } } } i--; } nohit = 0; } if (obstacle) { dx = _root[flag2]._x - _parent._x; dy = _root[flag2]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 10) { obstacle = false; } } if (!obstacle) { dx = _root[flag]._x - _parent._x; dy = _root[flag]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 10) { _root[flag].removeMovieClip(); _root.objarray.findandsplice(flag); _root.flagsarray.findandsplice(flag); _parent.walking = false; } } } if (_parent.fireing) { dx = _root[_parent.targetobj]._x - _parent._x; dy = _root[_parent.targetobj]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist > (_parent.range + 150)) { _parent.walking = true; _root[flag]._x = _root[_parent.targetobj]._x; _root[flag]._y = _root[_parent.targetobj]._y; _parent.fireing = false; } } if (_parent.fireing) { _parent.turret._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); if (_parent.turret._currentframe == 1) { _parent.turret.play(); _parent.turret.targetobj = _parent.targetobj; } if (_root[_parent.targetobj].life <= 0) { _parent.targetobj = undefined; _parent.fireing = false; _parent.attack = false; } if (!_parent.walking) { if (_parent.avoid) { as++; if (!obstacle) { if (left > 0) { this._rotation = ((Math.atan2(dy, dx) * 360) / (Math.PI*2)) - 45; } if (left < 0) { this._rotation = ((Math.atan2(dy, dx) * 360) / (Math.PI*2)) + 90; } if (as > 70) { as = 0; left = -left; } } if (obstacle) { dxn = _root[flag2]._x - _parent._x; dyn = _root[flag2]._y - _parent._y; this._rotation = (Math.atan2(dyn, dxn) * 360) / (Math.PI*2); } rads = (this._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * _parent.speed); _parent._y = _parent._y + (Math.sin(rads) * _parent.speed); _parent.movesym(); } } if (_parent.hitTest(_root.back.tops)) { _parent._y = _parent._y + 20; } if (_parent.hitTest(_root.back.bottoms)) { _parent._y = _parent._y - 20; } if (_parent.hitTest(_root.back.lefts)) { _parent._x = _parent._x + 20; } if (_parent.hitTest(_root.back.rights)) { _parent._x = _parent._x - 20; } } } }
Instance of Symbol 188 MovieClip "selector" in Symbol 239 MovieClip [rocketally] Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 239 MovieClip [rocketally] Frame 1
onClipEvent (enterFrame) { this._xscale = 110 * (_parent.life / _parent.fulllife); if (_parent.dummy._currentframe == 1) { if (_parent.life <= 0) { _parent.dummy.gotoAndPlay("explode"); } } }
Symbol 239 MovieClip [rocketally] Frame 2
stop();
Symbol 241 MovieClip [humveeebase] Frame 1
stop();
Symbol 241 MovieClip [humveeebase] Frame 2
if (_parent.enemy) { _root.kills++; } if (!_parent.enemy) { _root.losses++; } _parent.turret._visible = false; if (((((_parent._x < 1000) && (_parent._y < 768)) && (_parent._x > 0)) && (_parent._y > 0)) && (_root.soundon)) { soundobj = new Sound(); soundobj.attachSound("crash"); soundobj.start(); }
Symbol 241 MovieClip [humveeebase] Frame 8
_root.objarray.findandsplice(_parent._name); _root.unitsarray.findandsplice(_parent._name); _root.enemyarray.findandsplice(_parent._name); _root.friendlylist.findandsplice(_parent._name); _root.objarray.findandsplice("flag" + _parent._name); _root.selectedarray.findandsplice(_parent._name); _root.flagsarray.findandsplice("flag" + _parent._name); _root.sidebar.calccost(); _root["flag" + _parent._name].removeMovieClip(); _root[_parent._name + "symbols"].removeMovieClip(); _parent.nextFrame(); _parent.removeMovieClip(); stop();
Symbol 247 MovieClip Frame 1
stop();
Symbol 247 MovieClip Frame 2
_root.attachMovie("bullet", "bullet" + _root.n, _root.n); _root["bullet" + _root.n]._x = _parent._x; _root["bullet" + _root.n]._y = _parent._y; _root["bullet" + _root.n]._rotation = this._rotation; _root["bullet" + _root.n].damage = _parent.damage; _root["bullet" + _root.n].shellspd = _parent.shellspd; _root["bullet" + _root.n].targetobj = targetobj; _root["bullet" + _root.n].firerer = _parent._name; _root.objarray.push("bullet" + _root.n); _root.n++; if (((((_parent._x < 1000) && (_parent._y < 768)) && (_parent._x > 0)) && (_parent._y > 0)) && (_root.soundon)) { soundobj = new Sound(); soundobj.attachSound("mach"); soundobj.start(); }
Symbol 247 MovieClip Frame 3
if (!_parent.gatling) { gotoAndPlay ("shoot"); }
Symbol 247 MovieClip Frame 4
_root.attachMovie("bullet", "bul2et" + _root.n, _root.n); _root["bul2et" + _root.n]._x = _parent._x; _root["bul2et" + _root.n]._y = _parent._y; _root["bul2et" + _root.n]._rotation = this._rotation; _root["bul2et" + _root.n].damage = _parent.damage; _root["bul2et" + _root.n].shellspd = _parent.shellspd; _root["bul2et" + _root.n].targetobj = targetobj; _root["bull2et" + _root.n].firerer = _parent._name; _root.objarray.push("bul2et" + _root.n); _root.n++;
Symbol 247 MovieClip Frame 5
_root.attachMovie("bullet", "bul3et" + _root.n, _root.n); _root["bul3et" + _root.n]._x = _parent._x; _root["bul3et" + _root.n]._y = _parent._y; _root["bul3et" + _root.n]._rotation = this._rotation; _root["bul3et" + _root.n].damage = _parent.damage; _root["bul3et" + _root.n].shellspd = _parent.shellspd; _root["bul3et" + _root.n].targetobj = targetobj; _root["bull3et" + _root.n].firerer = _parent._name; _root.objarray.push("bul3et" + _root.n); _root.n++;
Symbol 247 MovieClip Frame 6
_root.attachMovie("bullet", "bul4et" + _root.n, _root.n); _root["bul4et" + _root.n]._x = _parent._x; _root["bul4et" + _root.n]._y = _parent._y; _root["bul4et" + _root.n]._rotation = this._rotation; _root["bul4et" + _root.n].damage = _parent.damage; _root["bul4et" + _root.n].shellspd = _parent.shellspd; _root["bul4et" + _root.n].targetobj = targetobj; _root["bul4et" + _root.n].firerer = _parent._name; _root.objarray.push("bul4et" + _root.n); _root.n++;
Symbol 247 MovieClip Frame 7
stop(); if (_root[targetobj].enemy != _root[firerer].enemy) { if (_root[targetobj].aggressive) { if ((!_root[targetobj].fireing) && (!_root[targetobj].walking)) { _root[targetobj].targetobj = firerer; _root[targetobj].attack = true; _root["flag" + targetobj].removeMovieClip(); _root.flagsarray.findandsplice("flag" + targetobj); _root.objarray.findandsplice("flag" + targetobj); _root.attachMovie("flag2", "flag" + targetobj, _root.n); _root["flag" + targetobj]._visible = false; _root["flag" + targetobj]._x = origx; _root["flag" + targetobj]._y = origy; _root.flagsarray.push("flag" + targetobj); _root.objarray.push("flag" + targetobj); _root[targetobj].walking = true; _root.n++; hit = true; } } }
Instance of Symbol 246 MovieClip in Symbol 247 MovieClip Frame 7
onClipEvent (enterFrame) { n++; if (n > _parent._parent.firerate) { _parent.gotoAndStop(1); } } onClipEvent (load) { n = 0; }
Symbol 247 MovieClip Frame 11
gotoAndStop ("normal");
Symbol 248 MovieClip [humveeally] Frame 1
stop();
Instance of Symbol 241 MovieClip [humveeebase] "dummy" in Symbol 248 MovieClip [humveeally] Frame 1
onClipEvent (load) { _root.attachMovie("dot", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; _parent.upgrade = 0; _parent.unittype = "humvee"; _parent.laser = false; _parent.gatling = false; _parent.damage = 7; _parent.avoid = true; _parent.shellspd = 15; _parent.aggressive = true; this.stripe1._visible = false; this.stripe2._visible = false; this.stripe3._visible = false; _parent.enemy = false; _parent.num = _root.num; _root.num++; nohit = 0; _parent.selected1 = false; _root.unitsarray.push(_parent._name); _root.objarray.push(_parent._name); _parent.life = 200; _parent.fulllife = 200; _parent.speed = 6; _parent.firerate = 3; _parent.walking = false; _parent.fireing = false; _parent.attack = false; charge = 0; empulse = 0; _parent.range = 150; charge = 100; as = 0; left = 1; lo = Math.floor(Math.random() * (_root.enemyarray.length - 1)); unit = _root.enemyarray[lo]; _parent.aiattack(unit); } onClipEvent (enterFrame) { if (empulse > 0) { empulse--; } if (empulse == 0) { if (_parent.attack) { if (_root[_parent.targetobj].life <= 0) { obstacle = false; _parent.targetobj = undefined; _parent.walking = false; _parent.attack = false; } _root[flag]._x = _root[_parent.targetobj]._x; _root[flag]._y = _root[_parent.targetobj]._y; dx = _root[_parent.targetobj]._x - _parent._x; dy = _root[_parent.targetobj]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < _parent.range) { obstacle = false; _parent.walking = false; _parent.fireing = true; _parent.turret._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); if (_parent.turret._currentframe == 1) { _parent.turret.play(); _parent.turret.targetobj = _parent.targetobj; } if (_root[_parent.targetobj].life <= 0) { _parent.targetobj = undefined; _parent.attack = false; _parent.fireing = false; } } } if (_parent.walking == true) { _parent.fireing = false; hit = false; flag = "flag" + _parent._name; if (_parent.locx == undefined) { _parent.locx = 0; _parent.locy = 0; } if (!obstacle) { dx = (_root[flag]._x - _parent._x) + _parent.locx; dy = (_root[flag]._y - _parent._y) + _parent.locy; this._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); } if (obstacle) { dxn = _root[flag2]._x - _parent._x; dyn = _root[flag2]._y - _parent._y; this._rotation = (Math.atan2(dyn, dxn) * 360) / (Math.PI*2); } rads = (this._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * _parent.speed); _parent._y = _parent._y + (Math.sin(rads) * _parent.speed); _parent.movesym(); nohit++; if (nohit == 20) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (this.hitTest(_root[current])) { if (_parent.num > _root[current].num) { if (this._rotation > 0) { _parent._x = _parent._x + (0.2 * _parent._width); _parent._y = _parent._y + (0.2 * _parent._height); } if (this._rotation < 0) { _parent._x = _parent._x - (0.2 * _parent._width); _parent._y = _parent._y - (0.2 * _parent._height); } } } i--; } nohit = 0; } if (obstacle) { dx = _root[flag2]._x - _parent._x; dy = _root[flag2]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 10) { obstacle = false; } } if (!obstacle) { dx = _root[flag]._x - _parent._x; dy = _root[flag]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 10) { _root[flag].removeMovieClip(); _root.objarray.findandsplice(flag); _root.flagsarray.findandsplice(flag); _parent.walking = false; } } } if (_parent.fireing) { dx = _root[_parent.targetobj]._x - _parent._x; dy = _root[_parent.targetobj]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist > (_parent.range * 2)) { _parent.walking = true; _root[flag]._x = _root[_parent.targetobj]._x; _root[flag]._y = _root[_parent.targetobj]._y; _parent.fireing = false; } _parent.turret._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); if (_parent.turret._currentframe == 1) { _parent.turret.play(); _parent.turret.targetobj = _parent.targetobj; } if (_root[_parent.targetobj].life <= 0) { _parent.targetobj = undefined; _parent.fireing = false; _parent.attack = false; } if (!_parent.walking) { if (_parent.avoid) { if (!obstacle) { as++; if (left > 0) { this._rotation = ((Math.atan2(dy, dx) * 360) / (Math.PI*2)) - 90; } if (left < 0) { this._rotation = -((Math.atan2(dy, dx) * 360) / (Math.PI*2)); } if (as > 20) { as = 0; left = -left; } } if (obstacle) { dxn = _root[flag2]._x - _parent._x; dyn = _root[flag2]._y - _parent._y; this._rotation = (Math.atan2(dyn, dxn) * 360) / (Math.PI*2); } rads = (this._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * _parent.speed); _parent._y = _parent._y + (Math.sin(rads) * _parent.speed); _parent.movesym(); } } if (_parent.hitTest(_root.back.tops)) { _parent._y = _parent._y + 20; } if (_parent.hitTest(_root.back.bottoms)) { _parent._y = _parent._y - 20; } if (_parent.hitTest(_root.back.lefts)) { _parent._x = _parent._x + 20; } if (_parent.hitTest(_root.back.rights)) { _parent._x = _parent._x - 20; } } } }
Instance of Symbol 188 MovieClip "selector" in Symbol 248 MovieClip [humveeally] Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 248 MovieClip [humveeally] Frame 1
onClipEvent (enterFrame) { this._xscale = 80 * (_parent.life / _parent.fulllife); if (_parent.dummy._currentframe == 1) { if (_parent.life <= 0) { _parent.dummy.gotoAndPlay("explode"); } } }
Symbol 248 MovieClip [humveeally] Frame 2
stop();
Symbol 255 MovieClip Frame 1
stop();
Symbol 255 MovieClip Frame 2
stop();
Symbol 255 MovieClip Frame 3
_parent._x = _root.refinery1._x; _parent._y = _root.refinery1._y; this._rotation = 90; _parent.movesym(); play();
Symbol 255 MovieClip Frame 4
if (_parent.oil > 0) { _root.money = _root.money + 750; _parent.oil = _parent.oil - 20; }
Symbol 255 MovieClip Frame 5
if (_parent.oil > 0) { _root.money = _root.money + 250; _parent.oil = _parent.oil - 20; }
Symbol 255 MovieClip Frame 6
if (_parent.oil > 0) { _root.money = _root.money + 150; _parent.oil = _parent.oil - 20; }
Symbol 255 MovieClip Frame 7
if (_parent.oil > 0) { _root.money = _root.money + 250; _parent.oil = _parent.oil - 20; }
Symbol 255 MovieClip Frame 8
if (_parent.oil > 0) { _root.money = _root.money + 150; _parent.oil = _parent.oil - 20; } refinery = false; gotoAndStop (1);
Symbol 255 MovieClip Frame 9
if (_parent.enemy) { _root.money = _root.money + 200; } if (!_parent.enemy) { _root.enemymoney = _root.enemymoney + 200; } if (_root.soundon) { soundobj = new Sound(); soundobj.attachSound("crash"); soundobj.start(); }
Symbol 255 MovieClip Frame 15
_root.unitsarray.findandsplice(_parent._name); _root.friendlylist.findandsplice(_parent._name); _root.objarray.findandsplice("flag" + _parent._name); _root.selectedarray.findandsplice(_parent._name); _root.flagsarray.findandsplice("flag" + _parent._name); _root.oiltruckarray.findandsplice(_parent._name); _root.sidebar.calccost(); _root[_parent._name + "symbols"].removeMovieClip(); _root["flag" + _parent._name].removeMovieClip(); _parent.nextFrame(); _parent.removeMovieClip(); stop();
Symbol 256 MovieClip [oiltruck] Frame 1
stop();
Instance of Symbol 255 MovieClip "dummy" in Symbol 256 MovieClip [oiltruck] Frame 1
onClipEvent (load) { _root.attachMovie("dot", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; _parent.upgrade = 0; _parent.gotooil = function () { i = _root.oilarray.length - 1; while (i > -1) { current = _root.oilarray[i]; if (_root[current].oilspill._xscale > 5) { dx = this._x - _root[current]._x; dy = this._y - _root[current]._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if ((Math.random() * 1500) > dist) { this.aigoto(_root[current]._x, _root[current]._y, false); oil = current; break; } } i--; } }; _parent.auto = false; _root.oiltruckarray.push(_parent._name); _parent.unittype = "oiltruck"; _parent.oil = 0; _parent.fulloil = 100; _parent.aggressive = false; _root.friendlylist.push(_parent._name); _parent.enemy = false; _parent.num = _root.num; _root.num++; _parent.selected1 = false; _root.unitsarray.push(_parent._name); _root.objarray.push(_parent._name); _parent.life = 500; _parent.fulllife = 500; _parent.speed = 3; _parent.walking = false; refinery = false; as = 0; left = 1; empulse = 0; } onClipEvent (enterFrame) { if (((!_parent.walking) && (this._currentframe == 1)) && (!refinery)) { _parent.gotooil(); } if (empulse > 0) { empulse--; } if (empulse == 0) { if (_parent.walking == true) { _parent.fireing = false; hit = false; flag = "flag" + _parent._name; if (!refinery) { dx = _root[flag]._x - _parent._x; dy = _root[flag]._y - _parent._y; } if (refinery) { dx = _root.refinery1._x - _parent._x; dy = _root.refinery1._y - _parent._y; } this._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); rads = (this._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * _parent.speed); _parent._y = _parent._y + (Math.sin(rads) * _parent.speed); _parent.movesym(); if (this.hitTest(_root[flag]) && (!refinery)) { _root[flag].removeMovieClip(); _root.objarray.findandsplice(flag); _root.flagsarray.findandsplice(flag); _parent.walking = false; } if (oil != undefined) { if (_root[oil].oilspill._xscale <= 0) { _root[flag].removeMovieClip(); _root.objarray.findandsplice(flag); _root.flagsarray.findandsplice(flag); oil = undefined; _parent.walking = false; gotoAndStop (1); } if (this.hitTest(_root[oil].oilspill)) { _root[flag].removeMovieClip(); _root.objarray.findandsplice(flag); _root.flagsarray.findandsplice(flag); _parent.walking = false; gotoAndStop ("sucking"); } } if (refinery) { if (this.hitTest(_root.refinery1.pad)) { _root[flag].removeMovieClip(); _root.objarray.findandsplice(flag); _root.flagsarray.findandsplice(flag); _parent.walking = false; gotoAndStop ("refining"); } } } } if (this._currentframe == 2) { if (_parent.oil < 100) { _parent.oil++; _root[oil].oilspill._xscale = _root[oil].oilspill._xscale - 0.02; _root[oil].oilspill._yscale = _root[oil].oilspill._yscale - 0.02; } if (_root[oil].oilspill._xscale < 0) { gotoAndStop (1); } if (_parent.oil == 100) { gotoAndStop (1); if (_root.refinery > 0) { _parent.aigoto(_root.refinery1._x, _root.refinery1._y - 20, false); } else { _parent.oil = 0; } oil = undefined; refinery = true; } } if (this._currentframe == 8) { _parent.gotooil(); } }
Instance of Symbol 188 MovieClip "selector" in Symbol 256 MovieClip [oiltruck] Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 256 MovieClip [oiltruck] Frame 1
onClipEvent (enterFrame) { this._xscale = 100 * (_parent.life / _parent.fulllife); if (_parent.dummy._currentframe < 9) { if (_parent.life <= 0) { _parent.dummy.gotoAndPlay("explode"); } } }
Instance of Symbol 196 MovieClip "oilbar" in Symbol 256 MovieClip [oiltruck] Frame 1
onClipEvent (enterFrame) { this._xscale = 60 * (_parent.oil / _parent.fulloil); }
Symbol 256 MovieClip [oiltruck] Frame 2
stop();
Symbol 258 MovieClip Frame 1
if (_root.sidebar.build.lasertank._currentframe == 2) { _root.sidebar.build.lasertank.gotoAndStop(13); } stop();
Symbol 258 MovieClip Frame 2
if (_parent.enemy) { _root.money = _root.money + 100; } if (!_parent.enemy) { _root.enemymoney = _root.enemymoney + 100; } _parent.turret._visible = false; if (((((_parent._x < 1000) && (_parent._y < 768)) && (_parent._x > 0)) && (_parent._y > 0)) && (_root.soundon)) { soundobj = new Sound(); soundobj.attachSound("crash"); soundobj.start(); }
Symbol 258 MovieClip Frame 8
_root.objarray.findandsplice(_parent._name); _root.unitsarray.findandsplice(_parent._name); _root.enemyarray.findandsplice(_parent._name); _root.friendlylist.findandsplice(_parent._name); _root.objarray.findandsplice("flag" + _parent._name); _root.selectedarray.findandsplice(_parent._name); _root.flagsarray.findandsplice("flag" + _parent._name); _root.sidebar.calccost(); if (_root.sidebar.build.lasertank._currentframe == 13) { _root.sidebar.build.lasertank.gotoAndStop(2); } _root[_parent._name + "symbols"].removeMovieClip(); _root["flag" + _parent._name].removeMovieClip(); _parent.nextFrame(); _parent.removeMovieClip(); stop();
Symbol 262 MovieClip Frame 1
dx = _root[targetobj]._x - _parent._x; dy = _root[targetobj]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist > _parent.range) { targetobj = undefined; stop(); } if (targetobj == undefined) { stop(); }
Symbol 262 MovieClip Frame 5
Symbol 262 MovieClip Frame 6
dx = -(_parent._x - _root[targetobj]._x); dy = -(_parent._y - _root[targetobj]._y); dist = Math.sqrt((dx * dx) + (dy * dy)); _root.attachMovie("laser2", "laser" + _root.n, _root.n); _root["laser" + _root.n]._x = _parent._x; _root["laser" + _root.n]._y = _parent._y; _root["laser" + _root.n]._width = dist + 10; _root["laser" + _root.n]._rotation = this._rotation; _root.n++; _root[targetobj].life = _root[targetobj].life - _parent.damage;
Symbol 262 MovieClip Frame 8
if ((!_root[targetobj].fireing) && (!_root[targetobj].walking)) { if (_root[targetobj].aggressive) { _root[targetobj].aiattack(_parent._name); } } if ((_root[targetobj].life < 0) || (_root[targetobj].life == undefined)) { targetobj = undefined; } stop();
Instance of Symbol 261 MovieClip in Symbol 262 MovieClip Frame 8
onClipEvent (enterFrame) { n++; if (n > _parent._parent.firerate) { _parent.gotoAndStop(1); } } onClipEvent (load) { n = 0; }
Symbol 262 MovieClip Frame 11
gotoAndStop ("normal");
Symbol 263 MovieClip [lasertank] Frame 1
stop();
Instance of Symbol 258 MovieClip "dummy" in Symbol 263 MovieClip [lasertank] Frame 1
onClipEvent (load) { _root.attachMovie("dot", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; _parent.upgrade = 0; _parent.auto = false; _parent.unittype = "lasertank"; _parent.shell2 = false; _parent.hitonly = false; _parent.damage = 200; _parent.avoid = false; _parent.aggressive = true; _root.friendlylist.push(_parent._name); _parent.enemy = false; _parent.num = _root.num; _root.num++; _parent.selected1 = false; _root.unitsarray.push(_parent._name); _root.objarray.push(_parent._name); _parent.life = 800; nohit = 0; _parent.fulllife = 800; _parent.speed = 3; _parent.firerate = 50; _parent.walking = false; _parent.fireing = false; _parent.attack = false; _parent.range = 200; empulse = 0; as = 0; left = 1; if (_root.warfactory1._x != undefined) { _parent.aigoto(_root.rallypoint._x, _root.rallypoint._y, false); } } onClipEvent (enterFrame) { if (empulse > 0) { empulse--; } if (empulse == 0) { if (_parent.attack) { if (_root[_parent.targetobj].life <= 0) { _parent.targetobj = undefined; _parent.walking = false; _parent.attack = false; } _root[flag]._x = _root[_parent.targetobj]._x; _root[flag]._y = _root[_parent.targetobj]._y; dx = _root[_parent.targetobj]._x - _parent._x; dy = _root[_parent.targetobj]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < _parent.range) { _parent.walking = false; _parent.fireing = true; _parent.turret._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); if (_parent.turret._currentframe == 1) { _parent.turret.play(); _parent.turret.targetobj = _parent.targetobj; } if (_root[_parent.targetobj].life <= 0) { _parent.targetobj = undefined; _parent.attack = false; _parent.fireing = false; } } } if (_parent.walking == true) { _parent.fireing = false; hit = false; flag = "flag" + _parent._name; dx = _root[flag]._x - _parent._x; dy = _root[flag]._y - _parent._y; this._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); rads = (this._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * _parent.speed); _parent._y = _parent._y + (Math.sin(rads) * _parent.speed); _parent.movesym(); nohit++; if (nohit == 20) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (this.hitTest(_root[current])) { if (_parent.num > _root[current].num) { if (this._rotation > 0) { _parent._x = _parent._x + (0.2 * _parent._width); _parent._y = _parent._y + (0.2 * _parent._height); } if (this._rotation < 0) { _parent._x = _parent._x - (0.2 * _parent._width); _parent._y = _parent._y - (0.2 * _parent._height); } } } i--; } nohit = 0; } if (_parent.attack) { _root[flag]._x = _root[_parent.targetobj]._x; _root[flag]._y = _root[_parent.targetobj]._y; dx = _root[_parent.targetobj]._x - _parent._x; dy = _root[_parent.targetobj]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < _parent.range) { _parent.walking = false; _parent.fireing = true; _parent.turret._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); if (_parent.turret._currentframe == 1) { _parent.turret.play(); _parent.turret.targetobj = _parent.targetobj; } if (_root[_parent.targetobj].life <= 0) { _parent.targetobj = undefined; _parent.attack = false; _parent.fireing = false; } } } if (this.hitTest(_root[flag])) { _root[flag].removeMovieClip(); _root.objarray.findandsplice(flag); _root.flagsarray.findandsplice(flag); _parent.walking = false; } } if (_parent.fireing) { dx = _root[_parent.targetobj]._x - _parent._x; dy = _root[_parent.targetobj]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist > (_parent.range * 1.5)) { _parent.walking = true; _root[flag]._x = _root[_parent.targetobj]._x; _root[flag]._y = _root[_parent.targetobj]._y; _parent.fireing = false; } } if (_parent.fireing) { _parent.turret._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); if (_parent.turret._currentframe == 1) { _parent.turret.play(); _parent.turret.targetobj = _parent.targetobj; } if (_root[_parent.targetobj].life <= 0) { _parent.targetobj = undefined; _parent.fireing = false; _parent.attack = false; } if (!_parent.walking) { if (_parent.avoid) { as++; if (left > 0) { this._rotation = ((Math.atan2(dy, dx) * 360) / (Math.PI*2)) - 90; } if (left < 0) { this._rotation = -((Math.atan2(dy, dx) * 360) / (Math.PI*2)); } if (as > 50) { as = 0; left = -left; } rads = (this._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * _parent.speed); _parent._y = _parent._y + (Math.sin(rads) * _parent.speed); _parent.movesym(); } } if (_parent.hitTest(_root.back.tops)) { _parent._y = _parent._y + 20; } if (_parent.hitTest(_root.back.bottoms)) { _parent._y = _parent._y - 20; } if (_parent.hitTest(_root.back.lefts)) { _parent._x = _parent._x + 20; } if (_parent.hitTest(_root.back.rights)) { _parent._x = _parent._x - 20; } } } }
Instance of Symbol 188 MovieClip "selector" in Symbol 263 MovieClip [lasertank] Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 263 MovieClip [lasertank] Frame 1
onClipEvent (enterFrame) { this._xscale = 100 * (_parent.life / _parent.fulllife); if (_parent.dummy._currentframe == 1) { if (_parent.life <= 0) { _parent.dummy.gotoAndPlay("explode"); } } }
Symbol 263 MovieClip [lasertank] Frame 2
stop();
Symbol 268 MovieClip Frame 1
dx = _root[targetobj]._x - _parent._x; dy = _root[targetobj]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist > _parent.range) { targetobj = undefined; stop(); } if (targetobj == undefined) { stop(); }
Symbol 268 MovieClip Frame 5
Symbol 268 MovieClip Frame 6
dx = -(_parent._x - _root[targetobj]._x); dy = -(_parent._y - _root[targetobj]._y); dist = Math.sqrt((dx * dx) + (dy * dy)); _root.attachMovie("laser2", "laser" + _root.n, _root.n); _root["laser" + _root.n]._x = _parent._x; _root["laser" + _root.n]._y = _parent._y; _root["laser" + _root.n]._width = dist + 10; _root["laser" + _root.n]._rotation = this._rotation; _root.n++; _root[targetobj].life = _root[targetobj].life - _parent.damage;
Symbol 268 MovieClip Frame 8
if ((!_root[targetobj].fireing) && (!_root[targetobj].walking)) { if (_root[targetobj].aggressive) { _root[targetobj].aiattack(_parent._name); } } if ((_root[targetobj].life < 0) || (_root[targetobj].life == undefined)) { targetobj = undefined; } stop();
Instance of Symbol 267 MovieClip in Symbol 268 MovieClip Frame 8
onClipEvent (enterFrame) { n++; if (n > _parent._parent.firerate) { _parent.gotoAndStop(1); } } onClipEvent (load) { n = 0; }
Symbol 268 MovieClip Frame 11
gotoAndStop ("normal");
Symbol 270 MovieClip [laserbasedefense] Frame 1
stop();
Instance of Symbol 188 MovieClip "selector" in Symbol 270 MovieClip [laserbasedefense] Frame 1
onClipEvent (load) { _root.attachMovie("bigdot", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; _parent.upgrade = 0; _root.turretarray.push(_parent._name); _root.structurearray.push(_parent._name); this._visible = false; _parent.enemy = false; _parent.aggressive = true; _root.objarray.push(_parent._name); _root.unitsarray.push(_parent._name); _parent.life = 500; _parent.fulllife = 500; _parent.range = 360; _parent.damage = 60; _parent.firerate = 50; _root.friendlylist.push(_parent._name); _parent.unittype = "turret3"; }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 270 MovieClip [laserbasedefense] Frame 1
onClipEvent (enterFrame) { this._xscale = 100 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 270 MovieClip [laserbasedefense] Frame 2
_root.enemymoney = _root.enemymoney + 1500;
Symbol 270 MovieClip [laserbasedefense] Frame 11
_root.objarray.findandsplice(_name); _root.unitsarray.findandsplice(_name); _root[_name + "symbols"].removeMovieClip(); _root.friendlylist.findandsplice(_name); _root.structurearray.findandsplice(_name); _root.turretarray.findandsplice(this._name); this.removeMovieClip(); stop();
Symbol 276 MovieClip [mine] Frame 1
stop();
Instance of Symbol 188 MovieClip "selector" in Symbol 276 MovieClip [mine] Frame 1
onClipEvent (load) { _root.attachMovie("dot", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; _parent.upgrade = 0; _root.minearray.push(_parent._name); _parent.enemy = false; _parent.aggressive = true; _root.objarray.push(_parent._name); _root.unitsarray.push(_parent._name); _parent.life = 500; _parent.fulllife = 500; _parent.damage = 450; _parent.unittype = "mine"; }
Symbol 276 MovieClip [mine] Frame 28
i = _root.enemyarray.length - 1; while (i > -1) { current = _root.enemyarray[i]; if (_root[current].hitTest(this)) { _root[current].life = _root[current].life - damage; _root[current + "symbols"].play(); _root[current].dummy.empulse = 100; } i--; } if (_root.soundon) { soundobj = new Sound(); soundobj.attachSound("crash"); soundobj.start(); }
Symbol 276 MovieClip [mine] Frame 33
_root.objarray.findandsplice(_name); _root.unitsarray.findandsplice(_name); _root.objarray.findandsplice(_name); _root.friendlylist.findandsplice(_name); _root.structurearray.findandsplice(_name); _root.minearray.findandsplice(this._name); _root[_name + "symbols"].removeMovieClip(); this.removeMovieClip(); stop();
Symbol 286 MovieClip Frame 1
if (targetobj == undefined) { stop(); } dx = _root[targetobj]._x - _parent._x; dy = _root[targetobj]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist > _parent.range) { targetobj = undefined; stop(); }
Symbol 286 MovieClip Frame 2
_root.attachMovie("shell2", "she3ll" + _root.n, _root.n); _root["she3ll" + _root.n]._x = _parent._x + 10; _root["she3ll" + _root.n]._y = _parent._y + 10; _root["she3ll" + _root.n]._rotation = this._rotation; _root["she3ll" + _root.n].damage = _parent.damage; _root["she3ll" + _root.n].shellspd = _parent.shellspd; _root["she3ll" + _root.n].targetobj = targetobj; _root["she3ll" + _root.n].hitonly = _parent.hitonly; _root["she3ll" + _root.n].firerer = _parent._name; _root.n++; _root.objarray.push("she3ll" + _root.n);
Symbol 286 MovieClip Frame 3
Symbol 286 MovieClip Frame 4
_root.attachMovie("shell2", "she2ll" + _root.n, _root.n); _root["she2ll" + _root.n]._x = _parent._x - 10; _root["she2ll" + _root.n]._y = _parent._y - 10; _root["she2ll" + _root.n]._rotation = this._rotation; _root["she2ll" + _root.n].damage = _parent.damage; _root["she2ll" + _root.n].shellspd = _parent.shellspd; _root["she2ll" + _root.n].targetobj = targetobj; _root["she2ll" + _root.n].hitonly = _parent.hitonly; _root["she2ll" + _root.n].firerer = _parent._name; _root.n++; _root.objarray.push("she2ll" + _root.n); if ((((this._x < 1000) && (this._y < 768)) && (this._x > 0)) && (this._y > 0)) { soundobj = new Sound(); soundobj.attachSound("mac"); soundobj.start(); }
Symbol 286 MovieClip Frame 6
if ((_root[targetobj].life < 0) || (_root[targetobj].life == undefined)) { targetobj = undefined; } if ((!_root[targetobj].fireing) && (!_root[targetobj].walking)) { if (_root[targetobj].aggressive) { _root[targetobj].aiattack(_parent._name); } }
Symbol 286 MovieClip Frame 7
gotoAndPlay ("normal");
Symbol 287 MovieClip [turrets] Frame 1
stop();
Instance of Symbol 188 MovieClip "selector" in Symbol 287 MovieClip [turrets] Frame 1
onClipEvent (load) { _root.attachMovie("bigdot", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; _parent.upgrade = 0; _root.turretarray.push(_parent._name); _root.structurearray.push(_parent._name); this._visible = false; _parent.enemy = false; _parent.aggressive = true; _root.objarray.push(_parent._name); _root.unitsarray.push(_parent._name); _parent.life = 800; _parent.fulllife = 800; _parent.range = 270; _parent.damage = 4; _parent.firerate = 1; _parent.shellspd = 30; _root.friendlylist.push(_parent._name); _parent.unittype = "turret1"; }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 287 MovieClip [turrets] Frame 1
onClipEvent (enterFrame) { this._xscale = 100 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 287 MovieClip [turrets] Frame 2
_root.enemymoney = _root.enemymoney + 1000;
Symbol 287 MovieClip [turrets] Frame 11
_root.objarray.findandsplice(_name); _root.unitsarray.findandsplice(_name); _root.objarray.findandsplice(_name); _root.friendlylist.findandsplice(_name); _root.structurearray.findandsplice(_name); _root.turretarray.findandsplice(this._name); _root[_name + "symbols"].removeMovieClip(); this.removeMovieClip(); stop();
Symbol 292 MovieClip [rad] Frame 1
timer++; this._xscale = this._xscale + 15; this._yscale = this._yscale + 15; this._alpha = this._alpha - 20; i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (this.hitTest(_root[current])) { _root[current].life = _root[current].life - (20 / timer); _root[current + "symbols"].play(); } i--; } if (this._alpha < 0) { this.removeMovieClip(); }
Symbol 292 MovieClip [rad] Frame 19
timer++; this._xscale = this._xscale + 15; this._yscale = this._yscale + 15; this._alpha = this._alpha - 20; i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (this.hitTest(_root[current])) { _root[current].life = _root[current].life - (20 / timer); _root[current + "symbols"].play(); } i--; } if (this._alpha < 0) { this.removeMovieClip(); }
Symbol 292 MovieClip [rad] Frame 40
gotoAndPlay (1);
Symbol 295 MovieClip [laser2] Frame 1
Symbol 295 MovieClip [laser2] Frame 2
if (((((this._x < 1000) && (this._y < 768)) && (this._x > 0)) && (this._y > 0)) && (_root.soundon)) { soundobj = new Sound(); soundobj.attachSound("la"); soundobj.start(); }
Symbol 295 MovieClip [laser2] Frame 4
_root.objarray.findandsplice(this._name); this.removeMovieClip();
Symbol 299 MovieClip [ionbeams] Frame 1
this._alpha = 50;
Symbol 299 MovieClip [ionbeams] Frame 4
Symbol 302 MovieClip [laser] Frame 1
Symbol 302 MovieClip [laser] Frame 2
if (((((_parent._x < 1000) && (_parent._y < 768)) && (_parent._x > 0)) && (_parent._y > 0)) && (_root.soundon)) { soundobj = new Sound(); soundobj.attachSound("Las"); soundobj.start(); }
Symbol 302 MovieClip [laser] Frame 4
_root.objarray.findandsplice(this._name); this.removeMovieClip();
Symbol 308 MovieClip [mo] Frame 1
stop();
Instance of Symbol 304 MovieClip "mouse" in Symbol 308 MovieClip [mo] Frame 1
onClipEvent (enterFrame) { _parent._x = _root._xmouse; _parent._y = _root._ymouse; }
Symbol 308 MovieClip [mo] Frame 2
stop();
Instance of Symbol 307 MovieClip in Symbol 308 MovieClip [mo] Frame 2
onClipEvent (enterFrame) { _parent._x = _root._xmouse; _parent._y = _root._ymouse; }
Symbol 308 MovieClip [mo] Frame 3
stop();
Symbol 313 Button
on (rollOver) { if (_root.selectedarray.length > 0) { _root.mouse.gotoAndStop("attacker"); } } on (rollOut) { if (_root.selectedarray.length > 0) { _root.mouse.gotoAndStop("locator"); } }
Symbol 319 MovieClip [enemyconstruction] Frame 1
this.cacheAsBitmap = true; stop();
Instance of Symbol 188 MovieClip "selector" in Symbol 319 MovieClip [enemyconstruction] Frame 1
onClipEvent (load) { _root.attachMovie("bigdot2", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; _root.enemystructurearray.push(_parent._name); this._visible = false; _parent.enemy = true; _parent.aggressive = false; _root.objarray.push(_parent._name); _root.unitsarray.push(_parent._name); _parent.life = 100; _parent.fulllife = 1000; _root.enemyarray.push(_parent._name); _parent.percent = 0; _root[_parent.dozer].aigoto(_parent._x, _parent._y, false); _root[_parent.dozer].targetbuild = _parent._name; _root[_parent.dozer].build = true; _root[_parent.structure] = 1; _parent.drag = false; _parent.unittype = "construction"; } onClipEvent (enterFrame) { if ((_root[_parent.dozer].life <= 0) || (_root[_parent.dozer].life == undefined)) { _parent.gotoAndPlay("explode"); } }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 319 MovieClip [enemyconstruction] Frame 1
onClipEvent (enterFrame) { this._xscale = 370 * (_parent.life / _parent.fulllife); if ((_parent.life <= 0) && (!_parent.drag)) { _parent.gotoAndPlay("explode"); } }
Symbol 319 MovieClip [enemyconstruction] Frame 2
_root.attachMovie(structure, structure + "1", _root.n - 1000); _root[structure + "1"]._x = this._x; _root[structure + "1"]._y = this._y; _root.n++; _root.objarray.findandsplice(_name); _root.unitsarray.findandsplice(_name); _root.enemystructurearray.findandsplice(_name); _root.objarray.findandsplice(_name); _root.enemyarray.findandsplice(_name); _root.sidebar.calccost(); _root[_name + "symbols"].removeMovieClip(); this.removeMovieClip();
Symbol 319 MovieClip [enemyconstruction] Frame 3
Symbol 319 MovieClip [enemyconstruction] Frame 12
_root.objarray.findandsplice(_name); _root.unitsarray.findandsplice(_name); _root.objarray.findandsplice(_name); _root.enemyarray.findandsplice(_name); _root.enemystructurearray.findandsplice(_name); _root[_name + "symbols"].removeMovieClip(); _root[structure] = 0; _root.sidebar.calccost(); this.removeMovieClip(); stop();
Symbol 323 Button
on (keyPress "<Space>") { if (_parent.drag) { _parent.gotoAndPlay(12); } }
Symbol 325 MovieClip [construction2] Frame 1
stop();
Instance of Symbol 188 MovieClip "selector" in Symbol 325 MovieClip [construction2] Frame 1
onClipEvent (load) { _root.structurearray.push(_parent._name); this._visible = false; _parent.enemy = false; _parent.aggressive = false; _parent.life = 100; _parent.fulllife = 500; timer = 0; _parent.unittype = "construction"; } onClipEvent (enterFrame) { if (_parent.drag) { timer++; _parent._y = _root._ymouse; _parent._x = _root._xmouse; if (Key.isDown(32)) { _root.money = _root.money + _parent.cost; _parent.gotoAndPlay(12); } } if ((_root[_parent.dozer].life <= 0) || (_root[_parent.dozer].life == undefined)) { _parent.gotoAndPlay("explode"); } } onClipEvent (mouseUp) { hit = false; if (_parent.drag) { c = _root.unitsarray.length - 1; while (c > -1) { current2 = _root.unitsarray[c]; if (this.hitTest(_root[current2])) { break; } c--; } } if (((!hit) && (timer > 10)) && (_parent.drag)) { _root.attachMovie("bigdot", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; _root.objarray.push(_parent._name); _root.friendlylist.push(_parent._name); _root.unitsarray.push(_parent._name); _parent.aggressive = true; _parent.percent = 0; _root[_parent.dozer].aigoto(_parent._x, _parent._y, false); _root[_parent.dozer].targetbuild = _parent._name; _root[_parent.dozer].build = true; _parent.drag = false; } }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 325 MovieClip [construction2] Frame 1
onClipEvent (enterFrame) { this._xscale = 60 * (_parent.life / _parent.fulllife); if ((_parent._currentframe == 1) && (!_parent.drag)) { if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } } }
Symbol 325 MovieClip [construction2] Frame 2
_root.attachMovie(structure, structure + _root.n, _root.n - 1000); _root[structure + _root.n]._x = this._x; _root[structure + _root.n]._y = this._y; _root.n++; _root.objarray.findandsplice(_name); _root.unitsarray.findandsplice(_name); _root.objarray.findandsplice(_name); _root.friendlylist.findandsplice(_name); _root[_name + "symbols"].removeMovieClip(); _root.sidebar.calccost(); this.removeMovieClip();
Symbol 325 MovieClip [construction2] Frame 3
Symbol 325 MovieClip [construction2] Frame 12
_root.objarray.findandsplice(_name); _root.unitsarray.findandsplice(_name); _root.objarray.findandsplice(_name); _root.friendlylist.findandsplice(_name); _root.structurearray.findandsplice(_name); _root.sidebar.build[structure].gotoAndStop(1); _root.sidebar.calccost(); _root[_name + "symbols"].removeMovieClip(); this.removeMovieClip(); stop();
Symbol 333 MovieClip [construction] Frame 1
this.cacheAsBitmap = true; stop();
Instance of Symbol 188 MovieClip "selector" in Symbol 333 MovieClip [construction] Frame 1
onClipEvent (load) { _root.structurearray.push(_parent._name); this._visible = false; _parent.enemy = false; _parent.aggressive = false; _parent.life = 100; _parent.fulllife = 1000; timer = 0; _parent.unittype = "construction"; } onClipEvent (enterFrame) { if (_parent.drag) { timer++; _parent._y = _root._ymouse; _parent._x = _root._xmouse; if (Key.isDown(32)) { _root.money = _root.money + _parent.cost; _parent.gotoAndPlay(12); } } if ((_root[_parent.dozer].life <= 0) || (_root[_parent.dozer].life == undefined)) { _parent.gotoAndPlay("explode"); } } onClipEvent (mouseUp) { hit = false; if (_parent.drag) { c = _root.unitsarray.length - 1; while (c > -1) { current2 = _root.unitsarray[c]; if (this.hitTest(_root[current2])) { break; } c--; } } if (((!hit) && (timer > 10)) && (_parent.drag)) { _root.attachMovie("bigdot", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; _root.objarray.push(_parent._name); _root.unitsarray.push(_parent._name); _root.friendlylist.push(_parent._name); _parent.percent = 0; _root[_parent.dozer].aigoto(_parent._x, _parent._y, false); _root[_parent.dozer].targetbuild = _parent._name; _root[_parent.dozer].build = true; _parent.drag = false; } }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 333 MovieClip [construction] Frame 1
onClipEvent (enterFrame) { this._xscale = 370 * (_parent.life / _parent.fulllife); if ((_parent.life <= 0) && (!_parent.drag)) { _parent.gotoAndPlay("explode"); } }
Symbol 333 MovieClip [construction] Frame 2
_root.attachMovie(structure, structure + "1", _root.n - 1000); _root[structure + "1"]._x = this._x; _root[structure + "1"]._y = this._y; _root.n++; _root.objarray.findandsplice(_name); _root.unitsarray.findandsplice(_name); _root.objarray.findandsplice(_name); _root.friendlylist.findandsplice(_name); _root.sidebar.calccost(); _root[_name + "symbols"].removeMovieClip(); this.removeMovieClip();
Symbol 333 MovieClip [construction] Frame 3
Symbol 333 MovieClip [construction] Frame 12
_root.objarray.findandsplice(_name); _root.unitsarray.findandsplice(_name); _root.objarray.findandsplice(_name); _root.friendlylist.findandsplice(_name); _root.structurearray.findandsplice(_name); _root.sidebar.build[structure].gotoAndStop(1); _root[_name + "symbols"].removeMovieClip(); _root.sidebar.calccost(); this.removeMovieClip(); stop();
Symbol 336 MovieClip [bigdot2] Frame 1
if (_root.comcentre1.life == undefined) { this._visible = false; } stop();
Symbol 336 MovieClip [bigdot2] Frame 6
gotoAndStop (1);
Symbol 338 MovieClip [bigdot] Frame 1
if (_root.comcentre1.life == undefined) { this._visible = false; } stop();
Symbol 338 MovieClip [bigdot] Frame 6
gotoAndStop (1);
Symbol 341 MovieClip [dot2] Frame 1
if (_root.comcentre1.life == undefined) { this._visible = false; } stop();
Symbol 341 MovieClip [dot2] Frame 6
gotoAndStop (1);
Symbol 352 MovieClip [nuke] Frame 1
_root.objarray.push(_name);
Symbol 352 MovieClip [nuke] Frame 7
i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (_root[current].hitTest(this)) { _root[current].life = _root[current].life - (0.75 * _root[current].fulllife); } i--; }
Symbol 352 MovieClip [nuke] Frame 8
i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (_root[current].hitTest(this)) { _root[current].life = _root[current].life - (0.25 * _root[current].fulllife); } i--; } if (_root.soundon) { soundobj = new Sound(); soundobj.attachSound("exp2"); soundobj.start(); }
Symbol 352 MovieClip [nuke] Frame 10
_root.n++; _root.attachMovie("rad", "rad" + _root.n, _root.n); _root["rad" + _root.n]._x = this._x; _root["rad" + _root.n]._y = this._y; _root["rad" + _root.n]._yscale = 200; _root["rad" + _root.n]._xscale = 200; _root["rad" + _root.n].timer = 0; _root.objarray.push("rad" + _root.n); _root.n++; if (_root.soundon) { soundobj2 = new Sound(); soundobj2.attachSound("crash"); soundobj2.start(); }
Symbol 352 MovieClip [nuke] Frame 12
i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (_root[current].hitTest(this)) { _root[current].life = _root[current].life - 100; } i--; } if (_root.soundon) { soundobj3 = new Sound(); soundobj3.attachSound("exp"); soundobj3.start(); }
Symbol 352 MovieClip [nuke] Frame 16
_root.objarray.findandsplice(_name); this.removeMovieClip(); stop();
Symbol 357 MovieClip [targeter] Frame 1
timer = 1;
Instance of Symbol 356 MovieClip in Symbol 357 MovieClip [targeter] Frame 1
onClipEvent (enterFrame) { _parent._x = _root.mouse._x; _parent._y = _root.mouse._y; _parent.timer++; if (Key.isDown(32)) { _parent.removeMovieClip(); } } onClipEvent (mouseUp) { if ((_parent.timer > 10) && (hit == undefined)) { _root.attachMovie("flag2", "nuclearstrike", _root.n); _root.nuclearstrike._x = _root.mouse._x; _root.nuclearstrike._y = _root.mouse._y; _root.objarray.push("nuclearstrike"); _root.n++; hit = true; _root.attachMovie("nukemiss", "nukemiss", _root.n); _root.nukemiss._x = _root.weaponsilo1._x; _root.nukemiss._y = _root.weaponsilo1._y; _root.n++; _parent._visible = false; _parent.removeMovieClip(); } }
Symbol 361 MovieClip Frame 3
if ((_parent.timer > 12) && (!_parent.hitonly)) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (_root[current].hitTest(_parent)) { _parent.hits = current; _parent.play(); break; } i--; } } if ((_parent.timer > 12) && (_parent.hitonly)) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (_root[current].hitTest(_parent) && (_root[current].enemy == _root[_parent.targetobj].enemy)) { _parent.hits = current; _parent.play(); break; } i--; } } if (_parent.shellspd < 20) { _parent.shellspd = _parent.shellspd + 2; } if (_parent.hitTest(_root[_parent.targetobj])) { _parent.play(); } if (_parent.timer > 40) { _parent.play(); }
Symbol 362 MovieClip [nukemiss2] Frame 1
_root.objarray.push(this._name);
Instance of Symbol 361 MovieClip in Symbol 362 MovieClip [nukemiss2] Frame 1
onClipEvent (enterFrame) { _root.sidebar.enemynuketimer.gotoAndStop(2); flag = "nuclearstrike2"; dx = _root[flag]._x - _parent._x; dy = _root[flag]._y - _parent._y; _parent._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); rads = (_parent._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * 10); _parent._y = _parent._y + (Math.sin(rads) * 10); if (_parent.hitTest(_root[flag])) { _root[flag].removeMovieClip(); _root.objarray.findandsplice(flag); _root.flagsarray.findandsplice(flag); _root[flag].removeMovieClip(); _parent.walking = false; _root.attachMovie("nuke", "nuke2", _root.n); _root.nuke2._x = _parent._x; _root.nuke2._y = _parent._y; _root.n++; _root.objarray.findandsplice(_parent._name); _parent.removeMovieClip(); } }
Symbol 364 MovieClip [nukemiss] Frame 1
_root.objarray.push(this._name);
Instance of Symbol 361 MovieClip in Symbol 364 MovieClip [nukemiss] Frame 1
onClipEvent (enterFrame) { _root.sidebar.nuketimer.gotoAndStop(2); flag = "nuclearstrike"; dx = _root[flag]._x - _parent._x; dy = _root[flag]._y - _parent._y; _parent._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); rads = (_parent._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * 10); _parent._y = _parent._y + (Math.sin(rads) * 10); if (_parent.hitTest(_root[flag])) { _root[flag].removeMovieClip(); _root.objarray.findandsplice(flag); _root.flagsarray.findandsplice(flag); _root[flag].removeMovieClip(); _parent.walking = false; _root.attachMovie("nuke", "nuke", _root.n); _root.nuke._x = _parent._x; _root.nuke._y = _parent._y; _root.n++; _root.objarray.findandsplice(_parent._name); _parent.removeMovieClip(); } }
Symbol 366 MovieClip [padded] Frame 1
if (_root.comcentre1.life == undefined) { this._visible = false; } stop();
Symbol 374 Button
on (press) { fscommand ("quit"); }
Symbol 378 Button
on (release) { gotoAndPlay ("options"); }
Symbol 382 Button
on (press) { gotoAndPlay ("skirmish"); }
Symbol 386 Button
on (press) { play(); }
Symbol 390 Button
on (release) { _root.gotoAndPlay(2); }
Symbol 398 Button
on (press) { gotoAndPlay ("reverse"); }
Symbol 405 Button
on (press) { _root.difficulty = 5; _root.gotoAndStop(5); }
Symbol 410 Button
on (press) { _root.difficulty = 10; _root.gotoAndStop(5); }
Symbol 415 Button
on (press) { _root.difficulty = 20; _root.gotoAndStop(5); }
Symbol 428 Button
on (release) { _root.screen = !_root.screen; if (_root.screen) { sc = "On"; } if (!_root.screen) { sc = "Off"; } fscommand ("fullscreen", _root.screen); }
Symbol 433 Button
on (release) { _root.smart = !_root.smart; if (_root.smart) { smart = "On"; } if (!_root.smart) { smart = "Off"; } }
Symbol 438 Button
on (release) { i = 1; while (i > 0) { if (_root._quality == "LOW") { _root._quality = "MEDIUM"; break; } if (_root._quality == "MEDIUM") { _root._quality = "HIGH"; break; } if (_root._quality == "HIGH") { _root._quality = "BEST"; break; } if (_root._quality == "BEST") { _root._quality = "LOW"; break; } i--; } qual = _root._quality; qaul.toLowerCase(); }
Symbol 442 Button
on (release) { _root.musicon = !_root.musicon; if (_root.musicon) { mus = "On"; _root.music.setVolume(100); } if (!_root.musicon) { mus = "Off"; _root.music.setVolume(0); } }
Symbol 446 Button
on (release) { _root.setsoundon = !_root.setsoundon; if (_root.setsoundon) { mute = "On"; } if (!_root.setsoundon) { mute = "Off"; } }
Symbol 450 Button
on (release) { _root.fog = !_root.fog; if (_root.fog) { foghorn = "On"; } if (!_root.fog) { foghorn = "Off"; } }
Symbol 462 MovieClip Frame 1
this._visible = false;
Symbol 480 MovieClip Frame 1
this.cacheAsBitmap = true; this.opaqueBackground = 0; stop();
Symbol 480 MovieClip Frame 2
stop();
Instance of Symbol 474 MovieClip "back" in Symbol 480 MovieClip Frame 5
/* no clip actions */
Instance of Symbol 478 MovieClip "back" in Symbol 480 MovieClip Frame 6
/* no clip actions */
Symbol 484 Button
on (release) { _root.currento = current; _root.gotoAndPlay(4); }
Symbol 487 Button
on (press) { if (current > 0) { current--; } mapname = mapsarray[current]; _root.currentlist = mapslist[current]; mapp.gotoAndStop("map" + current); }
Symbol 488 Button
on (press) { if (current < (mapsarray.length - 1)) { current++; } mapname = mapsarray[current]; _root.currentlist = mapslist[current]; mapp.gotoAndStop("map" + current); }
Symbol 491 Button
on (release) { _root.ownmap5 = !_root.ownmap5; if (!_root.owmmap5) { shroud = "On"; } if (_root.ownmap5) { shroud = "Off"; } }
Symbol 498 Button
on (press) { if (_root.monet < 50000) { _root.monet = _root.monet + 5000; } }
Symbol 499 Button
on (press) { if (_root.monet > 5000) { _root.monet = _root.monet - 5000; } }
Symbol 505 Button
on (release) { this.lists._visible = !this.lists._visible; this.lists2._visible = false; }
Symbol 508 Button
on (release) { this.lists2._visible = !this.lists2._visible; this.lists._visible = false; }
Symbol 514 Button
on (release) { _root.difficulty = 3; _parent.difficulty = "Easy Enemy"; this._visible = false; }
Symbol 518 Button
on (release) { _root.difficulty = 2; _parent.difficulty = "Medium Enemy"; this._visible = false; }
Symbol 522 Button
on (release) { _root.difficulty = 1; _parent.difficulty = "Hard Enemy"; this._visible = false; }
Symbol 527 Button
on (release) { _root.difficulty = 0.7; _parent.difficulty = "Burtal Enemy"; this._visible = false; }
Symbol 530 Button
on (release) { _root.difficulty = 4; _parent.difficulty = "Novice Enemy"; this._visible = false; }
Symbol 538 Button
on (release) { _root.aip = "Technology Commander"; _root.ais = 4; this._visible = false; }
Symbol 546 Button
on (release) { _root.aip = "Offensive Commander"; _root.ais = 1; this._visible = false; }
Symbol 552 Button
on (release) { _root.aip = "Defensive Commander"; _root.ais = 2; this._visible = false; }
Symbol 557 Button
on (release) { _root.aip = "Superweapon Commander"; _root.ais = 5; this._visible = false; }
Symbol 564 Button
on (release) { _root.aip = "Economic Commander"; _root.ais = 3; this._visible = false; }
Symbol 566 MovieClip [bar] Frame 1
stop();
Instance of Symbol 369 MovieClip in Symbol 566 MovieClip [bar] Frame 1
onClipEvent (load) { timer = 0; } onClipEvent (enterFrame) { if (timer == 10) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (_root[current].unittype == "artillery") { if (Math.random() > 0.9) { _root[current].deploy(); } } i--; } } timer++; if (timer == 18) { createobj2(); } if (timer == 20) { createobj(); } if (timer == 42) { _global.applyobj(); timer = 0; } }
Instance of Symbol 369 MovieClip in Symbol 566 MovieClip [bar] Frame 2
onClipEvent (load) { timer = 0; this._visible = false; } onClipEvent (enterFrame) { if (timer == 10) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (_root[current].unittype == "artillery") { if (Math.random() > 0.9) { _root[current].deploy(); } } i--; } } timer++; if (timer == 18) { createobj2(); } if (timer == 20) { createobj(); } if (timer == 42) { _global.applyobj(); timer = 0; } }
Symbol 566 MovieClip [bar] Frame 11
stop();
Symbol 566 MovieClip [bar] Frame 26
gotoAndStop (1);
Symbol 566 MovieClip [bar] Frame 37
stop();
Symbol 566 MovieClip [bar] Frame 48
_root.ais = "Technology Commander"; difficulty = "Novice Enemy"; mapsarray = ["Arena", "Near Oil Far", "No Man's Land", "Warring Factions", "River of Troubles", "Main Base"]; mapslist = [3, 7, 9, 11, 13, 15]; current = 0; _root.ownmap5 = false; stop();
Instance of Symbol 480 MovieClip "mapp" in Symbol 566 MovieClip [bar] Frame 48
/* no clip actions */
Instance of Symbol 531 MovieClip "lists2" in Symbol 566 MovieClip [bar] Frame 48
onClipEvent (load) { this._visible = false; }
Instance of Symbol 565 MovieClip "lists" in Symbol 566 MovieClip [bar] Frame 48
onClipEvent (load) { this._visible = false; }
Symbol 568 MovieClip [weaponsilo] Frame 1
_root.sidebar.nuketimer.gotoAndPlay(2); this.cacheAsBitmap = true; stop();
Instance of Symbol 188 MovieClip "selector" in Symbol 568 MovieClip [weaponsilo] Frame 1
onClipEvent (load) { _root.attachMovie("bigdot", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; _parent.upgrade = 0; _root.structurearray.push(_parent._name); this._visible = false; _parent.enemy = false; _parent.aggressive = true; _root.objarray.push(_parent._name); _root.unitsarray.push(_parent._name); _parent.life = 1500; _parent.fulllife = 1500; _root.friendlylist.push(_parent._name); _parent.unittype = "weaponsilo"; }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 568 MovieClip [weaponsilo] Frame 1
onClipEvent (enterFrame) { this._xscale = 400 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 568 MovieClip [weaponsilo] Frame 2
_root.enemymoney = _root.enemymoney + 10000;
Symbol 568 MovieClip [weaponsilo] Frame 11
_root.objarray.findandsplice(_name); _root.unitsarray.findandsplice(_name); _root.friendlylist.findandsplice(_name); _root.structurearray.findandsplice(_name); _root.sidebar.build.weaponsilo.gotoAndStop(1); _root.sidebar.nuketimer.gotoAndStop(1); _root.targeter.removeMovieClip(); _root[_name + "symbols"].removeMovieClip(); this._name = "l"; this.removeMovieClip(); stop();
Symbol 570 MovieClip Frame 1
stop();
Symbol 570 MovieClip Frame 2
if (_parent.life < _parent.fulllife) { _parent.life = _parent.life + 5; }
Symbol 570 MovieClip Frame 6
if (_parent.life < _parent.fulllife) { _parent.life = _parent.life + 5; }
Symbol 570 MovieClip Frame 10
if (_parent.life < _parent.fulllife) { _parent.life = _parent.life + 5; }
Symbol 570 MovieClip Frame 14
if (_parent.life < _parent.fulllife) { _parent.life = _parent.life + 5; }
Symbol 570 MovieClip Frame 18
if (_parent.life < _parent.fulllife) { _parent.life = _parent.life + 5; }
Symbol 570 MovieClip Frame 22
if (_parent.life < _parent.fulllife) { _parent.life = _parent.life + 5; }
Symbol 570 MovieClip Frame 25
number++; gotoAndStop (1);
Symbol 571 Button
on (rollOver) { if (_root.selectedarray.length > 0) { _root.mouse.gotoAndStop("attacker"); } } on (rollOut) { if (_root.selectedarray.length > 0) { _root.mouse.gotoAndStop("locator"); } }
Symbol 572 MovieClip [enemyweaponsilo] Frame 1
_root.sidebar.enemynuketimer.gotoAndPlay(2); this.cacheAsBitmap = true; stop();
Instance of Symbol 188 MovieClip "selector" in Symbol 572 MovieClip [enemyweaponsilo] Frame 1
onClipEvent (load) { _root.attachMovie("bigdot2", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; _parent.upgrade = 0; _root.enemystructurearray.push(_parent._name); this._visible = false; _parent.enemy = true; _parent.aggressive = true; _root.objarray.push(_parent._name); _root.unitsarray.push(_parent._name); _parent.life = 1500; _parent.fulllife = 1500; _root.enemyarray.push(_parent._name); _parent.unittype = "weaponsilo"; }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 572 MovieClip [enemyweaponsilo] Frame 1
onClipEvent (enterFrame) { this._xscale = 410 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 572 MovieClip [enemyweaponsilo] Frame 2
_root.money = _root.money + 10000;
Symbol 572 MovieClip [enemyweaponsilo] Frame 11
_root.objarray.findandsplice(_name); _root.unitsarray.findandsplice(_name); _root.enemyarray.findandsplice(_name); _root.structurearray.findandsplice(_name); _root.enemyweaponsilo = 0; _root.sidebar.enemynuketimer.gotoAndStop(1); _root[_name + "symbols"].removeMovieClip(); this.removeMovieClip(); stop();
Symbol 574 MovieClip Frame 1
stop();
Symbol 574 MovieClip Frame 2
if (_parent.enemy) { _root.money = _root.money + 100; } if (!_parent.enemy) { _root.enemymoney = _root.enemymoney + 100; } _parent.turret._visible = false;
Symbol 574 MovieClip Frame 8
_root.objarray.findandsplice(_parent._name); _root.unitsarray.findandsplice(_parent._name); _root.enemyarray.findandsplice(_parent._name); _root.friendlylist.findandsplice(_parent._name); _root.selectedarray.findandsplice(_parent._name); _root.flagsarray.findandsplice("flag" + _parent._name); _root.sidebar.calccost(); _root[_parent._name + "symbols"].removeMovieClip(); _root["flag" + _parent._name].removeMovieClip(); _parent.nextFrame(); _parent.removeMovieClip(); stop();
Symbol 575 MovieClip [enemylasertank] Frame 1
stop();
Instance of Symbol 574 MovieClip "dummy" in Symbol 575 MovieClip [enemylasertank] Frame 1
onClipEvent (load) { _root.attachMovie("dot2", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; _parent.upgrade = 0; _parent.unittype = "lasertank"; _parent.damage = 250; _parent.avoid = false; _parent.aggressive = true; _root.enemyarray.push(_parent._name); _parent.enemy = true; _parent.num = _root.num; _root.num++; _parent.selected1 = false; _root.unitsarray.push(_parent._name); _root.objarray.push(_parent._name); _parent.life = 1000; nohit = 0; _parent.fulllife = 1000; _parent.speed = 3; _parent.firerate = 30; _parent.walking = false; _parent.fireing = false; _parent.attack = false; _parent.range = 250; empulse = 0; as = 0; left = 1; if (_root.warfactory1._x != undefined) { _parent.aigoto(_root.rallypoint._x, _root.rallypoint._y, false); } } onClipEvent (enterFrame) { if (empulse > 0) { empulse--; } if (empulse == 0) { if (_parent.attack) { if (_root[_parent.targetobj].life <= 0) { _parent.targetobj = undefined; _parent.walking = false; _parent.attack = false; } _root[flag]._x = _root[_parent.targetobj]._x; _root[flag]._y = _root[_parent.targetobj]._y; dx = _root[_parent.targetobj]._x - _parent._x; dy = _root[_parent.targetobj]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < _parent.range) { _parent.walking = false; _parent.fireing = true; _parent.turret._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); if (_parent.turret._currentframe == 1) { _parent.turret.play(); _parent.turret.targetobj = _parent.targetobj; } if (_root[_parent.targetobj].life <= 0) { _parent.targetobj = undefined; _parent.attack = false; _parent.fireing = false; } } } if (_parent.walking == true) { _parent.fireing = false; hit = false; flag = "flag" + _parent._name; dx = _root[flag]._x - _parent._x; dy = _root[flag]._y - _parent._y; this._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); rads = (this._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * _parent.speed); _parent._y = _parent._y + (Math.sin(rads) * _parent.speed); _parent.movesym(); nohit++; if (nohit == 20) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (this.hitTest(_root[current])) { if (_parent.num > _root[current].num) { if (this._rotation > 0) { _parent._x = _parent._x + (0.2 * _parent._width); _parent._y = _parent._y + (0.2 * _parent._height); } if (this._rotation < 0) { _parent._x = _parent._x - (0.2 * _parent._width); _parent._y = _parent._y - (0.2 * _parent._height); } } } i--; } nohit = 0; } if (_parent.attack) { _root[flag]._x = _root[_parent.targetobj]._x; _root[flag]._y = _root[_parent.targetobj]._y; dx = _root[_parent.targetobj]._x - _parent._x; dy = _root[_parent.targetobj]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < _parent.range) { _parent.walking = false; _parent.fireing = true; _parent.turret._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); if (_parent.turret._currentframe == 1) { _parent.turret.play(); _parent.turret.targetobj = _parent.targetobj; } if (_root[_parent.targetobj].life <= 0) { _parent.targetobj = undefined; _parent.attack = false; _parent.fireing = false; } } } if (this.hitTest(_root[flag])) { _root[flag].removeMovieClip(); _root.objarray.findandsplice(flag); _root.flagsarray.findandsplice(flag); _parent.walking = false; } } if (_parent.fireing) { dx = _root[_parent.targetobj]._x - _parent._x; dy = _root[_parent.targetobj]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist > (_parent.range * 1.5)) { _parent.walking = true; _root[flag]._x = _root[_parent.targetobj]._x; _root[flag]._y = _root[_parent.targetobj]._y; _parent.fireing = false; } } if (_parent.fireing) { _parent.turret._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); if (_parent.turret._currentframe == 1) { _parent.turret.play(); _parent.turret.targetobj = _parent.targetobj; } if (_root[_parent.targetobj].life <= 0) { _parent.targetobj = undefined; _parent.fireing = false; _parent.attack = false; } if (!_parent.walking) { if (_parent.avoid) { as++; if (left > 0) { this._rotation = ((Math.atan2(dy, dx) * 360) / (Math.PI*2)) - 90; } if (left < 0) { this._rotation = -((Math.atan2(dy, dx) * 360) / (Math.PI*2)); } if (as > 50) { as = 0; left = -left; } rads = (this._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * _parent.speed); _parent._y = _parent._y + (Math.sin(rads) * _parent.speed); _parent.movesym(); } } if (_parent.hitTest(_root.back.tops)) { _parent._y = _parent._y + 20; } if (_parent.hitTest(_root.back.bottoms)) { _parent._y = _parent._y - 20; } if (_parent.hitTest(_root.back.lefts)) { _parent._x = _parent._x + 20; } if (_parent.hitTest(_root.back.rights)) { _parent._x = _parent._x - 20; } } } }
Instance of Symbol 188 MovieClip "selector" in Symbol 575 MovieClip [enemylasertank] Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 575 MovieClip [enemylasertank] Frame 1
onClipEvent (enterFrame) { this._xscale = 100 * (_parent.life / _parent.fulllife); if (_parent.dummy._currentframe == 1) { if (_parent.life <= 0) { _parent.dummy.gotoAndPlay("explode"); } } }
Symbol 575 MovieClip [enemylasertank] Frame 2
stop();
Symbol 579 MovieClip Frame 1
stop();
Symbol 579 MovieClip Frame 2
stop();
Symbol 579 MovieClip Frame 3
_parent._x = _root.enemyrefinery1._x; _parent._y = _root.enemyrefinery1._y; this._rotation = 90; _parent.movesym(); play();
Symbol 579 MovieClip Frame 4
if (_parent.oil > 0) { _root.enemymoney = _root.enemymoney + 150; _parent.oil = _parent.oil - 20; }
Symbol 579 MovieClip Frame 5
if (_parent.oil > 0) { _root.enemymoney = _root.enemymoney + 250; _parent.oil = _parent.oil - 20; }
Symbol 579 MovieClip Frame 6
if (_parent.oil > 0) { _root.enemymoney = _root.enemymoney + 250; _parent.oil = _parent.oil - 20; }
Symbol 579 MovieClip Frame 7
if (_parent.oil > 0) { _root.enemymoney = _root.enemymoney + 150; _parent.oil = _parent.oil - 20; }
Symbol 579 MovieClip Frame 8
if (_parent.oil > 0) { _root.enemymoney = _root.enemymoney + 650; _parent.oil = _parent.oil - 20; } refinery = false; gotoAndStop (1);
Symbol 579 MovieClip Frame 9
if (_parent.enemy) { _root.kills++; } if (!_parent.enemy) { _root.losses++; } if (_root.soundon) { soundobj = new Sound(); soundobj.attachSound("crash"); soundobj.start(); }
Symbol 579 MovieClip Frame 15
_root.unitsarray.findandsplice(_parent._name); _root.enemyarray.findandsplice(_parent._name); _root.enemyoiltruckarrray.findandsplice(_parent._name); _root.objarray.findandsplice("flag" + _parent._name); _root.selectedarray.findandsplice(_parent._name); _root.flagsarray.findandsplice("flag" + _parent._name); _root.sidebar.calccost(); _root.enemyoiltrucks--; _root[_parent._name + "symbols"].removeMovieClip(); _root["flag" + _parent._name].removeMovieClip(); _parent.nextFrame(); _parent.removeMovieClip(); stop();
Symbol 580 MovieClip [enemyoiltruck] Frame 1
stop();
Instance of Symbol 579 MovieClip "dummy" in Symbol 580 MovieClip [enemyoiltruck] Frame 1
onClipEvent (load) { _root.attachMovie("dot2", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; _root.enemyoiltrucks++; _parent.gotooil = function () { i = _root.oilarray.length - 1; while (i > -1) { current = _root.oilarray[i]; if (_root[current].oilspill._xscale > 0) { dx = this._x - _root[current]._x; dy = this._y - _root[current]._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if ((Math.random() * 1500) > dist) { this.aigoto(_root[current]._x, _root[current]._y, false); oil = current; break; } } i--; } }; _parent.auto = false; _root.enemyoiltruckarray.push(_parent._name); _parent.unittype = "oiltruck"; _parent.oil = 0; _parent.fulloil = 100; _parent.aggressive = false; _root.enemyarray.push(_parent._name); _parent.enemy = true; _parent.num = _root.num; _root.num++; _parent.selected1 = false; _root.unitsarray.push(_parent._name); _root.objarray.push(_parent._name); _parent.life = 500; _parent.fulllife = 500; _parent.speed = 3; _parent.walking = false; refinery = false; as = 0; left = 1; empulse = 0; } onClipEvent (enterFrame) { if (((!_parent.walking) && (this._currentframe == 1)) && (!refinery)) { _parent.gotooil(); } if (empulse > 0) { empulse--; } if (empulse == 0) { if (_parent.walking == true) { _parent.fireing = false; hit = false; flag = "flag" + _parent._name; if (!refinery) { if (!obstacle) { dx = _root[flag]._x - _parent._x; dy = _root[flag]._y - _parent._y; this._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); } if (obstacle) { dxn = _root[flag2]._x - _parent._x; dyn = _root[flag2]._y - _parent._y; this._rotation = (Math.atan2(dyn, dxn) * 360) / (Math.PI*2); } } if (refinery) { if (!obstacle) { dx = _root.enemyrefinery1._x - _parent._x; dy = _root.enemyrefinery1._y - _parent._y; this._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); } if (obstacle) { dxn = _root[flag2]._x - _parent._x; dyn = _root[flag2]._y - _parent._y; this._rotation = (Math.atan2(dyn, dxn) * 360) / (Math.PI*2); } } rads = (this._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * _parent.speed); _parent._y = _parent._y + (Math.sin(rads) * _parent.speed); _parent.movesym(); if (this.hitTest(_root[flag2])) { obstacle = false; flag2 = undefined; } if (this.hitTest(_root[flag]) && (!refinery)) { _root[flag].removeMovieClip(); _root.objarray.findandsplice(flag); _root.flagsarray.findandsplice(flag); _parent.walking = false; } if (oil != undefined) { if (_root[oil].oilspill._xscale <= 0) { _root[flag].removeMovieClip(); _root.objarray.findandsplice(flag); _root.flagsarray.findandsplice(flag); oil = undefined; _parent.walking = false; gotoAndStop (1); } if (this.hitTest(_root[oil].oilspill)) { _root[flag].removeMovieClip(); _root.objarray.findandsplice(flag); _root.flagsarray.findandsplice(flag); _parent.walking = false; gotoAndStop ("sucking"); } } if (refinery) { if (this.hitTest(_root.enemyrefinery1.pad)) { _root[flag].removeMovieClip(); _root.objarray.findandsplice(flag); _root.flagsarray.findandsplice(flag); _parent.walking = false; gotoAndStop ("refining"); } } } } if (this._currentframe == 2) { if (_parent.oil < 100) { _parent.oil++; _root[oil].oilspill._xscale = _root[oil].oilspill._xscale - 0.02; _root[oil].oilspill._yscale = _root[oil].oilspill._yscale - 0.02; } if (_root[oil].oilspill._xscale < 0) { gotoAndStop (1); } if (_parent.oil == 100) { gotoAndStop (1); if (_root.enemyrefinery1.life != undefined) { _parent.aigoto(_root.enemyrefinery1._x, _root.enemyrefinery1._y - 20, false); } else { _parent.oil = 0; } oil = undefined; refinery = true; } } if (this._currentframe == 8) { _parent.gotooil(); } }
Instance of Symbol 188 MovieClip "selector" in Symbol 580 MovieClip [enemyoiltruck] Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 580 MovieClip [enemyoiltruck] Frame 1
onClipEvent (enterFrame) { this._xscale = 100 * (_parent.life / _parent.fulllife); if (_parent.dummy._currentframe < 9) { if (_parent.life <= 0) { _parent.dummy.gotoAndPlay("explode"); } } }
Symbol 580 MovieClip [enemyoiltruck] Frame 2
stop();
Symbol 582 MovieClip [enemyturret] Frame 1
stop();
Instance of Symbol 188 MovieClip "selector" in Symbol 582 MovieClip [enemyturret] Frame 1
onClipEvent (load) { _root.attachMovie("bigdot2", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; _root.enemyturretarray.push(_parent._name); _root.enemystructurearray.push(_parent._name); this._visible = false; _parent.enemy = true; _parent.aggressive = true; _root.objarray.push(_parent._name); _root.unitsarray.push(_parent._name); _parent.life = 800; _parent.fulllife = 800; _parent.range = 270; _parent.damage = 4; _parent.firerate = 1; _parent.shellspd = 30; _root.enemyarray.push(_parent._name); _parent.unittype = "turret1"; }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 582 MovieClip [enemyturret] Frame 1
onClipEvent (enterFrame) { this._xscale = 100 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 582 MovieClip [enemyturret] Frame 2
_root.money = _root.money + 1000;
Symbol 582 MovieClip [enemyturret] Frame 11
_root.objarray.findandsplice(_name); _root.unitsarray.findandsplice(_name); _root.enemyarray.findandsplice(_name); _root.enemystructurearray.findandsplice(_name); _root.enemyturretarray.findandsplice(this._name); _root[_name + "symbols"].removeMovieClip(); _root["enemyturret" + number] = false; this.removeMovieClip(); stop();
Symbol 584 MovieClip [mission3] Frame 2
pp = 0; stop(); assignvars(); _root.attackarray = []; stop();
Instance of Symbol 141 MovieClip in Symbol 584 MovieClip [mission3] Frame 2
onClipEvent (enterFrame) { if (_root.alliedunits <= 0) { _root.gotoAndStop("defeat3"); } }
Symbol 586 MovieClip [enemywarfactory] Frame 1
names = this._name; repairs = false; this.cacheAsBitmap = true; _root.ai.build = true; stop();
Instance of Symbol 196 MovieClip "lifebar" in Symbol 586 MovieClip [enemywarfactory] Frame 1
onClipEvent (enterFrame) { this._xscale = 290 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Instance of Symbol 188 MovieClip "selector" in Symbol 586 MovieClip [enemywarfactory] Frame 1
onClipEvent (load) { _root.attachMovie("bigdot2", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; _root.enemywarfactory = 1; _root.enemystructurearray.push(_parent._name); this._visible = false; _parent.enemy = true; _parent.aggressive = false; _root.objarray.push(_parent._name); _root.unitsarray.push(_parent._name); _parent.life = 1000; _parent.fulllife = 1000; _root.enemyarray.push(_parent._name); _parent.unittype = "war factory"; }
Symbol 586 MovieClip [enemywarfactory] Frame 2
_root.money = _root.money + 2000;
Symbol 586 MovieClip [enemywarfactory] Frame 11
_root.objarray.findandsplice(_name); _root.unitsarray.findandsplice(_name); _root[_name + "symbols"].removeMovieClip(); _root.enemyarray.findandsplice(_name); _root.enemywarfactory = 0; _root.enemystructurearray.findandsplice(_name); this.removeMovieClip(); stop();
Symbol 590 MovieClip [enemyrefinery] Frame 1
_root.attachMovie("enemyoiltruck", "enemyoiltruck" + _root.n, _root.n); _root["enemyoiltruck" + _root.n]._x = this._x; _root["enemyoiltruck" + _root.n]._y = this._y; _root.ai.oiltrucks.push("enemyoiltruck" + _root.n); _root["enemyoiltruck" + _root.n]._rotation = 0; _root.n++; this.cacheAsBitmap = true; repairs = false; stop();
Instance of Symbol 188 MovieClip "selector" in Symbol 590 MovieClip [enemyrefinery] Frame 1
onClipEvent (load) { _root.attachMovie("bigdot2", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; _root.enemyrefinery = 1; _root.enemystructurearray.push(_parent._name); this._visible = false; _parent.enemy = true; _parent.aggressive = false; _root.objarray.push(_parent._name); _root.unitsarray.push(_parent._name); _parent.life = 1700; _parent.fulllife = 1700; _root.enemyarray.push(_parent._name); _parent.unittype = "refinery"; }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 590 MovieClip [enemyrefinery] Frame 1
onClipEvent (enterFrame) { this._xscale = 400 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 590 MovieClip [enemyrefinery] Frame 2
_root.money = _root.money + 5000;
Symbol 590 MovieClip [enemyrefinery] Frame 11
_root.objarray.findandsplice(_name); _root.unitsarray.findandsplice(_name); _root.objarray.findandsplice(_name); _root.enemyarray.findandsplice(_name); _root.enemystructurearray.findandsplice(_name); _root.enemyrefinery = 0; _root[_name + "symbols"].removeMovieClip(); this._name = "nobody"; this.removeMovieClip(); stop();
Symbol 592 MovieClip [enemycomcentre] Frame 1
_root.enemycomcentre = 1; repairs = false; name = this._name; this.cacheAsBitmap = true; stop();
Instance of Symbol 188 MovieClip "selector" in Symbol 592 MovieClip [enemycomcentre] Frame 1
onClipEvent (load) { _root.attachMovie("bigdot2", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; _root.enemystructurearray.push(_parent._name); this._visible = false; _parent.enemy = true; _parent.aggressive = false; _root.objarray.push(_parent._name); _root.unitsarray.push(_parent._name); _parent.life = 2000; _parent.fulllife = 2000; _root.enemyarray.push(_parent._name); _parent.unittype = "comcentre"; }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 592 MovieClip [enemycomcentre] Frame 1
onClipEvent (enterFrame) { this._xscale = 370 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 592 MovieClip [enemycomcentre] Frame 2
_root.money = _root.money + 5000;
Symbol 592 MovieClip [enemycomcentre] Frame 11
_root.objarray.findandsplice(_name); _root.unitsarray.findandsplice(_name); _root.objarray.findandsplice(_name); _root.enemyarray.findandsplice(_name); _root.enemystructurearray.findandsplice(_name); _root.enemycomcentre = 0; _root[_name + "symbols"].removeMovieClip(); this.removeMovieClip(); stop();
Symbol 594 MovieClip [enemyservicedepot] Frame 1
_root.enemyservicedepot = 1; _root.waypoint106._x = this._x; _root.waypoint106._y = this._y; repairs = false; this.cacheAsBitmap = true; stop();
Instance of Symbol 188 MovieClip "selector" in Symbol 594 MovieClip [enemyservicedepot] Frame 1
onClipEvent (load) { _root.attachMovie("bigdot2", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; _root.enemystructurearray.push(_parent._name); this._visible = false; _parent.enemy = true; _parent.aggressive = true; _root.objarray.push(_parent._name); _root.unitsarray.push(_parent._name); _parent.life = 1000; _parent.fulllife = 1000; _root.enemyarray.push(_parent._name); _parent.unittype = "servicedepot"; }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 594 MovieClip [enemyservicedepot] Frame 1
onClipEvent (enterFrame) { this._xscale = 380 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 594 MovieClip [enemyservicedepot] Frame 2
_root.money = _root.money + 5000;
Symbol 594 MovieClip [enemyservicedepot] Frame 11
_root.objarray.findandsplice(_name); _root.unitsarray.findandsplice(_name); _root.enemyarray.findandsplice(_name); _root.enemystructurearray.findandsplice(_name); _root.enemyservicedepot = 0; _root[_name + "symbols"].removeMovieClip(); this.removeMovieClip(); stop();
Symbol 596 MovieClip [enemytechcentre] Frame 1
names = this._name; repairs = false; this.cacheAsBitmap = true; stop();
Instance of Symbol 188 MovieClip "selector" in Symbol 596 MovieClip [enemytechcentre] Frame 1
onClipEvent (load) { _root.attachMovie("bigdot2", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; _root.enemystructurearray.push(_parent._name); this._visible = false; _parent.enemy = true; _parent.aggressive = false; _root.objarray.push(_parent._name); _root.unitsarray.push(_parent._name); _parent.life = 1000; _parent.fulllife = 1000; _root.enemyarray.push(_parent._name); _parent.unittype = "techcentre"; _root.enemytechcentre = 1; }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 596 MovieClip [enemytechcentre] Frame 1
onClipEvent (enterFrame) { this._xscale = 240 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 596 MovieClip [enemytechcentre] Frame 2
_root.money = _root.money + 1500;
Symbol 596 MovieClip [enemytechcentre] Frame 11
_root.objarray.findandsplice(_name); _root.enemyarray.findandsplice(_name); _root.enemytechcentre = 0; _root.enemystructurearray.findandsplice(_name); _root[_name + "symbols"].removeMovieClip(); this._name = "ops"; this.removeMovieClip(); stop();
Symbol 598 MovieClip [servicedepot] Frame 1
_root.servicedepot = 1; this.cacheAsBitmap = true; stop();
Instance of Symbol 188 MovieClip "selector" in Symbol 598 MovieClip [servicedepot] Frame 1
onClipEvent (load) { _root.attachMovie("bigdot", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; _parent.upgrade = 0; _root.structurearray.push(_parent._name); this._visible = false; _parent.enemy = false; _parent.aggressive = true; _root.objarray.push(_parent._name); _root.unitsarray.push(_parent._name); _parent.life = 1000; _parent.fulllife = 1000; _root.friendlylist.push(_parent._name); _parent.unittype = "servicedepot"; }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 598 MovieClip [servicedepot] Frame 1
onClipEvent (enterFrame) { this._xscale = 380 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 598 MovieClip [servicedepot] Frame 2
_root.enemymoney = _root.enemymoney + 5000;
Symbol 598 MovieClip [servicedepot] Frame 11
_root.unitsarray.findandsplice(_name); _root.objarray.findandsplice(_name); _root.friendlylist.findandsplice(_name); _root.structurearray.findandsplice(_name); _root.servicedepot--; _root[_name + "symbols"].removeMovieClip(); this._name = "popp"; this.removeMovieClip(); stop();
Symbol 600 MovieClip [techcentre] Frame 1
names = this._name; this.cacheAsBitmap = true; _root.sidebar.build.techcentre.gotoAndStop(3); if ((_root.money > _root.sidebar.build.lasertank.cost) && (_root.warfactory1._x != undefined)) { if (_root.sidebar.build.lasertank._currentframe == 1) { _root.sidebar.build.lasertank.gotoAndStop(2); } } if (_root.money > _root.sidebar.build.weaponsilo.cost) { if (_root.sidebar.build.weaponsilo._currentframe == 1) { _root.sidebar.build.weaponsilo.gotoAndStop(2); } } stop();
Instance of Symbol 188 MovieClip "selector" in Symbol 600 MovieClip [techcentre] Frame 1
onClipEvent (load) { _root.attachMovie("bigdot", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; _parent.upgrade = 0; _root.structurearray.push(_parent._name); this._visible = false; _parent.enemy = false; _parent.aggressive = false; _root.objarray.push(_parent._name); _root.unitsarray.push(_parent._name); _parent.life = 1000; _parent.fulllife = 1000; _root.friendlylist.push(_parent._name); _parent.unittype = "techcentre"; }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 600 MovieClip [techcentre] Frame 1
onClipEvent (enterFrame) { this._xscale = 240 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 600 MovieClip [techcentre] Frame 2
_root.enemymoney = _root.enemymoney + 1500;
Symbol 600 MovieClip [techcentre] Frame 11
_root.objarray.findandsplice(_name); _root.unitsarray.findandsplice(_name); _root.objarray.findandsplice(_name); _root.friendlylist.findandsplice(_name); _root[_name + "symbols"].removeMovieClip(); _root.structurearray.findandsplice(_name); _root.techcentre = 0; _root.sidebar.build.techcentre.gotoAndStop(1); _root.sidebar.build.lasertank.gotoAndStop(1); if (_root.sidebar.build.weaponsilo._currentframe == 2) { _root.sidebar.build.weaponsilo.gotoAndStop(1); } this._name = ""; this.removeMovieClip(); stop();
Symbol 602 MovieClip [enemylaser] Frame 1
repairs = false; stop();
Instance of Symbol 188 MovieClip "selector" in Symbol 602 MovieClip [enemylaser] Frame 1
onClipEvent (load) { _root.attachMovie("bigdot2", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; _root.enemyturretarray.push(_parent._name); _root.enemystructurearray.push(_parent._name); this._visible = false; _parent.enemy = true; _parent.aggressive = true; _root.objarray.push(_parent._name); _root.unitsarray.push(_parent._name); _parent.life = 500; _parent.fulllife = 500; _parent.range = 360; _parent.damage = 60; _parent.firerate = 50; _root.enemyarray.push(_parent._name); _parent.unittype = "turret3"; }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 602 MovieClip [enemylaser] Frame 1
onClipEvent (enterFrame) { this._xscale = 100 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 602 MovieClip [enemylaser] Frame 2
_root.money = _root.money + 1500;
Symbol 602 MovieClip [enemylaser] Frame 11
_root.objarray.findandsplice(_name); _root.unitsarray.findandsplice(_name); _root["enemyturret" + number] = false; _root.enemyarray.findandsplice(_name); _root.structurearray.findandsplice(_name); _root.enemyturretarray.findandsplice(this._name); _root[_name + "symbols"].removeMovieClip(); this.removeMovieClip(); stop();
Symbol 609 MovieClip [enemymine] Frame 1
_root.enemymines++; stop(); this._visible = false; this.cacheAsBitmap = true; repairs = false; stop();
Instance of Symbol 188 MovieClip "selector" in Symbol 609 MovieClip [enemymine] Frame 1
onClipEvent (load) { _root.attachMovie("dot2", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; _parent.upgrade = 0; _root.enemyminearray.push(_parent._name); this._visible = false; _parent.enemy = true; _parent.aggressive = true; _root.objarray.push(_parent._name); _root.unitsarray.push(_parent._name); _parent.life = 500; _parent.fulllife = 500; _parent.damage = 250; _parent.unittype = "mine"; }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 609 MovieClip [enemymine] Frame 1
onClipEvent (enterFrame) { this._xscale = 130 * (_parent.life / _parent.fulllife); if (_parent.dummy._currentframe == 1) { if (_parent.life <= 0) { _parent.dummy.gotoAndPlay("explode"); } } }
Symbol 609 MovieClip [enemymine] Frame 2
this._visible = true;
Symbol 609 MovieClip [enemymine] Frame 25
_root.enemymines--; if (_root.soundon) { soundobj = new Sound(); soundobj.attachSound("crash"); soundobj.start(); }
Symbol 609 MovieClip [enemymine] Frame 29
i = _root.friendlylist.length - 1; while (i > -1) { current = _root.friendlylist[i]; if (_root[current].hitTest(this)) { _root[current].life = _root[current].life - damage; _root[current + "symbols"].play(); _root[current].dummy.empulse = 100; } i--; }
Symbol 609 MovieClip [enemymine] Frame 34
_root.objarray.findandsplice(_name); _root.unitsarray.findandsplice(_name); _root.objarray.findandsplice(_name); _root.enemyminearray.findandsplice(this._name); _root[_name + "symbols"].removeMovieClip(); this.removeMovieClip(); stop();
Symbol 616 MovieClip Frame 1
dx = _root[targetobj]._x - _parent._x; dy = _root[targetobj]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist > _parent.range) { targetobj = undefined; stop(); } if (tragetobj == undefined) { stop(); }
Instance of Symbol 613 MovieClip in Symbol 616 MovieClip Frame 1
/* no clip actions */
Symbol 616 MovieClip Frame 2
_root.attachMovie("patriot", "patriot" + _root.n, _root.n); _root["patriot" + _root.n]._x = _parent._x; _root["patriot" + _root.n]._y = _parent._y + 10; _root["patriot" + _root.n]._rotation = this._rotation; _root["patriot" + _root.n].damage = _parent.damage; _root["patriot" + _root.n].shellspd = _parent.shellspd; _root["patriot" + _root.n].targetobj = targetobj; _root["patriot" + _root.n].seeker = true; _root["patriot" + _root.n].firerer = _parent._name; _root.objarray.push("patriot" + _root.n); _root.n++;
Symbol 616 MovieClip Frame 5
_root.attachMovie("patriot", "patrio2t" + _root.n, _root.n); _root["patrio2t" + _root.n]._x = _parent._x; _root["patrio2t" + _root.n]._y = _parent._y; _root["patrio2t" + _root.n]._rotation = this._rotation; _root["patrio2t" + _root.n].damage = _parent.damage; _root["patrio2t" + _root.n].shellspd = _parent.shellspd; _root["patrio2t" + _root.n].targetobj = targetobj; _root["patrio2t" + _root.n].seeker = true; _root["patrio2t" + _root.n].firerer = _parent._name; _root.objarray.push("patrio2t" + _root.n); _root.n++;
Symbol 616 MovieClip Frame 8
_root.attachMovie("patriot", "patrio3t" + _root.n, _root.n); _root["patrio3t" + _root.n]._x = _parent._x; _root["patrio3t" + _root.n]._y = _parent._y - 10; _root["patrio3t" + _root.n]._rotation = this._rotation; _root["patrio3t" + _root.n].damage = _parent.damage; _root["patrio3t" + _root.n].shellspd = _parent.shellspd; _root["patrio3t" + _root.n].targetobj = targetobj; _root["patrio3t" + _root.n].seeker = true; _root["patrio3t" + _root.n].firerer = _parent._name; _root.objarray.push("patrio3t" + _root.n); _root.n++;
Symbol 616 MovieClip Frame 16
if ((_root[targetobj].life < 0) || (_root[targetobj].life == undefined)) { targetobj = undefined; } stop();
Instance of Symbol 613 MovieClip in Symbol 616 MovieClip Frame 16
onClipEvent (enterFrame) { n++; if (n > _parent._parent.firerate) { _parent.gotoAndStop(1); } } onClipEvent (load) { n = 0; }
Symbol 616 MovieClip Frame 20
gotoAndStop ("normal");
Symbol 617 MovieClip [enemymultiple] Frame 1
if (targetobj == undefined) { stop(); } repairs = false;
Instance of Symbol 188 MovieClip "selector" in Symbol 617 MovieClip [enemymultiple] Frame 1
onClipEvent (load) { _root.attachMovie("bigdot2", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; _root.enemyturretarray.push(_parent._name); _root.enemystructurearray.push(_parent._name); this._visible = false; _parent.enemy = true; _parent.aggressive = true; _root.objarray.push(_parent._name); _root.unitsarray.push(_parent._name); _parent.life = 500; _parent.fulllife = 500; _parent.range = 400; _parent.damage = 15; _parent.firerate = 30; _parent.shellspd = 10; _root.enemyarray.push(_parent._name); _parent.unittype = "turret2"; }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 617 MovieClip [enemymultiple] Frame 1
onClipEvent (enterFrame) { this._xscale = 110 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 617 MovieClip [enemymultiple] Frame 2
_root.money = _root.money + 1500;
Symbol 617 MovieClip [enemymultiple] Frame 11
_root.objarray.findandsplice(_name); _root.unitsarray.findandsplice(_name); _root["enemyturret" + number] = false; _root.enemyarray.findandsplice(_name); _root.enemystructurearray.findandsplice(_name); _root.enemyturretarray.findandsplice(this._name); _root[_name + "symbols"].removeMovieClip(); this.removeMovieClip(); stop();
Symbol 619 MovieClip [patriotmiss] Frame 1
if (targetobj == undefined) { stop(); }
Instance of Symbol 188 MovieClip "selector" in Symbol 619 MovieClip [patriotmiss] Frame 1
onClipEvent (load) { _root.attachMovie("bigdot", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; _parent.upgrade = 0; _root.turretarray.push(_parent._name); _root.structurearray.push(_parent._name); this._visible = false; _parent.enemy = false; _parent.aggressive = true; _root.objarray.push(_parent._name); _root.unitsarray.push(_parent._name); _parent.life = 500; _parent.shellspd = 10; _parent.fulllife = 500; _parent.range = 400; _parent.damage = 15; _parent.firerate = 30; _root.friendlylist.push(_parent._name); _parent.unittype = "turret2"; }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 619 MovieClip [patriotmiss] Frame 1
onClipEvent (enterFrame) { this._xscale = 110 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 619 MovieClip [patriotmiss] Frame 2
_root.enemymoney = _root.enemymoney + 1500;
Symbol 619 MovieClip [patriotmiss] Frame 11
_root.objarray.findandsplice(_name); _root.unitsarray.findandsplice(_name); _root[_name + "symbols"].removeMovieClip(); _root.friendlylist.findandsplice(_name); _root.structurearray.findandsplice(_name); _root.turretarray.findandsplice(this._name); this.removeMovieClip(); stop();
Symbol 621 MovieClip [warfactory] Frame 1
_root.warfactory = 1; this.cacheAsBitmap = true; _root.rallypoint._x = this._x; _root.rallypoint._y = this._y; _root.sidebar.build.warfactory.gotoAndStop(3); if (_root.money > _root.sidebar.build.light.cost) { if (_root.sidebar.build.light._currentframe == 1) { _root.sidebar.build.light.gotoAndStop(2); } } if ((_root.money > _root.sidebar.build.lasertank.cost) && (_root.techcentre1._x != undefined)) { if (_root.sidebar.build.lasertank._currentframe == 1) { _root.sidebar.build.lasertank.gotoAndStop(2); } } if (_root.money > _root.sidebar.build.heavy.cost) { if (_root.sidebar.build.heavy._currentframe == 1) { _root.sidebar.build.heavy.gotoAndStop(2); } } if (_root.money > _root.sidebar.build.rocket.cost) { if (_root.sidebar.build.rocket._currentframe == 1) { _root.sidebar.build.rocket.gotoAndStop(2); } } if (_root.money > _root.sidebar.build.humvee.cost) { if (_root.sidebar.build.humvee._currentframe == 1) { _root.sidebar.build.humvee.gotoAndStop(2); } } if (_root.money > _root.sidebar.build.artillery.cost) { if (_root.sidebar.build.artillery._currentframe == 1) { _root.sidebar.build.artillery.gotoAndStop(2); } } if (_root.money > _root.sidebar.build.oiltruck.cost) { if (_root.sidebar.build.oiltruck._currentframe == 1) { _root.sidebar.build.oiltruck.gotoAndStop(2); } } if (_root.money > _root.sidebar.build.techcentre.cost) { if (_root.sidebar.build.techcentre._currentframe == 1) { _root.sidebar.build.techcentre.gotoAndStop(2); } } stop();
Instance of Symbol 188 MovieClip "selector" in Symbol 621 MovieClip [warfactory] Frame 1
onClipEvent (load) { _root.attachMovie("bigdot", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; _root.structurearray.push(_parent._name); this._visible = false; _parent.enemy = false; _parent.aggressive = true; _root.objarray.push(_parent._name); _root.unitsarray.push(_parent._name); _parent.life = 1000; _parent.fulllife = 1000; _root.friendlylist.push(_parent._name); _parent.unittype = "war factory"; }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 621 MovieClip [warfactory] Frame 1
onClipEvent (enterFrame) { this._xscale = 290 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 621 MovieClip [warfactory] Frame 2
_root.sidebar.build.light.gotoAndStop(1); _root.sidebar.build.humvee.gotoAndStop(1); _root.sidebar.build.heavy.gotoAndStop(1); _root.sidebar.build.rocket.gotoAndStop(1); _root.sidebar.build.artillery.gotoAndStop(1); _root.sidebar.build.oiltruck.gotoAndStop(1); _root.sidebar.build.lasertank.gotoAndStop(1); _root.sidebar.build.buildlist = []; _root.enemymoney = _root.enemymoney + 2000;
Symbol 621 MovieClip [warfactory] Frame 11
_root.objarray.findandsplice(_name); _root.unitsarray.findandsplice(_name); _root.friendlylist.findandsplice(_name); _root.rallypoint._y = -100; _root.rallypoint._x = -100; _root[_name + "symbols"].removeMovieClip(); _root.structurearray.findandsplice(_name); _root.warfactory = 0; _root.sidebar.calccost(); _root.sidebar.build.warfactory.gotoAndStop(1); if (_root.sidebar.build.techcentre._currentframe == 2) { _root.sidebar.build.techcentre.gotoAndStop(1); } this._name = "noob"; this.removeMovieClip(); stop();
Symbol 623 MovieClip [refinery] Frame 1
if (!(_root.nooiltruck === true)) { _root.attachMovie("oiltruck", "oiltruck" + _root.n, _root.n); _root["oiltruck" + _root.n]._x = this._x; _root["oiltruck" + _root.n]._y = this._y; _root["oiltruck" + _root.n]._rotation = 0; } if (_root.money > _root.sidebar.build.servicedepot.cost) { if (_root.sidebar.build.servicedepot._currentframe == 1) { _root.sidebar.build.servicedepot.gotoAndStop(2); } } _root.sidebar.build.refinery.gotoAndStop(3); _root.n++; stop();
Instance of Symbol 188 MovieClip "selector" in Symbol 623 MovieClip [refinery] Frame 1
onClipEvent (load) { _root.attachMovie("bigdot", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; _parent.upgrade = 0; _root.refinery = 1; _root.structurearray.push(_parent._name); this._visible = false; _parent.enemy = false; _parent.aggressive = false; _root.objarray.push(_parent._name); _root.unitsarray.push(_parent._name); _parent.life = 1700; _parent.fulllife = 1700; _root.friendlylist.push(_parent._name); _parent.unittype = "refinery"; }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 623 MovieClip [refinery] Frame 1
onClipEvent (enterFrame) { this._xscale = 400 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 623 MovieClip [refinery] Frame 2
_root.enemymoney = _root.enemymoney + 5000; if (_root.soundon) { soundobj = new Sound(); soundobj.attachSound("crash"); soundobj.start(); }
Symbol 623 MovieClip [refinery] Frame 11
_root.objarray.findandsplice(_name); _root.unitsarray.findandsplice(_name); _root.objarray.findandsplice(_name); _root.friendlylist.findandsplice(_name); _root.structurearray.findandsplice(_name); _root[_name + "symbols"].removeMovieClip(); this._name = "no2ob"; _root.refinery = 0; if (_root.sidebar.build.servicedepot._currentframe == 2) { _root.sidebar.build.servicedepot.gotoAndStop(1); } _root.sidebar.build.refinery.gotoAndStop(1); this.removeMovieClip(); stop();
Symbol 625 MovieClip [comcentre] Frame 1
_root.comcentre = 1; this.cacheAsBitmap = true; _root.sidebar.radarscreen.gotoAndStop(2); _root.sidebar.build.comcentre.gotoAndStop(3); if (_root.sidebar._visible) { unitsarray = _root.unitsarray.concat(_root.oilarray); i = unitsarray.length - 1; while (i > -1) { current = unitsarray[i]; _root[current + "symbols"]._visible = true; i--; } _root.box6._visible = true; } if (_root.money > _root.sidebar.build.dozer.cost) { if (_root.sidebar.build.dozer._currentframe == 1) { _root.sidebar.build.dozer.gotoAndStop(2); } } if (_root.money > _root.sidebar.build.refinery.cost) { if (_root.sidebar.build.refinery._currentframe == 1) { _root.sidebar.build.refinery.gotoAndStop(2); } } if (_root.money > _root.sidebar.build.warfactory.cost) { if (_root.sidebar.build.warfactory._currentframe == 1) { _root.sidebar.build.warfactory.gotoAndStop(2); } } stop();
Instance of Symbol 188 MovieClip "selector" in Symbol 625 MovieClip [comcentre] Frame 1
onClipEvent (load) { _root.attachMovie("bigdot", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; _parent.upgrade = 0; _root.structurearray.push(_parent._name); this._visible = false; _parent.enemy = false; _parent.aggressive = true; _root.objarray.push(_parent._name); _root.unitsarray.push(_parent._name); _parent.life = 2000; _parent.fulllife = 2000; _root.friendlylist.push(_parent._name); _parent.unittype = "comcentre"; }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 625 MovieClip [comcentre] Frame 1
onClipEvent (enterFrame) { this._xscale = 370 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 625 MovieClip [comcentre] Frame 2
_root.enemymoney = _root.enemymoney + 5000; _root.sidebar.build.dozer.gotoAndStop(1); if (_root.soundon) { soundobj = new Sound(); soundobj.attachSound("crash"); soundobj.start(); }
Symbol 625 MovieClip [comcentre] Frame 11
_root.objarray.findandsplice(_name); _root.sidebar.radarscreen.gotoAndStop(1); _root.unitsarray.findandsplice(_name); _root.friendlylist.findandsplice(_name); _root.structurearray.findandsplice(_name); _root.comcentre--; _root.sidebar.build.comcentre.gotoAndStop(1); unitsarray = _root.unitsarray.concat(_root.oilarray); i = unitsarray.length - 1; while (i > -1) { current = unitsarray[i]; _root[current + "symbols"]._visible = false; i--; } _root.box6._visible = false; _root[_name + "symbols"].removeMovieClip(); this._name = "noo2b"; this.removeMovieClip(); stop();
Symbol 630 MovieClip [enemyconstruction2] Frame 1
stop();
Instance of Symbol 188 MovieClip "selector" in Symbol 630 MovieClip [enemyconstruction2] Frame 1
onClipEvent (load) { _root.attachMovie("bigdot2", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; _root.enemystructurearray.push(_parent._name); this._visible = false; _parent.enemy = true; _parent.aggressive = false; _root.objarray.push(_parent._name); _root.unitsarray.push(_parent._name); _parent.life = 200; _parent.fulllife = 1000; _root.enemyarray.push(_parent._name); timer = 0; _parent.unittype = "construction"; _parent.aggressive = true; _parent.percent = 0; _root[_parent.dozer].aigoto(_parent._x, _parent._y, false); _root[_parent.dozer].targetbuild = _parent._name; _root[_parent.dozer].build = true; _root["enemyturret" + _parent.number] = true; } onClipEvent (enterFrame) { if ((_root[_parent.dozer].life <= 0) || (_root[_parent.dozer].life == undefined)) { _parent.gotoAndPlay("explode"); } }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 630 MovieClip [enemyconstruction2] Frame 1
onClipEvent (enterFrame) { this._xscale = 100 * (_parent.life / _parent.fulllife); if (_parent._currentframe == 1) { if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } } }
Symbol 630 MovieClip [enemyconstruction2] Frame 2
_root.attachMovie(structure, structure + _root.n, _root.n - 1000); if (structure == "enemymine") { _root[dozer].aigoto(_root.waypoint106._x, _root.waypoint106._y, false); } _root[structure + _root.n]._x = this._x; _root[structure + _root.n]._y = this._y; _root[structure + _root.n].number = number; _root.n++; _root.objarray.findandsplice(_name); _root.unitsarray.findandsplice(_name); _root.objarray.findandsplice(_name); _root.enemyarray.findandsplice(_name); _root.sidebar.calccost(); _root[_name + "symbols"].removeMovieClip(); this.removeMovieClip();
Symbol 630 MovieClip [enemyconstruction2] Frame 3
Symbol 630 MovieClip [enemyconstruction2] Frame 12
_root.objarray.findandsplice(_name); if (structure == "enemymine") { _root[dozer].aigoto(_root.waypoint106._x, _root.waypoint106._y, false); } _root.unitsarray.findandsplice(_name); _root["enemyturret" + number] = false; _root.enemyarray.findandsplice(_name); _root.enemystructurearray.findandsplice(_name); _root.sidebar.calccost(); _root[_name + "symbols"].removeMovieClip(); this.removeMovieClip(); stop();
Symbol 632 MovieClip [dot] Frame 1
if (_root.comcentre1.life == undefined) { this._visible = false; } stop();
Symbol 632 MovieClip [dot] Frame 6
gotoAndStop (1);
Symbol 633 MovieClip [light] Frame 1
stop();
Instance of Symbol 186 MovieClip "dummy" in Symbol 633 MovieClip [light] Frame 1
onClipEvent (load) { _root.attachMovie("dot", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; _parent.upgrade = 0; _parent.auto = false; _parent.unittype = "light"; _parent.shell2 = false; _parent.hitonly = false; _parent.damage = 20; _parent.shellspd = 10; _parent.aggressive = true; _root.friendlylist.push(_parent._name); _parent.enemy = false; _parent.num = _root.num; _root.num++; _parent.selected1 = false; _root.unitsarray.push(_parent._name); _root.objarray.push(_parent._name); _parent.life = 300; nohit = 0; _parent.avoid = true; _parent.fulllife = 300; _parent.speed = 3; _parent.firerate = 5; _parent.walking = false; _parent.fireing = false; _parent.attack = false; _parent.range = 200; empulse = 0; as = 0; left = 1; if (_root.warfactory1._x != undefined) { _parent.aigoto(_root.rallypoint._x, _root.rallypoint._y, false); } } onClipEvent (enterFrame) { if (empulse > 0) { empulse--; } if (empulse == 0) { if (_parent.attack) { if (_root[_parent.targetobj].life <= 0) { obstacle = false; _parent.targetobj = undefined; _parent.walking = false; _parent.attack = false; } _root[flag]._x = _root[_parent.targetobj]._x; _root[flag]._y = _root[_parent.targetobj]._y; dx = _root[_parent.targetobj]._x - _parent._x; dy = _root[_parent.targetobj]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < _parent.range) { obstacle = false; _parent.walking = false; _parent.fireing = true; _parent.turret._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); if (_parent.turret._currentframe == 1) { _parent.turret.play(); _parent.turret.targetobj = _parent.targetobj; } if (_root[_parent.targetobj].life <= 0) { _parent.targetobj = undefined; _parent.attack = false; _parent.fireing = false; } } } if (_parent.walking == true) { _parent.fireing = false; hit = false; flag = "flag" + _parent._name; if (_parent.locx == undefined) { _parent.locx = 0; _parent.locy = 0; } if (!obstacle) { dx = (_root[flag]._x - _parent._x) + _parent.locx; dy = (_root[flag]._y - _parent._y) + _parent.locy; this._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); } if (obstacle) { dxn = _root[flag2]._x - _parent._x; dyn = _root[flag2]._y - _parent._y; this._rotation = (Math.atan2(dyn, dxn) * 360) / (Math.PI*2); } rads = (this._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * _parent.speed); _parent._y = _parent._y + (Math.sin(rads) * _parent.speed); _parent.movesym(); nohit++; if (nohit == 20) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (this.hitTest(_root[current])) { if (_parent.num > _root[current].num) { if (this._rotation > 0) { _parent._x = _parent._x + (_parent._width / 2); _parent._y = _parent._y + (_parent._height / 2); } if (this._rotation < 0) { _parent._x = _parent._x - (_parent._width / 2); _parent._y = _parent._y - (_parent._height / 2); } break; } } i--; } nohit = 0; } if (obstacle) { dx = _root[flag2]._x - _parent._x; dy = _root[flag2]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 10) { obstacle = false; } } if (!obstacle) { dx = _root[flag]._x - _parent._x; dy = _root[flag]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 10) { _root[flag].removeMovieClip(); _root.objarray.findandsplice(flag); _root.flagsarray.findandsplice(flag); _parent.walking = false; } } } if (_parent.fireing) { dx = _root[_parent.targetobj]._x - _parent._x; dy = _root[_parent.targetobj]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist > (_parent.range * 1.5)) { _parent.walking = true; _root[flag]._x = _root[_parent.targetobj]._x; _root[flag]._y = _root[_parent.targetobj]._y; _parent.fireing = false; } } if (_parent.fireing) { _parent.turret._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); if (_parent.turret._currentframe == 1) { _parent.turret.play(); _parent.turret.targetobj = _parent.targetobj; } if (_root[_parent.targetobj].life <= 0) { _parent.targetobj = undefined; _parent.fireing = false; _parent.attack = false; } if (!_parent.walking) { if (_parent.avoid) { as++; if (!obstacle) { if (left > 0) { this._rotation = ((Math.atan2(dy, dx) * 360) / (Math.PI*2)) - 90; } if (left < 0) { this._rotation = ((Math.atan2(dy, dx) * 360) / (Math.PI*2)) + 135; } if (as > 50) { as = 0; left = -left; } } if (obstacle) { dxn = _root[flag2]._x - _parent._x; dyn = _root[flag2]._y - _parent._y; this._rotation = (Math.atan2(dyn, dxn) * 360) / (Math.PI*2); } rads = (this._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * _parent.speed); _parent._y = _parent._y + (Math.sin(rads) * _parent.speed); _parent.movesym(); } } if (_parent.hitTest(_root.back.tops)) { _parent._y = _parent._y + 20; } if (_parent.hitTest(_root.back.bottoms)) { _parent._y = _parent._y - 20; } if (_parent.hitTest(_root.back.lefts)) { _parent._x = _parent._x + 20; } if (_parent.hitTest(_root.back.rights)) { _parent._x = _parent._x - 20; } } } }
Instance of Symbol 188 MovieClip "selector" in Symbol 633 MovieClip [light] Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 633 MovieClip [light] Frame 1
onClipEvent (enterFrame) { this._xscale = 90 * (_parent.life / _parent.fulllife); if (_parent.dummy._currentframe == 1) { if (_parent.life <= 0) { _parent.dummy.gotoAndPlay("explode"); } } }
Symbol 633 MovieClip [light] Frame 2
stop();
Symbol 634 MovieClip [heavy] Frame 1
stop();
Instance of Symbol 202 MovieClip "dummy" in Symbol 634 MovieClip [heavy] Frame 1
onClipEvent (load) { _root.attachMovie("dot", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; _parent.upgrade = 0; _parent.auto = false; _parent.unittype = "heavy"; _parent.crush = false; _parent.missile = false; _parent.hitonly = false; _parent.avoid = false; _parent.damage = 30; _parent.shellspd = 12; _parent.aggressive = true; _root.friendlylist.push(_parent._name); _parent.enemy = false; _parent.num = _root.num; _root.num++; nohit = 0; _parent.selected1 = false; _root.unitsarray.push(_parent._name); _root.objarray.push(_parent._name); _parent.life = 600; _parent.fulllife = 600; _parent.speed = 1; _parent.firerate = 20; _parent.walking = false; _parent.fireing = false; _parent.attack = false; _parent.range = 200; as = 0; left = 1; empulse = 0; if (_root.warfactory1._x != undefined) { _parent.aigoto(_root.rallypoint._x, _root.rallypoint._y, false); } } onClipEvent (enterFrame) { if (empulse > 0) { empulse--; } if (empulse == 0) { if (_parent.attack) { if (_root[_parent.targetobj].life <= 0) { obstacle = false; _parent.targetobj = undefined; _parent.walking = false; _parent.attack = false; } _root[flag]._x = _root[_parent.targetobj]._x; _root[flag]._y = _root[_parent.targetobj]._y; dx = _root[_parent.targetobj]._x - _parent._x; dy = _root[_parent.targetobj]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < _parent.range) { obstacle = false; _parent.walking = false; _parent.fireing = true; _parent.turret._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); if (_parent.turret._currentframe == 1) { _parent.turret.play(); _parent.turret.targetobj = _parent.targetobj; } if (_root[_parent.targetobj].life <= 0) { _parent.targetobj = undefined; _parent.attack = false; _parent.fireing = false; } } } if (_parent.walking == true) { _parent.fireing = false; hit = false; flag = "flag" + _parent._name; if (_parent.locx == undefined) { _parent.locx = 0; _parent.locy = 0; } if (!obstacle) { dx = (_root[flag]._x - _parent._x) + _parent.locx; dy = (_root[flag]._y - _parent._y) + _parent.locy; this._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); } if (obstacle) { dxn = _root[flag2]._x - _parent._x; dyn = _root[flag2]._y - _parent._y; this._rotation = (Math.atan2(dyn, dxn) * 360) / (Math.PI*2); } rads = (this._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * _parent.speed); _parent._y = _parent._y + (Math.sin(rads) * _parent.speed); _parent.movesym(); nohit++; if (nohit == 20) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (this.hitTest(_root[current])) { if (_parent.num > _root[current].num) { if (this._rotation > 0) { _parent._x = _parent._x + (0.2 * _parent._width); _parent._y = _parent._y + (0.2 * _parent._height); } if (this._rotation < 0) { _parent._x = _parent._x - (0.2 * _parent._width); _parent._y = _parent._y - (0.2 * _parent._height); } } } i--; } nohit = 0; } if (obstacle) { dx = _root[flag2]._x - _parent._x; dy = _root[flag2]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 10) { obstacle = false; } } if (!obstacle) { dx = _root[flag]._x - _parent._x; dy = _root[flag]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 10) { _root[flag].removeMovieClip(); _root.objarray.findandsplice(flag); _root.flagsarray.findandsplice(flag); _parent.walking = false; } } } if (_parent.fireing) { dx = _root[_parent.targetobj]._x - _parent._x; dy = _root[_parent.targetobj]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist > (_parent.range * 1.5)) { _parent.walking = true; _root[flag]._x = _root[_parent.targetobj]._x; _root[flag]._y = _root[_parent.targetobj]._y; _parent.fireing = false; } } if (_parent.fireing) { _parent.turret._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); if (_parent.turret._currentframe == 1) { _parent.turret.play(); _parent.turret.targetobj = _parent.targetobj; } if (_root[_parent.targetobj].life <= 0) { _parent.targetobj = undefined; _parent.fireing = false; _parent.attack = false; } if (!_parent.walking) { if (_parent.crush) { this._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); rads = (this._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * _parent.speed); _parent._y = _parent._y + (Math.sin(rads) * _parent.speed); _parent.movesym(); if ((dist < 10) && (_root[_parent.targetobj].auto._x == undefined)) { _root[_parent.targetobj].life = -1; _parent._x = _root[_parent.targetobj]._x; _parent._y = _root[_parent.targetobj]._y; } } if (_parent.avoid) { if (!obstacle) { as++; if (left > 0) { if (!_parent.crush) { this._rotation = ((Math.atan2(dy, dx) * 360) / (Math.PI*2)) + 90; } } if (left < 0) { this._rotation = -((Math.atan2(dy, dx) * 360) / (Math.PI*2)); } if (as > 100) { as = 0; } } if (obstacle) { dxn = _root[flag2]._x - _parent._x; dyn = _root[flag2]._y - _parent._y; this._rotation = (Math.atan2(dyn, dxn) * 360) / (Math.PI*2); } rads = (this._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * _parent.speed); _parent._y = _parent._y + (Math.sin(rads) * _parent.speed); _parent.movesym(); } } if (_parent.hitTest(_root.back.tops)) { _parent._y = _parent._y + 20; } if (_parent.hitTest(_root.back.bottoms)) { _parent._y = _parent._y - 20; } if (_parent.hitTest(_root.back.lefts)) { _parent._x = _parent._x + 20; } if (_parent.hitTest(_root.back.rights)) { _parent._x = _parent._x - 20; } } } }
Instance of Symbol 188 MovieClip "selector" in Symbol 634 MovieClip [heavy] Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 634 MovieClip [heavy] Frame 1
onClipEvent (enterFrame) { this._xscale = 115 * (_parent.life / _parent.fulllife); if (_parent.dummy._currentframe == 1) { if (_parent.life <= 0) { _parent.dummy.gotoAndPlay("explode"); } } }
Symbol 634 MovieClip [heavy] Frame 2
stop();
Symbol 635 MovieClip [artillery] Frame 1
stop();
Instance of Symbol 215 MovieClip "dummy" in Symbol 635 MovieClip [artillery] Frame 1
onClipEvent (load) { _root.attachMovie("dot", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; _parent.upgrade = 0; _parent.deploy = function () { this.walking = false; this.dummy.gotoAndPlay("deploying"); this.dummy._rotation = 90; }; _parent.unittype = "artillery"; _parent.accurate = false; _parent.nuke = false; _parent.emp = false; _parent.damage = 35; _parent.aggressive = false; _root.friendlylist.push(_parent._name); _parent.enemy = false; _parent.num = _root.num; _root.num++; _parent.selected1 = false; _root.unitsarray.push(_parent._name); _root.objarray.push(_parent._name); _parent.life = 300; _parent.fulllife = 300; _parent.speed = 1; _parent.firerate = 30; _parent.walking = false; _parent.fireing = false; _parent.attack = false; _parent.range = 550; empulse = 0; n = 0; if (_root.warfactory1._x != undefined) { _parent.aigoto(_root.rallypoint._x, _root.rallypoint._y, false); } } onClipEvent (enterFrame) { if (empulse > 0) { empulse--; } if (empulse == 0) { if (this._currentframe == 10) { n++; if (n == 10) { n = 0; if (!_parent.fireing) { n = _root.enemyarray.length - 1; while (n > -1) { current2 = _root.enemyarray[n]; dx = -(_parent._x - _root[current2]._x); dy = -(_parent._y - _root[current2]._y); dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < _parent.range) { _parent.targetobj = current2; _parent.fireing = true; _parent.turret._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); if (_parent.turret._currentframe == 1) { _parent.turret.play(); _parent.turret.targetobj = _parent.targetobj; } hit = true; } n--; } } } } if (_parent.attack) { _root[flag]._x = _root[_parent.targetobj]._x; _root[flag]._y = _root[_parent.targetobj]._y; dx = _root[_parent.targetobj]._x - _parent._x; dy = _root[_parent.targetobj]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < _parent.range) { obstacle = false; if (this._currentframe == 1) { _parent.walking = false; this._rotation = 90; gotoAndPlay ("deploying"); _parent.fireing = true; } } } if (_parent.walking == true) { dx = _root[flag]._x - _parent._x; dy = _root[flag]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); rangereq = 10; if (_parent.attack) { rangereq = _parent.range; } if (((this._currentframe > 1) && (_parent.life > 0)) && (dist > rangereq)) { gotoAndStop (1); _parent.turret.gotoAndStop(1); } if (this._currentframe == 1) { _parent.fireing = false; hit = false; flag = "flag" + _parent._name; if (!obstacle) { dx = _root[flag]._x - _parent._x; dy = _root[flag]._y - _parent._y; this._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); } if (obstacle) { dxn = _root[flag2]._x - _parent._x; dyn = _root[flag2]._y - _parent._y; this._rotation = (Math.atan2(dyn, dxn) * 360) / (Math.PI*2); } rads = (this._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * _parent.speed); _parent._y = _parent._y + (Math.sin(rads) * _parent.speed); _parent.movesym(); i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (this.hitTest(_root[current])) { if (_parent.num > this.num) { if (this._rotation > 0) { _parent._x = _parent._x + (0.2 * _parent._width); _parent._y = _parent._y + (0.2 * _parent._height); } if (this._rotation < 0) { _parent._x = _parent._x - (0.2 * _parent._width); _parent._y = _parent._y - (0.2 * _parent._height); } } } i--; } if (obstacle) { dx = _root[flag2]._x - _parent._x; dy = _root[flag2]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 10) { obstacle = false; } } if (!obstacle) { dx = _root[flag]._x - _parent._x; dy = _root[flag]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 10) { _root[flag].removeMovieClip(); _root.objarray.findandsplice(flag); _root.flagsarray.findandsplice(flag); _parent.walking = false; } } } } if (_parent.fireing) { dx = _root[_parent.targetobj]._x - _parent._x; dy = _root[_parent.targetobj]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < _parent.range) { _parent.turret._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); if (_parent.turret._currentframe == 2) { _parent.turret.play(); _parent.turret.targetobj = _parent.targetobj; } if (_root[_parent.targetobj].life <= 0) { _parent.targetobj = undefined; _parent.fireing = false; _parent.attack = false; } } else { _parent.targetobj = undefined; _parent.fireing = false; _parent.attack = false; } } } }
Instance of Symbol 188 MovieClip "selector" in Symbol 635 MovieClip [artillery] Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 635 MovieClip [artillery] Frame 1
onClipEvent (enterFrame) { this._xscale = 110 * (_parent.life / _parent.fulllife); if (_parent.dummy._currentframe <= 10) { if (_parent.life <= 0) { _parent.dummy.gotoAndPlay("explode"); } } }
Symbol 635 MovieClip [artillery] Frame 2
stop();
Symbol 637 MovieClip Frame 1
stop();
Symbol 637 MovieClip Frame 2
if (_parent.enemy) { _root.kills++; } if (!_parent.enemy) { _root.losses++; } dozers.findandsplice(_parent._name); if (_root.soundon) { soundobj = new Sound(); soundobj.attachSound("crash"); soundobj.start(); }
Symbol 637 MovieClip Frame 8
_root.unitsarray.findandsplice(_parent._name); _root.enemyarray.findandsplice(_parent._name); _root.friendlylist.findandsplice(_parent._name); _root.objarray.findandsplice("flag" + _parent._name); _root.selectedarray.findandsplice(_parent._name); _root.flagsarray.findandsplice("flag" + _parent._name); _root.sidebar.calccost(); _root["flag" + _parent._name].removeMovieClip(); _root[_parent._name + "symbols"].removeMovieClip(); _parent.nextFrame(); _parent.removeMovieClip(); stop();
Symbol 638 MovieClip [dozer] Frame 1
stop();
Instance of Symbol 637 MovieClip "dummy" in Symbol 638 MovieClip [dozer] Frame 1
onClipEvent (load) { _root.attachMovie("dot", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; _parent.upgrade = 0; _parent.auto = false; _root.dozerarray.push(_parent._name); _parent.unittype = "dozer"; _parent.aggressive = false; _root.friendlylist.push(_parent._name); _parent.enemy = false; _parent.num = _root.num; _root.num++; _parent.targetbuild = undefined; _parent.selected1 = false; _root.unitsarray.push(_parent._name); _root.objarray.push(_parent._name); _parent.life = 450; _parent.fulllife = 450; _parent.speed = 3; building = false; nohit = 0; _parent.walking = false; _parent.build = false; empulse = 0; if (_root.comcentre1._x != undefined) { _parent.aigoto(_root.comcentre1._x, _root.comcentre1._y + 100, false); } _parent.aibuild = function (what) { }; } onClipEvent (enterFrame) { if (empulse > 0) { empulse--; } if (empulse == 0) { if (_parent.build) { if (_root[_parent.targetbuild].life == undefined) { obstacle = false; buidling = false; _parent.build = false; _parent.walking = false; _parent.targetbuild = undefined; } } if (building) { _root[_parent.targetbuild].percent = _root[_parent.targetbuild].percent + (0.25 * _root[_parent.targetbuild].buildrate); _root[_parent.targetbuild].life = _root[_parent.targetbuild].life + (2.4 * _root[_parent.targetbuild].buildrate); if (_root[_parent.targetbuild].percent >= 100) { _root[_parent.targetbuild].nextFrame(); buidling = false; _parent.build = false; } } if (_parent.walking == true) { _parent.fireing = false; hit = false; flag = "flag" + _parent._name; if (_parent.build) { if (!obstacle) { dx = _root[_parent.targetbuild]._x - _parent._x; dy = _root[_parent.targetbuild]._y - _parent._y; this._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); } if (obstacle) { dxn = _root[flag2]._x - _parent._x; dyn = _root[flag2]._y - _parent._y; this._rotation = (Math.atan2(dyn, dxn) * 360) / (Math.PI*2); } _root[_parent.targetbuild].percent = 0; if (_root[_parent.targetbuild].life > 100) { _root[_parent.targetbuild].life = 100; } } if (!_parent.build) { if (!obstacle) { dx = _root[flag]._x - _parent._x; dy = _root[flag]._y - _parent._y; this._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); } if (obstacle) { dxn = _root[flag2]._x - _parent._x; dyn = _root[flag2]._y - _parent._y; this._rotation = (Math.atan2(dyn, dxn) * 360) / (Math.PI*2); } } rads = (this._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * _parent.speed); _parent._y = _parent._y + (Math.sin(rads) * _parent.speed); _parent.movesym(); nohit++; if (nohit == 20) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (this.hitTest(_root[current])) { if (_parent.num > _root[current].num) { if (this._rotation > 0) { _parent._x = _parent._x + (0.2 * _parent._width); _parent._y = _parent._y + (0.2 * _parent._height); } if (this._rotation < 0) { _parent._x = _parent._x - (0.2 * _parent._width); _parent._y = _parent._y - (0.2 * _parent._height); } } } i--; } nohit = 0; } if (this.hitTest(_root[flag2])) { obstacle = false; } if (_parent.build && (_root[_parent.targetbuild]._x == undefined)) { _root[flag].removeMovieClip(); obstacle = false; _root.objarray.findandsplice(flag); _root.flagsarray.findandsplice(flag); _parent.walking = false; _parent.build = false; } if (this.hitTest(_root[flag]) && (!_parent.build)) { _root[flag].removeMovieClip(); obstacle = false; _root.objarray.findandsplice(flag); _root.flagsarray.findandsplice(flag); _parent.walking = false; } if (this.hitTest(_root[_parent.targetbuild]) && (_parent.build)) { _root[flag].removeMovieClip(); obstacle = false; _root.objarray.findandsplice(flag); _root.flagsarray.findandsplice(flag); _parent.walking = false; building = true; } } } }
Instance of Symbol 188 MovieClip "selector" in Symbol 638 MovieClip [dozer] Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 638 MovieClip [dozer] Frame 1
onClipEvent (enterFrame) { this._xscale = 85 * (_parent.life / _parent.fulllife); if (_parent.dummy._currentframe == 1) { if (_parent.life <= 0) { _parent.dummy.gotoAndPlay("explode"); } } }
Symbol 638 MovieClip [dozer] Frame 2
stop();
Symbol 639 MovieClip [rocket] Frame 1
stop();
Instance of Symbol 229 MovieClip "dummy" in Symbol 639 MovieClip [rocket] Frame 1
onClipEvent (load) { _root.attachMovie("dot", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; _parent.upgrade = 0; _parent.unittype = "rocket"; _parent.seeker = false; _parent.hitonly = false; _parent.blast = false; _parent.miss = 1; _parent.damage = 50; _parent.shellspd = 3; _parent.avoid = false; _parent.aggressive = true; _root.friendlylist.push(_parent._name); _parent.enemy = false; _parent.num = _root.num; _root.num++; nohit = 0; _parent.selected1 = false; _root.unitsarray.push(_parent._name); _root.objarray.push(_parent._name); _parent.life = 250; _parent.fulllife = 250; _parent.speed = 2; _parent.firerate = 25; _parent.walking = false; _parent.fireing = false; _parent.attack = false; _parent.range = 350; as = 0; left = 1; empulse = 0; if (_root.warfactory1._x != undefined) { _parent.aigoto(_root.rallypoint._x, _root.rallypoint._y, false); } } onClipEvent (enterFrame) { if (empulse > 0) { empulse--; } if (empulse == 0) { if (_parent.attack) { if (_root[_parent.targetobj].life <= 0) { obstacle = false; _parent.targetobj = undefined; _parent.walking = false; _parent.attack = false; } _root[flag]._x = _root[_parent.targetobj]._x; _root[flag]._y = _root[_parent.targetobj]._y; dx = _root[_parent.targetobj]._x - _parent._x; dy = _root[_parent.targetobj]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < _parent.range) { obstacle = false; _parent.walking = false; _parent.fireing = true; _parent.turret._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); if (_parent.turret._currentframe == 1) { _parent.turret.play(); _parent.turret.targetobj = _parent.targetobj; } if (_root[_parent.targetobj].life <= 0) { _parent.targetobj = undefined; _parent.attack = false; _parent.fireing = false; } } } if (_parent.walking == true) { _parent.fireing = false; hit = false; flag = "flag" + _parent._name; if (_parent.locx == undefined) { _parent.locx = 0; _parent.locy = 0; } if (!obstacle) { dx = (_root[flag]._x - _parent._x) + _parent.locx; dy = (_root[flag]._y - _parent._y) + _parent.locy; this._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); } if (obstacle) { dxn = _root[flag2]._x - _parent._x; dyn = _root[flag2]._y - _parent._y; this._rotation = (Math.atan2(dyn, dxn) * 360) / (Math.PI*2); } rads = (this._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * _parent.speed); _parent._y = _parent._y + (Math.sin(rads) * _parent.speed); _parent.movesym(); nohit++; if (nohit == 20) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (this.hitTest(_root[current])) { if (_parent.num > _root[current].num) { if (this._rotation > 0) { _parent._x = _parent._x + (0.2 * _parent._width); _parent._y = _parent._y + (0.2 * _parent._height); } if (this._rotation < 0) { _parent._x = _parent._x - (0.2 * _parent._width); _parent._y = _parent._y - (0.2 * _parent._height); } } } i--; } nohit = 0; } if (obstacle) { dx = _root[flag2]._x - _parent._x; dy = _root[flag2]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 10) { obstacle = false; } } if (!obstacle) { dx = _root[flag]._x - _parent._x; dy = _root[flag]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 10) { _root[flag].removeMovieClip(); _root.objarray.findandsplice(flag); _root.flagsarray.findandsplice(flag); _parent.walking = false; } } } if (_parent.fireing) { dx = _root[_parent.targetobj]._x - _parent._x; dy = _root[_parent.targetobj]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist > (_parent.range + 150)) { _parent.walking = true; _root[flag]._x = _root[_parent.targetobj]._x; _root[flag]._y = _root[_parent.targetobj]._y; _parent.fireing = false; } } if (_parent.fireing) { _parent.turret._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); if (_parent.turret._currentframe == 1) { _parent.turret.play(); _parent.turret.targetobj = _parent.targetobj; } if (_root[_parent.targetobj].life <= 0) { _parent.targetobj = undefined; _parent.fireing = false; _parent.attack = false; } if (!_parent.walking) { if (_parent.avoid) { as++; if (!obstacle) { if (left > 0) { this._rotation = ((Math.atan2(dy, dx) * 360) / (Math.PI*2)) - 45; } if (left < 0) { this._rotation = ((Math.atan2(dy, dx) * 360) / (Math.PI*2)) + 90; } if (as > 70) { as = 0; left = -left; } } if (obstacle) { dxn = _root[flag2]._x - _parent._x; dyn = _root[flag2]._y - _parent._y; this._rotation = (Math.atan2(dyn, dxn) * 360) / (Math.PI*2); } rads = (this._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * _parent.speed); _parent._y = _parent._y + (Math.sin(rads) * _parent.speed); _parent.movesym(); } } if (_parent.hitTest(_root.back.tops)) { _parent._y = _parent._y + 20; } if (_parent.hitTest(_root.back.bottoms)) { _parent._y = _parent._y - 20; } if (_parent.hitTest(_root.back.lefts)) { _parent._x = _parent._x + 20; } if (_parent.hitTest(_root.back.rights)) { _parent._x = _parent._x - 20; } } } }
Instance of Symbol 188 MovieClip "selector" in Symbol 639 MovieClip [rocket] Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 639 MovieClip [rocket] Frame 1
onClipEvent (enterFrame) { this._xscale = 110 * (_parent.life / _parent.fulllife); if (_parent.dummy._currentframe == 1) { if (_parent.life <= 0) { _parent.dummy.gotoAndPlay("explode"); } } }
Symbol 639 MovieClip [rocket] Frame 2
stop();
Symbol 640 MovieClip [humvee] Frame 1
stop();
Instance of Symbol 241 MovieClip [humveeebase] "dummy" in Symbol 640 MovieClip [humvee] Frame 1
onClipEvent (load) { _root.attachMovie("dot", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; _parent.upgrade = 0; _parent.unittype = "humvee"; _parent.laser = false; _parent.gatling = false; _parent.damage = 7; _parent.avoid = true; _parent.shellspd = 15; _parent.aggressive = true; _root.friendlylist.push(_parent._name); _parent.enemy = false; _parent.num = _root.num; _root.num++; nohit = 0; _parent.selected1 = false; _root.unitsarray.push(_parent._name); _root.objarray.push(_parent._name); _parent.life = 200; _parent.fulllife = 200; _parent.speed = 6; _parent.firerate = 3; _parent.walking = false; _parent.fireing = false; _parent.attack = false; charge = 0; empulse = 0; _parent.range = 150; charge = 100; as = 0; left = 1; if (_root.warfactory1._x != undefined) { _parent.aigoto(_root.rallypoint._x, _root.rallypoint._y, false); } } onClipEvent (enterFrame) { if (empulse > 0) { empulse--; } if (empulse == 0) { if (_parent.attack) { if (_root[_parent.targetobj].life <= 0) { obstacle = false; _parent.targetobj = undefined; _parent.walking = false; _parent.attack = false; } _root[flag]._x = _root[_parent.targetobj]._x; _root[flag]._y = _root[_parent.targetobj]._y; dx = _root[_parent.targetobj]._x - _parent._x; dy = _root[_parent.targetobj]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < _parent.range) { obstacle = false; _parent.walking = false; _parent.fireing = true; _parent.turret._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); if (_parent.turret._currentframe == 1) { _parent.turret.play(); _parent.turret.targetobj = _parent.targetobj; } if (_root[_parent.targetobj].life <= 0) { _parent.targetobj = undefined; _parent.attack = false; _parent.fireing = false; } } } if (_parent.walking == true) { _parent.fireing = false; hit = false; flag = "flag" + _parent._name; if (_parent.locx == undefined) { _parent.locx = 0; _parent.locy = 0; } if (!obstacle) { dx = (_root[flag]._x - _parent._x) + _parent.locx; dy = (_root[flag]._y - _parent._y) + _parent.locy; this._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); } if (obstacle) { dxn = _root[flag2]._x - _parent._x; dyn = _root[flag2]._y - _parent._y; this._rotation = (Math.atan2(dyn, dxn) * 360) / (Math.PI*2); } rads = (this._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * _parent.speed); _parent._y = _parent._y + (Math.sin(rads) * _parent.speed); _parent.movesym(); nohit++; if (nohit == 20) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (this.hitTest(_root[current])) { if (_parent.num > _root[current].num) { if (this._rotation > 0) { _parent._x = _parent._x + (0.2 * _parent._width); _parent._y = _parent._y + (0.2 * _parent._height); } if (this._rotation < 0) { _parent._x = _parent._x - (0.2 * _parent._width); _parent._y = _parent._y - (0.2 * _parent._height); } } } i--; } nohit = 0; } if (obstacle) { dx = _root[flag2]._x - _parent._x; dy = _root[flag2]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 10) { obstacle = false; } } if (!obstacle) { dx = _root[flag]._x - _parent._x; dy = _root[flag]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 10) { _root[flag].removeMovieClip(); _root.objarray.findandsplice(flag); _root.flagsarray.findandsplice(flag); _parent.walking = false; } } } if (_parent.fireing) { dx = _root[_parent.targetobj]._x - _parent._x; dy = _root[_parent.targetobj]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist > (_parent.range * 2)) { _parent.walking = true; _root[flag]._x = _root[_parent.targetobj]._x; _root[flag]._y = _root[_parent.targetobj]._y; _parent.fireing = false; } _parent.turret._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); if (_parent.turret._currentframe == 1) { _parent.turret.play(); _parent.turret.targetobj = _parent.targetobj; } if (_root[_parent.targetobj].life <= 0) { _parent.targetobj = undefined; _parent.fireing = false; _parent.attack = false; } if (!_parent.walking) { if (_parent.avoid) { if (!obstacle) { as++; if (left > 0) { this._rotation = ((Math.atan2(dy, dx) * 360) / (Math.PI*2)) - 90; } if (left < 0) { this._rotation = -((Math.atan2(dy, dx) * 360) / (Math.PI*2)); } if (as > 20) { as = 0; left = -left; } } if (obstacle) { dxn = _root[flag2]._x - _parent._x; dyn = _root[flag2]._y - _parent._y; this._rotation = (Math.atan2(dyn, dxn) * 360) / (Math.PI*2); } rads = (this._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * _parent.speed); _parent._y = _parent._y + (Math.sin(rads) * _parent.speed); _parent.movesym(); } } if (_parent.hitTest(_root.back.tops)) { _parent._y = _parent._y + 20; } if (_parent.hitTest(_root.back.bottoms)) { _parent._y = _parent._y - 20; } if (_parent.hitTest(_root.back.lefts)) { _parent._x = _parent._x + 20; } if (_parent.hitTest(_root.back.rights)) { _parent._x = _parent._x - 20; } } } }
Instance of Symbol 188 MovieClip "selector" in Symbol 640 MovieClip [humvee] Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 640 MovieClip [humvee] Frame 1
onClipEvent (enterFrame) { this._xscale = 80 * (_parent.life / _parent.fulllife); if (_parent.dummy._currentframe == 1) { if (_parent.life <= 0) { _parent.dummy.gotoAndPlay("explode"); } } }
Symbol 640 MovieClip [humvee] Frame 2
stop();
Symbol 641 MovieClip [enemyheavy] Frame 1
stop();
Instance of Symbol 202 MovieClip "dummy" in Symbol 641 MovieClip [enemyheavy] Frame 1
onClipEvent (load) { _root.attachMovie("dot2", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; _parent.crush = false; _parent.missile = false; _parent.hitonly = false; _parent.auto = false; _parent.unittype = "heavy"; _parent.avoid = false; upgrade = 0; if ((_root.enemymoney > 30000) && (_root.enemytechcentre1._x != undefined)) { upgrade = 1; } aaa = Math.random() * upgrade; if (upgrade == 1) { if (Math.random() > 0.5) { _parent.crush = true; _root.enemymoney = _root.enemymoney - 1000; } if (Math.random() > 0.5) { _parent.missile = true; _root.enemymoney = _root.enemymoney - 1000; } if (Math.random() > 0.3) { _parent.hitonly = true; _root.enemymoney = _root.enemymoney - 1000; } } _parent.damage = 30 + Math.round(aaa * 50); _root.enemymoney = _root.enemymoney - (aaa * 500); aaa = Math.random() * upgrade; _parent.shellspd = 12; _parent.aggressive = true; _root.enemyarray.push(_parent._name); _parent.enemy = true; _parent.num = _root.num; _root.num++; _parent.selected1 = false; _root.unitsarray.push(_parent._name); _root.objarray.push(_parent._name); _parent.life = 600 + Math.round(aaa * 200); _parent.fulllife = 600 + Math.round(aaa * 200); _root.enemymoney = _root.enemymoney - (aaa * 750); _parent.speed = 1; _parent.firerate = 20; _parent.walking = false; _parent.fireing = false; _parent.attack = false; aaa = Math.random() * upgrade; _parent.range = 200 + Math.round(aaa * 120); _root.enemymoney = _root.enemymoney - (aaa * 700); empulse = 0; nohit = 0; as = 0; left = 1; this.waypoint = "waypoint" + String(Math.floor(Math.random() * 6) + 100); _root.n++; if ((_root[this.waypoint]._x != undefined) && (_parent.getDepth() > 0)) { _parent.aigoto(_root[this.waypoint]._x, _root[this.waypoint]._y, false); } aaa = undefined; } onClipEvent (enterFrame) { if (empulse > 0) { empulse--; } if (empulse == 0) { if (_parent.attack) { if (_root[_parent.targetobj].life <= 0) { obstacle = false; _parent.targetobj = undefined; _parent.walking = false; _parent.attack = false; } _root[flag]._x = _root[_parent.targetobj]._x; _root[flag]._y = _root[_parent.targetobj]._y; dx = _root[_parent.targetobj]._x - _parent._x; dy = _root[_parent.targetobj]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < _parent.range) { obstacle = false; _parent.walking = false; _parent.fireing = true; _parent.turret._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); if (_parent.turret._currentframe == 1) { _parent.turret.play(); _parent.turret.targetobj = _parent.targetobj; } if (_root[_parent.targetobj].life <= 0) { _parent.targetobj = undefined; _parent.attack = false; _parent.fireing = false; } } } if (_parent.walking == true) { _parent.fireing = false; hit = false; flag = "flag" + _parent._name; if (!obstacle) { dx = _root[flag]._x - _parent._x; dy = _root[flag]._y - _parent._y; this._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); } if (obstacle) { dxn = _root[flag2]._x - _parent._x; dyn = _root[flag2]._y - _parent._y; this._rotation = (Math.atan2(dyn, dxn) * 360) / (Math.PI*2); } rads = (this._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * _parent.speed); _parent._y = _parent._y + (Math.sin(rads) * _parent.speed); _parent.movesym(); nohit++; if (nohit == 20) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (this.hitTest(_root[current])) { if ((_parent.crush && (!_root[current].enemy)) && (_root[current].fulllife < 500)) { _root[current].life = 0; } if (_parent.num > _root[current].num) { if (this._rotation > 0) { _parent._x = _parent._x + (0.2 * _parent._width); _parent._y = _parent._y + (0.2 * _parent._height); } if (this._rotation < 0) { _parent._x = _parent._x - (0.2 * _parent._width); _parent._y = _parent._y - (0.2 * _parent._height); } } } i--; } nohit = 0; } if (obstacle) { dx = _root[flag2]._x - _parent._x; dy = _root[flag2]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 10) { obstacle = false; } } if (!obstacle) { dx = _root[flag]._x - _parent._x; dy = _root[flag]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 10) { _root[flag].removeMovieClip(); _root.objarray.findandsplice(flag); _root.flagsarray.findandsplice(flag); _parent.walking = false; } } } if (_parent.fireing) { dx = _root[_parent.targetobj]._x - _parent._x; dy = _root[_parent.targetobj]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist > (_parent.range * 1.5)) { _parent.walking = true; _root[flag]._x = _root[_parent.targetobj]._x; _root[flag]._y = _root[_parent.targetobj]._y; _parent.fireing = false; } } if (_parent.fireing) { _parent.turret._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); if (_parent.turret._currentframe == 1) { _parent.turret.play(); _parent.turret.targetobj = _parent.targetobj; } if (_root[_parent.targetobj].life <= 0) { _parent.targetobj = undefined; _parent.fireing = false; _parent.attack = false; } if (_parent.crush) { this._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); rads = (this._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * _parent.speed); _parent._y = _parent._y + (Math.sin(rads) * _parent.speed); _parent.movesym(); if ((dist < 10) && (_root[_parent.targetobj].auto._x == undefined)) { _root[_parent.targetobj].life = -1; _parent._x = _root[_parent.targetobj]._x; _parent._y = _root[_parent.targetobj]._y; } } if (((!_parent.walking) && (_parent.avoid)) && (!_parent.crush)) { if (!obstacle) { as++; if (left > 0) { this._rotation = ((Math.atan2(dy, dx) * 360) / (Math.PI*2)) - 90; } if (left < 0) { this._rotation = -((Math.atan2(dy, dx) * 360) / (Math.PI*2)); } if (as > 50) { as = 0; } } if (obstacle) { dxn = _root[flag2]._x - _parent._x; dyn = _root[flag2]._y - _parent._y; this._rotation = (Math.atan2(dyn, dxn) * 360) / (Math.PI*2); } rads = (this._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * _parent.speed); _parent._y = _parent._y + (Math.sin(rads) * _parent.speed); _parent.movesym(); } } if (_parent.hitTest(_root.back.tops)) { _parent._y = _parent._y + 20; } if (_parent.hitTest(_root.back.bottoms)) { _parent._y = _parent._y - 20; } if (_parent.hitTest(_root.back.lefts)) { _parent._x = _parent._x + 20; } if (_parent.hitTest(_root.back.rights)) { _parent._x = _parent._x - 20; } } }
Instance of Symbol 188 MovieClip "selector" in Symbol 641 MovieClip [enemyheavy] Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 641 MovieClip [enemyheavy] Frame 1
onClipEvent (enterFrame) { this._xscale = 115 * (_parent.life / _parent.fulllife); if (_parent.dummy._currentframe == 1) { if (_parent.life <= 0) { _parent.dummy.gotoAndPlay("explode"); } } }
Symbol 641 MovieClip [enemyheavy] Frame 2
stop();
Symbol 642 MovieClip [enemyrocket] Frame 1
stop();
Instance of Symbol 229 MovieClip "dummy" in Symbol 642 MovieClip [enemyrocket] Frame 1
onClipEvent (load) { _root.attachMovie("dot2", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; _parent.seeker = false; _parent.miss = 1; _parent.blast = false; _parent.avoid = false; upgrade = 0; if ((_root.enemymoney > 30000) && (_root.enemytechcentre1._x != undefined)) { upgrade = 1; } aaa = Math.random() * upgrade; if (upgrade == 1) { if (Math.random() > 0.3) { _parent.seeker = true; _root.enemymoney = _root.enemymoney - 1000; } if (Math.random() > 0.2) { _parent.miss++; _root.enemymoney = _root.enemymoney - 1000; } if (Math.random() > 0.5) { _parent.miss++; _root.enemymoney = _root.enemymoney - 1000; } if (Math.random() > 0.5) { _parent.blast = true; _root.enemymoney = _root.enemymoney - 1000; } } _parent.unittype = "rocket"; _parent.hitonly = false; aaa = Math.random() * upgrade; _parent.damage = 50 + Math.round(aaa * 25); _root.enemymoney = _root.enemymoney - (aaa * 1000); aaa = Math.random() * upgrade; _parent.shellspd = 3 + Math.round(aaa * 4); _root.enemymoney = _root.enemymoney - (aaa * 250); as = 0; _parent.aggressive = true; _root.enemyarray.push(_parent._name); _parent.enemy = true; _parent.num = _root.num; _root.num++; nohit = 0; _parent.selected1 = false; _root.unitsarray.push(_parent._name); _root.objarray.push(_parent._name); _parent.life = 250; _parent.fulllife = 250; aaa = Math.random() * upgrade; _root.enemymoney = _root.enemymoney - (aaa * 250); _parent.speed = 2 + Math.round(aaa * 4); _parent.firerate = 25; _parent.walking = false; _parent.fireing = false; _parent.attack = false; nohit = 0; _parent.range = 350; empulse = 0; left = 1; this.waypoint = "waypoint" + String(Math.floor(Math.random() * 6) + 100); _root.n++; if ((_root[this.waypoint]._x != undefined) && (_parent.getDepth() > 0)) { _parent.aigoto(_root[this.waypoint]._x, _root[this.waypoint]._y, false); } aaa = undefined; } onClipEvent (enterFrame) { if (empulse > 0) { empulse--; } if (empulse == 0) { if (_parent.attack) { if (_root[_parent.targetobj].life <= 0) { _parent.targetobj = undefined; _parent.walking = false; _parent.attack = false; obstacle = false; } _root[flag]._x = _root[_parent.targetobj]._x; _root[flag]._y = _root[_parent.targetobj]._y; dx = _root[_parent.targetobj]._x - _parent._x; dy = _root[_parent.targetobj]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < _parent.range) { obstacle = false; _parent.walking = false; _parent.fireing = true; _parent.turret._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); if (_parent.turret._currentframe == 1) { _parent.turret.play(); _parent.turret.targetobj = _parent.targetobj; } if (_root[_parent.targetobj].life <= 0) { _parent.targetobj = undefined; _parent.attack = false; _parent.fireing = false; } } } if (_parent.walking == true) { _parent.fireing = false; hit = false; flag = "flag" + _parent._name; if (_parent.locx == undefined) { _parent.locx = 0; _parent.locy = 0; } if (!obstacle) { dx = (_root[flag]._x - _parent._x) + _parent.locx; dy = (_root[flag]._y - _parent._y) + _parent.locy; this._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); } if (obstacle) { dxn = _root[flag2]._x - _parent._x; dyn = _root[flag2]._y - _parent._y; this._rotation = (Math.atan2(dyn, dxn) * 360) / (Math.PI*2); } rads = (this._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * _parent.speed); _parent._y = _parent._y + (Math.sin(rads) * _parent.speed); _parent.movesym(); nohit++; if (nohit == 20) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (this.hitTest(_root[current])) { if (_parent.num > _root[current].num) { if (this._rotation > 0) { _parent._x = _parent._x + (0.2 * _parent._width); _parent._y = _parent._y + (0.2 * _parent._height); } if (this._rotation < 0) { _parent._x = _parent._x - (0.2 * _parent._width); _parent._y = _parent._y - (0.2 * _parent._height); } } } i--; } nohit = 0; } if (obstacle) { dx = _root[flag2]._x - _parent._x; dy = _root[flag2]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 10) { obstacle = false; } } if (!obstacle) { dx = _root[flag]._x - _parent._x; dy = _root[flag]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 10) { _root[flag].removeMovieClip(); _root.objarray.findandsplice(flag); _root.flagsarray.findandsplice(flag); _parent.walking = false; } } } if (_parent.fireing) { dx = _root[_parent.targetobj]._x - _parent._x; dy = _root[_parent.targetobj]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist > (_parent.range + 150)) { _parent.walking = true; _root[flag]._x = _root[_parent.targetobj]._x; _root[flag]._y = _root[_parent.targetobj]._y; _parent.fireing = false; } } if (_parent.fireing) { _parent.turret._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); if (_parent.turret._currentframe == 1) { _parent.turret.play(); _parent.turret.targetobj = _parent.targetobj; } if (_root[_parent.targetobj].life <= 0) { _parent.targetobj = undefined; _parent.fireing = false; _parent.attack = false; } if (!_parent.walking) { if (_parent.avoid) { as++; if (!obstacle) { if (left > 0) { this._rotation = ((Math.atan2(dy, dx) * 360) / (Math.PI*2)) - 45; } if (left < 0) { this._rotation = ((Math.atan2(dy, dx) * 360) / (Math.PI*2)) + 90; } if (as > 70) { as = 0; left = -left; } } if (obstacle) { dxn = _root[flag2]._x - _parent._x; dyn = _root[flag2]._y - _parent._y; this._rotation = (Math.atan2(dyn, dxn) * 360) / (Math.PI*2); } rads = (this._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * _parent.speed); _parent._y = _parent._y + (Math.sin(rads) * _parent.speed); _parent.movesym(); } } if (_parent.hitTest(_root.back.tops)) { _parent._y = _parent._y + 20; } if (_parent.hitTest(_root.back.bottoms)) { _parent._y = _parent._y - 20; } if (_parent.hitTest(_root.back.lefts)) { _parent._x = _parent._x + 20; } if (_parent.hitTest(_root.back.rights)) { _parent._x = _parent._x - 20; } } } }
Instance of Symbol 188 MovieClip "selector" in Symbol 642 MovieClip [enemyrocket] Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 642 MovieClip [enemyrocket] Frame 1
onClipEvent (enterFrame) { this._xscale = 110 * (_parent.life / _parent.fulllife); if (_parent.dummy._currentframe == 1) { if (_parent.life <= 0) { _parent.dummy.gotoAndPlay("explode"); } } }
Symbol 642 MovieClip [enemyrocket] Frame 2
stop();
Symbol 643 MovieClip [enemyhumvee] Frame 1
stop();
Instance of Symbol 188 MovieClip "selector" in Symbol 643 MovieClip [enemyhumvee] Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 241 MovieClip [humveeebase] "dummy" in Symbol 643 MovieClip [enemyhumvee] Frame 1
onClipEvent (load) { _root.attachMovie("dot2", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; upgrade = 0; _parent.gatling = false; _parent.avoid = true; _parent.laser = false; charge = 0; if ((_root.enemymoney > 30000) && (_root.enemytechcentre1._x != undefined)) { upgrade = 1; } aaa = Math.random() * upgrade; if (upgrade == 1) { if (Math.random() > 0.2) { _parent.gatling = true; _root.enemymoney = _root.enemymoney - 500; } if (Math.random() > 0.2) { _parent.laser = true; _root.enemymoney = _root.enemymoney - 1000; } } _parent.unittype = "humvee"; _parent.damage = 7 + Math.round(aaa * 7); _root.enemymoney = _root.enemymoney - (aaa * 200); aaa = Math.random() * upgrade; _parent.shellspd = 15; _parent.aggressive = true; _root.enemyarray.push(_parent._name); _parent.enemy = true; _parent.num = _root.num; _root.num++; nohit = 0; _parent.selected1 = false; _root.unitsarray.push(_parent._name); _root.objarray.push(_parent._name); _parent.life = 200; _parent.fulllife = 200; _parent.speed = 6 + Math.round(aaa * 5); _root.enemymoney = _root.enemymoney - (aaa * 120); aaa = Math.random() * upgrade; _parent.firerate = 3 - Math.round(aaa * 2); _root.enemymoney = _root.enemymoney - (aaa * 100); _parent.walking = false; _parent.fireing = false; _parent.attack = false; _parent.range = 150; as = 0; empulse = 0; left = 1; this.waypoint = "waypoint" + String(Math.floor(Math.random() * 6) + 100); _root.n++; if ((_root[this.waypoint]._x != undefined) && (_parent.getDepth() > 0)) { _parent.aigoto(_root[this.waypoint]._x, _root[this.waypoint]._y, false); } aaa = undefined; } onClipEvent (enterFrame) { if (empulse > 0) { empulse--; } if (empulse == 0) { if (_parent.attack) { if (_root[_parent.targetobj].life <= 0) { obstacle = false; _parent.targetobj = undefined; _parent.walking = false; _parent.attack = false; } _root[flag]._x = _root[_parent.targetobj]._x; _root[flag]._y = _root[_parent.targetobj]._y; dx = _root[_parent.targetobj]._x - _parent._x; dy = _root[_parent.targetobj]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < _parent.range) { obstacle = false; _parent.walking = false; _parent.fireing = true; _parent.turret._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); if (_parent.turret._currentframe == 1) { _parent.turret.play(); _parent.turret.targetobj = _parent.targetobj; } if (_root[_parent.targetobj].life <= 0) { _parent.targetobj = undefined; _parent.attack = false; _parent.fireing = false; } } } if (_parent.walking == true) { _parent.fireing = false; hit = false; flag = "flag" + _parent._name; if (_parent.locx == undefined) { _parent.locx = 0; _parent.locy = 0; } if (!obstacle) { dx = (_root[flag]._x - _parent._x) + _parent.locx; dy = (_root[flag]._y - _parent._y) + _parent.locy; this._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); } if (obstacle) { dxn = _root[flag2]._x - _parent._x; dyn = _root[flag2]._y - _parent._y; this._rotation = (Math.atan2(dyn, dxn) * 360) / (Math.PI*2); } rads = (this._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * _parent.speed); _parent._y = _parent._y + (Math.sin(rads) * _parent.speed); _parent.movesym(); nohit++; if (nohit == 20) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (this.hitTest(_root[current])) { if (_parent.num > _root[current].num) { if (this._rotation > 0) { _parent._x = _parent._x + (0.2 * _parent._width); _parent._y = _parent._y + (0.2 * _parent._height); } if (this._rotation < 0) { _parent._x = _parent._x - (0.2 * _parent._width); _parent._y = _parent._y - (0.2 * _parent._height); } } } i--; } nohit = 0; } if (obstacle) { dx = _root[flag2]._x - _parent._x; dy = _root[flag2]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 10) { obstacle = false; } } if (!obstacle) { dx = _root[flag]._x - _parent._x; dy = _root[flag]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 10) { _root[flag].removeMovieClip(); _root.objarray.findandsplice(flag); _root.flagsarray.findandsplice(flag); _parent.walking = false; } } } if (_parent.fireing) { dx = _root[_parent.targetobj]._x - _parent._x; dy = _root[_parent.targetobj]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist > (_parent.range * 2)) { _parent.walking = true; _root[flag]._x = _root[_parent.targetobj]._x; _root[flag]._y = _root[_parent.targetobj]._y; _parent.fireing = false; } _parent.turret._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); if (_parent.turret._currentframe == 1) { _parent.turret.play(); _parent.turret.targetobj = _parent.targetobj; } if (_root[_parent.targetobj].life <= 0) { _parent.targetobj = undefined; _parent.fireing = false; _parent.attack = false; } if (!_parent.walking) { if (_parent.avoid) { if (!obstacle) { as++; if (left > 0) { this._rotation = ((Math.atan2(dy, dx) * 360) / (Math.PI*2)) - 90; } if (left < 0) { this._rotation = -((Math.atan2(dy, dx) * 360) / (Math.PI*2)); } if (as > 20) { as = 0; left = -left; } } if (obstacle) { dxn = _root[flag2]._x - _parent._x; dyn = _root[flag2]._y - _parent._y; this._rotation = (Math.atan2(dyn, dxn) * 360) / (Math.PI*2); } rads = (this._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * _parent.speed); _parent._y = _parent._y + (Math.sin(rads) * _parent.speed); _parent.movesym(); } } if (_parent.hitTest(_root.back.tops)) { _parent._y = _parent._y + 20; } if (_parent.hitTest(_root.back.bottoms)) { _parent._y = _parent._y - 20; } if (_parent.hitTest(_root.back.lefts)) { _parent._x = _parent._x + 20; } if (_parent.hitTest(_root.back.rights)) { _parent._x = _parent._x - 20; } } } }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 643 MovieClip [enemyhumvee] Frame 1
onClipEvent (enterFrame) { this._xscale = 80 * (_parent.life / _parent.fulllife); if (_parent.dummy._currentframe == 1) { if (_parent.life <= 0) { _parent.dummy.gotoAndPlay("explode"); } } }
Symbol 643 MovieClip [enemyhumvee] Frame 2
stop();
Symbol 644 MovieClip [enemylight] Frame 1
stop();
Instance of Symbol 186 MovieClip "dummy" in Symbol 644 MovieClip [enemylight] Frame 1
onClipEvent (load) { _root.enemyarray.push(_parent._name); _root.attachMovie("dot2", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; _parent.auto = false; _parent.shell2 = false; _parent.hitonly = false; _parent.avoid = true; upgrade = 0; if ((_root.enemymoney > 30000) && (_root.enemytechcentre1._x != undefined)) { upgrade = 1; } aaa = Math.random() * upgrade; if (upgrade == 1) { if (Math.random() > 0.1) { _parent.auto = true; _root.enemymoney = _root.enemymoney - 1000; } if (Math.random() > 0.2) { _parent.shell2 = true; _root.enemymoney = _root.enemymoney - 1000; } if (Math.random() > 0.3) { _parent.hitonly = true; _root.enemymoney = _root.enemymoney - 1000; } } _parent.unittype = "light"; _parent.shellspd = 10; _parent.damage = 20; _parent.aggressive = true; _parent.enemy = true; _parent.num = _root.num; _root.num++; _parent.selected1 = false; _root.unitsarray.push(_parent._name); _root.objarray.push(_parent._name); _parent.life = 300 + Math.round(aaa * 350); _parent.fulllife = 300 + Math.round(aaa * 350); _root.enemymoney = _root.enemymoney - (aaa * 300); aaa = Math.random() * upgrade; nohit = 0; _parent.speed = 3 + Math.round(aaa * 3); _root.enemymoney = _root.enemymoney - (aaa * 250); aaa = Math.random() * upgrade; _parent.firerate = 5 - Math.round(aaa * 4); _root.enemymoney = _root.enemymoney - (aaa * 450); _parent.walking = false; _parent.fireing = false; _parent.attack = false; _parent.range = 200; empulse = 0; as = 0; left = 1; this.waypoint = "waypoint" + String(Math.floor(Math.random() * 6) + 100); _root.n++; if ((_root[this.waypoint]._x != undefined) && (_parent.getDepth() > 0)) { _parent.aigoto(_root[this.waypoint]._x, _root[this.waypoint]._y, false); } aaa = undefined; } onClipEvent (enterFrame) { if (empulse > 0) { empulse--; } if (empulse == 0) { if (_parent.attack) { if (_root[_parent.targetobj].life <= 0) { obstacle = false; _parent.targetobj = undefined; _parent.walking = false; _parent.attack = false; } _root[flag]._x = _root[_parent.targetobj]._x; _root[flag]._y = _root[_parent.targetobj]._y; dx = _root[_parent.targetobj]._x - _parent._x; dy = _root[_parent.targetobj]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < _parent.range) { obstacle = false; _parent.walking = false; _parent.fireing = true; _parent.turret._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); if (_parent.turret._currentframe == 1) { _parent.turret.play(); _parent.turret.targetobj = _parent.targetobj; } if (_root[_parent.targetobj].life <= 0) { _parent.targetobj = undefined; _parent.attack = false; _parent.fireing = false; } } } if (_parent.walking == true) { _parent.fireing = false; hit = false; flag = "flag" + _parent._name; if (_parent.locx == undefined) { _parent.locx = 0; _parent.locy = 0; } if (!obstacle) { dx = (_root[flag]._x - _parent._x) + _parent.locx; dy = (_root[flag]._y - _parent._y) + _parent.locy; this._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); } if (obstacle) { dxn = _root[flag2]._x - _parent._x; dyn = _root[flag2]._y - _parent._y; this._rotation = (Math.atan2(dyn, dxn) * 360) / (Math.PI*2); } rads = (this._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * _parent.speed); _parent._y = _parent._y + (Math.sin(rads) * _parent.speed); _parent.movesym(); nohit++; if (nohit == 20) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (this.hitTest(_root[current])) { if (_parent.num > _root[current].num) { if (this._rotation > 0) { _parent._x = _parent._x + (_parent._width / 2); _parent._y = _parent._y + (_parent._height / 2); } if (this._rotation < 0) { _parent._x = _parent._x - (_parent._width / 2); _parent._y = _parent._y - (_parent._height / 2); } break; } } i--; } nohit = 0; } if (obstacle) { dx = _root[flag2]._x - _parent._x; dy = _root[flag2]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 10) { obstacle = false; } } if (!obstacle) { dx = _root[flag]._x - _parent._x; dy = _root[flag]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 10) { _root[flag].removeMovieClip(); _root.objarray.findandsplice(flag); _root.flagsarray.findandsplice(flag); _parent.walking = false; } } } if (_parent.fireing) { dx = _root[_parent.targetobj]._x - _parent._x; dy = _root[_parent.targetobj]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist > (_parent.range * 1.5)) { _parent.walking = true; _root[flag]._x = _root[_parent.targetobj]._x; _root[flag]._y = _root[_parent.targetobj]._y; _parent.fireing = false; } } if (_parent.fireing) { _parent.turret._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); if (_parent.turret._currentframe == 1) { _parent.turret.play(); _parent.turret.targetobj = _parent.targetobj; } if (_root[_parent.targetobj].life <= 0) { _parent.targetobj = undefined; _parent.fireing = false; _parent.attack = false; } if (!_parent.walking) { if (_parent.avoid) { as++; if (!obstacle) { if (left > 0) { this._rotation = ((Math.atan2(dy, dx) * 360) / (Math.PI*2)) + 90; } if (left < 0) { this._rotation = ((Math.atan2(dy, dx) * 360) / (Math.PI*2)) - 135; } if (as > 50) { as = 0; left = -left; } } if (obstacle) { dxn = _root[flag2]._x - _parent._x; dyn = _root[flag2]._y - _parent._y; this._rotation = (Math.atan2(dyn, dxn) * 360) / (Math.PI*2); } rads = (this._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * _parent.speed); _parent._y = _parent._y + (Math.sin(rads) * _parent.speed); _parent.movesym(); } } if (_parent.hitTest(_root.back.tops)) { _parent._y = _parent._y + 20; } if (_parent.hitTest(_root.back.bottoms)) { _parent._y = _parent._y - 20; } if (_parent.hitTest(_root.back.lefts)) { _parent._x = _parent._x + 20; } if (_parent.hitTest(_root.back.rights)) { _parent._x = _parent._x - 20; } } } }
Instance of Symbol 188 MovieClip "selector" in Symbol 644 MovieClip [enemylight] Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 644 MovieClip [enemylight] Frame 1
onClipEvent (enterFrame) { this._xscale = 90 * (_parent.life / _parent.fulllife); if (_parent.dummy._currentframe == 1) { if (_parent.life <= 0) { _parent.dummy.gotoAndPlay("explode"); } } }
Symbol 644 MovieClip [enemylight] Frame 2
stop();
Symbol 645 MovieClip [enemyartillery] Frame 1
stop();
Instance of Symbol 215 MovieClip "dummy" in Symbol 645 MovieClip [enemyartillery] Frame 1
onClipEvent (load) { _root.attachMovie("dot2", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; _parent.deploy = function () { this.walking = false; this.dummy.gotoAndPlay("deploying"); this.dummy._rotation = 90; }; _parent.nuke = false; _parent.accurate = false; _parent.emp = false; upgrade = 0; if ((_root.enemymoney > 20000) && (_root.enemytechcentre1._x != undefined)) { upgrade = 1; } aaa = Math.random() * upgrade; if (upgrade == 1) { if (Math.random() > 0.2) { _parent.accurate = true; _root.enemymoney = _root.enemymoney - 1000; } if (Math.random() > 0.7) { _parent.nuke = true; _root.enemymoney = _root.enemymoney - 2000; } if (Math.random() > 0.6) { _parent.emp = true; _root.enemymoney = _root.enemymoney - 2000; } } _parent.unittype = "artillery"; _parent.damage = 35 + Math.round(aaa * 25); _root.enemymoney = _root.enemymoney - (800 * aaa); _parent.aggressive = true; _root.enemyarray.push(_parent._name); _parent.enemy = true; _parent.num = _root.num; _root.num++; nohit = 0; _parent.selected1 = false; _root.unitsarray.push(_parent._name); _root.objarray.push(_parent._name); _parent.life = 300; _parent.fulllife = 300; _parent.speed = 1; aaa = Math.random() * upgrade; _parent.firerate = 30 - Math.round(aaa * 15); _root.enemymoney = _root.enemymoney - (500 * aaa); _parent.walking = false; _parent.fireing = false; _parent.attack = false; _parent.range = 550 + Math.round(aaa * 200); _root.enemymoney = _root.enemymoney - (1000 * aaa); empulse = 0; n = 0; this.waypoint = "waypoint" + String(Math.floor(Math.random() * 6) + 100); _root.n++; if ((_root[this.waypoint]._x != undefined) && (_parent.getDepth() > 0)) { _parent.aigoto(_root[this.waypoint]._x, _root[this.waypoint]._y, false); } if (_parent.getDepth() < 0) { _parent.deploy(); } aaa = undefined; } onClipEvent (enterFrame) { if (empulse > 0) { empulse--; } if (empulse == 0) { if (this._currentframe == 10) { n++; if (n == 10) { n = 0; if (!_parent.fireing) { n = _root.friendlylist.length - 1; while (n > -1) { current2 = _root.friendlylist[n]; dx = -(_parent._x - _root[current2]._x); dy = -(_parent._y - _root[current2]._y); dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < _parent.range) { _parent.targetobj = current2; _parent.fireing = true; _parent.turret._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); if (_parent.turret._currentframe == 1) { _parent.turret.play(); _parent.turret.targetobj = _parent.targetobj; } hit = true; } n--; } } } } if (_parent.attack) { _root[flag]._x = _root[_parent.targetobj]._x; _root[flag]._y = _root[_parent.targetobj]._y; dx = _root[_parent.targetobj]._x - _parent._x; dy = _root[_parent.targetobj]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < _parent.range) { if (this._currentframe == 1) { _parent.walking = false; gotoAndPlay ("deploying"); _parent.fireing = true; this._rotation = 90; } } } if (_parent.walking == true) { if ((this._currentframe > 1) && (_parent.life > 0)) { gotoAndStop (1); _parent.turret.gotoAndStop(1); } if (this._currentframe == 1) { _parent.fireing = false; hit = false; flag = "flag" + _parent._name; if (!obstacle) { dx = _root[flag]._x - _parent._x; dy = _root[flag]._y - _parent._y; this._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); } if (obstacle) { dxn = _root[flag2]._x - _parent._x; dyn = _root[flag2]._y - _parent._y; this._rotation = (Math.atan2(dyn, dxn) * 360) / (Math.PI*2); } rads = (this._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * _parent.speed); _parent._y = _parent._y + (Math.sin(rads) * _parent.speed); _parent.movesym(); nohit++; if (nohit == 20) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (this.hitTest(_root[current])) { if (_parent.num > _root[current].num) { if (this._rotation > 0) { _parent._x = _parent._x + (0.2 * _parent._width); _parent._y = _parent._y + (0.2 * _parent._height); } if (this._rotation < 0) { _parent._x = _parent._x - (0.2 * _parent._width); _parent._y = _parent._y - (0.2 * _parent._height); } } } i--; } nohit = 0; } if (_parent.attack) { _root[flag]._x = _root[_parent.targetobj]._x; _root[flag]._y = _root[_parent.targetobj]._y; dx = _root[_parent.targetobj]._x - _parent._x; dy = _root[_parent.targetobj]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < _parent.range) { obstacle = false; _parent.walking = false; gotoAndPlay ("deploying"); this._rotation = 90; _parent.fireing = true; } } if (obstacle) { dx = _root[flag2]._x - _parent._x; dy = _root[flag2]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 10) { obstacle = false; } } if (!obstacle) { dx = _root[flag]._x - _parent._x; dy = _root[flag]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 10) { _root[flag].removeMovieClip(); _root.objarray.findandsplice(flag); _root.flagsarray.findandsplice(flag); _parent.walking = false; if (!_parent.attacks) { _parent.deploy(); } } } } } if (_parent.fireing) { dx = _root[_parent.targetobj]._x - _parent._x; dy = _root[_parent.targetobj]._y - _parent._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < _parent.range) { _parent.turret._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); if (_parent.turret._currentframe == 2) { _parent.turret.play(); _parent.turret.targetobj = _parent.targetobj; } if (_root[_parent.targetobj].life <= 0) { _parent.targetobj = undefined; _parent.fireing = false; _parent.attack = false; } } else { _parent.targetobj = undefined; _parent.fireing = false; _parent.attack = false; } } } }
Instance of Symbol 188 MovieClip "selector" in Symbol 645 MovieClip [enemyartillery] Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 645 MovieClip [enemyartillery] Frame 1
onClipEvent (enterFrame) { this._xscale = 110 * (_parent.life / _parent.fulllife); if (_parent.dummy._currentframe <= 10) { if (_parent.life <= 0) { _parent.dummy.gotoAndPlay("explode"); } } }
Symbol 645 MovieClip [enemyartillery] Frame 2
stop();
Symbol 646 MovieClip [enemydozer] Frame 1
dozers.push(this._name); stop();
Instance of Symbol 637 MovieClip "dummy" in Symbol 646 MovieClip [enemydozer] Frame 1
onClipEvent (load) { _root.attachMovie("dot2", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; _parent.aibuild = function (what, x, y, cost, rate) { _root.enemymoney = _root.enemymoney - cost; _root.attachMovie("enemyconstruction", "enemyconstruction" + _root.n, _root.n); _root["enemyconstruction" + _root.n].structure = what; _root["enemyconstruction" + _root.n].buildrate = rate; _root["enemyconstruction" + _root.n]._x = x; _root["enemyconstruction" + _root.n]._y = y; _root["enemyconstruction" + _root.n].dozer = _parent._name; _root.n++; }; _parent.aibuild2 = function (what, x, y, cost, nnn, rate) { _root.enemymoney = _root.enemymoney - cost; _root.attachMovie("enemyconstruction2", "enemyconstruction" + _root.n, _root.n); _root["enemyconstruction" + _root.n].structure = what; _root["enemyconstruction" + _root.n].buildrate = rate; _root["enemyconstruction" + _root.n]._x = x; _root["enemyconstruction" + _root.n]._y = y; _root["enemyconstruction" + _root.n].number = nnn; _root["enemyconstruction" + _root.n].dozer = _parent._name; _root.n++; }; _parent.build = false; building = false; nohit = 0; _parent.auto = false; _parent.unittype = "dozer"; _parent.aggressive = false; _root.enemyarray.push(_parent._name); _parent.enemy = true; _parent.num = _root.num; _root.num++; _parent.selected1 = false; _root.unitsarray.push(_parent._name); _root.objarray.push(_parent._name); _parent.life = 450; _parent.fulllife = 450; _parent.speed = 3; _parent.walking = false; as = 0; left = 1; empulse = 0; if (_root.enemycomcentre1._x != undefined) { _parent.aigoto(_root.enemycomcentre1._x, _root.enemycomcentre1._y + 100, false); } } onClipEvent (enterFrame) { if (empulse > 0) { empulse--; } if (empulse == 0) { if (_parent.build) { if (_root[_parent.targetbuild].life == undefined) { obstacle = false; buidling = false; _parent.build = false; _parent.walking = false; _parent.targetbuild = undefined; } } if (building) { _root[_parent.targetbuild].percent = _root[_parent.targetbuild].percent + (0.25 * _root[_parent.targetbuild].buildrate); _root[_parent.targetbuild].life = _root[_parent.targetbuild].life + (2.4 * _root[_parent.targetbuild].buildrate); if (_root[_parent.targetbuild].percent >= 100) { _root[_parent.targetbuild].nextFrame(); buidling = false; _parent.build = false; } } if (_parent.walking == true) { _parent.fireing = false; hit = false; flag = "flag" + _parent._name; if (_parent.build) { if (!obstacle) { dx = _root[_parent.targetbuild]._x - _parent._x; dy = _root[_parent.targetbuild]._y - _parent._y; this._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); } if (obstacle) { dxn = _root[flag2]._x - _parent._x; dyn = _root[flag2]._y - _parent._y; this._rotation = (Math.atan2(dyn, dxn) * 360) / (Math.PI*2); } _root[_parent.targetbuild].percent = 0; if (_root[_parent.targetbuild].life > 100) { _root[_parent.targetbuild].life = 100; } } if (!_parent.build) { if (!obstacle) { dx = _root[flag]._x - _parent._x; dy = _root[flag]._y - _parent._y; this._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); } if (obstacle) { dxn = _root[flag2]._x - _parent._x; dyn = _root[flag2]._y - _parent._y; this._rotation = (Math.atan2(dyn, dxn) * 360) / (Math.PI*2); } } rads = (this._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * _parent.speed); _parent._y = _parent._y + (Math.sin(rads) * _parent.speed); _parent.movesym(); nohit++; if (nohit == 20) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (this.hitTest(_root[current])) { if (_parent.num > _root[current].num) { if (this._rotation > 0) { _parent._x = _parent._x + (0.2 * _parent._width); _parent._y = _parent._y + (0.2 * _parent._height); } if (this._rotation < 0) { _parent._x = _parent._x - (0.2 * _parent._width); _parent._y = _parent._y - (0.2 * _parent._height); } } } i--; } nohit = 0; } if (this.hitTest(_root[flag2])) { obstacle = false; } if (_parent.build && (_root[_parent.targetbuild]._x == undefined)) { obstacle = false; _root[flag].removeMovieClip(); _root.objarray.findandsplice(flag); _root.flagsarray.findandsplice(flag); _parent.walking = false; _parent.build = false; } if (this.hitTest(_root[flag]) && (!_parent.build)) { obstacle = false; _root[flag].removeMovieClip(); _root.objarray.findandsplice(flag); _root.flagsarray.findandsplice(flag); _parent.walking = false; } if (this.hitTest(_root[_parent.targetbuild]) && (_parent.build)) { obstacle = false; _root[flag].removeMovieClip(); _root.objarray.findandsplice(flag); _root.flagsarray.findandsplice(flag); _parent.walking = false; building = true; } } } }
Instance of Symbol 188 MovieClip "selector" in Symbol 646 MovieClip [enemydozer] Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 646 MovieClip [enemydozer] Frame 1
onClipEvent (enterFrame) { this._xscale = 85 * (_parent.life / _parent.fulllife); if (_parent.dummy._currentframe == 1) { if (_parent.life <= 0) { _parent.dummy.gotoAndPlay("explode"); } } }
Symbol 646 MovieClip [enemydozer] Frame 2
stop();
Symbol 648 MovieClip [box5] Frame 1
if (_root.comcentre1.life == undefined) { this._visible = false; }
Symbol 660 Button
on (rollOver) { _root.sidebar.build.texts = "Nuclear Missile superweapon timer"; _root.sidebar.texts = "Nuclear Missile superweapon timer"; } on (rollOut) { _root.sidebar.build.texts = ""; _root.sidebar.texts = ""; }
Symbol 670 Button
on (press) { if (_root.soundon) { soundobj = new Sound(); soundobj.attachSound("click"); soundobj.start(); } _root.attachMovie("targeter", "targeter", 1100001); } on (rollOver) { _root.sidebar.build.texts = "Launch nuclear missile at target specified by cursor"; _root.sidebar.texts = "Launch nuclear missile at target specified by cursor"; } on (rollOut) { _root.sidebar.build.texts = ""; _root.sidebar.texts = ""; }
Symbol 671 MovieClip Frame 1
this._visible = false; stop();
Symbol 671 MovieClip Frame 2
this._visible = true; percent = 0; stop();
Instance of Symbol 653 MovieClip in Symbol 671 MovieClip Frame 2
onClipEvent (load) { timer = 0; pptimer = 0; this._visible = false; _parent.percent = 0; } onClipEvent (enterFrame) { if (_parent._currentframe != 10) { timer++; pptimer++; if (pptimer == 20) { _parent.percent = _parent.percent + 1.25; pptimer = 0; } if (timer == 200) { _parent.nextFrame(); timer = 0; } } }
Symbol 671 MovieClip Frame 10
stop();
Symbol 691 MovieClip Frame 1
this._visible = false; stop();
Symbol 691 MovieClip Frame 2
this._visible = true; stop();
Instance of Symbol 653 MovieClip in Symbol 691 MovieClip Frame 2
onClipEvent (load) { timer = 0; _parent.percent = 0; pptimer = 0; this._visible = false; } onClipEvent (enterFrame) { timer++; pptimer++; if (pptimer > 20) { _parent.percent = _parent.percent + 1.25; pptimer = 0; } if (timer == 200) { _parent.nextFrame(); timer = 0; } }
Symbol 691 MovieClip Frame 9
Symbol 691 MovieClip Frame 10
len = _root.structurearray.length - 1; if (_root[_root.structurearray[len]]._x != undefined) { af = _root.structurearray[len]; _root.sidebar.enemynuketimer.gotoAndPlay(2); _root.attachMovie("flag2", "nuclearstrike2", _root.n); _root.nuclearstrike2._x = _root[af]._x; _root.nuclearstrike2._y = _root[af]._y; _root.objarray.push("nuclearstrike2"); _root.n++; hit = true; _root.attachMovie("nukemiss2", "nukemiss2", _root.n); _root.nukemiss2._x = _root.enemyweaponsilo1._x; _root.nukemiss2._y = _root.enemyweaponsilo1._y; _root.n++; }
Symbol 694 Button
on (press) { if (_root.soundon) { soundobj = new Sound(); soundobj.attachSound("blip"); soundobj.start(); } i = 20; while (i > 0) { if (this._name == ("d" + i)) { unit = _root.selectedarray[i - 1]; hp = _root[unit].life; if ((hp > 0) && (hp != undefined)) { firepower = _root[unit].damage; hp2 = _root[unit].fulllife; rate = 1 / _root[unit].firerate; speed = _root[unit].speed; range = _root[unit].range; unittype = _root[unit].unittype; _parent.unittype = unittype; if (unittype == "light") { unittype2 = "Light Tank"; } else if (unittype == "heavy") { unittype2 = "Heavy Tank"; } else if (unittype == "rocket") { unittype2 = "Rocket Launcher"; } else if (unittype == "humvee") { unittype2 = "Humvee"; } else if (unittype == "artillery") { unittype2 = "Artillery"; } else if (unittype == "dozer") { unittype2 = "Construction Dozer"; } i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; _root[current].selector._visible = false; _root[current].selected1 = false; i--; } _parent.unit = unit; _root.selectedarray = [unit]; _root[unit].selector._visible = true; _parent.stats = (((((((((((((((((unittype2 + newline) + newline) + "firepower:") + firepower) + newline) + "HP:") + hp) + "/") + hp2) + newline) + "speed:") + speed) + newline) + "rate of fire:") + rate) + newline) + "range:") + range; _parent.gotoAndStop("selected"); } } i--; } }
Symbol 712 MovieClip Frame 1
stop();
Symbol 712 MovieClip Frame 2
stop();
Instance of Symbol 20 MovieClip "boxns" in Symbol 712 MovieClip Frame 2
onClipEvent (load) { if (_root[_parent.unit].enemy) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 24 MovieClip in Symbol 712 MovieClip Frame 2
onClipEvent (load) { if (!_root[_parent.unit].accurate) { this._visible = false; } }
Instance of Symbol 26 MovieClip in Symbol 712 MovieClip Frame 2
onClipEvent (load) { if (!_root[_parent.unit].nuke) { this._visible = false; } }
Instance of Symbol 28 MovieClip in Symbol 712 MovieClip Frame 2
onClipEvent (load) { if (!_root[_parent.unit].emp) { this._visible = false; } }
Symbol 712 MovieClip Frame 3
stop();
Instance of Symbol 34 MovieClip in Symbol 712 MovieClip Frame 3
onClipEvent (load) { if (!_root[_parent.unit].shell2) { this._visible = false; } }
Instance of Symbol 36 MovieClip in Symbol 712 MovieClip Frame 3
onClipEvent (load) { if (!_root[_parent.unit].hitonly) { this._visible = false; } }
Instance of Symbol 38 MovieClip in Symbol 712 MovieClip Frame 3
onClipEvent (load) { if (!_root[_parent.unit].auto) { this._visible = false; } }
Symbol 712 MovieClip Frame 4
stop();
Instance of Symbol 41 MovieClip in Symbol 712 MovieClip Frame 4
onClipEvent (load) { if (!_root[_parent.unit].seeker) { this._visible = false; } }
Instance of Symbol 43 MovieClip in Symbol 712 MovieClip Frame 4
onClipEvent (load) { if (_root[_parent.unit].miss != 3) { this._visible = false; } }
Instance of Symbol 45 MovieClip in Symbol 712 MovieClip Frame 4
onClipEvent (load) { if (_root[_parent.unit].miss != 2) { this._visible = false; } }
Instance of Symbol 47 MovieClip in Symbol 712 MovieClip Frame 4
onClipEvent (load) { if (!_root[_parent.unit].blast) { this._visible = false; } }
Symbol 712 MovieClip Frame 5
stop();
Instance of Symbol 50 MovieClip in Symbol 712 MovieClip Frame 5
onClipEvent (load) { if (!_root[_parent.unit].gatling) { this._visible = false; } }
Instance of Symbol 52 MovieClip in Symbol 712 MovieClip Frame 5
onClipEvent (load) { if (!_root[_parent.unit].laser) { this._visible = false; } }
Symbol 712 MovieClip Frame 6
stop();
Instance of Symbol 59 MovieClip in Symbol 712 MovieClip Frame 6
onClipEvent (load) { if (!_root[_parent.unit].crush) { this._visible = false; } }
Instance of Symbol 45 MovieClip in Symbol 712 MovieClip Frame 6
onClipEvent (load) { if (!_root[_parent.unit].missile) { this._visible = false; } }
Instance of Symbol 36 MovieClip in Symbol 712 MovieClip Frame 6
onClipEvent (load) { if (!_root[_parent.unit].hitonly) { this._visible = false; } }
Instance of Symbol 38 MovieClip in Symbol 712 MovieClip Frame 6
onClipEvent (load) { if (!_root[_parent.unit].auto) { this._visible = false; } }
Symbol 712 MovieClip Frame 7
stop();
Symbol 712 MovieClip Frame 8
stop();
Symbol 712 MovieClip Frame 9
stop();
Symbol 712 MovieClip Frame 10
stop();
Symbol 712 MovieClip Frame 11
stop();
Symbol 712 MovieClip Frame 12
stop();
Symbol 712 MovieClip Frame 13
stop();
Symbol 712 MovieClip Frame 14
stop();
Symbol 712 MovieClip Frame 15
stop();
Symbol 712 MovieClip Frame 16
stop();
Symbol 712 MovieClip Frame 17
stop();
Symbol 712 MovieClip Frame 18
stop();
Symbol 712 MovieClip Frame 19
stop();
Symbol 712 MovieClip Frame 20
stop();
Symbol 712 MovieClip Frame 21
stop();
Symbol 712 MovieClip Frame 22
stop();
Symbol 712 MovieClip Frame 23
stop();
Symbol 714 MovieClip Frame 1
stop();
Symbol 714 MovieClip Frame 2
stop();
Instance of Symbol 96 MovieClip "picture" in Symbol 714 MovieClip Frame 2
onClipEvent (load) { this.gotoAndStop(_parent.unittype); } onClipEvent (enterFrame) { unit = _parent.unit; hp = Math.round(_root[unit].life); if ((hp < 0) || (hp == undefined)) { _parent.prevFrame(); } firepower = _root[unit].damage; hp2 = _root[unit].fulllife; rate = _root[unit].firerate; speed = _root[unit].speed; shellspd = _root[unit].shellspd; range = _root[unit].range; unittype = _root[unit].unittype; _parent.unittype = unittype; if (unittype == "light") { unittype2 = "Light Tank"; } if (unittype == "lasertank") { unittype2 = "Laser Tank"; } if (unittype == "techcentre") { unittype2 = "Tech Centre"; } if (unittype == "heavy") { unittype2 = "Heavy Tank"; } if (unittype == "rocket") { unittype2 = "Rocket Launcher"; } if (unittype == "humvee") { unittype2 = "Humvee"; } if (unittype == "artillery") { unittype2 = "Artillery"; } if (unittype == "war factory") { unittype2 = "War Factory"; } if (unittype == "dozer") { unittype2 = "Construction Dozer"; } if (unittype == "comcentre") { unittype2 = "Command Centre"; } if (unittype == "oiltruck") { unittype2 = "Oil Truck"; } if (unittype == "refinery") { unittype2 = "Oil Refinery"; } if (unittype == "construction") { unittype2 = "Construction Site"; } if (unittype == "turret1") { unittype2 = "Gattling Turret"; } if (unittype == "turret2") { unittype2 = "Patriot Missile"; } if (unittype == "turret3") { unittype2 = "Laser"; } if (unittype == "servicedepot") { unittype2 = "Service Depot"; } if (unittype == "mine") { unittype2 = "Mine"; } if (unittype == "weaponsilo") { unittype2 = "Weapon Silo"; } if (unittype == "derrick") { unittype2 = "Oil Derrick"; } if (unittype == "airport") { unittype2 = "Airport"; } if (unittype == "radar") { unittype2 = "SensorNet"; } if (_root[unit].enemy) { unittype2 = "Enemy " + unittype2; } if (_root[unit].ally) { unittype2 = "Allied " + unittype2; } i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; _root[current].selector._visible = false; _root[current].selected1 = false; i--; } aggressive = _root[unit].aggressive; avoid = _root[unit].avoid; _root.selectedarray = [unit]; _root[unit].selector._visible = true; _parent.stats = (((((((((((((((((((((((unittype2 + newline) + "firepower:") + firepower) + newline) + "HP:") + hp) + "/") + hp2) + newline) + "speed:") + speed) + newline) + "weapon speed:") + shellspd) + newline) + "reload time:") + rate) + newline) + "range:") + range) + "\n guardmode:") + aggressive) + "\n avoid fire:") + avoid; }
Instance of Symbol 24 MovieClip in Symbol 714 MovieClip Frame 2
onClipEvent (enterFrame) { if (!_root[_parent.unit].accurate) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 26 MovieClip in Symbol 714 MovieClip Frame 2
onClipEvent (enterFrame) { if (!_root[_parent.unit].nuke) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 28 MovieClip in Symbol 714 MovieClip Frame 2
onClipEvent (load) { if (!_root[_parent.unit].emp) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 34 MovieClip in Symbol 714 MovieClip Frame 2
onClipEvent (enterFrame) { if (!_root[_parent.unit].shell2) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 36 MovieClip in Symbol 714 MovieClip Frame 2
onClipEvent (enterFrame) { if (!_root[_parent.unit].hitonly) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 38 MovieClip in Symbol 714 MovieClip Frame 2
onClipEvent (enterFrame) { if (!_root[_parent.unit].auto) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 50 MovieClip in Symbol 714 MovieClip Frame 2
onClipEvent (enterFrame) { if (!_root[_parent.unit].gatling) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 52 MovieClip in Symbol 714 MovieClip Frame 2
onClipEvent (enterFrame) { if (!_root[_parent.unit].laser) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 59 MovieClip in Symbol 714 MovieClip Frame 2
onClipEvent (enterFrame) { if (!_root[_parent.unit].crush) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 43 MovieClip in Symbol 714 MovieClip Frame 2
onClipEvent (enterFrame) { if (_root[_parent.unit].miss != 3) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 41 MovieClip in Symbol 714 MovieClip Frame 2
onClipEvent (enterFrame) { if (!_root[_parent.unit].seeker) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 45 MovieClip in Symbol 714 MovieClip Frame 2
onClipEvent (enterFrame) { if ((_root[_parent.unit].miss != 2) || (_root[_parent.unit].missile && (_root[_parent.unit].unittype == "heavy"))) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 47 MovieClip in Symbol 714 MovieClip Frame 2
onClipEvent (enterFrame) { if (!_root[_parent.unit].blast) { this._visible = false; } else { this._visible = true; } }
Symbol 718 Button
on (press) { if (_root.soundon) { soundobj = new Sound(); soundobj.attachSound("click"); soundobj.start(); } i = _parent.selectedarray.length - 1; while (i > -1) { current = _parent.selectedarray[i]; if (((_parent[current].speed != undefined) && (_parent[current].damage != undefined)) && (!_parent[current].enemy)) { _parent[current].targetobj = undefined; _parent[current].fireing = false; _parent[current].attack = false; flag = _parent[current].dummy.flag; _root[_parent[current].dummy.flag].removeMovieClip(); _root.objarray.findandsplice(flag); _root.flagsarray.findandsplice(flag); _parent[current].walking = false; } i--; } } on (rollOver) { build.texts = "Stops the selected units"; texts = "Stops the selected units"; } on (rollOut) { texts = ""; build.texts = ""; }
Symbol 722 Button
on (press) { if (_root.soundon) { soundobj = new Sound(); soundobj.attachSound("click"); soundobj.start(); } i = _parent.selectedarray.length - 1; while (i > -1) { current = _parent.selectedarray[i]; if (((!_parent[current].enemy) && (_parent[current].speed != undefined)) && (_parent[current].damage != undefined)) { _parent[current].aggressive = false; } i--; } } on (rollOver) { build.texts = "Forces all selected units into 'harmless' mode.\n 'harmless' units won't attack any unit unless ordered to."; texts = "Forces all selected units into 'harmless' mode.\n 'harmless' units won't attack any unit unless ordered to."; } on (rollOut) { texts = ""; build.texts = ""; }
Symbol 726 Button
on (press) { if (_root.soundon) { soundobj = new Sound(); soundobj.attachSound("click"); soundobj.start(); } _root.formation = "sparse"; } on (rollOver) { build.texts = "The selected units will gather in a scattered formation at the location specified by the mouse"; texts = "The selected units will gather in a scattered formation at the location specified by the mouse"; } on (rollOut) { texts = ""; build.texts = ""; }
Symbol 738 Button
on (press) { doo(); } on (rollOver) { _root.sidebar.texts = ((texts + newline) + "cost:$") + calculatecost; } on (rollOut) { _root.sidebar.texts = ""; }
Symbol 739 MovieClip Frame 1
stop();
Symbol 739 MovieClip Frame 2
stop();
Symbol 740 Button
on (press) { doo(); } on (rollOver) { _root.sidebar.texts = ((texts + newline) + "cost:$") + calculatecost; } on (rollOut) { _root.sidebar.texts = ""; }
Symbol 741 MovieClip Frame 1
stop();
Symbol 741 MovieClip Frame 2
stop();
Symbol 745 Button
on (press) { if (_root.sidebar._visible) { this.build._visible = true; i = 20; while (i > -1) { this["s" + i].gotoAndStop(1); i--; } } } on (keyPress "D") { if (_root.sidebar._visible) { this.build._visible = true; i = 20; while (i > -1) { this["s" + i].gotoAndStop(1); i--; } } }
Symbol 749 Button
on (press) { if (_root.soundon) { soundobj = new Sound(); soundobj.attachSound("click"); soundobj.start(); } if (_root.money >= cost) { if (_parent.buildlist.length == 0) { play(); } else { gotoAndStop ("reserved"); } _root.money = _root.money - cost; this.buildno++; _parent.buildlist.push(unittype); } } on (rollOver) { _parent.texts = ((texts + newline) + "cost:$") + calculatecost; } on (rollOut) { _parent.texts = ""; }
Symbol 751 Button
on (press) { doo(); } on (rollOver) { _root.sidebar.texts = texts; } on (rollOut) { _root.sidebar.texts = ""; }
Symbol 752 Button
on (press) { if (_root.soundon) { soundobj = new Sound(); soundobj.attachSound("click"); soundobj.start(); } if (_root.money >= cost) { _root.money = _root.money - cost; this.buildno++; _parent.buildlist.push(unittype); } } on (rollOver) { _root.sidebar.texts = ((texts + newline) + "cost:$") + calculatecost; } on (rollOut) { _root.sidebar.texts = ""; }
Symbol 760 Button
on (press) { if (_root.moeny >= cost) { if (_parent.buildlist.length == 0) { play(); } _root.money = _root.money - cost; this.buildno++; this.s.queue++; _parent.buildlist.push(unittype); } } on (rollOver) { _parent.texts = ((texts + newline) + "cost:$") + calculatecost; } on (rollOut) { _parent.texts = ""; }
Symbol 761 MovieClip Frame 1
if (_root.warfactory < 1) { stop(); }
Instance of Symbol 748 MovieClip in Symbol 761 MovieClip Frame 1
onClipEvent (mouseDown) { if ((_root.money > _parent.cost) && (_root.warfactory1._x != undefined)) { _parent.gotoAndStop(2); } }
Symbol 761 MovieClip Frame 2
stop();
Symbol 761 MovieClip Frame 3
stop();
Instance of Symbol 653 MovieClip in Symbol 761 MovieClip Frame 3
onClipEvent (load) { timer = 0; this.queue = _parent.buildno; } onClipEvent (enterFrame) { timer++; if (timer >= _parent.rates) { _parent.nextFrame(); timer = 0; } this.queue = _parent.buildno; }
Symbol 761 MovieClip Frame 11
type = _parent.buildlist.shift(); type2 = _parent.buildlist[0]; _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.warfactory1._x; _root[unittype + _root.n]._y = _root.warfactory1._y; _root[unittype + _root.n]._rotation = 0; _root.rallylist.push(unittype + _root.n); _root.n++; _root.built++; if (_parent.buildlist[0] == unittype) { gotoAndPlay ("building"); } else { gotoAndStop ("reserved"); _parent[type2].gotoAndPlay("building"); } buildno--; if (buildno == 0) { gotoAndStop (2); }
Symbol 761 MovieClip Frame 12
stop();
Instance of Symbol 653 MovieClip "s" in Symbol 761 MovieClip Frame 12
onClipEvent (load) { this.queue = _parent.buildno; }
Symbol 763 Button
on (press) { if (_root.sidebar._visible) { _visible = false; } } on (keyPress "A") { if (_root.sidebar._visible) { _visible = false; } }
Symbol 764 Button
on (press) { if (_root.money >= cost) { play(); _root.money = _root.money - cost; this.buildno++; } } on (rollOver) { _parent.texts = ((texts + newline) + "cost:$") + calculatecost; } on (rollOut) { _parent.texts = ""; }
Symbol 765 Button
on (press) { if (_root.money >= cost) { _root.money = _root.money - cost; this.buildno++; } } on (rollOver) { _root.sidebar.texts = ((texts + newline) + "cost:$") + calculatecost; } on (rollOut) { _root.sidebar.texts = ""; }
Symbol 766 MovieClip Frame 1
stop();
Instance of Symbol 748 MovieClip in Symbol 766 MovieClip Frame 1
onClipEvent (mouseDown) { if ((_root.money > _parent.cost) && (_root.comcentre1.life != undefined)) { _parent.gotoAndStop(2); } }
Symbol 766 MovieClip Frame 2
stop();
Symbol 766 MovieClip Frame 3
stop();
Instance of Symbol 653 MovieClip in Symbol 766 MovieClip Frame 3
onClipEvent (load) { timer = 0; this.queue = _parent.buildno; } onClipEvent (enterFrame) { timer++; if (timer >= _parent.rates) { _parent.nextFrame(); timer = 0; } this.queue = _parent.buildno; }
Symbol 766 MovieClip Frame 11
_root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.comcentre1._x; _root[unittype + _root.n]._y = _root.comcentre1._y; _root[unittype + _root.n]._rotation = 0; _root.n++; buildno--; if (buildno == 0) { gotoAndStop (2); } else { gotoAndPlay (3); }
Symbol 767 Button
on (press) { if (_root.soundon) { soundobj = new Sound(); soundobj.attachSound("click"); soundobj.start(); } if (_root.money >= cost) { _root.attachMovie("construction", "construction" + _root.n, _root.n); _root["construction" + _root.n].drag = true; _root["construction" + _root.n].structure = structure; _root["construction" + _root.n].buildrate = buildrate; _root["construction" + _root.n].cost = cost; found = false; i = _root.selectedarray.length - 1; while (i > -1) { elementsearched = _root.selectedarray[i]; if (((_root[elementsearched].unittype == "dozer") && (!_root[elementsearched].enemy)) && (!_root[elementsearched].build)) { found = elementsearched; break; } i--; } _root["construction" + _root.n].dozer = found; _root.n++; if (found != false) { _root.money = _root.money - cost; nextFrame(); } } } on (rollOver) { _parent.texts = ((texts + newline) + "cost:$") + calculatecost; } on (rollOut) { _parent.texts = ""; }
Symbol 769 MovieClip Frame 1
stop();
Instance of Symbol 748 MovieClip in Symbol 769 MovieClip Frame 1
/* no clip actions */
Symbol 769 MovieClip Frame 2
stop();
Symbol 769 MovieClip Frame 3
stop();
Instance of Symbol 748 MovieClip in Symbol 769 MovieClip Frame 3
onClipEvent (mouseDown) { if (_root[structure] < 0) { gotoAndStop (1); } }
Symbol 770 Button
on (press) { if (_root.soundon) { soundobj = new Sound(); soundobj.attachSound("click"); soundobj.start(); } if (_root.money >= cost) { _root.attachMovie("construction2", "construction2" + _root.n, _root.n); _root["construction2" + _root.n].drag = true; _root["construction2" + _root.n].structure = structure; _root["construction2" + _root.n].buildrate = buildrate; _root["construction2" + _root.n].cost = cost; found = false; i = _root.selectedarray.length - 1; while (i > -1) { elementsearched = _root.selectedarray[i]; if (((_root[elementsearched].unittype == "dozer") && (!_root[elementsearched].enemy)) && (!_root[elementsearched].build)) { found = elementsearched; break; } i--; } _root["construction2" + _root.n].dozer = found; _root.n++; if (found != false) { _root.money = _root.money - cost; } } } on (rollOver) { _parent.texts = ((texts + newline) + "cost:$") + calculatecost; } on (rollOut) { _parent.texts = ""; }
Symbol 771 MovieClip Frame 1
stop();
Instance of Symbol 748 MovieClip in Symbol 771 MovieClip Frame 1
/* no clip actions */
Symbol 771 MovieClip Frame 2
stop();
Symbol 772 Button
on (press) { if (_root.soundon) { soundobj = new Sound(); soundobj.attachSound("click"); soundobj.start(); } if (_root.money >= cost) { if (_parent.buildlist.length == 0) { play(); } else { gotoAndStop ("reserved"); } _root.money = _root.money - cost; this.buildno++; _parent.buildlist.push(unittype); } } on (rollOver) { _parent.texts = ((texts + newline) + "cost:$") + calculatecost; } on (rollOut) { _parent.texts = ""; }
Symbol 773 Button
on (rollOver) { _root.sidebar.texts = ((texts + newline) + "cost:$") + calculatecost; } on (rollOut) { _root.sidebar.texts = ""; }
Symbol 775 MovieClip Frame 1
if (_root.warfactory < 1) { stop(); }
Instance of Symbol 748 MovieClip in Symbol 775 MovieClip Frame 1
onClipEvent (mouseDown) { if (((_root.money > _parent.cost) && (_root.warfactory1._x != undefined)) && (_root.techcentre1._x != undefined)) { _parent.gotoAndStop(2); } }
Symbol 775 MovieClip Frame 2
stop();
Symbol 775 MovieClip Frame 3
stop();
Instance of Symbol 653 MovieClip in Symbol 775 MovieClip Frame 3
onClipEvent (load) { timer = 0; this.queue = _parent.buildno; } onClipEvent (enterFrame) { timer++; if (timer >= _parent.rates) { _parent.nextFrame(); timer = 0; } this.queue = _parent.buildno; }
Symbol 775 MovieClip Frame 11
type = _parent.buildlist.shift(); type2 = _parent.buildlist[0]; _root.attachMovie(unittype, unittype + _root.n, _root.n); _root[unittype + _root.n]._x = _root.warfactory1._x; _root[unittype + _root.n]._y = _root.warfactory1._y; _root[unittype + _root.n]._rotation = 0; _root.rallylist.push(unittype + _root.n); _root.n++; _root.built++; gotoAndStop ("already"); _parent[type2].gotoAndPlay("building"); buildno--; if (buildno == 0) { gotoAndStop (2); }
Symbol 775 MovieClip Frame 12
stop();
Instance of Symbol 653 MovieClip "s" in Symbol 775 MovieClip Frame 12
onClipEvent (load) { this.queue = _parent.buildno; }
Symbol 775 MovieClip Frame 13
stop();
Symbol 776 Button
on (press) { if (_root.money >= cost) { _root.attachMovie("construction", "construction" + _root.n, _root.n); _root["construction" + _root.n].drag = true; _root["construction" + _root.n].structure = structure; _root["construction" + _root.n].buildrate = buildrate; found = false; i = _root.selectedarray.length - 1; while (i > -1) { elementsearched = _root.selectedarray[i]; if (((_root[elementsearched].unittype == "dozer") && (!_root[elementsearched].enemy)) && (!_root[elementsearched].build)) { found = elementsearched; break; } i--; } _root["construction" + _root.n].dozer = found; _root.n++; if (found != false) { _root.money = _root.money - cost; nextFrame(); } } } on (rollOver) { _parent.texts = ((texts + newline) + "cost:$") + calculatecost; } on (rollOut) { _parent.texts = ""; }
Symbol 777 MovieClip Frame 1
stop();
Instance of Symbol 748 MovieClip in Symbol 777 MovieClip Frame 1
/* no clip actions */
Symbol 777 MovieClip Frame 2
stop();
Symbol 777 MovieClip Frame 3
stop();
Instance of Symbol 748 MovieClip in Symbol 777 MovieClip Frame 3
onClipEvent (mouseDown) { if (_root[structure] < 0) { gotoAndStop (1); } }
Instance of Symbol 761 MovieClip "humvee" in Symbol 778 MovieClip Frame 1
onClipEvent (load) { unittype = "humvee"; buildno = 0; rates = 2; cost = 500; calculatecost = cost; texts = "Build Humvee\n\nA fast agile unit with high rate of fire\nbasic firepower:7\nbasic HP:200"; } onClipEvent (mouseDown) { if (_root.warfactory1.life == undefined) { gotoAndStop (1); } }
Instance of Symbol 761 MovieClip "light" in Symbol 778 MovieClip Frame 1
onClipEvent (load) { unittype = "light"; buildno = 0; rates = 5; cost = 1000; calculatecost = cost; texts = "Build Light Tank\n\nA medium sized armoured unit\nbasic firepower:20\nbasic HP:300"; } onClipEvent (mouseDown) { if (_root.warfactory1.life == undefined) { gotoAndStop (1); } }
Instance of Symbol 761 MovieClip "rocket" in Symbol 778 MovieClip Frame 1
onClipEvent (load) { unittype = "rocket"; buildno = 0; rates = 8; cost = 1500; calculatecost = cost; texts = "Build Rocket Launcher\n\nSlow but deadly unit in terms of firepower\nbasic firepower:50\nbasic HP:250"; } onClipEvent (mouseDown) { if (_root.warfactory1.life == undefined) { gotoAndStop (1); } }
Instance of Symbol 761 MovieClip "artillery" in Symbol 778 MovieClip Frame 1
onClipEvent (load) { unittype = "artillery"; buildno = 0; rates = 13; cost = 2000; calculatecost = cost; texts = "Build Artillery\nLong range unit used to lob shells great distances.Must be deployed to fire.\nbasic firepower:35\nbasic HP:300"; } onClipEvent (mouseDown) { if (_root.warfactory1.life == undefined) { gotoAndStop (1); } }
Instance of Symbol 761 MovieClip "heavy" in Symbol 778 MovieClip Frame 1
onClipEvent (load) { unittype = "heavy"; buildno = 0; rates = 15; cost = 2500; calculatecost = cost; texts = "Build Heavy Tank\n\nLarge,lumbering but heavily armoured unit\nbasic firepower:30\nbasic HP:600"; } onClipEvent (mouseDown) { if (_root.warfactory1.life == undefined) { gotoAndStop (1); } }
Instance of Symbol 766 MovieClip "dozer" in Symbol 778 MovieClip Frame 1
onClipEvent (load) { unittype = "dozer"; buildno = 0; rates = 8; cost = 1000; calculatecost = cost; texts = "Build Dozer\n\nUsed to construct or repair buildings"; } onClipEvent (mouseDown) { if (_root.comcentre1.life == undefined) { gotoAndStop (1); } }
Instance of Symbol 196 MovieClip "oilbar" in Symbol 778 MovieClip Frame 1
onClipEvent (enterFrame) { this._xscale = 100 * (_parent.oil / _parent.fulloil); }
Instance of Symbol 761 MovieClip "oiltruck" in Symbol 778 MovieClip Frame 1
onClipEvent (load) { unittype = "oiltruck"; buildno = 0; rates = 7; cost = 1500; calculatecost = cost; texts = "Build Oil Truck\n\nGathers oil from oil wells and converts it into cash "; }
Instance of Symbol 769 MovieClip "comcentre" in Symbol 778 MovieClip Frame 1
onClipEvent (load) { structure = "comcentre"; cost = 5000; calculatecost = cost; buildrate = 0.5; texts = "Build Command Centre\n\nWhere you build dozers to construct or repair your base.Provides radar."; } onClipEvent (mouseUp) { if (this._currentframe != 3) { if (_root[structure] > 0) { gotoAndStop (3); } found = false; i = _root.selectedarray.length - 1; while (i > -1) { elementsearched = _root.selectedarray[i]; if ((_root[elementsearched].unittype == "dozer") && (!_root[elementsearched].enemy)) { found = true; break; } i--; } if ((_root.money > cost) && (found)) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 769 MovieClip "refinery" in Symbol 778 MovieClip Frame 1
onClipEvent (load) { structure = "refinery"; cost = 2000; calculatecost = cost; buildrate = 1; texts = "Build Refinery\n\nUsed by oil trucks to refine oil and convert it into cash"; } onClipEvent (mouseUp) { if (this._currentframe != 3) { if (_root[structure] > 0) { gotoAndStop (3); } found = false; i = _root.selectedarray.length - 1; while (i > -1) { elementsearched = _root.selectedarray[i]; if ((_root[elementsearched].unittype == "dozer") && (!_root[elementsearched].enemy)) { found = true; break; } i--; } if (((_root.money > cost) && (found)) && (_root.comcentre1._x != undefined)) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 769 MovieClip "warfactory" in Symbol 778 MovieClip Frame 1
onClipEvent (load) { structure = "warfactory"; cost = 2000; calculatecost = cost; buildrate = 1; texts = "Build War Factory\n\nBuilds your units."; } onClipEvent (mouseUp) { if (this._currentframe != 3) { if (_root[structure] > 0) { gotoAndStop (3); } found = false; i = _root.selectedarray.length - 1; while (i > -1) { elementsearched = _root.selectedarray[i]; if ((_root[elementsearched].unittype == "dozer") && (!_root[elementsearched].enemy)) { found = true; break; } i--; } if (((_root.money > cost) && (found)) && (_root.comcentre1._x != undefined)) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 769 MovieClip "techcentre" in Symbol 778 MovieClip Frame 1
onClipEvent (load) { structure = "techcentre"; cost = 1500; calculatecost = cost; buildrate = 0.7; texts = "Build Tech Centre\n\nEnables unit upgrading, and the laser tank prototype, and weapon silo to be built"; } onClipEvent (mouseUp) { if (this._currentframe != 3) { if (_root[structure] > 0) { gotoAndStop (3); } found = false; i = _root.selectedarray.length - 1; while (i > -1) { elementsearched = _root.selectedarray[i]; if ((_root[elementsearched].unittype == "dozer") && (!_root[elementsearched].enemy)) { found = true; break; } i--; } if (((_root.money > cost) && (found)) && (_root.warfactory1._x != undefined)) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 771 MovieClip "turrets" in Symbol 778 MovieClip Frame 1
onClipEvent (load) { structure = "turrets"; cost = 1000; calculatecost = cost; buildrate = 1.5; texts = "Build Gattling Turret\n\nBase Defense.Fires bullets in quick sucession."; } onClipEvent (mouseUp) { found = false; i = _root.selectedarray.length - 1; while (i > -1) { elementsearched = _root.selectedarray[i]; if ((_root[elementsearched].unittype == "dozer") && (!_root[elementsearched].enemy)) { found = true; break; } i--; } if (((_root.money > cost) && (found)) && (_root.comcentre1._x != undefined)) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 771 MovieClip "patriotmissile" in Symbol 778 MovieClip Frame 1
onClipEvent (load) { structure = "patriotmiss"; cost = 1500; calculatecost = cost; buildrate = 1.5; texts = "Build Patriot Missile Turret\n\nBase Defense.Fires 3 homing missiles at enemy."; } onClipEvent (mouseUp) { found = false; i = _root.selectedarray.length - 1; while (i > -1) { elementsearched = _root.selectedarray[i]; if ((_root[elementsearched].unittype == "dozer") && (!_root[elementsearched].enemy)) { found = true; break; } i--; } if (((_root.money > cost) && (found)) && (_root.comcentre1._x != undefined)) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 771 MovieClip "laser" in Symbol 778 MovieClip Frame 1
onClipEvent (load) { structure = "laserbasedefense"; cost = 1500; calculatecost = cost; buildrate = 1.5; texts = "Build Laser Turret\n\nBase Defense.Fires one devastating laser bolt at enemy."; } onClipEvent (mouseUp) { found = false; i = _root.selectedarray.length - 1; while (i > -1) { elementsearched = _root.selectedarray[i]; if ((_root[elementsearched].unittype == "dozer") && (!_root[elementsearched].enemy)) { found = true; break; } i--; } if (((_root.money > cost) && (found)) && (_root.comcentre1._x != undefined)) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 769 MovieClip "servicedepot" in Symbol 778 MovieClip Frame 1
onClipEvent (load) { structure = "servicedepot"; cost = 1500; calculatecost = cost; buildrate = 1; texts = "Build Service Depot\n\nRepairs damaged units that come on top of it."; } onClipEvent (mouseUp) { if (this._currentframe != 3) { if (_root[structure] > 0) { gotoAndStop (3); } found = false; i = _root.selectedarray.length - 1; while (i > -1) { elementsearched = _root.selectedarray[i]; if ((_root[elementsearched].unittype == "dozer") && (!_root[elementsearched].enemy)) { found = true; break; } i--; } if (((_root.money > cost) && (found)) && (_root.refinery1._x != undefined)) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 771 MovieClip "mine" in Symbol 778 MovieClip Frame 1
onClipEvent (load) { structure = "mine"; cost = 1000; calculatecost = cost; buildrate = 5; texts = "Build Mine\n\nBase Defense.Detonates when enemy units come too close, disabling and damaging it"; } onClipEvent (mouseUp) { found = false; i = _root.selectedarray.length - 1; while (i > -1) { elementsearched = _root.selectedarray[i]; if ((_root[elementsearched].unittype == "dozer") && (!_root[elementsearched].enemy)) { found = true; break; } i--; } if (((_root.money > cost) && (found)) && (_root.comcentre1._x != undefined)) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 775 MovieClip "lasertank" in Symbol 778 MovieClip Frame 1
onClipEvent (load) { unittype = "lasertank"; buildno = 0; rates = 30; cost = 5000; calculatecost = cost; texts = "Build Laser Tank\n\nPrototype special unit.Limited to one unit at a time\nbasic firepower:80\nbasic HP:1000"; } onClipEvent (mouseDown) { if (_root.warfactory1.life == undefined) { gotoAndStop (1); } }
Instance of Symbol 777 MovieClip "weaponsilo" in Symbol 778 MovieClip Frame 1
onClipEvent (load) { structure = "weaponsilo"; cost = 10000; calculatecost = cost; buildrate = 0.2; texts = "Build Weapon Silo\n\nUnleashes the Nuclear Missile superweapon "; } onClipEvent (mouseUp) { if (this._currentframe != 3) { if (_root[structure] > 0) { gotoAndStop (3); } found = false; i = _root.selectedarray.length - 1; while (i > -1) { elementsearched = _root.selectedarray[i]; if ((_root[elementsearched].unittype == "dozer") && (!_root[elementsearched].enemy)) { found = true; break; } i--; } if (((_root.money > cost) && (found)) && (_root.techcentre1._x != undefined)) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Symbol 782 Button
on (press) { if (_root.soundon) { soundobj = new Sound(); soundobj.attachSound("click"); soundobj.start(); } i = _parent.selectedarray.length - 1; while (i > -1) { current = _parent.selectedarray[i]; if ((_parent[current].unittype == "artillery") && (!_parent[current].enemy)) { _parent[current].deploy(); } i--; } } on (rollOver) { build.texts = "Deploys the selected artillery into firing position"; texts = "Deploys the selected artillery into firing position"; } on (rollOut) { texts = ""; build.texts = ""; }
Symbol 785 Button
on (press) { if (_root.soundon) { soundobj = new Sound(); soundobj.attachSound("click"); soundobj.start(); } i = _parent.selectedarray.length - 1; while (i > -1) { current = _parent.selectedarray[i]; if ((_parent[current].auto._x != undefined) && (!_parent[current].enemy)) { _parent[current].gotoAndPlay(10); _parent.money = _parent.money + _parent[current].life; _parent[current]._visible = false; } i--; } } on (rollOver) { build.texts = "Sells the selected structures for their HP worth of cash"; texts = "Sells the selected structures for their HP worth of cash"; } on (rollOut) { texts = ""; build.texts = ""; }
Symbol 789 Button
on (press) { if (_root.soundon) { soundobj = new Sound(); soundobj.attachSound("click"); soundobj.start(); } i = _parent.selectedarray.length - 1; while (i > -1) { current = _parent.selectedarray[i]; if (((!_parent[current].enemy) && (_parent[current].speed != undefined)) && (_parent[current].damage != undefined)) { _parent[current].aggressive = true; } i--; } } on (rollOver) { build.texts = "Sends all selected unit into guard mode.\n They will attack any enemy that comes near them."; texts = "Sends all selected unit into guard mode.\n They will attack any enemy that comes near them."; } on (rollOut) { texts = ""; build.texts = ""; }
Symbol 793 Button
on (press) { if (_root.soundon) { soundobj = new Sound(); soundobj.attachSound("click"); soundobj.start(); } i = _parent.selectedarray.length - 1; while (i > -1) { current = _parent.selectedarray[i]; if (((!_parent[current].enemy) && (_parent[current].speed != undefined)) && (_parent[current].damage != undefined)) { _parent[current].avoid = avoid; } i--; } avoid = !avoid; } on (rollOver) { build.texts = "Sends the selected units into 'stand ground' mode.\n They won't move around while firing to avoid return fire.\n Press again to disable 'stand ground' mode."; texts = "Sends the selected units into 'stand ground' mode.\n They won't move around while firing to avoid return fire.\n Press again to disable 'stand ground' mode."; } on (rollOut) { texts = ""; build.texts = ""; }
Symbol 797 Button
on (press) { if (_root.soundon) { soundobj = new Sound(); soundobj.attachSound("click"); soundobj.start(); } _root.formation = "line"; } on (rollOver) { build.texts = "The selected units will gather in a dense line formation at the location specified by the mouse"; texts = "The selected units will gather in a dense line formation at the location specified by the mouse"; } on (rollOut) { texts = ""; build.texts = ""; }
Symbol 803 MovieClip Frame 1
this._visible = false;
Symbol 804 MovieClip Frame 1
this.cacheAsBitmap = true; this.opaqueBackground = 0;
Symbol 819 MovieClip Frame 1
this.cacheAsBitmap = true; this.opaqueBackground = 0; stop();
Symbol 819 MovieClip Frame 2
stop();
Instance of Symbol 474 MovieClip "back" in Symbol 819 MovieClip Frame 8
/* no clip actions */
Instance of Symbol 478 MovieClip "back" in Symbol 819 MovieClip Frame 10
/* no clip actions */
Instance of Symbol 818 MovieClip "back" in Symbol 819 MovieClip Frame 11
/* no clip actions */
Symbol 823 MovieClip Frame 1
stop();
Symbol 823 MovieClip Frame 2
stop();
Symbol 828 Button
on (release) { _root.gotoAndStop("end"); }
Symbol 832 Button
on (release) { i = _root.friendlylist.length - 1; while (i > -1) { current = _root.friendlylist[i]; _root[current].life = 0; i--; } }
Instance of Symbol 369 MovieClip in Symbol 833 MovieClip Frame 1
/* no clip actions */
Symbol 834 MovieClip [sidebar] Frame 1
function calccost() { _root.money = Math.round(_root.money); if (_root.selectedarray.length == 0) { this.shower.gotoAndStop(1); } if (_root.selectedarray.length == 1) { this.shower.gotoAndStop(2); this.shower.unit = _root.selectedarray[0]; this.shower.unittype = _root[_root.selectedarray[0]].unittype; } else { this.shower.gotoAndStop(1); } laser = 0; hitonly = 0; firepower = 0; armour = 0; fire = 0; range = 0; speed = 0; shell = 0; auto = 0; loads = 0; miss2 = 0; crush = 0; seeker = 0; blast = 0; gatling = 0; accurate = 0; enemy = true; nuke = 0; emp = 0; rocket = false; light = false; humvee = false; artillery = false; heavy = false; i = 20; while (i > -1) { this["s" + i].gotoAndStop(1); this.shower["d" + Number(i + 1)].gotoAndStop(1); i--; } if (_root.selectedarray.length > 0) { this.s1.gotoAndStop(2); this.s2.gotoAndStop(2); this.s7.gotoAndStop(2); this.s8.gotoAndStop(2); this.s13.gotoAndStop(2); this.s14.gotoAndStop(2); } i = _root.selectedarray.length - 1; while (i > -1) { current = _root.selectedarray[i]; if (!this.build._visible) { if (_root.techcentre1._x != undefined) { if (!_root[current].enemy) { if (_root[current].upgrade < 5) { enemy = false; if (!isNaN(_root[current].damage)) { firepower = firepower + (_root[current].damage * 5); } if (!isNaN(_root[current].speed)) { speed = speed + (_root[current].speed * 100); } if (_root[current].shellspd != undefined) { shell = shell + (_root[current].shellspd * 20); } if (!isNaN(_root[current].damage)) { fire = fire + ((50 - _root[current].firerate) * 10); range = range + (_root[current].range * 9); } armour = armour + _root[current].fulllife; } } if (_root[current].unittype == "rocket") { if (!_root[current].enemy) { rocket = true; if (!_root[current].blast) { if (_root.money >= this.s16.cost) { this.s16.gotoAndStop(2); } blast = blast + this.s16.cost; } } } if (!_root[current].enemy) { if (_root[current].unittype == "rocket") { if (!_root[current].seeker) { if (_root.money >= this.s4.cost) { this.s4.gotoAndStop(2); } seeker = seeker + this.s4.cost; } } if (_root[current].unittype == "rocket") { if (_root[current].miss < 3) { if (_root.money >= this.s10.cost) { this.s10.gotoAndStop(2); } miss2 = miss2 + this.s10.cost; } } if (_root[current].unittype == "heavy") { heavy = true; if (!_root[current].missile) { this.s10.gotoAndStop(2); miss2 = miss2 + (this.s10.cost * 2); } } } if (_root[current].unittype == "humvee") { if (!_root[current].enemy) { if (!_root[current].gatling) { humvee = true; if (_root.money >= this.s5.cost) { this.s5.gotoAndStop(2); } gatling = gatling + this.s5.cost; } if (!_root[current].laser) { if (_root.money >= this.s11.cost) { this.s11.gotoAndStop(2); } laser = laser + this.s11.cost; } } } if (((_root[current].unittype == "rocket") || (_root[current].unittype == "light")) || (_root[current].unittype == "heavy")) { if (!_root[current].enemy) { if (!_root[current].hitonly) { hitonly = hitonly + this.s17.cost; if (_root.money >= this.s17.cost) { this.s17.gotoAndStop(2); } light = true; } } } if (_root[current].unittype == "artillery") { if (!_root[current].enemy) { artillery = true; if (!_root[current].accurate) { if (_root.money >= this.s6.cost) { this.s6.gotoAndStop(2); } accurate = accurate + this.s6.cost; } if (!_root[current].nuke) { if (_root.money >= this.s12.cost) { this.s12.gotoAndStop(2); } nuke = nuke + this.s12.cost; } if (!_root[current].emp) { if (_root.money >= this.s18.cost) { this.s18.gotoAndStop(2); } emp = emp + this.s18.cost; } } } if (_root[current].unittype == "light") { if (!_root[current].enemy) { if (!_root[current].shell2) { if (_root.money >= this.s3.cost) { this.s3.gotoAndStop(2); } loads = loads + this.s3.cost; } } } if (_root[current].unittype == "heavy") { if (!_root[current].enemy) { if (!_root[current].crush) { if (_root.money >= this.s9.cost) { this.s9.gotoAndStop(2); } crush = crush + this.s9.cost; } } } if (((_root[current].unittype == "light") || (_root[current].unittype == "heavy")) || (_root[current].unittype == "dozer")) { if (!_root[current].enemy) { if (!_root[current].auto) { if (_root.money >= this.s15.cost) { this.s15.gotoAndStop(2); } auto = auto + this.s15.cost; } } } } } if (_root[current].unittype == "rocket") { this.shower["d" + Number(i + 1)].gotoAndStop("rocket"); } if (_root[current].unittype == "humvee") { this.shower["d" + Number(i + 1)].gotoAndStop("humvee"); } if (_root[current].unittype == "artillery") { this.shower["d" + Number(i + 1)].gotoAndStop("artillery"); } if (_root[current].unittype == "light") { this.shower["d" + Number(i + 1)].gotoAndStop("light"); } if (_root[current].unittype == "heavy") { this.shower["d" + Number(i + 1)].gotoAndStop("heavy"); } if (_root[current].unittype == "war factory") { this.shower["d" + Number(i + 1)].gotoAndStop("war factory"); } if (_root[current].unittype == "dozer") { this.shower["d" + Number(i + 1)].gotoAndStop("dozer"); } if (_root[current].unittype == "comcentre") { this.shower["d" + Number(i + 1)].gotoAndStop("comcentre"); } if (_root[current].unittype == "lasertank") { this.shower["d" + Number(i + 1)].gotoAndStop("lasertank"); } if (_root[current].unittype == "oiltruck") { this.shower["d" + Number(i + 1)].gotoAndStop("oiltruck"); } if (_root[current].unittype == "refinery") { this.shower["d" + Number(i + 1)].gotoAndStop("refinery"); } if (_root[current].unittype == "construction") { this.shower["d" + Number(i + 1)].gotoAndStop("construction"); } if (_root[current].unittype == "turret1") { this.shower["d" + Number(i + 1)].gotoAndStop("turret1"); } if (_root[current].unittype == "mine") { this.shower["d" + Number(i + 1)].gotoAndStop("mine"); } if (_root[current].unittype == "turret2") { this.shower["d" + Number(i + 1)].gotoAndStop("turret2"); } if (_root[current].unittype == "servicedepot") { this.shower["d" + Number(i + 1)].gotoAndStop("servicedepot"); } if (_root[current].unittype == "turret3") { this.shower["d" + Number(i + 1)].gotoAndStop("turret3"); } if (_root[current].unittype == "weaponsilo") { this.shower["d" + Number(i + 1)].gotoAndStop("weaponsilo"); } if (_root[current].unittype == "techcentre") { this.shower["d" + Number(i + 1)].gotoAndStop("techcentre"); } if (_root[current].unittype == "derrick") { this.shower["d" + Number(i + 1)].gotoAndStop("derrick"); } if (_root[current].unittype == "airport") { this.shower["d" + Number(i + 1)].gotoAndStop("airport"); } if (_root[current].unittype == "radar") { this.shower["d" + Number(i + 1)].gotoAndStop("radar"); } this.shower["d" + Number(i + 1)].unit = current; i--; } if (this._currentframe == 1) { this.s6.calculatecost = accurate; this.s12.calculatecost = nuke; this.s18.calculatecost = emp; this.s9.calculatecost = crush; this.s3.calculatecost = loads; this.s15.calculatecost = auto; this.s16.calculatecost = blast; this.s11.calculatecost = laser; this.s10.calculatecost = miss2; this.s4.calculatecost = seeker; this.s5.calculatecost = gatling; this.s17.calculatecost = hitonly; this.s1.calculatecost = firepower; this.s2.calculatecost = fire; this.s7.calculatecost = armour; this.s8.calculatecost = range; this.s13.calculatecost = speed; this.s14.calculatecost = shell; i = 0; if (enemy) { this.s1.gotoAndStop(1); this.s2.gotoAndStop(1); this.s7.gotoAndStop(1); this.s8.gotoAndStop(1); this.s13.gotoAndStop(1); this.s14.gotoAndStop(1); } } } this.cacheAsBitmap = true; avoid = true; stop();
Instance of Symbol 714 MovieClip "shower" in Symbol 834 MovieClip [sidebar] Frame 1
onClipEvent (load) { _parent.build.buildlist = []; }
Instance of Symbol 739 MovieClip "s1" in Symbol 834 MovieClip [sidebar] Frame 1
onClipEvent (load) { function doo() { i = _root.selectedarray.length - 1; while (i > -1) { current = _root.selectedarray[i]; if (!_root[current].enemy) { if (((_root.money >= (_root[current].damage * 5)) && (!isNaN(_root[current].damage))) && (_root[current].upgrade < 5)) { _root.money = _root.money - (_root[current].damage * 5); _root[current].damage = _root[current].damage * 1.25; _root[current].upgrade++; } } i--; } } texts = "Firepower Uprgade\n\nIncrease the firepower of this unit by 25%"; } onClipEvent (enterFrame) { i = 18; while (i > 1) { if (_root.money < _parent["s" + i].cost) { _parent["s" + i].gotoAndStop(1); } i--; } }
Instance of Symbol 741 MovieClip "s2" in Symbol 834 MovieClip [sidebar] Frame 1
onClipEvent (load) { function doo() { i = _root.selectedarray.length - 1; while (i > -1) { current = _root.selectedarray[i]; if (!_root[current].enemy) { if (((_root.money >= ((50 - _root[current].firerate) * 10)) && (!isNaN(_root[current].firerate))) && (_root[current].upgrade < 5)) { _root.money = _root.money - ((50 - _root[current].firerate) * 10); _root[current].firerate = _root[current].firerate * 0.8; _root[current].upgrade++; } } i--; } } texts = "Reload time upgrade\n\nDecrease the reload time of this unit by 25%"; }
Instance of Symbol 741 MovieClip "s3" in Symbol 834 MovieClip [sidebar] Frame 1
onClipEvent (load) { function doo() { i = _root.selectedarray.length - 1; while (i > -1) { current = _root.selectedarray[i]; if ((!_root[current].enemy) && (_root[current].unittype == "light")) { if (!_root[current].shell2) { _root.money = _root.money - cost; _root[current].shell2 = true; if (_root.money < cost) { break; } } } i--; } } cost = 750; texts = "Autoloader\n\nLight Tanks can fire two shells at once"; }
Instance of Symbol 741 MovieClip "s4" in Symbol 834 MovieClip [sidebar] Frame 1
onClipEvent (load) { function doo() { i = _root.selectedarray.length - 1; while (i > -1) { current = _root.selectedarray[i]; if ((!_root[current].enemy) && (_root[current].unittype == "rocket")) { if (!_root[current].seeker) { _root.money = _root.money - cost; _root[current].seeker = true; if (_root.money < cost) { break; } } } i--; } } cost = 2000; texts = "Homing Missiles\n\nThis Rocket Launcher can fire homing missiles"; }
Instance of Symbol 741 MovieClip "s5" in Symbol 834 MovieClip [sidebar] Frame 1
onClipEvent (load) { function doo() { i = _root.selectedarray.length - 1; while (i > -1) { current = _root.selectedarray[i]; if ((!_root[current].enemy) && (_root[current].unittype == "humvee")) { if (!_root[current].gatling) { _root[current].gatling = true; _root.money = _root.money - cost; if (_root.money < cost) { break; } } } i--; } } cost = 1000; texts = "Gatling Gun\n\nIncreases the rate of fire of this Humvee drastically"; }
Instance of Symbol 741 MovieClip "s6" in Symbol 834 MovieClip [sidebar] Frame 1
onClipEvent (load) { function doo() { i = _root.selectedarray.length - 1; while (i > -1) { current = _root.selectedarray[i]; if ((!_root[current].enemy) && (_root[current].unittype == "artillery")) { if (!_root[current].accurate) { _root.money = _root.money - cost; _root[current].accurate = true; if (_root.money < cost) { break; } } } i--; } } cost = 3000; texts = "Accurate Targeting\n\nThis Artillery now hit all targets spot on."; }
Instance of Symbol 741 MovieClip "s7" in Symbol 834 MovieClip [sidebar] Frame 1
onClipEvent (load) { function doo() { i = _root.selectedarray.length - 1; while (i > -1) { current = _root.selectedarray[i]; if (!_root[current].enemy) { if ((_root.money >= _root[current].fulllife) && (_root[current].upgrade < 5)) { _root.money = _root.money - _root[current].fulllife; _root[current].life = _root[current].life * 1.25; _root[current].fulllife = _root[current].fulllife * 1.25; _root[current].upgrade++; } } i--; } } texts = "Armour Uprgade\n\nIncrease the HP of this unit by 25%"; }
Instance of Symbol 741 MovieClip "s8" in Symbol 834 MovieClip [sidebar] Frame 1
onClipEvent (load) { function doo() { i = _root.selectedarray.length - 1; while (i > -1) { current = _root.selectedarray[i]; if (!_root[current].enemy) { if (((_root.money >= (_root[current].range * 9)) && (!isNaN(_root[current].range))) && (_root[current].upgrade < 5)) { _root.money = _root.money - (_root[current].range * 9); _root[current].range = _root[current].range * 1.15; _root[current].upgrade++; } } i--; } } texts = "Range Uprgade\n\nIncrease the range of this unit by 15%"; }
Instance of Symbol 741 MovieClip "s14" in Symbol 834 MovieClip [sidebar] Frame 1
onClipEvent (load) { function doo() { i = _root.selectedarray.length - 1; while (i > -1) { current = _root.selectedarray[i]; if (!_root[current].enemy) { if (((_root.money >= (_root[current].shellspd * 20)) && (!isNaN(_root[current].shellspd))) && (_root[current].upgrade < 5)) { if (_root[current].shellspd != undefined) { _root.money = _root.money - (_root[current].shellspd * 20); _root[current].shellspd = _root[current].shellspd * 1.2; _root[current].upgrade++; } } } i--; } } texts = "Shell Speed Upgrade\n\nIncrease the speed of all projectiles fired by this unit by 20%"; }
Instance of Symbol 741 MovieClip "s9" in Symbol 834 MovieClip [sidebar] Frame 1
onClipEvent (load) { function doo() { i = _root.selectedarray.length - 1; while (i > -1) { current = _root.selectedarray[i]; if ((!_root[current].enemy) && (_root[current].unittype == "heavy")) { if (!_root[current].crush) { _root[current].crush = true; _root.money = _root.money - cost; if (_root.money < cost) { break; } } } i--; } } cost = 2000; texts = "Tank Crushers\n\nThis Heavy Tank can crush smaller vehicles by running on top of them"; }
Instance of Symbol 741 MovieClip "s15" in Symbol 834 MovieClip [sidebar] Frame 1
onClipEvent (load) { function doo() { i = _root.selectedarray.length - 1; while (i > -1) { current = _root.selectedarray[i]; if ((!_root[current].enemy) && (((_root[current].unittype == "light") || (_root[current].unittype == "heavy")) || (_root[current].unittype == "dozer"))) { if (!_root[current].auto) { _root[current].auto = true; _root.money = _root.money - cost; if (_root.money < cost) { break; } } } i--; } } cost = 2000; texts = "Auto Repair\n\nThis Light Tank , Heavy Tank or Construction Dozer can auto heal itself "; }
Instance of Symbol 741 MovieClip "s10" in Symbol 834 MovieClip [sidebar] Frame 1
onClipEvent (load) { function doo() { i = _root.selectedarray.length - 1; while (i > -1) { current = _root.selectedarray[i]; if ((!_root[current].enemy) && (_root[current].unittype == "rocket")) { if (_root[current].miss < 3) { _root.money = _root.money - cost; _root[current].miss++; } } if ((!_root[current].enemy) && (_root[current].unittype == "heavy")) { if (!_root[current].missile) { _root[current].missile = true; _root.money = _root.money - (cost * 2); if (_root.money < cost) { break; } } } i--; } } cost = 1000; texts = "Multiple Missiles\nThis Rocket Launcher fires 1 more missile (max 3) Heavy Tank also fires missiles"; }
Instance of Symbol 741 MovieClip "s16" in Symbol 834 MovieClip [sidebar] Frame 1
onClipEvent (load) { function doo() { i = _root.selectedarray.length - 1; while (i > -1) { current = _root.selectedarray[i]; if ((!_root[current].enemy) && (_root[current].unittype == "rocket")) { if (!_root[current].blast) { _root[current].blast = true; _root.money = _root.money - cost; if (_root.money < cost) { break; } } } i--; } } cost = 2500; texts = "Blast Effects\n\nMissiles damage the area around it when it hits."; }
Instance of Symbol 741 MovieClip "s17" in Symbol 834 MovieClip [sidebar] Frame 1
onClipEvent (load) { function doo() { i = _root.selectedarray.length - 1; while (i > -1) { current = _root.selectedarray[i]; if ((!_root[current].enemy) && (((_root[current].unittype == "rocket") || (_root[current].unittype == "light")) || (_root[current].unittype == "heavy"))) { if (!_root[current].hitonly) { _root.money = _root.money - cost; _root[current].hitonly = true; if (_root.money < cost) { break; } } } i--; } } cost = 1500; texts = "Friendly Targeting\n\nShells or missiles can no longer damage friendly units"; }
Instance of Symbol 741 MovieClip "s11" in Symbol 834 MovieClip [sidebar] Frame 1
onClipEvent (load) { function doo() { i = _root.selectedarray.length - 1; while (i > -1) { current = _root.selectedarray[i]; if ((!_root[current].enemy) && (_root[current].unittype == "humvee")) { if (!_root[current].laser) { _root.money = _root.money - cost; _root[current].laser = true; if (_root.money < cost) { break; } } } i--; } } cost = 1500; texts = "Laser Interceptors\nThis Humvee shoots a laser to intercept enemy missiles or shells and make them explode before the reach their targets"; }
Instance of Symbol 741 MovieClip "s18" in Symbol 834 MovieClip [sidebar] Frame 1
onClipEvent (load) { function doo() { i = _root.selectedarray.length - 1; while (i > -1) { current = _root.selectedarray[i]; if ((!_root[current].enemy) && (_root[current].unittype == "artillery")) { if (!_root[current].emp) { _root.money = _root.money - cost; _root[current].emp = true; if (_root.money < cost) { break; } } } i--; } } cost = 2500; texts = "EM pulse\n\nRounds from this artillery disable enemy units when hit."; }
Instance of Symbol 741 MovieClip "s12" in Symbol 834 MovieClip [sidebar] Frame 1
onClipEvent (load) { function doo() { i = _root.selectedarray.length - 1; while (i > -1) { current = _root.selectedarray[i]; if ((!_root[current].enemy) && (_root[current].unittype == "artillery")) { if (!_root[current].nuke) { _root.money = _root.money - cost; _root[current].nuke = true; if (_root.money < cost) { break; } } } i--; } } cost = 2500; texts = "Rad Cannon\nThis Artillery fires rounds that leave behind a green cloud of radiation which damages all units in that area for 10 seconds "; }
Instance of Symbol 741 MovieClip "s13" in Symbol 834 MovieClip [sidebar] Frame 1
onClipEvent (load) { function doo() { i = _root.selectedarray.length - 1; while (i > -1) { current = _root.selectedarray[i]; if (!_root[current].enemy) { if (((_root.money >= (_root[current].speed * 100)) && (!isNaN(_root[current].speed))) && (_root[current].upgrade < 5)) { _root.money = _root.money - (_root[current].speed * 100); _root[current].speed = _root[current].speed * 1.2; _root[current].upgrade++; } } i--; } } texts = "Speed Upgrade\n\nIncrease the speed of this unit by 20%"; }
Instance of Symbol 778 MovieClip "build" in Symbol 834 MovieClip [sidebar] Frame 1
onClipEvent (load) { this._visible = true; } onClipEvent (mouseDown) { if (_root.money < this.light.cost) { if (this.light._currentframe == 2) { this.light.gotoAndStop(1); } } if (_root.money < this.heavy.cost) { if (this.heavy._currentframe == 2) { this.heavy.gotoAndStop(1); } } if (_root.money < this.rocket.cost) { if (this.rocket._currentframe == 2) { this.rocket.gotoAndStop(1); } } if (_root.money < this.humvee.cost) { if (this.humvee._currentframe == 2) { this.humvee.gotoAndStop(1); } } if (_root.money < this.dozer.cost) { if (this.dozer._currentframe == 2) { this.dozer.gotoAndStop(1); } } if (_root.money < this.artillery.cost) { if (this.artillery._currentframe == 2) { this.artillery.gotoAndStop(1); } } if (_root.money < this.oiltruck.cost) { if (this.oiltruck._currentframe == 2) { this.oiltruck.gotoAndStop(1); } } }
Instance of Symbol 819 MovieClip "mapp" in Symbol 834 MovieClip [sidebar] Frame 1
/* no clip actions */
Instance of Symbol 833 MovieClip "escape" in Symbol 834 MovieClip [sidebar] Frame 1
onClipEvent (load) { this._visible = false; } onClipEvent (keyDown) { if (Key.isDown(13)) { this._visible = !this._visible; if (this._visible) { this._x = 650; } if (!this._visible) { this._x = 100; } _root.sidebar._visible = true; } }
Symbol 837 MovieClip [patriot] Frame 1
timer = 0; _root.shellarray.push(this._name); stop();
Instance of Symbol 361 MovieClip in Symbol 837 MovieClip [patriot] Frame 1
onClipEvent (enterFrame) { if (_parent.seeker) { if (_root[_parent.targetobj].life <= 0) { _parent.play(); } _parent.timer++; dx = _root[_parent.targetobj]._x - _parent._x; dy = _root[_parent.targetobj]._y - _parent._y; _parent._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); rads = (_parent._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * _parent.shellspd); _parent._y = _parent._y + (Math.sin(rads) * _parent.shellspd); } }
Symbol 837 MovieClip [patriot] Frame 2
if (this.hitTest(_root[targetobj])) { _root[targetobj].life = _root[targetobj].life - damage; _root[targetobj + "symbols"].play(); if ((((!_root[targetobj].walking) && (!_root[targetobj].fireing)) && (_root[targetobj].enemy == _root[targetobj].enemy)) && (_root[targetobj].aggressive)) { _root[targetobj].targetobj = firerer; _root[targetobj].attack = true; _root["flag" + targetobj].removeMovieClip(); _root.flagsarray.findandsplice("flag" + targetobj); _root.objarray.findandsplice("flag" + targetobj); _root.attachMovie("flag2", "flag" + targetobj, _root.n); _root["flag" + targetobj]._visible = false; _root["flag" + targetobj]._x = origx; _root["flag" + targetobj]._y = origy; _root.flagsarray.push("flag" + targetobj); _root.objarray.push("flag" + targetobj); _root[targetobj].walking = true; _root.n++; hit = true; } } if (((((this._x < 1000) && (this._y < 768)) && (this._x > 0)) && (this._y > 0)) && (_root.soundon)) { soundobj = new Sound(); soundobj.attachSound("exp"); soundobj.start(); }
Symbol 837 MovieClip [patriot] Frame 3
_root.shellarray.findandsplice(this._name); this.removeMovieClip(); stop();
Symbol 843 MovieClip [shell2] Frame 1
_root.objarray.push(this._name); stop();
Instance of Symbol 839 MovieClip in Symbol 843 MovieClip [shell2] Frame 1
onClipEvent (enterFrame) { rads = (_parent._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * _parent.shellspd); _parent._y = _parent._y + (Math.sin(rads) * _parent.shellspd); if (_parent.hitTest(_root[_parent.targetobj])) { _parent.play(); } if (!_parent.hitTest(_root.back)) { _parent.play(); } }
Symbol 843 MovieClip [shell2] Frame 4
_root[targetobj].life = _root[targetobj].life - damage; _root[targetobj + "symbols"].play();
Symbol 843 MovieClip [shell2] Frame 5
this.removeMovieClip(); stop();
Symbol 844 MovieClip [emp] Frame 1
i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (this.hitTest(_root[current])) { _root[current].dummy.empulse = 100; _root[current + "symbols"].play(); break; } i--; }
Symbol 844 MovieClip [emp] Frame 3
this._alpha = this._alpha - 30;
Symbol 844 MovieClip [emp] Frame 5
this._alpha = this._alpha - 30;
Symbol 844 MovieClip [emp] Frame 7
_root.objarray.findandsplice(this._name); this.removeMovieClip();
Symbol 849 MovieClip [bomb2] Frame 1
Symbol 849 MovieClip [bomb2] Frame 2
if (((((this._x < 1000) && (this._y < 768)) && (this._x > 0)) && (this._y > 0)) && (_root.soundon)) { soundobj = new Sound(); soundobj.attachSound("exp"); soundobj.start(); }
Symbol 849 MovieClip [bomb2] Frame 3
i = _root.friendlylist.length - 1; while (i > -1) { current = _root.friendlylist[i]; if (_root[current].hitTest(this)) { _root[current].life = _root[current].life - (damage / 2); _root[current + "symbols"].play(); } i--; }
Symbol 849 MovieClip [bomb2] Frame 4
hitp = 0; i = _root.friendlylist.length - 1; while (i > -1) { current = _root.friendlylist[i]; if (_root[current].hitTest(this)) { hitp++; if (hitp < 5) { _root[current].life = _root[current].life - (damage / 2); _root[current + "symbols"].play(); } if (((!_root[current].walking) && ((!_root[current].fireing) || (_root[current].unittype == "artillery"))) && (_root[current].aggressive)) { _root[current].attack = true; _root[current].targetobj = firerer; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root["flag" + current]._visible = false; _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root[current].walking = true; _root.n++; hit = true; } } i--; } if (emp) { _root.attachMovie("emp", "emp" + _root.n, _root.n); _root["emp" + _root.n]._x = this._x; _root["emp" + _root.n]._y = this._y; _root["emp" + _root.n].timer = 0; _root.objarray.push("emp" + _root.n); _root.n++; } if (nuke) { _root.attachMovie("rad", "rad" + _root.n, _root.n); _root["rad" + _root.n]._x = this._x; _root["rad" + _root.n]._y = this._y; _root["rad" + _root.n].timer = 0; _root.objarray.push("rad" + _root.n); _root.n++; i = _root.friendlylist.length - 1; while (i > -1) { current = _root.friendlylist[i]; if (_root[current].hitTest(_root["rad" + _root.n])) { _root[current + "symbols"].play(); if (((!_root[current].walking) && ((!_root[current].fireing) || (_root[current].unittype == "artillery"))) && (_root[current].aggressive)) { _root[current].attack = true; _root[current].targetobj = firerer; _root["rad" + _root.n].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root["flag" + current]._visible = false; _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root[current].walking = true; _root.n++; hit = true; } } i--; } }
Symbol 849 MovieClip [bomb2] Frame 5
stop(); this.removeMovieClip(); stop();
Symbol 849 MovieClip [bomb2] Frame 6
stop(); this.removeMovieClip(); stop();
Symbol 853 MovieClip [bomb] Frame 1
Symbol 853 MovieClip [bomb] Frame 2
if (((((this._x < 1000) && (this._y < 768)) && (this._x > 0)) && (this._y > 0)) && (_root.soundon)) { soundobj = new Sound(); soundobj.attachSound("exp"); soundobj.start(); }
Symbol 853 MovieClip [bomb] Frame 3
i = _root.enemyarray.length - 1; while (i > -1) { current = _root.enemyarray[i]; if (_root[current].hitTest(this)) { _root[current].life = _root[current].life - (damage / 2); _root[current + "symbols"].play(); } i--; }
Symbol 853 MovieClip [bomb] Frame 4
hitp = 0; i = _root.enemyarray.length - 1; while (i > -1) { current = _root.enemyarray[i]; if (_root[current].hitTest(this)) { hitp++; if (hitp < 5) { _root[current].life = _root[current].life - (damage / 2); _root[current + "symbols"].play(); } if (((!_root[current].walking) && ((!_root[current].fireing) || (_root[current].unittype == "artillery"))) && (_root[current].aggressive)) { _root[current].attack = true; _root[current].targetobj = firerer; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root["flag" + current]._visible = false; _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root[current].walking = true; _root.n++; hit = true; } } i--; } if (emp) { _root.attachMovie("emp", "emp" + _root.n, _root.n); _root["emp" + _root.n]._x = this._x; _root["emp" + _root.n]._y = this._y; _root["emp" + _root.n].timer = 0; _root.objarray.push("emp" + _root.n); _root.n++; } if (nuke) { _root.attachMovie("rad", "rad" + _root.n, _root.n); _root["rad" + _root.n]._x = this._x; _root["rad" + _root.n]._y = this._y; _root["rad" + _root.n].timer = 0; _root.objarray.push("rad" + _root.n); _root.n++; i = _root.enemyarray.length - 1; while (i > -1) { current = _root.enemyarray[i]; if (_root[current].hitTest(_root["rad" + _root.n])) { _root[current + "symbols"].play(); if (((!_root[current].walking) && ((!_root[current].fireing) || (_root[current].unittype == "artillery"))) && (_root[current].aggressive)) { _root[current].attack = true; _root[current].targetobj = firerer; _root["rad" + _root.n].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root["flag" + current]._visible = false; _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root[current].walking = true; _root.n++; hit = true; } } i--; } }
Symbol 853 MovieClip [bomb] Frame 5
stop(); this.removeMovieClip(); stop();
Symbol 857 MovieClip [bullet] Frame 1
_root.objarray.push(this._name); stop();
Instance of Symbol 839 MovieClip in Symbol 857 MovieClip [bullet] Frame 1
onClipEvent (enterFrame) { rads = (_parent._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * _parent.shellspd); _parent._y = _parent._y + (Math.sin(rads) * _parent.shellspd); if (_parent.hitTest(_root[_parent.targetobj])) { _parent.play(); } if (!_parent.hitTest(_root.back)) { _parent.play(); } }
Symbol 857 MovieClip [bullet] Frame 4
_root[targetobj].life = _root[targetobj].life - damage; _root[targetobj + "symbols"].play();
Symbol 857 MovieClip [bullet] Frame 5
this.removeMovieClip(); stop();
Symbol 861 MovieClip [missile] Frame 1
timer = 0; _root.shellarray.push(this._name); stop();
Instance of Symbol 361 MovieClip in Symbol 861 MovieClip [missile] Frame 1
onClipEvent (enterFrame) { if ((!_parent.seeker) || (_parent.seeker == undefined)) { _parent.timer++; rads = (_parent._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * _parent.shellspd); _parent._y = _parent._y + (Math.sin(rads) * _parent.shellspd); } if (_parent.seeker) { if (_root[_parent.targetobj].life <= 0) { _parent.play(); } _parent.timer++; dx = _root[_parent.targetobj]._x - _parent._x; dy = _root[_parent.targetobj]._y - _parent._y; _parent._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); rads = (_parent._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * _parent.shellspd); _parent._y = _parent._y + (Math.sin(rads) * _parent.shellspd); } }
Symbol 861 MovieClip [missile] Frame 2
if (this.hitTest(_root[hits])) { _root[hits].life = _root[hits].life - (damage / 2); _root[hits + "symbols"].play(); if ((((!_root[hits].walking) && (!_root[hits].fireing)) && (_root[hits].enemy == _root[targetobj].enemy)) && (_root[hits].aggressive)) { _root[hits].targetobj = firerer; _root[hits].attack = true; _root["flag" + hits].removeMovieClip(); _root.flagsarray.findandsplice("flag" + hits); _root.objarray.findandsplice("flag" + hits); _root.attachMovie("flag2", "flag" + hits, _root.n); _root["flag" + hits]._visible = false; _root["flag" + hits]._x = origx; _root["flag" + hits]._y = origy; _root.flagsarray.push("flag" + hits); _root.objarray.push("flag" + hits); _root[hits].walking = true; _root.n++; hit = true; } }
Symbol 861 MovieClip [missile] Frame 3
if (this.hitTest(_root[hits])) { _root[hits].life = _root[hits].life - (damage / 2); _root[hits + "symbols"].play(); if ((((!_root[hits].walking) && (!_root[hits].fireing)) && (_root[hits].enemy == _root[targetobj].enemy)) && (_root[hits].aggressive)) { _root[hits].targetobj = firerer; _root[hits].attack = true; _root["flag" + hits].removeMovieClip(); _root.flagsarray.findandsplice("flag" + hits); _root.objarray.findandsplice("flag" + hits); _root.attachMovie("flag2", "flag" + hits, _root.n); _root["flag" + hits]._visible = false; _root["flag" + hits]._x = origx; _root["flag" + hits]._y = origy; _root.flagsarray.push("flag" + hits); _root.objarray.push("flag" + hits); _root[hits].walking = true; _root.n++; hit = true; } } if (blast) { hitp = 0; i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (hitonly) { if (_root[current].hitTest(this) && (_root[current].enemy == _root[targetobj].enemy)) { hitp++; if (hitp < 5) { _root[current].life = _root[current].life - (damage / 2); } _root[current + "symbols"].play(); if ((((!_root[current].walking) && (!_root[current].fireing)) && (_root[current].enemy == _root[targetobj].enemy)) && (_root[current].aggressive)) { _root[current].targetobj = firerer; _root[current].attack = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root["flag" + current]._visible = false; _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root[current].walking = true; _root.n++; hit = true; } } } if (!hitonly) { if (_root[current].hitTest(this)) { hitp++; if (hitp < 5) { _root[current].life = _root[current].life - (damage / 2); } _root[current + "symbols"].play(); if ((((!_root[current].walking) && (!_root[current].fireing)) && (_root[current].enemy == _root[targetobj].enemy)) && (_root[current].aggressive)) { _root[current].targetobj = firerer; _root[current].attack = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root["flag" + current]._visible = false; _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root[current].walking = true; _root.n++; hit = true; } } } i--; } } if (((((this._x < 1000) && (this._y < 768)) && (this._x > 0)) && (this._y > 0)) && (_root.soundon)) { soundobj = new Sound(); soundobj.attachSound("exp3"); soundobj.start(); }
Symbol 861 MovieClip [missile] Frame 4
_root.shellarray.findandsplice(this._name); this.removeMovieClip(); stop();
Symbol 865 MovieClip [flag2] Frame 1
stop();
Instance of Symbol 864 MovieClip in Symbol 865 MovieClip [flag2] Frame 1
/* no clip actions */
Symbol 868 MovieClip Frame 5
if (_parent.timer > 8) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (_parent.hitonly) { if (_root[current].hitTest(_parent) && (_root[current].enemy == _root[_parent.targetobj].enemy)) { _parent.targetobj = current; _parent.play(); break; } } if (!_parent.hitonly) { if (_root[current].hitTest(_parent)) { _parent.targetobj = current; _parent.play(); break; } } i--; } } if ((_parent.timer > 8) && (_parent.hitonly)) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (_root[current].hitTest(_parent) && (_root[current].enemy == _root[_parent.targetobj].enemy)) { _parent.hits = current; _parent.play(); break; } i--; } } if (_parent.hitTest(_root[_parent.targetobj])) { _parent.play(); } if (_parent.timer > 40) { _parent.removeMovieClip(); }
Symbol 870 MovieClip [shell] Frame 1
timer = 0; _root.shellarray.push(this._name); stop();
Instance of Symbol 868 MovieClip in Symbol 870 MovieClip [shell] Frame 1
onClipEvent (enterFrame) { _parent.timer++; rads = (_parent._rotation * (Math.PI*2)) / 360; _parent._x = _parent._x + (Math.cos(rads) * _parent.shellspd); _parent._y = _parent._y + (Math.sin(rads) * _parent.shellspd); }
Symbol 870 MovieClip [shell] Frame 2
if (this.hitTest(_root[targetobj])) { _root[targetobj].life = _root[targetobj].life - damage; _root[targetobj + "symbols"].play(); } if (((((this._x < 1000) && (this._y < 768)) && (this._x > 0)) && (this._y > 0)) && (_root.soundon)) { soundobj = new Sound(); soundobj.attachSound("exp2"); soundobj.start(); }
Symbol 870 MovieClip [shell] Frame 3
_root.shellarray.findandsplice(this._name); this.removeMovieClip(); stop();
Symbol 873 MovieClip [flag] Frame 1
this._visible = false; dd = _root.flagsarray.concat(_root.unitsarray); stop();
Instance of Symbol 864 MovieClip in Symbol 873 MovieClip [flag] Frame 1
onClipEvent (enterFrame) { hit = false; i = _parent.dd.length - 1; while (i > -1) { current = _parent.dd[i]; if (_root[current].hitTest(_parent) && (current != _parent._name)) { _parent._x = _parent._x - ((Math.random() - 0.5) * _parent._width); _parent._y = _parent._y - ((Math.random() - 0.5) * _parent._height); hit = true; } i--; } if (!hit) { _parent.nextFrame(); } }
Symbol 873 MovieClip [flag] Frame 2
if (this.vsisible == undefined) { this._visible = true; }
Symbol 876 MovieClip [flag copy] Frame 1
_root.objarray.push(this._name); this._visible = false; stop();
Instance of Symbol 864 MovieClip in Symbol 876 MovieClip [flag copy] Frame 1
/* no clip actions */
Symbol 884 MovieClip [BrdrShdw] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "shadowColor");
Symbol 886 MovieClip [BrdrFace] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "buttonColor");
Symbol 889 MovieClip [BrdrBlk] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "borderColor");
Symbol 891 MovieClip [BrdrHilght] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "highlightColor");
Symbol 894 MovieClip [Defaults] Frame 1
#initclip 25 Object.registerClass("Defaults", mx.skins.halo.Defaults); #endinitclip
Symbol 895 MovieClip [UIObjectExtensions] Frame 1
#initclip 26 Object.registerClass("UIObjectExtensions", mx.core.ext.UIObjectExtensions); #endinitclip
Symbol 896 MovieClip [UIObject] Frame 1
#initclip 27 Object.registerClass("UIObject", mx.core.UIObject); #endinitclip stop();
Symbol 899 Button
on (keyPress "<Tab>") { this.tabHandler(); }
Symbol 900 MovieClip Frame 1
#initclip 28 Object.registerClass("FocusManager", mx.managers.FocusManager); if (_root.focusManager == undefined) { _root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--); } #endinitclip
Symbol 901 MovieClip [FocusRect] Frame 1
#initclip 29 Object.registerClass("FocusRect", mx.skins.halo.FocusRect); #endinitclip
Symbol 902 MovieClip [FocusManager] Frame 1
#initclip 30 Object.registerClass("FocusManager", mx.managers.FocusManager); #endinitclip stop();
Symbol 903 MovieClip [UIComponentExtensions] Frame 1
#initclip 31 Object.registerClass("UIComponentExtensions", mx.core.ext.UIComponentExtensions); #endinitclip
Symbol 904 MovieClip [UIComponent] Frame 1
#initclip 32 Object.registerClass("UIComponent", mx.core.UIComponent); #endinitclip stop();
Symbol 905 MovieClip [SimpleButton] Frame 1
#initclip 33 Object.registerClass("SimpleButton", mx.controls.SimpleButton); #endinitclip stop();
Symbol 906 MovieClip [Border] Frame 1
#initclip 34 Object.registerClass("Border", mx.skins.Border); #endinitclip stop();
Symbol 907 MovieClip [RectBorder] Frame 1
#initclip 35 mx.skins.SkinElement.registerElement(mx.skins.RectBorder.symbolName, Object(mx.skins.RectBorder)); Object.registerClass("RectBorder", mx.skins.halo.RectBorder); #endinitclip stop();
Symbol 908 MovieClip [ButtonSkin] Frame 1
#initclip 36 Object.registerClass("ButtonSkin", mx.skins.halo.ButtonSkin); #endinitclip
Symbol 909 MovieClip [Button] Frame 1
#initclip 37 Object.registerClass("Button", mx.controls.Button); #endinitclip stop();
Instance of Symbol 905 MovieClip [SimpleButton] in Symbol 909 MovieClip [Button] Frame 2
//component parameters onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Symbol 974 Button
on (release) { getURL ("http://www.newgrounds.com", "_blank"); }
Symbol 976 MovieClip Frame 40
stop();
Symbol 1002 Button
on (release) { _root.play(); }
Symbol 1003 Button
on (release) { _root.gotoAndPlay(2); }
Symbol 1004 MovieClip Frame 1
function onEnterFrame() { if (!loaded) { var _local3 = _root.getBytesLoaded() / _root.getBytesTotal(); if (_local3 >= 1) { play(); bar._x = initX; loaded = true; } else { bar._x = initX + ((_local3 - 1) * bar._width); } } var _local4 = getTimer() - time; timeAccum = timeAccum + _local4; while (timeAccum >= FRAME_TIME) { var _local2 = 0; while (_local2 < timeClips.length) { if (timeClips[_local2]._currentframe < timeClips[_local2]._totalframes) { timeClips[_local2].nextFrame(); } else { timeClips[_local2].gotoAndStop(1); } _local2++; } if (loaded && (_currentframe < _totalframes)) { nextFrame(); } timeAccum = timeAccum - FRAME_TIME; } time = time + _local4; } stop(); _root.stop(); var initX = bar._x; var time = getTimer(); var FRAME_TIME = 33.3333333333333; var timeAccum = 0; var loaded = false; timeClips = [bargfx, tank.mc0, tank.mc1, tank.mc2, tank.mc3, tank.mc4, tank.mc4.mc0, tank.mc4.mc1, tank.mc4.mc0.mc0, tank.mc4.mc0.mc0.mc0.mc0, tank.mc4.mc0.mc0.mc0.mc1, tank.mc4.mc0.mc0.mc0.mc2, tank.mc4.mc0.mc0.mc0.mc3, tank.mc4.mc0.mc0.mc1, tank.mc4.mc0.mc0.mc2, tank.mc5.mc0]; var i = 0; while (i < timeClips.length) { timeClips[i].stop(); i++; }
Symbol 1004 MovieClip Frame 51
Symbol 877 MovieClip [__Packages.mx.core.UIObject] Frame 0
class mx.core.UIObject extends MovieClip { var _width, _height, _x, _y, _parent, _minHeight, _minWidth, _visible, dispatchEvent, _xscale, _yscale, methodTable, onEnterFrame, tfList, __width, __height, moveTo, lineTo, createTextField, attachMovie, buildDepthTable, findNextAvailableDepth, idNames, childrenCreated, _name, createAccessibilityImplementation, _endInit, validateNow, hasOwnProperty, initProperties, stylecache, className, ignoreClassStyleDeclaration, _tf, fontFamily, fontSize, color, marginLeft, marginRight, fontStyle, fontWeight, textAlign, textIndent, textDecoration, embedFonts, styleName, enabled; function UIObject () { super(); constructObject(); } function get width() { return(_width); } function get height() { return(_height); } function get left() { return(_x); } function get x() { return(_x); } function get top() { return(_y); } function get y() { return(_y); } function get right() { return(_parent.width - (_x + width)); } function get bottom() { return(_parent.height - (_y + height)); } function getMinHeight(Void) { return(_minHeight); } function setMinHeight(h) { _minHeight = h; } function get minHeight() { return(getMinHeight()); } function set minHeight(h) { setMinHeight(h); //return(minHeight); } function getMinWidth(Void) { return(_minWidth); } function setMinWidth(w) { _minWidth = w; } function get minWidth() { return(getMinWidth()); } function set minWidth(w) { setMinWidth(w); //return(minWidth); } function setVisible(x, noEvent) { if (x != _visible) { _visible = x; if (noEvent != true) { dispatchEvent({type:(x ? "reveal" : "hide")}); } } } function get visible() { return(_visible); } function set visible(x) { setVisible(x, false); //return(visible); } function get scaleX() { return(_xscale); } function set scaleX(x) { _xscale = x; //return(scaleX); } function get scaleY() { return(_yscale); } function set scaleY(y) { _yscale = y; //return(scaleY); } function doLater(obj, fn) { if (methodTable == undefined) { methodTable = new Array(); } methodTable.push({obj:obj, fn:fn}); onEnterFrame = doLaterDispatcher; } function doLaterDispatcher(Void) { delete onEnterFrame; if (invalidateFlag) { redraw(); } var _local3 = methodTable; methodTable = new Array(); if (_local3.length > 0) { var _local2; while (_local2 = _local3.shift() , _local2 != undefined) { _local2.obj[_local2.fn](); } } } function cancelAllDoLaters(Void) { delete onEnterFrame; methodTable = new Array(); } function invalidate(Void) { invalidateFlag = true; onEnterFrame = doLaterDispatcher; } function invalidateStyle(Void) { invalidate(); } function redraw(bAlways) { if (invalidateFlag || (bAlways)) { invalidateFlag = false; var _local2; for (_local2 in tfList) { tfList[_local2].draw(); } draw(); dispatchEvent({type:"draw"}); } } function draw(Void) { } function move(x, y, noEvent) { var _local3 = _x; var _local2 = _y; _x = x; _y = y; if (noEvent != true) { dispatchEvent({type:"move", oldX:_local3, oldY:_local2}); } } function setSize(w, h, noEvent) { var _local2 = __width; var _local3 = __height; __width = w; __height = h; size(); if (noEvent != true) { dispatchEvent({type:"resize", oldWidth:_local2, oldHeight:_local3}); } } function size(Void) { _width = __width; _height = __height; } function drawRect(x1, y1, x2, y2) { moveTo(x1, y1); lineTo(x2, y1); lineTo(x2, y2); lineTo(x1, y2); lineTo(x1, y1); } function createLabel(name, depth, text) { createTextField(name, depth, 0, 0, 0, 0); var _local2 = this[name]; _local2._color = textColorList; _local2._visible = false; _local2.__text = text; if (tfList == undefined) { tfList = new Object(); } tfList[name] = _local2; _local2.invalidateStyle(); invalidate(); _local2.styleName = this; return(_local2); } function createObject(linkageName, id, depth, initobj) { return(attachMovie(linkageName, id, depth, initobj)); } function createClassObject(className, id, depth, initobj) { var _local3 = className.symbolName == undefined; if (_local3) { Object.registerClass(className.symbolOwner.symbolName, className); } var _local4 = createObject(className.symbolOwner.symbolName, id, depth, initobj); if (_local3) { Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner); } return(_local4); } function createEmptyObject(id, depth) { return(createClassObject(mx.core.UIObject, id, depth)); } function destroyObject(id) { var _local2 = this[id]; if (_local2.getDepth() < 0) { var _local4 = buildDepthTable(); var _local5 = findNextAvailableDepth(0, _local4, "up"); var _local3 = _local5; _local2.swapDepths(_local3); } _local2.removeMovieClip(); delete this[id]; } function getSkinIDName(tag) { return(idNames[tag]); } function setSkin(tag, linkageName, initObj) { if (_global.skinRegistry[linkageName] == undefined) { mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement); } return(createObject(linkageName, getSkinIDName(tag), tag, initObj)); } function createSkin(tag) { var _local2 = getSkinIDName(tag); createEmptyObject(_local2, tag); return(this[_local2]); } function createChildren(Void) { } function _createChildren(Void) { createChildren(); childrenCreated = true; } function constructObject(Void) { if (_name == undefined) { return(undefined); } init(); _createChildren(); createAccessibilityImplementation(); _endInit(); if (validateNow) { redraw(true); } else { invalidate(); } } function initFromClipParameters(Void) { var _local4 = false; var _local2; for (_local2 in clipParameters) { if (hasOwnProperty(_local2)) { _local4 = true; this["def_" + _local2] = this[_local2]; delete this[_local2]; } } if (_local4) { for (_local2 in clipParameters) { var _local3 = this["def_" + _local2]; if (_local3 != undefined) { this[_local2] = _local3; } } } } function init(Void) { __width = _width; __height = _height; if (initProperties == undefined) { initFromClipParameters(); } else { initProperties(); } if (_global.cascadingStyles == true) { stylecache = new Object(); } } function getClassStyleDeclaration(Void) { var _local4 = this; var _local3 = className; while (_local3 != undefined) { if (ignoreClassStyleDeclaration[_local3] == undefined) { if (_global.styles[_local3] != undefined) { return(_global.styles[_local3]); } } _local4 = _local4.__proto__; _local3 = _local4.className; } } function setColor(color) { } function __getTextFormat(tf, bAll) { var _local8 = stylecache.tf; if (_local8 != undefined) { var _local3; for (_local3 in mx.styles.StyleManager.TextFormatStyleProps) { if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) { if (tf[_local3] == undefined) { tf[_local3] = _local8[_local3]; } } } return(false); } var _local6 = false; for (var _local3 in mx.styles.StyleManager.TextFormatStyleProps) { if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) { if (tf[_local3] == undefined) { var _local5 = _tf[_local3]; if (_local5 != undefined) { tf[_local3] = _local5; } else if ((_local3 == "font") && (fontFamily != undefined)) { tf[_local3] = fontFamily; } else if ((_local3 == "size") && (fontSize != undefined)) { tf[_local3] = fontSize; } else if ((_local3 == "color") && (color != undefined)) { tf[_local3] = color; } else if ((_local3 == "leftMargin") && (marginLeft != undefined)) { tf[_local3] = marginLeft; } else if ((_local3 == "rightMargin") && (marginRight != undefined)) { tf[_local3] = marginRight; } else if ((_local3 == "italic") && (fontStyle != undefined)) { tf[_local3] = fontStyle == _local3; } else if ((_local3 == "bold") && (fontWeight != undefined)) { tf[_local3] = fontWeight == _local3; } else if ((_local3 == "align") && (textAlign != undefined)) { tf[_local3] = textAlign; } else if ((_local3 == "indent") && (textIndent != undefined)) { tf[_local3] = textIndent; } else if ((_local3 == "underline") && (textDecoration != undefined)) { tf[_local3] = textDecoration == _local3; } else if ((_local3 == "embedFonts") && (embedFonts != undefined)) { tf[_local3] = embedFonts; } else { _local6 = true; } } } } if (_local6) { var _local9 = styleName; if (_local9 != undefined) { if (typeof(_local9) != "string") { _local6 = _local9.__getTextFormat(tf, true, this); } else if (_global.styles[_local9] != undefined) { _local6 = _global.styles[_local9].__getTextFormat(tf, true, this); } } } if (_local6) { var _local10 = getClassStyleDeclaration(); if (_local10 != undefined) { _local6 = _local10.__getTextFormat(tf, true, this); } } if (_local6) { if (_global.cascadingStyles) { if (_parent != undefined) { _local6 = _parent.__getTextFormat(tf, false); } } } if (_local6) { _local6 = _global.style.__getTextFormat(tf, true, this); } return(_local6); } function _getTextFormat(Void) { var _local2 = stylecache.tf; if (_local2 != undefined) { return(_local2); } _local2 = new TextFormat(); __getTextFormat(_local2, true); stylecache.tf = _local2; if (enabled == false) { var _local3 = getStyle("disabledColor"); _local2.color = _local3; } return(_local2); } function getStyleName(Void) { var _local2 = styleName; if (_local2 != undefined) { if (typeof(_local2) != "string") { return(_local2.getStyleName()); } return(_local2); } if (_parent != undefined) { return(_parent.getStyleName()); } return(undefined); } function getStyle(styleProp) { var _local3; _global.getStyleCounter++; if (this[styleProp] != undefined) { return(this[styleProp]); } var _local6 = styleName; if (_local6 != undefined) { if (typeof(_local6) != "string") { _local3 = _local6.getStyle(styleProp); } else { var _local7 = _global.styles[_local6]; _local3 = _local7.getStyle(styleProp); } } if (_local3 != undefined) { return(_local3); } var _local7 = getClassStyleDeclaration(); if (_local7 != undefined) { _local3 = _local7[styleProp]; } if (_local3 != undefined) { return(_local3); } if (_global.cascadingStyles) { if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (mx.styles.StyleManager.isColorStyle(styleProp))) { var _local5 = stylecache; if (_local5 != undefined) { if (_local5[styleProp] != undefined) { return(_local5[styleProp]); } } if (_parent != undefined) { _local3 = _parent.getStyle(styleProp); } else { _local3 = _global.style[styleProp]; } if (_local5 != undefined) { _local5[styleProp] = _local3; } return(_local3); } } if (_local3 == undefined) { _local3 = _global.style[styleProp]; } return(_local3); } static function mergeClipParameters(o, p) { for (var _local3 in p) { o[_local3] = p[_local3]; } return(true); } static var symbolName = "UIObject"; static var symbolOwner = mx.core.UIObject; static var version = "2.0.2.126"; static var textColorList = {color:1, disabledColor:1}; var invalidateFlag = false; var lineWidth = 1; var lineColor = 0; var tabEnabled = false; var clipParameters = {visible:1, minHeight:1, minWidth:1, maxHeight:1, maxWidth:1, preferredHeight:1, preferredWidth:1}; }
Symbol 878 MovieClip [__Packages.mx.core.UIComponent] Frame 0
class mx.core.UIComponent extends mx.core.UIObject { var __width, __height, invalidate, stylecache, removeEventListener, dispatchEvent, drawFocus, addEventListener, _xscale, _yscale, _focusrect, watch, enabled; function UIComponent () { super(); } function get width() { return(__width); } function get height() { return(__height); } function setVisible(x, noEvent) { super.setVisible(x, noEvent); } function enabledChanged(id, oldValue, newValue) { setEnabled(newValue); invalidate(); delete stylecache.tf; return(newValue); } function setEnabled(enabled) { invalidate(); } function getFocus() { var selFocus = Selection.getFocus(); return(((selFocus === null) ? null : (eval (selFocus)))); } function setFocus() { Selection.setFocus(this); } function getFocusManager() { var _local2 = this; while (_local2 != undefined) { if (_local2.focusManager != undefined) { return(_local2.focusManager); } _local2 = _local2._parent; } return(undefined); } function onKillFocus(newFocus) { removeEventListener("keyDown", this); removeEventListener("keyUp", this); dispatchEvent({type:"focusOut"}); drawFocus(false); } function onSetFocus(oldFocus) { addEventListener("keyDown", this); addEventListener("keyUp", this); dispatchEvent({type:"focusIn"}); if (getFocusManager().bDrawFocus != false) { drawFocus(true); } } function findFocusInChildren(o) { if (o.focusTextField != undefined) { return(o.focusTextField); } if (o.tabEnabled == true) { return(o); } return(undefined); } function findFocusFromObject(o) { if (o.tabEnabled != true) { if (o._parent == undefined) { return(undefined); } if (o._parent.tabEnabled == true) { o = o._parent; } else if (o._parent.tabChildren) { o = findFocusInChildren(o._parent); } else { o = findFocusFromObject(o._parent); } } return(o); } function pressFocus() { var _local3 = findFocusFromObject(this); var _local2 = getFocus(); if (_local3 != _local2) { _local2.drawFocus(false); if (getFocusManager().bDrawFocus != false) { _local3.drawFocus(true); } } } function releaseFocus() { var _local2 = findFocusFromObject(this); if (_local2 != getFocus()) { _local2.setFocus(); } } function isParent(o) { while (o != undefined) { if (o == this) { return(true); } o = o._parent; } return(false); } function size() { } function init() { super.init(); _xscale = 100; _yscale = 100; _focusrect = _global.useFocusRect == false; watch("enabled", enabledChanged); if (enabled == false) { setEnabled(false); } } function dispatchValueChangedEvent(value) { dispatchEvent({type:"valueChanged", value:value}); } static var symbolName = "UIComponent"; static var symbolOwner = mx.core.UIComponent; static var version = "2.0.2.126"; static var kStretch = 5000; var focusEnabled = true; var tabEnabled = true; var origBorderStyles = {themeColor:16711680}; var clipParameters = {}; static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.core.UIComponent.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters); }
Symbol 879 MovieClip [__Packages.mx.controls.SimpleButton] Frame 0
class mx.controls.SimpleButton extends mx.core.UIComponent { static var emphasizedStyleDeclaration; var preset, boundingBox_mc, useHandCursor, skinName, linkLength, iconName, destroyObject, __width, _width, __height, _height, __emphaticStyleName, styleName, enabled, invalidate, pressFocus, dispatchEvent, autoRepeat, interval, getStyle, releaseFocus, createLabel, invalidateStyle; function SimpleButton () { super(); } function init(Void) { super.init(); if (preset == undefined) { boundingBox_mc._visible = false; boundingBox_mc._width = (boundingBox_mc._height = 0); } useHandCursor = false; } function createChildren(Void) { if (preset != undefined) { var _local2 = this[idNames[preset]]; this[refNames[preset]] = _local2; skinName = _local2; if (falseOverSkin.length == 0) { rolloverSkin = fus; } if (falseOverIcon.length == 0) { rolloverIcon = fui; } initializing = false; } else if (__state == true) { setStateVar(true); } else { if (falseOverSkin.length == 0) { rolloverSkin = fus; } if (falseOverIcon.length == 0) { rolloverIcon = fui; } } } function setIcon(tag, linkageName) { return(setSkin(tag + 8, linkageName)); } function changeIcon(tag, linkageName) { linkLength = linkageName.length; var _local2 = stateNames[tag] + "Icon"; this[_local2] = linkageName; this[idNames[tag + 8]] = _local2; setStateVar(getState()); } function changeSkin(tag, linkageName) { var _local2 = stateNames[tag] + "Skin"; this[_local2] = linkageName; this[idNames[tag]] = _local2; setStateVar(getState()); } function viewIcon(varName) { var _local4 = varName + "Icon"; var _local3 = this[_local4]; if (typeof(_local3) == "string") { var _local5 = _local3; if (__emphasized) { if (this[_local3 + "Emphasized"].length > 0) { _local3 = _local3 + "Emphasized"; } } if (this[_local3].length == 0) { return(undefined); } _local3 = setIcon(tagMap[_local5], this[_local3]); if ((_local3 == undefined) && (_global.isLivePreview)) { _local3 = setIcon(0, "ButtonIcon"); } this[_local4] = _local3; } iconName._visible = false; iconName = _local3; iconName._visible = true; } function removeIcons() { var _local3 = 0; while (_local3 < 2) { var _local2 = 8; while (_local2 < 16) { destroyObject(idNames[_local2]); this[stateNames[_local2 - 8] + "Icon"] = ""; _local2++; } _local3++; } refresh(); } function setSkin(tag, linkageName, initobj) { var _local3 = super.setSkin(tag, linkageName, ((initobj != undefined) ? (initobj) : ({styleName:this}))); calcSize(tag, _local3); return(_local3); } function calcSize(Void) { __width = _width; __height = _height; } function viewSkin(varName, initObj) { var _local3 = varName + "Skin"; var _local2 = this[_local3]; if (typeof(_local2) == "string") { var _local4 = _local2; if (__emphasized) { if (this[_local2 + "Emphasized"].length > 0) { _local2 = _local2 + "Emphasized"; } } if (this[_local2].length == 0) { return(undefined); } _local2 = setSkin(tagMap[_local4], this[_local2], ((initObj != undefined) ? (initObj) : ({styleName:this}))); this[_local3] = _local2; } skinName._visible = false; skinName = _local2; skinName._visible = true; } function showEmphasized(e) { if (e && (!__emphatic)) { if (emphasizedStyleDeclaration != undefined) { __emphaticStyleName = styleName; styleName = emphasizedStyleDeclaration; } __emphatic = true; } else { if (__emphatic) { styleName = __emphaticStyleName; } __emphatic = false; } } function refresh(Void) { var _local2 = getState(); if (enabled == false) { viewIcon("disabled"); viewSkin("disabled"); } else { viewSkin(phase); viewIcon(phase); } setView(phase == "down"); iconName.enabled = enabled; } function setView(offset) { if (iconName == undefined) { return(undefined); } var _local2 = (offset ? (btnOffset) : 0); iconName._x = ((__width - iconName._width) / 2) + _local2; iconName._y = ((__height - iconName._height) / 2) + _local2; } function setStateVar(state) { if (state) { if (trueOverSkin.length == 0) { rolloverSkin = tus; } else { rolloverSkin = trs; } if (trueOverIcon.length == 0) { rolloverIcon = tui; } else { rolloverIcon = tri; } upSkin = tus; downSkin = tds; disabledSkin = dts; upIcon = tui; downIcon = tdi; disabledIcon = dti; } else { if (falseOverSkin.length == 0) { rolloverSkin = fus; } else { rolloverSkin = frs; } if (falseOverIcon.length == 0) { rolloverIcon = fui; } else { rolloverIcon = fri; } upSkin = fus; downSkin = fds; disabledSkin = dfs; upIcon = fui; downIcon = fdi; disabledIcon = dfi; } __state = state; } function setState(state) { if (state != __state) { setStateVar(state); invalidate(); } } function size(Void) { refresh(); } function draw(Void) { if (initializing) { initializing = false; skinName.visible = true; iconName.visible = true; } size(); } function getState(Void) { return(__state); } function setToggle(val) { __toggle = val; if (__toggle == false) { setState(false); } } function getToggle(Void) { return(__toggle); } function set toggle(val) { setToggle(val); //return(toggle); } function get toggle() { return(getToggle()); } function set value(val) { setSelected(val); //return(value); } function get value() { return(getSelected()); } function set selected(val) { setSelected(val); //return(selected); } function get selected() { return(getSelected()); } function setSelected(val) { if (__toggle) { setState(val); } else { setState((initializing ? (val) : (__state))); } } function getSelected() { return(__state); } function setEnabled(val) { if (enabled != val) { super.setEnabled(val); invalidate(); } } function onPress(Void) { pressFocus(); phase = "down"; refresh(); dispatchEvent({type:"buttonDown"}); if (autoRepeat) { interval = setInterval(this, "onPressDelay", getStyle("repeatDelay")); } } function onPressDelay(Void) { dispatchEvent({type:"buttonDown"}); if (autoRepeat) { clearInterval(interval); interval = setInterval(this, "onPressRepeat", getStyle("repeatInterval")); } } function onPressRepeat(Void) { dispatchEvent({type:"buttonDown"}); updateAfterEvent(); } function onRelease(Void) { releaseFocus(); phase = "rollover"; if (interval != undefined) { clearInterval(interval); delete interval; } if (getToggle()) { setState(!getState()); } else { refresh(); } dispatchEvent({type:"click"}); } function onDragOut(Void) { phase = "up"; refresh(); dispatchEvent({type:"buttonDragOut"}); } function onDragOver(Void) { if (phase != "up") { onPress(); return(undefined); } phase = "down"; refresh(); } function onReleaseOutside(Void) { releaseFocus(); phase = "up"; if (interval != undefined) { clearInterval(interval); delete interval; } } function onRollOver(Void) { phase = "rollover"; refresh(); } function onRollOut(Void) { phase = "up"; refresh(); } function getLabel(Void) { return(fui.text); } function setLabel(val) { if (typeof(fui) == "string") { createLabel("fui", 8, val); fui.styleName = this; } else { fui.text = val; } var _local4 = fui._getTextFormat(); var _local2 = _local4.getTextExtent2(val); fui._width = _local2.width + 5; fui._height = _local2.height + 5; iconName = fui; setView(__state); } function get emphasized() { return(__emphasized); } function set emphasized(val) { __emphasized = val; var _local2 = 0; while (_local2 < 8) { this[idNames[_local2]] = stateNames[_local2] + "Skin"; if (typeof(this[idNames[_local2 + 8]]) == "movieclip") { this[idNames[_local2 + 8]] = stateNames[_local2] + "Icon"; } _local2++; } showEmphasized(__emphasized); setStateVar(__state); invalidateStyle(); //return(emphasized); } function keyDown(e) { if (e.code == 32) { onPress(); } } function keyUp(e) { if (e.code == 32) { onRelease(); } } function onKillFocus(newFocus) { super.onKillFocus(); if (phase != "up") { phase = "up"; refresh(); } } static var symbolName = "SimpleButton"; static var symbolOwner = mx.controls.SimpleButton; static var version = "2.0.2.126"; var className = "SimpleButton"; var style3dInset = 4; var btnOffset = 1; var __toggle = false; var __state = false; var __emphasized = false; var __emphatic = false; static var falseUp = 0; static var falseDown = 1; static var falseOver = 2; static var falseDisabled = 3; static var trueUp = 4; static var trueDown = 5; static var trueOver = 6; static var trueDisabled = 7; var falseUpSkin = "SimpleButtonUp"; var falseDownSkin = "SimpleButtonIn"; var falseOverSkin = ""; var falseDisabledSkin = "SimpleButtonUp"; var trueUpSkin = "SimpleButtonIn"; var trueDownSkin = ""; var trueOverSkin = ""; var trueDisabledSkin = "SimpleButtonIn"; var falseUpIcon = ""; var falseDownIcon = ""; var falseOverIcon = ""; var falseDisabledIcon = ""; var trueUpIcon = ""; var trueDownIcon = ""; var trueOverIcon = ""; var trueDisabledIcon = ""; var phase = "up"; var fui = "falseUpIcon"; var fus = "falseUpSkin"; var fdi = "falseDownIcon"; var fds = "falseDownSkin"; var frs = "falseOverSkin"; var fri = "falseOverIcon"; var dfi = "falseDisabledIcon"; var dfs = "falseDisabledSkin"; var tui = "trueUpIcon"; var tus = "trueUpSkin"; var tdi = "trueDownIcon"; var tds = "trueDownSkin"; var trs = "trueOverSkin"; var tri = "trueOverIcon"; var dts = "trueDisabledSkin"; var dti = "trueDisabledIcon"; var rolloverSkin = mx.controls.SimpleButton.prototype.frs; var rolloverIcon = mx.controls.SimpleButton.prototype.fri; var upSkin = mx.controls.SimpleButton.prototype.fus; var downSkin = mx.controls.SimpleButton.prototype.fds; var disabledSkin = mx.controls.SimpleButton.prototype.dfs; var upIcon = mx.controls.SimpleButton.prototype.fui; var downIcon = mx.controls.SimpleButton.prototype.fdi; var disabledIcon = mx.controls.SimpleButton.prototype.dfi; var initializing = true; var idNames = ["fus", "fds", "frs", "dfs", "tus", "tds", "trs", "dts", "fui", "fdi", "fri", "dfi", "tui", "tdi", "tri", "dti"]; var stateNames = ["falseUp", "falseDown", "falseOver", "falseDisabled", "trueUp", "trueDown", "trueOver", "trueDisabled"]; var refNames = ["upSkin", "downSkin", "rolloverSkin", "disabledSkin"]; var tagMap = {falseUpSkin:0, falseDownSkin:1, falseOverSkin:2, falseDisabledSkin:3, trueUpSkin:4, trueDownSkin:5, trueOverSkin:6, trueDisabledSkin:7, falseUpIcon:0, falseDownIcon:1, falseOverIcon:2, falseDisabledIcon:3, trueUpIcon:4, trueDownIcon:5, trueOverIcon:6, trueDisabledIcon:7}; }
Symbol 880 MovieClip [__Packages.mx.controls.Button] Frame 0
class mx.controls.Button extends mx.controls.SimpleButton { var initializing, labelPath, initIcon, getState, enabled, phase, idNames, __width, __height, setState, invalidate, iconName, refresh, createLabel, _iconLinkageName, removeIcons, hitArea_mc, createEmptyObject; function Button () { super(); } function init(Void) { super.init(); } function draw() { if (initializing) { labelPath.visible = true; } super.draw(); if (initIcon != undefined) { _setIcon(initIcon); } delete initIcon; } function onRelease(Void) { super.onRelease(); } function createChildren(Void) { super.createChildren(); } function setSkin(tag, linkageName, initobj) { return(super.setSkin(tag, linkageName, initobj)); } function viewSkin(varName) { var _local3 = (getState() ? "true" : "false"); _local3 = _local3 + (enabled ? (phase) : "disabled"); super.viewSkin(varName, {styleName:this, borderStyle:_local3}); } function invalidateStyle(c) { labelPath.invalidateStyle(c); super.invalidateStyle(c); } function setColor(c) { var _local2 = 0; while (_local2 < 8) { this[idNames[_local2]].redraw(true); _local2++; } } function setEnabled(enable) { labelPath.enabled = enable; super.setEnabled(enable); } function calcSize(tag, ref) { if ((__width == undefined) || (__height == undefined)) { return(undefined); } if (tag < 7) { ref.setSize(__width, __height, true); } } function size(Void) { setState(getState()); setHitArea(__width, __height); var _local3 = 0; while (_local3 < 8) { var _local4 = idNames[_local3]; if (typeof(this[_local4]) == "movieclip") { this[_local4].setSize(__width, __height, true); } _local3++; } super.size(); } function set labelPlacement(val) { __labelPlacement = val; invalidate(); //return(labelPlacement); } function get labelPlacement() { return(__labelPlacement); } function getLabelPlacement(Void) { return(__labelPlacement); } function setLabelPlacement(val) { __labelPlacement = val; invalidate(); } function getBtnOffset(Void) { if (getState()) { var _local2 = btnOffset; } else if (phase == "down") { var _local2 = btnOffset; } else { var _local2 = 0; } return(_local2); } function setView(offset) { var _local16 = (offset ? (btnOffset) : 0); var _local12 = getLabelPlacement(); var _local7 = 0; var _local6 = 0; var _local9 = 0; var _local8 = 0; var _local5 = 0; var _local4 = 0; var _local3 = labelPath; var _local2 = iconName; var _local15 = _local3.textWidth; var _local14 = _local3.textHeight; var _local10 = (__width - borderW) - borderW; var _local11 = (__height - borderW) - borderW; if (_local2 != undefined) { _local7 = _local2._width; _local6 = _local2._height; } if ((_local12 == "left") || (_local12 == "right")) { if (_local3 != undefined) { _local9 = Math.min(_local10 - _local7, _local15 + 5); _local3._width = _local9; _local8 = Math.min(_local11, _local14 + 5); _local3._height = _local8; } if (_local12 == "right") { _local5 = _local7; if (centerContent) { _local5 = _local5 + (((_local10 - _local9) - _local7) / 2); } _local2._x = _local5 - _local7; } else { _local5 = (_local10 - _local9) - _local7; if (centerContent) { _local5 = _local5 / 2; } _local2._x = _local5 + _local9; } _local4 = 0; _local2._y = _local4; if (centerContent) { _local2._y = (_local11 - _local6) / 2; _local4 = (_local11 - _local8) / 2; } if (!centerContent) { _local2._y = _local2._y + Math.max(0, (_local8 - _local6) / 2); } } else { if (_local3 != undefined) { _local9 = Math.min(_local10, _local15 + 5); _local3._width = _local9; _local8 = Math.min(_local11 - _local6, _local14 + 5); _local3._height = _local8; } _local5 = (_local10 - _local9) / 2; _local2._x = (_local10 - _local7) / 2; if (_local12 == "top") { _local4 = (_local11 - _local8) - _local6; if (centerContent) { _local4 = _local4 / 2; } _local2._y = _local4 + _local8; } else { _local4 = _local6; if (centerContent) { _local4 = _local4 + (((_local11 - _local8) - _local6) / 2); } _local2._y = _local4 - _local6; } } var _local13 = borderW + _local16; _local3._x = _local5 + _local13; _local3._y = _local4 + _local13; _local2._x = _local2._x + _local13; _local2._y = _local2._y + _local13; } function set label(lbl) { setLabel(lbl); //return(label); } function setLabel(label) { if (label == "") { labelPath.removeTextField(); refresh(); return(undefined); } if (labelPath == undefined) { var _local2 = createLabel("labelPath", 200, label); _local2._width = _local2.textWidth + 5; _local2._height = _local2.textHeight + 5; if (initializing) { _local2.visible = false; } } else { delete labelPath.__text; labelPath.text = label; refresh(); } } function getLabel(Void) { return(((labelPath.__text != undefined) ? (labelPath.__text) : (labelPath.text))); } function get label() { return(getLabel()); } function _getIcon(Void) { return(_iconLinkageName); } function get icon() { if (initializing) { return(initIcon); } return(_iconLinkageName); } function _setIcon(linkage) { if (initializing) { if (linkage == "") { return(undefined); } initIcon = linkage; } else { if (linkage == "") { removeIcons(); return(undefined); } super.changeIcon(0, linkage); super.changeIcon(1, linkage); super.changeIcon(3, linkage); super.changeIcon(4, linkage); super.changeIcon(5, linkage); _iconLinkageName = linkage; refresh(); } } function set icon(linkage) { _setIcon(linkage); //return(icon); } function setHitArea(w, h) { if (hitArea_mc == undefined) { createEmptyObject("hitArea_mc", 100); } var _local2 = hitArea_mc; _local2.clear(); _local2.beginFill(16711680); _local2.drawRect(0, 0, w, h); _local2.endFill(); _local2.setVisible(false); } static var symbolName = "Button"; static var symbolOwner = mx.controls.Button; var className = "Button"; static var version = "2.0.2.126"; var btnOffset = 0; var _color = "buttonColor"; var __label = "default value"; var __labelPlacement = "right"; var falseUpSkin = "ButtonSkin"; var falseDownSkin = "ButtonSkin"; var falseOverSkin = "ButtonSkin"; var falseDisabledSkin = "ButtonSkin"; var trueUpSkin = "ButtonSkin"; var trueDownSkin = "ButtonSkin"; var trueOverSkin = "ButtonSkin"; var trueDisabledSkin = "ButtonSkin"; var falseUpIcon = ""; var falseDownIcon = ""; var falseOverIcon = ""; var falseDisabledIcon = ""; var trueUpIcon = ""; var trueDownIcon = ""; var trueOverIcon = ""; var trueDisabledIcon = ""; var clipParameters = {labelPlacement:1, icon:1, toggle:1, selected:1, label:1}; static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.Button.prototype.clipParameters, mx.controls.SimpleButton.prototype.clipParameters); var centerContent = true; var borderW = 1; }
Symbol 910 MovieClip [__Packages.mx.skins.SkinElement] Frame 0
class mx.skins.SkinElement extends MovieClip { var _visible, _x, _y, _width, _height; function SkinElement () { super(); } static function registerElement(name, className) { Object.registerClass(name, ((className == undefined) ? (mx.skins.SkinElement) : (className))); _global.skinRegistry[name] = true; } function __set__visible(visible) { _visible = visible; } function move(x, y) { _x = x; _y = y; } function setSize(w, h) { _width = w; _height = h; } }
Symbol 911 MovieClip [__Packages.mx.styles.CSSTextStyles] Frame 0
class mx.styles.CSSTextStyles { function CSSTextStyles () { } static function addTextStyles(o, bColor) { o.addProperty("textAlign", function () { return(this._tf.align); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.align = x; }); o.addProperty("fontWeight", function () { return(((this._tf.bold != undefined) ? ((this._tf.bold ? "bold" : "none")) : undefined)); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.bold = x == "bold"; }); if (bColor) { o.addProperty("color", function () { return(this._tf.color); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.color = x; }); } o.addProperty("fontFamily", function () { return(this._tf.font); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.font = x; }); o.addProperty("textIndent", function () { return(this._tf.indent); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.indent = x; }); o.addProperty("fontStyle", function () { return(((this._tf.italic != undefined) ? ((this._tf.italic ? "italic" : "none")) : undefined)); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.italic = x == "italic"; }); o.addProperty("marginLeft", function () { return(this._tf.leftMargin); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.leftMargin = x; }); o.addProperty("marginRight", function () { return(this._tf.rightMargin); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.rightMargin = x; }); o.addProperty("fontSize", function () { return(this._tf.size); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.size = x; }); o.addProperty("textDecoration", function () { return(((this._tf.underline != undefined) ? ((this._tf.underline ? "underline" : "none")) : undefined)); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.underline = x == "underline"; }); o.addProperty("embedFonts", function () { return(this._tf.embedFonts); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.embedFonts = x; }); } }
Symbol 912 MovieClip [__Packages.mx.styles.StyleManager] Frame 0
class mx.styles.StyleManager { function StyleManager () { } static function registerInheritingStyle(styleName) { inheritingStyles[styleName] = true; } static function isInheritingStyle(styleName) { return(inheritingStyles[styleName] == true); } static function registerColorStyle(styleName) { colorStyles[styleName] = true; } static function isColorStyle(styleName) { return(colorStyles[styleName] == true); } static function registerColorName(colorName, colorValue) { colorNames[colorName] = colorValue; } static function isColorName(colorName) { return(colorNames[colorName] != undefined); } static function getColorName(colorName) { return(colorNames[colorName]); } static var inheritingStyles = {color:true, direction:true, fontFamily:true, fontSize:true, fontStyle:true, fontWeight:true, textAlign:true, textIndent:true}; static var colorStyles = {barColor:true, trackColor:true, borderColor:true, buttonColor:true, color:true, dateHeaderColor:true, dateRollOverColor:true, disabledColor:true, fillColor:true, highlightColor:true, scrollTrackColor:true, selectedDateColor:true, shadowColor:true, strokeColor:true, symbolBackgroundColor:true, symbolBackgroundDisabledColor:true, symbolBackgroundPressedColor:true, symbolColor:true, symbolDisabledColor:true, themeColor:true, todayIndicatorColor:true, shadowCapColor:true, borderCapColor:true, focusColor:true}; static var colorNames = {black:0, white:16777215, red:16711680, green:65280, blue:255, magenta:16711935, yellow:16776960, cyan:65535, haloGreen:8453965, haloBlue:2881013, haloOrange:16761344}; static var TextFormatStyleProps = {font:true, size:true, color:true, leftMargin:false, rightMargin:false, italic:true, bold:true, align:true, indent:true, underline:false, embedFonts:false}; static var TextStyleMap = {textAlign:true, fontWeight:true, color:true, fontFamily:true, textIndent:true, fontStyle:true, lineHeight:true, marginLeft:true, marginRight:true, fontSize:true, textDecoration:true, embedFonts:true}; }
Symbol 913 MovieClip [__Packages.mx.styles.CSSStyleDeclaration] Frame 0
class mx.styles.CSSStyleDeclaration { var _tf; function CSSStyleDeclaration () { } function __getTextFormat(tf, bAll) { var _local5 = false; if (_tf != undefined) { var _local2; for (_local2 in mx.styles.StyleManager.TextFormatStyleProps) { if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local2])) { if (tf[_local2] == undefined) { var _local3 = _tf[_local2]; if (_local3 != undefined) { tf[_local2] = _local3; } else { _local5 = true; } } } } } else { _local5 = true; } return(_local5); } function getStyle(styleProp) { var _local2 = this[styleProp]; var _local3 = mx.styles.StyleManager.getColorName(_local2); return(((_local3 == undefined) ? (_local2) : (_local3))); } static function classConstruct() { mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true); return(true); } static var classConstructed = classConstruct(); static var CSSTextStylesDependency = mx.styles.CSSTextStyles; }
Symbol 914 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher { function EventDispatcher () { } static function _removeEventListener(queue, event, handler) { if (queue != undefined) { var _local4 = queue.length; var _local1; _local1 = 0; while (_local1 < _local4) { var _local2 = queue[_local1]; if (_local2 == handler) { queue.splice(_local1, 1); return(undefined); } _local1++; } } } static function initialize(object) { if (_fEventDispatcher == undefined) { _fEventDispatcher = new mx.events.EventDispatcher(); } object.addEventListener = _fEventDispatcher.addEventListener; object.removeEventListener = _fEventDispatcher.removeEventListener; object.dispatchEvent = _fEventDispatcher.dispatchEvent; object.dispatchQueue = _fEventDispatcher.dispatchQueue; } function dispatchQueue(queueObj, eventObj) { var _local7 = "__q_" + eventObj.type; var _local4 = queueObj[_local7]; if (_local4 != undefined) { var _local5; for (_local5 in _local4) { var _local1 = _local4[_local5]; var _local3 = typeof(_local1); if ((_local3 == "object") || (_local3 == "movieclip")) { if (_local1.handleEvent != undefined) { _local1.handleEvent(eventObj); } if (_local1[eventObj.type] != undefined) { if (exceptions[eventObj.type] == undefined) { _local1[eventObj.type](eventObj); } } } else { _local1.apply(queueObj, [eventObj]); } } } } function dispatchEvent(eventObj) { if (eventObj.target == undefined) { eventObj.target = this; } this[eventObj.type + "Handler"](eventObj); dispatchQueue(this, eventObj); } function addEventListener(event, handler) { var _local3 = "__q_" + event; if (this[_local3] == undefined) { this[_local3] = new Array(); } _global.ASSetPropFlags(this, _local3, 1); _removeEventListener(this[_local3], event, handler); this[_local3].push(handler); } function removeEventListener(event, handler) { var _local2 = "__q_" + event; _removeEventListener(this[_local2], event, handler); } static var _fEventDispatcher = undefined; static var exceptions = {move:1, draw:1, load:1}; }
Symbol 915 MovieClip [__Packages.mx.events.UIEventDispatcher] Frame 0
class mx.events.UIEventDispatcher extends mx.events.EventDispatcher { var dispatchQueue, owner, __sentLoadEvent, __origAddEventListener; function UIEventDispatcher () { super(); } static function addKeyEvents(obj) { if (obj.keyHandler == undefined) { var _local1 = (obj.keyHandler = new Object()); _local1.owner = obj; _local1.onKeyDown = _fEventDispatcher.onKeyDown; _local1.onKeyUp = _fEventDispatcher.onKeyUp; } Key.addListener(obj.keyHandler); } static function removeKeyEvents(obj) { Key.removeListener(obj.keyHandler); } static function addLoadEvents(obj) { if (obj.onLoad == undefined) { obj.onLoad = _fEventDispatcher.onLoad; obj.onUnload = _fEventDispatcher.onUnload; if (obj.getBytesTotal() == obj.getBytesLoaded()) { obj.doLater(obj, "onLoad"); } } } static function removeLoadEvents(obj) { delete obj.onLoad; delete obj.onUnload; } static function initialize(obj) { if (_fEventDispatcher == undefined) { _fEventDispatcher = new mx.events.UIEventDispatcher(); } obj.addEventListener = _fEventDispatcher.__addEventListener; obj.__origAddEventListener = _fEventDispatcher.addEventListener; obj.removeEventListener = _fEventDispatcher.removeEventListener; obj.dispatchEvent = _fEventDispatcher.dispatchEvent; obj.dispatchQueue = _fEventDispatcher.dispatchQueue; } function dispatchEvent(eventObj) { if (eventObj.target == undefined) { eventObj.target = this; } this[eventObj.type + "Handler"](eventObj); dispatchQueue(mx.events.EventDispatcher, eventObj); dispatchQueue(this, eventObj); } function onKeyDown(Void) { owner.dispatchEvent({type:"keyDown", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)}); } function onKeyUp(Void) { owner.dispatchEvent({type:"keyUp", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)}); } function onLoad(Void) { if (__sentLoadEvent != true) { dispatchEvent({type:"load"}); } __sentLoadEvent = true; } function onUnload(Void) { dispatchEvent({type:"unload"}); } function __addEventListener(event, handler) { __origAddEventListener(event, handler); var _local3 = lowLevelEvents; for (var _local5 in _local3) { if (mx.events.UIEventDispatcher[_local5][event] != undefined) { var _local2 = _local3[_local5][0]; mx.events.UIEventDispatcher[_local2](this); } } } function removeEventListener(event, handler) { var _local6 = "__q_" + event; mx.events.EventDispatcher._removeEventListener(this[_local6], event, handler); if (this[_local6].length == 0) { var _local2 = lowLevelEvents; for (var _local5 in _local2) { if (mx.events.UIEventDispatcher[_local5][event] != undefined) { var _local3 = _local2[_local5][1]; mx.events.UIEventDispatcher[_local2[_local5][1]](this); } } } } static var keyEvents = {keyDown:1, keyUp:1}; static var loadEvents = {load:1, unload:1}; static var lowLevelEvents = {keyEvents:["addKeyEvents", "removeKeyEvents"], loadEvents:["addLoadEvents", "removeLoadEvents"]}; static var _fEventDispatcher = undefined; }
Symbol 916 MovieClip [__Packages.mx.skins.ColoredSkinElement] Frame 0
class mx.skins.ColoredSkinElement { var getStyle, _color, onEnterFrame; function ColoredSkinElement () { } function setColor(c) { if (c != undefined) { var _local2 = new Color(this); _local2.setRGB(c); } } function draw(Void) { setColor(getStyle(_color)); onEnterFrame = undefined; } function invalidateStyle(Void) { onEnterFrame = draw; } static function setColorStyle(p, colorStyle) { if (p._color == undefined) { p._color = colorStyle; } p.setColor = mixins.setColor; p.invalidateStyle = mixins.invalidateStyle; p.draw = mixins.draw; p.setColor(p.getStyle(colorStyle)); } static var mixins = new mx.skins.ColoredSkinElement(); }
Symbol 917 MovieClip [__Packages.mx.core.ext.UIObjectExtensions] Frame 0
class mx.core.ext.UIObjectExtensions { function UIObjectExtensions () { } static function addGeometry(tf, ui) { tf.addProperty("width", ui.__get__width, null); tf.addProperty("height", ui.__get__height, null); tf.addProperty("left", ui.__get__left, null); tf.addProperty("x", ui.__get__x, null); tf.addProperty("top", ui.__get__top, null); tf.addProperty("y", ui.__get__y, null); tf.addProperty("right", ui.__get__right, null); tf.addProperty("bottom", ui.__get__bottom, null); tf.addProperty("visible", ui.__get__visible, ui.__set__visible); } static function Extensions() { if (bExtended == true) { return(true); } bExtended = true; var _local6 = mx.core.UIObject.prototype; var _local9 = mx.skins.SkinElement.prototype; addGeometry(_local9, _local6); mx.events.UIEventDispatcher.initialize(_local6); var _local13 = mx.skins.ColoredSkinElement; mx.styles.CSSTextStyles.addTextStyles(_local6); var _local5 = MovieClip.prototype; _local5.getTopLevel = _local6.getTopLevel; _local5.createLabel = _local6.createLabel; _local5.createObject = _local6.createObject; _local5.createClassObject = _local6.createClassObject; _local5.createEmptyObject = _local6.createEmptyObject; _local5.destroyObject = _local6.destroyObject; _global.ASSetPropFlags(_local5, "getTopLevel", 1); _global.ASSetPropFlags(_local5, "createLabel", 1); _global.ASSetPropFlags(_local5, "createObject", 1); _global.ASSetPropFlags(_local5, "createClassObject", 1); _global.ASSetPropFlags(_local5, "createEmptyObject", 1); _global.ASSetPropFlags(_local5, "destroyObject", 1); _local5.__getTextFormat = _local6.__getTextFormat; _local5._getTextFormat = _local6._getTextFormat; _local5.getStyleName = _local6.getStyleName; _local5.getStyle = _local6.getStyle; _global.ASSetPropFlags(_local5, "__getTextFormat", 1); _global.ASSetPropFlags(_local5, "_getTextFormat", 1); _global.ASSetPropFlags(_local5, "getStyleName", 1); _global.ASSetPropFlags(_local5, "getStyle", 1); var _local7 = TextField.prototype; addGeometry(_local7, _local6); _local7.addProperty("enabled", function () { return(this.__enabled); }, function (x) { this.__enabled = x; this.invalidateStyle(); }); _local7.move = _local9.move; _local7.setSize = _local9.setSize; _local7.invalidateStyle = function () { this.invalidateFlag = true; }; _local7.draw = function () { if (this.invalidateFlag) { this.invalidateFlag = false; var _local2 = this._getTextFormat(); this.setTextFormat(_local2); this.setNewTextFormat(_local2); this.embedFonts = _local2.embedFonts == true; if (this.__text != undefined) { if (this.text == "") { this.text = this.__text; } delete this.__text; } this._visible = true; } }; _local7.setColor = function (color) { this.textColor = color; }; _local7.getStyle = _local5.getStyle; _local7.__getTextFormat = _local6.__getTextFormat; _local7.setValue = function (v) { this.text = v; }; _local7.getValue = function () { return(this.text); }; _local7.addProperty("value", function () { return(this.getValue()); }, function (v) { this.setValue(v); }); _local7._getTextFormat = function () { var _local2 = this.stylecache.tf; if (_local2 != undefined) { return(_local2); } _local2 = new TextFormat(); this.__getTextFormat(_local2); this.stylecache.tf = _local2; if (this.__enabled == false) { if (this.enabledColor == undefined) { var _local4 = this.getTextFormat(); this.enabledColor = _local4.color; } var _local3 = this.getStyle("disabledColor"); _local2.color = _local3; } else if (this.enabledColor != undefined) { if (_local2.color == undefined) { _local2.color = this.enabledColor; } } return(_local2); }; _local7.getPreferredWidth = function () { this.draw(); return(this.textWidth + 4); }; _local7.getPreferredHeight = function () { this.draw(); return(this.textHeight + 4); }; TextFormat.prototype.getTextExtent2 = function (s) { var _local3 = _root._getTextExtent; if (_local3 == undefined) { _root.createTextField("_getTextExtent", -2, 0, 0, 1000, 100); _local3 = _root._getTextExtent; _local3._visible = false; } _root._getTextExtent.text = s; var _local4 = this.align; this.align = "left"; _root._getTextExtent.setTextFormat(this); this.align = _local4; return({width:_local3.textWidth, height:_local3.textHeight}); }; if (_global.style == undefined) { _global.style = new mx.styles.CSSStyleDeclaration(); _global.cascadingStyles = true; _global.styles = new Object(); _global.skinRegistry = new Object(); if (_global._origWidth == undefined) { _global.origWidth = Stage.width; _global.origHeight = Stage.height; } } var _local4 = _root; while (_local4._parent != undefined) { _local4 = _local4._parent; } _local4.addProperty("width", function () { return(Stage.width); }, null); _local4.addProperty("height", function () { return(Stage.height); }, null); _global.ASSetPropFlags(_local4, "width", 1); _global.ASSetPropFlags(_local4, "height", 1); return(true); } static var bExtended = false; static var UIObjectExtended = Extensions(); static var UIObjectDependency = mx.core.UIObject; static var SkinElementDependency = mx.skins.SkinElement; static var CSSTextStylesDependency = mx.styles.CSSTextStyles; static var UIEventDispatcherDependency = mx.events.UIEventDispatcher; }
Symbol 918 MovieClip [__Packages.mx.skins.halo.Defaults] Frame 0
class mx.skins.halo.Defaults { var beginGradientFill, beginFill, moveTo, lineTo, curveTo, endFill; function Defaults () { } static function setThemeDefaults() { var _local2 = _global.style; _local2.themeColor = 8453965 /* 0x80FF4D */; _local2.disabledColor = 8684164 /* 0x848284 */; _local2.modalTransparency = 0; _local2.filled = true; _local2.stroked = true; _local2.strokeWidth = 1; _local2.strokeColor = 0; _local2.fillColor = 16777215 /* 0xFFFFFF */; _local2.repeatInterval = 35; _local2.repeatDelay = 500; _local2.fontFamily = "_sans"; _local2.fontSize = 12; _local2.selectionColor = 13500353 /* 0xCDFFC1 */; _local2.rollOverColor = 14942166 /* 0xE3FFD6 */; _local2.useRollOver = true; _local2.backgroundDisabledColor = 14540253 /* 0xDDDDDD */; _local2.selectionDisabledColor = 14540253 /* 0xDDDDDD */; _local2.selectionDuration = 200; _local2.openDuration = 250; _local2.borderStyle = "inset"; _local2.color = 734012 /* 0x0B333C */; _local2.textSelectedColor = 24371; _local2.textRollOverColor = 2831164 /* 0x2B333C */; _local2.textDisabledColor = 16777215 /* 0xFFFFFF */; _local2.vGridLines = true; _local2.hGridLines = false; _local2.vGridLineColor = 6710886 /* 0x666666 */; _local2.hGridLineColor = 6710886 /* 0x666666 */; _local2.headerColor = 15395562 /* 0xEAEAEA */; _local2.indentation = 17; _local2.folderOpenIcon = "TreeFolderOpen"; _local2.folderClosedIcon = "TreeFolderClosed"; _local2.defaultLeafIcon = "TreeNodeIcon"; _local2.disclosureOpenIcon = "TreeDisclosureOpen"; _local2.disclosureClosedIcon = "TreeDisclosureClosed"; _local2.popupDuration = 150; _local2.todayColor = 6710886 /* 0x666666 */; _local2 = (_global.styles.ScrollSelectList = new mx.styles.CSSStyleDeclaration()); _local2.backgroundColor = 16777215 /* 0xFFFFFF */; _local2.borderColor = 13290186 /* 0xCACACA */; _local2.borderStyle = "inset"; _local2 = (_global.styles.ComboBox = new mx.styles.CSSStyleDeclaration()); _local2.borderStyle = "inset"; _local2 = (_global.styles.NumericStepper = new mx.styles.CSSStyleDeclaration()); _local2.textAlign = "center"; _local2 = (_global.styles.RectBorder = new mx.styles.CSSStyleDeclaration()); _local2.borderColor = 14015965 /* 0xD5DDDD */; _local2.buttonColor = 7305079 /* 0x6F7777 */; _local2.shadowColor = 15658734 /* 0xEEEEEE */; _local2.highlightColor = 12897484 /* 0xC4CCCC */; _local2.shadowCapColor = 14015965 /* 0xD5DDDD */; _local2.borderCapColor = 9542041 /* 0x919999 */; var _local4 = new Object(); _local4.borderColor = 16711680 /* 0xFF0000 */; _local4.buttonColor = 16711680 /* 0xFF0000 */; _local4.shadowColor = 16711680 /* 0xFF0000 */; _local4.highlightColor = 16711680 /* 0xFF0000 */; _local4.shadowCapColor = 16711680 /* 0xFF0000 */; _local4.borderCapColor = 16711680 /* 0xFF0000 */; mx.core.UIComponent.prototype.origBorderStyles = _local4; var _local3; _local3 = (_global.styles.TextInput = new mx.styles.CSSStyleDeclaration()); _local3.backgroundColor = 16777215 /* 0xFFFFFF */; _local3.borderStyle = "inset"; _global.styles.TextArea = _global.styles.TextInput; _local3 = (_global.styles.Window = new mx.styles.CSSStyleDeclaration()); _local3.borderStyle = "default"; _local3 = (_global.styles.windowStyles = new mx.styles.CSSStyleDeclaration()); _local3.fontWeight = "bold"; _local3 = (_global.styles.dataGridStyles = new mx.styles.CSSStyleDeclaration()); _local3.fontWeight = "bold"; _local3 = (_global.styles.Alert = new mx.styles.CSSStyleDeclaration()); _local3.borderStyle = "alert"; _local3 = (_global.styles.ScrollView = new mx.styles.CSSStyleDeclaration()); _local3.borderStyle = "inset"; _local3 = (_global.styles.View = new mx.styles.CSSStyleDeclaration()); _local3.borderStyle = "none"; _local3 = (_global.styles.ProgressBar = new mx.styles.CSSStyleDeclaration()); _local3.color = 11187123 /* 0xAAB3B3 */; _local3.fontWeight = "bold"; _local3 = (_global.styles.AccordionHeader = new mx.styles.CSSStyleDeclaration()); _local3.fontWeight = "bold"; _local3.fontSize = "11"; _local3 = (_global.styles.Accordion = new mx.styles.CSSStyleDeclaration()); _local3.borderStyle = "solid"; _local3.backgroundColor = 16777215 /* 0xFFFFFF */; _local3.borderColor = 9081738 /* 0x8A938A */; _local3.headerHeight = 22; _local3.marginLeft = (_local3.marginRight = (_local3.marginTop = (_local3.marginBottom = -1))); _local3.verticalGap = -1; _local3 = (_global.styles.DateChooser = new mx.styles.CSSStyleDeclaration()); _local3.borderColor = 9542041 /* 0x919999 */; _local3.headerColor = 16777215 /* 0xFFFFFF */; _local3 = (_global.styles.CalendarLayout = new mx.styles.CSSStyleDeclaration()); _local3.fontSize = 10; _local3.textAlign = "right"; _local3.color = 2831164 /* 0x2B333C */; _local3 = (_global.styles.WeekDayStyle = new mx.styles.CSSStyleDeclaration()); _local3.fontWeight = "bold"; _local3.fontSize = 11; _local3.textAlign = "center"; _local3.color = 2831164 /* 0x2B333C */; _local3 = (_global.styles.TodayStyle = new mx.styles.CSSStyleDeclaration()); _local3.color = 16777215 /* 0xFFFFFF */; _local3 = (_global.styles.HeaderDateText = new mx.styles.CSSStyleDeclaration()); _local3.fontSize = 12; _local3.fontWeight = "bold"; _local3.textAlign = "center"; } function drawRoundRect(x, y, w, h, r, c, alpha, rot, gradient, ratios) { if (typeof(r) == "object") { var _local18 = r.br; var _local16 = r.bl; var _local15 = r.tl; var _local10 = r.tr; } else { var _local10 = r; var _local15 = _local10; var _local16 = _local15; var _local18 = _local16; } if (typeof(c) == "object") { if (typeof(alpha) != "object") { var _local9 = [alpha, alpha]; } else { var _local9 = alpha; } if (ratios == undefined) { ratios = [0, 255]; } var _local14 = h * 0.7; if (typeof(rot) != "object") { var _local11 = {matrixType:"box", x:-_local14, y:_local14, w:w * 2, h:h * 4, r:rot * 0.0174532925199433 /* Math.PI/180 */}; } else { var _local11 = rot; } if (gradient == "radial") { beginGradientFill("radial", c, _local9, ratios, _local11); } else { beginGradientFill("linear", c, _local9, ratios, _local11); } } else if (c != undefined) { beginFill(c, alpha); } r = _local18; var _local13 = r - (r * 0.707106781186547); var _local12 = r - (r * 0.414213562373095); moveTo(x + w, (y + h) - r); lineTo(x + w, (y + h) - r); curveTo(x + w, (y + h) - _local12, (x + w) - _local13, (y + h) - _local13); curveTo((x + w) - _local12, y + h, (x + w) - r, y + h); r = _local16; _local13 = r - (r * 0.707106781186547); _local12 = r - (r * 0.414213562373095); lineTo(x + r, y + h); curveTo(x + _local12, y + h, x + _local13, (y + h) - _local13); curveTo(x, (y + h) - _local12, x, (y + h) - r); r = _local15; _local13 = r - (r * 0.707106781186547); _local12 = r - (r * 0.414213562373095); lineTo(x, y + r); curveTo(x, y + _local12, x + _local13, y + _local13); curveTo(x + _local12, y, x + r, y); r = _local10; _local13 = r - (r * 0.707106781186547); _local12 = r - (r * 0.414213562373095); lineTo((x + w) - r, y); curveTo((x + w) - _local12, y, (x + w) - _local13, y + _local13); curveTo(x + w, y + _local12, x + w, y + r); lineTo(x + w, (y + h) - r); if (c != undefined) { endFill(); } } static function classConstruct() { mx.core.ext.UIObjectExtensions.Extensions(); setThemeDefaults(); mx.core.UIObject.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect; return(true); } static var classConstructed = classConstruct(); static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration; static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; static var UIObjectDependency = mx.core.UIObject; }
Symbol 919 MovieClip [__Packages.mx.managers.DepthManager] Frame 0
class mx.managers.DepthManager { var _childCounter, createClassObject, createObject, _parent, swapDepths, _topmost, getDepth; function DepthManager () { MovieClip.prototype.createClassChildAtDepth = createClassChildAtDepth; MovieClip.prototype.createChildAtDepth = createChildAtDepth; MovieClip.prototype.setDepthTo = setDepthTo; MovieClip.prototype.setDepthAbove = setDepthAbove; MovieClip.prototype.setDepthBelow = setDepthBelow; MovieClip.prototype.findNextAvailableDepth = findNextAvailableDepth; MovieClip.prototype.shuffleDepths = shuffleDepths; MovieClip.prototype.getDepthByFlag = getDepthByFlag; MovieClip.prototype.buildDepthTable = buildDepthTable; _global.ASSetPropFlags(MovieClip.prototype, "createClassChildAtDepth", 1); _global.ASSetPropFlags(MovieClip.prototype, "createChildAtDepth", 1); _global.ASSetPropFlags(MovieClip.prototype, "setDepthTo", 1); _global.ASSetPropFlags(MovieClip.prototype, "setDepthAbove", 1); _global.ASSetPropFlags(MovieClip.prototype, "setDepthBelow", 1); _global.ASSetPropFlags(MovieClip.prototype, "findNextAvailableDepth", 1); _global.ASSetPropFlags(MovieClip.prototype, "shuffleDepths", 1); _global.ASSetPropFlags(MovieClip.prototype, "getDepthByFlag", 1); _global.ASSetPropFlags(MovieClip.prototype, "buildDepthTable", 1); } static function sortFunction(a, b) { if (a.getDepth() > b.getDepth()) { return(1); } return(-1); } static function test(depth) { if (depth == reservedDepth) { return(false); } return(true); } static function createClassObjectAtDepth(className, depthSpace, initObj) { var _local1; switch (depthSpace) { case kCursor : _local1 = holder.createClassChildAtDepth(className, kTopmost, initObj); break; case kTooltip : _local1 = holder.createClassChildAtDepth(className, kTop, initObj); break; } return(_local1); } static function createObjectAtDepth(linkageName, depthSpace, initObj) { var _local1; switch (depthSpace) { case kCursor : _local1 = holder.createChildAtDepth(linkageName, kTopmost, initObj); break; case kTooltip : _local1 = holder.createChildAtDepth(linkageName, kTop, initObj); break; } return(_local1); } function createClassChildAtDepth(className, depthFlag, initObj) { if (_childCounter == undefined) { _childCounter = 0; } var _local3 = buildDepthTable(); var _local2 = getDepthByFlag(depthFlag, _local3); var _local6 = "down"; if (depthFlag == kBottom) { _local6 = "up"; } var _local5; if (_local3[_local2] != undefined) { _local5 = _local2; _local2 = findNextAvailableDepth(_local2, _local3, _local6); } var _local4 = createClassObject(className, "depthChild" + (_childCounter++), _local2, initObj); if (_local5 != undefined) { _local3[_local2] = _local4; shuffleDepths(_local4, _local5, _local3, _local6); } if (depthFlag == kTopmost) { _local4._topmost = true; } return(_local4); } function createChildAtDepth(linkageName, depthFlag, initObj) { if (_childCounter == undefined) { _childCounter = 0; } var _local3 = buildDepthTable(); var _local2 = getDepthByFlag(depthFlag, _local3); var _local6 = "down"; if (depthFlag == kBottom) { _local6 = "up"; } var _local5; if (_local3[_local2] != undefined) { _local5 = _local2; _local2 = findNextAvailableDepth(_local2, _local3, _local6); } var _local4 = createObject(linkageName, "depthChild" + (_childCounter++), _local2, initObj); if (_local5 != undefined) { _local3[_local2] = _local4; shuffleDepths(_local4, _local5, _local3, _local6); } if (depthFlag == kTopmost) { _local4._topmost = true; } return(_local4); } function setDepthTo(depthFlag) { var _local2 = _parent.buildDepthTable(); var _local3 = _parent.getDepthByFlag(depthFlag, _local2); if (_local2[_local3] != undefined) { shuffleDepths(this, _local3, _local2, undefined); } else { swapDepths(_local3); } if (depthFlag == kTopmost) { _topmost = true; } else { delete _topmost; } } function setDepthAbove(targetInstance) { if (targetInstance._parent != _parent) { return(undefined); } var _local2 = targetInstance.getDepth() + 1; var _local3 = _parent.buildDepthTable(); if ((_local3[_local2] != undefined) && (getDepth() < _local2)) { _local2 = _local2 - 1; } if (_local2 > highestDepth) { _local2 = highestDepth; } if (_local2 == highestDepth) { _parent.shuffleDepths(this, _local2, _local3, "down"); } else if (_local3[_local2] != undefined) { _parent.shuffleDepths(this, _local2, _local3, undefined); } else { swapDepths(_local2); } } function setDepthBelow(targetInstance) { if (targetInstance._parent != _parent) { return(undefined); } var _local6 = targetInstance.getDepth() - 1; var _local3 = _parent.buildDepthTable(); if ((_local3[_local6] != undefined) && (getDepth() > _local6)) { _local6 = _local6 + 1; } var _local4 = lowestDepth + numberOfAuthortimeLayers; var _local5; for (_local5 in _local3) { var _local2 = _local3[_local5]; if (_local2._parent != undefined) { _local4 = Math.min(_local4, _local2.getDepth()); } } if (_local6 < _local4) { _local6 = _local4; } if (_local6 == _local4) { _parent.shuffleDepths(this, _local6, _local3, "up"); } else if (_local3[_local6] != undefined) { _parent.shuffleDepths(this, _local6, _local3, undefined); } else { swapDepths(_local6); } } function findNextAvailableDepth(targetDepth, depthTable, direction) { var _local5 = lowestDepth + numberOfAuthortimeLayers; if (targetDepth < _local5) { targetDepth = _local5; } if (depthTable[targetDepth] == undefined) { return(targetDepth); } var _local2 = targetDepth; var _local1 = targetDepth; if (direction == "down") { while (depthTable[_local1] != undefined) { _local1--; } return(_local1); } while (depthTable[_local2] != undefined) { _local2++; } return(_local2); } function shuffleDepths(subject, targetDepth, depthTable, direction) { var _local9 = lowestDepth + numberOfAuthortimeLayers; var _local8 = _local9; var _local5; for (_local5 in depthTable) { var _local7 = depthTable[_local5]; if (_local7._parent != undefined) { _local9 = Math.min(_local9, _local7.getDepth()); } } if (direction == undefined) { if (subject.getDepth() > targetDepth) { direction = "up"; } else { direction = "down"; } } var _local1 = new Array(); for (_local5 in depthTable) { var _local7 = depthTable[_local5]; if (_local7._parent != undefined) { _local1.push(_local7); } } _local1.sort(sortFunction); if (direction == "up") { var _local3; var _local11; do { if (_local1.length <= 0) { break; } _local3 = _local1.pop(); } while (_local3 != subject); do { if (_local1.length <= 0) { break; } _local11 = subject.getDepth(); _local3 = _local1.pop(); var _local4 = _local3.getDepth(); if (_local11 > (_local4 + 1)) { if (_local4 >= 0) { subject.swapDepths(_local4 + 1); } else if ((_local11 > _local8) && (_local4 < _local8)) { subject.swapDepths(_local8); } } subject.swapDepths(_local3); } while (_local4 != targetDepth); } else if (direction == "down") { var _local3; do { if (_local1.length <= 0) { break; } _local3 = _local1.shift(); } while (_local3 != subject); do { if (_local1.length <= 0) { break; } var _local11 = _local3.getDepth(); _local3 = _local1.shift(); var _local4 = _local3.getDepth(); if ((_local11 < (_local4 - 1)) && (_local4 > 0)) { subject.swapDepths(_local4 - 1); } subject.swapDepths(_local3); } while (_local4 != targetDepth); } } function getDepthByFlag(depthFlag, depthTable) { var _local2 = 0; if ((depthFlag == kTop) || (depthFlag == kNotopmost)) { var _local5 = 0; var _local7 = false; var _local8; for (_local8 in depthTable) { var _local9 = depthTable[_local8]; var _local3 = typeof(_local9); if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) { if (_local9.getDepth() <= highestDepth) { if (!_local9._topmost) { _local2 = Math.max(_local2, _local9.getDepth()); } else if (!_local7) { _local5 = _local9.getDepth(); _local7 = true; } else { _local5 = Math.min(_local5, _local9.getDepth()); } } } } _local2 = _local2 + 20; if (_local7) { if (_local2 >= _local5) { _local2 = _local5 - 1; } } } else if (depthFlag == kBottom) { for (var _local8 in depthTable) { var _local9 = depthTable[_local8]; var _local3 = typeof(_local9); if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) { if (_local9.getDepth() <= highestDepth) { _local2 = Math.min(_local2, _local9.getDepth()); } } } _local2 = _local2 - 20; } else if (depthFlag == kTopmost) { for (var _local8 in depthTable) { var _local9 = depthTable[_local8]; var _local3 = typeof(_local9); if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) { if (_local9.getDepth() <= highestDepth) { _local2 = Math.max(_local2, _local9.getDepth()); } } } _local2 = _local2 + 100; } if (_local2 >= highestDepth) { _local2 = highestDepth; } var _local6 = lowestDepth + numberOfAuthortimeLayers; for (var _local9 in depthTable) { var _local4 = depthTable[_local9]; if (_local4._parent != undefined) { _local6 = Math.min(_local6, _local4.getDepth()); } } if (_local2 <= _local6) { _local2 = _local6; } return(_local2); } function buildDepthTable(Void) { var _local5 = new Array(); var _local4; for (_local4 in this) { var _local2 = this[_local4]; var _local3 = typeof(_local2); if ((_local3 == "movieclip") || ((_local3 == "object") && (_local2.__getTextFormat != undefined))) { if (_local2._parent == this) { _local5[_local2.getDepth()] = _local2; } } } return(_local5); } static var reservedDepth = 1048575; static var highestDepth = 1048574; static var lowestDepth = -16383; static var numberOfAuthortimeLayers = 383; static var kCursor = 101; static var kTooltip = 102; static var kTop = 201; static var kBottom = 202; static var kTopmost = 203; static var kNotopmost = 204; static var holder = _root.createEmptyMovieClip("reserved", reservedDepth); static var __depthManager = new mx.managers.DepthManager(); }
Symbol 920 MovieClip [__Packages.mx.managers.SystemManager] Frame 0
class mx.managers.SystemManager { static var _xAddEventListener, addEventListener, __addEventListener, _xRemoveEventListener, removeEventListener, __removeEventListener, form, __screen, dispatchEvent; function SystemManager () { } static function init(Void) { if (_initialized == false) { _initialized = true; mx.events.EventDispatcher.initialize(mx.managers.SystemManager); Mouse.addListener(mx.managers.SystemManager); Stage.addListener(mx.managers.SystemManager); _xAddEventListener = addEventListener; addEventListener = __addEventListener; _xRemoveEventListener = removeEventListener; removeEventListener = __removeEventListener; } } static function addFocusManager(f) { form = f; f.focusManager.activate(); } static function removeFocusManager(f) { } static function onMouseDown(Void) { var _local1 = form; _local1.focusManager._onMouseDown(); } static function onResize(Void) { var _local7 = Stage.width; var _local6 = Stage.height; var _local9 = _global.origWidth; var _local8 = _global.origHeight; var _local3 = Stage.align; var _local5 = (_local9 - _local7) / 2; var _local4 = (_local8 - _local6) / 2; if (_local3 == "T") { _local4 = 0; } else if (_local3 == "B") { _local4 = _local8 - _local6; } else if (_local3 == "L") { _local5 = 0; } else if (_local3 == "R") { _local5 = _local9 - _local7; } else if (_local3 == "LT") { _local4 = 0; _local5 = 0; } else if (_local3 == "TR") { _local4 = 0; _local5 = _local9 - _local7; } else if (_local3 == "LB") { _local4 = _local8 - _local6; _local5 = 0; } else if (_local3 == "RB") { _local4 = _local8 - _local6; _local5 = _local9 - _local7; } if (__screen == undefined) { __screen = new Object(); } __screen.x = _local5; __screen.y = _local4; __screen.width = _local7; __screen.height = _local6; _root.focusManager.relocate(); dispatchEvent({type:"resize"}); } static function get screen() { init(); if (__screen == undefined) { onResize(); } return(__screen); } static var _initialized = false; static var idleFrames = 0; static var isMouseDown = false; static var forms = new Array(); }
Symbol 921 MovieClip [__Packages.mx.managers.FocusManager] Frame 0
class mx.managers.FocusManager extends mx.core.UIComponent { var __defaultPushButton, defPushButton, form, move, tabEnabled, _width, _height, _x, _y, _alpha, _parent, tabCapture, watch, lastMouse, _visible, lastFocus, doLater, lastSelFocus, cancelAllDoLaters, _searchKey, _lastTarget, _firstNode, _nextIsNext, _nextNode, _lastx, _prevNode, _needPrev, _foundList, _prevObj, _nextObj, _firstObj, _lastObj, _lastNode, lastTabFocus, findFocusFromObject; function FocusManager () { super(); } function get defaultPushButton() { return(__defaultPushButton); } function set defaultPushButton(x) { if (x != __defaultPushButton) { __defaultPushButton.__set__emphasized(false); __defaultPushButton = x; defPushButton = x; x.__set__emphasized(true); } //return(defaultPushButton); } function getMaxTabIndex(o) { var _local3 = 0; var _local6; for (_local6 in o) { var _local2 = o[_local6]; if (_local2._parent == o) { if (_local2.tabIndex != undefined) { if (_local2.tabIndex > _local3) { _local3 = _local2.tabIndex; } } if (_local2.tabChildren == true) { var _local4 = getMaxTabIndex(_local2); if (_local4 > _local3) { _local3 = _local4; } } } } return(_local3); } function getNextTabIndex(Void) { return(getMaxTabIndex(form) + 1); } function get nextTabIndex() { return(getNextTabIndex()); } function relocate(Void) { var _local2 = mx.managers.SystemManager.__get__screen(); move(_local2.x - 1, _local2.y - 1); } function init(Void) { super.init(); tabEnabled = false; _width = (_height = 1); _x = (_y = -1); _alpha = 0; _parent.focusManager = this; _parent.tabChildren = true; _parent.tabEnabled = false; form = _parent; _parent.addEventListener("hide", this); _parent.addEventListener("reveal", this); mx.managers.SystemManager.init(); mx.managers.SystemManager.addFocusManager(form); tabCapture.tabIndex = 0; watch("enabled", enabledChanged); Selection.addListener(this); lastMouse = new Object(); _global.ASSetPropFlags(_parent, "focusManager", 1); _global.ASSetPropFlags(_parent, "tabChildren", 1); _global.ASSetPropFlags(_parent, "tabEnabled", 1); } function enabledChanged(id, oldValue, newValue) { _visible = newValue; return(newValue); } function activate(Void) { Key.addListener(this); activated = (_visible = true); if (lastFocus != undefined) { bNeedFocus = true; if (!mx.managers.SystemManager.isMouseDown) { doLater(this, "restoreFocus"); } } } function deactivate(Void) { Key.removeListener(this); activated = (_visible = false); var _local2 = getSelectionFocus(); var _local3 = getActualFocus(_local2); if (isOurFocus(_local3)) { lastSelFocus = _local2; lastFocus = _local3; } cancelAllDoLaters(); } function isOurFocus(o) { if (o.focusManager == this) { return(true); } while (o != undefined) { if (o.focusManager != undefined) { return(false); } if (o._parent == _parent) { return(true); } o = o._parent; } return(false); } function onSetFocus(o, n) { if (n == null) { if (activated) { bNeedFocus = true; } } else { var _local2 = getFocus(); if (isOurFocus(_local2)) { bNeedFocus = false; lastFocus = _local2; lastSelFocus = n; } } } function restoreFocus(Void) { var _local2 = lastSelFocus.hscroll; if (_local2 != undefined) { var _local5 = lastSelFocus.scroll; var _local4 = lastSelFocus.background; } lastFocus.setFocus(); var _local3 = Selection; Selection.setSelection(_local3.lastBeginIndex, _local3.lastEndIndex); if (_local2 != undefined) { lastSelFocus.scroll = _local5; lastSelFocus.hscroll = _local2; lastSelFocus.background = _local4; } } function onUnload(Void) { mx.managers.SystemManager.removeFocusManager(form); } function setFocus(o) { if (o == null) { Selection.setFocus(null); } else if (o.setFocus == undefined) { Selection.setFocus(o); } else { o.setFocus(); } } function getActualFocus(o) { var _local1 = o._parent; while (_local1 != undefined) { if (_local1.focusTextField != undefined) { while (_local1.focusTextField != undefined) { o = _local1; _local1 = _local1._parent; if (_local1 == undefined) { return(undefined); } if (_local1.focusTextField == undefined) { return(o); } } } if (_local1.tabEnabled != true) { return(o); } o = _local1; _local1 = o._parent; } return(undefined); } function getSelectionFocus() { var m = Selection.getFocus(); var o = eval (m); return(o); } function getFocus(Void) { var _local2 = getSelectionFocus(); return(getActualFocus(_local2)); } function walkTree(p, index, groupName, dir, lookup, firstChild) { var _local5 = true; var _local11; for (_local11 in p) { var _local2 = p[_local11]; if ((((_local2._parent == p) && (_local2.enabled != false)) && (_local2._visible != false)) && ((_local2.tabEnabled == true) || ((_local2.tabEnabled != false) && ((((((((_local2.onPress != undefined) || (_local2.onRelease != undefined)) || (_local2.onReleaseOutside != undefined)) || (_local2.onDragOut != undefined)) || (_local2.onDragOver != undefined)) || (_local2.onRollOver != undefined)) || (_local2.onRollOut != undefined)) || (_local2 instanceof TextField))))) { if (_local2._searchKey == _searchKey) { continue; } _local2._searchKey = _searchKey; if (_local2 != _lastTarget) { if (((_local2.groupName != undefined) || (groupName != undefined)) && (_local2.groupName == groupName)) { continue; } if ((_local2 instanceof TextField) && (_local2.selectable == false)) { continue; } if (_local5 || (((_local2.groupName != undefined) && (_local2.groupName == _firstNode.groupName)) && (_local2.selected == true))) { if (firstChild) { _firstNode = _local2; firstChild = false; } } if (_nextIsNext == true) { if ((((_local2.groupName != undefined) && (_local2.groupName == _nextNode.groupName)) && (_local2.selected == true)) || ((_nextNode == undefined) && ((_local2.groupName == undefined) || ((_local2.groupName != undefined) && (_local2.groupName != groupName))))) { _nextNode = _local2; } } if ((_local2.groupName == undefined) || (groupName != _local2.groupName)) { if (((_lastx.groupName != undefined) && (_local2.groupName == _lastx.groupName)) && (_lastx.selected == true)) { } else { _lastx = _local2; } } } else { _prevNode = _lastx; _needPrev = false; _nextIsNext = true; } if (_local2.tabIndex != undefined) { if (_local2.tabIndex == index) { if (_foundList[_local2._name] == undefined) { if (_needPrev) { _prevObj = _local2; _needPrev = false; } _nextObj = _local2; } } if (dir && (_local2.tabIndex > index)) { if (((_nextObj == undefined) || ((_nextObj.tabIndex > _local2.tabIndex) && (((_local2.groupName == undefined) || (_nextObj.groupName == undefined)) || (_local2.groupName != _nextObj.groupName)))) || ((((_nextObj.groupName != undefined) && (_nextObj.groupName == _local2.groupName)) && (_nextObj.selected != true)) && ((_local2.selected == true) || (_nextObj.tabIndex > _local2.tabIndex)))) { _nextObj = _local2; } } else if ((!dir) && (_local2.tabIndex < index)) { if (((_prevObj == undefined) || ((_prevObj.tabIndex < _local2.tabIndex) && (((_local2.groupName == undefined) || (_prevObj.groupName == undefined)) || (_local2.groupName != _prevObj.groupName)))) || ((((_prevObj.groupName != undefined) && (_prevObj.groupName == _local2.groupName)) && (_prevObj.selected != true)) && ((_local2.selected == true) || (_prevObj.tabIndex < _local2.tabIndex)))) { _prevObj = _local2; } } if (((_firstObj == undefined) || ((_local2.tabIndex < _firstObj.tabIndex) && (((_local2.groupName == undefined) || (_firstObj.groupName == undefined)) || (_local2.groupName != _firstObj.groupName)))) || ((((_firstObj.groupName != undefined) && (_firstObj.groupName == _local2.groupName)) && (_firstObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex < _firstObj.tabIndex)))) { _firstObj = _local2; } if (((_lastObj == undefined) || ((_local2.tabIndex > _lastObj.tabIndex) && (((_local2.groupName == undefined) || (_lastObj.groupName == undefined)) || (_local2.groupName != _lastObj.groupName)))) || ((((_lastObj.groupName != undefined) && (_lastObj.groupName == _local2.groupName)) && (_lastObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex > _lastObj.tabIndex)))) { _lastObj = _local2; } } if (_local2.tabChildren) { getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild)); } _local5 = false; } else if (((_local2._parent == p) && (_local2.tabChildren == true)) && (_local2._visible != false)) { if (_local2 == _lastTarget) { if (_local2._searchKey == _searchKey) { continue; } _local2._searchKey = _searchKey; if (_prevNode == undefined) { var _local3 = _lastx; var _local7 = false; while (_local3 != undefined) { if (_local3 == _local2) { _local7 = true; break; } _local3 = _local3._parent; } if (_local7 == false) { _prevNode = _lastx; } } _needPrev = false; if (_nextNode == undefined) { _nextIsNext = true; } } else if (!((_local2.focusManager != undefined) && (_local2.focusManager._parent == _local2))) { if (_local2._searchKey == _searchKey) { continue; } _local2._searchKey = _searchKey; getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild)); } _local5 = false; } } _lastNode = _lastx; if (lookup) { if (p._parent != undefined) { if (p != _parent) { if ((_prevNode == undefined) && (dir)) { _needPrev = true; } else if ((_nextNode == undefined) && (!dir)) { _nextIsNext = false; } _lastTarget = _lastTarget._parent; getTabCandidate(p._parent, index, groupName, dir, true); } } } } function getTabCandidate(o, index, groupName, dir, firstChild) { var _local2; var _local3 = true; if (o == _parent) { _local2 = o; _local3 = false; } else { _local2 = o._parent; if (_local2 == undefined) { _local2 = o; _local3 = false; } } walkTree(_local2, index, groupName, dir, _local3, firstChild); } function getTabCandidateFromChildren(o, index, groupName, dir, firstChild) { walkTree(o, index, groupName, dir, false, firstChild); } function getFocusManagerFromObject(o) { while (o != undefined) { if (o.focusManager != undefined) { return(o.focusManager); } o = o._parent; } return(undefined); } function tabHandler(Void) { bDrawFocus = true; var _local5 = getSelectionFocus(); var _local4 = getActualFocus(_local5); if (_local4 != _local5) { _local5 = _local4; } if (getFocusManagerFromObject(_local5) != this) { _local5 == undefined; } if (_local5 == undefined) { _local5 = form; } else if (_local5.tabIndex != undefined) { if ((_foundList != undefined) || (_foundList.tabIndex != _local5.tabIndex)) { _foundList = new Object(); _foundList.tabIndex = _local5.tabIndex; } _foundList[_local5._name] = _local5; } var _local3 = Key.isDown(16) != true; _searchKey = getTimer(); _needPrev = true; _nextIsNext = false; _lastx = undefined; _firstNode = undefined; _lastNode = undefined; _nextNode = undefined; _prevNode = undefined; _firstObj = undefined; _lastObj = undefined; _nextObj = undefined; _prevObj = undefined; _lastTarget = _local5; var _local6 = _local5; getTabCandidate(_local6, ((_local5.tabIndex == undefined) ? 0 : (_local5.tabIndex)), _local5.groupName, _local3, true); var _local2; if (_local3) { if (_nextObj != undefined) { _local2 = _nextObj; } else { _local2 = _firstObj; } } else if (_prevObj != undefined) { _local2 = _prevObj; } else { _local2 = _lastObj; } if (_local2.tabIndex != _local5.tabIndex) { _foundList = new Object(); _foundList.tabIndex = _local2.tabIndex; _foundList[_local2._name] = _local2; } else { if (_foundList == undefined) { _foundList = new Object(); _foundList.tabIndex = _local2.tabIndex; } _foundList[_local2._name] = _local2; } if (_local2 == undefined) { if (_local3 == false) { if (_nextNode != undefined) { _local2 = _nextNode; } else { _local2 = _firstNode; } } else if ((_prevNode == undefined) || (_local5 == form)) { _local2 = _lastNode; } else { _local2 = _prevNode; } } if (_local2 == undefined) { return(undefined); } lastTabFocus = _local2; setFocus(_local2); if (_local2.emphasized != undefined) { if (defPushButton != undefined) { _local5 = defPushButton; defPushButton = _local2; _local5.emphasized = false; _local2.emphasized = true; } } else if ((defPushButton != undefined) && (defPushButton != __defaultPushButton)) { _local5 = defPushButton; defPushButton = __defaultPushButton; _local5.emphasized = false; __defaultPushButton.__set__emphasized(true); } } function onKeyDown(Void) { mx.managers.SystemManager.idleFrames = 0; if (defaultPushButtonEnabled) { if (Key.getCode() == 13) { if (defaultPushButton != undefined) { doLater(this, "sendDefaultPushButtonEvent"); } } } } function sendDefaultPushButtonEvent(Void) { defPushButton.dispatchEvent({type:"click"}); } function getMousedComponentFromChildren(x, y, o) { for (var _local7 in o) { var _local2 = o[_local7]; if (((_local2._visible && (_local2.enabled)) && (_local2._parent == o)) && (_local2._searchKey != _searchKey)) { _local2._searchKey = _searchKey; if (_local2.hitTest(x, y, true)) { if ((_local2.onPress != undefined) || (_local2.onRelease != undefined)) { return(_local2); } var _local3 = getMousedComponentFromChildren(x, y, _local2); if (_local3 != undefined) { return(_local3); } return(_local2); } } } return(undefined); } function mouseActivate(Void) { if (!bNeedFocus) { return(undefined); } _searchKey = getTimer(); var _local2 = getMousedComponentFromChildren(lastMouse.x, lastMouse.y, form); if (_local2 instanceof mx.core.UIComponent) { return(undefined); } _local2 = findFocusFromObject(_local2); if (_local2 == lastFocus) { return(undefined); } if (_local2 == undefined) { doLater(this, "restoreFocus"); return(undefined); } var _local3 = _local2.hscroll; if (_local3 != undefined) { var _local6 = _local2.scroll; var _local5 = _local2.background; } setFocus(_local2); var _local4 = Selection; Selection.setSelection(_local4.lastBeginIndex, _local4.lastEndIndex); if (_local3 != undefined) { _local2.scroll = _local6; _local2.hscroll = _local3; _local2.background = _local5; } } function _onMouseDown(Void) { bDrawFocus = false; if (lastFocus != undefined) { lastFocus.drawFocus(false); } mx.managers.SystemManager.idleFrames = 0; var _local3 = Selection; _local3.lastBeginIndex = Selection.getBeginIndex(); _local3.lastEndIndex = Selection.getEndIndex(); lastMouse.x = _root._xmouse; lastMouse.y = _root._ymouse; _root.localToGlobal(lastMouse); } function onMouseUp(Void) { if (_visible) { doLater(this, "mouseActivate"); } } function handleEvent(e) { if (e.type == "reveal") { mx.managers.SystemManager.activate(form); } else { mx.managers.SystemManager.deactivate(form); } } static function enableFocusManagement() { if (!initialized) { initialized = true; Object.registerClass("FocusManager", mx.managers.FocusManager); if (_root.focusManager == undefined) { _root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--); } } } static var symbolName = "FocusManager"; static var symbolOwner = mx.managers.FocusManager; static var version = "2.0.2.126"; var className = "FocusManager"; var bNeedFocus = false; var bDrawFocus = false; var defaultPushButtonEnabled = true; var activated = true; static var initialized = false; static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; }
Symbol 922 MovieClip [__Packages.mx.skins.halo.FocusRect] Frame 0
class mx.skins.halo.FocusRect extends mx.skins.SkinElement { var boundingBox_mc, _xscale, _yscale, clear, beginFill, drawRoundRect, endFill, _visible; function FocusRect () { super(); boundingBox_mc._visible = false; boundingBox_mc._width = (boundingBox_mc._height = 0); } function draw(o) { o.adjustFocusRect(); } function setSize(w, h, r, a, rectCol) { _xscale = (_yscale = 100); clear(); if (typeof(r) == "object") { r.br = ((r.br > 2) ? (r.br - 2) : 0); r.bl = ((r.bl > 2) ? (r.bl - 2) : 0); r.tr = ((r.tr > 2) ? (r.tr - 2) : 0); r.tl = ((r.tl > 2) ? (r.tl - 2) : 0); beginFill(rectCol, a * 0.3); drawRoundRect(0, 0, w, h, r); drawRoundRect(2, 2, w - 4, h - 4, r); endFill(); r.br = ((r.br > 1) ? (r.br + 1) : 0); r.bl = ((r.bl > 1) ? (r.bl + 1) : 0); r.tr = ((r.tr > 1) ? (r.tr + 1) : 0); r.tl = ((r.tl > 1) ? (r.tl + 1) : 0); beginFill(rectCol, a * 0.3); drawRoundRect(1, 1, w - 2, h - 2, r); r.br = ((r.br > 1) ? (r.br - 1) : 0); r.bl = ((r.bl > 1) ? (r.bl - 1) : 0); r.tr = ((r.tr > 1) ? (r.tr - 1) : 0); r.tl = ((r.tl > 1) ? (r.tl - 1) : 0); drawRoundRect(2, 2, w - 4, h - 4, r); endFill(); } else { var _local5; if (r != 0) { _local5 = r - 2; } else { _local5 = 0; } beginFill(rectCol, a * 0.3); drawRoundRect(0, 0, w, h, r); drawRoundRect(2, 2, w - 4, h - 4, _local5); endFill(); beginFill(rectCol, a * 0.3); if (r != 0) { _local5 = r - 2; r = r - 1; } else { _local5 = 0; r = 0; } drawRoundRect(1, 1, w - 2, h - 2, r); drawRoundRect(2, 2, w - 4, h - 4, _local5); endFill(); } } function handleEvent(e) { if (e.type == "unload") { _visible = true; } else if (e.type == "resize") { e.target.adjustFocusRect(); } else if (e.type == "move") { e.target.adjustFocusRect(); } } static function classConstruct() { mx.core.UIComponent.prototype.drawFocus = function (focused) { var _local2 = this._parent.focus_mc; if (!focused) { _local2._visible = false; this.removeEventListener("unload", _local2); this.removeEventListener("move", _local2); this.removeEventListener("resize", _local2); } else { if (_local2 == undefined) { _local2 = this._parent.createChildAtDepth("FocusRect", mx.managers.DepthManager.kTop); _local2.tabEnabled = false; this._parent.focus_mc = _local2; } else { _local2._visible = true; } _local2.draw(this); if (_local2.getDepth() < this.getDepth()) { _local2.setDepthAbove(this); } this.addEventListener("unload", _local2); this.addEventListener("move", _local2); this.addEventListener("resize", _local2); } }; mx.core.UIComponent.prototype.adjustFocusRect = function () { var _local2 = this.getStyle("themeColor"); if (_local2 == undefined) { _local2 = 8453965 /* 0x80FF4D */; } var _local3 = this._parent.focus_mc; _local3.setSize(this.width + 4, this.height + 4, 0, 100, _local2); _local3.move(this.x - 2, this.y - 2); }; TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus; TextField.prototype.adjustFocusRect = mx.core.UIComponent.prototype.adjustFocusRect; mx.skins.halo.FocusRect.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect; return(true); } static var classConstructed = classConstruct(); static var DefaultsDependency = mx.skins.halo.Defaults; static var UIComponentDependency = mx.core.UIComponent; }
Symbol 923 MovieClip [__Packages.mx.managers.OverlappedWindows] Frame 0
class mx.managers.OverlappedWindows { function OverlappedWindows () { } static function checkIdle(Void) { if (mx.managers.SystemManager.idleFrames > 10) { mx.managers.SystemManager.dispatchEvent({type:"idle"}); } else { mx.managers.SystemManager.idleFrames++; } } static function __addEventListener(e, o, l) { if (e == "idle") { if (mx.managers.SystemManager.interval == undefined) { mx.managers.SystemManager.interval = setInterval(mx.managers.SystemManager.checkIdle, 100); } } mx.managers.SystemManager._xAddEventListener(e, o, l); } static function __removeEventListener(e, o, l) { if (e == "idle") { if (mx.managers.SystemManager._xRemoveEventListener(e, o, l) == 0) { clearInterval(mx.managers.SystemManager.interval); } } else { mx.managers.SystemManager._xRemoveEventListener(e, o, l); } } static function onMouseDown(Void) { mx.managers.SystemManager.idleFrames = 0; mx.managers.SystemManager.isMouseDown = true; var _local5 = _root; var _local3; var _local8 = _root._xmouse; var _local7 = _root._ymouse; if (mx.managers.SystemManager.form.modalWindow == undefined) { if (mx.managers.SystemManager.forms.length > 1) { var _local6 = mx.managers.SystemManager.forms.length; var _local4; _local4 = 0; while (_local4 < _local6) { var _local2 = mx.managers.SystemManager.forms[_local4]; if (_local2._visible) { if (_local2.hitTest(_local8, _local7)) { if (_local3 == undefined) { _local3 = _local2.getDepth(); _local5 = _local2; } else if (_local3 < _local2.getDepth()) { _local3 = _local2.getDepth(); _local5 = _local2; } } } _local4++; } if (_local5 != mx.managers.SystemManager.form) { mx.managers.SystemManager.activate(_local5); } } } var _local9 = mx.managers.SystemManager.form; _local9.focusManager._onMouseDown(); } static function onMouseMove(Void) { mx.managers.SystemManager.idleFrames = 0; } static function onMouseUp(Void) { mx.managers.SystemManager.isMouseDown = false; mx.managers.SystemManager.idleFrames = 0; } static function activate(f) { if (mx.managers.SystemManager.form != undefined) { if ((mx.managers.SystemManager.form != f) && (mx.managers.SystemManager.forms.length > 1)) { var _local1 = mx.managers.SystemManager.form; _local1.focusManager.deactivate(); } } mx.managers.SystemManager.form = f; f.focusManager.activate(); } static function deactivate(f) { if (mx.managers.SystemManager.form != undefined) { if ((mx.managers.SystemManager.form == f) && (mx.managers.SystemManager.forms.length > 1)) { var _local5 = mx.managers.SystemManager.form; _local5.focusManager.deactivate(); var _local3 = mx.managers.SystemManager.forms.length; var _local1; var _local2; _local1 = 0; while (_local1 < _local3) { if (mx.managers.SystemManager.forms[_local1] == f) { _local1 = _local1 + 1; while (_local1 < _local3) { if (mx.managers.SystemManager.forms[_local1]._visible == true) { _local2 = mx.managers.SystemManager.forms[_local1]; } _local1++; } mx.managers.SystemManager.form = _local2; break; } if (mx.managers.SystemManager.forms[_local1]._visible == true) { _local2 = mx.managers.SystemManager.forms[_local1]; } _local1++; } _local5 = mx.managers.SystemManager.form; _local5.focusManager.activate(); } } } static function addFocusManager(f) { mx.managers.SystemManager.forms.push(f); mx.managers.SystemManager.activate(f); } static function removeFocusManager(f) { var _local3 = mx.managers.SystemManager.forms.length; var _local1; _local1 = 0; while (_local1 < _local3) { if (mx.managers.SystemManager.forms[_local1] == f) { if (mx.managers.SystemManager.form == f) { mx.managers.SystemManager.deactivate(f); } mx.managers.SystemManager.forms.splice(_local1, 1); return(undefined); } _local1++; } } static function enableOverlappedWindows() { if (!initialized) { initialized = true; mx.managers.SystemManager.checkIdle = checkIdle; mx.managers.SystemManager.__addEventListener = __addEventListener; mx.managers.SystemManager.__removeEventListener = __removeEventListener; mx.managers.SystemManager.onMouseDown = onMouseDown; mx.managers.SystemManager.onMouseMove = onMouseMove; mx.managers.SystemManager.onMouseUp = onMouseUp; mx.managers.SystemManager.activate = activate; mx.managers.SystemManager.deactivate = deactivate; mx.managers.SystemManager.addFocusManager = addFocusManager; mx.managers.SystemManager.removeFocusManager = removeFocusManager; } } static var initialized = false; static var SystemManagerDependency = mx.managers.SystemManager; }
Symbol 924 MovieClip [__Packages.mx.styles.CSSSetStyle] Frame 0
class mx.styles.CSSSetStyle { var styleName, stylecache, _color, setColor, invalidateStyle; function CSSSetStyle () { } function _setStyle(styleProp, newValue) { this[styleProp] = newValue; if (mx.styles.StyleManager.TextStyleMap[styleProp] != undefined) { if (styleProp == "color") { if (isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return(undefined); } } } _level0.changeTextStyleInChildren(styleProp); return(undefined); } if (mx.styles.StyleManager.isColorStyle(styleProp)) { if (isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return(undefined); } } if (styleProp == "themeColor") { var _local7 = mx.styles.StyleManager.colorNames.haloBlue; var _local6 = mx.styles.StyleManager.colorNames.haloGreen; var _local8 = mx.styles.StyleManager.colorNames.haloOrange; var _local4 = {}; _local4[_local7] = 12188666 /* 0xB9FBFA */; _local4[_local6] = 13500353 /* 0xCDFFC1 */; _local4[_local8] = 16766319 /* 0xFFD56F */; var _local5 = {}; _local5[_local7] = 13958653 /* 0xD4FDFD */; _local5[_local6] = 14942166 /* 0xE3FFD6 */; _local5[_local8] = 16772787 /* 0xFFEEB3 */; var _local9 = _local4[newValue]; var _local10 = _local5[newValue]; if (_local9 == undefined) { _local9 = newValue; } if (_local10 == undefined) { _local10 = newValue; } setStyle("selectionColor", _local9); setStyle("rollOverColor", _local10); } _level0.changeColorStyleInChildren(styleName, styleProp, newValue); } else { if ((styleProp == "backgroundColor") && (isNaN(newValue))) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return(undefined); } } _level0.notifyStyleChangeInChildren(styleName, styleProp, newValue); } } function changeTextStyleInChildren(styleProp) { var _local4 = getTimer(); var _local5; for (_local5 in this) { var _local2 = this[_local5]; if (_local2._parent == this) { if (_local2.searchKey != _local4) { if (_local2.stylecache != undefined) { delete _local2.stylecache.tf; delete _local2.stylecache[styleProp]; } _local2.invalidateStyle(styleProp); _local2.changeTextStyleInChildren(styleProp); _local2.searchKey = _local4; } } } } function changeColorStyleInChildren(sheetName, colorStyle, newValue) { var _local6 = getTimer(); var _local7; for (_local7 in this) { var _local2 = this[_local7]; if (_local2._parent == this) { if (_local2.searchKey != _local6) { if (((_local2.getStyleName() == sheetName) || (sheetName == undefined)) || (sheetName == "_global")) { if (_local2.stylecache != undefined) { delete _local2.stylecache[colorStyle]; } if (typeof(_local2._color) == "string") { if (_local2._color == colorStyle) { var _local4 = _local2.getStyle(colorStyle); if (colorStyle == "color") { if (stylecache.tf.color != undefined) { stylecache.tf.color = _local4; } } _local2.setColor(_local4); } } else if (_local2._color[colorStyle] != undefined) { if (typeof(_local2) != "movieclip") { _local2._parent.invalidateStyle(); } else { _local2.invalidateStyle(colorStyle); } } } _local2.changeColorStyleInChildren(sheetName, colorStyle, newValue); _local2.searchKey = _local6; } } } } function notifyStyleChangeInChildren(sheetName, styleProp, newValue) { var _local5 = getTimer(); var _local6; for (_local6 in this) { var _local2 = this[_local6]; if (_local2._parent == this) { if (_local2.searchKey != _local5) { if (((_local2.styleName == sheetName) || ((_local2.styleName != undefined) && (typeof(_local2.styleName) == "movieclip"))) || (sheetName == undefined)) { if (_local2.stylecache != undefined) { delete _local2.stylecache[styleProp]; delete _local2.stylecache.tf; } delete _local2.enabledColor; _local2.invalidateStyle(styleProp); } _local2.notifyStyleChangeInChildren(sheetName, styleProp, newValue); _local2.searchKey = _local5; } } } } function setStyle(styleProp, newValue) { if (stylecache != undefined) { delete stylecache[styleProp]; delete stylecache.tf; } this[styleProp] = newValue; if (mx.styles.StyleManager.isColorStyle(styleProp)) { if (isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return(undefined); } } if (styleProp == "themeColor") { var _local10 = mx.styles.StyleManager.colorNames.haloBlue; var _local9 = mx.styles.StyleManager.colorNames.haloGreen; var _local11 = mx.styles.StyleManager.colorNames.haloOrange; var _local6 = {}; _local6[_local10] = 12188666 /* 0xB9FBFA */; _local6[_local9] = 13500353 /* 0xCDFFC1 */; _local6[_local11] = 16766319 /* 0xFFD56F */; var _local7 = {}; _local7[_local10] = 13958653 /* 0xD4FDFD */; _local7[_local9] = 14942166 /* 0xE3FFD6 */; _local7[_local11] = 16772787 /* 0xFFEEB3 */; var _local12 = _local6[newValue]; var _local13 = _local7[newValue]; if (_local12 == undefined) { _local12 = newValue; } if (_local13 == undefined) { _local13 = newValue; } setStyle("selectionColor", _local12); setStyle("rollOverColor", _local13); } if (typeof(_color) == "string") { if (_color == styleProp) { if (styleProp == "color") { if (stylecache.tf.color != undefined) { stylecache.tf.color = newValue; } } setColor(newValue); } } else if (_color[styleProp] != undefined) { invalidateStyle(styleProp); } changeColorStyleInChildren(undefined, styleProp, newValue); } else { if ((styleProp == "backgroundColor") && (isNaN(newValue))) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return(undefined); } } invalidateStyle(styleProp); } if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (styleProp == "styleName")) { var _local8; var _local5 = newValue; if (styleProp == "styleName") { _local8 = ((typeof(newValue) == "string") ? (_global.styles[newValue]) : (_local5)); _local5 = _local8.themeColor; if (_local5 != undefined) { _local8.rollOverColor = (_local8.selectionColor = _local5); } } notifyStyleChangeInChildren(undefined, styleProp, newValue); } } static function enableRunTimeCSS() { } static function classConstruct() { var _local2 = MovieClip.prototype; var _local3 = mx.styles.CSSSetStyle.prototype; mx.styles.CSSStyleDeclaration.prototype.setStyle = _local3._setStyle; _local2.changeTextStyleInChildren = _local3.changeTextStyleInChildren; _local2.changeColorStyleInChildren = _local3.changeColorStyleInChildren; _local2.notifyStyleChangeInChildren = _local3.notifyStyleChangeInChildren; _local2.setStyle = _local3.setStyle; _global.ASSetPropFlags(_local2, "changeTextStyleInChildren", 1); _global.ASSetPropFlags(_local2, "changeColorStyleInChildren", 1); _global.ASSetPropFlags(_local2, "notifyStyleChangeInChildren", 1); _global.ASSetPropFlags(_local2, "setStyle", 1); var _local4 = TextField.prototype; _local4.setStyle = _local2.setStyle; _local4.changeTextStyleInChildren = _local3.changeTextStyleInChildren; return(true); } static var classConstructed = classConstruct(); static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration; }
Symbol 925 MovieClip [__Packages.mx.core.ext.UIComponentExtensions] Frame 0
class mx.core.ext.UIComponentExtensions { function UIComponentExtensions () { } static function Extensions() { if (bExtended == true) { return(true); } bExtended = true; TextField.prototype.setFocus = function () { Selection.setFocus(this); }; TextField.prototype.onSetFocus = function (oldFocus) { if (this.tabEnabled != false) { if (this.getFocusManager().bDrawFocus) { this.drawFocus(true); } } }; TextField.prototype.onKillFocus = function (oldFocus) { if (this.tabEnabled != false) { this.drawFocus(false); } }; TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus; TextField.prototype.getFocusManager = mx.core.UIComponent.prototype.getFocusManager; mx.managers.OverlappedWindows.enableOverlappedWindows(); mx.styles.CSSSetStyle.enableRunTimeCSS(); mx.managers.FocusManager.enableFocusManagement(); } static var bExtended = false; static var UIComponentExtended = Extensions(); static var UIComponentDependency = mx.core.UIComponent; static var FocusManagerDependency = mx.managers.FocusManager; static var OverlappedWindowsDependency = mx.managers.OverlappedWindows; }
Symbol 926 MovieClip [__Packages.mx.skins.Border] Frame 0
class mx.skins.Border extends mx.core.UIObject { function Border () { super(); } function init(Void) { super.init(); } static var symbolName = "Border"; static var symbolOwner = mx.skins.Border; var className = "Border"; var tagBorder = 0; var idNames = new Array("border_mc"); }
Symbol 927 MovieClip [__Packages.mx.skins.RectBorder] Frame 0
class mx.skins.RectBorder extends mx.skins.Border { var __width, __height, offset, __borderMetrics; function RectBorder () { super(); } function get width() { return(__width); } function get height() { return(__height); } function init(Void) { super.init(); } function draw(Void) { size(); } function getBorderMetrics(Void) { var _local2 = offset; if (__borderMetrics == undefined) { __borderMetrics = {left:_local2, top:_local2, right:_local2, bottom:_local2}; } else { __borderMetrics.left = _local2; __borderMetrics.top = _local2; __borderMetrics.right = _local2; __borderMetrics.bottom = _local2; } return(__borderMetrics); } function get borderMetrics() { return(getBorderMetrics()); } function drawBorder(Void) { } function size(Void) { drawBorder(); } function setColor(Void) { drawBorder(); } static var symbolName = "RectBorder"; static var symbolOwner = mx.skins.RectBorder; static var version = "2.0.2.126"; var className = "RectBorder"; var borderStyleName = "borderStyle"; var borderColorName = "borderColor"; var shadowColorName = "shadowColor"; var highlightColorName = "highlightColor"; var buttonColorName = "buttonColor"; var backgroundColorName = "backgroundColor"; }
Symbol 928 MovieClip [__Packages.mx.skins.halo.RectBorder] Frame 0
class mx.skins.halo.RectBorder extends mx.skins.RectBorder { var offset, getStyle, borderStyleName, __borderMetrics, className, borderColorName, backgroundColorName, shadowColorName, highlightColorName, buttonColorName, __get__width, __get__height, clear, _color, drawRoundRect, beginFill, drawRect, endFill; function RectBorder () { super(); } function init(Void) { borderWidths.default = 3; super.init(); } function getBorderMetrics(Void) { if (offset == undefined) { var _local3 = getStyle(borderStyleName); offset = borderWidths[_local3]; } if ((getStyle(borderStyleName) == "default") || (getStyle(borderStyleName) == "alert")) { __borderMetrics = {left:3, top:1, right:3, bottom:3}; return(__borderMetrics); } return(super.getBorderMetrics()); } function drawBorder(Void) { var _local6 = _global.styles[className]; if (_local6 == undefined) { _local6 = _global.styles.RectBorder; } var _local5 = getStyle(borderStyleName); var _local7 = getStyle(borderColorName); if (_local7 == undefined) { _local7 = _local6[borderColorName]; } var _local8 = getStyle(backgroundColorName); if (_local8 == undefined) { _local8 = _local6[backgroundColorName]; } var _local16 = getStyle("backgroundImage"); if (_local5 != "none") { var _local14 = getStyle(shadowColorName); if (_local14 == undefined) { _local14 = _local6[shadowColorName]; } var _local13 = getStyle(highlightColorName); if (_local13 == undefined) { _local13 = _local6[highlightColorName]; } var _local12 = getStyle(buttonColorName); if (_local12 == undefined) { _local12 = _local6[buttonColorName]; } var _local11 = getStyle(borderCapColorName); if (_local11 == undefined) { _local11 = _local6[borderCapColorName]; } var _local10 = getStyle(shadowCapColorName); if (_local10 == undefined) { _local10 = _local6[shadowCapColorName]; } } offset = borderWidths[_local5]; var _local9 = offset; var _local3 = __get__width(); var _local4 = __get__height(); clear(); _color = undefined; if (_local5 == "none") { } else if (_local5 == "inset") { _color = colorList; draw3dBorder(_local11, _local12, _local7, _local13, _local14, _local10); } else if (_local5 == "outset") { _color = colorList; draw3dBorder(_local11, _local7, _local12, _local14, _local13, _local10); } else if (_local5 == "alert") { var _local15 = getStyle("themeColor"); drawRoundRect(0, 5, _local3, _local4 - 5, 5, 6184542, 10); drawRoundRect(1, 4, _local3 - 2, _local4 - 5, 4, [6184542, 6184542], 10, 0, "radial"); drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, [0, 14342874], 100, 0, "radial"); drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, _local15, 50); drawRoundRect(3, 1, _local3 - 6, _local4 - 4, 2, 16777215, 100); } else if (_local5 == "default") { drawRoundRect(0, 5, _local3, _local4 - 5, {tl:5, tr:5, br:0, bl:0}, 6184542, 10); drawRoundRect(1, 4, _local3 - 2, _local4 - 5, {tl:4, tr:4, br:0, bl:0}, [6184542, 6184542], 10, 0, "radial"); drawRoundRect(2, 0, _local3 - 4, _local4 - 2, {tl:3, tr:3, br:0, bl:0}, [12897484, 11844796], 100, 0, "radial"); drawRoundRect(3, 1, _local3 - 6, _local4 - 4, {tl:2, tr:2, br:0, bl:0}, 16777215, 100); } else if (_local5 == "dropDown") { drawRoundRect(0, 0, _local3 + 1, _local4, {tl:4, tr:0, br:0, bl:4}, [13290186, 7895160], 100, -10, "linear"); drawRoundRect(1, 1, _local3 - 1, _local4 - 2, {tl:3, tr:0, br:0, bl:3}, 16777215, 100); } else if (_local5 == "menuBorder") { var _local15 = getStyle("themeColor"); drawRoundRect(4, 4, _local3 - 2, _local4 - 3, 0, [6184542, 6184542], 10, 0, "radial"); drawRoundRect(4, 4, _local3 - 1, _local4 - 2, 0, 6184542, 10); drawRoundRect(0, 0, _local3 + 1, _local4, 0, [0, 14342874], 100, 250, "linear"); drawRoundRect(0, 0, _local3 + 1, _local4, 0, _local15, 50); drawRoundRect(2, 2, _local3 - 3, _local4 - 4, 0, 16777215, 100); } else if (_local5 == "comboNonEdit") { } else { beginFill(_local7); drawRect(0, 0, _local3, _local4); drawRect(1, 1, _local3 - 1, _local4 - 1); endFill(); _color = borderColorName; } if (_local8 != undefined) { beginFill(_local8); drawRect(_local9, _local9, __get__width() - _local9, __get__height() - _local9); endFill(); } } function draw3dBorder(c1, c2, c3, c4, c5, c6) { var _local3 = __get__width(); var _local2 = __get__height(); beginFill(c1); drawRect(0, 0, _local3, _local2); drawRect(1, 0, _local3 - 1, _local2); endFill(); beginFill(c2); drawRect(1, 0, _local3 - 1, 1); endFill(); beginFill(c3); drawRect(1, _local2 - 1, _local3 - 1, _local2); endFill(); beginFill(c4); drawRect(1, 1, _local3 - 1, 2); endFill(); beginFill(c5); drawRect(1, _local2 - 2, _local3 - 1, _local2 - 1); endFill(); beginFill(c6); drawRect(1, 2, _local3 - 1, _local2 - 2); drawRect(2, 2, _local3 - 2, _local2 - 2); endFill(); } static function classConstruct() { mx.core.ext.UIObjectExtensions.Extensions(); _global.styles.rectBorderClass = mx.skins.halo.RectBorder; _global.skinRegistry.RectBorder = true; return(true); } static var symbolName = "RectBorder"; static var symbolOwner = mx.skins.halo.RectBorder; static var version = "2.0.2.126"; var borderCapColorName = "borderCapColor"; var shadowCapColorName = "shadowCapColor"; var colorList = {highlightColor:0, borderColor:0, buttonColor:0, shadowColor:0, borderCapColor:0, shadowCapColor:0}; var borderWidths = {none:0, solid:1, inset:2, outset:2, alert:3, dropDown:2, menuBorder:2, comboNonEdit:2}; static var classConstructed = classConstruct(); static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; }
Symbol 929 MovieClip [__Packages.mx.skins.halo.ButtonSkin] Frame 0
class mx.skins.halo.ButtonSkin extends mx.skins.RectBorder { var __get__width, __get__height, getStyle, _parent, clear, drawRoundRect, __get__x, __get__y; function ButtonSkin () { super(); } function init() { super.init(); } function size() { drawHaloRect(__get__width(), __get__height()); } function drawHaloRect(w, h) { var _local6 = getStyle("borderStyle"); var _local4 = getStyle("themeColor"); var _local5 = _parent.emphasized; clear(); switch (_local6) { case "falseup" : if (_local5) { drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100); drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 75); drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 85, 0, "radial"); drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial"); drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 75); drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100); drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100); } else { drawRoundRect(0, 0, w, h, 5, 9542041, 100); drawRoundRect(1, 1, w - 2, h - 2, 4, [13291985, 16250871], 100, 0, "radial"); drawRoundRect(2, 2, w - 4, h - 4, 3, [9542041, 13818586], 100, 0, "radial"); drawRoundRect(3, 3, w - 6, h - 6, 2, 16777215, 100); drawRoundRect(3, 4, w - 6, h - 7, 2, 16316664, 100); } break; case "falsedown" : drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100); drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial"); drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50); drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial"); drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40); drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100); drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, _local4, 20); break; case "falserollover" : drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100); drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 50); drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, "radial"); drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial"); drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 50); drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100); drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100); break; case "falsedisabled" : drawRoundRect(0, 0, w, h, 5, 13159628, 100); drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100); drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100); drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100); break; case "trueup" : drawRoundRect(__get__x(), __get__y(), w, h, 5, 10066329, 100); drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial"); drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50); drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial"); drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40); drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100); drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16250871, 100); break; case "truedown" : drawRoundRect(__get__x(), __get__y(), w, h, 5, 10066329, 100); drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial"); drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50); drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial"); drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40); drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100); drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, _local4, 20); break; case "truerollover" : drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100); drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 50); drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, "radial"); drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 40); drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial"); drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 40); drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100); drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100); break; case "truedisabled" : drawRoundRect(0, 0, w, h, 5, 13159628, 100); drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100); drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100); drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100); } } static function classConstruct() { mx.core.ext.UIObjectExtensions.Extensions(); _global.skinRegistry.ButtonSkin = true; return(true); } static var symbolName = "ButtonSkin"; static var symbolOwner = mx.skins.halo.ButtonSkin; var className = "ButtonSkin"; var backgroundColorName = "buttonColor"; static var classConstructed = classConstruct(); static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; }
Symbol 1009 MovieClip Frame 1
play(); if (ranges == undefined) { ranges = 1.5; } i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if (((_root[current].unittype != "dozer") && (_root[current].unittype != "oiltruck")) && (_root[current].unittype != "artillery")) { if (((!_root[current].walking) && (!_root[current].fireing)) && (_root[current].aggressive)) { if (_root[current].enemy) { if ((_root[current].unittype == "light") || (_root[current].unittype == "dozer")) { if (_root[current].auto && (_root[current].life < _root[current].fulllife)) { _root[current].life = _root[current].life + 20; } } if (_root[current].unittype == "heavy") { if (_root[current].auto && (_root[current].life < _root[current].fulllife)) { _root[current].life = _root[current].life + 10; } } if (Math.random() > 0.5) { n = _root.friendlylist.length - 1; while (n > -1) { current2 = _root.friendlylist[n]; dx = _root[current]._x - _root[current2]._x; dy = _root[current]._y - _root[current2]._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < (_root[current].range * ranges)) { _root[current].targetobj = current2; _root[current].attack = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root["flag" + current]._visible = false; _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root[current].walking = true; _root.n++; hit = true; break; } n--; } } } if (!_root[current].enemy) { if ((_root[current].unittype == "light") || (_root[current].unittype == "dozer")) { if (_root[current].auto && (_root[current].life < _root[current].fulllife)) { _root[current].life = _root[current].life + 20; } } if (_root[current].unittype == "heavy") { if (_root[current].auto && (_root[current].life < _root[current].fulllife)) { _root[current].life = _root[current].life + 10; } } if (Math.random() > 0.5) { n = _root.enemyarray.length - 1; while (n > -1) { current2 = _root.enemyarray[n]; dx = _root[current]._x - _root[current2]._x; dy = _root[current]._y - _root[current2]._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < (_root[current].range * ranges)) { _root[current].targetobj = current2; _root[current].attack = true; _root["flag" + current].removeMovieClip(); _root.flagsarray.findandsplice("flag" + current); _root.objarray.findandsplice("flag" + current); _root.attachMovie("flag2", "flag" + current, _root.n); _root["flag" + current]._visible = false; _root["flag" + current]._x = origx; _root["flag" + current]._y = origy; _root.flagsarray.push("flag" + current); _root.objarray.push("flag" + current); _root[current].walking = true; _root.n++; hit = true; break; } n--; } } } } } i--; }
Symbol 1009 MovieClip Frame 6
_root.objarrays = "fps:" + (10 / ((getTimer() - lastgettimer) / 1000)); lastgettimer = getTimer(); breaking = false; i = _root.dozerarray.length - 1; while (i > -1) { if (breaking) { break; } current = _root.dozerarray[i]; if (((!_root[current].enemy) && (!_root[current].build)) && (!_root[current].walking)) { n = _root.structurearray.length - 1; while (n > -1) { current2 = _root.structurearray[n]; dx = _root[current]._x - _root[current2]._x; dy = _root[current]._y - _root[current2]._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 500) { if (((_root[current2].life < _root[current2].fulllife) && (_root[current2].percent == undefined)) && (_root[current2].auto._currentframe == 1)) { if (!_root[current].hitTest(_root[current2])) { _root[current].aigoto(_root[current2]._x, _root[current2]._y, false); } _root[current2].auto.play(); breaking = true; break; } } n--; } } i--; }
Symbol 1009 MovieClip Frame 8
i = _root.friendlylist.length - 1; while (i > -1) { current = _root.friendlylist[i]; if (_root[current].speed != undefined) { x = _root[current]._x; y = _root[current]._y; if (_root.back.water.hitTest(x, y, true)) { if (_root[current].water == undefined) { _root[current].speed = _root[current].speed / 2; _root[current].water = true; } } if (!_root.back.water.hitTest(x, y, true)) { if (_root[current].water === true) { _root[current].speed = _root[current].speed * 2; _root[current].water = undefined; } } dx = _root[current]._x - _root.servicedepot1._x; dy = _root[current]._y - _root.servicedepot1._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if ((dist < 150) && (_root[current].life < _root[current].fulllife)) { _root[current].life = _root[current].life + 15; _root.servicedepot1.auto2.play(); _root.money = _root.money - 20; break; } } i--; } i = _root.enemyarray.length - 1; while (i > -1) { current = _root.enemyarray[i]; if (_root[current].speed != undefined) { x = _root[current]._x; y = _root[current]._y; if (_root.back.water.hitTest(x, y, true)) { if (_root[current].water == undefined) { _root[current].speed = _root[current].speed / 2; _root[current].water = true; } } if (!_root.back.water.hitTest(x, y, true)) { if (_root[current].water === true) { _root[current].speed = _root[current].speed * 2; _root[current].water = undefined; } } dx = _root[current]._x - _root.enemyservicedepot1._x; dy = _root[current]._y - _root.enemyservicedepot1._y; dist = Math.sqrt((dx * dx) + (dy * dy)); if ((dist < 150) && (_root[current].life < _root[current].fulllife)) { _root[current].life = _root[current].life + 15; _root.enemymoney = _root.enemymoney - 20; break; } } i--; } i = _root.minearray.length - 1; while (i > -1) { current = _root.minearray[i]; n = _root.enemyarray.length - 1; while (n > -1) { current2 = _root.enemyarray[n]; if (_root[current].hitTest(_root[current2]) && (_root[current]._currentframe == 1)) { _root[current].play(); } n--; } i--; } i = _root.enemyminearray.length - 1; while (i > -1) { current = _root.enemyminearray[i]; n = _root.friendlylist.length - 1; while (n > -1) { current2 = _root.friendlylist[n]; if (_root[current].hitTest(_root[current2]) && (_root[current]._currentframe == 1)) { _root[current].play(); } n--; } i--; }
Symbol 1009 MovieClip Frame 10
c = _root.objarray.length - 1; while (c > -1) { current = _root.objarray[c]; if ((_root[current]._x == undefined) || (!_root[current].hitTest(_root.back))) { _root[current].life = 0; _root.objarray.splice(c, 1); } c--; } gotoAndPlay (1);
Symbol 1012 MovieClip Frame 1
play(); i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; if ((!_root.sidebar._visible) || (_root.comcentre1._currentframe > 1)) { _root[current + "symbols"]._visible = false; } if (_root[current].unittype != "dozer") { _root[current].dummy.charge--; if ((((_root[current].unittype == "humvee") && (_root[current].laser)) && (_root[current].dummy.charge <= 0)) && (_root[current].life > 0)) { n = _root.shellarray.length - 1; while (n > -1) { current2 = _root.shellarray[n]; if (_root[_root[current2].targetobj].enemy == _root[current].enemy) { dx = -(_root[current]._x - _root[current2]._x); dy = -(_root[current]._y - _root[current2]._y); dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < (_root[current].range * 2)) { if (_root[current2].timer > 5) { _root[current].dummy.charge = 2; _root.attachMovie("laser", "laser" + current, _root.n); _root["laser" + current]._x = _root[current]._x; _root["laser" + current]._y = _root[current]._y; _root["laser" + current]._width = dist + 10; _root["laser" + current]._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); _root[current2].play(); break; } } } n--; } } if ((((_root[current].walking && (_root[current].unittype != "artillery")) || ((_root[current].unittype == "artillery") && (_root[current].turret._currentframe == 2))) && (!_root[current].fireing)) && (_root[current].aggressive || (_root[current].unittype == "artillery"))) { if (_root[current].enemy) { n = _root.friendlylist.length - 1; while (n > -1) { current2 = _root.friendlylist[n]; dx = -(_root[current]._x - _root[current2]._x); dy = -(_root[current]._y - _root[current2]._y); dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < _root[current].range) { _root[current].turret._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); if (_root[current].turret._currentframe == 1) { _root[current].turret.play(); _root[current].turret.targetobj = current2; } hit = true; break; } n--; } } if (!_root[current].enemy) { n = _root.enemyarray.length - 1; while (n > -1) { current2 = _root.enemyarray[n]; dx = -(_root[current]._x - _root[current2]._x); dy = -(_root[current]._y - _root[current2]._y); dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < _root[current].range) { _root[current].turret._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); if (_root[current].turret._currentframe == 1) { _root[current].turret.play(); _root[current].turret.targetobj = current2; } hit = true; break; } n--; } } } } i--; }
Symbol 1012 MovieClip Frame 3
i = _root.turretarray.length - 1; while (i > -1) { current = _root.turretarray[i]; if (_root[current].turret._currentframe == 1) { n = _root.enemyarray.length - 1; while (n > -1) { current2 = _root.enemyarray[n]; dx = -(_root[current]._x - _root[current2]._x); dy = -(_root[current]._y - _root[current2]._y); dist = Math.sqrt((dx * dx) + (dy * dy)); if (Math.random() > 0.8) { if (dist < _root[current].range) { _root[current].turret._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); if (_root[current].turret._currentframe == 1) { _root[current].turret.play(); _root[current].turret.targetobj = current2; } hit = true; } } n--; } } i--; } i = _root.enemyturretarray.length - 1; while (i > -1) { current = _root.enemyturretarray[i]; if (_root[current].turret._currentframe == 1) { n = _root.friendlylist.length - 1; while (n > -1) { current2 = _root.friendlylist[n]; dx = -(_root[current]._x - _root[current2]._x); dy = -(_root[current]._y - _root[current2]._y); dist = Math.sqrt((dx * dx) + (dy * dy)); if (Math.random() > 0.8) { if (dist < _root[current].range) { _root[current].turret._rotation = (Math.atan2(dy, dx) * 360) / (Math.PI*2); if (_root[current].turret._currentframe == 1) { _root[current].turret.play(); _root[current].turret.targetobj = current2; } hit = true; } } n--; } } i--; }
Symbol 1012 MovieClip Frame 5
gotoAndPlay (1);
Symbol 1018 MovieClip Frame 1
this._x = 0; this._y = 0; this.cacheAsBitmap = true; this.opaqueBackground = 0;
Symbol 1024 MovieClip Frame 1
this._visible = false;
Symbol 1029 MovieClip Frame 1
_root.objarray.push(this._name); _root.oilarray.push(this._name); _root.attachMovie("padded", this._name + "symbols", 1000006 + _root.n); _root[this._name + "symbols"]._x = (x1 + (constantsx * this._x)) - 10; _root[this._name + "symbols"]._y = (y1 + (constantsy * this._y)) - 10; _root[this._name + "symbols"]._height = (this._height / _root.back._height) * (y4 - y1); _root[this._name + "symbols"]._width = (this._width / _root.back._width) * (x4 - x1); _root.n++; this.cacheAsBitmap = true;
Symbol 1036 MovieClip Frame 8
if (_root[oilfield].oilspill._xscale < 100) { _root[oilfield].oilspill._xscale = _root[oilfield].oilspill._xscale + 0.5; _root[oilfield].oilspill._yscale = _root[oilfield].oilspill._yscale + 0.5; }
Symbol 1037 Button
on (press) { if (_root.sidebar._visible) { unitsarray = _root.unitsarray.concat(_root.oilarray); i = unitsarray.length - 1; while (i > -1) { current = unitsarray[i]; _root[current + "symbols"]._visible = false; i--; } _root.box6._visible = false; _root.sidebar._visible = false; } else { if ((_root.comcentre1.life > 0) && (_root.comcentre1.life != undefined)) { unitsarray = _root.unitsarray.concat(_root.oilarray); i = unitsarray.length - 1; while (i > -1) { current = unitsarray[i]; _root[current + "symbols"]._visible = true; i--; } _root.box6._visible = true; } _root.sidebar._visible = true; } }
Symbol 1040 MovieClip Frame 1
_root.objarray.push(this._name); stop();
Symbol 1042 MovieClip Frame 1
n = 0; hit = false; stop();
Symbol 1044 MovieClip Frame 1
stop(); this.difficulty = _root.difficulty; if (_root.ais == 1) { _root.ai.timer = 0; _root.array2 = []; _root.array1 = []; _root.ai.build = true; _root.ai.rounds = 0; _root.enemyoiltrucks = 0; _root.ai.minesneeded = 0; _root.ai.mineweight = 0; turretsneeded = 4; var i = 1; while (i < turretsneeded) { _root["enemyturret" + i] = false; i++; } _root.ai.pteam = 0; _root.ai.turretmoney = 1500; _root.ai.techcentremoney = 10000; _root.ai.servicedepotmoney = 50000; _root.ai.teamslist = []; _root.ai.teamsneeded = 5 + Math.round(7 / _root.difficulty); _root.ai.minteamlength = 2; _root.ai.teamlength = 3; _root.ai.dozersneeded = 3; _root.ai.timeelasped = 0; _root.ai.nuketime = 2000; _root.ai.uppermoney = 20000; _root.ai.lowermoney = 10000; _root.ai.oiltrucksneeded = 5; _root.ai.difficulty = _root.difficulty; _root.ai.lightwt = 0.3; _root.ai.rocketwt = 0.5; _root.ai.heavywt = 0.6; _root.ai.humveewt = 1; _root.ai.turret1wt = 0.5; _root.ai.turret2wt = 0.5; _root.ai.turret3wt = 1; totalpeople = 14; peoplestay = 6; type = 1; this.commandteamtype = function () { if ((Math.round(_root.ai.timer / 70) * 70) == _root.ai.timer) { nextteam++; if ((nextteam == undefined) || (nextteam >= _root.ai.teamslist.length)) { nextteam = 0; } current = _root.ai.teamslist[nextteam]; if (_root[current].waypoint == undefined) { _root[current].waypoint = "waypoint" + String(Math.floor(Math.random() * 7) + 100); } if (_root[current].istargetdestroyed() && (_root[current].attackpt == undefined)) { _root[current].goto(undefined, undefined, _root[current].waypoint); } if (_root[current].iswithindistance(_root[current].attackpt, 200) && (_root[current].attackpt != undefined)) { _root[current].attackpt = undefined; lo = Math.floor(Math.random() * (_root.friendlylist.length - 1)); unit = _root.friendlylist[lo]; _root[current].attack(unit); } if (_root[current].members.length < 2) { _root[current].attackpt = undefined; } if (_root[current].iswithindistance(_root[current].waypoint, 200)) { if (_root[current].members.length >= _root[current].maxlength) { _root[current].attackpt = "attackpt" + String(Math.ceil(Math.random() * 3)); _root[current].goto(undefined, undefined, _root[current].attackpt); } } } }; } if (_root.ais == 2) { _root.ai.timer = 0; _root.array2 = []; _root.array1 = []; _root.ai.build = true; _root.ai.rounds = 0; _root.enemyoiltrucks = 0; _root.ai.minesneeded = 3; _root.ai.mineweight = 0.3; turretsneeded = 9; var i = 1; while (i < turretsneeded) { _root["enemyturret" + i] = false; i++; } _root.ai.pteam = 0; _root.ai.turretmoney = 1500; _root.ai.techcentremoney = 30000; _root.ai.servicedepotmoney = 20000; _root.ai.teamslist = []; _root.ai.teamsneeded = 2; _root.ai.minteamlength = Math.round(20 / _root.difficulty); _root.ai.teamlength = Math.round(10 / _root.difficulty); _root.ai.dozersneeded = 5; _root.ai.timeelasped = 0; _root.ai.nuketime = 2000; _root.ai.uppermoney = 10000; _root.ai.lowermoney = 5000; _root.ai.oiltrucksneeded = 3; _root.ai.difficulty = _root.difficulty; _root.ai.lightwt = 0.2; _root.ai.rocketwt = 0.3; _root.ai.heavywt = 0.6; _root.ai.humveewt = 0.7; _root.ai.turret1wt = 0.1; _root.ai.turret2wt = 0.5; _root.ai.turret3wt = 0.7; totalpeople = 30; peoplestay = 2; type = 2; this.commandteamtype2 = function () { if (_root.ai.timer == Math.round(difficulty * 250)) { nextteam++; if ((nextteam == undefined) || (nextteam >= _root.ai.teamslist.length)) { nextteam = 0; } current = _root.ai.teamslist[nextteam]; if (_root[current].members.length >= _root[current].maxlength) { lo = Math.floor(Math.random() * (_root.friendlylist.length - 1)); unit = _root.friendlylist[lo]; _root[current].attack(unit); } } if ((Math.round(_root.ai.timer / 100) * 100) == _root.ai.timer) { i = _root.friendlylist.length - 1; while (i > -1) { current = _root.friendlylist[i]; if (_root.team1.iswithindistance2(current, 1000)) { _root.team1.attack(current, true); } i--; } } }; } if (_root.ais == 3) { _root.ai.timer = 0; _root.array2 = []; _root.array1 = []; _root.ai.build = true; _root.ai.rounds = 0; _root.enemyoiltrucks = 0; _root.ai.minesneeded = 0; _root.ai.mineweight = 0; turretsneeded = 6; var i = 1; while (i < turretsneeded) { _root["enemyturret" + i] = false; i++; } _root.ai.pteam = 0; _root.ai.turretmoney = 1500; _root.ai.techcentremoney = 30000; _root.ai.servicedepotmoney = 20000; _root.ai.teamslist = []; _root.ai.teamsneeded = _root.oilarray.length; _root.ai.minteamlength = 3 + Math.round(6 / _root.difficulty); _root.ai.teamlength = 2 + Math.round(7 / _root.difficulty); _root.ai.dozersneeded = 6; _root.ai.timeelasped = 0; _root.ai.nuketime = 10000; _root.ai.uppermoney = 20000; _root.ai.lowermoney = 10000; _root.ai.oiltrucksneeded = 8; _root.ai.difficulty = _root.difficulty; _root.ai.lightwt = 0.4; _root.ai.rocketwt = 0.6; _root.ai.heavywt = 0.7; _root.ai.humveewt = 0.9; _root.ai.turret1wt = 0.3; _root.ai.turret2wt = 0.6; _root.ai.turret3wt = 0.9; totalpeople = 30; peoplestay = 2; type = 3; this.commandteamtype3 = function () { if ((Math.round(_root.ai.timer / 100) * 100) == _root.ai.timer) { nextteam++; if ((nextteam == undefined) || (nextteam >= _root.ai.teamslist.length)) { nextteam = 0; } _root.ai.teamsneeded = _root.oilarray.length; current = _root.ai.teamslist[nextteam]; lo = Math.floor(Math.random() * (_root.oilarray.length - 1)); unit = _root.oilarray[lo]; _root[current].goto(undefined, undefined, unit); if (Math.random() > 0.5) { if (Math.random() > 0.8) { lo = Math.floor(Math.random() * _root.friendlylist.length); unit = _root.friendlylist[lo]; _root[current].attack(unit); } else { lo = Math.floor(Math.random() * _root.oiltruckarray.length); unit = _root.oiltruckarray[lo]; _root[current].attack(unit); } } } }; } trace(_root.ais + "ais"); if (_root.ais == 4) { trace("techno"); _root.ai.timer = 0; _root.array2 = []; _root.array1 = []; _root.ai.build = true; _root.ai.rounds = 0; _root.enemyoiltrucks = 0; _root.ai.minesneeded = 5; _root.ai.mineweight = 0.5; turretsneeded = 4; trace("boohoo"); var i = 1; while (i < turretsneeded) { _root["enemyturret" + i] = false; i++; } _root.ai.pteam = 0; _root.ai.turretmoney = 1500; _root.ai.techcentremoney = 10000; _root.ai.servicedepotmoney = 10000; _root.ai.teamslist = []; _root.ai.teamsneeded = 4; _root.ai.minteamlength = 2 + Math.round(2 / _root.difficulty); _root.ai.teamlength = 3 + Math.round(3 / _root.difficulty); _root.ai.dozersneeded = 3; _root.ai.timeelasped = 0; _root.ai.nuketime = 5000; _root.ai.uppermoney = 40000; _root.ai.lowermoney = 15000; _root.ai.oiltrucksneeded = 6; _root.ai.difficulty = _root.difficulty; _root.ai.lightwt = 0.2; _root.ai.rocketwt = 0.4; _root.ai.heavywt = 0.6; _root.ai.humveewt = 0.8; _root.ai.turret1wt = 0.1; _root.ai.turret2wt = 0.4; _root.ai.turret3wt = 0.6; posarray = 0; const = 1; upgradearray = ["shell2", "laser", "gatling", "emp", "nuke", "seeker", "missile", "blast", "accurate", "crush", "auto"]; totalpeople = 20; peoplestay = 10; type = 4; this.commandteamtype4 = function () { if (_root.ai.timer == Math.round(difficulty * 250)) { _root.enemymoney = _root.enemymoney - 2500; nextteam++; if ((nextteam == undefined) || (nextteam >= _root.ai.teamslist.length)) { nextteam = 0; } current = _root.ai.teamslist[nextteam]; if (_root[current].upgradealready == true) { lo = Math.floor(Math.random() * _root.friendlylist.length); unit = _root.friendlylist[lo]; _root[current].attack(unit); } } if (_root[current].members.length < 2) { _root[current].upgradealready = undefined; } if (_root.enemytechcentre1.life != undefined) { if (Math.round((_root.ai.timer / const) * const) == _root.ai.timer) { posarray++; if (posarray >= upgradearray.length) { posarray = 0; } currents = upgradearray[posarray]; _root[current].command(currents, true); _root[current].command("miss", 3); if (_root[current].members.length >= _root[current].maxlength) { if (_root[current].upgradealready == undefined) { trace("upgrade"); _root[current].upgrade("firerate", 0.75); _root[current].upgrade("damage", 1.5); _root[current].upgrade("fulllife", 3); _root[current].upgrade("life", 3); _root[current].upgrade("speed", 1.5); _root[current].upgrade("shellspd", 1.5); _root[current].upgrade("range", 1.5); _root[current].upgradealready = true; } } } } }; } if (_root.ais == 5) { _root.ai.timer = 0; _root.array2 = []; _root.array1 = []; _root.ai.build = true; _root.ai.rounds = 0; _root.enemyoiltrucks = 0; _root.ai.minesneeded = 3; _root.ai.mineweight = 0.2; turretsneeded = 6; trace("boohoo"); var i = 1; while (i < turretsneeded) { _root["enemyturret" + i] = false; i++; } _root.ai.pteam = 0; _root.ai.turretmoney = 3500; _root.ai.techcentremoney = 20000; _root.ai.servicedepotmoney = 15000; _root.ai.teamslist = []; _root.ai.teamsneeded = 4; _root.ai.minteamlength = 3 + Math.round(4 / _root.difficulty); _root.ai.teamlength = 3 + Math.round(5 / _root.difficulty); _root.ai.dozersneeded = 5; _root.ai.timeelasped = 0; _root.ai.nuketime = 500; _root.ai.uppermoney = 30000; _root.ai.lowermoney = 15000; _root.ai.oiltrucksneeded = 4; _root.ai.difficulty = _root.difficulty; _root.ai.lightwt = 0; _root.ai.rocketwt = 0.4; _root.ai.heavywt = 0.4; _root.ai.humveewt = 0.5; _root.ai.turret1wt = 0; _root.ai.turret2wt = 0.6; _root.ai.turret3wt = 0.6; posarray = 0; const = 100 * (1 / _root.ai.difficulty); upgradearray = ["emp", "nuke", "accurate"]; totalpeople = 20; peoplestay = 5; type = 5; this.commandteamtype5 = function () { if (_root.ai.timer == Math.round(difficulty * 250)) { nextteam++; if ((nextteam == undefined) || (nextteam >= _root.ai.teamslist.length)) { nextteam = 0; } current = _root.ai.teamslist[nextteam]; if (_root[current].attackpt == undefined) { _root[current].attackpt = "attackpt" + String(nextteam); } if (_root[current].members.length < 2) { _root[current].upgradealready = undefined; _root[current].isattack = false; } trace(_root.team1.upgradealready); trace(_root.team2.upgradealready); trace(_root.team3.upgradealready); if (Math.round((_root.ai.timer / const) * const) == _root.ai.timer) { posarray++; if (posarray >= upgradearray.length) { posarray = 0; } currents = upgradearray[posarray]; _root[current].command(currents, true); _root[current].command("miss", 2); if (_root[current].upgradealready == true) { if (_root[current].iswithindistance(_root[current].attackpt, 400)) { lo = Math.floor(Math.random() * _root.friendlylist.length); unit = _root.friendlylist[lo]; _root[current].attack(unit); _root[current].isattack = true; } if ((!_root[current].iswithindistance(_root[current].attackpt, 200)) && (!_root[current].isattack)) { _root[current].goto(undefined, undefined, _root[current].attackpt); } } } if (_root[current].upgradealready == undefined) { _root[current].upgrade("damage", 2); _root[current].upgrade("range", 1.5); _root[current].upgradealready = true; } } }; }
Symbol 1046 MovieClip Frame 1
if (_root.ownmap5 === true) { this._visible = false; } this.swapDepths(900000 + _root.n); _root.n++; _root.shroudarray.push(this._name); _root.objarray.push(this._name);
Symbol 1069 MovieClip Frame 1
this._visible = false;
Symbol 1070 MovieClip Frame 1
this.cacheAsBitmap = true; this.opaqueBackground = 0;
Symbol 1075 MovieClip Frame 1
this.cacheAsBitmap = true; this.opaqueBackground = 0;
Symbol 1080 MovieClip Frame 1
this._x = 0; this._y = 0; this.cacheAsBitmap = true; this.opaqueBackground = 0;
Symbol 1086 MovieClip Frame 1
this.cacheAsBitmap = true; this.opaqueBackground = 0;
Symbol 1088 MovieClip Frame 1
this.cacheAsBitmap = true; this.opaqueBackground = 0;
Symbol 1095 MovieClip Frame 1
this.cacheAsBitmap = true; stop();
Instance of Symbol 196 MovieClip "lifebar" in Symbol 1095 MovieClip Frame 1
onClipEvent (enterFrame) { if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } } onClipEvent (load) { this._visible = false; }
Symbol 1095 MovieClip Frame 2
_root.objarray.findandsplice(_name); _root.unitsarray.findandsplice(_name); stop();
Symbol 1108 MovieClip Frame 1
stop();
Symbol 1113 Button
on (release) { _root.mapbar.commandbutton._visible = true; _root.mapbar.selectedarray = _root[this._name + "array"].concat(); _root.mapbar.mapn = this._name; _root.mapbar.invadebutton._visible = false; _root.mapbar.calccost(); i = 10; while (i > -1) { _root["map" + i].selecteds._visible = false; i--; } this.selecteds._visible = true; } on (rollOver) { _root.mapbar.words = words; }
Symbol 1116 Button
on (press) { _root.mapbar.commandbutton._visible = false; _root.mapbar.invadebutton._visible = true; _root.mapbar.selectedarray = []; _root.mapbar.calccost(); i = 10; while (i > -1) { _root["map" + i].selecteds._visible = false; i--; } this.selecteds._visible = true; _root.mapbar.mapn = this._name; } on (rollOver) { _root.mapbar.words = words; }
Symbol 1117 MovieClip Frame 1
stop();
Instance of Symbol 1115 MovieClip "selecteds" in Symbol 1117 MovieClip Frame 1
onClipEvent (load) { this._visible = false; }
Symbol 1117 MovieClip Frame 2
stop();
Symbol 1118 Button
on (press) { _root.mapbar.commandbutton._visible = false; i = 10; while (i > -1) { _root["map" + i].selecteds._visible = false; i--; } this.selecteds._visible = true; _root.mapbar.invadebutton._visible = false; } on (rollOver) { _root.mapbar.words = words; }
Symbol 1119 Button
on (press) { _root.mapbar.commandbutton._visible = false; _root.mapbar.selectedarray = []; _root.mapbar.calccost(); i = 10; while (i > -1) { _root["map" + i].selecteds._visible = false; i--; } this.selecteds._visible = true; if (_root.attackarray.length > 0) { _root.mapbar.invadebutton._visible = true; } _root.mapbar.mapn = this._name; } on (rollOver) { _root.mapbar.words = words; }
Symbol 1120 MovieClip Frame 1
stop();
Instance of Symbol 1115 MovieClip "selecteds" in Symbol 1120 MovieClip Frame 1
onClipEvent (load) { this._visible = false; }
Symbol 1120 MovieClip Frame 2
stop();
Symbol 1128 MovieClip Frame 1
stop();
Symbol 1128 MovieClip Frame 2
_root[territory]._alpha = 100;
Symbol 1128 MovieClip Frame 24
_root[territory]._alpha = 30;
Symbol 1128 MovieClip Frame 34
_root[territory]._alpha = 100;
Symbol 1128 MovieClip Frame 56
_root[territory]._alpha = 30; if (territory == "map3") { enemyattack = Math.round(_root.enemypower * 0.7); if ((enemyattack * 300) > _root.totalhp) { _root.ownmap3 = false; _root.map3.gotoAndStop(2); _root.map3.words = "An allied general's base.This territory has been conquered by the enemy. Click on it to invade.(You cannot occupy this territory with your own troops, if invasion is sucessful, troops will go towards your ally)"; } }
Symbol 1128 MovieClip Frame 65
if (this.territory != undefined) { gotoAndPlay (2); }
Symbol 1131 MovieClip Frame 1
this.visible = false;
Symbol 1132 MovieClip Frame 1
this.cacheAsBitmap = true; this.opaqueBackground = 0;
Symbol 1134 MovieClip Frame 1
this.cacheAsBitmap = true; stop();
Instance of Symbol 188 MovieClip "selector" in Symbol 1134 MovieClip Frame 1
onClipEvent (load) { _root.attachMovie("bigdot", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; _parent.upgrade = 0; _root.structurearray.push(_parent._name); this._visible = false; _parent.enemy = false; _parent.aggressive = true; _root.objarray.push(_parent._name); _root.unitsarray.push(_parent._name); _parent.life = 2000; _parent.fulllife = 2000; _parent.unittype = "comcentre"; }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 1134 MovieClip Frame 1
onClipEvent (enterFrame) { this._xscale = 370 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 1134 MovieClip Frame 2
_root.enemymoney = _root.enemymoney + 5000; _root.sidebar.build.dozer.gotoAndStop(1);
Symbol 1134 MovieClip Frame 11
_root.objarray.findandsplice(_name); _root.unitsarray.findandsplice(_name); _root[_name + "symbols"].removeMovieClip(); this._name = "noo2b"; _root.alliedunits--; this.removeMovieClip(); stop();
Symbol 1136 MovieClip Frame 1
this.cacheAsBitmap = true; stop();
Instance of Symbol 196 MovieClip "lifebar" in Symbol 1136 MovieClip Frame 1
onClipEvent (enterFrame) { this._xscale = 290 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Instance of Symbol 188 MovieClip "selector" in Symbol 1136 MovieClip Frame 1
onClipEvent (load) { _root.attachMovie("bigdot", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; this._visible = false; _parent.enemy = false; _parent.aggressive = false; _root.objarray.push(_parent._name); _root.unitsarray.push(_parent._name); _parent.life = 1000; _parent.fulllife = 1000; _parent.unittype = "war factory"; }
Symbol 1136 MovieClip Frame 2
_root.money = _root.money + 2000;
Symbol 1136 MovieClip Frame 11
_root.objarray.findandsplice(_name); _root.unitsarray.findandsplice(_name); _root.alliedunits--; _root[_name + "symbols"].removeMovieClip(); this.removeMovieClip(); stop();
Symbol 1138 MovieClip Frame 1
this.cacheAsBitmap = true; stop();
Instance of Symbol 188 MovieClip "selector" in Symbol 1138 MovieClip Frame 1
onClipEvent (load) { _root.attachMovie("bigdot", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; this._visible = false; _parent.enemy = false; _root.objarray.push(_parent._name); _root.unitsarray.push(_parent._name); _parent.life = 1000; _parent.fulllife = 1000; _parent.unittype = "servicedepot"; }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 1138 MovieClip Frame 1
onClipEvent (enterFrame) { this._xscale = 380 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 1138 MovieClip Frame 2
_root.money = _root.money + 5000;
Symbol 1138 MovieClip Frame 11
_root.objarray.findandsplice(_name); _root.unitsarray.findandsplice(_name); _root.alliedunits--; _root[_name + "symbols"].removeMovieClip(); this.removeMovieClip(); stop();
Symbol 1140 MovieClip Frame 1
this.cacheAsBitmap = true; stop();
Instance of Symbol 188 MovieClip "selector" in Symbol 1140 MovieClip Frame 1
onClipEvent (load) { _root.attachMovie("bigdot2", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; this._visible = false; _parent.enemy = false; _root.objarray.push(_parent._name); _root.unitsarray.push(_parent._name); _parent.life = 1000; _parent.fulllife = 1000; _parent.unittype = "techcentre"; }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 1140 MovieClip Frame 1
onClipEvent (enterFrame) { this._xscale = 240 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 1140 MovieClip Frame 2
_root.money = _root.money + 1500;
Symbol 1140 MovieClip Frame 11
_root.objarray.findandsplice(_name); _root.unitsarray.findandsplice(_name); _root.alliedunits--; _root[_name + "symbols"].removeMovieClip(); this.removeMovieClip(); stop();
Symbol 1144 MovieClip Frame 2
pp = 0; stop(); assignvars(); stop();
Instance of Symbol 141 MovieClip in Symbol 1144 MovieClip Frame 2
onClipEvent (enterFrame) { if (_root.oilderricks < 4) { _root.gotoAndStop("defeat7"); } }
Symbol 1149 MovieClip Frame 1
this.cacheAsBitmap = true; this.opaqueBackground = 0;
Symbol 1151 MovieClip Frame 1
_root.enemycomcentre = 1; repairs = false; name = this._name; this.cacheAsBitmap = true; stop();
Instance of Symbol 188 MovieClip "selector" in Symbol 1151 MovieClip Frame 1
onClipEvent (load) { _root.attachMovie("bigdot2", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; this._visible = false; _parent.aggressive = false; _root.objarray.push(_parent._name); _root.unitsarray.push(_parent._name); _parent.life = 1000; _parent.fulllife = 1000; _parent.unittype = "radar"; }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 1151 MovieClip Frame 1
onClipEvent (enterFrame) { this._xscale = 370 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 1151 MovieClip Frame 2
_root.money = _root.money + 5000;
Symbol 1151 MovieClip Frame 11
_root.objarray.findandsplice(_name); _root.unitsarray.findandsplice(_name); _root.sensornets--; _root[_name + "symbols"].removeMovieClip(); this.removeMovieClip(); stop();
Symbol 1156 MovieClip Frame 1
this.cacheAsBitmap = true; this.opaqueBackground = 0;
Symbol 1158 MovieClip Frame 1
this.cacheAsBitmap = true; stop();
Instance of Symbol 188 MovieClip "selector" in Symbol 1158 MovieClip Frame 1
onClipEvent (load) { _root.attachMovie("bigdot2", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; this._visible = false; _parent.aggressive = false; _root.objarray.push(_parent._name); _root.unitsarray.push(_parent._name); _parent.life = 500; _parent.fulllife = 500; _parent.unittype = "derrick"; }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 1158 MovieClip Frame 1
onClipEvent (enterFrame) { this._xscale = 400 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 1158 MovieClip Frame 2
_root.money = _root.money + 5000;
Symbol 1158 MovieClip Frame 11
_root.objarray.findandsplice(_name); _root.unitsarray.findandsplice(_name); _root.objarray.findandsplice(_name); _root.enemyarray.findandsplice(_name); _root.enemystructurearray.findandsplice(_name); _root.enemyrefinery = 0; _root[_name + "symbols"].removeMovieClip(); this._name = "nobody"; _root.oilderricks--; this.removeMovieClip(); stop();
Symbol 1162 MovieClip Frame 1
names = this._name; repairs = false; this.cacheAsBitmap = true; _root.ai.build = true; stop();
Instance of Symbol 188 MovieClip "selector" in Symbol 1162 MovieClip Frame 1
onClipEvent (load) { _root.attachMovie("bigdot", _parent._name + "symbols", 1000006 + _root.n); _root[_parent._name + "symbols"]._x = x1 + (constantsx * (_parent._x - _root.back._x)); _root[_parent._name + "symbols"]._y = y1 + (constantsy * (_parent._y - _root.back._y)); _root.n++; this._visible = false; _root.objarray.push(_parent._name); _root.unitsarray.push(_parent._name); _parent.life = 2000; _parent.fulllife = 2000; _parent.unittype = "airport"; }
Instance of Symbol 196 MovieClip "lifebar" in Symbol 1162 MovieClip Frame 1
onClipEvent (enterFrame) { this._xscale = 390 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 1162 MovieClip Frame 2
Symbol 1162 MovieClip Frame 11
_root.objarray.findandsplice(_name); _root.unitsarray.findandsplice(_name); _root[_name + "symbols"].removeMovieClip(); this.removeMovieClip(); stop();
Symbol 1164 MovieClip Frame 1
this.cacheAsBitmap = true; this.opaqueBackground = 0;
Symbol 1212 MovieClip Frame 1
this.swapDepths(11100); i = _root.enemyarray.length - 1; while (i > -1) { _root[enemyarray[i]]._visible = false; i--; } i = 6; while (i > 0) { _root["a" + i]._visible = false; i--; } _root.missilelaunch1._visible = false; _root.tank2._visible = false; _root.tank3._visible = false; _root.humvee1._visible = false; _root.enemyheavytank1._visible = false; stop();
Instance of Symbol 141 MovieClip in Symbol 1212 MovieClip Frame 1
onClipEvent (enterFrame) { n++; if (n > 100) { _parent.nextFrame(); } } onClipEvent (load) { n = 0; }
Symbol 1212 MovieClip Frame 2
n = 0; stop();
Instance of Symbol 141 MovieClip in Symbol 1212 MovieClip Frame 2
onClipEvent (enterFrame) { _parent.n++; if ((_parent.n > 100) || (Key.isDown(16))) { _parent.nextFrame(); } } onClipEvent (load) { _parent.n = 0; }
Symbol 1212 MovieClip Frame 3
stop();
Instance of Symbol 141 MovieClip in Symbol 1212 MovieClip Frame 3
onClipEvent (enterFrame) { if (_root.selectedarray.arrayfind("tank1") || (Key.isDown(16))) { _parent.nextFrame(); } }
Symbol 1212 MovieClip Frame 4
_root.flag1._visible = true; stop();
Instance of Symbol 141 MovieClip in Symbol 1212 MovieClip Frame 4
onClipEvent (enterFrame) { if (_root.tank1.hitTest(_root.flag1) || (Key.isDown(16))) { _parent.nextFrame(); } }
Symbol 1212 MovieClip Frame 5
_root.flag1._visible = false; _root.flag2._visible = true; stop();
Instance of Symbol 141 MovieClip in Symbol 1212 MovieClip Frame 5
onClipEvent (enterFrame) { if (_parent.hitTest(_root.flag2) || (Key.isDown(16))) { _parent.nextFrame(); } }
Symbol 1212 MovieClip Frame 6
stop();
Instance of Symbol 141 MovieClip in Symbol 1212 MovieClip Frame 6
onClipEvent (enterFrame) { if (_root.tank1.hitTest(_root.flag2) || (Key.isDown(16))) { _parent.nextFrame(); } }
Symbol 1212 MovieClip Frame 7
_root.enemytechcentre1._visible = true; stop();
Instance of Symbol 141 MovieClip in Symbol 1212 MovieClip Frame 7
onClipEvent (enterFrame) { if ((_root.enemytechcentre1.life <= 0) || (Key.isDown(16))) { _parent.nextFrame(); } }
Symbol 1212 MovieClip Frame 8
_root.tank2._visible = true; _root.tank3._visible = true; _root.humvee1._visible = true; stop();
Instance of Symbol 141 MovieClip in Symbol 1212 MovieClip Frame 8
onClipEvent (enterFrame) { if (((_root.selectedarray.arrayfind("tank2") && (_root.selectedarray.arrayfind("tank3"))) && (_root.selectedarray.arrayfind("humvee1"))) || (Key.isDown(16))) { _parent.nextFrame(); } }
Symbol 1212 MovieClip Frame 9
stop();
Instance of Symbol 141 MovieClip in Symbol 1212 MovieClip Frame 9
onClipEvent (enterFrame) { if ((_root.selectedarray.length == 0) || (Key.isDown(16))) { _parent.nextFrame(); } }
Symbol 1212 MovieClip Frame 10
_root.enemyheavytank1._visible = true; stop();
Instance of Symbol 141 MovieClip in Symbol 1212 MovieClip Frame 10
onClipEvent (enterFrame) { if (_root.selectedarray.arrayfind("enemyheavytank1") || (Key.isDown(16))) { _parent.nextFrame(); } }
Symbol 1212 MovieClip Frame 11
stop();
Instance of Symbol 141 MovieClip in Symbol 1212 MovieClip Frame 11
onClipEvent (enterFrame) { if (_root.selectedarray.arrayfind("tank1") || (Key.isDown(16))) { _parent.nextFrame(); } }
Symbol 1212 MovieClip Frame 12
n = 0; stop();
Instance of Symbol 141 MovieClip in Symbol 1212 MovieClip Frame 12
onClipEvent (enterFrame) { _parent.n++; if ((_parent.n > 200) || (Key.isDown(16))) { _parent.nextFrame(); } } onClipEvent (load) { _parent.n = 0; }
Symbol 1212 MovieClip Frame 13
n = 0; stop();
Instance of Symbol 141 MovieClip in Symbol 1212 MovieClip Frame 13
onClipEvent (enterFrame) { _parent.n++; if ((_parent.n > 200) || (Key.isDown(16))) { _parent.nextFrame(); } } onClipEvent (load) { _parent.n = 0; }
Symbol 1212 MovieClip Frame 14
stop();
Instance of Symbol 141 MovieClip in Symbol 1212 MovieClip Frame 14
onClipEvent (enterFrame) { if (_root.friendlylist.length < 7) { _root.attachMovie("tank", "tank" + _root.n, _root.n); _root["tank" + _root.n]._x = _root.waypointn._x; _root["tank" + _root.n]._y = _root.waypointn._y; _root.n++; _root.attachMovie("tank", "tank" + _root.n, _root.n); _root["tank" + _root.n]._x = _root.waypointn._x; _root["tank" + _root.n]._y = _root.waypointn._y; _root.n++; _root.attachMovie("humvee", "humvee" + _root.n, _root.n); _root["humvee" + _root.n]._x = _root.waypointn._x; _root["humvee" + _root.n]._y = _root.waypointn._y; _root.n++; } if (_root.enemyheavytank1.life <= 0) { _parent.nextFrame(); } }
Symbol 1212 MovieClip Frame 15
stop();
Instance of Symbol 141 MovieClip in Symbol 1212 MovieClip Frame 15
onClipEvent (enterFrame) { if (_root.friendlylist.length <= 0) { _root.attachMovie("tank", "tank" + _root.n, _root.n); _root["tank" + _root.n]._x = _root.waypointn._x; _root["tank" + _root.n]._y = _root.waypointn._y; _root.n++; _root.attachMovie("tank", "tank" + _root.n, _root.n); _root["tank" + _root.n]._x = _root.waypointn._x; _root["tank" + _root.n]._y = _root.waypointn._y; _root.n++; _root.attachMovie("humvee", "humvee" + _root.n, _root.n); _root["humvee" + _root.n]._x = _root.waypointn._x; _root["humvee" + _root.n]._y = _root.waypointn._y; _root.n++; } if (_parent.hitTest(_root.missilelaunch1)) { _parent.nextFrame(); } }
Symbol 1212 MovieClip Frame 16
i = 6; while (i > 0) { _root["a" + i]._visible = true; i--; } _root.missilelaunch1._visible = true; stop();
Instance of Symbol 141 MovieClip in Symbol 1212 MovieClip Frame 16
onClipEvent (enterFrame) { }
Symbol 1212 MovieClip Frame 17
Instance of Symbol 141 MovieClip in Symbol 1212 MovieClip Frame 17
onClipEvent (enterFrame) { if (_root.enemyarray.length <= 0) { _parent._visible = false; _root.gotoAndStop("victoryd"); } }
Symbol 1213 MovieClip Frame 1
_root.obsarray.push(this._name); this.pos = "hoz";
Symbol 1243 MovieClip Frame 1
this.swapDepths(11000); stop();
Instance of Symbol 141 MovieClip in Symbol 1243 MovieClip Frame 1
onClipEvent (enterFrame) { pp++; if (pp > 100) { _parent.nextFrame(); } } onClipEvent (load) { pp = 0; }
Symbol 1243 MovieClip Frame 2
_root.flag12._visible = true;
Instance of Symbol 141 MovieClip in Symbol 1243 MovieClip Frame 2
onClipEvent (enterFrame) { if (_root.dozer1.hitTest(_root.flag12)) { _parent.nextFrame(); } }
Instance of Symbol 141 MovieClip in Symbol 1243 MovieClip Frame 3
onClipEvent (enterFrame) { if (_root.comcentre1.life != undefined) { _parent.nextFrame(); } }
Instance of Symbol 141 MovieClip in Symbol 1243 MovieClip Frame 4
onClipEvent (enterFrame) { n++; if (n > 300) { _parent.nextFrame(); } } onClipEvent (load) { n = 0; }
Instance of Symbol 141 MovieClip in Symbol 1243 MovieClip Frame 5
onClipEvent (enterFrame) { if (_root.refinery1._x != undefined) { _parent.nextFrame(); } }
Instance of Symbol 141 MovieClip in Symbol 1243 MovieClip Frame 6
onClipEvent (enterFrame) { n++; if (n > 200) { _parent.nextFrame(); } } onClipEvent (load) { n = 0; }
Instance of Symbol 141 MovieClip in Symbol 1243 MovieClip Frame 7
onClipEvent (enterFrame) { if (_root.warfactory1.life != undefined) { _parent.nextFrame(); } }
Instance of Symbol 141 MovieClip in Symbol 1243 MovieClip Frame 8
onClipEvent (enterFrame) { if (_root.friendlylist.length > 10) { _parent.nextFrame(); } }
Instance of Symbol 141 MovieClip in Symbol 1243 MovieClip Frame 9
onClipEvent (enterFrame) { numbert = 0; i = _root.friendlylist.length - 1; while (i > -1) { current = _root.friendlylist[i]; if (_root[current].unittype == "turret1") { numbert++; if (numbert >= 3) { _parent.nextFrame(); break; } } i--; } }
Symbol 1243 MovieClip Frame 10
i = _root.enemyarray.length - 1; while (i > -1) { current = _root.enemyarray[i]; if ((_root[current].damage != undefined) && (_root[current].speed != undefined)) { _root[current].life = 400; _root[current].fulllife = 400; _root[current].aiattack("comcentre1"); } i--; }
Instance of Symbol 141 MovieClip in Symbol 1243 MovieClip Frame 10
onClipEvent (enterFrame) { pp++; if (pp > 500) { _parent.nextFrame(); } } onClipEvent (load) { pp = 0; }
Symbol 1243 MovieClip Frame 11
stop();
Instance of Symbol 141 MovieClip in Symbol 1243 MovieClip Frame 11
onClipEvent (enterFrame) { if (_root.techcentre1.life != undefined) { _parent.nextFrame(); } }
Instance of Symbol 141 MovieClip in Symbol 1243 MovieClip Frame 12
onClipEvent (enterFrame) { i = _root.friendlylist.length - 1; while (i > -1) { current = _root.friendlylist[i]; if (_root[current].laser && (_root[current].unittype == "humvee")) { _parent.nextFrame(); break; } i--; } }
Instance of Symbol 141 MovieClip in Symbol 1243 MovieClip Frame 13
onClipEvent (enterFrame) { numbert2 = 0; i = _root.friendlylist.length - 1; while (i > -1) { current = _root.friendlylist[i]; if ((_root[current].speed > 6) && (_root[current].unittype == "humvee")) { numbert2++; if (numbert2 >= 3) { _parent.nextFrame(); break; } } i--; } }
Instance of Symbol 141 MovieClip in Symbol 1243 MovieClip Frame 14
onClipEvent (enterFrame) { pp++; if (pp > 200) { _parent.nextFrame(); } } onClipEvent (load) { pp = 0; }
Instance of Symbol 141 MovieClip in Symbol 1243 MovieClip Frame 15
onClipEvent (enterFrame) { if (_root.patroit.life <= 0) { _parent.nextFrame(); } }
Instance of Symbol 141 MovieClip in Symbol 1243 MovieClip Frame 16
onClipEvent (enterFrame) { if (_root.enemyarray.length <= 0) { _root.gotoAndStop("victory2e"); } }
Symbol 1282 MovieClip Frame 1
this.swapDepths(100000); stop();
Instance of Symbol 141 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (enterFrame) { pp++; if (pp > 200) { _parent.nextFrame(); } } onClipEvent (load) { pp = 0; }
Instance of Symbol 141 MovieClip in Symbol 1282 MovieClip Frame 2
onClipEvent (enterFrame) { pp2++; if (pp2 > 200) { _parent.nextFrame(); } } onClipEvent (load) { pp2 = 0; }
Instance of Symbol 141 MovieClip in Symbol 1282 MovieClip Frame 3
onClipEvent (enterFrame) { pp3++; if (pp3 > 200) { _parent.nextFrame(); } } onClipEvent (load) { pp3 = 0; }
Instance of Symbol 141 MovieClip in Symbol 1282 MovieClip Frame 4
onClipEvent (enterFrame) { pp4++; if (pp4 > 200) { _parent.nextFrame(); } } onClipEvent (load) { pp4 = 0; }
Instance of Symbol 141 MovieClip in Symbol 1282 MovieClip Frame 5
onClipEvent (enterFrame) { pp5++; if (pp5 > 200) { _parent.nextFrame(); } } onClipEvent (load) { pp5 = 0; }
Instance of Symbol 141 MovieClip in Symbol 1282 MovieClip Frame 6
onClipEvent (enterFrame) { pp66++; if (pp66 > 200) { _parent.nextFrame(); } } onClipEvent (load) { pp66 = 0; }
Instance of Symbol 141 MovieClip in Symbol 1282 MovieClip Frame 7
onClipEvent (enterFrame) { pp67++; if (pp67 > 200) { _parent.nextFrame(); } } onClipEvent (load) { pp67 = 0; }
Instance of Symbol 141 MovieClip in Symbol 1282 MovieClip Frame 8
onClipEvent (enterFrame) { pp68++; if (pp68 > 200) { _parent.nextFrame(); } } onClipEvent (load) { pp68 = 0; }
Instance of Symbol 141 MovieClip in Symbol 1282 MovieClip Frame 9
onClipEvent (enterFrame) { pp69++; if (pp69 > 200) { _parent.nextFrame(); } } onClipEvent (load) { pp69 = 0; }
Instance of Symbol 141 MovieClip in Symbol 1282 MovieClip Frame 10
onClipEvent (enterFrame) { pp71++; if (pp71 > 200) { _parent.nextFrame(); } } onClipEvent (load) { pp71 = 0; }
Instance of Symbol 141 MovieClip in Symbol 1282 MovieClip Frame 11
onClipEvent (enterFrame) { pp72++; if (pp72 > 200) { _parent.nextFrame(); } } onClipEvent (load) { pp72 = 0; }
Instance of Symbol 141 MovieClip in Symbol 1282 MovieClip Frame 12
onClipEvent (enterFrame) { pp35++; if (pp35 > 200) { _parent.nextFrame(); } } onClipEvent (load) { pp35 = 0; }
Instance of Symbol 141 MovieClip in Symbol 1282 MovieClip Frame 13
onClipEvent (enterFrame) { pp88++; if (pp88 > 200) { _parent.nextFrame(); } } onClipEvent (load) { pp88 = 0; }
Instance of Symbol 141 MovieClip in Symbol 1282 MovieClip Frame 14
onClipEvent (enterFrame) { pp8++; if (pp8 > 200) { _parent.nextFrame(); } } onClipEvent (load) { pp8 = 0; }
Instance of Symbol 141 MovieClip in Symbol 1282 MovieClip Frame 15
onClipEvent (enterFrame) { pp89++; if (pp89 > 200) { _parent.nextFrame(); } } onClipEvent (load) { pp89 = 0; }
Instance of Symbol 141 MovieClip in Symbol 1282 MovieClip Frame 16
onClipEvent (enterFrame) { pp9++; if (pp9 > 200) { _parent.nextFrame(); } } onClipEvent (load) { pp9 = 0; }
Instance of Symbol 141 MovieClip in Symbol 1282 MovieClip Frame 17
onClipEvent (enterFrame) { pp91++; if (pp91 > 200) { _parent.nextFrame(); } } onClipEvent (load) { pp91 = 0; }
Instance of Symbol 141 MovieClip in Symbol 1282 MovieClip Frame 18
onClipEvent (enterFrame) { pp92++; if (pp92 > 200) { _parent.nextFrame(); } } onClipEvent (load) { pp92 = 0; }
Instance of Symbol 141 MovieClip in Symbol 1282 MovieClip Frame 19
onClipEvent (mouseDown) { _root.gotoAndPlay("meow"); }

Library Items

Symbol 1 Sound [music]
Symbol 2 Sound [missi]
Symbol 3 Sound [mach]
Symbol 4 Sound [exp3]
Symbol 5 Sound [lights]
Symbol 6 Sound [Las]
Symbol 7 Sound [la]
Symbol 8 Sound [exp]
Symbol 9 Sound [exp2]
Symbol 10 Sound [cannon6]
Symbol 11 Sound [blip]
Symbol 12 Sound [ar]
Symbol 13 Sound [crash]Used by:1134
Symbol 14 Sound [click]Used by:738
Symbol 15 GraphicUsed by:138
Symbol 16 GraphicUsed by:97 714
Symbol 17 GraphicUsed by:76 96 712
Symbol 18 GraphicUsed by:20
Symbol 19 GraphicUsed by:20
Symbol 20 MovieClipUses:18 19Used by:76 96 712  Timeline
Symbol 21 BitmapUsed by:22 32 39 53 61 74 80 81 82 84 86 94 106 108 109 111 112 113 180 192 203 207 208 214 240 250 257 573 636 693 695 697 699 707 728 746 790 791 792 1110 1246
Symbol 22 GraphicUses:21Used by:76
Symbol 23 GraphicUsed by:24
Symbol 24 MovieClipUses:23Used by:76 97 114 712 714
Symbol 25 GraphicUsed by:26
Symbol 26 MovieClipUses:25Used by:76 97 114 712 714
Symbol 27 GraphicUsed by:28
Symbol 28 MovieClipUses:27Used by:76 97 114 712 714
Symbol 29 GraphicUsed by:31 107 694
Symbol 30 GraphicUsed by:31 107 660 670 694 740 749 751 752 760 764 765 767 770 772 773 776
Symbol 31 ButtonUses:29 30Used by:76
Symbol 32 GraphicUses:21Used by:76 712
Symbol 33 GraphicUsed by:34
Symbol 34 MovieClipUses:33Used by:76 97 114 712 714
Symbol 35 GraphicUsed by:36
Symbol 36 MovieClipUses:35Used by:76 97 114 712 714
Symbol 37 GraphicUsed by:38
Symbol 38 MovieClipUses:37Used by:76 97 114 712 714
Symbol 39 GraphicUses:21Used by:76
Symbol 40 GraphicUsed by:41
Symbol 41 MovieClipUses:40Used by:76 97 114 712 714
Symbol 42 GraphicUsed by:43
Symbol 43 MovieClipUses:42Used by:76 97 114 712 714
Symbol 44 GraphicUsed by:45
Symbol 45 MovieClipUses:44Used by:76 97 114 712 714
Symbol 46 GraphicUsed by:47
Symbol 47 MovieClipUses:46Used by:76 97 114 712 714
Symbol 48 GraphicUsed by:76
Symbol 49 GraphicUsed by:50
Symbol 50 MovieClipUses:49Used by:76 97 114 712 714
Symbol 51 GraphicUsed by:52
Symbol 52 MovieClipUses:51Used by:76 97 114 712 714
Symbol 53 GraphicUses:21Used by:76
Symbol 54 GraphicUsed by:76 96 114 141 193 205 712
Symbol 55 GraphicUsed by:57 514 527 530
Symbol 56 GraphicUsed by:57
Symbol 57 MovieClipUses:55 56Used by:76 186 205 215 238 241 255 258 574 579 637 712
Symbol 58 GraphicUsed by:59
Symbol 59 MovieClipUses:58Used by:76 97 114 712 714
Symbol 60 GraphicUsed by:76
Symbol 61 GraphicUses:21Used by:76
Symbol 62 GraphicUsed by:76
Symbol 63 GraphicUsed by:64 570
Symbol 64 MovieClipUses:63Used by:76 96 270 287 568 598 600 609 619 621 623 625 712 1134
Symbol 65 GraphicUsed by:76 96 712
Symbol 66 GraphicUsed by:76
Symbol 67 GraphicUsed by:76
Symbol 68 GraphicUsed by:76
Symbol 69 GraphicUsed by:76
Symbol 70 GraphicUsed by:76 96 712
Symbol 71 GraphicUsed by:76
Symbol 72 GraphicUsed by:76
Symbol 73 GraphicUsed by:76 96 712
Symbol 74 GraphicUses:21Used by:76
Symbol 75 GraphicUsed by:76
Symbol 76 MovieClipUses:17 20 22 24 26 28 31 32 34 36 38 39 41 43 45 47 48 50 52 53 54 57 59 60 61 62 64 65 66 67 68 69 70 71 72 73 74 75Used by:97
Symbol 77 GraphicUsed by:97 714
Symbol 78 FontUsed by:79 115 119 122 123 124 142 143 145 146 148 149 151 153 155 157 159 161 163 165 167 168 169 170 171 172 173 175 176 177 178 252 371 372 375 376 379 380 383 384 387 388 395 396 402 403 406 407 409 411 412 414 481 482 583 652 654 674 686 687 688 713 717 727 729 732 733 734 744 747 762 784 821 824 825 826 829 830 1019 1020 1090 1092 1141 1142 1143 1160 1170 1171 1174 1175 1176 1177 1178 1179 1180 1181 1183 1184 1185 1186 1187 1189 1190 1191 1192 1194 1195 1196 1198 1200 1201 1203 1204 1205 1206 1207 1211 1214 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1236 1238 1239 1240 1241 1242 1245 1247 1248 1249 1250 1251 1252 1253 1255 1256 1257 1258 1259 1261 1262 1264 1265 1266 1267 1268 1269 1270 1272 1273 1274 1275 1276 1277 1279 1280 1281
Symbol 79 EditableTextUses:78Used by:97
Symbol 80 GraphicUses:21Used by:96
Symbol 81 GraphicUses:21Used by:96
Symbol 82 GraphicUses:21Used by:96
Symbol 83 GraphicUsed by:96
Symbol 84 GraphicUses:21Used by:96
Symbol 85 GraphicUsed by:96
Symbol 86 GraphicUses:21Used by:96
Symbol 87 GraphicUsed by:96
Symbol 88 GraphicUsed by:96
Symbol 89 GraphicUsed by:96
Symbol 90 GraphicUsed by:96
Symbol 91 GraphicUsed by:96
Symbol 92 GraphicUsed by:96
Symbol 93 GraphicUsed by:96
Symbol 94 GraphicUses:21Used by:96
Symbol 95 GraphicUsed by:96
Symbol 96 MovieClipUses:17 20 80 81 82 83 84 54 85 86 87 64 65 88 89 90 91 70 92 93 73 94 95Used by:97 714
Symbol 97 MovieClipUses:16 76 77 79 96 24 26 28 34 36 38 50 52 59 43 41 45 47Used by:138
Symbol 98 GraphicUsed by:138
Symbol 99 GraphicUsed by:116
Symbol 100 GraphicUsed by:103 104 120 121 745 763 1037
Symbol 101 GraphicUsed by:103 104 120 121 745 763 1037
Symbol 102 GraphicUsed by:103 104 120 121 487 488 498 499 505 508 745 763 1037
Symbol 103 ButtonUses:100 101 102Used by:116
Symbol 104 ButtonUses:100 101 102Used by:116
Symbol 105 GraphicUsed by:114 741 748 974
Symbol 106 GraphicUses:21Used by:114
Symbol 107 ButtonUses:29 30Used by:114
Symbol 108 GraphicUses:21Used by:114
Symbol 109 GraphicUses:21Used by:114
Symbol 110 GraphicUsed by:114
Symbol 111 GraphicUses:21Used by:114
Symbol 112 GraphicUses:21Used by:114
Symbol 113 GraphicUses:21Used by:114
Symbol 114 MovieClipUses:105 106 24 26 28 107 108 34 36 38 109 41 43 45 47 110 50 52 111 54 59 112 113Used by:116
Symbol 115 EditableTextUses:78Used by:116
Symbol 116 MovieClipUses:99 103 104 114 115Used by:138
Symbol 117 GraphicUsed by:118
Symbol 118 MovieClipUses:117Used by:138 834
Symbol 119 EditableTextUses:78Used by:138
Symbol 120 ButtonUses:100 101 102Used by:138
Symbol 121 ButtonUses:100 101 102Used by:138
Symbol 122 EditableTextUses:78Used by:138
Symbol 123 EditableTextUses:78Used by:138
Symbol 124 EditableTextUses:78Used by:138
Symbol 125 GraphicUsed by:131
Symbol 126 FontUsed by:127 129 130 133 135 136
Symbol 127 EditableTextUses:126Used by:131
Symbol 128 GraphicUsed by:131
Symbol 129 EditableTextUses:126Used by:131
Symbol 130 EditableTextUses:126Used by:131
Symbol 131 ButtonUses:125 127 128 129 130Used by:138
Symbol 132 GraphicUsed by:137
Symbol 133 EditableTextUses:126Used by:137
Symbol 134 GraphicUsed by:137
Symbol 135 EditableTextUses:126Used by:137
Symbol 136 EditableTextUses:126Used by:137
Symbol 137 ButtonUses:132 133 134 135 136Used by:138
Symbol 138 MovieClip [mapbar]Uses:15 97 98 116 118 119 120 121 122 123 124 131 137
Symbol 139 GraphicUsed by:144
Symbol 140 GraphicUsed by:144 147 150 152 154 156 158 160 162 164 166 174 179 584 1128 1144
Symbol 141 MovieClipUses:54Used by:144 150 152 154 156 160 162 164 166 174 179 193 205 584 1144 1212 1243 1282
Symbol 142 TextUses:78Used by:144
Symbol 143 TextUses:78Used by:144
Symbol 144 MovieClip [missiondefend2]Uses:139 140 141 142 143
Symbol 145 TextUses:78Used by:147
Symbol 146 TextUses:78Used by:147 158
Symbol 147 MovieClip [missiondefend]Uses:140 145 146
Symbol 148 TextUses:78Used by:150
Symbol 149 TextUses:78Used by:150 152 154 156 160 162 164 166 174 179 584 1144
Symbol 150 MovieClip [missiondefend6]Uses:140 148 141 149
Symbol 151 TextUses:78Used by:152
Symbol 152 MovieClip [missiondefend5]Uses:140 151 141 149
Symbol 153 TextUses:78Used by:154
Symbol 154 MovieClip [missiondefend4]Uses:140 153 141 149
Symbol 155 TextUses:78Used by:156
Symbol 156 MovieClip [missiondefend3]Uses:140 155 141 149
Symbol 157 TextUses:78Used by:158
Symbol 158 MovieClip [mission9]Uses:140 157 146
Symbol 159 TextUses:78Used by:160
Symbol 160 MovieClip [mission8]Uses:140 159 141 149
Symbol 161 TextUses:78Used by:162
Symbol 162 MovieClip [mission6]Uses:140 161 141 149
Symbol 163 TextUses:78Used by:164
Symbol 164 MovieClip [mission5]Uses:140 163 141 149
Symbol 165 TextUses:78Used by:166
Symbol 166 MovieClip [mission4]Uses:140 165 141 149
Symbol 167 TextUses:78Used by:174
Symbol 168 TextUses:78Used by:174 179
Symbol 169 TextUses:78Used by:174
Symbol 170 TextUses:78Used by:174
Symbol 171 TextUses:78Used by:174
Symbol 172 EditableTextUses:78Used by:174
Symbol 173 EditableTextUses:78Used by:174
Symbol 174 MovieClip [mission2]Uses:140 167 141 168 169 170 149 171 172 173
Symbol 175 TextUses:78Used by:179
Symbol 176 TextUses:78Used by:179
Symbol 177 TextUses:78Used by:179
Symbol 178 TextUses:78Used by:179
Symbol 179 MovieClip [mission]Uses:140 175 141 168 176 177 178 149
Symbol 180 GraphicUses:21Used by:186
Symbol 181 GraphicUsed by:183 209 228 269 313 323 571
Symbol 182 GraphicUsed by:183 209 228 269 313 323 571
Symbol 183 ButtonUses:181 182Used by:186 202 215 241 255 579 637
Symbol 184 GraphicUsed by:186 202 215 229 241 255 258 270 276 287 319 325 333 568 572 574 579 582 586 590 592 594 596 598 600 602 609 617 619 621 623 625 630 637 1134 1136 1138 1140 1151 1158 1162
Symbol 185 GraphicUsed by:186 202 215 229 241 255 258 270 276 287 319 325 333 568 572 574 579 582 586 590 592 594 596 598 600 602 609 617 619 621 623 625 630 637 1134 1136 1138 1140 1151 1158 1162
Symbol 186 MovieClipUses:180 57 183 184 185Used by:197 633 644
Symbol 187 GraphicUsed by:188
Symbol 188 MovieClipUses:187Used by:197 206 226 239 248 256 263 270 276 287 319 325 333 568 572 575 580 582 586 590 592 594 596 598 600 602 609 617 619 621 623 625 630 633 634 635 638 639 640 641 642 643 644 645 646 1134 1136 1138 1140 1151 1158 1162
Symbol 189 GraphicUsed by:193
Symbol 190 GraphicUsed by:193 238 616
Symbol 191 GraphicUsed by:193 238 616
Symbol 192 GraphicUses:21Used by:193
Symbol 193 MovieClipUses:54 189 190 191 141 192Used by:197 633 644
Symbol 194 GraphicUsed by:197 206 226 239 248 256 263 270 287 319 325 333 568 572 575 580 582 586 590 592 594 596 598 600 602 609 617 619 621 623 625 630 633 634 635 638 639 640 641 642 643 644 645 646 1134 1136 1138 1140 1151 1158 1162
Symbol 195 GraphicUsed by:196
Symbol 196 MovieClipUses:195Used by:197 206 226 239 248 256 263 270 287 319 325 333 568 572 575 580 582 586 590 592 594 596 598 600 602 609 617 619 621 623 625 630 633 634 635 638 639 640 641 642 643 644 645 646 778 1095 1134 1136 1138 1140 1151 1158 1162
Symbol 197 MovieClip [lightally]Uses:186 188 193 194 196
Symbol 198 GraphicUsed by:202
Symbol 199 GraphicUsed by:202 215 229 241 255 270 276 287 319 325 333 568 572 579 582 586 590 592 594 596 598 600 602 609 617 619 621 623 625 630 637 1134 1136 1138 1140 1151 1158 1162
Symbol 200 GraphicUsed by:202 215 229 241 255 270 276 287 319 325 333 568 572 579 582 586 590 592 594 596 598 600 602 609 617 619 621 623 625 630 637 1134 1136 1138 1140 1151 1158 1162
Symbol 201 GraphicUsed by:202 215 229 241 255 270 287 319 325 333 568 572 579 582 586 590 592 594 596 598 600 602 609 617 619 621 623 625 630 637 1134 1136 1138 1140 1151 1158 1162
Symbol 202 MovieClipUses:198 183 184 199 200 201 185Used by:206 634 641
Symbol 203 GraphicUses:21Used by:205
Symbol 204 GraphicUsed by:205
Symbol 205 MovieClipUses:54 203 57 204 141Used by:206 634 641
Symbol 206 MovieClip [heavyally]Uses:202 188 205 194 196
Symbol 207 GraphicUses:21Used by:215
Symbol 208 GraphicUses:21Used by:215
Symbol 209 ButtonUses:181 182Used by:215 574
Symbol 210 GraphicUsed by:211 225
Symbol 211 MovieClipUses:210Used by:215 225
Symbol 212 ShapeTweeningUsed by:215
Symbol 213 GraphicUsed by:215
Symbol 214 GraphicUses:21Used by:215
Symbol 215 MovieClipUses:207 57 183 208 209 211 212 213 214 184 199 200 201 185Used by:226 635 645
Symbol 216 GraphicUsed by:225
Symbol 217 GraphicUsed by:225
Symbol 218 GraphicUsed by:225
Symbol 219 GraphicUsed by:225
Symbol 220 GraphicUsed by:225
Symbol 221 GraphicUsed by:225
Symbol 222 GraphicUsed by:225
Symbol 223 GraphicUsed by:225
Symbol 224 GraphicUsed by:225
Symbol 225 MovieClipUses:216 217 210 218 219 220 221 222 223 211 224Used by:226 635 645
Symbol 226 MovieClip [artilleryally]Uses:215 188 225 194 196
Symbol 227 GraphicUsed by:229
Symbol 228 ButtonUses:181 182Used by:229 258
Symbol 229 MovieClipUses:227 228 184 199 200 201 185Used by:239 639 642
Symbol 230 GraphicUsed by:238
Symbol 231 GraphicUsed by:236 238
Symbol 232 GraphicUsed by:238
Symbol 233 GraphicUsed by:238
Symbol 234 GraphicUsed by:236
Symbol 235 GraphicUsed by:236
Symbol 236 MovieClipUses:231 234 235Used by:238
Symbol 237 GraphicUsed by:238
Symbol 238 MovieClipUses:230 231 232 57 233 236 190 191 237Used by:239 639 642
Symbol 239 MovieClip [rocketally]Uses:229 188 238 194 196
Symbol 240 GraphicUses:21Used by:241
Symbol 241 MovieClip [humveeebase]Uses:240 57 183 184 199 200 201 185Used by:248 640 643
Symbol 242 GraphicUsed by:247
Symbol 243 GraphicUsed by:247
Symbol 244 GraphicUsed by:247
Symbol 245 GraphicUsed by:246 247
Symbol 246 MovieClipUses:245Used by:247
Symbol 247 MovieClipUses:242 243 244 246 245Used by:248 640 643
Symbol 248 MovieClip [humveeally]Uses:241 188 247 194 196
Symbol 249 GraphicUsed by:255
Symbol 250 GraphicUses:21Used by:255
Symbol 251 GraphicUsed by:255
Symbol 252 TextUses:78Used by:255
Symbol 253 GraphicUsed by:255
Symbol 254 GraphicUsed by:255
Symbol 255 MovieClipUses:249 57 183 250 251 252 253 254 184 199 200 201 185Used by:256
Symbol 256 MovieClip [oiltruck]Uses:255 188 194 196
Symbol 257 GraphicUses:21Used by:258
Symbol 258 MovieClipUses:257 57 228 184 185Used by:263
Symbol 259 GraphicUsed by:261 262
Symbol 260 GraphicUsed by:262 268
Symbol 261 MovieClipUses:259Used by:262
Symbol 262 MovieClipUses:259 260 261Used by:263 575
Symbol 263 MovieClip [lasertank]Uses:258 188 262 194 196
Symbol 264 GraphicUsed by:270
Symbol 265 GraphicUsed by:267 268
Symbol 266 GraphicUsed by:268
Symbol 267 MovieClipUses:265Used by:268
Symbol 268 MovieClipUses:265 266 260 267Used by:270 602
Symbol 269 ButtonUses:181 182Used by:270 287 568 598 600 619 621 623 625 1134
Symbol 270 MovieClip [laserbasedefense]Uses:264 268 188 64 269 194 196 184 199 200 201 185
Symbol 271 GraphicUsed by:276
Symbol 272 GraphicUsed by:276
Symbol 273 GraphicUsed by:276 609 844
Symbol 274 GraphicUsed by:276 609 844
Symbol 275 GraphicUsed by:276
Symbol 276 MovieClip [mine]Uses:271 188 272 184 273 199 200 274 275 185
Symbol 277 GraphicUsed by:287
Symbol 278 GraphicUsed by:286
Symbol 279 GraphicUsed by:286
Symbol 280 GraphicUsed by:286
Symbol 281 GraphicUsed by:286
Symbol 282 GraphicUsed by:286
Symbol 283 GraphicUsed by:286
Symbol 284 GraphicUsed by:286
Symbol 285 GraphicUsed by:286
Symbol 286 MovieClipUses:278 279 280 281 282 283 284 285Used by:287 582
Symbol 287 MovieClip [turrets]Uses:277 286 188 64 194 196 269 184 199 200 201 185
Symbol 288 ShapeTweeningUsed by:291 292
Symbol 289 ShapeTweeningUsed by:291 292
Symbol 290 GraphicUsed by:291 292
Symbol 291 MovieClipUses:288 289 290Used by:292
Symbol 292 MovieClip [rad]Uses:288 289 290 291
Symbol 293 GraphicUsed by:295
Symbol 294 GraphicUsed by:295
Symbol 295 MovieClip [laser2]Uses:293 294
Symbol 296 GraphicUsed by:299
Symbol 297 GraphicUsed by:299
Symbol 298 GraphicUsed by:299
Symbol 299 MovieClip [ionbeams]Uses:296 297 298
Symbol 300 GraphicUsed by:302
Symbol 301 GraphicUsed by:302
Symbol 302 MovieClip [laser]Uses:300 301
Symbol 303 GraphicUsed by:304
Symbol 304 MovieClipUses:303Used by:308
Symbol 305 GraphicUsed by:307
Symbol 306 GraphicUsed by:307
Symbol 307 MovieClipUses:305 306Used by:308
Symbol 308 MovieClip [mo]Uses:304 307
Symbol 309 GraphicUsed by:319
Symbol 310 FontUsed by:311 312 316 317 321 322 327 328 331 627 628 655 669 675 742 743 768
Symbol 311 TextUses:310Used by:319
Symbol 312 EditableTextUses:310Used by:319
Symbol 313 ButtonUses:181 182Used by:319 586 592 630 1136 1151 1162
Symbol 314 GraphicUsed by:319
Symbol 315 GraphicUsed by:319
Symbol 316 TextUses:310Used by:319 333
Symbol 317 EditableTextUses:310Used by:319
Symbol 318 GraphicUsed by:319
Symbol 319 MovieClip [enemyconstruction]Uses:309 311 312 188 313 194 196 314 315 316 317 318 184 199 200 201 185
Symbol 320 GraphicUsed by:325
Symbol 321 TextUses:310Used by:325
Symbol 322 EditableTextUses:310Used by:325
Symbol 323 ButtonUses:181 182Used by:325 333
Symbol 324 GraphicUsed by:325
Symbol 325 MovieClip [construction2]Uses:320 188 321 322 323 194 196 324 184 199 200 201 185
Symbol 326 GraphicUsed by:333
Symbol 327 TextUses:310Used by:333
Symbol 328 EditableTextUses:310Used by:333
Symbol 329 GraphicUsed by:333
Symbol 330 GraphicUsed by:333
Symbol 331 EditableTextUses:310Used by:333
Symbol 332 GraphicUsed by:333
Symbol 333 MovieClip [construction]Uses:326 327 328 188 323 194 196 329 330 316 331 332 184 199 200 201 185
Symbol 334 GraphicUsed by:336
Symbol 335 GraphicUsed by:336 338
Symbol 336 MovieClip [bigdot2]Uses:334 335
Symbol 337 GraphicUsed by:338 518 564
Symbol 338 MovieClip [bigdot]Uses:337 335
Symbol 339 GraphicUsed by:341
Symbol 340 GraphicUsed by:341 632
Symbol 341 MovieClip [dot2]Uses:339 340
Symbol 342 ShapeTweeningUsed by:352
Symbol 343 GraphicUsed by:352
Symbol 344 ShapeTweeningUsed by:352
Symbol 345 ShapeTweeningUsed by:352
Symbol 346 GraphicUsed by:352
Symbol 347 ShapeTweeningUsed by:352
Symbol 348 GraphicUsed by:352
Symbol 349 ShapeTweeningUsed by:352
Symbol 350 GraphicUsed by:352
Symbol 351 GraphicUsed by:352
Symbol 352 MovieClip [nuke]Uses:342 343 344 345 346 347 348 349 350 351
Symbol 353 GraphicUsed by:357
Symbol 354 ShapeTweeningUsed by:356
Symbol 355 GraphicUsed by:356
Symbol 356 MovieClipUses:354 355Used by:357
Symbol 357 MovieClip [targeter]Uses:353 356
Symbol 358 GraphicUsed by:362
Symbol 359 GraphicUsed by:361
Symbol 360 GraphicUsed by:361
Symbol 361 MovieClipUses:359 360Used by:362 364 837 861
Symbol 362 MovieClip [nukemiss2]Uses:358 361
Symbol 363 GraphicUsed by:364
Symbol 364 MovieClip [nukemiss]Uses:363 361
Symbol 365 GraphicUsed by:366
Symbol 366 MovieClip [padded]Uses:365Used by:480 566
Symbol 367 GraphicUsed by:566
Symbol 368 GraphicUsed by:369
Symbol 369 MovieClipUses:368Used by:566 833  Timeline
Symbol 370 GraphicUsed by:374 378 382 386 390 398 405 410 415 484 828 832
Symbol 371 TextUses:78Used by:374
Symbol 372 TextUses:78Used by:374
Symbol 373 GraphicUsed by:374
Symbol 374 ButtonUses:370 371 372 373Used by:566
Symbol 375 TextUses:78Used by:378
Symbol 376 TextUses:78Used by:378
Symbol 377 GraphicUsed by:378
Symbol 378 ButtonUses:370 375 376 377Used by:566
Symbol 379 TextUses:78Used by:382
Symbol 380 TextUses:78Used by:382
Symbol 381 GraphicUsed by:382
Symbol 382 ButtonUses:370 379 380 381Used by:566
Symbol 383 TextUses:78Used by:386
Symbol 384 TextUses:78Used by:386
Symbol 385 GraphicUsed by:386
Symbol 386 ButtonUses:370 383 384 385Used by:566
Symbol 387 TextUses:78Used by:390
Symbol 388 TextUses:78Used by:390
Symbol 389 GraphicUsed by:390
Symbol 390 ButtonUses:370 387 388 389Used by:566
Symbol 391 GraphicUsed by:566
Symbol 392 GraphicUsed by:566
Symbol 393 GraphicUsed by:566
Symbol 394 GraphicUsed by:566
Symbol 395 TextUses:78Used by:398
Symbol 396 TextUses:78Used by:398
Symbol 397 GraphicUsed by:398
Symbol 398 ButtonUses:370 395 396 397Used by:566
Symbol 399 FontUsed by:400 401 416 417 418 419 420 421 423 430 435 439 444 447 448 452 489 494 497 503 509
Symbol 400 TextUses:399Used by:566
Symbol 401 TextUses:399Used by:566
Symbol 402 TextUses:78Used by:405
Symbol 403 TextUses:78Used by:405
Symbol 404 GraphicUsed by:405
Symbol 405 ButtonUses:370 402 403 404Used by:566
Symbol 406 TextUses:78Used by:410
Symbol 407 TextUses:78Used by:410
Symbol 408 GraphicUsed by:410
Symbol 409 TextUses:78Used by:410
Symbol 410 ButtonUses:370 406 407 408 409Used by:566
Symbol 411 TextUses:78Used by:415
Symbol 412 TextUses:78Used by:415
Symbol 413 GraphicUsed by:415
Symbol 414 TextUses:78Used by:415
Symbol 415 ButtonUses:370 411 412 413 414Used by:566
Symbol 416 TextUses:399Used by:566
Symbol 417 TextUses:399Used by:566
Symbol 418 TextUses:399Used by:566
Symbol 419 TextUses:399Used by:566
Symbol 420 TextUses:399Used by:566
Symbol 421 TextUses:399Used by:566
Symbol 422 GraphicUsed by:428 491
Symbol 423 EditableTextUses:399Used by:428
Symbol 424 GraphicUsed by:428 491
Symbol 425 FontUsed by:426 432 437 441 445 449 490 492 496 501 502 504 506 507 511 512 515 517 519 521 523 524 526 528 529 532 534 536 539 541 543 544 547 549 551 553 555 558 560 562 563
Symbol 426 TextUses:425Used by:428
Symbol 427 GraphicUsed by:428 433 438 442 446 450 491
Symbol 428 ButtonUses:422 423 424 426 427Used by:566
Symbol 429 GraphicUsed by:433 442 450
Symbol 430 EditableTextUses:399Used by:433
Symbol 431 GraphicUsed by:433 450
Symbol 432 TextUses:425Used by:433
Symbol 433 ButtonUses:429 430 431 432 427Used by:566
Symbol 434 GraphicUsed by:438
Symbol 435 EditableTextUses:399Used by:438
Symbol 436 GraphicUsed by:438
Symbol 437 TextUses:425Used by:438
Symbol 438 ButtonUses:434 435 436 437 427Used by:566
Symbol 439 EditableTextUses:399Used by:442
Symbol 440 GraphicUsed by:442 446
Symbol 441 TextUses:425Used by:442
Symbol 442 ButtonUses:429 439 440 441 427Used by:566
Symbol 443 GraphicUsed by:446
Symbol 444 EditableTextUses:399Used by:446
Symbol 445 TextUses:425Used by:446
Symbol 446 ButtonUses:443 444 440 445 427Used by:566
Symbol 447 TextUses:399Used by:566
Symbol 448 EditableTextUses:399Used by:450
Symbol 449 TextUses:425Used by:450
Symbol 450 ButtonUses:429 448 431 449 427Used by:566
Symbol 451 GraphicUsed by:566
Symbol 452 TextUses:399Used by:566
Symbol 453 BitmapUsed by:457 459 460 463 464 466 468 470 477 798 799 800 801 805 806 807 810 812 814 816 817 1015 1016 1067 1073 1077 1078 1082 1083 1087 1106 1145 1152 1153 1163
Symbol 454 BitmapUsed by:457 459 463 466 468 470 473 798 799 801 806 808 810 812 816 817 1015 1016 1074 1078 1087 1106 1153 1163
Symbol 455 BitmapUsed by:457 459 463 466 468 470 473 477 798 799 801 806 808 810 812 815 816 817 1005 1015 1016 1074 1077 1078 1083 1087 1106 1146 1153 1163
Symbol 456 BitmapUsed by:457 459 463 466 468 470 473 477 798 799 801 806 808 810 812 816 1016 1074 1077 1078 1083 1087 1106 1153
Symbol 457 GraphicUses:453 454 455 456Used by:480
Symbol 458 GraphicUsed by:480
Symbol 459 GraphicUses:455 456 453 454Used by:480
Symbol 460 GraphicUses:453Used by:480
Symbol 461 GraphicUsed by:462
Symbol 462 MovieClipUses:461Used by:480 804 819 1070 1075 1086 1088 1132 1149 1156 1164
Symbol 463 GraphicUses:455 453 454 456Used by:480
Symbol 464 GraphicUses:453Used by:480
Symbol 465 BitmapUsed by:466 477 810 815 816 1084 1106 1147 1153 1154
Symbol 466 GraphicUses:455 453 454 456 465Used by:467
Symbol 467 MovieClipUses:466Used by:480 819 1070
Symbol 468 GraphicUses:455 453 454 456Used by:469
Symbol 469 MovieClipUses:468Used by:480 819 1070
Symbol 470 GraphicUses:453 455 454 456Used by:471
Symbol 471 MovieClipUses:470Used by:480 819 1070
Symbol 472 GraphicUsed by:480
Symbol 473 GraphicUses:455 454 456Used by:474
Symbol 474 MovieClipUses:473Used by:480 819
Symbol 475 GraphicUsed by:480
Symbol 476 BitmapUsed by:477 817 1083 1106 1163
Symbol 477 GraphicUses:453 476 455 456 465Used by:478
Symbol 478 MovieClipUses:477Used by:480 819
Symbol 479 GraphicUsed by:480
Symbol 480 MovieClipUses:457 366 458 459 460 462 463 464 467 469 471 472 474 475 478 479Used by:566
Symbol 481 TextUses:78Used by:484
Symbol 482 TextUses:78Used by:484
Symbol 483 GraphicUsed by:484
Symbol 484 ButtonUses:370 481 482 483Used by:566
Symbol 485 GraphicUsed by:487 488 498 499 505 508
Symbol 486 GraphicUsed by:487 488 498 499 505 508
Symbol 487 ButtonUses:485 486 102Used by:566
Symbol 488 ButtonUses:485 486 102Used by:566
Symbol 489 EditableTextUses:399Used by:491
Symbol 490 TextUses:425Used by:491
Symbol 491 ButtonUses:422 489 424 490 427Used by:566
Symbol 492 TextUses:425Used by:566
Symbol 493 GraphicUsed by:566
Symbol 494 TextUses:399Used by:566
Symbol 495 GraphicUsed by:566
Symbol 496 TextUses:425Used by:566
Symbol 497 EditableTextUses:399Used by:566
Symbol 498 ButtonUses:485 486 102Used by:566
Symbol 499 ButtonUses:485 486 102Used by:566
Symbol 500 GraphicUsed by:566
Symbol 501 EditableTextUses:425Used by:566
Symbol 502 TextUses:425Used by:566
Symbol 503 TextUses:399Used by:566
Symbol 504 TextUses:425Used by:566
Symbol 505 ButtonUses:485 486 102Used by:566
Symbol 506 EditableTextUses:425Used by:566
Symbol 507 EditableTextUses:425Used by:566
Symbol 508 ButtonUses:485 486 102Used by:566
Symbol 509 TextUses:399Used by:566
Symbol 510 GraphicUsed by:531 565
Symbol 511 TextUses:425Used by:514
Symbol 512 TextUses:425Used by:514
Symbol 513 GraphicUsed by:514
Symbol 514 ButtonUses:511 55 512 513Used by:531
Symbol 515 TextUses:425Used by:518
Symbol 516 GraphicUsed by:518
Symbol 517 TextUses:425Used by:518
Symbol 518 ButtonUses:515 516 517 337Used by:531
Symbol 519 TextUses:425Used by:522
Symbol 520 GraphicUsed by:522
Symbol 521 TextUses:425Used by:522
Symbol 522 ButtonUses:519 520 521Used by:531
Symbol 523 TextUses:425Used by:527
Symbol 524 TextUses:425Used by:527
Symbol 525 GraphicUsed by:527 530 557
Symbol 526 TextUses:425Used by:527 530 557
Symbol 527 ButtonUses:523 55 524 525 526Used by:531
Symbol 528 TextUses:425Used by:530
Symbol 529 TextUses:425Used by:530
Symbol 530 ButtonUses:528 55 529 525 526Used by:531
Symbol 531 MovieClipUses:510 514 518 522 527 530Used by:566
Symbol 532 TextUses:425Used by:538
Symbol 533 GraphicUsed by:538
Symbol 534 TextUses:425Used by:538
Symbol 535 GraphicUsed by:538
Symbol 536 TextUses:425Used by:538
Symbol 537 GraphicUsed by:538
Symbol 538 ButtonUses:532 533 534 535 536 537Used by:565
Symbol 539 TextUses:425Used by:546
Symbol 540 GraphicUsed by:546
Symbol 541 TextUses:425Used by:546
Symbol 542 GraphicUsed by:546
Symbol 543 TextUses:425Used by:546
Symbol 544 TextUses:425Used by:546
Symbol 545 GraphicUsed by:546
Symbol 546 ButtonUses:539 540 541 542 543 544 545Used by:565
Symbol 547 TextUses:425Used by:552
Symbol 548 GraphicUsed by:552
Symbol 549 TextUses:425Used by:552
Symbol 550 GraphicUsed by:552
Symbol 551 TextUses:425Used by:552
Symbol 552 ButtonUses:547 548 549 550 551Used by:565
Symbol 553 TextUses:425Used by:557
Symbol 554 GraphicUsed by:557
Symbol 555 TextUses:425Used by:557
Symbol 556 GraphicUsed by:557
Symbol 557 ButtonUses:553 554 555 556 526 525Used by:565
Symbol 558 TextUses:425Used by:564
Symbol 559 GraphicUsed by:564
Symbol 560 TextUses:425Used by:564
Symbol 561 GraphicUsed by:564
Symbol 562 TextUses:425Used by:564
Symbol 563 TextUses:425Used by:564
Symbol 564 ButtonUses:558 559 560 561 562 563 337Used by:565
Symbol 565 MovieClipUses:510 538 546 552 557 564Used by:566
Symbol 566 MovieClip [bar]Uses:367 369 374 378 382 386 390 391 392 393 394 398 400 401 405 410 415 416 417 418 419 420 421 428 433 438 442 446 447 450 451 452 480 484 487 488 491 492 493 494 495 366 496 497 498 499 500 501 502 503 504 505 506 507 508 509 531 565
Symbol 567 GraphicUsed by:568
Symbol 568 MovieClip [weaponsilo]Uses:567 188 64 194 196 269 184 199 200 201 185Used by:Timeline
Symbol 569 GraphicUsed by:572
Symbol 570 MovieClipUses:63Used by:572 582 586 590 592 594 596 602 617 1136 1138 1140 1162
Symbol 571 ButtonUses:181 182Used by:572 582 590 594 596 602 617 1138 1140 1158
Symbol 572 MovieClip [enemyweaponsilo]Uses:569 188 570 194 196 571 184 199 200 201 185Used by:Timeline
Symbol 573 GraphicUses:21Used by:574
Symbol 574 MovieClipUses:573 57 209 184 185Used by:575
Symbol 575 MovieClip [enemylasertank]Uses:574 188 262 194 196Used by:Timeline
Symbol 576 GraphicUsed by:579
Symbol 577 GraphicUsed by:579
Symbol 578 GraphicUsed by:579
Symbol 579 MovieClipUses:576 57 183 577 578 184 199 200 201 185Used by:580
Symbol 580 MovieClip [enemyoiltruck]Uses:579 188 194 196Used by:Timeline
Symbol 581 GraphicUsed by:582
Symbol 582 MovieClip [enemyturret]Uses:581 286 570 188 194 196 571 184 199 200 201 185Used by:Timeline
Symbol 583 TextUses:78Used by:584
Symbol 584 MovieClip [mission3]Uses:140 583 141 149Used by:Timeline
Symbol 585 GraphicUsed by:586
Symbol 586 MovieClip [enemywarfactory]Uses:585 194 196 188 570 313 184 199 200 201 185Used by:Timeline
Symbol 587 GraphicUsed by:590
Symbol 588 GraphicUsed by:589
Symbol 589 MovieClipUses:588Used by:590 623
Symbol 590 MovieClip [enemyrefinery]Uses:587 188 570 589 571 194 196 184 199 200 201 185Used by:Timeline
Symbol 591 GraphicUsed by:592
Symbol 592 MovieClip [enemycomcentre]Uses:591 188 570 313 194 196 184 199 200 201 185Used by:Timeline
Symbol 593 GraphicUsed by:594
Symbol 594 MovieClip [enemyservicedepot]Uses:593 188 570 571 194 196 184 199 200 201 185Used by:Timeline
Symbol 595 GraphicUsed by:596
Symbol 596 MovieClip [enemytechcentre]Uses:595 188 570 571 194 196 184 199 200 201 185Used by:Timeline
Symbol 597 GraphicUsed by:598
Symbol 598 MovieClip [servicedepot]Uses:597 188 64 269 194 196 184 199 200 201 185Used by:Timeline
Symbol 599 GraphicUsed by:600
Symbol 600 MovieClip [techcentre]Uses:599 188 64 269 194 196 184 199 200 201 185Used by:Timeline
Symbol 601 GraphicUsed by:602
Symbol 602 MovieClip [enemylaser]Uses:601 268 188 570 571 194 196 184 199 200 201 185Used by:Timeline
Symbol 603 GraphicUsed by:609
Symbol 604 GraphicUsed by:609
Symbol 605 GraphicUsed by:609
Symbol 606 GraphicUsed by:609
Symbol 607 GraphicUsed by:609 844
Symbol 608 GraphicUsed by:609 844
Symbol 609 MovieClip [enemymine]Uses:603 188 64 194 196 604 605 184 273 199 200 274 201 606 185 607 608Used by:Timeline
Symbol 610 GraphicUsed by:617
Symbol 611 GraphicUsed by:616
Symbol 612 GraphicUsed by:613
Symbol 613 MovieClipUses:612Used by:616
Symbol 614 GraphicUsed by:616
Symbol 615 GraphicUsed by:616
Symbol 616 MovieClipUses:611 613 190 191 614 615Used by:617 619
Symbol 617 MovieClip [enemymultiple]Uses:610 616 570 188 571 194 196 184 199 200 201 185Used by:Timeline
Symbol 618 GraphicUsed by:619
Symbol 619 MovieClip [patriotmiss]Uses:618 616 188 64 269 194 196 184 199 200 201 185Used by:Timeline
Symbol 620 GraphicUsed by:621
Symbol 621 MovieClip [warfactory]Uses:620 269 64 188 194 196 184 199 200 201 185Used by:Timeline
Symbol 622 GraphicUsed by:623
Symbol 623 MovieClip [refinery]Uses:622 589 269 188 64 194 196 184 199 200 201 185Used by:Timeline
Symbol 624 GraphicUsed by:625
Symbol 625 MovieClip [comcentre]Uses:624 269 188 64 194 196 184 199 200 201 185Used by:Timeline
Symbol 626 GraphicUsed by:630
Symbol 627 TextUses:310Used by:630
Symbol 628 EditableTextUses:310Used by:630
Symbol 629 GraphicUsed by:630
Symbol 630 MovieClip [enemyconstruction2]Uses:626 188 627 628 313 194 196 629 184 199 200 201 185Used by:Timeline
Symbol 631 GraphicUsed by:632
Symbol 632 MovieClip [dot]Uses:631 340Used by:Timeline
Symbol 633 MovieClip [light]Uses:186 188 193 194 196Used by:Timeline
Symbol 634 MovieClip [heavy]Uses:202 188 205 194 196Used by:Timeline
Symbol 635 MovieClip [artillery]Uses:215 188 225 194 196Used by:Timeline
Symbol 636 GraphicUses:21Used by:637
Symbol 637 MovieClipUses:636 57 183 184 199 200 201 185Used by:638 646
Symbol 638 MovieClip [dozer]Uses:637 188 194 196Used by:Timeline
Symbol 639 MovieClip [rocket]Uses:229 188 238 194 196Used by:Timeline
Symbol 640 MovieClip [humvee]Uses:241 188 247 194 196Used by:Timeline
Symbol 641 MovieClip [enemyheavy]Uses:202 188 205 194 196Used by:Timeline
Symbol 642 MovieClip [enemyrocket]Uses:229 188 238 194 196Used by:Timeline
Symbol 643 MovieClip [enemyhumvee]Uses:188 241 247 194 196Used by:Timeline
Symbol 644 MovieClip [enemylight]Uses:186 188 193 194 196Used by:Timeline
Symbol 645 MovieClip [enemyartillery]Uses:215 188 225 194 196Used by:Timeline
Symbol 646 MovieClip [enemydozer]Uses:637 188 194 196Used by:Timeline
Symbol 647 GraphicUsed by:648
Symbol 648 MovieClip [box5]Uses:647Used by:Timeline
Symbol 649 GraphicUsed by:834
Symbol 650 GraphicUsed by:671
Symbol 651 GraphicUsed by:671
Symbol 652 EditableTextUses:78Used by:653
Symbol 653 MovieClipUses:652Used by:671 691 761 766 775
Symbol 654 EditableTextUses:78Used by:671
Symbol 655 TextUses:310Used by:671
Symbol 656 BitmapUsed by:657 673 690
Symbol 657 GraphicUses:656Used by:671
Symbol 658 GraphicUsed by:671
Symbol 659 GraphicUsed by:660 670 740 749 751 752 760 764 765 767 770 772 773 776
Symbol 660 ButtonUses:659 30Used by:671
Symbol 661 GraphicUsed by:671
Symbol 662 GraphicUsed by:671
Symbol 663 GraphicUsed by:671
Symbol 664 GraphicUsed by:671
Symbol 665 GraphicUsed by:671
Symbol 666 GraphicUsed by:671
Symbol 667 GraphicUsed by:671
Symbol 668 GraphicUsed by:671
Symbol 669 TextUses:310Used by:671
Symbol 670 ButtonUses:659 30Used by:671
Symbol 671 MovieClipUses:650 651 653 654 655 657 658 660 661 662 663 664 665 666 667 668 669 670Used by:834
Symbol 672 GraphicUsed by:691
Symbol 673 GraphicUses:656Used by:691
Symbol 674 EditableTextUses:78Used by:691
Symbol 675 TextUses:310Used by:689 691
Symbol 676 GraphicUsed by:691
Symbol 677 GraphicUsed by:691
Symbol 678 GraphicUsed by:691
Symbol 679 GraphicUsed by:691
Symbol 680 GraphicUsed by:691
Symbol 681 GraphicUsed by:691
Symbol 682 GraphicUsed by:691
Symbol 683 GraphicUsed by:691
Symbol 684 GraphicUsed by:691
Symbol 685 GraphicUsed by:689
Symbol 686 TextUses:78Used by:689
Symbol 687 TextUses:78Used by:689
Symbol 688 TextUses:78Used by:689
Symbol 689 MovieClipUses:685 686 675 687 688Used by:691
Symbol 690 GraphicUses:656Used by:691
Symbol 691 MovieClipUses:672 673 674 675 653 676 677 678 679 680 681 682 683 684 689 690Used by:834
Symbol 692 GraphicUsed by:834
Symbol 693 GraphicUses:21Used by:712
Symbol 694 ButtonUses:29 30Used by:712
Symbol 695 GraphicUses:21Used by:712
Symbol 696 GraphicUsed by:712
Symbol 697 GraphicUses:21Used by:712
Symbol 698 GraphicUsed by:712
Symbol 699 GraphicUses:21Used by:712
Symbol 700 GraphicUsed by:712
Symbol 701 GraphicUsed by:712
Symbol 702 GraphicUsed by:712
Symbol 703 GraphicUsed by:712
Symbol 704 GraphicUsed by:712
Symbol 705 GraphicUsed by:712
Symbol 706 GraphicUsed by:712
Symbol 707 GraphicUses:21Used by:712
Symbol 708 GraphicUsed by:712
Symbol 709 GraphicUsed by:712
Symbol 710 GraphicUsed by:712
Symbol 711 GraphicUsed by:712
Symbol 712 MovieClipUses:17 20 693 24 26 28 694 32 34 36 38 695 41 43 45 47 696 50 52 697 54 57 59 698 699 700 64 65 701 702 703 704 70 705 706 73 707 708 709 710 711Used by:714
Symbol 713 EditableTextUses:78Used by:714
Symbol 714 MovieClipUses:16 712 77 713 96 24 26 28 34 36 38 50 52 59 43 41 45 47Used by:834
Symbol 715 GraphicUsed by:718 722 726 782 785 789 793 797 1208 1209 1210 1212
Symbol 716 GraphicUsed by:718
Symbol 717 TextUses:78Used by:718
Symbol 718 ButtonUses:715 716 717Used by:834
Symbol 719 GraphicUsed by:722 1210
Symbol 720 GraphicUsed by:722 1210
Symbol 721 GraphicUsed by:722 1210
Symbol 722 ButtonUses:715 719 720 721Used by:834
Symbol 723 GraphicUsed by:726 1212
Symbol 724 GraphicUsed by:726
Symbol 725 GraphicUsed by:726
Symbol 726 ButtonUses:715 723 724 725Used by:834
Symbol 727 EditableTextUses:78Used by:834
Symbol 728 GraphicUses:21Used by:834
Symbol 729 TextUses:78Used by:834
Symbol 730 FontUsed by:731
Symbol 731 TextUses:730Used by:834
Symbol 732 EditableTextUses:78Used by:834
Symbol 733 TextUses:78Used by:834
Symbol 734 TextUses:78Used by:834
Symbol 735 GraphicUsed by:739
Symbol 736 GraphicUsed by:738
Symbol 737 GraphicUsed by:738
Symbol 738 ButtonUses:736 737 14Used by:739
Symbol 739 MovieClipUses:735 738Used by:834
Symbol 740 ButtonUses:659 30Used by:741
Symbol 741 MovieClipUses:105 740Used by:834
Symbol 742 EditableTextUses:310Used by:834
Symbol 743 TextUses:310Used by:834
Symbol 744 EditableTextUses:78Used by:834
Symbol 745 ButtonUses:100 101 102Used by:834
Symbol 746 GraphicUses:21Used by:778
Symbol 747 EditableTextUses:78Used by:778
Symbol 748 MovieClipUses:105Used by:761 766 769 771 775 777
Symbol 749 ButtonUses:659 30Used by:761
Symbol 750 GraphicUsed by:761 766 775
Symbol 751 ButtonUses:659 30Used by:761 766 775
Symbol 752 ButtonUses:659 30Used by:761
Symbol 753 GraphicUsed by:761 766 775
Symbol 754 GraphicUsed by:761 766 775
Symbol 755 GraphicUsed by:761 766 775
Symbol 756 GraphicUsed by:761 766 775
Symbol 757 GraphicUsed by:761 766 775
Symbol 758 GraphicUsed by:761 766 775
Symbol 759 GraphicUsed by:761 766 775
Symbol 760 ButtonUses:659 30Used by:761 775
Symbol 761 MovieClipUses:748 749 750 751 653 752 753 754 755 756 757 758 759 760Used by:778
Symbol 762 EditableTextUses:78Used by:778
Symbol 763 ButtonUses:100 101 102Used by:778
Symbol 764 ButtonUses:659 30Used by:766
Symbol 765 ButtonUses:659 30Used by:766
Symbol 766 MovieClipUses:748 764 750 751 653 765 753 754 755 756 757 758 759Used by:778
Symbol 767 ButtonUses:659 30Used by:769
Symbol 768 TextUses:310Used by:769 775 777
Symbol 769 MovieClipUses:748 767 768Used by:778
Symbol 770 ButtonUses:659 30Used by:771
Symbol 771 MovieClipUses:748 770Used by:778
Symbol 772 ButtonUses:659 30Used by:775
Symbol 773 ButtonUses:659 30Used by:775
Symbol 774 GraphicUsed by:775
Symbol 775 MovieClipUses:748 772 750 751 653 773 753 754 755 756 757 758 759 760 774 768Used by:778
Symbol 776 ButtonUses:659 30Used by:777
Symbol 777 MovieClipUses:748 776 768Used by:778
Symbol 778 MovieClipUses:746 747 761 762 763 766 196 769 771 775 777Used by:834
Symbol 779 GraphicUsed by:782
Symbol 780 GraphicUsed by:782
Symbol 781 GraphicUsed by:782
Symbol 782 ButtonUses:715 779 780 781Used by:834
Symbol 783 GraphicUsed by:785
Symbol 784 TextUses:78Used by:785
Symbol 785 ButtonUses:715 783 784Used by:834
Symbol 786 GraphicUsed by:789 1209
Symbol 787 GraphicUsed by:789 1209
Symbol 788 GraphicUsed by:789 1209
Symbol 789 ButtonUses:715 786 787 788Used by:834
Symbol 790 GraphicUses:21Used by:793 1208
Symbol 791 GraphicUses:21Used by:793 1208
Symbol 792 GraphicUses:21Used by:793 1208
Symbol 793 ButtonUses:715 790 791 792Used by:834
Symbol 794 GraphicUsed by:797
Symbol 795 GraphicUsed by:797
Symbol 796 GraphicUsed by:797
Symbol 797 ButtonUses:715 794 795 796Used by:834
Symbol 798 GraphicUses:455 454 453 456Used by:819
Symbol 799 GraphicUses:455 453 456 454Used by:819
Symbol 800 GraphicUses:453Used by:804 1088
Symbol 801 GraphicUses:453 454 456 455Used by:804
Symbol 802 GraphicUsed by:803
Symbol 803 MovieClipUses:802Used by:804 1018 1070 1075 1080 1086 1088 1132 1149 1156 1164
Symbol 804 MovieClipUses:800 462 801 803Used by:819  Timeline
Symbol 805 GraphicUses:453Used by:819
Symbol 806 GraphicUses:455 453 454 456Used by:819
Symbol 807 GraphicUses:453Used by:819
Symbol 808 GraphicUses:454 456 455Used by:809
Symbol 809 MovieClipUses:808Used by:819 1132
Symbol 810 GraphicUses:453 454 455 456 465Used by:811
Symbol 811 MovieClipUses:810Used by:819 1132
Symbol 812 GraphicUses:453 456 455 454Used by:813
Symbol 813 MovieClipUses:812Used by:819 1132
Symbol 814 GraphicUses:453Used by:819
Symbol 815 GraphicUses:455 465Used by:819
Symbol 816 GraphicUses:453 465 455 456 454Used by:819
Symbol 817 GraphicUses:476 453 455 454Used by:818
Symbol 818 MovieClipUses:817Used by:819
Symbol 819 MovieClipUses:798 799 804 805 462 806 807 809 811 813 814 467 469 471 815 474 816 478 818Used by:834
Symbol 820 GraphicUsed by:823
Symbol 821 EditableTextUses:78Used by:823
Symbol 822 GraphicUsed by:823
Symbol 823 MovieClipUses:820 821 822Used by:834
Symbol 824 TextUses:78Used by:833
Symbol 825 TextUses:78Used by:828
Symbol 826 TextUses:78Used by:828
Symbol 827 GraphicUsed by:828
Symbol 828 ButtonUses:370 825 826 827Used by:833
Symbol 829 TextUses:78Used by:832
Symbol 830 TextUses:78Used by:832
Symbol 831 GraphicUsed by:832
Symbol 832 ButtonUses:370 829 830 831Used by:833
Symbol 833 MovieClipUses:369 824 828 832Used by:834
Symbol 834 MovieClip [sidebar]Uses:649 671 691 692 714 718 722 726 727 728 729 731 732 733 734 739 741 742 743 744 745 778 782 785 789 793 797 819 823 118 833Used by:Timeline
Symbol 835 GraphicUsed by:837
Symbol 836 GraphicUsed by:837
Symbol 837 MovieClip [patriot]Uses:835 361 836Used by:Timeline
Symbol 838 GraphicUsed by:839
Symbol 839 MovieClipUses:838Used by:843 857
Symbol 840 GraphicUsed by:843
Symbol 841 GraphicUsed by:843
Symbol 842 GraphicUsed by:843
Symbol 843 MovieClip [shell2]Uses:839 840 841 842Used by:Timeline
Symbol 844 MovieClip [emp]Uses:273 274 607 608Used by:Timeline
Symbol 845 GraphicUsed by:849 853
Symbol 846 GraphicUsed by:849
Symbol 847 GraphicUsed by:849
Symbol 848 GraphicUsed by:849
Symbol 849 MovieClip [bomb2]Uses:845 846 847 848Used by:Timeline
Symbol 850 GraphicUsed by:853
Symbol 851 GraphicUsed by:853
Symbol 852 GraphicUsed by:853
Symbol 853 MovieClip [bomb]Uses:845 850 851 852Used by:Timeline
Symbol 854 GraphicUsed by:857
Symbol 855 GraphicUsed by:857
Symbol 856 GraphicUsed by:857
Symbol 857 MovieClip [bullet]Uses:839 854 855 856Used by:Timeline
Symbol 858 GraphicUsed by:861
Symbol 859 GraphicUsed by:861
Symbol 860 GraphicUsed by:861
Symbol 861 MovieClip [missile]Uses:858 361 859 860Used by:Timeline
Symbol 862 GraphicUsed by:865
Symbol 863 GraphicUsed by:864
Symbol 864 MovieClipUses:863Used by:865 873 876
Symbol 865 MovieClip [flag2]Uses:862 864Used by:Timeline
Symbol 866 GraphicUsed by:870
Symbol 867 GraphicUsed by:868
Symbol 868 MovieClipUses:867Used by:870
Symbol 869 GraphicUsed by:870
Symbol 870 MovieClip [shell]Uses:866 868 869Used by:Timeline
Symbol 871 GraphicUsed by:873
Symbol 872 GraphicUsed by:873
Symbol 873 MovieClip [flag]Uses:871 864 872Used by:Timeline
Symbol 874 GraphicUsed by:876
Symbol 875 GraphicUsed by:876
Symbol 876 MovieClip [flag copy]Uses:874 864 875Used by:Timeline
Symbol 881 GraphicUsed by:882
Symbol 882 MovieClip [BoundingBox]Uses:881Used by:901 905 909
Symbol 883 GraphicUsed by:884
Symbol 884 MovieClip [BrdrShdw]Uses:883Used by:887 892 893
Symbol 885 GraphicUsed by:886
Symbol 886 MovieClip [BrdrFace]Uses:885Used by:887 892 893
Symbol 887 MovieClip [SimpleButtonDown]Uses:884 886Used by:905
Symbol 888 GraphicUsed by:889
Symbol 889 MovieClip [BrdrBlk]Uses:888Used by:892 893
Symbol 890 GraphicUsed by:891
Symbol 891 MovieClip [BrdrHilght]Uses:890Used by:892 893
Symbol 892 MovieClip [SimpleButtonIn]Uses:889 891 884 886Used by:905
Symbol 893 MovieClip [SimpleButtonUp]Uses:889 886 884 891Used by:905
Symbol 894 MovieClip [Defaults]Used by:896
Symbol 895 MovieClip [UIObjectExtensions]Used by:896
Symbol 896 MovieClip [UIObject]Uses:894 895Used by:902 904 906
Symbol 897 GraphicUsed by:899
Symbol 898 GraphicUsed by:899
Symbol 899 ButtonUses:897 898Used by:902
Symbol 900 MovieClipUsed by:902
Symbol 901 MovieClip [FocusRect]Uses:882Used by:902
Symbol 902 MovieClip [FocusManager]Uses:899 900 901 896Used by:904
Symbol 903 MovieClip [UIComponentExtensions]Used by:904
Symbol 904 MovieClip [UIComponent]Uses:896 902 903Used by:905
Symbol 905 MovieClip [SimpleButton]Uses:882 887 892 893 904Used by:909
Symbol 906 MovieClip [Border]Uses:896Used by:907 909
Symbol 907 MovieClip [RectBorder]Uses:906Used by:909
Symbol 908 MovieClip [ButtonSkin]Used by:909
Symbol 909 MovieClip [Button]Uses:882 905 906 907 908
Symbol 930 GraphicUsed by:Timeline
Symbol 931 GraphicUsed by:1004
Symbol 932 GraphicUsed by:1004
Symbol 933 GraphicUsed by:934
Symbol 934 MovieClipUses:933Used by:1004
Symbol 935 GraphicUsed by:937
Symbol 936 GraphicUsed by:937
Symbol 937 MovieClipUses:935 936Used by:1004
Symbol 938 GraphicUsed by:1004
Symbol 939 GraphicUsed by:1004
Symbol 940 GraphicUsed by:1004
Symbol 941 GraphicUsed by:948 976
Symbol 942 GraphicUsed by:948 976
Symbol 943 GraphicUsed by:948 976
Symbol 944 GraphicUsed by:948 976
Symbol 945 GraphicUsed by:948 976
Symbol 946 GraphicUsed by:948 976
Symbol 947 GraphicUsed by:948 976
Symbol 948 MovieClipUses:941 942 943 944 945 946 947Used by:1004
Symbol 949 GraphicUsed by:1004
Symbol 950 GraphicUsed by:951
Symbol 951 MovieClipUses:950Used by:1004
Symbol 952 GraphicUsed by:953
Symbol 953 MovieClipUses:952Used by:1004
Symbol 954 GraphicUsed by:958
Symbol 955 GraphicUsed by:958
Symbol 956 GraphicUsed by:957
Symbol 957 MovieClipUses:956Used by:958 961
Symbol 958 MovieClipUses:954 955 957Used by:972
Symbol 959 GraphicUsed by:961
Symbol 960 GraphicUsed by:961
Symbol 961 MovieClipUses:959 960 957Used by:972
Symbol 962 GraphicUsed by:965
Symbol 963 GraphicUsed by:965 968
Symbol 964 GraphicUsed by:965
Symbol 965 MovieClipUses:962 963 964Used by:969
Symbol 966 GraphicUsed by:968
Symbol 967 GraphicUsed by:968
Symbol 968 MovieClipUses:966 963 967Used by:969
Symbol 969 MovieClipUses:965 968Used by:972
Symbol 970 GraphicUsed by:971
Symbol 971 MovieClipUses:970Used by:972
Symbol 972 MovieClipUses:958 961 969 971Used by:1004
Symbol 973 GraphicUsed by:1004
Symbol 974 ButtonUses:105Used by:1004
Symbol 975 GraphicUsed by:976
Symbol 976 MovieClipUses:941 942 943 944 945 946 947 975Used by:1004
Symbol 977 GraphicUsed by:1004
Symbol 978 GraphicUsed by:1004
Symbol 979 GraphicUsed by:1004
Symbol 980 GraphicUsed by:1004
Symbol 981 GraphicUsed by:1004
Symbol 982 GraphicUsed by:1004
Symbol 983 GraphicUsed by:1004
Symbol 984 GraphicUsed by:1004
Symbol 985 GraphicUsed by:1004
Symbol 986 GraphicUsed by:1004
Symbol 987 GraphicUsed by:1004
Symbol 988 GraphicUsed by:1004
Symbol 989 ShapeTweeningUsed by:1004
Symbol 990 GraphicUsed by:1004
Symbol 991 ShapeTweeningUsed by:1004
Symbol 992 ShapeTweeningUsed by:1004
Symbol 993 GraphicUsed by:1004
Symbol 994 GraphicUsed by:1002 1003
Symbol 995 GraphicUsed by:1002 1003
Symbol 996 GraphicUsed by:1002 1003
Symbol 997 GraphicUsed by:1002 1003
Symbol 998 GraphicUsed by:1002 1003
Symbol 999 GraphicUsed by:1001
Symbol 1000 GraphicUsed by:1001
Symbol 1001 MovieClipUses:999 1000Used by:1002 1003
Symbol 1002 ButtonUses:994 995 996 997 998 1001Used by:1004
Symbol 1003 ButtonUses:994 995 996 997 998 1001Used by:1004
Symbol 1004 MovieClipUses:931 932 934 937 938 939 940 948 949 951 953 972 973 974 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 1002 1003Used by:Timeline
Symbol 877 MovieClip [__Packages.mx.core.UIObject]
Symbol 878 MovieClip [__Packages.mx.core.UIComponent]
Symbol 879 MovieClip [__Packages.mx.controls.SimpleButton]
Symbol 880 MovieClip [__Packages.mx.controls.Button]
Symbol 910 MovieClip [__Packages.mx.skins.SkinElement]
Symbol 911 MovieClip [__Packages.mx.styles.CSSTextStyles]
Symbol 912 MovieClip [__Packages.mx.styles.StyleManager]
Symbol 913 MovieClip [__Packages.mx.styles.CSSStyleDeclaration]
Symbol 914 MovieClip [__Packages.mx.events.EventDispatcher]
Symbol 915 MovieClip [__Packages.mx.events.UIEventDispatcher]
Symbol 916 MovieClip [__Packages.mx.skins.ColoredSkinElement]
Symbol 917 MovieClip [__Packages.mx.core.ext.UIObjectExtensions]
Symbol 918 MovieClip [__Packages.mx.skins.halo.Defaults]
Symbol 919 MovieClip [__Packages.mx.managers.DepthManager]
Symbol 920 MovieClip [__Packages.mx.managers.SystemManager]
Symbol 921 MovieClip [__Packages.mx.managers.FocusManager]
Symbol 922 MovieClip [__Packages.mx.skins.halo.FocusRect]
Symbol 923 MovieClip [__Packages.mx.managers.OverlappedWindows]
Symbol 924 MovieClip [__Packages.mx.styles.CSSSetStyle]
Symbol 925 MovieClip [__Packages.mx.core.ext.UIComponentExtensions]
Symbol 926 MovieClip [__Packages.mx.skins.Border]
Symbol 927 MovieClip [__Packages.mx.skins.RectBorder]
Symbol 928 MovieClip [__Packages.mx.skins.halo.RectBorder]
Symbol 929 MovieClip [__Packages.mx.skins.halo.ButtonSkin]
Symbol 1005 GraphicUses:455Used by:1006
Symbol 1006 MovieClipUses:1005Used by:Timeline
Symbol 1007 GraphicUsed by:1009
Symbol 1008 GraphicUsed by:1009
Symbol 1009 MovieClipUses:1007 1008Used by:Timeline
Symbol 1010 GraphicUsed by:1012
Symbol 1011 GraphicUsed by:1012
Symbol 1012 MovieClipUses:1010 1011Used by:Timeline
Symbol 1013 GraphicUsed by:1014
Symbol 1014 MovieClipUses:1013Used by:Timeline
Symbol 1015 GraphicUses:455 454 453Used by:1018
Symbol 1016 GraphicUses:455 453 454 456Used by:1017
Symbol 1017 MovieClipUses:1016Used by:1018
Symbol 1018 MovieClipUses:1015 1017 803Used by:Timeline
Symbol 1019 EditableTextUses:78Used by:Timeline
Symbol 1020 EditableTextUses:78Used by:Timeline
Symbol 1021 GraphicUsed by:1022
Symbol 1022 MovieClipUses:1021Used by:Timeline
Symbol 1023 GraphicUsed by:1024
Symbol 1024 MovieClipUses:1023Used by:Timeline
Symbol 1025 GraphicUsed by:Timeline
Symbol 1026 GraphicUsed by:1029
Symbol 1027 GraphicUsed by:1028
Symbol 1028 MovieClipUses:1027Used by:1029
Symbol 1029 MovieClipUses:1026 1028Used by:Timeline
Symbol 1030 GraphicUsed by:1036
Symbol 1031 GraphicUsed by:1036
Symbol 1032 GraphicUsed by:1036
Symbol 1033 GraphicUsed by:1036
Symbol 1034 GraphicUsed by:1036
Symbol 1035 GraphicUsed by:1036
Symbol 1036 MovieClipUses:1030 1031 1032 1033 1034 1035Used by:Timeline
Symbol 1037 ButtonUses:100 101 102Used by:1038
Symbol 1038 MovieClipUses:1037Used by:Timeline
Symbol 1039 GraphicUsed by:1040
Symbol 1040 MovieClipUses:1039Used by:Timeline
Symbol 1041 GraphicUsed by:1042
Symbol 1042 MovieClipUses:1041Used by:Timeline
Symbol 1043 GraphicUsed by:1044
Symbol 1044 MovieClipUses:1043Used by:Timeline
Symbol 1045 GraphicUsed by:1046
Symbol 1046 MovieClipUses:1045Used by:Timeline
Symbol 1047 GraphicUsed by:Timeline
Symbol 1048 GraphicUsed by:Timeline
Symbol 1049 FontUsed by:1050 1051 1062 1100 1101 1102 1103
Symbol 1050 TextUses:1049Used by:Timeline
Symbol 1051 TextUses:1049Used by:Timeline
Symbol 1052 FontUsed by:1053 1054 1055 1056 1057 1058 1059 1060 1063 1064 1065 1066 1166 1167 1168 1169
Symbol 1053 TextUses:1052Used by:Timeline
Symbol 1054 TextUses:1052Used by:Timeline
Symbol 1055 TextUses:1052Used by:Timeline
Symbol 1056 EditableTextUses:1052Used by:Timeline
Symbol 1057 EditableTextUses:1052Used by:Timeline
Symbol 1058 EditableTextUses:1052Used by:Timeline
Symbol 1059 TextUses:1052Used by:Timeline
Symbol 1060 EditableTextUses:1052Used by:Timeline
Symbol 1061 GraphicUsed by:Timeline
Symbol 1062 TextUses:1049Used by:Timeline
Symbol 1063 EditableTextUses:1052Used by:Timeline
Symbol 1064 EditableTextUses:1052Used by:Timeline
Symbol 1065 EditableTextUses:1052Used by:Timeline
Symbol 1066 EditableTextUses:1052Used by:Timeline
Symbol 1067 GraphicUses:453Used by:1070 1132
Symbol 1068 GraphicUsed by:1069
Symbol 1069 MovieClipUses:1068Used by:1070
Symbol 1070 MovieClipUses:1067 462 803 467 469 471 1069Used by:Timeline
Symbol 1071 GraphicUsed by:Timeline
Symbol 1072 GraphicUsed by:Timeline
Symbol 1073 GraphicUses:453Used by:1075
Symbol 1074 GraphicUses:456 455 454Used by:1075
Symbol 1075 MovieClipUses:1073 462 803 1074Used by:Timeline
Symbol 1076 GraphicUsed by:Timeline
Symbol 1077 GraphicUses:453 456 455Used by:1080
Symbol 1078 GraphicUses:454 455 456 453Used by:1079
Symbol 1079 MovieClipUses:1078Used by:1080
Symbol 1080 MovieClipUses:1077 1079 803Used by:Timeline
Symbol 1081 GraphicUsed by:Timeline
Symbol 1082 GraphicUses:453Used by:1086 1164
Symbol 1083 GraphicUses:453 476 456 455Used by:1086
Symbol 1084 GraphicUses:465Used by:1085
Symbol 1085 MovieClipUses:1084Used by:1086
Symbol 1086 MovieClipUses:1082 462 803 1083 1085Used by:Timeline
Symbol 1087 GraphicUses:455 453 454 456Used by:1088
Symbol 1088 MovieClipUses:800 462 1087 803Used by:Timeline
Symbol 1089 GraphicUsed by:Timeline
Symbol 1090 EditableTextUses:78Used by:Timeline
Symbol 1091 GraphicUsed by:Timeline
Symbol 1092 EditableTextUses:78Used by:Timeline
Symbol 1093 GraphicUsed by:Timeline
Symbol 1094 GraphicUsed by:1095
Symbol 1095 MovieClipUses:1094 196Used by:Timeline
Symbol 1096 GraphicUsed by:1099
Symbol 1097 FontUsed by:1098
Symbol 1098 EditableTextUses:1097Used by:1099
Symbol 1099 MovieClipUses:1096 1098Used by:Timeline
Symbol 1100 TextUses:1049Used by:1213  Timeline
Symbol 1101 TextUses:1049Used by:Timeline
Symbol 1102 TextUses:1049Used by:Timeline
Symbol 1103 TextUses:1049Used by:Timeline
Symbol 1104 GraphicUsed by:Timeline
Symbol 1105 GraphicUsed by:Timeline
Symbol 1106 GraphicUses:455 476 453 454 465 456Used by:1109
Symbol 1107 GraphicUsed by:1108
Symbol 1108 MovieClipUses:1107Used by:1109
Symbol 1109 MovieClipUses:1106 1108Used by:Timeline
Symbol 1110 GraphicUses:21Used by:Timeline
Symbol 1111 GraphicUsed by:1113 1116 1118 1119
Symbol 1112 GraphicUsed by:1113 1116 1118 1119
Symbol 1113 ButtonUses:1111 1112Used by:1117
Symbol 1114 GraphicUsed by:1115
Symbol 1115 MovieClipUses:1114Used by:1117 1120
Symbol 1116 ButtonUses:1111 1112Used by:1117
Symbol 1117 MovieClipUses:1113 1115 1116Used by:Timeline
Symbol 1118 ButtonUses:1111 1112Used by:1120
Symbol 1119 ButtonUses:1111 1112Used by:1120
Symbol 1120 MovieClipUses:1118 1115 1119Used by:Timeline
Symbol 1121 FontUsed by:1122 1127
Symbol 1122 TextUses:1121Used by:1128
Symbol 1123 GraphicUsed by:1128
Symbol 1124 GraphicUsed by:1128
Symbol 1125 FontUsed by:1126
Symbol 1126 TextUses:1125Used by:1128
Symbol 1127 TextUses:1121Used by:1128
Symbol 1128 MovieClipUses:140 1122 1123 1124 1126 1127Used by:Timeline
Symbol 1129 GraphicUsed by:1132
Symbol 1130 GraphicUsed by:1131
Symbol 1131 MovieClipUses:1130Used by:1132
Symbol 1132 MovieClipUses:1067 462 1129 809 803 811 813 1131Used by:Timeline
Symbol 1133 GraphicUsed by:1134
Symbol 1134 MovieClipUses:1133 269 188 64 194 196 184 13 199 200 201 185Used by:Timeline
Symbol 1135 GraphicUsed by:1136
Symbol 1136 MovieClipUses:1135 194 196 188 570 313 184 199 200 201 185Used by:Timeline
Symbol 1137 GraphicUsed by:1138
Symbol 1138 MovieClipUses:1137 188 570 571 194 196 184 199 200 201 185Used by:Timeline
Symbol 1139 GraphicUsed by:1140
Symbol 1140 MovieClipUses:1139 188 570 571 194 196 184 199 200 201 185Used by:Timeline
Symbol 1141 EditableTextUses:78Used by:Timeline
Symbol 1142 EditableTextUses:78Used by:Timeline
Symbol 1143 TextUses:78Used by:1144
Symbol 1144 MovieClipUses:140 1143 141 149Used by:Timeline
Symbol 1145 GraphicUses:453Used by:1149
Symbol 1146 GraphicUses:455Used by:1149
Symbol 1147 GraphicUses:465Used by:1148
Symbol 1148 MovieClipUses:1147Used by:1149
Symbol 1149 MovieClipUses:1145 462 803 1146 1148Used by:Timeline
Symbol 1150 GraphicUsed by:1151
Symbol 1151 MovieClipUses:1150 188 313 194 196 184 199 200 201 185Used by:Timeline
Symbol 1152 GraphicUses:453Used by:1156
Symbol 1153 GraphicUses:456 465 454 455 453Used by:1156
Symbol 1154 GraphicUses:465Used by:1155
Symbol 1155 MovieClipUses:1154Used by:1156
Symbol 1156 MovieClipUses:1152 462 803 1153 1155Used by:Timeline
Symbol 1157 GraphicUsed by:1158
Symbol 1158 MovieClipUses:1157 188 571 194 196 184 199 200 201 185Used by:Timeline
Symbol 1159 GraphicUsed by:1162
Symbol 1160 TextUses:78Used by:1162
Symbol 1161 GraphicUsed by:1162
Symbol 1162 MovieClipUses:1159 1160 1161 188 570 313 194 196 184 199 200 201 185Used by:Timeline
Symbol 1163 GraphicUses:476 455 453 454Used by:1164
Symbol 1164 MovieClipUses:1082 462 803 1163Used by:Timeline
Symbol 1165 GraphicUsed by:Timeline
Symbol 1166 EditableTextUses:1052Used by:Timeline
Symbol 1167 EditableTextUses:1052Used by:Timeline
Symbol 1168 EditableTextUses:1052Used by:Timeline
Symbol 1169 EditableTextUses:1052Used by:Timeline
Symbol 1170 EditableTextUses:78Used by:Timeline
Symbol 1171 EditableTextUses:78Used by:Timeline
Symbol 1172 GraphicUsed by:Timeline
Symbol 1173 GraphicUsed by:1212
Symbol 1174 TextUses:78Used by:1212 1243 1282
Symbol 1175 TextUses:78Used by:1212
Symbol 1176 TextUses:78Used by:1212
Symbol 1177 TextUses:78Used by:1212
Symbol 1178 TextUses:78Used by:1212
Symbol 1179 TextUses:78Used by:1212
Symbol 1180 TextUses:78Used by:1212
Symbol 1181 TextUses:78Used by:1212
Symbol 1182 GraphicUsed by:1212
Symbol 1183 TextUses:78Used by:1212
Symbol 1184 TextUses:78Used by:1212
Symbol 1185 TextUses:78Used by:1212
Symbol 1186 TextUses:78Used by:1212
Symbol 1187 TextUses:78Used by:1212
Symbol 1188 GraphicUsed by:1212
Symbol 1189 TextUses:78Used by:1212
Symbol 1190 TextUses:78Used by:1212
Symbol 1191 TextUses:78Used by:1212
Symbol 1192 TextUses:78Used by:1212
Symbol 1193 GraphicUsed by:1212
Symbol 1194 TextUses:78Used by:1212
Symbol 1195 TextUses:78Used by:1212
Symbol 1196 TextUses:78Used by:1212
Symbol 1197 GraphicUsed by:1212 1243 1282
Symbol 1198 TextUses:78Used by:1212
Symbol 1199 GraphicUsed by:1212 1243 1282
Symbol 1200 TextUses:78Used by:1212
Symbol 1201 TextUses:78Used by:1212
Symbol 1202 GraphicUsed by:1212
Symbol 1203 TextUses:78Used by:1212
Symbol 1204 TextUses:78Used by:1212
Symbol 1205 TextUses:78Used by:1212
Symbol 1206 TextUses:78Used by:1212
Symbol 1207 TextUses:78Used by:1212
Symbol 1208 ButtonUses:715 790 791 792Used by:1212
Symbol 1209 ButtonUses:715 786 787 788Used by:1212
Symbol 1210 ButtonUses:715 719 720 721Used by:1212
Symbol 1211 TextUses:78Used by:1212
Symbol 1212 MovieClipUses:1173 1174 1175 141 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 715 723 1206 1207 1208 1209 1210 1211Used by:Timeline
Symbol 1213 MovieClipUses:1100Used by:Timeline
Symbol 1214 TextUses:78Used by:Timeline
Symbol 1215 GraphicUsed by:Timeline
Symbol 1216 TextUses:78Used by:1243
Symbol 1217 TextUses:78Used by:1243
Symbol 1218 TextUses:78Used by:1243
Symbol 1219 TextUses:78Used by:1243
Symbol 1220 TextUses:78Used by:1243
Symbol 1221 TextUses:78Used by:1243
Symbol 1222 TextUses:78Used by:1243
Symbol 1223 TextUses:78Used by:1243
Symbol 1224 TextUses:78Used by:1243
Symbol 1225 TextUses:78Used by:1243
Symbol 1226 TextUses:78Used by:1243
Symbol 1227 TextUses:78Used by:1243
Symbol 1228 TextUses:78Used by:1243
Symbol 1229 TextUses:78Used by:1243
Symbol 1230 TextUses:78Used by:1243
Symbol 1231 TextUses:78Used by:1243
Symbol 1232 TextUses:78Used by:1243
Symbol 1233 TextUses:78Used by:1243
Symbol 1234 TextUses:78Used by:1243
Symbol 1235 GraphicUsed by:1243
Symbol 1236 TextUses:78Used by:1243
Symbol 1237 GraphicUsed by:1243
Symbol 1238 TextUses:78Used by:1243
Symbol 1239 TextUses:78Used by:1243
Symbol 1240 TextUses:78Used by:1243
Symbol 1241 TextUses:78Used by:1243 1282
Symbol 1242 TextUses:78Used by:1243
Symbol 1243 MovieClipUses:1197 1199 1174 1216 141 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242Used by:Timeline
Symbol 1244 GraphicUsed by:Timeline
Symbol 1245 TextUses:78Used by:Timeline
Symbol 1246 GraphicUses:21Used by:Timeline
Symbol 1247 TextUses:78Used by:1282
Symbol 1248 TextUses:78Used by:1282
Symbol 1249 TextUses:78Used by:1282
Symbol 1250 TextUses:78Used by:1282
Symbol 1251 TextUses:78Used by:1282
Symbol 1252 TextUses:78Used by:1282
Symbol 1253 TextUses:78Used by:1282
Symbol 1254 GraphicUsed by:1282
Symbol 1255 TextUses:78Used by:1282
Symbol 1256 TextUses:78Used by:1282
Symbol 1257 TextUses:78Used by:1282
Symbol 1258 TextUses:78Used by:1282
Symbol 1259 TextUses:78Used by:1282
Symbol 1260 GraphicUsed by:1282
Symbol 1261 TextUses:78Used by:1282
Symbol 1262 TextUses:78Used by:1282
Symbol 1263 GraphicUsed by:1282
Symbol 1264 TextUses:78Used by:1282
Symbol 1265 TextUses:78Used by:1282
Symbol 1266 TextUses:78Used by:1282
Symbol 1267 TextUses:78Used by:1282
Symbol 1268 TextUses:78Used by:1282
Symbol 1269 TextUses:78Used by:1282
Symbol 1270 TextUses:78Used by:1282
Symbol 1271 GraphicUsed by:1282
Symbol 1272 TextUses:78Used by:1282
Symbol 1273 TextUses:78Used by:1282
Symbol 1274 TextUses:78Used by:1282
Symbol 1275 TextUses:78Used by:1282
Symbol 1276 TextUses:78Used by:1282
Symbol 1277 TextUses:78Used by:1282
Symbol 1278 GraphicUsed by:1282
Symbol 1279 TextUses:78Used by:1282
Symbol 1280 TextUses:78Used by:1282
Symbol 1281 TextUses:78Used by:1282
Symbol 1282 MovieClipUses:1197 1199 1174 1247 141 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1241 1281Used by:Timeline

Instance Names

"back"Frame 2Symbol 1006 MovieClip
"comcentre1"Frame 2Symbol 1009 MovieClip
"reinforcement1"Frame 2Symbol 876 MovieClip [flag copy]
"reinforcement2"Frame 2Symbol 876 MovieClip [flag copy]
"reinforcement3"Frame 2Symbol 876 MovieClip [flag copy]
"reinforcement4"Frame 2Symbol 876 MovieClip [flag copy]
"reinforcement5"Frame 2Symbol 876 MovieClip [flag copy]
"reinforcement6"Frame 2Symbol 876 MovieClip [flag copy]
"reinforcement7"Frame 2Symbol 876 MovieClip [flag copy]
"reinforcement8"Frame 2Symbol 876 MovieClip [flag copy]
"reinforcement9"Frame 2Symbol 876 MovieClip [flag copy]
"reinforcement10"Frame 2Symbol 876 MovieClip [flag copy]
"centre"Frame 2Symbol 876 MovieClip [flag copy]
"centre1"Frame 2Symbol 873 MovieClip [flag]
"centre2"Frame 2Symbol 873 MovieClip [flag]
"flagn"Frame 2Symbol 876 MovieClip [flag copy]
"box5"Frame 9Symbol 648 MovieClip [box5]
"back"Frame 9Symbol 1018 MovieClip
"back"Frame 10Symbol 1018 MovieClip
"oil1"Frame 10Symbol 1029 MovieClip
"oil4"Frame 10Symbol 1029 MovieClip
"oil5"Frame 10Symbol 1029 MovieClip
"oil2"Frame 10Symbol 1029 MovieClip
"oil3"Frame 10Symbol 1029 MovieClip
"oil6"Frame 10Symbol 1029 MovieClip
"rig6"Frame 10Symbol 1036 MovieClip
"servpt"Frame 10Symbol 876 MovieClip [flag copy]
"warpt"Frame 10Symbol 876 MovieClip [flag copy]
"refpt"Frame 10Symbol 876 MovieClip [flag copy]
"comcentrept"Frame 10Symbol 876 MovieClip [flag copy]
"waypoint4"Frame 10Symbol 876 MovieClip [flag copy]
"techpt"Frame 10Symbol 876 MovieClip [flag copy]
"turretpt2"Frame 10Symbol 876 MovieClip [flag copy]
"turretpt3"Frame 10Symbol 876 MovieClip [flag copy]
"turretpt1"Frame 10Symbol 876 MovieClip [flag copy]
"turretpt5"Frame 10Symbol 876 MovieClip [flag copy]
"turretpt4"Frame 10Symbol 876 MovieClip [flag copy]
"minept0"Frame 10Symbol 876 MovieClip [flag copy]
"minept1"Frame 10Symbol 876 MovieClip [flag copy]
"minept2"Frame 10Symbol 876 MovieClip [flag copy]
"waypoint100"Frame 10Symbol 876 MovieClip [flag copy]
"waypoint101"Frame 10Symbol 876 MovieClip [flag copy]
"waypoint102"Frame 10Symbol 876 MovieClip [flag copy]
"waypoint103"Frame 10Symbol 876 MovieClip [flag copy]
"waypoint104"Frame 10Symbol 876 MovieClip [flag copy]
"waypoint105"Frame 10Symbol 876 MovieClip [flag copy]
"silopt"Frame 10Symbol 876 MovieClip [flag copy]
"rig10"Frame 10Symbol 1036 MovieClip
"rig11"Frame 10Symbol 1036 MovieClip
"rig12"Frame 10Symbol 1036 MovieClip
"rig19"Frame 10Symbol 1036 MovieClip
"rig122"Frame 10Symbol 1036 MovieClip
"waypoint106"Frame 10Symbol 876 MovieClip [flag copy]
"attackpt"Frame 10Symbol 876 MovieClip [flag copy]
"turretpt6"Frame 10Symbol 876 MovieClip [flag copy]
"turretpt7"Frame 10Symbol 876 MovieClip [flag copy]
"turretpt8"Frame 10Symbol 876 MovieClip [flag copy]
"turretpt9"Frame 10Symbol 876 MovieClip [flag copy]
"minept4"Frame 10Symbol 876 MovieClip [flag copy]
"minept3"Frame 10Symbol 876 MovieClip [flag copy]
"burton"Frame 10Symbol 1038 MovieClip
"rallypoint"Frame 10Symbol 1040 MovieClip
"attackpt1"Frame 10Symbol 876 MovieClip [flag copy]
"attackpt2"Frame 10Symbol 876 MovieClip [flag copy]
"attackpt3"Frame 10Symbol 876 MovieClip [flag copy]
"waypoint44"Frame 10Symbol 876 MovieClip [flag copy]
"box"Frame 10Symbol 1042 MovieClip
"ai"Frame 10Symbol 1044 MovieClip
"rallypoint"Frame 11Symbol 1040 MovieClip
"attackpt1"Frame 11Symbol 876 MovieClip [flag copy]
"attackpt2"Frame 11Symbol 876 MovieClip [flag copy]
"attackpt3"Frame 11Symbol 876 MovieClip [flag copy]
"box5"Frame 13Symbol 648 MovieClip [box5]
"back"Frame 13Symbol 1070 MovieClip
"back"Frame 14Symbol 1070 MovieClip
"oil1"Frame 14Symbol 1029 MovieClip
"oil3"Frame 14Symbol 1029 MovieClip
"oil2"Frame 14Symbol 1029 MovieClip
"burton"Frame 14Symbol 1038 MovieClip
"waypoint44"Frame 14Symbol 876 MovieClip [flag copy]
"flag4"Frame 14Symbol 876 MovieClip [flag copy]
"refpt"Frame 14Symbol 876 MovieClip [flag copy]
"techpt"Frame 14Symbol 876 MovieClip [flag copy]
"silopt"Frame 14Symbol 876 MovieClip [flag copy]
"turretpt1"Frame 14Symbol 876 MovieClip [flag copy]
"turretpt2"Frame 14Symbol 876 MovieClip [flag copy]
"turretpt3"Frame 14Symbol 876 MovieClip [flag copy]
"turretpt4"Frame 14Symbol 876 MovieClip [flag copy]
"turretpt5"Frame 14Symbol 876 MovieClip [flag copy]
"turretpt6"Frame 14Symbol 876 MovieClip [flag copy]
"turretpt7"Frame 14Symbol 876 MovieClip [flag copy]
"turretpt8"Frame 14Symbol 876 MovieClip [flag copy]
"turretpt9"Frame 14Symbol 876 MovieClip [flag copy]
"comcentrept"Frame 14Symbol 876 MovieClip [flag copy]
"warpt"Frame 14Symbol 876 MovieClip [flag copy]
"rig19"Frame 14Symbol 1036 MovieClip
"minept0"Frame 14Symbol 876 MovieClip [flag copy]
"minept1"Frame 14Symbol 876 MovieClip [flag copy]
"minept2"Frame 14Symbol 876 MovieClip [flag copy]
"minept3"Frame 14Symbol 876 MovieClip [flag copy]
"minept4"Frame 14Symbol 876 MovieClip [flag copy]
"rallypoint"Frame 14Symbol 1040 MovieClip
"box"Frame 14Symbol 1042 MovieClip
"waypoint100"Frame 14Symbol 876 MovieClip [flag copy]
"waypoint101"Frame 14Symbol 876 MovieClip [flag copy]
"waypoint102"Frame 14Symbol 876 MovieClip [flag copy]
"waypoint103"Frame 14Symbol 876 MovieClip [flag copy]
"waypoint104"Frame 14Symbol 876 MovieClip [flag copy]
"waypoint105"Frame 14Symbol 876 MovieClip [flag copy]
"attackpt1"Frame 14Symbol 876 MovieClip [flag copy]
"attackpt2"Frame 14Symbol 876 MovieClip [flag copy]
"attackpt3"Frame 14Symbol 876 MovieClip [flag copy]
"ai"Frame 14Symbol 1044 MovieClip
"box5"Frame 15Symbol 648 MovieClip [box5]
"back"Frame 15Symbol 1075 MovieClip
"back"Frame 16Symbol 1075 MovieClip
"oil122"Frame 16Symbol 1029 MovieClip
"oil1"Frame 16Symbol 1029 MovieClip
"oil2"Frame 16Symbol 1029 MovieClip
"oil3"Frame 16Symbol 1029 MovieClip
"servpt"Frame 16Symbol 876 MovieClip [flag copy]
"warpt"Frame 16Symbol 876 MovieClip [flag copy]
"refpt"Frame 16Symbol 876 MovieClip [flag copy]
"comcentrept"Frame 16Symbol 876 MovieClip [flag copy]
"waypoint4"Frame 16Symbol 876 MovieClip [flag copy]
"techpt"Frame 16Symbol 876 MovieClip [flag copy]
"turretpt2"Frame 16Symbol 876 MovieClip [flag copy]
"turretpt3"Frame 16Symbol 876 MovieClip [flag copy]
"turretpt1"Frame 16Symbol 876 MovieClip [flag copy]
"turretpt5"Frame 16Symbol 876 MovieClip [flag copy]
"turretpt4"Frame 16Symbol 876 MovieClip [flag copy]
"minept0"Frame 16Symbol 876 MovieClip [flag copy]
"minept1"Frame 16Symbol 876 MovieClip [flag copy]
"minept2"Frame 16Symbol 876 MovieClip [flag copy]
"waypoint100"Frame 16Symbol 876 MovieClip [flag copy]
"waypoint101"Frame 16Symbol 876 MovieClip [flag copy]
"waypoint102"Frame 16Symbol 876 MovieClip [flag copy]
"waypoint103"Frame 16Symbol 876 MovieClip [flag copy]
"waypoint104"Frame 16Symbol 876 MovieClip [flag copy]
"waypoint105"Frame 16Symbol 876 MovieClip [flag copy]
"silopt"Frame 16Symbol 876 MovieClip [flag copy]
"rig10"Frame 16Symbol 1036 MovieClip
"rig11"Frame 16Symbol 1036 MovieClip
"rig19"Frame 16Symbol 1036 MovieClip
"waypoint106"Frame 16Symbol 876 MovieClip [flag copy]
"rig1"Frame 16Symbol 1036 MovieClip
"turretpt6"Frame 16Symbol 876 MovieClip [flag copy]
"turretpt7"Frame 16Symbol 876 MovieClip [flag copy]
"turretpt8"Frame 16Symbol 876 MovieClip [flag copy]
"turretpt9"Frame 16Symbol 876 MovieClip [flag copy]
"minept4"Frame 16Symbol 876 MovieClip [flag copy]
"minept3"Frame 16Symbol 876 MovieClip [flag copy]
"minept5"Frame 16Symbol 876 MovieClip [flag copy]
"minept6"Frame 16Symbol 876 MovieClip [flag copy]
"attackpt1"Frame 16Symbol 876 MovieClip [flag copy]
"attackpt2"Frame 16Symbol 876 MovieClip [flag copy]
"attackpt3"Frame 16Symbol 876 MovieClip [flag copy]
"burton"Frame 16Symbol 1038 MovieClip
"rallypoint"Frame 16Symbol 1040 MovieClip
"waypoint44"Frame 16Symbol 876 MovieClip [flag copy]
"box"Frame 16Symbol 1042 MovieClip
"ai"Frame 16Symbol 1044 MovieClip
"box5"Frame 17Symbol 648 MovieClip [box5]
"back"Frame 17Symbol 1080 MovieClip
"back"Frame 18Symbol 1080 MovieClip
"oil1"Frame 18Symbol 1029 MovieClip
"oil3"Frame 18Symbol 1029 MovieClip
"servpt"Frame 18Symbol 876 MovieClip [flag copy]
"warpt"Frame 18Symbol 876 MovieClip [flag copy]
"refpt"Frame 18Symbol 876 MovieClip [flag copy]
"comcentrept"Frame 18Symbol 876 MovieClip [flag copy]
"waypoint4"Frame 18Symbol 876 MovieClip [flag copy]
"techpt"Frame 18Symbol 876 MovieClip [flag copy]
"turretpt2"Frame 18Symbol 876 MovieClip [flag copy]
"turretpt3"Frame 18Symbol 876 MovieClip [flag copy]
"turretpt1"Frame 18Symbol 876 MovieClip [flag copy]
"turretpt5"Frame 18Symbol 876 MovieClip [flag copy]
"turretpt4"Frame 18Symbol 876 MovieClip [flag copy]
"minept0"Frame 18Symbol 876 MovieClip [flag copy]
"minept1"Frame 18Symbol 876 MovieClip [flag copy]
"minept2"Frame 18Symbol 876 MovieClip [flag copy]
"waypoint100"Frame 18Symbol 876 MovieClip [flag copy]
"waypoint101"Frame 18Symbol 876 MovieClip [flag copy]
"waypoint102"Frame 18Symbol 876 MovieClip [flag copy]
"waypoint103"Frame 18Symbol 876 MovieClip [flag copy]
"waypoint104"Frame 18Symbol 876 MovieClip [flag copy]
"waypoint105"Frame 18Symbol 876 MovieClip [flag copy]
"silopt"Frame 18Symbol 876 MovieClip [flag copy]
"rig10"Frame 18Symbol 1036 MovieClip
"rig19"Frame 18Symbol 1036 MovieClip
"waypoint106"Frame 18Symbol 876 MovieClip [flag copy]
"turretpt6"Frame 18Symbol 876 MovieClip [flag copy]
"turretpt7"Frame 18Symbol 876 MovieClip [flag copy]
"turretpt8"Frame 18Symbol 876 MovieClip [flag copy]
"turretpt9"Frame 18Symbol 876 MovieClip [flag copy]
"minept4"Frame 18Symbol 876 MovieClip [flag copy]
"minept3"Frame 18Symbol 876 MovieClip [flag copy]
"minept5"Frame 18Symbol 876 MovieClip [flag copy]
"minept6"Frame 18Symbol 876 MovieClip [flag copy]
"attackpt1"Frame 18Symbol 876 MovieClip [flag copy]
"attackpt2"Frame 18Symbol 876 MovieClip [flag copy]
"attackpt3"Frame 18Symbol 876 MovieClip [flag copy]
"burton"Frame 18Symbol 1038 MovieClip
"rallypoint"Frame 18Symbol 1040 MovieClip
"waypoint44"Frame 18Symbol 876 MovieClip [flag copy]
"box"Frame 18Symbol 1042 MovieClip
"waypoint44"Frame 18Symbol 876 MovieClip [flag copy]
"waypoint44"Frame 18Symbol 876 MovieClip [flag copy]
"waypoint44"Frame 18Symbol 876 MovieClip [flag copy]
"waypoint44"Frame 18Symbol 876 MovieClip [flag copy]
"waypoint44"Frame 18Symbol 876 MovieClip [flag copy]
"waypoint44"Frame 18Symbol 876 MovieClip [flag copy]
"waypoint44"Frame 18Symbol 876 MovieClip [flag copy]
"ai"Frame 18Symbol 1044 MovieClip
"box5"Frame 19Symbol 648 MovieClip [box5]
"back"Frame 19Symbol 1086 MovieClip
"back"Frame 20Symbol 1086 MovieClip
"oil1"Frame 20Symbol 1029 MovieClip
"servpt"Frame 20Symbol 876 MovieClip [flag copy]
"warpt"Frame 20Symbol 876 MovieClip [flag copy]
"refpt"Frame 20Symbol 876 MovieClip [flag copy]
"comcentrept"Frame 20Symbol 876 MovieClip [flag copy]
"techpt"Frame 20Symbol 876 MovieClip [flag copy]
"turretpt2"Frame 20Symbol 876 MovieClip [flag copy]
"turretpt3"Frame 20Symbol 876 MovieClip [flag copy]
"turretpt1"Frame 20Symbol 876 MovieClip [flag copy]
"turretpt5"Frame 20Symbol 876 MovieClip [flag copy]
"turretpt4"Frame 20Symbol 876 MovieClip [flag copy]
"minept0"Frame 20Symbol 876 MovieClip [flag copy]
"minept1"Frame 20Symbol 876 MovieClip [flag copy]
"minept2"Frame 20Symbol 876 MovieClip [flag copy]
"waypoint100"Frame 20Symbol 876 MovieClip [flag copy]
"waypoint101"Frame 20Symbol 876 MovieClip [flag copy]
"waypoint102"Frame 20Symbol 876 MovieClip [flag copy]
"waypoint103"Frame 20Symbol 876 MovieClip [flag copy]
"waypoint104"Frame 20Symbol 876 MovieClip [flag copy]
"waypoint105"Frame 20Symbol 876 MovieClip [flag copy]
"silopt"Frame 20Symbol 876 MovieClip [flag copy]
"oil4"Frame 20Symbol 1029 MovieClip
"rig10"Frame 20Symbol 1036 MovieClip
"rig19"Frame 20Symbol 1036 MovieClip
"waypoint106"Frame 20Symbol 876 MovieClip [flag copy]
"turretpt6"Frame 20Symbol 876 MovieClip [flag copy]
"turretpt7"Frame 20Symbol 876 MovieClip [flag copy]
"turretpt8"Frame 20Symbol 876 MovieClip [flag copy]
"turretpt9"Frame 20Symbol 876 MovieClip [flag copy]
"minept4"Frame 20Symbol 876 MovieClip [flag copy]
"minept3"Frame 20Symbol 876 MovieClip [flag copy]
"minept5"Frame 20Symbol 876 MovieClip [flag copy]
"minept6"Frame 20Symbol 876 MovieClip [flag copy]
"rig11"Frame 20Symbol 1036 MovieClip
"rig12"Frame 20Symbol 1036 MovieClip
"rig20"Frame 20Symbol 1036 MovieClip
"rig21"Frame 20Symbol 1036 MovieClip
"attackpt1"Frame 20Symbol 876 MovieClip [flag copy]
"attackpt2"Frame 20Symbol 876 MovieClip [flag copy]
"attackpt3"Frame 20Symbol 876 MovieClip [flag copy]
"burton"Frame 20Symbol 1038 MovieClip
"rallypoint"Frame 20Symbol 1040 MovieClip
"box"Frame 20Symbol 1042 MovieClip
"ai"Frame 20Symbol 1044 MovieClip
"box5"Frame 21Symbol 648 MovieClip [box5]
"back"Frame 21Symbol 1088 MovieClip
"back"Frame 22Symbol 1088 MovieClip
"oil0"Frame 22Symbol 1029 MovieClip
"oil34"Frame 22Symbol 1029 MovieClip
"servpt"Frame 22Symbol 876 MovieClip [flag copy]
"warpt"Frame 22Symbol 876 MovieClip [flag copy]
"refpt"Frame 22Symbol 876 MovieClip [flag copy]
"comcentrept"Frame 22Symbol 876 MovieClip [flag copy]
"techpt"Frame 22Symbol 876 MovieClip [flag copy]
"turretpt2"Frame 22Symbol 876 MovieClip [flag copy]
"turretpt3"Frame 22Symbol 876 MovieClip [flag copy]
"turretpt1"Frame 22Symbol 876 MovieClip [flag copy]
"turretpt5"Frame 22Symbol 876 MovieClip [flag copy]
"turretpt4"Frame 22Symbol 876 MovieClip [flag copy]
"minept0"Frame 22Symbol 876 MovieClip [flag copy]
"minept1"Frame 22Symbol 876 MovieClip [flag copy]
"minept2"Frame 22Symbol 876 MovieClip [flag copy]
"waypoint100"Frame 22Symbol 876 MovieClip [flag copy]
"waypoint101"Frame 22Symbol 876 MovieClip [flag copy]
"waypoint102"Frame 22Symbol 876 MovieClip [flag copy]
"waypoint103"Frame 22Symbol 876 MovieClip [flag copy]
"waypoint104"Frame 22Symbol 876 MovieClip [flag copy]
"waypoint105"Frame 22Symbol 876 MovieClip [flag copy]
"silopt"Frame 22Symbol 876 MovieClip [flag copy]
"oil9"Frame 22Symbol 1029 MovieClip
"waypoint106"Frame 22Symbol 876 MovieClip [flag copy]
"turretpt6"Frame 22Symbol 876 MovieClip [flag copy]
"turretpt7"Frame 22Symbol 876 MovieClip [flag copy]
"turretpt8"Frame 22Symbol 876 MovieClip [flag copy]
"turretpt9"Frame 22Symbol 876 MovieClip [flag copy]
"minept4"Frame 22Symbol 876 MovieClip [flag copy]
"minept3"Frame 22Symbol 876 MovieClip [flag copy]
"minept5"Frame 22Symbol 876 MovieClip [flag copy]
"minept6"Frame 22Symbol 876 MovieClip [flag copy]
"rig12"Frame 22Symbol 1036 MovieClip
"oil1"Frame 22Symbol 1029 MovieClip
"rig19"Frame 22Symbol 1036 MovieClip
"oil33"Frame 22Symbol 1029 MovieClip
"oil8"Frame 22Symbol 1029 MovieClip
"oil6"Frame 22Symbol 1029 MovieClip
"rig19"Frame 22Symbol 1036 MovieClip
"rig31"Frame 22Symbol 1036 MovieClip
"rig20"Frame 22Symbol 1036 MovieClip
"attackpt1"Frame 22Symbol 876 MovieClip [flag copy]
"attackpt2"Frame 22Symbol 876 MovieClip [flag copy]
"attackpt3"Frame 22Symbol 876 MovieClip [flag copy]
"burton"Frame 22Symbol 1038 MovieClip
"rallypoint"Frame 22Symbol 1040 MovieClip
"box"Frame 22Symbol 1042 MovieClip
"ai"Frame 22Symbol 1044 MovieClip
"box5"Frame 25Symbol 648 MovieClip [box5]
"back"Frame 25Symbol 804 MovieClip
"back"Frame 26Symbol 804 MovieClip
"comcentre1"Frame 26Symbol 625 MovieClip [comcentre]
"refinery1"Frame 26Symbol 623 MovieClip [refinery]
"warfactorey1"Frame 26Symbol 621 MovieClip [warfactory]
"pat1"Frame 26Symbol 619 MovieClip [patriotmiss]
"wall1"Frame 26Symbol 1095 MovieClip
"pat2"Frame 26Symbol 619 MovieClip [patriotmiss]
"wall2"Frame 26Symbol 1095 MovieClip
"oil3"Frame 26Symbol 1029 MovieClip
"rig10"Frame 26Symbol 1036 MovieClip
"burton"Frame 26Symbol 1038 MovieClip
"rallypoint"Frame 26Symbol 1040 MovieClip
"tartar"Frame 26Symbol 876 MovieClip [flag copy]
"tart"Frame 26Symbol 876 MovieClip [flag copy]
"tart2"Frame 26Symbol 876 MovieClip [flag copy]
"tart3"Frame 26Symbol 876 MovieClip [flag copy]
"tart4"Frame 26Symbol 876 MovieClip [flag copy]
"box"Frame 26Symbol 1042 MovieClip
"ai"Frame 26Symbol 1099 MovieClip
"ai"Frame 27Symbol 1099 MovieClip
"ai"Frame 28Symbol 1099 MovieClip
"back"Frame 29Symbol 1088 MovieClip
"box5"Frame 29Symbol 648 MovieClip [box5]
"back"Frame 30Symbol 1088 MovieClip
"tartar"Frame 30Symbol 876 MovieClip [flag copy]
"tart5"Frame 30Symbol 876 MovieClip [flag copy]
"tart6"Frame 30Symbol 876 MovieClip [flag copy]
"warfactory1"Frame 30Symbol 621 MovieClip [warfactory]
"comcentre1"Frame 30Symbol 625 MovieClip [comcentre]
"wall1"Frame 30Symbol 1095 MovieClip
"wall2"Frame 30Symbol 1095 MovieClip
"enemywarfactory1"Frame 30Symbol 876 MovieClip [flag copy]
"enemywarfactory2"Frame 30Symbol 876 MovieClip [flag copy]
"oil6"Frame 30Symbol 1029 MovieClip
"rig11"Frame 30Symbol 1036 MovieClip
"oil4"Frame 30Symbol 1029 MovieClip
"rig5"Frame 30Symbol 1036 MovieClip
"enemywarfactory4"Frame 30Symbol 876 MovieClip [flag copy]
"enemywarfactory3"Frame 30Symbol 876 MovieClip [flag copy]
"lock1"Frame 30Symbol 876 MovieClip [flag copy]
"burton"Frame 30Symbol 1038 MovieClip
"techcentre1"Frame 30Symbol 600 MovieClip [techcentre]
"refinery1"Frame 30Symbol 623 MovieClip [refinery]
"servicedepot1"Frame 30Symbol 598 MovieClip [servicedepot]
"rallypoint"Frame 30Symbol 1040 MovieClip
"box"Frame 30Symbol 1042 MovieClip
"ai"Frame 30Symbol 1099 MovieClip
"ai"Frame 31Symbol 1099 MovieClip
"ai"Frame 32Symbol 1099 MovieClip
"map2"Frame 33Symbol 1117 MovieClip
"map6"Frame 33Symbol 1117 MovieClip
"map3"Frame 33Symbol 1120 MovieClip
"map5"Frame 33Symbol 1117 MovieClip
"map9"Frame 33Symbol 1117 MovieClip
"map8"Frame 33Symbol 1117 MovieClip
"map4"Frame 33Symbol 1117 MovieClip
"map7"Frame 33Symbol 1117 MovieClip
"ai"Frame 33Symbol 1099 MovieClip
"alarm"Frame 33Symbol 1128 MovieClip
"back"Frame 34Symbol 1132 MovieClip
"box5"Frame 34Symbol 648 MovieClip [box5]
"back"Frame 35Symbol 1132 MovieClip
"lock2"Frame 35Symbol 876 MovieClip [flag copy]
"wall2"Frame 35Symbol 1095 MovieClip
"wall3"Frame 35Symbol 1095 MovieClip
"wall1"Frame 35Symbol 1095 MovieClip
"enemytechcentre1"Frame 35Symbol 596 MovieClip [enemytechcentre]
"enemyservicedepot1"Frame 35Symbol 594 MovieClip [enemyservicedepot]
"flag2"Frame 35Symbol 876 MovieClip [flag copy]
"flag1"Frame 35Symbol 876 MovieClip [flag copy]
"flag4"Frame 35Symbol 876 MovieClip [flag copy]
"flag3"Frame 35Symbol 876 MovieClip [flag copy]
"ai"Frame 35Symbol 1099 MovieClip
"waypoint1"Frame 35Symbol 876 MovieClip [flag copy]
"waypoint2"Frame 35Symbol 876 MovieClip [flag copy]
"waypoint3"Frame 35Symbol 876 MovieClip [flag copy]
"waypoint47"Frame 35Symbol 876 MovieClip [flag copy]
"waypoint16"Frame 35Symbol 876 MovieClip [flag copy]
"waypoint2"Frame 35Symbol 876 MovieClip [flag copy]
"waypoint21"Frame 35Symbol 876 MovieClip [flag copy]
"waypoint22"Frame 35Symbol 876 MovieClip [flag copy]
"waypoint23"Frame 35Symbol 876 MovieClip [flag copy]
"enemyrefinery1"Frame 35Symbol 590 MovieClip [enemyrefinery]
"comally"Frame 35Symbol 1134 MovieClip
"enemywarfactory1"Frame 35Symbol 586 MovieClip [enemywarfactory]
"warally"Frame 35Symbol 1136 MovieClip
"oil6"Frame 35Symbol 1029 MovieClip
"rig11"Frame 35Symbol 1036 MovieClip
"oil5"Frame 35Symbol 1029 MovieClip
"rig12"Frame 35Symbol 1036 MovieClip
"oil3"Frame 35Symbol 1029 MovieClip
"rig9"Frame 35Symbol 1036 MovieClip
"oil1"Frame 35Symbol 1029 MovieClip
"rig1"Frame 35Symbol 1036 MovieClip
"waypoint101"Frame 35Symbol 876 MovieClip [flag copy]
"waypoint102"Frame 35Symbol 876 MovieClip [flag copy]
"waypoint103"Frame 35Symbol 876 MovieClip [flag copy]
"waypoint104"Frame 35Symbol 876 MovieClip [flag copy]
"waypoint105"Frame 35Symbol 876 MovieClip [flag copy]
"rallypoint"Frame 35Symbol 1040 MovieClip
"lock1"Frame 35Symbol 876 MovieClip [flag copy]
"burton"Frame 35Symbol 1038 MovieClip
"box"Frame 35Symbol 1042 MovieClip
"ai"Frame 36Symbol 1099 MovieClip
"back"Frame 38Symbol 1088 MovieClip
"box5"Frame 38Symbol 648 MovieClip [box5]
"back"Frame 39Symbol 1088 MovieClip
"reinforcement"Frame 39Symbol 876 MovieClip [flag copy]
"oil6"Frame 39Symbol 1029 MovieClip
"rig11"Frame 39Symbol 1036 MovieClip
"oil4"Frame 39Symbol 1029 MovieClip
"rig5"Frame 39Symbol 1036 MovieClip
"oil3"Frame 39Symbol 1029 MovieClip
"rig10"Frame 39Symbol 1036 MovieClip
"flag1"Frame 39Symbol 876 MovieClip [flag copy]
"waypoint1"Frame 39Symbol 876 MovieClip [flag copy]
"waypoint2"Frame 39Symbol 876 MovieClip [flag copy]
"waypoint3"Frame 39Symbol 876 MovieClip [flag copy]
"waypoint47"Frame 39Symbol 876 MovieClip [flag copy]
"waypoint16"Frame 39Symbol 876 MovieClip [flag copy]
"waypoint2"Frame 39Symbol 876 MovieClip [flag copy]
"waypoint21"Frame 39Symbol 876 MovieClip [flag copy]
"waypoint22"Frame 39Symbol 876 MovieClip [flag copy]
"waypoint23"Frame 39Symbol 876 MovieClip [flag copy]
"lock1"Frame 39Symbol 876 MovieClip [flag copy]
"waypoint102"Frame 39Symbol 876 MovieClip [flag copy]
"waypoint103"Frame 39Symbol 876 MovieClip [flag copy]
"waypoint104"Frame 39Symbol 876 MovieClip [flag copy]
"waypoint105"Frame 39Symbol 876 MovieClip [flag copy]
"rallypoint"Frame 39Symbol 1040 MovieClip
"ai"Frame 39Symbol 1099 MovieClip
"tartar"Frame 39Symbol 876 MovieClip [flag copy]
"burton"Frame 39Symbol 1038 MovieClip
"box"Frame 39Symbol 1042 MovieClip
"ai"Frame 40Symbol 1099 MovieClip
"ai"Frame 41Symbol 1099 MovieClip
"back"Frame 42Symbol 1132 MovieClip
"box5"Frame 42Symbol 648 MovieClip [box5]
"back"Frame 43Symbol 1070 MovieClip
"ai"Frame 43Symbol 1099 MovieClip
"production1"Frame 43Symbol 586 MovieClip [enemywarfactory]
"production4"Frame 43Symbol 586 MovieClip [enemywarfactory]
"production3"Frame 43Symbol 586 MovieClip [enemywarfactory]
"production2"Frame 43Symbol 586 MovieClip [enemywarfactory]
"enemywarfactory1"Frame 43Symbol 586 MovieClip [enemywarfactory]
"enemyrefinery1"Frame 43Symbol 590 MovieClip [enemyrefinery]
"enemytechcentre1"Frame 43Symbol 596 MovieClip [enemytechcentre]
"enemyservicedepot1"Frame 43Symbol 594 MovieClip [enemyservicedepot]
"enemycomcentre1"Frame 43Symbol 592 MovieClip [enemycomcentre]
"oil6"Frame 43Symbol 1029 MovieClip
"rig11"Frame 43Symbol 1036 MovieClip
"oil5"Frame 43Symbol 1029 MovieClip
"rig1"Frame 43Symbol 1036 MovieClip
"oil4"Frame 43Symbol 1029 MovieClip
"rig2"Frame 43Symbol 1036 MovieClip
"waypoint1"Frame 43Symbol 876 MovieClip [flag copy]
"rallypoint"Frame 43Symbol 1040 MovieClip
"lock1"Frame 43Symbol 876 MovieClip [flag copy]
"lock2"Frame 43Symbol 876 MovieClip [flag copy]
"reinforcement"Frame 43Symbol 876 MovieClip [flag copy]
"waypoint47"Frame 43Symbol 876 MovieClip [flag copy]
"waypoint101"Frame 43Symbol 876 MovieClip [flag copy]
"waypoint100"Frame 43Symbol 876 MovieClip [flag copy]
"waypoint103"Frame 43Symbol 876 MovieClip [flag copy]
"waypoint74"Frame 43Symbol 876 MovieClip [flag copy]
"waypoint105"Frame 43Symbol 876 MovieClip [flag copy]
"burton"Frame 43Symbol 1038 MovieClip
"box"Frame 43Symbol 1042 MovieClip
"ai"Frame 44Symbol 1099 MovieClip
"waypoint3"Frame 45Symbol 876 MovieClip [flag copy]
"waypoint2"Frame 45Symbol 876 MovieClip [flag copy]
"back"Frame 46Symbol 1070 MovieClip
"box5"Frame 46Symbol 648 MovieClip [box5]
"back"Frame 47Symbol 1070 MovieClip
"production1"Frame 47Symbol 1136 MovieClip
"production4"Frame 47Symbol 1136 MovieClip
"production3"Frame 47Symbol 1136 MovieClip
"production2"Frame 47Symbol 1136 MovieClip
"oil6"Frame 47Symbol 1029 MovieClip
"rig11"Frame 47Symbol 1036 MovieClip
"oil4"Frame 47Symbol 1029 MovieClip
"rig2"Frame 47Symbol 1036 MovieClip
"flag4"Frame 47Symbol 876 MovieClip [flag copy]
"flag2"Frame 47Symbol 876 MovieClip [flag copy]
"flag3"Frame 47Symbol 876 MovieClip [flag copy]
"oil5"Frame 47Symbol 1029 MovieClip
"rig1"Frame 47Symbol 1036 MovieClip
"ai"Frame 47Symbol 1099 MovieClip
"flag1"Frame 47Symbol 876 MovieClip [flag copy]
"waypoint1"Frame 47Symbol 876 MovieClip [flag copy]
"waypoint2"Frame 47Symbol 876 MovieClip [flag copy]
"waypoint3"Frame 47Symbol 876 MovieClip [flag copy]
"waypoint47"Frame 47Symbol 876 MovieClip [flag copy]
"waypoint16"Frame 47Symbol 876 MovieClip [flag copy]
"waypoint2"Frame 47Symbol 876 MovieClip [flag copy]
"waypoint21"Frame 47Symbol 876 MovieClip [flag copy]
"waypoint22"Frame 47Symbol 876 MovieClip [flag copy]
"waypoint23"Frame 47Symbol 876 MovieClip [flag copy]
"waypoint103"Frame 47Symbol 876 MovieClip [flag copy]
"waypoint104"Frame 47Symbol 876 MovieClip [flag copy]
"rallypoint"Frame 47Symbol 1040 MovieClip
"lock1"Frame 47Symbol 876 MovieClip [flag copy]
"lock2"Frame 47Symbol 876 MovieClip [flag copy]
"reinforcement"Frame 47Symbol 876 MovieClip [flag copy]
"burton"Frame 47Symbol 1038 MovieClip
"box"Frame 47Symbol 1042 MovieClip
"ai"Frame 48Symbol 1099 MovieClip
"back"Frame 50Symbol 1149 MovieClip
"box5"Frame 50Symbol 648 MovieClip [box5]
"ai"Frame 51Symbol 1099 MovieClip
"enemycomcentre1"Frame 51Symbol 592 MovieClip [enemycomcentre]
"enemywarfactory1"Frame 51Symbol 586 MovieClip [enemywarfactory]
"enemyweaponsilo1"Frame 51Symbol 572 MovieClip [enemyweaponsilo]
"sensor1"Frame 51Symbol 1151 MovieClip
"sensor2"Frame 51Symbol 1151 MovieClip
"sensor3"Frame 51Symbol 1151 MovieClip
"rallypoint"Frame 51Symbol 1040 MovieClip
"lock1"Frame 51Symbol 876 MovieClip [flag copy]
"lock2"Frame 51Symbol 876 MovieClip [flag copy]
"reinforcement"Frame 51Symbol 876 MovieClip [flag copy]
"enemytechcentre1"Frame 51Symbol 596 MovieClip [enemytechcentre]
"enemyservicedepot1"Frame 51Symbol 594 MovieClip [enemyservicedepot]
"enemyrefinery1"Frame 51Symbol 590 MovieClip [enemyrefinery]
"oil6"Frame 51Symbol 1029 MovieClip
"rig11"Frame 51Symbol 1036 MovieClip
"oil5"Frame 51Symbol 1029 MovieClip
"rig10"Frame 51Symbol 1036 MovieClip
"waypoint101"Frame 51Symbol 876 MovieClip [flag copy]
"waypoint102"Frame 51Symbol 876 MovieClip [flag copy]
"waypoint103"Frame 51Symbol 876 MovieClip [flag copy]
"waypoint104"Frame 51Symbol 876 MovieClip [flag copy]
"waypoint105"Frame 51Symbol 876 MovieClip [flag copy]
"burton"Frame 51Symbol 1038 MovieClip
"box"Frame 51Symbol 1042 MovieClip
"ai"Frame 52Symbol 1099 MovieClip
"waypoint3"Frame 53Symbol 876 MovieClip [flag copy]
"waypoint2"Frame 53Symbol 876 MovieClip [flag copy]
"waypoint1"Frame 53Symbol 876 MovieClip [flag copy]
"back"Frame 54Symbol 1149 MovieClip
"box5"Frame 54Symbol 648 MovieClip [box5]
"back"Frame 55Symbol 1149 MovieClip
"reinforcement"Frame 55Symbol 876 MovieClip [flag copy]
"flag1"Frame 55Symbol 876 MovieClip [flag copy]
"waypoint1"Frame 55Symbol 876 MovieClip [flag copy]
"waypoint2"Frame 55Symbol 876 MovieClip [flag copy]
"waypoint3"Frame 55Symbol 876 MovieClip [flag copy]
"waypoint47"Frame 55Symbol 876 MovieClip [flag copy]
"waypoint16"Frame 55Symbol 876 MovieClip [flag copy]
"waypoint2"Frame 55Symbol 876 MovieClip [flag copy]
"waypoint21"Frame 55Symbol 876 MovieClip [flag copy]
"waypoint22"Frame 55Symbol 876 MovieClip [flag copy]
"waypoint23"Frame 55Symbol 876 MovieClip [flag copy]
"lock1"Frame 55Symbol 876 MovieClip [flag copy]
"sensor2"Frame 55Symbol 1151 MovieClip
"sensor3"Frame 55Symbol 1151 MovieClip
"oil6"Frame 55Symbol 1029 MovieClip
"rig11"Frame 55Symbol 1036 MovieClip
"rallypoint"Frame 55Symbol 1040 MovieClip
"ai"Frame 55Symbol 1099 MovieClip
"lock2"Frame 55Symbol 876 MovieClip [flag copy]
"waypoint101"Frame 55Symbol 876 MovieClip [flag copy]
"waypoint102"Frame 55Symbol 876 MovieClip [flag copy]
"waypoint103"Frame 55Symbol 876 MovieClip [flag copy]
"sensor1"Frame 55Symbol 1151 MovieClip
"oil5"Frame 55Symbol 1029 MovieClip
"rig10"Frame 55Symbol 1036 MovieClip
"waypoint101"Frame 55Symbol 876 MovieClip [flag copy]
"burton"Frame 55Symbol 1038 MovieClip
"box"Frame 55Symbol 1042 MovieClip
"ai"Frame 56Symbol 1099 MovieClip
"ai"Frame 57Symbol 1099 MovieClip
"back"Frame 58Symbol 1075 MovieClip
"box5"Frame 58Symbol 648 MovieClip [box5]
"ai"Frame 59Symbol 1099 MovieClip
"rallypoint"Frame 59Symbol 1040 MovieClip
"lock1"Frame 59Symbol 876 MovieClip [flag copy]
"lock2"Frame 59Symbol 876 MovieClip [flag copy]
"reinforcement"Frame 59Symbol 876 MovieClip [flag copy]
"oil5"Frame 59Symbol 1029 MovieClip
"rig10"Frame 59Symbol 1036 MovieClip
"oil4"Frame 59Symbol 1029 MovieClip
"oil3"Frame 59Symbol 1029 MovieClip
"rig8"Frame 59Symbol 1036 MovieClip
"enemycomcentre1"Frame 59Symbol 592 MovieClip [enemycomcentre]
"enemyrefinery1"Frame 59Symbol 590 MovieClip [enemyrefinery]
"enemyservicedepot1"Frame 59Symbol 594 MovieClip [enemyservicedepot]
"enemyweaponsilo1"Frame 59Symbol 572 MovieClip [enemyweaponsilo]
"enemywarfactory1"Frame 59Symbol 586 MovieClip [enemywarfactory]
"enemytechcentre1"Frame 59Symbol 596 MovieClip [enemytechcentre]
"flag1"Frame 59Symbol 876 MovieClip [flag copy]
"waypoint1"Frame 59Symbol 876 MovieClip [flag copy]
"waypoint3"Frame 59Symbol 876 MovieClip [flag copy]
"waypoint47"Frame 59Symbol 876 MovieClip [flag copy]
"waypoint16"Frame 59Symbol 876 MovieClip [flag copy]
"waypoint2"Frame 59Symbol 876 MovieClip [flag copy]
"waypoint21"Frame 59Symbol 876 MovieClip [flag copy]
"waypoint22"Frame 59Symbol 876 MovieClip [flag copy]
"waypoint23"Frame 59Symbol 876 MovieClip [flag copy]
"waypoint102"Frame 59Symbol 876 MovieClip [flag copy]
"waypoint103"Frame 59Symbol 876 MovieClip [flag copy]
"burton"Frame 59Symbol 1038 MovieClip
"box"Frame 59Symbol 1042 MovieClip
"ai"Frame 60Symbol 1099 MovieClip
"waypoint3"Frame 61Symbol 876 MovieClip [flag copy]
"waypoint2"Frame 61Symbol 876 MovieClip [flag copy]
"waypoint1"Frame 61Symbol 876 MovieClip [flag copy]
"back"Frame 62Symbol 1075 MovieClip
"box5"Frame 62Symbol 648 MovieClip [box5]
"back"Frame 63Symbol 1075 MovieClip
"reinforcement"Frame 63Symbol 876 MovieClip [flag copy]
"flag1"Frame 63Symbol 876 MovieClip [flag copy]
"waypoint1"Frame 63Symbol 876 MovieClip [flag copy]
"waypoint2"Frame 63Symbol 876 MovieClip [flag copy]
"waypoint3"Frame 63Symbol 876 MovieClip [flag copy]
"waypoint47"Frame 63Symbol 876 MovieClip [flag copy]
"waypoint16"Frame 63Symbol 876 MovieClip [flag copy]
"waypoint21"Frame 63Symbol 876 MovieClip [flag copy]
"waypoint22"Frame 63Symbol 876 MovieClip [flag copy]
"waypoint23"Frame 63Symbol 876 MovieClip [flag copy]
"lock1"Frame 63Symbol 876 MovieClip [flag copy]
"techcentre1"Frame 63Symbol 600 MovieClip [techcentre]
"oil5"Frame 63Symbol 1029 MovieClip
"rig10"Frame 63Symbol 1036 MovieClip
"oil4"Frame 63Symbol 1029 MovieClip
"waypoint100"Frame 63Symbol 876 MovieClip [flag copy]
"waypoint101"Frame 63Symbol 876 MovieClip [flag copy]
"waypoint102"Frame 63Symbol 876 MovieClip [flag copy]
"waypoint103"Frame 63Symbol 876 MovieClip [flag copy]
"waypoint104"Frame 63Symbol 876 MovieClip [flag copy]
"rallypoint"Frame 63Symbol 1040 MovieClip
"ai"Frame 63Symbol 1099 MovieClip
"lock2"Frame 63Symbol 876 MovieClip [flag copy]
"waypoint101"Frame 63Symbol 876 MovieClip [flag copy]
"waypoint102"Frame 63Symbol 876 MovieClip [flag copy]
"waypoint103"Frame 63Symbol 876 MovieClip [flag copy]
"oil3"Frame 63Symbol 1029 MovieClip
"rig8"Frame 63Symbol 1036 MovieClip
"burton"Frame 63Symbol 1038 MovieClip
"box"Frame 63Symbol 1042 MovieClip
"ai"Frame 64Symbol 1099 MovieClip
"back"Frame 66Symbol 1156 MovieClip
"box5"Frame 66Symbol 648 MovieClip [box5]
"ai"Frame 67Symbol 1099 MovieClip
"enemyrefinery1"Frame 67Symbol 590 MovieClip [enemyrefinery]
"derrick1"Frame 67Symbol 1158 MovieClip
"derrick2"Frame 67Symbol 1158 MovieClip
"derrick3"Frame 67Symbol 1158 MovieClip
"derrick4"Frame 67Symbol 1158 MovieClip
"enemycomcentre1"Frame 67Symbol 592 MovieClip [enemycomcentre]
"enemyservicedepot1"Frame 67Symbol 594 MovieClip [enemyservicedepot]
"enemytechcentre1"Frame 67Symbol 596 MovieClip [enemytechcentre]
"enemywarfactory1"Frame 67Symbol 586 MovieClip [enemywarfactory]
"oil5"Frame 67Symbol 1029 MovieClip
"rig10"Frame 67Symbol 1036 MovieClip
"rig11"Frame 67Symbol 1036 MovieClip
"rig12"Frame 67Symbol 1036 MovieClip
"oil4"Frame 67Symbol 1029 MovieClip
"oil3"Frame 67Symbol 1029 MovieClip
"reinforcement"Frame 67Symbol 876 MovieClip [flag copy]
"lock1"Frame 67Symbol 876 MovieClip [flag copy]
"waypoint1"Frame 67Symbol 876 MovieClip [flag copy]
"waypoint2"Frame 67Symbol 876 MovieClip [flag copy]
"waypoint3"Frame 67Symbol 876 MovieClip [flag copy]
"waypoint47"Frame 67Symbol 876 MovieClip [flag copy]
"waypoint16"Frame 67Symbol 876 MovieClip [flag copy]
"waypoint21"Frame 67Symbol 876 MovieClip [flag copy]
"waypoint22"Frame 67Symbol 876 MovieClip [flag copy]
"waypoint23"Frame 67Symbol 876 MovieClip [flag copy]
"waypoint100"Frame 67Symbol 876 MovieClip [flag copy]
"waypoint101"Frame 67Symbol 876 MovieClip [flag copy]
"waypoint102"Frame 67Symbol 876 MovieClip [flag copy]
"waypoint103"Frame 67Symbol 876 MovieClip [flag copy]
"waypoint104"Frame 67Symbol 876 MovieClip [flag copy]
"flag1"Frame 67Symbol 876 MovieClip [flag copy]
"burton"Frame 67Symbol 1038 MovieClip
"box"Frame 67Symbol 1042 MovieClip
"ai"Frame 68Symbol 1099 MovieClip
"waypoint3"Frame 69Symbol 876 MovieClip [flag copy]
"waypoint2"Frame 69Symbol 876 MovieClip [flag copy]
"waypoint1"Frame 69Symbol 876 MovieClip [flag copy]
"back"Frame 70Symbol 1156 MovieClip
"box5"Frame 70Symbol 648 MovieClip [box5]
"back"Frame 71Symbol 1156 MovieClip
"reinforcement"Frame 71Symbol 876 MovieClip [flag copy]
"lock1"Frame 71Symbol 876 MovieClip [flag copy]
"waypoint100"Frame 71Symbol 876 MovieClip [flag copy]
"waypoint101"Frame 71Symbol 876 MovieClip [flag copy]
"waypoint102"Frame 71Symbol 876 MovieClip [flag copy]
"waypoint103"Frame 71Symbol 876 MovieClip [flag copy]
"back"Frame 71Symbol 1156 MovieClip
"derrick1"Frame 71Symbol 1158 MovieClip
"derrick2"Frame 71Symbol 1158 MovieClip
"derrick3"Frame 71Symbol 1158 MovieClip
"derrick4"Frame 71Symbol 1158 MovieClip
"oil5"Frame 71Symbol 1029 MovieClip
"rig10"Frame 71Symbol 1036 MovieClip
"rig11"Frame 71Symbol 1036 MovieClip
"rig12"Frame 71Symbol 1036 MovieClip
"oil4"Frame 71Symbol 1029 MovieClip
"oil3"Frame 71Symbol 1029 MovieClip
"reinforcement"Frame 71Symbol 876 MovieClip [flag copy]
"lock1"Frame 71Symbol 876 MovieClip [flag copy]
"waypoint103"Frame 71Symbol 876 MovieClip [flag copy]
"flag3"Frame 71Symbol 876 MovieClip [flag copy]
"flag1"Frame 71Symbol 876 MovieClip [flag copy]
"waypoint1"Frame 71Symbol 876 MovieClip [flag copy]
"waypoint2"Frame 71Symbol 876 MovieClip [flag copy]
"waypoint3"Frame 71Symbol 876 MovieClip [flag copy]
"waypoint47"Frame 71Symbol 876 MovieClip [flag copy]
"waypoint16"Frame 71Symbol 876 MovieClip [flag copy]
"waypoint21"Frame 71Symbol 876 MovieClip [flag copy]
"waypoint22"Frame 71Symbol 876 MovieClip [flag copy]
"waypoint23"Frame 71Symbol 876 MovieClip [flag copy]
"waypoint104"Frame 71Symbol 876 MovieClip [flag copy]
"rallypoint"Frame 71Symbol 1040 MovieClip
"ai"Frame 71Symbol 1099 MovieClip
"lock2"Frame 71Symbol 876 MovieClip [flag copy]
"waypoint103"Frame 71Symbol 876 MovieClip [flag copy]
"burton"Frame 71Symbol 1038 MovieClip
"box"Frame 71Symbol 1042 MovieClip
"ai"Frame 72Symbol 1099 MovieClip
"back"Frame 74Symbol 1086 MovieClip
"box5"Frame 74Symbol 648 MovieClip [box5]
"ai"Frame 75Symbol 1099 MovieClip
"reinforcement"Frame 75Symbol 876 MovieClip [flag copy]
"lock1"Frame 75Symbol 876 MovieClip [flag copy]
"waypoint1"Frame 75Symbol 876 MovieClip [flag copy]
"waypoint2"Frame 75Symbol 876 MovieClip [flag copy]
"waypoint3"Frame 75Symbol 876 MovieClip [flag copy]
"waypoint16"Frame 75Symbol 876 MovieClip [flag copy]
"waypoint22"Frame 75Symbol 876 MovieClip [flag copy]
"waypoint23"Frame 75Symbol 876 MovieClip [flag copy]
"waypoint100"Frame 75Symbol 876 MovieClip [flag copy]
"waypoint101"Frame 75Symbol 876 MovieClip [flag copy]
"flag5"Frame 75Symbol 876 MovieClip [flag copy]
"waypoint102"Frame 75Symbol 876 MovieClip [flag copy]
"waypoint103"Frame 75Symbol 876 MovieClip [flag copy]
"waypoint104"Frame 75Symbol 876 MovieClip [flag copy]
"oil2"Frame 75Symbol 1029 MovieClip
"oil1"Frame 75Symbol 1029 MovieClip
"oil3"Frame 75Symbol 1029 MovieClip
"rig10"Frame 75Symbol 1036 MovieClip
"rig11"Frame 75Symbol 1036 MovieClip
"enemytechcentre1"Frame 75Symbol 596 MovieClip [enemytechcentre]
"flag1"Frame 75Symbol 876 MovieClip [flag copy]
"enemyrefinery1"Frame 75Symbol 590 MovieClip [enemyrefinery]
"enemycomcentre1"Frame 75Symbol 592 MovieClip [enemycomcentre]
"enemywarfactory1"Frame 75Symbol 586 MovieClip [enemywarfactory]
"enemyservicedepot1"Frame 75Symbol 594 MovieClip [enemyservicedepot]
"airport"Frame 75Symbol 1162 MovieClip
"burton"Frame 75Symbol 1038 MovieClip
"box"Frame 75Symbol 1042 MovieClip
"ai"Frame 76Symbol 1099 MovieClip
"waypoint3"Frame 77Symbol 876 MovieClip [flag copy]
"waypoint2"Frame 77Symbol 876 MovieClip [flag copy]
"waypoint1"Frame 77Symbol 876 MovieClip [flag copy]
"back"Frame 78Symbol 1086 MovieClip
"box5"Frame 78Symbol 648 MovieClip [box5]
"back"Frame 79Symbol 1086 MovieClip
"ai"Frame 79Symbol 1099 MovieClip
"reinforcement"Frame 79Symbol 876 MovieClip [flag copy]
"lock1"Frame 79Symbol 876 MovieClip [flag copy]
"waypoint1"Frame 79Symbol 876 MovieClip [flag copy]
"waypoint2"Frame 79Symbol 876 MovieClip [flag copy]
"waypoint3"Frame 79Symbol 876 MovieClip [flag copy]
"waypoint16"Frame 79Symbol 876 MovieClip [flag copy]
"waypoint22"Frame 79Symbol 876 MovieClip [flag copy]
"waypoint23"Frame 79Symbol 876 MovieClip [flag copy]
"waypoint100"Frame 79Symbol 876 MovieClip [flag copy]
"waypoint101"Frame 79Symbol 876 MovieClip [flag copy]
"waypoint102"Frame 79Symbol 876 MovieClip [flag copy]
"flag5"Frame 79Symbol 876 MovieClip [flag copy]
"waypoint102"Frame 79Symbol 876 MovieClip [flag copy]
"waypoint103"Frame 79Symbol 876 MovieClip [flag copy]
"waypoint104"Frame 79Symbol 876 MovieClip [flag copy]
"oil2"Frame 79Symbol 1029 MovieClip
"oil1"Frame 79Symbol 1029 MovieClip
"oil3"Frame 79Symbol 1029 MovieClip
"rig10"Frame 79Symbol 1036 MovieClip
"rig11"Frame 79Symbol 1036 MovieClip
"flag1"Frame 79Symbol 876 MovieClip [flag copy]
"airport"Frame 79Symbol 1162 MovieClip
"burton"Frame 79Symbol 1038 MovieClip
"rallypoint"Frame 79Symbol 1040 MovieClip
"ai"Frame 79Symbol 1099 MovieClip
"lock2"Frame 79Symbol 876 MovieClip [flag copy]
"box"Frame 79Symbol 1042 MovieClip
"ai"Frame 80Symbol 1099 MovieClip
"box5"Frame 82Symbol 648 MovieClip [box5]
"back"Frame 83Symbol 1164 MovieClip
"ai"Frame 83Symbol 1099 MovieClip
"reinforcement"Frame 83Symbol 876 MovieClip [flag copy]
"lock1"Frame 83Symbol 876 MovieClip [flag copy]
"waypoint1"Frame 83Symbol 876 MovieClip [flag copy]
"waypoint2"Frame 83Symbol 876 MovieClip [flag copy]
"waypoint3"Frame 83Symbol 876 MovieClip [flag copy]
"waypoint16"Frame 83Symbol 876 MovieClip [flag copy]
"waypoint22"Frame 83Symbol 876 MovieClip [flag copy]
"waypoint23"Frame 83Symbol 876 MovieClip [flag copy]
"waypoint100"Frame 83Symbol 876 MovieClip [flag copy]
"waypoint101"Frame 83Symbol 876 MovieClip [flag copy]
"waypoint102"Frame 83Symbol 876 MovieClip [flag copy]
"waypoint103"Frame 83Symbol 876 MovieClip [flag copy]
"waypoint104"Frame 83Symbol 876 MovieClip [flag copy]
"flag1"Frame 83Symbol 876 MovieClip [flag copy]
"enemycomcentre1"Frame 83Symbol 592 MovieClip [enemycomcentre]
"enemyrefinery1"Frame 83Symbol 590 MovieClip [enemyrefinery]
"enemyservicedepot1"Frame 83Symbol 594 MovieClip [enemyservicedepot]
"lock2"Frame 83Symbol 876 MovieClip [flag copy]
"enemyweaponsilo2"Frame 83Symbol 572 MovieClip [enemyweaponsilo]
"enemyweaponsilo3"Frame 83Symbol 572 MovieClip [enemyweaponsilo]
"waypoint2"Frame 83Symbol 876 MovieClip [flag copy]
"burton"Frame 83Symbol 1038 MovieClip
"enemytechcentre1"Frame 83Symbol 596 MovieClip [enemytechcentre]
"enemyweaponsilo1"Frame 83Symbol 572 MovieClip [enemyweaponsilo]
"enemylasertank1"Frame 83Symbol 575 MovieClip [enemylasertank]
"enemywarfactory1"Frame 83Symbol 586 MovieClip [enemywarfactory]
"oil2"Frame 83Symbol 1029 MovieClip
"rig11"Frame 83Symbol 1036 MovieClip
"oil1"Frame 83Symbol 1029 MovieClip
"rig10"Frame 83Symbol 1036 MovieClip
"box"Frame 83Symbol 1042 MovieClip
"ai"Frame 84Symbol 1099 MovieClip
"waypoint3"Frame 85Symbol 876 MovieClip [flag copy]
"waypoint2"Frame 85Symbol 876 MovieClip [flag copy]
"waypoint1"Frame 85Symbol 876 MovieClip [flag copy]
"back"Frame 86Symbol 1164 MovieClip
"box5"Frame 86Symbol 648 MovieClip [box5]
"back"Frame 87Symbol 1164 MovieClip
"ai"Frame 87Symbol 1099 MovieClip
"reinforcement"Frame 87Symbol 876 MovieClip [flag copy]
"lock1"Frame 87Symbol 876 MovieClip [flag copy]
"waypoint1"Frame 87Symbol 876 MovieClip [flag copy]
"waypoint2"Frame 87Symbol 876 MovieClip [flag copy]
"waypoint3"Frame 87Symbol 876 MovieClip [flag copy]
"waypoint16"Frame 87Symbol 876 MovieClip [flag copy]
"waypoint22"Frame 87Symbol 876 MovieClip [flag copy]
"waypoint23"Frame 87Symbol 876 MovieClip [flag copy]
"waypoint100"Frame 87Symbol 876 MovieClip [flag copy]
"waypoint101"Frame 87Symbol 876 MovieClip [flag copy]
"waypoint102"Frame 87Symbol 876 MovieClip [flag copy]
"waypoint102"Frame 87Symbol 876 MovieClip [flag copy]
"waypoint103"Frame 87Symbol 876 MovieClip [flag copy]
"waypoint104"Frame 87Symbol 876 MovieClip [flag copy]
"oil2"Frame 87Symbol 1029 MovieClip
"oil3"Frame 87Symbol 1029 MovieClip
"rig10"Frame 87Symbol 1036 MovieClip
"rig11"Frame 87Symbol 1036 MovieClip
"flag1"Frame 87Symbol 876 MovieClip [flag copy]
"weaponsilo1"Frame 87Symbol 568 MovieClip [weaponsilo]
"burton"Frame 87Symbol 1038 MovieClip
"rallypoint"Frame 87Symbol 1040 MovieClip
"ai"Frame 87Symbol 1099 MovieClip
"lock2"Frame 87Symbol 876 MovieClip [flag copy]
"box"Frame 87Symbol 1042 MovieClip
"ai"Frame 88Symbol 1099 MovieClip
"ai"Frame 89Symbol 1099 MovieClip
"box5"Frame 94Symbol 648 MovieClip [box5]
"backbk"Frame 94Symbol 1018 MovieClip
"back"Frame 94Symbol 1018 MovieClip
"back"Frame 95Symbol 1018 MovieClip
"oil1"Frame 95Symbol 1029 MovieClip
"oil3"Frame 95Symbol 1029 MovieClip
"oil6"Frame 95Symbol 1029 MovieClip
"rig6"Frame 95Symbol 1036 MovieClip
"waypoint4"Frame 95Symbol 876 MovieClip [flag copy]
"rig10"Frame 95Symbol 1036 MovieClip
"rig19"Frame 95Symbol 1036 MovieClip
"tank1"Frame 95Symbol 633 MovieClip [light]
"burton"Frame 95Symbol 1038 MovieClip
"rallypoint"Frame 95Symbol 1040 MovieClip
"tutorial"Frame 95Symbol 1212 MovieClip
"enemytechcentre1"Frame 95Symbol 596 MovieClip [enemytechcentre]
"tank2"Frame 95Symbol 633 MovieClip [light]
"tank3"Frame 95Symbol 633 MovieClip [light]
"humvee1"Frame 95Symbol 640 MovieClip [humvee]
"enemyheavytank1"Frame 95Symbol 641 MovieClip [enemyheavy]
"a2"Frame 95Symbol 634 MovieClip [heavy]
"a3"Frame 95Symbol 640 MovieClip [humvee]
"a5"Frame 95Symbol 640 MovieClip [humvee]
"missilelaunch1"Frame 95Symbol 639 MovieClip [rocket]
"a1"Frame 95Symbol 635 MovieClip [artillery]
"a4"Frame 95Symbol 635 MovieClip [artillery]
"flag1"Frame 95Symbol 876 MovieClip [flag copy]
"box"Frame 95Symbol 1042 MovieClip
"flag2"Frame 95Symbol 876 MovieClip [flag copy]
"waypointn"Frame 95Symbol 876 MovieClip [flag copy]
"victory"Frame 96Symbol 1213 MovieClip
"back"Frame 131Symbol 1080 MovieClip
"box5"Frame 131Symbol 648 MovieClip [box5]
"oil3"Frame 132Symbol 1029 MovieClip
"rig10"Frame 132Symbol 1036 MovieClip
"enemyrefinery1"Frame 132Symbol 590 MovieClip [enemyrefinery]
"enemytechcentre1"Frame 132Symbol 596 MovieClip [enemytechcentre]
"oil2"Frame 132Symbol 1029 MovieClip
"rig10"Frame 132Symbol 1036 MovieClip
"waypoint102"Frame 132Symbol 876 MovieClip [flag copy]
"waypoint103"Frame 132Symbol 876 MovieClip [flag copy]
"waypoint104"Frame 132Symbol 876 MovieClip [flag copy]
"waypoint105"Frame 132Symbol 876 MovieClip [flag copy]
"rallypoint"Frame 132Symbol 1040 MovieClip
"flag12"Frame 132Symbol 876 MovieClip [flag copy]
"dozer1"Frame 132Symbol 638 MovieClip [dozer]
"ai"Frame 132Symbol 1099 MovieClip
"waypoint101"Frame 132Symbol 876 MovieClip [flag copy]
"patroit"Frame 132Symbol 617 MovieClip [enemymultiple]
"enemycomcentre1"Frame 132Symbol 592 MovieClip [enemycomcentre]
"enemywarfactory1"Frame 132Symbol 586 MovieClip [enemywarfactory]
"burton"Frame 132Symbol 1038 MovieClip
"tutorial"Frame 132Symbol 1243 MovieClip
"box"Frame 132Symbol 1042 MovieClip
"oil5"Frame 132Symbol 1029 MovieClip
"rig122"Frame 132Symbol 1036 MovieClip
"victory"Frame 133Symbol 1213 MovieClip
"map2"Frame 136Symbol 1117 MovieClip
"map6"Frame 136Symbol 1117 MovieClip
"map3"Frame 136Symbol 1120 MovieClip
"map5"Frame 136Symbol 1117 MovieClip
"map9"Frame 136Symbol 1117 MovieClip
"map8"Frame 136Symbol 1117 MovieClip
"map4"Frame 136Symbol 1117 MovieClip
"map7"Frame 136Symbol 1117 MovieClip
"alarm"Frame 136Symbol 1128 MovieClip
"tutorial"Frame 136Symbol 1282 MovieClip
"boxns"Symbol 76 MovieClip Frame 2Symbol 20 MovieClip
"auto"Symbol 76 MovieClip Frame 9Symbol 64 MovieClip
"boxns"Symbol 96 MovieClip Frame 2Symbol 20 MovieClip
"auto"Symbol 96 MovieClip Frame 9Symbol 64 MovieClip
"d1"Symbol 97 MovieClip Frame 1Symbol 76 MovieClip
"d2"Symbol 97 MovieClip Frame 1Symbol 76 MovieClip
"d15"Symbol 97 MovieClip Frame 1Symbol 76 MovieClip
"d16"Symbol 97 MovieClip Frame 1Symbol 76 MovieClip
"d19"Symbol 97 MovieClip Frame 1Symbol 76 MovieClip
"d20"Symbol 97 MovieClip Frame 1Symbol 76 MovieClip
"d7"Symbol 97 MovieClip Frame 1Symbol 76 MovieClip
"d8"Symbol 97 MovieClip Frame 1Symbol 76 MovieClip
"d11"Symbol 97 MovieClip Frame 1Symbol 76 MovieClip
"d12"Symbol 97 MovieClip Frame 1Symbol 76 MovieClip
"d13"Symbol 97 MovieClip Frame 1Symbol 76 MovieClip
"d14"Symbol 97 MovieClip Frame 1Symbol 76 MovieClip
"d17"Symbol 97 MovieClip Frame 1Symbol 76 MovieClip
"d18"Symbol 97 MovieClip Frame 1Symbol 76 MovieClip
"d5"Symbol 97 MovieClip Frame 1Symbol 76 MovieClip
"d6"Symbol 97 MovieClip Frame 1Symbol 76 MovieClip
"d9"Symbol 97 MovieClip Frame 1Symbol 76 MovieClip
"d10"Symbol 97 MovieClip Frame 1Symbol 76 MovieClip
"d3"Symbol 97 MovieClip Frame 1Symbol 76 MovieClip
"d4"Symbol 97 MovieClip Frame 1Symbol 76 MovieClip
"picture"Symbol 97 MovieClip Frame 2Symbol 96 MovieClip
"d1"Symbol 116 MovieClip Frame 1Symbol 114 MovieClip
"d2"Symbol 116 MovieClip Frame 1Symbol 114 MovieClip
"d3"Symbol 116 MovieClip Frame 1Symbol 114 MovieClip
"d4"Symbol 116 MovieClip Frame 1Symbol 114 MovieClip
"d5"Symbol 116 MovieClip Frame 1Symbol 114 MovieClip
"d6"Symbol 116 MovieClip Frame 1Symbol 114 MovieClip
"d12"Symbol 116 MovieClip Frame 1Symbol 114 MovieClip
"d11"Symbol 116 MovieClip Frame 1Symbol 114 MovieClip
"d10"Symbol 116 MovieClip Frame 1Symbol 114 MovieClip
"d9"Symbol 116 MovieClip Frame 1Symbol 114 MovieClip
"d8"Symbol 116 MovieClip Frame 1Symbol 114 MovieClip
"d7"Symbol 116 MovieClip Frame 1Symbol 114 MovieClip
"d13"Symbol 116 MovieClip Frame 1Symbol 114 MovieClip
"d14"Symbol 116 MovieClip Frame 1Symbol 114 MovieClip
"d15"Symbol 116 MovieClip Frame 1Symbol 114 MovieClip
"d16"Symbol 116 MovieClip Frame 1Symbol 114 MovieClip
"d17"Symbol 116 MovieClip Frame 1Symbol 114 MovieClip
"d18"Symbol 116 MovieClip Frame 1Symbol 114 MovieClip
"shower"Symbol 138 MovieClip [mapbar] Frame 1Symbol 97 MovieClip
"build"Symbol 138 MovieClip [mapbar] Frame 1Symbol 116 MovieClip
"invadebutton"Symbol 138 MovieClip [mapbar] Frame 1Symbol 131 Button
"commandbutton"Symbol 138 MovieClip [mapbar] Frame 1Symbol 137 Button
"stripe"Symbol 186 MovieClip Frame 1Symbol 57 MovieClip
"dummy"Symbol 197 MovieClip [lightally] Frame 1Symbol 186 MovieClip
"selector"Symbol 197 MovieClip [lightally] Frame 1Symbol 188 MovieClip
"turret"Symbol 197 MovieClip [lightally] Frame 1Symbol 193 MovieClip
"lifebar"Symbol 197 MovieClip [lightally] Frame 1Symbol 196 MovieClip
"stripe"Symbol 205 MovieClip Frame 1Symbol 57 MovieClip
"dummy"Symbol 206 MovieClip [heavyally] Frame 1Symbol 202 MovieClip
"selector"Symbol 206 MovieClip [heavyally] Frame 1Symbol 188 MovieClip
"turret"Symbol 206 MovieClip [heavyally] Frame 1Symbol 205 MovieClip
"lifebar"Symbol 206 MovieClip [heavyally] Frame 1Symbol 196 MovieClip
"stripe"Symbol 215 MovieClip Frame 1Symbol 57 MovieClip
"dummy"Symbol 226 MovieClip [artilleryally] Frame 1Symbol 215 MovieClip
"selector"Symbol 226 MovieClip [artilleryally] Frame 1Symbol 188 MovieClip
"turret"Symbol 226 MovieClip [artilleryally] Frame 1Symbol 225 MovieClip
"lifebar"Symbol 226 MovieClip [artilleryally] Frame 1Symbol 196 MovieClip
"stripe"Symbol 238 MovieClip Frame 1Symbol 57 MovieClip
"dummy"Symbol 239 MovieClip [rocketally] Frame 1Symbol 229 MovieClip
"selector"Symbol 239 MovieClip [rocketally] Frame 1Symbol 188 MovieClip
"turret"Symbol 239 MovieClip [rocketally] Frame 1Symbol 238 MovieClip
"lifebar"Symbol 239 MovieClip [rocketally] Frame 1Symbol 196 MovieClip
"stripe3"Symbol 241 MovieClip [humveeebase] Frame 1Symbol 57 MovieClip
"stripe1"Symbol 241 MovieClip [humveeebase] Frame 1Symbol 57 MovieClip
"stripe2"Symbol 241 MovieClip [humveeebase] Frame 1Symbol 57 MovieClip
"dummy"Symbol 248 MovieClip [humveeally] Frame 1Symbol 241 MovieClip [humveeebase]
"selector"Symbol 248 MovieClip [humveeally] Frame 1Symbol 188 MovieClip
"turret"Symbol 248 MovieClip [humveeally] Frame 1Symbol 247 MovieClip
"lifebar"Symbol 248 MovieClip [humveeally] Frame 1Symbol 196 MovieClip
"dummy"Symbol 256 MovieClip [oiltruck] Frame 1Symbol 255 MovieClip
"selector"Symbol 256 MovieClip [oiltruck] Frame 1Symbol 188 MovieClip
"lifebar"Symbol 256 MovieClip [oiltruck] Frame 1Symbol 196 MovieClip
"oilbar"Symbol 256 MovieClip [oiltruck] Frame 1Symbol 196 MovieClip
"dummy"Symbol 263 MovieClip [lasertank] Frame 1Symbol 258 MovieClip
"selector"Symbol 263 MovieClip [lasertank] Frame 1Symbol 188 MovieClip
"turret"Symbol 263 MovieClip [lasertank] Frame 1Symbol 262 MovieClip
"lifebar"Symbol 263 MovieClip [lasertank] Frame 1Symbol 196 MovieClip
"turret"Symbol 270 MovieClip [laserbasedefense] Frame 1Symbol 268 MovieClip
"selector"Symbol 270 MovieClip [laserbasedefense] Frame 1Symbol 188 MovieClip
"auto"Symbol 270 MovieClip [laserbasedefense] Frame 1Symbol 64 MovieClip
"lifebar"Symbol 270 MovieClip [laserbasedefense] Frame 1Symbol 196 MovieClip
"selector"Symbol 276 MovieClip [mine] Frame 1Symbol 188 MovieClip
"turret"Symbol 287 MovieClip [turrets] Frame 1Symbol 286 MovieClip
"selector"Symbol 287 MovieClip [turrets] Frame 1Symbol 188 MovieClip
"auto"Symbol 287 MovieClip [turrets] Frame 1Symbol 64 MovieClip
"lifebar"Symbol 287 MovieClip [turrets] Frame 1Symbol 196 MovieClip
"mouse"Symbol 308 MovieClip [mo] Frame 1Symbol 304 MovieClip
"selector"Symbol 319 MovieClip [enemyconstruction] Frame 1Symbol 188 MovieClip
"lifebar"Symbol 319 MovieClip [enemyconstruction] Frame 1Symbol 196 MovieClip
"selector"Symbol 325 MovieClip [construction2] Frame 1Symbol 188 MovieClip
"lifebar"Symbol 325 MovieClip [construction2] Frame 1Symbol 196 MovieClip
"selector"Symbol 333 MovieClip [construction] Frame 1Symbol 188 MovieClip
"lifebar"Symbol 333 MovieClip [construction] Frame 1Symbol 196 MovieClip
"centre"Symbol 480 MovieClip Frame 3Symbol 462 MovieClip
"back"Symbol 480 MovieClip Frame 5Symbol 474 MovieClip
"back"Symbol 480 MovieClip Frame 6Symbol 478 MovieClip
"mapp"Symbol 566 MovieClip [bar] Frame 48Symbol 480 MovieClip
"lists2"Symbol 566 MovieClip [bar] Frame 48Symbol 531 MovieClip
"lists"Symbol 566 MovieClip [bar] Frame 48Symbol 565 MovieClip
"selector"Symbol 568 MovieClip [weaponsilo] Frame 1Symbol 188 MovieClip
"auto"Symbol 568 MovieClip [weaponsilo] Frame 1Symbol 64 MovieClip
"lifebar"Symbol 568 MovieClip [weaponsilo] Frame 1Symbol 196 MovieClip
"selector"Symbol 572 MovieClip [enemyweaponsilo] Frame 1Symbol 188 MovieClip
"auto"Symbol 572 MovieClip [enemyweaponsilo] Frame 1Symbol 570 MovieClip
"lifebar"Symbol 572 MovieClip [enemyweaponsilo] Frame 1Symbol 196 MovieClip
"dummy"Symbol 575 MovieClip [enemylasertank] Frame 1Symbol 574 MovieClip
"selector"Symbol 575 MovieClip [enemylasertank] Frame 1Symbol 188 MovieClip
"turret"Symbol 575 MovieClip [enemylasertank] Frame 1Symbol 262 MovieClip
"lifebar"Symbol 575 MovieClip [enemylasertank] Frame 1Symbol 196 MovieClip
"dummy"Symbol 580 MovieClip [enemyoiltruck] Frame 1Symbol 579 MovieClip
"selector"Symbol 580 MovieClip [enemyoiltruck] Frame 1Symbol 188 MovieClip
"lifebar"Symbol 580 MovieClip [enemyoiltruck] Frame 1Symbol 196 MovieClip
"turret"Symbol 582 MovieClip [enemyturret] Frame 1Symbol 286 MovieClip
"auto"Symbol 582 MovieClip [enemyturret] Frame 1Symbol 570 MovieClip
"selector"Symbol 582 MovieClip [enemyturret] Frame 1Symbol 188 MovieClip
"lifebar"Symbol 582 MovieClip [enemyturret] Frame 1Symbol 196 MovieClip
"lifebar"Symbol 586 MovieClip [enemywarfactory] Frame 1Symbol 196 MovieClip
"selector"Symbol 586 MovieClip [enemywarfactory] Frame 1Symbol 188 MovieClip
"auto"Symbol 586 MovieClip [enemywarfactory] Frame 1Symbol 570 MovieClip
"selector"Symbol 590 MovieClip [enemyrefinery] Frame 1Symbol 188 MovieClip
"auto"Symbol 590 MovieClip [enemyrefinery] Frame 1Symbol 570 MovieClip
"pad"Symbol 590 MovieClip [enemyrefinery] Frame 1Symbol 589 MovieClip
"lifebar"Symbol 590 MovieClip [enemyrefinery] Frame 1Symbol 196 MovieClip
"selector"Symbol 592 MovieClip [enemycomcentre] Frame 1Symbol 188 MovieClip
"auto"Symbol 592 MovieClip [enemycomcentre] Frame 1Symbol 570 MovieClip
"lifebar"Symbol 592 MovieClip [enemycomcentre] Frame 1Symbol 196 MovieClip
"selector"Symbol 594 MovieClip [enemyservicedepot] Frame 1Symbol 188 MovieClip
"auto"Symbol 594 MovieClip [enemyservicedepot] Frame 1Symbol 570 MovieClip
"lifebar"Symbol 594 MovieClip [enemyservicedepot] Frame 1Symbol 196 MovieClip
"selector"Symbol 596 MovieClip [enemytechcentre] Frame 1Symbol 188 MovieClip
"auto"Symbol 596 MovieClip [enemytechcentre] Frame 1Symbol 570 MovieClip
"lifebar"Symbol 596 MovieClip [enemytechcentre] Frame 1Symbol 196 MovieClip
"selector"Symbol 598 MovieClip [servicedepot] Frame 1Symbol 188 MovieClip
"auto"Symbol 598 MovieClip [servicedepot] Frame 1Symbol 64 MovieClip
"auto2"Symbol 598 MovieClip [servicedepot] Frame 1Symbol 64 MovieClip
"lifebar"Symbol 598 MovieClip [servicedepot] Frame 1Symbol 196 MovieClip
"selector"Symbol 600 MovieClip [techcentre] Frame 1Symbol 188 MovieClip
"auto"Symbol 600 MovieClip [techcentre] Frame 1Symbol 64 MovieClip
"lifebar"Symbol 600 MovieClip [techcentre] Frame 1Symbol 196 MovieClip
"turret"Symbol 602 MovieClip [enemylaser] Frame 1Symbol 268 MovieClip
"selector"Symbol 602 MovieClip [enemylaser] Frame 1Symbol 188 MovieClip
"auto"Symbol 602 MovieClip [enemylaser] Frame 1Symbol 570 MovieClip
"lifebar"Symbol 602 MovieClip [enemylaser] Frame 1Symbol 196 MovieClip
"selector"Symbol 609 MovieClip [enemymine] Frame 1Symbol 188 MovieClip
"auto"Symbol 609 MovieClip [enemymine] Frame 1Symbol 64 MovieClip
"lifebar"Symbol 609 MovieClip [enemymine] Frame 1Symbol 196 MovieClip
"turret"Symbol 617 MovieClip [enemymultiple] Frame 1Symbol 616 MovieClip
"auto"Symbol 617 MovieClip [enemymultiple] Frame 1Symbol 570 MovieClip
"selector"Symbol 617 MovieClip [enemymultiple] Frame 1Symbol 188 MovieClip
"lifebar"Symbol 617 MovieClip [enemymultiple] Frame 1Symbol 196 MovieClip
"turret"Symbol 619 MovieClip [patriotmiss] Frame 1Symbol 616 MovieClip
"selector"Symbol 619 MovieClip [patriotmiss] Frame 1Symbol 188 MovieClip
"auto"Symbol 619 MovieClip [patriotmiss] Frame 1Symbol 64 MovieClip
"lifebar"Symbol 619 MovieClip [patriotmiss] Frame 1Symbol 196 MovieClip
"auto"Symbol 621 MovieClip [warfactory] Frame 1Symbol 64 MovieClip
"selector"Symbol 621 MovieClip [warfactory] Frame 1Symbol 188 MovieClip
"lifebar"Symbol 621 MovieClip [warfactory] Frame 1Symbol 196 MovieClip
"pad"Symbol 623 MovieClip [refinery] Frame 1Symbol 589 MovieClip
"selector"Symbol 623 MovieClip [refinery] Frame 1Symbol 188 MovieClip
"auto"Symbol 623 MovieClip [refinery] Frame 1Symbol 64 MovieClip
"lifebar"Symbol 623 MovieClip [refinery] Frame 1Symbol 196 MovieClip
"selector"Symbol 625 MovieClip [comcentre] Frame 1Symbol 188 MovieClip
"auto"Symbol 625 MovieClip [comcentre] Frame 1Symbol 64 MovieClip
"lifebar"Symbol 625 MovieClip [comcentre] Frame 1Symbol 196 MovieClip
"selector"Symbol 630 MovieClip [enemyconstruction2] Frame 1Symbol 188 MovieClip
"lifebar"Symbol 630 MovieClip [enemyconstruction2] Frame 1Symbol 196 MovieClip
"dummy"Symbol 633 MovieClip [light] Frame 1Symbol 186 MovieClip
"selector"Symbol 633 MovieClip [light] Frame 1Symbol 188 MovieClip
"turret"Symbol 633 MovieClip [light] Frame 1Symbol 193 MovieClip
"lifebar"Symbol 633 MovieClip [light] Frame 1Symbol 196 MovieClip
"dummy"Symbol 634 MovieClip [heavy] Frame 1Symbol 202 MovieClip
"selector"Symbol 634 MovieClip [heavy] Frame 1Symbol 188 MovieClip
"turret"Symbol 634 MovieClip [heavy] Frame 1Symbol 205 MovieClip
"lifebar"Symbol 634 MovieClip [heavy] Frame 1Symbol 196 MovieClip
"dummy"Symbol 635 MovieClip [artillery] Frame 1Symbol 215 MovieClip
"selector"Symbol 635 MovieClip [artillery] Frame 1Symbol 188 MovieClip
"turret"Symbol 635 MovieClip [artillery] Frame 1Symbol 225 MovieClip
"lifebar"Symbol 635 MovieClip [artillery] Frame 1Symbol 196 MovieClip
"dummy"Symbol 638 MovieClip [dozer] Frame 1Symbol 637 MovieClip
"selector"Symbol 638 MovieClip [dozer] Frame 1Symbol 188 MovieClip
"lifebar"Symbol 638 MovieClip [dozer] Frame 1Symbol 196 MovieClip
"dummy"Symbol 639 MovieClip [rocket] Frame 1Symbol 229 MovieClip
"selector"Symbol 639 MovieClip [rocket] Frame 1Symbol 188 MovieClip
"turret"Symbol 639 MovieClip [rocket] Frame 1Symbol 238 MovieClip
"lifebar"Symbol 639 MovieClip [rocket] Frame 1Symbol 196 MovieClip
"dummy"Symbol 640 MovieClip [humvee] Frame 1Symbol 241 MovieClip [humveeebase]
"selector"Symbol 640 MovieClip [humvee] Frame 1Symbol 188 MovieClip
"turret"Symbol 640 MovieClip [humvee] Frame 1Symbol 247 MovieClip
"lifebar"Symbol 640 MovieClip [humvee] Frame 1Symbol 196 MovieClip
"dummy"Symbol 641 MovieClip [enemyheavy] Frame 1Symbol 202 MovieClip
"selector"Symbol 641 MovieClip [enemyheavy] Frame 1Symbol 188 MovieClip
"turret"Symbol 641 MovieClip [enemyheavy] Frame 1Symbol 205 MovieClip
"lifebar"Symbol 641 MovieClip [enemyheavy] Frame 1Symbol 196 MovieClip
"dummy"Symbol 642 MovieClip [enemyrocket] Frame 1Symbol 229 MovieClip
"selector"Symbol 642 MovieClip [enemyrocket] Frame 1Symbol 188 MovieClip
"turret"Symbol 642 MovieClip [enemyrocket] Frame 1Symbol 238 MovieClip
"lifebar"Symbol 642 MovieClip [enemyrocket] Frame 1Symbol 196 MovieClip
"selector"Symbol 643 MovieClip [enemyhumvee] Frame 1Symbol 188 MovieClip
"dummy"Symbol 643 MovieClip [enemyhumvee] Frame 1Symbol 241 MovieClip [humveeebase]
"turret"Symbol 643 MovieClip [enemyhumvee] Frame 1Symbol 247 MovieClip
"lifebar"Symbol 643 MovieClip [enemyhumvee] Frame 1Symbol 196 MovieClip
"dummy"Symbol 644 MovieClip [enemylight] Frame 1Symbol 186 MovieClip
"selector"Symbol 644 MovieClip [enemylight] Frame 1Symbol 188 MovieClip
"turret"Symbol 644 MovieClip [enemylight] Frame 1Symbol 193 MovieClip
"lifebar"Symbol 644 MovieClip [enemylight] Frame 1Symbol 196 MovieClip
"dummy"Symbol 645 MovieClip [enemyartillery] Frame 1Symbol 215 MovieClip
"selector"Symbol 645 MovieClip [enemyartillery] Frame 1Symbol 188 MovieClip
"turret"Symbol 645 MovieClip [enemyartillery] Frame 1Symbol 225 MovieClip
"lifebar"Symbol 645 MovieClip [enemyartillery] Frame 1Symbol 196 MovieClip
"dummy"Symbol 646 MovieClip [enemydozer] Frame 1Symbol 637 MovieClip
"selector"Symbol 646 MovieClip [enemydozer] Frame 1Symbol 188 MovieClip
"lifebar"Symbol 646 MovieClip [enemydozer] Frame 1Symbol 196 MovieClip
"boxns"Symbol 712 MovieClip Frame 2Symbol 20 MovieClip
"auto"Symbol 712 MovieClip Frame 9Symbol 64 MovieClip
"d1"Symbol 714 MovieClip Frame 1Symbol 712 MovieClip
"d2"Symbol 714 MovieClip Frame 1Symbol 712 MovieClip
"d15"Symbol 714 MovieClip Frame 1Symbol 712 MovieClip
"d16"Symbol 714 MovieClip Frame 1Symbol 712 MovieClip
"d19"Symbol 714 MovieClip Frame 1Symbol 712 MovieClip
"d20"Symbol 714 MovieClip Frame 1Symbol 712 MovieClip
"d7"Symbol 714 MovieClip Frame 1Symbol 712 MovieClip
"d8"Symbol 714 MovieClip Frame 1Symbol 712 MovieClip
"d11"Symbol 714 MovieClip Frame 1Symbol 712 MovieClip
"d12"Symbol 714 MovieClip Frame 1Symbol 712 MovieClip
"d13"Symbol 714 MovieClip Frame 1Symbol 712 MovieClip
"d14"Symbol 714 MovieClip Frame 1Symbol 712 MovieClip
"d17"Symbol 714 MovieClip Frame 1Symbol 712 MovieClip
"d18"Symbol 714 MovieClip Frame 1Symbol 712 MovieClip
"d5"Symbol 714 MovieClip Frame 1Symbol 712 MovieClip
"d6"Symbol 714 MovieClip Frame 1Symbol 712 MovieClip
"d9"Symbol 714 MovieClip Frame 1Symbol 712 MovieClip
"d10"Symbol 714 MovieClip Frame 1Symbol 712 MovieClip
"d3"Symbol 714 MovieClip Frame 1Symbol 712 MovieClip
"d4"Symbol 714 MovieClip Frame 1Symbol 712 MovieClip
"picture"Symbol 714 MovieClip Frame 2Symbol 96 MovieClip
"s"Symbol 761 MovieClip Frame 12Symbol 653 MovieClip
"s"Symbol 775 MovieClip Frame 12Symbol 653 MovieClip
"humvee"Symbol 778 MovieClip Frame 1Symbol 761 MovieClip
"light"Symbol 778 MovieClip Frame 1Symbol 761 MovieClip
"rocket"Symbol 778 MovieClip Frame 1Symbol 761 MovieClip
"artillery"Symbol 778 MovieClip Frame 1Symbol 761 MovieClip
"heavy"Symbol 778 MovieClip Frame 1Symbol 761 MovieClip
"dozer"Symbol 778 MovieClip Frame 1Symbol 766 MovieClip
"oilbar"Symbol 778 MovieClip Frame 1Symbol 196 MovieClip
"oiltruck"Symbol 778 MovieClip Frame 1Symbol 761 MovieClip
"comcentre"Symbol 778 MovieClip Frame 1Symbol 769 MovieClip
"refinery"Symbol 778 MovieClip Frame 1Symbol 769 MovieClip
"warfactory"Symbol 778 MovieClip Frame 1Symbol 769 MovieClip
"techcentre"Symbol 778 MovieClip Frame 1Symbol 769 MovieClip
"turrets"Symbol 778 MovieClip Frame 1Symbol 771 MovieClip
"patriotmissile"Symbol 778 MovieClip Frame 1Symbol 771 MovieClip
"laser"Symbol 778 MovieClip Frame 1Symbol 771 MovieClip
"servicedepot"Symbol 778 MovieClip Frame 1Symbol 769 MovieClip
"mine"Symbol 778 MovieClip Frame 1Symbol 771 MovieClip
"lasertank"Symbol 778 MovieClip Frame 1Symbol 775 MovieClip
"weaponsilo"Symbol 778 MovieClip Frame 1Symbol 777 MovieClip
"centre"Symbol 804 MovieClip Frame 1Symbol 462 MovieClip
"lefts"Symbol 804 MovieClip Frame 1Symbol 803 MovieClip
"tops"Symbol 804 MovieClip Frame 1Symbol 803 MovieClip
"bottoms"Symbol 804 MovieClip Frame 1Symbol 803 MovieClip
"rights"Symbol 804 MovieClip Frame 1Symbol 803 MovieClip
"back"Symbol 819 MovieClip Frame 3Symbol 804 MovieClip
"centre"Symbol 819 MovieClip Frame 4Symbol 462 MovieClip
"back"Symbol 819 MovieClip Frame 8Symbol 474 MovieClip
"back"Symbol 819 MovieClip Frame 10Symbol 478 MovieClip
"back"Symbol 819 MovieClip Frame 11Symbol 818 MovieClip
"nuketimer"Symbol 834 MovieClip [sidebar] Frame 1Symbol 671 MovieClip
"enemynuketimer"Symbol 834 MovieClip [sidebar] Frame 1Symbol 691 MovieClip
"shower"Symbol 834 MovieClip [sidebar] Frame 1Symbol 714 MovieClip
"s1"Symbol 834 MovieClip [sidebar] Frame 1Symbol 739 MovieClip
"s2"Symbol 834 MovieClip [sidebar] Frame 1Symbol 741 MovieClip
"s3"Symbol 834 MovieClip [sidebar] Frame 1Symbol 741 MovieClip
"s4"Symbol 834 MovieClip [sidebar] Frame 1Symbol 741 MovieClip
"s5"Symbol 834 MovieClip [sidebar] Frame 1Symbol 741 MovieClip
"s6"Symbol 834 MovieClip [sidebar] Frame 1Symbol 741 MovieClip
"s7"Symbol 834 MovieClip [sidebar] Frame 1Symbol 741 MovieClip
"s8"Symbol 834 MovieClip [sidebar] Frame 1Symbol 741 MovieClip
"s14"Symbol 834 MovieClip [sidebar] Frame 1Symbol 741 MovieClip
"s9"Symbol 834 MovieClip [sidebar] Frame 1Symbol 741 MovieClip
"s15"Symbol 834 MovieClip [sidebar] Frame 1Symbol 741 MovieClip
"s10"Symbol 834 MovieClip [sidebar] Frame 1Symbol 741 MovieClip
"s16"Symbol 834 MovieClip [sidebar] Frame 1Symbol 741 MovieClip
"s17"Symbol 834 MovieClip [sidebar] Frame 1Symbol 741 MovieClip
"s11"Symbol 834 MovieClip [sidebar] Frame 1Symbol 741 MovieClip
"s18"Symbol 834 MovieClip [sidebar] Frame 1Symbol 741 MovieClip
"s12"Symbol 834 MovieClip [sidebar] Frame 1Symbol 741 MovieClip
"s13"Symbol 834 MovieClip [sidebar] Frame 1Symbol 741 MovieClip
"build"Symbol 834 MovieClip [sidebar] Frame 1Symbol 778 MovieClip
"mapp"Symbol 834 MovieClip [sidebar] Frame 1Symbol 819 MovieClip
"radarscreen"Symbol 834 MovieClip [sidebar] Frame 1Symbol 823 MovieClip
"escape"Symbol 834 MovieClip [sidebar] Frame 1Symbol 833 MovieClip
"b"Symbol 887 MovieClip [SimpleButtonDown] Frame 1Symbol 884 MovieClip [BrdrShdw]
"face"Symbol 887 MovieClip [SimpleButtonDown] Frame 1Symbol 886 MovieClip [BrdrFace]
"b"Symbol 892 MovieClip [SimpleButtonIn] Frame 1Symbol 889 MovieClip [BrdrBlk]
"it"Symbol 892 MovieClip [SimpleButtonIn] Frame 1Symbol 891 MovieClip [BrdrHilght]
"g"Symbol 892 MovieClip [SimpleButtonIn] Frame 1Symbol 884 MovieClip [BrdrShdw]
"face"Symbol 892 MovieClip [SimpleButtonIn] Frame 1Symbol 886 MovieClip [BrdrFace]
"ob"Symbol 893 MovieClip [SimpleButtonUp] Frame 1Symbol 889 MovieClip [BrdrBlk]
"ol"Symbol 893 MovieClip [SimpleButtonUp] Frame 1Symbol 886 MovieClip [BrdrFace]
"ib"Symbol 893 MovieClip [SimpleButtonUp] Frame 1Symbol 884 MovieClip [BrdrShdw]
"il"Symbol 893 MovieClip [SimpleButtonUp] Frame 1Symbol 891 MovieClip [BrdrHilght]
"face"Symbol 893 MovieClip [SimpleButtonUp] Frame 1Symbol 886 MovieClip [BrdrFace]
"boundingBox_mc"Symbol 901 MovieClip [FocusRect] Frame 1Symbol 882 MovieClip [BoundingBox]
"tabCapture"Symbol 902 MovieClip [FocusManager] Frame 1Symbol 899 Button
"boundingBox_mc"Symbol 905 MovieClip [SimpleButton] Frame 1Symbol 882 MovieClip [BoundingBox]
"boundingBox_mc"Symbol 909 MovieClip [Button] Frame 1Symbol 882 MovieClip [BoundingBox]
"bar"Symbol 1004 MovieClip Frame 1Symbol 934 MovieClip
"bargfx"Symbol 1004 MovieClip Frame 1Symbol 937 MovieClip
"tank"Symbol 1004 MovieClip Frame 1Symbol 951 MovieClip
"bargfx"Symbol 1004 MovieClip Frame 2Symbol 937 MovieClip
"bargfx"Symbol 1004 MovieClip Frame 20Symbol 937 MovieClip
"centre"Symbol 1018 MovieClip Frame 1Symbol 1017 MovieClip
"lefts"Symbol 1018 MovieClip Frame 1Symbol 803 MovieClip
"tops"Symbol 1018 MovieClip Frame 1Symbol 803 MovieClip
"bottoms"Symbol 1018 MovieClip Frame 1Symbol 803 MovieClip
"rights"Symbol 1018 MovieClip Frame 1Symbol 803 MovieClip
"oilspill"Symbol 1029 MovieClip Frame 1Symbol 1028 MovieClip
"centre"Symbol 1070 MovieClip Frame 1Symbol 462 MovieClip
"lefts"Symbol 1070 MovieClip Frame 1Symbol 803 MovieClip
"bottoms"Symbol 1070 MovieClip Frame 1Symbol 803 MovieClip
"rights"Symbol 1070 MovieClip Frame 1Symbol 803 MovieClip
"tops"Symbol 1070 MovieClip Frame 1Symbol 803 MovieClip
"water"Symbol 1070 MovieClip Frame 1Symbol 1069 MovieClip
"centre"Symbol 1075 MovieClip Frame 1Symbol 462 MovieClip
"lefts"Symbol 1075 MovieClip Frame 1Symbol 803 MovieClip
"bottoms"Symbol 1075 MovieClip Frame 1Symbol 803 MovieClip
"rights"Symbol 1075 MovieClip Frame 1Symbol 803 MovieClip
"tops"Symbol 1075 MovieClip Frame 1Symbol 803 MovieClip
"centre"Symbol 1080 MovieClip Frame 1Symbol 1079 MovieClip
"lefts"Symbol 1080 MovieClip Frame 1Symbol 803 MovieClip
"tops"Symbol 1080 MovieClip Frame 1Symbol 803 MovieClip
"bottoms"Symbol 1080 MovieClip Frame 1Symbol 803 MovieClip
"rights"Symbol 1080 MovieClip Frame 1Symbol 803 MovieClip
"centre"Symbol 1086 MovieClip Frame 1Symbol 462 MovieClip
"lefts"Symbol 1086 MovieClip Frame 1Symbol 803 MovieClip
"bottoms"Symbol 1086 MovieClip Frame 1Symbol 803 MovieClip
"rights"Symbol 1086 MovieClip Frame 1Symbol 803 MovieClip
"tops"Symbol 1086 MovieClip Frame 1Symbol 803 MovieClip
"water"Symbol 1086 MovieClip Frame 1Symbol 1085 MovieClip
"centre"Symbol 1088 MovieClip Frame 1Symbol 462 MovieClip
"lefts"Symbol 1088 MovieClip Frame 1Symbol 803 MovieClip
"tops"Symbol 1088 MovieClip Frame 1Symbol 803 MovieClip
"bottoms"Symbol 1088 MovieClip Frame 1Symbol 803 MovieClip
"rights"Symbol 1088 MovieClip Frame 1Symbol 803 MovieClip
"lifebar"Symbol 1095 MovieClip Frame 1Symbol 196 MovieClip
"selecteds"Symbol 1117 MovieClip Frame 1Symbol 1115 MovieClip
"selecteds"Symbol 1120 MovieClip Frame 1Symbol 1115 MovieClip
"centre"Symbol 1132 MovieClip Frame 1Symbol 462 MovieClip
"lefts"Symbol 1132 MovieClip Frame 1Symbol 803 MovieClip
"tops"Symbol 1132 MovieClip Frame 1Symbol 803 MovieClip
"bottoms"Symbol 1132 MovieClip Frame 1Symbol 803 MovieClip
"rights"Symbol 1132 MovieClip Frame 1Symbol 803 MovieClip
"water"Symbol 1132 MovieClip Frame 1Symbol 1131 MovieClip
"selector"Symbol 1134 MovieClip Frame 1Symbol 188 MovieClip
"auto"Symbol 1134 MovieClip Frame 1Symbol 64 MovieClip
"lifebar"Symbol 1134 MovieClip Frame 1Symbol 196 MovieClip
"lifebar"Symbol 1136 MovieClip Frame 1Symbol 196 MovieClip
"selector"Symbol 1136 MovieClip Frame 1Symbol 188 MovieClip
"auto"Symbol 1136 MovieClip Frame 1Symbol 570 MovieClip
"selector"Symbol 1138 MovieClip Frame 1Symbol 188 MovieClip
"auto"Symbol 1138 MovieClip Frame 1Symbol 570 MovieClip
"lifebar"Symbol 1138 MovieClip Frame 1Symbol 196 MovieClip
"selector"Symbol 1140 MovieClip Frame 1Symbol 188 MovieClip
"auto"Symbol 1140 MovieClip Frame 1Symbol 570 MovieClip
"lifebar"Symbol 1140 MovieClip Frame 1Symbol 196 MovieClip
"centre"Symbol 1149 MovieClip Frame 1Symbol 462 MovieClip
"lefts"Symbol 1149 MovieClip Frame 1Symbol 803 MovieClip
"bottoms"Symbol 1149 MovieClip Frame 1Symbol 803 MovieClip
"rights"Symbol 1149 MovieClip Frame 1Symbol 803 MovieClip
"tops"Symbol 1149 MovieClip Frame 1Symbol 803 MovieClip
"water"Symbol 1149 MovieClip Frame 1Symbol 1148 MovieClip
"selector"Symbol 1151 MovieClip Frame 1Symbol 188 MovieClip
"lifebar"Symbol 1151 MovieClip Frame 1Symbol 196 MovieClip
"centre"Symbol 1156 MovieClip Frame 1Symbol 462 MovieClip
"lefts"Symbol 1156 MovieClip Frame 1Symbol 803 MovieClip
"bottoms"Symbol 1156 MovieClip Frame 1Symbol 803 MovieClip
"rights"Symbol 1156 MovieClip Frame 1Symbol 803 MovieClip
"tops"Symbol 1156 MovieClip Frame 1Symbol 803 MovieClip
"water"Symbol 1156 MovieClip Frame 1Symbol 1155 MovieClip
"selector"Symbol 1158 MovieClip Frame 1Symbol 188 MovieClip
"lifebar"Symbol 1158 MovieClip Frame 1Symbol 196 MovieClip
"selector"Symbol 1162 MovieClip Frame 1Symbol 188 MovieClip
"auto"Symbol 1162 MovieClip Frame 1Symbol 570 MovieClip
"lifebar"Symbol 1162 MovieClip Frame 1Symbol 196 MovieClip
"centre"Symbol 1164 MovieClip Frame 1Symbol 462 MovieClip
"lefts"Symbol 1164 MovieClip Frame 1Symbol 803 MovieClip
"bottoms"Symbol 1164 MovieClip Frame 1Symbol 803 MovieClip
"rights"Symbol 1164 MovieClip Frame 1Symbol 803 MovieClip
"tops"Symbol 1164 MovieClip Frame 1Symbol 803 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
Protect (24)Timeline Frame 10 bytes ""
ExportAssets (56)Timeline Frame 1Symbol 1 as "music"
ExportAssets (56)Timeline Frame 1Symbol 2 as "missi"
ExportAssets (56)Timeline Frame 1Symbol 3 as "mach"
ExportAssets (56)Timeline Frame 1Symbol 4 as "exp3"
ExportAssets (56)Timeline Frame 1Symbol 5 as "lights"
ExportAssets (56)Timeline Frame 1Symbol 6 as "Las"
ExportAssets (56)Timeline Frame 1Symbol 7 as "la"
ExportAssets (56)Timeline Frame 1Symbol 8 as "exp"
ExportAssets (56)Timeline Frame 1Symbol 9 as "exp2"
ExportAssets (56)Timeline Frame 1Symbol 10 as "cannon6"
ExportAssets (56)Timeline Frame 1Symbol 11 as "blip"
ExportAssets (56)Timeline Frame 1Symbol 12 as "ar"
ExportAssets (56)Timeline Frame 1Symbol 13 as "crash"
ExportAssets (56)Timeline Frame 1Symbol 14 as "click"
ExportAssets (56)Timeline Frame 1Symbol 138 as "mapbar"
ExportAssets (56)Timeline Frame 1Symbol 144 as "missiondefend2"
ExportAssets (56)Timeline Frame 1Symbol 147 as "missiondefend"
ExportAssets (56)Timeline Frame 1Symbol 150 as "missiondefend6"
ExportAssets (56)Timeline Frame 1Symbol 152 as "missiondefend5"
ExportAssets (56)Timeline Frame 1Symbol 154 as "missiondefend4"
ExportAssets (56)Timeline Frame 1Symbol 156 as "missiondefend3"
ExportAssets (56)Timeline Frame 1Symbol 158 as "mission9"
ExportAssets (56)Timeline Frame 1Symbol 160 as "mission8"
ExportAssets (56)Timeline Frame 1Symbol 162 as "mission6"
ExportAssets (56)Timeline Frame 1Symbol 164 as "mission5"
ExportAssets (56)Timeline Frame 1Symbol 166 as "mission4"
ExportAssets (56)Timeline Frame 1Symbol 174 as "mission2"
ExportAssets (56)Timeline Frame 1Symbol 179 as "mission"
ExportAssets (56)Timeline Frame 1Symbol 197 as "lightally"
ExportAssets (56)Timeline Frame 1Symbol 206 as "heavyally"
ExportAssets (56)Timeline Frame 1Symbol 226 as "artilleryally"
ExportAssets (56)Timeline Frame 1Symbol 239 as "rocketally"
ExportAssets (56)Timeline Frame 1Symbol 241 as "humveeebase"
ExportAssets (56)Timeline Frame 1Symbol 248 as "humveeally"
ExportAssets (56)Timeline Frame 1Symbol 256 as "oiltruck"
ExportAssets (56)Timeline Frame 1Symbol 263 as "lasertank"
ExportAssets (56)Timeline Frame 1Symbol 270 as "laserbasedefense"
ExportAssets (56)Timeline Frame 1Symbol 276 as "mine"
ExportAssets (56)Timeline Frame 1Symbol 287 as "turrets"
ExportAssets (56)Timeline Frame 1Symbol 292 as "rad"
ExportAssets (56)Timeline Frame 1Symbol 295 as "laser2"
ExportAssets (56)Timeline Frame 1Symbol 299 as "ionbeams"
ExportAssets (56)Timeline Frame 1Symbol 302 as "laser"
ExportAssets (56)Timeline Frame 1Symbol 308 as "mo"
ExportAssets (56)Timeline Frame 1Symbol 319 as "enemyconstruction"
ExportAssets (56)Timeline Frame 1Symbol 325 as "construction2"
ExportAssets (56)Timeline Frame 1Symbol 333 as "construction"
ExportAssets (56)Timeline Frame 1Symbol 336 as "bigdot2"
ExportAssets (56)Timeline Frame 1Symbol 338 as "bigdot"
ExportAssets (56)Timeline Frame 1Symbol 341 as "dot2"
ExportAssets (56)Timeline Frame 1Symbol 352 as "nuke"
ExportAssets (56)Timeline Frame 1Symbol 357 as "targeter"
ExportAssets (56)Timeline Frame 1Symbol 362 as "nukemiss2"
ExportAssets (56)Timeline Frame 1Symbol 364 as "nukemiss"
ExportAssets (56)Timeline Frame 1Symbol 366 as "padded"
ExportAssets (56)Timeline Frame 1Symbol 566 as "bar"
ExportAssets (56)Timeline Frame 1Symbol 568 as "weaponsilo"
ExportAssets (56)Timeline Frame 1Symbol 572 as "enemyweaponsilo"
ExportAssets (56)Timeline Frame 1Symbol 575 as "enemylasertank"
ExportAssets (56)Timeline Frame 1Symbol 580 as "enemyoiltruck"
ExportAssets (56)Timeline Frame 1Symbol 582 as "enemyturret"
ExportAssets (56)Timeline Frame 1Symbol 584 as "mission3"
ExportAssets (56)Timeline Frame 1Symbol 586 as "enemywarfactory"
ExportAssets (56)Timeline Frame 1Symbol 590 as "enemyrefinery"
ExportAssets (56)Timeline Frame 1Symbol 592 as "enemycomcentre"
ExportAssets (56)Timeline Frame 1Symbol 594 as "enemyservicedepot"
ExportAssets (56)Timeline Frame 1Symbol 596 as "enemytechcentre"
ExportAssets (56)Timeline Frame 1Symbol 598 as "servicedepot"
ExportAssets (56)Timeline Frame 1Symbol 600 as "techcentre"
ExportAssets (56)Timeline Frame 1Symbol 602 as "enemylaser"
ExportAssets (56)Timeline Frame 1Symbol 609 as "enemymine"
ExportAssets (56)Timeline Frame 1Symbol 617 as "enemymultiple"
ExportAssets (56)Timeline Frame 1Symbol 619 as "patriotmiss"
ExportAssets (56)Timeline Frame 1Symbol 621 as "warfactory"
ExportAssets (56)Timeline Frame 1Symbol 623 as "refinery"
ExportAssets (56)Timeline Frame 1Symbol 625 as "comcentre"
ExportAssets (56)Timeline Frame 1Symbol 630 as "enemyconstruction2"
ExportAssets (56)Timeline Frame 1Symbol 632 as "dot"
ExportAssets (56)Timeline Frame 1Symbol 633 as "light"
ExportAssets (56)Timeline Frame 1Symbol 634 as "heavy"
ExportAssets (56)Timeline Frame 1Symbol 635 as "artillery"
ExportAssets (56)Timeline Frame 1Symbol 638 as "dozer"
ExportAssets (56)Timeline Frame 1Symbol 639 as "rocket"
ExportAssets (56)Timeline Frame 1Symbol 640 as "humvee"
ExportAssets (56)Timeline Frame 1Symbol 641 as "enemyheavy"
ExportAssets (56)Timeline Frame 1Symbol 642 as "enemyrocket"
ExportAssets (56)Timeline Frame 1Symbol 643 as "enemyhumvee"
ExportAssets (56)Timeline Frame 1Symbol 644 as "enemylight"
ExportAssets (56)Timeline Frame 1Symbol 645 as "enemyartillery"
ExportAssets (56)Timeline Frame 1Symbol 646 as "enemydozer"
ExportAssets (56)Timeline Frame 1Symbol 648 as "box5"
ExportAssets (56)Timeline Frame 1Symbol 834 as "sidebar"
ExportAssets (56)Timeline Frame 1Symbol 837 as "patriot"
ExportAssets (56)Timeline Frame 1Symbol 843 as "shell2"
ExportAssets (56)Timeline Frame 1Symbol 844 as "emp"
ExportAssets (56)Timeline Frame 1Symbol 849 as "bomb2"
ExportAssets (56)Timeline Frame 1Symbol 853 as "bomb"
ExportAssets (56)Timeline Frame 1Symbol 857 as "bullet"
ExportAssets (56)Timeline Frame 1Symbol 861 as "missile"
ExportAssets (56)Timeline Frame 1Symbol 865 as "flag2"
ExportAssets (56)Timeline Frame 1Symbol 870 as "shell"
ExportAssets (56)Timeline Frame 1Symbol 873 as "flag"
ExportAssets (56)Timeline Frame 1Symbol 876 as "flag copy"
ExportAssets (56)Timeline Frame 1Symbol 882 as "BoundingBox"
ExportAssets (56)Timeline Frame 1Symbol 884 as "BrdrShdw"
ExportAssets (56)Timeline Frame 1Symbol 886 as "BrdrFace"
ExportAssets (56)Timeline Frame 1Symbol 887 as "SimpleButtonDown"
ExportAssets (56)Timeline Frame 1Symbol 889 as "BrdrBlk"
ExportAssets (56)Timeline Frame 1Symbol 891 as "BrdrHilght"
ExportAssets (56)Timeline Frame 1Symbol 892 as "SimpleButtonIn"
ExportAssets (56)Timeline Frame 1Symbol 893 as "SimpleButtonUp"
ExportAssets (56)Timeline Frame 1Symbol 894 as "Defaults"
ExportAssets (56)Timeline Frame 1Symbol 895 as "UIObjectExtensions"
ExportAssets (56)Timeline Frame 1Symbol 896 as "UIObject"
ExportAssets (56)Timeline Frame 1Symbol 901 as "FocusRect"
ExportAssets (56)Timeline Frame 1Symbol 902 as "FocusManager"
ExportAssets (56)Timeline Frame 1Symbol 903 as "UIComponentExtensions"
ExportAssets (56)Timeline Frame 1Symbol 904 as "UIComponent"
ExportAssets (56)Timeline Frame 1Symbol 905 as "SimpleButton"
ExportAssets (56)Timeline Frame 1Symbol 906 as "Border"
ExportAssets (56)Timeline Frame 1Symbol 907 as "RectBorder"
ExportAssets (56)Timeline Frame 1Symbol 908 as "ButtonSkin"
ExportAssets (56)Timeline Frame 1Symbol 909 as "Button"
ExportAssets (56)Timeline Frame 1Symbol 877 as "__Packages.mx.core.UIObject"
ExportAssets (56)Timeline Frame 1Symbol 878 as "__Packages.mx.core.UIComponent"
ExportAssets (56)Timeline Frame 1Symbol 879 as "__Packages.mx.controls.SimpleButton"
ExportAssets (56)Timeline Frame 1Symbol 880 as "__Packages.mx.controls.Button"
ExportAssets (56)Timeline Frame 1Symbol 910 as "__Packages.mx.skins.SkinElement"
ExportAssets (56)Timeline Frame 1Symbol 911 as "__Packages.mx.styles.CSSTextStyles"
ExportAssets (56)Timeline Frame 1Symbol 912 as "__Packages.mx.styles.StyleManager"
ExportAssets (56)Timeline Frame 1Symbol 913 as "__Packages.mx.styles.CSSStyleDeclaration"
ExportAssets (56)Timeline Frame 1Symbol 914 as "__Packages.mx.events.EventDispatcher"
ExportAssets (56)Timeline Frame 1Symbol 915 as "__Packages.mx.events.UIEventDispatcher"
ExportAssets (56)Timeline Frame 1Symbol 916 as "__Packages.mx.skins.ColoredSkinElement"
ExportAssets (56)Timeline Frame 1Symbol 917 as "__Packages.mx.core.ext.UIObjectExtensions"
ExportAssets (56)Timeline Frame 1Symbol 918 as "__Packages.mx.skins.halo.Defaults"
ExportAssets (56)Timeline Frame 1Symbol 919 as "__Packages.mx.managers.DepthManager"
ExportAssets (56)Timeline Frame 1Symbol 920 as "__Packages.mx.managers.SystemManager"
ExportAssets (56)Timeline Frame 1Symbol 921 as "__Packages.mx.managers.FocusManager"
ExportAssets (56)Timeline Frame 1Symbol 922 as "__Packages.mx.skins.halo.FocusRect"
ExportAssets (56)Timeline Frame 1Symbol 923 as "__Packages.mx.managers.OverlappedWindows"
ExportAssets (56)Timeline Frame 1Symbol 924 as "__Packages.mx.styles.CSSSetStyle"
ExportAssets (56)Timeline Frame 1Symbol 925 as "__Packages.mx.core.ext.UIComponentExtensions"
ExportAssets (56)Timeline Frame 1Symbol 926 as "__Packages.mx.skins.Border"
ExportAssets (56)Timeline Frame 1Symbol 927 as "__Packages.mx.skins.RectBorder"
ExportAssets (56)Timeline Frame 1Symbol 928 as "__Packages.mx.skins.halo.RectBorder"
ExportAssets (56)Timeline Frame 1Symbol 929 as "__Packages.mx.skins.halo.ButtonSkin"

Labels

"backupload"Frame 6
"skirmish0"Frame 9
"victory"Frame 11
"defeat"Frame 12
"skirmish1"Frame 13
"skirmish2"Frame 15
"bo"Frame 16
"skirmish3"Frame 17
"skirmish4"Frame 19
"skirmish5"Frame 21
"end2"Frame 23
"warfactory1"Frame 26
"victory1"Frame 27
"defeat1"Frame 28
"map2"Frame 29
"victory2"Frame 31
"defeat2"Frame 32
"mapbar"Frame 33
"map3"Frame 34
"victory3"Frame 36
"defeat3"Frame 37
"map2d"Frame 38
"victory2d"Frame 40
"defeat2d"Frame 41
"map4"Frame 42
"victory4"Frame 44
"defeat4"Frame 45
"map4d"Frame 46
"victory4d"Frame 48
"defeat4d"Frame 49
"map5"Frame 50
"victory5"Frame 52
"defeat5"Frame 53
"map5d"Frame 54
"victory5d"Frame 56
"defeat5d"Frame 57
"map6"Frame 58
"victory6"Frame 60
"defeat6"Frame 61
"map6d"Frame 62
"victory6d"Frame 64
"defeat6d"Frame 65
"map7"Frame 66
"victory7"Frame 68
"defeat7"Frame 69
"map7d"Frame 70
"victory7d"Frame 72
"defeat7d"Frame 73
"map8"Frame 74
"victory8"Frame 76
"defeat8"Frame 77
"map8d"Frame 78
"victory8d"Frame 80
"defeat8d"Frame 81
"map9"Frame 82
"victory9"Frame 84
"defeat9"Frame 85
"map9d"Frame 86
"victory9d"Frame 88
"defeat9d"Frame 89
"end"Frame 90
"victree"Frame 91
"end6"Frame 92
"victoryd"Frame 96
"motor"Frame 129
"victory2e"Frame 133
"defeat2e"Frame 134
"motor2"Frame 135
"mapbarn"Frame 136
"meow"Frame 137
"blue"Symbol 57 MovieClip Frame 1
"red"Symbol 57 MovieClip Frame 2
"none"Symbol 76 MovieClip Frame 1
"artillery"Symbol 76 MovieClip Frame 2
"light"Symbol 76 MovieClip Frame 3
"rocket"Symbol 76 MovieClip Frame 4
"humvee"Symbol 76 MovieClip Frame 5
"heavy"Symbol 76 MovieClip Frame 6
"war factory"Symbol 76 MovieClip Frame 7
"dozer"Symbol 76 MovieClip Frame 8
"comcentre"Symbol 76 MovieClip Frame 9
"oiltruck"Symbol 76 MovieClip Frame 10
"refinery"Symbol 76 MovieClip Frame 11
"construction"Symbol 76 MovieClip Frame 12
"turret1"Symbol 76 MovieClip Frame 13
"turret2"Symbol 76 MovieClip Frame 14
"turret3"Symbol 76 MovieClip Frame 15
"techcentre"Symbol 76 MovieClip Frame 16
"servicedepot"Symbol 76 MovieClip Frame 17
"mine"Symbol 76 MovieClip Frame 18
"lasertank"Symbol 76 MovieClip Frame 19
"weaponsilo"Symbol 76 MovieClip Frame 20
"none"Symbol 96 MovieClip Frame 1
"artillery"Symbol 96 MovieClip Frame 2
"light"Symbol 96 MovieClip Frame 3
"rocket"Symbol 96 MovieClip Frame 4
"humvee"Symbol 96 MovieClip Frame 5
"heavy"Symbol 96 MovieClip Frame 6
"war factory"Symbol 96 MovieClip Frame 7
"dozer"Symbol 96 MovieClip Frame 8
"comcentre"Symbol 96 MovieClip Frame 9
"oiltruck"Symbol 96 MovieClip Frame 10
"refinery"Symbol 96 MovieClip Frame 11
"construction"Symbol 96 MovieClip Frame 12
"turret1"Symbol 96 MovieClip Frame 13
"turret2"Symbol 96 MovieClip Frame 14
"turret3"Symbol 96 MovieClip Frame 15
"techcentre"Symbol 96 MovieClip Frame 16
"servicedepot"Symbol 96 MovieClip Frame 17
"mine"Symbol 96 MovieClip Frame 18
"lasertank"Symbol 96 MovieClip Frame 19
"weaponsilo"Symbol 96 MovieClip Frame 20
"group"Symbol 97 MovieClip Frame 1
"selected"Symbol 97 MovieClip Frame 2
"none"Symbol 114 MovieClip Frame 1
"artillery"Symbol 114 MovieClip Frame 2
"light"Symbol 114 MovieClip Frame 3
"rocket"Symbol 114 MovieClip Frame 4
"humvee"Symbol 114 MovieClip Frame 5
"heavy"Symbol 114 MovieClip Frame 6
"dozer"Symbol 114 MovieClip Frame 7
"lasertank"Symbol 114 MovieClip Frame 8
"upgrade"Symbol 138 MovieClip [mapbar] Frame 1
"explode"Symbol 186 MovieClip Frame 2
"normal"Symbol 193 MovieClip Frame 1
"explode"Symbol 202 MovieClip Frame 2
"normal"Symbol 205 MovieClip Frame 1
"deploying"Symbol 215 MovieClip Frame 2
"deployed"Symbol 215 MovieClip Frame 10
"explode"Symbol 215 MovieClip Frame 11
"normal"Symbol 225 MovieClip Frame 1
"ready"Symbol 225 MovieClip Frame 2
"explode"Symbol 229 MovieClip Frame 2
"normal"Symbol 238 MovieClip Frame 1
"rd"Symbol 238 MovieClip Frame 18
"explode"Symbol 241 MovieClip [humveeebase] Frame 2
"normal"Symbol 247 MovieClip Frame 1
"shoot"Symbol 247 MovieClip Frame 7
"sucking"Symbol 255 MovieClip Frame 2
"refining"Symbol 255 MovieClip Frame 3
"explode"Symbol 255 MovieClip Frame 9
"explode"Symbol 258 MovieClip Frame 2
"normal"Symbol 262 MovieClip Frame 1
"normal"Symbol 268 MovieClip Frame 1
"explode"Symbol 270 MovieClip [laserbasedefense] Frame 2
"explode"Symbol 276 MovieClip [mine] Frame 2
"normal"Symbol 286 MovieClip Frame 1
"explode"Symbol 287 MovieClip [turrets] Frame 2
"locator"Symbol 308 MovieClip [mo] Frame 2
"attacker"Symbol 308 MovieClip [mo] Frame 3
"built"Symbol 319 MovieClip [enemyconstruction] Frame 2
"explode"Symbol 319 MovieClip [enemyconstruction] Frame 3
"built"Symbol 325 MovieClip [construction2] Frame 2
"explode"Symbol 325 MovieClip [construction2] Frame 3
"built"Symbol 333 MovieClip [construction] Frame 2
"explode"Symbol 333 MovieClip [construction] Frame 3
"map0"Symbol 480 MovieClip Frame 1
"map3"Symbol 480 MovieClip Frame 2
"map5"Symbol 480 MovieClip Frame 3
"map1"Symbol 480 MovieClip Frame 4
"map2"Symbol 480 MovieClip Frame 5
"map4"Symbol 480 MovieClip Frame 6
"reverse"Symbol 566 MovieClip [bar] Frame 12
"options"Symbol 566 MovieClip [bar] Frame 27
"skirmish"Symbol 566 MovieClip [bar] Frame 38
"explode"Symbol 568 MovieClip [weaponsilo] Frame 2
"explode"Symbol 572 MovieClip [enemyweaponsilo] Frame 2
"explode"Symbol 574 MovieClip Frame 2
"sucking"Symbol 579 MovieClip Frame 2
"refining"Symbol 579 MovieClip Frame 3
"explode"Symbol 579 MovieClip Frame 9
"explode"Symbol 582 MovieClip [enemyturret] Frame 2
"explode"Symbol 586 MovieClip [enemywarfactory] Frame 2
"explode"Symbol 590 MovieClip [enemyrefinery] Frame 2
"explode"Symbol 592 MovieClip [enemycomcentre] Frame 2
"explode"Symbol 594 MovieClip [enemyservicedepot] Frame 2
"explode"Symbol 596 MovieClip [enemytechcentre] Frame 2
"explode"Symbol 598 MovieClip [servicedepot] Frame 2
"explode"Symbol 600 MovieClip [techcentre] Frame 2
"explode"Symbol 602 MovieClip [enemylaser] Frame 2
"explode"Symbol 609 MovieClip [enemymine] Frame 25
"normal"Symbol 616 MovieClip Frame 1
"rd"Symbol 616 MovieClip Frame 9
"explode"Symbol 617 MovieClip [enemymultiple] Frame 2
"explode"Symbol 619 MovieClip [patriotmiss] Frame 2
"explode"Symbol 621 MovieClip [warfactory] Frame 2
"explode"Symbol 623 MovieClip [refinery] Frame 2
"explode"Symbol 625 MovieClip [comcentre] Frame 2
"built"Symbol 630 MovieClip [enemyconstruction2] Frame 2
"explode"Symbol 630 MovieClip [enemyconstruction2] Frame 3
"explode"Symbol 637 MovieClip Frame 2
"nonuke"Symbol 671 MovieClip Frame 1
"nonuke"Symbol 691 MovieClip Frame 1
"none"Symbol 712 MovieClip Frame 1
"artillery"Symbol 712 MovieClip Frame 2
"light"Symbol 712 MovieClip Frame 3
"rocket"Symbol 712 MovieClip Frame 4
"humvee"Symbol 712 MovieClip Frame 5
"heavy"Symbol 712 MovieClip Frame 6
"war factory"Symbol 712 MovieClip Frame 7
"dozer"Symbol 712 MovieClip Frame 8
"comcentre"Symbol 712 MovieClip Frame 9
"oiltruck"Symbol 712 MovieClip Frame 10
"refinery"Symbol 712 MovieClip Frame 11
"construction"Symbol 712 MovieClip Frame 12
"turret1"Symbol 712 MovieClip Frame 13
"turret2"Symbol 712 MovieClip Frame 14
"turret3"Symbol 712 MovieClip Frame 15
"techcentre"Symbol 712 MovieClip Frame 16
"servicedepot"Symbol 712 MovieClip Frame 17
"mine"Symbol 712 MovieClip Frame 18
"lasertank"Symbol 712 MovieClip Frame 19
"weaponsilo"Symbol 712 MovieClip Frame 20
"airport"Symbol 712 MovieClip Frame 21
"derrick"Symbol 712 MovieClip Frame 22
"radar"Symbol 712 MovieClip Frame 23
"group"Symbol 714 MovieClip Frame 1
"selected"Symbol 714 MovieClip Frame 2
"none"Symbol 739 MovieClip Frame 1
"selected"Symbol 739 MovieClip Frame 2
"none"Symbol 741 MovieClip Frame 1
"selected"Symbol 741 MovieClip Frame 2
"none"Symbol 761 MovieClip Frame 1
"selected"Symbol 761 MovieClip Frame 2
"building"Symbol 761 MovieClip Frame 3
"reserved"Symbol 761 MovieClip Frame 12
"none"Symbol 766 MovieClip Frame 1
"selected"Symbol 766 MovieClip Frame 2
"building"Symbol 766 MovieClip Frame 3
"none"Symbol 769 MovieClip Frame 1
"selected"Symbol 769 MovieClip Frame 2
"built"Symbol 769 MovieClip Frame 3
"none"Symbol 771 MovieClip Frame 1
"selected"Symbol 771 MovieClip Frame 2
"none"Symbol 775 MovieClip Frame 1
"selected"Symbol 775 MovieClip Frame 2
"building"Symbol 775 MovieClip Frame 3
"reserved"Symbol 775 MovieClip Frame 12
"already"Symbol 775 MovieClip Frame 13
"none"Symbol 777 MovieClip Frame 1
"selected"Symbol 777 MovieClip Frame 2
"built"Symbol 777 MovieClip Frame 3
"map1"Symbol 819 MovieClip Frame 1
"map2"Symbol 819 MovieClip Frame 2
"dark"Symbol 823 MovieClip Frame 1
"group"Symbol 823 MovieClip Frame 2
"upgrade"Symbol 834 MovieClip [sidebar] Frame 1
"LOAD"Symbol 1004 MovieClip Frame 1
"COMPLETE_STOP"Symbol 1004 MovieClip Frame 2
"explode"Symbol 1095 MovieClip Frame 2
"explode"Symbol 1134 MovieClip Frame 2
"explode"Symbol 1136 MovieClip Frame 2
"explode"Symbol 1138 MovieClip Frame 2
"explode"Symbol 1140 MovieClip Frame 2
"explode"Symbol 1151 MovieClip Frame 2
"explode"Symbol 1158 MovieClip Frame 2
"explode"Symbol 1162 MovieClip Frame 2

Dynamic Text Variables

statsSymbol 79 EditableText"Rocket Launcher firepower: HP: speed: shellspeed: range: fire period:"
textsSymbol 115 EditableText"<p align="left"></p>"
wordsSymbol 119 EditableText"<p align="justify"><font face="Arial" size="16" color="#00ff00" letterSpacing="1.000000" kerning="1"><b>Copyright(c)</b></font></p><p align="justify"><font face="Arial" size="16" color="#00ff00" letterSpacing="1.000000" kerning="1"><b>Tank Wars</b></font></p><p align="justify"><font face="Arial" size="16" color="#00ff00" letterSpacing="1.000000" kerning="1"><b>2007</b></font></p><p align="justify"><font face="Arial" size="16" color="#00ff00" letterSpacing="1.000000" kerning="1"><b>best quality: medium</b></font></p><p align="justify"></p><p align="justify"><font face="Arial" size="16" color="#00ff00" letterSpacing="1.000000" kerning="1"><b>Dont build more than 50 units or lag.</b></font></p>"
_root.timertSymbol 172 EditableText"<p align="left"></p>"
_root.wavesSymbol 173 EditableText"<p align="left"></p>"
percentSymbol 312 EditableText"<p align="left"><font face="Arial" size="16" color="#990000" letterSpacing="0.000000" kerning="1">0</font></p>"
percentSymbol 317 EditableText"<p align="left"><font face="Arial" size="16" color="#ffffff" letterSpacing="0.000000" kerning="1">100</font></p>"
percentSymbol 322 EditableText"<p align="left"><font face="Arial" size="16" color="#0000ff" letterSpacing="0.000000" kerning="1">0</font></p>"
percentSymbol 328 EditableText"<p align="left"><font face="Arial" size="16" color="#0000ff" letterSpacing="0.000000" kerning="1">0</font></p>"
percentSymbol 331 EditableText"<p align="left"><font face="Arial" size="16" color="#ffffff" letterSpacing="0.000000" kerning="1">100</font></p>"
scSymbol 423 EditableText"<p align="left"><font face="MS Reference Sans Serif" size="40" color="#00ff00" letterSpacing="0.000000" kerning="1"><b>Off</b></font></p>"
smartSymbol 430 EditableText"<p align="left"><font face="MS Reference Sans Serif" size="40" color="#00ff00" letterSpacing="0.000000" kerning="1"><b>Off</b></font></p>"
qualSymbol 435 EditableText"<p align="left"><font face="MS Reference Sans Serif" size="40" color="#00ff00" letterSpacing="0.000000" kerning="1"><b>medium</b></font></p>"
musSymbol 439 EditableText"<p align="left"><font face="MS Reference Sans Serif" size="40" color="#00ff00" letterSpacing="0.000000" kerning="1"><b>On</b></font></p>"
muteSymbol 444 EditableText"<p align="left"><font face="MS Reference Sans Serif" size="40" color="#00ff00" letterSpacing="0.000000" kerning="1"><b>On</b></font></p>"
foghornSymbol 448 EditableText"<p align="left"><font face="MS Reference Sans Serif" size="40" color="#00ff00" letterSpacing="0.000000" kerning="1"><b>Off</b></font></p>"
shroudSymbol 489 EditableText"<p align="left"><font face="MS Reference Sans Serif" size="40" color="#00ff00" letterSpacing="0.000000" kerning="1"><b>Off</b></font></p>"
_root.monetSymbol 497 EditableText"<p align="left"></p>"
mapnameSymbol 501 EditableText"<p align="center"><font face="MS Reference Sans Serif" size="25" color="#ffff00" letterSpacing="0.000000" kerning="1">Arena</font></p>"
_root.aipSymbol 506 EditableText"<p align="left"><font face="MS Reference Sans Serif" size="15" color="#ffffff" letterSpacing="0.000000" kerning="1">Technology Commander</font></p>"
difficultySymbol 507 EditableText"<p align="left"><font face="MS Reference Sans Serif" size="15" color="#ffffff" letterSpacing="0.000000" kerning="1">Novice Enemy</font></p>"
percentSymbol 628 EditableText"<p align="left"><font face="Arial" size="16" color="#990000" letterSpacing="0.000000" kerning="1">0</font></p>"
queueSymbol 652 EditableText"1"
percentSymbol 654 EditableText"<p align="left"><font face="Arial" size="14" color="#0000ff" letterSpacing="0.000000" kerning="1"><b>100</b></font></p>"
percentSymbol 674 EditableText"<p align="left"><font face="Arial" size="14" color="#990000" letterSpacing="0.000000" kerning="1"><b>100</b></font></p>"
statsSymbol 713 EditableText"Rocket Launcher firepower: HP: speed: shellspeed: range: fire period:"
textsSymbol 727 EditableText"<p align="center"></p>"
_root.moneySymbol 742 EditableText"<p align="left"></p>"
textsSymbol 747 EditableText"<p align="center"></p>"
_root.objarraysSymbol 1019 EditableText"<p align="left"><font face="Arial" size="12" color="#000000" letterSpacing="0.000000" kerning="1"><b>dddd</b></font></p>"
enemymoneySymbol 1020 EditableText""
killSymbol 1056 EditableText"<p align="left"></p>"
lossSymbol 1057 EditableText"<p align="left"></p>"
builSymbol 1058 EditableText"<p align="left"></p>"
scoresSymbol 1060 EditableText"<p align="left"></p>"
killSymbol 1063 EditableText"<p align="left"></p>"
lossSymbol 1064 EditableText"<p align="left"></p>"
builSymbol 1065 EditableText"<p align="left"></p>"
scoresSymbol 1066 EditableText"<p align="left"></p>"
_root.objarraysSymbol 1090 EditableText"<p align="left"><font face="Arial" size="12" color="#000000" letterSpacing="0.000000" kerning="1"><b>dddd</b></font></p>"
enemymoneySymbol 1092 EditableText""
gathersSymbol 1098 EditableText"<p align="left"></p>"
_root.objarraysSymbol 1141 EditableText"<p align="left"><font face="Arial" size="12" color="#000000" letterSpacing="0.000000" kerning="1"><b>dddd</b></font></p>"
_root.objarraysSymbol 1142 EditableText"<p align="left"><font face="Arial" size="12" color="#000000" letterSpacing="0.000000" kerning="1"><b>dddd</b></font></p>"
killSymbol 1166 EditableText"<p align="left"></p>"
lossSymbol 1167 EditableText"<p align="left"></p>"
builSymbol 1168 EditableText"<p align="left"></p>"
scoresSymbol 1169 EditableText"<p align="left"></p>"
_root.objarraysSymbol 1170 EditableText"<p align="left"><font face="Arial" size="12" color="#000000" letterSpacing="0.000000" kerning="1"><b>dddd</b></font></p>"
enemymoneySymbol 1171 EditableText""




http://swfchan.com/24/117019/info.shtml
Created: 8/3 -2019 07:16:31 Last modified: 8/3 -2019 07:16:31 Server time: 28/04 -2024 10:31:10