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

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

Tank Wars RTS.swf

This is the info page for
Flash #75413

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


Text
Quit

Quit

Options

Options

Skirmish

Skirmish

Campaign

Campaign

Tutorial

Tutorial

v 1.0

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.

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

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

Objective 1:
Objective 2:

Destroy all enemy forces in the area to win.

Objective 1:

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

Objective 1:
Objective 2 :

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

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

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

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

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

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

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

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

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

Base Commander :

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

Objective 1:

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

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

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

Help! Our base is being destroyed!

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

General :

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

$1500

Building:       %

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

Building:       %

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

Building:       %

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

Building:       %

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

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

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

Building:       %

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

1

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

Nuclear Missile :        %

Ready

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

Nuclear Missile :        %

100

100

Nuclear Missile :        %

Rocket Launcher


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

STOP

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

+

+

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

+

+1

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

$

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

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

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

Already built

$

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

Surrender

Surrender

Produced by ASSHOLELA of newgrounds.com.
go to www.newgrounds.com to play the full version.
Please vote =)

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

Press any key to continue...

You are Victorious!

Kills:

Losses:

Built:

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

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

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

Score:

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

You have been defeated!

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

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

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

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

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

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

You are Victorious!

Click to continue...

You have been defeated!

Click to restart...

Choose a territory to invade or command.

Warning  !

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

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

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

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

12

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

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

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

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

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

Welcome Commander !

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

Tank Wars

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

Interface

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

Moving

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

Scrolling

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

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

Attacking

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

Selecting Multiple Units

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

Deselecting Units

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

Identifying Units

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

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

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

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

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

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

Unit  Strengths

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

Unit  Formations

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

Task Buttons

Click to continue

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

Shrouds

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

Buidling a Base

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

Radar

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

Building a Base

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

Oil

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

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

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

Turrets

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

Defending your base.

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

Unit Upgrades

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

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

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

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

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

Tutorial

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

Click to restart

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

Campaign Mode

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

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

The Interface

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

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

Territories

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

Yours

Enemy

Ally

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

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

Invading

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

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

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

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

Defending

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

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

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

Commanding

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

Your Enemy

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

Your Ally

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

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

ActionScript [AS1/AS2]

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

Instance Names

"back"Frame 2Symbol 1024 MovieClip
"comcentre1"Frame 2Symbol 1027 MovieClip
"reinforcement1"Frame 2Symbol 893 MovieClip [flag copy]
"reinforcement2"Frame 2Symbol 893 MovieClip [flag copy]
"reinforcement3"Frame 2Symbol 893 MovieClip [flag copy]
"reinforcement4"Frame 2Symbol 893 MovieClip [flag copy]
"reinforcement5"Frame 2Symbol 893 MovieClip [flag copy]
"reinforcement6"Frame 2Symbol 893 MovieClip [flag copy]
"reinforcement7"Frame 2Symbol 893 MovieClip [flag copy]
"reinforcement8"Frame 2Symbol 893 MovieClip [flag copy]
"reinforcement9"Frame 2Symbol 893 MovieClip [flag copy]
"reinforcement10"Frame 2Symbol 893 MovieClip [flag copy]
"centre"Frame 2Symbol 893 MovieClip [flag copy]
"centre1"Frame 2Symbol 890 MovieClip [flag]
"centre2"Frame 2Symbol 890 MovieClip [flag]
"flagn"Frame 2Symbol 893 MovieClip [flag copy]
"box5"Frame 9Symbol 665 MovieClip [box5]
"back"Frame 9Symbol 1036 MovieClip
"back"Frame 10Symbol 1036 MovieClip
"oil1"Frame 10Symbol 1047 MovieClip
"oil4"Frame 10Symbol 1047 MovieClip
"oil5"Frame 10Symbol 1047 MovieClip
"oil2"Frame 10Symbol 1047 MovieClip
"oil3"Frame 10Symbol 1047 MovieClip
"oil6"Frame 10Symbol 1047 MovieClip
"rig6"Frame 10Symbol 1054 MovieClip
"servpt"Frame 10Symbol 893 MovieClip [flag copy]
"warpt"Frame 10Symbol 893 MovieClip [flag copy]
"refpt"Frame 10Symbol 893 MovieClip [flag copy]
"comcentrept"Frame 10Symbol 893 MovieClip [flag copy]
"waypoint4"Frame 10Symbol 893 MovieClip [flag copy]
"techpt"Frame 10Symbol 893 MovieClip [flag copy]
"turretpt2"Frame 10Symbol 893 MovieClip [flag copy]
"turretpt3"Frame 10Symbol 893 MovieClip [flag copy]
"turretpt1"Frame 10Symbol 893 MovieClip [flag copy]
"turretpt5"Frame 10Symbol 893 MovieClip [flag copy]
"turretpt4"Frame 10Symbol 893 MovieClip [flag copy]
"minept0"Frame 10Symbol 893 MovieClip [flag copy]
"minept1"Frame 10Symbol 893 MovieClip [flag copy]
"minept2"Frame 10Symbol 893 MovieClip [flag copy]
"waypoint100"Frame 10Symbol 893 MovieClip [flag copy]
"waypoint101"Frame 10Symbol 893 MovieClip [flag copy]
"waypoint102"Frame 10Symbol 893 MovieClip [flag copy]
"waypoint103"Frame 10Symbol 893 MovieClip [flag copy]
"waypoint104"Frame 10Symbol 893 MovieClip [flag copy]
"waypoint105"Frame 10Symbol 893 MovieClip [flag copy]
"silopt"Frame 10Symbol 893 MovieClip [flag copy]
"rig10"Frame 10Symbol 1054 MovieClip
"rig11"Frame 10Symbol 1054 MovieClip
"rig12"Frame 10Symbol 1054 MovieClip
"rig19"Frame 10Symbol 1054 MovieClip
"rig122"Frame 10Symbol 1054 MovieClip
"waypoint106"Frame 10Symbol 893 MovieClip [flag copy]
"attackpt"Frame 10Symbol 893 MovieClip [flag copy]
"turretpt6"Frame 10Symbol 893 MovieClip [flag copy]
"turretpt7"Frame 10Symbol 893 MovieClip [flag copy]
"turretpt8"Frame 10Symbol 893 MovieClip [flag copy]
"turretpt9"Frame 10Symbol 893 MovieClip [flag copy]
"minept4"Frame 10Symbol 893 MovieClip [flag copy]
"minept3"Frame 10Symbol 893 MovieClip [flag copy]
"burton"Frame 10Symbol 1056 MovieClip
"rallypoint"Frame 10Symbol 1058 MovieClip
"attackpt1"Frame 10Symbol 893 MovieClip [flag copy]
"attackpt2"Frame 10Symbol 893 MovieClip [flag copy]
"attackpt3"Frame 10Symbol 893 MovieClip [flag copy]
"waypoint44"Frame 10Symbol 893 MovieClip [flag copy]
"box"Frame 10Symbol 1060 MovieClip
"ai"Frame 10Symbol 1062 MovieClip
"rallypoint"Frame 11Symbol 1058 MovieClip
"attackpt1"Frame 11Symbol 893 MovieClip [flag copy]
"attackpt2"Frame 11Symbol 893 MovieClip [flag copy]
"attackpt3"Frame 11Symbol 893 MovieClip [flag copy]
"box5"Frame 13Symbol 665 MovieClip [box5]
"back"Frame 13Symbol 1088 MovieClip
"back"Frame 14Symbol 1088 MovieClip
"oil1"Frame 14Symbol 1047 MovieClip
"oil3"Frame 14Symbol 1047 MovieClip
"oil2"Frame 14Symbol 1047 MovieClip
"burton"Frame 14Symbol 1056 MovieClip
"waypoint44"Frame 14Symbol 893 MovieClip [flag copy]
"flag4"Frame 14Symbol 893 MovieClip [flag copy]
"refpt"Frame 14Symbol 893 MovieClip [flag copy]
"techpt"Frame 14Symbol 893 MovieClip [flag copy]
"silopt"Frame 14Symbol 893 MovieClip [flag copy]
"turretpt1"Frame 14Symbol 893 MovieClip [flag copy]
"turretpt2"Frame 14Symbol 893 MovieClip [flag copy]
"turretpt3"Frame 14Symbol 893 MovieClip [flag copy]
"turretpt4"Frame 14Symbol 893 MovieClip [flag copy]
"turretpt5"Frame 14Symbol 893 MovieClip [flag copy]
"turretpt6"Frame 14Symbol 893 MovieClip [flag copy]
"turretpt7"Frame 14Symbol 893 MovieClip [flag copy]
"turretpt8"Frame 14Symbol 893 MovieClip [flag copy]
"turretpt9"Frame 14Symbol 893 MovieClip [flag copy]
"comcentrept"Frame 14Symbol 893 MovieClip [flag copy]
"warpt"Frame 14Symbol 893 MovieClip [flag copy]
"rig19"Frame 14Symbol 1054 MovieClip
"minept0"Frame 14Symbol 893 MovieClip [flag copy]
"minept1"Frame 14Symbol 893 MovieClip [flag copy]
"minept2"Frame 14Symbol 893 MovieClip [flag copy]
"minept3"Frame 14Symbol 893 MovieClip [flag copy]
"minept4"Frame 14Symbol 893 MovieClip [flag copy]
"rallypoint"Frame 14Symbol 1058 MovieClip
"box"Frame 14Symbol 1060 MovieClip
"waypoint100"Frame 14Symbol 893 MovieClip [flag copy]
"waypoint101"Frame 14Symbol 893 MovieClip [flag copy]
"waypoint102"Frame 14Symbol 893 MovieClip [flag copy]
"waypoint103"Frame 14Symbol 893 MovieClip [flag copy]
"waypoint104"Frame 14Symbol 893 MovieClip [flag copy]
"waypoint105"Frame 14Symbol 893 MovieClip [flag copy]
"attackpt1"Frame 14Symbol 893 MovieClip [flag copy]
"attackpt2"Frame 14Symbol 893 MovieClip [flag copy]
"attackpt3"Frame 14Symbol 893 MovieClip [flag copy]
"ai"Frame 14Symbol 1062 MovieClip
"box5"Frame 15Symbol 665 MovieClip [box5]
"back"Frame 15Symbol 1093 MovieClip
"back"Frame 16Symbol 1093 MovieClip
"oil122"Frame 16Symbol 1047 MovieClip
"oil1"Frame 16Symbol 1047 MovieClip
"oil2"Frame 16Symbol 1047 MovieClip
"oil3"Frame 16Symbol 1047 MovieClip
"servpt"Frame 16Symbol 893 MovieClip [flag copy]
"warpt"Frame 16Symbol 893 MovieClip [flag copy]
"refpt"Frame 16Symbol 893 MovieClip [flag copy]
"comcentrept"Frame 16Symbol 893 MovieClip [flag copy]
"waypoint4"Frame 16Symbol 893 MovieClip [flag copy]
"techpt"Frame 16Symbol 893 MovieClip [flag copy]
"turretpt2"Frame 16Symbol 893 MovieClip [flag copy]
"turretpt3"Frame 16Symbol 893 MovieClip [flag copy]
"turretpt1"Frame 16Symbol 893 MovieClip [flag copy]
"turretpt5"Frame 16Symbol 893 MovieClip [flag copy]
"turretpt4"Frame 16Symbol 893 MovieClip [flag copy]
"minept0"Frame 16Symbol 893 MovieClip [flag copy]
"minept1"Frame 16Symbol 893 MovieClip [flag copy]
"minept2"Frame 16Symbol 893 MovieClip [flag copy]
"waypoint100"Frame 16Symbol 893 MovieClip [flag copy]
"waypoint101"Frame 16Symbol 893 MovieClip [flag copy]
"waypoint102"Frame 16Symbol 893 MovieClip [flag copy]
"waypoint103"Frame 16Symbol 893 MovieClip [flag copy]
"waypoint104"Frame 16Symbol 893 MovieClip [flag copy]
"waypoint105"Frame 16Symbol 893 MovieClip [flag copy]
"silopt"Frame 16Symbol 893 MovieClip [flag copy]
"rig10"Frame 16Symbol 1054 MovieClip
"rig11"Frame 16Symbol 1054 MovieClip
"rig19"Frame 16Symbol 1054 MovieClip
"waypoint106"Frame 16Symbol 893 MovieClip [flag copy]
"rig1"Frame 16Symbol 1054 MovieClip
"turretpt6"Frame 16Symbol 893 MovieClip [flag copy]
"turretpt7"Frame 16Symbol 893 MovieClip [flag copy]
"turretpt8"Frame 16Symbol 893 MovieClip [flag copy]
"turretpt9"Frame 16Symbol 893 MovieClip [flag copy]
"minept4"Frame 16Symbol 893 MovieClip [flag copy]
"minept3"Frame 16Symbol 893 MovieClip [flag copy]
"minept5"Frame 16Symbol 893 MovieClip [flag copy]
"minept6"Frame 16Symbol 893 MovieClip [flag copy]
"attackpt1"Frame 16Symbol 893 MovieClip [flag copy]
"attackpt2"Frame 16Symbol 893 MovieClip [flag copy]
"attackpt3"Frame 16Symbol 893 MovieClip [flag copy]
"burton"Frame 16Symbol 1056 MovieClip
"rallypoint"Frame 16Symbol 1058 MovieClip
"waypoint44"Frame 16Symbol 893 MovieClip [flag copy]
"box"Frame 16Symbol 1060 MovieClip
"ai"Frame 16Symbol 1062 MovieClip
"box5"Frame 17Symbol 665 MovieClip [box5]
"back"Frame 17Symbol 1098 MovieClip
"back"Frame 18Symbol 1098 MovieClip
"oil1"Frame 18Symbol 1047 MovieClip
"oil3"Frame 18Symbol 1047 MovieClip
"servpt"Frame 18Symbol 893 MovieClip [flag copy]
"warpt"Frame 18Symbol 893 MovieClip [flag copy]
"refpt"Frame 18Symbol 893 MovieClip [flag copy]
"comcentrept"Frame 18Symbol 893 MovieClip [flag copy]
"waypoint4"Frame 18Symbol 893 MovieClip [flag copy]
"techpt"Frame 18Symbol 893 MovieClip [flag copy]
"turretpt2"Frame 18Symbol 893 MovieClip [flag copy]
"turretpt3"Frame 18Symbol 893 MovieClip [flag copy]
"turretpt1"Frame 18Symbol 893 MovieClip [flag copy]
"turretpt5"Frame 18Symbol 893 MovieClip [flag copy]
"turretpt4"Frame 18Symbol 893 MovieClip [flag copy]
"minept0"Frame 18Symbol 893 MovieClip [flag copy]
"minept1"Frame 18Symbol 893 MovieClip [flag copy]
"minept2"Frame 18Symbol 893 MovieClip [flag copy]
"waypoint100"Frame 18Symbol 893 MovieClip [flag copy]
"waypoint101"Frame 18Symbol 893 MovieClip [flag copy]
"waypoint102"Frame 18Symbol 893 MovieClip [flag copy]
"waypoint103"Frame 18Symbol 893 MovieClip [flag copy]
"waypoint104"Frame 18Symbol 893 MovieClip [flag copy]
"waypoint105"Frame 18Symbol 893 MovieClip [flag copy]
"silopt"Frame 18Symbol 893 MovieClip [flag copy]
"rig10"Frame 18Symbol 1054 MovieClip
"rig19"Frame 18Symbol 1054 MovieClip
"waypoint106"Frame 18Symbol 893 MovieClip [flag copy]
"turretpt6"Frame 18Symbol 893 MovieClip [flag copy]
"turretpt7"Frame 18Symbol 893 MovieClip [flag copy]
"turretpt8"Frame 18Symbol 893 MovieClip [flag copy]
"turretpt9"Frame 18Symbol 893 MovieClip [flag copy]
"minept4"Frame 18Symbol 893 MovieClip [flag copy]
"minept3"Frame 18Symbol 893 MovieClip [flag copy]
"minept5"Frame 18Symbol 893 MovieClip [flag copy]
"minept6"Frame 18Symbol 893 MovieClip [flag copy]
"attackpt1"Frame 18Symbol 893 MovieClip [flag copy]
"attackpt2"Frame 18Symbol 893 MovieClip [flag copy]
"attackpt3"Frame 18Symbol 893 MovieClip [flag copy]
"burton"Frame 18Symbol 1056 MovieClip
"rallypoint"Frame 18Symbol 1058 MovieClip
"waypoint44"Frame 18Symbol 893 MovieClip [flag copy]
"box"Frame 18Symbol 1060 MovieClip
"waypoint44"Frame 18Symbol 893 MovieClip [flag copy]
"waypoint44"Frame 18Symbol 893 MovieClip [flag copy]
"waypoint44"Frame 18Symbol 893 MovieClip [flag copy]
"waypoint44"Frame 18Symbol 893 MovieClip [flag copy]
"waypoint44"Frame 18Symbol 893 MovieClip [flag copy]
"waypoint44"Frame 18Symbol 893 MovieClip [flag copy]
"waypoint44"Frame 18Symbol 893 MovieClip [flag copy]
"ai"Frame 18Symbol 1062 MovieClip
"box5"Frame 19Symbol 665 MovieClip [box5]
"back"Frame 19Symbol 1104 MovieClip
"back"Frame 20Symbol 1104 MovieClip
"oil1"Frame 20Symbol 1047 MovieClip
"servpt"Frame 20Symbol 893 MovieClip [flag copy]
"warpt"Frame 20Symbol 893 MovieClip [flag copy]
"refpt"Frame 20Symbol 893 MovieClip [flag copy]
"comcentrept"Frame 20Symbol 893 MovieClip [flag copy]
"techpt"Frame 20Symbol 893 MovieClip [flag copy]
"turretpt2"Frame 20Symbol 893 MovieClip [flag copy]
"turretpt3"Frame 20Symbol 893 MovieClip [flag copy]
"turretpt1"Frame 20Symbol 893 MovieClip [flag copy]
"turretpt5"Frame 20Symbol 893 MovieClip [flag copy]
"turretpt4"Frame 20Symbol 893 MovieClip [flag copy]
"minept0"Frame 20Symbol 893 MovieClip [flag copy]
"minept1"Frame 20Symbol 893 MovieClip [flag copy]
"minept2"Frame 20Symbol 893 MovieClip [flag copy]
"waypoint100"Frame 20Symbol 893 MovieClip [flag copy]
"waypoint101"Frame 20Symbol 893 MovieClip [flag copy]
"waypoint102"Frame 20Symbol 893 MovieClip [flag copy]
"waypoint103"Frame 20Symbol 893 MovieClip [flag copy]
"waypoint104"Frame 20Symbol 893 MovieClip [flag copy]
"waypoint105"Frame 20Symbol 893 MovieClip [flag copy]
"silopt"Frame 20Symbol 893 MovieClip [flag copy]
"oil4"Frame 20Symbol 1047 MovieClip
"rig10"Frame 20Symbol 1054 MovieClip
"rig19"Frame 20Symbol 1054 MovieClip
"waypoint106"Frame 20Symbol 893 MovieClip [flag copy]
"turretpt6"Frame 20Symbol 893 MovieClip [flag copy]
"turretpt7"Frame 20Symbol 893 MovieClip [flag copy]
"turretpt8"Frame 20Symbol 893 MovieClip [flag copy]
"turretpt9"Frame 20Symbol 893 MovieClip [flag copy]
"minept4"Frame 20Symbol 893 MovieClip [flag copy]
"minept3"Frame 20Symbol 893 MovieClip [flag copy]
"minept5"Frame 20Symbol 893 MovieClip [flag copy]
"minept6"Frame 20Symbol 893 MovieClip [flag copy]
"rig11"Frame 20Symbol 1054 MovieClip
"rig12"Frame 20Symbol 1054 MovieClip
"rig20"Frame 20Symbol 1054 MovieClip
"rig21"Frame 20Symbol 1054 MovieClip
"attackpt1"Frame 20Symbol 893 MovieClip [flag copy]
"attackpt2"Frame 20Symbol 893 MovieClip [flag copy]
"attackpt3"Frame 20Symbol 893 MovieClip [flag copy]
"burton"Frame 20Symbol 1056 MovieClip
"rallypoint"Frame 20Symbol 1058 MovieClip
"box"Frame 20Symbol 1060 MovieClip
"ai"Frame 20Symbol 1062 MovieClip
"box5"Frame 21Symbol 665 MovieClip [box5]
"back"Frame 21Symbol 1106 MovieClip
"back"Frame 22Symbol 1106 MovieClip
"oil0"Frame 22Symbol 1047 MovieClip
"oil34"Frame 22Symbol 1047 MovieClip
"servpt"Frame 22Symbol 893 MovieClip [flag copy]
"warpt"Frame 22Symbol 893 MovieClip [flag copy]
"refpt"Frame 22Symbol 893 MovieClip [flag copy]
"comcentrept"Frame 22Symbol 893 MovieClip [flag copy]
"techpt"Frame 22Symbol 893 MovieClip [flag copy]
"turretpt2"Frame 22Symbol 893 MovieClip [flag copy]
"turretpt3"Frame 22Symbol 893 MovieClip [flag copy]
"turretpt1"Frame 22Symbol 893 MovieClip [flag copy]
"turretpt5"Frame 22Symbol 893 MovieClip [flag copy]
"turretpt4"Frame 22Symbol 893 MovieClip [flag copy]
"minept0"Frame 22Symbol 893 MovieClip [flag copy]
"minept1"Frame 22Symbol 893 MovieClip [flag copy]
"minept2"Frame 22Symbol 893 MovieClip [flag copy]
"waypoint100"Frame 22Symbol 893 MovieClip [flag copy]
"waypoint101"Frame 22Symbol 893 MovieClip [flag copy]
"waypoint102"Frame 22Symbol 893 MovieClip [flag copy]
"waypoint103"Frame 22Symbol 893 MovieClip [flag copy]
"waypoint104"Frame 22Symbol 893 MovieClip [flag copy]
"waypoint105"Frame 22Symbol 893 MovieClip [flag copy]
"silopt"Frame 22Symbol 893 MovieClip [flag copy]
"oil9"Frame 22Symbol 1047 MovieClip
"waypoint106"Frame 22Symbol 893 MovieClip [flag copy]
"turretpt6"Frame 22Symbol 893 MovieClip [flag copy]
"turretpt7"Frame 22Symbol 893 MovieClip [flag copy]
"turretpt8"Frame 22Symbol 893 MovieClip [flag copy]
"turretpt9"Frame 22Symbol 893 MovieClip [flag copy]
"minept4"Frame 22Symbol 893 MovieClip [flag copy]
"minept3"Frame 22Symbol 893 MovieClip [flag copy]
"minept5"Frame 22Symbol 893 MovieClip [flag copy]
"minept6"Frame 22Symbol 893 MovieClip [flag copy]
"rig12"Frame 22Symbol 1054 MovieClip
"oil1"Frame 22Symbol 1047 MovieClip
"rig19"Frame 22Symbol 1054 MovieClip
"oil33"Frame 22Symbol 1047 MovieClip
"oil8"Frame 22Symbol 1047 MovieClip
"oil6"Frame 22Symbol 1047 MovieClip
"rig19"Frame 22Symbol 1054 MovieClip
"rig31"Frame 22Symbol 1054 MovieClip
"rig20"Frame 22Symbol 1054 MovieClip
"attackpt1"Frame 22Symbol 893 MovieClip [flag copy]
"attackpt2"Frame 22Symbol 893 MovieClip [flag copy]
"attackpt3"Frame 22Symbol 893 MovieClip [flag copy]
"burton"Frame 22Symbol 1056 MovieClip
"rallypoint"Frame 22Symbol 1058 MovieClip
"box"Frame 22Symbol 1060 MovieClip
"ai"Frame 22Symbol 1062 MovieClip
"box5"Frame 25Symbol 665 MovieClip [box5]
"back"Frame 25Symbol 825 MovieClip
"back"Frame 26Symbol 825 MovieClip
"comcentre1"Frame 26Symbol 642 MovieClip [comcentre]
"refinery1"Frame 26Symbol 640 MovieClip [refinery]
"warfactorey1"Frame 26Symbol 638 MovieClip [warfactory]
"pat1"Frame 26Symbol 636 MovieClip [patriotmiss]
"wall1"Frame 26Symbol 1113 MovieClip
"pat2"Frame 26Symbol 636 MovieClip [patriotmiss]
"wall2"Frame 26Symbol 1113 MovieClip
"oil3"Frame 26Symbol 1047 MovieClip
"rig10"Frame 26Symbol 1054 MovieClip
"burton"Frame 26Symbol 1056 MovieClip
"rallypoint"Frame 26Symbol 1058 MovieClip
"tartar"Frame 26Symbol 893 MovieClip [flag copy]
"tart"Frame 26Symbol 893 MovieClip [flag copy]
"tart2"Frame 26Symbol 893 MovieClip [flag copy]
"tart3"Frame 26Symbol 893 MovieClip [flag copy]
"tart4"Frame 26Symbol 893 MovieClip [flag copy]
"box"Frame 26Symbol 1060 MovieClip
"ai"Frame 26Symbol 1117 MovieClip
"ai"Frame 27Symbol 1117 MovieClip
"ai"Frame 28Symbol 1117 MovieClip
"back"Frame 29Symbol 1106 MovieClip
"box5"Frame 29Symbol 665 MovieClip [box5]
"back"Frame 30Symbol 1106 MovieClip
"tartar"Frame 30Symbol 893 MovieClip [flag copy]
"tart5"Frame 30Symbol 893 MovieClip [flag copy]
"tart6"Frame 30Symbol 893 MovieClip [flag copy]
"warfactory1"Frame 30Symbol 638 MovieClip [warfactory]
"comcentre1"Frame 30Symbol 642 MovieClip [comcentre]
"wall1"Frame 30Symbol 1113 MovieClip
"wall2"Frame 30Symbol 1113 MovieClip
"enemywarfactory1"Frame 30Symbol 893 MovieClip [flag copy]
"enemywarfactory2"Frame 30Symbol 893 MovieClip [flag copy]
"oil6"Frame 30Symbol 1047 MovieClip
"rig11"Frame 30Symbol 1054 MovieClip
"oil4"Frame 30Symbol 1047 MovieClip
"rig5"Frame 30Symbol 1054 MovieClip
"enemywarfactory4"Frame 30Symbol 893 MovieClip [flag copy]
"enemywarfactory3"Frame 30Symbol 893 MovieClip [flag copy]
"lock1"Frame 30Symbol 893 MovieClip [flag copy]
"burton"Frame 30Symbol 1056 MovieClip
"techcentre1"Frame 30Symbol 617 MovieClip [techcentre]
"refinery1"Frame 30Symbol 640 MovieClip [refinery]
"servicedepot1"Frame 30Symbol 615 MovieClip [servicedepot]
"rallypoint"Frame 30Symbol 1058 MovieClip
"box"Frame 30Symbol 1060 MovieClip
"ai"Frame 30Symbol 1117 MovieClip
"ai"Frame 31Symbol 1117 MovieClip
"ai"Frame 32Symbol 1117 MovieClip
"map2"Frame 33Symbol 1135 MovieClip
"map6"Frame 33Symbol 1135 MovieClip
"map3"Frame 33Symbol 1138 MovieClip
"map5"Frame 33Symbol 1135 MovieClip
"map9"Frame 33Symbol 1135 MovieClip
"map8"Frame 33Symbol 1135 MovieClip
"map4"Frame 33Symbol 1135 MovieClip
"map7"Frame 33Symbol 1135 MovieClip
"ai"Frame 33Symbol 1117 MovieClip
"alarm"Frame 33Symbol 1146 MovieClip
"back"Frame 34Symbol 1150 MovieClip
"box5"Frame 34Symbol 665 MovieClip [box5]
"back"Frame 35Symbol 1150 MovieClip
"lock2"Frame 35Symbol 893 MovieClip [flag copy]
"wall2"Frame 35Symbol 1113 MovieClip
"wall3"Frame 35Symbol 1113 MovieClip
"wall1"Frame 35Symbol 1113 MovieClip
"enemytechcentre1"Frame 35Symbol 613 MovieClip [enemytechcentre]
"enemyservicedepot1"Frame 35Symbol 611 MovieClip [enemyservicedepot]
"flag2"Frame 35Symbol 893 MovieClip [flag copy]
"flag1"Frame 35Symbol 893 MovieClip [flag copy]
"flag4"Frame 35Symbol 893 MovieClip [flag copy]
"flag3"Frame 35Symbol 893 MovieClip [flag copy]
"ai"Frame 35Symbol 1117 MovieClip
"waypoint1"Frame 35Symbol 893 MovieClip [flag copy]
"waypoint2"Frame 35Symbol 893 MovieClip [flag copy]
"waypoint3"Frame 35Symbol 893 MovieClip [flag copy]
"waypoint47"Frame 35Symbol 893 MovieClip [flag copy]
"waypoint16"Frame 35Symbol 893 MovieClip [flag copy]
"waypoint2"Frame 35Symbol 893 MovieClip [flag copy]
"waypoint21"Frame 35Symbol 893 MovieClip [flag copy]
"waypoint22"Frame 35Symbol 893 MovieClip [flag copy]
"waypoint23"Frame 35Symbol 893 MovieClip [flag copy]
"enemyrefinery1"Frame 35Symbol 607 MovieClip [enemyrefinery]
"comally"Frame 35Symbol 1152 MovieClip
"enemywarfactory1"Frame 35Symbol 603 MovieClip [enemywarfactory]
"warally"Frame 35Symbol 1154 MovieClip
"oil6"Frame 35Symbol 1047 MovieClip
"rig11"Frame 35Symbol 1054 MovieClip
"oil5"Frame 35Symbol 1047 MovieClip
"rig12"Frame 35Symbol 1054 MovieClip
"oil3"Frame 35Symbol 1047 MovieClip
"rig9"Frame 35Symbol 1054 MovieClip
"oil1"Frame 35Symbol 1047 MovieClip
"rig1"Frame 35Symbol 1054 MovieClip
"waypoint101"Frame 35Symbol 893 MovieClip [flag copy]
"waypoint102"Frame 35Symbol 893 MovieClip [flag copy]
"waypoint103"Frame 35Symbol 893 MovieClip [flag copy]
"waypoint104"Frame 35Symbol 893 MovieClip [flag copy]
"waypoint105"Frame 35Symbol 893 MovieClip [flag copy]
"rallypoint"Frame 35Symbol 1058 MovieClip
"lock1"Frame 35Symbol 893 MovieClip [flag copy]
"burton"Frame 35Symbol 1056 MovieClip
"box"Frame 35Symbol 1060 MovieClip
"ai"Frame 36Symbol 1117 MovieClip
"back"Frame 38Symbol 1106 MovieClip
"box5"Frame 38Symbol 665 MovieClip [box5]
"back"Frame 39Symbol 1106 MovieClip
"reinforcement"Frame 39Symbol 893 MovieClip [flag copy]
"oil6"Frame 39Symbol 1047 MovieClip
"rig11"Frame 39Symbol 1054 MovieClip
"oil4"Frame 39Symbol 1047 MovieClip
"rig5"Frame 39Symbol 1054 MovieClip
"oil3"Frame 39Symbol 1047 MovieClip
"rig10"Frame 39Symbol 1054 MovieClip
"flag1"Frame 39Symbol 893 MovieClip [flag copy]
"waypoint1"Frame 39Symbol 893 MovieClip [flag copy]
"waypoint2"Frame 39Symbol 893 MovieClip [flag copy]
"waypoint3"Frame 39Symbol 893 MovieClip [flag copy]
"waypoint47"Frame 39Symbol 893 MovieClip [flag copy]
"waypoint16"Frame 39Symbol 893 MovieClip [flag copy]
"waypoint2"Frame 39Symbol 893 MovieClip [flag copy]
"waypoint21"Frame 39Symbol 893 MovieClip [flag copy]
"waypoint22"Frame 39Symbol 893 MovieClip [flag copy]
"waypoint23"Frame 39Symbol 893 MovieClip [flag copy]
"lock1"Frame 39Symbol 893 MovieClip [flag copy]
"waypoint102"Frame 39Symbol 893 MovieClip [flag copy]
"waypoint103"Frame 39Symbol 893 MovieClip [flag copy]
"waypoint104"Frame 39Symbol 893 MovieClip [flag copy]
"waypoint105"Frame 39Symbol 893 MovieClip [flag copy]
"rallypoint"Frame 39Symbol 1058 MovieClip
"ai"Frame 39Symbol 1117 MovieClip
"tartar"Frame 39Symbol 893 MovieClip [flag copy]
"burton"Frame 39Symbol 1056 MovieClip
"box"Frame 39Symbol 1060 MovieClip
"ai"Frame 40Symbol 1117 MovieClip
"ai"Frame 41Symbol 1117 MovieClip
"back"Frame 42Symbol 1150 MovieClip
"box5"Frame 42Symbol 665 MovieClip [box5]
"back"Frame 43Symbol 1088 MovieClip
"ai"Frame 43Symbol 1117 MovieClip
"production1"Frame 43Symbol 603 MovieClip [enemywarfactory]
"production4"Frame 43Symbol 603 MovieClip [enemywarfactory]
"production3"Frame 43Symbol 603 MovieClip [enemywarfactory]
"production2"Frame 43Symbol 603 MovieClip [enemywarfactory]
"enemywarfactory1"Frame 43Symbol 603 MovieClip [enemywarfactory]
"enemyrefinery1"Frame 43Symbol 607 MovieClip [enemyrefinery]
"enemytechcentre1"Frame 43Symbol 613 MovieClip [enemytechcentre]
"enemyservicedepot1"Frame 43Symbol 611 MovieClip [enemyservicedepot]
"enemycomcentre1"Frame 43Symbol 609 MovieClip [enemycomcentre]
"oil6"Frame 43Symbol 1047 MovieClip
"rig11"Frame 43Symbol 1054 MovieClip
"oil5"Frame 43Symbol 1047 MovieClip
"rig1"Frame 43Symbol 1054 MovieClip
"oil4"Frame 43Symbol 1047 MovieClip
"rig2"Frame 43Symbol 1054 MovieClip
"waypoint1"Frame 43Symbol 893 MovieClip [flag copy]
"rallypoint"Frame 43Symbol 1058 MovieClip
"lock1"Frame 43Symbol 893 MovieClip [flag copy]
"lock2"Frame 43Symbol 893 MovieClip [flag copy]
"reinforcement"Frame 43Symbol 893 MovieClip [flag copy]
"waypoint47"Frame 43Symbol 893 MovieClip [flag copy]
"waypoint101"Frame 43Symbol 893 MovieClip [flag copy]
"waypoint100"Frame 43Symbol 893 MovieClip [flag copy]
"waypoint103"Frame 43Symbol 893 MovieClip [flag copy]
"waypoint74"Frame 43Symbol 893 MovieClip [flag copy]
"waypoint105"Frame 43Symbol 893 MovieClip [flag copy]
"burton"Frame 43Symbol 1056 MovieClip
"box"Frame 43Symbol 1060 MovieClip
"ai"Frame 44Symbol 1117 MovieClip
"waypoint3"Frame 45Symbol 893 MovieClip [flag copy]
"waypoint2"Frame 45Symbol 893 MovieClip [flag copy]
"back"Frame 46Symbol 1088 MovieClip
"box5"Frame 46Symbol 665 MovieClip [box5]
"back"Frame 47Symbol 1088 MovieClip
"production1"Frame 47Symbol 1154 MovieClip
"production4"Frame 47Symbol 1154 MovieClip
"production3"Frame 47Symbol 1154 MovieClip
"production2"Frame 47Symbol 1154 MovieClip
"oil6"Frame 47Symbol 1047 MovieClip
"rig11"Frame 47Symbol 1054 MovieClip
"oil4"Frame 47Symbol 1047 MovieClip
"rig2"Frame 47Symbol 1054 MovieClip
"flag4"Frame 47Symbol 893 MovieClip [flag copy]
"flag2"Frame 47Symbol 893 MovieClip [flag copy]
"flag3"Frame 47Symbol 893 MovieClip [flag copy]
"oil5"Frame 47Symbol 1047 MovieClip
"rig1"Frame 47Symbol 1054 MovieClip
"ai"Frame 47Symbol 1117 MovieClip
"flag1"Frame 47Symbol 893 MovieClip [flag copy]
"waypoint1"Frame 47Symbol 893 MovieClip [flag copy]
"waypoint2"Frame 47Symbol 893 MovieClip [flag copy]
"waypoint3"Frame 47Symbol 893 MovieClip [flag copy]
"waypoint47"Frame 47Symbol 893 MovieClip [flag copy]
"waypoint16"Frame 47Symbol 893 MovieClip [flag copy]
"waypoint2"Frame 47Symbol 893 MovieClip [flag copy]
"waypoint21"Frame 47Symbol 893 MovieClip [flag copy]
"waypoint22"Frame 47Symbol 893 MovieClip [flag copy]
"waypoint23"Frame 47Symbol 893 MovieClip [flag copy]
"waypoint103"Frame 47Symbol 893 MovieClip [flag copy]
"waypoint104"Frame 47Symbol 893 MovieClip [flag copy]
"rallypoint"Frame 47Symbol 1058 MovieClip
"lock1"Frame 47Symbol 893 MovieClip [flag copy]
"lock2"Frame 47Symbol 893 MovieClip [flag copy]
"reinforcement"Frame 47Symbol 893 MovieClip [flag copy]
"burton"Frame 47Symbol 1056 MovieClip
"box"Frame 47Symbol 1060 MovieClip
"ai"Frame 48Symbol 1117 MovieClip
"back"Frame 50Symbol 1167 MovieClip
"box5"Frame 50Symbol 665 MovieClip [box5]
"ai"Frame 51Symbol 1117 MovieClip
"enemycomcentre1"Frame 51Symbol 609 MovieClip [enemycomcentre]
"enemywarfactory1"Frame 51Symbol 603 MovieClip [enemywarfactory]
"enemyweaponsilo1"Frame 51Symbol 589 MovieClip [enemyweaponsilo]
"sensor1"Frame 51Symbol 1169 MovieClip
"sensor2"Frame 51Symbol 1169 MovieClip
"sensor3"Frame 51Symbol 1169 MovieClip
"rallypoint"Frame 51Symbol 1058 MovieClip
"lock1"Frame 51Symbol 893 MovieClip [flag copy]
"lock2"Frame 51Symbol 893 MovieClip [flag copy]
"reinforcement"Frame 51Symbol 893 MovieClip [flag copy]
"enemytechcentre1"Frame 51Symbol 613 MovieClip [enemytechcentre]
"enemyservicedepot1"Frame 51Symbol 611 MovieClip [enemyservicedepot]
"enemyrefinery1"Frame 51Symbol 607 MovieClip [enemyrefinery]
"oil6"Frame 51Symbol 1047 MovieClip
"rig11"Frame 51Symbol 1054 MovieClip
"oil5"Frame 51Symbol 1047 MovieClip
"rig10"Frame 51Symbol 1054 MovieClip
"waypoint101"Frame 51Symbol 893 MovieClip [flag copy]
"waypoint102"Frame 51Symbol 893 MovieClip [flag copy]
"waypoint103"Frame 51Symbol 893 MovieClip [flag copy]
"waypoint104"Frame 51Symbol 893 MovieClip [flag copy]
"waypoint105"Frame 51Symbol 893 MovieClip [flag copy]
"burton"Frame 51Symbol 1056 MovieClip
"box"Frame 51Symbol 1060 MovieClip
"ai"Frame 52Symbol 1117 MovieClip
"waypoint3"Frame 53Symbol 893 MovieClip [flag copy]
"waypoint2"Frame 53Symbol 893 MovieClip [flag copy]
"waypoint1"Frame 53Symbol 893 MovieClip [flag copy]
"back"Frame 54Symbol 1167 MovieClip
"box5"Frame 54Symbol 665 MovieClip [box5]
"back"Frame 55Symbol 1167 MovieClip
"reinforcement"Frame 55Symbol 893 MovieClip [flag copy]
"flag1"Frame 55Symbol 893 MovieClip [flag copy]
"waypoint1"Frame 55Symbol 893 MovieClip [flag copy]
"waypoint2"Frame 55Symbol 893 MovieClip [flag copy]
"waypoint3"Frame 55Symbol 893 MovieClip [flag copy]
"waypoint47"Frame 55Symbol 893 MovieClip [flag copy]
"waypoint16"Frame 55Symbol 893 MovieClip [flag copy]
"waypoint2"Frame 55Symbol 893 MovieClip [flag copy]
"waypoint21"Frame 55Symbol 893 MovieClip [flag copy]
"waypoint22"Frame 55Symbol 893 MovieClip [flag copy]
"waypoint23"Frame 55Symbol 893 MovieClip [flag copy]
"lock1"Frame 55Symbol 893 MovieClip [flag copy]
"sensor2"Frame 55Symbol 1169 MovieClip
"sensor3"Frame 55Symbol 1169 MovieClip
"oil6"Frame 55Symbol 1047 MovieClip
"rig11"Frame 55Symbol 1054 MovieClip
"rallypoint"Frame 55Symbol 1058 MovieClip
"ai"Frame 55Symbol 1117 MovieClip
"lock2"Frame 55Symbol 893 MovieClip [flag copy]
"waypoint101"Frame 55Symbol 893 MovieClip [flag copy]
"waypoint102"Frame 55Symbol 893 MovieClip [flag copy]
"waypoint103"Frame 55Symbol 893 MovieClip [flag copy]
"sensor1"Frame 55Symbol 1169 MovieClip
"oil5"Frame 55Symbol 1047 MovieClip
"rig10"Frame 55Symbol 1054 MovieClip
"waypoint101"Frame 55Symbol 893 MovieClip [flag copy]
"burton"Frame 55Symbol 1056 MovieClip
"box"Frame 55Symbol 1060 MovieClip
"ai"Frame 56Symbol 1117 MovieClip
"ai"Frame 57Symbol 1117 MovieClip
"back"Frame 58Symbol 1093 MovieClip
"box5"Frame 58Symbol 665 MovieClip [box5]
"ai"Frame 59Symbol 1117 MovieClip
"rallypoint"Frame 59Symbol 1058 MovieClip
"lock1"Frame 59Symbol 893 MovieClip [flag copy]
"lock2"Frame 59Symbol 893 MovieClip [flag copy]
"reinforcement"Frame 59Symbol 893 MovieClip [flag copy]
"oil5"Frame 59Symbol 1047 MovieClip
"rig10"Frame 59Symbol 1054 MovieClip
"oil4"Frame 59Symbol 1047 MovieClip
"oil3"Frame 59Symbol 1047 MovieClip
"rig8"Frame 59Symbol 1054 MovieClip
"enemycomcentre1"Frame 59Symbol 609 MovieClip [enemycomcentre]
"enemyrefinery1"Frame 59Symbol 607 MovieClip [enemyrefinery]
"enemyservicedepot1"Frame 59Symbol 611 MovieClip [enemyservicedepot]
"enemyweaponsilo1"Frame 59Symbol 589 MovieClip [enemyweaponsilo]
"enemywarfactory1"Frame 59Symbol 603 MovieClip [enemywarfactory]
"enemytechcentre1"Frame 59Symbol 613 MovieClip [enemytechcentre]
"flag1"Frame 59Symbol 893 MovieClip [flag copy]
"waypoint1"Frame 59Symbol 893 MovieClip [flag copy]
"waypoint3"Frame 59Symbol 893 MovieClip [flag copy]
"waypoint47"Frame 59Symbol 893 MovieClip [flag copy]
"waypoint16"Frame 59Symbol 893 MovieClip [flag copy]
"waypoint2"Frame 59Symbol 893 MovieClip [flag copy]
"waypoint21"Frame 59Symbol 893 MovieClip [flag copy]
"waypoint22"Frame 59Symbol 893 MovieClip [flag copy]
"waypoint23"Frame 59Symbol 893 MovieClip [flag copy]
"waypoint102"Frame 59Symbol 893 MovieClip [flag copy]
"waypoint103"Frame 59Symbol 893 MovieClip [flag copy]
"burton"Frame 59Symbol 1056 MovieClip
"box"Frame 59Symbol 1060 MovieClip
"ai"Frame 60Symbol 1117 MovieClip
"waypoint3"Frame 61Symbol 893 MovieClip [flag copy]
"waypoint2"Frame 61Symbol 893 MovieClip [flag copy]
"waypoint1"Frame 61Symbol 893 MovieClip [flag copy]
"back"Frame 62Symbol 1093 MovieClip
"box5"Frame 62Symbol 665 MovieClip [box5]
"back"Frame 63Symbol 1093 MovieClip
"reinforcement"Frame 63Symbol 893 MovieClip [flag copy]
"flag1"Frame 63Symbol 893 MovieClip [flag copy]
"waypoint1"Frame 63Symbol 893 MovieClip [flag copy]
"waypoint2"Frame 63Symbol 893 MovieClip [flag copy]
"waypoint3"Frame 63Symbol 893 MovieClip [flag copy]
"waypoint47"Frame 63Symbol 893 MovieClip [flag copy]
"waypoint16"Frame 63Symbol 893 MovieClip [flag copy]
"waypoint21"Frame 63Symbol 893 MovieClip [flag copy]
"waypoint22"Frame 63Symbol 893 MovieClip [flag copy]
"waypoint23"Frame 63Symbol 893 MovieClip [flag copy]
"lock1"Frame 63Symbol 893 MovieClip [flag copy]
"techcentre1"Frame 63Symbol 617 MovieClip [techcentre]
"oil5"Frame 63Symbol 1047 MovieClip
"rig10"Frame 63Symbol 1054 MovieClip
"oil4"Frame 63Symbol 1047 MovieClip
"waypoint100"Frame 63Symbol 893 MovieClip [flag copy]
"waypoint101"Frame 63Symbol 893 MovieClip [flag copy]
"waypoint102"Frame 63Symbol 893 MovieClip [flag copy]
"waypoint103"Frame 63Symbol 893 MovieClip [flag copy]
"waypoint104"Frame 63Symbol 893 MovieClip [flag copy]
"rallypoint"Frame 63Symbol 1058 MovieClip
"ai"Frame 63Symbol 1117 MovieClip
"lock2"Frame 63Symbol 893 MovieClip [flag copy]
"waypoint101"Frame 63Symbol 893 MovieClip [flag copy]
"waypoint102"Frame 63Symbol 893 MovieClip [flag copy]
"waypoint103"Frame 63Symbol 893 MovieClip [flag copy]
"oil3"Frame 63Symbol 1047 MovieClip
"rig8"Frame 63Symbol 1054 MovieClip
"burton"Frame 63Symbol 1056 MovieClip
"box"Frame 63Symbol 1060 MovieClip
"ai"Frame 64Symbol 1117 MovieClip
"back"Frame 66Symbol 1174 MovieClip
"box5"Frame 66Symbol 665 MovieClip [box5]
"ai"Frame 67Symbol 1117 MovieClip
"enemyrefinery1"Frame 67Symbol 607 MovieClip [enemyrefinery]
"derrick1"Frame 67Symbol 1176 MovieClip
"derrick2"Frame 67Symbol 1176 MovieClip
"derrick3"Frame 67Symbol 1176 MovieClip
"derrick4"Frame 67Symbol 1176 MovieClip
"enemycomcentre1"Frame 67Symbol 609 MovieClip [enemycomcentre]
"enemyservicedepot1"Frame 67Symbol 611 MovieClip [enemyservicedepot]
"enemytechcentre1"Frame 67Symbol 613 MovieClip [enemytechcentre]
"enemywarfactory1"Frame 67Symbol 603 MovieClip [enemywarfactory]
"oil5"Frame 67Symbol 1047 MovieClip
"rig10"Frame 67Symbol 1054 MovieClip
"rig11"Frame 67Symbol 1054 MovieClip
"rig12"Frame 67Symbol 1054 MovieClip
"oil4"Frame 67Symbol 1047 MovieClip
"oil3"Frame 67Symbol 1047 MovieClip
"reinforcement"Frame 67Symbol 893 MovieClip [flag copy]
"lock1"Frame 67Symbol 893 MovieClip [flag copy]
"waypoint1"Frame 67Symbol 893 MovieClip [flag copy]
"waypoint2"Frame 67Symbol 893 MovieClip [flag copy]
"waypoint3"Frame 67Symbol 893 MovieClip [flag copy]
"waypoint47"Frame 67Symbol 893 MovieClip [flag copy]
"waypoint16"Frame 67Symbol 893 MovieClip [flag copy]
"waypoint21"Frame 67Symbol 893 MovieClip [flag copy]
"waypoint22"Frame 67Symbol 893 MovieClip [flag copy]
"waypoint23"Frame 67Symbol 893 MovieClip [flag copy]
"waypoint100"Frame 67Symbol 893 MovieClip [flag copy]
"waypoint101"Frame 67Symbol 893 MovieClip [flag copy]
"waypoint102"Frame 67Symbol 893 MovieClip [flag copy]
"waypoint103"Frame 67Symbol 893 MovieClip [flag copy]
"waypoint104"Frame 67Symbol 893 MovieClip [flag copy]
"flag1"Frame 67Symbol 893 MovieClip [flag copy]
"burton"Frame 67Symbol 1056 MovieClip
"box"Frame 67Symbol 1060 MovieClip
"ai"Frame 68Symbol 1117 MovieClip
"waypoint3"Frame 69Symbol 893 MovieClip [flag copy]
"waypoint2"Frame 69Symbol 893 MovieClip [flag copy]
"waypoint1"Frame 69Symbol 893 MovieClip [flag copy]
"back"Frame 70Symbol 1174 MovieClip
"box5"Frame 70Symbol 665 MovieClip [box5]
"back"Frame 71Symbol 1174 MovieClip
"reinforcement"Frame 71Symbol 893 MovieClip [flag copy]
"lock1"Frame 71Symbol 893 MovieClip [flag copy]
"waypoint100"Frame 71Symbol 893 MovieClip [flag copy]
"waypoint101"Frame 71Symbol 893 MovieClip [flag copy]
"waypoint102"Frame 71Symbol 893 MovieClip [flag copy]
"waypoint103"Frame 71Symbol 893 MovieClip [flag copy]
"back"Frame 71Symbol 1174 MovieClip
"derrick1"Frame 71Symbol 1176 MovieClip
"derrick2"Frame 71Symbol 1176 MovieClip
"derrick3"Frame 71Symbol 1176 MovieClip
"derrick4"Frame 71Symbol 1176 MovieClip
"oil5"Frame 71Symbol 1047 MovieClip
"rig10"Frame 71Symbol 1054 MovieClip
"rig11"Frame 71Symbol 1054 MovieClip
"rig12"Frame 71Symbol 1054 MovieClip
"oil4"Frame 71Symbol 1047 MovieClip
"oil3"Frame 71Symbol 1047 MovieClip
"reinforcement"Frame 71Symbol 893 MovieClip [flag copy]
"lock1"Frame 71Symbol 893 MovieClip [flag copy]
"waypoint103"Frame 71Symbol 893 MovieClip [flag copy]
"flag3"Frame 71Symbol 893 MovieClip [flag copy]
"flag1"Frame 71Symbol 893 MovieClip [flag copy]
"waypoint1"Frame 71Symbol 893 MovieClip [flag copy]
"waypoint2"Frame 71Symbol 893 MovieClip [flag copy]
"waypoint3"Frame 71Symbol 893 MovieClip [flag copy]
"waypoint47"Frame 71Symbol 893 MovieClip [flag copy]
"waypoint16"Frame 71Symbol 893 MovieClip [flag copy]
"waypoint21"Frame 71Symbol 893 MovieClip [flag copy]
"waypoint22"Frame 71Symbol 893 MovieClip [flag copy]
"waypoint23"Frame 71Symbol 893 MovieClip [flag copy]
"waypoint104"Frame 71Symbol 893 MovieClip [flag copy]
"rallypoint"Frame 71Symbol 1058 MovieClip
"ai"Frame 71Symbol 1117 MovieClip
"lock2"Frame 71Symbol 893 MovieClip [flag copy]
"waypoint103"Frame 71Symbol 893 MovieClip [flag copy]
"burton"Frame 71Symbol 1056 MovieClip
"box"Frame 71Symbol 1060 MovieClip
"ai"Frame 72Symbol 1117 MovieClip
"back"Frame 74Symbol 1104 MovieClip
"box5"Frame 74Symbol 665 MovieClip [box5]
"ai"Frame 75Symbol 1117 MovieClip
"reinforcement"Frame 75Symbol 893 MovieClip [flag copy]
"lock1"Frame 75Symbol 893 MovieClip [flag copy]
"waypoint1"Frame 75Symbol 893 MovieClip [flag copy]
"waypoint2"Frame 75Symbol 893 MovieClip [flag copy]
"waypoint3"Frame 75Symbol 893 MovieClip [flag copy]
"waypoint16"Frame 75Symbol 893 MovieClip [flag copy]
"waypoint22"Frame 75Symbol 893 MovieClip [flag copy]
"waypoint23"Frame 75Symbol 893 MovieClip [flag copy]
"waypoint100"Frame 75Symbol 893 MovieClip [flag copy]
"waypoint101"Frame 75Symbol 893 MovieClip [flag copy]
"flag5"Frame 75Symbol 893 MovieClip [flag copy]
"waypoint102"Frame 75Symbol 893 MovieClip [flag copy]
"waypoint103"Frame 75Symbol 893 MovieClip [flag copy]
"waypoint104"Frame 75Symbol 893 MovieClip [flag copy]
"oil2"Frame 75Symbol 1047 MovieClip
"oil1"Frame 75Symbol 1047 MovieClip
"oil3"Frame 75Symbol 1047 MovieClip
"rig10"Frame 75Symbol 1054 MovieClip
"rig11"Frame 75Symbol 1054 MovieClip
"enemytechcentre1"Frame 75Symbol 613 MovieClip [enemytechcentre]
"flag1"Frame 75Symbol 893 MovieClip [flag copy]
"enemyrefinery1"Frame 75Symbol 607 MovieClip [enemyrefinery]
"enemycomcentre1"Frame 75Symbol 609 MovieClip [enemycomcentre]
"enemywarfactory1"Frame 75Symbol 603 MovieClip [enemywarfactory]
"enemyservicedepot1"Frame 75Symbol 611 MovieClip [enemyservicedepot]
"airport"Frame 75Symbol 1180 MovieClip
"burton"Frame 75Symbol 1056 MovieClip
"box"Frame 75Symbol 1060 MovieClip
"ai"Frame 76Symbol 1117 MovieClip
"waypoint3"Frame 77Symbol 893 MovieClip [flag copy]
"waypoint2"Frame 77Symbol 893 MovieClip [flag copy]
"waypoint1"Frame 77Symbol 893 MovieClip [flag copy]
"back"Frame 78Symbol 1104 MovieClip
"box5"Frame 78Symbol 665 MovieClip [box5]
"back"Frame 79Symbol 1104 MovieClip
"ai"Frame 79Symbol 1117 MovieClip
"reinforcement"Frame 79Symbol 893 MovieClip [flag copy]
"lock1"Frame 79Symbol 893 MovieClip [flag copy]
"waypoint1"Frame 79Symbol 893 MovieClip [flag copy]
"waypoint2"Frame 79Symbol 893 MovieClip [flag copy]
"waypoint3"Frame 79Symbol 893 MovieClip [flag copy]
"waypoint16"Frame 79Symbol 893 MovieClip [flag copy]
"waypoint22"Frame 79Symbol 893 MovieClip [flag copy]
"waypoint23"Frame 79Symbol 893 MovieClip [flag copy]
"waypoint100"Frame 79Symbol 893 MovieClip [flag copy]
"waypoint101"Frame 79Symbol 893 MovieClip [flag copy]
"waypoint102"Frame 79Symbol 893 MovieClip [flag copy]
"flag5"Frame 79Symbol 893 MovieClip [flag copy]
"waypoint102"Frame 79Symbol 893 MovieClip [flag copy]
"waypoint103"Frame 79Symbol 893 MovieClip [flag copy]
"waypoint104"Frame 79Symbol 893 MovieClip [flag copy]
"oil2"Frame 79Symbol 1047 MovieClip
"oil1"Frame 79Symbol 1047 MovieClip
"oil3"Frame 79Symbol 1047 MovieClip
"rig10"Frame 79Symbol 1054 MovieClip
"rig11"Frame 79Symbol 1054 MovieClip
"flag1"Frame 79Symbol 893 MovieClip [flag copy]
"airport"Frame 79Symbol 1180 MovieClip
"burton"Frame 79Symbol 1056 MovieClip
"rallypoint"Frame 79Symbol 1058 MovieClip
"ai"Frame 79Symbol 1117 MovieClip
"lock2"Frame 79Symbol 893 MovieClip [flag copy]
"box"Frame 79Symbol 1060 MovieClip
"ai"Frame 80Symbol 1117 MovieClip
"box5"Frame 82Symbol 665 MovieClip [box5]
"back"Frame 83Symbol 1182 MovieClip
"ai"Frame 83Symbol 1117 MovieClip
"reinforcement"Frame 83Symbol 893 MovieClip [flag copy]
"lock1"Frame 83Symbol 893 MovieClip [flag copy]
"waypoint1"Frame 83Symbol 893 MovieClip [flag copy]
"waypoint2"Frame 83Symbol 893 MovieClip [flag copy]
"waypoint3"Frame 83Symbol 893 MovieClip [flag copy]
"waypoint16"Frame 83Symbol 893 MovieClip [flag copy]
"waypoint22"Frame 83Symbol 893 MovieClip [flag copy]
"waypoint23"Frame 83Symbol 893 MovieClip [flag copy]
"waypoint100"Frame 83Symbol 893 MovieClip [flag copy]
"waypoint101"Frame 83Symbol 893 MovieClip [flag copy]
"waypoint102"Frame 83Symbol 893 MovieClip [flag copy]
"waypoint103"Frame 83Symbol 893 MovieClip [flag copy]
"waypoint104"Frame 83Symbol 893 MovieClip [flag copy]
"flag1"Frame 83Symbol 893 MovieClip [flag copy]
"enemycomcentre1"Frame 83Symbol 609 MovieClip [enemycomcentre]
"enemyrefinery1"Frame 83Symbol 607 MovieClip [enemyrefinery]
"enemyservicedepot1"Frame 83Symbol 611 MovieClip [enemyservicedepot]
"lock2"Frame 83Symbol 893 MovieClip [flag copy]
"enemyweaponsilo2"Frame 83Symbol 589 MovieClip [enemyweaponsilo]
"enemyweaponsilo3"Frame 83Symbol 589 MovieClip [enemyweaponsilo]
"waypoint2"Frame 83Symbol 893 MovieClip [flag copy]
"burton"Frame 83Symbol 1056 MovieClip
"enemytechcentre1"Frame 83Symbol 613 MovieClip [enemytechcentre]
"enemyweaponsilo1"Frame 83Symbol 589 MovieClip [enemyweaponsilo]
"enemylasertank1"Frame 83Symbol 592 MovieClip [enemylasertank]
"enemywarfactory1"Frame 83Symbol 603 MovieClip [enemywarfactory]
"oil2"Frame 83Symbol 1047 MovieClip
"rig11"Frame 83Symbol 1054 MovieClip
"oil1"Frame 83Symbol 1047 MovieClip
"rig10"Frame 83Symbol 1054 MovieClip
"box"Frame 83Symbol 1060 MovieClip
"ai"Frame 84Symbol 1117 MovieClip
"waypoint3"Frame 85Symbol 893 MovieClip [flag copy]
"waypoint2"Frame 85Symbol 893 MovieClip [flag copy]
"waypoint1"Frame 85Symbol 893 MovieClip [flag copy]
"back"Frame 86Symbol 1182 MovieClip
"box5"Frame 86Symbol 665 MovieClip [box5]
"back"Frame 87Symbol 1182 MovieClip
"ai"Frame 87Symbol 1117 MovieClip
"reinforcement"Frame 87Symbol 893 MovieClip [flag copy]
"lock1"Frame 87Symbol 893 MovieClip [flag copy]
"waypoint1"Frame 87Symbol 893 MovieClip [flag copy]
"waypoint2"Frame 87Symbol 893 MovieClip [flag copy]
"waypoint3"Frame 87Symbol 893 MovieClip [flag copy]
"waypoint16"Frame 87Symbol 893 MovieClip [flag copy]
"waypoint22"Frame 87Symbol 893 MovieClip [flag copy]
"waypoint23"Frame 87Symbol 893 MovieClip [flag copy]
"waypoint100"Frame 87Symbol 893 MovieClip [flag copy]
"waypoint101"Frame 87Symbol 893 MovieClip [flag copy]
"waypoint102"Frame 87Symbol 893 MovieClip [flag copy]
"waypoint102"Frame 87Symbol 893 MovieClip [flag copy]
"waypoint103"Frame 87Symbol 893 MovieClip [flag copy]
"waypoint104"Frame 87Symbol 893 MovieClip [flag copy]
"oil2"Frame 87Symbol 1047 MovieClip
"oil3"Frame 87Symbol 1047 MovieClip
"rig10"Frame 87Symbol 1054 MovieClip
"rig11"Frame 87Symbol 1054 MovieClip
"flag1"Frame 87Symbol 893 MovieClip [flag copy]
"weaponsilo1"Frame 87Symbol 585 MovieClip [weaponsilo]
"burton"Frame 87Symbol 1056 MovieClip
"rallypoint"Frame 87Symbol 1058 MovieClip
"ai"Frame 87Symbol 1117 MovieClip
"lock2"Frame 87Symbol 893 MovieClip [flag copy]
"box"Frame 87Symbol 1060 MovieClip
"ai"Frame 88Symbol 1117 MovieClip
"ai"Frame 89Symbol 1117 MovieClip
"box5"Frame 94Symbol 665 MovieClip [box5]
"back"Frame 94Symbol 1036 MovieClip
"back"Frame 95Symbol 1036 MovieClip
"oil1"Frame 95Symbol 1047 MovieClip
"oil3"Frame 95Symbol 1047 MovieClip
"oil6"Frame 95Symbol 1047 MovieClip
"rig6"Frame 95Symbol 1054 MovieClip
"waypoint4"Frame 95Symbol 893 MovieClip [flag copy]
"rig10"Frame 95Symbol 1054 MovieClip
"rig19"Frame 95Symbol 1054 MovieClip
"tank1"Frame 95Symbol 650 MovieClip [light]
"burton"Frame 95Symbol 1056 MovieClip
"rallypoint"Frame 95Symbol 1058 MovieClip
"tutorial"Frame 95Symbol 1230 MovieClip
"enemytechcentre1"Frame 95Symbol 613 MovieClip [enemytechcentre]
"tank2"Frame 95Symbol 650 MovieClip [light]
"tank3"Frame 95Symbol 650 MovieClip [light]
"humvee1"Frame 95Symbol 657 MovieClip [humvee]
"enemyheavytank1"Frame 95Symbol 658 MovieClip [enemyheavy]
"a2"Frame 95Symbol 651 MovieClip [heavy]
"a3"Frame 95Symbol 657 MovieClip [humvee]
"a5"Frame 95Symbol 657 MovieClip [humvee]
"missilelaunch1"Frame 95Symbol 656 MovieClip [rocket]
"a1"Frame 95Symbol 652 MovieClip [artillery]
"a4"Frame 95Symbol 652 MovieClip [artillery]
"flag1"Frame 95Symbol 893 MovieClip [flag copy]
"box"Frame 95Symbol 1060 MovieClip
"flag2"Frame 95Symbol 893 MovieClip [flag copy]
"waypointn"Frame 95Symbol 893 MovieClip [flag copy]
"victory"Frame 96Symbol 1231 MovieClip
"back"Frame 131Symbol 1098 MovieClip
"box5"Frame 131Symbol 665 MovieClip [box5]
"oil3"Frame 132Symbol 1047 MovieClip
"rig10"Frame 132Symbol 1054 MovieClip
"enemyrefinery1"Frame 132Symbol 607 MovieClip [enemyrefinery]
"enemytechcentre1"Frame 132Symbol 613 MovieClip [enemytechcentre]
"oil2"Frame 132Symbol 1047 MovieClip
"rig10"Frame 132Symbol 1054 MovieClip
"waypoint102"Frame 132Symbol 893 MovieClip [flag copy]
"waypoint103"Frame 132Symbol 893 MovieClip [flag copy]
"waypoint104"Frame 132Symbol 893 MovieClip [flag copy]
"waypoint105"Frame 132Symbol 893 MovieClip [flag copy]
"rallypoint"Frame 132Symbol 1058 MovieClip
"flag12"Frame 132Symbol 893 MovieClip [flag copy]
"dozer1"Frame 132Symbol 655 MovieClip [dozer]
"ai"Frame 132Symbol 1117 MovieClip
"waypoint101"Frame 132Symbol 893 MovieClip [flag copy]
"patroit"Frame 132Symbol 634 MovieClip [enemymultiple]
"enemycomcentre1"Frame 132Symbol 609 MovieClip [enemycomcentre]
"enemywarfactory1"Frame 132Symbol 603 MovieClip [enemywarfactory]
"burton"Frame 132Symbol 1056 MovieClip
"tutorial"Frame 132Symbol 1261 MovieClip
"box"Frame 132Symbol 1060 MovieClip
"oil5"Frame 132Symbol 1047 MovieClip
"rig122"Frame 132Symbol 1054 MovieClip
"victory"Frame 133Symbol 1231 MovieClip
"map2"Frame 136Symbol 1135 MovieClip
"map6"Frame 136Symbol 1135 MovieClip
"map3"Frame 136Symbol 1138 MovieClip
"map5"Frame 136Symbol 1135 MovieClip
"map9"Frame 136Symbol 1135 MovieClip
"map8"Frame 136Symbol 1135 MovieClip
"map4"Frame 136Symbol 1135 MovieClip
"map7"Frame 136Symbol 1135 MovieClip
"alarm"Frame 136Symbol 1146 MovieClip
"tutorial"Frame 136Symbol 1300 MovieClip
"centre"Symbol 138 MovieClip Frame 3Symbol 120 MovieClip
"back"Symbol 138 MovieClip Frame 5Symbol 132 MovieClip
"back"Symbol 138 MovieClip Frame 6Symbol 136 MovieClip
"mapp"Symbol 228 MovieClip [bar] Frame 48Symbol 138 MovieClip
"lists2"Symbol 228 MovieClip [bar] Frame 48Symbol 193 MovieClip
"lists"Symbol 228 MovieClip [bar] Frame 48Symbol 227 MovieClip
"boxns"Symbol 289 MovieClip Frame 2Symbol 234 MovieClip
"auto"Symbol 289 MovieClip Frame 9Symbol 277 MovieClip
"boxns"Symbol 308 MovieClip Frame 2Symbol 234 MovieClip
"auto"Symbol 308 MovieClip Frame 9Symbol 277 MovieClip
"d1"Symbol 309 MovieClip Frame 1Symbol 289 MovieClip
"d2"Symbol 309 MovieClip Frame 1Symbol 289 MovieClip
"d15"Symbol 309 MovieClip Frame 1Symbol 289 MovieClip
"d16"Symbol 309 MovieClip Frame 1Symbol 289 MovieClip
"d19"Symbol 309 MovieClip Frame 1Symbol 289 MovieClip
"d20"Symbol 309 MovieClip Frame 1Symbol 289 MovieClip
"d7"Symbol 309 MovieClip Frame 1Symbol 289 MovieClip
"d8"Symbol 309 MovieClip Frame 1Symbol 289 MovieClip
"d11"Symbol 309 MovieClip Frame 1Symbol 289 MovieClip
"d12"Symbol 309 MovieClip Frame 1Symbol 289 MovieClip
"d13"Symbol 309 MovieClip Frame 1Symbol 289 MovieClip
"d14"Symbol 309 MovieClip Frame 1Symbol 289 MovieClip
"d17"Symbol 309 MovieClip Frame 1Symbol 289 MovieClip
"d18"Symbol 309 MovieClip Frame 1Symbol 289 MovieClip
"d5"Symbol 309 MovieClip Frame 1Symbol 289 MovieClip
"d6"Symbol 309 MovieClip Frame 1Symbol 289 MovieClip
"d9"Symbol 309 MovieClip Frame 1Symbol 289 MovieClip
"d10"Symbol 309 MovieClip Frame 1Symbol 289 MovieClip
"d3"Symbol 309 MovieClip Frame 1Symbol 289 MovieClip
"d4"Symbol 309 MovieClip Frame 1Symbol 289 MovieClip
"picture"Symbol 309 MovieClip Frame 2Symbol 308 MovieClip
"d1"Symbol 327 MovieClip Frame 1Symbol 325 MovieClip
"d2"Symbol 327 MovieClip Frame 1Symbol 325 MovieClip
"d3"Symbol 327 MovieClip Frame 1Symbol 325 MovieClip
"d4"Symbol 327 MovieClip Frame 1Symbol 325 MovieClip
"d5"Symbol 327 MovieClip Frame 1Symbol 325 MovieClip
"d6"Symbol 327 MovieClip Frame 1Symbol 325 MovieClip
"d12"Symbol 327 MovieClip Frame 1Symbol 325 MovieClip
"d11"Symbol 327 MovieClip Frame 1Symbol 325 MovieClip
"d10"Symbol 327 MovieClip Frame 1Symbol 325 MovieClip
"d9"Symbol 327 MovieClip Frame 1Symbol 325 MovieClip
"d8"Symbol 327 MovieClip Frame 1Symbol 325 MovieClip
"d7"Symbol 327 MovieClip Frame 1Symbol 325 MovieClip
"d13"Symbol 327 MovieClip Frame 1Symbol 325 MovieClip
"d14"Symbol 327 MovieClip Frame 1Symbol 325 MovieClip
"d15"Symbol 327 MovieClip Frame 1Symbol 325 MovieClip
"d16"Symbol 327 MovieClip Frame 1Symbol 325 MovieClip
"d17"Symbol 327 MovieClip Frame 1Symbol 325 MovieClip
"d18"Symbol 327 MovieClip Frame 1Symbol 325 MovieClip
"shower"Symbol 358 MovieClip [mapbar] Frame 1Symbol 309 MovieClip
"build"Symbol 358 MovieClip [mapbar] Frame 1Symbol 327 MovieClip
"invadebutton"Symbol 358 MovieClip [mapbar] Frame 1Symbol 342 Button
"commandbutton"Symbol 358 MovieClip [mapbar] Frame 1Symbol 348 Button
"escape"Symbol 358 MovieClip [mapbar] Frame 1Symbol 357 MovieClip
"stripe"Symbol 406 MovieClip Frame 1Symbol 270 MovieClip
"dummy"Symbol 417 MovieClip [lightally] Frame 1Symbol 406 MovieClip
"selector"Symbol 417 MovieClip [lightally] Frame 1Symbol 408 MovieClip
"turret"Symbol 417 MovieClip [lightally] Frame 1Symbol 413 MovieClip
"lifebar"Symbol 417 MovieClip [lightally] Frame 1Symbol 416 MovieClip
"stripe"Symbol 425 MovieClip Frame 1Symbol 270 MovieClip
"dummy"Symbol 426 MovieClip [heavyally] Frame 1Symbol 422 MovieClip
"selector"Symbol 426 MovieClip [heavyally] Frame 1Symbol 408 MovieClip
"turret"Symbol 426 MovieClip [heavyally] Frame 1Symbol 425 MovieClip
"lifebar"Symbol 426 MovieClip [heavyally] Frame 1Symbol 416 MovieClip
"stripe"Symbol 435 MovieClip Frame 1Symbol 270 MovieClip
"dummy"Symbol 446 MovieClip [artilleryally] Frame 1Symbol 435 MovieClip
"selector"Symbol 446 MovieClip [artilleryally] Frame 1Symbol 408 MovieClip
"turret"Symbol 446 MovieClip [artilleryally] Frame 1Symbol 445 MovieClip
"lifebar"Symbol 446 MovieClip [artilleryally] Frame 1Symbol 416 MovieClip
"stripe"Symbol 458 MovieClip Frame 1Symbol 270 MovieClip
"dummy"Symbol 459 MovieClip [rocketally] Frame 1Symbol 449 MovieClip
"selector"Symbol 459 MovieClip [rocketally] Frame 1Symbol 408 MovieClip
"turret"Symbol 459 MovieClip [rocketally] Frame 1Symbol 458 MovieClip
"lifebar"Symbol 459 MovieClip [rocketally] Frame 1Symbol 416 MovieClip
"stripe3"Symbol 461 MovieClip [humveeebase] Frame 1Symbol 270 MovieClip
"stripe1"Symbol 461 MovieClip [humveeebase] Frame 1Symbol 270 MovieClip
"stripe2"Symbol 461 MovieClip [humveeebase] Frame 1Symbol 270 MovieClip
"dummy"Symbol 468 MovieClip [humveeally] Frame 1Symbol 461 MovieClip [humveeebase]
"selector"Symbol 468 MovieClip [humveeally] Frame 1Symbol 408 MovieClip
"turret"Symbol 468 MovieClip [humveeally] Frame 1Symbol 467 MovieClip
"lifebar"Symbol 468 MovieClip [humveeally] Frame 1Symbol 416 MovieClip
"dummy"Symbol 476 MovieClip [oiltruck] Frame 1Symbol 475 MovieClip
"selector"Symbol 476 MovieClip [oiltruck] Frame 1Symbol 408 MovieClip
"lifebar"Symbol 476 MovieClip [oiltruck] Frame 1Symbol 416 MovieClip
"oilbar"Symbol 476 MovieClip [oiltruck] Frame 1Symbol 416 MovieClip
"dummy"Symbol 483 MovieClip [lasertank] Frame 1Symbol 478 MovieClip
"selector"Symbol 483 MovieClip [lasertank] Frame 1Symbol 408 MovieClip
"turret"Symbol 483 MovieClip [lasertank] Frame 1Symbol 482 MovieClip
"lifebar"Symbol 483 MovieClip [lasertank] Frame 1Symbol 416 MovieClip
"turret"Symbol 490 MovieClip [laserbasedefense] Frame 1Symbol 488 MovieClip
"selector"Symbol 490 MovieClip [laserbasedefense] Frame 1Symbol 408 MovieClip
"auto"Symbol 490 MovieClip [laserbasedefense] Frame 1Symbol 277 MovieClip
"lifebar"Symbol 490 MovieClip [laserbasedefense] Frame 1Symbol 416 MovieClip
"selector"Symbol 496 MovieClip [mine] Frame 1Symbol 408 MovieClip
"turret"Symbol 507 MovieClip [turrets] Frame 1Symbol 506 MovieClip
"selector"Symbol 507 MovieClip [turrets] Frame 1Symbol 408 MovieClip
"auto"Symbol 507 MovieClip [turrets] Frame 1Symbol 277 MovieClip
"lifebar"Symbol 507 MovieClip [turrets] Frame 1Symbol 416 MovieClip
"mouse"Symbol 528 MovieClip [mo] Frame 1Symbol 524 MovieClip
"selector"Symbol 539 MovieClip [enemyconstruction] Frame 1Symbol 408 MovieClip
"lifebar"Symbol 539 MovieClip [enemyconstruction] Frame 1Symbol 416 MovieClip
"selector"Symbol 545 MovieClip [construction2] Frame 1Symbol 408 MovieClip
"lifebar"Symbol 545 MovieClip [construction2] Frame 1Symbol 416 MovieClip
"selector"Symbol 553 MovieClip [construction] Frame 1Symbol 408 MovieClip
"lifebar"Symbol 553 MovieClip [construction] Frame 1Symbol 416 MovieClip
"selector"Symbol 585 MovieClip [weaponsilo] Frame 1Symbol 408 MovieClip
"auto"Symbol 585 MovieClip [weaponsilo] Frame 1Symbol 277 MovieClip
"lifebar"Symbol 585 MovieClip [weaponsilo] Frame 1Symbol 416 MovieClip
"selector"Symbol 589 MovieClip [enemyweaponsilo] Frame 1Symbol 408 MovieClip
"auto"Symbol 589 MovieClip [enemyweaponsilo] Frame 1Symbol 587 MovieClip
"lifebar"Symbol 589 MovieClip [enemyweaponsilo] Frame 1Symbol 416 MovieClip
"dummy"Symbol 592 MovieClip [enemylasertank] Frame 1Symbol 591 MovieClip
"selector"Symbol 592 MovieClip [enemylasertank] Frame 1Symbol 408 MovieClip
"turret"Symbol 592 MovieClip [enemylasertank] Frame 1Symbol 482 MovieClip
"lifebar"Symbol 592 MovieClip [enemylasertank] Frame 1Symbol 416 MovieClip
"dummy"Symbol 597 MovieClip [enemyoiltruck] Frame 1Symbol 596 MovieClip
"selector"Symbol 597 MovieClip [enemyoiltruck] Frame 1Symbol 408 MovieClip
"lifebar"Symbol 597 MovieClip [enemyoiltruck] Frame 1Symbol 416 MovieClip
"turret"Symbol 599 MovieClip [enemyturret] Frame 1Symbol 506 MovieClip
"auto"Symbol 599 MovieClip [enemyturret] Frame 1Symbol 587 MovieClip
"selector"Symbol 599 MovieClip [enemyturret] Frame 1Symbol 408 MovieClip
"lifebar"Symbol 599 MovieClip [enemyturret] Frame 1Symbol 416 MovieClip
"lifebar"Symbol 603 MovieClip [enemywarfactory] Frame 1Symbol 416 MovieClip
"selector"Symbol 603 MovieClip [enemywarfactory] Frame 1Symbol 408 MovieClip
"auto"Symbol 603 MovieClip [enemywarfactory] Frame 1Symbol 587 MovieClip
"selector"Symbol 607 MovieClip [enemyrefinery] Frame 1Symbol 408 MovieClip
"auto"Symbol 607 MovieClip [enemyrefinery] Frame 1Symbol 587 MovieClip
"pad"Symbol 607 MovieClip [enemyrefinery] Frame 1Symbol 606 MovieClip
"lifebar"Symbol 607 MovieClip [enemyrefinery] Frame 1Symbol 416 MovieClip
"selector"Symbol 609 MovieClip [enemycomcentre] Frame 1Symbol 408 MovieClip
"auto"Symbol 609 MovieClip [enemycomcentre] Frame 1Symbol 587 MovieClip
"lifebar"Symbol 609 MovieClip [enemycomcentre] Frame 1Symbol 416 MovieClip
"selector"Symbol 611 MovieClip [enemyservicedepot] Frame 1Symbol 408 MovieClip
"auto"Symbol 611 MovieClip [enemyservicedepot] Frame 1Symbol 587 MovieClip
"lifebar"Symbol 611 MovieClip [enemyservicedepot] Frame 1Symbol 416 MovieClip
"selector"Symbol 613 MovieClip [enemytechcentre] Frame 1Symbol 408 MovieClip
"auto"Symbol 613 MovieClip [enemytechcentre] Frame 1Symbol 587 MovieClip
"lifebar"Symbol 613 MovieClip [enemytechcentre] Frame 1Symbol 416 MovieClip
"selector"Symbol 615 MovieClip [servicedepot] Frame 1Symbol 408 MovieClip
"auto"Symbol 615 MovieClip [servicedepot] Frame 1Symbol 277 MovieClip
"auto2"Symbol 615 MovieClip [servicedepot] Frame 1Symbol 277 MovieClip
"lifebar"Symbol 615 MovieClip [servicedepot] Frame 1Symbol 416 MovieClip
"selector"Symbol 617 MovieClip [techcentre] Frame 1Symbol 408 MovieClip
"auto"Symbol 617 MovieClip [techcentre] Frame 1Symbol 277 MovieClip
"lifebar"Symbol 617 MovieClip [techcentre] Frame 1Symbol 416 MovieClip
"turret"Symbol 619 MovieClip [enemylaser] Frame 1Symbol 488 MovieClip
"selector"Symbol 619 MovieClip [enemylaser] Frame 1Symbol 408 MovieClip
"auto"Symbol 619 MovieClip [enemylaser] Frame 1Symbol 587 MovieClip
"lifebar"Symbol 619 MovieClip [enemylaser] Frame 1Symbol 416 MovieClip
"selector"Symbol 626 MovieClip [enemymine] Frame 1Symbol 408 MovieClip
"auto"Symbol 626 MovieClip [enemymine] Frame 1Symbol 277 MovieClip
"lifebar"Symbol 626 MovieClip [enemymine] Frame 1Symbol 416 MovieClip
"turret"Symbol 634 MovieClip [enemymultiple] Frame 1Symbol 633 MovieClip
"auto"Symbol 634 MovieClip [enemymultiple] Frame 1Symbol 587 MovieClip
"selector"Symbol 634 MovieClip [enemymultiple] Frame 1Symbol 408 MovieClip
"lifebar"Symbol 634 MovieClip [enemymultiple] Frame 1Symbol 416 MovieClip
"turret"Symbol 636 MovieClip [patriotmiss] Frame 1Symbol 633 MovieClip
"selector"Symbol 636 MovieClip [patriotmiss] Frame 1Symbol 408 MovieClip
"auto"Symbol 636 MovieClip [patriotmiss] Frame 1Symbol 277 MovieClip
"lifebar"Symbol 636 MovieClip [patriotmiss] Frame 1Symbol 416 MovieClip
"auto"Symbol 638 MovieClip [warfactory] Frame 1Symbol 277 MovieClip
"selector"Symbol 638 MovieClip [warfactory] Frame 1Symbol 408 MovieClip
"lifebar"Symbol 638 MovieClip [warfactory] Frame 1Symbol 416 MovieClip
"pad"Symbol 640 MovieClip [refinery] Frame 1Symbol 606 MovieClip
"selector"Symbol 640 MovieClip [refinery] Frame 1Symbol 408 MovieClip
"auto"Symbol 640 MovieClip [refinery] Frame 1Symbol 277 MovieClip
"lifebar"Symbol 640 MovieClip [refinery] Frame 1Symbol 416 MovieClip
"selector"Symbol 642 MovieClip [comcentre] Frame 1Symbol 408 MovieClip
"auto"Symbol 642 MovieClip [comcentre] Frame 1Symbol 277 MovieClip
"lifebar"Symbol 642 MovieClip [comcentre] Frame 1Symbol 416 MovieClip
"selector"Symbol 647 MovieClip [enemyconstruction2] Frame 1Symbol 408 MovieClip
"lifebar"Symbol 647 MovieClip [enemyconstruction2] Frame 1Symbol 416 MovieClip
"dummy"Symbol 650 MovieClip [light] Frame 1Symbol 406 MovieClip
"selector"Symbol 650 MovieClip [light] Frame 1Symbol 408 MovieClip
"turret"Symbol 650 MovieClip [light] Frame 1Symbol 413 MovieClip
"lifebar"Symbol 650 MovieClip [light] Frame 1Symbol 416 MovieClip
"dummy"Symbol 651 MovieClip [heavy] Frame 1Symbol 422 MovieClip
"selector"Symbol 651 MovieClip [heavy] Frame 1Symbol 408 MovieClip
"turret"Symbol 651 MovieClip [heavy] Frame 1Symbol 425 MovieClip
"lifebar"Symbol 651 MovieClip [heavy] Frame 1Symbol 416 MovieClip
"dummy"Symbol 652 MovieClip [artillery] Frame 1Symbol 435 MovieClip
"selector"Symbol 652 MovieClip [artillery] Frame 1Symbol 408 MovieClip
"turret"Symbol 652 MovieClip [artillery] Frame 1Symbol 445 MovieClip
"lifebar"Symbol 652 MovieClip [artillery] Frame 1Symbol 416 MovieClip
"dummy"Symbol 655 MovieClip [dozer] Frame 1Symbol 654 MovieClip
"selector"Symbol 655 MovieClip [dozer] Frame 1Symbol 408 MovieClip
"lifebar"Symbol 655 MovieClip [dozer] Frame 1Symbol 416 MovieClip
"dummy"Symbol 656 MovieClip [rocket] Frame 1Symbol 449 MovieClip
"selector"Symbol 656 MovieClip [rocket] Frame 1Symbol 408 MovieClip
"turret"Symbol 656 MovieClip [rocket] Frame 1Symbol 458 MovieClip
"lifebar"Symbol 656 MovieClip [rocket] Frame 1Symbol 416 MovieClip
"dummy"Symbol 657 MovieClip [humvee] Frame 1Symbol 461 MovieClip [humveeebase]
"selector"Symbol 657 MovieClip [humvee] Frame 1Symbol 408 MovieClip
"turret"Symbol 657 MovieClip [humvee] Frame 1Symbol 467 MovieClip
"lifebar"Symbol 657 MovieClip [humvee] Frame 1Symbol 416 MovieClip
"dummy"Symbol 658 MovieClip [enemyheavy] Frame 1Symbol 422 MovieClip
"selector"Symbol 658 MovieClip [enemyheavy] Frame 1Symbol 408 MovieClip
"turret"Symbol 658 MovieClip [enemyheavy] Frame 1Symbol 425 MovieClip
"lifebar"Symbol 658 MovieClip [enemyheavy] Frame 1Symbol 416 MovieClip
"dummy"Symbol 659 MovieClip [enemyrocket] Frame 1Symbol 449 MovieClip
"selector"Symbol 659 MovieClip [enemyrocket] Frame 1Symbol 408 MovieClip
"turret"Symbol 659 MovieClip [enemyrocket] Frame 1Symbol 458 MovieClip
"lifebar"Symbol 659 MovieClip [enemyrocket] Frame 1Symbol 416 MovieClip
"selector"Symbol 660 MovieClip [enemyhumvee] Frame 1Symbol 408 MovieClip
"dummy"Symbol 660 MovieClip [enemyhumvee] Frame 1Symbol 461 MovieClip [humveeebase]
"turret"Symbol 660 MovieClip [enemyhumvee] Frame 1Symbol 467 MovieClip
"lifebar"Symbol 660 MovieClip [enemyhumvee] Frame 1Symbol 416 MovieClip
"dummy"Symbol 661 MovieClip [enemylight] Frame 1Symbol 406 MovieClip
"selector"Symbol 661 MovieClip [enemylight] Frame 1Symbol 408 MovieClip
"turret"Symbol 661 MovieClip [enemylight] Frame 1Symbol 413 MovieClip
"lifebar"Symbol 661 MovieClip [enemylight] Frame 1Symbol 416 MovieClip
"dummy"Symbol 662 MovieClip [enemyartillery] Frame 1Symbol 435 MovieClip
"selector"Symbol 662 MovieClip [enemyartillery] Frame 1Symbol 408 MovieClip
"turret"Symbol 662 MovieClip [enemyartillery] Frame 1Symbol 445 MovieClip
"lifebar"Symbol 662 MovieClip [enemyartillery] Frame 1Symbol 416 MovieClip
"dummy"Symbol 663 MovieClip [enemydozer] Frame 1Symbol 654 MovieClip
"selector"Symbol 663 MovieClip [enemydozer] Frame 1Symbol 408 MovieClip
"lifebar"Symbol 663 MovieClip [enemydozer] Frame 1Symbol 416 MovieClip
"boxns"Symbol 731 MovieClip Frame 2Symbol 234 MovieClip
"auto"Symbol 731 MovieClip Frame 9Symbol 277 MovieClip
"d1"Symbol 733 MovieClip Frame 1Symbol 731 MovieClip
"d2"Symbol 733 MovieClip Frame 1Symbol 731 MovieClip
"d15"Symbol 733 MovieClip Frame 1Symbol 731 MovieClip
"d16"Symbol 733 MovieClip Frame 1Symbol 731 MovieClip
"d19"Symbol 733 MovieClip Frame 1Symbol 731 MovieClip
"d20"Symbol 733 MovieClip Frame 1Symbol 731 MovieClip
"d7"Symbol 733 MovieClip Frame 1Symbol 731 MovieClip
"d8"Symbol 733 MovieClip Frame 1Symbol 731 MovieClip
"d11"Symbol 733 MovieClip Frame 1Symbol 731 MovieClip
"d12"Symbol 733 MovieClip Frame 1Symbol 731 MovieClip
"d13"Symbol 733 MovieClip Frame 1Symbol 731 MovieClip
"d14"Symbol 733 MovieClip Frame 1Symbol 731 MovieClip
"d17"Symbol 733 MovieClip Frame 1Symbol 731 MovieClip
"d18"Symbol 733 MovieClip Frame 1Symbol 731 MovieClip
"d5"Symbol 733 MovieClip Frame 1Symbol 731 MovieClip
"d6"Symbol 733 MovieClip Frame 1Symbol 731 MovieClip
"d9"Symbol 733 MovieClip Frame 1Symbol 731 MovieClip
"d10"Symbol 733 MovieClip Frame 1Symbol 731 MovieClip
"d3"Symbol 733 MovieClip Frame 1Symbol 731 MovieClip
"d4"Symbol 733 MovieClip Frame 1Symbol 731 MovieClip
"picture"Symbol 733 MovieClip Frame 2Symbol 308 MovieClip
"s"Symbol 781 MovieClip Frame 12Symbol 670 MovieClip
"s"Symbol 795 MovieClip Frame 12Symbol 670 MovieClip
"humvee"Symbol 798 MovieClip Frame 1Symbol 781 MovieClip
"light"Symbol 798 MovieClip Frame 1Symbol 781 MovieClip
"rocket"Symbol 798 MovieClip Frame 1Symbol 781 MovieClip
"artillery"Symbol 798 MovieClip Frame 1Symbol 781 MovieClip
"heavy"Symbol 798 MovieClip Frame 1Symbol 781 MovieClip
"dozer"Symbol 798 MovieClip Frame 1Symbol 786 MovieClip
"oilbar"Symbol 798 MovieClip Frame 1Symbol 416 MovieClip
"oiltruck"Symbol 798 MovieClip Frame 1Symbol 781 MovieClip
"comcentre"Symbol 798 MovieClip Frame 1Symbol 789 MovieClip
"refinery"Symbol 798 MovieClip Frame 1Symbol 789 MovieClip
"warfactory"Symbol 798 MovieClip Frame 1Symbol 789 MovieClip
"techcentre"Symbol 798 MovieClip Frame 1Symbol 789 MovieClip
"turrets"Symbol 798 MovieClip Frame 1Symbol 791 MovieClip
"patriotmissile"Symbol 798 MovieClip Frame 1Symbol 791 MovieClip
"laser"Symbol 798 MovieClip Frame 1Symbol 791 MovieClip
"servicedepot"Symbol 798 MovieClip Frame 1Symbol 789 MovieClip
"mine"Symbol 798 MovieClip Frame 1Symbol 791 MovieClip
"lasertank"Symbol 798 MovieClip Frame 1Symbol 795 MovieClip
"weaponsilo"Symbol 798 MovieClip Frame 1Symbol 797 MovieClip
"centre"Symbol 825 MovieClip Frame 1Symbol 120 MovieClip
"lefts"Symbol 825 MovieClip Frame 1Symbol 824 MovieClip
"tops"Symbol 825 MovieClip Frame 1Symbol 824 MovieClip
"bottoms"Symbol 825 MovieClip Frame 1Symbol 824 MovieClip
"rights"Symbol 825 MovieClip Frame 1Symbol 824 MovieClip
"back"Symbol 840 MovieClip Frame 3Symbol 825 MovieClip
"centre"Symbol 840 MovieClip Frame 4Symbol 120 MovieClip
"back"Symbol 840 MovieClip Frame 8Symbol 132 MovieClip
"back"Symbol 840 MovieClip Frame 10Symbol 136 MovieClip
"back"Symbol 840 MovieClip Frame 11Symbol 839 MovieClip
"nuketimer"Symbol 850 MovieClip [sidebar] Frame 1Symbol 688 MovieClip
"enemynuketimer"Symbol 850 MovieClip [sidebar] Frame 1Symbol 708 MovieClip
"shower"Symbol 850 MovieClip [sidebar] Frame 1Symbol 733 MovieClip
"s1"Symbol 850 MovieClip [sidebar] Frame 1Symbol 759 MovieClip
"s2"Symbol 850 MovieClip [sidebar] Frame 1Symbol 761 MovieClip
"s3"Symbol 850 MovieClip [sidebar] Frame 1Symbol 761 MovieClip
"s4"Symbol 850 MovieClip [sidebar] Frame 1Symbol 761 MovieClip
"s5"Symbol 850 MovieClip [sidebar] Frame 1Symbol 761 MovieClip
"s6"Symbol 850 MovieClip [sidebar] Frame 1Symbol 761 MovieClip
"s7"Symbol 850 MovieClip [sidebar] Frame 1Symbol 761 MovieClip
"s8"Symbol 850 MovieClip [sidebar] Frame 1Symbol 761 MovieClip
"s14"Symbol 850 MovieClip [sidebar] Frame 1Symbol 761 MovieClip
"s9"Symbol 850 MovieClip [sidebar] Frame 1Symbol 761 MovieClip
"s15"Symbol 850 MovieClip [sidebar] Frame 1Symbol 761 MovieClip
"s10"Symbol 850 MovieClip [sidebar] Frame 1Symbol 761 MovieClip
"s16"Symbol 850 MovieClip [sidebar] Frame 1Symbol 761 MovieClip
"s17"Symbol 850 MovieClip [sidebar] Frame 1Symbol 761 MovieClip
"s11"Symbol 850 MovieClip [sidebar] Frame 1Symbol 761 MovieClip
"s18"Symbol 850 MovieClip [sidebar] Frame 1Symbol 761 MovieClip
"s12"Symbol 850 MovieClip [sidebar] Frame 1Symbol 761 MovieClip
"s13"Symbol 850 MovieClip [sidebar] Frame 1Symbol 761 MovieClip
"build"Symbol 850 MovieClip [sidebar] Frame 1Symbol 798 MovieClip
"mapp"Symbol 850 MovieClip [sidebar] Frame 1Symbol 840 MovieClip
"radarscreen"Symbol 850 MovieClip [sidebar] Frame 1Symbol 844 MovieClip
"escape"Symbol 850 MovieClip [sidebar] Frame 1Symbol 849 MovieClip
"b"Symbol 904 MovieClip [SimpleButtonDown] Frame 1Symbol 901 MovieClip [BrdrShdw]
"face"Symbol 904 MovieClip [SimpleButtonDown] Frame 1Symbol 903 MovieClip [BrdrFace]
"b"Symbol 909 MovieClip [SimpleButtonIn] Frame 1Symbol 906 MovieClip [BrdrBlk]
"it"Symbol 909 MovieClip [SimpleButtonIn] Frame 1Symbol 908 MovieClip [BrdrHilght]
"g"Symbol 909 MovieClip [SimpleButtonIn] Frame 1Symbol 901 MovieClip [BrdrShdw]
"face"Symbol 909 MovieClip [SimpleButtonIn] Frame 1Symbol 903 MovieClip [BrdrFace]
"ob"Symbol 910 MovieClip [SimpleButtonUp] Frame 1Symbol 906 MovieClip [BrdrBlk]
"ol"Symbol 910 MovieClip [SimpleButtonUp] Frame 1Symbol 903 MovieClip [BrdrFace]
"ib"Symbol 910 MovieClip [SimpleButtonUp] Frame 1Symbol 901 MovieClip [BrdrShdw]
"il"Symbol 910 MovieClip [SimpleButtonUp] Frame 1Symbol 908 MovieClip [BrdrHilght]
"face"Symbol 910 MovieClip [SimpleButtonUp] Frame 1Symbol 903 MovieClip [BrdrFace]
"boundingBox_mc"Symbol 918 MovieClip [FocusRect] Frame 1Symbol 899 MovieClip [BoundingBox]
"tabCapture"Symbol 919 MovieClip [FocusManager] Frame 1Symbol 916 Button
"boundingBox_mc"Symbol 922 MovieClip [SimpleButton] Frame 1Symbol 899 MovieClip [BoundingBox]
"boundingBox_mc"Symbol 926 MovieClip [Button] Frame 1Symbol 899 MovieClip [BoundingBox]
"bar"Symbol 1021 MovieClip Frame 1Symbol 951 MovieClip
"bargfx"Symbol 1021 MovieClip Frame 1Symbol 954 MovieClip
"tank"Symbol 1021 MovieClip Frame 1Symbol 968 MovieClip
"bargfx"Symbol 1021 MovieClip Frame 2Symbol 954 MovieClip
"bargfx"Symbol 1021 MovieClip Frame 20Symbol 954 MovieClip
"centre"Symbol 1036 MovieClip Frame 1Symbol 1035 MovieClip
"lefts"Symbol 1036 MovieClip Frame 1Symbol 824 MovieClip
"tops"Symbol 1036 MovieClip Frame 1Symbol 824 MovieClip
"bottoms"Symbol 1036 MovieClip Frame 1Symbol 824 MovieClip
"rights"Symbol 1036 MovieClip Frame 1Symbol 824 MovieClip
"oilspill"Symbol 1047 MovieClip Frame 1Symbol 1046 MovieClip
"centre"Symbol 1088 MovieClip Frame 1Symbol 120 MovieClip
"lefts"Symbol 1088 MovieClip Frame 1Symbol 824 MovieClip
"bottoms"Symbol 1088 MovieClip Frame 1Symbol 824 MovieClip
"rights"Symbol 1088 MovieClip Frame 1Symbol 824 MovieClip
"tops"Symbol 1088 MovieClip Frame 1Symbol 824 MovieClip
"water"Symbol 1088 MovieClip Frame 1Symbol 1087 MovieClip
"centre"Symbol 1093 MovieClip Frame 1Symbol 120 MovieClip
"lefts"Symbol 1093 MovieClip Frame 1Symbol 824 MovieClip
"bottoms"Symbol 1093 MovieClip Frame 1Symbol 824 MovieClip
"rights"Symbol 1093 MovieClip Frame 1Symbol 824 MovieClip
"tops"Symbol 1093 MovieClip Frame 1Symbol 824 MovieClip
"centre"Symbol 1098 MovieClip Frame 1Symbol 1097 MovieClip
"lefts"Symbol 1098 MovieClip Frame 1Symbol 824 MovieClip
"tops"Symbol 1098 MovieClip Frame 1Symbol 824 MovieClip
"bottoms"Symbol 1098 MovieClip Frame 1Symbol 824 MovieClip
"rights"Symbol 1098 MovieClip Frame 1Symbol 824 MovieClip
"centre"Symbol 1104 MovieClip Frame 1Symbol 120 MovieClip
"lefts"Symbol 1104 MovieClip Frame 1Symbol 824 MovieClip
"bottoms"Symbol 1104 MovieClip Frame 1Symbol 824 MovieClip
"rights"Symbol 1104 MovieClip Frame 1Symbol 824 MovieClip
"tops"Symbol 1104 MovieClip Frame 1Symbol 824 MovieClip
"water"Symbol 1104 MovieClip Frame 1Symbol 1103 MovieClip
"centre"Symbol 1106 MovieClip Frame 1Symbol 120 MovieClip
"lefts"Symbol 1106 MovieClip Frame 1Symbol 824 MovieClip
"tops"Symbol 1106 MovieClip Frame 1Symbol 824 MovieClip
"bottoms"Symbol 1106 MovieClip Frame 1Symbol 824 MovieClip
"rights"Symbol 1106 MovieClip Frame 1Symbol 824 MovieClip
"lifebar"Symbol 1113 MovieClip Frame 1Symbol 416 MovieClip
"selecteds"Symbol 1135 MovieClip Frame 1Symbol 1133 MovieClip
"selecteds"Symbol 1138 MovieClip Frame 1Symbol 1133 MovieClip
"centre"Symbol 1150 MovieClip Frame 1Symbol 120 MovieClip
"lefts"Symbol 1150 MovieClip Frame 1Symbol 824 MovieClip
"tops"Symbol 1150 MovieClip Frame 1Symbol 824 MovieClip
"bottoms"Symbol 1150 MovieClip Frame 1Symbol 824 MovieClip
"rights"Symbol 1150 MovieClip Frame 1Symbol 824 MovieClip
"water"Symbol 1150 MovieClip Frame 1Symbol 1149 MovieClip
"selector"Symbol 1152 MovieClip Frame 1Symbol 408 MovieClip
"auto"Symbol 1152 MovieClip Frame 1Symbol 277 MovieClip
"lifebar"Symbol 1152 MovieClip Frame 1Symbol 416 MovieClip
"lifebar"Symbol 1154 MovieClip Frame 1Symbol 416 MovieClip
"selector"Symbol 1154 MovieClip Frame 1Symbol 408 MovieClip
"auto"Symbol 1154 MovieClip Frame 1Symbol 587 MovieClip
"selector"Symbol 1156 MovieClip Frame 1Symbol 408 MovieClip
"auto"Symbol 1156 MovieClip Frame 1Symbol 587 MovieClip
"lifebar"Symbol 1156 MovieClip Frame 1Symbol 416 MovieClip
"selector"Symbol 1158 MovieClip Frame 1Symbol 408 MovieClip
"auto"Symbol 1158 MovieClip Frame 1Symbol 587 MovieClip
"lifebar"Symbol 1158 MovieClip Frame 1Symbol 416 MovieClip
"centre"Symbol 1167 MovieClip Frame 1Symbol 120 MovieClip
"lefts"Symbol 1167 MovieClip Frame 1Symbol 824 MovieClip
"bottoms"Symbol 1167 MovieClip Frame 1Symbol 824 MovieClip
"rights"Symbol 1167 MovieClip Frame 1Symbol 824 MovieClip
"tops"Symbol 1167 MovieClip Frame 1Symbol 824 MovieClip
"water"Symbol 1167 MovieClip Frame 1Symbol 1166 MovieClip
"selector"Symbol 1169 MovieClip Frame 1Symbol 408 MovieClip
"lifebar"Symbol 1169 MovieClip Frame 1Symbol 416 MovieClip
"centre"Symbol 1174 MovieClip Frame 1Symbol 120 MovieClip
"lefts"Symbol 1174 MovieClip Frame 1Symbol 824 MovieClip
"bottoms"Symbol 1174 MovieClip Frame 1Symbol 824 MovieClip
"rights"Symbol 1174 MovieClip Frame 1Symbol 824 MovieClip
"tops"Symbol 1174 MovieClip Frame 1Symbol 824 MovieClip
"water"Symbol 1174 MovieClip Frame 1Symbol 1173 MovieClip
"selector"Symbol 1176 MovieClip Frame 1Symbol 408 MovieClip
"lifebar"Symbol 1176 MovieClip Frame 1Symbol 416 MovieClip
"selector"Symbol 1180 MovieClip Frame 1Symbol 408 MovieClip
"auto"Symbol 1180 MovieClip Frame 1Symbol 587 MovieClip
"lifebar"Symbol 1180 MovieClip Frame 1Symbol 416 MovieClip
"centre"Symbol 1182 MovieClip Frame 1Symbol 120 MovieClip
"lefts"Symbol 1182 MovieClip Frame 1Symbol 824 MovieClip
"bottoms"Symbol 1182 MovieClip Frame 1Symbol 824 MovieClip
"rights"Symbol 1182 MovieClip Frame 1Symbol 824 MovieClip
"tops"Symbol 1182 MovieClip Frame 1Symbol 824 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 115 as "padded"
ExportAssets (56)Timeline Frame 1Symbol 228 as "bar"
ExportAssets (56)Timeline Frame 1Symbol 358 as "mapbar"
ExportAssets (56)Timeline Frame 1Symbol 364 as "missiondefend2"
ExportAssets (56)Timeline Frame 1Symbol 367 as "missiondefend"
ExportAssets (56)Timeline Frame 1Symbol 370 as "missiondefend6"
ExportAssets (56)Timeline Frame 1Symbol 372 as "missiondefend5"
ExportAssets (56)Timeline Frame 1Symbol 374 as "missiondefend4"
ExportAssets (56)Timeline Frame 1Symbol 376 as "missiondefend3"
ExportAssets (56)Timeline Frame 1Symbol 378 as "mission9"
ExportAssets (56)Timeline Frame 1Symbol 380 as "mission8"
ExportAssets (56)Timeline Frame 1Symbol 382 as "mission6"
ExportAssets (56)Timeline Frame 1Symbol 384 as "mission5"
ExportAssets (56)Timeline Frame 1Symbol 386 as "mission4"
ExportAssets (56)Timeline Frame 1Symbol 394 as "mission2"
ExportAssets (56)Timeline Frame 1Symbol 399 as "mission"
ExportAssets (56)Timeline Frame 1Symbol 417 as "lightally"
ExportAssets (56)Timeline Frame 1Symbol 426 as "heavyally"
ExportAssets (56)Timeline Frame 1Symbol 446 as "artilleryally"
ExportAssets (56)Timeline Frame 1Symbol 459 as "rocketally"
ExportAssets (56)Timeline Frame 1Symbol 461 as "humveeebase"
ExportAssets (56)Timeline Frame 1Symbol 468 as "humveeally"
ExportAssets (56)Timeline Frame 1Symbol 476 as "oiltruck"
ExportAssets (56)Timeline Frame 1Symbol 483 as "lasertank"
ExportAssets (56)Timeline Frame 1Symbol 490 as "laserbasedefense"
ExportAssets (56)Timeline Frame 1Symbol 496 as "mine"
ExportAssets (56)Timeline Frame 1Symbol 507 as "turrets"
ExportAssets (56)Timeline Frame 1Symbol 512 as "rad"
ExportAssets (56)Timeline Frame 1Symbol 515 as "laser2"
ExportAssets (56)Timeline Frame 1Symbol 519 as "ionbeams"
ExportAssets (56)Timeline Frame 1Symbol 522 as "laser"
ExportAssets (56)Timeline Frame 1Symbol 528 as "mo"
ExportAssets (56)Timeline Frame 1Symbol 539 as "enemyconstruction"
ExportAssets (56)Timeline Frame 1Symbol 545 as "construction2"
ExportAssets (56)Timeline Frame 1Symbol 553 as "construction"
ExportAssets (56)Timeline Frame 1Symbol 556 as "bigdot2"
ExportAssets (56)Timeline Frame 1Symbol 557 as "bigdot"
ExportAssets (56)Timeline Frame 1Symbol 560 as "dot2"
ExportAssets (56)Timeline Frame 1Symbol 571 as "nuke"
ExportAssets (56)Timeline Frame 1Symbol 576 as "targeter"
ExportAssets (56)Timeline Frame 1Symbol 581 as "nukemiss2"
ExportAssets (56)Timeline Frame 1Symbol 583 as "nukemiss"
ExportAssets (56)Timeline Frame 1Symbol 585 as "weaponsilo"
ExportAssets (56)Timeline Frame 1Symbol 589 as "enemyweaponsilo"
ExportAssets (56)Timeline Frame 1Symbol 592 as "enemylasertank"
ExportAssets (56)Timeline Frame 1Symbol 597 as "enemyoiltruck"
ExportAssets (56)Timeline Frame 1Symbol 599 as "enemyturret"
ExportAssets (56)Timeline Frame 1Symbol 601 as "mission3"
ExportAssets (56)Timeline Frame 1Symbol 603 as "enemywarfactory"
ExportAssets (56)Timeline Frame 1Symbol 607 as "enemyrefinery"
ExportAssets (56)Timeline Frame 1Symbol 609 as "enemycomcentre"
ExportAssets (56)Timeline Frame 1Symbol 611 as "enemyservicedepot"
ExportAssets (56)Timeline Frame 1Symbol 613 as "enemytechcentre"
ExportAssets (56)Timeline Frame 1Symbol 615 as "servicedepot"
ExportAssets (56)Timeline Frame 1Symbol 617 as "techcentre"
ExportAssets (56)Timeline Frame 1Symbol 619 as "enemylaser"
ExportAssets (56)Timeline Frame 1Symbol 626 as "enemymine"
ExportAssets (56)Timeline Frame 1Symbol 634 as "enemymultiple"
ExportAssets (56)Timeline Frame 1Symbol 636 as "patriotmiss"
ExportAssets (56)Timeline Frame 1Symbol 638 as "warfactory"
ExportAssets (56)Timeline Frame 1Symbol 640 as "refinery"
ExportAssets (56)Timeline Frame 1Symbol 642 as "comcentre"
ExportAssets (56)Timeline Frame 1Symbol 647 as "enemyconstruction2"
ExportAssets (56)Timeline Frame 1Symbol 649 as "dot"
ExportAssets (56)Timeline Frame 1Symbol 650 as "light"
ExportAssets (56)Timeline Frame 1Symbol 651 as "heavy"
ExportAssets (56)Timeline Frame 1Symbol 652 as "artillery"
ExportAssets (56)Timeline Frame 1Symbol 655 as "dozer"
ExportAssets (56)Timeline Frame 1Symbol 656 as "rocket"
ExportAssets (56)Timeline Frame 1Symbol 657 as "humvee"
ExportAssets (56)Timeline Frame 1Symbol 658 as "enemyheavy"
ExportAssets (56)Timeline Frame 1Symbol 659 as "enemyrocket"
ExportAssets (56)Timeline Frame 1Symbol 660 as "enemyhumvee"
ExportAssets (56)Timeline Frame 1Symbol 661 as "enemylight"
ExportAssets (56)Timeline Frame 1Symbol 662 as "enemyartillery"
ExportAssets (56)Timeline Frame 1Symbol 663 as "enemydozer"
ExportAssets (56)Timeline Frame 1Symbol 665 as "box5"
ExportAssets (56)Timeline Frame 1Symbol 850 as "sidebar"
ExportAssets (56)Timeline Frame 1Symbol 853 as "patriot"
ExportAssets (56)Timeline Frame 1Symbol 859 as "shell2"
ExportAssets (56)Timeline Frame 1Symbol 860 as "emp"
ExportAssets (56)Timeline Frame 1Symbol 865 as "bomb2"
ExportAssets (56)Timeline Frame 1Symbol 869 as "bomb"
ExportAssets (56)Timeline Frame 1Symbol 873 as "bullet"
ExportAssets (56)Timeline Frame 1Symbol 877 as "missile"
ExportAssets (56)Timeline Frame 1Symbol 881 as "flag2"
ExportAssets (56)Timeline Frame 1Symbol 887 as "shell"
ExportAssets (56)Timeline Frame 1Symbol 890 as "flag"
ExportAssets (56)Timeline Frame 1Symbol 893 as "flag copy"
ExportAssets (56)Timeline Frame 1Symbol 899 as "BoundingBox"
ExportAssets (56)Timeline Frame 1Symbol 901 as "BrdrShdw"
ExportAssets (56)Timeline Frame 1Symbol 903 as "BrdrFace"
ExportAssets (56)Timeline Frame 1Symbol 904 as "SimpleButtonDown"
ExportAssets (56)Timeline Frame 1Symbol 906 as "BrdrBlk"
ExportAssets (56)Timeline Frame 1Symbol 908 as "BrdrHilght"
ExportAssets (56)Timeline Frame 1Symbol 909 as "SimpleButtonIn"
ExportAssets (56)Timeline Frame 1Symbol 910 as "SimpleButtonUp"
ExportAssets (56)Timeline Frame 1Symbol 911 as "Defaults"
ExportAssets (56)Timeline Frame 1Symbol 912 as "UIObjectExtensions"
ExportAssets (56)Timeline Frame 1Symbol 913 as "UIObject"
ExportAssets (56)Timeline Frame 1Symbol 918 as "FocusRect"
ExportAssets (56)Timeline Frame 1Symbol 919 as "FocusManager"
ExportAssets (56)Timeline Frame 1Symbol 920 as "UIComponentExtensions"
ExportAssets (56)Timeline Frame 1Symbol 921 as "UIComponent"
ExportAssets (56)Timeline Frame 1Symbol 922 as "SimpleButton"
ExportAssets (56)Timeline Frame 1Symbol 923 as "Border"
ExportAssets (56)Timeline Frame 1Symbol 924 as "RectBorder"
ExportAssets (56)Timeline Frame 1Symbol 925 as "ButtonSkin"
ExportAssets (56)Timeline Frame 1Symbol 926 as "Button"
ExportAssets (56)Timeline Frame 1Symbol 894 as "__Packages.mx.core.UIObject"
ExportAssets (56)Timeline Frame 1Symbol 895 as "__Packages.mx.core.UIComponent"
ExportAssets (56)Timeline Frame 1Symbol 896 as "__Packages.mx.controls.SimpleButton"
ExportAssets (56)Timeline Frame 1Symbol 897 as "__Packages.mx.controls.Button"
ExportAssets (56)Timeline Frame 1Symbol 927 as "__Packages.mx.skins.SkinElement"
ExportAssets (56)Timeline Frame 1Symbol 928 as "__Packages.mx.styles.CSSTextStyles"
ExportAssets (56)Timeline Frame 1Symbol 929 as "__Packages.mx.styles.StyleManager"
ExportAssets (56)Timeline Frame 1Symbol 930 as "__Packages.mx.styles.CSSStyleDeclaration"
ExportAssets (56)Timeline Frame 1Symbol 931 as "__Packages.mx.events.EventDispatcher"
ExportAssets (56)Timeline Frame 1Symbol 932 as "__Packages.mx.events.UIEventDispatcher"
ExportAssets (56)Timeline Frame 1Symbol 933 as "__Packages.mx.skins.ColoredSkinElement"
ExportAssets (56)Timeline Frame 1Symbol 934 as "__Packages.mx.core.ext.UIObjectExtensions"
ExportAssets (56)Timeline Frame 1Symbol 935 as "__Packages.mx.skins.halo.Defaults"
ExportAssets (56)Timeline Frame 1Symbol 936 as "__Packages.mx.managers.DepthManager"
ExportAssets (56)Timeline Frame 1Symbol 937 as "__Packages.mx.managers.SystemManager"
ExportAssets (56)Timeline Frame 1Symbol 938 as "__Packages.mx.managers.FocusManager"
ExportAssets (56)Timeline Frame 1Symbol 939 as "__Packages.mx.skins.halo.FocusRect"
ExportAssets (56)Timeline Frame 1Symbol 940 as "__Packages.mx.managers.OverlappedWindows"
ExportAssets (56)Timeline Frame 1Symbol 941 as "__Packages.mx.styles.CSSSetStyle"
ExportAssets (56)Timeline Frame 1Symbol 942 as "__Packages.mx.core.ext.UIComponentExtensions"
ExportAssets (56)Timeline Frame 1Symbol 943 as "__Packages.mx.skins.Border"
ExportAssets (56)Timeline Frame 1Symbol 944 as "__Packages.mx.skins.RectBorder"
ExportAssets (56)Timeline Frame 1Symbol 945 as "__Packages.mx.skins.halo.RectBorder"
ExportAssets (56)Timeline Frame 1Symbol 946 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
"map0"Symbol 138 MovieClip Frame 1
"map3"Symbol 138 MovieClip Frame 2
"map5"Symbol 138 MovieClip Frame 3
"map1"Symbol 138 MovieClip Frame 4
"map2"Symbol 138 MovieClip Frame 5
"map4"Symbol 138 MovieClip Frame 6
"reverse"Symbol 228 MovieClip [bar] Frame 12
"options"Symbol 228 MovieClip [bar] Frame 27
"skirmish"Symbol 228 MovieClip [bar] Frame 38
"blue"Symbol 270 MovieClip Frame 1
"red"Symbol 270 MovieClip Frame 2
"none"Symbol 289 MovieClip Frame 1
"artillery"Symbol 289 MovieClip Frame 2
"light"Symbol 289 MovieClip Frame 3
"rocket"Symbol 289 MovieClip Frame 4
"humvee"Symbol 289 MovieClip Frame 5
"heavy"Symbol 289 MovieClip Frame 6
"war factory"Symbol 289 MovieClip Frame 7
"dozer"Symbol 289 MovieClip Frame 8
"comcentre"Symbol 289 MovieClip Frame 9
"oiltruck"Symbol 289 MovieClip Frame 10
"refinery"Symbol 289 MovieClip Frame 11
"construction"Symbol 289 MovieClip Frame 12
"turret1"Symbol 289 MovieClip Frame 13
"turret2"Symbol 289 MovieClip Frame 14
"turret3"Symbol 289 MovieClip Frame 15
"techcentre"Symbol 289 MovieClip Frame 16
"servicedepot"Symbol 289 MovieClip Frame 17
"mine"Symbol 289 MovieClip Frame 18
"lasertank"Symbol 289 MovieClip Frame 19
"weaponsilo"Symbol 289 MovieClip Frame 20
"none"Symbol 308 MovieClip Frame 1
"artillery"Symbol 308 MovieClip Frame 2
"light"Symbol 308 MovieClip Frame 3
"rocket"Symbol 308 MovieClip Frame 4
"humvee"Symbol 308 MovieClip Frame 5
"heavy"Symbol 308 MovieClip Frame 6
"war factory"Symbol 308 MovieClip Frame 7
"dozer"Symbol 308 MovieClip Frame 8
"comcentre"Symbol 308 MovieClip Frame 9
"oiltruck"Symbol 308 MovieClip Frame 10
"refinery"Symbol 308 MovieClip Frame 11
"construction"Symbol 308 MovieClip Frame 12
"turret1"Symbol 308 MovieClip Frame 13
"turret2"Symbol 308 MovieClip Frame 14
"turret3"Symbol 308 MovieClip Frame 15
"techcentre"Symbol 308 MovieClip Frame 16
"servicedepot"Symbol 308 MovieClip Frame 17
"mine"Symbol 308 MovieClip Frame 18
"lasertank"Symbol 308 MovieClip Frame 19
"weaponsilo"Symbol 308 MovieClip Frame 20
"group"Symbol 309 MovieClip Frame 1
"selected"Symbol 309 MovieClip Frame 2
"none"Symbol 325 MovieClip Frame 1
"artillery"Symbol 325 MovieClip Frame 2
"light"Symbol 325 MovieClip Frame 3
"rocket"Symbol 325 MovieClip Frame 4
"humvee"Symbol 325 MovieClip Frame 5
"heavy"Symbol 325 MovieClip Frame 6
"dozer"Symbol 325 MovieClip Frame 7
"lasertank"Symbol 325 MovieClip Frame 8
"upgrade"Symbol 358 MovieClip [mapbar] Frame 1
"explode"Symbol 406 MovieClip Frame 2
"normal"Symbol 413 MovieClip Frame 1
"explode"Symbol 422 MovieClip Frame 2
"normal"Symbol 425 MovieClip Frame 1
"deploying"Symbol 435 MovieClip Frame 2
"deployed"Symbol 435 MovieClip Frame 10
"explode"Symbol 435 MovieClip Frame 11
"normal"Symbol 445 MovieClip Frame 1
"ready"Symbol 445 MovieClip Frame 2
"explode"Symbol 449 MovieClip Frame 2
"normal"Symbol 458 MovieClip Frame 1
"rd"Symbol 458 MovieClip Frame 18
"explode"Symbol 461 MovieClip [humveeebase] Frame 2
"normal"Symbol 467 MovieClip Frame 1
"shoot"Symbol 467 MovieClip Frame 7
"sucking"Symbol 475 MovieClip Frame 2
"refining"Symbol 475 MovieClip Frame 3
"explode"Symbol 475 MovieClip Frame 9
"explode"Symbol 478 MovieClip Frame 2
"normal"Symbol 482 MovieClip Frame 1
"normal"Symbol 488 MovieClip Frame 1
"explode"Symbol 490 MovieClip [laserbasedefense] Frame 2
"explode"Symbol 496 MovieClip [mine] Frame 2
"normal"Symbol 506 MovieClip Frame 1
"explode"Symbol 507 MovieClip [turrets] Frame 2
"locator"Symbol 528 MovieClip [mo] Frame 2
"attacker"Symbol 528 MovieClip [mo] Frame 3
"built"Symbol 539 MovieClip [enemyconstruction] Frame 2
"explode"Symbol 539 MovieClip [enemyconstruction] Frame 3
"built"Symbol 545 MovieClip [construction2] Frame 2
"explode"Symbol 545 MovieClip [construction2] Frame 3
"built"Symbol 553 MovieClip [construction] Frame 2
"explode"Symbol 553 MovieClip [construction] Frame 3
"explode"Symbol 585 MovieClip [weaponsilo] Frame 2
"explode"Symbol 589 MovieClip [enemyweaponsilo] Frame 2
"explode"Symbol 591 MovieClip Frame 2
"sucking"Symbol 596 MovieClip Frame 2
"refining"Symbol 596 MovieClip Frame 3
"explode"Symbol 596 MovieClip Frame 9
"explode"Symbol 599 MovieClip [enemyturret] Frame 2
"explode"Symbol 603 MovieClip [enemywarfactory] Frame 2
"explode"Symbol 607 MovieClip [enemyrefinery] Frame 2
"explode"Symbol 609 MovieClip [enemycomcentre] Frame 2
"explode"Symbol 611 MovieClip [enemyservicedepot] Frame 2
"explode"Symbol 613 MovieClip [enemytechcentre] Frame 2
"explode"Symbol 615 MovieClip [servicedepot] Frame 2
"explode"Symbol 617 MovieClip [techcentre] Frame 2
"explode"Symbol 619 MovieClip [enemylaser] Frame 2
"explode"Symbol 626 MovieClip [enemymine] Frame 25
"normal"Symbol 633 MovieClip Frame 1
"rd"Symbol 633 MovieClip Frame 9
"explode"Symbol 634 MovieClip [enemymultiple] Frame 2
"explode"Symbol 636 MovieClip [patriotmiss] Frame 2
"explode"Symbol 638 MovieClip [warfactory] Frame 2
"explode"Symbol 640 MovieClip [refinery] Frame 2
"explode"Symbol 642 MovieClip [comcentre] Frame 2
"built"Symbol 647 MovieClip [enemyconstruction2] Frame 2
"explode"Symbol 647 MovieClip [enemyconstruction2] Frame 3
"explode"Symbol 654 MovieClip Frame 2
"nonuke"Symbol 688 MovieClip Frame 1
"nonuke"Symbol 708 MovieClip Frame 1
"none"Symbol 731 MovieClip Frame 1
"artillery"Symbol 731 MovieClip Frame 2
"light"Symbol 731 MovieClip Frame 3
"rocket"Symbol 731 MovieClip Frame 4
"humvee"Symbol 731 MovieClip Frame 5
"heavy"Symbol 731 MovieClip Frame 6
"war factory"Symbol 731 MovieClip Frame 7
"dozer"Symbol 731 MovieClip Frame 8
"comcentre"Symbol 731 MovieClip Frame 9
"oiltruck"Symbol 731 MovieClip Frame 10
"refinery"Symbol 731 MovieClip Frame 11
"construction"Symbol 731 MovieClip Frame 12
"turret1"Symbol 731 MovieClip Frame 13
"turret2"Symbol 731 MovieClip Frame 14
"turret3"Symbol 731 MovieClip Frame 15
"techcentre"Symbol 731 MovieClip Frame 16
"servicedepot"Symbol 731 MovieClip Frame 17
"mine"Symbol 731 MovieClip Frame 18
"lasertank"Symbol 731 MovieClip Frame 19
"weaponsilo"Symbol 731 MovieClip Frame 20
"airport"Symbol 731 MovieClip Frame 21
"derrick"Symbol 731 MovieClip Frame 22
"radar"Symbol 731 MovieClip Frame 23
"group"Symbol 733 MovieClip Frame 1
"selected"Symbol 733 MovieClip Frame 2
"none"Symbol 759 MovieClip Frame 1
"selected"Symbol 759 MovieClip Frame 2
"none"Symbol 761 MovieClip Frame 1
"selected"Symbol 761 MovieClip Frame 2
"none"Symbol 781 MovieClip Frame 1
"selected"Symbol 781 MovieClip Frame 2
"building"Symbol 781 MovieClip Frame 3
"reserved"Symbol 781 MovieClip Frame 12
"none"Symbol 786 MovieClip Frame 1
"selected"Symbol 786 MovieClip Frame 2
"building"Symbol 786 MovieClip Frame 3
"none"Symbol 789 MovieClip Frame 1
"selected"Symbol 789 MovieClip Frame 2
"built"Symbol 789 MovieClip Frame 3
"none"Symbol 791 MovieClip Frame 1
"selected"Symbol 791 MovieClip Frame 2
"none"Symbol 795 MovieClip Frame 1
"selected"Symbol 795 MovieClip Frame 2
"building"Symbol 795 MovieClip Frame 3
"reserved"Symbol 795 MovieClip Frame 12
"already"Symbol 795 MovieClip Frame 13
"none"Symbol 797 MovieClip Frame 1
"selected"Symbol 797 MovieClip Frame 2
"built"Symbol 797 MovieClip Frame 3
"map1"Symbol 840 MovieClip Frame 1
"map2"Symbol 840 MovieClip Frame 2
"dark"Symbol 844 MovieClip Frame 1
"group"Symbol 844 MovieClip Frame 2
"upgrade"Symbol 850 MovieClip [sidebar] Frame 1
"LOAD"Symbol 1021 MovieClip Frame 1
"COMPLETE_STOP"Symbol 1021 MovieClip Frame 2
"explode"Symbol 1113 MovieClip Frame 2
"explode"Symbol 1152 MovieClip Frame 2
"explode"Symbol 1154 MovieClip Frame 2
"explode"Symbol 1156 MovieClip Frame 2
"explode"Symbol 1158 MovieClip Frame 2
"explode"Symbol 1169 MovieClip Frame 2
"explode"Symbol 1176 MovieClip Frame 2
"explode"Symbol 1180 MovieClip Frame 2

Dynamic Text Variables

scSymbol 79 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 86 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 91 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 95 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 100 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 104 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 149 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 157 EditableText"<p align="left"></p>"
mapnameSymbol 161 EditableText"<p align="center"><font face="MS Reference Sans Serif" size="25" color="#ffff00" letterSpacing="0.000000" kerning="1">Arena</font></p>"
_root.aipSymbol 166 EditableText"<p align="left"><font face="MS Reference Sans Serif" size="15" color="#ffffff" letterSpacing="0.000000" kerning="1">Technology Commander</font></p>"
difficultySymbol 167 EditableText"<p align="left"><font face="MS Reference Sans Serif" size="15" color="#ffffff" letterSpacing="0.000000" kerning="1">Novice Enemy</font></p>"
statsSymbol 291 EditableText"Rocket Launcher firepower: HP: speed: shellspeed: range: fire period:"
textsSymbol 326 EditableText"<p align="left"></p>"
wordsSymbol 330 EditableText"<p align="justify"><font face="Arial" size="16" color="#00ff00" letterSpacing="1.000000" kerning="1"><b>Copyright(c)</b></font></p><p align="justify"><font face="Arial" size="16" color="#00ff00" letterSpacing="1.000000" kerning="1"><b>Tank Wars</b></font></p><p align="justify"><font face="Arial" size="16" color="#00ff00" letterSpacing="1.000000" kerning="1"><b>2007</b></font></p><p align="justify"><font face="Arial" size="16" color="#00ff00" letterSpacing="1.000000" kerning="1"><b>best quality: medium</b></font></p><p align="justify"></p><p align="justify"><font face="Arial" size="16" color="#00ff00" letterSpacing="1.000000" kerning="1"><b>Dont build more than 50 units or lag.</b></font></p>"
_root.timertSymbol 392 EditableText"<p align="left"></p>"
_root.wavesSymbol 393 EditableText"<p align="left"></p>"
percentSymbol 532 EditableText"<p align="left"><font face="Arial" size="16" color="#990000" letterSpacing="0.000000" kerning="1">0</font></p>"
percentSymbol 537 EditableText"<p align="left"><font face="Arial" size="16" color="#ffffff" letterSpacing="0.000000" kerning="1">100</font></p>"
percentSymbol 542 EditableText"<p align="left"><font face="Arial" size="16" color="#0000ff" letterSpacing="0.000000" kerning="1">0</font></p>"
percentSymbol 548 EditableText"<p align="left"><font face="Arial" size="16" color="#0000ff" letterSpacing="0.000000" kerning="1">0</font></p>"
percentSymbol 551 EditableText"<p align="left"><font face="Arial" size="16" color="#ffffff" letterSpacing="0.000000" kerning="1">100</font></p>"
percentSymbol 645 EditableText"<p align="left"><font face="Arial" size="16" color="#990000" letterSpacing="0.000000" kerning="1">0</font></p>"
queueSymbol 669 EditableText"1"
percentSymbol 671 EditableText"<p align="left"><font face="Arial" size="14" color="#0000ff" letterSpacing="0.000000" kerning="1"><b>100</b></font></p>"
percentSymbol 691 EditableText"<p align="left"><font face="Arial" size="14" color="#990000" letterSpacing="0.000000" kerning="1"><b>100</b></font></p>"
statsSymbol 732 EditableText"Rocket Launcher firepower: HP: speed: shellspeed: range: fire period:"
textsSymbol 747 EditableText"<p align="center"></p>"
_root.moneySymbol 762 EditableText"<p align="left"></p>"
textsSymbol 767 EditableText"<p align="center"></p>"
_root.objarraysSymbol 1037 EditableText"<p align="left"><font face="Arial" size="12" color="#000000" letterSpacing="0.000000" kerning="1"><b>dddd</b></font></p>"
enemymoneySymbol 1038 EditableText""
killSymbol 1074 EditableText"<p align="left"></p>"
lossSymbol 1075 EditableText"<p align="left"></p>"
builSymbol 1076 EditableText"<p align="left"></p>"
scoresSymbol 1078 EditableText"<p align="left"></p>"
killSymbol 1081 EditableText"<p align="left"></p>"
lossSymbol 1082 EditableText"<p align="left"></p>"
builSymbol 1083 EditableText"<p align="left"></p>"
scoresSymbol 1084 EditableText"<p align="left"></p>"
_root.objarraysSymbol 1108 EditableText"<p align="left"><font face="Arial" size="12" color="#000000" letterSpacing="0.000000" kerning="1"><b>dddd</b></font></p>"
enemymoneySymbol 1110 EditableText""
gathersSymbol 1116 EditableText"<p align="left"></p>"
_root.objarraysSymbol 1159 EditableText"<p align="left"><font face="Arial" size="12" color="#000000" letterSpacing="0.000000" kerning="1"><b>dddd</b></font></p>"
_root.objarraysSymbol 1160 EditableText"<p align="left"><font face="Arial" size="12" color="#000000" letterSpacing="0.000000" kerning="1"><b>dddd</b></font></p>"
killSymbol 1184 EditableText"<p align="left"></p>"
lossSymbol 1185 EditableText"<p align="left"></p>"
builSymbol 1186 EditableText"<p align="left"></p>"
scoresSymbol 1187 EditableText"<p align="left"></p>"
_root.objarraysSymbol 1188 EditableText"<p align="left"><font face="Arial" size="12" color="#000000" letterSpacing="0.000000" kerning="1"><b>dddd</b></font></p>"
enemymoneySymbol 1189 EditableText""




http://swfchan.com/16/75413/info.shtml
Created: 6/4 -2019 05:30:39 Last modified: 6/4 -2019 05:30:39 Server time: 15/05 -2024 19:18:09