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

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

Tank Wars RTS.swf

This is the info page for
Flash #30767

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


Text
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.

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

v 1.5

Back

Back

Campaign

Choose a Difficulty Level:

Easy

Easy

Medium

Medium

Medium

Hard

Hard

Hard

Load Saved
Campaign

Load Saved
Campaign

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>

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>

What do you want to do?

Abort Game

Abort Game

Save Game

Save game

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>

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.loadings = undefined; _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 1031 MovieClip "comcentre1" in Frame 2
onClipEvent (load) { ranges = 1; life = 0; }
Instance of Symbol 1036 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 1044 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 1046 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 1046 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 1044 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 1058 MovieClip "rig6" in Frame 10
onClipEvent (load) { oilfield = "oil6"; _root.objarray.push(this._name); }
Instance of Symbol 1058 MovieClip "rig10" in Frame 10
onClipEvent (load) { oilfield = "oil3"; _root.objarray.push(this._name); }
Instance of Symbol 1058 MovieClip "rig11" in Frame 10
onClipEvent (load) { oilfield = "oil2"; _root.objarray.push(this._name); }
Instance of Symbol 1058 MovieClip "rig12" in Frame 10
onClipEvent (load) { oilfield = "oil4"; _root.objarray.push(this._name); }
Instance of Symbol 1058 MovieClip "rig19" in Frame 10
onClipEvent (load) { oilfield = "oil1"; _root.objarray.push(this._name); }
Instance of Symbol 1058 MovieClip "rig122" in Frame 10
onClipEvent (load) { oilfield = "oil5"; _root.objarray.push(this._name); }
Instance of Symbol 1060 MovieClip "burton" in Frame 10
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1031 MovieClip in Frame 10
/* no clip actions */
Instance of Symbol 1064 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 1066 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 1031 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 524 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 251 MovieClip in Frame 11
/* no clip actions */
Instance of Symbol 1031 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 1031 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 1092 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 1044 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 1046 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 1046 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 1044 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 1092 MovieClip "back" in Frame 14
onClipEvent (load) { this._x = 0; this._y = 0; }
Instance of Symbol 1051 MovieClip "oil3" in Frame 14
onClipEvent (load) { this.oilspill._xscale = 100; this.oilspill._yscale = 100; }
Instance of Symbol 1051 MovieClip "oil2" in Frame 14
onClipEvent (load) { this.oilspill._xscale = 100; this.oilspill._yscale = 100; }
Instance of Symbol 1060 MovieClip "burton" in Frame 14
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 524 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 1058 MovieClip "rig19" in Frame 14
onClipEvent (load) { oilfield = "oil1"; _root.objarray.push(this._name); }
Instance of Symbol 1031 MovieClip in Frame 14
/* no clip actions */
Instance of Symbol 1064 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 1031 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 1066 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 1097 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 1044 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 1046 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 1046 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 1044 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 1097 MovieClip "back" in Frame 16
onClipEvent (load) { this._x = 0; this._y = 0; }
Instance of Symbol 1058 MovieClip "rig10" in Frame 16
onClipEvent (load) { oilfield = "oil3"; _root.objarray.push(this._name); }
Instance of Symbol 1058 MovieClip "rig11" in Frame 16
onClipEvent (load) { oilfield = "oil2"; _root.objarray.push(this._name); }
Instance of Symbol 1058 MovieClip "rig19" in Frame 16
onClipEvent (load) { oilfield = "oil1"; _root.objarray.push(this._name); }
Instance of Symbol 1058 MovieClip "rig1" in Frame 16
onClipEvent (load) { oilfield = "oil122"; _root.objarray.push(this._name); }
Instance of Symbol 1060 MovieClip "burton" in Frame 16
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1031 MovieClip in Frame 16
/* no clip actions */
Instance of Symbol 524 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 1064 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 1066 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 1031 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 1044 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 1046 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 1046 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 1044 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 1058 MovieClip "rig10" in Frame 18
onClipEvent (load) { oilfield = "oil3"; _root.objarray.push(this._name); }
Instance of Symbol 1058 MovieClip "rig19" in Frame 18
onClipEvent (load) { oilfield = "oil1"; _root.objarray.push(this._name); }
Instance of Symbol 1060 MovieClip "burton" in Frame 18
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1031 MovieClip in Frame 18
/* no clip actions */
Instance of Symbol 524 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 1064 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 1031 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 1066 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 1108 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 1044 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 1046 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 1046 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 1044 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 1108 MovieClip "back" in Frame 20
onClipEvent (load) { this._x = 0; this._y = 0; }
Instance of Symbol 1051 MovieClip "oil4" in Frame 20
onClipEvent (load) { this.oilspill._xscale = 100; this.oilspill._yscale = 100; }
Instance of Symbol 1058 MovieClip "rig10" in Frame 20
onClipEvent (load) { oilfield = "oil4"; _root.objarray.push(this._name); }
Instance of Symbol 1058 MovieClip "rig19" in Frame 20
onClipEvent (load) { oilfield = "oil1"; _root.objarray.push(this._name); }
Instance of Symbol 1058 MovieClip "rig11" in Frame 20
onClipEvent (load) { oilfield = "oil4"; _root.objarray.push(this._name); }
Instance of Symbol 1058 MovieClip "rig12" in Frame 20
onClipEvent (load) { oilfield = "oil4"; _root.objarray.push(this._name); }
Instance of Symbol 1058 MovieClip "rig20" in Frame 20
onClipEvent (load) { oilfield = "oil1"; _root.objarray.push(this._name); }
Instance of Symbol 1058 MovieClip "rig21" in Frame 20
onClipEvent (load) { oilfield = "oil1"; _root.objarray.push(this._name); }
Instance of Symbol 1060 MovieClip "burton" in Frame 20
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1031 MovieClip in Frame 20
/* no clip actions */
Instance of Symbol 524 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 1064 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 1031 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 1066 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 1110 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 1044 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 1046 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 1046 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 1044 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 1110 MovieClip "back" in Frame 22
onClipEvent (load) { this._x = 0; this._y = 0; }
Instance of Symbol 1051 MovieClip "oil9" in Frame 22
onClipEvent (load) { this.oilspill._xscale = 100; this.oilspill._yscale = 100; }
Instance of Symbol 1058 MovieClip "rig12" in Frame 22
onClipEvent (load) { oilfield = "oil9"; _root.objarray.push(this._name); }
Instance of Symbol 1058 MovieClip "rig19" in Frame 22
onClipEvent (load) { oilfield = "oil1"; _root.objarray.push(this._name); }
Instance of Symbol 1051 MovieClip "oil33" in Frame 22
onClipEvent (load) { this.oilspill._xscale = 100; this.oilspill._yscale = 100; }
Instance of Symbol 1051 MovieClip "oil8" in Frame 22
onClipEvent (load) { this.oilspill._xscale = 100; this.oilspill._yscale = 100; }
Instance of Symbol 1058 MovieClip "rig19" in Frame 22
onClipEvent (load) { oilfield = "oil6"; _root.objarray.push(this._name); }
Instance of Symbol 1058 MovieClip "rig31" in Frame 22
onClipEvent (load) { oilfield = "oil34"; _root.objarray.push(this._name); }
Instance of Symbol 1058 MovieClip "rig20" in Frame 22
onClipEvent (load) { oilfield = "oil0"; _root.objarray.push(this._name); }
Instance of Symbol 1060 MovieClip "burton" in Frame 22
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1031 MovieClip in Frame 22
/* no clip actions */
Instance of Symbol 524 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 1064 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 1031 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 1066 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; _root[current].walking = false; } 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; }; if (_root.loadings === true) { share = SharedObject.getLocal("save"); p = 9; while (p > 1) { _root["ownmap" + p] = share.data["ownmap" + p]; _root.missions = share.data.missions; _root[("map" + p) + "array"] = share.data[("map" + p) + "array"].concat(); i = share.data[("map" + p) + "array"].length - 1; while (i > -1) { current = share.data[("map" + p) + "array"][i]; trace(current + "blackcurrane"); trace(share.data[current].fulllife + current); if (share.data[current + "obj"] == undefined) { current2 = current; current = current + ("map" + p); trace(current + "current"); trace(current2 + "current2"); } _root[current + "obj"] = share.data[current + "obj"]; trace(_root[current + "obj"].fulllife + current); _root.enemypower = share.data.enemypower; _root.money = share.data.money; trace(_root.money + "mummy"); _root.difficulty = share.data.difficulty; _root.loadings = undefined; _root.gotoAndStop("mapbar"); i--; } p--; } } _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 831 MovieClip "back" in Frame 25
onClipEvent (load) { this._x = 0; this._y = 0; }
Frame 26
_root.attachMovie("mission", "tutoriall", 1000900); _root.tutoriall._x = 46.8; _root.tutoriall._y = 10.9; Mouse.hide(); stop(); stop();
Instance of Symbol 1044 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 1046 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 1046 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 1044 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 831 MovieClip "back" in Frame 26
onClipEvent (load) { this._x = 0; this._y = 0; }
Instance of Symbol 1117 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 1117 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 1058 MovieClip "rig10" in Frame 26
onClipEvent (load) { oilfield = "oil3"; _root.objarray.push(this._name); }
Instance of Symbol 1060 MovieClip "burton" in Frame 26
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1031 MovieClip in Frame 26
onClipEvent (load) { ranges = 1; }
Instance of Symbol 124 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 1064 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 1121 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 1121 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 1121 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 1110 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 1044 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 1046 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 1046 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 1044 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 1110 MovieClip "back" in Frame 30
onClipEvent (load) { this._x = 0; this._y = 0; }
Instance of Symbol 509 MovieClip [warfactory] "warfactory1" in Frame 30
onClipEvent (load) { if (_root.warfactoryle == 0) { gotoAndStop (34); } }
Instance of Symbol 513 MovieClip [comcentre] "comcentre1" in Frame 30
onClipEvent (load) { if (_root.comcentre1e == 0) { gotoAndStop (34); } }
Instance of Symbol 507 MovieClip [patriotmiss] in Frame 30
onClipEvent (load) { if (_root.pat1e == 0) { gotoAndStop (34); } }
Instance of Symbol 507 MovieClip [patriotmiss] in Frame 30
onClipEvent (load) { if (_root.pat2e == 0) { gotoAndStop (34); } }
Instance of Symbol 1117 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 1117 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 1058 MovieClip "rig11" in Frame 30
onClipEvent (load) { oilfield = "oil6"; _root.objarray.push(this._name); }
Instance of Symbol 1058 MovieClip "rig5" in Frame 30
onClipEvent (load) { oilfield = "oil4"; _root.objarray.push(this._name); }
Instance of Symbol 1060 MovieClip "burton" in Frame 30
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1031 MovieClip in Frame 30
onClipEvent (load) { ranges = 1; }
Instance of Symbol 1031 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 1064 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 1121 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 1121 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 1121 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 1139 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 1139 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 1142 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 1139 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 1139 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 1139 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 1139 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 1139 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 1121 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 1151 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 1155 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 1044 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 1046 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 1046 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 1044 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 1155 MovieClip "back" in Frame 35
onClipEvent (load) { this._x = 0; this._y = 0; }
Instance of Symbol 1117 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 1117 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 1117 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 489 MovieClip [enemylaser] in Frame 35
onClipEvent (load) { if (_root.enemypower < 50) { gotoAndStop (34); } }
Instance of Symbol 489 MovieClip [enemylaser] in Frame 35
onClipEvent (load) { if (_root.enemypower < 50) { gotoAndStop (34); } }
Instance of Symbol 668 MovieClip [enemyartillery] in Frame 35
onClipEvent (load) { if (_root.enemypower < 50) { this.dummy.gotoAndStop(20); } }
Instance of Symbol 668 MovieClip [enemyartillery] in Frame 35
onClipEvent (load) { if (_root.enemypower < 50) { this.dummy.gotoAndStop(20); } }
Instance of Symbol 668 MovieClip [enemyartillery] in Frame 35
onClipEvent (load) { if (_root.enemypower < 80) { this.dummy.gotoAndStop(20); } }
Instance of Symbol 668 MovieClip [enemyartillery] in Frame 35
onClipEvent (load) { if (_root.enemypower < 80) { this.dummy.gotoAndStop(20); } }
Instance of Symbol 664 MovieClip [enemyheavy] in Frame 35
onClipEvent (load) { if (_root.enemypower < 30) { this.dummy.gotoAndStop(8); } }
Instance of Symbol 664 MovieClip [enemyheavy] in Frame 35
onClipEvent (load) { if (_root.enemypower < 30) { this.dummy.gotoAndStop(8); } }
Instance of Symbol 489 MovieClip [enemylaser] in Frame 35
onClipEvent (load) { if (_root.enemypower < 50) { gotoAndStop (34); } }
Instance of Symbol 489 MovieClip [enemylaser] in Frame 35
onClipEvent (load) { if (_root.enemypower < 100) { gotoAndStop (34); } }
Instance of Symbol 489 MovieClip [enemylaser] in Frame 35
onClipEvent (load) { if (_root.enemypower < 50) { gotoAndStop (34); } }
Instance of Symbol 667 MovieClip [enemylight] in Frame 35
onClipEvent (load) { if (_root.enemypower < 60) { this.dummy.gotoAndStop(8); } }
Instance of Symbol 667 MovieClip [enemylight] in Frame 35
onClipEvent (load) { if (_root.enemypower < 60) { this.dummy.gotoAndStop(8); } }
Instance of Symbol 1031 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 1121 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 668 MovieClip [enemyartillery] in Frame 35
onClipEvent (load) { if (_root.enemypower < 60) { this.dummy.gotoAndStop(20); } }
Instance of Symbol 668 MovieClip [enemyartillery] in Frame 35
onClipEvent (load) { if (_root.enemypower < 60) { this.dummy.gotoAndStop(20); } }
Instance of Symbol 1058 MovieClip "rig11" in Frame 35
onClipEvent (load) { oilfield = "oil6"; _root.objarray.push(this._name); }
Instance of Symbol 1058 MovieClip "rig12" in Frame 35
onClipEvent (load) { oilfield = "oil5"; _root.objarray.push(this._name); }
Instance of Symbol 1058 MovieClip "rig9" in Frame 35
onClipEvent (load) { oilfield = "oil3"; _root.objarray.push(this._name); }
Instance of Symbol 1058 MovieClip "rig1" in Frame 35
onClipEvent (load) { oilfield = "oil1"; _root.objarray.push(this._name); }
Instance of Symbol 667 MovieClip [enemylight] in Frame 35
onClipEvent (load) { if (_root.enemypower < 60) { this.dummy.gotoAndStop(8); } }
Instance of Symbol 667 MovieClip [enemylight] in Frame 35
onClipEvent (load) { if (_root.enemypower < 60) { this.dummy.gotoAndStop(8); } }
Instance of Symbol 664 MovieClip [enemyheavy] in Frame 35
onClipEvent (load) { if (_root.enemypower < 60) { this.dummy.gotoAndStop(8); } }
Instance of Symbol 666 MovieClip [enemyhumvee] in Frame 35
onClipEvent (load) { if (_root.enemypower < 60) { this.dummy.gotoAndStop(8); } }
Instance of Symbol 666 MovieClip [enemyhumvee] in Frame 35
onClipEvent (load) { if (_root.enemypower < 60) { this.dummy.gotoAndStop(8); } }
Instance of Symbol 664 MovieClip [enemyheavy] in Frame 35
onClipEvent (load) { if (_root.enemypower < 60) { this.dummy.gotoAndStop(8); } }
Instance of Symbol 665 MovieClip [enemyrocket] in Frame 35
onClipEvent (load) { if (_root.enemypower < 60) { this.dummy.gotoAndStop(8); } }
Instance of Symbol 1031 MovieClip in Frame 35
onClipEvent (load) { ranges = 1; }
Instance of Symbol 1031 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 1060 MovieClip "burton" in Frame 35
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1064 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 1121 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 1110 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 1044 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 1046 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 1046 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 1044 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 1110 MovieClip "back" in Frame 39
onClipEvent (load) { this._x = 0; this._y = 0; }
Instance of Symbol 1058 MovieClip "rig11" in Frame 39
onClipEvent (load) { oilfield = "oil6"; _root.objarray.push(this._name); }
Instance of Symbol 1058 MovieClip "rig5" in Frame 39
onClipEvent (load) { oilfield = "oil4"; _root.objarray.push(this._name); }
Instance of Symbol 1058 MovieClip "rig10" in Frame 39
onClipEvent (load) { oilfield = "oil3"; _root.objarray.push(this._name); }
Instance of Symbol 524 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 1121 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 1031 MovieClip in Frame 39
onClipEvent (load) { ranges = 1; }
Instance of Symbol 1060 MovieClip "burton" in Frame 39
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1064 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 1121 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 1121 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 1155 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 1044 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 1046 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 1046 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 1044 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 1092 MovieClip "back" in Frame 43
onClipEvent (load) { this._x = 0; this._y = 0; }
Instance of Symbol 1121 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 473 MovieClip [enemywarfactory] "production1" in Frame 43
onClipEvent (load) { this.fulllife = this.fulllife * 5; this.life = this.life * 5; }
Instance of Symbol 473 MovieClip [enemywarfactory] "production4" in Frame 43
onClipEvent (load) { this.fulllife = this.fulllife * 5; this.life = this.life * 5; }
Instance of Symbol 473 MovieClip [enemywarfactory] "production3" in Frame 43
onClipEvent (load) { this.fulllife = this.fulllife * 5; this.life = this.life * 5; }
Instance of Symbol 473 MovieClip [enemywarfactory] "production2" in Frame 43
onClipEvent (load) { this.fulllife = this.fulllife * 5; this.life = this.life * 5; }
Instance of Symbol 489 MovieClip [enemylaser] in Frame 43
onClipEvent (load) { if (_root.enemypower < 70) { gotoAndPlay (33); } }
Instance of Symbol 496 MovieClip [enemymine] in Frame 43
onClipEvent (load) { if (_root.enemypower < 70) { gotoAndPlay (55); } }
Instance of Symbol 496 MovieClip [enemymine] in Frame 43
onClipEvent (load) { if (_root.enemypower < 30) { gotoAndPlay (55); } }
Instance of Symbol 496 MovieClip [enemymine] in Frame 43
onClipEvent (load) { if (_root.enemypower < 50) { gotoAndPlay (55); } }
Instance of Symbol 496 MovieClip [enemymine] in Frame 43
onClipEvent (load) { if (_root.enemypower < 60) { gotoAndPlay (55); } }
Instance of Symbol 496 MovieClip [enemymine] in Frame 43
onClipEvent (load) { if (_root.enemypower < 70) { gotoAndPlay (55); } }
Instance of Symbol 505 MovieClip [enemymultiple] in Frame 43
onClipEvent (load) { if (_root.enemypower < 50) { gotoAndStop (34); } }
Instance of Symbol 505 MovieClip [enemymultiple] in Frame 43
onClipEvent (load) { if (_root.enemypower < 70) { gotoAndPlay (33); } }
Instance of Symbol 469 MovieClip [enemyturret] in Frame 43
onClipEvent (load) { if (_root.enemypower < 50) { gotoAndStop (34); } }
Instance of Symbol 469 MovieClip [enemyturret] in Frame 43
onClipEvent (load) { if (_root.enemypower < 80) { gotoAndPlay (33); } }
Instance of Symbol 469 MovieClip [enemyturret] in Frame 43
onClipEvent (load) { if (_root.enemypower < 70) { gotoAndPlay (33); } }
Instance of Symbol 483 MovieClip [enemytechcentre] "enemytechcentre1" in Frame 43
onClipEvent (load) { if (_root.enemypower < 70) { gotoAndPlay (33); } }
Instance of Symbol 489 MovieClip [enemylaser] in Frame 43
onClipEvent (load) { if (_root.enemypower < 50) { gotoAndStop (34); } }
Instance of Symbol 469 MovieClip [enemyturret] in Frame 43
onClipEvent (load) { if (_root.enemypower < 80) { gotoAndPlay (33); } }
Instance of Symbol 469 MovieClip [enemyturret] in Frame 43
onClipEvent (load) { if (_root.enemypower < 70) { gotoAndPlay (33); } }
Instance of Symbol 469 MovieClip [enemyturret] in Frame 43
onClipEvent (load) { if (_root.enemypower < 40) { gotoAndPlay (33); } }
Instance of Symbol 496 MovieClip [enemymine] in Frame 43
onClipEvent (load) { if (_root.enemypower < 80) { gotoAndPlay (55); } }
Instance of Symbol 462 MovieClip [enemylasertank] in Frame 43
onClipEvent (load) { if (!(_root.ownmap6 === false)) { this.dummy.gotoAndPlay(8); } }
Instance of Symbol 1058 MovieClip "rig11" in Frame 43
onClipEvent (load) { oilfield = "oil6"; _root.objarray.push(this._name); }
Instance of Symbol 1058 MovieClip "rig1" in Frame 43
onClipEvent (load) { oilfield = "oil5"; _root.objarray.push(this._name); }
Instance of Symbol 1058 MovieClip "rig2" in Frame 43
onClipEvent (load) { oilfield = "oil4"; _root.objarray.push(this._name); }
Instance of Symbol 1031 MovieClip in Frame 43
onClipEvent (load) { ranges = 1; }
Instance of Symbol 524 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 1060 MovieClip "burton" in Frame 43
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1064 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 1121 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 1092 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 1044 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 1046 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 1046 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 1044 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 1092 MovieClip "back" in Frame 47
onClipEvent (load) { this._x = 0; this._y = 0; }
Instance of Symbol 1159 MovieClip "production1" in Frame 47
onClipEvent (load) { this.fulllife = this.fulllife * 5; this.life = this.life * 5; }
Instance of Symbol 1159 MovieClip "production4" in Frame 47
onClipEvent (load) { this.fulllife = this.fulllife * 5; this.life = this.life * 5; }
Instance of Symbol 1159 MovieClip "production3" in Frame 47
onClipEvent (load) { this.fulllife = this.fulllife * 5; this.life = this.life * 5; }
Instance of Symbol 1159 MovieClip "production2" in Frame 47
onClipEvent (load) { this.fulllife = this.fulllife * 5; this.life = this.life * 5; }
Instance of Symbol 1058 MovieClip "rig11" in Frame 47
onClipEvent (load) { oilfield = "oil6"; _root.objarray.push(this._name); }
Instance of Symbol 1058 MovieClip "rig2" in Frame 47
onClipEvent (load) { oilfield = "oil4"; _root.objarray.push(this._name); }
Instance of Symbol 1058 MovieClip "rig1" in Frame 47
onClipEvent (load) { oilfield = "oil5"; _root.objarray.push(this._name); }
Instance of Symbol 1121 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 1031 MovieClip in Frame 47
onClipEvent (load) { ranges = 1; }
Instance of Symbol 524 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 1060 MovieClip "burton" in Frame 47
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1064 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 1121 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 1172 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 1044 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 1046 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 1046 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 1044 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 1121 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 1031 MovieClip in Frame 51
onClipEvent (load) { ranges = 1; }
Instance of Symbol 524 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 1058 MovieClip "rig11" in Frame 51
onClipEvent (load) { oilfield = "oil6"; _root.objarray.push(this._name); }
Instance of Symbol 1058 MovieClip "rig10" in Frame 51
onClipEvent (load) { oilfield = "oil5"; _root.objarray.push(this._name); }
Instance of Symbol 1060 MovieClip "burton" in Frame 51
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1064 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 1121 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 1172 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 1044 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 1046 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 1046 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 1044 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 1172 MovieClip "back" in Frame 55
onClipEvent (load) { this._x = 0; this._y = 0; }
Instance of Symbol 1058 MovieClip "rig11" in Frame 55
onClipEvent (load) { oilfield = "oil6"; _root.objarray.push(this._name); }
Instance of Symbol 1031 MovieClip in Frame 55
onClipEvent (load) { ranges = 1; }
Instance of Symbol 1121 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 1058 MovieClip "rig10" in Frame 55
onClipEvent (load) { oilfield = "oil5"; _root.objarray.push(this._name); }
Instance of Symbol 524 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 1060 MovieClip "burton" in Frame 55
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1064 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 1121 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 1121 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 1097 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 1044 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 1046 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 1046 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 1044 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 1121 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 496 MovieClip [enemymine] in Frame 59
onClipEvent (load) { if (_root.enemypower < 90) { this.gotoAndStop(34); } }
Instance of Symbol 496 MovieClip [enemymine] in Frame 59
onClipEvent (load) { if (_root.enemypower < 50) { this.gotoAndStop(34); } }
Instance of Symbol 1031 MovieClip in Frame 59
onClipEvent (load) { ranges = 1; }
Instance of Symbol 524 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 1058 MovieClip "rig10" in Frame 59
onClipEvent (load) { oilfield = "oil5"; _root.objarray.push(this._name); }
Instance of Symbol 1051 MovieClip "oil4" in Frame 59
onClipEvent (load) { this.oilspill._xscale = 100; this.oilspill._yscale = 100; }
Instance of Symbol 1051 MovieClip "oil3" in Frame 59
onClipEvent (load) { this.oilspill._xscale = 100; this.oilspill._yscale = 100; }
Instance of Symbol 1058 MovieClip "rig8" in Frame 59
onClipEvent (load) { oilfield = "oil5"; _root.objarray.push(this._name); }
Instance of Symbol 489 MovieClip [enemylaser] in Frame 59
onClipEvent (load) { if (_root.enemypower < 70) { this.gotoAndPlay(10); } }
Instance of Symbol 489 MovieClip [enemylaser] in Frame 59
onClipEvent (load) { if (_root.enemypower < 50) { this.gotoAndPlay(10); } }
Instance of Symbol 489 MovieClip [enemylaser] in Frame 59
onClipEvent (load) { if (_root.enemypower < 70) { this.gotoAndPlay(10); } }
Instance of Symbol 462 MovieClip [enemylasertank] in Frame 59
onClipEvent (load) { if (_root.enemypower < 70) { this.gotoAndStop(2); } }
Instance of Symbol 462 MovieClip [enemylasertank] in Frame 59
onClipEvent (load) { if (_root.enemypower < 50) { this.gotoAndStop(2); } }
Instance of Symbol 489 MovieClip [enemylaser] in Frame 59
onClipEvent (load) { if (_root.enemypower < 50) { this.gotoAndPlay(10); } }
Instance of Symbol 462 MovieClip [enemylasertank] in Frame 59
onClipEvent (load) { if (_root.enemypower < 90) { this.gotoAndStop(2); } }
Instance of Symbol 462 MovieClip [enemylasertank] in Frame 59
onClipEvent (load) { if (_root.enemypower < 30) { this.gotoAndStop(2); } }
Instance of Symbol 496 MovieClip [enemymine] in Frame 59
onClipEvent (load) { if (_root.enemypower < 90) { this.gotoAndStop(34); } }
Instance of Symbol 496 MovieClip [enemymine] in Frame 59
onClipEvent (load) { if (_root.enemypower < 70) { this.gotoAndStop(34); } }
Instance of Symbol 668 MovieClip [enemyartillery] in Frame 59
onClipEvent (load) { if (_root.enemypower < 50) { this.gotoAndStop(2); } }
Instance of Symbol 668 MovieClip [enemyartillery] in Frame 59
onClipEvent (load) { if (_root.enemypower < 50) { this.gotoAndStop(2); } }
Instance of Symbol 1060 MovieClip "burton" in Frame 59
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1064 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 1121 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 1097 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 1044 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 1046 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 1046 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 1044 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 1097 MovieClip "back" in Frame 63
onClipEvent (load) { this._x = 0; this._y = 0; }
Instance of Symbol 1058 MovieClip "rig10" in Frame 63
onClipEvent (load) { oilfield = "oil5"; _root.objarray.push(this._name); }
Instance of Symbol 1051 MovieClip "oil4" in Frame 63
onClipEvent (load) { this.oilspill._xscale = 100; this.oilspill._yscale = 100; }
Instance of Symbol 1031 MovieClip in Frame 63
onClipEvent (load) { ranges = 1; }
Instance of Symbol 1031 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 1121 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 1051 MovieClip "oil3" in Frame 63
onClipEvent (load) { this.oilspill._xscale = 100; this.oilspill._yscale = 100; }
Instance of Symbol 1058 MovieClip "rig8" in Frame 63
onClipEvent (load) { oilfield = "oil5"; _root.objarray.push(this._name); }
Instance of Symbol 1060 MovieClip "burton" in Frame 63
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1064 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 1121 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 1179 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 1044 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 1046 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 1046 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 1044 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 1121 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 505 MovieClip [enemymultiple] in Frame 67
onClipEvent (load) { if (_root.enemypower < 50) { gotoAndStop (34); } }
Instance of Symbol 469 MovieClip [enemyturret] in Frame 67
onClipEvent (load) { if (_root.enemypower < 60) { gotoAndPlay (33); } }
Instance of Symbol 489 MovieClip [enemylaser] in Frame 67
onClipEvent (load) { if (_root.enemypower < 50) { gotoAndStop (34); } }
Instance of Symbol 505 MovieClip [enemymultiple] in Frame 67
onClipEvent (load) { if (_root.enemypower < 80) { gotoAndPlay (33); } }
Instance of Symbol 483 MovieClip [enemytechcentre] "enemytechcentre1" in Frame 67
onClipEvent (load) { if (_root.enemypower < 70) { gotoAndPlay (31); } }
Instance of Symbol 668 MovieClip [enemyartillery] in Frame 67
onClipEvent (load) { if (_root.enemypower < 50) { this.gotoAndPlay(2); } }
Instance of Symbol 668 MovieClip [enemyartillery] in Frame 67
onClipEvent (load) { if (_root.enemypower < 90) { this.gotoAndPlay(2); } }
Instance of Symbol 668 MovieClip [enemyartillery] in Frame 67
onClipEvent (load) { if (_root.enemypower < 90) { this.gotoAndPlay(2); } }
Instance of Symbol 668 MovieClip [enemyartillery] in Frame 67
onClipEvent (load) { if (_root.enemypower < 70) { this.gotoAndPlay(2); } }
Instance of Symbol 668 MovieClip [enemyartillery] in Frame 67
onClipEvent (load) { if (_root.enemypower < 70) { this.gotoAndPlay(2); } }
Instance of Symbol 668 MovieClip [enemyartillery] in Frame 67
onClipEvent (load) { if (_root.enemypower < 50) { this.gotoAndPlay(2); } }
Instance of Symbol 496 MovieClip [enemymine] in Frame 67
onClipEvent (load) { if (_root.enemypower < 70) { this.gotoAndStop(34); } }
Instance of Symbol 496 MovieClip [enemymine] in Frame 67
onClipEvent (load) { if (_root.enemypower < 60) { this.gotoAndStop(34); } }
Instance of Symbol 496 MovieClip [enemymine] in Frame 67
onClipEvent (load) { if (_root.enemypower < 80) { this.gotoAndStop(34); } }
Instance of Symbol 1058 MovieClip "rig10" in Frame 67
onClipEvent (load) { oilfield = "oil5"; _root.objarray.push(this._name); }
Instance of Symbol 1058 MovieClip "rig11" in Frame 67
onClipEvent (load) { oilfield = "oil5"; _root.objarray.push(this._name); }
Instance of Symbol 1058 MovieClip "rig12" in Frame 67
onClipEvent (load) { oilfield = "oil5"; _root.objarray.push(this._name); }
Instance of Symbol 1051 MovieClip "oil4" in Frame 67
onClipEvent (load) { this.oil.oilspill._xscale = 100; this.oil.oilspill._yscale = 100; }
Instance of Symbol 1051 MovieClip "oil3" in Frame 67
onClipEvent (load) { this.oil.oilspill._xscale = 100; this.oil.oilspill._yscale = 100; }
Instance of Symbol 467 MovieClip [enemyoiltruck] in Frame 67
onClipEvent (load) { if (_root.enemypower < 110) { this.gotoAndStop(2); } }
Instance of Symbol 467 MovieClip [enemyoiltruck] in Frame 67
onClipEvent (load) { if (_root.enemypower < 30) { this.gotoAndStop(2); } }
Instance of Symbol 467 MovieClip [enemyoiltruck] in Frame 67
onClipEvent (load) { if (_root.enemypower < 80) { this.gotoAndStop(2); } }
Instance of Symbol 467 MovieClip [enemyoiltruck] in Frame 67
onClipEvent (load) { if (_root.enemypower < 100) { this.gotoAndStop(2); } }
Instance of Symbol 467 MovieClip [enemyoiltruck] in Frame 67
onClipEvent (load) { if (_root.enemypower < 60) { this.gotoAndStop(2); } }
Instance of Symbol 1031 MovieClip in Frame 67
onClipEvent (load) { ranges = 1; }
Instance of Symbol 1060 MovieClip "burton" in Frame 67
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1064 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 524 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 1121 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 1179 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 1044 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 1046 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 1046 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 1044 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 1179 MovieClip "back" in Frame 71
onClipEvent (load) { this._x = 0; this._y = 0; }
Instance of Symbol 1046 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 1044 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 1179 MovieClip "back" in Frame 71
onClipEvent (load) { this._x = 0; this._y = 0; }
Instance of Symbol 1058 MovieClip "rig10" in Frame 71
onClipEvent (load) { oilfield = "oil5"; _root.objarray.push(this._name); }
Instance of Symbol 1058 MovieClip "rig11" in Frame 71
onClipEvent (load) { oilfield = "oil5"; _root.objarray.push(this._name); }
Instance of Symbol 1058 MovieClip "rig12" in Frame 71
onClipEvent (load) { oilfield = "oil5"; _root.objarray.push(this._name); }
Instance of Symbol 1051 MovieClip "oil4" in Frame 71
onClipEvent (load) { this.oil.oilspill._xscale = 100; this.oil.oilspill._yscale = 100; }
Instance of Symbol 1051 MovieClip "oil3" in Frame 71
onClipEvent (load) { this.oil.oilspill._xscale = 100; this.oil.oilspill._yscale = 100; }
Instance of Symbol 1031 MovieClip in Frame 71
onClipEvent (load) { ranges = 1; }
Instance of Symbol 524 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 1121 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 1060 MovieClip "burton" in Frame 71
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1064 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 1121 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 1108 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 1044 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 1046 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 1046 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 1044 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 524 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 1121 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 1051 MovieClip "oil2" in Frame 75
onClipEvent (load) { this.oil.oilspill._xscale = 100; this.oil.oilspill._yscale = 100; }
Instance of Symbol 1051 MovieClip "oil1" in Frame 75
onClipEvent (load) { this.oil.oilspill._xscale = 100; this.oil.oilspill._yscale = 100; }
Instance of Symbol 1051 MovieClip "oil3" in Frame 75
onClipEvent (load) { this.oil.oilspill._xscale = 100; this.oil.oilspill._yscale = 100; }
Instance of Symbol 1058 MovieClip "rig10" in Frame 75
onClipEvent (load) { oilfield = "oil3"; _root.objarray.push(this._name); }
Instance of Symbol 1058 MovieClip "rig11" in Frame 75
onClipEvent (load) { oilfield = "oil2"; _root.objarray.push(this._name); }
Instance of Symbol 1060 MovieClip "burton" in Frame 75
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1031 MovieClip in Frame 75
onClipEvent (load) { ranges = 1; }
Instance of Symbol 1064 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 524 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 1121 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 1108 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 1044 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 1046 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 1046 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 1044 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 1108 MovieClip "back" in Frame 79
onClipEvent (load) { this._x = 0; this._y = 0; }
Instance of Symbol 1121 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 1051 MovieClip "oil2" in Frame 79
onClipEvent (load) { this.oil.oilspill._xscale = 100; this.oil.oilspill._yscale = 100; }
Instance of Symbol 1051 MovieClip "oil1" in Frame 79
onClipEvent (load) { this.oil.oilspill._xscale = 100; this.oil.oilspill._yscale = 100; }
Instance of Symbol 1051 MovieClip "oil3" in Frame 79
onClipEvent (load) { this.oil.oilspill._xscale = 100; this.oil.oilspill._yscale = 100; }
Instance of Symbol 1058 MovieClip "rig10" in Frame 79
onClipEvent (load) { oilfield = "oil3"; _root.objarray.push(this._name); }
Instance of Symbol 1058 MovieClip "rig11" in Frame 79
onClipEvent (load) { oilfield = "oil2"; _root.objarray.push(this._name); }
Instance of Symbol 1060 MovieClip "burton" in Frame 79
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1031 MovieClip in Frame 79
onClipEvent (load) { ranges = 1; }
Instance of Symbol 524 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 1121 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 1064 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 1121 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 1044 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 1046 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 1046 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 1044 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 1187 MovieClip "back" in Frame 83
onClipEvent (load) { this._x = 0; this._y = 0; }
Instance of Symbol 524 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 1121 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 1060 MovieClip "burton" in Frame 83
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1031 MovieClip in Frame 83
onClipEvent (load) { ranges = 1; }
Instance of Symbol 1051 MovieClip "oil2" in Frame 83
onClipEvent (load) { this.oil.oilspill._xscale = 100; this.oil.oilspill._yscale = 100; }
Instance of Symbol 1058 MovieClip "rig11" in Frame 83
onClipEvent (load) { oilfield = "oil2"; _root.objarray.push(this._name); }
Instance of Symbol 1051 MovieClip "oil1" in Frame 83
onClipEvent (load) { this.oil.oilspill._xscale = 100; this.oil.oilspill._yscale = 100; }
Instance of Symbol 1058 MovieClip "rig10" in Frame 83
onClipEvent (load) { oilfield = "oil1"; _root.objarray.push(this._name); }
Instance of Symbol 1064 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 524 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 1121 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 1187 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 1044 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 1046 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 1046 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 1044 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 1187 MovieClip "back" in Frame 87
onClipEvent (load) { this._x = 0; this._y = 0; }
Instance of Symbol 1121 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 1051 MovieClip "oil2" in Frame 87
onClipEvent (load) { this.oil.oilspill._xscale = 100; this.oil.oilspill._yscale = 100; }
Instance of Symbol 1051 MovieClip "oil3" in Frame 87
onClipEvent (load) { this.oil.oilspill._xscale = 100; this.oil.oilspill._yscale = 100; }
Instance of Symbol 1058 MovieClip "rig10" in Frame 87
onClipEvent (load) { oilfield = "oil3"; _root.objarray.push(this._name); }
Instance of Symbol 1058 MovieClip "rig11" in Frame 87
onClipEvent (load) { oilfield = "oil2"; _root.objarray.push(this._name); }
Instance of Symbol 1060 MovieClip "burton" in Frame 87
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1031 MovieClip in Frame 87
onClipEvent (load) { ranges = 1; }
Instance of Symbol 524 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 1121 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 524 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 1064 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 1121 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 1121 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 251 MovieClip in Frame 91
/* no clip actions */
Instance of Symbol 1031 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.scrolla = true; _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 1044 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 1046 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 1046 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 1044 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 1058 MovieClip "rig6" in Frame 95
onClipEvent (load) { oilfield = "oil6"; _root.objarray.push(this._name); }
Instance of Symbol 1058 MovieClip "rig10" in Frame 95
onClipEvent (load) { oilfield = "oil3"; _root.objarray.push(this._name); }
Instance of Symbol 1058 MovieClip "rig19" in Frame 95
onClipEvent (load) { oilfield = "oil1"; _root.objarray.push(this._name); }
Instance of Symbol 1060 MovieClip "burton" in Frame 95
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1031 MovieClip in Frame 95
/* no clip actions */
Instance of Symbol 1064 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 1237 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 1044 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 1046 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 1046 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 1044 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 1058 MovieClip "rig10" in Frame 132
onClipEvent (load) { oilfield = "oil3"; _root.objarray.push(this._name); }
Instance of Symbol 1058 MovieClip "rig10" in Frame 132
onClipEvent (load) { oilfield = "oil2"; _root.objarray.push(this._name); }
Instance of Symbol 1031 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 1121 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 1060 MovieClip "burton" in Frame 132
onClipEvent (load) { this.swapDepths(1100100); }
Instance of Symbol 1064 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 1058 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 1237 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 1139 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 1139 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 1142 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 1139 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 1139 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 1139 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 1139 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 1139 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 1151 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 18 MovieClip Frame 1
if (_parent._parent.enemy) { gotoAndStop ("red"); } if (_parent._parent.ally === true) { this._visible = false; } stop();
Symbol 18 MovieClip Frame 2
stop();
Symbol 20 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 24 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 32 MovieClip Frame 1
if (_parent.ally === true) { this.stripe._visible = false; } stop();
Symbol 32 MovieClip Frame 2
if (_parent.ally === true) { this.stripe._visible = false; } play();
Instance of Symbol 23 MovieClip in Symbol 32 MovieClip Frame 2
onClipEvent (enterFrame) { n++; if (n > 4) { n = 0; _parent.nextFrame(); } } onClipEvent (load) { this._visible = false; n = 0; }
Symbol 32 MovieClip Frame 3
stop();
Symbol 32 MovieClip Frame 7
play();
Symbol 32 MovieClip Frame 11
if (_parent.ally === true) { this.stripe._visible = false; } _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 32 MovieClip Frame 12
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 32 MovieClip Frame 15
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 32 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 44 MovieClip Frame 1
_parent.aggressive = false; stop();
Symbol 44 MovieClip Frame 2
stop();
Symbol 44 MovieClip Frame 3
x = _root[targetobj]._x; y = _root[targetobj]._y;
Symbol 44 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 44 MovieClip Frame 14
Symbol 44 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 23 MovieClip in Symbol 44 MovieClip Frame 30
onClipEvent (enterFrame) { n++; if (n > (_parent._parent.firerate - 8)) { _parent.gotoAndStop(2); } } onClipEvent (load) { n = 0; }
Symbol 44 MovieClip Frame 44
gotoAndStop ("ready");
Instance of Symbol 23 MovieClip in Symbol 44 MovieClip Frame 44
onClipEvent (enterFrame) { n++; if (n > _parent._parent.firerate) { _parent.gotoAndStop(1); } } onClipEvent (load) { n = 0; }
Symbol 48 MovieClip [artilleryally] Frame 1
stop();
Instance of Symbol 32 MovieClip "dummy" in Symbol 48 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 34 MovieClip "selector" in Symbol 48 MovieClip [artilleryally] Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 47 MovieClip "lifebar" in Symbol 48 MovieClip [artilleryally] Frame 1
onClipEvent (enterFrame) { this._xscale = 110 * (_parent.life / _parent.fulllife); if (_parent.dummy._currentframe <= 11) { if (_parent.life <= 0) { _parent.dummy.gotoAndPlay("explode"); } } }
Symbol 48 MovieClip [artilleryally] Frame 2
stop();
Symbol 50 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 51 MovieClip Frame 1
if (_root.sidebar.build.lasertank._currentframe == 2) { _root.sidebar.build.lasertank.gotoAndStop(13); } stop();
Symbol 51 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 51 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 55 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 55 MovieClip Frame 5
Symbol 55 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 55 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 54 MovieClip in Symbol 55 MovieClip Frame 8
onClipEvent (enterFrame) { n++; if (n > _parent._parent.firerate) { _parent.gotoAndStop(1); } } onClipEvent (load) { n = 0; }
Symbol 55 MovieClip Frame 11
gotoAndStop ("normal");
Symbol 56 MovieClip [lasertank] Frame 1
stop();
Instance of Symbol 51 MovieClip "dummy" in Symbol 56 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 34 MovieClip "selector" in Symbol 56 MovieClip [lasertank] Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 47 MovieClip "lifebar" in Symbol 56 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 56 MovieClip [lasertank] Frame 2
stop();
Symbol 64 MovieClip [missiondefend2] Frame 2
pp = 0; stop(); assigndefvar("map4"); stop();
Instance of Symbol 60 MovieClip in Symbol 64 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 67 MovieClip [missiondefend] Frame 2
pp = 0; stop(); assigndefvar("map2"); stop();
Symbol 70 MovieClip [missiondefend6] Frame 2
pp = 0; stop(); assigndefvar("map8"); stop();
Instance of Symbol 60 MovieClip in Symbol 70 MovieClip [missiondefend6] Frame 2
onClipEvent (enterFrame) { if (_root.airport.life <= 0) { _root.gotoAndStop("defeat8d"); } }
Symbol 72 MovieClip [missiondefend5] Frame 2
pp = 0; stop(); assigndefvar("map7"); stop();
Instance of Symbol 60 MovieClip in Symbol 72 MovieClip [missiondefend5] Frame 2
onClipEvent (enterFrame) { if (_root.oilderricks <= 4) { _root.gotoAndStop("defeat7d"); } }
Symbol 74 MovieClip [missiondefend4] Frame 2
pp = 0; stop(); assigndefvar("map6"); stop();
Instance of Symbol 60 MovieClip in Symbol 74 MovieClip [missiondefend4] Frame 2
onClipEvent (enterFrame) { if (_root.techcentre1.life <= 0) { _root.gotoAndStop("defeat6d"); } }
Symbol 76 MovieClip [missiondefend3] Frame 2
pp = 0; stop(); assigndefvar("map5"); stop();
Instance of Symbol 60 MovieClip in Symbol 76 MovieClip [missiondefend3] Frame 2
onClipEvent (enterFrame) { if (_root.sensornets <= 0) { _root.gotoAndStop("defeat5"); } }
Symbol 78 MovieClip [mission9] Frame 2
pp = 0; stop(); assignvars(); stop();
Symbol 80 MovieClip [mission8] Frame 2
pp = 0; stop(); assignvars(); stop();
Instance of Symbol 60 MovieClip in Symbol 80 MovieClip [mission8] Frame 2
onClipEvent (enterFrame) { if (_root.airport.life <= 0) { _root.gotoAndStop("defeat8"); } }
Symbol 82 MovieClip [mission6] Frame 2
pp = 0; stop(); assignvars(); _root.attackarray = []; stop();
Instance of Symbol 60 MovieClip in Symbol 82 MovieClip [mission6] Frame 2
onClipEvent (enterFrame) { if (_root.enemytechcentre1.life <= 0) { _root.gotoAndStop("defeat6"); } }
Symbol 84 MovieClip [mission5] Frame 2
pp = 0; stop(); assignvars(); _root.attackarray = []; stop();
Instance of Symbol 60 MovieClip in Symbol 84 MovieClip [mission5] Frame 2
onClipEvent (enterFrame) { if (_root.sensornets <= 0) { _root.gotoAndStop("defeat5"); } }
Symbol 86 MovieClip [mission4] Frame 2
pp = 0; stop(); assignvars(); _root.attackarray = []; stop();
Instance of Symbol 60 MovieClip in Symbol 86 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 94 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 60 MovieClip in Symbol 94 MovieClip [mission2] Frame 1
onClipEvent (enterFrame) { pp++; if (pp > 100) { _parent.nextFrame(); } } onClipEvent (load) { pp = 0; }
Symbol 94 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 60 MovieClip in Symbol 94 MovieClip [mission2] Frame 2
onClipEvent (enterFrame) { _parent.pp++; if (_parent.pp > 100) { _parent.nextFrame(); } } onClipEvent (load) { _parent.pp = 0; }
Symbol 94 MovieClip [mission2] Frame 3
nextFrame();
Instance of Symbol 60 MovieClip in Symbol 94 MovieClip [mission2] Frame 3
/* no clip actions */
Symbol 94 MovieClip [mission2] Frame 4
stop();
Symbol 99 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 60 MovieClip in Symbol 99 MovieClip [mission] Frame 1
onClipEvent (enterFrame) { pp++; if (pp > 100) { _parent.nextFrame(); } } onClipEvent (load) { pp = 0; }
Symbol 99 MovieClip [mission] Frame 2
pp = 0; stop();
Instance of Symbol 60 MovieClip in Symbol 99 MovieClip [mission] Frame 2
onClipEvent (enterFrame) { _parent.pp++; if (_parent.pp > 100) { _parent.nextFrame(); } } onClipEvent (load) { _parent.pp = 0; }
Symbol 99 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 60 MovieClip in Symbol 99 MovieClip [mission] Frame 3
/* no clip actions */
Symbol 99 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 101 MovieClip Frame 1
stop();
Symbol 101 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 101 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 107 MovieClip Frame 1
stop();
Symbol 107 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 107 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 60 MovieClip in Symbol 107 MovieClip Frame 10
onClipEvent (enterFrame) { n++; if (n > _parent._parent.firerate) { _parent.gotoAndStop(1); } } onClipEvent (load) { n = 0; }
Symbol 107 MovieClip Frame 16
gotoAndStop ("normal");
Symbol 108 MovieClip [lightally] Frame 1
stop();
Instance of Symbol 101 MovieClip "dummy" in Symbol 108 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 34 MovieClip "selector" in Symbol 108 MovieClip [lightally] Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 47 MovieClip "lifebar" in Symbol 108 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 108 MovieClip [lightally] Frame 2
stop();
Symbol 111 MovieClip Frame 1
stop();
Symbol 111 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 111 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 114 MovieClip Frame 1
stop();
Symbol 114 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 114 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 114 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 114 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 114 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 60 MovieClip in Symbol 114 MovieClip Frame 10
onClipEvent (enterFrame) { n++; if (n > _parent._parent.firerate) { _parent.gotoAndStop(1); } } onClipEvent (load) { n = 0; }
Symbol 114 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 115 MovieClip [heavyally] Frame 1
stop();
Instance of Symbol 111 MovieClip "dummy" in Symbol 115 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 34 MovieClip "selector" in Symbol 115 MovieClip [heavyally] Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 47 MovieClip "lifebar" in Symbol 115 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 115 MovieClip [heavyally] Frame 2
stop();
Symbol 117 MovieClip Frame 1
stop();
Symbol 117 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 117 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 124 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 1
stop();
Symbol 128 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(); }
Symbol 128 MovieClip Frame 10
if (_parent.miss < 2) { gotoAndPlay ("rd"); }
Symbol 128 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 128 MovieClip Frame 15
if (_parent.miss < 3) { gotoAndPlay ("rd"); }
Symbol 128 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(); }
Instance of Symbol 124 MovieClip in Symbol 128 MovieClip Frame 19
onClipEvent (enterFrame) { n++; if (n > _parent._parent.firerate) { _parent.gotoAndStop(1); } } onClipEvent (load) { n = 0; }
Symbol 128 MovieClip Frame 45
stop(); gotoAndStop ("normal");
Symbol 129 MovieClip [rocketally] Frame 1
stop();
Instance of Symbol 117 MovieClip "dummy" in Symbol 129 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 34 MovieClip "selector" in Symbol 129 MovieClip [rocketally] Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 47 MovieClip "lifebar" in Symbol 129 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 129 MovieClip [rocketally] Frame 2
stop();
Symbol 131 MovieClip [humveeebase] Frame 1
stop();
Symbol 131 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 131 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 137 MovieClip Frame 1
stop();
Symbol 137 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 137 MovieClip Frame 3
if (!_parent.gatling) { gotoAndPlay ("shoot"); }
Symbol 137 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 137 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 137 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 137 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 136 MovieClip in Symbol 137 MovieClip Frame 7
onClipEvent (enterFrame) { n++; if (n > _parent._parent.firerate) { _parent.gotoAndStop(1); } } onClipEvent (load) { n = 0; }
Symbol 137 MovieClip Frame 11
gotoAndStop ("normal");
Symbol 138 MovieClip [humveeally] Frame 1
stop();
Instance of Symbol 131 MovieClip [humveeebase] "dummy" in Symbol 138 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 = 3; _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 34 MovieClip "selector" in Symbol 138 MovieClip [humveeally] Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 47 MovieClip "lifebar" in Symbol 138 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 138 MovieClip [humveeally] Frame 2
stop();
Symbol 142 MovieClip Frame 1
stop();
Symbol 142 MovieClip Frame 2
stop();
Symbol 142 MovieClip Frame 3
_parent._x = _root.refinery1._x; _parent._y = _root.refinery1._y; this._rotation = 90; _parent.movesym(); play();
Symbol 142 MovieClip Frame 4
if (_parent.oil > 0) { _root.money = _root.money + 750; _parent.oil = _parent.oil - 20; }
Symbol 142 MovieClip Frame 5
if (_parent.oil > 0) { _root.money = _root.money + 250; _parent.oil = _parent.oil - 20; }
Symbol 142 MovieClip Frame 6
if (_parent.oil > 0) { _root.money = _root.money + 150; _parent.oil = _parent.oil - 20; }
Symbol 142 MovieClip Frame 7
if (_parent.oil > 0) { _root.money = _root.money + 250; _parent.oil = _parent.oil - 20; }
Symbol 142 MovieClip Frame 8
if (_parent.oil > 0) { _root.money = _root.money + 150; _parent.oil = _parent.oil - 20; } refinery = false; gotoAndStop (1);
Symbol 142 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 142 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 143 MovieClip [oiltruck] Frame 1
stop();
Instance of Symbol 142 MovieClip "dummy" in Symbol 143 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 34 MovieClip "selector" in Symbol 143 MovieClip [oiltruck] Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 47 MovieClip "lifebar" in Symbol 143 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 47 MovieClip "oilbar" in Symbol 143 MovieClip [oiltruck] Frame 1
onClipEvent (enterFrame) { this._xscale = 60 * (_parent.oil / _parent.fulloil); }
Symbol 143 MovieClip [oiltruck] Frame 2
stop();
Symbol 148 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 148 MovieClip Frame 5
Symbol 148 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 148 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 147 MovieClip in Symbol 148 MovieClip Frame 8
onClipEvent (enterFrame) { n++; if (n > _parent._parent.firerate) { _parent.gotoAndStop(1); } } onClipEvent (load) { n = 0; }
Symbol 148 MovieClip Frame 11
gotoAndStop ("normal");
Symbol 150 MovieClip Frame 1
stop();
Symbol 150 MovieClip Frame 2
if (_parent.life < _parent.fulllife) { _parent.life = _parent.life + 5; }
Symbol 150 MovieClip Frame 6
if (_parent.life < _parent.fulllife) { _parent.life = _parent.life + 5; }
Symbol 150 MovieClip Frame 9
gotoAndStop (1);
Symbol 152 MovieClip [laserbasedefense] Frame 1
stop();
Instance of Symbol 34 MovieClip "selector" in Symbol 152 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 47 MovieClip "lifebar" in Symbol 152 MovieClip [laserbasedefense] Frame 1
onClipEvent (enterFrame) { this._xscale = 100 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 152 MovieClip [laserbasedefense] Frame 2
_root.enemymoney = _root.enemymoney + 1500;
Symbol 152 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 158 MovieClip [mine] Frame 1
stop();
Instance of Symbol 34 MovieClip "selector" in Symbol 158 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 158 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 158 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 168 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 168 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 168 MovieClip Frame 3
Symbol 168 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 168 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 168 MovieClip Frame 7
gotoAndPlay ("normal");
Symbol 169 MovieClip [turrets] Frame 1
stop();
Instance of Symbol 34 MovieClip "selector" in Symbol 169 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 47 MovieClip "lifebar" in Symbol 169 MovieClip [turrets] Frame 1
onClipEvent (enterFrame) { this._xscale = 100 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 169 MovieClip [turrets] Frame 2
_root.enemymoney = _root.enemymoney + 1000;
Symbol 169 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 174 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 174 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 174 MovieClip [rad] Frame 40
gotoAndPlay (1);
Symbol 177 MovieClip [laser2] Frame 1
Symbol 177 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 177 MovieClip [laser2] Frame 4
_root.objarray.findandsplice(this._name); this.removeMovieClip();
Symbol 181 MovieClip [ionbeams] Frame 1
this._alpha = 50;
Symbol 181 MovieClip [ionbeams] Frame 4
Symbol 184 MovieClip [laser] Frame 1
Symbol 184 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 184 MovieClip [laser] Frame 4
_root.objarray.findandsplice(this._name); this.removeMovieClip();
Symbol 190 MovieClip [mo] Frame 1
stop();
Instance of Symbol 186 MovieClip "mouse" in Symbol 190 MovieClip [mo] Frame 1
onClipEvent (enterFrame) { _parent._x = _root._xmouse; _parent._y = _root._ymouse; }
Symbol 190 MovieClip [mo] Frame 2
stop();
Instance of Symbol 189 MovieClip in Symbol 190 MovieClip [mo] Frame 2
onClipEvent (enterFrame) { _parent._x = _root._xmouse; _parent._y = _root._ymouse; }
Symbol 190 MovieClip [mo] Frame 3
stop();
Symbol 195 Button
on (rollOver) { if (_root.selectedarray.length > 0) { _root.mouse.gotoAndStop("attacker"); } } on (rollOut) { if (_root.selectedarray.length > 0) { _root.mouse.gotoAndStop("locator"); } }
Symbol 201 MovieClip [enemyconstruction] Frame 1
this.cacheAsBitmap = true; stop();
Instance of Symbol 34 MovieClip "selector" in Symbol 201 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 47 MovieClip "lifebar" in Symbol 201 MovieClip [enemyconstruction] Frame 1
onClipEvent (enterFrame) { this._xscale = 370 * (_parent.life / _parent.fulllife); if ((_parent.life <= 0) && (!_parent.drag)) { _parent.gotoAndPlay("explode"); } }
Symbol 201 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 201 MovieClip [enemyconstruction] Frame 3
Symbol 201 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 205 Button
on (keyPress "<Space>") { if (_parent.drag) { _parent.gotoAndPlay(12); } }
Symbol 207 MovieClip [construction2] Frame 1
stop();
Instance of Symbol 34 MovieClip "selector" in Symbol 207 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 47 MovieClip "lifebar" in Symbol 207 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 207 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 207 MovieClip [construction2] Frame 3
Symbol 207 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 215 MovieClip [construction] Frame 1
this.cacheAsBitmap = true; stop();
Instance of Symbol 34 MovieClip "selector" in Symbol 215 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 47 MovieClip "lifebar" in Symbol 215 MovieClip [construction] Frame 1
onClipEvent (enterFrame) { this._xscale = 370 * (_parent.life / _parent.fulllife); if ((_parent.life <= 0) && (!_parent.drag)) { _parent.gotoAndPlay("explode"); } }
Symbol 215 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 215 MovieClip [construction] Frame 3
Symbol 215 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 218 MovieClip [bigdot2] Frame 1
if (_root.comcentre1.life == undefined) { this._visible = false; } stop();
Symbol 218 MovieClip [bigdot2] Frame 6
gotoAndStop (1);
Symbol 220 MovieClip [bigdot] Frame 1
if (_root.comcentre1.life == undefined) { this._visible = false; } stop();
Symbol 220 MovieClip [bigdot] Frame 6
gotoAndStop (1);
Symbol 223 MovieClip [dot2] Frame 1
if (_root.comcentre1.life == undefined) { this._visible = false; } stop();
Symbol 223 MovieClip [dot2] Frame 6
gotoAndStop (1);
Symbol 234 MovieClip [nuke] Frame 1
_root.objarray.push(_name);
Symbol 234 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 234 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 234 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 234 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 234 MovieClip [nuke] Frame 16
_root.objarray.findandsplice(_name); this.removeMovieClip(); stop();
Symbol 239 MovieClip [targeter] Frame 1
timer = 1;
Instance of Symbol 238 MovieClip in Symbol 239 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 243 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 244 MovieClip [nukemiss2] Frame 1
_root.objarray.push(this._name);
Instance of Symbol 243 MovieClip in Symbol 244 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 246 MovieClip [nukemiss] Frame 1
_root.objarray.push(this._name);
Instance of Symbol 243 MovieClip in Symbol 246 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 248 MovieClip [padded] Frame 1
if (_root.comcentre1.life == undefined) { this._visible = false; } stop();
Symbol 256 Button
on (press) { fscommand ("quit"); }
Symbol 260 Button
on (release) { gotoAndPlay ("options"); }
Symbol 264 Button
on (press) { gotoAndPlay ("skirmish"); }
Symbol 268 Button
on (press) { play(); }
Symbol 272 Button
on (release) { _root.gotoAndPlay(2); }
Symbol 282 Button
on (press) { gotoAndPlay ("reverse"); }
Symbol 288 Button
on (press) { _root.difficulty = 5; _root.gotoAndStop(5); }
Symbol 293 Button
on (press) { _root.difficulty = 10; _root.gotoAndStop(5); }
Symbol 298 Button
on (press) { _root.difficulty = 20; _root.gotoAndStop(5); }
Symbol 302 Button
on (press) { _root.gotoAndStop(5); _root.loadings = true; }
Symbol 315 Button
on (release) { _root.screen = !_root.screen; if (_root.screen) { sc = "On"; } if (!_root.screen) { sc = "Off"; } fscommand ("fullscreen", _root.screen); }
Symbol 320 Button
on (release) { _root.smart = !_root.smart; if (_root.smart) { smart = "On"; } if (!_root.smart) { smart = "Off"; } }
Symbol 325 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 329 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 333 Button
on (release) { _root.setsoundon = !_root.setsoundon; if (_root.setsoundon) { mute = "On"; } if (!_root.setsoundon) { mute = "Off"; } }
Symbol 337 Button
on (release) { _root.fog = !_root.fog; if (_root.fog) { foghorn = "On"; } if (!_root.fog) { foghorn = "Off"; } }
Symbol 349 MovieClip Frame 1
this._visible = false;
Symbol 367 MovieClip Frame 1
this.cacheAsBitmap = true; this.opaqueBackground = 0; stop();
Symbol 367 MovieClip Frame 2
stop();
Instance of Symbol 361 MovieClip "back" in Symbol 367 MovieClip Frame 5
/* no clip actions */
Instance of Symbol 365 MovieClip "back" in Symbol 367 MovieClip Frame 6
/* no clip actions */
Symbol 370 Button
on (release) { _root.currento = current; _root.gotoAndPlay(4); }
Symbol 374 Button
on (press) { if (current > 0) { current--; } mapname = mapsarray[current]; _root.currentlist = mapslist[current]; mapp.gotoAndStop("map" + current); }
Symbol 375 Button
on (press) { if (current < (mapsarray.length - 1)) { current++; } mapname = mapsarray[current]; _root.currentlist = mapslist[current]; mapp.gotoAndStop("map" + current); }
Symbol 378 Button
on (release) { _root.ownmap5 = !_root.ownmap5; if (!_root.owmmap5) { shroud = "On"; } if (_root.ownmap5) { shroud = "Off"; } }
Symbol 385 Button
on (press) { if (_root.monet < 50000) { _root.monet = _root.monet + 5000; } }
Symbol 386 Button
on (press) { if (_root.monet > 5000) { _root.monet = _root.monet - 5000; } }
Symbol 392 Button
on (release) { this.lists._visible = !this.lists._visible; this.lists2._visible = false; }
Symbol 395 Button
on (release) { this.lists2._visible = !this.lists2._visible; this.lists._visible = false; }
Symbol 401 Button
on (release) { _root.difficulty = 3; _parent.difficulty = "Easy Enemy"; this._visible = false; }
Symbol 405 Button
on (release) { _root.difficulty = 2; _parent.difficulty = "Medium Enemy"; this._visible = false; }
Symbol 409 Button
on (release) { _root.difficulty = 1; _parent.difficulty = "Hard Enemy"; this._visible = false; }
Symbol 414 Button
on (release) { _root.difficulty = 0.7; _parent.difficulty = "Burtal Enemy"; this._visible = false; }
Symbol 417 Button
on (release) { _root.difficulty = 4; _parent.difficulty = "Novice Enemy"; this._visible = false; }
Symbol 425 Button
on (release) { _root.aip = "Technology Commander"; _root.ais = 4; this._visible = false; }
Symbol 433 Button
on (release) { _root.aip = "Offensive Commander"; _root.ais = 1; this._visible = false; }
Symbol 439 Button
on (release) { _root.aip = "Defensive Commander"; _root.ais = 2; this._visible = false; }
Symbol 444 Button
on (release) { _root.aip = "Superweapon Commander"; _root.ais = 5; this._visible = false; }
Symbol 451 Button
on (release) { _root.aip = "Economic Commander"; _root.ais = 3; this._visible = false; }
Symbol 453 MovieClip [bar] Frame 1
stop();
Instance of Symbol 251 MovieClip in Symbol 453 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 251 MovieClip in Symbol 453 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 453 MovieClip [bar] Frame 11
stop();
Symbol 453 MovieClip [bar] Frame 26
gotoAndStop (1);
Symbol 453 MovieClip [bar] Frame 37
stop();
Symbol 453 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 367 MovieClip "mapp" in Symbol 453 MovieClip [bar] Frame 48
/* no clip actions */
Instance of Symbol 418 MovieClip "lists2" in Symbol 453 MovieClip [bar] Frame 48
onClipEvent (load) { this._visible = false; }
Instance of Symbol 452 MovieClip "lists" in Symbol 453 MovieClip [bar] Frame 48
onClipEvent (load) { this._visible = false; }
Symbol 455 MovieClip [weaponsilo] Frame 1
_root.sidebar.nuketimer.gotoAndPlay(2); this.cacheAsBitmap = true; stop();
Instance of Symbol 34 MovieClip "selector" in Symbol 455 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 47 MovieClip "lifebar" in Symbol 455 MovieClip [weaponsilo] Frame 1
onClipEvent (enterFrame) { this._xscale = 400 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 455 MovieClip [weaponsilo] Frame 2
_root.enemymoney = _root.enemymoney + 10000;
Symbol 455 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 457 MovieClip Frame 1
stop();
Symbol 457 MovieClip Frame 2
if (_parent.life < _parent.fulllife) { _parent.life = _parent.life + 5; }
Symbol 457 MovieClip Frame 6
if (_parent.life < _parent.fulllife) { _parent.life = _parent.life + 5; }
Symbol 457 MovieClip Frame 10
if (_parent.life < _parent.fulllife) { _parent.life = _parent.life + 5; }
Symbol 457 MovieClip Frame 14
if (_parent.life < _parent.fulllife) { _parent.life = _parent.life + 5; }
Symbol 457 MovieClip Frame 18
if (_parent.life < _parent.fulllife) { _parent.life = _parent.life + 5; }
Symbol 457 MovieClip Frame 22
if (_parent.life < _parent.fulllife) { _parent.life = _parent.life + 5; }
Symbol 457 MovieClip Frame 25
number++; gotoAndStop (1);
Symbol 458 Button
on (rollOver) { if (_root.selectedarray.length > 0) { _root.mouse.gotoAndStop("attacker"); } } on (rollOut) { if (_root.selectedarray.length > 0) { _root.mouse.gotoAndStop("locator"); } }
Symbol 459 MovieClip [enemyweaponsilo] Frame 1
_root.sidebar.enemynuketimer.gotoAndPlay(2); this.cacheAsBitmap = true; stop();
Instance of Symbol 34 MovieClip "selector" in Symbol 459 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 47 MovieClip "lifebar" in Symbol 459 MovieClip [enemyweaponsilo] Frame 1
onClipEvent (enterFrame) { this._xscale = 410 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 459 MovieClip [enemyweaponsilo] Frame 2
_root.money = _root.money + 10000;
Symbol 459 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 461 MovieClip Frame 1
stop();
Symbol 461 MovieClip Frame 2
if (_parent.enemy) { _root.money = _root.money + 100; } if (!_parent.enemy) { _root.enemymoney = _root.enemymoney + 100; } _parent.turret._visible = false;
Symbol 461 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 462 MovieClip [enemylasertank] Frame 1
stop();
Instance of Symbol 461 MovieClip "dummy" in Symbol 462 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 34 MovieClip "selector" in Symbol 462 MovieClip [enemylasertank] Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 47 MovieClip "lifebar" in Symbol 462 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 462 MovieClip [enemylasertank] Frame 2
stop();
Symbol 466 MovieClip Frame 1
stop();
Symbol 466 MovieClip Frame 2
stop();
Symbol 466 MovieClip Frame 3
_parent._x = _root.enemyrefinery1._x; _parent._y = _root.enemyrefinery1._y; this._rotation = 90; _parent.movesym(); play();
Symbol 466 MovieClip Frame 4
if (_parent.oil > 0) { _root.enemymoney = _root.enemymoney + 150; _parent.oil = _parent.oil - 20; }
Symbol 466 MovieClip Frame 5
if (_parent.oil > 0) { _root.enemymoney = _root.enemymoney + 250; _parent.oil = _parent.oil - 20; }
Symbol 466 MovieClip Frame 6
if (_parent.oil > 0) { _root.enemymoney = _root.enemymoney + 250; _parent.oil = _parent.oil - 20; }
Symbol 466 MovieClip Frame 7
if (_parent.oil > 0) { _root.enemymoney = _root.enemymoney + 150; _parent.oil = _parent.oil - 20; }
Symbol 466 MovieClip Frame 8
if (_parent.oil > 0) { _root.enemymoney = _root.enemymoney + 650; _parent.oil = _parent.oil - 20; } refinery = false; gotoAndStop (1);
Symbol 466 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 466 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 467 MovieClip [enemyoiltruck] Frame 1
stop();
Instance of Symbol 466 MovieClip "dummy" in Symbol 467 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 34 MovieClip "selector" in Symbol 467 MovieClip [enemyoiltruck] Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 47 MovieClip "lifebar" in Symbol 467 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 467 MovieClip [enemyoiltruck] Frame 2
stop();
Symbol 469 MovieClip [enemyturret] Frame 1
stop();
Instance of Symbol 34 MovieClip "selector" in Symbol 469 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 47 MovieClip "lifebar" in Symbol 469 MovieClip [enemyturret] Frame 1
onClipEvent (enterFrame) { this._xscale = 100 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 469 MovieClip [enemyturret] Frame 2
_root.money = _root.money + 1000;
Symbol 469 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 471 MovieClip [mission3] Frame 2
pp = 0; stop(); assignvars(); _root.attackarray = []; stop();
Instance of Symbol 60 MovieClip in Symbol 471 MovieClip [mission3] Frame 2
onClipEvent (enterFrame) { if (_root.alliedunits <= 0) { _root.gotoAndStop("defeat3"); } }
Symbol 473 MovieClip [enemywarfactory] Frame 1
names = this._name; repairs = false; this.cacheAsBitmap = true; _root.ai.build = true; stop();
Instance of Symbol 47 MovieClip "lifebar" in Symbol 473 MovieClip [enemywarfactory] Frame 1
onClipEvent (enterFrame) { this._xscale = 290 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Instance of Symbol 34 MovieClip "selector" in Symbol 473 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 473 MovieClip [enemywarfactory] Frame 2
_root.money = _root.money + 2000;
Symbol 473 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 477 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 34 MovieClip "selector" in Symbol 477 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 47 MovieClip "lifebar" in Symbol 477 MovieClip [enemyrefinery] Frame 1
onClipEvent (enterFrame) { this._xscale = 400 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 477 MovieClip [enemyrefinery] Frame 2
_root.money = _root.money + 5000;
Symbol 477 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 479 MovieClip [enemycomcentre] Frame 1
_root.enemycomcentre = 1; repairs = false; name = this._name; this.cacheAsBitmap = true; stop();
Instance of Symbol 34 MovieClip "selector" in Symbol 479 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 47 MovieClip "lifebar" in Symbol 479 MovieClip [enemycomcentre] Frame 1
onClipEvent (enterFrame) { this._xscale = 370 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 479 MovieClip [enemycomcentre] Frame 2
_root.money = _root.money + 5000;
Symbol 479 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 481 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 34 MovieClip "selector" in Symbol 481 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 47 MovieClip "lifebar" in Symbol 481 MovieClip [enemyservicedepot] Frame 1
onClipEvent (enterFrame) { this._xscale = 380 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 481 MovieClip [enemyservicedepot] Frame 2
_root.money = _root.money + 5000;
Symbol 481 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 483 MovieClip [enemytechcentre] Frame 1
names = this._name; repairs = false; this.cacheAsBitmap = true; stop();
Instance of Symbol 34 MovieClip "selector" in Symbol 483 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 47 MovieClip "lifebar" in Symbol 483 MovieClip [enemytechcentre] Frame 1
onClipEvent (enterFrame) { this._xscale = 240 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 483 MovieClip [enemytechcentre] Frame 2
_root.money = _root.money + 1500;
Symbol 483 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 485 MovieClip [servicedepot] Frame 1
_root.servicedepot = 1; this.cacheAsBitmap = true; stop();
Instance of Symbol 34 MovieClip "selector" in Symbol 485 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 47 MovieClip "lifebar" in Symbol 485 MovieClip [servicedepot] Frame 1
onClipEvent (enterFrame) { this._xscale = 380 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 485 MovieClip [servicedepot] Frame 2
_root.enemymoney = _root.enemymoney + 5000;
Symbol 485 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 487 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 34 MovieClip "selector" in Symbol 487 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 47 MovieClip "lifebar" in Symbol 487 MovieClip [techcentre] Frame 1
onClipEvent (enterFrame) { this._xscale = 240 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 487 MovieClip [techcentre] Frame 2
_root.enemymoney = _root.enemymoney + 1500;
Symbol 487 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 489 MovieClip [enemylaser] Frame 1
repairs = false; stop();
Instance of Symbol 34 MovieClip "selector" in Symbol 489 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 47 MovieClip "lifebar" in Symbol 489 MovieClip [enemylaser] Frame 1
onClipEvent (enterFrame) { this._xscale = 100 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 489 MovieClip [enemylaser] Frame 2
_root.money = _root.money + 1500;
Symbol 489 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 496 MovieClip [enemymine] Frame 1
_root.enemymines++; stop(); this._visible = false; this.cacheAsBitmap = true; repairs = false; stop();
Instance of Symbol 34 MovieClip "selector" in Symbol 496 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 47 MovieClip "lifebar" in Symbol 496 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 496 MovieClip [enemymine] Frame 2
this._visible = true;
Symbol 496 MovieClip [enemymine] Frame 25
_root.enemymines--; if (_root.soundon) { soundobj = new Sound(); soundobj.attachSound("crash"); soundobj.start(); }
Symbol 496 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 496 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 504 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 500 MovieClip in Symbol 504 MovieClip Frame 1
/* no clip actions */
Symbol 504 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 504 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 504 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 504 MovieClip Frame 16
if ((_root[targetobj].life < 0) || (_root[targetobj].life == undefined)) { targetobj = undefined; } stop();
Instance of Symbol 500 MovieClip in Symbol 504 MovieClip Frame 16
onClipEvent (enterFrame) { n++; if (n > _parent._parent.firerate) { _parent.gotoAndStop(1); } } onClipEvent (load) { n = 0; }
Symbol 504 MovieClip Frame 20
gotoAndStop ("normal");
Symbol 505 MovieClip [enemymultiple] Frame 1
if (targetobj == undefined) { stop(); } repairs = false;
Instance of Symbol 34 MovieClip "selector" in Symbol 505 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 47 MovieClip "lifebar" in Symbol 505 MovieClip [enemymultiple] Frame 1
onClipEvent (enterFrame) { this._xscale = 110 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 505 MovieClip [enemymultiple] Frame 2
_root.money = _root.money + 1500;
Symbol 505 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 507 MovieClip [patriotmiss] Frame 1
if (targetobj == undefined) { stop(); }
Instance of Symbol 34 MovieClip "selector" in Symbol 507 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 47 MovieClip "lifebar" in Symbol 507 MovieClip [patriotmiss] Frame 1
onClipEvent (enterFrame) { this._xscale = 110 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 507 MovieClip [patriotmiss] Frame 2
_root.enemymoney = _root.enemymoney + 1500;
Symbol 507 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 509 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 34 MovieClip "selector" in Symbol 509 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 47 MovieClip "lifebar" in Symbol 509 MovieClip [warfactory] Frame 1
onClipEvent (enterFrame) { this._xscale = 290 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 509 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 509 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 511 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 34 MovieClip "selector" in Symbol 511 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 47 MovieClip "lifebar" in Symbol 511 MovieClip [refinery] Frame 1
onClipEvent (enterFrame) { this._xscale = 400 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 511 MovieClip [refinery] Frame 2
_root.enemymoney = _root.enemymoney + 5000; if (_root.soundon) { soundobj = new Sound(); soundobj.attachSound("crash"); soundobj.start(); }
Symbol 511 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 513 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 34 MovieClip "selector" in Symbol 513 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 47 MovieClip "lifebar" in Symbol 513 MovieClip [comcentre] Frame 1
onClipEvent (enterFrame) { this._xscale = 370 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 513 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 513 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 518 MovieClip [enemyconstruction2] Frame 1
stop();
Instance of Symbol 34 MovieClip "selector" in Symbol 518 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 47 MovieClip "lifebar" in Symbol 518 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 518 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 518 MovieClip [enemyconstruction2] Frame 3
Symbol 518 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 524 MovieClip Frame 1
n = 0; hit = false; stop();
Symbol 524 MovieClip Frame 2
stop();
Symbol 534 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 575 MovieClip Frame 1
stop();
Symbol 575 MovieClip Frame 2
stop();
Instance of Symbol 524 MovieClip "boxns" in Symbol 575 MovieClip Frame 2
onClipEvent (load) { if (_root[_parent.unit].enemy) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 527 MovieClip in Symbol 575 MovieClip Frame 2
onClipEvent (load) { if (!_root[_parent.unit].accurate) { this._visible = false; } }
Instance of Symbol 529 MovieClip in Symbol 575 MovieClip Frame 2
onClipEvent (load) { if (!_root[_parent.unit].nuke) { this._visible = false; } }
Instance of Symbol 531 MovieClip in Symbol 575 MovieClip Frame 2
onClipEvent (load) { if (!_root[_parent.unit].emp) { this._visible = false; } }
Symbol 575 MovieClip Frame 3
stop();
Instance of Symbol 537 MovieClip in Symbol 575 MovieClip Frame 3
onClipEvent (load) { if (!_root[_parent.unit].shell2) { this._visible = false; } }
Instance of Symbol 539 MovieClip in Symbol 575 MovieClip Frame 3
onClipEvent (load) { if (!_root[_parent.unit].hitonly) { this._visible = false; } }
Instance of Symbol 541 MovieClip in Symbol 575 MovieClip Frame 3
onClipEvent (load) { if (!_root[_parent.unit].auto) { this._visible = false; } }
Symbol 575 MovieClip Frame 4
stop();
Instance of Symbol 544 MovieClip in Symbol 575 MovieClip Frame 4
onClipEvent (load) { if (!_root[_parent.unit].seeker) { this._visible = false; } }
Instance of Symbol 546 MovieClip in Symbol 575 MovieClip Frame 4
onClipEvent (load) { if (_root[_parent.unit].miss != 3) { this._visible = false; } }
Instance of Symbol 548 MovieClip in Symbol 575 MovieClip Frame 4
onClipEvent (load) { if (_root[_parent.unit].miss != 2) { this._visible = false; } }
Instance of Symbol 550 MovieClip in Symbol 575 MovieClip Frame 4
onClipEvent (load) { if (!_root[_parent.unit].blast) { this._visible = false; } }
Symbol 575 MovieClip Frame 5
stop();
Instance of Symbol 554 MovieClip in Symbol 575 MovieClip Frame 5
onClipEvent (load) { if (!_root[_parent.unit].gatling) { this._visible = false; } }
Instance of Symbol 556 MovieClip in Symbol 575 MovieClip Frame 5
onClipEvent (load) { if (!_root[_parent.unit].laser) { this._visible = false; } }
Symbol 575 MovieClip Frame 6
stop();
Instance of Symbol 560 MovieClip in Symbol 575 MovieClip Frame 6
onClipEvent (load) { if (!_root[_parent.unit].crush) { this._visible = false; } }
Instance of Symbol 548 MovieClip in Symbol 575 MovieClip Frame 6
onClipEvent (load) { if (!_root[_parent.unit].missile) { this._visible = false; } }
Instance of Symbol 539 MovieClip in Symbol 575 MovieClip Frame 6
onClipEvent (load) { if (!_root[_parent.unit].hitonly) { this._visible = false; } }
Instance of Symbol 541 MovieClip in Symbol 575 MovieClip Frame 6
onClipEvent (load) { if (!_root[_parent.unit].auto) { this._visible = false; } }
Symbol 575 MovieClip Frame 7
stop();
Symbol 575 MovieClip Frame 8
stop();
Symbol 575 MovieClip Frame 9
stop();
Symbol 575 MovieClip Frame 10
stop();
Symbol 575 MovieClip Frame 11
stop();
Symbol 575 MovieClip Frame 12
stop();
Symbol 575 MovieClip Frame 13
stop();
Symbol 575 MovieClip Frame 14
stop();
Symbol 575 MovieClip Frame 15
stop();
Symbol 575 MovieClip Frame 16
stop();
Symbol 575 MovieClip Frame 17
stop();
Symbol 575 MovieClip Frame 18
stop();
Symbol 575 MovieClip Frame 19
stop();
Symbol 575 MovieClip Frame 20
stop();
Symbol 598 MovieClip Frame 1
stop();
Symbol 598 MovieClip Frame 2
stop();
Instance of Symbol 524 MovieClip "boxns" in Symbol 598 MovieClip Frame 2
onClipEvent (load) { if (_root[_parent._parent.unit].enemy) { gotoAndStop (2); } else { gotoAndStop (1); } }
Symbol 598 MovieClip Frame 3
stop();
Symbol 598 MovieClip Frame 4
stop();
Symbol 598 MovieClip Frame 5
stop();
Symbol 598 MovieClip Frame 6
stop();
Symbol 598 MovieClip Frame 7
stop();
Symbol 598 MovieClip Frame 8
stop();
Symbol 598 MovieClip Frame 9
stop();
Symbol 598 MovieClip Frame 10
stop();
Symbol 598 MovieClip Frame 11
stop();
Symbol 598 MovieClip Frame 12
stop();
Symbol 598 MovieClip Frame 13
stop();
Symbol 598 MovieClip Frame 14
stop();
Symbol 598 MovieClip Frame 15
stop();
Symbol 598 MovieClip Frame 16
stop();
Symbol 598 MovieClip Frame 17
stop();
Symbol 598 MovieClip Frame 18
stop();
Symbol 598 MovieClip Frame 19
stop();
Symbol 598 MovieClip Frame 20
stop();
Symbol 598 MovieClip Frame 21
stop();
Symbol 598 MovieClip Frame 22
stop();
Symbol 598 MovieClip Frame 23
stop();
Symbol 599 MovieClip Frame 1
stop();
Symbol 599 MovieClip Frame 2
stop();
Instance of Symbol 598 MovieClip "picture" in Symbol 599 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 527 MovieClip in Symbol 599 MovieClip Frame 2
onClipEvent (enterFrame) { if (!_root[_parent.unit].accurate) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 529 MovieClip in Symbol 599 MovieClip Frame 2
onClipEvent (enterFrame) { if (!_root[_parent.unit].nuke) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 531 MovieClip in Symbol 599 MovieClip Frame 2
onClipEvent (load) { if (!_root[_parent.unit].emp) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 537 MovieClip in Symbol 599 MovieClip Frame 2
onClipEvent (enterFrame) { if (!_root[_parent.unit].shell2) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 539 MovieClip in Symbol 599 MovieClip Frame 2
onClipEvent (enterFrame) { if (!_root[_parent.unit].hitonly) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 541 MovieClip in Symbol 599 MovieClip Frame 2
onClipEvent (enterFrame) { if (!_root[_parent.unit].auto) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 554 MovieClip in Symbol 599 MovieClip Frame 2
onClipEvent (enterFrame) { if (!_root[_parent.unit].gatling) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 556 MovieClip in Symbol 599 MovieClip Frame 2
onClipEvent (enterFrame) { if (!_root[_parent.unit].laser) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 560 MovieClip in Symbol 599 MovieClip Frame 2
onClipEvent (enterFrame) { if (!_root[_parent.unit].crush) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 546 MovieClip in Symbol 599 MovieClip Frame 2
onClipEvent (enterFrame) { if (_root[_parent.unit].miss != 3) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 544 MovieClip in Symbol 599 MovieClip Frame 2
onClipEvent (enterFrame) { if (!_root[_parent.unit].seeker) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 548 MovieClip in Symbol 599 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 550 MovieClip in Symbol 599 MovieClip Frame 2
onClipEvent (enterFrame) { if (!_root[_parent.unit].blast) { this._visible = false; } else { this._visible = true; } }
Symbol 604 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 605 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 608 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 618 MovieClip Frame 1
stop();
Symbol 618 MovieClip Frame 2
stop();
Instance of Symbol 527 MovieClip in Symbol 618 MovieClip Frame 2
onClipEvent (load) { if (!_root[_parent.unit].accurate) { this._visible = false; } }
Instance of Symbol 529 MovieClip in Symbol 618 MovieClip Frame 2
onClipEvent (load) { if (!_root[_parent.unit].nuke) { this._visible = false; } }
Instance of Symbol 531 MovieClip in Symbol 618 MovieClip Frame 2
onClipEvent (load) { if (!_root[_parent.unit].emp) { this._visible = false; } }
Symbol 618 MovieClip Frame 3
stop();
Instance of Symbol 537 MovieClip in Symbol 618 MovieClip Frame 3
onClipEvent (load) { if (!_root[_parent.unit].shell2) { this._visible = false; } }
Instance of Symbol 539 MovieClip in Symbol 618 MovieClip Frame 3
onClipEvent (load) { if (!_root[_parent.unit].hitonly) { this._visible = false; } }
Instance of Symbol 541 MovieClip in Symbol 618 MovieClip Frame 3
onClipEvent (load) { if (!_root[_parent.unit].auto) { this._visible = false; } }
Symbol 618 MovieClip Frame 4
stop();
Instance of Symbol 544 MovieClip in Symbol 618 MovieClip Frame 4
onClipEvent (load) { if (!_root[_parent.unit].seeker) { this._visible = false; } }
Instance of Symbol 546 MovieClip in Symbol 618 MovieClip Frame 4
onClipEvent (load) { if (_root[_parent.unit].miss != 3) { this._visible = false; } }
Instance of Symbol 548 MovieClip in Symbol 618 MovieClip Frame 4
onClipEvent (load) { if (_root[_parent.unit].miss != 2) { this._visible = false; } }
Instance of Symbol 550 MovieClip in Symbol 618 MovieClip Frame 4
onClipEvent (load) { if (!_root[_parent.unit].blast) { this._visible = false; } }
Symbol 618 MovieClip Frame 5
stop();
Instance of Symbol 554 MovieClip in Symbol 618 MovieClip Frame 5
onClipEvent (load) { if (!_root[_parent.unit].gatling) { this._visible = false; } }
Instance of Symbol 556 MovieClip in Symbol 618 MovieClip Frame 5
onClipEvent (load) { if (!_root[_parent.unit].laser) { this._visible = false; } }
Symbol 618 MovieClip Frame 6
stop();
Instance of Symbol 560 MovieClip in Symbol 618 MovieClip Frame 6
onClipEvent (load) { if (!_root[_parent.unit].crush) { this._visible = false; } }
Instance of Symbol 548 MovieClip in Symbol 618 MovieClip Frame 6
onClipEvent (load) { if (!_root[_parent.unit].missile) { this._visible = false; } }
Instance of Symbol 539 MovieClip in Symbol 618 MovieClip Frame 6
onClipEvent (load) { if (!_root[_parent.unit].hitonly) { this._visible = false; } }
Instance of Symbol 541 MovieClip in Symbol 618 MovieClip Frame 6
onClipEvent (load) { if (!_root[_parent.unit].auto) { this._visible = false; } }
Symbol 618 MovieClip Frame 7
stop();
Symbol 618 MovieClip Frame 8
stop();
Symbol 618 MovieClip Frame 9
stop();
Symbol 624 Button
on (press) { if (garn >= 20) { garn = garn - 20; calccost(); } } on (keyPress "a") { if (garn >= 20) { garn = garn - 20; calccost(); } }
Symbol 625 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 635 Button
on (release) { _root.gotoAndStop(_root.mapbar.mapn); }
Symbol 641 Button
on (release) { _root.gotoAndStop(_root.mapbar.mapn + "d"); }
Symbol 646 Button
on (release) { _root.gotoAndStop("end"); }
Symbol 650 Button
on (release) { share = SharedObject.getLocal("save"); p = 9; while (p > 1) { share.data["ownmap" + p] = _root["ownmap" + p]; share.data.missions = _root.missions; share.data[("map" + p) + "array"] = _root[("map" + p) + "array"].concat(); i = _root[("map" + p) + "array"].length - 1; while (i > -1) { current = _root[("map" + p) + "array"][i]; trace(current + "blackcurrane"); trace(_root[current].fulllife + current); if (_root[current + "obj"] == undefined) { current2 = current; current = current + ("map" + p); trace(current + "current"); trace(current2 + "current2"); } share.data[current + "obj"] = _root[current + "obj"]; trace(share.data[current + "obj"].fulllife + current); share.data.enemypower = _root.enemypower; share.data.money = _root.money; trace(share.data.money); share.data.difficulty = _root.difficulty; share.flush(); i--; } p--; } }
Instance of Symbol 251 MovieClip in Symbol 651 MovieClip Frame 1
/* no clip actions */
Symbol 652 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 599 MovieClip "shower" in Symbol 652 MovieClip [mapbar] Frame 1
onClipEvent (load) { _parent.build.buildlist = []; }
Instance of Symbol 620 MovieClip "build" in Symbol 652 MovieClip [mapbar] Frame 1
/* no clip actions */
Instance of Symbol 651 MovieClip "escape" in Symbol 652 MovieClip [mapbar] 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; } } }
Symbol 654 MovieClip [dot] Frame 1
if (_root.comcentre1.life == undefined) { this._visible = false; } stop();
Symbol 654 MovieClip [dot] Frame 6
gotoAndStop (1);
Symbol 655 MovieClip [light] Frame 1
stop();
Instance of Symbol 101 MovieClip "dummy" in Symbol 655 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 34 MovieClip "selector" in Symbol 655 MovieClip [light] Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 47 MovieClip "lifebar" in Symbol 655 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 655 MovieClip [light] Frame 2
stop();
Symbol 656 MovieClip [heavy] Frame 1
stop();
Instance of Symbol 111 MovieClip "dummy" in Symbol 656 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 34 MovieClip "selector" in Symbol 656 MovieClip [heavy] Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 47 MovieClip "lifebar" in Symbol 656 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 656 MovieClip [heavy] Frame 2
stop();
Symbol 657 MovieClip [artillery] Frame 1
stop();
Instance of Symbol 32 MovieClip "dummy" in Symbol 657 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 34 MovieClip "selector" in Symbol 657 MovieClip [artillery] Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 47 MovieClip "lifebar" in Symbol 657 MovieClip [artillery] Frame 1
onClipEvent (enterFrame) { this._xscale = 110 * (_parent.life / _parent.fulllife); if (_parent.dummy._currentframe <= 11) { if (_parent.life <= 0) { _parent.dummy.gotoAndPlay("explode"); } } }
Symbol 657 MovieClip [artillery] Frame 2
stop();
Symbol 660 MovieClip Frame 1
stop();
Symbol 660 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 660 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 661 MovieClip [dozer] Frame 1
stop();
Instance of Symbol 660 MovieClip "dummy" in Symbol 661 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 34 MovieClip "selector" in Symbol 661 MovieClip [dozer] Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 47 MovieClip "lifebar" in Symbol 661 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 661 MovieClip [dozer] Frame 2
stop();
Symbol 662 MovieClip [rocket] Frame 1
stop();
Instance of Symbol 117 MovieClip "dummy" in Symbol 662 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 34 MovieClip "selector" in Symbol 662 MovieClip [rocket] Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 47 MovieClip "lifebar" in Symbol 662 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 662 MovieClip [rocket] Frame 2
stop();
Symbol 663 MovieClip [humvee] Frame 1
stop();
Instance of Symbol 131 MovieClip [humveeebase] "dummy" in Symbol 663 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 = 3; _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 34 MovieClip "selector" in Symbol 663 MovieClip [humvee] Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 47 MovieClip "lifebar" in Symbol 663 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 663 MovieClip [humvee] Frame 2
stop();
Symbol 664 MovieClip [enemyheavy] Frame 1
stop();
Instance of Symbol 111 MovieClip "dummy" in Symbol 664 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 34 MovieClip "selector" in Symbol 664 MovieClip [enemyheavy] Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 47 MovieClip "lifebar" in Symbol 664 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 664 MovieClip [enemyheavy] Frame 2
stop();
Symbol 665 MovieClip [enemyrocket] Frame 1
stop();
Instance of Symbol 117 MovieClip "dummy" in Symbol 665 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 34 MovieClip "selector" in Symbol 665 MovieClip [enemyrocket] Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 47 MovieClip "lifebar" in Symbol 665 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 665 MovieClip [enemyrocket] Frame 2
stop();
Symbol 666 MovieClip [enemyhumvee] Frame 1
stop();
Instance of Symbol 34 MovieClip "selector" in Symbol 666 MovieClip [enemyhumvee] Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 131 MovieClip [humveeebase] "dummy" in Symbol 666 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 = 3 + Math.round(aaa * 5); _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 47 MovieClip "lifebar" in Symbol 666 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 666 MovieClip [enemyhumvee] Frame 2
stop();
Symbol 667 MovieClip [enemylight] Frame 1
stop();
Instance of Symbol 101 MovieClip "dummy" in Symbol 667 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 34 MovieClip "selector" in Symbol 667 MovieClip [enemylight] Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 47 MovieClip "lifebar" in Symbol 667 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 667 MovieClip [enemylight] Frame 2
stop();
Symbol 668 MovieClip [enemyartillery] Frame 1
stop();
Instance of Symbol 32 MovieClip "dummy" in Symbol 668 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 34 MovieClip "selector" in Symbol 668 MovieClip [enemyartillery] Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 47 MovieClip "lifebar" in Symbol 668 MovieClip [enemyartillery] Frame 1
onClipEvent (enterFrame) { this._xscale = 110 * (_parent.life / _parent.fulllife); if (_parent.dummy._currentframe <= 11) { if (_parent.life <= 0) { _parent.dummy.gotoAndPlay("explode"); } } }
Symbol 668 MovieClip [enemyartillery] Frame 2
stop();
Symbol 669 MovieClip [enemydozer] Frame 1
dozers.push(this._name); stop();
Instance of Symbol 660 MovieClip "dummy" in Symbol 669 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 34 MovieClip "selector" in Symbol 669 MovieClip [enemydozer] Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 47 MovieClip "lifebar" in Symbol 669 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 669 MovieClip [enemydozer] Frame 2
stop();
Symbol 671 MovieClip [box5] Frame 1
if (_root.comcentre1.life == undefined) { this._visible = false; }
Symbol 683 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 693 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 694 MovieClip Frame 1
this._visible = false; stop();
Symbol 694 MovieClip Frame 2
this._visible = true; percent = 0; stop();
Instance of Symbol 676 MovieClip in Symbol 694 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 694 MovieClip Frame 10
stop();
Symbol 714 MovieClip Frame 1
this._visible = false; stop();
Symbol 714 MovieClip Frame 2
this._visible = true; stop();
Instance of Symbol 676 MovieClip in Symbol 714 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 714 MovieClip Frame 9
Symbol 714 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 717 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 736 MovieClip Frame 1
stop();
Symbol 736 MovieClip Frame 2
stop();
Instance of Symbol 524 MovieClip "boxns" in Symbol 736 MovieClip Frame 2
onClipEvent (load) { if (_root[_parent.unit].enemy) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 527 MovieClip in Symbol 736 MovieClip Frame 2
onClipEvent (load) { if (!_root[_parent.unit].accurate) { this._visible = false; } }
Instance of Symbol 529 MovieClip in Symbol 736 MovieClip Frame 2
onClipEvent (load) { if (!_root[_parent.unit].nuke) { this._visible = false; } }
Instance of Symbol 531 MovieClip in Symbol 736 MovieClip Frame 2
onClipEvent (load) { if (!_root[_parent.unit].emp) { this._visible = false; } }
Symbol 736 MovieClip Frame 3
stop();
Instance of Symbol 537 MovieClip in Symbol 736 MovieClip Frame 3
onClipEvent (load) { if (!_root[_parent.unit].shell2) { this._visible = false; } }
Instance of Symbol 539 MovieClip in Symbol 736 MovieClip Frame 3
onClipEvent (load) { if (!_root[_parent.unit].hitonly) { this._visible = false; } }
Instance of Symbol 541 MovieClip in Symbol 736 MovieClip Frame 3
onClipEvent (load) { if (!_root[_parent.unit].auto) { this._visible = false; } }
Symbol 736 MovieClip Frame 4
stop();
Instance of Symbol 544 MovieClip in Symbol 736 MovieClip Frame 4
onClipEvent (load) { if (!_root[_parent.unit].seeker) { this._visible = false; } }
Instance of Symbol 546 MovieClip in Symbol 736 MovieClip Frame 4
onClipEvent (load) { if (_root[_parent.unit].miss != 3) { this._visible = false; } }
Instance of Symbol 548 MovieClip in Symbol 736 MovieClip Frame 4
onClipEvent (load) { if (_root[_parent.unit].miss != 2) { this._visible = false; } }
Instance of Symbol 550 MovieClip in Symbol 736 MovieClip Frame 4
onClipEvent (load) { if (!_root[_parent.unit].blast) { this._visible = false; } }
Symbol 736 MovieClip Frame 5
stop();
Instance of Symbol 554 MovieClip in Symbol 736 MovieClip Frame 5
onClipEvent (load) { if (!_root[_parent.unit].gatling) { this._visible = false; } }
Instance of Symbol 556 MovieClip in Symbol 736 MovieClip Frame 5
onClipEvent (load) { if (!_root[_parent.unit].laser) { this._visible = false; } }
Symbol 736 MovieClip Frame 6
stop();
Instance of Symbol 560 MovieClip in Symbol 736 MovieClip Frame 6
onClipEvent (load) { if (!_root[_parent.unit].crush) { this._visible = false; } }
Instance of Symbol 548 MovieClip in Symbol 736 MovieClip Frame 6
onClipEvent (load) { if (!_root[_parent.unit].missile) { this._visible = false; } }
Instance of Symbol 539 MovieClip in Symbol 736 MovieClip Frame 6
onClipEvent (load) { if (!_root[_parent.unit].hitonly) { this._visible = false; } }
Instance of Symbol 541 MovieClip in Symbol 736 MovieClip Frame 6
onClipEvent (load) { if (!_root[_parent.unit].auto) { this._visible = false; } }
Symbol 736 MovieClip Frame 7
stop();
Symbol 736 MovieClip Frame 8
stop();
Symbol 736 MovieClip Frame 9
stop();
Symbol 736 MovieClip Frame 10
stop();
Symbol 736 MovieClip Frame 11
stop();
Symbol 736 MovieClip Frame 12
stop();
Symbol 736 MovieClip Frame 13
stop();
Symbol 736 MovieClip Frame 14
stop();
Symbol 736 MovieClip Frame 15
stop();
Symbol 736 MovieClip Frame 16
stop();
Symbol 736 MovieClip Frame 17
stop();
Symbol 736 MovieClip Frame 18
stop();
Symbol 736 MovieClip Frame 19
stop();
Symbol 736 MovieClip Frame 20
stop();
Symbol 736 MovieClip Frame 21
stop();
Symbol 736 MovieClip Frame 22
stop();
Symbol 736 MovieClip Frame 23
stop();
Symbol 738 MovieClip Frame 1
stop();
Symbol 738 MovieClip Frame 2
stop();
Instance of Symbol 598 MovieClip "picture" in Symbol 738 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 527 MovieClip in Symbol 738 MovieClip Frame 2
onClipEvent (enterFrame) { if (!_root[_parent.unit].accurate) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 529 MovieClip in Symbol 738 MovieClip Frame 2
onClipEvent (enterFrame) { if (!_root[_parent.unit].nuke) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 531 MovieClip in Symbol 738 MovieClip Frame 2
onClipEvent (load) { if (!_root[_parent.unit].emp) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 537 MovieClip in Symbol 738 MovieClip Frame 2
onClipEvent (enterFrame) { if (!_root[_parent.unit].shell2) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 539 MovieClip in Symbol 738 MovieClip Frame 2
onClipEvent (enterFrame) { if (!_root[_parent.unit].hitonly) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 541 MovieClip in Symbol 738 MovieClip Frame 2
onClipEvent (enterFrame) { if (!_root[_parent.unit].auto) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 554 MovieClip in Symbol 738 MovieClip Frame 2
onClipEvent (enterFrame) { if (!_root[_parent.unit].gatling) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 556 MovieClip in Symbol 738 MovieClip Frame 2
onClipEvent (enterFrame) { if (!_root[_parent.unit].laser) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 560 MovieClip in Symbol 738 MovieClip Frame 2
onClipEvent (enterFrame) { if (!_root[_parent.unit].crush) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 546 MovieClip in Symbol 738 MovieClip Frame 2
onClipEvent (enterFrame) { if (_root[_parent.unit].miss != 3) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 544 MovieClip in Symbol 738 MovieClip Frame 2
onClipEvent (enterFrame) { if (!_root[_parent.unit].seeker) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 548 MovieClip in Symbol 738 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 550 MovieClip in Symbol 738 MovieClip Frame 2
onClipEvent (enterFrame) { if (!_root[_parent.unit].blast) { this._visible = false; } else { this._visible = true; } }
Symbol 743 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 747 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 751 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 763 Button
on (press) { doo(); } on (rollOver) { _root.sidebar.texts = ((texts + newline) + "cost:$") + calculatecost; } on (rollOut) { _root.sidebar.texts = ""; }
Symbol 764 MovieClip Frame 1
stop();
Symbol 764 MovieClip Frame 2
stop();
Symbol 765 Button
on (press) { doo(); } on (rollOver) { _root.sidebar.texts = ((texts + newline) + "cost:$") + calculatecost; } on (rollOut) { _root.sidebar.texts = ""; }
Symbol 766 MovieClip Frame 1
stop();
Symbol 766 MovieClip Frame 2
stop();
Symbol 770 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 774 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 776 Button
on (press) { doo(); } on (rollOver) { _root.sidebar.texts = texts; } on (rollOut) { _root.sidebar.texts = ""; }
Symbol 777 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 785 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 786 MovieClip Frame 1
if (_root.warfactory < 1) { stop(); }
Instance of Symbol 773 MovieClip in Symbol 786 MovieClip Frame 1
onClipEvent (mouseDown) { if ((_root.money > _parent.cost) && (_root.warfactory1._x != undefined)) { _parent.gotoAndStop(2); } }
Symbol 786 MovieClip Frame 2
stop();
Symbol 786 MovieClip Frame 3
stop();
Instance of Symbol 676 MovieClip in Symbol 786 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 786 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 786 MovieClip Frame 12
stop();
Instance of Symbol 676 MovieClip "s" in Symbol 786 MovieClip Frame 12
onClipEvent (load) { this.queue = _parent.buildno; }
Symbol 788 Button
on (press) { if (_root.sidebar._visible) { _visible = false; } } on (keyPress "A") { if (_root.sidebar._visible) { _visible = false; } }
Symbol 789 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 790 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 791 MovieClip Frame 1
stop();
Instance of Symbol 773 MovieClip in Symbol 791 MovieClip Frame 1
onClipEvent (mouseDown) { if ((_root.money > _parent.cost) && (_root.comcentre1.life != undefined)) { _parent.gotoAndStop(2); } }
Symbol 791 MovieClip Frame 2
stop();
Symbol 791 MovieClip Frame 3
stop();
Instance of Symbol 676 MovieClip in Symbol 791 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 791 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 792 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 794 MovieClip Frame 1
stop();
Instance of Symbol 773 MovieClip in Symbol 794 MovieClip Frame 1
/* no clip actions */
Symbol 794 MovieClip Frame 2
stop();
Symbol 794 MovieClip Frame 3
stop();
Instance of Symbol 773 MovieClip in Symbol 794 MovieClip Frame 3
onClipEvent (mouseDown) { if (_root[structure] < 0) { gotoAndStop (1); } }
Symbol 795 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 796 MovieClip Frame 1
stop();
Instance of Symbol 773 MovieClip in Symbol 796 MovieClip Frame 1
/* no clip actions */
Symbol 796 MovieClip Frame 2
stop();
Symbol 797 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 798 Button
on (rollOver) { _root.sidebar.texts = ((texts + newline) + "cost:$") + calculatecost; } on (rollOut) { _root.sidebar.texts = ""; }
Symbol 800 MovieClip Frame 1
if (_root.warfactory < 1) { stop(); }
Instance of Symbol 773 MovieClip in Symbol 800 MovieClip Frame 1
onClipEvent (mouseDown) { if (((_root.money > _parent.cost) && (_root.warfactory1._x != undefined)) && (_root.techcentre1._x != undefined)) { _parent.gotoAndStop(2); } }
Symbol 800 MovieClip Frame 2
stop();
Symbol 800 MovieClip Frame 3
stop();
Instance of Symbol 676 MovieClip in Symbol 800 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 800 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 800 MovieClip Frame 12
stop();
Instance of Symbol 676 MovieClip "s" in Symbol 800 MovieClip Frame 12
onClipEvent (load) { this.queue = _parent.buildno; }
Symbol 800 MovieClip Frame 13
stop();
Symbol 801 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 802 MovieClip Frame 1
stop();
Instance of Symbol 773 MovieClip in Symbol 802 MovieClip Frame 1
/* no clip actions */
Symbol 802 MovieClip Frame 2
stop();
Symbol 802 MovieClip Frame 3
stop();
Instance of Symbol 773 MovieClip in Symbol 802 MovieClip Frame 3
onClipEvent (mouseDown) { if (_root[structure] < 0) { gotoAndStop (1); } }
Instance of Symbol 786 MovieClip "light" in Symbol 804 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 786 MovieClip "rocket" in Symbol 804 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 786 MovieClip "artillery" in Symbol 804 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 786 MovieClip "heavy" in Symbol 804 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 791 MovieClip "dozer" in Symbol 804 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 47 MovieClip "oilbar" in Symbol 804 MovieClip Frame 1
onClipEvent (enterFrame) { this._xscale = 100 * (_parent.oil / _parent.fulloil); }
Instance of Symbol 786 MovieClip "oiltruck" in Symbol 804 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 794 MovieClip "comcentre" in Symbol 804 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 794 MovieClip "refinery" in Symbol 804 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 794 MovieClip "warfactory" in Symbol 804 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 794 MovieClip "techcentre" in Symbol 804 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 796 MovieClip "turrets" in Symbol 804 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 796 MovieClip "patriotmissile" in Symbol 804 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 796 MovieClip "laser" in Symbol 804 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 794 MovieClip "servicedepot" in Symbol 804 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 796 MovieClip "mine" in Symbol 804 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 800 MovieClip "lasertank" in Symbol 804 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 802 MovieClip "weaponsilo" in Symbol 804 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); } } }
Instance of Symbol 786 MovieClip "humvee" in Symbol 804 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); } }
Symbol 808 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 812 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 816 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 820 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 824 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 830 MovieClip Frame 1
this._visible = false;
Symbol 831 MovieClip Frame 1
this.cacheAsBitmap = true; this.opaqueBackground = 0;
Symbol 846 MovieClip Frame 1
this.cacheAsBitmap = true; this.opaqueBackground = 0; stop();
Symbol 846 MovieClip Frame 2
stop();
Instance of Symbol 361 MovieClip "back" in Symbol 846 MovieClip Frame 8
/* no clip actions */
Instance of Symbol 365 MovieClip "back" in Symbol 846 MovieClip Frame 10
/* no clip actions */
Instance of Symbol 845 MovieClip "back" in Symbol 846 MovieClip Frame 11
/* no clip actions */
Symbol 850 MovieClip Frame 1
stop();
Symbol 850 MovieClip Frame 2
stop();
Symbol 853 Button
on (release) { i = _root.friendlylist.length - 1; while (i > -1) { current = _root.friendlylist[i]; _root[current].life = 0; i--; } }
Instance of Symbol 251 MovieClip in Symbol 854 MovieClip Frame 1
/* no clip actions */
Symbol 855 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 738 MovieClip "shower" in Symbol 855 MovieClip [sidebar] Frame 1
onClipEvent (load) { _parent.build.buildlist = []; }
Instance of Symbol 764 MovieClip "s1" in Symbol 855 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 766 MovieClip "s2" in Symbol 855 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 766 MovieClip "s3" in Symbol 855 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 766 MovieClip "s4" in Symbol 855 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 766 MovieClip "s5" in Symbol 855 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 766 MovieClip "s6" in Symbol 855 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 766 MovieClip "s7" in Symbol 855 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 766 MovieClip "s8" in Symbol 855 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 766 MovieClip "s14" in Symbol 855 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 766 MovieClip "s9" in Symbol 855 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 766 MovieClip "s15" in Symbol 855 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 766 MovieClip "s10" in Symbol 855 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 766 MovieClip "s16" in Symbol 855 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 766 MovieClip "s17" in Symbol 855 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 766 MovieClip "s11" in Symbol 855 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 766 MovieClip "s18" in Symbol 855 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 766 MovieClip "s12" in Symbol 855 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 766 MovieClip "s13" in Symbol 855 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 804 MovieClip "build" in Symbol 855 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 846 MovieClip "mapp" in Symbol 855 MovieClip [sidebar] Frame 1
/* no clip actions */
Instance of Symbol 854 MovieClip "escape" in Symbol 855 MovieClip [sidebar] Frame 1
onClipEvent (load) { this._visible = false; } onClipEvent (keyDown) { if (Key.isDown(13)) { this._visible = !this._visible; if (this._visible) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; _root[current].dummy.empulse = -1; _root[current].dummy.lastempluse = _root[current].dummy.empulse; i--; } _root.pig.stop(); _root.pig2.stop(); this._x = 650; _root.ai.lastimer = _root.ai.timer; _root.ai.timer = undefined; } if (!this._visible) { i = _root.unitsarray.length - 1; while (i > -1) { current = _root.unitsarray[i]; _root[current].dummy.empulse = _root[current].dummy.lastempluse; _root[current].dummy.lastempluse = undefined; i--; } _root.pig.play(); _root.pig2.play(); _root.ai.timer = _root.ai.lastimer; _root.ai.lastimer = undefined; this._x = 100; } _root.sidebar._visible = true; } }
Symbol 858 MovieClip [patriot] Frame 1
timer = 0; _root.shellarray.push(this._name); stop();
Instance of Symbol 243 MovieClip in Symbol 858 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 858 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 858 MovieClip [patriot] Frame 3
_root.shellarray.findandsplice(this._name); this.removeMovieClip(); stop();
Symbol 864 MovieClip [shell2] Frame 1
_root.objarray.push(this._name); stop();
Instance of Symbol 860 MovieClip in Symbol 864 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 864 MovieClip [shell2] Frame 4
_root[targetobj].life = _root[targetobj].life - damage; _root[targetobj + "symbols"].play();
Symbol 864 MovieClip [shell2] Frame 5
this.removeMovieClip(); stop();
Symbol 865 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 865 MovieClip [emp] Frame 3
this._alpha = this._alpha - 30;
Symbol 865 MovieClip [emp] Frame 5
this._alpha = this._alpha - 30;
Symbol 865 MovieClip [emp] Frame 7
_root.objarray.findandsplice(this._name); this.removeMovieClip();
Symbol 870 MovieClip [bomb2] Frame 1
Symbol 870 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 870 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 870 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 870 MovieClip [bomb2] Frame 5
stop(); this.removeMovieClip(); stop();
Symbol 870 MovieClip [bomb2] Frame 6
stop(); this.removeMovieClip(); stop();
Symbol 874 MovieClip [bomb] Frame 1
Symbol 874 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 874 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 874 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 874 MovieClip [bomb] Frame 5
stop(); this.removeMovieClip(); stop();
Symbol 878 MovieClip [bullet] Frame 1
_root.objarray.push(this._name); stop();
Instance of Symbol 860 MovieClip in Symbol 878 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 878 MovieClip [bullet] Frame 4
_root[targetobj].life = _root[targetobj].life - damage; _root[targetobj + "symbols"].play();
Symbol 878 MovieClip [bullet] Frame 5
this.removeMovieClip(); stop();
Symbol 882 MovieClip [missile] Frame 1
timer = 0; _root.shellarray.push(this._name); stop();
Instance of Symbol 243 MovieClip in Symbol 882 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 882 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 882 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 882 MovieClip [missile] Frame 4
_root.shellarray.findandsplice(this._name); this.removeMovieClip(); stop();
Symbol 886 MovieClip [flag2] Frame 1
stop();
Instance of Symbol 885 MovieClip in Symbol 886 MovieClip [flag2] Frame 1
/* no clip actions */
Symbol 890 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 892 MovieClip [shell] Frame 1
timer = 0; _root.shellarray.push(this._name); stop();
Instance of Symbol 890 MovieClip in Symbol 892 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 892 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 892 MovieClip [shell] Frame 3
_root.shellarray.findandsplice(this._name); this.removeMovieClip(); stop();
Symbol 895 MovieClip [flag] Frame 1
this._visible = false; dd = _root.flagsarray.concat(_root.unitsarray); stop();
Instance of Symbol 885 MovieClip in Symbol 895 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 895 MovieClip [flag] Frame 2
if (this.vsisible == undefined) { this._visible = true; }
Symbol 898 MovieClip [flag copy] Frame 1
_root.objarray.push(this._name); this._visible = false; stop();
Instance of Symbol 885 MovieClip in Symbol 898 MovieClip [flag copy] Frame 1
/* no clip actions */
Symbol 906 MovieClip [BrdrShdw] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "shadowColor");
Symbol 908 MovieClip [BrdrFace] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "buttonColor");
Symbol 911 MovieClip [BrdrBlk] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "borderColor");
Symbol 913 MovieClip [BrdrHilght] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "highlightColor");
Symbol 916 MovieClip [Defaults] Frame 1
#initclip 25 Object.registerClass("Defaults", mx.skins.halo.Defaults); #endinitclip
Symbol 917 MovieClip [UIObjectExtensions] Frame 1
#initclip 26 Object.registerClass("UIObjectExtensions", mx.core.ext.UIObjectExtensions); #endinitclip
Symbol 918 MovieClip [UIObject] Frame 1
#initclip 27 Object.registerClass("UIObject", mx.core.UIObject); #endinitclip stop();
Symbol 921 Button
on (keyPress "<Tab>") { this.tabHandler(); }
Symbol 922 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 923 MovieClip [FocusRect] Frame 1
#initclip 29 Object.registerClass("FocusRect", mx.skins.halo.FocusRect); #endinitclip
Symbol 924 MovieClip [FocusManager] Frame 1
#initclip 30 Object.registerClass("FocusManager", mx.managers.FocusManager); #endinitclip stop();
Symbol 925 MovieClip [UIComponentExtensions] Frame 1
#initclip 31 Object.registerClass("UIComponentExtensions", mx.core.ext.UIComponentExtensions); #endinitclip
Symbol 926 MovieClip [UIComponent] Frame 1
#initclip 32 Object.registerClass("UIComponent", mx.core.UIComponent); #endinitclip stop();
Symbol 927 MovieClip [SimpleButton] Frame 1
#initclip 33 Object.registerClass("SimpleButton", mx.controls.SimpleButton); #endinitclip stop();
Symbol 928 MovieClip [Border] Frame 1
#initclip 34 Object.registerClass("Border", mx.skins.Border); #endinitclip stop();
Symbol 929 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 930 MovieClip [ButtonSkin] Frame 1
#initclip 36 Object.registerClass("ButtonSkin", mx.skins.halo.ButtonSkin); #endinitclip
Symbol 931 MovieClip [Button] Frame 1
#initclip 37 Object.registerClass("Button", mx.controls.Button); #endinitclip stop();
Instance of Symbol 927 MovieClip [SimpleButton] in Symbol 931 MovieClip [Button] Frame 2
//component parameters onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Symbol 996 Button
on (release) { getURL ("http://www.newgrounds.com", "_blank"); }
Symbol 998 MovieClip Frame 40
stop();
Symbol 1024 Button
on (release) { _root.play(); }
Symbol 1025 Button
on (release) { _root.gotoAndPlay(2); }
Symbol 1026 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 1026 MovieClip Frame 51
Symbol 899 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 900 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 901 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 902 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 932 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 933 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 934 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 935 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 936 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 937 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 938 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 939 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 940 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 941 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 942 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 943 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 944 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 945 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 946 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 947 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 948 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 949 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 950 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 951 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 1031 MovieClip Frame 1
play(); if (ranges == undefined) { ranges = 1.5; } if (_root.pig._x == undefined) { this._name = "pig"; } 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 1031 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 1031 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 1031 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 1034 MovieClip Frame 1
play(); if (_root.pig2._x == undefined) { this._name = "pig2"; } 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 1034 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 1034 MovieClip Frame 5
gotoAndPlay (1);
Symbol 1040 MovieClip Frame 1
this._x = 0; this._y = 0; this.cacheAsBitmap = true; this.opaqueBackground = 0;
Symbol 1046 MovieClip Frame 1
this._visible = false;
Symbol 1051 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 1058 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 1059 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 1062 MovieClip Frame 1
_root.objarray.push(this._name); stop();
Symbol 1064 MovieClip Frame 1
n = 0; hit = false; stop();
Symbol 1066 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 1068 MovieClip Frame 1
if (_root.ownmap5 === true) { this._visible = false; } this.swapDepths(90000 + _root.n); _root.n++; _root.shroudarray.push(this._name); _root.objarray.push(this._name);
Symbol 1091 MovieClip Frame 1
this._visible = false;
Symbol 1092 MovieClip Frame 1
this.cacheAsBitmap = true; this.opaqueBackground = 0;
Symbol 1097 MovieClip Frame 1
this.cacheAsBitmap = true; this.opaqueBackground = 0;
Symbol 1102 MovieClip Frame 1
this._x = 0; this._y = 0; this.cacheAsBitmap = true; this.opaqueBackground = 0;
Symbol 1108 MovieClip Frame 1
this.cacheAsBitmap = true; this.opaqueBackground = 0;
Symbol 1110 MovieClip Frame 1
this.cacheAsBitmap = true; this.opaqueBackground = 0;
Symbol 1117 MovieClip Frame 1
this.cacheAsBitmap = true; stop();
Instance of Symbol 47 MovieClip "lifebar" in Symbol 1117 MovieClip Frame 1
onClipEvent (enterFrame) { if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } } onClipEvent (load) { this._visible = false; }
Symbol 1117 MovieClip Frame 2
_root.objarray.findandsplice(_name); _root.unitsarray.findandsplice(_name); stop();
Symbol 1130 MovieClip Frame 1
stop();
Symbol 1135 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 1138 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 1139 MovieClip Frame 1
stop();
Instance of Symbol 1137 MovieClip "selecteds" in Symbol 1139 MovieClip Frame 1
onClipEvent (load) { this._visible = false; }
Symbol 1139 MovieClip Frame 2
stop();
Symbol 1140 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 1141 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 1142 MovieClip Frame 1
stop();
Instance of Symbol 1137 MovieClip "selecteds" in Symbol 1142 MovieClip Frame 1
onClipEvent (load) { this._visible = false; }
Symbol 1142 MovieClip Frame 2
stop();
Symbol 1151 MovieClip Frame 1
stop();
Symbol 1151 MovieClip Frame 2
_root[territory]._alpha = 100;
Symbol 1151 MovieClip Frame 24
_root[territory]._alpha = 30;
Symbol 1151 MovieClip Frame 34
_root[territory]._alpha = 100;
Symbol 1151 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 1151 MovieClip Frame 65
if (this.territory != undefined) { gotoAndPlay (2); }
Symbol 1154 MovieClip Frame 1
this.visible = false;
Symbol 1155 MovieClip Frame 1
this.cacheAsBitmap = true; this.opaqueBackground = 0;
Symbol 1157 MovieClip Frame 1
this.cacheAsBitmap = true; stop();
Instance of Symbol 34 MovieClip "selector" in Symbol 1157 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 47 MovieClip "lifebar" in Symbol 1157 MovieClip Frame 1
onClipEvent (enterFrame) { this._xscale = 370 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 1157 MovieClip Frame 2
_root.enemymoney = _root.enemymoney + 5000; _root.sidebar.build.dozer.gotoAndStop(1);
Symbol 1157 MovieClip Frame 11
_root.objarray.findandsplice(_name); _root.unitsarray.findandsplice(_name); _root[_name + "symbols"].removeMovieClip(); this._name = "noo2b"; _root.alliedunits--; this.removeMovieClip(); stop();
Symbol 1159 MovieClip Frame 1
this.cacheAsBitmap = true; stop();
Instance of Symbol 47 MovieClip "lifebar" in Symbol 1159 MovieClip Frame 1
onClipEvent (enterFrame) { this._xscale = 290 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Instance of Symbol 34 MovieClip "selector" in Symbol 1159 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 1159 MovieClip Frame 2
_root.money = _root.money + 2000;
Symbol 1159 MovieClip Frame 11
_root.objarray.findandsplice(_name); _root.unitsarray.findandsplice(_name); _root.alliedunits--; _root[_name + "symbols"].removeMovieClip(); this.removeMovieClip(); stop();
Symbol 1161 MovieClip Frame 1
this.cacheAsBitmap = true; stop();
Instance of Symbol 34 MovieClip "selector" in Symbol 1161 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 47 MovieClip "lifebar" in Symbol 1161 MovieClip Frame 1
onClipEvent (enterFrame) { this._xscale = 380 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 1161 MovieClip Frame 2
_root.money = _root.money + 5000;
Symbol 1161 MovieClip Frame 11
_root.objarray.findandsplice(_name); _root.unitsarray.findandsplice(_name); _root.alliedunits--; _root[_name + "symbols"].removeMovieClip(); this.removeMovieClip(); stop();
Symbol 1163 MovieClip Frame 1
this.cacheAsBitmap = true; stop();
Instance of Symbol 34 MovieClip "selector" in Symbol 1163 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 47 MovieClip "lifebar" in Symbol 1163 MovieClip Frame 1
onClipEvent (enterFrame) { this._xscale = 240 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 1163 MovieClip Frame 2
_root.money = _root.money + 1500;
Symbol 1163 MovieClip Frame 11
_root.objarray.findandsplice(_name); _root.unitsarray.findandsplice(_name); _root.alliedunits--; _root[_name + "symbols"].removeMovieClip(); this.removeMovieClip(); stop();
Symbol 1167 MovieClip Frame 2
pp = 0; stop(); assignvars(); stop();
Instance of Symbol 60 MovieClip in Symbol 1167 MovieClip Frame 2
onClipEvent (enterFrame) { if (_root.oilderricks < 4) { _root.gotoAndStop("defeat7"); } }
Symbol 1172 MovieClip Frame 1
this.cacheAsBitmap = true; this.opaqueBackground = 0;
Symbol 1174 MovieClip Frame 1
_root.enemycomcentre = 1; repairs = false; name = this._name; this.cacheAsBitmap = true; stop();
Instance of Symbol 34 MovieClip "selector" in Symbol 1174 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 47 MovieClip "lifebar" in Symbol 1174 MovieClip Frame 1
onClipEvent (enterFrame) { this._xscale = 370 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 1174 MovieClip Frame 2
_root.money = _root.money + 5000;
Symbol 1174 MovieClip Frame 11
_root.objarray.findandsplice(_name); _root.unitsarray.findandsplice(_name); _root.sensornets--; _root[_name + "symbols"].removeMovieClip(); this.removeMovieClip(); stop();
Symbol 1179 MovieClip Frame 1
this.cacheAsBitmap = true; this.opaqueBackground = 0;
Symbol 1181 MovieClip Frame 1
this.cacheAsBitmap = true; stop();
Instance of Symbol 34 MovieClip "selector" in Symbol 1181 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 47 MovieClip "lifebar" in Symbol 1181 MovieClip Frame 1
onClipEvent (enterFrame) { this._xscale = 400 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 1181 MovieClip Frame 2
_root.money = _root.money + 5000;
Symbol 1181 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 1185 MovieClip Frame 1
names = this._name; repairs = false; this.cacheAsBitmap = true; _root.ai.build = true; stop();
Instance of Symbol 34 MovieClip "selector" in Symbol 1185 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 47 MovieClip "lifebar" in Symbol 1185 MovieClip Frame 1
onClipEvent (enterFrame) { this._xscale = 390 * (_parent.life / _parent.fulllife); if (_parent.life <= 0) { _parent.gotoAndPlay("explode"); } }
Symbol 1185 MovieClip Frame 2
Symbol 1185 MovieClip Frame 11
_root.objarray.findandsplice(_name); _root.unitsarray.findandsplice(_name); _root[_name + "symbols"].removeMovieClip(); this.removeMovieClip(); stop();
Symbol 1187 MovieClip Frame 1
this.cacheAsBitmap = true; this.opaqueBackground = 0;
Symbol 1236 MovieClip Frame 1
this.swapDepths(111000); 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 60 MovieClip in Symbol 1236 MovieClip Frame 1
onClipEvent (enterFrame) { n++; if (n > 100) { _parent.nextFrame(); } } onClipEvent (load) { n = 0; }
Symbol 1236 MovieClip Frame 2
n = 0; stop();
Instance of Symbol 60 MovieClip in Symbol 1236 MovieClip Frame 2
onClipEvent (enterFrame) { _parent.n++; if ((_parent.n > 100) || (Key.isDown(16))) { _parent.nextFrame(); } } onClipEvent (load) { _parent.n = 0; }
Symbol 1236 MovieClip Frame 3
stop();
Instance of Symbol 60 MovieClip in Symbol 1236 MovieClip Frame 3
onClipEvent (enterFrame) { if (_root.selectedarray.arrayfind("tank1") || (Key.isDown(16))) { _parent.nextFrame(); } }
Symbol 1236 MovieClip Frame 4
_root.flag1._visible = true; stop();
Instance of Symbol 60 MovieClip in Symbol 1236 MovieClip Frame 4
onClipEvent (enterFrame) { if (_root.tank1.hitTest(_root.flag1) || (Key.isDown(16))) { _parent.nextFrame(); } }
Symbol 1236 MovieClip Frame 5
_root.flag1._visible = false; _root.flag2._visible = true; stop();
Instance of Symbol 60 MovieClip in Symbol 1236 MovieClip Frame 5
onClipEvent (enterFrame) { if (_parent.hitTest(_root.flag2) || (Key.isDown(16))) { _parent.nextFrame(); } }
Symbol 1236 MovieClip Frame 6
stop();
Instance of Symbol 60 MovieClip in Symbol 1236 MovieClip Frame 6
onClipEvent (enterFrame) { if (_root.tank1.hitTest(_root.flag2) || (Key.isDown(16))) { _parent.nextFrame(); } }
Symbol 1236 MovieClip Frame 7
_root.enemytechcentre1._visible = true; stop();
Instance of Symbol 60 MovieClip in Symbol 1236 MovieClip Frame 7
onClipEvent (enterFrame) { if ((_root.enemytechcentre1.life <= 0) || (Key.isDown(16))) { _parent.nextFrame(); } }
Symbol 1236 MovieClip Frame 8
_root.tank2._visible = true; _root.tank3._visible = true; _root.humvee1._visible = true; stop();
Instance of Symbol 60 MovieClip in Symbol 1236 MovieClip Frame 8
onClipEvent (enterFrame) { if (((_root.selectedarray.arrayfind("tank2") && (_root.selectedarray.arrayfind("tank3"))) && (_root.selectedarray.arrayfind("humvee1"))) || (Key.isDown(16))) { _parent.nextFrame(); } }
Symbol 1236 MovieClip Frame 9
stop();
Instance of Symbol 60 MovieClip in Symbol 1236 MovieClip Frame 9
onClipEvent (enterFrame) { if ((_root.selectedarray.length == 0) || (Key.isDown(16))) { _parent.nextFrame(); } }
Symbol 1236 MovieClip Frame 10
_root.enemyheavytank1._visible = true; stop();
Instance of Symbol 60 MovieClip in Symbol 1236 MovieClip Frame 10
onClipEvent (enterFrame) { if (_root.selectedarray.arrayfind("enemyheavytank1") || (Key.isDown(16))) { _parent.nextFrame(); } }
Symbol 1236 MovieClip Frame 11
stop();
Instance of Symbol 60 MovieClip in Symbol 1236 MovieClip Frame 11
onClipEvent (enterFrame) { if (_root.selectedarray.arrayfind("tank1") || (Key.isDown(16))) { _parent.nextFrame(); } }
Symbol 1236 MovieClip Frame 12
n = 0; stop();
Instance of Symbol 60 MovieClip in Symbol 1236 MovieClip Frame 12
onClipEvent (enterFrame) { _parent.n++; if ((_parent.n > 200) || (Key.isDown(16))) { _parent.nextFrame(); } } onClipEvent (load) { _parent.n = 0; }
Symbol 1236 MovieClip Frame 13
n = 0; stop();
Instance of Symbol 60 MovieClip in Symbol 1236 MovieClip Frame 13
onClipEvent (enterFrame) { _parent.n++; if ((_parent.n > 200) || (Key.isDown(16))) { _parent.nextFrame(); } } onClipEvent (load) { _parent.n = 0; }
Symbol 1236 MovieClip Frame 14
stop();
Instance of Symbol 60 MovieClip in Symbol 1236 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 1236 MovieClip Frame 15
stop();
Instance of Symbol 60 MovieClip in Symbol 1236 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 1236 MovieClip Frame 16
i = 6; while (i > 0) { _root["a" + i]._visible = true; i--; } _root.missilelaunch1._visible = true; stop();
Instance of Symbol 60 MovieClip in Symbol 1236 MovieClip Frame 16
onClipEvent (enterFrame) { }
Symbol 1236 MovieClip Frame 17
Instance of Symbol 60 MovieClip in Symbol 1236 MovieClip Frame 17
onClipEvent (enterFrame) { if (_root.enemyarray.length <= 0) { _parent._visible = false; _root.gotoAndStop("victoryd"); } }
Symbol 1237 MovieClip Frame 1
_root.obsarray.push(this._name); this.pos = "hoz";
Symbol 1269 MovieClip Frame 1
this.swapDepths(110000); stop();
Instance of Symbol 60 MovieClip in Symbol 1269 MovieClip Frame 1
onClipEvent (enterFrame) { pp++; if (pp > 100) { _parent.nextFrame(); } } onClipEvent (load) { pp = 0; }
Symbol 1269 MovieClip Frame 2
_root.flag12._visible = true;
Instance of Symbol 60 MovieClip in Symbol 1269 MovieClip Frame 2
onClipEvent (enterFrame) { if (_root.dozer1.hitTest(_root.flag12)) { _parent.nextFrame(); } }
Instance of Symbol 60 MovieClip in Symbol 1269 MovieClip Frame 3
onClipEvent (enterFrame) { if (_root.comcentre1.life != undefined) { _parent.nextFrame(); } }
Instance of Symbol 60 MovieClip in Symbol 1269 MovieClip Frame 4
onClipEvent (enterFrame) { n++; if (n > 300) { _parent.nextFrame(); } } onClipEvent (load) { n = 0; }
Instance of Symbol 60 MovieClip in Symbol 1269 MovieClip Frame 5
onClipEvent (enterFrame) { if (_root.refinery1._x != undefined) { _parent.nextFrame(); } }
Instance of Symbol 60 MovieClip in Symbol 1269 MovieClip Frame 6
onClipEvent (enterFrame) { n++; if (n > 200) { _parent.nextFrame(); } } onClipEvent (load) { n = 0; }
Instance of Symbol 60 MovieClip in Symbol 1269 MovieClip Frame 7
onClipEvent (enterFrame) { if (_root.warfactory1.life != undefined) { _parent.nextFrame(); } }
Instance of Symbol 60 MovieClip in Symbol 1269 MovieClip Frame 8
onClipEvent (enterFrame) { if (_root.friendlylist.length > 10) { _parent.nextFrame(); } }
Instance of Symbol 60 MovieClip in Symbol 1269 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 1269 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 60 MovieClip in Symbol 1269 MovieClip Frame 10
onClipEvent (enterFrame) { pp++; if (pp > 500) { _parent.nextFrame(); } } onClipEvent (load) { pp = 0; }
Symbol 1269 MovieClip Frame 11
stop();
Instance of Symbol 60 MovieClip in Symbol 1269 MovieClip Frame 11
onClipEvent (enterFrame) { if (_root.techcentre1.life != undefined) { _parent.nextFrame(); } }
Instance of Symbol 60 MovieClip in Symbol 1269 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 60 MovieClip in Symbol 1269 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 60 MovieClip in Symbol 1269 MovieClip Frame 14
onClipEvent (enterFrame) { pp++; if (pp > 200) { _parent.nextFrame(); } } onClipEvent (load) { pp = 0; }
Instance of Symbol 60 MovieClip in Symbol 1269 MovieClip Frame 15
onClipEvent (enterFrame) { if (_root.patroit.life <= 0) { _parent.nextFrame(); } }
Instance of Symbol 60 MovieClip in Symbol 1269 MovieClip Frame 16
onClipEvent (enterFrame) { if (_root.enemyarray.length <= 0) { _root.gotoAndStop("victory2e"); } }
Symbol 1308 MovieClip Frame 1
this.swapDepths(100000); stop();
Instance of Symbol 60 MovieClip in Symbol 1308 MovieClip Frame 1
onClipEvent (enterFrame) { pp++; if (pp > 200) { _parent.nextFrame(); } } onClipEvent (load) { pp = 0; }
Instance of Symbol 60 MovieClip in Symbol 1308 MovieClip Frame 2
onClipEvent (enterFrame) { pp2++; if (pp2 > 200) { _parent.nextFrame(); } } onClipEvent (load) { pp2 = 0; }
Instance of Symbol 60 MovieClip in Symbol 1308 MovieClip Frame 3
onClipEvent (enterFrame) { pp3++; if (pp3 > 200) { _parent.nextFrame(); } } onClipEvent (load) { pp3 = 0; }
Instance of Symbol 60 MovieClip in Symbol 1308 MovieClip Frame 4
onClipEvent (enterFrame) { pp4++; if (pp4 > 200) { _parent.nextFrame(); } } onClipEvent (load) { pp4 = 0; }
Instance of Symbol 60 MovieClip in Symbol 1308 MovieClip Frame 5
onClipEvent (enterFrame) { pp5++; if (pp5 > 200) { _parent.nextFrame(); } } onClipEvent (load) { pp5 = 0; }
Instance of Symbol 60 MovieClip in Symbol 1308 MovieClip Frame 6
onClipEvent (enterFrame) { pp66++; if (pp66 > 200) { _parent.nextFrame(); } } onClipEvent (load) { pp66 = 0; }
Instance of Symbol 60 MovieClip in Symbol 1308 MovieClip Frame 7
onClipEvent (enterFrame) { pp67++; if (pp67 > 200) { _parent.nextFrame(); } } onClipEvent (load) { pp67 = 0; }
Instance of Symbol 60 MovieClip in Symbol 1308 MovieClip Frame 8
onClipEvent (enterFrame) { pp68++; if (pp68 > 200) { _parent.nextFrame(); } } onClipEvent (load) { pp68 = 0; }
Instance of Symbol 60 MovieClip in Symbol 1308 MovieClip Frame 9
onClipEvent (enterFrame) { pp69++; if (pp69 > 200) { _parent.nextFrame(); } } onClipEvent (load) { pp69 = 0; }
Instance of Symbol 60 MovieClip in Symbol 1308 MovieClip Frame 10
onClipEvent (enterFrame) { pp71++; if (pp71 > 200) { _parent.nextFrame(); } } onClipEvent (load) { pp71 = 0; }
Instance of Symbol 60 MovieClip in Symbol 1308 MovieClip Frame 11
onClipEvent (enterFrame) { pp72++; if (pp72 > 200) { _parent.nextFrame(); } } onClipEvent (load) { pp72 = 0; }
Instance of Symbol 60 MovieClip in Symbol 1308 MovieClip Frame 12
onClipEvent (enterFrame) { pp35++; if (pp35 > 200) { _parent.nextFrame(); } } onClipEvent (load) { pp35 = 0; }
Instance of Symbol 60 MovieClip in Symbol 1308 MovieClip Frame 13
onClipEvent (enterFrame) { pp88++; if (pp88 > 200) { _parent.nextFrame(); } } onClipEvent (load) { pp88 = 0; }
Instance of Symbol 60 MovieClip in Symbol 1308 MovieClip Frame 14
onClipEvent (enterFrame) { pp8++; if (pp8 > 200) { _parent.nextFrame(); } } onClipEvent (load) { pp8 = 0; }
Instance of Symbol 60 MovieClip in Symbol 1308 MovieClip Frame 15
onClipEvent (enterFrame) { pp89++; if (pp89 > 200) { _parent.nextFrame(); } } onClipEvent (load) { pp89 = 0; }
Instance of Symbol 60 MovieClip in Symbol 1308 MovieClip Frame 16
onClipEvent (enterFrame) { pp9++; if (pp9 > 200) { _parent.nextFrame(); } } onClipEvent (load) { pp9 = 0; }
Instance of Symbol 60 MovieClip in Symbol 1308 MovieClip Frame 17
onClipEvent (enterFrame) { pp91++; if (pp91 > 200) { _parent.nextFrame(); } } onClipEvent (load) { pp91 = 0; }
Instance of Symbol 60 MovieClip in Symbol 1308 MovieClip Frame 18
onClipEvent (enterFrame) { pp92++; if (pp92 > 200) { _parent.nextFrame(); } } onClipEvent (load) { pp92 = 0; }
Instance of Symbol 60 MovieClip in Symbol 1308 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:1157
Symbol 14 Sound [click]Used by:763
Symbol 15 GraphicUsed by:32
Symbol 16 GraphicUsed by:18 401 414 417
Symbol 17 GraphicUsed by:18
Symbol 18 MovieClipUses:16 17Used by:32 51 101 111 128 131 461 660
Symbol 19 GraphicUsed by:20 24 50 151 195 205 458
Symbol 20 ButtonUses:19Used by:32 101 111 131 142 466 660
Symbol 21 GraphicUsed by:32
Symbol 22 GraphicUsed by:23 44
Symbol 23 MovieClipUses:22Used by:32 44
Symbol 24 ButtonUses:19Used by:32 461
Symbol 25 GraphicUsed by:32
Symbol 26 GraphicUsed by:32
Symbol 27 GraphicUsed by:32 51 101 111 117 131 142 152 158 169 201 207 215 455 459 461 466 469 473 477 479 481 483 485 487 489 496 505 507 509 511 513 518 660 1157 1159 1161 1163 1174 1181 1185
Symbol 28 GraphicUsed by:32 101 111 117 131 142 152 158 169 201 207 215 455 459 466 469 473 477 479 481 483 485 487 489 496 505 507 509 511 513 518 660 1157 1159 1161 1163 1174 1181 1185
Symbol 29 GraphicUsed by:32 101 111 117 131 142 152 158 169 201 207 215 455 459 466 469 473 477 479 481 483 485 487 489 496 505 507 509 511 513 518 660 1157 1159 1161 1163 1174 1181 1185
Symbol 30 GraphicUsed by:32 101 111 117 131 142 152 169 201 207 215 455 459 466 469 473 477 479 481 483 485 487 489 496 505 507 509 511 513 518 660 1157 1159 1161 1163 1174 1181 1185
Symbol 31 GraphicUsed by:32 51 101 111 117 131 142 152 158 169 201 207 215 455 459 461 466 469 473 477 479 481 483 485 487 489 496 505 507 509 511 513 518 660 1157 1159 1161 1163 1174 1181 1185
Symbol 32 MovieClipUses:15 18 20 21 23 24 25 26 27 28 29 30 31Used by:48 657 668
Symbol 33 GraphicUsed by:34
Symbol 34 MovieClipUses:33Used by:48 56 108 115 129 138 143 152 158 169 201 207 215 455 459 462 467 469 473 477 479 481 483 485 487 489 496 505 507 509 511 513 518 655 656 657 661 662 663 664 665 666 667 668 669 1157 1159 1161 1163 1174 1181 1185
Symbol 35 GraphicUsed by:44
Symbol 36 GraphicUsed by:44
Symbol 37 GraphicUsed by:44
Symbol 38 GraphicUsed by:44
Symbol 39 GraphicUsed by:44
Symbol 40 GraphicUsed by:44
Symbol 41 GraphicUsed by:44
Symbol 42 GraphicUsed by:44
Symbol 43 GraphicUsed by:44
Symbol 44 MovieClipUses:35 36 22 37 38 39 40 41 42 23 43Used by:48 657 668
Symbol 45 GraphicUsed by:48 56 108 115 129 138 143 152 169 201 207 215 455 459 462 467 469 473 477 479 481 483 485 487 489 496 505 507 509 511 513 518 655 656 657 661 662 663 664 665 666 667 668 669 1157 1159 1161 1163 1174 1181 1185
Symbol 46 GraphicUsed by:47
Symbol 47 MovieClipUses:46Used by:48 56 108 115 129 138 143 152 169 201 207 215 455 459 462 467 469 473 477 479 481 483 485 487 489 496 505 507 509 511 513 518 655 656 657 661 662 663 664 665 666 667 668 669 804 1117 1157 1159 1161 1163 1174 1181 1185
Symbol 48 MovieClip [artilleryally]Uses:32 34 44 45 47
Symbol 49 GraphicUsed by:51
Symbol 50 ButtonUses:19Used by:51 117
Symbol 51 MovieClipUses:49 18 50 27 31Used by:56
Symbol 52 GraphicUsed by:54 55
Symbol 53 GraphicUsed by:55 148
Symbol 54 MovieClipUses:52Used by:55
Symbol 55 MovieClipUses:52 53 54Used by:56 462
Symbol 56 MovieClip [lasertank]Uses:51 34 55 45 47
Symbol 57 GraphicUsed by:64
Symbol 58 GraphicUsed by:64 67 70 72 74 76 78 80 82 84 86 94 99 471 1167
Symbol 59 GraphicUsed by:60 107 114
Symbol 60 MovieClipUses:59Used by:64 70 72 74 76 80 82 84 86 94 99 107 114 471 1167 1236 1269 1308
Symbol 61 FontUsed by:62 63 65 66 68 69 71 73 75 77 79 81 83 85 87 88 89 90 91 92 93 95 96 97 98 253 254 257 258 261 262 265 266 269 270 274 279 280 286 287 289 290 292 294 295 297 300 301 368 369 470 577 619 623 626 627 628 642 644 645 647 648 675 677 697 709 710 711 737 741 752 754 757 758 759 769 772 787 810 848 851 852 1041 1042 1112 1114 1164 1165 1166 1183 1193 1194 1197 1198 1200 1201 1202 1203 1204 1205 1207 1208 1209 1210 1211 1213 1214 1215 1216 1218 1219 1220 1222 1224 1225 1227 1228 1229 1230 1231 1235 1238 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1262 1264 1265 1266 1267 1268 1271 1273 1274 1275 1276 1277 1278 1279 1281 1282 1283 1284 1285 1287 1288 1290 1291 1292 1293 1294 1295 1296 1298 1299 1300 1301 1302 1303 1305 1306 1307
Symbol 62 TextUses:61Used by:64
Symbol 63 TextUses:61Used by:64
Symbol 64 MovieClip [missiondefend2]Uses:57 58 60 62 63
Symbol 65 TextUses:61Used by:67
Symbol 66 TextUses:61Used by:67 78
Symbol 67 MovieClip [missiondefend]Uses:58 65 66
Symbol 68 TextUses:61Used by:70
Symbol 69 TextUses:61Used by:70 72 74 76 80 82 84 86 94 99 471 1167
Symbol 70 MovieClip [missiondefend6]Uses:58 68 60 69
Symbol 71 TextUses:61Used by:72
Symbol 72 MovieClip [missiondefend5]Uses:58 71 60 69
Symbol 73 TextUses:61Used by:74
Symbol 74 MovieClip [missiondefend4]Uses:58 73 60 69
Symbol 75 TextUses:61Used by:76
Symbol 76 MovieClip [missiondefend3]Uses:58 75 60 69
Symbol 77 TextUses:61Used by:78
Symbol 78 MovieClip [mission9]Uses:58 77 66
Symbol 79 TextUses:61Used by:80
Symbol 80 MovieClip [mission8]Uses:58 79 60 69
Symbol 81 TextUses:61Used by:82
Symbol 82 MovieClip [mission6]Uses:58 81 60 69
Symbol 83 TextUses:61Used by:84
Symbol 84 MovieClip [mission5]Uses:58 83 60 69
Symbol 85 TextUses:61Used by:86
Symbol 86 MovieClip [mission4]Uses:58 85 60 69
Symbol 87 TextUses:61Used by:94
Symbol 88 TextUses:61Used by:94 99
Symbol 89 TextUses:61Used by:94
Symbol 90 TextUses:61Used by:94
Symbol 91 TextUses:61Used by:94
Symbol 92 EditableTextUses:61Used by:94
Symbol 93 EditableTextUses:61Used by:94
Symbol 94 MovieClip [mission2]Uses:58 87 60 88 89 90 69 91 92 93
Symbol 95 TextUses:61Used by:99
Symbol 96 TextUses:61Used by:99
Symbol 97 TextUses:61Used by:99
Symbol 98 TextUses:61Used by:99
Symbol 99 MovieClip [mission]Uses:58 95 60 88 96 97 98 69
Symbol 100 GraphicUsed by:101
Symbol 101 MovieClipUses:100 18 20 27 28 29 30 31Used by:108 655 667
Symbol 102 GraphicUsed by:107
Symbol 103 GraphicUsed by:107 128 504
Symbol 104 GraphicUsed by:107 128 504
Symbol 105 BitmapUsed by:106 460 525 562 585 607 615 658 716 724 753 771 817 818 819 1132 1272
Symbol 106 GraphicUses:105Used by:107
Symbol 107 MovieClipUses:59 102 103 104 60 106Used by:108 655 667
Symbol 108 MovieClip [lightally]Uses:101 34 107 45 47
Symbol 109 GraphicUsed by:111
Symbol 110 GraphicUsed by:111
Symbol 111 MovieClipUses:109 18 110 20 27 28 29 30 31Used by:115 656 664
Symbol 112 GraphicUsed by:114
Symbol 113 GraphicUsed by:114
Symbol 114 MovieClipUses:59 112 113 60Used by:115 656 664
Symbol 115 MovieClip [heavyally]Uses:111 34 114 45 47
Symbol 116 GraphicUsed by:117
Symbol 117 MovieClipUses:116 50 27 28 29 30 31Used by:129 662 665
Symbol 118 GraphicUsed by:124 128
Symbol 119 GraphicUsed by:128
Symbol 120 GraphicUsed by:128
Symbol 121 GraphicUsed by:124 128
Symbol 122 GraphicUsed by:124 128
Symbol 123 GraphicUsed by:128
Symbol 124 MovieClipUses:118 121 122Used by:128  Timeline
Symbol 125 GraphicUsed by:128
Symbol 126 GraphicUsed by:128
Symbol 127 GraphicUsed by:128
Symbol 128 MovieClipUses:118 119 18 120 121 122 103 104 123 124 125 126 127Used by:129 662 665
Symbol 129 MovieClip [rocketally]Uses:117 34 128 45 47
Symbol 130 GraphicUsed by:131
Symbol 131 MovieClip [humveeebase]Uses:130 18 20 27 28 29 30 31Used by:138 663 666
Symbol 132 GraphicUsed by:137
Symbol 133 GraphicUsed by:137
Symbol 134 GraphicUsed by:137
Symbol 135 GraphicUsed by:136 137
Symbol 136 MovieClipUses:135Used by:137
Symbol 137 MovieClipUses:132 133 134 136 135Used by:138 663 666
Symbol 138 MovieClip [humveeally]Uses:131 34 137 45 47
Symbol 139 GraphicUsed by:142
Symbol 140 GraphicUsed by:142
Symbol 141 GraphicUsed by:142
Symbol 142 MovieClipUses:139 20 140 141 27 28 29 30 31Used by:143
Symbol 143 MovieClip [oiltruck]Uses:142 34 45 47
Symbol 144 GraphicUsed by:152
Symbol 145 GraphicUsed by:147 148
Symbol 146 GraphicUsed by:148
Symbol 147 MovieClipUses:145Used by:148
Symbol 148 MovieClipUses:145 146 53 147Used by:152 489
Symbol 149 GraphicUsed by:150 457
Symbol 150 MovieClipUses:149Used by:152 169 455 485 487 496 507 509 511 513 1157
Symbol 151 ButtonUses:19Used by:152 169 455 485 487 507 509 511 513 1157
Symbol 152 MovieClip [laserbasedefense]Uses:144 148 34 150 151 45 47 27 28 29 30 31
Symbol 153 GraphicUsed by:158
Symbol 154 GraphicUsed by:158
Symbol 155 GraphicUsed by:158 496 865
Symbol 156 GraphicUsed by:158 496 865
Symbol 157 GraphicUsed by:158
Symbol 158 MovieClip [mine]Uses:153 34 154 27 155 28 29 156 157 31
Symbol 159 GraphicUsed by:169
Symbol 160 GraphicUsed by:168
Symbol 161 GraphicUsed by:168
Symbol 162 GraphicUsed by:168
Symbol 163 GraphicUsed by:168
Symbol 164 GraphicUsed by:168
Symbol 165 GraphicUsed by:168
Symbol 166 GraphicUsed by:168
Symbol 167 GraphicUsed by:168
Symbol 168 MovieClipUses:160 161 162 163 164 165 166 167Used by:169 469
Symbol 169 MovieClip [turrets]Uses:159 168 34 150 45 47 151 27 28 29 30 31
Symbol 170 ShapeTweeningUsed by:173 174
Symbol 171 ShapeTweeningUsed by:173 174
Symbol 172 GraphicUsed by:173 174
Symbol 173 MovieClipUses:170 171 172Used by:174
Symbol 174 MovieClip [rad]Uses:170 171 172 173
Symbol 175 GraphicUsed by:177
Symbol 176 GraphicUsed by:177
Symbol 177 MovieClip [laser2]Uses:175 176
Symbol 178 GraphicUsed by:181
Symbol 179 GraphicUsed by:181
Symbol 180 GraphicUsed by:181
Symbol 181 MovieClip [ionbeams]Uses:178 179 180
Symbol 182 GraphicUsed by:184
Symbol 183 GraphicUsed by:184
Symbol 184 MovieClip [laser]Uses:182 183
Symbol 185 GraphicUsed by:186
Symbol 186 MovieClipUses:185Used by:190
Symbol 187 GraphicUsed by:189
Symbol 188 GraphicUsed by:189
Symbol 189 MovieClipUses:187 188Used by:190
Symbol 190 MovieClip [mo]Uses:186 189
Symbol 191 GraphicUsed by:201
Symbol 192 FontUsed by:193 194 198 199 203 204 209 210 213 515 516 678 692 698 767 768 793
Symbol 193 TextUses:192Used by:201
Symbol 194 EditableTextUses:192Used by:201
Symbol 195 ButtonUses:19Used by:201 473 479 518 1159 1174 1185
Symbol 196 GraphicUsed by:201
Symbol 197 GraphicUsed by:201
Symbol 198 TextUses:192Used by:201 215
Symbol 199 EditableTextUses:192Used by:201
Symbol 200 GraphicUsed by:201
Symbol 201 MovieClip [enemyconstruction]Uses:191 193 194 34 195 45 47 196 197 198 199 200 27 28 29 30 31
Symbol 202 GraphicUsed by:207
Symbol 203 TextUses:192Used by:207
Symbol 204 EditableTextUses:192Used by:207
Symbol 205 ButtonUses:19Used by:207 215
Symbol 206 GraphicUsed by:207
Symbol 207 MovieClip [construction2]Uses:202 34 203 204 205 45 47 206 27 28 29 30 31
Symbol 208 GraphicUsed by:215
Symbol 209 TextUses:192Used by:215
Symbol 210 EditableTextUses:192Used by:215
Symbol 211 GraphicUsed by:215
Symbol 212 GraphicUsed by:215
Symbol 213 EditableTextUses:192Used by:215
Symbol 214 GraphicUsed by:215
Symbol 215 MovieClip [construction]Uses:208 209 210 34 205 45 47 211 212 198 213 214 27 28 29 30 31
Symbol 216 GraphicUsed by:218
Symbol 217 GraphicUsed by:218 220
Symbol 218 MovieClip [bigdot2]Uses:216 217
Symbol 219 GraphicUsed by:220 405 451
Symbol 220 MovieClip [bigdot]Uses:219 217
Symbol 221 GraphicUsed by:223
Symbol 222 GraphicUsed by:223 654
Symbol 223 MovieClip [dot2]Uses:221 222
Symbol 224 ShapeTweeningUsed by:234
Symbol 225 GraphicUsed by:234
Symbol 226 ShapeTweeningUsed by:234
Symbol 227 ShapeTweeningUsed by:234
Symbol 228 GraphicUsed by:234
Symbol 229 ShapeTweeningUsed by:234
Symbol 230 GraphicUsed by:234
Symbol 231 ShapeTweeningUsed by:234
Symbol 232 GraphicUsed by:234
Symbol 233 GraphicUsed by:234
Symbol 234 MovieClip [nuke]Uses:224 225 226 227 228 229 230 231 232 233
Symbol 235 GraphicUsed by:239
Symbol 236 ShapeTweeningUsed by:238
Symbol 237 GraphicUsed by:238
Symbol 238 MovieClipUses:236 237Used by:239
Symbol 239 MovieClip [targeter]Uses:235 238
Symbol 240 GraphicUsed by:244
Symbol 241 GraphicUsed by:243
Symbol 242 GraphicUsed by:243
Symbol 243 MovieClipUses:241 242Used by:244 246 858 882
Symbol 244 MovieClip [nukemiss2]Uses:240 243
Symbol 245 GraphicUsed by:246
Symbol 246 MovieClip [nukemiss]Uses:245 243
Symbol 247 GraphicUsed by:248
Symbol 248 MovieClip [padded]Uses:247Used by:367 453
Symbol 249 GraphicUsed by:453
Symbol 250 GraphicUsed by:251
Symbol 251 MovieClipUses:250Used by:453 651 854  Timeline
Symbol 252 GraphicUsed by:256 260 264 268 272 282 288 293 298 370 646 650 853
Symbol 253 TextUses:61Used by:256
Symbol 254 TextUses:61Used by:256
Symbol 255 GraphicUsed by:256
Symbol 256 ButtonUses:252 253 254 255Used by:453
Symbol 257 TextUses:61Used by:260
Symbol 258 TextUses:61Used by:260
Symbol 259 GraphicUsed by:260 288 370 646
Symbol 260 ButtonUses:252 257 258 259Used by:453
Symbol 261 TextUses:61Used by:264
Symbol 262 TextUses:61Used by:264
Symbol 263 GraphicUsed by:264
Symbol 264 ButtonUses:252 261 262 263Used by:453
Symbol 265 TextUses:61Used by:268
Symbol 266 TextUses:61Used by:268
Symbol 267 GraphicUsed by:268
Symbol 268 ButtonUses:252 265 266 267Used by:453
Symbol 269 TextUses:61Used by:272
Symbol 270 TextUses:61Used by:272
Symbol 271 GraphicUsed by:272
Symbol 272 ButtonUses:252 269 270 271Used by:453
Symbol 273 GraphicUsed by:453
Symbol 274 TextUses:61Used by:453
Symbol 275 GraphicUsed by:453
Symbol 276 GraphicUsed by:453
Symbol 277 GraphicUsed by:453
Symbol 278 GraphicUsed by:453
Symbol 279 TextUses:61Used by:282
Symbol 280 TextUses:61Used by:282
Symbol 281 GraphicUsed by:282
Symbol 282 ButtonUses:252 279 280 281Used by:453
Symbol 283 FontUsed by:284 285 303 304 305 306 307 308 310 317 322 326 331 334 335 339 376 381 384 390 396
Symbol 284 TextUses:283Used by:453
Symbol 285 TextUses:283Used by:453
Symbol 286 TextUses:61Used by:288
Symbol 287 TextUses:61Used by:288
Symbol 288 ButtonUses:252 286 287 259Used by:453
Symbol 289 TextUses:61Used by:293
Symbol 290 TextUses:61Used by:293
Symbol 291 GraphicUsed by:293
Symbol 292 TextUses:61Used by:293
Symbol 293 ButtonUses:252 289 290 291 292Used by:453
Symbol 294 TextUses:61Used by:298
Symbol 295 TextUses:61Used by:298
Symbol 296 GraphicUsed by:298 853
Symbol 297 TextUses:61Used by:298
Symbol 298 ButtonUses:252 294 295 296 297Used by:453
Symbol 299 GraphicUsed by:302
Symbol 300 TextUses:61Used by:302
Symbol 301 TextUses:61Used by:302
Symbol 302 ButtonUses:299 300 301Used by:453
Symbol 303 TextUses:283Used by:453
Symbol 304 TextUses:283Used by:453
Symbol 305 TextUses:283Used by:453
Symbol 306 TextUses:283Used by:453
Symbol 307 TextUses:283Used by:453
Symbol 308 TextUses:283Used by:453
Symbol 309 GraphicUsed by:315 378
Symbol 310 EditableTextUses:283Used by:315
Symbol 311 GraphicUsed by:315 378
Symbol 312 FontUsed by:313 319 324 328 332 336 377 379 383 388 389 391 393 394 398 399 402 404 406 408 410 411 413 415 416 419 421 423 426 428 430 431 434 436 438 440 442 445 447 449 450
Symbol 313 TextUses:312Used by:315
Symbol 314 GraphicUsed by:315 320 325 329 333 337 378
Symbol 315 ButtonUses:309 310 311 313 314Used by:453
Symbol 316 GraphicUsed by:320 329 337
Symbol 317 EditableTextUses:283Used by:320
Symbol 318 GraphicUsed by:320 337
Symbol 319 TextUses:312Used by:320
Symbol 320 ButtonUses:316 317 318 319 314Used by:453
Symbol 321 GraphicUsed by:325
Symbol 322 EditableTextUses:283Used by:325
Symbol 323 GraphicUsed by:325
Symbol 324 TextUses:312Used by:325
Symbol 325 ButtonUses:321 322 323 324 314Used by:453
Symbol 326 EditableTextUses:283Used by:329
Symbol 327 GraphicUsed by:329 333
Symbol 328 TextUses:312Used by:329
Symbol 329 ButtonUses:316 326 327 328 314Used by:453
Symbol 330 GraphicUsed by:333
Symbol 331 EditableTextUses:283Used by:333
Symbol 332 TextUses:312Used by:333
Symbol 333 ButtonUses:330 331 327 332 314Used by:453
Symbol 334 TextUses:283Used by:453
Symbol 335 EditableTextUses:283Used by:337
Symbol 336 TextUses:312Used by:337
Symbol 337 ButtonUses:316 335 318 336 314Used by:453
Symbol 338 GraphicUsed by:453
Symbol 339 TextUses:283Used by:453
Symbol 340 BitmapUsed by:344 346 347 350 351 353 355 357 364 825 826 827 828 832 833 834 837 839 841 843 844 1037 1038 1089 1095 1099 1100 1104 1105 1109 1128 1168 1175 1176 1186
Symbol 341 BitmapUsed by:344 346 350 353 355 357 360 825 826 828 833 835 837 839 843 844 1037 1038 1096 1100 1109 1128 1176 1186
Symbol 342 BitmapUsed by:344 346 350 353 355 357 360 364 825 826 828 833 835 837 839 842 843 844 1027 1037 1038 1096 1099 1100 1105 1109 1128 1169 1176 1186
Symbol 343 BitmapUsed by:344 346 350 353 355 357 360 364 825 826 828 833 835 837 839 843 1038 1096 1099 1100 1105 1109 1128 1176
Symbol 344 GraphicUses:340 341 342 343Used by:367
Symbol 345 GraphicUsed by:367
Symbol 346 GraphicUses:342 343 340 341Used by:367
Symbol 347 GraphicUses:340Used by:367
Symbol 348 GraphicUsed by:349
Symbol 349 MovieClipUses:348Used by:367 831 846 1092 1097 1108 1110 1155 1172 1179 1187
Symbol 350 GraphicUses:342 340 341 343Used by:367
Symbol 351 GraphicUses:340Used by:367
Symbol 352 BitmapUsed by:353 364 837 842 843 1106 1128 1170 1176 1177
Symbol 353 GraphicUses:342 340 341 343 352Used by:354
Symbol 354 MovieClipUses:353Used by:367 846 1092
Symbol 355 GraphicUses:342 340 341 343Used by:356
Symbol 356 MovieClipUses:355Used by:367 846 1092
Symbol 357 GraphicUses:340 342 341 343Used by:358
Symbol 358 MovieClipUses:357Used by:367 846 1092
Symbol 359 GraphicUsed by:367
Symbol 360 GraphicUses:342 341 343Used by:361
Symbol 361 MovieClipUses:360Used by:367 846
Symbol 362 GraphicUsed by:367
Symbol 363 BitmapUsed by:364 844 1105 1128 1186
Symbol 364 GraphicUses:340 363 342 343 352Used by:365
Symbol 365 MovieClipUses:364Used by:367 846
Symbol 366 GraphicUsed by:367
Symbol 367 MovieClipUses:344 248 345 346 347 349 350 351 354 356 358 359 361 362 365 366Used by:453
Symbol 368 TextUses:61Used by:370
Symbol 369 TextUses:61Used by:370
Symbol 370 ButtonUses:252 368 369 259Used by:453
Symbol 371 GraphicUsed by:374 375 385 386 392 395
Symbol 372 GraphicUsed by:374 375 385 386 392 395
Symbol 373 GraphicUsed by:374 375 385 386 392 395 604 605 624 625 770 788 1059
Symbol 374 ButtonUses:371 372 373Used by:453
Symbol 375 ButtonUses:371 372 373Used by:453
Symbol 376 EditableTextUses:283Used by:378
Symbol 377 TextUses:312Used by:378
Symbol 378 ButtonUses:309 376 311 377 314Used by:453
Symbol 379 TextUses:312Used by:453
Symbol 380 GraphicUsed by:453
Symbol 381 TextUses:283Used by:453
Symbol 382 GraphicUsed by:453
Symbol 383 TextUses:312Used by:453
Symbol 384 EditableTextUses:283Used by:453
Symbol 385 ButtonUses:371 372 373Used by:453
Symbol 386 ButtonUses:371 372 373Used by:453
Symbol 387 GraphicUsed by:453
Symbol 388 EditableTextUses:312Used by:453
Symbol 389 TextUses:312Used by:453
Symbol 390 TextUses:283Used by:453
Symbol 391 TextUses:312Used by:453
Symbol 392 ButtonUses:371 372 373Used by:453
Symbol 393 EditableTextUses:312Used by:453
Symbol 394 EditableTextUses:312Used by:453
Symbol 395 ButtonUses:371 372 373Used by:453
Symbol 396 TextUses:283Used by:453
Symbol 397 GraphicUsed by:418 452
Symbol 398 TextUses:312Used by:401
Symbol 399 TextUses:312Used by:401
Symbol 400 GraphicUsed by:401
Symbol 401 ButtonUses:398 16 399 400Used by:418
Symbol 402 TextUses:312Used by:405
Symbol 403 GraphicUsed by:405
Symbol 404 TextUses:312Used by:405
Symbol 405 ButtonUses:402 403 404 219Used by:418
Symbol 406 TextUses:312Used by:409
Symbol 407 GraphicUsed by:409
Symbol 408 TextUses:312Used by:409
Symbol 409 ButtonUses:406 407 408Used by:418
Symbol 410 TextUses:312Used by:414
Symbol 411 TextUses:312Used by:414
Symbol 412 GraphicUsed by:414 417 444
Symbol 413 TextUses:312Used by:414 417 444
Symbol 414 ButtonUses:410 16 411 412 413Used by:418
Symbol 415 TextUses:312Used by:417
Symbol 416 TextUses:312Used by:417
Symbol 417 ButtonUses:415 16 416 412 413Used by:418
Symbol 418 MovieClipUses:397 401 405 409 414 417Used by:453
Symbol 419 TextUses:312Used by:425
Symbol 420 GraphicUsed by:425
Symbol 421 TextUses:312Used by:425
Symbol 422 GraphicUsed by:425
Symbol 423 TextUses:312Used by:425
Symbol 424 GraphicUsed by:425
Symbol 425 ButtonUses:419 420 421 422 423 424Used by:452
Symbol 426 TextUses:312Used by:433
Symbol 427 GraphicUsed by:433
Symbol 428 TextUses:312Used by:433
Symbol 429 GraphicUsed by:433
Symbol 430 TextUses:312Used by:433
Symbol 431 TextUses:312Used by:433
Symbol 432 GraphicUsed by:433
Symbol 433 ButtonUses:426 427 428 429 430 431 432Used by:452
Symbol 434 TextUses:312Used by:439
Symbol 435 GraphicUsed by:439
Symbol 436 TextUses:312Used by:439
Symbol 437 GraphicUsed by:439
Symbol 438 TextUses:312Used by:439
Symbol 439 ButtonUses:434 435 436 437 438Used by:452
Symbol 440 TextUses:312Used by:444
Symbol 441 GraphicUsed by:444
Symbol 442 TextUses:312Used by:444
Symbol 443 GraphicUsed by:444
Symbol 444 ButtonUses:440 441 442 443 413 412Used by:452
Symbol 445 TextUses:312Used by:451
Symbol 446 GraphicUsed by:451
Symbol 447 TextUses:312Used by:451
Symbol 448 GraphicUsed by:451
Symbol 449 TextUses:312Used by:451
Symbol 450 TextUses:312Used by:451
Symbol 451 ButtonUses:445 446 447 448 449 450 219Used by:452
Symbol 452 MovieClipUses:397 425 433 439 444 451Used by:453
Symbol 453 MovieClip [bar]Uses:249 251 256 260 264 268 272 273 274 275 276 277 278 282 284 285 288 293 298 302 303 304 305 306 307 308 315 320 325 329 333 334 337 338 339 367 370 374 375 378 379 380 381 382 248 383 384 385 386 387 388 389 390 391 392 393 394 395 396 418 452
Symbol 454 GraphicUsed by:455
Symbol 455 MovieClip [weaponsilo]Uses:454 34 150 45 47 151 27 28 29 30 31Used by:Timeline
Symbol 456 GraphicUsed by:459
Symbol 457 MovieClipUses:149Used by:459 469 473 477 479 481 483 489 505 1159 1161 1163 1185
Symbol 458 ButtonUses:19Used by:459 469 477 481 483 489 505 1161 1163 1181
Symbol 459 MovieClip [enemyweaponsilo]Uses:456 34 457 45 47 458 27 28 29 30 31Used by:Timeline
Symbol 460 GraphicUses:105Used by:461
Symbol 461 MovieClipUses:460 18 24 27 31Used by:462
Symbol 462 MovieClip [enemylasertank]Uses:461 34 55 45 47Used by:Timeline
Symbol 463 GraphicUsed by:466
Symbol 464 GraphicUsed by:466
Symbol 465 GraphicUsed by:466
Symbol 466 MovieClipUses:463 20 464 465 27 28 29 30 31Used by:467
Symbol 467 MovieClip [enemyoiltruck]Uses:466 34 45 47Used by:Timeline
Symbol 468 GraphicUsed by:469
Symbol 469 MovieClip [enemyturret]Uses:468 168 457 34 45 47 458 27 28 29 30 31Used by:Timeline
Symbol 470 TextUses:61Used by:471
Symbol 471 MovieClip [mission3]Uses:58 470 60 69Used by:Timeline
Symbol 472 GraphicUsed by:473
Symbol 473 MovieClip [enemywarfactory]Uses:472 45 47 34 457 195 27 28 29 30 31Used by:Timeline
Symbol 474 GraphicUsed by:477
Symbol 475 GraphicUsed by:476
Symbol 476 MovieClipUses:475Used by:477 511
Symbol 477 MovieClip [enemyrefinery]Uses:474 34 457 476 458 45 47 27 28 29 30 31Used by:Timeline
Symbol 478 GraphicUsed by:479
Symbol 479 MovieClip [enemycomcentre]Uses:478 34 457 195 45 47 27 28 29 30 31Used by:Timeline
Symbol 480 GraphicUsed by:481
Symbol 481 MovieClip [enemyservicedepot]Uses:480 34 457 458 45 47 27 28 29 30 31Used by:Timeline
Symbol 482 GraphicUsed by:483
Symbol 483 MovieClip [enemytechcentre]Uses:482 34 457 458 45 47 27 28 29 30 31Used by:Timeline
Symbol 484 GraphicUsed by:485
Symbol 485 MovieClip [servicedepot]Uses:484 34 150 151 45 47 27 28 29 30 31Used by:Timeline
Symbol 486 GraphicUsed by:487
Symbol 487 MovieClip [techcentre]Uses:486 34 150 151 45 47 27 28 29 30 31Used by:Timeline
Symbol 488 GraphicUsed by:489
Symbol 489 MovieClip [enemylaser]Uses:488 148 34 457 458 45 47 27 28 29 30 31Used by:Timeline
Symbol 490 GraphicUsed by:496
Symbol 491 GraphicUsed by:496
Symbol 492 GraphicUsed by:496
Symbol 493 GraphicUsed by:496
Symbol 494 GraphicUsed by:496 865
Symbol 495 GraphicUsed by:496 865
Symbol 496 MovieClip [enemymine]Uses:490 34 150 45 47 491 492 27 155 28 29 156 30 493 31 494 495Used by:Timeline
Symbol 497 GraphicUsed by:505
Symbol 498 GraphicUsed by:504
Symbol 499 GraphicUsed by:500
Symbol 500 MovieClipUses:499Used by:504
Symbol 501 GraphicUsed by:504
Symbol 502 GraphicUsed by:504
Symbol 503 GraphicUsed by:504
Symbol 504 MovieClipUses:498 500 501 103 104 502 503Used by:505 507
Symbol 505 MovieClip [enemymultiple]Uses:497 504 457 34 458 45 47 27 28 29 30 31Used by:Timeline
Symbol 506 GraphicUsed by:507
Symbol 507 MovieClip [patriotmiss]Uses:506 504 34 150 151 45 47 27 28 29 30 31Used by:Timeline
Symbol 508 GraphicUsed by:509
Symbol 509 MovieClip [warfactory]Uses:508 151 150 34 45 47 27 28 29 30 31Used by:Timeline
Symbol 510 GraphicUsed by:511
Symbol 511 MovieClip [refinery]Uses:510 476 151 34 150 45 47 27 28 29 30 31Used by:Timeline
Symbol 512 GraphicUsed by:513
Symbol 513 MovieClip [comcentre]Uses:512 151 34 150 45 47 27 28 29 30 31Used by:Timeline
Symbol 514 GraphicUsed by:518
Symbol 515 TextUses:192Used by:518
Symbol 516 EditableTextUses:192Used by:518
Symbol 517 GraphicUsed by:518
Symbol 518 MovieClip [enemyconstruction2]Uses:514 34 515 516 195 45 47 517 27 28 29 30 31Used by:Timeline
Symbol 519 GraphicUsed by:652
Symbol 520 GraphicUsed by:599 738
Symbol 521 GraphicUsed by:575 736
Symbol 522 GraphicUsed by:524
Symbol 523 GraphicUsed by:524
Symbol 524 MovieClipUses:522 523Used by:575 598 736  Timeline
Symbol 525 GraphicUses:105Used by:575
Symbol 526 GraphicUsed by:527
Symbol 527 MovieClipUses:526Used by:575 599 618 736 738
Symbol 528 GraphicUsed by:529
Symbol 529 MovieClipUses:528Used by:575 599 618 736 738
Symbol 530 GraphicUsed by:531
Symbol 531 MovieClipUses:530Used by:575 599 618 736 738
Symbol 532 GraphicUsed by:534 608 717
Symbol 533 GraphicUsed by:534 608 683 693 717 765 774 776 777 785 789 790 792 795 797 798 801
Symbol 534 ButtonUses:532 533Used by:575
Symbol 535 GraphicUsed by:575 736
Symbol 536 GraphicUsed by:537
Symbol 537 MovieClipUses:536Used by:575 599 618 736 738
Symbol 538 GraphicUsed by:539
Symbol 539 MovieClipUses:538Used by:575 599 618 736 738
Symbol 540 GraphicUsed by:541
Symbol 541 MovieClipUses:540Used by:575 599 618 736 738
Symbol 542 GraphicUsed by:575
Symbol 543 GraphicUsed by:544
Symbol 544 MovieClipUses:543Used by:575 599 618 736 738
Symbol 545 GraphicUsed by:546
Symbol 546 MovieClipUses:545Used by:575 599 618 736 738
Symbol 547 GraphicUsed by:548
Symbol 548 MovieClipUses:547Used by:575 599 618 736 738
Symbol 549 GraphicUsed by:550
Symbol 550 MovieClipUses:549Used by:575 599 618 736 738
Symbol 551 GraphicUsed by:575
Symbol 552 GraphicUsed by:575
Symbol 553 GraphicUsed by:554
Symbol 554 MovieClipUses:553Used by:575 599 618 736 738
Symbol 555 GraphicUsed by:556
Symbol 556 MovieClipUses:555Used by:575 599 618 736 738
Symbol 557 GraphicUsed by:575
Symbol 558 GraphicUsed by:575
Symbol 559 GraphicUsed by:560
Symbol 560 MovieClipUses:559Used by:575 599 618 736 738
Symbol 561 GraphicUsed by:575
Symbol 562 GraphicUses:105Used by:575
Symbol 563 GraphicUsed by:575
Symbol 564 GraphicUsed by:575 598 736
Symbol 565 GraphicUsed by:575
Symbol 566 GraphicUsed by:575
Symbol 567 GraphicUsed by:575
Symbol 568 GraphicUsed by:575
Symbol 569 GraphicUsed by:575 598 736
Symbol 570 GraphicUsed by:575
Symbol 571 GraphicUsed by:575
Symbol 572 GraphicUsed by:575 598 736
Symbol 573 GraphicUsed by:575
Symbol 574 GraphicUsed by:575
Symbol 575 MovieClipUses:521 524 525 527 529 531 534 535 537 539 541 542 544 546 548 550 551 552 554 556 557 558 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574Used by:599
Symbol 576 GraphicUsed by:599 738
Symbol 577 EditableTextUses:61Used by:599
Symbol 578 GraphicUsed by:598
Symbol 579 GraphicUsed by:598
Symbol 580 GraphicUsed by:598
Symbol 581 GraphicUsed by:598
Symbol 582 GraphicUsed by:598
Symbol 583 GraphicUsed by:598
Symbol 584 GraphicUsed by:598
Symbol 585 GraphicUses:105Used by:598
Symbol 586 GraphicUsed by:598
Symbol 587 GraphicUsed by:598
Symbol 588 GraphicUsed by:598
Symbol 589 GraphicUsed by:598
Symbol 590 GraphicUsed by:598
Symbol 591 GraphicUsed by:598
Symbol 592 GraphicUsed by:598
Symbol 593 GraphicUsed by:598
Symbol 594 GraphicUsed by:598
Symbol 595 GraphicUsed by:598
Symbol 596 GraphicUsed by:598 736
Symbol 597 GraphicUsed by:598
Symbol 598 MovieClipUses:578 524 579 580 581 582 583 584 585 586 564 587 588 589 590 569 591 592 572 593 594 595 596 597Used by:599 738
Symbol 599 MovieClipUses:520 575 576 577 598 527 529 531 537 539 541 554 556 560 546 544 548 550Used by:652
Symbol 600 GraphicUsed by:652
Symbol 601 GraphicUsed by:620
Symbol 602 GraphicUsed by:604 605 624 625 770 788 1059
Symbol 603 GraphicUsed by:604 605 624 625 770 788 1059
Symbol 604 ButtonUses:602 603 373Used by:620
Symbol 605 ButtonUses:602 603 373Used by:620
Symbol 606 GraphicUsed by:618 766 773 996
Symbol 607 GraphicUses:105Used by:618
Symbol 608 ButtonUses:532 533Used by:618
Symbol 609 GraphicUsed by:618
Symbol 610 GraphicUsed by:618
Symbol 611 GraphicUsed by:618
Symbol 612 GraphicUsed by:618
Symbol 613 GraphicUsed by:618
Symbol 614 GraphicUsed by:618
Symbol 615 GraphicUses:105Used by:618
Symbol 616 GraphicUsed by:618
Symbol 617 GraphicUsed by:618
Symbol 618 MovieClipUses:606 607 527 529 531 608 609 537 539 541 610 544 546 548 550 611 612 554 556 613 614 560 615 616 617Used by:620
Symbol 619 EditableTextUses:61Used by:620
Symbol 620 MovieClipUses:601 604 605 618 619Used by:652
Symbol 621 GraphicUsed by:622
Symbol 622 MovieClipUses:621Used by:652 855
Symbol 623 EditableTextUses:61Used by:652
Symbol 624 ButtonUses:602 603 373Used by:652
Symbol 625 ButtonUses:602 603 373Used by:652
Symbol 626 EditableTextUses:61Used by:652
Symbol 627 EditableTextUses:61Used by:652
Symbol 628 EditableTextUses:61Used by:652
Symbol 629 GraphicUsed by:635
Symbol 630 FontUsed by:631 633 634 637 639 640
Symbol 631 EditableTextUses:630Used by:635
Symbol 632 GraphicUsed by:635
Symbol 633 EditableTextUses:630Used by:635
Symbol 634 EditableTextUses:630Used by:635
Symbol 635 ButtonUses:629 631 632 633 634Used by:652
Symbol 636 GraphicUsed by:641
Symbol 637 EditableTextUses:630Used by:641
Symbol 638 GraphicUsed by:641
Symbol 639 EditableTextUses:630Used by:641
Symbol 640 EditableTextUses:630Used by:641
Symbol 641 ButtonUses:636 637 638 639 640Used by:652
Symbol 642 TextUses:61Used by:651 854
Symbol 643 GraphicUsed by:646 650 853
Symbol 644 TextUses:61Used by:646
Symbol 645 TextUses:61Used by:646
Symbol 646 ButtonUses:643 644 252 645 259Used by:651 854
Symbol 647 TextUses:61Used by:650
Symbol 648 TextUses:61Used by:650
Symbol 649 GraphicUsed by:650
Symbol 650 ButtonUses:643 647 252 648 649Used by:651
Symbol 651 MovieClipUses:251 642 646 650Used by:652
Symbol 652 MovieClip [mapbar]Uses:519 599 600 620 622 623 624 625 626 627 628 635 641 651Used by:Timeline
Symbol 653 GraphicUsed by:654
Symbol 654 MovieClip [dot]Uses:653 222Used by:Timeline
Symbol 655 MovieClip [light]Uses:101 34 107 45 47Used by:Timeline
Symbol 656 MovieClip [heavy]Uses:111 34 114 45 47Used by:Timeline
Symbol 657 MovieClip [artillery]Uses:32 34 44 45 47Used by:Timeline
Symbol 658 GraphicUses:105Used by:660
Symbol 659 GraphicUsed by:660
Symbol 660 MovieClipUses:658 18 659 20 27 28 29 30 31Used by:661 669
Symbol 661 MovieClip [dozer]Uses:660 34 45 47Used by:Timeline
Symbol 662 MovieClip [rocket]Uses:117 34 128 45 47Used by:Timeline
Symbol 663 MovieClip [humvee]Uses:131 34 137 45 47Used by:Timeline
Symbol 664 MovieClip [enemyheavy]Uses:111 34 114 45 47Used by:Timeline
Symbol 665 MovieClip [enemyrocket]Uses:117 34 128 45 47Used by:Timeline
Symbol 666 MovieClip [enemyhumvee]Uses:34 131 137 45 47Used by:Timeline
Symbol 667 MovieClip [enemylight]Uses:101 34 107 45 47Used by:Timeline
Symbol 668 MovieClip [enemyartillery]Uses:32 34 44 45 47Used by:Timeline
Symbol 669 MovieClip [enemydozer]Uses:660 34 45 47Used by:Timeline
Symbol 670 GraphicUsed by:671
Symbol 671 MovieClip [box5]Uses:670Used by:Timeline
Symbol 672 GraphicUsed by:855
Symbol 673 GraphicUsed by:694
Symbol 674 GraphicUsed by:694
Symbol 675 EditableTextUses:61Used by:676
Symbol 676 MovieClipUses:675Used by:694 714 786 791 800
Symbol 677 EditableTextUses:61Used by:694
Symbol 678 TextUses:192Used by:694
Symbol 679 BitmapUsed by:680 696 713
Symbol 680 GraphicUses:679Used by:694
Symbol 681 GraphicUsed by:694
Symbol 682 GraphicUsed by:683 693 765 774 776 777 785 789 790 792 795 797 798 801
Symbol 683 ButtonUses:682 533Used by:694
Symbol 684 GraphicUsed by:694
Symbol 685 GraphicUsed by:694
Symbol 686 GraphicUsed by:694
Symbol 687 GraphicUsed by:694
Symbol 688 GraphicUsed by:694
Symbol 689 GraphicUsed by:694
Symbol 690 GraphicUsed by:694
Symbol 691 GraphicUsed by:694
Symbol 692 TextUses:192Used by:694
Symbol 693 ButtonUses:682 533Used by:694
Symbol 694 MovieClipUses:673 674 676 677 678 680 681 683 684 685 686 687 688 689 690 691 692 693Used by:855
Symbol 695 GraphicUsed by:714
Symbol 696 GraphicUses:679Used by:714
Symbol 697 EditableTextUses:61Used by:714
Symbol 698 TextUses:192Used by:712 714
Symbol 699 GraphicUsed by:714
Symbol 700 GraphicUsed by:714
Symbol 701 GraphicUsed by:714
Symbol 702 GraphicUsed by:714
Symbol 703 GraphicUsed by:714
Symbol 704 GraphicUsed by:714
Symbol 705 GraphicUsed by:714
Symbol 706 GraphicUsed by:714
Symbol 707 GraphicUsed by:714
Symbol 708 GraphicUsed by:712
Symbol 709 TextUses:61Used by:712
Symbol 710 TextUses:61Used by:712
Symbol 711 TextUses:61Used by:712
Symbol 712 MovieClipUses:708 709 698 710 711Used by:714
Symbol 713 GraphicUses:679Used by:714
Symbol 714 MovieClipUses:695 696 697 698 676 699 700 701 702 703 704 705 706 707 712 713Used by:855
Symbol 715 GraphicUsed by:855
Symbol 716 GraphicUses:105Used by:736
Symbol 717 ButtonUses:532 533Used by:736
Symbol 718 GraphicUsed by:736
Symbol 719 GraphicUsed by:736
Symbol 720 GraphicUsed by:736
Symbol 721 GraphicUsed by:736
Symbol 722 GraphicUsed by:736
Symbol 723 GraphicUsed by:736
Symbol 724 GraphicUses:105Used by:736
Symbol 725 GraphicUsed by:736
Symbol 726 GraphicUsed by:736
Symbol 727 GraphicUsed by:736
Symbol 728 GraphicUsed by:736
Symbol 729 GraphicUsed by:736
Symbol 730 GraphicUsed by:736
Symbol 731 GraphicUsed by:736
Symbol 732 GraphicUsed by:736
Symbol 733 GraphicUsed by:736
Symbol 734 GraphicUsed by:736
Symbol 735 GraphicUsed by:736
Symbol 736 MovieClipUses:521 524 716 527 529 531 717 535 537 539 541 718 544 546 548 550 719 720 554 556 721 722 560 723 724 725 564 726 727 728 729 569 730 731 572 732 733 734 596 735Used by:738
Symbol 737 EditableTextUses:61Used by:738
Symbol 738 MovieClipUses:520 736 576 737 598 527 529 531 537 539 541 554 556 560 546 544 548 550Used by:855
Symbol 739 GraphicUsed by:743 747 751 808 812 816 820 824 1232 1233 1234 1236
Symbol 740 GraphicUsed by:743
Symbol 741 TextUses:61Used by:743
Symbol 742 GraphicUsed by:743
Symbol 743 ButtonUses:739 740 741 742Used by:855
Symbol 744 GraphicUsed by:747 1234
Symbol 745 GraphicUsed by:747 1234
Symbol 746 GraphicUsed by:747 1234
Symbol 747 ButtonUses:739 744 745 746Used by:855
Symbol 748 GraphicUsed by:751 1236
Symbol 749 GraphicUsed by:751
Symbol 750 GraphicUsed by:751
Symbol 751 ButtonUses:739 748 749 750Used by:855
Symbol 752 EditableTextUses:61Used by:855
Symbol 753 GraphicUses:105Used by:855
Symbol 754 TextUses:61Used by:855
Symbol 755 FontUsed by:756
Symbol 756 TextUses:755Used by:855
Symbol 757 EditableTextUses:61Used by:855
Symbol 758 TextUses:61Used by:855
Symbol 759 TextUses:61Used by:855
Symbol 760 GraphicUsed by:764
Symbol 761 GraphicUsed by:763
Symbol 762 GraphicUsed by:763
Symbol 763 ButtonUses:761 762 14Used by:764
Symbol 764 MovieClipUses:760 763Used by:855
Symbol 765 ButtonUses:682 533Used by:766
Symbol 766 MovieClipUses:606 765Used by:855
Symbol 767 EditableTextUses:192Used by:855
Symbol 768 TextUses:192Used by:855
Symbol 769 EditableTextUses:61Used by:855
Symbol 770 ButtonUses:602 603 373Used by:855
Symbol 771 GraphicUses:105Used by:804
Symbol 772 EditableTextUses:61Used by:804
Symbol 773 MovieClipUses:606Used by:786 791 794 796 800 802
Symbol 774 ButtonUses:682 533Used by:786
Symbol 775 GraphicUsed by:786 791 800
Symbol 776 ButtonUses:682 533Used by:786 791 800
Symbol 777 ButtonUses:682 533Used by:786
Symbol 778 GraphicUsed by:786 791 800
Symbol 779 GraphicUsed by:786 791 800
Symbol 780 GraphicUsed by:786 791 800
Symbol 781 GraphicUsed by:786 791 800
Symbol 782 GraphicUsed by:786 791 800
Symbol 783 GraphicUsed by:786 791 800
Symbol 784 GraphicUsed by:786 791 800
Symbol 785 ButtonUses:682 533Used by:786 800
Symbol 786 MovieClipUses:773 774 775 776 676 777 778 779 780 781 782 783 784 785Used by:804
Symbol 787 EditableTextUses:61Used by:804
Symbol 788 ButtonUses:602 603 373Used by:804
Symbol 789 ButtonUses:682 533Used by:791
Symbol 790 ButtonUses:682 533Used by:791
Symbol 791 MovieClipUses:773 789 775 776 676 790 778 779 780 781 782 783 784Used by:804
Symbol 792 ButtonUses:682 533Used by:794
Symbol 793 TextUses:192Used by:794 800 802
Symbol 794 MovieClipUses:773 792 793Used by:804
Symbol 795 ButtonUses:682 533Used by:796
Symbol 796 MovieClipUses:773 795Used by:804
Symbol 797 ButtonUses:682 533Used by:800
Symbol 798 ButtonUses:682 533Used by:800
Symbol 799 GraphicUsed by:800
Symbol 800 MovieClipUses:773 797 775 776 676 798 778 779 780 781 782 783 784 785 799 793Used by:804
Symbol 801 ButtonUses:682 533Used by:802
Symbol 802 MovieClipUses:773 801 793Used by:804
Symbol 803 GraphicUsed by:804
Symbol 804 MovieClipUses:771 772 786 787 788 791 47 794 796 800 802 803Used by:855
Symbol 805 GraphicUsed by:808
Symbol 806 GraphicUsed by:808
Symbol 807 GraphicUsed by:808
Symbol 808 ButtonUses:739 805 806 807Used by:855
Symbol 809 GraphicUsed by:812
Symbol 810 TextUses:61Used by:812
Symbol 811 GraphicUsed by:812
Symbol 812 ButtonUses:739 809 810 811Used by:855
Symbol 813 GraphicUsed by:816 1233
Symbol 814 GraphicUsed by:816 1233
Symbol 815 GraphicUsed by:816 1233
Symbol 816 ButtonUses:739 813 814 815Used by:855
Symbol 817 GraphicUses:105Used by:820 1232
Symbol 818 GraphicUses:105Used by:820 1232
Symbol 819 GraphicUses:105Used by:820 1232
Symbol 820 ButtonUses:739 817 818 819Used by:855
Symbol 821 GraphicUsed by:824
Symbol 822 GraphicUsed by:824
Symbol 823 GraphicUsed by:824
Symbol 824 ButtonUses:739 821 822 823Used by:855
Symbol 825 GraphicUses:342 341 340 343Used by:846
Symbol 826 GraphicUses:342 340 343 341Used by:846
Symbol 827 GraphicUses:340Used by:831 1110
Symbol 828 GraphicUses:340 341 343 342Used by:831
Symbol 829 GraphicUsed by:830
Symbol 830 MovieClipUses:829Used by:831 1040 1092 1097 1102 1108 1110 1155 1172 1179 1187
Symbol 831 MovieClipUses:827 349 828 830Used by:846  Timeline
Symbol 832 GraphicUses:340Used by:846
Symbol 833 GraphicUses:342 340 341 343Used by:846
Symbol 834 GraphicUses:340Used by:846
Symbol 835 GraphicUses:341 343 342Used by:836
Symbol 836 MovieClipUses:835Used by:846 1155
Symbol 837 GraphicUses:340 341 342 343 352Used by:838
Symbol 838 MovieClipUses:837Used by:846 1155
Symbol 839 GraphicUses:340 343 342 341Used by:840
Symbol 840 MovieClipUses:839Used by:846 1155
Symbol 841 GraphicUses:340Used by:846
Symbol 842 GraphicUses:342 352Used by:846
Symbol 843 GraphicUses:340 352 342 343 341Used by:846
Symbol 844 GraphicUses:363 340 342 341Used by:845
Symbol 845 MovieClipUses:844Used by:846
Symbol 846 MovieClipUses:825 826 831 832 349 833 834 836 838 840 841 354 356 358 842 361 843 365 845Used by:855
Symbol 847 GraphicUsed by:850
Symbol 848 EditableTextUses:61Used by:850
Symbol 849 GraphicUsed by:850
Symbol 850 MovieClipUses:847 848 849Used by:855
Symbol 851 TextUses:61Used by:853
Symbol 852 TextUses:61Used by:853
Symbol 853 ButtonUses:643 851 252 852 296Used by:854
Symbol 854 MovieClipUses:251 642 646 853Used by:855
Symbol 855 MovieClip [sidebar]Uses:672 694 714 715 738 743 747 751 752 753 754 756 757 758 759 764 766 767 768 769 770 804 808 812 816 820 824 846 850 622 854Used by:Timeline
Symbol 856 GraphicUsed by:858
Symbol 857 GraphicUsed by:858
Symbol 858 MovieClip [patriot]Uses:856 243 857Used by:Timeline
Symbol 859 GraphicUsed by:860
Symbol 860 MovieClipUses:859Used by:864 878
Symbol 861 GraphicUsed by:864
Symbol 862 GraphicUsed by:864
Symbol 863 GraphicUsed by:864
Symbol 864 MovieClip [shell2]Uses:860 861 862 863Used by:Timeline
Symbol 865 MovieClip [emp]Uses:155 156 494 495Used by:Timeline
Symbol 866 GraphicUsed by:870 874
Symbol 867 GraphicUsed by:870
Symbol 868 GraphicUsed by:870
Symbol 869 GraphicUsed by:870
Symbol 870 MovieClip [bomb2]Uses:866 867 868 869Used by:Timeline
Symbol 871 GraphicUsed by:874
Symbol 872 GraphicUsed by:874
Symbol 873 GraphicUsed by:874
Symbol 874 MovieClip [bomb]Uses:866 871 872 873Used by:Timeline
Symbol 875 GraphicUsed by:878
Symbol 876 GraphicUsed by:878
Symbol 877 GraphicUsed by:878
Symbol 878 MovieClip [bullet]Uses:860 875 876 877Used by:Timeline
Symbol 879 GraphicUsed by:882
Symbol 880 GraphicUsed by:882
Symbol 881 GraphicUsed by:882
Symbol 882 MovieClip [missile]Uses:879 243 880 881Used by:Timeline
Symbol 883 GraphicUsed by:886
Symbol 884 GraphicUsed by:885
Symbol 885 MovieClipUses:884Used by:886 895 898
Symbol 886 MovieClip [flag2]Uses:883 885Used by:Timeline
Symbol 887 GraphicUsed by:892
Symbol 888 GraphicUsed by:890
Symbol 889 GraphicUsed by:890
Symbol 890 MovieClipUses:888 889Used by:892
Symbol 891 GraphicUsed by:892
Symbol 892 MovieClip [shell]Uses:887 890 891Used by:Timeline
Symbol 893 GraphicUsed by:895
Symbol 894 GraphicUsed by:895
Symbol 895 MovieClip [flag]Uses:893 885 894Used by:Timeline
Symbol 896 GraphicUsed by:898
Symbol 897 GraphicUsed by:898
Symbol 898 MovieClip [flag copy]Uses:896 885 897Used by:Timeline
Symbol 903 GraphicUsed by:904
Symbol 904 MovieClip [BoundingBox]Uses:903Used by:923 927 931
Symbol 905 GraphicUsed by:906
Symbol 906 MovieClip [BrdrShdw]Uses:905Used by:909 914 915
Symbol 907 GraphicUsed by:908
Symbol 908 MovieClip [BrdrFace]Uses:907Used by:909 914 915
Symbol 909 MovieClip [SimpleButtonDown]Uses:906 908Used by:927
Symbol 910 GraphicUsed by:911
Symbol 911 MovieClip [BrdrBlk]Uses:910Used by:914 915
Symbol 912 GraphicUsed by:913
Symbol 913 MovieClip [BrdrHilght]Uses:912Used by:914 915
Symbol 914 MovieClip [SimpleButtonIn]Uses:911 913 906 908Used by:927
Symbol 915 MovieClip [SimpleButtonUp]Uses:911 908 906 913Used by:927
Symbol 916 MovieClip [Defaults]Used by:918
Symbol 917 MovieClip [UIObjectExtensions]Used by:918
Symbol 918 MovieClip [UIObject]Uses:916 917Used by:924 926 928
Symbol 919 GraphicUsed by:921
Symbol 920 GraphicUsed by:921
Symbol 921 ButtonUses:919 920Used by:924
Symbol 922 MovieClipUsed by:924
Symbol 923 MovieClip [FocusRect]Uses:904Used by:924
Symbol 924 MovieClip [FocusManager]Uses:921 922 923 918Used by:926
Symbol 925 MovieClip [UIComponentExtensions]Used by:926
Symbol 926 MovieClip [UIComponent]Uses:918 924 925Used by:927
Symbol 927 MovieClip [SimpleButton]Uses:904 909 914 915 926Used by:931
Symbol 928 MovieClip [Border]Uses:918Used by:929 931
Symbol 929 MovieClip [RectBorder]Uses:928Used by:931
Symbol 930 MovieClip [ButtonSkin]Used by:931
Symbol 931 MovieClip [Button]Uses:904 927 928 929 930
Symbol 952 GraphicUsed by:Timeline
Symbol 953 GraphicUsed by:1026
Symbol 954 GraphicUsed by:1026
Symbol 955 GraphicUsed by:956
Symbol 956 MovieClipUses:955Used by:1026
Symbol 957 GraphicUsed by:959
Symbol 958 GraphicUsed by:959
Symbol 959 MovieClipUses:957 958Used by:1026
Symbol 960 GraphicUsed by:1026
Symbol 961 GraphicUsed by:1026
Symbol 962 GraphicUsed by:1026
Symbol 963 GraphicUsed by:970 998
Symbol 964 GraphicUsed by:970 998
Symbol 965 GraphicUsed by:970 998
Symbol 966 GraphicUsed by:970 998
Symbol 967 GraphicUsed by:970 998
Symbol 968 GraphicUsed by:970 998
Symbol 969 GraphicUsed by:970 998
Symbol 970 MovieClipUses:963 964 965 966 967 968 969Used by:1026
Symbol 971 GraphicUsed by:1026
Symbol 972 GraphicUsed by:973
Symbol 973 MovieClipUses:972Used by:1026
Symbol 974 GraphicUsed by:975
Symbol 975 MovieClipUses:974Used by:1026
Symbol 976 GraphicUsed by:980
Symbol 977 GraphicUsed by:980
Symbol 978 GraphicUsed by:979
Symbol 979 MovieClipUses:978Used by:980 983
Symbol 980 MovieClipUses:976 977 979Used by:994
Symbol 981 GraphicUsed by:983
Symbol 982 GraphicUsed by:983
Symbol 983 MovieClipUses:981 982 979Used by:994
Symbol 984 GraphicUsed by:987
Symbol 985 GraphicUsed by:987 990
Symbol 986 GraphicUsed by:987
Symbol 987 MovieClipUses:984 985 986Used by:991
Symbol 988 GraphicUsed by:990
Symbol 989 GraphicUsed by:990
Symbol 990 MovieClipUses:988 985 989Used by:991
Symbol 991 MovieClipUses:987 990Used by:994
Symbol 992 GraphicUsed by:993
Symbol 993 MovieClipUses:992Used by:994
Symbol 994 MovieClipUses:980 983 991 993Used by:1026
Symbol 995 GraphicUsed by:1026
Symbol 996 ButtonUses:606Used by:1026
Symbol 997 GraphicUsed by:998
Symbol 998 MovieClipUses:963 964 965 966 967 968 969 997Used by:1026
Symbol 999 GraphicUsed by:1026
Symbol 1000 GraphicUsed by:1026
Symbol 1001 GraphicUsed by:1026
Symbol 1002 GraphicUsed by:1026
Symbol 1003 GraphicUsed by:1026
Symbol 1004 GraphicUsed by:1026
Symbol 1005 GraphicUsed by:1026
Symbol 1006 GraphicUsed by:1026
Symbol 1007 GraphicUsed by:1026
Symbol 1008 GraphicUsed by:1026
Symbol 1009 GraphicUsed by:1026
Symbol 1010 GraphicUsed by:1026
Symbol 1011 ShapeTweeningUsed by:1026
Symbol 1012 GraphicUsed by:1026
Symbol 1013 ShapeTweeningUsed by:1026
Symbol 1014 ShapeTweeningUsed by:1026
Symbol 1015 GraphicUsed by:1026
Symbol 1016 GraphicUsed by:1024 1025
Symbol 1017 GraphicUsed by:1024 1025
Symbol 1018 GraphicUsed by:1024 1025
Symbol 1019 GraphicUsed by:1024 1025
Symbol 1020 GraphicUsed by:1024 1025
Symbol 1021 GraphicUsed by:1023
Symbol 1022 GraphicUsed by:1023
Symbol 1023 MovieClipUses:1021 1022Used by:1024 1025
Symbol 1024 ButtonUses:1016 1017 1018 1019 1020 1023Used by:1026
Symbol 1025 ButtonUses:1016 1017 1018 1019 1020 1023Used by:1026
Symbol 1026 MovieClipUses:953 954 956 959 960 961 962 970 971 973 975 994 995 996 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1024 1025Used by:Timeline
Symbol 899 MovieClip [__Packages.mx.core.UIObject]
Symbol 900 MovieClip [__Packages.mx.core.UIComponent]
Symbol 901 MovieClip [__Packages.mx.controls.SimpleButton]
Symbol 902 MovieClip [__Packages.mx.controls.Button]
Symbol 932 MovieClip [__Packages.mx.skins.SkinElement]
Symbol 933 MovieClip [__Packages.mx.styles.CSSTextStyles]
Symbol 934 MovieClip [__Packages.mx.styles.StyleManager]
Symbol 935 MovieClip [__Packages.mx.styles.CSSStyleDeclaration]
Symbol 936 MovieClip [__Packages.mx.events.EventDispatcher]
Symbol 937 MovieClip [__Packages.mx.events.UIEventDispatcher]
Symbol 938 MovieClip [__Packages.mx.skins.ColoredSkinElement]
Symbol 939 MovieClip [__Packages.mx.core.ext.UIObjectExtensions]
Symbol 940 MovieClip [__Packages.mx.skins.halo.Defaults]
Symbol 941 MovieClip [__Packages.mx.managers.DepthManager]
Symbol 942 MovieClip [__Packages.mx.managers.SystemManager]
Symbol 943 MovieClip [__Packages.mx.managers.FocusManager]
Symbol 944 MovieClip [__Packages.mx.skins.halo.FocusRect]
Symbol 945 MovieClip [__Packages.mx.managers.OverlappedWindows]
Symbol 946 MovieClip [__Packages.mx.styles.CSSSetStyle]
Symbol 947 MovieClip [__Packages.mx.core.ext.UIComponentExtensions]
Symbol 948 MovieClip [__Packages.mx.skins.Border]
Symbol 949 MovieClip [__Packages.mx.skins.RectBorder]
Symbol 950 MovieClip [__Packages.mx.skins.halo.RectBorder]
Symbol 951 MovieClip [__Packages.mx.skins.halo.ButtonSkin]
Symbol 1027 GraphicUses:342Used by:1028
Symbol 1028 MovieClipUses:1027Used by:Timeline
Symbol 1029 GraphicUsed by:1031
Symbol 1030 GraphicUsed by:1031
Symbol 1031 MovieClipUses:1029 1030Used by:Timeline
Symbol 1032 GraphicUsed by:1034
Symbol 1033 GraphicUsed by:1034
Symbol 1034 MovieClipUses:1032 1033Used by:Timeline
Symbol 1035 GraphicUsed by:1036
Symbol 1036 MovieClipUses:1035Used by:Timeline
Symbol 1037 GraphicUses:342 341 340Used by:1040
Symbol 1038 GraphicUses:342 340 341 343Used by:1039
Symbol 1039 MovieClipUses:1038Used by:1040
Symbol 1040 MovieClipUses:1037 1039 830Used by:Timeline
Symbol 1041 EditableTextUses:61Used by:Timeline
Symbol 1042 EditableTextUses:61Used 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:1051
Symbol 1049 GraphicUsed by:1050
Symbol 1050 MovieClipUses:1049Used by:1051
Symbol 1051 MovieClipUses:1048 1050Used by:Timeline
Symbol 1052 GraphicUsed by:1058
Symbol 1053 GraphicUsed by:1058
Symbol 1054 GraphicUsed by:1058
Symbol 1055 GraphicUsed by:1058
Symbol 1056 GraphicUsed by:1058
Symbol 1057 GraphicUsed by:1058
Symbol 1058 MovieClipUses:1052 1053 1054 1055 1056 1057Used by:Timeline
Symbol 1059 ButtonUses:602 603 373Used by:1060
Symbol 1060 MovieClipUses:1059Used by:Timeline
Symbol 1061 GraphicUsed by:1062
Symbol 1062 MovieClipUses:1061Used by:Timeline
Symbol 1063 GraphicUsed by:1064
Symbol 1064 MovieClipUses:1063Used by:Timeline
Symbol 1065 GraphicUsed by:1066
Symbol 1066 MovieClipUses:1065Used by:Timeline
Symbol 1067 GraphicUsed by:1068
Symbol 1068 MovieClipUses:1067Used by:Timeline
Symbol 1069 GraphicUsed by:Timeline
Symbol 1070 GraphicUsed by:Timeline
Symbol 1071 FontUsed by:1072 1073 1084 1122 1123 1124 1125
Symbol 1072 TextUses:1071Used by:Timeline
Symbol 1073 TextUses:1071Used by:Timeline
Symbol 1074 FontUsed by:1075 1076 1077 1078 1079 1080 1081 1082 1085 1086 1087 1088 1189 1190 1191 1192
Symbol 1075 TextUses:1074Used by:Timeline
Symbol 1076 TextUses:1074Used by:Timeline
Symbol 1077 TextUses:1074Used by:Timeline
Symbol 1078 EditableTextUses:1074Used by:Timeline
Symbol 1079 EditableTextUses:1074Used by:Timeline
Symbol 1080 EditableTextUses:1074Used by:Timeline
Symbol 1081 TextUses:1074Used by:Timeline
Symbol 1082 EditableTextUses:1074Used by:Timeline
Symbol 1083 GraphicUsed by:Timeline
Symbol 1084 TextUses:1071Used by:Timeline
Symbol 1085 EditableTextUses:1074Used by:Timeline
Symbol 1086 EditableTextUses:1074Used by:Timeline
Symbol 1087 EditableTextUses:1074Used by:Timeline
Symbol 1088 EditableTextUses:1074Used by:Timeline
Symbol 1089 GraphicUses:340Used by:1092 1155
Symbol 1090 GraphicUsed by:1091
Symbol 1091 MovieClipUses:1090Used by:1092
Symbol 1092 MovieClipUses:1089 349 830 354 356 358 1091Used by:Timeline
Symbol 1093 GraphicUsed by:Timeline
Symbol 1094 GraphicUsed by:Timeline
Symbol 1095 GraphicUses:340Used by:1097
Symbol 1096 GraphicUses:343 342 341Used by:1097
Symbol 1097 MovieClipUses:1095 349 830 1096Used by:Timeline
Symbol 1098 GraphicUsed by:Timeline
Symbol 1099 GraphicUses:340 343 342Used by:1102
Symbol 1100 GraphicUses:341 342 343 340Used by:1101
Symbol 1101 MovieClipUses:1100Used by:1102
Symbol 1102 MovieClipUses:1099 1101 830Used by:Timeline
Symbol 1103 GraphicUsed by:Timeline
Symbol 1104 GraphicUses:340Used by:1108 1187
Symbol 1105 GraphicUses:340 363 343 342Used by:1108
Symbol 1106 GraphicUses:352Used by:1107
Symbol 1107 MovieClipUses:1106Used by:1108
Symbol 1108 MovieClipUses:1104 349 830 1105 1107Used by:Timeline
Symbol 1109 GraphicUses:342 340 341 343Used by:1110
Symbol 1110 MovieClipUses:827 349 1109 830Used by:Timeline
Symbol 1111 GraphicUsed by:Timeline
Symbol 1112 EditableTextUses:61Used by:Timeline
Symbol 1113 GraphicUsed by:Timeline
Symbol 1114 EditableTextUses:61Used by:Timeline
Symbol 1115 GraphicUsed by:Timeline
Symbol 1116 GraphicUsed by:1117
Symbol 1117 MovieClipUses:1116 47Used by:Timeline
Symbol 1118 GraphicUsed by:1121
Symbol 1119 FontUsed by:1120
Symbol 1120 EditableTextUses:1119Used by:1121
Symbol 1121 MovieClipUses:1118 1120Used by:Timeline
Symbol 1122 TextUses:1071Used by:1237  Timeline
Symbol 1123 TextUses:1071Used by:Timeline
Symbol 1124 TextUses:1071Used by:Timeline
Symbol 1125 TextUses:1071Used by:Timeline
Symbol 1126 GraphicUsed by:Timeline
Symbol 1127 GraphicUsed by:Timeline
Symbol 1128 GraphicUses:342 363 340 341 352 343Used by:1131
Symbol 1129 GraphicUsed by:1130
Symbol 1130 MovieClipUses:1129Used by:1131
Symbol 1131 MovieClipUses:1128 1130Used by:Timeline
Symbol 1132 GraphicUses:105Used by:Timeline
Symbol 1133 GraphicUsed by:1135 1138 1140 1141
Symbol 1134 GraphicUsed by:1135 1138 1140 1141
Symbol 1135 ButtonUses:1133 1134Used by:1139
Symbol 1136 GraphicUsed by:1137
Symbol 1137 MovieClipUses:1136Used by:1139 1142
Symbol 1138 ButtonUses:1133 1134Used by:1139
Symbol 1139 MovieClipUses:1135 1137 1138Used by:Timeline
Symbol 1140 ButtonUses:1133 1134Used by:1142
Symbol 1141 ButtonUses:1133 1134Used by:1142
Symbol 1142 MovieClipUses:1140 1137 1141Used by:Timeline
Symbol 1143 GraphicUsed by:1151
Symbol 1144 FontUsed by:1145 1150
Symbol 1145 TextUses:1144Used by:1151
Symbol 1146 GraphicUsed by:1151
Symbol 1147 GraphicUsed by:1151
Symbol 1148 FontUsed by:1149
Symbol 1149 TextUses:1148Used by:1151
Symbol 1150 TextUses:1144Used by:1151
Symbol 1151 MovieClipUses:1143 1145 1146 1147 1149 1150Used by:Timeline
Symbol 1152 GraphicUsed by:1155
Symbol 1153 GraphicUsed by:1154
Symbol 1154 MovieClipUses:1153Used by:1155
Symbol 1155 MovieClipUses:1089 349 1152 836 830 838 840 1154Used by:Timeline
Symbol 1156 GraphicUsed by:1157
Symbol 1157 MovieClipUses:1156 151 34 150 45 47 27 13 28 29 30 31Used by:Timeline
Symbol 1158 GraphicUsed by:1159
Symbol 1159 MovieClipUses:1158 45 47 34 457 195 27 28 29 30 31Used by:Timeline
Symbol 1160 GraphicUsed by:1161
Symbol 1161 MovieClipUses:1160 34 457 458 45 47 27 28 29 30 31Used by:Timeline
Symbol 1162 GraphicUsed by:1163
Symbol 1163 MovieClipUses:1162 34 457 458 45 47 27 28 29 30 31Used by:Timeline
Symbol 1164 EditableTextUses:61Used by:Timeline
Symbol 1165 EditableTextUses:61Used by:Timeline
Symbol 1166 TextUses:61Used by:1167
Symbol 1167 MovieClipUses:58 1166 60 69Used by:Timeline
Symbol 1168 GraphicUses:340Used by:1172
Symbol 1169 GraphicUses:342Used by:1172
Symbol 1170 GraphicUses:352Used by:1171
Symbol 1171 MovieClipUses:1170Used by:1172
Symbol 1172 MovieClipUses:1168 349 830 1169 1171Used by:Timeline
Symbol 1173 GraphicUsed by:1174
Symbol 1174 MovieClipUses:1173 34 195 45 47 27 28 29 30 31Used by:Timeline
Symbol 1175 GraphicUses:340Used by:1179
Symbol 1176 GraphicUses:343 352 341 342 340Used by:1179
Symbol 1177 GraphicUses:352Used by:1178
Symbol 1178 MovieClipUses:1177Used by:1179
Symbol 1179 MovieClipUses:1175 349 830 1176 1178Used by:Timeline
Symbol 1180 GraphicUsed by:1181
Symbol 1181 MovieClipUses:1180 34 458 45 47 27 28 29 30 31Used by:Timeline
Symbol 1182 GraphicUsed by:1185
Symbol 1183 TextUses:61Used by:1185
Symbol 1184 GraphicUsed by:1185
Symbol 1185 MovieClipUses:1182 1183 1184 34 457 195 45 47 27 28 29 30 31Used by:Timeline
Symbol 1186 GraphicUses:363 342 340 341Used by:1187
Symbol 1187 MovieClipUses:1104 349 830 1186Used by:Timeline
Symbol 1188 GraphicUsed by:Timeline
Symbol 1189 EditableTextUses:1074Used by:Timeline
Symbol 1190 EditableTextUses:1074Used by:Timeline
Symbol 1191 EditableTextUses:1074Used by:Timeline
Symbol 1192 EditableTextUses:1074Used by:Timeline
Symbol 1193 EditableTextUses:61Used by:Timeline
Symbol 1194 EditableTextUses:61Used by:Timeline
Symbol 1195 GraphicUsed by:Timeline
Symbol 1196 GraphicUsed by:1236
Symbol 1197 TextUses:61Used by:1236 1269 1308
Symbol 1198 TextUses:61Used by:1236
Symbol 1199 GraphicUsed by:1236
Symbol 1200 TextUses:61Used by:1236
Symbol 1201 TextUses:61Used by:1236
Symbol 1202 TextUses:61Used by:1236
Symbol 1203 TextUses:61Used by:1236
Symbol 1204 TextUses:61Used by:1236
Symbol 1205 TextUses:61Used by:1236
Symbol 1206 GraphicUsed by:1236
Symbol 1207 TextUses:61Used by:1236
Symbol 1208 TextUses:61Used by:1236
Symbol 1209 TextUses:61Used by:1236
Symbol 1210 TextUses:61Used by:1236
Symbol 1211 TextUses:61Used by:1236
Symbol 1212 GraphicUsed by:1236
Symbol 1213 TextUses:61Used by:1236
Symbol 1214 TextUses:61Used by:1236
Symbol 1215 TextUses:61Used by:1236
Symbol 1216 TextUses:61Used by:1236
Symbol 1217 GraphicUsed by:1236
Symbol 1218 TextUses:61Used by:1236
Symbol 1219 TextUses:61Used by:1236
Symbol 1220 TextUses:61Used by:1236
Symbol 1221 GraphicUsed by:1236
Symbol 1222 TextUses:61Used by:1236
Symbol 1223 GraphicUsed by:1236 1269 1308
Symbol 1224 TextUses:61Used by:1236
Symbol 1225 TextUses:61Used by:1236
Symbol 1226 GraphicUsed by:1236
Symbol 1227 TextUses:61Used by:1236
Symbol 1228 TextUses:61Used by:1236
Symbol 1229 TextUses:61Used by:1236
Symbol 1230 TextUses:61Used by:1236
Symbol 1231 TextUses:61Used by:1236
Symbol 1232 ButtonUses:739 817 818 819Used by:1236
Symbol 1233 ButtonUses:739 813 814 815Used by:1236
Symbol 1234 ButtonUses:739 744 745 746Used by:1236
Symbol 1235 TextUses:61Used by:1236
Symbol 1236 MovieClipUses:1196 1197 1198 60 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 739 748 1230 1231 1232 1233 1234 1235Used by:Timeline
Symbol 1237 MovieClipUses:1122Used by:Timeline
Symbol 1238 TextUses:61Used by:Timeline
Symbol 1239 GraphicUsed by:Timeline
Symbol 1240 GraphicUsed by:1269 1308
Symbol 1241 GraphicUsed by:1269 1308
Symbol 1242 TextUses:61Used by:1269
Symbol 1243 TextUses:61Used by:1269
Symbol 1244 TextUses:61Used by:1269
Symbol 1245 TextUses:61Used by:1269
Symbol 1246 TextUses:61Used by:1269
Symbol 1247 TextUses:61Used by:1269
Symbol 1248 TextUses:61Used by:1269
Symbol 1249 TextUses:61Used by:1269
Symbol 1250 TextUses:61Used by:1269
Symbol 1251 TextUses:61Used by:1269
Symbol 1252 TextUses:61Used by:1269
Symbol 1253 TextUses:61Used by:1269
Symbol 1254 TextUses:61Used by:1269
Symbol 1255 TextUses:61Used by:1269
Symbol 1256 TextUses:61Used by:1269
Symbol 1257 TextUses:61Used by:1269
Symbol 1258 TextUses:61Used by:1269
Symbol 1259 TextUses:61Used by:1269
Symbol 1260 TextUses:61Used by:1269
Symbol 1261 GraphicUsed by:1269
Symbol 1262 TextUses:61Used by:1269
Symbol 1263 GraphicUsed by:1269
Symbol 1264 TextUses:61Used by:1269
Symbol 1265 TextUses:61Used by:1269
Symbol 1266 TextUses:61Used by:1269
Symbol 1267 TextUses:61Used by:1269 1308
Symbol 1268 TextUses:61Used by:1269
Symbol 1269 MovieClipUses:1240 1241 1197 1242 60 1223 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268Used by:Timeline
Symbol 1270 GraphicUsed by:Timeline
Symbol 1271 TextUses:61Used by:Timeline
Symbol 1272 GraphicUses:105Used by:Timeline
Symbol 1273 TextUses:61Used by:1308
Symbol 1274 TextUses:61Used by:1308
Symbol 1275 TextUses:61Used by:1308
Symbol 1276 TextUses:61Used by:1308
Symbol 1277 TextUses:61Used by:1308
Symbol 1278 TextUses:61Used by:1308
Symbol 1279 TextUses:61Used by:1308
Symbol 1280 GraphicUsed by:1308
Symbol 1281 TextUses:61Used by:1308
Symbol 1282 TextUses:61Used by:1308
Symbol 1283 TextUses:61Used by:1308
Symbol 1284 TextUses:61Used by:1308
Symbol 1285 TextUses:61Used by:1308
Symbol 1286 GraphicUsed by:1308
Symbol 1287 TextUses:61Used by:1308
Symbol 1288 TextUses:61Used by:1308
Symbol 1289 GraphicUsed by:1308
Symbol 1290 TextUses:61Used by:1308
Symbol 1291 TextUses:61Used by:1308
Symbol 1292 TextUses:61Used by:1308
Symbol 1293 TextUses:61Used by:1308
Symbol 1294 TextUses:61Used by:1308
Symbol 1295 TextUses:61Used by:1308
Symbol 1296 TextUses:61Used by:1308
Symbol 1297 GraphicUsed by:1308
Symbol 1298 TextUses:61Used by:1308
Symbol 1299 TextUses:61Used by:1308
Symbol 1300 TextUses:61Used by:1308
Symbol 1301 TextUses:61Used by:1308
Symbol 1302 TextUses:61Used by:1308
Symbol 1303 TextUses:61Used by:1308
Symbol 1304 GraphicUsed by:1308
Symbol 1305 TextUses:61Used by:1308
Symbol 1306 TextUses:61Used by:1308
Symbol 1307 TextUses:61Used by:1308
Symbol 1308 MovieClipUses:1240 1241 1197 1273 60 1223 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1267 1307Used by:Timeline

Instance Names

"back"Frame 2Symbol 1028 MovieClip
"comcentre1"Frame 2Symbol 1031 MovieClip
"reinforcement1"Frame 2Symbol 898 MovieClip [flag copy]
"reinforcement2"Frame 2Symbol 898 MovieClip [flag copy]
"reinforcement3"Frame 2Symbol 898 MovieClip [flag copy]
"reinforcement4"Frame 2Symbol 898 MovieClip [flag copy]
"reinforcement5"Frame 2Symbol 898 MovieClip [flag copy]
"reinforcement6"Frame 2Symbol 898 MovieClip [flag copy]
"reinforcement7"Frame 2Symbol 898 MovieClip [flag copy]
"reinforcement8"Frame 2Symbol 898 MovieClip [flag copy]
"reinforcement9"Frame 2Symbol 898 MovieClip [flag copy]
"reinforcement10"Frame 2Symbol 898 MovieClip [flag copy]
"centre"Frame 2Symbol 898 MovieClip [flag copy]
"centre1"Frame 2Symbol 895 MovieClip [flag]
"centre2"Frame 2Symbol 895 MovieClip [flag]
"flagn"Frame 2Symbol 898 MovieClip [flag copy]
"box5"Frame 9Symbol 671 MovieClip [box5]
"back"Frame 9Symbol 1040 MovieClip
"back"Frame 10Symbol 1040 MovieClip
"oil1"Frame 10Symbol 1051 MovieClip
"oil4"Frame 10Symbol 1051 MovieClip
"oil5"Frame 10Symbol 1051 MovieClip
"oil2"Frame 10Symbol 1051 MovieClip
"oil3"Frame 10Symbol 1051 MovieClip
"oil6"Frame 10Symbol 1051 MovieClip
"rig6"Frame 10Symbol 1058 MovieClip
"servpt"Frame 10Symbol 898 MovieClip [flag copy]
"warpt"Frame 10Symbol 898 MovieClip [flag copy]
"refpt"Frame 10Symbol 898 MovieClip [flag copy]
"comcentrept"Frame 10Symbol 898 MovieClip [flag copy]
"waypoint4"Frame 10Symbol 898 MovieClip [flag copy]
"techpt"Frame 10Symbol 898 MovieClip [flag copy]
"turretpt2"Frame 10Symbol 898 MovieClip [flag copy]
"turretpt3"Frame 10Symbol 898 MovieClip [flag copy]
"turretpt1"Frame 10Symbol 898 MovieClip [flag copy]
"turretpt5"Frame 10Symbol 898 MovieClip [flag copy]
"turretpt4"Frame 10Symbol 898 MovieClip [flag copy]
"minept0"Frame 10Symbol 898 MovieClip [flag copy]
"minept1"Frame 10Symbol 898 MovieClip [flag copy]
"minept2"Frame 10Symbol 898 MovieClip [flag copy]
"waypoint100"Frame 10Symbol 898 MovieClip [flag copy]
"waypoint101"Frame 10Symbol 898 MovieClip [flag copy]
"waypoint102"Frame 10Symbol 898 MovieClip [flag copy]
"waypoint103"Frame 10Symbol 898 MovieClip [flag copy]
"waypoint104"Frame 10Symbol 898 MovieClip [flag copy]
"waypoint105"Frame 10Symbol 898 MovieClip [flag copy]
"silopt"Frame 10Symbol 898 MovieClip [flag copy]
"rig10"Frame 10Symbol 1058 MovieClip
"rig11"Frame 10Symbol 1058 MovieClip
"rig12"Frame 10Symbol 1058 MovieClip
"rig19"Frame 10Symbol 1058 MovieClip
"rig122"Frame 10Symbol 1058 MovieClip
"waypoint106"Frame 10Symbol 898 MovieClip [flag copy]
"attackpt"Frame 10Symbol 898 MovieClip [flag copy]
"turretpt6"Frame 10Symbol 898 MovieClip [flag copy]
"turretpt7"Frame 10Symbol 898 MovieClip [flag copy]
"turretpt8"Frame 10Symbol 898 MovieClip [flag copy]
"turretpt9"Frame 10Symbol 898 MovieClip [flag copy]
"minept4"Frame 10Symbol 898 MovieClip [flag copy]
"minept3"Frame 10Symbol 898 MovieClip [flag copy]
"burton"Frame 10Symbol 1060 MovieClip
"rallypoint"Frame 10Symbol 1062 MovieClip
"attackpt1"Frame 10Symbol 898 MovieClip [flag copy]
"attackpt2"Frame 10Symbol 898 MovieClip [flag copy]
"attackpt3"Frame 10Symbol 898 MovieClip [flag copy]
"waypoint44"Frame 10Symbol 898 MovieClip [flag copy]
"box"Frame 10Symbol 1064 MovieClip
"ai"Frame 10Symbol 1066 MovieClip
"rallypoint"Frame 11Symbol 1062 MovieClip
"attackpt1"Frame 11Symbol 898 MovieClip [flag copy]
"attackpt2"Frame 11Symbol 898 MovieClip [flag copy]
"attackpt3"Frame 11Symbol 898 MovieClip [flag copy]
"box5"Frame 13Symbol 671 MovieClip [box5]
"back"Frame 13Symbol 1092 MovieClip
"back"Frame 14Symbol 1092 MovieClip
"oil1"Frame 14Symbol 1051 MovieClip
"oil3"Frame 14Symbol 1051 MovieClip
"oil2"Frame 14Symbol 1051 MovieClip
"burton"Frame 14Symbol 1060 MovieClip
"waypoint44"Frame 14Symbol 898 MovieClip [flag copy]
"flag4"Frame 14Symbol 898 MovieClip [flag copy]
"refpt"Frame 14Symbol 898 MovieClip [flag copy]
"techpt"Frame 14Symbol 898 MovieClip [flag copy]
"silopt"Frame 14Symbol 898 MovieClip [flag copy]
"turretpt1"Frame 14Symbol 898 MovieClip [flag copy]
"turretpt2"Frame 14Symbol 898 MovieClip [flag copy]
"turretpt3"Frame 14Symbol 898 MovieClip [flag copy]
"turretpt4"Frame 14Symbol 898 MovieClip [flag copy]
"turretpt5"Frame 14Symbol 898 MovieClip [flag copy]
"turretpt6"Frame 14Symbol 898 MovieClip [flag copy]
"turretpt7"Frame 14Symbol 898 MovieClip [flag copy]
"turretpt8"Frame 14Symbol 898 MovieClip [flag copy]
"turretpt9"Frame 14Symbol 898 MovieClip [flag copy]
"comcentrept"Frame 14Symbol 898 MovieClip [flag copy]
"warpt"Frame 14Symbol 898 MovieClip [flag copy]
"rig19"Frame 14Symbol 1058 MovieClip
"minept0"Frame 14Symbol 898 MovieClip [flag copy]
"minept1"Frame 14Symbol 898 MovieClip [flag copy]
"minept2"Frame 14Symbol 898 MovieClip [flag copy]
"minept3"Frame 14Symbol 898 MovieClip [flag copy]
"minept4"Frame 14Symbol 898 MovieClip [flag copy]
"rallypoint"Frame 14Symbol 1062 MovieClip
"box"Frame 14Symbol 1064 MovieClip
"waypoint100"Frame 14Symbol 898 MovieClip [flag copy]
"waypoint101"Frame 14Symbol 898 MovieClip [flag copy]
"waypoint102"Frame 14Symbol 898 MovieClip [flag copy]
"waypoint103"Frame 14Symbol 898 MovieClip [flag copy]
"waypoint104"Frame 14Symbol 898 MovieClip [flag copy]
"waypoint105"Frame 14Symbol 898 MovieClip [flag copy]
"attackpt1"Frame 14Symbol 898 MovieClip [flag copy]
"attackpt2"Frame 14Symbol 898 MovieClip [flag copy]
"attackpt3"Frame 14Symbol 898 MovieClip [flag copy]
"ai"Frame 14Symbol 1066 MovieClip
"box5"Frame 15Symbol 671 MovieClip [box5]
"back"Frame 15Symbol 1097 MovieClip
"back"Frame 16Symbol 1097 MovieClip
"oil122"Frame 16Symbol 1051 MovieClip
"oil1"Frame 16Symbol 1051 MovieClip
"oil2"Frame 16Symbol 1051 MovieClip
"oil3"Frame 16Symbol 1051 MovieClip
"servpt"Frame 16Symbol 898 MovieClip [flag copy]
"warpt"Frame 16Symbol 898 MovieClip [flag copy]
"refpt"Frame 16Symbol 898 MovieClip [flag copy]
"comcentrept"Frame 16Symbol 898 MovieClip [flag copy]
"waypoint4"Frame 16Symbol 898 MovieClip [flag copy]
"techpt"Frame 16Symbol 898 MovieClip [flag copy]
"turretpt2"Frame 16Symbol 898 MovieClip [flag copy]
"turretpt3"Frame 16Symbol 898 MovieClip [flag copy]
"turretpt1"Frame 16Symbol 898 MovieClip [flag copy]
"turretpt5"Frame 16Symbol 898 MovieClip [flag copy]
"turretpt4"Frame 16Symbol 898 MovieClip [flag copy]
"minept0"Frame 16Symbol 898 MovieClip [flag copy]
"minept1"Frame 16Symbol 898 MovieClip [flag copy]
"minept2"Frame 16Symbol 898 MovieClip [flag copy]
"waypoint100"Frame 16Symbol 898 MovieClip [flag copy]
"waypoint101"Frame 16Symbol 898 MovieClip [flag copy]
"waypoint102"Frame 16Symbol 898 MovieClip [flag copy]
"waypoint103"Frame 16Symbol 898 MovieClip [flag copy]
"waypoint104"Frame 16Symbol 898 MovieClip [flag copy]
"waypoint105"Frame 16Symbol 898 MovieClip [flag copy]
"silopt"Frame 16Symbol 898 MovieClip [flag copy]
"rig10"Frame 16Symbol 1058 MovieClip
"rig11"Frame 16Symbol 1058 MovieClip
"rig19"Frame 16Symbol 1058 MovieClip
"waypoint106"Frame 16Symbol 898 MovieClip [flag copy]
"rig1"Frame 16Symbol 1058 MovieClip
"turretpt6"Frame 16Symbol 898 MovieClip [flag copy]
"turretpt7"Frame 16Symbol 898 MovieClip [flag copy]
"turretpt8"Frame 16Symbol 898 MovieClip [flag copy]
"turretpt9"Frame 16Symbol 898 MovieClip [flag copy]
"minept4"Frame 16Symbol 898 MovieClip [flag copy]
"minept3"Frame 16Symbol 898 MovieClip [flag copy]
"minept5"Frame 16Symbol 898 MovieClip [flag copy]
"minept6"Frame 16Symbol 898 MovieClip [flag copy]
"attackpt1"Frame 16Symbol 898 MovieClip [flag copy]
"attackpt2"Frame 16Symbol 898 MovieClip [flag copy]
"attackpt3"Frame 16Symbol 898 MovieClip [flag copy]
"burton"Frame 16Symbol 1060 MovieClip
"rallypoint"Frame 16Symbol 1062 MovieClip
"waypoint44"Frame 16Symbol 898 MovieClip [flag copy]
"box"Frame 16Symbol 1064 MovieClip
"ai"Frame 16Symbol 1066 MovieClip
"box5"Frame 17Symbol 671 MovieClip [box5]
"back"Frame 17Symbol 1102 MovieClip
"back"Frame 18Symbol 1102 MovieClip
"oil1"Frame 18Symbol 1051 MovieClip
"oil3"Frame 18Symbol 1051 MovieClip
"servpt"Frame 18Symbol 898 MovieClip [flag copy]
"warpt"Frame 18Symbol 898 MovieClip [flag copy]
"refpt"Frame 18Symbol 898 MovieClip [flag copy]
"comcentrept"Frame 18Symbol 898 MovieClip [flag copy]
"waypoint4"Frame 18Symbol 898 MovieClip [flag copy]
"techpt"Frame 18Symbol 898 MovieClip [flag copy]
"turretpt2"Frame 18Symbol 898 MovieClip [flag copy]
"turretpt3"Frame 18Symbol 898 MovieClip [flag copy]
"turretpt1"Frame 18Symbol 898 MovieClip [flag copy]
"turretpt5"Frame 18Symbol 898 MovieClip [flag copy]
"turretpt4"Frame 18Symbol 898 MovieClip [flag copy]
"minept0"Frame 18Symbol 898 MovieClip [flag copy]
"minept1"Frame 18Symbol 898 MovieClip [flag copy]
"minept2"Frame 18Symbol 898 MovieClip [flag copy]
"waypoint100"Frame 18Symbol 898 MovieClip [flag copy]
"waypoint101"Frame 18Symbol 898 MovieClip [flag copy]
"waypoint102"Frame 18Symbol 898 MovieClip [flag copy]
"waypoint103"Frame 18Symbol 898 MovieClip [flag copy]
"waypoint104"Frame 18Symbol 898 MovieClip [flag copy]
"waypoint105"Frame 18Symbol 898 MovieClip [flag copy]
"silopt"Frame 18Symbol 898 MovieClip [flag copy]
"rig10"Frame 18Symbol 1058 MovieClip
"rig19"Frame 18Symbol 1058 MovieClip
"waypoint106"Frame 18Symbol 898 MovieClip [flag copy]
"turretpt6"Frame 18Symbol 898 MovieClip [flag copy]
"turretpt7"Frame 18Symbol 898 MovieClip [flag copy]
"turretpt8"Frame 18Symbol 898 MovieClip [flag copy]
"turretpt9"Frame 18Symbol 898 MovieClip [flag copy]
"minept4"Frame 18Symbol 898 MovieClip [flag copy]
"minept3"Frame 18Symbol 898 MovieClip [flag copy]
"minept5"Frame 18Symbol 898 MovieClip [flag copy]
"minept6"Frame 18Symbol 898 MovieClip [flag copy]
"attackpt1"Frame 18Symbol 898 MovieClip [flag copy]
"attackpt2"Frame 18Symbol 898 MovieClip [flag copy]
"attackpt3"Frame 18Symbol 898 MovieClip [flag copy]
"burton"Frame 18Symbol 1060 MovieClip
"rallypoint"Frame 18Symbol 1062 MovieClip
"waypoint44"Frame 18Symbol 898 MovieClip [flag copy]
"box"Frame 18Symbol 1064 MovieClip
"waypoint44"Frame 18Symbol 898 MovieClip [flag copy]
"waypoint44"Frame 18Symbol 898 MovieClip [flag copy]
"waypoint44"Frame 18Symbol 898 MovieClip [flag copy]
"waypoint44"Frame 18Symbol 898 MovieClip [flag copy]
"waypoint44"Frame 18Symbol 898 MovieClip [flag copy]
"waypoint44"Frame 18Symbol 898 MovieClip [flag copy]
"waypoint44"Frame 18Symbol 898 MovieClip [flag copy]
"ai"Frame 18Symbol 1066 MovieClip
"box5"Frame 19Symbol 671 MovieClip [box5]
"back"Frame 19Symbol 1108 MovieClip
"back"Frame 20Symbol 1108 MovieClip
"oil1"Frame 20Symbol 1051 MovieClip
"servpt"Frame 20Symbol 898 MovieClip [flag copy]
"warpt"Frame 20Symbol 898 MovieClip [flag copy]
"refpt"Frame 20Symbol 898 MovieClip [flag copy]
"comcentrept"Frame 20Symbol 898 MovieClip [flag copy]
"techpt"Frame 20Symbol 898 MovieClip [flag copy]
"turretpt2"Frame 20Symbol 898 MovieClip [flag copy]
"turretpt3"Frame 20Symbol 898 MovieClip [flag copy]
"turretpt1"Frame 20Symbol 898 MovieClip [flag copy]
"turretpt5"Frame 20Symbol 898 MovieClip [flag copy]
"turretpt4"Frame 20Symbol 898 MovieClip [flag copy]
"minept0"Frame 20Symbol 898 MovieClip [flag copy]
"minept1"Frame 20Symbol 898 MovieClip [flag copy]
"minept2"Frame 20Symbol 898 MovieClip [flag copy]
"waypoint100"Frame 20Symbol 898 MovieClip [flag copy]
"waypoint101"Frame 20Symbol 898 MovieClip [flag copy]
"waypoint102"Frame 20Symbol 898 MovieClip [flag copy]
"waypoint103"Frame 20Symbol 898 MovieClip [flag copy]
"waypoint104"Frame 20Symbol 898 MovieClip [flag copy]
"waypoint105"Frame 20Symbol 898 MovieClip [flag copy]
"silopt"Frame 20Symbol 898 MovieClip [flag copy]
"oil4"Frame 20Symbol 1051 MovieClip
"rig10"Frame 20Symbol 1058 MovieClip
"rig19"Frame 20Symbol 1058 MovieClip
"waypoint106"Frame 20Symbol 898 MovieClip [flag copy]
"turretpt6"Frame 20Symbol 898 MovieClip [flag copy]
"turretpt7"Frame 20Symbol 898 MovieClip [flag copy]
"turretpt8"Frame 20Symbol 898 MovieClip [flag copy]
"turretpt9"Frame 20Symbol 898 MovieClip [flag copy]
"minept4"Frame 20Symbol 898 MovieClip [flag copy]
"minept3"Frame 20Symbol 898 MovieClip [flag copy]
"minept5"Frame 20Symbol 898 MovieClip [flag copy]
"minept6"Frame 20Symbol 898 MovieClip [flag copy]
"rig11"Frame 20Symbol 1058 MovieClip
"rig12"Frame 20Symbol 1058 MovieClip
"rig20"Frame 20Symbol 1058 MovieClip
"rig21"Frame 20Symbol 1058 MovieClip
"attackpt1"Frame 20Symbol 898 MovieClip [flag copy]
"attackpt2"Frame 20Symbol 898 MovieClip [flag copy]
"attackpt3"Frame 20Symbol 898 MovieClip [flag copy]
"burton"Frame 20Symbol 1060 MovieClip
"rallypoint"Frame 20Symbol 1062 MovieClip
"box"Frame 20Symbol 1064 MovieClip
"ai"Frame 20Symbol 1066 MovieClip
"box5"Frame 21Symbol 671 MovieClip [box5]
"back"Frame 21Symbol 1110 MovieClip
"back"Frame 22Symbol 1110 MovieClip
"oil0"Frame 22Symbol 1051 MovieClip
"oil34"Frame 22Symbol 1051 MovieClip
"servpt"Frame 22Symbol 898 MovieClip [flag copy]
"warpt"Frame 22Symbol 898 MovieClip [flag copy]
"refpt"Frame 22Symbol 898 MovieClip [flag copy]
"comcentrept"Frame 22Symbol 898 MovieClip [flag copy]
"techpt"Frame 22Symbol 898 MovieClip [flag copy]
"turretpt2"Frame 22Symbol 898 MovieClip [flag copy]
"turretpt3"Frame 22Symbol 898 MovieClip [flag copy]
"turretpt1"Frame 22Symbol 898 MovieClip [flag copy]
"turretpt5"Frame 22Symbol 898 MovieClip [flag copy]
"turretpt4"Frame 22Symbol 898 MovieClip [flag copy]
"minept0"Frame 22Symbol 898 MovieClip [flag copy]
"minept1"Frame 22Symbol 898 MovieClip [flag copy]
"minept2"Frame 22Symbol 898 MovieClip [flag copy]
"waypoint100"Frame 22Symbol 898 MovieClip [flag copy]
"waypoint101"Frame 22Symbol 898 MovieClip [flag copy]
"waypoint102"Frame 22Symbol 898 MovieClip [flag copy]
"waypoint103"Frame 22Symbol 898 MovieClip [flag copy]
"waypoint104"Frame 22Symbol 898 MovieClip [flag copy]
"waypoint105"Frame 22Symbol 898 MovieClip [flag copy]
"silopt"Frame 22Symbol 898 MovieClip [flag copy]
"oil9"Frame 22Symbol 1051 MovieClip
"waypoint106"Frame 22Symbol 898 MovieClip [flag copy]
"turretpt6"Frame 22Symbol 898 MovieClip [flag copy]
"turretpt7"Frame 22Symbol 898 MovieClip [flag copy]
"turretpt8"Frame 22Symbol 898 MovieClip [flag copy]
"turretpt9"Frame 22Symbol 898 MovieClip [flag copy]
"minept4"Frame 22Symbol 898 MovieClip [flag copy]
"minept3"Frame 22Symbol 898 MovieClip [flag copy]
"minept5"Frame 22Symbol 898 MovieClip [flag copy]
"minept6"Frame 22Symbol 898 MovieClip [flag copy]
"rig12"Frame 22Symbol 1058 MovieClip
"oil1"Frame 22Symbol 1051 MovieClip
"rig19"Frame 22Symbol 1058 MovieClip
"oil33"Frame 22Symbol 1051 MovieClip
"oil8"Frame 22Symbol 1051 MovieClip
"oil6"Frame 22Symbol 1051 MovieClip
"rig19"Frame 22Symbol 1058 MovieClip
"rig31"Frame 22Symbol 1058 MovieClip
"rig20"Frame 22Symbol 1058 MovieClip
"attackpt1"Frame 22Symbol 898 MovieClip [flag copy]
"attackpt2"Frame 22Symbol 898 MovieClip [flag copy]
"attackpt3"Frame 22Symbol 898 MovieClip [flag copy]
"burton"Frame 22Symbol 1060 MovieClip
"rallypoint"Frame 22Symbol 1062 MovieClip
"box"Frame 22Symbol 1064 MovieClip
"ai"Frame 22Symbol 1066 MovieClip
"box5"Frame 25Symbol 671 MovieClip [box5]
"back"Frame 25Symbol 831 MovieClip
"back"Frame 26Symbol 831 MovieClip
"comcentre1"Frame 26Symbol 513 MovieClip [comcentre]
"refinery1"Frame 26Symbol 511 MovieClip [refinery]
"warfactorey1"Frame 26Symbol 509 MovieClip [warfactory]
"pat1"Frame 26Symbol 507 MovieClip [patriotmiss]
"wall1"Frame 26Symbol 1117 MovieClip
"pat2"Frame 26Symbol 507 MovieClip [patriotmiss]
"wall2"Frame 26Symbol 1117 MovieClip
"oil3"Frame 26Symbol 1051 MovieClip
"rig10"Frame 26Symbol 1058 MovieClip
"burton"Frame 26Symbol 1060 MovieClip
"rallypoint"Frame 26Symbol 1062 MovieClip
"tartar"Frame 26Symbol 898 MovieClip [flag copy]
"tart"Frame 26Symbol 898 MovieClip [flag copy]
"tart2"Frame 26Symbol 898 MovieClip [flag copy]
"tart3"Frame 26Symbol 898 MovieClip [flag copy]
"tart4"Frame 26Symbol 898 MovieClip [flag copy]
"box"Frame 26Symbol 1064 MovieClip
"ai"Frame 26Symbol 1121 MovieClip
"ai"Frame 27Symbol 1121 MovieClip
"ai"Frame 28Symbol 1121 MovieClip
"back"Frame 29Symbol 1110 MovieClip
"box5"Frame 29Symbol 671 MovieClip [box5]
"back"Frame 30Symbol 1110 MovieClip
"tartar"Frame 30Symbol 898 MovieClip [flag copy]
"tart5"Frame 30Symbol 898 MovieClip [flag copy]
"tart6"Frame 30Symbol 898 MovieClip [flag copy]
"warfactory1"Frame 30Symbol 509 MovieClip [warfactory]
"comcentre1"Frame 30Symbol 513 MovieClip [comcentre]
"wall1"Frame 30Symbol 1117 MovieClip
"wall2"Frame 30Symbol 1117 MovieClip
"enemywarfactory1"Frame 30Symbol 898 MovieClip [flag copy]
"enemywarfactory2"Frame 30Symbol 898 MovieClip [flag copy]
"oil6"Frame 30Symbol 1051 MovieClip
"rig11"Frame 30Symbol 1058 MovieClip
"oil4"Frame 30Symbol 1051 MovieClip
"rig5"Frame 30Symbol 1058 MovieClip
"enemywarfactory4"Frame 30Symbol 898 MovieClip [flag copy]
"enemywarfactory3"Frame 30Symbol 898 MovieClip [flag copy]
"lock1"Frame 30Symbol 898 MovieClip [flag copy]
"burton"Frame 30Symbol 1060 MovieClip
"techcentre1"Frame 30Symbol 487 MovieClip [techcentre]
"refinery1"Frame 30Symbol 511 MovieClip [refinery]
"servicedepot1"Frame 30Symbol 485 MovieClip [servicedepot]
"rallypoint"Frame 30Symbol 1062 MovieClip
"box"Frame 30Symbol 1064 MovieClip
"ai"Frame 30Symbol 1121 MovieClip
"ai"Frame 31Symbol 1121 MovieClip
"ai"Frame 32Symbol 1121 MovieClip
"map2"Frame 33Symbol 1139 MovieClip
"map6"Frame 33Symbol 1139 MovieClip
"map3"Frame 33Symbol 1142 MovieClip
"map5"Frame 33Symbol 1139 MovieClip
"map9"Frame 33Symbol 1139 MovieClip
"map8"Frame 33Symbol 1139 MovieClip
"map4"Frame 33Symbol 1139 MovieClip
"map7"Frame 33Symbol 1139 MovieClip
"ai"Frame 33Symbol 1121 MovieClip
"alarm"Frame 33Symbol 1151 MovieClip
"back"Frame 34Symbol 1155 MovieClip
"box5"Frame 34Symbol 671 MovieClip [box5]
"back"Frame 35Symbol 1155 MovieClip
"lock2"Frame 35Symbol 898 MovieClip [flag copy]
"wall2"Frame 35Symbol 1117 MovieClip
"wall3"Frame 35Symbol 1117 MovieClip
"wall1"Frame 35Symbol 1117 MovieClip
"enemytechcentre1"Frame 35Symbol 483 MovieClip [enemytechcentre]
"enemyservicedepot1"Frame 35Symbol 481 MovieClip [enemyservicedepot]
"flag2"Frame 35Symbol 898 MovieClip [flag copy]
"flag1"Frame 35Symbol 898 MovieClip [flag copy]
"flag4"Frame 35Symbol 898 MovieClip [flag copy]
"flag3"Frame 35Symbol 898 MovieClip [flag copy]
"ai"Frame 35Symbol 1121 MovieClip
"waypoint1"Frame 35Symbol 898 MovieClip [flag copy]
"waypoint2"Frame 35Symbol 898 MovieClip [flag copy]
"waypoint3"Frame 35Symbol 898 MovieClip [flag copy]
"waypoint47"Frame 35Symbol 898 MovieClip [flag copy]
"waypoint16"Frame 35Symbol 898 MovieClip [flag copy]
"waypoint2"Frame 35Symbol 898 MovieClip [flag copy]
"waypoint21"Frame 35Symbol 898 MovieClip [flag copy]
"waypoint22"Frame 35Symbol 898 MovieClip [flag copy]
"waypoint23"Frame 35Symbol 898 MovieClip [flag copy]
"enemyrefinery1"Frame 35Symbol 477 MovieClip [enemyrefinery]
"comally"Frame 35Symbol 1157 MovieClip
"enemywarfactory1"Frame 35Symbol 473 MovieClip [enemywarfactory]
"warally"Frame 35Symbol 1159 MovieClip
"oil6"Frame 35Symbol 1051 MovieClip
"rig11"Frame 35Symbol 1058 MovieClip
"oil5"Frame 35Symbol 1051 MovieClip
"rig12"Frame 35Symbol 1058 MovieClip
"oil3"Frame 35Symbol 1051 MovieClip
"rig9"Frame 35Symbol 1058 MovieClip
"oil1"Frame 35Symbol 1051 MovieClip
"rig1"Frame 35Symbol 1058 MovieClip
"waypoint101"Frame 35Symbol 898 MovieClip [flag copy]
"waypoint102"Frame 35Symbol 898 MovieClip [flag copy]
"waypoint103"Frame 35Symbol 898 MovieClip [flag copy]
"waypoint104"Frame 35Symbol 898 MovieClip [flag copy]
"waypoint105"Frame 35Symbol 898 MovieClip [flag copy]
"rallypoint"Frame 35Symbol 1062 MovieClip
"lock1"Frame 35Symbol 898 MovieClip [flag copy]
"burton"Frame 35Symbol 1060 MovieClip
"box"Frame 35Symbol 1064 MovieClip
"ai"Frame 36Symbol 1121 MovieClip
"back"Frame 38Symbol 1110 MovieClip
"box5"Frame 38Symbol 671 MovieClip [box5]
"back"Frame 39Symbol 1110 MovieClip
"reinforcement"Frame 39Symbol 898 MovieClip [flag copy]
"oil6"Frame 39Symbol 1051 MovieClip
"rig11"Frame 39Symbol 1058 MovieClip
"oil4"Frame 39Symbol 1051 MovieClip
"rig5"Frame 39Symbol 1058 MovieClip
"oil3"Frame 39Symbol 1051 MovieClip
"rig10"Frame 39Symbol 1058 MovieClip
"flag1"Frame 39Symbol 898 MovieClip [flag copy]
"waypoint1"Frame 39Symbol 898 MovieClip [flag copy]
"waypoint2"Frame 39Symbol 898 MovieClip [flag copy]
"waypoint3"Frame 39Symbol 898 MovieClip [flag copy]
"waypoint47"Frame 39Symbol 898 MovieClip [flag copy]
"waypoint16"Frame 39Symbol 898 MovieClip [flag copy]
"waypoint2"Frame 39Symbol 898 MovieClip [flag copy]
"waypoint21"Frame 39Symbol 898 MovieClip [flag copy]
"waypoint22"Frame 39Symbol 898 MovieClip [flag copy]
"waypoint23"Frame 39Symbol 898 MovieClip [flag copy]
"lock1"Frame 39Symbol 898 MovieClip [flag copy]
"waypoint102"Frame 39Symbol 898 MovieClip [flag copy]
"waypoint103"Frame 39Symbol 898 MovieClip [flag copy]
"waypoint104"Frame 39Symbol 898 MovieClip [flag copy]
"waypoint105"Frame 39Symbol 898 MovieClip [flag copy]
"rallypoint"Frame 39Symbol 1062 MovieClip
"ai"Frame 39Symbol 1121 MovieClip
"tartar"Frame 39Symbol 898 MovieClip [flag copy]
"burton"Frame 39Symbol 1060 MovieClip
"box"Frame 39Symbol 1064 MovieClip
"ai"Frame 40Symbol 1121 MovieClip
"ai"Frame 41Symbol 1121 MovieClip
"back"Frame 42Symbol 1155 MovieClip
"box5"Frame 42Symbol 671 MovieClip [box5]
"back"Frame 43Symbol 1092 MovieClip
"ai"Frame 43Symbol 1121 MovieClip
"production1"Frame 43Symbol 473 MovieClip [enemywarfactory]
"production4"Frame 43Symbol 473 MovieClip [enemywarfactory]
"production3"Frame 43Symbol 473 MovieClip [enemywarfactory]
"production2"Frame 43Symbol 473 MovieClip [enemywarfactory]
"enemywarfactory1"Frame 43Symbol 473 MovieClip [enemywarfactory]
"enemyrefinery1"Frame 43Symbol 477 MovieClip [enemyrefinery]
"enemytechcentre1"Frame 43Symbol 483 MovieClip [enemytechcentre]
"enemyservicedepot1"Frame 43Symbol 481 MovieClip [enemyservicedepot]
"enemycomcentre1"Frame 43Symbol 479 MovieClip [enemycomcentre]
"oil6"Frame 43Symbol 1051 MovieClip
"rig11"Frame 43Symbol 1058 MovieClip
"oil5"Frame 43Symbol 1051 MovieClip
"rig1"Frame 43Symbol 1058 MovieClip
"oil4"Frame 43Symbol 1051 MovieClip
"rig2"Frame 43Symbol 1058 MovieClip
"waypoint1"Frame 43Symbol 898 MovieClip [flag copy]
"rallypoint"Frame 43Symbol 1062 MovieClip
"lock1"Frame 43Symbol 898 MovieClip [flag copy]
"lock2"Frame 43Symbol 898 MovieClip [flag copy]
"reinforcement"Frame 43Symbol 898 MovieClip [flag copy]
"waypoint47"Frame 43Symbol 898 MovieClip [flag copy]
"waypoint101"Frame 43Symbol 898 MovieClip [flag copy]
"waypoint100"Frame 43Symbol 898 MovieClip [flag copy]
"waypoint103"Frame 43Symbol 898 MovieClip [flag copy]
"waypoint74"Frame 43Symbol 898 MovieClip [flag copy]
"waypoint105"Frame 43Symbol 898 MovieClip [flag copy]
"burton"Frame 43Symbol 1060 MovieClip
"box"Frame 43Symbol 1064 MovieClip
"ai"Frame 44Symbol 1121 MovieClip
"waypoint3"Frame 45Symbol 898 MovieClip [flag copy]
"waypoint2"Frame 45Symbol 898 MovieClip [flag copy]
"back"Frame 46Symbol 1092 MovieClip
"box5"Frame 46Symbol 671 MovieClip [box5]
"back"Frame 47Symbol 1092 MovieClip
"production1"Frame 47Symbol 1159 MovieClip
"production4"Frame 47Symbol 1159 MovieClip
"production3"Frame 47Symbol 1159 MovieClip
"production2"Frame 47Symbol 1159 MovieClip
"oil6"Frame 47Symbol 1051 MovieClip
"rig11"Frame 47Symbol 1058 MovieClip
"oil4"Frame 47Symbol 1051 MovieClip
"rig2"Frame 47Symbol 1058 MovieClip
"flag4"Frame 47Symbol 898 MovieClip [flag copy]
"flag2"Frame 47Symbol 898 MovieClip [flag copy]
"flag3"Frame 47Symbol 898 MovieClip [flag copy]
"oil5"Frame 47Symbol 1051 MovieClip
"rig1"Frame 47Symbol 1058 MovieClip
"ai"Frame 47Symbol 1121 MovieClip
"flag1"Frame 47Symbol 898 MovieClip [flag copy]
"waypoint1"Frame 47Symbol 898 MovieClip [flag copy]
"waypoint2"Frame 47Symbol 898 MovieClip [flag copy]
"waypoint3"Frame 47Symbol 898 MovieClip [flag copy]
"waypoint47"Frame 47Symbol 898 MovieClip [flag copy]
"waypoint16"Frame 47Symbol 898 MovieClip [flag copy]
"waypoint2"Frame 47Symbol 898 MovieClip [flag copy]
"waypoint21"Frame 47Symbol 898 MovieClip [flag copy]
"waypoint22"Frame 47Symbol 898 MovieClip [flag copy]
"waypoint23"Frame 47Symbol 898 MovieClip [flag copy]
"waypoint103"Frame 47Symbol 898 MovieClip [flag copy]
"waypoint104"Frame 47Symbol 898 MovieClip [flag copy]
"rallypoint"Frame 47Symbol 1062 MovieClip
"lock1"Frame 47Symbol 898 MovieClip [flag copy]
"lock2"Frame 47Symbol 898 MovieClip [flag copy]
"reinforcement"Frame 47Symbol 898 MovieClip [flag copy]
"burton"Frame 47Symbol 1060 MovieClip
"box"Frame 47Symbol 1064 MovieClip
"ai"Frame 48Symbol 1121 MovieClip
"back"Frame 50Symbol 1172 MovieClip
"box5"Frame 50Symbol 671 MovieClip [box5]
"ai"Frame 51Symbol 1121 MovieClip
"enemycomcentre1"Frame 51Symbol 479 MovieClip [enemycomcentre]
"enemywarfactory1"Frame 51Symbol 473 MovieClip [enemywarfactory]
"enemyweaponsilo1"Frame 51Symbol 459 MovieClip [enemyweaponsilo]
"sensor1"Frame 51Symbol 1174 MovieClip
"sensor2"Frame 51Symbol 1174 MovieClip
"sensor3"Frame 51Symbol 1174 MovieClip
"rallypoint"Frame 51Symbol 1062 MovieClip
"lock1"Frame 51Symbol 898 MovieClip [flag copy]
"lock2"Frame 51Symbol 898 MovieClip [flag copy]
"reinforcement"Frame 51Symbol 898 MovieClip [flag copy]
"enemytechcentre1"Frame 51Symbol 483 MovieClip [enemytechcentre]
"enemyservicedepot1"Frame 51Symbol 481 MovieClip [enemyservicedepot]
"enemyrefinery1"Frame 51Symbol 477 MovieClip [enemyrefinery]
"oil6"Frame 51Symbol 1051 MovieClip
"rig11"Frame 51Symbol 1058 MovieClip
"oil5"Frame 51Symbol 1051 MovieClip
"rig10"Frame 51Symbol 1058 MovieClip
"waypoint101"Frame 51Symbol 898 MovieClip [flag copy]
"waypoint102"Frame 51Symbol 898 MovieClip [flag copy]
"waypoint103"Frame 51Symbol 898 MovieClip [flag copy]
"waypoint104"Frame 51Symbol 898 MovieClip [flag copy]
"waypoint105"Frame 51Symbol 898 MovieClip [flag copy]
"burton"Frame 51Symbol 1060 MovieClip
"box"Frame 51Symbol 1064 MovieClip
"ai"Frame 52Symbol 1121 MovieClip
"waypoint3"Frame 53Symbol 898 MovieClip [flag copy]
"waypoint2"Frame 53Symbol 898 MovieClip [flag copy]
"waypoint1"Frame 53Symbol 898 MovieClip [flag copy]
"back"Frame 54Symbol 1172 MovieClip
"box5"Frame 54Symbol 671 MovieClip [box5]
"back"Frame 55Symbol 1172 MovieClip
"reinforcement"Frame 55Symbol 898 MovieClip [flag copy]
"flag1"Frame 55Symbol 898 MovieClip [flag copy]
"waypoint1"Frame 55Symbol 898 MovieClip [flag copy]
"waypoint2"Frame 55Symbol 898 MovieClip [flag copy]
"waypoint3"Frame 55Symbol 898 MovieClip [flag copy]
"waypoint47"Frame 55Symbol 898 MovieClip [flag copy]
"waypoint16"Frame 55Symbol 898 MovieClip [flag copy]
"waypoint2"Frame 55Symbol 898 MovieClip [flag copy]
"waypoint21"Frame 55Symbol 898 MovieClip [flag copy]
"waypoint22"Frame 55Symbol 898 MovieClip [flag copy]
"waypoint23"Frame 55Symbol 898 MovieClip [flag copy]
"lock1"Frame 55Symbol 898 MovieClip [flag copy]
"sensor2"Frame 55Symbol 1174 MovieClip
"sensor3"Frame 55Symbol 1174 MovieClip
"oil6"Frame 55Symbol 1051 MovieClip
"rig11"Frame 55Symbol 1058 MovieClip
"rallypoint"Frame 55Symbol 1062 MovieClip
"ai"Frame 55Symbol 1121 MovieClip
"lock2"Frame 55Symbol 898 MovieClip [flag copy]
"waypoint101"Frame 55Symbol 898 MovieClip [flag copy]
"waypoint102"Frame 55Symbol 898 MovieClip [flag copy]
"waypoint103"Frame 55Symbol 898 MovieClip [flag copy]
"sensor1"Frame 55Symbol 1174 MovieClip
"oil5"Frame 55Symbol 1051 MovieClip
"rig10"Frame 55Symbol 1058 MovieClip
"waypoint101"Frame 55Symbol 898 MovieClip [flag copy]
"burton"Frame 55Symbol 1060 MovieClip
"box"Frame 55Symbol 1064 MovieClip
"ai"Frame 56Symbol 1121 MovieClip
"ai"Frame 57Symbol 1121 MovieClip
"back"Frame 58Symbol 1097 MovieClip
"box5"Frame 58Symbol 671 MovieClip [box5]
"ai"Frame 59Symbol 1121 MovieClip
"rallypoint"Frame 59Symbol 1062 MovieClip
"lock1"Frame 59Symbol 898 MovieClip [flag copy]
"lock2"Frame 59Symbol 898 MovieClip [flag copy]
"reinforcement"Frame 59Symbol 898 MovieClip [flag copy]
"oil5"Frame 59Symbol 1051 MovieClip
"rig10"Frame 59Symbol 1058 MovieClip
"oil4"Frame 59Symbol 1051 MovieClip
"oil3"Frame 59Symbol 1051 MovieClip
"rig8"Frame 59Symbol 1058 MovieClip
"enemycomcentre1"Frame 59Symbol 479 MovieClip [enemycomcentre]
"enemyrefinery1"Frame 59Symbol 477 MovieClip [enemyrefinery]
"enemyservicedepot1"Frame 59Symbol 481 MovieClip [enemyservicedepot]
"enemyweaponsilo1"Frame 59Symbol 459 MovieClip [enemyweaponsilo]
"enemywarfactory1"Frame 59Symbol 473 MovieClip [enemywarfactory]
"enemytechcentre1"Frame 59Symbol 483 MovieClip [enemytechcentre]
"flag1"Frame 59Symbol 898 MovieClip [flag copy]
"waypoint1"Frame 59Symbol 898 MovieClip [flag copy]
"waypoint3"Frame 59Symbol 898 MovieClip [flag copy]
"waypoint47"Frame 59Symbol 898 MovieClip [flag copy]
"waypoint16"Frame 59Symbol 898 MovieClip [flag copy]
"waypoint2"Frame 59Symbol 898 MovieClip [flag copy]
"waypoint21"Frame 59Symbol 898 MovieClip [flag copy]
"waypoint22"Frame 59Symbol 898 MovieClip [flag copy]
"waypoint23"Frame 59Symbol 898 MovieClip [flag copy]
"waypoint102"Frame 59Symbol 898 MovieClip [flag copy]
"waypoint103"Frame 59Symbol 898 MovieClip [flag copy]
"burton"Frame 59Symbol 1060 MovieClip
"box"Frame 59Symbol 1064 MovieClip
"ai"Frame 60Symbol 1121 MovieClip
"waypoint3"Frame 61Symbol 898 MovieClip [flag copy]
"waypoint2"Frame 61Symbol 898 MovieClip [flag copy]
"waypoint1"Frame 61Symbol 898 MovieClip [flag copy]
"back"Frame 62Symbol 1097 MovieClip
"box5"Frame 62Symbol 671 MovieClip [box5]
"back"Frame 63Symbol 1097 MovieClip
"reinforcement"Frame 63Symbol 898 MovieClip [flag copy]
"flag1"Frame 63Symbol 898 MovieClip [flag copy]
"waypoint1"Frame 63Symbol 898 MovieClip [flag copy]
"waypoint2"Frame 63Symbol 898 MovieClip [flag copy]
"waypoint3"Frame 63Symbol 898 MovieClip [flag copy]
"waypoint47"Frame 63Symbol 898 MovieClip [flag copy]
"waypoint16"Frame 63Symbol 898 MovieClip [flag copy]
"waypoint21"Frame 63Symbol 898 MovieClip [flag copy]
"waypoint22"Frame 63Symbol 898 MovieClip [flag copy]
"waypoint23"Frame 63Symbol 898 MovieClip [flag copy]
"lock1"Frame 63Symbol 898 MovieClip [flag copy]
"techcentre1"Frame 63Symbol 487 MovieClip [techcentre]
"oil5"Frame 63Symbol 1051 MovieClip
"rig10"Frame 63Symbol 1058 MovieClip
"oil4"Frame 63Symbol 1051 MovieClip
"waypoint100"Frame 63Symbol 898 MovieClip [flag copy]
"waypoint101"Frame 63Symbol 898 MovieClip [flag copy]
"waypoint102"Frame 63Symbol 898 MovieClip [flag copy]
"waypoint103"Frame 63Symbol 898 MovieClip [flag copy]
"waypoint104"Frame 63Symbol 898 MovieClip [flag copy]
"rallypoint"Frame 63Symbol 1062 MovieClip
"ai"Frame 63Symbol 1121 MovieClip
"lock2"Frame 63Symbol 898 MovieClip [flag copy]
"waypoint101"Frame 63Symbol 898 MovieClip [flag copy]
"waypoint102"Frame 63Symbol 898 MovieClip [flag copy]
"waypoint103"Frame 63Symbol 898 MovieClip [flag copy]
"oil3"Frame 63Symbol 1051 MovieClip
"rig8"Frame 63Symbol 1058 MovieClip
"burton"Frame 63Symbol 1060 MovieClip
"box"Frame 63Symbol 1064 MovieClip
"ai"Frame 64Symbol 1121 MovieClip
"back"Frame 66Symbol 1179 MovieClip
"box5"Frame 66Symbol 671 MovieClip [box5]
"ai"Frame 67Symbol 1121 MovieClip
"enemyrefinery1"Frame 67Symbol 477 MovieClip [enemyrefinery]
"derrick1"Frame 67Symbol 1181 MovieClip
"derrick2"Frame 67Symbol 1181 MovieClip
"derrick3"Frame 67Symbol 1181 MovieClip
"derrick4"Frame 67Symbol 1181 MovieClip
"enemycomcentre1"Frame 67Symbol 479 MovieClip [enemycomcentre]
"enemyservicedepot1"Frame 67Symbol 481 MovieClip [enemyservicedepot]
"enemytechcentre1"Frame 67Symbol 483 MovieClip [enemytechcentre]
"enemywarfactory1"Frame 67Symbol 473 MovieClip [enemywarfactory]
"oil5"Frame 67Symbol 1051 MovieClip
"rig10"Frame 67Symbol 1058 MovieClip
"rig11"Frame 67Symbol 1058 MovieClip
"rig12"Frame 67Symbol 1058 MovieClip
"oil4"Frame 67Symbol 1051 MovieClip
"oil3"Frame 67Symbol 1051 MovieClip
"reinforcement"Frame 67Symbol 898 MovieClip [flag copy]
"lock1"Frame 67Symbol 898 MovieClip [flag copy]
"waypoint1"Frame 67Symbol 898 MovieClip [flag copy]
"waypoint2"Frame 67Symbol 898 MovieClip [flag copy]
"waypoint3"Frame 67Symbol 898 MovieClip [flag copy]
"waypoint47"Frame 67Symbol 898 MovieClip [flag copy]
"waypoint16"Frame 67Symbol 898 MovieClip [flag copy]
"waypoint21"Frame 67Symbol 898 MovieClip [flag copy]
"waypoint22"Frame 67Symbol 898 MovieClip [flag copy]
"waypoint23"Frame 67Symbol 898 MovieClip [flag copy]
"waypoint100"Frame 67Symbol 898 MovieClip [flag copy]
"waypoint101"Frame 67Symbol 898 MovieClip [flag copy]
"waypoint102"Frame 67Symbol 898 MovieClip [flag copy]
"waypoint103"Frame 67Symbol 898 MovieClip [flag copy]
"waypoint104"Frame 67Symbol 898 MovieClip [flag copy]
"flag1"Frame 67Symbol 898 MovieClip [flag copy]
"burton"Frame 67Symbol 1060 MovieClip
"box"Frame 67Symbol 1064 MovieClip
"ai"Frame 68Symbol 1121 MovieClip
"waypoint3"Frame 69Symbol 898 MovieClip [flag copy]
"waypoint2"Frame 69Symbol 898 MovieClip [flag copy]
"waypoint1"Frame 69Symbol 898 MovieClip [flag copy]
"back"Frame 70Symbol 1179 MovieClip
"box5"Frame 70Symbol 671 MovieClip [box5]
"back"Frame 71Symbol 1179 MovieClip
"reinforcement"Frame 71Symbol 898 MovieClip [flag copy]
"lock1"Frame 71Symbol 898 MovieClip [flag copy]
"waypoint100"Frame 71Symbol 898 MovieClip [flag copy]
"waypoint101"Frame 71Symbol 898 MovieClip [flag copy]
"waypoint102"Frame 71Symbol 898 MovieClip [flag copy]
"waypoint103"Frame 71Symbol 898 MovieClip [flag copy]
"back"Frame 71Symbol 1179 MovieClip
"derrick1"Frame 71Symbol 1181 MovieClip
"derrick2"Frame 71Symbol 1181 MovieClip
"derrick3"Frame 71Symbol 1181 MovieClip
"derrick4"Frame 71Symbol 1181 MovieClip
"oil5"Frame 71Symbol 1051 MovieClip
"rig10"Frame 71Symbol 1058 MovieClip
"rig11"Frame 71Symbol 1058 MovieClip
"rig12"Frame 71Symbol 1058 MovieClip
"oil4"Frame 71Symbol 1051 MovieClip
"oil3"Frame 71Symbol 1051 MovieClip
"reinforcement"Frame 71Symbol 898 MovieClip [flag copy]
"lock1"Frame 71Symbol 898 MovieClip [flag copy]
"waypoint103"Frame 71Symbol 898 MovieClip [flag copy]
"flag3"Frame 71Symbol 898 MovieClip [flag copy]
"flag1"Frame 71Symbol 898 MovieClip [flag copy]
"waypoint1"Frame 71Symbol 898 MovieClip [flag copy]
"waypoint2"Frame 71Symbol 898 MovieClip [flag copy]
"waypoint3"Frame 71Symbol 898 MovieClip [flag copy]
"waypoint47"Frame 71Symbol 898 MovieClip [flag copy]
"waypoint16"Frame 71Symbol 898 MovieClip [flag copy]
"waypoint21"Frame 71Symbol 898 MovieClip [flag copy]
"waypoint22"Frame 71Symbol 898 MovieClip [flag copy]
"waypoint23"Frame 71Symbol 898 MovieClip [flag copy]
"waypoint104"Frame 71Symbol 898 MovieClip [flag copy]
"rallypoint"Frame 71Symbol 1062 MovieClip
"ai"Frame 71Symbol 1121 MovieClip
"lock2"Frame 71Symbol 898 MovieClip [flag copy]
"waypoint103"Frame 71Symbol 898 MovieClip [flag copy]
"burton"Frame 71Symbol 1060 MovieClip
"box"Frame 71Symbol 1064 MovieClip
"ai"Frame 72Symbol 1121 MovieClip
"back"Frame 74Symbol 1108 MovieClip
"box5"Frame 74Symbol 671 MovieClip [box5]
"ai"Frame 75Symbol 1121 MovieClip
"reinforcement"Frame 75Symbol 898 MovieClip [flag copy]
"lock1"Frame 75Symbol 898 MovieClip [flag copy]
"waypoint1"Frame 75Symbol 898 MovieClip [flag copy]
"waypoint2"Frame 75Symbol 898 MovieClip [flag copy]
"waypoint3"Frame 75Symbol 898 MovieClip [flag copy]
"waypoint16"Frame 75Symbol 898 MovieClip [flag copy]
"waypoint22"Frame 75Symbol 898 MovieClip [flag copy]
"waypoint23"Frame 75Symbol 898 MovieClip [flag copy]
"waypoint100"Frame 75Symbol 898 MovieClip [flag copy]
"waypoint101"Frame 75Symbol 898 MovieClip [flag copy]
"flag5"Frame 75Symbol 898 MovieClip [flag copy]
"waypoint102"Frame 75Symbol 898 MovieClip [flag copy]
"waypoint103"Frame 75Symbol 898 MovieClip [flag copy]
"waypoint104"Frame 75Symbol 898 MovieClip [flag copy]
"oil2"Frame 75Symbol 1051 MovieClip
"oil1"Frame 75Symbol 1051 MovieClip
"oil3"Frame 75Symbol 1051 MovieClip
"rig10"Frame 75Symbol 1058 MovieClip
"rig11"Frame 75Symbol 1058 MovieClip
"enemytechcentre1"Frame 75Symbol 483 MovieClip [enemytechcentre]
"flag1"Frame 75Symbol 898 MovieClip [flag copy]
"enemyrefinery1"Frame 75Symbol 477 MovieClip [enemyrefinery]
"enemycomcentre1"Frame 75Symbol 479 MovieClip [enemycomcentre]
"enemywarfactory1"Frame 75Symbol 473 MovieClip [enemywarfactory]
"enemyservicedepot1"Frame 75Symbol 481 MovieClip [enemyservicedepot]
"airport"Frame 75Symbol 1185 MovieClip
"burton"Frame 75Symbol 1060 MovieClip
"box"Frame 75Symbol 1064 MovieClip
"ai"Frame 76Symbol 1121 MovieClip
"waypoint3"Frame 77Symbol 898 MovieClip [flag copy]
"waypoint2"Frame 77Symbol 898 MovieClip [flag copy]
"waypoint1"Frame 77Symbol 898 MovieClip [flag copy]
"back"Frame 78Symbol 1108 MovieClip
"box5"Frame 78Symbol 671 MovieClip [box5]
"back"Frame 79Symbol 1108 MovieClip
"ai"Frame 79Symbol 1121 MovieClip
"reinforcement"Frame 79Symbol 898 MovieClip [flag copy]
"lock1"Frame 79Symbol 898 MovieClip [flag copy]
"waypoint1"Frame 79Symbol 898 MovieClip [flag copy]
"waypoint2"Frame 79Symbol 898 MovieClip [flag copy]
"waypoint3"Frame 79Symbol 898 MovieClip [flag copy]
"waypoint16"Frame 79Symbol 898 MovieClip [flag copy]
"waypoint22"Frame 79Symbol 898 MovieClip [flag copy]
"waypoint23"Frame 79Symbol 898 MovieClip [flag copy]
"waypoint100"Frame 79Symbol 898 MovieClip [flag copy]
"waypoint101"Frame 79Symbol 898 MovieClip [flag copy]
"waypoint102"Frame 79Symbol 898 MovieClip [flag copy]
"flag5"Frame 79Symbol 898 MovieClip [flag copy]
"waypoint102"Frame 79Symbol 898 MovieClip [flag copy]
"waypoint103"Frame 79Symbol 898 MovieClip [flag copy]
"waypoint104"Frame 79Symbol 898 MovieClip [flag copy]
"oil2"Frame 79Symbol 1051 MovieClip
"oil1"Frame 79Symbol 1051 MovieClip
"oil3"Frame 79Symbol 1051 MovieClip
"rig10"Frame 79Symbol 1058 MovieClip
"rig11"Frame 79Symbol 1058 MovieClip
"flag1"Frame 79Symbol 898 MovieClip [flag copy]
"airport"Frame 79Symbol 1185 MovieClip
"burton"Frame 79Symbol 1060 MovieClip
"rallypoint"Frame 79Symbol 1062 MovieClip
"ai"Frame 79Symbol 1121 MovieClip
"lock2"Frame 79Symbol 898 MovieClip [flag copy]
"box"Frame 79Symbol 1064 MovieClip
"ai"Frame 80Symbol 1121 MovieClip
"box5"Frame 82Symbol 671 MovieClip [box5]
"back"Frame 83Symbol 1187 MovieClip
"ai"Frame 83Symbol 1121 MovieClip
"reinforcement"Frame 83Symbol 898 MovieClip [flag copy]
"lock1"Frame 83Symbol 898 MovieClip [flag copy]
"waypoint1"Frame 83Symbol 898 MovieClip [flag copy]
"waypoint2"Frame 83Symbol 898 MovieClip [flag copy]
"waypoint3"Frame 83Symbol 898 MovieClip [flag copy]
"waypoint16"Frame 83Symbol 898 MovieClip [flag copy]
"waypoint22"Frame 83Symbol 898 MovieClip [flag copy]
"waypoint23"Frame 83Symbol 898 MovieClip [flag copy]
"waypoint100"Frame 83Symbol 898 MovieClip [flag copy]
"waypoint101"Frame 83Symbol 898 MovieClip [flag copy]
"waypoint102"Frame 83Symbol 898 MovieClip [flag copy]
"waypoint103"Frame 83Symbol 898 MovieClip [flag copy]
"waypoint104"Frame 83Symbol 898 MovieClip [flag copy]
"flag1"Frame 83Symbol 898 MovieClip [flag copy]
"enemycomcentre1"Frame 83Symbol 479 MovieClip [enemycomcentre]
"enemyrefinery1"Frame 83Symbol 477 MovieClip [enemyrefinery]
"enemyservicedepot1"Frame 83Symbol 481 MovieClip [enemyservicedepot]
"lock2"Frame 83Symbol 898 MovieClip [flag copy]
"enemyweaponsilo2"Frame 83Symbol 459 MovieClip [enemyweaponsilo]
"enemyweaponsilo3"Frame 83Symbol 459 MovieClip [enemyweaponsilo]
"waypoint2"Frame 83Symbol 898 MovieClip [flag copy]
"burton"Frame 83Symbol 1060 MovieClip
"enemytechcentre1"Frame 83Symbol 483 MovieClip [enemytechcentre]
"enemyweaponsilo1"Frame 83Symbol 459 MovieClip [enemyweaponsilo]
"enemylasertank1"Frame 83Symbol 462 MovieClip [enemylasertank]
"enemywarfactory1"Frame 83Symbol 473 MovieClip [enemywarfactory]
"oil2"Frame 83Symbol 1051 MovieClip
"rig11"Frame 83Symbol 1058 MovieClip
"oil1"Frame 83Symbol 1051 MovieClip
"rig10"Frame 83Symbol 1058 MovieClip
"box"Frame 83Symbol 1064 MovieClip
"ai"Frame 84Symbol 1121 MovieClip
"waypoint3"Frame 85Symbol 898 MovieClip [flag copy]
"waypoint2"Frame 85Symbol 898 MovieClip [flag copy]
"waypoint1"Frame 85Symbol 898 MovieClip [flag copy]
"back"Frame 86Symbol 1187 MovieClip
"box5"Frame 86Symbol 671 MovieClip [box5]
"back"Frame 87Symbol 1187 MovieClip
"ai"Frame 87Symbol 1121 MovieClip
"reinforcement"Frame 87Symbol 898 MovieClip [flag copy]
"lock1"Frame 87Symbol 898 MovieClip [flag copy]
"waypoint1"Frame 87Symbol 898 MovieClip [flag copy]
"waypoint2"Frame 87Symbol 898 MovieClip [flag copy]
"waypoint3"Frame 87Symbol 898 MovieClip [flag copy]
"waypoint16"Frame 87Symbol 898 MovieClip [flag copy]
"waypoint22"Frame 87Symbol 898 MovieClip [flag copy]
"waypoint23"Frame 87Symbol 898 MovieClip [flag copy]
"waypoint100"Frame 87Symbol 898 MovieClip [flag copy]
"waypoint101"Frame 87Symbol 898 MovieClip [flag copy]
"waypoint102"Frame 87Symbol 898 MovieClip [flag copy]
"waypoint102"Frame 87Symbol 898 MovieClip [flag copy]
"waypoint103"Frame 87Symbol 898 MovieClip [flag copy]
"waypoint104"Frame 87Symbol 898 MovieClip [flag copy]
"oil2"Frame 87Symbol 1051 MovieClip
"oil3"Frame 87Symbol 1051 MovieClip
"rig10"Frame 87Symbol 1058 MovieClip
"rig11"Frame 87Symbol 1058 MovieClip
"flag1"Frame 87Symbol 898 MovieClip [flag copy]
"weaponsilo1"Frame 87Symbol 455 MovieClip [weaponsilo]
"burton"Frame 87Symbol 1060 MovieClip
"rallypoint"Frame 87Symbol 1062 MovieClip
"ai"Frame 87Symbol 1121 MovieClip
"lock2"Frame 87Symbol 898 MovieClip [flag copy]
"box"Frame 87Symbol 1064 MovieClip
"ai"Frame 88Symbol 1121 MovieClip
"ai"Frame 89Symbol 1121 MovieClip
"box5"Frame 94Symbol 671 MovieClip [box5]
"backbk"Frame 94Symbol 1040 MovieClip
"back"Frame 94Symbol 1040 MovieClip
"back"Frame 95Symbol 1040 MovieClip
"oil1"Frame 95Symbol 1051 MovieClip
"oil3"Frame 95Symbol 1051 MovieClip
"oil6"Frame 95Symbol 1051 MovieClip
"rig6"Frame 95Symbol 1058 MovieClip
"waypoint4"Frame 95Symbol 898 MovieClip [flag copy]
"rig10"Frame 95Symbol 1058 MovieClip
"rig19"Frame 95Symbol 1058 MovieClip
"tank1"Frame 95Symbol 655 MovieClip [light]
"burton"Frame 95Symbol 1060 MovieClip
"rallypoint"Frame 95Symbol 1062 MovieClip
"tutorial"Frame 95Symbol 1236 MovieClip
"enemytechcentre1"Frame 95Symbol 483 MovieClip [enemytechcentre]
"tank2"Frame 95Symbol 655 MovieClip [light]
"tank3"Frame 95Symbol 655 MovieClip [light]
"humvee1"Frame 95Symbol 663 MovieClip [humvee]
"enemyheavytank1"Frame 95Symbol 664 MovieClip [enemyheavy]
"a2"Frame 95Symbol 656 MovieClip [heavy]
"a3"Frame 95Symbol 663 MovieClip [humvee]
"a5"Frame 95Symbol 663 MovieClip [humvee]
"missilelaunch1"Frame 95Symbol 662 MovieClip [rocket]
"a1"Frame 95Symbol 657 MovieClip [artillery]
"a4"Frame 95Symbol 657 MovieClip [artillery]
"flag1"Frame 95Symbol 898 MovieClip [flag copy]
"box"Frame 95Symbol 1064 MovieClip
"flag2"Frame 95Symbol 898 MovieClip [flag copy]
"waypointn"Frame 95Symbol 898 MovieClip [flag copy]
"victory"Frame 96Symbol 1237 MovieClip
"back"Frame 131Symbol 1102 MovieClip
"box5"Frame 131Symbol 671 MovieClip [box5]
"oil3"Frame 132Symbol 1051 MovieClip
"rig10"Frame 132Symbol 1058 MovieClip
"enemyrefinery1"Frame 132Symbol 477 MovieClip [enemyrefinery]
"enemytechcentre1"Frame 132Symbol 483 MovieClip [enemytechcentre]
"oil2"Frame 132Symbol 1051 MovieClip
"rig10"Frame 132Symbol 1058 MovieClip
"waypoint102"Frame 132Symbol 898 MovieClip [flag copy]
"waypoint103"Frame 132Symbol 898 MovieClip [flag copy]
"waypoint104"Frame 132Symbol 898 MovieClip [flag copy]
"waypoint105"Frame 132Symbol 898 MovieClip [flag copy]
"rallypoint"Frame 132Symbol 1062 MovieClip
"flag12"Frame 132Symbol 898 MovieClip [flag copy]
"dozer1"Frame 132Symbol 661 MovieClip [dozer]
"ai"Frame 132Symbol 1121 MovieClip
"waypoint101"Frame 132Symbol 898 MovieClip [flag copy]
"patroit"Frame 132Symbol 505 MovieClip [enemymultiple]
"enemycomcentre1"Frame 132Symbol 479 MovieClip [enemycomcentre]
"enemywarfactory1"Frame 132Symbol 473 MovieClip [enemywarfactory]
"burton"Frame 132Symbol 1060 MovieClip
"tutorial"Frame 132Symbol 1269 MovieClip
"box"Frame 132Symbol 1064 MovieClip
"oil5"Frame 132Symbol 1051 MovieClip
"rig122"Frame 132Symbol 1058 MovieClip
"victory"Frame 133Symbol 1237 MovieClip
"map2"Frame 136Symbol 1139 MovieClip
"map6"Frame 136Symbol 1139 MovieClip
"map3"Frame 136Symbol 1142 MovieClip
"map5"Frame 136Symbol 1139 MovieClip
"map9"Frame 136Symbol 1139 MovieClip
"map8"Frame 136Symbol 1139 MovieClip
"map4"Frame 136Symbol 1139 MovieClip
"map7"Frame 136Symbol 1139 MovieClip
"alarm"Frame 136Symbol 1151 MovieClip
"tutorial"Frame 136Symbol 1308 MovieClip
"stripe"Symbol 32 MovieClip Frame 1Symbol 18 MovieClip
"stripe"Symbol 32 MovieClip Frame 2Symbol 18 MovieClip
"dummy"Symbol 48 MovieClip [artilleryally] Frame 1Symbol 32 MovieClip
"selector"Symbol 48 MovieClip [artilleryally] Frame 1Symbol 34 MovieClip
"turret"Symbol 48 MovieClip [artilleryally] Frame 1Symbol 44 MovieClip
"lifebar"Symbol 48 MovieClip [artilleryally] Frame 1Symbol 47 MovieClip
"dummy"Symbol 56 MovieClip [lasertank] Frame 1Symbol 51 MovieClip
"selector"Symbol 56 MovieClip [lasertank] Frame 1Symbol 34 MovieClip
"turret"Symbol 56 MovieClip [lasertank] Frame 1Symbol 55 MovieClip
"lifebar"Symbol 56 MovieClip [lasertank] Frame 1Symbol 47 MovieClip
"stripe"Symbol 101 MovieClip Frame 1Symbol 18 MovieClip
"dummy"Symbol 108 MovieClip [lightally] Frame 1Symbol 101 MovieClip
"selector"Symbol 108 MovieClip [lightally] Frame 1Symbol 34 MovieClip
"turret"Symbol 108 MovieClip [lightally] Frame 1Symbol 107 MovieClip
"lifebar"Symbol 108 MovieClip [lightally] Frame 1Symbol 47 MovieClip
"stripe"Symbol 111 MovieClip Frame 1Symbol 18 MovieClip
"dummy"Symbol 115 MovieClip [heavyally] Frame 1Symbol 111 MovieClip
"selector"Symbol 115 MovieClip [heavyally] Frame 1Symbol 34 MovieClip
"turret"Symbol 115 MovieClip [heavyally] Frame 1Symbol 114 MovieClip
"lifebar"Symbol 115 MovieClip [heavyally] Frame 1Symbol 47 MovieClip
"stripe"Symbol 128 MovieClip Frame 1Symbol 18 MovieClip
"dummy"Symbol 129 MovieClip [rocketally] Frame 1Symbol 117 MovieClip
"selector"Symbol 129 MovieClip [rocketally] Frame 1Symbol 34 MovieClip
"turret"Symbol 129 MovieClip [rocketally] Frame 1Symbol 128 MovieClip
"lifebar"Symbol 129 MovieClip [rocketally] Frame 1Symbol 47 MovieClip
"stripe"Symbol 131 MovieClip [humveeebase] Frame 1Symbol 18 MovieClip
"dummy"Symbol 138 MovieClip [humveeally] Frame 1Symbol 131 MovieClip [humveeebase]
"selector"Symbol 138 MovieClip [humveeally] Frame 1Symbol 34 MovieClip
"turret"Symbol 138 MovieClip [humveeally] Frame 1Symbol 137 MovieClip
"lifebar"Symbol 138 MovieClip [humveeally] Frame 1Symbol 47 MovieClip
"dummy"Symbol 143 MovieClip [oiltruck] Frame 1Symbol 142 MovieClip
"selector"Symbol 143 MovieClip [oiltruck] Frame 1Symbol 34 MovieClip
"lifebar"Symbol 143 MovieClip [oiltruck] Frame 1Symbol 47 MovieClip
"oilbar"Symbol 143 MovieClip [oiltruck] Frame 1Symbol 47 MovieClip
"turret"Symbol 152 MovieClip [laserbasedefense] Frame 1Symbol 148 MovieClip
"selector"Symbol 152 MovieClip [laserbasedefense] Frame 1Symbol 34 MovieClip
"auto"Symbol 152 MovieClip [laserbasedefense] Frame 1Symbol 150 MovieClip
"lifebar"Symbol 152 MovieClip [laserbasedefense] Frame 1Symbol 47 MovieClip
"selector"Symbol 158 MovieClip [mine] Frame 1Symbol 34 MovieClip
"turret"Symbol 169 MovieClip [turrets] Frame 1Symbol 168 MovieClip
"selector"Symbol 169 MovieClip [turrets] Frame 1Symbol 34 MovieClip
"auto"Symbol 169 MovieClip [turrets] Frame 1Symbol 150 MovieClip
"lifebar"Symbol 169 MovieClip [turrets] Frame 1Symbol 47 MovieClip
"mouse"Symbol 190 MovieClip [mo] Frame 1Symbol 186 MovieClip
"selector"Symbol 201 MovieClip [enemyconstruction] Frame 1Symbol 34 MovieClip
"lifebar"Symbol 201 MovieClip [enemyconstruction] Frame 1Symbol 47 MovieClip
"selector"Symbol 207 MovieClip [construction2] Frame 1Symbol 34 MovieClip
"lifebar"Symbol 207 MovieClip [construction2] Frame 1Symbol 47 MovieClip
"selector"Symbol 215 MovieClip [construction] Frame 1Symbol 34 MovieClip
"lifebar"Symbol 215 MovieClip [construction] Frame 1Symbol 47 MovieClip
"centre"Symbol 367 MovieClip Frame 3Symbol 349 MovieClip
"back"Symbol 367 MovieClip Frame 5Symbol 361 MovieClip
"back"Symbol 367 MovieClip Frame 6Symbol 365 MovieClip
"mapp"Symbol 453 MovieClip [bar] Frame 48Symbol 367 MovieClip
"lists2"Symbol 453 MovieClip [bar] Frame 48Symbol 418 MovieClip
"lists"Symbol 453 MovieClip [bar] Frame 48Symbol 452 MovieClip
"selector"Symbol 455 MovieClip [weaponsilo] Frame 1Symbol 34 MovieClip
"auto"Symbol 455 MovieClip [weaponsilo] Frame 1Symbol 150 MovieClip
"lifebar"Symbol 455 MovieClip [weaponsilo] Frame 1Symbol 47 MovieClip
"selector"Symbol 459 MovieClip [enemyweaponsilo] Frame 1Symbol 34 MovieClip
"auto"Symbol 459 MovieClip [enemyweaponsilo] Frame 1Symbol 457 MovieClip
"lifebar"Symbol 459 MovieClip [enemyweaponsilo] Frame 1Symbol 47 MovieClip
"dummy"Symbol 462 MovieClip [enemylasertank] Frame 1Symbol 461 MovieClip
"selector"Symbol 462 MovieClip [enemylasertank] Frame 1Symbol 34 MovieClip
"turret"Symbol 462 MovieClip [enemylasertank] Frame 1Symbol 55 MovieClip
"lifebar"Symbol 462 MovieClip [enemylasertank] Frame 1Symbol 47 MovieClip
"dummy"Symbol 467 MovieClip [enemyoiltruck] Frame 1Symbol 466 MovieClip
"selector"Symbol 467 MovieClip [enemyoiltruck] Frame 1Symbol 34 MovieClip
"lifebar"Symbol 467 MovieClip [enemyoiltruck] Frame 1Symbol 47 MovieClip
"turret"Symbol 469 MovieClip [enemyturret] Frame 1Symbol 168 MovieClip
"auto"Symbol 469 MovieClip [enemyturret] Frame 1Symbol 457 MovieClip
"selector"Symbol 469 MovieClip [enemyturret] Frame 1Symbol 34 MovieClip
"lifebar"Symbol 469 MovieClip [enemyturret] Frame 1Symbol 47 MovieClip
"lifebar"Symbol 473 MovieClip [enemywarfactory] Frame 1Symbol 47 MovieClip
"selector"Symbol 473 MovieClip [enemywarfactory] Frame 1Symbol 34 MovieClip
"auto"Symbol 473 MovieClip [enemywarfactory] Frame 1Symbol 457 MovieClip
"selector"Symbol 477 MovieClip [enemyrefinery] Frame 1Symbol 34 MovieClip
"auto"Symbol 477 MovieClip [enemyrefinery] Frame 1Symbol 457 MovieClip
"pad"Symbol 477 MovieClip [enemyrefinery] Frame 1Symbol 476 MovieClip
"lifebar"Symbol 477 MovieClip [enemyrefinery] Frame 1Symbol 47 MovieClip
"selector"Symbol 479 MovieClip [enemycomcentre] Frame 1Symbol 34 MovieClip
"auto"Symbol 479 MovieClip [enemycomcentre] Frame 1Symbol 457 MovieClip
"lifebar"Symbol 479 MovieClip [enemycomcentre] Frame 1Symbol 47 MovieClip
"selector"Symbol 481 MovieClip [enemyservicedepot] Frame 1Symbol 34 MovieClip
"auto"Symbol 481 MovieClip [enemyservicedepot] Frame 1Symbol 457 MovieClip
"lifebar"Symbol 481 MovieClip [enemyservicedepot] Frame 1Symbol 47 MovieClip
"selector"Symbol 483 MovieClip [enemytechcentre] Frame 1Symbol 34 MovieClip
"auto"Symbol 483 MovieClip [enemytechcentre] Frame 1Symbol 457 MovieClip
"lifebar"Symbol 483 MovieClip [enemytechcentre] Frame 1Symbol 47 MovieClip
"selector"Symbol 485 MovieClip [servicedepot] Frame 1Symbol 34 MovieClip
"auto"Symbol 485 MovieClip [servicedepot] Frame 1Symbol 150 MovieClip
"auto2"Symbol 485 MovieClip [servicedepot] Frame 1Symbol 150 MovieClip
"lifebar"Symbol 485 MovieClip [servicedepot] Frame 1Symbol 47 MovieClip
"selector"Symbol 487 MovieClip [techcentre] Frame 1Symbol 34 MovieClip
"auto"Symbol 487 MovieClip [techcentre] Frame 1Symbol 150 MovieClip
"lifebar"Symbol 487 MovieClip [techcentre] Frame 1Symbol 47 MovieClip
"turret"Symbol 489 MovieClip [enemylaser] Frame 1Symbol 148 MovieClip
"selector"Symbol 489 MovieClip [enemylaser] Frame 1Symbol 34 MovieClip
"auto"Symbol 489 MovieClip [enemylaser] Frame 1Symbol 457 MovieClip
"lifebar"Symbol 489 MovieClip [enemylaser] Frame 1Symbol 47 MovieClip
"selector"Symbol 496 MovieClip [enemymine] Frame 1Symbol 34 MovieClip
"auto"Symbol 496 MovieClip [enemymine] Frame 1Symbol 150 MovieClip
"lifebar"Symbol 496 MovieClip [enemymine] Frame 1Symbol 47 MovieClip
"turret"Symbol 505 MovieClip [enemymultiple] Frame 1Symbol 504 MovieClip
"auto"Symbol 505 MovieClip [enemymultiple] Frame 1Symbol 457 MovieClip
"selector"Symbol 505 MovieClip [enemymultiple] Frame 1Symbol 34 MovieClip
"lifebar"Symbol 505 MovieClip [enemymultiple] Frame 1Symbol 47 MovieClip
"turret"Symbol 507 MovieClip [patriotmiss] Frame 1Symbol 504 MovieClip
"selector"Symbol 507 MovieClip [patriotmiss] Frame 1Symbol 34 MovieClip
"auto"Symbol 507 MovieClip [patriotmiss] Frame 1Symbol 150 MovieClip
"lifebar"Symbol 507 MovieClip [patriotmiss] Frame 1Symbol 47 MovieClip
"auto"Symbol 509 MovieClip [warfactory] Frame 1Symbol 150 MovieClip
"selector"Symbol 509 MovieClip [warfactory] Frame 1Symbol 34 MovieClip
"lifebar"Symbol 509 MovieClip [warfactory] Frame 1Symbol 47 MovieClip
"pad"Symbol 511 MovieClip [refinery] Frame 1Symbol 476 MovieClip
"selector"Symbol 511 MovieClip [refinery] Frame 1Symbol 34 MovieClip
"auto"Symbol 511 MovieClip [refinery] Frame 1Symbol 150 MovieClip
"lifebar"Symbol 511 MovieClip [refinery] Frame 1Symbol 47 MovieClip
"selector"Symbol 513 MovieClip [comcentre] Frame 1Symbol 34 MovieClip
"auto"Symbol 513 MovieClip [comcentre] Frame 1Symbol 150 MovieClip
"lifebar"Symbol 513 MovieClip [comcentre] Frame 1Symbol 47 MovieClip
"selector"Symbol 518 MovieClip [enemyconstruction2] Frame 1Symbol 34 MovieClip
"lifebar"Symbol 518 MovieClip [enemyconstruction2] Frame 1Symbol 47 MovieClip
"boxns"Symbol 575 MovieClip Frame 2Symbol 524 MovieClip
"boxns"Symbol 598 MovieClip Frame 2Symbol 524 MovieClip
"d1"Symbol 599 MovieClip Frame 1Symbol 575 MovieClip
"d2"Symbol 599 MovieClip Frame 1Symbol 575 MovieClip
"d15"Symbol 599 MovieClip Frame 1Symbol 575 MovieClip
"d16"Symbol 599 MovieClip Frame 1Symbol 575 MovieClip
"d19"Symbol 599 MovieClip Frame 1Symbol 575 MovieClip
"d20"Symbol 599 MovieClip Frame 1Symbol 575 MovieClip
"d7"Symbol 599 MovieClip Frame 1Symbol 575 MovieClip
"d8"Symbol 599 MovieClip Frame 1Symbol 575 MovieClip
"d11"Symbol 599 MovieClip Frame 1Symbol 575 MovieClip
"d12"Symbol 599 MovieClip Frame 1Symbol 575 MovieClip
"d13"Symbol 599 MovieClip Frame 1Symbol 575 MovieClip
"d14"Symbol 599 MovieClip Frame 1Symbol 575 MovieClip
"d17"Symbol 599 MovieClip Frame 1Symbol 575 MovieClip
"d18"Symbol 599 MovieClip Frame 1Symbol 575 MovieClip
"d5"Symbol 599 MovieClip Frame 1Symbol 575 MovieClip
"d6"Symbol 599 MovieClip Frame 1Symbol 575 MovieClip
"d9"Symbol 599 MovieClip Frame 1Symbol 575 MovieClip
"d10"Symbol 599 MovieClip Frame 1Symbol 575 MovieClip
"d3"Symbol 599 MovieClip Frame 1Symbol 575 MovieClip
"d4"Symbol 599 MovieClip Frame 1Symbol 575 MovieClip
"picture"Symbol 599 MovieClip Frame 2Symbol 598 MovieClip
"d1"Symbol 620 MovieClip Frame 1Symbol 618 MovieClip
"d2"Symbol 620 MovieClip Frame 1Symbol 618 MovieClip
"d3"Symbol 620 MovieClip Frame 1Symbol 618 MovieClip
"d4"Symbol 620 MovieClip Frame 1Symbol 618 MovieClip
"d5"Symbol 620 MovieClip Frame 1Symbol 618 MovieClip
"d6"Symbol 620 MovieClip Frame 1Symbol 618 MovieClip
"d12"Symbol 620 MovieClip Frame 1Symbol 618 MovieClip
"d11"Symbol 620 MovieClip Frame 1Symbol 618 MovieClip
"d10"Symbol 620 MovieClip Frame 1Symbol 618 MovieClip
"d9"Symbol 620 MovieClip Frame 1Symbol 618 MovieClip
"d8"Symbol 620 MovieClip Frame 1Symbol 618 MovieClip
"d7"Symbol 620 MovieClip Frame 1Symbol 618 MovieClip
"d13"Symbol 620 MovieClip Frame 1Symbol 618 MovieClip
"d14"Symbol 620 MovieClip Frame 1Symbol 618 MovieClip
"d15"Symbol 620 MovieClip Frame 1Symbol 618 MovieClip
"d16"Symbol 620 MovieClip Frame 1Symbol 618 MovieClip
"d17"Symbol 620 MovieClip Frame 1Symbol 618 MovieClip
"d18"Symbol 620 MovieClip Frame 1Symbol 618 MovieClip
"shower"Symbol 652 MovieClip [mapbar] Frame 1Symbol 599 MovieClip
"build"Symbol 652 MovieClip [mapbar] Frame 1Symbol 620 MovieClip
"invadebutton"Symbol 652 MovieClip [mapbar] Frame 1Symbol 635 Button
"commandbutton"Symbol 652 MovieClip [mapbar] Frame 1Symbol 641 Button
"escape"Symbol 652 MovieClip [mapbar] Frame 1Symbol 651 MovieClip
"dummy"Symbol 655 MovieClip [light] Frame 1Symbol 101 MovieClip
"selector"Symbol 655 MovieClip [light] Frame 1Symbol 34 MovieClip
"turret"Symbol 655 MovieClip [light] Frame 1Symbol 107 MovieClip
"lifebar"Symbol 655 MovieClip [light] Frame 1Symbol 47 MovieClip
"dummy"Symbol 656 MovieClip [heavy] Frame 1Symbol 111 MovieClip
"selector"Symbol 656 MovieClip [heavy] Frame 1Symbol 34 MovieClip
"turret"Symbol 656 MovieClip [heavy] Frame 1Symbol 114 MovieClip
"lifebar"Symbol 656 MovieClip [heavy] Frame 1Symbol 47 MovieClip
"dummy"Symbol 657 MovieClip [artillery] Frame 1Symbol 32 MovieClip
"selector"Symbol 657 MovieClip [artillery] Frame 1Symbol 34 MovieClip
"turret"Symbol 657 MovieClip [artillery] Frame 1Symbol 44 MovieClip
"lifebar"Symbol 657 MovieClip [artillery] Frame 1Symbol 47 MovieClip
"dummy"Symbol 661 MovieClip [dozer] Frame 1Symbol 660 MovieClip
"selector"Symbol 661 MovieClip [dozer] Frame 1Symbol 34 MovieClip
"lifebar"Symbol 661 MovieClip [dozer] Frame 1Symbol 47 MovieClip
"dummy"Symbol 662 MovieClip [rocket] Frame 1Symbol 117 MovieClip
"selector"Symbol 662 MovieClip [rocket] Frame 1Symbol 34 MovieClip
"turret"Symbol 662 MovieClip [rocket] Frame 1Symbol 128 MovieClip
"lifebar"Symbol 662 MovieClip [rocket] Frame 1Symbol 47 MovieClip
"dummy"Symbol 663 MovieClip [humvee] Frame 1Symbol 131 MovieClip [humveeebase]
"selector"Symbol 663 MovieClip [humvee] Frame 1Symbol 34 MovieClip
"turret"Symbol 663 MovieClip [humvee] Frame 1Symbol 137 MovieClip
"lifebar"Symbol 663 MovieClip [humvee] Frame 1Symbol 47 MovieClip
"dummy"Symbol 664 MovieClip [enemyheavy] Frame 1Symbol 111 MovieClip
"selector"Symbol 664 MovieClip [enemyheavy] Frame 1Symbol 34 MovieClip
"turret"Symbol 664 MovieClip [enemyheavy] Frame 1Symbol 114 MovieClip
"lifebar"Symbol 664 MovieClip [enemyheavy] Frame 1Symbol 47 MovieClip
"dummy"Symbol 665 MovieClip [enemyrocket] Frame 1Symbol 117 MovieClip
"selector"Symbol 665 MovieClip [enemyrocket] Frame 1Symbol 34 MovieClip
"turret"Symbol 665 MovieClip [enemyrocket] Frame 1Symbol 128 MovieClip
"lifebar"Symbol 665 MovieClip [enemyrocket] Frame 1Symbol 47 MovieClip
"selector"Symbol 666 MovieClip [enemyhumvee] Frame 1Symbol 34 MovieClip
"dummy"Symbol 666 MovieClip [enemyhumvee] Frame 1Symbol 131 MovieClip [humveeebase]
"turret"Symbol 666 MovieClip [enemyhumvee] Frame 1Symbol 137 MovieClip
"lifebar"Symbol 666 MovieClip [enemyhumvee] Frame 1Symbol 47 MovieClip
"dummy"Symbol 667 MovieClip [enemylight] Frame 1Symbol 101 MovieClip
"selector"Symbol 667 MovieClip [enemylight] Frame 1Symbol 34 MovieClip
"turret"Symbol 667 MovieClip [enemylight] Frame 1Symbol 107 MovieClip
"lifebar"Symbol 667 MovieClip [enemylight] Frame 1Symbol 47 MovieClip
"dummy"Symbol 668 MovieClip [enemyartillery] Frame 1Symbol 32 MovieClip
"selector"Symbol 668 MovieClip [enemyartillery] Frame 1Symbol 34 MovieClip
"turret"Symbol 668 MovieClip [enemyartillery] Frame 1Symbol 44 MovieClip
"lifebar"Symbol 668 MovieClip [enemyartillery] Frame 1Symbol 47 MovieClip
"dummy"Symbol 669 MovieClip [enemydozer] Frame 1Symbol 660 MovieClip
"selector"Symbol 669 MovieClip [enemydozer] Frame 1Symbol 34 MovieClip
"lifebar"Symbol 669 MovieClip [enemydozer] Frame 1Symbol 47 MovieClip
"boxns"Symbol 736 MovieClip Frame 2Symbol 524 MovieClip
"d1"Symbol 738 MovieClip Frame 1Symbol 736 MovieClip
"d2"Symbol 738 MovieClip Frame 1Symbol 736 MovieClip
"d15"Symbol 738 MovieClip Frame 1Symbol 736 MovieClip
"d16"Symbol 738 MovieClip Frame 1Symbol 736 MovieClip
"d19"Symbol 738 MovieClip Frame 1Symbol 736 MovieClip
"d20"Symbol 738 MovieClip Frame 1Symbol 736 MovieClip
"d7"Symbol 738 MovieClip Frame 1Symbol 736 MovieClip
"d8"Symbol 738 MovieClip Frame 1Symbol 736 MovieClip
"d11"Symbol 738 MovieClip Frame 1Symbol 736 MovieClip
"d12"Symbol 738 MovieClip Frame 1Symbol 736 MovieClip
"d13"Symbol 738 MovieClip Frame 1Symbol 736 MovieClip
"d14"Symbol 738 MovieClip Frame 1Symbol 736 MovieClip
"d17"Symbol 738 MovieClip Frame 1Symbol 736 MovieClip
"d18"Symbol 738 MovieClip Frame 1Symbol 736 MovieClip
"d5"Symbol 738 MovieClip Frame 1Symbol 736 MovieClip
"d6"Symbol 738 MovieClip Frame 1Symbol 736 MovieClip
"d9"Symbol 738 MovieClip Frame 1Symbol 736 MovieClip
"d10"Symbol 738 MovieClip Frame 1Symbol 736 MovieClip
"d3"Symbol 738 MovieClip Frame 1Symbol 736 MovieClip
"d4"Symbol 738 MovieClip Frame 1Symbol 736 MovieClip
"picture"Symbol 738 MovieClip Frame 2Symbol 598 MovieClip
"s"Symbol 786 MovieClip Frame 12Symbol 676 MovieClip
"s"Symbol 800 MovieClip Frame 12Symbol 676 MovieClip
"light"Symbol 804 MovieClip Frame 1Symbol 786 MovieClip
"rocket"Symbol 804 MovieClip Frame 1Symbol 786 MovieClip
"artillery"Symbol 804 MovieClip Frame 1Symbol 786 MovieClip
"heavy"Symbol 804 MovieClip Frame 1Symbol 786 MovieClip
"dozer"Symbol 804 MovieClip Frame 1Symbol 791 MovieClip
"oilbar"Symbol 804 MovieClip Frame 1Symbol 47 MovieClip
"oiltruck"Symbol 804 MovieClip Frame 1Symbol 786 MovieClip
"comcentre"Symbol 804 MovieClip Frame 1Symbol 794 MovieClip
"refinery"Symbol 804 MovieClip Frame 1Symbol 794 MovieClip
"warfactory"Symbol 804 MovieClip Frame 1Symbol 794 MovieClip
"techcentre"Symbol 804 MovieClip Frame 1Symbol 794 MovieClip
"turrets"Symbol 804 MovieClip Frame 1Symbol 796 MovieClip
"patriotmissile"Symbol 804 MovieClip Frame 1Symbol 796 MovieClip
"laser"Symbol 804 MovieClip Frame 1Symbol 796 MovieClip
"servicedepot"Symbol 804 MovieClip Frame 1Symbol 794 MovieClip
"mine"Symbol 804 MovieClip Frame 1Symbol 796 MovieClip
"lasertank"Symbol 804 MovieClip Frame 1Symbol 800 MovieClip
"weaponsilo"Symbol 804 MovieClip Frame 1Symbol 802 MovieClip
"humvee"Symbol 804 MovieClip Frame 1Symbol 786 MovieClip
"centre"Symbol 831 MovieClip Frame 1Symbol 349 MovieClip
"lefts"Symbol 831 MovieClip Frame 1Symbol 830 MovieClip
"tops"Symbol 831 MovieClip Frame 1Symbol 830 MovieClip
"bottoms"Symbol 831 MovieClip Frame 1Symbol 830 MovieClip
"rights"Symbol 831 MovieClip Frame 1Symbol 830 MovieClip
"back"Symbol 846 MovieClip Frame 3Symbol 831 MovieClip
"centre"Symbol 846 MovieClip Frame 4Symbol 349 MovieClip
"back"Symbol 846 MovieClip Frame 8Symbol 361 MovieClip
"back"Symbol 846 MovieClip Frame 10Symbol 365 MovieClip
"back"Symbol 846 MovieClip Frame 11Symbol 845 MovieClip
"nuketimer"Symbol 855 MovieClip [sidebar] Frame 1Symbol 694 MovieClip
"enemynuketimer"Symbol 855 MovieClip [sidebar] Frame 1Symbol 714 MovieClip
"shower"Symbol 855 MovieClip [sidebar] Frame 1Symbol 738 MovieClip
"s1"Symbol 855 MovieClip [sidebar] Frame 1Symbol 764 MovieClip
"s2"Symbol 855 MovieClip [sidebar] Frame 1Symbol 766 MovieClip
"s3"Symbol 855 MovieClip [sidebar] Frame 1Symbol 766 MovieClip
"s4"Symbol 855 MovieClip [sidebar] Frame 1Symbol 766 MovieClip
"s5"Symbol 855 MovieClip [sidebar] Frame 1Symbol 766 MovieClip
"s6"Symbol 855 MovieClip [sidebar] Frame 1Symbol 766 MovieClip
"s7"Symbol 855 MovieClip [sidebar] Frame 1Symbol 766 MovieClip
"s8"Symbol 855 MovieClip [sidebar] Frame 1Symbol 766 MovieClip
"s14"Symbol 855 MovieClip [sidebar] Frame 1Symbol 766 MovieClip
"s9"Symbol 855 MovieClip [sidebar] Frame 1Symbol 766 MovieClip
"s15"Symbol 855 MovieClip [sidebar] Frame 1Symbol 766 MovieClip
"s10"Symbol 855 MovieClip [sidebar] Frame 1Symbol 766 MovieClip
"s16"Symbol 855 MovieClip [sidebar] Frame 1Symbol 766 MovieClip
"s17"Symbol 855 MovieClip [sidebar] Frame 1Symbol 766 MovieClip
"s11"Symbol 855 MovieClip [sidebar] Frame 1Symbol 766 MovieClip
"s18"Symbol 855 MovieClip [sidebar] Frame 1Symbol 766 MovieClip
"s12"Symbol 855 MovieClip [sidebar] Frame 1Symbol 766 MovieClip
"s13"Symbol 855 MovieClip [sidebar] Frame 1Symbol 766 MovieClip
"build"Symbol 855 MovieClip [sidebar] Frame 1Symbol 804 MovieClip
"mapp"Symbol 855 MovieClip [sidebar] Frame 1Symbol 846 MovieClip
"radarscreen"Symbol 855 MovieClip [sidebar] Frame 1Symbol 850 MovieClip
"escape"Symbol 855 MovieClip [sidebar] Frame 1Symbol 854 MovieClip
"b"Symbol 909 MovieClip [SimpleButtonDown] Frame 1Symbol 906 MovieClip [BrdrShdw]
"face"Symbol 909 MovieClip [SimpleButtonDown] Frame 1Symbol 908 MovieClip [BrdrFace]
"b"Symbol 914 MovieClip [SimpleButtonIn] Frame 1Symbol 911 MovieClip [BrdrBlk]
"it"Symbol 914 MovieClip [SimpleButtonIn] Frame 1Symbol 913 MovieClip [BrdrHilght]
"g"Symbol 914 MovieClip [SimpleButtonIn] Frame 1Symbol 906 MovieClip [BrdrShdw]
"face"Symbol 914 MovieClip [SimpleButtonIn] Frame 1Symbol 908 MovieClip [BrdrFace]
"ob"Symbol 915 MovieClip [SimpleButtonUp] Frame 1Symbol 911 MovieClip [BrdrBlk]
"ol"Symbol 915 MovieClip [SimpleButtonUp] Frame 1Symbol 908 MovieClip [BrdrFace]
"ib"Symbol 915 MovieClip [SimpleButtonUp] Frame 1Symbol 906 MovieClip [BrdrShdw]
"il"Symbol 915 MovieClip [SimpleButtonUp] Frame 1Symbol 913 MovieClip [BrdrHilght]
"face"Symbol 915 MovieClip [SimpleButtonUp] Frame 1Symbol 908 MovieClip [BrdrFace]
"boundingBox_mc"Symbol 923 MovieClip [FocusRect] Frame 1Symbol 904 MovieClip [BoundingBox]
"tabCapture"Symbol 924 MovieClip [FocusManager] Frame 1Symbol 921 Button
"boundingBox_mc"Symbol 927 MovieClip [SimpleButton] Frame 1Symbol 904 MovieClip [BoundingBox]
"boundingBox_mc"Symbol 931 MovieClip [Button] Frame 1Symbol 904 MovieClip [BoundingBox]
"bar"Symbol 1026 MovieClip Frame 1Symbol 956 MovieClip
"bargfx"Symbol 1026 MovieClip Frame 1Symbol 959 MovieClip
"tank"Symbol 1026 MovieClip Frame 1Symbol 973 MovieClip
"bargfx"Symbol 1026 MovieClip Frame 2Symbol 959 MovieClip
"bargfx"Symbol 1026 MovieClip Frame 20Symbol 959 MovieClip
"centre"Symbol 1040 MovieClip Frame 1Symbol 1039 MovieClip
"lefts"Symbol 1040 MovieClip Frame 1Symbol 830 MovieClip
"tops"Symbol 1040 MovieClip Frame 1Symbol 830 MovieClip
"bottoms"Symbol 1040 MovieClip Frame 1Symbol 830 MovieClip
"rights"Symbol 1040 MovieClip Frame 1Symbol 830 MovieClip
"oilspill"Symbol 1051 MovieClip Frame 1Symbol 1050 MovieClip
"centre"Symbol 1092 MovieClip Frame 1Symbol 349 MovieClip
"lefts"Symbol 1092 MovieClip Frame 1Symbol 830 MovieClip
"bottoms"Symbol 1092 MovieClip Frame 1Symbol 830 MovieClip
"rights"Symbol 1092 MovieClip Frame 1Symbol 830 MovieClip
"tops"Symbol 1092 MovieClip Frame 1Symbol 830 MovieClip
"water"Symbol 1092 MovieClip Frame 1Symbol 1091 MovieClip
"centre"Symbol 1097 MovieClip Frame 1Symbol 349 MovieClip
"lefts"Symbol 1097 MovieClip Frame 1Symbol 830 MovieClip
"bottoms"Symbol 1097 MovieClip Frame 1Symbol 830 MovieClip
"rights"Symbol 1097 MovieClip Frame 1Symbol 830 MovieClip
"tops"Symbol 1097 MovieClip Frame 1Symbol 830 MovieClip
"centre"Symbol 1102 MovieClip Frame 1Symbol 1101 MovieClip
"lefts"Symbol 1102 MovieClip Frame 1Symbol 830 MovieClip
"tops"Symbol 1102 MovieClip Frame 1Symbol 830 MovieClip
"bottoms"Symbol 1102 MovieClip Frame 1Symbol 830 MovieClip
"rights"Symbol 1102 MovieClip Frame 1Symbol 830 MovieClip
"centre"Symbol 1108 MovieClip Frame 1Symbol 349 MovieClip
"lefts"Symbol 1108 MovieClip Frame 1Symbol 830 MovieClip
"bottoms"Symbol 1108 MovieClip Frame 1Symbol 830 MovieClip
"rights"Symbol 1108 MovieClip Frame 1Symbol 830 MovieClip
"tops"Symbol 1108 MovieClip Frame 1Symbol 830 MovieClip
"water"Symbol 1108 MovieClip Frame 1Symbol 1107 MovieClip
"centre"Symbol 1110 MovieClip Frame 1Symbol 349 MovieClip
"lefts"Symbol 1110 MovieClip Frame 1Symbol 830 MovieClip
"tops"Symbol 1110 MovieClip Frame 1Symbol 830 MovieClip
"bottoms"Symbol 1110 MovieClip Frame 1Symbol 830 MovieClip
"rights"Symbol 1110 MovieClip Frame 1Symbol 830 MovieClip
"lifebar"Symbol 1117 MovieClip Frame 1Symbol 47 MovieClip
"selecteds"Symbol 1139 MovieClip Frame 1Symbol 1137 MovieClip
"selecteds"Symbol 1142 MovieClip Frame 1Symbol 1137 MovieClip
"centre"Symbol 1155 MovieClip Frame 1Symbol 349 MovieClip
"lefts"Symbol 1155 MovieClip Frame 1Symbol 830 MovieClip
"tops"Symbol 1155 MovieClip Frame 1Symbol 830 MovieClip
"bottoms"Symbol 1155 MovieClip Frame 1Symbol 830 MovieClip
"rights"Symbol 1155 MovieClip Frame 1Symbol 830 MovieClip
"water"Symbol 1155 MovieClip Frame 1Symbol 1154 MovieClip
"selector"Symbol 1157 MovieClip Frame 1Symbol 34 MovieClip
"auto"Symbol 1157 MovieClip Frame 1Symbol 150 MovieClip
"lifebar"Symbol 1157 MovieClip Frame 1Symbol 47 MovieClip
"lifebar"Symbol 1159 MovieClip Frame 1Symbol 47 MovieClip
"selector"Symbol 1159 MovieClip Frame 1Symbol 34 MovieClip
"auto"Symbol 1159 MovieClip Frame 1Symbol 457 MovieClip
"selector"Symbol 1161 MovieClip Frame 1Symbol 34 MovieClip
"auto"Symbol 1161 MovieClip Frame 1Symbol 457 MovieClip
"lifebar"Symbol 1161 MovieClip Frame 1Symbol 47 MovieClip
"selector"Symbol 1163 MovieClip Frame 1Symbol 34 MovieClip
"auto"Symbol 1163 MovieClip Frame 1Symbol 457 MovieClip
"lifebar"Symbol 1163 MovieClip Frame 1Symbol 47 MovieClip
"centre"Symbol 1172 MovieClip Frame 1Symbol 349 MovieClip
"lefts"Symbol 1172 MovieClip Frame 1Symbol 830 MovieClip
"bottoms"Symbol 1172 MovieClip Frame 1Symbol 830 MovieClip
"rights"Symbol 1172 MovieClip Frame 1Symbol 830 MovieClip
"tops"Symbol 1172 MovieClip Frame 1Symbol 830 MovieClip
"water"Symbol 1172 MovieClip Frame 1Symbol 1171 MovieClip
"selector"Symbol 1174 MovieClip Frame 1Symbol 34 MovieClip
"lifebar"Symbol 1174 MovieClip Frame 1Symbol 47 MovieClip
"centre"Symbol 1179 MovieClip Frame 1Symbol 349 MovieClip
"lefts"Symbol 1179 MovieClip Frame 1Symbol 830 MovieClip
"bottoms"Symbol 1179 MovieClip Frame 1Symbol 830 MovieClip
"rights"Symbol 1179 MovieClip Frame 1Symbol 830 MovieClip
"tops"Symbol 1179 MovieClip Frame 1Symbol 830 MovieClip
"water"Symbol 1179 MovieClip Frame 1Symbol 1178 MovieClip
"selector"Symbol 1181 MovieClip Frame 1Symbol 34 MovieClip
"lifebar"Symbol 1181 MovieClip Frame 1Symbol 47 MovieClip
"selector"Symbol 1185 MovieClip Frame 1Symbol 34 MovieClip
"auto"Symbol 1185 MovieClip Frame 1Symbol 457 MovieClip
"lifebar"Symbol 1185 MovieClip Frame 1Symbol 47 MovieClip
"centre"Symbol 1187 MovieClip Frame 1Symbol 349 MovieClip
"lefts"Symbol 1187 MovieClip Frame 1Symbol 830 MovieClip
"bottoms"Symbol 1187 MovieClip Frame 1Symbol 830 MovieClip
"rights"Symbol 1187 MovieClip Frame 1Symbol 830 MovieClip
"tops"Symbol 1187 MovieClip Frame 1Symbol 830 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 48 as "artilleryally"
ExportAssets (56)Timeline Frame 1Symbol 56 as "lasertank"
ExportAssets (56)Timeline Frame 1Symbol 64 as "missiondefend2"
ExportAssets (56)Timeline Frame 1Symbol 67 as "missiondefend"
ExportAssets (56)Timeline Frame 1Symbol 70 as "missiondefend6"
ExportAssets (56)Timeline Frame 1Symbol 72 as "missiondefend5"
ExportAssets (56)Timeline Frame 1Symbol 74 as "missiondefend4"
ExportAssets (56)Timeline Frame 1Symbol 76 as "missiondefend3"
ExportAssets (56)Timeline Frame 1Symbol 78 as "mission9"
ExportAssets (56)Timeline Frame 1Symbol 80 as "mission8"
ExportAssets (56)Timeline Frame 1Symbol 82 as "mission6"
ExportAssets (56)Timeline Frame 1Symbol 84 as "mission5"
ExportAssets (56)Timeline Frame 1Symbol 86 as "mission4"
ExportAssets (56)Timeline Frame 1Symbol 94 as "mission2"
ExportAssets (56)Timeline Frame 1Symbol 99 as "mission"
ExportAssets (56)Timeline Frame 1Symbol 108 as "lightally"
ExportAssets (56)Timeline Frame 1Symbol 115 as "heavyally"
ExportAssets (56)Timeline Frame 1Symbol 129 as "rocketally"
ExportAssets (56)Timeline Frame 1Symbol 131 as "humveeebase"
ExportAssets (56)Timeline Frame 1Symbol 138 as "humveeally"
ExportAssets (56)Timeline Frame 1Symbol 143 as "oiltruck"
ExportAssets (56)Timeline Frame 1Symbol 152 as "laserbasedefense"
ExportAssets (56)Timeline Frame 1Symbol 158 as "mine"
ExportAssets (56)Timeline Frame 1Symbol 169 as "turrets"
ExportAssets (56)Timeline Frame 1Symbol 174 as "rad"
ExportAssets (56)Timeline Frame 1Symbol 177 as "laser2"
ExportAssets (56)Timeline Frame 1Symbol 181 as "ionbeams"
ExportAssets (56)Timeline Frame 1Symbol 184 as "laser"
ExportAssets (56)Timeline Frame 1Symbol 190 as "mo"
ExportAssets (56)Timeline Frame 1Symbol 201 as "enemyconstruction"
ExportAssets (56)Timeline Frame 1Symbol 207 as "construction2"
ExportAssets (56)Timeline Frame 1Symbol 215 as "construction"
ExportAssets (56)Timeline Frame 1Symbol 218 as "bigdot2"
ExportAssets (56)Timeline Frame 1Symbol 220 as "bigdot"
ExportAssets (56)Timeline Frame 1Symbol 223 as "dot2"
ExportAssets (56)Timeline Frame 1Symbol 234 as "nuke"
ExportAssets (56)Timeline Frame 1Symbol 239 as "targeter"
ExportAssets (56)Timeline Frame 1Symbol 244 as "nukemiss2"
ExportAssets (56)Timeline Frame 1Symbol 246 as "nukemiss"
ExportAssets (56)Timeline Frame 1Symbol 248 as "padded"
ExportAssets (56)Timeline Frame 1Symbol 453 as "bar"
ExportAssets (56)Timeline Frame 1Symbol 455 as "weaponsilo"
ExportAssets (56)Timeline Frame 1Symbol 459 as "enemyweaponsilo"
ExportAssets (56)Timeline Frame 1Symbol 462 as "enemylasertank"
ExportAssets (56)Timeline Frame 1Symbol 467 as "enemyoiltruck"
ExportAssets (56)Timeline Frame 1Symbol 469 as "enemyturret"
ExportAssets (56)Timeline Frame 1Symbol 471 as "mission3"
ExportAssets (56)Timeline Frame 1Symbol 473 as "enemywarfactory"
ExportAssets (56)Timeline Frame 1Symbol 477 as "enemyrefinery"
ExportAssets (56)Timeline Frame 1Symbol 479 as "enemycomcentre"
ExportAssets (56)Timeline Frame 1Symbol 481 as "enemyservicedepot"
ExportAssets (56)Timeline Frame 1Symbol 483 as "enemytechcentre"
ExportAssets (56)Timeline Frame 1Symbol 485 as "servicedepot"
ExportAssets (56)Timeline Frame 1Symbol 487 as "techcentre"
ExportAssets (56)Timeline Frame 1Symbol 489 as "enemylaser"
ExportAssets (56)Timeline Frame 1Symbol 496 as "enemymine"
ExportAssets (56)Timeline Frame 1Symbol 505 as "enemymultiple"
ExportAssets (56)Timeline Frame 1Symbol 507 as "patriotmiss"
ExportAssets (56)Timeline Frame 1Symbol 509 as "warfactory"
ExportAssets (56)Timeline Frame 1Symbol 511 as "refinery"
ExportAssets (56)Timeline Frame 1Symbol 513 as "comcentre"
ExportAssets (56)Timeline Frame 1Symbol 518 as "enemyconstruction2"
ExportAssets (56)Timeline Frame 1Symbol 652 as "mapbar"
ExportAssets (56)Timeline Frame 1Symbol 654 as "dot"
ExportAssets (56)Timeline Frame 1Symbol 655 as "light"
ExportAssets (56)Timeline Frame 1Symbol 656 as "heavy"
ExportAssets (56)Timeline Frame 1Symbol 657 as "artillery"
ExportAssets (56)Timeline Frame 1Symbol 661 as "dozer"
ExportAssets (56)Timeline Frame 1Symbol 662 as "rocket"
ExportAssets (56)Timeline Frame 1Symbol 663 as "humvee"
ExportAssets (56)Timeline Frame 1Symbol 664 as "enemyheavy"
ExportAssets (56)Timeline Frame 1Symbol 665 as "enemyrocket"
ExportAssets (56)Timeline Frame 1Symbol 666 as "enemyhumvee"
ExportAssets (56)Timeline Frame 1Symbol 667 as "enemylight"
ExportAssets (56)Timeline Frame 1Symbol 668 as "enemyartillery"
ExportAssets (56)Timeline Frame 1Symbol 669 as "enemydozer"
ExportAssets (56)Timeline Frame 1Symbol 671 as "box5"
ExportAssets (56)Timeline Frame 1Symbol 855 as "sidebar"
ExportAssets (56)Timeline Frame 1Symbol 858 as "patriot"
ExportAssets (56)Timeline Frame 1Symbol 864 as "shell2"
ExportAssets (56)Timeline Frame 1Symbol 865 as "emp"
ExportAssets (56)Timeline Frame 1Symbol 870 as "bomb2"
ExportAssets (56)Timeline Frame 1Symbol 874 as "bomb"
ExportAssets (56)Timeline Frame 1Symbol 878 as "bullet"
ExportAssets (56)Timeline Frame 1Symbol 882 as "missile"
ExportAssets (56)Timeline Frame 1Symbol 886 as "flag2"
ExportAssets (56)Timeline Frame 1Symbol 892 as "shell"
ExportAssets (56)Timeline Frame 1Symbol 895 as "flag"
ExportAssets (56)Timeline Frame 1Symbol 898 as "flag copy"
ExportAssets (56)Timeline Frame 1Symbol 904 as "BoundingBox"
ExportAssets (56)Timeline Frame 1Symbol 906 as "BrdrShdw"
ExportAssets (56)Timeline Frame 1Symbol 908 as "BrdrFace"
ExportAssets (56)Timeline Frame 1Symbol 909 as "SimpleButtonDown"
ExportAssets (56)Timeline Frame 1Symbol 911 as "BrdrBlk"
ExportAssets (56)Timeline Frame 1Symbol 913 as "BrdrHilght"
ExportAssets (56)Timeline Frame 1Symbol 914 as "SimpleButtonIn"
ExportAssets (56)Timeline Frame 1Symbol 915 as "SimpleButtonUp"
ExportAssets (56)Timeline Frame 1Symbol 916 as "Defaults"
ExportAssets (56)Timeline Frame 1Symbol 917 as "UIObjectExtensions"
ExportAssets (56)Timeline Frame 1Symbol 918 as "UIObject"
ExportAssets (56)Timeline Frame 1Symbol 923 as "FocusRect"
ExportAssets (56)Timeline Frame 1Symbol 924 as "FocusManager"
ExportAssets (56)Timeline Frame 1Symbol 925 as "UIComponentExtensions"
ExportAssets (56)Timeline Frame 1Symbol 926 as "UIComponent"
ExportAssets (56)Timeline Frame 1Symbol 927 as "SimpleButton"
ExportAssets (56)Timeline Frame 1Symbol 928 as "Border"
ExportAssets (56)Timeline Frame 1Symbol 929 as "RectBorder"
ExportAssets (56)Timeline Frame 1Symbol 930 as "ButtonSkin"
ExportAssets (56)Timeline Frame 1Symbol 931 as "Button"
ExportAssets (56)Timeline Frame 1Symbol 899 as "__Packages.mx.core.UIObject"
ExportAssets (56)Timeline Frame 1Symbol 900 as "__Packages.mx.core.UIComponent"
ExportAssets (56)Timeline Frame 1Symbol 901 as "__Packages.mx.controls.SimpleButton"
ExportAssets (56)Timeline Frame 1Symbol 902 as "__Packages.mx.controls.Button"
ExportAssets (56)Timeline Frame 1Symbol 932 as "__Packages.mx.skins.SkinElement"
ExportAssets (56)Timeline Frame 1Symbol 933 as "__Packages.mx.styles.CSSTextStyles"
ExportAssets (56)Timeline Frame 1Symbol 934 as "__Packages.mx.styles.StyleManager"
ExportAssets (56)Timeline Frame 1Symbol 935 as "__Packages.mx.styles.CSSStyleDeclaration"
ExportAssets (56)Timeline Frame 1Symbol 936 as "__Packages.mx.events.EventDispatcher"
ExportAssets (56)Timeline Frame 1Symbol 937 as "__Packages.mx.events.UIEventDispatcher"
ExportAssets (56)Timeline Frame 1Symbol 938 as "__Packages.mx.skins.ColoredSkinElement"
ExportAssets (56)Timeline Frame 1Symbol 939 as "__Packages.mx.core.ext.UIObjectExtensions"
ExportAssets (56)Timeline Frame 1Symbol 940 as "__Packages.mx.skins.halo.Defaults"
ExportAssets (56)Timeline Frame 1Symbol 941 as "__Packages.mx.managers.DepthManager"
ExportAssets (56)Timeline Frame 1Symbol 942 as "__Packages.mx.managers.SystemManager"
ExportAssets (56)Timeline Frame 1Symbol 943 as "__Packages.mx.managers.FocusManager"
ExportAssets (56)Timeline Frame 1Symbol 944 as "__Packages.mx.skins.halo.FocusRect"
ExportAssets (56)Timeline Frame 1Symbol 945 as "__Packages.mx.managers.OverlappedWindows"
ExportAssets (56)Timeline Frame 1Symbol 946 as "__Packages.mx.styles.CSSSetStyle"
ExportAssets (56)Timeline Frame 1Symbol 947 as "__Packages.mx.core.ext.UIComponentExtensions"
ExportAssets (56)Timeline Frame 1Symbol 948 as "__Packages.mx.skins.Border"
ExportAssets (56)Timeline Frame 1Symbol 949 as "__Packages.mx.skins.RectBorder"
ExportAssets (56)Timeline Frame 1Symbol 950 as "__Packages.mx.skins.halo.RectBorder"
ExportAssets (56)Timeline Frame 1Symbol 951 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 18 MovieClip Frame 1
"red"Symbol 18 MovieClip Frame 2
"deploying"Symbol 32 MovieClip Frame 2
"deployed"Symbol 32 MovieClip Frame 11
"explode"Symbol 32 MovieClip Frame 12
"normal"Symbol 44 MovieClip Frame 1
"ready"Symbol 44 MovieClip Frame 2
"explode"Symbol 51 MovieClip Frame 2
"normal"Symbol 55 MovieClip Frame 1
"explode"Symbol 101 MovieClip Frame 2
"normal"Symbol 107 MovieClip Frame 1
"explode"Symbol 111 MovieClip Frame 2
"normal"Symbol 114 MovieClip Frame 1
"explode"Symbol 117 MovieClip Frame 2
"normal"Symbol 128 MovieClip Frame 1
"rd"Symbol 128 MovieClip Frame 18
"explode"Symbol 131 MovieClip [humveeebase] Frame 2
"normal"Symbol 137 MovieClip Frame 1
"shoot"Symbol 137 MovieClip Frame 7
"sucking"Symbol 142 MovieClip Frame 2
"refining"Symbol 142 MovieClip Frame 3
"explode"Symbol 142 MovieClip Frame 9
"normal"Symbol 148 MovieClip Frame 1
"explode"Symbol 152 MovieClip [laserbasedefense] Frame 2
"explode"Symbol 158 MovieClip [mine] Frame 2
"normal"Symbol 168 MovieClip Frame 1
"explode"Symbol 169 MovieClip [turrets] Frame 2
"locator"Symbol 190 MovieClip [mo] Frame 2
"attacker"Symbol 190 MovieClip [mo] Frame 3
"built"Symbol 201 MovieClip [enemyconstruction] Frame 2
"explode"Symbol 201 MovieClip [enemyconstruction] Frame 3
"built"Symbol 207 MovieClip [construction2] Frame 2
"explode"Symbol 207 MovieClip [construction2] Frame 3
"built"Symbol 215 MovieClip [construction] Frame 2
"explode"Symbol 215 MovieClip [construction] Frame 3
"map0"Symbol 367 MovieClip Frame 1
"map3"Symbol 367 MovieClip Frame 2
"map5"Symbol 367 MovieClip Frame 3
"map1"Symbol 367 MovieClip Frame 4
"map2"Symbol 367 MovieClip Frame 5
"map4"Symbol 367 MovieClip Frame 6
"reverse"Symbol 453 MovieClip [bar] Frame 12
"options"Symbol 453 MovieClip [bar] Frame 27
"skirmish"Symbol 453 MovieClip [bar] Frame 38
"explode"Symbol 455 MovieClip [weaponsilo] Frame 2
"explode"Symbol 459 MovieClip [enemyweaponsilo] Frame 2
"explode"Symbol 461 MovieClip Frame 2
"sucking"Symbol 466 MovieClip Frame 2
"refining"Symbol 466 MovieClip Frame 3
"explode"Symbol 466 MovieClip Frame 9
"explode"Symbol 469 MovieClip [enemyturret] Frame 2
"explode"Symbol 473 MovieClip [enemywarfactory] Frame 2
"explode"Symbol 477 MovieClip [enemyrefinery] Frame 2
"explode"Symbol 479 MovieClip [enemycomcentre] Frame 2
"explode"Symbol 481 MovieClip [enemyservicedepot] Frame 2
"explode"Symbol 483 MovieClip [enemytechcentre] Frame 2
"explode"Symbol 485 MovieClip [servicedepot] Frame 2
"explode"Symbol 487 MovieClip [techcentre] Frame 2
"explode"Symbol 489 MovieClip [enemylaser] Frame 2
"explode"Symbol 496 MovieClip [enemymine] Frame 25
"normal"Symbol 504 MovieClip Frame 1
"rd"Symbol 504 MovieClip Frame 9
"explode"Symbol 505 MovieClip [enemymultiple] Frame 2
"explode"Symbol 507 MovieClip [patriotmiss] Frame 2
"explode"Symbol 509 MovieClip [warfactory] Frame 2
"explode"Symbol 511 MovieClip [refinery] Frame 2
"explode"Symbol 513 MovieClip [comcentre] Frame 2
"built"Symbol 518 MovieClip [enemyconstruction2] Frame 2
"explode"Symbol 518 MovieClip [enemyconstruction2] Frame 3
"none"Symbol 575 MovieClip Frame 1
"artillery"Symbol 575 MovieClip Frame 2
"light"Symbol 575 MovieClip Frame 3
"rocket"Symbol 575 MovieClip Frame 4
"humvee"Symbol 575 MovieClip Frame 5
"heavy"Symbol 575 MovieClip Frame 6
"war factory"Symbol 575 MovieClip Frame 7
"dozer"Symbol 575 MovieClip Frame 8
"comcentre"Symbol 575 MovieClip Frame 9
"oiltruck"Symbol 575 MovieClip Frame 10
"refinery"Symbol 575 MovieClip Frame 11
"construction"Symbol 575 MovieClip Frame 12
"turret1"Symbol 575 MovieClip Frame 13
"turret2"Symbol 575 MovieClip Frame 14
"turret3"Symbol 575 MovieClip Frame 15
"techcentre"Symbol 575 MovieClip Frame 16
"servicedepot"Symbol 575 MovieClip Frame 17
"mine"Symbol 575 MovieClip Frame 18
"lasertank"Symbol 575 MovieClip Frame 19
"weaponsilo"Symbol 575 MovieClip Frame 20
"none"Symbol 598 MovieClip Frame 1
"artillery"Symbol 598 MovieClip Frame 2
"light"Symbol 598 MovieClip Frame 3
"rocket"Symbol 598 MovieClip Frame 4
"humvee"Symbol 598 MovieClip Frame 5
"heavy"Symbol 598 MovieClip Frame 6
"war factory"Symbol 598 MovieClip Frame 7
"dozer"Symbol 598 MovieClip Frame 8
"comcentre"Symbol 598 MovieClip Frame 9
"oiltruck"Symbol 598 MovieClip Frame 10
"refinery"Symbol 598 MovieClip Frame 11
"construction"Symbol 598 MovieClip Frame 12
"turret1"Symbol 598 MovieClip Frame 13
"turret2"Symbol 598 MovieClip Frame 14
"turret3"Symbol 598 MovieClip Frame 15
"techcentre"Symbol 598 MovieClip Frame 16
"servicedepot"Symbol 598 MovieClip Frame 17
"mine"Symbol 598 MovieClip Frame 18
"lasertank"Symbol 598 MovieClip Frame 19
"weaponsilo"Symbol 598 MovieClip Frame 20
"airport"Symbol 598 MovieClip Frame 21
"derrick"Symbol 598 MovieClip Frame 22
"radar"Symbol 598 MovieClip Frame 23
"group"Symbol 599 MovieClip Frame 1
"selected"Symbol 599 MovieClip Frame 2
"none"Symbol 618 MovieClip Frame 1
"artillery"Symbol 618 MovieClip Frame 2
"light"Symbol 618 MovieClip Frame 3
"rocket"Symbol 618 MovieClip Frame 4
"humvee"Symbol 618 MovieClip Frame 5
"heavy"Symbol 618 MovieClip Frame 6
"dozer"Symbol 618 MovieClip Frame 7
"oiltruck"Symbol 618 MovieClip Frame 8
"lasertank"Symbol 618 MovieClip Frame 9
"upgrade"Symbol 652 MovieClip [mapbar] Frame 1
"explode"Symbol 660 MovieClip Frame 2
"nonuke"Symbol 694 MovieClip Frame 1
"nonuke"Symbol 714 MovieClip Frame 1
"none"Symbol 736 MovieClip Frame 1
"artillery"Symbol 736 MovieClip Frame 2
"light"Symbol 736 MovieClip Frame 3
"rocket"Symbol 736 MovieClip Frame 4
"humvee"Symbol 736 MovieClip Frame 5
"heavy"Symbol 736 MovieClip Frame 6
"war factory"Symbol 736 MovieClip Frame 7
"dozer"Symbol 736 MovieClip Frame 8
"comcentre"Symbol 736 MovieClip Frame 9
"oiltruck"Symbol 736 MovieClip Frame 10
"refinery"Symbol 736 MovieClip Frame 11
"construction"Symbol 736 MovieClip Frame 12
"turret1"Symbol 736 MovieClip Frame 13
"turret2"Symbol 736 MovieClip Frame 14
"turret3"Symbol 736 MovieClip Frame 15
"techcentre"Symbol 736 MovieClip Frame 16
"servicedepot"Symbol 736 MovieClip Frame 17
"mine"Symbol 736 MovieClip Frame 18
"lasertank"Symbol 736 MovieClip Frame 19
"weaponsilo"Symbol 736 MovieClip Frame 20
"airport"Symbol 736 MovieClip Frame 21
"derrick"Symbol 736 MovieClip Frame 22
"radar"Symbol 736 MovieClip Frame 23
"group"Symbol 738 MovieClip Frame 1
"selected"Symbol 738 MovieClip Frame 2
"none"Symbol 764 MovieClip Frame 1
"selected"Symbol 764 MovieClip Frame 2
"none"Symbol 766 MovieClip Frame 1
"selected"Symbol 766 MovieClip Frame 2
"none"Symbol 786 MovieClip Frame 1
"selected"Symbol 786 MovieClip Frame 2
"building"Symbol 786 MovieClip Frame 3
"reserved"Symbol 786 MovieClip Frame 12
"none"Symbol 791 MovieClip Frame 1
"selected"Symbol 791 MovieClip Frame 2
"building"Symbol 791 MovieClip Frame 3
"none"Symbol 794 MovieClip Frame 1
"selected"Symbol 794 MovieClip Frame 2
"built"Symbol 794 MovieClip Frame 3
"none"Symbol 796 MovieClip Frame 1
"selected"Symbol 796 MovieClip Frame 2
"none"Symbol 800 MovieClip Frame 1
"selected"Symbol 800 MovieClip Frame 2
"building"Symbol 800 MovieClip Frame 3
"reserved"Symbol 800 MovieClip Frame 12
"already"Symbol 800 MovieClip Frame 13
"none"Symbol 802 MovieClip Frame 1
"selected"Symbol 802 MovieClip Frame 2
"built"Symbol 802 MovieClip Frame 3
"map1"Symbol 846 MovieClip Frame 1
"map2"Symbol 846 MovieClip Frame 2
"dark"Symbol 850 MovieClip Frame 1
"group"Symbol 850 MovieClip Frame 2
"upgrade"Symbol 855 MovieClip [sidebar] Frame 1
"LOAD"Symbol 1026 MovieClip Frame 1
"COMPLETE_STOP"Symbol 1026 MovieClip Frame 2
"explode"Symbol 1117 MovieClip Frame 2
"explode"Symbol 1157 MovieClip Frame 2
"explode"Symbol 1159 MovieClip Frame 2
"explode"Symbol 1161 MovieClip Frame 2
"explode"Symbol 1163 MovieClip Frame 2
"explode"Symbol 1174 MovieClip Frame 2
"explode"Symbol 1181 MovieClip Frame 2
"explode"Symbol 1185 MovieClip Frame 2

Dynamic Text Variables

_root.timertSymbol 92 EditableText"<p align="left"></p>"
_root.wavesSymbol 93 EditableText"<p align="left"></p>"
percentSymbol 194 EditableText"<p align="left"><font face="Arial" size="16" color="#990000" letterSpacing="0.000000" kerning="1">0</font></p>"
percentSymbol 199 EditableText"<p align="left"><font face="Arial" size="16" color="#ffffff" letterSpacing="0.000000" kerning="1">100</font></p>"
percentSymbol 204 EditableText"<p align="left"><font face="Arial" size="16" color="#0000ff" letterSpacing="0.000000" kerning="1">0</font></p>"
percentSymbol 210 EditableText"<p align="left"><font face="Arial" size="16" color="#0000ff" letterSpacing="0.000000" kerning="1">0</font></p>"
percentSymbol 213 EditableText"<p align="left"><font face="Arial" size="16" color="#ffffff" letterSpacing="0.000000" kerning="1">100</font></p>"
scSymbol 310 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 317 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 322 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 326 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 331 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 335 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 376 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 384 EditableText"<p align="left"></p>"
mapnameSymbol 388 EditableText"<p align="center"><font face="MS Reference Sans Serif" size="25" color="#ffff00" letterSpacing="0.000000" kerning="1">Arena</font></p>"
_root.aipSymbol 393 EditableText"<p align="left"><font face="MS Reference Sans Serif" size="15" color="#ffffff" letterSpacing="0.000000" kerning="1">Technology Commander</font></p>"
difficultySymbol 394 EditableText"<p align="left"><font face="MS Reference Sans Serif" size="15" color="#ffffff" letterSpacing="0.000000" kerning="1">Novice Enemy</font></p>"
percentSymbol 516 EditableText"<p align="left"><font face="Arial" size="16" color="#990000" letterSpacing="0.000000" kerning="1">0</font></p>"
statsSymbol 577 EditableText"Rocket Launcher firepower: HP: speed: shellspeed: range: fire period:"
textsSymbol 619 EditableText"<p align="left"></p>"
wordsSymbol 623 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>"
queueSymbol 675 EditableText"1"
percentSymbol 677 EditableText"<p align="left"><font face="Arial" size="14" color="#0000ff" letterSpacing="0.000000" kerning="1"><b>100</b></font></p>"
percentSymbol 697 EditableText"<p align="left"><font face="Arial" size="14" color="#990000" letterSpacing="0.000000" kerning="1"><b>100</b></font></p>"
statsSymbol 737 EditableText"Rocket Launcher firepower: HP: speed: shellspeed: range: fire period:"
textsSymbol 752 EditableText"<p align="center"></p>"
_root.moneySymbol 767 EditableText"<p align="left"></p>"
textsSymbol 772 EditableText"<p align="center"></p>"
_root.objarraysSymbol 1041 EditableText"<p align="left"><font face="Arial" size="12" color="#000000" letterSpacing="0.000000" kerning="1"><b>dddd</b></font></p>"
enemymoneySymbol 1042 EditableText""
killSymbol 1078 EditableText"<p align="left"></p>"
lossSymbol 1079 EditableText"<p align="left"></p>"
builSymbol 1080 EditableText"<p align="left"></p>"
scoresSymbol 1082 EditableText"<p align="left"></p>"
killSymbol 1085 EditableText"<p align="left"></p>"
lossSymbol 1086 EditableText"<p align="left"></p>"
builSymbol 1087 EditableText"<p align="left"></p>"
scoresSymbol 1088 EditableText"<p align="left"></p>"
_root.objarraysSymbol 1112 EditableText"<p align="left"><font face="Arial" size="12" color="#000000" letterSpacing="0.000000" kerning="1"><b>dddd</b></font></p>"
enemymoneySymbol 1114 EditableText""
gathersSymbol 1120 EditableText"<p align="left"></p>"
_root.objarraysSymbol 1164 EditableText"<p align="left"><font face="Arial" size="12" color="#000000" letterSpacing="0.000000" kerning="1"><b>dddd</b></font></p>"
_root.objarraysSymbol 1165 EditableText"<p align="left"><font face="Arial" size="12" color="#000000" letterSpacing="0.000000" kerning="1"><b>dddd</b></font></p>"
killSymbol 1189 EditableText"<p align="left"></p>"
lossSymbol 1190 EditableText"<p align="left"></p>"
builSymbol 1191 EditableText"<p align="left"></p>"
scoresSymbol 1192 EditableText"<p align="left"></p>"
_root.objarraysSymbol 1193 EditableText"<p align="left"><font face="Arial" size="12" color="#000000" letterSpacing="0.000000" kerning="1"><b>dddd</b></font></p>"
enemymoneySymbol 1194 EditableText""




http://swfchan.com/7/30767/info.shtml
Created: 19/5 -2019 04:27:42 Last modified: 19/5 -2019 04:27:42 Server time: 09/05 -2024 16:58:26