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

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

18 Wheeler Challenge.swf

This is the info page for
Flash #48042

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


Text
CLICK ANYWHERE TO PLAY THE GAME

THIS GAME IS EXCLUSIVE FOR FREEONLINEGAMES.COM

100

FREEONLINEGAMES.COM

WE HAVE ALL THE LATEST GAMES

1000+ GAMES REGULARLY UPDATED

BEST THINGS IN LIFE ARE FREE

WOULD YOU LIKE SOME PIZZA?

DID YOU KILL A MOB BOSS LATELY?

HAVE YOU DROPPED OFF THAT PASSENGER YET?

DID THAT TRIPLE BACKFLIP COMBO TODAY?

DID THAT TRIPLE BACKFLIP COMBO TODAY?

I THINK YOUR TOAST IS BURNING!

WOULD YOU LIKE ONE OR TWO LUMPS OF SUGAR WITH THAT?

HOW MANY GAME DEVELOPERS DOES IT TAKE TO REPLACE A LIGHT BULB?

ARE YOU SEATED COMFORTABLY?

WOULD YOU LIKE US TO TURN UP THE MUSIC?

ENJOYING YOUR SICK LEAVE?

SLOW WORK DAY?  EHUM?

ARE YOU LONELY?  WE HAVE THE PERFECT MATCH

GETTING PAID FOR OVERTIME?

CATCH ME IF YOU CAN

ARE YOU STUDYING HARD FOR YOUR TEST TOMORROW?

IS THIS WHAT WE USE THE STUDYHALL NOWADAYS?

YOU GOT A NEW COMPUTER FOR THIS?

I BET YOUR WIFE IS AT HER PARENTS HOUSE

OOPSY DAISIES!

WOULD YOU LIKE SOMETHING TO DRINK WITH THAT PIZZA?

YOU HAVE SNAKES. YOU HAVE A PLANE.
AND THIS HAS NOTHING TO DO WITH IT.

GOT ANYTHING? YES WE'RE ALL OUT OF IDEAS.

CLEAN YOUR ROOM.  IT'S A JUNGLE HERE.

IT'S PRONOUNCED AS "ZHOOUKI".

ZOMBIES.  FRESH BRAINS DELIVERED HERE.

HAVE YOU DEFENDED STALINGRAD TODAY?

THE CUBICLE'S GETTING TO ME.  HOW 'BOUT YOU?

STICK IT TO THE MAN

I FEEL LIKE CHICKEN TONIGHT

YOU CAN BEAT THIS GAME.  I KNOW YOU CAN....

I THINK I HEAR THE ICE CREAM TRUCK

HAVE YOU HAD YOUR SUGAR FIX YET?

PARENTAL GUIDANCE NOT NEEDED HERE

BULLIES HAVE FEELINGS TOO!!!

WHO'S YOUR DADDY NOW?

YOU KNOW I STILL LOVE YOU.

WHO ARE YOU? WHERE AM I? WHAT YEAR IS IT NOW?

WHY ARE YOU USING MY COMPUTER?

LET'S GET THIS STRAIGHT: I'M REAL, YOU'RE ANIMATED!

HERE'S A LITTLE FACT.  YOU CAN'T SEE ME.

BEING A GAMER IS FINE.  JUST DON'T MISS YOUR MEETINGS.

INSOMNIA: THE CAPACITY TO PLAY MORE GAMES

YELLOW WALLS MAKE YOU GO INSANE

MORE SHOES MAKE FOR A HAPPY CO-WORKER

HOW ARE YOU DOING TODAY? YAH FEELIN' LUCKY?

HOW BIG IS YOUR BRAIN?  CAN YOU HANDLE THIS?

WHY DON'T YOU DRIVE TODAY?

SOMETHING ON YOUR MIND?

POLLY WANNA CRACKAH!

IT'S ABOUT TIME!

IT'S 5PM. DO YOU KNOW WHERE YOUR BRAIN IS?

IF YOU CAN'T BEAT 'EM, JOIN 'EM!

BIG BOYS DON'T CRY

PUT ALL SOUNDS WITH LINKAGES IN THIS MOVIECLIP

F.O.G.

0

F.O.G

18 WHEELER

Challenge

Play More Games

Games For your Website

PLAY

GO!

Controls:

Help

Help

Welcome to your Truck driving test. Take each lesson
within the set time and complete the truck driving
course to pass your exam with a score.’
Controls:
Use your Arrow Keys to move the truck forward and
for steering and reverse.
Use space bar to apply the brakes!
Good Luck

Back

View High Score

View High Score

Free Games for your Website

Free Games for your Website

volume

Menu

Main Menu

View High Scores

Play More Games

0

H

Park Here

Park in the correct area.

Sharp Right Turn

Howdy. Welcome to Texas!
Use your Arrow Keys to move and space bar to brake.
Drive to the Highlighted point to complete this level.

Knowing your Truck

Today you will park your truck in a stationary
parking bay within the time limit.

Parking in a Bay

Complete this lesson to learn how to make a U
Turn, in the middle of a busy highway. Watch for
on coming traffic.

U- Turn in the Road

In this lesson, you have to make a U-turn, reverse
around a corner and park in the reverse position, in
the bay.

Reversing Round a Corner and Park

Try to navigate your truck through this awkward
round-about road intersection…

Navigating a Round-About

This may look easy, but try to navigate this country
S-Bend Lane, without hitting on-coming traffic…

Country S-Bend

Try to pick up your trailer and reverse park it in-
between the other containers.

Pick up and Park a Trailer

Be careful about this intersection. You only have a
limited time for your truck to pass. Pick up the
trailer along the way.

Intersection

This lesson will teach you how to park your 18
wheeler truck, with trailer in the parallel parking
position. Don’t hit anything!

Parallel Parking with trailer

Get through this bad country lane.

Dodgy Lane

Try to find an alternate way round this
accident…

Detour

Try to turnaround on this highway. Be
careful, it can be quite busy!

Highway Turnaround

Watch for the automated gate…

Home Sweet Home

S

Start

f

Level Completed

Next Level

Game Over

you crashed

retry

1/14

0

Score

Low Quality

High Quality

Sounds

L

2/14

0

3/14

0

4/14

0

FOG

5/14

0

6/14

0

7/14

0

8/14

0

9/14

0

10/14

0

11/14

0

12/14

0

13/14

0

14/14

0

Game Over

Congratulations

0

Your Score

Congratulations, you have
passed the Texas 18
Wheeler driving challenge!

Back to Main Menu

FOG HI-SCORE SYS

0

TODAY'S TOP SCORERS

<< LOADING >>

PLAYER NAME

99999999

100)

DAILY TOP SCORES

ALL-TIME TOP SCORERS

ALL-TIME TOP SCORES

0

ActionScript [AS1/AS2]

Frame 1
var debug = true; var gameID = 42; var gameName = "18wheeler"; stop(); fscommand ("showmenu", "false"); prel.onEnterFrame = function () { prel.procent.text = Math.ceil((_root.getBytesLoaded() / _root.getBytesTotal()) * 100); prel.gotoAndStop(prel.procent.text); if (Number(prel.procent.text) >= 100) { play(); delete this.onEnterFrame; } };
Frame 2
stop();
Frame 3
if (!okToPlay) { gotoAndStop (3); }
Frame 4
_fglv = new LoadVars(); _fglv.gid = 1; _fglv.url = _root._url; _fglv.sendAndLoad("http://www.freegamesforyourwebsite.com/stats.php", _fglv, "POST"); delete _fglv;
Instance of Symbol 199 MovieClip in Frame 4
on (release) { getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=211&area=minilogo2", "_blank"); }
Frame 7
stopAllSounds(); _root.score = (_root.score = 0); stop();
Frame 8
myMusic = new Sound(this); myMusic.start(0, 99); slider.control._y = -50; slider.control.onEnterFrame = function () { myMusic.setVolume(-this._y); }; slider.control.onPress = function () { startDrag (this, false, this._x, -100, this._x, 0); }; slider.control.onReleaseOutside = function () { stopDrag(); }; slider.control.onRelease = function () { stopDrag(); };
Instance of Symbol 269 MovieClip "slider" in Frame 8
onClipEvent (load) { }
Instance of Symbol 272 MovieClip in Frame 8
onClipEvent (enterFrame) { _root.gotoAndStop(_root._currentframe + 1); }
Instance of Symbol 296 MovieClip in Frame 8
onClipEvent (enterFrame) { if (Key.isDown(72)) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } }
Frame 9
function getCoordPolaire(p) { dx = p.x; dy = p.y; d = Math.sqrt((dx * dx) + (dy * dy)); if (d == 0) { a = 0; } else { a = Math.acos(dx / d); if (dy < 0) { a = -a; } } return({x:p.x, y:p.y, a:a, d:d}); } function getAlphaNum(number) { toReturn = ""; while (number > 0) { unite = number % baseAlphaNum; if (unite < 10) { toReturn = String.fromCharCode(unite + 48) + toReturn; } else if (unite < 36) { toReturn = String.fromCharCode(unite + 55) + toReturn; } else { toReturn = String.fromCharCode(unite + 61) + toReturn; } var _local2 = (number - unite) / baseAlphaNum; } return(toReturn); } function getNumber(alphanum) { toReturn = 0; l = alphanum.length; i = 0; while (i < l) { unite = alphanum.charCodeAt(i); if ((unite >= 48) && (unite < 58)) { toReturn = ((toReturn * baseAlphaNum) + unite) - 48; } else if ((unite >= 65) && (unite < 91)) { toReturn = ((toReturn * baseAlphaNum) + unite) - 55; } else if ((unite >= 97) && (unite < 123)) { toReturn = ((toReturn * baseAlphaNum) + unite) - 61; } i++; } return(toReturn); } function playSurround(show) { if (show) { playback._visible = play_btn._visible; playback.gotoAndPlay(1); } else { playback._visible = false; } } function showButtons(vis) { pause_btn._visible = vis; play_btn._visible = vis; stop_btn._visible = vis; playback._visible = vis; } function clicStart() { if (!_root.timing) { menuder._visible = false; _root.paused = false; _root.timing = true; } } var vX = _root.voitureverte._x; var vY = _root.voitureverte._y; var vRot = _root.voitureverte._rotation; var xCorps = _root.voitureverte.bustebras._x; var yCorps = _root.voitureverte.bustebras._y; var xTete = _root.voitureverte.tete._x; var yTete = _root.voitureverte.tete._y; var frame = 0; var startFrame = 0; var baseAlphaNum = 62; var timing = false; stop(); _root.two = false; stop(); _root.connected = true;
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 322 MovieClip in Frame 9
onClipEvent (enterFrame) { if (((_root.voitureverte.front.hitTest(this.front) or _root.voitureverte.box1.hitTest(this.front)) or _root.voitureverte.front.hitTest(this.back)) or _root.voitureverte.box1.hitTest(this.back)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 9
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 338 MovieClip "land" in Frame 9
onClipEvent (enterFrame) { if (this.hitTest(_root.voitureverte._x, _root.voitureverte._y, true)) { _root.voitureverte.gotoAndStop(2); _root.finnished.failed.whyfailed.textwhy = "you crashed"; } }
Instance of Symbol 377 MovieClip "voitureverte" in Frame 9
onClipEvent (load) { function setBrasRotation() { xVolant = reposBonhommeVolant - corpsDeltaX; yVolantGauche = corpsDeltaY + posBrasGaucheVolant; yDiff = yVolantGauche - lEpaule; lEpauleGaucheVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant)); alpha = yDiff / xVolant; beta = Math.acos(lEpauleGaucheVolant / (2 * lBras)); Angle1 = ((-(alpha + beta)) * 180) / 3.141593; Angle2 = ((2 * beta) * 180) / 3.141593; bustebras.brasgaucheplein._rotation = Angle1; bustebras.contourbrasgauche._rotation = Angle1; bustebras.contourbrasgauche.avantbras._rotation = Angle2; yVolantDroit = corpsDeltaY - posBrasDroitVolant; yDiff = yVolantDroit + lEpaule; lEpauleDroiteVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant)); alpha = yDiff / xVolant; beta = Math.acos(lEpauleGaucheVolant / (2 * lBras)); Angle1 = ((beta - alpha) * 180) / 3.141593; Angle2 = ((-2 * beta) * 180) / 3.141593; bustebras.brasdroitplein._rotation = Angle1; bustebras.contourbrasdroit._rotation = Angle1; bustebras.contourbrasdroit.avantbras._rotation = Angle2; } function init() { speedDecay = 0.9; incRotation = 0; maxWheelAngle = 55; incSpeed = 0; speed = 0; wheelRotation = 0; carLength = 138.8; incy = 0; incx = 0; _x = _root.vX; _y = _root.vY; _rotation = _root.vRot; rouedroite._rotation = wheelRotation; rouegauche._rotation = wheelRotation; gare = false; _root.gagnos._visible = false; reposBonhommeVolant = 20; rayonVolant = 8; posBrasGaucheVolant = 0; posBrasDroitVolant = 0; corpsDeltaX = 0; corpsDeltaY = 0; maxCorpsDeltaY = 4; corpsSpeedX = 0; maxCorpsDeltaX = 8; minCorpsDeltaX = -5; corpsDecay = 0.5; bustebras._x = _root.xCorps + corpsDeltaX; bustebras._y = _root.yCorps + corpsDeltaY; teteDeltaX = 0; teteDeltaY = 0; teteDecay = 0.5; maxTeteDeltaX = 10; minTeteDeltaX = -8; teteSpeedX = 0; tete._x = (_root.xTete + corpsDeltaX) + teteDeltaX; tete._y = (_root.yTete + corpsDeltaY) + teteDeltaY; bustebras._x = _root.xCorps; bustebras._y = _root.yCorps; lBras = 14; lEpaule = 10; _root.ombrevoiture._x = _x + 10; _root.ombrevoiture._y = _y + 10; _root.ombrevoiture._rotation = _rotation; _root.maskvoiture._x = _x; _root.maskvoiture._y = _y; _root.maskvoiture._rotation = _rotation; setBrasRotation(); tuturevertefeuxarr.gotoAndStop(1); chocs = 0; forceChocs = 0; score = 0; _root.caravane.init(); } function initReplayRec() { replayRecFrame = 0; replayPlayFrame = 0; replayRecEventsIndex = 0; replayPlayEventsIndex = 0; replayEvents = new Array(); replayPlay = false; _root.replayos.gotoAndStop(1); _root.repclign.stop(); _root.repclign._visible = false; } function side(v, po) { return((po.y * v.x) - (po.x * v.y)); } function inShape(p) { toreturn = true; oldPoint = {x:colShape[0].x, y:colShape[0].y}; localToGlobal(oldPoint); i = 0; while (i < 4) { newPoint = {x:colShape[i + 1].x, y:colShape[i + 1].y}; localToGlobal(newPoint); vShape = {x:newPoint.x - oldPoint.x, y:newPoint.y - oldPoint.y}; testPoint = {x:p.x - oldPoint.x, y:p.y - oldPoint.y}; if (side(vShape, testPoint) < 0) { toreturn = false; break; } oldPoint = newPoint; i++; } return(toreturn); } function hit(clip) { return(inShape({x:clip._x, y:clip._y}) || (_root.caravane.inShape({x:clip._x, y:clip._y}))); } function keyDownAction(t) { toreturn = false; if (t == 39) { if (incRotation != 5) { incRotation = 5; toreturn = true; } } else if (t == 37) { if (incRotation != -5) { incRotation = -5; toreturn = true; } } else if (t == 40) { if (incSpeed != -1) { incSpeed = -1; toreturn = true; } } else if (t == 38) { if (incSpeed != 1) { incSpeed = 1; toreturn = true; } } return(toreturn); } function keyUpAction(t) { if (t == 39) { if (incRotation > 0) { incRotation = 0; } } else if (t == 37) { if (incRotation < 0) { incRotation = 0; } } else if (t == 40) { if (incSpeed < 0) { incSpeed = 0; } } else if (t == 38) { if (incSpeed > 0) { incSpeed = 0; } } } init(); initReplayRec(); colShape = new Array(); colShape[0] = {x:-15, y:-30}; colShape[1] = {x:110, y:-30}; colShape[2] = {x:110, y:30}; colShape[3] = {x:-15, y:30}; colShape[4] = colShape[0]; } onClipEvent (keyDown) { if ((_root.timing == true) && (replayPlay == false)) { t = Key.getCode(); if (keyDownAction(t)) { replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:1, keycode:t}; replayRecEventsIndex = replayRecEventsIndex + 1; } } } onClipEvent (keyUp) { a = Key.getAscii(); if (a == 115) { if (((_root.timing == false) && (replayPlay == false)) && (_root.gagnos._visible == false)) { _root.clicStart(); } else if (_root.timing == true) { _root.clicStop(); } } else if ((_root.timing == true) && (replayPlay == false)) { t = Key.getCode(); keyUpAction(t); replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:0, keycode:t}; replayRecEventsIndex = replayRecEventsIndex + 1; } } onClipEvent (enterFrame) { if ((_root.timing == true) && (_root.paused == false)) { if (replayPlay) { currentFrameIsEvented = true; while (currentFrameIsEvented) { nextFrame = replayEvents[replayPlayEventsIndex].framenb; if (nextFrame == replayPlayFrame) { if (replayEvents[replayPlayEventsIndex].updown == 0) { keyUpAction(replayEvents[replayPlayEventsIndex].keycode); } else { keyDownAction(replayEvents[replayPlayEventsIndex].keycode); } replayPlayEventsIndex = replayPlayEventsIndex + 1; } currentFrameIsEvented = false; } replayPlayFrame = replayPlayFrame + 1; } memoX = _x; memoY = _y; memoRot = _rotation; _root.caravane.saveMemo(); oldRot = wheelRotation; oldSpeed = speed; oldCorpsSpeedX = corpsSpeedX; speed = speed + incSpeed; if (speed > maxSpeed) { speed = maxSpeed; } else if (speed < (-maxSpeed)) { speed = -maxSpeed; } if (incSpeed == 0) { speed = speed * speedDecay; tuturevertefeuxarr.gotoAndStop(1); } else { tuturevertefeuxarr.gotoAndStop(2); speed = speed + incSpeed; if (speed > maxSpeed) { speed = maxSpeed; } else if (speed < (-maxSpeed)) { speed = -maxSpeed; } } wheelRotation = wheelRotation + incRotation; if (wheelRotation > maxWheelAngle) { wheelRotation = maxWheelAngle; } else if (wheelRotation < (-maxWheelAngle)) { wheelRotation = -maxWheelAngle; } if (oldRot != wheelRotation) { rouedroite._rotation = wheelRotation; rouegauche._rotation = wheelRotation; } incx = Math.sin(wheelRotation * 0.017453) * speed; _rotation = (_rotation + (((incx / carLength) * 250) / 3.141593)); incy = Math.cos(wheelRotation * 0.017453) * speed; _y = (_y + (Math.sin((_rotation + 0) * 0.017453) * incy)); _x = (_x + (Math.cos((_rotation + 0) * 0.017453) * incy)); if (_y < 0) { _y = (_y + widthScene); _root.caravane.transMemoTracteur(0, widthScene); } else if (_y > widthScene) { _y = (_y - widthScene); _root.caravane.transMemoTracteur(0, -widthScene); } if (_x < 0) { _x = (_x + widthScene); _root.caravane.transMemoTracteur(widthScene, 0); } else if (_x > widthScene) { _x = (_x - widthScene); _root.caravane.transMemoTracteur(-widthScene, 0); } _root.caravane.compute(); A = hit(_root.palmhaut); B = hit(_root.palmbas); C = hit(_root.palmfond); angVoitureCaravane = Math.abs(_rotation - _root.caravane._rotation) % 360; if (angVoitureCaravane > 180) { angVoitureCaravane = 360 - angVoitureCaravane; } if (angVoitureCaravane > 75) { D = true; } else { D = false; } if (((A || (B)) || (C)) || (D)) { if (Math.abs(speed) > 7) { chocs = chocs + 1; forceChocs = forceChocs + Math.abs(speed); } _x = memoX; _y = memoY; _rotation = memoRot; _root.caravane.setMemo(); speed = 0; } else { gagne = _root.caravane.isParked(); if (((gagne == true) && (speed > -1)) && (speed < 1)) { gare = true; if (replayPlay) { _root.timing = false; replayPlay = false; _root.replayos.gotoAndPlay(2); } else { _root.gagnos._visible = true; _root.gagnos.gotoAndPlay(1); _root.elapsedTime = (Math.ceil(_root.elapsedTime) + 8) - random(16); score = (500000 / _root.elapsedTime) - forceChocs; _root.timing = false; _root.paused = false; } _root.playSurround(true); } } } } onClipEvent (load) { maxSpeed = 0; } onClipEvent (enterFrame) { if (Key.isDown(32)) { maxSpeed = 0; } } onClipEvent (enterFrame) { if (!Key.isDown(38)) { incSpeed = 0; } else if (_root.connected == false) { maxSpeed = 3; } else if (_root.connected == true) { maxSpeed = 3; } } onClipEvent (enterFrame) { if (this._x > 550) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } else if (this._x < 0) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } else if (this._y < 0) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } else if (this._y > 550) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (this.hitTest(_root.palmfond._x, _root.palmfond._y, true)) { maxSpeed = 1; } } onClipEvent (enterFrame) { if (!_root.road.hitTest(this._x, this._y, true)) { _root.fault.gotoAndStop(_root.fault._currentframe + 1); } } onClipEvent (enterFrame) { if (Key.isDown(40)) { maxSpeed = 2; incSpeed = -2; } }
Instance of Symbol 411 MovieClip "ava" in Frame 9
onClipEvent (enterFrame) { this.drivertext.gotoAndStop(2); }
Instance of Symbol 470 MovieClip "time" in Frame 9
onClipEvent (enterFrame) { if (_root.finnished.NX == true) { _root.time.gotoAndStop(_root.time._currentframe + 0); } else if (_root.stoptime == false) { _root.time.gotoAndStop(_root.time._currentframe + 1); } }
Instance of Symbol 472 MovieClip "speed" in Frame 9
onClipEvent (enterFrame) { if (Key.isDown(65) and Key.isDown(17)) { _root.score = Number(_root.score) + 10; } } onClipEvent (enterFrame) { if (_root.score < 0) { _root.score = (_root.score = 0); } }
Instance of Symbol 491 MovieClip "sounds" in Frame 9
onClipEvent (load) { stopAllSounds(); } onClipEvent (enterFrame) { if (Key.isDown(40)) { this.gotoAndStop(2); } else if (Key.isDown(38)) { this.gotoAndStop(3); } else if (Key.isDown(32)) { this.gotoAndStop(4); } else { this.gotoAndStop(1); } }
Frame 10
if (_root.lvls < 1) { _root.lvls = (Number_root.lvls = 1); }
Instance of Symbol 272 MovieClip in Frame 10
onClipEvent (enterFrame) { _root.gotoAndStop(_root._currentframe + 1); }
Frame 11
function getCoordPolaire(p) { dx = p.x; dy = p.y; d = Math.sqrt((dx * dx) + (dy * dy)); if (d == 0) { a = 0; } else { a = Math.acos(dx / d); if (dy < 0) { a = -a; } } return({x:p.x, y:p.y, a:a, d:d}); } function getAlphaNum(number) { toReturn = ""; while (number > 0) { unite = number % baseAlphaNum; if (unite < 10) { toReturn = String.fromCharCode(unite + 48) + toReturn; } else if (unite < 36) { toReturn = String.fromCharCode(unite + 55) + toReturn; } else { toReturn = String.fromCharCode(unite + 61) + toReturn; } var _local2 = (number - unite) / baseAlphaNum; } return(toReturn); } function getNumber(alphanum) { toReturn = 0; l = alphanum.length; i = 0; while (i < l) { unite = alphanum.charCodeAt(i); if ((unite >= 48) && (unite < 58)) { toReturn = ((toReturn * baseAlphaNum) + unite) - 48; } else if ((unite >= 65) && (unite < 91)) { toReturn = ((toReturn * baseAlphaNum) + unite) - 55; } else if ((unite >= 97) && (unite < 123)) { toReturn = ((toReturn * baseAlphaNum) + unite) - 61; } i++; } return(toReturn); } function playSurround(show) { if (show) { playback._visible = play_btn._visible; playback.gotoAndPlay(1); } else { playback._visible = false; } } function showButtons(vis) { pause_btn._visible = vis; play_btn._visible = vis; stop_btn._visible = vis; playback._visible = vis; } function clicStart() { if (!_root.timing) { menuder._visible = false; _root.paused = false; _root.timing = true; } } var vX = _root.voitureverte._x; var vY = _root.voitureverte._y; var vRot = _root.voitureverte._rotation; var xCorps = _root.voitureverte.bustebras._x; var yCorps = _root.voitureverte.bustebras._y; var xTete = _root.voitureverte.tete._x; var yTete = _root.voitureverte.tete._y; var frame = 0; var startFrame = 0; var baseAlphaNum = 62; var timing = false; stop(); _root.two = false; stop(); _root.connected = true;
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 318 MovieClip in Frame 11
onClipEvent (enterFrame) { if (((_root.voitureverte.front.hitTest(this.front) or _root.voitureverte.box1.hitTest(this.front)) or _root.voitureverte.front.hitTest(this.back)) or _root.voitureverte.box1.hitTest(this.back)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this.visible = false; }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 11
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 498 MovieClip "movecar" in Frame 11
onClipEvent (enterFrame) { if (_root.move == true) { this.stop(); } else if (_root.move == false) { this.play(); } }
Instance of Symbol 377 MovieClip "voitureverte" in Frame 11
onClipEvent (load) { function setBrasRotation() { xVolant = reposBonhommeVolant - corpsDeltaX; yVolantGauche = corpsDeltaY + posBrasGaucheVolant; yDiff = yVolantGauche - lEpaule; lEpauleGaucheVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant)); alpha = yDiff / xVolant; beta = Math.acos(lEpauleGaucheVolant / (2 * lBras)); Angle1 = ((-(alpha + beta)) * 180) / 3.141593; Angle2 = ((2 * beta) * 180) / 3.141593; bustebras.brasgaucheplein._rotation = Angle1; bustebras.contourbrasgauche._rotation = Angle1; bustebras.contourbrasgauche.avantbras._rotation = Angle2; yVolantDroit = corpsDeltaY - posBrasDroitVolant; yDiff = yVolantDroit + lEpaule; lEpauleDroiteVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant)); alpha = yDiff / xVolant; beta = Math.acos(lEpauleGaucheVolant / (2 * lBras)); Angle1 = ((beta - alpha) * 180) / 3.141593; Angle2 = ((-2 * beta) * 180) / 3.141593; bustebras.brasdroitplein._rotation = Angle1; bustebras.contourbrasdroit._rotation = Angle1; bustebras.contourbrasdroit.avantbras._rotation = Angle2; } function init() { speedDecay = 0.9; incRotation = 0; maxWheelAngle = 55; incSpeed = 0; speed = 0; wheelRotation = 0; carLength = 138.8; incy = 0; incx = 0; _x = _root.vX; _y = _root.vY; _rotation = _root.vRot; rouedroite._rotation = wheelRotation; rouegauche._rotation = wheelRotation; gare = false; _root.gagnos._visible = false; reposBonhommeVolant = 20; rayonVolant = 8; posBrasGaucheVolant = 0; posBrasDroitVolant = 0; corpsDeltaX = 0; corpsDeltaY = 0; maxCorpsDeltaY = 4; corpsSpeedX = 0; maxCorpsDeltaX = 8; minCorpsDeltaX = -5; corpsDecay = 0.5; bustebras._x = _root.xCorps + corpsDeltaX; bustebras._y = _root.yCorps + corpsDeltaY; teteDeltaX = 0; teteDeltaY = 0; teteDecay = 0.5; maxTeteDeltaX = 10; minTeteDeltaX = -8; teteSpeedX = 0; tete._x = (_root.xTete + corpsDeltaX) + teteDeltaX; tete._y = (_root.yTete + corpsDeltaY) + teteDeltaY; bustebras._x = _root.xCorps; bustebras._y = _root.yCorps; lBras = 14; lEpaule = 10; _root.ombrevoiture._x = _x + 10; _root.ombrevoiture._y = _y + 10; _root.ombrevoiture._rotation = _rotation; _root.maskvoiture._x = _x; _root.maskvoiture._y = _y; _root.maskvoiture._rotation = _rotation; setBrasRotation(); tuturevertefeuxarr.gotoAndStop(1); chocs = 0; forceChocs = 0; score = 0; _root.caravane.init(); } function initReplayRec() { replayRecFrame = 0; replayPlayFrame = 0; replayRecEventsIndex = 0; replayPlayEventsIndex = 0; replayEvents = new Array(); replayPlay = false; _root.replayos.gotoAndStop(1); _root.repclign.stop(); _root.repclign._visible = false; } function side(v, po) { return((po.y * v.x) - (po.x * v.y)); } function inShape(p) { toreturn = true; oldPoint = {x:colShape[0].x, y:colShape[0].y}; localToGlobal(oldPoint); i = 0; while (i < 4) { newPoint = {x:colShape[i + 1].x, y:colShape[i + 1].y}; localToGlobal(newPoint); vShape = {x:newPoint.x - oldPoint.x, y:newPoint.y - oldPoint.y}; testPoint = {x:p.x - oldPoint.x, y:p.y - oldPoint.y}; if (side(vShape, testPoint) < 0) { toreturn = false; break; } oldPoint = newPoint; i++; } return(toreturn); } function hit(clip) { return(inShape({x:clip._x, y:clip._y}) || (_root.caravane.inShape({x:clip._x, y:clip._y}))); } function keyDownAction(t) { toreturn = false; if (t == 39) { if (incRotation != 5) { incRotation = 5; toreturn = true; } } else if (t == 37) { if (incRotation != -5) { incRotation = -5; toreturn = true; } } else if (t == 40) { if (incSpeed != -1) { incSpeed = -1; toreturn = true; } } else if (t == 38) { if (incSpeed != 1) { incSpeed = 1; toreturn = true; } } return(toreturn); } function keyUpAction(t) { if (t == 39) { if (incRotation > 0) { incRotation = 0; } } else if (t == 37) { if (incRotation < 0) { incRotation = 0; } } else if (t == 40) { if (incSpeed < 0) { incSpeed = 0; } } else if (t == 38) { if (incSpeed > 0) { incSpeed = 0; } } } init(); initReplayRec(); colShape = new Array(); colShape[0] = {x:-15, y:-30}; colShape[1] = {x:110, y:-30}; colShape[2] = {x:110, y:30}; colShape[3] = {x:-15, y:30}; colShape[4] = colShape[0]; } onClipEvent (keyDown) { if ((_root.timing == true) && (replayPlay == false)) { t = Key.getCode(); if (keyDownAction(t)) { replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:1, keycode:t}; replayRecEventsIndex = replayRecEventsIndex + 1; } } } onClipEvent (keyUp) { a = Key.getAscii(); if (a == 115) { if (((_root.timing == false) && (replayPlay == false)) && (_root.gagnos._visible == false)) { _root.clicStart(); } else if (_root.timing == true) { _root.clicStop(); } } else if ((_root.timing == true) && (replayPlay == false)) { t = Key.getCode(); keyUpAction(t); replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:0, keycode:t}; replayRecEventsIndex = replayRecEventsIndex + 1; } } onClipEvent (enterFrame) { if ((_root.timing == true) && (_root.paused == false)) { if (replayPlay) { currentFrameIsEvented = true; while (currentFrameIsEvented) { nextFrame = replayEvents[replayPlayEventsIndex].framenb; if (nextFrame == replayPlayFrame) { if (replayEvents[replayPlayEventsIndex].updown == 0) { keyUpAction(replayEvents[replayPlayEventsIndex].keycode); } else { keyDownAction(replayEvents[replayPlayEventsIndex].keycode); } replayPlayEventsIndex = replayPlayEventsIndex + 1; } currentFrameIsEvented = false; } replayPlayFrame = replayPlayFrame + 1; } memoX = _x; memoY = _y; memoRot = _rotation; _root.caravane.saveMemo(); oldRot = wheelRotation; oldSpeed = speed; oldCorpsSpeedX = corpsSpeedX; speed = speed + incSpeed; if (speed > maxSpeed) { speed = maxSpeed; } else if (speed < (-maxSpeed)) { speed = -maxSpeed; } if (incSpeed == 0) { speed = speed * speedDecay; tuturevertefeuxarr.gotoAndStop(1); } else { tuturevertefeuxarr.gotoAndStop(2); speed = speed + incSpeed; if (speed > maxSpeed) { speed = maxSpeed; } else if (speed < (-maxSpeed)) { speed = -maxSpeed; } } wheelRotation = wheelRotation + incRotation; if (wheelRotation > maxWheelAngle) { wheelRotation = maxWheelAngle; } else if (wheelRotation < (-maxWheelAngle)) { wheelRotation = -maxWheelAngle; } if (oldRot != wheelRotation) { rouedroite._rotation = wheelRotation; rouegauche._rotation = wheelRotation; } incx = Math.sin(wheelRotation * 0.017453) * speed; _rotation = (_rotation + (((incx / carLength) * 250) / 3.141593)); incy = Math.cos(wheelRotation * 0.017453) * speed; _y = (_y + (Math.sin((_rotation + 0) * 0.017453) * incy)); _x = (_x + (Math.cos((_rotation + 0) * 0.017453) * incy)); if (_y < 0) { _y = (_y + widthScene); _root.caravane.transMemoTracteur(0, widthScene); } else if (_y > widthScene) { _y = (_y - widthScene); _root.caravane.transMemoTracteur(0, -widthScene); } if (_x < 0) { _x = (_x + widthScene); _root.caravane.transMemoTracteur(widthScene, 0); } else if (_x > widthScene) { _x = (_x - widthScene); _root.caravane.transMemoTracteur(-widthScene, 0); } _root.caravane.compute(); A = hit(_root.palmhaut); B = hit(_root.palmbas); C = hit(_root.palmfond); angVoitureCaravane = Math.abs(_rotation - _root.caravane._rotation) % 360; if (angVoitureCaravane > 180) { angVoitureCaravane = 360 - angVoitureCaravane; } if (angVoitureCaravane > 75) { D = true; } else { D = false; } if (((A || (B)) || (C)) || (D)) { if (Math.abs(speed) > 7) { chocs = chocs + 1; forceChocs = forceChocs + Math.abs(speed); } _x = memoX; _y = memoY; _rotation = memoRot; _root.caravane.setMemo(); speed = 0; } else { gagne = _root.caravane.isParked(); if (((gagne == true) && (speed > -1)) && (speed < 1)) { gare = true; if (replayPlay) { _root.timing = false; replayPlay = false; _root.replayos.gotoAndPlay(2); } else { _root.gagnos._visible = true; _root.gagnos.gotoAndPlay(1); _root.elapsedTime = (Math.ceil(_root.elapsedTime) + 8) - random(16); score = (500000 / _root.elapsedTime) - forceChocs; _root.timing = false; _root.paused = false; } _root.playSurround(true); } } } } onClipEvent (load) { maxSpeed = 0; } onClipEvent (enterFrame) { if (Key.isDown(32)) { maxSpeed = 0; } } onClipEvent (enterFrame) { if (!Key.isDown(38)) { incSpeed = 0; } else if (_root.connected == false) { maxSpeed = 3; } else if (_root.connected == true) { maxSpeed = 3; } } onClipEvent (enterFrame) { if (this._x > 550) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } else if (this._x < 0) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } else if (this._y < 0) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } else if (this._y > 550) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (this.hitTest(_root.palmfond._x, _root.palmfond._y, true)) { maxSpeed = 1; } } onClipEvent (enterFrame) { if (!_root.road.hitTest(this._x, this._y, true)) { _root.fault.gotoAndStop(_root.fault._currentframe + 1); } } onClipEvent (enterFrame) { if (Key.isDown(40)) { maxSpeed = 2; incSpeed = -2; } }
Instance of Symbol 338 MovieClip "land" in Frame 11
onClipEvent (enterFrame) { if (this.hitTest(_root.voitureverte._x, _root.voitureverte._y, true)) { _root.voitureverte.gotoAndStop(2); _root.finnished.failed.whyfailed.textwhy = "you crashed"; } }
Instance of Symbol 411 MovieClip "ava" in Frame 11
onClipEvent (enterFrame) { this.drivertext.gotoAndStop(1); }
Instance of Symbol 470 MovieClip "time" in Frame 11
onClipEvent (enterFrame) { if (_root.finnished.NX == true) { _root.time.gotoAndStop(_root.time._currentframe + 0); } else if (_root.stoptime == false) { _root.time.gotoAndStop(_root.time._currentframe + 2); } }
Instance of Symbol 472 MovieClip "speed" in Frame 11
onClipEvent (enterFrame) { if (Key.isDown(65) and Key.isDown(17)) { _root.score = Number(_root.score) + 10; } } onClipEvent (enterFrame) { if (_root.score < 0) { _root.score = (_root.score = 0); } }
Instance of Symbol 491 MovieClip "sounds" in Frame 11
onClipEvent (load) { stopAllSounds(); } onClipEvent (enterFrame) { if (Key.isDown(40)) { this.gotoAndStop(2); } else if (Key.isDown(38)) { this.gotoAndStop(3); } else if (Key.isDown(32)) { this.gotoAndStop(4); } else { this.gotoAndStop(1); } }
Frame 12
if (_root.lvls < 2) { _root.lvls = (Number_root.lvls = 2); }
Instance of Symbol 272 MovieClip in Frame 12
onClipEvent (enterFrame) { _root.gotoAndStop(_root._currentframe + 1); }
Frame 13
function getCoordPolaire(p) { dx = p.x; dy = p.y; d = Math.sqrt((dx * dx) + (dy * dy)); if (d == 0) { a = 0; } else { a = Math.acos(dx / d); if (dy < 0) { a = -a; } } return({x:p.x, y:p.y, a:a, d:d}); } function getAlphaNum(number) { toReturn = ""; while (number > 0) { unite = number % baseAlphaNum; if (unite < 10) { toReturn = String.fromCharCode(unite + 48) + toReturn; } else if (unite < 36) { toReturn = String.fromCharCode(unite + 55) + toReturn; } else { toReturn = String.fromCharCode(unite + 61) + toReturn; } var _local2 = (number - unite) / baseAlphaNum; } return(toReturn); } function getNumber(alphanum) { toReturn = 0; l = alphanum.length; i = 0; while (i < l) { unite = alphanum.charCodeAt(i); if ((unite >= 48) && (unite < 58)) { toReturn = ((toReturn * baseAlphaNum) + unite) - 48; } else if ((unite >= 65) && (unite < 91)) { toReturn = ((toReturn * baseAlphaNum) + unite) - 55; } else if ((unite >= 97) && (unite < 123)) { toReturn = ((toReturn * baseAlphaNum) + unite) - 61; } i++; } return(toReturn); } function playSurround(show) { if (show) { playback._visible = play_btn._visible; playback.gotoAndPlay(1); } else { playback._visible = false; } } function showButtons(vis) { pause_btn._visible = vis; play_btn._visible = vis; stop_btn._visible = vis; playback._visible = vis; } function clicStart() { if (!_root.timing) { menuder._visible = false; _root.paused = false; _root.timing = true; } } var vX = _root.voitureverte._x; var vY = _root.voitureverte._y; var vRot = _root.voitureverte._rotation; var xCorps = _root.voitureverte.bustebras._x; var yCorps = _root.voitureverte.bustebras._y; var xTete = _root.voitureverte.tete._x; var yTete = _root.voitureverte.tete._y; var frame = 0; var startFrame = 0; var baseAlphaNum = 62; var timing = false; _root.play_btn.onPress = function () { clicStart(); _root.time.play(); _root.play_btn.gotoAndPlay(51); _root.ava.play(); }; stop(); _root.two = false;
Instance of Symbol 318 MovieClip in Frame 13
onClipEvent (enterFrame) { if (((_root.voitureverte.front.hitTest(this.front) or _root.voitureverte.box1.hitTest(this.front)) or _root.voitureverte.front.hitTest(this.back)) or _root.voitureverte.box1.hitTest(this.back)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 322 MovieClip in Frame 13
onClipEvent (enterFrame) { if (((_root.voitureverte.front.hitTest(this.front) or _root.voitureverte.box1.hitTest(this.front)) or _root.voitureverte.front.hitTest(this.back)) or _root.voitureverte.box1.hitTest(this.back)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 322 MovieClip in Frame 13
onClipEvent (enterFrame) { if (((_root.voitureverte.front.hitTest(this.front) or _root.voitureverte.box1.hitTest(this.front)) or _root.voitureverte.front.hitTest(this.back)) or _root.voitureverte.box1.hitTest(this.back)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 322 MovieClip in Frame 13
onClipEvent (enterFrame) { if (((_root.voitureverte.front.hitTest(this.front) or _root.voitureverte.box1.hitTest(this.front)) or _root.voitureverte.front.hitTest(this.back)) or _root.voitureverte.box1.hitTest(this.back)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 377 MovieClip "voitureverte" in Frame 13
onClipEvent (load) { function setBrasRotation() { xVolant = reposBonhommeVolant - corpsDeltaX; yVolantGauche = corpsDeltaY + posBrasGaucheVolant; yDiff = yVolantGauche - lEpaule; lEpauleGaucheVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant)); alpha = yDiff / xVolant; beta = Math.acos(lEpauleGaucheVolant / (2 * lBras)); Angle1 = ((-(alpha + beta)) * 180) / 3.141593; Angle2 = ((2 * beta) * 180) / 3.141593; bustebras.brasgaucheplein._rotation = Angle1; bustebras.contourbrasgauche._rotation = Angle1; bustebras.contourbrasgauche.avantbras._rotation = Angle2; yVolantDroit = corpsDeltaY - posBrasDroitVolant; yDiff = yVolantDroit + lEpaule; lEpauleDroiteVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant)); alpha = yDiff / xVolant; beta = Math.acos(lEpauleGaucheVolant / (2 * lBras)); Angle1 = ((beta - alpha) * 180) / 3.141593; Angle2 = ((-2 * beta) * 180) / 3.141593; bustebras.brasdroitplein._rotation = Angle1; bustebras.contourbrasdroit._rotation = Angle1; bustebras.contourbrasdroit.avantbras._rotation = Angle2; } function init() { speedDecay = 0.9; incRotation = 0; maxWheelAngle = 55; incSpeed = 0; speed = 0; wheelRotation = 0; carLength = 138.8; incy = 0; incx = 0; _x = _root.vX; _y = _root.vY; _rotation = _root.vRot; rouedroite._rotation = wheelRotation; rouegauche._rotation = wheelRotation; gare = false; _root.gagnos._visible = false; reposBonhommeVolant = 20; rayonVolant = 8; posBrasGaucheVolant = 0; posBrasDroitVolant = 0; corpsDeltaX = 0; corpsDeltaY = 0; maxCorpsDeltaY = 4; corpsSpeedX = 0; maxCorpsDeltaX = 8; minCorpsDeltaX = -5; corpsDecay = 0.5; bustebras._x = _root.xCorps + corpsDeltaX; bustebras._y = _root.yCorps + corpsDeltaY; teteDeltaX = 0; teteDeltaY = 0; teteDecay = 0.5; maxTeteDeltaX = 10; minTeteDeltaX = -8; teteSpeedX = 0; tete._x = (_root.xTete + corpsDeltaX) + teteDeltaX; tete._y = (_root.yTete + corpsDeltaY) + teteDeltaY; bustebras._x = _root.xCorps; bustebras._y = _root.yCorps; lBras = 14; lEpaule = 10; _root.ombrevoiture._x = _x + 10; _root.ombrevoiture._y = _y + 10; _root.ombrevoiture._rotation = _rotation; _root.maskvoiture._x = _x; _root.maskvoiture._y = _y; _root.maskvoiture._rotation = _rotation; setBrasRotation(); tuturevertefeuxarr.gotoAndStop(1); chocs = 0; forceChocs = 0; score = 0; _root.caravane.init(); } function initReplayRec() { replayRecFrame = 0; replayPlayFrame = 0; replayRecEventsIndex = 0; replayPlayEventsIndex = 0; replayEvents = new Array(); replayPlay = false; _root.replayos.gotoAndStop(1); _root.repclign.stop(); _root.repclign._visible = false; } function side(v, po) { return((po.y * v.x) - (po.x * v.y)); } function inShape(p) { toreturn = true; oldPoint = {x:colShape[0].x, y:colShape[0].y}; localToGlobal(oldPoint); i = 0; while (i < 4) { newPoint = {x:colShape[i + 1].x, y:colShape[i + 1].y}; localToGlobal(newPoint); vShape = {x:newPoint.x - oldPoint.x, y:newPoint.y - oldPoint.y}; testPoint = {x:p.x - oldPoint.x, y:p.y - oldPoint.y}; if (side(vShape, testPoint) < 0) { toreturn = false; break; } oldPoint = newPoint; i++; } return(toreturn); } function hit(clip) { return(inShape({x:clip._x, y:clip._y}) || (_root.caravane.inShape({x:clip._x, y:clip._y}))); } function keyDownAction(t) { toreturn = false; if (t == 39) { if (incRotation != 5) { incRotation = 5; toreturn = true; } } else if (t == 37) { if (incRotation != -5) { incRotation = -5; toreturn = true; } } else if (t == 40) { if (incSpeed != -1) { incSpeed = -1; toreturn = true; } } else if (t == 38) { if (incSpeed != 1) { incSpeed = 1; toreturn = true; } } return(toreturn); } function keyUpAction(t) { if (t == 39) { if (incRotation > 0) { incRotation = 0; } } else if (t == 37) { if (incRotation < 0) { incRotation = 0; } } else if (t == 40) { if (incSpeed < 0) { incSpeed = 0; } } else if (t == 38) { if (incSpeed > 0) { incSpeed = 0; } } } init(); initReplayRec(); colShape = new Array(); colShape[0] = {x:-15, y:-30}; colShape[1] = {x:110, y:-30}; colShape[2] = {x:110, y:30}; colShape[3] = {x:-15, y:30}; colShape[4] = colShape[0]; } onClipEvent (keyDown) { if ((_root.timing == true) && (replayPlay == false)) { t = Key.getCode(); if (keyDownAction(t)) { replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:1, keycode:t}; replayRecEventsIndex = replayRecEventsIndex + 1; } } } onClipEvent (keyUp) { a = Key.getAscii(); if (a == 115) { if (((_root.timing == false) && (replayPlay == false)) && (_root.gagnos._visible == false)) { _root.clicStart(); } else if (_root.timing == true) { _root.clicStop(); } } else if ((_root.timing == true) && (replayPlay == false)) { t = Key.getCode(); keyUpAction(t); replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:0, keycode:t}; replayRecEventsIndex = replayRecEventsIndex + 1; } } onClipEvent (enterFrame) { if ((_root.timing == true) && (_root.paused == false)) { if (replayPlay) { currentFrameIsEvented = true; while (currentFrameIsEvented) { nextFrame = replayEvents[replayPlayEventsIndex].framenb; if (nextFrame == replayPlayFrame) { if (replayEvents[replayPlayEventsIndex].updown == 0) { keyUpAction(replayEvents[replayPlayEventsIndex].keycode); } else { keyDownAction(replayEvents[replayPlayEventsIndex].keycode); } replayPlayEventsIndex = replayPlayEventsIndex + 1; } currentFrameIsEvented = false; } replayPlayFrame = replayPlayFrame + 1; } memoX = _x; memoY = _y; memoRot = _rotation; _root.caravane.saveMemo(); oldRot = wheelRotation; oldSpeed = speed; oldCorpsSpeedX = corpsSpeedX; speed = speed + incSpeed; if (speed > maxSpeed) { speed = maxSpeed; } else if (speed < (-maxSpeed)) { speed = -maxSpeed; } if (incSpeed == 0) { speed = speed * speedDecay; tuturevertefeuxarr.gotoAndStop(1); } else { tuturevertefeuxarr.gotoAndStop(2); speed = speed + incSpeed; if (speed > maxSpeed) { speed = maxSpeed; } else if (speed < (-maxSpeed)) { speed = -maxSpeed; } } wheelRotation = wheelRotation + incRotation; if (wheelRotation > maxWheelAngle) { wheelRotation = maxWheelAngle; } else if (wheelRotation < (-maxWheelAngle)) { wheelRotation = -maxWheelAngle; } if (oldRot != wheelRotation) { rouedroite._rotation = wheelRotation; rouegauche._rotation = wheelRotation; } incx = Math.sin(wheelRotation * 0.017453) * speed; _rotation = (_rotation + (((incx / carLength) * 250) / 3.141593)); incy = Math.cos(wheelRotation * 0.017453) * speed; _y = (_y + (Math.sin((_rotation + 0) * 0.017453) * incy)); _x = (_x + (Math.cos((_rotation + 0) * 0.017453) * incy)); if (_y < 0) { _y = (_y + widthScene); _root.caravane.transMemoTracteur(0, widthScene); } else if (_y > widthScene) { _y = (_y - widthScene); _root.caravane.transMemoTracteur(0, -widthScene); } if (_x < 0) { _x = (_x + widthScene); _root.caravane.transMemoTracteur(widthScene, 0); } else if (_x > widthScene) { _x = (_x - widthScene); _root.caravane.transMemoTracteur(-widthScene, 0); } _root.caravane.compute(); A = hit(_root.palmhaut); B = hit(_root.palmbas); C = hit(_root.palmfond); angVoitureCaravane = Math.abs(_rotation - _root.caravane._rotation) % 360; if (angVoitureCaravane > 180) { angVoitureCaravane = 360 - angVoitureCaravane; } if (angVoitureCaravane > 75) { D = true; } else { D = false; } if (((A || (B)) || (C)) || (D)) { if (Math.abs(speed) > 7) { chocs = chocs + 1; forceChocs = forceChocs + Math.abs(speed); } _x = memoX; _y = memoY; _rotation = memoRot; _root.caravane.setMemo(); speed = 0; } else { gagne = _root.caravane.isParked(); if (((gagne == true) && (speed > -1)) && (speed < 1)) { gare = true; if (replayPlay) { _root.timing = false; replayPlay = false; _root.replayos.gotoAndPlay(2); } else { _root.gagnos._visible = true; _root.gagnos.gotoAndPlay(1); _root.elapsedTime = (Math.ceil(_root.elapsedTime) + 8) - random(16); score = (500000 / _root.elapsedTime) - forceChocs; _root.timing = false; _root.paused = false; } _root.playSurround(true); } } } } onClipEvent (load) { maxSpeed = 0; } onClipEvent (enterFrame) { if (Key.isDown(32)) { maxSpeed = 0; } } onClipEvent (enterFrame) { if (!Key.isDown(38)) { incSpeed = 0; } else if (_root.connected == false) { maxSpeed = 3; } else if (_root.connected == true) { maxSpeed = 3; } } onClipEvent (enterFrame) { if (this.hitTest(_root.palmfond._x, _root.palmfond._y, true)) { maxSpeed = 1; } } onClipEvent (enterFrame) { if (!_root.road.hitTest(this._x, this._y, true)) { _root.fault.gotoAndStop(_root.fault._currentframe + 1); } } onClipEvent (enterFrame) { if (Key.isDown(40)) { maxSpeed = 2; incSpeed = -2; } } onClipEvent (enterFrame) { if (this._x > 550) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } else if (this._x < 0) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } else if (this._y < 0) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } else if (this._y > 550) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this.visible = false; }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this.visible = false; }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this.visible = false; }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this.visible = false; }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this.visible = false; }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this.visible = false; }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this.visible = false; }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this.visible = false; }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 13
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 338 MovieClip "land" in Frame 13
onClipEvent (enterFrame) { if (this.hitTest(_root.voitureverte._x, _root.voitureverte._y, true)) { _root.voitureverte.gotoAndStop(2); _root.finnished.failed.whyfailed.textwhy = "you crashed"; } }
Instance of Symbol 411 MovieClip "ava" in Frame 13
onClipEvent (enterFrame) { this.drivertext.gotoAndStop(3); }
Instance of Symbol 472 MovieClip "speed" in Frame 13
onClipEvent (enterFrame) { if (_root.score < 0) { _root.score = (_root.score = 0); } }
Instance of Symbol 491 MovieClip "sounds" in Frame 13
onClipEvent (load) { stopAllSounds(); } onClipEvent (enterFrame) { if (Key.isDown(40)) { this.gotoAndStop(2); } else if (Key.isDown(38)) { this.gotoAndStop(3); } else if (Key.isDown(32)) { this.gotoAndStop(4); } else { this.gotoAndStop(1); } }
Frame 14
if (_root.lvls < 3) { _root.lvls = (Number_root.lvls = 3); }
Instance of Symbol 272 MovieClip in Frame 14
onClipEvent (enterFrame) { _root.gotoAndStop(_root._currentframe + 1); }
Frame 15
function getCoordPolaire(p) { dx = p.x; dy = p.y; d = Math.sqrt((dx * dx) + (dy * dy)); if (d == 0) { a = 0; } else { a = Math.acos(dx / d); if (dy < 0) { a = -a; } } return({x:p.x, y:p.y, a:a, d:d}); } function getAlphaNum(number) { toReturn = ""; while (number > 0) { unite = number % baseAlphaNum; if (unite < 10) { toReturn = String.fromCharCode(unite + 48) + toReturn; } else if (unite < 36) { toReturn = String.fromCharCode(unite + 55) + toReturn; } else { toReturn = String.fromCharCode(unite + 61) + toReturn; } var _local2 = (number - unite) / baseAlphaNum; } return(toReturn); } function getNumber(alphanum) { toReturn = 0; l = alphanum.length; i = 0; while (i < l) { unite = alphanum.charCodeAt(i); if ((unite >= 48) && (unite < 58)) { toReturn = ((toReturn * baseAlphaNum) + unite) - 48; } else if ((unite >= 65) && (unite < 91)) { toReturn = ((toReturn * baseAlphaNum) + unite) - 55; } else if ((unite >= 97) && (unite < 123)) { toReturn = ((toReturn * baseAlphaNum) + unite) - 61; } i++; } return(toReturn); } function playSurround(show) { if (show) { playback._visible = play_btn._visible; playback.gotoAndPlay(1); } else { playback._visible = false; } } function showButtons(vis) { pause_btn._visible = vis; play_btn._visible = vis; stop_btn._visible = vis; playback._visible = vis; } function clicStart() { if (!_root.timing) { menuder._visible = false; _root.paused = false; _root.timing = true; } } var vX = _root.voitureverte._x; var vY = _root.voitureverte._y; var vRot = _root.voitureverte._rotation; var xCorps = _root.voitureverte.bustebras._x; var yCorps = _root.voitureverte.bustebras._y; var xTete = _root.voitureverte.tete._x; var yTete = _root.voitureverte.tete._y; var frame = 0; var startFrame = 0; var baseAlphaNum = 62; var timing = false; _root.play_btn.onPress = function () { clicStart(); _root.time.play(); _root.play_btn.gotoAndPlay(51); _root.ava.play(); }; stop(); _root.two = false;
Instance of Symbol 306 MovieClip in Frame 15
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 15
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 15
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 15
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 318 MovieClip in Frame 15
onClipEvent (enterFrame) { if (((_root.voitureverte.front.hitTest(this.front) or _root.voitureverte.box1.hitTest(this.front)) or _root.voitureverte.front.hitTest(this.back)) or _root.voitureverte.box1.hitTest(this.back)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 510 MovieClip in Frame 15
onClipEvent (enterFrame) { if (_root.lost == true) { this.stop(); } }
Instance of Symbol 514 MovieClip in Frame 15
onClipEvent (enterFrame) { if (this.hitTest(_root.voitureverte._x, _root.voitureverte._y, true)) { _root.voitureverte.gotoAndStop(2); _root.finnished.failed.whyfailed.textwhy = "you crashed"; } }
Instance of Symbol 306 MovieClip in Frame 15
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 15
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 15
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 15
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 15
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 15
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 15
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 15
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 15
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 15
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 15
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 15
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 15
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 318 MovieClip "car1" in Frame 15
onClipEvent (enterFrame) { if (((_root.voitureverte.front.hitTest(this.front) or _root.voitureverte.box1.hitTest(this.front)) or _root.voitureverte.front.hitTest(this.back)) or _root.voitureverte.box1.hitTest(this.back)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { this._y = this._y - 5; } onClipEvent (enterFrame) { if (this._y < -100) { this._y = 600; } }
Instance of Symbol 322 MovieClip in Frame 15
onClipEvent (enterFrame) { if (((_root.voitureverte.front.hitTest(this.front) or _root.voitureverte.box1.hitTest(this.front)) or _root.voitureverte.front.hitTest(this.back)) or _root.voitureverte.box1.hitTest(this.back)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 322 MovieClip in Frame 15
onClipEvent (enterFrame) { if (((_root.voitureverte.front.hitTest(this.front) or _root.voitureverte.box1.hitTest(this.front)) or _root.voitureverte.front.hitTest(this.back)) or _root.voitureverte.box1.hitTest(this.back)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 322 MovieClip in Frame 15
onClipEvent (enterFrame) { if (((_root.voitureverte.front.hitTest(this.front) or _root.voitureverte.box1.hitTest(this.front)) or _root.voitureverte.front.hitTest(this.back)) or _root.voitureverte.box1.hitTest(this.back)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 377 MovieClip "voitureverte" in Frame 15
onClipEvent (load) { function setBrasRotation() { xVolant = reposBonhommeVolant - corpsDeltaX; yVolantGauche = corpsDeltaY + posBrasGaucheVolant; yDiff = yVolantGauche - lEpaule; lEpauleGaucheVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant)); alpha = yDiff / xVolant; beta = Math.acos(lEpauleGaucheVolant / (2 * lBras)); Angle1 = ((-(alpha + beta)) * 180) / 3.141593; Angle2 = ((2 * beta) * 180) / 3.141593; bustebras.brasgaucheplein._rotation = Angle1; bustebras.contourbrasgauche._rotation = Angle1; bustebras.contourbrasgauche.avantbras._rotation = Angle2; yVolantDroit = corpsDeltaY - posBrasDroitVolant; yDiff = yVolantDroit + lEpaule; lEpauleDroiteVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant)); alpha = yDiff / xVolant; beta = Math.acos(lEpauleGaucheVolant / (2 * lBras)); Angle1 = ((beta - alpha) * 180) / 3.141593; Angle2 = ((-2 * beta) * 180) / 3.141593; bustebras.brasdroitplein._rotation = Angle1; bustebras.contourbrasdroit._rotation = Angle1; bustebras.contourbrasdroit.avantbras._rotation = Angle2; } function init() { speedDecay = 0.9; incRotation = 0; maxWheelAngle = 55; incSpeed = 0; speed = 0; wheelRotation = 0; carLength = 138.8; incy = 0; incx = 0; _x = _root.vX; _y = _root.vY; _rotation = _root.vRot; rouedroite._rotation = wheelRotation; rouegauche._rotation = wheelRotation; gare = false; _root.gagnos._visible = false; reposBonhommeVolant = 20; rayonVolant = 8; posBrasGaucheVolant = 0; posBrasDroitVolant = 0; corpsDeltaX = 0; corpsDeltaY = 0; maxCorpsDeltaY = 4; corpsSpeedX = 0; maxCorpsDeltaX = 8; minCorpsDeltaX = -5; corpsDecay = 0.5; bustebras._x = _root.xCorps + corpsDeltaX; bustebras._y = _root.yCorps + corpsDeltaY; teteDeltaX = 0; teteDeltaY = 0; teteDecay = 0.5; maxTeteDeltaX = 10; minTeteDeltaX = -8; teteSpeedX = 0; tete._x = (_root.xTete + corpsDeltaX) + teteDeltaX; tete._y = (_root.yTete + corpsDeltaY) + teteDeltaY; bustebras._x = _root.xCorps; bustebras._y = _root.yCorps; lBras = 14; lEpaule = 10; _root.ombrevoiture._x = _x + 10; _root.ombrevoiture._y = _y + 10; _root.ombrevoiture._rotation = _rotation; _root.maskvoiture._x = _x; _root.maskvoiture._y = _y; _root.maskvoiture._rotation = _rotation; setBrasRotation(); tuturevertefeuxarr.gotoAndStop(1); chocs = 0; forceChocs = 0; score = 0; _root.caravane.init(); } function initReplayRec() { replayRecFrame = 0; replayPlayFrame = 0; replayRecEventsIndex = 0; replayPlayEventsIndex = 0; replayEvents = new Array(); replayPlay = false; _root.replayos.gotoAndStop(1); _root.repclign.stop(); _root.repclign._visible = false; } function side(v, po) { return((po.y * v.x) - (po.x * v.y)); } function inShape(p) { toreturn = true; oldPoint = {x:colShape[0].x, y:colShape[0].y}; localToGlobal(oldPoint); i = 0; while (i < 4) { newPoint = {x:colShape[i + 1].x, y:colShape[i + 1].y}; localToGlobal(newPoint); vShape = {x:newPoint.x - oldPoint.x, y:newPoint.y - oldPoint.y}; testPoint = {x:p.x - oldPoint.x, y:p.y - oldPoint.y}; if (side(vShape, testPoint) < 0) { toreturn = false; break; } oldPoint = newPoint; i++; } return(toreturn); } function hit(clip) { return(inShape({x:clip._x, y:clip._y}) || (_root.caravane.inShape({x:clip._x, y:clip._y}))); } function keyDownAction(t) { toreturn = false; if (t == 39) { if (incRotation != 5) { incRotation = 5; toreturn = true; } } else if (t == 37) { if (incRotation != -5) { incRotation = -5; toreturn = true; } } else if (t == 40) { if (incSpeed != -1) { incSpeed = -1; toreturn = true; } } else if (t == 38) { if (incSpeed != 1) { incSpeed = 1; toreturn = true; } } return(toreturn); } function keyUpAction(t) { if (t == 39) { if (incRotation > 0) { incRotation = 0; } } else if (t == 37) { if (incRotation < 0) { incRotation = 0; } } else if (t == 40) { if (incSpeed < 0) { incSpeed = 0; } } else if (t == 38) { if (incSpeed > 0) { incSpeed = 0; } } } init(); initReplayRec(); colShape = new Array(); colShape[0] = {x:-15, y:-30}; colShape[1] = {x:110, y:-30}; colShape[2] = {x:110, y:30}; colShape[3] = {x:-15, y:30}; colShape[4] = colShape[0]; } onClipEvent (keyDown) { if ((_root.timing == true) && (replayPlay == false)) { t = Key.getCode(); if (keyDownAction(t)) { replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:1, keycode:t}; replayRecEventsIndex = replayRecEventsIndex + 1; } } } onClipEvent (keyUp) { a = Key.getAscii(); if (a == 115) { if (((_root.timing == false) && (replayPlay == false)) && (_root.gagnos._visible == false)) { _root.clicStart(); } else if (_root.timing == true) { _root.clicStop(); } } else if ((_root.timing == true) && (replayPlay == false)) { t = Key.getCode(); keyUpAction(t); replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:0, keycode:t}; replayRecEventsIndex = replayRecEventsIndex + 1; } } onClipEvent (enterFrame) { if ((_root.timing == true) && (_root.paused == false)) { if (replayPlay) { currentFrameIsEvented = true; while (currentFrameIsEvented) { nextFrame = replayEvents[replayPlayEventsIndex].framenb; if (nextFrame == replayPlayFrame) { if (replayEvents[replayPlayEventsIndex].updown == 0) { keyUpAction(replayEvents[replayPlayEventsIndex].keycode); } else { keyDownAction(replayEvents[replayPlayEventsIndex].keycode); } replayPlayEventsIndex = replayPlayEventsIndex + 1; } currentFrameIsEvented = false; } replayPlayFrame = replayPlayFrame + 1; } memoX = _x; memoY = _y; memoRot = _rotation; _root.caravane.saveMemo(); oldRot = wheelRotation; oldSpeed = speed; oldCorpsSpeedX = corpsSpeedX; speed = speed + incSpeed; if (speed > maxSpeed) { speed = maxSpeed; } else if (speed < (-maxSpeed)) { speed = -maxSpeed; } if (incSpeed == 0) { speed = speed * speedDecay; tuturevertefeuxarr.gotoAndStop(1); } else { tuturevertefeuxarr.gotoAndStop(2); speed = speed + incSpeed; if (speed > maxSpeed) { speed = maxSpeed; } else if (speed < (-maxSpeed)) { speed = -maxSpeed; } } wheelRotation = wheelRotation + incRotation; if (wheelRotation > maxWheelAngle) { wheelRotation = maxWheelAngle; } else if (wheelRotation < (-maxWheelAngle)) { wheelRotation = -maxWheelAngle; } if (oldRot != wheelRotation) { rouedroite._rotation = wheelRotation; rouegauche._rotation = wheelRotation; } incx = Math.sin(wheelRotation * 0.017453) * speed; _rotation = (_rotation + (((incx / carLength) * 250) / 3.141593)); incy = Math.cos(wheelRotation * 0.017453) * speed; _y = (_y + (Math.sin((_rotation + 0) * 0.017453) * incy)); _x = (_x + (Math.cos((_rotation + 0) * 0.017453) * incy)); if (_y < 0) { _y = (_y + widthScene); _root.caravane.transMemoTracteur(0, widthScene); } else if (_y > widthScene) { _y = (_y - widthScene); _root.caravane.transMemoTracteur(0, -widthScene); } if (_x < 0) { _x = (_x + widthScene); _root.caravane.transMemoTracteur(widthScene, 0); } else if (_x > widthScene) { _x = (_x - widthScene); _root.caravane.transMemoTracteur(-widthScene, 0); } _root.caravane.compute(); A = hit(_root.palmhaut); B = hit(_root.palmbas); C = hit(_root.palmfond); angVoitureCaravane = Math.abs(_rotation - _root.caravane._rotation) % 360; if (angVoitureCaravane > 180) { angVoitureCaravane = 360 - angVoitureCaravane; } if (angVoitureCaravane > 75) { D = true; } else { D = false; } if (((A || (B)) || (C)) || (D)) { if (Math.abs(speed) > 7) { chocs = chocs + 1; forceChocs = forceChocs + Math.abs(speed); } _x = memoX; _y = memoY; _rotation = memoRot; _root.caravane.setMemo(); speed = 0; } else { gagne = _root.caravane.isParked(); if (((gagne == true) && (speed > -1)) && (speed < 1)) { gare = true; if (replayPlay) { _root.timing = false; replayPlay = false; _root.replayos.gotoAndPlay(2); } else { _root.gagnos._visible = true; _root.gagnos.gotoAndPlay(1); _root.elapsedTime = (Math.ceil(_root.elapsedTime) + 8) - random(16); score = (500000 / _root.elapsedTime) - forceChocs; _root.timing = false; _root.paused = false; } _root.playSurround(true); } } } } onClipEvent (load) { maxSpeed = 0; } onClipEvent (enterFrame) { if (Key.isDown(32)) { maxSpeed = 0; } } onClipEvent (enterFrame) { if (!Key.isDown(38)) { incSpeed = 0; } else if (_root.connected == false) { maxSpeed = 3; } else if (_root.connected == true) { maxSpeed = 3; } } onClipEvent (enterFrame) { if (this.hitTest(_root.palmfond._x, _root.palmfond._y, true)) { maxSpeed = 1; } } onClipEvent (enterFrame) { if (!_root.road.hitTest(this._x, this._y, true)) { _root.fault.gotoAndStop(_root.fault._currentframe + 1); } } onClipEvent (enterFrame) { if (Key.isDown(40)) { maxSpeed = 2; incSpeed = -2; } } onClipEvent (enterFrame) { if (this._x > 550) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } else if (this._x < 0) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } else if (this._y < 0) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } else if (this._y > 550) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 15
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 15
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 15
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 15
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 15
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 15
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 15
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 470 MovieClip "time" in Frame 15
onClipEvent (enterFrame) { if (_root.finnished.NX == true) { _root.time.gotoAndStop(_root.time._currentframe + 0); } else if (_root.stoptime == false) { _root.time.gotoAndStop(_root.time._currentframe + 1); } }
Instance of Symbol 411 MovieClip "ava" in Frame 15
onClipEvent (enterFrame) { this.drivertext.gotoAndStop(4); }
Instance of Symbol 472 MovieClip "speed" in Frame 15
onClipEvent (enterFrame) { if (_root.score < 0) { _root.score = (_root.score = 0); } }
Instance of Symbol 491 MovieClip "sounds" in Frame 15
onClipEvent (load) { stopAllSounds(); } onClipEvent (enterFrame) { if (Key.isDown(40)) { this.gotoAndStop(2); } else if (Key.isDown(38)) { this.gotoAndStop(3); } else if (Key.isDown(32)) { this.gotoAndStop(4); } else { this.gotoAndStop(1); } }
Frame 16
if (_root.lvls < 4) { _root.lvls = (Number_root.lvls = 4); }
Instance of Symbol 272 MovieClip in Frame 16
onClipEvent (enterFrame) { _root.gotoAndStop(_root._currentframe + 1); }
Frame 17
function getCoordPolaire(p) { dx = p.x; dy = p.y; d = Math.sqrt((dx * dx) + (dy * dy)); if (d == 0) { a = 0; } else { a = Math.acos(dx / d); if (dy < 0) { a = -a; } } return({x:p.x, y:p.y, a:a, d:d}); } function getAlphaNum(number) { toReturn = ""; while (number > 0) { unite = number % baseAlphaNum; if (unite < 10) { toReturn = String.fromCharCode(unite + 48) + toReturn; } else if (unite < 36) { toReturn = String.fromCharCode(unite + 55) + toReturn; } else { toReturn = String.fromCharCode(unite + 61) + toReturn; } var _local2 = (number - unite) / baseAlphaNum; } return(toReturn); } function getNumber(alphanum) { toReturn = 0; l = alphanum.length; i = 0; while (i < l) { unite = alphanum.charCodeAt(i); if ((unite >= 48) && (unite < 58)) { toReturn = ((toReturn * baseAlphaNum) + unite) - 48; } else if ((unite >= 65) && (unite < 91)) { toReturn = ((toReturn * baseAlphaNum) + unite) - 55; } else if ((unite >= 97) && (unite < 123)) { toReturn = ((toReturn * baseAlphaNum) + unite) - 61; } i++; } return(toReturn); } function playSurround(show) { if (show) { playback._visible = play_btn._visible; playback.gotoAndPlay(1); } else { playback._visible = false; } } function showButtons(vis) { pause_btn._visible = vis; play_btn._visible = vis; stop_btn._visible = vis; playback._visible = vis; } function clicStart() { if (!_root.timing) { menuder._visible = false; _root.paused = false; _root.timing = true; } } var vX = _root.voitureverte._x; var vY = _root.voitureverte._y; var vRot = _root.voitureverte._rotation; var xCorps = _root.voitureverte.bustebras._x; var yCorps = _root.voitureverte.bustebras._y; var xTete = _root.voitureverte.tete._x; var yTete = _root.voitureverte.tete._y; var frame = 0; var startFrame = 0; var baseAlphaNum = 62; var timing = false; _root.play_btn.onPress = function () { clicStart(); _root.time.play(); _root.play_btn.gotoAndPlay(51); _root.ava.play(); }; stop(); _root.two = false; stop();
Instance of Symbol 306 MovieClip in Frame 17
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 17
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 17
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 17
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 17
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 322 MovieClip in Frame 17
onClipEvent (enterFrame) { if (((_root.voitureverte.front.hitTest(this.front) or _root.voitureverte.box1.hitTest(this.front)) or _root.voitureverte.front.hitTest(this.back)) or _root.voitureverte.box1.hitTest(this.back)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.backhit.hitTest(this.front) or _root.caravane.backhit.hitTest(this.back)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 322 MovieClip in Frame 17
onClipEvent (enterFrame) { if (((_root.voitureverte.front.hitTest(this.front) or _root.voitureverte.box1.hitTest(this.front)) or _root.voitureverte.front.hitTest(this.back)) or _root.voitureverte.box1.hitTest(this.back)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.backhit.hitTest(this.front) or _root.caravane.backhit.hitTest(this.back)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 322 MovieClip in Frame 17
onClipEvent (enterFrame) { if (((_root.voitureverte.front.hitTest(this.front) or _root.voitureverte.box1.hitTest(this.front)) or _root.voitureverte.front.hitTest(this.back)) or _root.voitureverte.box1.hitTest(this.back)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.backhit.hitTest(this.front) or _root.caravane.backhit.hitTest(this.back)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 322 MovieClip in Frame 17
onClipEvent (enterFrame) { if (((_root.voitureverte.front.hitTest(this.front) or _root.voitureverte.box1.hitTest(this.front)) or _root.voitureverte.front.hitTest(this.back)) or _root.voitureverte.box1.hitTest(this.back)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.backhit.hitTest(this.front) or _root.caravane.backhit.hitTest(this.back)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 322 MovieClip in Frame 17
onClipEvent (enterFrame) { if (((_root.voitureverte.front.hitTest(this.front) or _root.voitureverte.box1.hitTest(this.front)) or _root.voitureverte.front.hitTest(this.back)) or _root.voitureverte.box1.hitTest(this.back)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.backhit.hitTest(this.front) or _root.caravane.backhit.hitTest(this.back)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 322 MovieClip in Frame 17
onClipEvent (enterFrame) { if (((_root.voitureverte.front.hitTest(this.front) or _root.voitureverte.box1.hitTest(this.front)) or _root.voitureverte.front.hitTest(this.back)) or _root.voitureverte.box1.hitTest(this.back)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.backhit.hitTest(this.front) or _root.caravane.backhit.hitTest(this.back)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 377 MovieClip "voitureverte" in Frame 17
onClipEvent (load) { function setBrasRotation() { xVolant = reposBonhommeVolant - corpsDeltaX; yVolantGauche = corpsDeltaY + posBrasGaucheVolant; yDiff = yVolantGauche - lEpaule; lEpauleGaucheVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant)); alpha = yDiff / xVolant; beta = Math.acos(lEpauleGaucheVolant / (2 * lBras)); Angle1 = ((-(alpha + beta)) * 180) / 3.141593; Angle2 = ((2 * beta) * 180) / 3.141593; bustebras.brasgaucheplein._rotation = Angle1; bustebras.contourbrasgauche._rotation = Angle1; bustebras.contourbrasgauche.avantbras._rotation = Angle2; yVolantDroit = corpsDeltaY - posBrasDroitVolant; yDiff = yVolantDroit + lEpaule; lEpauleDroiteVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant)); alpha = yDiff / xVolant; beta = Math.acos(lEpauleGaucheVolant / (2 * lBras)); Angle1 = ((beta - alpha) * 180) / 3.141593; Angle2 = ((-2 * beta) * 180) / 3.141593; bustebras.brasdroitplein._rotation = Angle1; bustebras.contourbrasdroit._rotation = Angle1; bustebras.contourbrasdroit.avantbras._rotation = Angle2; } function init() { speedDecay = 0.9; incRotation = 0; maxWheelAngle = 55; incSpeed = 0; speed = 0; wheelRotation = 0; carLength = 138.8; incy = 0; incx = 0; _x = _root.vX; _y = _root.vY; _rotation = _root.vRot; rouedroite._rotation = wheelRotation; rouegauche._rotation = wheelRotation; gare = false; _root.gagnos._visible = false; reposBonhommeVolant = 20; rayonVolant = 8; posBrasGaucheVolant = 0; posBrasDroitVolant = 0; corpsDeltaX = 0; corpsDeltaY = 0; maxCorpsDeltaY = 4; corpsSpeedX = 0; maxCorpsDeltaX = 8; minCorpsDeltaX = -5; corpsDecay = 0.5; bustebras._x = _root.xCorps + corpsDeltaX; bustebras._y = _root.yCorps + corpsDeltaY; teteDeltaX = 0; teteDeltaY = 0; teteDecay = 0.5; maxTeteDeltaX = 10; minTeteDeltaX = -8; teteSpeedX = 0; tete._x = (_root.xTete + corpsDeltaX) + teteDeltaX; tete._y = (_root.yTete + corpsDeltaY) + teteDeltaY; bustebras._x = _root.xCorps; bustebras._y = _root.yCorps; lBras = 14; lEpaule = 10; _root.ombrevoiture._x = _x + 10; _root.ombrevoiture._y = _y + 10; _root.ombrevoiture._rotation = _rotation; _root.maskvoiture._x = _x; _root.maskvoiture._y = _y; _root.maskvoiture._rotation = _rotation; setBrasRotation(); tuturevertefeuxarr.gotoAndStop(1); chocs = 0; forceChocs = 0; score = 0; _root.caravane.init(); } function initReplayRec() { replayRecFrame = 0; replayPlayFrame = 0; replayRecEventsIndex = 0; replayPlayEventsIndex = 0; replayEvents = new Array(); replayPlay = false; _root.replayos.gotoAndStop(1); _root.repclign.stop(); _root.repclign._visible = false; } function side(v, po) { return((po.y * v.x) - (po.x * v.y)); } function inShape(p) { toreturn = true; oldPoint = {x:colShape[0].x, y:colShape[0].y}; localToGlobal(oldPoint); i = 0; while (i < 4) { newPoint = {x:colShape[i + 1].x, y:colShape[i + 1].y}; localToGlobal(newPoint); vShape = {x:newPoint.x - oldPoint.x, y:newPoint.y - oldPoint.y}; testPoint = {x:p.x - oldPoint.x, y:p.y - oldPoint.y}; if (side(vShape, testPoint) < 0) { toreturn = false; break; } oldPoint = newPoint; i++; } return(toreturn); } function hit(clip) { return(inShape({x:clip._x, y:clip._y}) || (_root.caravane.inShape({x:clip._x, y:clip._y}))); } function keyDownAction(t) { toreturn = false; if (t == 39) { if (incRotation != 5) { incRotation = 5; toreturn = true; } } else if (t == 37) { if (incRotation != -5) { incRotation = -5; toreturn = true; } } else if (t == 40) { if (incSpeed != -1) { incSpeed = -1; toreturn = true; } } else if (t == 38) { if (incSpeed != 1) { incSpeed = 1; toreturn = true; } } return(toreturn); } function keyUpAction(t) { if (t == 39) { if (incRotation > 0) { incRotation = 0; } } else if (t == 37) { if (incRotation < 0) { incRotation = 0; } } else if (t == 40) { if (incSpeed < 0) { incSpeed = 0; } } else if (t == 38) { if (incSpeed > 0) { incSpeed = 0; } } } init(); initReplayRec(); colShape = new Array(); colShape[0] = {x:-15, y:-30}; colShape[1] = {x:110, y:-30}; colShape[2] = {x:110, y:30}; colShape[3] = {x:-15, y:30}; colShape[4] = colShape[0]; } onClipEvent (keyDown) { if ((_root.timing == true) && (replayPlay == false)) { t = Key.getCode(); if (keyDownAction(t)) { replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:1, keycode:t}; replayRecEventsIndex = replayRecEventsIndex + 1; } } } onClipEvent (keyUp) { a = Key.getAscii(); if (a == 115) { if (((_root.timing == false) && (replayPlay == false)) && (_root.gagnos._visible == false)) { _root.clicStart(); } else if (_root.timing == true) { _root.clicStop(); } } else if ((_root.timing == true) && (replayPlay == false)) { t = Key.getCode(); keyUpAction(t); replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:0, keycode:t}; replayRecEventsIndex = replayRecEventsIndex + 1; } } onClipEvent (enterFrame) { if ((_root.timing == true) && (_root.paused == false)) { if (replayPlay) { currentFrameIsEvented = true; while (currentFrameIsEvented) { nextFrame = replayEvents[replayPlayEventsIndex].framenb; if (nextFrame == replayPlayFrame) { if (replayEvents[replayPlayEventsIndex].updown == 0) { keyUpAction(replayEvents[replayPlayEventsIndex].keycode); } else { keyDownAction(replayEvents[replayPlayEventsIndex].keycode); } replayPlayEventsIndex = replayPlayEventsIndex + 1; } currentFrameIsEvented = false; } replayPlayFrame = replayPlayFrame + 1; } memoX = _x; memoY = _y; memoRot = _rotation; _root.caravane.saveMemo(); oldRot = wheelRotation; oldSpeed = speed; oldCorpsSpeedX = corpsSpeedX; speed = speed + incSpeed; if (speed > maxSpeed) { speed = maxSpeed; } else if (speed < (-maxSpeed)) { speed = -maxSpeed; } if (incSpeed == 0) { speed = speed * speedDecay; tuturevertefeuxarr.gotoAndStop(1); } else { tuturevertefeuxarr.gotoAndStop(2); speed = speed + incSpeed; if (speed > maxSpeed) { speed = maxSpeed; } else if (speed < (-maxSpeed)) { speed = -maxSpeed; } } wheelRotation = wheelRotation + incRotation; if (wheelRotation > maxWheelAngle) { wheelRotation = maxWheelAngle; } else if (wheelRotation < (-maxWheelAngle)) { wheelRotation = -maxWheelAngle; } if (oldRot != wheelRotation) { rouedroite._rotation = wheelRotation; rouegauche._rotation = wheelRotation; } incx = Math.sin(wheelRotation * 0.017453) * speed; _rotation = (_rotation + (((incx / carLength) * 250) / 3.141593)); incy = Math.cos(wheelRotation * 0.017453) * speed; _y = (_y + (Math.sin((_rotation + 0) * 0.017453) * incy)); _x = (_x + (Math.cos((_rotation + 0) * 0.017453) * incy)); if (_y < 0) { _y = (_y + widthScene); _root.caravane.transMemoTracteur(0, widthScene); } else if (_y > widthScene) { _y = (_y - widthScene); _root.caravane.transMemoTracteur(0, -widthScene); } if (_x < 0) { _x = (_x + widthScene); _root.caravane.transMemoTracteur(widthScene, 0); } else if (_x > widthScene) { _x = (_x - widthScene); _root.caravane.transMemoTracteur(-widthScene, 0); } _root.caravane.compute(); A = hit(_root.palmhaut); B = hit(_root.palmbas); C = hit(_root.palmfond); angVoitureCaravane = Math.abs(_rotation - _root.caravane._rotation) % 360; if (angVoitureCaravane > 180) { angVoitureCaravane = 360 - angVoitureCaravane; } if (angVoitureCaravane > 75) { D = true; } else { D = false; } if (((A || (B)) || (C)) || (D)) { if (Math.abs(speed) > 7) { chocs = chocs + 1; forceChocs = forceChocs + Math.abs(speed); } _x = memoX; _y = memoY; _rotation = memoRot; _root.caravane.setMemo(); speed = 0; } else { gagne = _root.caravane.isParked(); if (((gagne == true) && (speed > -1)) && (speed < 1)) { gare = true; if (replayPlay) { _root.timing = false; replayPlay = false; _root.replayos.gotoAndPlay(2); } else { _root.gagnos._visible = true; _root.gagnos.gotoAndPlay(1); _root.elapsedTime = (Math.ceil(_root.elapsedTime) + 8) - random(16); score = (500000 / _root.elapsedTime) - forceChocs; _root.timing = false; _root.paused = false; } _root.playSurround(true); } } } } onClipEvent (load) { maxSpeed = 0; } onClipEvent (enterFrame) { if (Key.isDown(32)) { maxSpeed = 0; } } onClipEvent (enterFrame) { if (!Key.isDown(38)) { incSpeed = 0; } else if (_root.connected == false) { maxSpeed = 3; } else if (_root.connected == true) { maxSpeed = 3; } } onClipEvent (enterFrame) { if (this.hitTest(_root.palmfond._x, _root.palmfond._y, true)) { maxSpeed = 1; } } onClipEvent (enterFrame) { if (!_root.road.hitTest(this._x, this._y, true)) { _root.fault.gotoAndStop(_root.fault._currentframe + 1); } } onClipEvent (enterFrame) { if (Key.isDown(40)) { maxSpeed = 2; incSpeed = -2; } } onClipEvent (enterFrame) { if (this._x > 550) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } else if (this._x < 0) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } else if (this._y < 0) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } else if (this._y > 550) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 535 MovieClip in Frame 17
onClipEvent (enterFrame) { if (this.hitTest(_root.voitureverte._x, _root.voitureverte._y, true)) { _root.voitureverte.gotoAndStop(2); _root.finnished.failed.whyfailed.textwhy = "you crashed"; } }
Instance of Symbol 306 MovieClip in Frame 17
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 17
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 17
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 17
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 17
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 17
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 17
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 17
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 17
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 17
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 17
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 17
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 17
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 17
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 17
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 17
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 17
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 17
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 17
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 17
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 17
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 17
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 17
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 17
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 17
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 17
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 17
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 537 MovieClip in Frame 17
onClipEvent (enterFrame) { if (_root.caravane.backhit.hitTest(this)) { _root.finnished.gotoAndStop(2); _root.voitureverte.maxSpeed = 0; } }
Instance of Symbol 470 MovieClip "time" in Frame 17
onClipEvent (enterFrame) { if (_root.finnished.NX == true) { _root.time.gotoAndStop(_root.time._currentframe + 0); } else if (_root.stoptime == false) { _root.time.gotoAndStop(_root.time._currentframe + 1); } }
Instance of Symbol 411 MovieClip "ava" in Frame 17
onClipEvent (enterFrame) { this.drivertext.gotoAndStop(5); }
Instance of Symbol 472 MovieClip "speed" in Frame 17
onClipEvent (enterFrame) { if (_root.score < 0) { _root.score = (_root.score = 0); } }
Instance of Symbol 491 MovieClip "sounds" in Frame 17
onClipEvent (load) { stopAllSounds(); } onClipEvent (enterFrame) { if (Key.isDown(40)) { this.gotoAndStop(2); } else if (Key.isDown(38)) { this.gotoAndStop(3); } else if (Key.isDown(32)) { this.gotoAndStop(4); } else { this.gotoAndStop(1); } }
Frame 18
if (_root.lvls < 5) { _root.lvls = (Number_root.lvls = 5); }
Instance of Symbol 272 MovieClip in Frame 18
onClipEvent (enterFrame) { _root.gotoAndStop(_root._currentframe + 1); }
Frame 19
function getCoordPolaire(p) { dx = p.x; dy = p.y; d = Math.sqrt((dx * dx) + (dy * dy)); if (d == 0) { a = 0; } else { a = Math.acos(dx / d); if (dy < 0) { a = -a; } } return({x:p.x, y:p.y, a:a, d:d}); } function getAlphaNum(number) { toReturn = ""; while (number > 0) { unite = number % baseAlphaNum; if (unite < 10) { toReturn = String.fromCharCode(unite + 48) + toReturn; } else if (unite < 36) { toReturn = String.fromCharCode(unite + 55) + toReturn; } else { toReturn = String.fromCharCode(unite + 61) + toReturn; } var _local2 = (number - unite) / baseAlphaNum; } return(toReturn); } function getNumber(alphanum) { toReturn = 0; l = alphanum.length; i = 0; while (i < l) { unite = alphanum.charCodeAt(i); if ((unite >= 48) && (unite < 58)) { toReturn = ((toReturn * baseAlphaNum) + unite) - 48; } else if ((unite >= 65) && (unite < 91)) { toReturn = ((toReturn * baseAlphaNum) + unite) - 55; } else if ((unite >= 97) && (unite < 123)) { toReturn = ((toReturn * baseAlphaNum) + unite) - 61; } i++; } return(toReturn); } function playSurround(show) { if (show) { playback._visible = play_btn._visible; playback.gotoAndPlay(1); } else { playback._visible = false; } } function showButtons(vis) { pause_btn._visible = vis; play_btn._visible = vis; stop_btn._visible = vis; playback._visible = vis; } function clicStart() { if (!_root.timing) { menuder._visible = false; _root.paused = false; _root.timing = true; } } var vX = _root.voitureverte._x; var vY = _root.voitureverte._y; var vRot = _root.voitureverte._rotation; var xCorps = _root.voitureverte.bustebras._x; var yCorps = _root.voitureverte.bustebras._y; var xTete = _root.voitureverte.tete._x; var yTete = _root.voitureverte.tete._y; var frame = 0; var startFrame = 0; var baseAlphaNum = 62; var timing = false; _root.play_btn.onPress = function () { clicStart(); _root.play_btn.gotoAndPlay(51); _root.time.play(); _root.ava.play(); }; stop(); _root.two = false;
Instance of Symbol 306 MovieClip in Frame 19
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 19
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 19
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 318 MovieClip "car1" in Frame 19
onClipEvent (enterFrame) { if (((_root.voitureverte.front.hitTest(this.front) or _root.voitureverte.box1.hitTest(this.front)) or _root.voitureverte.front.hitTest(this.back)) or _root.voitureverte.box1.hitTest(this.back)) { _root.move = true; this._y = this._y + 8; _root.voitureverte.gotoAndStop(2); } else if (_root.caravane.fronthit.hitTest(this.skinn)) { _root.move = true; this._y = this._y + 8; _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { this._y = this._y - 8; } onClipEvent (enterFrame) { if (this._y < -100) { this._y = 600; } } onClipEvent (enterFrame) { if (_root.T.cant.hitTest(this.mask3)) { this._y = this._y + 8; } else if (_root.car2.hitTest(this.mask3)) { this._y = this._y + 8; } else if (_root.lost == true) { this._y = this._y + 8; } else if (_root.T2.cant.hitTest(this.mask3)) { this._y = this._y + 8; } else { this._y = this._y - 8; } }
Instance of Symbol 318 MovieClip "car2" in Frame 19
onClipEvent (enterFrame) { if (((_root.voitureverte.front.hitTest(this.front) or _root.voitureverte.box1.hitTest(this.front)) or _root.voitureverte.front.hitTest(this.back)) or _root.voitureverte.box1.hitTest(this.back)) { _root.move = true; this._y = this._y + 6; _root.voitureverte.gotoAndStop(2); } else if (_root.caravane.fronthit.hitTest(this.skinn)) { _root.move = true; this._y = this._y + 8; _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { this._y = this._y - 7; } onClipEvent (enterFrame) { if (this._y < -100) { this._y = 600; } } onClipEvent (enterFrame) { if (_root.T.cant.hitTest(this.mask3)) { this._y = this._y + 7; } else if (_root.car1.hitTest(this.mask3)) { this._y = this._y + 7; } else if (_root.lost == true) { this._y = this._y + 7; } else if (_root.T2.cant.hitTest(this.mask3)) { this._y = this._y + 7; } else { this._y = this._y - 6; } }
Instance of Symbol 318 MovieClip "car3" in Frame 19
onClipEvent (enterFrame) { if (((_root.voitureverte.front.hitTest(this.front) or _root.voitureverte.box1.hitTest(this.front)) or _root.voitureverte.front.hitTest(this.back)) or _root.voitureverte.box1.hitTest(this.back)) { _root.move = true; _root.voitureverte.gotoAndStop(2); this._y = this._y - 6; } else if (_root.caravane.fronthit.hitTest(this.skinn)) { _root.move = true; this._y = this._y + 8; _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { this._y = this._y + 6; } onClipEvent (enterFrame) { if (this._y > 600) { this._y = -100; } } onClipEvent (enterFrame) { if (_root.T.cant.hitTest(this.mask3)) { this._y = this._y - 6; } else if (_root.car1.hitTest(this.mask3)) { this._y = this._y - 6; } else if (_root.lost == true) { this._y = this._y - 6; } else if (_root.T2.cant.hitTest(this.mask3)) { this._y = this._y - 6; } else { this._y = this._y + 6; } }
Instance of Symbol 306 MovieClip in Frame 19
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this.visible = false; }
Instance of Symbol 306 MovieClip in Frame 19
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this.visible = false; }
Instance of Symbol 306 MovieClip in Frame 19
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this.visible = false; }
Instance of Symbol 306 MovieClip in Frame 19
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this.visible = false; }
Instance of Symbol 377 MovieClip "voitureverte" in Frame 19
onClipEvent (load) { function setBrasRotation() { xVolant = reposBonhommeVolant - corpsDeltaX; yVolantGauche = corpsDeltaY + posBrasGaucheVolant; yDiff = yVolantGauche - lEpaule; lEpauleGaucheVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant)); alpha = yDiff / xVolant; beta = Math.acos(lEpauleGaucheVolant / (2 * lBras)); Angle1 = ((-(alpha + beta)) * 180) / 3.141593; Angle2 = ((2 * beta) * 180) / 3.141593; bustebras.brasgaucheplein._rotation = Angle1; bustebras.contourbrasgauche._rotation = Angle1; bustebras.contourbrasgauche.avantbras._rotation = Angle2; yVolantDroit = corpsDeltaY - posBrasDroitVolant; yDiff = yVolantDroit + lEpaule; lEpauleDroiteVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant)); alpha = yDiff / xVolant; beta = Math.acos(lEpauleGaucheVolant / (2 * lBras)); Angle1 = ((beta - alpha) * 180) / 3.141593; Angle2 = ((-2 * beta) * 180) / 3.141593; bustebras.brasdroitplein._rotation = Angle1; bustebras.contourbrasdroit._rotation = Angle1; bustebras.contourbrasdroit.avantbras._rotation = Angle2; } function init() { speedDecay = 0.9; incRotation = 0; maxWheelAngle = 55; incSpeed = 0; speed = 0; wheelRotation = 0; carLength = 138.8; incy = 0; incx = 0; _x = _root.vX; _y = _root.vY; _rotation = _root.vRot; rouedroite._rotation = wheelRotation; rouegauche._rotation = wheelRotation; gare = false; _root.gagnos._visible = false; reposBonhommeVolant = 20; rayonVolant = 8; posBrasGaucheVolant = 0; posBrasDroitVolant = 0; corpsDeltaX = 0; corpsDeltaY = 0; maxCorpsDeltaY = 4; corpsSpeedX = 0; maxCorpsDeltaX = 8; minCorpsDeltaX = -5; corpsDecay = 0.5; bustebras._x = _root.xCorps + corpsDeltaX; bustebras._y = _root.yCorps + corpsDeltaY; teteDeltaX = 0; teteDeltaY = 0; teteDecay = 0.5; maxTeteDeltaX = 10; minTeteDeltaX = -8; teteSpeedX = 0; tete._x = (_root.xTete + corpsDeltaX) + teteDeltaX; tete._y = (_root.yTete + corpsDeltaY) + teteDeltaY; bustebras._x = _root.xCorps; bustebras._y = _root.yCorps; lBras = 14; lEpaule = 10; _root.ombrevoiture._x = _x + 10; _root.ombrevoiture._y = _y + 10; _root.ombrevoiture._rotation = _rotation; _root.maskvoiture._x = _x; _root.maskvoiture._y = _y; _root.maskvoiture._rotation = _rotation; setBrasRotation(); tuturevertefeuxarr.gotoAndStop(1); chocs = 0; forceChocs = 0; score = 0; _root.caravane.init(); } function initReplayRec() { replayRecFrame = 0; replayPlayFrame = 0; replayRecEventsIndex = 0; replayPlayEventsIndex = 0; replayEvents = new Array(); replayPlay = false; _root.replayos.gotoAndStop(1); _root.repclign.stop(); _root.repclign._visible = false; } function side(v, po) { return((po.y * v.x) - (po.x * v.y)); } function inShape(p) { toreturn = true; oldPoint = {x:colShape[0].x, y:colShape[0].y}; localToGlobal(oldPoint); i = 0; while (i < 4) { newPoint = {x:colShape[i + 1].x, y:colShape[i + 1].y}; localToGlobal(newPoint); vShape = {x:newPoint.x - oldPoint.x, y:newPoint.y - oldPoint.y}; testPoint = {x:p.x - oldPoint.x, y:p.y - oldPoint.y}; if (side(vShape, testPoint) < 0) { toreturn = false; break; } oldPoint = newPoint; i++; } return(toreturn); } function hit(clip) { return(inShape({x:clip._x, y:clip._y}) || (_root.caravane.inShape({x:clip._x, y:clip._y}))); } function keyDownAction(t) { toreturn = false; if (t == 39) { if (incRotation != 5) { incRotation = 5; toreturn = true; } } else if (t == 37) { if (incRotation != -5) { incRotation = -5; toreturn = true; } } else if (t == 40) { if (incSpeed != -1) { incSpeed = -1; toreturn = true; } } else if (t == 38) { if (incSpeed != 1) { incSpeed = 1; toreturn = true; } } return(toreturn); } function keyUpAction(t) { if (t == 39) { if (incRotation > 0) { incRotation = 0; } } else if (t == 37) { if (incRotation < 0) { incRotation = 0; } } else if (t == 40) { if (incSpeed < 0) { incSpeed = 0; } } else if (t == 38) { if (incSpeed > 0) { incSpeed = 0; } } } init(); initReplayRec(); colShape = new Array(); colShape[0] = {x:-15, y:-30}; colShape[1] = {x:110, y:-30}; colShape[2] = {x:110, y:30}; colShape[3] = {x:-15, y:30}; colShape[4] = colShape[0]; } onClipEvent (keyDown) { if ((_root.timing == true) && (replayPlay == false)) { t = Key.getCode(); if (keyDownAction(t)) { replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:1, keycode:t}; replayRecEventsIndex = replayRecEventsIndex + 1; } } } onClipEvent (keyUp) { a = Key.getAscii(); if (a == 115) { if (((_root.timing == false) && (replayPlay == false)) && (_root.gagnos._visible == false)) { _root.clicStart(); } else if (_root.timing == true) { _root.clicStop(); } } else if ((_root.timing == true) && (replayPlay == false)) { t = Key.getCode(); keyUpAction(t); replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:0, keycode:t}; replayRecEventsIndex = replayRecEventsIndex + 1; } } onClipEvent (enterFrame) { if ((_root.timing == true) && (_root.paused == false)) { if (replayPlay) { currentFrameIsEvented = true; while (currentFrameIsEvented) { nextFrame = replayEvents[replayPlayEventsIndex].framenb; if (nextFrame == replayPlayFrame) { if (replayEvents[replayPlayEventsIndex].updown == 0) { keyUpAction(replayEvents[replayPlayEventsIndex].keycode); } else { keyDownAction(replayEvents[replayPlayEventsIndex].keycode); } replayPlayEventsIndex = replayPlayEventsIndex + 1; } currentFrameIsEvented = false; } replayPlayFrame = replayPlayFrame + 1; } memoX = _x; memoY = _y; memoRot = _rotation; _root.caravane.saveMemo(); oldRot = wheelRotation; oldSpeed = speed; oldCorpsSpeedX = corpsSpeedX; speed = speed + incSpeed; if (speed > maxSpeed) { speed = maxSpeed; } else if (speed < (-maxSpeed)) { speed = -maxSpeed; } if (incSpeed == 0) { speed = speed * speedDecay; tuturevertefeuxarr.gotoAndStop(1); } else { tuturevertefeuxarr.gotoAndStop(2); speed = speed + incSpeed; if (speed > maxSpeed) { speed = maxSpeed; } else if (speed < (-maxSpeed)) { speed = -maxSpeed; } } wheelRotation = wheelRotation + incRotation; if (wheelRotation > maxWheelAngle) { wheelRotation = maxWheelAngle; } else if (wheelRotation < (-maxWheelAngle)) { wheelRotation = -maxWheelAngle; } if (oldRot != wheelRotation) { rouedroite._rotation = wheelRotation; rouegauche._rotation = wheelRotation; } incx = Math.sin(wheelRotation * 0.017453) * speed; _rotation = (_rotation + (((incx / carLength) * 250) / 3.141593)); incy = Math.cos(wheelRotation * 0.017453) * speed; _y = (_y + (Math.sin((_rotation + 0) * 0.017453) * incy)); _x = (_x + (Math.cos((_rotation + 0) * 0.017453) * incy)); if (_y < 0) { _y = (_y + widthScene); _root.caravane.transMemoTracteur(0, widthScene); } else if (_y > widthScene) { _y = (_y - widthScene); _root.caravane.transMemoTracteur(0, -widthScene); } if (_x < 0) { _x = (_x + widthScene); _root.caravane.transMemoTracteur(widthScene, 0); } else if (_x > widthScene) { _x = (_x - widthScene); _root.caravane.transMemoTracteur(-widthScene, 0); } _root.caravane.compute(); A = hit(_root.palmhaut); B = hit(_root.palmbas); C = hit(_root.palmfond); angVoitureCaravane = Math.abs(_rotation - _root.caravane._rotation) % 360; if (angVoitureCaravane > 180) { angVoitureCaravane = 360 - angVoitureCaravane; } if (angVoitureCaravane > 75) { D = true; } else { D = false; } if (((A || (B)) || (C)) || (D)) { if (Math.abs(speed) > 7) { chocs = chocs + 1; forceChocs = forceChocs + Math.abs(speed); } _x = memoX; _y = memoY; _rotation = memoRot; _root.caravane.setMemo(); speed = 0; } else { gagne = _root.caravane.isParked(); if (((gagne == true) && (speed > -1)) && (speed < 1)) { gare = true; if (replayPlay) { _root.timing = false; replayPlay = false; _root.replayos.gotoAndPlay(2); } else { _root.gagnos._visible = true; _root.gagnos.gotoAndPlay(1); _root.elapsedTime = (Math.ceil(_root.elapsedTime) + 8) - random(16); score = (500000 / _root.elapsedTime) - forceChocs; _root.timing = false; _root.paused = false; } _root.playSurround(true); } } } } onClipEvent (load) { maxSpeed = 0; } onClipEvent (enterFrame) { if (Key.isDown(32)) { maxSpeed = 0; } } onClipEvent (enterFrame) { if (!Key.isDown(38)) { incSpeed = 0; } else if (_root.connected == false) { maxSpeed = 3; } else if (_root.connected == true) { maxSpeed = 3; } } onClipEvent (enterFrame) { if (this.hitTest(_root.palmfond._x, _root.palmfond._y, true)) { maxSpeed = 1; } } onClipEvent (enterFrame) { if (!_root.road.hitTest(this._x, this._y, true)) { _root.fault.gotoAndStop(_root.fault._currentframe + 1); } } onClipEvent (enterFrame) { if (Key.isDown(40)) { maxSpeed = 2; incSpeed = -2; } } onClipEvent (enterFrame) { if (this._x > 550) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } else if (this._x < 0) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } else if (this._y < 0) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } else if (this._y > 550) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (((((_root.palmfond.boxx.hitTest(this.front) or _root.palmfond.boxxx.hitTest(this.front)) or _root.palmfond.boxxxx.hitTest(this.front)) or _root.palmfond.boxx.hitTest(this.box1)) or _root.palmfond.boxxx.hitTest(this.box1)) or _root.palmfond.boxxxx.hitTest(this.box1)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 537 MovieClip in Frame 19
onClipEvent (enterFrame) { if (_root.caravane.backhit.hitTest(this)) { _root.finnished.gotoAndStop(2); _root.voitureverte.maxSpeed = 0; } }
Instance of Symbol 304 MovieClip "box2" in Frame 19
onClipEvent (load) { this._visible = false; }
Instance of Symbol 557 MovieClip "palmfond" in Frame 19
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this.mask)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (((((_root.voitureverte.front.hitTest(this.boxx) or _root.voitureverte.front.hitTest(this.boxxx)) or _root.voitureverte.front.hitTest(this.boxxxx)) or _root.voitureverte.back.hitTest(this.boxx)) or _root.voitureverte.back.hitTest(this.boxxx)) or _root.voitureverte.back.hitTest(this.boxxxx)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 19
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 19
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 19
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 19
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 19
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 19
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 19
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 19
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 19
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 19
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 19
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 19
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 19
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 19
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 19
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 19
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 19
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 19
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 561 MovieClip in Frame 19
onClipEvent (enterFrame) { if (this.hitTest(_root.voitureverte._x, _root.voitureverte._y, true)) { _root.voitureverte.gotoAndStop(2); _root.finnished.failed.whyfailed.textwhy = "you crashed"; } } onClipEvent (enterFrame) { if ((_root.caravane.boxx.hitTest(this.front) or _root.caravane.boxxx.hitTest(this.front)) or _root.caravane.boxxxx.hitTest(this.front)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 411 MovieClip "ava" in Frame 19
onClipEvent (enterFrame) { this.drivertext.gotoAndStop(9); }
Instance of Symbol 472 MovieClip "speed" in Frame 19
onClipEvent (enterFrame) { if (_root.score < 0) { _root.score = (_root.score = 0); } }
Instance of Symbol 491 MovieClip "sounds" in Frame 19
onClipEvent (load) { stopAllSounds(); } onClipEvent (enterFrame) { if (Key.isDown(40)) { this.gotoAndStop(2); } else if (Key.isDown(38)) { this.gotoAndStop(3); } else if (Key.isDown(32)) { this.gotoAndStop(4); } else { this.gotoAndStop(1); } }
Frame 20
_root.two = true;
Instance of Symbol 557 MovieClip "caravane" in Frame 20
onClipEvent (load) { function getNewCoord(vx, vy, vax, vay, vbx, vby) { return({a:((vy * vbx) - (vx * vby)) / ((vay * vbx) - (vax * vby)), b:((vy * vax) - (vx * vay)) / ((vby * vax) - (vbx * vay))}); } function init() { _rotation = 82; setMemoTracteur(); r = 130; } function transMemoTracteur(x, y) { old_tracteur_x = old_tracteur_x + x; old_tracteur_y = old_tracteur_y + y; } function setMemoTracteur() { old_tracteur = {x:-28, y:0}; _root.voitureverte.localToGlobal(old_tracteur); old_tracteur_x = old_tracteur.x; old_tracteur_y = old_tracteur.y; _x = old_tracteur_x; _y = old_tracteur_y; _root.ombrecaravane._x = _x + 25; _root.ombrecaravane._y = _y + 25; _root.ombrecaravane._rotation = _rotation; _root.maskcaravane._x = _x; _root.maskcaravane._y = _y; _root.maskcaravane._rotation = _rotation; } function setMemo() { _x = memoX; _y = memoY; _rotation = memoRot; old_tracteur_x = memo_old_tracteur_x; old_tracteur_y = memo_old_tracteur_y; _root.ombrecaravane._x = _x + 25; _root.ombrecaravane._y = _y + 25; _root.ombrecaravane._rotation = _rotation; _root.maskcaravane._x = _x; _root.maskcaravane._y = _y; _root.maskcaravane._rotation = _rotation; } function saveMemo() { memoX = _x; memoY = _y; memoRot = _rotation; memo_old_tracteur_x = old_tracteur_x; memo_old_tracteur_y = old_tracteur_y; } function side(v, po) { return((po.y * v.x) - (po.x * v.y)); } function inShape(p) { toreturn = true; oldPoint = {x:colShape[0].x, y:colShape[0].y}; localToGlobal(oldPoint); i = 0; while (i < 4) { newPoint = {x:colShape[i + 1].x, y:colShape[i + 1].y}; localToGlobal(newPoint); vShape = {x:newPoint.x - oldPoint.x, y:newPoint.y - oldPoint.y}; testPoint = {x:p.x - oldPoint.x, y:p.y - oldPoint.y}; if (side(vShape, testPoint) < 0) { toreturn = false; break; } oldPoint = newPoint; i++; } return(toreturn); } function isParked() { toreturn = true; i = 0; while (i < 4) { p = {x:colShape[i].x, y:colShape[i].y}; localToGlobal(p); if ((((p.x > _root.parking._x) && (p.y > _root.parking._y)) && (p.x < (_root.parking._x + _root.parking._width))) && (p.y < (_root.parking._y + _root.parking._height))) { } else { toreturn = false; } i++; } if (toreturn) { rot = _rotation % 360; if (rot < 0) { rot = rot + 360; } } return(toreturn); } function compute() { new_tracteur = {x:-28, y:0}; _root.voitureverte.localToGlobal(new_tracteur); new_tracteur_x = new_tracteur.x; new_tracteur_y = new_tracteur.y; new_tracteur_rotation = _rotation; centre = {x:-r, y:0}; localToGlobal(centre); toutdroit_x = old_tracteur_x - centre.x; toutdroit_y = old_tracteur_y - centre.y; deptracteur_x = new_tracteur_x - old_tracteur_x; deptracteur_y = new_tracteur_y - old_tracteur_y; deptracteur = getNewCoord(deptracteur_x, deptracteur_y, toutdroit_x, toutdroit_y, -toutdroit_y, toutdroit_x); new_tracteur_rotation = new_tracteur_rotation + ((deptracteur.b * 180) / 3.141593); _x = new_tracteur.x; _y = new_tracteur.y; _rotation = new_tracteur_rotation; old_tracteur_x = _x; old_tracteur_y = _y; _root.ombrecaravane._x = _x + 25; _root.ombrecaravane._y = _y + 25; _root.ombrecaravane._rotation = _rotation; _root.maskcaravane._x = _x; _root.maskcaravane._y = _y; _root.maskcaravane._rotation = _rotation; } init(); colShape = new Array(); colShape[0] = {x:-200, y:-60}; colShape[1] = {x:-50, y:-45}; colShape[2] = {x:-50, y:45}; colShape[3] = {x:-200, y:60}; colShape[4] = colShape[0]; }
Frame 21
if (_root.lvls < 9) { _root.lvls = (Number_root.lvls = 8); }
Instance of Symbol 272 MovieClip in Frame 21
onClipEvent (enterFrame) { _root.gotoAndStop(_root._currentframe + 1); }
Frame 22
function getCoordPolaire(p) { dx = p.x; dy = p.y; d = Math.sqrt((dx * dx) + (dy * dy)); if (d == 0) { a = 0; } else { a = Math.acos(dx / d); if (dy < 0) { a = -a; } } return({x:p.x, y:p.y, a:a, d:d}); } function getAlphaNum(number) { toReturn = ""; while (number > 0) { unite = number % baseAlphaNum; if (unite < 10) { toReturn = String.fromCharCode(unite + 48) + toReturn; } else if (unite < 36) { toReturn = String.fromCharCode(unite + 55) + toReturn; } else { toReturn = String.fromCharCode(unite + 61) + toReturn; } var _local2 = (number - unite) / baseAlphaNum; } return(toReturn); } function getNumber(alphanum) { toReturn = 0; l = alphanum.length; i = 0; while (i < l) { unite = alphanum.charCodeAt(i); if ((unite >= 48) && (unite < 58)) { toReturn = ((toReturn * baseAlphaNum) + unite) - 48; } else if ((unite >= 65) && (unite < 91)) { toReturn = ((toReturn * baseAlphaNum) + unite) - 55; } else if ((unite >= 97) && (unite < 123)) { toReturn = ((toReturn * baseAlphaNum) + unite) - 61; } i++; } return(toReturn); } function playSurround(show) { if (show) { playback._visible = play_btn._visible; playback.gotoAndPlay(1); } else { playback._visible = false; } } function showButtons(vis) { pause_btn._visible = vis; play_btn._visible = vis; stop_btn._visible = vis; playback._visible = vis; } function clicStart() { if (!_root.timing) { menuder._visible = false; _root.paused = false; _root.timing = true; } } var vX = _root.voitureverte._x; var vY = _root.voitureverte._y; var vRot = _root.voitureverte._rotation; var xCorps = _root.voitureverte.bustebras._x; var yCorps = _root.voitureverte.bustebras._y; var xTete = _root.voitureverte.tete._x; var yTete = _root.voitureverte.tete._y; var frame = 0; var startFrame = 0; var baseAlphaNum = 62; var timing = false; _root.play_btn.onPress = function () { clicStart(); _root.time.play(); _root.play_btn.gotoAndPlay(51); _root.ava.play(); }; stop(); _root.two = false;
Instance of Symbol 306 MovieClip in Frame 22
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 22
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 22
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 22
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 22
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 22
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 22
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 22
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 22
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 22
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 22
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 22
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 22
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 377 MovieClip "voitureverte" in Frame 22
onClipEvent (load) { function setBrasRotation() { xVolant = reposBonhommeVolant - corpsDeltaX; yVolantGauche = corpsDeltaY + posBrasGaucheVolant; yDiff = yVolantGauche - lEpaule; lEpauleGaucheVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant)); alpha = yDiff / xVolant; beta = Math.acos(lEpauleGaucheVolant / (2 * lBras)); Angle1 = ((-(alpha + beta)) * 180) / 3.141593; Angle2 = ((2 * beta) * 180) / 3.141593; bustebras.brasgaucheplein._rotation = Angle1; bustebras.contourbrasgauche._rotation = Angle1; bustebras.contourbrasgauche.avantbras._rotation = Angle2; yVolantDroit = corpsDeltaY - posBrasDroitVolant; yDiff = yVolantDroit + lEpaule; lEpauleDroiteVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant)); alpha = yDiff / xVolant; beta = Math.acos(lEpauleGaucheVolant / (2 * lBras)); Angle1 = ((beta - alpha) * 180) / 3.141593; Angle2 = ((-2 * beta) * 180) / 3.141593; bustebras.brasdroitplein._rotation = Angle1; bustebras.contourbrasdroit._rotation = Angle1; bustebras.contourbrasdroit.avantbras._rotation = Angle2; } function init() { speedDecay = 0.9; incRotation = 0; maxWheelAngle = 55; incSpeed = 0; speed = 0; wheelRotation = 0; carLength = 138.8; incy = 0; incx = 0; _x = _root.vX; _y = _root.vY; _rotation = _root.vRot; rouedroite._rotation = wheelRotation; rouegauche._rotation = wheelRotation; gare = false; _root.gagnos._visible = false; reposBonhommeVolant = 20; rayonVolant = 8; posBrasGaucheVolant = 0; posBrasDroitVolant = 0; corpsDeltaX = 0; corpsDeltaY = 0; maxCorpsDeltaY = 4; corpsSpeedX = 0; maxCorpsDeltaX = 8; minCorpsDeltaX = -5; corpsDecay = 0.5; bustebras._x = _root.xCorps + corpsDeltaX; bustebras._y = _root.yCorps + corpsDeltaY; teteDeltaX = 0; teteDeltaY = 0; teteDecay = 0.5; maxTeteDeltaX = 10; minTeteDeltaX = -8; teteSpeedX = 0; tete._x = (_root.xTete + corpsDeltaX) + teteDeltaX; tete._y = (_root.yTete + corpsDeltaY) + teteDeltaY; bustebras._x = _root.xCorps; bustebras._y = _root.yCorps; lBras = 14; lEpaule = 10; _root.ombrevoiture._x = _x + 10; _root.ombrevoiture._y = _y + 10; _root.ombrevoiture._rotation = _rotation; _root.maskvoiture._x = _x; _root.maskvoiture._y = _y; _root.maskvoiture._rotation = _rotation; setBrasRotation(); tuturevertefeuxarr.gotoAndStop(1); chocs = 0; forceChocs = 0; score = 0; _root.caravane.init(); } function initReplayRec() { replayRecFrame = 0; replayPlayFrame = 0; replayRecEventsIndex = 0; replayPlayEventsIndex = 0; replayEvents = new Array(); replayPlay = false; _root.replayos.gotoAndStop(1); _root.repclign.stop(); _root.repclign._visible = false; } function side(v, po) { return((po.y * v.x) - (po.x * v.y)); } function inShape(p) { toreturn = true; oldPoint = {x:colShape[0].x, y:colShape[0].y}; localToGlobal(oldPoint); i = 0; while (i < 4) { newPoint = {x:colShape[i + 1].x, y:colShape[i + 1].y}; localToGlobal(newPoint); vShape = {x:newPoint.x - oldPoint.x, y:newPoint.y - oldPoint.y}; testPoint = {x:p.x - oldPoint.x, y:p.y - oldPoint.y}; if (side(vShape, testPoint) < 0) { toreturn = false; break; } oldPoint = newPoint; i++; } return(toreturn); } function hit(clip) { return(inShape({x:clip._x, y:clip._y}) || (_root.caravane.inShape({x:clip._x, y:clip._y}))); } function keyDownAction(t) { toreturn = false; if (t == 39) { if (incRotation != 5) { incRotation = 5; toreturn = true; } } else if (t == 37) { if (incRotation != -5) { incRotation = -5; toreturn = true; } } else if (t == 40) { if (incSpeed != -1) { incSpeed = -1; toreturn = true; } } else if (t == 38) { if (incSpeed != 1) { incSpeed = 1; toreturn = true; } } return(toreturn); } function keyUpAction(t) { if (t == 39) { if (incRotation > 0) { incRotation = 0; } } else if (t == 37) { if (incRotation < 0) { incRotation = 0; } } else if (t == 40) { if (incSpeed < 0) { incSpeed = 0; } } else if (t == 38) { if (incSpeed > 0) { incSpeed = 0; } } } init(); initReplayRec(); colShape = new Array(); colShape[0] = {x:-15, y:-30}; colShape[1] = {x:110, y:-30}; colShape[2] = {x:110, y:30}; colShape[3] = {x:-15, y:30}; colShape[4] = colShape[0]; } onClipEvent (keyDown) { if ((_root.timing == true) && (replayPlay == false)) { t = Key.getCode(); if (keyDownAction(t)) { replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:1, keycode:t}; replayRecEventsIndex = replayRecEventsIndex + 1; } } } onClipEvent (keyUp) { a = Key.getAscii(); if (a == 115) { if (((_root.timing == false) && (replayPlay == false)) && (_root.gagnos._visible == false)) { _root.clicStart(); } else if (_root.timing == true) { _root.clicStop(); } } else if ((_root.timing == true) && (replayPlay == false)) { t = Key.getCode(); keyUpAction(t); replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:0, keycode:t}; replayRecEventsIndex = replayRecEventsIndex + 1; } } onClipEvent (enterFrame) { if ((_root.timing == true) && (_root.paused == false)) { if (replayPlay) { currentFrameIsEvented = true; while (currentFrameIsEvented) { nextFrame = replayEvents[replayPlayEventsIndex].framenb; if (nextFrame == replayPlayFrame) { if (replayEvents[replayPlayEventsIndex].updown == 0) { keyUpAction(replayEvents[replayPlayEventsIndex].keycode); } else { keyDownAction(replayEvents[replayPlayEventsIndex].keycode); } replayPlayEventsIndex = replayPlayEventsIndex + 1; } currentFrameIsEvented = false; } replayPlayFrame = replayPlayFrame + 1; } memoX = _x; memoY = _y; memoRot = _rotation; _root.caravane.saveMemo(); oldRot = wheelRotation; oldSpeed = speed; oldCorpsSpeedX = corpsSpeedX; speed = speed + incSpeed; if (speed > maxSpeed) { speed = maxSpeed; } else if (speed < (-maxSpeed)) { speed = -maxSpeed; } if (incSpeed == 0) { speed = speed * speedDecay; tuturevertefeuxarr.gotoAndStop(1); } else { tuturevertefeuxarr.gotoAndStop(2); speed = speed + incSpeed; if (speed > maxSpeed) { speed = maxSpeed; } else if (speed < (-maxSpeed)) { speed = -maxSpeed; } } wheelRotation = wheelRotation + incRotation; if (wheelRotation > maxWheelAngle) { wheelRotation = maxWheelAngle; } else if (wheelRotation < (-maxWheelAngle)) { wheelRotation = -maxWheelAngle; } if (oldRot != wheelRotation) { rouedroite._rotation = wheelRotation; rouegauche._rotation = wheelRotation; } incx = Math.sin(wheelRotation * 0.017453) * speed; _rotation = (_rotation + (((incx / carLength) * 250) / 3.141593)); incy = Math.cos(wheelRotation * 0.017453) * speed; _y = (_y + (Math.sin((_rotation + 0) * 0.017453) * incy)); _x = (_x + (Math.cos((_rotation + 0) * 0.017453) * incy)); if (_y < 0) { _y = (_y + widthScene); _root.caravane.transMemoTracteur(0, widthScene); } else if (_y > widthScene) { _y = (_y - widthScene); _root.caravane.transMemoTracteur(0, -widthScene); } if (_x < 0) { _x = (_x + widthScene); _root.caravane.transMemoTracteur(widthScene, 0); } else if (_x > widthScene) { _x = (_x - widthScene); _root.caravane.transMemoTracteur(-widthScene, 0); } _root.caravane.compute(); A = hit(_root.palmhaut); B = hit(_root.palmbas); C = hit(_root.palmfond); angVoitureCaravane = Math.abs(_rotation - _root.caravane._rotation) % 360; if (angVoitureCaravane > 180) { angVoitureCaravane = 360 - angVoitureCaravane; } if (angVoitureCaravane > 75) { D = true; } else { D = false; } if (((A || (B)) || (C)) || (D)) { if (Math.abs(speed) > 7) { chocs = chocs + 1; forceChocs = forceChocs + Math.abs(speed); } _x = memoX; _y = memoY; _rotation = memoRot; _root.caravane.setMemo(); speed = 0; } else { gagne = _root.caravane.isParked(); if (((gagne == true) && (speed > -1)) && (speed < 1)) { gare = true; if (replayPlay) { _root.timing = false; replayPlay = false; _root.replayos.gotoAndPlay(2); } else { _root.gagnos._visible = true; _root.gagnos.gotoAndPlay(1); _root.elapsedTime = (Math.ceil(_root.elapsedTime) + 8) - random(16); score = (500000 / _root.elapsedTime) - forceChocs; _root.timing = false; _root.paused = false; } _root.playSurround(true); } } } } onClipEvent (load) { maxSpeed = 0; } onClipEvent (enterFrame) { if (Key.isDown(32)) { maxSpeed = 0; } } onClipEvent (enterFrame) { if (!Key.isDown(38)) { incSpeed = 0; } else if (_root.connected == false) { maxSpeed = 3; } else if (_root.connected == true) { maxSpeed = 3; } } onClipEvent (enterFrame) { if (this.hitTest(_root.palmfond._x, _root.palmfond._y, true)) { maxSpeed = 1; } } onClipEvent (enterFrame) { if (!_root.road.hitTest(this._x, this._y, true)) { _root.fault.gotoAndStop(_root.fault._currentframe + 1); } } onClipEvent (enterFrame) { if (Key.isDown(40)) { maxSpeed = 2; incSpeed = -2; } } onClipEvent (enterFrame) { if (this._x > 550) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } else if (this._x < 0) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } else if (this._y < 0) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } else if (this._y > 550) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 22
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 22
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 22
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 22
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 22
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 22
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 22
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 22
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 22
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 537 MovieClip in Frame 22
onClipEvent (enterFrame) { if (_root.caravane.backhit.hitTest(this)) { _root.finnished.gotoAndStop(2); _root.voitureverte.maxSpeed = 0; } }
Instance of Symbol 557 MovieClip "caravane" in Frame 22
onClipEvent (load) { function getNewCoord(vx, vy, vax, vay, vbx, vby) { return({a:((vy * vbx) - (vx * vby)) / ((vay * vbx) - (vax * vby)), b:((vy * vax) - (vx * vay)) / ((vby * vax) - (vbx * vay))}); } function init() { _rotation = 260; setMemoTracteur(); r = 130; } function transMemoTracteur(x, y) { old_tracteur_x = old_tracteur_x + x; old_tracteur_y = old_tracteur_y + y; } function setMemoTracteur() { old_tracteur = {x:-28, y:0}; _root.voitureverte.localToGlobal(old_tracteur); old_tracteur_x = old_tracteur.x; old_tracteur_y = old_tracteur.y; _x = old_tracteur_x; _y = old_tracteur_y; _root.ombrecaravane._x = _x + 25; _root.ombrecaravane._y = _y + 25; _root.ombrecaravane._rotation = _rotation; _root.maskcaravane._x = _x; _root.maskcaravane._y = _y; _root.maskcaravane._rotation = _rotation; } function setMemo() { _x = memoX; _y = memoY; _rotation = memoRot; old_tracteur_x = memo_old_tracteur_x; old_tracteur_y = memo_old_tracteur_y; _root.ombrecaravane._x = _x + 25; _root.ombrecaravane._y = _y + 25; _root.ombrecaravane._rotation = _rotation; _root.maskcaravane._x = _x; _root.maskcaravane._y = _y; _root.maskcaravane._rotation = _rotation; } function saveMemo() { memoX = _x; memoY = _y; memoRot = _rotation; memo_old_tracteur_x = old_tracteur_x; memo_old_tracteur_y = old_tracteur_y; } function side(v, po) { return((po.y * v.x) - (po.x * v.y)); } function inShape(p) { toreturn = true; oldPoint = {x:colShape[0].x, y:colShape[0].y}; localToGlobal(oldPoint); i = 0; while (i < 4) { newPoint = {x:colShape[i + 1].x, y:colShape[i + 1].y}; localToGlobal(newPoint); vShape = {x:newPoint.x - oldPoint.x, y:newPoint.y - oldPoint.y}; testPoint = {x:p.x - oldPoint.x, y:p.y - oldPoint.y}; if (side(vShape, testPoint) < 0) { toreturn = false; break; } oldPoint = newPoint; i++; } return(toreturn); } function isParked() { toreturn = true; i = 0; while (i < 4) { p = {x:colShape[i].x, y:colShape[i].y}; localToGlobal(p); if ((((p.x > _root.parking._x) && (p.y > _root.parking._y)) && (p.x < (_root.parking._x + _root.parking._width))) && (p.y < (_root.parking._y + _root.parking._height))) { } else { toreturn = false; } i++; } if (toreturn) { rot = _rotation % 360; if (rot < 0) { rot = rot + 360; } } return(toreturn); } function compute() { new_tracteur = {x:-28, y:0}; _root.voitureverte.localToGlobal(new_tracteur); new_tracteur_x = new_tracteur.x; new_tracteur_y = new_tracteur.y; new_tracteur_rotation = _rotation; centre = {x:-r, y:0}; localToGlobal(centre); toutdroit_x = old_tracteur_x - centre.x; toutdroit_y = old_tracteur_y - centre.y; deptracteur_x = new_tracteur_x - old_tracteur_x; deptracteur_y = new_tracteur_y - old_tracteur_y; deptracteur = getNewCoord(deptracteur_x, deptracteur_y, toutdroit_x, toutdroit_y, -toutdroit_y, toutdroit_x); new_tracteur_rotation = new_tracteur_rotation + ((deptracteur.b * 180) / 3.141593); _x = new_tracteur.x; _y = new_tracteur.y; _rotation = new_tracteur_rotation; old_tracteur_x = _x; old_tracteur_y = _y; _root.ombrecaravane._x = _x + 25; _root.ombrecaravane._y = _y + 25; _root.ombrecaravane._rotation = _rotation; _root.maskcaravane._x = _x; _root.maskcaravane._y = _y; _root.maskcaravane._rotation = _rotation; } init(); colShape = new Array(); colShape[0] = {x:-200, y:-60}; colShape[1] = {x:-50, y:-45}; colShape[2] = {x:-50, y:45}; colShape[3] = {x:-200, y:60}; colShape[4] = colShape[0]; }
Instance of Symbol 575 MovieClip in Frame 22
onClipEvent (enterFrame) { if (this.hitTest(_root.voitureverte._x, _root.voitureverte._y, true)) { _root.voitureverte.gotoAndStop(2); _root.finnished.failed.whyfailed.textwhy = "you crashed"; } } onClipEvent (enterFrame) { if ((_root.caravane.boxx.hitTest(this.skinn) or _root.caravane.boxxx.hitTest(this.skinn)) or _root.caravane.boxxxx.hitTest(this.skinn)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 22
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 22
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 22
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 22
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 22
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 22
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 22
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 22
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 22
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 22
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 22
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 22
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 22
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 22
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 22
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 22
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 22
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 22
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 22
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 22
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 22
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 22
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 411 MovieClip "ava" in Frame 22
onClipEvent (enterFrame) { this.drivertext.gotoAndStop(6); }
Instance of Symbol 472 MovieClip "speed" in Frame 22
onClipEvent (enterFrame) { if (_root.score < 0) { _root.score = (_root.score = 0); } }
Instance of Symbol 491 MovieClip "sounds" in Frame 22
onClipEvent (load) { stopAllSounds(); } onClipEvent (enterFrame) { if (Key.isDown(40)) { this.gotoAndStop(2); } else if (Key.isDown(38)) { this.gotoAndStop(3); } else if (Key.isDown(32)) { this.gotoAndStop(4); } else { this.gotoAndStop(1); } }
Frame 23
if (_root.lvls < 9) { _root.lvls = (Number_root.lvls = 8); }
Instance of Symbol 272 MovieClip in Frame 23
onClipEvent (enterFrame) { _root.gotoAndStop(_root._currentframe + 1); }
Frame 24
function getCoordPolaire(p) { dx = p.x; dy = p.y; d = Math.sqrt((dx * dx) + (dy * dy)); if (d == 0) { a = 0; } else { a = Math.acos(dx / d); if (dy < 0) { a = -a; } } return({x:p.x, y:p.y, a:a, d:d}); } function getAlphaNum(number) { toReturn = ""; while (number > 0) { unite = number % baseAlphaNum; if (unite < 10) { toReturn = String.fromCharCode(unite + 48) + toReturn; } else if (unite < 36) { toReturn = String.fromCharCode(unite + 55) + toReturn; } else { toReturn = String.fromCharCode(unite + 61) + toReturn; } var _local2 = (number - unite) / baseAlphaNum; } return(toReturn); } function getNumber(alphanum) { toReturn = 0; l = alphanum.length; i = 0; while (i < l) { unite = alphanum.charCodeAt(i); if ((unite >= 48) && (unite < 58)) { toReturn = ((toReturn * baseAlphaNum) + unite) - 48; } else if ((unite >= 65) && (unite < 91)) { toReturn = ((toReturn * baseAlphaNum) + unite) - 55; } else if ((unite >= 97) && (unite < 123)) { toReturn = ((toReturn * baseAlphaNum) + unite) - 61; } i++; } return(toReturn); } function playSurround(show) { if (show) { playback._visible = play_btn._visible; playback.gotoAndPlay(1); } else { playback._visible = false; } } function showButtons(vis) { pause_btn._visible = vis; play_btn._visible = vis; stop_btn._visible = vis; playback._visible = vis; } function clicStart() { if (!_root.timing) { menuder._visible = false; _root.paused = false; _root.timing = true; } } var vX = _root.voitureverte._x; var vY = _root.voitureverte._y; var vRot = _root.voitureverte._rotation; var xCorps = _root.voitureverte.bustebras._x; var yCorps = _root.voitureverte.bustebras._y; var xTete = _root.voitureverte.tete._x; var yTete = _root.voitureverte.tete._y; var frame = 0; var startFrame = 0; var baseAlphaNum = 62; var timing = false; _root.play_btn.onPress = function () { clicStart(); _root.time.play(); _root.play_btn.gotoAndPlay(51); _root.ava.play(); _root.cargo.play(); }; stop(); _root.two = false;
Instance of Symbol 306 MovieClip in Frame 24
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 24
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 514 MovieClip in Frame 24
onClipEvent (enterFrame) { if (this.hitTest(_root.voitureverte._x, _root.voitureverte._y, true)) { _root.voitureverte.gotoAndStop(2); _root.finnished.failed.whyfailed.textwhy = "you crashed"; } }
Instance of Symbol 514 MovieClip in Frame 24
onClipEvent (enterFrame) { if (this.hitTest(_root.voitureverte._x, _root.voitureverte._y, true)) { _root.voitureverte.gotoAndStop(2); _root.finnished.failed.whyfailed.textwhy = "you crashed"; } }
Instance of Symbol 306 MovieClip in Frame 24
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 24
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 24
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 24
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 24
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 24
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 24
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 24
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 24
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 24
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 24
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 24
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 24
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 24
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 24
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 24
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 322 MovieClip in Frame 24
onClipEvent (enterFrame) { if (((_root.voitureverte.front.hitTest(this.front) or _root.voitureverte.box1.hitTest(this.front)) or _root.voitureverte.front.hitTest(this.back)) or _root.voitureverte.box1.hitTest(this.back)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.backhit.hitTest(this.front) or _root.caravane.backhit.hitTest(this.back)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 581 MovieClip "cargo" in Frame 24
onClipEvent (enterFrame) { if (_root.lost == true) { this.stop(); } }
Instance of Symbol 377 MovieClip "voitureverte" in Frame 24
onClipEvent (load) { function setBrasRotation() { xVolant = reposBonhommeVolant - corpsDeltaX; yVolantGauche = corpsDeltaY + posBrasGaucheVolant; yDiff = yVolantGauche - lEpaule; lEpauleGaucheVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant)); alpha = yDiff / xVolant; beta = Math.acos(lEpauleGaucheVolant / (2 * lBras)); Angle1 = ((-(alpha + beta)) * 180) / 3.141593; Angle2 = ((2 * beta) * 180) / 3.141593; bustebras.brasgaucheplein._rotation = Angle1; bustebras.contourbrasgauche._rotation = Angle1; bustebras.contourbrasgauche.avantbras._rotation = Angle2; yVolantDroit = corpsDeltaY - posBrasDroitVolant; yDiff = yVolantDroit + lEpaule; lEpauleDroiteVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant)); alpha = yDiff / xVolant; beta = Math.acos(lEpauleGaucheVolant / (2 * lBras)); Angle1 = ((beta - alpha) * 180) / 3.141593; Angle2 = ((-2 * beta) * 180) / 3.141593; bustebras.brasdroitplein._rotation = Angle1; bustebras.contourbrasdroit._rotation = Angle1; bustebras.contourbrasdroit.avantbras._rotation = Angle2; } function init() { speedDecay = 0.9; incRotation = 0; maxWheelAngle = 55; incSpeed = 0; speed = 0; wheelRotation = 0; carLength = 138.8; incy = 0; incx = 0; _x = _root.vX; _y = _root.vY; _rotation = _root.vRot; rouedroite._rotation = wheelRotation; rouegauche._rotation = wheelRotation; gare = false; _root.gagnos._visible = false; reposBonhommeVolant = 20; rayonVolant = 8; posBrasGaucheVolant = 0; posBrasDroitVolant = 0; corpsDeltaX = 0; corpsDeltaY = 0; maxCorpsDeltaY = 4; corpsSpeedX = 0; maxCorpsDeltaX = 8; minCorpsDeltaX = -5; corpsDecay = 0.5; bustebras._x = _root.xCorps + corpsDeltaX; bustebras._y = _root.yCorps + corpsDeltaY; teteDeltaX = 0; teteDeltaY = 0; teteDecay = 0.5; maxTeteDeltaX = 10; minTeteDeltaX = -8; teteSpeedX = 0; tete._x = (_root.xTete + corpsDeltaX) + teteDeltaX; tete._y = (_root.yTete + corpsDeltaY) + teteDeltaY; bustebras._x = _root.xCorps; bustebras._y = _root.yCorps; lBras = 14; lEpaule = 10; _root.ombrevoiture._x = _x + 10; _root.ombrevoiture._y = _y + 10; _root.ombrevoiture._rotation = _rotation; _root.maskvoiture._x = _x; _root.maskvoiture._y = _y; _root.maskvoiture._rotation = _rotation; setBrasRotation(); tuturevertefeuxarr.gotoAndStop(1); chocs = 0; forceChocs = 0; score = 0; _root.caravane.init(); } function initReplayRec() { replayRecFrame = 0; replayPlayFrame = 0; replayRecEventsIndex = 0; replayPlayEventsIndex = 0; replayEvents = new Array(); replayPlay = false; _root.replayos.gotoAndStop(1); _root.repclign.stop(); _root.repclign._visible = false; } function side(v, po) { return((po.y * v.x) - (po.x * v.y)); } function inShape(p) { toreturn = true; oldPoint = {x:colShape[0].x, y:colShape[0].y}; localToGlobal(oldPoint); i = 0; while (i < 4) { newPoint = {x:colShape[i + 1].x, y:colShape[i + 1].y}; localToGlobal(newPoint); vShape = {x:newPoint.x - oldPoint.x, y:newPoint.y - oldPoint.y}; testPoint = {x:p.x - oldPoint.x, y:p.y - oldPoint.y}; if (side(vShape, testPoint) < 0) { toreturn = false; break; } oldPoint = newPoint; i++; } return(toreturn); } function hit(clip) { return(inShape({x:clip._x, y:clip._y}) || (_root.caravane.inShape({x:clip._x, y:clip._y}))); } function keyDownAction(t) { toreturn = false; if (t == 39) { if (incRotation != 5) { incRotation = 5; toreturn = true; } } else if (t == 37) { if (incRotation != -5) { incRotation = -5; toreturn = true; } } else if (t == 40) { if (incSpeed != -1) { incSpeed = -1; toreturn = true; } } else if (t == 38) { if (incSpeed != 1) { incSpeed = 1; toreturn = true; } } return(toreturn); } function keyUpAction(t) { if (t == 39) { if (incRotation > 0) { incRotation = 0; } } else if (t == 37) { if (incRotation < 0) { incRotation = 0; } } else if (t == 40) { if (incSpeed < 0) { incSpeed = 0; } } else if (t == 38) { if (incSpeed > 0) { incSpeed = 0; } } } init(); initReplayRec(); colShape = new Array(); colShape[0] = {x:-15, y:-30}; colShape[1] = {x:110, y:-30}; colShape[2] = {x:110, y:30}; colShape[3] = {x:-15, y:30}; colShape[4] = colShape[0]; } onClipEvent (keyDown) { if ((_root.timing == true) && (replayPlay == false)) { t = Key.getCode(); if (keyDownAction(t)) { replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:1, keycode:t}; replayRecEventsIndex = replayRecEventsIndex + 1; } } } onClipEvent (keyUp) { a = Key.getAscii(); if (a == 115) { if (((_root.timing == false) && (replayPlay == false)) && (_root.gagnos._visible == false)) { _root.clicStart(); } else if (_root.timing == true) { _root.clicStop(); } } else if ((_root.timing == true) && (replayPlay == false)) { t = Key.getCode(); keyUpAction(t); replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:0, keycode:t}; replayRecEventsIndex = replayRecEventsIndex + 1; } } onClipEvent (enterFrame) { if ((_root.timing == true) && (_root.paused == false)) { if (replayPlay) { currentFrameIsEvented = true; while (currentFrameIsEvented) { nextFrame = replayEvents[replayPlayEventsIndex].framenb; if (nextFrame == replayPlayFrame) { if (replayEvents[replayPlayEventsIndex].updown == 0) { keyUpAction(replayEvents[replayPlayEventsIndex].keycode); } else { keyDownAction(replayEvents[replayPlayEventsIndex].keycode); } replayPlayEventsIndex = replayPlayEventsIndex + 1; } currentFrameIsEvented = false; } replayPlayFrame = replayPlayFrame + 1; } memoX = _x; memoY = _y; memoRot = _rotation; _root.caravane.saveMemo(); oldRot = wheelRotation; oldSpeed = speed; oldCorpsSpeedX = corpsSpeedX; speed = speed + incSpeed; if (speed > maxSpeed) { speed = maxSpeed; } else if (speed < (-maxSpeed)) { speed = -maxSpeed; } if (incSpeed == 0) { speed = speed * speedDecay; tuturevertefeuxarr.gotoAndStop(1); } else { tuturevertefeuxarr.gotoAndStop(2); speed = speed + incSpeed; if (speed > maxSpeed) { speed = maxSpeed; } else if (speed < (-maxSpeed)) { speed = -maxSpeed; } } wheelRotation = wheelRotation + incRotation; if (wheelRotation > maxWheelAngle) { wheelRotation = maxWheelAngle; } else if (wheelRotation < (-maxWheelAngle)) { wheelRotation = -maxWheelAngle; } if (oldRot != wheelRotation) { rouedroite._rotation = wheelRotation; rouegauche._rotation = wheelRotation; } incx = Math.sin(wheelRotation * 0.017453) * speed; _rotation = (_rotation + (((incx / carLength) * 250) / 3.141593)); incy = Math.cos(wheelRotation * 0.017453) * speed; _y = (_y + (Math.sin((_rotation + 0) * 0.017453) * incy)); _x = (_x + (Math.cos((_rotation + 0) * 0.017453) * incy)); if (_y < 0) { _y = (_y + widthScene); _root.caravane.transMemoTracteur(0, widthScene); } else if (_y > widthScene) { _y = (_y - widthScene); _root.caravane.transMemoTracteur(0, -widthScene); } if (_x < 0) { _x = (_x + widthScene); _root.caravane.transMemoTracteur(widthScene, 0); } else if (_x > widthScene) { _x = (_x - widthScene); _root.caravane.transMemoTracteur(-widthScene, 0); } _root.caravane.compute(); A = hit(_root.palmhaut); B = hit(_root.palmbas); C = hit(_root.palmfond); angVoitureCaravane = Math.abs(_rotation - _root.caravane._rotation) % 360; if (angVoitureCaravane > 180) { angVoitureCaravane = 360 - angVoitureCaravane; } if (angVoitureCaravane > 75) { D = true; } else { D = false; } if (((A || (B)) || (C)) || (D)) { if (Math.abs(speed) > 7) { chocs = chocs + 1; forceChocs = forceChocs + Math.abs(speed); } _x = memoX; _y = memoY; _rotation = memoRot; _root.caravane.setMemo(); speed = 0; } else { gagne = _root.caravane.isParked(); if (((gagne == true) && (speed > -1)) && (speed < 1)) { gare = true; if (replayPlay) { _root.timing = false; replayPlay = false; _root.replayos.gotoAndPlay(2); } else { _root.gagnos._visible = true; _root.gagnos.gotoAndPlay(1); _root.elapsedTime = (Math.ceil(_root.elapsedTime) + 8) - random(16); score = (500000 / _root.elapsedTime) - forceChocs; _root.timing = false; _root.paused = false; } _root.playSurround(true); } } } } onClipEvent (load) { maxSpeed = 0; } onClipEvent (enterFrame) { if (Key.isDown(32)) { maxSpeed = 0; } } onClipEvent (enterFrame) { if (!Key.isDown(38)) { incSpeed = 0; } else if (_root.connected == false) { maxSpeed = 3; } else if (_root.connected == true) { maxSpeed = 3; } } onClipEvent (enterFrame) { if (this.hitTest(_root.palmfond._x, _root.palmfond._y, true)) { maxSpeed = 1; } } onClipEvent (enterFrame) { if (!_root.road.hitTest(this._x, this._y, true)) { _root.fault.gotoAndStop(_root.fault._currentframe + 1); } } onClipEvent (enterFrame) { if (Key.isDown(40)) { maxSpeed = 2; incSpeed = -2; } } onClipEvent (enterFrame) { if (this._x > 550) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } else if (this._x < 0) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } else if (this._y < 0) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } else if (this._y > 550) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 537 MovieClip in Frame 24
onClipEvent (enterFrame) { if (_root.caravane.backhit.hitTest(this)) { _root.finnished.gotoAndStop(2); _root.voitureverte.maxSpeed = 0; } }
Instance of Symbol 557 MovieClip "caravane" in Frame 24
onClipEvent (load) { function getNewCoord(vx, vy, vax, vay, vbx, vby) { return({a:((vy * vbx) - (vx * vby)) / ((vay * vbx) - (vax * vby)), b:((vy * vax) - (vx * vay)) / ((vby * vax) - (vbx * vay))}); } function init() { _rotation = 180; setMemoTracteur(); r = 130; } function transMemoTracteur(x, y) { old_tracteur_x = old_tracteur_x + x; old_tracteur_y = old_tracteur_y + y; } function setMemoTracteur() { old_tracteur = {x:-28, y:0}; _root.voitureverte.localToGlobal(old_tracteur); old_tracteur_x = old_tracteur.x; old_tracteur_y = old_tracteur.y; _x = old_tracteur_x; _y = old_tracteur_y; _root.ombrecaravane._x = _x + 25; _root.ombrecaravane._y = _y + 25; _root.ombrecaravane._rotation = _rotation; _root.maskcaravane._x = _x; _root.maskcaravane._y = _y; _root.maskcaravane._rotation = _rotation; } function setMemo() { _x = memoX; _y = memoY; _rotation = memoRot; old_tracteur_x = memo_old_tracteur_x; old_tracteur_y = memo_old_tracteur_y; _root.ombrecaravane._x = _x + 25; _root.ombrecaravane._y = _y + 25; _root.ombrecaravane._rotation = _rotation; _root.maskcaravane._x = _x; _root.maskcaravane._y = _y; _root.maskcaravane._rotation = _rotation; } function saveMemo() { memoX = _x; memoY = _y; memoRot = _rotation; memo_old_tracteur_x = old_tracteur_x; memo_old_tracteur_y = old_tracteur_y; } function side(v, po) { return((po.y * v.x) - (po.x * v.y)); } function inShape(p) { toreturn = true; oldPoint = {x:colShape[0].x, y:colShape[0].y}; localToGlobal(oldPoint); i = 0; while (i < 4) { newPoint = {x:colShape[i + 1].x, y:colShape[i + 1].y}; localToGlobal(newPoint); vShape = {x:newPoint.x - oldPoint.x, y:newPoint.y - oldPoint.y}; testPoint = {x:p.x - oldPoint.x, y:p.y - oldPoint.y}; if (side(vShape, testPoint) < 0) { toreturn = false; break; } oldPoint = newPoint; i++; } return(toreturn); } function isParked() { toreturn = true; i = 0; while (i < 4) { p = {x:colShape[i].x, y:colShape[i].y}; localToGlobal(p); if ((((p.x > _root.parking._x) && (p.y > _root.parking._y)) && (p.x < (_root.parking._x + _root.parking._width))) && (p.y < (_root.parking._y + _root.parking._height))) { } else { toreturn = false; } i++; } if (toreturn) { rot = _rotation % 360; if (rot < 0) { rot = rot + 360; } } return(toreturn); } function compute() { new_tracteur = {x:-28, y:0}; _root.voitureverte.localToGlobal(new_tracteur); new_tracteur_x = new_tracteur.x; new_tracteur_y = new_tracteur.y; new_tracteur_rotation = _rotation; centre = {x:-r, y:0}; localToGlobal(centre); toutdroit_x = old_tracteur_x - centre.x; toutdroit_y = old_tracteur_y - centre.y; deptracteur_x = new_tracteur_x - old_tracteur_x; deptracteur_y = new_tracteur_y - old_tracteur_y; deptracteur = getNewCoord(deptracteur_x, deptracteur_y, toutdroit_x, toutdroit_y, -toutdroit_y, toutdroit_x); new_tracteur_rotation = new_tracteur_rotation + ((deptracteur.b * 180) / 3.141593); _x = new_tracteur.x; _y = new_tracteur.y; _rotation = new_tracteur_rotation; old_tracteur_x = _x; old_tracteur_y = _y; _root.ombrecaravane._x = _x + 25; _root.ombrecaravane._y = _y + 25; _root.ombrecaravane._rotation = _rotation; _root.maskcaravane._x = _x; _root.maskcaravane._y = _y; _root.maskcaravane._rotation = _rotation; } init(); colShape = new Array(); colShape[0] = {x:-200, y:-60}; colShape[1] = {x:-50, y:-45}; colShape[2] = {x:-50, y:45}; colShape[3] = {x:-200, y:60}; colShape[4] = colShape[0]; }
Instance of Symbol 306 MovieClip in Frame 24
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 24
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 24
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 24
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 24
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 24
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 411 MovieClip "ava" in Frame 24
onClipEvent (enterFrame) { this.drivertext.gotoAndStop(7); }
Instance of Symbol 472 MovieClip "speed" in Frame 24
onClipEvent (enterFrame) { if (_root.score < 0) { _root.score = (_root.score = 0); } }
Instance of Symbol 491 MovieClip "sounds" in Frame 24
onClipEvent (load) { stopAllSounds(); } onClipEvent (enterFrame) { if (Key.isDown(40)) { this.gotoAndStop(2); } else if (Key.isDown(38)) { this.gotoAndStop(3); } else if (Key.isDown(32)) { this.gotoAndStop(4); } else { this.gotoAndStop(1); } }
Frame 25
if (_root.lvls < 9) { _root.lvls = (Number_root.lvls = 8); }
Instance of Symbol 272 MovieClip in Frame 25
onClipEvent (enterFrame) { _root.gotoAndStop(_root._currentframe + 1); }
Frame 26
function getCoordPolaire(p) { dx = p.x; dy = p.y; d = Math.sqrt((dx * dx) + (dy * dy)); if (d == 0) { a = 0; } else { a = Math.acos(dx / d); if (dy < 0) { a = -a; } } return({x:p.x, y:p.y, a:a, d:d}); } function getAlphaNum(number) { toReturn = ""; while (number > 0) { unite = number % baseAlphaNum; if (unite < 10) { toReturn = String.fromCharCode(unite + 48) + toReturn; } else if (unite < 36) { toReturn = String.fromCharCode(unite + 55) + toReturn; } else { toReturn = String.fromCharCode(unite + 61) + toReturn; } var _local2 = (number - unite) / baseAlphaNum; } return(toReturn); } function getNumber(alphanum) { toReturn = 0; l = alphanum.length; i = 0; while (i < l) { unite = alphanum.charCodeAt(i); if ((unite >= 48) && (unite < 58)) { toReturn = ((toReturn * baseAlphaNum) + unite) - 48; } else if ((unite >= 65) && (unite < 91)) { toReturn = ((toReturn * baseAlphaNum) + unite) - 55; } else if ((unite >= 97) && (unite < 123)) { toReturn = ((toReturn * baseAlphaNum) + unite) - 61; } i++; } return(toReturn); } function playSurround(show) { if (show) { playback._visible = play_btn._visible; playback.gotoAndPlay(1); } else { playback._visible = false; } } function showButtons(vis) { pause_btn._visible = vis; play_btn._visible = vis; stop_btn._visible = vis; playback._visible = vis; } function clicStart() { if (!_root.timing) { menuder._visible = false; _root.paused = false; _root.timing = true; } } var vX = _root.voitureverte._x; var vY = _root.voitureverte._y; var vRot = _root.voitureverte._rotation; var xCorps = _root.voitureverte.bustebras._x; var yCorps = _root.voitureverte.bustebras._y; var xTete = _root.voitureverte.tete._x; var yTete = _root.voitureverte.tete._y; var frame = 0; var startFrame = 0; var baseAlphaNum = 62; var timing = false; _root.play_btn.onPress = function () { clicStart(); _root.time.play(); _root.play_btn.gotoAndPlay(51); _root.ava.play(); }; stop(); _root.two = false; stop();
Instance of Symbol 304 MovieClip "box2" in Frame 26
onClipEvent (load) { this._visible = false; }
Instance of Symbol 306 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 510 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.lost == true) { this.stop(); } }
Instance of Symbol 306 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 322 MovieClip in Frame 26
onClipEvent (enterFrame) { if (((_root.voitureverte.front.hitTest(this.front) or _root.voitureverte.box1.hitTest(this.front)) or _root.voitureverte.front.hitTest(this.back)) or _root.voitureverte.box1.hitTest(this.back)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.backhit.hitTest(this.front) or _root.caravane.backhit.hitTest(this.back)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if ((_root.caravane.boxx.hitTest(this.front) or _root.caravane.boxxx.hitTest(this.front)) or _root.caravane.boxxxx.hitTest(this.front)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 510 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.lost == true) { this.stop(); } }
Instance of Symbol 322 MovieClip in Frame 26
onClipEvent (enterFrame) { if (((_root.voitureverte.front.hitTest(this.front) or _root.voitureverte.box1.hitTest(this.front)) or _root.voitureverte.front.hitTest(this.back)) or _root.voitureverte.box1.hitTest(this.back)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.backhit.hitTest(this.front) or _root.caravane.backhit.hitTest(this.back)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if ((_root.caravane.boxx.hitTest(this.front) or _root.caravane.boxxx.hitTest(this.front)) or _root.caravane.boxxxx.hitTest(this.front)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 377 MovieClip "voitureverte" in Frame 26
onClipEvent (load) { function setBrasRotation() { xVolant = reposBonhommeVolant - corpsDeltaX; yVolantGauche = corpsDeltaY + posBrasGaucheVolant; yDiff = yVolantGauche - lEpaule; lEpauleGaucheVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant)); alpha = yDiff / xVolant; beta = Math.acos(lEpauleGaucheVolant / (2 * lBras)); Angle1 = ((-(alpha + beta)) * 180) / 3.141593; Angle2 = ((2 * beta) * 180) / 3.141593; bustebras.brasgaucheplein._rotation = Angle1; bustebras.contourbrasgauche._rotation = Angle1; bustebras.contourbrasgauche.avantbras._rotation = Angle2; yVolantDroit = corpsDeltaY - posBrasDroitVolant; yDiff = yVolantDroit + lEpaule; lEpauleDroiteVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant)); alpha = yDiff / xVolant; beta = Math.acos(lEpauleGaucheVolant / (2 * lBras)); Angle1 = ((beta - alpha) * 180) / 3.141593; Angle2 = ((-2 * beta) * 180) / 3.141593; bustebras.brasdroitplein._rotation = Angle1; bustebras.contourbrasdroit._rotation = Angle1; bustebras.contourbrasdroit.avantbras._rotation = Angle2; } function init() { speedDecay = 0.9; incRotation = 0; maxWheelAngle = 55; incSpeed = 0; speed = 0; wheelRotation = 0; carLength = 138.8; incy = 0; incx = 0; _x = _root.vX; _y = _root.vY; _rotation = _root.vRot; rouedroite._rotation = wheelRotation; rouegauche._rotation = wheelRotation; gare = false; _root.gagnos._visible = false; reposBonhommeVolant = 20; rayonVolant = 8; posBrasGaucheVolant = 0; posBrasDroitVolant = 0; corpsDeltaX = 0; corpsDeltaY = 0; maxCorpsDeltaY = 4; corpsSpeedX = 0; maxCorpsDeltaX = 8; minCorpsDeltaX = -5; corpsDecay = 0.5; bustebras._x = _root.xCorps + corpsDeltaX; bustebras._y = _root.yCorps + corpsDeltaY; teteDeltaX = 0; teteDeltaY = 0; teteDecay = 0.5; maxTeteDeltaX = 10; minTeteDeltaX = -8; teteSpeedX = 0; tete._x = (_root.xTete + corpsDeltaX) + teteDeltaX; tete._y = (_root.yTete + corpsDeltaY) + teteDeltaY; bustebras._x = _root.xCorps; bustebras._y = _root.yCorps; lBras = 14; lEpaule = 10; _root.ombrevoiture._x = _x + 10; _root.ombrevoiture._y = _y + 10; _root.ombrevoiture._rotation = _rotation; _root.maskvoiture._x = _x; _root.maskvoiture._y = _y; _root.maskvoiture._rotation = _rotation; setBrasRotation(); tuturevertefeuxarr.gotoAndStop(1); chocs = 0; forceChocs = 0; score = 0; _root.caravane.init(); } function initReplayRec() { replayRecFrame = 0; replayPlayFrame = 0; replayRecEventsIndex = 0; replayPlayEventsIndex = 0; replayEvents = new Array(); replayPlay = false; _root.replayos.gotoAndStop(1); _root.repclign.stop(); _root.repclign._visible = false; } function side(v, po) { return((po.y * v.x) - (po.x * v.y)); } function inShape(p) { toreturn = true; oldPoint = {x:colShape[0].x, y:colShape[0].y}; localToGlobal(oldPoint); i = 0; while (i < 4) { newPoint = {x:colShape[i + 1].x, y:colShape[i + 1].y}; localToGlobal(newPoint); vShape = {x:newPoint.x - oldPoint.x, y:newPoint.y - oldPoint.y}; testPoint = {x:p.x - oldPoint.x, y:p.y - oldPoint.y}; if (side(vShape, testPoint) < 0) { toreturn = false; break; } oldPoint = newPoint; i++; } return(toreturn); } function hit(clip) { return(inShape({x:clip._x, y:clip._y}) || (_root.caravane.inShape({x:clip._x, y:clip._y}))); } function keyDownAction(t) { toreturn = false; if (t == 39) { if (incRotation != 5) { incRotation = 5; toreturn = true; } } else if (t == 37) { if (incRotation != -5) { incRotation = -5; toreturn = true; } } else if (t == 40) { if (incSpeed != -1) { incSpeed = -1; toreturn = true; } } else if (t == 38) { if (incSpeed != 1) { incSpeed = 1; toreturn = true; } } return(toreturn); } function keyUpAction(t) { if (t == 39) { if (incRotation > 0) { incRotation = 0; } } else if (t == 37) { if (incRotation < 0) { incRotation = 0; } } else if (t == 40) { if (incSpeed < 0) { incSpeed = 0; } } else if (t == 38) { if (incSpeed > 0) { incSpeed = 0; } } } init(); initReplayRec(); colShape = new Array(); colShape[0] = {x:-15, y:-30}; colShape[1] = {x:110, y:-30}; colShape[2] = {x:110, y:30}; colShape[3] = {x:-15, y:30}; colShape[4] = colShape[0]; } onClipEvent (keyDown) { if ((_root.timing == true) && (replayPlay == false)) { t = Key.getCode(); if (keyDownAction(t)) { replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:1, keycode:t}; replayRecEventsIndex = replayRecEventsIndex + 1; } } } onClipEvent (keyUp) { a = Key.getAscii(); if (a == 115) { if (((_root.timing == false) && (replayPlay == false)) && (_root.gagnos._visible == false)) { _root.clicStart(); } else if (_root.timing == true) { _root.clicStop(); } } else if ((_root.timing == true) && (replayPlay == false)) { t = Key.getCode(); keyUpAction(t); replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:0, keycode:t}; replayRecEventsIndex = replayRecEventsIndex + 1; } } onClipEvent (enterFrame) { if ((_root.timing == true) && (_root.paused == false)) { if (replayPlay) { currentFrameIsEvented = true; while (currentFrameIsEvented) { nextFrame = replayEvents[replayPlayEventsIndex].framenb; if (nextFrame == replayPlayFrame) { if (replayEvents[replayPlayEventsIndex].updown == 0) { keyUpAction(replayEvents[replayPlayEventsIndex].keycode); } else { keyDownAction(replayEvents[replayPlayEventsIndex].keycode); } replayPlayEventsIndex = replayPlayEventsIndex + 1; } currentFrameIsEvented = false; } replayPlayFrame = replayPlayFrame + 1; } memoX = _x; memoY = _y; memoRot = _rotation; _root.caravane.saveMemo(); oldRot = wheelRotation; oldSpeed = speed; oldCorpsSpeedX = corpsSpeedX; speed = speed + incSpeed; if (speed > maxSpeed) { speed = maxSpeed; } else if (speed < (-maxSpeed)) { speed = -maxSpeed; } if (incSpeed == 0) { speed = speed * speedDecay; tuturevertefeuxarr.gotoAndStop(1); } else { tuturevertefeuxarr.gotoAndStop(2); speed = speed + incSpeed; if (speed > maxSpeed) { speed = maxSpeed; } else if (speed < (-maxSpeed)) { speed = -maxSpeed; } } wheelRotation = wheelRotation + incRotation; if (wheelRotation > maxWheelAngle) { wheelRotation = maxWheelAngle; } else if (wheelRotation < (-maxWheelAngle)) { wheelRotation = -maxWheelAngle; } if (oldRot != wheelRotation) { rouedroite._rotation = wheelRotation; rouegauche._rotation = wheelRotation; } incx = Math.sin(wheelRotation * 0.017453) * speed; _rotation = (_rotation + (((incx / carLength) * 250) / 3.141593)); incy = Math.cos(wheelRotation * 0.017453) * speed; _y = (_y + (Math.sin((_rotation + 0) * 0.017453) * incy)); _x = (_x + (Math.cos((_rotation + 0) * 0.017453) * incy)); if (_y < 0) { _y = (_y + widthScene); _root.caravane.transMemoTracteur(0, widthScene); } else if (_y > widthScene) { _y = (_y - widthScene); _root.caravane.transMemoTracteur(0, -widthScene); } if (_x < 0) { _x = (_x + widthScene); _root.caravane.transMemoTracteur(widthScene, 0); } else if (_x > widthScene) { _x = (_x - widthScene); _root.caravane.transMemoTracteur(-widthScene, 0); } _root.caravane.compute(); A = hit(_root.palmhaut); B = hit(_root.palmbas); C = hit(_root.palmfond); angVoitureCaravane = Math.abs(_rotation - _root.caravane._rotation) % 360; if (angVoitureCaravane > 180) { angVoitureCaravane = 360 - angVoitureCaravane; } if (angVoitureCaravane > 75) { D = true; } else { D = false; } if (((A || (B)) || (C)) || (D)) { if (Math.abs(speed) > 7) { chocs = chocs + 1; forceChocs = forceChocs + Math.abs(speed); } _x = memoX; _y = memoY; _rotation = memoRot; _root.caravane.setMemo(); speed = 0; } else { gagne = _root.caravane.isParked(); if (((gagne == true) && (speed > -1)) && (speed < 1)) { gare = true; if (replayPlay) { _root.timing = false; replayPlay = false; _root.replayos.gotoAndPlay(2); } else { _root.gagnos._visible = true; _root.gagnos.gotoAndPlay(1); _root.elapsedTime = (Math.ceil(_root.elapsedTime) + 8) - random(16); score = (500000 / _root.elapsedTime) - forceChocs; _root.timing = false; _root.paused = false; } _root.playSurround(true); } } } } onClipEvent (load) { maxSpeed = 0; } onClipEvent (enterFrame) { if (Key.isDown(32)) { maxSpeed = 0; } } onClipEvent (enterFrame) { if (!Key.isDown(38)) { incSpeed = 0; } else if (_root.connected == false) { maxSpeed = 3; } else if (_root.connected == true) { maxSpeed = 3; } } onClipEvent (enterFrame) { if (this.hitTest(_root.palmfond._x, _root.palmfond._y, true)) { maxSpeed = 1; } } onClipEvent (enterFrame) { if (!_root.road.hitTest(this._x, this._y, true)) { _root.fault.gotoAndStop(_root.fault._currentframe + 1); } } onClipEvent (enterFrame) { if (Key.isDown(40)) { maxSpeed = 2; incSpeed = -2; } } onClipEvent (enterFrame) { if (((((_root.palmfond.boxx.hitTest(this.front) or _root.palmfond.boxxx.hitTest(this.front)) or _root.palmfond.boxxxx.hitTest(this.front)) or _root.palmfond.boxx.hitTest(this.box1)) or _root.palmfond.boxxx.hitTest(this.box1)) or _root.palmfond.boxxxx.hitTest(this.box1)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (this._x > 550) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } else if (this._x < 0) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } else if (this._y < 0) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } else if (this._y > 550) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 527 MovieClip in Frame 26
onClipEvent (enterFrame) { if (((_root.voitureverte.front.hitTest(this.front) or _root.voitureverte.box1.hitTest(this.front)) or _root.voitureverte.front.hitTest(this.back)) or _root.voitureverte.box1.hitTest(this.back)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.backhit.hitTest(this.front) or _root.caravane.backhit.hitTest(this.back)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if ((_root.caravane.boxx.hitTest(this.front) or _root.caravane.boxxx.hitTest(this.front)) or _root.caravane.boxxxx.hitTest(this.front)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 527 MovieClip in Frame 26
onClipEvent (enterFrame) { if (((_root.voitureverte.front.hitTest(this.front) or _root.voitureverte.box1.hitTest(this.front)) or _root.voitureverte.front.hitTest(this.back)) or _root.voitureverte.box1.hitTest(this.back)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.backhit.hitTest(this.front) or _root.caravane.backhit.hitTest(this.back)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if ((_root.caravane.boxx.hitTest(this.front) or _root.caravane.boxxx.hitTest(this.front)) or _root.caravane.boxxxx.hitTest(this.front)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 527 MovieClip in Frame 26
onClipEvent (enterFrame) { if (((_root.voitureverte.front.hitTest(this.front) or _root.voitureverte.box1.hitTest(this.front)) or _root.voitureverte.front.hitTest(this.back)) or _root.voitureverte.box1.hitTest(this.back)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.backhit.hitTest(this.front) or _root.caravane.backhit.hitTest(this.back)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if ((_root.caravane.boxx.hitTest(this.front) or _root.caravane.boxxx.hitTest(this.front)) or _root.caravane.boxxxx.hitTest(this.front)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 527 MovieClip in Frame 26
onClipEvent (enterFrame) { if (((_root.voitureverte.front.hitTest(this.front) or _root.voitureverte.box1.hitTest(this.front)) or _root.voitureverte.front.hitTest(this.back)) or _root.voitureverte.box1.hitTest(this.back)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.backhit.hitTest(this.front) or _root.caravane.backhit.hitTest(this.back)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if ((_root.caravane.boxx.hitTest(this.front) or _root.caravane.boxxx.hitTest(this.front)) or _root.caravane.boxxxx.hitTest(this.front)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 557 MovieClip "palmfond" in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this.mask)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 590 MovieClip "land" in Frame 26
onClipEvent (enterFrame) { if (this.hitTest(_root.voitureverte._x, _root.voitureverte._y, true)) { _root.voitureverte.gotoAndStop(2); _root.finnished.failed.whyfailed.textwhy = "you crashed"; } } onClipEvent (enterFrame) { if ((_root.caravane.boxx.hitTest(this.front) or _root.caravane.boxxx.hitTest(this.front)) or _root.caravane.boxxxx.hitTest(this.front)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 557 MovieClip "palmfond" in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this.mask)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (((((_root.voitureverte.front.hitTest(this.boxx) or _root.voitureverte.front.hitTest(this.boxxx)) or _root.voitureverte.front.hitTest(this.boxxxx)) or _root.voitureverte.back.hitTest(this.boxx)) or _root.voitureverte.back.hitTest(this.boxxx)) or _root.voitureverte.back.hitTest(this.boxxxx)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 26
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 411 MovieClip "ava" in Frame 26
onClipEvent (enterFrame) { this.drivertext.gotoAndStop(8); }
Instance of Symbol 591 MovieClip "speed" in Frame 26
onClipEvent (enterFrame) { if (_root.score < 0) { _root.score = (_root.score = 0); } }
Instance of Symbol 491 MovieClip "sounds" in Frame 26
onClipEvent (load) { stopAllSounds(); } onClipEvent (enterFrame) { if (Key.isDown(40)) { this.gotoAndStop(2); } else if (Key.isDown(38)) { this.gotoAndStop(3); } else if (Key.isDown(32)) { this.gotoAndStop(4); } else { this.gotoAndStop(1); } }
Frame 27
_root.two = true;
Instance of Symbol 557 MovieClip "caravane" in Frame 27
onClipEvent (load) { function getNewCoord(vx, vy, vax, vay, vbx, vby) { return({a:((vy * vbx) - (vx * vby)) / ((vay * vbx) - (vax * vby)), b:((vy * vax) - (vx * vay)) / ((vby * vax) - (vbx * vay))}); } function init() { _rotation = 360; setMemoTracteur(); r = 130; } function transMemoTracteur(x, y) { old_tracteur_x = old_tracteur_x + x; old_tracteur_y = old_tracteur_y + y; } function setMemoTracteur() { old_tracteur = {x:-28, y:0}; _root.voitureverte.localToGlobal(old_tracteur); old_tracteur_x = old_tracteur.x; old_tracteur_y = old_tracteur.y; _x = old_tracteur_x; _y = old_tracteur_y; _root.ombrecaravane._x = _x + 25; _root.ombrecaravane._y = _y + 25; _root.ombrecaravane._rotation = _rotation; _root.maskcaravane._x = _x; _root.maskcaravane._y = _y; _root.maskcaravane._rotation = _rotation; } function setMemo() { _x = memoX; _y = memoY; _rotation = memoRot; old_tracteur_x = memo_old_tracteur_x; old_tracteur_y = memo_old_tracteur_y; _root.ombrecaravane._x = _x + 25; _root.ombrecaravane._y = _y + 25; _root.ombrecaravane._rotation = _rotation; _root.maskcaravane._x = _x; _root.maskcaravane._y = _y; _root.maskcaravane._rotation = _rotation; } function saveMemo() { memoX = _x; memoY = _y; memoRot = _rotation; memo_old_tracteur_x = old_tracteur_x; memo_old_tracteur_y = old_tracteur_y; } function side(v, po) { return((po.y * v.x) - (po.x * v.y)); } function inShape(p) { toreturn = true; oldPoint = {x:colShape[0].x, y:colShape[0].y}; localToGlobal(oldPoint); i = 0; while (i < 4) { newPoint = {x:colShape[i + 1].x, y:colShape[i + 1].y}; localToGlobal(newPoint); vShape = {x:newPoint.x - oldPoint.x, y:newPoint.y - oldPoint.y}; testPoint = {x:p.x - oldPoint.x, y:p.y - oldPoint.y}; if (side(vShape, testPoint) < 0) { toreturn = false; break; } oldPoint = newPoint; i++; } return(toreturn); } function isParked() { toreturn = true; i = 0; while (i < 4) { p = {x:colShape[i].x, y:colShape[i].y}; localToGlobal(p); if ((((p.x > _root.parking._x) && (p.y > _root.parking._y)) && (p.x < (_root.parking._x + _root.parking._width))) && (p.y < (_root.parking._y + _root.parking._height))) { } else { toreturn = false; } i++; } if (toreturn) { rot = _rotation % 360; if (rot < 0) { rot = rot + 360; } } return(toreturn); } function compute() { new_tracteur = {x:-28, y:0}; _root.voitureverte.localToGlobal(new_tracteur); new_tracteur_x = new_tracteur.x; new_tracteur_y = new_tracteur.y; new_tracteur_rotation = _rotation; centre = {x:-r, y:0}; localToGlobal(centre); toutdroit_x = old_tracteur_x - centre.x; toutdroit_y = old_tracteur_y - centre.y; deptracteur_x = new_tracteur_x - old_tracteur_x; deptracteur_y = new_tracteur_y - old_tracteur_y; deptracteur = getNewCoord(deptracteur_x, deptracteur_y, toutdroit_x, toutdroit_y, -toutdroit_y, toutdroit_x); new_tracteur_rotation = new_tracteur_rotation + ((deptracteur.b * 180) / 3.141593); _x = new_tracteur.x; _y = new_tracteur.y; _rotation = new_tracteur_rotation; old_tracteur_x = _x; old_tracteur_y = _y; _root.ombrecaravane._x = _x + 25; _root.ombrecaravane._y = _y + 25; _root.ombrecaravane._rotation = _rotation; _root.maskcaravane._x = _x; _root.maskcaravane._y = _y; _root.maskcaravane._rotation = _rotation; } init(); colShape = new Array(); colShape[0] = {x:-200, y:-60}; colShape[1] = {x:-50, y:-45}; colShape[2] = {x:-50, y:45}; colShape[3] = {x:-200, y:60}; colShape[4] = colShape[0]; }
Instance of Symbol 537 MovieClip in Frame 27
onClipEvent (enterFrame) { if (_root.caravane.backhit.hitTest(this)) { _root.finnished.gotoAndStop(2); _root.voitureverte.maxSpeed = 0; } }
Frame 28
if (_root.lvls < 9) { _root.lvls = (Number_root.lvls = 8); }
Instance of Symbol 272 MovieClip in Frame 28
onClipEvent (enterFrame) { _root.gotoAndStop(_root._currentframe + 1); }
Frame 29
function getCoordPolaire(p) { dx = p.x; dy = p.y; d = Math.sqrt((dx * dx) + (dy * dy)); if (d == 0) { a = 0; } else { a = Math.acos(dx / d); if (dy < 0) { a = -a; } } return({x:p.x, y:p.y, a:a, d:d}); } function getAlphaNum(number) { toReturn = ""; while (number > 0) { unite = number % baseAlphaNum; if (unite < 10) { toReturn = String.fromCharCode(unite + 48) + toReturn; } else if (unite < 36) { toReturn = String.fromCharCode(unite + 55) + toReturn; } else { toReturn = String.fromCharCode(unite + 61) + toReturn; } var _local2 = (number - unite) / baseAlphaNum; } return(toReturn); } function getNumber(alphanum) { toReturn = 0; l = alphanum.length; i = 0; while (i < l) { unite = alphanum.charCodeAt(i); if ((unite >= 48) && (unite < 58)) { toReturn = ((toReturn * baseAlphaNum) + unite) - 48; } else if ((unite >= 65) && (unite < 91)) { toReturn = ((toReturn * baseAlphaNum) + unite) - 55; } else if ((unite >= 97) && (unite < 123)) { toReturn = ((toReturn * baseAlphaNum) + unite) - 61; } i++; } return(toReturn); } function playSurround(show) { if (show) { playback._visible = play_btn._visible; playback.gotoAndPlay(1); } else { playback._visible = false; } } function showButtons(vis) { pause_btn._visible = vis; play_btn._visible = vis; stop_btn._visible = vis; playback._visible = vis; } function clicStart() { if (!_root.timing) { menuder._visible = false; _root.paused = false; _root.timing = true; } } var vX = _root.voitureverte._x; var vY = _root.voitureverte._y; var vRot = _root.voitureverte._rotation; var xCorps = _root.voitureverte.bustebras._x; var yCorps = _root.voitureverte.bustebras._y; var xTete = _root.voitureverte.tete._x; var yTete = _root.voitureverte.tete._y; var frame = 0; var startFrame = 0; var baseAlphaNum = 62; var timing = false; _root.play_btn.onPress = function () { clicStart(); _root.time.play(); _root.play_btn.gotoAndPlay(51); _root.ava.play(); }; stop(); _root.two = false;
Instance of Symbol 537 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.caravane.backhit.hitTest(this) and _root.caravane.boxx.hitTest(_root.secondbox)) { _root.finnished.gotoAndStop(2); _root.voitureverte.maxSpeed = 0; } } onClipEvent (load) { this._visible = false; }
Instance of Symbol 537 MovieClip "secondbox" in Frame 29
onClipEvent (load) { this._visible = false; }
Instance of Symbol 377 MovieClip "voitureverte" in Frame 29
onClipEvent (load) { function setBrasRotation() { xVolant = reposBonhommeVolant - corpsDeltaX; yVolantGauche = corpsDeltaY + posBrasGaucheVolant; yDiff = yVolantGauche - lEpaule; lEpauleGaucheVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant)); alpha = yDiff / xVolant; beta = Math.acos(lEpauleGaucheVolant / (2 * lBras)); Angle1 = ((-(alpha + beta)) * 180) / 3.141593; Angle2 = ((2 * beta) * 180) / 3.141593; bustebras.brasgaucheplein._rotation = Angle1; bustebras.contourbrasgauche._rotation = Angle1; bustebras.contourbrasgauche.avantbras._rotation = Angle2; yVolantDroit = corpsDeltaY - posBrasDroitVolant; yDiff = yVolantDroit + lEpaule; lEpauleDroiteVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant)); alpha = yDiff / xVolant; beta = Math.acos(lEpauleGaucheVolant / (2 * lBras)); Angle1 = ((beta - alpha) * 180) / 3.141593; Angle2 = ((-2 * beta) * 180) / 3.141593; bustebras.brasdroitplein._rotation = Angle1; bustebras.contourbrasdroit._rotation = Angle1; bustebras.contourbrasdroit.avantbras._rotation = Angle2; } function init() { speedDecay = 0.9; incRotation = 0; maxWheelAngle = 55; incSpeed = 0; speed = 0; wheelRotation = 0; carLength = 138.8; incy = 0; incx = 0; _x = _root.vX; _y = _root.vY; _rotation = _root.vRot; rouedroite._rotation = wheelRotation; rouegauche._rotation = wheelRotation; gare = false; _root.gagnos._visible = false; reposBonhommeVolant = 20; rayonVolant = 8; posBrasGaucheVolant = 0; posBrasDroitVolant = 0; corpsDeltaX = 0; corpsDeltaY = 0; maxCorpsDeltaY = 4; corpsSpeedX = 0; maxCorpsDeltaX = 8; minCorpsDeltaX = -5; corpsDecay = 0.5; bustebras._x = _root.xCorps + corpsDeltaX; bustebras._y = _root.yCorps + corpsDeltaY; teteDeltaX = 0; teteDeltaY = 0; teteDecay = 0.5; maxTeteDeltaX = 10; minTeteDeltaX = -8; teteSpeedX = 0; tete._x = (_root.xTete + corpsDeltaX) + teteDeltaX; tete._y = (_root.yTete + corpsDeltaY) + teteDeltaY; bustebras._x = _root.xCorps; bustebras._y = _root.yCorps; lBras = 14; lEpaule = 10; _root.ombrevoiture._x = _x + 10; _root.ombrevoiture._y = _y + 10; _root.ombrevoiture._rotation = _rotation; _root.maskvoiture._x = _x; _root.maskvoiture._y = _y; _root.maskvoiture._rotation = _rotation; setBrasRotation(); tuturevertefeuxarr.gotoAndStop(1); chocs = 0; forceChocs = 0; score = 0; _root.caravane.init(); } function initReplayRec() { replayRecFrame = 0; replayPlayFrame = 0; replayRecEventsIndex = 0; replayPlayEventsIndex = 0; replayEvents = new Array(); replayPlay = false; _root.replayos.gotoAndStop(1); _root.repclign.stop(); _root.repclign._visible = false; } function side(v, po) { return((po.y * v.x) - (po.x * v.y)); } function inShape(p) { toreturn = true; oldPoint = {x:colShape[0].x, y:colShape[0].y}; localToGlobal(oldPoint); i = 0; while (i < 4) { newPoint = {x:colShape[i + 1].x, y:colShape[i + 1].y}; localToGlobal(newPoint); vShape = {x:newPoint.x - oldPoint.x, y:newPoint.y - oldPoint.y}; testPoint = {x:p.x - oldPoint.x, y:p.y - oldPoint.y}; if (side(vShape, testPoint) < 0) { toreturn = false; break; } oldPoint = newPoint; i++; } return(toreturn); } function hit(clip) { return(inShape({x:clip._x, y:clip._y}) || (_root.caravane.inShape({x:clip._x, y:clip._y}))); } function keyDownAction(t) { toreturn = false; if (t == 39) { if (incRotation != 5) { incRotation = 5; toreturn = true; } } else if (t == 37) { if (incRotation != -5) { incRotation = -5; toreturn = true; } } else if (t == 40) { if (incSpeed != -1) { incSpeed = -1; toreturn = true; } } else if (t == 38) { if (incSpeed != 1) { incSpeed = 1; toreturn = true; } } return(toreturn); } function keyUpAction(t) { if (t == 39) { if (incRotation > 0) { incRotation = 0; } } else if (t == 37) { if (incRotation < 0) { incRotation = 0; } } else if (t == 40) { if (incSpeed < 0) { incSpeed = 0; } } else if (t == 38) { if (incSpeed > 0) { incSpeed = 0; } } } init(); initReplayRec(); colShape = new Array(); colShape[0] = {x:-15, y:-30}; colShape[1] = {x:110, y:-30}; colShape[2] = {x:110, y:30}; colShape[3] = {x:-15, y:30}; colShape[4] = colShape[0]; } onClipEvent (keyDown) { if ((_root.timing == true) && (replayPlay == false)) { t = Key.getCode(); if (keyDownAction(t)) { replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:1, keycode:t}; replayRecEventsIndex = replayRecEventsIndex + 1; } } } onClipEvent (keyUp) { a = Key.getAscii(); if (a == 115) { if (((_root.timing == false) && (replayPlay == false)) && (_root.gagnos._visible == false)) { _root.clicStart(); } else if (_root.timing == true) { _root.clicStop(); } } else if ((_root.timing == true) && (replayPlay == false)) { t = Key.getCode(); keyUpAction(t); replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:0, keycode:t}; replayRecEventsIndex = replayRecEventsIndex + 1; } } onClipEvent (enterFrame) { if ((_root.timing == true) && (_root.paused == false)) { if (replayPlay) { currentFrameIsEvented = true; while (currentFrameIsEvented) { nextFrame = replayEvents[replayPlayEventsIndex].framenb; if (nextFrame == replayPlayFrame) { if (replayEvents[replayPlayEventsIndex].updown == 0) { keyUpAction(replayEvents[replayPlayEventsIndex].keycode); } else { keyDownAction(replayEvents[replayPlayEventsIndex].keycode); } replayPlayEventsIndex = replayPlayEventsIndex + 1; } currentFrameIsEvented = false; } replayPlayFrame = replayPlayFrame + 1; } memoX = _x; memoY = _y; memoRot = _rotation; _root.caravane.saveMemo(); oldRot = wheelRotation; oldSpeed = speed; oldCorpsSpeedX = corpsSpeedX; speed = speed + incSpeed; if (speed > maxSpeed) { speed = maxSpeed; } else if (speed < (-maxSpeed)) { speed = -maxSpeed; } if (incSpeed == 0) { speed = speed * speedDecay; tuturevertefeuxarr.gotoAndStop(1); } else { tuturevertefeuxarr.gotoAndStop(2); speed = speed + incSpeed; if (speed > maxSpeed) { speed = maxSpeed; } else if (speed < (-maxSpeed)) { speed = -maxSpeed; } } wheelRotation = wheelRotation + incRotation; if (wheelRotation > maxWheelAngle) { wheelRotation = maxWheelAngle; } else if (wheelRotation < (-maxWheelAngle)) { wheelRotation = -maxWheelAngle; } if (oldRot != wheelRotation) { rouedroite._rotation = wheelRotation; rouegauche._rotation = wheelRotation; } incx = Math.sin(wheelRotation * 0.017453) * speed; _rotation = (_rotation + (((incx / carLength) * 250) / 3.141593)); incy = Math.cos(wheelRotation * 0.017453) * speed; _y = (_y + (Math.sin((_rotation + 0) * 0.017453) * incy)); _x = (_x + (Math.cos((_rotation + 0) * 0.017453) * incy)); if (_y < 0) { _y = (_y + widthScene); _root.caravane.transMemoTracteur(0, widthScene); } else if (_y > widthScene) { _y = (_y - widthScene); _root.caravane.transMemoTracteur(0, -widthScene); } if (_x < 0) { _x = (_x + widthScene); _root.caravane.transMemoTracteur(widthScene, 0); } else if (_x > widthScene) { _x = (_x - widthScene); _root.caravane.transMemoTracteur(-widthScene, 0); } _root.caravane.compute(); A = hit(_root.palmhaut); B = hit(_root.palmbas); C = hit(_root.palmfond); angVoitureCaravane = Math.abs(_rotation - _root.caravane._rotation) % 360; if (angVoitureCaravane > 180) { angVoitureCaravane = 360 - angVoitureCaravane; } if (angVoitureCaravane > 75) { D = true; } else { D = false; } if (((A || (B)) || (C)) || (D)) { if (Math.abs(speed) > 7) { chocs = chocs + 1; forceChocs = forceChocs + Math.abs(speed); } _x = memoX; _y = memoY; _rotation = memoRot; _root.caravane.setMemo(); speed = 0; } else { gagne = _root.caravane.isParked(); if (((gagne == true) && (speed > -1)) && (speed < 1)) { gare = true; if (replayPlay) { _root.timing = false; replayPlay = false; _root.replayos.gotoAndPlay(2); } else { _root.gagnos._visible = true; _root.gagnos.gotoAndPlay(1); _root.elapsedTime = (Math.ceil(_root.elapsedTime) + 8) - random(16); score = (500000 / _root.elapsedTime) - forceChocs; _root.timing = false; _root.paused = false; } _root.playSurround(true); } } } } onClipEvent (load) { maxSpeed = 0; } onClipEvent (enterFrame) { if (Key.isDown(32)) { maxSpeed = 0; } } onClipEvent (enterFrame) { if (!Key.isDown(38)) { incSpeed = 0; } else if (_root.connected == false) { maxSpeed = 3; } else if (_root.connected == true) { maxSpeed = 3; } } onClipEvent (enterFrame) { if (this.hitTest(_root.palmfond._x, _root.palmfond._y, true)) { maxSpeed = 1; } } onClipEvent (enterFrame) { if (!_root.road.hitTest(this._x, this._y, true)) { _root.fault.gotoAndStop(_root.fault._currentframe + 1); } } onClipEvent (enterFrame) { if (Key.isDown(40)) { maxSpeed = 2; incSpeed = -2; } } onClipEvent (enterFrame) { if (this._x > 550) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } else if (this._x < 0) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } else if (this._y < 0) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } else if (this._y > 550) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (((((_root.palmfond.boxx.hitTest(this.front) or _root.palmfond.boxxx.hitTest(this.front)) or _root.palmfond.boxxxx.hitTest(this.front)) or _root.palmfond.boxx.hitTest(this.box1)) or _root.palmfond.boxxx.hitTest(this.box1)) or _root.palmfond.boxxxx.hitTest(this.box1)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 557 MovieClip "caravane" in Frame 29
onClipEvent (load) { function getNewCoord(vx, vy, vax, vay, vbx, vby) { return({a:((vy * vbx) - (vx * vby)) / ((vay * vbx) - (vax * vby)), b:((vy * vax) - (vx * vay)) / ((vby * vax) - (vbx * vay))}); } function init() { _rotation = 0; setMemoTracteur(); r = 130; } function transMemoTracteur(x, y) { old_tracteur_x = old_tracteur_x + x; old_tracteur_y = old_tracteur_y + y; } function setMemoTracteur() { old_tracteur = {x:-28, y:0}; _root.voitureverte.localToGlobal(old_tracteur); old_tracteur_x = old_tracteur.x; old_tracteur_y = old_tracteur.y; _x = old_tracteur_x; _y = old_tracteur_y; _root.ombrecaravane._x = _x + 25; _root.ombrecaravane._y = _y + 25; _root.ombrecaravane._rotation = _rotation; _root.maskcaravane._x = _x; _root.maskcaravane._y = _y; _root.maskcaravane._rotation = _rotation; } function setMemo() { _x = memoX; _y = memoY; _rotation = memoRot; old_tracteur_x = memo_old_tracteur_x; old_tracteur_y = memo_old_tracteur_y; _root.ombrecaravane._x = _x + 25; _root.ombrecaravane._y = _y + 25; _root.ombrecaravane._rotation = _rotation; _root.maskcaravane._x = _x; _root.maskcaravane._y = _y; _root.maskcaravane._rotation = _rotation; } function saveMemo() { memoX = _x; memoY = _y; memoRot = _rotation; memo_old_tracteur_x = old_tracteur_x; memo_old_tracteur_y = old_tracteur_y; } function side(v, po) { return((po.y * v.x) - (po.x * v.y)); } function inShape(p) { toreturn = true; oldPoint = {x:colShape[0].x, y:colShape[0].y}; localToGlobal(oldPoint); i = 0; while (i < 4) { newPoint = {x:colShape[i + 1].x, y:colShape[i + 1].y}; localToGlobal(newPoint); vShape = {x:newPoint.x - oldPoint.x, y:newPoint.y - oldPoint.y}; testPoint = {x:p.x - oldPoint.x, y:p.y - oldPoint.y}; if (side(vShape, testPoint) < 0) { toreturn = false; break; } oldPoint = newPoint; i++; } return(toreturn); } function isParked() { toreturn = true; i = 0; while (i < 4) { p = {x:colShape[i].x, y:colShape[i].y}; localToGlobal(p); if ((((p.x > _root.parking._x) && (p.y > _root.parking._y)) && (p.x < (_root.parking._x + _root.parking._width))) && (p.y < (_root.parking._y + _root.parking._height))) { } else { toreturn = false; } i++; } if (toreturn) { rot = _rotation % 360; if (rot < 0) { rot = rot + 360; } } return(toreturn); } function compute() { new_tracteur = {x:-28, y:0}; _root.voitureverte.localToGlobal(new_tracteur); new_tracteur_x = new_tracteur.x; new_tracteur_y = new_tracteur.y; new_tracteur_rotation = _rotation; centre = {x:-r, y:0}; localToGlobal(centre); toutdroit_x = old_tracteur_x - centre.x; toutdroit_y = old_tracteur_y - centre.y; deptracteur_x = new_tracteur_x - old_tracteur_x; deptracteur_y = new_tracteur_y - old_tracteur_y; deptracteur = getNewCoord(deptracteur_x, deptracteur_y, toutdroit_x, toutdroit_y, -toutdroit_y, toutdroit_x); new_tracteur_rotation = new_tracteur_rotation + ((deptracteur.b * 180) / 3.141593); _x = new_tracteur.x; _y = new_tracteur.y; _rotation = new_tracteur_rotation; old_tracteur_x = _x; old_tracteur_y = _y; _root.ombrecaravane._x = _x + 25; _root.ombrecaravane._y = _y + 25; _root.ombrecaravane._rotation = _rotation; _root.maskcaravane._x = _x; _root.maskcaravane._y = _y; _root.maskcaravane._rotation = _rotation; } init(); colShape = new Array(); colShape[0] = {x:-200, y:-60}; colShape[1] = {x:-50, y:-45}; colShape[2] = {x:-50, y:45}; colShape[3] = {x:-200, y:60}; colShape[4] = colShape[0]; }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 596 MovieClip in Frame 29
onClipEvent (enterFrame) { if (this.hitTest(_root.voitureverte._x, _root.voitureverte._y, true)) { _root.voitureverte.gotoAndStop(2); _root.finnished.failed.whyfailed.textwhy = "you crashed"; } }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 411 MovieClip "ava" in Frame 29
onClipEvent (enterFrame) { this.drivertext.gotoAndStop(10); }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 29
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 472 MovieClip "speed" in Frame 29
onClipEvent (enterFrame) { if (_root.score < 0) { _root.score = (_root.score = 0); } }
Instance of Symbol 491 MovieClip "sounds" in Frame 29
onClipEvent (load) { stopAllSounds(); } onClipEvent (enterFrame) { if (Key.isDown(40)) { this.gotoAndStop(2); } else if (Key.isDown(38)) { this.gotoAndStop(3); } else if (Key.isDown(32)) { this.gotoAndStop(4); } else { this.gotoAndStop(1); } }
Frame 30
if (_root.lvls < 9) { _root.lvls = (Number_root.lvls = 8); }
Instance of Symbol 272 MovieClip in Frame 30
onClipEvent (enterFrame) { _root.gotoAndStop(_root._currentframe + 1); }
Frame 31
function getCoordPolaire(p) { dx = p.x; dy = p.y; d = Math.sqrt((dx * dx) + (dy * dy)); if (d == 0) { a = 0; } else { a = Math.acos(dx / d); if (dy < 0) { a = -a; } } return({x:p.x, y:p.y, a:a, d:d}); } function getAlphaNum(number) { toReturn = ""; while (number > 0) { unite = number % baseAlphaNum; if (unite < 10) { toReturn = String.fromCharCode(unite + 48) + toReturn; } else if (unite < 36) { toReturn = String.fromCharCode(unite + 55) + toReturn; } else { toReturn = String.fromCharCode(unite + 61) + toReturn; } var _local2 = (number - unite) / baseAlphaNum; } return(toReturn); } function getNumber(alphanum) { toReturn = 0; l = alphanum.length; i = 0; while (i < l) { unite = alphanum.charCodeAt(i); if ((unite >= 48) && (unite < 58)) { toReturn = ((toReturn * baseAlphaNum) + unite) - 48; } else if ((unite >= 65) && (unite < 91)) { toReturn = ((toReturn * baseAlphaNum) + unite) - 55; } else if ((unite >= 97) && (unite < 123)) { toReturn = ((toReturn * baseAlphaNum) + unite) - 61; } i++; } return(toReturn); } function playSurround(show) { if (show) { playback._visible = play_btn._visible; playback.gotoAndPlay(1); } else { playback._visible = false; } } function showButtons(vis) { pause_btn._visible = vis; play_btn._visible = vis; stop_btn._visible = vis; playback._visible = vis; } function clicStart() { if (!_root.timing) { menuder._visible = false; _root.paused = false; _root.timing = true; } } var vX = _root.voitureverte._x; var vY = _root.voitureverte._y; var vRot = _root.voitureverte._rotation; var xCorps = _root.voitureverte.bustebras._x; var yCorps = _root.voitureverte.bustebras._y; var xTete = _root.voitureverte.tete._x; var yTete = _root.voitureverte.tete._y; var frame = 0; var startFrame = 0; var baseAlphaNum = 62; var timing = false; _root.play_btn.onPress = function () { clicStart(); _root.time.play(); _root.play_btn.gotoAndPlay(51); _root.ava.play(); }; stop(); _root.two = false;
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 31
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 377 MovieClip "voitureverte" in Frame 31
onClipEvent (load) { function setBrasRotation() { xVolant = reposBonhommeVolant - corpsDeltaX; yVolantGauche = corpsDeltaY + posBrasGaucheVolant; yDiff = yVolantGauche - lEpaule; lEpauleGaucheVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant)); alpha = yDiff / xVolant; beta = Math.acos(lEpauleGaucheVolant / (2 * lBras)); Angle1 = ((-(alpha + beta)) * 180) / 3.141593; Angle2 = ((2 * beta) * 180) / 3.141593; bustebras.brasgaucheplein._rotation = Angle1; bustebras.contourbrasgauche._rotation = Angle1; bustebras.contourbrasgauche.avantbras._rotation = Angle2; yVolantDroit = corpsDeltaY - posBrasDroitVolant; yDiff = yVolantDroit + lEpaule; lEpauleDroiteVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant)); alpha = yDiff / xVolant; beta = Math.acos(lEpauleGaucheVolant / (2 * lBras)); Angle1 = ((beta - alpha) * 180) / 3.141593; Angle2 = ((-2 * beta) * 180) / 3.141593; bustebras.brasdroitplein._rotation = Angle1; bustebras.contourbrasdroit._rotation = Angle1; bustebras.contourbrasdroit.avantbras._rotation = Angle2; } function init() { speedDecay = 0.9; incRotation = 0; maxWheelAngle = 55; incSpeed = 0; speed = 0; wheelRotation = 0; carLength = 138.8; incy = 0; incx = 0; _x = _root.vX; _y = _root.vY; _rotation = _root.vRot; rouedroite._rotation = wheelRotation; rouegauche._rotation = wheelRotation; gare = false; _root.gagnos._visible = false; reposBonhommeVolant = 20; rayonVolant = 8; posBrasGaucheVolant = 0; posBrasDroitVolant = 0; corpsDeltaX = 0; corpsDeltaY = 0; maxCorpsDeltaY = 4; corpsSpeedX = 0; maxCorpsDeltaX = 8; minCorpsDeltaX = -5; corpsDecay = 0.5; bustebras._x = _root.xCorps + corpsDeltaX; bustebras._y = _root.yCorps + corpsDeltaY; teteDeltaX = 0; teteDeltaY = 0; teteDecay = 0.5; maxTeteDeltaX = 10; minTeteDeltaX = -8; teteSpeedX = 0; tete._x = (_root.xTete + corpsDeltaX) + teteDeltaX; tete._y = (_root.yTete + corpsDeltaY) + teteDeltaY; bustebras._x = _root.xCorps; bustebras._y = _root.yCorps; lBras = 14; lEpaule = 10; _root.ombrevoiture._x = _x + 10; _root.ombrevoiture._y = _y + 10; _root.ombrevoiture._rotation = _rotation; _root.maskvoiture._x = _x; _root.maskvoiture._y = _y; _root.maskvoiture._rotation = _rotation; setBrasRotation(); tuturevertefeuxarr.gotoAndStop(1); chocs = 0; forceChocs = 0; score = 0; _root.caravane.init(); } function initReplayRec() { replayRecFrame = 0; replayPlayFrame = 0; replayRecEventsIndex = 0; replayPlayEventsIndex = 0; replayEvents = new Array(); replayPlay = false; _root.replayos.gotoAndStop(1); _root.repclign.stop(); _root.repclign._visible = false; } function side(v, po) { return((po.y * v.x) - (po.x * v.y)); } function inShape(p) { toreturn = true; oldPoint = {x:colShape[0].x, y:colShape[0].y}; localToGlobal(oldPoint); i = 0; while (i < 4) { newPoint = {x:colShape[i + 1].x, y:colShape[i + 1].y}; localToGlobal(newPoint); vShape = {x:newPoint.x - oldPoint.x, y:newPoint.y - oldPoint.y}; testPoint = {x:p.x - oldPoint.x, y:p.y - oldPoint.y}; if (side(vShape, testPoint) < 0) { toreturn = false; break; } oldPoint = newPoint; i++; } return(toreturn); } function hit(clip) { return(inShape({x:clip._x, y:clip._y}) || (_root.caravane.inShape({x:clip._x, y:clip._y}))); } function keyDownAction(t) { toreturn = false; if (t == 39) { if (incRotation != 5) { incRotation = 5; toreturn = true; } } else if (t == 37) { if (incRotation != -5) { incRotation = -5; toreturn = true; } } else if (t == 40) { if (incSpeed != -1) { incSpeed = -1; toreturn = true; } } else if (t == 38) { if (incSpeed != 1) { incSpeed = 1; toreturn = true; } } return(toreturn); } function keyUpAction(t) { if (t == 39) { if (incRotation > 0) { incRotation = 0; } } else if (t == 37) { if (incRotation < 0) { incRotation = 0; } } else if (t == 40) { if (incSpeed < 0) { incSpeed = 0; } } else if (t == 38) { if (incSpeed > 0) { incSpeed = 0; } } } init(); initReplayRec(); colShape = new Array(); colShape[0] = {x:-15, y:-30}; colShape[1] = {x:110, y:-30}; colShape[2] = {x:110, y:30}; colShape[3] = {x:-15, y:30}; colShape[4] = colShape[0]; } onClipEvent (keyDown) { if ((_root.timing == true) && (replayPlay == false)) { t = Key.getCode(); if (keyDownAction(t)) { replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:1, keycode:t}; replayRecEventsIndex = replayRecEventsIndex + 1; } } } onClipEvent (keyUp) { a = Key.getAscii(); if (a == 115) { if (((_root.timing == false) && (replayPlay == false)) && (_root.gagnos._visible == false)) { _root.clicStart(); } else if (_root.timing == true) { _root.clicStop(); } } else if ((_root.timing == true) && (replayPlay == false)) { t = Key.getCode(); keyUpAction(t); replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:0, keycode:t}; replayRecEventsIndex = replayRecEventsIndex + 1; } } onClipEvent (enterFrame) { if ((_root.timing == true) && (_root.paused == false)) { if (replayPlay) { currentFrameIsEvented = true; while (currentFrameIsEvented) { nextFrame = replayEvents[replayPlayEventsIndex].framenb; if (nextFrame == replayPlayFrame) { if (replayEvents[replayPlayEventsIndex].updown == 0) { keyUpAction(replayEvents[replayPlayEventsIndex].keycode); } else { keyDownAction(replayEvents[replayPlayEventsIndex].keycode); } replayPlayEventsIndex = replayPlayEventsIndex + 1; } currentFrameIsEvented = false; } replayPlayFrame = replayPlayFrame + 1; } memoX = _x; memoY = _y; memoRot = _rotation; _root.caravane.saveMemo(); oldRot = wheelRotation; oldSpeed = speed; oldCorpsSpeedX = corpsSpeedX; speed = speed + incSpeed; if (speed > maxSpeed) { speed = maxSpeed; } else if (speed < (-maxSpeed)) { speed = -maxSpeed; } if (incSpeed == 0) { speed = speed * speedDecay; tuturevertefeuxarr.gotoAndStop(1); } else { tuturevertefeuxarr.gotoAndStop(2); speed = speed + incSpeed; if (speed > maxSpeed) { speed = maxSpeed; } else if (speed < (-maxSpeed)) { speed = -maxSpeed; } } wheelRotation = wheelRotation + incRotation; if (wheelRotation > maxWheelAngle) { wheelRotation = maxWheelAngle; } else if (wheelRotation < (-maxWheelAngle)) { wheelRotation = -maxWheelAngle; } if (oldRot != wheelRotation) { rouedroite._rotation = wheelRotation; rouegauche._rotation = wheelRotation; } incx = Math.sin(wheelRotation * 0.017453) * speed; _rotation = (_rotation + (((incx / carLength) * 250) / 3.141593)); incy = Math.cos(wheelRotation * 0.017453) * speed; _y = (_y + (Math.sin((_rotation + 0) * 0.017453) * incy)); _x = (_x + (Math.cos((_rotation + 0) * 0.017453) * incy)); if (_y < 0) { _y = (_y + widthScene); _root.caravane.transMemoTracteur(0, widthScene); } else if (_y > widthScene) { _y = (_y - widthScene); _root.caravane.transMemoTracteur(0, -widthScene); } if (_x < 0) { _x = (_x + widthScene); _root.caravane.transMemoTracteur(widthScene, 0); } else if (_x > widthScene) { _x = (_x - widthScene); _root.caravane.transMemoTracteur(-widthScene, 0); } _root.caravane.compute(); A = hit(_root.palmhaut); B = hit(_root.palmbas); C = hit(_root.palmfond); angVoitureCaravane = Math.abs(_rotation - _root.caravane._rotation) % 360; if (angVoitureCaravane > 180) { angVoitureCaravane = 360 - angVoitureCaravane; } if (angVoitureCaravane > 75) { D = true; } else { D = false; } if (((A || (B)) || (C)) || (D)) { if (Math.abs(speed) > 7) { chocs = chocs + 1; forceChocs = forceChocs + Math.abs(speed); } _x = memoX; _y = memoY; _rotation = memoRot; _root.caravane.setMemo(); speed = 0; } else { gagne = _root.caravane.isParked(); if (((gagne == true) && (speed > -1)) && (speed < 1)) { gare = true; if (replayPlay) { _root.timing = false; replayPlay = false; _root.replayos.gotoAndPlay(2); } else { _root.gagnos._visible = true; _root.gagnos.gotoAndPlay(1); _root.elapsedTime = (Math.ceil(_root.elapsedTime) + 8) - random(16); score = (500000 / _root.elapsedTime) - forceChocs; _root.timing = false; _root.paused = false; } _root.playSurround(true); } } } } onClipEvent (load) { maxSpeed = 0; } onClipEvent (enterFrame) { if (Key.isDown(32)) { maxSpeed = 0; } } onClipEvent (enterFrame) { if (!Key.isDown(38)) { incSpeed = 0; } else if (_root.connected == false) { maxSpeed = 3; } else if (_root.connected == true) { maxSpeed = 3; } } onClipEvent (enterFrame) { if (this.hitTest(_root.palmfond._x, _root.palmfond._y, true)) { maxSpeed = 1; } } onClipEvent (enterFrame) { if (!_root.road.hitTest(this._x, this._y, true)) { _root.fault.gotoAndStop(_root.fault._currentframe + 1); } } onClipEvent (enterFrame) { if (Key.isDown(40)) { maxSpeed = 2; incSpeed = -2; } } onClipEvent (enterFrame) { if (this._x > 550) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } else if (this._x < 0) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } else if (this._y < 0) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } else if (this._y > 550) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (((((_root.palmfond.boxx.hitTest(this.front) or _root.palmfond.boxxx.hitTest(this.front)) or _root.palmfond.boxxxx.hitTest(this.front)) or _root.palmfond.boxx.hitTest(this.box1)) or _root.palmfond.boxxx.hitTest(this.box1)) or _root.palmfond.boxxxx.hitTest(this.box1)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 557 MovieClip "caravane" in Frame 31
onClipEvent (load) { function getNewCoord(vx, vy, vax, vay, vbx, vby) { return({a:((vy * vbx) - (vx * vby)) / ((vay * vbx) - (vax * vby)), b:((vy * vax) - (vx * vay)) / ((vby * vax) - (vbx * vay))}); } function init() { _rotation = 40; setMemoTracteur(); r = 130; } function transMemoTracteur(x, y) { old_tracteur_x = old_tracteur_x + x; old_tracteur_y = old_tracteur_y + y; } function setMemoTracteur() { old_tracteur = {x:-28, y:0}; _root.voitureverte.localToGlobal(old_tracteur); old_tracteur_x = old_tracteur.x; old_tracteur_y = old_tracteur.y; _x = old_tracteur_x; _y = old_tracteur_y; _root.ombrecaravane._x = _x + 25; _root.ombrecaravane._y = _y + 25; _root.ombrecaravane._rotation = _rotation; _root.maskcaravane._x = _x; _root.maskcaravane._y = _y; _root.maskcaravane._rotation = _rotation; } function setMemo() { _x = memoX; _y = memoY; _rotation = memoRot; old_tracteur_x = memo_old_tracteur_x; old_tracteur_y = memo_old_tracteur_y; _root.ombrecaravane._x = _x + 25; _root.ombrecaravane._y = _y + 25; _root.ombrecaravane._rotation = _rotation; _root.maskcaravane._x = _x; _root.maskcaravane._y = _y; _root.maskcaravane._rotation = _rotation; } function saveMemo() { memoX = _x; memoY = _y; memoRot = _rotation; memo_old_tracteur_x = old_tracteur_x; memo_old_tracteur_y = old_tracteur_y; } function side(v, po) { return((po.y * v.x) - (po.x * v.y)); } function inShape(p) { toreturn = true; oldPoint = {x:colShape[0].x, y:colShape[0].y}; localToGlobal(oldPoint); i = 0; while (i < 4) { newPoint = {x:colShape[i + 1].x, y:colShape[i + 1].y}; localToGlobal(newPoint); vShape = {x:newPoint.x - oldPoint.x, y:newPoint.y - oldPoint.y}; testPoint = {x:p.x - oldPoint.x, y:p.y - oldPoint.y}; if (side(vShape, testPoint) < 0) { toreturn = false; break; } oldPoint = newPoint; i++; } return(toreturn); } function isParked() { toreturn = true; i = 0; while (i < 4) { p = {x:colShape[i].x, y:colShape[i].y}; localToGlobal(p); if ((((p.x > _root.parking._x) && (p.y > _root.parking._y)) && (p.x < (_root.parking._x + _root.parking._width))) && (p.y < (_root.parking._y + _root.parking._height))) { } else { toreturn = false; } i++; } if (toreturn) { rot = _rotation % 360; if (rot < 0) { rot = rot + 360; } } return(toreturn); } function compute() { new_tracteur = {x:-28, y:0}; _root.voitureverte.localToGlobal(new_tracteur); new_tracteur_x = new_tracteur.x; new_tracteur_y = new_tracteur.y; new_tracteur_rotation = _rotation; centre = {x:-r, y:0}; localToGlobal(centre); toutdroit_x = old_tracteur_x - centre.x; toutdroit_y = old_tracteur_y - centre.y; deptracteur_x = new_tracteur_x - old_tracteur_x; deptracteur_y = new_tracteur_y - old_tracteur_y; deptracteur = getNewCoord(deptracteur_x, deptracteur_y, toutdroit_x, toutdroit_y, -toutdroit_y, toutdroit_x); new_tracteur_rotation = new_tracteur_rotation + ((deptracteur.b * 180) / 3.141593); _x = new_tracteur.x; _y = new_tracteur.y; _rotation = new_tracteur_rotation; old_tracteur_x = _x; old_tracteur_y = _y; _root.ombrecaravane._x = _x + 25; _root.ombrecaravane._y = _y + 25; _root.ombrecaravane._rotation = _rotation; _root.maskcaravane._x = _x; _root.maskcaravane._y = _y; _root.maskcaravane._rotation = _rotation; } init(); colShape = new Array(); colShape[0] = {x:-200, y:-60}; colShape[1] = {x:-50, y:-45}; colShape[2] = {x:-50, y:45}; colShape[3] = {x:-200, y:60}; colShape[4] = colShape[0]; }
Instance of Symbol 472 MovieClip "speed" in Frame 31
onClipEvent (enterFrame) { if (_root.score < 0) { _root.score = (_root.score = 0); } }
Instance of Symbol 411 MovieClip "ava" in Frame 31
onClipEvent (enterFrame) { this.drivertext.gotoAndStop(11); }
Instance of Symbol 491 MovieClip "sounds" in Frame 31
onClipEvent (load) { stopAllSounds(); } onClipEvent (enterFrame) { if (Key.isDown(40)) { this.gotoAndStop(2); } else if (Key.isDown(38)) { this.gotoAndStop(3); } else if (Key.isDown(32)) { this.gotoAndStop(4); } else { this.gotoAndStop(1); } }
Frame 32
if (_root.lvls < 9) { _root.lvls = (Number_root.lvls = 8); }
Instance of Symbol 272 MovieClip in Frame 32
onClipEvent (enterFrame) { _root.gotoAndStop(_root._currentframe + 1); }
Frame 33
function getCoordPolaire(p) { dx = p.x; dy = p.y; d = Math.sqrt((dx * dx) + (dy * dy)); if (d == 0) { a = 0; } else { a = Math.acos(dx / d); if (dy < 0) { a = -a; } } return({x:p.x, y:p.y, a:a, d:d}); } function getAlphaNum(number) { toReturn = ""; while (number > 0) { unite = number % baseAlphaNum; if (unite < 10) { toReturn = String.fromCharCode(unite + 48) + toReturn; } else if (unite < 36) { toReturn = String.fromCharCode(unite + 55) + toReturn; } else { toReturn = String.fromCharCode(unite + 61) + toReturn; } var _local2 = (number - unite) / baseAlphaNum; } return(toReturn); } function getNumber(alphanum) { toReturn = 0; l = alphanum.length; i = 0; while (i < l) { unite = alphanum.charCodeAt(i); if ((unite >= 48) && (unite < 58)) { toReturn = ((toReturn * baseAlphaNum) + unite) - 48; } else if ((unite >= 65) && (unite < 91)) { toReturn = ((toReturn * baseAlphaNum) + unite) - 55; } else if ((unite >= 97) && (unite < 123)) { toReturn = ((toReturn * baseAlphaNum) + unite) - 61; } i++; } return(toReturn); } function playSurround(show) { if (show) { playback._visible = play_btn._visible; playback.gotoAndPlay(1); } else { playback._visible = false; } } function showButtons(vis) { pause_btn._visible = vis; play_btn._visible = vis; stop_btn._visible = vis; playback._visible = vis; } function clicStart() { if (!_root.timing) { menuder._visible = false; _root.paused = false; _root.timing = true; } } var vX = _root.voitureverte._x; var vY = _root.voitureverte._y; var vRot = _root.voitureverte._rotation; var xCorps = _root.voitureverte.bustebras._x; var yCorps = _root.voitureverte.bustebras._y; var xTete = _root.voitureverte.tete._x; var yTete = _root.voitureverte.tete._y; var frame = 0; var startFrame = 0; var baseAlphaNum = 62; var timing = false; _root.play_btn.onPress = function () { clicStart(); _root.time.play(); _root.play_btn.gotoAndPlay(51); _root.ava.play(); }; stop(); _root.two = false;
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 612 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 612 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 612 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 612 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 612 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 612 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 33
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 318 MovieClip "car1" in Frame 33
onClipEvent (enterFrame) { if (((_root.voitureverte.front.hitTest(this.front) or _root.voitureverte.box1.hitTest(this.front)) or _root.voitureverte.front.hitTest(this.back)) or _root.voitureverte.box1.hitTest(this.back)) { _root.move = true; this._x = this._x + 8; _root.voitureverte.gotoAndStop(2); } else if (((((_root.caravane.boxx.hitTest(this.front) or _root.caravane.boxxx.hitTest(this.front)) or _root.caravane.boxxxx.hitTest(this.front)) or _root.caravane.boxx.hitTest(this.b)) or _root.caravane.boxxx.hitTest(this.back)) or _root.caravane.boxxxx.hitTest(this.back)) { _root.move = true; this._x = this._x + 8; _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { this._x = this._x - 8; } onClipEvent (enterFrame) { if (this._x < -100) { this._x = random(2000) + 1000; } } onClipEvent (enterFrame) { if (_root.T.cant.hitTest(this.mask3)) { this._x = this._x + 8; } else if (_root.car2.hitTest(this.mask3)) { this._x = this._x + 8; } else if (_root.lost == true) { this._x = this._x + 8; } else if (_root.T2.cant.hitTest(this.mask3)) { this._x = this._x + 8; } else { this._x = this._x - 8; } }
Instance of Symbol 377 MovieClip "voitureverte" in Frame 33
onClipEvent (load) { function setBrasRotation() { xVolant = reposBonhommeVolant - corpsDeltaX; yVolantGauche = corpsDeltaY + posBrasGaucheVolant; yDiff = yVolantGauche - lEpaule; lEpauleGaucheVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant)); alpha = yDiff / xVolant; beta = Math.acos(lEpauleGaucheVolant / (2 * lBras)); Angle1 = ((-(alpha + beta)) * 180) / 3.141593; Angle2 = ((2 * beta) * 180) / 3.141593; bustebras.brasgaucheplein._rotation = Angle1; bustebras.contourbrasgauche._rotation = Angle1; bustebras.contourbrasgauche.avantbras._rotation = Angle2; yVolantDroit = corpsDeltaY - posBrasDroitVolant; yDiff = yVolantDroit + lEpaule; lEpauleDroiteVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant)); alpha = yDiff / xVolant; beta = Math.acos(lEpauleGaucheVolant / (2 * lBras)); Angle1 = ((beta - alpha) * 180) / 3.141593; Angle2 = ((-2 * beta) * 180) / 3.141593; bustebras.brasdroitplein._rotation = Angle1; bustebras.contourbrasdroit._rotation = Angle1; bustebras.contourbrasdroit.avantbras._rotation = Angle2; } function init() { speedDecay = 0.9; incRotation = 0; maxWheelAngle = 55; incSpeed = 0; speed = 0; wheelRotation = 0; carLength = 138.8; incy = 0; incx = 0; _x = _root.vX; _y = _root.vY; _rotation = _root.vRot; rouedroite._rotation = wheelRotation; rouegauche._rotation = wheelRotation; gare = false; _root.gagnos._visible = false; reposBonhommeVolant = 20; rayonVolant = 8; posBrasGaucheVolant = 0; posBrasDroitVolant = 0; corpsDeltaX = 0; corpsDeltaY = 0; maxCorpsDeltaY = 4; corpsSpeedX = 0; maxCorpsDeltaX = 8; minCorpsDeltaX = -5; corpsDecay = 0.5; bustebras._x = _root.xCorps + corpsDeltaX; bustebras._y = _root.yCorps + corpsDeltaY; teteDeltaX = 0; teteDeltaY = 0; teteDecay = 0.5; maxTeteDeltaX = 10; minTeteDeltaX = -8; teteSpeedX = 0; tete._x = (_root.xTete + corpsDeltaX) + teteDeltaX; tete._y = (_root.yTete + corpsDeltaY) + teteDeltaY; bustebras._x = _root.xCorps; bustebras._y = _root.yCorps; lBras = 14; lEpaule = 10; _root.ombrevoiture._x = _x + 10; _root.ombrevoiture._y = _y + 10; _root.ombrevoiture._rotation = _rotation; _root.maskvoiture._x = _x; _root.maskvoiture._y = _y; _root.maskvoiture._rotation = _rotation; setBrasRotation(); tuturevertefeuxarr.gotoAndStop(1); chocs = 0; forceChocs = 0; score = 0; _root.caravane.init(); } function initReplayRec() { replayRecFrame = 0; replayPlayFrame = 0; replayRecEventsIndex = 0; replayPlayEventsIndex = 0; replayEvents = new Array(); replayPlay = false; _root.replayos.gotoAndStop(1); _root.repclign.stop(); _root.repclign._visible = false; } function side(v, po) { return((po.y * v.x) - (po.x * v.y)); } function inShape(p) { toreturn = true; oldPoint = {x:colShape[0].x, y:colShape[0].y}; localToGlobal(oldPoint); i = 0; while (i < 4) { newPoint = {x:colShape[i + 1].x, y:colShape[i + 1].y}; localToGlobal(newPoint); vShape = {x:newPoint.x - oldPoint.x, y:newPoint.y - oldPoint.y}; testPoint = {x:p.x - oldPoint.x, y:p.y - oldPoint.y}; if (side(vShape, testPoint) < 0) { toreturn = false; break; } oldPoint = newPoint; i++; } return(toreturn); } function hit(clip) { return(inShape({x:clip._x, y:clip._y}) || (_root.caravane.inShape({x:clip._x, y:clip._y}))); } function keyDownAction(t) { toreturn = false; if (t == 39) { if (incRotation != 5) { incRotation = 5; toreturn = true; } } else if (t == 37) { if (incRotation != -5) { incRotation = -5; toreturn = true; } } else if (t == 40) { if (incSpeed != -1) { incSpeed = -1; toreturn = true; } } else if (t == 38) { if (incSpeed != 1) { incSpeed = 1; toreturn = true; } } return(toreturn); } function keyUpAction(t) { if (t == 39) { if (incRotation > 0) { incRotation = 0; } } else if (t == 37) { if (incRotation < 0) { incRotation = 0; } } else if (t == 40) { if (incSpeed < 0) { incSpeed = 0; } } else if (t == 38) { if (incSpeed > 0) { incSpeed = 0; } } } init(); initReplayRec(); colShape = new Array(); colShape[0] = {x:-15, y:-30}; colShape[1] = {x:110, y:-30}; colShape[2] = {x:110, y:30}; colShape[3] = {x:-15, y:30}; colShape[4] = colShape[0]; } onClipEvent (keyDown) { if ((_root.timing == true) && (replayPlay == false)) { t = Key.getCode(); if (keyDownAction(t)) { replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:1, keycode:t}; replayRecEventsIndex = replayRecEventsIndex + 1; } } } onClipEvent (keyUp) { a = Key.getAscii(); if (a == 115) { if (((_root.timing == false) && (replayPlay == false)) && (_root.gagnos._visible == false)) { _root.clicStart(); } else if (_root.timing == true) { _root.clicStop(); } } else if ((_root.timing == true) && (replayPlay == false)) { t = Key.getCode(); keyUpAction(t); replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:0, keycode:t}; replayRecEventsIndex = replayRecEventsIndex + 1; } } onClipEvent (enterFrame) { if ((_root.timing == true) && (_root.paused == false)) { if (replayPlay) { currentFrameIsEvented = true; while (currentFrameIsEvented) { nextFrame = replayEvents[replayPlayEventsIndex].framenb; if (nextFrame == replayPlayFrame) { if (replayEvents[replayPlayEventsIndex].updown == 0) { keyUpAction(replayEvents[replayPlayEventsIndex].keycode); } else { keyDownAction(replayEvents[replayPlayEventsIndex].keycode); } replayPlayEventsIndex = replayPlayEventsIndex + 1; } currentFrameIsEvented = false; } replayPlayFrame = replayPlayFrame + 1; } memoX = _x; memoY = _y; memoRot = _rotation; _root.caravane.saveMemo(); oldRot = wheelRotation; oldSpeed = speed; oldCorpsSpeedX = corpsSpeedX; speed = speed + incSpeed; if (speed > maxSpeed) { speed = maxSpeed; } else if (speed < (-maxSpeed)) { speed = -maxSpeed; } if (incSpeed == 0) { speed = speed * speedDecay; tuturevertefeuxarr.gotoAndStop(1); } else { tuturevertefeuxarr.gotoAndStop(2); speed = speed + incSpeed; if (speed > maxSpeed) { speed = maxSpeed; } else if (speed < (-maxSpeed)) { speed = -maxSpeed; } } wheelRotation = wheelRotation + incRotation; if (wheelRotation > maxWheelAngle) { wheelRotation = maxWheelAngle; } else if (wheelRotation < (-maxWheelAngle)) { wheelRotation = -maxWheelAngle; } if (oldRot != wheelRotation) { rouedroite._rotation = wheelRotation; rouegauche._rotation = wheelRotation; } incx = Math.sin(wheelRotation * 0.017453) * speed; _rotation = (_rotation + (((incx / carLength) * 250) / 3.141593)); incy = Math.cos(wheelRotation * 0.017453) * speed; _y = (_y + (Math.sin((_rotation + 0) * 0.017453) * incy)); _x = (_x + (Math.cos((_rotation + 0) * 0.017453) * incy)); if (_y < 0) { _y = (_y + widthScene); _root.caravane.transMemoTracteur(0, widthScene); } else if (_y > widthScene) { _y = (_y - widthScene); _root.caravane.transMemoTracteur(0, -widthScene); } if (_x < 0) { _x = (_x + widthScene); _root.caravane.transMemoTracteur(widthScene, 0); } else if (_x > widthScene) { _x = (_x - widthScene); _root.caravane.transMemoTracteur(-widthScene, 0); } _root.caravane.compute(); A = hit(_root.palmhaut); B = hit(_root.palmbas); C = hit(_root.palmfond); angVoitureCaravane = Math.abs(_rotation - _root.caravane._rotation) % 360; if (angVoitureCaravane > 180) { angVoitureCaravane = 360 - angVoitureCaravane; } if (angVoitureCaravane > 75) { D = true; } else { D = false; } if (((A || (B)) || (C)) || (D)) { if (Math.abs(speed) > 7) { chocs = chocs + 1; forceChocs = forceChocs + Math.abs(speed); } _x = memoX; _y = memoY; _rotation = memoRot; _root.caravane.setMemo(); speed = 0; } else { gagne = _root.caravane.isParked(); if (((gagne == true) && (speed > -1)) && (speed < 1)) { gare = true; if (replayPlay) { _root.timing = false; replayPlay = false; _root.replayos.gotoAndPlay(2); } else { _root.gagnos._visible = true; _root.gagnos.gotoAndPlay(1); _root.elapsedTime = (Math.ceil(_root.elapsedTime) + 8) - random(16); score = (500000 / _root.elapsedTime) - forceChocs; _root.timing = false; _root.paused = false; } _root.playSurround(true); } } } } onClipEvent (load) { maxSpeed = 0; } onClipEvent (enterFrame) { if (Key.isDown(32)) { maxSpeed = 0; } } onClipEvent (enterFrame) { if (!Key.isDown(38)) { incSpeed = 0; } else if (_root.connected == false) { maxSpeed = 3; } else if (_root.connected == true) { maxSpeed = 3; } } onClipEvent (enterFrame) { if (this.hitTest(_root.palmfond._x, _root.palmfond._y, true)) { maxSpeed = 1; } } onClipEvent (enterFrame) { if (!_root.road.hitTest(this._x, this._y, true)) { _root.fault.gotoAndStop(_root.fault._currentframe + 1); } } onClipEvent (enterFrame) { if (Key.isDown(40)) { maxSpeed = 2; incSpeed = -2; } } onClipEvent (enterFrame) { if (this._x > 550) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } else if (this._x < 0) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } else if (this._y < 0) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } else if (this._y > 550) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (((((_root.palmfond.boxx.hitTest(this.front) or _root.palmfond.boxxx.hitTest(this.front)) or _root.palmfond.boxxxx.hitTest(this.front)) or _root.palmfond.boxx.hitTest(this.box1)) or _root.palmfond.boxxx.hitTest(this.box1)) or _root.palmfond.boxxxx.hitTest(this.box1)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 557 MovieClip "caravane" in Frame 33
onClipEvent (load) { function getNewCoord(vx, vy, vax, vay, vbx, vby) { return({a:((vy * vbx) - (vx * vby)) / ((vay * vbx) - (vax * vby)), b:((vy * vax) - (vx * vay)) / ((vby * vax) - (vbx * vay))}); } function init() { _rotation = 0; setMemoTracteur(); r = 130; } function transMemoTracteur(x, y) { old_tracteur_x = old_tracteur_x + x; old_tracteur_y = old_tracteur_y + y; } function setMemoTracteur() { old_tracteur = {x:-28, y:0}; _root.voitureverte.localToGlobal(old_tracteur); old_tracteur_x = old_tracteur.x; old_tracteur_y = old_tracteur.y; _x = old_tracteur_x; _y = old_tracteur_y; _root.ombrecaravane._x = _x + 25; _root.ombrecaravane._y = _y + 25; _root.ombrecaravane._rotation = _rotation; _root.maskcaravane._x = _x; _root.maskcaravane._y = _y; _root.maskcaravane._rotation = _rotation; } function setMemo() { _x = memoX; _y = memoY; _rotation = memoRot; old_tracteur_x = memo_old_tracteur_x; old_tracteur_y = memo_old_tracteur_y; _root.ombrecaravane._x = _x + 25; _root.ombrecaravane._y = _y + 25; _root.ombrecaravane._rotation = _rotation; _root.maskcaravane._x = _x; _root.maskcaravane._y = _y; _root.maskcaravane._rotation = _rotation; } function saveMemo() { memoX = _x; memoY = _y; memoRot = _rotation; memo_old_tracteur_x = old_tracteur_x; memo_old_tracteur_y = old_tracteur_y; } function side(v, po) { return((po.y * v.x) - (po.x * v.y)); } function inShape(p) { toreturn = true; oldPoint = {x:colShape[0].x, y:colShape[0].y}; localToGlobal(oldPoint); i = 0; while (i < 4) { newPoint = {x:colShape[i + 1].x, y:colShape[i + 1].y}; localToGlobal(newPoint); vShape = {x:newPoint.x - oldPoint.x, y:newPoint.y - oldPoint.y}; testPoint = {x:p.x - oldPoint.x, y:p.y - oldPoint.y}; if (side(vShape, testPoint) < 0) { toreturn = false; break; } oldPoint = newPoint; i++; } return(toreturn); } function isParked() { toreturn = true; i = 0; while (i < 4) { p = {x:colShape[i].x, y:colShape[i].y}; localToGlobal(p); if ((((p.x > _root.parking._x) && (p.y > _root.parking._y)) && (p.x < (_root.parking._x + _root.parking._width))) && (p.y < (_root.parking._y + _root.parking._height))) { } else { toreturn = false; } i++; } if (toreturn) { rot = _rotation % 360; if (rot < 0) { rot = rot + 360; } } return(toreturn); } function compute() { new_tracteur = {x:-28, y:0}; _root.voitureverte.localToGlobal(new_tracteur); new_tracteur_x = new_tracteur.x; new_tracteur_y = new_tracteur.y; new_tracteur_rotation = _rotation; centre = {x:-r, y:0}; localToGlobal(centre); toutdroit_x = old_tracteur_x - centre.x; toutdroit_y = old_tracteur_y - centre.y; deptracteur_x = new_tracteur_x - old_tracteur_x; deptracteur_y = new_tracteur_y - old_tracteur_y; deptracteur = getNewCoord(deptracteur_x, deptracteur_y, toutdroit_x, toutdroit_y, -toutdroit_y, toutdroit_x); new_tracteur_rotation = new_tracteur_rotation + ((deptracteur.b * 180) / 3.141593); _x = new_tracteur.x; _y = new_tracteur.y; _rotation = new_tracteur_rotation; old_tracteur_x = _x; old_tracteur_y = _y; _root.ombrecaravane._x = _x + 25; _root.ombrecaravane._y = _y + 25; _root.ombrecaravane._rotation = _rotation; _root.maskcaravane._x = _x; _root.maskcaravane._y = _y; _root.maskcaravane._rotation = _rotation; } init(); colShape = new Array(); colShape[0] = {x:-200, y:-60}; colShape[1] = {x:-50, y:-45}; colShape[2] = {x:-50, y:45}; colShape[3] = {x:-200, y:60}; colShape[4] = colShape[0]; }
Instance of Symbol 470 MovieClip "time" in Frame 33
onClipEvent (enterFrame) { if (_root.finnished.NX == true) { _root.time.gotoAndStop(_root.time._currentframe + 0); } else if (_root.stoptime == false) { _root.time.gotoAndStop(_root.time._currentframe + 2); } }
Instance of Symbol 472 MovieClip "speed" in Frame 33
onClipEvent (enterFrame) { if (_root.score < 0) { _root.score = (_root.score = 0); } }
Instance of Symbol 411 MovieClip "ava" in Frame 33
onClipEvent (enterFrame) { this.drivertext.gotoAndStop(12); }
Instance of Symbol 491 MovieClip "sounds" in Frame 33
onClipEvent (load) { stopAllSounds(); } onClipEvent (enterFrame) { if (Key.isDown(40)) { this.gotoAndStop(2); } else if (Key.isDown(38)) { this.gotoAndStop(3); } else if (Key.isDown(32)) { this.gotoAndStop(4); } else { this.gotoAndStop(1); } }
Frame 34
if (_root.lvls < 9) { _root.lvls = (Number_root.lvls = 8); }
Instance of Symbol 272 MovieClip in Frame 34
onClipEvent (enterFrame) { _root.gotoAndStop(_root._currentframe + 1); }
Frame 35
function getCoordPolaire(p) { dx = p.x; dy = p.y; d = Math.sqrt((dx * dx) + (dy * dy)); if (d == 0) { a = 0; } else { a = Math.acos(dx / d); if (dy < 0) { a = -a; } } return({x:p.x, y:p.y, a:a, d:d}); } function getAlphaNum(number) { toReturn = ""; while (number > 0) { unite = number % baseAlphaNum; if (unite < 10) { toReturn = String.fromCharCode(unite + 48) + toReturn; } else if (unite < 36) { toReturn = String.fromCharCode(unite + 55) + toReturn; } else { toReturn = String.fromCharCode(unite + 61) + toReturn; } var _local2 = (number - unite) / baseAlphaNum; } return(toReturn); } function getNumber(alphanum) { toReturn = 0; l = alphanum.length; i = 0; while (i < l) { unite = alphanum.charCodeAt(i); if ((unite >= 48) && (unite < 58)) { toReturn = ((toReturn * baseAlphaNum) + unite) - 48; } else if ((unite >= 65) && (unite < 91)) { toReturn = ((toReturn * baseAlphaNum) + unite) - 55; } else if ((unite >= 97) && (unite < 123)) { toReturn = ((toReturn * baseAlphaNum) + unite) - 61; } i++; } return(toReturn); } function playSurround(show) { if (show) { playback._visible = play_btn._visible; playback.gotoAndPlay(1); } else { playback._visible = false; } } function showButtons(vis) { pause_btn._visible = vis; play_btn._visible = vis; stop_btn._visible = vis; playback._visible = vis; } function clicStart() { if (!_root.timing) { menuder._visible = false; _root.paused = false; _root.timing = true; } } var vX = _root.voitureverte._x; var vY = _root.voitureverte._y; var vRot = _root.voitureverte._rotation; var xCorps = _root.voitureverte.bustebras._x; var yCorps = _root.voitureverte.bustebras._y; var xTete = _root.voitureverte.tete._x; var yTete = _root.voitureverte.tete._y; var frame = 0; var startFrame = 0; var baseAlphaNum = 62; var timing = false; _root.play_btn.onPress = function () { clicStart(); _root.time.play(); _root.play_btn.gotoAndPlay(51); _root.ava.play(); }; stop(); _root.two = false;
Instance of Symbol 612 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 35
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 318 MovieClip "car1" in Frame 35
onClipEvent (enterFrame) { if (((_root.voitureverte.front.hitTest(this.front) or _root.voitureverte.box1.hitTest(this.front)) or _root.voitureverte.front.hitTest(this.back)) or _root.voitureverte.box1.hitTest(this.back)) { _root.move = true; this._x = this._x + 0; this._y = this._y + 0; _root.voitureverte.gotoAndStop(2); } else if (((((_root.caravane.boxx.hitTest(this.front) or _root.caravane.boxxx.hitTest(this.front)) or _root.caravane.boxxxx.hitTest(this.front)) or _root.caravane.boxx.hitTest(this.b)) or _root.caravane.boxxx.hitTest(this.back)) or _root.caravane.boxxxx.hitTest(this.back)) { _root.move = true; this._x = this._x + 0; this._y = this._y + 0; _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (this._y <= -100) { this._x = -320; this._y = 927.5; } } onClipEvent (enterFrame) { if (_root.T.cant.hitTest(this.mask3)) { this._x = this._x - 0; this._y = this._y + 0; } else if (_root.car2.hitTest(this.mask3)) { this._x = this._x - 0; this._y = this._y + 0; } else if (_root.lost == true) { this._x = this._x - 0; this._y = this._y + 0; } else if (_root.T2.cant.hitTest(this.mask3)) { this._x = this._x - 0; this._y = this._y + 0; } else { this._x = this._x + 8; this._y = this._y - 8; } }
Instance of Symbol 377 MovieClip "voitureverte" in Frame 35
onClipEvent (load) { function setBrasRotation() { xVolant = reposBonhommeVolant - corpsDeltaX; yVolantGauche = corpsDeltaY + posBrasGaucheVolant; yDiff = yVolantGauche - lEpaule; lEpauleGaucheVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant)); alpha = yDiff / xVolant; beta = Math.acos(lEpauleGaucheVolant / (2 * lBras)); Angle1 = ((-(alpha + beta)) * 180) / 3.141593; Angle2 = ((2 * beta) * 180) / 3.141593; bustebras.brasgaucheplein._rotation = Angle1; bustebras.contourbrasgauche._rotation = Angle1; bustebras.contourbrasgauche.avantbras._rotation = Angle2; yVolantDroit = corpsDeltaY - posBrasDroitVolant; yDiff = yVolantDroit + lEpaule; lEpauleDroiteVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant)); alpha = yDiff / xVolant; beta = Math.acos(lEpauleGaucheVolant / (2 * lBras)); Angle1 = ((beta - alpha) * 180) / 3.141593; Angle2 = ((-2 * beta) * 180) / 3.141593; bustebras.brasdroitplein._rotation = Angle1; bustebras.contourbrasdroit._rotation = Angle1; bustebras.contourbrasdroit.avantbras._rotation = Angle2; } function init() { speedDecay = 0.9; incRotation = 0; maxWheelAngle = 55; incSpeed = 0; speed = 0; wheelRotation = 0; carLength = 138.8; incy = 0; incx = 0; _x = _root.vX; _y = _root.vY; _rotation = _root.vRot; rouedroite._rotation = wheelRotation; rouegauche._rotation = wheelRotation; gare = false; _root.gagnos._visible = false; reposBonhommeVolant = 20; rayonVolant = 8; posBrasGaucheVolant = 0; posBrasDroitVolant = 0; corpsDeltaX = 0; corpsDeltaY = 0; maxCorpsDeltaY = 4; corpsSpeedX = 0; maxCorpsDeltaX = 8; minCorpsDeltaX = -5; corpsDecay = 0.5; bustebras._x = _root.xCorps + corpsDeltaX; bustebras._y = _root.yCorps + corpsDeltaY; teteDeltaX = 0; teteDeltaY = 0; teteDecay = 0.5; maxTeteDeltaX = 10; minTeteDeltaX = -8; teteSpeedX = 0; tete._x = (_root.xTete + corpsDeltaX) + teteDeltaX; tete._y = (_root.yTete + corpsDeltaY) + teteDeltaY; bustebras._x = _root.xCorps; bustebras._y = _root.yCorps; lBras = 14; lEpaule = 10; _root.ombrevoiture._x = _x + 10; _root.ombrevoiture._y = _y + 10; _root.ombrevoiture._rotation = _rotation; _root.maskvoiture._x = _x; _root.maskvoiture._y = _y; _root.maskvoiture._rotation = _rotation; setBrasRotation(); tuturevertefeuxarr.gotoAndStop(1); chocs = 0; forceChocs = 0; score = 0; _root.caravane.init(); } function initReplayRec() { replayRecFrame = 0; replayPlayFrame = 0; replayRecEventsIndex = 0; replayPlayEventsIndex = 0; replayEvents = new Array(); replayPlay = false; _root.replayos.gotoAndStop(1); _root.repclign.stop(); _root.repclign._visible = false; } function side(v, po) { return((po.y * v.x) - (po.x * v.y)); } function inShape(p) { toreturn = true; oldPoint = {x:colShape[0].x, y:colShape[0].y}; localToGlobal(oldPoint); i = 0; while (i < 4) { newPoint = {x:colShape[i + 1].x, y:colShape[i + 1].y}; localToGlobal(newPoint); vShape = {x:newPoint.x - oldPoint.x, y:newPoint.y - oldPoint.y}; testPoint = {x:p.x - oldPoint.x, y:p.y - oldPoint.y}; if (side(vShape, testPoint) < 0) { toreturn = false; break; } oldPoint = newPoint; i++; } return(toreturn); } function hit(clip) { return(inShape({x:clip._x, y:clip._y}) || (_root.caravane.inShape({x:clip._x, y:clip._y}))); } function keyDownAction(t) { toreturn = false; if (t == 39) { if (incRotation != 5) { incRotation = 5; toreturn = true; } } else if (t == 37) { if (incRotation != -5) { incRotation = -5; toreturn = true; } } else if (t == 40) { if (incSpeed != -1) { incSpeed = -1; toreturn = true; } } else if (t == 38) { if (incSpeed != 1) { incSpeed = 1; toreturn = true; } } return(toreturn); } function keyUpAction(t) { if (t == 39) { if (incRotation > 0) { incRotation = 0; } } else if (t == 37) { if (incRotation < 0) { incRotation = 0; } } else if (t == 40) { if (incSpeed < 0) { incSpeed = 0; } } else if (t == 38) { if (incSpeed > 0) { incSpeed = 0; } } } init(); initReplayRec(); colShape = new Array(); colShape[0] = {x:-15, y:-30}; colShape[1] = {x:110, y:-30}; colShape[2] = {x:110, y:30}; colShape[3] = {x:-15, y:30}; colShape[4] = colShape[0]; } onClipEvent (keyDown) { if ((_root.timing == true) && (replayPlay == false)) { t = Key.getCode(); if (keyDownAction(t)) { replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:1, keycode:t}; replayRecEventsIndex = replayRecEventsIndex + 1; } } } onClipEvent (keyUp) { a = Key.getAscii(); if (a == 115) { if (((_root.timing == false) && (replayPlay == false)) && (_root.gagnos._visible == false)) { _root.clicStart(); } else if (_root.timing == true) { _root.clicStop(); } } else if ((_root.timing == true) && (replayPlay == false)) { t = Key.getCode(); keyUpAction(t); replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:0, keycode:t}; replayRecEventsIndex = replayRecEventsIndex + 1; } } onClipEvent (enterFrame) { if ((_root.timing == true) && (_root.paused == false)) { if (replayPlay) { currentFrameIsEvented = true; while (currentFrameIsEvented) { nextFrame = replayEvents[replayPlayEventsIndex].framenb; if (nextFrame == replayPlayFrame) { if (replayEvents[replayPlayEventsIndex].updown == 0) { keyUpAction(replayEvents[replayPlayEventsIndex].keycode); } else { keyDownAction(replayEvents[replayPlayEventsIndex].keycode); } replayPlayEventsIndex = replayPlayEventsIndex + 1; } currentFrameIsEvented = false; } replayPlayFrame = replayPlayFrame + 1; } memoX = _x; memoY = _y; memoRot = _rotation; _root.caravane.saveMemo(); oldRot = wheelRotation; oldSpeed = speed; oldCorpsSpeedX = corpsSpeedX; speed = speed + incSpeed; if (speed > maxSpeed) { speed = maxSpeed; } else if (speed < (-maxSpeed)) { speed = -maxSpeed; } if (incSpeed == 0) { speed = speed * speedDecay; tuturevertefeuxarr.gotoAndStop(1); } else { tuturevertefeuxarr.gotoAndStop(2); speed = speed + incSpeed; if (speed > maxSpeed) { speed = maxSpeed; } else if (speed < (-maxSpeed)) { speed = -maxSpeed; } } wheelRotation = wheelRotation + incRotation; if (wheelRotation > maxWheelAngle) { wheelRotation = maxWheelAngle; } else if (wheelRotation < (-maxWheelAngle)) { wheelRotation = -maxWheelAngle; } if (oldRot != wheelRotation) { rouedroite._rotation = wheelRotation; rouegauche._rotation = wheelRotation; } incx = Math.sin(wheelRotation * 0.017453) * speed; _rotation = (_rotation + (((incx / carLength) * 250) / 3.141593)); incy = Math.cos(wheelRotation * 0.017453) * speed; _y = (_y + (Math.sin((_rotation + 0) * 0.017453) * incy)); _x = (_x + (Math.cos((_rotation + 0) * 0.017453) * incy)); if (_y < 0) { _y = (_y + widthScene); _root.caravane.transMemoTracteur(0, widthScene); } else if (_y > widthScene) { _y = (_y - widthScene); _root.caravane.transMemoTracteur(0, -widthScene); } if (_x < 0) { _x = (_x + widthScene); _root.caravane.transMemoTracteur(widthScene, 0); } else if (_x > widthScene) { _x = (_x - widthScene); _root.caravane.transMemoTracteur(-widthScene, 0); } _root.caravane.compute(); A = hit(_root.palmhaut); B = hit(_root.palmbas); C = hit(_root.palmfond); angVoitureCaravane = Math.abs(_rotation - _root.caravane._rotation) % 360; if (angVoitureCaravane > 180) { angVoitureCaravane = 360 - angVoitureCaravane; } if (angVoitureCaravane > 75) { D = true; } else { D = false; } if (((A || (B)) || (C)) || (D)) { if (Math.abs(speed) > 7) { chocs = chocs + 1; forceChocs = forceChocs + Math.abs(speed); } _x = memoX; _y = memoY; _rotation = memoRot; _root.caravane.setMemo(); speed = 0; } else { gagne = _root.caravane.isParked(); if (((gagne == true) && (speed > -1)) && (speed < 1)) { gare = true; if (replayPlay) { _root.timing = false; replayPlay = false; _root.replayos.gotoAndPlay(2); } else { _root.gagnos._visible = true; _root.gagnos.gotoAndPlay(1); _root.elapsedTime = (Math.ceil(_root.elapsedTime) + 8) - random(16); score = (500000 / _root.elapsedTime) - forceChocs; _root.timing = false; _root.paused = false; } _root.playSurround(true); } } } } onClipEvent (load) { maxSpeed = 0; } onClipEvent (enterFrame) { if (Key.isDown(32)) { maxSpeed = 0; } } onClipEvent (enterFrame) { if (!Key.isDown(38)) { incSpeed = 0; } else if (_root.connected == false) { maxSpeed = 3; } else if (_root.connected == true) { maxSpeed = 3; } } onClipEvent (enterFrame) { if (this.hitTest(_root.palmfond._x, _root.palmfond._y, true)) { maxSpeed = 1; } } onClipEvent (enterFrame) { if (!_root.road.hitTest(this._x, this._y, true)) { _root.fault.gotoAndStop(_root.fault._currentframe + 1); } } onClipEvent (enterFrame) { if (Key.isDown(40)) { maxSpeed = 2; incSpeed = -2; } } onClipEvent (enterFrame) { if (this._x > 550) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } else if (this._x < 0) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } else if (this._y < 0) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } else if (this._y > 550) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (((((_root.palmfond.boxx.hitTest(this.front) or _root.palmfond.boxxx.hitTest(this.front)) or _root.palmfond.boxxxx.hitTest(this.front)) or _root.palmfond.boxx.hitTest(this.box1)) or _root.palmfond.boxxx.hitTest(this.box1)) or _root.palmfond.boxxxx.hitTest(this.box1)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 557 MovieClip "caravane" in Frame 35
onClipEvent (load) { function getNewCoord(vx, vy, vax, vay, vbx, vby) { return({a:((vy * vbx) - (vx * vby)) / ((vay * vbx) - (vax * vby)), b:((vy * vax) - (vx * vay)) / ((vby * vax) - (vbx * vay))}); } function init() { _rotation = 315; setMemoTracteur(); r = 130; } function transMemoTracteur(x, y) { old_tracteur_x = old_tracteur_x + x; old_tracteur_y = old_tracteur_y + y; } function setMemoTracteur() { old_tracteur = {x:-28, y:0}; _root.voitureverte.localToGlobal(old_tracteur); old_tracteur_x = old_tracteur.x; old_tracteur_y = old_tracteur.y; _x = old_tracteur_x; _y = old_tracteur_y; _root.ombrecaravane._x = _x + 25; _root.ombrecaravane._y = _y + 25; _root.ombrecaravane._rotation = _rotation; _root.maskcaravane._x = _x; _root.maskcaravane._y = _y; _root.maskcaravane._rotation = _rotation; } function setMemo() { _x = memoX; _y = memoY; _rotation = memoRot; old_tracteur_x = memo_old_tracteur_x; old_tracteur_y = memo_old_tracteur_y; _root.ombrecaravane._x = _x + 25; _root.ombrecaravane._y = _y + 25; _root.ombrecaravane._rotation = _rotation; _root.maskcaravane._x = _x; _root.maskcaravane._y = _y; _root.maskcaravane._rotation = _rotation; } function saveMemo() { memoX = _x; memoY = _y; memoRot = _rotation; memo_old_tracteur_x = old_tracteur_x; memo_old_tracteur_y = old_tracteur_y; } function side(v, po) { return((po.y * v.x) - (po.x * v.y)); } function inShape(p) { toreturn = true; oldPoint = {x:colShape[0].x, y:colShape[0].y}; localToGlobal(oldPoint); i = 0; while (i < 4) { newPoint = {x:colShape[i + 1].x, y:colShape[i + 1].y}; localToGlobal(newPoint); vShape = {x:newPoint.x - oldPoint.x, y:newPoint.y - oldPoint.y}; testPoint = {x:p.x - oldPoint.x, y:p.y - oldPoint.y}; if (side(vShape, testPoint) < 0) { toreturn = false; break; } oldPoint = newPoint; i++; } return(toreturn); } function isParked() { toreturn = true; i = 0; while (i < 4) { p = {x:colShape[i].x, y:colShape[i].y}; localToGlobal(p); if ((((p.x > _root.parking._x) && (p.y > _root.parking._y)) && (p.x < (_root.parking._x + _root.parking._width))) && (p.y < (_root.parking._y + _root.parking._height))) { } else { toreturn = false; } i++; } if (toreturn) { rot = _rotation % 360; if (rot < 0) { rot = rot + 360; } } return(toreturn); } function compute() { new_tracteur = {x:-28, y:0}; _root.voitureverte.localToGlobal(new_tracteur); new_tracteur_x = new_tracteur.x; new_tracteur_y = new_tracteur.y; new_tracteur_rotation = _rotation; centre = {x:-r, y:0}; localToGlobal(centre); toutdroit_x = old_tracteur_x - centre.x; toutdroit_y = old_tracteur_y - centre.y; deptracteur_x = new_tracteur_x - old_tracteur_x; deptracteur_y = new_tracteur_y - old_tracteur_y; deptracteur = getNewCoord(deptracteur_x, deptracteur_y, toutdroit_x, toutdroit_y, -toutdroit_y, toutdroit_x); new_tracteur_rotation = new_tracteur_rotation + ((deptracteur.b * 180) / 3.141593); _x = new_tracteur.x; _y = new_tracteur.y; _rotation = new_tracteur_rotation; old_tracteur_x = _x; old_tracteur_y = _y; _root.ombrecaravane._x = _x + 25; _root.ombrecaravane._y = _y + 25; _root.ombrecaravane._rotation = _rotation; _root.maskcaravane._x = _x; _root.maskcaravane._y = _y; _root.maskcaravane._rotation = _rotation; } init(); colShape = new Array(); colShape[0] = {x:-200, y:-60}; colShape[1] = {x:-50, y:-45}; colShape[2] = {x:-50, y:45}; colShape[3] = {x:-200, y:60}; colShape[4] = colShape[0]; }
Instance of Symbol 470 MovieClip "time" in Frame 35
onClipEvent (enterFrame) { if (_root.finnished.NX == true) { _root.time.gotoAndStop(_root.time._currentframe + 0); } else if (_root.stoptime == false) { _root.time.gotoAndStop(_root.time._currentframe + 1); } }
Instance of Symbol 472 MovieClip "speed" in Frame 35
onClipEvent (enterFrame) { if (_root.score < 0) { _root.score = (_root.score = 0); } }
Instance of Symbol 411 MovieClip "ava" in Frame 35
onClipEvent (enterFrame) { this.drivertext.gotoAndStop(13); }
Instance of Symbol 491 MovieClip "sounds" in Frame 35
onClipEvent (load) { stopAllSounds(); } onClipEvent (enterFrame) { if (Key.isDown(40)) { this.gotoAndStop(2); } else if (Key.isDown(38)) { this.gotoAndStop(3); } else if (Key.isDown(32)) { this.gotoAndStop(4); } else { this.gotoAndStop(1); } }
Frame 36
if (_root.lvls < 9) { _root.lvls = (Number_root.lvls = 8); }
Instance of Symbol 272 MovieClip in Frame 36
onClipEvent (enterFrame) { _root.gotoAndStop(_root._currentframe + 1); }
Frame 37
function getCoordPolaire(p) { dx = p.x; dy = p.y; d = Math.sqrt((dx * dx) + (dy * dy)); if (d == 0) { a = 0; } else { a = Math.acos(dx / d); if (dy < 0) { a = -a; } } return({x:p.x, y:p.y, a:a, d:d}); } function getAlphaNum(number) { toReturn = ""; while (number > 0) { unite = number % baseAlphaNum; if (unite < 10) { toReturn = String.fromCharCode(unite + 48) + toReturn; } else if (unite < 36) { toReturn = String.fromCharCode(unite + 55) + toReturn; } else { toReturn = String.fromCharCode(unite + 61) + toReturn; } var _local2 = (number - unite) / baseAlphaNum; } return(toReturn); } function getNumber(alphanum) { toReturn = 0; l = alphanum.length; i = 0; while (i < l) { unite = alphanum.charCodeAt(i); if ((unite >= 48) && (unite < 58)) { toReturn = ((toReturn * baseAlphaNum) + unite) - 48; } else if ((unite >= 65) && (unite < 91)) { toReturn = ((toReturn * baseAlphaNum) + unite) - 55; } else if ((unite >= 97) && (unite < 123)) { toReturn = ((toReturn * baseAlphaNum) + unite) - 61; } i++; } return(toReturn); } function playSurround(show) { if (show) { playback._visible = play_btn._visible; playback.gotoAndPlay(1); } else { playback._visible = false; } } function showButtons(vis) { pause_btn._visible = vis; play_btn._visible = vis; stop_btn._visible = vis; playback._visible = vis; } function clicStart() { if (!_root.timing) { menuder._visible = false; _root.paused = false; _root.timing = true; } } var vX = _root.voitureverte._x; var vY = _root.voitureverte._y; var vRot = _root.voitureverte._rotation; var xCorps = _root.voitureverte.bustebras._x; var yCorps = _root.voitureverte.bustebras._y; var xTete = _root.voitureverte.tete._x; var yTete = _root.voitureverte.tete._y; var frame = 0; var startFrame = 0; var baseAlphaNum = 62; var timing = false; _root.play_btn.onPress = function () { clicStart(); _root.time.play(); _root.play_btn.gotoAndPlay(51); _root.ava.play(); }; stop(); _root.two = false;
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 377 MovieClip "voitureverte" in Frame 37
onClipEvent (load) { function setBrasRotation() { xVolant = reposBonhommeVolant - corpsDeltaX; yVolantGauche = corpsDeltaY + posBrasGaucheVolant; yDiff = yVolantGauche - lEpaule; lEpauleGaucheVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant)); alpha = yDiff / xVolant; beta = Math.acos(lEpauleGaucheVolant / (2 * lBras)); Angle1 = ((-(alpha + beta)) * 180) / 3.141593; Angle2 = ((2 * beta) * 180) / 3.141593; bustebras.brasgaucheplein._rotation = Angle1; bustebras.contourbrasgauche._rotation = Angle1; bustebras.contourbrasgauche.avantbras._rotation = Angle2; yVolantDroit = corpsDeltaY - posBrasDroitVolant; yDiff = yVolantDroit + lEpaule; lEpauleDroiteVolant = Math.sqrt((yDiff * yDiff) + (xVolant * xVolant)); alpha = yDiff / xVolant; beta = Math.acos(lEpauleGaucheVolant / (2 * lBras)); Angle1 = ((beta - alpha) * 180) / 3.141593; Angle2 = ((-2 * beta) * 180) / 3.141593; bustebras.brasdroitplein._rotation = Angle1; bustebras.contourbrasdroit._rotation = Angle1; bustebras.contourbrasdroit.avantbras._rotation = Angle2; } function init() { speedDecay = 0.9; incRotation = 0; maxWheelAngle = 55; incSpeed = 0; speed = 0; wheelRotation = 0; carLength = 138.8; incy = 0; incx = 0; _x = _root.vX; _y = _root.vY; _rotation = _root.vRot; rouedroite._rotation = wheelRotation; rouegauche._rotation = wheelRotation; gare = false; _root.gagnos._visible = false; reposBonhommeVolant = 20; rayonVolant = 8; posBrasGaucheVolant = 0; posBrasDroitVolant = 0; corpsDeltaX = 0; corpsDeltaY = 0; maxCorpsDeltaY = 4; corpsSpeedX = 0; maxCorpsDeltaX = 8; minCorpsDeltaX = -5; corpsDecay = 0.5; bustebras._x = _root.xCorps + corpsDeltaX; bustebras._y = _root.yCorps + corpsDeltaY; teteDeltaX = 0; teteDeltaY = 0; teteDecay = 0.5; maxTeteDeltaX = 10; minTeteDeltaX = -8; teteSpeedX = 0; tete._x = (_root.xTete + corpsDeltaX) + teteDeltaX; tete._y = (_root.yTete + corpsDeltaY) + teteDeltaY; bustebras._x = _root.xCorps; bustebras._y = _root.yCorps; lBras = 14; lEpaule = 10; _root.ombrevoiture._x = _x + 10; _root.ombrevoiture._y = _y + 10; _root.ombrevoiture._rotation = _rotation; _root.maskvoiture._x = _x; _root.maskvoiture._y = _y; _root.maskvoiture._rotation = _rotation; setBrasRotation(); tuturevertefeuxarr.gotoAndStop(1); chocs = 0; forceChocs = 0; score = 0; _root.caravane.init(); } function initReplayRec() { replayRecFrame = 0; replayPlayFrame = 0; replayRecEventsIndex = 0; replayPlayEventsIndex = 0; replayEvents = new Array(); replayPlay = false; _root.replayos.gotoAndStop(1); _root.repclign.stop(); _root.repclign._visible = false; } function side(v, po) { return((po.y * v.x) - (po.x * v.y)); } function inShape(p) { toreturn = true; oldPoint = {x:colShape[0].x, y:colShape[0].y}; localToGlobal(oldPoint); i = 0; while (i < 4) { newPoint = {x:colShape[i + 1].x, y:colShape[i + 1].y}; localToGlobal(newPoint); vShape = {x:newPoint.x - oldPoint.x, y:newPoint.y - oldPoint.y}; testPoint = {x:p.x - oldPoint.x, y:p.y - oldPoint.y}; if (side(vShape, testPoint) < 0) { toreturn = false; break; } oldPoint = newPoint; i++; } return(toreturn); } function hit(clip) { return(inShape({x:clip._x, y:clip._y}) || (_root.caravane.inShape({x:clip._x, y:clip._y}))); } function keyDownAction(t) { toreturn = false; if (t == 39) { if (incRotation != 5) { incRotation = 5; toreturn = true; } } else if (t == 37) { if (incRotation != -5) { incRotation = -5; toreturn = true; } } else if (t == 40) { if (incSpeed != -1) { incSpeed = -1; toreturn = true; } } else if (t == 38) { if (incSpeed != 1) { incSpeed = 1; toreturn = true; } } return(toreturn); } function keyUpAction(t) { if (t == 39) { if (incRotation > 0) { incRotation = 0; } } else if (t == 37) { if (incRotation < 0) { incRotation = 0; } } else if (t == 40) { if (incSpeed < 0) { incSpeed = 0; } } else if (t == 38) { if (incSpeed > 0) { incSpeed = 0; } } } init(); initReplayRec(); colShape = new Array(); colShape[0] = {x:-15, y:-30}; colShape[1] = {x:110, y:-30}; colShape[2] = {x:110, y:30}; colShape[3] = {x:-15, y:30}; colShape[4] = colShape[0]; } onClipEvent (keyDown) { if ((_root.timing == true) && (replayPlay == false)) { t = Key.getCode(); if (keyDownAction(t)) { replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:1, keycode:t}; replayRecEventsIndex = replayRecEventsIndex + 1; } } } onClipEvent (keyUp) { a = Key.getAscii(); if (a == 115) { if (((_root.timing == false) && (replayPlay == false)) && (_root.gagnos._visible == false)) { _root.clicStart(); } else if (_root.timing == true) { _root.clicStop(); } } else if ((_root.timing == true) && (replayPlay == false)) { t = Key.getCode(); keyUpAction(t); replayEvents[replayRecEventsIndex] = {framenb:replayRecFrame, updown:0, keycode:t}; replayRecEventsIndex = replayRecEventsIndex + 1; } } onClipEvent (enterFrame) { if ((_root.timing == true) && (_root.paused == false)) { if (replayPlay) { currentFrameIsEvented = true; while (currentFrameIsEvented) { nextFrame = replayEvents[replayPlayEventsIndex].framenb; if (nextFrame == replayPlayFrame) { if (replayEvents[replayPlayEventsIndex].updown == 0) { keyUpAction(replayEvents[replayPlayEventsIndex].keycode); } else { keyDownAction(replayEvents[replayPlayEventsIndex].keycode); } replayPlayEventsIndex = replayPlayEventsIndex + 1; } currentFrameIsEvented = false; } replayPlayFrame = replayPlayFrame + 1; } memoX = _x; memoY = _y; memoRot = _rotation; _root.caravane.saveMemo(); oldRot = wheelRotation; oldSpeed = speed; oldCorpsSpeedX = corpsSpeedX; speed = speed + incSpeed; if (speed > maxSpeed) { speed = maxSpeed; } else if (speed < (-maxSpeed)) { speed = -maxSpeed; } if (incSpeed == 0) { speed = speed * speedDecay; tuturevertefeuxarr.gotoAndStop(1); } else { tuturevertefeuxarr.gotoAndStop(2); speed = speed + incSpeed; if (speed > maxSpeed) { speed = maxSpeed; } else if (speed < (-maxSpeed)) { speed = -maxSpeed; } } wheelRotation = wheelRotation + incRotation; if (wheelRotation > maxWheelAngle) { wheelRotation = maxWheelAngle; } else if (wheelRotation < (-maxWheelAngle)) { wheelRotation = -maxWheelAngle; } if (oldRot != wheelRotation) { rouedroite._rotation = wheelRotation; rouegauche._rotation = wheelRotation; } incx = Math.sin(wheelRotation * 0.017453) * speed; _rotation = (_rotation + (((incx / carLength) * 250) / 3.141593)); incy = Math.cos(wheelRotation * 0.017453) * speed; _y = (_y + (Math.sin((_rotation + 0) * 0.017453) * incy)); _x = (_x + (Math.cos((_rotation + 0) * 0.017453) * incy)); if (_y < 0) { _y = (_y + widthScene); _root.caravane.transMemoTracteur(0, widthScene); } else if (_y > widthScene) { _y = (_y - widthScene); _root.caravane.transMemoTracteur(0, -widthScene); } if (_x < 0) { _x = (_x + widthScene); _root.caravane.transMemoTracteur(widthScene, 0); } else if (_x > widthScene) { _x = (_x - widthScene); _root.caravane.transMemoTracteur(-widthScene, 0); } _root.caravane.compute(); A = hit(_root.palmhaut); B = hit(_root.palmbas); C = hit(_root.palmfond); angVoitureCaravane = Math.abs(_rotation - _root.caravane._rotation) % 360; if (angVoitureCaravane > 180) { angVoitureCaravane = 360 - angVoitureCaravane; } if (angVoitureCaravane > 75) { D = true; } else { D = false; } if (((A || (B)) || (C)) || (D)) { if (Math.abs(speed) > 7) { chocs = chocs + 1; forceChocs = forceChocs + Math.abs(speed); } _x = memoX; _y = memoY; _rotation = memoRot; _root.caravane.setMemo(); speed = 0; } else { gagne = _root.caravane.isParked(); if (((gagne == true) && (speed > -1)) && (speed < 1)) { gare = true; if (replayPlay) { _root.timing = false; replayPlay = false; _root.replayos.gotoAndPlay(2); } else { _root.gagnos._visible = true; _root.gagnos.gotoAndPlay(1); _root.elapsedTime = (Math.ceil(_root.elapsedTime) + 8) - random(16); score = (500000 / _root.elapsedTime) - forceChocs; _root.timing = false; _root.paused = false; } _root.playSurround(true); } } } } onClipEvent (load) { maxSpeed = 0; } onClipEvent (enterFrame) { if (Key.isDown(32)) { maxSpeed = 0; } } onClipEvent (enterFrame) { if (!Key.isDown(38)) { incSpeed = 0; } else if (_root.connected == false) { maxSpeed = 3; } else if (_root.connected == true) { maxSpeed = 3; } } onClipEvent (enterFrame) { if (this.hitTest(_root.palmfond._x, _root.palmfond._y, true)) { maxSpeed = 1; } } onClipEvent (enterFrame) { if (!_root.road.hitTest(this._x, this._y, true)) { _root.fault.gotoAndStop(_root.fault._currentframe + 1); } } onClipEvent (enterFrame) { if (Key.isDown(40)) { maxSpeed = 2; incSpeed = -2; } } onClipEvent (enterFrame) { if (this._x > 550) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } else if (this._x < 0) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } else if (this._y < 0) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } else if (this._y > 550) { this.play(); maxSpeed = 0; _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (((((_root.palmfond.boxx.hitTest(this.front) or _root.palmfond.boxxx.hitTest(this.front)) or _root.palmfond.boxxxx.hitTest(this.front)) or _root.palmfond.boxx.hitTest(this.box1)) or _root.palmfond.boxxx.hitTest(this.box1)) or _root.palmfond.boxxxx.hitTest(this.box1)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 338 MovieClip "land" in Frame 37
onClipEvent (enterFrame) { if (this.hitTest(_root.voitureverte._x, _root.voitureverte._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 510 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.lost == true) { this.stop(); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 306 MovieClip in Frame 37
onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.caravane.hitTest(this._x, this._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 470 MovieClip "time" in Frame 37
onClipEvent (enterFrame) { if (_root.finnished.NX == true) { _root.time.gotoAndStop(_root.time._currentframe + 0); } else if (_root.stoptime == false) { _root.time.gotoAndStop(_root.time._currentframe + 1); } }
Instance of Symbol 472 MovieClip "speed" in Frame 37
onClipEvent (enterFrame) { if (_root.score < 0) { _root.score = (_root.score = 0); } }
Instance of Symbol 411 MovieClip "ava" in Frame 37
onClipEvent (enterFrame) { this.drivertext.gotoAndStop(14); }
Instance of Symbol 491 MovieClip "sounds" in Frame 37
onClipEvent (load) { stopAllSounds(); } onClipEvent (enterFrame) { if (Key.isDown(40)) { this.gotoAndStop(2); } else if (Key.isDown(38)) { this.gotoAndStop(3); } else if (Key.isDown(32)) { this.gotoAndStop(4); } else { this.gotoAndStop(1); } }
Frame 38
if (_root.lvls < 9) { _root.lvls = (Number_root.lvls = 8); }
Instance of Symbol 272 MovieClip in Frame 38
onClipEvent (enterFrame) { _root.gotoAndStop(43); }
Frame 40
if (_root.lvls < 9) { _root.lvls = (Number_root.lvls = 8); }
Frame 42
if (_root.lvls < 9) { _root.lvls = (Number_root.lvls = 8); }
Frame 44
if (_root.lvls < 9) { _root.lvls = (Number_root.lvls = 8); }
Frame 46
submitScore.Score = _root.score;
Instance of Symbol 472 MovieClip "speed" in Frame 46
onClipEvent (enterFrame) { if (Key.isDown(65) and Key.isDown(17)) { _root.score = (_root.score = 1337); } } onClipEvent (enterFrame) { if (Key.isDown(68) and Key.isDown(17)) { _root.score = (_root.score = 11333377); } } onClipEvent (enterFrame) { if (_root.score < 0) { _root.score = (_root.score = 0); } }
Instance of Symbol 692 MovieClip [TMPd4lzhusf84] "submitScore" in Frame 46
//component parameters onClipEvent (construct) { btnMC = "submitMe"; gameID = 42; }
Frame 47
function updateScoreboard(sNum) { xmlPlayer = new XML(); xmlPlayer.ignoreWhite = true; xmlPlayer.onLoad = function (success) { if (success) { _root["mcScoreboard" + sNum].mcLoading._visible = false; myPlayer = xmlPlayer.firstChild.childNodes; ctr2 = 0; while (ctr2 < myPlayer.length) { thisPlayer = _root["mcScoreboard" + sNum].sboard.mcScoreHolder.mcScore.duplicateMovieClip("mcScore" + ctr2, ctr2); thisPlayer._y = ctr2 * thisPlayer._height; thisPlayer._visible = true; if ((ctr2 % 2) > 0) { thisPlayer.gotoAndStop(2); } thisPlayer.txtNumber.text = (ctr2 + 1) + ")"; thisPlayer.txtNickname.text = myPlayer[ctr2].attributes.player; thisPlayer.txtScore.text = myPlayer[ctr2].attributes.score; ctr2++; } _root["mcScoreboard" + sNum].sboard.mcScoreHolder.item = myPlayer.length; _root["mcScoreboard" + sNum].sboard.mcScoreHolder.speedy = 0; _root["mcScoreboard" + sNum].sboard.mcScoreHolder.desty = 0; _root["mcScoreboard" + sNum].sboard.mcScoreHolder.onEnterFrame = function () { if ((this.desty < 0) && (this._parent.dir == "up")) { trace("up"); this.desty = this.desty + 10; if (this.desty > 0) { this.desty = 0; } } trace((this._parent.mcBlock._height + " - ") + (this.mcScore._height * this.item)); if ((this.desty > (this._parent.mcBlock._height - (this.mcScore._height * this.item))) && (this._parent.dir == "down")) { trace("down"); this.desty = this.desty - 10; if (this.desty < (this._parent.mcBlock._height - (this.mcScore._height * this.item))) { this.desty = this._parent.mcBlock._height - (this.mcScore._height * this.item); } } this.speedy = (this.desty - this._y) + (this.speedy * 0.4); this._y = this._y + this.speedy; }; } if (sNum == 1) { updateScoreboard(2); } }; if (sNum == 1) { xmlPlayer.load((((("http://" + _root.Dsource) + ".freeonlinegames.com/scoreboard/getTopPlayer.php?id=") + _root.gameID) + "&rand=") + random(999999)); } else if (sNum == 2) { xmlPlayer.load(((((("http://" + _root.Dsource) + ".freeonlinegames.com/scoreboard/getTopPlayer.php?id=") + _root.gameID) + "&rand=") + random(999999)) + "&filt=1"); } } stop(); var gameID = 42; Dsource = "www"; mcScoreboard1.sboard.dir = "stop"; mcScoreboard2.sboard.dir = "stop"; mcScoreboard1.sboard.mcScoreHolder.mcScore._visible = false; mcScoreboard2.sboard.mcScoreHolder.mcScore._visible = false; updateScoreboard(1);
Instance of Symbol 726 MovieClip [TMP6ojzjuzm8i] in Frame 47
//component parameters onClipEvent (construct) { gameID = 42; }
Instance of Symbol 733 MovieClip [TMP6pbk6uzm9i] in Frame 47
//component parameters onClipEvent (construct) { gameID = 42; }
Symbol 12 Button
on (release) { getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=1&area=loader", "_blank"); }
Instance of Symbol 20 MovieClip "mcNotice" in Symbol 57 MovieClip Frame 1
onClipEvent (load) { _visible = false; }
Symbol 57 MovieClip Frame 120
stop(); if ((_url.indexOf("freeonlinegames.com") >= 0) && (_url.indexOf("file:") == -1)) { _root.okToPlay = true; _root.play(); } else if (_root.debug) { _root.okToPlay = true; _root.play(); } else { _root.mcTaglines._visible = false; mcNotice._visible = true; }
Symbol 58 MovieClip Frame 71
stop(); var fogsound = new Sound(); fogsound.attachSound("fogaudio"); fogsound.start(0, 1);
Symbol 61 MovieClip Frame 1
_root.earl223 = function (val) { var _local3 = new Array("_", "Z", "y", "x", "W", "v", "u", "T", "s", "r", "Q", "P", "O", "n", "m", "L", "K", "j", "i", "H", "g", "F", "e", "d", "C", "B", "a"); var _local2 = ""; val1 = 0; while (val1 < val.length) { if (val.substr(val1, 1) == ":") { _local2 = _local2 + ":"; } else if (Number(val.substr(val1, 2)) > 26) { _local2 = _local2 + _local3[Number(val.substr(val1, 1))]; } else if (Number(val.substr(val1, 1)) == 0) { _local2 = _local2 + "_"; } else { _local2 = _local2 + _local3[Number(val.substr(val1, 2))]; val1++; } val1++; } return(_local2); };
Symbol 69 MovieClip Frame 1
stop();
Symbol 129 MovieClip Frame 1
stop(); var tagctr = (random(55) + 1); gotoAndStop(tagctr);
Symbol 130 MovieClip Frame 105
stop();
Symbol 137 MovieClip Frame 1
stop();
Symbol 148 Button
on (release) { getURL ("http://www.freeonlinegames.com/?18wheeler", "_blank"); }
Symbol 203 MovieClip Frame 1
stop();
Instance of Symbol 202 MovieClip "ex" in Symbol 203 MovieClip Frame 1
onClipEvent (enterFrame) { removeMovieClip(_root.time); } onClipEvent (enterFrame) { _root.exam2 = false; }
Symbol 203 MovieClip Frame 2
stop();
Instance of Symbol 202 MovieClip in Symbol 203 MovieClip Frame 2
onClipEvent (enterFrame) { exam2 = true; }
Symbol 205 Button
on (release) { getURL ("http://www.freeonlinegames.com/?18wheeler", "_blank"); }
Symbol 213 MovieClip Frame 20
stop();
Symbol 218 Button
on (release) { getURL ("http://www.freeonlinegames.com/?18wheelerchallenge", "_blank"); }
Symbol 219 MovieClip Frame 10
stop();
Symbol 221 Button
on (release) { getURL ("http://www.freegamesforyourwebsite.com/?18wheeler", "_blank"); }
Symbol 223 Button
on (release) { getURL ("http://www.freegamesforyourwebsite.com/?18wheelerchallenge", "_blank"); }
Symbol 224 MovieClip Frame 20
stop();
Symbol 228 Button
on (release) { play(); }
Symbol 231 Button
on (release) { _root.gotoAndStop("level1"); }
Symbol 238 MovieClip Frame 1
stop();
Symbol 238 MovieClip Frame 11
stop();
Symbol 243 Button
on (release) { play(); }
Symbol 250 Button
on (release) { _parent.gotoAndPlay(51); }
Symbol 252 MovieClip Frame 1
stop();
Symbol 252 MovieClip Frame 11
stop();
Symbol 257 Button
on (release) { _root.gotoAndStop(44); }
Symbol 261 Button
on (release) { getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=1&area=menu", "_blank"); }
Symbol 263 MovieClip Frame 11
stop();
Instance of Symbol 265 MovieClip in Symbol 269 MovieClip Frame 1
onClipEvent (load) { this._visible = false; }
Symbol 276 Button
on (release) { play(); }
Symbol 281 Button
on (release) { _root.gotoAndStop("mainmenu"); }
Symbol 284 Button
on (release) { _root.gotoAndStop("scoreboard"); }
Symbol 285 MovieClip Frame 1
stop();
Symbol 286 Button
on (release) { _parent.gotoAndPlay(12); }
Symbol 288 Button
on (release) { getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=1&area=paused", "_blank"); }
Symbol 291 MovieClip Frame 1
stop();
Symbol 291 MovieClip Frame 11
stop();
Symbol 291 MovieClip Frame 18
gotoAndStop (1);
Symbol 296 MovieClip Frame 1
stop();
Instance of Symbol 310 MovieClip "skinn" in Symbol 318 MovieClip Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 315 MovieClip "mask3" in Symbol 318 MovieClip Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 317 MovieClip "front" in Symbol 318 MovieClip Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 317 MovieClip "back" in Symbol 318 MovieClip Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 317 MovieClip "front" in Symbol 322 MovieClip Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 317 MovieClip "back" in Symbol 322 MovieClip Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 324 MovieClip in Symbol 330 MovieClip Frame 1
onClipEvent (load) { this._visible = false; }
Symbol 339 MovieClip Frame 1
stop();
Symbol 359 MovieClip Frame 1
stop();
Symbol 372 MovieClip Frame 1
stop();
Instance of Symbol 349 MovieClip "tuturevertefeuxarr" in Symbol 373 MovieClip Frame 1
onClipEvent (load) { stop(); }
Instance of Symbol 351 MovieClip "box1" in Symbol 373 MovieClip Frame 1
onClipEvent (enterFrame) { if (_root.box2.hitTest(this)) { _root.gotoAndStop(6); } }
Symbol 374 MovieClip Frame 5
stop();
Symbol 377 MovieClip Frame 1
_root.lost = false; stop();
Instance of Symbol 339 MovieClip in Symbol 377 MovieClip Frame 1
onClipEvent (enterFrame) { if (Key.isDown(38)) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } }
Instance of Symbol 351 MovieClip "box1" in Symbol 377 MovieClip Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 317 MovieClip "front" in Symbol 377 MovieClip Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 317 MovieClip "front2" in Symbol 377 MovieClip Frame 1
onClipEvent (enterFrame) { if ((_root.park.box2.hitTest(this) and _root.voitureverte.box2.hitTest(_root.park.box1)) or (_root.park.box1.hitTest(this) and _root.voitureverte.box2.hitTest(_root.park.box2))) { _root.finnished.gotoAndStop(2); _root.voitureverte.maxSpeed = 0; _root.speed.gotoAndStop(1); } } onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.park2.box1.hitTest(this) and _root.park2.box2.hitTest(_root.voitureverte.box2)) { _root.finnished.gotoAndStop(2); _root.voitureverte.maxSpeed = 0; _root.speed.gotoAndStop(1); } }
Instance of Symbol 317 MovieClip "box2" in Symbol 377 MovieClip Frame 1
onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.box2.hitTest(this)) { _root.gotoAndStop(_root._currentframe + 1); } }
Instance of Symbol 359 MovieClip in Symbol 377 MovieClip Frame 1
onClipEvent (enterFrame) { if (Key.isDown(38)) { this.gotoAndPlay(2); } }
Instance of Symbol 372 MovieClip in Symbol 377 MovieClip Frame 1
onClipEvent (enterFrame) { if (Key.isDown(37)) { this.gotoAndStop(2); } else if (Key.isDown(39)) { this.gotoAndStop(3); } else { this.gotoAndStop(1); } }
Symbol 377 MovieClip Frame 2
_root.finnished.gotoAndStop(3).play(); _root.voitureverte.maxSpeed = 0; _root.lost = true;
Instance of Symbol 374 MovieClip in Symbol 377 MovieClip Frame 2
onClipEvent (enterFrame) { _root.voitureverte.maxSpeed = 0; }
Symbol 410 MovieClip Frame 1
stop();
Symbol 411 MovieClip Frame 10
stop();
Symbol 411 MovieClip Frame 21
stop();
Symbol 415 Button
on (release, keyPress "<Space>") { _root.voitureverte.clicStart(); _root.time.play(); _root.ava.play(); _root.paused = false; _root.timing = true; _root.cargo.play(); _root.play_btn.gotoAndPlay(51); }
Symbol 420 MovieClip Frame 1
_root.stoptime = true;
Symbol 420 MovieClip Frame 2
_root.stoptime = true; _root.time.stop();
Symbol 420 MovieClip Frame 3
_root.stoptime = true;
Symbol 420 MovieClip Frame 24
_root.stoptime = true;
Symbol 420 MovieClip Frame 50
gotoAndPlay (38);
Instance of Symbol 419 MovieClip in Symbol 420 MovieClip Frame 51
onClipEvent (enterFrame) { _root.stoptime = false; }
Symbol 420 MovieClip Frame 65
stop();
Symbol 431 MovieClip Frame 1
stop();
Symbol 431 MovieClip Frame 121
stop(); _root.voitureverte.gotoAndStop(2);
Symbol 438 Button
on (release, keyPress "<Space>") { _root.gotoAndStop(_root._currentframe + 1); }
Symbol 440 MovieClip Frame 42
stop();
Symbol 448 Button
on (release, keyPress "<Space>") { _root.score = Number(_root.score) - 150; _root.gotoAndStop(_root._currentframe - 1); }
Symbol 449 Button
on (release, keyPress "<Space>") { _root.score = Number(_root.score) - 25; _root.gotoAndStop(_root._currentframe - 2); }
Symbol 450 MovieClip Frame 1
stop();
Instance of Symbol 450 MovieClip in Symbol 451 MovieClip Frame 53
onClipEvent (enterFrame) { if (_root.two == true) { this.gotoAndStop(2); } }
Symbol 451 MovieClip Frame 55
stop();
Symbol 452 MovieClip Frame 1
stop(); NX = false;
Symbol 452 MovieClip Frame 2
NX = true;
Instance of Symbol 440 MovieClip "finnished" in Symbol 452 MovieClip Frame 2
onClipEvent (load) { _root.time.stop(); }
Symbol 452 MovieClip Frame 3
NX = false;
Instance of Symbol 451 MovieClip "failed" in Symbol 452 MovieClip Frame 3
onClipEvent (load) { _root.time.stop(); }
Symbol 456 MovieClip Frame 10
stop();
Symbol 457 MovieClip Frame 10
stop();
Symbol 458 MovieClip Frame 1
stop();
Symbol 462 MovieClip Frame 17
gotoAndPlay (15);
Symbol 463 MovieClip Frame 1
stop();
Instance of Symbol 458 MovieClip in Symbol 466 MovieClip Frame 1
onClipEvent (enterFrame) { if (Key.isDown(38)) { this.gotoAndStop(1); } } onClipEvent (enterFrame) { if (Key.isDown(40)) { this.gotoAndStop(2); } }
Instance of Symbol 463 MovieClip in Symbol 466 MovieClip Frame 1
onClipEvent (enterFrame) { if (Key.isDown(38)) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } }
Instance of Symbol 465 MovieClip in Symbol 466 MovieClip Frame 1
onClipEvent (load) { this.gotoAndStop(12); } onClipEvent (enterFrame) { if (Key.isDown(37)) { this.gotoAndStop(_currentframe - 1); } else if (Key.isDown(39)) { this.gotoAndStop(_currentframe + 1); } }
Symbol 468 MovieClip Frame 1
stop();
Symbol 468 MovieClip Frame 2
_root.score = Number(_root.score) + 1000;
Symbol 468 MovieClip Frame 3
_root.score = Number(_root.score) + 950;
Symbol 468 MovieClip Frame 4
_root.score = Number(_root.score) + 900;
Symbol 468 MovieClip Frame 5
_root.score = Number(_root.score) + 850;
Symbol 468 MovieClip Frame 6
_root.score = Number(_root.score) + 800;
Symbol 468 MovieClip Frame 7
_root.score = Number(_root.score) + 750;
Symbol 468 MovieClip Frame 8
_root.score = Number(_root.score) + 700;
Symbol 468 MovieClip Frame 9
_root.score = Number(_root.score) + 650;
Symbol 468 MovieClip Frame 10
_root.score = Number(_root.score) + 600;
Symbol 468 MovieClip Frame 11
_root.score = Number(_root.score) + 550;
Symbol 468 MovieClip Frame 12
_root.score = Number(_root.score) + 500;
Symbol 468 MovieClip Frame 13
_root.score = Number(_root.score) + 450;
Symbol 468 MovieClip Frame 14
_root.score = Number(_root.score) + 400;
Symbol 468 MovieClip Frame 15
_root.score = Number(_root.score) + 350;
Symbol 470 MovieClip Frame 1
stop();
Instance of Symbol 468 MovieClip in Symbol 470 MovieClip Frame 1
onClipEvent (enterFrame) { if (_root.finnished.NX == true) { this.gotoAndStop(2); } }
Symbol 470 MovieClip Frame 2
stop(); _root.speed.play();
Instance of Symbol 468 MovieClip in Symbol 470 MovieClip Frame 126
onClipEvent (enterFrame) { if (_root.finnished.NX == true) { this.gotoAndStop(3); } }
Instance of Symbol 468 MovieClip in Symbol 470 MovieClip Frame 210
onClipEvent (enterFrame) { if (_root.finnished.NX == true) { this.gotoAndStop(4); } }
Instance of Symbol 468 MovieClip in Symbol 470 MovieClip Frame 309
onClipEvent (enterFrame) { if (_root.finnished.NX == true) { this.gotoAndStop(5); } }
Instance of Symbol 468 MovieClip in Symbol 470 MovieClip Frame 398
onClipEvent (enterFrame) { if (_root.finnished.NX == true) { this.gotoAndStop(6); } }
Instance of Symbol 468 MovieClip in Symbol 470 MovieClip Frame 524
onClipEvent (enterFrame) { if (_root.finnished.NX == true) { this.gotoAndStop(7); } }
Instance of Symbol 468 MovieClip in Symbol 470 MovieClip Frame 608
onClipEvent (enterFrame) { if (_root.finnished.NX == true) { this.gotoAndStop(8); } }
Instance of Symbol 468 MovieClip in Symbol 470 MovieClip Frame 740
onClipEvent (enterFrame) { if (_root.finnished.NX == true) { this.gotoAndStop(9); } }
Instance of Symbol 468 MovieClip in Symbol 470 MovieClip Frame 830
onClipEvent (enterFrame) { if (_root.finnished.NX == true) { this.gotoAndStop(10); } }
Instance of Symbol 468 MovieClip in Symbol 470 MovieClip Frame 925
onClipEvent (enterFrame) { if (_root.finnished.NX == true) { this.gotoAndStop(11); } }
Instance of Symbol 468 MovieClip in Symbol 470 MovieClip Frame 1015
onClipEvent (enterFrame) { if (_root.finnished.NX == true) { this.gotoAndStop(12); } }
Instance of Symbol 468 MovieClip in Symbol 470 MovieClip Frame 1093
onClipEvent (enterFrame) { if (_root.finnished.NX == true) { this.gotoAndStop(13); } }
Instance of Symbol 468 MovieClip in Symbol 470 MovieClip Frame 1148
onClipEvent (enterFrame) { if (_root.finnished.NX == true) { this.gotoAndStop(14); } }
Instance of Symbol 468 MovieClip in Symbol 470 MovieClip Frame 1184
onClipEvent (enterFrame) { if (_root.finnished.NX == true) { this.gotoAndStop(15); } }
Symbol 470 MovieClip Frame 1200
stop();
Instance of Symbol 469 MovieClip in Symbol 470 MovieClip Frame 1200
onClipEvent (enterFrame) { _root.voitureverte.gotoAndStop(2); _root.finnished.failed.whyfailed.textwhy = "out of time"; stop(); } onClipEvent (load) { _root.voitureverte.gotoAndStop(2); }
Symbol 472 MovieClip Frame 1
stop();
Symbol 472 MovieClip Frame 3
gotoAndPlay (2); _root.time.gotoAndStop(_root.time._currentframe + 1);
Symbol 478 Button
on (press) { _quality = "LOW"; } on (release) { gotoAndStop (2); }
Symbol 480 Button
on (press) { _quality = "HIGH"; } on (release) { gotoAndStop (1); }
Symbol 482 MovieClip Frame 1
stop();
Symbol 491 MovieClip Frame 1
idle = true; stop();
Symbol 491 MovieClip Frame 2
idle = false;
Symbol 491 MovieClip Frame 3
idle = false;
Symbol 494 MovieClip Frame 3
stop();
Instance of Symbol 318 MovieClip in Symbol 498 MovieClip Frame 1
onClipEvent (enterFrame) { if (((_root.voitureverte.front.hitTest(this.front) or _root.voitureverte.box1.hitTest(this.front)) or _root.voitureverte.front.hitTest(this.back)) or _root.voitureverte.box1.hitTest(this.back)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this.mask3)) { _root.move = true; } else { _root.move = false; } }
Instance of Symbol 318 MovieClip in Symbol 498 MovieClip Frame 140
onClipEvent (enterFrame) { if (((_root.voitureverte.front.hitTest(this.front) or _root.voitureverte.box1.hitTest(this.front)) or _root.voitureverte.front.hitTest(this.back)) or _root.voitureverte.box1.hitTest(this.back)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 318 MovieClip in Symbol 510 MovieClip Frame 1
onClipEvent (enterFrame) { if (((_root.voitureverte.front.hitTest(this.front) or _root.voitureverte.box1.hitTest(this.front)) or _root.voitureverte.front.hitTest(this.back)) or _root.voitureverte.box1.hitTest(this.back)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this.mask3)) { _root.move = true; } else { _root.move = false; } }
Instance of Symbol 318 MovieClip in Symbol 510 MovieClip Frame 95
onClipEvent (enterFrame) { if (((_root.voitureverte.front.hitTest(this.front) or _root.voitureverte.box1.hitTest(this.front)) or _root.voitureverte.front.hitTest(this.back)) or _root.voitureverte.box1.hitTest(this.back)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } }
Symbol 518 MovieClip Frame 3
stop();
Instance of Symbol 317 MovieClip "front" in Symbol 527 MovieClip Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 317 MovieClip "back" in Symbol 527 MovieClip Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 545 MovieClip "cant" in Symbol 548 MovieClip Frame 80
onClipEvent (load) { this._visible = false; }
Instance of Symbol 545 MovieClip "cant" in Symbol 548 MovieClip Frame 256
onClipEvent (load) { this._visible = false; }
Instance of Symbol 552 MovieClip "backhit" in Symbol 557 MovieClip Frame 1
onClipEvent (enterFrame) { if (_root.land.hitTest(this)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 556 MovieClip "toit" in Symbol 557 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_root.land._x, _root.land._y, true)) { _root.voitureverte.gotoAndStop(2); } }
Instance of Symbol 568 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 570 MovieClip "hitpoint" in Symbol 574 MovieClip Frame 1
onClipEvent (load) { this._visible = false; }
Instance of Symbol 318 MovieClip in Symbol 580 MovieClip Frame 1
onClipEvent (enterFrame) { if (((_root.voitureverte.front.hitTest(this.front) or _root.voitureverte.box1.hitTest(this.front)) or _root.voitureverte.front.hitTest(this.back)) or _root.voitureverte.box1.hitTest(this.back)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.voitureverte.hitTest(this.mask3)) { _root.move = true; } else { _root.move = false; } } onClipEvent (enterFrame) { if (((((_root.caravane.boxx.hitTest(this.front) or _root.caravane.boxxx.hitTest(this.front)) or _root.caravane.boxxxx.hitTest(this.front)) or _root.caravane.boxx.hitTest(this.back)) or _root.caravane.boxxx.hitTest(this.back)) or _root.caravane.boxxxx.hitTest(this.back)) { _root.move = true; _root.voitureverte.gotoAndStop(2); } }
Symbol 581 MovieClip Frame 1
stop();
Symbol 581 MovieClip Frame 185
gotoAndPlay (2);
Symbol 591 MovieClip Frame 1
stop();
Symbol 591 MovieClip Frame 4
gotoAndPlay (2); _root.time.gotoAndStop(_root.time._currentframe + 1);
Symbol 640 MovieClip Frame 4
stop();
Instance of Symbol 318 MovieClip "car1" in Symbol 651 MovieClip Frame 1
onClipEvent (enterFrame) { if (((_root.voitureverte.front.hitTest(this.front) or _root.voitureverte.box1.hitTest(this.front)) or _root.voitureverte.front.hitTest(this.back)) or _root.voitureverte.box1.hitTest(this.back)) { _root.move = true; this._x = this._x + 0; this._y = this._y + 0; _root.voitureverte.gotoAndStop(2); } else if (((((_root.caravane.boxx.hitTest(this.front) or _root.caravane.boxxx.hitTest(this.front)) or _root.caravane.boxxxx.hitTest(this.front)) or _root.caravane.boxx.hitTest(this.b)) or _root.caravane.boxxx.hitTest(this.back)) or _root.caravane.boxxxx.hitTest(this.back)) { _root.move = true; this._x = this._x + 0; this._y = this._y + 0; _root.voitureverte.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.T.cant.hitTest(this.mask3)) { this._x = this._x - 0; this._y = this._y + 0; } else if (_root.car2.hitTest(this.mask3)) { this._x = this._x - 0; this._y = this._y + 0; } else if (_root.lost == true) { this._x = this._x - 0; this._y = this._y + 0; } else if (_root.T2.cant.hitTest(this.mask3)) { this._x = this._x - 0; this._y = this._y + 0; } }
Instance of Symbol 659 MovieClip "doorhit" in Symbol 665 MovieClip Frame 1
onClipEvent (enterFrame) { if (((_root.voitureverte.front.hitTest(this) or _root.voitureverte.box1.hitTest(this)) or _root.voitureverte.front.hitTest(this)) or _root.voitureverte.box1.hitTest(this)) { _root.voitureverte.gotoAndStop(2); } else if (((((_root.caravane.boxx.hitTest(this) or _root.caravane.boxxx.hitTest(this)) or _root.caravane.boxxxx.hitTest(this)) or _root.caravane.boxx.hitTest(this)) or _root.caravane.boxxx.hitTest(this)) or _root.caravane.boxxxx.hitTest(this)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; }
Instance of Symbol 659 MovieClip "doorhit" in Symbol 665 MovieClip Frame 172
onClipEvent (enterFrame) { if (((_root.voitureverte.front.hitTest(this) or _root.voitureverte.box1.hitTest(this)) or _root.voitureverte.front.hitTest(this)) or _root.voitureverte.box1.hitTest(this)) { _root.voitureverte.gotoAndStop(2); } else if (((((_root.caravane.boxx.hitTest(this) or _root.caravane.boxxx.hitTest(this)) or _root.caravane.boxxxx.hitTest(this)) or _root.caravane.boxx.hitTest(this)) or _root.caravane.boxxx.hitTest(this)) or _root.caravane.boxxxx.hitTest(this)) { _root.voitureverte.gotoAndStop(2); } } onClipEvent (load) { this._visible = false; }
Symbol 684 Button
on (release) { _root.gotoAndStop("mainmenu"); }
Symbol 685 Button
on (release) { getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=1&area=gameover", "_blank"); }
Symbol 692 MovieClip [TMPd4lzhusf84] Frame 1
function earl223(val) { var _local3 = new Array("_", "Z", "y", "x", "W", "v", "u", "T", "s", "r", "Q", "P", "O", "n", "m", "L", "K", "j", "i", "H", "g", "F", "e", "d", "C", "B", "a"); var _local2 = ""; val1 = 0; while (val1 < val.length) { if (val.substr(val1, 1) == ":") { _local2 = _local2 + ":"; } else if (Number(val.substr(val1, 2)) > 26) { _local2 = _local2 + _local3[Number(val.substr(val1, 1))]; } else if (Number(val.substr(val1, 1)) == 0) { _local2 = _local2 + "_"; } else { _local2 = _local2 + _local3[Number(val.substr(val1, 2))]; val1++; } val1++; } return(_local2); } mcButtonMain.mcButton.FOG.swapDepths(0); mcButtonMain.mcButton.attachMovie(btnMC, "btnMC", 0); mcButtonMain.mcButton.btnMC.onRelease = function () { var _local2 = new LoadVars(); _local2.onLoad = function () { getURL ("http://www.freeonlinegames.com/scoreboard.php?", "_blank"); }; _local2.score = Score; _local2.score2 = earl223(String(Score)); _local2.gamer = gameID; _local2.id = random(9999999); _local2.toString(); _local2.sendAndLoad("http://www.freeonlinegames.com/scoreboard/score_c.php", _local2, "POST"); delete this.onRelease; };
Symbol 697 Button
on (release) { _root.gotoAndPlay("mainmenu"); }
Symbol 708 Button
on (press) { sboard.dir = "up"; } on (release) { sboard.dir = "stop"; }
Symbol 709 Button
on (press) { sboard.dir = "down"; } on (release) { sboard.dir = "stop"; }
Symbol 716 MovieClip Frame 1
stop();
Symbol 716 MovieClip Frame 2
stop();
Symbol 726 MovieClip [TMP6ojzjuzm8i] Frame 1
var arrScore = new Array(); mcScoreboard.sboard.dir = "stop"; mcScoreboard.sboard.mcScoreHolder.mcScore._visible = false; mcLabel._visible = false; var main = this; xmlPlayer = new XML(); xmlPlayer.ignoreWhite = true; xmlPlayer.onLoad = function (success) { if (success) { myPlayer = xmlPlayer.firstChild.childNodes; ctr2 = 0; while (ctr2 < myPlayer.length) { thisPlayer = main.mcScoreboard.sboard.mcScoreHolder.mcScore.duplicateMovieClip("mcScore" + ctr2, ctr2); thisPlayer._y = ctr2 * thisPlayer._height; thisPlayer._visible = true; if ((ctr2 % 2) > 0) { thisPlayer.gotoAndStop(2); } thisPlayer.txtNumber.text = (ctr2 + 1) + ")"; thisPlayer.txtNickname.text = myPlayer[ctr2].attributes.player; thisPlayer.txtScore.text = myPlayer[ctr2].attributes.score; ctr2++; } main.mcScoreboard.mcLoading._visible = false; main.mcScoreboard.sboard.mcScoreHolder.item = myPlayer.length; main.mcScoreboard.sboard.mcScoreHolder.speedy = 0; main.mcScoreboard.sboard.mcScoreHolder.desty = 0; main.mcScoreboard.sboard.mcScoreHolder.onEnterFrame = function () { if ((this.desty < 0) && (this._parent.dir == "up")) { this.desty = this.desty + 10; if (this.desty > 0) { this.desty = 0; } } if ((this.desty > (this._parent.mcBlock._height - (this.mcScore._height * this.item))) && (this._parent.dir == "down")) { this.desty = this.desty - 10; if (this.desty < (this._parent.mcBlock._height - (this.mcScore._height * this.item))) { this.desty = this._parent.mcBlock._height - (this.mcScore._height * this.item); } } this.speedy = (this.desty - this._y) + (this.speedy * 0.4); this._y = this._y + this.speedy; }; } }; xmlPlayer.load((("http://www.freeonlinegames.com/scoreboard/getTopPlayer.php?id=" + _root.gameID) + "&rand=") + random(999999));
Symbol 733 MovieClip [TMP6pbk6uzm9i] Frame 1
var arrScore = new Array(); mcScoreboard.sboard.dir = "stop"; mcScoreboard.sboard.mcScoreHolder.mcScore._visible = false; mcLabel._visible = false; var main = this; xmlPlayer = new XML(); xmlPlayer.ignoreWhite = true; xmlPlayer.onLoad = function (success) { if (success) { myPlayer = xmlPlayer.firstChild.childNodes; ctr2 = 0; while (ctr2 < myPlayer.length) { thisPlayer = main.mcScoreboard.sboard.mcScoreHolder.mcScore.duplicateMovieClip("mcScore" + ctr2, ctr2); thisPlayer._y = ctr2 * thisPlayer._height; thisPlayer._visible = true; if ((ctr2 % 2) > 0) { thisPlayer.gotoAndStop(2); } thisPlayer.txtNumber.text = (ctr2 + 1) + ")"; thisPlayer.txtNickname.text = myPlayer[ctr2].attributes.player; thisPlayer.txtScore.text = myPlayer[ctr2].attributes.score; ctr2++; } main.mcScoreboard.mcLoading._visible = false; main.mcScoreboard.sboard.mcScoreHolder.item = myPlayer.length; main.mcScoreboard.sboard.mcScoreHolder.speedy = 0; main.mcScoreboard.sboard.mcScoreHolder.desty = 0; main.mcScoreboard.sboard.mcScoreHolder.onEnterFrame = function () { if ((this.desty < 0) && (this._parent.dir == "up")) { this.desty = this.desty + 10; if (this.desty > 0) { this.desty = 0; } } if ((this.desty > (this._parent.mcBlock._height - (this.mcScore._height * this.item))) && (this._parent.dir == "down")) { this.desty = this.desty - 10; if (this.desty < (this._parent.mcBlock._height - (this.mcScore._height * this.item))) { this.desty = this._parent.mcBlock._height - (this.mcScore._height * this.item); } } this.speedy = (this.desty - this._y) + (this.speedy * 0.4); this._y = this._y + this.speedy; }; } }; xmlPlayer.load(((("http://www.freeonlinegames.com/scoreboard/getTopPlayer.php?id=" + gameID) + "&rand=") + random(999999)) + "&filt=1");

Library Items

Symbol 1 BitmapUsed by:2
Symbol 2 GraphicUses:1Used by:3  Timeline
Symbol 3 MovieClipUses:2Used by:Timeline
Symbol 4 GraphicUsed by:5
Symbol 5 MovieClipUses:4Used by:58
Symbol 6 GraphicUsed by:58
Symbol 7 GraphicUsed by:8
Symbol 8 MovieClipUses:7Used by:58
Symbol 9 BitmapUsed by:10
Symbol 10 GraphicUses:9Used by:57 58
Symbol 11 GraphicUsed by:12
Symbol 12 ButtonUses:11Used by:58
Symbol 13 GraphicUsed by:58
Symbol 14 BitmapUsed by:15
Symbol 15 GraphicUses:14Used by:57
Symbol 16 FontUsed by:17
Symbol 17 TextUses:16Used by:20
Symbol 18 FontUsed by:19
Symbol 19 TextUses:18Used by:20
Symbol 20 MovieClipUses:17 19Used by:57
Symbol 21 BitmapUsed by:22
Symbol 22 GraphicUses:21Used by:57
Symbol 23 BitmapUsed by:24
Symbol 24 GraphicUses:23Used by:57
Symbol 25 BitmapUsed by:26
Symbol 26 GraphicUses:25Used by:57
Symbol 27 BitmapUsed by:28
Symbol 28 GraphicUses:27Used by:57
Symbol 29 BitmapUsed by:30
Symbol 30 GraphicUses:29Used by:57
Symbol 31 BitmapUsed by:32
Symbol 32 GraphicUses:31Used by:57
Symbol 33 BitmapUsed by:34
Symbol 34 GraphicUses:33Used by:57
Symbol 35 BitmapUsed by:36
Symbol 36 GraphicUses:35Used by:57
Symbol 37 BitmapUsed by:38
Symbol 38 GraphicUses:37Used by:57
Symbol 39 BitmapUsed by:40
Symbol 40 GraphicUses:39Used by:57
Symbol 41 BitmapUsed by:42
Symbol 42 GraphicUses:41Used by:57
Symbol 43 BitmapUsed by:44
Symbol 44 GraphicUses:43Used by:57
Symbol 45 BitmapUsed by:46
Symbol 46 GraphicUses:45Used by:57
Symbol 47 BitmapUsed by:48
Symbol 48 GraphicUses:47Used by:57
Symbol 49 BitmapUsed by:50
Symbol 50 GraphicUses:49Used by:57
Symbol 51 BitmapUsed by:52
Symbol 52 GraphicUses:51Used by:57
Symbol 53 BitmapUsed by:54
Symbol 54 GraphicUses:53Used by:57
Symbol 55 BitmapUsed by:56
Symbol 56 GraphicUses:55Used by:57
Symbol 57 MovieClipUses:15 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 10Used by:58
Symbol 58 MovieClipUses:5 6 8 10 12 13 57Used by:Timeline
Symbol 59 GraphicUsed by:69
Symbol 60 GraphicUsed by:61
Symbol 61 MovieClipUses:60Used by:69
Symbol 62 GraphicUsed by:69
Symbol 63 FontUsed by:64
Symbol 64 EditableTextUses:63Used by:69
Symbol 65 ShapeTweeningUsed by:69
Symbol 66 FontUsed by:67 70 72 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 138
Symbol 67 TextUses:66Used by:69
Symbol 68 GraphicUsed by:69
Symbol 69 MovieClipUses:59 61 62 64 65 67 68Used by:Timeline
Symbol 70 TextUses:66Used by:71
Symbol 71 MovieClipUses:70Used by:130
Symbol 72 TextUses:66Used by:73
Symbol 73 MovieClipUses:72Used by:130
Symbol 74 EditableTextUses:66Used by:129
Symbol 75 EditableTextUses:66Used by:129
Symbol 76 EditableTextUses:66Used by:129
Symbol 77 EditableTextUses:66Used by:129
Symbol 78 EditableTextUses:66Used by:129
Symbol 79 EditableTextUses:66Used by:129
Symbol 80 EditableTextUses:66Used by:129
Symbol 81 EditableTextUses:66Used by:129
Symbol 82 EditableTextUses:66Used by:129
Symbol 83 EditableTextUses:66Used by:129
Symbol 84 EditableTextUses:66Used by:129
Symbol 85 EditableTextUses:66Used by:129
Symbol 86 EditableTextUses:66Used by:129
Symbol 87 EditableTextUses:66Used by:129
Symbol 88 EditableTextUses:66Used by:129
Symbol 89 EditableTextUses:66Used by:129
Symbol 90 EditableTextUses:66Used by:129
Symbol 91 EditableTextUses:66Used by:129
Symbol 92 EditableTextUses:66Used by:129
Symbol 93 EditableTextUses:66Used by:129
Symbol 94 EditableTextUses:66Used by:129
Symbol 95 EditableTextUses:66Used by:129
Symbol 96 EditableTextUses:66Used by:129
Symbol 97 EditableTextUses:66Used by:129
Symbol 98 EditableTextUses:66Used by:129
Symbol 99 EditableTextUses:66Used by:129
Symbol 100 EditableTextUses:66Used by:129
Symbol 101 EditableTextUses:66Used by:129
Symbol 102 EditableTextUses:66Used by:129
Symbol 103 EditableTextUses:66Used by:129
Symbol 104 EditableTextUses:66Used by:129
Symbol 105 EditableTextUses:66Used by:129
Symbol 106 EditableTextUses:66Used by:129
Symbol 107 EditableTextUses:66Used by:129
Symbol 108 EditableTextUses:66Used by:129
Symbol 109 EditableTextUses:66Used by:129
Symbol 110 EditableTextUses:66Used by:129
Symbol 111 EditableTextUses:66Used by:129
Symbol 112 EditableTextUses:66Used by:129
Symbol 113 EditableTextUses:66Used by:129
Symbol 114 EditableTextUses:66Used by:129
Symbol 115 EditableTextUses:66Used by:129
Symbol 116 EditableTextUses:66Used by:129
Symbol 117 EditableTextUses:66Used by:129
Symbol 118 EditableTextUses:66Used by:129
Symbol 119 EditableTextUses:66Used by:129
Symbol 120 EditableTextUses:66Used by:129
Symbol 121 EditableTextUses:66Used by:129
Symbol 122 EditableTextUses:66Used by:129
Symbol 123 EditableTextUses:66Used by:129
Symbol 124 EditableTextUses:66Used by:129
Symbol 125 EditableTextUses:66Used by:129
Symbol 126 EditableTextUses:66Used by:129
Symbol 127 EditableTextUses:66Used by:129
Symbol 128 EditableTextUses:66Used by:129
Symbol 129 MovieClipUses:74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128Used by:130
Symbol 130 MovieClipUses:71 73 129Used by:131
Symbol 131 MovieClipUses:130Used by:Timeline
Symbol 132 GraphicUsed by:Timeline
Symbol 133 Sound [fogaudio]Used by:137
Symbol 134 SoundUsed by:137
Symbol 135 Sound [engine]Used by:137 491
Symbol 136 Sound [truck]Used by:137
Symbol 137 MovieClipUses:133 134 135 136Used by:Timeline
Symbol 138 TextUses:66Used by:Timeline
Symbol 139 BitmapUsed by:140 297 511 512 643 644 646 696
Symbol 140 GraphicUses:139Used by:Timeline
Symbol 141 GraphicUsed by:148
Symbol 142 GraphicUsed by:143 148
Symbol 143 MovieClipUses:142Used by:148
Symbol 144 FontUsed by:145 215 220 230 234 247 249 280 283 287 383 385 387 389 391 393 395 397 399 401 403 405 407 409 444 474 502 506 515 538 562 576 582 592 597 602 637 654 670 678 682 683 699 728
Symbol 145 TextUses:144Used by:148
Symbol 146 GraphicUsed by:147 148
Symbol 147 MovieClipUses:146Used by:148
Symbol 148 ButtonUses:141 143 145 147 142 146Used by:149
Symbol 149 MovieClipUses:148Used by:150
Symbol 150 MovieClipUses:149Used by:151
Symbol 151 MovieClipUses:150Used by:153
Symbol 152 GraphicUsed by:153
Symbol 153 MovieClipUses:151 152Used by:Timeline
Symbol 154 FontUsed by:155 292 695 734
Symbol 155 EditableTextUses:154Used by:Timeline
Symbol 156 GraphicUsed by:199
Symbol 157 FontUsed by:158
Symbol 158 TextUses:157Used by:199
Symbol 159 GraphicUsed by:199
Symbol 160 GraphicUsed by:199
Symbol 161 GraphicUsed by:199
Symbol 162 GraphicUsed by:199
Symbol 163 GraphicUsed by:199
Symbol 164 GraphicUsed by:199
Symbol 165 GraphicUsed by:199
Symbol 166 GraphicUsed by:199
Symbol 167 GraphicUsed by:199
Symbol 168 GraphicUsed by:199
Symbol 169 GraphicUsed by:199
Symbol 170 GraphicUsed by:199
Symbol 171 GraphicUsed by:199
Symbol 172 GraphicUsed by:199
Symbol 173 GraphicUsed by:199
Symbol 174 GraphicUsed by:199
Symbol 175 GraphicUsed by:199
Symbol 176 GraphicUsed by:199
Symbol 177 GraphicUsed by:199
Symbol 178 GraphicUsed by:199
Symbol 179 GraphicUsed by:199
Symbol 180 GraphicUsed by:199
Symbol 181 GraphicUsed by:199
Symbol 182 GraphicUsed by:199
Symbol 183 GraphicUsed by:199
Symbol 184 GraphicUsed by:199
Symbol 185 GraphicUsed by:199
Symbol 186 GraphicUsed by:199
Symbol 187 GraphicUsed by:199
Symbol 188 GraphicUsed by:199
Symbol 189 GraphicUsed by:199
Symbol 190 GraphicUsed by:199
Symbol 191 GraphicUsed by:199
Symbol 192 GraphicUsed by:199
Symbol 193 GraphicUsed by:199
Symbol 194 GraphicUsed by:199
Symbol 195 GraphicUsed by:199
Symbol 196 GraphicUsed by:199
Symbol 197 GraphicUsed by:199
Symbol 198 GraphicUsed by:199
Symbol 199 MovieClipUses:156 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 198Used by:Timeline
Symbol 200 GraphicUsed by:Timeline
Symbol 201 GraphicUsed by:202
Symbol 202 MovieClipUses:201Used by:203
Symbol 203 MovieClipUses:202Used by:Timeline
Symbol 204 GraphicUsed by:205
Symbol 205 ButtonUses:204Used by:Timeline
Symbol 206 SoundUsed by:213 494
Symbol 207 FontUsed by:208 209 294 299 413 414 432 433 437 441 446 484 500 526 672
Symbol 208 TextUses:207Used by:212
Symbol 209 TextUses:207Used by:212
Symbol 210 GraphicUsed by:211
Symbol 211 MovieClipUses:210Used by:212  Timeline
Symbol 212 MovieClipUses:208 209 211Used by:213
Symbol 213 MovieClipUses:206 212Used by:Timeline
Symbol 214 GraphicUsed by:217 218 221 222 223
Symbol 215 TextUses:144Used by:217 218
Symbol 216 SoundUsed by:217 218 221 222 223 231
Symbol 217 ButtonUses:214 215 216Used by:219
Symbol 218 ButtonUses:214 215 216Used by:219
Symbol 219 MovieClipUses:217 218Used by:Timeline
Symbol 220 TextUses:144Used by:221 222 223
Symbol 221 ButtonUses:214 220 216Used by:224
Symbol 222 ButtonUses:214 220 216Used by:224
Symbol 223 ButtonUses:214 220 216Used by:224
Symbol 224 MovieClipUses:221 222 223Used by:Timeline
Symbol 225 FontUsed by:226 240 241 254 255 259 260
Symbol 226 TextUses:225Used by:228
Symbol 227 GraphicUsed by:228
Symbol 228 ButtonUses:226 227Used by:238
Symbol 229 GraphicUsed by:231
Symbol 230 TextUses:144Used by:231
Symbol 231 ButtonUses:229 230 216Used by:238
Symbol 232 BitmapUsed by:233 246 277 307 331 496 504 508 519 528 529 533 540 565 567 571 572 578 584 589 594 599 600 609 649 656 675 698 727
Symbol 233 GraphicUses:232Used by:237
Symbol 234 TextUses:144Used by:237
Symbol 235 GraphicUsed by:236 272 278 415 417 420 440 442 470 548
Symbol 236 MovieClipUses:235Used by:237 251
Symbol 237 MovieClipUses:233 234 236Used by:238
Symbol 238 MovieClipUses:228 231 237Used by:Timeline
Symbol 239 GraphicUsed by:252
Symbol 240 TextUses:225Used by:243 245
Symbol 241 TextUses:225Used by:243 245
Symbol 242 GraphicUsed by:243 245
Symbol 243 ButtonUses:240 241 242Used by:252
Symbol 244 GraphicUsed by:252
Symbol 245 ButtonUses:240 241 242Used by:252
Symbol 246 GraphicUses:232Used by:251
Symbol 247 TextUses:144Used by:251
Symbol 248 GraphicUsed by:250 286 697
Symbol 249 TextUses:144Used by:250 286 697
Symbol 250 ButtonUses:248 249Used by:251
Symbol 251 MovieClipUses:246 236 247 250Used by:252
Symbol 252 MovieClipUses:239 243 244 245 251Used by:Timeline
Symbol 253 GraphicUsed by:257
Symbol 254 TextUses:225Used by:257
Symbol 255 TextUses:225Used by:257
Symbol 256 GraphicUsed by:257
Symbol 257 ButtonUses:253 254 255 256Used by:Timeline
Symbol 258 GraphicUsed by:261
Symbol 259 TextUses:225Used by:261
Symbol 260 TextUses:225Used by:261
Symbol 261 ButtonUses:258 259 260Used by:Timeline
Symbol 262 GraphicUsed by:263
Symbol 263 MovieClipUses:262Used by:Timeline
Symbol 264 GraphicUsed by:265
Symbol 265 MovieClipUses:264Used by:269
Symbol 266 GraphicUsed by:269
Symbol 267 GraphicUsed by:268 684
Symbol 268 MovieClipUses:267Used by:269
Symbol 269 MovieClipUses:265 266 268Used by:Timeline
Symbol 270 FontUsed by:271 274 382 384 386 388 390 392 394 396 398 400 402 404 406 408 475 476 479 481 503 507 516 539 563 577 583 593 598 603 638 655 671 680 681
Symbol 271 TextUses:270Used by:Timeline
Symbol 272 MovieClipUses:235Used by:Timeline
Symbol 273 GraphicUsed by:275 276 281 284 288 290 468 553 685
Symbol 274 TextUses:270Used by:275 276 290
Symbol 275 MovieClipUses:273 274Used by:276 290
Symbol 276 ButtonUses:275 273 274Used by:291
Symbol 277 GraphicUses:232Used by:279
Symbol 278 MovieClipUses:235Used by:279 676
Symbol 279 MovieClipUses:277 278Used by:289
Symbol 280 TextUses:144Used by:281
Symbol 281 ButtonUses:273 280Used by:282
Symbol 282 ButtonUses:281Used by:289
Symbol 283 TextUses:144Used by:284
Symbol 284 ButtonUses:273 283Used by:285
Symbol 285 MovieClipUses:284Used by:289
Symbol 286 ButtonUses:248 249Used by:289
Symbol 287 TextUses:144Used by:288 685
Symbol 288 ButtonUses:273 287Used by:289
Symbol 289 MovieClipUses:279 282 285 286 288Used by:291
Symbol 290 ButtonUses:275 273 274Used by:291
Symbol 291 MovieClipUses:276 289 290Used by:Timeline
Symbol 292 EditableTextUses:154Used by:Timeline
Symbol 293 GraphicUsed by:296
Symbol 294 TextUses:207Used by:296
Symbol 295 SoundUsed by:296
Symbol 296 MovieClipUses:293 294 295Used by:Timeline
Symbol 297 GraphicUses:139Used by:Timeline
Symbol 298 GraphicUsed by:300
Symbol 299 TextUses:207Used by:300
Symbol 300 MovieClipUses:298 299Used by:Timeline
Symbol 301 GraphicUsed by:302
Symbol 302 MovieClipUses:301Used by:Timeline
Symbol 303 GraphicUsed by:304 470
Symbol 304 MovieClipUses:303Used by:Timeline
Symbol 305 GraphicUsed by:306
Symbol 306 MovieClipUses:305Used by:Timeline
Symbol 307 GraphicUses:232Used by:308
Symbol 308 MovieClipUses:307Used by:Timeline
Symbol 309 GraphicUsed by:310
Symbol 310 MovieClipUses:309Used by:318
Symbol 311 GraphicUsed by:318
Symbol 312 GraphicUsed by:313
Symbol 313 MovieClipUses:312Used by:318
Symbol 314 GraphicUsed by:315
Symbol 315 MovieClipUses:314Used by:318
Symbol 316 GraphicUsed by:317 351
Symbol 317 MovieClipUses:316Used by:318 322 330 377 522 527
Symbol 318 MovieClipUses:310 311 313 315 317Used by:498 510 580 651  Timeline
Symbol 319 GraphicUsed by:322
Symbol 320 GraphicUsed by:321
Symbol 321 MovieClipUses:320Used by:322
Symbol 322 MovieClipUses:319 321 317Used by:Timeline
Symbol 323 GraphicUsed by:324 545 588
Symbol 324 MovieClipUses:323Used by:330
Symbol 325 GraphicUsed by:329
Symbol 326 GraphicUsed by:327
Symbol 327 MovieClipUses:326Used by:329
Symbol 328 GraphicUsed by:329
Symbol 329 MovieClipUses:325 327 328Used by:330 522
Symbol 330 MovieClipUses:317 324 329Used by:Timeline
Symbol 331 GraphicUses:232Used by:332
Symbol 332 MovieClipUses:331Used by:338 535 561 575 596
Symbol 333 BitmapUsed by:334 335 379 529 531 558 559 589 666 667
Symbol 334 GraphicUses:333Used by:337
Symbol 335 GraphicUses:333Used by:336
Symbol 336 MovieClipUses:335Used by:337
Symbol 337 MovieClipUses:334 336Used by:338 535 561 575 596
Symbol 338 MovieClipUses:332 337Used by:Timeline
Symbol 339 MovieClipUsed by:377
Symbol 340 GraphicUsed by:373 377
Symbol 341 GraphicUsed by:342
Symbol 342 MovieClipUses:341Used by:373 377
Symbol 343 GraphicUsed by:373 377
Symbol 344 GraphicUsed by:345
Symbol 345 MovieClipUses:344Used by:373 377
Symbol 346 GraphicUsed by:349
Symbol 347 GraphicUsed by:348
Symbol 348 MovieClipUses:347Used by:349
Symbol 349 MovieClipUses:346 348Used by:373 377
Symbol 350 GraphicUsed by:377
Symbol 351 MovieClipUses:316Used by:373 377
Symbol 352 GraphicUsed by:359
Symbol 353 GraphicUsed by:359
Symbol 354 GraphicUsed by:359
Symbol 355 GraphicUsed by:359
Symbol 356 GraphicUsed by:359
Symbol 357 GraphicUsed by:359
Symbol 358 GraphicUsed by:359
Symbol 359 MovieClipUses:352 353 354 355 356 357 358Used by:377
Symbol 360 GraphicUsed by:377
Symbol 361 GraphicUsed by:372
Symbol 362 GraphicUsed by:363
Symbol 363 MovieClipUses:362Used by:372
Symbol 364 GraphicUsed by:370
Symbol 365 GraphicUsed by:370
Symbol 366 GraphicUsed by:370
Symbol 367 GraphicUsed by:370
Symbol 368 GraphicUsed by:370
Symbol 369 GraphicUsed by:370
Symbol 370 MovieClipUses:364 365 366 367 368 369Used by:372
Symbol 371 GraphicUsed by:372
Symbol 372 MovieClipUses:361 363 370 371Used by:377
Symbol 373 MovieClipUses:340 342 343 345 349 351Used by:374
Symbol 374 MovieClipUses:373Used by:377
Symbol 375 SoundUsed by:377
Symbol 376 SoundUsed by:377
Symbol 377 MovieClipUses:339 340 342 343 345 349 350 351 317 359 360 372 374 375 376Used by:Timeline
Symbol 378 GraphicUsed by:411 452
Symbol 379 GraphicUses:333Used by:410
Symbol 380 GraphicUsed by:381
Symbol 381 MovieClipUses:380Used by:410
Symbol 382 TextUses:270Used by:410
Symbol 383 TextUses:144Used by:410
Symbol 384 TextUses:270Used by:410
Symbol 385 TextUses:144Used by:410
Symbol 386 TextUses:270Used by:410
Symbol 387 TextUses:144Used by:410
Symbol 388 TextUses:270Used by:410
Symbol 389 TextUses:144Used by:410
Symbol 390 TextUses:270Used by:410
Symbol 391 TextUses:144Used by:410
Symbol 392 TextUses:270Used by:410
Symbol 393 TextUses:144Used by:410
Symbol 394 TextUses:270Used by:410
Symbol 395 TextUses:144Used by:410
Symbol 396 TextUses:270Used by:410
Symbol 397 TextUses:144Used by:410
Symbol 398 TextUses:270Used by:410
Symbol 399 TextUses:144Used by:410
Symbol 400 TextUses:270Used by:410
Symbol 401 TextUses:144Used by:410
Symbol 402 TextUses:270Used by:410
Symbol 403 TextUses:144Used by:410
Symbol 404 TextUses:270Used by:410
Symbol 405 TextUses:144Used by:410
Symbol 406 TextUses:270Used by:410
Symbol 407 TextUses:144Used by:410
Symbol 408 TextUses:270Used by:410
Symbol 409 TextUses:144Used by:410
Symbol 410 MovieClipUses:379 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 409Used by:411
Symbol 411 MovieClipUses:378 410Used by:Timeline
Symbol 412 GraphicUsed by:420
Symbol 413 TextUses:207Used by:420
Symbol 414 TextUses:207Used by:415 420
Symbol 415 ButtonUses:235 414Used by:416
Symbol 416 MovieClipUses:415Used by:420
Symbol 417 MovieClipUses:235Used by:420 440
Symbol 418 GraphicUsed by:419
Symbol 419 MovieClipUses:418Used by:420
Symbol 420 MovieClipUses:412 413 416 417 235 414 419Used by:Timeline
Symbol 421 GraphicUsed by:431 473
Symbol 422 GraphicUsed by:431
Symbol 423 GraphicUsed by:431
Symbol 424 GraphicUsed by:431
Symbol 425 GraphicUsed by:431
Symbol 426 GraphicUsed by:431
Symbol 427 GraphicUsed by:431
Symbol 428 GraphicUsed by:431
Symbol 429 GraphicUsed by:431
Symbol 430 GraphicUsed by:431
Symbol 431 MovieClipUses:421 422 423 424 425 426 427 428 429 430Used by:Timeline
Symbol 432 TextUses:207Used by:452
Symbol 433 TextUses:207Used by:440
Symbol 434 SoundUsed by:440  Timeline
Symbol 435 SoundUsed by:440
Symbol 436 GraphicUsed by:438
Symbol 437 TextUses:207Used by:438
Symbol 438 ButtonUses:436 437Used by:439
Symbol 439 MovieClipUses:438Used by:440
Symbol 440 MovieClipUses:235 433 434 435 417 439Used by:452
Symbol 441 TextUses:207Used by:442
Symbol 442 MovieClipUses:235 441Used by:451
Symbol 443 GraphicUsed by:445 447 448 449
Symbol 444 EditableTextUses:144Used by:445
Symbol 445 MovieClipUses:443 444Used by:451
Symbol 446 TextUses:207Used by:447 448 449
Symbol 447 MovieClipUses:443 446Used by:448 449
Symbol 448 ButtonUses:443 446 447Used by:450
Symbol 449 ButtonUses:443 446 447Used by:450
Symbol 450 MovieClipUses:448 449Used by:451
Symbol 451 MovieClipUses:442 445 450Used by:452
Symbol 452 MovieClipUses:378 432 440 451Used by:Timeline
Symbol 453 GraphicUsed by:466
Symbol 454 GraphicUsed by:458
Symbol 455 GraphicUsed by:456 457
Symbol 456 MovieClipUses:455Used by:458
Symbol 457 MovieClipUses:455Used by:458
Symbol 458 MovieClipUses:454 456 457Used by:466
Symbol 459 GraphicUsed by:463
Symbol 460 GraphicUsed by:463
Symbol 461 GraphicUsed by:462
Symbol 462 MovieClipUses:461Used by:463
Symbol 463 MovieClipUses:459 460 462Used by:466
Symbol 464 GraphicUsed by:465
Symbol 465 MovieClipUses:464Used by:466
Symbol 466 MovieClipUses:453 458 463 465Used by:Timeline
Symbol 467 GraphicUsed by:469 470
Symbol 468 MovieClipUses:273Used by:470
Symbol 469 MovieClipUses:467Used by:470
Symbol 470 MovieClipUses:467 303 468 235 469Used by:Timeline
Symbol 471 GraphicUsed by:472 591
Symbol 472 MovieClipUses:471Used by:Timeline
Symbol 473 MovieClipUses:421Used by:Timeline
Symbol 474 TextUses:144Used by:Timeline
Symbol 475 EditableTextUses:270Used by:Timeline
Symbol 476 TextUses:270Used by:Timeline
Symbol 477 GraphicUsed by:478 480
Symbol 478 ButtonUses:477Used by:482
Symbol 479 TextUses:270Used by:482
Symbol 480 ButtonUses:477Used by:482
Symbol 481 TextUses:270Used by:482
Symbol 482 MovieClipUses:478 479 480 481Used by:Timeline
Symbol 483 GraphicUsed by:491
Symbol 484 TextUses:207Used by:491
Symbol 485 GraphicUsed by:487
Symbol 486 SoundUsed by:487
Symbol 487 MovieClipUses:485 486Used by:491
Symbol 488 SoundUsed by:491
Symbol 489 SoundUsed by:491
Symbol 490 SoundUsed by:491
Symbol 491 MovieClipUses:483 484 487 135 488 489 490Used by:Timeline
Symbol 492 GraphicUsed by:494 518 640
Symbol 493 SoundUsed by:494
Symbol 494 MovieClipUses:492 206 493Used by:Timeline
Symbol 495 SoundUsed by:Timeline
Symbol 496 GraphicUses:232Used by:497
Symbol 497 MovieClipUses:496Used by:Timeline
Symbol 498 MovieClipUses:318Used by:Timeline
Symbol 499 GraphicUsed by:501
Symbol 500 TextUses:207Used by:501
Symbol 501 MovieClipUses:499 500Used by:Timeline
Symbol 502 TextUses:144Used by:Timeline
Symbol 503 EditableTextUses:270Used by:Timeline
Symbol 504 GraphicUses:232Used by:505
Symbol 505 MovieClipUses:504Used by:Timeline
Symbol 506 TextUses:144Used by:Timeline
Symbol 507 EditableTextUses:270Used by:Timeline
Symbol 508 GraphicUses:232Used by:509
Symbol 509 MovieClipUses:508Used by:Timeline
Symbol 510 MovieClipUses:318Used by:Timeline
Symbol 511 GraphicUses:139Used by:514
Symbol 512 GraphicUses:139Used by:513
Symbol 513 MovieClipUses:512Used by:514
Symbol 514 MovieClipUses:511 513Used by:Timeline
Symbol 515 TextUses:144Used by:Timeline
Symbol 516 EditableTextUses:270Used by:Timeline
Symbol 517 SoundUsed by:518
Symbol 518 MovieClipUses:492 517Used by:Timeline
Symbol 519 GraphicUses:232Used by:520
Symbol 520 MovieClipUses:519Used by:Timeline
Symbol 521 GraphicUsed by:Timeline
Symbol 522 MovieClipUses:329 317Used by:Timeline
Symbol 523 GraphicUsed by:527 556
Symbol 524 GraphicUsed by:525
Symbol 525 MovieClipUses:524Used by:527 556
Symbol 526 TextUses:207Used by:527 556
Symbol 527 MovieClipUses:523 525 526 317Used by:Timeline
Symbol 528 GraphicUses:232Used by:535
Symbol 529 GraphicUses:232 333Used by:530
Symbol 530 MovieClipUses:529Used by:534 535 590
Symbol 531 GraphicUses:333Used by:532
Symbol 532 MovieClipUses:531Used by:534 535 590
Symbol 533 GraphicUses:232Used by:534
Symbol 534 MovieClipUses:533 530 532Used by:535 561 575
Symbol 535 MovieClipUses:528 530 532 332 337 534Used by:Timeline
Symbol 536 GraphicUsed by:537
Symbol 537 MovieClipUses:536Used by:Timeline
Symbol 538 TextUses:144Used by:Timeline
Symbol 539 EditableTextUses:270Used by:Timeline
Symbol 540 GraphicUses:232Used by:541
Symbol 541 MovieClipUses:540Used by:Timeline
Symbol 542 GraphicUsed by:Timeline
Symbol 543 GraphicUsed by:548
Symbol 544 GraphicUsed by:548
Symbol 545 MovieClipUses:323Used by:548
Symbol 546 GraphicUsed by:548
Symbol 547 GraphicUsed by:548
Symbol 548 MovieClipUses:235 543 544 545 546 547Used by:Timeline
Symbol 549 GraphicUsed by:550
Symbol 550 MovieClipUses:549Used by:557
Symbol 551 GraphicUsed by:552
Symbol 552 MovieClipUses:551Used by:557
Symbol 553 MovieClipUses:273Used by:557
Symbol 554 GraphicUsed by:555
Symbol 555 MovieClipUses:554Used by:557
Symbol 556 MovieClipUses:523 525 526Used by:557
Symbol 557 MovieClipUses:550 552 553 555 556Used by:Timeline
Symbol 558 GraphicUses:333Used by:561
Symbol 559 GraphicUses:333Used by:560
Symbol 560 MovieClipUses:559Used by:561
Symbol 561 MovieClipUses:534 332 337 558 560Used by:Timeline
Symbol 562 TextUses:144Used by:Timeline
Symbol 563 EditableTextUses:270Used by:Timeline
Symbol 564 SoundUsed by:Timeline
Symbol 565 GraphicUses:232Used by:566
Symbol 566 MovieClipUses:565Used by:Timeline
Symbol 567 GraphicUses:232Used by:568
Symbol 568 MovieClipUses:567Used by:574
Symbol 569 GraphicUsed by:570
Symbol 570 MovieClipUses:569Used by:574
Symbol 571 GraphicUses:232Used by:574
Symbol 572 GraphicUses:232Used by:573
Symbol 573 MovieClipUses:572Used by:574
Symbol 574 MovieClipUses:568 570 571 573Used by:Timeline
Symbol 575 MovieClipUses:332 337 534Used by:Timeline
Symbol 576 TextUses:144Used by:Timeline
Symbol 577 EditableTextUses:270Used by:Timeline
Symbol 578 GraphicUses:232Used by:579
Symbol 579 MovieClipUses:578Used by:Timeline
Symbol 580 MovieClipUses:318Used by:581
Symbol 581 MovieClipUses:580Used by:Timeline
Symbol 582 TextUses:144Used by:Timeline
Symbol 583 EditableTextUses:270Used by:Timeline
Symbol 584 GraphicUses:232Used by:585
Symbol 585 MovieClipUses:584Used by:Timeline
Symbol 586 GraphicUsed by:587
Symbol 587 MovieClipUses:586Used by:Timeline
Symbol 588 MovieClipUses:323Used by:Timeline
Symbol 589 GraphicUses:232 333Used by:590
Symbol 590 MovieClipUses:589 530 532Used by:Timeline
Symbol 591 MovieClipUses:471Used by:Timeline
Symbol 592 TextUses:144Used by:Timeline
Symbol 593 EditableTextUses:270Used by:Timeline
Symbol 594 GraphicUses:232Used by:595
Symbol 595 MovieClipUses:594Used by:Timeline
Symbol 596 MovieClipUses:332 337Used by:Timeline
Symbol 597 TextUses:144Used by:Timeline
Symbol 598 EditableTextUses:270Used by:Timeline
Symbol 599 GraphicUses:232Used by:Timeline
Symbol 600 GraphicUses:232Used by:601
Symbol 601 MovieClipUses:600Used by:Timeline
Symbol 602 TextUses:144Used by:Timeline
Symbol 603 EditableTextUses:270Used by:Timeline
Symbol 604 BitmapUsed by:605 641
Symbol 605 GraphicUses:604Used by:608
Symbol 606 BitmapUsed by:607
Symbol 607 GraphicUses:606Used by:608
Symbol 608 MovieClipUses:605 607Used by:Timeline
Symbol 609 GraphicUses:232Used by:610
Symbol 610 MovieClipUses:609Used by:Timeline
Symbol 611 GraphicUsed by:612
Symbol 612 MovieClipUses:611Used by:Timeline
Symbol 613 GraphicUsed by:617
Symbol 614 GraphicUsed by:615
Symbol 615 MovieClipUses:614Used by:617
Symbol 616 GraphicUsed by:617
Symbol 617 MovieClipUses:613 615 616Used by:Timeline
Symbol 618 ShapeTweeningUsed by:636
Symbol 619 GraphicUsed by:636
Symbol 620 GraphicUsed by:636
Symbol 621 GraphicUsed by:636
Symbol 622 GraphicUsed by:636
Symbol 623 GraphicUsed by:636
Symbol 624 GraphicUsed by:636
Symbol 625 GraphicUsed by:636
Symbol 626 ShapeTweeningUsed by:636
Symbol 627 GraphicUsed by:636
Symbol 628 GraphicUsed by:636
Symbol 629 GraphicUsed by:636
Symbol 630 GraphicUsed by:636
Symbol 631 GraphicUsed by:636
Symbol 632 GraphicUsed by:636
Symbol 633 GraphicUsed by:636
Symbol 634 GraphicUsed by:636
Symbol 635 GraphicUsed by:636
Symbol 636 MovieClipUses:618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635Used by:Timeline
Symbol 637 TextUses:144Used by:Timeline
Symbol 638 EditableTextUses:270Used by:Timeline
Symbol 639 SoundUsed by:640
Symbol 640 MovieClipUses:492 639Used by:Timeline
Symbol 641 GraphicUses:604Used by:642
Symbol 642 MovieClipUses:641Used by:Timeline
Symbol 643 GraphicUses:139Used by:647
Symbol 644 GraphicUses:139Used by:645
Symbol 645 MovieClipUses:644Used by:647
Symbol 646 GraphicUses:139Used by:647
Symbol 647 MovieClipUses:643 645 646Used by:Timeline
Symbol 648 GraphicUsed by:Timeline
Symbol 649 GraphicUses:232Used by:650
Symbol 650 MovieClipUses:649Used by:Timeline
Symbol 651 MovieClipUses:318Used by:Timeline
Symbol 652 GraphicUsed by:653
Symbol 653 MovieClipUses:652Used by:Timeline
Symbol 654 TextUses:144Used by:Timeline
Symbol 655 EditableTextUses:270Used by:Timeline
Symbol 656 GraphicUses:232Used by:657
Symbol 657 MovieClipUses:656Used by:Timeline
Symbol 658 GraphicUsed by:659
Symbol 659 MovieClipUses:658Used by:665
Symbol 660 GraphicUsed by:664 665
Symbol 661 GraphicUsed by:662
Symbol 662 MovieClipUses:661Used by:664 665
Symbol 663 GraphicUsed by:665
Symbol 664 MovieClipUses:660 662Used by:665
Symbol 665 MovieClipUses:659 660 662 663 664Used by:Timeline
Symbol 666 GraphicUses:333Used by:669
Symbol 667 GraphicUses:333Used by:668
Symbol 668 MovieClipUses:667Used by:669
Symbol 669 MovieClipUses:666 668Used by:Timeline
Symbol 670 TextUses:144Used by:Timeline
Symbol 671 EditableTextUses:270Used by:Timeline
Symbol 672 TextUses:207Used by:Timeline
Symbol 673 GraphicUsed by:Timeline
Symbol 674 MovieClipUsed by:Timeline
Symbol 675 GraphicUses:232Used by:676
Symbol 676 MovieClipUses:675 278Used by:679
Symbol 677 GraphicUsed by:679
Symbol 678 TextUses:144Used by:679
Symbol 679 MovieClipUses:676 677 678Used by:Timeline
Symbol 680 EditableTextUses:270Used by:Timeline
Symbol 681 TextUses:270Used by:Timeline
Symbol 682 TextUses:144Used by:Timeline
Symbol 683 TextUses:144Used by:684
Symbol 684 ButtonUses:267 683Used by:Timeline
Symbol 685 ButtonUses:273 287Used by:Timeline
Symbol 686 GraphicUsed by:689
Symbol 687 FontUsed by:688
Symbol 688 TextUses:687Used by:689
Symbol 689 MovieClipUses:686 688Used by:690
Symbol 690 MovieClipUses:689Used by:691
Symbol 691 MovieClipUses:690Used by:692
Symbol 692 MovieClip [TMPd4lzhusf84]Uses:691Used by:Timeline
Symbol 693 GraphicUsed by:694
Symbol 694 MovieClipUses:693Used by:Timeline
Symbol 695 EditableTextUses:154Used by:Timeline
Symbol 696 GraphicUses:139Used by:Timeline
Symbol 697 ButtonUses:248 249Used by:Timeline
Symbol 698 GraphicUses:232Used by:Timeline
Symbol 699 TextUses:144Used by:Timeline
Symbol 700 GraphicUsed by:701
Symbol 701 MovieClipUses:700Used by:721
Symbol 702 FontUsed by:703
Symbol 703 TextUses:702Used by:704
Symbol 704 MovieClipUses:703Used by:721
Symbol 705 GraphicUsed by:708 709
Symbol 706 GraphicUsed by:708 709
Symbol 707 GraphicUsed by:708 709
Symbol 708 ButtonUses:705 706 707Used by:721
Symbol 709 ButtonUses:705 706 707Used by:721
Symbol 710 GraphicUsed by:720
Symbol 711 FontUsed by:712 713 714
Symbol 712 EditableTextUses:711Used by:716
Symbol 713 EditableTextUses:711Used by:716
Symbol 714 EditableTextUses:711Used by:716
Symbol 715 GraphicUsed by:716
Symbol 716 MovieClipUses:712 713 714 715Used by:717
Symbol 717 MovieClipUses:716Used by:720
Symbol 718 GraphicUsed by:719
Symbol 719 MovieClipUses:718Used by:720
Symbol 720 MovieClipUses:710 717 719Used by:721
Symbol 721 MovieClipUses:701 704 708 709 720Used by:726 733
Symbol 722 GraphicUsed by:725
Symbol 723 FontUsed by:724
Symbol 724 TextUses:723Used by:725
Symbol 725 MovieClipUses:722 724Used by:726
Symbol 726 MovieClip [TMP6ojzjuzm8i]Uses:721 725Used by:Timeline
Symbol 727 GraphicUses:232Used by:Timeline
Symbol 728 TextUses:144Used by:Timeline
Symbol 729 GraphicUsed by:732
Symbol 730 FontUsed by:731
Symbol 731 TextUses:730Used by:732
Symbol 732 MovieClipUses:729 731Used by:733
Symbol 733 MovieClip [TMP6pbk6uzm9i]Uses:721 732Used by:Timeline
Symbol 734 EditableTextUses:154Used by:Timeline

Instance Names

"prel"Frame 1Symbol 69 MovieClip
"mcTaglines"Frame 1Symbol 131 MovieClip
"exam"Frame 4Symbol 203 MovieClip
"slider"Frame 8Symbol 269 MovieClip
"menubtn"Frame 8Symbol 291 MovieClip
"parking"Frame 9Symbol 300 MovieClip
"palmhaut"Frame 9Symbol 302 MovieClip
"palmbas"Frame 9Symbol 302 MovieClip
"palmfond"Frame 9Symbol 302 MovieClip
"box2"Frame 9Symbol 304 MovieClip
"road"Frame 9Symbol 308 MovieClip
"park"Frame 9Symbol 330 MovieClip
"land"Frame 9Symbol 338 MovieClip
"voitureverte"Frame 9Symbol 377 MovieClip
"ava"Frame 9Symbol 411 MovieClip
"play_btn"Frame 9Symbol 420 MovieClip
"fault"Frame 9Symbol 431 MovieClip
"finnished"Frame 9Symbol 452 MovieClip
"time"Frame 9Symbol 470 MovieClip
"speed"Frame 9Symbol 472 MovieClip
"sounds"Frame 9Symbol 491 MovieClip
"road"Frame 11Symbol 497 MovieClip
"parking"Frame 11Symbol 300 MovieClip
"palmhaut"Frame 11Symbol 302 MovieClip
"palmbas"Frame 11Symbol 302 MovieClip
"palmfond"Frame 11Symbol 302 MovieClip
"box2"Frame 11Symbol 304 MovieClip
"park"Frame 11Symbol 330 MovieClip
"movecar"Frame 11Symbol 498 MovieClip
"voitureverte"Frame 11Symbol 377 MovieClip
"land"Frame 11Symbol 338 MovieClip
"ava"Frame 11Symbol 411 MovieClip
"play_btn"Frame 11Symbol 420 MovieClip
"fault"Frame 11Symbol 431 MovieClip
"finnished"Frame 11Symbol 452 MovieClip
"time"Frame 11Symbol 470 MovieClip
"speed"Frame 11Symbol 472 MovieClip
"sounds"Frame 11Symbol 491 MovieClip
"road"Frame 13Symbol 505 MovieClip
"parking"Frame 13Symbol 300 MovieClip
"palmhaut"Frame 13Symbol 302 MovieClip
"palmbas"Frame 13Symbol 302 MovieClip
"palmfond"Frame 13Symbol 302 MovieClip
"box2"Frame 13Symbol 304 MovieClip
"park"Frame 13Symbol 330 MovieClip
"voitureverte"Frame 13Symbol 377 MovieClip
"land"Frame 13Symbol 338 MovieClip
"play_btn"Frame 13Symbol 420 MovieClip
"finnished"Frame 13Symbol 452 MovieClip
"time"Frame 13Symbol 470 MovieClip
"ava"Frame 13Symbol 411 MovieClip
"speed"Frame 13Symbol 472 MovieClip
"fault"Frame 13Symbol 431 MovieClip
"sounds"Frame 13Symbol 491 MovieClip
"road"Frame 15Symbol 509 MovieClip
"parking"Frame 15Symbol 300 MovieClip
"palmhaut"Frame 15Symbol 302 MovieClip
"palmbas"Frame 15Symbol 302 MovieClip
"palmfond"Frame 15Symbol 302 MovieClip
"box2"Frame 15Symbol 304 MovieClip
"car1"Frame 15Symbol 318 MovieClip
"park"Frame 15Symbol 330 MovieClip
"voitureverte"Frame 15Symbol 377 MovieClip
"play_btn"Frame 15Symbol 420 MovieClip
"finnished"Frame 15Symbol 452 MovieClip
"time"Frame 15Symbol 470 MovieClip
"ava"Frame 15Symbol 411 MovieClip
"speed"Frame 15Symbol 472 MovieClip
"fault"Frame 15Symbol 431 MovieClip
"sounds"Frame 15Symbol 491 MovieClip
"road"Frame 17Symbol 520 MovieClip
"parking"Frame 17Symbol 300 MovieClip
"palmhaut"Frame 17Symbol 302 MovieClip
"palmbas"Frame 17Symbol 302 MovieClip
"palmfond"Frame 17Symbol 302 MovieClip
"park2"Frame 17Symbol 522 MovieClip
"voitureverte"Frame 17Symbol 377 MovieClip
"play_btn"Frame 17Symbol 420 MovieClip
"finnished"Frame 17Symbol 452 MovieClip
"time"Frame 17Symbol 470 MovieClip
"ava"Frame 17Symbol 411 MovieClip
"speed"Frame 17Symbol 472 MovieClip
"fault"Frame 17Symbol 431 MovieClip
"sounds"Frame 17Symbol 491 MovieClip
"palmhaut"Frame 19Symbol 302 MovieClip
"palmbas"Frame 19Symbol 302 MovieClip
"palmfond"Frame 19Symbol 302 MovieClip
"road"Frame 19Symbol 541 MovieClip
"car1"Frame 19Symbol 318 MovieClip
"car2"Frame 19Symbol 318 MovieClip
"car3"Frame 19Symbol 318 MovieClip
"voitureverte"Frame 19Symbol 377 MovieClip
"T"Frame 19Symbol 548 MovieClip
"T2"Frame 19Symbol 548 MovieClip
"box2"Frame 19Symbol 304 MovieClip
"palmfond"Frame 19Symbol 557 MovieClip
"time"Frame 19Symbol 470 MovieClip
"play_btn"Frame 19Symbol 420 MovieClip
"finnished"Frame 19Symbol 452 MovieClip
"ava"Frame 19Symbol 411 MovieClip
"speed"Frame 19Symbol 472 MovieClip
"fault"Frame 19Symbol 431 MovieClip
"sounds"Frame 19Symbol 491 MovieClip
"park"Frame 20Symbol 330 MovieClip
"caravane"Frame 20Symbol 557 MovieClip
"palmhaut"Frame 22Symbol 302 MovieClip
"palmbas"Frame 22Symbol 302 MovieClip
"palmfond"Frame 22Symbol 302 MovieClip
"road"Frame 22Symbol 566 MovieClip
"park"Frame 22Symbol 330 MovieClip
"voitureverte"Frame 22Symbol 377 MovieClip
"caravane"Frame 22Symbol 557 MovieClip
"play_btn"Frame 22Symbol 420 MovieClip
"finnished"Frame 22Symbol 452 MovieClip
"time"Frame 22Symbol 470 MovieClip
"ava"Frame 22Symbol 411 MovieClip
"speed"Frame 22Symbol 472 MovieClip
"fault"Frame 22Symbol 431 MovieClip
"sounds"Frame 22Symbol 491 MovieClip
"palmhaut"Frame 24Symbol 302 MovieClip
"palmbas"Frame 24Symbol 302 MovieClip
"palmfond"Frame 24Symbol 302 MovieClip
"road"Frame 24Symbol 579 MovieClip
"cargo"Frame 24Symbol 581 MovieClip
"park"Frame 24Symbol 330 MovieClip
"voitureverte"Frame 24Symbol 377 MovieClip
"caravane"Frame 24Symbol 557 MovieClip
"play_btn"Frame 24Symbol 420 MovieClip
"finnished"Frame 24Symbol 452 MovieClip
"time"Frame 24Symbol 470 MovieClip
"ava"Frame 24Symbol 411 MovieClip
"speed"Frame 24Symbol 472 MovieClip
"fault"Frame 24Symbol 431 MovieClip
"sounds"Frame 24Symbol 491 MovieClip
"road"Frame 26Symbol 585 MovieClip
"parking"Frame 26Symbol 300 MovieClip
"palmhaut"Frame 26Symbol 302 MovieClip
"palmbas"Frame 26Symbol 302 MovieClip
"box2"Frame 26Symbol 304 MovieClip
"voitureverte"Frame 26Symbol 377 MovieClip
"palmfond"Frame 26Symbol 557 MovieClip
"land"Frame 26Symbol 590 MovieClip
"palmfond"Frame 26Symbol 557 MovieClip
"play_btn"Frame 26Symbol 420 MovieClip
"finnished"Frame 26Symbol 452 MovieClip
"time"Frame 26Symbol 470 MovieClip
"ava"Frame 26Symbol 411 MovieClip
"speed"Frame 26Symbol 591 MovieClip
"fault"Frame 26Symbol 431 MovieClip
"sounds"Frame 26Symbol 491 MovieClip
"caravane"Frame 27Symbol 557 MovieClip
"road"Frame 29Symbol 595 MovieClip
"palmhaut"Frame 29Symbol 302 MovieClip
"palmbas"Frame 29Symbol 302 MovieClip
"palmfond"Frame 29Symbol 302 MovieClip
"secondbox"Frame 29Symbol 537 MovieClip
"voitureverte"Frame 29Symbol 377 MovieClip
"caravane"Frame 29Symbol 557 MovieClip
"time"Frame 29Symbol 470 MovieClip
"play_btn"Frame 29Symbol 420 MovieClip
"finnished"Frame 29Symbol 452 MovieClip
"ava"Frame 29Symbol 411 MovieClip
"speed"Frame 29Symbol 472 MovieClip
"fault"Frame 29Symbol 431 MovieClip
"sounds"Frame 29Symbol 491 MovieClip
"palmhaut"Frame 31Symbol 302 MovieClip
"palmbas"Frame 31Symbol 302 MovieClip
"palmfond"Frame 31Symbol 302 MovieClip
"road"Frame 31Symbol 601 MovieClip
"park"Frame 31Symbol 330 MovieClip
"voitureverte"Frame 31Symbol 377 MovieClip
"caravane"Frame 31Symbol 557 MovieClip
"time"Frame 31Symbol 470 MovieClip
"speed"Frame 31Symbol 472 MovieClip
"fault"Frame 31Symbol 431 MovieClip
"play_btn"Frame 31Symbol 420 MovieClip
"finnished"Frame 31Symbol 452 MovieClip
"ava"Frame 31Symbol 411 MovieClip
"sounds"Frame 31Symbol 491 MovieClip
"palmhaut"Frame 33Symbol 302 MovieClip
"palmbas"Frame 33Symbol 302 MovieClip
"palmfond"Frame 33Symbol 302 MovieClip
"road"Frame 33Symbol 610 MovieClip
"park"Frame 33Symbol 330 MovieClip
"car1"Frame 33Symbol 318 MovieClip
"voitureverte"Frame 33Symbol 377 MovieClip
"caravane"Frame 33Symbol 557 MovieClip
"time"Frame 33Symbol 470 MovieClip
"speed"Frame 33Symbol 472 MovieClip
"fault"Frame 33Symbol 431 MovieClip
"play_btn"Frame 33Symbol 420 MovieClip
"finnished"Frame 33Symbol 452 MovieClip
"ava"Frame 33Symbol 411 MovieClip
"sounds"Frame 33Symbol 491 MovieClip
"palmhaut"Frame 35Symbol 302 MovieClip
"palmbas"Frame 35Symbol 302 MovieClip
"palmfond"Frame 35Symbol 302 MovieClip
"road"Frame 35Symbol 650 MovieClip
"park"Frame 35Symbol 330 MovieClip
"car1"Frame 35Symbol 318 MovieClip
"voitureverte"Frame 35Symbol 377 MovieClip
"caravane"Frame 35Symbol 557 MovieClip
"time"Frame 35Symbol 470 MovieClip
"speed"Frame 35Symbol 472 MovieClip
"fault"Frame 35Symbol 431 MovieClip
"play_btn"Frame 35Symbol 420 MovieClip
"finnished"Frame 35Symbol 452 MovieClip
"ava"Frame 35Symbol 411 MovieClip
"sounds"Frame 35Symbol 491 MovieClip
"palmhaut"Frame 37Symbol 302 MovieClip
"palmbas"Frame 37Symbol 302 MovieClip
"palmfond"Frame 37Symbol 302 MovieClip
"road"Frame 37Symbol 657 MovieClip
"park"Frame 37Symbol 330 MovieClip
"voitureverte"Frame 37Symbol 377 MovieClip
"land"Frame 37Symbol 338 MovieClip
"time"Frame 37Symbol 470 MovieClip
"speed"Frame 37Symbol 472 MovieClip
"fault"Frame 37Symbol 431 MovieClip
"play_btn"Frame 37Symbol 420 MovieClip
"finnished"Frame 37Symbol 452 MovieClip
"ava"Frame 37Symbol 411 MovieClip
"sounds"Frame 37Symbol 491 MovieClip
"speed"Frame 46Symbol 472 MovieClip
"submitScore"Frame 46Symbol 692 MovieClip [TMPd4lzhusf84]
"mcNotice"Symbol 57 MovieClip Frame 1Symbol 20 MovieClip
"procent"Symbol 69 MovieClip Frame 1Symbol 64 EditableText
"randomtag"Symbol 129 MovieClip Frame 1Symbol 74 EditableText
"randomtag"Symbol 129 MovieClip Frame 2Symbol 75 EditableText
"randomtag"Symbol 129 MovieClip Frame 3Symbol 76 EditableText
"randomtag"Symbol 129 MovieClip Frame 4Symbol 77 EditableText
"randomtag"Symbol 129 MovieClip Frame 5Symbol 78 EditableText
"randomtag"Symbol 129 MovieClip Frame 6Symbol 79 EditableText
"randomtag"Symbol 129 MovieClip Frame 7Symbol 80 EditableText
"randomtag"Symbol 129 MovieClip Frame 8Symbol 81 EditableText
"randomtag"Symbol 129 MovieClip Frame 9Symbol 82 EditableText
"randomtag"Symbol 129 MovieClip Frame 10Symbol 83 EditableText
"randomtag"Symbol 129 MovieClip Frame 11Symbol 84 EditableText
"randomtag"Symbol 129 MovieClip Frame 12Symbol 85 EditableText
"randomtag"Symbol 129 MovieClip Frame 13Symbol 86 EditableText
"randomtag"Symbol 129 MovieClip Frame 14Symbol 87 EditableText
"randomtag"Symbol 129 MovieClip Frame 15Symbol 88 EditableText
"randomtag"Symbol 129 MovieClip Frame 16Symbol 89 EditableText
"randomtag"Symbol 129 MovieClip Frame 17Symbol 90 EditableText
"randomtag"Symbol 129 MovieClip Frame 18Symbol 91 EditableText
"randomtag"Symbol 129 MovieClip Frame 19Symbol 92 EditableText
"randomtag"Symbol 129 MovieClip Frame 20Symbol 93 EditableText
"randomtag"Symbol 129 MovieClip Frame 21Symbol 94 EditableText
"randomtag"Symbol 129 MovieClip Frame 22Symbol 95 EditableText
"randomtag"Symbol 129 MovieClip Frame 23Symbol 96 EditableText
"randomtag"Symbol 129 MovieClip Frame 24Symbol 97 EditableText
"randomtag"Symbol 129 MovieClip Frame 25Symbol 98 EditableText
"randomtag"Symbol 129 MovieClip Frame 26Symbol 99 EditableText
"randomtag"Symbol 129 MovieClip Frame 27Symbol 100 EditableText
"randomtag"Symbol 129 MovieClip Frame 28Symbol 101 EditableText
"randomtag"Symbol 129 MovieClip Frame 29Symbol 102 EditableText
"randomtag"Symbol 129 MovieClip Frame 30Symbol 103 EditableText
"randomtag"Symbol 129 MovieClip Frame 31Symbol 104 EditableText
"randomtag"Symbol 129 MovieClip Frame 32Symbol 105 EditableText
"randomtag"Symbol 129 MovieClip Frame 33Symbol 106 EditableText
"randomtag"Symbol 129 MovieClip Frame 34Symbol 107 EditableText
"randomtag"Symbol 129 MovieClip Frame 35Symbol 108 EditableText
"randomtag"Symbol 129 MovieClip Frame 36Symbol 109 EditableText
"randomtag"Symbol 129 MovieClip Frame 37Symbol 110 EditableText
"randomtag"Symbol 129 MovieClip Frame 38Symbol 111 EditableText
"randomtag"Symbol 129 MovieClip Frame 39Symbol 112 EditableText
"randomtag"Symbol 129 MovieClip Frame 40Symbol 113 EditableText
"randomtag"Symbol 129 MovieClip Frame 41Symbol 114 EditableText
"randomtag"Symbol 129 MovieClip Frame 42Symbol 115 EditableText
"randomtag"Symbol 129 MovieClip Frame 43Symbol 116 EditableText
"randomtag"Symbol 129 MovieClip Frame 44Symbol 117 EditableText
"randomtag"Symbol 129 MovieClip Frame 45Symbol 118 EditableText
"randomtag"Symbol 129 MovieClip Frame 46Symbol 119 EditableText
"randomtag"Symbol 129 MovieClip Frame 47Symbol 120 EditableText
"randomtag"Symbol 129 MovieClip Frame 48Symbol 121 EditableText
"randomtag"Symbol 129 MovieClip Frame 49Symbol 122 EditableText
"randomtag"Symbol 129 MovieClip Frame 50Symbol 123 EditableText
"randomtag"Symbol 129 MovieClip Frame 51Symbol 124 EditableText
"randomtag"Symbol 129 MovieClip Frame 52Symbol 125 EditableText
"randomtag"Symbol 129 MovieClip Frame 53Symbol 126 EditableText
"randomtag"Symbol 129 MovieClip Frame 54Symbol 127 EditableText
"randomtag"Symbol 129 MovieClip Frame 55Symbol 128 EditableText
"ex"Symbol 203 MovieClip Frame 1Symbol 202 MovieClip
"control"Symbol 269 MovieClip Frame 1Symbol 268 MovieClip
"menu"Symbol 291 MovieClip Frame 1Symbol 276 Button
"menu"Symbol 291 MovieClip Frame 2Symbol 290 Button
"skinn"Symbol 318 MovieClip Frame 1Symbol 310 MovieClip
"skin"Symbol 318 MovieClip Frame 1Symbol 313 MovieClip
"mask3"Symbol 318 MovieClip Frame 1Symbol 315 MovieClip
"front"Symbol 318 MovieClip Frame 1Symbol 317 MovieClip
"back"Symbol 318 MovieClip Frame 1Symbol 317 MovieClip
"front"Symbol 322 MovieClip Frame 1Symbol 317 MovieClip
"back"Symbol 322 MovieClip Frame 1Symbol 317 MovieClip
"box1"Symbol 330 MovieClip Frame 1Symbol 317 MovieClip
"box2"Symbol 330 MovieClip Frame 1Symbol 317 MovieClip
"rouegauche"Symbol 373 MovieClip Frame 1Symbol 342 MovieClip
"rouedroite"Symbol 373 MovieClip Frame 1Symbol 342 MovieClip
"tuturevertefeuxarr"Symbol 373 MovieClip Frame 1Symbol 349 MovieClip
"box1"Symbol 373 MovieClip Frame 1Symbol 351 MovieClip
"rouegauche"Symbol 377 MovieClip Frame 1Symbol 342 MovieClip
"rouedroite"Symbol 377 MovieClip Frame 1Symbol 342 MovieClip
"tuturevertefeuxarr"Symbol 377 MovieClip Frame 1Symbol 349 MovieClip
"box1"Symbol 377 MovieClip Frame 1Symbol 351 MovieClip
"front"Symbol 377 MovieClip Frame 1Symbol 317 MovieClip
"front2"Symbol 377 MovieClip Frame 1Symbol 317 MovieClip
"box2"Symbol 377 MovieClip Frame 1Symbol 317 MovieClip
"drivertext"Symbol 411 MovieClip Frame 2Symbol 410 MovieClip
"whyfailed"Symbol 451 MovieClip Frame 27Symbol 445 MovieClip
"finnished"Symbol 452 MovieClip Frame 2Symbol 440 MovieClip
"failed"Symbol 452 MovieClip Frame 3Symbol 451 MovieClip
"box1"Symbol 522 MovieClip Frame 1Symbol 317 MovieClip
"box2"Symbol 522 MovieClip Frame 1Symbol 317 MovieClip
"front"Symbol 527 MovieClip Frame 1Symbol 317 MovieClip
"back"Symbol 527 MovieClip Frame 1Symbol 317 MovieClip
"cant"Symbol 548 MovieClip Frame 80Symbol 545 MovieClip
"cant"Symbol 548 MovieClip Frame 256Symbol 545 MovieClip
"mask"Symbol 557 MovieClip Frame 1Symbol 550 MovieClip
"backhit"Symbol 557 MovieClip Frame 1Symbol 552 MovieClip
"fronthit"Symbol 557 MovieClip Frame 1Symbol 553 MovieClip
"boxx"Symbol 557 MovieClip Frame 1Symbol 555 MovieClip
"boxxx"Symbol 557 MovieClip Frame 1Symbol 555 MovieClip
"boxxxx"Symbol 557 MovieClip Frame 1Symbol 555 MovieClip
"toit"Symbol 557 MovieClip Frame 1Symbol 556 MovieClip
"hitpoint"Symbol 574 MovieClip Frame 1Symbol 570 MovieClip
"car1"Symbol 651 MovieClip Frame 1Symbol 318 MovieClip
"doorhit"Symbol 665 MovieClip Frame 1Symbol 659 MovieClip
"doorhit"Symbol 665 MovieClip Frame 172Symbol 659 MovieClip
"FOG"Symbol 690 MovieClip Frame 1Symbol 689 MovieClip
"mcButton"Symbol 691 MovieClip Frame 1Symbol 690 MovieClip
"mcButtonMain"Symbol 692 MovieClip [TMPd4lzhusf84] Frame 1Symbol 691 MovieClip
"txtNickname"Symbol 716 MovieClip Frame 1Symbol 712 EditableText
"txtScore"Symbol 716 MovieClip Frame 1Symbol 713 EditableText
"txtNumber"Symbol 716 MovieClip Frame 1Symbol 714 EditableText
"mcScore"Symbol 717 MovieClip Frame 1Symbol 716 MovieClip
"mcScoreHolder"Symbol 720 MovieClip Frame 1Symbol 717 MovieClip
"mcBlock"Symbol 720 MovieClip Frame 1Symbol 719 MovieClip
"mcLoading"Symbol 721 MovieClip Frame 1Symbol 704 MovieClip
"sboard"Symbol 721 MovieClip Frame 1Symbol 720 MovieClip
"mcScoreboard"Symbol 726 MovieClip [TMP6ojzjuzm8i] Frame 1Symbol 721 MovieClip
"mcLabel"Symbol 726 MovieClip [TMP6ojzjuzm8i] Frame 1Symbol 725 MovieClip
"mcScoreboard"Symbol 733 MovieClip [TMP6pbk6uzm9i] Frame 1Symbol 721 MovieClip
"mcLabel"Symbol 733 MovieClip [TMP6pbk6uzm9i] Frame 1Symbol 732 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
Protect (24)Timeline Frame 10 bytes ""
ExportAssets (56)Timeline Frame 2Symbol 133 as "fogaudio"
ExportAssets (56)Timeline Frame 2Symbol 135 as "engine"
ExportAssets (56)Timeline Frame 2Symbol 136 as "truck"
ExportAssets (56)Timeline Frame 46Symbol 692 as "TMPd4lzhusf84"
ExportAssets (56)Timeline Frame 47Symbol 726 as "TMP6ojzjuzm8i"
ExportAssets (56)Timeline Frame 47Symbol 733 as "TMP6pbk6uzm9i"

Labels

"mainmenu"Frame 7
"level1"Frame 8
"scoreboard"Frame 47

Dynamic Text Variables

lvlsSymbol 155 EditableText"0"
lvlsSymbol 292 EditableText"0"
textwhySymbol 444 EditableText"you crashed"
scoreSymbol 475 EditableText"0"
scoreSymbol 503 EditableText"0"
scoreSymbol 507 EditableText"0"
scoreSymbol 516 EditableText"0"
scoreSymbol 539 EditableText"0"
scoreSymbol 563 EditableText"0"
scoreSymbol 577 EditableText"0"
scoreSymbol 583 EditableText"0"
scoreSymbol 593 EditableText"0"
scoreSymbol 598 EditableText"0"
scoreSymbol 603 EditableText"0"
scoreSymbol 638 EditableText"0"
scoreSymbol 655 EditableText"0"
scoreSymbol 671 EditableText"0"
scoreSymbol 680 EditableText"0"
lvlsSymbol 695 EditableText"0"
lvlsSymbol 734 EditableText"0"




http://swfchan.com/10/48042/info.shtml
Created: 30/4 -2019 17:15:45 Last modified: 30/4 -2019 17:15:45 Server time: 22/12 -2024 23:30:35