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

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

Two Rooms.swf

This is the info page for
Flash #47473

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


Text
This game saves your data (just don't delete your cookies)

play

This is an interactive
menu. Press spacebar
and hold the arrow
keys to begin.

EXIT OPTIONS

H

M

L

Quality:

You've
reached level:

1:

5:

4:

3:

2:

TOTAL SCORE:

---

___

___

___

___

6:

10:

9:

8:

7:

___

___

___

___

___

11:

15:

14:

13:

12:

___

___

___

___

___

16:

20:

19:

18:

17:

___

___

___

___

___

21:

25:

24:

23:

22:

___

___

___

___

___

26:

30:

29:

28:

27:

___

___

___

___

___

2222

Click to go to the level (only works if you've gotten up to it)

(low is good)

sFX

Let's cover the basics:

ARROW KEYS:
to move

SPACEBAR:
to switch

You have have two pieces:

Only one can move at a time.

Hit these:                    to move the walls.

(NEXT)

(NEXT)

(DONE)

(DONE)

Move your piece over this
to begin!

Music Credits:

Cycerin - Vain Star
Sean Lilley - Chill Factor
Skragga - Deep Space Paradise
Cycerin - Landfall
Sean Lilley- Guitar Symphony
(Click song to hear it on the
Newgrounds Audio Portal)

Other Credits:

Sponsor- ArmorGames.com
CG Textures - For some textures
1001 Free Fonts - For free fonts

Main Credits:

Ian and Sean Lilley -
Programming,
designing, drawing,
assembling, and
everything else.

Your name:

name

BEFORE SUBMITTING:
Know that you can improve on your level
scores and submit later. Once you press
sumbit, all your level scores will be erased.

You need to beat all the levels to submit!

(B or N)

(Q or W)

(P)

Your Best Time:

Puzzle:

Speed:

Ok, you've got the absolute basics down.
If you haven't noticed, colored walls
point in the direction they move.

This is a gap in the
center wall. Colored
walls can go
through it, but you
CANNOT.

This is a stop piece:

When you touch it, its
corresponding colored wall
will STOP moving.

Test what you've learned so far
on the next level.

Some colored walls aren't
attached to the black border. To
find out which are and which
aren't, just play the level.

Don't get crushed between two
walls. You might just EXPLODE.
By the way, press "P" or click
the options button on the
bottom-left to pause the game.

Makes you smaller:

Makes your inactive
piece move in the
opposite direction:

*When a level has a reverse item, you must
reach the finish line in both rooms.

To maneuver around tight
corners, try holding TWO arrow
keys at once.
Collect all the blue beads to
open the blue wall.

If two moving walls hit each other,
they both STOP.
But when a moving wall hits a
stationary wall, the moving wall
STOPS and the stationary wall is
free to move (once you get its key).

The next level has two ways to
win using your knowledge of
wall vs. wall collisions.

This is a crate:

A crate often holds objects.
You must break open the
crate to get what's inside.
Crates can go through gaps.

More crate practice.

Even more crate practice.

All objects (including
your piece) can go
through transparent
zones on walls:

This level will test EVERYTHING
you know so far.
Note: you cannot push crates
when you are small.

This is a switch:
Only colored walls and
crates can activate them:

The switch stays down permanently

Have you ever played the game
Rush Hour?

Keep at it and you'll be
rewarded later with some
humorous sketches.

Remember to get all the
blue beads. This time it's harder.

This is a transporter:

Send a crate through this to
get the crate to the other side.
Don't block the transporter's
path with anything (you, a wall,
or another crate), or it won't be
able to transport.

You've learned everything you
need to know to complete the
last set of levels.
GOOD LUCK!
(no more instructions from now on)

But seriously, we congratulate you
for sticking around and beating all
the levels, especially if you did so
without reading any of the hints.

TOTAL SCORE:

5555

Your Time:

"B" or "N" - RESTART LEVEL   "P" - PAUSE
"Q" and "W" - SWITCH BETWEEN LEVELS
(will not allow you to skip to later levels)

You have two pieces:

Only one can move at a time.

Hit these:                    to move the walls

Colored walls point in the direction
they move.

This is a gap in the
center wall. Colored
walls can go
through it, but you
CANNOT.

Don't get crushed between two
walls. You might just EXPLODE.

To maneuver around tight
corners, try holding TWO arrow
keys at once.
Collect all the blue beads to
open a blue wall.
(only for certain levels)

*You cannot push crates when small

Click to REVEAL

Cycle

Repeat

If you're already
stuck, I suggest
you play an
easier game.

Check out the
instructions
here ----------[
if confused.

Before making the
green wall move,
position your
piece right below
the orange wall.

After moving
the purple wall,
get the purple
stop piece fast.

Get the orange
stop piece right
after you get
the orange key.

Take your time,
this level isn't
too fast.

Get the orange
key before
getting the green
key.

Switching
between your two
pieces may make
this easier.

Switching
between your two
pieces may make
this level easier.

Get the red key,
then get the
others on the
other side in
rapid succession.

Crush the crate
between a moving
wall and a solid
wall.

Before getting the
small piece, crush
open the bottom
crate and move the
upper right crates.

Wait until the blue
wall is mostly off
the left room, then
hit the green key.

Position your left
piece in the top-
center. Then make
an upwards and
right movement on
the other side.

Let the bottom
blue wall hit
the purple wall.
Then get the
purple key.

Carefully maneuver
your crate around
the walls. The order
you hit the switches
doesn't matter.

Get the vertical
string of blue
pieces in the right
room first, then the
vertical string
under the pink wall.

Push the crate all
the way through the
middle and then
push it up or down.

Only hit the blue and
red keys once the
crate has been
transported to the
right room.

Carefully plan out
the order you want
to move the walls.
Remember, not all
keys have to be hit
to win.

Hold two keys
at once when
approaching a
narrow entry.

Don't try to beat
the blue wall. It
won't work.

This level isn't
as complicated
as it may seem
to be.

Get the aqua key
fast after getting
the purple key.

The level is a chain
reaction. Align all the
crates in their
proper places and
watch the level
unfold.

Stop the blue
wall at the right
time to get
through.

Consider all the
different
pathways and act
accordingly.

Only let the aqua
wall hit one
switch, and stop it
from hitting the
other.

Use the purple
wall before you
move it.

Cover your left
piece over the
transporter
when necessary.

sFX

If you mess up,
press "B" or "N"
to restart.

TIME:

best:

LEVEL 1/30

LEVEL 2/30

LEVEL 7/30

LEVEL 6/30

Press "P" right now!

LEVEL 4/30

LEVEL 5/30

LEVEL 10/30

LEVEL 8/30

LEVEL 22/30

LEVEL 19/30

LEVEL 12/30

LEVEL 16/30

LEVEL 15/30

LEVEL 23/30

LEVEL 11/30

LEVEL 17/30

LEVEL 20/30

LEVEL 14/30

LEVEL 21/30

LEVEL 18/30

Go to OPTIONS in the
main menu to check on
your best times.

LEVEL 9/30

Press "Q" and "W" to
switch between levels
you've beaten.

LEVEL 3/30

LEVEL 13/30

LEVEL 30/30

LEVEL 28/30

LEVEL 24/30

LEVEL 29/30

LEVEL 26/30

LEVEL 25/30

LEVEL 27/30

A GAME BY:
SEAN AND
IAN LILLEY

LILLEYDESIGN.com

sean and
ian lilley

ActionScript [AS1/AS2]

Frame 1
var CPMStarContentSpotID = "305Q0C6B47FC"; System.security.allowDomain("server.cpmstar.com"); adBox.loadMovie("http://server.cpmstar.com/adviewas2.swf?contentspotid=" + CPMStarContentSpotID);
Frame 3
function ball1_old_location() { x_location = ball1._x; y_location = ball1._y; } stop(); levelnumber2 = 0; getwebsite = true; getwebsite2 = true; menuVolumeMoved = false; Stage.showMenu = false; if (you_understand != true) { you_understand = false; } var savefile = SharedObject.getLocal("tworooms"); if (savefile.data.score > 30) { savefile.data.score = 1; savefile.flush(); } if (savefile.data.score == undefined) { _root.score = 1; } else { _root.score = savefile.data.score; } if (savefile.data.level1_best_time == undefined) { _root.level1_best_time = 0; } else { _root.level1_best_time = savefile.data.level1_best_time; } if (savefile.data.level2_best_time == undefined) { _root.level2_best_time = 0; } else { _root.level2_best_time = savefile.data.level2_best_time; } if (savefile.data.level3_best_time == undefined) { _root.level3_best_time = 0; } else { _root.level3_best_time = savefile.data.level3_best_time; } if (savefile.data.level4_best_time == undefined) { _root.level4_best_time = 0; } else { _root.level4_best_time = savefile.data.level4_best_time; } if (savefile.data.level5_best_time == undefined) { _root.level5_best_time = 0; } else { _root.level5_best_time = savefile.data.level5_best_time; } if (savefile.data.level6_best_time == undefined) { _root.level6_best_time = 0; } else { _root.level6_best_time = savefile.data.level6_best_time; } if (savefile.data.level7_best_time == undefined) { _root.level7_best_time = 0; } else { _root.level7_best_time = savefile.data.level7_best_time; } if (savefile.data.level8_best_time == undefined) { _root.level8_best_time = 0; } else { _root.level8_best_time = savefile.data.level8_best_time; } if (savefile.data.level9_best_time == undefined) { _root.level9_best_time = 0; } else { _root.level9_best_time = savefile.data.level9_best_time; } if (savefile.data.level10_best_time == undefined) { _root.level10_best_time = 0; } else { _root.level10_best_time = savefile.data.level10_best_time; } if (savefile.data.level11_best_time == undefined) { _root.level11_best_time = 0; } else { _root.level11_best_time = savefile.data.level11_best_time; } if (savefile.data.level12_best_time == undefined) { _root.level12_best_time = 0; } else { _root.level12_best_time = savefile.data.level12_best_time; } if (savefile.data.level13_best_time == undefined) { _root.level13_best_time = 0; } else { _root.level13_best_time = savefile.data.level13_best_time; } if (savefile.data.level14_best_time == undefined) { _root.level14_best_time = 0; } else { _root.level14_best_time = savefile.data.level14_best_time; } if (savefile.data.level15_best_time == undefined) { _root.level15_best_time = 0; } else { _root.level15_best_time = savefile.data.level15_best_time; } if (savefile.data.level16_best_time == undefined) { _root.level16_best_time = 0; } else { _root.level16_best_time = savefile.data.level16_best_time; } if (savefile.data.level17_best_time == undefined) { _root.level17_best_time = 0; } else { _root.level17_best_time = savefile.data.level17_best_time; } if (savefile.data.level18_best_time == undefined) { _root.level18_best_time = 0; } else { _root.level18_best_time = savefile.data.level18_best_time; } if (savefile.data.level19_best_time == undefined) { _root.level19_best_time = 0; } else { _root.level19_best_time = savefile.data.level19_best_time; } if (savefile.data.level20_best_time == undefined) { _root.level20_best_time = 0; } else { _root.level20_best_time = savefile.data.level20_best_time; } if (savefile.data.level21_best_time == undefined) { _root.level21_best_time = 0; } else { _root.level21_best_time = savefile.data.level21_best_time; } if (savefile.data.level22_best_time == undefined) { _root.level22_best_time = 0; } else { _root.level22_best_time = savefile.data.level22_best_time; } if (savefile.data.level23_best_time == undefined) { _root.level23_best_time = 0; } else { _root.level23_best_time = savefile.data.level23_best_time; } if (savefile.data.level24_best_time == undefined) { _root.level24_best_time = 0; } else { _root.level24_best_time = savefile.data.level24_best_time; } if (savefile.data.level25_best_time == undefined) { _root.level25_best_time = 0; } else { _root.level25_best_time = savefile.data.level25_best_time; } if (savefile.data.level26_best_time == undefined) { _root.level26_best_time = 0; } else { _root.level26_best_time = savefile.data.level26_best_time; } if (savefile.data.level27_best_time == undefined) { _root.level27_best_time = 0; } else { _root.level27_best_time = savefile.data.level27_best_time; } if (savefile.data.level28_best_time == undefined) { _root.level28_best_time = 0; } else { _root.level28_best_time = savefile.data.level28_best_time; } if (savefile.data.level29_best_time == undefined) { _root.level29_best_time = 0; } else { _root.level29_best_time = savefile.data.level29_best_time; } if (savefile.data.level30_best_time == undefined) { _root.level30_best_time = 0; } else { _root.level30_best_time = savefile.data.level30_best_time; } if (savefile.data.scoresubmit1 == undefined) { _root.scoresubmit1 = true; } else { _root.scoresubmit1 = savefile.data.scoresubmit1; } if (savefile.data.scoresubmit2 == undefined) { _root.scoresubmit2 = true; } else { _root.scoresubmit2 = savefile.data.scoresubmit2; } if (savefile.data.scoresubmit3 == undefined) { _root.scoresubmit3 = true; } else { _root.scoresubmit3 = savefile.data.scoresubmit3; } if (savefile.data.scoresubmit4 == undefined) { _root.scoresubmit4 = true; } else { _root.scoresubmit4 = savefile.data.scoresubmit4; } if (savefile.data.scoresubmit5 == undefined) { _root.scoresubmit5 = true; } else { _root.scoresubmit5 = savefile.data.scoresubmit5; } if (savefile.data.scoresubmit6 == undefined) { _root.scoresubmit6 = true; } else { _root.scoresubmit6 = savefile.data.scoresubmit6; } if (savefile.data.scoresubmit7 == undefined) { _root.scoresubmit7 = true; } else { _root.scoresubmit7 = savefile.data.scoresubmit7; } if (savefile.data.scoresubmit8 == undefined) { _root.scoresubmit8 = true; } else { _root.scoresubmit8 = savefile.data.scoresubmit8; } if (savefile.data.scoresubmit9 == undefined) { _root.scoresubmit9 = true; } else { _root.scoresubmit9 = savefile.data.scoresubmit9; } if (savefile.data.scoresubmit10 == undefined) { _root.scoresubmit10 = true; } else { _root.scoresubmit10 = savefile.data.scoresubmit10; } if (savefile.data.scoresubmit11 == undefined) { _root.scoresubmit11 = true; } else { _root.scoresubmit11 = savefile.data.scoresubmit11; } if (savefile.data.scoresubmit12 == undefined) { _root.scoresubmit12 = true; } else { _root.scoresubmit12 = savefile.data.scoresubmit12; } if (savefile.data.scoresubmit13 == undefined) { _root.scoresubmit13 = true; } else { _root.scoresubmit13 = savefile.data.scoresubmit13; } if (savefile.data.scoresubmit14 == undefined) { _root.scoresubmit14 = true; } else { _root.scoresubmit14 = savefile.data.scoresubmit14; } if (savefile.data.scoresubmit15 == undefined) { _root.scoresubmit15 = true; } else { _root.scoresubmit15 = savefile.data.scoresubmit15; } if (savefile.data.scoresubmit16 == undefined) { _root.scoresubmit16 = true; } else { _root.scoresubmit16 = savefile.data.scoresubmit16; } if (savefile.data.scoresubmit17 == undefined) { _root.scoresubmit17 = true; } else { _root.scoresubmit17 = savefile.data.scoresubmit17; } if (savefile.data.scoresubmit18 == undefined) { _root.scoresubmit18 = true; } else { _root.scoresubmit18 = savefile.data.scoresubmit18; } if (savefile.data.scoresubmit19 == undefined) { _root.scoresubmit19 = true; } else { _root.scoresubmit19 = savefile.data.scoresubmit19; } if (savefile.data.scoresubmit20 == undefined) { _root.scoresubmit20 = true; } else { _root.scoresubmit20 = savefile.data.scoresubmit20; } if (savefile.data.scoresubmit21 == undefined) { _root.scoresubmit21 = true; } else { _root.scoresubmit21 = savefile.data.scoresubmit21; } if (savefile.data.scoresubmit22 == undefined) { _root.scoresubmit22 = true; } else { _root.scoresubmit22 = savefile.data.scoresubmit22; } if (savefile.data.scoresubmit23 == undefined) { _root.scoresubmit23 = true; } else { _root.scoresubmit23 = savefile.data.scoresubmit23; } if (savefile.data.scoresubmit24 == undefined) { _root.scoresubmit24 = true; } else { _root.scoresubmit24 = savefile.data.scoresubmit24; } if (savefile.data.scoresubmit25 == undefined) { _root.scoresubmit25 = true; } else { _root.scoresubmit25 = savefile.data.scoresubmit25; } if (savefile.data.scoresubmit26 == undefined) { _root.scoresubmit26 = true; } else { _root.scoresubmit26 = savefile.data.scoresubmit26; } if (savefile.data.scoresubmit27 == undefined) { _root.scoresubmit27 = true; } else { _root.scoresubmit27 = savefile.data.scoresubmit27; } if (savefile.data.scoresubmit28 == undefined) { _root.scoresubmit28 = true; } else { _root.scoresubmit28 = savefile.data.scoresubmit28; } if (savefile.data.scoresubmit29 == undefined) { _root.scoresubmit29 = true; } else { _root.scoresubmit29 = savefile.data.scoresubmit29; } if (savefile.data.scoresubmit30 == undefined) { _root.scoresubmit30 = true; } else { _root.scoresubmit30 = savefile.data.scoresubmit30; } radius = ball1._height / 2; SPACE_possible = true; greenwall_movement = false; redwall_movement = false; orangewall_movement = false; bluewall_movement = false; ball_movement = true; finisher = false; gotonextframe = false; gotonextframe2 = false; gotonextframe = false; gotonextframe3 = false; gotonextframe4 = false; gotonextframe5 = false; gotonextframe6 = false; gotonextframe7 = false; gotonextframe8 = false; gotonextframe9 = false; gotonextframe10 = false; gotonextframe11 = false; gotonextframe12 = false; gotonextframe13 = false; gotonextframe14 = false; gotonextframe15 = false; gotonextframe16 = false; gotonextframe17 = false; gotonextframe18 = false; gotonextframe19 = false; gotonextframe20 = false; gotonextframe21 = false; gotonextframe22 = false; gotonextframe23 = false; gotonextframe24 = false; gotonextframe25 = false; gotonextframe26 = false; gotonextframe27 = false; gotonextframe28 = false; gotonextframe29 = false; gotonextframe30 = false; gotonextframe31 = false; option._x = 100000 /* 0x0186A0 */; win._x = 10000; options._x = -5000; restartbutton._x = -5000; QW._x = -5000; P._x = -5000; BN._x = -5000; if (timeactivator2 != true) { _root.timeactivator2 = false; } _root.timeactivater.gotoAndStop(2); options.gotoAndStop(1); redkey._x = 421.2; redkey._y = 182.1; redwall._x = 200; redwall._y = 138.1; orangekey._x = 421.2; orangekey._y = 367.1; orangewall._x = 500; orangewall._y = 138.1; greenwall._x = 500; greenwall._y = 412.4; greenkey._x = 576; greenkey._y = 367.1; bluewall._x = 200; bluewall._y = 412.4; bluekey._x = 579; bluekey._y = 182.1; ball1._x = 200; ball1._y = 275; ball2._x = 500; ball2._y = 275; finish1._x = 500; finish1._y = 80.8; finish2._x = 200; finish2._y = 80.8; finish3._x = 200; finish3._y = 468.8; finish4._x = 500; finish4._y = 468.8; if (_root.level30_best_time > 0) { score = 30; } _root.option9.submitScore.onRelease = function () { if (submitPossible) { trace("Score Submitted"); scoresubmit = true; scoresubmit1 = false; scoresubmit2 = false; scoresubmit3 = false; scoresubmit4 = false; scoresubmit5 = false; scoresubmit6 = false; scoresubmit7 = false; scoresubmit8 = false; scoresubmit9 = false; scoresubmit10 = false; scoresubmit11 = false; scoresubmit12 = false; scoresubmit13 = false; scoresubmit14 = false; scoresubmit15 = false; scoresubmit16 = false; scoresubmit17 = false; scoresubmit18 = false; scoresubmit19 = false; scoresubmit20 = false; scoresubmit21 = false; scoresubmit22 = false; scoresubmit23 = false; scoresubmit24 = false; scoresubmit25 = false; scoresubmit26 = false; scoresubmit27 = false; scoresubmit28 = false; scoresubmit29 = false; scoresubmit30 = false; _root.level1_best_time = 0; _root.level2_best_time = 0; _root.level3_best_time = 0; _root.level4_best_time = 0; _root.level5_best_time = 0; _root.level6_best_time = 0; _root.level7_best_time = 0; _root.level8_best_time = 0; _root.level9_best_time = 0; _root.level10_best_time = 0; _root.level11_best_time = 0; _root.level12_best_time = 0; _root.level13_best_time = 0; _root.level14_best_time = 0; _root.level15_best_time = 0; _root.level16_best_time = 0; _root.level17_best_time = 0; _root.level18_best_time = 0; _root.level19_best_time = 0; _root.level20_best_time = 0; _root.level21_best_time = 0; _root.level22_best_time = 0; _root.level23_best_time = 0; _root.level24_best_time = 0; _root.level25_best_time = 0; _root.level26_best_time = 0; _root.level27_best_time = 0; _root.level28_best_time = 0; _root.level29_best_time = 0; _root.level30_best_time = 0; savefile.data.level1_best_time = _root.level1_best_time; savefile.data.level2_best_time = _root.level2_best_time; savefile.data.level3_best_time = _root.level3_best_time; savefile.data.level4_best_time = _root.level4_best_time; savefile.data.level5_best_time = _root.level5_best_time; savefile.data.level6_best_time = _root.level6_best_time; savefile.data.level7_best_time = _root.level7_best_time; savefile.data.level8_best_time = _root.level8_best_time; savefile.data.level9_best_time = _root.level9_best_time; savefile.data.level10_best_time = _root.level10_best_time; savefile.data.level11_best_time = _root.level11_best_time; savefile.data.level12_best_time = _root.level12_best_time; savefile.data.level13_best_time = _root.level13_best_time; savefile.data.level14_best_time = _root.level14_best_time; savefile.data.level15_best_time = _root.level15_best_time; savefile.data.level16_best_time = _root.level16_best_time; savefile.data.level17_best_time = _root.level17_best_time; savefile.data.level18_best_time = _root.level18_best_time; savefile.data.level19_best_time = _root.level19_best_time; savefile.data.level20_best_time = _root.level20_best_time; savefile.data.level21_best_time = _root.level21_best_time; savefile.data.level22_best_time = _root.level22_best_time; savefile.data.level23_best_time = _root.level23_best_time; savefile.data.level24_best_time = _root.level24_best_time; savefile.data.level25_best_time = _root.level25_best_time; savefile.data.level26_best_time = _root.level26_best_time; savefile.data.level27_best_time = _root.level27_best_time; savefile.data.level28_best_time = _root.level28_best_time; savefile.data.level29_best_time = _root.level29_best_time; savefile.data.level30_best_time = _root.level30_best_time; savefile.data.level30_best_time = _root.level30_best_time; savefile.data.scoresubmit1 = _root.scoresubmit1; savefile.data.scoresubmit2 = _root.scoresubmit2; savefile.data.scoresubmit3 = _root.scoresubmit3; savefile.data.scoresubmit4 = _root.scoresubmit4; savefile.data.scoresubmit5 = _root.scoresubmit5; savefile.data.scoresubmit6 = _root.scoresubmit6; savefile.data.scoresubmit7 = _root.scoresubmit7; savefile.data.scoresubmit8 = _root.scoresubmit8; savefile.data.scoresubmit9 = _root.scoresubmit9; savefile.data.scoresubmit10 = _root.scoresubmit10; savefile.data.scoresubmit11 = _root.scoresubmit11; savefile.data.scoresubmit12 = _root.scoresubmit12; savefile.data.scoresubmit13 = _root.scoresubmit13; savefile.data.scoresubmit14 = _root.scoresubmit14; savefile.data.scoresubmit15 = _root.scoresubmit15; savefile.data.scoresubmit16 = _root.scoresubmit16; savefile.data.scoresubmit17 = _root.scoresubmit17; savefile.data.scoresubmit18 = _root.scoresubmit18; savefile.data.scoresubmit19 = _root.scoresubmit19; savefile.data.scoresubmit20 = _root.scoresubmit20; savefile.data.scoresubmit21 = _root.scoresubmit21; savefile.data.scoresubmit22 = _root.scoresubmit22; savefile.data.scoresubmit23 = _root.scoresubmit23; savefile.data.scoresubmit24 = _root.scoresubmit24; savefile.data.scoresubmit25 = _root.scoresubmit25; savefile.data.scoresubmit26 = _root.scoresubmit26; savefile.data.scoresubmit27 = _root.scoresubmit27; savefile.data.scoresubmit28 = _root.scoresubmit28; savefile.data.scoresubmit29 = _root.scoresubmit29; savefile.data.scoresubmit30 = _root.scoresubmit30; savefile.flush(); gotoAndStop (37); _root.option9._x = 5000; _root.option9._y = 5000; _root.option2._x = 5000; _root.option2._y = 5000; _root.inputbox._x = -500; _root.go._x = -500; if (_root.green_move) { _root.greenwall_movement = true; } if (_root.red_move) { _root.redwall_movement = true; } if (_root.blue_move) { _root.bluewall_movement = true; } if (_root.orange_move) { _root.orangewall_movement = true; } _root.option2._x = 10000; _root.ball_movement = true; } else { trace("Score cant be submitted"); } }; _root.option2.submitScore.onRelease = function () { _root.option9._x = Stage.width / 2; _root.option9._y = Stage.height / 2; _root.option2._x = 5000; _root.option2._y = 5000; }; _root.option9.exit.onRelease = function () { _root.option9._x = 5000; _root.option9._y = 5000; _root.option2._x = Stage.width / 2; _root.option2._y = Stage.height / 2; }; go.onRelease = function () { if (inputPass == "dog") { gotonextframe = true; } else if (inputPass == "cat") { gotonextframe3 = true; } else if (inputPass == "mouse") { gotonextframe4 = true; } else if (inputPass == "horse") { gotonextframe5 = true; } else if (inputPass == "fish") { gotonextframe6 = true; } else if (inputPass == "monkey") { gotonextframe7 = true; } else if (inputPass == "bird") { gotonextframe8 = true; } else if (inputPass == "snake") { gotonextframe9 = true; } else if (inputPass == "hamster") { gotonextframe10 = true; } else if (inputPass == "ferret") { gotonextframe11 = true; } else if (inputPass == "goose") { gotonextframe12 = true; } else if (inputPass == "bat") { gotonextframe13 = true; } else if (inputPass == "sloth") { gotonextframe14 = true; } else if (inputPass == "duck") { gotonextframe15 = true; } else if (inputPass == "toad") { gotonextframe16 = true; } else if (inputPass == "eel") { gotonextframe17 = true; } else if (inputPass == "donkey") { gotonextframe18 = true; } else if (inputPass == "ant") { gotonextframe19 = true; } else if (inputPass == "lizard") { gotonextframe20 = true; } else if (inputPass == "lion") { gotonextframe21 = true; } else if (inputPass == "zebra") { gotonextframe22 = true; } else if (inputPass == "fly") { gotonextframe23 = true; } else if (inputPass == "rat") { gotonextframe24 = true; } else if (inputPass == "parrot") { gotonextframe25 = true; } else if (inputPass == "whale") { gotonextframe26 = true; } else if (inputPass == "beetle") { gotonextframe27 = true; } else if (inputPass == "rabbit") { gotonextframe28 = true; } else if (inputPass == "wolf") { gotonextframe29 = true; } else if (inputPass == "llama") { gotonextframe30 = true; } else if (inputPass == "human") { gotonextframe31 = true; } else { display = "Wrong"; } }; ball1.onEnterFrame = function () { if (alpha_true and you_understand) { you_understand_obj._alpha = you_understand_obj._alpha - 2; if (you_understand_obj._alpha == 0) { you_understand_obj._x = 5005; } } button28.onPress = function () { gotoAndStop (23); }; if (this.hitTest(greenkey)) { keystart = true; greenkey._x = 10000; greenwall_movement = true; _root.ball1.scan.gotoAndStop(2); } if (this.hitTest(redkey)) { keystart = true; redkey._x = 10000; redwall_movement = true; _root.ball1.scan.gotoAndStop(3); } if (this.hitTest(orangekey)) { keystart = true; orangekey._x = 10000; orangewall_movement = true; _root.ball1.scan.gotoAndStop(6); } if (this.hitTest(bluekey)) { keystart = true; bluekey._x = 100000 /* 0x0186A0 */; bluewall_movement = true; _root.ball1.scan.gotoAndStop(4); } if (this.hitTest(playkey)) { if (_root.score == 0) { gotoAndStop (4); } if (_root.score == 1) { gotoAndStop (4); } if (_root.score == 2) { gotoAndStop (5); } if (_root.score == 3) { gotoAndStop (27); } if (_root.score == 4) { gotoAndStop (8); } if (_root.score == 5) { gotoAndStop (9); } if (_root.score == 6) { gotoAndStop (7); } if (_root.score == 7) { gotoAndStop (6); } if (_root.score == 8) { gotoAndStop (12); } if (_root.score == 9) { gotoAndStop (26); } if (_root.score == 10) { gotoAndStop (10); } if (_root.score == 11) { gotoAndStop (20); } if (_root.score == 12) { gotoAndStop (15); } if (_root.score == 13) { gotoAndStop (28); } if (_root.score == 14) { gotoAndStop (23); } if (_root.score == 15) { gotoAndStop (18); } if (_root.score == 16) { gotoAndStop (16); } if (_root.score == 17) { gotoAndStop (21); } if (_root.score == 18) { gotoAndStop (25); } if (_root.score == 19) { gotoAndStop (14); } if (_root.score == 20) { gotoAndStop (22); } if (_root.score == 21) { gotoAndStop (24); } if (_root.score == 22) { gotoAndStop (13); } if (_root.score == 23) { gotoAndStop (19); } if (_root.score == 24) { gotoAndStop (32); } if (_root.score == 25) { gotoAndStop (35); } if (_root.score == 26) { gotoAndStop (34); } if (_root.score == 27) { gotoAndStop (36); } if (_root.score == 28) { gotoAndStop (30); } if (_root.score == 29) { gotoAndStop (33); } if (_root.score == 30) { gotoAndStop (29); } _root.options._x = 28.1; _root.restartbutton._x = 41.9; _root.QW._x = 73.8; _root.P._x = 55.6; _root.BN._x = 66; } if (this.hitTest(optionkey)) { inputbox._x = 293; go._x = 350; if (greenwall_movement) { green_move = true; } else { green_move = false; } if (redwall_movement) { red_move = true; } else { red_move = false; } if (bluewall_movement) { blue_move = true; } else { blue_move = false; } if (orangewall_movement) { orange_move = true; } else { orange_move = false; } greenwall_movement = false; redwall_movement = false; orangewall_movement = false; bluewall_movement = false; option2._x = Stage.width / 2; option2._y = Stage.height / 2; ball_movement = false; ball1._x = 490; ball1._y = 200; } if (this.hitTest(finish7)) { if (getwebsite) { getURL ("http://armorgames.com/", "_blank"); getwebsite = false; } } else { getwebsite = true; } if (this.hitTest(finish8)) { if (getwebsite2) { getURL ("http://armorblog.com/", "_blank"); getwebsite2 = false; } } else { getwebsite2 = true; } if (this.hitTest(finish4)) { if (greenwall_movement) { green_move = true; } else { green_move = false; } if (redwall_movement) { red_move = true; } else { red_move = false; } if (bluewall_movement) { blue_move = true; } else { blue_move = false; } if (orangewall_movement) { orange_move = true; } else { orange_move = false; } greenwall_movement = false; redwall_movement = false; orangewall_movement = false; bluewall_movement = false; option3._x = Stage.width / 2; option3._y = Stage.height / 2; ball_movement = false; ball1._x = 490; ball1._y = 350; } }; _root.onEnterFrame = function () { activateframe = _root.timeactivater._currentframe; if (timeactivator2 == false) { _root.expander.gotoAndStop(2); ball_movement = false; timeactivator2 = true; } var _local2 = "type here"; if (ball_movement) { if (SPACE_possible) { if (Key.isDown(32)) { SPACE_is_DOWN = true; } if (SPACE_is_DOWN) { if (!Key.isDown(32)) { ball1_old_location(); ball1._x = ball2._x; ball1._y = ball2._y; ball2._x = x_location; ball2._y = y_location; SPACE_is_DOWN = false; you_understand = true; } } } } if (greenwall_movement) { greenwall._x = greenwall._x + 0.5; greenkey._x = greenkey._x + 0.5; } if (bluewall_movement) { bluewall._x = bluewall._x - 0.5; bluekey._x = bluekey._x - 0.5; } if (redwall_movement) { redwall._x = redwall._x - 0.5; redkey._x = redkey._x - 0.5; } if (orangewall_movement) { orangewall._x = orangewall._x + 0.5; orangekey._x = orangekey._x + 0.5; } if ((((((((((((((((((((((((((((((_root.level1_best_time > 0) and (_root.level2_best_time > 0)) and (_root.level3_best_time > 0)) and (_root.level4_best_time > 0)) and (_root.level5_best_time > 0)) and (_root.level6_best_time > 0)) and (_root.level7_best_time > 0)) and (_root.level8_best_time > 0)) and (_root.level9_best_time > 0)) and (_root.level10_best_time > 0)) and (_root.level11_best_time > 0)) and (_root.level12_best_time > 0)) and (_root.level13_best_time > 0)) and (_root.level14_best_time > 0)) and (_root.level15_best_time > 0)) and (_root.level16_best_time > 0)) and (_root.level17_best_time > 0)) and (_root.level18_best_time > 0)) and (_root.level19_best_time > 0)) and (_root.level20_best_time > 0)) and (_root.level21_best_time > 0)) and (_root.level22_best_time > 0)) and (_root.level23_best_time > 0)) and (_root.level24_best_time > 0)) and (_root.level25_best_time > 0)) and (_root.level26_best_time > 0)) and (_root.level27_best_time > 0)) and (_root.level28_best_time > 0)) and (_root.level29_best_time > 0)) and (_root.level30_best_time > 0)) { submitPossible = true; } else { submitPossible = false; } totaltime = ((((((((((((((((((((((((((((_root.level1_best_time + _root.level2_best_time) + _root.level3_best_time) + _root.level4_best_time) + _root.level5_best_time) + _root.level6_best_time) + _root.level7_best_time) + _root.level8_best_time) + _root.level9_best_time) + _root.level10_best_time) + _root.level11_best_time) + _root.level12_best_time) + _root.level13_best_time) + _root.level14_best_time) + _root.level15_best_time) + _root.level16_best_time) + _root.level17_best_time) + _root.level18_best_time) + _root.level19_best_time) + _root.level20_best_time) + _root.level21_best_time) + _root.level22_best_time) + _root.level23_best_time) + _root.level24_best_time) + _root.level25_best_time) + _root.level26_best_time) + _root.level27_best_time) + _root.level28_best_time) + _root.level29_best_time) + _root.level30_best_time; if (!submitPossible) { _root.option9.warning._alpha = 100; _root.option9.submitScore._alpha = 100; } else { _root.option9.warning._alpha = 0; _root.option9.submitScore._alpha = 100; } };
Instance of Symbol 65 MovieClip "you_understand_obj" in Frame 3
onClipEvent (enterFrame) { if ((_root.you_understand_var == true) and (_root.you_understand == false)) { this.gotoAndStop(2); } }
Instance of Symbol 687 MovieClip "finish7" in Frame 3
on (release) { getURL ("http://armorgames.com/", "_blank"); }
Instance of Symbol 687 MovieClip "finish8" in Frame 3
on (release) { getURL ("http://armorblog.com/", "_blank"); }
Instance of Symbol 676 MovieClip "ball1" in Frame 3
onClipEvent (enterFrame) { function move(xmove, ymove) { _x = (_x + xmove); _y = (_y + ymove); if (hitTest(_root.divider)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.divider.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.divider.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.divider.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.divider.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.leftwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.middlewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.topwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.topwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.topwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.topwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bottomwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bottomwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bottomwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bottomwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.greenwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.greenwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.greenwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.greenwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.greenwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.redwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.redwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.redwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.redwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.redwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.orangewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.orangewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.orangewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.orangewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.orangewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bluewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bluewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bluewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bluewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bluewall.getBounds(_root).yMax) - 0.1)); } } } if (_root.ball_movement) { if (Key.isDown(37)) { move(-5, 0); _root.you_understand = true; } if (Key.isDown(39)) { move(5, 0); _root.you_understand = true; } if (Key.isDown(38)) { move(0, -5); _root.you_understand = true; } if (Key.isDown(40)) { move(0, 5); _root.you_understand = true; } } }
Instance of Symbol 888 MovieClip "option2" in Frame 3
onClipEvent (load) { _root.option2.mySlider.dragger._x = _root.sliderx2; exit.onPress = function () { _root.inputbox._x = -500; _root.go._x = -500; if (_root.green_move) { _root.greenwall_movement = true; } if (_root.red_move) { _root.redwall_movement = true; } if (_root.blue_move) { _root.bluewall_movement = true; } if (_root.orange_move) { _root.orangewall_movement = true; } _root.option2._x = 10000; _root.ball_movement = true; }; highquality.onPress = function () { _quality = "HIGH"; }; mediumquality.onPress = function () { _quality = "MEDIUM"; }; lowquality.onPress = function () { _quality = "LOW"; }; fx.onRelease = function () { _root.soundfx_on = false; _root.option2.fx2.gotoAndStop(2); _root.option2.fx.gotoAndStop(2); _root.option.fx2.gotoAndStop(2); _root.option.fx.gotoAndStop(2); }; fx2.onRelease = function () { _root.soundfx_on = true; _root.keystart = true; _root.option2.fx.gotoAndStop(1); _root.option2.fx2.gotoAndStop(1); _root.option.fx.gotoAndStop(1); _root.option.fx2.gotoAndStop(1); }; } onClipEvent (enterFrame) { _root.sliderx = _root.option2.mySlider.dragger._x; _root.mySlider.dragger._x = _root.sliderx; }
Instance of Symbol 959 MovieClip "option3" in Frame 3
onClipEvent (load) { exit.onPress = function () { if (_root.green_move) { _root.greenwall_movement = true; } if (_root.red_move) { _root.redwall_movement = true; } if (_root.blue_move) { _root.bluewall_movement = true; } if (_root.orange_move) { _root.orangewall_movement = true; } _root.option3._x = 10000; _root.ball_movement = true; }; }
Instance of Symbol 1152 MovieClip "win" in Frame 3
onClipEvent (load) { mainmenu.onRelease = function () { _root.gotoAndStop(3); }; instructionbutton.onRelease = function () { }; sponsorbutton.onRelease = function () { }; returnBack.onRelease = function () { _root.finisher = true; }; } onClipEvent (enterFrame) { if (_root.win.instructions._currentframe == 30) { _root.win.space_nextlevel._x = -100000; _root.win.returnBack._x = -100000; _root.win.nextlevelinfo._x = -100000; _root.win.meter._x = -100000; _root.win.mainmenu._x = -69.7; _root.win.sponsorbutton._x = -69.7; } else { _root.win.space_nextlevel._x = -70.2; _root.win.nextlevelinfo._x = 74.8; _root.win.meter._x = 68.5; _root.win.mainmenu._x = -71.7; _root.win.sponsorbutton._x = -71.7; _root.win.returnBack._x = -69.7; } if (_root._currentframe == 4) { _root.bestScore = _root.level1_best_time; } else if (_root._currentframe == 5) { _root.bestScore = _root.level2_best_time; } else if (_root._currentframe == 6) { _root.bestScore = _root.level7_best_time; } else if (_root._currentframe == 7) { _root.bestScore = _root.level6_best_time; } else if (_root._currentframe == 8) { _root.bestScore = _root.level4_best_time; } else if (_root._currentframe == 9) { _root.bestScore = _root.level5_best_time; } else if (_root._currentframe == 10) { _root.bestScore = _root.level10_best_time; } else if (_root._currentframe == 12) { _root.bestScore = _root.level8_best_time; } else if (_root._currentframe == 13) { _root.bestScore = _root.level22_best_time; } else if (_root._currentframe == 14) { _root.bestScore = _root.level19_best_time; } else if (_root._currentframe == 15) { _root.bestScore = _root.level12_best_time; } else if (_root._currentframe == 16) { _root.bestScore = _root.level16_best_time; } else if (_root._currentframe == 18) { _root.bestScore = _root.level15_best_time; } else if (_root._currentframe == 19) { _root.bestScore = _root.level23_best_time; } else if (_root._currentframe == 20) { _root.bestScore = _root.level11_best_time; } else if (_root._currentframe == 21) { _root.bestScore = _root.level17_best_time; } else if (_root._currentframe == 22) { _root.bestScore = _root.level20_best_time; } else if (_root._currentframe == 23) { _root.bestScore = _root.level14_best_time; } else if (_root._currentframe == 24) { _root.bestScore = _root.level21_best_time; } else if (_root._currentframe == 25) { _root.bestScore = _root.level18_best_time; } else if (_root._currentframe == 26) { _root.bestScore = _root.level9_best_time; } else if (_root._currentframe == 27) { _root.bestScore = _root.level3_best_time; } else if (_root._currentframe == 28) { _root.bestScore = _root.level13_best_time; } else if (_root._currentframe == 29) { _root.bestScore = _root.level30_best_time; } else if (_root._currentframe == 30) { _root.bestScore = _root.level28_best_time; } else if (_root._currentframe == 32) { _root.bestScore = _root.level24_best_time; } else if (_root._currentframe == 33) { _root.bestScore = _root.level29_best_time; } else if (_root._currentframe == 34) { _root.bestScore = _root.level26_best_time; } else if (_root._currentframe == 35) { _root.bestScore = _root.level25_best_time; } else if (_root._currentframe == 36) { _root.bestScore = _root.level27_best_time; } }
Instance of Symbol 1183 MovieClip "instruction" in Frame 3
onClipEvent (load) { theFrame = 1; _root.instruction.rightkey.onRelease = function () { theFrame = theFrame + 1; if (theFrame > 14) { theFrame = 1; } _root.instruction.instructions.gotoAndStop(theFrame); }; _root.instruction.leftkey.onRelease = function () { theFrame = theFrame - 1; if (theFrame < 1) { theFrame = 14; } _root.instruction.instructions.gotoAndStop(theFrame); }; }
Instance of Symbol 1252 MovieClip "option" in Frame 3
onClipEvent (load) { _root.soundfx_on = true; my_sound8 = new Sound(); my_sound8.attachSound("wallhit"); my_sound5 = new Sound(); my_sound5.attachSound("smallkey"); my_sound6 = new Sound(); my_sound6.attachSound("transport"); my_sound7 = new Sound(); my_sound7.attachSound("reverse"); my_sound9 = new Sound(); my_sound9.attachSound("key"); my_sound10 = new Sound(); my_sound10.attachSound("switch"); my_sound11 = new Sound(); my_sound11.attachSound("stop"); _root.explosionsound2 = true; p_is_DOWN = false; hintbox.gotoAndStop(1); keysound3 = true; my_sound = new Sound(); my_sound.attachSound("EXPLOSION"); instructionscreenopen = false; switch_options = false; _root.options.onRelease = function () { if ((win._x != (Stage.width / 2)) and (instructionscreenopen == false)) { switch_options = true; } }; highquality.onRelease = function () { _quality = "HIGH"; }; mediumquality.onRelease = function () { _quality = "MEDIUM"; }; lowquality.onRelease = function () { _quality = "LOW"; }; revealbox.onRelease = function () { hintbox.gotoAndStop(_root._currentframe); }; mainmenu.onRelease = function () { switch_options = false; _root.gotoAndStop(3); }; instructionbutton.onRelease = function () { _x = 10000; _root.instruction._x = Stage.width / 2; _root.instruction._y = Stage.height / 2; instructionscreenopen = true; }; _root.instruction.backoptions.onRelease = function () { _x = (Stage.width / 2); _y = (Stage.height / 2); _root.instruction._x = 100000 /* 0x0186A0 */; instructionscreenopen = false; }; sponsorbutton.onRelease = function () { }; returnbutton.onRelease = function () { }; rotatesongs = true; playagainsong = false; _root.option.cycle.gotoAndStop(1); _root.option.repeat.gotoAndStop(1); _root.option.fx.gotoAndStop(1); songnumber = 1; Song = new Sound(); Song.loadSound("http://audio.ngfiles.com/112000/112527_Vain_Star.mp3", true); Song.start(); stop_activated = false; Song.onSoundComplete = function () { if (songnumber >= 5) { songnumber = 0; } if (rotatesongs == true) { songnumber = songnumber + 1; } if (playagainsong == true) { } switch (songnumber) { case 1 : Song.loadSound("http://audio.ngfiles.com/112000/112527_Vain_Star.mp3", true); Song.start(); return; case 2 : Song.loadSound("http://audio.ngfiles.com/174000/174962_Chill_Factor_wav.mp3", true); Song.start(); return; case 3 : Song.loadSound("http://audio.ngfiles.com/68000/68241_newgrounds_deep_s.mp3", true); Song.start(); return; case 4 : Song.loadSound("http://audio.ngfiles.com/123000/123607_Landfall.mp3", true); Song.start(); return; case 5 : Song.loadSound("http://audio.ngfiles.com/123000/123365_Classical_melody.mp3", true); Song.start(); } }; cycle.onRelease = function () { rotatesongs = true; playagainsong = false; _root.option.cycle.gotoAndStop(1); _root.option.repeat.gotoAndStop(1); }; repeat.onRelease = function () { playagainsong = true; rotatesongs = false; _root.option.cycle.gotoAndStop(2); _root.option.repeat.gotoAndStop(2); }; fx.onRelease = function () { _root.soundfx_on = false; _root.option.fx2.gotoAndStop(2); _root.option.fx.gotoAndStop(2); }; fx2.onRelease = function () { _root.soundfx_on = true; _root.keystart = true; _root.option.fx.gotoAndStop(1); _root.option.fx2.gotoAndStop(1); }; stopsong.onRelease = function () { stopAllSounds(); stop_activated = true; }; playsong.onRelease = function () { if (stop_activated == true) { Song.start(); stop_activated = false; } }; forward.onRelease = function () { if (songnumber >= 5) { songnumber = 0; } songnumber = songnumber + 1; stopAllSounds(); switch (songnumber) { case 1 : Song.loadSound("http://audio.ngfiles.com/112000/112527_Vain_Star.mp3", true); Song.start(); return; case 2 : Song.loadSound("http://audio.ngfiles.com/174000/174962_Chill_Factor_wav.mp3", true); Song.start(); return; case 3 : Song.loadSound("http://audio.ngfiles.com/68000/68241_newgrounds_deep_s.mp3", true); Song.start(); return; case 4 : Song.loadSound("http://audio.ngfiles.com/123000/123607_Landfall.mp3", true); Song.start(); return; case 5 : Song.loadSound("http://audio.ngfiles.com/123000/123365_Classical_melody.mp3", true); Song.start(); } }; backward.onRelease = function () { if (songnumber <= 1) { songnumber = 6; } songnumber = songnumber - 1; stopAllSounds(); switch (songnumber) { case 1 : Song.loadSound("http://audio.ngfiles.com/112000/112527_Vain_Star.mp3", true); Song.start(); return; case 2 : Song.loadSound("http://audio.ngfiles.com/174000/174962_Chill_Factor_wav.mp3", true); Song.start(); return; case 3 : Song.loadSound("http://audio.ngfiles.com/68000/68241_newgrounds_deep_s.mp3", true); Song.start(); return; case 4 : Song.loadSound("http://audio.ngfiles.com/123000/123607_Landfall.mp3", true); Song.start(); return; case 5 : Song.loadSound("http://audio.ngfiles.com/123000/123365_Classical_melody.mp3", true); Song.start(); } }; } onClipEvent (enterFrame) { if (((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((_root.seconds == 1) or (_root.seconds == 2)) or (_root.seconds == 3)) or (_root.seconds == 4)) or (_root.seconds == 5)) or (_root.seconds == 6)) or (_root.seconds == 7)) or (_root.seconds == 8)) or (_root.seconds == 9)) or (_root.seconds == 10)) or (_root.seconds == 11)) or (_root.seconds == 12)) or (_root.seconds == 13)) or (_root.seconds == 14)) or (_root.seconds == 15)) or (_root.seconds == 16)) or (_root.seconds == 17)) or (_root.seconds == 18)) or (_root.seconds == 19)) or (_root.seconds == 20)) or (_root.seconds == 21)) or (_root.seconds == 22)) or (_root.seconds == 23)) or (_root.seconds == 24)) or (_root.seconds == 25)) or (_root.seconds == 26)) or (_root.seconds == 27)) or (_root.seconds == 28)) or (_root.seconds == 29)) or (_root.seconds == 30)) or (_root.seconds == 31)) or (_root.seconds == 32)) or (_root.seconds == 33)) or (_root.seconds == 34)) or (_root.seconds == 35)) or (_root.seconds == 36)) or (_root.seconds == 37)) or (_root.seconds == 38)) or (_root.seconds == 39)) or (_root.seconds == 40)) or (_root.seconds == 41)) or (_root.seconds == 42)) or (_root.seconds == 43)) or (_root.seconds == 44)) or (_root.seconds == 45)) or (_root.seconds == 46)) or (_root.seconds == 47)) or (_root.seconds == 48)) or (_root.seconds == 49)) or (_root.seconds == 50)) or (_root.seconds == 51)) or (_root.seconds == 52)) or (_root.seconds == 53)) or (_root.seconds == 54)) or (_root.seconds == 55)) or (_root.seconds == 56)) or (_root.seconds == 57)) or (_root.seconds == 58)) or (_root.seconds == 59)) or (_root.seconds == 60)) or (_root.seconds == 61)) or (_root.seconds == 62)) or (_root.seconds == 63)) or (_root.seconds == 64)) or (_root.seconds == 65)) or (_root.seconds == 66)) or (_root.seconds == 67)) or (_root.seconds == 68)) or (_root.seconds == 69)) or (_root.seconds == 70)) or (_root.seconds == 71)) or (_root.seconds == 72)) or (_root.seconds == 73)) or (_root.seconds == 74)) or (_root.seconds == 75)) or (_root.seconds == 76)) or (_root.seconds == 77)) or (_root.seconds == 78)) or (_root.seconds == 79)) or (_root.seconds == 80)) or (_root.seconds == 81)) or (_root.seconds == 82)) or (_root.seconds == 83)) or (_root.seconds == 84)) or (_root.seconds == 85)) or (_root.seconds == 86)) or (_root.seconds == 87)) or (_root.seconds == 88)) or (_root.seconds == 89)) or (_root.seconds == 90)) or (_root.seconds == 91)) or (_root.seconds == 92)) or (_root.seconds == 93)) or (_root.seconds == 94)) or (_root.seconds == 95)) or (_root.seconds == 96)) or (_root.seconds == 97)) or (_root.seconds == 98)) or (_root.seconds == 99)) { _root.timedisplay2 = ("" + _root.seconds) + ".0"; } else { _root.timedisplay2 = _root.seconds; } if (_root.explosionsound and _root.explosionsound2) { my_sound.start(); _root.explosionsound = false; _root.explosionsound2 = false; } _root.TotalRestartsText.text = _root.totalRestarts; if (cycle._currentframe == 1) { rotatesongs = true; playagainsong = false; } if (cycle._currentframe == 2) { playagainsong = true; rotatesongs = false; } Song.setVolume(_root.volume); if (switch_options == true) { if (_root.options._currentframe == 1) { if (_root.ball_movement) { if (_root.greenwall_movement == true) { green_move = true; _root.greenwall_movement = false; } else { green_move = false; } if (_root.greenwallright_movement == true) { greenright_move = true; _root.greenwallright_movement = false; } else { greenright_move = false; } if (_root.greenwallleft_movement == true) { greenleft_move = true; _root.greenwallleft_movement = false; } else { greenleft_move = false; } if (_root.greentransparent_movement == true) { greentransparent_move = true; _root.greentransparent_movement = false; } else { greentransparent_move = false; } if (_root.redwall_movement == true) { red_move = true; _root.redwall_movement = false; } else { red_move = false; } if (_root.redwall1_movement == true) { red1_move = true; _root.redwall1_movement = false; } else { red1_move = false; } if (_root.redwall2_movement == true) { red2_move = true; _root.redwall2_movement = false; } else { red2_move = false; } if (_root.redwall3_movement == true) { red3_move = true; _root.redwall3_movement = false; } else { red3_move = false; } if (_root.yellowwall_movement == true) { yellow_move = true; _root.yellowwall_movement = false; } else { yellow_move = false; } if (_root.orangewall_movement == true) { orange_move = true; _root.orangewall_movement = false; } else { orange_move = false; } if (_root.orangewall1_movement == true) { orange1_move = true; _root.orangewall1_movement = false; } else { orange1_move = false; } if (_root.orangewall2_movement == true) { orange2_move = true; _root.orangewall2_movement = false; } else { orange2_move = false; } if (_root.orangewall3_movement == true) { orange3_move = true; _root.orangewall3_movement = false; } else { orange3_move = false; } if (_root.pinkwall_movement == true) { pink_move = true; _root.pinkwall_movement = false; } else { pink_move = false; } if (_root.pinkwall1_movement == true) { pink1_move = true; _root.pinkwall1_movement = false; } else { pink1_move = false; } if (_root.pinkwall2_movement == true) { pink2_move = true; _root.pinkwall2_movement = false; } else { pink2_move = false; } if (_root.pinkwall3_movement == true) { pink3_move = true; _root.pinkwall3_movement = false; } else { pink3_move = false; } if (_root.pinkwall4_movement == true) { pink4_move = true; _root.pinkwall4_movement = false; } else { pink4_move = false; } if (_root.lredwall_movement == true) { lred_move = true; _root.lredwall_movement = false; } else { lred_move = false; } if (_root.lgreenwall_movement == true) { lgreen_move = true; _root.lgreenwall_movement = false; } else { lgreen_move = false; } if (_root.aquawall_movement == true) { aqua_move = true; _root.aquawall_movement = false; } else { aqua_move = false; } if (_root.aquawall1_movement == true) { aqua1_move = true; _root.aquawall1_movement = false; } else { aqua1_move = false; } if (_root.aquawall2_movement == true) { aqua2_move = true; _root.aquawall2_movement = false; } else { aqua2_move = false; } if (_root.aquatransparent_movement == true) { aquatransparent_move = true; _root.aquatransparent_movement = false; } else { aquatransparent_move = false; } if (_root.bluewall_movement == true) { blue_move = true; _root.bluewall_movement = false; } else { blue_move = false; } if (_root.bluewall1_movement == true) { blue1_move = true; _root.bluewall1_movement = false; } else { blue1_move = false; } if (_root.bluewall2_movement == true) { blue2_move = true; _root.bluewall2_movement = false; } else { blue2_move = false; } if (_root.bluetransparent_movement == true) { bluetransparent_move = true; _root.bluewalltransparent_movement = false; } else { bluetransparent_move = false; } _root.ball_movement = false; this._x = Stage.width / 2; this._y = Stage.height / 2; _root.w_is_DOWN = false; _root.q_is_DOWN = false; _root.n_is_DOWN = false; _root.b_is_DOWN = false; _root.options.gotoAndStop(2); } } else if (_root.options._currentframe == 2) { this._x = 1300; this._y = 275; if (green_move) { _root.greenwall_movement = true; } else { _root.greenwall_movement = false; } if (greenleft_move) { _root.greenwallleft_movement = true; } else { _root.greenwallleft_movement = false; } if (greenright_move) { _root.greenwallright_movement = true; } else { _root.greenwallright_movement = false; } if (greentransparent_move) { _root.greentransparent_movement = true; } else { _root.greentransparent_movement = false; } if (red_move) { _root.redwall_movement = true; } else { _root.redwall_movement = false; } if (red1_move) { _root.redwall1_movement = true; } else { _root.redwall1_movement = false; } if (red2_move) { _root.redwall2_movement = true; } else { _root.redwall2_movement = false; } if (red3_move) { _root.redwall3_movement = true; } else { _root.redwall3_movement = false; } if (lgreen_move) { _root.lgreenwall_movement = true; } else { _root.lgreenwall_movement = false; } if (lred_move) { _root.lredwall_movement = true; } else { _root.lredwall_movement = false; } if (yellow_move) { _root.yellowwall_movement = true; } else { _root.yellowwall_movement = false; } if (orange_move) { _root.orangewall_movement = true; } else { _root.orangewall_movement = false; } if (orange1_move) { _root.orangewall1_movement = true; } else { _root.orangewall1_movement = false; } if (orange2_move) { _root.orangewall2_movement = true; } else { _root.orangewall2_movement = false; } if (orange3_move) { _root.orangewall3_movement = true; } else { _root.orangewall3_movement = false; } if (blue_move) { _root.bluewall_movement = true; } else { _root.bluewall_movement = false; } if (blue1_move) { _root.bluewall1_movement = true; } else { _root.bluewall1_movement = false; } if (blue2_move) { _root.bluewall2_movement = true; } else { _root.bluewall2_movement = false; } if (bluetransparent_move) { _root.bluetransparent_movement = true; } else { _root.bluetransparent_movement = false; } if (aqua_move) { _root.aquawall_movement = true; } else { _root.aquawall_movement = false; } if (aqua1_move) { _root.aquawall1_movement = true; } else { _root.aquawall1_movement = false; } if (aqua2_move) { _root.aquawall2_movement = true; } else { _root.aquawall2_movement = false; } if (aquatransparent_move) { _root.aquatransparent_movement = true; } else { _root.aquatransparent_movement = false; } if (pink_move) { _root.pinkwall_movement = true; } else { _root.pinkwall_movement = false; } if (pink1_move) { _root.pinkwall1_movement = true; } else { _root.pinkwall1_movement = false; } if (pink2_move) { _root.pinkwall2_movement = true; } else { _root.pinkwall2_movement = false; } if (pink3_move) { _root.pinkwall3_movement = true; } else { _root.pinkwall3_movement = false; } if (pink4_move) { _root.pinkwall4_movement = true; } else { _root.pinkwall4_movement = false; } _root.ball_movement = true; _root.options.gotoAndStop(1); } switch_options = false; } returnBack.onRelease = function () { switch_options = true; }; if (Key.isDown(80)) { p_is_DOWN = true; } if (p_is_DOWN) { if (!Key.isDown(80)) { if (_root._currentframe != 3) { switch_options = true; } p_is_DOWN = false; } } if ((_root._currentframe != 3) && (_root.menuVolumeMoved == false)) { _root.option.mySlider.dragger._x = _root.sliderx; _root.menuVolumeMoved = true; } _root.sliderx2 = _root.option.mySlider.dragger._x; if (_root.soundfx_on) { if (_root.soundstart == true) { my_sound8.start(); _root.soundstart = false; } if (_root.smallstart == true) { my_sound5.start(); _root.smallstart = false; } if (_root.transstart == true) { my_sound6.start(); _root.transstart = false; } if (_root.reversestart == true) { my_sound7.start(); _root.reversestart = false; } if (_root.keystart == true) { my_sound9.start(); _root.keystart = false; } if (_root.switchstart == true) { my_sound10.start(); _root.switchstart = false; } if (_root.stopstart == true) { my_sound11.start(); _root.stopstart = false; } } }
Frame 4
function restartLevel() { _root.scoresubmit1 = savefile.data.scoresubmit1; savefile.flush(); soundstart = false; small = false; if (((((((((((((((((((((((((((((var2 != true) and (var3 != true)) and (var4 != true)) and (var5 != true)) and (var6 != true)) and (var7 != true)) and (var8 != true)) and (var9 != true)) and (var10 != true)) and (var11 != true)) and (var12 != true)) and (var13 != true)) and (var14 != true)) and (var15 != true)) and (var16 != true)) and (var17 != true)) and (var18 != true)) and (var19 != true)) and (var20 != true)) and (var21 != true)) and (var22 != true)) and (var23 != true)) and (var24 != true)) and (var25 != true)) and (var26 != true)) and (var27 != true)) and (var28 != true)) and (var29 != true)) and (var30 != true)) { var1 = true; } if (_root.var1) { _root.score = 1; } else if (_root.var2) { _root.score = 2; } else if (_root.var3) { _root.score = 3; } else if (_root.var4) { _root.score = 4; } else if (_root.var5) { _root.score = 5; } else if (_root.var6) { _root.score = 6; } else if (_root.var71) { _root.score = 7; } else if (_root.var8) { _root.score = 8; } else if (_root.var9) { _root.score = 9; } else if (_root.var10) { _root.score = 10; } else if (_root.var11) { _root.score = 11; } else if (_root.var12) { _root.score = 12; } else if (_root.var13) { _root.score = 13; } else if (_root.var14) { _root.score = 14; } else if (_root.var15) { _root.score = 15; } else if (_root.var16) { _root.score = 16; } else if (_root.var17) { _root.score = 17; } else if (_root.var18) { _root.score = 18; } else if (_root.var19) { _root.score = 19; } else if (_root.var20) { _root.score = 20; } else if (_root.var21) { _root.score = 21; } else if (_root.var22) { _root.score = 22; } else if (_root.var23) { _root.score = 23; } else if (_root.var24) { _root.score = 24; } else if (_root.var25) { _root.score = 25; } else if (_root.var26) { _root.score = 26; } else if (_root.var27) { _root.score = 27; } else if (_root.var28) { _root.score = 28; } else if (_root.var29) { _root.score = 29; } else if (_root.var30) { _root.score = 30; } savefile.data.score = _root.score; savefile.flush(); SPACE_possible = true; radius = ball1._height / 2; greenwall_movement = false; ball_movement = true; finisher = false; my_sound2 = new Sound(); my_sound2.attachSound("keysound2"); timing = true; elapsedTime = 0; startTime = getTimer(); seconds = 0; greenkey._x = 200; greenkey._y = 135; greenwall._x = 500; greenwall._y = 384.6; ball1._x = 200; ball1._y = 460; ball2._x = 500; ball2._y = 460; finish._x = 500; finish._y = 95.8; } function ball1_old_location() { x_location = ball1._x; y_location = ball1._y; } stop(); _root.options._x = 28.1; _root.restartbutton._x = 41.9; _root.QW._x = 73.8; _root.P._x = 55.6; _root.BN._x = 66; totalRestarts = 0; _root.option.hintbox.gotoAndStop(1); restartLevel(); _root.option.meter.gotoAndStop(1); nextFRAME.onPress = function () { }; ball1.onEnterFrame = function () { if (this.hitTest(greenkey)) { keystart = true; greenkey._x = 1000; greenwall_movement = true; _root.ball1.scan.gotoAndStop(2); } if (scoresubmit1) { scoresubmit = false; } else if (scoresubmit1 == false) { scoresubmit = true; } if (this.hitTest(finish)) { timing = false; seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if ((score == 1) or scoresubmit) { level1_best_time = seconds; scoresubmit1 = true; savefile.data.scoresubmit1 = _root.scoresubmit1; savefile.flush(); } if (seconds < level1_best_time) { level1_best_time = seconds; } savefile.data.level1_best_time = _root.level1_best_time; savefile.flush(); if (_root.score <= 2) { _root.score = 2; } savefile.data.score = _root.score; savefile.flush(); SPACE_possible = false; ball_movement = false; win._x = Stage.width / 2; win._y = Stage.height / 2; _root.win.instructions.gotoAndStop(1); _root.win.meter.gotoAndStop(2); } if (Key.isDown(32) && (SPACE_possible == false)) { finisher = true; } if (finisher) { if (!Key.isDown(32)) { win._x = 10000; SPACE_possible = true; gotoAndStop ("l3"); } } }; _root.onEnterFrame = function () { seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if (!ball_movement) { timing = false; startTime = getTimer() - elapsedTime; } else { timing = true; } if (timing) { elapsedTime = getTimer() - startTime; } if (var1) { q_works = false; w_works = false; } else { w_works = true; q_works = false; } if (((option._x != (Stage.width / 2)) and (instruction._x != (Stage.width / 2))) and (win._x != (Stage.width / 2))) { if (Key.isDown(81)) { q_is_DOWN = true; } if (q_is_DOWN) { if (!Key.isDown(81)) { if (score == 30) { gotoAndStop ("l27"); } q_is_DOWN = false; } } if (Key.isDown(87)) { w_is_DOWN = true; } if (w_is_DOWN) { if (!Key.isDown(87)) { if (w_works) { gotoAndStop ("l3"); } w_is_DOWN = false; } } _root.TotalRestartsText.text = totalRestarts; if (Key.isDown(78)) { n_is_DOWN = true; } if (n_is_DOWN) { if (!Key.isDown(78)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); n_is_DOWN = false; } } } if (Key.isDown(66)) { b_is_DOWN = true; } if (b_is_DOWN) { if (!Key.isDown(66)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); b_is_DOWN = false; } } } if (SPACE_possible) { if (Key.isDown(32)) { SPACE_is_DOWN = true; } if (SPACE_is_DOWN) { if (!Key.isDown(32)) { ball1_old_location(); ball1._x = ball2._x; ball1._y = ball2._y; ball2._x = x_location; ball2._y = y_location; SPACE_is_DOWN = false; } } } } if (greenwall_movement) { greenwall._x = greenwall._x + 2; } if (greenwall._x > (Stage.width + (greenwall._width / 2))) { greenwall._x = 1000; greenwall_movement = false; } };
Instance of Symbol 1257 MovieClip "ball1" in Frame 4
onClipEvent (enterFrame) { function move(xmove, ymove) { _x = (_x + xmove); _y = (_y + ymove); if (hitTest(_root.leftwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.middlewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.topwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.topwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.topwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.topwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bottomwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bottomwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bottomwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bottomwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.greenwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.greenwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.greenwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.greenwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.greenwall.getBounds(_root).yMax) - 0.1)); } } } if (_root.ball_movement == true) { if (Key.isDown(37)) { move(-5, 0); } if (Key.isDown(39)) { move(5, 0); } if (Key.isDown(38)) { move(0, -5); } if (Key.isDown(40)) { move(0, 5); } } }
Frame 5
function restartLevel() { radius = ball1._height / 2; SPACE_possible = true; greenwall_movement = false; pinkwall_movement = false; orangewall_movement = false; ball_movement = true; finisher = false; timing = true; elapsedTime = 0; startTime = getTimer(); seconds = 0; pinkkey._x = 200; pinkkey._y = 460; pinkwall._x = 500; pinkwall._y = 168; orangekey._x = 500; orangekey._y = 286.1; orangewall._x = 200; orangewall._y = 384.6; greenwall._x = 500; greenwall._y = 384.6; greenkey._x = 200; greenkey._y = 95.8; ball1._x = 200; ball1._y = 286.1; ball2._x = 500; ball2._y = 460; youwin._x = 10000; winningscreen._x = 1000; finish._x = 500; finish._y = 95.8; } function ball1_old_location() { x_location = ball1._x; y_location = ball1._y; } stop(); _root.options._x = 28.1; _root.restartbutton._x = 41.9; _root.QW._x = 73.8; _root.P._x = 55.6; _root.BN._x = 66; totalRestarts = 0; totalRestarts = 0; _root.option.hintbox.gotoAndStop(1); _root.option.meter.gotoAndStop(2); restartLevel(); _root.scoresubmit2 = savefile.data.scoresubmit2; savefile.flush(); soundstart = false; small = false; if ((((((((((((((((((((((((((((var3 != true) and (var4 != true)) and (var5 != true)) and (var6 != true)) and (var7 != true)) and (var8 != true)) and (var9 != true)) and (var10 != true)) and (var11 != true)) and (var12 != true)) and (var13 != true)) and (var14 != true)) and (var15 != true)) and (var16 != true)) and (var17 != true)) and (var18 != true)) and (var19 != true)) and (var20 != true)) and (var21 != true)) and (var22 != true)) and (var23 != true)) and (var24 != true)) and (var25 != true)) and (var26 != true)) and (var27 != true)) and (var28 != true)) and (var29 != true)) and (var30 != true)) { var2 = true; } var1 = false; if (_root.var1) { _root.score = 1; } else if (_root.var2) { _root.score = 2; } else if (_root.var3) { _root.score = 3; } else if (_root.var4) { _root.score = 4; } else if (_root.var5) { _root.score = 5; } else if (_root.var6) { _root.score = 6; } else if (_root.var71) { _root.score = 7; } else if (_root.var8) { _root.score = 8; } else if (_root.var9) { _root.score = 9; } else if (_root.var10) { _root.score = 10; } else if (_root.var11) { _root.score = 11; } else if (_root.var12) { _root.score = 12; } else if (_root.var13) { _root.score = 13; } else if (_root.var14) { _root.score = 14; } else if (_root.var15) { _root.score = 15; } else if (_root.var16) { _root.score = 16; } else if (_root.var17) { _root.score = 17; } else if (_root.var18) { _root.score = 18; } else if (_root.var19) { _root.score = 19; } else if (_root.var20) { _root.score = 20; } else if (_root.var21) { _root.score = 21; } else if (_root.var22) { _root.score = 22; } else if (_root.var23) { _root.score = 23; } else if (_root.var24) { _root.score = 24; } else if (_root.var25) { _root.score = 25; } else if (_root.var26) { _root.score = 26; } else if (_root.var27) { _root.score = 27; } else if (_root.var28) { _root.score = 28; } else if (_root.var29) { _root.score = 29; } else if (_root.var30) { _root.score = 30; } savefile.data.score = _root.score; savefile.flush(); youwin.onPress = function () { gotoAndStop ("l25"); }; ball1.onEnterFrame = function () { if (this.hitTest(greenkey)) { keystart = true; greenkey._x = 1000; greenwall_movement = true; _root.ball1.scan.gotoAndStop(2); } if (this.hitTest(pinkkey)) { keystart = true; pinkkey._x = 1000; pinkwall_movement = true; _root.ball1.scan.gotoAndStop(5); } if (this.hitTest(orangekey)) { keystart = true; orangekey._x = 1000; orangewall_movement = true; _root.ball1.scan.gotoAndStop(6); } if (scoresubmit2) { scoresubmit = false; } else if (scoresubmit2 == false) { scoresubmit = true; } if (this.hitTest(finish)) { timing = false; seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if ((score == 2) or scoresubmit) { level2_best_time = seconds; scoresubmit2 = true; savefile.data.scoresubmit2 = _root.scoresubmit2; savefile.flush(); } if (seconds < level2_best_time) { level2_best_time = seconds; } savefile.data.level2_best_time = _root.level2_best_time; savefile.flush(); if (_root.score <= 3) { _root.score = 3; } savefile.data.score = _root.score; savefile.flush(); SPACE_possible = false; ball_movement = false; win._x = Stage.width / 2; win._y = Stage.height / 2; _root.win.instructions.gotoAndStop(2); _root.win.meter.gotoAndStop(3); } if (Key.isDown(32) && (SPACE_possible == false)) { finisher = true; } if (finisher) { if (!Key.isDown(32)) { win._x = 10000; gotoAndStop ("l25"); finisher = false; SPACE_possible = true; } } }; _root.onEnterFrame = function () { seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if (!ball_movement) { timing = false; startTime = getTimer() - elapsedTime; } else { timing = true; } if (timing) { elapsedTime = getTimer() - startTime; } if (var2) { w_works = false; } else { w_works = true; } if (((option._x != (Stage.width / 2)) and (instruction._x != (Stage.width / 2))) and (win._x != (Stage.width / 2))) { if (Key.isDown(81)) { q_is_DOWN = true; } if (q_is_DOWN) { if (!Key.isDown(81)) { gotoAndStop ("l2"); q_is_DOWN = false; } } if (Key.isDown(87)) { w_is_DOWN = true; } if (w_is_DOWN) { if (!Key.isDown(87)) { if (w_works) { gotoAndStop ("l25"); } w_is_DOWN = false; } } _root.TotalRestartsText.text = totalRestarts; if (Key.isDown(78)) { n_is_DOWN = true; } if (n_is_DOWN) { if (!Key.isDown(78)) { if (ball_movement) { restartLevel(); totalRestarts = totalRestarts + 1; n_is_DOWN = false; } } } if (Key.isDown(66)) { b_is_DOWN = true; } if (b_is_DOWN) { if (!Key.isDown(66)) { if (ball_movement) { restartLevel(); totalRestarts = totalRestarts + 1; b_is_DOWN = false; } } } if (SPACE_possible) { if (Key.isDown(32)) { SPACE_is_DOWN = true; } if (SPACE_is_DOWN) { if (!Key.isDown(32)) { ball1_old_location(); ball1._x = ball2._x; ball1._y = ball2._y; ball2._x = x_location; ball2._y = y_location; SPACE_is_DOWN = false; } } } } if (greenwall_movement) { greenwall._x = greenwall._x + 2; } if (greenwall._x > (Stage.width + (greenwall._width / 2))) { greenwall._x = 1000; greenwall_movement = false; } if (pinkwall_movement) { pinkwall._x = pinkwall._x + 2; } if (pinkwall._x > (Stage.width + (pinkwall._width / 2))) { pinkwall._x = 1000; pinkwall_movement = false; } if (orangewall_movement) { orangewall._x = orangewall._x - 2; } if (orangewall._x < (-(orangewall._width / 2))) { orangewall._x = 1000; orangewall_movement = false; } };
Instance of Symbol 1277 MovieClip "ball1" in Frame 5
onClipEvent (enterFrame) { function move(xmove, ymove) { _x = (_x + xmove); _y = (_y + ymove); if (hitTest(_root.leftwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.middlewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.topwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.topwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.topwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.topwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bottomwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bottomwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bottomwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bottomwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.pinkwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.pinkwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.pinkwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.pinkwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.pinkwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.orangewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.orangewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.orangewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.orangewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.orangewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.greenwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.greenwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.greenwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.greenwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.greenwall.getBounds(_root).yMax) - 0.1)); } } } if (_root.ball_movement == true) { if (Key.isDown(37)) { move(-5, 0); } if (Key.isDown(39)) { move(5, 0); } if (Key.isDown(38)) { move(0, -5); } if (Key.isDown(40)) { move(0, 5); } } }
Frame 6
function restartLevel() { numeral = 0; _root.scoresubmit7 = savefile.data.scoresubmit7; savefile.flush(); soundstart = false; small = false; explosionsound2 = false; if (((((((((((((((((((((((var8 != true) and (var9 != true)) and (var10 != true)) and (var11 != true)) and (var12 != true)) and (var13 != true)) and (var14 != true)) and (var15 != true)) and (var16 != true)) and (var17 != true)) and (var18 != true)) and (var19 != true)) and (var20 != true)) and (var21 != true)) and (var22 != true)) and (var23 != true)) and (var24 != true)) and (var25 != true)) and (var26 != true)) and (var27 != true)) and (var28 != true)) and (var29 != true)) and (var30 != true)) { var7 = true; } var6 = false; if (_root.var1) { _root.score = 1; } else if (_root.var2) { _root.score = 2; } else if (_root.var3) { _root.score = 3; } else if (_root.var4) { _root.score = 4; } else if (_root.var5) { _root.score = 5; } else if (_root.var6) { _root.score = 6; } else if (_root.var7) { _root.score = 7; } else if (_root.var8) { _root.score = 8; } else if (_root.var9) { _root.score = 9; } else if (_root.var10) { _root.score = 10; } else if (_root.var11) { _root.score = 11; } else if (_root.var12) { _root.score = 12; } else if (_root.var13) { _root.score = 13; } else if (_root.var14) { _root.score = 14; } else if (_root.var15) { _root.score = 15; } else if (_root.var16) { _root.score = 16; } else if (_root.var17) { _root.score = 17; } else if (_root.var18) { _root.score = 18; } else if (_root.var19) { _root.score = 19; } else if (_root.var20) { _root.score = 20; } else if (_root.var21) { _root.score = 21; } else if (_root.var22) { _root.score = 22; } else if (_root.var23) { _root.score = 23; } else if (_root.var24) { _root.score = 24; } else if (_root.var25) { _root.score = 25; } else if (_root.var26) { _root.score = 26; } else if (_root.var27) { _root.score = 27; } else if (_root.var28) { _root.score = 28; } else if (_root.var29) { _root.score = 29; } else if (_root.var30) { _root.score = 30; } savefile.data.score = _root.score; savefile.flush(); playedSound = true; radius = ball1._height / 2; SPACE_possible = true; greenwall_movement = false; orangewall_movement = false; ball_location = true; gray_is_hit_green = false; smoosh = false; _root.decoy2.gotoAndStop(1); _root.decoy.gotoAndStop(1); ball_movement = true; finisher = false; timing = true; elapsedTime = 0; startTime = getTimer(); seconds = 0; greenkey._x = 269; greenkey._y = 479.2; ball1._x = 124.2; ball1._y = 479.2; ball2._x = 576.3; ball2._y = 480.2; orangekey._x = 271.1; orangekey._y = 285.9; blackwall._x = 163; blackwall._y = 429.1; greenwall._x = 637.6; greenwall._y = 429.1; orangewall._x = 500; orangewall._y = 361.4; youwin._x = 10000; winningscreen._x = 1000; finsih._x = 500; finish._y = 95.8; decoy._x = 10000; decoy._y = 10000; decoy2._x = 10000; decoy2._y = 10000; } function ball1_old_location() { x_location = ball1._x; y_location = ball1._y; } function adding() { numeral = numeral + 1; } function ball_locator() { ball_location = true; if (black_is_hit_green == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy.gotoAndStop(3); _root.decoy2.gotoAndStop(2); } if (gray_is_hit_green == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(3); _root.decoy.gotoAndStop(2); } } stop(); _root.options._x = 28.1; _root.restartbutton._x = 41.9; _root.QW._x = 73.8; _root.P._x = 55.6; _root.BN._x = 66; totalRestarts = 0; _root.option.hintbox.gotoAndStop(1); _root.option.meter.gotoAndStop(7); restartLevel(); my_sound2 = new Sound(); my_sound2.attachSound("EXPLOSION"); youwin.onPress = function () { gotoAndStop ("l10"); }; ball1.onEnterFrame = function () { if (this.hitTest(greenkey)) { keystart = true; greenkey._x = 100000 /* 0x0186A0 */; greenwall_movement = true; _root.ball1.scan.gotoAndStop(2); } if (this.hitTest(orangekey)) { keystart = true; orangekey._x = 100000 /* 0x0186A0 */; orangewall_movement = true; _root.ball1.scan.gotoAndStop(6); } if (greenwall.hitTest(middlewall)) { greenwall_movement = false; soundstart = true; greenwall._x = ((middlewall._x + (middlewall._width / 2)) + (greenwall._width / 2)) + 0.1; } if (scoresubmit7) { scoresubmit = false; } else if (scoresubmit7 == false) { scoresubmit = true; } if (this.hitTest(finish)) { timing = false; seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if ((score == 7) or scoresubmit) { level7_best_time = seconds; scoresubmit7 = true; savefile.data.scoresubmit7 = _root.scoresubmit7; savefile.flush(); } if (seconds < level7_best_time) { level7_best_time = seconds; } savefile.data.level7_best_time = _root.level7_best_time; savefile.flush(); if (_root.score <= 8) { _root.score = 8; } savefile.data.score = _root.score; savefile.flush(); SPACE_possible = false; ball_movement = false; win._x = Stage.width / 2; win._y = Stage.height / 2; _root.win.instructions.gotoAndStop(7); _root.win.meter.gotoAndStop(8); } if (Key.isDown(32) && (SPACE_possible == false)) { finisher = true; } if (finisher) { if (!Key.isDown(32)) { win._x = 10000; gotoAndStop ("l10"); finisher = false; SPACE_possible = true; } } }; _root.onEnterFrame = function () { seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if (!ball_movement) { timing = false; startTime = getTimer() - elapsedTime; } else { timing = true; } if (timing) { elapsedTime = getTimer() - startTime; } if (var7) { w_works = false; } else { w_works = true; } if (((option._x != (Stage.width / 2)) and (instruction._x != (Stage.width / 2))) and (win._x != (Stage.width / 2))) { if (Key.isDown(81)) { q_is_DOWN = true; } if (q_is_DOWN) { if (!Key.isDown(81)) { gotoAndStop ("l5"); q_is_DOWN = false; } } if (Key.isDown(87)) { w_is_DOWN = true; } if (w_is_DOWN) { if (!Key.isDown(87)) { if (w_works) { gotoAndStop ("l10"); } w_is_DOWN = false; } } currentf = _root.ball1.scan._currentframe; _root.TotalRestartsText.text = totalRestarts; ball2x = ball2._x; ballx = ball1._x; decoyframe = decoy._currentframe; decoy2frame = decoy2._currentframe; decoyx = decoy._x; decoyinside2 = _root.decoy.inside2._currentframe; decoyinside3 = _root.decoy.inside3._currentframe; decoyalpha = decoy._alpha; if (ball_location == false) { adding(); } if (Key.isDown(78)) { n_is_DOWN = true; } if (n_is_DOWN) { if (!Key.isDown(78)) { if (ball_movement) { restartLevel(); totalRestarts = totalRestarts + 1; n_is_DOWN = false; } } } if (Key.isDown(66)) { b_is_DOWN = true; } if (b_is_DOWN) { if (!Key.isDown(66)) { if (ball_movement) { restartLevel(); totalRestarts = totalRestarts + 1; b_is_DOWN = false; } } } if (SPACE_possible) { if (Key.isDown(32)) { SPACE_is_DOWN = true; } if (SPACE_is_DOWN) { if (!Key.isDown(32)) { ball1_old_location(); ball1._x = ball2._x; ball1._y = ball2._y; ball2._x = x_location; ball2._y = y_location; SPACE_is_DOWN = false; } } } } if (greenwall_movement) { greenwall._x = greenwall._x - 1; } if (orangewall_movement) { orangewall._x = orangewall._x + 2; } if (orangewall._x > (Stage.width + (orangewall._width / 2))) { orangewall._x = 1000; orangewall_movement = false; } differencegreen = ((greenwall._x - (greenwall._width / 2)) - (ball1._width / 2)) - ball1._x; differencegreen2 = ((greenwall._x - (greenwall._width / 2)) - (ball2._width / 2)) - ball2._x; distance_between_middlewall_and_ball = Math.abs(((ball1._x - middlewall._x) - (middlewall._width / 2)) - (ball1._width / 2)); distance_between_middlewall_and_ball2 = Math.abs(((ball2._x - middlewall._x) - (middlewall._width / 2)) - (ball2._width / 2)); distance_y_between_greenwall_and_ball = Math.abs(greenwall._y - ball1._y); distance_y_between_greenwall_and_ball2 = Math.abs(greenwall._y - ball2._y); if ((((greenwall_movement == true) and (differencegreen <= 0.2)) and (differencegreen >= -8)) and (distance_y_between_greenwall_and_ball < ((ball1._height / 2) + (greenwall._height / 2)))) { ball1._x = ((greenwall._x - (greenwall._width / 2)) - (ball1._width / 2)) - 0.2; ball1_is_pushed_by_green_wall = true; } else { ball1_is_pushed_by_green_wall = false; } if ((((greenwall_movement == true) and (differencegreen2 <= 0.2)) and (differencegreen2 >= -8)) and (distance_y_between_greenwall_and_ball2 < ((ball2._height / 2) + (greenwall._height / 2)))) { ball2._x = ((greenwall._x - (greenwall._width / 2)) - (ball2._width / 2)) - 0.2; ball2_is_pushed_by_green_wall = true; } else { ball2_is_pushed_by_green_wall = false; } if (((((differencegreen <= 0.5) && (differencegreen >= -1)) && (distance_between_middlewall_and_ball <= 1)) && (distance_y_between_greenwall_and_ball < ((ball1._height / 2) + (greenwall._height / 2)))) or ((((differencegreen2 <= 0.5) && (differencegreen2 >= -1)) && (distance_between_middlewall_and_ball2 <= 0.5)) && (distance_y_between_greenwall_and_ball2 < ((ball2._height / 2) + (greenwall._height / 2))))) { green_hit = true; ball_location = false; ball1._x = 2000; ball2._x = 2000; } if (ball_location) { ball1_xlocation = ball1._x; ball1_ylocation = ball1._y; ball2_xlocation = ball2._x; ball2_ylocation = ball2._y; } else { my_sound2.start(); if (ball1_xlocation < (Stage.width / 2)) { black_is_hit_green = true; } else if (ball1_xlocation > (Stage.width / 2)) { gray_is_hit_green = true; } ball_locator(); } };
Instance of Symbol 1297 MovieClip "ball1" in Frame 6
onClipEvent (enterFrame) { function move(xmove, ymove) { _x = (_x + xmove); _y = (_y + ymove); if (hitTest(_root.leftwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.middlewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.topwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.topwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.topwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.topwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bottomwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bottomwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bottomwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bottomwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.greenwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.greenwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.greenwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.greenwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.greenwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.pinkwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.pinkwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.pinkwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.pinkwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.pinkwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.orangewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.orangewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.orangewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.orangewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.orangewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.blackwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.blackwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.blackwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.blackwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.blackwall.getBounds(_root).yMax) - 0.1)); } } } if (_root.ball_movement == true) { if (Key.isDown(37)) { move(-5, 0); } if (Key.isDown(39)) { move(5, 0); } if (Key.isDown(38)) { move(0, -5); } if (Key.isDown(40)) { move(0, 5); } } }
Frame 7
function restartLevel() { _root.scoresubmit6 = savefile.data.scoresubmit6; savefile.flush(); soundstart = false; small = false; savefile.data.score = _root.score; savefile.flush(); if ((((((((((((((((((((((((var7 != true) and (var8 != true)) and (var9 != true)) and (var10 != true)) and (var11 != true)) and (var12 != true)) and (var13 != true)) and (var14 != true)) and (var15 != true)) and (var16 != true)) and (var17 != true)) and (var18 != true)) and (var19 != true)) and (var20 != true)) and (var21 != true)) and (var22 != true)) and (var23 != true)) and (var24 != true)) and (var25 != true)) and (var26 != true)) and (var27 != true)) and (var28 != true)) and (var29 != true)) and (var30 != true)) { var6 = true; } var5 = false; if (_root.var1) { _root.score = 1; } else if (_root.var2) { _root.score = 2; } else if (_root.var3) { _root.score = 3; } else if (_root.var4) { _root.score = 4; } else if (_root.var5) { _root.score = 5; } else if (_root.var6) { _root.score = 6; } else if (_root.var71) { _root.score = 7; } else if (_root.var8) { _root.score = 8; } else if (_root.var9) { _root.score = 9; } else if (_root.var10) { _root.score = 10; } else if (_root.var11) { _root.score = 11; } else if (_root.var12) { _root.score = 12; } else if (_root.var13) { _root.score = 13; } else if (_root.var14) { _root.score = 14; } else if (_root.var15) { _root.score = 15; } else if (_root.var16) { _root.score = 16; } else if (_root.var17) { _root.score = 17; } else if (_root.var18) { _root.score = 18; } else if (_root.var19) { _root.score = 19; } else if (_root.var20) { _root.score = 20; } else if (_root.var21) { _root.score = 21; } else if (_root.var22) { _root.score = 22; } else if (_root.var23) { _root.score = 23; } else if (_root.var24) { _root.score = 24; } else if (_root.var25) { _root.score = 25; } else if (_root.var26) { _root.score = 26; } else if (_root.var27) { _root.score = 27; } else if (_root.var28) { _root.score = 28; } else if (_root.var29) { _root.score = 29; } else if (_root.var30) { _root.score = 30; } savefile.data.score = _root.score; savefile.flush(); radius = ball1._height / 2; SPACE_possible = true; greenwall_movement = false; pinkwall_movement = false; ball_location = true; gray_is_hit = false; _root.decoy2.gotoAndStop(1); _root.decoy.gotoAndStop(1); decoy._x = -1000; decoy2._x = -1000; ball_movement = true; finisher = false; timing = true; elapsedTime = 0; startTime = getTimer(); seconds = 0; greenkey._x = 570.5; greenkey._y = 74.6; pinkkey._x = 200; pinkkey._y = 86.9; pinkstop._x = 570.5; pinkstop._y = 202.9; pinkwall._x = 509.4; pinkwall._y = 356.6; ball1._x = 140.1; ball1._y = 473.8; ball2._x = 434.8; ball2._y = 473.8; greenwall._x = 259; greenwall._y = 151; youwin._x = 10000; winningscreen._x = 1000; finish._x = 261.2; finish._y = 463.4; blackwallleftsidemiddle._x = 200; blackwallleftsidemiddle._y = 315.6; blackwallrightsidetop._x = 542.7; blackwallrightsidetop._y = 253.2; blackwallrightsidemiddle._x = 435.7; blackwallrightsidemiddle._y = 355.3; } function ball1_old_location() { x_location = ball1._x; y_location = ball1._y; } stop(); _root.options._x = 28.1; _root.restartbutton._x = 41.9; _root.QW._x = 73.8; _root.P._x = 55.6; _root.BN._x = 66; totalRestarts = 0; _root.option.hintbox.gotoAndStop(1); _root.option.meter.gotoAndStop(6); restartLevel(); youwin.onPress = function () { gotoAndStop ("l4"); }; ball1.onEnterFrame = function () { if (this.hitTest(greenkey)) { keystart = true; greenkey._x = 100000 /* 0x0186A0 */; greenwall_movement = true; _root.ball1.scan.gotoAndStop(2); } if (this.hitTest(blackwallleftsidemiddle)) { ball1._x = 1000; ball2._x = 1000; } if (ball2.hitTest(blackwallleftsidemiddle)) { ball1._x = 1000; ball2._x = 1000; } if (this.hitTest(pinkkey)) { keystart = true; pinkkey._x = 100000 /* 0x0186A0 */; pinkwall_movement = true; _root.ball1.scan.gotoAndStop(5); } if (this.hitTest(pinkstop)) { stopstart = true; pinkstop._x = 1000; pinkwall_movement = false; _root.ball1.scan.gotoAndStop(11); } if (scoresubmit6) { scoresubmit = false; } else if (scoresubmit6 == false) { scoresubmit = true; } if (this.hitTest(finish)) { timing = false; seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if ((score == 6) or scoresubmit) { level6_best_time = seconds; scoresubmit6 = true; savefile.data.scoresubmit6 = _root.scoresubmit6; savefile.flush(); } if (seconds < level6_best_time) { level6_best_time = seconds; } savefile.data.level6_best_time = _root.level6_best_time; savefile.flush(); if (_root.score <= 7) { _root.score = 7; } savefile.data.score = _root.score; savefile.flush(); SPACE_possible = false; ball_movement = false; win._x = Stage.width / 2; win._y = Stage.height / 2; _root.win.instructions.gotoAndStop(6); _root.win.meter.gotoAndStop(7); } if (Key.isDown(32) && (SPACE_possible == false)) { finisher = true; } if (finisher) { if (!Key.isDown(32)) { win._x = 10000; gotoAndStop ("l4"); finisher = false; SPACE_possible = true; } } }; _root.onEnterFrame = function () { seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if (!ball_movement) { timing = false; startTime = getTimer() - elapsedTime; } else { timing = true; } if (timing) { elapsedTime = getTimer() - startTime; } if (var6) { w_works = false; } else { w_works = true; } if (((option._x != (Stage.width / 2)) and (instruction._x != (Stage.width / 2))) and (win._x != (Stage.width / 2))) { if (Key.isDown(81)) { q_is_DOWN = true; } if (q_is_DOWN) { if (!Key.isDown(81)) { gotoAndStop ("l7"); q_is_DOWN = false; } } if (Key.isDown(87)) { w_is_DOWN = true; } if (w_is_DOWN) { if (!Key.isDown(87)) { if (w_works) { gotoAndStop ("l4"); } w_is_DOWN = false; } } _root.TotalRestartsText.text = totalRestarts; if (Key.isDown(78)) { n_is_DOWN = true; } if (n_is_DOWN) { if (!Key.isDown(78)) { if (ball_movement) { restartLevel(); totalRestarts = totalRestarts + 1; n_is_DOWN = false; } } } if (Key.isDown(66)) { b_is_DOWN = true; } if (b_is_DOWN) { if (!Key.isDown(66)) { if (ball_movement) { restartLevel(); totalRestarts = totalRestarts + 1; b_is_DOWN = false; } } } if (SPACE_possible) { if (Key.isDown(32)) { SPACE_is_DOWN = true; } if (SPACE_is_DOWN) { if (!Key.isDown(32)) { ball1_old_location(); ball1._x = ball2._x; ball1._y = ball2._y; ball2._x = x_location; ball2._y = y_location; SPACE_is_DOWN = false; } } } } if (greenwall_movement) { greenwall._x = greenwall._x + 0.3; } if (greenwall._x > 342.9) { greenwall_movement = false; } if (pinkwall_movement) { pinkwall._x = pinkwall._x - 0.6; } if (pinkwall._x < 309.4) { pinkwall_movement = false; soundstart = true; pinkwall._x = 309.4; } };
Instance of Symbol 1311 MovieClip "ball1" in Frame 7
onClipEvent (enterFrame) { function move(xmove, ymove) { _x = (_x + xmove); _y = (_y + ymove); if (hitTest(_root.leftwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.middlewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.topwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.topwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.topwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.topwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bottomwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bottomwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bottomwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bottomwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.greenwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.greenwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.greenwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.greenwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.greenwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.pinkwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.pinkwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.pinkwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.pinkwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.pinkwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.blackwallrightsidemiddle)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.blackwallrightsidemiddle.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.blackwallrightsidemiddle.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.blackwallrightsidemiddle.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.blackwallrightsidemiddle.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.blackwallleftsidemiddle)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.blackwallleftsidemiddle.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.blackwallleftsidemiddle.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.blackwallleftsidemiddle.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.blackwallleftsidemiddle.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.blackwallrightsidetop)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.blackwallrightsidetop.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.blackwallrightsidetop.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.blackwallrightsidetop.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.blackwallrightsidetop.getBounds(_root).yMax) - 0.1)); } } } if (_root.ball_movement == true) { if (Key.isDown(37)) { move(-5, 0); } if (Key.isDown(39)) { move(5, 0); } if (Key.isDown(38)) { move(0, -5); } if (Key.isDown(40)) { move(0, 5); } } }
Frame 8
function restartLevel() { _root.scoresubmit4 = savefile.data.scoresubmit4; savefile.flush(); soundstart = false; small = false; if ((((((((((((((((((((((((((var5 != true) and (var6 != true)) and (var7 != true)) and (var8 != true)) and (var9 != true)) and (var10 != true)) and (var11 != true)) and (var12 != true)) and (var13 != true)) and (var14 != true)) and (var15 != true)) and (var16 != true)) and (var17 != true)) and (var18 != true)) and (var19 != true)) and (var20 != true)) and (var21 != true)) and (var22 != true)) and (var23 != true)) and (var24 != true)) and (var25 != true)) and (var26 != true)) and (var27 != true)) and (var28 != true)) and (var29 != true)) and (var30 != true)) { var4 = true; } var3 = false; if (_root.var1) { _root.score = 1; } else if (_root.var2) { _root.score = 2; } else if (_root.var3) { _root.score = 3; } else if (_root.var4) { _root.score = 4; } else if (_root.var5) { _root.score = 5; } else if (_root.var6) { _root.score = 6; } else if (_root.var71) { _root.score = 7; } else if (_root.var8) { _root.score = 8; } else if (_root.var9) { _root.score = 9; } else if (_root.var10) { _root.score = 10; } else if (_root.var11) { _root.score = 11; } else if (_root.var12) { _root.score = 12; } else if (_root.var13) { _root.score = 13; } else if (_root.var14) { _root.score = 14; } else if (_root.var15) { _root.score = 15; } else if (_root.var16) { _root.score = 16; } else if (_root.var17) { _root.score = 17; } else if (_root.var18) { _root.score = 18; } else if (_root.var19) { _root.score = 19; } else if (_root.var20) { _root.score = 20; } else if (_root.var21) { _root.score = 21; } else if (_root.var22) { _root.score = 22; } else if (_root.var23) { _root.score = 23; } else if (_root.var24) { _root.score = 24; } else if (_root.var25) { _root.score = 25; } else if (_root.var26) { _root.score = 26; } else if (_root.var27) { _root.score = 27; } else if (_root.var28) { _root.score = 28; } else if (_root.var29) { _root.score = 29; } else if (_root.var30) { _root.score = 30; } savefile.data.score = _root.score; savefile.flush(); radius = ball1._height / 2; SPACE_possible = true; orangewall_movement = false; ball_movement = true; finisher = false; timing = true; elapsedTime = 0; startTime = getTimer(); seconds = 0; orangekey._x = 180.1; orangekey._y = 80; orangewall._x = 69.4; orangewall._y = 350; orangestop._x = 500; orangestop._y = 90; ball1._x = 132.1; ball1._y = 80; ball2._x = 500; ball2._y = 465.8; youwin._x = 10000; winningscreen._x = 1000; if (_root.orangewall.thingy._x == -71) { _root.orangewall.thingy._x = -72; } finish._x = 200; finish._y = 454.2; } function ball1_old_location() { x_location = ball1._x; y_location = ball1._y; } stop(); _root.options._x = 28.1; _root.restartbutton._x = 41.9; _root.QW._x = 73.8; _root.P._x = 55.6; _root.BN._x = 66; pressp._x = 500; pressp._y = 332; totalRestarts = 0; _root.option.hintbox.gotoAndStop(1); _root.option.meter.gotoAndStop(4); restartLevel(); youwin.onPress = function () { nextFrame(); gotoAndStop; }; ball1.onEnterFrame = function () { if (this.hitTest(orangekey)) { keystart = true; orangekey._x = 1000; orangewall_movement = true; _root.ball1.scan.gotoAndStop(6); } if (this.hitTest(orangestop)) { stopstart = true; orangewall_movement = false; orangestop._x = 1000; _root.ball1.scan.gotoAndStop(11); } if (scoresubmit4) { scoresubmit = false; } else if (scoresubmit4 == false) { scoresubmit = true; } if (this.hitTest(finish)) { timing = false; seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if ((score == 4) or scoresubmit) { level4_best_time = seconds; scoresubmit4 = true; savefile.data.scoresubmit4 = _root.scoresubmit4; savefile.flush(); } if (seconds < level4_best_time) { level4_best_time = seconds; } savefile.data.level4_best_time = _root.level4_best_time; savefile.flush(); if (_root.score <= 5) { _root.score = 5; } savefile.data.score = _root.score; savefile.flush(); SPACE_possible = false; ball_movement = false; win._x = Stage.width / 2; win._y = Stage.height / 2; _root.win.instructions.gotoAndStop(4); _root.win.meter.gotoAndStop(5); } if (Key.isDown(32) && (SPACE_possible == false)) { finisher = true; } if (finisher) { if (!Key.isDown(32)) { win._x = 10000; gotoAndStop ("l7"); finisher = false; SPACE_possible = true; } } }; _root.onEnterFrame = function () { thingyx = _root.orangewall.thingy._x; seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if (!ball_movement) { timing = false; startTime = getTimer() - elapsedTime; } else { timing = true; } if (timing) { elapsedTime = getTimer() - startTime; } if (var4) { w_works = false; } else { w_works = true; } if (((option._x != (Stage.width / 2)) and (instruction._x != (Stage.width / 2))) and (win._x != (Stage.width / 2))) { if (Key.isDown(81)) { q_is_DOWN = true; } if (q_is_DOWN) { if (!Key.isDown(81)) { gotoAndStop ("l25"); q_is_DOWN = false; } } if (Key.isDown(87)) { w_is_DOWN = true; } if (w_is_DOWN) { if (!Key.isDown(87)) { if (w_works) { gotoAndStop ("l7"); } w_is_DOWN = false; } } _root.TotalRestartsText.text = totalRestarts; if (Key.isDown(78)) { n_is_DOWN = true; } if (n_is_DOWN) { if (!Key.isDown(78)) { if (ball_movement) { restartLevel(); totalRestarts = totalRestarts + 1; n_is_DOWN = false; } } } if (Key.isDown(66)) { b_is_DOWN = true; } if (b_is_DOWN) { if (!Key.isDown(66)) { if (ball_movement) { restartLevel(); totalRestarts = totalRestarts + 1; b_is_DOWN = false; } } } if (SPACE_possible) { if (Key.isDown(32)) { SPACE_is_DOWN = true; } if (SPACE_is_DOWN) { if (!Key.isDown(32)) { ball1_old_location(); ball1._x = ball2._x; ball1._y = ball2._y; ball2._x = x_location; ball2._y = y_location; SPACE_is_DOWN = false; } } } } if (orangewall_movement) { orangewall._x = orangewall._x + 1.7; } if (orangewall._x >= 200) { orangewall_movement = false; soundstart = true; orangewall._x = ((middlewall._x - (middlewall._width / 2)) - (orangewall._width / 2)) - 0.1; _root.orangewall.thingy._x = _root.orangewall.thingy._x + 1; } };
Instance of Symbol 1375 MovieClip "ball1" in Frame 8
onClipEvent (enterFrame) { function move(xmove, ymove) { _x = (_x + xmove); _y = (_y + ymove); if (hitTest(_root.leftwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.middlewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.topwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.topwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.topwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.topwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bottomwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bottomwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bottomwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bottomwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.blackwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.blackwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.blackwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.blackwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.blackwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.orangewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.orangewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.orangewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.orangewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.orangewall.getBounds(_root).yMax) - 0.1)); } } } if (_root.ball_movement == true) { if (Key.isDown(37)) { move(-5, 0); } if (Key.isDown(39)) { move(5, 0); } if (Key.isDown(38)) { move(0, -5); } if (Key.isDown(40)) { move(0, 5); } } }
Frame 9
function restartLevel() { _root.scoresubmit5 = savefile.data.scoresubmit5; savefile.flush(); soundstart = false; small = false; if (((((((((((((((((((((((((var6 != true) and (var7 != true)) and (var8 != true)) and (var9 != true)) and (var10 != true)) and (var11 != true)) and (var12 != true)) and (var13 != true)) and (var14 != true)) and (var15 != true)) and (var16 != true)) and (var17 != true)) and (var18 != true)) and (var19 != true)) and (var20 != true)) and (var21 != true)) and (var22 != true)) and (var23 != true)) and (var24 != true)) and (var25 != true)) and (var26 != true)) and (var27 != true)) and (var28 != true)) and (var29 != true)) and (var30 != true)) { var5 = true; } var4 = false; if (_root.var1) { _root.score = 1; } else if (_root.var2) { _root.score = 2; } else if (_root.var3) { _root.score = 3; } else if (_root.var4) { _root.score = 4; } else if (_root.var5) { _root.score = 5; } else if (_root.var6) { _root.score = 6; } else if (_root.var71) { _root.score = 7; } else if (_root.var8) { _root.score = 8; } else if (_root.var9) { _root.score = 9; } else if (_root.var10) { _root.score = 10; } else if (_root.var11) { _root.score = 11; } else if (_root.var12) { _root.score = 12; } else if (_root.var13) { _root.score = 13; } else if (_root.var14) { _root.score = 14; } else if (_root.var15) { _root.score = 15; } else if (_root.var16) { _root.score = 16; } else if (_root.var17) { _root.score = 17; } else if (_root.var18) { _root.score = 18; } else if (_root.var19) { _root.score = 19; } else if (_root.var20) { _root.score = 20; } else if (_root.var21) { _root.score = 21; } else if (_root.var22) { _root.score = 22; } else if (_root.var23) { _root.score = 23; } else if (_root.var24) { _root.score = 24; } else if (_root.var25) { _root.score = 25; } else if (_root.var26) { _root.score = 26; } else if (_root.var27) { _root.score = 27; } else if (_root.var28) { _root.score = 28; } else if (_root.var29) { _root.score = 29; } else if (_root.var30) { _root.score = 30; } savefile.data.score = _root.score; savefile.flush(); radius = ball1._height / 2; SPACE_possible = true; orangewall_movement = false; greenwall_movement = false; pinkwall_movement = false; ball_movement = true; finisher = false; timing = true; elapsedTime = 0; startTime = getTimer(); seconds = 0; orangekey._x = 138.4; orangekey._y = 88.7; orangewall._x = 496.9; orangewall._y = 87.3; greenkey._x = 438.8; greenkey._y = 354.1; greenwall._x = 69.3; greenwall._y = 149.7; greenstop._x = 125.8; greenstop._y = 354.1; pinkkey._x = 438.8; pinkkey._y = 243.4; pinkwall._x = 169.3; pinkwall._y = 461.6; rightsidewall._x = 537.9; rightsidewall._y = 276; leftsidewall._x = 230.3; leftsidewall._y = 407.7; ball1._x = 265.8; ball1._y = 466; ball2._x = 567; ball2._y = 466; youwin._x = 10000; winningscreen._x = 1000; finish._x = 561.2; finish._y = 86.7; } function ball1_old_location() { x_location = ball1._x; y_location = ball1._y; } stop(); _root.options._x = 28.1; _root.restartbutton._x = 41.9; _root.QW._x = 73.8; _root.P._x = 55.6; _root.BN._x = 66; totalRestarts = 0; _root.option.hintbox.gotoAndStop(1); _root.option.meter.gotoAndStop(5); restartLevel(); youwin.onPress = function () { gotoAndStop ("l5"); }; ball1.onEnterFrame = function () { if (this.hitTest(orangekey)) { keystart = true; orangekey._x = 1000; orangewall_movement = true; _root.ball1.scan.gotoAndStop(6); } if (this.hitTest(pinkkey)) { keystart = true; pinkkey._x = 1000; pinkwall_movement = true; _root.ball1.scan.gotoAndStop(5); } if (this.hitTest(greenkey)) { keystart = true; greenkey._x = 1000; greenwall_movement = true; _root.ball1.scan.gotoAndStop(2); } if (this.hitTest(greenstop)) { stopstart = true; greenwall_movement = false; greenstop._x = 1000; _root.ball1.scan.gotoAndStop(11); } if (scoresubmit5) { scoresubmit = false; } else if (scoresubmit5 == false) { scoresubmit = true; } if (this.hitTest(finish)) { timing = false; seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if ((score == 5) or scoresubmit) { level5_best_time = seconds; scoresubmit5 = true; savefile.data.scoresubmit5 = _root.scoresubmit5; savefile.flush(); } if (seconds < level5_best_time) { level5_best_time = seconds; } savefile.data.level5_best_time = _root.level5_best_time; savefile.flush(); if (_root.score <= 6) { _root.score = 6; } savefile.data.score = _root.score; savefile.flush(); SPACE_possible = false; ball_movement = false; win._x = Stage.width / 2; win._y = Stage.height / 2; _root.win.instructions.gotoAndStop(5); _root.win.meter.gotoAndStop(6); } if (Key.isDown(32) && (SPACE_possible == false)) { finisher = true; } if (finisher) { if (!Key.isDown(32)) { win._x = 10000; gotoAndStop ("l5"); finisher = false; SPACE_possible = true; } } }; _root.onEnterFrame = function () { seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if (!ball_movement) { timing = false; startTime = getTimer() - elapsedTime; } else { timing = true; } if (timing) { elapsedTime = getTimer() - startTime; } if (var5) { w_works = false; } else { w_works = true; } if (((option._x != (Stage.width / 2)) and (instruction._x != (Stage.width / 2))) and (win._x != (Stage.width / 2))) { if (Key.isDown(81)) { q_is_DOWN = true; } if (q_is_DOWN) { if (!Key.isDown(81)) { gotoAndStop ("l6"); q_is_DOWN = false; } } if (Key.isDown(87)) { w_is_DOWN = true; } if (w_is_DOWN) { if (!Key.isDown(87)) { if (w_works) { gotoAndStop ("l5"); } w_is_DOWN = false; } } _root.TotalRestartsText.text = totalRestarts; if (Key.isDown(78)) { n_is_DOWN = true; } if (n_is_DOWN) { if (!Key.isDown(78)) { if (ball_movement) { restartLevel(); totalRestarts = totalRestarts + 1; n_is_DOWN = false; } } } if (Key.isDown(66)) { b_is_DOWN = true; } if (b_is_DOWN) { if (!Key.isDown(66)) { if (ball_movement) { restartLevel(); totalRestarts = totalRestarts + 1; b_is_DOWN = false; } } } if (SPACE_possible) { if (Key.isDown(32)) { SPACE_is_DOWN = true; } if (SPACE_is_DOWN) { if (!Key.isDown(32)) { ball1_old_location(); ball1._x = ball2._x; ball1._y = ball2._y; ball2._x = x_location; ball2._y = y_location; SPACE_is_DOWN = false; } } } } if (greenwall_movement) { greenwall._x = greenwall._x + 0.4; } if (greenwall._x > 200) { greenwall_movement = false; greenwall._x = 200; soundstart = true; } if (orangewall_movement) { orangewall._y = orangewall._y - 1; } if (orangewall._y < 0) { orangewall_movement = false; } if (pinkwall_movement) { pinkwall._y = pinkwall._y + 1; } if (pinkwall._y > 610.1) { pinkwall_movement = false; } };
Instance of Symbol 1257 MovieClip "ball1" in Frame 9
onClipEvent (enterFrame) { function move(xmove, ymove) { _x = (_x + xmove); _y = (_y + ymove); if (hitTest(_root.leftwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.middlewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.topwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.topwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.topwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.topwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bottomwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bottomwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bottomwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bottomwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightsidewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightsidewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightsidewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightsidewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightsidewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.leftsidewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftsidewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftsidewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftsidewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftsidewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.orangewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.orangewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.orangewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.orangewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.orangewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.pinkwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.pinkwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.pinkwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.pinkwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.pinkwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.greenwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.greenwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.greenwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.greenwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.greenwall.getBounds(_root).yMax) - 0.1)); } } } if (_root.ball_movement == true) { if (Key.isDown(37)) { move(-5, 0); } if (Key.isDown(39)) { move(5, 0); } if (Key.isDown(38)) { move(0, -5); } if (Key.isDown(40)) { move(0, 5); } } }
Frame 10
function restartLevel() { _root.scoresubmit10 = savefile.data.scoresubmit10; savefile.flush(); soundstart = false; small = false; if ((((((((((((((((((((var11 != true) and (var12 != true)) and (var13 != true)) and (var14 != true)) and (var15 != true)) and (var16 != true)) and (var17 != true)) and (var18 != true)) and (var19 != true)) and (var20 != true)) and (var21 != true)) and (var22 != true)) and (var23 != true)) and (var24 != true)) and (var25 != true)) and (var26 != true)) and (var27 != true)) and (var28 != true)) and (var29 != true)) and (var30 != true)) { var10 = true; } var9 = false; if (_root.var1) { _root.score = 1; } else if (_root.var2) { _root.score = 2; } else if (_root.var3) { _root.score = 3; } else if (_root.var4) { _root.score = 4; } else if (_root.var5) { _root.score = 5; } else if (_root.var6) { _root.score = 6; } else if (_root.var71) { _root.score = 7; } else if (_root.var8) { _root.score = 8; } else if (_root.var9) { _root.score = 9; } else if (_root.var10) { _root.score = 10; } else if (_root.var11) { _root.score = 11; } else if (_root.var12) { _root.score = 12; } else if (_root.var13) { _root.score = 13; } else if (_root.var14) { _root.score = 14; } else if (_root.var15) { _root.score = 15; } else if (_root.var16) { _root.score = 16; } else if (_root.var17) { _root.score = 17; } else if (_root.var18) { _root.score = 18; } else if (_root.var19) { _root.score = 19; } else if (_root.var20) { _root.score = 20; } else if (_root.var21) { _root.score = 21; } else if (_root.var22) { _root.score = 22; } else if (_root.var23) { _root.score = 23; } else if (_root.var24) { _root.score = 24; } else if (_root.var25) { _root.score = 25; } else if (_root.var26) { _root.score = 26; } else if (_root.var27) { _root.score = 27; } else if (_root.var28) { _root.score = 28; } else if (_root.var29) { _root.score = 29; } else if (_root.var30) { _root.score = 30; } savefile.data.score = _root.score; savefile.flush(); radius = ball1._height / 2; greenwall_movement = false; pinkwall_movement = false; orangewall_movement = false; bluewall1_movement = false; bluewall2_movement = false; fastkey_on = false; slowkey_on = false; _root.fastkey.gotoAndStop(1); _root.slowkey.gotoAndStop(1); orange_hit = false; gray_is_hit_orange = false; black_is_hit_orange = false; ball_location = true; ball_movement = true; finisher = false; SPACE_possible = true; timing = true; elapsedTime = 0; startTime = getTimer(); seconds = 0; pinkkey._x = 437.3; pinkkey._y = 299.4; pinkwall._x = 138.2; pinkwall._y = 173.2; orangekey._x = 134.9; orangekey._y = 100; orangewall._x = 659.9; orangewall._y = 259.7; greenwall._x = 500; greenwall._y = 359.9; greenkey._x = 134.9; greenkey._y = 360.1; ball1._x = 134.9; ball1._y = 474.1; ball2._x = 564.9; ball2._y = 474.1; bluekey._x = 208.2; bluekey._y = 474.1; bluewall1._x = 506.3; bluewall1._y = 450.8; bluewall2._x = 438.8; bluewall2._y = 46.3; fastkey._x = 437.3; fastkey._y = 474.1; slowkey._x = 263.3; slowkey._y = 420.5; youwin._x = 10000; winningscreen._x = 1000; finish._x = 138.8; finish._y = 236.4; decoy._x = 10000; decoy._y = 10000; decoy2._x = 10000; decoy2._y = 10000; } function ball1_old_location() { x_location = ball1._x; y_location = ball1._y; } function blue_green_hit() { green_moving_blue_not_touching = true; } function blue_green_hit2() { green_moving_blue_touching = true; } function blue_green_hit3() { green_not_moving_blue_touching = true; } function ball_locator() { ball_location = true; if (black_is_hit_orange == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy.gotoAndStop(2); _root.decoy2.gotoAndStop(3); } if (gray_is_hit_orange == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); } } stop(); _root.options._x = 28.1; _root.restartbutton._x = 41.9; _root.QW._x = 73.8; _root.P._x = 55.6; _root.BN._x = 66; totalRestarts = 0; _root.option.hintbox.gotoAndStop(1); _root.option.meter.gotoAndStop(10); restartLevel(); youwin.onPress = function () { gotoAndStop ("l18"); }; ball1.onEnterFrame = function () { if (bluewall2.hitTest(greenwall)) { if (greenwall_movement == true) { bluewall2_movement = false; greenwall_movement = false; soundstart = true; bluewall2._y = ((greenwall._y - (greenwall._height / 2)) - (bluewall2._height / 2)) - 0.1; } else { bluewall2_movement = false; soundstart = true; bluewall2._y = ((greenwall._y - (greenwall._height / 2)) - (bluewall2._height / 2)) - 0.1; } } if (this.hitTest(greenkey)) { keystart = true; greenkey._x = 1000; greenwall_movement = true; _root.ball1.scan.gotoAndStop(2); } if (this.hitTest(pinkkey)) { keystart = true; pinkkey._x = 1000; pinkwall_movement = true; _root.ball1.scan.gotoAndStop(5); } if (this.hitTest(orangekey)) { keystart = true; orangekey._x = 1000; orangewall_movement = true; _root.ball1.scan.gotoAndStop(6); } if (this.hitTest(bluekey)) { keystart = true; bluekey._x = 1000; bluewall1_movement = true; bluewall2_movement = true; _root.ball1.scan.gotoAndStop(4); _root.ball1.scan.bluemove.gotoAndPlay(1); } if (this.hitTest(fastkey)) { blockers._alpha = 50; if (slowkey_on) { fastkey_on = false; } else { fastkey._x = 1000; fastkey_on = true; _root.slowkey.gotoAndStop(2); } } if (this.hitTest(_root.slowkey.reddot)) { blockers._alpha = 50; if (fastkey_on) { slowkey_on = false; } else { slowkey._x = 1000; slowkey_on = true; _root.fastkey.gotoAndStop(2); } } if (scoresubmit10) { scoresubmit = false; } else if (scoresubmit10 == false) { scoresubmit = true; } if (this.hitTest(finish)) { timing = false; seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if ((score == 10) or scoresubmit) { level10_best_time = seconds; scoresubmit10 = true; savefile.data.scoresubmit10 = _root.scoresubmit10; savefile.flush(); } if (seconds < level10_best_time) { level10_best_time = seconds; } savefile.data.level10_best_time = _root.level10_best_time; savefile.flush(); if (_root.score <= 11) { _root.score = 11; } savefile.data.score = _root.score; savefile.flush(); SPACE_possible = false; ball_movement = false; win._x = Stage.width / 2; win._y = Stage.height / 2; _root.win.instructions.gotoAndStop(10); _root.win.meter.gotoAndStop(11); } if (Key.isDown(32) && (SPACE_possible == false)) { finisher = true; } if (finisher) { if (!Key.isDown(32)) { win._x = 10000; gotoAndStop ("l18"); finisher = false; SPACE_possible = true; } } }; _root.onEnterFrame = function () { seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if (!ball_movement) { timing = false; startTime = getTimer() - elapsedTime; } else { timing = true; } if (timing) { elapsedTime = getTimer() - startTime; } if (var10) { w_works = false; } else { w_works = true; } if (((option._x != (Stage.width / 2)) and (instruction._x != (Stage.width / 2))) and (win._x != (Stage.width / 2))) { if (Key.isDown(81)) { q_is_DOWN = true; } if (q_is_DOWN) { if (!Key.isDown(81)) { gotoAndStop ("l24"); q_is_DOWN = false; } } if (Key.isDown(87)) { w_is_DOWN = true; } if (w_is_DOWN) { if (!Key.isDown(87)) { if (w_works) { gotoAndStop ("l18"); } w_is_DOWN = false; } } _root.TotalRestartsText.text = totalRestarts; currentframe = _root.decoy._currentframe; if (Key.isDown(78)) { n_is_DOWN = true; } if (n_is_DOWN) { if (!Key.isDown(78)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); n_is_DOWN = false; } } } if (Key.isDown(66)) { b_is_DOWN = true; } if (b_is_DOWN) { if (!Key.isDown(66)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); b_is_DOWN = false; } } } if (SPACE_possible) { if (Key.isDown(32)) { SPACE_is_DOWN = true; } if (SPACE_is_DOWN) { if (!Key.isDown(32)) { ball1_old_location(); ball1._x = ball2._x; ball1._y = ball2._y; ball2._x = x_location; ball2._y = y_location; SPACE_is_DOWN = false; } } } } if (greenwall_movement) { greenwall._x = greenwall._x + 0.15; } if (pinkwall_movement) { pinkwall._x = pinkwall._x - 1; } if (orangewall_movement) { orangewall._x = orangewall._x - 4; } if (bluewall1_movement) { bluewall1._y = bluewall1._y + 0.8; } if (bluewall2_movement) { bluewall2._y = bluewall2._y + 0.5; } if (orangewall._x < 607.4) { orangewall_movement = false; bluewall2_movement = false; soundstart = true; orangewall._x = 607.4; } differenceblue2 = ((ball1._y - bluewall2._y) - (bluewall2._height / 2)) - (ball1._height / 2); differenceblue22 = ((ball2._y - bluewall2._y) - (bluewall2._height / 2)) - (ball2._height / 2); distance_x_between_bluewall2_and_ball = Math.abs(bluewall2._x - ball1._x); distance_x_between_bluewall2_and_ball2 = Math.abs(bluewall2._x - ball2._x); if ((((bluewall2_movement == true) and (differenceblue2 <= 0.2)) and (differenceblue2 >= -8)) and (distance_x_between_bluewall2_and_ball < ((ball1._width / 2) + (bluewall2._width / 2)))) { ball1._y = ((bluewall2._y + (bluewall2._height / 2)) + (ball1._height / 2)) + 0.2; } if ((((bluewall2_movement == true) and (differenceblue22 <= 0.2)) and (differenceblue22 >= -8)) and (distance_x_between_bluewall2_and_ball2 < ((ball2._width / 2) + (bluewall2._width / 2)))) { ball2._y = ((bluewall2._y + (bluewall2._height / 2)) + (ball2._height / 2)) + 0.2; } differenceorange = ((orangewall._x - ball1._x) - (orangewall._width / 2)) - (ball1._width / 2); differenceorange2 = ((orangewall._x - ball2._x) - (orangewall._width / 2)) - (ball2._width / 2); distance_between_bluewall_and_ball = Math.abs(((ball1._x - bluewall2._x) - (bluewall2._width / 2)) - (ball1._width / 2)); distance_between_bluewall_and_ball2 = Math.abs(((ball2._x - bluewall2._x) - (bluewall2._width / 2)) - (ball2._width / 2)); distance_y_between_orangewall_and_ball = Math.abs(orangewall._y - ball1._y); distance_y_between_orangewall_and_ball2 = Math.abs(orangewall._y - ball2._y); if ((((orangewall_movement == true) and (differenceorange <= 0.2)) and (differenceorange >= -8)) and (distance_y_between_orangewall_and_ball < ((ball1._height / 2) + (orangewall._height / 2)))) { ball1._x = ((orangewall._x - (orangewall._width / 2)) - (ball1._width / 2)) - 1; } if ((((orangewall_movement == true) and (differenceorange2 <= 0.2)) and (differenceorange2 >= -8)) and (distance_y_between_orangewall_and_ball2 < ((ball2._height / 2) + (orangewall._height / 2)))) { ball2._x = ((orangewall._x - (orangewall._width / 2)) - (ball2._width / 2)) - 1; } if (((((differenceorange <= 0.5) && (differenceorange >= -10)) && (distance_between_bluewall_and_ball <= 2)) && (distance_y_between_orangewall_and_ball < ((ball1._height / 2) + (orangewall._height / 2)))) or ((((differenceorange2 <= 0.5) && (differenceorange2 >= -10)) && (distance_between_bluewall_and_ball2 <= 2)) && (distance_y_between_orangewall_and_ball2 < ((ball2._height / 2) + (orangewall._height / 2))))) { orange_hit = true; ball_location = false; ball1._x = 2000; ball2._x = 2000; } if (ball_location) { ball1_xlocation = ball1._x; ball1_ylocation = ball1._y; ball2_xlocation = ball2._x; ball2_ylocation = ball2._y; } else { explosionsound2 = true; if (ball1_xlocation < (Stage.width / 2)) { if (orange_hit == true) { gray_is_hit_orange = true; black_is_hit_orange = false; } } else if (ball1_xlocation > (Stage.width / 2)) { if (orange_hit == true) { black_is_hit_orange = true; gray_is_hit_orange = false; } } ball_locator(); } };
Instance of Symbol 1257 MovieClip "ball1" in Frame 10
onClipEvent (enterFrame) { function move(xmove, ymove) { _x = (_x + xmove); _y = (_y + ymove); if (hitTest(_root.leftwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.middlewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.topwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.topwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.topwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.topwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bottomwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bottomwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bottomwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bottomwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bluewall1)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bluewall1.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bluewall1.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bluewall1.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bluewall1.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bluewall2)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bluewall2.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bluewall2.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bluewall2.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bluewall2.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.orangewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.orangewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.orangewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.orangewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.orangewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.pinkwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.pinkwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.pinkwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.pinkwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.pinkwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.greenwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.greenwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.greenwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.greenwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.greenwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.l1)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.l1.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.l1.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.l1.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.l1.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.l2)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.l2.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.l2.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.l2.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.l2.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.l3)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.l3.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.l3.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.l3.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.l3.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.r1)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.r1.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.r1.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.r1.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.r1.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.r2)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.r2.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.r2.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.r2.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.r2.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.r3)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.r3.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.r3.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.r3.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.r3.getBounds(_root).yMax) - 0.1)); } } } if (_root.ball_movement == true) { if (Key.isDown(37)) { if (_root.fastkey_on) { move(-10, 0); } else if (_root.slowkey_on) { move(-0.8, 0); } else { move(-5, 0); } } if (Key.isDown(39)) { if (_root.fastkey_on) { move(10, 0); } else if (_root.slowkey_on) { move(0.8, 0); } else { move(5, 0); } } if (Key.isDown(38)) { if (_root.fastkey_on) { move(0, -10); } else if (_root.slowkey_on) { move(0, -0.8); } else { move(0, -5); } } if (Key.isDown(40)) { if (_root.fastkey_on) { move(0, 10); } else if (_root.slowkey_on) { move(0, 0.8); } else { move(0, 5); } } } }
Frame 11
function ball1_old_location() { x_location = ball1._x; y_location = ball1._y; } stop(); radius = ball1._height / 2; SPACE_possible = true; bluestop_canhit = false; greenstop1_canhit = false; orangestop_canhit = false; pinkwall_movement = false; bottomactivate = false; middleactivate = false; topactivate = false; _root.bottom1.gotoAndStop(1); _root.middle1.gotoAndStop(1); _root.top1.gotoAndStop(1); pinkkey._x = 271; pinkkey._y = 74.5; orangekey._x = 271; orangekey._y = 286.1; orangestop._x = 271; orangestop._y = 233.2; greenkey._x = 271; greenkey._y = 180.3; greenstop1._x = 271; greenstop1._y = 127.4; bluekey._x = 271; bluekey._y = 391.9; bluestop._x = 271; bluestop._y = 339; orangewall._x = 500; orangewall._y = 277.8; bluewall._x = 500; bluewall._y = 376.7; greenwall._x = 500; greenwall._y = 178.8; pinkwall._x = 500; pinkwall._y = 439.1; ball1._x = 133.4; ball1._y = 462; ball2._x = 575.6; ball2._y = 477.6; top1._x = 526.7; top1._y = 177; middle1._x = 491.6; middle1._y = 276.9; bottom1._x = 325.4; bottom1._y = 376.7; leftside._x = 169; leftside._y = 232.7; rightside._x = 450.3; rightside._y = 85; youwin._x = 10000; winningscreen._x = 1000; finish._x = 560; finish._y = 84.5; youwin.onPress = function () { nextFrame(); gotoAndStop; }; ball1.onEnterFrame = function () { if (this.hitTest(bluekey)) { bluekey._x = 1000; _root.blue_transparent2.gotoAndStop(2); _root.blueinvisible1.gotoAndStop(2); _root.blueinvisible2.gotoAndStop(2); _root.bluewall.gotoAndStop(2); } blueframe1 = _root.bluewall.inside._currentframe; blueframe2 = _root.blue_transparent2.inside._currentframe; blueframe3 = _root.blueinvisible1.inside._currentframe; blueframe4 = _root.blueinvisible2.inside._currentframe; if (this.hitTest(bluestop) && (bluestop_canhit == true)) { _root.bluewall.inside.gotoAndStop(blueframe1); _root.blue_transparent2.inside.gotoAndStop(blueframe2); _root.blueinvisible1.inside.gotoAndStop(blueframe3); _root.blueinvisible2.inside.gotoAndStop(blueframe4); bluestop._x = 1000; } if (this.hitTest(greenkey)) { greenkey._x = 1000; _root.green_transparent.gotoAndStop(2); _root.greenwall.gotoAndStop(2); _root.greeninvisible1.gotoAndStop(2); _root.greeninvisible2.gotoAndStop(2); } greenframe1 = _root.greenwall.inside._currentframe; greenframe2 = _root.green_transparent.inside._currentframe; greenframe3 = _root.greeninvisible1.inside._currentframe; greenframe4 = _root.greeninvisible2.inside._currentframe; if (this.hitTest(greenstop1) && (greenstop1_canhit == true)) { _root.greenwall.inside.gotoAndStop(greenframe1); _root.green_transparent.inside.gotoAndStop(greenframe2); _root.greeninvisible1.inside.gotoAndStop(greenframe3); _root.greeninvisible2.inside.gotoAndStop(greenframe4); greenstop1._x = 1000; } if (this.hitTest(orangekey)) { orangekey._x = 1000; _root.orange_transparent.gotoAndStop(2); _root.orangewall.gotoAndStop(2); _root.orangeinvisible1.gotoAndStop(2); _root.orangeinvisible2.gotoAndStop(2); } orangeframe1 = _root.orangewall.inside._currentframe; orangeframe2 = _root.orange_transparent.inside._currentframe; orangeframe3 = _root.orangeinvisible1.inside._currentframe; orangeframe4 = _root.orangeinvisible2.inside._currentframe; if (this.hitTest(orangestop) && (orangestop_canhit == true)) { _root.orangewall.inside.gotoAndStop(orangeframe1); _root.orange_transparent.inside.gotoAndStop(orangeframe2); _root.orangeinvisible1.inside.gotoAndStop(orangeframe3); _root.orangeinvisible2.inside.gotoAndStop(orangeframe4); orangestop._x = 1000; } if (this.hitTest(pinkkey)) { pinkkey._x = 1000; pinkwall_movement = true; } if (this.hitTest(finish)) { youwin._x = Stage.width / 2; youwin._y = Stage.height / 2; winningscreen._x = Stage.width / 2; winningscreen._y = Stage.height / 2; SPACE_possible = false; } if (Key.isDown(32) && (SPACE_possible == false)) { finisher = true; } if (finisher) { if (!Key.isDown(32)) { nextFrame(); gotoAndStop; finisher = false; SPACE_possible = true; } } }; _root.onEnterFrame = function () { if (Key.isDown(78)) { n_is_DOWN = true; } if (n_is_DOWN) { if (!Key.isDown(78)) { nextFrame(); gotoAndStop; n_is_DOWN = false; } } if (Key.isDown(66)) { b_is_DOWN = true; } if (b_is_DOWN) { if (!Key.isDown(66)) { prevFrame(); gotoAndStop; b_is_DOWN = false; } } if (SPACE_possible) { if (Key.isDown(32)) { SPACE_is_DOWN = true; } if (SPACE_is_DOWN) { if (!Key.isDown(32)) { ball1_old_location(); ball1._x = ball2._x; ball1._y = ball2._y; ball2._x = x_location; ball2._y = y_location; SPACE_is_DOWN = false; } } } if (_root.bluewall._currentframe == 2) { bluestop_canhit = true; } if (_root.greenwall._currentframe == 2) { greenstop1_canhit = true; } if (_root.orangewall._currentframe == 2) { orangestop_canhit = true; } if (pinkwall_movement) { pinkwall._x = pinkwall._x + 2; } if (pinkwall._x >= 724.7) { pinkwall_movement = false; } if ((pinkwall._x > 505) && (ball1._x > (Stage.width / 2))) { bottomactivate = true; middleactivate = true; topactivate = true; } };
Instance of Symbol 1257 MovieClip "ball1" in Frame 11
onClipEvent (enterFrame) { function move(xmove, ymove) { _x = (_x + xmove); _y = (_y + ymove); if (hitTest(_root.leftwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.middlewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.topwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.topwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.topwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.topwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bottomwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bottomwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bottomwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bottomwall.getBounds(_root).yMax) - 0.1)); } } if (_root.bottomactivate == true) { if (hitTest(_root.blueinvisible1)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.blueinvisible1.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.blueinvisible1.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.blueinvisible1.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.blueinvisible1.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.blueinvisible2)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.blueinvisible2.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.blueinvisible2.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.blueinvisible2.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.blueinvisible2.getBounds(_root).yMax) - 0.1)); } } } if (hitTest(_root.rightside)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightside.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightside.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightside.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightside.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.pinkwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.pinkwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.pinkwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.pinkwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.pinkwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.leftside)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftside.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftside.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftside.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftside.getBounds(_root).yMax) - 0.1)); } } if (_root.topactivate == true) { if (hitTest(_root.greeninvisible1)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.greeninvisible1.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.greeninvisible1.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.greeninvisible1.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.greeninvisible1.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.greeninvisible2)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.greeninvisible2.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.greeninvisible2.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.greeninvisible2.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.greeninvisible2.getBounds(_root).yMax) - 0.1)); } } } if (_root.middleactivate == true) { if (hitTest(_root.orangeinvisible1)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.orangeinvisible1.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.orangeinvisible1.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.orangeinvisible1.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.orangeinvisible1.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.orangeinvisible2)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.orangeinvisible2.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.orangeinvisible2.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.orangeinvisible2.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.orangeinvisible2.getBounds(_root).yMax) - 0.1)); } } } } if (Key.isDown(37)) { move(-5, 0); } if (Key.isDown(39)) { move(5, 0); } if (Key.isDown(38)) { move(0, -5); } if (Key.isDown(40)) { move(0, 5); } }
Frame 12
function restartLevel() { _root.scoresubmit8 = savefile.data.scoresubmit8; savefile.flush(); soundstart = false; small = false; if ((((((((((((((((((((((var9 != true) and (var10 != true)) and (var11 != true)) and (var12 != true)) and (var13 != true)) and (var14 != true)) and (var15 != true)) and (var16 != true)) and (var17 != true)) and (var18 != true)) and (var19 != true)) and (var20 != true)) and (var21 != true)) and (var22 != true)) and (var23 != true)) and (var24 != true)) and (var25 != true)) and (var26 != true)) and (var27 != true)) and (var28 != true)) and (var29 != true)) and (var30 != true)) { var8 = true; } var7 = false; if (_root.var1) { _root.score = 1; } else if (_root.var2) { _root.score = 2; } else if (_root.var3) { _root.score = 3; } else if (_root.var4) { _root.score = 4; } else if (_root.var5) { _root.score = 5; } else if (_root.var6) { _root.score = 6; } else if (_root.var71) { _root.score = 7; } else if (_root.var8) { _root.score = 8; } else if (_root.var9) { _root.score = 9; } else if (_root.var10) { _root.score = 10; } else if (_root.var11) { _root.score = 11; } else if (_root.var12) { _root.score = 12; } else if (_root.var13) { _root.score = 13; } else if (_root.var14) { _root.score = 14; } else if (_root.var15) { _root.score = 15; } else if (_root.var16) { _root.score = 16; } else if (_root.var17) { _root.score = 17; } else if (_root.var18) { _root.score = 18; } else if (_root.var19) { _root.score = 19; } else if (_root.var20) { _root.score = 20; } else if (_root.var21) { _root.score = 21; } else if (_root.var22) { _root.score = 22; } else if (_root.var23) { _root.score = 23; } else if (_root.var24) { _root.score = 24; } else if (_root.var25) { _root.score = 25; } else if (_root.var26) { _root.score = 26; } else if (_root.var27) { _root.score = 27; } else if (_root.var28) { _root.score = 28; } else if (_root.var29) { _root.score = 29; } else if (_root.var30) { _root.score = 30; } savefile.data.score = _root.score; savefile.flush(); SPACE_possible = true; radius = ball1._height / 2; ball1.gotoAndStop(1); ball2.gotoAndStop(1); warp_on = false; ball_movement = true; finisher = false; timing = true; elapsedTime = 0; startTime = getTimer(); seconds = 0; ball1._x = 271; ball1._y = 443.6; ball2._x = 500; ball2._y = 223.9; leftside1._x = 125.8; leftside1._y = 262.1; rightside1._x = 242.4; rightside1._y = 262.1; smallkey1._x = 425.9; smallkey1._y = 481.1; warpkey1._x = 576.2; warpkey1._y = 481.1; youwin._x = 10000; winningscreen._x = 1000; finish._x = 200; finish._y = 95.8; finish2._x = 500; finish2._y = 95.8; } function ball1_old_location() { x_location = ball1._x; y_location = ball1._y; } stop(); _root.options._x = 28.1; _root.restartbutton._x = 41.9; _root.QW._x = 73.8; _root.P._x = 55.6; _root.BN._x = 66; totalRestarts = 0; _root.option.hintbox.gotoAndStop(1); _root.option.meter.gotoAndStop(8); restartLevel(); youwin.onPress = function () { gotoAndStop ("l24"); }; ball1.onEnterFrame = function () { if (this.hitTest(smallkey1) or ball2.hitTest(smallkey1)) { smallstart = true; smallkey1._x = 1000; ball1.gotoAndStop(2); ball2.gotoAndStop(2); } if (this.hitTest(warpkey1)) { trace("assssdddd"); _root.reversestart = true; warpkey1._x = 1000; warp_on = true; } if (scoresubmit8) { scoresubmit = false; } else if (scoresubmit8 == false) { scoresubmit = true; } if ((this.hitTest(finish) or this.hitTest(finish2)) and (ball2.hitTest(finish) or ball2.hitTest(finish2))) { timing = false; seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if ((score == 8) or scoresubmit) { level8_best_time = seconds; scoresubmit8 = true; savefile.data.scoresubmit8 = _root.scoresubmit8; savefile.flush(); } if (seconds < level8_best_time) { level8_best_time = seconds; } savefile.data.level8_best_time = _root.level8_best_time; savefile.flush(); if (_root.score <= 9) { _root.score = 9; } savefile.data.score = _root.score; savefile.flush(); SPACE_possible = false; ball_movement = false; win._x = Stage.width / 2; win._y = Stage.height / 2; _root.win.instructions.gotoAndStop(8); _root.win.meter.gotoAndStop(9); } if (Key.isDown(32) && (SPACE_possible == false)) { finisher = true; } if (finisher) { if (!Key.isDown(32)) { win._x = 10000; gotoAndStop ("l24"); finisher = false; SPACE_possible = true; } } }; _root.onEnterFrame = function () { seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if (!ball_movement) { timing = false; startTime = getTimer() - elapsedTime; } else { timing = true; } if (timing) { elapsedTime = getTimer() - startTime; } if (var8) { w_works = false; } else { w_works = true; } if (((option._x != (Stage.width / 2)) and (instruction._x != (Stage.width / 2))) and (win._x != (Stage.width / 2))) { if (Key.isDown(81)) { q_is_DOWN = true; } if (q_is_DOWN) { if (!Key.isDown(81)) { gotoAndStop ("l4"); q_is_DOWN = false; } } if (Key.isDown(87)) { w_is_DOWN = true; } if (w_is_DOWN) { if (!Key.isDown(87)) { if (w_works) { gotoAndStop ("l24"); } w_is_DOWN = false; } } _root.TotalRestartsText.text = totalRestarts; if (Key.isDown(78)) { n_is_DOWN = true; } if (n_is_DOWN) { if (!Key.isDown(78)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); n_is_DOWN = false; } } } if (Key.isDown(66)) { b_is_DOWN = true; } if (b_is_DOWN) { if (!Key.isDown(66)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); b_is_DOWN = false; } } } if (SPACE_possible) { if (Key.isDown(32)) { SPACE_is_DOWN = true; } if (SPACE_is_DOWN) { if (!Key.isDown(32)) { ball1_old_location(); ball1._x = ball2._x; ball1._y = ball2._y; ball2._x = x_location; ball2._y = y_location; SPACE_is_DOWN = false; } } } } };
Instance of Symbol 1541 MovieClip "ball1" in Frame 12
onClipEvent (enterFrame) { function move(xmove, ymove) { _x = (_x + xmove); _y = (_y + ymove); if (hitTest(_root.leftwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.middlewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.topwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.topwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.topwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.topwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bottomwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bottomwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bottomwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bottomwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightside1)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightside1.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightside1.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightside1.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightside1.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.leftsider)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftsider.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftsider.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftsider.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftsider.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.leftside1)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftside1.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftside1.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftside1.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftside1.getBounds(_root).yMax) - 0.1)); } } } if (_root.ball_movement == true) { if (Key.isDown(37)) { move(-5, 0); } if (Key.isDown(39)) { move(5, 0); } if (Key.isDown(38)) { move(0, -5); } if (Key.isDown(40)) { move(0, 5); } } }
Instance of Symbol 1542 MovieClip "ball2" in Frame 12
onClipEvent (load) { xmove2 = 0; ymove2 = 0; } onClipEvent (enterFrame) { function move2(xmove2, ymove2) { _x = (_x + xmove2); _y = (_y + ymove2); if (hitTest(_root.leftwall)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftwall.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftwall.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightwall)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightwall.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightwall.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.middlewall)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.topwall)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.topwall.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.topwall.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.topwall.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bottomwall)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bottomwall.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bottomwall.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bottomwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.non)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.non.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.non.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.non.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.non.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightside1)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightside1.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightside1.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightside1.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightside1.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.leftside1)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftside1.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftside1.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftside1.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftside1.getBounds(_root).yMax) - 0.1)); } } } if (_root.warp_on == true) { if (_root.ball_movement) { if (Key.isDown(37)) { move2(5, 0); } if (Key.isDown(39)) { move2(-5, 0); } if (Key.isDown(38)) { move2(0, 5); } if (Key.isDown(40)) { move2(0, -5); } } } }
Frame 13
function restartLevel() { _root.scoresubmit22 = savefile.data.scoresubmit22; savefile.flush(); soundstart = false; small = false; if ((((((((var23 != true) and (var24 != true)) and (var25 != true)) and (var26 != true)) and (var27 != true)) and (var28 != true)) and (var29 != true)) and (var30 != true)) { var22 = true; } var21 = false; if (_root.var1) { _root.score = 1; } else if (_root.var2) { _root.score = 2; } else if (_root.var3) { _root.score = 3; } else if (_root.var4) { _root.score = 4; } else if (_root.var5) { _root.score = 5; } else if (_root.var6) { _root.score = 6; } else if (_root.var71) { _root.score = 7; } else if (_root.var8) { _root.score = 8; } else if (_root.var9) { _root.score = 9; } else if (_root.var10) { _root.score = 10; } else if (_root.var11) { _root.score = 11; } else if (_root.var12) { _root.score = 12; } else if (_root.var13) { _root.score = 13; } else if (_root.var14) { _root.score = 14; } else if (_root.var15) { _root.score = 15; } else if (_root.var16) { _root.score = 16; } else if (_root.var17) { _root.score = 17; } else if (_root.var18) { _root.score = 18; } else if (_root.var19) { _root.score = 19; } else if (_root.var20) { _root.score = 20; } else if (_root.var21) { _root.score = 21; } else if (_root.var22) { _root.score = 22; } else if (_root.var23) { _root.score = 23; } else if (_root.var24) { _root.score = 24; } else if (_root.var25) { _root.score = 25; } else if (_root.var26) { _root.score = 26; } else if (_root.var27) { _root.score = 27; } else if (_root.var28) { _root.score = 28; } else if (_root.var29) { _root.score = 29; } else if (_root.var30) { _root.score = 30; } savefile.data.score = _root.score; savefile.flush(); SPACE_possible = true; radius = ball1._height / 2; ball1.gotoAndStop(1); ball2.gotoAndStop(1); warpkey1.gotoAndStop(1); warpkey2.gotoAndStop(1); warp_on = false; ball_movement = true; finisher = false; timing = true; elapsedTime = 0; startTime = getTimer(); seconds = 0; ball1._x = 137.9; ball1._y = 466; ball2._x = 436.1; ball2._y = 77.9; leftside._x = 170; leftside._y = 396.1; rightside._x = 230; rightside._y = 206.5; rightright._x = 500; rightright._y = 232.4; warpkey1._x = 183.9; warpkey1._y = 466; warpkey2._x = 436.1; warpkey2._y = 126.1; youwin._x = 10000; winningscreen._x = 1000; finish._x = 263; finish._y = 82; finish2._x = 563; finish2._y = 82; } function ball1_old_location() { x_location = ball1._x; y_location = ball1._y; } stop(); _root.options._x = 28.1; _root.restartbutton._x = 41.9; _root.QW._x = 73.8; _root.P._x = 55.6; _root.BN._x = 66; totalRestarts = 0; _root.option.hintbox.gotoAndStop(1); _root.option.meter.gotoAndStop(22); restartLevel(); youwin.onPress = function () { gotoAndStop ("l32"); }; ball1.onEnterFrame = function () { if (this.hitTest(warpkey1)) { _root.reversestart = true; warpkey1._x = 1000; warpkey2._x = 1000; warp_on = true; warpkey2.gotoAndStop(2); } if (this.hitTest(warpkey2)) { _root.reversestart = true; warpkey2._x = 1000; warpkey1._x = 1000; warp_on = true; warpkey1.gotoAndStop(2); } if (scoresubmit22) { scoresubmit = false; } else if (scoresubmit22 == false) { scoresubmit = true; } if ((this.hitTest(finish) or this.hitTest(finish2)) and (ball2.hitTest(finish) or ball2.hitTest(finish2))) { timing = false; seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if ((score == 22) or scoresubmit) { level22_best_time = seconds; scoresubmit22 = true; savefile.data.scoresubmit22 = _root.scoresubmit22; savefile.flush(); } if (seconds < level22_best_time) { level22_best_time = seconds; } savefile.data.level22_best_time = _root.level22_best_time; savefile.flush(); if (_root.score <= 23) { _root.score = 23; } savefile.data.score = _root.score; savefile.flush(); SPACE_possible = false; ball_movement = false; win._x = Stage.width / 2; win._y = Stage.height / 2; _root.win.instructions.gotoAndStop(22); _root.win.meter.gotoAndStop(23); } if (Key.isDown(32) && (SPACE_possible == false)) { finisher = true; } if (finisher) { if (!Key.isDown(32)) { win._x = 10000; gotoAndStop ("l17"); finisher = false; SPACE_possible = true; } } }; _root.onEnterFrame = function () { seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if (!ball_movement) { timing = false; startTime = getTimer() - elapsedTime; } else { timing = true; } if (timing) { elapsedTime = getTimer() - startTime; } if (var22) { w_works = false; } else { w_works = true; } if (((option._x != (Stage.width / 2)) and (instruction._x != (Stage.width / 2))) and (win._x != (Stage.width / 2))) { if (Key.isDown(81)) { q_is_DOWN = true; } if (q_is_DOWN) { if (!Key.isDown(81)) { gotoAndStop ("l22"); q_is_DOWN = false; } } if (Key.isDown(87)) { w_is_DOWN = true; } if (w_is_DOWN) { if (!Key.isDown(87)) { if (w_works) { gotoAndStop ("l17"); } w_is_DOWN = false; } } _root.TotalRestartsText.text = totalRestarts; if (Key.isDown(78)) { n_is_DOWN = true; } if (n_is_DOWN) { if (!Key.isDown(78)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); n_is_DOWN = false; } } } if (Key.isDown(66)) { b_is_DOWN = true; } if (b_is_DOWN) { if (!Key.isDown(66)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); b_is_DOWN = false; } } } if (SPACE_possible) { if (Key.isDown(32)) { SPACE_is_DOWN = true; } if (SPACE_is_DOWN) { if (!Key.isDown(32)) { ball1_old_location(); ball1._x = ball2._x; ball1._y = ball2._y; ball2._x = x_location; ball2._y = y_location; SPACE_is_DOWN = false; } } } } };
Instance of Symbol 1550 MovieClip "ball2" in Frame 13
onClipEvent (load) { xmove2 = 0; ymove2 = 0; } onClipEvent (enterFrame) { function move2(xmove2, ymove2) { _x = (_x + xmove2); _y = (_y + ymove2); if (hitTest(_root.leftwall)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftwall.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftwall.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightwall)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightwall.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightwall.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.middlewall)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.topwall)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.topwall.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.topwall.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.topwall.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bottomwall)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bottomwall.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bottomwall.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bottomwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightside)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightside.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightside.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightside.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightside.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.leftside)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftside.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftside.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftside.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftside.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightright)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightright.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightright.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightright.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightright.getBounds(_root).yMax) - 0.1)); } } } if (_root.warp_on == true) { if (_root.ball_movement) { if (Key.isDown(37)) { move2(5, 0); } if (Key.isDown(39)) { move2(-5, 0); } if (Key.isDown(38)) { move2(0, 5); } if (Key.isDown(40)) { move2(0, -5); } } } }
Instance of Symbol 1551 MovieClip "ball1" in Frame 13
onClipEvent (enterFrame) { function move(xmove, ymove) { _x = (_x + xmove); _y = (_y + ymove); if (hitTest(_root.leftwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.middlewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.topwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.topwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.topwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.topwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bottomwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bottomwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bottomwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bottomwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightside)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightside.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightside.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightside.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightside.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.leftside)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftside.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftside.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftside.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftside.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightright)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightright.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightright.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightright.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightright.getBounds(_root).yMax) - 0.1)); } } } if (_root.ball_movement == true) { if (Key.isDown(37)) { move(-5, 0); } if (Key.isDown(39)) { move(5, 0); } if (Key.isDown(38)) { move(0, -5); } if (Key.isDown(40)) { move(0, 5); } } }
Frame 14
function restartLevel() { _root.scoresubmit19 = savefile.data.scoresubmit19; savefile.flush(); soundstart = false; small = false; if (((((((((((var20 != true) and (var21 != true)) and (var22 != true)) and (var23 != true)) and (var24 != true)) and (var25 != true)) and (var26 != true)) and (var27 != true)) and (var28 != true)) and (var29 != true)) and (var30 != true)) { var19 = true; } var18 = false; if (_root.var1) { _root.score = 1; } else if (_root.var2) { _root.score = 2; } else if (_root.var3) { _root.score = 3; } else if (_root.var4) { _root.score = 4; } else if (_root.var5) { _root.score = 5; } else if (_root.var6) { _root.score = 6; } else if (_root.var71) { _root.score = 7; } else if (_root.var8) { _root.score = 8; } else if (_root.var9) { _root.score = 9; } else if (_root.var10) { _root.score = 10; } else if (_root.var11) { _root.score = 11; } else if (_root.var12) { _root.score = 12; } else if (_root.var13) { _root.score = 13; } else if (_root.var14) { _root.score = 14; } else if (_root.var15) { _root.score = 15; } else if (_root.var16) { _root.score = 16; } else if (_root.var17) { _root.score = 17; } else if (_root.var18) { _root.score = 18; } else if (_root.var19) { _root.score = 19; } else if (_root.var20) { _root.score = 20; } else if (_root.var21) { _root.score = 21; } else if (_root.var22) { _root.score = 22; } else if (_root.var23) { _root.score = 23; } else if (_root.var24) { _root.score = 24; } else if (_root.var25) { _root.score = 25; } else if (_root.var26) { _root.score = 26; } else if (_root.var27) { _root.score = 27; } else if (_root.var28) { _root.score = 28; } else if (_root.var29) { _root.score = 29; } else if (_root.var30) { _root.score = 30; } savefile.data.score = _root.score; savefile.flush(); radius = ball1._height / 2; SPACE_possible = true; greenwall_movement = false; pinkwall_movement = false; bluewall_movement = false; yellowwall_movement = false; redwall_movement = false; orangewall3_movement = false; ball_location = true; gray_is_hit = false; black_is_hit = false; left_hit = false; right_hit = false; warp_on = false; small = false; ball_movement = true; finisher = false; _root.decoy2.gotoAndStop(1); _root.decoy.gotoAndStop(1); _root.ball1.gotoAndStop(1); _root.ball2.gotoAndStop(1); decoy._x = -1000; decoy2._x = -1000; decoy._width = 32; decoy._height = 32; decoy2._width = 32; decoy2._height = 32; timing = true; elapsedTime = 0; startTime = getTimer(); seconds = 0; yellowkey._x = 128.2; yellowkey._y = 73.9; orangekey._x = 128.2; orangekey._y = 174.9; orangekey2._x = 573.1; orangekey2._y = 479.2; redkey._x = 484; redkey._y = 214.9; greenkey._x = 128.2; greenkey._y = 376.4; pinkkey._x = 541.5; pinkkey._y = 163.7; bluekey._x = 269.4; bluekey._y = 431.1; smallkey._x = 582; smallkey._y = 112.2; greenwall._x = 417.8; greenwall._y = 378.8; pinkwall._x = 210.3; pinkwall._y = 79.7; bluewall._x = 483.9; bluewall._y = 395.8; yellowwall._x = 450; yellowwall._y = 446.2; redwall._x = 199.9; redwall._y = 284.2; orangewall1._x = 520.8; orangewall1._y = -89.1; orangewall2._x = 540.8; orangewall2._y = 148.1; orangewall3._x = 550.8; orangewall3._y = 182.2; orangewall4._x = 582.6; orangewall4._y = -89.2; orange_transparent._x = 551; orange_transparent._y = -40; orange_transparent2._x = 551; orange_transparent2._y = -41.5; orange_piece._x = 551.7; orange_piece._y = 82.7; ball1._x = 128.2; ball1._y = 478.1; ball2._x = 529; ball2._y = 441.3; youwin._x = 10000; winningscreen._x = 1000; finish._x = 433.1; finish._y = 482.5; lb._x = 166.3; lb._y = 429.6; lm._x = 235.2; lm._y = 332.4; ltop._x = 166; ltop._y = 123.8; rm._x = 429.3; rm._y = 412.2; rt._x = 450.3; decoy._x = 10000; decoy._y = 10000; decoy2._x = 10000; decoy2._y = 10000; } function ball1_old_location() { x_location = ball1._x; y_location = ball1._y; } function ball_locator() { ball_location = true; if (black_is_hit == true) { if (small) { decoy._height = 16; decoy._width = 16; } if (small) { decoy2._height = 16; decoy2._width = 16; } decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); } if (gray_is_hit == true) { if (small) { decoy._height = 16; decoy._width = 16; } if (small) { decoy2._height = 16; decoy2._width = 16; } decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(3); _root.decoy.gotoAndStop(2); } } stop(); _root.options._x = 28.1; _root.restartbutton._x = 41.9; _root.QW._x = 73.8; _root.P._x = 55.6; _root.BN._x = 66; totalRestarts = 0; _root.option.hintbox.gotoAndStop(1); _root.option.meter.gotoAndStop(19); restartLevel(); youwin.onPress = function () { gotoAndStop ("l20"); }; ball1.onEnterFrame = function () { decoyx = decoy._x; bluewally = bluewall._y; if (yellowwall.hitTest(orange_transparent)) { yellowwall_movement = false; } if (((redwall._x + (redwall._width / 2)) - 1) < (bluewall._x - (bluewall._width / 2))) { working = true; } else { working = false; } if (redwall.hitTest(bluewall)) { if (working == false) { redwall_movement = false; soundstart = true; bluewall._y = 343.9; bluewall_movement = false; } else if (working) { soundstart = true; redwall._x = 367.4; redwall_movement = false; bluewall_movement = false; } } if (((redwall._x + (redwall._width / 2)) - 1) < (orange_transparent._x - (orange_transparent._width / 2))) { working2 = true; } else { working2 = false; } if ((redwall.hitTest(orangewall1) or redwall.hitTest(orangewall2)) or redwall.hitTest(orangewall3)) { if (working2 == false) { redwall_movement = false; orangewall3_movement = false; } else if (working2) { redwall_movement = false; orangewall3_movement = false; redwall._x = 401; } } if (orangewall3._y > 354.8) { soundstart = true; greenwall_movement = false; orangewall3_movement = false; orangewall3._y = 354.8; _root.orange_transparent2.thingy._y = _root.orange_transparent2.thingy._y - 0.3; } if (this.hitTest(greenkey)) { keystart = true; greenkey._x = 100000 /* 0x0186A0 */; _root.ball1.scan.gotoAndStop(2); if (bluewall._y >= 340) { greenwall_movement = false; } else { greenwall_movement = true; } } if (this.hitTest(pinkkey)) { keystart = true; pinkkey._x = 100000 /* 0x0186A0 */; pinkwall_movement = true; _root.ball1.scan.gotoAndStop(5); } if (this.hitTest(bluekey)) { keystart = true; bluekey._x = 100000 /* 0x0186A0 */; bluewall_movement = true; _root.ball1.scan.gotoAndStop(4); _root.ball1.scan.bluemove.gotoAndPlay(1); } if (this.hitTest(yellowkey)) { keystart = true; yellowkey._x = 100000 /* 0x0186A0 */; yellowwall_movement = true; _root.ball1.scan.gotoAndStop(8); } if (this.hitTest(redkey)) { keystart = true; redkey._x = 100000 /* 0x0186A0 */; redwall_movement = true; _root.ball1.scan.gotoAndStop(3); } if (this.hitTest(orangekey) or this.hitTest(orangekey2)) { keystart = true; orangekey._x = 100000 /* 0x0186A0 */; orangekey2._x = 100000 /* 0x0186A0 */; orangewall3_movement = true; _root.ball1.scan.gotoAndStop(6); } if (this.hitTest(smallkey)) { smallstart = true; small = true; smallkey._x = 100000 /* 0x0186A0 */; ball1.gotoAndStop(2); ball2.gotoAndStop(2); } if (scoresubmit19) { scoresubmit = false; } else if (scoresubmit19 == false) { scoresubmit = true; } if (this.hitTest(finish)) { timing = false; seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if ((score == 19) or scoresubmit) { level19_best_time = seconds; scoresubmit19 = true; savefile.data.scoresubmit19 = _root.scoresubmit19; savefile.flush(); } if (seconds < level19_best_time) { level19_best_time = seconds; } savefile.data.level19_best_time = _root.level19_best_time; savefile.flush(); if (_root.score <= 20) { _root.score = 20; } savefile.data.score = _root.score; savefile.flush(); SPACE_possible = false; ball_movement = false; win._x = Stage.width / 2; win._y = Stage.height / 2; _root.win.instructions.gotoAndStop(19); _root.win.meter.gotoAndStop(20); } if (Key.isDown(32) && (SPACE_possible == false)) { finisher = true; } if (finisher) { if (!Key.isDown(32)) { win._x = 10000; gotoAndStop ("l20"); finisher = false; SPACE_possible = true; } } }; _root.onEnterFrame = function () { seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if (!ball_movement) { timing = false; startTime = getTimer() - elapsedTime; } else { timing = true; } if (timing) { elapsedTime = getTimer() - startTime; } if (var19) { w_works = false; } else { w_works = true; } if (((option._x != (Stage.width / 2)) and (instruction._x != (Stage.width / 2))) and (win._x != (Stage.width / 2))) { if (Key.isDown(81)) { q_is_DOWN = true; } if (q_is_DOWN) { if (!Key.isDown(81)) { gotoAndStop ("l23"); q_is_DOWN = false; } } if (Key.isDown(87)) { w_is_DOWN = true; } if (w_is_DOWN) { if (!Key.isDown(87)) { if (w_works) { gotoAndStop ("l20"); } w_is_DOWN = false; } } _root.TotalRestartsText.text = totalRestarts; if (Key.isDown(78)) { n_is_DOWN = true; } if (n_is_DOWN) { if (!Key.isDown(78)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); n_is_DOWN = false; } } } if (Key.isDown(66)) { b_is_DOWN = true; } if (b_is_DOWN) { if (!Key.isDown(66)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); b_is_DOWN = false; } } } if (SPACE_possible) { if (Key.isDown(32)) { SPACE_is_DOWN = true; } if (SPACE_is_DOWN) { if (!Key.isDown(32)) { ball1_old_location(); ball1._x = ball2._x; ball1._y = ball2._y; ball2._x = x_location; ball2._y = y_location; SPACE_is_DOWN = false; } } } } if (greenwall_movement) { greenwall._x = greenwall._x + 2; } if (greenwall._x > 549.9) { greenwall_movement = false; soundstart = true; greenwall._x = 549.9; rm._x = rm._x - 0.5; } if (pinkwall_movement) { pinkwall._y = pinkwall._y - 1; } if (pinkwall._y < -2.8) { pinkwall_movement = false; } if (redwall_movement) { redwall._x = redwall._x + 0.4; } if (redwall._x > 499.8) { redwall_movement = false; soundstart = true; redwall._x = 499.8; } if (yellowwall_movement) { yellowwall._x = yellowwall._x + 1; } if (yellowwall._x > 549.9) { soundstart = true; yellowwall._x = 549.8; yellowwall_movement = false; } if (bluewall_movement) { bluewall._y = bluewall._y - 2; } if (bluewall._y < 224.4) { bluewall_movement = false; soundstart = true; bluewall._y = 224.4; } if (orangewall3_movement) { orangewall3._y = orangewall3._y + 4; } if (orangewall3._y > 454.4) { soundstart = true; orangewall3_movement = false; orangewall3._y = 454.4; orangewall4._y = orangewall3._y - 266.7; orangewall1._y = orangewall3._y - 267.5; orange_transparent2._y = orangewall3._y - 220; orange_transparent._y = orangewall3._y - 218; orange_piece._y = orangewall3._y - 94.5; } else { orangewall1._y = orangewall3._y - 269.5; orangewall2._y = orangewall3._y - 34.1; orangewall4._y = orangewall3._y - 269.7; orange_transparent._y = orangewall3._y - 220.2; orange_transparent2._y = orangewall3._y - 222.5; orange_piece._y = orangewall3._y - 96.5; pinkkey._y = orangewall3._y - 17.5; smallkey._y = orangewall3._y - 69; } differenceblue = ((bluewall._y - ball1._y) - (bluewall._height / 2)) - (ball1._height / 2); differenceblue2 = ((bluewall._y - ball2._y) - (bluewall._height / 2)) - (ball2._height / 2); distance_between_rt_and_ball = Math.abs(((ball1._y - rt._y) - (rt._height / 2)) - (ball1._height / 2)); distance_between_rt_and_ball2 = Math.abs(((ball2._y - rt._y) - (rt._height / 2)) - (ball2._height / 2)); distance_between_redwally_and_ball = Math.abs(((ball1._y - redwall._y) - (redwall._height / 2)) - (ball1._height / 2)); distance_between_redwally_and_ball2 = Math.abs(((ball2._y - redwall._y) - (redwall._height / 2)) - (ball2._height / 2)); distance_x_between_bluewall_and_ball = Math.abs(bluewall._x - ball1._x); distance_x_between_bluewall_and_ball2 = Math.abs(bluewall._x - ball2._x); if ((((bluewall_movement == true) and (differenceblue <= 0.2)) and (differenceblue >= -8)) and (distance_x_between_bluewall_and_ball < ((ball1._width / 2) + (bluewall._width / 2)))) { ball1._y = ((bluewall._y - (bluewall._height / 2)) - (ball1._height / 2)) - 0.2; } if ((((bluewall_movement == true) and (differenceblue2 <= 0.2)) and (differenceblue2 >= -8)) and (distance_x_between_bluewall_and_ball2 < ((ball2._width / 2) + (bluewall._width / 2)))) { ball2._y = ((bluewall._y - (bluewall._height / 2)) - (ball2._height / 2)) - 0.2; } if (((((differenceblue <= 0.5) && (differenceblue >= -2)) && (distance_between_rt_and_ball <= 1)) && (distance_x_between_bluewall_and_ball < ((ball1._width / 2) + (bluewall._width / 2)))) or ((((differenceblue2 <= 0.5) && (differenceblue2 >= -2)) && (distance_between_rt_and_ball2 <= 2)) && (distance_x_between_bluewall_and_ball2 < ((ball2._width / 2) + (bluewall._width / 2))))) { right_hit = true; ball_location = false; ball1._y = 2000; ball2._y = 2000; } if ((((((differenceblue <= 0.5) && (differenceblue >= -2)) && (distance_between_redwally_and_ball <= 1)) && (ball1._x < ((redwall._x + (redwall._width / 2)) + (ball1._width / 2)))) && (distance_x_between_bluewall_and_ball < ((ball1._width / 2) + (bluewall._width / 2)))) or (((((differenceblue2 <= 0.5) && (differenceblue2 >= -2)) && (distance_between_redwally_and_ball2 <= 1)) && (ball2._x < ((redwall._x + (redwall._width / 2)) + (ball2._width / 2)))) && (distance_x_between_bluewall_and_ball2 < ((ball2._width / 2) + (bluewall._width / 2))))) { right_hit = true; ball_location = false; ball1._y = 2000; ball2._y = 2000; } differenceorange3 = ((ball1._y - orangewall3._y) - (orangewall3._height / 2)) - (ball1._height / 2); differenceorange32 = ((ball2._y - orangewall3._y) - (orangewall3._height / 2)) - (ball2._height / 2); distance_between_bottomwall_and_ball = Math.abs(((bottomwall._y - ball1._y) - (bottomwall._height / 2)) - (ball1._height / 2)); distance_between_bottomwall_and_ball2 = Math.abs(((bottomwall._y - ball2._y) - (bottomwall._height / 2)) - (ball2._height / 2)); distance_between_yellowwall_and_ball = Math.abs(((yellowwall._y - ball1._y) - (yellowwall._height / 2)) - (ball1._height / 2)); distance_between_yellowwall_and_ball2 = Math.abs(((yellowwall._y - ball2._y) - (yellowwall._height / 2)) - (ball2._height / 2)); distance_between_bluewall_and_ball = Math.abs(((bluewall._y - ball1._y) - (bluewall._height / 2)) - (ball1._height / 2)); distance_between_bluewall_and_ball2 = Math.abs(((bluewall._y - ball2._y) - (bluewall._height / 2)) - (ball2._height / 2)); distance_between_greenwall_and_ball = Math.abs(((greenwall._y - ball1._y) - (greenwall._height / 2)) - (ball1._height / 2)); distance_between_greenwall_and_ball2 = Math.abs(((greenwall._y - ball2._y) - (greenwall._height / 2)) - (ball2._height / 2)); distance_between_redwall_and_ball = Math.abs(((redwall._y - ball1._y) - (redwall._height / 2)) - (ball1._height / 2)); distance_between_redwall_and_ball2 = Math.abs(((redwall._y - ball2._y) - (redwall._height / 2)) - (ball2._height / 2)); distance_x_between_orangewall3_and_ball = Math.abs(orangewall3._x - ball1._x); distance_x_between_orangewall3_and_ball2 = Math.abs(orangewall3._x - ball2._x); if ((((orangewall3_movement == true) and (differenceorange3 <= 0.2)) and (differenceorange3 >= -8)) and (distance_x_between_orangewall3_and_ball < ((ball1._width / 2) + (orangewall3._width / 2)))) { ball1._y = ((orangewall3._y + (orangewall3._height / 2)) + (ball1._height / 2)) + 0.2; } if ((((orangewall3_movement == true) and (differenceorange32 <= 0.2)) and (differenceorange32 >= -8)) and (distance_x_between_orangewall3_and_ball2 < ((ball2._width / 2) + (orangewall3._width / 2)))) { ball2._y = ((orangewall3._y + (orangewall3._height / 2)) + (ball2._height / 2)) + 0.2; } if (((((differenceorange3 <= 0.5) && (differenceorange3 >= -4)) && (distance_between_bottomwall_and_ball <= 1)) && (distance_x_between_orangewall3_and_ball < ((ball1._width / 2) + (orangewall3._width / 2)))) or ((((differenceorange32 <= 0.5) && (differenceorange32 >= -4)) && (distance_between_bottomwall_and_ball2 <= 1)) && (distance_x_between_orangewall3_and_ball2 < ((ball2._width / 2) + (orangewall3._width / 2))))) { right_hit = true; ball_location = false; ball1._y = 2000; ball2._y = 2000; } if ((((((differenceorange3 <= 2) && (differenceorange3 >= -4)) && (distance_between_bluewall_and_ball <= 3)) && (ball1._x < ((bluewall._x + (bluewall._width / 2)) + (ball1._width / 2)))) && (distance_x_between_orangewall3_and_ball < ((ball1._width / 2) + (orangewall3._width / 2)))) or (((((differenceorange32 <= 0.5) && (differenceorange32 >= -4)) && (distance_between_bluewall_and_ball2 <= 2)) && (ball2._x < ((bluewall._x + (bluewall._width / 2)) + (ball2._width / 2)))) && (distance_x_between_orangewall3_and_ball2 < ((ball2._width / 2) + (orangewall3._width / 2))))) { right_hit = true; ball_location = false; ball1._y = 2000; ball2._y = 2000; } if ((((((differenceorange3 <= 2) && (differenceorange3 >= -4)) && (distance_between_redwall_and_ball <= 3)) && (ball1._x < ((redwall._x + (redwall._width / 2)) + (ball1._width / 2)))) && (distance_x_between_orangewall3_and_ball < ((ball1._width / 2) + (orangewall3._width / 2)))) or (((((differenceorange32 <= 0.5) && (differenceorange32 >= -4)) && (distance_between_redwall_and_ball2 <= 2)) && (ball2._x < ((redwall._x + (redwall._width / 2)) + (ball2._width / 2)))) && (distance_x_between_orangewall3_and_ball2 < ((ball2._width / 2) + (orangewall3._width / 2))))) { right_hit = true; ball_location = false; ball1._y = 2000; ball2._y = 2000; } if ((((((differenceorange3 <= 2) && (differenceorange3 >= -4)) && (distance_between_greenwall_and_ball <= 3)) && (ball1._x < ((greenwall._x + (greenwall._width / 2)) + (ball1._width / 2)))) && (distance_x_between_orangewall3_and_ball < ((ball1._width / 2) + (orangewall3._width / 2)))) or (((((differenceorange32 <= 0.5) && (differenceorange32 >= -4)) && (distance_between_greenwall_and_ball2 <= 2)) && (ball2._x < ((greenwall._x + (greenwall._width / 2)) + (ball2._width / 2)))) && (distance_x_between_orangewall3_and_ball2 < ((ball2._width / 2) + (orangewall3._width / 2))))) { right_hit = true; ball_location = false; ball1._y = 2000; ball2._y = 2000; } differenceorange1 = ((ball1._y - orangewall1._y) - (orangewall1._height / 2)) - (ball1._height / 2); differenceorange12 = ((ball2._y - orangewall1._y) - (orangewall1._height / 2)) - (ball2._height / 2); distance_x_between_orangewall1_and_ball = Math.abs(orangewall1._x - ball1._x); distance_x_between_orangewall1_and_ball2 = Math.abs(orangewall1._x - ball2._x); if ((((orangewall3_movement == true) and (differenceorange1 <= 0.2)) and (differenceorange1 >= -8)) and (distance_x_between_orangewall1_and_ball < ((ball1._width / 2) + (orangewall1._width / 2)))) { ball1._y = ((orangewall1._y + (orangewall1._height / 2)) + (ball1._height / 2)) + 0.2; } if ((((orangewall3_movement == true) and (differenceorange12 <= 0.2)) and (differenceorange12 >= -8)) and (distance_x_between_orangewall1_and_ball2 < ((ball2._width / 2) + (orangewall1._width / 2)))) { ball2._y = ((orangewall1._y + (orangewall1._height / 2)) + (ball2._height / 2)) + 0.2; } if (((((((differenceorange1 <= 0.5) && (orangewall3_movement == true)) && (differenceorange1 >= -4)) && (distance_between_yellowwall_and_ball <= 2)) && (ball1._x < ((yellowwall._x + (yellowwall._width / 2)) + (ball1._width / 2)))) && (distance_x_between_orangewall1_and_ball < ((ball1._width / 2) + (orangewall1._width / 2)))) or ((((((differenceorange12 <= 0.5) && (orangewall3_movement == true)) && (differenceorange12 >= -4)) && (distance_between_yellowwall_and_ball2 <= 2)) && (ball2._x < ((yellowwall._x + (yellowwall._width / 2)) + (ball2._width / 2)))) && (distance_x_between_orangewall1_and_ball2 < ((ball2._width / 2) + (orangewall1._width / 2))))) { right_hit = true; ball_location = false; ball1._y = 2000; ball2._y = 2000; } if (((((((differenceorange1 <= 0.5) && (orangewall3_movement == true)) && (differenceorange1 >= -4)) && (distance_between_bluewall_and_ball <= 2)) && (ball1._x < ((bluewall._x + (bluewall._width / 2)) + (ball1._width / 2)))) && (distance_x_between_orangewall1_and_ball < ((ball1._width / 2) + (orangewall1._width / 2)))) or ((((((differenceorange12 <= 0.5) && (orangewall3_movement == true)) && (differenceorange12 >= -4)) && (distance_between_bluewall_and_ball2 <= 2)) && (ball2._x < ((bluewall._x + (bluewall._width / 2)) + (ball2._width / 2)))) && (distance_x_between_orangewall1_and_ball2 < ((ball2._width / 2) + (orangewall1._width / 2))))) { right_hit = true; ball_location = false; ball1._y = 2000; ball2._y = 2000; } differenceyellow = ((ball1._x - yellowwall._x) - (yellowwall._width / 2)) - (ball1._width / 2); differenceyellow2 = ((ball2._x - yellowwall._x) - (yellowwall._width / 2)) - (ball2._width / 2); distance_between_rightwall_and_ball = Math.abs(((rightwall._x - ball1._x) - (rightwall._width / 2)) - (ball1._width / 2)); distance_between_rightwall_and_ball2 = Math.abs(((rightwall._x - ball2._x) - (rightwall._width / 2)) - (ball2._width / 2)); distance_y_between_yellowwall_and_ball = Math.abs(yellowwall._y - ball1._y); distance_y_between_yellowwall_and_ball2 = Math.abs(yellowwall._y - ball2._y); if ((((yellowwall_movement == true) and (differenceyellow <= 0.2)) and (differenceyellow >= -8)) and (distance_y_between_yellowwall_and_ball < ((ball1._height / 2) + (yellowwall._height / 2)))) { ball1._x = ((yellowwall._x + (yellowwall._width / 2)) + (ball1._width / 2)) + 0.2; } if ((((yellowwall_movement == true) and (differenceyellow2 <= 0.2)) and (differenceyellow2 >= -8)) and (distance_y_between_yellowwall_and_ball2 < ((ball2._height / 2) + (yellowwall._height / 2)))) { ball2._x = ((yellowwall._x + (yellowwall._width / 2)) + (ball2._width / 2)) + 0.2; } if (((((differenceyellow <= 0.5) && (differenceyellow >= -2)) && (distance_between_rightwall_and_ball <= 1)) && (distance_y_between_yellowwall_and_ball < ((ball1._height / 2) + (yellowwall._height / 2)))) or ((((differenceyellow2 <= 0.5) && (differenceyellow2 >= -2)) && (distance_between_rightwall_and_ball2 <= 1)) && (distance_y_between_yellowwall_and_ball2 < ((ball2._height / 2) + (yellowwall._height / 2))))) { right_hit = true; ball_location = false; ball1._x = 2000; ball2._x = 2000; } differencegreen = ((ball1._x - greenwall._x) - (greenwall._width / 2)) - (ball1._width / 2); differencegreen2 = ((ball2._x - greenwall._x) - (greenwall._width / 2)) - (ball2._width / 2); distance_between_orangewall1_and_ball = Math.abs(((orangewall1._x - ball1._x) - (orangewall1._width / 2)) - (ball1._width / 2)); distance_between_orangewall1_and_ball2 = Math.abs(((orangewall1._x - ball2._x) - (orangewall1._width / 2)) - (ball2._width / 2)); distance_y_between_greenwall_and_ball = Math.abs(greenwall._y - ball1._y); distance_y_between_greenwall_and_ball2 = Math.abs(greenwall._y - ball2._y); if ((((greenwall_movement == true) and (differencegreen <= 0.2)) and (differencegreen >= -8)) and (distance_y_between_greenwall_and_ball < ((ball1._height / 2) + (greenwall._height / 2)))) { ball1._x = ((greenwall._x + (greenwall._width / 2)) + (ball1._width / 2)) + 0.2; } if ((((greenwall_movement == true) and (differencegreen2 <= 0.2)) and (differencegreen2 >= -8)) and (distance_y_between_greenwall_and_ball2 < ((ball2._height / 2) + (greenwall._height / 2)))) { ball2._x = ((greenwall._x + (greenwall._width / 2)) + (ball2._width / 2)) + 0.2; } if (((((differencegreen <= 0.5) && (differencegreen >= -2)) && (distance_between_rightwall_and_ball <= 0.2)) && (distance_y_between_greenwall_and_ball < ((ball1._height / 2) + (greenwall._height / 2)))) or ((((differencegreen2 <= 0.5) && (differencegreen2 >= -2)) && (distance_between_rightwall_and_ball2 <= 0.2)) && (distance_y_between_greenwall_and_ball2 < ((ball2._height / 2) + (greenwall._height / 2))))) { right_hit = true; ball_location = false; ball1._x = 2000; ball2._x = 2000; } if (((((((differencegreen <= 0.5) && (greenwall_movement == true)) && (differencegreen >= -2)) && (distance_between_orangewall1_and_ball <= 1)) && (ball1._y < ((orangewall1._y + (orangewall1._height / 2)) + (ball1._height / 2)))) && (distance_y_between_greenwall_and_ball < ((ball1._height / 2) + (greenwall._height / 2)))) or ((((((differencegreen2 <= 0.5) && (differencegreen2 >= -2)) && (greenwall_movement == true)) && (distance_between_orangewall1_and_ball2 <= 1)) && (ball2._y < ((orangewall1._y + (orangewall1._height / 2)) + (ball2._height / 2)))) && (distance_y_between_greenwall_and_ball2 < ((ball2._height / 2) + (greenwall._height / 2))))) { right_hit = true; ball_location = false; ball1._x = 2000; ball2._x = 2000; } differencered = ((ball1._x - redwall._x) - (redwall._width / 2)) - (ball1._width / 2); differencered2 = ((ball2._x - redwall._x) - (redwall._width / 2)) - (ball2._width / 2); distance_between_orangewall2_and_ball = Math.abs(((orangewall2._x - ball1._x) - (orangewall2._width / 2)) - (ball1._width / 2)); distance_between_orangewall2_and_ball2 = Math.abs(((orangewall2._x - ball2._x) - (orangewall2._width / 2)) - (ball2._width / 2)); distance_between_orangewall4_and_ball = Math.abs(((orangewall4._x - ball1._x) - (orangewall4._width / 2)) - (ball1._width / 2)); distance_between_orangewall4_and_ball2 = Math.abs(((orangewall4._x - ball2._x) - (orangewall4._width / 2)) - (ball2._width / 2)); distance_between_bluewallx_and_ball = Math.abs(((bluewall._x - ball1._x) - (bluewall._width / 2)) - (ball1._width / 2)); distance_between_bluewallx_and_ball2 = Math.abs(((bluewall._x - ball2._x) - (bluewall._width / 2)) - (ball2._width / 2)); distance_y_between_redwall_and_ball = Math.abs(redwall._y - ball1._y); distance_y_between_redwall_and_ball2 = Math.abs(redwall._y - ball2._y); if ((((redwall_movement == true) and (differencered <= 0.2)) and (differencered >= -8)) and (distance_y_between_redwall_and_ball < ((ball1._height / 2) + (redwall._height / 2)))) { ball1._x = ((redwall._x + (redwall._width / 2)) + (ball1._width / 2)) + 0.2; } if ((((redwall_movement == true) and (differencered2 <= 0.2)) and (differencered2 >= -8)) and (distance_y_between_redwall_and_ball2 < ((ball2._height / 2) + (redwall._height / 2)))) { ball2._x = ((redwall._x + (redwall._width / 2)) + (ball2._width / 2)) + 0.2; } if (((((differencered <= 0.5) && (differencered >= -2)) && (distance_between_rightwall_and_ball <= 1)) && (distance_y_between_redwall_and_ball < ((ball1._height / 2) + (redwall._height / 2)))) or ((((differencered2 <= 0.5) && (differencered2 >= -2)) && (distance_between_rightwall_and_ball2 <= 0.5)) && (distance_y_between_redwall_and_ball2 < ((ball2._height / 2) + (redwall._height / 2))))) { right_hit = true; ball_location = false; ball1._x = 2000; ball2._x = 2000; } if ((((((((differencered <= 0.2) && (differencered >= -2)) && (redwall_movement == true)) && (distance_between_orangewall2_and_ball <= 0.3)) && (ball1._y < ((orangewall2._y + (orangewall2._height / 2)) + (ball1._height / 2)))) && (ball1._y > ((orangewall2._y - (orangewall2._height / 2)) - (ball1._height / 2)))) && (distance_y_between_redwall_and_ball < ((ball1._height / 2) + (redwall._height / 2)))) or (((((((differencered2 <= 0.5) && (redwall_movement == true)) && (differencered2 >= -2)) && (distance_between_orangewall2_and_ball2 <= 1)) && (ball2._y < ((orangewall2._y + (orangewall2._height / 2)) + (ball2._height / 2)))) && (ball2._y > ((orangewall2._y - (orangewall2._height / 2)) - (ball2._height / 2)))) && (distance_y_between_redwall_and_ball2 < ((ball2._height / 2) + (redwall._height / 2))))) { right_hit = true; ball_location = false; ball1._x = 2000; ball2._x = 2000; } if (((((((differencered <= 0.5) && (differencered >= -2)) && (distance_between_bluewallx_and_ball <= 1)) && (ball1._y < ((bluewall._y + (bluewall._height / 2)) + (ball1._height / 2)))) && (ball1._y > ((bluewall._y - (bluewall._height / 2)) - (ball1._height / 2)))) && (distance_y_between_redwall_and_ball < ((ball1._height / 2) + (redwall._height / 2)))) or ((((((differencered2 <= 0.5) && (differencered2 >= -2)) && (distance_between_bluewallx_and_ball2 <= 1)) && (ball2._y < ((bluewall._y + (bluewall._height / 2)) + (ball2._height / 2)))) && (ball2._y > ((bluewall._y - (bluewall._height / 2)) - (ball2._height / 2)))) && (distance_y_between_redwall_and_ball2 < ((ball2._height / 2) + (redwall._height / 2))))) { right_hit = true; ball_location = false; ball1._x = 2000; ball2._x = 2000; } if (ball_location) { ball1_xlocation = ball1._x; ball1_ylocation = ball1._y; ball2_xlocation = ball2._x; ball2_ylocation = ball2._y; } else { explosionsound2 = true; if (ball1_xlocation < (Stage.width / 2)) { black_is_hit = true; } else { gray_is_hit = true; } ball_locator(); } };
Instance of Symbol 1257 MovieClip "ball1" in Frame 14
onClipEvent (enterFrame) { function move(xmove, ymove) { _x = (_x + xmove); _y = (_y + ymove); if (hitTest(_root.leftwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.middlewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.topwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.topwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.topwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.topwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bottomwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bottomwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bottomwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bottomwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bottomwall2)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bottomwall2.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bottomwall2.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall2.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bottomwall2.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.lb)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.lb.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.lb.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.lb.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.lb.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.lm)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.lm.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.lm.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.lm.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.lm.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.lmid2)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.lmid2.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.lmid2.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.lmid2.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.lmid2.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.ltop)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.ltop.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.ltop.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.ltop.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.ltop.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rb)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rb.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rb.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rb.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rb.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rm)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rm.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rm.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rm.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rm.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rt)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rt.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rt.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rt.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rt.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.pinkwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.pinkwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.pinkwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.pinkwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.pinkwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bluewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bluewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bluewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bluewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bluewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.greenwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.greenwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.greenwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.greenwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.greenwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.yellowwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.yellowwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.yellowwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.yellowwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.yellowwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.orangewall1)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.orangewall1.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.orangewall1.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.orangewall1.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.orangewall1.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.orangewall2)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.orangewall2.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.orangewall2.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.orangewall2.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.orangewall2.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.orangewall3)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.orangewall3.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.orangewall3.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.orangewall3.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.orangewall3.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.orangewall4)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.orangewall4.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.orangewall4.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.orangewall4.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.orangewall4.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.redwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.redwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.redwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.redwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.redwall.getBounds(_root).yMax) - 0.1)); } } } if (_root.ball_movement == true) { if (Key.isDown(37)) { move(-5, 0); } if (Key.isDown(39)) { move(5, 0); } if (Key.isDown(38)) { move(0, -5); } if (Key.isDown(40)) { move(0, 5); } } }
Frame 15
function restartLevel() { _root.scoresubmit12 = savefile.data.scoresubmit12; savefile.flush(); soundstart = false; small = false; if ((((((((((((((((((var13 != true) and (var14 != true)) and (var15 != true)) and (var16 != true)) and (var17 != true)) and (var18 != true)) and (var19 != true)) and (var20 != true)) and (var21 != true)) and (var22 != true)) and (var23 != true)) and (var24 != true)) and (var25 != true)) and (var26 != true)) and (var27 != true)) and (var28 != true)) and (var29 != true)) and (var30 != true)) { var12 = true; } var11 = false; if (_root.var1) { _root.score = 1; } else if (_root.var2) { _root.score = 2; } else if (_root.var3) { _root.score = 3; } else if (_root.var4) { _root.score = 4; } else if (_root.var5) { _root.score = 5; } else if (_root.var6) { _root.score = 6; } else if (_root.var71) { _root.score = 7; } else if (_root.var8) { _root.score = 8; } else if (_root.var9) { _root.score = 9; } else if (_root.var10) { _root.score = 10; } else if (_root.var11) { _root.score = 11; } else if (_root.var12) { _root.score = 12; } else if (_root.var13) { _root.score = 13; } else if (_root.var14) { _root.score = 14; } else if (_root.var15) { _root.score = 15; } else if (_root.var16) { _root.score = 16; } else if (_root.var17) { _root.score = 17; } else if (_root.var18) { _root.score = 18; } else if (_root.var19) { _root.score = 19; } else if (_root.var20) { _root.score = 20; } else if (_root.var21) { _root.score = 21; } else if (_root.var22) { _root.score = 22; } else if (_root.var23) { _root.score = 23; } else if (_root.var24) { _root.score = 24; } else if (_root.var25) { _root.score = 25; } else if (_root.var26) { _root.score = 26; } else if (_root.var27) { _root.score = 27; } else if (_root.var28) { _root.score = 28; } else if (_root.var29) { _root.score = 29; } else if (_root.var30) { _root.score = 30; } savefile.data.score = _root.score; savefile.flush(); radius = ball1._height / 2; SPACE_possible = true; redwall_movement = false; aquawall_movement = false; ball_location = true; gray_is_hit_red_left = false; gray_is_hit_red_right = false; black_is_hit_red_right = false; black_is_hit_red_left = false; red_hit_left = false; red_hit_right = false; ball1_is_pushed_by_red_wall = false; ball1_is_pushed_by_red_wall2 = false; aqua_is_attached_to_crate1 = true; _root.decoy2.gotoAndStop(1); _root.decoy.gotoAndStop(1); _root.ball1.gotoAndStop(1); _root.ball1.gotoAndStop(1); _root.crate1.gotoAndStop(1); decoy._x = -1000; decoy2._x = -1000; ball_movement = true; finisher = false; _root.hit_crate1 = false; _root.ball1_and_crate1_rightside_touching = false; _root.ball1_and_crate1_leftside_touching = false; _root.ball2_and_crate1_rightside_touching = false; _root.ball2_and_crate1_leftside_touching = false; _root.cant_move_crate1_right_against_red_wall = false; _root.cant_move_crate1_left_against_red_wall = false; _root.cant_move_crate1_up_against_red_wall = false; _root.cant_move_crate1_down_against_red_wall = false; _root.cant_move_crate1_right_against_middlewall_insidetop = false; _root.cant_move_crate1_right_against_middlewall_insidebottom = false; _root.cant_move_crate1_right_against_rightwall = false; _root.cant_move_crate1_left_against_leftwall = false; _root.cant_move_crate1_left_against_middlewall_insidetop = false; _root.cant_move_crate1_left_against_middlewall_insidebottom = false; _root.cant_move_crate1_down_against_bottomwall = false; _root.cant_move_crate1_down_against_middlewall_insidebottom = false; _root.cant_move_crate1_up_against_middlewall_insidetop = false; _root.cant_move_crate1_up_against_aquawall = true; _root.cant_move_crate1_up_against_topwall = true; _root.red_wall_and_crate1_rightside_touching = false; _root.crate1_against_red_wall_boundaries_prevention = false; _root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall = false; _root.ball2_is_pushed_by_crate1_is_pushed_by_red_wall = false; _root.crate1_is_pushed_by_ball1_is_pushed_by_redwall = false; _root.crate1_is_pushed_by_ball2_is_pushed_by_redwall = false; _root.crate1_is_pushed_by_red_wall = false; timing = true; elapsedTime = 0; startTime = getTimer(); seconds = 0; redwall._x = 778.1; redwall._y = 295.9; aquawall._x = 200.1; aquawall._y = 169.8; redkey._x = 200; redkey._y = 297.3; aquakey._x = 500; aquakey._y = 157.7; ball1._x = 200; ball1._y = 407.1; ball2._x = 500; ball2._y = 407.1; crate1._x = 500; crate1._y = 171.4; youwin._x = 10000; winningscreen._x = 1000; finish._x = 200.1; finish._y = 95.8; decoy._x = 10000; decoy._y = 10000; decoy2._x = 10000; decoy2._y = 10000; } function ball1_old_location() { x_location = ball1._x; y_location = ball1._y; } function ball_locator() { ball_location = true; if (black_is_hit_red_left == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(3); _root.decoy.gotoAndStop(2); } if (gray_is_hit_red_right == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); } if (black_is_hit_red_right == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(3); _root.decoy.gotoAndStop(2); _root.decoy.inside2.gotoAndPlay(1); _root.decoy2.inside3.gotoAndPlay(1); } if (gray_is_hit_red_left == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); _root.decoy.inside2.gotoAndPlay(1); _root.decoy2.inside3.gotoAndPlay(1); } } stop(); _root.options._x = 28.1; _root.restartbutton._x = 41.9; _root.QW._x = 73.8; _root.P._x = 55.6; _root.BN._x = 66; totalRestarts = 0; _root.option.hintbox.gotoAndStop(1); _root.option.meter.gotoAndStop(12); restartLevel(); youwin.onPress = function () { gotoAndStop ("l26"); }; ball1.onEnterFrame = function () { if (this.hitTest(aquakey)) { keystart = true; _root.ball1.scan.gotoAndStop(3); if (_root.decoy_crate._currentframe == 2) { aquakey._x = 100000 /* 0x0186A0 */; aquawall_movement = true; } } if (this.hitTest(redkey)) { keystart = true; _root.ball1.scan.gotoAndStop(8); redkey._x = 100000 /* 0x0186A0 */; redwall_movement = true; } if (scoresubmit12) { scoresubmit = false; } else if (scoresubmit12 == false) { scoresubmit = true; } if (this.hitTest(finish)) { timing = false; seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if ((score == 12) or scoresubmit) { level12_best_time = seconds; scoresubmit12 = true; savefile.data.scoresubmit12 = _root.scoresubmit12; savefile.flush(); } if (seconds < level12_best_time) { level12_best_time = seconds; } savefile.data.level12_best_time = _root.level12_best_time; savefile.flush(); if (_root.score <= 13) { _root.score = 13; } savefile.data.score = _root.score; savefile.flush(); SPACE_possible = false; ball_movement = false; win._x = Stage.width / 2; win._y = Stage.height / 2; _root.win.instructions.gotoAndStop(12); _root.win.meter.gotoAndStop(13); } if (Key.isDown(32) && (SPACE_possible == false)) { finisher = true; } if (finisher) { if (!Key.isDown(32)) { win._x = 10000; gotoAndStop ("l26"); finisher = false; SPACE_possible = true; } } }; _root.onEnterFrame = function () { seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if (!ball_movement) { timing = false; startTime = getTimer() - elapsedTime; } else { timing = true; } if (timing) { elapsedTime = getTimer() - startTime; } if (var12) { w_works = false; } else { w_works = true; } if (((option._x != (Stage.width / 2)) and (instruction._x != (Stage.width / 2))) and (win._x != (Stage.width / 2))) { if (Key.isDown(81)) { q_is_DOWN = true; } if (q_is_DOWN) { if (!Key.isDown(81)) { gotoAndStop ("l18"); q_is_DOWN = false; } } if (Key.isDown(87)) { w_is_DOWN = true; } if (w_is_DOWN) { if (!Key.isDown(87)) { if (w_works) { gotoAndStop ("l26"); } w_is_DOWN = false; } } _root.TotalRestartsText.text = totalRestarts; ballx = ball1._x; bally = ball1._y; if (_root.cant_move_crate1_down_against_red_wall == true) { thingy = 1; } if (Key.isDown(78)) { n_is_DOWN = true; } if (n_is_DOWN) { if (!Key.isDown(78)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); n_is_DOWN = false; } } } if (Key.isDown(66)) { b_is_DOWN = true; } if (b_is_DOWN) { if (!Key.isDown(66)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); b_is_DOWN = false; } } } if (SPACE_possible) { if (Key.isDown(32)) { SPACE_is_DOWN = true; } if (SPACE_is_DOWN) { if (!Key.isDown(32)) { ball1_old_location(); ball1._x = ball2._x; ball1._y = ball2._y; ball2._x = x_location; ball2._y = y_location; SPACE_is_DOWN = false; } } } } if (aqua_is_attached_to_crate1 == true) { aquakey._x = crate1._x; aquakey._y = crate1._y; } ballx = ball1._x; bally = ball1._y; if (aquawall_movement) { aquawall._x = aquawall._x - 1; } if (aquawall._x < 0) { aquawall_movement = false; } if (redwall_movement) { redwall._x = redwall._x - 1; } if (redwall._x < 350.3) { redwall_movement = false; soundstart = true; redwall._x = 350.3; } differencered = ((redwall._x - (redwall._width / 2)) - (ball1._width / 2)) - ball1._x; differencered2 = ((redwall._x - (redwall._width / 2)) - (ball2._width / 2)) - ball2._x; distance_between_rightmiddlewall_and_ball = Math.abs(((ball1._x - middlewall._x) - (middlewall._width / 2)) - (ball1._width / 2)); distance_between_rightmiddlewall_and_ball2 = Math.abs(((ball2._x - middlewall._x) - (middlewall._width / 2)) - (ball2._width / 2)); distance_between_leftwall_and_ball = Math.abs(((ball1._x - leftwall._x) - (leftwall._width / 2)) - (ball1._width / 2)); distance_between_leftwall_and_ball2 = Math.abs(((ball2._x - leftwall._x) - (leftwall._width / 2)) - (ball2._width / 2)); distance_y_between_redwall_and_ball = Math.abs(redwall._y - ball1._y); distance_y_between_redwall_and_ball2 = Math.abs(redwall._y - ball2._y); if ((((redwall_movement == true) and (differencered <= 0.2)) and (differencered >= -8)) and (distance_y_between_redwall_and_ball < ((ball1._height / 2) + (redwall._height / 2)))) { ball1._x = ((redwall._x - (redwall._width / 2)) - (ball1._width / 2)) - 0.2; ball1_is_pushed_by_red_wall = true; } else { ball1_is_pushed_by_red_wall = false; } if ((((redwall_movement == true) and (differencered2 <= 0.2)) and (differencered2 >= -8)) and (distance_y_between_redwall_and_ball2 < ((ball2._height / 2) + (redwall._height / 2)))) { ball2._x = ((redwall._x - (redwall._width / 2)) - (ball2._width / 2)) - 0.2; ball2_is_pushed_by_red_wall = true; } else { ball2_is_pushed_by_red_wall = false; } if (((((differencered <= 0.5) && (differencered >= -1)) && (distance_between_leftwall_and_ball <= 1)) && (distance_y_between_redwall_and_ball < ((ball1._height / 2) + (redwall._height / 2)))) or ((((differencered2 <= 0.5) && (differencered2 >= -1)) && (distance_between_leftwall_and_ball2 <= 0.5)) && (distance_y_between_redwall_and_ball2 < ((ball2._height / 2) + (redwall._height / 2))))) { red_hit_left = true; cant_move_crate1_up_against_red_wall = false; cant_move_crate1_down_against_red_wall = false; ball_location = false; ball1._x = 2000; ball2._x = 2000; } if (((((differencered <= 0.5) && (differencered >= -1)) && (distance_between_rightmiddlewall_and_ball <= 1)) && (distance_y_between_redwall_and_ball < ((ball1._height / 2) + (redwall._height / 2)))) or ((((differencered2 <= 0.5) && (differencered2 >= -1)) && (distance_between_rightmiddlewall_and_ball2 <= 0.5)) && (distance_y_between_redwall_and_ball2 < ((ball2._height / 2) + (redwall._height / 2))))) { red_hit_right = true; cant_move_crate1_up_against_red_wall = false; cant_move_crate1_down_against_red_wall = false; ball_location = false; ball1._x = 2000; ball2._x = 2000; } if (ball_location) { ball1_xlocation = ball1._x; ball1_ylocation = ball1._y; ball2_xlocation = ball2._x; ball2_ylocation = ball2._y; } else { explosionsound2 = true; if (ball1_xlocation < (Stage.width / 2)) { if (red_hit_left == true) { black_is_hit_red_left = true; } if (red_hit_right == true) { gray_is_hit_red_right = true; } } else if (ball1_xlocation > (Stage.width / 2)) { if (red_hit_right == true) { black_is_hit_red_right = true; } if (red_hit_left == true) { gray_is_hit_red_left = true; } } ball_locator(); } };
Instance of Symbol 1071 MovieClip "crate1" in Frame 15
onClipEvent (load) { _root.hit_crate1 = false; _root.ball1_and_crate1_rightside_touching = false; _root.ball1_and_crate1_leftside_touching = false; _root.ball2_and_crate1_rightside_touching = false; _root.ball2_and_crate1_leftside_touching = false; _root.cant_move_crate1_right_against_red_wall = false; _root.cant_move_crate1_left_against_red_wall = false; _root.cant_move_crate1_up_against_red_wall = false; _root.cant_move_crate1_down_against_red_wall = false; _root.cant_move_crate1_right_against_middlewall_insidetop = false; _root.cant_move_crate1_right_against_middlewall_insidebottom = false; _root.cant_move_crate1_right_against_rightwall = false; _root.cant_move_crate1_left_against_leftwall = false; _root.cant_move_crate1_left_against_middlewall_insidetop = false; _root.cant_move_crate1_left_against_middlewall_insidebottom = false; _root.cant_move_crate1_down_against_bottomwall = false; _root.cant_move_crate1_down_against_middlewall_insidebottom = false; _root.cant_move_crate1_up_against_middlewall_insidetop = false; _root.cant_move_crate1_up_against_aquawall = true; _root.cant_move_crate1_up_against_topwall = true; _root.red_wall_and_crate1_rightside_touching = false; _root.crate1_against_red_wall_boundaries_prevention = false; _root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall = false; _root.ball2_is_pushed_by_crate1_is_pushed_by_red_wall = false; _root.crate1_is_pushed_by_ball1_is_pushed_by_redwall = false; _root.crate1_is_pushed_by_ball2_is_pushed_by_redwall = false; _root.crate1_is_pushed_by_red_wall = false; } onClipEvent (enterFrame) { _root.distance_y_between_ball1_and_crate1 = Math.abs(_root.ball1._y - _y); _root.difference_x_ball1_with_crate1_rightside = ((_root.ball1._x - _x) - (_width / 2)) - (_root.ball1._width / 2); _root.difference_x_ball1_with_crate1_leftside = ((_x - _root.ball1._x) - (_width / 2)) - (_root.ball1._width / 2); _root.distance_y_between_ball2_and_crate1 = Math.abs(_root.ball2._y - _y); _root.difference_x_ball2_with_crate1_rightside = ((_root.ball2._x - _x) - (_width / 2)) - (_root.ball2._width / 2); _root.difference_x_ball2_with_crate1_leftside = ((_x - _root.ball2._x) - (_width / 2)) - (_root.ball2._width / 2); _root.difference_x_red_with_crate1_left = ((_x - (_width / 2)) - _root.redwall._x) - (_root.redwall._width / 2); _root.difference_x_red_with_crate1_right = ((_root.redwall._x - (_root.redwall._width / 2)) - _x) - (_width / 2); _root.difference_y_red_with_crate1_up = ((_y - (_height / 2)) - _root.redwall._y) - (_root.redwall._height / 2); _root.difference_y_red_with_crate1_down = ((_root.redwall._y - (_root.redwall._height / 2)) - _y) - (_height / 2); _root.distance_x_between_redwall_and_crate1 = Math.abs(_root.redwall._x - _x); _root.distance_y_between_redwall_and_crate1 = Math.abs(_root.redwall._y - _y); _root.difference_x_crate1_leftside_with_leftwall = ((_x - (_width / 2)) - (_root.leftwall._width / 2)) - _root.leftwall._x; _root.difference_x_crate1_leftside_with_middlewall = ((_x - (_width / 2)) - (_root.middlewall._width / 2)) - _root.middlewall._x; if (hitTest(_root.leftwall)) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate2_left_against_leftwall = true; } if ((((_x - _root.leftwall._x) - (_root.leftwall._width / 2)) - (_width / 2)) <= 0.3) { _root.cant_move_crate2_left_against_leftwall = true; } else { _root.cant_move_crate2_left_against_leftwall = false; } if (hitTest(_root.middlewall.insidetop) and (_root.moveleft == true)) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.insidetop.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate1_left_against_middlewall_insidetop = true; } if (((Math.abs(((_x - 350.1) - (_root.middlewall.insidetop._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((137.1 + (_root.middlewall.insidetop._height / 2)) + (_height / 2)))) and (_y > ((137.1 - (_root.middlewall.insidetop._height / 2)) - (_height / 2)))) { _root.cant_move_crate1_left_against_middlewall_insidetop = true; } else { _root.cant_move_crate1_left_against_middlewall_insidetop = false; } if (hitTest(_root.middlewall.insidebottom) and (_root.moveleft == true)) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.insidebottom.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate1_left_against_middlewall_insidebottom = true; } if (((Math.abs(((_x - 350.1) - (_root.middlewall.insidebottom._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((447.1 + (_root.middlewall.insidebottom._height / 2)) + (_height / 2)))) and (_y > ((447.1 - (_root.middlewall.insidebottom._height / 2)) - (_height / 2)))) { _root.cant_move_crate1_left_against_middlewall_insidebottom = true; } else { _root.cant_move_crate1_left_against_middlewall_insidebottom = false; } if (hitTest(_root.middlewall.insidetop) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.insidetop.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate1_right_against_middlewall_insidetop = true; } if (((Math.abs(((350.1 - _x) - (_root.middlewall.insidetop._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((137.1 + (_root.middlewall.insidetop._height / 2)) + (_height / 2)))) and (_y > ((137.1 - (_root.middlewall.insidetop._height / 2)) - (_height / 2)))) { _root.cant_move_crate1_right_against_middlewall_insidetop = true; } else { _root.cant_move_crate1_right_against_middlewall_insidetop = false; } if (hitTest(_root.middlewall.insidebottom) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.insidebottom.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate1_right_against_middlewall_insidebottom = true; } if (((Math.abs(((350.1 - _x) - (_root.middlewall.insidebottom._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((447.1 + (_root.middlewall.insidebottom._height / 2)) + (_height / 2)))) and (_y > ((447.1 - (_root.middlewall.insidebottom._height / 2)) - (_height / 2)))) { _root.cant_move_crate1_right_against_middlewall_insidebottom = true; } else { _root.cant_move_crate1_right_against_middlewall_insidebottom = false; } if (hitTest(_root.rightwall) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate1_right_against_rightwall = true; } if (((Math.abs(((_root.rightwall._x - _x) - (_root.rightwall._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.rightwall._y + (_root.rightwall._height / 2)) + (_height / 2)))) and (_y > ((_root.rightwall._y - (_root.rightwall._height / 2)) - (_height / 2)))) { _root.cant_move_crate1_right_against_rightwall = true; } else { _root.cant_move_crate1_right_against_rightwall = false; } if (hitTest(_root.aquawall) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.aquawall.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate1_up_against_aquawall = true; } if (((Math.abs(((_y - _root.aquawall._y) - (_root.aquawall._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.aquawall._x + (_root.aquawall._width / 2)) + (_width / 2)))) and (_x > ((_root.aquawall._x - (_root.aquawall._width / 2)) - (_width / 2)))) { _root.cant_move_crate1_up_against_aquawall = true; } else { _root.cant_move_crate1_up_against_aquawall = false; } if (hitTest(_root.topwall) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate1_up_against_topwall = true; } if (((Math.abs(((_y - _root.topwall._y) - (_root.topwall._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.topwall._x + (_root.topwall._width / 2)) + (_width / 2)))) and (_x > ((_root.topwall._x - (_root.topwall._width / 2)) - (_width / 2)))) { _root.cant_move_crate1_up_against_topwall = true; } else { _root.cant_move_crate1_up_against_topwall = false; } if (hitTest(_root.middlewall.insidetop) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall.insidetop.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate1_up_against_middlewall_insidetop = true; } if (((Math.abs(((_y - 137.1) - (_root.middlewall.insidetop._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((350.1 + (_root.middlewall.insidetop._width / 2)) + (_width / 2)))) and (_x > ((350.1 - (_root.middlewall.insidetop._width / 2)) - (_width / 2)))) { _root.cant_move_crate1_up_against_middlewall_insidetop = true; } else { _root.cant_move_crate1_up_against_middlewall_insidetop = false; } if (hitTest(_root.bottomwall)) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate1_down_against_bottomwall = true; } if ((((_root.bottomwall._y - _y) - (_root.bottomwall._height / 2)) - (_height / 2)) <= 0.3) { _root.cant_move_crate1_down_against_bottomwall = true; } else { _root.cant_move_crate1_down_against_bottomwall = false; } if (hitTest(_root.middlewall.insidebottom) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall.insidebottom.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate1_down_against_middlewall_insidebottom = true; } if (((Math.abs(((447.1 - _y) - (_root.middlewall.insidebottom._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((350.1 + (_root.middlewall.insidebottom._width / 2)) + (_width / 2)))) and (_x > ((350.1 - (_root.middlewall.insidebottom._width / 2)) - (_width / 2)))) { _root.cant_move_crate1_down_against_middlewall_insidebottom = true; } else { _root.cant_move_crate1_down_against_middlewall_insidebottom = false; } if (hitTest(_root.redwall)) { _root.redwall_crate1_hit = true; if ((_root.hit_crate1 == true) and (_root.moveright == true)) { if ((_root.crate1_against_red_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall == false)) { _x = (_x - ((getBounds(_root).xMax - _root.redwall.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate1_right_against_red_wall = true; } } if ((_root.hit_crate1 == true) and (_root.moveleft == true)) { if ((_root.crate1_against_red_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall == false)) { _x = (_x - ((getBounds(_root).xMin - _root.redwall.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate1_left_against_red_wall = true; } } if ((_root.hit_crate1 == true) and (_root.movedown == true)) { if ((_root.crate1_against_red_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall == false)) { _y = (_y - ((getBounds(_root).yMax - _root.redwall.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate1_down_against_red_wall = true; } } if ((_root.hit_crate1 == true) and (_root.moveup == true)) { if ((_root.crate1_against_red_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall == false)) { _y = (_y - ((getBounds(_root).yMin - _root.redwall.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate1_up_against_red_wall = true; } } } else { _root.redwall_crate1_hit = false; } if (((_root.difference_x_red_with_crate1_right <= 0.3) && (_root.difference_x_red_with_crate1_right >= -8)) && (_root.distance_y_between_redwall_and_crate1 < ((_height / 2) + (_root.redwall._height / 2)))) { _root.cant_move_crate1_right_against_red_wall = true; _root.red_wall_and_crate1_rightside_touching = true; } else { _root.cant_move_crate1_right_against_red_wall = false; _root.red_wall_and_crate1_rightside_touching = false; } if ((((_root.redwall_movement == true) and (_root.red_wall_and_crate1_rightside_touching == true)) and (_root.distance_y_between_redwall_and_crate1 < ((_height / 2) + (_root.redwall._height / 2)))) and (_currentframe == 1)) { _x = (((_root.redwall._x - (_root.redwall._width / 2)) - (_width / 2)) - 0.7); _root.crate1_is_pushed_by_red_wall = true; } if (((_root.difference_x_ball1_with_crate1_leftside <= 0.3) && (_root.difference_x_ball1_with_crate1_leftside >= -8)) && (_root.distance_y_between_ball1_and_crate1 < ((_height / 2) + (_root.ball1._height / 2)))) { _root.ball1_and_crate1_leftside_touching = true; } else { _root.ball1_and_crate1_leftside_touching = false; } if (((_root.difference_x_ball2_with_crate1_leftside <= 0.3) && (_root.difference_x_ball2_with_crate1_leftside >= -8)) && (_root.distance_y_between_ball2_and_crate1 < ((_height / 2) + (_root.ball2._height / 2)))) { _root.ball2_and_crate1_leftside_touching = true; } else { _root.ball2_and_crate1_leftside_touching = false; } if (((_root.difference_x_ball1_with_crate1_rightside <= 1) && (_root.difference_x_ball1_with_crate1_rightside >= -8)) && (_root.distance_y_between_ball1_and_crate1 < ((_height / 2) + (_root.ball1._height / 2)))) { _root.ball1_and_crate1_rightside_touching = true; } else { _root.ball1_and_crate1_rightside_touching = false; } if (((_root.difference_x_ball2_with_crate1_rightside <= 0.3) && (_root.difference_x_ball2_with_crate1_rightside >= -8)) && (_root.distance_y_between_ball2_and_crate1 < ((_height / 2) + (_root.ball2._height / 2)))) { _root.ball2_and_crate1_rightside_touching = true; } else { _root.ball2_and_crate1_rightside_touching = false; } if (((((_root.ball1_and_crate1_leftside_touching == true) and (_root.crate1_is_pushed_by_red_wall == true)) and (_root.distance_y_between_redwall_and_crate1 < ((_height / 2) + (_root.redwall._height / 2)))) and (_root.distance_y_between_ball1_and_crate1 < ((_height / 2) + (_root.ball1._height / 2)))) and (_root.redwall_movement == true)) { _root.ball1._x = (((_root.redwall._x - (_root.redwall._width / 2)) - _width) - (_root.ball1._width / 2)) - 0.5; _root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall = true; } else { _root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall = false; } if (((((_root.ball2_and_crate1_leftside_touching == true) and (_root.crate1_is_pushed_by_red_wall == true)) and (_root.distance_y_between_redwall_and_crate1 < ((_height / 2) + (_root.redwall._height / 2)))) and (_root.distance_y_between_ball2_and_crate1 < ((_height / 2) + (_root.ball2._height / 2)))) and (_root.redwall_movement == true)) { _root.ball2._x = (((_root.redwall._x - (_root.redwall._width / 2)) - _width) - (_root.ball2._width / 2)) - 0.5; _root.ball2_is_pushed_by_crate1_is_pushed_by_red_wall = true; } else { _root.ball2_is_pushed_by_crate1_is_pushed_by_red_wall = false; } if (((((_root.ball1_and_crate1_rightside_touching == true) and (_root.ball1_is_pushed_by_red_wall == true)) and (_root.distance_y_between_ball1_and_crate1 < ((_height / 2) + (_root.ball1._height / 2)))) and ((_root.moveleft == false) or ((_root.moveleft == true) and ((_root.cant_move_crate1_left_against_middlewall_insidetop == true) or (_root.cant_move_crate1_left_against_middlewall_insidebottom == true))))) and (_currentframe == 1)) { _root.cant_move_crate1_right_against_red_wall = false; _x = (((_root.ball1._x - (_root.ball1._width / 2)) - (_width / 2)) - 0.5); _root.crate1_is_pushed_by_ball1_is_pushed_by_redwall = true; } else { _root.crate1_is_pushed_by_ball1_is_pushed_by_redwall = false; } if ((((_root.ball2_and_crate1_rightside_touching == true) and (_root.ball2_is_pushed_by_red_wall == true)) and (_root.distance_y_between_ball2_and_crate1 < ((_height / 2) + (_root.ball2._height / 2)))) and (_root.moveleft == false)) { _x = (((_root.ball2._x - (_root.ball2._width / 2)) - (_width / 2)) - 0.5); _root.crate1_is_pushed_by_ball2_is_pushed_by_redwall = true; } else { _root.crate1_is_pushed_by_ball2_is_pushed_by_redwall = false; } if ((((_root.distance_y_between_redwall_and_crate1 < ((_height / 2) + (_root.redwall._height / 2))) and (_root.redwall_movement == true)) and (_root.difference_x_red_with_crate1_right < 1)) and (_root.difference_x_red_with_crate1_right > -3)) { _root.crate1_against_red_wall_boundaries_prevention = true; } else { _root.crate1_against_red_wall_boundaries_prevention = false; } if (((_root.distance_y_between_redwall_and_crate1 < ((_height / 2) + (_root.redwall._height / 2))) and (_root.distance_y_between_redwall_and_ball <= ((_root.ball1._height / 2) + (_root.redwall._height / 2)))) and (_root.redwall_movement == true)) { _root.crate1_against_red_wall_boundaries_prevention2 = true; } else { _root.crate1_against_red_wall_boundaries_prevention2 = false; } if (((_root.difference_x_red_with_crate1_left <= 0.3) && (_root.difference_x_red_with_crate1_left >= -8)) && (_root.distance_y_between_redwall_and_crate1 < ((_height / 2) + (_root.redwall._height / 2)))) { _root.cant_move_crate1_left_against_red_wall = true; _root.cant_move_crate1_left_against_left_wall = true; } else { _root.cant_move_crate1_left_against_red_wall = false; } if (_root.crate1_against_red_wall_boundaries_prevention == false) { if (((_root.difference_y_red_with_crate1_up <= 0.3) && (_root.difference_y_red_with_crate1_up >= -8)) && (_root.distance_x_between_redwall_and_crate1 < ((_width / 2) + (_root.redwall._width / 2)))) { _root.cant_move_crate1_up_against_red_wall = true; _root.cant_move_crate1_up_against_l3 = true; _root.cant_move_crate1_up_against_pink_wall = true; } else { _root.cant_move_crate1_up_against_red_wall = false; } if (((_root.difference_y_red_with_crate1_down <= 0.3) && (_root.difference_y_red_with_crate1_down >= -8)) && (_root.distance_x_between_redwall_and_crate1 < ((_width / 2) + (_root.redwall._width / 2)))) { _root.cant_move_crate1_down_against_l1 = true; _root.cant_move_crate1_down_against_bottom_wall = true; } else { _root.cant_move_crate1_down_against_red_wall = false; } } else if ((((_root.distance_y_between_redwall_and_crate1 < ((_height / 2) + (_root.redwall._height / 2))) && (_root.distance_y_between_ball1_and_crate1 < ((_height / 2) + (_root.ball1._height / 2)))) and (_root.difference_x_ball1_with_crate1_leftside <= 0.3)) && (_root.difference_x_ball1_with_crate1_leftside >= -8)) { _root.cant_move_crate1_down_against_red_wall = true; _root.cant_move_crate1_up_against_red_wall = true; _root.cant_move_crate1_left_against_red_wall = true; _root.cant_move_crate1_right_against_red_wall = true; } else { _root.cant_move_crate1_down_against_red_wall = false; _root.cant_move_crate1_up_against_red_wall = false; } if (((_root.redwall_movement == true) and ((((_root.difference_x_ball1_with_crate1_leftside <= 0.7) && (_root.difference_x_ball1_with_crate1_leftside >= -6)) && (_root.distance_between_leftwall_and_ball <= 0.5)) && (_root.distance_y_between_ball1_and_crate1 < ((_root.ball1._height / 2) + (_height / 2))))) or ((((_root.difference_x_ball2_with_crate1_leftside <= 0.7) && (_root.difference_x_ball2_with_crate1_leftside >= -6)) && (_root.distance_between_leftwall_and_ball2 <= 0.5)) && (_root.distance_y_between_ball2_and_crate1 < ((_root.ball2._height / 2) + (_height / 2))))) { _root.ball_location = false; _root.red_hit_left = true; _root.ball1._x = 2000; _root.ball2._x = 2000; _root.cant_move_crate1_up_against_red_wall = false; _root.cant_move_crate1_down_against_red_wall = false; } if (((_root.redwall_movement == true) and ((((_root.difference_x_ball1_with_crate1_leftside <= 0.7) && (_root.difference_x_ball1_with_crate1_leftside >= -6)) && (_root.distance_between_rightmiddlewall_and_ball <= 0.5)) && (_root.distance_y_between_ball1_and_crate1 < ((_root.ball1._height / 2) + (_height / 2))))) or ((((_root.difference_x_ball2_with_crate1_leftside <= 0.7) && (_root.difference_x_ball2_with_crate1_leftside >= -6)) && (_root.distance_between_rightmiddlewall_and_ball2 <= 0.5)) && (_root.distance_y_between_ball2_and_crate1 < ((_root.ball2._height / 2) + (_height / 2))))) { _root.ball_location = false; _root.red_hit_right = true; _root.ball1._x = 2000; _root.ball2._x = 2000; _root.cant_move_crate1_up_against_red_wall = false; _root.cant_move_crate1_down_against_red_wall = false; } if (((((_root.difference_x_crate1_leftside_with_leftwall <= 1) && (_root.difference_x_crate1_leftside_with_leftwall >= -8)) && (_root.redwall_movement == true)) && ((_root.distance_y_between_redwall_and_crate1 < ((_height / 2) + (_root.redwall._height / 2))) or ((_root.distance_y_between_redwall_and_ball < ((_root.ball1._height / 2) + (_root.redwall._height / 2))) and (_root.distance_y_between_ball1_and_crate1 < ((_height / 2) + (_root.ball1._height / 2)))))) and (((_root.crate1_is_pushed_by_red_wall == true) or (_root.crate1_is_pushed_by_ball1_is_pushed_by_redwall == true)) or (_root.crate1_is_pushed_by_ball2_is_pushed_by_redwall == true))) { _root.aqua_is_attached_to_crate1 = false; gotoAndStop (2); _root.redwall_movement = false; _root.decoy_crate.inside.gotoAndPlay(1); _root.decoy_crate._x = _x; _root.decoy_crate._y = _y; _root.decoy_crate.gotoAndStop(2); _x = 20002; } if ((((((_root.difference_x_crate1_leftside_with_middlewall <= 2) && (_root.difference_x_crate1_leftside_with_middlewall >= -8)) && (_root.redwall_movement == true)) && ((_y < 279.9) or (_y > 313.1))) && ((_root.distance_y_between_redwall_and_crate1 < ((_height / 2) + (_root.redwall._height / 2))) or ((_root.distance_y_between_redwall_and_ball < ((_root.ball1._height / 2) + (_root.redwall._height / 2))) and (_root.distance_y_between_ball1_and_crate1 < ((_height / 2) + (_root.ball1._height / 2)))))) and (((_root.crate1_is_pushed_by_red_wall == true) or (_root.crate1_is_pushed_by_ball1_is_pushed_by_redwall == true)) or (_root.crate1_is_pushed_by_ball2_is_pushed_by_redwall == true))) { _root.aqua_is_attached_to_crate1 = false; gotoAndStop (2); _root.decoy_crate.inside.gotoAndPlay(1); _root.redwall_movement = false; _root.decoy_crate._x = _x; _root.decoy_crate._y = _y; _root.decoy_crate.gotoAndStop(2); _x = 20002; } }
Instance of Symbol 677 MovieClip "ball1" in Frame 15
onClipEvent (load) { _root.hit_crate1 = false; } onClipEvent (enterFrame) { function move(xmove, ymove) { _x = (_x + xmove); _y = (_y + ymove); if (hitTest(_root.leftwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.middlewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.topwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.topwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.topwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.topwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bottomwall1)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bottomwall1.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bottomwall1.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall1.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bottomwall1.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.l1)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.l1.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.l1.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.l1.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.l1.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.l2)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.l2.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.l2.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.l2.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.l2.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.l3)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.l3.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.l3.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.l3.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.l3.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.l4)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.l4.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.l4.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.l4.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.l4.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.r1)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.r1.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.r1.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.r1.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.r1.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.pinkwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.pinkwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.pinkwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.pinkwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.pinkwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.greenwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.greenwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.greenwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.greenwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.greenwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bluewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bluewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bluewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bluewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bluewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.lgreenwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.lgreenwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.lgreenwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.lgreenwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.lgreenwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.lredwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.lredwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.lredwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.lredwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.lredwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.aquawall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.aquawall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.aquawall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.aquawall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.aquawall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.orangewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.orangewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.orangewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.orangewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.orangewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.redwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.redwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.redwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.redwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.redwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.yellowwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.yellowwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.yellowwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.yellowwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.yellowwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.crate1)) { if (_root.crate1._currentframe == 1) { _root.hit_crate1 = true; if (xmove > 0) { if ((_root.crate1_is_pushed_by_ball1_is_pushed_by_redwall == false) and (_root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall == false)) { _x = (_x - ((getBounds(_root).xMax - _root.crate1.getBounds(_root).xMin) + 0.1)); if ((((_root.cant_move_crate1_right_against_red_wall == false) and (_root.cant_move_crate1_right_against_middlewall_insidetop == false)) and (_root.cant_move_crate1_right_against_middlewall_insidebottom == false)) and (_root.cant_move_crate1_right_against_rightwall == false)) { _root.cratespeed_xright = 1; _root.crate1._x = _root.crate1._x + _root.cratespeed_xright; _root.moveright = true; } } } else { _root.moveright = false; } if (xmove < 0) { if (_root.crate1_is_pushed_by_ball1_is_pushed_by_redwall == false) { _x = (_x - ((getBounds(_root).xMin - _root.crate1.getBounds(_root).xMax) - 0.1)); if ((((_root.cant_move_crate1_left_against_red_wall == false) and (_root.cant_move_crate1_left_against_middlewall_insidebottom == false)) and (_root.cant_move_crate1_left_against_middlewall_insidetop == false)) and (_root.cant_move_crate1_left_against_leftwall == false)) { _root.cratespeed_xleft = 1; _root.crate1._x = _root.crate1._x - _root.cratespeed_xleft; _root.moveleft = true; } } } else { _root.moveleft = false; } if (ymove > 0) { if ((((_root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall == false) && (_root.crate1_is_pushed_by_ball1_is_pushed_by_redwall == false)) and (_root.difference_x_ball1_with_crate1_leftside <= -1)) and (_root.difference_x_ball1_with_crate1_rightside <= -1)) { _y = (_y - ((getBounds(_root).yMax - _root.crate1.getBounds(_root).yMin) + 0.1)); if (((_root.cant_move_crate1_down_against_red_wall == false) and (_root.cant_move_crate1_down_against_bottomwall == false)) and (_root.cant_move_crate1_down_against_middlewall_insidebottom == false)) { _root.cratespeed_ydown = 1; _root.crate1._y = _root.crate1._y + _root.cratespeed_ydown; _root.movedown = true; } } } else { _root.movedown = false; } if (ymove < 0) { if ((((_root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall == false) && (_root.crate1_is_pushed_by_ball1_is_pushed_by_redwall == false)) and (_root.difference_x_ball1_with_crate1_leftside <= -1)) and (_root.difference_x_ball1_with_crate1_rightside <= -1)) { _y = (_y - ((getBounds(_root).yMin - _root.crate1.getBounds(_root).yMax) - 0.1)); if (((_root.cant_move_crate1_up_against_red_wall == false) and (_root.cant_move_crate1_up_against_aquawall == false)) and (_root.cant_move_crate1_up_against_middlewall_insidetop == false)) { _root.cratespeed_yup = 1; _root.crate1._y = _root.crate1._y - _root.cratespeed_yup; _root.moveup = true; } } } else { _root.moveup = false; } } } } if ((((!Key.isDown(37)) and (!Key.isDown(39))) and (!Key.isDown(38))) and (!Key.isDown(40))) { _root.moveup = false; _root.movedown = false; _root.moveright = false; _root.moveleft = false; move(0, 0); _root.hit_crate1 = false; } if (_root.ball_movement == true) { if (Key.isDown(37)) { move(-5, 0); } if (Key.isDown(39)) { if (_root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall == false) { move(5, 0); } } if (Key.isDown(38)) { move(0, -5); } if (Key.isDown(40)) { move(0, 5); } } }
Frame 16
function restartLevel() { _root.scoresubmit16 = savefile.data.scoresubmit16; savefile.flush(); soundstart = false; small = false; if ((((((((((((((var17 != true) and (var18 != true)) and (var19 != true)) and (var20 != true)) and (var21 != true)) and (var22 != true)) and (var23 != true)) and (var24 != true)) and (var25 != true)) and (var26 != true)) and (var27 != true)) and (var28 != true)) and (var29 != true)) and (var30 != true)) { var16 = true; } var15 = false; if (_root.var1) { _root.score = 1; } else if (_root.var2) { _root.score = 2; } else if (_root.var3) { _root.score = 3; } else if (_root.var4) { _root.score = 4; } else if (_root.var5) { _root.score = 5; } else if (_root.var6) { _root.score = 6; } else if (_root.var71) { _root.score = 7; } else if (_root.var8) { _root.score = 8; } else if (_root.var9) { _root.score = 9; } else if (_root.var10) { _root.score = 10; } else if (_root.var11) { _root.score = 11; } else if (_root.var12) { _root.score = 12; } else if (_root.var13) { _root.score = 13; } else if (_root.var14) { _root.score = 14; } else if (_root.var15) { _root.score = 15; } else if (_root.var16) { _root.score = 16; } else if (_root.var17) { _root.score = 17; } else if (_root.var18) { _root.score = 18; } else if (_root.var19) { _root.score = 19; } else if (_root.var20) { _root.score = 20; } else if (_root.var21) { _root.score = 21; } else if (_root.var22) { _root.score = 22; } else if (_root.var23) { _root.score = 23; } else if (_root.var24) { _root.score = 24; } else if (_root.var25) { _root.score = 25; } else if (_root.var26) { _root.score = 26; } else if (_root.var27) { _root.score = 27; } else if (_root.var28) { _root.score = 28; } else if (_root.var29) { _root.score = 29; } else if (_root.var30) { _root.score = 30; } savefile.data.score = _root.score; savefile.flush(); radius = ball1._height / 2; SPACE_possible = true; greenwall_movement = false; pinkwall_movement = false; orangewall_movement = false; bluewall2_movement = false; ball_location = true; black_is_hit_green_right = false; black_is_hit_green_left = false; gray_is_hit_green_right = false; gray_is_hit_green_left = false; green_hit_right = false; green_hit_left = false; ball1_is_pushed_by_green_wall = false; ball2_is_pushed_by_green_wall = false; blue_is_attached_to_crate2 = true; orange_is_attached_to_crate1 = true; small = false; _root.decoy2.gotoAndStop(1); _root.decoy.gotoAndStop(1); _root.ball1.gotoAndStop(1); _root.ball1.gotoAndStop(1); _root.ball2.gotoAndStop(1); _root.ball2.gotoAndStop(1); _root.crate1.gotoAndStop(1); _root.crate2.gotoAndStop(1); decoy._x = -1000; decoy2._x = -1000; ball_movement = true; finisher = false; _root.cant_move_crate1_right_against_middle_wall = false; _root.hit_crate1 = false; _root.ball1_and_crate1_rightside_touching = false; _root.ball1_and_crate1_leftside_touching = false; _root.ball2_and_crate1_rightside_touching = false; _root.ball2_and_crate1_leftside_touching = false; _root.cant_move_crate1_right_against_right_wall = false; _root.cant_move_crate1_left_against_left_wall = false; _root.cant_move_crate1_left_against_middle_wall = false; _root.cant_move_crate1_right_against_green_wall = false; _root.cant_move_crate1_left_against_green_wall = false; _root.cant_move_crate1_down_against_green_wall = false; _root.cant_move_crate1_up_against_green_wall = false; _root.cant_move_crate1_up_against_bluewall2 = false; _root.cant_move_crate1_up_against_orange_wall = false; _root.cant_move_crate1_up_against_middlewall_insidetop = false; _root.cant_move_crate1_down_against_middlewall_insidebottom = false; _root.green_wall_and_crate1_rightside_touching = false; _root.crate1_against_green_wall_boundaries_prevention = false; _root.ball1_is_pushed_by_crate1_is_pushed_by_green_wall = false; _root.ball2_is_pushed_by_crate1_is_pushed_by_green_wall = false; _root.crate1_is_pushed_by_ball1_is_pushed_by_greenwall = false; _root.crate1_is_pushed_by_ball2_is_pushed_by_greenwall = false; _root.crate1_is_pushed_by_green_wall = false; timing = true; elapsedTime = 0; startTime = getTimer(); seconds = 0; crate1._x = 505; crate1._y = 431.1; crate2._x = 132.6; crate2._y = 107.8; crate3._x = 566.5; crate3._y = 118.6; crate4._x = 525; crate4._y = 145.6; dotty._x = 525; dotty._y = 145.6; crate5._x = 534; crate5._y = 77; greenkey._x = 244.4; greenkey._y = 431.4; orangekey._x = 439.3; orangekey._y = 435; pinkkey._x = 582; pinkkey._y = 78.3; pinkwall._x = 256.9; pinkwall._y = 107.8; bluekey._y = 149.5; bluekey._x = 102.7; bluewall2._x = 274.9; bluewall2._y = 309.3; orangewall._x = 500; orangewall._y = 324.7; smallkey._x = 505; smallkey._y = 375; ball1._x = 128.1; ball1._y = 478.9; ball2._x = 574.3; ball2._y = 478.9; greenwall._x = 729.1; greenwall._y = 431.4; youwin._x = 10000; winningscreen._x = 1000; finish._x = 134.5; finish._y = 309.9; decoy._width = 32; decoy._height = 32; decoy2._width = 32; decoy2._height = 32; } function ball1_old_location() { x_location = ball1._x; y_location = ball1._y; } function ball_locator() { ball_location = true; if (black_is_hit_green_left == true) { ball1._x = 2000; ball2._x = 2000; if (small) { decoy._height = 16; decoy._width = 16; } if (small) { decoy2._height = 16; decoy2._width = 16; } decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy.gotoAndStop(2); _root.decoy2.gotoAndStop(3); } if (gray_is_hit_green_left == true) { ball1._x = 2000; ball2._x = 2000; if (small) { decoy._height = 16; decoy._width = 16; } if (small) { decoy2._height = 16; decoy2._width = 16; } decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); } if (black_is_hit_green_right == true) { ball1._x = 2000; ball2._x = 2000; if (small) { decoy._height = 16; decoy._width = 16; } if (small) { decoy2._height = 16; decoy2._width = 16; } decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy.gotoAndStop(2); _root.decoy2.gotoAndStop(3); } if (gray_is_hit_green_right == true) { if (small) { decoy._height = 16; decoy._width = 16; } if (small) { decoy2._height = 16; decoy2._width = 16; } ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); } } stop(); _root.options._x = 28.1; _root.restartbutton._x = 41.9; _root.QW._x = 73.8; _root.P._x = 55.6; _root.BN._x = 66; totalRestarts = 0; _root.option.hintbox.gotoAndStop(1); _root.option.meter.gotoAndStop(16); restartLevel(); youwin.onPress = function () { gotoAndStop ("l19"); }; ball1.onEnterFrame = function () { if (this.hitTest(orangekey)) { keystart = true; _root.ball1.scan.gotoAndStop(6); orangekey._x = 100000 /* 0x0186A0 */; orangewall_movement = true; } if (this.hitTest(pinkkey)) { keystart = true; pinkkey._x = 100000 /* 0x0186A0 */; pinkwall_movement = true; _root.ball1.scan.gotoAndStop(5); } if (this.hitTest(greenkey)) { keystart = true; greenkey._x = 100000 /* 0x0186A0 */; greenwall_movement = true; _root.ball1.scan.gotoAndStop(2); } if (_root.crate2._x == 20000) { blue_is_attached_to_crate2 = false; } if (this.hitTest(bluekey)) { keystart = true; _root.ball1.scan.gotoAndStop(4); _root.ball1.scan.bluemove.gotoAndPlay(1); bluekey._x = 100000 /* 0x0186A0 */; bluewall2_movement = true; } if (this.hitTest(smallkey)) { smallstart = true; smallkey._x = 100000 /* 0x0186A0 */; this.gotoAndStop(2); ball2.gotoAndStop(2); small = true; } if (scoresubmit16) { scoresubmit = false; } else if (scoresubmit16 == false) { scoresubmit = true; } if (this.hitTest(finish)) { timing = false; seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if ((score == 16) or scoresubmit) { level16_best_time = seconds; scoresubmit16 = true; savefile.data.scoresubmit16 = _root.scoresubmit16; savefile.flush(); } if (seconds < level16_best_time) { level16_best_time = seconds; } savefile.data.level16_best_time = _root.level16_best_time; savefile.flush(); if (_root.score <= 17) { _root.score = 17; } savefile.data.score = _root.score; savefile.flush(); SPACE_possible = false; ball_movement = false; win._x = Stage.width / 2; win._y = Stage.height / 2; _root.win.instructions.gotoAndStop(16); _root.win.meter.gotoAndStop(17); } if (Key.isDown(32) && (SPACE_possible == false)) { finisher = true; } if (finisher) { if (!Key.isDown(32)) { win._x = 10000; gotoAndStop ("l19"); finisher = false; SPACE_possible = true; } } }; _root.onEnterFrame = function () { seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if (!ball_movement) { timing = false; startTime = getTimer() - elapsedTime; } else { timing = true; } if (timing) { elapsedTime = getTimer() - startTime; } if (var16) { w_works = false; } else { w_works = true; } if (((option._x != (Stage.width / 2)) and (instruction._x != (Stage.width / 2))) and (win._x != (Stage.width / 2))) { if (Key.isDown(81)) { q_is_DOWN = true; } if (q_is_DOWN) { if (!Key.isDown(81)) { gotoAndStop ("l16"); q_is_DOWN = false; } } if (Key.isDown(87)) { w_is_DOWN = true; } if (w_is_DOWN) { if (!Key.isDown(87)) { if (w_works) { gotoAndStop ("l19"); } w_is_DOWN = false; } } ballalpha = ball1._alpha; ballx = ball1._x; bally = ball1._y; decoyx = decoy._x; decoyframe = decoy._currentframe; orangekey._width = 23; orangekey._height = 20; bluekey._width = 23; bluekey._height = 20; orangekeyx = orangekey._x; orangekeyy = orangekey._y; decoy_cratex = decoy_crate._x; if (Key.isDown(78)) { n_is_DOWN = true; } if (n_is_DOWN) { if (!Key.isDown(78)) { if (ball_movement) { restartLevel(); totalRestarts = totalRestarts + 1; n_is_DOWN = false; } } } if (Key.isDown(66)) { b_is_DOWN = true; } if (b_is_DOWN) { if (!Key.isDown(66)) { if (ball_movement) { restartLevel(); totalRestarts = totalRestarts + 1; b_is_DOWN = false; } } } if (SPACE_possible) { if (Key.isDown(32)) { SPACE_is_DOWN = true; } if (SPACE_is_DOWN) { if (!Key.isDown(32)) { ball1_old_location(); ball1._x = ball2._x; ball1._y = ball2._y; ball2._x = x_location; ball2._y = y_location; SPACE_is_DOWN = false; } } } } if (orange_is_attached_to_crate1 == true) { orangekey._x = crate1._x; orangekey._y = crate1._y; } if (blue_is_attached_to_crate2 == true) { bluekey._x = crate2._x; bluekey._y = crate2._y; } ballx = ball1._x; bally = ball1._y; if (greenwall_movement) { greenwall._x = greenwall._x - 1; } if (greenwall._x < 420.9) { soundstart = true; greenwall_movement = false; greenwall._x = 420.9; } if (pinkwall_movement) { pinkwall._x = pinkwall._x - 0.5; } if (pinkwall._x < 201.6) { pinkwall_movement = false; } if (orangewall_movement) { orangewall._x = orangewall._x + 2; } if (orangewall._x > 700) { orangewall_movement = false; } if (bluewall2_movement) { bluewall2._x = bluewall2._x + 2; blue_transparent._x = blue_transparent._x + 2; bluewall1._x = bluewall1._x + 2; bluewall._x = bluewall._x + 2; } if (bluewall2._x > 372.6) { soundstart = true; bluewall2_movement = false; bluewall2._x = 372.6; } differencegreen = ((greenwall._x - (greenwall._width / 2)) - (ball1._width / 2)) - ball1._x; differencegreen2 = ((greenwall._x - (greenwall._width / 2)) - (ball2._width / 2)) - ball2._x; distance_between_rightmiddlewall_and_ball = Math.abs(((ball1._x - middlewall._x) - (middlewall._width / 2)) - (ball1._width / 2)); distance_between_rightmiddlewall_and_ball2 = Math.abs(((ball2._x - middlewall._x) - (middlewall._width / 2)) - (ball2._width / 2)); distance_between_lb_and_ball = Math.abs(((ball1._x - lb._x) - (lb._width / 2)) - (ball1._width / 2)); distance_between_lb_and_ball2 = Math.abs(((ball2._x - lb._x) - (lb._width / 2)) - (ball2._width / 2)); distance_y_between_greenwall_and_ball = Math.abs(greenwall._y - ball1._y); distance_y_between_greenwall_and_ball2 = Math.abs(greenwall._y - ball2._y); if ((((greenwall_movement == true) and (differencegreen <= 0.2)) and (differencegreen >= -8)) and (distance_y_between_greenwall_and_ball < ((ball1._height / 2) + (greenwall._height / 2)))) { ball1._x = ((greenwall._x - (greenwall._width / 2)) - (ball1._width / 2)) - 0.2; ball1_is_pushed_by_green_wall = true; } else { ball1_is_pushed_by_green_wall = false; } if ((((greenwall_movement == true) and (differencegreen2 <= 0.2)) and (differencegreen2 >= -8)) and (distance_y_between_greenwall_and_ball2 < ((ball2._height / 2) + (greenwall._height / 2)))) { ball2._x = ((greenwall._x - (greenwall._width / 2)) - (ball2._width / 2)) - 0.2; ball2_is_pushed_by_green_wall = true; } else { ball2_is_pushed_by_green_wall = false; } if ((((differencegreen <= 0.5) && (distance_between_rightmiddlewall_and_ball <= 0.5)) && (distance_y_between_greenwall_and_ball < ((ball1._height / 2) + (greenwall._height / 2)))) or (((differencegreen2 <= 0.5) && (distance_between_rightmiddlewall_and_ball2 <= 0.5)) && (distance_y_between_greenwall_and_ball2 < ((ball2._height / 2) + (greenwall._height / 2))))) { green_hit_right = true; cant_move_crate1_up_against_green_wall = false; cant_move_crate1_down_against_green_wall = false; ball_location = false; ball1._x = 2000; ball2._x = 2000; } if ((((differencegreen <= 0.5) && (distance_between_lb_and_ball <= 0.5)) && (distance_y_between_greenwall_and_ball < ((ball1._height / 2) + (greenwall._height / 2)))) or (((differencegreen2 <= 0.5) && (distance_between_lb_and_ball2 <= 0.5)) && (distance_y_between_greenwall_and_ball2 < ((ball2._height / 2) + (greenwall._height / 2))))) { green_hit_left = true; cant_move_crate1_up_against_green_wall = false; cant_move_crate1_down_against_green_wall = false; ball_location = false; ball1._x = 2000; ball2._x = 2000; } if ((((((ball1._y > Stage.height) and (ball1._y < 1000)) or ((ball1._y < 0) and (ball1._y > -1000))) or ((ball1._x > Stage.width) and (ball1._x < 1000))) or ((ball1._x < 0) and (ball1._x > -1000))) and (greenwall._x >= ((Stage.width / 2) + (greenwall._width / 2)))) { ball_location = false; cant_move_crate1_up_against_green_wall = false; cant_move_crate1_down_against_green_wall = false; green_hit_right = true; } if ((((((ball1._y > Stage.height) and (ball1._y < 1000)) or ((ball1._y < 0) and (ball1._y > -1000))) or ((ball1._x > Stage.width) and (ball1._x < 1000))) or ((ball1._x < 0) and (ball1._x > -1000))) and (greenwall._x <= ((Stage.width / 2) + (greenwall._width / 2)))) { ball_location = false; green_hit_left = true; } if (ball_location) { ball1_xlocation = ball1._x; ball1_ylocation = ball1._y; ball2_xlocation = ball2._x; ball2_ylocation = ball2._y; } else { explosionsound2 = true; if (ball1_xlocation < (Stage.width / 2)) { if (green_hit_left == true) { black_is_hit_green_left = true; } if (green_hit_right == true) { gray_is_hit_green_right = true; } } else if (ball1_xlocation > (Stage.width / 2)) { if (green_hit_right == true) { black_is_hit_green_right = true; } if (green_hit_left == true) { gray_is_hit_green_left = true; } } ball_locator(); } };
Instance of Symbol 1071 MovieClip "crate2" in Frame 16
onClipEvent (load) { _root.crate_smoosh = false; } onClipEvent (enterFrame) { if (_root.pinkwall._x <= 252.7) { _x = (_x - 0.5); } if (_x <= 118.1) { _root.blue_is_attached_to_crate2 = false; _root.crate_smoosh = true; _x = 20000; _root.decoy_crate._x = 118.1; _root.decoy_crate._y = 107.8; _root.decoy_crate.inside.gotoAndPlay(1); _root.pinkwall_movement = false; } }
Instance of Symbol 1071 MovieClip "crate1" in Frame 16
onClipEvent (load) { _root.cant_move_crate1_right_against_middle_wall = false; _root.hit_crate1 = false; _root.ball1_and_crate1_rightside_touching = false; _root.ball1_and_crate1_leftside_touching = false; _root.ball2_and_crate1_rightside_touching = false; _root.ball2_and_crate1_leftside_touching = false; _root.cant_move_crate1_right_against_right_wall = false; _root.cant_move_crate1_left_against_left_wall = false; _root.cant_move_crate1_left_against_middle_wall = false; _root.cant_move_crate1_right_against_green_wall = false; _root.cant_move_crate1_left_against_green_wall = false; _root.cant_move_crate1_down_against_green_wall = false; _root.cant_move_crate1_up_against_green_wall = false; _root.cant_move_crate1_up_against_bluewall2 = false; _root.cant_move_crate1_up_against_orange_wall = false; _root.cant_move_crate1_up_against_middlewall_insidetop = false; _root.cant_move_crate1_down_against_middlewall_insidebottom = false; _root.green_wall_and_crate1_rightside_touching = false; _root.crate1_against_green_wall_boundaries_prevention = false; _root.ball1_is_pushed_by_crate1_is_pushed_by_green_wall = false; _root.ball2_is_pushed_by_crate1_is_pushed_by_green_wall = false; _root.crate1_is_pushed_by_ball1_is_pushed_by_greenwall = false; _root.crate1_is_pushed_by_ball2_is_pushed_by_greenwall = false; _root.crate1_is_pushed_by_green_wall = false; } onClipEvent (enterFrame) { _root.distance_y_between_ball1_and_crate1 = Math.abs(_root.ball1._y - _y); _root.difference_x_ball1_with_crate1_rightside = ((_root.ball1._x - _x) - (_width / 2)) - (_root.ball1._width / 2); _root.difference_x_ball1_with_crate1_leftside = ((_x - _root.ball1._x) - (_width / 2)) - (_root.ball1._width / 2); _root.distance_y_between_ball2_and_crate1 = Math.abs(_root.ball2._y - _y); _root.difference_x_ball2_with_crate1_rightside = ((_root.ball2._x - _x) - (_width / 2)) - (_root.ball2._width / 2); _root.difference_x_ball2_with_crate1_leftside = ((_x - _root.ball2._x) - (_width / 2)) - (_root.ball2._width / 2); _root.difference_x_green_with_crate1_left = ((_x - (_width / 2)) - _root.greenwall._x) - (_root.greenwall._width / 2); _root.difference_x_green_with_crate1_right = ((_root.greenwall._x - (_root.greenwall._width / 2)) - _x) - (_width / 2); _root.difference_y_green_with_crate1_up = ((_y - (_height / 2)) - _root.greenwall._y) - (_root.greenwall._height / 2); _root.difference_y_green_with_crate1_down = ((_root.greenwall._y - (_root.greenwall._height / 2)) - _y) - (_height / 2); _root.distance_x_between_greenwall_and_crate1 = Math.abs(_root.greenwall._x - _x); _root.distance_y_between_greenwall_and_crate1 = Math.abs(_root.greenwall._y - _y); _root.difference_x_crate1_leftside_with_lb = ((_x - (_width / 2)) - (_root.lb._width / 2)) - _root.lb._x; _root.difference_x_crate1_leftside_with_bluewall2 = ((_x - (_width / 2)) - (_root.bluewall2._width / 2)) - _root.bluewall2._x; _root.distance_x_between_middlewall_and_crate1 = Math.abs(_root.middlewall._x - _x); _root.difference_y_middlewall_insidebottom_with_crate1_down = ((423.8 - (_root.middlewall.middlewall_insidebottom._height / 2)) - (_height / 2)) - _y; _root.difference_y_middlewall_insidetop_with_crate1_up = ((_y - 125.8) - (_root.middlewall.middlewall_insidetop._height / 2)) - (_height / 2); if (_x < (Stage.width / 2)) { if (hitTest(_root.middlewall.middlewall_insidetop) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.middlewall_insidetop.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate1_right_against_middle_wall = true; } if (hitTest(_root.middlewall.middlewall_insidebottom) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.middlewall_insidebottom.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate1_right_against_middle_wall = true; } if (((((_root.middlewall._x - (_root.middlewall._width / 2)) - (_width / 2)) - _x) <= 0.3) and ((_y > (343.7 - (_height / 2))) or (_y < (205.9 + (_height / 2))))) { _root.cant_move_crate1_right_against_middle_wall = true; _root.cant_move_crate1_right_against_orange_wall = true; _root.cant_move_crate1_right_against_green_wall = true; _root.cant_move_crate1_right_against_right_wall = true; } else { _root.cant_move_crate1_right_against_middle_wall = false; } } else { if (hitTest(_root.middlewall.middlewall_insidetop) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.middlewall_insidetop.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate1_left_against_middle_wall = true; } if (hitTest(_root.middlewall.middlewall_insidebottom) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.middlewall_insidebottom.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate1_left_against_middle_wall = true; } if (((((_x - _root.middlewall._x) - (_root.middlewall._width / 2)) - (_width / 2)) <= 0.3) and ((_y > (343.7 - (_height / 2))) or (_y < (205.9 + (_height / 2))))) { _root.cant_move_crate1_left_against_middle_wall = true; _root.cant_move_crate1_left_against_orange_wall = true; _root.cant_move_crate1_left_against_green_wall = true; _root.cant_move_crate1_left_against_left_wall = true; } else { _root.cant_move_crate1_left_against_middle_wall = false; } } if (hitTest(_root.leftwall)) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate1_left_against_left_wall = true; } if ((((_x - _root.leftwall._x) - (_root.leftwall._width / 2)) - (_width / 2)) <= 0.3) { _root.cant_move_crate1_left_against_left_wall = true; _root.cant_move_crate1_left_against_orange_wall = true; _root.cant_move_crate1_left_against_green_wall = true; _root.cant_move_crate1_left_against_middle_wall = true; } else { _root.cant_move_crate1_left_against_left_wall = false; } if (hitTest(_root.rightwall)) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate1_right_against_right_wall = true; } if ((((_root.rightwall._x - _x) - (_root.rightwall._width / 2)) - (_width / 2)) <= 0.3) { _root.cant_move_crate1_right_against_right_wall = true; _root.cant_move_crate1_right_against_orange_wall = true; _root.cant_move_crate1_right_against_green_wall = true; _root.cant_move_crate1_right_against_middle_wall = true; } else { _root.cant_move_crate1_right_against_right_wall = false; } if (hitTest(_root.orangewall)) { _y = (_y - ((getBounds(_root).yMin - _root.orangewall.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate1_up_against_orange_wall = true; } if ((((_y - _root.orangewall._y) - (_root.orangewall._height / 2)) - (_height / 2)) <= 0.3) { _root.cant_move_crate1_up_against_orange_wall = true; _root.cant_move_crate1_up_against_top_wall = true; _root.cant_move_crate1_up_against_green_wall = true; } else { _root.cant_move_crate1_up_against_orange_wall = false; } if (hitTest(_root.bluewall2)) { _y = (_y - ((getBounds(_root).yMin - _root.bluewall2.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate1_up_against_bluewall2 = true; } if ((((_y - _root.bluewall2._y) - (_root.bluewall2._height / 2)) - (_height / 2)) <= 0.3) { _root.cant_move_crate1_up_against_bluewall2 = true; _root.cant_move_crate1_up_against_green_wall = true; } else { _root.cant_move_crate1_up_against_bluewall2 = false; } if (hitTest(_root.bottomwall)) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate1_down_against_bottom_wall = true; } if ((((_root.bottomwall._y - _y) - (_root.bottomwall._height / 2)) - (_height / 2)) <= 0.3) { _root.cant_move_crate1_down_against_bottom_wall = true; _root.cant_move_crate1_down_against_orange_wall = true; _root.cant_move_crate1_down_against_green_wall = true; } else { _root.cant_move_crate1_down_against_bottom_wall = false; } if (hitTest(_root.middlewall.middlewall_insidetop) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall.middlewall_insidetop.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate1_up_against_middlewall_insidetop = true; } if (((_root.difference_y_middlewall_insidetop_with_crate1_up <= 0.3) && (_root.difference_y_middlewall_insidetop_with_crate1_up >= -8)) && (_root.distance_x_between_middlewall_and_crate1 < ((_width / 2) + (_root.middlewall._width / 2)))) { _root.cant_move_crate1_up_against_middlewall_insidetop = true; _root.cant_move_crate1_up_against_orange_wall = true; _root.cant_move_crate1_up_against_green_wall = true; _root.cant_move_crate1_up_against_top_wall = true; } else { _root.cant_move_crate1_up_against_middlewall_insidetop = false; } if (hitTest(_root.middlewall.middlewall_insidebottom) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall.middlewall_insidebottom.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate1_down_against_middlewall_insidebottom = true; } if (((_root.difference_y_middlewall_insidebottom_with_crate1_down <= 0.3) && (_root.difference_y_middlewall_insidebottom_with_crate1_down >= -8)) && (_root.distance_x_between_middlewall_and_crate1 < ((_width / 2) + (_root.middlewall._width / 2)))) { _root.pork = true; _root.cant_move_crate1_down_against_middlewall_insidebottom = true; _root.cant_move_crate1_down_against_orange_wall = true; _root.cant_move_crate1_down_against_green_wall = true; _root.cant_move_crate1_down_against_bottom_wall = true; } else { _root.cant_move_crate1_down_against_middlewall_insidebottom = false; _root.pork = false; } if (hitTest(_root.greenwall)) { _root.greenwall_crate1_hit = true; if ((_root.hit_crate1 == true) and (_root.moveright == true)) { if ((_root.crate1_against_green_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate1_is_pushed_by_green_wall == false)) { _x = (_x - ((getBounds(_root).xMax - _root.greenwall.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate1_right_against_green_wall = true; } } if ((_root.hit_crate1 == true) and (_root.moveleft == true)) { if ((_root.crate1_against_green_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate1_is_pushed_by_green_wall == false)) { _x = (_x - ((getBounds(_root).xMin - _root.greenwall.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate1_left_against_green_wall = true; } } if ((_root.hit_crate1 == true) and (_root.movedown == true)) { if (((_root.green_hit_right == false) and (_root.crate1_against_green_wall_boundaries_prevention == false)) and (_root.ball1_is_pushed_by_crate1_is_pushed_by_green_wall == false)) { _y = (_y - ((getBounds(_root).yMax - _root.greenwall.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate1_down_against_green_wall = true; } } if ((_root.hit_crate1 == true) and (_root.moveup == true)) { if (((_root.green_hit_right == false) and (_root.crate1_against_green_wall_boundaries_prevention == false)) and (_root.ball1_is_pushed_by_crate1_is_pushed_by_green_wall == false)) { _y = (_y - ((getBounds(_root).yMin - _root.greenwall.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate1_up_against_green_wall = true; } } } else { _root.greenwall_crate1_hit = false; } if (((_root.difference_x_green_with_crate1_right <= 0.3) && (_root.difference_x_green_with_crate1_right >= -8)) && (_root.distance_y_between_greenwall_and_crate1 < ((_height / 2) + (_root.greenwall._height / 2)))) { _root.cant_move_crate1_right_against_green_wall = true; _root.cant_move_crate1_right_against_middle_wall = true; _root.cant_move_crate1_right_against_orange_wall = true; _root.cant_move_crate1_right_against_right_wall = true; _root.green_wall_and_crate1_rightside_touching = true; } else { _root.cant_move_crate1_right_against_green_wall = false; _root.green_wall_and_crate1_rightside_touching = false; } if ((((_root.greenwall_movement == true) and (_root.green_wall_and_crate1_rightside_touching == true)) and (_root.distance_y_between_greenwall_and_crate1 < ((_height / 2) + (_root.greenwall._height / 2)))) and (_currentframe == 1)) { _x = (((_root.greenwall._x - (_root.greenwall._width / 2)) - (_width / 2)) - 0.7); _root.crate1_is_pushed_by_green_wall = true; } if (((_root.difference_x_ball1_with_crate1_leftside <= 0.3) && (_root.difference_x_ball1_with_crate1_leftside >= -8)) && (_root.distance_y_between_ball1_and_crate1 < ((_height / 2) + (_root.ball1._height / 2)))) { _root.ball1_and_crate1_leftside_touching = true; } else { _root.ball1_and_crate1_leftside_touching = false; } if (((_root.difference_x_ball2_with_crate1_leftside <= 0.3) && (_root.difference_x_ball2_with_crate1_leftside >= -8)) && (_root.distance_y_between_ball2_and_crate1 < ((_height / 2) + (_root.ball2._height / 2)))) { _root.ball2_and_crate1_leftside_touching = true; } else { _root.ball2_and_crate1_leftside_touching = false; } if (((((_root.ball1_and_crate1_leftside_touching == true) and (_root.crate1_is_pushed_by_green_wall == true)) and (_root.distance_y_between_greenwall_and_crate1 < ((_height / 2) + (_root.greenwall._height / 2)))) and (_root.distance_y_between_ball1_and_crate1 < ((_height / 2) + (_root.ball1._height / 2)))) and (_root.greenwall_movement == true)) { _root.ball1._x = (((_root.greenwall._x - (_root.greenwall._width / 2)) - _width) - (_root.ball1._width / 2)) - 0.5; _root.ball1_is_pushed_by_crate1_is_pushed_by_green_wall = true; } else { _root.ball1_is_pushed_by_crate1_is_pushed_by_green_wall = false; } if (((((_root.ball2_and_crate1_leftside_touching == true) and (_root.crate1_is_pushed_by_green_wall == true)) and (_root.distance_y_between_greenwall_and_crate1 < ((_height / 2) + (_root.greenwall._height / 2)))) and (_root.distance_y_between_ball2_and_crate1 < ((_height / 2) + (_root.ball2._height / 2)))) and (_root.greenwall_movement == true)) { _root.ball2._x = (((_root.greenwall._x - (_root.greenwall._width / 2)) - _width) - (_root.ball2._width / 2)) - 0.5; _root.ball2_is_pushed_by_crate1_is_pushed_by_green_wall = true; } else { _root.ball2_is_pushed_by_crate1_is_pushed_by_green_wall = false; } if (((((_root.ball1_and_crate1_rightside_touching == true) and (_root.ball1_is_pushed_by_green_wall == true)) and (_root.distance_y_between_ball1_and_crate1 < ((_height / 2) + (_root.ball1._height / 2)))) and (_root.moveleft == false)) and (_currentframe == 1)) { _root.cant_move_crate1_right_against_green_wall = false; _x = (((_root.ball1._x - (_root.ball1._width / 2)) - (_width / 2)) - 0.5); _root.crate1_is_pushed_by_ball1_is_pushed_by_greenwall = true; } else { _root.crate1_is_pushed_by_ball1_is_pushed_by_greenwall = false; } if ((((_root.ball2_and_crate1_rightside_touching == true) and (_root.ball2_is_pushed_by_green_wall == true)) and (_root.distance_y_between_ball2_and_crate1 < ((_height / 2) + (_root.ball2._height / 2)))) and (_root.moveleft == false)) { _x = (((_root.ball2._x - (_root.ball2._width / 2)) - (_width / 2)) - 0.5); _root.crate1_is_pushed_by_ball2_is_pushed_by_greenwall = true; } else { _root.crate1_is_pushed_by_ball2_is_pushed_by_greenwall = false; } if ((_root.distance_y_between_greenwall_and_crate1 < ((_height / 2) + (_root.greenwall._height / 2))) and (_root.greenwall_movement == true)) { _root.crate1_against_green_wall_boundaries_prevention = true; } else { _root.crate1_against_green_wall_boundaries_prevention = false; } if (((_root.distance_y_between_greenwall_and_crate1 < ((_height / 2) + (_root.greenwall._height / 2))) and (_root.distance_y_between_greenwall_and_ball <= ((_root.ball1._height / 2) + (_root.greenwall._height / 2)))) and (_root.greenwall_movement == true)) { _root.crate1_against_green_wall_boundaries_prevention2 = true; } else { _root.crate1_against_green_wall_boundaries_prevention2 = false; } if (((_root.difference_x_green_with_crate1_left <= 0.3) && (_root.difference_x_green_with_crate1_left >= -8)) && (_root.distance_y_between_greenwall_and_crate1 < ((_height / 2) + (_root.greenwall._height / 2)))) { _root.cant_move_crate1_left_against_green_wall = true; _root.cant_move_crate1_left_against_middlewall = true; _root.cant_move_crate1_left_against_orange_wall = true; _root.cant_move_crate1_left_against_left_wall = true; } else { _root.cant_move_crate1_left_against_green_wall = false; } if (_root.crate1_against_green_wall_boundaries_prevention == false) { if (((_root.difference_y_green_with_crate1_up <= 0.3) && (_root.difference_y_green_with_crate1_up >= -8)) && (_root.distance_x_between_greenwall_and_crate1 < ((_width / 2) + (_root.greenwall._width / 2)))) { _root.cant_move_crate1_up_against_green_wall = true; _root.cant_move_crate1_up_against_top_wall = true; _root.cant_move_crate1_up_against_orange_wall = true; _root.cant_move_crate1_up_against_middlewall_insidetop = true; } else { _root.cant_move_crate1_up_against_green_wall = false; } if (((_root.difference_y_green_with_crate1_down <= 0.3) && (_root.difference_y_green_with_crate1_down >= -8)) && (_root.distance_x_between_greenwall_and_crate1 < ((_width / 2) + (_root.greenwall._width / 2)))) { _root.cant_move_crate1_down_against_green_wall = true; _root.cant_move_crate1_down_against_bottom_wall = true; _root.cant_move_crate1_down_against_orange_wall = true; _root.cant_move_crate1_down_against_middlewall_insidebottom = true; } else { _root.cant_move_crate1_down_against_green_wall = false; } } else if ((((_root.distance_y_between_greenwall_and_crate1 < ((_height / 2) + (_root.greenwall._height / 2))) && (_root.distance_y_between_ball1_and_crate1 < ((_height / 2) + (_root.ball1._height / 2)))) and (_root.difference_x_ball1_with_crate1_leftside <= 0.3)) && (_root.difference_x_ball1_with_crate1_leftside >= -8)) { _root.cant_move_crate1_down_against_green_wall = true; _root.cant_move_crate1_up_against_green_wall = true; _root.cant_move_crate1_left_against_green_wall = true; _root.cant_move_crate1_right_against_green_wall = true; } else { _root.cant_move_crate1_down_against_green_wall = false; _root.cant_move_crate1_up_against_green_wall = false; } if (((_root.greenwall_movement == true) and ((((_root.difference_x_ball1_with_crate1_leftside <= 0.7) && (_root.difference_x_ball1_with_crate1_leftside >= -6)) && (_root.distance_between_rightmiddlewall_and_ball <= 0.5)) && (_root.distance_y_between_ball1_and_crate1 < ((_root.ball1._height / 2) + (_height / 2))))) or ((((_root.difference_x_ball2_with_crate1_leftside <= 0.5) && (_root.difference_x_ball2_with_crate1_leftside >= -3)) && (_root.distance_between_rightmiddlewall_and_ball2 <= 0.5)) && (_root.distance_y_between_ball2_and_crate1 < ((_root.ball2._height / 2) + (_height / 2))))) { _root.ball_location = false; _root.green_hit_right = true; _root.ball1._x = 2000; _root.ball2._x = 2000; _root.cant_move_crate1_up_against_green_wall = false; _root.cant_move_crate1_down_against_green_wall = false; } if (((_root.greenwall_movement == true) and ((((_root.difference_x_ball1_with_crate1_leftside <= 2) && (_root.difference_x_ball1_with_crate1_leftside >= -6)) && (_root.distance_between_lb_and_ball <= 1)) && (_root.distance_y_between_ball1_and_crate1 < ((_root.ball1._height / 2) + (_height / 2))))) or ((((_root.difference_x_ball2_with_crate1_leftside <= 0.5) && (_root.difference_x_ball2_with_crate1_leftside >= -3)) && (_root.distance_between_lb_and_ball2 <= 0.5)) && (_root.distance_y_between_ball2_and_crate1 < ((_root.ball2._height / 2) + (_height / 2))))) { _root.ball_location = false; _root.green_hit_left = true; _root.ball1._x = 2000; _root.ball2._x = 2000; _root.cant_move_crate1_up_against_green_wall = false; _root.cant_move_crate1_down_against_green_wall = false; } if ((((_root.difference_x_crate1_leftside_with_lb <= 0.3) && (_root.difference_x_crate1_leftside_with_lb >= -8)) or (((_root.difference_x_crate1_leftside_with_bluewall2 <= 7) && (_root.difference_x_crate1_leftside_with_bluewall2 >= -8)) && (_y < 426.1))) && (((_root.crate1_is_pushed_by_green_wall == true) or (_root.crate1_is_pushed_by_ball1_is_pushed_by_greenwall == true)) or (_root.crate1_is_pushed_by_ball2_is_pushed_by_greenwall == true))) { _root.orange_is_attached_to_crate1 = false; _root.decoy_crate.inside.gotoAndPlay(1); _root.decoy_crate._x = _x; _root.decoy_crate._y = _y; _root.decoy_crate.gotoAndStop(2); _root.greenwall_movement = false; _x = 2000; } }
Instance of Symbol 1071 MovieClip "crate5" in Frame 16
onClipEvent (load) { _root.cant_move_crate5_right_against_middle_wall = false; _root.cant_move_crate5_right_against_orange_wall = false; _root.cant_move_crate5_left_against_orange_wall = false; _root.cant_move_crate5_down_against_orange_wall = false; _root.cant_move_crate5_up_against_orange_wall = false; _root.hit_crate5 = false; _root.orange_wall_and_crate5_leftside_touching = false; _root.crate5_against_orange_wall_boundaries_prevention = false; _root.ball1_is_pushed_by_crate5_is_pushed_by_orange_wall = false; _root.ball1_and_crate5_rightside_touching = false; _root.ball1_and_crate5_leftside_touching = false; _root.ball2_is_pushed_by_crate5_is_pushed_by_orange_wall = false; _root.ball2_and_crate5_rightside_touching = false; _root.ball2_and_crate5_leftside_touching = false; _root.cant_move_crate5_left_against_midwid = false; _root.cant_move_crate5_up_against_midwid = false; _root.cant_move_crate5_right_against_right_wall = false; _root.cant_move_crate5_left_against_left_wall = false; _root.cant_move_crate5_left_against_middle_wall = false; _root.cant_move_crate5_right_against_green_wall = false; _root.cant_move_crate5_left_against_green_wall = false; _root.cant_move_crate5_down_against_green_wall = false; _root.cant_move_crate5_up_against_green_wall = false; _root.cant_move_crate5_up_against_bluewall2 = false; _root.cant_move_crate5_up_against_middlewall_insidetop = false; _root.cant_move_crate5_down_against_middlewall_insidebottom = false; _root.green_wall_and_crate5_rightside_touching = false; _root.crate5_against_green_wall_boundaries_prevention = false; _root.ball1_is_pushed_by_crate5_is_pushed_by_green_wall = false; _root.ball2_is_pushed_by_crate5_is_pushed_by_green_wall = false; _root.crate5_is_pushed_by_ball1_is_pushed_by_greenwall = false; _root.crate5_is_pushed_by_ball2_is_pushed_by_greenwall = false; _root.crate5_is_pushed_by_green_wall = false; } onClipEvent (enterFrame) { _root.difference_x_orange_with_crate5_left = ((_x - (_width / 2)) - _root.orangewall._x) - (_root.orangewall._width / 2); _root.difference_x_orange_with_crate5_right = ((_root.orangewall._x - (_root.orangewall._width / 2)) - _x) - (_width / 2); _root.difference_y_orange_with_crate5_up = ((_y - (_height / 2)) - _root.orangewall._y) - (_root.orangewall._height / 2); _root.difference_y_orange_with_crate5_down = ((_root.orangewall._y - (_root.orangewall._height / 2)) - _y) - (_height / 2); _root.distance_x_between_orangewall_and_crate5 = Math.abs(_root.orangewall._x - _x); _root.distance_y_between_orangewall_and_crate5 = Math.abs(_root.orangewall._y - _y); _root.distance_y_between_ball1_and_crate5 = Math.abs(_root.ball1._y - _y); _root.difference_x_ball1_with_crate5_rightside = ((_root.ball1._x - _x) - (_width / 2)) - (_root.ball1._width / 2); _root.difference_x_ball1_with_crate5_leftside = ((_x - _root.ball1._x) - (_width / 2)) - (_root.ball1._width / 2); _root.distance_y_between_ball2_and_crate5 = Math.abs(_root.ball2._y - _y); _root.difference_x_ball2_with_crate5_rightside = ((_root.ball2._x - _x) - (_width / 2)) - (_root.ball2._width / 2); _root.difference_x_ball2_with_crate5_leftside = ((_x - _root.ball2._x) - (_width / 2)) - (_root.ball2._width / 2); _root.difference_x_green_with_crate5_left = ((_x - (_width / 2)) - _root.greenwall._x) - (_root.greenwall._width / 2); _root.difference_x_green_with_crate5_right = ((_root.greenwall._x - (_root.greenwall._width / 2)) - _x) - (_width / 2); _root.difference_y_green_with_crate5_up = ((_y - (_height / 2)) - _root.greenwall._y) - (_root.greenwall._height / 2); _root.difference_y_green_with_crate5_down = ((_root.greenwall._y - (_root.greenwall._height / 2)) - _y) - (_height / 2); _root.distance_x_between_greenwall_and_crate5 = Math.abs(_root.greenwall._x - _x); _root.distance_y_between_greenwall_and_crate5 = Math.abs(_root.greenwall._y - _y); _root.difference_x_crate5_leftside_with_lb = ((_x - (_width / 2)) - (_root.lb._width / 2)) - _root.lb._x; _root.difference_x_crate5_leftside_with_bluewall2 = ((_x - (_width / 2)) - (_root.bluewall2._width / 2)) - _root.bluewall2._x; _root.distance_x_between_middlewall_and_crate5 = Math.abs(_root.middlewall._x - _x); _root.difference_y_middlewall_insidebottom_with_crate5_down = ((423.8 - (_root.middlewall.middlewall_insidebottom._height / 2)) - (_height / 2)) - _y; _root.difference_y_middlewall_insidetop_with_crate5_up = ((_y - 45.6) - (_root.middlewall.middlewall_insidetop._height / 2)) - (_height / 2); if (hitTest(_root.orangewall)) { _root.orangewall_crate5_hit = true; if ((_root.hit_crate5 == true) and (_root.moveright == true)) { if ((_root.crate5_against_orange_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate5_is_pushed_by_orange_wall == false)) { _x = (_x - ((getBounds(_root).xMax - _root.orangewall.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate5_right_against_orange_wall = true; } } if ((_root.hit_crate5 == true) and (_root.moveleft == true)) { if ((_root.crate5_against_orange_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate5_is_pushed_by_orange_wall == false)) { _x = (_x - ((getBounds(_root).xMin - _root.orangewall.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate5_left_against_orange_wall = true; } } if ((_root.hit_crate5 == true) and (_root.movedown == true)) { if ((_root.crate5_against_orange_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate5_is_pushed_by_orange_wall == false)) { _y = (_y - ((getBounds(_root).yMax - _root.orangewall.getBounds(_root).yMin) + 0.1)); } _root.cant_move_crate5_down_against_orange_wall = true; } if ((_root.hit_crate5 == true) and (_root.moveup == true)) { if ((_root.crate5_against_orange_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate5_is_pushed_by_orange_wall == false)) { _y = (_y - ((getBounds(_root).yMin - _root.orangewall.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate5_up_against_orange_wall = true; } } } else { _root.orangewall_crate5_hit = false; } if (((_root.difference_x_orange_with_crate5_left <= 0.3) && (_root.difference_x_orange_with_crate5_left >= -8)) && (_root.distance_y_between_orangewall_and_crate5 < ((_height / 2) + (_root.orangewall._height / 2)))) { _root.cant_move_crate5_left_against_orange_wall = true; _root.cant_move_crate5_left_against_middle_wall = true; _root.cant_move_crate5_left_against_green_wall = true; _root.cant_move_crate5_left_against_left_wall = true; _root.orange_wall_and_crate5_leftside_touching = true; } else { _root.cant_move_crate5_left_against_orange_wall = false; _root.orange_wall_and_crate5_leftside_touching = false; } if ((((_root.orangewall_movement == true) and (_root.orange_wall_and_crate5_leftside_touching == true)) and (_root.distance_y_between_orangewall_and_crate5 < ((_height / 2) + (_root.orangewall._height / 2)))) and (_currentframe == 1)) { _x = (((_root.orangewall._x + (_root.orangewall._width / 2)) + (_width / 2)) + 0.7); _root.crate5_is_pushed_by_orange_wall = true; } if (((_root.difference_x_ball1_with_crate5_rightside <= 1.5) && (_root.difference_x_ball1_with_crate5_rightside >= -8)) && (_root.distance_y_between_ball1_and_crate5 < ((_height / 2) + (_root.ball1._height / 2)))) { _root.ball1_and_crate5_rightside_touching = true; } else { _root.ball1_and_crate5_rightside_touching = false; } if (((_root.difference_x_ball2_with_crate5_rightside <= 0.3) && (_root.difference_x_ball2_with_crate5_rightside >= -8)) && (_root.distance_y_between_ball2_and_crate5 < ((_height / 2) + (_root.ball2._height / 2)))) { _root.ball2_and_crate5_rightside_touching = true; } else { _root.ball2_and_crate5_rightside_touching = false; } if ((((_root.ball1_and_crate5_rightside_touching == true) and (_root.crate5_is_pushed_by_orange_wall == true)) and (_root.distance_y_between_orangewall_and_crate5 < ((_height / 2) + (_root.orangewall._height / 2)))) and (_root.distance_y_between_ball1_and_crate5 < ((_height / 2) + (_root.ball1._height / 2)))) { _root.ball1._x = (((_root.orangewall._x + (_root.orangewall._width / 2)) + _width) + (_root.ball1._width / 2)) + 0.5; _root.ball1_is_pushed_by_crate5_is_pushed_by_orange_wall = true; } else { _root.ball1_is_pushed_by_crate5_is_pushed_by_orange_wall = false; } if ((((_root.ball2_and_crate5_rightside_touching == true) and (_root.crate5_is_pushed_by_orange_wall == true)) and (_root.distance_y_between_orangewall_and_crate5 < ((_height / 2) + (_root.orangewall._height / 2)))) and (_root.distance_y_between_ball2_and_crate5 < ((_height / 2) + (_root.ball2._height / 2)))) { _root.ball2._x = (((_root.orangewall._x + (_root.orangewall._width / 2)) + _width) + (_root.ball2._width / 2)) + 0.5; _root.ball2_is_pushed_by_crate5_is_pushed_by_orange_wall = true; } else { _root.ball2_is_pushed_by_crate5_is_pushed_by_orange_wall = false; } if (((_root.difference_x_ball1_with_crate5_leftside <= 0.3) && (_root.difference_x_ball1_with_crate5_leftside >= -8)) && (_root.distance_y_between_ball1_and_crate5 < ((_height / 2) + (_root.ball1._height / 2)))) { _root.ball1_and_crate5_leftside_touching = true; } else { _root.ball1_and_crate5_leftside_touching = false; } if (((_root.difference_x_ball2_with_crate5_leftside <= 0.3) && (_root.difference_x_ball2_with_crate5_leftside >= -8)) && (_root.distance_y_between_ball2_and_crate5 < ((_height / 2) + (_root.ball2._height / 2)))) { _root.ball2_and_crate5_leftside_touching = true; } else { _root.ball2_and_crate5_leftside_touching = false; } if (((((_root.ball1_and_crate5_leftside_touching == true) and (_root.ball1_is_pushed_by_orange_wall == true)) and (_root.distance_y_between_ball1_and_crate5 < ((_height / 2) + (_root.ball1._height / 2)))) and (_root.moveright == false)) and (_currentframe == 1)) { _x = (((_root.ball1._x + (_root.ball1._width / 2)) + (_width / 2)) + 0.5); } if ((((_root.ball2_and_crate5_leftside_touching == true) and (_root.ball2_is_pushed_by_orange_wall == true)) and (_root.distance_y_between_ball2_and_crate5 < ((_height / 2) + (_root.ball2._height / 2)))) and (_root.moveright == false)) { _x = (((_root.ball2._x + (_root.ball2._width / 2)) + (_width / 2)) + 0.5); } if ((_root.distance_y_between_orangewall_and_crate5 < ((_height / 2) + (_root.orangewall._height / 2))) && (_root.orangewall_movement == true)) { _root.crate5_against_orange_wall_boundaries_prevention = true; } else { _root.crate5_against_orange_wall_boundaries_prevention = false; } if (((_root.difference_x_orange_with_crate5_right <= 0.3) && (_root.difference_x_orange_with_crate5_right >= -8)) && (_root.distance_y_between_orangewall_and_crate5 < ((_height / 2) + (_root.orangewall._height / 2)))) { _root.cant_move_crate5_right_against_orange_wall = true; _root.cant_move_crate5_right_against_middlewall = true; _root.cant_move_crate5_right_against_green_wall = true; _root.cant_move_crate5_right_against_right_wall = true; } else { _root.cant_move_crate5_right_against_orange_wall = false; } if (_root.crate5_against_orange_wall_boundaries_prevention == false) { if (((_root.difference_y_orange_with_crate5_up <= 0.3) && (_root.difference_y_orange_with_crate5_up >= -8)) && (_root.distance_x_between_orangewall_and_crate5 < ((_width / 2) + (_root.orangewall._width / 2)))) { _root.cant_move_crate5_up_against_orange_wall = true; _root.cant_move_crate5_up_against_top_wall = true; _root.cant_move_crate5_up_against_green_wall = true; _root.cant_move_crate5_up_against_middlewall_insidetop = true; } else { _root.cant_move_crate5_up_against_orange_wall = false; } if (((_root.difference_y_orange_with_crate5_down <= 0.3) && (_root.difference_y_orange_with_crate5_down >= -8)) && (_root.distance_x_between_orangewall_and_crate5 < ((_width / 2) + (_root.orangewall._width / 2)))) { _root.cant_move_crate5_down_against_orange_wall = true; _root.cant_move_crate5_down_against_bottom_wall = true; _root.cant_move_crate5_down_against_green_wall = true; _root.cant_move_crate5_down_against_middlewall_insidebottom = true; } else { _root.cant_move_crate5_down_against_orange_wall = false; } } else if ((((_root.distance_y_between_orangewall_and_crate5 < ((_height / 2) + (_root.orangewall._height / 2))) && (_root.distance_y_between_ball1_and_crate5 < ((_height / 2) + (_root.ball1._height / 2)))) and (_root.difference_x_ball1_with_crate5_rightside <= 0.3)) && (_root.difference_x_ball1_with_crate5_rightside >= -8)) { _root.cant_move_crate5_down_against_orange_wall = true; _root.cant_move_crate5_up_against_orange_wall = true; _root.cant_move_crate5_left_against_orange_wall = true; _root.cant_move_crate5_right_against_orange_wall = true; } else { _root.cant_move_crate5_down_against_orange_wall = false; _root.cant_move_crate5_up_against_orange_wall = false; } if (((((_root.difference_x_ball1_with_crate5_rightside <= 0.5) && (_root.difference_x_ball1_with_crate5_rightside >= -3)) && (_root.distance_between_leftmiddlewall_and_ball <= 0.5)) && (_root.distance_y_between_ball1_and_crate5 < ((_root.ball1._height / 2) + (_height / 2)))) or ((((_root.difference_x_ball2_with_crate5_rightside <= 0.5) && (_root.difference_x_ball2_with_crate5_rightside >= -3)) && (_root.distance_between_leftmiddlewall_and_ball2 <= 0.5)) && (_root.distance_y_between_ball2_and_crate5 < ((_root.ball2._height / 2) + (_height / 2))))) { _root.ball1._x = 2000; _root.ball2._x = 2000; _root.ball_location = false; _root.ball_locator(); _root.orange_hit = true; } if (hitTest(_root.middlewall.middlewall_insidetop) and (_root.moveleft == true)) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.middlewall_insidetop.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate5_left_against_middle_wall = true; } if (((((_x - _root.middlewall._x) - (_root.middlewall._width / 2)) - (_width / 2)) <= 0.3) and (_y < 227.3)) { _root.cant_move_crate5_left_against_middle_wall = true; _root.cant_move_crate5_left_against_orange_wall = true; _root.cant_move_crate5_left_against_green_wall = true; _root.cant_move_crate5_left_against_left_wall = true; } else { _root.cant_move_crate5_left_against_middle_wall = false; } if (hitTest(_root.leftwall)) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate5_left_against_left_wall = true; } if ((((_x - _root.leftwall._x) - (_root.leftwall._width / 2)) - (_width / 2)) <= 0.3) { _root.cant_move_crate5_left_against_left_wall = true; _root.cant_move_crate5_left_against_orange_wall = true; _root.cant_move_crate5_left_against_green_wall = true; _root.cant_move_crate5_left_against_middle_wall = true; } else { _root.cant_move_crate5_left_against_left_wall = false; } if (hitTest(_root.rightwall)) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate5_right_against_right_wall = true; } if ((((_root.rightwall._x - _x) - (_root.rightwall._width / 2)) - (_width / 2)) <= 0.3) { _root.cant_move_crate5_right_against_right_wall = true; _root.cant_move_crate5_right_against_orange_wall = true; _root.cant_move_crate5_right_against_green_wall = true; _root.cant_move_crate5_right_against_middle_wall = true; } else { _root.cant_move_crate5_right_against_right_wall = false; } if (hitTest(_root.midwid) and (_root.moveleft == true)) { _x = (_x - ((getBounds(_root).xMin - _root.midwid.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate5_left_against_midwid = true; } if (((Math.abs(((_x - _root.midwid._x) - (_root.midwid._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.midwid._y + (_root.midwid._height / 2)) + (_height / 2)))) and (_y > ((_root.midwid._y - (_root.midwid._height / 2)) - (_height / 2)))) { _root.cant_move_crate5_left_against_midwid = true; } else { _root.cant_move_crate5_left_against_midwid = false; } if (hitTest(_root.midwid) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.midwid.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate5_up_against_midwid = true; } if (((Math.abs(((_y - _root.midwid._y) - (_root.midwid._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.midwid._x + (_root.midwid._width / 2)) + (_width / 2)))) and (_x > ((_root.midwid._x - (_root.midwid._width / 2)) - (_width / 2)))) { _root.cant_move_crate5_up_against_midwid = true; } else { _root.cant_move_crate5_up_against_midwid = false; } if (hitTest(_root.topwall)) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate5_up_against_top_wall = true; } if ((((_y - _root.topwall._y) - (_root.topwall._height / 2)) - (_height / 2)) <= 0.3) { _root.cant_move_crate5_up_against_top_wall = true; _root.cant_move_crate5_up_against_orange_wall = true; _root.cant_move_crate5_up_against_green_wall = true; } else { _root.cant_move_crate5_up_against_top_wall = false; } if (hitTest(_root.bluewall2)) { _y = (_y - ((getBounds(_root).yMin - _root.bluewall2.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate5_up_against_bluewall2 = true; } if ((((_y - _root.bluewall2._y) - (_root.bluewall2._height / 2)) - (_height / 2)) <= 0.3) { _root.cant_move_crate5_up_against_bluewall2 = true; _root.cant_move_crate5_up_against_orange_wall = true; _root.cant_move_crate5_up_against_green_wall = true; } else { _root.cant_move_crate5_up_against_bluewall2 = false; } if (hitTest(_root.bottomwall)) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate5_down_against_bottom_wall = true; } if ((((_root.bottomwall._y - _y) - (_root.bottomwall._height / 2)) - (_height / 2)) <= 0.3) { _root.cant_move_crate5_down_against_bottom_wall = true; _root.cant_move_crate5_down_against_orange_wall = true; _root.cant_move_crate5_down_against_green_wall = true; } else { _root.cant_move_crate5_down_against_bottom_wall = false; } if (hitTest(_root.middlewall.middlewall_insidetop) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall.middlewall_insidetop.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate5_up_against_middlewall_insidetop = true; } if (((_root.difference_y_middlewall_insidetop_with_crate5_up <= 0.3) && (_root.difference_y_middlewall_insidetop_with_crate5_up >= -8)) && (_root.distance_x_between_middlewall_and_crate5 < ((_width / 2) + (_root.middlewall._width / 2)))) { _root.cant_move_crate5_up_against_middlewall_insidetop = true; _root.cant_move_crate5_up_against_orange_wall = true; _root.cant_move_crate5_up_against_green_wall = true; _root.cant_move_crate5_up_against_top_wall = true; } else { _root.cant_move_crate5_up_against_middlewall_insidetop = false; } if (_root.hit_crate5_2) { if (hitTest(_root.crate4) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.crate4.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate5_up_against_crate4 = true; } if ((((((_y - _root.crate4._y) - (_root.crate4._height / 2)) - (_height / 2)) <= 0.3) and ((((_y - _root.crate4._y) - (_root.crate4._height / 2)) - (_height / 2)) >= 0)) and (Math.abs(_root.crate4._x - _x) < ((_width / 2) + (_root.crate4._width / 2)))) { _root.cant_move_crate5_up_against_crate4 = true; _root.cant_move_crate5_up_against_top_wall = true; _root.cant_move_crate5_up_against_orange_wall = true; _root.cant_move_crate5_up_against_green_wall = true; } else { _root.cant_move_crate5_up_against_crate4 = false; } if (hitTest(_root.crate4) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.crate4.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate5_down_against_crate4 = true; } if ((((((_root.crate4._y - _y) - (_root.crate4._height / 2)) - (_height / 2)) <= 0.3) and ((((_root.crate4._y - _y) - (_root.crate4._height / 2)) - (_height / 2)) >= 0)) and (Math.abs(_root.crate4._x - _x) < ((_width / 2) + (_root.crate4._width / 2)))) { _root.cant_move_crate5_down_against_crate4 = true; _root.cant_move_crate5_down_against_bottom_wall = true; _root.cant_move_crate5_down_against_orange_wall = true; _root.cant_move_crate5_down_against_green_wall = true; } else { _root.cant_move_crate5_down_against_crate4 = false; } if (hitTest(_root.crate4) and (_root.moveleft == true)) { _x = (_x - ((getBounds(_root).xMin - _root.crate4.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate5_left_against_crate4 = true; } if ((((((_x - _root.crate4._x) - (_root.crate4._width / 2)) - (_width / 2)) <= 0.3) and ((((_x - _root.crate4._x) - (_root.crate4._width / 2)) - (_width / 2)) >= 0)) and (Math.abs(_root.crate4._y - _y) < ((_height / 2) + (_root.crate4._height / 2)))) { _root.cant_move_crate5_left_against_crate4 = true; _root.cant_move_crate5_left_against_left_wall = true; _root.cant_move_crate5_left_against_orange_wall = true; _root.cant_move_crate5_left_against_green_wall = true; _root.cant_move_crate5_left_against_middle_wall = true; } else { _root.cant_move_crate5_left_against_crate4 = false; } if (hitTest(_root.crate4) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.crate4.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate5_right_against_crate4 = true; } if ((((((_root.crate4._x - _x) - (_root.crate4._width / 2)) - (_width / 2)) <= 0.3) and ((((_root.crate4._x - _x) - (_root.crate4._width / 2)) - (_width / 2)) >= 0)) and (Math.abs(_root.crate4._y - _y) < ((_height / 2) + (_root.crate4._height / 2)))) { _root.cant_move_crate5_right_against_crate4 = true; _root.cant_move_crate5_right_against_right_wall = true; _root.cant_move_crate5_right_against_orange_wall = true; _root.cant_move_crate5_right_against_green_wall = true; _root.cant_move_crate5_right_against_middle_wall = true; } else { _root.cant_move_crate5_right_against_crate4 = false; } if (hitTest(_root.crate3) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.crate3.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate5_up_against_crate3 = true; } if ((((((_y - _root.crate3._y) - (_root.crate3._height / 2)) - (_height / 2)) <= 0.3) and ((((_y - _root.crate3._y) - (_root.crate3._height / 2)) - (_height / 2)) >= 0)) and (Math.abs(_root.crate3._x - _x) < ((_width / 2) + (_root.crate3._width / 2)))) { _root.cant_move_crate5_up_against_crate3 = true; _root.cant_move_crate5_up_against_top_wall = true; _root.cant_move_crate5_up_against_orange_wall = true; _root.cant_move_crate5_up_against_green_wall = true; } else { _root.cant_move_crate5_up_against_crate3 = false; } if (hitTest(_root.crate3) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.crate3.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate5_down_against_crate3 = true; } if ((((((_root.crate3._y - _y) - (_root.crate3._height / 2)) - (_height / 2)) <= 0.3) and ((((_root.crate3._y - _y) - (_root.crate3._height / 2)) - (_height / 2)) >= 0)) and (Math.abs(_root.crate3._x - _x) < ((_width / 2) + (_root.crate3._width / 2)))) { _root.cant_move_crate5_down_against_crate3 = true; _root.cant_move_crate5_down_against_bottom_wall = true; _root.cant_move_crate5_down_against_orange_wall = true; _root.cant_move_crate5_down_against_green_wall = true; } else { _root.cant_move_crate5_down_against_crate3 = false; } if (hitTest(_root.crate3) and (_root.moveleft == true)) { _x = (_x - ((getBounds(_root).xMin - _root.crate3.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate5_left_against_crate3 = true; } if ((((((_x - _root.crate3._x) - (_root.crate3._width / 2)) - (_width / 2)) <= 0.3) and ((((_x - _root.crate3._x) - (_root.crate3._width / 2)) - (_width / 2)) >= 0)) and (Math.abs(_root.crate3._y - _y) < ((_height / 2) + (_root.crate3._height / 2)))) { _root.cant_move_crate5_left_against_crate3 = true; _root.cant_move_crate5_left_against_left_wall = true; _root.cant_move_crate5_left_against_orange_wall = true; _root.cant_move_crate5_left_against_green_wall = true; _root.cant_move_crate5_left_against_middle_wall = true; } else { _root.cant_move_crate5_left_against_crate3 = false; } if (hitTest(_root.crate3) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.crate3.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate5_right_against_crate3 = true; } if ((((((_root.crate3._x - _x) - (_root.crate3._width / 2)) - (_width / 2)) <= 0.3) and ((((_root.crate3._x - _x) - (_root.crate3._width / 2)) - (_width / 2)) >= 0)) and (Math.abs(_root.crate3._y - _y) < ((_height / 2) + (_root.crate3._height / 2)))) { _root.cant_move_crate5_right_against_crate3 = true; _root.cant_move_crate5_right_against_right_wall = true; _root.cant_move_crate5_right_against_orange_wall = true; _root.cant_move_crate5_right_against_green_wall = true; _root.cant_move_crate5_right_against_middle_wall = true; } else { _root.cant_move_crate5_right_against_crate3 = false; } } if (hitTest(_root.greenwall)) { _root.greenwall_crate5_hit = true; if ((_root.hit_crate5 == true) and (_root.moveright == true)) { if ((_root.crate5_against_green_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate5_is_pushed_by_green_wall == false)) { _x = (_x - ((getBounds(_root).xMax - _root.greenwall.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate5_right_against_green_wall = true; } } if ((_root.hit_crate5 == true) and (_root.moveleft == true)) { if ((_root.crate5_against_green_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate5_is_pushed_by_green_wall == false)) { _x = (_x - ((getBounds(_root).xMin - _root.greenwall.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate5_left_against_green_wall = true; } } if ((_root.hit_crate5 == true) and (_root.movedown == true)) { if ((_root.crate5_against_green_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate5_is_pushed_by_green_wall == false)) { _y = (_y - ((getBounds(_root).yMax - _root.greenwall.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate5_down_against_green_wall = true; } } if ((_root.hit_crate5 == true) and (_root.moveup == true)) { if ((_root.crate5_against_green_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate5_is_pushed_by_green_wall == false)) { _y = (_y - ((getBounds(_root).yMin - _root.greenwall.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate5_up_against_green_wall = true; } } } else { _root.greenwall_crate5_hit = false; } if (((_root.difference_x_green_with_crate5_right <= 0.3) && (_root.difference_x_green_with_crate5_right >= -8)) && (_root.distance_y_between_greenwall_and_crate5 < ((_height / 2) + (_root.greenwall._height / 2)))) { _root.cant_move_crate5_right_against_green_wall = true; _root.cant_move_crate5_right_against_middle_wall = true; _root.cant_move_crate5_right_against_orange_wall = true; _root.cant_move_crate5_right_against_right_wall = true; _root.green_wall_and_crate5_rightside_touching = true; } else { _root.cant_move_crate5_right_against_green_wall = false; _root.green_wall_and_crate5_rightside_touching = false; } if ((((_root.greenwall_movement == true) and (_root.green_wall_and_crate5_rightside_touching == true)) and (_root.distance_y_between_greenwall_and_crate5 < ((_height / 2) + (_root.greenwall._height / 2)))) and (_currentframe == 1)) { _x = (((_root.greenwall._x - (_root.greenwall._width / 2)) - (_width / 2)) - 0.7); _root.crate5_is_pushed_by_green_wall = true; } if (((_root.difference_x_ball1_with_crate5_leftside <= 0.3) && (_root.difference_x_ball1_with_crate5_leftside >= -8)) && (_root.distance_y_between_ball1_and_crate5 < ((_height / 2) + (_root.ball1._height / 2)))) { _root.ball1_and_crate5_leftside_touching = true; } else { _root.ball1_and_crate5_leftside_touching = false; } if (((_root.difference_x_ball2_with_crate5_leftside <= 0.3) && (_root.difference_x_ball2_with_crate5_leftside >= -8)) && (_root.distance_y_between_ball2_and_crate5 < ((_height / 2) + (_root.ball2._height / 2)))) { _root.ball2_and_crate5_leftside_touching = true; } else { _root.ball2_and_crate5_leftside_touching = false; } if ((((_root.ball1_and_crate5_leftside_touching == true) and (_root.crate5_is_pushed_by_green_wall == true)) and (_root.distance_y_between_greenwall_and_crate5 < ((_height / 2) + (_root.greenwall._height / 2)))) and (_root.distance_y_between_ball1_and_crate5 < ((_height / 2) + (_root.ball1._height / 2)))) { _root.ball1._x = (((_root.greenwall._x - (_root.greenwall._width / 2)) - _width) - (_root.ball1._width / 2)) - 0.5; _root.ball1_is_pushed_by_crate5_is_pushed_by_green_wall = true; } else { _root.ball1_is_pushed_by_crate5_is_pushed_by_green_wall = false; } if ((((_root.ball2_and_crate5_leftside_touching == true) and (_root.crate5_is_pushed_by_green_wall == true)) and (_root.distance_y_between_greenwall_and_crate5 < ((_height / 2) + (_root.greenwall._height / 2)))) and (_root.distance_y_between_ball2_and_crate5 < ((_height / 2) + (_root.ball2._height / 2)))) { _root.ball2._x = (((_root.greenwall._x - (_root.greenwall._width / 2)) - _width) - (_root.ball2._width / 2)) - 0.5; _root.ball2_is_pushed_by_crate5_is_pushed_by_green_wall = true; } else { _root.ball2_is_pushed_by_crate5_is_pushed_by_green_wall = false; } if (((((_root.ball1_and_crate5_rightside_touching == true) and (_root.ball1_is_pushed_by_green_wall == true)) and (_root.distance_y_between_ball1_and_crate5 < ((_height / 2) + (_root.ball1._height / 2)))) and (_root.moveleft == false)) and (_currentframe == 1)) { _root.cant_move_crate5_right_against_green_wall = false; _x = (((_root.ball1._x - (_root.ball1._width / 2)) - (_width / 2)) - 0.5); _root.crate5_is_pushed_by_ball1_is_pushed_by_greenwall = true; } else { _root.crate5_is_pushed_by_ball1_is_pushed_by_greenwall = false; } if ((((_root.ball2_and_crate5_rightside_touching == true) and (_root.ball2_is_pushed_by_green_wall == true)) and (_root.distance_y_between_ball2_and_crate5 < ((_height / 2) + (_root.ball2._height / 2)))) and (_root.moveleft == false)) { _x = (((_root.ball2._x - (_root.ball2._width / 2)) - (_width / 2)) - 0.5); _root.crate5_is_pushed_by_ball2_is_pushed_by_greenwall = true; } else { _root.crate5_is_pushed_by_ball2_is_pushed_by_greenwall = false; } if ((_root.distance_y_between_greenwall_and_crate5 < ((_height / 2) + (_root.greenwall._height / 2))) and (_root.greenwall_movement == true)) { _root.crate5_against_green_wall_boundaries_prevention = true; } else { _root.crate5_against_green_wall_boundaries_prevention = false; } if (((_root.distance_y_between_greenwall_and_crate5 < ((_height / 2) + (_root.greenwall._height / 2))) and (_root.distance_y_between_greenwall_and_ball <= ((_root.ball1._height / 2) + (_root.greenwall._height / 2)))) and (_root.greenwall_movement == true)) { _root.crate5_against_green_wall_boundaries_prevention2 = true; } else { _root.crate5_against_green_wall_boundaries_prevention2 = false; } if (((_root.difference_x_green_with_crate5_left <= 0.3) && (_root.difference_x_green_with_crate5_left >= -8)) && (_root.distance_y_between_greenwall_and_crate5 < ((_height / 2) + (_root.greenwall._height / 2)))) { _root.cant_move_crate5_left_against_green_wall = true; _root.cant_move_crate5_left_against_middlewall = true; _root.cant_move_crate5_left_against_orange_wall = true; _root.cant_move_crate5_left_against_left_wall = true; } else { _root.cant_move_crate5_left_against_green_wall = false; } if (_root.crate5_against_green_wall_boundaries_prevention == false) { if (((_root.difference_y_green_with_crate5_up <= 0.3) && (_root.difference_y_green_with_crate5_up >= -8)) && (_root.distance_x_between_greenwall_and_crate5 < ((_width / 2) + (_root.greenwall._width / 2)))) { _root.cant_move_crate5_up_against_green_wall = true; _root.cant_move_crate5_up_against_top_wall = true; _root.cant_move_crate5_up_against_orange_wall = true; _root.cant_move_crate5_up_against_middlewall_insidetop = true; } else { _root.cant_move_crate5_up_against_green_wall = false; } if (((_root.difference_y_green_with_crate5_down <= 0.3) && (_root.difference_y_green_with_crate5_down >= -8)) && (_root.distance_x_between_greenwall_and_crate5 < ((_width / 2) + (_root.greenwall._width / 2)))) { _root.cant_move_crate5_down_against_green_wall = true; _root.cant_move_crate5_down_against_bottom_wall = true; _root.cant_move_crate5_down_against_orange_wall = true; _root.cant_move_crate5_down_against_middlewall_insidebottom = true; } else { _root.cant_move_crate5_down_against_green_wall = false; } } else if ((((_root.distance_y_between_greenwall_and_crate5 < ((_height / 2) + (_root.greenwall._height / 2))) && (_root.distance_y_between_ball1_and_crate5 < ((_height / 2) + (_root.ball1._height / 2)))) and (_root.difference_x_ball1_with_crate5_leftside <= 0.3)) && (_root.difference_x_ball1_with_crate5_leftside >= -8)) { _root.cant_move_crate5_down_against_green_wall = true; _root.cant_move_crate5_up_against_green_wall = true; _root.cant_move_crate5_left_against_green_wall = true; _root.cant_move_crate5_right_against_green_wall = true; } else { _root.cant_move_crate5_down_against_green_wall = false; _root.cant_move_crate5_up_against_green_wall = false; } if (((((_root.difference_x_ball1_with_crate5_leftside <= 0.7) && (_root.difference_x_ball1_with_crate5_leftside >= -6)) && (_root.distance_between_rightmiddlewall_and_ball <= 0.5)) && (_root.distance_y_between_ball1_and_crate5 < ((_root.ball1._height / 2) + (_height / 2)))) or ((((_root.difference_x_ball2_with_crate5_leftside <= 0.5) && (_root.difference_x_ball2_with_crate5_leftside >= -3)) && (_root.distance_between_rightmiddlewall_and_ball2 <= 0.5)) && (_root.distance_y_between_ball2_and_crate5 < ((_root.ball2._height / 2) + (_height / 2))))) { _root.ball_location = false; _root.green_hit_right = true; _root.ball1._x = 2000; _root.ball2._x = 2000; _root.cant_move_crate5_up_against_green_wall = false; _root.cant_move_crate5_down_against_green_wall = false; trace("pooppp"); } if (((((_root.difference_x_ball1_with_crate5_leftside <= 0.7) && (_root.difference_x_ball1_with_crate5_leftside >= -6)) && (_root.distance_between_lb_and_ball <= 0.5)) && (_root.distance_y_between_ball1_and_crate5 < ((_root.ball1._height / 2) + (_height / 2)))) or ((((_root.difference_x_ball2_with_crate5_leftside <= 0.5) && (_root.difference_x_ball2_with_crate5_leftside >= -3)) && (_root.distance_between_lb_and_ball2 <= 0.5)) && (_root.distance_y_between_ball2_and_crate5 < ((_root.ball2._height / 2) + (_height / 2))))) { _root.ball_location = false; _root.green_hit_left = true; _root.ball1._x = 2000; _root.ball2._x = 2000; _root.cant_move_crate5_up_against_green_wall = false; _root.cant_move_crate5_down_against_green_wall = false; trace("pooppp"); } if ((((_root.difference_x_crate5_leftside_with_lb <= 0.3) && (_root.difference_x_crate5_leftside_with_lb >= -8)) or (((_root.difference_x_crate5_leftside_with_bluewall2 <= 1) && (_root.difference_x_crate5_leftside_with_bluewall2 >= -8)) && (_y < 426.1))) && (((_root.crate5_is_pushed_by_green_wall == true) or (_root.crate5_is_pushed_by_ball1_is_pushed_by_greenwall == true)) or (_root.crate5_is_pushed_by_ball2_is_pushed_by_greenwall == true))) { gotoAndStop (2); _root.greenwall_movement = false; } }
Instance of Symbol 1071 MovieClip "crate3" in Frame 16
onClipEvent (load) { _root.cant_move_crate3_right_against_middle_wall = false; _root.cant_move_crate3_right_against_orange_wall = false; _root.cant_move_crate3_left_against_orange_wall = false; _root.cant_move_crate3_down_against_orange_wall = false; _root.cant_move_crate3_up_against_orange_wall = false; _root.hit_crate3 = false; _root.orange_wall_and_crate3_leftside_touching = false; _root.crate3_against_orange_wall_boundaries_prevention = false; _root.ball1_is_pushed_by_crate3_is_pushed_by_orange_wall = false; _root.ball1_and_crate3_rightside_touching = false; _root.ball1_and_crate3_leftside_touching = false; _root.ball2_is_pushed_by_crate3_is_pushed_by_orange_wall = false; _root.ball2_and_crate3_rightside_touching = false; _root.ball2_and_crate3_leftside_touching = false; _root.cant_move_crate3_left_against_midwid = false; _root.cant_move_crate3_up_against_midwid = false; _root.cant_move_crate3_right_against_right_wall = false; _root.cant_move_crate3_left_against_left_wall = false; _root.cant_move_crate3_left_against_middle_wall = false; _root.cant_move_crate3_right_against_green_wall = false; _root.cant_move_crate3_left_against_green_wall = false; _root.cant_move_crate3_down_against_green_wall = false; _root.cant_move_crate3_up_against_green_wall = false; _root.cant_move_crate3_up_against_bluewall2 = false; _root.cant_move_crate3_up_against_middlewall_insidetop = false; _root.cant_move_crate3_down_against_middlewall_insidebottom = false; _root.cant_move_crate3_up_against_crate4 = false; _root.cant_move_crate3_left_against_crate4 = false; _root.cant_move_crate3_down_against_crate4 = false; _root.cant_move_crate3_right_against_crate4 = false; _root.cant_move_crate3_up_against_crate5 = false; _root.cant_move_crate3_left_against_crate5 = false; _root.cant_move_crate3_down_against_crate5 = false; _root.cant_move_crate3_right_against_crate5 = false; _root.green_wall_and_crate3_rightside_touching = false; _root.crate3_against_green_wall_boundaries_prevention = false; _root.ball1_is_pushed_by_crate3_is_pushed_by_green_wall = false; _root.ball2_is_pushed_by_crate3_is_pushed_by_green_wall = false; _root.crate3_is_pushed_by_ball1_is_pushed_by_greenwall = false; _root.crate3_is_pushed_by_ball2_is_pushed_by_greenwall = false; _root.crate3_is_pushed_by_green_wall = false; } onClipEvent (enterFrame) { _root.difference_x_orange_with_crate3_left = ((_x - (_width / 2)) - _root.orangewall._x) - (_root.orangewall._width / 2); _root.difference_x_orange_with_crate3_right = ((_root.orangewall._x - (_root.orangewall._width / 2)) - _x) - (_width / 2); _root.difference_y_orange_with_crate3_up = ((_y - (_height / 2)) - _root.orangewall._y) - (_root.orangewall._height / 2); _root.difference_y_orange_with_crate3_down = ((_root.orangewall._y - (_root.orangewall._height / 2)) - _y) - (_height / 2); _root.distance_x_between_orangewall_and_crate3 = Math.abs(_root.orangewall._x - _x); _root.distance_y_between_orangewall_and_crate3 = Math.abs(_root.orangewall._y - _y); _root.distance_y_between_ball1_and_crate3 = Math.abs(_root.ball1._y - _y); _root.difference_x_ball1_with_crate3_rightside = ((_root.ball1._x - _x) - (_width / 2)) - (_root.ball1._width / 2); _root.difference_x_ball1_with_crate3_leftside = ((_x - _root.ball1._x) - (_width / 2)) - (_root.ball1._width / 2); _root.distance_y_between_ball2_and_crate3 = Math.abs(_root.ball2._y - _y); _root.difference_x_ball2_with_crate3_rightside = ((_root.ball2._x - _x) - (_width / 2)) - (_root.ball2._width / 2); _root.difference_x_ball2_with_crate3_leftside = ((_x - _root.ball2._x) - (_width / 2)) - (_root.ball2._width / 2); _root.difference_x_green_with_crate3_left = ((_x - (_width / 2)) - _root.greenwall._x) - (_root.greenwall._width / 2); _root.difference_x_green_with_crate3_right = ((_root.greenwall._x - (_root.greenwall._width / 2)) - _x) - (_width / 2); _root.difference_y_green_with_crate3_up = ((_y - (_height / 2)) - _root.greenwall._y) - (_root.greenwall._height / 2); _root.difference_y_green_with_crate3_down = ((_root.greenwall._y - (_root.greenwall._height / 2)) - _y) - (_height / 2); _root.distance_x_between_greenwall_and_crate3 = Math.abs(_root.greenwall._x - _x); _root.distance_y_between_greenwall_and_crate3 = Math.abs(_root.greenwall._y - _y); _root.difference_x_crate3_leftside_with_lb = ((_x - (_width / 2)) - (_root.lb._width / 2)) - _root.lb._x; _root.difference_x_crate3_leftside_with_bluewall2 = ((_x - (_width / 2)) - (_root.bluewall2._width / 2)) - _root.bluewall2._x; _root.distance_x_between_middlewall_and_crate3 = Math.abs(_root.middlewall._x - _x); _root.difference_y_middlewall_insidebottom_with_crate3_down = ((423.8 - (_root.middlewall.middlewall_insidebottom._height / 2)) - (_height / 2)) - _y; _root.difference_y_middlewall_insidetop_with_crate3_up = (_y - 193.1) - (_height / 2); if (hitTest(_root.orangewall)) { _root.orangewall_crate3_hit = true; if ((_root.hit_crate3 == true) and (_root.moveright == true)) { if ((_root.crate3_against_orange_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate3_is_pushed_by_orange_wall == false)) { _x = (_x - ((getBounds(_root).xMax - _root.orangewall.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate3_right_against_orange_wall = true; } } if ((_root.hit_crate3 == true) and (_root.moveleft == true)) { if ((_root.crate3_against_orange_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate3_is_pushed_by_orange_wall == false)) { _x = (_x - ((getBounds(_root).xMin - _root.orangewall.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate3_left_against_orange_wall = true; } } if ((_root.hit_crate3 == true) and (_root.movedown == true)) { if ((_root.crate3_against_orange_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate3_is_pushed_by_orange_wall == false)) { _y = (_y - ((getBounds(_root).yMax - _root.orangewall.getBounds(_root).yMin) + 0.1)); } _root.cant_move_crate3_down_against_orange_wall = true; } if ((_root.hit_crate3 == true) and (_root.moveup == true)) { if ((_root.crate3_against_orange_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate3_is_pushed_by_orange_wall == false)) { _y = (_y - ((getBounds(_root).yMin - _root.orangewall.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate3_up_against_orange_wall = true; } } } else { _root.orangewall_crate3_hit = false; } if (((_root.difference_x_orange_with_crate3_left <= 0.3) && (_root.difference_x_orange_with_crate3_left >= -8)) && (_root.distance_y_between_orangewall_and_crate3 < ((_height / 2) + (_root.orangewall._height / 2)))) { _root.cant_move_crate3_left_against_orange_wall = true; _root.cant_move_crate3_left_against_middle_wall = true; _root.cant_move_crate3_left_against_green_wall = true; _root.cant_move_crate3_left_against_left_wall = true; _root.orange_wall_and_crate3_leftside_touching = true; } else { _root.cant_move_crate3_left_against_orange_wall = false; _root.orange_wall_and_crate3_leftside_touching = false; } if ((((_root.orangewall_movement == true) and (_root.orange_wall_and_crate3_leftside_touching == true)) and (_root.distance_y_between_orangewall_and_crate3 < ((_height / 2) + (_root.orangewall._height / 2)))) and (_currentframe == 1)) { _x = (((_root.orangewall._x + (_root.orangewall._width / 2)) + (_width / 2)) + 0.7); _root.crate3_is_pushed_by_orange_wall = true; } if (((_root.difference_x_ball1_with_crate3_rightside <= 1.5) && (_root.difference_x_ball1_with_crate3_rightside >= -8)) && (_root.distance_y_between_ball1_and_crate3 < ((_height / 2) + (_root.ball1._height / 2)))) { _root.ball1_and_crate3_rightside_touching = true; } else { _root.ball1_and_crate3_rightside_touching = false; } if (((_root.difference_x_ball2_with_crate3_rightside <= 0.3) && (_root.difference_x_ball2_with_crate3_rightside >= -8)) && (_root.distance_y_between_ball2_and_crate3 < ((_height / 2) + (_root.ball2._height / 2)))) { _root.ball2_and_crate3_rightside_touching = true; } else { _root.ball2_and_crate3_rightside_touching = false; } if ((((_root.ball1_and_crate3_rightside_touching == true) and (_root.crate3_is_pushed_by_orange_wall == true)) and (_root.distance_y_between_orangewall_and_crate3 < ((_height / 2) + (_root.orangewall._height / 2)))) and (_root.distance_y_between_ball1_and_crate3 < ((_height / 2) + (_root.ball1._height / 2)))) { _root.ball1._x = (((_root.orangewall._x + (_root.orangewall._width / 2)) + _width) + (_root.ball1._width / 2)) + 0.5; _root.ball1_is_pushed_by_crate3_is_pushed_by_orange_wall = true; } else { _root.ball1_is_pushed_by_crate3_is_pushed_by_orange_wall = false; } if ((((_root.ball2_and_crate3_rightside_touching == true) and (_root.crate3_is_pushed_by_orange_wall == true)) and (_root.distance_y_between_orangewall_and_crate3 < ((_height / 2) + (_root.orangewall._height / 2)))) and (_root.distance_y_between_ball2_and_crate3 < ((_height / 2) + (_root.ball2._height / 2)))) { _root.ball2._x = (((_root.orangewall._x + (_root.orangewall._width / 2)) + _width) + (_root.ball2._width / 2)) + 0.5; _root.ball2_is_pushed_by_crate3_is_pushed_by_orange_wall = true; } else { _root.ball2_is_pushed_by_crate3_is_pushed_by_orange_wall = false; } if (((_root.difference_x_ball1_with_crate3_leftside <= 0.3) && (_root.difference_x_ball1_with_crate3_leftside >= -8)) && (_root.distance_y_between_ball1_and_crate3 < ((_height / 2) + (_root.ball1._height / 2)))) { _root.ball1_and_crate3_leftside_touching = true; } else { _root.ball1_and_crate3_leftside_touching = false; } if (((_root.difference_x_ball2_with_crate3_leftside <= 0.3) && (_root.difference_x_ball2_with_crate3_leftside >= -8)) && (_root.distance_y_between_ball2_and_crate3 < ((_height / 2) + (_root.ball2._height / 2)))) { _root.ball2_and_crate3_leftside_touching = true; } else { _root.ball2_and_crate3_leftside_touching = false; } if (((((_root.ball1_and_crate3_leftside_touching == true) and (_root.ball1_is_pushed_by_orange_wall == true)) and (_root.distance_y_between_ball1_and_crate3 < ((_height / 2) + (_root.ball1._height / 2)))) and (_root.moveright == false)) and (_currentframe == 1)) { _x = (((_root.ball1._x + (_root.ball1._width / 2)) + (_width / 2)) + 0.5); } if ((((_root.ball2_and_crate3_leftside_touching == true) and (_root.ball2_is_pushed_by_orange_wall == true)) and (_root.distance_y_between_ball2_and_crate3 < ((_height / 2) + (_root.ball2._height / 2)))) and (_root.moveright == false)) { _x = (((_root.ball2._x + (_root.ball2._width / 2)) + (_width / 2)) + 0.5); } if ((_root.distance_y_between_orangewall_and_crate3 < ((_height / 2) + (_root.orangewall._height / 2))) && (_root.orangewall_movement == true)) { _root.crate3_against_orange_wall_boundaries_prevention = true; } else { _root.crate3_against_orange_wall_boundaries_prevention = false; } if (((_root.difference_x_orange_with_crate3_right <= 0.3) && (_root.difference_x_orange_with_crate3_right >= -8)) && (_root.distance_y_between_orangewall_and_crate3 < ((_height / 2) + (_root.orangewall._height / 2)))) { _root.cant_move_crate3_right_against_orange_wall = true; _root.cant_move_crate3_right_against_middlewall = true; _root.cant_move_crate3_right_against_green_wall = true; _root.cant_move_crate3_right_against_right_wall = true; } else { _root.cant_move_crate3_right_against_orange_wall = false; } if (_root.crate3_against_orange_wall_boundaries_prevention == false) { if (((_root.difference_y_orange_with_crate3_up <= 0.3) && (_root.difference_y_orange_with_crate3_up >= -8)) && (_root.distance_x_between_orangewall_and_crate3 < ((_width / 2) + (_root.orangewall._width / 2)))) { _root.cant_move_crate3_up_against_orange_wall = true; _root.cant_move_crate3_up_against_top_wall = true; _root.cant_move_crate3_up_against_green_wall = true; _root.cant_move_crate3_up_against_middlewall_insidetop = true; } else { _root.cant_move_crate3_up_against_orange_wall = false; } if (((_root.difference_y_orange_with_crate3_down <= 0.3) && (_root.difference_y_orange_with_crate3_down >= -8)) && (_root.distance_x_between_orangewall_and_crate3 < ((_width / 2) + (_root.orangewall._width / 2)))) { _root.cant_move_crate3_down_against_orange_wall = true; _root.cant_move_crate3_down_against_bottom_wall = true; _root.cant_move_crate3_down_against_green_wall = true; _root.cant_move_crate3_down_against_middlewall_insidebottom = true; } else { _root.cant_move_crate3_down_against_orange_wall = false; } } else if ((((_root.distance_y_between_orangewall_and_crate3 < ((_height / 2) + (_root.orangewall._height / 2))) && (_root.distance_y_between_ball1_and_crate3 < ((_height / 2) + (_root.ball1._height / 2)))) and (_root.difference_x_ball1_with_crate3_rightside <= 0.3)) && (_root.difference_x_ball1_with_crate3_rightside >= -8)) { _root.cant_move_crate3_down_against_orange_wall = true; _root.cant_move_crate3_up_against_orange_wall = true; _root.cant_move_crate3_left_against_orange_wall = true; _root.cant_move_crate3_right_against_orange_wall = true; } else { _root.cant_move_crate3_down_against_orange_wall = false; _root.cant_move_crate3_up_against_orange_wall = false; } if (((((_root.difference_x_ball1_with_crate3_rightside <= 0.5) && (_root.difference_x_ball1_with_crate3_rightside >= -3)) && (_root.distance_between_leftmiddlewall_and_ball <= 0.5)) && (_root.distance_y_between_ball1_and_crate3 < ((_root.ball1._height / 2) + (_height / 2)))) or ((((_root.difference_x_ball2_with_crate3_rightside <= 0.5) && (_root.difference_x_ball2_with_crate3_rightside >= -3)) && (_root.distance_between_leftmiddlewall_and_ball2 <= 0.5)) && (_root.distance_y_between_ball2_and_crate3 < ((_root.ball2._height / 2) + (_height / 2))))) { _root.ball1._x = 2000; _root.ball2._x = 2000; _root.ball_location = false; _root.ball_locator(); _root.orange_hit = true; } if (hitTest(_root.middlewall.middlewall_insidetop) and (_root.moveleft == true)) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.middlewall_insidetop.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate3_left_against_middle_wall = true; } if (((((_x - _root.middlewall._x) - (_root.middlewall._width / 2)) - (_width / 2)) <= 0.3) and (_y < 209.9)) { _root.cant_move_crate3_left_against_middle_wall = true; _root.cant_move_crate3_left_against_orange_wall = true; _root.cant_move_crate3_left_against_green_wall = true; _root.cant_move_crate3_left_against_left_wall = true; } else { _root.cant_move_crate3_left_against_middle_wall = false; } if (hitTest(_root.midwid) and (_root.moveleft == true)) { _x = (_x - ((getBounds(_root).xMin - _root.midwid.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate3_left_against_midwid = true; } if (((Math.abs(((_x - _root.midwid._x) - (_root.midwid._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.midwid._y + (_root.midwid._height / 2)) + (_height / 2)))) and (_y > ((_root.midwid._y - (_root.midwid._height / 2)) - (_height / 2)))) { _root.cant_move_crate3_left_against_midwid = true; } else { _root.cant_move_crate3_left_against_midwid = false; } if (hitTest(_root.midwid) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.midwid.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate3_up_against_midwid = true; } if (((Math.abs(((_y - _root.midwid._y) - (_root.midwid._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.midwid._x + (_root.midwid._width / 2)) + (_width / 2)))) and (_x > ((_root.midwid._x - (_root.midwid._width / 2)) - (_width / 2)))) { _root.cant_move_crate3_up_against_midwid = true; } else { _root.cant_move_crate3_up_against_midwid = false; } if (hitTest(_root.leftwall)) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate3_left_against_left_wall = true; } if ((((_x - _root.leftwall._x) - (_root.leftwall._width / 2)) - (_width / 2)) <= 0.3) { _root.cant_move_crate3_left_against_left_wall = true; _root.cant_move_crate3_left_against_orange_wall = true; _root.cant_move_crate3_left_against_green_wall = true; _root.cant_move_crate3_left_against_middle_wall = true; } else { _root.cant_move_crate3_left_against_left_wall = false; } if (hitTest(_root.rightwall)) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate3_right_against_right_wall = true; } if ((((_root.rightwall._x - _x) - (_root.rightwall._width / 2)) - (_width / 2)) <= 0.3) { _root.cant_move_crate3_right_against_right_wall = true; _root.cant_move_crate3_right_against_orange_wall = true; _root.cant_move_crate3_right_against_green_wall = true; _root.cant_move_crate3_right_against_middle_wall = true; } else { _root.cant_move_crate3_right_against_right_wall = false; } if (hitTest(_root.topwall)) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate3_up_against_top_wall = true; } if ((((_y - _root.topwall._y) - (_root.topwall._height / 2)) - (_height / 2)) <= 0.3) { _root.cant_move_crate3_up_against_top_wall = true; _root.cant_move_crate3_up_against_orange_wall = true; _root.cant_move_crate3_up_against_green_wall = true; } else { _root.cant_move_crate3_up_against_top_wall = false; } if (hitTest(_root.bluewall2)) { _y = (_y - ((getBounds(_root).yMin - _root.bluewall2.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate3_up_against_bluewall2 = true; } if ((((_y - _root.bluewall2._y) - (_root.bluewall2._height / 2)) - (_height / 2)) <= 0.3) { _root.cant_move_crate3_up_against_bluewall2 = true; _root.cant_move_crate3_up_against_orange_wall = true; _root.cant_move_crate3_up_against_green_wall = true; } else { _root.cant_move_crate3_up_against_bluewall2 = false; } if (hitTest(_root.bottomwall)) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate3_down_against_bottom_wall = true; } if ((((_root.bottomwall._y - _y) - (_root.bottomwall._height / 2)) - (_height / 2)) <= 0.3) { _root.cant_move_crate3_down_against_bottom_wall = true; _root.cant_move_crate3_down_against_orange_wall = true; _root.cant_move_crate3_down_against_green_wall = true; } else { _root.cant_move_crate3_down_against_bottom_wall = false; } if (hitTest(_root.middlewall.middlewall_insidetop) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall.middlewall_insidetop.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate3_up_against_middlewall_insidetop = true; } if (((_root.difference_y_middlewall_insidetop_with_crate3_up <= 0.3) && (_root.difference_y_middlewall_insidetop_with_crate3_up >= -8)) && (_root.distance_x_between_middlewall_and_crate3 < ((_width / 2) + (_root.middlewall._width / 2)))) { _root.cant_move_crate3_up_against_middlewall_insidetop = true; _root.cant_move_crate3_up_against_orange_wall = true; _root.cant_move_crate3_up_against_green_wall = true; _root.cant_move_crate3_up_against_top_wall = true; } else { _root.cant_move_crate3_up_against_middlewall_insidetop = false; } if (_root.hit_crate3_2 == true) { if (hitTest(_root.crate4) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.crate4.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate3_up_against_crate4 = true; } if ((((((_y - _root.crate4._y) - (_root.crate4._height / 2)) - (_height / 2)) <= 0.3) and ((((_y - _root.crate4._y) - (_root.crate4._height / 2)) - (_height / 2)) >= 0)) and (Math.abs(_root.crate4._x - _x) < ((_width / 2) + (_root.crate4._width / 2)))) { _root.cant_move_crate3_up_against_crate4 = true; _root.cant_move_crate3_up_against_top_wall = true; _root.cant_move_crate3_up_against_orange_wall = true; _root.cant_move_crate3_up_against_green_wall = true; } else { _root.cant_move_crate3_up_against_crate4 = false; } if (hitTest(_root.crate4) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.crate4.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate3_down_against_crate4 = true; } if ((((((_root.crate4._y - _y) - (_root.crate4._height / 2)) - (_height / 2)) <= 0.3) and ((((_root.crate4._y - _y) - (_root.crate4._height / 2)) - (_height / 2)) >= 0)) and (Math.abs(_root.crate4._x - _x) < ((_width / 2) + (_root.crate4._width / 2)))) { _root.cant_move_crate3_down_against_crate4 = true; _root.cant_move_crate3_down_against_bottom_wall = true; _root.cant_move_crate3_down_against_orange_wall = true; _root.cant_move_crate3_down_against_green_wall = true; } else { _root.cant_move_crate3_down_against_crate4 = false; } if (hitTest(_root.crate4) and (_root.moveleft == true)) { _x = (_x - ((getBounds(_root).xMin - _root.crate4.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate3_left_against_crate4 = true; } if ((((((_x - _root.crate4._x) - (_root.crate4._width / 2)) - (_width / 2)) <= 0.3) and ((((_x - _root.crate4._x) - (_root.crate4._width / 2)) - (_width / 2)) >= 0)) and (Math.abs(_root.crate4._y - _y) < ((_height / 2) + (_root.crate4._height / 2)))) { _root.cant_move_crate3_left_against_crate4 = true; _root.cant_move_crate3_left_against_left_wall = true; _root.cant_move_crate3_left_against_orange_wall = true; _root.cant_move_crate3_left_against_green_wall = true; _root.cant_move_crate3_left_against_middle_wall = true; } else { _root.cant_move_crate3_left_against_crate4 = false; } if (hitTest(_root.crate4) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.crate4.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate3_right_against_crate4 = true; } if ((((((_root.crate4._x - _x) - (_root.crate4._width / 2)) - (_width / 2)) <= 0.3) and ((((_root.crate4._x - _x) - (_root.crate4._width / 2)) - (_width / 2)) >= 0)) and (Math.abs(_root.crate4._y - _y) < ((_height / 2) + (_root.crate4._height / 2)))) { _root.cant_move_crate3_right_against_crate4 = true; _root.cant_move_crate3_right_against_right_wall = true; _root.cant_move_crate3_right_against_orange_wall = true; _root.cant_move_crate3_right_against_green_wall = true; _root.cant_move_crate3_right_against_middle_wall = true; } else { _root.cant_move_crate3_right_against_crate4 = false; } if (hitTest(_root.crate5) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.crate5.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate3_up_against_crate5 = true; } if ((((((_y - _root.crate5._y) - (_root.crate5._height / 2)) - (_height / 2)) <= 0.3) and ((((_y - _root.crate5._y) - (_root.crate5._height / 2)) - (_height / 2)) >= 0)) and (Math.abs(_root.crate5._x - _x) < ((_width / 2) + (_root.crate5._width / 2)))) { _root.cant_move_crate3_up_against_crate5 = true; _root.cant_move_crate3_up_against_top_wall = true; _root.cant_move_crate3_up_against_orange_wall = true; _root.cant_move_crate3_up_against_green_wall = true; } else { _root.cant_move_crate3_up_against_crate5 = false; } if (hitTest(_root.crate5) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.crate5.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate3_down_against_crate5 = true; } if ((((((_root.crate5._y - _y) - (_root.crate5._height / 2)) - (_height / 2)) <= 0.3) and ((((_root.crate5._y - _y) - (_root.crate5._height / 2)) - (_height / 2)) >= 0)) and (Math.abs(_root.crate5._x - _x) < ((_width / 2) + (_root.crate5._width / 2)))) { _root.cant_move_crate3_down_against_crate5 = true; _root.cant_move_crate3_down_against_bottom_wall = true; _root.cant_move_crate3_down_against_orange_wall = true; _root.cant_move_crate3_down_against_green_wall = true; } else { _root.cant_move_crate3_down_against_crate5 = false; } if (hitTest(_root.crate5) and (_root.moveleft == true)) { _x = (_x - ((getBounds(_root).xMin - _root.crate5.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate3_left_against_crate5 = true; } if ((((((_x - _root.crate5._x) - (_root.crate5._width / 2)) - (_width / 2)) <= 0.3) and ((((_x - _root.crate5._x) - (_root.crate5._width / 2)) - (_width / 2)) >= 0)) and (Math.abs(_root.crate5._y - _y) < ((_height / 2) + (_root.crate5._height / 2)))) { _root.cant_move_crate3_left_against_crate5 = true; _root.cant_move_crate3_left_against_left_wall = true; _root.cant_move_crate3_left_against_orange_wall = true; _root.cant_move_crate3_left_against_green_wall = true; _root.cant_move_crate3_left_against_middle_wall = true; } else { _root.cant_move_crate3_left_against_crate5 = false; } if (hitTest(_root.crate5) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.crate5.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate3_right_against_crate5 = true; } if ((((((_root.crate5._x - _x) - (_root.crate5._width / 2)) - (_width / 2)) <= 0.3) and ((((_root.crate5._x - _x) - (_root.crate5._width / 2)) - (_width / 2)) >= 0)) and (Math.abs(_root.crate5._y - _y) < ((_height / 2) + (_root.crate5._height / 2)))) { _root.cant_move_crate3_right_against_crate5 = true; _root.cant_move_crate3_right_against_right_wall = true; _root.cant_move_crate3_right_against_orange_wall = true; _root.cant_move_crate3_right_against_green_wall = true; _root.cant_move_crate3_right_against_middle_wall = true; } else { _root.cant_move_crate3_right_against_crate5 = false; } } if (hitTest(_root.greenwall)) { _root.greenwall_crate3_hit = true; if ((_root.hit_crate3 == true) and (_root.moveright == true)) { if ((_root.crate3_against_green_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate3_is_pushed_by_green_wall == false)) { _x = (_x - ((getBounds(_root).xMax - _root.greenwall.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate3_right_against_green_wall = true; } } if ((_root.hit_crate3 == true) and (_root.moveleft == true)) { if ((_root.crate3_against_green_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate3_is_pushed_by_green_wall == false)) { _x = (_x - ((getBounds(_root).xMin - _root.greenwall.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate3_left_against_green_wall = true; } } if ((_root.hit_crate3 == true) and (_root.movedown == true)) { if ((_root.crate3_against_green_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate3_is_pushed_by_green_wall == false)) { _y = (_y - ((getBounds(_root).yMax - _root.greenwall.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate3_down_against_green_wall = true; } } if ((_root.hit_crate3 == true) and (_root.moveup == true)) { if ((_root.crate3_against_green_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate3_is_pushed_by_green_wall == false)) { _y = (_y - ((getBounds(_root).yMin - _root.greenwall.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate3_up_against_green_wall = true; } } } else { _root.greenwall_crate3_hit = false; } if (((_root.difference_x_green_with_crate3_right <= 0.3) && (_root.difference_x_green_with_crate3_right >= -8)) && (_root.distance_y_between_greenwall_and_crate3 < ((_height / 2) + (_root.greenwall._height / 2)))) { _root.cant_move_crate3_right_against_green_wall = true; _root.cant_move_crate3_right_against_middle_wall = true; _root.cant_move_crate3_right_against_orange_wall = true; _root.cant_move_crate3_right_against_right_wall = true; _root.green_wall_and_crate3_rightside_touching = true; } else { _root.cant_move_crate3_right_against_green_wall = false; _root.green_wall_and_crate3_rightside_touching = false; } if ((((_root.greenwall_movement == true) and (_root.green_wall_and_crate3_rightside_touching == true)) and (_root.distance_y_between_greenwall_and_crate3 < ((_height / 2) + (_root.greenwall._height / 2)))) and (_currentframe == 1)) { _x = (((_root.greenwall._x - (_root.greenwall._width / 2)) - (_width / 2)) - 0.7); _root.crate3_is_pushed_by_green_wall = true; } if (((_root.difference_x_ball1_with_crate3_leftside <= 0.3) && (_root.difference_x_ball1_with_crate3_leftside >= -8)) && (_root.distance_y_between_ball1_and_crate3 < ((_height / 2) + (_root.ball1._height / 2)))) { _root.ball1_and_crate3_leftside_touching = true; } else { _root.ball1_and_crate3_leftside_touching = false; } if (((_root.difference_x_ball2_with_crate3_leftside <= 0.3) && (_root.difference_x_ball2_with_crate3_leftside >= -8)) && (_root.distance_y_between_ball2_and_crate3 < ((_height / 2) + (_root.ball2._height / 2)))) { _root.ball2_and_crate3_leftside_touching = true; } else { _root.ball2_and_crate3_leftside_touching = false; } if ((((_root.ball1_and_crate3_leftside_touching == true) and (_root.crate3_is_pushed_by_green_wall == true)) and (_root.distance_y_between_greenwall_and_crate3 < ((_height / 2) + (_root.greenwall._height / 2)))) and (_root.distance_y_between_ball1_and_crate3 < ((_height / 2) + (_root.ball1._height / 2)))) { _root.ball1._x = (((_root.greenwall._x - (_root.greenwall._width / 2)) - _width) - (_root.ball1._width / 2)) - 0.5; _root.ball1_is_pushed_by_crate3_is_pushed_by_green_wall = true; } else { _root.ball1_is_pushed_by_crate3_is_pushed_by_green_wall = false; } if ((((_root.ball2_and_crate3_leftside_touching == true) and (_root.crate3_is_pushed_by_green_wall == true)) and (_root.distance_y_between_greenwall_and_crate3 < ((_height / 2) + (_root.greenwall._height / 2)))) and (_root.distance_y_between_ball2_and_crate3 < ((_height / 2) + (_root.ball2._height / 2)))) { _root.ball2._x = (((_root.greenwall._x - (_root.greenwall._width / 2)) - _width) - (_root.ball2._width / 2)) - 0.5; _root.ball2_is_pushed_by_crate3_is_pushed_by_green_wall = true; } else { _root.ball2_is_pushed_by_crate3_is_pushed_by_green_wall = false; } if (((((_root.ball1_and_crate3_rightside_touching == true) and (_root.ball1_is_pushed_by_green_wall == true)) and (_root.distance_y_between_ball1_and_crate3 < ((_height / 2) + (_root.ball1._height / 2)))) and (_root.moveleft == false)) and (_currentframe == 1)) { _root.cant_move_crate3_right_against_green_wall = false; _x = (((_root.ball1._x - (_root.ball1._width / 2)) - (_width / 2)) - 0.5); _root.crate3_is_pushed_by_ball1_is_pushed_by_greenwall = true; } else { _root.crate3_is_pushed_by_ball1_is_pushed_by_greenwall = false; } if ((((_root.ball2_and_crate3_rightside_touching == true) and (_root.ball2_is_pushed_by_green_wall == true)) and (_root.distance_y_between_ball2_and_crate3 < ((_height / 2) + (_root.ball2._height / 2)))) and (_root.moveleft == false)) { _x = (((_root.ball2._x - (_root.ball2._width / 2)) - (_width / 2)) - 0.5); _root.crate3_is_pushed_by_ball2_is_pushed_by_greenwall = true; } else { _root.crate3_is_pushed_by_ball2_is_pushed_by_greenwall = false; } if ((_root.distance_y_between_greenwall_and_crate3 < ((_height / 2) + (_root.greenwall._height / 2))) and (_root.greenwall_movement == true)) { _root.crate3_against_green_wall_boundaries_prevention = true; } else { _root.crate3_against_green_wall_boundaries_prevention = false; } if (((_root.distance_y_between_greenwall_and_crate3 < ((_height / 2) + (_root.greenwall._height / 2))) and (_root.distance_y_between_greenwall_and_ball <= ((_root.ball1._height / 2) + (_root.greenwall._height / 2)))) and (_root.greenwall_movement == true)) { _root.crate3_against_green_wall_boundaries_prevention2 = true; } else { _root.crate3_against_green_wall_boundaries_prevention2 = false; } if (((_root.difference_x_green_with_crate3_left <= 0.3) && (_root.difference_x_green_with_crate3_left >= -8)) && (_root.distance_y_between_greenwall_and_crate3 < ((_height / 2) + (_root.greenwall._height / 2)))) { _root.cant_move_crate3_left_against_green_wall = true; _root.cant_move_crate3_left_against_middlewall = true; _root.cant_move_crate3_left_against_orange_wall = true; _root.cant_move_crate3_left_against_left_wall = true; } else { _root.cant_move_crate3_left_against_green_wall = false; } if (_root.crate3_against_green_wall_boundaries_prevention == false) { if (((_root.difference_y_green_with_crate3_up <= 0.3) && (_root.difference_y_green_with_crate3_up >= -8)) && (_root.distance_x_between_greenwall_and_crate3 < ((_width / 2) + (_root.greenwall._width / 2)))) { _root.cant_move_crate3_up_against_green_wall = true; _root.cant_move_crate3_up_against_top_wall = true; _root.cant_move_crate3_up_against_orange_wall = true; _root.cant_move_crate3_up_against_middlewall_insidetop = true; } else { _root.cant_move_crate3_up_against_green_wall = false; } if (((_root.difference_y_green_with_crate3_down <= 0.3) && (_root.difference_y_green_with_crate3_down >= -8)) && (_root.distance_x_between_greenwall_and_crate3 < ((_width / 2) + (_root.greenwall._width / 2)))) { _root.cant_move_crate3_down_against_green_wall = true; _root.cant_move_crate3_down_against_bottom_wall = true; _root.cant_move_crate3_down_against_orange_wall = true; _root.cant_move_crate3_down_against_middlewall_insidebottom = true; } else { _root.cant_move_crate3_down_against_green_wall = false; } } else if ((((_root.distance_y_between_greenwall_and_crate3 < ((_height / 2) + (_root.greenwall._height / 2))) && (_root.distance_y_between_ball1_and_crate3 < ((_height / 2) + (_root.ball1._height / 2)))) and (_root.difference_x_ball1_with_crate3_leftside <= 0.3)) && (_root.difference_x_ball1_with_crate3_leftside >= -8)) { _root.cant_move_crate3_down_against_green_wall = true; _root.cant_move_crate3_up_against_green_wall = true; _root.cant_move_crate3_left_against_green_wall = true; _root.cant_move_crate3_right_against_green_wall = true; } else { _root.cant_move_crate3_down_against_green_wall = false; _root.cant_move_crate3_up_against_green_wall = false; } if (((((_root.difference_x_ball1_with_crate3_leftside <= 0.7) && (_root.difference_x_ball1_with_crate3_leftside >= -6)) && (_root.distance_between_rightmiddlewall_and_ball <= 0.5)) && (_root.distance_y_between_ball1_and_crate3 < ((_root.ball1._height / 2) + (_height / 2)))) or ((((_root.difference_x_ball2_with_crate3_leftside <= 0.5) && (_root.difference_x_ball2_with_crate3_leftside >= -3)) && (_root.distance_between_rightmiddlewall_and_ball2 <= 0.5)) && (_root.distance_y_between_ball2_and_crate3 < ((_root.ball2._height / 2) + (_height / 2))))) { _root.ball_location = false; _root.green_hit_right = true; _root.ball1._x = 2000; _root.ball2._x = 2000; _root.cant_move_crate3_up_against_green_wall = false; _root.cant_move_crate3_down_against_green_wall = false; trace("pooppp"); } if (((((_root.difference_x_ball1_with_crate3_leftside <= 0.7) && (_root.difference_x_ball1_with_crate3_leftside >= -6)) && (_root.distance_between_lb_and_ball <= 0.5)) && (_root.distance_y_between_ball1_and_crate3 < ((_root.ball1._height / 2) + (_height / 2)))) or ((((_root.difference_x_ball2_with_crate3_leftside <= 0.5) && (_root.difference_x_ball2_with_crate3_leftside >= -3)) && (_root.distance_between_lb_and_ball2 <= 0.5)) && (_root.distance_y_between_ball2_and_crate3 < ((_root.ball2._height / 2) + (_height / 2))))) { _root.ball_location = false; _root.green_hit_left = true; _root.ball1._x = 2000; _root.ball2._x = 2000; _root.cant_move_crate3_up_against_green_wall = false; _root.cant_move_crate3_down_against_green_wall = false; trace("pooppp"); } if ((((_root.difference_x_crate3_leftside_with_lb <= 0.3) && (_root.difference_x_crate3_leftside_with_lb >= -8)) or (((_root.difference_x_crate3_leftside_with_bluewall2 <= 1) && (_root.difference_x_crate3_leftside_with_bluewall2 >= -8)) && (_y < 426.1))) && (((_root.crate3_is_pushed_by_green_wall == true) or (_root.crate3_is_pushed_by_ball1_is_pushed_by_greenwall == true)) or (_root.crate3_is_pushed_by_ball2_is_pushed_by_greenwall == true))) { gotoAndStop (2); _root.greenwall_movement = false; } }
Instance of Symbol 1071 MovieClip "crate4" in Frame 16
onClipEvent (load) { _root.cant_move_crate4_right_against_middle_wall = false; _root.cant_move_crate4_right_against_orange_wall = false; _root.cant_move_crate4_left_against_orange_wall = false; _root.cant_move_crate4_down_against_orange_wall = false; _root.cant_move_crate4_up_against_orange_wall = false; _root.hit_crate4 = false; _root.orange_wall_and_crate4_leftside_touching = false; _root.crate4_against_orange_wall_boundaries_prevention = false; _root.ball1_is_pushed_by_crate4_is_pushed_by_orange_wall = false; _root.ball1_and_crate4_rightside_touching = false; _root.ball1_and_crate4_leftside_touching = false; _root.ball2_is_pushed_by_crate4_is_pushed_by_orange_wall = false; _root.ball2_and_crate4_rightside_touching = false; _root.ball2_and_crate4_leftside_touching = false; _root.cant_move_crate4_right_against_right_wall = false; _root.cant_move_crate4_left_against_left_wall = false; _root.cant_move_crate4_left_against_middle_wall = false; _root.cant_move_crate4_right_against_green_wall = false; _root.cant_move_crate4_left_against_green_wall = false; _root.cant_move_crate4_down_against_green_wall = false; _root.cant_move_crate4_up_against_green_wall = false; _root.cant_move_crate4_up_against_bluewall2 = false; _root.cant_move_crate4_up_against_middlewall_insidetop = false; _root.cant_move_crate4_down_against_middlewall_insidebottom = false; _root.cant_move_crate4_left_against_midwid = false; _root.cant_move_crate4_up_against_midwid = false; _root.cant_move_crate4_up_against_crate3 = false; _root.cant_move_crate4_left_against_crate3 = false; _root.cant_move_crate4_down_against_crate3 = false; _root.cant_move_crate4_right_against_crate3 = false; _root.cant_move_crate4_up_against_crate5 = false; _root.cant_move_crate4_left_against_crate5 = false; _root.cant_move_crate4_down_against_crate5 = false; _root.cant_move_crate4_right_against_crate5 = false; _root.green_wall_and_crate4_rightside_touching = false; _root.crate4_against_green_wall_boundaries_prevention = false; _root.ball1_is_pushed_by_crate4_is_pushed_by_green_wall = false; _root.ball2_is_pushed_by_crate4_is_pushed_by_green_wall = false; _root.crate4_is_pushed_by_ball1_is_pushed_by_greenwall = false; _root.crate4_is_pushed_by_ball2_is_pushed_by_greenwall = false; _root.crate4_is_pushed_by_green_wall = false; } onClipEvent (enterFrame) { _root.difference_x_orange_with_crate4_left = ((_x - (_width / 2)) - _root.orangewall._x) - (_root.orangewall._width / 2); _root.difference_x_orange_with_crate4_right = ((_root.orangewall._x - (_root.orangewall._width / 2)) - _x) - (_width / 2); _root.difference_y_orange_with_crate4_up = ((_y - (_height / 2)) - _root.orangewall._y) - (_root.orangewall._height / 2); _root.difference_y_orange_with_crate4_down = ((_root.orangewall._y - (_root.orangewall._height / 2)) - _y) - (_height / 2); _root.distance_x_between_orangewall_and_crate4 = Math.abs(_root.orangewall._x - _x); _root.distance_y_between_orangewall_and_crate4 = Math.abs(_root.orangewall._y - _y); _root.distance_y_between_ball1_and_crate4 = Math.abs(_root.ball1._y - _y); _root.difference_x_ball1_with_crate4_rightside = ((_root.ball1._x - _x) - (_width / 2)) - (_root.ball1._width / 2); _root.difference_x_ball1_with_crate4_leftside = ((_x - _root.ball1._x) - (_width / 2)) - (_root.ball1._width / 2); _root.distance_y_between_ball2_and_crate4 = Math.abs(_root.ball2._y - _y); _root.difference_x_ball2_with_crate4_rightside = ((_root.ball2._x - _x) - (_width / 2)) - (_root.ball2._width / 2); _root.difference_x_ball2_with_crate4_leftside = ((_x - _root.ball2._x) - (_width / 2)) - (_root.ball2._width / 2); _root.difference_x_green_with_crate4_left = ((_x - (_width / 2)) - _root.greenwall._x) - (_root.greenwall._width / 2); _root.difference_x_green_with_crate4_right = ((_root.greenwall._x - (_root.greenwall._width / 2)) - _x) - (_width / 2); _root.difference_y_green_with_crate4_up = ((_y - (_height / 2)) - _root.greenwall._y) - (_root.greenwall._height / 2); _root.difference_y_green_with_crate4_down = ((_root.greenwall._y - (_root.greenwall._height / 2)) - _y) - (_height / 2); _root.distance_x_between_greenwall_and_crate4 = Math.abs(_root.greenwall._x - _x); _root.distance_y_between_greenwall_and_crate4 = Math.abs(_root.greenwall._y - _y); _root.difference_x_crate4_leftside_with_lb = ((_x - (_width / 2)) - (_root.lb._width / 2)) - _root.lb._x; _root.difference_x_crate4_leftside_with_bluewall2 = ((_x - (_width / 2)) - (_root.bluewall2._width / 2)) - _root.bluewall2._x; _root.distance_x_between_middlewall_and_crate4 = Math.abs(_root.middlewall._x - _x); _root.difference_y_middlewall_insidebottom_with_crate4_down = ((423.8 - (_root.middlewall.middlewall_insidebottom._height / 2)) - (_height / 2)) - _y; _root.difference_y_middlewall_insidetop_with_crate4_up = (_y - 194) - (_height / 2); if (hitTest(_root.orangewall)) { _root.orangewall_crate4_hit = true; if ((_root.hit_crate4 == true) and (_root.moveright == true)) { if ((_root.crate4_against_orange_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate4_is_pushed_by_orange_wall == false)) { _x = (_x - ((getBounds(_root).xMax - _root.orangewall.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate4_right_against_orange_wall = true; } } if ((_root.hit_crate4 == true) and (_root.moveleft == true)) { if ((_root.crate4_against_orange_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate4_is_pushed_by_orange_wall == false)) { _x = (_x - ((getBounds(_root).xMin - _root.orangewall.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate4_left_against_orange_wall = true; } } if ((_root.hit_crate4 == true) and (_root.movedown == true)) { if ((_root.crate4_against_orange_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate4_is_pushed_by_orange_wall == false)) { _y = (_y - ((getBounds(_root).yMax - _root.orangewall.getBounds(_root).yMin) + 0.1)); } _root.cant_move_crate4_down_against_orange_wall = true; } if ((_root.hit_crate4 == true) and (_root.moveup == true)) { if ((_root.crate4_against_orange_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate4_is_pushed_by_orange_wall == false)) { _y = (_y - ((getBounds(_root).yMin - _root.orangewall.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate4_up_against_orange_wall = true; } } } else { _root.orangewall_crate4_hit = false; } if (((_root.difference_x_orange_with_crate4_left <= 0.3) && (_root.difference_x_orange_with_crate4_left >= -8)) && (_root.distance_y_between_orangewall_and_crate4 < ((_height / 2) + (_root.orangewall._height / 2)))) { _root.cant_move_crate4_left_against_orange_wall = true; _root.cant_move_crate4_left_against_middle_wall = true; _root.cant_move_crate4_left_against_green_wall = true; _root.cant_move_crate4_left_against_left_wall = true; _root.orange_wall_and_crate4_leftside_touching = true; } else { _root.cant_move_crate4_left_against_orange_wall = false; _root.orange_wall_and_crate4_leftside_touching = false; } if ((((_root.orangewall_movement == true) and (_root.orange_wall_and_crate4_leftside_touching == true)) and (_root.distance_y_between_orangewall_and_crate4 < ((_height / 2) + (_root.orangewall._height / 2)))) and (_currentframe == 1)) { _x = (((_root.orangewall._x + (_root.orangewall._width / 2)) + (_width / 2)) + 0.7); _root.crate4_is_pushed_by_orange_wall = true; } if (((_root.difference_x_ball1_with_crate4_rightside <= 1.5) && (_root.difference_x_ball1_with_crate4_rightside >= -8)) && (_root.distance_y_between_ball1_and_crate4 < ((_height / 2) + (_root.ball1._height / 2)))) { _root.ball1_and_crate4_rightside_touching = true; } else { _root.ball1_and_crate4_rightside_touching = false; } if (((_root.difference_x_ball2_with_crate4_rightside <= 0.3) && (_root.difference_x_ball2_with_crate4_rightside >= -8)) && (_root.distance_y_between_ball2_and_crate4 < ((_height / 2) + (_root.ball2._height / 2)))) { _root.ball2_and_crate4_rightside_touching = true; } else { _root.ball2_and_crate4_rightside_touching = false; } if ((((_root.ball1_and_crate4_rightside_touching == true) and (_root.crate4_is_pushed_by_orange_wall == true)) and (_root.distance_y_between_orangewall_and_crate4 < ((_height / 2) + (_root.orangewall._height / 2)))) and (_root.distance_y_between_ball1_and_crate4 < ((_height / 2) + (_root.ball1._height / 2)))) { _root.ball1._x = (((_root.orangewall._x + (_root.orangewall._width / 2)) + _width) + (_root.ball1._width / 2)) + 0.5; _root.ball1_is_pushed_by_crate4_is_pushed_by_orange_wall = true; } else { _root.ball1_is_pushed_by_crate4_is_pushed_by_orange_wall = false; } if ((((_root.ball2_and_crate4_rightside_touching == true) and (_root.crate4_is_pushed_by_orange_wall == true)) and (_root.distance_y_between_orangewall_and_crate4 < ((_height / 2) + (_root.orangewall._height / 2)))) and (_root.distance_y_between_ball2_and_crate4 < ((_height / 2) + (_root.ball2._height / 2)))) { _root.ball2._x = (((_root.orangewall._x + (_root.orangewall._width / 2)) + _width) + (_root.ball2._width / 2)) + 0.5; _root.ball2_is_pushed_by_crate4_is_pushed_by_orange_wall = true; } else { _root.ball2_is_pushed_by_crate4_is_pushed_by_orange_wall = false; } if (((_root.difference_x_ball1_with_crate4_leftside <= 0.3) && (_root.difference_x_ball1_with_crate4_leftside >= -8)) && (_root.distance_y_between_ball1_and_crate4 < ((_height / 2) + (_root.ball1._height / 2)))) { _root.ball1_and_crate4_leftside_touching = true; } else { _root.ball1_and_crate4_leftside_touching = false; } if (((_root.difference_x_ball2_with_crate4_leftside <= 0.3) && (_root.difference_x_ball2_with_crate4_leftside >= -8)) && (_root.distance_y_between_ball2_and_crate4 < ((_height / 2) + (_root.ball2._height / 2)))) { _root.ball2_and_crate4_leftside_touching = true; } else { _root.ball2_and_crate4_leftside_touching = false; } if (((((_root.ball1_and_crate4_leftside_touching == true) and (_root.ball1_is_pushed_by_orange_wall == true)) and (_root.distance_y_between_ball1_and_crate4 < ((_height / 2) + (_root.ball1._height / 2)))) and (_root.moveright == false)) and (_currentframe == 1)) { _x = (((_root.ball1._x + (_root.ball1._width / 2)) + (_width / 2)) + 0.5); } if ((((_root.ball2_and_crate4_leftside_touching == true) and (_root.ball2_is_pushed_by_orange_wall == true)) and (_root.distance_y_between_ball2_and_crate4 < ((_height / 2) + (_root.ball2._height / 2)))) and (_root.moveright == false)) { _x = (((_root.ball2._x + (_root.ball2._width / 2)) + (_width / 2)) + 0.5); } if ((_root.distance_y_between_orangewall_and_crate4 < ((_height / 2) + (_root.orangewall._height / 2))) && (_root.orangewall_movement == true)) { _root.crate4_against_orange_wall_boundaries_prevention = true; } else { _root.crate4_against_orange_wall_boundaries_prevention = false; } if (((_root.difference_x_orange_with_crate4_right <= 0.3) && (_root.difference_x_orange_with_crate4_right >= -8)) && (_root.distance_y_between_orangewall_and_crate4 < ((_height / 2) + (_root.orangewall._height / 2)))) { _root.cant_move_crate4_right_against_orange_wall = true; _root.cant_move_crate4_right_against_middlewall = true; _root.cant_move_crate4_right_against_green_wall = true; _root.cant_move_crate4_right_against_right_wall = true; } else { _root.cant_move_crate4_right_against_orange_wall = false; } if (_root.crate4_against_orange_wall_boundaries_prevention == false) { if (((_root.difference_y_orange_with_crate4_up <= 0.3) && (_root.difference_y_orange_with_crate4_up >= -8)) && (_root.distance_x_between_orangewall_and_crate4 < ((_width / 2) + (_root.orangewall._width / 2)))) { _root.cant_move_crate4_up_against_orange_wall = true; _root.cant_move_crate4_up_against_top_wall = true; _root.cant_move_crate4_up_against_green_wall = true; _root.cant_move_crate4_up_against_middlewall_insidetop = true; } else { _root.cant_move_crate4_up_against_orange_wall = false; } if (((_root.difference_y_orange_with_crate4_down <= 0.3) && (_root.difference_y_orange_with_crate4_down >= -8)) && (_root.distance_x_between_orangewall_and_crate4 < ((_width / 2) + (_root.orangewall._width / 2)))) { _root.cant_move_crate4_down_against_orange_wall = true; _root.cant_move_crate4_down_against_bottom_wall = true; _root.cant_move_crate4_down_against_green_wall = true; _root.cant_move_crate4_down_against_middlewall_insidebottom = true; } else { _root.cant_move_crate4_down_against_orange_wall = false; } } else if ((((_root.distance_y_between_orangewall_and_crate4 < ((_height / 2) + (_root.orangewall._height / 2))) && (_root.distance_y_between_ball1_and_crate4 < ((_height / 2) + (_root.ball1._height / 2)))) and (_root.difference_x_ball1_with_crate4_rightside <= 0.3)) && (_root.difference_x_ball1_with_crate4_rightside >= -8)) { _root.cant_move_crate4_down_against_orange_wall = true; _root.cant_move_crate4_up_against_orange_wall = true; _root.cant_move_crate4_left_against_orange_wall = true; _root.cant_move_crate4_right_against_orange_wall = true; } else { _root.cant_move_crate4_down_against_orange_wall = false; _root.cant_move_crate4_up_against_orange_wall = false; } if (((((_root.difference_x_ball1_with_crate4_rightside <= 0.5) && (_root.difference_x_ball1_with_crate4_rightside >= -3)) && (_root.distance_between_leftmiddlewall_and_ball <= 0.5)) && (_root.distance_y_between_ball1_and_crate4 < ((_root.ball1._height / 2) + (_height / 2)))) or ((((_root.difference_x_ball2_with_crate4_rightside <= 0.5) && (_root.difference_x_ball2_with_crate4_rightside >= -3)) && (_root.distance_between_leftmiddlewall_and_ball2 <= 0.5)) && (_root.distance_y_between_ball2_and_crate4 < ((_root.ball2._height / 2) + (_height / 2))))) { _root.ball1._x = 2000; _root.ball2._x = 2000; _root.ball_location = false; _root.ball_locator(); _root.orange_hit = true; } if (hitTest(_root.middlewall.middlewall_insidetop) and (_root.moveleft == true)) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.middlewall_insidetop.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate4_left_against_middle_wall = true; } if (((((_x - _root.middlewall._x) - (_root.middlewall._width / 2)) - (_width / 2)) <= 0.3) and (_y < 209.9)) { _root.cant_move_crate4_left_against_middle_wall = true; _root.cant_move_crate4_left_against_orange_wall = true; _root.cant_move_crate4_left_against_green_wall = true; _root.cant_move_crate4_left_against_left_wall = true; } else { _root.cant_move_crate4_left_against_middle_wall = false; } if (hitTest(_root.leftwall)) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate4_left_against_left_wall = true; } if ((((_x - _root.leftwall._x) - (_root.leftwall._width / 2)) - (_width / 2)) <= 0.3) { _root.cant_move_crate4_left_against_left_wall = true; _root.cant_move_crate4_left_against_orange_wall = true; _root.cant_move_crate4_left_against_green_wall = true; _root.cant_move_crate4_left_against_middle_wall = true; } else { _root.cant_move_crate4_left_against_left_wall = false; } if (hitTest(_root.midwid) and (_root.moveleft == true)) { _x = (_x - ((getBounds(_root).xMin - _root.midwid.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate4_left_against_midwid = true; } if (((Math.abs(((_x - _root.midwid._x) - (_root.midwid._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.midwid._y + (_root.midwid._height / 2)) + (_height / 2)))) and (_y > ((_root.midwid._y - (_root.midwid._height / 2)) - (_height / 2)))) { _root.cant_move_crate4_left_against_midwid = true; } else { _root.cant_move_crate4_left_against_midwid = false; } if (hitTest(_root.midwid) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.midwid.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate4_up_against_midwid = true; } if (((Math.abs(((_y - _root.midwid._y) - (_root.midwid._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.midwid._x + (_root.midwid._width / 2)) + (_width / 2)))) and (_x > ((_root.midwid._x - (_root.midwid._width / 2)) - (_width / 2)))) { _root.cant_move_crate4_up_against_midwid = true; } else { _root.cant_move_crate4_up_against_midwid = false; } if (hitTest(_root.rightwall)) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate4_right_against_right_wall = true; } if ((((_root.rightwall._x - _x) - (_root.rightwall._width / 2)) - (_width / 2)) <= 0.3) { _root.cant_move_crate4_right_against_right_wall = true; _root.cant_move_crate4_right_against_orange_wall = true; _root.cant_move_crate4_right_against_green_wall = true; _root.cant_move_crate4_right_against_middle_wall = true; } else { _root.cant_move_crate4_right_against_right_wall = false; } if (hitTest(_root.topwall)) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate4_up_against_top_wall = true; } if ((((_y - _root.topwall._y) - (_root.topwall._height / 2)) - (_height / 2)) <= 0.3) { _root.cant_move_crate4_up_against_top_wall = true; _root.cant_move_crate4_up_against_orange_wall = true; _root.cant_move_crate4_up_against_green_wall = true; } else { _root.cant_move_crate4_up_against_top_wall = false; } if (hitTest(_root.bluewall2)) { _y = (_y - ((getBounds(_root).yMin - _root.bluewall2.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate4_up_against_bluewall2 = true; } if ((((_y - _root.bluewall2._y) - (_root.bluewall2._height / 2)) - (_height / 2)) <= 0.3) { _root.cant_move_crate4_up_against_bluewall2 = true; _root.cant_move_crate4_up_against_orange_wall = true; _root.cant_move_crate4_up_against_green_wall = true; } else { _root.cant_move_crate4_up_against_bluewall2 = false; } if (hitTest(_root.bottomwall)) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate4_down_against_bottom_wall = true; } if ((((_root.bottomwall._y - _y) - (_root.bottomwall._height / 2)) - (_height / 2)) <= 0.3) { _root.cant_move_crate4_down_against_bottom_wall = true; _root.cant_move_crate4_down_against_orange_wall = true; _root.cant_move_crate4_down_against_green_wall = true; } else { _root.cant_move_crate4_down_against_bottom_wall = false; } if (hitTest(_root.middlewall.middlewall_insidetop) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall.middlewall_insidetop.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate4_up_against_middlewall_insidetop = true; } if (((_root.difference_y_middlewall_insidetop_with_crate4_up <= 0.3) && (_root.difference_y_middlewall_insidetop_with_crate4_up >= -8)) && (_root.distance_x_between_middlewall_and_crate4 < ((_width / 2) + (_root.middlewall._width / 2)))) { _root.cant_move_crate4_up_against_middlewall_insidetop = true; _root.cant_move_crate4_up_against_orange_wall = true; _root.cant_move_crate4_up_against_green_wall = true; _root.cant_move_crate4_up_against_top_wall = true; } else { _root.cant_move_crate4_up_against_middlewall_insidetop = false; } if (_root.hit_crate4_2) { if (hitTest(_root.crate3) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.crate3.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate4_up_against_crate3 = true; } if ((((((_y - _root.crate3._y) - (_root.crate3._height / 2)) - (_height / 2)) <= 0.3) and ((((_y - _root.crate3._y) - (_root.crate3._height / 2)) - (_height / 2)) >= 0)) and (Math.abs(_root.crate3._x - _x) < ((_width / 2) + (_root.crate3._width / 2)))) { _root.cant_move_crate4_up_against_crate3 = true; _root.cant_move_crate4_up_against_top_wall = true; _root.cant_move_crate4_up_against_orange_wall = true; _root.cant_move_crate4_up_against_green_wall = true; } else { _root.cant_move_crate4_up_against_crate3 = false; } if (hitTest(_root.crate3) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.crate3.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate4_down_against_crate3 = true; } if ((((((_root.crate3._y - _y) - (_root.crate3._height / 2)) - (_height / 2)) <= 0.3) and ((((_root.crate3._y - _y) - (_root.crate3._height / 2)) - (_height / 2)) >= 0)) and (Math.abs(_root.crate3._x - _x) < ((_width / 2) + (_root.crate3._width / 2)))) { _root.cant_move_crate4_down_against_crate3 = true; _root.cant_move_crate4_down_against_bottom_wall = true; _root.cant_move_crate4_down_against_orange_wall = true; _root.cant_move_crate4_down_against_green_wall = true; } else { _root.cant_move_crate4_down_against_crate3 = false; } if (hitTest(_root.crate3) and (_root.moveleft == true)) { _x = (_x - ((getBounds(_root).xMin - _root.crate3.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate4_left_against_crate3 = true; } if ((((((_x - _root.crate3._x) - (_root.crate3._width / 2)) - (_width / 2)) <= 0.3) and ((((_x - _root.crate3._x) - (_root.crate3._width / 2)) - (_width / 2)) >= 0)) and (Math.abs(_root.crate3._y - _y) < ((_height / 2) + (_root.crate3._height / 2)))) { _root.cant_move_crate4_left_against_crate3 = true; _root.cant_move_crate4_left_against_left_wall = true; _root.cant_move_crate4_left_against_orange_wall = true; _root.cant_move_crate4_left_against_green_wall = true; _root.cant_move_crate4_left_against_middle_wall = true; } else { _root.cant_move_crate4_left_against_crate3 = false; } if (hitTest(_root.crate3) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.crate3.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate4_right_against_crate3 = true; } if ((((((_root.crate3._x - _x) - (_root.crate3._width / 2)) - (_width / 2)) <= 0.3) and ((((_root.crate3._x - _x) - (_root.crate3._width / 2)) - (_width / 2)) >= 0)) and (Math.abs(_root.crate3._y - _y) < ((_height / 2) + (_root.crate3._height / 2)))) { _root.cant_move_crate4_right_against_crate3 = true; _root.cant_move_crate4_right_against_right_wall = true; _root.cant_move_crate4_right_against_orange_wall = true; _root.cant_move_crate4_right_against_green_wall = true; _root.cant_move_crate4_right_against_middle_wall = true; } else { _root.cant_move_crate4_right_against_crate3 = false; } if (hitTest(_root.crate5) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.crate5.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate4_up_against_crate5 = true; } if ((((((_y - _root.crate5._y) - (_root.crate5._height / 2)) - (_height / 2)) <= 0.3) and ((((_y - _root.crate5._y) - (_root.crate5._height / 2)) - (_height / 2)) >= 0)) and (Math.abs(_root.crate5._x - _x) < ((_width / 2) + (_root.crate5._width / 2)))) { _root.cant_move_crate4_up_against_crate5 = true; _root.cant_move_crate4_up_against_top_wall = true; _root.cant_move_crate4_up_against_orange_wall = true; _root.cant_move_crate4_up_against_green_wall = true; } else { _root.cant_move_crate4_up_against_crate5 = false; } if (hitTest(_root.crate5) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.crate5.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate4_down_against_crate5 = true; } if ((((((_root.crate5._y - _y) - (_root.crate5._height / 2)) - (_height / 2)) <= 0.3) and ((((_root.crate5._y - _y) - (_root.crate5._height / 2)) - (_height / 2)) >= 0)) and (Math.abs(_root.crate5._x - _x) < ((_width / 2) + (_root.crate5._width / 2)))) { _root.cant_move_crate4_down_against_crate5 = true; _root.cant_move_crate4_down_against_bottom_wall = true; _root.cant_move_crate4_down_against_orange_wall = true; _root.cant_move_crate4_down_against_green_wall = true; } else { _root.cant_move_crate4_down_against_crate5 = false; } if (hitTest(_root.crate5) and (_root.moveleft == true)) { _x = (_x - ((getBounds(_root).xMin - _root.crate5.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate4_left_against_crate5 = true; } if ((((((_x - _root.crate5._x) - (_root.crate5._width / 2)) - (_width / 2)) <= 0.3) and ((((_x - _root.crate5._x) - (_root.crate5._width / 2)) - (_width / 2)) >= 0)) and (Math.abs(_root.crate5._y - _y) < ((_height / 2) + (_root.crate5._height / 2)))) { _root.cant_move_crate4_left_against_crate5 = true; _root.cant_move_crate4_left_against_left_wall = true; _root.cant_move_crate4_left_against_orange_wall = true; _root.cant_move_crate4_left_against_green_wall = true; _root.cant_move_crate4_left_against_middle_wall = true; } else { _root.cant_move_crate4_left_against_crate5 = false; } if (hitTest(_root.crate5) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.crate5.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate4_right_against_crate5 = true; } if ((((((_root.crate5._x - _x) - (_root.crate5._width / 2)) - (_width / 2)) <= 0.3) and ((((_root.crate5._x - _x) - (_root.crate5._width / 2)) - (_width / 2)) >= 0)) and (Math.abs(_root.crate5._y - _y) < ((_height / 2) + (_root.crate5._height / 2)))) { _root.cant_move_crate4_right_against_crate5 = true; _root.cant_move_crate4_right_against_right_wall = true; _root.cant_move_crate4_right_against_orange_wall = true; _root.cant_move_crate4_right_against_green_wall = true; _root.cant_move_crate4_right_against_middle_wall = true; } else { _root.cant_move_crate4_right_against_crate5 = false; } } if (hitTest(_root.greenwall)) { _root.greenwall_crate4_hit = true; if ((_root.hit_crate4 == true) and (_root.moveright == true)) { if ((_root.crate4_against_green_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate4_is_pushed_by_green_wall == false)) { _x = (_x - ((getBounds(_root).xMax - _root.greenwall.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate4_right_against_green_wall = true; } } if ((_root.hit_crate4 == true) and (_root.moveleft == true)) { if ((_root.crate4_against_green_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate4_is_pushed_by_green_wall == false)) { _x = (_x - ((getBounds(_root).xMin - _root.greenwall.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate4_left_against_green_wall = true; } } if ((_root.hit_crate4 == true) and (_root.movedown == true)) { if ((_root.crate4_against_green_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate4_is_pushed_by_green_wall == false)) { _y = (_y - ((getBounds(_root).yMax - _root.greenwall.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate4_down_against_green_wall = true; } } if ((_root.hit_crate4 == true) and (_root.moveup == true)) { if ((_root.crate4_against_green_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate4_is_pushed_by_green_wall == false)) { _y = (_y - ((getBounds(_root).yMin - _root.greenwall.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate4_up_against_green_wall = true; } } } else { _root.greenwall_crate4_hit = false; } if (((_root.difference_x_green_with_crate4_right <= 0.3) && (_root.difference_x_green_with_crate4_right >= -8)) && (_root.distance_y_between_greenwall_and_crate4 < ((_height / 2) + (_root.greenwall._height / 2)))) { _root.cant_move_crate4_right_against_green_wall = true; _root.cant_move_crate4_right_against_middle_wall = true; _root.cant_move_crate4_right_against_orange_wall = true; _root.cant_move_crate4_right_against_right_wall = true; _root.green_wall_and_crate4_rightside_touching = true; } else { _root.cant_move_crate4_right_against_green_wall = false; _root.green_wall_and_crate4_rightside_touching = false; } if ((((_root.greenwall_movement == true) and (_root.green_wall_and_crate4_rightside_touching == true)) and (_root.distance_y_between_greenwall_and_crate4 < ((_height / 2) + (_root.greenwall._height / 2)))) and (_currentframe == 1)) { _x = (((_root.greenwall._x - (_root.greenwall._width / 2)) - (_width / 2)) - 0.7); _root.crate4_is_pushed_by_green_wall = true; } if (((_root.difference_x_ball1_with_crate4_leftside <= 0.3) && (_root.difference_x_ball1_with_crate4_leftside >= -8)) && (_root.distance_y_between_ball1_and_crate4 < ((_height / 2) + (_root.ball1._height / 2)))) { _root.ball1_and_crate4_leftside_touching = true; } else { _root.ball1_and_crate4_leftside_touching = false; } if (((_root.difference_x_ball2_with_crate4_leftside <= 0.3) && (_root.difference_x_ball2_with_crate4_leftside >= -8)) && (_root.distance_y_between_ball2_and_crate4 < ((_height / 2) + (_root.ball2._height / 2)))) { _root.ball2_and_crate4_leftside_touching = true; } else { _root.ball2_and_crate4_leftside_touching = false; } if (((((_root.ball1_and_crate4_leftside_touching == true) and (_root.crate4_is_pushed_by_green_wall == true)) and (_root.distance_y_between_greenwall_and_crate4 < ((_height / 2) + (_root.greenwall._height / 2)))) and (_root.distance_y_between_ball1_and_crate4 < ((_height / 2) + (_root.ball1._height / 2)))) and (_root.greenwall_movement == true)) { _root.ball1._x = (((_root.greenwall._x - (_root.greenwall._width / 2)) - _width) - (_root.ball1._width / 2)) - 0.5; _root.ball1_is_pushed_by_crate4_is_pushed_by_green_wall = true; } else { _root.ball1_is_pushed_by_crate4_is_pushed_by_green_wall = false; } if ((((_root.ball2_and_crate4_leftside_touching == true) and (_root.crate4_is_pushed_by_green_wall == true)) and (_root.distance_y_between_greenwall_and_crate4 < ((_height / 2) + (_root.greenwall._height / 2)))) and (_root.distance_y_between_ball2_and_crate4 < ((_height / 2) + (_root.ball2._height / 2)))) { _root.ball2._x = (((_root.greenwall._x - (_root.greenwall._width / 2)) - _width) - (_root.ball2._width / 2)) - 0.5; _root.ball2_is_pushed_by_crate4_is_pushed_by_green_wall = true; } else { _root.ball2_is_pushed_by_crate4_is_pushed_by_green_wall = false; } if (((((_root.ball1_and_crate4_rightside_touching == true) and (_root.ball1_is_pushed_by_green_wall == true)) and (_root.distance_y_between_ball1_and_crate4 < ((_height / 2) + (_root.ball1._height / 2)))) and (_root.moveleft == false)) and (_currentframe == 1)) { _root.cant_move_crate4_right_against_green_wall = false; _x = (((_root.ball1._x - (_root.ball1._width / 2)) - (_width / 2)) - 0.5); _root.crate4_is_pushed_by_ball1_is_pushed_by_greenwall = true; } else { _root.crate4_is_pushed_by_ball1_is_pushed_by_greenwall = false; } if ((((_root.ball2_and_crate4_rightside_touching == true) and (_root.ball2_is_pushed_by_green_wall == true)) and (_root.distance_y_between_ball2_and_crate4 < ((_height / 2) + (_root.ball2._height / 2)))) and (_root.moveleft == false)) { _x = (((_root.ball2._x - (_root.ball2._width / 2)) - (_width / 2)) - 0.5); _root.crate4_is_pushed_by_ball2_is_pushed_by_greenwall = true; } else { _root.crate4_is_pushed_by_ball2_is_pushed_by_greenwall = false; } if ((_root.distance_y_between_greenwall_and_crate4 < ((_height / 2) + (_root.greenwall._height / 2))) and (_root.greenwall_movement == true)) { _root.crate4_against_green_wall_boundaries_prevention = true; } else { _root.crate4_against_green_wall_boundaries_prevention = false; } if (((_root.distance_y_between_greenwall_and_crate4 < ((_height / 2) + (_root.greenwall._height / 2))) and (_root.distance_y_between_greenwall_and_ball <= ((_root.ball1._height / 2) + (_root.greenwall._height / 2)))) and (_root.greenwall_movement == true)) { _root.crate4_against_green_wall_boundaries_prevention2 = true; } else { _root.crate4_against_green_wall_boundaries_prevention2 = false; } if (((_root.difference_x_green_with_crate4_left <= 0.3) && (_root.difference_x_green_with_crate4_left >= -8)) && (_root.distance_y_between_greenwall_and_crate4 < ((_height / 2) + (_root.greenwall._height / 2)))) { _root.cant_move_crate4_left_against_green_wall = true; _root.cant_move_crate4_left_against_middlewall = true; _root.cant_move_crate4_left_against_orange_wall = true; _root.cant_move_crate4_left_against_left_wall = true; } else { _root.cant_move_crate4_left_against_green_wall = false; } if (_root.crate4_against_green_wall_boundaries_prevention == false) { if (((_root.difference_y_green_with_crate4_up <= 0.3) && (_root.difference_y_green_with_crate4_up >= -8)) && (_root.distance_x_between_greenwall_and_crate4 < ((_width / 2) + (_root.greenwall._width / 2)))) { _root.cant_move_crate4_up_against_green_wall = true; _root.cant_move_crate4_up_against_top_wall = true; _root.cant_move_crate4_up_against_orange_wall = true; _root.cant_move_crate4_up_against_middlewall_insidetop = true; } else { _root.cant_move_crate4_up_against_green_wall = false; } if (((_root.difference_y_green_with_crate4_down <= 0.3) && (_root.difference_y_green_with_crate4_down >= -8)) && (_root.distance_x_between_greenwall_and_crate4 < ((_width / 2) + (_root.greenwall._width / 2)))) { _root.cant_move_crate4_down_against_green_wall = true; _root.cant_move_crate4_down_against_bottom_wall = true; _root.cant_move_crate4_down_against_orange_wall = true; _root.cant_move_crate4_down_against_middlewall_insidebottom = true; } else { _root.cant_move_crate4_down_against_green_wall = false; } } else if ((((_root.distance_y_between_greenwall_and_crate4 < ((_height / 2) + (_root.greenwall._height / 2))) && (_root.distance_y_between_ball1_and_crate4 < ((_height / 2) + (_root.ball1._height / 2)))) and (_root.difference_x_ball1_with_crate4_leftside <= 0.3)) && (_root.difference_x_ball1_with_crate4_leftside >= -8)) { _root.cant_move_crate4_down_against_green_wall = true; _root.cant_move_crate4_up_against_green_wall = true; _root.cant_move_crate4_left_against_green_wall = true; _root.cant_move_crate4_right_against_green_wall = true; } else { _root.cant_move_crate4_down_against_green_wall = false; _root.cant_move_crate4_up_against_green_wall = false; } if (((_root.greenwall_movement == true) and ((((_root.difference_x_ball1_with_crate4_leftside <= 0.7) && (_root.difference_x_ball1_with_crate4_leftside >= -6)) && (_root.distance_between_rightmiddlewall_and_ball <= 0.5)) && (_root.distance_y_between_ball1_and_crate4 < ((_root.ball1._height / 2) + (_height / 2))))) or ((((_root.difference_x_ball2_with_crate4_leftside <= 0.5) && (_root.difference_x_ball2_with_crate4_leftside >= -3)) && (_root.distance_between_rightmiddlewall_and_ball2 <= 0.5)) && (_root.distance_y_between_ball2_and_crate4 < ((_root.ball2._height / 2) + (_height / 2))))) { _root.ball_location = false; _root.green_hit_right = true; _root.ball1._x = 2000; _root.ball2._x = 2000; _root.cant_move_crate4_up_against_green_wall = false; _root.cant_move_crate4_down_against_green_wall = false; trace("pooppp"); } if (((_root.greenwall_movement == true) and ((((_root.difference_x_ball1_with_crate4_leftside <= 0.7) && (_root.difference_x_ball1_with_crate4_leftside >= -6)) && (_root.distance_between_lb_and_ball <= 0.5)) && (_root.distance_y_between_ball1_and_crate4 < ((_root.ball1._height / 2) + (_height / 2))))) or ((((_root.difference_x_ball2_with_crate4_leftside <= 0.5) && (_root.difference_x_ball2_with_crate4_leftside >= -3)) && (_root.distance_between_lb_and_ball2 <= 0.5)) && (_root.distance_y_between_ball2_and_crate4 < ((_root.ball2._height / 2) + (_height / 2))))) { _root.ball_location = false; _root.green_hit_left = true; _root.ball1._x = 2000; _root.ball2._x = 2000; _root.cant_move_crate4_up_against_green_wall = false; _root.cant_move_crate4_down_against_green_wall = false; trace("pooppp"); } if ((((_root.difference_x_crate4_leftside_with_lb <= 0.3) && (_root.difference_x_crate4_leftside_with_lb >= -8)) or (((_root.difference_x_crate4_leftside_with_bluewall2 <= 1) && (_root.difference_x_crate4_leftside_with_bluewall2 >= -8)) && (_y < 426.1))) && (((_root.crate4_is_pushed_by_green_wall == true) or (_root.crate4_is_pushed_by_ball1_is_pushed_by_greenwall == true)) or (_root.crate4_is_pushed_by_ball2_is_pushed_by_greenwall == true))) { gotoAndStop (2); _root.greenwall_movement = false; } }
Instance of Symbol 1257 MovieClip "ball1" in Frame 16
onClipEvent (load) { _root.hit_crate1 = false; } onClipEvent (enterFrame) { function move(xmove, ymove) { _x = (_x + xmove); _y = (_y + ymove); if (hitTest(_root.leftwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.middlewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.topwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.topwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.topwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.topwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bottomwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bottomwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bottomwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bottomwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.greenwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.greenwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.greenwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.greenwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.greenwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.orangewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.orangewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.orangewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.orangewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.orangewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.pinkwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.pinkwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.pinkwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.pinkwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.pinkwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.lm)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.lm.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.lm.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.lm.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.lm.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.midwid)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.midwid.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.midwid.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.midwid.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.midwid.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.lb)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.lb.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.lb.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.lb.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.lb.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bluewall1)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bluewall1.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bluewall1.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bluewall1.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bluewall1.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bluewall2)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bluewall2.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bluewall2.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bluewall2.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bluewall2.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.crate1)) { if (_root.crate1._currentframe == 1) { _root.hit_crate1 = true; if (xmove > 0) { if ((_root.crate1_is_pushed_by_ball1_is_pushed_by_greenwall == false) and (_root.ball1_is_pushed_by_crate1_is_pushed_by_green_wall == false)) { _x = (_x - ((getBounds(_root).xMax - _root.crate1.getBounds(_root).xMin) + 0.1)); if (((_root.cant_move_crate1_right_against_green_wall == false) and (_root.cant_move_crate1_right_against_right_wall == false)) and (_root.small == false)) { _root.cratespeed_xright = 1; _root.crate1._x = _root.crate1._x + _root.cratespeed_xright; _root.moveright = true; } } } else { _root.moveright = false; } if (xmove < 0) { if (_root.crate1_is_pushed_by_ball1_is_pushed_by_greenwall == false) { _x = (_x - ((getBounds(_root).xMin - _root.crate1.getBounds(_root).xMax) - 0.1)); if (((_root.cant_move_crate1_left_against_green_wall == false) and (_root.cant_move_crate1_left_against_middle_wall == false)) and (_root.small == false)) { _root.cratespeed_xleft = 1; _root.crate1._x = _root.crate1._x - _root.cratespeed_xleft; _root.moveleft = true; } } } else { _root.moveleft = false; } if (ymove > 0) { if ((((_root.ball1_is_pushed_by_crate1_is_pushed_by_green_wall == false) && (_root.crate1_is_pushed_by_ball1_is_pushed_by_greenwall == false)) and (_root.difference_x_ball1_with_crate1_leftside <= -1)) and (_root.difference_x_ball1_with_crate1_rightside <= -1)) { _y = (_y - ((getBounds(_root).yMax - _root.crate1.getBounds(_root).yMin) + 0.1)); if (((_root.cant_move_crate1_down_against_green_wall == false) and (_root.cant_move_crate1_down_against_bottom_wall == false)) and (_root.small == false)) { _root.cratespeed_ydown = 1; _root.crate1._y = _root.crate1._y + _root.cratespeed_ydown; _root.movedown = true; } } } else { _root.movedown = false; } if (ymove < 0) { if ((((_root.ball1_is_pushed_by_crate1_is_pushed_by_green_wall == false) && (_root.crate1_is_pushed_by_ball1_is_pushed_by_greenwall == false)) and (_root.difference_x_ball1_with_crate1_leftside <= -1)) and (_root.difference_x_ball1_with_crate1_rightside <= -1)) { _y = (_y - ((getBounds(_root).yMin - _root.crate1.getBounds(_root).yMax) - 0.1)); if (((_root.cant_move_crate1_up_against_green_wall == false) and (_root.cant_move_crate1_up_against_middlewall_insidetop == false)) and (_root.small == false)) { _root.cratespeed_yup = 1; _root.crate1._y = _root.crate1._y - _root.cratespeed_yup; _root.moveup = true; } } } else { _root.moveup = false; } } } else { _root.cratespeed_xright = 0; _root.cratespeed_xleft = 0; _root.cratespeed_ydown = 0; _root.cratespeed_yup = 0; } if (hitTest(_root.crate3)) { _root.hit_crate3 = true; _root.hit_crate4_2 = false; _root.hit_crate3_2 = true; _root.hit_crate5_2 = false; if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.crate3.getBounds(_root).xMin) + 0.1)); if (((_root.cant_move_crate3_right_against_green_wall == false) and (_root.cant_move_crate3_right_against_right_wall == false)) and (_root.small == false)) { _root.cratespeed_xright = 1; _root.crate3._x = _root.crate3._x + _root.cratespeed_xright; _root.moveright = true; } } else { _root.moveright = false; } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.crate3.getBounds(_root).xMax) - 0.1)); if ((((_root.cant_move_crate3_left_against_green_wall == false) and (_root.cant_move_crate3_left_against_middle_wall == false)) and (_root.cant_move_crate3_left_against_midwid == false)) and (_root.small == false)) { _root.cratespeed_xleft = 1; _root.crate3._x = _root.crate3._x - _root.cratespeed_xleft; _root.moveleft = true; } } else { _root.moveleft = false; } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.crate3.getBounds(_root).yMin) + 0.1)); if (((_root.cant_move_crate3_down_against_green_wall == false) and (_root.cant_move_crate3_down_against_bottom_wall == false)) and (_root.small == false)) { _root.cratespeed_ydown = 1; _root.crate3._y = _root.crate3._y + _root.cratespeed_ydown; _root.movedown = true; } } else { _root.movedown = false; } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.crate3.getBounds(_root).yMax) - 0.1)); if (((((_root.cant_move_crate3_up_against_green_wall == false) and (_root.cant_move_crate3_up_against_middlewall_insidetop == false)) and (_root.cant_move_crate3_up_against_top_wall == false)) and (_root.cant_move_crate3_up_against_midwid == false)) and (_root.small == false)) { _root.cratespeed_yup = 1; _root.crate3._y = _root.crate3._y - _root.cratespeed_yup; _root.moveup = true; } } else { _root.moveup = false; } } else { _root.cratespeed_xright = 0; _root.cratespeed_xleft = 0; _root.cratespeed_ydown = 0; _root.cratespeed_yup = 0; } if (hitTest(_root.crate4)) { _root.hit_crate4 = true; _root.hit_crate4_2 = true; _root.hit_crate3_2 = false; _root.hit_crate5_2 = false; if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.crate4.getBounds(_root).xMin) + 0.1)); if (((_root.cant_move_crate4_right_against_green_wall == false) and (_root.cant_move_crate4_right_against_right_wall == false)) and (_root.small == false)) { _root.cratespeed_xright = 1; _root.crate4._x = _root.crate4._x + _root.cratespeed_xright; _root.moveright = true; } } else { _root.moveright = false; } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.crate4.getBounds(_root).xMax) - 0.5)); if ((((_root.cant_move_crate4_left_against_green_wall == false) and (_root.cant_move_crate4_left_against_middle_wall == false)) and (_root.cant_move_crate4_left_against_midwid == false)) and (_root.small == false)) { _root.cratespeed_xleft = 1; _root.crate4._x = _root.crate4._x - _root.cratespeed_xleft; _root.moveleft = true; } } else { _root.moveleft = false; } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.crate4.getBounds(_root).yMin) + 0.1)); if (((_root.cant_move_crate4_down_against_green_wall == false) and (_root.cant_move_crate4_down_against_bottom_wall == false)) and (_root.small == false)) { _root.cratespeed_ydown = 1; _root.crate4._y = _root.crate4._y + _root.cratespeed_ydown; _root.movedown = true; } } else { _root.movedown = false; } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.crate4.getBounds(_root).yMax) - 0.1)); if (((((_root.cant_move_crate4_up_against_green_wall == false) and (_root.cant_move_crate4_up_against_middlewall_insidetop == false)) and (_root.cant_move_crate4_up_against_top_wall == false)) and (_root.cant_move_crate4_up_against_midwid == false)) and (_root.small == false)) { _root.cratespeed_yup = 1; _root.crate4._y = _root.crate4._y - _root.cratespeed_yup; _root.moveup = true; } } else { _root.moveup = false; } } else { _root.cratespeed_xright = 0; _root.cratespeed_xleft = 0; _root.cratespeed_ydown = 0; _root.cratespeed_yup = 0; } if (hitTest(_root.crate5)) { _root.hit_crate5 = true; _root.hit_crate4_2 = false; _root.hit_crate3_2 = false; _root.hit_crate5_2 = true; if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.crate5.getBounds(_root).xMin) + 0.1)); if (((_root.cant_move_crate5_right_against_green_wall == false) and (_root.cant_move_crate5_right_against_right_wall == false)) and (_root.small == false)) { _root.cratespeed_xright = 1; _root.crate5._x = _root.crate5._x + _root.cratespeed_xright; _root.moveright = true; } } else { _root.moveright = false; } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.crate5.getBounds(_root).xMax) - 0.1)); if ((((_root.cant_move_crate5_left_against_green_wall == false) and (_root.cant_move_crate5_left_against_middle_wall == false)) and (_root.cant_move_crate5_left_against_midwid == false)) and (_root.small == false)) { _root.cratespeed_xleft = 1; _root.crate5._x = _root.crate5._x - _root.cratespeed_xleft; _root.moveleft = true; } } else { _root.moveleft = false; } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.crate5.getBounds(_root).yMin) + 0.1)); if (((_root.cant_move_crate5_down_against_green_wall == false) and (_root.cant_move_crate5_down_against_bottom_wall == false)) and (_root.small == false)) { _root.cratespeed_ydown = 1; _root.crate5._y = _root.crate5._y + _root.cratespeed_ydown; _root.movedown = true; } } else { _root.movedown = false; } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.crate5.getBounds(_root).yMax) - 0.1)); if (((((_root.cant_move_crate5_up_against_green_wall == false) and (_root.cant_move_crate5_up_against_middlewall_insidetop == false)) and (_root.cant_move_crate5_up_against_top_wall == false)) and (_root.cant_move_crate5_up_against_midwid == false)) and (_root.small == false)) { _root.cratespeed_yup = 1; _root.crate5._y = _root.crate5._y - _root.cratespeed_yup; _root.moveup = true; } } else { _root.moveup = false; } } else { _root.cratespeed_xright = 0; _root.cratespeed_xleft = 0; _root.cratespeed_ydown = 0; _root.cratespeed_yup = 0; } if (hitTest(_root.crate2)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.crate2.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.crate2.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.crate2.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.crate2.getBounds(_root).yMax) - 0.1)); } } } if ((((!Key.isDown(37)) and (!Key.isDown(39))) and (!Key.isDown(38))) and (!Key.isDown(40))) { _root.moveup = false; _root.movedown = false; _root.moveright = false; _root.moveleft = false; move(0, 0); _root.hit_crate1 = false; _root.hit_crate3 = false; _root.hit_crate4 = false; _root.hit_crate5 = false; } if (_root.ball_movement == true) { if (_root.ball_location) { if (Key.isDown(37)) { move(-5, 0); } if (Key.isDown(39)) { if (_root.ball1_is_pushed_by_crate1_is_pushed_by_green_wall == false) { move(5, 0); } } if (Key.isDown(38)) { move(0, -5); } if (Key.isDown(40)) { move(0, 5); } } } }
Instance of Symbol 1745 MovieClip "ball2" in Frame 17
onClipEvent (load) { xmove2 = 0; ymove2 = 0; } onClipEvent (enterFrame) { function move2(xmove2, ymove2) { _x = (_x + xmove2); _y = (_y + ymove2); if (hitTest(_root.leftwall)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftwall.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftwall.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightwall)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightwall.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightwall.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.middlewall)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.topwall)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.topwall.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.topwall.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.topwall.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bottomwall)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bottomwall.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bottomwall.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bottomwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightside)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightside.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightside.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightside.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightside.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.leftside)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftside.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftside.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftside.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftside.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightright)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightright.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightright.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightright.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightright.getBounds(_root).yMax) - 0.1)); } } } if (_root.warp_on == true) { if (Key.isDown(37)) { move2(5, 0); } if (Key.isDown(39)) { move2(-5, 0); } if (Key.isDown(38)) { move2(0, 5); } if (Key.isDown(40)) { move2(0, -5); } } }
Frame 18
function restartLevel() { _root.scoresubmit15 = savefile.data.scoresubmit15; savefile.flush(); soundstart = false; small = false; explosionsound2 = false; _root.decoy2.gotoAndStop(1); _root.decoy.gotoAndStop(1); if (((((((((((((((var16 != true) and (var17 != true)) and (var18 != true)) and (var19 != true)) and (var20 != true)) and (var21 != true)) and (var22 != true)) and (var23 != true)) and (var24 != true)) and (var25 != true)) and (var26 != true)) and (var27 != true)) and (var28 != true)) and (var29 != true)) and (var30 != true)) { var15 = true; } var14 = false; if (_root.var1) { _root.score = 1; } else if (_root.var2) { _root.score = 2; } else if (_root.var3) { _root.score = 3; } else if (_root.var4) { _root.score = 4; } else if (_root.var5) { _root.score = 5; } else if (_root.var6) { _root.score = 6; } else if (_root.var71) { _root.score = 7; } else if (_root.var8) { _root.score = 8; } else if (_root.var9) { _root.score = 9; } else if (_root.var10) { _root.score = 10; } else if (_root.var11) { _root.score = 11; } else if (_root.var12) { _root.score = 12; } else if (_root.var13) { _root.score = 13; } else if (_root.var14) { _root.score = 14; } else if (_root.var15) { _root.score = 15; } else if (_root.var16) { _root.score = 16; } else if (_root.var17) { _root.score = 17; } else if (_root.var18) { _root.score = 18; } else if (_root.var19) { _root.score = 19; } else if (_root.var20) { _root.score = 20; } else if (_root.var21) { _root.score = 21; } else if (_root.var22) { _root.score = 22; } else if (_root.var23) { _root.score = 23; } else if (_root.var24) { _root.score = 24; } else if (_root.var25) { _root.score = 25; } else if (_root.var26) { _root.score = 26; } else if (_root.var27) { _root.score = 27; } else if (_root.var28) { _root.score = 28; } else if (_root.var29) { _root.score = 29; } else if (_root.var30) { _root.score = 30; } savefile.data.score = _root.score; savefile.flush(); radius = ball1._height / 2; SPACE_possible = true; greenwallleft_movement = false; greenwallright_movement = false; greentransparent_movement = false; redwall_movement = false; bluewall_movement = false; ball_movement = true; finisher = false; bluekey._width = 32.1; bluekey._height = 28.1; ball_location = true; black_is_hit_blue_right = false; black_is_hit_blue_left = false; gray_is_hit_blue_right = false; gray_is_hit_blue_left = false; blue_hit_right = false; blue_hit_left = false; gray_is_hit_green = false; black_is_hit_green = false; green_hit = false; _root.ball1.gotoAndStop(1); _root.ball1.gotoAndStop(1); _root.ball2.gotoAndStop(1); _root.ball2.gotoAndStop(1); decoy._x = -1000; decoy2._x = -1000; timing = true; elapsedTime = 0; startTime = getTimer(); seconds = 0; greenkey._x = 579.1; greenkey._y = 480.9; redkey._x = 200; redkey._y = 76; bluekey._x = 513; bluekey._y = 273.5; bluewall._x = 129.1; bluewall._y = 274.2; redwall._x = 470.8; redwall._y = 183.2; greenwallleft._x = 130.8; greenwallleft._y = 71.5; greenwallright._x = 269.2; greenwallright._y = 71.5; green_transparent._y = 71.3; green_transparent._x = 200.2; greenwall._y = 71.2; greenwall._x = 200.8; ball1._x = 200; ball1._y = 273.5; ball2._x = 431; ball2._y = 273.5; lb._x = 200; lb._y = 373.4; lm._x = 200; lm._y = 175.1; rl._x = 440.1; rl._y = 404.9; youwin._x = 10000; winningscreen._x = 1000; finish._x = 494; finish._y = 93.5; } function ball1_old_location() { x_location = ball1._x; y_location = ball1._y; } function ball_locator() { ball_location = true; if (black_is_hit_blue_left == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy.gotoAndStop(2); _root.decoy2.gotoAndStop(3); _root.decoy.inside2.gotoAndPlay(1); _root.decoy2.inside3.gotoAndPlay(1); } if (gray_is_hit_blue_left == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); _root.decoy.inside3.gotoAndPlay(1); _root.decoy2.inside2.gotoAndPlay(1); } if (black_is_hit_blue_right == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy.gotoAndStop(2); _root.decoy2.gotoAndStop(3); _root.decoy.inside2.gotoAndPlay(1); _root.decoy2.inside3.gotoAndPlay(1); } if (gray_is_hit_blue_right == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); _root.decoy.inside3.gotoAndPlay(1); _root.decoy2.inside2.gotoAndPlay(1); } if (black_is_hit_green == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(3); _root.decoy.gotoAndStop(2); _root.decoy.inside2.gotoAndPlay(1); _root.decoy2.inside3.gotoAndPlay(1); } if (gray_is_hit_green == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); _root.decoy.inside3.gotoAndPlay(1); _root.decoy2.inside2.gotoAndPlay(1); } } stop(); _root.options._x = 28.1; _root.restartbutton._x = 41.9; _root.QW._x = 73.8; _root.P._x = 55.6; _root.BN._x = 66; totalRestarts = 0; _root.option.hintbox.gotoAndStop(1); _root.option.meter.gotoAndStop(15); restartLevel(); youwin.onPress = function () { gotoAndStop ("l14"); }; ball1.onEnterFrame = function () { if (this.hitTest(redkey)) { keystart = true; redkey._x = 100000 /* 0x0186A0 */; redwall_movement = true; _root.ball1.scan.gotoAndStop(3); } if (this.hitTest(greenkey)) { keystart = true; greenkey._x = 100000 /* 0x0186A0 */; greenwallleft_movement = true; greenwallright_movement = true; greentransparent_movement = true; _root.ball1.scan.gotoAndStop(2); } if (this.hitTest(bluekey)) { keystart = true; bluekey._x = 100000 /* 0x0186A0 */; bluewall_movement = true; _root.ball1.scan.gotoAndStop(4); _root.ball1.scan.bluemove.gotoAndPlay(1); } if (greenwallright.hitTest(bluewall)) { soundstart = true; greenwallright_movement = false; greenwallleft_movement = false; greentransparent_movement = false; bluewall_movement = false; if ((((greenwallright._x - (greenwallright._width / 2)) - bluewall._x) - (bluewall._width / 2)) < -1) { greenwallright._y = (bluewall._y - (bluewall._height / 2)) - (greenwallright._height / 2); greenwallleft._y = (bluewall._y - (bluewall._height / 2)) - (greenwallleft._height / 2); green_transparent._y = (bluewall._y - (bluewall._height / 2)) - (green_transparent._height / 2); greenwall._y = (bluewall._y - (bluewall._height / 2)) - (greenwall._height / 2); } else { bluewall._x = ((greenwallright._x - (greenwallright._width / 2)) - (bluewall._width / 2)) - 0.3; } } if (scoresubmit15) { scoresubmit = false; } else if (scoresubmit15 == false) { scoresubmit = true; } if (this.hitTest(finish)) { timing = false; seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if ((score == 15) or scoresubmit) { level15_best_time = seconds; scoresubmit15 = true; savefile.data.scoresubmit15 = _root.scoresubmit15; savefile.flush(); } if (seconds < level15_best_time) { level15_best_time = seconds; } savefile.data.level15_best_time = _root.level15_best_time; savefile.flush(); if (_root.score <= 16) { _root.score = 16; } savefile.data.score = _root.score; savefile.flush(); SPACE_possible = false; ball_movement = false; win._x = Stage.width / 2; win._y = Stage.height / 2; _root.win.instructions.gotoAndStop(15); _root.win.meter.gotoAndStop(16); } if (Key.isDown(32) && (SPACE_possible == false)) { finisher = true; } if (finisher) { if (!Key.isDown(32)) { win._x = 10000; gotoAndStop ("l14"); finisher = false; SPACE_possible = true; } } }; _root.onEnterFrame = function () { seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if (!ball_movement) { timing = false; startTime = getTimer() - elapsedTime; } else { timing = true; } if (timing) { elapsedTime = getTimer() - startTime; } if (var15) { w_works = false; } else { w_works = true; } if (((option._x != (Stage.width / 2)) and (instruction._x != (Stage.width / 2))) and (win._x != (Stage.width / 2))) { if (Key.isDown(81)) { q_is_DOWN = true; } if (q_is_DOWN) { if (!Key.isDown(81)) { gotoAndStop ("l21"); q_is_DOWN = false; } } if (Key.isDown(87)) { w_is_DOWN = true; } if (w_is_DOWN) { if (!Key.isDown(87)) { if (w_works) { gotoAndStop ("l14"); } w_is_DOWN = false; } } ballx = ball1._x; bally = ball1._y; decoyx = decoy._x; if (Key.isDown(78)) { n_is_DOWN = true; } if (n_is_DOWN) { if (!Key.isDown(78)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); n_is_DOWN = false; } } } if (Key.isDown(66)) { b_is_DOWN = true; } if (b_is_DOWN) { if (!Key.isDown(66)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); b_is_DOWN = false; } } } if (SPACE_possible) { if (Key.isDown(32)) { SPACE_is_DOWN = true; } if (SPACE_is_DOWN) { if (!Key.isDown(32)) { ball1_old_location(); ball1._x = ball2._x; ball1._y = ball2._y; ball2._x = x_location; ball2._y = y_location; SPACE_is_DOWN = false; } } } } if (greenwallleft_movement) { greenwallleft._y = greenwallleft._y + 1; } if (greenwallright_movement) { greenwallright._y = greenwallright._y + 1; green_transparent._y = green_transparent._y + 1; greenwall._y = greenwall._y + 1; } if (greenwallleft._y > 469.5) { greenwallleft_movement = false; soundstart = true; greenwallleft._y = 469.5; greenwallright._y = 469.5; } if (greenwallright._y > 469.5) { greenwallright_movement = false; } if (redwall_movement) { redwall._x = redwall._x + 2; } if (bluewall_movement) { bluewall._x = bluewall._x + 0.4; } if (bluewall._x > 510.6) { bluewall_movement = false; soundstart = true; bluewall._x = 510.6; } differenceblue = ((ball1._x - bluewall._x) - (bluewall._width / 2)) - (ball1._width / 2); differenceblue2 = ((ball2._x - bluewall._x) - (bluewall._width / 2)) - (ball2._width / 2); distance_between_leftmiddlewall_and_ball = Math.abs(((middlewall._x - ball1._x) - (middlewall._width / 2)) - (ball1._width / 2)); distance_between_leftmiddlewall_and_ball2 = Math.abs(((middlewall._x - ball2._x) - (middlewall._width / 2)) - (ball2._width / 2)); distance_between_rr_and_ball = Math.abs(((rr._x - ball1._x) - (rr._width / 2)) - (ball1._width / 2)); distance_between_rr_and_ball2 = Math.abs(((rr._x - ball2._x) - (rr._width / 2)) - (ball2._width / 2)); distance_y_between_bluewall_and_ball = Math.abs(bluewall._y - ball1._y); distance_y_between_bluewall_and_ball2 = Math.abs(bluewall._y - ball2._y); if ((((bluewall_movement == true) and (differenceblue <= 0.2)) and (differenceblue >= -8)) and (distance_y_between_bluewall_and_ball < ((ball1._height / 2) + (bluewall._height / 2)))) { ball1._x = ((bluewall._x + (bluewall._width / 2)) + (ball1._width / 2)) + 0.2; } if ((((bluewall_movement == true) and (differenceblue2 <= 0.2)) and (differenceblue2 >= -8)) and (distance_y_between_bluewall_and_ball2 < ((ball2._height / 2) + (bluewall._height / 2)))) { ball2._x = ((bluewall._x + (bluewall._width / 2)) + (ball2._width / 2)) + 0.2; } if (((((differenceblue <= 0.5) && (differenceblue >= -1)) && (distance_between_leftmiddlewall_and_ball <= 0.5)) && (distance_y_between_bluewall_and_ball < ((ball1._height / 2) + (bluewall._height / 2)))) or ((((differenceblue2 <= 0.5) && (differenceblue2 >= -1)) && (distance_between_leftmiddlewall_and_ball2 <= 0.5)) && (distance_y_between_bluewall_and_ball2 < ((ball2._height / 2) + (bluewall._height / 2))))) { blue_hit_left = true; ball_location = false; ball1._x = 2000; ball2._x = 2000; } if (((((differenceblue <= 0.5) && (differenceblue >= -1)) && (distance_between_rr_and_ball <= 1)) && (distance_y_between_bluewall_and_ball < ((ball1._height / 2) + (bluewall._height / 2)))) or ((((differenceblue2 <= 0.5) && (differenceblue2 >= -1)) && (distance_between_rr_and_ball2 <= 0.5)) && (distance_y_between_bluewall_and_ball2 < ((ball2._height / 2) + (bluewall._height / 2))))) { blue_hit_right = true; ball_location = false; ball1._x = 2000; ball2._x = 2000; } if ((((((ball1._y > Stage.height) and (ball1._y < 1000)) or ((ball1._y < 0) and (ball1._y > -1000))) or ((ball1._x > Stage.width) and (ball1._x < 1000))) or ((ball1._x < 0) and (ball1._x > -1000))) and (bluewall._x <= ((Stage.width / 2) - (bluewall._width / 2)))) { blue_hit_left = true; ball_location = false; } if ((((((ball1._y > Stage.height) and (ball1._y < 1000)) or ((ball1._y < 0) and (ball1._y > -1000))) or ((ball1._x > Stage.width) and (ball1._x < 1000))) or ((ball1._x < 0) and (ball1._x > -1000))) and (bluewall._x >= ((Stage.width / 2) + (bluewall._width / 2)))) { blue_hit_right = true; ball_location = false; } differencegreen = ((ball1._y - greenwallright._y) - (greenwallright._height / 2)) - (ball1._height / 2); differencegreen2 = ((ball2._y - greenwallright._y) - (greenwallright._height / 2)) - (ball2._height / 2); distance_between_bluewall_and_ball = Math.abs(((bluewall._y - ball1._y) - (bluewall._height / 2)) - (ball1._height / 2)); distance_between_bluewall_and_ball2 = Math.abs(((bluewall._y - ball2._y) - (bluewall._height / 2)) - (ball2._height / 2)); distance_between_lb_and_ball = Math.abs(((lb._y - ball1._y) - (lb._height / 2)) - (ball1._height / 2)); distance_between_lb_and_ball2 = Math.abs(((lb._y - ball2._y) - (lb._height / 2)) - (ball2._height / 2)); distance_between_bottomwall_and_ball = Math.abs(((bottomwall._y - ball1._y) - (bottomwall._height / 2)) - (ball1._height / 2)); distance_between_bottomwall_and_ball2 = Math.abs(((bottomwall._y - ball2._y) - (bottomwall._height / 2)) - (ball2._height / 2)); distance_x_between_greenwallright_and_ball = Math.abs(greenwallright._x - ball1._x); distance_x_between_greenwallright_and_ball2 = Math.abs(greenwallright._x - ball2._x); distance_x_between_greenwallleft_and_ball = Math.abs(greenwallleft._x - ball1._x); distance_x_between_greenwallleft_and_ball2 = Math.abs(greenwallleft._x - ball2._x); if ((((greenwallright_movement == true) and (differencegreen <= 0.2)) and (differencegreen >= -8)) and (distance_x_between_greenwallright_and_ball < ((ball1._width / 2) + (greenwallright._width / 2)))) { ball1._y = ((greenwallright._y + (greenwallright._height / 2)) + (ball1._height / 2)) + 0.2; } if ((((greenwallright_movement == true) and (differencegreen2 <= 0.2)) and (differencegreen2 >= -8)) and (distance_x_between_greenwallright_and_ball2 < ((ball2._width / 2) + (greenwallright._width / 2)))) { ball2._y = ((greenwallright._y + (greenwallright._height / 2)) + (ball2._height / 2)) + 0.2; } if ((((greenwallleft_movement == true) and (differencegreen <= 0.2)) and (differencegreen >= -8)) and (distance_x_between_greenwallleft_and_ball < ((ball1._width / 2) + (greenwallleft._width / 2)))) { ball1._y = ((greenwallright._y + (greenwallright._height / 2)) + (ball1._height / 2)) + 0.2; } if ((((greenwallleft_movement == true) and (differencegreen2 <= 0.2)) and (differencegreen2 >= -8)) and (distance_x_between_greenwallleft_and_ball2 < ((ball2._width / 2) + (greenwallleft._width / 2)))) { ball2._y = ((greenwallright._y + (greenwallright._height / 2)) + (ball2._height / 2)) + 0.2; } if (((((((differencegreen <= 1) && (differencegreen >= -2)) && (distance_between_bluewall_and_ball <= 3)) && (ball1._x > ((bluewall._x - (bluewall._width / 2)) - (ball1._width / 2)))) && (ball1._x < ((bluewall._x + (bluewall._width / 2)) + (ball1._width / 2)))) && (distance_x_between_greenwallright_and_ball < ((ball1._width / 2) + (greenwallright._width / 2)))) or ((((((differencegreen2 <= 0.5) && (differencegreen2 >= -1)) && (distance_between_bluewall_and_ball2 <= 0.5)) && (ball2._x > ((bluewall._x - (bluewall._width / 2)) - (ball2._width / 2)))) && (ball2._x < ((bluewall._x + (bluewall._width / 2)) + (ball2._width / 2)))) && (distance_x_between_greenwallright_and_ball2 < ((ball2._width / 2) + (greenwallright._width / 2))))) { green_hit = true; ball_location = false; ball1._y = 2000; ball2._y = 2000; } if ((((((differencegreen <= 2) && (differencegreen >= -2)) && (distance_between_lb_and_ball <= 3)) && (ball1._x < ((lb._x + (lb._width / 2)) + (ball1._width / 2)))) && (distance_x_between_greenwallright_and_ball < ((ball1._width / 2) + (greenwallright._width / 2)))) or (((((differencegreen2 <= 0.5) && (differencegreen2 >= -1)) && (distance_between_lb_and_ball2 <= 0.5)) && (ball2._x < ((lb._x + (lb._width / 2)) + (ball2._width / 2)))) && (distance_x_between_greenwallright_and_ball2 < ((ball2._width / 2) + (greenwallright._width / 2))))) { trace("green against lb problem"); green_hit = true; ball_location = false; ball1._y = 2000; ball2._y = 2000; } if (((((differencegreen <= 1) && (differencegreen >= -2)) && (distance_between_bottomwall_and_ball <= 2)) && (distance_x_between_greenwallright_and_ball < ((ball1._width / 2) + (greenwallright._width / 2)))) or (((differencegreen2 <= 0.5) && (distance_between_bottomwall_and_ball2 <= 0.5)) && (distance_x_between_greenwallright_and_ball2 < ((ball2._width / 2) + (greenwallright._width / 2))))) { green_hit = true; ball_location = false; ball1._y = 2000; ball2._y = 2000; } if ((((((differencegreen <= 2) && (differencegreen >= -2)) && (distance_between_lb_and_ball <= 3)) && (ball1._x > ((lb._x - (lb._width / 2)) - (ball1._width / 2)))) && (distance_x_between_greenwallleft_and_ball < ((ball1._width / 2) + (greenwallleft._width / 2)))) or (((((differencegreen2 <= 0.5) && (differencegreen2 >= -1)) && (distance_between_lb_and_ball2 <= 0.5)) && (ball2._x > ((lb._x - (lb._width / 2)) - (ball2._width / 2)))) && (distance_x_between_greenwallleft_and_ball2 < ((ball2._width / 2) + (greenwallleft._width / 2))))) { trace("green against lb problem"); green_hit = true; ball_location = false; ball1._y = 2000; ball2._y = 2000; } if (((((differencegreen <= 1) && (differencegreen >= -2)) && (distance_between_bottomwall_and_ball <= 2)) && (distance_x_between_greenwallleft_and_ball < ((ball1._width / 2) + (greenwallleft._width / 2)))) or (((differencegreen2 <= 0.5) && (distance_between_bottomwall_and_ball2 <= 0.5)) && (distance_x_between_greenwallleft_and_ball2 < ((ball2._width / 2) + (greenwallleft._width / 2))))) { green_hit = true; ball_location = false; ball1._y = 2000; ball2._y = 2000; } if (ball_location) { ball1_xlocation = ball1._x; ball1_ylocation = ball1._y; ball2_xlocation = ball2._x; ball2_ylocation = ball2._y; } else { explosionsound2 = true; if (ball1_xlocation < (Stage.width / 2)) { if (blue_hit_left == true) { black_is_hit_blue_left = true; } if (blue_hit_right == true) { gray_is_hit_blue_right = true; } if (green_hit) { black_is_hit_green = true; } } else if (ball1_xlocation > (Stage.width / 2)) { if (blue_hit_right == true) { black_is_hit_blue_right = true; } if (blue_hit_left == true) { gray_is_hit_blue_left = true; } if (green_hit) { gray_is_hit_green = true; } } ball_locator(); } };
Instance of Symbol 1297 MovieClip "ball1" in Frame 18
onClipEvent (enterFrame) { function move(xmove, ymove) { _x = (_x + xmove); _y = (_y + ymove); if (hitTest(_root.leftwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.middlewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.middlewall2)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall2.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall2.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall2.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall2.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.topwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.topwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.topwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.topwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bottomwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bottomwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bottomwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bottomwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bluewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bluewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bluewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bluewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bluewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.redwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.redwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.redwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.redwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.redwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.greenwallleft)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.greenwallleft.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.greenwallleft.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.greenwallleft.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.greenwallleft.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.greenwallright)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.greenwallright.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.greenwallright.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.greenwallright.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.greenwallright.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.lb)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.lb.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.lb.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.lb.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.lb.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.lm)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.lm.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.lm.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.lm.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.lm.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rl)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rl.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rl.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rl.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rl.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rr)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rr.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rr.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rr.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rr.getBounds(_root).yMax) - 0.1)); } } } if (_root.ball_movement == true) { if (Key.isDown(37)) { move(-5, 0); } if (Key.isDown(39)) { move(5, 0); } if (Key.isDown(38)) { move(0, -5); } if (Key.isDown(40)) { move(0, 5); } } }
Frame 19
function restartLevel() { _root.scoresubmit23 = savefile.data.scoresubmit23; savefile.flush(); soundstart = false; small = false; if (((((((var24 != true) and (var25 != true)) and (var26 != true)) and (var27 != true)) and (var28 != true)) and (var29 != true)) and (var30 != true)) { var23 = true; } var22 = false; if (_root.var1) { _root.score = 1; } else if (_root.var2) { _root.score = 2; } else if (_root.var3) { _root.score = 3; } else if (_root.var4) { _root.score = 4; } else if (_root.var5) { _root.score = 5; } else if (_root.var6) { _root.score = 6; } else if (_root.var71) { _root.score = 7; } else if (_root.var8) { _root.score = 8; } else if (_root.var9) { _root.score = 9; } else if (_root.var10) { _root.score = 10; } else if (_root.var11) { _root.score = 11; } else if (_root.var12) { _root.score = 12; } else if (_root.var13) { _root.score = 13; } else if (_root.var14) { _root.score = 14; } else if (_root.var15) { _root.score = 15; } else if (_root.var16) { _root.score = 16; } else if (_root.var17) { _root.score = 17; } else if (_root.var18) { _root.score = 18; } else if (_root.var19) { _root.score = 19; } else if (_root.var20) { _root.score = 20; } else if (_root.var21) { _root.score = 21; } else if (_root.var22) { _root.score = 22; } else if (_root.var23) { _root.score = 23; } else if (_root.var24) { _root.score = 24; } else if (_root.var25) { _root.score = 25; } else if (_root.var26) { _root.score = 26; } else if (_root.var27) { _root.score = 27; } else if (_root.var28) { _root.score = 28; } else if (_root.var29) { _root.score = 29; } else if (_root.var30) { _root.score = 30; } savefile.data.score = _root.score; savefile.flush(); radius = ball1._height / 2; SPACE_possible = true; orangewall_movement = false; pinkwall_movement = false; bluewall_movement = false; ball_movement = true; finisher = false; ball_location = true; gray_is_hit_blue = false; black_is_hit_blue = false; blue_hit = false; gray_is_hit_orange = false; black_is_hit_orange = false; orange_hit = false; warp_on = false; _root.decoy2.gotoAndStop(1); _root.decoy.gotoAndStop(1); _root.ball1.gotoAndStop(1); _root.ball1.gotoAndStop(1); _root.ball2.gotoAndStop(1); _root.ball2.gotoAndStop(1); decoy._x = -1000; decoy2._x = -1000; timing = true; elapsedTime = 0; startTime = getTimer(); seconds = 0; pinkkey._x = 138.7; pinkkey._y = 474.4; orangekey._x = 571.7; orangekey._y = 305.1; bluekey._x = 206.9; bluekey._y = 128.7; warpkey._x = 571.7; warpkey._y = 257.2; bluestop._x = 570.5; bluestop._y = 74.5; bluewall._x = 138.7; bluewall._y = 275; orangewall._x = 459.6; orangewall._y = 417.9; pinkwall._x = 459.6; pinkwall._y = 367.1; ball1._x = 134.8; ball1._y = 74.5; ball2._x = 571.7; ball2._y = 474.4; rr._x = 579.8; rr._y = 274.6; youwin._x = 10000; winningscreen._x = 1000; finish._x = 459.6; finish._y = 472.9; } function ball1_old_location() { x_location = ball1._x; y_location = ball1._y; } function ball_locator() { ball_location = true; if (black_is_hit_blue == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(3); _root.decoy.gotoAndStop(2); } if (gray_is_hit_blue == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); } if (black_is_hit_orange == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(3); _root.decoy.gotoAndStop(2); } if (gray_is_hit_orange == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); } } stop(); _root.options._x = 28.1; _root.restartbutton._x = 41.9; _root.QW._x = 73.8; _root.P._x = 55.6; _root.BN._x = 66; totalRestarts = 0; _root.option.hintbox.gotoAndStop(1); _root.option.meter.gotoAndStop(27); restartLevel(); youwin.onPress = function () { gotoAndStop ("l30"); }; ball1.onEnterFrame = function () { if (this.hitTest(pinkkey)) { keystart = true; pinkkey._x = 100000 /* 0x0186A0 */; pinkwall_movement = true; _root.ball1.scan.gotoAndStop(5); } if (this.hitTest(bluekey)) { keystart = true; bluekey._x = 100000 /* 0x0186A0 */; bluewall_movement = true; _root.ball1.scan.gotoAndStop(4); _root.ball1.scan.bluemove.gotoAndPlay(1); } if (this.hitTest(orangekey)) { keystart = true; orangekey._x = 100000 /* 0x0186A0 */; orangewall_movement = true; _root.ball1.scan.gotoAndStop(8); } if (this.hitTest(bluestop)) { stopstart = true; bluestop._x = 100000 /* 0x0186A0 */; bluewall_movement = false; _root.ball1.scan.gotoAndStop(11); } if (ball2.hitTest(pinkkey)) { pinkkey._x = 100000 /* 0x0186A0 */; pinkwall_movement = true; _root.ball1.scan.gotoAndStop(5); } if (ball2.hitTest(bluekey)) { bluekey._x = 100000 /* 0x0186A0 */; bluewall_movement = true; _root.ball1.scan.gotoAndStop(4); } if (ball2.hitTest(bluestop)) { bluestop._x = 100000 /* 0x0186A0 */; bluewall_movement = false; } if (this.hitTest(warpkey)) { _root.reversestart = true; warpkey._x = 10000; warp_on = true; } if (orangewall.hitTest(bluewall) and (bluewall_movement == true)) { bluewall_movement = false; orangewall_movement = false; soundstart = true; orangewall._x = 237.3; } else if (orangewall.hitTest(bluewall) and (bluewall_movement == false)) { orangewall_movement = false; soundstart = true; orangewall._x = 237.3; } if (scoresubmit23) { scoresubmit = false; } else if (scoresubmit23 == false) { scoresubmit = true; } if ((this.hitTest(finish) or this.hitTest(finish2)) and (ball2.hitTest(finish) or ball2.hitTest(finish2))) { timing = false; seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if ((score == 23) or scoresubmit) { level23_best_time = seconds; scoresubmit23 = true; savefile.data.scoresubmit23 = _root.scoresubmit23; savefile.flush(); } if (seconds < level23_best_time) { level23_best_time = seconds; } savefile.data.level23_best_time = _root.level23_best_time; savefile.flush(); if (_root.score <= 24) { _root.score = 24; } savefile.data.score = _root.score; savefile.flush(); SPACE_possible = false; ball_movement = false; win._x = Stage.width / 2; win._y = Stage.height / 2; _root.win.instructions.gotoAndStop(23); _root.win.meter.gotoAndStop(26); } if (Key.isDown(32) && (SPACE_possible == false)) { finisher = true; } if (finisher) { if (!Key.isDown(32)) { win._x = 10000; gotoAndStop ("l30"); finisher = false; SPACE_possible = true; } } }; _root.onEnterFrame = function () { seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if (!ball_movement) { timing = false; startTime = getTimer() - elapsedTime; } else { timing = true; } if (timing) { elapsedTime = getTimer() - startTime; } if (var23) { w_works = false; } else { w_works = true; } if (((option._x != (Stage.width / 2)) and (instruction._x != (Stage.width / 2))) and (win._x != (Stage.width / 2))) { if (Key.isDown(81)) { q_is_DOWN = true; } if (q_is_DOWN) { if (!Key.isDown(81)) { gotoAndStop ("l11"); q_is_DOWN = false; } } if (Key.isDown(87)) { w_is_DOWN = true; } if (w_is_DOWN) { if (!Key.isDown(87)) { if (w_works) { gotoAndStop ("l30"); } w_is_DOWN = false; } } ballx = ball1._x; bally = ball1._y; decoyx = decoy._x; decoyy = decoy._y; if (Key.isDown(78)) { n_is_DOWN = true; } if (n_is_DOWN) { if (!Key.isDown(78)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); n_is_DOWN = false; } } } if (Key.isDown(66)) { b_is_DOWN = true; } if (b_is_DOWN) { if (!Key.isDown(66)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); b_is_DOWN = false; } } } if (SPACE_possible) { if (Key.isDown(32)) { SPACE_is_DOWN = true; } if (SPACE_is_DOWN) { if (!Key.isDown(32)) { ball1_old_location(); ball1._x = ball2._x; ball1._y = ball2._y; ball2._x = x_location; ball2._y = y_location; SPACE_is_DOWN = false; } } } } if (bluewall_movement) { bluewall._y = bluewall._y + 0.3; } if (bluewall._y > 335.6) { soundstart = true; bluewall._y = 335.6; bluewall_movement = false; } if (orangewall_movement) { orangewall._x = orangewall._x - 1; } if (orangewall._x < 236.9) { orangewall_movement = false; soundstart = true; orangewall._x = 236.9; } if (pinkwall_movement) { pinkwall._x = pinkwall._x - 1.5; } if (pinkwall._x < 330) { pinkwall_movement = false; } differenceorange = ((orangewall._x - ball1._x) - (orangewall._width / 2)) - (ball1._width / 2); differenceorange2 = ((orangewall._x - ball2._x) - (orangewall._width / 2)) - (ball2._width / 2); distance_between_bluewall_and_ball = Math.abs(((ball1._x - bluewall._x) - (bluewall._width / 2)) - (ball1._width / 2)); distance_between_bluewall_and_ball2 = Math.abs(((ball2._x - bluewall._x) - (bluewall._width / 2)) - (ball2._width / 2)); distance_y_between_orangewall_and_ball = Math.abs(orangewall._y - ball1._y); distance_y_between_orangewall_and_ball2 = Math.abs(orangewall._y - ball2._y); if ((((orangewall_movement == true) and (differenceorange <= 0.2)) and (differenceorange >= -8)) and (distance_y_between_orangewall_and_ball < ((ball1._height / 2) + (orangewall._height / 2)))) { ball1._x = ((orangewall._x - (orangewall._width / 2)) - (ball1._width / 2)) - 0.2; } if ((((orangewall_movement == true) and (differenceorange2 <= 0.2)) and (differenceorange2 >= -8)) and (distance_y_between_orangewall_and_ball2 < ((ball2._height / 2) + (orangewall._height / 2)))) { ball2._x = ((orangewall._x - (orangewall._width / 2)) - (ball2._width / 2)) - 0.2; } if (((((differenceorange <= 0.5) && (differenceorange >= -2)) && (distance_between_bluewall_and_ball <= 1)) && (distance_y_between_orangewall_and_ball < ((ball1._height / 2) + (orangewall._height / 2)))) or ((((differenceorange2 <= 0.5) && (differenceorange2 >= -2)) && (distance_between_bluewall_and_ball2 <= 1)) && (distance_y_between_orangewall_and_ball2 < ((ball2._height / 2) + (orangewall._height / 2))))) { orange_hit = true; ball_location = false; ball1._x = 2000; ball2._x = 2000; } differenceblue = ((ball1._y - bluewall._y) - (bluewall._height / 2)) - (ball1._height / 2); differenceblue2 = ((ball2._y - bluewall._y) - (bluewall._height / 2)) - (ball2._height / 2); distance_between_bottomwall_and_ball = Math.abs(((bottomwall._y - ball1._y) - (bottomwall._height / 2)) - (ball1._height / 2)); distance_between_bottomwall_and_ball2 = Math.abs(((bottomwall._y - ball2._y) - (bottomwall._height / 2)) - (ball2._height / 2)); distance_x_between_bluewall_and_ball = Math.abs(bluewall._x - ball1._x); distance_x_between_bluewall_and_ball2 = Math.abs(bluewall._x - ball2._x); if ((((bluewall_movement == true) and (differenceblue <= 0.2)) and (differenceblue >= -8)) and (distance_x_between_bluewall_and_ball < ((ball1._width / 2) + (bluewall._width / 2)))) { ball1._y = ((bluewall._y + (bluewall._height / 2)) + (ball1._height / 2)) + 0.2; } if ((((bluewall_movement == true) and (differenceblue2 <= 0.2)) and (differenceblue2 >= -8)) and (distance_x_between_bluewall_and_ball2 < ((ball2._width / 2) + (bluewall._width / 2)))) { ball2._y = ((bluewall._y + (bluewall._height / 2)) + (ball2._height / 2)) + 0.2; } if (((((differenceblue <= 0.5) && (differenceblue >= -1)) && (distance_between_bottomwall_and_ball <= 1)) && (distance_x_between_bluewall_and_ball < ((ball1._width / 2) + (bluewall._width / 2)))) or ((((differenceblue2 <= 0.5) && (differenceblue2 >= -1)) && (distance_between_bottomwall_and_ball2 <= 0.5)) && (distance_x_between_bluewall_and_ball2 < ((ball2._width / 2) + (bluewall._width / 2))))) { blue_hit = true; ball_location = false; ball1._y = 2000; ball2._y = 2000; } if (ball_location) { ball1_xlocation = ball1._x; ball1_ylocation = ball1._y; ball2_xlocation = ball2._x; ball2_ylocation = ball2._y; } else { explosionsound2 = true; if (ball1_xlocation < (Stage.width / 2)) { if (orange_hit == true) { black_is_hit_orange = true; } if (blue_hit == true) { black_is_hit_blue = true; } } else if (ball1_xlocation > (Stage.width / 2)) { if (orange_hit == true) { gray_is_hit_orange = true; } if (blue_hit == true) { gray_is_hit_blue = true; } } ball_locator(); } };
Instance of Symbol 1917 MovieClip "ball1" in Frame 19
onClipEvent (enterFrame) { function move(xmove, ymove) { _x = (_x + xmove); _y = (_y + ymove); if (hitTest(_root.leftwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.middlewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.topwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.topwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.topwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.topwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bottomwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bottomwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bottomwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bottomwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bluewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bluewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bluewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bluewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bluewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.orangewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.orangewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.orangewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.orangewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.orangewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.pinkwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.pinkwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.pinkwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.pinkwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.pinkwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.middletop)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.middletop.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.middletop.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.middletop.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.middletop.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rl)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rl.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rl.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rl.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rl.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rr)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rr.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rr.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rr.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rr.getBounds(_root).yMax) - 0.1)); } } } if (_root.ball_movement == true) { if (Key.isDown(37)) { move(-5, 0); } if (Key.isDown(39)) { move(5, 0); } if (Key.isDown(38)) { move(0, -5); } if (Key.isDown(40)) { move(0, 5); } } }
Instance of Symbol 1918 MovieClip "ball2" in Frame 19
onClipEvent (load) { xmove2 = 0; ymove2 = 0; } onClipEvent (enterFrame) { function move2(xmove2, ymove2) { _x = (_x + xmove2); _y = (_y + ymove2); if (hitTest(_root.leftwall)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftwall.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftwall.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightwall)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightwall.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightwall.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.middlewall)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.topwall)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.topwall.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.topwall.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.topwall.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bottomwall)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bottomwall.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bottomwall.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bottomwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bluewall)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bluewall.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bluewall.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bluewall.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bluewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.middletop)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.middletop.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.middletop.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.middletop.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.middletop.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.orangewall)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.orangewall.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.orangewall.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.orangewall.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.orangewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rl)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rl.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rl.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rl.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rl.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rr)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rr.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rr.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rr.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rr.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.pinkwall)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.pinkwall.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.pinkwall.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.pinkwall.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.pinkwall.getBounds(_root).yMax) - 0.1)); } } } if (_root.warp_on == true) { if (_root.ball_movement) { if (Key.isDown(37)) { move2(5, 0); } if (Key.isDown(39)) { move2(-5, 0); } if (Key.isDown(38)) { move2(0, 5); } if (Key.isDown(40)) { move2(0, -5); } } } }
Frame 20
function restartLevel() { _root.scoresubmit11 = savefile.data.scoresubmit11; savefile.flush(); soundstart = false; small = false; if (((((((((((((((((((var12 != true) and (var13 != true)) and (var14 != true)) and (var15 != true)) and (var16 != true)) and (var17 != true)) and (var18 != true)) and (var19 != true)) and (var20 != true)) and (var21 != true)) and (var22 != true)) and (var23 != true)) and (var24 != true)) and (var25 != true)) and (var26 != true)) and (var27 != true)) and (var28 != true)) and (var29 != true)) and (var30 != true)) { var11 = true; } var10 = false; if (_root.var1) { _root.score = 1; } else if (_root.var2) { _root.score = 2; } else if (_root.var3) { _root.score = 3; } else if (_root.var4) { _root.score = 4; } else if (_root.var5) { _root.score = 5; } else if (_root.var6) { _root.score = 6; } else if (_root.var71) { _root.score = 7; } else if (_root.var8) { _root.score = 8; } else if (_root.var9) { _root.score = 9; } else if (_root.var10) { _root.score = 10; } else if (_root.var11) { _root.score = 11; } else if (_root.var12) { _root.score = 12; } else if (_root.var13) { _root.score = 13; } else if (_root.var14) { _root.score = 14; } else if (_root.var15) { _root.score = 15; } else if (_root.var16) { _root.score = 16; } else if (_root.var17) { _root.score = 17; } else if (_root.var18) { _root.score = 18; } else if (_root.var19) { _root.score = 19; } else if (_root.var20) { _root.score = 20; } else if (_root.var21) { _root.score = 21; } else if (_root.var22) { _root.score = 22; } else if (_root.var23) { _root.score = 23; } else if (_root.var24) { _root.score = 24; } else if (_root.var25) { _root.score = 25; } else if (_root.var26) { _root.score = 26; } else if (_root.var27) { _root.score = 27; } else if (_root.var28) { _root.score = 28; } else if (_root.var29) { _root.score = 29; } else if (_root.var30) { _root.score = 30; } savefile.data.score = _root.score; savefile.flush(); radius = ball1._height / 2; SPACE_possible = true; orangewall1_movement = false; orangewall2_movement = false; orangewall3_movement = false; pinkwall_movement = false; ball_movement = true; finisher = false; ball_location = true; gray_is_hit_orange1 = false; black_is_hit_orange1 = false; orange1_hit = false; gray_is_hit_orange2 = false; black_is_hit_orange2 = false; orange2_hit = false; gray_is_hit_orange3 = false; black_is_hit_orange3 = false; orange3_hit = false; _root.decoy2.gotoAndStop(1); _root.decoy.gotoAndStop(1); _root.ball1.gotoAndStop(1); _root.ball1.gotoAndStop(1); _root.ball2.gotoAndStop(1); _root.ball2.gotoAndStop(1); decoy._x = -1000; decoy2._x = -1000; timing = true; elapsedTime = 0; startTime = getTimer(); seconds = 0; pinkkey._x = 200.5; pinkkey._y = 215; orangekey._x = 436.9; orangekey._y = 307.8; orangewall1._x = 612.4; orangewall1._y = 436.4; orangewall2._x = 199.8; orangewall2._y = 307.8; orangewall3._x = 648.3; orangewall3._y = 143.8; pinkwall._x = 200.5; pinkwall._y = 436.5; ball1._x = 200; ball1._y = 73.5; ball2._x = 561.7; ball2._y = 315; youwin._x = 10000; winningscreen._x = 1000; finish._x = 136.5; finish._y = 462.9; } function ball1_old_location() { x_location = ball1._x; y_location = ball1._y; } function ball_locator() { ball_location = true; if (black_is_hit_orange2 == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(3); _root.decoy.gotoAndStop(2); } if (gray_is_hit_orange2 == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); } if (black_is_hit_orange3 == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(3); _root.decoy.gotoAndStop(2); } if (gray_is_hit_orange3 == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); } } stop(); _root.options._x = 28.1; _root.restartbutton._x = 41.9; _root.QW._x = 73.8; _root.P._x = 55.6; _root.BN._x = 66; totalRestarts = 0; _root.option.hintbox.gotoAndStop(1); _root.option.meter.gotoAndStop(11); restartLevel(); youwin.onPress = function () { gotoAndStop ("l26"); }; ball1.onEnterFrame = function () { if (this.hitTest(pinkkey)) { keystart = true; pinkkey._x = 100000 /* 0x0186A0 */; pinkwall_movement = true; _root.ball1.scan.gotoAndStop(5); } if (this.hitTest(orangekey)) { keystart = true; orangekey._x = 100000 /* 0x0186A0 */; orangewall1_movement = true; orangewall2_movement = true; orangewall3_movement = true; _root.ball1.scan.gotoAndStop(4); _root.ball1.scan.bluemove.gotoAndPlay(1); } if (orangewall1.hitTest(pinkwall) and (pinkwall_movement == true)) { pinkwall_movement = false; orangewall1_movement = false; soundstart = true; orangewall1._x = (pinkwall._x + (pinkwall._width / 2)) + (orangewall1._width / 2); } else if (orangewall1.hitTest(pinkwall) and (pinkwall_movement == false)) { orangewall1_movement = false; soundstart = true; orangewall1._x = ((pinkwall._x + (pinkwall._width / 2)) + (orangewall1._width / 2)) + 0.2; } if (scoresubmit11) { scoresubmit = false; } else if (scoresubmit11 == false) { scoresubmit = true; } if (this.hitTest(finish)) { timing = false; seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if ((score == 11) or scoresubmit) { level11_best_time = seconds; scoresubmit11 = true; savefile.data.scoresubmit11 = _root.scoresubmit11; savefile.flush(); } if (seconds < level11_best_time) { level11_best_time = seconds; } savefile.data.level11_best_time = _root.level11_best_time; savefile.flush(); if (_root.score <= 12) { _root.score = 12; } savefile.data.score = _root.score; savefile.flush(); SPACE_possible = false; ball_movement = false; win._x = Stage.width / 2; win._y = Stage.height / 2; _root.win.instructions.gotoAndStop(11); _root.win.meter.gotoAndStop(12); } if (Key.isDown(32) && (SPACE_possible == false)) { finisher = true; } if (finisher) { if (!Key.isDown(32)) { win._x = 10000; gotoAndStop ("l13"); finisher = false; SPACE_possible = true; } } }; _root.onEnterFrame = function () { seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if (!ball_movement) { timing = false; startTime = getTimer() - elapsedTime; } else { timing = true; } if (timing) { elapsedTime = getTimer() - startTime; } if (var11) { w_works = false; } else { w_works = true; } if (((option._x != (Stage.width / 2)) and (instruction._x != (Stage.width / 2))) and (win._x != (Stage.width / 2))) { if (Key.isDown(81)) { q_is_DOWN = true; } if (q_is_DOWN) { if (!Key.isDown(81)) { gotoAndStop ("l8"); q_is_DOWN = false; } } if (Key.isDown(87)) { w_is_DOWN = true; } if (w_is_DOWN) { if (!Key.isDown(87)) { if (w_works) { gotoAndStop ("l13"); } w_is_DOWN = false; } } ballx = ball1._x; bally = ball1._y; decoyx = decoy._x; if (Key.isDown(78)) { n_is_DOWN = true; } if (n_is_DOWN) { if (!Key.isDown(78)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); n_is_DOWN = false; } } } if (Key.isDown(66)) { b_is_DOWN = true; } if (b_is_DOWN) { if (!Key.isDown(66)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); b_is_DOWN = false; } } } if (SPACE_possible) { if (Key.isDown(32)) { SPACE_is_DOWN = true; } if (SPACE_is_DOWN) { if (!Key.isDown(32)) { ball1_old_location(); ball1._x = ball2._x; ball1._y = ball2._y; ball2._x = x_location; ball2._y = y_location; SPACE_is_DOWN = false; } } } } if (pinkwall_movement) { pinkwall._y = pinkwall._y + 0.5; } if (pinkwall._y > 700) { pinkwall_movement = false; } if (orangewall2_movement) { orangewall2._x = orangewall2._x + 0.5; } if (orangewall2._x > 500) { orangewall2_movement = false; soundstart = true; orangewall2._x = 500; } if (orangewall1_movement) { orangewall1._x = orangewall1._x - 1; } if (orangewall1._x < 388.1) { orangewall1_movement = false; soundstart = true; orangewall1._x = 388.1; } if (orangewall3_movement) { orangewall3._x = orangewall3._x - 0.7; } if (orangewall3._x < 349.6) { orangewall3_movement = false; soundstart = true; orangewall3._x = 349.9; } differenceorange1_or_3 = ((orangewall3._x - ball1._x) - (orangewall3._width / 2)) - (ball1._width / 2); differenceorange1_or_3_2 = ((orangewall3._x - ball2._x) - (orangewall3._width / 2)) - (ball2._width / 2); differenceorange2 = ((ball1._x - orangewall2._x) - (orangewall2._width / 2)) - (ball1._width / 2); differenceorange2_2 = ((ball2._x - orangewall2._x) - (orangewall2._width / 2)) - (ball2._width / 2); distance_between_rightwall_and_ball = Math.abs(((rightwall._x - ball1._x) - (rightwall._width / 2)) - (ball1._width / 2)); distance_between_rightwall_and_ball2 = Math.abs(((rightwall._x - ball2._x) - (rightwall._width / 2)) - (ball2._width / 2)); distance_between_leftwall_and_ball = Math.abs(((ball1._x - leftwall._x) - (leftwall._width / 2)) - (ball1._width / 2)); distance_between_leftwall_and_ball2 = Math.abs(((ball2._x - leftwall._x) - (leftwall._width / 2)) - (ball2._width / 2)); distance_y_between_orangewall2_and_ball = Math.abs(orangewall2._y - ball1._y); distance_y_between_orangewall2_and_ball2 = Math.abs(orangewall2._y - ball2._y); distance_y_between_orangewall3_and_ball = Math.abs(orangewall3._y - ball1._y); distance_y_between_orangewall3_and_ball2 = Math.abs(orangewall3._y - ball2._y); distance_y_between_orangewall1_and_ball = Math.abs(orangewall1._y - ball1._y); distance_y_between_orangewall1_and_ball2 = Math.abs(orangewall1._y - ball2._y); if ((((orangewall3_movement == true) and (differenceorange1_or_3 <= 0.2)) and (differenceorange1_or_3 >= -8)) and (distance_y_between_orangewall3_and_ball < ((ball1._height / 2) + (orangewall3._height / 2)))) { ball1._x = ((orangewall3._x - (orangewall3._width / 2)) - (ball1._width / 2)) - 0.2; } if ((((orangewall3_movement == true) and (differenceorange1_or_3_2 <= 0.2)) and (differenceorange1_or_3_2 >= -8)) and (distance_y_between_orangewall3_and_ball2 < ((ball2._height / 2) + (orangewall3._height / 2)))) { ball2._x = ((orangewall3._x - (orangewall3._width / 2)) - (ball2._width / 2)) - 0.2; } if ((((orangewall1_movement == true) and (differenceorange1_or_3 <= 0.2)) and (differenceorange1_or_3 >= -8)) and (distance_y_between_orangewall1_and_ball < ((ball1._height / 2) + (orangewall1._height / 2)))) { ball1._x = ((orangewall3._x - (orangewall3._width / 2)) - (ball1._width / 2)) - 0.2; } if ((((orangewall1_movement == true) and (differenceorange1_or_3_2 <= 0.2)) and (differenceorange1_or_3_2 >= -8)) and (distance_y_between_orangewall1_and_ball2 < ((ball2._height / 2) + (orangewall1._height / 2)))) { ball2._x = ((orangewall3._x - (orangewall3._width / 2)) - (ball2._width / 2)) - 0.2; } if (((((differenceorange1_or_3 <= 0.5) && (differenceorange1_or_3 >= -2)) && (distance_between_leftwall_and_ball <= 0.5)) && (distance_y_between_orangewall3_and_ball < ((ball1._height / 2) + (orangewall3._height / 2)))) or ((((differenceorange1_or_3_2 <= 0.5) && (differenceorange1_or_3_2 >= -2)) && (distance_between_leftwall_and_ball2 <= 0.5)) && (distance_y_between_orangewall3_and_ball2 < ((ball2._height / 2) + (orangewall3._height / 2))))) { orange3_hit = true; ball_location = false; ball1._x = 2000; ball2._x = 2000; } if ((((orangewall2_movement == true) and (differenceorange2 <= 0.2)) and (differenceorange2 >= -8)) and (distance_y_between_orangewall2_and_ball < ((ball1._height / 2) + (orangewall2._height / 2)))) { ball1._x = ((orangewall2._x + (orangewall2._width / 2)) + (ball1._width / 2)) + 0.2; } if ((((orangewall2_movement == true) and (differenceorange2_2 <= 0.2)) and (differenceorange2_2 >= -8)) and (distance_y_between_orangewall2_and_ball2 < ((ball2._height / 2) + (orangewall2._height / 2)))) { ball2._x = ((orangewall2._x + (orangewall2._width / 2)) + (ball2._width / 2)) + 0.2; } if (((((differenceorange2 <= 0.5) && (differenceorange2 >= -2)) && (distance_between_rightwall_and_ball <= 0.5)) && (distance_y_between_orangewall2_and_ball < ((ball1._height / 2) + (orangewall2._height / 2)))) or ((((differenceorange2_2 <= 0.5) && (differenceorange2_2 >= -2)) && (distance_between_rightwall_and_ball2 <= 0.5)) && (distance_y_between_orangewall2_and_ball2 < ((ball2._height / 2) + (orangewall2._height / 2))))) { orange2_hit = true; ball_location = false; ball1._x = 2000; ball2._x = 2000; } if (ball_location) { ball1_xlocation = ball1._x; ball1_ylocation = ball1._y; ball2_xlocation = ball2._x; ball2_ylocation = ball2._y; } else { explosionsound2 = true; if (ball1_xlocation < (Stage.width / 2)) { if (orange3_hit == true) { black_is_hit_orange3 = true; } if (orange2_hit == true) { gray_is_hit_orange2 = true; } } else if (ball1_xlocation > (Stage.width / 2)) { if (orange3_hit == true) { gray_is_hit_orange3 = true; } if (orange2_hit == true) { black_is_hit_orange2 = true; } } ball_locator(); } };
Instance of Symbol 1917 MovieClip "ball1" in Frame 20
onClipEvent (enterFrame) { function move(xmove, ymove) { _x = (_x + xmove); _y = (_y + ymove); if (hitTest(_root.leftwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.middlewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.topwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.topwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.topwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.topwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bottomwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bottomwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bottomwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bottomwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.pinkwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.pinkwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.pinkwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.pinkwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.pinkwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.orangewall1)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.orangewall1.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.orangewall1.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.orangewall1.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.orangewall1.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.orangewall2)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.orangewall2.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.orangewall2.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.orangewall2.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.orangewall2.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.orangewall3)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.orangewall3.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.orangewall3.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.orangewall3.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.orangewall3.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rotunda)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rotunda.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rotunda.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rotunda.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rotunda.getBounds(_root).yMax) - 0.1)); } } } if (_root.ball_movement == true) { if (Key.isDown(37)) { move(-5, 0); } if (Key.isDown(39)) { move(5, 0); } if (Key.isDown(38)) { move(0, -5); } if (Key.isDown(40)) { move(0, 5); } } }
Frame 21
function restartLevel() { _root.scoresubmit17 = savefile.data.scoresubmit17; savefile.flush(); soundstart = false; small = false; if (((((((((((((var18 != true) and (var19 != true)) and (var20 != true)) and (var21 != true)) and (var22 != true)) and (var23 != true)) and (var24 != true)) and (var25 != true)) and (var26 != true)) and (var27 != true)) and (var28 != true)) and (var29 != true)) and (var30 != true)) { var17 = true; } var16 = false; if (_root.var1) { _root.score = 1; } else if (_root.var2) { _root.score = 2; } else if (_root.var3) { _root.score = 3; } else if (_root.var4) { _root.score = 4; } else if (_root.var5) { _root.score = 5; } else if (_root.var6) { _root.score = 6; } else if (_root.var71) { _root.score = 7; } else if (_root.var8) { _root.score = 8; } else if (_root.var9) { _root.score = 9; } else if (_root.var10) { _root.score = 10; } else if (_root.var11) { _root.score = 11; } else if (_root.var12) { _root.score = 12; } else if (_root.var13) { _root.score = 13; } else if (_root.var14) { _root.score = 14; } else if (_root.var15) { _root.score = 15; } else if (_root.var16) { _root.score = 16; } else if (_root.var17) { _root.score = 17; } else if (_root.var18) { _root.score = 18; } else if (_root.var19) { _root.score = 19; } else if (_root.var20) { _root.score = 20; } else if (_root.var21) { _root.score = 21; } else if (_root.var22) { _root.score = 22; } else if (_root.var23) { _root.score = 23; } else if (_root.var24) { _root.score = 24; } else if (_root.var25) { _root.score = 25; } else if (_root.var26) { _root.score = 26; } else if (_root.var27) { _root.score = 27; } else if (_root.var28) { _root.score = 28; } else if (_root.var29) { _root.score = 29; } else if (_root.var30) { _root.score = 30; } savefile.data.score = _root.score; savefile.flush(); radius = ball1._height / 2; SPACE_possible = true; greenwall_movement = false; bluewall_movement = false; redwall_movement = false; orangewall_movement = false; ball_movement = true; finisher = false; redswitch.gotoAndStop(1); greenswitch.gotoAndStop(1); orangeswitch.gotoAndStop(1); blueswitch.gotoAndStop(1); _root.hit_crate1 = false; _root.cant_move_crate1_left_against_left_wall = false; _root.cant_move_crate1_right_against_middle_wall = false; _root.cant_move_crate1_down_against_bottom_wall = false; _root.cant_move_crate1_up_against_top_wall = false; _root.cant_move_crate1_left_against_lll = false; _root.cant_move_crate1_down_against_lll = false; _root.cant_move_crate1_up_against_lll = false; _root.cant_move_crate1_left_against_llr = false; _root.cant_move_crate1_down_against_llr = false; _root.cant_move_crate1_up_against_llr = false; _root.cant_move_crate1_right_against_lrr = false; _root.cant_move_crate1_down_against_lrr = false; _root.cant_move_crate1_up_against_lrr = false; _root.cant_move_crate1_right_against_lrl = false; _root.cant_move_crate1_down_against_lrl = false; _root.cant_move_crate1_up_against_lrl = false; timing = true; elapsedTime = 0; startTime = getTimer(); seconds = 0; bluewall._x = 500.1; bluewall._y = 238.9; orangewall._x = 499.8; orangewall._y = 284.8; greenwall._x = 500.1; greenwall._y = 333.1; redwall._x = 500.1; redwall._y = 380; redswitch._x = 134.5; redswitch._y = 443.9; blueswitch._x = 265.9; blueswitch._y = 107.2; greenswitch._x = 265.9; greenswitch._y = 443.9; orangeswitch._x = 134.5; orangeswitch._y = 107.2; crate1._x = 191.6; crate1._y = 384.1; ball1._x = 191.6; ball1._y = 466.9; ball2._x = 500; ball2._y = 111; youwin._x = 10000; winningscreen._x = 1000; finish._x = 500; finish._y = 453.8; } function ball1_old_location() { x_location = ball1._x; y_location = ball1._y; } stop(); _root.options._x = 28.1; _root.restartbutton._x = 41.9; _root.QW._x = 73.8; _root.P._x = 55.6; _root.BN._x = 66; totalRestarts = 0; _root.option.hintbox.gotoAndStop(1); _root.option.meter.gotoAndStop(17); restartLevel(); youwin.onPress = function () { gotoAndStop ("l23"); }; ball1.onEnterFrame = function () { if ((_root.greenswitch._currentframe == 1) and crate1.hitTest(_root.greenswitch.button)) { switchstart = true; greenswitch.gotoAndStop(2); greenwall_movement = true; } if (crate1.hitTest(_root.blueswitch.button) and (_root.blueswitch._currentframe == 1)) { switchstart = true; blueswitch.gotoAndStop(2); bluewall_movement = true; } if (crate1.hitTest(_root.orangeswitch.button) and (_root.orangeswitch._currentframe == 1)) { switchstart = true; orangeswitch.gotoAndStop(2); orangewall_movement = true; } if (crate1.hitTest(_root.redswitch.button) and (_root.redswitch._currentframe == 1)) { switchstart = true; redswitch.gotoAndStop(2); redwall_movement = true; } if (scoresubmit17) { scoresubmit = false; } else if (scoresubmit17 == false) { scoresubmit = true; } if (this.hitTest(finish)) { timing = false; seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if ((score == 17) or scoresubmit) { level17_best_time = seconds; scoresubmit17 = true; savefile.data.scoresubmit17 = _root.scoresubmit17; savefile.flush(); } if (seconds < level17_best_time) { level17_best_time = seconds; } savefile.data.level17_best_time = _root.level17_best_time; savefile.flush(); if (_root.score <= 18) { _root.score = 18; } savefile.data.score = _root.score; savefile.flush(); SPACE_possible = false; ball_movement = false; win._x = Stage.width / 2; win._y = Stage.height / 2; _root.win.instructions.gotoAndStop(17); _root.win.meter.gotoAndStop(18); } if (Key.isDown(32) && (SPACE_possible == false)) { finisher = true; } if (finisher) { if (!Key.isDown(32)) { win._x = 10000; gotoAndStop ("l23"); finisher = false; SPACE_possible = true; } } }; _root.onEnterFrame = function () { seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if (!ball_movement) { timing = false; startTime = getTimer() - elapsedTime; } else { timing = true; } if (timing) { elapsedTime = getTimer() - startTime; } if (var17) { w_works = false; } else { w_works = true; } if (((option._x != (Stage.width / 2)) and (instruction._x != (Stage.width / 2))) and (win._x != (Stage.width / 2))) { if (Key.isDown(81)) { q_is_DOWN = true; } if (q_is_DOWN) { if (!Key.isDown(81)) { gotoAndStop ("l14"); q_is_DOWN = false; } } if (Key.isDown(87)) { w_is_DOWN = true; } if (w_is_DOWN) { if (!Key.isDown(87)) { if (w_works) { gotoAndStop ("l23"); } w_is_DOWN = false; } } if (Key.isDown(78)) { n_is_DOWN = true; } if (n_is_DOWN) { if (!Key.isDown(78)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); n_is_DOWN = false; } } } if (Key.isDown(66)) { b_is_DOWN = true; } if (b_is_DOWN) { if (!Key.isDown(66)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); b_is_DOWN = false; } } } if (SPACE_possible) { if (Key.isDown(32)) { SPACE_is_DOWN = true; } if (SPACE_is_DOWN) { if (!Key.isDown(32)) { ball1_old_location(); ball1._x = ball2._x; ball1._y = ball2._y; ball2._x = x_location; ball2._y = y_location; SPACE_is_DOWN = false; } } } } if (greenwall_movement) { greenwall._x = greenwall._x + 2; } if (bluewall_movement) { bluewall._x = bluewall._x + 2; } if (orangewall_movement) { orangewall._x = orangewall._x + 2; } if (redwall_movement) { redwall._x = redwall._x + 2; } };
Instance of Symbol 1071 MovieClip "crate1" in Frame 21
onClipEvent (load) { _root.hit_crate1 = false; _root.cant_move_crate1_left_against_left_wall = false; _root.cant_move_crate1_right_against_middle_wall = false; _root.cant_move_crate1_down_against_bottom_wall = false; _root.cant_move_crate1_up_against_top_wall = false; _root.cant_move_crate1_left_against_lll = false; _root.cant_move_crate1_down_against_lll = false; _root.cant_move_crate1_up_against_lll = false; _root.cant_move_crate1_left_against_llr = false; _root.cant_move_crate1_down_against_llr = false; _root.cant_move_crate1_up_against_llr = false; _root.cant_move_crate1_right_against_lrr = false; _root.cant_move_crate1_down_against_lrr = false; _root.cant_move_crate1_up_against_lrr = false; _root.cant_move_crate1_right_against_lrl = false; _root.cant_move_crate1_down_against_lrl = false; _root.cant_move_crate1_up_against_lrl = false; } onClipEvent (enterFrame) { if (hitTest(_root.leftwall)) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate1_left_against_left_wall = true; } if ((((_x - _root.leftwall._x) - (_root.leftwall._width / 2)) - (_width / 2)) <= 0.3) { _root.cant_move_crate1_left_against_left_wall = true; } else { _root.cant_move_crate1_left_against_left_wall = false; } if (hitTest(_root.lll) and (_root.moveleft == true)) { _x = (_x - ((getBounds(_root).xMin - _root.lll.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate1_left_against_lll = true; } if (((Math.abs(((_x - _root.lll._x) - (_root.lll._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.lll._y + (_root.lll._height / 2)) + (_height / 2)))) and (_y > ((_root.lll._y - (_root.lll._height / 2)) - (_height / 2)))) { _root.cant_move_crate1_left_against_lll = true; } else { _root.cant_move_crate1_left_against_lll = false; } if (hitTest(_root.llr) and (_root.moveleft == true)) { _x = (_x - ((getBounds(_root).xMin - _root.llr.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate1_left_against_llr = true; } if (((Math.abs(((_x - _root.llr._x) - (_root.llr._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.llr._y + (_root.llr._height / 2)) + (_height / 2)))) and (_y > ((_root.llr._y - (_root.llr._height / 2)) - (_height / 2)))) { _root.cant_move_crate1_left_against_llr = true; } else { _root.cant_move_crate1_left_against_llr = false; } if (hitTest(_root.middlewall1)) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall1.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate1_right_against_middle_wall = true; } if ((((_root.middlewall1._x - _x) - (_root.middlewall1._width / 2)) - (_width / 2)) <= 0.3) { _root.cant_move_crate1_right_against_middle_wall = true; } else { _root.cant_move_crate1_right_against_middle_wall = false; } if (hitTest(_root.lrl) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.lrl.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate1_right_against_lrl = true; } if (((Math.abs(((_root.lrl._x - _x) - (_root.lrl._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.lrl._y + (_root.lrl._height / 2)) + (_height / 2)))) and (_y > ((_root.lrl._y - (_root.lrl._height / 2)) - (_height / 2)))) { _root.cant_move_crate1_right_against_lrl = true; } else { _root.cant_move_crate1_right_against_lrl = false; } if (hitTest(_root.lrr) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.lrr.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate1_right_against_lrr = true; } if (((Math.abs(((_root.lrr._x - _x) - (_root.lrr._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.lrr._y + (_root.lrr._height / 2)) + (_height / 2)))) and (_y > ((_root.lrr._y - (_root.lrr._height / 2)) - (_height / 2)))) { _root.cant_move_crate1_right_against_lrr = true; } else { _root.cant_move_crate1_right_against_lrr = false; } if (hitTest(_root.topwall)) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate1_up_against_top_wall = true; } if ((((_y - _root.topwall._y) - (_root.topwall._height / 2)) - (_height / 2)) <= 0.3) { _root.cant_move_crate1_up_against_top_wall = true; } else { _root.cant_move_crate1_up_against_top_wall = false; } if (hitTest(_root.lll) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.lll.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate1_up_against_lll = true; } if (((Math.abs(((_y - _root.lll._y) - (_root.lll._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.lll._x + (_root.lll._width / 2)) + (_width / 2)))) and (_x > ((_root.lll._x - (_root.lll._width / 2)) - (_width / 2)))) { _root.cant_move_crate1_up_against_lll = true; } else { _root.cant_move_crate1_up_against_lll = false; } if (hitTest(_root.llr) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.llr.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate1_up_against_llr = true; } if (((Math.abs(((_y - _root.llr._y) - (_root.llr._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.llr._x + (_root.llr._width / 2)) + (_width / 2)))) and (_x > ((_root.llr._x - (_root.llr._width / 2)) - (_width / 2)))) { _root.cant_move_crate1_up_against_llr = true; } else { _root.cant_move_crate1_up_against_llr = false; } if (hitTest(_root.lrl) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.lrl.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate1_up_against_lrl = true; } if (((Math.abs(((_y - _root.lrl._y) - (_root.lrl._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.lrl._x + (_root.lrl._width / 2)) + (_width / 2)))) and (_x > ((_root.lrl._x - (_root.lrl._width / 2)) - (_width / 2)))) { _root.cant_move_crate1_up_against_lrl = true; } else { _root.cant_move_crate1_up_against_lrl = false; } if (hitTest(_root.lrr) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.lrr.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate1_up_against_lrr = true; } if (((Math.abs(((_y - _root.lrr._y) - (_root.lrr._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.lrr._x + (_root.lrr._width / 2)) + (_width / 2)))) and (_x > ((_root.lrr._x - (_root.lrr._width / 2)) - (_width / 2)))) { _root.cant_move_crate1_up_against_lrr = true; } else { _root.cant_move_crate1_up_against_lrr = false; } if (hitTest(_root.bottomwall)) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate1_down_against_bottom_wall = true; } if ((((_root.bottomwall._y - _y) - (_root.bottomwall._height / 2)) - (_height / 2)) <= 0.3) { _root.cant_move_crate1_down_against_bottom_wall = true; } else { _root.cant_move_crate1_down_against_bottom_wall = false; } if (hitTest(_root.lll) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.lll.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate1_down_against_lll = true; } if (((Math.abs(((_root.lll._y - _y) - (_root.lll._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.lll._x + (_root.lll._width / 2)) + (_width / 2)))) and (_x > ((_root.lll._x - (_root.lll._width / 2)) - (_width / 2)))) { _root.cant_move_crate1_down_against_lll = true; } else { _root.cant_move_crate1_down_against_lll = false; } if (hitTest(_root.llr) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.llr.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate1_down_against_llr = true; } if (((Math.abs(((_root.llr._y - _y) - (_root.llr._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.llr._x + (_root.llr._width / 2)) + (_width / 2)))) and (_x > ((_root.llr._x - (_root.llr._width / 2)) - (_width / 2)))) { _root.cant_move_crate1_down_against_llr = true; } else { _root.cant_move_crate1_down_against_llr = false; } if (hitTest(_root.lrl) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.lrl.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate1_down_against_lrl = true; } if (((Math.abs(((_root.lrl._y - _y) - (_root.lrl._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.lrl._x + (_root.lrl._width / 2)) + (_width / 2)))) and (_x > ((_root.lrl._x - (_root.lrl._width / 2)) - (_width / 2)))) { _root.cant_move_crate1_down_against_lrl = true; } else { _root.cant_move_crate1_down_against_lrl = false; } if (hitTest(_root.lrr) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.lrr.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate1_down_against_lrr = true; } if (((Math.abs(((_root.lrr._y - _y) - (_root.lrr._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.lrr._x + (_root.lrr._width / 2)) + (_width / 2)))) and (_x > ((_root.lrr._x - (_root.lrr._width / 2)) - (_width / 2)))) { _root.cant_move_crate1_down_against_lrr = true; } else { _root.cant_move_crate1_down_against_lrr = false; } }
Instance of Symbol 1917 MovieClip "ball1" in Frame 21
onClipEvent (load) { _root.hit_crate1 = false; } onClipEvent (enterFrame) { function move(xmove, ymove) { _x = (_x + xmove); _y = (_y + ymove); if (hitTest(_root.leftwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.middlewall1)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall1.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall1.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall1.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall1.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.topwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.topwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.topwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.topwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bottomwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bottomwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bottomwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bottomwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.lll)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.lll.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.lll.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.lll.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.lll.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.llr)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.llr.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.llr.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.llr.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.llr.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.lrl)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.lrl.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.lrl.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.lrl.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.lrl.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.lrr)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.lrr.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.lrr.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.lrr.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.lrr.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.redwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.redwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.redwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.redwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.redwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bluewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bluewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bluewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bluewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bluewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.greenwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.greenwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.greenwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.greenwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.greenwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.orangewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.orangewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.orangewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.orangewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.orangewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.crate1)) { if (_root.crate1._currentframe == 1) { _root.hit_crate1 = true; if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.crate1.getBounds(_root).xMin) + 0.1)); if (((_root.cant_move_crate1_right_against_middle_wall == false) and (_root.cant_move_crate1_right_against_lrl == false)) and (_root.cant_move_crate1_right_against_lrr == false)) { _root.cratespeed_xright = 1; _root.crate1._x = _root.crate1._x + _root.cratespeed_xright; _root.moveright = true; } } else { _root.moveright = false; } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.crate1.getBounds(_root).xMax) - 0.1)); if (((_root.cant_move_crate1_left_against_lll == false) and (_root.cant_move_crate1_left_against_llr == false)) and (_root.cant_move_crate1_left_against_left_wall == false)) { _root.cratespeed_xleft = 1; _root.crate1._x = _root.crate1._x - _root.cratespeed_xleft; _root.moveleft = true; } } else { _root.moveleft = false; } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.crate1.getBounds(_root).yMin) + 0.1)); if (((((_root.cant_move_crate1_down_against_lll == false) and (_root.cant_move_crate1_down_against_bottom_wall == false)) and (_root.cant_move_crate1_down_against_llr == false)) and (_root.cant_move_crate1_down_against_lrl == false)) and (_root.cant_move_crate1_down_against_lrr == false)) { _root.cratespeed_ydown = 1; _root.crate1._y = _root.crate1._y + _root.cratespeed_ydown; _root.movedown = true; } } else { _root.movedown = false; } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.crate1.getBounds(_root).yMax) - 0.1)); if (((((_root.cant_move_crate1_up_against_lll == false) and (_root.cant_move_crate1_up_against_llr == false)) and (_root.cant_move_crate1_up_against_top_wall == false)) and (_root.cant_move_crate1_up_against_lrl == false)) and (_root.cant_move_crate1_up_against_lrr == false)) { _root.cratespeed_yup = 1; _root.crate1._y = _root.crate1._y - _root.cratespeed_yup; _root.moveup = true; } } else { _root.moveup = false; } } } else { _root.cratespeed_xright = 0; _root.cratespeed_xleft = 0; _root.cratespeed_ydown = 0; _root.cratespeed_yup = 0; } } if ((((!Key.isDown(37)) and (!Key.isDown(39))) and (!Key.isDown(38))) and (!Key.isDown(40))) { _root.moveup = false; _root.movedown = false; _root.moveright = false; _root.moveleft = false; move(0, 0); _root.hit_crate1 = false; } if (_root.ball_movement == true) { if (Key.isDown(37)) { move(-5, 0); } if (Key.isDown(39)) { move(5, 0); } if (Key.isDown(38)) { move(0, -5); } if (Key.isDown(40)) { move(0, 5); } } }
Frame 22
function restartLevel() { _root.scoresubmit20 = savefile.data.scoresubmit20; savefile.flush(); soundstart = false; small = false; if ((((((((((var21 != true) and (var22 != true)) and (var23 != true)) and (var24 != true)) and (var25 != true)) and (var26 != true)) and (var27 != true)) and (var28 != true)) and (var29 != true)) and (var30 != true)) { var20 = true; } var19 = false; if (_root.var1) { _root.score = 1; } else if (_root.var2) { _root.score = 2; } else if (_root.var3) { _root.score = 3; } else if (_root.var4) { _root.score = 4; } else if (_root.var5) { _root.score = 5; } else if (_root.var6) { _root.score = 6; } else if (_root.var71) { _root.score = 7; } else if (_root.var8) { _root.score = 8; } else if (_root.var9) { _root.score = 9; } else if (_root.var10) { _root.score = 10; } else if (_root.var11) { _root.score = 11; } else if (_root.var12) { _root.score = 12; } else if (_root.var13) { _root.score = 13; } else if (_root.var14) { _root.score = 14; } else if (_root.var15) { _root.score = 15; } else if (_root.var16) { _root.score = 16; } else if (_root.var17) { _root.score = 17; } else if (_root.var18) { _root.score = 18; } else if (_root.var19) { _root.score = 19; } else if (_root.var20) { _root.score = 20; } else if (_root.var21) { _root.score = 21; } else if (_root.var22) { _root.score = 22; } else if (_root.var23) { _root.score = 23; } else if (_root.var24) { _root.score = 24; } else if (_root.var25) { _root.score = 25; } else if (_root.var26) { _root.score = 26; } else if (_root.var27) { _root.score = 27; } else if (_root.var28) { _root.score = 28; } else if (_root.var29) { _root.score = 29; } else if (_root.var30) { _root.score = 30; } savefile.data.score = _root.score; savefile.flush(); radius = ball1._height / 2; SPACE_possible = true; redwall_movement = false; bluewall_movement = false; pinkwall1_movement = false; pinkwall2_movement = false; pinktransparent_movement = false; orangewall1_movement = false; orangewall2_movement = false; orangeswitch.gotoAndStop(1); ball_location = true; bluestart = false; blue_count = 0; _root.ball1.scan.bluemove.gotoAndStop(1); gray_is_hit_orange1 = false; black_is_hit_orange1 = false; orange1_hit = false; gray_is_hit_orange2 = false; black_is_hit_orange2 = false; orange2_hit = false; gray_is_hit_red_right = false; black_is_hit_red_right = false; gray_is_hit_red_left = false; black_is_hit_red_left = false; red_hit_left = false; red_hit_right = false; ball_movement = true; finisher = false; _root.decoy2.gotoAndStop(1); _root.decoy.gotoAndStop(1); _root.ball1.gotoAndStop(1); _root.ball1.gotoAndStop(1); _root.ball2.gotoAndStop(1); _root.ball2.gotoAndStop(1); decoy._x = -1000; decoy2._x = -1000; timing = true; elapsedTime = 0; startTime = getTimer(); seconds = 0; redkey._x = 425.8; redkey._y = 126.7; orangeswitch._x = 425.8; orangeswitch._y = 308.6; bluekey1._x = 116.5; bluekey1._y = 177.3; bluekey2._x = 116.5; bluekey2._y = 211.8; bluekey3._x = 116.5; bluekey3._y = 243.6; bluekey4._x = 116.5; bluekey4._y = 277.6; bluekey5._x = 181.8; bluekey5._y = 60.8; bluekey6._x = 181.8; bluekey6._y = 180.5; bluekey7._x = 524.8; bluekey7._y = 470.1; bluekey8._x = 576.3; bluekey8._y = 470.1; bluekey9._x = 524.8; bluekey9._y = 171.1; bluekey10._x = 281.8; bluekey10._y = 60.8; bluekey11._x = 232.8; bluekey11._y = 121.3; bluekey12._x = 425.8; bluekey12._y = 171.1; bluekey13._x = 481.6; bluekey13._y = 211.6; bluekey14._x = 416.3; bluekey14._y = 485.5; bluekey15._x = 576.3; bluekey15._y = 171.1; bluekey16._x = 281.8; bluekey16._y = 180.5; bluekey17._x = 481.6; bluekey17._y = 249.6; bluekey18._x = 481.6; bluekey18._y = 416.6; bluekey19._x = 481.6; bluekey19._y = 291.1; bluekey20._x = 181.8; bluekey20._y = 121.3; bluekey21._x = 232.8; bluekey21._y = 60.8; bluekey22._x = 232.8; bluekey22._y = 180.5; bluekey23._x = 281.8; bluekey23._y = 450.6; bluekey24._x = 481.6; bluekey24._y = 332.4; bluekey25._x = 281.8; bluekey25._y = 123.1; bluekey26._x = 116.5; bluekey26._y = 141.6; bluekey27._x = 249.3; bluekey27._y = 450.6; bluekey28._x = 281.8; bluekey28._y = 415.6; bluekey29._x = 481.6; bluekey29._y = 374.6; bluewall._x = 514.6; bluewall._y = 78.9; redwall._x = 690; redwall._y = 314.2; redwall2._x = 184.3; redwall2._y = 470.9; redwall3._x = 133.3; redwall3._y = 453.4; orangewall1._x = 313.6; orangewall1._y = 486.1; orangewall2._x = 115.3; orangewall2._y = -123.8; ball1._x = 116.2; ball1._y = 486.4; ball2._x = 468.9; ball2._y = 80.2; youwin._x = 10000; winningscreen._x = 1000; finish._x = 565.7; finish._y = 78.3; } function ball1_old_location() { x_location = ball1._x; y_location = ball1._y; } function ball_locator() { ball_location = true; if (black_is_hit_red_left == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(3); _root.decoy.gotoAndStop(2); } if (gray_is_hit_red_left == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); } if (black_is_hit_red_right == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(3); _root.decoy.gotoAndStop(2); } if (gray_is_hit_red_right == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); } if (black_is_hit_orange1 == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(3); _root.decoy.gotoAndStop(2); } if (gray_is_hit_orange1 == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); } if (black_is_hit_orange2 == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(3); _root.decoy.gotoAndStop(2); } if (gray_is_hit_orange2 == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); } } stop(); _root.options._x = 28.1; _root.restartbutton._x = 41.9; _root.QW._x = 73.8; _root.P._x = 55.6; _root.BN._x = 66; totalRestarts = 0; _root.option.hintbox.gotoAndStop(1); _root.option.meter.gotoAndStop(20); restartLevel(); youwin.onPress = function () { gotoAndStop ("l22"); }; ball1.onEnterFrame = function () { if (this.hitTest(bluekey1)) { keystart = true; bluekey1._x = 100000 /* 0x0186A0 */; blue_count = blue_count + 1; _root.ball1.scan.bluemove.gotoAndStop(_root.ball1.scan.bluemove._currentframe + 3); } if (this.hitTest(bluekey2)) { keystart = true; bluekey2._x = 100000 /* 0x0186A0 */; blue_count = blue_count + 1; _root.ball1.scan.bluemove.gotoAndStop(_root.ball1.scan.bluemove._currentframe + 3); } if (this.hitTest(bluekey3)) { keystart = true; bluekey3._x = 100000 /* 0x0186A0 */; blue_count = blue_count + 1; _root.ball1.scan.bluemove.gotoAndStop(_root.ball1.scan.bluemove._currentframe + 3); } if (this.hitTest(bluekey4)) { keystart = true; if (bluestart == true) { _root.ball1.scan.bluemove.gotoAndStop(_root.ball1.scan.bluemove._currentframe + 2); } else { _root.ball1.scan.gotoAndStop(4); _root.ball1.scan.bluemove.gotoAndStop(2); bluestart = true; } bluekey4._x = 100000 /* 0x0186A0 */; blue_count = blue_count + 1; } if (this.hitTest(bluekey5)) { keystart = true; bluekey5._x = 100000 /* 0x0186A0 */; blue_count = blue_count + 1; _root.ball1.scan.bluemove.gotoAndStop(_root.ball1.scan.bluemove._currentframe + 2); } if (this.hitTest(bluekey6)) { keystart = true; if (bluestart == true) { _root.ball1.scan.bluemove.gotoAndStop(_root.ball1.scan.bluemove._currentframe + 2); } else { _root.ball1.scan.gotoAndStop(4); _root.ball1.scan.bluemove.gotoAndStop(2); bluestart = true; } bluekey6._x = 100000 /* 0x0186A0 */; blue_count = blue_count + 1; } if (this.hitTest(bluekey7)) { keystart = true; bluekey7._x = 100000 /* 0x0186A0 */; blue_count = blue_count + 1; _root.ball1.scan.bluemove.gotoAndStop(_root.ball1.scan.bluemove._currentframe + 3); } if (this.hitTest(bluekey8)) { keystart = true; bluekey8._x = 100000 /* 0x0186A0 */; blue_count = blue_count + 1; _root.ball1.scan.bluemove.gotoAndStop(_root.ball1.scan.bluemove._currentframe + 2); } if (this.hitTest(bluekey9)) { keystart = true; bluekey9._x = 100000 /* 0x0186A0 */; blue_count = blue_count + 1; _root.ball1.scan.bluemove.gotoAndStop(_root.ball1.scan.bluemove._currentframe + 3); } if (this.hitTest(bluekey10)) { keystart = true; bluekey10._x = 100000 /* 0x0186A0 */; blue_count = blue_count + 1; _root.ball1.scan.bluemove.gotoAndStop(_root.ball1.scan.bluemove._currentframe + 3); } if (this.hitTest(bluekey11)) { keystart = true; bluekey11._x = 100000 /* 0x0186A0 */; blue_count = blue_count + 1; _root.ball1.scan.bluemove.gotoAndStop(_root.ball1.scan.bluemove._currentframe + 2); } if (this.hitTest(bluekey12)) { keystart = true; if (bluestart == true) { _root.ball1.scan.bluemove.gotoAndStop(_root.ball1.scan.bluemove._currentframe + 2); } else { _root.ball1.scan.gotoAndStop(4); _root.ball1.scan.bluemove.gotoAndStop(2); bluestart = true; } bluekey12._x = 100000 /* 0x0186A0 */; blue_count = blue_count + 1; } if (this.hitTest(bluekey13)) { keystart = true; bluekey13._x = 100000 /* 0x0186A0 */; blue_count = blue_count + 1; _root.ball1.scan.bluemove.gotoAndStop(_root.ball1.scan.bluemove._currentframe + 3); } if (this.hitTest(bluekey14)) { keystart = true; bluekey14._x = 100000 /* 0x0186A0 */; blue_count = blue_count + 1; _root.ball1.scan.bluemove.gotoAndStop(_root.ball1.scan.bluemove._currentframe + 2); } if (this.hitTest(bluekey15)) { keystart = true; bluekey15._x = 100000 /* 0x0186A0 */; blue_count = blue_count + 1; _root.ball1.scan.bluemove.gotoAndStop(_root.ball1.scan.bluemove._currentframe + 3); } if (this.hitTest(bluekey16)) { keystart = true; if (bluestart == true) { _root.ball1.scan.bluemove.gotoAndStop(_root.ball1.scan.bluemove._currentframe + 2); } else { _root.ball1.scan.gotoAndStop(4); _root.ball1.scan.bluemove.gotoAndStop(2); bluestart = true; } bluekey16._x = 100000 /* 0x0186A0 */; blue_count = blue_count + 1; } if (this.hitTest(bluekey17)) { keystart = true; bluekey17._x = 100000 /* 0x0186A0 */; blue_count = blue_count + 1; _root.ball1.scan.bluemove.gotoAndStop(_root.ball1.scan.bluemove._currentframe + 2); } if (this.hitTest(bluekey18)) { keystart = true; bluekey18._x = 100000 /* 0x0186A0 */; blue_count = blue_count + 1; _root.ball1.scan.bluemove.gotoAndStop(_root.ball1.scan.bluemove._currentframe + 3); } if (this.hitTest(bluekey19)) { keystart = true; bluekey19._x = 100000 /* 0x0186A0 */; blue_count = blue_count + 1; _root.ball1.scan.bluemove.gotoAndStop(_root.ball1.scan.bluemove._currentframe + 2); } if (this.hitTest(bluekey20)) { keystart = true; bluekey20._x = 100000 /* 0x0186A0 */; blue_count = blue_count + 1; _root.ball1.scan.bluemove.gotoAndStop(_root.ball1.scan.bluemove._currentframe + 3); } if (this.hitTest(bluekey21)) { keystart = true; bluekey21._x = 100000 /* 0x0186A0 */; blue_count = blue_count + 1; _root.ball1.scan.bluemove.gotoAndStop(_root.ball1.scan.bluemove._currentframe + 2); } if (this.hitTest(bluekey22)) { keystart = true; if (bluestart == true) { _root.ball1.scan.bluemove.gotoAndStop(_root.ball1.scan.bluemove._currentframe + 2); } else { _root.ball1.scan.gotoAndStop(4); _root.ball1.scan.bluemove.gotoAndStop(2); bluestart = true; } bluekey22._x = 100000 /* 0x0186A0 */; blue_count = blue_count + 1; } if (this.hitTest(bluekey23)) { keystart = true; bluekey23._x = 100000 /* 0x0186A0 */; blue_count = blue_count + 1; _root.ball1.scan.bluemove.gotoAndStop(_root.ball1.scan.bluemove._currentframe + 3); } if (this.hitTest(bluekey24)) { keystart = true; bluekey24._x = 100000 /* 0x0186A0 */; blue_count = blue_count + 1; _root.ball1.scan.bluemove.gotoAndStop(_root.ball1.scan.bluemove._currentframe + 3); } if (this.hitTest(bluekey25)) { keystart = true; bluekey25._x = 100000 /* 0x0186A0 */; blue_count = blue_count + 1; _root.ball1.scan.bluemove.gotoAndStop(_root.ball1.scan.bluemove._currentframe + 3); } if (this.hitTest(bluekey26)) { keystart = true; bluekey26._x = 100000 /* 0x0186A0 */; blue_count = blue_count + 1; _root.ball1.scan.bluemove.gotoAndStop(_root.ball1.scan.bluemove._currentframe + 3); } if (this.hitTest(bluekey27)) { keystart = true; bluekey27._x = 100000 /* 0x0186A0 */; blue_count = blue_count + 1; _root.ball1.scan.bluemove.gotoAndStop(_root.ball1.scan.bluemove._currentframe + 2); } if (this.hitTest(bluekey28)) { keystart = true; bluekey28._x = 100000 /* 0x0186A0 */; blue_count = blue_count + 1; _root.ball1.scan.bluemove.gotoAndStop(_root.ball1.scan.bluemove._currentframe + 2); } if (this.hitTest(bluekey29)) { keystart = true; bluekey29._x = 100000 /* 0x0186A0 */; blue_count = blue_count + 1; _root.ball1.scan.bluemove.gotoAndStop(_root.ball1.scan.bluemove._currentframe + 3); } if (_root.ball1.scan.bluemove._currentframe == 64) { _root.ball1.scan.bluemove.gotoAndPlay(65); } if (pinkwall2.hitTest(skinnyleft)) { pinkwall2_movement = false; pinkwall1_movement = false; pinktransparent_movement = false; } if (redwall.hitTest(_root.orangeswitch.button) and (_root.orangeswitch._currentframe == 1)) { switchstart = true; _root.orangeswitch.gotoAndStop(2); if (orangewall2._y >= 268.6) { orangewall2_movement = false; } else { orangewall2_movement = true; } } if (this.hitTest(redkey)) { keystart = true; redkey._x = 10000; redwall_movement = true; _root.ball1.scan.gotoAndStop(3); } if (blue_count >= 25) { bluewall_movement = true; } if (scoresubmit20) { scoresubmit = false; } else if (scoresubmit20 == false) { scoresubmit = true; } if (this.hitTest(finish)) { timing = false; seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if ((score == 20) or scoresubmit) { level20_best_time = seconds; scoresubmit20 = true; savefile.data.scoresubmit20 = _root.scoresubmit20; savefile.flush(); } if (seconds < level20_best_time) { level20_best_time = seconds; } savefile.data.level20_best_time = _root.level20_best_time; savefile.flush(); if (_root.score <= 21) { _root.score = 21; } savefile.data.score = _root.score; savefile.flush(); SPACE_possible = false; ball_movement = false; win._x = Stage.width / 2; win._y = Stage.height / 2; _root.win.instructions.gotoAndStop(20); _root.win.meter.gotoAndStop(21); } if (Key.isDown(32) && (SPACE_possible == false)) { finisher = true; } if (finisher) { if (!Key.isDown(32)) { win._x = 10000; gotoAndStop ("l22"); finisher = false; SPACE_possible = true; } } }; _root.onEnterFrame = function () { orangey = orangewall2._y; seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if (!ball_movement) { timing = false; startTime = getTimer() - elapsedTime; } else { timing = true; } if (timing) { elapsedTime = getTimer() - startTime; } if (var20) { w_works = false; } else { w_works = true; } if (((option._x != (Stage.width / 2)) and (instruction._x != (Stage.width / 2))) and (win._x != (Stage.width / 2))) { if (Key.isDown(81)) { q_is_DOWN = true; } if (q_is_DOWN) { if (!Key.isDown(81)) { gotoAndStop ("l12"); q_is_DOWN = false; } } if (Key.isDown(87)) { w_is_DOWN = true; } if (w_is_DOWN) { if (!Key.isDown(87)) { if (w_works) { gotoAndStop ("l22"); } w_is_DOWN = false; } } ballx = ball1._x; bally = ball1._y; decoyx = decoy._x; if (Key.isDown(78)) { n_is_DOWN = true; } if (n_is_DOWN) { if (!Key.isDown(78)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); n_is_DOWN = false; } } } if (Key.isDown(66)) { b_is_DOWN = true; } if (b_is_DOWN) { if (!Key.isDown(66)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); b_is_DOWN = false; } } } if (SPACE_possible) { if (Key.isDown(32)) { SPACE_is_DOWN = true; } if (SPACE_is_DOWN) { if (!Key.isDown(32)) { ball1_old_location(); ball1._x = ball2._x; ball1._y = ball2._y; ball2._x = x_location; ball2._y = y_location; SPACE_is_DOWN = false; } } } } if (bluewall_movement) { bluewall._y = bluewall._y - 2; } if (bluewall._y < 30.1) { bluewall_movement = false; } if (redwall_movement) { redwall._x = redwall._x - 0.25; redwall3._x = redwall3._x - 1; redwall2._y = redwall2._y + 1; } if (redwall._x < 575) { redwall_movement = false; soundstart = true; redwall._x = 575; } if (pinkwall1_movement) { pinkwall1._x = pinkwall1._x - 1; } if (pinkwall2_movement) { pinkwall2._x = pinkwall2._x - 1; } if (pinktransparent_movement) { pinktransparent._x = pinktransparent._x - 1; } if (orangewall1_movement) { orangewall1._x = orangewall1._x - 0.1; } if (orangewall1._x < 216) { orangewall1_movement = false; } if (orangewall2_movement) { orangewall2._y = orangewall2._y + 0.55; } if (orangewall2._y > 269) { orangewall2_movement = false; soundstart = true; orangewall2._y = 268.9; } differencered = ((redwall._x - ball1._x) - (redwall._width / 2)) - (ball1._width / 2); differencered2 = ((redwall._x - ball2._x) - (redwall._width / 2)) - (ball2._width / 2); distance_between_middlewall_and_ball = Math.abs(((ball1._x - middlewall._x) - (middlewall._width / 2)) - (ball1._width / 2)); distance_between_middlewall_and_ball2 = Math.abs(((ball2._x - middlewall._x) - (middlewall._width / 2)) - (ball2._width / 2)); distance_between_skinnyleft_and_ball = Math.abs(((ball1._x - skinnyleft._x) - (skinnyleft._width / 2)) - (ball1._width / 2)); distance_between_skinnyleft_and_ball2 = Math.abs(((ball2._x - skinnyleft._x) - (skinnyleft._width / 2)) - (ball2._width / 2)); distance_between_pinkwall1_and_ball = Math.abs(((ball1._x - pinkwall1._x) - (pinkwall1._width / 2)) - (ball1._width / 2)); distance_between_pinkwall1_and_ball2 = Math.abs(((ball2._x - pinkwall1._x) - (pinkwall1._width / 2)) - (ball2._width / 2)); distance_y_between_redwall_and_ball = Math.abs(redwall._y - ball1._y); distance_y_between_redwall_and_ball2 = Math.abs(redwall._y - ball2._y); if ((((redwall_movement == true) and (differencered <= 0.2)) and (differencered >= -8)) and (distance_y_between_redwall_and_ball < ((ball1._height / 2) + (redwall._height / 2)))) { ball1._x = ((redwall._x - (redwall._width / 2)) - (ball1._width / 2)) - 0.2; } if ((((redwall_movement == true) and (differencered2 <= 0.2)) and (differencered2 >= -8)) and (distance_y_between_redwall_and_ball2 < ((ball2._height / 2) + (redwall._height / 2)))) { ball2._x = ((redwall._x - (redwall._width / 2)) - (ball2._width / 2)) - 0.2; } if (((((differencered <= 0.5) && (differencered >= -2)) && (distance_between_middlewall_and_ball <= 1)) && (distance_y_between_redwall_and_ball < ((ball1._height / 2) + (redwall._height / 2)))) or ((((differencered2 <= 0.5) && (differencered2 >= -2)) && (distance_between_middlewall_and_ball2 <= 1)) && (distance_y_between_redwall_and_ball2 < ((ball2._height / 2) + (redwall._height / 2))))) { red_hit_right = true; ball_location = false; ball1._x = 2000; ball2._x = 2000; } if (((((differencered <= 0.5) && (differencered >= -2)) && (distance_between_skinnyleft_and_ball <= 1)) && (distance_y_between_redwall_and_ball < ((ball1._height / 2) + (redwall._height / 2)))) or ((((differencered2 <= 0.5) && (differencered2 >= -2)) && (distance_between_skinnyleft_and_ball2 <= 1)) && (distance_y_between_redwall_and_ball2 < ((ball2._height / 2) + (redwall._height / 2))))) { red_hit_left = true; ball_location = false; ball1._x = 2000; ball2._x = 2000; } if ((((((differencered <= 0.5) && (differencered >= -2)) && (distance_between_pinkwall1_and_ball <= 1)) && (ball1._y < ((pinkwall1._y + (pinkwall1._height / 2)) + (ball1._height / 2)))) && (distance_y_between_redwall_and_ball < ((ball1._height / 2) + (redwall._height / 2)))) or (((((differencered2 <= 0.5) && (differencered2 >= -2)) && (distance_between_pinkwall1_and_ball2 <= 1)) && (ball2._y < ((pinkwall1._y + (pinkwall1._height / 2)) + (ball2._height / 2)))) && (distance_y_between_redwall_and_ball2 < ((ball2._height / 2) + (redwall._height / 2))))) { red_hit_left = true; ball_location = false; ball1._x = 2000; ball2._x = 2000; } differenceorange = ((ball1._y - orangewall2._y) - (orangewall2._height / 2)) - (ball1._height / 2); differenceorange2 = ((ball2._y - orangewall2._y) - (orangewall2._height / 2)) - (ball2._height / 2); distance_between_bottomwall_and_ball = Math.abs(((bottomwall._y - ball1._y) - (bottomwall._height / 2)) - (ball1._height / 2)); distance_between_bottomwall_and_ball2 = Math.abs(((bottomwall._y - ball2._y) - (bottomwall._height / 2)) - (ball2._height / 2)); distance_x_between_orangewall2_and_ball = Math.abs(orangewall2._x - ball1._x); distance_x_between_orangewall2_and_ball2 = Math.abs(orangewall2._x - ball2._x); if ((((orangewall2_movement == true) and (differenceorange <= 0.2)) and (differenceorange >= -8)) and (distance_x_between_orangewall2_and_ball < ((ball1._width / 2) + (orangewall2._width / 2)))) { ball1._y = ((orangewall2._y + (orangewall2._height / 2)) + (ball1._height / 2)) + 0.2; } if ((((orangewall2_movement == true) and (differenceorange2 <= 0.2)) and (differenceorange2 >= -8)) and (distance_x_between_orangewall2_and_ball2 < ((ball2._width / 2) + (orangewall2._width / 2)))) { ball2._y = ((orangewall2._y + (orangewall2._height / 2)) + (ball2._height / 2)) + 0.2; } if (((((differenceorange <= 0.5) && (differenceorange >= -1)) && (distance_between_bottomwall_and_ball <= 1)) && (distance_x_between_orangewall2_and_ball < ((ball1._width / 2) + (orangewall2._width / 2)))) or ((((differenceorange2 <= 0.5) && (differenceorange2 >= -1)) && (distance_between_bottomwall_and_ball2 <= 0.5)) && (distance_x_between_orangewall2_and_ball2 < ((ball2._width / 2) + (orangewall2._width / 2))))) { orange2_hit = true; ball_location = false; ball1._y = 2000; ball2._y = 2000; } differenceorangever = ((orangewall1._x - ball1._x) - (orangewall1._width / 2)) - (ball1._width / 2); differenceorangever2 = ((orangewall1._x - ball2._x) - (orangewall1._width / 2)) - (ball2._width / 2); distance_y_between_orangewall1_and_ball = Math.abs(orangewall1._y - ball1._y); distance_y_between_orangewall1_and_ball2 = Math.abs(orangewall1._y - ball2._y); if ((((orangewall1_movement == true) and (differenceorangever <= 0.2)) and (differenceorangever >= -8)) and (distance_y_between_orangewall1_and_ball < ((ball1._height / 2) + (orangewall1._height / 2)))) { ball1._x = ((orangewall1._x - (orangewall1._width / 2)) - (ball1._width / 2)) - 0.2; } if ((((orangewall1_movement == true) and (differenceorangever2 <= 0.2)) and (differenceorangever2 >= -8)) and (distance_y_between_orangewall1_and_ball2 < ((ball2._height / 2) + (orangewall1._height / 2)))) { ball2._x = ((orangewall1._x - (orangewall1._width / 2)) - (ball2._width / 2)) - 0.2; } if ((((((differenceorangever <= 0.5) && (differenceorangever >= -2)) && (distance_between_skinnyleft_and_ball <= 1)) && (ball1._y < ((skinnyleft._y + (skinnyleft._height / 2)) + (ball1._height / 2)))) && (distance_y_between_orangewall1_and_ball < ((ball1._height / 2) + (orangewall1._height / 2)))) or (((((differenceorangever2 <= 0.5) && (differenceorangever2 >= -2)) && (distance_between_skinnyleft_and_ball2 <= 1)) && (ball2._y < ((skinnyleft._y + (skinnyleft._height / 2)) + (ball2._height / 2)))) && (distance_y_between_orangewall1_and_ball2 < ((ball2._height / 2) + (orangewall1._height / 2))))) { orange1_hit = true; ball_location = false; ball1._x = 2000; ball2._x = 2000; } if (ball_location) { ball1_xlocation = ball1._x; ball1_ylocation = ball1._y; ball2_xlocation = ball2._x; ball2_ylocation = ball2._y; } else { explosionsound2 = true; if (ball1_xlocation > (Stage.width / 2)) { if (red_hit_right == true) { black_is_hit_red_right = true; } if (red_hit_left == true) { gray_is_hit_red_left = true; } if (orange1_hit == true) { gray_is_hit_orange1 = true; } if (orange2_hit == true) { gray_is_hit_orange2 = true; } } else if (ball1_xlocation < (Stage.width / 2)) { if (red_hit_right == true) { gray_is_hit_red_right = true; } if (red_hit_left == true) { black_is_hit_red_left = true; } if (orange1_hit == true) { black_is_hit_orange1 = true; } if (orange2_hit == true) { black_is_hit_orange2 = true; } } ball_locator(); } };
Instance of Symbol 1997 MovieClip "ball1" in Frame 22
onClipEvent (enterFrame) { function move(xmove, ymove) { _x = (_x + xmove); _y = (_y + ymove); if (hitTest(_root.leftwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.middlewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.topwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.topwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.topwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.topwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bottomwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bottomwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bottomwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bottomwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.skinnyleft)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.skinnyleft.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.skinnyleft.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.skinnyleft.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.skinnyleft.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.skinnyright)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.skinnyright.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.skinnyright.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.skinnyright.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.skinnyright.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.redwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.redwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.redwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.redwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.redwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.redwall2)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.redwall2.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.redwall2.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.redwall2.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.redwall2.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.redwall3)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.redwall3.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.redwall3.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.redwall3.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.redwall3.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bluewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bluewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bluewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bluewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bluewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.orangewall2)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.orangewall2.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.orangewall2.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.orangewall2.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.orangewall2.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.orangewall1)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.orangewall1.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.orangewall1.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.orangewall1.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.orangewall1.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.pinkwall2)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.pinkwall2.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.pinkwall2.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.pinkwall2.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.pinkwall2.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.pinkwall1)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.pinkwall1.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.pinkwall1.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.pinkwall1.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.pinkwall1.getBounds(_root).yMax) - 0.1)); } } } if (_root.ball_movement == true) { if (Key.isDown(37)) { move(-5, 0); } if (Key.isDown(39)) { move(5, 0); } if (Key.isDown(38)) { move(0, -5); } if (Key.isDown(40)) { move(0, 5); } } }
Frame 23
function restartLevel() { _root.scoresubmit14 = savefile.data.scoresubmit14; savefile.flush(); soundstart = false; small = false; if ((((((((((((((((var15 != true) and (var16 != true)) and (var17 != true)) and (var18 != true)) and (var19 != true)) and (var20 != true)) and (var21 != true)) and (var22 != true)) and (var23 != true)) and (var24 != true)) and (var25 != true)) and (var26 != true)) and (var27 != true)) and (var28 != true)) and (var29 != true)) and (var30 != true)) { var14 = true; } var13 = false; if (_root.var1) { _root.score = 1; } else if (_root.var2) { _root.score = 2; } else if (_root.var3) { _root.score = 3; } else if (_root.var4) { _root.score = 4; } else if (_root.var5) { _root.score = 5; } else if (_root.var6) { _root.score = 6; } else if (_root.var71) { _root.score = 7; } else if (_root.var8) { _root.score = 8; } else if (_root.var9) { _root.score = 9; } else if (_root.var10) { _root.score = 10; } else if (_root.var11) { _root.score = 11; } else if (_root.var12) { _root.score = 12; } else if (_root.var13) { _root.score = 13; } else if (_root.var14) { _root.score = 14; } else if (_root.var15) { _root.score = 15; } else if (_root.var16) { _root.score = 16; } else if (_root.var17) { _root.score = 17; } else if (_root.var18) { _root.score = 18; } else if (_root.var19) { _root.score = 19; } else if (_root.var20) { _root.score = 20; } else if (_root.var21) { _root.score = 21; } else if (_root.var22) { _root.score = 22; } else if (_root.var23) { _root.score = 23; } else if (_root.var24) { _root.score = 24; } else if (_root.var25) { _root.score = 25; } else if (_root.var26) { _root.score = 26; } else if (_root.var27) { _root.score = 27; } else if (_root.var28) { _root.score = 28; } else if (_root.var29) { _root.score = 29; } else if (_root.var30) { _root.score = 30; } savefile.data.score = _root.score; savefile.flush(); radius = ball1._height / 2; SPACE_possible = true; redwall_movement = false; redwall2_movement = false; ball_location = true; black_is_hit_red = false; gray_is_hit_red = false; red_hit = false; ball1_is_pushed_by_red_wall = false; ball2_is_pushed_by_red_wall = false; finish_is_attached_to_crate1 = true; _root.decoy2.gotoAndStop(1); _root.decoy.gotoAndStop(1); _root.ball1.gotoAndStop(1); _root.ball1.gotoAndStop(1); _root.ball2.gotoAndStop(1); _root.ball2.gotoAndStop(1); _root.crate1.gotoAndStop(1); _root.crate2.gotoAndStop(1); decoy._x = -1000; decoy2._x = -1000; ball_movement = true; finisher = false; if (_root.redwall2.thingy._x <= 212) { _root.redwall2.thingy._x = 212.85; } _root.hit_crate1 = false; _root.ball1_and_crate1_rightside_touching = false; _root.ball1_and_crate1_leftside_touching = false; _root.ball2_and_crate1_rightside_touching = false; _root.ball2_and_crate1_leftside_touching = false; _root.cant_move_crate1_left_against_lb = false; _root.cant_move_crate1_left_against_lm = false; _root.cant_move_crate1_down_against_insidebottom = false; _root.cant_move_crate1_down_against_lb = false; _root.cant_move_crate1_up_against_insidetop = false; _root.cant_move_crate1_up_against_lm = false; _root.red_wall_and_crate1_rightside_touching = false; _root.crate1_against_red_wall_boundaries_prevention = false; _root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall = false; _root.ball2_is_pushed_by_crate1_is_pushed_by_red_wall = false; _root.crate1_is_pushed_by_ball1_is_pushed_by_redwall = false; _root.crate1_is_pushed_by_ball2_is_pushed_by_redwall = false; _root.crate1_is_pushed_by_red_wall = false; timing = true; elapsedTime = 0; startTime = getTimer(); seconds = 0; crate1._x = 278.7; crate1._y = 276.3; redkey._x = 265.6; redkey._y = 111; redwall._x = 728; redwall._y = 277.4; redwall2._x = -91; redwall2._y = 275; ball1._x = 265.6; ball1._y = 445.9; ball2._x = 498.9; ball2._y = 106.1; youwin._x = 10000; winningscreen._x = 1000; } function ball1_old_location() { x_location = ball1._x; y_location = ball1._y; } function ball_locator() { ball_location = true; if (black_is_hit_red == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy.gotoAndStop(2); _root.decoy2.gotoAndStop(3); } if (gray_is_hit_red == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); } } stop(); _root.options._x = 28.1; _root.restartbutton._x = 41.9; _root.QW._x = 73.8; _root.P._x = 55.6; _root.BN._x = 66; totalRestarts = 0; _root.option.hintbox.gotoAndStop(1); _root.option.meter.gotoAndStop(14); restartLevel(); youwin.onPress = function () { gotoAndStop ("l16"); }; ball1.onEnterFrame = function () { if (this.hitTest(redkey)) { keystart = true; redkey._x = 100000 /* 0x0186A0 */; redwall_movement = true; redwall2_movement = true; _root.ball1.scan.gotoAndStop(3); } if (redwall.hitTest(redwall2)) { redwall_movement = false; } if (redwall2._x > -53.2) { redwall2_movement = false; soundstart = true; redwall2._x = -53.2; _root.redwall2.thingy._x = _root.redwall2.thingy._x - 1; } if (scoresubmit14) { scoresubmit = false; } else if (scoresubmit14 == false) { scoresubmit = true; } if (this.hitTest(finish)) { timing = false; seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if ((score == 14) or scoresubmit) { level14_best_time = seconds; scoresubmit14 = true; savefile.data.scoresubmit14 = _root.scoresubmit14; savefile.flush(); } if (seconds < level14_best_time) { level14_best_time = seconds; } savefile.data.level14_best_time = _root.level14_best_time; savefile.flush(); if (_root.score <= 15) { _root.score = 15; } savefile.data.score = _root.score; savefile.flush(); SPACE_possible = false; ball_movement = false; win._x = Stage.width / 2; win._y = Stage.height / 2; _root.win.instructions.gotoAndStop(14); _root.win.meter.gotoAndStop(15); } if (Key.isDown(32) && (SPACE_possible == false)) { finisher = true; } if (finisher) { if (!Key.isDown(32)) { win._x = 100000 /* 0x0186A0 */; gotoAndStop ("l16"); finisher = false; SPACE_possible = true; } } }; _root.onEnterFrame = function () { thingyx = _root.redwall2.thingy._x; seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if (!ball_movement) { timing = false; startTime = getTimer() - elapsedTime; } else { timing = true; } if (timing) { elapsedTime = getTimer() - startTime; } if (var14) { w_works = false; } else { w_works = true; } if (((option._x != (Stage.width / 2)) and (instruction._x != (Stage.width / 2))) and (win._x != (Stage.width / 2))) { if (Key.isDown(81)) { q_is_DOWN = true; } if (q_is_DOWN) { if (!Key.isDown(81)) { gotoAndStop ("l26"); q_is_DOWN = false; } } if (Key.isDown(87)) { w_is_DOWN = true; } if (w_is_DOWN) { if (!Key.isDown(87)) { if (w_works) { gotoAndStop ("l16"); } w_is_DOWN = false; } } ballx = ball1._x; bally = ball1._y; decoyx = decoy._x; crate1y = crate1._y; if (Key.isDown(78)) { n_is_DOWN = true; } if (n_is_DOWN) { if (!Key.isDown(78)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); n_is_DOWN = false; } } } if (Key.isDown(66)) { b_is_DOWN = true; } if (b_is_DOWN) { if (!Key.isDown(66)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); b_is_DOWN = false; } } } if (SPACE_possible) { if (Key.isDown(32)) { SPACE_is_DOWN = true; } if (SPACE_is_DOWN) { if (!Key.isDown(32)) { ball1_old_location(); ball1._x = ball2._x; ball1._y = ball2._y; ball2._x = x_location; ball2._y = y_location; SPACE_is_DOWN = false; } } } } if (finish_is_attached_to_crate1 == true) { finish._x = crate1._x; finish._y = crate1._y; } ballx = ball1._x; bally = ball1._y; if (redwall_movement) { redwall._x = redwall._x - 1; } if (redwall2_movement) { redwall2._x = redwall2._x + 1; } differencered = ((redwall._x - (redwall._width / 2)) - (ball1._width / 2)) - ball1._x; differencered2 = ((redwall._x - (redwall._width / 2)) - (ball2._width / 2)) - ball2._x; distance_between_middlewall_and_ball = Math.abs(((ball1._x - middlewall._x) - (middlewall._width / 2)) - (ball1._width / 2)); distance_between_middlewall_and_ball2 = Math.abs(((ball2._x - middlewall._x) - (middlewall._width / 2)) - (ball2._width / 2)); distance_y_between_redwall_and_ball = Math.abs(redwall._y - ball1._y); distance_y_between_redwall_and_ball2 = Math.abs(redwall._y - ball2._y); if ((((redwall_movement == true) and (differencered <= 0.2)) and (differencered >= -8)) and (distance_y_between_redwall_and_ball < ((ball1._height / 2) + (redwall._height / 2)))) { ball1._x = ((redwall._x - (redwall._width / 2)) - (ball1._width / 2)) - 0.2; ball1_is_pushed_by_red_wall = true; } else { ball1_is_pushed_by_red_wall = false; } if ((((redwall_movement == true) and (differencered2 <= 0.2)) and (differencered2 >= -8)) and (distance_y_between_redwall_and_ball2 < ((ball2._height / 2) + (redwall._height / 2)))) { ball2._x = ((redwall._x - (redwall._width / 2)) - (ball2._width / 2)) - 0.2; ball2_is_pushed_by_red_wall = true; } else { ball2_is_pushed_by_red_wall = false; } if (((((differencered <= 0.5) && (differencered >= -8)) && (distance_between_middlewall_and_ball <= 1)) && (distance_y_between_redwall_and_ball < ((ball1._height / 2) + (redwall._height / 2)))) or ((((differencered2 <= 0.5) && (differencered2 >= -1)) && (distance_between_middlewall_and_ball2 <= 0.5)) && (distance_y_between_redwall_and_ball2 < ((ball2._height / 2) + (redwall._height / 2))))) { red_hit = true; ball_location = false; ball1._x = 2000; ball2._x = 2000; } if (ball_location) { ball1_xlocation = ball1._x; ball1_ylocation = ball1._y; ball2_xlocation = ball2._x; ball2_ylocation = ball2._y; } else { explosionsound2 = true; if (ball1_xlocation < (Stage.width / 2)) { if (red_hit == true) { gray_is_hit_red = true; } } else if (ball1_xlocation > (Stage.width / 2)) { if (red_hit == true) { black_is_hit_red = true; } } ball_locator(); } };
Instance of Symbol 2025 MovieClip "crate1" in Frame 23
onClipEvent (load) { _root.hit_crate1 = false; _root.ball1_and_crate1_rightside_touching = false; _root.ball1_and_crate1_leftside_touching = false; _root.ball2_and_crate1_rightside_touching = false; _root.ball2_and_crate1_leftside_touching = false; _root.cant_move_crate1_left_against_lb = false; _root.cant_move_crate1_left_against_lm = false; _root.cant_move_crate1_down_against_insidebottom = false; _root.cant_move_crate1_down_against_lb = false; _root.cant_move_crate1_up_against_insidetop = false; _root.cant_move_crate1_up_against_lm = false; _root.red_wall_and_crate1_rightside_touching = false; _root.crate1_against_red_wall_boundaries_prevention = false; _root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall = false; _root.ball2_is_pushed_by_crate1_is_pushed_by_red_wall = false; _root.crate1_is_pushed_by_ball1_is_pushed_by_redwall = false; _root.crate1_is_pushed_by_ball2_is_pushed_by_redwall = false; _root.crate1_is_pushed_by_red_wall = false; } onClipEvent (enterFrame) { _root.distance_y_between_ball1_and_crate1 = Math.abs(_root.ball1._y - _y); _root.difference_x_ball1_with_crate1_rightside = ((_root.ball1._x - _x) - (_width / 2)) - (_root.ball1._width / 2); _root.difference_x_ball1_with_crate1_leftside = ((_x - _root.ball1._x) - (_width / 2)) - (_root.ball1._width / 2); _root.distance_y_between_ball2_and_crate1 = Math.abs(_root.ball2._y - _y); _root.difference_x_ball2_with_crate1_rightside = ((_root.ball2._x - _x) - (_width / 2)) - (_root.ball2._width / 2); _root.difference_x_ball2_with_crate1_leftside = ((_x - _root.ball2._x) - (_width / 2)) - (_root.ball2._width / 2); _root.difference_x_red_with_crate1_left = ((_x - (_width / 2)) - _root.redwall._x) - (_root.redwall._width / 2); _root.difference_x_red_with_crate1_right = ((_root.redwall._x - (_root.redwall._width / 2)) - _x) - (_width / 2); _root.difference_y_red_with_crate1_up = ((_y - (_height / 2)) - _root.redwall._y) - (_root.redwall._height / 2); _root.difference_y_red_with_crate1_down = ((_root.redwall._y - (_root.redwall._height / 2)) - _y) - (_height / 2); _root.distance_x_between_redwall_and_crate1 = Math.abs(_root.redwall._x - _x); _root.distance_y_between_redwall_and_crate1 = Math.abs(_root.redwall._y - _y); _root.difference_x_crate1_leftside_with_lb = ((_x - (_width / 2)) - (_root.lb._width / 2)) - _root.lb._x; _root.difference_x_crate1_leftside_with_redwall2 = ((_x - (_width / 2)) - (_root.redwall2._width / 2)) - _root.redwall2._x; if ((_y > ((_root.lb._y - (_root.lb._height / 2)) - (_height / 2))) or (_y < ((_root.lm._y + (_root.lm._height / 2)) + (_height / 2)))) { _root.cant_move_crate1_left_against_lm = true; _root.cant_move_crate1_left_against_lb = true; } else { _root.cant_move_crate1_left_against_lm = false; _root.cant_move_crate1_left_against_lb = false; } if (hitTest(_root.middlewall_insidetop) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall_insidetop.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate1_up_against_insidetop = true; } if (((Math.abs(((_y - _root.middlewall_insidetop._y) - (_root.middlewall_insidetop._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.middlewall_insidetop._x + (_root.middlewall_insidetop._width / 2)) + (_width / 2)))) and (_x > ((_root.middlewall_insidetop._x - (_root.middlewall_insidetop._width / 2)) - (_width / 2)))) { _root.cant_move_crate1_up_against_insidetop = true; } else { _root.cant_move_crate1_up_against_insidetop = false; } if (hitTest(_root.lm) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.lm.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate1_up_against_lm = true; } if (((Math.abs(((_y - _root.lm._y) - (_root.lm._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.lm._x + (_root.lm._width / 2)) + (_width / 2)))) and (_x > ((_root.lm._x - (_root.lm._width / 2)) - (_width / 2)))) { _root.cant_move_crate1_up_against_lm = true; } else { _root.cant_move_crate1_up_against_lm = false; } if (hitTest(_root.middlewall_insidebottom) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall_insidebottom.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate1_down_against_insidebottom = true; } if (((Math.abs(((_root.middlewall_insidebottom._y - _y) - (_root.middlewall_insidebottom._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.middlewall_insidebottom._x + (_root.middlewall_insidebottom._width / 2)) + (_width / 2)))) and (_x > ((_root.middlewall_insidebottom._x - (_root.middlewall_insidebottom._width / 2)) - (_width / 2)))) { _root.cant_move_crate1_down_against_insidebottom = true; } else { _root.cant_move_crate1_down_against_insidebottom = false; } if (hitTest(_root.lb) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.lb.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate1_down_against_lb = true; } if (((Math.abs(((_root.lb._y - _y) - (_root.lb._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.lb._x + (_root.lb._width / 2)) + (_width / 2)))) and (_x > ((_root.lb._x - (_root.lb._width / 2)) - (_width / 2)))) { _root.cant_move_crate1_down_against_lb = true; } else { _root.cant_move_crate1_down_against_lb = false; } if (hitTest(_root.redwall)) { _root.redwall_crate1_hit = true; if ((_root.hit_crate1 == true) and (_root.moveright == true)) { if (((_root.crate1_against_red_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall == false)) and (_root.ball1_is_pushed_by_red_wall == false)) { _x = (_x - ((getBounds(_root).xMax - _root.redwall.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate1_right_against_red_wall = true; } } if ((_root.hit_crate1 == true) and (_root.moveleft == true)) { if ((_root.crate1_against_red_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall == false)) { _x = (_x - ((getBounds(_root).xMin - _root.redwall.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate1_left_against_red_wall = true; } } if ((_root.hit_crate1 == true) and (_root.movedown == true)) { if (((_root.crate1_against_red_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall == false)) and (_root.crate1_is_pushed_by_red_wall == false)) { _y = (_y - ((getBounds(_root).yMax - _root.redwall.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate1_down_against_red_wall = true; } } if ((_root.hit_crate1 == true) and (_root.moveup == true)) { if (((_root.crate1_against_red_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall == false)) and (_root.crate1_is_pushed_by_red_wall == false)) { _y = (_y - ((getBounds(_root).yMin - _root.redwall.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate1_up_against_red_wall = true; } } } else { _root.redwall_crate1_hit = false; } if (((_root.difference_x_red_with_crate1_right <= 3) && (_root.difference_x_red_with_crate1_right >= -8)) && (_root.distance_y_between_redwall_and_crate1 < ((_height / 2) + (_root.redwall._height / 2)))) { _root.cant_move_crate1_right_against_red_wall = true; _root.red_wall_and_crate1_rightside_touching = true; } else { _root.cant_move_crate1_right_against_red_wall = false; _root.red_wall_and_crate1_rightside_touching = false; } if ((((_root.redwall_movement == true) and (_root.red_wall_and_crate1_rightside_touching == true)) and (_root.distance_y_between_redwall_and_crate1 < ((_height / 2) + (_root.redwall._height / 2)))) and (_currentframe == 1)) { _x = (((_root.redwall._x - (_root.redwall._width / 2)) - (_width / 2)) - 0.7); _root.crate1_is_pushed_by_red_wall = true; } if (((_root.difference_x_ball1_with_crate1_leftside <= 0.3) && (_root.difference_x_ball1_with_crate1_leftside >= -8)) && (_root.distance_y_between_ball1_and_crate1 < ((_height / 2) + (_root.ball1._height / 2)))) { _root.ball1_and_crate1_leftside_touching = true; } else { _root.ball1_and_crate1_leftside_touching = false; } if (((_root.difference_x_ball2_with_crate1_leftside <= 0.3) && (_root.difference_x_ball2_with_crate1_leftside >= -8)) && (_root.distance_y_between_ball2_and_crate1 < ((_height / 2) + (_root.ball2._height / 2)))) { _root.ball2_and_crate1_leftside_touching = true; } else { _root.ball2_and_crate1_leftside_touching = false; } if (((_root.difference_x_ball1_with_crate1_rightside <= 2) && (_root.difference_x_ball1_with_crate1_rightside >= -8)) && (_root.distance_y_between_ball1_and_crate1 < ((_height / 2) + (_root.ball1._height / 2)))) { _root.ball1_and_crate1_rightside_touching = true; } else { _root.ball1_and_crate1_rightside_touching = false; } if (((_root.difference_x_ball2_with_crate1_rightside <= 0.3) && (_root.difference_x_ball2_with_crate1_rightside >= -8)) && (_root.distance_y_between_ball2_and_crate1 < ((_height / 2) + (_root.ball2._height / 2)))) { _root.ball2_and_crate1_rightside_touching = true; } else { _root.ball2_and_crate1_rightside_touching = false; } if (((((_root.ball1_and_crate1_leftside_touching == true) and (_root.crate1_is_pushed_by_red_wall == true)) and (_root.distance_y_between_redwall_and_crate1 < ((_height / 2) + (_root.redwall._height / 2)))) and (_root.distance_y_between_ball1_and_crate1 < ((_height / 2) + (_root.ball1._height / 2)))) and (_root.redwall_movement == true)) { _root.ball1._x = (((_root.redwall._x - (_root.redwall._width / 2)) - _width) - (_root.ball1._width / 2)) - 0.5; _root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall = true; } else { _root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall = false; } if (((((_root.ball2_and_crate1_leftside_touching == true) and (_root.crate1_is_pushed_by_red_wall == true)) and (_root.distance_y_between_redwall_and_crate1 < ((_height / 2) + (_root.redwall._height / 2)))) and (_root.distance_y_between_ball2_and_crate1 < ((_height / 2) + (_root.ball2._height / 2)))) and (_root.redwall_movement == true)) { _root.ball2._x = (((_root.redwall._x - (_root.redwall._width / 2)) - _width) - (_root.ball2._width / 2)) - 0.5; _root.ball2_is_pushed_by_crate1_is_pushed_by_red_wall = true; } else { _root.ball2_is_pushed_by_crate1_is_pushed_by_red_wall = false; } if (((((_root.ball1_and_crate1_rightside_touching == true) and (_root.ball1_is_pushed_by_red_wall == true)) and (_root.distance_y_between_ball1_and_crate1 < ((_height / 2) + (_root.ball1._height / 2)))) and (_root.moveleft == false)) and (_currentframe == 1)) { _root.cant_move_crate1_right_against_red_wall = false; _x = (((_root.ball1._x - (_root.ball1._width / 2)) - (_width / 2)) - 0.5); _root.crate1_is_pushed_by_ball1_is_pushed_by_redwall = true; } else { _root.crate1_is_pushed_by_ball1_is_pushed_by_redwall = false; } if ((((_root.ball2_and_crate1_rightside_touching == true) and (_root.ball2_is_pushed_by_red_wall == true)) and (_root.distance_y_between_ball2_and_crate1 < ((_height / 2) + (_root.ball2._height / 2)))) and (_root.moveleft == false)) { _x = (((_root.ball2._x - (_root.ball2._width / 2)) - (_width / 2)) - 0.5); _root.crate1_is_pushed_by_ball2_is_pushed_by_redwall = true; } else { _root.crate1_is_pushed_by_ball2_is_pushed_by_redwall = false; } if ((((_root.distance_y_between_redwall_and_crate1 < ((_height / 2) + (_root.redwall._height / 2))) and (_root.redwall_movement == true)) and (_root.difference_x_red_with_crate1_right < 0.5)) and (_root.difference_x_red_with_crate1_right > -3)) { _root.crate1_against_red_wall_boundaries_prevention = true; } else { _root.crate1_against_red_wall_boundaries_prevention = false; } if (((_root.distance_y_between_redwall_and_crate1 < ((_height / 2) + (_root.redwall._height / 2))) and (_root.distance_y_between_redwall_and_ball <= ((_root.ball1._height / 2) + (_root.redwall._height / 2)))) and (_root.redwall_movement == true)) { _root.crate1_against_red_wall_boundaries_prevention2 = true; } else { _root.crate1_against_red_wall_boundaries_prevention2 = false; } if (((_root.difference_x_red_with_crate1_left <= 0.3) && (_root.difference_x_red_with_crate1_left >= -8)) && (_root.distance_y_between_redwall_and_crate1 < ((_height / 2) + (_root.redwall._height / 2)))) { _root.cant_move_crate1_left_against_red_wall = true; } else { _root.cant_move_crate1_left_against_red_wall = false; } if (_root.crate1_against_red_wall_boundaries_prevention == false) { if (((_root.difference_y_red_with_crate1_up <= 0.3) && (_root.difference_y_red_with_crate1_up >= -8)) && (_root.distance_x_between_redwall_and_crate1 < ((_width / 2) + (_root.redwall._width / 2)))) { _root.cant_move_crate1_up_against_red_wall = true; _root.cant_move_crate1_up_against_insidetop = true; _root.cant_move_crate1_up_against_lm = true; } else { _root.cant_move_crate1_up_against_red_wall = false; } if (((_root.difference_y_red_with_crate1_down <= 0.3) && (_root.difference_y_red_with_crate1_down >= -8)) && (_root.distance_x_between_redwall_and_crate1 < ((_width / 2) + (_root.redwall._width / 2)))) { _root.cant_move_crate1_down_against_insidebottom = true; _root.cant_move_crate1_down_against_lb = true; } else { _root.cant_move_crate1_down_against_red_wall = false; } } else if ((((_root.distance_y_between_redwall_and_crate1 < ((_height / 2) + (_root.redwall._height / 2))) && (_root.distance_y_between_ball1_and_crate1 < ((_height / 2) + (_root.ball1._height / 2)))) and (_root.difference_x_ball1_with_crate1_leftside <= 0.3)) && (_root.difference_x_ball1_with_crate1_leftside >= -8)) { _root.cant_move_crate1_down_against_red_wall = true; _root.cant_move_crate1_up_against_red_wall = true; _root.cant_move_crate1_left_against_red_wall = true; _root.cant_move_crate1_right_against_red_wall = true; } else { _root.cant_move_crate1_down_against_red_wall = false; _root.cant_move_crate1_up_against_red_wall = false; } if (((_root.redwall_movement == true) and ((((_root.difference_x_ball1_with_crate1_leftside <= 0.7) && (_root.difference_x_ball1_with_crate1_leftside >= -6)) && (_root.distance_between_middlewall_and_ball <= 0.5)) && (_root.distance_y_between_ball1_and_crate1 < ((_root.ball1._height / 2) + (_height / 2))))) or ((((_root.difference_x_ball2_with_crate1_leftside <= 0.7) && (_root.difference_x_ball2_with_crate1_leftside >= -6)) && (_root.distance_between_middlewall_and_ball2 <= 0.5)) && (_root.distance_y_between_ball2_and_crate1 < ((_root.ball2._height / 2) + (_height / 2))))) { _root.ball_location = false; _root.red_hit = true; _root.ball1._x = 2000; _root.ball2._x = 2000; _root.cant_move_crate1_up_against_red_wall = false; _root.cant_move_crate1_down_against_red_wall = false; } if ((((_root.difference_x_crate1_leftside_with_lb <= 0.3) && (_root.difference_x_crate1_leftside_with_lb >= -8)) and ((this._y > 279.4) or (this._y < 264.9))) && (((_root.crate1_is_pushed_by_red_wall == true) or (_root.crate1_is_pushed_by_ball1_is_pushed_by_redwall == true)) or (_root.crate1_is_pushed_by_ball2_is_pushed_by_redwall == true))) { _root.finish_is_attached_to_crate1 = false; _root.decoy_crate.inside.gotoAndPlay(1); _root.decoy_crate._x = _x; _root.decoy_crate._y = _y; _root.decoy_crate.gotoAndStop(2); _x = 2000; _root.redwall_movement = false; } if (((_root.difference_x_crate1_leftside_with_redwall2 <= 0.3) && (_root.difference_x_crate1_leftside_with_redwall2 >= -8)) && (_root.crate1_is_pushed_by_red_wall == true)) { _root.finish_is_attached_to_crate1 = false; _root.decoy_crate.inside.gotoAndPlay(1); _root.decoy_crate._x = _x; _root.decoy_crate._y = _y; _root.decoy_crate.gotoAndStop(2); _x = 2000; _root.redwall_movement = false; } }
Instance of Symbol 1917 MovieClip "ball1" in Frame 23
onClipEvent (enterFrame) { function move(xmove, ymove) { _x = (_x + xmove); _y = (_y + ymove); if (hitTest(_root.leftwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.middlewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.middlewall_insidetop)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall_insidetop.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall_insidetop.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall_insidetop.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall_insidetop.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.middlewall_insidebottom)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall_insidebottom.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall_insidebottom.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall_insidebottom.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall_insidebottom.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.topwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.topwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.topwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.topwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bottomwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bottomwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bottomwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bottomwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.lb)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.lb.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.lb.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.lb.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.lb.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.lm)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.lm.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.lm.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.lm.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.lm.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.redwall2)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.redwall2.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.redwall2.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.redwall2.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.redwall2.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.redwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.redwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.redwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.redwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.redwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.crate1)) { if (_root.crate1._currentframe == 1) { _root.hit_crate1 = true; if (xmove > 0) { if ((_root.crate1_is_pushed_by_ball1_is_pushed_by_redwall == false) and (_root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall == false)) { _x = (_x - ((getBounds(_root).xMax - _root.crate1.getBounds(_root).xMin) + 0.1)); if (_root.cant_move_crate1_right_against_red_wall == false) { _root.cratespeed_xright = 1; _root.crate1._x = _root.crate1._x + _root.cratespeed_xright; _root.moveright = true; if (_root.ball2_and_crate1_rightside_touching) { _root.ball2._x = _root.ball2._x + 1; } } } } else { _root.moveright = false; } if (xmove < 0) { if (_root.crate1_is_pushed_by_ball1_is_pushed_by_redwall == false) { _x = (_x - ((getBounds(_root).xMin - _root.crate1.getBounds(_root).xMax) - 0.1)); if (((_root.cant_move_crate1_left_against_red_wall == false) and (_root.cant_move_crate1_left_against_lb == false)) and (_root.cant_move_crate1_left_against_lm == false)) { _root.cratespeed_xleft = 1; _root.crate1._x = _root.crate1._x - _root.cratespeed_xleft; _root.moveleft = true; if (_root.ball2_and_crate1_leftside_touching) { _root.ball2._x = _root.ball2._x - 1; } } } } else { _root.moveleft = false; } if (ymove > 0) { if ((((_root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall == false) && (_root.crate1_is_pushed_by_ball1_is_pushed_by_redwall == false)) and (_root.difference_x_ball1_with_crate1_leftside <= -1)) and (_root.difference_x_ball1_with_crate1_rightside <= -1)) { _y = (_y - ((getBounds(_root).yMax - _root.crate1.getBounds(_root).yMin) + 0.1)); if (((_root.cant_move_crate1_down_against_red_wall == false) and (_root.cant_move_crate1_down_against_insidebottom == false)) and (_root.cant_move_crate1_down_against_lb == false)) { _root.cratespeed_ydown = 1; _root.crate1._y = _root.crate1._y + _root.cratespeed_ydown; _root.movedown = true; } } } else { _root.movedown = false; } if (ymove < 0) { if ((((_root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall == false) && (_root.crate1_is_pushed_by_ball1_is_pushed_by_redwall == false)) and (_root.difference_x_ball1_with_crate1_leftside <= -1)) and (_root.difference_x_ball1_with_crate1_rightside <= -1)) { _y = (_y - ((getBounds(_root).yMin - _root.crate1.getBounds(_root).yMax) - 0.1)); if (((_root.cant_move_crate1_up_against_red_wall == false) and (_root.cant_move_crate1_up_against_insidetop == false)) and (_root.cant_move_crate1_up_against_lm == false)) { _root.cratespeed_yup = 1; _root.crate1._y = _root.crate1._y - _root.cratespeed_yup; _root.moveup = true; } } } else { _root.moveup = false; } } } } if ((((!Key.isDown(37)) and (!Key.isDown(39))) and (!Key.isDown(38))) and (!Key.isDown(40))) { _root.moveup = false; _root.movedown = false; _root.moveright = false; _root.moveleft = false; move(0, 0); _root.hit_crate1 = false; } if (_root.ball_movement == true) { if (Key.isDown(37)) { move(-5, 0); } if (Key.isDown(39)) { if (_root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall == false) { move(5, 0); } } if (Key.isDown(38)) { move(0, -5); } if (Key.isDown(40)) { move(0, 5); } } }
Frame 24
function restartLevel() { _root.scoresubmit21 = savefile.data.scoresubmit21; savefile.flush(); soundstart = false; small = false; if (((((((((var22 != true) and (var23 != true)) and (var24 != true)) and (var25 != true)) and (var26 != true)) and (var27 != true)) and (var28 != true)) and (var29 != true)) and (var30 != true)) { var21 = true; } var20 = false; if (_root.var1) { _root.score = 1; } else if (_root.var2) { _root.score = 2; } else if (_root.var3) { _root.score = 3; } else if (_root.var4) { _root.score = 4; } else if (_root.var5) { _root.score = 5; } else if (_root.var6) { _root.score = 6; } else if (_root.var71) { _root.score = 7; } else if (_root.var8) { _root.score = 8; } else if (_root.var9) { _root.score = 9; } else if (_root.var10) { _root.score = 10; } else if (_root.var11) { _root.score = 11; } else if (_root.var12) { _root.score = 12; } else if (_root.var13) { _root.score = 13; } else if (_root.var14) { _root.score = 14; } else if (_root.var15) { _root.score = 15; } else if (_root.var16) { _root.score = 16; } else if (_root.var17) { _root.score = 17; } else if (_root.var18) { _root.score = 18; } else if (_root.var19) { _root.score = 19; } else if (_root.var20) { _root.score = 20; } else if (_root.var21) { _root.score = 21; } else if (_root.var22) { _root.score = 22; } else if (_root.var23) { _root.score = 23; } else if (_root.var24) { _root.score = 24; } else if (_root.var25) { _root.score = 25; } else if (_root.var26) { _root.score = 26; } else if (_root.var27) { _root.score = 27; } else if (_root.var28) { _root.score = 28; } else if (_root.var29) { _root.score = 29; } else if (_root.var30) { _root.score = 30; } savefile.data.score = _root.score; savefile.flush(); radius = ball1._height / 2; SPACE_possible = true; greenwall_movement = false; redwall_movement = false; bluewall_movement = false; greenswitch.gotoAndStop(1); orangekey_is_attached_to_crate1 = true; ball_location = true; black_is_hit_red = false; gray_is_hit_red = false; red_hit = false; transport = false; orange_is_attached_to_crate1 = true; _root.decoy2.gotoAndStop(1); _root.decoy.gotoAndStop(1); _root.ball1.gotoAndStop(1); _root.ball1.gotoAndStop(1); _root.ball2.gotoAndStop(1); _root.ball2.gotoAndStop(1); _root.crate1.gotoAndStop(1); _root.crate2.gotoAndStop(1); decoy._x = -1000; decoy2._x = -1000; ball_movement = true; finisher = false; _root.hit_crate1 = false; _root.crate_is_pushed_by_blue = false; _root.ball1_and_crate1_rightside_touching = false; _root.ball1_and_crate1_leftside_touching = false; _root.ball2_and_crate1_rightside_touching = false; _root.ball2_and_crate1_leftside_touching = false; _root.cant_move_crate1_left_against_leftwall = false; _root.cant_move_crate1_left_against_bluewall = false; _root.cant_move_crate1_left_against_insidewall = false; _root.cant_move_crate1_right_against_rightwall = false; _root.cant_move_crate1_right_against_middlewall = false; _root.cant_move_crate1_down_against_l1 = false; _root.cant_move_crate1_down_against_l2 = false; _root.cant_move_crate1_down_against_bottomwall = false; _root.cant_move_crate1_down_against_middlewall2 = false; _root.cant_move_crate1_up_against_l2 = false; _root.cant_move_crate1_up_against_topwall = false; _root.cant_move_crate1_up_against_bluewall = false; _root.cant_move_crate1_up_against_red_wall = false; _root.movement_activate = false; _root.blue_wall_and_crate1_topside_touching = false; _root.red_wall_and_crate1_rightside_touching = false; _root.crate1_against_red_wall_boundaries_prevention = false; _root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall = false; _root.ball2_is_pushed_by_crate1_is_pushed_by_red_wall = false; _root.crate1_is_pushed_by_ball1_is_pushed_by_redwall = false; _root.crate1_is_pushed_by_ball2_is_pushed_by_redwall = false; _root.crate1_is_pushed_by_red_wall = false; timing = true; elapsedTime = 0; startTime = getTimer(); seconds = 0; crate1._x = 200; crate1._y = 334.4; bluekey._x = 271; bluekey._y = 471.9; redkey._x = 225.3; redkey._y = 112; redstop._x = 179.8; redstop._y = 112; greenswitch._x = 482; greenswitch._y = 237.7; redwall._x = 585; redwall._y = 173.8; orangewall._x = 500; orangewall._y = 223; bluewall._x = 467.1; bluewall._y = 44.8; greenwall._x = 500.1; greenwall._y = 381.9; ball1._x = 179.5; ball1._y = 472.9; ball2._x = 419.1; ball2._y = 65.3; transporter1._x = 129.8; transporter1._y = 470.8; transporter2._x = 527.1; transporter2._y = 108.1; youwin._x = 10000; winningscreen._x = 1000; finish._x = 500; finish._y = 453.8; } function ball1_old_location() { x_location = ball1._x; y_location = ball1._y; } function ball_locator() { ball_location = true; if (black_is_hit_red == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy.gotoAndStop(2); _root.decoy2.gotoAndStop(3); } if (gray_is_hit_red == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); } } stop(); _root.options._x = 28.1; _root.restartbutton._x = 41.9; _root.QW._x = 73.8; _root.P._x = 55.6; _root.BN._x = 66; totalRestarts = 0; _root.option.hintbox.gotoAndStop(1); _root.option.meter.gotoAndStop(21); restartLevel(); youwin.onPress = function () { gotoAndStop ("l11"); }; ball1.onEnterFrame = function () { if (this.hitTest(redkey)) { keystart = true; redkey._x = 100000 /* 0x0186A0 */; redwall_movement = true; _root.ball1.scan.gotoAndStop(3); } if (this.hitTest(bluekey)) { keystart = true; bluekey._x = 10000; bluewall_movement = true; _root.ball1.scan.gotoAndStop(4); _root.ball1.scan.bluemove.gotoAndPlay(1); } if (_root.crate1.hitTest(_root.greenswitch.button) and (_root.greenswitch._currentframe == 1)) { switchstart = true; _root.greenswitch.gotoAndStop(2); greenwall_movement = true; } if ((this.hitTest(transporter2) or ball2.hitTest(transporter2)) and (transport == false)) { transporter2._alpha = 67; transporter1._alpha = 67; } else { transporter2._alpha = 100; transporter1._alpha = 100; } if (transporter2._alpha == 100) { if (crate1.hitTest(transporter1)) { _root.transstart = true; crate1._x = transporter2._x; crate1._y = transporter2._y; transport = true; } } if (this.hitTest(redstop)) { stopstart = true; redstop._x = 10000; redwall_movement = false; movement_activate = false; _root.ball1.scan.gotoAndStop(11); } if (redwall.hitTest(bluewall)) { soundstart = true; redwall_movement = false; bluewall_movement = false; if ((((redwall._x - (bluewall._width / 2)) - bluewall._x) - (redwall._width / 2)) < -1) { bluewall._y = ((redwall._y - (redwall._height / 2)) - (bluewall._height / 2)) - 0.1; } else { redwall._x = ((bluewall._x + (bluewall._width / 2)) + (redwall._width / 2)) + 0.1; } } if (redwall.hitTest(middlewall22)) { redwall_movement = false; } if (scoresubmit21) { scoresubmit = false; } else if (scoresubmit21 == false) { scoresubmit = true; } if (this.hitTest(finish)) { timing = false; seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if ((score == 21) or scoresubmit) { level21_best_time = seconds; scoresubmit21 = true; savefile.data.scoresubmit21 = _root.scoresubmit21; savefile.flush(); } if (seconds < level21_best_time) { level21_best_time = seconds; } savefile.data.level21_best_time = _root.level21_best_time; savefile.flush(); if (_root.score <= 22) { _root.score = 22; } savefile.data.score = _root.score; savefile.flush(); SPACE_possible = false; ball_movement = false; win._x = Stage.width / 2; win._y = Stage.height / 2; _root.win.instructions.gotoAndStop(21); _root.win.meter.gotoAndStop(22); } if (Key.isDown(32) && (SPACE_possible == false)) { finisher = true; } if (finisher) { if (!Key.isDown(32)) { win._x = 10000; gotoAndStop ("l11"); finisher = false; SPACE_possible = true; } } }; _root.onEnterFrame = function () { seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if (!ball_movement) { timing = false; startTime = getTimer() - elapsedTime; } else { timing = true; } if (timing) { elapsedTime = getTimer() - startTime; } if (var21) { w_works = false; } else { w_works = true; } if (((option._x != (Stage.width / 2)) and (instruction._x != (Stage.width / 2))) and (win._x != (Stage.width / 2))) { if (Key.isDown(81)) { q_is_DOWN = true; } if (q_is_DOWN) { if (!Key.isDown(81)) { gotoAndStop ("l20"); q_is_DOWN = false; } } if (Key.isDown(87)) { w_is_DOWN = true; } if (w_is_DOWN) { if (!Key.isDown(87)) { if (w_works) { gotoAndStop ("l11"); } w_is_DOWN = false; } } ballx = ball1._x; bally = ball1._y; decoyx = decoy._x; if (Key.isDown(78)) { n_is_DOWN = true; } if (n_is_DOWN) { if (!Key.isDown(78)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); n_is_DOWN = false; } } } if (Key.isDown(66)) { b_is_DOWN = true; } if (b_is_DOWN) { if (!Key.isDown(66)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); b_is_DOWN = false; } } } if (SPACE_possible) { if (Key.isDown(32)) { SPACE_is_DOWN = true; } if (SPACE_is_DOWN) { if (!Key.isDown(32)) { ball1_old_location(); ball1._x = ball2._x; ball1._y = ball2._y; ball2._x = x_location; ball2._y = y_location; SPACE_is_DOWN = false; } } } } ballx = ball1._x; bally = ball1._y; if (greenwall_movement) { greenwall._x = greenwall._x + 1; } if (redwall_movement) { redwall._x = redwall._x - 0.4; } if (redwall._x < 422.9) { redwall_movement = false; soundstart = true; redwall._x = 422.9; } if (bluewall_movement) { bluewall._y = bluewall._y + 1; } if (bluewall._y > 112.2) { bluewall_movement = false; soundstart = true; bluewall._y = 112.1; } if ((bluewall._y == 26.4) and (crate_is_pushed_by_blue == true)) { crate._y = 26.9; } differencered = ((redwall._x - ball1._x) - (redwall._width / 2)) - (ball1._width / 2); differencered2 = ((redwall._x - ball2._x) - (redwall._width / 2)) - (ball2._width / 2); distance_between_middlewall22_and_ball = Math.abs(((ball1._x - middlewall22._x) - (middlewall22._width / 2)) - (ball1._width / 2)); distance_between_middlewall22_and_ball2 = Math.abs(((ball2._x - middlewall22._x) - (middlewall22._width / 2)) - (ball2._width / 2)); distance_between_bluewall_and_ball = Math.abs(((ball1._x - bluewall._x) - (bluewall._width / 2)) - (ball1._width / 2)); distance_between_bluewall_and_ball2 = Math.abs(((ball2._x - bluewall._x) - (bluewall._width / 2)) - (ball2._width / 2)); distance_y_between_redwall_and_ball = Math.abs(redwall._y - ball1._y); distance_y_between_redwall_and_ball2 = Math.abs(redwall._y - ball2._y); if ((((redwall_movement == true) and (differencered <= 0.2)) and (differencered >= -8)) and (distance_y_between_redwall_and_ball < ((ball1._height / 2) + (redwall._height / 2)))) { ball1._x = ((redwall._x - (redwall._width / 2)) - (ball1._width / 2)) - 0.2; } if ((((redwall_movement == true) and (differencered2 <= 0.2)) and (differencered2 >= -8)) and (distance_y_between_redwall_and_ball2 < ((ball2._height / 2) + (redwall._height / 2)))) { ball2._x = ((redwall._x - (redwall._width / 2)) - (ball2._width / 2)) - 0.2; } if (((((differencered <= 0.5) && (differencered >= -1)) && (distance_between_middlewall22_and_ball <= 0.5)) && (distance_y_between_redwall_and_ball < ((ball1._height / 2) + (redwall._height / 2)))) or ((((differencered2 <= 0.5) && (differencered2 >= -1)) && (distance_between_middlewall22_and_ball2 <= 0.5)) && (distance_y_between_redwall_and_ball2 < ((ball2._height / 2) + (redwall._height / 2))))) { red_hit = true; ball_location = false; ball1._x = 2000; ball2._x = 2000; } if (((((((differencered <= 0.5) && (differencered >= -1)) && (redwall_movement == true)) && (ball1._y < ((bluewall._y + (bluewall._height / 2)) + (ball1._height / 2)))) && (distance_between_bluewall_and_ball <= 0.5)) && (distance_y_between_redwall_and_ball < ((ball1._height / 2) + (redwall._height / 2)))) or ((((((differencered2 <= 0.5) && (differencered2 >= -1)) && (ball2._y < ((bluewall._y + (bluewall._height / 2)) + (ball2._height / 2)))) && (redwall_movement == true)) && (distance_between_bluewall_and_ball2 <= 0.5)) && (distance_y_between_redwall_and_ball2 < ((ball2._height / 2) + (redwall._height / 2))))) { red_hit = true; ball_location = false; ball1._x = 2000; ball2._x = 2000; } differenceblue = ((ball1._y - bluewall._y) - (bluewall._height / 2)) - (ball1._height / 2); differenceblue2 = ((ball2._y - bluewall._y) - (bluewall._height / 2)) - (ball2._height / 2); distance_between_bottomwall_and_ball = Math.abs(((topmiddlewall._y - ball1._y) - (topmiddlewall._height / 2)) - (ball1._height / 2)); distance_between_bottomwall_and_ball2 = Math.abs(((topmiddlewall._y - ball2._y) - (topmiddlewall._height / 2)) - (ball2._height / 2)); distance_x_between_bluewall_and_ball = Math.abs(bluewall._x - ball1._x); distance_x_between_bluewall_and_ball2 = Math.abs(bluewall._x - ball2._x); if ((((bluewall_movement == true) and (differenceblue <= 0.2)) and (differenceblue >= -8)) and (distance_x_between_bluewall_and_ball < ((ball1._width / 2) + (bluewall._width / 2)))) { ball1._y = ((bluewall._y + (bluewall._height / 2)) + (ball1._height / 2)) + 0.2; } if ((((bluewall_movement == true) and (differenceblue2 <= 0.2)) and (differenceblue2 >= -8)) and (distance_x_between_bluewall_and_ball2 < ((ball2._width / 2) + (bluewall._width / 2)))) { ball2._y = ((bluewall._y + (bluewall._height / 2)) + (ball2._height / 2)) + 0.2; } if ((((((bluewall_movement == true) and (differenceblue <= 0.5)) && (differenceblue >= -1)) && (distance_between_bottomwall_and_ball <= 1)) && (distance_x_between_bluewall_and_ball < ((ball1._width / 2) + (bluewall._width / 2)))) or (((((bluewall_movement == true) and (differenceblue2 <= 0.5)) && (differenceblue2 >= -1)) && (distance_between_bottomwall_and_ball2 <= 0.5)) && (distance_x_between_bluewall_and_ball2 < ((ball2._width / 2) + (bluewall._width / 2))))) { red_hit = true; ball_location = false; ball1._y = 2000; ball2._y = 2000; } if (ball_location) { ball1_xlocation = ball1._x; ball1_ylocation = ball1._y; ball2_xlocation = ball2._x; ball2_ylocation = ball2._y; } else { explosionsound2 = true; if (ball1_xlocation < (Stage.width / 2)) { if (red_hit == true) { gray_is_hit_red = true; } } else if (ball1_xlocation > (Stage.width / 2)) { if (red_hit == true) { black_is_hit_red = true; } } ball_locator(); } };
Instance of Symbol 2077 MovieClip "ball1" in Frame 24
onClipEvent (enterFrame) { function move(xmove, ymove) { _x = (_x + xmove); _y = (_y + ymove); if (hitTest(_root.leftwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.greenwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.greenwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.greenwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.greenwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.greenwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.middlewall22)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall22.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall22.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall22.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall22.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.topwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.topwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.topwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.topwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bottomwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bottomwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bottomwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bottomwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.l1)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.l1.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.l1.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.l1.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.l1.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.l2)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.l2.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.l2.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.l2.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.l2.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bluewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bluewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bluewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bluewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bluewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightmiddle)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightmiddle.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightmiddle.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightmiddle.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightmiddle.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightmiddle)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightmiddle.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightmiddle.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightmiddle.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightmiddle.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bottommiddle)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bottommiddle.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bottommiddle.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bottommiddle.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bottommiddle.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.skinnyright)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.skinnyright.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.skinnyright.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.skinnyright.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.skinnyright.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.redwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.redwall.getBounds(_root).xMin) + 0.5)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.redwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.redwall.getBounds(_root).yMin) + 0.1)); } if ((ymove < 0) and (_y > (_root.redwall._y + (_root.redwall._width / 2)))) { _y = (_y - ((getBounds(_root).yMin - _root.redwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.crate1)) { if (_root.crate1._currentframe == 1) { _root.hit_crate1 = true; if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.crate1.getBounds(_root).xMin) + 0.1)); if (((_root.cant_move_crate1_right_against_red_wall == false) and (_root.cant_move_crate1_right_against_rightwall == false)) and (_root.cant_move_crate1_right_against_middlewall == false)) { _root.cratespeed_xright = 1; _root.crate1._x = _root.crate1._x + _root.cratespeed_xright; _root.moveright = true; } } else { _root.moveright = false; } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.crate1.getBounds(_root).xMax) - 0.1)); if (((_root.cant_move_crate1_left_against_leftwall == false) and (_root.cant_move_crate1_left_against_bluewall == false)) and (_root.cant_move_crate1_left_against_insidewall == false)) { _root.cratespeed_xleft = 1; _root.crate1._x = _root.crate1._x - _root.cratespeed_xleft; _root.moveleft = true; } } else { _root.moveleft = false; } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.crate1.getBounds(_root).yMin) + 0.1)); if ((((_root.cant_move_crate1_down_against_red_wall == false) and (_root.cant_move_crate1_down_against_bottomwall == false)) and (_root.cant_move_crate1_down_against_l1 == false)) and (_root.cant_move_crate1_down_against_l2 == false)) { _root.cratespeed_ydown = 1; _root.crate1._y = _root.crate1._y + _root.cratespeed_ydown; _root.movedown = true; } } else { _root.movedown = false; } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.crate1.getBounds(_root).yMax) - 0.1)); if (((_root.cant_move_crate1_up_against_topwall == false) and (_root.cant_move_crate1_up_against_bluewall == false)) and (_root.cant_move_crate1_up_against_red_wall == false)) { _root.cratespeed_yup = 1; _root.crate1._y = _root.crate1._y - _root.cratespeed_yup; _root.moveup = true; } } else { _root.moveup = false; } } } } if ((((!Key.isDown(37)) and (!Key.isDown(39))) and (!Key.isDown(38))) and (!Key.isDown(40))) { _root.moveup = false; _root.movedown = false; _root.moveright = false; _root.moveleft = false; move(0, 0); _root.hit_crate1 = false; } if (_root.ball_movement == true) { if (Key.isDown(37)) { move(-5, 0); } if (Key.isDown(39)) { move(5, 0); } if (Key.isDown(38)) { move(0, -5); } if (Key.isDown(40)) { move(0, 5); } } }
Instance of Symbol 1071 MovieClip "crate1" in Frame 24
onClipEvent (load) { _root.hit_crate1 = false; _root.crate_is_pushed_by_blue = false; _root.ball1_and_crate1_rightside_touching = false; _root.ball1_and_crate1_leftside_touching = false; _root.ball2_and_crate1_rightside_touching = false; _root.ball2_and_crate1_leftside_touching = false; _root.cant_move_crate1_left_against_leftwall = false; _root.cant_move_crate1_left_against_bluewall = false; _root.cant_move_crate1_left_against_insidewall = false; _root.cant_move_crate1_right_against_rightwall = false; _root.cant_move_crate1_right_against_middlewall = false; _root.cant_move_crate1_down_against_l1 = false; _root.cant_move_crate1_down_against_l2 = false; _root.cant_move_crate1_down_against_bottomwall = false; _root.cant_move_crate1_down_against_middlewall2 = false; _root.cant_move_crate1_up_against_l2 = false; _root.cant_move_crate1_up_against_topwall = false; _root.cant_move_crate1_up_against_bluewall = false; _root.cant_move_crate1_up_against_red_wall = false; _root.movement_activate = false; _root.blue_wall_and_crate1_topside_touching = false; _root.red_wall_and_crate1_rightside_touching = false; _root.crate1_against_red_wall_boundaries_prevention = false; _root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall = false; _root.ball2_is_pushed_by_crate1_is_pushed_by_red_wall = false; _root.crate1_is_pushed_by_ball1_is_pushed_by_redwall = false; _root.crate1_is_pushed_by_ball2_is_pushed_by_redwall = false; _root.crate1_is_pushed_by_red_wall = false; } onClipEvent (enterFrame) { _root.distance_y_between_ball1_and_crate1 = Math.abs(_root.ball1._y - _y); _root.difference_x_ball1_with_crate1_rightside = ((_root.ball1._x - _x) - (_width / 2)) - (_root.ball1._width / 2); _root.difference_x_ball1_with_crate1_leftside = ((_x - _root.ball1._x) - (_width / 2)) - (_root.ball1._width / 2); _root.distance_y_between_ball2_and_crate1 = Math.abs(_root.ball2._y - _y); _root.difference_x_ball2_with_crate1_rightside = ((_root.ball2._x - _x) - (_width / 2)) - (_root.ball2._width / 2); _root.difference_x_ball2_with_crate1_leftside = ((_x - _root.ball2._x) - (_width / 2)) - (_root.ball2._width / 2); _root.difference_y_blue_with_crate1_up = ((_y - _root.bluewall._y) - (_root.bluewall._height / 2)) - (_height / 2); _root.difference_x_red_with_crate1_left = ((_x - (_width / 2)) - _root.redwall._x) - (_root.redwall._width / 2); _root.difference_x_red_with_crate1_right = ((_root.redwall._x - (_root.redwall._width / 2)) - _x) - (_width / 2); _root.difference_y_red_with_crate1_up = ((_y - (_height / 2)) - _root.redwall._y) - (_root.redwall._height / 2); _root.difference_y_red_with_crate1_down = ((_root.redwall._y - (_root.redwall._height / 2)) - _y) - (_height / 2); _root.distance_x_between_skinnyright_and_crate1 = Math.abs(_root.skinnyright._x - _x); _root.distance_x_between_bluewall_and_crate1 = Math.abs(_root.bluewall._x - _x); _root.distance_x_between_redwall_and_crate1 = Math.abs(_root.redwall._x - _x); _root.distance_y_between_redwall_and_crate1 = Math.abs(_root.redwall._y - _y); _root.difference_x_crate1_leftside_with_lb = ((_x - (_width / 2)) - (_root.lb._width / 2)) - _root.lb._x; _root.difference_x_crate1_leftside_with_middlewall22 = ((_x - (_width / 2)) - (_root.middlewall22._width / 2)) - _root.middlewall22._x; _root.difference_x_crate1_leftside_with_bluewall = ((_x - (_width / 2)) - (_root.bluewall._width / 2)) - _root.bluewall._x; _root.difference_x_crate1_leftside_with_insidewall = ((_x - (_width / 2)) - _root.insidewall._x) - (_root.insidewall._width / 2); _root.difference_y_skinnyright_with_crate1 = Math.abs(((_root.bottommiddle._y - _y) - (_height / 2)) - (_root.bottommiddle._height / 2)); if (hitTest(_root.leftwall) and (_root.moveleft == true)) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate1_left_against_leftwall = true; } if (((Math.abs(((_x - _root.leftwall._x) - (_root.leftwall._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.leftwall._y + (_root.leftwall._height / 2)) + (_height / 2)))) and (_y > ((_root.leftwall._y - (_root.leftwall._height / 2)) - (_height / 2)))) { _root.cant_move_crate1_left_against_leftwall = true; } else { _root.cant_move_crate1_left_against_leftwall = false; } if (hitTest(_root.bluewall) and (_root.moveleft == true)) { _x = (_x - ((getBounds(_root).xMin - _root.bluewall.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate1_left_against_bluewall = true; } if (((Math.abs(((_x - _root.bluewall._x) - (_root.bluewall._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.bluewall._y + (_root.bluewall._height / 2)) + (_height / 2)))) and (_y > ((_root.bluewall._y - (_root.bluewall._height / 2)) - (_height / 2)))) { _root.cant_move_crate1_left_against_bluewall = true; } else { _root.cant_move_crate1_left_against_bluewall = false; } if (hitTest(_root.middlewall2.insidewall) and (_root.moveleft == true)) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall2.insidewall.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate1_left_against_insidewall = true; } if (((Math.abs(((_x - _root.middlewall2.insidewall._x) - (_root.middlewall2.insidewall._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.middlewall2.insidewall._y + (_root.middlewall2.insidewall._height / 2)) + (_height / 2)))) and (_y > ((_root.middlewall2.insidewall._y - (_root.middlewall2.insidewall._height / 2)) - (_height / 2)))) { _root.cant_move_crate1_left_against_insidewall = true; } else { _root.cant_move_crate1_left_against_insidewall = false; } if (hitTest(_root.rightwall) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate1_right_against_rightwall = true; } if (((Math.abs(((_root.rightwall._x - _x) - (_root.rightwall._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.rightwall._y + (_root.rightwall._height / 2)) + (_height / 2)))) and (_y > ((_root.rightwall._y - (_root.rightwall._height / 2)) - (_height / 2)))) { _root.cant_move_crate1_right_against_rightwall = true; } else { _root.cant_move_crate1_right_against_rightwall = false; } if (hitTest(_root.middlewall22) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall22.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate1_right_against_middlewall = true; } if (((Math.abs(((_root.middlewall22._x - _x) - (_root.middlewall22._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.middlewall22._y + (_root.middlewall22._height / 2)) + (_height / 2)))) and (_y > ((_root.middlewall22._y - (_root.middlewall22._height / 2)) - (_height / 2)))) { _root.cant_move_crate1_right_against_middlewall = true; } else { _root.cant_move_crate1_right_against_middlewall = false; } if (hitTest(_root.insidewall2) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.insidewall2.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate1_right_against_middlewall = true; } if (((Math.abs(((_root.insidewall2._x - _x) - (_root.insidewall2._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.insidewall2._y + (_root.insidewall2._height / 2)) + (_height / 2)))) and (_y > ((_root.insidewall2._y - (_root.insidewall2._height / 2)) - (_height / 2)))) { _root.cant_move_crate1_right_against_middlewall = true; } else { _root.cant_move_crate1_right_against_middlewall = false; } if (hitTest(_root.l2) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.l2.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate1_up_against_l2 = true; } if (((Math.abs(((_y - _root.l2._y) - (_root.l2._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.l2._x + (_root.l2._width / 2)) + (_width / 2)))) and (_x > ((_root.l2._x - (_root.l2._width / 2)) - (_width / 2)))) { _root.cant_move_crate1_up_against_l2 = true; } else { _root.cant_move_crate1_up_against_l2 = false; } if (hitTest(_root.bluewall) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.bluewall.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate1_up_against_bluewall = true; } if (((Math.abs(((_y - _root.bluewall._y) - (_root.bluewall._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.bluewall._x + (_root.bluewall._width / 2)) + (_width / 2)))) and (_x > ((_root.bluewall._x - (_root.bluewall._width / 2)) - (_width / 2)))) { _root.cant_move_crate1_up_against_bluewall = true; } else { _root.cant_move_crate1_up_against_bluewall = false; } if (hitTest(_root.topwall) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate1_up_against_topwall = true; } if (((Math.abs(((_y - _root.topwall._y) - (_root.topwall._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.topwall._x + (_root.topwall._width / 2)) + (_width / 2)))) and (_x > ((_root.topwall._x - (_root.topwall._width / 2)) - (_width / 2)))) { _root.cant_move_crate1_up_against_topwall = true; } else { _root.cant_move_crate1_up_against_topwall = false; } if (hitTest(_root.l1) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.l1.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate1_down_against_l1 = true; } if (((Math.abs(((_root.l1._y - _y) - (_root.l1._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.l1._x + (_root.l1._width / 2)) + (_width / 2)))) and (_x > ((_root.l1._x - (_root.l1._width / 2)) - (_width / 2)))) { _root.cant_move_crate1_down_against_l1 = true; } else { _root.cant_move_crate1_down_against_l1 = false; } if (hitTest(_root.l2) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.l2.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate1_down_against_l2 = true; } if (((Math.abs(((_root.l2._y - _y) - (_root.l2._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.l2._x + (_root.l2._width / 2)) + (_width / 2)))) and (_x > ((_root.l2._x - (_root.l2._width / 2)) - (_width / 2)))) { _root.cant_move_crate1_down_against_l2 = true; } else { _root.cant_move_crate1_down_against_l2 = false; } if (hitTest(_root.bottomwall) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate1_down_against_bottomwall = true; } if (((Math.abs(((_root.bottomwall._y - _y) - (_root.bottomwall._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.bottomwall._x + (_root.bottomwall._width / 2)) + (_width / 2)))) and (_x > ((_root.bottomwall._x - (_root.bottomwall._width / 2)) - (_width / 2)))) { _root.cant_move_crate1_down_against_bottomwall = true; } else { _root.cant_move_crate1_down_against_bottomwall = false; } if ((hitTest(_root.redwall) and (_root.movedown == true)) and (_root.red_wall_and_crate1_rightside_touching == false)) { _y = (_y - ((getBounds(_root).yMax - _root.redwall.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate1_down_against_red_wall = true; } if ((((_root.red_wall_and_crate1_rightside_touching == false) and (Math.abs(((_root.redwall._y - _y) - (_root.redwall._height / 2)) - (_height / 2)) <= 0.3)) and (_x < ((_root.redwall._x + (_root.redwall._width / 2)) + (_width / 2)))) and (_x > ((_root.redwall._x - (_root.redwall._width / 2)) - (_width / 2)))) { _root.cant_move_crate1_down_against_red_wall = true; } else { _root.cant_move_crate1_down_against_red_wall = false; } if (hitTest(_root.redwall)) { _root.redwall_crate1_hit = true; if ((_root.hit_crate1 == true) and (_root.moveright == true)) { if ((((_root.crate1_against_red_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall == false)) and (_root.ball1_is_pushed_by_red_wall == false)) and ((_y > 206.6) and (_x > (Stage.width / 2)))) { _x = (_x - ((getBounds(_root).xMax - _root.redwall.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate1_right_against_red_wall = true; } } if ((_root.hit_crate1 == true) and (_root.moveleft == true)) { if (((_root.crate1_against_red_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall == false)) and ((_y > 206.6) and (_x > (Stage.width / 2)))) { _x = (_x - ((getBounds(_root).xMin - _root.redwall.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate1_left_against_red_wall = true; } } if ((_root.hit_crate1 == true) and (_root.movedown == true)) { if ((_root.crate1_against_red_wall_boundaries_prevention == false) and (_root.crate1_is_pushed_by_red_wall == false)) { _y = (_y - ((getBounds(_root).yMax - _root.redwall.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate1_down_against_red_wall = true; } } if ((_root.hit_crate1 == true) and (_root.moveup == true)) { if ((_root.crate1_against_red_wall_boundaries_prevention == false) and (_root.crate1_is_pushed_by_red_wall == false)) { _y = (_y - ((getBounds(_root).yMin - _root.redwall.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate1_up_against_red_wall = true; } } } else { _root.redwall_crate1_hit = false; } if (((_root.difference_x_red_with_crate1_right <= 1) && (_root.difference_x_red_with_crate1_right >= -8)) && (_root.distance_y_between_redwall_and_crate1 < ((_height / 2) + (_root.redwall._height / 2)))) { _root.cant_move_crate1_right_against_red_wall = true; _root.red_wall_and_crate1_rightside_touching = true; } else { _root.cant_move_crate1_right_against_red_wall = false; _root.red_wall_and_crate1_rightside_touching = false; } if (((_root.difference_y_blue_with_crate1_up <= 0.3) && (_root.difference_y_blue_with_crate1_up >= -8)) && (_root.distance_x_between_bluewall_and_crate1 < ((_width / 2) + (_root.bluewall._width / 2)))) { _root.blue_wall_and_crate1_topside_touching = true; } else { _root.blue_wall_and_crate1_topside_touching = false; } if ((((_root.redwall_movement == true) and (_root.red_wall_and_crate1_rightside_touching == true)) and (_root.distance_y_between_redwall_and_crate1 < ((_height / 2) + (_root.redwall._height / 2)))) and (_currentframe == 1)) { _root.movement_activate = true; } if (_root.movement_activate == true) { _x = (((_root.redwall._x - (_root.redwall._width / 2)) - (_width / 2)) - 0.2); _root.crate1_is_pushed_by_red_wall = true; } else { _root.crate1_is_pushed_by_red_wall = false; } if ((((_root.bluewall_movement == true) and (_root.blue_wall_and_crate1_topside_touching == true)) and (_root.distance_x_between_bluewall_and_crate1 < ((_width / 2) + (_root.bluewall._width / 2)))) and (_currentframe == 1)) { _y = (((_root.bluewall._y + (_root.bluewall._height / 2)) + (_height / 2)) + 1); _root.crate_is_pushed_by_blue = true; } if ((((_root.distance_y_between_redwall_and_crate1 < ((_height / 2) + (_root.redwall._height / 2))) and (_root.redwall_movement == true)) and (_root.difference_x_red_with_crate1_right < 0.5)) and (_root.difference_x_red_with_crate1_right > -3)) { _root.crate1_against_red_wall_boundaries_prevention = true; } else { _root.crate1_against_red_wall_boundaries_prevention = false; } if (((_root.distance_y_between_redwall_and_crate1 < ((_height / 2) + (_root.redwall._height / 2))) and (_root.distance_y_between_redwall_and_ball <= ((_root.ball1._height / 2) + (_root.redwall._height / 2)))) and (_root.redwall_movement == true)) { _root.crate1_against_red_wall_boundaries_prevention2 = true; } else { _root.crate1_against_red_wall_boundaries_prevention2 = false; } if (_root.crate1_against_red_wall_boundaries_prevention == false) { if (((_root.difference_y_red_with_crate1_up <= 0.3) && (_root.difference_y_red_with_crate1_up >= -8)) && (_root.distance_x_between_redwall_and_crate1 < ((_width / 2) + (_root.redwall._width / 2)))) { _root.cant_move_crate1_up_against_red_wall = true; _root.cant_move_crate1_up_against_insidetop = true; _root.cant_move_crate1_up_against_lm = true; } else { _root.cant_move_crate1_up_against_red_wall = false; } if (((_root.difference_y_red_with_crate1_down <= 0.3) && (_root.difference_y_red_with_crate1_down >= -8)) && (_root.distance_x_between_redwall_and_crate1 < ((_width / 2) + (_root.redwall._width / 2)))) { _root.cant_move_crate1_down_against_insidebottom = true; _root.cant_move_crate1_down_against_lb = true; } else { _root.cant_move_crate1_down_against_red_wall = false; } } else if ((((_root.distance_y_between_redwall_and_crate1 < ((_height / 2) + (_root.redwall._height / 2))) && (_root.distance_y_between_ball1_and_crate1 < ((_height / 2) + (_root.ball1._height / 2)))) and (_root.difference_x_ball1_with_crate1_leftside <= 0.3)) && (_root.difference_x_ball1_with_crate1_leftside >= -8)) { _root.cant_move_crate1_down_against_red_wall = true; _root.cant_move_crate1_up_against_red_wall = true; _root.cant_move_crate1_left_against_red_wall = true; _root.cant_move_crate1_right_against_red_wall = true; } else { _root.cant_move_crate1_down_against_red_wall = false; _root.cant_move_crate1_up_against_red_wall = false; } if (this.hitTest(_root.rightmiddle)) { _root.middle_hit = true; } else { _root.middle_hit = false; } if (((_root.difference_x_crate1_leftside_with_middlewall22 <= 0.3) && (_root.difference_x_crate1_leftside_with_middlewall22 >= -8)) && (_root.movement_activate == true)) { _root.movement_activate = false; _root.decoy_crate.inside.gotoAndPlay(1); _root.redwall_movement = false; _root.decoy_crate._x = _x; _root.decoy_crate._y = _y; _root.decoy_crate.gotoAndStop(2); _x = 20002; trace("midwall"); } if ((((_root.difference_x_crate1_leftside_with_bluewall <= 0.3) && (_root.difference_x_crate1_leftside_with_bluewall >= -8)) && (_root.movement_activate == true)) and (_y < ((_root.bluewall._y + (_root.bluewall._height / 2)) + (_height / 2)))) { _root.movement_activate = false; _root.decoy_crate.inside.gotoAndPlay(1); _root.redwall_movement = false; _root.decoy_crate._x = _x; _root.decoy_crate._y = _y; _root.decoy_crate.gotoAndStop(2); _x = 20002; trace("blue"); } if (((_root.difference_x_crate1_leftside_with_insidewall <= 0.3) && (_root.difference_x_crate1_leftside_with_insidewall >= -8)) and (_root.middle_hit == true)) { _root.movement_activate = false; _root.decoy_crate.inside.gotoAndPlay(1); _root.redwall_movement = false; _root.decoy_crate._x = _x; _root.decoy_crate._y = _y; _root.decoy_crate.gotoAndStop(2); _x = 20002; trace("inside"); } if (_root.difference_y_skinnyright_with_crate1 < 1) { this.gotoAndStop(2); _root.decoy_crate._x = _x; _root.decoy_crate._y = _y; _x = 20002; _root.decoy_crate.inside.gotoAndPlay(1); _root.bluewall_movement = false; _root.decoy_crate.gotoAndStop(2); trace("botom"); } }
Frame 25
function restartLevel() { _root.scoresubmit18 = savefile.data.scoresubmit18; savefile.flush(); soundstart = false; small = false; if ((((((((((((var19 != true) and (var20 != true)) and (var21 != true)) and (var22 != true)) and (var23 != true)) and (var24 != true)) and (var25 != true)) and (var26 != true)) and (var27 != true)) and (var28 != true)) and (var29 != true)) and (var30 != true)) { var18 = true; } var17 = false; if (_root.var1) { _root.score = 1; } else if (_root.var2) { _root.score = 2; } else if (_root.var3) { _root.score = 3; } else if (_root.var4) { _root.score = 4; } else if (_root.var5) { _root.score = 5; } else if (_root.var6) { _root.score = 6; } else if (_root.var71) { _root.score = 7; } else if (_root.var8) { _root.score = 8; } else if (_root.var9) { _root.score = 9; } else if (_root.var10) { _root.score = 10; } else if (_root.var11) { _root.score = 11; } else if (_root.var12) { _root.score = 12; } else if (_root.var13) { _root.score = 13; } else if (_root.var14) { _root.score = 14; } else if (_root.var15) { _root.score = 15; } else if (_root.var16) { _root.score = 16; } else if (_root.var17) { _root.score = 17; } else if (_root.var18) { _root.score = 18; } else if (_root.var19) { _root.score = 19; } else if (_root.var20) { _root.score = 20; } else if (_root.var21) { _root.score = 21; } else if (_root.var22) { _root.score = 22; } else if (_root.var23) { _root.score = 23; } else if (_root.var24) { _root.score = 24; } else if (_root.var25) { _root.score = 25; } else if (_root.var26) { _root.score = 26; } else if (_root.var27) { _root.score = 27; } else if (_root.var28) { _root.score = 28; } else if (_root.var29) { _root.score = 29; } else if (_root.var30) { _root.score = 30; } savefile.data.score = _root.score; savefile.flush(); radius = ball1._height / 2; SPACE_possible = true; greenwall_movement = false; pinkwall_movement = false; orangewall_movement = false; lgreenwall_movement = false; lredwall_movement = false; aquawall_movement = false; yellowwall_movement = false; lgreenwall_movement = false; bluewall_movement = false; redwall_movement = false; ball_location = true; black_is_hit_red = false; gray_is_hit_red = false; red_hit = false; ball1_is_pushed_by_red_wall = false; ball2_is_pushed_by_red_wall = false; black_is_hit_lgreen = false; gray_is_hit_lgreen = false; lgreen_hit = false; small = false; smallkey1_is_attached_to_crate1 = true; _root.decoy2.gotoAndStop(1); _root.decoy.gotoAndStop(1); _root.ball1.gotoAndStop(1); _root.ball1.gotoAndStop(1); _root.ball2.gotoAndStop(1); _root.ball2.gotoAndStop(1); _root.crate1.gotoAndStop(1); _root.crate2.gotoAndStop(1); decoy._x = -1000; decoy2._x = -1000; ball_movement = true; finisher = false; soundstart = false; _root.hit_crate1 = false; _root.ball1_and_crate1_rightside_touching = false; _root.ball1_and_crate1_leftside_touching = false; _root.ball2_and_crate1_rightside_touching = false; _root.ball2_and_crate1_leftside_touching = false; _root.cant_move_crate1_right_against_l1 = false; _root.cant_move_crate1_right_against_l2 = false; _root.cant_move_crate1_right_against_l3 = false; _root.cant_move_crate1_right_against_lred_wall = false; _root.cant_move_crate1_left_against_left_wall = false; _root.cant_move_crate1_down_against_bottom_wall = false; _root.cant_move_crate1_down_against_l1 = false; _root.cant_move_crate1_up_against_pink_wall = false; _root.cant_move_crate1_up_against_l3 = false; _root.red_wall_and_crate1_rightside_touching = false; _root.crate1_against_red_wall_boundaries_prevention = false; _root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall = false; _root.ball2_is_pushed_by_crate1_is_pushed_by_red_wall = false; _root.crate1_is_pushed_by_ball1_is_pushed_by_redwall = false; _root.crate1_is_pushed_by_ball2_is_pushed_by_redwall = false; _root.crate1_is_pushed_by_red_wall = false; timing = true; elapsedTime = 0; startTime = getTimer(); seconds = 0; crate1._x = 216.3; crate1._y = 360.1; greenkey._x = 120.1; greenkey._y = 276.5; orangekey._x = 120.1; orangekey._y = 482.9; pinkkey._x = 568; pinkkey._y = 480.9; redkey._x = 427; redkey._y = 239.3; yellowkey._x = 120.1; yellowkey._y = 414.1; lredkey._x = 261; lredkey._y = 85.5; lgreenkey._x = 120.1; lgreenkey._y = 345.3; bluekey._x = 278.9; bluekey._y = 480.9; aquakey._x = 120.1; aquakey._y = 207.7; greenwall._x = 477; greenwall._y = 274.1; pinkwall._x = 160.1; pinkwall._y = 154; redwall._x = 299.4; redwall._y = 258.5; yellowwall._x = 550; yellowwall._y = 162.3; orangewall._x = ((yellowwall._x - (yellowwall._width / 2)) - (orangewall._width / 2)) - 0.1; orangewall._y = 166.5; lredwall._x = 228.5; lredwall._y = 478.5; lgreenwall._x = ((greenwall._x + (greenwall._width / 2)) + (lgreenwall._width / 2)) + 0.1; lgreenwall._y = 306.7; bluewall._x = 518.5; bluewall._y = 480.6; aquawall._x = 427.1; aquawall._y = 396.8; ball1._x = 166.7; ball1._y = 482.9; ball2._x = 424; ball2._y = 480.9; youwin._x = 10000; winningscreen._x = 1000; finish._x = 140.2; finish._y = 81.5; soundstart = false; } function ball1_old_location() { x_location = ball1._x; y_location = ball1._y; } function ball_locator() { ball_location = true; if (black_is_hit_red == true) { if (small) { decoy._height = 16; decoy._width = 16; } if (small) { decoy2._height = 16; decoy2._width = 16; } ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy.gotoAndStop(2); _root.decoy2.gotoAndStop(3); } if (gray_is_hit_red == true) { if (small) { decoy._height = 16; decoy._width = 16; } if (small) { decoy2._height = 16; decoy2._width = 16; } ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); } if (black_is_hit_lgreen == true) { if (small) { decoy._height = 16; decoy._width = 16; } if (small) { decoy2._height = 16; decoy2._width = 16; } ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy.gotoAndStop(2); _root.decoy2.gotoAndStop(3); } if (gray_is_hit_lgreen == true) { if (small) { decoy._height = 16; decoy._width = 16; } if (small) { decoy2._height = 16; decoy2._width = 16; } ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); } } stop(); _root.options._x = 28.1; _root.restartbutton._x = 41.9; _root.QW._x = 73.8; _root.P._x = 55.6; _root.BN._x = 66; soundstart = false; totalRestarts = 0; _root.option.hintbox.gotoAndStop(1); _root.option.meter.gotoAndStop(18); restartLevel(); youwin.onPress = function () { gotoAndStop ("l12"); }; ball1.onEnterFrame = function () { if (this.hitTest(smallkey1)) { smallstart = true; ball1.gotoAndStop(2); ball2.gotoAndStop(2); smallkey1._x = 9000; small = true; } if (this.hitTest(redkey)) { keystart = true; redkey._x = 100000 /* 0x0186A0 */; redwall_movement = true; _root.ball1.scan.gotoAndStop(3); } if (this.hitTest(greenkey)) { keystart = true; greenkey._x = 100000 /* 0x0186A0 */; greenwall_movement = true; _root.ball1.scan.gotoAndStop(2); } if (this.hitTest(orangekey)) { keystart = true; orangekey._x = 100000 /* 0x0186A0 */; orangewall_movement = true; _root.ball1.scan.gotoAndStop(6); } if (this.hitTest(lredkey)) { keystart = true; lredkey._x = 100000 /* 0x0186A0 */; lredwall_movement = true; _root.ball1.scan.gotoAndStop(5); } if (this.hitTest(lgreenkey)) { keystart = true; lgreenkey._x = 100000 /* 0x0186A0 */; lgreenwall_movement = true; _root.ball1.scan.gotoAndStop(7); } if (this.hitTest(yellowkey)) { keystart = true; yellowkey._x = 100000 /* 0x0186A0 */; yellowwall_movement = true; _root.ball1.scan.gotoAndStop(10); } if (this.hitTest(pinkkey)) { keystart = true; pinkkey._x = 100000 /* 0x0186A0 */; pinkwall_movement = true; _root.ball1.scan.gotoAndStop(9); } if (this.hitTest(aquakey)) { keystart = true; aquakey._x = 100000 /* 0x0186A0 */; aquawall_movement = true; _root.ball1.scan.gotoAndStop(8); } if (this.hitTest(bluekey)) { keystart = true; bluekey._x = 100000 /* 0x0186A0 */; bluewall_movement = true; _root.ball1.scan.gotoAndStop(4); _root.ball1.scan.bluemove.gotoAndPlay(1); } if (aquawall.hitTest(lgreenwall)) { trace("aqua vs. lgreen"); aquawall_movement = false; soundstart = true; aquawall._y = 396.8; lgreenwall_movement = false; lgreenwall._x = ((aqauwall._x + (aquawall._width / 2)) + (lgreenwall._width / 2)) + 0.1; } if (aquawall.hitTest(orangewall)) { trace("aqua vs. orangen"); aquawall_movement = false; orangewall_movement = false; soundstart = true; aquawall._y = ((orangewall._y + (orangewall._height / 2)) + (aquawall._height / 2)) + 0.1; } if (greenwall.hitTest(orangewall)) { trace("green vs. orangen"); greenwall_movement = false; orangewall_movement = false; soundstart = true; greenwall._y = ((orangewall._y + (orangewall._height / 2)) + (greenwall._height / 2)) + 0.1; } if (orangewall.hitTest(yellowwall)) { trace("orange vs. yellow"); yellowwall_movement = false; orangewall_movement = false; soundstart = true; orangewall._x = ((yellowwall._x - (yellowwall._width / 2)) - (orangewall._width / 2)) - 0.1; } if (lgreenwall.hitTest(greenwall)) { trace("lgreen vs. green"); lgreenwall_movement = false; greenwall_movement = false; soundstart = true; lgreenwall._x = ((greenwall._x + (greenwall._width / 2)) + (lgreenwall._width / 2)) - 0.3; } if (scoresubmit18) { scoresubmit = false; } else if (scoresubmit18 == false) { scoresubmit = true; } if (this.hitTest(finish)) { timing = false; seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if ((score == 18) or scoresubmit) { level18_best_time = seconds; scoresubmit18 = true; savefile.data.scoresubmit18 = _root.scoresubmit18; savefile.flush(); } if (seconds < level18_best_time) { level18_best_time = seconds; } savefile.data.level18_best_time = _root.level18_best_time; savefile.flush(); if (_root.score <= 19) { _root.score = 19; } savefile.data.score = _root.score; savefile.flush(); SPACE_possible = false; ball_movement = false; win._x = Stage.width / 2; win._y = Stage.height / 2; _root.win.instructions.gotoAndStop(18); _root.win.meter.gotoAndStop(19); } if (Key.isDown(32) && (SPACE_possible == false)) { finisher = true; } if (finisher) { if (!Key.isDown(32)) { win._x = 10000; gotoAndStop ("l12"); finisher = false; SPACE_possible = true; } } }; _root.onEnterFrame = function () { seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if (!ball_movement) { timing = false; startTime = getTimer() - elapsedTime; } else { timing = true; } if (timing) { elapsedTime = getTimer() - startTime; } if (var18) { w_works = false; } else { w_works = true; } if (((option._x != (Stage.width / 2)) and (instruction._x != (Stage.width / 2))) and (win._x != (Stage.width / 2))) { if (Key.isDown(81)) { q_is_DOWN = true; } if (q_is_DOWN) { if (!Key.isDown(81)) { gotoAndStop ("l19"); q_is_DOWN = false; } } if (Key.isDown(87)) { w_is_DOWN = true; } if (w_is_DOWN) { if (!Key.isDown(87)) { if (w_works) { gotoAndStop ("l12"); } w_is_DOWN = false; } } ballx = ball1._x; bally = ball1._y; decoyx = decoy._x; if (Key.isDown(78)) { n_is_DOWN = true; } if (n_is_DOWN) { if (!Key.isDown(78)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); n_is_DOWN = false; } } } if (Key.isDown(66)) { b_is_DOWN = true; } if (b_is_DOWN) { if (!Key.isDown(66)) { totalRestarts = totalRestarts + 1; if (ball_movement) { restartLevel(); b_is_DOWN = false; } } } if (SPACE_possible) { if (Key.isDown(32)) { SPACE_is_DOWN = true; } if (SPACE_is_DOWN) { if (!Key.isDown(32)) { ball1_old_location(); ball1._x = ball2._x; ball1._y = ball2._y; ball2._x = x_location; ball2._y = y_location; SPACE_is_DOWN = false; } } } } if (smallkey1_is_attached_to_crate1 == true) { smallkey1._x = crate1._x; smallkey1._y = crate1._y; } ballx = ball1._x; bally = ball1._y; if (greenwall_movement) { greenwall._y = greenwall._y - 1; } if (greenwall._y < 107.8) { greenwall_movement = false; soundstart = true; greenwall._y = 107.8; } if (aquawall_movement) { aquawall._y = aquawall._y - 1; } if (aquawall._y < 107.8) { aquawall_movement = false; soundstart = true; aquawall._y = 107.8; } if (orangewall_movement) { orangewall._x = orangewall._x + 1; } if (orangewall._x > 550.2) { orangewall_movement = false; soundstart = true; orangewall._x = 550.2; } if (yellowwall_movement) { yellowwall._y = yellowwall._y - 1; } if (lgreenwall_movement) { lgreenwall._x = lgreenwall._x - 1; } if (lgreenwall._x < 450) { lgreenwall_movement = false; soundstart = true; lgreenwall._x = 450; } if (redwall_movement) { redwall._x = redwall._x - 1; } if (redwall._x < 200.6) { redwall_movement = false; soundstart = true; redwall._x = 200.6; } if (pinkwall_movement) { pinkwall._x = pinkwall._x + 1; } if (pinkwall._x > 239.8) { pinkwall_movement = false; soundstart = true; pinkwall._x = 239.7; } if (bluewall_movement) { bluewall._y = bluewall._y + 1; } if (lredwall_movement) { lredwall._y = lredwall._y + 1; } distance_between_middlewall_and_ball = Math.abs(((ball1._x - middlewall._x) - (middlewall._width / 2)) - (ball1._width / 2)); distance_between_middlewall_and_ball2 = Math.abs(((ball2._x - middlewall._x) - (middlewall._width / 2)) - (ball2._width / 2)); differencelgreen = ((lgreenwall._x - (lgreenwall._width / 2)) - (ball1._width / 2)) - ball1._x; differencelgreen2 = ((lgreenwall._x - (lgreenwall._width / 2)) - (ball2._width / 2)) - ball2._x; distance_y_between_lgreenwall_and_ball = Math.abs(lgreenwall._y - ball1._y); distance_y_between_lgreenwall_and_ball2 = Math.abs(lgreenwall._y - ball2._y); if ((((lgreenwall_movement == true) and (differencelgreen <= 0.2)) and (differencelgreen >= -8)) and (distance_y_between_lgreenwall_and_ball < ((ball1._height / 2) + (lgreenwall._height / 2)))) { ball1._x = ((lgreenwall._x - (lgreenwall._width / 2)) - (ball1._width / 2)) - 0.2; } if ((((lgreenwall_movement == true) and (differencelgreen2 <= 0.2)) and (differencelgreen2 >= -8)) and (distance_y_between_lgreenwall_and_ball2 < ((ball2._height / 2) + (lgreenwall._height / 2)))) { ball2._x = ((lgreenwall._x - (lgreenwall._width / 2)) - (ball2._width / 2)) - 0.2; } if (((((differencelgreen <= 1) && (differencelgreen >= -2)) && (distance_between_middlewall_and_ball <= 2)) && (distance_y_between_lgreenwall_and_ball < ((ball1._height / 2) + (lgreenwall._height / 2)))) or ((((differencelgreen2 <= 0.5) && (differencelgreen2 >= -1)) && (distance_between_middlewall_and_ball2 <= 0.5)) && (distance_y_between_lgreenwall_and_ball2 < ((ball2._height / 2) + (lgreenwall._height / 2))))) { lgreen_hit = true; ball_location = false; ball1._x = 2000; ball2._x = 2000; } differencered = ((redwall._x - (redwall._width / 2)) - (ball1._width / 2)) - ball1._x; differencered2 = ((redwall._x - (redwall._width / 2)) - (ball2._width / 2)) - ball2._x; distance_between_leftwall_and_ball = Math.abs(((ball1._x - leftwall._x) - (leftwall._width / 2)) - (ball1._width / 2)); distance_between_leftwall_and_ball2 = Math.abs(((ball2._x - leftwall._x) - (leftwall._width / 2)) - (ball2._width / 2)); distance_y_between_redwall_and_ball = Math.abs(redwall._y - ball1._y); distance_y_between_redwall_and_ball2 = Math.abs(redwall._y - ball2._y); if ((((redwall_movement == true) and (differencered <= 1)) and (differencered >= -8)) and (distance_y_between_redwall_and_ball < ((ball1._height / 2) + (redwall._height / 2)))) { ball1._x = ((redwall._x - (redwall._width / 2)) - (ball1._width / 2)) - 0.2; ball1_is_pushed_by_red_wall = true; } else { ball1_is_pushed_by_red_wall = false; } if ((((redwall_movement == true) and (differencered2 <= 1)) and (differencered2 >= -8)) and (distance_y_between_redwall_and_ball2 < ((ball2._height / 2) + (redwall._height / 2)))) { ball2._x = ((redwall._x - (redwall._width / 2)) - (ball2._width / 2)) - 0.2; ball2_is_pushed_by_red_wall = true; } else { ball2_is_pushed_by_red_wall = false; } if (((((differencered <= 0.5) && (differencered >= -1)) && (distance_between_leftwall_and_ball <= 0.5)) && (distance_y_between_redwall_and_ball < ((ball1._height / 2) + (redwall._height / 2)))) or ((((differencered2 <= 0.5) && (differencered2 >= -1)) && (distance_between_leftwall_and_ball2 <= 0.5)) && (distance_y_between_redwall_and_ball2 < ((ball2._height / 2) + (redwall._height / 2))))) { red_hit = true; ball_location = false; ball1._x = 2000; ball2._x = 2000; } differencepink = ((ball1._x - pinkwall._x) - (pinkwall._width / 2)) - (ball1._width / 2); differencepink2 = ((ball2._x - pinkwall._x) - (pinkwall._width / 2)) - (ball2._width / 2); distance_between_leftmiddlewall_and_ball = Math.abs(((middlewall._x - ball1._x) - (middlewall._width / 2)) - (ball1._width / 2)); distance_between_leftmiddlewall_and_ball2 = Math.abs(((middlewall._x - ball2._x) - (middlewall._width / 2)) - (ball2._width / 2)); distance_y_between_pinkwall_and_ball = Math.abs(pinkwall._y - ball1._y); distance_y_between_pinkwall_and_ball2 = Math.abs(pinkwall._y - ball2._y); if ((((pinkwall_movement == true) and (differencepink <= 0.2)) and (differencepink >= -8)) and (distance_y_between_pinkwall_and_ball < ((ball1._height / 2) + (pinkwall._height / 2)))) { ball1._x = ((pinkwall._x + (pinkwall._width / 2)) + (ball1._width / 2)) + 0.2; } if ((((pinkwall_movement == true) and (differencepink2 <= 0.2)) and (differencepink2 >= -8)) and (distance_y_between_pinkwall_and_ball2 < ((ball2._height / 2) + (pinkwall._height / 2)))) { ball2._x = ((pinkwall._x + (pinkwall._width / 2)) + (ball2._width / 2)) + 0.2; } if (((((differencepink <= 0.5) && (differencepink >= -1)) && (distance_between_leftmiddlewall_and_ball <= 0.5)) && (distance_y_between_pinkwall_and_ball < ((ball1._height / 2) + (pinkwall._height / 2)))) or ((((differencepink2 <= 0.5) && (differencepink2 >= -1)) && (distance_between_leftmiddlewall_and_ball2 <= 0.5)) && (distance_y_between_pinkwall_and_ball2 < ((ball2._height / 2) + (pinkwall._height / 2))))) { pink_hit = true; ball_location = false; ball1._x = 2000; ball2._x = 2000; } if (ball_location) { ball1_xlocation = ball1._x; ball1_ylocation = ball1._y; ball2_xlocation = ball2._x; ball2_ylocation = ball2._y; } else { explosionsound2 = true; if (ball1_xlocation < (Stage.width / 2)) { if (lgreen_hit == true) { gray_is_hit_lgreen = true; } if ((red_hit == true) or (pink_hit == true)) { black_is_hit_red = true; } } else if (ball1_xlocation > (Stage.width / 2)) { if (lgreen_hit == true) { black_is_hit_lgreen = true; } if ((red_hit == true) or (pink_hit == true)) { gray_is_hit_red = true; } } ball_locator(); } };
Instance of Symbol 1071 MovieClip "crate1" in Frame 25
onClipEvent (load) { _root.hit_crate1 = false; _root.ball1_and_crate1_rightside_touching = false; _root.ball1_and_crate1_leftside_touching = false; _root.ball2_and_crate1_rightside_touching = false; _root.ball2_and_crate1_leftside_touching = false; _root.cant_move_crate1_right_against_l1 = false; _root.cant_move_crate1_right_against_l2 = false; _root.cant_move_crate1_right_against_l3 = false; _root.cant_move_crate1_right_against_lred_wall = false; _root.cant_move_crate1_left_against_left_wall = false; _root.cant_move_crate1_down_against_bottom_wall = false; _root.cant_move_crate1_down_against_l1 = false; _root.cant_move_crate1_up_against_pink_wall = false; _root.cant_move_crate1_up_against_l3 = false; _root.red_wall_and_crate1_rightside_touching = false; _root.crate1_against_red_wall_boundaries_prevention = false; _root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall = false; _root.ball2_is_pushed_by_crate1_is_pushed_by_red_wall = false; _root.crate1_is_pushed_by_ball1_is_pushed_by_redwall = false; _root.crate1_is_pushed_by_ball2_is_pushed_by_redwall = false; _root.crate1_is_pushed_by_red_wall = false; } onClipEvent (enterFrame) { _root.distance_y_between_ball1_and_crate1 = Math.abs(_root.ball1._y - _y); _root.difference_x_ball1_with_crate1_rightside = ((_root.ball1._x - _x) - (_width / 2)) - (_root.ball1._width / 2); _root.difference_x_ball1_with_crate1_leftside = ((_x - _root.ball1._x) - (_width / 2)) - (_root.ball1._width / 2); _root.distance_y_between_ball2_and_crate1 = Math.abs(_root.ball2._y - _y); _root.difference_x_ball2_with_crate1_rightside = ((_root.ball2._x - _x) - (_width / 2)) - (_root.ball2._width / 2); _root.difference_x_ball2_with_crate1_leftside = ((_x - _root.ball2._x) - (_width / 2)) - (_root.ball2._width / 2); _root.difference_x_red_with_crate1_left = ((_x - (_width / 2)) - _root.redwall._x) - (_root.redwall._width / 2); _root.difference_x_red_with_crate1_right = ((_root.redwall._x - (_root.redwall._width / 2)) - _x) - (_width / 2); _root.difference_y_red_with_crate1_up = ((_y - (_height / 2)) - _root.redwall._y) - (_root.redwall._height / 2); _root.difference_y_red_with_crate1_down = ((_root.redwall._y - (_root.redwall._height / 2)) - _y) - (_height / 2); _root.distance_x_between_redwall_and_crate1 = Math.abs(_root.redwall._x - _x); _root.distance_y_between_redwall_and_crate1 = Math.abs(_root.redwall._y - _y); _root.difference_x_crate1_leftside_with_leftwall = ((_x - (_width / 2)) - (_root.leftwall._width / 2)) - _root.leftwall._x; if (hitTest(_root.leftwall)) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate2_left_against_left_wall = true; } if ((((_x - _root.leftwall._x) - (_root.leftwall._width / 2)) - (_width / 2)) <= 0.3) { _root.cant_move_crate2_left_against_left_wall = true; } else { _root.cant_move_crate2_left_against_left_wall = false; } if (hitTest(_root.l3) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.l3.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate1_right_against_l3 = true; } if (((Math.abs(((_root.l3._x - _x) - (_root.l3._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.l3._y + (_root.l3._height / 2)) + (_height / 2)))) and (_y > ((_root.l3._y - (_root.l3._height / 2)) - (_height / 2)))) { _root.cant_move_crate1_right_against_l3 = true; } else { _root.cant_move_crate1_right_against_l3 = false; } if (hitTest(_root.l2) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.l2.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate1_right_against_l2 = true; } if (((Math.abs(((_root.l2._x - _x) - (_root.l2._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.l2._y + (_root.l2._height / 2)) + (_height / 2)))) and (_y > ((_root.l2._y - (_root.l2._height / 2)) - (_height / 2)))) { _root.cant_move_crate1_right_against_l2 = true; } else { _root.cant_move_crate1_right_against_l2 = false; } if (hitTest(_root.l1) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.l1.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate1_right_against_l1 = true; } if (((Math.abs(((_root.l1._x - _x) - (_root.l1._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.l1._y + (_root.l1._height / 2)) + (_height / 2)))) and (_y > ((_root.l1._y - (_root.l1._height / 2)) - (_height / 2)))) { _root.cant_move_crate1_right_against_l1 = true; } else { _root.cant_move_crate1_right_against_l1 = false; } if (hitTest(_root.lredwall) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.lredwall.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate1_right_against_lred_wall = true; } if (((Math.abs(((_root.lredwall._x - _x) - (_root.lredwall._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.lredwall._y + (_root.lredwall._height / 2)) + (_height / 2)))) and (_y > ((_root.lredwall._y - (_root.lredwall._height / 2)) - (_height / 2)))) { _root.cant_move_crate1_right_against_lred_wall = true; } else { _root.cant_move_crate1_right_against_lred_wall = false; } if (hitTest(_root.pinkwall)) { _y = (_y - ((getBounds(_root).yMin - _root.pinkwall.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate1_up_against_pink_wall = true; } if ((((_y - _root.pinkwall._y) - (_root.pinkwall._height / 2)) - (_height / 2)) <= 0.3) { _root.cant_move_crate1_up_against_pink_wall = true; } else { _root.cant_move_crate1_up_against_pink_wall = false; } if (hitTest(_root.l3) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.l3.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate1_up_against_l3 = true; } if (((Math.abs(((_y - _root.l3._y) - (_root.l3._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.l3._x + (_root.l3._width / 2)) + (_width / 2)))) and (_x > ((_root.l3._x - (_root.l3._width / 2)) - (_width / 2)))) { _root.cant_move_crate1_up_against_l3 = true; } else { _root.cant_move_crate1_up_against_l3 = false; } if (hitTest(_root.bottomwall)) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate1_down_against_bottom_wall = true; } if ((((_root.bottomwall._y - _y) - (_root.bottomwall._height / 2)) - (_height / 2)) <= 0.3) { _root.cant_move_crate1_down_against_bottom_wall = true; } else { _root.cant_move_crate1_down_against_bottom_wall = false; } if (hitTest(_root.l1) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.l1.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate1_down_against_l1 = true; } if (((Math.abs(((_root.l1._y - _y) - (_root.l1._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.l1._x + (_root.l1._width / 2)) + (_width / 2)))) and (_x > ((_root.l1._x - (_root.l1._width / 2)) - (_width / 2)))) { _root.cant_move_crate1_down_against_l1 = true; } else { _root.cant_move_crate1_down_against_l1 = false; } if (hitTest(_root.redwall)) { _root.redwall_crate1_hit = true; if ((_root.hit_crate1 == true) and (_root.moveright == true)) { if ((_root.crate1_against_red_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall == false)) { _x = (_x - ((getBounds(_root).xMax - _root.redwall.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate1_right_against_red_wall = true; } } if ((_root.hit_crate1 == true) and (_root.moveleft == true)) { if ((_root.crate1_against_red_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall == false)) { _x = (_x - ((getBounds(_root).xMin - _root.redwall.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate1_left_against_red_wall = true; } } if ((_root.hit_crate1 == true) and (_root.movedown == true)) { if (((_root.crate1_against_red_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall == false)) and (_root.crate1_is_pushed_by_red_wall == false)) { _y = (_y - ((getBounds(_root).yMax - _root.redwall.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate1_down_against_red_wall = true; } } if ((_root.hit_crate1 == true) and (_root.moveup == true)) { if (((_root.crate1_against_red_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall == false)) and (_root.crate1_is_pushed_by_red_wall == false)) { _y = (_y - ((getBounds(_root).yMin - _root.redwall.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate1_up_against_red_wall = true; } } } else { _root.redwall_crate1_hit = false; } if (((_root.difference_x_red_with_crate1_right <= 1) && (_root.difference_x_red_with_crate1_right >= -8)) && (_root.distance_y_between_redwall_and_crate1 < ((_height / 2) + (_root.redwall._height / 2)))) { _root.cant_move_crate1_right_against_red_wall = true; _root.red_wall_and_crate1_rightside_touching = true; } else { _root.cant_move_crate1_right_against_red_wall = false; _root.red_wall_and_crate1_rightside_touching = false; } if ((((_root.redwall_movement == true) and (_root.red_wall_and_crate1_rightside_touching == true)) and (_root.distance_y_between_redwall_and_crate1 < ((_height / 2) + (_root.redwall._height / 2)))) and (_currentframe == 1)) { _x = (((_root.redwall._x - (_root.redwall._width / 2)) - (_width / 2)) - 0.7); _root.crate1_is_pushed_by_red_wall = true; } if (((_root.difference_x_ball1_with_crate1_leftside <= 0.3) && (_root.difference_x_ball1_with_crate1_leftside >= -8)) && (_root.distance_y_between_ball1_and_crate1 < ((_height / 2) + (_root.ball1._height / 2)))) { _root.ball1_and_crate1_leftside_touching = true; } else { _root.ball1_and_crate1_leftside_touching = false; } if (((_root.difference_x_ball2_with_crate1_leftside <= 0.3) && (_root.difference_x_ball2_with_crate1_leftside >= -8)) && (_root.distance_y_between_ball2_and_crate1 < ((_height / 2) + (_root.ball2._height / 2)))) { _root.ball2_and_crate1_leftside_touching = true; } else { _root.ball2_and_crate1_leftside_touching = false; } if (((_root.difference_x_ball1_with_crate1_rightside <= 3) && (_root.difference_x_ball1_with_crate1_rightside >= -10)) && (_root.distance_y_between_ball1_and_crate1 < ((_height / 2) + (_root.ball1._height / 2)))) { _root.ball1_and_crate1_rightside_touching = true; } else { _root.ball1_and_crate1_rightside_touching = false; } if (((_root.difference_x_ball2_with_crate1_rightside <= 0.3) && (_root.difference_x_ball2_with_crate1_rightside >= -8)) && (_root.distance_y_between_ball2_and_crate1 < ((_height / 2) + (_root.ball2._height / 2)))) { _root.ball2_and_crate1_rightside_touching = true; } else { _root.ball2_and_crate1_rightside_touching = false; } if (((((_root.ball1_and_crate1_leftside_touching == true) and (_root.crate1_is_pushed_by_red_wall == true)) and (_root.distance_y_between_redwall_and_crate1 < ((_height / 2) + (_root.redwall._height / 2)))) and (_root.distance_y_between_ball1_and_crate1 < ((_height / 2) + (_root.ball1._height / 2)))) and (_root.redwall_movement == true)) { _root.ball1._x = (((_root.redwall._x - (_root.redwall._width / 2)) - _width) - (_root.ball1._width / 2)) - 0.5; _root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall = true; } else { _root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall = false; } if (((((_root.ball2_and_crate1_leftside_touching == true) and (_root.crate1_is_pushed_by_red_wall == true)) and (_root.distance_y_between_redwall_and_crate1 < ((_height / 2) + (_root.redwall._height / 2)))) and (_root.distance_y_between_ball2_and_crate1 < ((_height / 2) + (_root.ball2._height / 2)))) and (_root.redwall_movement == true)) { _root.ball2._x = (((_root.redwall._x - (_root.redwall._width / 2)) - _width) - (_root.ball2._width / 2)) - 0.5; _root.ball2_is_pushed_by_crate1_is_pushed_by_red_wall = true; } else { _root.ball2_is_pushed_by_crate1_is_pushed_by_red_wall = false; } if (((((_root.ball1_and_crate1_rightside_touching == true) and (_root.ball1_is_pushed_by_red_wall == true)) and (_root.distance_y_between_ball1_and_crate1 < ((_height / 2) + (_root.ball1._height / 2)))) and ((_root.moveleft == false) or ((_root.moveleft == true) and (_root.cant_move_crate1_left_against_left_wall == true)))) and (_currentframe == 1)) { _root.cant_move_crate1_right_against_red_wall = false; _x = (((_root.ball1._x - (_root.ball1._width / 2)) - (_width / 2)) - 0.5); _root.crate1_is_pushed_by_ball1_is_pushed_by_redwall = true; } else { _root.crate1_is_pushed_by_ball1_is_pushed_by_redwall = false; } if ((((_root.ball2_and_crate1_rightside_touching == true) and (_root.ball2_is_pushed_by_red_wall == true)) and (_root.distance_y_between_ball2_and_crate1 < ((_height / 2) + (_root.ball2._height / 2)))) and (_root.moveleft == false)) { _x = (((_root.ball2._x - (_root.ball2._width / 2)) - (_width / 2)) - 0.5); _root.crate1_is_pushed_by_ball2_is_pushed_by_redwall = true; } else { _root.crate1_is_pushed_by_ball2_is_pushed_by_redwall = false; } if ((((_root.distance_y_between_redwall_and_crate1 < ((_height / 2) + (_root.redwall._height / 2))) and (_root.redwall_movement == true)) and (_root.difference_x_red_with_crate1_right < 0.5)) and (_root.difference_x_red_with_crate1_right > -3)) { _root.crate1_against_red_wall_boundaries_prevention = true; } else { _root.crate1_against_red_wall_boundaries_prevention = false; } if (((_root.distance_y_between_redwall_and_crate1 < ((_height / 2) + (_root.redwall._height / 2))) and (_root.distance_y_between_redwall_and_ball <= ((_root.ball1._height / 2) + (_root.redwall._height / 2)))) and (_root.redwall_movement == true)) { _root.crate1_against_red_wall_boundaries_prevention2 = true; } else { _root.crate1_against_red_wall_boundaries_prevention2 = false; } if (((_root.difference_x_red_with_crate1_left <= 0.3) && (_root.difference_x_red_with_crate1_left >= -8)) && (_root.distance_y_between_redwall_and_crate1 < ((_height / 2) + (_root.redwall._height / 2)))) { _root.cant_move_crate1_left_against_red_wall = true; _root.cant_move_crate1_left_against_left_wall = true; } else { _root.cant_move_crate1_left_against_red_wall = false; } if (_root.crate1_against_red_wall_boundaries_prevention == false) { if (((_root.difference_y_red_with_crate1_up <= 0.3) && (_root.difference_y_red_with_crate1_up >= -8)) && (_root.distance_x_between_redwall_and_crate1 < ((_width / 2) + (_root.redwall._width / 2)))) { _root.cant_move_crate1_up_against_red_wall = true; _root.cant_move_crate1_up_against_l3 = true; _root.cant_move_crate1_up_against_pink_wall = true; } else { _root.cant_move_crate1_up_against_red_wall = false; } if (((_root.difference_y_red_with_crate1_down <= 0.3) && (_root.difference_y_red_with_crate1_down >= -8)) && (_root.distance_x_between_redwall_and_crate1 < ((_width / 2) + (_root.redwall._width / 2)))) { _root.cant_move_crate1_down_against_l1 = true; _root.cant_move_crate1_down_against_bottom_wall = true; } else { _root.cant_move_crate1_down_against_red_wall = false; } } else if ((((_root.distance_y_between_redwall_and_crate1 < ((_height / 2) + (_root.redwall._height / 2))) && (_root.distance_y_between_ball1_and_crate1 < ((_height / 2) + (_root.ball1._height / 2)))) and (_root.difference_x_ball1_with_crate1_leftside <= 0.3)) && (_root.difference_x_ball1_with_crate1_leftside >= -8)) { _root.cant_move_crate1_down_against_red_wall = true; _root.cant_move_crate1_up_against_red_wall = true; _root.cant_move_crate1_left_against_red_wall = true; _root.cant_move_crate1_right_against_red_wall = true; } else { _root.cant_move_crate1_down_against_red_wall = false; _root.cant_move_crate1_up_against_red_wall = false; } if (((_root.redwall_movement == true) and ((((_root.difference_x_ball1_with_crate1_leftside <= 1) && (_root.difference_x_ball1_with_crate1_leftside >= -6)) && (_root.distance_between_leftwall_and_ball <= 1)) && (_root.distance_y_between_ball1_and_crate1 < ((_root.ball1._height / 2) + (_height / 2))))) or ((((_root.difference_x_ball2_with_crate1_leftside <= 0.7) && (_root.difference_x_ball2_with_crate1_leftside >= -6)) && (_root.distance_between_leftwall_and_ball2 <= 0.5)) && (_root.distance_y_between_ball2_and_crate1 < ((_root.ball2._height / 2) + (_height / 2))))) { _root.ball_location = false; _root.red_hit = true; _root.ball1._x = 2000; _root.ball2._x = 2000; _root.cant_move_crate1_up_against_red_wall = false; _root.cant_move_crate1_down_against_red_wall = false; } if ((((_root.difference_x_crate1_leftside_with_leftwall <= 1) && (_root.difference_x_crate1_leftside_with_leftwall >= -8)) && ((_root.distance_y_between_redwall_and_crate1 < ((_height / 2) + (_root.redwall._height / 2))) or ((_root.distance_y_between_redwall_and_ball < ((_root.ball1._height / 2) + (_root.redwall._height / 2))) and (_root.distance_y_between_ball1_and_crate1 < ((_height / 2) + (_root.ball1._height / 2)))))) and (((_root.crate1_is_pushed_by_red_wall == true) or ((_root.ball1_and_crate1_rightside_touching == true) and (_root.ball1_is_pushed_by_red_wall == true))) or (_root.crate1_is_pushed_by_ball2_is_pushed_by_redwall == true))) { _root.smallkey1_is_attached_to_crate1 = false; _root.decoy_crate.inside.gotoAndPlay(1); _root.redwall_movement = false; _root.decoy_crate._x = _x; _root.decoy_crate._y = _y; _root.decoy_crate.gotoAndStop(2); _x = 20002; } }
Instance of Symbol 1257 MovieClip "ball1" in Frame 25
onClipEvent (load) { _root.hit_crate1 = false; } onClipEvent (enterFrame) { function move(xmove, ymove) { _x = (_x + xmove); _y = (_y + ymove); if (hitTest(_root.leftwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.middlewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.topwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.topwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.topwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.topwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bottomwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bottomwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bottomwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bottomwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.l1)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.l1.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.l1.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.l1.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.l1.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.l2)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.l2.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.l2.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.l2.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.l2.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.l3)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.l3.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.l3.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.l3.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.l3.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.l4)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.l4.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.l4.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.l4.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.l4.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.r1)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.r1.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.r1.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.r1.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.r1.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.pinkwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.pinkwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.pinkwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.pinkwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.pinkwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.greenwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.greenwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.greenwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.greenwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.greenwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bluewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bluewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bluewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bluewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bluewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.lgreenwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.lgreenwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.lgreenwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.lgreenwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.lgreenwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.lredwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.lredwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.lredwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.lredwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.lredwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.aquawall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.aquawall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.aquawall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.aquawall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.aquawall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.orangewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.orangewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.orangewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.orangewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.orangewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.redwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.redwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.redwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.redwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.redwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.yellowwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.yellowwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.yellowwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.yellowwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.yellowwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.crate1)) { if (_root.crate1._currentframe == 1) { _root.hit_crate1 = true; if (xmove > 0) { if ((_root.crate1_is_pushed_by_ball1_is_pushed_by_redwall == false) and (_root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall == false)) { _x = (_x - ((getBounds(_root).xMax - _root.crate1.getBounds(_root).xMin) + 0.1)); if (((((_root.cant_move_crate1_right_against_red_wall == false) and (_root.cant_move_crate1_right_against_l3 == false)) and (_root.cant_move_crate1_right_against_l2 == false)) and (_root.cant_move_crate1_right_against_l1 == false)) and (_root.cant_move_crate1_right_against_lred_wall == false)) { _root.cratespeed_xright = 1; _root.crate1._x = _root.crate1._x + _root.cratespeed_xright; _root.moveright = true; } } } else { _root.moveright = false; } if (xmove < 0) { if (_root.crate1_is_pushed_by_ball1_is_pushed_by_redwall == false) { _x = (_x - ((getBounds(_root).xMin - _root.crate1.getBounds(_root).xMax) - 0.1)); if ((_root.cant_move_crate1_left_against_red_wall == false) and (_root.cant_move_crate1_left_against_left_wall == false)) { _root.cratespeed_xleft = 1; _root.crate1._x = _root.crate1._x - _root.cratespeed_xleft; _root.moveleft = true; } } } else { _root.moveleft = false; } if (ymove > 0) { if ((((_root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall == false) && (_root.crate1_is_pushed_by_ball1_is_pushed_by_redwall == false)) and (_root.difference_x_ball1_with_crate1_leftside <= -1)) and (_root.difference_x_ball1_with_crate1_rightside <= -1)) { _y = (_y - ((getBounds(_root).yMax - _root.crate1.getBounds(_root).yMin) + 0.1)); if (((_root.cant_move_crate1_down_against_red_wall == false) and (_root.cant_move_crate1_down_against_bottom_wall == false)) and (_root.cant_move_crate1_down_against_l1 == false)) { _root.cratespeed_ydown = 1; _root.crate1._y = _root.crate1._y + _root.cratespeed_ydown; _root.movedown = true; } } } else { _root.movedown = false; } if (ymove < 0) { if ((((_root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall == false) && (_root.crate1_is_pushed_by_ball1_is_pushed_by_redwall == false)) and (_root.difference_x_ball1_with_crate1_leftside <= -1)) and (_root.difference_x_ball1_with_crate1_rightside <= -1)) { _y = (_y - ((getBounds(_root).yMin - _root.crate1.getBounds(_root).yMax) - 0.1)); if (((_root.cant_move_crate1_up_against_red_wall == false) and (_root.cant_move_crate1_up_against_l3 == false)) and (_root.cant_move_crate1_up_against_pink_wall == false)) { _root.cratespeed_yup = 1; _root.crate1._y = _root.crate1._y - _root.cratespeed_yup; _root.moveup = true; } } } else { _root.moveup = false; } } } } if ((((!Key.isDown(37)) and (!Key.isDown(39))) and (!Key.isDown(38))) and (!Key.isDown(40))) { _root.moveup = false; _root.movedown = false; _root.moveright = false; _root.moveleft = false; move(0, 0); _root.hit_crate1 = false; } if (_root.ball_movement == true) { if (Key.isDown(37)) { move(-5, 0); } if (Key.isDown(39)) { if ((_root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall == false) and (_root.ball1_is_pushed_by_red_wall == false)) { move(5, 0); } } if (Key.isDown(38)) { move(0, -5); } if (Key.isDown(40)) { move(0, 5); } } }
Frame 26
function restartLevel() { _root.scoresubmit9 = savefile.data.scoresubmit9; savefile.flush(); soundstart = false; small = false; if (((((((((((((((((((((var10 != true) and (var11 != true)) and (var12 != true)) and (var13 != true)) and (var14 != true)) and (var15 != true)) and (var16 != true)) and (var17 != true)) and (var18 != true)) and (var19 != true)) and (var20 != true)) and (var21 != true)) and (var22 != true)) and (var23 != true)) and (var24 != true)) and (var25 != true)) and (var26 != true)) and (var27 != true)) and (var28 != true)) and (var29 != true)) and (var30 != true)) { var9 = true; } var8 = false; if (_root.var1) { _root.score = 1; } else if (_root.var2) { _root.score = 2; } else if (_root.var3) { _root.score = 3; } else if (_root.var4) { _root.score = 4; } else if (_root.var5) { _root.score = 5; } else if (_root.var6) { _root.score = 6; } else if (_root.var71) { _root.score = 7; } else if (_root.var8) { _root.score = 8; } else if (_root.var9) { _root.score = 9; } else if (_root.var10) { _root.score = 10; } else if (_root.var11) { _root.score = 11; } else if (_root.var12) { _root.score = 12; } else if (_root.var13) { _root.score = 13; } else if (_root.var14) { _root.score = 14; } else if (_root.var15) { _root.score = 15; } else if (_root.var16) { _root.score = 16; } else if (_root.var17) { _root.score = 17; } else if (_root.var18) { _root.score = 18; } else if (_root.var19) { _root.score = 19; } else if (_root.var20) { _root.score = 20; } else if (_root.var21) { _root.score = 21; } else if (_root.var22) { _root.score = 22; } else if (_root.var23) { _root.score = 23; } else if (_root.var24) { _root.score = 24; } else if (_root.var25) { _root.score = 25; } else if (_root.var26) { _root.score = 26; } else if (_root.var27) { _root.score = 27; } else if (_root.var28) { _root.score = 28; } else if (_root.var29) { _root.score = 29; } else if (_root.var30) { _root.score = 30; } savefile.data.score = _root.score; savefile.flush(); radius = ball1._height / 2; SPACE_possible = true; redwall_movement = false; bluewall_movement = false; bluestart = false; blue_count = 0; _root.ball1.scan.bluemove.gotoAndStop(1); ball_location = true; blue_count = 0; gray_is_hit_red = false; black_is_hit_red = false; red_hit = false; _root.decoy2.gotoAndStop(1); _root.decoy.gotoAndStop(1); _root.ball1.gotoAndStop(1); _root.ball1.gotoAndStop(1); _root.ball2.gotoAndStop(1); _root.ball2.gotoAndStop(1); decoy._x = -1000; decoy2._x = -1000; ball_movement = true; finisher = false; timing = true; elapsedTime = 0; startTime = getTimer(); seconds = 0; redkey._x = 544.9; redkey._y = 484.4; bluekey1._x = 581.6; bluekey1._y = 457.9; bluekey2._x = 581.6; bluekey2._y = 416.4; bluekey3._x = 460.4; bluekey3._y = 416.4; bluekey4._x = 460.4; bluekey4._y = 460.4; bluekey5._x = 416.4; bluekey5._y = 457.9; bluekey6._x = 442.4; bluekey6._y = 347.4; bluekey7._x = 581.6; bluekey7._y = 348.4; bluekey8._x = 581.6; bluekey8._y = 287; bluekey9._x = 442.4; bluekey9._y = 289.4; bluekey10._x = 533.5; bluekey10._y = 289.4; bluekey11._x = 416.4; bluekey11._y = 221.4; bluekey12._x = 581.6; bluekey12._y = 221.4; bluekey13._x = 581.6; bluekey13._y = 62.5; bluewall._x = 550.4; bluewall._y = 68.8; redwall._x = 200.1; redwall._y = -141.6; ball1._x = 200; ball1._y = 474.9; ball2._x = 509.6; ball2._y = 484.4; youwin._x = 10000; winningscreen._x = 1000; finish._x = 467.5; finish._y = 106.9; } function ball1_old_location() { x_location = ball1._x; y_location = ball1._y; } function ball_locator() { ball_location = true; if (black_is_hit_red == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(3); _root.decoy.gotoAndStop(2); } if (gray_is_hit_red == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); } } stop(); _root.options._x = 28.1; _root.restartbutton._x = 41.9; _root.QW._x = 73.8; _root.P._x = 55.6; _root.BN._x = 66; totalRestarts = 0; _root.option.hintbox.gotoAndStop(1); _root.option.meter.gotoAndStop(9); restartLevel(); youwin.onPress = function () { gotoAndStop ("l8"); }; ball1.onEnterFrame = function () { if (this.hitTest(bluekey1)) { keystart = true; if (bluestart == true) { _root.ball1.scan.bluemove.gotoAndStop(_root.ball1.scan.bluemove._currentframe + 5); } else { _root.ball1.scan.gotoAndStop(4); _root.ball1.scan.bluemove.gotoAndStop(2); bluestart = true; } bluekey1._x = 100000 /* 0x0186A0 */; blue_count = blue_count + 1; } if (this.hitTest(bluekey2)) { keystart = true; bluekey2._x = 100000 /* 0x0186A0 */; blue_count = blue_count + 1; _root.ball1.scan.bluemove.gotoAndStop(_root.ball1.scan.bluemove._currentframe + 5); } if (this.hitTest(bluekey3)) { keystart = true; bluekey3._x = 100000 /* 0x0186A0 */; blue_count = blue_count + 1; _root.ball1.scan.bluemove.gotoAndStop(_root.ball1.scan.bluemove._currentframe + 5); } if (this.hitTest(bluekey4)) { keystart = true; bluekey4._x = 100000 /* 0x0186A0 */; blue_count = blue_count + 1; _root.ball1.scan.bluemove.gotoAndStop(_root.ball1.scan.bluemove._currentframe + 5); } if (this.hitTest(bluekey5)) { keystart = true; bluekey5._x = 100000 /* 0x0186A0 */; blue_count = blue_count + 1; _root.ball1.scan.bluemove.gotoAndStop(_root.ball1.scan.bluemove._currentframe + 5); } if (this.hitTest(bluekey6)) { keystart = true; bluekey6._x = 100000 /* 0x0186A0 */; blue_count = blue_count + 1; _root.ball1.scan.bluemove.gotoAndStop(_root.ball1.scan.bluemove._currentframe + 5); } if (this.hitTest(bluekey7)) { keystart = true; bluekey7._x = 100000 /* 0x0186A0 */; blue_count = blue_count + 1; _root.ball1.scan.bluemove.gotoAndStop(_root.ball1.scan.bluemove._currentframe + 5); } if (this.hitTest(bluekey8)) { keystart = true; bluekey8._x = 100000 /* 0x0186A0 */; blue_count = blue_count + 1; _root.ball1.scan.bluemove.gotoAndStop(_root.ball1.scan.bluemove._currentframe + 5); } if (this.hitTest(bluekey9)) { keystart = true; bluekey9._x = 100000 /* 0x0186A0 */; blue_count = blue_count + 1; _root.ball1.scan.bluemove.gotoAndStop(_root.ball1.scan.bluemove._currentframe + 5); } if (this.hitTest(bluekey10)) { keystart = true; bluekey10._x = 100000 /* 0x0186A0 */; blue_count = blue_count + 1; _root.ball1.scan.bluemove.gotoAndStop(_root.ball1.scan.bluemove._currentframe + 5); } if (this.hitTest(bluekey11)) { keystart = true; bluekey11._x = 100000 /* 0x0186A0 */; blue_count = blue_count + 1; _root.ball1.scan.bluemove.gotoAndStop(_root.ball1.scan.bluemove._currentframe + 6); } if (this.hitTest(bluekey12)) { keystart = true; bluekey12._x = 100000 /* 0x0186A0 */; blue_count = blue_count + 1; _root.ball1.scan.bluemove.gotoAndStop(_root.ball1.scan.bluemove._currentframe + 5); } if (this.hitTest(bluekey13)) { keystart = true; bluekey13._x = 100000 /* 0x0186A0 */; blue_count = blue_count + 1; _root.ball1.scan.bluemove.gotoAndStop(_root.ball1.scan.bluemove._currentframe + 6); } if (_root.ball1.scan.bluemove._currentframe == 64) { _root.ball1.scan.bluemove.gotoAndPlay(65); } if (this.hitTest(redkey)) { keystart = true; redkey._x = 10000; redwall_movement = true; _root.ball1.scan.gotoAndStop(3); } if (blue_count >= 13) { bluewall_movement = true; } if (scoresubmit9) { scoresubmit = false; } else if (scoresubmit9 == false) { scoresubmit = true; } if (this.hitTest(finish)) { timing = false; seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if ((score == 9) or scoresubmit) { level9_best_time = seconds; scoresubmit9 = true; savefile.data.scoresubmit9 = _root.scoresubmit9; savefile.flush(); } if (seconds < level9_best_time) { level9_best_time = seconds; } savefile.data.level9_best_time = _root.level9_best_time; savefile.flush(); if (_root.score <= 10) { _root.score = 10; } savefile.data.score = _root.score; savefile.flush(); SPACE_possible = false; ball_movement = false; win._x = Stage.width / 2; win._y = Stage.height / 2; _root.win.instructions.gotoAndStop(9); _root.win.meter.gotoAndStop(10); } if (Key.isDown(32) && (SPACE_possible == false)) { finisher = true; } if (finisher) { if (!Key.isDown(32)) { win._x = 10000; gotoAndStop ("l8"); finisher = false; SPACE_possible = true; } } }; _root.onEnterFrame = function () { seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if (!ball_movement) { timing = false; startTime = getTimer() - elapsedTime; } else { timing = true; } if (timing) { elapsedTime = getTimer() - startTime; } if (var9) { w_works = false; } else { w_works = true; } if (((option._x != (Stage.width / 2)) and (instruction._x != (Stage.width / 2))) and (win._x != (Stage.width / 2))) { if (Key.isDown(81)) { q_is_DOWN = true; } if (q_is_DOWN) { if (!Key.isDown(81)) { gotoAndStop ("l10"); q_is_DOWN = false; } } if (Key.isDown(87)) { w_is_DOWN = true; } if (w_is_DOWN) { if (!Key.isDown(87)) { if (w_works) { gotoAndStop ("l8"); } w_is_DOWN = false; } } staticframe = _root.ball1.scan.bluemove._currentframe; ballx = ball1._x; bally = ball1._y; decoyx = decoy._x; if (Key.isDown(78)) { n_is_DOWN = true; } if (n_is_DOWN) { if (!Key.isDown(78)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); n_is_DOWN = false; } } } if (Key.isDown(66)) { b_is_DOWN = true; } if (b_is_DOWN) { if (!Key.isDown(66)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); b_is_DOWN = false; } } } if (SPACE_possible) { if (Key.isDown(32)) { SPACE_is_DOWN = true; } if (SPACE_is_DOWN) { if (!Key.isDown(32)) { ball1_old_location(); ball1._x = ball2._x; ball1._y = ball2._y; ball2._x = x_location; ball2._y = y_location; SPACE_is_DOWN = false; } } } } if (bluewall_movement) { bluewall._y = bluewall._y - 2; } if (bluewall._y < 25.4) { bluewall_movement = false; } if (redwall_movement) { redwall._y = redwall._y + 0.5; } if (redwall._y > 212.9) { redwall_movement = false; soundstart = true; redwall._y = 212.9; } differencered = ((ball1._y - redwall._y) - (redwall._height / 2)) - (ball1._height / 2); differencered2 = ((ball2._y - redwall._y) - (redwall._height / 2)) - (ball2._height / 2); distance_between_bottomwall_and_ball = Math.abs(((bottomwall._y - ball1._y) - (bottomwall._height / 2)) - (ball1._height / 2)); distance_between_bottomwall_and_ball2 = Math.abs(((bottomwall._y - ball2._y) - (bottomwall._height / 2)) - (ball2._height / 2)); distance_x_between_redwall_and_ball = Math.abs(redwall._x - ball1._x); distance_x_between_redwall_and_ball2 = Math.abs(redwall._x - ball2._x); if ((((redwall_movement == true) and (differencered <= 0.2)) and (differencered >= -8)) and (distance_x_between_redwall_and_ball < ((ball1._width / 2) + (redwall._width / 2)))) { ball1._y = ((redwall._y + (redwall._height / 2)) + (ball1._height / 2)) + 0.2; } if ((((redwall_movement == true) and (differencered2 <= 0.2)) and (differencered2 >= -8)) and (distance_x_between_redwall_and_ball2 < ((ball2._width / 2) + (redwall._width / 2)))) { ball2._y = ((redwall._y + (redwall._height / 2)) + (ball2._height / 2)) + 0.2; } if (((((differencered <= 0.5) && (differencered >= -1)) && (distance_between_bottomwall_and_ball <= 1)) && (distance_x_between_redwall_and_ball < ((ball1._width / 2) + (redwall._width / 2)))) or ((((differencered2 <= 0.5) && (differencered2 >= -1)) && (distance_between_bottomwall_and_ball2 <= 0.5)) && (distance_x_between_redwall_and_ball2 < ((ball2._width / 2) + (redwall._width / 2))))) { red_hit = true; ball_location = false; ball1._y = 2000; ball2._y = 2000; } if (ball_location) { ball1_xlocation = ball1._x; ball1_ylocation = ball1._y; ball2_xlocation = ball2._x; ball2_ylocation = ball2._y; } else { explosionsound2 = true; if (ball1_xlocation < (Stage.width / 2)) { if (red_hit == true) { black_is_hit_red = true; } } else if (ball1_xlocation > (Stage.width / 2)) { if (red_hit == true) { gray_is_hit_red = true; } } ball_locator(); } };
Instance of Symbol 2077 MovieClip "ball1" in Frame 26
onClipEvent (enterFrame) { function move(xmove, ymove) { _x = (_x + xmove); _y = (_y + ymove); if (hitTest(_root.leftwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.middlewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.topwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.topwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.topwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.topwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bottomwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bottomwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bottomwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bottomwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.b1)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.b1.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.b1.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.b1.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.b1.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.b2)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.b2.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.b2.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.b2.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.b2.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.b3)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.b3.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.b3.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.b3.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.b3.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.b4)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.b4.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.b4.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.b4.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.b4.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.b5)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.b5.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.b5.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.b5.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.b5.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.b6)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.b6.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.b6.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.b6.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.b6.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.b7)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.b7.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.b7.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.b7.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.b7.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.b8)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.b8.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.b8.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.b8.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.b8.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.b9)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.b9.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.b9.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.b9.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.b9.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.b10)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.b10.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.b10.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.b10.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.b10.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.b11)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.b11.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.b11.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.b11.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.b11.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.b12)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.b12.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.b12.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.b12.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.b12.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.redwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.redwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.redwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.redwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.redwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bluewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bluewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bluewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bluewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bluewall.getBounds(_root).yMax) - 0.1)); } } } if (_root.ball_movement == true) { if (Key.isDown(37)) { move(-5, 0); } if (Key.isDown(39)) { move(5, 0); } if (Key.isDown(38)) { move(0, -5); } if (Key.isDown(40)) { move(0, 5); } } }
Frame 27
function restartLevel() { _root.scoresubmit3 = savefile.data.scoresubmit3; savefile.flush(); soundstart = false; small = false; if (((((((((((((((((((((((((((var4 != true) and (var5 != true)) and (var6 != true)) and (var7 != true)) and (var8 != true)) and (var9 != true)) and (var10 != true)) and (var11 != true)) and (var12 != true)) and (var13 != true)) and (var14 != true)) and (var15 != true)) and (var16 != true)) and (var17 != true)) and (var18 != true)) and (var19 != true)) and (var20 != true)) and (var21 != true)) and (var22 != true)) and (var23 != true)) and (var24 != true)) and (var25 != true)) and (var26 != true)) and (var27 != true)) and (var28 != true)) and (var29 != true)) and (var30 != true)) { var3 = true; } var2 = false; if (_root.var1) { _root.score = 1; } else if (_root.var2) { _root.score = 2; } else if (_root.var3) { _root.score = 3; } else if (_root.var4) { _root.score = 4; } else if (_root.var5) { _root.score = 5; } else if (_root.var6) { _root.score = 6; } else if (_root.var71) { _root.score = 7; } else if (_root.var8) { _root.score = 8; } else if (_root.var9) { _root.score = 9; } else if (_root.var10) { _root.score = 10; } else if (_root.var11) { _root.score = 11; } else if (_root.var12) { _root.score = 12; } else if (_root.var13) { _root.score = 13; } else if (_root.var14) { _root.score = 14; } else if (_root.var15) { _root.score = 15; } else if (_root.var16) { _root.score = 16; } else if (_root.var17) { _root.score = 17; } else if (_root.var18) { _root.score = 18; } else if (_root.var19) { _root.score = 19; } else if (_root.var20) { _root.score = 20; } else if (_root.var21) { _root.score = 21; } else if (_root.var22) { _root.score = 22; } else if (_root.var23) { _root.score = 23; } else if (_root.var24) { _root.score = 24; } else if (_root.var25) { _root.score = 25; } else if (_root.var26) { _root.score = 26; } else if (_root.var27) { _root.score = 27; } else if (_root.var28) { _root.score = 28; } else if (_root.var29) { _root.score = 29; } else if (_root.var30) { _root.score = 30; } savefile.data.score = _root.score; savefile.flush(); radius = ball1._height / 2; SPACE_possible = true; greenwall_movement = false; bluewall_movement = false; ball_location = true; gray_is_hit_blue = false; black_is_hit_blue = false; blue_hit = false; _root.decoy2.gotoAndStop(1); _root.decoy.gotoAndStop(1); _root.ball1.gotoAndStop(1); _root.ball1.gotoAndStop(1); _root.ball2.gotoAndStop(1); _root.ball2.gotoAndStop(1); decoy._x = -1000; decoy2._x = -1000; ball_movement = true; finisher = false; timing = true; elapsedTime = 0; startTime = getTimer(); seconds = 0; bluekey._x = 200; bluekey._y = 430.6; greenkey._x = 500; greenkey._y = 100; bluewall._x = 199.9; bluewall._y = 223.8; greenwall._x = 199.9; greenwall._y = 176.1; ball1._x = 200; ball1._y = 474.9; ball2._x = 500; ball2._y = 474.9; lr._x = 291.9; lr._y = 419.4; ll._x = 108; ll._y = 419.4; youwin._x = 10000; winningscreen._x = 1000; finish._x = 200; finish._y = 99; } function ball1_old_location() { x_location = ball1._x; y_location = ball1._y; } function ball_locator() { ball_location = true; if (black_is_hit_blue == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(3); _root.decoy.gotoAndStop(2); } if (gray_is_hit_blue == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); } } stop(); _root.options._x = 28.1; _root.restartbutton._x = 41.9; _root.QW._x = 73.8; _root.P._x = 55.6; _root.BN._x = 66; totalRestarts = 0; _root.option.hintbox.gotoAndStop(1); _root.option.meter.gotoAndStop(3); restartLevel(); youwin.onPress = function () { gotoAndStop ("l6"); }; ball1.onEnterFrame = function () { if (this.hitTest(bluekey)) { keystart = true; bluekey._x = 10000; bluewall_movement = true; _root.ball1.scan.gotoAndStop(4); _root.ball1.scan.bluemove.gotoAndPlay(1); } if (this.hitTest(greenkey)) { keystart = true; greenkey._x = 10000; greenwall_movement = true; _root.ball1.scan.gotoAndStop(2); } if (scoresubmit3) { scoresubmit = false; } else if (scoresubmit3 == false) { scoresubmit = true; } if (this.hitTest(finish)) { timing = false; seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if ((score == 3) or scoresubmit) { level3_best_time = seconds; scoresubmit3 = true; savefile.data.scoresubmit3 = _root.scoresubmit3; savefile.flush(); } if (seconds < level3_best_time) { level3_best_time = seconds; } savefile.data.level3_best_time = _root.level3_best_time; savefile.flush(); if (_root.score <= 4) { _root.score = 4; } savefile.data.score = _root.score; savefile.flush(); SPACE_possible = false; ball_movement = false; win._x = Stage.width / 2; win._y = Stage.height / 2; _root.win.instructions.gotoAndStop(3); _root.win.meter.gotoAndStop(4); } if (Key.isDown(32) && (SPACE_possible == false)) { finisher = true; } if (finisher) { if (!Key.isDown(32)) { win._x = 100000 /* 0x0186A0 */; gotoAndStop ("l6"); finisher = false; SPACE_possible = true; } } }; _root.onEnterFrame = function () { seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if (!ball_movement) { timing = false; startTime = getTimer() - elapsedTime; } else { timing = true; } if (timing) { elapsedTime = getTimer() - startTime; } if (var3) { w_works = false; } else { w_works = true; } if (((option._x != (Stage.width / 2)) and (instruction._x != (Stage.width / 2))) and (win._x != (Stage.width / 2))) { if (Key.isDown(81)) { q_is_DOWN = true; } if (q_is_DOWN) { if (!Key.isDown(81)) { gotoAndStop ("l3"); q_is_DOWN = false; } } if (Key.isDown(87)) { w_is_DOWN = true; } if (w_is_DOWN) { if (!Key.isDown(87)) { if (w_works) { gotoAndStop ("l6"); } w_is_DOWN = false; } } ballx = ball1._x; bally = ball1._y; decoyx = decoy._x; if (Key.isDown(78)) { n_is_DOWN = true; } if (n_is_DOWN) { if (!Key.isDown(78)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); n_is_DOWN = false; } } } if (Key.isDown(66)) { b_is_DOWN = true; } if (b_is_DOWN) { if (!Key.isDown(66)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); b_is_DOWN = false; } } } if (SPACE_possible) { if (Key.isDown(32)) { SPACE_is_DOWN = true; } if (SPACE_is_DOWN) { if (!Key.isDown(32)) { ball1_old_location(); ball1._x = ball2._x; ball1._y = ball2._y; ball2._x = x_location; ball2._y = y_location; SPACE_is_DOWN = false; } } } } if (bluewall_movement) { bluewall._x = bluewall._x + 6; } if (bluewall._x > 500) { bluewall_movement = false; bluewall._x = 500; soundstart = true; } if (greenwall_movement) { greenwall._x = greenwall._x - 2; } if (greenwall._x < -5) { greenwall_movement = false; } differenceblue = ((ball1._x - bluewall._x) - (bluewall._width / 2)) - (ball1._width / 2); differenceblue2 = ((ball2._x - bluewall._x) - (bluewall._width / 2)) - (ball2._width / 2); distance_between_rightwall_and_ball = Math.abs(((rightwall._x - ball1._x) - (rightwall._width / 2)) - (ball1._width / 2)); distance_between_rightwall_and_ball2 = Math.abs(((rightwall._x - ball2._x) - (rightwall._width / 2)) - (ball2._width / 2)); distance_y_between_bluewall_and_ball = Math.abs(bluewall._y - ball1._y); distance_y_between_bluewall_and_ball2 = Math.abs(bluewall._y - ball2._y); if ((((bluewall_movement == true) and (differenceblue <= 1)) and (differenceblue >= -8)) and (distance_y_between_bluewall_and_ball < ((ball1._height / 2) + (bluewall._height / 2)))) { ball1._x = ((bluewall._x + (bluewall._width / 2)) + (ball1._width / 2)) + 1; } if ((((bluewall_movement == true) and (differenceblue2 <= 1)) and (differenceblue2 >= -8)) and (distance_y_between_bluewall_and_ball2 < ((ball2._height / 2) + (bluewall._height / 2)))) { ball2._x = ((bluewall._x + (bluewall._width / 2)) + (ball2._width / 2)) + 1; } if (((((differenceblue <= 2) && (differenceblue >= -20)) && (distance_between_rightwall_and_ball <= 10)) && (distance_y_between_bluewall_and_ball < ((ball1._height / 2) + (bluewall._height / 2)))) or ((((differenceblue2 <= 2) && (differenceblue2 >= -8)) && (distance_between_rightwall_and_ball2 <= 5)) && (distance_y_between_bluewall_and_ball2 < ((ball2._height / 2) + (bluewall._height / 2))))) { blue_hit = true; ball_location = false; ball1._x = 2000; ball2._x = 2000; } if (ball_location) { ball1_xlocation = ball1._x; ball1_ylocation = ball1._y; ball2_xlocation = ball2._x; ball2_ylocation = ball2._y; } else { explosionsound2 = true; if (ball1_xlocation < (Stage.width / 2)) { if (blue_hit == true) { gray_is_hit_blue = true; } } else if (ball1_xlocation > (Stage.width / 2)) { if (blue_hit == true) { black_is_hit_blue = true; } } ball_locator(); } };
Instance of Symbol 2172 MovieClip "ball1" in Frame 27
onClipEvent (enterFrame) { function move(xmove, ymove) { _x = (_x + xmove); _y = (_y + ymove); if (hitTest(_root.leftwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.middlewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.topwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.topwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.topwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.topwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bottomwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bottomwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bottomwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bottomwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.ll)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.ll.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.ll.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.ll.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.ll.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.lr)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.lr.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.lr.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.lr.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.lr.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.greenwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.greenwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.greenwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.greenwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.greenwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bluewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bluewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bluewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bluewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bluewall.getBounds(_root).yMax) - 0.1)); } } } if (_root.ball_movement == true) { if (Key.isDown(37)) { move(-5, 0); } if (Key.isDown(39)) { move(5, 0); } if (Key.isDown(38)) { move(0, -5); } if (Key.isDown(40)) { move(0, 5); } } }
Frame 28
function restartLevel() { _root.scoresubmit13 = savefile.data.scoresubmit13; savefile.flush(); soundstart = false; small = false; if (((((((((((((((((var14 != true) and (var15 != true)) and (var16 != true)) and (var17 != true)) and (var18 != true)) and (var19 != true)) and (var20 != true)) and (var21 != true)) and (var22 != true)) and (var23 != true)) and (var24 != true)) and (var25 != true)) and (var26 != true)) and (var27 != true)) and (var28 != true)) and (var29 != true)) and (var30 != true)) { var13 = true; } var12 = false; if (_root.var1) { _root.score = 1; } else if (_root.var2) { _root.score = 2; } else if (_root.var3) { _root.score = 3; } else if (_root.var4) { _root.score = 4; } else if (_root.var5) { _root.score = 5; } else if (_root.var6) { _root.score = 6; } else if (_root.var71) { _root.score = 7; } else if (_root.var8) { _root.score = 8; } else if (_root.var9) { _root.score = 9; } else if (_root.var10) { _root.score = 10; } else if (_root.var11) { _root.score = 11; } else if (_root.var12) { _root.score = 12; } else if (_root.var13) { _root.score = 13; } else if (_root.var14) { _root.score = 14; } else if (_root.var15) { _root.score = 15; } else if (_root.var16) { _root.score = 16; } else if (_root.var17) { _root.score = 17; } else if (_root.var18) { _root.score = 18; } else if (_root.var19) { _root.score = 19; } else if (_root.var20) { _root.score = 20; } else if (_root.var21) { _root.score = 21; } else if (_root.var22) { _root.score = 22; } else if (_root.var23) { _root.score = 23; } else if (_root.var24) { _root.score = 24; } else if (_root.var25) { _root.score = 25; } else if (_root.var26) { _root.score = 26; } else if (_root.var27) { _root.score = 27; } else if (_root.var28) { _root.score = 28; } else if (_root.var29) { _root.score = 29; } else if (_root.var30) { _root.score = 30; } savefile.data.score = _root.score; savefile.flush(); radius = ball1._height / 2; SPACE_possible = true; greenwall_movement = false; pinkwall_movement = false; orangewall_movement = false; redwall_movement = false; ball_location = true; black_is_hit_green = false; gray_is_hit_green = false; green_hit = false; ball1_is_pushed_by_green_wall = false; ball2_is_pushed_by_green_wall = false; pink_is_attached_to_crate1 = true; _root.decoy2.gotoAndStop(1); _root.decoy.gotoAndStop(1); _root.ball1.gotoAndStop(1); _root.ball1.gotoAndStop(1); _root.ball2.gotoAndStop(1); _root.ball2.gotoAndStop(1); _root.crate1.gotoAndStop(1); _root.crate2.gotoAndStop(1); decoy._x = -1000; decoy2._x = -1000; ball_movement = true; finisher = false; _root.hit_crate1 = false; _root.ball1_and_crate1_rightside_touching = false; _root.ball1_and_crate1_leftside_touching = false; _root.ball2_and_crate1_rightside_touching = false; _root.ball2_and_crate1_leftside_touching = false; _root.cant_move_crate1_right_against_right_wall = false; _root.cant_move_crate1_right_against_green_wall = false; _root.cant_move_crate1_right_against_rr = false; _root.cant_move_crate1_right_against_rbr = false; _root.cant_move_crate1_right_against_pink_wall = false; _root.cant_move_crate1_left_against_middle_wall = false; _root.cant_move_crate1_left_against_green_wall = false; _root.cant_move_crate1_left_against_rl = false; _root.cant_move_crate1_down_against_green_wall = false; _root.cant_move_crate1_down_against_bottom_wall = false; _root.cant_move_crate1_down_against_rl = false; _root.cant_move_crate1_down_against_rr = false; _root.cant_move_crate1_down_against_orange_wall = false; _root.cant_move_crate1_down_against_rbr = false; _root.cant_move_crate1_up_against_green_wall = false; _root.cant_move_crate1_up_against_top_wall = false; _root.cant_move_crate1_up_against_rl = false; _root.cant_move_crate1_up_against_rr = false; _root.green_wall_and_crate1_rightside_touching = false; _root.crate1_against_green_wall_boundaries_prevention = false; _root.ball1_is_pushed_by_crate1_is_pushed_by_green_wall = false; _root.ball2_is_pushed_by_crate1_is_pushed_by_green_wall = false; _root.crate1_is_pushed_by_ball1_is_pushed_by_greenwall = false; _root.crate1_is_pushed_by_ball2_is_pushed_by_greenwall = false; _root.crate1_is_pushed_by_green_wall = false; timing = true; elapsedTime = 0; startTime = getTimer(); seconds = 0; crate1._x = 540.6; crate1._y = 97.5; crate2._x = 200; crate2._y = 323.4; greenkey._x = 200; greenkey._y = 96.3; orangekey._x = 200; orangekey._y = 250; pinkkey._x = 500; pinkkey._y = 168.6; pinkkey._width = 23.1; pinkkey._height = 21.1; pinkwall._x = 496.4; pinkwall._y = 463.2; redkey._x = 574; redkey._y = 255; redwall._x = 200.1; redwall._y = 172.7; orangewall._x = 500.1; orangewall._y = 208.4; ball1._x = 200; ball1._y = 466.9; ball2._x = 456.6; ball2._y = 96.3; greenwall._x = 642.2; greenwall._y = 301.6; youwin._x = 10000; winningscreen._x = 1000; finish._x = 560.6; finish._y = 462.9; } function ball1_old_location() { x_location = ball1._x; y_location = ball1._y; } function ball_locator() { ball_location = true; if (black_is_hit_green == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy.gotoAndStop(2); _root.decoy2.gotoAndStop(3); } if (gray_is_hit_green == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); } } stop(); _root.options._x = 28.1; _root.restartbutton._x = 41.9; _root.QW._x = 73.8; _root.P._x = 55.6; _root.BN._x = 66; totalRestarts = 0; _root.option.hintbox.gotoAndStop(1); _root.option.meter.gotoAndStop(13); restartLevel(); youwin.onPress = function () { gotoAndStop ("l21"); }; ball1.onEnterFrame = function () { if (this.hitTest(pinkkey)) { keystart = true; pinkkey._x = 100000 /* 0x0186A0 */; pinkwall_movement = true; _root.ball1.scan.gotoAndStop(5); } if (this.hitTest(redkey)) { keystart = true; redkey._x = 100000 /* 0x0186A0 */; redwall_movement = true; _root.ball1.scan.gotoAndStop(3); } if (this.hitTest(greenkey)) { keystart = true; greenkey._x = 100000 /* 0x0186A0 */; greenwall_movement = true; _root.ball1.scan.gotoAndStop(2); } if (this.hitTest(orangekey)) { keystart = true; orangekey._x = 100000 /* 0x0186A0 */; orangewall_movement = true; _root.ball1.scan.gotoAndStop(6); } if (scoresubmit13) { scoresubmit = false; } else if (scoresubmit13 == false) { scoresubmit = true; } if (this.hitTest(finish)) { timing = false; seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if ((score == 13) or scoresubmit) { level13_best_time = seconds; scoresubmit13 = true; savefile.data.scoresubmit13 = _root.scoresubmit13; savefile.flush(); } if (seconds < level13_best_time) { level13_best_time = seconds; } savefile.data.level13_best_time = _root.level13_best_time; savefile.flush(); if (_root.score <= 14) { _root.score = 14; } savefile.data.score = _root.score; savefile.flush(); SPACE_possible = false; ball_movement = false; win._x = Stage.width / 2; win._y = Stage.height / 2; _root.win.instructions.gotoAndStop(13); _root.win.meter.gotoAndStop(14); } if (Key.isDown(32) && (SPACE_possible == false)) { finisher = true; } if (finisher) { if (!Key.isDown(32)) { win._x = 10000; gotoAndStop ("l21"); finisher = false; SPACE_possible = true; } } }; _root.onEnterFrame = function () { seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if (!ball_movement) { timing = false; startTime = getTimer() - elapsedTime; } else { timing = true; } if (timing) { elapsedTime = getTimer() - startTime; } if (var13) { w_works = false; } else { w_works = true; } if (((option._x != (Stage.width / 2)) and (instruction._x != (Stage.width / 2))) and (win._x != (Stage.width / 2))) { if (Key.isDown(81)) { q_is_DOWN = true; } if (q_is_DOWN) { if (!Key.isDown(81)) { gotoAndStop ("l13"); q_is_DOWN = false; } } if (Key.isDown(87)) { w_is_DOWN = true; } if (w_is_DOWN) { if (!Key.isDown(87)) { if (w_works) { gotoAndStop ("l21"); } w_is_DOWN = false; } } ballx = ball1._x; bally = ball1._y; decoyx = decoy._x; if (Key.isDown(78)) { n_is_DOWN = true; } if (n_is_DOWN) { if (!Key.isDown(78)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); n_is_DOWN = false; } } } if (Key.isDown(66)) { b_is_DOWN = true; } if (b_is_DOWN) { if (!Key.isDown(66)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); b_is_DOWN = false; } } } if (SPACE_possible) { if (Key.isDown(32)) { SPACE_is_DOWN = true; } if (SPACE_is_DOWN) { if (!Key.isDown(32)) { ball1_old_location(); ball1._x = ball2._x; ball1._y = ball2._y; ball2._x = x_location; ball2._y = y_location; SPACE_is_DOWN = false; } } } } if (pink_is_attached_to_crate1 == true) { pinkkey._x = crate1._x; pinkkey._y = crate1._y; } ballx = ball1._x; bally = ball1._y; if (greenwall_movement) { greenwall._x = greenwall._x - 0.5; } if (greenwall._x < 500) { greenwall_movement = false; soundstart = true; greenwall._x = 500; } if (pinkwall_movement) { pinkwall._y = pinkwall._y + 1; } if (pinkwall._y > 560) { pinkwall_movement = false; } if (orangewall_movement) { orangewall._x = orangewall._x + 2; } if (orangewall._x > 700) { orangewall_movement = false; } if (redwall_movement) { redwall._x = redwall._x - 1; } differencegreen = ((greenwall._x - (greenwall._width / 2)) - (ball1._width / 2)) - ball1._x; differencegreen2 = ((greenwall._x - (greenwall._width / 2)) - (ball2._width / 2)) - ball2._x; distance_between_rightmiddlewall_and_ball = Math.abs(((ball1._x - middlewall._x) - (middlewall._width / 2)) - (ball1._width / 2)); distance_between_rightmiddlewall_and_ball2 = Math.abs(((ball2._x - middlewall._x) - (middlewall._width / 2)) - (ball2._width / 2)); distance_y_between_greenwall_and_ball = Math.abs(greenwall._y - ball1._y); distance_y_between_greenwall_and_ball2 = Math.abs(greenwall._y - ball2._y); if ((((greenwall_movement == true) and (differencegreen <= 1)) and (differencegreen >= -8)) and (distance_y_between_greenwall_and_ball < ((ball1._height / 2) + (greenwall._height / 2)))) { ball1._x = ((greenwall._x - (greenwall._width / 2)) - (ball1._width / 2)) - 0.2; ball1_is_pushed_by_green_wall = true; } else { ball1_is_pushed_by_green_wall = false; } if ((((greenwall_movement == true) and (differencegreen2 <= 0.2)) and (differencegreen2 >= -8)) and (distance_y_between_greenwall_and_ball2 < ((ball2._height / 2) + (greenwall._height / 2)))) { ball2._x = ((greenwall._x - (greenwall._width / 2)) - (ball2._width / 2)) - 0.2; ball2_is_pushed_by_green_wall = true; } else { ball2_is_pushed_by_green_wall = false; } if ((((differencegreen <= 0.5) && (distance_between_rightmiddlewall_and_ball <= 0.5)) && (distance_y_between_greenwall_and_ball < ((ball1._height / 2) + (greenwall._height / 2)))) or (((differencegreen2 <= 0.5) && (distance_between_rightmiddlewall_and_ball2 <= 0.5)) && (distance_y_between_greenwall_and_ball2 < ((ball2._height / 2) + (greenwall._height / 2))))) { green_hit = true; cant_move_crate1_up_against_green_wall = false; cant_move_crate1_down_against_green_wall = false; ball_location = false; ball1._x = 2000; ball2._x = 2000; } if ((((((ball1._y > Stage.height) and (ball1._y < 1000)) or ((ball1._y < 0) and (ball1._y > -1000))) or ((ball1._x > Stage.width) and (ball1._x < 1000))) or ((ball1._x < 0) and (ball1._x > -1000))) and (greenwall._x >= ((Stage.width / 2) + (greenwall._width / 2)))) { ball_location = false; cant_move_crate1_up_against_green_wall = false; cant_move_crate1_down_against_green_wall = false; green_hit = true; } if (ball_location) { ball1_xlocation = ball1._x; ball1_ylocation = ball1._y; ball2_xlocation = ball2._x; ball2_ylocation = ball2._y; } else { explosionsound2 = true; if (ball1_xlocation < (Stage.width / 2)) { if (green_hit == true) { gray_is_hit_green = true; } } else if (ball1_xlocation > (Stage.width / 2)) { if (green_hit == true) { black_is_hit_green = true; } } ball_locator(); } };
Instance of Symbol 1071 MovieClip "crate2" in Frame 28
onClipEvent (load) { _root.cant_move_crate2_down_against_bottom_wall = false; _root.cant_move_crate2_down_against_ll = false; _root.cant_move_crate2_down_against_lr = false; _root.cant_move_crate2_up_against_top_wall = false; _root.cant_move_crate2_up_against_red_wall = false; _root.cant_move_crate2_up_against_ll = false; _root.cant_move_crate2_up_against_lr = false; _root.cant_move_crate2_left_against_left_wall = false; _root.cant_move_crate2_left_against_ll = false; _root.cant_move_crate2_right_against_middle_wall = false; _root.cant_move_crate2_right_against_lr = false; } onClipEvent (enterFrame) { if (hitTest(_root.leftwall)) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate2_left_against_left_wall = true; } if ((((_x - _root.leftwall._x) - (_root.leftwall._width / 2)) - (_width / 2)) <= 0.3) { _root.cant_move_crate2_left_against_left_wall = true; } else { _root.cant_move_crate2_left_against_left_wall = false; } if (hitTest(_root.ll) and (_root.moveleft == true)) { _x = (_x - ((getBounds(_root).xMin - _root.ll.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate1_left_against_ll = true; } if (((Math.abs(((_x - _root.ll._x) - (_root.ll._width / 2)) - (_width / 2)) <= 0.5) and (_y < ((_root.ll._y + (_root.ll._height / 2)) + (_height / 2)))) and (_y > ((_root.ll._y - (_root.ll._height / 2)) - (_height / 2)))) { _root.cant_move_crate1_left_against_ll = true; } else { _root.cant_move_crate1_left_against_ll = false; } if (hitTest(_root.middlewall)) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate2_right_against_middle_wall = true; } if ((((_root.middlewall._x - _x) - (_root.middlewall._width / 2)) - (_width / 2)) <= 0.3) { _root.cant_move_crate2_right_against_middle_wall = true; } else { _root.cant_move_crate2_right_against_middle_wall = false; } if (hitTest(_root.lr) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.lr.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate1_right_against_lr = true; } if (((Math.abs(((_root.lr._x - _x) - (_root.lr._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.lr._y + (_root.lr._height / 2)) + (_height / 2)))) and (_y > ((_root.lr._y - (_root.lr._height / 2)) - (_height / 2)))) { _root.cant_move_crate1_right_against_lr = true; } else { _root.cant_move_crate1_right_against_lr = false; } if (hitTest(_root.topwall)) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate2_up_against_top_wall = true; } if ((((_y - _root.topwall._y) - (_root.topwall._height / 2)) - (_height / 2)) <= 0.3) { _root.cant_move_crate2_up_against_top_wall = true; } else { _root.cant_move_crate2_up_against_top_wall = false; } if (hitTest(_root.redwall)) { _y = (_y - ((getBounds(_root).yMin - _root.redwall.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate2_up_against_red_wall = true; } if ((((((_y - _root.redwall._y) - (_root.redwall._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.redwall._x + (_root.redwall._width / 2)) + (_width / 2)))) and (_x > ((_root.redwall._x - (_root.redwall._width / 2)) - (_width / 2)))) { _root.cant_move_crate2_up_against_red_wall = true; } else { _root.cant_move_crate2_up_against_red_wall = false; } if (hitTest(_root.ll) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.ll.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate1_up_against_ll = true; } if (((Math.abs(((_y - _root.ll._y) - (_root.ll._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.ll._x + (_root.ll._width / 2)) + (_width / 2)))) and (_x > ((_root.ll._x - (_root.ll._width / 2)) - (_width / 2)))) { _root.cant_move_crate1_up_against_ll = true; } else { _root.cant_move_crate1_up_against_ll = false; } if (hitTest(_root.lr) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.lr.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate1_up_against_lr = true; } if (((Math.abs(((_y - _root.lr._y) - (_root.lr._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.lr._x + (_root.lr._width / 2)) + (_width / 2)))) and (_x > ((_root.lr._x - (_root.lr._width / 2)) - (_width / 2)))) { _root.cant_move_crate1_up_against_lr = true; } else { _root.cant_move_crate1_up_against_lr = false; } if (hitTest(_root.bottomwall)) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate2_down_against_bottom_wall = true; } if ((((_root.bottomwall._y - _y) - (_root.bottomwall._height / 2)) - (_height / 2)) <= 0.3) { _root.cant_move_crate2_down_against_bottom_wall = true; } else { _root.cant_move_crate2_down_against_bottom_wall = false; } if (hitTest(_root.ll) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.ll.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate1_down_against_ll = true; } if (((Math.abs(((_root.ll._y - _y) - (_root.ll._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.ll._x + (_root.ll._width / 2)) + (_width / 2)))) and (_x > ((_root.ll._x - (_root.ll._width / 2)) - (_width / 2)))) { _root.cant_move_crate1_down_against_ll = true; } else { _root.cant_move_crate1_down_against_ll = false; } if (hitTest(_root.lr) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.lr.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate1_down_against_lr = true; } if (((Math.abs(((_root.lr._y - _y) - (_root.lr._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.lr._x + (_root.lr._width / 2)) + (_width / 2)))) and (_x > ((_root.lr._x - (_root.lr._width / 2)) - (_width / 2)))) { _root.cant_move_crate1_down_against_lr = true; } else { _root.cant_move_crate1_down_against_lr = false; } }
Instance of Symbol 1071 MovieClip "crate1" in Frame 28
onClipEvent (load) { _root.hit_crate1 = false; _root.ball1_and_crate1_rightside_touching = false; _root.ball1_and_crate1_leftside_touching = false; _root.ball2_and_crate1_rightside_touching = false; _root.ball2_and_crate1_leftside_touching = false; _root.cant_move_crate1_right_against_right_wall = false; _root.cant_move_crate1_right_against_green_wall = false; _root.cant_move_crate1_right_against_rr = false; _root.cant_move_crate1_right_against_rbr = false; _root.cant_move_crate1_right_against_pink_wall = false; _root.cant_move_crate1_left_against_middle_wall = false; _root.cant_move_crate1_left_against_green_wall = false; _root.cant_move_crate1_left_against_rl = false; _root.cant_move_crate1_down_against_green_wall = false; _root.cant_move_crate1_down_against_bottom_wall = false; _root.cant_move_crate1_down_against_rl = false; _root.cant_move_crate1_down_against_rr = false; _root.cant_move_crate1_down_against_orange_wall = false; _root.cant_move_crate1_down_against_rbr = false; _root.cant_move_crate1_up_against_green_wall = false; _root.cant_move_crate1_up_against_top_wall = false; _root.cant_move_crate1_up_against_rl = false; _root.cant_move_crate1_up_against_rr = false; _root.green_wall_and_crate1_rightside_touching = false; _root.crate1_against_green_wall_boundaries_prevention = false; _root.ball1_is_pushed_by_crate1_is_pushed_by_green_wall = false; _root.ball2_is_pushed_by_crate1_is_pushed_by_green_wall = false; _root.crate1_is_pushed_by_ball1_is_pushed_by_greenwall = false; _root.crate1_is_pushed_by_ball2_is_pushed_by_greenwall = false; _root.crate1_is_pushed_by_green_wall = false; } onClipEvent (enterFrame) { _root.distance_y_between_ball1_and_crate1 = Math.abs(_root.ball1._y - _y); _root.difference_x_ball1_with_crate1_rightside = ((_root.ball1._x - _x) - (_width / 2)) - (_root.ball1._width / 2); _root.difference_x_ball1_with_crate1_leftside = ((_x - _root.ball1._x) - (_width / 2)) - (_root.ball1._width / 2); _root.distance_y_between_ball2_and_crate1 = Math.abs(_root.ball2._y - _y); _root.difference_x_ball2_with_crate1_rightside = ((_root.ball2._x - _x) - (_width / 2)) - (_root.ball2._width / 2); _root.difference_x_ball2_with_crate1_leftside = ((_x - _root.ball2._x) - (_width / 2)) - (_root.ball2._width / 2); _root.difference_x_green_with_crate1_left = ((_x - (_width / 2)) - _root.greenwall._x) - (_root.greenwall._width / 2); _root.difference_x_green_with_crate1_right = ((_root.greenwall._x - (_root.greenwall._width / 2)) - _x) - (_width / 2); _root.difference_y_green_with_crate1_up = ((_y - (_height / 2)) - _root.greenwall._y) - (_root.greenwall._height / 2); _root.difference_y_green_with_crate1_down = ((_root.greenwall._y - (_root.greenwall._height / 2)) - _y) - (_height / 2); _root.distance_x_between_greenwall_and_crate1 = Math.abs(_root.greenwall._x - _x); _root.distance_y_between_greenwall_and_crate1 = Math.abs(_root.greenwall._y - _y); _root.difference_x_crate1_leftside_with_middlewall = ((_x - (_width / 2)) - (_root.middlewall._width / 2)) - _root.middlewall._x; _root.difference_x_crate1_leftside_with_bluewall2 = ((_x - (_width / 2)) - (_root.bluewall2._width / 2)) - _root.bluewall2._x; _root.distance_x_between_middlewall_and_crate1 = Math.abs(_root.middlewall._x - _x); _root.difference_y_middlewall_insidebottom_with_crate1_down = ((423.8 - (_root.middlewall.middlewall_insidebottom._height / 2)) - (_height / 2)) - _y; _root.difference_y_middlewall_insidetop_with_crate1_up = ((_y - 125.8) - (_root.middlewall.middlewall_insidetop._height / 2)) - (_height / 2); if (hitTest(_root.middlewall)) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate2_left_against_middle_wall = true; } if ((((_x - _root.middlewall._x) - (_root.middlewall._width / 2)) - (_width / 2)) <= 0.3) { _root.cant_move_crate2_left_against_middle_wall = true; } else { _root.cant_move_crate2_left_against_middle_wall = false; } if (hitTest(_root.rl) and (_root.moveleft == true)) { _x = (_x - ((getBounds(_root).xMin - _root.rl.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate1_left_against_rl = true; } if (((Math.abs(((_x - _root.rl._x) - (_root.rl._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.rl._y + (_root.rl._height / 2)) + (_height / 2)))) and (_y > ((_root.rl._y - (_root.rl._height / 2)) - (_height / 2)))) { _root.cant_move_crate1_left_against_rl = true; } else { _root.cant_move_crate1_left_against_rl = false; } if (hitTest(_root.rightwall)) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate1_right_against_right_wall = true; } if ((((_root.rightwall._x - _x) - (_root.rightwall._width / 2)) - (_width / 2)) <= 0.3) { _root.cant_move_crate1_right_against_right_wall = true; } else { _root.cant_move_crate1_right_against_right_wall = false; } if (hitTest(_root.rbr) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.rbr.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate1_right_against_rbr = true; } if (((Math.abs(((_root.rbr._x - _x) - (_root.rbr._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.rbr._y + (_root.rbr._height / 2)) + (_height / 2)))) and (_y > ((_root.rbr._y - (_root.rbr._height / 2)) - (_height / 2)))) { _root.cant_move_crate1_right_against_rbr = true; } else { _root.cant_move_crate1_right_against_rbr = false; } if (hitTest(_root.rr) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.rr.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate1_right_against_rr = true; } if (((Math.abs(((_root.rr._x - _x) - (_root.rr._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.rr._y + (_root.rr._height / 2)) + (_height / 2)))) and (_y > ((_root.rr._y - (_root.rr._height / 2)) - (_height / 2)))) { _root.cant_move_crate1_right_against_rr = true; } else { _root.cant_move_crate1_right_against_rr = false; } if (hitTest(_root.pinkwall) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.pinkwall.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate1_right_against_pink_wall = true; } if (((Math.abs(((_root.pinkwall._x - _x) - (_root.pinkwall._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.pinkwall._y + (_root.pinkwall._height / 2)) + (_height / 2)))) and (_y > ((_root.pinkwall._y - (_root.pinkwall._height / 2)) - (_height / 2)))) { _root.cant_move_crate1_right_against_pink_wall = true; } else { _root.cant_move_crate1_right_against_pink_wall = false; } if (hitTest(_root.topwall)) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate1_up_against_top_wall = true; } if ((((_y - _root.topwall._y) - (_root.topwall._height / 2)) - (_height / 2)) <= 0.3) { _root.cant_move_crate1_up_against_top_wall = true; } else { _root.cant_move_crate1_up_against_top_wall = false; } if (hitTest(_root.rr) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.rr.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate1_up_against_rr = true; } if (((Math.abs(((_y - _root.rr._y) - (_root.rr._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.rr._x + (_root.rr._width / 2)) + (_width / 2)))) and (_x > ((_root.rr._x - (_root.rr._width / 2)) - (_width / 2)))) { _root.cant_move_crate1_up_against_rr = true; } else { _root.cant_move_crate1_up_against_rr = false; } if (hitTest(_root.rl) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.rl.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate1_up_against_rl = true; } if (((Math.abs(((_y - _root.rl._y) - (_root.rl._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.rl._x + (_root.rl._width / 2)) + (_width / 2)))) and (_x > ((_root.rl._x - (_root.rl._width / 2)) - (_width / 2)))) { _root.cant_move_crate1_up_against_rl = true; } else { _root.cant_move_crate1_up_against_rl = false; } if (hitTest(_root.bottomwall)) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate1_down_against_bottom_wall = true; } if ((((_root.bottomwall._y - _y) - (_root.bottomwall._height / 2)) - (_height / 2)) <= 0.3) { _root.cant_move_crate1_down_against_bottom_wall = true; } else { _root.cant_move_crate1_down_against_bottom_wall = false; } if (hitTest(_root.rl) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.rl.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate1_down_against_rl = true; } if (((Math.abs(((_root.rl._y - _y) - (_root.rl._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.rl._x + (_root.rl._width / 2)) + (_width / 2)))) and (_x > ((_root.rl._x - (_root.rl._width / 2)) - (_width / 2)))) { _root.cant_move_crate1_down_against_rl = true; } else { _root.cant_move_crate1_down_against_rl = false; } if (hitTest(_root.rr) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.rr.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate1_down_against_rr = true; } if (((Math.abs(((_root.rr._y - _y) - (_root.rr._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.rr._x + (_root.rr._width / 2)) + (_width / 2)))) and (_x > ((_root.rr._x - (_root.rr._width / 2)) - (_width / 2)))) { _root.cant_move_crate1_down_against_rr = true; } else { _root.cant_move_crate1_down_against_rr = false; } if (hitTest(_root.rbr) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.rbr.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate1_down_against_rbr = true; } if (((Math.abs(((_root.rbr._y - _y) - (_root.rbr._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.rbr._x + (_root.rbr._width / 2)) + (_width / 2)))) and (_x > ((_root.rbr._x - (_root.rbr._width / 2)) - (_width / 2)))) { _root.cant_move_crate1_down_against_rbr = true; } else { _root.cant_move_crate1_down_against_rbr = false; } if (hitTest(_root.orangewall) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.orangewall.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate1_down_against_orange_wall = true; } if (((Math.abs(((_root.orangewall._y - _y) - (_root.orangewall._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.orangewall._x + (_root.orangewall._width / 2)) + (_width / 2)))) and (_x > ((_root.orangewall._x - (_root.orangewall._width / 2)) - (_width / 2)))) { _root.cant_move_crate1_down_against_orange_wall = true; } else { _root.cant_move_crate1_down_against_orange_wall = false; } if (hitTest(_root.greenwall)) { _root.greenwall_crate1_hit = true; if ((_root.hit_crate1 == true) and (_root.moveright == true)) { if ((_root.crate1_against_green_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate1_is_pushed_by_green_wall == false)) { _x = (_x - ((getBounds(_root).xMax - _root.greenwall.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate1_right_against_green_wall = true; } } if ((_root.hit_crate1 == true) and (_root.moveleft == true)) { if ((_root.crate1_against_green_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate1_is_pushed_by_green_wall == false)) { _x = (_x - ((getBounds(_root).xMin - _root.greenwall.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate1_left_against_green_wall = true; } } if ((_root.hit_crate1 == true) and (_root.movedown == true)) { if (((_root.crate1_against_green_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate1_is_pushed_by_green_wall == false)) and (_root.crate1_is_pushed_by_green_wall == false)) { _y = (_y - ((getBounds(_root).yMax - _root.greenwall.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate1_down_against_green_wall = true; } } if ((_root.hit_crate1 == true) and (_root.moveup == true)) { if (((_root.crate1_against_green_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate1_is_pushed_by_green_wall == false)) and (_root.crate1_is_pushed_by_green_wall == false)) { _y = (_y - ((getBounds(_root).yMin - _root.greenwall.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate1_up_against_green_wall = true; } } } else { _root.greenwall_crate1_hit = false; } if (((_root.difference_x_green_with_crate1_right <= 1) && (_root.difference_x_green_with_crate1_right >= -8)) && (_root.distance_y_between_greenwall_and_crate1 < ((_height / 2) + (_root.greenwall._height / 2)))) { _root.cant_move_crate1_right_against_green_wall = true; _root.green_wall_and_crate1_rightside_touching = true; } else { _root.cant_move_crate1_right_against_green_wall = false; _root.green_wall_and_crate1_rightside_touching = false; } if ((((_root.greenwall_movement == true) and (_root.green_wall_and_crate1_rightside_touching == true)) and (_root.distance_y_between_greenwall_and_crate1 < ((_height / 2) + (_root.greenwall._height / 2)))) and (_currentframe == 1)) { _x = (((_root.greenwall._x - (_root.greenwall._width / 2)) - (_width / 2)) - 0.7); _root.crate1_is_pushed_by_green_wall = true; } if (((_root.difference_x_ball1_with_crate1_leftside <= 0.3) && (_root.difference_x_ball1_with_crate1_leftside >= -8)) && (_root.distance_y_between_ball1_and_crate1 < ((_height / 2) + (_root.ball1._height / 2)))) { _root.ball1_and_crate1_leftside_touching = true; } else { _root.ball1_and_crate1_leftside_touching = false; } if (((_root.difference_x_ball2_with_crate1_leftside <= 0.3) && (_root.difference_x_ball2_with_crate1_leftside >= -8)) && (_root.distance_y_between_ball2_and_crate1 < ((_height / 2) + (_root.ball2._height / 2)))) { _root.ball2_and_crate1_leftside_touching = true; } else { _root.ball2_and_crate1_leftside_touching = false; } if (((_root.difference_x_ball1_with_crate1_rightside <= 2) && (_root.difference_x_ball1_with_crate1_rightside >= -8)) && (_root.distance_y_between_ball1_and_crate1 < ((_height / 2) + (_root.ball1._height / 2)))) { _root.ball1_and_crate1_rightside_touching = true; } else { _root.ball1_and_crate1_rightside_touching = false; } if (((_root.difference_x_ball2_with_crate1_rightside <= 0.3) && (_root.difference_x_ball2_with_crate1_rightside >= -8)) && (_root.distance_y_between_ball2_and_crate1 < ((_height / 2) + (_root.ball2._height / 2)))) { _root.ball2_and_crate1_rightside_touching = true; } else { _root.ball2_and_crate1_rightside_touching = false; } if (((((_root.ball1_and_crate1_leftside_touching == true) and (_root.crate1_is_pushed_by_green_wall == true)) and (_root.distance_y_between_greenwall_and_crate1 < ((_height / 2) + (_root.greenwall._height / 2)))) and (_root.distance_y_between_ball1_and_crate1 < ((_height / 2) + (_root.ball1._height / 2)))) and (_root.greenwall_movement == true)) { _root.ball1._x = (((_root.greenwall._x - (_root.greenwall._width / 2)) - _width) - (_root.ball1._width / 2)) - 0.5; _root.ball1_is_pushed_by_crate1_is_pushed_by_green_wall = true; } else { _root.ball1_is_pushed_by_crate1_is_pushed_by_green_wall = false; } if (((((_root.ball2_and_crate1_leftside_touching == true) and (_root.crate1_is_pushed_by_green_wall == true)) and (_root.distance_y_between_greenwall_and_crate1 < ((_height / 2) + (_root.greenwall._height / 2)))) and (_root.distance_y_between_ball2_and_crate1 < ((_height / 2) + (_root.ball2._height / 2)))) and (_root.greenwall_movement == true)) { _root.ball2._x = (((_root.greenwall._x - (_root.greenwall._width / 2)) - _width) - (_root.ball2._width / 2)) - 0.5; _root.ball2_is_pushed_by_crate1_is_pushed_by_green_wall = true; } else { _root.ball2_is_pushed_by_crate1_is_pushed_by_green_wall = false; } if (((((_root.ball1_and_crate1_rightside_touching == true) and (_root.ball1_is_pushed_by_green_wall == true)) and (_root.distance_y_between_ball1_and_crate1 < ((_height / 2) + (_root.ball1._height / 2)))) and ((_root.moveleft == false) or ((_root.moveleft == true) and (_root.cant_move_crate1_left_against_middle_wall == true)))) and (_currentframe == 1)) { _root.cant_move_crate1_right_against_green_wall = false; _x = (((_root.ball1._x - (_root.ball1._width / 2)) - (_width / 2)) - 0.5); _root.crate1_is_pushed_by_ball1_is_pushed_by_greenwall = true; } else { _root.crate1_is_pushed_by_ball1_is_pushed_by_greenwall = false; } if ((((_root.ball2_and_crate1_rightside_touching == true) and (_root.ball2_is_pushed_by_green_wall == true)) and (_root.distance_y_between_ball2_and_crate1 < ((_height / 2) + (_root.ball2._height / 2)))) and (_root.moveleft == false)) { _x = (((_root.ball2._x - (_root.ball2._width / 2)) - (_width / 2)) - 0.5); _root.crate1_is_pushed_by_ball2_is_pushed_by_greenwall = true; } else { _root.crate1_is_pushed_by_ball2_is_pushed_by_greenwall = false; } if ((((_root.distance_y_between_greenwall_and_crate1 < ((_height / 2) + (_root.greenwall._height / 2))) and (_root.greenwall_movement == true)) and (difference_x_green_with_crate1_right < 0.3)) and (difference_x_green_with_crate1_right > -3)) { _root.crate1_against_green_wall_boundaries_prevention = true; } else { _root.crate1_against_green_wall_boundaries_prevention = false; } if (((_root.distance_y_between_greenwall_and_crate1 < ((_height / 2) + (_root.greenwall._height / 2))) and (_root.distance_y_between_greenwall_and_ball <= ((_root.ball1._height / 2) + (_root.greenwall._height / 2)))) and (_root.greenwall_movement == true)) { _root.crate1_against_green_wall_boundaries_prevention2 = true; } else { _root.crate1_against_green_wall_boundaries_prevention2 = false; } if (((_root.difference_x_green_with_crate1_left <= 0.3) && (_root.difference_x_green_with_crate1_left >= -8)) && (_root.distance_y_between_greenwall_and_crate1 < ((_height / 2) + (_root.greenwall._height / 2)))) { _root.cant_move_crate1_left_against_green_wall = true; _root.cant_move_crate1_left_against_middlewall = true; _root.cant_move_crate1_left_against_orange_wall = true; _root.cant_move_crate1_left_against_left_wall = true; } else { _root.cant_move_crate1_left_against_green_wall = false; } if (_root.crate1_against_green_wall_boundaries_prevention == false) { if (((_root.difference_y_green_with_crate1_up <= 0.3) && (_root.difference_y_green_with_crate1_up >= -8)) && (_root.distance_x_between_greenwall_and_crate1 < ((_width / 2) + (_root.greenwall._width / 2)))) { _root.cant_move_crate1_up_against_green_wall = true; _root.cant_move_crate1_up_against_top_wall = true; _root.cant_move_crate1_up_against_orange_wall = true; _root.cant_move_crate1_up_against_middlewall_insidetop = true; } else { _root.cant_move_crate1_up_against_green_wall = false; } if (((_root.difference_y_green_with_crate1_down <= 0.3) && (_root.difference_y_green_with_crate1_down >= -8)) && (_root.distance_x_between_greenwall_and_crate1 < ((_width / 2) + (_root.greenwall._width / 2)))) { _root.cant_move_crate1_down_against_green_wall = true; _root.cant_move_crate1_down_against_bottom_wall = true; _root.cant_move_crate1_down_against_orange_wall = true; _root.cant_move_crate1_down_against_middlewall_insidebottom = true; } else { _root.cant_move_crate1_down_against_green_wall = false; } } else if ((((_root.distance_y_between_greenwall_and_crate1 < ((_height / 2) + (_root.greenwall._height / 2))) && (_root.distance_y_between_ball1_and_crate1 < ((_height / 2) + (_root.ball1._height / 2)))) and (_root.difference_x_ball1_with_crate1_leftside <= 0.3)) && (_root.difference_x_ball1_with_crate1_leftside >= -8)) { _root.cant_move_crate1_down_against_green_wall = true; _root.cant_move_crate1_up_against_green_wall = true; _root.cant_move_crate1_left_against_green_wall = true; _root.cant_move_crate1_right_against_green_wall = true; } else { _root.cant_move_crate1_down_against_green_wall = false; _root.cant_move_crate1_up_against_green_wall = false; } if (((_root.greenwall_movement == true) and ((((_root.difference_x_ball1_with_crate1_leftside <= 0.7) && (_root.difference_x_ball1_with_crate1_leftside >= -6)) && (_root.distance_between_rightmiddlewall_and_ball <= 0.5)) && (_root.distance_y_between_ball1_and_crate1 < ((_root.ball1._height / 2) + (_height / 2))))) or ((((_root.difference_x_ball2_with_crate1_leftside <= 0.7) && (_root.difference_x_ball2_with_crate1_leftside >= -6)) && (_root.distance_between_rightmiddlewall_and_ball2 <= 0.5)) && (_root.distance_y_between_ball2_and_crate1 < ((_root.ball2._height / 2) + (_height / 2))))) { _root.ball_location = false; _root.green_hit = true; _root.ball1._x = 2000; _root.ball2._x = 2000; _root.cant_move_crate1_up_against_green_wall = false; _root.cant_move_crate1_down_against_green_wall = false; } if (((((_root.difference_x_crate1_leftside_with_middlewall <= 1) && (_root.difference_x_crate1_leftside_with_middlewall >= -8)) && (_root.distance_y_between_greenwall_and_crate1 < ((_height / 2) + (_root.greenwall._height / 2)))) and ((_root.distance_y_between_greenwall_and_crate1 < ((_height / 2) + (_root.greenwall._height / 2))) or ((_root.distance_y_between_greenwall_and_ball < ((_root.ball1._height / 2) + (_root.greenwall._height / 2))) and (_root.distance_y_between_ball1_and_crate1 < ((_height / 2) + (_root.ball1._height / 2)))))) and (((_root.crate1_is_pushed_by_green_wall == true) or ((_root.ball1_and_crate1_rightside_touching == true) and (_root.ball1_is_pushed_by_green_wall == true))) or (_root.crate1_is_pushed_by_ball2_is_pushed_by_greenwall == true))) { _root.pink_is_attached_to_crate1 = false; _root.decoy_crate.inside.gotoAndPlay(1); _root.greenwall_movement = false; _root.decoy_crate._x = _x; _root.decoy_crate._y = _y; _root.decoy_crate.gotoAndStop(2); _x = 20002; } }
Instance of Symbol 2182 MovieClip "ball1" in Frame 28
onClipEvent (load) { _root.hit_crate1 = false; } onClipEvent (enterFrame) { function move(xmove, ymove) { _x = (_x + xmove); _y = (_y + ymove); if (hitTest(_root.leftwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.middlewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.topwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.topwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.topwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.topwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bottomwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bottomwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bottomwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bottomwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.greenwall) and (_root.ball1_is_pushed_by_green_wall == false)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.greenwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.greenwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.greenwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.greenwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.orangewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.orangewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.orangewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.orangewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.orangewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.pinkwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.pinkwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.pinkwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.pinkwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.pinkwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.ll)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.ll.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.ll.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.ll.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.ll.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.lr)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.lr.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.lr.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.lr.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.lr.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rl)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rl.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rl.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rl.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rl.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rr)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rr.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rr.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rr.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rr.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rbr)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rbr.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rbr.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rbr.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rbr.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.redwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.redwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.redwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.redwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.redwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.crate1)) { if (_root.crate1._currentframe == 1) { _root.hit_crate1 = true; if (xmove > 0) { if ((_root.crate1_is_pushed_by_ball1_is_pushed_by_greenwall == false) and (_root.ball1_is_pushed_by_crate1_is_pushed_by_green_wall == false)) { _x = (_x - ((getBounds(_root).xMax - _root.crate1.getBounds(_root).xMin) + 0.1)); if (((((_root.cant_move_crate1_right_against_green_wall == false) and (_root.cant_move_crate1_right_against_right_wall == false)) and (_root.cant_move_crate1_right_against_rbr == false)) and (_root.cant_move_crate1_right_against_rr == false)) and (_root.cant_move_crate1_right_against_pink_wall == false)) { _root.cratespeed_xright = 1; _root.crate1._x = _root.crate1._x + _root.cratespeed_xright; _root.moveright = true; } } } else { _root.moveright = false; } if (xmove < 0) { if (_root.crate1_is_pushed_by_ball1_is_pushed_by_greenwall == false) { _x = (_x - ((getBounds(_root).xMin - _root.crate1.getBounds(_root).xMax) - 0.1)); if (((_root.cant_move_crate1_left_against_green_wall == false) and (_root.cant_move_crate1_left_against_middle_wall == false)) and (_root.cant_move_crate1_left_against_rl == false)) { _root.cratespeed_xleft = 1; _root.crate1._x = _root.crate1._x - _root.cratespeed_xleft; _root.moveleft = true; } } } else { _root.moveleft = false; } if (ymove > 0) { if ((((_root.ball1_is_pushed_by_crate1_is_pushed_by_green_wall == false) && (_root.crate1_is_pushed_by_ball1_is_pushed_by_greenwall == false)) and (_root.difference_x_ball1_with_crate1_leftside <= -1)) and (_root.difference_x_ball1_with_crate1_rightside <= -1)) { _y = (_y - ((getBounds(_root).yMax - _root.crate1.getBounds(_root).yMin) + 0.1)); if ((((((_root.cant_move_crate1_down_against_green_wall == false) and (_root.cant_move_crate1_down_against_bottom_wall == false)) and (_root.cant_move_crate1_down_against_orange_wall == false)) and (_root.cant_move_crate1_down_against_rl == false)) and (_root.cant_move_crate1_down_against_rr == false)) and (_root.cant_move_crate1_down_against_rbr == false)) { _root.cratespeed_ydown = 1; _root.crate1._y = _root.crate1._y + _root.cratespeed_ydown; _root.movedown = true; } } } else { _root.movedown = false; } if (ymove < 0) { if ((((_root.ball1_is_pushed_by_crate1_is_pushed_by_green_wall == false) && (_root.crate1_is_pushed_by_ball1_is_pushed_by_greenwall == false)) and (_root.difference_x_ball1_with_crate1_leftside <= -1)) and (_root.difference_x_ball1_with_crate1_rightside <= -1)) { _y = (_y - ((getBounds(_root).yMin - _root.crate1.getBounds(_root).yMax) - 0.1)); if ((((_root.cant_move_crate1_up_against_green_wall == false) and (_root.cant_move_crate1_up_against_rl == false)) and (_root.cant_move_crate1_up_against_top_wall == false)) and (_root.cant_move_crate1_up_against_rr == false)) { _root.cratespeed_yup = 1; _root.crate1._y = _root.crate1._y - _root.cratespeed_yup; _root.moveup = true; } } } else { _root.moveup = false; } } } else { _root.cratespeed_xright = 0; _root.cratespeed_xleft = 0; _root.cratespeed_ydown = 0; _root.cratespeed_yup = 0; } if (hitTest(_root.crate2)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.crate2.getBounds(_root).xMin) + 0.1)); if ((_root.cant_move_crate2_right_against_middle_wall == false) and (_root.cant_move_crate2_right_against_lr == false)) { _root.cratespeed_xright = 1; _root.crate2._x = _root.crate2._x + _root.cratespeed_xright; _root.moveright = true; } } else { _root.moveright = false; } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.crate2.getBounds(_root).xMax) - 0.1)); if ((_root.cant_move_crate2_left_against_left_wall == false) and (_root.cant_move_crate2_left_against_ll == false)) { _root.cratespeed_xleft = 1; _root.crate2._x = _root.crate2._x - _root.cratespeed_xleft; _root.moveleft = true; } } else { _root.moveleft = false; } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.crate2.getBounds(_root).yMin) + 0.1)); if (((_root.cant_move_crate2_down_against_ll == false) and (_root.cant_move_crate2_down_against_lr == false)) and (_root.cant_move_crate2_down_against_bottom_wall == false)) { _root.cratespeed_ydown = 1; _root.crate2._y = _root.crate2._y + _root.cratespeed_ydown; _root.movedown = true; } } else { _root.movedown = false; } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.crate2.getBounds(_root).yMax) - 0.1)); if ((((_root.cant_move_crate2_up_against_red_wall == false) and (_root.cant_move_crate2_up_against_ll == false)) and (_root.cant_move_crate2_up_against_lr == false)) and (_root.cant_move_crate2_up_against_top_wall == false)) { _root.cratespeed_yup = 1; _root.crate2._y = _root.crate2._y - _root.cratespeed_yup; _root.moveup = true; } } else { _root.moveup = false; } } else { _root.cratespeed_xright = 0; _root.cratespeed_xleft = 0; _root.cratespeed_ydown = 0; _root.cratespeed_yup = 0; } } if ((((!Key.isDown(37)) and (!Key.isDown(39))) and (!Key.isDown(38))) and (!Key.isDown(40))) { _root.moveup = false; _root.movedown = false; _root.moveright = false; _root.moveleft = false; move(0, 0); _root.hit_crate1 = false; _root.hit_crate2 = false; } if (_root.ball_movement == true) { if (Key.isDown(37)) { move(-5, 0); } if (Key.isDown(39)) { if ((_root.ball1_is_pushed_by_crate1_is_pushed_by_green_wall == false) and (_root.ball1_is_pushed_by_green_wall == false)) { move(5, 0); } } if (Key.isDown(38)) { move(0, -5); } if (Key.isDown(40)) { move(0, 5); } } }
Frame 29
function restartLevel() { _root.scoresubmit30 = savefile.data.scoresubmit30; savefile.flush(); soundstart = false; small = false; var30 = true; var29 = false; submitScreen = false; if (_root.var1) { _root.score = 1; } else if (_root.var2) { _root.score = 2; } else if (_root.var3) { _root.score = 3; } else if (_root.var4) { _root.score = 4; } else if (_root.var5) { _root.score = 5; } else if (_root.var6) { _root.score = 6; } else if (_root.var71) { _root.score = 7; } else if (_root.var8) { _root.score = 8; } else if (_root.var9) { _root.score = 9; } else if (_root.var10) { _root.score = 10; } else if (_root.var11) { _root.score = 11; } else if (_root.var12) { _root.score = 12; } else if (_root.var13) { _root.score = 13; } else if (_root.var14) { _root.score = 14; } else if (_root.var15) { _root.score = 15; } else if (_root.var16) { _root.score = 16; } else if (_root.var17) { _root.score = 17; } else if (_root.var18) { _root.score = 18; } else if (_root.var19) { _root.score = 19; } else if (_root.var20) { _root.score = 20; } else if (_root.var21) { _root.score = 21; } else if (_root.var22) { _root.score = 22; } else if (_root.var23) { _root.score = 23; } else if (_root.var24) { _root.score = 24; } else if (_root.var25) { _root.score = 25; } else if (_root.var26) { _root.score = 26; } else if (_root.var27) { _root.score = 27; } else if (_root.var28) { _root.score = 28; } else if (_root.var29) { _root.score = 29; } else if (_root.var30) { _root.score = 30; } savefile.data.score = _root.score; savefile.flush(); radius = ball1._height / 2; SPACE_possible = true; bluewall_movement = false; pinkwall1_movement = false; pinkwall2_movement = false; pinkwall3_movement = false; pinkwall4_movement = false; orangewall_movement = false; aquawall1_movement = false; aquawall2_movement = false; aquatransparent_movement = false; greenwall_movement = false; pinkkey._width = 32.1; pinkkey._height = 28.1; ball_location = true; gray_is_hit_pink1 = false; black_is_hit_pink1 = false; pink1_hit = false; gray_is_hit_pink4 = false; black_is_hit_pink4 = false; pink4_hit = false; gray_is_hit_aqua1 = false; black_is_hit_aqua1 = false; aqua1_hit = false; gray_is_hit_aqua2 = false; black_is_hit_aqua2 = false; aqua2_hit = false; gray_is_hit_green = false; black_is_hit_green = false; green_hit = false; gray_is_hit_blue = false; black_is_hit_blue = false; blue_hit = false; ball_movement = true; finisher = false; _root.decoy2.gotoAndStop(1); _root.decoy.gotoAndStop(1); _root.ball1.gotoAndStop(1); _root.ball1.gotoAndStop(1); _root.ball2.gotoAndStop(1); _root.ball2.gotoAndStop(1); decoy._x = -1000; decoy2._x = -1000; timing = true; elapsedTime = 0; startTime = getTimer(); seconds = 0; bluekey._x = 280.6; bluekey._y = 481.5; orangekey._x = 420.1; orangekey._y = 382.4; greenkey._x = 262.6; greenkey._y = 80.7; aquakey._x = 280.6; aquakey._y = 438.4; pinkkey._x = 484; pinkkey._y = 275; bluewall._x = 157.2; bluewall._y = 104.2; pinkwall1._x = 500.2; pinkwall1._y = 12; pinkwall2._x = 202.4; pinkwall2._y = 120; pinkwall3._x = 202.8; pinkwall3._y = 414.1; pinkwall4._x = 500.2; pinkwall4._y = 537.2; orangewall._x = 273.8; orangewall._y = 133.8; aquawall1._x = 263.5; aquawall1._y = 313.5; aquawall2._x = 263.5; aquawall2._y = 235.9; aquatransparent._x = 262.6; aquatransparent._y = 275; greenwall._x = 442.6; greenwall._y = 274.8; bluewall1._x = 263.3; bluewall1._y = 275.1; blue_transparent._x = 263.3; blue_transparent._y = 274.9; ball1._x = 121.1; ball1._y = 481.8; ball2._x = 576.2; ball2._y = 275; youwin._x = 10000; winningscreen._x = 1000; finish._x = 273.3; finish._y = 172.8; } function ball1_old_location() { x_location = ball1._x; y_location = ball1._y; } function ball_locator() { ball_location = true; if (black_is_hit_pink1 == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(3); _root.decoy.gotoAndStop(2); } if (gray_is_hit_pink1 == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); } if (black_is_hit_pink4 == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(3); _root.decoy.gotoAndStop(2); } if (gray_is_hit_pink4 == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); } if (black_is_hit_aqua1 == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(3); _root.decoy.gotoAndStop(2); } if (gray_is_hit_aqua1 == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); } if (black_is_hit_aqua2 == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(3); _root.decoy.gotoAndStop(2); } if (gray_is_hit_aqua2 == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); } if (black_is_hit_green == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(3); _root.decoy.gotoAndStop(2); } if (gray_is_hit_green == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); } if (black_is_hit_blue == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(3); _root.decoy.gotoAndStop(2); } if (gray_is_hit_blue == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); } } stop(); _root.options._x = 28.1; _root.restartbutton._x = 41.9; _root.QW._x = 73.8; _root.P._x = 55.6; _root.BN._x = 66; if (savefile.data.firsttime == undefined) { _root.firsttime = true; } else { _root.firsttime = savefile.data.firsttime; } totalRestarts = 0; _root.option.hintbox.gotoAndStop(1); _root.option.meter.gotoAndStop(30); restartLevel(); youwin.onPress = function () { nextFrame(); gotoAndStop; }; _root.option9.submitScore.onRelease = function () { if (submitPossible) { trace("Score Submitted"); scoresubmit = true; scoresubmit1 = false; scoresubmit2 = false; scoresubmit3 = false; scoresubmit4 = false; scoresubmit5 = false; scoresubmit6 = false; scoresubmit7 = false; scoresubmit8 = false; scoresubmit9 = false; scoresubmit10 = false; scoresubmit11 = false; scoresubmit12 = false; scoresubmit13 = false; scoresubmit14 = false; scoresubmit15 = false; scoresubmit16 = false; scoresubmit17 = false; scoresubmit18 = false; scoresubmit19 = false; scoresubmit20 = false; scoresubmit21 = false; scoresubmit22 = false; scoresubmit23 = false; scoresubmit24 = false; scoresubmit25 = false; scoresubmit26 = false; scoresubmit27 = false; scoresubmit28 = false; scoresubmit29 = false; scoresubmit30 = false; _root.level1_best_time = 0; _root.level2_best_time = 0; _root.level3_best_time = 0; _root.level4_best_time = 0; _root.level5_best_time = 0; _root.level6_best_time = 0; _root.level7_best_time = 0; _root.level8_best_time = 0; _root.level9_best_time = 0; _root.level10_best_time = 0; _root.level11_best_time = 0; _root.level12_best_time = 0; _root.level13_best_time = 0; _root.level14_best_time = 0; _root.level15_best_time = 0; _root.level16_best_time = 0; _root.level17_best_time = 0; _root.level18_best_time = 0; _root.level19_best_time = 0; _root.level20_best_time = 0; _root.level21_best_time = 0; _root.level22_best_time = 0; _root.level23_best_time = 0; _root.level24_best_time = 0; _root.level25_best_time = 0; _root.level26_best_time = 0; _root.level27_best_time = 0; _root.level28_best_time = 0; _root.level29_best_time = 0; _root.level30_best_time = 0; savefile.data.level1_best_time = _root.level1_best_time; savefile.data.level2_best_time = _root.level2_best_time; savefile.data.level3_best_time = _root.level3_best_time; savefile.data.level4_best_time = _root.level4_best_time; savefile.data.level5_best_time = _root.level5_best_time; savefile.data.level6_best_time = _root.level6_best_time; savefile.data.level7_best_time = _root.level7_best_time; savefile.data.level8_best_time = _root.level8_best_time; savefile.data.level9_best_time = _root.level9_best_time; savefile.data.level10_best_time = _root.level10_best_time; savefile.data.level11_best_time = _root.level11_best_time; savefile.data.level12_best_time = _root.level12_best_time; savefile.data.level13_best_time = _root.level13_best_time; savefile.data.level14_best_time = _root.level14_best_time; savefile.data.level15_best_time = _root.level15_best_time; savefile.data.level16_best_time = _root.level16_best_time; savefile.data.level17_best_time = _root.level17_best_time; savefile.data.level18_best_time = _root.level18_best_time; savefile.data.level19_best_time = _root.level19_best_time; savefile.data.level20_best_time = _root.level20_best_time; savefile.data.level21_best_time = _root.level21_best_time; savefile.data.level22_best_time = _root.level22_best_time; savefile.data.level23_best_time = _root.level23_best_time; savefile.data.level24_best_time = _root.level24_best_time; savefile.data.level25_best_time = _root.level25_best_time; savefile.data.level26_best_time = _root.level26_best_time; savefile.data.level27_best_time = _root.level27_best_time; savefile.data.level28_best_time = _root.level28_best_time; savefile.data.level29_best_time = _root.level29_best_time; savefile.data.level30_best_time = _root.level30_best_time; savefile.data.level30_best_time = _root.level30_best_time; savefile.data.scoresubmit1 = _root.scoresubmit1; savefile.data.scoresubmit2 = _root.scoresubmit2; savefile.data.scoresubmit3 = _root.scoresubmit3; savefile.data.scoresubmit4 = _root.scoresubmit4; savefile.data.scoresubmit5 = _root.scoresubmit5; savefile.data.scoresubmit6 = _root.scoresubmit6; savefile.data.scoresubmit7 = _root.scoresubmit7; savefile.data.scoresubmit8 = _root.scoresubmit8; savefile.data.scoresubmit9 = _root.scoresubmit9; savefile.data.scoresubmit10 = _root.scoresubmit10; savefile.data.scoresubmit11 = _root.scoresubmit11; savefile.data.scoresubmit12 = _root.scoresubmit12; savefile.data.scoresubmit13 = _root.scoresubmit13; savefile.data.scoresubmit14 = _root.scoresubmit14; savefile.data.scoresubmit15 = _root.scoresubmit15; savefile.data.scoresubmit16 = _root.scoresubmit16; savefile.data.scoresubmit17 = _root.scoresubmit17; savefile.data.scoresubmit18 = _root.scoresubmit18; savefile.data.scoresubmit19 = _root.scoresubmit19; savefile.data.scoresubmit20 = _root.scoresubmit20; savefile.data.scoresubmit21 = _root.scoresubmit21; savefile.data.scoresubmit22 = _root.scoresubmit22; savefile.data.scoresubmit23 = _root.scoresubmit23; savefile.data.scoresubmit24 = _root.scoresubmit24; savefile.data.scoresubmit25 = _root.scoresubmit25; savefile.data.scoresubmit26 = _root.scoresubmit26; savefile.data.scoresubmit27 = _root.scoresubmit27; savefile.data.scoresubmit28 = _root.scoresubmit28; savefile.data.scoresubmit29 = _root.scoresubmit29; savefile.data.scoresubmit30 = _root.scoresubmit30; savefile.flush(); gotoAndStop (37); _root.option9._x = 5000; _root.option9._y = 5000; _root.win._x = 5000; _root.win._y = 5000; gotoAndStop (3); } else { trace("Score cant be submitted"); } }; _root.option9.exit.onRelease = function () { _root.option9._x = 5000; _root.option9._y = 5000; _root.win._x = Stage.width / 2; _root.win._y = Stage.height / 2; }; ball1.onEnterFrame = function () { if (this.hitTest(bluekey)) { keystart = true; bluekey._x = 100000 /* 0x0186A0 */; bluewall_movement = true; _root.ball1.scan.gotoAndStop(8); } if (this.hitTest(orangekey)) { keystart = true; orangekey._x = 100000 /* 0x0186A0 */; orangewall_movement = true; _root.ball1.scan.gotoAndStop(6); } if (this.hitTest(aquakey)) { keystart = true; aquakey._x = 100000 /* 0x0186A0 */; aquawall1_movement = true; aquawall2_movement = true; aquatransparent_movement = true; _root.ball1.scan.gotoAndStop(4); _root.ball1.scan.bluemove.gotoAndPlay(1); } if (this.hitTest(greenkey)) { keystart = true; greenkey._x = 100000 /* 0x0186A0 */; greenwall_movement = true; _root.ball1.scan.gotoAndStop(3); } if (this.hitTest(pinkkey)) { keystart = true; pinkkey._x = 10000; _root.ball1.scan.gotoAndStop(5); pinkwall1_movement = true; pinkwall2_movement = true; pinkwall3_movement = true; pinkwall4_movement = true; } if (pinkwall1.hitTest(pinkwall4)) { soundstart = true; pinkwall1_movement = false; pinkwall4_movement = false; pinkwall1._y = ((pinkwall4._y - (pinkwall4._height / 2)) - (pinkwall1._height / 2)) - 0.1; } if (pinkwall1.hitTest(aquawall2)) { soundstart = true; pinkwall1_movement = false; aquawall2_movement = false; aquawall1_movement = false; aquatransparent_movement = false; if ((((pinkwall1._x - (pinkwall1._width / 2)) - aquawall2._x) - (aquawall2._width / 2)) < -1) { pinkwall1._y = ((aquawall2._y - (aquawall2._height / 2)) - (pinkwall1._height / 2)) - 0.1; } else { aquawall2._x = ((pinkwall1._x - (pinkwall1._width / 2)) - (aquawall2._width / 2)) - 0.1; aquawall1._x = ((pinkwall1._x - (pinkwall1._width / 2)) - (aquawall2._width / 2)) - 0.1; pinkwall4_movement = false; } } if (pinkwall4.hitTest(aquawall1)) { aquawall2_movement = false; aquawall1_movement = false; aquatransparent_movement = false; pinkwall4_movement = false; if ((((pinkwall4._x - (pinkwall4._width / 2)) - aquawall1._x) - (aquawall1._width / 2)) < -1) { pinkwall4._y = ((aquawall1._y + (aquawall1._height / 2)) + (pinkwall4._height / 2)) + 0.1; soundstart = true; } else { aquawall2._x = ((pinkwall1._x - (pinkwall1._width / 2)) - (aquawall2._width / 2)) - 0.1; aquawall1._x = ((pinkwall1._x - (pinkwall1._width / 2)) - (aquawall2._width / 2)) - 0.1; pinkwall1_movement = false; } } if (pinkwall1.hitTest(greenwall)) { pinkwall1_movement = false; greenwall_movement = false; } if (pinkwall4.hitTest(greenwall)) { greenwall_movement = false; pinkwall4_movement = false; } if (scoresubmit30) { scoresubmit = false; } else if (scoresubmit30 == false) { scoresubmit = true; } if (this.hitTest(finish)) { timing = false; seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if (firsttime) { level30_best_time = seconds; firsttime = false; savefile.data.firsttime = _root.firsttime; savefile.flush(); } if (scoresubmit) { level30_best_time = seconds; scoresubmit30 = true; savefile.data.scoresubmit30 = _root.scoresubmit30; savefile.flush(); } if (seconds < level30_best_time) { level30_best_time = seconds; } savefile.data.level30_best_time = _root.level30_best_time; savefile.flush(); totaltime = ((((((((((((((((((((((((((((_root.level1_best_time + _root.level2_best_time) + _root.level3_best_time) + _root.level4_best_time) + _root.level5_best_time) + _root.level6_best_time) + _root.level7_best_time) + _root.level8_best_time) + _root.level9_best_time) + _root.level10_best_time) + _root.level11_best_time) + _root.level12_best_time) + _root.level13_best_time) + _root.level14_best_time) + _root.level15_best_time) + _root.level16_best_time) + _root.level17_best_time) + _root.level18_best_time) + _root.level19_best_time) + _root.level20_best_time) + _root.level21_best_time) + _root.level22_best_time) + _root.level23_best_time) + _root.level24_best_time) + _root.level25_best_time) + _root.level26_best_time) + _root.level27_best_time) + _root.level28_best_time) + _root.level29_best_time) + _root.level30_best_time; SPACE_possible = false; ball_movement = false; if (!submitScreen) { win._x = Stage.width / 2; win._y = Stage.height / 2; } _root.win.instructions.gotoAndStop(30); _root.win.meter.gotoAndStop(31); } if (Key.isDown(32) && (SPACE_possible == false)) { finisher = true; } if (finisher) { if (!Key.isDown(32)) { win._x = 10000; gotoAndStop (3); finisher = false; SPACE_possible = true; } } }; _root.onEnterFrame = function () { seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if (!ball_movement) { timing = false; startTime = getTimer() - elapsedTime; } else { timing = true; } if (timing) { elapsedTime = getTimer() - startTime; } if (var30) { w_works = false; } else { w_works = true; } if (((option._x != (Stage.width / 2)) and (instruction._x != (Stage.width / 2))) and (win._x != (Stage.width / 2))) { if (Key.isDown(81)) { q_is_DOWN = true; } if (q_is_DOWN) { if (!Key.isDown(81)) { witcher = true; gotoAndStop ("l28"); q_is_DOWN = false; } } if (Key.isDown(87)) { w_is_DOWN = true; } if (w_is_DOWN) { if (!Key.isDown(87)) { gotoAndStop ("l2"); w_is_DOWN = false; } } ballx = ball1._x; bally = ball1._y; decoyx = decoy._x; if (Key.isDown(78)) { n_is_DOWN = true; } if (n_is_DOWN) { if (!Key.isDown(78)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); n_is_DOWN = false; } } } if (Key.isDown(66)) { b_is_DOWN = true; } if (b_is_DOWN) { if (!Key.isDown(66)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); b_is_DOWN = false; } } } if (SPACE_possible) { if (Key.isDown(32)) { SPACE_is_DOWN = true; } if (SPACE_is_DOWN) { if (!Key.isDown(32)) { ball1_old_location(); ball1._x = ball2._x; ball1._y = ball2._y; ball2._x = x_location; ball2._y = y_location; SPACE_is_DOWN = false; } } } } if (bluewall_movement) { bluewall._y = bluewall._y + 1; } if (bluewall._y > 420) { bluewall_movement = false; soundstart = true; bluewall._y = 420; } if (orangewall_movement) { orangewall._x = orangewall._x + 1; } if (orangewall._x > 338.5) { orangewall_movement = false; orangewall._x = 338.5; } if (greenwall_movement) { greenwall._x = greenwall._x + 1; } if (greenwall._x > 583.5) { soundstart = true; greenwall_movement = false; greenwall._x = 583.5; } if (greenwall._x > ((rb._x + (rb._width / 2)) + (greenwall._width / 2))) { rb._x = 450; rt._x = 449.8; } if (pinkwall1_movement) { pinkwall1._y = pinkwall1._y + 0.24; } if (pinkwall2_movement) { pinkwall2._y = pinkwall2._y - 2; } if (pinkwall3_movement) { pinkwall3._y = pinkwall3._y + 2; } if (pinkwall4_movement) { pinkwall4._y = pinkwall4._y - 0.2; } if (aquawall1_movement) { aquawall1._x = aquawall1._x + 1; bluewall1._x = bluewall1._x + 1; blue_transparent._x = blue_transparent._x + 1; } if (aquawall1._x > 562) { soundstart = true; aquawall1_movement = false; aquawall2_movement = false; aquatransparent_movement = false; aquawall1._x = 562; aquawall2._x = 562; aquatransparent._x = 562; } if (aquawall2_movement) { aquawall2._x = aquawall2._x + 1; } if (aquatransparent_movement) { aquatransparent._x = aquatransparent._x + 1; } if ((((((((((((((((((((((((((((((_root.level1_best_time > 0) and (_root.level2_best_time > 0)) and (_root.level3_best_time > 0)) and (_root.level4_best_time > 0)) and (_root.level5_best_time > 0)) and (_root.level6_best_time > 0)) and (_root.level7_best_time > 0)) and (_root.level8_best_time > 0)) and (_root.level9_best_time > 0)) and (_root.level10_best_time > 0)) and (_root.level11_best_time > 0)) and (_root.level12_best_time > 0)) and (_root.level13_best_time > 0)) and (_root.level14_best_time > 0)) and (_root.level15_best_time > 0)) and (_root.level16_best_time > 0)) and (_root.level17_best_time > 0)) and (_root.level18_best_time > 0)) and (_root.level19_best_time > 0)) and (_root.level20_best_time > 0)) and (_root.level21_best_time > 0)) and (_root.level22_best_time > 0)) and (_root.level23_best_time > 0)) and (_root.level24_best_time > 0)) and (_root.level25_best_time > 0)) and (_root.level26_best_time > 0)) and (_root.level27_best_time > 0)) and (_root.level28_best_time > 0)) and (_root.level29_best_time > 0)) and (_root.level30_best_time > 0)) { submitPossible = true; } else { submitPossible = false; } if (!submitPossible) { _root.option9.warning._alpha = 100; _root.option9.submitScore._alpha = 100; } else { _root.option9.warning._alpha = 0; _root.option9.submitScore._alpha = 100; } differenceblue = ((ball1._y - bluewall._y) - (bluewall._height / 2)) - (ball1._height / 2); differenceblue2 = ((ball2._y - bluewall._y) - (bluewall._height / 2)) - (ball2._height / 2); distance_between_bottomwall_and_ball = Math.abs(((bottomwall._y - ball1._y) - (bottomwall._height / 2)) - (ball1._height / 2)); distance_between_bottomwall_and_ball2 = Math.abs(((bottomwall._y - ball2._y) - (bottomwall._height / 2)) - (ball2._height / 2)); distance_x_between_bluewall_and_ball = Math.abs(bluewall._x - ball1._x); distance_x_between_bluewall_and_ball2 = Math.abs(bluewall._x - ball2._x); if ((((bluewall_movement == true) and (differenceblue <= 0.2)) and (differenceblue >= -8)) and (distance_x_between_bluewall_and_ball < ((ball1._width / 2) + (bluewall._width / 2)))) { ball1._y = ((bluewall._y + (bluewall._height / 2)) + (ball1._height / 2)) + 0.2; } if ((((bluewall_movement == true) and (differenceblue2 <= 0.2)) and (differenceblue2 >= -8)) and (distance_x_between_bluewall_and_ball2 < ((ball2._width / 2) + (bluewall._width / 2)))) { ball2._y = ((bluewall._y + (bluewall._height / 2)) + (ball2._height / 2)) + 0.2; } if (((((differenceblue <= 0.5) && (differenceblue >= -1)) && (distance_between_bottomwall_and_ball <= 0.5)) && (distance_x_between_bluewall_and_ball < ((ball1._width / 2) + (bluewall._width / 2)))) or ((((differenceblue2 <= 0.5) && (differenceblue2 >= -1)) && (distance_between_bottomwall_and_ball2 <= 0.5)) && (distance_x_between_bluewall_and_ball2 < ((ball2._width / 2) + (bluewall._width / 2))))) { blue_hit = true; ball_location = false; ball1._y = 2000; ball2._y = 2000; } differencegreen = ((ball1._x - greenwall._x) - (greenwall._width / 2)) - (ball1._width / 2); differencegreen2 = ((ball2._x - greenwall._x) - (greenwall._width / 2)) - (ball2._width / 2); distance_between_rightwall_and_ball = Math.abs(((rightwall._x - ball1._x) - (rightwall._width / 2)) - (ball1._width / 2)); distance_between_rightwall_and_ball2 = Math.abs(((rightwall._x - ball2._x) - (rightwall._width / 2)) - (ball2._width / 2)); distance_y_between_greenwall_and_ball = Math.abs(greenwall._y - ball1._y); distance_y_between_greenwall_and_ball2 = Math.abs(greenwall._y - ball2._y); if ((((greenwall_movement == true) and (differencegreen <= 0.2)) and (differencegreen >= -8)) and (distance_y_between_greenwall_and_ball < ((ball1._height / 2) + (greenwall._height / 2)))) { ball1._x = ((greenwall._x + (greenwall._width / 2)) + (ball1._width / 2)) + 0.2; } if ((((greenwall_movement == true) and (differencegreen2 <= 0.2)) and (differencegreen2 >= -8)) and (distance_y_between_greenwall_and_ball2 < ((ball2._height / 2) + (greenwall._height / 2)))) { ball2._x = ((greenwall._x + (greenwall._width / 2)) + (ball2._width / 2)) + 0.2; } if (((((differencegreen <= 0.5) && (differencegreen >= -2)) && (distance_between_rightwall_and_ball <= 1)) && (distance_y_between_greenwall_and_ball < ((ball1._height / 2) + (greenwall._height / 2)))) or ((((differencegreen2 <= 0.5) && (differencegreen2 >= -2)) && (distance_between_rightwall_and_ball2 <= 1)) && (distance_y_between_greenwall_and_ball2 < ((ball2._height / 2) + (greenwall._height / 2))))) { green_hit = true; ball_location = false; ball1._x = 2000; ball2._x = 2000; } differenceaqua1 = ((ball1._x - aquawall1._x) - (aquawall1._width / 2)) - (ball1._width / 2); differenceaqua12 = ((ball2._x - aquawall1._x) - (aquawall1._width / 2)) - (ball2._width / 2); distance_y_between_aquawall1_and_ball = Math.abs(aquawall1._y - ball1._y); distance_y_between_aquawall1_and_ball2 = Math.abs(aquawall1._y - ball2._y); if ((((aquawall1_movement == true) and (differenceaqua1 <= 0.2)) and (differenceaqua1 >= -8)) and (distance_y_between_aquawall1_and_ball < ((ball1._height / 2) + (aquawall1._height / 2)))) { ball1._x = ((aquawall1._x + (aquawall1._width / 2)) + (ball1._width / 2)) + 0.2; } if ((((aquawall1_movement == true) and (differenceaqua12 <= 0.2)) and (differenceaqua12 >= -8)) and (distance_y_between_aquawall1_and_ball2 < ((ball2._height / 2) + (aquawall1._height / 2)))) { ball2._x = ((aquawall1._x + (aquawall1._width / 2)) + (ball2._width / 2)) + 0.2; } if (((((differenceaqua1 <= 0.5) && (differenceaqua1 >= -2)) && (distance_between_rightwall_and_ball <= 1)) && (distance_y_between_aquawall1_and_ball < ((ball1._height / 2) + (aquawall1._height / 2)))) or ((((differenceaqua12 <= 0.5) && (differenceaqua12 >= -2)) && (distance_between_rightwall_and_ball2 <= 1)) && (distance_y_between_aquawall1_and_ball2 < ((ball2._height / 2) + (aquawall1._height / 2))))) { aqua1_hit = true; ball_location = false; ball1._x = 2000; ball2._x = 2000; } differenceaqua2 = ((ball1._x - aquawall2._x) - (aquawall2._width / 2)) - (ball1._width / 2); differenceaqua22 = ((ball2._x - aquawall2._x) - (aquawall2._width / 2)) - (ball2._width / 2); distance_y_between_aquawall2_and_ball = Math.abs(aquawall2._y - ball1._y); distance_y_between_aquawall2_and_ball2 = Math.abs(aquawall2._y - ball2._y); if ((((aquawall2_movement == true) and (differenceaqua2 <= 0.2)) and (differenceaqua2 >= -8)) and (distance_y_between_aquawall2_and_ball < ((ball1._height / 2) + (aquawall2._height / 2)))) { ball1._x = ((aquawall2._x + (aquawall2._width / 2)) + (ball1._width / 2)) + 0.2; } if ((((aquawall2_movement == true) and (differenceaqua22 <= 0.2)) and (differenceaqua22 >= -8)) and (distance_y_between_aquawall2_and_ball2 < ((ball2._height / 2) + (aquawall2._height / 2)))) { ball2._x = ((aquawall2._x + (aquawall2._width / 2)) + (ball2._width / 2)) + 0.2; } if (((((differenceaqua2 <= 0.5) && (differenceaqua2 >= -2)) && (distance_between_rightwall_and_ball <= 1)) && (distance_y_between_aquawall2_and_ball < ((ball1._height / 2) + (aquawall2._height / 2)))) or ((((differenceaqua22 <= 0.5) && (differenceaqua22 >= -2)) && (distance_between_rightwall_and_ball2 <= 1)) && (distance_y_between_aquawall2_and_ball2 < ((ball2._height / 2) + (aquawall2._height / 2))))) { aqua2_hit = true; ball_location = false; ball1._x = 2000; ball2._x = 2000; } differencepink1 = ((ball1._y - pinkwall1._y) - (pinkwall1._height / 2)) - (ball1._height / 2); differencepink12 = ((ball2._y - pinkwall1._y) - (pinkwall1._height / 2)) - (ball2._height / 2); distance_between_pinkwall4_and_ball = Math.abs(((pinkwall4._y - ball1._y) - (pinkwall4._height / 2)) - (ball1._height / 2)); distance_between_pinkwall4_and_ball2 = Math.abs(((pinkwall4._y - ball2._y) - (pinkwall4._height / 2)) - (ball2._height / 2)); distance_between_aquawall2y_and_ball = Math.abs(((aquawall2._y - ball1._y) - (aquawall2._height / 2)) - (ball1._height / 2)); distance_between_aquawall2y_and_ball2 = Math.abs(((aquawall2._y - ball2._y) - (aquawall2._height / 2)) - (ball2._height / 2)); distance_x_between_pinkwall1_and_ball = Math.abs(pinkwall1._x - ball1._x); distance_x_between_pinkwall1_and_ball2 = Math.abs(pinkwall1._x - ball2._x); if ((((pinkwall1_movement == true) and (differencepink1 <= 0.2)) and (differencepink1 >= -8)) and (distance_x_between_pinkwall1_and_ball < ((ball1._width / 2) + (pinkwall1._width / 2)))) { ball1._y = ((pinkwall1._y + (pinkwall1._height / 2)) + (ball1._height / 2)) + 0.2; } if ((((pinkwall1_movement == true) and (differencepink12 <= 0.2)) and (differencepink12 >= -8)) and (distance_x_between_pinkwall1_and_ball2 < ((ball2._width / 2) + (pinkwall1._width / 2)))) { ball2._y = ((pinkwall1._y + (pinkwall1._height / 2)) + (ball2._height / 2)) + 0.2; } if (((((differencepink1 <= 0.5) && (differencepink1 >= -2)) && (distance_between_pinkwall4_and_ball <= 1)) && (distance_x_between_pinkwall1_and_ball < ((ball1._width / 2) + (pinkwall1._width / 2)))) or ((((differencepink12 <= 0.5) && (differencepink12 >= -2)) && (distance_between_pinkwall4_and_ball2 <= 1)) && (distance_x_between_pinkwall1_and_ball2 < ((ball2._width / 2) + (pinkwall1._width / 2))))) { pink1_hit = true; ball_location = false; ball1._y = 2000; ball2._y = 2000; } if (((((((differencepink1 <= 0.5) && (differencepink1 >= -2)) && (distance_between_aquawall2y_and_ball <= 1)) && (ball1._x > ((aquawall2._x - (aquawall2._width / 2)) - (ball1._width / 2)))) && (ball1._x < ((aquawall2._x + (aquawall2._width / 2)) + (ball1._width / 2)))) && (distance_x_between_pinkwall1_and_ball < ((ball1._width / 2) + (pinkwall1._width / 2)))) or ((((((differencepink12 <= 0.5) && (differencepink12 >= -2)) && (distance_between_aquawall2y_and_ball2 <= 1)) && (ball2._x > ((aquawall2._x - (aquawall2._width / 2)) - (ball2._width / 2)))) && (ball2._x < ((aquawall2._x + (aquawall2._width / 2)) + (ball2._width / 2)))) && (distance_x_between_pinkwall1_and_ball2 < ((ball2._width / 2) + (pinkwall1._width / 2))))) { pink1_hit = true; ball_location = false; ball1._y = 2000; ball2._y = 2000; } differencepink4 = ((pinkwall4._y - ball1._y) - (pinkwall4._height / 2)) - (ball1._height / 2); differencepink42 = ((pinkwall4._y - ball2._y) - (pinkwall4._height / 2)) - (ball2._height / 2); distance_between_aquawall1y_and_ball = Math.abs(((ball1._y - aquawall1._y) - (aquawall2._height / 2)) - (ball1._height / 2)); distance_between_aquawall1y_and_ball2 = Math.abs(((ball2._y - aquawall1._y) - (aquawall2._height / 2)) - (ball2._height / 2)); distance_x_between_pinkwall4_and_ball = Math.abs(pinkwall4._x - ball1._x); distance_x_between_pinkwall4_and_ball2 = Math.abs(pinkwall4._x - ball2._x); if ((((pinkwall4_movement == true) and (differencepink4 <= 0.2)) and (differencepink4 >= -8)) and (distance_x_between_pinkwall4_and_ball < ((ball1._width / 2) + (pinkwall4._width / 2)))) { ball1._y = ((pinkwall4._y - (pinkwall4._height / 2)) - (ball1._height / 2)) - 0.2; } if ((((pinkwall4_movement == true) and (differencepink42 <= 0.2)) and (differencepink42 >= -8)) and (distance_x_between_pinkwall4_and_ball2 < ((ball2._width / 2) + (pinkwall4._width / 2)))) { ball2._y = ((pinkwall4._y - (pinkwall4._height / 2)) - (ball2._height / 2)) - 0.2; } if (((((((differencepink4 <= 0.5) && (differencepink4 >= -2)) && (distance_between_aquawall1y_and_ball <= 1)) && (ball1._x > ((aquawall1._x - (aquawall1._width / 2)) - (ball1._width / 2)))) && (ball1._x < ((aquawall1._x + (aquawall1._width / 2)) + (ball1._width / 2)))) && (distance_x_between_pinkwall4_and_ball < ((ball1._width / 2) + (pinkwall4._width / 2)))) or ((((((differencepink42 <= 0.5) && (differencepink42 >= -2)) && (distance_between_aquawall1y_and_ball2 <= 1)) && (ball2._x > ((aquawall1._x - (aquawall1._width / 2)) - (ball2._width / 2)))) && (ball2._x < ((aquawall1._x + (aquawall1._width / 2)) + (ball2._width / 2)))) && (distance_x_between_pinkwall4_and_ball2 < ((ball2._width / 2) + (pinkwall4._width / 2))))) { pink4_hit = true; ball_location = false; ball1._y = 2000; ball2._y = 2000; } distance_between_aquawall1x_and_ball = Math.abs(((aquawall1._x - ball1._x) - (aquawall1._width / 2)) - (ball1._width / 2)); distance_between_aquawall1x_and_ball2 = Math.abs(((aquawall1._x - ball2._x) - (aquawall1._width / 2)) - (ball2._width / 2)); distance_between_aquawall2x_and_ball = Math.abs(((aquawall2._x - ball1._x) - (aquawall2._width / 2)) - (ball1._width / 2)); distance_between_aquawall2x_and_ball2 = Math.abs(((aquawall2._x - ball2._x) - (aquawall2._width / 2)) - (ball2._width / 2)); if (((((((differencegreen <= 0.5) && (greenwall_movement)) and (differencegreen >= -2)) && (distance_between_aquawall1x_and_ball <= 1)) && (ball1._y > ((aquawall1._y - (aquawall1._height / 2)) - (ball1._height / 2)))) && (distance_y_between_greenwall_and_ball < ((ball1._height / 2) + (greenwall._height / 2)))) or ((((((differencegreen2 <= 0.5) && (differencegreen2 >= -2)) and greenwall_movement) && (distance_between_aquawall1x_and_ball2 <= 1)) && (ball2._y > ((aquawall1._y - (aquawall1._height / 2)) - (ball2._height / 2)))) && (distance_y_between_greenwall_and_ball2 < ((ball2._height / 2) + (greenwall._height / 2))))) { green_hit = true; ball_location = false; ball1._x = 2000; ball2._x = 2000; } if (((((((differencegreen <= 0.5) && (greenwall_movement)) and (differencegreen >= -2)) && (distance_between_aquawall2x_and_ball <= 1)) && (ball1._y < ((aquawall2._y + (aquawall2._height / 2)) + (ball1._height / 2)))) && (distance_y_between_greenwall_and_ball < ((ball1._height / 2) + (greenwall._height / 2)))) or ((((((differencegreen2 <= 0.5) && (greenwall_movement)) and (differencegreen2 >= -2)) && (distance_between_aquawall2x_and_ball2 <= 1)) && (ball2._y < ((aquawall2._y + (aquawall2._height / 2)) + (ball2._height / 2)))) && (distance_y_between_greenwall_and_ball2 < ((ball2._height / 2) + (greenwall._height / 2))))) { green_hit = true; ball_location = false; ball1._x = 2000; ball2._x = 2000; } if (ball_location) { ball1_xlocation = ball1._x; ball1_ylocation = ball1._y; ball2_xlocation = ball2._x; ball2_ylocation = ball2._y; } else { explosionsound2 = true; if (ball1_xlocation > (Stage.width / 2)) { if (blue_hit == true) { gray_is_hit_blue = true; } if (green_hit == true) { black_is_hit_green = true; } if (pink1_hit == true) { black_is_hit_pink1 = true; } if (pink4_hit == true) { black_is_hit_pink4 = true; } if (aqua1_hit == true) { black_is_hit_aqua1 = true; } if (aqua2_hit == true) { black_is_hit_aqua2 = true; } } else if (ball1_xlocation < (Stage.width / 2)) { if (blue_hit == true) { black_is_hit_blue = true; } if (green_hit == true) { gray_is_hit_green = true; } if (pink1_hit == true) { gray_is_hit_pink1 = true; } if (pink4_hit == true) { gray_is_hit_pink4 = true; } if (aqua1_hit == true) { gray_is_hit_aqua1 = true; } if (aqua2_hit == true) { gray_is_hit_aqua2 = true; } } ball_locator(); } };
Instance of Symbol 2195 MovieClip "ball1" in Frame 29
onClipEvent (enterFrame) { function move(xmove, ymove) { _x = (_x + xmove); _y = (_y + ymove); if (hitTest(_root.leftwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightup)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightup.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightup.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightup.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightup.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightdown)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightdown.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightdown.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightdown.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightdown.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.middlewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.midleft)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.midleft.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.midleft.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.midleft.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.midleft.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.midbottom)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.midbottom.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.midbottom.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.midbottom.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.midbottom.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.topwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.topwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.topwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.topwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bottomwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bottomwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bottomwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bottomwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.l1)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.l1.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.l1.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.l1.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.l1.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.l2)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.l2.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.l2.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.l2.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.l2.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.l3)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.l3.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.l3.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.l3.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.l3.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.r1)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.r1.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.r1.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.r1.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.r1.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.r2)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.r2.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.r2.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.r2.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.r2.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.r3)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.r3.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.r3.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.r3.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.r3.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.r4)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.r4.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.r4.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.r4.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.r4.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rb)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rb.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rb.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rb.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rb.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rt)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rt.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rt.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rt.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rt.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.m1)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.m1.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.m1.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.m1.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.m1.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.m2)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.m2.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.m2.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.m2.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.m2.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.m3)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.m3.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.m3.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.m3.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.m3.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.m4)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.m4.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.m4.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.m4.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.m4.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.m5)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.m5.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.m5.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.m5.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.m5.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.pinkwall1)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.pinkwall1.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.pinkwall1.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.pinkwall1.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.pinkwall1.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bluewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bluewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bluewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bluewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bluewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.clubchicken)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.clubchicken.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.clubchicken.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.clubchicken.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.clubchicken.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.pinkwall2)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.pinkwall2.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.pinkwall2.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.pinkwall2.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.pinkwall2.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.pinkwall3)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.pinkwall3.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.pinkwall3.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.pinkwall3.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.pinkwall3.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.pinkwall4)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.pinkwall4.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.pinkwall4.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.pinkwall4.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.pinkwall4.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.greenwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.greenwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.greenwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.greenwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.greenwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.orangewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.orangewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.orangewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.orangewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.orangewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.aquawall1)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.aquawall1.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.aquawall1.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.aquawall1.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.aquawall1.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.aquawall2)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.aquawall2.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.aquawall2.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.aquawall2.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.aquawall2.getBounds(_root).yMax) - 0.1)); } } } if (_root.ball_movement == true) { if (Key.isDown(37)) { move(-5, 0); } if (Key.isDown(39)) { move(5, 0); } if (Key.isDown(38)) { move(0, -5); } if (Key.isDown(40)) { move(0, 5); } } }
Frame 30
function restartLevel() { _root.scoresubmit28 = savefile.data.scoresubmit28; savefile.flush(); soundstart = false; small = false; decoydone = false; if (witcher) { gotoAndStop ("l31"); witcher = false; } if ((var29 != true) and (var30 != true)) { var28 = true; } var27 = false; if (_root.var1) { _root.score = 1; } else if (_root.var2) { _root.score = 2; } else if (_root.var3) { _root.score = 3; } else if (_root.var4) { _root.score = 4; } else if (_root.var5) { _root.score = 5; } else if (_root.var6) { _root.score = 6; } else if (_root.var71) { _root.score = 7; } else if (_root.var8) { _root.score = 8; } else if (_root.var9) { _root.score = 9; } else if (_root.var10) { _root.score = 10; } else if (_root.var11) { _root.score = 11; } else if (_root.var12) { _root.score = 12; } else if (_root.var13) { _root.score = 13; } else if (_root.var14) { _root.score = 14; } else if (_root.var15) { _root.score = 15; } else if (_root.var16) { _root.score = 16; } else if (_root.var17) { _root.score = 17; } else if (_root.var18) { _root.score = 18; } else if (_root.var19) { _root.score = 19; } else if (_root.var20) { _root.score = 20; } else if (_root.var21) { _root.score = 21; } else if (_root.var22) { _root.score = 22; } else if (_root.var23) { _root.score = 23; } else if (_root.var24) { _root.score = 24; } else if (_root.var25) { _root.score = 25; } else if (_root.var26) { _root.score = 26; } else if (_root.var27) { _root.score = 27; } else if (_root.var28) { _root.score = 28; } else if (_root.var29) { _root.score = 29; } else if (_root.var30) { _root.score = 30; } savefile.data.score = _root.score; savefile.flush(); radius = ball1._height / 2; SPACE_possible = true; transporter2._alpha = 100; transporter1._alpha = 100; greenwall_movement = false; pinkwall_movement = false; orangewall1_movement = false; orangewall_movement = false; redwall_movement = false; bluewall_movement = false; pinkswitch.gotoAndStop(1); greenswitch.gotoAndStop(1); orangeswitch.gotoAndStop(1); blueswitch.gotoAndStop(1); transporter = false; ball_location = true; black_is_hit_green = false; gray_is_hit_green = false; green_hit = false; black_is_hit_pink = false; gray_is_hit_pink = false; pink_hit = false; black_is_hit_red = false; gray_is_hit_red = false; red_hit = false; black_is_hit_orange1 = false; gray_is_hit_orange1 = false; orange1_hit = false; black_is_hit_red = false; gray_is_hit_red = false; red_hit = false; ball1_is_pushed_by_red_wall = false; ball2_is_pushed_by_red_wall = false; black_is_hit_orange2 = false; gray_is_hit_orange2 = false; orange2_hit = false; ball1_is_pushed_by_orange2_wall = false; ball2_is_pushed_by_orange2_wall = false; black_is_hit_blue = false; gray_is_hit_blue = false; blue_hit = false; ball1_is_pushed_by_blue_wall = false; ball2_is_pushed_by_blue_wall = false; greenswitch_is_attached_to_crate4 = true; _root.decoy2.gotoAndStop(1); _root.decoy.gotoAndStop(1); _root.ball1.gotoAndStop(1); _root.ball1.gotoAndStop(1); _root.ball2.gotoAndStop(1); _root.ball2.gotoAndStop(1); _root.crate1.gotoAndStop(1); _root.crate2.gotoAndStop(1); decoy._x = -1000; decoy2._x = -1000; ball_movement = true; finisher = false; decoydone = false; _root.hit_crate1 = false; _root.ball1_and_crate1_rightside_touching = false; _root.ball1_and_crate1_leftside_touching = false; _root.ball2_and_crate1_rightside_touching = false; _root.ball2_and_crate1_leftside_touching = false; _root.cant_move_crate1_right_against_r5 = false; _root.cant_move_crate1_left_against_r6 = false; _root.cant_move_crate1_left_against_insidebottom = false; _root.cant_move_crate1_left_against_r2 = false; _root.cant_move_crate1_down_against_r6 = false; _root.cant_move_crate1_down_against_bottomwall = false; _root.cant_move_crate1_down_against_insidebottom = false; _root.cant_move_crate1_up_against_orangewall2 = false; _root.cant_move_crate1_up_against_r1 = false; _root.cant_move_crate1_up_against_r2 = false; _root.red_wall_and_crate1_rightside_touching = false; _root.crate1_against_red_wall_boundaries_prevention = false; _root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall = false; _root.ball2_is_pushed_by_crate1_is_pushed_by_red_wall = false; _root.crate1_is_pushed_by_ball1_is_pushed_by_redwall = false; _root.crate1_is_pushed_by_ball2_is_pushed_by_redwall = false; _root.crate1_is_pushed_by_red_wall = false; timing = true; elapsedTime = 0; startTime = getTimer(); seconds = 0; crate1._x = 476.1; crate1._y = 388.2; crate2._x = 163.8; crate2._y = 216.2; crate3._x = 163.8; crate3._y = 331; crate4._x = 428.8; crate4._y = 76.3; orangeswitch._x = 421.7; orangeswitch._y = 151.5; pinkswitch._x = 577.2; pinkswitch._y = 77.6; blueswitch._x = 278.3; blueswitch._y = 234.6; redkey._x = 419.4; redkey._y = 234.6; pinkwall._x = 229.2; pinkwall._y = 152.7; redwall._x = 580.4; redwall._y = 235.4; orangewall1._x = 118.5; orangewall1._y = 672.4; orangewall._x = 499.1; orangewall._y = 76.6; bluewall._x = 577.1; bluewall._y = 672.4; greenwall._x = 192.1; greenwall._y = 270; ball1._x = 278.3; ball1._y = 153.9; ball2._x = 477.3; ball2._y = 483.6; transporter1._x = 277.5; transporter1._y = 313.8; transporter2._x = 577.1; transporter2._y = 391.8; youwin._x = 10000; winningscreen._x = 1000; finish._x = 219.1; finish._y = 270; } function ball1_old_location() { x_location = ball1._x; y_location = ball1._y; } function ball_locator() { ball_location = true; if (black_is_hit_green == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy.gotoAndStop(2); _root.decoy2.gotoAndStop(3); } if (gray_is_hit_green == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); } if (black_is_hit_pink == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy.gotoAndStop(2); _root.decoy2.gotoAndStop(3); } if (gray_is_hit_pink == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); } if (black_is_hit_orange1 == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy.gotoAndStop(2); _root.decoy2.gotoAndStop(3); } if (gray_is_hit_orange1 == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); } if (black_is_hit_red == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy.gotoAndStop(2); _root.decoy2.gotoAndStop(3); } if (gray_is_hit_red == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); } } stop(); _root.options._x = 28.1; _root.restartbutton._x = 41.9; _root.QW._x = 73.8; _root.P._x = 55.6; _root.BN._x = 66; totalRestarts = 0; _root.option.hintbox.gotoAndStop(1); _root.option.meter.gotoAndStop(28); restartLevel(); youwin.onPress = function () { gotoAndStop ("l31"); }; ball1.onEnterFrame = function () { if ((crate3.hitTest(transporter2) or crate2.hitTest(transporter2)) or bluewall.hitTest(transporter2)) { transporter1._alpha = 67; transporter2._alpha = 67; transporter = true; } if (!transporter) { if (crate2.hitTest(transporter1)) { _root.transstart = true; crate2._x = transporter2._x; crate2._y = transporter2._y; } if (crate3.hitTest(transporter1)) { _root.transstart = true; crate3._x = transporter2._x; crate3._y = transporter2._y; } } if (!greenswitch_is_attached_to_crate4) { orangewall_movement = false; } if (orangewall1.hitTest(_root.greenswitch.button) and (_root.greenswitch._currentframe == 1)) { switchstart = true; _root.greenswitch.gotoAndStop(2); if (greenwall._y >= 425.1) { greenwall_movement = false; } else { greenwall_movement = true; } } if (this.hitTest(redkey)) { keystart = true; redkey._x = 100000 /* 0x0186A0 */; redwall_movement = true; _root.ball1.scan.gotoAndStop(3); } if ((crate2.hitTest(_root.orangeswitch.button) or crate3.hitTest(_root.orangeswitch.button)) and (_root.orangeswitch._currentframe == 1)) { switchstart = true; _root.orangeswitch.gotoAndStop(2); if (orangewall1._y <= 279.4) { orangewall1_movement = false; } else if (greenswitch_is_attached_to_crate4 == true) { orangewall_movement = true; orangewall1_movement = true; } } if ((crate2.hitTest(_root.pinkswitch.button) or crate3.hitTest(_root.pinkswitch.button)) and (_root.pinkswitch._currentframe == 1)) { switchstart = true; _root.pinkswitch.gotoAndStop(2); if (pinkwall._x >= (((blacktip4._x - (blacktip4._width / 2)) - (pinkwall._width / 2)) - 0.1)) { pinkwall_movement = false; } else if (decoydone == false) { pinkwall_movement = true; } } if (crate1.hitTest(_root.blueswitch.button) and (_root.blueswitch._currentframe == 1)) { switchstart = true; _root.blueswitch.gotoAndStop(2); if (bluewall._y <= 342.8) { bluewall_movement = false; } else { bluewall_movement = true; } } if (greenwall._y > 425.1) { greenwall_movement = false; soundstart = true; greenwall._y = 425.1; } if (pinkwall.hitTest(blacktip4)) { pinkwall_movement = false; soundstart = true; pinkwall._x = ((blacktip4._x - (blacktip4._width / 2)) - (pinkwall._width / 2)) - 0.1; } if (bluewall._y < 342.8) { bluewall_movement = false; soundstart = true; bluewall._y = 342.8; } if (orangewall1._y < 279.4) { orangewall1_movement = false; soundstart = true; orangewall1._y = 279.4; } if (redwall.hitTest(blacktip1)) { redwall_movement = false; soundstart = true; redwall._x = ((blacktip1._x + (blacktip1._width / 2)) + (redwall._width / 2)) + 0.1; } if (scoresubmit28) { scoresubmit = false; } else if (scoresubmit28 == false) { scoresubmit = true; } if (this.hitTest(finish)) { timing = false; seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if ((score == 28) or scoresubmit) { level28_best_time = seconds; scoresubmit28 = true; savefile.data.scoresubmit28 = _root.scoresubmit28; savefile.flush(); } if (seconds < level28_best_time) { level28_best_time = seconds; } savefile.data.level28_best_time = _root.level28_best_time; savefile.flush(); if (_root.score <= 29) { _root.score = 29; } savefile.data.score = _root.score; savefile.flush(); SPACE_possible = false; ball_movement = false; win._x = Stage.width / 2; win._y = Stage.height / 2; _root.win.instructions.gotoAndStop(28); _root.win.meter.gotoAndStop(29); } if (Key.isDown(32) && (SPACE_possible == false)) { finisher = true; } if (finisher) { if (!Key.isDown(32)) { win._x = 10000; gotoAndStop ("l31"); finisher = false; SPACE_possible = true; } } }; _root.onEnterFrame = function () { seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if (!ball_movement) { timing = false; startTime = getTimer() - elapsedTime; } else { timing = true; } if (timing) { elapsedTime = getTimer() - startTime; } if (var28) { w_works = false; } else { w_works = true; } if (((option._x != (Stage.width / 2)) and (instruction._x != (Stage.width / 2))) and (win._x != (Stage.width / 2))) { if (Key.isDown(81)) { q_is_DOWN = true; } if (q_is_DOWN) { if (!Key.isDown(81)) { gotoAndStop ("l34"); q_is_DOWN = false; } } if (Key.isDown(87)) { w_is_DOWN = true; } if (w_is_DOWN) { if (!Key.isDown(87)) { if (w_works) { gotoAndStop ("l31"); } w_is_DOWN = false; } } ballx = ball1._x; bally = ball1._y; decoyx = decoy._x; cratey = crate1._y; if (Key.isDown(78)) { n_is_DOWN = true; } if (n_is_DOWN) { if (!Key.isDown(78)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); n_is_DOWN = false; } } } if (Key.isDown(66)) { b_is_DOWN = true; } if (b_is_DOWN) { if (!Key.isDown(66)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); b_is_DOWN = false; } } } if (SPACE_possible) { if (Key.isDown(32)) { SPACE_is_DOWN = true; } if (SPACE_is_DOWN) { if (!Key.isDown(32)) { ball1_old_location(); ball1._x = ball2._x; ball1._y = ball2._y; ball2._x = x_location; ball2._y = y_location; SPACE_is_DOWN = false; } } } } if (greenswitch_is_attached_to_crate4 == true) { greenswitch._x = crate4._x; greenswitch._y = crate4._y; } ballx = ball1._x; bally = ball1._y; if (greenwall_movement) { greenwall._y = greenwall._y + 1; } if (pinkwall_movement) { pinkwall._x = pinkwall._x + 0.5; } if (orangewall1_movement) { orangewall1._y = orangewall1._y - 0.45; } if (orangewall_movement) { orangewall._x = orangewall._x - 0.5; } if (redwall_movement) { redwall._x = redwall._x - 0.5; } if (bluewall_movement) { bluewall._y = bluewall._y - 0.7; } differencegreen = ((ball1._y - greenwall._y) - (greenwall._height / 2)) - (ball1._height / 2); differencegreen2 = ((ball2._y - greenwall._y) - (greenwall._height / 2)) - (ball2._height / 2); distance_between_bottomwall_and_ball = Math.abs(((bottomwall._y - ball1._y) - (bottomwall._height / 2)) - (ball1._height / 2)); distance_between_bottomwall_and_ball2 = Math.abs(((bottomwall._y - ball2._y) - (bottomwall._height / 2)) - (ball2._height / 2)); distance_x_between_greenwall_and_ball = Math.abs(greenwall._x - ball1._x); distance_x_between_greenwall_and_ball2 = Math.abs(greenwall._x - ball2._x); if ((((greenwall_movement == true) and (differencegreen <= 0.2)) and (differencegreen >= -8)) and (distance_x_between_greenwall_and_ball < ((ball1._width / 2) + (greenwall._width / 2)))) { ball1._y = ((greenwall._y + (greenwall._height / 2)) + (ball1._height / 2)) + 0.2; } if ((((greenwall_movement == true) and (differencegreen2 <= 0.2)) and (differencegreen2 >= -8)) and (distance_x_between_greenwall_and_ball2 < ((ball2._width / 2) + (greenwall._width / 2)))) { ball2._y = ((greenwall._y + (greenwall._height / 2)) + (ball2._height / 2)) + 0.2; } if (((((differencegreen <= 1) && (differencegreen > -2)) && (distance_between_bottomwall_and_ball <= 2)) && (distance_x_between_greenwall_and_ball < ((ball1._width / 2) + (greenwall._width / 2)))) or ((((differencegreen2 <= 0.5) && (differencegreen2 > -1)) && (distance_between_bottomwall_and_ball2 <= 0.5)) && (distance_x_between_greenwall_and_ball2 < ((ball2._width / 2) + (greenwall._width / 2))))) { green_hit = true; ball_location = false; ball1._y = 2000; ball2._y = 2000; } differencepink = ((ball1._x - pinkwall._x) - (pinkwall._width / 2)) - (ball1._width / 2); differencepink2 = ((ball2._x - pinkwall._x) - (pinkwall._width / 2)) - (ball2._width / 2); distance_between_leftmiddlewall_and_ball = Math.abs(((middlewall._x - ball1._x) - (middlewall._width / 2)) - (ball1._width / 2)); distance_between_leftmiddlewall_and_ball2 = Math.abs(((middlewall._x - ball2._x) - (middlewall._width / 2)) - (ball2._width / 2)); distance_y_between_pinkwall_and_ball = Math.abs(pinkwall._y - ball1._y); distance_y_between_pinkwall_and_ball2 = Math.abs(pinkwall._y - ball2._y); if ((((pinkwall_movement == true) and (differencepink <= 0.2)) and (differencepink >= -8)) and (distance_y_between_pinkwall_and_ball < ((ball1._height / 2) + (pinkwall._height / 2)))) { ball1._x = ((pinkwall._x + (pinkwall._width / 2)) + (ball1._width / 2)) + 0.2; } if ((((pinkwall_movement == true) and (differencepink2 <= 0.2)) and (differencepink2 >= -8)) and (distance_y_between_pinkwall_and_ball2 < ((ball2._height / 2) + (pinkwall._height / 2)))) { ball2._x = ((pinkwall._x + (pinkwall._width / 2)) + (ball2._width / 2)) + 0.2; } if (((((differencepink <= 0.5) && (differencepink >= -1)) && (distance_between_leftmiddlewall_and_ball <= 0.5)) && (distance_y_between_pinkwall_and_ball < ((ball1._height / 2) + (pinkwall._height / 2)))) or ((((differencepink2 <= 0.5) && (differencepink2 >= -1)) && (distance_between_leftmiddlewall_and_ball2 <= 0.5)) && (distance_y_between_pinkwall_and_ball2 < ((ball2._height / 2) + (pinkwall._height / 2))))) { pink_hit = true; ball_location = false; ball1._x = 2000; ball2._x = 2000; } differenceorange1 = ((orangewall1._y - ball1._y) - (orangewall1._height / 2)) - (ball1._height / 2); differenceorange12 = ((orangewall1._y - (orangewall1._height / 2)) - ball2._y) - (ball2._height / 2); distance_between_topwall_and_ball = Math.abs(((ball1._y - topwall._y) - (topwall._height / 2)) - (ball1._height / 2)); distance_between_topwall_and_ball2 = Math.abs(((ball2._y - topwall._y) - (topwall._height / 2)) - (ball2._height / 2)); distance_between_orangewall_and_ball = Math.abs(((ball1._y - orangewall._y) - (orangewall._height / 2)) - (ball1._height / 2)); distance_between_orangewall_and_ball2 = Math.abs(((ball2._y - orangewall._y) - (orangewall._height / 2)) - (ball2._height / 2)); distance_x_between_orangewall1_and_ball = Math.abs(orangewall1._x - ball1._x); distance_x_between_orangewall1_and_ball2 = Math.abs(orangewall1._x - ball2._x); distance_x_between_orangewall_and_ball = Math.abs(orangewall._x - ball1._x); distance_x_between_orangewall_and_ball2 = Math.abs(orangewall._x - ball2._x); if ((((orangewall1_movement == true) and (differenceorange1 <= 0.2)) and (differenceorange1 >= -8)) and (distance_x_between_orangewall1_and_ball < ((ball1._width / 2) + (orangewall1._width / 2)))) { ball1._y = ((orangewall1._y - (orangewall1._height / 2)) - (ball1._height / 2)) - 0.2; } if ((((orangewall1_movement == true) and (differenceorange12 <= 0.2)) and (differenceorange12 >= -8)) and (distance_x_between_orangewall1_and_ball2 < ((ball2._width / 2) + (orangewall1._width / 2)))) { ball2._y = ((orangewall1._y - (orangewall1._height / 2)) - (ball2._height / 2)) - 0.2; } if (((((differenceorange1 <= 0.5) && (differenceorange1 > -1)) && (distance_between_topwall_and_ball <= 0.5)) && (distance_x_between_orangewall1_and_ball < ((ball1._width / 2) + (orangewall1._width / 2)))) or ((((differenceorange12 <= 0.5) && (differenceorange12 > -1)) && (distance_between_topwall_and_ball2 <= 0.5)) && (distance_x_between_orangewall1_and_ball2 < ((ball2._width / 2) + (orangewall1._width / 2))))) { orange1_hit = true; ball_location = false; ball1._y = 2000; ball2._y = 2000; } if ((((((differenceorange1 <= 0.5) && (differenceorange1 > -1)) && (distance_between_orangewall_and_ball <= 0.5)) && (distance_x_between_orangewall1_and_ball < ((ball1._width / 2) + (orangewall1._width / 2)))) and (distance_x_between_orangewall_and_ball < ((ball1._width / 2) + (orangewall._width / 2)))) or (((((differenceorange12 <= 0.5) && (differenceorange12 > -1)) && (distance_between_orangewall_and_ball2 <= 0.5)) && (distance_x_between_orangewall1_and_ball2 < ((ball2._width / 2) + (orangewall1._width / 2)))) and (distance_x_between_orangewall_and_ball2 < ((ball2._width / 2) + (orangewall._width / 2))))) { orange1_hit = true; ball_location = false; ball1._y = 2000; ball2._y = 2000; } differencered = ((redwall._x - (redwall._width / 2)) - (ball1._width / 2)) - ball1._x; differencered2 = ((redwall._x - (redwall._width / 2)) - (ball2._width / 2)) - ball2._x; distance_between_r2_and_ball = Math.abs(((ball1._x - r2._x) - (r2._width / 2)) - (ball1._width / 2)); distance_between_r2_and_ball2 = Math.abs(((ball2._x - r2._x) - (r2._width / 2)) - (ball2._width / 2)); distance_between_insidebottom_and_ball = Math.abs(((ball1._x - middlewall._x) - (middlewall._width / 2)) - (ball1._width / 2)); distance_between_insidebottom_and_ball2 = Math.abs(((ball2._x - middlewall._x) - (middlewall._width / 2)) - (ball2._width / 2)); distance_y_between_redwall_and_ball = Math.abs(redwall._y - ball1._y); distance_y_between_redwall_and_ball2 = Math.abs(redwall._y - ball2._y); if ((((redwall_movement == true) and (differencered <= 1)) and (differencered >= -8)) and (distance_y_between_redwall_and_ball < ((ball1._height / 2) + (redwall._height / 2)))) { ball1._x = ((redwall._x - (redwall._width / 2)) - (ball1._width / 2)) - 0.2; ball1_is_pushed_by_red_wall = true; } else { ball1_is_pushed_by_red_wall = false; } if ((((redwall_movement == true) and (differencered2 <= 0.2)) and (differencered2 >= -8)) and (distance_y_between_redwall_and_ball2 < ((ball2._height / 2) + (redwall._height / 2)))) { ball2._x = ((redwall._x - (redwall._width / 2)) - (ball2._width / 2)) - 0.2; ball2_is_pushed_by_red_wall = true; } else { ball2_is_pushed_by_red_wall = false; } if (((((differencered <= 0.5) && (differencered >= -1)) && (((_root.distance_between_r2_and_ball <= 0.5) and (_root.y_in_position_with_r2 == true)) or ((_root.distance_between_insidebottom_and_ball <= 0.5) and (_root.y_in_position_with_insidebottom == true)))) && (distance_y_between_redwall_and_ball < ((ball1._height / 2) + (redwall._height / 2)))) or ((((differencered2 <= 0.5) && (differencered2 >= -1)) && (((_root.distance_between_r2_and_ball2 <= 0.5) and (_root.y_in_position_with_r22 == true)) or ((_root.distance_between_insidebottom_and_ball2 <= 0.5) and (_root.y_in_position_with_insidebottom2 == true)))) && (distance_y_between_redwall_and_ball2 < ((ball2._height / 2) + (redwall._height / 2))))) { red_hit = true; ball_location = false; ball1._x = 2000; ball2._x = 2000; } differenceorange = ((orangewall._x - (orangewall._width / 2)) - (ball1._width / 2)) - ball1._x; differenceorange2 = ((orangewall._x - (orangewall._width / 2)) - (ball2._width / 2)) - ball2._x; distance_between_leftwall_and_ball = Math.abs(((ball1._x - leftwall._x) - (leftwall._width / 2)) - (ball1._width / 2)); distance_between_leftwall_and_ball2 = Math.abs(((ball2._x - leftwall._x) - (leftwall._width / 2)) - (ball2._width / 2)); distance_y_between_orangewall_and_ball = Math.abs(orangewall._y - ball1._y); distance_y_between_orangewall_and_ball2 = Math.abs(orangewall._y - ball2._y); if ((((orangewall_movement == true) and (differenceorange <= 0.2)) and (differenceorange >= -8)) and (distance_y_between_orangewall_and_ball < ((ball1._height / 2) + (orangewall._height / 2)))) { ball1._x = ((orangewall._x - (orangewall._width / 2)) - (ball1._width / 2)) - 0.2; ball1_is_pushed_by_orange_wall = true; } else { ball1_is_pushed_by_orange_wall = false; } if ((((orangewall_movement == true) and (differenceorange2 <= 0.2)) and (differenceorange2 >= -8)) and (distance_y_between_orangewall_and_ball2 < ((ball2._height / 2) + (orangewall._height / 2)))) { ball2._x = ((orangewall._x - (orangewall._width / 2)) - (ball2._width / 2)) - 0.2; ball2_is_pushed_by_orange_wall = true; } else { ball2_is_pushed_by_orange_wall = false; } if (ball_location) { ball1_xlocation = ball1._x; ball1_ylocation = ball1._y; ball2_xlocation = ball2._x; ball2_ylocation = ball2._y; } else { explosionsound2 = true; if (ball1_xlocation < (Stage.width / 2)) { if (green_hit == true) { black_is_hit_green = true; } if (pink_hit == true) { black_is_hit_green = true; } if (orange1_hit == true) { black_is_hit_orange1 = true; } if (red_hit == true) { gray_is_hit_red = true; } } else if (ball1_xlocation > (Stage.width / 2)) { if (green_hit == true) { gray_is_hit_green = true; } if (pink_hit == true) { gray_is_hit_green = true; } if (orange1_hit == true) { gray_is_hit_orange1 = true; } if (red_hit == true) { black_is_hit_red = true; } } ball_locator(); } };
Instance of Symbol 1071 MovieClip "crate4" in Frame 30
onClipEvent (load) { _root.hit_crate4 = false; _root.ball1_and_crate4_rightside_touching = false; _root.ball1_and_crate4_leftside_touching = false; _root.ball2_and_crate4_rightside_touching = false; _root.ball2_and_crate4_leftside_touching = false; _root.cant_move_crate4_up_against_topwall = false; _root.orange_wall_and_crate4_rightside_touching = false; _root.crate4_against_orange_wall_boundaries_prevention = false; _root.ball1_is_pushed_by_crate4_is_pushed_by_orange_wall = false; _root.ball2_is_pushed_by_crate4_is_pushed_by_orange_wall = false; _root.crate4_is_pushed_by_ball1_is_pushed_by_orangewall = false; _root.crate4_is_pushed_by_ball2_is_pushed_by_orangewall = false; _root.crate4_is_pushed_by_orange_wall = false; } onClipEvent (enterFrame) { _root.distance_y_between_ball1_and_crate4 = Math.abs(_root.ball1._y - _y); _root.difference_x_ball1_with_crate4_rightside = ((_root.ball1._x - _x) - (_width / 2)) - (_root.ball1._width / 2); _root.difference_x_ball1_with_crate4_leftside = ((_x - _root.ball1._x) - (_width / 2)) - (_root.ball1._width / 2); _root.distance_y_between_ball2_and_crate4 = Math.abs(_root.ball2._y - _y); _root.difference_x_ball2_with_crate4_rightside = ((_root.ball2._x - _x) - (_width / 2)) - (_root.ball2._width / 2); _root.difference_x_ball2_with_crate4_leftside = ((_x - _root.ball2._x) - (_width / 2)) - (_root.ball2._width / 2); _root.difference_x_orange_with_crate4_left = ((_x - (_width / 2)) - _root.orangewall._x) - (_root.orangewall._width / 2); _root.difference_x_orange_with_crate4_right = ((_root.orangewall._x - (_root.orangewall._width / 2)) - _x) - (_width / 2); _root.difference_y_orange_with_crate4_up = ((_y - (_height / 2)) - _root.orangewall._y) - (_root.orangewall._height / 2); _root.difference_y_orange_with_crate4_down = ((_root.orangewall._y - (_root.orangewall._height / 2)) - _y) - (_height / 2); _root.distance_x_between_orangewall_and_crate4 = Math.abs(_root.orangewall._x - _x); _root.distance_y_between_orangewall_and_crate4 = Math.abs(_root.orangewall._y - _y); _root.difference_x_crate4_leftside_with_leftwall = ((_x - (_width / 2)) - (_root.leftwall._width / 2)) - _root.leftwall._x; if (hitTest(_root.topwall) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate4_up_against_topwall = true; } if (((Math.abs(((_y - _root.topwall._y) - (_root.topwall._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.topwall._x + (_root.topwall._width / 2)) + (_width / 2)))) and (_x > ((_root.topwall._x - (_root.topwall._width / 2)) - (_width / 2)))) { _root.cant_move_crate4_up_against_topwall = true; } else { _root.cant_move_crate4_up_against_topwall = false; } if (hitTest(_root.orangewall)) { _root.orangewall_crate4_hit = true; if ((_root.hit_crate4 == true) and (_root.moveright == true)) { if ((_root.crate4_against_orange_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate4_is_pushed_by_orange_wall == false)) { _x = (_x - ((getBounds(_root).xMax - _root.orangewall.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate4_right_against_orange_wall = true; } } if ((_root.hit_crate4 == true) and (_root.moveleft == true)) { if ((_root.crate4_against_orange_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate4_is_pushed_by_orange_wall == false)) { _x = (_x - ((getBounds(_root).xMin - _root.orangewall.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate4_left_against_orange_wall = true; } } if ((_root.hit_crate4 == true) and (_root.movedown == true)) { if ((_root.crate4_against_orange_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate4_is_pushed_by_orange_wall == false)) { _y = (_y - ((getBounds(_root).yMax - _root.orangewall.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate4_down_against_orange_wall = true; } } if ((_root.hit_crate4 == true) and (_root.moveup == true)) { if ((_root.crate4_against_orange_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate4_is_pushed_by_orange_wall == false)) { _y = (_y - ((getBounds(_root).yMin - _root.orangewall.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate4_up_against_orange_wall = true; } } } else { _root.orangewall_crate4_hit = false; } if (((_root.difference_x_orange_with_crate4_right <= 0.3) && (_root.difference_x_orange_with_crate4_right >= -8)) && (_root.distance_y_between_orangewall_and_crate4 < ((_height / 2) + (_root.orangewall._height / 2)))) { _root.cant_move_crate4_right_against_orange_wall = true; _root.orange_wall_and_crate4_rightside_touching = true; } else { _root.cant_move_crate4_right_against_orange_wall = false; _root.orange_wall_and_crate4_rightside_touching = false; } if ((((_root.orangewall_movement == true) and (_root.orange_wall_and_crate4_rightside_touching == true)) and (_root.distance_y_between_orangewall_and_crate4 < ((_height / 2) + (_root.orangewall._height / 2)))) and (_currentframe == 1)) { _x = (((_root.orangewall._x - (_root.orangewall._width / 2)) - (_width / 2)) - 0.7); _root.crate4_is_pushed_by_orange_wall = true; } if (((_root.difference_x_ball1_with_crate4_leftside <= 0.5) && (_root.difference_x_ball1_with_crate4_leftside >= -8)) && (_root.distance_y_between_ball1_and_crate4 < ((_height / 2) + (_root.ball1._height / 2)))) { _root.ball1_and_crate4_leftside_touching = true; } else { _root.ball1_and_crate4_leftside_touching = false; } if (((_root.difference_x_ball2_with_crate4_leftside <= 0.3) && (_root.difference_x_ball2_with_crate4_leftside >= -8)) && (_root.distance_y_between_ball2_and_crate4 < ((_height / 2) + (_root.ball2._height / 2)))) { _root.ball2_and_crate4_leftside_touching = true; } else { _root.ball2_and_crate4_leftside_touching = false; } if (((_root.difference_x_ball1_with_crate4_rightside <= 0.3) && (_root.difference_x_ball1_with_crate4_rightside >= -8)) && (_root.distance_y_between_ball1_and_crate4 < ((_height / 2) + (_root.ball1._height / 2)))) { _root.ball1_and_crate4_rightside_touching = true; } else { _root.ball1_and_crate4_rightside_touching = false; } if (((_root.difference_x_ball2_with_crate4_rightside <= 0.3) && (_root.difference_x_ball2_with_crate4_rightside >= -8)) && (_root.distance_y_between_ball2_and_crate4 < ((_height / 2) + (_root.ball2._height / 2)))) { _root.ball2_and_crate4_rightside_touching = true; } else { _root.ball2_and_crate4_rightside_touching = false; } if (((((_root.ball1_and_crate4_leftside_touching == true) and (_root.crate4_is_pushed_by_orange_wall == true)) and (_root.distance_y_between_orangewall_and_crate4 < ((_height / 2) + (_root.orangewall._height / 2)))) and (_root.distance_y_between_ball1_and_crate4 < ((_height / 2) + (_root.ball1._height / 2)))) and (_root.orangewall_movement == true)) { _root.ball1._x = (((_root.orangewall._x - (_root.orangewall._width / 2)) - _width) - (_root.ball1._width / 2)) - 0.5; _root.ball1_is_pushed_by_crate4_is_pushed_by_orange_wall = true; } else { _root.ball1_is_pushed_by_crate4_is_pushed_by_orange_wall = false; } if (((((_root.ball2_and_crate4_leftside_touching == true) and (_root.crate4_is_pushed_by_orange_wall == true)) and (_root.distance_y_between_orangewall_and_crate4 < ((_height / 2) + (_root.orangewall._height / 2)))) and (_root.distance_y_between_ball2_and_crate4 < ((_height / 2) + (_root.ball2._height / 2)))) and (_root.orangewall_movement == true)) { _root.ball2._x = (((_root.orangewall._x - (_root.orangewall._width / 2)) - _width) - (_root.ball2._width / 2)) - 0.5; _root.ball2_is_pushed_by_crate4_is_pushed_by_orange_wall = true; } else { _root.ball2_is_pushed_by_crate4_is_pushed_by_orange_wall = false; } if (((((_root.ball1_and_crate4_rightside_touching == true) and (_root.ball1_is_pushed_by_orange_wall == true)) and (_root.distance_y_between_ball1_and_crate4 < ((_height / 2) + (_root.ball1._height / 2)))) and (_root.moveleft == false)) and (_currentframe == 1)) { _root.cant_move_crate4_right_against_orange_wall = false; _x = (((_root.ball1._x - (_root.ball1._width / 2)) - (_width / 2)) - 0.5); _root.crate4_is_pushed_by_ball1_is_pushed_by_orangewall = true; } else { _root.crate4_is_pushed_by_ball1_is_pushed_by_orangewall = false; } if ((((_root.ball2_and_crate4_rightside_touching == true) and (_root.ball2_is_pushed_by_orange_wall == true)) and (_root.distance_y_between_ball2_and_crate4 < ((_height / 2) + (_root.ball2._height / 2)))) and (_root.moveleft == false)) { _x = (((_root.ball2._x - (_root.ball2._width / 2)) - (_width / 2)) - 0.5); _root.crate4_is_pushed_by_ball2_is_pushed_by_orangewall = true; } else { _root.crate4_is_pushed_by_ball2_is_pushed_by_orangewall = false; } if ((((_root.distance_y_between_orangewall_and_crate4 < ((_height / 2) + (_root.orangewall._height / 2))) and (_root.orangewall_movement == true)) and (_root.difference_x_orange_with_crate4_right < 0.5)) and (_root.difference_x_orange_with_crate4_right > -3)) { _root.crate4_against_orange_wall_boundaries_prevention = true; } else { _root.crate4_against_orange_wall_boundaries_prevention = false; } if (((_root.distance_y_between_orangewall_and_crate4 < ((_height / 2) + (_root.orangewall._height / 2))) and (_root.distance_y_between_orangewall_and_ball <= ((_root.ball1._height / 2) + (_root.orangewall._height / 2)))) and (_root.orangewall_movement == true)) { _root.crate4_against_orange_wall_boundaries_prevention2 = true; } else { _root.crate4_against_orange_wall_boundaries_prevention2 = false; } if (((_root.difference_x_orange_with_crate4_left <= 0.3) && (_root.difference_x_orange_with_crate4_left >= -8)) && (_root.distance_y_between_orangewall_and_crate4 < ((_height / 2) + (_root.orangewall._height / 2)))) { _root.cant_move_crate4_left_against_orange_wall = true; _root.cant_move_crate4_left_against_left_wall = true; } else { _root.cant_move_crate4_left_against_orange_wall = false; } if (_root.crate4_against_orange_wall_boundaries_prevention == false) { if (((_root.difference_y_orange_with_crate4_up <= 0.3) && (_root.difference_y_orange_with_crate4_up >= -8)) && (_root.distance_x_between_orangewall_and_crate4 < ((_width / 2) + (_root.orangewall._width / 2)))) { _root.cant_move_crate4_up_against_orange_wall = true; _root.cant_move_crate4_up_against_topwall = true; _root.cant_move_crate4_up_against_r1 = true; _root.cant_move_crate4_up_against_r2 = true; } else { _root.cant_move_crate4_up_against_orange_wall = false; } if (((_root.difference_y_orange_with_crate4_down <= 0.3) && (_root.difference_y_orange_with_crate4_down >= -8)) && (_root.distance_x_between_orangewall_and_crate4 < ((_width / 2) + (_root.orangewall._width / 2)))) { _root.cant_move_crate4_down_against_r6 = true; _root.cant_move_crate4_down_against_bottomwall = true; _root.cant_move_crate4_down_against_insidebottom = true; } else { _root.cant_move_crate4_down_against_orange_wall = false; } } else if ((((_root.distance_y_between_orangewall_and_crate4 < ((_height / 2) + (_root.orangewall._height / 2))) && (_root.distance_y_between_ball1_and_crate4 < ((_height / 2) + (_root.ball1._height / 2)))) and (_root.difference_x_ball1_with_crate4_leftside <= 0.3)) && (_root.difference_x_ball1_with_crate4_leftside >= -8)) { _root.cant_move_crate4_down_against_orange_wall = true; _root.cant_move_crate4_up_against_orange_wall = true; _root.cant_move_crate4_left_against_orange_wall = true; _root.cant_move_crate4_right_against_orange_wall = true; } else { _root.cant_move_crate4_down_against_orange_wall = false; _root.cant_move_crate4_up_against_orange_wall = false; } if (((_root.orangewall_movement == true) and ((((_root.difference_x_ball1_with_crate4_leftside <= 0.7) && (_root.difference_x_ball1_with_crate4_leftside >= -6)) && (_root.distance_between_leftwall_and_ball <= 0.5)) && (_root.distance_y_between_ball1_and_crate4 < ((_root.ball1._height / 2) + (_height / 2))))) or ((((_root.difference_x_ball2_with_crate4_leftside <= 0.7) && (_root.difference_x_ball2_with_crate4_leftside >= -6)) && (_root.distance_between_leftwall_and_ball2 <= 0.5)) && (_root.distance_y_between_ball2_and_crate4 < ((_root.ball2._height / 2) + (_height / 2))))) { _root.ball_location = false; _root.orange1_hit = true; _root.ball1._x = 2000; _root.ball2._x = 2000; _root.cant_move_crate4_up_against_orange_wall = false; _root.cant_move_crate4_down_against_orange_wall = false; } if (((_root.difference_x_crate4_leftside_with_leftwall <= 0.3) && (_root.difference_x_crate4_leftside_with_leftwall >= -8)) && (((_root.crate4_is_pushed_by_orange_wall == true) or (_root.crate4_is_pushed_by_ball1_is_pushed_by_orangewall == true)) or (_root.crate4_is_pushed_by_ball2_is_pushed_by_orangewall == true))) { _root.greenswitch_is_attached_to_crate4 = false; _root.decoy_crate.inside.gotoAndPlay(1); _root.orangewall_movement = false; _root.decoy_crate._x = _x; _root.decoy_crate._y = _y; _root.decoy_crate.gotoAndStop(2); _x = 20002; } }
Instance of Symbol 1071 MovieClip "crate1" in Frame 30
onClipEvent (load) { _root.hit_crate1 = false; _root.ball1_and_crate1_rightside_touching = false; _root.ball1_and_crate1_leftside_touching = false; _root.ball2_and_crate1_rightside_touching = false; _root.ball2_and_crate1_leftside_touching = false; _root.cant_move_crate1_right_against_r5 = false; _root.cant_move_crate1_left_against_r6 = false; _root.cant_move_crate1_left_against_insidebottom = false; _root.cant_move_crate1_left_against_r2 = false; _root.cant_move_crate1_down_against_r6 = false; _root.cant_move_crate1_down_against_bottomwall = false; _root.cant_move_crate1_down_against_insidebottom = false; _root.cant_move_crate1_up_against_orangewall2 = false; _root.cant_move_crate1_up_against_r1 = false; _root.cant_move_crate1_up_against_r2 = false; _root.red_wall_and_crate1_rightside_touching = false; _root.crate1_against_red_wall_boundaries_prevention = false; _root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall = false; _root.ball2_is_pushed_by_crate1_is_pushed_by_red_wall = false; _root.crate1_is_pushed_by_ball1_is_pushed_by_redwall = false; _root.crate1_is_pushed_by_ball2_is_pushed_by_redwall = false; _root.crate1_is_pushed_by_red_wall = false; } onClipEvent (enterFrame) { _root.distance_y_between_ball1_and_crate1 = Math.abs(_root.ball1._y - _y); _root.difference_x_ball1_with_crate1_rightside = ((_root.ball1._x - _x) - (_width / 2)) - (_root.ball1._width / 2); _root.difference_x_ball1_with_crate1_leftside = ((_x - _root.ball1._x) - (_width / 2)) - (_root.ball1._width / 2); _root.distance_y_between_ball2_and_crate1 = Math.abs(_root.ball2._y - _y); _root.difference_x_ball2_with_crate1_rightside = ((_root.ball2._x - _x) - (_width / 2)) - (_root.ball2._width / 2); _root.difference_x_ball2_with_crate1_leftside = ((_x - _root.ball2._x) - (_width / 2)) - (_root.ball2._width / 2); _root.difference_x_red_with_crate1_left = ((_x - (_width / 2)) - _root.redwall._x) - (_root.redwall._width / 2); _root.difference_x_red_with_crate1_right = ((_root.redwall._x - (_root.redwall._width / 2)) - _x) - (_width / 2); _root.difference_y_red_with_crate1_up = ((_y - (_height / 2)) - _root.redwall._y) - (_root.redwall._height / 2); _root.difference_y_red_with_crate1_down = ((_root.redwall._y - (_root.redwall._height / 2)) - _y) - (_height / 2); _root.distance_x_between_redwall_and_crate1 = Math.abs(_root.redwall._x - _x); _root.distance_y_between_redwall_and_crate1 = Math.abs(_root.redwall._y - _y); _root.difference_x_crate1_leftside_with_blacktip1 = ((_x - (_width / 2)) - (_root.blacktip1._width / 2)) - _root.blacktip1._x; _root.difference_x_crate1_leftside_with_blacktip2 = ((_x - (_width / 2)) - (_root.blacktip2._width / 2)) - _root.blacktip2._x; _root.difference_x_crate1_leftside_with_r2 = ((_x - (_width / 2)) - (_root.r2._width / 2)) - _root.r2._x; _root.difference_x_crate1_leftside_with_insidetop = (_x - (_width / 2)) - 400; if (hitTest(_root.r6) and (_root.moveleft == true)) { _x = (_x - ((getBounds(_root).xMin - _root.r6.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate1_left_against_r6 = true; } if (((Math.abs(((_x - _root.r6._x) - (_root.r6._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.r6._y + (_root.r6._height / 2)) + (_height / 2)))) and (_y > ((_root.r6._y - (_root.r6._height / 2)) - (_height / 2)))) { _root.cant_move_crate1_left_against_r6 = true; } else { _root.cant_move_crate1_left_against_r6 = false; } if (hitTest(_root.r2) and (_root.moveleft == true)) { _x = (_x - ((getBounds(_root).xMin - _root.r2.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate1_left_against_r2 = true; } if (((Math.abs(((_x - _root.r2._x) - (_root.r2._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.r2._y + (_root.r2._height / 2)) + (_height / 2)))) and (_y > ((_root.r2._y - (_root.r2._height / 2)) - (_height / 2)))) { _root.cant_move_crate1_left_against_r2 = true; } else { _root.cant_move_crate1_left_against_r2 = false; } if (hitTest(_root.middlewall.insidebottom) and (_root.moveleft == true)) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.insidebottom.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate1_left_against_insidebottom = true; } if (((Math.abs(((_x - _root.middlewall.insidebottom._x) - (_root.middlewall.insidebottom._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.middlewall.insidebottom._y + (_root.middlewall.insidebottom._height / 2)) + (_height / 2)))) and (_y > ((_root.middlewall.insidebottom._y - (_root.middlewall.insidebottom._height / 2)) - (_height / 2)))) { _root.cant_move_crate1_left_against_insidebottom = true; } else { _root.cant_move_crate1_left_against_insidebottom = false; } if (hitTest(_root.r5) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.r5.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate1_right_against_r5 = true; } if (((Math.abs(((_root.r5._x - _x) - (_root.r5._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.r5._y + (_root.r5._height / 2)) + (_height / 2)))) and (_y > ((_root.r5._y - (_root.r5._height / 2)) - (_height / 2)))) { _root.cant_move_crate1_right_against_r5 = true; } else { _root.cant_move_crate1_right_against_r5 = false; } if (hitTest(_root.orangewall) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.orangewall.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate1_up_against_orangewall2 = true; } if (((Math.abs(((_y - _root.orangewall._y) - (_root.orangewall._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.orangewall._x + (_root.orangewall._width / 2)) + (_width / 2)))) and (_x > ((_root.orangewall._x - (_root.orangewall._width / 2)) - (_width / 2)))) { _root.cant_move_crate1_up_against_orangewall2 = true; } else { _root.cant_move_crate1_up_against_orangewall2 = false; } if (hitTest(_root.r1) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.r1.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate1_up_against_r1 = true; } if (((Math.abs(((_y - _root.r1._y) - (_root.r1._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.r1._x + (_root.r1._width / 2)) + (_width / 2)))) and (_x > ((_root.r1._x - (_root.r1._width / 2)) - (_width / 2)))) { _root.cant_move_crate1_up_against_r1 = true; } else { _root.cant_move_crate1_up_against_r1 = false; } if (hitTest(_root.r2) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.r2.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate1_up_against_r2 = true; } if (((Math.abs(((_y - _root.r2._y) - (_root.r2._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.r2._x + (_root.r2._width / 2)) + (_width / 2)))) and (_x > ((_root.r2._x - (_root.r2._width / 2)) - (_width / 2)))) { _root.cant_move_crate1_up_against_r2 = true; } else { _root.cant_move_crate1_up_against_r2 = false; } if (hitTest(_root.r6) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.r6.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate1_down_against_r6 = true; } if (((Math.abs(((_root.r6._y - _y) - (_root.r6._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.r6._x + (_root.r6._width / 2)) + (_width / 2)))) and (_x > ((_root.r6._x - (_root.r6._width / 2)) - (_width / 2)))) { _root.cant_move_crate1_down_against_r6 = true; } else { _root.cant_move_crate1_down_against_r6 = false; } if (hitTest(_root.bottomwall) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate1_down_against_bottomwall = true; } if (((Math.abs(((_root.bottomwall._y - _y) - (_root.bottomwall._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.bottomwall._x + (_root.bottomwall._width / 2)) + (_width / 2)))) and (_x > ((_root.bottomwall._x - (_root.bottomwall._width / 2)) - (_width / 2)))) { _root.cant_move_crate1_down_against_bottomwall = true; } else { _root.cant_move_crate1_down_against_bottomwall = false; } if (hitTest(_root.middlewall.insidebottom) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall.insidebottom.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate1_down_against_insidebottom = true; } if (((Math.abs(((_root.middlewall.insidebottom._y - _y) - (_root.middlewall.insidebottom._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.middlewall.insidebottom._x + (_root.middlewall.insidebottom._width / 2)) + (_width / 2)))) and (_x > ((_root.middlewall.insidebottom._x - (_root.middlewall.insidebottom._width / 2)) - (_width / 2)))) { _root.cant_move_crate1_down_against_insidebottom = true; } else { _root.cant_move_crate1_down_against_insidebottom = false; } if (hitTest(_root.redwall)) { _root.redwall_crate1_hit = true; if ((_root.hit_crate1 == true) and (_root.movedown == true)) { if ((_root.crate1_against_red_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall == false)) { _y = (_y - ((getBounds(_root).yMax - _root.redwall.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate1_down_against_red_wall = true; } } if ((_root.hit_crate1 == true) and (_root.moveup == true)) { if ((_root.crate1_against_red_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall == false)) { _y = (_y - ((getBounds(_root).yMin - _root.redwall.getBounds(_root).yMax) - 0.5)); _root.cant_move_crate1_up_against_red_wall = true; } } } else { _root.redwall_crate1_hit = false; } if (((_root.difference_x_red_with_crate1_right <= 0.3) && (_root.difference_x_red_with_crate1_right >= -8)) && (_root.distance_y_between_redwall_and_crate1 < ((_height / 2) + (_root.redwall._height / 2)))) { _root.cant_move_crate1_right_against_red_wall = true; _root.red_wall_and_crate1_rightside_touching = true; } else { _root.cant_move_crate1_right_against_red_wall = false; _root.red_wall_and_crate1_rightside_touching = false; } if ((((_root.redwall_movement == true) and (_root.red_wall_and_crate1_rightside_touching == true)) and (_root.distance_y_between_redwall_and_crate1 < ((_height / 2) + (_root.redwall._height / 2)))) and (_currentframe == 1)) { _x = (((_root.redwall._x - (_root.redwall._width / 2)) - (_width / 2)) - 0.7); _root.crate1_is_pushed_by_red_wall = true; } if (((_root.difference_x_ball1_with_crate1_leftside <= 0.5) && (_root.difference_x_ball1_with_crate1_leftside >= -8)) && (_root.distance_y_between_ball1_and_crate1 < ((_height / 2) + (_root.ball1._height / 2)))) { _root.ball1_and_crate1_leftside_touching = true; } else { _root.ball1_and_crate1_leftside_touching = false; } if (((_root.difference_x_ball2_with_crate1_leftside <= 0.3) && (_root.difference_x_ball2_with_crate1_leftside >= -8)) && (_root.distance_y_between_ball2_and_crate1 < ((_height / 2) + (_root.ball2._height / 2)))) { _root.ball2_and_crate1_leftside_touching = true; } else { _root.ball2_and_crate1_leftside_touching = false; } if (((_root.difference_x_ball1_with_crate1_rightside <= 2) && (_root.difference_x_ball1_with_crate1_rightside >= -8)) && (_root.distance_y_between_ball1_and_crate1 < ((_height / 2) + (_root.ball1._height / 2)))) { _root.ball1_and_crate1_rightside_touching = true; } else { _root.ball1_and_crate1_rightside_touching = false; } if (((_root.difference_x_ball2_with_crate1_rightside <= 0.3) && (_root.difference_x_ball2_with_crate1_rightside >= -8)) && (_root.distance_y_between_ball2_and_crate1 < ((_height / 2) + (_root.ball2._height / 2)))) { _root.ball2_and_crate1_rightside_touching = true; } else { _root.ball2_and_crate1_rightside_touching = false; } if (((((_root.ball1_and_crate1_leftside_touching == true) and (_root.crate1_is_pushed_by_red_wall == true)) and (_root.distance_y_between_redwall_and_crate1 < ((_height / 2) + (_root.redwall._height / 2)))) and (_root.distance_y_between_ball1_and_crate1 < ((_height / 2) + (_root.ball1._height / 2)))) and (_root.redwall_movement == true)) { _root.ball1._x = (((_root.redwall._x - (_root.redwall._width / 2)) - _width) - (_root.ball1._width / 2)) - 0.5; _root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall = true; } else { _root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall = false; } if (((((_root.ball2_and_crate1_leftside_touching == true) and (_root.crate1_is_pushed_by_red_wall == true)) and (_root.distance_y_between_redwall_and_crate1 < ((_height / 2) + (_root.redwall._height / 2)))) and (_root.distance_y_between_ball2_and_crate1 < ((_height / 2) + (_root.ball2._height / 2)))) and (_root.redwall_movement == true)) { _root.ball2._x = (((_root.redwall._x - (_root.redwall._width / 2)) - _width) - (_root.ball2._width / 2)) - 0.5; _root.ball2_is_pushed_by_crate1_is_pushed_by_red_wall = true; } else { _root.ball2_is_pushed_by_crate1_is_pushed_by_red_wall = false; } if (((((_root.ball1_and_crate1_rightside_touching == true) and (_root.ball1_is_pushed_by_red_wall == true)) and (_root.distance_y_between_ball1_and_crate1 < ((_height / 2) + (_root.ball1._height / 2)))) and (_root.moveleft == false)) and (_currentframe == 1)) { _root.cant_move_crate1_right_against_red_wall = false; _x = (((_root.ball1._x - (_root.ball1._width / 2)) - (_width / 2)) - 2); _root.crate1_is_pushed_by_ball1_is_pushed_by_redwall = true; } else { _root.crate1_is_pushed_by_ball1_is_pushed_by_redwall = false; } if ((((_root.ball2_and_crate1_rightside_touching == true) and (_root.ball2_is_pushed_by_red_wall == true)) and (_root.distance_y_between_ball2_and_crate1 < ((_height / 2) + (_root.ball2._height / 2)))) and (_root.moveleft == false)) { _x = (((_root.ball2._x - (_root.ball2._width / 2)) - (_width / 2)) - 0.5); _root.crate1_is_pushed_by_ball2_is_pushed_by_redwall = true; } else { _root.crate1_is_pushed_by_ball2_is_pushed_by_redwall = false; } if ((((_root.distance_y_between_redwall_and_crate1 < ((_height / 2) + (_root.redwall._height / 2))) and (_root.redwall_movement == true)) and (_root.difference_x_red_with_crate1_right < 0.5)) and (_root.difference_x_red_with_crate1_right > -3)) { _root.crate1_against_red_wall_boundaries_prevention = true; } else { _root.crate1_against_red_wall_boundaries_prevention = false; } if (((_root.distance_y_between_redwall_and_crate1 < ((_height / 2) + (_root.redwall._height / 2))) and (_root.distance_y_between_redwall_and_ball <= ((_root.ball1._height / 2) + (_root.redwall._height / 2)))) and (_root.redwall_movement == true)) { _root.crate1_against_red_wall_boundaries_prevention2 = true; } else { _root.crate1_against_red_wall_boundaries_prevention2 = false; } if (((_root.difference_x_red_with_crate1_left <= 0.3) && (_root.difference_x_red_with_crate1_left >= -8)) && (_root.distance_y_between_redwall_and_crate1 < ((_height / 2) + (_root.redwall._height / 2)))) { _root.cant_move_crate1_left_against_red_wall = true; _root.cant_move_crate1_left_against_left_wall = true; } else { _root.cant_move_crate1_left_against_red_wall = false; } if (_root.crate1_against_red_wall_boundaries_prevention == false) { if (((_root.difference_y_red_with_crate1_up <= 0.3) && (_root.difference_y_red_with_crate1_up >= -8)) && (_root.distance_x_between_redwall_and_crate1 < ((_width / 2) + (_root.redwall._width / 2)))) { _root.cant_move_crate1_up_against_red_wall = true; _root.cant_move_crate1_up_against_orangewall2 = true; _root.cant_move_crate1_up_against_r1 = true; _root.cant_move_crate1_up_against_r2 = true; } else { _root.cant_move_crate1_up_against_red_wall = false; } if (((_root.difference_y_red_with_crate1_down <= 0.3) && (_root.difference_y_red_with_crate1_down >= -8)) && (_root.distance_x_between_redwall_and_crate1 < ((_width / 2) + (_root.redwall._width / 2)))) { _root.cant_move_crate1_down_against_r6 = true; _root.cant_move_crate1_down_against_bottomwall = true; _root.cant_move_crate1_down_against_insidebottom = true; } else { _root.cant_move_crate1_down_against_red_wall = false; } } else if ((((_root.distance_y_between_redwall_and_crate1 < ((_height / 2) + (_root.redwall._height / 2))) && (_root.distance_y_between_ball1_and_crate1 < ((_height / 2) + (_root.ball1._height / 2)))) and (_root.difference_x_ball1_with_crate1_leftside <= 0.3)) && (_root.difference_x_ball1_with_crate1_leftside >= -8)) { _root.cant_move_crate1_down_against_red_wall = true; _root.cant_move_crate1_up_against_red_wall = true; _root.cant_move_crate1_left_against_red_wall = true; _root.cant_move_crate1_right_against_red_wall = true; } else { _root.cant_move_crate1_down_against_red_wall = false; _root.cant_move_crate1_up_against_red_wall = false; } if (_root.ball1._y > (_root.r2._y + (_root.r2._height / 2))) { _root.y_in_position_with_insidebottom = true; } else { _root.y_in_position_with_insidebottom = false; } if (_root.ball2._y > 213.6) { _root.y_in_position_with_insidebottom2 = true; } else { _root.y_in_position_with_insidebottom2 = false; } if ((_root.ball1._y - (_root.ball1._height / 2)) < (_root.r2._y + (_root.r2._height / 2))) { _root.y_in_position_with_r2 = true; } else { _root.y_in_position_with_r2 = false; } if ((_root.ball2._y - (_root.ball2._height / 2)) < (_root.r2._y + (_root.r2._height / 2))) { _root.y_in_position_with_r22 = true; } else { _root.y_in_position_with_r22 = false; } if (((_root.redwall_movement == true) and ((((_root.difference_x_ball1_with_crate1_leftside <= 0.7) && (_root.difference_x_ball1_with_crate1_leftside >= -6)) && (((_root.distance_between_r2_and_ball <= 0.5) and (_root.y_in_position_with_r2 == true)) or ((_root.distance_between_insidebottom_and_ball <= 0.5) and (_root.y_in_position_with_insidebottom == true)))) && (_root.distance_y_between_ball1_and_crate1 < ((_root.ball1._height / 2) + (_height / 2))))) or (((((_root.redwall_movement == true) && (_root.difference_x_ball2_with_crate1_leftside <= 0.7)) && (_root.difference_x_ball2_with_crate1_leftside >= -6)) && (((_root.distance_between_r2_and_ball2 <= 0.5) and (_root.y_in_position_with_r22 == true)) or ((_root.distance_between_insidebottom_and_ball2 <= 0.5) and (_root.y_in_position_with_insidebottom2 == true)))) && (_root.distance_y_between_ball2_and_crate1 < ((_root.ball2._height / 2) + (_height / 2))))) { _root.ball_location = false; _root.red_hit = true; _root.ball1._x = 2000; _root.ball2._x = 2000; _root.cant_move_crate1_up_against_red_wall = false; _root.cant_move_crate1_down_against_red_wall = false; } if (((((((((_y > 245.6) and (_y < 254.2)) and (_root.difference_x_crate1_leftside_with_blacktip2 <= 0.3)) or (((_y < 223.7) and (_y > 214.8)) and (_root.difference_x_crate1_leftside_with_blacktip1 <= 0.3))) or (((_y < 214.8) and (_root.difference_x_crate1_leftside_with_r2 <= 0.5)) and (_root.redwall_movement == true))) or ((_y > 254.2) and (_root.difference_x_crate1_leftside_with_insidetop <= 0.3))) && (_root.distance_y_between_redwall_and_crate1 < ((_height / 2) + (_root.redwall._height / 2)))) and ((_root.distance_y_between_redwall_and_crate1 < ((_height / 2) + (_root.redwall._height / 2))) or ((_root.distance_y_between_redwall_and_ball < ((_root.ball1._height / 2) + (_root.redwall._height / 2))) and (_root.distance_y_between_ball1_and_crate1 < ((_height / 2) + (_root.ball1._height / 2)))))) and (((_root.crate1_is_pushed_by_red_wall == true) or ((_root.ball1_and_crate1_rightside_touching == true) and (_root.ball1_is_pushed_by_red_wall == true))) or (_root.crate1_is_pushed_by_ball2_is_pushed_by_redwall == true))) { _root.redkey_is_attached_to_crate1 = false; _root.decoy_crate.inside.gotoAndPlay(1); _root.redwall_movement = false; _root.decoy_crate._x = _x; _root.decoy_crate._y = _y; _root.decoy_crate.gotoAndStop(2); _x = 20002; } }
Instance of Symbol 1071 MovieClip "crate2" in Frame 30
onClipEvent (load) { _root.cant_move_crate2_right_against_l6 = false; _root.cant_move_crate2_right_against_insidetop = false; _root.cant_move_crate2_right_against_l1 = false; _root.cant_move_crate2_right_against_insidebottom = false; _root.cant_move_crate2_right_against_greenwall = false; _root.cant_move_crate2_left_against_leftwall = false; _root.cant_move_crate2_left_against_orangewall1 = false; _root.decoydone = false; _root.cant_move_crate2_down_against_l6 = false; _root.cant_move_crate2_down_against_l4 = false; _root.cant_move_crate2_down_against_bottomwall = false; _root.cant_move_crate2_down_against_insidetop = false; _root.cant_move_crate2_down_against_orangewall1 = false; _root.cant_move_crate2_down_against_pinkwall = false; _root.cant_move_crate2_up_against_topwall = false; _root.cant_move_crate2_up_against_l1 = false; _root.cant_move_crate2_up_against_crate3 = false; _root.cant_move_crate2_down_against_crate3 = false; _root.cant_move_crate2_left_against_crate3 = false; _root.cant_move_crate2_right_against_crate3 = false; } onClipEvent (enterFrame) { if (hitTest(_root.orangewall1) and (_root.moveleft == true)) { _x = (_x - ((getBounds(_root).xMin - _root.orangewall1.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate2_left_against_orangewall1 = true; } if (((Math.abs(((_x - _root.orangewall1._x) - (_root.orangewall1._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.orangewall1._y + (_root.orangewall1._height / 2)) + (_height / 2)))) and (_y > ((_root.orangewall1._y - (_root.orangewall1._height / 2)) - (_height / 2)))) { _root.cant_move_crate2_left_against_orangewall1 = true; } else { _root.cant_move_crate2_left_against_orangewall1 = false; } if (hitTest(_root.leftwall) and (_root.moveleft == true)) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate2_left_against_leftwall = true; } if (((Math.abs(((_x - _root.leftwall._x) - (_root.leftwall._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.leftwall._y + (_root.leftwall._height / 2)) + (_height / 2)))) and (_y > ((_root.leftwall._y - (_root.leftwall._height / 2)) - (_height / 2)))) { _root.cant_move_crate2_left_against_leftwall = true; } else { _root.cant_move_crate2_left_against_leftwall = false; } if (hitTest(_root.l6) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.l6.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate2_right_against_l6 = true; } if (((Math.abs(((_root.l6._x - _x) - (_root.l6._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.l6._y + (_root.l6._height / 2)) + (_height / 2)))) and (_y > ((_root.l6._y - (_root.l6._height / 2)) - (_height / 2)))) { _root.cant_move_crate2_right_against_l6 = true; } else { _root.cant_move_crate2_right_against_l6 = false; } if (hitTest(_root.middlewall.insidetop) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.insidetop.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate2_right_against_insidetop = true; } if (((Math.abs(((_root.middlewall.insidetop._x - _x) - (_root.middlewall.insidetop._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.middlewall.insidetop._y + (_root.middlewall.insidetop._height / 2)) + (_height / 2)))) and (_y > ((_root.middlewall.insidetop._y - (_root.middlewall.insidetop._height / 2)) - (_height / 2)))) { _root.cant_move_crate2_right_against_insidetop = true; } else { _root.cant_move_crate2_right_against_insidetop = false; } if (hitTest(_root.topinside) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.topinside.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate2_right_against_l1 = true; } if (((Math.abs(((_root.topinside._x - _x) - (_root.topinside._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.topinside._y + (_root.topinside._height / 2)) + (_height / 2)))) and (_y > ((_root.topinside._y - (_root.topinside._height / 2)) - (_height / 2)))) { _root.cant_move_crate2_right_against_l1 = true; } else { _root.cant_move_crate2_right_against_l1 = false; } if (hitTest(_root.middlewall.insidebottom) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.insidebottom.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate2_right_against_insidebottom = true; } if (((Math.abs(((_root.middlewall.insidebottom._x - _x) - (_root.middlewall.insidebottom._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.middlewall.insidebottom._y + (_root.middlewall.insidebottom._height / 2)) + (_height / 2)))) and (_y > ((_root.middlewall.insidebottom._y - (_root.middlewall.insidebottom._height / 2)) - (_height / 2)))) { _root.cant_move_crate2_right_against_insidebottom = true; } else { _root.cant_move_crate2_right_against_insidebottom = false; } if (hitTest(_root.l1) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.l1.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate2_right_against_l1 = true; } if (((Math.abs(((_root.l1._x - _x) - (_root.l1._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.l1._y + (_root.l1._height / 2)) + (_height / 2)))) and (_y > ((_root.l1._y - (_root.l1._height / 2)) - (_height / 2)))) { _root.cant_move_crate2_right_against_l1 = true; } else { _root.cant_move_crate2_right_against_l1 = false; } if (hitTest(_root.greenwall) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.greenwall.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate2_right_against_greenwall = true; } if (((Math.abs(((_root.greenwall._x - _x) - (_root.greenwall._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.greenwall._y + (_root.greenwall._height / 2)) + (_height / 2)))) and (_y > ((_root.greenwall._y - (_root.greenwall._height / 2)) - (_height / 2)))) { _root.cant_move_crate2_right_against_greenwall = true; } else { _root.cant_move_crate2_right_against_greenwall = false; } if (hitTest(_root.topwall) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate2_up_against_topwall = true; } if (((Math.abs(((_y - _root.topwall._y) - (_root.topwall._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.topwall._x + (_root.topwall._width / 2)) + (_width / 2)))) and (_x > ((_root.topwall._x - (_root.topwall._width / 2)) - (_width / 2)))) { _root.cant_move_crate2_up_against_topwall = true; } else { _root.cant_move_crate2_up_against_topwall = false; } if (hitTest(_root.l1) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.l1.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate2_up_against_l1 = true; } if (((Math.abs(((_y - _root.l1._y) - (_root.l1._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.l1._x + (_root.l1._width / 2)) + (_width / 2)))) and (_x > ((_root.l1._x - (_root.l1._width / 2)) - (_width / 2)))) { _root.cant_move_crate2_up_against_l1 = true; } else { _root.cant_move_crate2_up_against_l1 = false; } if (hitTest(_root.l2) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.l2.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate2_up_against_l1 = true; } if (((Math.abs(((_y - _root.l2._y) - (_root.l2._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.l2._x + (_root.l2._width / 2)) + (_width / 2)))) and (_x > ((_root.l2._x - (_root.l2._width / 2)) - (_width / 2)))) { _root.cant_move_crate2_up_against_l1 = true; } else { _root.cant_move_crate2_up_against_l1 = false; } if (hitTest(_root.l3) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.l3.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate2_up_against_l1 = true; } if (((Math.abs(((_y - _root.l3._y) - (_root.l3._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.l3._x + (_root.l3._width / 2)) + (_width / 2)))) and (_x > ((_root.l3._x - (_root.l3._width / 2)) - (_width / 2)))) { _root.cant_move_crate2_up_against_l1 = true; } else { _root.cant_move_crate2_up_against_l1 = false; } if (hitTest(_root.pinkwall) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.pinkwall.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate2_down_against_pinkwall = true; } if (((Math.abs(((_root.pinkwall._y - _y) - (_root.pinkwall._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.pinkwall._x + (_root.pinkwall._width / 2)) + (_width / 2)))) and (_x > ((_root.pinkwall._x - (_root.pinkwall._width / 2)) - (_width / 2)))) { _root.cant_move_crate2_down_against_pinkwall = true; } else { _root.cant_move_crate2_down_against_pinkwall = false; } if (hitTest(_root.l5) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.l5.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate2_down_against_pinkwall = true; } if (((Math.abs(((_root.l5._y - _y) - (_root.l5._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.l5._x + (_root.l5._width / 2)) + (_width / 2)))) and (_x > ((_root.l5._x - (_root.l5._width / 2)) - (_width / 2)))) { _root.cant_move_crate2_down_against_pinkwall = true; } else { _root.cant_move_crate2_down_against_pinkwall = false; } if (hitTest(_root.bottomwall) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate2_down_against_bottomwall = true; } if (((Math.abs(((_root.bottomwall._y - _y) - (_root.bottomwall._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.bottomwall._x + (_root.bottomwall._width / 2)) + (_width / 2)))) and (_x > ((_root.bottomwall._x - (_root.bottomwall._width / 2)) - (_width / 2)))) { _root.cant_move_crate2_down_against_bottomwall = true; } else { _root.cant_move_crate2_down_against_bottomwall = false; } if (hitTest(_root.l6) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.l6.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate2_down_against_l6 = true; } if (((Math.abs(((_root.l6._y - _y) - (_root.l6._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.l6._x + (_root.l6._width / 2)) + (_width / 2)))) and (_x > ((_root.l6._x - (_root.l6._width / 2)) - (_width / 2)))) { _root.cant_move_crate2_down_against_l6 = true; } else { _root.cant_move_crate2_down_against_l6 = false; } if (hitTest(_root.l4) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.l4.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate2_down_against_l4 = true; } if (((Math.abs(((_root.l4._y - _y) - (_root.l4._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.l4._x + (_root.l4._width / 2)) + (_width / 2)))) and (_x > ((_root.l4._x - (_root.l4._width / 2)) - (_width / 2)))) { _root.cant_move_crate2_down_against_l4 = true; } else { _root.cant_move_crate2_down_against_l4 = false; } if (hitTest(_root.orangewall1) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.orangewall1.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate2_down_against_orangewall1 = true; } if (((Math.abs(((_root.orangewall1._y - _y) - (_root.orangewall1._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.orangewall1._x + (_root.orangewall1._width / 2)) + (_width / 2)))) and (_x > ((_root.orangewall1._x - (_root.orangewall1._width / 2)) - (_width / 2)))) { _root.cant_move_crate2_down_against_orangewall1 = true; } else { _root.cant_move_crate2_down_against_orangewall1 = false; } if (_root.hit_crate2) { if (hitTest(_root.crate3) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.crate3.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate2_up_against_crate3 = true; } if ((((((_y - _root.crate3._y) - (_root.crate3._height / 2)) - (_height / 2)) <= 0.3) and ((((_y - _root.crate3._y) - (_root.crate3._height / 2)) - (_height / 2)) >= 0)) and (Math.abs(_root.crate3._x - _x) < ((_width / 2) + (_root.crate3._width / 2)))) { _root.cant_move_crate2_up_against_crate3 = true; } else { _root.cant_move_crate2_up_against_crate3 = false; } if (hitTest(_root.crate3) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.crate3.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate2_down_against_crate3 = true; } if ((((((_root.crate3._y - _y) - (_root.crate3._height / 2)) - (_height / 2)) <= 0.3) and ((((_root.crate3._y - _y) - (_root.crate3._height / 2)) - (_height / 2)) >= 0)) and (Math.abs(_root.crate3._x - _x) < ((_width / 2) + (_root.crate3._width / 2)))) { _root.cant_move_crate2_down_against_crate3 = true; } else { _root.cant_move_crate2_down_against_crate3 = false; } if (hitTest(_root.crate3) and (_root.moveleft == true)) { _x = (_x - ((getBounds(_root).xMin - _root.crate3.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate2_left_against_crate3 = true; } if ((((((_x - _root.crate3._x) - (_root.crate3._width / 2)) - (_width / 2)) <= 0.3) and ((((_x - _root.crate3._x) - (_root.crate3._width / 2)) - (_width / 2)) >= 0)) and (Math.abs(_root.crate3._y - _y) < ((_height / 2) + (_root.crate3._height / 2)))) { _root.cant_move_crate2_left_against_crate3 = true; } else { _root.cant_move_crate2_left_against_crate3 = false; } if (hitTest(_root.crate3) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.crate3.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate2_right_against_crate3 = true; } if ((((((_root.crate3._x - _x) - (_root.crate3._width / 2)) - (_width / 2)) <= 0.3) and ((((_root.crate3._x - _x) - (_root.crate3._width / 2)) - (_width / 2)) >= 0)) and (Math.abs(_root.crate3._y - _y) < ((_height / 2) + (_root.crate3._height / 2)))) { _root.cant_move_crate2_right_against_crate3 = true; } else { _root.cant_move_crate2_right_against_crate3 = false; } } _root.difference_y_blue_with_crate2_bottom = ((_root.bluewall._y - (_root.bluewall._height / 2)) - _y) - (_height / 2); _root.distance_x_between_bluewall_and_crate2 = Math.abs(_root.bluewall._x - _x); if (((_root.difference_y_blue_with_crate2_bottom <= 0.3) && (_root.difference_y_blue_with_crate2_bottom >= -8)) && (_root.distance_x_between_bluewall_and_crate2 < ((_width / 2) + (_root.bluewall._width / 2)))) { _root.blue_wall_and_crate2_bottomside_touching = true; } else { _root.blue_wall_and_crate2_bottomside_touching = false; } if ((((_root.bluewall_movement == true) and (_root.blue_wall_and_crate2_bottomside_touching == true)) and (_root.distance_x_between_bluewall_and_crate2 < ((_width / 2) + (_root.bluewall._width / 2)))) and (_currentframe == 1)) { _y = (((_root.bluewall._y - (_root.bluewall._height / 2)) - (_height / 2)) - 0.2); if (((((((_y - _root.crate3._y) - (_root.crate3._height / 2)) - (_height / 2)) <= 0.3) and ((((_y - _root.crate3._y) - (_root.crate3._height / 2)) - (_height / 2)) >= -2)) and (Math.abs(_root.crate3._x - _x) < ((_width / 2) + (_root.crate3._width / 2)))) and (_root.crate3._x > 500)) { _root.crate3._y = ((_root.bluewall._y - (_root.bluewall._height / 2)) - _height) - (_root.crate3._height / 2); if ((((((_root.crate3._y - _root.topwall._y) - (_root.topwall._height / 2)) - (_root.crate3._height / 2)) <= 0.3) and (_root.crate3._x < ((_root.topwall._x + (_root.topwall._width / 2)) + (_root.crate3._width / 2)))) and (_root.crate3._x > ((_root.topwall._x - (_root.topwall._width / 2)) - (_root.crate3._width / 2)))) { _root.bluewall_movement = false; _root.crate3.gotoAndStop(2); } } } _root.difference_x_pink_with_crate2_leftside = ((_x - _root.pinkwall._x) - (_root.pinkwall._width / 2)) - (_width / 2); _root.distance_y_between_pinkwall_and_crate2 = Math.abs(_root.pinkwall._y - _y); if (((_root.difference_x_pink_with_crate2_leftside <= 1) && (_root.difference_x_pink_with_crate2_leftside >= -8)) && (_root.distance_y_between_pinkwall_and_crate2 < ((_height / 2) + (_root.pinkwall._height / 2)))) { _root.pink_wall_and_crate2_leftside_touching = true; } else { _root.pink_wall_and_crate2_leftside_touching = false; } if ((((_root.pinkwall_movement == true) and (_root.pink_wall_and_crate2_leftside_touching == true)) and (_root.distance_y_between_pinkwall_and_crate2 < ((_height / 2) + (_root.pinkwall._height / 2)))) and (_currentframe == 1)) { _x = (((_root.pinkwall._x + (_root.pinkwall._width / 2)) + (_width / 2)) + 1); _root.crate2_is_pushed_by_pink_wall = true; } else { _root.crate2_is_pushed_by_pink_wall = false; } _root.difference_x_crate2_rightside_with_blacktip3 = ((_root.blacktip3._x - _x) - (_width / 2)) - (_root.blacktip3._width / 2); _root.difference_x_crate2_rightside_with_blacktip4 = ((_root.blacktip4._x - _x) - (_width / 2)) - (_root.blacktip4._width / 2); _root.difference_x_crate2_rightside_with_insidetop = (300 - _x) - (_width / 2); if ((((((_y > 143.6) and (_y < 148.6)) and (_root.difference_x_crate2_rightside_with_blacktip3 <= 0.3)) or ((_y < 143.6) and (_root.difference_x_crate2_rightside_with_insidetop <= 0.3))) or ((_y > 156.1) and (_root.difference_x_crate2_rightside_with_blacktip4 <= 0.3))) && (_root.crate2_is_pushed_by_pink_wall == true)) { _root.decoy_crate.inside.gotoAndPlay(1); _root.pinkwall_movement = false; _root.decoy_crate._x = _x; _root.decoy_crate._y = _y; _root.decoy_crate.gotoAndStop(2); _x = 20002; _root.decoydone = true; } }
Instance of Symbol 1071 MovieClip "crate3" in Frame 30
onClipEvent (load) { _root.cant_move_crate3_right_against_l6 = false; _root.cant_move_crate3_right_against_insidetop = false; _root.cant_move_crate3_right_against_l1 = false; _root.cant_move_crate3_right_against_insidebottom = false; _root.cant_move_crate3_right_against_greenwall = false; _root.cant_move_crate3_left_against_leftwall = false; _root.cant_move_crate3_left_against_orangewall1 = false; _root.cant_move_crate3_down_against_l6 = false; _root.cant_move_crate3_down_against_l4 = false; _root.cant_move_crate3_down_against_bottomwall = false; _root.cant_move_crate3_down_against_insidetop = false; _root.cant_move_crate3_down_against_orangewall1 = false; _root.cant_move_crate3_down_against_pinkwall = false; _root.cant_move_crate3_up_against_topwall = false; _root.cant_move_crate3_up_against_l1 = false; _root.cant_move_crate3_up_against_crate2 = false; _root.cant_move_crate3_down_against_crate2 = false; _root.cant_move_crate3_left_against_crate2 = false; _root.cant_move_crate3_right_against_crate2 = false; } onClipEvent (enterFrame) { if (hitTest(_root.orangewall1) and (_root.moveleft == true)) { _x = (_x - ((getBounds(_root).xMin - _root.orangewall1.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate3_left_against_orangewall1 = true; } if (((Math.abs(((_x - _root.orangewall1._x) - (_root.orangewall1._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.orangewall1._y + (_root.orangewall1._height / 2)) + (_height / 2)))) and (_y > ((_root.orangewall1._y - (_root.orangewall1._height / 2)) - (_height / 2)))) { _root.cant_move_crate3_left_against_orangewall1 = true; } else { _root.cant_move_crate3_left_against_orangewall1 = false; } if (hitTest(_root.leftwall) and (_root.moveleft == true)) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate3_left_against_leftwall = true; } if (((Math.abs(((_x - _root.leftwall._x) - (_root.leftwall._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.leftwall._y + (_root.leftwall._height / 2)) + (_height / 2)))) and (_y > ((_root.leftwall._y - (_root.leftwall._height / 2)) - (_height / 2)))) { _root.cant_move_crate3_left_against_leftwall = true; } else { _root.cant_move_crate3_left_against_leftwall = false; } if (hitTest(_root.l6) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.l6.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate3_right_against_l6 = true; } if (((Math.abs(((_root.l6._x - _x) - (_root.l6._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.l6._y + (_root.l6._height / 2)) + (_height / 2)))) and (_y > ((_root.l6._y - (_root.l6._height / 2)) - (_height / 2)))) { _root.cant_move_crate3_right_against_l6 = true; } else { _root.cant_move_crate3_right_against_l6 = false; } if (hitTest(_root.middlewall.insidetop) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.insidetop.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate3_right_against_insidetop = true; } if (((Math.abs(((_root.middlewall.insidetop._x - _x) - (_root.middlewall.insidetop._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.middlewall.insidetop._y + (_root.middlewall.insidetop._height / 2)) + (_height / 2)))) and (_y > ((_root.middlewall.insidetop._y - (_root.middlewall.insidetop._height / 2)) - (_height / 2)))) { _root.cant_move_crate3_right_against_insidetop = true; } else { _root.cant_move_crate3_right_against_insidetop = false; } if (hitTest(_root.topinside) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.topinside.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate3_right_against_l1 = true; } if (((Math.abs(((_root.topinside._x - _x) - (_root.topinside._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.topinside._y + (_root.topinside._height / 2)) + (_height / 2)))) and (_y > ((_root.topinside._y - (_root.topinside._height / 2)) - (_height / 2)))) { _root.cant_move_crate3_right_against_l1 = true; } else { _root.cant_move_crate3_right_against_l1 = false; } if (hitTest(_root.insidebottom) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.insidebottom.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate3_right_against_insidebottom = true; } if (((Math.abs(((_root.insidebottom._x - _x) - (_root.insidebottom._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.insidebottom._y + (_root.insidebottom._height / 2)) + (_height / 2)))) and (_y > ((_root.insidebottom._y - (_root.insidebottom._height / 2)) - (_height / 2)))) { _root.cant_move_crate3_right_against_insidebottom = true; } else { _root.cant_move_crate3_right_against_insidebottom = false; } if (hitTest(_root.l1) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.l1.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate3_right_against_l1 = true; } if (((Math.abs(((_root.l1._x - _x) - (_root.l1._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.l1._y + (_root.l1._height / 2)) + (_height / 2)))) and (_y > ((_root.l1._y - (_root.l1._height / 2)) - (_height / 2)))) { _root.cant_move_crate3_right_against_l1 = true; } else { _root.cant_move_crate3_right_against_l1 = false; } if (hitTest(_root.greenwall) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.greenwall.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate3_right_against_greenwall = true; } if (((Math.abs(((_root.greenwall._x - _x) - (_root.greenwall._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.greenwall._y + (_root.greenwall._height / 2)) + (_height / 2)))) and (_y > ((_root.greenwall._y - (_root.greenwall._height / 2)) - (_height / 2)))) { _root.cant_move_crate3_right_against_greenwall = true; } else { _root.cant_move_crate3_right_against_greenwall = false; } if (hitTest(_root.topwall) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate3_up_against_topwall = true; } if (((Math.abs(((_y - _root.topwall._y) - (_root.topwall._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.topwall._x + (_root.topwall._width / 2)) + (_width / 2)))) and (_x > ((_root.topwall._x - (_root.topwall._width / 2)) - (_width / 2)))) { _root.cant_move_crate3_up_against_topwall = true; } else { _root.cant_move_crate3_up_against_topwall = false; } if (hitTest(_root.l2) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.l2.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate3_up_against_l1 = true; } if (((Math.abs(((_y - _root.l2._y) - (_root.l2._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.l2._x + (_root.l2._width / 2)) + (_width / 2)))) and (_x > ((_root.l2._x - (_root.l2._width / 2)) - (_width / 2)))) { _root.cant_move_crate3_up_against_l1 = true; } else { _root.cant_move_crate3_up_against_l1 = false; } if (hitTest(_root.l3) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.l3.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate3_up_against_l1 = true; } if (((Math.abs(((_y - _root.l3._y) - (_root.l3._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.l3._x + (_root.l3._width / 2)) + (_width / 2)))) and (_x > ((_root.l3._x - (_root.l3._width / 2)) - (_width / 2)))) { _root.cant_move_crate3_up_against_l1 = true; } else { _root.cant_move_crate3_up_against_l1 = false; } if (hitTest(_root.l1) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.l1.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate3_up_against_l1 = true; } if (((Math.abs(((_y - _root.l1._y) - (_root.l1._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.l1._x + (_root.l1._width / 2)) + (_width / 2)))) and (_x > ((_root.l1._x - (_root.l1._width / 2)) - (_width / 2)))) { _root.cant_move_crate3_up_against_l1 = true; } else { _root.cant_move_crate3_up_against_l1 = false; } if (hitTest(_root.pinkwall) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.pinkwall.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate3_down_against_pinkwall = true; } if (((Math.abs(((_root.pinkwall._y - _y) - (_root.pinkwall._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.pinkwall._x + (_root.pinkwall._width / 2)) + (_width / 2)))) and (_x > ((_root.pinkwall._x - (_root.pinkwall._width / 2)) - (_width / 2)))) { _root.cant_move_crate3_down_against_pinkwall = true; } else { _root.cant_move_crate3_down_against_pinkwall = false; } if (hitTest(_root.bottomwall) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate3_down_against_bottomwall = true; } if (((Math.abs(((_root.bottomwall._y - _y) - (_root.bottomwall._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.bottomwall._x + (_root.bottomwall._width / 2)) + (_width / 2)))) and (_x > ((_root.bottomwall._x - (_root.bottomwall._width / 2)) - (_width / 2)))) { _root.cant_move_crate3_down_against_bottomwall = true; } else { _root.cant_move_crate3_down_against_bottomwall = false; } if (hitTest(_root.middlewall.insidetop) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall.insidetop.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate3_down_against_insidetop = true; } if (((Math.abs(((_root.middlewall.insidetop._y - _y) - (_root.middlewall.insidetop._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.middlewall.insidetop._x + (_root.middlewall.insidetop._width / 2)) + (_width / 2)))) and (_x > ((_root.middlewall.insidetop._x - (_root.middlewall.insidetop._width / 2)) - (_width / 2)))) { _root.cant_move_crate3_down_against_insidetop = true; } else { _root.cant_move_crate3_down_against_insidetop = false; } if (hitTest(_root.l6) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.l6.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate3_down_against_l6 = true; } if (((Math.abs(((_root.l6._y - _y) - (_root.l6._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.l6._x + (_root.l6._width / 2)) + (_width / 2)))) and (_x > ((_root.l6._x - (_root.l6._width / 2)) - (_width / 2)))) { _root.cant_move_crate3_down_against_l6 = true; } else { _root.cant_move_crate3_down_against_l6 = false; } if (hitTest(_root.l4) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.l4.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate3_down_against_l4 = true; } if (((Math.abs(((_root.l4._y - _y) - (_root.l4._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.l4._x + (_root.l4._width / 2)) + (_width / 2)))) and (_x > ((_root.l4._x - (_root.l4._width / 2)) - (_width / 2)))) { _root.cant_move_crate3_down_against_l4 = true; } else { _root.cant_move_crate3_down_against_l4 = false; } if (hitTest(_root.orangewall1) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.orangewall1.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate3_down_against_orangewall1 = true; } if (((Math.abs(((_root.orangewall1._y - _y) - (_root.orangewall1._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.orangewall1._x + (_root.orangewall1._width / 2)) + (_width / 2)))) and (_x > ((_root.orangewall1._x - (_root.orangewall1._width / 2)) - (_width / 2)))) { _root.cant_move_crate3_down_against_orangewall1 = true; } else { _root.cant_move_crate3_down_against_orangewall1 = false; } if (_root.hit_crate3) { if (hitTest(_root.crate2) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.crate2.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate3_up_against_crate2 = true; } if ((((((_y - _root.crate2._y) - (_root.crate2._height / 2)) - (_height / 2)) <= 0.3) and ((((_y - _root.crate2._y) - (_root.crate2._height / 2)) - (_height / 2)) >= 0)) and (Math.abs(_root.crate2._x - _x) < ((_width / 2) + (_root.crate2._width / 2)))) { _root.cant_move_crate3_up_against_crate2 = true; } else { _root.cant_move_crate3_up_against_crate2 = false; } if (hitTest(_root.crate2) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.crate2.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate3_down_against_crate2 = true; } if ((((((_root.crate2._y - _y) - (_root.crate2._height / 2)) - (_height / 2)) <= 0.3) and ((((_root.crate2._y - _y) - (_root.crate2._height / 2)) - (_height / 2)) >= 0)) and (Math.abs(_root.crate2._x - _x) < ((_width / 2) + (_root.crate2._width / 2)))) { _root.cant_move_crate3_down_against_crate2 = true; } else { _root.cant_move_crate3_down_against_crate2 = false; } if (hitTest(_root.crate2) and (_root.moveleft == true)) { _x = (_x - ((getBounds(_root).xMin - _root.crate2.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate3_left_against_crate2 = true; } if ((((((_x - _root.crate2._x) - (_root.crate2._width / 2)) - (_width / 2)) <= 0.3) and ((((_x - _root.crate2._x) - (_root.crate2._width / 2)) - (_width / 2)) >= 0)) and (Math.abs(_root.crate2._y - _y) < ((_height / 2) + (_root.crate2._height / 2)))) { _root.cant_move_crate3_left_against_crate2 = true; } else { _root.cant_move_crate3_left_against_crate2 = false; } if (hitTest(_root.crate2) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.crate2.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate3_right_against_crate2 = true; } if ((((((_root.crate2._x - _x) - (_root.crate2._width / 2)) - (_width / 2)) <= 0.3) and ((((_root.crate2._x - _x) - (_root.crate2._width / 2)) - (_width / 2)) >= 0)) and (Math.abs(_root.crate2._y - _y) < ((_height / 2) + (_root.crate2._height / 2)))) { _root.cant_move_crate3_right_against_crate2 = true; } else { _root.cant_move_crate3_right_against_crate2 = false; } } _root.difference_y_blue_with_crate3_bottom = ((_root.bluewall._y - (_root.bluewall._height / 2)) - _y) - (_height / 2); _root.distance_x_between_bluewall_and_crate3 = Math.abs(_root.bluewall._x - _x); if (((_root.difference_y_blue_with_crate3_bottom <= 0.3) && (_root.difference_y_blue_with_crate3_bottom >= -8)) && (_root.distance_x_between_bluewall_and_crate3 < ((_width / 2) + (_root.bluewall._width / 2)))) { _root.blue_wall_and_crate3_bottomside_touching = true; } else { _root.blue_wall_and_crate3_bottomside_touching = false; } if ((((_root.bluewall_movement == true) and (_root.blue_wall_and_crate3_bottomside_touching == true)) and (_root.distance_x_between_bluewall_and_crate3 < ((_width / 2) + (_root.bluewall._width / 2)))) and (_currentframe == 1)) { _y = (((_root.bluewall._y - (_root.bluewall._height / 2)) - (_height / 2)) - 0.2); if (((((((_y - _root.crate2._y) - (_root.crate2._height / 2)) - (_height / 2)) <= 0.3) and ((((_y - _root.crate2._y) - (_root.crate2._height / 2)) - (_height / 2)) >= -2)) and (Math.abs(_root.crate2._x - _x) < ((_width / 2) + (_root.crate2._width / 2)))) and (_root.crate2._x > 500)) { _root.crate2._y = ((_root.bluewall._y - (_root.bluewall._height / 2)) - _height) - (_root.crate2._height / 2); if (((Math.abs(((_root.crate2._y - _root.topwall._y) - (_root.topwall._height / 2)) - (_root.crate2._height / 2)) <= 0.3) and (_root.crate2._x < ((_root.topwall._x + (_root.topwall._width / 2)) + (_root.crate2._width / 2)))) and (_root.crate2._x > ((_root.topwall._x - (_root.topwall._width / 2)) - (_root.crate2._width / 2)))) { _root.bluewall_movement = false; _root.crate2.gotoAndStop(2); } } } _root.difference_x_pink_with_crate3_leftside = ((_x - _root.pinkwall._x) - (_root.pinkwall._width / 2)) - (_width / 2); _root.distance_y_between_pinkwall_and_crate3 = Math.abs(_root.pinkwall._y - _y); if (((_root.difference_x_pink_with_crate3_leftside <= 0.3) && (_root.difference_x_pink_with_crate3_leftside >= -8)) && (_root.distance_y_between_pinkwall_and_crate3 < ((_height / 2) + (_root.pinkwall._height / 2)))) { _root.pink_wall_and_crate3_leftside_touching = true; } else { _root.pink_wall_and_crate3_leftside_touching = false; } if ((((_root.pinkwall_movement == true) and (_root.pink_wall_and_crate3_leftside_touching == true)) and (_root.distance_y_between_pinkwall_and_crate3 < ((_height / 2) + (_root.pinkwall._height / 2)))) and (_currentframe == 1)) { _x = ((_root.pinkwall._x + (_root.pinkwall._width / 2)) + (_width / 2)); _root.crate3_is_pushed_by_pink_wall = true; } else { _root.crate3_is_pushed_by_pink_wall = false; } _root.difference_x_crate3_rightside_with_blacktip3 = ((_root.blacktip3._x - _x) - (_width / 2)) - (_root.blacktip3._width / 2); _root.difference_x_crate3_rightside_with_blacktip4 = ((_root.blacktip4._x - _x) - (_width / 2)) - (_root.blacktip4._width / 2); _root.difference_x_crate3_rightside_with_insidetop = (300 - _x) - (_width / 2); if ((((((_y > 143.6) and (_y < 148.6)) and (_root.difference_x_crate3_rightside_with_blacktip3 <= 0.3)) or ((_y < 143.6) and (_root.difference_x_crate3_rightside_with_insidetop <= 0.3))) or ((_y > 156.1) and (_root.difference_x_crate3_rightside_with_blacktip4 <= 0.3))) && (_root.crate3_is_pushed_by_pink_wall == true)) { _root.decoy_crate.inside.gotoAndPlay(1); _root.pinkwall_movement = false; _root.decoy_crate._x = _x; _root.decoy_crate._y = _y; _root.decoy_crate.gotoAndStop(2); _x = 20002; _root.decoydone = true; } }
Instance of Symbol 2313 MovieClip "ball1" in Frame 30
onClipEvent (enterFrame) { function move(xmove, ymove) { _x = (_x + xmove); _y = (_y + ymove); if (hitTest(_root.leftwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.middlewall) and (_root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall == false)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.topwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.topwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.topwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.topwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bottomwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bottomwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bottomwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bottomwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.l1)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.l1.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.l1.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.l1.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.l1.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.l2)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.l2.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.l2.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.l2.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.l2.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.l3)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.l3.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.l3.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.l3.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.l3.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.l4)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.l4.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.l4.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.l4.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.l4.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.l5)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.l5.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.l5.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.l5.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.l5.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.l6)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.l6.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.l6.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.l6.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.l6.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.r1)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.r1.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.r1.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.r1.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.r1.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.r2)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.r2.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.r2.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.r2.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.r2.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.r3)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.r3.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.r3.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.r3.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.r3.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.r4)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.r4.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.r4.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.r4.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.r4.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.r5)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.r5.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.r5.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.r5.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.r5.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.r6)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.r6.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.r6.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.r6.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.r6.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.r7)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.r7.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.r7.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.r7.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.r7.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.blacktip1)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.blacktip1.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.blacktip1.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.blacktip1.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.blacktip1.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.blacktip2)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.blacktip2.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.blacktip2.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.blacktip2.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.blacktip2.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.blacktip3)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.blacktip3.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.blacktip3.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.blacktip3.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.blacktip3.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.blacktip4)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.blacktip4.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.blacktip4.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.blacktip4.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.blacktip4.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.blacktip5)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.blacktip5.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.blacktip5.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.blacktip5.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.blacktip5.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.blacktip6)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.blacktip6.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.blacktip6.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.blacktip6.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.blacktip6.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.orangewall1)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.orangewall1.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.orangewall1.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.orangewall1.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.orangewall1.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bluewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bluewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bluewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bluewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bluewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.redwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.redwall.getBounds(_root).xMin) + 0.1)); } if ((xmove < 0) and (_root.crate1_is_pushed_by_ball1_is_pushed_by_redwall == false)) { _x = (_x - ((getBounds(_root).xMin - _root.redwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.redwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.redwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.orangewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.orangewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.orangewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.orangewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.orangewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.greenwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.greenwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.greenwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.greenwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.greenwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.pinkwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.pinkwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.pinkwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.pinkwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.pinkwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.crate1)) { if (_root.crate1._currentframe == 1) { _root.hit_crate1 = true; if (xmove > 0) { if (((_root.crate1_is_pushed_by_ball1_is_pushed_by_redwall == false) and (_root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall == false)) and (_root.ball1_is_pushed_by_red_wall == false)) { _x = (_x - ((getBounds(_root).xMax - _root.crate1.getBounds(_root).xMin) + 0.5)); if ((_root.cant_move_crate1_right_against_red_wall == false) and (_root.cant_move_crate1_right_against_r5 == false)) { _root.cratespeed_xright = 1; _root.crate1._x = _root.crate1._x + _root.cratespeed_xright; _root.moveright = true; } } } if (xmove < 0) { if (_root.crate1_is_pushed_by_ball1_is_pushed_by_redwall == false) { _x = (_x - ((getBounds(_root).xMin - _root.crate1.getBounds(_root).xMax) - 0.5)); if ((((_root.cant_move_crate1_left_against_red_wall == false) and (_root.cant_move_crate1_left_against_r6 == false)) and (_root.cant_move_crate1_left_against_insidebottom == false)) and (_root.cant_move_crate1_left_against_r2 == false)) { _root.cratespeed_xleft = 1; _root.crate1._x = _root.crate1._x - _root.cratespeed_xleft; _root.moveleft = true; } } } if (ymove > 0) { if ((((_root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall == false) && (_root.crate1_is_pushed_by_ball1_is_pushed_by_redwall == false)) and (_root.difference_x_ball1_with_crate1_leftside <= -1)) and (_root.difference_x_ball1_with_crate1_rightside <= -1)) { _y = (_y - ((getBounds(_root).yMax - _root.crate1.getBounds(_root).yMin) + 0.5)); if ((((_root.cant_move_crate1_down_against_red_wall == false) and (_root.cant_move_crate1_down_against_bottomwall == false)) and (_root.cant_move_crate1_down_against_r6 == false)) and (_root.cant_move_crate1_down_against_insidebottom == false)) { _root.cratespeed_ydown = 1; _root.crate1._y = _root.crate1._y + _root.cratespeed_ydown; _root.movedown = true; } } } if (ymove < 0) { if ((((_root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall == false) && (_root.crate1_is_pushed_by_ball1_is_pushed_by_redwall == false)) and (_root.difference_x_ball1_with_crate1_leftside <= -1)) and (_root.difference_x_ball1_with_crate1_rightside <= -1)) { _y = (_y - ((getBounds(_root).yMin - _root.crate1.getBounds(_root).yMax) - 0.8)); if ((((_root.cant_move_crate1_up_against_red_wall == false) and (_root.cant_move_crate1_up_against_r1 == false)) and (_root.cant_move_crate1_up_against_orangewall2 == false)) and (_root.cant_move_crate1_up_against_r2 == false)) { _root.cratespeed_yup = 1; _root.crate1._y = _root.crate1._y - _root.cratespeed_yup; _root.moveup = true; } } } } } } if ((((!Key.isDown(37)) and (!Key.isDown(39))) and (!Key.isDown(38))) and (!Key.isDown(40))) { _root.moveup = false; _root.movedown = false; _root.moveright = false; _root.moveleft = false; move(0, 0); _root.hit_crate1 = false; _root.hit_crate2 = false; _root.hit_crate3 = false; } if (_root.ball_movement == true) { if (Key.isDown(37)) { move(-5, 0); move2(-0.1, 0); _root.moveleft = true; } if (Key.isDown(39)) { if ((_root.ball1_is_pushed_by_crate1_is_pushed_by_red_wall == false) and (_root.ball1_is_pushed_by_crate4_is_pushed_by_orange_wall == false)) { move(5, 0); move2(0.1, 0); _root.moveright = true; } } if (Key.isDown(38)) { move(0, -5); move2(0, -0.1); _root.moveup = true; } if (Key.isDown(40)) { move(0, 5); move2(0, 0.1); _root.movedown = true; } } } onClipEvent (enterFrame) { function move2(xmove2, ymove2) { _x = (_x + xmove2); _y = (_y + ymove2); if (hitTest(_root.leftwall)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftwall.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftwall.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightwall)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightwall.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightwall.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.middlewall)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.topwall)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.topwall.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.topwall.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.topwall.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bottomwall)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bottomwall.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bottomwall.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bottomwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.l1)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.l1.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.l1.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.l1.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.l1.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.l2)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.l2.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.l2.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.l2.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.l2.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.l3)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.l3.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.l3.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.l3.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.l3.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.l4)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.l4.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.l4.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.l4.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.l4.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.l5)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.l5.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.l5.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.l5.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.l5.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.l6)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.l6.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.l6.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.l6.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.l6.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.r1)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.r1.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.r1.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.r1.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.r1.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.r2)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.r2.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.r2.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.r2.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.r2.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.r3)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.r3.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.r3.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.r3.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.r3.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.r4)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.r4.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.r4.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.r4.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.r4.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.r5)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.r5.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.r5.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.r5.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.r5.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.r6)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.r6.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.r6.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.r6.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.r6.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.r7)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.r7.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.r7.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.r7.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.r7.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.blacktip1)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.blacktip1.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.blacktip1.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.blacktip1.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.blacktip1.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.blacktip2)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.blacktip2.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.blacktip2.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.blacktip2.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.blacktip2.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.blacktip3)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.blacktip3.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.blacktip3.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.blacktip3.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.blacktip3.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.blacktip4)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.blacktip4.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.blacktip4.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.blacktip4.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.blacktip4.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.blacktip5)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.blacktip5.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.blacktip5.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.blacktip5.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.blacktip5.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.blacktip6)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.blacktip6.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.blacktip6.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.blacktip6.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.blacktip6.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.orangewall1)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.orangewall1.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.orangewall1.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.orangewall1.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.orangewall1.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bluewall)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bluewall.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bluewall.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bluewall.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bluewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.redwall) and (_root.crate1_is_pushed_by_ball1_is_pushed_by_redwall == false)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.redwall.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.redwall.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.redwall.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.redwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.orangewall)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.orangewall.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.orangewall.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.orangewall.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.orangewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.greenwall)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.greenwall.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.greenwall.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.greenwall.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.greenwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.pinkwall)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.pinkwall.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.pinkwall.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.pinkwall.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.pinkwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.crate2)) { _root.hit_crate2 = true; if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.crate2.getBounds(_root).xMin) + 0.2)); if ((((((_root.cant_move_crate2_right_against_l6 == false) and (_root.cant_move_crate2_right_against_insidetop == false)) and (_root.cant_move_crate2_right_against_l1 == false)) and (_root.cant_move_crate2_right_against_insidebottom == false)) and (_root.cant_move_crate2_right_against_greenwall == false)) and (_root.cant_move_crate2_right_against_crate3 == false)) { _root.cratespeed_xright = 1; _root.crate2._x = _root.crate2._x + _root.cratespeed_xright; } } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.crate2.getBounds(_root).xMax) - 0.2)); if (((_root.cant_move_crate2_left_against_leftwall == false) and (_root.cant_move_crate2_left_against_orangewall1 == false)) and (_root.cant_move_crate2_left_against_crate3 == false)) { _root.cratespeed_xleft = 1; _root.crate2._x = _root.crate2._x - _root.cratespeed_xleft; } } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.crate2.getBounds(_root).yMin) + 0.2)); if (((((((_root.cant_move_crate2_down_against_l6 == false) and (_root.cant_move_crate2_down_against_l4 == false)) and (_root.cant_move_crate2_down_against_bottomwall == false)) and (_root.cant_move_crate2_down_against_insidetop == false)) and (_root.cant_move_crate2_down_against_orangewall1 == false)) and (_root.cant_move_crate2_down_against_pinkwall == false)) and (_root.cant_move_crate2_down_against_crate3 == false)) { _root.cratespeed_ydown = 1; _root.crate2._y = _root.crate2._y + _root.cratespeed_ydown; } } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.crate2.getBounds(_root).yMax) - 0.2)); if (((_root.cant_move_crate2_up_against_topwall == false) and (_root.cant_move_crate2_up_against_l1 == false)) and (_root.cant_move_crate2_up_against_crate3 == false)) { _root.cratespeed_yup = 1; _root.crate2._y = _root.crate2._y - _root.cratespeed_yup; } } } if (hitTest(_root.crate3)) { _root.hit_crate3 = true; if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.crate3.getBounds(_root).xMin) + 0.2)); if ((((((_root.cant_move_crate3_right_against_l6 == false) and (_root.cant_move_crate3_right_against_insidetop == false)) and (_root.cant_move_crate3_right_against_l1 == false)) and (_root.cant_move_crate3_right_against_insidebottom == false)) and (_root.cant_move_crate3_right_against_greenwall == false)) and (_root.cant_move_crate3_right_against_crate2 == false)) { _root.cratespeed_xright = 1; _root.crate3._x = _root.crate3._x + _root.cratespeed_xright; } } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.crate3.getBounds(_root).xMax) - 0.2)); if (((_root.cant_move_crate3_left_against_leftwall == false) and (_root.cant_move_crate3_left_against_orangewall1 == false)) and (_root.cant_move_crate3_left_against_crate2 == false)) { _root.cratespeed_xleft = 1; _root.crate3._x = _root.crate3._x - _root.cratespeed_xleft; } } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.crate3.getBounds(_root).yMin) + 0.2)); if (((((((_root.cant_move_crate3_down_against_l6 == false) and (_root.cant_move_crate3_down_against_l4 == false)) and (_root.cant_move_crate3_down_against_bottomwall == false)) and (_root.cant_move_crate3_down_against_insidetop == false)) and (_root.cant_move_crate3_down_against_orangewall1 == false)) and (_root.cant_move_crate3_down_against_pinkwall == false)) and (_root.cant_move_crate3_down_against_crate2 == false)) { _root.cratespeed_ydown = 1; _root.crate3._y = _root.crate3._y + _root.cratespeed_ydown; } } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.crate3.getBounds(_root).yMax) - 0.2)); if (((_root.cant_move_crate3_up_against_topwall == false) and (_root.cant_move_crate3_up_against_l1 == false)) and (_root.cant_move_crate3_up_against_crate2 == false)) { _root.cratespeed_yup = 1; _root.crate3._y = _root.crate3._y - _root.cratespeed_yup; } } } if (hitTest(_root.crate4)) { if (_root.crate4._currentframe == 1) { _root.hit_crate4 = true; if (ymove2 < 0) { if (_root.ball1_is_pushed_by_crate4_is_pushed_by_orange_wall == false) { _y = (_y - ((getBounds(_root).yMin - _root.crate4.getBounds(_root).yMax) - 0.5)); if ((_root.cant_move_crate4_up_against_orange_wall == false) and (_root.cant_move_crate4_up_against_topwall == false)) { _root.cratespeed_yup = 1; _root.crate4._y = _root.crate4._y - _root.cratespeed_yup; _root.moveup = true; } } } } } } }
Frame 32
function restartLevel() { _root.scoresubmit24 = savefile.data.scoresubmit24; savefile.flush(); soundstart = false; small = false; if ((((((var25 != true) and (var26 != true)) and (var27 != true)) and (var28 != true)) and (var29 != true)) and (var30 != true)) { var24 = true; } var23 = false; if (_root.var1) { _root.score = 1; } else if (_root.var2) { _root.score = 2; } else if (_root.var3) { _root.score = 3; } else if (_root.var4) { _root.score = 4; } else if (_root.var5) { _root.score = 5; } else if (_root.var6) { _root.score = 6; } else if (_root.var71) { _root.score = 7; } else if (_root.var8) { _root.score = 8; } else if (_root.var9) { _root.score = 9; } else if (_root.var10) { _root.score = 10; } else if (_root.var11) { _root.score = 11; } else if (_root.var12) { _root.score = 12; } else if (_root.var13) { _root.score = 13; } else if (_root.var14) { _root.score = 14; } else if (_root.var15) { _root.score = 15; } else if (_root.var16) { _root.score = 16; } else if (_root.var17) { _root.score = 17; } else if (_root.var18) { _root.score = 18; } else if (_root.var19) { _root.score = 19; } else if (_root.var20) { _root.score = 20; } else if (_root.var21) { _root.score = 21; } else if (_root.var22) { _root.score = 22; } else if (_root.var23) { _root.score = 23; } else if (_root.var24) { _root.score = 24; } else if (_root.var25) { _root.score = 25; } else if (_root.var26) { _root.score = 26; } else if (_root.var27) { _root.score = 27; } else if (_root.var28) { _root.score = 28; } else if (_root.var29) { _root.score = 29; } else if (_root.var30) { _root.score = 30; } savefile.data.score = _root.score; savefile.flush(); radius = ball1._height / 2; SPACE_possible = true; small = false; greenmovement = false; redwall_movement = false; bluewall1_movement = false; bluewall2_movement = false; bluetransparent_movement = false; pinkwall_movement = false; orangewall_movement = false; lredwall_movement = false; aquawall_movement = false; greenwall_movement = false; yellowwall_movement = false; pinkswitch.gotoAndStop(1); ball_location = true; gray_is_hit_orange = false; black_is_hit_orange = false; orange_hit = false; gray_is_hit_red = false; black_is_hit_red = false; red_hit = false; gray_is_hit_lred = false; black_is_hit_lred = false; lred_hit = false; gray_is_hit_blue2 = false; black_is_hit_blue2 = false; blue2_hit = false; ball_movement = true; finisher = false; _root.decoy2.gotoAndStop(1); _root.decoy.gotoAndStop(1); _root.ball1.gotoAndStop(1); _root.ball1.gotoAndStop(1); _root.ball2.gotoAndStop(1); _root.ball2.gotoAndStop(1); decoy._x = -1000; decoy2._x = -1000; decoy._width = 32; decoy._height = 32; decoy2._width = 32; decoy2._height = 32; timing = true; elapsedTime = 0; startTime = getTimer(); seconds = 0; redkey._x = 433.1; redkey._y = 68; yellowkey._x = 420.1; yellowkey._y = 484.9; bluekey._x = 279.4; bluekey._y = 145; lredkey._x = 231.1; lredkey._y = 330.9; orangekey._x = 232.3; orangekey._y = 277; greenkey._x = 575; greenkey._y = 133.2; aquakey._x = 575; aquakey._y = 76.5; bluestop._x = 279.4; bluestop._y = 106; orangestop._x = 118.1; orangestop._y = 68; pinkswitch._x = 185.4; pinkswitch._y = 145; smallkey._x = 279.4; smallkey._y = 68; bluetransparent._x = 186.5; bluetransparent._y = 400; bluewall2._x = 186.4; bluewall2._y = 323.1; bluewall1._x = 186.7; bluewall1._y = 460.4; bluewall._x = 181.1; bluewall._y = 327.8; pinkwall._x = 433.4; pinkwall._y = 152; redwall._x = 488.6; redwall._y = -9; orangewall._x = 500; orangewall._y = 590.6; aquawall._x = 567.1; aquawall._y = 446.4; greenwall._x = 398.6; greenwall._y = 243.4; yellowwall._x = 566.9; yellowwall._y = 434.9; lredwall._x = 453.3; lredwall._y = 588.2; ball1._x = 280.1; ball1._y = 483.9; ball2._x = 500; ball2._y = 309; youwin._x = 10000; winningscreen._x = 1000; finish._x = 566.9; finish._y = 487; } function ball1_old_location() { x_location = ball1._x; y_location = ball1._y; } function ball_locator() { ball_location = true; if (black_is_hit_orange == true) { if (small) { decoy._height = 16; decoy._width = 16; } if (small) { decoy2._height = 16; decoy2._width = 16; } ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(3); _root.decoy.gotoAndStop(2); } if (gray_is_hit_orange == true) { if (small) { decoy._height = 16; decoy._width = 16; } if (small) { decoy2._height = 16; decoy2._width = 16; } ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); } if (black_is_hit_lred == true) { if (small) { decoy._height = 16; decoy._width = 16; } if (small) { decoy2._height = 16; decoy2._width = 16; } ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(3); _root.decoy.gotoAndStop(2); } if (gray_is_hit_lred == true) { if (small) { decoy._height = 16; decoy._width = 16; } if (small) { decoy2._height = 16; decoy2._width = 16; } ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); } if (black_is_hit_red == true) { if (small) { decoy._height = 16; decoy._width = 16; } if (small) { decoy2._height = 16; decoy2._width = 16; } ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(3); _root.decoy.gotoAndStop(2); } if (gray_is_hit_red == true) { if (small) { decoy._height = 16; decoy._width = 16; } if (small) { decoy2._height = 16; decoy2._width = 16; } ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); } if (black_is_hit_blue2 == true) { if (small) { decoy._height = 16; decoy._width = 16; } if (small) { decoy2._height = 16; decoy2._width = 16; } ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(3); _root.decoy.gotoAndStop(2); } if (gray_is_hit_blue2 == true) { if (small) { decoy._height = 16; decoy._width = 16; } if (small) { decoy2._height = 16; decoy2._width = 16; } ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); } } stop(); _root.options._x = 28.1; _root.restartbutton._x = 41.9; _root.QW._x = 73.8; _root.P._x = 55.6; _root.BN._x = 66; totalRestarts = 0; _root.option.hintbox.gotoAndStop(1); _root.option.meter.gotoAndStop(26); restartLevel(); youwin.onPress = function () { gotoAndStop ("l33"); }; ball1.onEnterFrame = function () { if (this.hitTest(bluekey)) { keystart = true; bluekey._x = 100000 /* 0x0186A0 */; bluewall2_movement = true; bluewall1_movement = true; bluetransparent_movement = true; _root.ball1.scan.gotoAndStop(4); _root.ball1.scan.bluemove.gotoAndPlay(1); } if (this.hitTest(redkey)) { keystart = true; redkey._x = 100000 /* 0x0186A0 */; redwall_movement = true; _root.ball1.scan.gotoAndStop(3); } if (this.hitTest(orangekey)) { keystart = true; orangekey._x = 100000 /* 0x0186A0 */; orangewall_movement = true; _root.ball1.scan.gotoAndStop(6); } if (this.hitTest(aquakey)) { keystart = true; aquakey._x = 100000 /* 0x0186A0 */; aquawall_movement = true; _root.ball1.scan.gotoAndStop(8); } if (this.hitTest(greenkey)) { keystart = true; greenkey._x = 100000 /* 0x0186A0 */; greenwall_movement = true; _root.ball1.scan.gotoAndStop(2); } if (bluewall2.hitTest(_root.pinkswitch.button) and (_root.pinkswitch._currentframe == 1)) { switchstart = true; _root.pinkswitch.gotoAndStop(2); pinkwall_movement = true; } if (this.hitTest(orangestop)) { stopstart = true; orangestop._x = 10000; orangewall_movement = false; _root.ball1.scan.gotoAndStop(11); } if (this.hitTest(bluestop)) { stopstart = true; bluestop._x = 10000; bluewall1_movement = false; bluewall2_movement = false; bluetransparent_movement = false; _root.ball1.scan.gotoAndStop(11); } if (this.hitTest(smallkey)) { smallstart = true; smallkey._x = 10000; small = true; ball1.gotoAndStop(2); ball2.gotoAndStop(2); } if (redwall.hitTest(orangewall)) { redwall_movement = false; orangewall_movement = false; soundstart = true; orangewall._y = ((redwall._y + (redwall._height / 2)) + (orangewall._height / 2)) + 0.1; } if (redwall.hitTest(greenwall)) { soundstart = true; greenwall_movement = false; redwall_movement = false; if ((redwall._y + (redwall._height / 2)) > (greenwall._y - (greenwall._height / 2))) { if (greenwall._x <= 410) { greenwall._x = 400.9; } } if ((((redwall._x - (greenwall._width / 2)) - greenwall._x) - (redwall._width / 2)) < -5) { redwall._y = ((greenwall._y - (greenwall._height / 2)) - (redwall._height / 2)) - 0.1; something = true; } else { greenwall._x = ((redwall._x - (redwall._width / 2)) - (greenwall._width / 2)) - 0.1; } } if ((orangewall.hitTest(greenwall) and (greenmovement == true)) and ((orangewall._y - (orangewall._height / 2)) > ((greenwall._y + (greenwall._height / 2)) - 2))) { soundstart = true; greenwall_movement = false; orangewall_movement = false; if ((((orangewall._x - (greenwall._width / 2)) - greenwall._x) - (orangewall._width / 2)) < -1) { orangewall._y = ((greenwall._y + (greenwall._height / 2)) + (orangewall._height / 2)) + 0.1; } } if ((((orangewall._y - (orangewall._height / 2)) + 2) < (greenwall._y + (greenwall._height / 2))) and greenmovement) { if (greenwall.hitTest(orangewall)) { soundstart = true; soundy = true; } orangewall_movement = false; greenwall_movement = false; greenwall._x = ((orangewall._x - (orangewall._width / 2)) - (greenwall._width / 2)) - 0.1; } if (scoresubmit24) { scoresubmit = false; } else if (scoresubmit24 == false) { scoresubmit = true; } if (this.hitTest(finish)) { timing = false; seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if ((score == 24) or scoresubmit) { level24_best_time = seconds; scoresubmit24 = true; savefile.data.scoresubmit24 = _root.scoresubmit24; savefile.flush(); } if (seconds < level24_best_time) { level24_best_time = seconds; } savefile.data.level24_best_time = _root.level24_best_time; savefile.flush(); if (_root.score <= 25) { _root.score = 25; } savefile.data.score = _root.score; savefile.flush(); SPACE_possible = false; ball_movement = false; win._x = Stage.width / 2; win._y = Stage.height / 2; _root.win.instructions.gotoAndStop(24); _root.win.meter.gotoAndStop(24); } if (Key.isDown(32) && (SPACE_possible == false)) { finisher = true; } if (finisher) { if (!Key.isDown(32)) { win._x = 10000; gotoAndStop ("l33"); finisher = false; SPACE_possible = true; } } }; _root.onEnterFrame = function () { seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if (!ball_movement) { timing = false; startTime = getTimer() - elapsedTime; } else { timing = true; } if (timing) { elapsedTime = getTimer() - startTime; } if (var24) { w_works = false; } else { w_works = true; } if (((option._x != (Stage.width / 2)) and (instruction._x != (Stage.width / 2))) and (win._x != (Stage.width / 2))) { if (Key.isDown(81)) { q_is_DOWN = true; } if (q_is_DOWN) { if (!Key.isDown(81)) { gotoAndStop ("l17"); q_is_DOWN = false; } } if (Key.isDown(87)) { w_is_DOWN = true; } if (w_is_DOWN) { if (!Key.isDown(87)) { if (w_works) { gotoAndStop ("l33"); } w_is_DOWN = false; } } ballx = ball1._x; bally = ball1._y; decoyx = decoy._x; if (Key.isDown(78)) { n_is_DOWN = true; } if (n_is_DOWN) { if (!Key.isDown(78)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); n_is_DOWN = false; } } } if (Key.isDown(66)) { b_is_DOWN = true; } if (b_is_DOWN) { if (!Key.isDown(66)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); b_is_DOWN = false; } } } if (SPACE_possible) { if (Key.isDown(32)) { SPACE_is_DOWN = true; } if (SPACE_is_DOWN) { if (!Key.isDown(32)) { ball1_old_location(); ball1._x = ball2._x; ball1._y = ball2._y; ball2._x = x_location; ball2._y = y_location; SPACE_is_DOWN = false; } } } } if (bluewall2_movement) { bluewall2._y = bluewall2._y - 1; bluewall._y = bluewall._y - 1; } if (bluewall2._y < 107.9) { soundstart = true; bluewall2_movement = false; bluewall1_movement = false; bluetransparent_movement = false; bluewall2._y = 107.9; bluetransparent._y = 184; } if (bluewall1_movement) { bluewall1._y = bluewall1._y - 1; } if (bluetransparent_movement) { bluetransparent._y = bluetransparent._y - 1; } if (redwall_movement) { redwall._y = redwall._y + 0.6; } if (orangewall_movement) { orangewall._y = orangewall._y - 0.06; } if (greenwall_movement) { greenwall._x = greenwall._x + 3; greenmovement = true; } if (greenwall._x >= 467.2) { greenwall_movement = false; soundstart = true; greenwall._x = 467.1; } if (lredwall_movement) { lredwall._y = lredwall._y - 1; } if (lredwall._y < 479.3) { lredwall_movement = false; } if (pinkwall_movement) { pinkwall._x = pinkwall._x - 2; } if (pinkwall._x <= 361.9) { pinkwall_movement = false; pinkwall._x = 361.9; } if (aquawall_movement) { aquawall._x = aquawall._x + 2; } if (yellowwall_movement) { yellowwall._x = yellowwall._x + 2; } differenceblue = ((bluewall2._y - ball1._y) - (bluewall2._height / 2)) - (ball1._height / 2); differenceblue2 = ((bluewall2._y - ball2._y) - (bluewall2._height / 2)) - (ball2._height / 2); distance_between_topwall_and_ball = Math.abs(((ball1._y - topwall._y) - (topwall._height / 2)) - (ball1._height / 2)); distance_between_topwall_and_ball2 = Math.abs(((ball2._y - topwall._y) - (topwall._height / 2)) - (ball2._height / 2)); distance_between_ll_and_ball = Math.abs(((ball1._y - ll._y) - (ll._height / 2)) - (ball1._height / 2)); distance_between_ll_and_ball2 = Math.abs(((ball2._y - ll._y) - (ll._height / 2)) - (ball2._height / 2)); distance_between_lm_and_ball = Math.abs(((ball1._y - lm._y) - (lm._height / 2)) - (ball1._height / 2)); distance_between_lm_and_ball2 = Math.abs(((ball2._y - lm._y) - (lm._height / 2)) - (ball2._height / 2)); distance_x_between_bluewall2_and_ball = Math.abs(bluewall2._x - ball1._x); distance_x_between_bluewall2_and_ball2 = Math.abs(bluewall2._x - ball2._x); if ((((bluewall2_movement == true) and (differenceblue <= 0.2)) and (differenceblue >= -8)) and (distance_x_between_bluewall2_and_ball < ((ball1._width / 2) + (bluewall2._width / 2)))) { ball1._y = ((bluewall2._y - (bluewall2._height / 2)) - (ball1._height / 2)) - 0.2; } if ((((bluewall2_movement == true) and (differenceblue2 <= 0.2)) and (differenceblue2 >= -8)) and (distance_x_between_bluewall2_and_ball2 < ((ball2._width / 2) + (bluewall2._width / 2)))) { ball2._y = ((bluewall2._y - (bluewall2._height / 2)) - (ball2._height / 2)) - 0.2; } if (((((differenceblue <= 1) && (differenceblue >= -2)) && (distance_between_topwall_and_ball <= 2)) && (distance_x_between_bluewall2_and_ball < ((ball1._width / 2) + (bluewall2._width / 2)))) or ((((differenceblue2 <= 0.5) && (differenceblue2 >= -1)) && (distance_between_topwall_and_ball2 <= 0.5)) && (distance_x_between_bluewall2_and_ball2 < ((ball2._width / 2) + (bluewall2._width / 2))))) { blue2_hit = true; ball_location = false; ball1._y = 2000; ball2._y = 2000; } if ((((((differenceblue <= 0.5) && (differenceblue >= -1)) && (distance_between_ll_and_ball <= 1)) && (ball1._x < ((ll._x + (ll._width / 2)) + (ball1._width / 2)))) && (distance_x_between_bluewall2_and_ball < ((ball1._width / 2) + (bluewall2._width / 2)))) or (((((differenceblue2 <= 0.5) && (differenceblue2 >= -1)) && (distance_between_ll_and_ball2 <= 0.5)) && (ball2._x < ((ll._x + (ll._width / 2)) + (ball2._width / 2)))) && (distance_x_between_bluewall2_and_ball2 < ((ball2._width / 2) + (bluewall2._width / 2))))) { blue2_hit = true; ball_location = false; ball1._y = 2000; ball2._y = 2000; } if ((((((differenceblue <= 0.5) && (differenceblue >= -1)) && (distance_between_lm_and_ball <= 1)) && (ball1._x > ((lm._x - (lm._width / 2)) - (ball1._width / 2)))) && (distance_x_between_bluewall2_and_ball < ((ball1._width / 2) + (bluewall2._width / 2)))) or (((((differenceblue2 <= 0.5) && (differenceblue2 >= -1)) && (distance_between_lm_and_ball2 <= 0.5)) && (ball2._x > ((lm._x - (lm._width / 2)) - (ball1._width / 2)))) && (distance_x_between_bluewall2_and_ball2 < ((ball2._width / 2) + (bluewall2._width / 2))))) { blue2_hit = true; ball_location = false; ball1._y = 2000; ball2._y = 2000; } differenceorange = ((orangewall._y - ball1._y) - (orangewall._height / 2)) - (ball1._height / 2); differenceorange2 = ((orangewall._y - ball2._y) - (orangewall._height / 2)) - (ball2._height / 2); distance_between_redwall_and_ball = Math.abs(((ball1._y - redwall._y) - (redwall._height / 2)) - (ball1._height / 2)); distance_between_redwall_and_ball2 = Math.abs(((ball2._y - redwall._y) - (redwall._height / 2)) - (ball2._height / 2)); distance_between_rl_and_ball = Math.abs(((ball1._y - rl._y) - (rl._height / 2)) - (ball1._height / 2)); distance_between_rl_and_ball2 = Math.abs(((ball2._y - rl._y) - (rl._height / 2)) - (ball2._height / 2)); distance_between_rr_and_ball = Math.abs(((ball1._y - rr._y) - (rr._height / 2)) - (ball1._height / 2)); distance_between_rr_and_ball2 = Math.abs(((ball2._y - rr._y) - (rr._height / 2)) - (ball2._height / 2)); distance_between_rrr_and_ball = Math.abs(((ball1._y - rrr._y) - (rrr._height / 2)) - (ball1._height / 2)); distance_between_rrr_and_ball2 = Math.abs(((ball2._y - rrr._y) - (rrr._height / 2)) - (ball2._height / 2)); distance_x_between_orangewall_and_ball = Math.abs(orangewall._x - ball1._x); distance_x_between_orangewall_and_ball2 = Math.abs(orangewall._x - ball2._x); if ((((orangewall_movement == true) and (differenceorange <= 0.2)) and (differenceorange >= -8)) and (distance_x_between_orangewall_and_ball < ((ball1._width / 2) + (orangewall._width / 2)))) { ball1._y = ((orangewall._y - (orangewall._height / 2)) - (ball1._height / 2)) - 0.2; } if ((((orangewall_movement == true) and (differenceorange2 <= 0.2)) and (differenceorange2 >= -8)) and (distance_x_between_orangewall_and_ball2 < ((ball2._width / 2) + (orangewall._width / 2)))) { ball2._y = ((orangewall._y - (orangewall._height / 2)) - (ball2._height / 2)) - 0.2; } if ((((((differenceorange <= 0.5) && (differenceorange >= -1)) && (distance_between_rr_and_ball <= 1)) && (ball1._x > ((rr._x - (rr._width / 2)) - (ball1._width / 2)))) && (distance_x_between_orangewall_and_ball < ((ball1._width / 2) + (orangewall._width / 2)))) or (((((differenceorange2 <= 0.5) && (differenceorange2 >= -1)) && (distance_between_rr_and_ball2 <= 0.5)) && (ball2._x > ((rr._x - (rr._width / 2)) - (ball2._width / 2)))) && (distance_x_between_orangewall_and_ball2 < ((ball2._width / 2) + (orangewall._width / 2))))) { orange_hit = true; ball_location = false; ball1._y = 2000; ball2._y = 2000; } if ((((((differenceorange <= 0.5) && (differenceorange >= -1)) && (distance_between_rrr_and_ball <= 1)) && (ball1._x > ((rrr._x - (rrr._width / 2)) - (ball1._width / 2)))) && (distance_x_between_orangewall_and_ball < ((ball1._width / 2) + (orangewall._width / 2)))) or (((((differenceorange2 <= 0.5) && (differenceorange2 >= -1)) && (distance_between_rrr_and_ball2 <= 0.5)) && (ball2._x > ((rrr._x - (rrr._width / 2)) - (ball2._width / 2)))) && (distance_x_between_orangewall_and_ball2 < ((ball2._width / 2) + (orangewall._width / 2))))) { orange_hit = true; ball_location = false; ball1._y = 2000; ball2._y = 2000; } if ((((((differenceorange <= 0.5) && (differenceorange >= -1)) && (distance_between_rl_and_ball <= 1)) && (ball1._x < ((rl._x + (rl._width / 2)) + (ball1._width / 2)))) && (distance_x_between_orangewall_and_ball < ((ball1._width / 2) + (orangewall._width / 2)))) or (((((differenceorange2 <= 0.5) && (differenceorange2 >= -1)) && (distance_between_rl_and_ball2 <= 0.5)) && (ball2._x < ((rl._x + (rl._width / 2)) + (ball2._width / 2)))) && (distance_x_between_orangewall_and_ball2 < ((ball2._width / 2) + (orangewall._width / 2))))) { orange_hit = true; ball_location = false; ball1._y = 2000; ball2._y = 2000; } if ((((((differenceorange <= 0.5) && (differenceorange >= -1)) && (distance_between_redwall_and_ball <= 1)) && (ball1._x < ((redwall._x + (redwall._width / 2)) + (ball1._width / 2)))) && (distance_x_between_orangewall_and_ball < ((ball1._width / 2) + (orangewall._width / 2)))) or (((((differenceorange2 <= 0.5) && (differenceorange2 >= -1)) && (distance_between_redwall_and_ball2 <= 0.5)) && (ball2._x < ((redwall._x + (redwall._width / 2)) - (ball2._width / 2)))) && (distance_x_between_orangewall_and_ball2 < ((ball2._width / 2) + (orangewall._width / 2))))) { orange_hit = true; ball_location = false; ball1._y = 2000; ball2._y = 2000; } differencelred = ((lredwall._y - ball1._y) - (lredwall._height / 2)) - (ball1._height / 2); differencelred2 = ((lredwall._y - ball2._y) - (lredwall._height / 2)) - (ball2._height / 2); distance_x_between_lredwall_and_ball = Math.abs(lredwall._x - ball1._x); distance_x_between_lredwall_and_ball2 = Math.abs(lredwall._x - ball2._x); if ((((lredwall_movement == true) and (differencelred <= 0.2)) and (differencelred >= -8)) and (distance_x_between_lredwall_and_ball < ((ball1._width / 2) + (lredwall._width / 2)))) { ball1._y = ((lredwall._y - (lredwall._height / 2)) - (ball1._height / 2)) - 0.2; } if ((((lredwall_movement == true) and (differencelred2 <= 0.2)) and (differencelred2 >= -8)) and (distance_x_between_lredwall_and_ball2 < ((ball2._width / 2) + (lredwall._width / 2)))) { ball2._y = ((lredwall._y - (lredwall._height / 2)) - (ball2._height / 2)) - 0.2; } if ((((((differencelred <= 0.5) && (differencelred >= -1)) && (distance_between_rl_and_ball <= 1)) && (ball1._x < ((rl._x + (rl._width / 2)) + (ball1._width / 2)))) && (distance_x_between_lredwall_and_ball < ((ball1._width / 2) + (lredwall._width / 2)))) or (((((differencelred2 <= 0.5) && (differencelred2 >= -1)) && (distance_between_rl_and_ball2 <= 0.5)) && (ball2._x < ((rl._x + (rl._width / 2)) + (ball2._width / 2)))) && (distance_x_between_lredwall_and_ball2 < ((ball2._width / 2) + (lredwall._width / 2))))) { lred_hit = true; ball_location = false; ball1._y = 2000; ball2._y = 2000; } differencered = ((ball1._y - redwall._y) - (redwall._height / 2)) - (ball1._height / 2); differencered2 = ((ball2._y - redwall._y) - (redwall._height / 2)) - (ball2._height / 2); distance_between_rry_and_ball = Math.abs(((rr._y - ball1._y) - (rr._height / 2)) - (ball1._height / 2)); distance_between_rry_and_ball2 = Math.abs(((rr._y - ball2._y) - (rr._height / 2)) - (ball2._height / 2)); distance_between_rly_and_ball = Math.abs(((rl._y - ball1._y) - (rl._height / 2)) - (ball1._height / 2)); distance_between_rly_and_ball2 = Math.abs(((rl._y - ball2._y) - (rl._height / 2)) - (ball2._height / 2)); distance_between_greenwall_and_ball = Math.abs(((greenwall._y - ball1._y) - (greenwall._height / 2)) - (ball1._height / 2)); distance_between_greenwall_and_ball2 = Math.abs(((greenwall._y - ball2._y) - (greenwall._height / 2)) - (ball2._height / 2)); distance_x_between_redwall_and_ball = Math.abs(redwall._x - ball1._x); distance_x_between_redwall_and_ball2 = Math.abs(redwall._x - ball2._x); if ((((redwall_movement == true) and (differencered <= 0.2)) and (differencered >= -8)) and (distance_x_between_redwall_and_ball < ((ball1._width / 2) + (redwall._width / 2)))) { ball1._y = ((redwall._y + (redwall._height / 2)) + (ball1._height / 2)) + 0.2; } if ((((redwall_movement == true) and (differencered2 <= 0.2)) and (differencered2 >= -8)) and (distance_x_between_redwall_and_ball2 < ((ball2._width / 2) + (redwall._width / 2)))) { ball2._y = ((redwall._y + (redwall._height / 2)) + (ball2._height / 2)) + 0.2; } if ((((((differencered <= 0.5) && (differencered >= -1)) && (distance_between_rry_and_ball <= 1)) && (ball1._x > ((rr._x - (rr._width / 2)) - (ball1._width / 2)))) && (distance_x_between_redwall_and_ball < ((ball1._width / 2) + (redwall._width / 2)))) or (((((differencered2 <= 0.5) && (differencered2 >= -1)) && (distance_between_rry_and_ball2 <= 0.5)) && (ball2._x > ((rr._x - (rr._width / 2)) - (ball2._width / 2)))) && (distance_x_between_redwall_and_ball2 < ((ball2._width / 2) + (redwall._width / 2))))) { red_hit = true; ball_location = false; ball1._y = 2000; ball2._y = 2000; } if ((((((differencered <= 0.5) && (differencered >= -1)) && (distance_between_rly_and_ball <= 1)) && (ball1._x < ((rl._x + (rl._width / 2)) + (ball1._width / 2)))) && (distance_x_between_redwall_and_ball < ((ball1._width / 2) + (redwall._width / 2)))) or (((((differencered2 <= 0.5) && (differencered2 >= -1)) && (distance_between_rly_and_ball2 <= 0.5)) && (ball2._x < ((rl._x + (rl._width / 2)) + (ball2._width / 2)))) && (distance_x_between_redwall_and_ball2 < ((ball2._width / 2) + (redwall._width / 2))))) { red_hit = true; ball_location = false; ball1._y = 2000; ball2._y = 2000; } if ((((((differencered <= 0.5) && (differencered >= -1)) && (distance_between_greenwall_and_ball <= 1)) && (ball1._x < ((greenwall._x + (greenwall._width / 2)) + (ball1._width / 2)))) && (distance_x_between_redwall_and_ball < ((ball1._width / 2) + (redwall._width / 2)))) or (((((differencered2 <= 0.5) && (differencered2 >= -1)) && (distance_between_greenwall_and_ball2 <= 0.5)) && (ball2._x < ((greenwall._x + (greenwall._width / 2)) + (greenwall._width / 2)))) && (distance_x_between_redwall_and_ball2 < ((ball2._width / 2) + (redwall._width / 2))))) { red_hit = true; ball_location = false; ball1._y = 2000; ball2._y = 2000; } if (ball_location) { ball1_xlocation = ball1._x; ball1_ylocation = ball1._y; ball2_xlocation = ball2._x; ball2_ylocation = ball2._y; } else { explosionsound2 = true; if (ball1_xlocation > (Stage.width / 2)) { if (blue2_hit == true) { gray_is_hit_blue2 = true; } if (orange_hit == true) { black_is_hit_orange = true; } if (lred_hit == true) { black_is_hit_lred = true; } if (red_hit == true) { black_is_hit_red = true; } } else if (ball1_xlocation < (Stage.width / 2)) { if (blue2_hit == true) { black_is_hit_blue2 = true; } if (orange_hit == true) { gray_is_hit_orange = true; } if (lred_hit == true) { gray_is_hit_lred = true; } if (red_hit == true) { gray_is_hit_red = true; } } ball_locator(); } };
Instance of Symbol 1541 MovieClip "ball1" in Frame 32
onClipEvent (enterFrame) { function move(xmove, ymove) { _x = (_x + xmove); _y = (_y + ymove); if (hitTest(_root.leftwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.middlewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.topwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.topwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.topwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.topwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bottomwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bottomwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bottomwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bottomwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.lll)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.lll.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.lll.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.lll.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.lll.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.lm)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.lm.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.lm.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.lm.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.lm.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.ll)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.ll.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.ll.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.ll.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.ll.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.lr)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.lr.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.lr.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.lr.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.lr.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rl)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rl.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rl.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rl.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rl.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rr)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rr.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rr.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rr.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rr.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rrr)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rrr.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rrr.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rrr.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rrr.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.pinkwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.pinkwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.pinkwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.pinkwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.pinkwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.greenwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.greenwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.greenwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.greenwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.greenwall.getBounds(_root).yMax) - 0.1)); } } if (_root.greenwall2._x >= (Stage.width / 2)) { if (hitTest(_root.greenwall2)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.greenwall2.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.greenwall2.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.greenwall2.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.greenwall2.getBounds(_root).yMax) - 0.1)); } } } if (hitTest(_root.yellowwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.yellowwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.yellowwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.yellowwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.yellowwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bluewall1)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bluewall1.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bluewall1.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bluewall1.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bluewall1.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bluewall2)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bluewall2.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bluewall2.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bluewall2.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bluewall2.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.lredwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.lredwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.lredwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.lredwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.lredwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.aquawall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.aquawall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.aquawall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.aquawall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.aquawall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.orangewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.orangewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.orangewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.orangewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.orangewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.redwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.redwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.redwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.redwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.redwall.getBounds(_root).yMax) - 0.1)); } } } if (_root.ball_movement == true) { if (Key.isDown(37)) { move(-5, 0); } if (Key.isDown(39)) { move(5, 0); } if (Key.isDown(38)) { move(0, -5); } if (Key.isDown(40)) { move(0, 5); } } }
Frame 33
function restartLevel() { _root.scoresubmit29 = savefile.data.scoresubmit29; savefile.flush(); soundstart = false; small = false; if (var30 != true) { var29 = true; } var28 = false; if (_root.var1) { _root.score = 1; } else if (_root.var2) { _root.score = 2; } else if (_root.var3) { _root.score = 3; } else if (_root.var4) { _root.score = 4; } else if (_root.var5) { _root.score = 5; } else if (_root.var6) { _root.score = 6; } else if (_root.var71) { _root.score = 7; } else if (_root.var8) { _root.score = 8; } else if (_root.var9) { _root.score = 9; } else if (_root.var10) { _root.score = 10; } else if (_root.var11) { _root.score = 11; } else if (_root.var12) { _root.score = 12; } else if (_root.var13) { _root.score = 13; } else if (_root.var14) { _root.score = 14; } else if (_root.var15) { _root.score = 15; } else if (_root.var16) { _root.score = 16; } else if (_root.var17) { _root.score = 17; } else if (_root.var18) { _root.score = 18; } else if (_root.var19) { _root.score = 19; } else if (_root.var20) { _root.score = 20; } else if (_root.var21) { _root.score = 21; } else if (_root.var22) { _root.score = 22; } else if (_root.var23) { _root.score = 23; } else if (_root.var24) { _root.score = 24; } else if (_root.var25) { _root.score = 25; } else if (_root.var26) { _root.score = 26; } else if (_root.var27) { _root.score = 27; } else if (_root.var28) { _root.score = 28; } else if (_root.var29) { _root.score = 29; } else if (_root.var30) { _root.score = 30; } savefile.data.score = _root.score; savefile.flush(); radius = ball1._height / 2; SPACE_possible = true; small = false; redwall1_movement = false; redwall2_movement = false; bluewall_movement = false; bluetransparent_movement = false; pinkwall_movement = false; orangewall_movement = false; lredwall_movement = false; aquawall_movement = false; greenwall_movement = false; yellowwall_movement = false; _root.pinkswitch.gotoAndStop(1); pinkswitch.gotoAndStop(1); yellowswitch.gotoAndStop(1); orangeswitch.gotoAndStop(1); greenswitch.gotoAndStop(1); ball_location = true; gray_is_hit_aqua = false; black_is_hit_aqua = false; aqua_hit = false; gray_is_hit_red = false; black_is_hit_red = false; red_hit = false; gray_is_hit_lred = false; black_is_hit_lred = false; lred_hit = false; gray_is_hit_pink = false; black_is_hit_pink = false; pink_hit = false; gray_is_hit_green = false; black_is_hit_green = false; green_hit = false; gray_is_hit_blue = false; black_is_hit_blue = false; blue_hit = false; _root.decoy2.gotoAndStop(1); _root.decoy.gotoAndStop(1); _root.ball1.gotoAndStop(1); _root.ball1.gotoAndStop(1); _root.ball2.gotoAndStop(1); _root.ball2.gotoAndStop(1); decoy._x = -1000; decoy2._x = -1000; ball_movement = true; finisher = false; timing = true; elapsedTime = 0; startTime = getTimer(); seconds = 0; redkey._x = 276; redkey._y = 477.4; yellowswitch._x = 216.4; yellowswitch._y = 377.8; bluekey._x = 156.8; bluekey._y = 475.4; lredkey._x = 431.4; lredkey._y = 477.4; orangeswitch._x = 405.9; orangeswitch._y = 300.1; greenswitch._x = 276; greenswitch._y = 424.9; aquakey._x = 276; aquakey._y = 84.3; redstop._x = 431.4; redstop._y = 84.3; pinkswitch._x = 273.4; pinkswitch._y = 299.1; smallkey._x = 544.5; smallkey._y = 84.3; bluewall._x = 431.8; bluewall._y = 425.4; blue_transparent._x = 442.1; blue_transparent._y = 425.4; aqua_transparent._x = 405.3; aqua_transparent._y = 298.9; pinkwall._x = 118; pinkwall._y = 454.1; redwall1._x = 615.4; redwall1._y = 366.1; redwall2._x = 542.3; redwall2._y = 149.9; orangewall._x = 442; orangewall._y = 199.5; aquawall._x = 446.7; aquawall._y = 299.3; aquawall1._x = 428.4; aquawall1._y = 299.3; aquawall2._x = 404.3; aquawall2._y = 299.3; greenwall._x = 442; greenwall._y = 251.8; yellowwall._x = 542; yellowwall._y = 423.9; lredwall._x = 216.9; lredwall._y = -64.3; ball1._x = 216.8; ball1._y = 477.4; ball2._x = 544.5; ball2._y = 253.1; youwin._x = 10000; winningscreen._x = 1000; finish._x = 541.7; finish._y = 475.2; decoy._width = 32; decoy._height = 32; decoy2._width = 32; decoy2._height = 32; } function ball1_old_location() { x_location = ball1._x; y_location = ball1._y; } function ball_locator() { ball_location = true; if (black_is_hit_aqua == true) { if (small) { decoy._height = 16; decoy._width = 16; } if (small) { decoy2._height = 16; decoy2._width = 16; } ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(3); _root.decoy.gotoAndStop(2); } if (gray_is_hit_aqua == true) { if (small) { decoy._height = 16; decoy._width = 16; } if (small) { decoy2._height = 16; decoy2._width = 16; } ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); } if (black_is_hit_lred == true) { if (small) { decoy._height = 16; decoy._width = 16; } if (small) { decoy2._height = 16; decoy2._width = 16; } ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(3); _root.decoy.gotoAndStop(2); } if (gray_is_hit_lred == true) { if (small) { decoy._height = 16; decoy._width = 16; } if (small) { decoy2._height = 16; decoy2._width = 16; } ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); } if (black_is_hit_red == true) { if (small) { decoy._height = 16; decoy._width = 16; } if (small) { decoy2._height = 16; decoy2._width = 16; } ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(3); _root.decoy.gotoAndStop(2); } if (gray_is_hit_red == true) { if (small) { decoy._height = 16; decoy._width = 16; } if (small) { decoy2._height = 16; decoy2._width = 16; } ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); } if (black_is_hit_pink == true) { if (small) { decoy._height = 16; decoy._width = 16; } if (small) { decoy2._height = 16; decoy2._width = 16; } ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(3); _root.decoy.gotoAndStop(2); } if (gray_is_hit_pink == true) { if (small) { decoy._height = 16; decoy._width = 16; } if (small) { decoy2._height = 16; decoy2._width = 16; } ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); } if (black_is_hit_green == true) { if (small) { decoy._height = 16; decoy._width = 16; } if (small) { decoy2._height = 16; decoy2._width = 16; } ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(3); _root.decoy.gotoAndStop(2); } if (gray_is_hit_green == true) { if (small) { decoy._height = 16; decoy._width = 16; } if (small) { decoy2._height = 16; decoy2._width = 16; } ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); } if (black_is_hit_blue == true) { if (small) { decoy._height = 16; decoy._width = 16; } if (small) { decoy2._height = 16; decoy2._width = 16; } ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(3); _root.decoy.gotoAndStop(2); } if (gray_is_hit_blue == true) { if (small) { decoy._height = 16; decoy._width = 16; } if (small) { decoy2._height = 16; decoy2._width = 16; } ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); } } stop(); _root.options._x = 28.1; _root.restartbutton._x = 41.9; _root.QW._x = 73.8; _root.P._x = 55.6; _root.BN._x = 66; totalRestarts = 0; _root.option.hintbox.gotoAndStop(1); _root.option.meter.gotoAndStop(29); restartLevel(); youwin.onPress = function () { gotoAndStop ("l27"); }; ball1.onEnterFrame = function () { if (this.hitTest(bluekey)) { keystart = true; bluekey._x = 100000 /* 0x0186A0 */; bluewall_movement = true; bluetransparent_movement = true; _root.ball1.scan.gotoAndStop(5); } if (this.hitTest(redkey)) { keystart = true; redkey._x = 100000 /* 0x0186A0 */; redwall1_movement = true; redwall2_movement = true; _root.ball1.scan.gotoAndStop(3); } if (this.hitTest(lredkey)) { keystart = true; lredkey._x = 100000 /* 0x0186A0 */; lredwall_movement = true; _root.ball1.scan.gotoAndStop(9); } if (pinkwall.hitTest(_root.orangeswitch.button) and (_root.orangeswitch._currentframe == 1)) { switchstart = true; _root.orangeswitch.gotoAndStop(2); orangewall_movement = true; } if (this.hitTest(aquakey)) { keystart = true; aquakey._x = 100000 /* 0x0186A0 */; aquawall_movement = true; _root.ball1.scan.gotoAndStop(4); _root.ball1.scan.bluemove.gotoAndPlay(1); } if (bluewall.hitTest(_root.greenswitch.button) and (_root.greenswitch._currentframe == 1)) { switchstart = true; _root.greenswitch.gotoAndStop(2); if (greenwall._x >= 557.9) { greenwall_movement = false; } else { greenwall_movement = true; } } if (lredwall.hitTest(_root.yellowswitch.button) and (_root.yellowswitch._currentframe == 1)) { switchstart = true; _root.yellowswitch.gotoAndStop(2); yellowwall_movement = true; } if (aquawall.hitTest(_root.pinkswitch.button) and (_root.pinkswitch._currentframe == 1)) { switchstart = true; _root.pinkswitch.gotoAndStop(2); if (pinkwall._y <= 96.5) { pinkwall_movement = false; } else { pinkwall_movement = true; } } if (this.hitTest(redstop)) { stopstart = true; redstop._x = 10000; redwall1_movement = false; _root.ball1.scan.gotoAndStop(11); } if (lredwall.hitTest(aquawall) and (aquawall_movement == true)) { soundstart = true; lredwall_movement = false; aquawall_movement = false; if ((((aquawall._x - (lredwall._width / 2)) - lredwall._x) - (aquawall._width / 2)) < -1) { lredwall._y = ((aquawall._y - (aquawall._height / 2)) - (lredwall._height / 2)) - 0.1; } else { aquawall._x = ((lredwall._x + (lredwall._width / 2)) + (aquawall._width / 2)) + 0.1; } } if (this.hitTest(smallkey)) { smallstart = true; smallkey._x = 10000; small = true; ball1.gotoAndStop(2); ball2.gotoAndStop(2); } if (scoresubmit29) { scoresubmit = false; } else if (scoresubmit29 == false) { scoresubmit = true; } if (this.hitTest(finish)) { timing = false; seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if ((score == 29) or scoresubmit) { level29_best_time = seconds; scoresubmit29 = true; savefile.data.scoresubmit29 = _root.scoresubmit29; savefile.flush(); } if (seconds < level29_best_time) { level29_best_time = seconds; } savefile.data.level29_best_time = _root.level29_best_time; savefile.flush(); if (_root.score <= 30) { _root.score = 30; } savefile.data.score = _root.score; savefile.flush(); SPACE_possible = false; ball_movement = false; win._x = Stage.width / 2; win._y = Stage.height / 2; _root.win.instructions.gotoAndStop(29); _root.win.meter.gotoAndStop(30); } if (Key.isDown(32) && (SPACE_possible == false)) { finisher = true; } if (finisher) { if (!Key.isDown(32)) { win._x = 10000; gotoAndStop ("l27"); finisher = false; SPACE_possible = true; } } }; _root.onEnterFrame = function () { seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if (!ball_movement) { timing = false; startTime = getTimer() - elapsedTime; } else { timing = true; } if (timing) { elapsedTime = getTimer() - startTime; } if (var29) { w_works = false; } else { w_works = true; } if (((option._x != (Stage.width / 2)) and (instruction._x != (Stage.width / 2))) and (win._x != (Stage.width / 2))) { if (Key.isDown(81)) { q_is_DOWN = true; } if (q_is_DOWN) { if (!Key.isDown(81)) { gotoAndStop ("l28"); q_is_DOWN = false; } } if (Key.isDown(87)) { w_is_DOWN = true; } if (w_is_DOWN) { if (!Key.isDown(87)) { if (w_works) { gotoAndStop ("l27"); } w_is_DOWN = false; } } ballx = ball1._x; bally = ball1._y; decoyx = decoy._x; if (ball1.hitTest(aquawall)) { hitblue = true; } else { hitblue = false; } if (Key.isDown(78)) { n_is_DOWN = true; } if (n_is_DOWN) { if (!Key.isDown(78)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); n_is_DOWN = false; } } } if (Key.isDown(66)) { b_is_DOWN = true; } if (b_is_DOWN) { if (!Key.isDown(66)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); b_is_DOWN = false; } } } if (SPACE_possible) { if (Key.isDown(32)) { SPACE_is_DOWN = true; } if (SPACE_is_DOWN) { if (!Key.isDown(32)) { ball1_old_location(); ball1._x = ball2._x; ball1._y = ball2._y; ball2._x = x_location; ball2._y = y_location; SPACE_is_DOWN = false; } } } } if (bluewall_movement) { bluewall._x = bluewall._x - 1; } if (bluetransparent_movement) { blue_transparent._x = blue_transparent._x - 1; } if (bluewall._x < 281.7) { soundstart = true; bluewall_movement = false; bluetransparent_movement = false; bluewall._x = 281.7; bluewall._y = 425.4; blue_transparent._x = 292.1; } if (redwall1_movement) { redwall1._x = redwall1._x - 0.06; } if (redwall2_movement) { redwall2._x = redwall2._x + 1; } if (redwall1._x < 542.6) { redwall1_movement = false; soundstart = true; redwall1._x = 542.6; } if (orangewall_movement) { orangewall._x = orangewall._x - 1; } if (orangewall._x < 352) { orangewall_movement = false; orangewall._x = 352; } if (greenwall_movement) { greenwall._x = greenwall._x + 0.5; } if (greenwall._x > 557.9) { soundstart = true; greenwall_movement = false; greenwall._x = 557.9; } if (lredwall_movement) { lredwall._y = lredwall._y + 1; } if (lredwall._y > 225.5) { soundstart = true; lredwall_movement = false; lredwall._y = 225.5; } if (pinkwall_movement) { pinkwall._y = pinkwall._y - 0.7; } if (pinkwall._y < 96.5) { soundstart = true; pinkwall_movement = false; pinkwall._y = 96.5; } if (aquawall_movement) { orangeswitch._x = orangeswitch._x - 1; aqua_transparent._x = aqua_transparent._x - 1; aquawall._x = aquawall._x - 1; aquawall1._x = aquawall1._x - 1; aquawall2._x = aquawall2._x - 1; } if (yellowwall_movement) { yellowwall._x = yellowwall._x + 1; } if (aquawall.hitTest(pinkwall)) { soundstart = true; aquawall_movement = false; pinkwall_movement = false; pinkwall._y = pinkwall._y + 1; aquawall1._x = 140.4; aquawall._x = aquawall._x + 1; } differencepink = ((pinkwall._y - ball1._y) - (pinkwall._height / 2)) - (ball1._height / 2); differencepink2 = ((pinkwall._y - ball2._y) - (pinkwall._height / 2)) - (ball2._height / 2); distance_between_aquawall_and_ball = Math.abs(((ball1._y - aquawall1._y) - (aquawall1._height / 2)) - (ball1._height / 2)); distance_between_aquawall_and_ball2 = Math.abs(((ball2._y - aquawall1._y) - (aquawall1._height / 2)) - (ball2._height / 2)); distance_between_topwall_and_ball = Math.abs(((ball1._y - topwall._y) - (topwall._height / 2)) - (ball1._height / 2)); distance_between_topwall_and_ball2 = Math.abs(((ball2._y - topwall._y) - (topwall._height / 2)) - (ball2._height / 2)); distance_x_between_pinkwall_and_ball = Math.abs(pinkwall._x - ball1._x); distance_x_between_pinkwall_and_ball2 = Math.abs(pinkwall._x - ball2._x); if ((((pinkwall_movement == true) and (differencepink <= 0.2)) and (differencepink >= -8)) and (distance_x_between_pinkwall_and_ball < ((ball1._width / 2) + (pinkwall._width / 2)))) { ball1._y = ((pinkwall._y - (pinkwall._height / 2)) - (ball1._height / 2)) - 0.2; } if ((((pinkwall_movement == true) and (differencepink2 <= 0.2)) and (differencepink2 >= -8)) and (distance_x_between_pinkwall_and_ball2 < ((ball2._width / 2) + (pinkwall._width / 2)))) { ball2._y = ((pinkwall._y - (pinkwall._height / 2)) - (ball2._height / 2)) - 0.2; } if ((((((differencepink <= 0.5) && (differencepink >= -2)) && (distance_between_aquawall_and_ball <= 1)) && (ball1._x > ((aquawall._x - (aquawall._width / 2)) - (ball1._width / 2)))) && (distance_x_between_pinkwall_and_ball < ((ball1._width / 2) + (pinkwall._width / 2)))) or (((((differencepink2 <= 0.5) && (differencepink2 >= -2)) && (distance_between_aquawall_and_ball2 <= 1)) && (ball2._x > ((aquawall._x - (aquawall._width / 2)) - (ball2._width / 2)))) && (distance_x_between_pinkwall_and_ball2 < ((ball2._width / 2) + (pinkwall._width / 2))))) { pink_hit = true; ball_location = false; ball1._y = 2000; ball2._y = 2000; } if (((((differencepink <= 0.5) && (differencepink >= -2)) && (distance_between_topwall_and_ball <= 1)) && (distance_x_between_pinkwall_and_ball < ((ball1._width / 2) + (pinkwall._width / 2)))) or ((((differencepink2 <= 0.5) && (differencepink2 >= -2)) && (distance_between_topwall_and_ball2 <= 1)) && (distance_x_between_pinkwall_and_ball2 < ((ball2._width / 2) + (pinkwall._width / 2))))) { pink_hit = true; ball_location = false; ball1._y = 2000; ball2._y = 2000; } differenceaqua = ((aquawall._x - ball1._x) - (aquawall._width / 2)) - (ball1._width / 2); differenceaqua2 = ((aquawall._x - ball2._x) - (aquawall._width / 2)) - (ball2._width / 2); distance_between_leftwall_and_ball = Math.abs(((ball1._x - pinkwall._x) - (pinkwall._width / 2)) - (ball1._width / 2)); distance_between_leftwall_and_ball2 = Math.abs(((ball2._x - pinkwall._x) - (pinkwall._width / 2)) - (ball2._width / 2)); distance_between_lredwall_and_ball = Math.abs(((ball1._x - lredwall._x) - (lredwall._width / 2)) - (ball1._width / 2)); distance_between_lredwall_and_ball2 = Math.abs(((ball2._x - lredwall._x) - (lredwall._width / 2)) - (ball2._width / 2)); distance_y_between_aquawall_and_ball = Math.abs(aquawall._y - ball1._y); distance_y_between_aquawall_and_ball2 = Math.abs(aquawall._y - ball2._y); if ((((aquawall_movement == true) and (differenceaqua <= 0.2)) and (differenceaqua >= -8)) and (distance_y_between_aquawall_and_ball < ((ball1._height / 2) + (aquawall._height / 2)))) { ball1._x = ((aquawall._x - (aquawall._width / 2)) - (ball1._width / 2)) - 0.2; } if ((((aquawall_movement == true) and (differenceaqua2 <= 0.2)) and (differenceaqua2 >= -8)) and (distance_y_between_aquawall_and_ball2 < ((ball2._height / 2) + (aquawall._height / 2)))) { ball2._x = ((aquawall._x - (aquawall._width / 2)) - (ball2._width / 2)) - 0.2; } if ((((((differenceaqua <= 0.5) && (differenceaqua >= -2)) && (distance_between_leftwall_and_ball <= 1)) && (ball1._y > ((pinkwall._y - (pinkwall._height / 2)) - (ball1._height / 2)))) && (distance_y_between_aquawall_and_ball < ((ball1._height / 2) + (aquawall._height / 2)))) or (((((differenceaqua2 <= 0.5) && (differenceaqua2 >= -2)) && (ball2._y > ((pinkwall._y - (pinkwall._height / 2)) - (ball2._height / 2)))) && (distance_between_leftwall_and_ball2 <= 1)) && (distance_y_between_aquawall_and_ball2 < ((ball2._height / 2) + (aquawall._height / 2))))) { aqua_hit = true; ball_location = false; ball1._x = 2000; ball2._x = 2000; } if ((((((differenceaqua <= 0.5) && (differenceaqua >= -2)) && (distance_between_lredwall_and_ball <= 1)) && (ball1._y < ((lredwall._y + (lredwall._height / 2)) + (ball1._height / 2)))) && (distance_y_between_aquawall_and_ball < ((ball1._height / 2) + (aquawall._height / 2)))) or (((((differenceaqua2 <= 0.5) && (differenceaqua2 >= -2)) && (ball2._y < ((lredwall._y + (lredwall._height / 2)) + (ball2._height / 2)))) && (distance_between_lredwall_and_ball2 <= 1)) && (distance_y_between_aquawall_and_ball2 < ((ball2._height / 2) + (aquawall._height / 2))))) { aqua_hit = true; ball_location = false; ball1._x = 2000; ball2._x = 2000; } differencelred = ((ball1._y - lredwall._y) - (lredwall._height / 2)) - (ball1._height / 2); differencelred2 = ((ball2._y - lredwall._y) - (lredwall._height / 2)) - (ball2._height / 2); distance_between_leftside_and_ball = Math.abs(((leftside._y - ball1._y) - (leftside._height / 2)) - (ball1._height / 2)); distance_between_leftside_and_ball2 = Math.abs(((leftside._y - ball2._y) - (leftside._height / 2)) - (ball2._height / 2)); distance_between_aquawally_and_ball = Math.abs(((aquawall._y - ball1._y) - (aquawall._height / 2)) - (ball1._height / 2)); distance_between_aquawally_and_ball2 = Math.abs(((aquawall._y - ball2._y) - (aquawall._height / 2)) - (ball2._height / 2)); distance_x_between_lredwall_and_ball = Math.abs(lredwall._x - ball1._x); distance_x_between_lredwall_and_ball2 = Math.abs(lredwall._x - ball2._x); if ((((lredwall_movement == true) and (differencelred <= 0.2)) and (differencelred >= -8)) and (distance_x_between_lredwall_and_ball < ((ball1._width / 2) + (lredwall._width / 2)))) { ball1._y = ((lredwall._y + (lredwall._height / 2)) + (ball1._height / 2)) + 0.2; } if ((((lredwall_movement == true) and (differencelred2 <= 0.2)) and (differencelred2 >= -8)) and (distance_x_between_lredwall_and_ball2 < ((ball2._width / 2) + (lredwall._width / 2)))) { ball2._y = ((lredwall._y + (lredwall._height / 2)) + (ball2._height / 2)) + 0.2; } if ((((((differencelred <= 0.5) && (differencelred >= -2)) && (distance_between_aquawally_and_ball <= 2)) && (ball1._x < ((aquawall._x + (aquawall._width / 2)) + (ball1._width / 2)))) && (distance_x_between_lredwall_and_ball < ((ball1._width / 2) + (lredwall._width / 2)))) or (((((differencelred2 <= 0.5) && (differencelred2 >= -2)) && (distance_between_aquawally_and_ball2 <= 1)) && (ball2._x < ((aquawall._x + (aquawall._width / 2)) + (ball2._width / 2)))) && (distance_x_between_lredwall_and_ball2 < ((ball2._width / 2) + (lredwall._width / 2))))) { lred_hit = true; ball_location = false; ball1._y = 2000; ball2._y = 2000; } if ((((((differencelred <= 0.5) && (differencelred >= -2)) && (distance_between_leftside_and_ball <= 2)) && (ball1._x < ((leftside._x + (leftside._width / 2)) + (ball1._width / 2)))) && (distance_x_between_lredwall_and_ball < ((ball1._width / 2) + (lredwall._width / 2)))) or (((((differencelred2 <= 0.5) && (differencelred2 >= -2)) && (distance_between_leftside_and_ball2 <= 1)) && (ball2._x < ((leftside._x + (leftside._width / 2)) + (ball2._width / 2)))) && (distance_x_between_lredwall_and_ball2 < ((ball2._width / 2) + (lredwall._width / 2))))) { lred_hit = true; ball_location = false; ball1._y = 2000; ball2._y = 2000; } differenceblue = ((bluewall._x - ball1._x) - (bluewall._width / 2)) - (ball1._width / 2); differenceblue2 = ((bluewall._x - ball2._x) - (bluewall._width / 2)) - (ball2._width / 2); distance_between_leftsidex_and_ball = Math.abs(((ball1._x - leftside._x) - (leftside._width / 2)) - (ball1._width / 2)); distance_between_leftsidex_and_ball2 = Math.abs(((ball2._x - leftside._x) - (leftside._width / 2)) - (ball2._width / 2)); distance_y_between_bluewall_and_ball = Math.abs(bluewall._y - ball1._y); distance_y_between_bluewall_and_ball2 = Math.abs(bluewall._y - ball2._y); if ((((bluewall_movement == true) and (differenceblue <= 0.5)) and (differenceblue >= -8)) and (distance_y_between_bluewall_and_ball < ((ball1._height / 2) + (bluewall._height / 2)))) { ball1._x = ((bluewall._x - (bluewall._width / 2)) - (ball1._width / 2)) - 0.2; } if ((((bluewall_movement == true) and (differenceblue2 <= 0.5)) and (differenceblue2 >= -8)) and (distance_y_between_bluewall_and_ball2 < ((ball2._height / 2) + (bluewall._height / 2)))) { ball2._x = ((bluewall._x - (bluewall._width / 2)) - (ball2._width / 2)) - 0.2; } if (((((((differenceblue <= 1) && (differenceblue >= -2)) && (distance_between_leftsidex_and_ball <= 2)) && (ball1._y < ((leftside._y + (leftside._height / 2)) + (ball1._height / 2)))) && (ball1._y > ((leftside._y - (leftside._height / 2)) - (ball1._height / 2)))) && (distance_y_between_bluewall_and_ball < ((ball1._height / 2) + (bluewall._height / 2)))) or ((((((differenceblue2 <= 0.5) && (differenceblue2 >= -2)) && (distance_between_leftsidex_and_ball2 <= 1)) && (ball2._y < ((leftside._y + (leftside._height / 2)) + (ball2._height / 2)))) && (ball2._y > ((leftside._y - (leftside._height / 2)) - (ball2._height / 2)))) && (distance_y_between_bluewall_and_ball2 < ((ball2._height / 2) + (bluewall._height / 2))))) { blue_hit = true; ball_location = false; ball1._x = 2000; ball2._x = 2000; } differencered = ((redwall1._x - ball1._x) - (redwall1._width / 2)) - (ball1._width / 2); differencered2 = ((redwall1._x - ball2._x) - (redwall1._width / 2)) - (ball2._width / 2); distance_between_rb_and_ball = Math.abs(((ball1._x - rb._x) - (rb._width / 2)) - (ball1._width / 2)); distance_between_rb_and_ball2 = Math.abs(((ball2._x - rb._x) - (rb._width / 2)) - (ball2._width / 2)); distance_y_between_redwall1_and_ball = Math.abs(redwall1._y - ball1._y); distance_y_between_redwall1_and_ball2 = Math.abs(redwall1._y - ball2._y); if ((((redwall1_movement == true) and (differencered <= 0.2)) and (differencered >= -8)) and (distance_y_between_redwall1_and_ball < ((ball1._height / 2) + (redwall1._height / 2)))) { ball1._x = ((redwall1._x - (redwall1._width / 2)) - (ball1._width / 2)) - 0.2; } if ((((redwall1_movement == true) and (differencered2 <= 0.2)) and (differencered2 >= -8)) and (distance_y_between_redwall1_and_ball2 < ((ball2._height / 2) + (redwall1._height / 2)))) { ball2._x = ((redwall1._x - (redwall1._width / 2)) - (ball2._width / 2)) - 0.2; } if (((((differencered <= 0.5) && (differencered >= -2)) && (distance_between_rb_and_ball <= 1)) && (distance_y_between_redwall1_and_ball < ((ball1._height / 2) + (redwall1._height / 2)))) or ((((differencered2 <= 0.5) && (differencered2 >= -2)) && (distance_between_rb_and_ball2 <= 1)) && (distance_y_between_redwall1_and_ball2 < ((ball2._height / 2) + (redwall1._height / 2))))) { red_hit = true; ball_location = false; ball1._x = 2000; ball2._x = 2000; } differencegreen = ((ball1._x - greenwall._x) - (greenwall._width / 2)) - (ball1._width / 2); differencegreen2 = ((ball2._x - greenwall._x) - (greenwall._width / 2)) - (ball2._width / 2); distance_between_rightwall_and_ball = Math.abs(((rightwall._x - ball1._x) - (rightwall._width / 2)) - (ball1._width / 2)); distance_between_rightwall_and_ball2 = Math.abs(((rightwall._x - ball2._x) - (rightwall._width / 2)) - (ball2._width / 2)); distance_y_between_greenwall_and_ball = Math.abs(greenwall._y - ball1._y); distance_y_between_greenwall_and_ball2 = Math.abs(greenwall._y - ball2._y); if ((((greenwall_movement == true) and (differencegreen <= 0.2)) and (differencegreen >= -8)) and (distance_y_between_greenwall_and_ball < ((ball1._height / 2) + (greenwall._height / 2)))) { ball1._x = ((greenwall._x + (greenwall._width / 2)) + (ball1._width / 2)) + 0.2; } if ((((greenwall_movement == true) and (differencegreen2 <= 0.2)) and (differencegreen2 >= -8)) and (distance_y_between_greenwall_and_ball2 < ((ball2._height / 2) + (greenwall._height / 2)))) { ball2._x = ((greenwall._x + (greenwall._width / 2)) + (ball2._width / 2)) + 0.2; } if (((((differencegreen <= 0.5) && (differencegreen >= -2)) && (distance_between_rightwall_and_ball <= 1)) && (distance_y_between_greenwall_and_ball < ((ball1._height / 2) + (greenwall._height / 2)))) or ((((differencegreen2 <= 0.5) && (differencegreen2 >= -2)) && (distance_between_rightwall_and_ball2 <= 1)) && (distance_y_between_greenwall_and_ball2 < ((ball2._height / 2) + (greenwall._height / 2))))) { green_hit = true; ball_location = false; ball1._x = 2000; ball2._x = 2000; } if (ball_location) { ball1_xlocation = ball1._x; ball1_ylocation = ball1._y; ball2_xlocation = ball2._x; ball2_ylocation = ball2._y; } else { explosionsound2 = true; if (ball1_xlocation > (Stage.width / 2)) { if (blue_hit == true) { gray_is_hit_blue = true; } if (pink_hit == true) { gray_is_hit_pink = true; } if (lred_hit == true) { gray_is_hit_lred = true; } if (red_hit == true) { black_is_hit_red = true; } if (aqua_hit == true) { gray_is_hit_aqua = true; } if (green_hit == true) { black_is_hit_green = true; } } else if (ball1_xlocation < (Stage.width / 2)) { if (blue_hit == true) { black_is_hit_blue = true; } if (pink_hit == true) { black_is_hit_pink = true; } if (lred_hit == true) { black_is_hit_lred = true; } if (red_hit == true) { gray_is_hit_red = true; } if (aqua_hit == true) { black_is_hit_aqua = true; } if (green_hit == true) { gray_is_hit_green = true; } } ball_locator(); } };
Instance of Symbol 1257 MovieClip "ball1" in Frame 33
onClipEvent (enterFrame) { function move(xmove, ymove) { _x = (_x + xmove); _y = (_y + ymove); if (hitTest(_root.leftwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.middlewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.topwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.topwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.topwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.topwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bottomwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bottomwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bottomwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bottomwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.leftside)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftside.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftside.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftside.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftside.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rt)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rt.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rt.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rt.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rt.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rb)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rb.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rb.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rb.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rb.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.pinkwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.pinkwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.pinkwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.pinkwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.pinkwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.greenwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.greenwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.greenwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.greenwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.greenwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.yellowwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.yellowwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.yellowwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.yellowwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.yellowwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bluewall.blueinside)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bluewall.blueinside.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bluewall.blueinside.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bluewall.blueinside.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bluewall.blueinside.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.lredwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.lredwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.lredwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.lredwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.lredwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.aquawall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.aquawall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.aquawall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.aquawall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.aquawall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.orangewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.orangewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.orangewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.orangewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.orangewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.redwall1)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.redwall1.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.redwall1.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.redwall1.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.redwall1.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.redwall2)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.redwall2.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.redwall2.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.redwall2.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.redwall2.getBounds(_root).yMax) - 0.1)); } } } if (_root.ball_movement == true) { if (Key.isDown(37)) { move(-5, 0); } if (Key.isDown(39)) { move(5, 0); } if (Key.isDown(38)) { move(0, -5); } if (Key.isDown(40)) { move(0, 5); } } }
Frame 34
function restartLevel() { _root.scoresubmit26 = savefile.data.scoresubmit26; savefile.flush(); soundstart = false; small = false; if ((((var27 != true) and (var28 != true)) and (var29 != true)) and (var30 != true)) { var26 = true; } var25 = false; if (_root.var1) { _root.score = 1; } else if (_root.var2) { _root.score = 2; } else if (_root.var3) { _root.score = 3; } else if (_root.var4) { _root.score = 4; } else if (_root.var5) { _root.score = 5; } else if (_root.var6) { _root.score = 6; } else if (_root.var71) { _root.score = 7; } else if (_root.var8) { _root.score = 8; } else if (_root.var9) { _root.score = 9; } else if (_root.var10) { _root.score = 10; } else if (_root.var11) { _root.score = 11; } else if (_root.var12) { _root.score = 12; } else if (_root.var13) { _root.score = 13; } else if (_root.var14) { _root.score = 14; } else if (_root.var15) { _root.score = 15; } else if (_root.var16) { _root.score = 16; } else if (_root.var17) { _root.score = 17; } else if (_root.var18) { _root.score = 18; } else if (_root.var19) { _root.score = 19; } else if (_root.var20) { _root.score = 20; } else if (_root.var21) { _root.score = 21; } else if (_root.var22) { _root.score = 22; } else if (_root.var23) { _root.score = 23; } else if (_root.var24) { _root.score = 24; } else if (_root.var25) { _root.score = 25; } else if (_root.var26) { _root.score = 26; } else if (_root.var27) { _root.score = 27; } else if (_root.var28) { _root.score = 28; } else if (_root.var29) { _root.score = 29; } else if (_root.var30) { _root.score = 30; } savefile.data.score = _root.score; savefile.flush(); radius = ball1._height / 2; SPACE_possible = true; pinkswitch.gotoAndStop(1); orangeswitch.gotoAndStop(1); redwall_movement = false; bluewall_movement = false; pinkwall_movement = false; orangewall_movement = false; aquawall_movement = false; greenwall_movement = false; yellowwall_movement = false; black_is_hit = false; gray_is_hit = false; ball_right = false; ball_left = false; ball_location = true; pinkswitch.gotoAndStop(1); orangeswitch.gotoAndStop(1); _root.decoy2.gotoAndStop(1); _root.decoy.gotoAndStop(1); _root.ball1.gotoAndStop(1); _root.ball1.gotoAndStop(1); _root.ball2.gotoAndStop(1); _root.ball2.gotoAndStop(1); decoy._x = -1000; decoy2._x = -1000; ball_movement = true; finisher = false; timing = true; elapsedTime = 0; startTime = getTimer(); seconds = 0; ball1._x = 129; ball1._y = 75; ball2._x = 567; ball2._y = 172.3; redwall._x = 500; redwall._y = -175.2; redkey._x = 274.9; redkey._y = 172.3; greenwall._x = 500; greenwall._y = 264; greenkey._x = 274.9; greenkey._y = 417; yellowwall._x = 500; yellowwall._y = 320; yellowkey._x = 118.5; yellowkey._y = 476.8; bluewall._x = 221.9; bluewall._y = 218.1; bluekey._x = 166.9; bluekey._y = 363; aquawall._x = 129.3; aquawall._y = 172.3; aquakey._x = 274.9; aquakey._y = 474.6; pinkwall._x = 144.3; pinkwall._y = 415.5; pinkswitch._x = 433; pinkswitch._y = 172.3; orangewall._x = 597.9; orangewall._y = 376; orangeswitch._x = 500; orangeswitch._y = 172.3; youwin._x = 10000; winningscreen._x = 1000; finish._x = 500; finish._y = 453.8; } function ball1_old_location() { x_location = ball1._x; y_location = ball1._y; } function ball_locator() { ball_location = true; if (black_is_hit == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(3); _root.decoy.gotoAndStop(2); } if (gray_is_hit == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); } } stop(); _root.options._x = 28.1; _root.restartbutton._x = 41.9; _root.QW._x = 73.8; _root.P._x = 55.6; _root.BN._x = 66; totalRestarts = 0; _root.option.hintbox.gotoAndStop(1); _root.option.meter.gotoAndStop(26); restartLevel(); youwin.onPress = function () { gotoAndStop ("l34"); }; ball1.onEnterFrame = function () { if (this.hitTest(bluekey)) { keystart = true; bluekey._x = 100000 /* 0x0186A0 */; bluewall_movement = true; _root.ball1.scan.gotoAndStop(4); _root.ball1.scan.bluemove.gotoAndPlay(1); } if (this.hitTest(redkey)) { keystart = true; redkey._x = 100000 /* 0x0186A0 */; redwall_movement = true; _root.ball1.scan.gotoAndStop(3); } if (this.hitTest(aquakey)) { keystart = true; aquakey._x = 100000 /* 0x0186A0 */; aquawall_movement = true; _root.ball1.scan.gotoAndStop(8); } if (this.hitTest(yellowkey)) { keystart = true; yellowkey._x = 10000; yellowwall_movement = true; _root.ball1.scan.gotoAndStop(7); } if (this.hitTest(greenkey)) { keystart = true; greenkey._x = 10000; greenwall_movement = true; _root.ball1.scan.gotoAndStop(2); } if (aquawall.hitTest(_root.pinkswitch.button) and (_root.pinkswitch._currentframe == 1)) { switchstart = true; pinkswitch.gotoAndStop(2); pinkwall_movement = true; } if (aquawall.hitTest(_root.orangeswitch.button) and (_root.orangeswitch._currentframe == 1)) { switchstart = true; orangeswitch.gotoAndStop(2); if (orangewall._x <= 499.8) { orangewall_movement = false; } else { orangewall_movement = true; } } if (redwall.hitTest(_root.orangeswitch.button) and (_root.orangeswitch._currentframe == 1)) { switchstart = true; orangeswitch.gotoAndStop(2); if (orangewall._x <= 499.8) { orangewall_movement = false; } else { orangewall_movement = true; } } if (redwall.hitTest(_root.pinkswitch.button)) { pinkswitch.gotoAndStop(2); pinkwall_movement = true; } if (redwall.hitTest(aquawall)) { soundstart = true; redwall_movement = false; aquawall_movement = false; if ((((redwall._x - (aquawall._width / 2)) - aquawall._x) - (redwall._width / 2)) < -1) { redwall._y = ((aquawall._y - (redwall._height / 2)) - (aquawall._height / 2)) - 0.1; } else { aquawall._x = ((redwall._x - (aquawall._width / 2)) - (redwall._width / 2)) - 0.1; } } if (redwall.hitTest(yellowwall)) { soundstart = true; redwall_movement = false; yellowwall_movement = false; redwall._y = ((yellowwall._y - (yellowwall._height / 2)) - (redwall._height / 2)) - 0.1; } if (redwall.hitTest(greenwall)) { soundstart = true; greenwall_movement = false; redwall_movement = false; redwall._y = ((greenwall._y - (greenwall._height / 2)) - (redwall._height / 2)) - 0.1; } if (aquawall.hitTest(rightwall)) { soundstart = true; aquawall_movement = false; aquawall._x = ((rightwall._x - (rightwall._width / 2)) - (aquawall._width / 2)) - 0.1; } if (aquawall.hitTest(bluewall)) { soundstart = true; aquawall_movement = false; bluewall_movement = false; aquawall._x = ((bluewall._x - (bluewall._width / 2)) - (aquawall._width / 2)) - 0.1; } if (greenwall.hitTest(bluewall)) { greenwall_movement = false; bluewall_movement = false; } if (scoresubmit26) { scoresubmit = false; } else if (scoresubmit26 == false) { scoresubmit = true; } if (this.hitTest(finish)) { timing = false; seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if ((score == 26) or scoresubmit) { level26_best_time = seconds; scoresubmit26 = true; savefile.data.scoresubmit26 = _root.scoresubmit26; savefile.flush(); } if (seconds < level26_best_time) { level26_best_time = seconds; } savefile.data.level26_best_time = _root.level26_best_time; savefile.flush(); if (_root.score <= 27) { _root.score = 27; } savefile.data.score = _root.score; savefile.flush(); SPACE_possible = false; ball_movement = false; win._x = Stage.width / 2; win._y = Stage.height / 2; _root.win.instructions.gotoAndStop(26); _root.win.meter.gotoAndStop(25); } if (Key.isDown(32) && (SPACE_possible == false)) { finisher = true; } if (finisher) { if (!Key.isDown(32)) { win._x = 10000; gotoAndStop ("l34"); finisher = false; SPACE_possible = true; } } }; _root.onEnterFrame = function () { seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if (!ball_movement) { timing = false; startTime = getTimer() - elapsedTime; } else { timing = true; } if (timing) { elapsedTime = getTimer() - startTime; } if (var26) { w_works = false; } else { w_works = true; } if (((option._x != (Stage.width / 2)) and (instruction._x != (Stage.width / 2))) and (win._x != (Stage.width / 2))) { if (Key.isDown(81)) { q_is_DOWN = true; } if (q_is_DOWN) { if (!Key.isDown(81)) { gotoAndStop ("l33"); q_is_DOWN = false; } } if (Key.isDown(87)) { w_is_DOWN = true; } if (w_is_DOWN) { if (!Key.isDown(87)) { if (w_works) { gotoAndStop ("l34"); } w_is_DOWN = false; } } ballx = ball1._x; bally = ball1._y; decoyx = decoy._x; if (Key.isDown(78)) { n_is_DOWN = true; } if (n_is_DOWN) { if (!Key.isDown(78)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); n_is_DOWN = false; } } } if (Key.isDown(66)) { b_is_DOWN = true; } if (b_is_DOWN) { if (!Key.isDown(66)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); b_is_DOWN = false; } } } if (SPACE_possible) { if (Key.isDown(32)) { SPACE_is_DOWN = true; } if (SPACE_is_DOWN) { if (!Key.isDown(32)) { ball1_old_location(); ball1._x = ball2._x; ball1._y = ball2._y; ball2._x = x_location; ball2._y = y_location; SPACE_is_DOWN = false; } } } } if (bluewall_movement) { bluewall._y = bluewall._y - 2; } if (redwall_movement) { redwall._y = redwall._y + 1; } if (orangewall_movement) { orangewall._x = orangewall._x - 2; } if (orangewall._x < 499.8) { soundstart = true; orangewall_movement = false; orangewall._x = 499.8; } if (greenwall_movement) { greenwall._x = greenwall._x - 0.3; } if (greenwall._x < 200) { soundstart = true; greenwall_movement = false; greenwall._x = 200; } if (pinkwall_movement) { pinkwall._x = pinkwall._x - 1; } if (aquawall_movement) { aquawall._x = aquawall._x + 0.5; } if (yellowwall_movement) { yellowwall._x = yellowwall._x + 0.5; } differencered = ((ball1._y - redwall._y) - (redwall._height / 2)) - (ball1._height / 2); differencered2 = ((ball2._y - redwall._y) - (redwall._height / 2)) - (ball2._height / 2); distance_between_aquawall_and_ball = Math.abs(((aquawall._y - ball1._y) - (aquawall._height / 2)) - (ball1._height / 2)); distance_between_aquawall_and_ball2 = Math.abs(((aquawall._y - ball2._y) - (aquawall._height / 2)) - (ball2._height / 2)); distance_between_greenwall_and_ball = Math.abs(((greenwall._y - ball1._y) - (greenwall._height / 2)) - (ball1._height / 2)); distance_between_greenwall_and_ball2 = Math.abs(((greenwall._y - ball2._y) - (greenwall._height / 2)) - (ball2._height / 2)); distance_between_yellowwall_and_ball = Math.abs(((yellowwall._y - ball1._y) - (yellowwall._height / 2)) - (ball1._height / 2)); distance_between_yellowwall_and_ball2 = Math.abs(((yellowwall._y - ball2._y) - (yellowwall._height / 2)) - (ball2._height / 2)); distance_x_between_redwall_and_ball = Math.abs(redwall._x - ball1._x); distance_x_between_redwall_and_ball2 = Math.abs(redwall._x - ball2._x); if ((((redwall_movement == true) and (differencered <= 0.2)) and (differencered >= -8)) and (distance_x_between_redwall_and_ball < ((ball1._width / 2) + (redwall._width / 2)))) { ball1._y = ((redwall._y + (redwall._height / 2)) + (ball1._height / 2)) + 0.2; } if ((((redwall_movement == true) and (differencered2 <= 0.2)) and (differencered2 >= -8)) and (distance_x_between_redwall_and_ball2 < ((ball2._width / 2) + (redwall._width / 2)))) { ball2._y = ((redwall._y + (redwall._height / 2)) + (ball2._height / 2)) + 0.2; } if (((((((differencered <= 0.5) && (differencered >= -2)) && (distance_between_aquawall_and_ball <= 1)) && (ball1._x > ((aquawall._x - (aquawall._width / 2)) - (ball1._width / 2)))) && (ball1._x < ((aquawall._x + (aquawall._width / 2)) + (ball1._width / 2)))) && (distance_x_between_redwall_and_ball < ((ball1._width / 2) + (redwall._width / 2)))) or ((((((differencered2 <= 0.5) && (differencered2 >= -2)) && (distance_between_aquawall_and_ball2 <= 1)) && (ball2._x > ((aquawall._x - (aquawall._width / 2)) - (ball2._width / 2)))) && (ball2._x < ((aquawall._x + (aquawall._width / 2)) + (ball2._width / 2)))) && (distance_x_between_redwall_and_ball2 < ((ball2._width / 2) + (redwall._width / 2))))) { ball_right = true; ball_location = false; ball1._y = 2000; ball2._y = 2000; } if ((((((differencered <= 0.5) && (differencered >= -2)) && (distance_between_greenwall_and_ball <= 1)) && (ball1._x < ((greenwall._x + (greenwall._width / 2)) + (ball1._width / 2)))) && (distance_x_between_redwall_and_ball < ((ball1._width / 2) + (redwall._width / 2)))) or (((((differencered2 <= 0.5) && (differencered2 >= -2)) && (distance_between_greenwall_and_ball2 <= 1)) && (ball2._x < ((greenwall._x + (greenwall._width / 2)) + (ball2._width / 2)))) && (distance_x_between_redwall_and_ball2 < ((ball2._width / 2) + (redwall._width / 2))))) { ball_right = true; ball_location = false; ball1._y = 2000; ball2._y = 2000; } if (((((differencered <= 0.5) && (differencered >= -2)) && (distance_between_yellowwall_and_ball <= 1)) && (distance_x_between_redwall_and_ball < ((ball1._width / 2) + (redwall._width / 2)))) or ((((differencered2 <= 0.5) && (differencered2 >= -2)) && (distance_between_yellowwall_and_ball2 <= 1)) && (distance_x_between_redwall_and_ball2 < ((ball2._width / 2) + (redwall._width / 2))))) { ball_right = true; ball_location = false; ball1._y = 2000; ball2._y = 2000; } differenceaqua = ((ball1._x - aquawall._x) - (aquawall._width / 2)) - (ball1._width / 2); differenceaqua2 = ((ball2._x - aquawall._x) - (aquawall._width / 2)) - (ball2._width / 2); distance_between_rightwall_and_ball = Math.abs(((rightwall._x - ball1._x) - (rightwall._width / 2)) - (ball1._width / 2)); distance_between_rightwall_and_ball2 = Math.abs(((rightwall._x - ball2._x) - (rightwall._width / 2)) - (ball2._width / 2)); distance_between_middlewall_and_ball = Math.abs(((middlewall._x - ball1._x) - (middlewall._width / 2)) - (ball1._width / 2)); distance_between_middlewall_and_ball2 = Math.abs(((middlewall._x - ball2._x) - (middlewall._width / 2)) - (ball2._width / 2)); distance_between_rightside_and_ball = Math.abs(((rightside._x - ball1._x) - (rightside._width / 2)) - (ball1._width / 2)); distance_between_rightside_and_ball2 = Math.abs(((rightside._x - ball2._x) - (rightside._width / 2)) - (ball2._width / 2)); distance_y_between_aquawall_and_ball = Math.abs(aquawall._y - ball1._y); distance_y_between_aquawall_and_ball2 = Math.abs(aquawall._y - ball2._y); if ((((aquawall_movement == true) and (differenceaqua <= 0.2)) and (differenceaqua >= -8)) and (distance_y_between_aquawall_and_ball < ((ball1._height / 2) + (aquawall._height / 2)))) { ball1._x = ((aquawall._x + (aquawall._width / 2)) + (ball1._width / 2)) + 0.2; } if ((((aquawall_movement == true) and (differenceaqua2 <= 0.2)) and (differenceaqua2 >= -8)) and (distance_y_between_aquawall_and_ball2 < ((ball2._height / 2) + (aquawall._height / 2)))) { ball2._x = ((aquawall._x + (aquawall._width / 2)) + (ball2._width / 2)) + 0.2; } if (((((differenceaqua <= 0.5) && (differenceaqua >= -2)) && (distance_between_rightwall_and_ball <= 1)) && (distance_y_between_aquawall_and_ball < ((ball1._height / 2) + (aquawall._height / 2)))) or ((((differenceaqua2 <= 0.5) && (differenceaqua2 >= -2)) && (distance_between_rightwall_and_ball2 <= 1)) && (distance_y_between_aquawall_and_ball2 < ((ball2._height / 2) + (aquawall._height / 2))))) { ball_right = true; ball_location = false; ball1._x = 2000; ball2._x = 2000; } if (((((differenceaqua <= 0.5) && (differenceaqua >= -2)) && (distance_between_middlewall_and_ball <= 1)) && (distance_y_between_aquawall_and_ball < ((ball1._height / 2) + (aquawall._height / 2)))) or ((((differenceaqua2 <= 0.5) && (differenceaqua2 >= -2)) && (distance_between_middlewall_and_ball2 <= 1)) && (distance_y_between_aquawall_and_ball2 < ((ball2._height / 2) + (aquawall._height / 2))))) { ball_left = true; ball_location = false; ball1._x = 2000; ball2._x = 2000; } if ((((((differenceaqua <= 0.5) && (differenceaqua >= -2)) && (distance_between_rightside_and_ball <= 1)) && (ball1._y < ((rightside._y + (rightside._height / 2)) + (ball1._height / 2)))) && (distance_y_between_aquawall_and_ball < ((ball1._height / 2) + (aquawall._height / 2)))) or (((((differenceaqua2 <= 0.5) && (differenceaqua2 >= -2)) && (distance_between_rightside_and_ball2 <= 1)) && (ball2._y < ((rightside._y + (rightside._height / 2)) + (ball2._height / 2)))) && (distance_y_between_aquawall_and_ball2 < ((ball2._height / 2) + (aquawall._height / 2))))) { ball_left = true; ball_location = false; ball1._x = 2000; ball2._x = 2000; } differencegreen = ((greenwall._x - ball1._x) - (greenwall._width / 2)) - (ball1._width / 2); differencegreen2 = ((greenwall._x - ball2._x) - (greenwall._width / 2)) - (ball2._width / 2); distance_between_leftwall_and_ball = Math.abs(((ball1._x - leftwall._x) - (leftwall._width / 2)) - (ball1._width / 2)); distance_between_leftwall_and_ball2 = Math.abs(((ball2._x - leftwall._x) - (leftwall._width / 2)) - (ball2._width / 2)); distance_between_bluewall_and_ball = Math.abs(((ball1._x - bluewall._x) - (bluewall._width / 2)) - (ball1._width / 2)); distance_between_bluewall_and_ball2 = Math.abs(((ball2._x - bluewall._x) - (bluewall._width / 2)) - (ball2._width / 2)); distance_y_between_greenwall_and_ball = Math.abs(greenwall._y - ball1._y); distance_y_between_greenwall_and_ball2 = Math.abs(greenwall._y - ball2._y); if ((((greenwall_movement == true) and (differencegreen <= 0.5)) and (differencegreen >= -8)) and (distance_y_between_greenwall_and_ball < ((ball1._height / 2) + (greenwall._height / 2)))) { ball1._x = ((greenwall._x - (greenwall._width / 2)) - (ball1._width / 2)) - 0.2; } if ((((greenwall_movement == true) and (differencegreen2 <= 0.5)) and (differencegreen2 >= -8)) and (distance_y_between_greenwall_and_ball2 < ((ball2._height / 2) + (greenwall._height / 2)))) { ball2._x = ((greenwall._x - (greenwall._width / 2)) - (ball2._width / 2)) - 0.2; } if (((((differencegreen <= 0.5) && (differencegreen >= -2)) && (distance_between_leftwall_and_ball <= 1)) && (distance_y_between_greenwall_and_ball < ((ball1._height / 2) + (greenwall._height / 2)))) or ((((differencegreen2 <= 0.5) && (differencegreen2 >= -2)) && (distance_between_leftwall_and_ball2 <= 1)) && (distance_y_between_greenwall_and_ball2 < ((ball2._height / 2) + (greenwall._height / 2))))) { ball_left = true; ball_location = false; ball1._x = 2000; ball2._x = 2000; } if ((((((differencegreen <= 0.5) && (differencegreen >= -2)) && (distance_between_bluewall_and_ball <= 1)) && (ball1._y < ((bluewall._y + (bluewall._height / 2)) + (ball1._height / 2)))) && (distance_y_between_greenwall_and_ball < ((ball1._height / 2) + (greenwall._height / 2)))) or (((((differencegreen2 <= 0.5) && (differencegreen2 >= -2)) && (ball2._y < ((bluewall._y + (bluewall._height / 2)) + (ball2._height / 2)))) && (distance_between_bluewall_and_ball2 <= 1)) && (distance_y_between_greenwall_and_ball2 < ((ball2._height / 2) + (greenwall._height / 2))))) { ball_left = true; ball_location = false; ball1._x = 2000; ball2._x = 2000; } if (ball_location) { ball1_xlocation = ball1._x; ball1_ylocation = ball1._y; ball2_xlocation = ball2._x; ball2_ylocation = ball2._y; } else { explosionsound2 = true; if (ball1_xlocation < (Stage.width / 2)) { if (ball_left == true) { black_is_hit = true; } if (ball_right == true) { gray_is_hit = true; } } else if (ball1_xlocation > (Stage.width / 2)) { if (ball_left == true) { gray_is_hit = true; } if (ball_right == true) { black_is_hit = true; } } ball_locator(); } };
Instance of Symbol 2464 MovieClip "ball1" in Frame 34
onClipEvent (enterFrame) { function move(xmove, ymove) { _x = (_x + xmove); _y = (_y + ymove); if (hitTest(_root.leftwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.middlewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.topwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.topwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.topwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.topwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bottomwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bottomwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bottomwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bottomwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.leftside)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftside.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftside.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftside.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftside.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.middleside)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.middleside.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.middleside.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.middleside.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.middleside.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightside)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightside.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightside.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightside.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightside.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.pinkwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.pinkwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.pinkwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.pinkwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.pinkwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.greenwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.greenwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.greenwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.greenwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.greenwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.yellowwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.yellowwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.yellowwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.yellowwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.yellowwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bluewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bluewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bluewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bluewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bluewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.aquawall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.aquawall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.aquawall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.aquawall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.aquawall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.orangewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.orangewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.orangewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.orangewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.orangewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.redwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.redwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.redwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.redwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.redwall.getBounds(_root).yMax) - 0.1)); } } } if (_root.ball_movement == true) { if (Key.isDown(37)) { move(-5, 0); } if (Key.isDown(39)) { move(5, 0); } if (Key.isDown(38)) { move(0, -5); } if (Key.isDown(40)) { move(0, 5); } } }
Frame 35
function restartLevel() { _root.scoresubmit25 = savefile.data.scoresubmit25; savefile.flush(); soundstart = false; small = false; if (((((var26 != true) and (var27 != true)) and (var28 != true)) and (var29 != true)) and (var30 != true)) { var25 = true; } var24 = false; if (_root.var1) { _root.score = 1; } else if (_root.var2) { _root.score = 2; } else if (_root.var3) { _root.score = 3; } else if (_root.var4) { _root.score = 4; } else if (_root.var5) { _root.score = 5; } else if (_root.var6) { _root.score = 6; } else if (_root.var71) { _root.score = 7; } else if (_root.var8) { _root.score = 8; } else if (_root.var9) { _root.score = 9; } else if (_root.var10) { _root.score = 10; } else if (_root.var11) { _root.score = 11; } else if (_root.var12) { _root.score = 12; } else if (_root.var13) { _root.score = 13; } else if (_root.var14) { _root.score = 14; } else if (_root.var15) { _root.score = 15; } else if (_root.var16) { _root.score = 16; } else if (_root.var17) { _root.score = 17; } else if (_root.var18) { _root.score = 18; } else if (_root.var19) { _root.score = 19; } else if (_root.var20) { _root.score = 20; } else if (_root.var21) { _root.score = 21; } else if (_root.var22) { _root.score = 22; } else if (_root.var23) { _root.score = 23; } else if (_root.var24) { _root.score = 24; } else if (_root.var25) { _root.score = 25; } else if (_root.var26) { _root.score = 26; } else if (_root.var27) { _root.score = 27; } else if (_root.var28) { _root.score = 28; } else if (_root.var29) { _root.score = 29; } else if (_root.var30) { _root.score = 30; } savefile.data.score = _root.score; savefile.flush(); radius = ball1._height / 2; SPACE_possible = true; pinkwall_movement = false; yellowwall_movement = false; ball_movement = true; finisher = false; yellowwall._width = 100.9; ball_location = true; gray_is_hit_pink = false; black_is_hit_pink = false; pink_hit = false; gray_is_hit_yellow = false; black_is_hit_yellow = false; yellow_hit = false; warp_on = false; warpkey1.gotoAndStop(1); warpkey2.gotoAndStop(1); _root.decoy2.gotoAndStop(1); _root.decoy.gotoAndStop(1); _root.ball1.gotoAndStop(1); _root.ball1.gotoAndStop(1); _root.ball2.gotoAndStop(1); _root.ball2.gotoAndStop(1); decoy._x = -1000; decoy2._x = -1000; timing = true; elapsedTime = 0; startTime = getTimer(); seconds = 0; pinkkey._x = 279.2; pinkkey._y = 382.6; yellowkey._x = 120.1; yellowkey._y = 63.9; warpkey1._x = 279.2; warpkey1._y = 305.7; warpkey2._x = 576.1; warpkey2._y = 376.8; yellowwall._x = 450.4; yellowwall._y = 376.8; pinkwall._x = 484.4; pinkwall._y = 168; ball1._x = 279.2; ball1._y = 481.6; ball2._x = 576.1; ball2._y = 481.6; youwin._x = 10000; winningscreen._x = 1000; finish._x = 199.8; finish._y = 454.8; finish2._x = 450; finish2._y = 454.8; } function ball1_old_location() { x_location = ball1._x; y_location = ball1._y; } function ball_locator() { ball_location = true; if (black_is_hit_pink == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(3); _root.decoy.gotoAndStop(2); } if (gray_is_hit_pink == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); } if (black_is_hit_yellow == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(3); _root.decoy.gotoAndStop(2); } if (gray_is_hit_yellow == true) { ball1._x = 2000; ball2._x = 2000; decoy._x = ball1_xlocation; decoy._y = ball1_ylocation; decoy2._x = ball2_xlocation; decoy2._y = ball2_ylocation; _root.decoy2.gotoAndStop(2); _root.decoy.gotoAndStop(3); } } stop(); _root.options._x = 28.1; _root.restartbutton._x = 41.9; _root.QW._x = 73.8; _root.P._x = 55.6; _root.BN._x = 66; totalRestarts = 0; _root.option.hintbox.gotoAndStop(1); _root.option.meter.gotoAndStop(24); restartLevel(); ball1.onEnterFrame = function () { if (this.hitTest(pinkkey) or ball2.hitTest(pinkkey)) { keystart = true; pinkkey._x = 100000 /* 0x0186A0 */; pinkwall_movement = true; _root.ball1.scan.gotoAndStop(5); } if (this.hitTest(yellowkey) or ball2.hitTest(yellowkey)) { keystart = true; yellowkey._x = 100000 /* 0x0186A0 */; yellowwall_movement = true; _root.ball1.scan.gotoAndStop(7); } if (this.hitTest(warpkey1)) { warpkey1._x = 1000; warp_on = true; warpkey2.gotoAndStop(2); } if (this.hitTest(warpkey2)) { warpkey2._x = 1000; _root.reversestart = true; warp_on = true; } if (scoresubmit25) { scoresubmit = false; } else if (scoresubmit25 == false) { scoresubmit = true; } if ((this.hitTest(finish) or this.hitTest(finish2)) and (ball2.hitTest(finish) or ball2.hitTest(finish2))) { timing = false; seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if ((score == 25) or scoresubmit) { level25_best_time = seconds; scoresubmit25 = true; savefile.data.scoresubmit25 = _root.scoresubmit25; savefile.flush(); } if (seconds < level25_best_time) { level25_best_time = seconds; } savefile.data.level25_best_time = _root.level25_best_time; savefile.flush(); if (_root.score <= 26) { _root.score = 26; } savefile.data.score = _root.score; savefile.flush(); SPACE_possible = false; ball_movement = false; win._x = Stage.width / 2; win._y = Stage.height / 2; _root.win.instructions.gotoAndStop(25); _root.win.meter.gotoAndStop(26); } if (Key.isDown(32) && (SPACE_possible == false)) { finisher = true; } if (finisher) { if (!Key.isDown(32)) { win._x = 10000; gotoAndStop ("l32"); finisher = false; SPACE_possible = true; } } }; _root.onEnterFrame = function () { seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if (!ball_movement) { timing = false; startTime = getTimer() - elapsedTime; } else { timing = true; } if (timing) { elapsedTime = getTimer() - startTime; } if (var25) { w_works = false; } else { w_works = true; } if (((option._x != (Stage.width / 2)) and (instruction._x != (Stage.width / 2))) and (win._x != (Stage.width / 2))) { if (Key.isDown(81)) { q_is_DOWN = true; } if (q_is_DOWN) { if (!Key.isDown(81)) { gotoAndStop ("l30"); q_is_DOWN = false; } } if (Key.isDown(87)) { w_is_DOWN = true; } if (w_is_DOWN) { if (!Key.isDown(87)) { if (w_works) { gotoAndStop ("l32"); } w_is_DOWN = false; } } ballx = ball1._x; bally = ball1._y; decoyx = decoy._x; decoyy = decoy._y; if (Key.isDown(78)) { n_is_DOWN = true; } if (n_is_DOWN) { if (!Key.isDown(78)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); n_is_DOWN = false; } } } if (Key.isDown(66)) { b_is_DOWN = true; } if (b_is_DOWN) { if (!Key.isDown(66)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); b_is_DOWN = false; } } } if (SPACE_possible) { if (Key.isDown(32)) { SPACE_is_DOWN = true; } if (SPACE_is_DOWN) { if (!Key.isDown(32)) { ball1_old_location(); ball1._x = ball2._x; ball1._y = ball2._y; ball2._x = x_location; ball2._y = y_location; SPACE_is_DOWN = false; } } } } if (pinkwall_movement) { pinkwall._x = pinkwall._x - 1; } if (pinkwall._x < 450.4) { pinkwall_movement = false; soundstart = true; pinkwall._x = 450.4; } if (yellowwall_movement) { yellowwall._x = yellowwall._x - 1; yellowwall._width = yellowwall._width - 0.05; } if (yellowwall._x < 351.4) { yellowwall_movement = false; yellowwall._x = 351.4; yellowwall._width = 2; } differenceyellow = ((yellowwall._x - ball1._x) - (yellowwall._width / 2)) - (ball1._width / 2); differenceyellow2 = ((yellowwall._x - ball2._x) - (yellowwall._width / 2)) - (ball2._width / 2); distance_between_leftside_and_ball = Math.abs(((ball1._x - leftside._x) - (leftside._width / 2)) - (ball1._width / 2)); distance_between_leftside_and_ball2 = Math.abs(((ball2._x - leftside._x) - (leftside._width / 2)) - (ball2._width / 2)); distance_y_between_yellowwall_and_ball = Math.abs(yellowwall._y - ball1._y); distance_y_between_yellowwall_and_ball2 = Math.abs(yellowwall._y - ball2._y); if ((((yellowwall_movement == true) and (differenceyellow <= 0.2)) and (differenceyellow >= -8)) and (distance_y_between_yellowwall_and_ball < ((ball1._height / 2) + (yellowwall._height / 2)))) { ball1._x = ((yellowwall._x - (yellowwall._width / 2)) - (ball1._width / 2)) - 0.2; } if ((((yellowwall_movement == true) and (differenceyellow2 <= 0.2)) and (differenceyellow2 >= -8)) and (distance_y_between_yellowwall_and_ball2 < ((ball2._height / 2) + (yellowwall._height / 2)))) { ball2._x = ((yellowwall._x - (yellowwall._width / 2)) - (ball2._width / 2)) - 0.2; } if (((((differenceyellow <= 0.5) && (differenceyellow >= -2)) && (distance_between_leftside_and_ball <= 1)) && (distance_y_between_yellowwall_and_ball < ((ball1._height / 2) + (yellowwall._height / 2)))) or ((((differenceyellow2 <= 0.5) && (differenceyellow2 >= -2)) && (distance_between_leftside_and_ball2 <= 1)) && (distance_y_between_yellowwall_and_ball2 < ((ball2._height / 2) + (yellowwall._height / 2))))) { yellow_hit = true; ball_location = false; ball1._x = 2000; ball2._x = 2000; } differencepink = ((pinkwall._x - ball1._x) - (pinkwall._width / 2)) - (ball1._width / 2); differencepink2 = ((pinkwall._x - ball2._x) - (pinkwall._width / 2)) - (ball2._width / 2); distance_between_middlewall_and_ball = Math.abs(((ball1._x - middlewall._x) - (middlewall._width / 2)) - (ball1._width / 2)); distance_between_middlewall_and_ball2 = Math.abs(((ball2._x - middlewall._x) - (middlewall._width / 2)) - (ball2._width / 2)); distance_y_between_pinkwall_and_ball = Math.abs(pinkwall._y - ball1._y); distance_y_between_pinkwall_and_ball2 = Math.abs(pinkwall._y - ball2._y); if ((((pinkwall_movement == true) and (differencepink <= 0.2)) and (differencepink >= -8)) and (distance_y_between_pinkwall_and_ball < ((ball1._height / 2) + (pinkwall._height / 2)))) { ball1._x = ((pinkwall._x - (pinkwall._width / 2)) - (ball1._width / 2)) - 0.2; } if ((((pinkwall_movement == true) and (differencepink2 <= 0.2)) and (differencepink2 >= -8)) and (distance_y_between_pinkwall_and_ball2 < ((ball2._height / 2) + (pinkwall._height / 2)))) { ball2._x = ((pinkwall._x - (pinkwall._width / 2)) - (ball2._width / 2)) - 0.2; } if (((((differencepink <= 0.5) && (differencepink >= -2)) && (distance_between_middlewall_and_ball <= 1)) && (distance_y_between_pinkwall_and_ball < ((ball1._height / 2) + (pinkwall._height / 2)))) or ((((differencepink2 <= 0.5) && (differencepink2 >= -2)) && (distance_between_middlewall_and_ball2 <= 1)) && (distance_y_between_pinkwall_and_ball2 < ((ball2._height / 2) + (pinkwall._height / 2))))) { pink_hit = true; ball_location = false; ball1._x = 2000; ball2._x = 2000; } if (ball_location) { ball1_xlocation = ball1._x; ball1_ylocation = ball1._y; ball2_xlocation = ball2._x; ball2_ylocation = ball2._y; } else { explosionsound2 = true; if (ball1_xlocation < (Stage.width / 2)) { if (yellow_hit == true) { black_is_hit_yellow = true; } if (pink_hit == true) { gray_is_hit_pink = true; } } else if (ball1_xlocation > (Stage.width / 2)) { if (yellow_hit == true) { gray_is_hit_yellow = true; } if (pink_hit == true) { black_is_hit_pink = true; } } ball_locator(); } };
Instance of Symbol 2517 MovieClip "ball2" in Frame 35
onClipEvent (load) { xmove2 = 0; ymove2 = 0; } onClipEvent (enterFrame) { function move2(xmove2, ymove2) { _x = (_x + xmove2); _y = (_y + ymove2); if (hitTest(_root.leftwall)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftwall.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftwall.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightwall)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightwall.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightwall.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.middlewall)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.topwall)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.topwall.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.topwall.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.topwall.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bottomwall)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bottomwall.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bottomwall.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bottomwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.yellowwall)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.yellowwall.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.yellowwall.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.yellowwall.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.yellowwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.leftside)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftside.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftside.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftside.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftside.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightside)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightside.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightside.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightside.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightside.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.pinkwall)) { if (xmove2 > 0) { _x = (_x - ((getBounds(_root).xMax - _root.pinkwall.getBounds(_root).xMin) + 0.1)); } if (xmove2 < 0) { _x = (_x - ((getBounds(_root).xMin - _root.pinkwall.getBounds(_root).xMax) - 0.1)); } if (ymove2 > 0) { _y = (_y - ((getBounds(_root).yMax - _root.pinkwall.getBounds(_root).yMin) + 0.1)); } if (ymove2 < 0) { _y = (_y - ((getBounds(_root).yMin - _root.pinkwall.getBounds(_root).yMax) - 0.1)); } } } if (_root.warp_on == true) { if (_root.ball_movement) { if (Key.isDown(37)) { move2(5, 0); } if (Key.isDown(39)) { move2(-5, 0); } if (Key.isDown(38)) { move2(0, 5); } if (Key.isDown(40)) { move2(0, -5); } } } }
Instance of Symbol 2518 MovieClip "ball1" in Frame 35
onClipEvent (enterFrame) { function move(xmove, ymove) { _x = (_x + xmove); _y = (_y + ymove); if (hitTest(_root.leftwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.middlewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.topwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.topwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.topwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.topwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bottomwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bottomwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bottomwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bottomwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.leftside)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftside.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftside.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftside.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftside.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightside)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightside.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightside.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightside.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightside.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.pinkwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.pinkwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.pinkwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.pinkwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.pinkwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.yellowwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.yellowwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.yellowwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.yellowwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.yellowwall.getBounds(_root).yMax) - 0.1)); } } } if (_root.ball_movement == true) { if (Key.isDown(37)) { move(-5, 0); } if (Key.isDown(39)) { move(5, 0); } if (Key.isDown(38)) { move(0, -5); } if (Key.isDown(40)) { move(0, 5); } } }
Frame 36
function restartLevel() { _root.scoresubmit27 = savefile.data.scoresubmit27; savefile.flush(); soundstart = false; small = false; if (((var28 != true) and (var29 != true)) and (var30 != true)) { var27 = true; } var26 = false; if (_root.var1) { _root.score = 1; } else if (_root.var2) { _root.score = 2; } else if (_root.var3) { _root.score = 3; } else if (_root.var4) { _root.score = 4; } else if (_root.var5) { _root.score = 5; } else if (_root.var6) { _root.score = 6; } else if (_root.var71) { _root.score = 7; } else if (_root.var8) { _root.score = 8; } else if (_root.var9) { _root.score = 9; } else if (_root.var10) { _root.score = 10; } else if (_root.var11) { _root.score = 11; } else if (_root.var12) { _root.score = 12; } else if (_root.var13) { _root.score = 13; } else if (_root.var14) { _root.score = 14; } else if (_root.var15) { _root.score = 15; } else if (_root.var16) { _root.score = 16; } else if (_root.var17) { _root.score = 17; } else if (_root.var18) { _root.score = 18; } else if (_root.var19) { _root.score = 19; } else if (_root.var20) { _root.score = 20; } else if (_root.var21) { _root.score = 21; } else if (_root.var22) { _root.score = 22; } else if (_root.var23) { _root.score = 23; } else if (_root.var24) { _root.score = 24; } else if (_root.var25) { _root.score = 25; } else if (_root.var26) { _root.score = 26; } else if (_root.var27) { _root.score = 27; } else if (_root.var28) { _root.score = 28; } else if (_root.var29) { _root.score = 29; } else if (_root.var30) { _root.score = 30; } savefile.data.score = _root.score; savefile.flush(); radius = ball1._height / 2; SPACE_possible = true; pinkwall_movement = false; orangewall_movement = false; yellowwall_movement = false; bluewall_movement = false; transporter2._alpha = 100; transporter1._alpha = 100; _root.orangeswitch.gotoAndStop(1); _root.blueswitch.gotoAndStop(1); crate2_hit_1 = false; crate2_hit_2 = false; crate1_hit_1 = false; crate1_hit_2 = false; _root.crate2.gotoAndStop(1); _root.decoy2.gotoAndStop(1); _root.decoy.gotoAndStop(1); _root.ball1.gotoAndStop(1); _root.ball1.gotoAndStop(1); _root.ball2.gotoAndStop(1); _root.ball2.gotoAndStop(1); _root.crate1.gotoAndStop(1); _root.crate2.gotoAndStop(1); decoy._x = -1000; decoy2._x = -1000; ball_movement = true; finisher = false; yellow_hit = false; green_hit = false; timing = true; elapsedTime = 0; startTime = getTimer(); seconds = 0; crate1._x = 540.8; crate1._y = 192.5; crate2._x = 183.3; crate2._y = 137.3; greenkey._x = 425.1; greenkey._y = 69.7; orangeswitch._x = 540.8; orangeswitch._y = 481.4; pinkkey._x = 274.1; pinkkey._y = 248.9; pinkwall._x = 425.4; pinkwall._y = 435.3; orangewall._x = 273.1; orangewall._y = 300; ball1._x = 183.2; ball1._y = 85.3; ball2._x = 425.1; ball2._y = 243.2; greenwallright._x = 584.8; greenwallright._y = 456.1; finish._x = 425; finish._y = 478.4; transporter1._x = 183.2; transporter1._y = 196.6; transporter2._x = 541; transporter2._y = 321.2; yellowkey._x = 122.1; yellowkey._y = 482.9; blueswitch._x = 229.9; blueswitch._y = 415.4; bluewall._x = 425.4; bluewall._y = 397.9; yellowwall._x = 540.5; yellowwall._y = -102.8; grennwallleft._x = 496.4; green_transparent._x = 540.9; greenwall._x = 541.4; } function ball1_old_location() { x_location = ball1._x; y_location = ball1._y; } stop(); _root.options._x = 28.1; _root.restartbutton._x = 41.9; _root.QW._x = 73.8; _root.P._x = 55.6; _root.BN._x = 66; totalRestarts = 0; _root.option.hintbox.gotoAndStop(1); _root.option.meter.gotoAndStop(25); restartLevel(); ball1.onEnterFrame = function () { if (this.hitTest(pinkkey)) { keystart = true; pinkkey._x = 100000 /* 0x0186A0 */; pinkwall_movement = true; _root.ball1.scan.gotoAndStop(9); } if (this.hitTest(greenkey)) { keystart = true; greenkey._x = 100000 /* 0x0186A0 */; greenwallright_movement = true; } if ((crate1.hitTest(_root.orangeswitch.button) or crate2.hitTest(_root.orangeswitch.button)) and (_root.orangeswitch._currentframe == 1)) { switchstart = true; orangeswitch.gotoAndStop(2); orangewall_movement = true; } if ((crate1.hitTest(_root.blueswitch.button) or crate2.hitTest(_root.blueswitch.button)) and (_root.blueswitch._currentframe == 1)) { switchstart = true; blueswitch.gotoAndStop(2); bluewall_movement = true; } if (this.hitTest(yellowkey)) { keystart = true; yellowkey._x = 100000 /* 0x0186A0 */; yellowwall_movement = true; _root.ball1.scan.gotoAndStop(7); } if (scoresubmit27) { scoresubmit = false; } else if (scoresubmit27 == false) { scoresubmit = true; } if (this.hitTest(finish)) { timing = false; seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if ((score == 27) or scoresubmit) { level27_best_time = seconds; scoresubmit27 = true; savefile.data.scoresubmit27 = _root.scoresubmit27; savefile.flush(); } if (seconds < level27_best_time) { level27_best_time = seconds; } savefile.data.level27_best_time = _root.level27_best_time; savefile.flush(); if (_root.score <= 28) { _root.score = 28; } savefile.data.score = _root.score; savefile.flush(); SPACE_possible = false; ball_movement = false; win._x = Stage.width / 2; win._y = Stage.height / 2; _root.win.instructions.gotoAndStop(27); _root.win.meter.gotoAndStop(28); } if (Key.isDown(32) && (SPACE_possible == false)) { finisher = true; } if (finisher) { if (!Key.isDown(32)) { win._x = 10000; gotoAndStop ("l28"); finisher = false; SPACE_possible = true; } } }; _root.onEnterFrame = function () { seconds = int((elapsedTime / 1000) * 10) / 10; if (seconds >= 99.9) { seconds = 99.9; } if (!ball_movement) { timing = false; startTime = getTimer() - elapsedTime; } else { timing = true; } if (timing) { elapsedTime = getTimer() - startTime; } if (var27) { w_works = false; } else { w_works = true; } if (((option._x != (Stage.width / 2)) and (instruction._x != (Stage.width / 2))) and (win._x != (Stage.width / 2))) { if (Key.isDown(81)) { q_is_DOWN = true; } if (q_is_DOWN) { if (!Key.isDown(81)) { gotoAndStop ("l32"); q_is_DOWN = false; } } if (Key.isDown(87)) { w_is_DOWN = true; } if (w_is_DOWN) { if (!Key.isDown(87)) { if (w_works) { gotoAndStop ("l28"); } w_is_DOWN = false; } } ballx = ball1._x; bally = ball1._y; decoyx = decoy._x; if (Key.isDown(78)) { n_is_DOWN = true; } if (n_is_DOWN) { if (!Key.isDown(78)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); n_is_DOWN = false; } } } if (Key.isDown(66)) { b_is_DOWN = true; } if (b_is_DOWN) { if (!Key.isDown(66)) { if (ball_movement) { totalRestarts = totalRestarts + 1; restartLevel(); b_is_DOWN = false; } } } if (SPACE_possible) { if (Key.isDown(32)) { SPACE_is_DOWN = true; } if (SPACE_is_DOWN) { if (!Key.isDown(32)) { ball1_old_location(); ball1._x = ball2._x; ball1._y = ball2._y; ball2._x = x_location; ball2._y = y_location; SPACE_is_DOWN = false; } } } } decoycrate = _root.decoy_crate.inside._currentframe; ballx = ball1._x; bally = ball1._y; if (yellowwall.hitTest(transporter2)) { yellow_hit = true; } if (greenwallright.hitTest(transporter2)) { green_hit = true; } if (((crate1.hitTest(transporter2) or crate2.hitTest(transporter2)) or crate1.hitTest(transporter1)) or (yellowwall._y > 64.3)) { transporter1._alpha = 67; transporter2._alpha = 67; transporter_var1 = true; } else { transporter_var1 = false; } if (((((crate1.hitTest(transporter1) or crate2.hitTest(transporter1)) or crate2.hitTest(transporter2)) or ball1.hitTest(transporter1)) or ball2.hitTest(transporter1)) or (yellowwall._y > 64.3)) { transporter2._alpha = 67; transporter1._alpha = 67; transporter_var2 = true; } else { if (!transporter_var1) { transporter2._alpha = 100; transporter1._alpha = 100; } transporter_var2 = false; } if (!transporter_var1) { if (crate2.hitTest(transporter1) and ((!crate2_hit_2) or crate2_trans1_activate)) { transporter_var2 = true; _root.transstart = true; crate2._x = transporter2._x; crate2._y = transporter2._y; crate2_hit_1 = true; } if (crate1.hitTest(transporter1)) { if ((!crate1_hit_2) or crate1_trans1_activate) { transporter_var2 = true; _root.transstart = true; crate1._x = transporter2._x; crate1._y = transporter2._y; crate1_hit_1 = true; } } } if (!transporter_var2) { if (crate2.hitTest(transporter2)) { if ((!crate2_hit_1) or crate2_trans2_activate) { transporter_var1 = true; _root.transstart = true; crate2._x = transporter1._x; crate2._y = transporter1._y; crate2_hit_2 = true; } } if (crate1.hitTest(transporter2)) { if ((!crate1_hit_1) or crate1_trans2_activate) { transporter_var1 = true; _root.transstart = true; crate1._x = transporter1._x; crate1._y = transporter1._y; crate1_hit_2 = true; } } } if (crate1_hit_2 and (!crate1.hitTest(transporter1))) { crate1_trans1_activate = true; } if (crate1_hit_1 and (!crate1.hitTest(transporter2))) { crate1_trans2_activate = true; } if (crate2_hit_2 and (!crate2.hitTest(transporter1))) { crate2_trans1_activate = true; } if (crate2_hit_1 and (!crate2.hitTest(transporter2))) { crate2_trans2_activate = true; } greenwallleft._y = greenwallright._y; green_transparent._y = greenwallright._y; greenwall._y = greenwallright._y; if (greenwallright_movement) { greenwallright._y = greenwallright._y - 1; } if (greenwallright._y <= 109.6) { greenwallright_movement = false; greenwallright._y = 109.6; } if (pinkwall_movement) { pinkwall._x = pinkwall._x - 0.5; } if (pinkwall._x <= 363.4) { pinkwall_movement = false; pinkwall._x = 363.4; } if (bluewall_movement) { bluewall._x = bluewall._x - 0.5; } if (bluewall._x <= 363.4) { bluewall_movement = false; bluewall._x = 363.4; } if (orangewall_movement) { orangewall._x = orangewall._x + 0.5; } if (orangewall._x > 345.1) { orangewall_movement = false; orangewall._x = 345.1; } if (yellowwall_movement) { yellowwall._y = yellowwall._y + 1; } if (yellowwall._y > 228.7) { soundstart = true; yellowwall_movement = false; yellowwall._y = 228.6; } differencegreen = ((greenwall._x - (greenwall._width / 2)) - (ball1._width / 2)) - ball1._x; differencegreen2 = ((greenwall._x - (greenwall._width / 2)) - (ball2._width / 2)) - ball2._x; distance_between_rightmiddlewall_and_ball = Math.abs(((ball1._x - middlewall._x) - (middlewall._width / 2)) - (ball1._width / 2)); distance_between_rightmiddlewall_and_ball2 = Math.abs(((ball2._x - middlewall._x) - (middlewall._width / 2)) - (ball2._width / 2)); distance_y_between_greenwall_and_ball = Math.abs(greenwall._y - ball1._y); distance_y_between_greenwall_and_ball2 = Math.abs(greenwall._y - ball2._y); if ((((greenwall_movement == true) and (differencegreen <= 1)) and (differencegreen >= -8)) and (distance_y_between_greenwall_and_ball < ((ball1._height / 2) + (greenwall._height / 2)))) { ball1._x = ((greenwall._x - (greenwall._width / 2)) - (ball1._width / 2)) - 0.2; ball1_is_pushed_by_green_wall = true; } else { ball1_is_pushed_by_green_wall = false; } if ((((greenwall_movement == true) and (differencegreen2 <= 0.2)) and (differencegreen2 >= -8)) and (distance_y_between_greenwall_and_ball2 < ((ball2._height / 2) + (greenwall._height / 2)))) { ball2._x = ((greenwall._x - (greenwall._width / 2)) - (ball2._width / 2)) - 0.2; ball2_is_pushed_by_green_wall = true; } else { ball2_is_pushed_by_green_wall = false; } if ((((differencegreen <= 0.5) && (distance_between_rightmiddlewall_and_ball <= 0.5)) && (distance_y_between_greenwall_and_ball < ((ball1._height / 2) + (greenwall._height / 2)))) or (((differencegreen2 <= 0.5) && (distance_between_rightmiddlewall_and_ball2 <= 0.5)) && (distance_y_between_greenwall_and_ball2 < ((ball2._height / 2) + (greenwall._height / 2))))) { green_hit = true; cant_move_crate1_up_against_green_wall = false; cant_move_crate1_down_against_green_wall = false; ball_location = false; ball1._x = 2000; ball2._x = 2000; } if ((((((ball1._y > Stage.height) and (ball1._y < 1000)) or ((ball1._y < 0) and (ball1._y > -1000))) or ((ball1._x > Stage.width) and (ball1._x < 1000))) or ((ball1._x < 0) and (ball1._x > -1000))) and (greenwall._x >= ((Stage.width / 2) + (greenwall._width / 2)))) { ball_location = false; cant_move_crate1_up_against_green_wall = false; cant_move_crate1_down_against_green_wall = false; green_hit = true; } if (ball_location) { ball1_xlocation = ball1._x; ball1_ylocation = ball1._y; ball2_xlocation = ball2._x; ball2_ylocation = ball2._y; } else { explosionsound2 = true; if (ball1_xlocation < (Stage.width / 2)) { if (green_hit == true) { gray_is_hit_green = true; } } else if (ball1_xlocation > (Stage.width / 2)) { if (green_hit == true) { black_is_hit_green = true; } } ball_locator(); } };
Instance of Symbol 2464 MovieClip "ball1" in Frame 36
onClipEvent (load) { _root.hit_crate1 = false; } onClipEvent (enterFrame) { function move(xmove, ymove) { _x = (_x + xmove); _y = (_y + ymove); if (hitTest(_root.leftwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.middlewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.middlewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.topwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.topwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.topwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.topwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bottomwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bottomwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bottomwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bottomwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.pinkwall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.pinkwall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.pinkwall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.pinkwall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.pinkwall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.orangewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.orangewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.orangewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.orangewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.orangewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.bluewall)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.bluewall.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.bluewall.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.bluewall.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.bluewall.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.leftside)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.leftside.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.leftside.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.leftside.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.leftside.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightside1)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightside1.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightside1.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightside1.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightside1.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.rightside2)) { if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.rightside2.getBounds(_root).xMin) + 0.1)); } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.rightside2.getBounds(_root).xMax) - 0.1)); } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.rightside2.getBounds(_root).yMin) + 0.1)); } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.rightside2.getBounds(_root).yMax) - 0.1)); } } if (hitTest(_root.crate1)) { _root.hit_crate1 = true; _root.hit_crate2_2 = false; _root.hit_crate1_2 = true; if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.crate1.getBounds(_root).xMin) + 0.1)); if (((_root.cant_move_crate1_right_against_rightside2 == false) and (_root.cant_move_crate1_right_against_rightside1 == false)) and (_root.cant_move_crate1_right_against_middlewall == false)) { _root.cratespeed_xright = 1; _root.crate1._x = _root.crate1._x + _root.cratespeed_xright; _root.moveright = true; } } else { _root.moveright = false; } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.crate1.getBounds(_root).xMax) - 0.1)); if (_root.cant_move_crate1_left_against_leftwall == false) { _root.cratespeed_xleft = 1; _root.crate1._x = _root.crate1._x - _root.cratespeed_xleft; _root.moveleft = true; } } else { _root.moveleft = false; } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.crate1.getBounds(_root).yMin) + 0.1)); if (_root.cant_move_crate1_down_against_bottomwall == false) { _root.cratespeed_ydown = 1; _root.crate1._y = _root.crate1._y + _root.cratespeed_ydown; _root.movedown = true; } } else { _root.movedown = false; } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.crate1.getBounds(_root).yMax) - 0.1)); if (((_root.cant_move_crate1_up_against_topwall == false) and (_root.cant_move_crate1_up_against_rightside2 == false)) and (_root.cant_move_crate1_up_against_orangewall == false)) { _root.cratespeed_yup = 1; _root.crate1._y = _root.crate1._y - _root.cratespeed_yup; _root.moveup = true; } } else { _root.moveup = false; } } else { _root.cratespeed_xright = 0; _root.cratespeed_xleft = 0; _root.cratespeed_ydown = 0; _root.cratespeed_yup = 0; } if (hitTest(_root.crate2)) { _root.hit_crate2 = true; _root.hit_crate2_2 = true; _root.hit_crate1_2 = false; if (xmove > 0) { _x = (_x - ((getBounds(_root).xMax - _root.crate2.getBounds(_root).xMin) + 0.1)); if (((_root.cant_move_crate2_right_against_rightside2 == false) and (_root.cant_move_crate2_right_against_rightside1 == false)) and (_root.cant_move_crate2_right_against_middlewall == false)) { _root.cratespeed_xright = 1; _root.crate2._x = _root.crate2._x + _root.cratespeed_xright; _root.moveright = true; } } else { _root.moveright = false; } if (xmove < 0) { _x = (_x - ((getBounds(_root).xMin - _root.crate2.getBounds(_root).xMax) - 0.5)); if (_root.cant_move_crate2_left_against_leftwall == false) { _root.cratespeed_xleft = 1; _root.crate2._x = _root.crate2._x - _root.cratespeed_xleft; _root.moveleft = true; } } else { _root.moveleft = false; } if (ymove > 0) { _y = (_y - ((getBounds(_root).yMax - _root.crate2.getBounds(_root).yMin) + 0.1)); if (_root.cant_move_crate2_down_against_bottomwall == false) { _root.cratespeed_ydown = 1; _root.crate2._y = _root.crate2._y + _root.cratespeed_ydown; _root.movedown = true; } } else { _root.movedown = false; } if (ymove < 0) { _y = (_y - ((getBounds(_root).yMin - _root.crate2.getBounds(_root).yMax) - 0.1)); if ((((_root.cant_move_crate2_up_against_topwall == false) and (_root.cant_move_crate2_up_against_rightside2 == false)) and (_root.cant_move_crate2_right_against_rightside1 == false)) and (_root.cant_move_crate2_up_against_orangewall == false)) { _root.cratespeed_yup = 1; _root.crate2._y = _root.crate2._y - _root.cratespeed_yup; _root.moveup = true; } } else { _root.moveup = false; } } else { _root.cratespeed_xright = 0; _root.cratespeed_xleft = 0; _root.cratespeed_ydown = 0; _root.cratespeed_yup = 0; } } if ((((!Key.isDown(37)) and (!Key.isDown(39))) and (!Key.isDown(38))) and (!Key.isDown(40))) { _root.moveup = false; _root.movedown = false; _root.moveright = false; _root.moveleft = false; move(0, 0); _root.hit_crate1 = false; _root.hit_crate2 = false; } if (_root.ball_movement == true) { if (Key.isDown(37)) { move(-5, 0); } if (Key.isDown(39)) { move(5, 0); } if (Key.isDown(38)) { move(0, -5); } if (Key.isDown(40)) { move(0, 5); } } }
Instance of Symbol 1071 MovieClip "crate1" in Frame 36
onClipEvent (load) { _root.decoy_crate.inside.gotoAndPlay(1); _root.cant_move_crate1_right_against_rightside2 = false; _root.cant_move_crate1_right_against_rightside1 = false; _root.cant_move_crate1_right_against_middlewall = false; _root.cant_move_crate1_left_against_leftwall = false; _root.decoydone = false; _root.cant_move_crate1_down_against_bottomwall = false; _root.cant_move_crate1_up_against_topwall = false; _root.cant_move_crate1_up_against_rightside2 = false; _root.cant_move_crate1_up_against_orangewall = false; _root.cant_move_crate1_up_against_crate2 = false; _root.cant_move_crate1_down_against_crate2 = false; _root.cant_move_crate1_left_against_crate2 = false; _root.cant_move_crate1_right_against_crate2 = false; } onClipEvent (enterFrame) { if (hitTest(_root.leftwall) and (_root.moveleft == true)) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate1_left_against_leftwall = true; } if (((Math.abs(((_x - _root.leftwall._x) - (_root.leftwall._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.leftwall._y + (_root.leftwall._height / 2)) + (_height / 2)))) and (_y > ((_root.leftwall._y - (_root.leftwall._height / 2)) - (_height / 2)))) { _root.cant_move_crate1_left_against_leftwall = true; } else { _root.cant_move_crate1_left_against_leftwall = false; } if (hitTest(_root.rightside2) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.rightside2.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate1_right_against_rightside2 = true; } if (((Math.abs(((_root.rightside2._x - _x) - (_root.rightside2._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.rightside2._y + (_root.rightside2._height / 2)) + (_height / 2)))) and (_y > ((_root.rightside2._y - (_root.rightside2._height / 2)) - (_height / 2)))) { _root.cant_move_crate1_right_against_rightside2 = true; } else { _root.cant_move_crate1_right_against_rightside2 = false; } if (hitTest(_root.rightside1) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.rightside1.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate1_right_against_rightside1 = true; } if (((Math.abs(((_root.rightside1._x - _x) - (_root.rightside1._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.rightside1._y + (_root.rightside1._height / 2)) + (_height / 2)))) and (_y > ((_root.rightside1._y - (_root.rightside1._height / 2)) - (_height / 2)))) { _root.cant_move_crate1_right_against_rightside1 = true; } else { _root.cant_move_crate1_right_against_rightside1 = false; } if (hitTest(_root.middlewall) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate1_right_against_middlewall = true; } if (((Math.abs(((_root.middlewall._x - _x) - (_root.middlewall._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.middlewall._y + (_root.middlewall._height / 2)) + (_height / 2)))) and (_y > ((_root.middlewall._y - (_root.middlewall._height / 2)) - (_height / 2)))) { _root.cant_move_crate1_right_against_middlewall = true; } else { _root.cant_move_crate1_right_against_middlewall = false; } if (hitTest(_root.topwall) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate1_up_against_topwall = true; } if (((Math.abs(((_y - _root.topwall._y) - (_root.topwall._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.topwall._x + (_root.topwall._width / 2)) + (_width / 2)))) and (_x > ((_root.topwall._x - (_root.topwall._width / 2)) - (_width / 2)))) { _root.cant_move_crate1_up_against_topwall = true; } else { _root.cant_move_crate1_up_against_topwall = false; } if (hitTest(_root.rightside2) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.rightside2.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate1_up_against_rightside2 = true; } if (((Math.abs(((_y - _root.rightside2._y) - (_root.rightside2._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.rightside2._x + (_root.rightside2._width / 2)) + (_width / 2)))) and (_x > ((_root.rightside2._x - (_root.rightside2._width / 2)) - (_width / 2)))) { _root.cant_move_crate1_up_against_rightside2 = true; } else { _root.cant_move_crate1_up_against_rightside2 = false; } if (hitTest(_root.orangewall) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.orangewall.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate1_up_against_orangewall = true; } if (((Math.abs(((_y - _root.orangewall._y) - (_root.orangewall._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.orangewall._x + (_root.orangewall._width / 2)) + (_width / 2)))) and (_x > ((_root.orangewall._x - (_root.orangewall._width / 2)) - (_width / 2)))) { _root.cant_move_crate1_up_against_orangewall = true; } else { _root.cant_move_crate1_up_against_orangewall = false; } if (hitTest(_root.bottomwall) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate1_down_against_bottomwall = true; } if (((Math.abs(((_root.bottomwall._y - _y) - (_root.bottomwall._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.bottomwall._x + (_root.bottomwall._width / 2)) + (_width / 2)))) and (_x > ((_root.bottomwall._x - (_root.bottomwall._width / 2)) - (_width / 2)))) { _root.cant_move_crate1_down_against_bottomwall = true; } else { _root.cant_move_crate1_down_against_bottomwall = false; } if (_root.hit_crate1) { if (hitTest(_root.crate2) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.crate2.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate1_up_against_crate2 = true; } if ((((((_y - _root.crate2._y) - (_root.crate2._height / 2)) - (_height / 2)) <= 0.3) and ((((_y - _root.crate2._y) - (_root.crate2._height / 2)) - (_height / 2)) >= 0)) and (Math.abs(_root.crate2._x - _x) < ((_width / 2) + (_root.crate2._width / 2)))) { _root.cant_move_crate1_up_against_crate2 = true; } else { _root.cant_move_crate1_up_against_crate2 = false; } if (hitTest(_root.crate2) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.crate2.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate1_down_against_crate2 = true; } if ((((((_root.crate2._y - _y) - (_root.crate2._height / 2)) - (_height / 2)) <= 0.3) and ((((_root.crate2._y - _y) - (_root.crate2._height / 2)) - (_height / 2)) >= 0)) and (Math.abs(_root.crate2._x - _x) < ((_width / 2) + (_root.crate2._width / 2)))) { _root.cant_move_crate1_down_against_crate2 = true; } else { _root.cant_move_crate1_down_against_crate2 = false; } if (hitTest(_root.crate2) and (_root.moveleft == true)) { _x = (_x - ((getBounds(_root).xMin - _root.crate2.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate1_left_against_crate2 = true; } if ((((((_x - _root.crate2._x) - (_root.crate2._width / 2)) - (_width / 2)) <= 0.3) and ((((_x - _root.crate2._x) - (_root.crate2._width / 2)) - (_width / 2)) >= 0)) and (Math.abs(_root.crate2._y - _y) < ((_height / 2) + (_root.crate2._height / 2)))) { _root.cant_move_crate1_left_against_crate2 = true; } else { _root.cant_move_crate1_left_against_crate2 = false; } if (hitTest(_root.crate2) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.crate2.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate1_right_against_crate2 = true; } if ((((((_root.crate2._x - _x) - (_root.crate2._width / 2)) - (_width / 2)) <= 0.3) and ((((_root.crate2._x - _x) - (_root.crate2._width / 2)) - (_width / 2)) >= 0)) and (Math.abs(_root.crate2._y - _y) < ((_height / 2) + (_root.crate2._height / 2)))) { _root.cant_move_crate1_right_against_crate2 = true; } else { _root.cant_move_crate1_right_against_crate2 = false; } } _root.difference_y_yellow_with_crate1_top = ((_y - _root.yellowwall._y) - (_root.yellowwall._height / 2)) - (_height / 2); _root.distance_x_between_yellowwall_and_crate1 = Math.abs(_root.yellowwall._x - _x); if (((_root.difference_y_yellow_with_crate1_top <= 0.3) && (_root.difference_y_yellow_with_crate1_top >= -8)) && (_root.distance_x_between_yellowwall_and_crate1 < ((_width / 2) + (_root.yellowwall._width / 2)))) { _root.blue_wall_and_crate1_bottomside_touching = true; } else { _root.blue_wall_and_crate1_bottomside_touching = false; } if ((((_root.yellowwall_movement == true) and (_root.blue_wall_and_crate1_bottomside_touching == true)) and (_root.distance_x_between_yellowwall_and_crate1 < ((_width / 2) + (_root.yellowwall._width / 2)))) and (_currentframe == 1)) { _y = (((_root.yellowwall._y + (_root.yellowwall._height / 2)) + (_height / 2)) + 0.2); } _root.difference_y_crate1_with_crate2_top = ((_root.crate2._y - (_root.crate2._height / 2)) - (_height / 2)) - _y; if ((_root.difference_y_crate1_with_crate2_top <= 0.3) && (_root.difference_y_crate1_with_crate2_top >= -8)) { _root.crate1_and_crate2_bottomside_touching = true; } else { _root.crate1_and_crate2_bottomside_touching = false; } if (_root.crate1_and_crate2_bottomside_touching == true) { _root.crate2._y = ((_y + (_height / 2)) + (_root.crate2._height / 2)) + 0.2; } if (this._y > 485.5) { _root.decoy_crate.inside.gotoAndPlay(1); _root.yellowwall_movement = false; _root.decoy_crate._x = _x; _root.decoy_crate._y = _y; _root.decoy_crate.gotoAndStop(2); _x = 20002; } }
Instance of Symbol 1071 MovieClip "crate2" in Frame 36
onClipEvent (load) { _root.cant_move_crate2_right_against_rightside2 = false; _root.cant_move_crate2_right_against_rightside1 = false; _root.cant_move_crate2_right_against_middlewall = false; _root.cant_move_crate2_left_against_leftwall = false; _root.decoy_crate.gotoAndStop(1); _root.decoydone = false; _root.cant_move_crate2_down_against_bottomwall = false; _root.cant_move_crate2_up_against_topwall = false; _root.cant_move_crate2_up_against_rightside2 = false; _root.cant_move_crate2_up_against_rightside1 = false; _root.cant_move_crate2_up_against_orangewall = false; _root.cant_move_crate2_up_against_crate1 = false; _root.cant_move_crate2_down_against_crate1 = false; _root.cant_move_crate2_left_against_crate1 = false; _root.cant_move_crate2_right_against_crate1 = false; } onClipEvent (enterFrame) { if (hitTest(_root.leftwall) and (_root.moveleft == true)) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate2_left_against_leftwall = true; } if (((Math.abs(((_x - _root.leftwall._x) - (_root.leftwall._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.leftwall._y + (_root.leftwall._height / 2)) + (_height / 2)))) and (_y > ((_root.leftwall._y - (_root.leftwall._height / 2)) - (_height / 2)))) { _root.cant_move_crate2_left_against_leftwall = true; } else { _root.cant_move_crate2_left_against_leftwall = false; } if (hitTest(_root.rightside2) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.rightside2.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate2_right_against_rightside2 = true; } if (((Math.abs(((_root.rightside2._x - _x) - (_root.rightside2._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.rightside2._y + (_root.rightside2._height / 2)) + (_height / 2)))) and (_y > ((_root.rightside2._y - (_root.rightside2._height / 2)) - (_height / 2)))) { _root.cant_move_crate2_right_against_rightside2 = true; } else { _root.cant_move_crate2_right_against_rightside2 = false; } if (hitTest(_root.rightside1) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.rightside1.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate2_right_against_rightside1 = true; } if (((Math.abs(((_root.rightside1._x - _x) - (_root.rightside1._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.rightside1._y + (_root.rightside1._height / 2)) + (_height / 2)))) and (_y > ((_root.rightside1._y - (_root.rightside1._height / 2)) - (_height / 2)))) { _root.cant_move_crate2_right_against_rightside1 = true; } else { _root.cant_move_crate2_right_against_rightside1 = false; } if (hitTest(_root.middlewall) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.middlewall.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate2_right_against_middlewall = true; } if (((Math.abs(((_root.middlewall._x - _x) - (_root.middlewall._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.middlewall._y + (_root.middlewall._height / 2)) + (_height / 2)))) and (_y > ((_root.middlewall._y - (_root.middlewall._height / 2)) - (_height / 2)))) { _root.cant_move_crate2_right_against_middlewall = true; } else { _root.cant_move_crate2_right_against_middlewall = false; } if (hitTest(_root.topwall) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate2_up_against_topwall = true; } if (((Math.abs(((_y - _root.topwall._y) - (_root.topwall._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.topwall._x + (_root.topwall._width / 2)) + (_width / 2)))) and (_x > ((_root.topwall._x - (_root.topwall._width / 2)) - (_width / 2)))) { _root.cant_move_crate2_up_against_topwall = true; } else { _root.cant_move_crate2_up_against_topwall = false; } if (hitTest(_root.rightside2) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.rightside2.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate2_up_against_rightside2 = true; } if (((Math.abs(((_y - _root.rightside2._y) - (_root.rightside2._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.rightside2._x + (_root.rightside2._width / 2)) + (_width / 2)))) and (_x > ((_root.rightside2._x - (_root.rightside2._width / 2)) - (_width / 2)))) { _root.cant_move_crate2_up_against_rightside2 = true; } else { _root.cant_move_crate2_up_against_rightside2 = false; } if (hitTest(_root.rightside1) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.rightside1.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate2_up_against_rightside1 = true; } if (((Math.abs(((_y - _root.rightside1._y) - (_root.rightside1._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.rightside1._x + (_root.rightside1._width / 2)) + (_width / 2)))) and (_x > ((_root.rightside1._x - (_root.rightside1._width / 2)) - (_width / 2)))) { _root.cant_move_crate2_up_against_rightside1 = true; } else { _root.cant_move_crate2_up_against_rightside1 = false; } if (hitTest(_root.orangewall) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.orangewall.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate2_up_against_orangewall = true; } if (((Math.abs(((_y - _root.orangewall._y) - (_root.orangewall._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.orangewall._x + (_root.orangewall._width / 2)) + (_width / 2)))) and (_x > ((_root.orangewall._x - (_root.orangewall._width / 2)) - (_width / 2)))) { _root.cant_move_crate2_up_against_orangewall = true; } else { _root.cant_move_crate2_up_against_orangewall = false; } if (hitTest(_root.bottomwall) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate2_down_against_bottomwall = true; } if (((Math.abs(((_root.bottomwall._y - _y) - (_root.bottomwall._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.bottomwall._x + (_root.bottomwall._width / 2)) + (_width / 2)))) and (_x > ((_root.bottomwall._x - (_root.bottomwall._width / 2)) - (_width / 2)))) { _root.cant_move_crate2_down_against_bottomwall = true; } else { _root.cant_move_crate2_down_against_bottomwall = false; } if (_root.hit_crate2) { if (hitTest(_root.crate1) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.crate1.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate2_up_against_crate1 = true; } if ((((((_y - _root.crate1._y) - (_root.crate1._height / 2)) - (_height / 2)) <= 0.3) and ((((_y - _root.crate1._y) - (_root.crate1._height / 2)) - (_height / 2)) >= 0)) and (Math.abs(_root.crate1._x - _x) < ((_width / 2) + (_root.crate1._width / 2)))) { _root.cant_move_crate2_up_against_crate1 = true; } else { _root.cant_move_crate2_up_against_crate1 = false; } if (hitTest(_root.crate1) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.crate1.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate2_down_against_crate1 = true; } if ((((((_root.crate1._y - _y) - (_root.crate1._height / 2)) - (_height / 2)) <= 0.3) and ((((_root.crate1._y - _y) - (_root.crate1._height / 2)) - (_height / 2)) >= 0)) and (Math.abs(_root.crate1._x - _x) < ((_width / 2) + (_root.crate1._width / 2)))) { _root.cant_move_crate2_down_against_crate1 = true; } else { _root.cant_move_crate2_down_against_crate1 = false; } if (hitTest(_root.crate1) and (_root.moveleft == true)) { _x = (_x - ((getBounds(_root).xMin - _root.crate1.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate2_left_against_crate1 = true; } if ((((((_x - _root.crate1._x) - (_root.crate1._width / 2)) - (_width / 2)) <= 0.3) and ((((_x - _root.crate1._x) - (_root.crate1._width / 2)) - (_width / 2)) >= 0)) and (Math.abs(_root.crate1._y - _y) < ((_height / 2) + (_root.crate1._height / 2)))) { _root.cant_move_crate2_left_against_crate1 = true; } else { _root.cant_move_crate2_left_against_crate1 = false; } if (hitTest(_root.crate1) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.crate1.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate2_right_against_crate1 = true; } if ((((((_root.crate1._x - _x) - (_root.crate1._width / 2)) - (_width / 2)) <= 0.3) and ((((_root.crate1._x - _x) - (_root.crate1._width / 2)) - (_width / 2)) >= 0)) and (Math.abs(_root.crate1._y - _y) < ((_height / 2) + (_root.crate1._height / 2)))) { _root.cant_move_crate2_right_against_crate1 = true; } else { _root.cant_move_crate2_right_against_crate1 = false; } } _root.difference_y_yellow_with_crate2_top = ((_y - _root.yellowwall._y) - (_root.yellowwall._height / 2)) - (_height / 2); _root.distance_x_between_yellowwall_and_crate2 = Math.abs(_root.yellowwall._x - _x); if (((_root.difference_y_yellow_with_crate2_top <= 0.3) && (_root.difference_y_yellow_with_crate2_top >= -8)) && (_root.distance_x_between_yellowwall_and_crate2 < ((_width / 2) + (_root.yellowwall._width / 2)))) { _root.blue_wall_and_crate2_bottomside_touching = true; } else { _root.blue_wall_and_crate2_bottomside_touching = false; } if ((((_root.yellowwall_movement == true) and (_root.blue_wall_and_crate2_bottomside_touching == true)) and (_root.distance_x_between_yellowwall_and_crate2 < ((_width / 2) + (_root.yellowwall._width / 2)))) and (_currentframe == 1)) { _y = (((_root.yellowwall._y + (_root.yellowwall._height / 2)) + (_height / 2)) + 0.2); } if (this._y > 485.5) { _root.decoy_crate.gotoAndStop(2); _root.decoy_crate.inside.gotoAndPlay(1); _root.yellowwall_movement = false; _root.decoy_crate._x = _x; _root.decoy_crate._y = 485.5; gotoAndStop (2); _y = -800; } }
Frame 37
function __rankz_send__(par1, par2, par3, par4) { par227 = new LoadVars(); par228 = new LoadVars(); par227.flashkey = par2; par227.SU0249 = par1; par227.bmFtZTE = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par3); par227.c2NvcmUx = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par4 + "j%e%a%n%s"); par227.flashkey = par227.flashkey.split("=").join(""); par227.SU0249 = par227.SU0249.split("=").join(""); par228.onLoad = function (success) { if (success) { trace(par228.msg); } else { trace(par228.loaded); } }; par227.sendAndLoad("http://rankz.armorbot.com/submit/", par228, "POST"); } bXlnYW1lX25hbWVfdmFyaWFibGU = _root.myname; bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = _root.totaltime; __rankz_send__("MzE4M2olZSVhJW4lcw==", "VXZ1aGtacWk=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl); getURL ("http://rankz.armorbot.com/tworooms/", "_blank"); gotoAndStop (3);
Instance of Symbol 2550 MovieClip in Frame 38
on (release) { getURL ("http://lilleydesign.com/", "_blank"); }
Symbol 40 MovieClip Frame 1
function timerHandler() { if (!loadingComplete) { var _local4 = _root.getBytesLoaded() / _root.getBytesTotal(); bar._xscale = 100 * _local4; if (_local4 == 1) { loadingComplete = true; if (AUTO_PLAY) { startMovie(); } else { gotoAndStop ("loaded"); } return(undefined); } } dt = getTimer() - time; time = time + dt; frameAccum = frameAccum + dt; var _local3 = 0; while ((frameAccum >= FRAME_TIME) && (_local3 < MAX_FRAME_SKIP)) { advanceFrame(tankLogo, true, true); advanceFrame(loadingText, false, true); advanceFrame(barGfx, false, true); if (loadingComplete) { advanceFrame(this, false, false); } (frameAccum = frameAccum - FRAME_TIME); _local3++; } updateAfterEvent(); } function advanceFrame(clip, recurse, loop) { if (!clip) { return(undefined); } clip.stop(); if (clip._currentframe == clip._totalframes) { if (loop) { clip.gotoAndStop(1); } } else { clip.nextFrame(); } if (recurse) { for (childName in clip) { if (typeof(clip[childName]) == "movieclip") { advanceFrame(clip[childName], recurse, loop); } } } } function startMovie() { clearInterval(intervalId); _root.play(); } _root.stop(); stop(); var FRAME_TIME = 33.3333333333333; var AUTO_PLAY = false; var MAX_FRAME_SKIP = 5; var loadingComplete; var intervalId; var time; var frameAccum; loadingComplete = false; intervalId = setInterval(this, "timerHandler", FRAME_TIME / 2); frameAccum = 0; time = getTimer(); timerHandler();
Symbol 40 MovieClip Frame 37
playbutton.onRelease = function () { _root.gotoAndStop(2); };
Symbol 2554 MovieClip [__Packages.ab3.rankz.Armor_Bot_30_En_AS1] Frame 0
class ab3.rankz.Armor_Bot_30_En_AS1 extends Object { static var _CharsReverseLookup; var _Armor_Bot_30_En_AS1Str, _Armor_Bot_30_En_AS1Count; function Armor_Bot_30_En_AS1 () { super(); } static function Encode(str) { var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1(); return(_local1.encodeArmor_Bot_30_En_AS1(str)); } static function Decode(str) { var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1(); return(_local1.decodeArmor_Bot_30_En_AS1(str)); } static function StringReplaceAll(source, find, replacement) { return(source.split(find).join(replacement)); } static function InitReverseChars() { _CharsReverseLookup = new Array(); var _local1 = 0; while (_local1 < _Chars.length) { _CharsReverseLookup[_Chars[_local1]] = _local1; _local1++; } return(true); } static function UrlDecode(str) { str = StringReplaceAll(str, "\\", " "); str = unescape(str); return(str); } static function UrlEncode(str) { str = escape(str); str = StringReplaceAll(str, "\\", "%2B"); str = StringReplaceAll(str, "%20", "+"); return(str); } function setArmor_Bot_30_En_AS1Str(str) { _Armor_Bot_30_En_AS1Str = str; _Armor_Bot_30_En_AS1Count = 0; } function readArmor_Bot_30_En_AS1() { if (!_Armor_Bot_30_En_AS1Str) { return(_EndOfInput); } if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) { return(_EndOfInput); } var _local2 = _Armor_Bot_30_En_AS1Str.charCodeAt(_Armor_Bot_30_En_AS1Count) & 255; _Armor_Bot_30_En_AS1Count++; return(_local2); } function encodeArmor_Bot_30_En_AS1(str) { setArmor_Bot_30_En_AS1Str(str); var _local3 = ""; var _local2 = new Array(3); var _local5 = 0; var _local4 = false; while ((!_local4) && (((_local2[0] = readArmor_Bot_30_En_AS1())) != _EndOfInput)) { _local2[1] = readArmor_Bot_30_En_AS1(); _local2[2] = readArmor_Bot_30_En_AS1(); _local3 = _local3 + _Chars[_local2[0] >> 2]; if (_local2[1] != _EndOfInput) { _local3 = _local3 + _Chars[((_local2[0] << 4) & 48) | (_local2[1] >> 4)]; if (_local2[2] != _EndOfInput) { _local3 = _local3 + _Chars[((_local2[1] << 2) & 60) | (_local2[2] >> 6)]; _local3 = _local3 + _Chars[_local2[2] & 63]; } else { _local3 = _local3 + _Chars[(_local2[1] << 2) & 60]; _local3 = _local3 + "="; _local4 = true; } } else { _local3 = _local3 + _Chars[(_local2[0] << 4) & 48]; _local3 = _local3 + "="; _local3 = _local3 + "="; _local4 = true; } _local5 = _local5 + 4; if (_local5 >= 76) { _local3 = _local3 + newline; _local5 = 0; } } return(_local3); } function readReverseArmor_Bot_30_En_AS1() { if (!_Armor_Bot_30_En_AS1Str) { return(_EndOfInput); } while (true) { if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) { return(_EndOfInput); } var _local2 = _Armor_Bot_30_En_AS1Str.charAt(_Armor_Bot_30_En_AS1Count); _Armor_Bot_30_En_AS1Count++; if (_CharsReverseLookup[_local2]) { return(_CharsReverseLookup[_local2]); } if (_local2 == "A") { return(0); } } } function ntos(n) { var _local1 = n.toString(16); if (_local1.length == 1) { _local1 = "0" + _local1; } _local1 = "%" + _local1; return(unescape(_local1)); } function decodeArmor_Bot_30_En_AS1(str) { setArmor_Bot_30_En_AS1Str(str); var _local3 = ""; var _local2 = new Array(4); var _local4 = false; while (((!_local4) && (((_local2[0] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) && (((_local2[1] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) { _local2[2] = readReverseArmor_Bot_30_En_AS1(); _local2[3] = readReverseArmor_Bot_30_En_AS1(); _local3 = _local3 + ntos(((_local2[0] << 2) & 255) | (_local2[1] >> 4)); if (_local2[2] != _EndOfInput) { _local3 = _local3 + ntos(((_local2[1] << 4) & 255) | (_local2[2] >> 2)); if (_local2[3] != _EndOfInput) { _local3 = _local3 + ntos(((_local2[2] << 6) & 255) | _local2[3]); } else { _local4 = true; } } else { _local4 = true; } } return(_local3); } function toHex(n) { var _local4 = ""; var _local3 = true; var _local1 = 32; while (_local1 > 0) { _local1 = _local1 - 4; var _local2 = (n >> _local1) & 15; if ((!_local3) || (_local2 != 0)) { _local3 = false; _local4 = _local4 + _Digits[_local2]; } } return(((_local4 == "") ? "0" : (_local4))); } function pad(str, len, pad) { var _local2 = str; var _local1 = str.length; while (_local1 < len) { _local2 = pad + _local2; _local1++; } return(_local2); } function encodeHex(str) { var _local4 = ""; var _local2 = 0; while (_local2 < str.length) { _local4 = _local4 + pad(toHex(str.charCodeAt(_local2) & 255), 2, "0"); _local2++; } return(_local4); } function decodeHex(str) { var _local5 = ""; var _local3 = ""; var _local2 = 0; while (_local2 < str.length) { _local3 = _local3 + str.charAt(_local2); if (_local3.length == 2) { _local5 = _local5 + ntos(parseInt("0x" + _local3)); _local3 = ""; } _local2++; } return(_local5); } static var _EndOfInput = -1; static var _Chars = new Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+", "/"); static var _CharsReverseLookupInited = InitReverseChars(); static var _Digits = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"); }
Symbol 55 Button
on (press) { getURL ("http://www.armorgames.com", "_blank"); }
Symbol 58 MovieClip Frame 1
_root.stop(); gotoAndPlay (2);
Symbol 58 MovieClip Frame 218
_root.gotoAndStop(38);
Symbol 64 MovieClip Frame 1
_root.alpha_true = true;
Symbol 64 MovieClip Frame 22
_root.alpha_true = true;
Symbol 64 MovieClip Frame 51
stop();
Symbol 65 MovieClip Frame 1
stop();
Symbol 149 MovieClip Frame 80
_root.ball1.scan.gotoAndStop(1);
Symbol 214 MovieClip Frame 80
_root.ball1.scan.gotoAndStop(1);
Symbol 279 MovieClip Frame 80
_root.ball1.scan.gotoAndStop(1);
Symbol 344 MovieClip Frame 80
_root.ball1.scan.gotoAndStop(1);
Symbol 409 MovieClip Frame 80
_root.ball1.scan.gotoAndStop(1);
Symbol 474 MovieClip Frame 80
_root.ball1.scan.gotoAndStop(1);
Symbol 539 MovieClip Frame 80
_root.ball1.scan.gotoAndStop(1);
Symbol 604 MovieClip Frame 80
_root.ball1.scan.gotoAndStop(1);
Symbol 669 MovieClip Frame 80
_root.ball1.scan.gotoAndStop(1);
Symbol 674 MovieClip Frame 44
_root.ball1.scan.gotoAndStop(1);
Symbol 675 MovieClip Frame 1
stop();
Symbol 675 MovieClip Frame 2
keysound = true;
Symbol 675 MovieClip Frame 3
keysound = true;
Symbol 675 MovieClip Frame 4
keysound = true;
Symbol 675 MovieClip Frame 5
keysound = true;
Symbol 675 MovieClip Frame 6
keysound = true;
Symbol 675 MovieClip Frame 7
keysound = true;
Symbol 675 MovieClip Frame 8
keysound = true;
Symbol 675 MovieClip Frame 9
keysound = true;
Symbol 675 MovieClip Frame 10
keysound = true;
Symbol 675 MovieClip Frame 11
stop();
Symbol 700 MovieClip Frame 1
stop();
Symbol 744 MovieClip Frame 1
stop();
Symbol 744 MovieClip Frame 2
stop();
Symbol 759 MovieClip Frame 1
ratio = Math.round((dragger._x * 100) / line._width); _root.volume = ratio; this.ratio = 100; dragger.onPress = function () { this.startDrag(true, 0, 0, line._width - 3, 0); this.onEnterFrame = function () { ratio = Math.round((this._x * 100) / line._width); _root.volume = ratio; }; }; dragger.onRelease = (dragger.onReleaseOutside = stopDrag);
Symbol 776 MovieClip Frame 50
stop();
Symbol 777 MovieClip Frame 1
stop();
Symbol 777 MovieClip Frame 2
stop();
Symbol 852 Button
on (release) { if (_root.score >= 1) { _root.gotoAndStop(4); } }
Symbol 853 Button
on (release) { if (_root.score >= 2) { _root.gotoAndStop(5); } }
Symbol 854 Button
on (release) { if (_root.score >= 3) { _root.gotoAndStop(27); } }
Symbol 855 Button
on (release) { if (_root.score >= 4) { _root.gotoAndStop(8); } }
Symbol 856 Button
on (release) { if (_root.score >= 5) { _root.gotoAndStop(9); } }
Symbol 857 Button
on (release) { if (_root.score >= 6) { _root.gotoAndStop(7); } }
Symbol 858 Button
on (release) { if (_root.score >= 7) { _root.gotoAndStop(6); } }
Symbol 859 Button
on (release) { if (_root.score >= 8) { _root.gotoAndStop(12); } }
Symbol 860 Button
on (release) { if (_root.score >= 9) { _root.gotoAndStop(26); } }
Symbol 861 Button
on (release) { if (_root.score >= 10) { _root.gotoAndStop(10); } }
Symbol 862 Button
on (release) { if (_root.score >= 11) { _root.gotoAndStop(20); } }
Symbol 863 Button
on (release) { if (_root.score >= 12) { _root.gotoAndStop(15); } }
Symbol 864 Button
on (release) { if (_root.score >= 13) { _root.gotoAndStop(28); } }
Symbol 865 Button
on (release) { if (_root.score >= 14) { _root.gotoAndStop(23); } }
Symbol 866 Button
on (release) { if (_root.score >= 15) { _root.gotoAndStop(18); } }
Symbol 867 Button
on (release) { if (_root.score >= 16) { _root.gotoAndStop(16); } }
Symbol 868 Button
on (release) { if (_root.score >= 17) { _root.gotoAndStop(21); } }
Symbol 869 Button
on (release) { if (_root.score >= 18) { _root.gotoAndStop(25); } }
Symbol 870 Button
on (release) { if (_root.score >= 19) { _root.gotoAndStop(14); } }
Symbol 871 Button
on (release) { if (_root.score >= 20) { _root.gotoAndStop(22); } }
Symbol 872 Button
on (release) { if (_root.score >= 21) { _root.gotoAndStop(24); } }
Symbol 873 Button
on (release) { if (_root.score >= 22) { _root.gotoAndStop(13); } }
Symbol 874 Button
on (release) { if (_root.score >= 23) { _root.gotoAndStop(19); } }
Symbol 875 Button
on (release) { if (_root.score >= 24) { _root.gotoAndStop(32); } }
Symbol 876 Button
on (release) { if (_root.score >= 25) { _root.gotoAndStop(35); } }
Symbol 877 Button
on (release) { if (_root.score >= 26) { _root.gotoAndStop(34); } }
Symbol 878 Button
on (release) { if (_root.score >= 27) { _root.gotoAndStop(36); } }
Symbol 879 Button
on (release) { if (_root.score >= 28) { _root.gotoAndStop(30); } }
Symbol 880 Button
on (release) { if (_root.score >= 29) { _root.gotoAndStop(33); } }
Symbol 881 Button
on (release) { if (_root.score >= 30) { _root.gotoAndStop(29); } }
Symbol 887 MovieClip Frame 1
stop();
Symbol 887 MovieClip Frame 2
stop();
Symbol 908 MovieClip Frame 1
nextbutton.onRelease = function () { _root.expander.expander2.gotoAndStop(152); };
Symbol 917 MovieClip Frame 1
donebutton.onRelease = function () { _root.expander.expander2.gotoAndPlay(153); };
Symbol 919 MovieClip Frame 61
stop();
Symbol 919 MovieClip Frame 151
stop();
Symbol 919 MovieClip Frame 152
stop();
Symbol 919 MovieClip Frame 202
_root.you_understand_var = true;
Symbol 919 MovieClip Frame 212
stop(); _root.ball_movement = true; _root.expander.gotoAndStop(1); _root.timeactivator2 = true;
Symbol 920 MovieClip Frame 1
stop();
Symbol 936 MovieClip Frame 120
_root.nextFrame1 = true; stop();
Symbol 937 MovieClip Frame 1
stop();
Symbol 937 MovieClip Frame 2
stop();
Symbol 944 MovieClip Frame 120
stop();
Symbol 945 MovieClip Frame 1
stop();
Symbol 945 MovieClip Frame 2
stop();
Symbol 946 Button
on (release) { getURL ("http://lilleydesign.com", "_blank"); }
Symbol 948 Button
on (release) { getURL ("http://www.newgrounds.com/audio/listen/112527", "_blank"); }
Symbol 949 Button
on (release) { getURL ("http://www.newgrounds.com/audio/listen/174962", "_blank"); }
Symbol 950 Button
on (release) { getURL ("http://www.newgrounds.com/audio/listen/68241", "_blank"); }
Symbol 951 Button
on (release) { getURL ("http://www.newgrounds.com/audio/listen/123607", "_blank"); }
Symbol 952 Button
on (release) { getURL ("http://www.newgrounds.com/audio/listen/123365", "_blank"); }
Symbol 953 Button
on (release) { getURL ("http://www.newgrounds.com/audio/", "_blank"); }
Symbol 954 Button
on (release) { getURL ("http://lilleydesign.com/tworooms.html", "_blank"); }
Symbol 955 Button
on (release) { getURL ("http://www.cgtextures.com/", "_blank"); }
Symbol 956 Button
on (release) { getURL ("http://www.1001freefonts.com/", "_blank"); }
Symbol 958 Button
on (release) { getURL ("http://armorgames.com/", "_blank"); }
Symbol 977 Button
on (press) { if (_root.ball_movement) { _root.totalRestarts = _root.totalRestarts + 1; _root.restartLevel(); } }
Symbol 979 MovieClip Frame 1
stop();
Symbol 979 MovieClip Frame 2
stop();
Symbol 999 Button
on (release) { getURL ("http://armorgames.com/", "_blank"); }
Symbol 1001 MovieClip Frame 1
stop();
Symbol 1004 MovieClip Frame 1
stop();
Symbol 1013 MovieClip Frame 1
stop();
Symbol 1044 MovieClip Frame 1
stop();
Symbol 1044 MovieClip Frame 2
stop();
Symbol 1071 MovieClip Frame 1
stop();
Symbol 1071 MovieClip Frame 2
stop();
Symbol 1145 Button
on (release) { _root.submitScreen = true; _root.win._x = 5000; _root.win._y = 5000; _root.option9._x = Stage.width / 2; _root.option9._y = Stage.height / 2; }
Symbol 1148 MovieClip Frame 1
stop();
Instance of Symbol 1071 MovieClip "crate4" in Symbol 1148 MovieClip Frame 11
onClipEvent (load) { _root.cant_move_crate4_right_against_middle_wall = false; _root.cant_move_crate4_right_against_orange_wall = false; _root.cant_move_crate4_left_against_orange_wall = false; _root.cant_move_crate4_down_against_orange_wall = false; _root.cant_move_crate4_up_against_orange_wall = false; _root.hit_crate4 = false; _root.orange_wall_and_crate4_leftside_touching = false; _root.crate4_against_orange_wall_boundaries_prevention = false; _root.ball1_is_pushed_by_crate4_is_pushed_by_orange_wall = false; _root.ball1_and_crate4_rightside_touching = false; _root.ball1_and_crate4_leftside_touching = false; _root.ball2_is_pushed_by_crate4_is_pushed_by_orange_wall = false; _root.ball2_and_crate4_rightside_touching = false; _root.ball2_and_crate4_leftside_touching = false; _root.cant_move_crate4_right_against_right_wall = false; _root.cant_move_crate4_left_against_left_wall = false; _root.cant_move_crate4_left_against_middle_wall = false; _root.cant_move_crate4_right_against_green_wall = false; _root.cant_move_crate4_left_against_green_wall = false; _root.cant_move_crate4_down_against_green_wall = false; _root.cant_move_crate4_up_against_green_wall = false; _root.cant_move_crate4_up_against_bluewall2 = false; _root.cant_move_crate4_up_against_middlewall_insidetop = false; _root.cant_move_crate4_down_against_middlewall_insidebottom = false; _root.cant_move_crate4_left_against_midwid = false; _root.cant_move_crate4_up_against_midwid = false; _root.cant_move_crate4_up_against_crate3 = false; _root.cant_move_crate4_left_against_crate3 = false; _root.cant_move_crate4_down_against_crate3 = false; _root.cant_move_crate4_right_against_crate3 = false; _root.cant_move_crate4_up_against_crate5 = false; _root.cant_move_crate4_left_against_crate5 = false; _root.cant_move_crate4_down_against_crate5 = false; _root.cant_move_crate4_right_against_crate5 = false; _root.green_wall_and_crate4_rightside_touching = false; _root.crate4_against_green_wall_boundaries_prevention = false; _root.ball1_is_pushed_by_crate4_is_pushed_by_green_wall = false; _root.ball2_is_pushed_by_crate4_is_pushed_by_green_wall = false; _root.crate4_is_pushed_by_ball1_is_pushed_by_greenwall = false; _root.crate4_is_pushed_by_ball2_is_pushed_by_greenwall = false; _root.crate4_is_pushed_by_green_wall = false; } onClipEvent (enterFrame) { _root.difference_x_orange_with_crate4_left = ((_x - (_width / 2)) - _root.orangewall._x) - (_root.orangewall._width / 2); _root.difference_x_orange_with_crate4_right = ((_root.orangewall._x - (_root.orangewall._width / 2)) - _x) - (_width / 2); _root.difference_y_orange_with_crate4_up = ((_y - (_height / 2)) - _root.orangewall._y) - (_root.orangewall._height / 2); _root.difference_y_orange_with_crate4_down = ((_root.orangewall._y - (_root.orangewall._height / 2)) - _y) - (_height / 2); _root.distance_x_between_orangewall_and_crate4 = Math.abs(_root.orangewall._x - _x); _root.distance_y_between_orangewall_and_crate4 = Math.abs(_root.orangewall._y - _y); _root.distance_y_between_ball1_and_crate4 = Math.abs(_root.ball1._y - _y); _root.difference_x_ball1_with_crate4_rightside = ((_root.ball1._x - _x) - (_width / 2)) - (_root.ball1._width / 2); _root.difference_x_ball1_with_crate4_leftside = ((_x - _root.ball1._x) - (_width / 2)) - (_root.ball1._width / 2); _root.distance_y_between_ball2_and_crate4 = Math.abs(_root.ball2._y - _y); _root.difference_x_ball2_with_crate4_rightside = ((_root.ball2._x - _x) - (_width / 2)) - (_root.ball2._width / 2); _root.difference_x_ball2_with_crate4_leftside = ((_x - _root.ball2._x) - (_width / 2)) - (_root.ball2._width / 2); _root.difference_x_green_with_crate4_left = ((_x - (_width / 2)) - _root.greenwall._x) - (_root.greenwall._width / 2); _root.difference_x_green_with_crate4_right = ((_root.greenwall._x - (_root.greenwall._width / 2)) - _x) - (_width / 2); _root.difference_y_green_with_crate4_up = ((_y - (_height / 2)) - _root.greenwall._y) - (_root.greenwall._height / 2); _root.difference_y_green_with_crate4_down = ((_root.greenwall._y - (_root.greenwall._height / 2)) - _y) - (_height / 2); _root.distance_x_between_greenwall_and_crate4 = Math.abs(_root.greenwall._x - _x); _root.distance_y_between_greenwall_and_crate4 = Math.abs(_root.greenwall._y - _y); _root.difference_x_crate4_leftside_with_lb = ((_x - (_width / 2)) - (_root.lb._width / 2)) - _root.lb._x; _root.difference_x_crate4_leftside_with_bluewall2 = ((_x - (_width / 2)) - (_root.bluewall2._width / 2)) - _root.bluewall2._x; _root.distance_x_between_middlewall_and_crate4 = Math.abs(_root.middlewall._x - _x); _root.difference_y_middlewall_insidebottom_with_crate4_down = ((423.8 - (_root.middlewall.middlewall_insidebottom._height / 2)) - (_height / 2)) - _y; _root.difference_y_middlewall_insidetop_with_crate4_up = (_y - 194) - (_height / 2); if (hitTest(_root.orangewall)) { _root.orangewall_crate4_hit = true; if ((_root.hit_crate4 == true) and (_root.moveright == true)) { if ((_root.crate4_against_orange_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate4_is_pushed_by_orange_wall == false)) { _x = (_x - ((getBounds(_root).xMax - _root.orangewall.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate4_right_against_orange_wall = true; } } if ((_root.hit_crate4 == true) and (_root.moveleft == true)) { if ((_root.crate4_against_orange_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate4_is_pushed_by_orange_wall == false)) { _x = (_x - ((getBounds(_root).xMin - _root.orangewall.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate4_left_against_orange_wall = true; } } if ((_root.hit_crate4 == true) and (_root.movedown == true)) { if ((_root.crate4_against_orange_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate4_is_pushed_by_orange_wall == false)) { _y = (_y - ((getBounds(_root).yMax - _root.orangewall.getBounds(_root).yMin) + 0.1)); } _root.cant_move_crate4_down_against_orange_wall = true; } if ((_root.hit_crate4 == true) and (_root.moveup == true)) { if ((_root.crate4_against_orange_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate4_is_pushed_by_orange_wall == false)) { _y = (_y - ((getBounds(_root).yMin - _root.orangewall.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate4_up_against_orange_wall = true; } } } else { _root.orangewall_crate4_hit = false; } if (((_root.difference_x_orange_with_crate4_left <= 0.3) && (_root.difference_x_orange_with_crate4_left >= -8)) && (_root.distance_y_between_orangewall_and_crate4 < ((_height / 2) + (_root.orangewall._height / 2)))) { _root.cant_move_crate4_left_against_orange_wall = true; _root.cant_move_crate4_left_against_middle_wall = true; _root.cant_move_crate4_left_against_green_wall = true; _root.cant_move_crate4_left_against_left_wall = true; _root.orange_wall_and_crate4_leftside_touching = true; } else { _root.cant_move_crate4_left_against_orange_wall = false; _root.orange_wall_and_crate4_leftside_touching = false; } if ((((_root.orangewall_movement == true) and (_root.orange_wall_and_crate4_leftside_touching == true)) and (_root.distance_y_between_orangewall_and_crate4 < ((_height / 2) + (_root.orangewall._height / 2)))) and (_currentframe == 1)) { _x = (((_root.orangewall._x + (_root.orangewall._width / 2)) + (_width / 2)) + 0.7); _root.crate4_is_pushed_by_orange_wall = true; } if (((_root.difference_x_ball1_with_crate4_rightside <= 1.5) && (_root.difference_x_ball1_with_crate4_rightside >= -8)) && (_root.distance_y_between_ball1_and_crate4 < ((_height / 2) + (_root.ball1._height / 2)))) { _root.ball1_and_crate4_rightside_touching = true; } else { _root.ball1_and_crate4_rightside_touching = false; } if (((_root.difference_x_ball2_with_crate4_rightside <= 0.3) && (_root.difference_x_ball2_with_crate4_rightside >= -8)) && (_root.distance_y_between_ball2_and_crate4 < ((_height / 2) + (_root.ball2._height / 2)))) { _root.ball2_and_crate4_rightside_touching = true; } else { _root.ball2_and_crate4_rightside_touching = false; } if ((((_root.ball1_and_crate4_rightside_touching == true) and (_root.crate4_is_pushed_by_orange_wall == true)) and (_root.distance_y_between_orangewall_and_crate4 < ((_height / 2) + (_root.orangewall._height / 2)))) and (_root.distance_y_between_ball1_and_crate4 < ((_height / 2) + (_root.ball1._height / 2)))) { _root.ball1._x = (((_root.orangewall._x + (_root.orangewall._width / 2)) + _width) + (_root.ball1._width / 2)) + 0.5; _root.ball1_is_pushed_by_crate4_is_pushed_by_orange_wall = true; } else { _root.ball1_is_pushed_by_crate4_is_pushed_by_orange_wall = false; } if ((((_root.ball2_and_crate4_rightside_touching == true) and (_root.crate4_is_pushed_by_orange_wall == true)) and (_root.distance_y_between_orangewall_and_crate4 < ((_height / 2) + (_root.orangewall._height / 2)))) and (_root.distance_y_between_ball2_and_crate4 < ((_height / 2) + (_root.ball2._height / 2)))) { _root.ball2._x = (((_root.orangewall._x + (_root.orangewall._width / 2)) + _width) + (_root.ball2._width / 2)) + 0.5; _root.ball2_is_pushed_by_crate4_is_pushed_by_orange_wall = true; } else { _root.ball2_is_pushed_by_crate4_is_pushed_by_orange_wall = false; } if (((_root.difference_x_ball1_with_crate4_leftside <= 0.3) && (_root.difference_x_ball1_with_crate4_leftside >= -8)) && (_root.distance_y_between_ball1_and_crate4 < ((_height / 2) + (_root.ball1._height / 2)))) { _root.ball1_and_crate4_leftside_touching = true; } else { _root.ball1_and_crate4_leftside_touching = false; } if (((_root.difference_x_ball2_with_crate4_leftside <= 0.3) && (_root.difference_x_ball2_with_crate4_leftside >= -8)) && (_root.distance_y_between_ball2_and_crate4 < ((_height / 2) + (_root.ball2._height / 2)))) { _root.ball2_and_crate4_leftside_touching = true; } else { _root.ball2_and_crate4_leftside_touching = false; } if (((((_root.ball1_and_crate4_leftside_touching == true) and (_root.ball1_is_pushed_by_orange_wall == true)) and (_root.distance_y_between_ball1_and_crate4 < ((_height / 2) + (_root.ball1._height / 2)))) and (_root.moveright == false)) and (_currentframe == 1)) { _x = (((_root.ball1._x + (_root.ball1._width / 2)) + (_width / 2)) + 0.5); } if ((((_root.ball2_and_crate4_leftside_touching == true) and (_root.ball2_is_pushed_by_orange_wall == true)) and (_root.distance_y_between_ball2_and_crate4 < ((_height / 2) + (_root.ball2._height / 2)))) and (_root.moveright == false)) { _x = (((_root.ball2._x + (_root.ball2._width / 2)) + (_width / 2)) + 0.5); } if ((_root.distance_y_between_orangewall_and_crate4 < ((_height / 2) + (_root.orangewall._height / 2))) && (_root.orangewall_movement == true)) { _root.crate4_against_orange_wall_boundaries_prevention = true; } else { _root.crate4_against_orange_wall_boundaries_prevention = false; } if (((_root.difference_x_orange_with_crate4_right <= 0.3) && (_root.difference_x_orange_with_crate4_right >= -8)) && (_root.distance_y_between_orangewall_and_crate4 < ((_height / 2) + (_root.orangewall._height / 2)))) { _root.cant_move_crate4_right_against_orange_wall = true; _root.cant_move_crate4_right_against_middlewall = true; _root.cant_move_crate4_right_against_green_wall = true; _root.cant_move_crate4_right_against_right_wall = true; } else { _root.cant_move_crate4_right_against_orange_wall = false; } if (_root.crate4_against_orange_wall_boundaries_prevention == false) { if (((_root.difference_y_orange_with_crate4_up <= 0.3) && (_root.difference_y_orange_with_crate4_up >= -8)) && (_root.distance_x_between_orangewall_and_crate4 < ((_width / 2) + (_root.orangewall._width / 2)))) { _root.cant_move_crate4_up_against_orange_wall = true; _root.cant_move_crate4_up_against_top_wall = true; _root.cant_move_crate4_up_against_green_wall = true; _root.cant_move_crate4_up_against_middlewall_insidetop = true; } else { _root.cant_move_crate4_up_against_orange_wall = false; } if (((_root.difference_y_orange_with_crate4_down <= 0.3) && (_root.difference_y_orange_with_crate4_down >= -8)) && (_root.distance_x_between_orangewall_and_crate4 < ((_width / 2) + (_root.orangewall._width / 2)))) { _root.cant_move_crate4_down_against_orange_wall = true; _root.cant_move_crate4_down_against_bottom_wall = true; _root.cant_move_crate4_down_against_green_wall = true; _root.cant_move_crate4_down_against_middlewall_insidebottom = true; } else { _root.cant_move_crate4_down_against_orange_wall = false; } } else if ((((_root.distance_y_between_orangewall_and_crate4 < ((_height / 2) + (_root.orangewall._height / 2))) && (_root.distance_y_between_ball1_and_crate4 < ((_height / 2) + (_root.ball1._height / 2)))) and (_root.difference_x_ball1_with_crate4_rightside <= 0.3)) && (_root.difference_x_ball1_with_crate4_rightside >= -8)) { _root.cant_move_crate4_down_against_orange_wall = true; _root.cant_move_crate4_up_against_orange_wall = true; _root.cant_move_crate4_left_against_orange_wall = true; _root.cant_move_crate4_right_against_orange_wall = true; } else { _root.cant_move_crate4_down_against_orange_wall = false; _root.cant_move_crate4_up_against_orange_wall = false; } if (((((_root.difference_x_ball1_with_crate4_rightside <= 0.5) && (_root.difference_x_ball1_with_crate4_rightside >= -3)) && (_root.distance_between_leftmiddlewall_and_ball <= 0.5)) && (_root.distance_y_between_ball1_and_crate4 < ((_root.ball1._height / 2) + (_height / 2)))) or ((((_root.difference_x_ball2_with_crate4_rightside <= 0.5) && (_root.difference_x_ball2_with_crate4_rightside >= -3)) && (_root.distance_between_leftmiddlewall_and_ball2 <= 0.5)) && (_root.distance_y_between_ball2_and_crate4 < ((_root.ball2._height / 2) + (_height / 2))))) { _root.ball1._x = 2000; _root.ball2._x = 2000; _root.ball_location = false; _root.ball_locator(); _root.orange_hit = true; } if (hitTest(_root.middlewall.middlewall_insidetop) and (_root.moveleft == true)) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.middlewall_insidetop.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate4_left_against_middle_wall = true; } if (((((_x - _root.middlewall._x) - (_root.middlewall._width / 2)) - (_width / 2)) <= 0.3) and (_y < 209.9)) { _root.cant_move_crate4_left_against_middle_wall = true; _root.cant_move_crate4_left_against_orange_wall = true; _root.cant_move_crate4_left_against_green_wall = true; _root.cant_move_crate4_left_against_left_wall = true; } else { _root.cant_move_crate4_left_against_middle_wall = false; } if (hitTest(_root.leftwall)) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate4_left_against_left_wall = true; } if ((((_x - _root.leftwall._x) - (_root.leftwall._width / 2)) - (_width / 2)) <= 0.3) { _root.cant_move_crate4_left_against_left_wall = true; _root.cant_move_crate4_left_against_orange_wall = true; _root.cant_move_crate4_left_against_green_wall = true; _root.cant_move_crate4_left_against_middle_wall = true; } else { _root.cant_move_crate4_left_against_left_wall = false; } if (hitTest(_root.midwid) and (_root.moveleft == true)) { _x = (_x - ((getBounds(_root).xMin - _root.midwid.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate4_left_against_midwid = true; } if (((Math.abs(((_x - _root.midwid._x) - (_root.midwid._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.midwid._y + (_root.midwid._height / 2)) + (_height / 2)))) and (_y > ((_root.midwid._y - (_root.midwid._height / 2)) - (_height / 2)))) { _root.cant_move_crate4_left_against_midwid = true; } else { _root.cant_move_crate4_left_against_midwid = false; } if (hitTest(_root.midwid) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.midwid.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate4_up_against_midwid = true; } if (((Math.abs(((_y - _root.midwid._y) - (_root.midwid._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.midwid._x + (_root.midwid._width / 2)) + (_width / 2)))) and (_x > ((_root.midwid._x - (_root.midwid._width / 2)) - (_width / 2)))) { _root.cant_move_crate4_up_against_midwid = true; } else { _root.cant_move_crate4_up_against_midwid = false; } if (hitTest(_root.rightwall)) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate4_right_against_right_wall = true; } if ((((_root.rightwall._x - _x) - (_root.rightwall._width / 2)) - (_width / 2)) <= 0.3) { _root.cant_move_crate4_right_against_right_wall = true; _root.cant_move_crate4_right_against_orange_wall = true; _root.cant_move_crate4_right_against_green_wall = true; _root.cant_move_crate4_right_against_middle_wall = true; } else { _root.cant_move_crate4_right_against_right_wall = false; } if (hitTest(_root.topwall)) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate4_up_against_top_wall = true; } if ((((_y - _root.topwall._y) - (_root.topwall._height / 2)) - (_height / 2)) <= 0.3) { _root.cant_move_crate4_up_against_top_wall = true; _root.cant_move_crate4_up_against_orange_wall = true; _root.cant_move_crate4_up_against_green_wall = true; } else { _root.cant_move_crate4_up_against_top_wall = false; } if (hitTest(_root.bluewall2)) { _y = (_y - ((getBounds(_root).yMin - _root.bluewall2.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate4_up_against_bluewall2 = true; } if ((((_y - _root.bluewall2._y) - (_root.bluewall2._height / 2)) - (_height / 2)) <= 0.3) { _root.cant_move_crate4_up_against_bluewall2 = true; _root.cant_move_crate4_up_against_orange_wall = true; _root.cant_move_crate4_up_against_green_wall = true; } else { _root.cant_move_crate4_up_against_bluewall2 = false; } if (hitTest(_root.bottomwall)) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate4_down_against_bottom_wall = true; } if ((((_root.bottomwall._y - _y) - (_root.bottomwall._height / 2)) - (_height / 2)) <= 0.3) { _root.cant_move_crate4_down_against_bottom_wall = true; _root.cant_move_crate4_down_against_orange_wall = true; _root.cant_move_crate4_down_against_green_wall = true; } else { _root.cant_move_crate4_down_against_bottom_wall = false; } if (hitTest(_root.middlewall.middlewall_insidetop) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall.middlewall_insidetop.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate4_up_against_middlewall_insidetop = true; } if (((_root.difference_y_middlewall_insidetop_with_crate4_up <= 0.3) && (_root.difference_y_middlewall_insidetop_with_crate4_up >= -8)) && (_root.distance_x_between_middlewall_and_crate4 < ((_width / 2) + (_root.middlewall._width / 2)))) { _root.cant_move_crate4_up_against_middlewall_insidetop = true; _root.cant_move_crate4_up_against_orange_wall = true; _root.cant_move_crate4_up_against_green_wall = true; _root.cant_move_crate4_up_against_top_wall = true; } else { _root.cant_move_crate4_up_against_middlewall_insidetop = false; } if (_root.hit_crate4_2) { if (hitTest(_root.crate3) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.crate3.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate4_up_against_crate3 = true; } if ((((((_y - _root.crate3._y) - (_root.crate3._height / 2)) - (_height / 2)) <= 0.3) and ((((_y - _root.crate3._y) - (_root.crate3._height / 2)) - (_height / 2)) >= 0)) and (Math.abs(_root.crate3._x - _x) < ((_width / 2) + (_root.crate3._width / 2)))) { _root.cant_move_crate4_up_against_crate3 = true; _root.cant_move_crate4_up_against_top_wall = true; _root.cant_move_crate4_up_against_orange_wall = true; _root.cant_move_crate4_up_against_green_wall = true; } else { _root.cant_move_crate4_up_against_crate3 = false; } if (hitTest(_root.crate3) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.crate3.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate4_down_against_crate3 = true; } if ((((((_root.crate3._y - _y) - (_root.crate3._height / 2)) - (_height / 2)) <= 0.3) and ((((_root.crate3._y - _y) - (_root.crate3._height / 2)) - (_height / 2)) >= 0)) and (Math.abs(_root.crate3._x - _x) < ((_width / 2) + (_root.crate3._width / 2)))) { _root.cant_move_crate4_down_against_crate3 = true; _root.cant_move_crate4_down_against_bottom_wall = true; _root.cant_move_crate4_down_against_orange_wall = true; _root.cant_move_crate4_down_against_green_wall = true; } else { _root.cant_move_crate4_down_against_crate3 = false; } if (hitTest(_root.crate3) and (_root.moveleft == true)) { _x = (_x - ((getBounds(_root).xMin - _root.crate3.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate4_left_against_crate3 = true; } if ((((((_x - _root.crate3._x) - (_root.crate3._width / 2)) - (_width / 2)) <= 0.3) and ((((_x - _root.crate3._x) - (_root.crate3._width / 2)) - (_width / 2)) >= 0)) and (Math.abs(_root.crate3._y - _y) < ((_height / 2) + (_root.crate3._height / 2)))) { _root.cant_move_crate4_left_against_crate3 = true; _root.cant_move_crate4_left_against_left_wall = true; _root.cant_move_crate4_left_against_orange_wall = true; _root.cant_move_crate4_left_against_green_wall = true; _root.cant_move_crate4_left_against_middle_wall = true; } else { _root.cant_move_crate4_left_against_crate3 = false; } if (hitTest(_root.crate3) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.crate3.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate4_right_against_crate3 = true; } if ((((((_root.crate3._x - _x) - (_root.crate3._width / 2)) - (_width / 2)) <= 0.3) and ((((_root.crate3._x - _x) - (_root.crate3._width / 2)) - (_width / 2)) >= 0)) and (Math.abs(_root.crate3._y - _y) < ((_height / 2) + (_root.crate3._height / 2)))) { _root.cant_move_crate4_right_against_crate3 = true; _root.cant_move_crate4_right_against_right_wall = true; _root.cant_move_crate4_right_against_orange_wall = true; _root.cant_move_crate4_right_against_green_wall = true; _root.cant_move_crate4_right_against_middle_wall = true; } else { _root.cant_move_crate4_right_against_crate3 = false; } if (hitTest(_root.crate5) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.crate5.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate4_up_against_crate5 = true; } if ((((((_y - _root.crate5._y) - (_root.crate5._height / 2)) - (_height / 2)) <= 0.3) and ((((_y - _root.crate5._y) - (_root.crate5._height / 2)) - (_height / 2)) >= 0)) and (Math.abs(_root.crate5._x - _x) < ((_width / 2) + (_root.crate5._width / 2)))) { _root.cant_move_crate4_up_against_crate5 = true; _root.cant_move_crate4_up_against_top_wall = true; _root.cant_move_crate4_up_against_orange_wall = true; _root.cant_move_crate4_up_against_green_wall = true; } else { _root.cant_move_crate4_up_against_crate5 = false; } if (hitTest(_root.crate5) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.crate5.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate4_down_against_crate5 = true; } if ((((((_root.crate5._y - _y) - (_root.crate5._height / 2)) - (_height / 2)) <= 0.3) and ((((_root.crate5._y - _y) - (_root.crate5._height / 2)) - (_height / 2)) >= 0)) and (Math.abs(_root.crate5._x - _x) < ((_width / 2) + (_root.crate5._width / 2)))) { _root.cant_move_crate4_down_against_crate5 = true; _root.cant_move_crate4_down_against_bottom_wall = true; _root.cant_move_crate4_down_against_orange_wall = true; _root.cant_move_crate4_down_against_green_wall = true; } else { _root.cant_move_crate4_down_against_crate5 = false; } if (hitTest(_root.crate5) and (_root.moveleft == true)) { _x = (_x - ((getBounds(_root).xMin - _root.crate5.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate4_left_against_crate5 = true; } if ((((((_x - _root.crate5._x) - (_root.crate5._width / 2)) - (_width / 2)) <= 0.3) and ((((_x - _root.crate5._x) - (_root.crate5._width / 2)) - (_width / 2)) >= 0)) and (Math.abs(_root.crate5._y - _y) < ((_height / 2) + (_root.crate5._height / 2)))) { _root.cant_move_crate4_left_against_crate5 = true; _root.cant_move_crate4_left_against_left_wall = true; _root.cant_move_crate4_left_against_orange_wall = true; _root.cant_move_crate4_left_against_green_wall = true; _root.cant_move_crate4_left_against_middle_wall = true; } else { _root.cant_move_crate4_left_against_crate5 = false; } if (hitTest(_root.crate5) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.crate5.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate4_right_against_crate5 = true; } if ((((((_root.crate5._x - _x) - (_root.crate5._width / 2)) - (_width / 2)) <= 0.3) and ((((_root.crate5._x - _x) - (_root.crate5._width / 2)) - (_width / 2)) >= 0)) and (Math.abs(_root.crate5._y - _y) < ((_height / 2) + (_root.crate5._height / 2)))) { _root.cant_move_crate4_right_against_crate5 = true; _root.cant_move_crate4_right_against_right_wall = true; _root.cant_move_crate4_right_against_orange_wall = true; _root.cant_move_crate4_right_against_green_wall = true; _root.cant_move_crate4_right_against_middle_wall = true; } else { _root.cant_move_crate4_right_against_crate5 = false; } } if (hitTest(_root.greenwall)) { _root.greenwall_crate4_hit = true; if ((_root.hit_crate4 == true) and (_root.moveright == true)) { if ((_root.crate4_against_green_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate4_is_pushed_by_green_wall == false)) { _x = (_x - ((getBounds(_root).xMax - _root.greenwall.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate4_right_against_green_wall = true; } } if ((_root.hit_crate4 == true) and (_root.moveleft == true)) { if ((_root.crate4_against_green_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate4_is_pushed_by_green_wall == false)) { _x = (_x - ((getBounds(_root).xMin - _root.greenwall.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate4_left_against_green_wall = true; } } if ((_root.hit_crate4 == true) and (_root.movedown == true)) { if ((_root.crate4_against_green_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate4_is_pushed_by_green_wall == false)) { _y = (_y - ((getBounds(_root).yMax - _root.greenwall.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate4_down_against_green_wall = true; } } if ((_root.hit_crate4 == true) and (_root.moveup == true)) { if ((_root.crate4_against_green_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate4_is_pushed_by_green_wall == false)) { _y = (_y - ((getBounds(_root).yMin - _root.greenwall.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate4_up_against_green_wall = true; } } } else { _root.greenwall_crate4_hit = false; } if (((_root.difference_x_green_with_crate4_right <= 0.3) && (_root.difference_x_green_with_crate4_right >= -8)) && (_root.distance_y_between_greenwall_and_crate4 < ((_height / 2) + (_root.greenwall._height / 2)))) { _root.cant_move_crate4_right_against_green_wall = true; _root.cant_move_crate4_right_against_middle_wall = true; _root.cant_move_crate4_right_against_orange_wall = true; _root.cant_move_crate4_right_against_right_wall = true; _root.green_wall_and_crate4_rightside_touching = true; } else { _root.cant_move_crate4_right_against_green_wall = false; _root.green_wall_and_crate4_rightside_touching = false; } if ((((_root.greenwall_movement == true) and (_root.green_wall_and_crate4_rightside_touching == true)) and (_root.distance_y_between_greenwall_and_crate4 < ((_height / 2) + (_root.greenwall._height / 2)))) and (_currentframe == 1)) { _x = (((_root.greenwall._x - (_root.greenwall._width / 2)) - (_width / 2)) - 0.7); _root.crate4_is_pushed_by_green_wall = true; } if (((_root.difference_x_ball1_with_crate4_leftside <= 0.3) && (_root.difference_x_ball1_with_crate4_leftside >= -8)) && (_root.distance_y_between_ball1_and_crate4 < ((_height / 2) + (_root.ball1._height / 2)))) { _root.ball1_and_crate4_leftside_touching = true; } else { _root.ball1_and_crate4_leftside_touching = false; } if (((_root.difference_x_ball2_with_crate4_leftside <= 0.3) && (_root.difference_x_ball2_with_crate4_leftside >= -8)) && (_root.distance_y_between_ball2_and_crate4 < ((_height / 2) + (_root.ball2._height / 2)))) { _root.ball2_and_crate4_leftside_touching = true; } else { _root.ball2_and_crate4_leftside_touching = false; } if (((((_root.ball1_and_crate4_leftside_touching == true) and (_root.crate4_is_pushed_by_green_wall == true)) and (_root.distance_y_between_greenwall_and_crate4 < ((_height / 2) + (_root.greenwall._height / 2)))) and (_root.distance_y_between_ball1_and_crate4 < ((_height / 2) + (_root.ball1._height / 2)))) and (_root.greenwall_movement == true)) { _root.ball1._x = (((_root.greenwall._x - (_root.greenwall._width / 2)) - _width) - (_root.ball1._width / 2)) - 0.5; _root.ball1_is_pushed_by_crate4_is_pushed_by_green_wall = true; } else { _root.ball1_is_pushed_by_crate4_is_pushed_by_green_wall = false; } if ((((_root.ball2_and_crate4_leftside_touching == true) and (_root.crate4_is_pushed_by_green_wall == true)) and (_root.distance_y_between_greenwall_and_crate4 < ((_height / 2) + (_root.greenwall._height / 2)))) and (_root.distance_y_between_ball2_and_crate4 < ((_height / 2) + (_root.ball2._height / 2)))) { _root.ball2._x = (((_root.greenwall._x - (_root.greenwall._width / 2)) - _width) - (_root.ball2._width / 2)) - 0.5; _root.ball2_is_pushed_by_crate4_is_pushed_by_green_wall = true; } else { _root.ball2_is_pushed_by_crate4_is_pushed_by_green_wall = false; } if (((((_root.ball1_and_crate4_rightside_touching == true) and (_root.ball1_is_pushed_by_green_wall == true)) and (_root.distance_y_between_ball1_and_crate4 < ((_height / 2) + (_root.ball1._height / 2)))) and (_root.moveleft == false)) and (_currentframe == 1)) { _root.cant_move_crate4_right_against_green_wall = false; _x = (((_root.ball1._x - (_root.ball1._width / 2)) - (_width / 2)) - 0.5); _root.crate4_is_pushed_by_ball1_is_pushed_by_greenwall = true; } else { _root.crate4_is_pushed_by_ball1_is_pushed_by_greenwall = false; } if ((((_root.ball2_and_crate4_rightside_touching == true) and (_root.ball2_is_pushed_by_green_wall == true)) and (_root.distance_y_between_ball2_and_crate4 < ((_height / 2) + (_root.ball2._height / 2)))) and (_root.moveleft == false)) { _x = (((_root.ball2._x - (_root.ball2._width / 2)) - (_width / 2)) - 0.5); _root.crate4_is_pushed_by_ball2_is_pushed_by_greenwall = true; } else { _root.crate4_is_pushed_by_ball2_is_pushed_by_greenwall = false; } if ((_root.distance_y_between_greenwall_and_crate4 < ((_height / 2) + (_root.greenwall._height / 2))) and (_root.greenwall_movement == true)) { _root.crate4_against_green_wall_boundaries_prevention = true; } else { _root.crate4_against_green_wall_boundaries_prevention = false; } if (((_root.distance_y_between_greenwall_and_crate4 < ((_height / 2) + (_root.greenwall._height / 2))) and (_root.distance_y_between_greenwall_and_ball <= ((_root.ball1._height / 2) + (_root.greenwall._height / 2)))) and (_root.greenwall_movement == true)) { _root.crate4_against_green_wall_boundaries_prevention2 = true; } else { _root.crate4_against_green_wall_boundaries_prevention2 = false; } if (((_root.difference_x_green_with_crate4_left <= 0.3) && (_root.difference_x_green_with_crate4_left >= -8)) && (_root.distance_y_between_greenwall_and_crate4 < ((_height / 2) + (_root.greenwall._height / 2)))) { _root.cant_move_crate4_left_against_green_wall = true; _root.cant_move_crate4_left_against_middlewall = true; _root.cant_move_crate4_left_against_orange_wall = true; _root.cant_move_crate4_left_against_left_wall = true; } else { _root.cant_move_crate4_left_against_green_wall = false; } if (_root.crate4_against_green_wall_boundaries_prevention == false) { if (((_root.difference_y_green_with_crate4_up <= 0.3) && (_root.difference_y_green_with_crate4_up >= -8)) && (_root.distance_x_between_greenwall_and_crate4 < ((_width / 2) + (_root.greenwall._width / 2)))) { _root.cant_move_crate4_up_against_green_wall = true; _root.cant_move_crate4_up_against_top_wall = true; _root.cant_move_crate4_up_against_orange_wall = true; _root.cant_move_crate4_up_against_middlewall_insidetop = true; } else { _root.cant_move_crate4_up_against_green_wall = false; } if (((_root.difference_y_green_with_crate4_down <= 0.3) && (_root.difference_y_green_with_crate4_down >= -8)) && (_root.distance_x_between_greenwall_and_crate4 < ((_width / 2) + (_root.greenwall._width / 2)))) { _root.cant_move_crate4_down_against_green_wall = true; _root.cant_move_crate4_down_against_bottom_wall = true; _root.cant_move_crate4_down_against_orange_wall = true; _root.cant_move_crate4_down_against_middlewall_insidebottom = true; } else { _root.cant_move_crate4_down_against_green_wall = false; } } else if ((((_root.distance_y_between_greenwall_and_crate4 < ((_height / 2) + (_root.greenwall._height / 2))) && (_root.distance_y_between_ball1_and_crate4 < ((_height / 2) + (_root.ball1._height / 2)))) and (_root.difference_x_ball1_with_crate4_leftside <= 0.3)) && (_root.difference_x_ball1_with_crate4_leftside >= -8)) { _root.cant_move_crate4_down_against_green_wall = true; _root.cant_move_crate4_up_against_green_wall = true; _root.cant_move_crate4_left_against_green_wall = true; _root.cant_move_crate4_right_against_green_wall = true; } else { _root.cant_move_crate4_down_against_green_wall = false; _root.cant_move_crate4_up_against_green_wall = false; } if (((_root.greenwall_movement == true) and ((((_root.difference_x_ball1_with_crate4_leftside <= 0.7) && (_root.difference_x_ball1_with_crate4_leftside >= -6)) && (_root.distance_between_rightmiddlewall_and_ball <= 0.5)) && (_root.distance_y_between_ball1_and_crate4 < ((_root.ball1._height / 2) + (_height / 2))))) or ((((_root.difference_x_ball2_with_crate4_leftside <= 0.5) && (_root.difference_x_ball2_with_crate4_leftside >= -3)) && (_root.distance_between_rightmiddlewall_and_ball2 <= 0.5)) && (_root.distance_y_between_ball2_and_crate4 < ((_root.ball2._height / 2) + (_height / 2))))) { _root.ball_location = false; _root.green_hit_right = true; _root.ball1._x = 2000; _root.ball2._x = 2000; _root.cant_move_crate4_up_against_green_wall = false; _root.cant_move_crate4_down_against_green_wall = false; trace("pooppp"); } if (((_root.greenwall_movement == true) and ((((_root.difference_x_ball1_with_crate4_leftside <= 0.7) && (_root.difference_x_ball1_with_crate4_leftside >= -6)) && (_root.distance_between_lb_and_ball <= 0.5)) && (_root.distance_y_between_ball1_and_crate4 < ((_root.ball1._height / 2) + (_height / 2))))) or ((((_root.difference_x_ball2_with_crate4_leftside <= 0.5) && (_root.difference_x_ball2_with_crate4_leftside >= -3)) && (_root.distance_between_lb_and_ball2 <= 0.5)) && (_root.distance_y_between_ball2_and_crate4 < ((_root.ball2._height / 2) + (_height / 2))))) { _root.ball_location = false; _root.green_hit_left = true; _root.ball1._x = 2000; _root.ball2._x = 2000; _root.cant_move_crate4_up_against_green_wall = false; _root.cant_move_crate4_down_against_green_wall = false; trace("pooppp"); } if ((((_root.difference_x_crate4_leftside_with_lb <= 0.3) && (_root.difference_x_crate4_leftside_with_lb >= -8)) or (((_root.difference_x_crate4_leftside_with_bluewall2 <= 1) && (_root.difference_x_crate4_leftside_with_bluewall2 >= -8)) && (_y < 426.1))) && (((_root.crate4_is_pushed_by_green_wall == true) or (_root.crate4_is_pushed_by_ball1_is_pushed_by_greenwall == true)) or (_root.crate4_is_pushed_by_ball2_is_pushed_by_greenwall == true))) { gotoAndStop (2); _root.greenwall_movement = false; } }
Symbol 1176 MovieClip Frame 1
stop();
Instance of Symbol 1071 MovieClip "crate4" in Symbol 1176 MovieClip Frame 11
onClipEvent (load) { _root.cant_move_crate4_right_against_middle_wall = false; _root.cant_move_crate4_right_against_orange_wall = false; _root.cant_move_crate4_left_against_orange_wall = false; _root.cant_move_crate4_down_against_orange_wall = false; _root.cant_move_crate4_up_against_orange_wall = false; _root.hit_crate4 = false; _root.orange_wall_and_crate4_leftside_touching = false; _root.crate4_against_orange_wall_boundaries_prevention = false; _root.ball1_is_pushed_by_crate4_is_pushed_by_orange_wall = false; _root.ball1_and_crate4_rightside_touching = false; _root.ball1_and_crate4_leftside_touching = false; _root.ball2_is_pushed_by_crate4_is_pushed_by_orange_wall = false; _root.ball2_and_crate4_rightside_touching = false; _root.ball2_and_crate4_leftside_touching = false; _root.cant_move_crate4_right_against_right_wall = false; _root.cant_move_crate4_left_against_left_wall = false; _root.cant_move_crate4_left_against_middle_wall = false; _root.cant_move_crate4_right_against_green_wall = false; _root.cant_move_crate4_left_against_green_wall = false; _root.cant_move_crate4_down_against_green_wall = false; _root.cant_move_crate4_up_against_green_wall = false; _root.cant_move_crate4_up_against_bluewall2 = false; _root.cant_move_crate4_up_against_middlewall_insidetop = false; _root.cant_move_crate4_down_against_middlewall_insidebottom = false; _root.cant_move_crate4_left_against_midwid = false; _root.cant_move_crate4_up_against_midwid = false; _root.cant_move_crate4_up_against_crate3 = false; _root.cant_move_crate4_left_against_crate3 = false; _root.cant_move_crate4_down_against_crate3 = false; _root.cant_move_crate4_right_against_crate3 = false; _root.cant_move_crate4_up_against_crate5 = false; _root.cant_move_crate4_left_against_crate5 = false; _root.cant_move_crate4_down_against_crate5 = false; _root.cant_move_crate4_right_against_crate5 = false; _root.green_wall_and_crate4_rightside_touching = false; _root.crate4_against_green_wall_boundaries_prevention = false; _root.ball1_is_pushed_by_crate4_is_pushed_by_green_wall = false; _root.ball2_is_pushed_by_crate4_is_pushed_by_green_wall = false; _root.crate4_is_pushed_by_ball1_is_pushed_by_greenwall = false; _root.crate4_is_pushed_by_ball2_is_pushed_by_greenwall = false; _root.crate4_is_pushed_by_green_wall = false; } onClipEvent (enterFrame) { _root.difference_x_orange_with_crate4_left = ((_x - (_width / 2)) - _root.orangewall._x) - (_root.orangewall._width / 2); _root.difference_x_orange_with_crate4_right = ((_root.orangewall._x - (_root.orangewall._width / 2)) - _x) - (_width / 2); _root.difference_y_orange_with_crate4_up = ((_y - (_height / 2)) - _root.orangewall._y) - (_root.orangewall._height / 2); _root.difference_y_orange_with_crate4_down = ((_root.orangewall._y - (_root.orangewall._height / 2)) - _y) - (_height / 2); _root.distance_x_between_orangewall_and_crate4 = Math.abs(_root.orangewall._x - _x); _root.distance_y_between_orangewall_and_crate4 = Math.abs(_root.orangewall._y - _y); _root.distance_y_between_ball1_and_crate4 = Math.abs(_root.ball1._y - _y); _root.difference_x_ball1_with_crate4_rightside = ((_root.ball1._x - _x) - (_width / 2)) - (_root.ball1._width / 2); _root.difference_x_ball1_with_crate4_leftside = ((_x - _root.ball1._x) - (_width / 2)) - (_root.ball1._width / 2); _root.distance_y_between_ball2_and_crate4 = Math.abs(_root.ball2._y - _y); _root.difference_x_ball2_with_crate4_rightside = ((_root.ball2._x - _x) - (_width / 2)) - (_root.ball2._width / 2); _root.difference_x_ball2_with_crate4_leftside = ((_x - _root.ball2._x) - (_width / 2)) - (_root.ball2._width / 2); _root.difference_x_green_with_crate4_left = ((_x - (_width / 2)) - _root.greenwall._x) - (_root.greenwall._width / 2); _root.difference_x_green_with_crate4_right = ((_root.greenwall._x - (_root.greenwall._width / 2)) - _x) - (_width / 2); _root.difference_y_green_with_crate4_up = ((_y - (_height / 2)) - _root.greenwall._y) - (_root.greenwall._height / 2); _root.difference_y_green_with_crate4_down = ((_root.greenwall._y - (_root.greenwall._height / 2)) - _y) - (_height / 2); _root.distance_x_between_greenwall_and_crate4 = Math.abs(_root.greenwall._x - _x); _root.distance_y_between_greenwall_and_crate4 = Math.abs(_root.greenwall._y - _y); _root.difference_x_crate4_leftside_with_lb = ((_x - (_width / 2)) - (_root.lb._width / 2)) - _root.lb._x; _root.difference_x_crate4_leftside_with_bluewall2 = ((_x - (_width / 2)) - (_root.bluewall2._width / 2)) - _root.bluewall2._x; _root.distance_x_between_middlewall_and_crate4 = Math.abs(_root.middlewall._x - _x); _root.difference_y_middlewall_insidebottom_with_crate4_down = ((423.8 - (_root.middlewall.middlewall_insidebottom._height / 2)) - (_height / 2)) - _y; _root.difference_y_middlewall_insidetop_with_crate4_up = (_y - 194) - (_height / 2); if (hitTest(_root.orangewall)) { _root.orangewall_crate4_hit = true; if ((_root.hit_crate4 == true) and (_root.moveright == true)) { if ((_root.crate4_against_orange_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate4_is_pushed_by_orange_wall == false)) { _x = (_x - ((getBounds(_root).xMax - _root.orangewall.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate4_right_against_orange_wall = true; } } if ((_root.hit_crate4 == true) and (_root.moveleft == true)) { if ((_root.crate4_against_orange_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate4_is_pushed_by_orange_wall == false)) { _x = (_x - ((getBounds(_root).xMin - _root.orangewall.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate4_left_against_orange_wall = true; } } if ((_root.hit_crate4 == true) and (_root.movedown == true)) { if ((_root.crate4_against_orange_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate4_is_pushed_by_orange_wall == false)) { _y = (_y - ((getBounds(_root).yMax - _root.orangewall.getBounds(_root).yMin) + 0.1)); } _root.cant_move_crate4_down_against_orange_wall = true; } if ((_root.hit_crate4 == true) and (_root.moveup == true)) { if ((_root.crate4_against_orange_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate4_is_pushed_by_orange_wall == false)) { _y = (_y - ((getBounds(_root).yMin - _root.orangewall.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate4_up_against_orange_wall = true; } } } else { _root.orangewall_crate4_hit = false; } if (((_root.difference_x_orange_with_crate4_left <= 0.3) && (_root.difference_x_orange_with_crate4_left >= -8)) && (_root.distance_y_between_orangewall_and_crate4 < ((_height / 2) + (_root.orangewall._height / 2)))) { _root.cant_move_crate4_left_against_orange_wall = true; _root.cant_move_crate4_left_against_middle_wall = true; _root.cant_move_crate4_left_against_green_wall = true; _root.cant_move_crate4_left_against_left_wall = true; _root.orange_wall_and_crate4_leftside_touching = true; } else { _root.cant_move_crate4_left_against_orange_wall = false; _root.orange_wall_and_crate4_leftside_touching = false; } if ((((_root.orangewall_movement == true) and (_root.orange_wall_and_crate4_leftside_touching == true)) and (_root.distance_y_between_orangewall_and_crate4 < ((_height / 2) + (_root.orangewall._height / 2)))) and (_currentframe == 1)) { _x = (((_root.orangewall._x + (_root.orangewall._width / 2)) + (_width / 2)) + 0.7); _root.crate4_is_pushed_by_orange_wall = true; } if (((_root.difference_x_ball1_with_crate4_rightside <= 1.5) && (_root.difference_x_ball1_with_crate4_rightside >= -8)) && (_root.distance_y_between_ball1_and_crate4 < ((_height / 2) + (_root.ball1._height / 2)))) { _root.ball1_and_crate4_rightside_touching = true; } else { _root.ball1_and_crate4_rightside_touching = false; } if (((_root.difference_x_ball2_with_crate4_rightside <= 0.3) && (_root.difference_x_ball2_with_crate4_rightside >= -8)) && (_root.distance_y_between_ball2_and_crate4 < ((_height / 2) + (_root.ball2._height / 2)))) { _root.ball2_and_crate4_rightside_touching = true; } else { _root.ball2_and_crate4_rightside_touching = false; } if ((((_root.ball1_and_crate4_rightside_touching == true) and (_root.crate4_is_pushed_by_orange_wall == true)) and (_root.distance_y_between_orangewall_and_crate4 < ((_height / 2) + (_root.orangewall._height / 2)))) and (_root.distance_y_between_ball1_and_crate4 < ((_height / 2) + (_root.ball1._height / 2)))) { _root.ball1._x = (((_root.orangewall._x + (_root.orangewall._width / 2)) + _width) + (_root.ball1._width / 2)) + 0.5; _root.ball1_is_pushed_by_crate4_is_pushed_by_orange_wall = true; } else { _root.ball1_is_pushed_by_crate4_is_pushed_by_orange_wall = false; } if ((((_root.ball2_and_crate4_rightside_touching == true) and (_root.crate4_is_pushed_by_orange_wall == true)) and (_root.distance_y_between_orangewall_and_crate4 < ((_height / 2) + (_root.orangewall._height / 2)))) and (_root.distance_y_between_ball2_and_crate4 < ((_height / 2) + (_root.ball2._height / 2)))) { _root.ball2._x = (((_root.orangewall._x + (_root.orangewall._width / 2)) + _width) + (_root.ball2._width / 2)) + 0.5; _root.ball2_is_pushed_by_crate4_is_pushed_by_orange_wall = true; } else { _root.ball2_is_pushed_by_crate4_is_pushed_by_orange_wall = false; } if (((_root.difference_x_ball1_with_crate4_leftside <= 0.3) && (_root.difference_x_ball1_with_crate4_leftside >= -8)) && (_root.distance_y_between_ball1_and_crate4 < ((_height / 2) + (_root.ball1._height / 2)))) { _root.ball1_and_crate4_leftside_touching = true; } else { _root.ball1_and_crate4_leftside_touching = false; } if (((_root.difference_x_ball2_with_crate4_leftside <= 0.3) && (_root.difference_x_ball2_with_crate4_leftside >= -8)) && (_root.distance_y_between_ball2_and_crate4 < ((_height / 2) + (_root.ball2._height / 2)))) { _root.ball2_and_crate4_leftside_touching = true; } else { _root.ball2_and_crate4_leftside_touching = false; } if (((((_root.ball1_and_crate4_leftside_touching == true) and (_root.ball1_is_pushed_by_orange_wall == true)) and (_root.distance_y_between_ball1_and_crate4 < ((_height / 2) + (_root.ball1._height / 2)))) and (_root.moveright == false)) and (_currentframe == 1)) { _x = (((_root.ball1._x + (_root.ball1._width / 2)) + (_width / 2)) + 0.5); } if ((((_root.ball2_and_crate4_leftside_touching == true) and (_root.ball2_is_pushed_by_orange_wall == true)) and (_root.distance_y_between_ball2_and_crate4 < ((_height / 2) + (_root.ball2._height / 2)))) and (_root.moveright == false)) { _x = (((_root.ball2._x + (_root.ball2._width / 2)) + (_width / 2)) + 0.5); } if ((_root.distance_y_between_orangewall_and_crate4 < ((_height / 2) + (_root.orangewall._height / 2))) && (_root.orangewall_movement == true)) { _root.crate4_against_orange_wall_boundaries_prevention = true; } else { _root.crate4_against_orange_wall_boundaries_prevention = false; } if (((_root.difference_x_orange_with_crate4_right <= 0.3) && (_root.difference_x_orange_with_crate4_right >= -8)) && (_root.distance_y_between_orangewall_and_crate4 < ((_height / 2) + (_root.orangewall._height / 2)))) { _root.cant_move_crate4_right_against_orange_wall = true; _root.cant_move_crate4_right_against_middlewall = true; _root.cant_move_crate4_right_against_green_wall = true; _root.cant_move_crate4_right_against_right_wall = true; } else { _root.cant_move_crate4_right_against_orange_wall = false; } if (_root.crate4_against_orange_wall_boundaries_prevention == false) { if (((_root.difference_y_orange_with_crate4_up <= 0.3) && (_root.difference_y_orange_with_crate4_up >= -8)) && (_root.distance_x_between_orangewall_and_crate4 < ((_width / 2) + (_root.orangewall._width / 2)))) { _root.cant_move_crate4_up_against_orange_wall = true; _root.cant_move_crate4_up_against_top_wall = true; _root.cant_move_crate4_up_against_green_wall = true; _root.cant_move_crate4_up_against_middlewall_insidetop = true; } else { _root.cant_move_crate4_up_against_orange_wall = false; } if (((_root.difference_y_orange_with_crate4_down <= 0.3) && (_root.difference_y_orange_with_crate4_down >= -8)) && (_root.distance_x_between_orangewall_and_crate4 < ((_width / 2) + (_root.orangewall._width / 2)))) { _root.cant_move_crate4_down_against_orange_wall = true; _root.cant_move_crate4_down_against_bottom_wall = true; _root.cant_move_crate4_down_against_green_wall = true; _root.cant_move_crate4_down_against_middlewall_insidebottom = true; } else { _root.cant_move_crate4_down_against_orange_wall = false; } } else if ((((_root.distance_y_between_orangewall_and_crate4 < ((_height / 2) + (_root.orangewall._height / 2))) && (_root.distance_y_between_ball1_and_crate4 < ((_height / 2) + (_root.ball1._height / 2)))) and (_root.difference_x_ball1_with_crate4_rightside <= 0.3)) && (_root.difference_x_ball1_with_crate4_rightside >= -8)) { _root.cant_move_crate4_down_against_orange_wall = true; _root.cant_move_crate4_up_against_orange_wall = true; _root.cant_move_crate4_left_against_orange_wall = true; _root.cant_move_crate4_right_against_orange_wall = true; } else { _root.cant_move_crate4_down_against_orange_wall = false; _root.cant_move_crate4_up_against_orange_wall = false; } if (((((_root.difference_x_ball1_with_crate4_rightside <= 0.5) && (_root.difference_x_ball1_with_crate4_rightside >= -3)) && (_root.distance_between_leftmiddlewall_and_ball <= 0.5)) && (_root.distance_y_between_ball1_and_crate4 < ((_root.ball1._height / 2) + (_height / 2)))) or ((((_root.difference_x_ball2_with_crate4_rightside <= 0.5) && (_root.difference_x_ball2_with_crate4_rightside >= -3)) && (_root.distance_between_leftmiddlewall_and_ball2 <= 0.5)) && (_root.distance_y_between_ball2_and_crate4 < ((_root.ball2._height / 2) + (_height / 2))))) { _root.ball1._x = 2000; _root.ball2._x = 2000; _root.ball_location = false; _root.ball_locator(); _root.orange_hit = true; } if (hitTest(_root.middlewall.middlewall_insidetop) and (_root.moveleft == true)) { _x = (_x - ((getBounds(_root).xMin - _root.middlewall.middlewall_insidetop.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate4_left_against_middle_wall = true; } if (((((_x - _root.middlewall._x) - (_root.middlewall._width / 2)) - (_width / 2)) <= 0.3) and (_y < 209.9)) { _root.cant_move_crate4_left_against_middle_wall = true; _root.cant_move_crate4_left_against_orange_wall = true; _root.cant_move_crate4_left_against_green_wall = true; _root.cant_move_crate4_left_against_left_wall = true; } else { _root.cant_move_crate4_left_against_middle_wall = false; } if (hitTest(_root.leftwall)) { _x = (_x - ((getBounds(_root).xMin - _root.leftwall.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate4_left_against_left_wall = true; } if ((((_x - _root.leftwall._x) - (_root.leftwall._width / 2)) - (_width / 2)) <= 0.3) { _root.cant_move_crate4_left_against_left_wall = true; _root.cant_move_crate4_left_against_orange_wall = true; _root.cant_move_crate4_left_against_green_wall = true; _root.cant_move_crate4_left_against_middle_wall = true; } else { _root.cant_move_crate4_left_against_left_wall = false; } if (hitTest(_root.midwid) and (_root.moveleft == true)) { _x = (_x - ((getBounds(_root).xMin - _root.midwid.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate4_left_against_midwid = true; } if (((Math.abs(((_x - _root.midwid._x) - (_root.midwid._width / 2)) - (_width / 2)) <= 0.3) and (_y < ((_root.midwid._y + (_root.midwid._height / 2)) + (_height / 2)))) and (_y > ((_root.midwid._y - (_root.midwid._height / 2)) - (_height / 2)))) { _root.cant_move_crate4_left_against_midwid = true; } else { _root.cant_move_crate4_left_against_midwid = false; } if (hitTest(_root.midwid) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.midwid.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate4_up_against_midwid = true; } if (((Math.abs(((_y - _root.midwid._y) - (_root.midwid._height / 2)) - (_height / 2)) <= 0.3) and (_x < ((_root.midwid._x + (_root.midwid._width / 2)) + (_width / 2)))) and (_x > ((_root.midwid._x - (_root.midwid._width / 2)) - (_width / 2)))) { _root.cant_move_crate4_up_against_midwid = true; } else { _root.cant_move_crate4_up_against_midwid = false; } if (hitTest(_root.rightwall)) { _x = (_x - ((getBounds(_root).xMax - _root.rightwall.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate4_right_against_right_wall = true; } if ((((_root.rightwall._x - _x) - (_root.rightwall._width / 2)) - (_width / 2)) <= 0.3) { _root.cant_move_crate4_right_against_right_wall = true; _root.cant_move_crate4_right_against_orange_wall = true; _root.cant_move_crate4_right_against_green_wall = true; _root.cant_move_crate4_right_against_middle_wall = true; } else { _root.cant_move_crate4_right_against_right_wall = false; } if (hitTest(_root.topwall)) { _y = (_y - ((getBounds(_root).yMin - _root.topwall.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate4_up_against_top_wall = true; } if ((((_y - _root.topwall._y) - (_root.topwall._height / 2)) - (_height / 2)) <= 0.3) { _root.cant_move_crate4_up_against_top_wall = true; _root.cant_move_crate4_up_against_orange_wall = true; _root.cant_move_crate4_up_against_green_wall = true; } else { _root.cant_move_crate4_up_against_top_wall = false; } if (hitTest(_root.bluewall2)) { _y = (_y - ((getBounds(_root).yMin - _root.bluewall2.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate4_up_against_bluewall2 = true; } if ((((_y - _root.bluewall2._y) - (_root.bluewall2._height / 2)) - (_height / 2)) <= 0.3) { _root.cant_move_crate4_up_against_bluewall2 = true; _root.cant_move_crate4_up_against_orange_wall = true; _root.cant_move_crate4_up_against_green_wall = true; } else { _root.cant_move_crate4_up_against_bluewall2 = false; } if (hitTest(_root.bottomwall)) { _y = (_y - ((getBounds(_root).yMax - _root.bottomwall.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate4_down_against_bottom_wall = true; } if ((((_root.bottomwall._y - _y) - (_root.bottomwall._height / 2)) - (_height / 2)) <= 0.3) { _root.cant_move_crate4_down_against_bottom_wall = true; _root.cant_move_crate4_down_against_orange_wall = true; _root.cant_move_crate4_down_against_green_wall = true; } else { _root.cant_move_crate4_down_against_bottom_wall = false; } if (hitTest(_root.middlewall.middlewall_insidetop) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.middlewall.middlewall_insidetop.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate4_up_against_middlewall_insidetop = true; } if (((_root.difference_y_middlewall_insidetop_with_crate4_up <= 0.3) && (_root.difference_y_middlewall_insidetop_with_crate4_up >= -8)) && (_root.distance_x_between_middlewall_and_crate4 < ((_width / 2) + (_root.middlewall._width / 2)))) { _root.cant_move_crate4_up_against_middlewall_insidetop = true; _root.cant_move_crate4_up_against_orange_wall = true; _root.cant_move_crate4_up_against_green_wall = true; _root.cant_move_crate4_up_against_top_wall = true; } else { _root.cant_move_crate4_up_against_middlewall_insidetop = false; } if (_root.hit_crate4_2) { if (hitTest(_root.crate3) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.crate3.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate4_up_against_crate3 = true; } if ((((((_y - _root.crate3._y) - (_root.crate3._height / 2)) - (_height / 2)) <= 0.3) and ((((_y - _root.crate3._y) - (_root.crate3._height / 2)) - (_height / 2)) >= 0)) and (Math.abs(_root.crate3._x - _x) < ((_width / 2) + (_root.crate3._width / 2)))) { _root.cant_move_crate4_up_against_crate3 = true; _root.cant_move_crate4_up_against_top_wall = true; _root.cant_move_crate4_up_against_orange_wall = true; _root.cant_move_crate4_up_against_green_wall = true; } else { _root.cant_move_crate4_up_against_crate3 = false; } if (hitTest(_root.crate3) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.crate3.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate4_down_against_crate3 = true; } if ((((((_root.crate3._y - _y) - (_root.crate3._height / 2)) - (_height / 2)) <= 0.3) and ((((_root.crate3._y - _y) - (_root.crate3._height / 2)) - (_height / 2)) >= 0)) and (Math.abs(_root.crate3._x - _x) < ((_width / 2) + (_root.crate3._width / 2)))) { _root.cant_move_crate4_down_against_crate3 = true; _root.cant_move_crate4_down_against_bottom_wall = true; _root.cant_move_crate4_down_against_orange_wall = true; _root.cant_move_crate4_down_against_green_wall = true; } else { _root.cant_move_crate4_down_against_crate3 = false; } if (hitTest(_root.crate3) and (_root.moveleft == true)) { _x = (_x - ((getBounds(_root).xMin - _root.crate3.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate4_left_against_crate3 = true; } if ((((((_x - _root.crate3._x) - (_root.crate3._width / 2)) - (_width / 2)) <= 0.3) and ((((_x - _root.crate3._x) - (_root.crate3._width / 2)) - (_width / 2)) >= 0)) and (Math.abs(_root.crate3._y - _y) < ((_height / 2) + (_root.crate3._height / 2)))) { _root.cant_move_crate4_left_against_crate3 = true; _root.cant_move_crate4_left_against_left_wall = true; _root.cant_move_crate4_left_against_orange_wall = true; _root.cant_move_crate4_left_against_green_wall = true; _root.cant_move_crate4_left_against_middle_wall = true; } else { _root.cant_move_crate4_left_against_crate3 = false; } if (hitTest(_root.crate3) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.crate3.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate4_right_against_crate3 = true; } if ((((((_root.crate3._x - _x) - (_root.crate3._width / 2)) - (_width / 2)) <= 0.3) and ((((_root.crate3._x - _x) - (_root.crate3._width / 2)) - (_width / 2)) >= 0)) and (Math.abs(_root.crate3._y - _y) < ((_height / 2) + (_root.crate3._height / 2)))) { _root.cant_move_crate4_right_against_crate3 = true; _root.cant_move_crate4_right_against_right_wall = true; _root.cant_move_crate4_right_against_orange_wall = true; _root.cant_move_crate4_right_against_green_wall = true; _root.cant_move_crate4_right_against_middle_wall = true; } else { _root.cant_move_crate4_right_against_crate3 = false; } if (hitTest(_root.crate5) and (_root.moveup == true)) { _y = (_y - ((getBounds(_root).yMin - _root.crate5.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate4_up_against_crate5 = true; } if ((((((_y - _root.crate5._y) - (_root.crate5._height / 2)) - (_height / 2)) <= 0.3) and ((((_y - _root.crate5._y) - (_root.crate5._height / 2)) - (_height / 2)) >= 0)) and (Math.abs(_root.crate5._x - _x) < ((_width / 2) + (_root.crate5._width / 2)))) { _root.cant_move_crate4_up_against_crate5 = true; _root.cant_move_crate4_up_against_top_wall = true; _root.cant_move_crate4_up_against_orange_wall = true; _root.cant_move_crate4_up_against_green_wall = true; } else { _root.cant_move_crate4_up_against_crate5 = false; } if (hitTest(_root.crate5) and (_root.movedown == true)) { _y = (_y - ((getBounds(_root).yMax - _root.crate5.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate4_down_against_crate5 = true; } if ((((((_root.crate5._y - _y) - (_root.crate5._height / 2)) - (_height / 2)) <= 0.3) and ((((_root.crate5._y - _y) - (_root.crate5._height / 2)) - (_height / 2)) >= 0)) and (Math.abs(_root.crate5._x - _x) < ((_width / 2) + (_root.crate5._width / 2)))) { _root.cant_move_crate4_down_against_crate5 = true; _root.cant_move_crate4_down_against_bottom_wall = true; _root.cant_move_crate4_down_against_orange_wall = true; _root.cant_move_crate4_down_against_green_wall = true; } else { _root.cant_move_crate4_down_against_crate5 = false; } if (hitTest(_root.crate5) and (_root.moveleft == true)) { _x = (_x - ((getBounds(_root).xMin - _root.crate5.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate4_left_against_crate5 = true; } if ((((((_x - _root.crate5._x) - (_root.crate5._width / 2)) - (_width / 2)) <= 0.3) and ((((_x - _root.crate5._x) - (_root.crate5._width / 2)) - (_width / 2)) >= 0)) and (Math.abs(_root.crate5._y - _y) < ((_height / 2) + (_root.crate5._height / 2)))) { _root.cant_move_crate4_left_against_crate5 = true; _root.cant_move_crate4_left_against_left_wall = true; _root.cant_move_crate4_left_against_orange_wall = true; _root.cant_move_crate4_left_against_green_wall = true; _root.cant_move_crate4_left_against_middle_wall = true; } else { _root.cant_move_crate4_left_against_crate5 = false; } if (hitTest(_root.crate5) and (_root.moveright == true)) { _x = (_x - ((getBounds(_root).xMax - _root.crate5.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate4_right_against_crate5 = true; } if ((((((_root.crate5._x - _x) - (_root.crate5._width / 2)) - (_width / 2)) <= 0.3) and ((((_root.crate5._x - _x) - (_root.crate5._width / 2)) - (_width / 2)) >= 0)) and (Math.abs(_root.crate5._y - _y) < ((_height / 2) + (_root.crate5._height / 2)))) { _root.cant_move_crate4_right_against_crate5 = true; _root.cant_move_crate4_right_against_right_wall = true; _root.cant_move_crate4_right_against_orange_wall = true; _root.cant_move_crate4_right_against_green_wall = true; _root.cant_move_crate4_right_against_middle_wall = true; } else { _root.cant_move_crate4_right_against_crate5 = false; } } if (hitTest(_root.greenwall)) { _root.greenwall_crate4_hit = true; if ((_root.hit_crate4 == true) and (_root.moveright == true)) { if ((_root.crate4_against_green_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate4_is_pushed_by_green_wall == false)) { _x = (_x - ((getBounds(_root).xMax - _root.greenwall.getBounds(_root).xMin) + 0.1)); _root.cant_move_crate4_right_against_green_wall = true; } } if ((_root.hit_crate4 == true) and (_root.moveleft == true)) { if ((_root.crate4_against_green_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate4_is_pushed_by_green_wall == false)) { _x = (_x - ((getBounds(_root).xMin - _root.greenwall.getBounds(_root).xMax) - 0.1)); _root.cant_move_crate4_left_against_green_wall = true; } } if ((_root.hit_crate4 == true) and (_root.movedown == true)) { if ((_root.crate4_against_green_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate4_is_pushed_by_green_wall == false)) { _y = (_y - ((getBounds(_root).yMax - _root.greenwall.getBounds(_root).yMin) + 0.1)); _root.cant_move_crate4_down_against_green_wall = true; } } if ((_root.hit_crate4 == true) and (_root.moveup == true)) { if ((_root.crate4_against_green_wall_boundaries_prevention == false) and (_root.ball1_is_pushed_by_crate4_is_pushed_by_green_wall == false)) { _y = (_y - ((getBounds(_root).yMin - _root.greenwall.getBounds(_root).yMax) - 0.1)); _root.cant_move_crate4_up_against_green_wall = true; } } } else { _root.greenwall_crate4_hit = false; } if (((_root.difference_x_green_with_crate4_right <= 0.3) && (_root.difference_x_green_with_crate4_right >= -8)) && (_root.distance_y_between_greenwall_and_crate4 < ((_height / 2) + (_root.greenwall._height / 2)))) { _root.cant_move_crate4_right_against_green_wall = true; _root.cant_move_crate4_right_against_middle_wall = true; _root.cant_move_crate4_right_against_orange_wall = true; _root.cant_move_crate4_right_against_right_wall = true; _root.green_wall_and_crate4_rightside_touching = true; } else { _root.cant_move_crate4_right_against_green_wall = false; _root.green_wall_and_crate4_rightside_touching = false; } if ((((_root.greenwall_movement == true) and (_root.green_wall_and_crate4_rightside_touching == true)) and (_root.distance_y_between_greenwall_and_crate4 < ((_height / 2) + (_root.greenwall._height / 2)))) and (_currentframe == 1)) { _x = (((_root.greenwall._x - (_root.greenwall._width / 2)) - (_width / 2)) - 0.7); _root.crate4_is_pushed_by_green_wall = true; } if (((_root.difference_x_ball1_with_crate4_leftside <= 0.3) && (_root.difference_x_ball1_with_crate4_leftside >= -8)) && (_root.distance_y_between_ball1_and_crate4 < ((_height / 2) + (_root.ball1._height / 2)))) { _root.ball1_and_crate4_leftside_touching = true; } else { _root.ball1_and_crate4_leftside_touching = false; } if (((_root.difference_x_ball2_with_crate4_leftside <= 0.3) && (_root.difference_x_ball2_with_crate4_leftside >= -8)) && (_root.distance_y_between_ball2_and_crate4 < ((_height / 2) + (_root.ball2._height / 2)))) { _root.ball2_and_crate4_leftside_touching = true; } else { _root.ball2_and_crate4_leftside_touching = false; } if (((((_root.ball1_and_crate4_leftside_touching == true) and (_root.crate4_is_pushed_by_green_wall == true)) and (_root.distance_y_between_greenwall_and_crate4 < ((_height / 2) + (_root.greenwall._height / 2)))) and (_root.distance_y_between_ball1_and_crate4 < ((_height / 2) + (_root.ball1._height / 2)))) and (_root.greenwall_movement == true)) { _root.ball1._x = (((_root.greenwall._x - (_root.greenwall._width / 2)) - _width) - (_root.ball1._width / 2)) - 0.5; _root.ball1_is_pushed_by_crate4_is_pushed_by_green_wall = true; } else { _root.ball1_is_pushed_by_crate4_is_pushed_by_green_wall = false; } if ((((_root.ball2_and_crate4_leftside_touching == true) and (_root.crate4_is_pushed_by_green_wall == true)) and (_root.distance_y_between_greenwall_and_crate4 < ((_height / 2) + (_root.greenwall._height / 2)))) and (_root.distance_y_between_ball2_and_crate4 < ((_height / 2) + (_root.ball2._height / 2)))) { _root.ball2._x = (((_root.greenwall._x - (_root.greenwall._width / 2)) - _width) - (_root.ball2._width / 2)) - 0.5; _root.ball2_is_pushed_by_crate4_is_pushed_by_green_wall = true; } else { _root.ball2_is_pushed_by_crate4_is_pushed_by_green_wall = false; } if (((((_root.ball1_and_crate4_rightside_touching == true) and (_root.ball1_is_pushed_by_green_wall == true)) and (_root.distance_y_between_ball1_and_crate4 < ((_height / 2) + (_root.ball1._height / 2)))) and (_root.moveleft == false)) and (_currentframe == 1)) { _root.cant_move_crate4_right_against_green_wall = false; _x = (((_root.ball1._x - (_root.ball1._width / 2)) - (_width / 2)) - 0.5); _root.crate4_is_pushed_by_ball1_is_pushed_by_greenwall = true; } else { _root.crate4_is_pushed_by_ball1_is_pushed_by_greenwall = false; } if ((((_root.ball2_and_crate4_rightside_touching == true) and (_root.ball2_is_pushed_by_green_wall == true)) and (_root.distance_y_between_ball2_and_crate4 < ((_height / 2) + (_root.ball2._height / 2)))) and (_root.moveleft == false)) { _x = (((_root.ball2._x - (_root.ball2._width / 2)) - (_width / 2)) - 0.5); _root.crate4_is_pushed_by_ball2_is_pushed_by_greenwall = true; } else { _root.crate4_is_pushed_by_ball2_is_pushed_by_greenwall = false; } if ((_root.distance_y_between_greenwall_and_crate4 < ((_height / 2) + (_root.greenwall._height / 2))) and (_root.greenwall_movement == true)) { _root.crate4_against_green_wall_boundaries_prevention = true; } else { _root.crate4_against_green_wall_boundaries_prevention = false; } if (((_root.distance_y_between_greenwall_and_crate4 < ((_height / 2) + (_root.greenwall._height / 2))) and (_root.distance_y_between_greenwall_and_ball <= ((_root.ball1._height / 2) + (_root.greenwall._height / 2)))) and (_root.greenwall_movement == true)) { _root.crate4_against_green_wall_boundaries_prevention2 = true; } else { _root.crate4_against_green_wall_boundaries_prevention2 = false; } if (((_root.difference_x_green_with_crate4_left <= 0.3) && (_root.difference_x_green_with_crate4_left >= -8)) && (_root.distance_y_between_greenwall_and_crate4 < ((_height / 2) + (_root.greenwall._height / 2)))) { _root.cant_move_crate4_left_against_green_wall = true; _root.cant_move_crate4_left_against_middlewall = true; _root.cant_move_crate4_left_against_orange_wall = true; _root.cant_move_crate4_left_against_left_wall = true; } else { _root.cant_move_crate4_left_against_green_wall = false; } if (_root.crate4_against_green_wall_boundaries_prevention == false) { if (((_root.difference_y_green_with_crate4_up <= 0.3) && (_root.difference_y_green_with_crate4_up >= -8)) && (_root.distance_x_between_greenwall_and_crate4 < ((_width / 2) + (_root.greenwall._width / 2)))) { _root.cant_move_crate4_up_against_green_wall = true; _root.cant_move_crate4_up_against_top_wall = true; _root.cant_move_crate4_up_against_orange_wall = true; _root.cant_move_crate4_up_against_middlewall_insidetop = true; } else { _root.cant_move_crate4_up_against_green_wall = false; } if (((_root.difference_y_green_with_crate4_down <= 0.3) && (_root.difference_y_green_with_crate4_down >= -8)) && (_root.distance_x_between_greenwall_and_crate4 < ((_width / 2) + (_root.greenwall._width / 2)))) { _root.cant_move_crate4_down_against_green_wall = true; _root.cant_move_crate4_down_against_bottom_wall = true; _root.cant_move_crate4_down_against_orange_wall = true; _root.cant_move_crate4_down_against_middlewall_insidebottom = true; } else { _root.cant_move_crate4_down_against_green_wall = false; } } else if ((((_root.distance_y_between_greenwall_and_crate4 < ((_height / 2) + (_root.greenwall._height / 2))) && (_root.distance_y_between_ball1_and_crate4 < ((_height / 2) + (_root.ball1._height / 2)))) and (_root.difference_x_ball1_with_crate4_leftside <= 0.3)) && (_root.difference_x_ball1_with_crate4_leftside >= -8)) { _root.cant_move_crate4_down_against_green_wall = true; _root.cant_move_crate4_up_against_green_wall = true; _root.cant_move_crate4_left_against_green_wall = true; _root.cant_move_crate4_right_against_green_wall = true; } else { _root.cant_move_crate4_down_against_green_wall = false; _root.cant_move_crate4_up_against_green_wall = false; } if (((_root.greenwall_movement == true) and ((((_root.difference_x_ball1_with_crate4_leftside <= 0.7) && (_root.difference_x_ball1_with_crate4_leftside >= -6)) && (_root.distance_between_rightmiddlewall_and_ball <= 0.5)) && (_root.distance_y_between_ball1_and_crate4 < ((_root.ball1._height / 2) + (_height / 2))))) or ((((_root.difference_x_ball2_with_crate4_leftside <= 0.5) && (_root.difference_x_ball2_with_crate4_leftside >= -3)) && (_root.distance_between_rightmiddlewall_and_ball2 <= 0.5)) && (_root.distance_y_between_ball2_and_crate4 < ((_root.ball2._height / 2) + (_height / 2))))) { _root.ball_location = false; _root.green_hit_right = true; _root.ball1._x = 2000; _root.ball2._x = 2000; _root.cant_move_crate4_up_against_green_wall = false; _root.cant_move_crate4_down_against_green_wall = false; trace("pooppp"); } if (((_root.greenwall_movement == true) and ((((_root.difference_x_ball1_with_crate4_leftside <= 0.7) && (_root.difference_x_ball1_with_crate4_leftside >= -6)) && (_root.distance_between_lb_and_ball <= 0.5)) && (_root.distance_y_between_ball1_and_crate4 < ((_root.ball1._height / 2) + (_height / 2))))) or ((((_root.difference_x_ball2_with_crate4_leftside <= 0.5) && (_root.difference_x_ball2_with_crate4_leftside >= -3)) && (_root.distance_between_lb_and_ball2 <= 0.5)) && (_root.distance_y_between_ball2_and_crate4 < ((_root.ball2._height / 2) + (_height / 2))))) { _root.ball_location = false; _root.green_hit_left = true; _root.ball1._x = 2000; _root.ball2._x = 2000; _root.cant_move_crate4_up_against_green_wall = false; _root.cant_move_crate4_down_against_green_wall = false; trace("pooppp"); } if ((((_root.difference_x_crate4_leftside_with_lb <= 0.3) && (_root.difference_x_crate4_leftside_with_lb >= -8)) or (((_root.difference_x_crate4_leftside_with_bluewall2 <= 1) && (_root.difference_x_crate4_leftside_with_bluewall2 >= -8)) && (_y < 426.1))) && (((_root.crate4_is_pushed_by_green_wall == true) or (_root.crate4_is_pushed_by_ball1_is_pushed_by_greenwall == true)) or (_root.crate4_is_pushed_by_ball2_is_pushed_by_greenwall == true))) { gotoAndStop (2); _root.greenwall_movement = false; } }
Symbol 1206 MovieClip Frame 1
ratio = Math.round((dragger._x * 100) / line._width); _root.volume = ratio; this.ratio = 100; dragger.onPress = function () { this.startDrag(true, 0, 0, line._width - 3, 0); this.onEnterFrame = function () { ratio = Math.round((this._x * 100) / line._width); _root.volume = ratio; }; }; dragger.onRelease = (dragger.onReleaseOutside = stopDrag);
Symbol 1208 MovieClip Frame 1
stop();
Symbol 1208 MovieClip Frame 2
stop();
Symbol 1209 MovieClip Frame 1
stop();
Symbol 1209 MovieClip Frame 2
stop();
Symbol 1243 MovieClip Frame 1
stop();
Symbol 1243 MovieClip Frame 4
stop();
Symbol 1248 MovieClip Frame 1
stop();
Symbol 1248 MovieClip Frame 2
stop();
Symbol 1249 MovieClip Frame 1
stop();
Symbol 1249 MovieClip Frame 2
stop();
Symbol 1255 MovieClip Frame 60
stop();
Symbol 1256 MovieClip Frame 1
stop();
Symbol 1256 MovieClip Frame 2
stop();
Symbol 1257 MovieClip Frame 1
stop();
Symbol 1257 MovieClip Frame 2
stop();
Symbol 1259 MovieClip Frame 1
stop();
Symbol 1259 MovieClip Frame 2
stop();
Symbol 1267 MovieClip Frame 291
gotoAndPlay (1);
Symbol 1285 MovieClip Frame 29
stop();
Symbol 1290 MovieClip Frame 29
_root.decoy2._x = -500;
Symbol 1291 MovieClip Frame 1
stop();
Symbol 1291 MovieClip Frame 2
stop();
Symbol 1291 MovieClip Frame 3
stop();
Symbol 1293 MovieClip Frame 29
_root.decoy._x = -500;
Symbol 1294 MovieClip Frame 29
stop();
Symbol 1295 MovieClip Frame 1
stop();
Symbol 1295 MovieClip Frame 2
stop(); _root.explosionsound = true;
Symbol 1295 MovieClip Frame 3
stop(); _root.explosionsound = true;
Symbol 1304 MovieClip Frame 33
stop();
Symbol 1305 MovieClip Frame 33
stop();
Symbol 1306 MovieClip Frame 1
stop();
Symbol 1306 MovieClip Frame 2
stop();
Symbol 1306 MovieClip Frame 3
stop();
Symbol 1306 MovieClip Frame 4
stop();
Symbol 1308 MovieClip Frame 33
stop();
Symbol 1309 MovieClip Frame 33
stop();
Symbol 1310 MovieClip Frame 1
stop();
Symbol 1310 MovieClip Frame 2
stop();
Symbol 1310 MovieClip Frame 3
stop();
Symbol 1310 MovieClip Frame 4
stop();
Symbol 1432 MovieClip Frame 1
stop();
Symbol 1432 MovieClip Frame 2
stop();
Symbol 1437 MovieClip Frame 1
stop();
Symbol 1437 MovieClip Frame 2
stop();
Symbol 1439 MovieClip Frame 1
stop();
Symbol 1439 MovieClip Frame 2
stop();
Symbol 1480 MovieClip Frame 1
stop();
Symbol 1480 MovieClip Frame 2
stop();
Symbol 1512 MovieClip Frame 1
stop();
Symbol 1512 MovieClip Frame 2
stop();
Symbol 1516 MovieClip Frame 1
stop();
Symbol 1516 MovieClip Frame 2
stop();
Symbol 1519 MovieClip Frame 1
stop();
Symbol 1519 MovieClip Frame 2
stop();
Symbol 1527 MovieClip Frame 1
stop();
Symbol 1527 MovieClip Frame 2
stop();
Symbol 1530 MovieClip Frame 1
stop();
Symbol 1530 MovieClip Frame 2
stop();
Symbol 1533 MovieClip Frame 1
stop();
Symbol 1533 MovieClip Frame 2
stop();
Symbol 1541 MovieClip Frame 1
stop();
Symbol 1541 MovieClip Frame 2
stop();
Symbol 1542 MovieClip Frame 1
stop();
Symbol 1542 MovieClip Frame 2
stop();
Symbol 1664 MovieClip Frame 31
_root.decoy_crate._x = -1000; stop();
Symbol 1665 MovieClip Frame 1
stop();
Symbol 1665 MovieClip Frame 2
stop();
Symbol 1744 MovieClip Frame 60
stop();
Symbol 1745 MovieClip Frame 1
stop();
Symbol 1745 MovieClip Frame 2
stop();
Symbol 1747 MovieClip Frame 1
stop();
Symbol 1747 MovieClip Frame 2
stop();
Symbol 1816 MovieClip Frame 1
stop();
Symbol 1816 MovieClip Frame 2
stop();
Symbol 1842 MovieClip Frame 1
stop();
Symbol 1842 MovieClip Frame 2
stop();
Symbol 1904 MovieClip Frame 291
gotoAndPlay (1);
Symbol 1995 MovieClip Frame 1
stop();
Symbol 1995 MovieClip Frame 2
stop();
Symbol 2048 MovieClip Frame 35
_root.decoy_crate._x = -1000; stop();
Symbol 2049 MovieClip Frame 1
stop();
Symbol 2049 MovieClip Frame 2
stop();
Symbol 2463 MovieClip Frame 1
stop();
Symbol 2463 MovieClip Frame 2
stop();
Symbol 2550 MovieClip Frame 347
_root.gotoAndStop(3);

Library Items

Symbol 1 Sound [wallhit]
Symbol 2 Sound [transport]
Symbol 3 Sound [switch]
Symbol 4 Sound [stop]
Symbol 5 Sound [smallkey]
Symbol 6 Sound [reverse]
Symbol 7 Sound [key]
Symbol 8 Sound [EXPLOSION]
Symbol 9 Sound [crate]Used by:1664 2048
Symbol 10 GraphicUsed by:11
Symbol 11 MovieClip [Circle]Uses:10
Symbol 12 MovieClip [blip]
Symbol 13 BitmapUsed by:14 59 740 1420 1421 1522
Symbol 14 GraphicUses:13Used by:15
Symbol 15 MovieClipUses:14Used by:Timeline
Symbol 16 GraphicUsed by:Timeline
Symbol 17 BitmapUsed by:18 20 26 66 67 80 678 693 697 703 705 707 715 717 734 1009 1025 1080 1082 1094 1098 1108 1279 1313 1314 1321 1323 1325 1350 1378 1380 1423 1424 1426 1433 1441 1443 1460 1535 1537 1539 1545 1555 1556 1559 1562 1565 1568 1571 1573 1575 1607 1623 1624 1628 1631 1632 1640 1642 1644 1649 1651 1653 1674 1675 1677 1686 1692 1710 1712 1718 1720 1731 1882 1887 1888 1890 1892 1894 1896 1898 1924 1926 1930 1958 1959 1961 1965 1977 1979 1981 1985 1987 1989 1991 2061 2070 2072 2093 2097 2174 2229 2231 2233 2235 2237 2239 2241 2243 2249 2294 2296 2297 2306 2315 2350 2352 2355 2357 2368 2370 2372 2375 2377 2379 2381 2385 2413 2448 2452 2454 2499 2501 2503 2506 2509
Symbol 18 GraphicUses:17Used by:19
Symbol 19 MovieClipUses:18Used by:22 23 988 1252  Timeline
Symbol 20 GraphicUses:17Used by:21
Symbol 21 MovieClipUses:20Used by:Timeline
Symbol 22 MovieClipUses:19Used by:Timeline
Symbol 23 MovieClipUses:19Used by:Timeline
Symbol 24 FontUsed by:25 778 896 899 900 901 902 903 965 966 981 1149 1166 1167 1168 1254 1372 2160 2170
Symbol 25 TextUses:24Used by:Timeline
Symbol 26 GraphicUses:17Used by:27
Symbol 27 MovieClipUses:26Used by:Timeline
Symbol 28 GraphicUsed by:29
Symbol 29 MovieClipUses:28Used by:Timeline
Symbol 30 GraphicUsed by:40
Symbol 31 GraphicUsed by:32 40
Symbol 32 MovieClipUses:31Used by:40
Symbol 33 ShapeTweeningUsed by:40
Symbol 34 ShapeTweeningUsed by:40
Symbol 35 GraphicUsed by:40
Symbol 36 FontUsed by:37
Symbol 37 TextUses:36Used by:40
Symbol 38 GraphicUsed by:39
Symbol 39 MovieClipUses:38Used by:40
Symbol 40 MovieClipUses:30 32 31 33 34 35 37 39Used by:41
Symbol 41 MovieClipUses:40Used by:Timeline
Symbol 2554 MovieClip [__Packages.ab3.rankz.Armor_Bot_30_En_AS1]
Symbol 42 GraphicUsed by:Timeline
Symbol 43 GraphicUsed by:58 958
Symbol 44 GraphicUsed by:58 957 958 999
Symbol 45 GraphicUsed by:58 957 958 999
Symbol 46 SoundUsed by:58
Symbol 47 SoundUsed by:58
Symbol 48 GraphicUsed by:58
Symbol 49 GraphicUsed by:50
Symbol 50 MovieClipUses:49Used by:58
Symbol 51 SoundUsed by:58
Symbol 52 SoundUsed by:58
Symbol 53 SoundUsed by:58
Symbol 54 GraphicUsed by:55
Symbol 55 ButtonUses:54Used by:58
Symbol 56 SoundUsed by:58
Symbol 57 SoundUsed by:58
Symbol 58 MovieClipUses:43 44 45 46 47 48 50 51 52 53 55 56 57Used by:Timeline
Symbol 59 GraphicUses:13Used by:60
Symbol 60 MovieClipUses:59Used by:Timeline
Symbol 61 FontUsed by:62 790 791 848 883 962 963 964 1144 1147 1150 1151 1260 1262 2552
Symbol 62 TextUses:61Used by:63
Symbol 63 MovieClipUses:62Used by:64
Symbol 64 MovieClipUses:63Used by:65
Symbol 65 MovieClipUses:64Used by:Timeline
Symbol 66 GraphicUses:17Used by:69
Symbol 67 GraphicUses:17Used by:68
Symbol 68 MovieClipUses:67Used by:69
Symbol 69 MovieClipUses:66 68Used by:70 1119  Timeline
Symbol 70 MovieClipUses:69Used by:73 687 722 724 726 730 1021 1087 1103 1276 1299 1301 1339 1343 1349 1370 1392 1394 1398 1404 1408 1409 1413 1417 1430 1432 1436 1437 1438 1439 1440 1448 1449 1450 1451 1454 1455 1456 1457 1458 1467 1468 1471 1472 1473 1474 1475 1476 1477 1484 1487 1490 1493 1496 1499 1502 1505 1554 1591 1593 1596 1598 1606 1657 1673 1690 1704 1714 1862 1867 1873 1881 1910 1916 1920 1922 1941 1949 1953 1957 1975 1998 2006 2010 2014 2020 2055 2059 2076 2084 2092 2118 2124 2130 2134 2140 2144 2150 2152 2154 2156 2161 2163 2165 2168 2179 2181 2186 2189 2197 2203 2207 2211 2225 2227 2248 2260 2268 2276 2283 2289 2293 2312 2322 2328 2336 2342 2343 2349 2363 2387 2393 2406 2411 2424 2435 2441 2447 2451 2462 2473 2478 2482 2488 2494 2496 2498 2515 2524 2525 2529 2530 2534 2537
Symbol 71 GraphicUsed by:72
Symbol 72 MovieClipUses:71Used by:73 1657 1690 1862 1910 2076 2168 2260 2462 2515
Symbol 73 MovieClipUses:70 72Used by:917  Timeline
Symbol 74 GraphicUsed by:75
Symbol 75 MovieClipUses:74Used by:917  Timeline
Symbol 76 GraphicUsed by:77
Symbol 77 MovieClipUses:76Used by:Timeline
Symbol 78 GraphicUsed by:79
Symbol 79 MovieClipUses:78Used by:Timeline
Symbol 80 GraphicUses:17Used by:81
Symbol 81 MovieClipUses:80Used by:676 916 1255 1256 1257 1277 1278 1283 1284 1292 1297 1298 1311 1312 1374 1375 1541 1542 1550 1551 1917 1918 1996 1997 2077 2078 2172 2173 2182 2195 2196 2313 2314 2464 2517 2518
Symbol 82 GraphicUsed by:83
Symbol 83 MovieClipUses:82Used by:676 916 1255 1256 1257 1277 1278 1283 1284 1292 1297 1298 1311 1312 1374 1375 1541 1542 1550 1551 1917 1918 1996 1997 2077 2078 2172 2173 2182 2195 2196 2313 2314 2464 2517 2518
Symbol 84 GraphicUsed by:149
Symbol 85 GraphicUsed by:149
Symbol 86 GraphicUsed by:149
Symbol 87 GraphicUsed by:149
Symbol 88 GraphicUsed by:149
Symbol 89 GraphicUsed by:149
Symbol 90 GraphicUsed by:149
Symbol 91 GraphicUsed by:149
Symbol 92 GraphicUsed by:149
Symbol 93 GraphicUsed by:149
Symbol 94 GraphicUsed by:149
Symbol 95 GraphicUsed by:149
Symbol 96 GraphicUsed by:149
Symbol 97 GraphicUsed by:149
Symbol 98 GraphicUsed by:149
Symbol 99 GraphicUsed by:149
Symbol 100 GraphicUsed by:149
Symbol 101 GraphicUsed by:149
Symbol 102 GraphicUsed by:149
Symbol 103 GraphicUsed by:149
Symbol 104 GraphicUsed by:149
Symbol 105 GraphicUsed by:149
Symbol 106 GraphicUsed by:149
Symbol 107 GraphicUsed by:149
Symbol 108 GraphicUsed by:149
Symbol 109 GraphicUsed by:149
Symbol 110 GraphicUsed by:149
Symbol 111 GraphicUsed by:149
Symbol 112 GraphicUsed by:149
Symbol 113 GraphicUsed by:149
Symbol 114 GraphicUsed by:149
Symbol 115 GraphicUsed by:149
Symbol 116 GraphicUsed by:149
Symbol 117 GraphicUsed by:149
Symbol 118 GraphicUsed by:149
Symbol 119 GraphicUsed by:149
Symbol 120 GraphicUsed by:149
Symbol 121 GraphicUsed by:149
Symbol 122 GraphicUsed by:149
Symbol 123 GraphicUsed by:149
Symbol 124 GraphicUsed by:149
Symbol 125 GraphicUsed by:149
Symbol 126 GraphicUsed by:149
Symbol 127 GraphicUsed by:149
Symbol 128 GraphicUsed by:149
Symbol 129 GraphicUsed by:149
Symbol 130 GraphicUsed by:149
Symbol 131 GraphicUsed by:149
Symbol 132 GraphicUsed by:149
Symbol 133 GraphicUsed by:149
Symbol 134 GraphicUsed by:149
Symbol 135 GraphicUsed by:149
Symbol 136 GraphicUsed by:149
Symbol 137 GraphicUsed by:149
Symbol 138 GraphicUsed by:149
Symbol 139 GraphicUsed by:149
Symbol 140 GraphicUsed by:149
Symbol 141 GraphicUsed by:149
Symbol 142 GraphicUsed by:149
Symbol 143 GraphicUsed by:149
Symbol 144 GraphicUsed by:149
Symbol 145 GraphicUsed by:149
Symbol 146 GraphicUsed by:149
Symbol 147 GraphicUsed by:149
Symbol 148 GraphicUsed by:149 214 279 344 409 474 539 604 669
Symbol 149 MovieClipUses:84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148Used by:675
Symbol 150 GraphicUsed by:214
Symbol 151 GraphicUsed by:214
Symbol 152 GraphicUsed by:214
Symbol 153 GraphicUsed by:214
Symbol 154 GraphicUsed by:214
Symbol 155 GraphicUsed by:214
Symbol 156 GraphicUsed by:214
Symbol 157 GraphicUsed by:214
Symbol 158 GraphicUsed by:214
Symbol 159 GraphicUsed by:214
Symbol 160 GraphicUsed by:214
Symbol 161 GraphicUsed by:214
Symbol 162 GraphicUsed by:214
Symbol 163 GraphicUsed by:214
Symbol 164 GraphicUsed by:214
Symbol 165 GraphicUsed by:214
Symbol 166 GraphicUsed by:214
Symbol 167 GraphicUsed by:214
Symbol 168 GraphicUsed by:214
Symbol 169 GraphicUsed by:214
Symbol 170 GraphicUsed by:214
Symbol 171 GraphicUsed by:214
Symbol 172 GraphicUsed by:214
Symbol 173 GraphicUsed by:214
Symbol 174 GraphicUsed by:214
Symbol 175 GraphicUsed by:214
Symbol 176 GraphicUsed by:214
Symbol 177 GraphicUsed by:214
Symbol 178 GraphicUsed by:214
Symbol 179 GraphicUsed by:214
Symbol 180 GraphicUsed by:214
Symbol 181 GraphicUsed by:214
Symbol 182 GraphicUsed by:214
Symbol 183 GraphicUsed by:214
Symbol 184 GraphicUsed by:214
Symbol 185 GraphicUsed by:214
Symbol 186 GraphicUsed by:214
Symbol 187 GraphicUsed by:214
Symbol 188 GraphicUsed by:214
Symbol 189 GraphicUsed by:214
Symbol 190 GraphicUsed by:214
Symbol 191 GraphicUsed by:214
Symbol 192 GraphicUsed by:214
Symbol 193 GraphicUsed by:214
Symbol 194 GraphicUsed by:214
Symbol 195 GraphicUsed by:214
Symbol 196 GraphicUsed by:214
Symbol 197 GraphicUsed by:214
Symbol 198 GraphicUsed by:214
Symbol 199 GraphicUsed by:214
Symbol 200 GraphicUsed by:214
Symbol 201 GraphicUsed by:214
Symbol 202 GraphicUsed by:214
Symbol 203 GraphicUsed by:214
Symbol 204 GraphicUsed by:214
Symbol 205 GraphicUsed by:214
Symbol 206 GraphicUsed by:214
Symbol 207 GraphicUsed by:214
Symbol 208 GraphicUsed by:214
Symbol 209 GraphicUsed by:214
Symbol 210 GraphicUsed by:214
Symbol 211 GraphicUsed by:214
Symbol 212 GraphicUsed by:214
Symbol 213 GraphicUsed by:214
Symbol 214 MovieClipUses:150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 148Used by:675
Symbol 215 GraphicUsed by:279
Symbol 216 GraphicUsed by:279
Symbol 217 GraphicUsed by:279
Symbol 218 GraphicUsed by:279
Symbol 219 GraphicUsed by:279
Symbol 220 GraphicUsed by:279
Symbol 221 GraphicUsed by:279
Symbol 222 GraphicUsed by:279
Symbol 223 GraphicUsed by:279
Symbol 224 GraphicUsed by:279
Symbol 225 GraphicUsed by:279
Symbol 226 GraphicUsed by:279
Symbol 227 GraphicUsed by:279
Symbol 228 GraphicUsed by:279
Symbol 229 GraphicUsed by:279
Symbol 230 GraphicUsed by:279
Symbol 231 GraphicUsed by:279
Symbol 232 GraphicUsed by:279
Symbol 233 GraphicUsed by:279
Symbol 234 GraphicUsed by:279
Symbol 235 GraphicUsed by:279
Symbol 236 GraphicUsed by:279
Symbol 237 GraphicUsed by:279
Symbol 238 GraphicUsed by:279
Symbol 239 GraphicUsed by:279
Symbol 240 GraphicUsed by:279
Symbol 241 GraphicUsed by:279
Symbol 242 GraphicUsed by:279
Symbol 243 GraphicUsed by:279
Symbol 244 GraphicUsed by:279
Symbol 245 GraphicUsed by:279
Symbol 246 GraphicUsed by:279
Symbol 247 GraphicUsed by:279
Symbol 248 GraphicUsed by:279
Symbol 249 GraphicUsed by:279
Symbol 250 GraphicUsed by:279
Symbol 251 GraphicUsed by:279
Symbol 252 GraphicUsed by:279
Symbol 253 GraphicUsed by:279
Symbol 254 GraphicUsed by:279
Symbol 255 GraphicUsed by:279
Symbol 256 GraphicUsed by:279
Symbol 257 GraphicUsed by:279
Symbol 258 GraphicUsed by:279
Symbol 259 GraphicUsed by:279
Symbol 260 GraphicUsed by:279
Symbol 261 GraphicUsed by:279
Symbol 262 GraphicUsed by:279
Symbol 263 GraphicUsed by:279
Symbol 264 GraphicUsed by:279
Symbol 265 GraphicUsed by:279
Symbol 266 GraphicUsed by:279
Symbol 267 GraphicUsed by:279
Symbol 268 GraphicUsed by:279
Symbol 269 GraphicUsed by:279
Symbol 270 GraphicUsed by:279
Symbol 271 GraphicUsed by:279
Symbol 272 GraphicUsed by:279
Symbol 273 GraphicUsed by:279
Symbol 274 GraphicUsed by:279
Symbol 275 GraphicUsed by:279
Symbol 276 GraphicUsed by:279
Symbol 277 GraphicUsed by:279
Symbol 278 GraphicUsed by:279
Symbol 279 MovieClipUses:215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 148Used by:675
Symbol 280 GraphicUsed by:344
Symbol 281 GraphicUsed by:344
Symbol 282 GraphicUsed by:344
Symbol 283 GraphicUsed by:344
Symbol 284 GraphicUsed by:344
Symbol 285 GraphicUsed by:344
Symbol 286 GraphicUsed by:344
Symbol 287 GraphicUsed by:344
Symbol 288 GraphicUsed by:344
Symbol 289 GraphicUsed by:344
Symbol 290 GraphicUsed by:344
Symbol 291 GraphicUsed by:344
Symbol 292 GraphicUsed by:344
Symbol 293 GraphicUsed by:344
Symbol 294 GraphicUsed by:344
Symbol 295 GraphicUsed by:344
Symbol 296 GraphicUsed by:344
Symbol 297 GraphicUsed by:344
Symbol 298 GraphicUsed by:344
Symbol 299 GraphicUsed by:344
Symbol 300 GraphicUsed by:344
Symbol 301 GraphicUsed by:344
Symbol 302 GraphicUsed by:344
Symbol 303 GraphicUsed by:344
Symbol 304 GraphicUsed by:344
Symbol 305 GraphicUsed by:344
Symbol 306 GraphicUsed by:344
Symbol 307 GraphicUsed by:344
Symbol 308 GraphicUsed by:344
Symbol 309 GraphicUsed by:344
Symbol 310 GraphicUsed by:344
Symbol 311 GraphicUsed by:344
Symbol 312 GraphicUsed by:344
Symbol 313 GraphicUsed by:344
Symbol 314 GraphicUsed by:344
Symbol 315 GraphicUsed by:344
Symbol 316 GraphicUsed by:344
Symbol 317 GraphicUsed by:344
Symbol 318 GraphicUsed by:344
Symbol 319 GraphicUsed by:344
Symbol 320 GraphicUsed by:344
Symbol 321 GraphicUsed by:344
Symbol 322 GraphicUsed by:344
Symbol 323 GraphicUsed by:344
Symbol 324 GraphicUsed by:344
Symbol 325 GraphicUsed by:344
Symbol 326 GraphicUsed by:344
Symbol 327 GraphicUsed by:344
Symbol 328 GraphicUsed by:344
Symbol 329 GraphicUsed by:344
Symbol 330 GraphicUsed by:344
Symbol 331 GraphicUsed by:344
Symbol 332 GraphicUsed by:344
Symbol 333 GraphicUsed by:344
Symbol 334 GraphicUsed by:344
Symbol 335 GraphicUsed by:344
Symbol 336 GraphicUsed by:344
Symbol 337 GraphicUsed by:344
Symbol 338 GraphicUsed by:344
Symbol 339 GraphicUsed by:344
Symbol 340 GraphicUsed by:344
Symbol 341 GraphicUsed by:344
Symbol 342 GraphicUsed by:344
Symbol 343 GraphicUsed by:344
Symbol 344 MovieClipUses:280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 148Used by:675
Symbol 345 GraphicUsed by:409
Symbol 346 GraphicUsed by:409
Symbol 347 GraphicUsed by:409
Symbol 348 GraphicUsed by:409
Symbol 349 GraphicUsed by:409
Symbol 350 GraphicUsed by:409
Symbol 351 GraphicUsed by:409
Symbol 352 GraphicUsed by:409
Symbol 353 GraphicUsed by:409
Symbol 354 GraphicUsed by:409
Symbol 355 GraphicUsed by:409
Symbol 356 GraphicUsed by:409
Symbol 357 GraphicUsed by:409
Symbol 358 GraphicUsed by:409
Symbol 359 GraphicUsed by:409
Symbol 360 GraphicUsed by:409
Symbol 361 GraphicUsed by:409
Symbol 362 GraphicUsed by:409
Symbol 363 GraphicUsed by:409
Symbol 364 GraphicUsed by:409
Symbol 365 GraphicUsed by:409
Symbol 366 GraphicUsed by:409
Symbol 367 GraphicUsed by:409
Symbol 368 GraphicUsed by:409
Symbol 369 GraphicUsed by:409
Symbol 370 GraphicUsed by:409
Symbol 371 GraphicUsed by:409
Symbol 372 GraphicUsed by:409
Symbol 373 GraphicUsed by:409
Symbol 374 GraphicUsed by:409
Symbol 375 GraphicUsed by:409
Symbol 376 GraphicUsed by:409
Symbol 377 GraphicUsed by:409
Symbol 378 GraphicUsed by:409
Symbol 379 GraphicUsed by:409
Symbol 380 GraphicUsed by:409
Symbol 381 GraphicUsed by:409
Symbol 382 GraphicUsed by:409
Symbol 383 GraphicUsed by:409
Symbol 384 GraphicUsed by:409
Symbol 385 GraphicUsed by:409
Symbol 386 GraphicUsed by:409
Symbol 387 GraphicUsed by:409
Symbol 388 GraphicUsed by:409
Symbol 389 GraphicUsed by:409
Symbol 390 GraphicUsed by:409
Symbol 391 GraphicUsed by:409
Symbol 392 GraphicUsed by:409
Symbol 393 GraphicUsed by:409
Symbol 394 GraphicUsed by:409
Symbol 395 GraphicUsed by:409
Symbol 396 GraphicUsed by:409
Symbol 397 GraphicUsed by:409
Symbol 398 GraphicUsed by:409
Symbol 399 GraphicUsed by:409
Symbol 400 GraphicUsed by:409
Symbol 401 GraphicUsed by:409
Symbol 402 GraphicUsed by:409
Symbol 403 GraphicUsed by:409
Symbol 404 GraphicUsed by:409
Symbol 405 GraphicUsed by:409
Symbol 406 GraphicUsed by:409
Symbol 407 GraphicUsed by:409
Symbol 408 GraphicUsed by:409
Symbol 409 MovieClipUses:345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 148Used by:675
Symbol 410 GraphicUsed by:474
Symbol 411 GraphicUsed by:474
Symbol 412 GraphicUsed by:474
Symbol 413 GraphicUsed by:474
Symbol 414 GraphicUsed by:474
Symbol 415 GraphicUsed by:474
Symbol 416 GraphicUsed by:474
Symbol 417 GraphicUsed by:474
Symbol 418 GraphicUsed by:474
Symbol 419 GraphicUsed by:474
Symbol 420 GraphicUsed by:474
Symbol 421 GraphicUsed by:474
Symbol 422 GraphicUsed by:474
Symbol 423 GraphicUsed by:474
Symbol 424 GraphicUsed by:474
Symbol 425 GraphicUsed by:474
Symbol 426 GraphicUsed by:474
Symbol 427 GraphicUsed by:474
Symbol 428 GraphicUsed by:474
Symbol 429 GraphicUsed by:474
Symbol 430 GraphicUsed by:474
Symbol 431 GraphicUsed by:474
Symbol 432 GraphicUsed by:474
Symbol 433 GraphicUsed by:474
Symbol 434 GraphicUsed by:474
Symbol 435 GraphicUsed by:474
Symbol 436 GraphicUsed by:474
Symbol 437 GraphicUsed by:474
Symbol 438 GraphicUsed by:474
Symbol 439 GraphicUsed by:474
Symbol 440 GraphicUsed by:474
Symbol 441 GraphicUsed by:474
Symbol 442 GraphicUsed by:474
Symbol 443 GraphicUsed by:474
Symbol 444 GraphicUsed by:474
Symbol 445 GraphicUsed by:474
Symbol 446 GraphicUsed by:474
Symbol 447 GraphicUsed by:474
Symbol 448 GraphicUsed by:474
Symbol 449 GraphicUsed by:474
Symbol 450 GraphicUsed by:474
Symbol 451 GraphicUsed by:474
Symbol 452 GraphicUsed by:474
Symbol 453 GraphicUsed by:474
Symbol 454 GraphicUsed by:474
Symbol 455 GraphicUsed by:474
Symbol 456 GraphicUsed by:474
Symbol 457 GraphicUsed by:474
Symbol 458 GraphicUsed by:474
Symbol 459 GraphicUsed by:474
Symbol 460 GraphicUsed by:474
Symbol 461 GraphicUsed by:474
Symbol 462 GraphicUsed by:474
Symbol 463 GraphicUsed by:474
Symbol 464 GraphicUsed by:474
Symbol 465 GraphicUsed by:474
Symbol 466 GraphicUsed by:474
Symbol 467 GraphicUsed by:474
Symbol 468 GraphicUsed by:474
Symbol 469 GraphicUsed by:474
Symbol 470 GraphicUsed by:474
Symbol 471 GraphicUsed by:474
Symbol 472 GraphicUsed by:474
Symbol 473 GraphicUsed by:474
Symbol 474 MovieClipUses:410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 148Used by:675
Symbol 475 GraphicUsed by:539
Symbol 476 GraphicUsed by:539
Symbol 477 GraphicUsed by:539
Symbol 478 GraphicUsed by:539
Symbol 479 GraphicUsed by:539
Symbol 480 GraphicUsed by:539
Symbol 481 GraphicUsed by:539
Symbol 482 GraphicUsed by:539
Symbol 483 GraphicUsed by:539
Symbol 484 GraphicUsed by:539
Symbol 485 GraphicUsed by:539
Symbol 486 GraphicUsed by:539
Symbol 487 GraphicUsed by:539
Symbol 488 GraphicUsed by:539
Symbol 489 GraphicUsed by:539
Symbol 490 GraphicUsed by:539
Symbol 491 GraphicUsed by:539
Symbol 492 GraphicUsed by:539
Symbol 493 GraphicUsed by:539
Symbol 494 GraphicUsed by:539
Symbol 495 GraphicUsed by:539
Symbol 496 GraphicUsed by:539
Symbol 497 GraphicUsed by:539
Symbol 498 GraphicUsed by:539
Symbol 499 GraphicUsed by:539
Symbol 500 GraphicUsed by:539
Symbol 501 GraphicUsed by:539
Symbol 502 GraphicUsed by:539
Symbol 503 GraphicUsed by:539
Symbol 504 GraphicUsed by:539
Symbol 505 GraphicUsed by:539
Symbol 506 GraphicUsed by:539
Symbol 507 GraphicUsed by:539
Symbol 508 GraphicUsed by:539
Symbol 509 GraphicUsed by:539
Symbol 510 GraphicUsed by:539
Symbol 511 GraphicUsed by:539
Symbol 512 GraphicUsed by:539
Symbol 513 GraphicUsed by:539
Symbol 514 GraphicUsed by:539
Symbol 515 GraphicUsed by:539
Symbol 516 GraphicUsed by:539
Symbol 517 GraphicUsed by:539
Symbol 518 GraphicUsed by:539
Symbol 519 GraphicUsed by:539
Symbol 520 GraphicUsed by:539
Symbol 521 GraphicUsed by:539
Symbol 522 GraphicUsed by:539
Symbol 523 GraphicUsed by:539
Symbol 524 GraphicUsed by:539
Symbol 525 GraphicUsed by:539
Symbol 526 GraphicUsed by:539
Symbol 527 GraphicUsed by:539
Symbol 528 GraphicUsed by:539
Symbol 529 GraphicUsed by:539
Symbol 530 GraphicUsed by:539
Symbol 531 GraphicUsed by:539
Symbol 532 GraphicUsed by:539
Symbol 533 GraphicUsed by:539
Symbol 534 GraphicUsed by:539
Symbol 535 GraphicUsed by:539
Symbol 536 GraphicUsed by:539
Symbol 537 GraphicUsed by:539
Symbol 538 GraphicUsed by:539
Symbol 539 MovieClipUses:475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 148Used by:675
Symbol 540 GraphicUsed by:604
Symbol 541 GraphicUsed by:604
Symbol 542 GraphicUsed by:604
Symbol 543 GraphicUsed by:604
Symbol 544 GraphicUsed by:604
Symbol 545 GraphicUsed by:604
Symbol 546 GraphicUsed by:604
Symbol 547 GraphicUsed by:604
Symbol 548 GraphicUsed by:604
Symbol 549 GraphicUsed by:604
Symbol 550 GraphicUsed by:604
Symbol 551 GraphicUsed by:604
Symbol 552 GraphicUsed by:604
Symbol 553 GraphicUsed by:604
Symbol 554 GraphicUsed by:604
Symbol 555 GraphicUsed by:604
Symbol 556 GraphicUsed by:604
Symbol 557 GraphicUsed by:604
Symbol 558 GraphicUsed by:604
Symbol 559 GraphicUsed by:604
Symbol 560 GraphicUsed by:604
Symbol 561 GraphicUsed by:604
Symbol 562 GraphicUsed by:604
Symbol 563 GraphicUsed by:604
Symbol 564 GraphicUsed by:604
Symbol 565 GraphicUsed by:604
Symbol 566 GraphicUsed by:604
Symbol 567 GraphicUsed by:604
Symbol 568 GraphicUsed by:604
Symbol 569 GraphicUsed by:604
Symbol 570 GraphicUsed by:604
Symbol 571 GraphicUsed by:604
Symbol 572 GraphicUsed by:604
Symbol 573 GraphicUsed by:604
Symbol 574 GraphicUsed by:604
Symbol 575 GraphicUsed by:604
Symbol 576 GraphicUsed by:604
Symbol 577 GraphicUsed by:604
Symbol 578 GraphicUsed by:604
Symbol 579 GraphicUsed by:604
Symbol 580 GraphicUsed by:604
Symbol 581 GraphicUsed by:604
Symbol 582 GraphicUsed by:604
Symbol 583 GraphicUsed by:604
Symbol 584 GraphicUsed by:604
Symbol 585 GraphicUsed by:604
Symbol 586 GraphicUsed by:604
Symbol 587 GraphicUsed by:604
Symbol 588 GraphicUsed by:604
Symbol 589 GraphicUsed by:604
Symbol 590 GraphicUsed by:604
Symbol 591 GraphicUsed by:604
Symbol 592 GraphicUsed by:604
Symbol 593 GraphicUsed by:604
Symbol 594 GraphicUsed by:604
Symbol 595 GraphicUsed by:604
Symbol 596 GraphicUsed by:604
Symbol 597 GraphicUsed by:604
Symbol 598 GraphicUsed by:604
Symbol 599 GraphicUsed by:604
Symbol 600 GraphicUsed by:604
Symbol 601 GraphicUsed by:604
Symbol 602 GraphicUsed by:604
Symbol 603 GraphicUsed by:604
Symbol 604 MovieClipUses:540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 148Used by:675
Symbol 605 GraphicUsed by:669
Symbol 606 GraphicUsed by:669
Symbol 607 GraphicUsed by:669
Symbol 608 GraphicUsed by:669
Symbol 609 GraphicUsed by:669
Symbol 610 GraphicUsed by:669
Symbol 611 GraphicUsed by:669
Symbol 612 GraphicUsed by:669
Symbol 613 GraphicUsed by:669
Symbol 614 GraphicUsed by:669
Symbol 615 GraphicUsed by:669
Symbol 616 GraphicUsed by:669
Symbol 617 GraphicUsed by:669
Symbol 618 GraphicUsed by:669
Symbol 619 GraphicUsed by:669
Symbol 620 GraphicUsed by:669
Symbol 621 GraphicUsed by:669
Symbol 622 GraphicUsed by:669
Symbol 623 GraphicUsed by:669
Symbol 624 GraphicUsed by:669
Symbol 625 GraphicUsed by:669
Symbol 626 GraphicUsed by:669
Symbol 627 GraphicUsed by:669
Symbol 628 GraphicUsed by:669
Symbol 629 GraphicUsed by:669
Symbol 630 GraphicUsed by:669
Symbol 631 GraphicUsed by:669
Symbol 632 GraphicUsed by:669
Symbol 633 GraphicUsed by:669
Symbol 634 GraphicUsed by:669
Symbol 635 GraphicUsed by:669
Symbol 636 GraphicUsed by:669
Symbol 637 GraphicUsed by:669
Symbol 638 GraphicUsed by:669
Symbol 639 GraphicUsed by:669
Symbol 640 GraphicUsed by:669
Symbol 641 GraphicUsed by:669
Symbol 642 GraphicUsed by:669
Symbol 643 GraphicUsed by:669
Symbol 644 GraphicUsed by:669
Symbol 645 GraphicUsed by:669
Symbol 646 GraphicUsed by:669
Symbol 647 GraphicUsed by:669
Symbol 648 GraphicUsed by:669
Symbol 649 GraphicUsed by:669
Symbol 650 GraphicUsed by:669
Symbol 651 GraphicUsed by:669
Symbol 652 GraphicUsed by:669
Symbol 653 GraphicUsed by:669
Symbol 654 GraphicUsed by:669
Symbol 655 GraphicUsed by:669
Symbol 656 GraphicUsed by:669
Symbol 657 GraphicUsed by:669
Symbol 658 GraphicUsed by:669
Symbol 659 GraphicUsed by:669
Symbol 660 GraphicUsed by:669
Symbol 661 GraphicUsed by:669
Symbol 662 GraphicUsed by:669
Symbol 663 GraphicUsed by:669
Symbol 664 GraphicUsed by:669
Symbol 665 GraphicUsed by:669
Symbol 666 GraphicUsed by:669
Symbol 667 GraphicUsed by:669
Symbol 668 GraphicUsed by:669
Symbol 669 MovieClipUses:605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 148Used by:675
Symbol 670 ShapeTweeningUsed by:674
Symbol 671 ShapeTweeningUsed by:674
Symbol 672 ShapeTweeningUsed by:674
Symbol 673 GraphicUsed by:674 2364 2365
Symbol 674 MovieClipUses:670 671 672 673Used by:675
Symbol 675 MovieClipUses:149 214 279 344 409 474 539 604 669 674Used by:676 916 1255 1256 1257 1277 1278 1283 1284 1292 1297 1298 1311 1312 1374 1375 1541 1542 1550 1551 1917 1918 1996 1997 2077 2078 2172 2173 2182 2195 2196 2313 2314 2464 2517 2518
Symbol 676 MovieClipUses:81 83 675Used by:677  Timeline
Symbol 677 MovieClipUses:676Used by:908 1169  Timeline
Symbol 678 GraphicUses:17Used by:679 1032
Symbol 679 MovieClipUses:678Used by:684 1112 1113 1274 1354 1480 1524 1594 1659 1995 2107 2212 2394 2395 2396 2463 2465 2466 2467 2468 2469 2516 2519
Symbol 680 GraphicUsed by:681
Symbol 681 MovieClipUses:680Used by:684 1274 1594 1659 2212 2394 2395 2396 2466 2467 2468 2469 2519
Symbol 682 GraphicUsed by:683
Symbol 683 MovieClipUses:682Used by:684 1274 1354 1524 1594 1659 2107 2212 2394 2395 2396 2465 2466 2467 2468 2469 2516 2519
Symbol 684 MovieClipUses:679 681 683Used by:908 1169  Timeline
Symbol 685 GraphicUsed by:686
Symbol 686 MovieClipUses:685Used by:687 1554 1998 2118 2161 2179 2197 2322 2387
Symbol 687 MovieClipUses:70 686Used by:Timeline
Symbol 688 GraphicUsed by:689
Symbol 689 MovieClipUses:688Used by:Timeline
Symbol 690 GraphicUsed by:691
Symbol 691 ButtonUses:690Used by:Timeline
Symbol 692 GraphicUsed by:722
Symbol 693 GraphicUses:17Used by:696
Symbol 694 GraphicUsed by:695
Symbol 695 MovieClipUses:694Used by:696
Symbol 696 MovieClipUses:693 695Used by:702 1440 1448 1449 1450 1451 1454 1455 1456 1457 1458 1467 1468 1471 1472 1473 1474 1475 1476 1477 1484 1490 1493 1496 1499 1502 1505 2408
Symbol 697 GraphicUses:17Used by:698
Symbol 698 MovieClipUses:697Used by:701 1087 1103 1577 1714 1863 2363
Symbol 699 GraphicUsed by:700
Symbol 700 MovieClipUses:699Used by:701 1148 1176 1448 1621  Timeline
Symbol 701 MovieClipUses:698 700Used by:702 2399 2408
Symbol 702 MovieClipUses:696 701Used by:722 724 726 730 1021 1087 1103 1276 1299 1301 1343 1349 1370 1392 1394 1398 1404 1408 1409 1413 1417 1430 1432 1436 1437 1438 1439 1440 1449 1450 1451 1454 1455 1456 1457 1458 1484 1487 1490 1493 1496 1499 1502 1505 1591 1593 1596 1598 1606 1673 1704 1714 1867 1873 1881 1916 1920 1922 1941 1949 1953 1957 1975 2006 2010 2014 2020 2055 2059 2084 2092 2124 2130 2134 2140 2144 2150 2152 2154 2156 2163 2165 2181 2186 2189 2203 2207 2211 2225 2227 2248 2268 2276 2283 2289 2293 2312 2328 2336 2342 2343 2349 2363 2393 2424 2435 2441 2447 2451 2473 2478 2482 2488 2494 2496 2498 2524 2525 2529 2530 2534 2537
Symbol 703 GraphicUses:17Used by:704
Symbol 704 MovieClipUses:703Used by:722 724 726 730 1021 1087 1103 1276 1299 1301 1343 1349 1370 1392 1394 1398 1404 1408 1409 1413 1417 1487 1591 1593 1596 1598 1606 1673 1704 1714 1867 1873 1881 1916 1920 1922 1941 1949 1953 1957 1975 2006 2010 2014 2020 2055 2059 2084 2124 2130 2134 2140 2144 2150 2154 2156 2163 2181 2186 2189 2207 2211 2227 2248 2276 2283 2289 2293 2312 2328 2342 2343 2349 2363 2393 2411 2424 2435 2441 2447 2451 2473 2478 2482 2488 2494 2496 2498 2524 2525 2529 2530 2534 2537
Symbol 705 GraphicUses:17Used by:706
Symbol 706 MovieClipUses:705Used by:722 724 726 730 1021 1087 1103 1276 1299 1301 1343 1349 1370 1392 1394 1398 1404 1408 1409 1413 1417 1487 1591 1593 1596 1598 1606 1673 1704 1714 1867 1873 1881 1916 1920 1922 1941 1949 1953 1957 1975 2006 2010 2014 2020 2055 2059 2084 2124 2130 2134 2140 2144 2150 2154 2156 2163 2181 2186 2189 2207 2211 2227 2248 2276 2283 2289 2293 2312 2328 2342 2343 2349 2363 2393 2411 2424 2435 2441 2447 2451 2473 2478 2482 2488 2494 2496 2498 2524 2525 2529 2530 2534 2537
Symbol 707 GraphicUses:17Used by:708
Symbol 708 MovieClipUses:707Used by:722 724 726 730 1021 1087 1103 1276 1299 1301 1339 1343 1349 1370 1392 1394 1398 1404 1408 1409 1413 1417 1453 1483 1486 1489 1492 1495 1498 1501 1504 1591 1593 1596 1598 1606 1673 1704 1714 1867 1873 1881 1916 1920 1922 1941 1949 1953 1957 1975 2006 2010 2014 2020 2055 2059 2084 2092 2124 2130 2134 2140 2144 2150 2152 2154 2156 2163 2165 2181 2186 2189 2203 2207 2211 2225 2227 2248 2268 2276 2283 2289 2293 2312 2328 2336 2342 2343 2349 2363 2393 2406 2411 2435 2441 2447 2451 2473 2478 2482 2488 2494 2496 2498 2524 2525 2537
Symbol 709 GraphicUsed by:710
Symbol 710 MovieClipUses:709Used by:711
Symbol 711 MovieClipUses:710Used by:722 724 726 730 1021 1087 1276 1299 1301 1343 1349 1370 1392 1394 1398 1404 1408 1409 1413 1417 1453 1483 1486 1489 1492 1495 1498 1501 1504 1591 1593 1596 1598 1606 1673 1704 1714 1867 1873 1881 1916 1920 1922 1941 1949 1953 1957 1975 2006 2010 2014 2020 2055 2059 2084 2092 2124 2130 2134 2140 2144 2150 2152 2154 2156 2163 2165 2181 2186 2189 2203 2207 2211 2225 2227 2248 2268 2276 2283 2289 2293 2312 2328 2336 2342 2343 2349 2363 2393 2406 2411 2435 2441 2447 2451 2473 2478 2482 2488 2494 2496 2498 2524 2525 2537
Symbol 712 GraphicUsed by:713
Symbol 713 MovieClipUses:712Used by:722 724 726 730 1021 1087 1276 1299 1301 1343 1349 1370 1392 1394 1398 1404 1408 1409 1413 1417 1453 1483 1486 1489 1492 1495 1498 1501 1504 1596 1598 1704 1714 1916 1920 1922 1953 1957 1975 2084 2134 2144 2154 2156 2181 2186 2189 2207 2211 2227 2248 2328 2342 2349 2363 2393 2411 2435 2441 2451 2478 2482 2488 2494 2496 2498 2524 2525
Symbol 714 GraphicUsed by:719
Symbol 715 GraphicUses:17Used by:716
Symbol 716 MovieClipUses:715Used by:719 1085 1101 1346 1403 1581 1588 1670 1703 1707 1876 1913 1944 2083 2121 2129 2139 2286 2325 2341 2346 2360 2390 2421 2438 2481 2487 2493
Symbol 717 GraphicUses:17Used by:718
Symbol 718 MovieClipUses:717Used by:719 1085 1101 1338 1346 1403 1588 1670 1703 1707 1876 1913 1944 2003 2083 2121 2129 2139 2143 2286 2325 2341 2346 2360 2390 2421 2438 2481 2487 2493
Symbol 719 MovieClipUses:714 716 718Used by:722 724 726 730 1021 1276 1299 1301 1343 1370 1398 1408 1413 1417 1487 1598 1953 1975 2181 2186 2207 2211 2227 2248 2342
Symbol 720 GraphicUsed by:721
Symbol 721 MovieClipUses:720Used by:722 724 726 1021 1276 1299 1598 1704
Symbol 722 MovieClipUses:692 70 702 704 706 708 711 713 719 721Used by:Timeline
Symbol 723 GraphicUsed by:724
Symbol 724 MovieClipUses:723 70 702 704 706 708 711 713 719 721Used by:Timeline
Symbol 725 GraphicUsed by:726
Symbol 726 MovieClipUses:725 70 702 704 706 708 711 713 719 721Used by:Timeline
Symbol 727 GraphicUsed by:730 1299 1409
Symbol 728 GraphicUsed by:729 1369
Symbol 729 MovieClipUses:728Used by:730 1301 1975 2181
Symbol 730 MovieClipUses:727 70 702 704 706 708 711 713 719 729Used by:Timeline
Symbol 731 GraphicUsed by:732 1886
Symbol 732 MovieClipUses:731Used by:Timeline
Symbol 733 GraphicUsed by:Timeline
Symbol 734 GraphicUses:17Used by:735
Symbol 735 MovieClipUses:734Used by:Timeline
Symbol 736 FontUsed by:737 761 763 766 768 926 929 931 969 971 973 1006 1007 1192 1210 1211 1263 1282 1303 1364 1377 1400 1419 1548 1553 1656 1689 1734 1901 1937 1968 1994 2022 2075 2102 2158 2167 2177 2191 2259 2321 2384 2461 2514 2527 2539
Symbol 737 TextUses:736Used by:Timeline
Symbol 738 GraphicUsed by:739 1152
Symbol 739 MovieClipUses:738Used by:888 959 968 1183 1252
Symbol 740 GraphicUses:13Used by:741
Symbol 741 MovieClipUses:740Used by:888 909 918 919 959 968 1152 1183 1252
Symbol 742 GraphicUsed by:888
Symbol 743 GraphicUsed by:744
Symbol 744 MovieClipUses:743Used by:888
Symbol 745 GraphicUsed by:746
Symbol 746 MovieClipUses:745Used by:888 959 968
Symbol 747 GraphicUsed by:748 1185
Symbol 748 MovieClipUses:747Used by:888
Symbol 749 GraphicUsed by:750 922
Symbol 750 MovieClipUses:749Used by:888
Symbol 751 GraphicUsed by:752 1186
Symbol 752 MovieClipUses:751Used by:888
Symbol 753 GraphicUsed by:754
Symbol 754 MovieClipUses:753Used by:888
Symbol 755 GraphicUsed by:756
Symbol 756 MovieClipUses:755Used by:759
Symbol 757 GraphicUsed by:758 1205
Symbol 758 MovieClipUses:757Used by:759
Symbol 759 MovieClipUses:756 758Used by:888
Symbol 760 GraphicUsed by:762 764 1187 1188 1189
Symbol 761 TextUses:736Used by:762 1187
Symbol 762 MovieClipUses:760 761Used by:888
Symbol 763 TextUses:736Used by:764 1188
Symbol 764 MovieClipUses:760 763Used by:888
Symbol 765 GraphicUsed by:767
Symbol 766 TextUses:736Used by:767 1189
Symbol 767 MovieClipUses:765 766Used by:888
Symbol 768 TextUses:736Used by:888 1252
Symbol 769 GraphicUsed by:771 923
Symbol 770 GraphicUsed by:771 923
Symbol 771 ButtonUses:769 770Used by:888
Symbol 772 BitmapUsed by:773 774 1028 1355 1356 1358 1723 1724 1726 1933 1963 2067 2095 2257 2304 2317 2456 2458 2511
Symbol 773 GraphicUses:772Used by:777 1259
Symbol 774 GraphicUses:772Used by:775
Symbol 775 MovieClipUses:774Used by:776
Symbol 776 MovieClipUses:775Used by:777 1259
Symbol 777 MovieClipUses:773 776Used by:888
Symbol 778 TextUses:24Used by:888
Symbol 779 GraphicUsed by:780
Symbol 780 MovieClipUses:779Used by:888
Symbol 781 FontUsed by:782 783 784 785 786 798 799 800 801 802 808 809 810 811 812 818 819 820 821 822 828 829 830 831 832 838 839 840 841 842 904 905 911 912 915 1019 1024 1031 1038 1039 1040 1041 1049 1050 1051 1052 1053 1054 1072 1073 1074 1075 1076 1104 1105 1114 1115 1116 1117 1118 1122 1123 1159 1171 1172 1173 1174 1175 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242
Symbol 782 TextUses:781Used by:888
Symbol 783 TextUses:781Used by:888
Symbol 784 TextUses:781Used by:888
Symbol 785 TextUses:781Used by:888
Symbol 786 TextUses:781Used by:888
Symbol 787 GraphicUsed by:789 1145
Symbol 788 GraphicUsed by:789 1145
Symbol 789 ButtonUses:787 788Used by:888 968
Symbol 790 TextUses:61Used by:888 968
Symbol 791 EditableTextUses:61Used by:888
Symbol 792 FontUsed by:793 794 795 796 797 803 804 805 806 807 813 814 815 816 817 823 824 825 826 827 833 834 835 836 837 843 844 845 846 847 882 928 930 932 1258 1261 1281 1302 1363 1376 1399 1418 1547 1552 1655 1688 1733 1900 1936 1967 1993 2021 2074 2100 2157 2166 2176 2190 2256 2319 2383 2460 2513 2526 2538
Symbol 793 EditableTextUses:792Used by:888
Symbol 794 EditableTextUses:792Used by:888
Symbol 795 EditableTextUses:792Used by:888
Symbol 796 EditableTextUses:792Used by:888
Symbol 797 EditableTextUses:792Used by:888
Symbol 798 TextUses:781Used by:888
Symbol 799 TextUses:781Used by:888
Symbol 800 TextUses:781Used by:888
Symbol 801 TextUses:781Used by:888
Symbol 802 TextUses:781Used by:888
Symbol 803 EditableTextUses:792Used by:888
Symbol 804 EditableTextUses:792Used by:888
Symbol 805 EditableTextUses:792Used by:888
Symbol 806 EditableTextUses:792Used by:888
Symbol 807 EditableTextUses:792Used by:888
Symbol 808 TextUses:781Used by:888
Symbol 809 TextUses:781Used by:888
Symbol 810 TextUses:781Used by:888
Symbol 811 TextUses:781Used by:888
Symbol 812 TextUses:781Used by:888
Symbol 813 EditableTextUses:792Used by:888
Symbol 814 EditableTextUses:792Used by:888
Symbol 815 EditableTextUses:792Used by:888
Symbol 816 EditableTextUses:792Used by:888
Symbol 817 EditableTextUses:792Used by:888
Symbol 818 TextUses:781Used by:888
Symbol 819 TextUses:781Used by:888
Symbol 820 TextUses:781Used by:888
Symbol 821 TextUses:781Used by:888
Symbol 822 TextUses:781Used by:888
Symbol 823 EditableTextUses:792Used by:888
Symbol 824 EditableTextUses:792Used by:888
Symbol 825 EditableTextUses:792Used by:888
Symbol 826 EditableTextUses:792Used by:888
Symbol 827 EditableTextUses:792Used by:888
Symbol 828 TextUses:781Used by:888
Symbol 829 TextUses:781Used by:888
Symbol 830 TextUses:781Used by:888
Symbol 831 TextUses:781Used by:888
Symbol 832 TextUses:781Used by:888
Symbol 833 EditableTextUses:792Used by:888
Symbol 834 EditableTextUses:792Used by:888
Symbol 835 EditableTextUses:792Used by:888
Symbol 836 EditableTextUses:792Used by:888
Symbol 837 EditableTextUses:792Used by:888
Symbol 838 TextUses:781Used by:888
Symbol 839 TextUses:781Used by:888
Symbol 840 TextUses:781Used by:888
Symbol 841 TextUses:781Used by:888
Symbol 842 TextUses:781Used by:888
Symbol 843 EditableTextUses:792Used by:888
Symbol 844 EditableTextUses:792Used by:888
Symbol 845 EditableTextUses:792Used by:888
Symbol 846 EditableTextUses:792Used by:888
Symbol 847 EditableTextUses:792Used by:888
Symbol 848 EditableTextUses:61Used by:888
Symbol 849 GraphicUsed by:850
Symbol 850 MovieClipUses:849Used by:888
Symbol 851 GraphicUsed by:852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 937 946 958 1525 1527 1528 1530 1531 1533 2251 2252 2253 2254 2255
Symbol 852 ButtonUses:851Used by:888
Symbol 853 ButtonUses:851Used by:888
Symbol 854 ButtonUses:851Used by:888
Symbol 855 ButtonUses:851Used by:888
Symbol 856 ButtonUses:851Used by:888
Symbol 857 ButtonUses:851Used by:888
Symbol 858 ButtonUses:851Used by:888
Symbol 859 ButtonUses:851Used by:888
Symbol 860 ButtonUses:851Used by:888
Symbol 861 ButtonUses:851Used by:888
Symbol 862 ButtonUses:851Used by:888
Symbol 863 ButtonUses:851Used by:888
Symbol 864 ButtonUses:851Used by:888
Symbol 865 ButtonUses:851Used by:888
Symbol 866 ButtonUses:851Used by:888
Symbol 867 ButtonUses:851Used by:888
Symbol 868 ButtonUses:851Used by:888
Symbol 869 ButtonUses:851Used by:888
Symbol 870 ButtonUses:851Used by:888
Symbol 871 ButtonUses:851Used by:888
Symbol 872 ButtonUses:851Used by:888
Symbol 873 ButtonUses:851Used by:888
Symbol 874 ButtonUses:851Used by:888
Symbol 875 ButtonUses:851Used by:888
Symbol 876 ButtonUses:851Used by:888
Symbol 877 ButtonUses:851Used by:888
Symbol 878 ButtonUses:851Used by:888
Symbol 879 ButtonUses:851Used by:888
Symbol 880 ButtonUses:851Used by:888
Symbol 881 ButtonUses:851Used by:888
Symbol 882 TextUses:792Used by:888
Symbol 883 TextUses:61Used by:888
Symbol 884 FontUsed by:885 1247 1260
Symbol 885 TextUses:884Used by:888
Symbol 886 GraphicUsed by:887 1304 1305 1306 1682 1685 1746 1851 1856 1983 1984 2193 2194 2228 2366 2367 2374 2425  Timeline
Symbol 887 MovieClipUses:886Used by:888
Symbol 888 MovieClipUses:739 741 742 744 746 748 750 752 754 759 762 764 767 768 771 777 778 780 782 783 784 785 786 789 790 791 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 850 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 885 887Used by:Timeline
Symbol 889 GraphicUsed by:890 989
Symbol 890 MovieClipUses:889Used by:891 1252
Symbol 891 MovieClipUses:890Used by:909 918 919
Symbol 892 BitmapUsed by:893
Symbol 893 GraphicUses:892Used by:894
Symbol 894 MovieClipUses:893Used by:908 1165
Symbol 895 GraphicUsed by:908
Symbol 896 TextUses:24Used by:908 917
Symbol 897 GraphicUsed by:898
Symbol 898 MovieClipUses:897Used by:908 1165
Symbol 899 TextUses:24Used by:908 1165
Symbol 900 TextUses:24Used by:908 1165
Symbol 901 TextUses:24Used by:908
Symbol 902 TextUses:24Used by:908
Symbol 903 TextUses:24Used by:908
Symbol 904 TextUses:781Used by:907
Symbol 905 TextUses:781Used by:907
Symbol 906 GraphicUsed by:907
Symbol 907 ButtonUses:904 905 906Used by:908
Symbol 908 MovieClipUses:894 895 896 898 899 900 901 677 902 684 903 907Used by:909 919
Symbol 909 MovieClipUses:891 741 908Used by:919
Symbol 910 GraphicUsed by:917
Symbol 911 TextUses:781Used by:914
Symbol 912 TextUses:781Used by:914
Symbol 913 GraphicUsed by:914
Symbol 914 ButtonUses:911 912 913Used by:917
Symbol 915 TextUses:781Used by:917
Symbol 916 MovieClipUses:81 83 675Used by:917
Symbol 917 MovieClipUses:910 896 914 73 75 915 916Used by:918 919
Symbol 918 MovieClipUses:741 891 917Used by:919
Symbol 919 MovieClipUses:909 741 908 891 917 918Used by:920
Symbol 920 MovieClipUses:919Used by:Timeline
Symbol 921 GraphicUsed by:959
Symbol 922 MovieClipUses:749Used by:959 1252
Symbol 923 ButtonUses:769 770Used by:959 968 1252
Symbol 924 GraphicUsed by:925
Symbol 925 MovieClipUses:924Used by:959
Symbol 926 TextUses:736Used by:959
Symbol 927 FontUsed by:1146
Symbol 928 TextUses:792Used by:959
Symbol 929 TextUses:736Used by:959
Symbol 930 TextUses:792Used by:959
Symbol 931 TextUses:736Used by:959
Symbol 932 TextUses:792Used by:959
Symbol 933 GraphicUsed by:934 935 937 946
Symbol 934 MovieClipUses:933Used by:936
Symbol 935 MovieClipUses:933Used by:936
Symbol 936 MovieClipUses:934 935Used by:937
Symbol 937 MovieClipUses:851 933 936Used by:946
Symbol 938 GraphicUsed by:939 946
Symbol 939 MovieClipUses:938Used by:945
Symbol 940 GraphicUsed by:941
Symbol 941 MovieClipUses:940Used by:944
Symbol 942 GraphicUsed by:943
Symbol 943 MovieClipUses:942Used by:944
Symbol 944 MovieClipUses:941 943Used by:945
Symbol 945 MovieClipUses:939 944Used by:946
Symbol 946 ButtonUses:851 937 945 933 938Used by:959
Symbol 947 GraphicUsed by:948 949 950 951 952 953 954 955 956 1102 1296 2099 2101 2308 2320 2397
Symbol 948 ButtonUses:947Used by:959
Symbol 949 ButtonUses:947Used by:959
Symbol 950 ButtonUses:947Used by:959
Symbol 951 ButtonUses:947Used by:959
Symbol 952 ButtonUses:947Used by:959
Symbol 953 ButtonUses:947Used by:959
Symbol 954 ButtonUses:947Used by:959
Symbol 955 ButtonUses:947Used by:959
Symbol 956 ButtonUses:947Used by:959
Symbol 957 MovieClipUses:44 45Used by:958
Symbol 958 ButtonUses:957 43 851 44 45Used by:959
Symbol 959 MovieClipUses:921 739 741 922 746 923 925 926 928 929 930 931 932 946 948 949 950 951 952 953 954 955 956 958Used by:Timeline
Symbol 960 GraphicUsed by:968
Symbol 961 GraphicUsed by:968
Symbol 962 EditableTextUses:61Used by:968
Symbol 963 TextUses:61Used by:968
Symbol 964 EditableTextUses:61Used by:968
Symbol 965 TextUses:24Used by:968
Symbol 966 TextUses:24Used by:967
Symbol 967 MovieClipUses:966Used by:968
Symbol 968 MovieClipUses:960 739 741 746 961 789 790 962 963 964 965 923 967Used by:Timeline
Symbol 969 TextUses:736Used by:970
Symbol 970 MovieClipUses:969Used by:Timeline
Symbol 971 TextUses:736Used by:972
Symbol 972 MovieClipUses:971Used by:Timeline
Symbol 973 TextUses:736Used by:974
Symbol 974 MovieClipUses:973Used by:Timeline
Symbol 975 GraphicUsed by:977
Symbol 976 GraphicUsed by:977 1208 1209 1249
Symbol 977 ButtonUses:975 976Used by:Timeline
Symbol 978 GraphicUsed by:979
Symbol 979 MovieClipUses:978Used by:Timeline
Symbol 980 GraphicUsed by:1152
Symbol 981 TextUses:24Used by:982
Symbol 982 MovieClipUses:981Used by:1152
Symbol 983 GraphicUsed by:1152
Symbol 984 GraphicUsed by:985
Symbol 985 MovieClipUses:984Used by:988 1252
Symbol 986 GraphicUsed by:987
Symbol 987 MovieClipUses:986Used by:988
Symbol 988 MovieClipUses:19 985 987Used by:1152
Symbol 989 ButtonUses:889Used by:1152 1183
Symbol 990 GraphicUsed by:992
Symbol 991 GraphicUsed by:992
Symbol 992 ButtonUses:990 991Used by:1152 1252
Symbol 993 GraphicUsed by:999
Symbol 994 GraphicUsed by:995
Symbol 995 MovieClipUses:994Used by:999
Symbol 996 GraphicUsed by:999
Symbol 997 GraphicUsed by:998 999
Symbol 998 MovieClipUses:997Used by:999
Symbol 999 ButtonUses:993 44 45 995 996 998 997Used by:1152 1252
Symbol 1000 GraphicUsed by:1001
Symbol 1001 MovieClipUses:1000Used by:1152
Symbol 1002 GraphicUsed by:1152
Symbol 1003 GraphicUsed by:1004
Symbol 1004 MovieClipUses:1003Used by:1152
Symbol 1005 GraphicUsed by:1008
Symbol 1006 TextUses:736Used by:1008
Symbol 1007 TextUses:736Used by:1008
Symbol 1008 MovieClipUses:1005 1006 1007Used by:1013
Symbol 1009 GraphicUses:17Used by:1012
Symbol 1010 GraphicUsed by:1011 1700
Symbol 1011 MovieClipUses:1010Used by:1012 1386 1387 1388 1405 1406 1697 1699
Symbol 1012 MovieClipUses:1009 1011Used by:1013
Symbol 1013 MovieClipUses:1008 1012Used by:1152 1252
Symbol 1014 GraphicUsed by:1016
Symbol 1015 GraphicUsed by:1016
Symbol 1016 ButtonUses:1014 1015Used by:1152
Symbol 1017 GraphicUsed by:1018
Symbol 1018 MovieClipUses:1017Used by:1152
Symbol 1019 TextUses:781Used by:1148
Symbol 1020 GraphicUsed by:1021
Symbol 1021 MovieClipUses:1020 70 702 704 706 708 711 713 719 721Used by:1148 1176  Timeline
Symbol 1022 GraphicUsed by:1023
Symbol 1023 MovieClipUses:1022Used by:1148
Symbol 1024 TextUses:781Used by:1148
Symbol 1025 GraphicUses:17Used by:1026
Symbol 1026 MovieClipUses:1025Used by:1148 1176
Symbol 1027 GraphicUsed by:1030
Symbol 1028 GraphicUses:772Used by:1029
Symbol 1029 MovieClipUses:1028Used by:1030
Symbol 1030 MovieClipUses:1027 1029Used by:1148 1176  Timeline
Symbol 1031 TextUses:781Used by:1148 1176
Symbol 1032 MovieClipUses:678Used by:1037
Symbol 1033 GraphicUsed by:1034
Symbol 1034 MovieClipUses:1033Used by:1037
Symbol 1035 GraphicUsed by:1036
Symbol 1036 MovieClipUses:1035Used by:1037
Symbol 1037 MovieClipUses:1032 1034 1036Used by:1148 1176  Timeline
Symbol 1038 TextUses:781Used by:1148 1176
Symbol 1039 TextUses:781Used by:1148
Symbol 1040 TextUses:781Used by:1148 1176
Symbol 1041 TextUses:781Used by:1148
Symbol 1042 GraphicUsed by:1043
Symbol 1043 MovieClipUses:1042Used by:1044
Symbol 1044 MovieClipUses:1043Used by:1148 1176  Timeline
Symbol 1045 GraphicUsed by:1048
Symbol 1046 GraphicUsed by:1047
Symbol 1047 MovieClipUses:1046Used by:1048 1583 1740
Symbol 1048 MovieClipUses:1045 1047Used by:1148 1176  Timeline
Symbol 1049 TextUses:781Used by:1148 1176
Symbol 1050 TextUses:781Used by:1148 1176
Symbol 1051 TextUses:781Used by:1148 1176
Symbol 1052 TextUses:781Used by:1148
Symbol 1053 TextUses:781Used by:1148 1176
Symbol 1054 TextUses:781Used by:1148
Symbol 1055 BitmapUsed by:1056 1057 1059 1061 1063 1065 1067 1069 1660 1663 2023 2026 2028 2033 2038 2043
Symbol 1056 GraphicUses:1055Used by:1071
Symbol 1057 GraphicUses:1055Used by:1058
Symbol 1058 MovieClipUses:1057Used by:1071 1662 1664 2025 2027
Symbol 1059 GraphicUses:1055Used by:1060
Symbol 1060 MovieClipUses:1059Used by:1071 1662 1664 2025 2027
Symbol 1061 GraphicUses:1055Used by:1062
Symbol 1062 MovieClipUses:1061Used by:1071 1662 1664 2025 2027
Symbol 1063 GraphicUses:1055Used by:1064
Symbol 1064 MovieClipUses:1063Used by:1071 1662 1664 2025 2027
Symbol 1065 GraphicUses:1055Used by:1066
Symbol 1066 MovieClipUses:1065Used by:1071 1662 1664 2025 2027
Symbol 1067 GraphicUses:1055Used by:1068
Symbol 1068 MovieClipUses:1067Used by:1071 1662 1664 2025 2027
Symbol 1069 GraphicUses:1055Used by:1070 1661
Symbol 1070 MovieClipUses:1069Used by:1071 2025 2027 2048
Symbol 1071 MovieClipUses:1056 1058 1060 1062 1064 1066 1068 1070Used by:1148 1176  Timeline
Symbol 1072 TextUses:781Used by:1148 1176
Symbol 1073 TextUses:781Used by:1148 1176
Symbol 1074 TextUses:781Used by:1148
Symbol 1075 TextUses:781Used by:1148
Symbol 1076 TextUses:781Used by:1148 1176
Symbol 1077 GraphicUsed by:1087
Symbol 1078 GraphicUsed by:1079
Symbol 1079 MovieClipUses:1078Used by:1087
Symbol 1080 GraphicUses:17Used by:1081
Symbol 1081 MovieClipUses:1080Used by:1087
Symbol 1082 GraphicUses:17Used by:1083
Symbol 1083 MovieClipUses:1082Used by:1087
Symbol 1084 GraphicUsed by:1085
Symbol 1085 MovieClipUses:1084 716 718Used by:1087
Symbol 1086 GraphicUsed by:1087
Symbol 1087 MovieClipUses:1077 70 702 704 706 708 711 713 698 1079 1081 1083 1085 1086Used by:1088
Symbol 1088 MovieClipUses:1087Used by:1148 1176  Timeline
Symbol 1089 GraphicUsed by:1090
Symbol 1090 MovieClipUses:1089Used by:1091
Symbol 1091 MovieClipUses:1090Used by:1103
Symbol 1092 GraphicUsed by:1093
Symbol 1093 MovieClipUses:1092Used by:1103
Symbol 1094 GraphicUses:17Used by:1095
Symbol 1095 MovieClipUses:1094Used by:1103
Symbol 1096 GraphicUsed by:1097
Symbol 1097 MovieClipUses:1096Used by:1103
Symbol 1098 GraphicUses:17Used by:1099
Symbol 1099 MovieClipUses:1098Used by:1103
Symbol 1100 GraphicUsed by:1101
Symbol 1101 MovieClipUses:1100 716 718Used by:1103
Symbol 1102 MovieClipUses:947Used by:1103
Symbol 1103 MovieClipUses:70 702 704 706 708 1091 1093 1095 1097 1099 1101 698 1102Used by:1148 1176  Timeline
Symbol 1104 TextUses:781Used by:1148
Symbol 1105 TextUses:781Used by:1148 1176
Symbol 1106 GraphicUsed by:1107
Symbol 1107 MovieClipUses:1106Used by:1112 1113 1480 1995 2463
Symbol 1108 GraphicUses:17Used by:1109
Symbol 1109 MovieClipUses:1108Used by:1112 1113 1480 1481 1995 2463
Symbol 1110 GraphicUsed by:1111
Symbol 1111 MovieClipUses:1110Used by:1112 1113 1480 1995 2463
Symbol 1112 MovieClipUses:679 1107 1109 1111Used by:1148 1176
Symbol 1113 MovieClipUses:679 1107 1109 1111Used by:1148 1176
Symbol 1114 TextUses:781Used by:1148 1176
Symbol 1115 TextUses:781Used by:1148
Symbol 1116 TextUses:781Used by:1148
Symbol 1117 TextUses:781Used by:1148
Symbol 1118 TextUses:781Used by:1148 1176
Symbol 1119 MovieClipUses:69Used by:1121
Symbol 1120 GraphicUsed by:1121
Symbol 1121 MovieClipUses:1119 1120Used by:1148 1176  Timeline
Symbol 1122 TextUses:781Used by:1148 1176
Symbol 1123 TextUses:781Used by:1148
Symbol 1124 GraphicUsed by:1125
Symbol 1125 MovieClipUses:1124Used by:1148
Symbol 1126 GraphicUsed by:1127
Symbol 1127 MovieClipUses:1126Used by:1148
Symbol 1128 GraphicUsed by:1148
Symbol 1129 GraphicUsed by:1130
Symbol 1130 MovieClipUses:1129Used by:1148
Symbol 1131 GraphicUsed by:1132
Symbol 1132 MovieClipUses:1131Used by:1148
Symbol 1133 GraphicUsed by:1134
Symbol 1134 MovieClipUses:1133Used by:1148
Symbol 1135 GraphicUsed by:1136
Symbol 1136 MovieClipUses:1135Used by:1148
Symbol 1137 GraphicUsed by:1138
Symbol 1138 MovieClipUses:1137Used by:1148
Symbol 1139 GraphicUsed by:1140
Symbol 1140 MovieClipUses:1139Used by:1148
Symbol 1141 GraphicUsed by:1148
Symbol 1142 GraphicUsed by:1143
Symbol 1143 MovieClipUses:1142Used by:1148
Symbol 1144 TextUses:61Used by:1148
Symbol 1145 ButtonUses:787 788Used by:1148
Symbol 1146 TextUses:927Used by:1148
Symbol 1147 EditableTextUses:61Used by:1148
Symbol 1148 MovieClipUses:1019 1021 1023 1024 1026 1030 1031 1037 1038 1039 1040 1041 1044 1048 1049 1050 1051 1052 1053 1054 1071 1072 1073 1074 1075 1076 1088 700 1103 1104 1105 1112 1113 1114 1115 1116 1117 1118 1121 1122 1123 1125 1127 1128 1130 1132 1134 1136 1138 1140 1141 1143 1144 1145 1146 1147Used by:1152
Symbol 1149 TextUses:24Used by:1152
Symbol 1150 EditableTextUses:61Used by:1152
Symbol 1151 EditableTextUses:61Used by:1152
Symbol 1152 MovieClipUses:738 741 980 982 983 988 989 992 999 1001 1002 1004 1013 1016 1018 1148 1149 1150 1151Used by:Timeline
Symbol 1153 GraphicUsed by:1183
Symbol 1154 GraphicUsed by:1155
Symbol 1155 MovieClipUses:1154Used by:1183
Symbol 1156 GraphicUsed by:1158
Symbol 1157 GraphicUsed by:1158
Symbol 1158 ButtonUses:1156 1157Used by:1183
Symbol 1159 TextUses:781Used by:1183
Symbol 1160 GraphicUsed by:1161
Symbol 1161 MovieClipUses:1160Used by:1183
Symbol 1162 GraphicUsed by:1163
Symbol 1163 MovieClipUses:1162Used by:1183
Symbol 1164 GraphicUsed by:1165
Symbol 1165 MovieClipUses:1164 894 898 899 900Used by:1176
Symbol 1166 TextUses:24Used by:1169
Symbol 1167 TextUses:24Used by:1169
Symbol 1168 TextUses:24Used by:1169
Symbol 1169 MovieClipUses:1166 677 1167 684 1168Used by:1176
Symbol 1170 GraphicUsed by:1176
Symbol 1171 TextUses:781Used by:1176
Symbol 1172 TextUses:781Used by:1176
Symbol 1173 TextUses:781Used by:1176
Symbol 1174 TextUses:781Used by:1176
Symbol 1175 TextUses:781Used by:1176
Symbol 1176 MovieClipUses:1165 1169 1170 1171 1021 1172 1026 1030 1031 1037 1038 1040 1173 1044 1048 1049 1050 1051 1174 1053 1071 1072 1073 1175 1076 1088 700 1103 1105 1112 1113 1114 1118 1121 1122Used by:1183
Symbol 1177 GraphicUsed by:1183
Symbol 1178 GraphicUsed by:1182
Symbol 1179 GraphicUsed by:1182
Symbol 1180 GraphicUsed by:1182
Symbol 1181 GraphicUsed by:1182
Symbol 1182 ButtonUses:1178 1179 1180 1181Used by:1183
Symbol 1183 MovieClipUses:739 1153 741 989 1155 1158 1159 1161 1163 1176 1177 1182Used by:Timeline
Symbol 1184 GraphicUsed by:1252
Symbol 1185 MovieClipUses:747Used by:1252
Symbol 1186 MovieClipUses:751Used by:1252
Symbol 1187 MovieClipUses:760 761Used by:1252
Symbol 1188 MovieClipUses:760 763Used by:1252
Symbol 1189 MovieClipUses:760 766Used by:1252
Symbol 1190 GraphicUsed by:1191
Symbol 1191 MovieClipUses:1190Used by:1252
Symbol 1192 TextUses:736Used by:1252
Symbol 1193 GraphicUsed by:1194
Symbol 1194 MovieClipUses:1193Used by:1252
Symbol 1195 GraphicUsed by:1196
Symbol 1196 MovieClipUses:1195Used by:1252
Symbol 1197 GraphicUsed by:1198
Symbol 1198 MovieClipUses:1197Used by:1252
Symbol 1199 GraphicUsed by:1200
Symbol 1200 MovieClipUses:1199Used by:1252
Symbol 1201 GraphicUsed by:1202
Symbol 1202 MovieClipUses:1201Used by:1252
Symbol 1203 GraphicUsed by:1204
Symbol 1204 MovieClipUses:1203Used by:1206
Symbol 1205 MovieClipUses:757Used by:1206
Symbol 1206 MovieClipUses:1204 1205Used by:1252
Symbol 1207 GraphicUsed by:1208 1209 1248
Symbol 1208 MovieClipUses:1207 976Used by:1252
Symbol 1209 MovieClipUses:976 1207Used by:1252
Symbol 1210 TextUses:736Used by:1252
Symbol 1211 TextUses:736Used by:1252
Symbol 1212 GraphicUsed by:1243
Symbol 1213 TextUses:781Used by:1243
Symbol 1214 TextUses:781Used by:1243
Symbol 1215 TextUses:781Used by:1243
Symbol 1216 TextUses:781Used by:1243
Symbol 1217 TextUses:781Used by:1243
Symbol 1218 TextUses:781Used by:1243
Symbol 1219 TextUses:781Used by:1243
Symbol 1220 TextUses:781Used by:1243
Symbol 1221 TextUses:781Used by:1243
Symbol 1222 TextUses:781Used by:1243
Symbol 1223 TextUses:781Used by:1243
Symbol 1224 TextUses:781Used by:1243
Symbol 1225 TextUses:781Used by:1243
Symbol 1226 TextUses:781Used by:1243
Symbol 1227 TextUses:781Used by:1243
Symbol 1228 TextUses:781Used by:1243
Symbol 1229 TextUses:781Used by:1243
Symbol 1230 TextUses:781Used by:1243
Symbol 1231 TextUses:781Used by:1243
Symbol 1232 TextUses:781Used by:1243
Symbol 1233 TextUses:781Used by:1243
Symbol 1234 TextUses:781Used by:1243
Symbol 1235 TextUses:781Used by:1243
Symbol 1236 TextUses:781Used by:1243
Symbol 1237 TextUses:781Used by:1243
Symbol 1238 TextUses:781Used by:1243
Symbol 1239 TextUses:781Used by:1243
Symbol 1240 TextUses:781Used by:1243
Symbol 1241 TextUses:781Used by:1243
Symbol 1242 TextUses:781Used by:1243
Symbol 1243 MovieClipUses:1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242Used by:1252
Symbol 1244 GraphicUsed by:1246
Symbol 1245 GraphicUsed by:1246
Symbol 1246 ButtonUses:1244 1245Used by:1252
Symbol 1247 TextUses:884Used by:1252
Symbol 1248 MovieClipUses:1207Used by:1252
Symbol 1249 MovieClipUses:976Used by:1252
Symbol 1250 GraphicUsed by:1251
Symbol 1251 MovieClipUses:1250Used by:1252
Symbol 1252 MovieClipUses:739 741 1184 890 1185 922 19 1186 985 1187 1188 1189 768 1191 1192 1194 1196 1198 1200 1202 1206 1208 1209 1210 1211 1243 992 999 1246 1013 923 1247 1248 1249 1251Used by:Timeline
Symbol 1253 GraphicUsed by:Timeline
Symbol 1254 TextUses:24Used by:Timeline
Symbol 1255 MovieClipUses:81 83 675Used by:1256 1257 1541 1542 1747
Symbol 1256 MovieClipUses:81 83 675 1255Used by:Timeline
Symbol 1257 MovieClipUses:81 83 675 1255Used by:Timeline
Symbol 1258 EditableTextUses:792Used by:Timeline
Symbol 1259 MovieClipUses:773 776Used by:Timeline
Symbol 1260 TextUses:884 61Used by:Timeline
Symbol 1261 EditableTextUses:792Used by:Timeline
Symbol 1262 TextUses:61Used by:Timeline
Symbol 1263 TextUses:736Used by:Timeline
Symbol 1264 GraphicUsed by:1268 1905
Symbol 1265 GraphicUsed by:1266
Symbol 1266 MovieClipUses:1265Used by:1267
Symbol 1267 MovieClipUses:1266Used by:1268
Symbol 1268 MovieClipUses:1264 1267Used by:Timeline
Symbol 1269 GraphicUsed by:1270 1271 1272 1906 1907 1908
Symbol 1270 MovieClipUses:1269Used by:1273
Symbol 1271 MovieClipUses:1269Used by:1273
Symbol 1272 MovieClipUses:1269Used by:1273
Symbol 1273 MovieClipUses:1270 1271 1272Used by:Timeline
Symbol 1274 MovieClipUses:679 681 683Used by:Timeline
Symbol 1275 GraphicUsed by:1276
Symbol 1276 MovieClipUses:1275 70 702 704 706 708 711 713 719 721Used by:Timeline
Symbol 1277 MovieClipUses:81 83 675Used by:Timeline
Symbol 1278 MovieClipUses:81 83 675Used by:Timeline
Symbol 1279 GraphicUses:17Used by:1280
Symbol 1280 MovieClipUses:1279Used by:Timeline
Symbol 1281 EditableTextUses:792Used by:Timeline
Symbol 1282 TextUses:736Used by:Timeline
Symbol 1283 MovieClipUses:81 83 675Used by:1291
Symbol 1284 MovieClipUses:81 83 675Used by:1285 1294
Symbol 1285 MovieClipUses:1284Used by:1290 1291 1293
Symbol 1286 GraphicUsed by:1287
Symbol 1287 MovieClipUses:1286Used by:1290 1293
Symbol 1288 GraphicUsed by:1289
Symbol 1289 MovieClipUses:1288Used by:1290 1293
Symbol 1290 MovieClipUses:1285 1287 1289Used by:1291
Symbol 1291 MovieClipUses:1283 1290 1285Used by:Timeline
Symbol 1292 MovieClipUses:81 83 675Used by:1295
Symbol 1293 MovieClipUses:1285 1287 1289Used by:1295
Symbol 1294 MovieClipUses:1284Used by:1295
Symbol 1295 MovieClipUses:1292 1293 1294Used by:Timeline
Symbol 1296 MovieClipUses:947Used by:Timeline
Symbol 1297 MovieClipUses:81 83 675Used by:Timeline
Symbol 1298 MovieClipUses:81 83 675Used by:Timeline
Symbol 1299 MovieClipUses:727 70 702 704 706 708 711 713 719 721Used by:Timeline
Symbol 1300 GraphicUsed by:1301
Symbol 1301 MovieClipUses:1300 70 702 704 706 708 711 713 719 729Used by:Timeline
Symbol 1302 EditableTextUses:792Used by:Timeline
Symbol 1303 TextUses:736Used by:Timeline
Symbol 1304 MovieClipUses:886Used by:1306
Symbol 1305 MovieClipUses:886Used by:1306
Symbol 1306 MovieClipUses:886 1304 1305Used by:Timeline
Symbol 1307 GraphicUsed by:1308 1309 1310
Symbol 1308 MovieClipUses:1307Used by:1310
Symbol 1309 MovieClipUses:1307Used by:1310
Symbol 1310 MovieClipUses:1307 1308 1309Used by:Timeline
Symbol 1311 MovieClipUses:81 83 675Used by:Timeline
Symbol 1312 MovieClipUses:81 83 675Used by:Timeline
Symbol 1313 GraphicUses:17Used by:1339
Symbol 1314 GraphicUses:17Used by:1315
Symbol 1315 MovieClipUses:1314Used by:1316
Symbol 1316 MovieClipUses:1315Used by:1320
Symbol 1317 GraphicUsed by:1318
Symbol 1318 MovieClipUses:1317Used by:1319
Symbol 1319 MovieClipUses:1318Used by:1320
Symbol 1320 MovieClipUses:1316 1319Used by:1339
Symbol 1321 GraphicUses:17Used by:1322
Symbol 1322 MovieClipUses:1321Used by:1339
Symbol 1323 GraphicUses:17Used by:1324
Symbol 1324 MovieClipUses:1323Used by:1339
Symbol 1325 GraphicUses:17Used by:1326
Symbol 1326 MovieClipUses:1325Used by:1339
Symbol 1327 GraphicUsed by:1328
Symbol 1328 MovieClipUses:1327Used by:1329
Symbol 1329 MovieClipUses:1328Used by:1339
Symbol 1330 GraphicUsed by:1331
Symbol 1331 MovieClipUses:1330Used by:1332
Symbol 1332 MovieClipUses:1331Used by:1339
Symbol 1333 GraphicUsed by:1334
Symbol 1334 MovieClipUses:1333Used by:1339
Symbol 1335 GraphicUsed by:1336
Symbol 1336 MovieClipUses:1335Used by:1339
Symbol 1337 GraphicUsed by:1338
Symbol 1338 MovieClipUses:1337 718Used by:1339
Symbol 1339 MovieClipUses:1313 70 1320 1322 1324 1326 1329 708 1332 1334 1336 1338Used by:Timeline
Symbol 1340 GraphicUsed by:1343
Symbol 1341 GraphicUsed by:1342
Symbol 1342 MovieClipUses:1341Used by:1343 2227
Symbol 1343 MovieClipUses:1340 70 702 704 706 708 711 713 719 1342Used by:Timeline
Symbol 1344 GraphicUsed by:1349
Symbol 1345 GraphicUsed by:1346
Symbol 1346 MovieClipUses:1345 716 718Used by:1349 1392 1394 1409 1596 2189
Symbol 1347 GraphicUsed by:1348
Symbol 1348 MovieClipUses:1347Used by:1349
Symbol 1349 MovieClipUses:1344 70 702 704 706 708 711 713 1346 1348Used by:Timeline
Symbol 1350 GraphicUses:17Used by:1351
Symbol 1351 MovieClipUses:1350Used by:Timeline
Symbol 1352 GraphicUsed by:1353
Symbol 1353 MovieClipUses:1352Used by:1354 1524
Symbol 1354 MovieClipUses:679 683 1353Used by:Timeline
Symbol 1355 GraphicUses:772Used by:1361
Symbol 1356 GraphicUses:772Used by:1357
Symbol 1357 MovieClipUses:1356Used by:1361
Symbol 1358 GraphicUses:772Used by:1359
Symbol 1359 MovieClipUses:1358Used by:1360
Symbol 1360 MovieClipUses:1359Used by:1361
Symbol 1361 MovieClipUses:1355 1357 1360Used by:1362
Symbol 1362 MovieClipUses:1361Used by:Timeline
Symbol 1363 EditableTextUses:792Used by:Timeline
Symbol 1364 TextUses:736Used by:Timeline
Symbol 1365 GraphicUsed by:Timeline
Symbol 1366 GraphicUsed by:1370
Symbol 1367 GraphicUsed by:1368
Symbol 1368 MovieClipUses:1367Used by:1369
Symbol 1369 MovieClipUses:728 1368Used by:1370
Symbol 1370 MovieClipUses:1366 70 702 704 706 708 711 713 719 1369Used by:Timeline
Symbol 1371 GraphicUsed by:1373
Symbol 1372 TextUses:24Used by:1373
Symbol 1373 MovieClipUses:1371 1372Used by:Timeline
Symbol 1374 MovieClipUses:81 83 675Used by:Timeline
Symbol 1375 MovieClipUses:81 83 675Used by:Timeline
Symbol 1376 EditableTextUses:792Used by:Timeline
Symbol 1377 TextUses:736Used by:Timeline
Symbol 1378 GraphicUses:17Used by:1379
Symbol 1379 MovieClipUses:1378Used by:1386 1387 1388 1405 1406 1697 1699  Timeline
Symbol 1380 GraphicUses:17Used by:1381
Symbol 1381 MovieClipUses:1380Used by:1382
Symbol 1382 MovieClipUses:1381Used by:1386 1387 1388 1405 1406 1697 1699
Symbol 1383 GraphicUsed by:1386
Symbol 1384 GraphicUsed by:1385
Symbol 1385 MovieClipUses:1384Used by:1386
Symbol 1386 MovieClipUses:1379 1382 1011 1383 1385Used by:Timeline
Symbol 1387 MovieClipUses:1379 1382 1011Used by:Timeline
Symbol 1388 MovieClipUses:1379 1382 1011Used by:Timeline
Symbol 1389 GraphicUsed by:1392
Symbol 1390 GraphicUsed by:1391
Symbol 1391 MovieClipUses:1390Used by:1392 1394 1404 1409 1593 1596 1873 1920 1922 2154 2156 2482
Symbol 1392 MovieClipUses:1389 70 702 704 706 708 711 713 1346 1391Used by:Timeline
Symbol 1393 GraphicUsed by:1394
Symbol 1394 MovieClipUses:1393 70 702 704 706 708 711 713 1346 1391Used by:Timeline
Symbol 1395 GraphicUsed by:1398
Symbol 1396 GraphicUsed by:1397
Symbol 1397 MovieClipUses:1396Used by:1398 1408
Symbol 1398 MovieClipUses:1395 70 702 704 706 708 711 713 719 1397Used by:Timeline
Symbol 1399 EditableTextUses:792Used by:Timeline
Symbol 1400 TextUses:736Used by:Timeline
Symbol 1401 GraphicUsed by:1404
Symbol 1402 GraphicUsed by:1403
Symbol 1403 MovieClipUses:1402 716 718Used by:1404 1920 1922 1957 2134 2154 2156 2435 2478 2524 2525
Symbol 1404 MovieClipUses:1401 70 702 704 706 708 711 713 1391 1403Used by:Timeline
Symbol 1405 MovieClipUses:1379 1382 1011Used by:Timeline
Symbol 1406 MovieClipUses:1379 1382 1011Used by:Timeline
Symbol 1407 GraphicUsed by:1408
Symbol 1408 MovieClipUses:1407 70 702 704 706 708 711 713 719 1397Used by:Timeline
Symbol 1409 MovieClipUses:727 70 702 704 706 708 711 713 1346 1391Used by:Timeline
Symbol 1410 GraphicUsed by:1413
Symbol 1411 GraphicUsed by:1412
Symbol 1412 MovieClipUses:1411Used by:1413
Symbol 1413 MovieClipUses:1410 70 702 704 706 708 711 713 719 1412Used by:Timeline
Symbol 1414 GraphicUsed by:1417
Symbol 1415 GraphicUsed by:1416
Symbol 1416 MovieClipUses:1415Used by:1417
Symbol 1417 MovieClipUses:1414 70 702 704 706 708 711 713 719 1416Used by:Timeline
Symbol 1418 EditableTextUses:792Used by:Timeline
Symbol 1419 TextUses:736Used by:Timeline
Symbol 1420 GraphicUses:13Used by:Timeline
Symbol 1421 GraphicUses:13Used by:1422
Symbol 1422 MovieClipUses:1421Used by:Timeline
Symbol 1423 GraphicUses:17Used by:Timeline
Symbol 1424 GraphicUses:17Used by:1425
Symbol 1425 MovieClipUses:1424Used by:1428 1435
Symbol 1426 GraphicUses:17Used by:1427
Symbol 1427 MovieClipUses:1426Used by:1428 1435
Symbol 1428 MovieClipUses:1425 1427Used by:1429 1431 1437 1438 1439
Symbol 1429 MovieClipUses:1428Used by:1432
Symbol 1430 MovieClipUses:70 702Used by:1431
Symbol 1431 MovieClipUses:1430 1428Used by:1432
Symbol 1432 MovieClipUses:70 1429 702 1431Used by:Timeline
Symbol 1433 GraphicUses:17Used by:1434
Symbol 1434 MovieClipUses:1433Used by:1435
Symbol 1435 MovieClipUses:1425 1427 1434Used by:1436
Symbol 1436 MovieClipUses:70 702 1435Used by:1437
Symbol 1437 MovieClipUses:70 1428 702 1436Used by:Timeline
Symbol 1438 MovieClipUses:70 702 1428Used by:1439
Symbol 1439 MovieClipUses:70 702 1428 1438Used by:Timeline
Symbol 1440 MovieClipUses:70 702 696Used by:Timeline
Symbol 1441 GraphicUses:17Used by:1442
Symbol 1442 MovieClipUses:1441Used by:1448
Symbol 1443 GraphicUses:17Used by:1446
Symbol 1444 GraphicUsed by:1445
Symbol 1445 MovieClipUses:1444Used by:1446
Symbol 1446 MovieClipUses:1443 1445Used by:1447
Symbol 1447 MovieClipUses:1446Used by:1448
Symbol 1448 MovieClipUses:70 696 1442 700 1447Used by:Timeline
Symbol 1449 MovieClipUses:70 702 696Used by:Timeline
Symbol 1450 MovieClipUses:70 702 696Used by:Timeline
Symbol 1451 MovieClipUses:70 702 696Used by:Timeline
Symbol 1452 GraphicUsed by:1453
Symbol 1453 MovieClipUses:1452 708 711 713Used by:1454
Symbol 1454 MovieClipUses:70 702 696 1453Used by:Timeline
Symbol 1455 MovieClipUses:70 702 696Used by:Timeline
Symbol 1456 MovieClipUses:70 702 696Used by:Timeline
Symbol 1457 MovieClipUses:70 702 696Used by:Timeline
Symbol 1458 MovieClipUses:70 702 696Used by:Timeline
Symbol 1459 GraphicUsed by:1467 1468 1471 1472 1473 1474 1475 1476 1477
Symbol 1460 GraphicUses:17Used by:1461
Symbol 1461 MovieClipUses:1460Used by:1467 1468 1471 1472 1473 1474 1475 1476 1477
Symbol 1462 GraphicUsed by:1463
Symbol 1463 MovieClipUses:1462Used by:1467 1468 1471 1472 1473 1474 1475 1476 1477
Symbol 1464 GraphicUsed by:1465
Symbol 1465 MovieClipUses:1464Used by:1466
Symbol 1466 MovieClipUses:1465Used by:1467 1468 1471 1472 1473 1474 1475 1476 1477
Symbol 1467 MovieClipUses:1459 70 696 1461 1463 1466Used by:Timeline
Symbol 1468 MovieClipUses:1459 70 696 1461 1463 1466Used by:Timeline
Symbol 1469 GraphicUsed by:1470
Symbol 1470 MovieClipUses:1469Used by:1471
Symbol 1471 MovieClipUses:1459 70 696 1461 1463 1466 1470Used by:Timeline
Symbol 1472 MovieClipUses:1459 70 696 1461 1463 1466Used by:Timeline
Symbol 1473 MovieClipUses:1459 70 696 1461 1463 1466Used by:Timeline
Symbol 1474 MovieClipUses:1459 70 696 1461 1463 1466Used by:Timeline
Symbol 1475 MovieClipUses:1459 70 696 1461 1463 1466Used by:Timeline
Symbol 1476 MovieClipUses:1459 70 696 1461 1463 1466Used by:Timeline
Symbol 1477 MovieClipUses:1459 70 696 1461 1463 1466Used by:Timeline
Symbol 1478 GraphicUsed by:1479
Symbol 1479 MovieClipUses:1478Used by:Timeline
Symbol 1480 MovieClipUses:679 1107 1109 1111Used by:Timeline
Symbol 1481 MovieClipUses:1109Used by:Timeline
Symbol 1482 GraphicUsed by:1483
Symbol 1483 MovieClipUses:1482 708 711 713Used by:1484
Symbol 1484 MovieClipUses:70 702 696 1483Used by:Timeline
Symbol 1485 GraphicUsed by:1486
Symbol 1486 MovieClipUses:1485 708 711 713Used by:1487
Symbol 1487 MovieClipUses:70 702 704 706 1486 719Used by:Timeline
Symbol 1488 GraphicUsed by:1489
Symbol 1489 MovieClipUses:1488 708 711 713Used by:1490
Symbol 1490 MovieClipUses:70 702 696 1489Used by:Timeline
Symbol 1491 GraphicUsed by:1492
Symbol 1492 MovieClipUses:1491 708 711 713Used by:1493
Symbol 1493 MovieClipUses:70 702 696 1492Used by:Timeline
Symbol 1494 GraphicUsed by:1495
Symbol 1495 MovieClipUses:1494 708 711 713Used by:1496
Symbol 1496 MovieClipUses:70 702 696 1495Used by:Timeline
Symbol 1497 GraphicUsed by:1498
Symbol 1498 MovieClipUses:1497 708 711 713Used by:1499
Symbol 1499 MovieClipUses:70 702 696 1498Used by:Timeline
Symbol 1500 GraphicUsed by:1501
Symbol 1501 MovieClipUses:1500 708 711 713Used by:1502
Symbol 1502 MovieClipUses:70 702 696 1501Used by:Timeline
Symbol 1503 GraphicUsed by:1504
Symbol 1504 MovieClipUses:1503 708 711 713Used by:1505
Symbol 1505 MovieClipUses:70 702 696 1504Used by:Timeline
Symbol 1506 GraphicUsed by:1512
Symbol 1507 GraphicUsed by:1510
Symbol 1508 GraphicUsed by:1509
Symbol 1509 MovieClipUses:1508Used by:1510 1514
Symbol 1510 MovieClipUses:1507 1509Used by:1511 1518
Symbol 1511 MovieClipUses:1510Used by:1512
Symbol 1512 MovieClipUses:1506 1511Used by:Timeline
Symbol 1513 GraphicUsed by:1514
Symbol 1514 MovieClipUses:1513 1509Used by:1515 1516
Symbol 1515 MovieClipUses:1514Used by:1516
Symbol 1516 MovieClipUses:1514 1515Used by:Timeline
Symbol 1517 GraphicUsed by:1519
Symbol 1518 MovieClipUses:1510Used by:1519
Symbol 1519 MovieClipUses:1517 1518Used by:Timeline
Symbol 1520 GraphicUsed by:1521
Symbol 1521 MovieClipUses:1520Used by:Timeline
Symbol 1522 GraphicUses:13Used by:1523
Symbol 1523 MovieClipUses:1522Used by:Timeline
Symbol 1524 MovieClipUses:679 683 1353Used by:Timeline
Symbol 1525 MovieClipUses:851Used by:1526
Symbol 1526 MovieClipUses:1525Used by:1527
Symbol 1527 MovieClipUses:851 1526Used by:Timeline
Symbol 1528 MovieClipUses:851Used by:1529
Symbol 1529 MovieClipUses:1528Used by:1530
Symbol 1530 MovieClipUses:851 1529Used by:Timeline
Symbol 1531 MovieClipUses:851Used by:1532
Symbol 1532 MovieClipUses:1531Used by:1533
Symbol 1533 MovieClipUses:851 1532Used by:Timeline
Symbol 1534 GraphicUsed by:Timeline
Symbol 1535 GraphicUses:17Used by:1536 2505
Symbol 1536 MovieClipUses:1535Used by:Timeline
Symbol 1537 GraphicUses:17Used by:1538
Symbol 1538 MovieClipUses:1537Used by:Timeline
Symbol 1539 GraphicUses:17Used by:1540
Symbol 1540 MovieClipUses:1539Used by:Timeline
Symbol 1541 MovieClipUses:81 83 675 1255Used by:Timeline
Symbol 1542 MovieClipUses:81 83 675 1255Used by:Timeline
Symbol 1543 GraphicUsed by:1544
Symbol 1544 MovieClipUses:1543Used by:Timeline
Symbol 1545 GraphicUses:17Used by:1546
Symbol 1546 MovieClipUses:1545Used by:Timeline
Symbol 1547 EditableTextUses:792Used by:Timeline
Symbol 1548 TextUses:736Used by:Timeline
Symbol 1549 GraphicUsed by:Timeline
Symbol 1550 MovieClipUses:81 83 675Used by:Timeline
Symbol 1551 MovieClipUses:81 83 675Used by:Timeline
Symbol 1552 EditableTextUses:792Used by:Timeline
Symbol 1553 TextUses:736Used by:Timeline
Symbol 1554 MovieClipUses:70 686Used by:Timeline
Symbol 1555 GraphicUses:17Used by:Timeline
Symbol 1556 GraphicUses:17Used by:1557
Symbol 1557 MovieClipUses:1556Used by:1558
Symbol 1558 MovieClipUses:1557Used by:Timeline
Symbol 1559 GraphicUses:17Used by:1560
Symbol 1560 MovieClipUses:1559Used by:1561
Symbol 1561 MovieClipUses:1560Used by:Timeline
Symbol 1562 GraphicUses:17Used by:1563
Symbol 1563 MovieClipUses:1562Used by:1564
Symbol 1564 MovieClipUses:1563Used by:Timeline
Symbol 1565 GraphicUses:17Used by:1566
Symbol 1566 MovieClipUses:1565Used by:1567
Symbol 1567 MovieClipUses:1566Used by:Timeline
Symbol 1568 GraphicUses:17Used by:1569
Symbol 1569 MovieClipUses:1568Used by:1570
Symbol 1570 MovieClipUses:1569Used by:Timeline
Symbol 1571 GraphicUses:17Used by:1572
Symbol 1572 MovieClipUses:1571Used by:1579
Symbol 1573 GraphicUses:17Used by:1574
Symbol 1574 MovieClipUses:1573Used by:1579
Symbol 1575 GraphicUses:17Used by:1576
Symbol 1576 MovieClipUses:1575Used by:1579
Symbol 1577 MovieClipUses:698Used by:1578
Symbol 1578 MovieClipUses:1577Used by:1579
Symbol 1579 MovieClipUses:1572 1574 1576 1578Used by:Timeline
Symbol 1580 GraphicUsed by:1581
Symbol 1581 MovieClipUses:1580 716Used by:Timeline
Symbol 1582 GraphicUsed by:1583
Symbol 1583 MovieClipUses:1582 1047Used by:Timeline
Symbol 1584 GraphicUsed by:1591
Symbol 1585 GraphicUsed by:1586
Symbol 1586 MovieClipUses:1585Used by:1591 1593 2020 2293 2312 2537
Symbol 1587 GraphicUsed by:1588
Symbol 1588 MovieClipUses:1587 716 718Used by:1591 1593
Symbol 1589 GraphicUsed by:1590
Symbol 1590 MovieClipUses:1589Used by:1591
Symbol 1591 MovieClipUses:1584 70 702 704 706 708 711 1586 1588 1590Used by:Timeline
Symbol 1592 GraphicUsed by:1593
Symbol 1593 MovieClipUses:1592 70 702 704 706 708 711 1391 1586 1588Used by:Timeline
Symbol 1594 MovieClipUses:679 681 683Used by:Timeline
Symbol 1595 GraphicUsed by:1596
Symbol 1596 MovieClipUses:1595 70 702 704 706 708 711 713 1346 1391Used by:Timeline
Symbol 1597 GraphicUsed by:1598
Symbol 1598 MovieClipUses:1597 70 702 704 706 708 711 713 719 721Used by:Timeline
Symbol 1599 GraphicUsed by:1606
Symbol 1600 GraphicUsed by:1601
Symbol 1601 MovieClipUses:1600Used by:1606 1867 2343
Symbol 1602 GraphicUsed by:1603
Symbol 1603 MovieClipUses:1602Used by:1606 1867 2010 2014 2150 2343
Symbol 1604 GraphicUsed by:1605
Symbol 1605 MovieClipUses:1604Used by:1606 2010 2014 2343
Symbol 1606 MovieClipUses:1599 70 702 704 706 708 711 1601 1603 1605Used by:Timeline
Symbol 1607 GraphicUses:17Used by:1608
Symbol 1608 MovieClipUses:1607Used by:1610
Symbol 1609 GraphicUsed by:1610
Symbol 1610 MovieClipUses:1608 1609Used by:Timeline
Symbol 1611 GraphicUsed by:1612
Symbol 1612 MovieClipUses:1611Used by:1613
Symbol 1613 MovieClipUses:1612Used by:1620
Symbol 1614 GraphicUsed by:1615
Symbol 1615 MovieClipUses:1614Used by:1620
Symbol 1616 GraphicUsed by:1619
Symbol 1617 GraphicUsed by:1618
Symbol 1618 MovieClipUses:1617Used by:1619
Symbol 1619 MovieClipUses:1616 1618Used by:1620
Symbol 1620 MovieClipUses:1613 1615 1619Used by:1622
Symbol 1621 MovieClipUses:700Used by:1622
Symbol 1622 MovieClipUses:1620 1621Used by:Timeline
Symbol 1623 GraphicUses:17Used by:1626
Symbol 1624 GraphicUses:17Used by:1625
Symbol 1625 MovieClipUses:1624Used by:1626 1629
Symbol 1626 MovieClipUses:1623 1625Used by:1627
Symbol 1627 MovieClipUses:1626Used by:Timeline
Symbol 1628 GraphicUses:17Used by:1629
Symbol 1629 MovieClipUses:1628 1625Used by:1630
Symbol 1630 MovieClipUses:1629Used by:Timeline
Symbol 1631 GraphicUses:17Used by:1636
Symbol 1632 GraphicUses:17Used by:1633
Symbol 1633 MovieClipUses:1632Used by:1636
Symbol 1634 GraphicUsed by:1635
Symbol 1635 MovieClipUses:1634Used by:1636
Symbol 1636 MovieClipUses:1631 1633 1635Used by:1637
Symbol 1637 MovieClipUses:1636Used by:Timeline
Symbol 1638 GraphicUsed by:1639
Symbol 1639 MovieClipUses:1638Used by:Timeline
Symbol 1640 GraphicUses:17Used by:1641
Symbol 1641 MovieClipUses:1640Used by:Timeline
Symbol 1642 GraphicUses:17Used by:1643
Symbol 1643 MovieClipUses:1642Used by:Timeline
Symbol 1644 GraphicUses:17Used by:1645
Symbol 1645 MovieClipUses:1644Used by:Timeline
Symbol 1646 GraphicUsed by:1647
Symbol 1647 MovieClipUses:1646Used by:1648
Symbol 1648 MovieClipUses:1647Used by:Timeline
Symbol 1649 GraphicUses:17Used by:1650
Symbol 1650 MovieClipUses:1649Used by:Timeline
Symbol 1651 GraphicUses:17Used by:1652
Symbol 1652 MovieClipUses:1651Used by:Timeline
Symbol 1653 GraphicUses:17Used by:1654
Symbol 1654 MovieClipUses:1653Used by:Timeline
Symbol 1655 EditableTextUses:792Used by:Timeline
Symbol 1656 TextUses:736Used by:Timeline
Symbol 1657 MovieClipUses:70 72Used by:Timeline
Symbol 1658 GraphicUsed by:Timeline
Symbol 1659 MovieClipUses:679 681 683Used by:Timeline
Symbol 1660 GraphicUses:1055Used by:1662
Symbol 1661 MovieClipUses:1069Used by:1662 1664
Symbol 1662 MovieClipUses:1660 1058 1060 1062 1064 1066 1068 1661Used by:1665
Symbol 1663 GraphicUses:1055Used by:1664
Symbol 1664 MovieClipUses:1663 1058 1060 1062 1064 1066 1068 1661 9Used by:1665
Symbol 1665 MovieClipUses:1662 1664Used by:Timeline
Symbol 1666 GraphicUsed by:1673
Symbol 1667 GraphicUsed by:1668
Symbol 1668 MovieClipUses:1667Used by:1673 1941 2055 2163
Symbol 1669 GraphicUsed by:1670
Symbol 1670 MovieClipUses:1669 716 718Used by:1673 1941 2055 2163 2473
Symbol 1671 GraphicUsed by:1672
Symbol 1672 MovieClipUses:1671Used by:1673
Symbol 1673 MovieClipUses:1666 70 702 704 706 708 711 1668 1670 1672Used by:Timeline
Symbol 1674 GraphicUses:17Used by:Timeline
Symbol 1675 GraphicUses:17Used by:1676
Symbol 1676 MovieClipUses:1675Used by:1679
Symbol 1677 GraphicUses:17Used by:1678
Symbol 1678 MovieClipUses:1677Used by:1679
Symbol 1679 MovieClipUses:1676 1678Used by:Timeline
Symbol 1680 GraphicUsed by:1681
Symbol 1681 MovieClipUses:1680Used by:Timeline
Symbol 1682 MovieClipUses:886Used by:Timeline
Symbol 1683 GraphicUsed by:1684
Symbol 1684 MovieClipUses:1683Used by:Timeline
Symbol 1685 MovieClipUses:886Used by:Timeline
Symbol 1686 GraphicUses:17Used by:1687
Symbol 1687 MovieClipUses:1686Used by:Timeline
Symbol 1688 EditableTextUses:792Used by:Timeline
Symbol 1689 TextUses:736Used by:Timeline
Symbol 1690 MovieClipUses:70 72Used by:Timeline
Symbol 1691 GraphicUsed by:Timeline
Symbol 1692 GraphicUses:17Used by:1693
Symbol 1693 MovieClipUses:1692Used by:1694
Symbol 1694 MovieClipUses:1693Used by:Timeline
Symbol 1695 GraphicUsed by:1696
Symbol 1696 MovieClipUses:1695Used by:Timeline
Symbol 1697 MovieClipUses:1379 1382 1011Used by:Timeline
Symbol 1698 GraphicUsed by:1699
Symbol 1699 MovieClipUses:1698 1379 1382 1011Used by:Timeline
Symbol 1700 MovieClipUses:1010Used by:Timeline
Symbol 1701 GraphicUsed by:1704
Symbol 1702 GraphicUsed by:1703
Symbol 1703 MovieClipUses:1702 716 718Used by:1704
Symbol 1704 MovieClipUses:1701 70 702 704 706 708 711 713 721 1703Used by:Timeline
Symbol 1705 GraphicUsed by:1714
Symbol 1706 GraphicUsed by:1707
Symbol 1707 MovieClipUses:1706 716 718Used by:1714
Symbol 1708 GraphicUsed by:1709
Symbol 1709 MovieClipUses:1708Used by:1714
Symbol 1710 GraphicUses:17Used by:1711
Symbol 1711 MovieClipUses:1710Used by:1714
Symbol 1712 GraphicUses:17Used by:1713
Symbol 1713 MovieClipUses:1712Used by:1714
Symbol 1714 MovieClipUses:1705 70 702 704 706 708 711 713 1707 1709 698 1711 1713Used by:Timeline
Symbol 1715 GraphicUsed by:1716 1717
Symbol 1716 MovieClipUses:1715Used by:Timeline
Symbol 1717 MovieClipUses:1715Used by:Timeline
Symbol 1718 GraphicUses:17Used by:1719
Symbol 1719 MovieClipUses:1718Used by:Timeline
Symbol 1720 GraphicUses:17Used by:1721
Symbol 1721 MovieClipUses:1720Used by:1730
Symbol 1722 GraphicUsed by:1729
Symbol 1723 GraphicUses:772Used by:1728
Symbol 1724 GraphicUses:772Used by:1725
Symbol 1725 MovieClipUses:1724Used by:1728
Symbol 1726 GraphicUses:772Used by:1727
Symbol 1727 MovieClipUses:1726Used by:1728
Symbol 1728 MovieClipUses:1723 1725 1727Used by:1729
Symbol 1729 MovieClipUses:1722 1728Used by:1730
Symbol 1730 MovieClipUses:1721 1729Used by:Timeline
Symbol 1731 GraphicUses:17Used by:1732
Symbol 1732 MovieClipUses:1731Used by:Timeline
Symbol 1733 EditableTextUses:792Used by:Timeline
Symbol 1734 TextUses:736Used by:Timeline
Symbol 1735 GraphicUsed by:1736
Symbol 1736 MovieClipUses:1735Used by:Timeline
Symbol 1737 GraphicUsed by:1738
Symbol 1738 MovieClipUses:1737Used by:Timeline
Symbol 1739 GraphicUsed by:1740
Symbol 1740 MovieClipUses:1739 1047Used by:Timeline
Symbol 1741 GraphicUsed by:1742
Symbol 1742 MovieClipUses:1741Used by:Timeline
Symbol 1743 GraphicUsed by:1744 1745
Symbol 1744 MovieClipUses:1743Used by:1745
Symbol 1745 MovieClipUses:1743 1744Used by:Timeline
Symbol 1746 MovieClipUses:886Used by:1747
Symbol 1747 MovieClipUses:1746 1255Used by:Timeline
Symbol 1748 GraphicUsed by:1749
Symbol 1749 MovieClipUses:1748Used by:Timeline
Symbol 1750 GraphicUsed by:1751
Symbol 1751 MovieClipUses:1750Used by:Timeline
Symbol 1752 GraphicUsed by:1753
Symbol 1753 MovieClipUses:1752Used by:Timeline
Symbol 1754 GraphicUsed by:1755
Symbol 1755 MovieClipUses:1754Used by:1816
Symbol 1756 GraphicUsed by:1815
Symbol 1757 GraphicUsed by:1815
Symbol 1758 GraphicUsed by:1815
Symbol 1759 GraphicUsed by:1815
Symbol 1760 GraphicUsed by:1815
Symbol 1761 GraphicUsed by:1815
Symbol 1762 GraphicUsed by:1815
Symbol 1763 GraphicUsed by:1815
Symbol 1764 GraphicUsed by:1815
Symbol 1765 GraphicUsed by:1815
Symbol 1766 GraphicUsed by:1815
Symbol 1767 GraphicUsed by:1815
Symbol 1768 GraphicUsed by:1815
Symbol 1769 GraphicUsed by:1815
Symbol 1770 GraphicUsed by:1815
Symbol 1771 GraphicUsed by:1815
Symbol 1772 GraphicUsed by:1815
Symbol 1773 GraphicUsed by:1815
Symbol 1774 GraphicUsed by:1815
Symbol 1775 GraphicUsed by:1815
Symbol 1776 GraphicUsed by:1815
Symbol 1777 GraphicUsed by:1815
Symbol 1778 GraphicUsed by:1815
Symbol 1779 GraphicUsed by:1815
Symbol 1780 GraphicUsed by:1815
Symbol 1781 GraphicUsed by:1815
Symbol 1782 GraphicUsed by:1815
Symbol 1783 GraphicUsed by:1815
Symbol 1784 GraphicUsed by:1815
Symbol 1785 GraphicUsed by:1815
Symbol 1786 GraphicUsed by:1815
Symbol 1787 GraphicUsed by:1815
Symbol 1788 GraphicUsed by:1815
Symbol 1789 GraphicUsed by:1815
Symbol 1790 GraphicUsed by:1815
Symbol 1791 GraphicUsed by:1815
Symbol 1792 GraphicUsed by:1815
Symbol 1793 GraphicUsed by:1815
Symbol 1794 GraphicUsed by:1815
Symbol 1795 GraphicUsed by:1815
Symbol 1796 GraphicUsed by:1815
Symbol 1797 GraphicUsed by:1815
Symbol 1798 GraphicUsed by:1815
Symbol 1799 GraphicUsed by:1815
Symbol 1800 GraphicUsed by:1815
Symbol 1801 GraphicUsed by:1815
Symbol 1802 GraphicUsed by:1815
Symbol 1803 GraphicUsed by:1815
Symbol 1804 GraphicUsed by:1815
Symbol 1805 GraphicUsed by:1815
Symbol 1806 GraphicUsed by:1815
Symbol 1807 GraphicUsed by:1815
Symbol 1808 GraphicUsed by:1815
Symbol 1809 GraphicUsed by:1815
Symbol 1810 GraphicUsed by:1815
Symbol 1811 GraphicUsed by:1815
Symbol 1812 GraphicUsed by:1815
Symbol 1813 GraphicUsed by:1815
Symbol 1814 GraphicUsed by:1815
Symbol 1815 MovieClipUses:1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814Used by:1816
Symbol 1816 MovieClipUses:1755 1815Used by:Timeline
Symbol 1817 GraphicUsed by:1818
Symbol 1818 MovieClipUses:1817Used by:Timeline
Symbol 1819 GraphicUsed by:1820
Symbol 1820 MovieClipUses:1819Used by:Timeline
Symbol 1821 GraphicUsed by:1822
Symbol 1822 MovieClipUses:1821Used by:Timeline
Symbol 1823 GraphicUsed by:1824 2108
Symbol 1824 MovieClipUses:1823Used by:Timeline
Symbol 1825 GraphicUsed by:1826
Symbol 1826 MovieClipUses:1825Used by:Timeline
Symbol 1827 GraphicUsed by:1828 1970 2050 2051
Symbol 1828 MovieClipUses:1827Used by:Timeline
Symbol 1829 GraphicUsed by:1830
Symbol 1830 MovieClipUses:1829Used by:Timeline
Symbol 1831 GraphicUsed by:1832
Symbol 1832 MovieClipUses:1831Used by:Timeline
Symbol 1833 GraphicUsed by:1834 1969 2111 2178 2192
Symbol 1834 MovieClipUses:1833Used by:Timeline
Symbol 1835 GraphicUsed by:1836 2114
Symbol 1836 MovieClipUses:1835Used by:Timeline
Symbol 1837 GraphicUsed by:1838 1973 2115
Symbol 1838 MovieClipUses:1837Used by:Timeline
Symbol 1839 GraphicUsed by:1840
Symbol 1840 MovieClipUses:1839Used by:Timeline
Symbol 1841 GraphicUsed by:1842
Symbol 1842 MovieClipUses:1841Used by:Timeline
Symbol 1843 GraphicUsed by:1844 2117  Timeline
Symbol 1844 MovieClipUses:1843Used by:Timeline
Symbol 1845 GraphicUsed by:1846
Symbol 1846 MovieClipUses:1845Used by:Timeline
Symbol 1847 GraphicUsed by:1848
Symbol 1848 MovieClipUses:1847Used by:Timeline
Symbol 1849 GraphicUsed by:1850
Symbol 1850 MovieClipUses:1849Used by:Timeline
Symbol 1851 MovieClipUses:886Used by:Timeline
Symbol 1852 GraphicUsed by:1853
Symbol 1853 MovieClipUses:1852Used by:Timeline
Symbol 1854 GraphicUsed by:1855
Symbol 1855 MovieClipUses:1854Used by:Timeline
Symbol 1856 MovieClipUses:886Used by:Timeline
Symbol 1857 FontUsed by:1858 1859 1860 1861
Symbol 1858 EditableTextUses:1857Used by:Timeline
Symbol 1859 EditableTextUses:1857Used by:Timeline
Symbol 1860 EditableTextUses:1857Used by:Timeline
Symbol 1861 EditableTextUses:1857Used by:Timeline
Symbol 1862 MovieClipUses:70 72Used by:Timeline
Symbol 1863 MovieClipUses:698Used by:Timeline
Symbol 1864 GraphicUsed by:1867
Symbol 1865 GraphicUsed by:1866
Symbol 1866 MovieClipUses:1865Used by:1867
Symbol 1867 MovieClipUses:1864 70 702 704 706 708 711 1601 1603 1866Used by:Timeline
Symbol 1868 GraphicUsed by:1873
Symbol 1869 GraphicUsed by:1870
Symbol 1870 MovieClipUses:1869Used by:1873
Symbol 1871 GraphicUsed by:1872
Symbol 1872 MovieClipUses:1871Used by:1873
Symbol 1873 MovieClipUses:1868 70 702 704 706 708 711 1391 1870 1872Used by:Timeline
Symbol 1874 GraphicUsed by:1881
Symbol 1875 GraphicUsed by:1876
Symbol 1876 MovieClipUses:1875 716 718Used by:1881
Symbol 1877 GraphicUsed by:1878
Symbol 1878 MovieClipUses:1877Used by:1881 2124 2130 2140 2289
Symbol 1879 GraphicUsed by:1880
Symbol 1880 MovieClipUses:1879Used by:1881
Symbol 1881 MovieClipUses:1874 70 702 704 706 708 711 1876 1878 1880Used by:Timeline
Symbol 1882 GraphicUses:17Used by:1883
Symbol 1883 MovieClipUses:1882Used by:Timeline
Symbol 1884 GraphicUsed by:1885
Symbol 1885 MovieClipUses:1884Used by:Timeline
Symbol 1886 MovieClipUses:731Used by:Timeline
Symbol 1887 GraphicUses:17Used by:Timeline
Symbol 1888 GraphicUses:17Used by:1889
Symbol 1889 MovieClipUses:1888Used by:Timeline
Symbol 1890 GraphicUses:17Used by:1891
Symbol 1891 MovieClipUses:1890Used by:Timeline
Symbol 1892 GraphicUses:17Used by:1893
Symbol 1893 MovieClipUses:1892Used by:Timeline
Symbol 1894 GraphicUses:17Used by:1895
Symbol 1895 MovieClipUses:1894Used by:Timeline
Symbol 1896 GraphicUses:17Used by:1897
Symbol 1897 MovieClipUses:1896Used by:Timeline
Symbol 1898 GraphicUses:17Used by:1899
Symbol 1899 MovieClipUses:1898Used by:Timeline
Symbol 1900 EditableTextUses:792Used by:Timeline
Symbol 1901 TextUses:736Used by:Timeline
Symbol 1902 GraphicUsed by:1903
Symbol 1903 MovieClipUses:1902Used by:1904
Symbol 1904 MovieClipUses:1903Used by:1905
Symbol 1905 MovieClipUses:1264 1904Used by:Timeline
Symbol 1906 MovieClipUses:1269Used by:1909
Symbol 1907 MovieClipUses:1269Used by:1909
Symbol 1908 MovieClipUses:1269Used by:1909
Symbol 1909 MovieClipUses:1906 1907 1908Used by:Timeline
Symbol 1910 MovieClipUses:70 72Used by:Timeline
Symbol 1911 GraphicUsed by:1916
Symbol 1912 GraphicUsed by:1913
Symbol 1913 MovieClipUses:1912 716 718Used by:1916
Symbol 1914 GraphicUsed by:1915
Symbol 1915 MovieClipUses:1914Used by:1916
Symbol 1916 MovieClipUses:1911 70 702 704 706 708 711 713 1913 1915Used by:Timeline
Symbol 1917 MovieClipUses:81 83 675Used by:Timeline
Symbol 1918 MovieClipUses:81 83 675Used by:Timeline
Symbol 1919 GraphicUsed by:1920
Symbol 1920 MovieClipUses:1919 70 702 704 706 708 711 713 1391 1403Used by:Timeline
Symbol 1921 GraphicUsed by:1922
Symbol 1922 MovieClipUses:1921 70 702 704 706 708 711 713 1391 1403Used by:Timeline
Symbol 1923 GraphicUsed by:Timeline
Symbol 1924 GraphicUses:17Used by:1925
Symbol 1925 MovieClipUses:1924Used by:Timeline
Symbol 1926 GraphicUses:17Used by:1927
Symbol 1927 MovieClipUses:1926Used by:Timeline
Symbol 1928 GraphicUsed by:1929
Symbol 1929 MovieClipUses:1928Used by:Timeline
Symbol 1930 GraphicUses:17Used by:1931
Symbol 1931 MovieClipUses:1930Used by:Timeline
Symbol 1932 GraphicUsed by:1935
Symbol 1933 GraphicUses:772Used by:1934
Symbol 1934 MovieClipUses:1933Used by:1935
Symbol 1935 MovieClipUses:1932 1934Used by:Timeline
Symbol 1936 EditableTextUses:792Used by:Timeline
Symbol 1937 TextUses:736Used by:Timeline
Symbol 1938 GraphicUsed by:1941
Symbol 1939 GraphicUsed by:1940
Symbol 1940 MovieClipUses:1939Used by:1941 2163 2473
Symbol 1941 MovieClipUses:1938 70 702 704 706 708 711 1668 1670 1940Used by:Timeline
Symbol 1942 GraphicUsed by:1949
Symbol 1943 GraphicUsed by:1944
Symbol 1944 MovieClipUses:1943 716 718Used by:1949 2059
Symbol 1945 GraphicUsed by:1946
Symbol 1946 MovieClipUses:1945Used by:1949 2059
Symbol 1947 GraphicUsed by:1948
Symbol 1948 MovieClipUses:1947Used by:1949
Symbol 1949 MovieClipUses:1942 70 702 704 706 708 711 1944 1946 1948Used by:Timeline
Symbol 1950 GraphicUsed by:1953
Symbol 1951 GraphicUsed by:1952
Symbol 1952 MovieClipUses:1951Used by:1953 2144
Symbol 1953 MovieClipUses:1950 70 702 704 706 708 711 713 719 1952Used by:Timeline
Symbol 1954 GraphicUsed by:1957
Symbol 1955 GraphicUsed by:1956
Symbol 1956 MovieClipUses:1955Used by:1957
Symbol 1957 MovieClipUses:1954 70 702 704 706 708 711 713 1403 1956Used by:Timeline
Symbol 1958 GraphicUses:17Used by:Timeline
Symbol 1959 GraphicUses:17Used by:1960
Symbol 1960 MovieClipUses:1959Used by:Timeline
Symbol 1961 GraphicUses:17Used by:1962
Symbol 1962 MovieClipUses:1961Used by:Timeline
Symbol 1963 GraphicUses:772Used by:1964
Symbol 1964 MovieClipUses:1963Used by:Timeline
Symbol 1965 GraphicUses:17Used by:1966
Symbol 1966 MovieClipUses:1965Used by:Timeline
Symbol 1967 EditableTextUses:792Used by:Timeline
Symbol 1968 TextUses:736Used by:Timeline
Symbol 1969 MovieClipUses:1833Used by:Timeline
Symbol 1970 MovieClipUses:1827Used by:Timeline
Symbol 1971 GraphicUsed by:1972 2116
Symbol 1972 MovieClipUses:1971Used by:Timeline
Symbol 1973 MovieClipUses:1837Used by:Timeline
Symbol 1974 GraphicUsed by:1975
Symbol 1975 MovieClipUses:1974 70 702 704 706 708 711 713 719 729Used by:Timeline
Symbol 1976 GraphicUsed by:Timeline
Symbol 1977 GraphicUses:17Used by:1978
Symbol 1978 MovieClipUses:1977Used by:Timeline
Symbol 1979 GraphicUses:17Used by:1980
Symbol 1980 MovieClipUses:1979Used by:Timeline
Symbol 1981 GraphicUses:17Used by:1982
Symbol 1982 MovieClipUses:1981Used by:Timeline
Symbol 1983 MovieClipUses:886Used by:Timeline
Symbol 1984 MovieClipUses:886Used by:Timeline
Symbol 1985 GraphicUses:17Used by:1986
Symbol 1986 MovieClipUses:1985Used by:Timeline
Symbol 1987 GraphicUses:17Used by:1988
Symbol 1988 MovieClipUses:1987Used by:Timeline
Symbol 1989 GraphicUses:17Used by:1990
Symbol 1990 MovieClipUses:1989Used by:Timeline
Symbol 1991 GraphicUses:17Used by:1992
Symbol 1992 MovieClipUses:1991Used by:Timeline
Symbol 1993 EditableTextUses:792Used by:Timeline
Symbol 1994 TextUses:736Used by:Timeline
Symbol 1995 MovieClipUses:679 1107 1109 1111Used by:Timeline
Symbol 1996 MovieClipUses:81 83 675Used by:Timeline
Symbol 1997 MovieClipUses:81 83 675Used by:Timeline
Symbol 1998 MovieClipUses:70 686Used by:Timeline
Symbol 1999 GraphicUsed by:2006
Symbol 2000 GraphicUsed by:2001
Symbol 2001 MovieClipUses:2000Used by:2006
Symbol 2002 GraphicUsed by:2003
Symbol 2003 MovieClipUses:2002 718Used by:2006
Symbol 2004 GraphicUsed by:2005
Symbol 2005 MovieClipUses:2004Used by:2006
Symbol 2006 MovieClipUses:1999 70 702 704 706 708 711 2001 2003 2005Used by:Timeline
Symbol 2007 GraphicUsed by:2010
Symbol 2008 GraphicUsed by:2009
Symbol 2009 MovieClipUses:2008Used by:2010
Symbol 2010 MovieClipUses:2007 70 702 704 706 708 711 1603 1605 2009Used by:Timeline
Symbol 2011 GraphicUsed by:2014
Symbol 2012 GraphicUsed by:2013
Symbol 2013 MovieClipUses:2012Used by:2014
Symbol 2014 MovieClipUses:2011 70 702 704 706 708 711 1603 1605 2013Used by:Timeline
Symbol 2015 GraphicUsed by:2020 2537
Symbol 2016 GraphicUsed by:2017
Symbol 2017 MovieClipUses:2016Used by:2020 2293 2312 2537
Symbol 2018 GraphicUsed by:2019
Symbol 2019 MovieClipUses:2018Used by:2020 2293 2537
Symbol 2020 MovieClipUses:2015 70 702 704 706 708 711 1586 2017 2019Used by:Timeline
Symbol 2021 EditableTextUses:792Used by:Timeline
Symbol 2022 TextUses:736Used by:Timeline
Symbol 2023 GraphicUses:1055Used by:2025
Symbol 2024 GraphicUsed by:2025
Symbol 2025 MovieClipUses:2023 1058 1060 1062 1064 1066 1068 1070 2024Used by:Timeline
Symbol 2026 GraphicUses:1055Used by:2027
Symbol 2027 MovieClipUses:2026 1058 1060 1062 1064 1066 1068 1070Used by:2049
Symbol 2028 GraphicUses:1055Used by:2029
Symbol 2029 MovieClipUses:2028Used by:2032
Symbol 2030 GraphicUsed by:2031
Symbol 2031 MovieClipUses:2030Used by:2032
Symbol 2032 MovieClipUses:2029 2031Used by:2048
Symbol 2033 GraphicUses:1055Used by:2034
Symbol 2034 MovieClipUses:2033Used by:2037
Symbol 2035 GraphicUsed by:2036
Symbol 2036 MovieClipUses:2035Used by:2037
Symbol 2037 MovieClipUses:2034 2036Used by:2048
Symbol 2038 GraphicUses:1055Used by:2039
Symbol 2039 MovieClipUses:2038Used by:2042
Symbol 2040 GraphicUsed by:2041
Symbol 2041 MovieClipUses:2040Used by:2042
Symbol 2042 MovieClipUses:2039 2041Used by:2048
Symbol 2043 GraphicUses:1055Used by:2044
Symbol 2044 MovieClipUses:2043Used by:2047
Symbol 2045 GraphicUsed by:2046
Symbol 2046 MovieClipUses:2045Used by:2047
Symbol 2047 MovieClipUses:2044 2046Used by:2048
Symbol 2048 MovieClipUses:2032 2037 1070 2042 2047 9Used by:2049
Symbol 2049 MovieClipUses:2027 2048Used by:Timeline
Symbol 2050 MovieClipUses:1827Used by:Timeline
Symbol 2051 MovieClipUses:1827Used by:Timeline
Symbol 2052 GraphicUsed by:2055
Symbol 2053 GraphicUsed by:2054
Symbol 2054 MovieClipUses:2053Used by:2055
Symbol 2055 MovieClipUses:2052 70 702 704 706 708 711 1668 1670 2054Used by:Timeline
Symbol 2056 GraphicUsed by:2059
Symbol 2057 GraphicUsed by:2058
Symbol 2058 MovieClipUses:2057Used by:2059
Symbol 2059 MovieClipUses:2056 70 702 704 706 708 711 1944 1946 2058Used by:Timeline
Symbol 2060 GraphicUsed by:Timeline
Symbol 2061 GraphicUses:17Used by:2062
Symbol 2062 MovieClipUses:2061Used by:Timeline
Symbol 2063 GraphicUsed by:2064
Symbol 2064 MovieClipUses:2063Used by:Timeline
Symbol 2065 GraphicUsed by:2066
Symbol 2066 MovieClipUses:2065Used by:Timeline
Symbol 2067 GraphicUses:772Used by:2068
Symbol 2068 MovieClipUses:2067Used by:2069
Symbol 2069 MovieClipUses:2068Used by:Timeline
Symbol 2070 GraphicUses:17Used by:2071
Symbol 2071 MovieClipUses:2070Used by:Timeline
Symbol 2072 GraphicUses:17Used by:2073
Symbol 2073 MovieClipUses:2072Used by:Timeline
Symbol 2074 EditableTextUses:792Used by:Timeline
Symbol 2075 TextUses:736Used by:Timeline
Symbol 2076 MovieClipUses:70 72Used by:Timeline
Symbol 2077 MovieClipUses:81 83 675Used by:Timeline
Symbol 2078 MovieClipUses:81 83 675Used by:Timeline
Symbol 2079 GraphicUsed by:2084 2189
Symbol 2080 GraphicUsed by:2081
Symbol 2081 MovieClipUses:2080Used by:2084
Symbol 2082 GraphicUsed by:2083
Symbol 2083 MovieClipUses:2082 716 718Used by:2084
Symbol 2084 MovieClipUses:2079 70 702 704 706 708 711 713 2081 2083Used by:Timeline
Symbol 2085 GraphicUsed by:2092 2283 2343
Symbol 2086 GraphicUsed by:2087
Symbol 2087 MovieClipUses:2086Used by:2092 2152 2165
Symbol 2088 GraphicUsed by:2089
Symbol 2089 MovieClipUses:2088Used by:2092 2152 2165
Symbol 2090 GraphicUsed by:2091
Symbol 2091 MovieClipUses:2090Used by:2092 2152 2165 2203 2225 2268
Symbol 2092 MovieClipUses:2085 70 702 708 711 2087 2089 2091Used by:Timeline
Symbol 2093 GraphicUses:17Used by:2094
Symbol 2094 MovieClipUses:2093Used by:Timeline
Symbol 2095 GraphicUses:772Used by:2096
Symbol 2096 MovieClipUses:2095Used by:Timeline
Symbol 2097 GraphicUses:17Used by:2098
Symbol 2098 MovieClipUses:2097Used by:Timeline
Symbol 2099 MovieClipUses:947Used by:Timeline
Symbol 2100 EditableTextUses:792Used by:Timeline
Symbol 2101 MovieClipUses:947Used by:Timeline
Symbol 2102 TextUses:736Used by:Timeline
Symbol 2103 GraphicUsed by:2106
Symbol 2104 GraphicUsed by:2105
Symbol 2105 MovieClipUses:2104Used by:2106
Symbol 2106 MovieClipUses:2103 2105Used by:2107 2465 2516
Symbol 2107 MovieClipUses:679 683 2106Used by:Timeline
Symbol 2108 MovieClipUses:1823Used by:Timeline
Symbol 2109 GraphicUsed by:2110
Symbol 2110 MovieClipUses:2109Used by:Timeline
Symbol 2111 MovieClipUses:1833Used by:Timeline
Symbol 2112 GraphicUsed by:2113
Symbol 2113 MovieClipUses:2112Used by:Timeline
Symbol 2114 MovieClipUses:1835Used by:Timeline
Symbol 2115 MovieClipUses:1837Used by:Timeline
Symbol 2116 MovieClipUses:1971Used by:Timeline
Symbol 2117 MovieClipUses:1843Used by:Timeline
Symbol 2118 MovieClipUses:70 686Used by:Timeline
Symbol 2119 GraphicUsed by:2124
Symbol 2120 GraphicUsed by:2121
Symbol 2121 MovieClipUses:2120 716 718Used by:2124
Symbol 2122 GraphicUsed by:2123
Symbol 2123 MovieClipUses:2122Used by:2124
Symbol 2124 MovieClipUses:2119 70 702 704 706 708 711 1878 2121 2123Used by:Timeline
Symbol 2125 GraphicUsed by:2130
Symbol 2126 GraphicUsed by:2127
Symbol 2127 MovieClipUses:2126Used by:2130
Symbol 2128 GraphicUsed by:2129
Symbol 2129 MovieClipUses:2128 716 718Used by:2130 2447
Symbol 2130 MovieClipUses:2125 70 702 704 706 708 711 1878 2127 2129Used by:Timeline
Symbol 2131 GraphicUsed by:2134
Symbol 2132 GraphicUsed by:2133
Symbol 2133 MovieClipUses:2132Used by:2134
Symbol 2134 MovieClipUses:2131 70 702 704 706 708 711 713 1403 2133Used by:Timeline
Symbol 2135 GraphicUsed by:2140
Symbol 2136 GraphicUsed by:2137
Symbol 2137 MovieClipUses:2136Used by:2140
Symbol 2138 GraphicUsed by:2139
Symbol 2139 MovieClipUses:2138 716 718Used by:2140
Symbol 2140 MovieClipUses:2135 70 702 704 706 708 711 1878 2137 2139Used by:Timeline
Symbol 2141 GraphicUsed by:2144
Symbol 2142 GraphicUsed by:2143
Symbol 2143 MovieClipUses:2142 718Used by:2144
Symbol 2144 MovieClipUses:2141 70 702 704 706 708 711 713 1952 2143Used by:Timeline
Symbol 2145 GraphicUsed by:2150
Symbol 2146 GraphicUsed by:2147
Symbol 2147 MovieClipUses:2146Used by:2150
Symbol 2148 GraphicUsed by:2149
Symbol 2149 MovieClipUses:2148Used by:2150
Symbol 2150 MovieClipUses:2145 70 702 704 706 708 711 1603 2147 2149Used by:Timeline
Symbol 2151 GraphicUsed by:2152
Symbol 2152 MovieClipUses:2151 70 702 708 711 2087 2089 2091Used by:Timeline
Symbol 2153 GraphicUsed by:2154
Symbol 2154 MovieClipUses:2153 70 702 704 706 708 711 713 1391 1403Used by:Timeline
Symbol 2155 GraphicUsed by:2156
Symbol 2156 MovieClipUses:2155 70 702 704 706 708 711 713 1391 1403Used by:Timeline
Symbol 2157 EditableTextUses:792Used by:Timeline
Symbol 2158 TextUses:736Used by:Timeline
Symbol 2159 GraphicUsed by:Timeline
Symbol 2160 TextUses:24Used by:Timeline
Symbol 2161 MovieClipUses:70 686Used by:Timeline
Symbol 2162 GraphicUsed by:2163
Symbol 2163 MovieClipUses:2162 70 702 704 706 708 711 1668 1670 1940Used by:Timeline
Symbol 2164 GraphicUsed by:2165
Symbol 2165 MovieClipUses:2164 70 702 708 711 2087 2089 2091Used by:Timeline
Symbol 2166 EditableTextUses:792Used by:Timeline
Symbol 2167 TextUses:736Used by:Timeline
Symbol 2168 MovieClipUses:70 72Used by:Timeline
Symbol 2169 GraphicUsed by:Timeline
Symbol 2170 TextUses:24Used by:2171
Symbol 2171 MovieClipUses:2170Used by:Timeline
Symbol 2172 MovieClipUses:81 83 675Used by:Timeline
Symbol 2173 MovieClipUses:81 83 675Used by:Timeline
Symbol 2174 GraphicUses:17Used by:2175
Symbol 2175 MovieClipUses:2174Used by:Timeline
Symbol 2176 EditableTextUses:792Used by:Timeline
Symbol 2177 TextUses:736Used by:Timeline
Symbol 2178 MovieClipUses:1833Used by:Timeline
Symbol 2179 MovieClipUses:70 686Used by:Timeline
Symbol 2180 GraphicUsed by:2181
Symbol 2181 MovieClipUses:2180 70 702 704 706 708 711 713 719 729Used by:Timeline
Symbol 2182 MovieClipUses:81 83 675Used by:Timeline
Symbol 2183 GraphicUsed by:2186
Symbol 2184 GraphicUsed by:2185
Symbol 2185 MovieClipUses:2184Used by:2186
Symbol 2186 MovieClipUses:2183 70 702 704 706 708 711 713 719 2185Used by:Timeline
Symbol 2187 GraphicUsed by:2188
Symbol 2188 MovieClipUses:2187Used by:2189
Symbol 2189 MovieClipUses:2079 70 702 704 706 708 711 713 1346 2188Used by:Timeline
Symbol 2190 EditableTextUses:792Used by:Timeline
Symbol 2191 TextUses:736Used by:Timeline
Symbol 2192 MovieClipUses:1833Used by:Timeline
Symbol 2193 MovieClipUses:886Used by:Timeline
Symbol 2194 MovieClipUses:886Used by:Timeline
Symbol 2195 MovieClipUses:81 83 675Used by:Timeline
Symbol 2196 MovieClipUses:81 83 675Used by:Timeline
Symbol 2197 MovieClipUses:70 686Used by:Timeline
Symbol 2198 GraphicUsed by:2203 2225
Symbol 2199 GraphicUsed by:2200
Symbol 2200 MovieClipUses:2199Used by:2203
Symbol 2201 GraphicUsed by:2202
Symbol 2202 MovieClipUses:2201Used by:2203
Symbol 2203 MovieClipUses:2198 70 702 708 711 2091 2200 2202Used by:Timeline
Symbol 2204 GraphicUsed by:2207
Symbol 2205 GraphicUsed by:2206
Symbol 2206 MovieClipUses:2205Used by:2207
Symbol 2207 MovieClipUses:2204 70 702 704 706 708 711 713 719 2206Used by:Timeline
Symbol 2208 GraphicUsed by:2211
Symbol 2209 GraphicUsed by:2210
Symbol 2210 MovieClipUses:2209Used by:2211
Symbol 2211 MovieClipUses:2208 70 702 704 706 708 711 713 719 2210Used by:Timeline
Symbol 2212 MovieClipUses:679 681 683Used by:Timeline
Symbol 2213 GraphicUsed by:2214 2215
Symbol 2214 MovieClipUses:2213Used by:Timeline
Symbol 2215 MovieClipUses:2213Used by:Timeline
Symbol 2216 GraphicUsed by:2217
Symbol 2217 MovieClipUses:2216Used by:2225
Symbol 2218 GraphicUsed by:2219
Symbol 2219 MovieClipUses:2218Used by:2225
Symbol 2220 GraphicUsed by:2221
Symbol 2221 MovieClipUses:2220Used by:2225
Symbol 2222 GraphicUsed by:2223
Symbol 2223 MovieClipUses:2222Used by:2225
Symbol 2224 GraphicUsed by:2225
Symbol 2225 MovieClipUses:2198 70 702 708 711 2091 2217 2219 2221 2223 2224Used by:Timeline
Symbol 2226 GraphicUsed by:2227
Symbol 2227 MovieClipUses:2226 70 702 704 706 708 711 713 719 1342Used by:Timeline
Symbol 2228 MovieClipUses:886Used by:Timeline
Symbol 2229 GraphicUses:17Used by:2230
Symbol 2230 MovieClipUses:2229Used by:Timeline
Symbol 2231 GraphicUses:17Used by:2232
Symbol 2232 MovieClipUses:2231Used by:Timeline
Symbol 2233 GraphicUses:17Used by:2234
Symbol 2234 MovieClipUses:2233Used by:Timeline
Symbol 2235 GraphicUses:17Used by:2236
Symbol 2236 MovieClipUses:2235Used by:Timeline
Symbol 2237 GraphicUses:17Used by:2238
Symbol 2238 MovieClipUses:2237Used by:Timeline
Symbol 2239 GraphicUses:17Used by:2240
Symbol 2240 MovieClipUses:2239Used by:Timeline
Symbol 2241 GraphicUses:17Used by:2242
Symbol 2242 MovieClipUses:2241Used by:Timeline
Symbol 2243 GraphicUses:17Used by:2244
Symbol 2244 MovieClipUses:2243Used by:Timeline
Symbol 2245 GraphicUsed by:2248
Symbol 2246 GraphicUsed by:2247
Symbol 2247 MovieClipUses:2246Used by:2248
Symbol 2248 MovieClipUses:2245 70 702 704 706 708 711 713 719 2247Used by:Timeline
Symbol 2249 GraphicUses:17Used by:2250
Symbol 2250 MovieClipUses:2249Used by:Timeline
Symbol 2251 MovieClipUses:851Used by:Timeline
Symbol 2252 MovieClipUses:851Used by:Timeline
Symbol 2253 MovieClipUses:851Used by:Timeline
Symbol 2254 MovieClipUses:851Used by:Timeline
Symbol 2255 MovieClipUses:851Used by:Timeline
Symbol 2256 EditableTextUses:792Used by:Timeline
Symbol 2257 GraphicUses:772Used by:2258
Symbol 2258 MovieClipUses:2257Used by:Timeline
Symbol 2259 TextUses:736Used by:Timeline
Symbol 2260 MovieClipUses:70 72Used by:Timeline
Symbol 2261 GraphicUsed by:2268
Symbol 2262 GraphicUsed by:2263
Symbol 2263 MovieClipUses:2262Used by:2268
Symbol 2264 GraphicUsed by:2265
Symbol 2265 MovieClipUses:2264Used by:2268
Symbol 2266 GraphicUsed by:2267
Symbol 2267 MovieClipUses:2266Used by:2268
Symbol 2268 MovieClipUses:2261 70 702 708 711 2091 2263 2265 2267Used by:Timeline
Symbol 2269 GraphicUsed by:2276
Symbol 2270 GraphicUsed by:2271
Symbol 2271 MovieClipUses:2270Used by:2276
Symbol 2272 GraphicUsed by:2273
Symbol 2273 MovieClipUses:2272Used by:2276
Symbol 2274 GraphicUsed by:2275
Symbol 2275 MovieClipUses:2274Used by:2276
Symbol 2276 MovieClipUses:2269 70 702 704 706 708 711 2271 2273 2275Used by:Timeline
Symbol 2277 GraphicUsed by:2278
Symbol 2278 MovieClipUses:2277Used by:2283
Symbol 2279 GraphicUsed by:2280
Symbol 2280 MovieClipUses:2279Used by:2283
Symbol 2281 GraphicUsed by:2282
Symbol 2282 MovieClipUses:2281Used by:2283
Symbol 2283 MovieClipUses:2085 70 702 704 706 708 711 2278 2280 2282Used by:Timeline
Symbol 2284 GraphicUsed by:2289
Symbol 2285 GraphicUsed by:2286
Symbol 2286 MovieClipUses:2285 716 718Used by:2289
Symbol 2287 GraphicUsed by:2288
Symbol 2288 MovieClipUses:2287Used by:2289
Symbol 2289 MovieClipUses:2284 70 702 704 706 708 711 1878 2286 2288Used by:Timeline
Symbol 2290 GraphicUsed by:Timeline
Symbol 2291 GraphicUsed by:2293
Symbol 2292 GraphicUsed by:2293
Symbol 2293 MovieClipUses:2291 70 702 704 706 708 711 1586 2017 2019 2292Used by:Timeline
Symbol 2294 GraphicUses:17Used by:2295
Symbol 2295 MovieClipUses:2294Used by:Timeline
Symbol 2296 GraphicUses:17Used by:2299
Symbol 2297 GraphicUses:17Used by:2298
Symbol 2298 MovieClipUses:2297Used by:2299
Symbol 2299 MovieClipUses:2296 2298Used by:Timeline
Symbol 2300 GraphicUsed by:2301
Symbol 2301 MovieClipUses:2300Used by:Timeline
Symbol 2302 GraphicUsed by:2303
Symbol 2303 MovieClipUses:2302Used by:Timeline
Symbol 2304 GraphicUses:772Used by:2305
Symbol 2305 MovieClipUses:2304Used by:Timeline
Symbol 2306 GraphicUses:17Used by:2307
Symbol 2307 MovieClipUses:2306Used by:Timeline
Symbol 2308 MovieClipUses:947Used by:Timeline
Symbol 2309 GraphicUsed by:2312
Symbol 2310 GraphicUsed by:2311
Symbol 2311 MovieClipUses:2310Used by:2312
Symbol 2312 MovieClipUses:2309 70 702 704 706 708 711 1586 2017 2311Used by:Timeline
Symbol 2313 MovieClipUses:81 83 675Used by:Timeline
Symbol 2314 MovieClipUses:81 83 675Used by:Timeline
Symbol 2315 GraphicUses:17Used by:2316
Symbol 2316 MovieClipUses:2315Used by:Timeline
Symbol 2317 GraphicUses:772Used by:2318
Symbol 2318 MovieClipUses:2317Used by:Timeline
Symbol 2319 EditableTextUses:792Used by:Timeline
Symbol 2320 MovieClipUses:947Used by:Timeline
Symbol 2321 TextUses:736Used by:Timeline
Symbol 2322 MovieClipUses:70 686Used by:Timeline
Symbol 2323 GraphicUsed by:2328
Symbol 2324 GraphicUsed by:2325
Symbol 2325 MovieClipUses:2324 716 718Used by:2328 2411
Symbol 2326 GraphicUsed by:2327
Symbol 2327 MovieClipUses:2326Used by:2328
Symbol 2328 MovieClipUses:2323 70 702 704 706 708 711 713 2325 2327Used by:Timeline
Symbol 2329 GraphicUsed by:2336
Symbol 2330 GraphicUsed by:2331
Symbol 2331 MovieClipUses:2330Used by:2336
Symbol 2332 GraphicUsed by:2333
Symbol 2333 MovieClipUses:2332Used by:2336
Symbol 2334 GraphicUsed by:2335
Symbol 2335 MovieClipUses:2334Used by:2336
Symbol 2336 MovieClipUses:2329 70 702 708 711 2331 2333 2335Used by:Timeline
Symbol 2337 GraphicUsed by:2342
Symbol 2338 GraphicUsed by:2339
Symbol 2339 MovieClipUses:2338Used by:2342
Symbol 2340 GraphicUsed by:2341
Symbol 2341 MovieClipUses:2340 716 718Used by:2342
Symbol 2342 MovieClipUses:2337 70 702 704 706 708 711 713 2339 719 2341Used by:Timeline
Symbol 2343 MovieClipUses:2085 70 702 704 706 708 711 1601 1603 1605Used by:Timeline
Symbol 2344 GraphicUsed by:2349
Symbol 2345 GraphicUsed by:2346
Symbol 2346 MovieClipUses:2345 716 718Used by:2349
Symbol 2347 GraphicUsed by:2348
Symbol 2348 MovieClipUses:2347Used by:2349
Symbol 2349 MovieClipUses:2344 70 702 704 706 708 711 713 2346 2348Used by:Timeline
Symbol 2350 GraphicUses:17Used by:2351
Symbol 2351 MovieClipUses:2350Used by:Timeline
Symbol 2352 GraphicUses:17Used by:2353
Symbol 2353 MovieClipUses:2352Used by:Timeline
Symbol 2354 GraphicUsed by:2363
Symbol 2355 GraphicUses:17Used by:2356
Symbol 2356 MovieClipUses:2355Used by:2363
Symbol 2357 GraphicUses:17Used by:2358
Symbol 2358 MovieClipUses:2357Used by:2363
Symbol 2359 GraphicUsed by:2360
Symbol 2360 MovieClipUses:2359 716 718Used by:2363
Symbol 2361 GraphicUsed by:2362
Symbol 2362 MovieClipUses:2361Used by:2363
Symbol 2363 MovieClipUses:2354 70 702 704 706 708 711 713 2356 2358 2360 698 2362Used by:Timeline
Symbol 2364 MovieClipUses:673Used by:Timeline
Symbol 2365 MovieClipUses:673Used by:Timeline
Symbol 2366 MovieClipUses:886Used by:Timeline
Symbol 2367 MovieClipUses:886Used by:Timeline
Symbol 2368 GraphicUses:17Used by:2369
Symbol 2369 MovieClipUses:2368Used by:Timeline
Symbol 2370 GraphicUses:17Used by:2371
Symbol 2371 MovieClipUses:2370Used by:Timeline
Symbol 2372 GraphicUses:17Used by:2373
Symbol 2373 MovieClipUses:2372Used by:Timeline
Symbol 2374 MovieClipUses:886Used by:Timeline
Symbol 2375 GraphicUses:17Used by:2376
Symbol 2376 MovieClipUses:2375Used by:Timeline
Symbol 2377 GraphicUses:17Used by:2378
Symbol 2378 MovieClipUses:2377Used by:Timeline
Symbol 2379 GraphicUses:17Used by:2380
Symbol 2380 MovieClipUses:2379Used by:Timeline
Symbol 2381 GraphicUses:17Used by:2382
Symbol 2382 MovieClipUses:2381Used by:Timeline
Symbol 2383 EditableTextUses:792Used by:Timeline
Symbol 2384 TextUses:736Used by:Timeline
Symbol 2385 GraphicUses:17Used by:2386
Symbol 2386 MovieClipUses:2385Used by:Timeline
Symbol 2387 MovieClipUses:70 686Used by:Timeline
Symbol 2388 GraphicUsed by:2393
Symbol 2389 GraphicUsed by:2390
Symbol 2390 MovieClipUses:2389 716 718Used by:2393
Symbol 2391 GraphicUsed by:2392
Symbol 2392 MovieClipUses:2391Used by:2393
Symbol 2393 MovieClipUses:2388 70 702 704 706 708 711 713 2390 2392Used by:Timeline
Symbol 2394 MovieClipUses:679 681 683Used by:Timeline
Symbol 2395 MovieClipUses:679 681 683Used by:Timeline
Symbol 2396 MovieClipUses:679 681 683Used by:Timeline
Symbol 2397 MovieClipUses:947Used by:Timeline
Symbol 2398 GraphicUsed by:2406
Symbol 2399 MovieClipUses:701Used by:2406
Symbol 2400 GraphicUsed by:2401
Symbol 2401 MovieClipUses:2400Used by:2406
Symbol 2402 GraphicUsed by:2403
Symbol 2403 MovieClipUses:2402Used by:2406
Symbol 2404 GraphicUsed by:2405
Symbol 2405 MovieClipUses:2404Used by:2406
Symbol 2406 MovieClipUses:2398 70 2399 708 711 2401 2403 2405Used by:Timeline
Symbol 2407 GraphicUsed by:2411
Symbol 2408 MovieClipUses:696 701Used by:2411
Symbol 2409 GraphicUsed by:2410
Symbol 2410 MovieClipUses:2409Used by:2411
Symbol 2411 MovieClipUses:2407 70 704 706 2408 708 711 713 2325 2410Used by:Timeline
Symbol 2412 GraphicUsed by:2424
Symbol 2413 GraphicUses:17Used by:2414
Symbol 2414 MovieClipUses:2413Used by:2424 2529 2530 2534
Symbol 2415 GraphicUsed by:2416
Symbol 2416 MovieClipUses:2415Used by:2417
Symbol 2417 MovieClipUses:2416Used by:2424 2529 2530 2534
Symbol 2418 GraphicUsed by:2419
Symbol 2419 MovieClipUses:2418Used by:2424 2529 2530 2534
Symbol 2420 GraphicUsed by:2421
Symbol 2421 MovieClipUses:2420 716 718Used by:2424 2529 2530 2534
Symbol 2422 GraphicUsed by:2423
Symbol 2423 MovieClipUses:2422Used by:2424 2529 2530
Symbol 2424 MovieClipUses:2412 70 702 704 706 2414 2417 2419 2421 2423Used by:Timeline
Symbol 2425 MovieClipUses:886Used by:Timeline
Symbol 2426 GraphicUsed by:2427
Symbol 2427 MovieClipUses:2426Used by:Timeline
Symbol 2428 GraphicUsed by:2429
Symbol 2429 MovieClipUses:2428Used by:Timeline
Symbol 2430 GraphicUsed by:2431
Symbol 2431 MovieClipUses:2430Used by:Timeline
Symbol 2432 GraphicUsed by:2435
Symbol 2433 GraphicUsed by:2434
Symbol 2434 MovieClipUses:2433Used by:2435
Symbol 2435 MovieClipUses:2432 70 702 704 706 708 711 713 1403 2434Used by:Timeline
Symbol 2436 GraphicUsed by:2441
Symbol 2437 GraphicUsed by:2438
Symbol 2438 MovieClipUses:2437 716 718Used by:2441 2451
Symbol 2439 GraphicUsed by:2440
Symbol 2440 MovieClipUses:2439Used by:2441 2451
Symbol 2441 MovieClipUses:2436 70 702 704 706 708 711 713 2438 2440Used by:Timeline
Symbol 2442 GraphicUsed by:2447
Symbol 2443 GraphicUsed by:2444
Symbol 2444 MovieClipUses:2443Used by:2447
Symbol 2445 GraphicUsed by:2446
Symbol 2446 MovieClipUses:2445Used by:2447
Symbol 2447 MovieClipUses:2442 70 702 704 706 708 711 2129 2444 2446Used by:Timeline
Symbol 2448 GraphicUses:17Used by:2449
Symbol 2449 MovieClipUses:2448Used by:Timeline
Symbol 2450 GraphicUsed by:2451
Symbol 2451 MovieClipUses:2450 70 702 704 706 708 711 713 2438 2440Used by:Timeline
Symbol 2452 GraphicUses:17Used by:2453
Symbol 2453 MovieClipUses:2452Used by:Timeline
Symbol 2454 GraphicUses:17Used by:2455
Symbol 2455 MovieClipUses:2454Used by:Timeline
Symbol 2456 GraphicUses:772Used by:2457
Symbol 2457 MovieClipUses:2456Used by:Timeline
Symbol 2458 GraphicUses:772Used by:2459
Symbol 2459 MovieClipUses:2458Used by:Timeline
Symbol 2460 EditableTextUses:792Used by:Timeline
Symbol 2461 TextUses:736Used by:Timeline
Symbol 2462 MovieClipUses:70 72Used by:Timeline
Symbol 2463 MovieClipUses:679 1107 1109 1111Used by:Timeline
Symbol 2464 MovieClipUses:81 83 675Used by:Timeline
Symbol 2465 MovieClipUses:679 683 2106Used by:Timeline
Symbol 2466 MovieClipUses:679 681 683Used by:Timeline
Symbol 2467 MovieClipUses:679 681 683Used by:Timeline
Symbol 2468 MovieClipUses:679 681 683Used by:Timeline
Symbol 2469 MovieClipUses:679 681 683Used by:Timeline
Symbol 2470 GraphicUsed by:2473
Symbol 2471 GraphicUsed by:2472
Symbol 2472 MovieClipUses:2471Used by:2473
Symbol 2473 MovieClipUses:2470 70 702 704 706 708 711 1670 1940 2472Used by:Timeline
Symbol 2474 GraphicUsed by:Timeline
Symbol 2475 GraphicUsed by:2478
Symbol 2476 GraphicUsed by:2477
Symbol 2477 MovieClipUses:2476Used by:2478
Symbol 2478 MovieClipUses:2475 70 702 704 706 708 711 713 1403 2477Used by:Timeline
Symbol 2479 GraphicUsed by:2482
Symbol 2480 GraphicUsed by:2481
Symbol 2481 MovieClipUses:2480 716 718Used by:2482
Symbol 2482 MovieClipUses:2479 70 702 704 706 708 711 713 1391 2481Used by:Timeline
Symbol 2483 GraphicUsed by:2488
Symbol 2484 GraphicUsed by:2485
Symbol 2485 MovieClipUses:2484Used by:2488
Symbol 2486 GraphicUsed by:2487
Symbol 2487 MovieClipUses:2486 716 718Used by:2488
Symbol 2488 MovieClipUses:2483 70 702 704 706 708 711 713 2485 2487Used by:Timeline
Symbol 2489 GraphicUsed by:2494
Symbol 2490 GraphicUsed by:2491
Symbol 2491 MovieClipUses:2490Used by:2494 2496 2498
Symbol 2492 GraphicUsed by:2493
Symbol 2493 MovieClipUses:2492 716 718Used by:2494 2496 2498
Symbol 2494 MovieClipUses:2489 70 702 704 706 708 711 713 2491 2493Used by:Timeline
Symbol 2495 GraphicUsed by:2496 2525
Symbol 2496 MovieClipUses:2495 70 702 704 706 708 711 713 2491 2493Used by:Timeline
Symbol 2497 GraphicUsed by:2498
Symbol 2498 MovieClipUses:2497 70 702 704 706 708 711 713 2491 2493Used by:Timeline
Symbol 2499 GraphicUses:17Used by:2500
Symbol 2500 MovieClipUses:2499Used by:Timeline
Symbol 2501 GraphicUses:17Used by:2502
Symbol 2502 MovieClipUses:2501Used by:Timeline
Symbol 2503 GraphicUses:17Used by:2504
Symbol 2504 MovieClipUses:2503Used by:Timeline
Symbol 2505 MovieClipUses:1535Used by:2508
Symbol 2506 GraphicUses:17Used by:2507
Symbol 2507 MovieClipUses:2506Used by:2508
Symbol 2508 MovieClipUses:2505 2507Used by:Timeline
Symbol 2509 GraphicUses:17Used by:2510
Symbol 2510 MovieClipUses:2509Used by:Timeline
Symbol 2511 GraphicUses:772Used by:2512
Symbol 2512 MovieClipUses:2511Used by:Timeline
Symbol 2513 EditableTextUses:792Used by:Timeline
Symbol 2514 TextUses:736Used by:Timeline
Symbol 2515 MovieClipUses:70 72Used by:Timeline
Symbol 2516 MovieClipUses:679 683 2106Used by:Timeline
Symbol 2517 MovieClipUses:81 83 675Used by:Timeline
Symbol 2518 MovieClipUses:81 83 675Used by:Timeline
Symbol 2519 MovieClipUses:679 681 683Used by:Timeline
Symbol 2520 GraphicUsed by:Timeline
Symbol 2521 GraphicUsed by:2524
Symbol 2522 GraphicUsed by:2523
Symbol 2523 MovieClipUses:2522Used by:2524 2525
Symbol 2524 MovieClipUses:2521 70 702 704 706 708 711 713 1403 2523Used by:Timeline
Symbol 2525 MovieClipUses:2495 70 702 704 706 708 711 713 1403 2523Used by:Timeline
Symbol 2526 EditableTextUses:792Used by:Timeline
Symbol 2527 TextUses:736Used by:Timeline
Symbol 2528 GraphicUsed by:2529 2530
Symbol 2529 MovieClipUses:2528 70 702 704 706 2414 2417 2419 2421 2423Used by:Timeline
Symbol 2530 MovieClipUses:2528 70 702 704 706 2414 2417 2419 2421 2423Used by:Timeline
Symbol 2531 GraphicUsed by:2534
Symbol 2532 GraphicUsed by:2533
Symbol 2533 MovieClipUses:2532Used by:2534
Symbol 2534 MovieClipUses:2531 70 702 704 706 2414 2417 2419 2421 2533Used by:Timeline
Symbol 2535 GraphicUsed by:Timeline
Symbol 2536 GraphicUsed by:2537
Symbol 2537 MovieClipUses:2015 70 702 704 706 708 711 1586 2017 2019 2536Used by:Timeline
Symbol 2538 EditableTextUses:792Used by:Timeline
Symbol 2539 TextUses:736Used by:Timeline
Symbol 2540 GraphicUsed by:2545
Symbol 2541 FontUsed by:2543
Symbol 2542 FontUsed by:2543 2544
Symbol 2543 TextUses:2541 2542Used by:2545
Symbol 2544 TextUses:2542Used by:2545
Symbol 2545 MovieClipUses:2540 2543 2544Used by:2546
Symbol 2546 MovieClipUses:2545Used by:2550
Symbol 2547 SoundUsed by:2550
Symbol 2548 SoundUsed by:2550
Symbol 2549 SoundUsed by:2550
Symbol 2550 MovieClipUses:2546 2547 2548 2549Used by:Timeline
Symbol 2551 GraphicUsed by:Timeline
Symbol 2552 TextUses:61Used by:2553
Symbol 2553 MovieClipUses:2552Used by:Timeline

Instance Names

"backgroundtexture"Frame 1Symbol 15 MovieClip
"leftwall"Frame 1Symbol 19 MovieClip
"leftwall"Frame 1Symbol 19 MovieClip
"rightwall"Frame 1Symbol 19 MovieClip
"adBox"Frame 1Symbol 29 MovieClip
"rightwall"Frame 2Symbol 19 MovieClip
"you_understand_obj"Frame 3Symbol 65 MovieClip
"optionkey"Frame 3Symbol 73 MovieClip
"finish4"Frame 3Symbol 73 MovieClip
"finish2"Frame 3Symbol 73 MovieClip
"finish3"Frame 3Symbol 73 MovieClip
"playkey"Frame 3Symbol 75 MovieClip
"ball2"Frame 3Symbol 677 MovieClip
"bluekey"Frame 3Symbol 684 MovieClip
"orangekey"Frame 3Symbol 684 MovieClip
"greenkey"Frame 3Symbol 684 MovieClip
"redkey"Frame 3Symbol 684 MovieClip
"finish7"Frame 3Symbol 687 MovieClip
"finish8"Frame 3Symbol 687 MovieClip
"divider"Frame 3Symbol 69 MovieClip
"ball1"Frame 3Symbol 676 MovieClip
"redwall"Frame 3Symbol 722 MovieClip
"greenwall"Frame 3Symbol 724 MovieClip
"bluewall"Frame 3Symbol 726 MovieClip
"orangewall"Frame 3Symbol 730 MovieClip
"leftwall"Frame 3Symbol 19 MovieClip
"topwall"Frame 3Symbol 735 MovieClip
"middlewall"Frame 3Symbol 19 MovieClip
"rightwall"Frame 3Symbol 19 MovieClip
"bottomwall"Frame 3Symbol 735 MovieClip
"option2"Frame 3Symbol 888 MovieClip
"expander"Frame 3Symbol 920 MovieClip
"option3"Frame 3Symbol 959 MovieClip
"option9"Frame 3Symbol 968 MovieClip
"BN"Frame 3Symbol 970 MovieClip
"QW"Frame 3Symbol 972 MovieClip
"P"Frame 3Symbol 974 MovieClip
"restartbutton"Frame 3Symbol 977 Button
"options"Frame 3Symbol 979 MovieClip
"win"Frame 3Symbol 1152 MovieClip
"instruction"Frame 3Symbol 1183 MovieClip
"option"Frame 3Symbol 1252 MovieClip
"expander"Frame 3Symbol 920 MovieClip
"backgroundtexture"Frame 4Symbol 15 MovieClip
"greenwall"Frame 4Symbol 1021 MovieClip
"finish"Frame 4Symbol 73 MovieClip
"ball2"Frame 4Symbol 1256 MovieClip
"ball1"Frame 4Symbol 1257 MovieClip
"timedisplayobj"Frame 4Symbol 1258 EditableText
"timedisplayobj"Frame 4Symbol 1261 EditableText
"youwin"Frame 4Symbol 1268 MovieClip
"winningscreen"Frame 4Symbol 1273 MovieClip
"finish"Frame 5Symbol 73 MovieClip
"orangekey"Frame 5Symbol 684 MovieClip
"pinkkey"Frame 5Symbol 1274 MovieClip
"pinkwall"Frame 5Symbol 1276 MovieClip
"greenwall"Frame 5Symbol 724 MovieClip
"orangewall"Frame 5Symbol 730 MovieClip
"ball1"Frame 5Symbol 1277 MovieClip
"ball2"Frame 5Symbol 1278 MovieClip
"topwall"Frame 5Symbol 1280 MovieClip
"timedisplayobj"Frame 5Symbol 1281 EditableText
"decoy2"Frame 6Symbol 1291 MovieClip
"decoy"Frame 6Symbol 1295 MovieClip
"detector1"Frame 6Symbol 1296 MovieClip
"ball1"Frame 6Symbol 1297 MovieClip
"ball2"Frame 6Symbol 1298 MovieClip
"greenwall"Frame 6Symbol 1299 MovieClip
"orangewall"Frame 6Symbol 1301 MovieClip
"blackwall"Frame 6Symbol 19 MovieClip
"topwall"Frame 6Symbol 735 MovieClip
"timedisplayobj"Frame 6Symbol 1302 EditableText
"finish"Frame 7Symbol 687 MovieClip
"decoy"Frame 7Symbol 1306 MovieClip
"decoy2"Frame 7Symbol 1310 MovieClip
"pinkkey"Frame 7Symbol 1274 MovieClip
"ball1"Frame 7Symbol 1311 MovieClip
"ball2"Frame 7Symbol 1312 MovieClip
"pinkwall67"Frame 7Symbol 1339 MovieClip
"pinkwall"Frame 7Symbol 1343 MovieClip
"greenwall"Frame 7Symbol 1349 MovieClip
"middlewall"Frame 7Symbol 1351 MovieClip
"blackwallrightsidetop"Frame 7Symbol 19 MovieClip
"blackwallleftsidemiddle"Frame 7Symbol 19 MovieClip
"pinkstop"Frame 7Symbol 1354 MovieClip
"timedisplayobj"Frame 7Symbol 1363 EditableText
"finish"Frame 8Symbol 73 MovieClip
"orangestop"Frame 8Symbol 1354 MovieClip
"orangekey"Frame 8Symbol 684 MovieClip
"orangewall"Frame 8Symbol 1370 MovieClip
"pressp"Frame 8Symbol 1373 MovieClip
"ball2"Frame 8Symbol 1374 MovieClip
"ball1"Frame 8Symbol 1375 MovieClip
"middlewall"Frame 8Symbol 19 MovieClip
"blackwall"Frame 8Symbol 19 MovieClip
"timedisplayobj"Frame 8Symbol 1376 EditableText
"finish"Frame 9Symbol 687 MovieClip
"greenwall2"Frame 9Symbol 1386 MovieClip
"greenkey"Frame 9Symbol 684 MovieClip
"pinkkey"Frame 9Symbol 1274 MovieClip
"greenstop"Frame 9Symbol 1354 MovieClip
"pinkwall1"Frame 9Symbol 1387 MovieClip
"ball1"Frame 9Symbol 1257 MovieClip
"ball2"Frame 9Symbol 1256 MovieClip
"orangewall1"Frame 9Symbol 1388 MovieClip
"pinkwall"Frame 9Symbol 1392 MovieClip
"orangewall"Frame 9Symbol 1394 MovieClip
"greenwall"Frame 9Symbol 1398 MovieClip
"leftsidewall"Frame 9Symbol 19 MovieClip
"rightsidewall"Frame 9Symbol 19 MovieClip
"timedisplayobj"Frame 9Symbol 1399 EditableText
"decoy2"Frame 10Symbol 1291 MovieClip
"decoy"Frame 10Symbol 1295 MovieClip
"bluewall1"Frame 10Symbol 1404 MovieClip
"detector1"Frame 10Symbol 1296 MovieClip
"ball1"Frame 10Symbol 1257 MovieClip
"ball2"Frame 10Symbol 1256 MovieClip
"pinkwall2"Frame 10Symbol 1386 MovieClip
"orangekey"Frame 10Symbol 684 MovieClip
"bluewall21"Frame 10Symbol 1405 MovieClip
"bluewall11"Frame 10Symbol 1405 MovieClip
"greenwall1"Frame 10Symbol 1406 MovieClip
"greenwall"Frame 10Symbol 1408 MovieClip
"pinkwall"Frame 10Symbol 1409 MovieClip
"bluewall2"Frame 10Symbol 1413 MovieClip
"bluekey"Frame 10Symbol 1274 MovieClip
"orangewall"Frame 10Symbol 1417 MovieClip
"r3"Frame 10Symbol 19 MovieClip
"l1"Frame 10Symbol 19 MovieClip
"l2"Frame 10Symbol 19 MovieClip
"l3"Frame 10Symbol 19 MovieClip
"timedisplayobj"Frame 10Symbol 1418 EditableText
"youwin"Frame 10Symbol 1268 MovieClip
"decoy"Frame 11Symbol 1306 MovieClip
"decoy2"Frame 11Symbol 1310 MovieClip
"greenwall"Frame 11Symbol 1432 MovieClip
"orangewall"Frame 11Symbol 1437 MovieClip
"bluewall"Frame 11Symbol 1439 MovieClip
"orangewall2"Frame 11Symbol 1388 MovieClip
"greenwall2nn nnnbbbbn"Frame 11Symbol 1386 MovieClip
"pinkwall"Frame 11Symbol 1387 MovieClip
"blue_transparent2"Frame 11Symbol 1512 MovieClip
"orange_transparent"Frame 11Symbol 1516 MovieClip
"green_transparent"Frame 11Symbol 1519 MovieClip
"greenstop"Frame 11Symbol 1521 MovieClip
"greenstop1"Frame 11Symbol 1524 MovieClip
"greenkey"Frame 11Symbol 684 MovieClip
"bluestop"Frame 11Symbol 1354 MovieClip
"bluestop"Frame 11Symbol 1354 MovieClip
"bluekey"Frame 11Symbol 1274 MovieClip
"pinkkey"Frame 11Symbol 1274 MovieClip
"orangestop"Frame 11Symbol 1354 MovieClip
"orangekey"Frame 11Symbol 684 MovieClip
"ball1"Frame 11Symbol 1257 MovieClip
"finish"Frame 11Symbol 687 MovieClip
"blueinvisible1"Frame 11Symbol 1527 MovieClip
"blueinvisible2"Frame 11Symbol 1527 MovieClip
"greeninvisible1"Frame 11Symbol 1530 MovieClip
"greeninvisible2"Frame 11Symbol 1530 MovieClip
"orangeinvisible1"Frame 11Symbol 1533 MovieClip
"orangeinvisible2"Frame 11Symbol 1533 MovieClip
"rightwall"Frame 11Symbol 19 MovieClip
"bottomwall"Frame 11Symbol 735 MovieClip
"leftside"Frame 11Symbol 19 MovieClip
"topwall"Frame 11Symbol 1538 MovieClip
"backgroundtexture"Frame 12Symbol 15 MovieClip
"finish"Frame 12Symbol 73 MovieClip
"finish2"Frame 12Symbol 73 MovieClip
"ball1"Frame 12Symbol 1541 MovieClip
"ball2"Frame 12Symbol 1542 MovieClip
"warpkey1"Frame 12Symbol 1044 MovieClip
"smallkey1"Frame 12Symbol 1048 MovieClip
"non"Frame 12Symbol 1544 MovieClip
"leftsider"Frame 12Symbol 1546 MovieClip
"topwall"Frame 12Symbol 735 MovieClip
"middlewall"Frame 12Symbol 19 MovieClip
"leftside1"Frame 12Symbol 19 MovieClip
"rightside1"Frame 12Symbol 19 MovieClip
"timedisplayobj"Frame 12Symbol 1547 EditableText
"finish"Frame 13Symbol 687 MovieClip
"finish2"Frame 13Symbol 687 MovieClip
"warpkey2"Frame 13Symbol 1044 MovieClip
"leftside"Frame 13Symbol 19 MovieClip
"rightside"Frame 13Symbol 19 MovieClip
"rightright"Frame 13Symbol 19 MovieClip
"ball2"Frame 13Symbol 1550 MovieClip
"ball1"Frame 13Symbol 1551 MovieClip
"timedisplayobj"Frame 13Symbol 1552 EditableText
"finish"Frame 14Symbol 1554 MovieClip
"orange_transp7arent"Frame 14Symbol 1558 MovieClip
"pinkwall2"Frame 14Symbol 1386 MovieClip
"greenkey"Frame 14Symbol 684 MovieClip
"orangekey"Frame 14Symbol 684 MovieClip
"bluekey"Frame 14Symbol 1274 MovieClip
"bluewall3"Frame 14Symbol 1405 MovieClip
"greenwall2"Frame 14Symbol 1406 MovieClip
"yellowwall2"Frame 14Symbol 1406 MovieClip
"orangekey2"Frame 14Symbol 684 MovieClip
"orangewall17"Frame 14Symbol 1561 MovieClip
"orangewall37"Frame 14Symbol 1564 MovieClip
"orangewall27"Frame 14Symbol 1567 MovieClip
"orangewall47"Frame 14Symbol 1570 MovieClip
"redwall2"Frame 14Symbol 1386 MovieClip
"redkey"Frame 14Symbol 684 MovieClip
"orange_transparent"Frame 14Symbol 1579 MovieClip
"smallkey"Frame 14Symbol 1583 MovieClip
"pinkkey"Frame 14Symbol 1274 MovieClip
"ball2"Frame 14Symbol 1256 MovieClip
"ball1"Frame 14Symbol 1257 MovieClip
"greenwall"Frame 14Symbol 1591 MovieClip
"yellowwall"Frame 14Symbol 1593 MovieClip
"yellowkey"Frame 14Symbol 1594 MovieClip
"pinkwall"Frame 14Symbol 1596 MovieClip
"redwall"Frame 14Symbol 1598 MovieClip
"bluewall"Frame 14Symbol 1606 MovieClip
"decoy"Frame 14Symbol 1295 MovieClip
"decoy2"Frame 14Symbol 1291 MovieClip
"orangewall4"Frame 14Symbol 1610 MovieClip
"orange_transparent2"Frame 14Symbol 1622 MovieClip
"orangewall3"Frame 14Symbol 1627 MovieClip
"orangewall2"Frame 14Symbol 1630 MovieClip
"orangewall1"Frame 14Symbol 1637 MovieClip
"orange_piece"Frame 14Symbol 1639 MovieClip
"rm"Frame 14Symbol 1643 MovieClip
"rt"Frame 14Symbol 1645 MovieClip
"lb"Frame 14Symbol 19 MovieClip
"ltop"Frame 14Symbol 19 MovieClip
"rightwall"Frame 14Symbol 19 MovieClip
"orange_trans7parent2"Frame 14Symbol 1648 MovieClip
"middlewall"Frame 14Symbol 1650 MovieClip
"rb"Frame 14Symbol 1652 MovieClip
"bottomwall"Frame 14Symbol 1654 MovieClip
"lmid2"Frame 14Symbol 19 MovieClip
"timedisplayobj"Frame 14Symbol 1655 EditableText
"finish"Frame 15Symbol 1657 MovieClip
"decoy2"Frame 15Symbol 1291 MovieClip
"decoy"Frame 15Symbol 1295 MovieClip
"finish"Frame 15Symbol 73 MovieClip
"crate1"Frame 15Symbol 1071 MovieClip
"aquawall"Frame 15Symbol 722 MovieClip
"redkey"Frame 15Symbol 1659 MovieClip
"ball1"Frame 15Symbol 677 MovieClip
"ball2"Frame 15Symbol 677 MovieClip
"decoy_crate"Frame 15Symbol 1665 MovieClip
"redwall"Frame 15Symbol 1673 MovieClip
"aquakey"Frame 15Symbol 684 MovieClip
"middlewall"Frame 15Symbol 1679 MovieClip
"leftwall"Frame 15Symbol 1681 MovieClip
"topwall"Frame 15Symbol 1682 MovieClip
"bottomwall"Frame 15Symbol 1684 MovieClip
"rightwall"Frame 15Symbol 1685 MovieClip
"topwall"Frame 15Symbol 735 MovieClip
"bottomwall1"Frame 15Symbol 1687 MovieClip
"timedisplayobj"Frame 15Symbol 1688 EditableText
"finish"Frame 16Symbol 1690 MovieClip
"decoy2"Frame 16Symbol 1291 MovieClip
"decoy"Frame 16Symbol 1295 MovieClip
"decoy_crate"Frame 16Symbol 1665 MovieClip
"smallkey"Frame 16Symbol 1583 MovieClip
"crate2"Frame 16Symbol 1071 MovieClip
"bluewall11"Frame 16Symbol 1694 MovieClip
"bluewall21"Frame 16Symbol 1694 MovieClip
"blue_follower1"Frame 16Symbol 1379 MovieClip
"blue_arrow"Frame 16Symbol 1696 MovieClip
"orangewall4"Frame 16Symbol 1697 MovieClip
"greenwall2"Frame 16Symbol 1699 MovieClip
"pinkwall2"Frame 16Symbol 1387 MovieClip
"greenkey"Frame 16Symbol 684 MovieClip
"pinkkey"Frame 16Symbol 1274 MovieClip
"bluekey"Frame 16Symbol 1274 MovieClip
"blue_transparent1"Frame 16Symbol 1700 MovieClip
"crate1"Frame 16Symbol 1071 MovieClip
"crate5"Frame 16Symbol 1071 MovieClip
"crate3"Frame 16Symbol 1071 MovieClip
"crate4"Frame 16Symbol 1071 MovieClip
"greenwall"Frame 16Symbol 1704 MovieClip
"pinkwall"Frame 16Symbol 1276 MovieClip
"bluewall"Frame 16Symbol 1714 MovieClip
"orangewall"Frame 16Symbol 1301 MovieClip
"orangekey"Frame 16Symbol 684 MovieClip
"ball2"Frame 16Symbol 1256 MovieClip
"ball1"Frame 16Symbol 1257 MovieClip
"blue_transparent"Frame 16Symbol 700 MovieClip
"bluewall2"Frame 16Symbol 1716 MovieClip
"bluewall1"Frame 16Symbol 1717 MovieClip
"midwid"Frame 16Symbol 1719 MovieClip
"lm"Frame 16Symbol 19 MovieClip
"lb"Frame 16Symbol 19 MovieClip
"rightwall"Frame 16Symbol 19 MovieClip
"bottomwall"Frame 16Symbol 735 MovieClip
"middlewall"Frame 16Symbol 1730 MovieClip
"timedisplayobj"Frame 16Symbol 1733 EditableText
"finish"Frame 17Symbol 1736 MovieClip
"decoy"Frame 17Symbol 1306 MovieClip
"decoy2"Frame 17Symbol 1310 MovieClip
"aquakey"Frame 17Symbol 1738 MovieClip
"smallkey"Frame 17Symbol 1740 MovieClip
"pinkkey"Frame 17Symbol 1742 MovieClip
"ball2"Frame 17Symbol 1745 MovieClip
"ball1"Frame 17Symbol 1747 MovieClip
"greenkey"Frame 17Symbol 1749 MovieClip
"orangekey"Frame 17Symbol 1751 MovieClip
"crate2"Frame 17Symbol 1753 MovieClip
"fastkey"Frame 17Symbol 1816 MovieClip
"lredkey"Frame 17Symbol 1818 MovieClip
"yellowkey"Frame 17Symbol 1820 MovieClip
"bluekey"Frame 17Symbol 1822 MovieClip
"pinkwall"Frame 17Symbol 1824 MovieClip
"aquawall"Frame 17Symbol 1826 MovieClip
"redwall"Frame 17Symbol 1828 MovieClip
"orangewall1"Frame 17Symbol 1830 MovieClip
"orangewall2"Frame 17Symbol 1832 MovieClip
"greenwall"Frame 17Symbol 1834 MovieClip
"lredwall"Frame 17Symbol 1836 MovieClip
"bluewall"Frame 17Symbol 1838 MovieClip
"redkey"Frame 17Symbol 1840 MovieClip
"crate1"Frame 17Symbol 1842 MovieClip
"yellowwall"Frame 17Symbol 1844 MovieClip
"middlewall"Frame 17Symbol 1846 MovieClip
"rightwall"Frame 17Symbol 1848 MovieClip
"rt"Frame 17Symbol 1850 MovieClip
"rb"Frame 17Symbol 1851 MovieClip
"rm"Frame 17Symbol 1853 MovieClip
"lm"Frame 17Symbol 1855 MovieClip
"lb"Frame 17Symbol 1856 MovieClip
"finish"Frame 18Symbol 1862 MovieClip
"decoy2"Frame 18Symbol 1291 MovieClip
"decoy"Frame 18Symbol 1295 MovieClip
"greenkey"Frame 18Symbol 684 MovieClip
"bluekey"Frame 18Symbol 1274 MovieClip
"greenwall"Frame 18Symbol 1863 MovieClip
"redkey"Frame 18Symbol 684 MovieClip
"ball1"Frame 18Symbol 1297 MovieClip
"ball2"Frame 18Symbol 1298 MovieClip
"bluewall"Frame 18Symbol 1867 MovieClip
"lm"Frame 18Symbol 19 MovieClip
"greenwallleft"Frame 18Symbol 1873 MovieClip
"redwall"Frame 18Symbol 1881 MovieClip
"greenwallright"Frame 18Symbol 1873 MovieClip
"lb"Frame 18Symbol 1883 MovieClip
"green_transparent"Frame 18Symbol 1885 MovieClip
"topwall"Frame 18Symbol 1889 MovieClip
"middlewall"Frame 18Symbol 1891 MovieClip
"middlewall2"Frame 18Symbol 1893 MovieClip
"leftwall"Frame 18Symbol 19 MovieClip
"rightwall"Frame 18Symbol 1895 MovieClip
"rr"Frame 18Symbol 1897 MovieClip
"bottomwall"Frame 18Symbol 1899 MovieClip
"timedisplayobj"Frame 18Symbol 1900 EditableText
"youwin"Frame 18Symbol 1905 MovieClip
"winningscreen"Frame 18Symbol 1909 MovieClip
"finish"Frame 19Symbol 1910 MovieClip
"finish2"Frame 19Symbol 1910 MovieClip
"pinkkey"Frame 19Symbol 1274 MovieClip
"bluewall2"Frame 19Symbol 1405 MovieClip
"orangewall1"Frame 19Symbol 1388 MovieClip
"bluekey"Frame 19Symbol 1274 MovieClip
"pinkwall1"Frame 19Symbol 1387 MovieClip
"bluestop"Frame 19Symbol 1354 MovieClip
"bluewall"Frame 19Symbol 1916 MovieClip
"orangekey"Frame 19Symbol 684 MovieClip
"ball1"Frame 19Symbol 1917 MovieClip
"ball2"Frame 19Symbol 1918 MovieClip
"pinkwall"Frame 19Symbol 1920 MovieClip
"orangewall"Frame 19Symbol 1922 MovieClip
"middletop"Frame 19Symbol 1925 MovieClip
"rl"Frame 19Symbol 19 MovieClip
"bottomwall"Frame 19Symbol 1927 MovieClip
"rightwall"Frame 19Symbol 1929 MovieClip
"warpkey"Frame 19Symbol 1044 MovieClip
"rightwall"Frame 19Symbol 19 MovieClip
"middlewall"Frame 19Symbol 1931 MovieClip
"topwall"Frame 19Symbol 735 MovieClip
"timedisplayobj"Frame 19Symbol 1936 EditableText
"finish"Frame 20Symbol 687 MovieClip
"pinkkey"Frame 20Symbol 1274 MovieClip
"orangewall31"Frame 20Symbol 1388 MovieClip
"orangekey"Frame 20Symbol 684 MovieClip
"ball1"Frame 20Symbol 1917 MovieClip
"ball2"Frame 20Symbol 1918 MovieClip
"orangewall11"Frame 20Symbol 1388 MovieClip
"orangewall21"Frame 20Symbol 1388 MovieClip
"orangewall3"Frame 20Symbol 1941 MovieClip
"orangewall1"Frame 20Symbol 1949 MovieClip
"orangewall2"Frame 20Symbol 1953 MovieClip
"pinkwall"Frame 20Symbol 1957 MovieClip
"topwall"Frame 20Symbol 1960 MovieClip
"rotunda"Frame 20Symbol 19 MovieClip
"middlewall"Frame 20Symbol 1964 MovieClip
"bottomwall"Frame 20Symbol 1966 MovieClip
"timedisplayobj"Frame 20Symbol 1967 EditableText
"finish"Frame 21Symbol 73 MovieClip
"decoy"Frame 21Symbol 1306 MovieClip
"decoy2"Frame 21Symbol 1310 MovieClip
"greenwall1"Frame 21Symbol 1969 MovieClip
"redwall1"Frame 21Symbol 1970 MovieClip
"orangewall1"Frame 21Symbol 1972 MovieClip
"bluewall1"Frame 21Symbol 1973 MovieClip
"blueswitch"Frame 21Symbol 1480 MovieClip
"orangeswitch"Frame 21Symbol 1480 MovieClip
"redswitch"Frame 21Symbol 1480 MovieClip
"greenswitch"Frame 21Symbol 1480 MovieClip
"crate1"Frame 21Symbol 1071 MovieClip
"ball1"Frame 21Symbol 1917 MovieClip
"ball2"Frame 21Symbol 1918 MovieClip
"redwall"Frame 21Symbol 722 MovieClip
"bluewall"Frame 21Symbol 726 MovieClip
"greenwall"Frame 21Symbol 724 MovieClip
"orangewall"Frame 21Symbol 1975 MovieClip
"bottomwall"Frame 21Symbol 1978 MovieClip
"topwall"Frame 21Symbol 1980 MovieClip
"leftwall"Frame 21Symbol 1982 MovieClip
"lll1"Frame 21Symbol 1983 MovieClip
"llr1"Frame 21Symbol 1984 MovieClip
"lrr1"Frame 21Symbol 1983 MovieClip
"lrl1"Frame 21Symbol 1984 MovieClip
"middlewall"Frame 21Symbol 19 MovieClip
"lll"Frame 21Symbol 1986 MovieClip
"lrr"Frame 21Symbol 1986 MovieClip
"middlewall1"Frame 21Symbol 1988 MovieClip
"llr"Frame 21Symbol 1990 MovieClip
"lrl"Frame 21Symbol 1992 MovieClip
"timedisplayobj"Frame 21Symbol 1993 EditableText
"orangeswitch"Frame 22Symbol 1995 MovieClip
"ball2"Frame 22Symbol 1996 MovieClip
"ball1"Frame 22Symbol 1997 MovieClip
"bluekey1"Frame 22Symbol 1481 MovieClip
"bluekey26"Frame 22Symbol 1481 MovieClip
"bluekey21"Frame 22Symbol 1481 MovieClip
"bluekey22"Frame 22Symbol 1481 MovieClip
"bluekey24"Frame 22Symbol 1481 MovieClip
"bluekey25"Frame 22Symbol 1481 MovieClip
"bluekey20"Frame 22Symbol 1481 MovieClip
"bluekey19"Frame 22Symbol 1481 MovieClip
"bluekey18"Frame 22Symbol 1481 MovieClip
"bluekey17"Frame 22Symbol 1481 MovieClip
"bluekey16"Frame 22Symbol 1481 MovieClip
"bluekey15"Frame 22Symbol 1481 MovieClip
"bluekey13"Frame 22Symbol 1481 MovieClip
"bluekey12"Frame 22Symbol 1481 MovieClip
"bluekey11"Frame 22Symbol 1481 MovieClip
"bluekey10"Frame 22Symbol 1481 MovieClip
"bluekey5"Frame 22Symbol 1481 MovieClip
"bluekey9"Frame 22Symbol 1481 MovieClip
"bluekey4"Frame 22Symbol 1481 MovieClip
"bluekey8"Frame 22Symbol 1481 MovieClip
"bluekey3"Frame 22Symbol 1481 MovieClip
"bluekey2"Frame 22Symbol 1481 MovieClip
"bluekey7"Frame 22Symbol 1481 MovieClip
"bluekey6"Frame 22Symbol 1481 MovieClip
"bluekey29"Frame 22Symbol 1481 MovieClip
"redkey"Frame 22Symbol 684 MovieClip
"finish"Frame 22Symbol 1998 MovieClip
"redwall"Frame 22Symbol 2006 MovieClip
"redwall3"Frame 22Symbol 2010 MovieClip
"redwall2"Frame 22Symbol 2014 MovieClip
"bluewall"Frame 22Symbol 1606 MovieClip
"orangewall2"Frame 22Symbol 2020 MovieClip
"skinnyright"Frame 22Symbol 19 MovieClip
"skinnyleft"Frame 22Symbol 19 MovieClip
"leftwall"Frame 22Symbol 19 MovieClip
"topwall"Frame 22Symbol 735 MovieClip
"rightwall"Frame 22Symbol 19 MovieClip
"bottomwall"Frame 22Symbol 735 MovieClip
"timedisplayobj"Frame 22Symbol 2021 EditableText
"crate1"Frame 23Symbol 2025 MovieClip
"decoy_crate"Frame 23Symbol 2049 MovieClip
"finish"Frame 23Symbol 687 MovieClip
"redwall1"Frame 23Symbol 2050 MovieClip
"ball2"Frame 23Symbol 1918 MovieClip
"ball1"Frame 23Symbol 1917 MovieClip
"redwall21"Frame 23Symbol 2051 MovieClip
"redwall2"Frame 23Symbol 2055 MovieClip
"redwall"Frame 23Symbol 2059 MovieClip
"middlewall_insidetop"Frame 23Symbol 2064 MovieClip
"middlewall_insidebottom"Frame 23Symbol 2066 MovieClip
"middlewall"Frame 23Symbol 2069 MovieClip
"lm"Frame 23Symbol 2071 MovieClip
"lb"Frame 23Symbol 2073 MovieClip
"timedisplayobj"Frame 23Symbol 2074 EditableText
"finish"Frame 24Symbol 2076 MovieClip
"transporter1"Frame 24Symbol 1121 MovieClip
"transporter2"Frame 24Symbol 1121 MovieClip
"greenswitch"Frame 24Symbol 1480 MovieClip
"redstop"Frame 24Symbol 1354 MovieClip
"bluekey"Frame 24Symbol 684 MovieClip
"ball1"Frame 24Symbol 2077 MovieClip
"ball2"Frame 24Symbol 2078 MovieClip
"greenwall"Frame 24Symbol 1398 MovieClip
"decoy_crate"Frame 24Symbol 1665 MovieClip
"bluewall"Frame 24Symbol 2084 MovieClip
"redwall"Frame 24Symbol 2092 MovieClip
"crate1"Frame 24Symbol 1071 MovieClip
"skinnyright"Frame 24Symbol 2094 MovieClip
"rightmiddle"Frame 24Symbol 2096 MovieClip
"l2"Frame 24Symbol 19 MovieClip
"l1"Frame 24Symbol 19 MovieClip
"bottommiddle"Frame 24Symbol 2098 MovieClip
"middlewall22"Frame 24Symbol 19 MovieClip
"topmiddlewall"Frame 24Symbol 2099 MovieClip
"timedisplayobj"Frame 24Symbol 2100 EditableText
"insidewall2"Frame 24Symbol 2101 MovieClip
"insidewall"Frame 24Symbol 2101 MovieClip
"decoy_crate"Frame 25Symbol 1665 MovieClip
"aquakey"Frame 25Symbol 684 MovieClip
"greenkey"Frame 25Symbol 684 MovieClip
"lgreenkey"Frame 25Symbol 2107 MovieClip
"yellowkey"Frame 25Symbol 1274 MovieClip
"orangekey"Frame 25Symbol 684 MovieClip
"crate1"Frame 25Symbol 1071 MovieClip
"smallkey1"Frame 25Symbol 1583 MovieClip
"pinkwall1"Frame 25Symbol 2108 MovieClip
"aquawall2"Frame 25Symbol 2110 MovieClip
"greenwall2"Frame 25Symbol 2111 MovieClip
"lgreenwall2"Frame 25Symbol 2113 MovieClip
"lredwall2"Frame 25Symbol 2114 MovieClip
"bluewall0"Frame 25Symbol 2115 MovieClip
"orangewall2"Frame 25Symbol 2116 MovieClip
"yellowwall2"Frame 25Symbol 2117 MovieClip
"bluekey"Frame 25Symbol 1274 MovieClip
"lredkey"Frame 25Symbol 684 MovieClip
"pinkkey"Frame 25Symbol 684 MovieClip
"ball1"Frame 25Symbol 1257 MovieClip
"ball2"Frame 25Symbol 1256 MovieClip
"finish"Frame 25Symbol 2118 MovieClip
"redwall"Frame 25Symbol 2124 MovieClip
"pinkwall"Frame 25Symbol 2130 MovieClip
"greenwall"Frame 25Symbol 2134 MovieClip
"orangewall"Frame 25Symbol 2140 MovieClip
"yellowwall"Frame 25Symbol 2144 MovieClip
"lredwall"Frame 25Symbol 2150 MovieClip
"bluewall"Frame 25Symbol 2152 MovieClip
"aquawall"Frame 25Symbol 2154 MovieClip
"l4"Frame 25Symbol 19 MovieClip
"r1"Frame 25Symbol 19 MovieClip
"middlewall"Frame 25Symbol 19 MovieClip
"lgreenwall"Frame 25Symbol 2156 MovieClip
"l3"Frame 25Symbol 19 MovieClip
"timedisplayobj"Frame 25Symbol 2157 EditableText
"bluekey1"Frame 26Symbol 1481 MovieClip
"bluekey13"Frame 26Symbol 1481 MovieClip
"bluekey12"Frame 26Symbol 1481 MovieClip
"bluekey11"Frame 26Symbol 1481 MovieClip
"bluekey10"Frame 26Symbol 1481 MovieClip
"bluekey5"Frame 26Symbol 1481 MovieClip
"bluekey9"Frame 26Symbol 1481 MovieClip
"bluekey4"Frame 26Symbol 1481 MovieClip
"bluekey8"Frame 26Symbol 1481 MovieClip
"bluekey3"Frame 26Symbol 1481 MovieClip
"bluekey2"Frame 26Symbol 1481 MovieClip
"bluekey7"Frame 26Symbol 1481 MovieClip
"bluekey6"Frame 26Symbol 1481 MovieClip
"ball1"Frame 26Symbol 2077 MovieClip
"ball2"Frame 26Symbol 2078 MovieClip
"finish"Frame 26Symbol 2161 MovieClip
"redwall"Frame 26Symbol 2163 MovieClip
"bluewall"Frame 26Symbol 2165 MovieClip
"b7"Frame 26Symbol 19 MovieClip
"b2"Frame 26Symbol 19 MovieClip
"b11"Frame 26Symbol 19 MovieClip
"b12"Frame 26Symbol 19 MovieClip
"b9"Frame 26Symbol 19 MovieClip
"b10"Frame 26Symbol 19 MovieClip
"b4"Frame 26Symbol 19 MovieClip
"b1"Frame 26Symbol 19 MovieClip
"b5"Frame 26Symbol 19 MovieClip
"b3"Frame 26Symbol 19 MovieClip
"b6"Frame 26Symbol 19 MovieClip
"b8"Frame 26Symbol 19 MovieClip
"timedisplayobj"Frame 26Symbol 2166 EditableText
"finish"Frame 27Symbol 2168 MovieClip
"greenkey"Frame 27Symbol 684 MovieClip
"bluekey"Frame 27Symbol 1274 MovieClip
"ball1"Frame 27Symbol 2172 MovieClip
"bluewall"Frame 27Symbol 726 MovieClip
"greenwall"Frame 27Symbol 724 MovieClip
"ball2"Frame 27Symbol 2173 MovieClip
"middlewall"Frame 27Symbol 2175 MovieClip
"timedisplayobj"Frame 27Symbol 2176 EditableText
"decoy_crate"Frame 28Symbol 1665 MovieClip
"orangekey"Frame 28Symbol 684 MovieClip
"greenwall2"Frame 28Symbol 2178 MovieClip
"crate2"Frame 28Symbol 1071 MovieClip
"crate1"Frame 28Symbol 1071 MovieClip
"redkey"Frame 28Symbol 684 MovieClip
"finish"Frame 28Symbol 2179 MovieClip
"redwall"Frame 28Symbol 722 MovieClip
"orangewall"Frame 28Symbol 2181 MovieClip
"pinkkey"Frame 28Symbol 684 MovieClip
"ball1"Frame 28Symbol 2182 MovieClip
"greenwall"Frame 28Symbol 2186 MovieClip
"pinkwall"Frame 28Symbol 2189 MovieClip
"ll"Frame 28Symbol 19 MovieClip
"lr"Frame 28Symbol 19 MovieClip
"rl"Frame 28Symbol 19 MovieClip
"rr"Frame 28Symbol 19 MovieClip
"rbr"Frame 28Symbol 19 MovieClip
"middlewall"Frame 28Symbol 19 MovieClip
"timedisplayobj"Frame 28Symbol 2190 EditableText
"bluewall1"Frame 29Symbol 1088 MovieClip
"greenwall8"Frame 29Symbol 2192 MovieClip
"r3"Frame 29Symbol 2193 MovieClip
"r4"Frame 29Symbol 2194 MovieClip
"bluekey"Frame 29Symbol 1274 MovieClip
"aquakey"Frame 29Symbol 684 MovieClip
"ball1"Frame 29Symbol 2195 MovieClip
"ball2"Frame 29Symbol 2196 MovieClip
"finish"Frame 29Symbol 2197 MovieClip
"greenwall"Frame 29Symbol 2203 MovieClip
"pinkwall1"Frame 29Symbol 2207 MovieClip
"pinkwall4"Frame 29Symbol 2211 MovieClip
"greenkey"Frame 29Symbol 2212 MovieClip
"decoy"Frame 29Symbol 1295 MovieClip
"decoy2"Frame 29Symbol 1291 MovieClip
"blue_transparent"Frame 29Symbol 700 MovieClip
"aquawall1"Frame 29Symbol 2214 MovieClip
"aquawall2"Frame 29Symbol 2215 MovieClip
"orangewall"Frame 29Symbol 2225 MovieClip
"bluewall"Frame 29Symbol 2227 MovieClip
"pinkwall3"Frame 29Symbol 1343 MovieClip
"r1"Frame 29Symbol 2228 MovieClip
"middlewall"Frame 29Symbol 2230 MovieClip
"bottomwall"Frame 29Symbol 2232 MovieClip
"rightwall"Frame 29Symbol 2234 MovieClip
"rightdown"Frame 29Symbol 2236 MovieClip
"rightup"Frame 29Symbol 2238 MovieClip
"midleft"Frame 29Symbol 2240 MovieClip
"rb"Frame 29Symbol 2242 MovieClip
"l2"Frame 29Symbol 19 MovieClip
"l3"Frame 29Symbol 19 MovieClip
"clubchicken"Frame 29Symbol 19 MovieClip
"midbottom"Frame 29Symbol 2244 MovieClip
"l1"Frame 29Symbol 19 MovieClip
"pinkwall2"Frame 29Symbol 2248 MovieClip
"topwall"Frame 29Symbol 2250 MovieClip
"m1"Frame 29Symbol 2251 MovieClip
"m2"Frame 29Symbol 2252 MovieClip
"m3"Frame 29Symbol 2253 MovieClip
"m4"Frame 29Symbol 2254 MovieClip
"m5"Frame 29Symbol 2255 MovieClip
"timedisplayobj"Frame 29Symbol 2256 EditableText
"option9"Frame 29Symbol 968 MovieClip
"finish"Frame 30Symbol 2260 MovieClip
"decoy2"Frame 30Symbol 1291 MovieClip
"decoy"Frame 30Symbol 1295 MovieClip
"blueswitch"Frame 30Symbol 1480 MovieClip
"pinkswitch"Frame 30Symbol 1480 MovieClip
"orangeswitch"Frame 30Symbol 1480 MovieClip
"crate4"Frame 30Symbol 1071 MovieClip
"transporter1"Frame 30Symbol 1121 MovieClip
"transporter2"Frame 30Symbol 1121 MovieClip
"redkey"Frame 30Symbol 684 MovieClip
"greenwall"Frame 30Symbol 2268 MovieClip
"pinkwall"Frame 30Symbol 2276 MovieClip
"redwall"Frame 30Symbol 2283 MovieClip
"crate1"Frame 30Symbol 1071 MovieClip
"crate2"Frame 30Symbol 1071 MovieClip
"crate3"Frame 30Symbol 1071 MovieClip
"orangewall"Frame 30Symbol 2289 MovieClip
"decoy_crate"Frame 30Symbol 1665 MovieClip
"bluewall"Frame 30Symbol 2293 MovieClip
"blacktip5"Frame 30Symbol 19 MovieClip
"blacktip6"Frame 30Symbol 19 MovieClip
"l6"Frame 30Symbol 2295 MovieClip
"l1"Frame 30Symbol 19 MovieClip
"l2"Frame 30Symbol 19 MovieClip
"l3"Frame 30Symbol 19 MovieClip
"middlewall"Frame 30Symbol 2299 MovieClip
"r7"Frame 30Symbol 2301 MovieClip
"r5"Frame 30Symbol 2303 MovieClip
"rightwall"Frame 30Symbol 19 MovieClip
"l6"Frame 30Symbol 19 MovieClip
"9kkk"Frame 30Symbol 19 MovieClip
"l5"Frame 30Symbol 19 MovieClip
"r3"Frame 30Symbol 19 MovieClip
"r2"Frame 30Symbol 19 MovieClip
"r1"Frame 30Symbol 19 MovieClip
"blacktip2"Frame 30Symbol 19 MovieClip
"blacktip3"Frame 30Symbol 19 MovieClip
"blacktip4"Frame 30Symbol 19 MovieClip
"blacktip1"Frame 30Symbol 19 MovieClip
"greenswitch"Frame 30Symbol 1480 MovieClip
"r6"Frame 30Symbol 2307 MovieClip
"topinside"Frame 30Symbol 2308 MovieClip
"orangewall1"Frame 30Symbol 2312 MovieClip
"ball1"Frame 30Symbol 2313 MovieClip
"ball2"Frame 30Symbol 2314 MovieClip
"bottomwall"Frame 30Symbol 2316 MovieClip
"topwall"Frame 30Symbol 735 MovieClip
"timedisplayobj"Frame 30Symbol 2319 EditableText
"insidebottom"Frame 30Symbol 2320 MovieClip
"decoy2"Frame 32Symbol 1291 MovieClip
"decoy"Frame 32Symbol 1295 MovieClip
"pinkswitch"Frame 32Symbol 1480 MovieClip
"finish"Frame 32Symbol 2322 MovieClip
"greenkey"Frame 32Symbol 684 MovieClip
"bluekey"Frame 32Symbol 1274 MovieClip
"orangekey"Frame 32Symbol 684 MovieClip
"aquakey"Frame 32Symbol 684 MovieClip
"redkey"Frame 32Symbol 684 MovieClip
"orangestop"Frame 32Symbol 1037 MovieClip
"bluestop"Frame 32Symbol 1037 MovieClip
"smallkey"Frame 32Symbol 1583 MovieClip
"orangewall"Frame 32Symbol 2328 MovieClip
"greenwall"Frame 32Symbol 2336 MovieClip
"redwall"Frame 32Symbol 2342 MovieClip
"pinkwall"Frame 32Symbol 2343 MovieClip
"aquawall"Frame 32Symbol 2349 MovieClip
"bottomwall"Frame 32Symbol 2351 MovieClip
"ll"Frame 32Symbol 19 MovieClip
"lm"Frame 32Symbol 19 MovieClip
"topwall"Frame 32Symbol 2353 MovieClip
"bluewall"Frame 32Symbol 2363 MovieClip
"bluewall2"Frame 32Symbol 2364 MovieClip
"bluewall1"Frame 32Symbol 2365 MovieClip
"rl"Frame 32Symbol 2366 MovieClip
"lr"Frame 32Symbol 2367 MovieClip
"rl"Frame 32Symbol 2369 MovieClip
"middlewall"Frame 32Symbol 2373 MovieClip
"rightwall"Frame 32Symbol 1929 MovieClip
"lll"Frame 32Symbol 2374 MovieClip
"rightwall"Frame 32Symbol 19 MovieClip
"leftwall"Frame 32Symbol 2376 MovieClip
"rr"Frame 32Symbol 2378 MovieClip
"ll"Frame 32Symbol 2380 MovieClip
"ball1"Frame 32Symbol 1541 MovieClip
"ball2"Frame 32Symbol 1256 MovieClip
"bluetransparent"Frame 32Symbol 700 MovieClip
"rrr"Frame 32Symbol 2382 MovieClip
"timedisplayobj"Frame 32Symbol 2383 EditableText
"youwin"Frame 32Symbol 1905 MovieClip
"winningscreen"Frame 32Symbol 1909 MovieClip
"aquawall2"Frame 33Symbol 2386 MovieClip
"yellowswitch"Frame 33Symbol 1480 MovieClip
"finish"Frame 33Symbol 2387 MovieClip
"lredkey"Frame 33Symbol 684 MovieClip
"redstop"Frame 33Symbol 1037 MovieClip
"smallkey"Frame 33Symbol 1583 MovieClip
"yellowwall"Frame 33Symbol 2393 MovieClip
"bluekey"Frame 33Symbol 2394 MovieClip
"redkey"Frame 33Symbol 2395 MovieClip
"aquakey"Frame 33Symbol 2396 MovieClip
"greenswitch"Frame 33Symbol 1480 MovieClip
"bluewall"Frame 33Symbol 1103 MovieClip
"aquawall"Frame 33Symbol 2397 MovieClip
"orangeswitch"Frame 33Symbol 1480 MovieClip
"pinkwall"Frame 33Symbol 2406 MovieClip
"ball1"Frame 33Symbol 1257 MovieClip
"ball2"Frame 33Symbol 1256 MovieClip
"blue_transparent"Frame 33Symbol 700 MovieClip
"aqua_transparent"Frame 33Symbol 700 MovieClip
"lredwall"Frame 33Symbol 2411 MovieClip
"aquawall1"Frame 33Symbol 2424 MovieClip
"topwall"Frame 33Symbol 2425 MovieClip
"leftwall"Frame 33Symbol 2427 MovieClip
"bottomwall"Frame 33Symbol 2429 MovieClip
"rightwall"Frame 33Symbol 2431 MovieClip
"bottomwall"Frame 33Symbol 735 MovieClip
"redwall2"Frame 33Symbol 2435 MovieClip
"orangewall"Frame 33Symbol 2441 MovieClip
"rb"Frame 33Symbol 19 MovieClip
"redwall1"Frame 33Symbol 2447 MovieClip
"leftside"Frame 33Symbol 2449 MovieClip
"greenwall"Frame 33Symbol 2451 MovieClip
"leftwall"Frame 33Symbol 19 MovieClip
"rt"Frame 33Symbol 2453 MovieClip
"topwall"Frame 33Symbol 735 MovieClip
"middlewall"Frame 33Symbol 2455 MovieClip
"timedisplayobj"Frame 33Symbol 2460 EditableText
"finish"Frame 34Symbol 2462 MovieClip
"pinkswitch"Frame 34Symbol 2463 MovieClip
"ball1"Frame 34Symbol 2464 MovieClip
"yellowkey"Frame 34Symbol 2465 MovieClip
"bluekey"Frame 34Symbol 2466 MovieClip
"greenkey"Frame 34Symbol 2467 MovieClip
"aquakey"Frame 34Symbol 2468 MovieClip
"redkey"Frame 34Symbol 2469 MovieClip
"redwall"Frame 34Symbol 2473 MovieClip
"pinkwall"Frame 34Symbol 2478 MovieClip
"aquawall"Frame 34Symbol 2482 MovieClip
"bluewall"Frame 34Symbol 2488 MovieClip
"greenwall"Frame 34Symbol 2494 MovieClip
"yellowwall"Frame 34Symbol 2496 MovieClip
"orangewall"Frame 34Symbol 2498 MovieClip
"rightwall"Frame 34Symbol 1929 MovieClip
"leftwall"Frame 34Symbol 2427 MovieClip
"leftwall"Frame 34Symbol 19 MovieClip
"rightwall"Frame 34Symbol 19 MovieClip
"rightside"Frame 34Symbol 2500 MovieClip
"middleside"Frame 34Symbol 2502 MovieClip
"leftside"Frame 34Symbol 2504 MovieClip
"topwall"Frame 34Symbol 2508 MovieClip
"middlewall"Frame 34Symbol 2510 MovieClip
"timedisplayobj"Frame 34Symbol 2513 EditableText
"finish"Frame 35Symbol 2515 MovieClip
"finish2"Frame 35Symbol 2179 MovieClip
"warpkey11"Frame 35Symbol 1044 MovieClip
"warpkey2"Frame 35Symbol 1044 MovieClip
"yellowkey"Frame 35Symbol 2516 MovieClip
"ball2"Frame 35Symbol 2517 MovieClip
"ball1"Frame 35Symbol 2518 MovieClip
"pinkkey"Frame 35Symbol 2519 MovieClip
"pinkwall"Frame 35Symbol 2524 MovieClip
"rightside"Frame 35Symbol 19 MovieClip
"yellowwall"Frame 35Symbol 2525 MovieClip
"topwall"Frame 35Symbol 2508 MovieClip
"middlewall"Frame 35Symbol 19 MovieClip
"leftside"Frame 35Symbol 19 MovieClip
"timedisplayobj"Frame 35Symbol 2526 EditableText
"finish"Frame 36Symbol 2179 MovieClip
"transporter1"Frame 36Symbol 1121 MovieClip
"blueswitch"Frame 36Symbol 1480 MovieClip
"ball2"Frame 36Symbol 1256 MovieClip
"ball1"Frame 36Symbol 2464 MovieClip
"yellowkey"Frame 36Symbol 2107 MovieClip
"pinkkey"Frame 36Symbol 684 MovieClip
"bluewall"Frame 36Symbol 2529 MovieClip
"pinkwall"Frame 36Symbol 2530 MovieClip
"orangewall"Frame 36Symbol 2534 MovieClip
"transporter2"Frame 36Symbol 1121 MovieClip
"middlewall"Frame 36Symbol 19 MovieClip
"rightside1"Frame 36Symbol 19 MovieClip
"rightside2"Frame 36Symbol 19 MovieClip
"orangeswitch"Frame 36Symbol 1480 MovieClip
"crate1"Frame 36Symbol 1071 MovieClip
"yellowwall"Frame 36Symbol 2537 MovieClip
"crate2"Frame 36Symbol 1071 MovieClip
"decoy_crate"Frame 36Symbol 1665 MovieClip
"rightside2"Frame 36Symbol 19 MovieClip
"rightside2"Frame 36Symbol 19 MovieClip
"leftside"Frame 36Symbol 19 MovieClip
"timedisplayobj"Frame 36Symbol 2538 EditableText
"leftwall"Frame 38Symbol 19 MovieClip
"rightwall"Frame 38Symbol 19 MovieClip
"leftwall"Symbol 22 MovieClip Frame 1Symbol 19 MovieClip
"leftwall"Symbol 22 MovieClip Frame 1Symbol 19 MovieClip
"leftwall"Symbol 22 MovieClip Frame 1Symbol 19 MovieClip
"leftwall"Symbol 22 MovieClip Frame 1Symbol 19 MovieClip
"leftwall"Symbol 22 MovieClip Frame 1Symbol 19 MovieClip
"leftwall"Symbol 22 MovieClip Frame 1Symbol 19 MovieClip
"leftwall"Symbol 22 MovieClip Frame 1Symbol 19 MovieClip
"leftwall"Symbol 22 MovieClip Frame 1Symbol 19 MovieClip
"leftwall"Symbol 22 MovieClip Frame 1Symbol 19 MovieClip
"leftwall"Symbol 22 MovieClip Frame 1Symbol 19 MovieClip
"leftwall"Symbol 22 MovieClip Frame 1Symbol 19 MovieClip
"leftwall"Symbol 22 MovieClip Frame 1Symbol 19 MovieClip
"leftwall"Symbol 22 MovieClip Frame 1Symbol 19 MovieClip
"leftwall"Symbol 22 MovieClip Frame 1Symbol 19 MovieClip
"leftwall"Symbol 22 MovieClip Frame 1Symbol 19 MovieClip
"leftwall"Symbol 22 MovieClip Frame 1Symbol 19 MovieClip
"leftwall"Symbol 22 MovieClip Frame 1Symbol 19 MovieClip
"leftwall"Symbol 22 MovieClip Frame 1Symbol 19 MovieClip
"leftwall"Symbol 22 MovieClip Frame 1Symbol 19 MovieClip
"leftwall"Symbol 22 MovieClip Frame 1Symbol 19 MovieClip
"leftwall"Symbol 22 MovieClip Frame 1Symbol 19 MovieClip
"leftwall"Symbol 22 MovieClip Frame 1Symbol 19 MovieClip
"leftwall"Symbol 23 MovieClip Frame 1Symbol 19 MovieClip
"leftwall"Symbol 23 MovieClip Frame 1Symbol 19 MovieClip
"leftwall"Symbol 23 MovieClip Frame 1Symbol 19 MovieClip
"leftwall"Symbol 23 MovieClip Frame 1Symbol 19 MovieClip
"leftwall"Symbol 23 MovieClip Frame 1Symbol 19 MovieClip
"leftwall"Symbol 23 MovieClip Frame 1Symbol 19 MovieClip
"leftwall"Symbol 23 MovieClip Frame 1Symbol 19 MovieClip
"leftwall"Symbol 23 MovieClip Frame 1Symbol 19 MovieClip
"leftwall"Symbol 23 MovieClip Frame 1Symbol 19 MovieClip
"leftwall"Symbol 23 MovieClip Frame 1Symbol 19 MovieClip
"leftwall"Symbol 23 MovieClip Frame 1Symbol 19 MovieClip
"bar"Symbol 40 MovieClip Frame 1Symbol 32 MovieClip
"playbutton"Symbol 40 MovieClip Frame 25Symbol 39 MovieClip
"you_understand_obj2"Symbol 65 MovieClip Frame 2Symbol 64 MovieClip
"green_static"Symbol 675 MovieClip Frame 2Symbol 149 MovieClip
"redstatic"Symbol 675 MovieClip Frame 3Symbol 214 MovieClip
"bluemove"Symbol 675 MovieClip Frame 4Symbol 279 MovieClip
"orange_static"Symbol 675 MovieClip Frame 6Symbol 409 MovieClip
"scan"Symbol 676 MovieClip Frame 1Symbol 675 MovieClip
"bally"Symbol 677 MovieClip Frame 1Symbol 676 MovieClip
"line"Symbol 759 MovieClip Frame 1Symbol 756 MovieClip
"dragger"Symbol 759 MovieClip Frame 1Symbol 758 MovieClip
"fx"Symbol 888 MovieClip Frame 1Symbol 744 MovieClip
"mySlider"Symbol 888 MovieClip Frame 1Symbol 759 MovieClip
"highquality"Symbol 888 MovieClip Frame 1Symbol 762 MovieClip
"mediumquality"Symbol 888 MovieClip Frame 1Symbol 764 MovieClip
"lowquality"Symbol 888 MovieClip Frame 1Symbol 767 MovieClip
"exit"Symbol 888 MovieClip Frame 1Symbol 771 Button
"submitScore"Symbol 888 MovieClip Frame 1Symbol 789 Button
"q1"Symbol 888 MovieClip Frame 1Symbol 852 Button
"q2"Symbol 888 MovieClip Frame 1Symbol 853 Button
"q3"Symbol 888 MovieClip Frame 1Symbol 854 Button
"q4"Symbol 888 MovieClip Frame 1Symbol 855 Button
"q5"Symbol 888 MovieClip Frame 1Symbol 856 Button
"q6"Symbol 888 MovieClip Frame 1Symbol 857 Button
"q7"Symbol 888 MovieClip Frame 1Symbol 858 Button
"q8"Symbol 888 MovieClip Frame 1Symbol 859 Button
"q9"Symbol 888 MovieClip Frame 1Symbol 860 Button
"q10"Symbol 888 MovieClip Frame 1Symbol 861 Button
"q11"Symbol 888 MovieClip Frame 1Symbol 862 Button
"q12"Symbol 888 MovieClip Frame 1Symbol 863 Button
"q13"Symbol 888 MovieClip Frame 1Symbol 864 Button
"q14"Symbol 888 MovieClip Frame 1Symbol 865 Button
"q15"Symbol 888 MovieClip Frame 1Symbol 866 Button
"q16"Symbol 888 MovieClip Frame 1Symbol 867 Button
"q17"Symbol 888 MovieClip Frame 1Symbol 868 Button
"q18"Symbol 888 MovieClip Frame 1Symbol 869 Button
"q19"Symbol 888 MovieClip Frame 1Symbol 870 Button
"q20"Symbol 888 MovieClip Frame 1Symbol 871 Button
"q21"Symbol 888 MovieClip Frame 1Symbol 872 Button
"q22"Symbol 888 MovieClip Frame 1Symbol 873 Button
"q23"Symbol 888 MovieClip Frame 1Symbol 874 Button
"q24"Symbol 888 MovieClip Frame 1Symbol 875 Button
"q25"Symbol 888 MovieClip Frame 1Symbol 876 Button
"q26"Symbol 888 MovieClip Frame 1Symbol 877 Button
"q27"Symbol 888 MovieClip Frame 1Symbol 878 Button
"q28"Symbol 888 MovieClip Frame 1Symbol 879 Button
"q29"Symbol 888 MovieClip Frame 1Symbol 880 Button
"q30"Symbol 888 MovieClip Frame 1Symbol 881 Button
"fx2"Symbol 888 MovieClip Frame 1Symbol 887 MovieClip
"ball21"Symbol 908 MovieClip Frame 1Symbol 677 MovieClip
"ball11"Symbol 908 MovieClip Frame 1Symbol 677 MovieClip
"bluekey"Symbol 908 MovieClip Frame 1Symbol 684 MovieClip
"orangekey"Symbol 908 MovieClip Frame 1Symbol 684 MovieClip
"greenkey"Symbol 908 MovieClip Frame 1Symbol 684 MovieClip
"redkey"Symbol 908 MovieClip Frame 1Symbol 684 MovieClip
"nextbutton"Symbol 908 MovieClip Frame 1Symbol 907 Button
"scan"Symbol 916 MovieClip Frame 1Symbol 675 MovieClip
"donebutton"Symbol 917 MovieClip Frame 1Symbol 914 Button
"finish2"Symbol 917 MovieClip Frame 1Symbol 73 MovieClip
"playkey"Symbol 917 MovieClip Frame 1Symbol 75 MovieClip
"expander2"Symbol 920 MovieClip Frame 2Symbol 919 MovieClip
"exit"Symbol 959 MovieClip Frame 1Symbol 923 Button
"logo"Symbol 959 MovieClip Frame 1Symbol 946 Button
"vainstar"Symbol 959 MovieClip Frame 1Symbol 948 Button
"chill"Symbol 959 MovieClip Frame 1Symbol 949 Button
"submitScore"Symbol 968 MovieClip Frame 1Symbol 789 Button
"exit"Symbol 968 MovieClip Frame 1Symbol 923 Button
"warning"Symbol 968 MovieClip Frame 1Symbol 967 MovieClip
"blueinside"Symbol 1103 MovieClip Frame 1Symbol 1102 MovieClip
"button"Symbol 1112 MovieClip Frame 1Symbol 1109 MovieClip
"greenwall"Symbol 1148 MovieClip Frame 1Symbol 1021 MovieClip
"bluestop"Symbol 1148 MovieClip Frame 3Symbol 1037 MovieClip
"warpkey1"Symbol 1148 MovieClip Frame 7Symbol 1044 MovieClip
"smallkey1"Symbol 1148 MovieClip Frame 7Symbol 1048 MovieClip
"crate4"Symbol 1148 MovieClip Frame 11Symbol 1071 MovieClip
"bluewall1"Symbol 1148 MovieClip Frame 14Symbol 1088 MovieClip
"blue_transparent"Symbol 1148 MovieClip Frame 14Symbol 700 MovieClip
"bluewall"Symbol 1148 MovieClip Frame 14Symbol 1103 MovieClip
"blue_transparent"Symbol 1148 MovieClip Frame 14Symbol 700 MovieClip
"transporter1"Symbol 1148 MovieClip Frame 20Symbol 1121 MovieClip
"transporter1"Symbol 1148 MovieClip Frame 20Symbol 1121 MovieClip
"submitScore"Symbol 1148 MovieClip Frame 30Symbol 1145 Button
"nextlevelinfo"Symbol 1152 MovieClip Frame 1Symbol 988 MovieClip
"mainmenu"Symbol 1152 MovieClip Frame 1Symbol 992 Button
"sponsorbutton"Symbol 1152 MovieClip Frame 1Symbol 999 Button
"space_nextlevel"Symbol 1152 MovieClip Frame 1Symbol 1004 MovieClip
"meter"Symbol 1152 MovieClip Frame 1Symbol 1013 MovieClip
"returnBack"Symbol 1152 MovieClip Frame 1Symbol 1016 Button
"instructions"Symbol 1152 MovieClip Frame 1Symbol 1148 MovieClip
"ball21"Symbol 1169 MovieClip Frame 1Symbol 677 MovieClip
"ball11"Symbol 1169 MovieClip Frame 1Symbol 677 MovieClip
"bluekey"Symbol 1169 MovieClip Frame 1Symbol 684 MovieClip
"orangekey"Symbol 1169 MovieClip Frame 1Symbol 684 MovieClip
"greenkey"Symbol 1169 MovieClip Frame 1Symbol 684 MovieClip
"redkey"Symbol 1169 MovieClip Frame 1Symbol 684 MovieClip
"greenwall"Symbol 1176 MovieClip Frame 3Symbol 1021 MovieClip
"bluestop"Symbol 1176 MovieClip Frame 5Symbol 1037 MovieClip
"warpkey1"Symbol 1176 MovieClip Frame 8Symbol 1044 MovieClip
"smallkey1"Symbol 1176 MovieClip Frame 8Symbol 1048 MovieClip
"crate4"Symbol 1176 MovieClip Frame 11Symbol 1071 MovieClip
"bluewall1"Symbol 1176 MovieClip Frame 12Symbol 1088 MovieClip
"blue_transparent"Symbol 1176 MovieClip Frame 12Symbol 700 MovieClip
"bluewall"Symbol 1176 MovieClip Frame 12Symbol 1103 MovieClip
"blue_transparent"Symbol 1176 MovieClip Frame 12Symbol 700 MovieClip
"transporter1"Symbol 1176 MovieClip Frame 14Symbol 1121 MovieClip
"transporter1"Symbol 1176 MovieClip Frame 14Symbol 1121 MovieClip
"backoptions"Symbol 1183 MovieClip Frame 1Symbol 1158 Button
"instructions"Symbol 1183 MovieClip Frame 1Symbol 1176 MovieClip
"leftkey"Symbol 1183 MovieClip Frame 1Symbol 1182 Button
"rightkey"Symbol 1183 MovieClip Frame 1Symbol 1182 Button
"line"Symbol 1206 MovieClip Frame 1Symbol 1204 MovieClip
"dragger"Symbol 1206 MovieClip Frame 1Symbol 1205 MovieClip
"highquality"Symbol 1252 MovieClip Frame 1Symbol 1187 MovieClip
"mediumquality"Symbol 1252 MovieClip Frame 1Symbol 1188 MovieClip
"lowquality"Symbol 1252 MovieClip Frame 1Symbol 1189 MovieClip
"stopsong"Symbol 1252 MovieClip Frame 1Symbol 1198 MovieClip
"playsong"Symbol 1252 MovieClip Frame 1Symbol 1200 MovieClip
"backward"Symbol 1252 MovieClip Frame 1Symbol 1202 MovieClip
"forward"Symbol 1252 MovieClip Frame 1Symbol 1202 MovieClip
"mySlider"Symbol 1252 MovieClip Frame 1Symbol 1206 MovieClip
"cycle"Symbol 1252 MovieClip Frame 1Symbol 1208 MovieClip
"repeat"Symbol 1252 MovieClip Frame 1Symbol 1209 MovieClip
"hintbox"Symbol 1252 MovieClip Frame 1Symbol 1243 MovieClip
"mainmenu"Symbol 1252 MovieClip Frame 1Symbol 992 Button
"sponsorbutton"Symbol 1252 MovieClip Frame 1Symbol 999 Button
"instructionbutton"Symbol 1252 MovieClip Frame 1Symbol 1246 Button
"meter"Symbol 1252 MovieClip Frame 1Symbol 1013 MovieClip
"returnBack"Symbol 1252 MovieClip Frame 1Symbol 923 Button
"fx"Symbol 1252 MovieClip Frame 1Symbol 1248 MovieClip
"fx2"Symbol 1252 MovieClip Frame 1Symbol 1249 MovieClip
"revealbox"Symbol 1252 MovieClip Frame 1Symbol 1251 MovieClip
"scan"Symbol 1255 MovieClip Frame 1Symbol 675 MovieClip
"scan"Symbol 1255 MovieClip Frame 60Symbol 675 MovieClip
"scan"Symbol 1256 MovieClip Frame 1Symbol 675 MovieClip
"m_s"Symbol 1256 MovieClip Frame 2Symbol 1255 MovieClip
"scan"Symbol 1257 MovieClip Frame 1Symbol 675 MovieClip
"m_s"Symbol 1257 MovieClip Frame 2Symbol 1255 MovieClip
"scan"Symbol 1277 MovieClip Frame 1Symbol 675 MovieClip
"scan"Symbol 1278 MovieClip Frame 1Symbol 675 MovieClip
"scan"Symbol 1283 MovieClip Frame 1Symbol 675 MovieClip
"scan"Symbol 1284 MovieClip Frame 1Symbol 675 MovieClip
"inside2"Symbol 1291 MovieClip Frame 2Symbol 1290 MovieClip
"inside3"Symbol 1291 MovieClip Frame 3Symbol 1285 MovieClip
"scan"Symbol 1292 MovieClip Frame 1Symbol 675 MovieClip
"inside2"Symbol 1295 MovieClip Frame 2Symbol 1293 MovieClip
"inside3"Symbol 1295 MovieClip Frame 3Symbol 1294 MovieClip
"scan"Symbol 1297 MovieClip Frame 1Symbol 675 MovieClip
"scan"Symbol 1298 MovieClip Frame 1Symbol 675 MovieClip
"scan"Symbol 1311 MovieClip Frame 1Symbol 675 MovieClip
"scan"Symbol 1312 MovieClip Frame 1Symbol 675 MovieClip
"thingy"Symbol 1370 MovieClip Frame 1Symbol 711 MovieClip
"scan"Symbol 1374 MovieClip Frame 1Symbol 675 MovieClip
"scan"Symbol 1375 MovieClip Frame 1Symbol 675 MovieClip
"inside"Symbol 1432 MovieClip Frame 2Symbol 1431 MovieClip
"inside"Symbol 1437 MovieClip Frame 2Symbol 1436 MovieClip
"inside"Symbol 1439 MovieClip Frame 2Symbol 1438 MovieClip
"button"Symbol 1480 MovieClip Frame 1Symbol 1109 MovieClip
"inside"Symbol 1512 MovieClip Frame 2Symbol 1511 MovieClip
"inside"Symbol 1516 MovieClip Frame 2Symbol 1515 MovieClip
"inside"Symbol 1519 MovieClip Frame 2Symbol 1518 MovieClip
"inside"Symbol 1527 MovieClip Frame 2Symbol 1526 MovieClip
"inside"Symbol 1530 MovieClip Frame 2Symbol 1529 MovieClip
"inside"Symbol 1533 MovieClip Frame 2Symbol 1532 MovieClip
"scan"Symbol 1541 MovieClip Frame 1Symbol 675 MovieClip
"m_s"Symbol 1541 MovieClip Frame 2Symbol 1255 MovieClip
"scan"Symbol 1542 MovieClip Frame 1Symbol 675 MovieClip
"m_s"Symbol 1542 MovieClip Frame 2Symbol 1255 MovieClip
"scan"Symbol 1550 MovieClip Frame 1Symbol 675 MovieClip
"scan"Symbol 1551 MovieClip Frame 1Symbol 675 MovieClip
"thingy"Symbol 1622 MovieClip Frame 1Symbol 1621 MovieClip
"inside"Symbol 1665 MovieClip Frame 2Symbol 1664 MovieClip
"insidetop"Symbol 1679 MovieClip Frame 1Symbol 1676 MovieClip
"insidebottom"Symbol 1679 MovieClip Frame 1Symbol 1678 MovieClip
"m_s"Symbol 1747 MovieClip Frame 2Symbol 1255 MovieClip
"reddot"Symbol 1816 MovieClip Frame 1Symbol 1755 MovieClip
"scan"Symbol 1917 MovieClip Frame 1Symbol 675 MovieClip
"scan"Symbol 1918 MovieClip Frame 1Symbol 675 MovieClip
"button"Symbol 1995 MovieClip Frame 1Symbol 1109 MovieClip
"scan"Symbol 1996 MovieClip Frame 1Symbol 675 MovieClip
"scan"Symbol 1997 MovieClip Frame 1Symbol 675 MovieClip
"inside"Symbol 2049 MovieClip Frame 2Symbol 2048 MovieClip
"thingy"Symbol 2055 MovieClip Frame 1Symbol 711 MovieClip
"middlewall"Symbol 2069 MovieClip Frame 1Symbol 2068 MovieClip
"scan"Symbol 2077 MovieClip Frame 1Symbol 675 MovieClip
"scan"Symbol 2078 MovieClip Frame 1Symbol 675 MovieClip
"scan"Symbol 2172 MovieClip Frame 1Symbol 675 MovieClip
"scan"Symbol 2173 MovieClip Frame 1Symbol 675 MovieClip
"scan"Symbol 2182 MovieClip Frame 1Symbol 675 MovieClip
"scan"Symbol 2195 MovieClip Frame 1Symbol 675 MovieClip
"scan"Symbol 2196 MovieClip Frame 1Symbol 675 MovieClip
"insidebottom"Symbol 2299 MovieClip Frame 1Symbol 2298 MovieClip
"scan"Symbol 2313 MovieClip Frame 1Symbol 675 MovieClip
"scan"Symbol 2314 MovieClip Frame 1Symbol 675 MovieClip
"button"Symbol 2463 MovieClip Frame 1Symbol 1109 MovieClip
"scan"Symbol 2464 MovieClip Frame 1Symbol 675 MovieClip
"scan"Symbol 2517 MovieClip Frame 1Symbol 675 MovieClip
"scan"Symbol 2518 MovieClip Frame 1Symbol 675 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access network only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 1 as "wallhit"
ExportAssets (56)Timeline Frame 1Symbol 2 as "transport"
ExportAssets (56)Timeline Frame 1Symbol 3 as "switch"
ExportAssets (56)Timeline Frame 1Symbol 4 as "stop"
ExportAssets (56)Timeline Frame 1Symbol 5 as "smallkey"
ExportAssets (56)Timeline Frame 1Symbol 6 as "reverse"
ExportAssets (56)Timeline Frame 1Symbol 7 as "key"
ExportAssets (56)Timeline Frame 1Symbol 8 as "EXPLOSION"
ExportAssets (56)Timeline Frame 1Symbol 9 as "crate"
ExportAssets (56)Timeline Frame 1Symbol 11 as "Circle"
ExportAssets (56)Timeline Frame 1Symbol 12 as "blip"
ExportAssets (56)Timeline Frame 1Symbol 2554 as "__Packages.ab3.rankz.Armor_Bot_30_En_AS1"

Labels

"l2"Frame 4
"l3"Frame 5
"l4"Frame 6
"level4"Frame 6
"l5"Frame 7
"l6"Frame 8
"l7"Frame 9
"l8"Frame 10
"l9"Frame 11
"l10"Frame 12
"l11"Frame 13
"l12"Frame 14
"l13"Frame 15
"l14"Frame 16
"l15"Frame 17
"l16"Frame 18
"l17"Frame 19
"l18"Frame 20
"l19"Frame 21
"l20"Frame 22
"l21"Frame 23
"l22"Frame 24
"l23"Frame 25
"l24"Frame 26
"l25"Frame 27
"l26"Frame 28
"l27"Frame 29
"l28"Frame 30
"l29"Frame 31
"l30"Frame 32
"l31"Frame 33
"l32"Frame 34
"l33"Frame 35
"l34"Frame 36
"loaded"Symbol 40 MovieClip Frame 2
"expander2"Symbol 920 MovieClip Frame 2

Dynamic Text Variables

_root.scoreSymbol 791 EditableText""
_root.level1_best_timeSymbol 793 EditableText"---"
_root.level2_best_timeSymbol 794 EditableText"___"
_root.level3_best_timeSymbol 795 EditableText"___"
_root.level4_best_timeSymbol 796 EditableText"___"
_root.level5_best_timeSymbol 797 EditableText"___"
_root.level6_best_timeSymbol 803 EditableText"___"
_root.level7_best_timeSymbol 804 EditableText"___"
_root.level8_best_timeSymbol 805 EditableText"___"
_root.level9_best_timeSymbol 806 EditableText"___"
_root.level10_best_timeSymbol 807 EditableText"___"
_root.level11_best_timeSymbol 813 EditableText"___"
_root.level12_best_timeSymbol 814 EditableText"___"
_root.level13_best_timeSymbol 815 EditableText"___"
_root.level14_best_timeSymbol 816 EditableText"___"
_root.level15_best_timeSymbol 817 EditableText"___"
_root.level16_best_timeSymbol 823 EditableText"___"
_root.level17_best_timeSymbol 824 EditableText"___"
_root.level18_best_timeSymbol 825 EditableText"___"
_root.level19_best_timeSymbol 826 EditableText"___"
_root.level20_best_timeSymbol 827 EditableText"___"
_root.level21_best_timeSymbol 833 EditableText"___"
_root.level22_best_timeSymbol 834 EditableText"___"
_root.level23_best_timeSymbol 835 EditableText"___"
_root.level24_best_timeSymbol 836 EditableText"___"
_root.level25_best_timeSymbol 837 EditableText"___"
_root.level26_best_timeSymbol 843 EditableText"___"
_root.level27_best_timeSymbol 844 EditableText"___"
_root.level28_best_timeSymbol 845 EditableText"___"
_root.level29_best_timeSymbol 846 EditableText"___"
_root.level30_best_timeSymbol 847 EditableText"___"
_root.totaltimeSymbol 848 EditableText"2222"
_root.totaltimeSymbol 962 EditableText""
_root.mynameSymbol 964 EditableText"name"
_root.totaltimeSymbol 1147 EditableText"5555"
_root.secondsSymbol 1150 EditableText""
_root.bestScoreSymbol 1151 EditableText""
level1_best_timeSymbol 1258 EditableText""
timedisplay2Symbol 1261 EditableText""
level2_best_timeSymbol 1281 EditableText""
level7_best_timeSymbol 1302 EditableText""
level6_best_timeSymbol 1363 EditableText""
level4_best_timeSymbol 1376 EditableText""
level5_best_timeSymbol 1399 EditableText""
level10_best_timeSymbol 1418 EditableText""
level8_best_timeSymbol 1547 EditableText""
level22_best_timeSymbol 1552 EditableText""
level19_best_timeSymbol 1655 EditableText""
level12_best_timeSymbol 1688 EditableText""
level16_best_timeSymbol 1733 EditableText""
decoy2xSymbol 1858 EditableText""
decoy2ySymbol 1859 EditableText""
ball2ySymbol 1860 EditableText""
ball2xSymbol 1861 EditableText""
level15_best_timeSymbol 1900 EditableText""
level23_best_timeSymbol 1936 EditableText""
level11_best_timeSymbol 1967 EditableText""
level17_best_timeSymbol 1993 EditableText""
level20_best_timeSymbol 2021 EditableText""
level14_best_timeSymbol 2074 EditableText""
level21_best_timeSymbol 2100 EditableText""
level18_best_timeSymbol 2157 EditableText""
level9_best_timeSymbol 2166 EditableText""
level3_best_timeSymbol 2176 EditableText""
level13_best_timeSymbol 2190 EditableText""
level30_best_timeSymbol 2256 EditableText""
level28_best_timeSymbol 2319 EditableText""
level24_best_timeSymbol 2383 EditableText""
level29_best_timeSymbol 2460 EditableText""
level26_best_timeSymbol 2513 EditableText""
level25_best_timeSymbol 2526 EditableText""
level27_best_timeSymbol 2538 EditableText""




http://swfchan.com/10/47473/info.shtml
Created: 11/12 -2019 19:40:34 Last modified: 11/12 -2019 19:40:34 Server time: 12/05 -2024 21:21:26