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

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

Two Rooms.swf

This is the info page for
Flash #56329

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

Hold the right
key as you
press against
the purple wall

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

Instance Names

"backgroundtexture"Frame 1Symbol 15 MovieClip
"leftwall"Frame 1Symbol 21 MovieClip
"leftwall"Frame 1Symbol 21 MovieClip
"rightwall"Frame 1Symbol 21 MovieClip
"adBox"Frame 1Symbol 31 MovieClip
"rightwall"Frame 2Symbol 21 MovieClip
"you_understand_obj"Frame 3Symbol 67 MovieClip
"optionkey"Frame 3Symbol 75 MovieClip
"finish4"Frame 3Symbol 75 MovieClip
"finish2"Frame 3Symbol 75 MovieClip
"finish3"Frame 3Symbol 75 MovieClip
"playkey"Frame 3Symbol 77 MovieClip
"ball2"Frame 3Symbol 679 MovieClip
"bluekey"Frame 3Symbol 686 MovieClip
"orangekey"Frame 3Symbol 686 MovieClip
"greenkey"Frame 3Symbol 686 MovieClip
"redkey"Frame 3Symbol 686 MovieClip
"finish7"Frame 3Symbol 689 MovieClip
"finish8"Frame 3Symbol 689 MovieClip
"divider"Frame 3Symbol 71 MovieClip
"ball1"Frame 3Symbol 678 MovieClip
"redwall"Frame 3Symbol 724 MovieClip
"greenwall"Frame 3Symbol 726 MovieClip
"bluewall"Frame 3Symbol 728 MovieClip
"orangewall"Frame 3Symbol 732 MovieClip
"leftwall"Frame 3Symbol 21 MovieClip
"topwall"Frame 3Symbol 737 MovieClip
"middlewall"Frame 3Symbol 21 MovieClip
"rightwall"Frame 3Symbol 21 MovieClip
"bottomwall"Frame 3Symbol 737 MovieClip
"option2"Frame 3Symbol 889 MovieClip
"expander"Frame 3Symbol 921 MovieClip
"option3"Frame 3Symbol 960 MovieClip
"option9"Frame 3Symbol 969 MovieClip
"BN"Frame 3Symbol 971 MovieClip
"QW"Frame 3Symbol 973 MovieClip
"P"Frame 3Symbol 975 MovieClip
"restartbutton"Frame 3Symbol 978 Button
"options"Frame 3Symbol 980 MovieClip
"win"Frame 3Symbol 1153 MovieClip
"instruction"Frame 3Symbol 1184 MovieClip
"option"Frame 3Symbol 1251 MovieClip
"expander"Frame 3Symbol 921 MovieClip
"backgroundtexture"Frame 4Symbol 15 MovieClip
"greenwall"Frame 4Symbol 1022 MovieClip
"finish"Frame 4Symbol 75 MovieClip
"ball2"Frame 4Symbol 1255 MovieClip
"ball1"Frame 4Symbol 1256 MovieClip
"timedisplayobj"Frame 4Symbol 1257 EditableText
"timedisplayobj"Frame 4Symbol 1260 EditableText
"youwin"Frame 4Symbol 1267 MovieClip
"winningscreen"Frame 4Symbol 1272 MovieClip
"finish"Frame 5Symbol 75 MovieClip
"orangekey"Frame 5Symbol 686 MovieClip
"pinkkey"Frame 5Symbol 1273 MovieClip
"pinkwall"Frame 5Symbol 1275 MovieClip
"greenwall"Frame 5Symbol 726 MovieClip
"orangewall"Frame 5Symbol 732 MovieClip
"ball1"Frame 5Symbol 1276 MovieClip
"ball2"Frame 5Symbol 1277 MovieClip
"topwall"Frame 5Symbol 1279 MovieClip
"timedisplayobj"Frame 5Symbol 1280 EditableText
"decoy2"Frame 6Symbol 1290 MovieClip
"decoy"Frame 6Symbol 1294 MovieClip
"detector1"Frame 6Symbol 1295 MovieClip
"ball1"Frame 6Symbol 1296 MovieClip
"ball2"Frame 6Symbol 1297 MovieClip
"greenwall"Frame 6Symbol 1299 MovieClip
"orangewall"Frame 6Symbol 1301 MovieClip
"blackwall"Frame 6Symbol 21 MovieClip
"topwall"Frame 6Symbol 737 MovieClip
"timedisplayobj"Frame 6Symbol 1302 EditableText
"finish"Frame 7Symbol 689 MovieClip
"decoy"Frame 7Symbol 1306 MovieClip
"decoy2"Frame 7Symbol 1310 MovieClip
"pinkkey"Frame 7Symbol 1273 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 21 MovieClip
"blackwallleftsidemiddle"Frame 7Symbol 21 MovieClip
"pinkstop"Frame 7Symbol 1354 MovieClip
"timedisplayobj"Frame 7Symbol 1363 EditableText
"finish"Frame 8Symbol 75 MovieClip
"orangestop"Frame 8Symbol 1354 MovieClip
"orangekey"Frame 8Symbol 686 MovieClip
"orangewall"Frame 8Symbol 1370 MovieClip
"pressp"Frame 8Symbol 1373 MovieClip
"ball2"Frame 8Symbol 1374 MovieClip
"ball1"Frame 8Symbol 1375 MovieClip
"middlewall"Frame 8Symbol 21 MovieClip
"blackwall"Frame 8Symbol 21 MovieClip
"timedisplayobj"Frame 8Symbol 1376 EditableText
"finish"Frame 9Symbol 689 MovieClip
"greenwall2"Frame 9Symbol 1386 MovieClip
"greenkey"Frame 9Symbol 686 MovieClip
"pinkkey"Frame 9Symbol 1273 MovieClip
"greenstop"Frame 9Symbol 1354 MovieClip
"pinkwall1"Frame 9Symbol 1387 MovieClip
"ball1"Frame 9Symbol 1256 MovieClip
"ball2"Frame 9Symbol 1255 MovieClip
"orangewall1"Frame 9Symbol 1388 MovieClip
"pinkwall"Frame 9Symbol 1392 MovieClip
"orangewall"Frame 9Symbol 1394 MovieClip
"greenwall"Frame 9Symbol 1398 MovieClip
"leftsidewall"Frame 9Symbol 21 MovieClip
"rightsidewall"Frame 9Symbol 21 MovieClip
"timedisplayobj"Frame 9Symbol 1399 EditableText
"decoy2"Frame 10Symbol 1290 MovieClip
"decoy"Frame 10Symbol 1294 MovieClip
"bluewall1"Frame 10Symbol 1404 MovieClip
"detector1"Frame 10Symbol 1295 MovieClip
"ball1"Frame 10Symbol 1256 MovieClip
"ball2"Frame 10Symbol 1255 MovieClip
"pinkwall2"Frame 10Symbol 1386 MovieClip
"orangekey"Frame 10Symbol 686 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 1273 MovieClip
"orangewall"Frame 10Symbol 1417 MovieClip
"r3"Frame 10Symbol 21 MovieClip
"l1"Frame 10Symbol 21 MovieClip
"l2"Frame 10Symbol 21 MovieClip
"l3"Frame 10Symbol 21 MovieClip
"timedisplayobj"Frame 10Symbol 1418 EditableText
"youwin"Frame 10Symbol 1267 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 686 MovieClip
"bluestop"Frame 11Symbol 1354 MovieClip
"bluestop"Frame 11Symbol 1354 MovieClip
"bluekey"Frame 11Symbol 1273 MovieClip
"pinkkey"Frame 11Symbol 1273 MovieClip
"orangestop"Frame 11Symbol 1354 MovieClip
"orangekey"Frame 11Symbol 686 MovieClip
"ball1"Frame 11Symbol 1256 MovieClip
"finish"Frame 11Symbol 689 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 21 MovieClip
"bottomwall"Frame 11Symbol 737 MovieClip
"leftside"Frame 11Symbol 21 MovieClip
"topwall"Frame 11Symbol 1538 MovieClip
"backgroundtexture"Frame 12Symbol 15 MovieClip
"finish"Frame 12Symbol 75 MovieClip
"finish2"Frame 12Symbol 75 MovieClip
"ball1"Frame 12Symbol 1541 MovieClip
"ball2"Frame 12Symbol 1542 MovieClip
"warpkey1"Frame 12Symbol 1045 MovieClip
"smallkey1"Frame 12Symbol 1049 MovieClip
"non"Frame 12Symbol 1544 MovieClip
"leftsider"Frame 12Symbol 1546 MovieClip
"topwall"Frame 12Symbol 737 MovieClip
"middlewall"Frame 12Symbol 21 MovieClip
"leftside1"Frame 12Symbol 21 MovieClip
"rightside1"Frame 12Symbol 21 MovieClip
"timedisplayobj"Frame 12Symbol 1547 EditableText
"finish"Frame 13Symbol 689 MovieClip
"finish2"Frame 13Symbol 689 MovieClip
"warpkey2"Frame 13Symbol 1045 MovieClip
"leftside"Frame 13Symbol 21 MovieClip
"rightside"Frame 13Symbol 21 MovieClip
"rightright"Frame 13Symbol 21 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 686 MovieClip
"orangekey"Frame 14Symbol 686 MovieClip
"bluekey"Frame 14Symbol 1273 MovieClip
"bluewall3"Frame 14Symbol 1405 MovieClip
"greenwall2"Frame 14Symbol 1406 MovieClip
"yellowwall2"Frame 14Symbol 1406 MovieClip
"orangekey2"Frame 14Symbol 686 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 686 MovieClip
"orange_transparent"Frame 14Symbol 1579 MovieClip
"smallkey"Frame 14Symbol 1583 MovieClip
"pinkkey"Frame 14Symbol 1273 MovieClip
"ball2"Frame 14Symbol 1255 MovieClip
"ball1"Frame 14Symbol 1256 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 1294 MovieClip
"decoy2"Frame 14Symbol 1290 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 1638 MovieClip
"orange_piece"Frame 14Symbol 1640 MovieClip
"rm"Frame 14Symbol 1644 MovieClip
"rt"Frame 14Symbol 1646 MovieClip
"lb"Frame 14Symbol 21 MovieClip
"ltop"Frame 14Symbol 21 MovieClip
"rightwall"Frame 14Symbol 21 MovieClip
"orange_trans7parent2"Frame 14Symbol 1649 MovieClip
"middlewall"Frame 14Symbol 1651 MovieClip
"rb"Frame 14Symbol 1653 MovieClip
"bottomwall"Frame 14Symbol 1655 MovieClip
"lmid2"Frame 14Symbol 21 MovieClip
"timedisplayobj"Frame 14Symbol 1656 EditableText
"finish"Frame 15Symbol 1658 MovieClip
"decoy2"Frame 15Symbol 1290 MovieClip
"decoy"Frame 15Symbol 1294 MovieClip
"finish"Frame 15Symbol 75 MovieClip
"crate1"Frame 15Symbol 1072 MovieClip
"aquawall"Frame 15Symbol 724 MovieClip
"redkey"Frame 15Symbol 1660 MovieClip
"ball1"Frame 15Symbol 679 MovieClip
"ball2"Frame 15Symbol 679 MovieClip
"decoy_crate"Frame 15Symbol 1666 MovieClip
"redwall"Frame 15Symbol 1674 MovieClip
"aquakey"Frame 15Symbol 686 MovieClip
"middlewall"Frame 15Symbol 1680 MovieClip
"leftwall"Frame 15Symbol 1682 MovieClip
"topwall"Frame 15Symbol 1683 MovieClip
"bottomwall"Frame 15Symbol 1685 MovieClip
"rightwall"Frame 15Symbol 1686 MovieClip
"topwall"Frame 15Symbol 737 MovieClip
"bottomwall1"Frame 15Symbol 1688 MovieClip
"timedisplayobj"Frame 15Symbol 1689 EditableText
"finish"Frame 16Symbol 1691 MovieClip
"decoy2"Frame 16Symbol 1290 MovieClip
"decoy"Frame 16Symbol 1294 MovieClip
"decoy_crate"Frame 16Symbol 1666 MovieClip
"smallkey"Frame 16Symbol 1583 MovieClip
"crate2"Frame 16Symbol 1072 MovieClip
"bluewall11"Frame 16Symbol 1695 MovieClip
"bluewall21"Frame 16Symbol 1695 MovieClip
"blue_follower1"Frame 16Symbol 1379 MovieClip
"blue_arrow"Frame 16Symbol 1697 MovieClip
"orangewall4"Frame 16Symbol 1698 MovieClip
"greenwall2"Frame 16Symbol 1700 MovieClip
"pinkwall2"Frame 16Symbol 1387 MovieClip
"greenkey"Frame 16Symbol 686 MovieClip
"pinkkey"Frame 16Symbol 1273 MovieClip
"bluekey"Frame 16Symbol 1273 MovieClip
"blue_transparent1"Frame 16Symbol 1701 MovieClip
"crate1"Frame 16Symbol 1072 MovieClip
"crate5"Frame 16Symbol 1072 MovieClip
"crate3"Frame 16Symbol 1072 MovieClip
"crate4"Frame 16Symbol 1072 MovieClip
"greenwall"Frame 16Symbol 1705 MovieClip
"pinkwall"Frame 16Symbol 1275 MovieClip
"bluewall"Frame 16Symbol 1715 MovieClip
"orangewall"Frame 16Symbol 1301 MovieClip
"orangekey"Frame 16Symbol 686 MovieClip
"ball2"Frame 16Symbol 1255 MovieClip
"ball1"Frame 16Symbol 1256 MovieClip
"blue_transparent"Frame 16Symbol 702 MovieClip
"bluewall2"Frame 16Symbol 1717 MovieClip
"bluewall1"Frame 16Symbol 1718 MovieClip
"midwid"Frame 16Symbol 1720 MovieClip
"lm"Frame 16Symbol 21 MovieClip
"lb"Frame 16Symbol 21 MovieClip
"rightwall"Frame 16Symbol 21 MovieClip
"bottomwall"Frame 16Symbol 737 MovieClip
"middlewall"Frame 16Symbol 1731 MovieClip
"timedisplayobj"Frame 16Symbol 1734 EditableText
"finish"Frame 17Symbol 1737 MovieClip
"decoy"Frame 17Symbol 1306 MovieClip
"decoy2"Frame 17Symbol 1310 MovieClip
"aquakey"Frame 17Symbol 1739 MovieClip
"smallkey"Frame 17Symbol 1741 MovieClip
"pinkkey"Frame 17Symbol 1743 MovieClip
"ball2"Frame 17Symbol 1746 MovieClip
"ball1"Frame 17Symbol 1748 MovieClip
"greenkey"Frame 17Symbol 1750 MovieClip
"orangekey"Frame 17Symbol 1752 MovieClip
"crate2"Frame 17Symbol 1754 MovieClip
"fastkey"Frame 17Symbol 1817 MovieClip
"lredkey"Frame 17Symbol 1819 MovieClip
"yellowkey"Frame 17Symbol 1821 MovieClip
"bluekey"Frame 17Symbol 1823 MovieClip
"pinkwall"Frame 17Symbol 1825 MovieClip
"aquawall"Frame 17Symbol 1827 MovieClip
"redwall"Frame 17Symbol 1829 MovieClip
"orangewall1"Frame 17Symbol 1831 MovieClip
"orangewall2"Frame 17Symbol 1833 MovieClip
"greenwall"Frame 17Symbol 1835 MovieClip
"lredwall"Frame 17Symbol 1837 MovieClip
"bluewall"Frame 17Symbol 1839 MovieClip
"redkey"Frame 17Symbol 1841 MovieClip
"crate1"Frame 17Symbol 1843 MovieClip
"yellowwall"Frame 17Symbol 1845 MovieClip
"middlewall"Frame 17Symbol 1847 MovieClip
"rightwall"Frame 17Symbol 1849 MovieClip
"rt"Frame 17Symbol 1851 MovieClip
"rb"Frame 17Symbol 1852 MovieClip
"rm"Frame 17Symbol 1854 MovieClip
"lm"Frame 17Symbol 1856 MovieClip
"lb"Frame 17Symbol 1857 MovieClip
"finish"Frame 18Symbol 1863 MovieClip
"decoy2"Frame 18Symbol 1290 MovieClip
"decoy"Frame 18Symbol 1294 MovieClip
"greenkey"Frame 18Symbol 686 MovieClip
"bluekey"Frame 18Symbol 1273 MovieClip
"greenwall"Frame 18Symbol 1864 MovieClip
"redkey"Frame 18Symbol 686 MovieClip
"ball1"Frame 18Symbol 1296 MovieClip
"ball2"Frame 18Symbol 1297 MovieClip
"bluewall"Frame 18Symbol 1868 MovieClip
"lm"Frame 18Symbol 21 MovieClip
"greenwallleft"Frame 18Symbol 1874 MovieClip
"redwall"Frame 18Symbol 1882 MovieClip
"greenwallright"Frame 18Symbol 1874 MovieClip
"lb"Frame 18Symbol 1884 MovieClip
"green_transparent"Frame 18Symbol 1886 MovieClip
"topwall"Frame 18Symbol 1890 MovieClip
"middlewall"Frame 18Symbol 1892 MovieClip
"middlewall2"Frame 18Symbol 1894 MovieClip
"leftwall"Frame 18Symbol 21 MovieClip
"rightwall"Frame 18Symbol 1896 MovieClip
"rr"Frame 18Symbol 1898 MovieClip
"bottomwall"Frame 18Symbol 1900 MovieClip
"timedisplayobj"Frame 18Symbol 1901 EditableText
"youwin"Frame 18Symbol 1906 MovieClip
"winningscreen"Frame 18Symbol 1910 MovieClip
"finish"Frame 19Symbol 1911 MovieClip
"finish2"Frame 19Symbol 1911 MovieClip
"pinkkey"Frame 19Symbol 1273 MovieClip
"bluewall2"Frame 19Symbol 1405 MovieClip
"orangewall1"Frame 19Symbol 1388 MovieClip
"bluekey"Frame 19Symbol 1273 MovieClip
"pinkwall1"Frame 19Symbol 1387 MovieClip
"bluestop"Frame 19Symbol 1354 MovieClip
"bluewall"Frame 19Symbol 1917 MovieClip
"orangekey"Frame 19Symbol 686 MovieClip
"ball1"Frame 19Symbol 1918 MovieClip
"ball2"Frame 19Symbol 1919 MovieClip
"pinkwall"Frame 19Symbol 1921 MovieClip
"orangewall"Frame 19Symbol 1923 MovieClip
"middletop"Frame 19Symbol 1926 MovieClip
"rl"Frame 19Symbol 21 MovieClip
"bottomwall"Frame 19Symbol 1928 MovieClip
"rightwall"Frame 19Symbol 1930 MovieClip
"warpkey"Frame 19Symbol 1045 MovieClip
"rightwall"Frame 19Symbol 21 MovieClip
"middlewall"Frame 19Symbol 1932 MovieClip
"topwall"Frame 19Symbol 737 MovieClip
"timedisplayobj"Frame 19Symbol 1937 EditableText
"finish"Frame 20Symbol 689 MovieClip
"pinkkey"Frame 20Symbol 1273 MovieClip
"orangewall31"Frame 20Symbol 1388 MovieClip
"orangekey"Frame 20Symbol 686 MovieClip
"ball1"Frame 20Symbol 1918 MovieClip
"ball2"Frame 20Symbol 1919 MovieClip
"orangewall11"Frame 20Symbol 1388 MovieClip
"orangewall21"Frame 20Symbol 1388 MovieClip
"orangewall3"Frame 20Symbol 1942 MovieClip
"orangewall1"Frame 20Symbol 1950 MovieClip
"orangewall2"Frame 20Symbol 1954 MovieClip
"pinkwall"Frame 20Symbol 1958 MovieClip
"topwall"Frame 20Symbol 1961 MovieClip
"rotunda"Frame 20Symbol 21 MovieClip
"middlewall"Frame 20Symbol 1965 MovieClip
"bottomwall"Frame 20Symbol 1967 MovieClip
"timedisplayobj"Frame 20Symbol 1968 EditableText
"finish"Frame 21Symbol 75 MovieClip
"decoy"Frame 21Symbol 1306 MovieClip
"decoy2"Frame 21Symbol 1310 MovieClip
"greenwall1"Frame 21Symbol 1970 MovieClip
"redwall1"Frame 21Symbol 1971 MovieClip
"orangewall1"Frame 21Symbol 1973 MovieClip
"bluewall1"Frame 21Symbol 1974 MovieClip
"blueswitch"Frame 21Symbol 1480 MovieClip
"orangeswitch"Frame 21Symbol 1480 MovieClip
"redswitch"Frame 21Symbol 1480 MovieClip
"greenswitch"Frame 21Symbol 1480 MovieClip
"crate1"Frame 21Symbol 1072 MovieClip
"ball1"Frame 21Symbol 1918 MovieClip
"ball2"Frame 21Symbol 1919 MovieClip
"redwall"Frame 21Symbol 724 MovieClip
"bluewall"Frame 21Symbol 728 MovieClip
"greenwall"Frame 21Symbol 726 MovieClip
"orangewall"Frame 21Symbol 1976 MovieClip
"bottomwall"Frame 21Symbol 1979 MovieClip
"topwall"Frame 21Symbol 1981 MovieClip
"leftwall"Frame 21Symbol 1983 MovieClip
"lll1"Frame 21Symbol 1984 MovieClip
"llr1"Frame 21Symbol 1985 MovieClip
"lrr1"Frame 21Symbol 1984 MovieClip
"lrl1"Frame 21Symbol 1985 MovieClip
"middlewall"Frame 21Symbol 21 MovieClip
"lll"Frame 21Symbol 1987 MovieClip
"lrr"Frame 21Symbol 1987 MovieClip
"middlewall1"Frame 21Symbol 1989 MovieClip
"llr"Frame 21Symbol 1991 MovieClip
"lrl"Frame 21Symbol 1993 MovieClip
"timedisplayobj"Frame 21Symbol 1994 EditableText
"orangeswitch"Frame 22Symbol 1996 MovieClip
"ball2"Frame 22Symbol 1997 MovieClip
"ball1"Frame 22Symbol 1998 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 686 MovieClip
"finish"Frame 22Symbol 1999 MovieClip
"redwall"Frame 22Symbol 2007 MovieClip
"redwall3"Frame 22Symbol 2011 MovieClip
"redwall2"Frame 22Symbol 2015 MovieClip
"bluewall"Frame 22Symbol 1606 MovieClip
"orangewall2"Frame 22Symbol 2021 MovieClip
"skinnyright"Frame 22Symbol 21 MovieClip
"skinnyleft"Frame 22Symbol 21 MovieClip
"leftwall"Frame 22Symbol 21 MovieClip
"topwall"Frame 22Symbol 737 MovieClip
"rightwall"Frame 22Symbol 21 MovieClip
"bottomwall"Frame 22Symbol 737 MovieClip
"timedisplayobj"Frame 22Symbol 2022 EditableText
"crate1"Frame 23Symbol 2026 MovieClip
"decoy_crate"Frame 23Symbol 2050 MovieClip
"finish"Frame 23Symbol 689 MovieClip
"redwall1"Frame 23Symbol 2051 MovieClip
"ball2"Frame 23Symbol 1919 MovieClip
"ball1"Frame 23Symbol 1918 MovieClip
"redwall21"Frame 23Symbol 2052 MovieClip
"redwall2"Frame 23Symbol 2056 MovieClip
"redwall"Frame 23Symbol 2060 MovieClip
"middlewall_insidetop"Frame 23Symbol 2065 MovieClip
"middlewall_insidebottom"Frame 23Symbol 2067 MovieClip
"middlewall"Frame 23Symbol 2070 MovieClip
"lm"Frame 23Symbol 2072 MovieClip
"lb"Frame 23Symbol 2074 MovieClip
"timedisplayobj"Frame 23Symbol 2075 EditableText
"finish"Frame 24Symbol 2077 MovieClip
"transporter1"Frame 24Symbol 1122 MovieClip
"transporter2"Frame 24Symbol 1122 MovieClip
"greenswitch"Frame 24Symbol 1480 MovieClip
"redstop"Frame 24Symbol 1354 MovieClip
"bluekey"Frame 24Symbol 686 MovieClip
"ball1"Frame 24Symbol 2078 MovieClip
"ball2"Frame 24Symbol 2079 MovieClip
"greenwall"Frame 24Symbol 1398 MovieClip
"decoy_crate"Frame 24Symbol 1666 MovieClip
"bluewall"Frame 24Symbol 2085 MovieClip
"redwall"Frame 24Symbol 2093 MovieClip
"crate1"Frame 24Symbol 1072 MovieClip
"skinnyright"Frame 24Symbol 2095 MovieClip
"rightmiddle"Frame 24Symbol 2097 MovieClip
"l2"Frame 24Symbol 21 MovieClip
"l1"Frame 24Symbol 21 MovieClip
"bottommiddle"Frame 24Symbol 2099 MovieClip
"middlewall22"Frame 24Symbol 21 MovieClip
"topmiddlewall"Frame 24Symbol 2100 MovieClip
"timedisplayobj"Frame 24Symbol 2101 EditableText
"insidewall2"Frame 24Symbol 2102 MovieClip
"insidewall"Frame 24Symbol 2102 MovieClip
"decoy_crate"Frame 25Symbol 1666 MovieClip
"aquakey"Frame 25Symbol 686 MovieClip
"greenkey"Frame 25Symbol 686 MovieClip
"lgreenkey"Frame 25Symbol 2108 MovieClip
"yellowkey"Frame 25Symbol 1273 MovieClip
"orangekey"Frame 25Symbol 686 MovieClip
"crate1"Frame 25Symbol 1072 MovieClip
"smallkey1"Frame 25Symbol 1583 MovieClip
"pinkwall1"Frame 25Symbol 2109 MovieClip
"aquawall2"Frame 25Symbol 2111 MovieClip
"greenwall2"Frame 25Symbol 2112 MovieClip
"lgreenwall2"Frame 25Symbol 2114 MovieClip
"lredwall2"Frame 25Symbol 2115 MovieClip
"bluewall0"Frame 25Symbol 2116 MovieClip
"orangewall2"Frame 25Symbol 2117 MovieClip
"yellowwall2"Frame 25Symbol 2118 MovieClip
"bluekey"Frame 25Symbol 1273 MovieClip
"lredkey"Frame 25Symbol 686 MovieClip
"pinkkey"Frame 25Symbol 686 MovieClip
"ball1"Frame 25Symbol 1256 MovieClip
"ball2"Frame 25Symbol 1255 MovieClip
"finish"Frame 25Symbol 2119 MovieClip
"redwall"Frame 25Symbol 2125 MovieClip
"pinkwall"Frame 25Symbol 2131 MovieClip
"greenwall"Frame 25Symbol 2135 MovieClip
"orangewall"Frame 25Symbol 2141 MovieClip
"yellowwall"Frame 25Symbol 2145 MovieClip
"lredwall"Frame 25Symbol 2151 MovieClip
"bluewall"Frame 25Symbol 2153 MovieClip
"aquawall"Frame 25Symbol 2155 MovieClip
"l4"Frame 25Symbol 21 MovieClip
"r1"Frame 25Symbol 21 MovieClip
"middlewall"Frame 25Symbol 21 MovieClip
"lgreenwall"Frame 25Symbol 2157 MovieClip
"l3"Frame 25Symbol 21 MovieClip
"timedisplayobj"Frame 25Symbol 2158 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 2078 MovieClip
"ball2"Frame 26Symbol 2079 MovieClip
"finish"Frame 26Symbol 2162 MovieClip
"redwall"Frame 26Symbol 2164 MovieClip
"bluewall"Frame 26Symbol 2166 MovieClip
"b7"Frame 26Symbol 21 MovieClip
"b2"Frame 26Symbol 21 MovieClip
"b11"Frame 26Symbol 21 MovieClip
"b12"Frame 26Symbol 21 MovieClip
"b9"Frame 26Symbol 21 MovieClip
"b10"Frame 26Symbol 21 MovieClip
"b4"Frame 26Symbol 21 MovieClip
"b1"Frame 26Symbol 21 MovieClip
"b5"Frame 26Symbol 21 MovieClip
"b3"Frame 26Symbol 21 MovieClip
"b6"Frame 26Symbol 21 MovieClip
"b8"Frame 26Symbol 21 MovieClip
"timedisplayobj"Frame 26Symbol 2167 EditableText
"finish"Frame 27Symbol 2169 MovieClip
"greenkey"Frame 27Symbol 686 MovieClip
"bluekey"Frame 27Symbol 1273 MovieClip
"ball1"Frame 27Symbol 2173 MovieClip
"bluewall"Frame 27Symbol 728 MovieClip
"greenwall"Frame 27Symbol 726 MovieClip
"ball2"Frame 27Symbol 2174 MovieClip
"middlewall"Frame 27Symbol 2176 MovieClip
"timedisplayobj"Frame 27Symbol 2177 EditableText
"decoy_crate"Frame 28Symbol 1666 MovieClip
"orangekey"Frame 28Symbol 686 MovieClip
"greenwall2"Frame 28Symbol 2179 MovieClip
"crate2"Frame 28Symbol 1072 MovieClip
"crate1"Frame 28Symbol 1072 MovieClip
"redkey"Frame 28Symbol 686 MovieClip
"finish"Frame 28Symbol 2180 MovieClip
"redwall"Frame 28Symbol 724 MovieClip
"orangewall"Frame 28Symbol 2182 MovieClip
"pinkkey"Frame 28Symbol 686 MovieClip
"ball1"Frame 28Symbol 2183 MovieClip
"greenwall"Frame 28Symbol 2187 MovieClip
"pinkwall"Frame 28Symbol 2190 MovieClip
"ll"Frame 28Symbol 21 MovieClip
"lr"Frame 28Symbol 21 MovieClip
"rl"Frame 28Symbol 21 MovieClip
"rr"Frame 28Symbol 21 MovieClip
"rbr"Frame 28Symbol 21 MovieClip
"middlewall"Frame 28Symbol 21 MovieClip
"timedisplayobj"Frame 28Symbol 2191 EditableText
"bluewall1"Frame 29Symbol 1089 MovieClip
"greenwall8"Frame 29Symbol 2193 MovieClip
"r3"Frame 29Symbol 2194 MovieClip
"r4"Frame 29Symbol 2195 MovieClip
"bluekey"Frame 29Symbol 1273 MovieClip
"aquakey"Frame 29Symbol 686 MovieClip
"ball1"Frame 29Symbol 2196 MovieClip
"ball2"Frame 29Symbol 2197 MovieClip
"finish"Frame 29Symbol 2198 MovieClip
"greenwall"Frame 29Symbol 2204 MovieClip
"pinkwall1"Frame 29Symbol 2208 MovieClip
"pinkwall4"Frame 29Symbol 2212 MovieClip
"greenkey"Frame 29Symbol 2213 MovieClip
"decoy"Frame 29Symbol 1294 MovieClip
"decoy2"Frame 29Symbol 1290 MovieClip
"blue_transparent"Frame 29Symbol 702 MovieClip
"aquawall1"Frame 29Symbol 2215 MovieClip
"aquawall2"Frame 29Symbol 2216 MovieClip
"orangewall"Frame 29Symbol 2226 MovieClip
"bluewall"Frame 29Symbol 2228 MovieClip
"pinkwall3"Frame 29Symbol 1343 MovieClip
"r1"Frame 29Symbol 2229 MovieClip
"middlewall"Frame 29Symbol 2231 MovieClip
"bottomwall"Frame 29Symbol 2233 MovieClip
"rightwall"Frame 29Symbol 2235 MovieClip
"rightdown"Frame 29Symbol 2237 MovieClip
"rightup"Frame 29Symbol 2239 MovieClip
"midleft"Frame 29Symbol 2241 MovieClip
"rb"Frame 29Symbol 2243 MovieClip
"l2"Frame 29Symbol 21 MovieClip
"l3"Frame 29Symbol 21 MovieClip
"clubchicken"Frame 29Symbol 21 MovieClip
"midbottom"Frame 29Symbol 2245 MovieClip
"l1"Frame 29Symbol 21 MovieClip
"pinkwall2"Frame 29Symbol 2249 MovieClip
"topwall"Frame 29Symbol 2251 MovieClip
"m1"Frame 29Symbol 2252 MovieClip
"m2"Frame 29Symbol 2253 MovieClip
"m3"Frame 29Symbol 2254 MovieClip
"m4"Frame 29Symbol 2255 MovieClip
"m5"Frame 29Symbol 2256 MovieClip
"timedisplayobj"Frame 29Symbol 2257 EditableText
"option9"Frame 29Symbol 969 MovieClip
"finish"Frame 30Symbol 2261 MovieClip
"decoy2"Frame 30Symbol 1290 MovieClip
"decoy"Frame 30Symbol 1294 MovieClip
"blueswitch"Frame 30Symbol 1480 MovieClip
"pinkswitch"Frame 30Symbol 1480 MovieClip
"orangeswitch"Frame 30Symbol 1480 MovieClip
"crate4"Frame 30Symbol 1072 MovieClip
"transporter1"Frame 30Symbol 1122 MovieClip
"transporter2"Frame 30Symbol 1122 MovieClip
"redkey"Frame 30Symbol 686 MovieClip
"greenwall"Frame 30Symbol 2269 MovieClip
"pinkwall"Frame 30Symbol 2277 MovieClip
"redwall"Frame 30Symbol 2284 MovieClip
"crate1"Frame 30Symbol 1072 MovieClip
"crate2"Frame 30Symbol 1072 MovieClip
"crate3"Frame 30Symbol 1072 MovieClip
"orangewall"Frame 30Symbol 2290 MovieClip
"decoy_crate"Frame 30Symbol 1666 MovieClip
"bluewall"Frame 30Symbol 2294 MovieClip
"blacktip5"Frame 30Symbol 21 MovieClip
"blacktip6"Frame 30Symbol 21 MovieClip
"l6"Frame 30Symbol 2296 MovieClip
"l1"Frame 30Symbol 21 MovieClip
"l2"Frame 30Symbol 21 MovieClip
"l3"Frame 30Symbol 21 MovieClip
"middlewall"Frame 30Symbol 2300 MovieClip
"r7"Frame 30Symbol 2302 MovieClip
"r5"Frame 30Symbol 2304 MovieClip
"rightwall"Frame 30Symbol 21 MovieClip
"l6"Frame 30Symbol 21 MovieClip
"9kkk"Frame 30Symbol 21 MovieClip
"l5"Frame 30Symbol 21 MovieClip
"r3"Frame 30Symbol 21 MovieClip
"r2"Frame 30Symbol 21 MovieClip
"r1"Frame 30Symbol 21 MovieClip
"blacktip2"Frame 30Symbol 21 MovieClip
"blacktip3"Frame 30Symbol 21 MovieClip
"blacktip4"Frame 30Symbol 21 MovieClip
"blacktip1"Frame 30Symbol 21 MovieClip
"greenswitch"Frame 30Symbol 1480 MovieClip
"r6"Frame 30Symbol 2308 MovieClip
"topinside"Frame 30Symbol 2309 MovieClip
"orangewall1"Frame 30Symbol 2313 MovieClip
"ball1"Frame 30Symbol 2314 MovieClip
"ball2"Frame 30Symbol 2315 MovieClip
"bottomwall"Frame 30Symbol 2317 MovieClip
"topwall"Frame 30Symbol 737 MovieClip
"timedisplayobj"Frame 30Symbol 2320 EditableText
"insidebottom"Frame 30Symbol 2321 MovieClip
"decoy2"Frame 32Symbol 1290 MovieClip
"decoy"Frame 32Symbol 1294 MovieClip
"pinkswitch"Frame 32Symbol 1480 MovieClip
"finish"Frame 32Symbol 2323 MovieClip
"greenkey"Frame 32Symbol 686 MovieClip
"bluekey"Frame 32Symbol 1273 MovieClip
"orangekey"Frame 32Symbol 686 MovieClip
"aquakey"Frame 32Symbol 686 MovieClip
"redkey"Frame 32Symbol 686 MovieClip
"orangestop"Frame 32Symbol 1038 MovieClip
"bluestop"Frame 32Symbol 1038 MovieClip
"smallkey"Frame 32Symbol 1583 MovieClip
"orangewall"Frame 32Symbol 2329 MovieClip
"greenwall"Frame 32Symbol 2337 MovieClip
"redwall"Frame 32Symbol 2343 MovieClip
"pinkwall"Frame 32Symbol 2344 MovieClip
"aquawall"Frame 32Symbol 2350 MovieClip
"bottomwall"Frame 32Symbol 2352 MovieClip
"ll"Frame 32Symbol 21 MovieClip
"lm"Frame 32Symbol 21 MovieClip
"topwall"Frame 32Symbol 2354 MovieClip
"bluewall"Frame 32Symbol 2364 MovieClip
"bluewall2"Frame 32Symbol 2365 MovieClip
"bluewall1"Frame 32Symbol 2366 MovieClip
"rl"Frame 32Symbol 2367 MovieClip
"lr"Frame 32Symbol 2368 MovieClip
"rl"Frame 32Symbol 2370 MovieClip
"middlewall"Frame 32Symbol 2374 MovieClip
"rightwall"Frame 32Symbol 1930 MovieClip
"lll"Frame 32Symbol 2375 MovieClip
"rightwall"Frame 32Symbol 21 MovieClip
"leftwall"Frame 32Symbol 2377 MovieClip
"rr"Frame 32Symbol 2379 MovieClip
"ll"Frame 32Symbol 2381 MovieClip
"ball1"Frame 32Symbol 1541 MovieClip
"ball2"Frame 32Symbol 1255 MovieClip
"bluetransparent"Frame 32Symbol 702 MovieClip
"rrr"Frame 32Symbol 2383 MovieClip
"timedisplayobj"Frame 32Symbol 2384 EditableText
"youwin"Frame 32Symbol 1906 MovieClip
"winningscreen"Frame 32Symbol 1910 MovieClip
"aquawall2"Frame 33Symbol 2387 MovieClip
"yellowswitch"Frame 33Symbol 1480 MovieClip
"finish"Frame 33Symbol 2388 MovieClip
"lredkey"Frame 33Symbol 686 MovieClip
"redstop"Frame 33Symbol 1038 MovieClip
"smallkey"Frame 33Symbol 1583 MovieClip
"yellowwall"Frame 33Symbol 2394 MovieClip
"bluekey"Frame 33Symbol 2395 MovieClip
"redkey"Frame 33Symbol 2396 MovieClip
"aquakey"Frame 33Symbol 2397 MovieClip
"greenswitch"Frame 33Symbol 1480 MovieClip
"bluewall"Frame 33Symbol 1104 MovieClip
"aquawall"Frame 33Symbol 2398 MovieClip
"orangeswitch"Frame 33Symbol 1480 MovieClip
"pinkwall"Frame 33Symbol 2407 MovieClip
"ball1"Frame 33Symbol 1256 MovieClip
"ball2"Frame 33Symbol 1255 MovieClip
"blue_transparent"Frame 33Symbol 702 MovieClip
"aqua_transparent"Frame 33Symbol 702 MovieClip
"lredwall"Frame 33Symbol 2412 MovieClip
"aquawall1"Frame 33Symbol 2425 MovieClip
"topwall"Frame 33Symbol 2426 MovieClip
"leftwall"Frame 33Symbol 2428 MovieClip
"bottomwall"Frame 33Symbol 2430 MovieClip
"rightwall"Frame 33Symbol 2432 MovieClip
"bottomwall"Frame 33Symbol 737 MovieClip
"redwall2"Frame 33Symbol 2436 MovieClip
"orangewall"Frame 33Symbol 2442 MovieClip
"rb"Frame 33Symbol 21 MovieClip
"redwall1"Frame 33Symbol 2448 MovieClip
"leftside"Frame 33Symbol 2450 MovieClip
"greenwall"Frame 33Symbol 2452 MovieClip
"leftwall"Frame 33Symbol 21 MovieClip
"rt"Frame 33Symbol 2454 MovieClip
"topwall"Frame 33Symbol 737 MovieClip
"middlewall"Frame 33Symbol 2456 MovieClip
"timedisplayobj"Frame 33Symbol 2461 EditableText
"finish"Frame 34Symbol 2463 MovieClip
"pinkswitch"Frame 34Symbol 2464 MovieClip
"ball1"Frame 34Symbol 2465 MovieClip
"yellowkey"Frame 34Symbol 2466 MovieClip
"bluekey"Frame 34Symbol 2467 MovieClip
"greenkey"Frame 34Symbol 2468 MovieClip
"aquakey"Frame 34Symbol 2469 MovieClip
"redkey"Frame 34Symbol 2470 MovieClip
"redwall"Frame 34Symbol 2474 MovieClip
"pinkwall"Frame 34Symbol 2479 MovieClip
"aquawall"Frame 34Symbol 2483 MovieClip
"bluewall"Frame 34Symbol 2489 MovieClip
"greenwall"Frame 34Symbol 2495 MovieClip
"yellowwall"Frame 34Symbol 2497 MovieClip
"orangewall"Frame 34Symbol 2499 MovieClip
"rightwall"Frame 34Symbol 1930 MovieClip
"leftwall"Frame 34Symbol 2428 MovieClip
"leftwall"Frame 34Symbol 21 MovieClip
"rightwall"Frame 34Symbol 21 MovieClip
"rightside"Frame 34Symbol 2501 MovieClip
"middleside"Frame 34Symbol 2503 MovieClip
"leftside"Frame 34Symbol 2505 MovieClip
"topwall"Frame 34Symbol 2509 MovieClip
"middlewall"Frame 34Symbol 2511 MovieClip
"timedisplayobj"Frame 34Symbol 2514 EditableText
"finish"Frame 35Symbol 2516 MovieClip
"finish2"Frame 35Symbol 2180 MovieClip
"warpkey11"Frame 35Symbol 1045 MovieClip
"warpkey2"Frame 35Symbol 1045 MovieClip
"yellowkey"Frame 35Symbol 2517 MovieClip
"ball2"Frame 35Symbol 2518 MovieClip
"ball1"Frame 35Symbol 2519 MovieClip
"pinkkey"Frame 35Symbol 2520 MovieClip
"pinkwall"Frame 35Symbol 2525 MovieClip
"rightside"Frame 35Symbol 21 MovieClip
"yellowwall"Frame 35Symbol 2526 MovieClip
"topwall"Frame 35Symbol 2509 MovieClip
"middlewall"Frame 35Symbol 21 MovieClip
"leftside"Frame 35Symbol 21 MovieClip
"timedisplayobj"Frame 35Symbol 2527 EditableText
"finish"Frame 36Symbol 2180 MovieClip
"transporter1"Frame 36Symbol 1122 MovieClip
"blueswitch"Frame 36Symbol 1480 MovieClip
"ball2"Frame 36Symbol 1255 MovieClip
"ball1"Frame 36Symbol 2465 MovieClip
"yellowkey"Frame 36Symbol 2108 MovieClip
"pinkkey"Frame 36Symbol 686 MovieClip
"bluewall"Frame 36Symbol 2530 MovieClip
"pinkwall"Frame 36Symbol 2531 MovieClip
"orangewall"Frame 36Symbol 2535 MovieClip
"transporter2"Frame 36Symbol 1122 MovieClip
"middlewall"Frame 36Symbol 21 MovieClip
"rightside1"Frame 36Symbol 21 MovieClip
"rightside2"Frame 36Symbol 21 MovieClip
"orangeswitch"Frame 36Symbol 1480 MovieClip
"crate1"Frame 36Symbol 1072 MovieClip
"yellowwall"Frame 36Symbol 2538 MovieClip
"crate2"Frame 36Symbol 1072 MovieClip
"decoy_crate"Frame 36Symbol 1666 MovieClip
"rightside2"Frame 36Symbol 21 MovieClip
"rightside2"Frame 36Symbol 21 MovieClip
"leftside"Frame 36Symbol 21 MovieClip
"timedisplayobj"Frame 36Symbol 2539 EditableText
"leftwall"Frame 38Symbol 21 MovieClip
"rightwall"Frame 38Symbol 21 MovieClip
"leftwall"Symbol 24 MovieClip Frame 1Symbol 21 MovieClip
"leftwall"Symbol 24 MovieClip Frame 1Symbol 21 MovieClip
"leftwall"Symbol 24 MovieClip Frame 1Symbol 21 MovieClip
"leftwall"Symbol 24 MovieClip Frame 1Symbol 21 MovieClip
"leftwall"Symbol 24 MovieClip Frame 1Symbol 21 MovieClip
"leftwall"Symbol 24 MovieClip Frame 1Symbol 21 MovieClip
"leftwall"Symbol 24 MovieClip Frame 1Symbol 21 MovieClip
"leftwall"Symbol 24 MovieClip Frame 1Symbol 21 MovieClip
"leftwall"Symbol 24 MovieClip Frame 1Symbol 21 MovieClip
"leftwall"Symbol 24 MovieClip Frame 1Symbol 21 MovieClip
"leftwall"Symbol 24 MovieClip Frame 1Symbol 21 MovieClip
"leftwall"Symbol 24 MovieClip Frame 1Symbol 21 MovieClip
"leftwall"Symbol 24 MovieClip Frame 1Symbol 21 MovieClip
"leftwall"Symbol 24 MovieClip Frame 1Symbol 21 MovieClip
"leftwall"Symbol 24 MovieClip Frame 1Symbol 21 MovieClip
"leftwall"Symbol 24 MovieClip Frame 1Symbol 21 MovieClip
"leftwall"Symbol 24 MovieClip Frame 1Symbol 21 MovieClip
"leftwall"Symbol 24 MovieClip Frame 1Symbol 21 MovieClip
"leftwall"Symbol 24 MovieClip Frame 1Symbol 21 MovieClip
"leftwall"Symbol 24 MovieClip Frame 1Symbol 21 MovieClip
"leftwall"Symbol 24 MovieClip Frame 1Symbol 21 MovieClip
"leftwall"Symbol 24 MovieClip Frame 1Symbol 21 MovieClip
"leftwall"Symbol 25 MovieClip Frame 1Symbol 21 MovieClip
"leftwall"Symbol 25 MovieClip Frame 1Symbol 21 MovieClip
"leftwall"Symbol 25 MovieClip Frame 1Symbol 21 MovieClip
"leftwall"Symbol 25 MovieClip Frame 1Symbol 21 MovieClip
"leftwall"Symbol 25 MovieClip Frame 1Symbol 21 MovieClip
"leftwall"Symbol 25 MovieClip Frame 1Symbol 21 MovieClip
"leftwall"Symbol 25 MovieClip Frame 1Symbol 21 MovieClip
"leftwall"Symbol 25 MovieClip Frame 1Symbol 21 MovieClip
"leftwall"Symbol 25 MovieClip Frame 1Symbol 21 MovieClip
"leftwall"Symbol 25 MovieClip Frame 1Symbol 21 MovieClip
"leftwall"Symbol 25 MovieClip Frame 1Symbol 21 MovieClip
"bar"Symbol 42 MovieClip Frame 1Symbol 34 MovieClip
"playbutton"Symbol 42 MovieClip Frame 25Symbol 41 MovieClip
"you_understand_obj2"Symbol 67 MovieClip Frame 2Symbol 66 MovieClip
"green_static"Symbol 677 MovieClip Frame 2Symbol 151 MovieClip
"redstatic"Symbol 677 MovieClip Frame 3Symbol 216 MovieClip
"bluemove"Symbol 677 MovieClip Frame 4Symbol 281 MovieClip
"orange_static"Symbol 677 MovieClip Frame 6Symbol 411 MovieClip
"scan"Symbol 678 MovieClip Frame 1Symbol 677 MovieClip
"bally"Symbol 679 MovieClip Frame 1Symbol 678 MovieClip
"line"Symbol 761 MovieClip Frame 1Symbol 758 MovieClip
"dragger"Symbol 761 MovieClip Frame 1Symbol 760 MovieClip
"fx"Symbol 889 MovieClip Frame 1Symbol 746 MovieClip
"mySlider"Symbol 889 MovieClip Frame 1Symbol 761 MovieClip
"highquality"Symbol 889 MovieClip Frame 1Symbol 764 MovieClip
"mediumquality"Symbol 889 MovieClip Frame 1Symbol 766 MovieClip
"lowquality"Symbol 889 MovieClip Frame 1Symbol 768 MovieClip
"exit"Symbol 889 MovieClip Frame 1Symbol 772 Button
"submitScore"Symbol 889 MovieClip Frame 1Symbol 790 Button
"q1"Symbol 889 MovieClip Frame 1Symbol 853 Button
"q2"Symbol 889 MovieClip Frame 1Symbol 854 Button
"q3"Symbol 889 MovieClip Frame 1Symbol 855 Button
"q4"Symbol 889 MovieClip Frame 1Symbol 856 Button
"q5"Symbol 889 MovieClip Frame 1Symbol 857 Button
"q6"Symbol 889 MovieClip Frame 1Symbol 858 Button
"q7"Symbol 889 MovieClip Frame 1Symbol 859 Button
"q8"Symbol 889 MovieClip Frame 1Symbol 860 Button
"q9"Symbol 889 MovieClip Frame 1Symbol 861 Button
"q10"Symbol 889 MovieClip Frame 1Symbol 862 Button
"q11"Symbol 889 MovieClip Frame 1Symbol 863 Button
"q12"Symbol 889 MovieClip Frame 1Symbol 864 Button
"q13"Symbol 889 MovieClip Frame 1Symbol 865 Button
"q14"Symbol 889 MovieClip Frame 1Symbol 866 Button
"q15"Symbol 889 MovieClip Frame 1Symbol 867 Button
"q16"Symbol 889 MovieClip Frame 1Symbol 868 Button
"q17"Symbol 889 MovieClip Frame 1Symbol 869 Button
"q18"Symbol 889 MovieClip Frame 1Symbol 870 Button
"q19"Symbol 889 MovieClip Frame 1Symbol 871 Button
"q20"Symbol 889 MovieClip Frame 1Symbol 872 Button
"q21"Symbol 889 MovieClip Frame 1Symbol 873 Button
"q22"Symbol 889 MovieClip Frame 1Symbol 874 Button
"q23"Symbol 889 MovieClip Frame 1Symbol 875 Button
"q24"Symbol 889 MovieClip Frame 1Symbol 876 Button
"q25"Symbol 889 MovieClip Frame 1Symbol 877 Button
"q26"Symbol 889 MovieClip Frame 1Symbol 878 Button
"q27"Symbol 889 MovieClip Frame 1Symbol 879 Button
"q28"Symbol 889 MovieClip Frame 1Symbol 880 Button
"q29"Symbol 889 MovieClip Frame 1Symbol 881 Button
"q30"Symbol 889 MovieClip Frame 1Symbol 882 Button
"fx2"Symbol 889 MovieClip Frame 1Symbol 888 MovieClip
"ball21"Symbol 909 MovieClip Frame 1Symbol 679 MovieClip
"ball11"Symbol 909 MovieClip Frame 1Symbol 679 MovieClip
"bluekey"Symbol 909 MovieClip Frame 1Symbol 686 MovieClip
"orangekey"Symbol 909 MovieClip Frame 1Symbol 686 MovieClip
"greenkey"Symbol 909 MovieClip Frame 1Symbol 686 MovieClip
"redkey"Symbol 909 MovieClip Frame 1Symbol 686 MovieClip
"nextbutton"Symbol 909 MovieClip Frame 1Symbol 908 Button
"scan"Symbol 917 MovieClip Frame 1Symbol 677 MovieClip
"donebutton"Symbol 918 MovieClip Frame 1Symbol 915 Button
"finish2"Symbol 918 MovieClip Frame 1Symbol 75 MovieClip
"playkey"Symbol 918 MovieClip Frame 1Symbol 77 MovieClip
"expander2"Symbol 921 MovieClip Frame 2Symbol 920 MovieClip
"exit"Symbol 960 MovieClip Frame 1Symbol 924 Button
"logo"Symbol 960 MovieClip Frame 1Symbol 947 Button
"vainstar"Symbol 960 MovieClip Frame 1Symbol 949 Button
"chill"Symbol 960 MovieClip Frame 1Symbol 950 Button
"submitScore"Symbol 969 MovieClip Frame 1Symbol 790 Button
"exit"Symbol 969 MovieClip Frame 1Symbol 924 Button
"warning"Symbol 969 MovieClip Frame 1Symbol 968 MovieClip
"blueinside"Symbol 1104 MovieClip Frame 1Symbol 1103 MovieClip
"button"Symbol 1113 MovieClip Frame 1Symbol 1110 MovieClip
"greenwall"Symbol 1149 MovieClip Frame 1Symbol 1022 MovieClip
"bluestop"Symbol 1149 MovieClip Frame 3Symbol 1038 MovieClip
"warpkey1"Symbol 1149 MovieClip Frame 7Symbol 1045 MovieClip
"smallkey1"Symbol 1149 MovieClip Frame 7Symbol 1049 MovieClip
"crate4"Symbol 1149 MovieClip Frame 11Symbol 1072 MovieClip
"bluewall1"Symbol 1149 MovieClip Frame 14Symbol 1089 MovieClip
"blue_transparent"Symbol 1149 MovieClip Frame 14Symbol 702 MovieClip
"bluewall"Symbol 1149 MovieClip Frame 14Symbol 1104 MovieClip
"blue_transparent"Symbol 1149 MovieClip Frame 14Symbol 702 MovieClip
"transporter1"Symbol 1149 MovieClip Frame 20Symbol 1122 MovieClip
"transporter1"Symbol 1149 MovieClip Frame 20Symbol 1122 MovieClip
"submitScore"Symbol 1149 MovieClip Frame 30Symbol 1146 Button
"nextlevelinfo"Symbol 1153 MovieClip Frame 1Symbol 989 MovieClip
"mainmenu"Symbol 1153 MovieClip Frame 1Symbol 993 Button
"sponsorbutton"Symbol 1153 MovieClip Frame 1Symbol 1000 Button
"space_nextlevel"Symbol 1153 MovieClip Frame 1Symbol 1005 MovieClip
"meter"Symbol 1153 MovieClip Frame 1Symbol 1014 MovieClip
"returnBack"Symbol 1153 MovieClip Frame 1Symbol 1017 Button
"instructions"Symbol 1153 MovieClip Frame 1Symbol 1149 MovieClip
"ball21"Symbol 1170 MovieClip Frame 1Symbol 679 MovieClip
"ball11"Symbol 1170 MovieClip Frame 1Symbol 679 MovieClip
"bluekey"Symbol 1170 MovieClip Frame 1Symbol 686 MovieClip
"orangekey"Symbol 1170 MovieClip Frame 1Symbol 686 MovieClip
"greenkey"Symbol 1170 MovieClip Frame 1Symbol 686 MovieClip
"redkey"Symbol 1170 MovieClip Frame 1Symbol 686 MovieClip
"greenwall"Symbol 1177 MovieClip Frame 3Symbol 1022 MovieClip
"bluestop"Symbol 1177 MovieClip Frame 5Symbol 1038 MovieClip
"warpkey1"Symbol 1177 MovieClip Frame 8Symbol 1045 MovieClip
"smallkey1"Symbol 1177 MovieClip Frame 8Symbol 1049 MovieClip
"crate4"Symbol 1177 MovieClip Frame 11Symbol 1072 MovieClip
"bluewall1"Symbol 1177 MovieClip Frame 12Symbol 1089 MovieClip
"blue_transparent"Symbol 1177 MovieClip Frame 12Symbol 702 MovieClip
"bluewall"Symbol 1177 MovieClip Frame 12Symbol 1104 MovieClip
"blue_transparent"Symbol 1177 MovieClip Frame 12Symbol 702 MovieClip
"transporter1"Symbol 1177 MovieClip Frame 14Symbol 1122 MovieClip
"transporter1"Symbol 1177 MovieClip Frame 14Symbol 1122 MovieClip
"backoptions"Symbol 1184 MovieClip Frame 1Symbol 1159 Button
"instructions"Symbol 1184 MovieClip Frame 1Symbol 1177 MovieClip
"leftkey"Symbol 1184 MovieClip Frame 1Symbol 1183 Button
"rightkey"Symbol 1184 MovieClip Frame 1Symbol 1183 Button
"line"Symbol 1205 MovieClip Frame 1Symbol 1203 MovieClip
"dragger"Symbol 1205 MovieClip Frame 1Symbol 1204 MovieClip
"highquality"Symbol 1251 MovieClip Frame 1Symbol 1188 MovieClip
"mediumquality"Symbol 1251 MovieClip Frame 1Symbol 1189 MovieClip
"lowquality"Symbol 1251 MovieClip Frame 1Symbol 1190 MovieClip
"stopsong"Symbol 1251 MovieClip Frame 1Symbol 1198 MovieClip
"playsong"Symbol 1251 MovieClip Frame 1Symbol 1200 MovieClip
"backward"Symbol 1251 MovieClip Frame 1Symbol 1202 MovieClip
"forward"Symbol 1251 MovieClip Frame 1Symbol 1202 MovieClip
"mySlider"Symbol 1251 MovieClip Frame 1Symbol 1205 MovieClip
"cycle"Symbol 1251 MovieClip Frame 1Symbol 1207 MovieClip
"repeat"Symbol 1251 MovieClip Frame 1Symbol 1208 MovieClip
"hintbox"Symbol 1251 MovieClip Frame 1Symbol 1242 MovieClip
"mainmenu"Symbol 1251 MovieClip Frame 1Symbol 993 Button
"sponsorbutton"Symbol 1251 MovieClip Frame 1Symbol 1000 Button
"instructionbutton"Symbol 1251 MovieClip Frame 1Symbol 1245 Button
"meter"Symbol 1251 MovieClip Frame 1Symbol 1014 MovieClip
"returnBack"Symbol 1251 MovieClip Frame 1Symbol 924 Button
"fx"Symbol 1251 MovieClip Frame 1Symbol 1247 MovieClip
"fx2"Symbol 1251 MovieClip Frame 1Symbol 1248 MovieClip
"revealbox"Symbol 1251 MovieClip Frame 1Symbol 1250 MovieClip
"scan"Symbol 1254 MovieClip Frame 1Symbol 677 MovieClip
"scan"Symbol 1254 MovieClip Frame 60Symbol 677 MovieClip
"scan"Symbol 1255 MovieClip Frame 1Symbol 677 MovieClip
"m_s"Symbol 1255 MovieClip Frame 2Symbol 1254 MovieClip
"scan"Symbol 1256 MovieClip Frame 1Symbol 677 MovieClip
"m_s"Symbol 1256 MovieClip Frame 2Symbol 1254 MovieClip
"scan"Symbol 1276 MovieClip Frame 1Symbol 677 MovieClip
"scan"Symbol 1277 MovieClip Frame 1Symbol 677 MovieClip
"scan"Symbol 1282 MovieClip Frame 1Symbol 677 MovieClip
"scan"Symbol 1283 MovieClip Frame 1Symbol 677 MovieClip
"inside2"Symbol 1290 MovieClip Frame 2Symbol 1289 MovieClip
"inside3"Symbol 1290 MovieClip Frame 3Symbol 1284 MovieClip
"scan"Symbol 1291 MovieClip Frame 1Symbol 677 MovieClip
"inside2"Symbol 1294 MovieClip Frame 2Symbol 1292 MovieClip
"inside3"Symbol 1294 MovieClip Frame 3Symbol 1293 MovieClip
"scan"Symbol 1296 MovieClip Frame 1Symbol 677 MovieClip
"scan"Symbol 1297 MovieClip Frame 1Symbol 677 MovieClip
"scan"Symbol 1311 MovieClip Frame 1Symbol 677 MovieClip
"scan"Symbol 1312 MovieClip Frame 1Symbol 677 MovieClip
"thingy"Symbol 1370 MovieClip Frame 1Symbol 713 MovieClip
"scan"Symbol 1374 MovieClip Frame 1Symbol 677 MovieClip
"scan"Symbol 1375 MovieClip Frame 1Symbol 677 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 1110 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 677 MovieClip
"m_s"Symbol 1541 MovieClip Frame 2Symbol 1254 MovieClip
"scan"Symbol 1542 MovieClip Frame 1Symbol 677 MovieClip
"m_s"Symbol 1542 MovieClip Frame 2Symbol 1254 MovieClip
"scan"Symbol 1550 MovieClip Frame 1Symbol 677 MovieClip
"scan"Symbol 1551 MovieClip Frame 1Symbol 677 MovieClip
"thingy"Symbol 1622 MovieClip Frame 1Symbol 1621 MovieClip
"inside"Symbol 1666 MovieClip Frame 2Symbol 1665 MovieClip
"insidetop"Symbol 1680 MovieClip Frame 1Symbol 1677 MovieClip
"insidebottom"Symbol 1680 MovieClip Frame 1Symbol 1679 MovieClip
"m_s"Symbol 1748 MovieClip Frame 2Symbol 1254 MovieClip
"reddot"Symbol 1817 MovieClip Frame 1Symbol 1756 MovieClip
"scan"Symbol 1918 MovieClip Frame 1Symbol 677 MovieClip
"scan"Symbol 1919 MovieClip Frame 1Symbol 677 MovieClip
"button"Symbol 1996 MovieClip Frame 1Symbol 1110 MovieClip
"scan"Symbol 1997 MovieClip Frame 1Symbol 677 MovieClip
"scan"Symbol 1998 MovieClip Frame 1Symbol 677 MovieClip
"inside"Symbol 2050 MovieClip Frame 2Symbol 2049 MovieClip
"thingy"Symbol 2056 MovieClip Frame 1Symbol 713 MovieClip
"middlewall"Symbol 2070 MovieClip Frame 1Symbol 2069 MovieClip
"scan"Symbol 2078 MovieClip Frame 1Symbol 677 MovieClip
"scan"Symbol 2079 MovieClip Frame 1Symbol 677 MovieClip
"scan"Symbol 2173 MovieClip Frame 1Symbol 677 MovieClip
"scan"Symbol 2174 MovieClip Frame 1Symbol 677 MovieClip
"scan"Symbol 2183 MovieClip Frame 1Symbol 677 MovieClip
"scan"Symbol 2196 MovieClip Frame 1Symbol 677 MovieClip
"scan"Symbol 2197 MovieClip Frame 1Symbol 677 MovieClip
"insidebottom"Symbol 2300 MovieClip Frame 1Symbol 2299 MovieClip
"scan"Symbol 2314 MovieClip Frame 1Symbol 677 MovieClip
"scan"Symbol 2315 MovieClip Frame 1Symbol 677 MovieClip
"button"Symbol 2464 MovieClip Frame 1Symbol 1110 MovieClip
"scan"Symbol 2465 MovieClip Frame 1Symbol 677 MovieClip
"scan"Symbol 2518 MovieClip Frame 1Symbol 677 MovieClip
"scan"Symbol 2519 MovieClip Frame 1Symbol 677 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 2555 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 42 MovieClip Frame 2
"expander2"Symbol 921 MovieClip Frame 2

Dynamic Text Variables

_root.scoreSymbol 792 EditableText""
_root.level1_best_timeSymbol 794 EditableText"---"
_root.level2_best_timeSymbol 795 EditableText"___"
_root.level3_best_timeSymbol 796 EditableText"___"
_root.level4_best_timeSymbol 797 EditableText"___"
_root.level5_best_timeSymbol 798 EditableText"___"
_root.level6_best_timeSymbol 804 EditableText"___"
_root.level7_best_timeSymbol 805 EditableText"___"
_root.level8_best_timeSymbol 806 EditableText"___"
_root.level9_best_timeSymbol 807 EditableText"___"
_root.level10_best_timeSymbol 808 EditableText"___"
_root.level11_best_timeSymbol 814 EditableText"___"
_root.level12_best_timeSymbol 815 EditableText"___"
_root.level13_best_timeSymbol 816 EditableText"___"
_root.level14_best_timeSymbol 817 EditableText"___"
_root.level15_best_timeSymbol 818 EditableText"___"
_root.level16_best_timeSymbol 824 EditableText"___"
_root.level17_best_timeSymbol 825 EditableText"___"
_root.level18_best_timeSymbol 826 EditableText"___"
_root.level19_best_timeSymbol 827 EditableText"___"
_root.level20_best_timeSymbol 828 EditableText"___"
_root.level21_best_timeSymbol 834 EditableText"___"
_root.level22_best_timeSymbol 835 EditableText"___"
_root.level23_best_timeSymbol 836 EditableText"___"
_root.level24_best_timeSymbol 837 EditableText"___"
_root.level25_best_timeSymbol 838 EditableText"___"
_root.level26_best_timeSymbol 844 EditableText"___"
_root.level27_best_timeSymbol 845 EditableText"___"
_root.level28_best_timeSymbol 846 EditableText"___"
_root.level29_best_timeSymbol 847 EditableText"___"
_root.level30_best_timeSymbol 848 EditableText"___"
_root.totaltimeSymbol 849 EditableText"2222"
_root.totaltimeSymbol 963 EditableText""
_root.mynameSymbol 965 EditableText"name"
_root.totaltimeSymbol 1148 EditableText"5555"
_root.secondsSymbol 1151 EditableText""
_root.bestScoreSymbol 1152 EditableText""
level1_best_timeSymbol 1257 EditableText""
timedisplay2Symbol 1260 EditableText""
level2_best_timeSymbol 1280 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 1656 EditableText""
level12_best_timeSymbol 1689 EditableText""
level16_best_timeSymbol 1734 EditableText""
decoy2xSymbol 1859 EditableText""
decoy2ySymbol 1860 EditableText""
ball2ySymbol 1861 EditableText""
ball2xSymbol 1862 EditableText""
level15_best_timeSymbol 1901 EditableText""
level23_best_timeSymbol 1937 EditableText""
level11_best_timeSymbol 1968 EditableText""
level17_best_timeSymbol 1994 EditableText""
level20_best_timeSymbol 2022 EditableText""
level14_best_timeSymbol 2075 EditableText""
level21_best_timeSymbol 2101 EditableText""
level18_best_timeSymbol 2158 EditableText""
level9_best_timeSymbol 2167 EditableText""
level3_best_timeSymbol 2177 EditableText""
level13_best_timeSymbol 2191 EditableText""
level30_best_timeSymbol 2257 EditableText""
level28_best_timeSymbol 2320 EditableText""
level24_best_timeSymbol 2384 EditableText""
level29_best_timeSymbol 2461 EditableText""
level26_best_timeSymbol 2514 EditableText""
level25_best_timeSymbol 2527 EditableText""
level27_best_timeSymbol 2539 EditableText""




http://swfchan.com/12/56329/info.shtml
Created: 19/4 -2019 12:55:26 Last modified: 19/4 -2019 12:55:26 Server time: 14/05 -2024 05:24:31