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

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

Caravan.swf

This is the info page for
Flash #24065

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


Text
Garé

Nombre de chocs :

Score :

Garé

Nombre de chocs :

Score :

Replay ?

Chargement...

parcours modele

parcours modele

parcours modele

00:00:00:00

REPLAY

Enregistrement
du parcours :)


ECHEC :(

ActionScript [AS1/AS2]

Frame 1
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; } number = (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; } 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; _root.play_btn.onPress = function () { if (!_root.timing) { menuder._visible = false; if (_root.voitureverte.gare && (_root.voitureverte.replayPlay == false)) { _root.timer_txt = "00:00:00:00"; _root.voitureverte.init(); _root.voitureverte.initReplayRec(); } if (_root.paused) { } else { startFrame = frame; } _root.paused = false; _root.timing = true; } }; _root.stop_btn.onPress = function () { _root.timing = false; _root.paused = false; _root.timer_txt = "00:00:00:00"; playSurround(true); menuder._visible = true; _root.voitureverte.init(); _root.voitureverte.initReplayRec(); }; _root.pause_btn.onPress = function () { if (_root.timing) { _root.timing = false; _root.paused = true; playSurround(true); } }; _root.onEnterFrame = function () { if (timing) { playSurround(false); elapsedTime = ((frame - startFrame) * 100) / 3; elapsedHours = Math.floor(elapsedTime / 3600000); remaining = elapsedTime - (elapsedHours * 3600000); elapsedM = Math.floor(remaining / 60000); remaining = remaining - (elapsedM * 60000); elapsedS = Math.floor(remaining / 1000); remaining = remaining - (elapsedS * 1000); elapsedH = Math.floor(remaining / 10); if (elapsedHours < 10) { hours = "0" + elapsedHours.toString(); } else { hours = elapsedHours.toString(); } if (elapsedM < 10) { minutes = "0" + elapsedM.toString(); } else { minutes = elapsedM.toString(); } if (elapsedS < 10) { seconds = "0" + elapsedS.toString(); } else { seconds = elapsedS.toString(); } if (elapsedH < 10) { hundredths = "0" + elapsedH.toString(); } else { hundredths = elapsedH.toString(); } _root.timer_txt = (((((hours + ":") + minutes) + ":") + seconds) + ":") + hundredths; frame++; } };
Instance of Symbol 5 MovieClip in Frame 1
on (press) { getURL ("http://www.pepere.org/aventures/pepere.php"); }
Instance of Symbol 17 MovieClip "caravane" in Frame 1
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; } if ((rot > 270) || (rot < 90)) { toreturn = false; } } 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) / Math.PI); _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:-195, y:-60}; colShape[1] = {x:-40, y:-45}; colShape[2] = {x:-40, y:45}; colShape[3] = {x:-195, y:60}; colShape[4] = colShape[0]; } onClipEvent (enterFrame) { }
Instance of Symbol 38 MovieClip "voitureverte" in Frame 1
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) / Math.PI; Angle2 = ((2 * beta) * 180) / Math.PI; 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) / Math.PI; Angle2 = ((-(2 * beta)) * 180) / Math.PI; bustebras.brasdroitplein._rotation = Angle1; bustebras.contourbrasdroit._rotation = Angle1; bustebras.contourbrasdroit.avantbras._rotation = Angle2; } function init() { speedDecay = 0.85; maxSpeed = 10; incRotation = 0; maxWheelAngle = 38; incSpeed = 0; speed = 0; wheelRotation = 0; carLength = 90; 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 startReplayPlay() { init(); replayPlayFrame = 0; replayPlayEventsIndex = 0; replayPlay = true; _root.timing = true; _root.paused = false; _root.timer_txt = "00:00:00:00"; _root.startFrame = _root.frame; _root.repclign._visible = true; _root.repclign.gotoAndPlay(1); } 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; } } } widthScene = 550; 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) { 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; } else { 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 * (Math.PI/180)) * speed; _rotation = (_rotation + (((incx / carLength) * 180) / Math.PI)); incy = Math.cos(wheelRotation * (Math.PI/180)) * speed; _y = (_y + (Math.sin((_rotation + 0) * (Math.PI/180)) * incy)); _x = (_x + (Math.cos((_rotation + 0) * (Math.PI/180)) * 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); } } forceAccelerationY = oldSpeed - speed; if (corpsDeltaY > 0) { forceBack = (-corpsDeltaX) * 0.5; } else { forceBack = (-corpsDeltaX) * 2; } corpsSpeedX = corpsSpeedX + (forceAccelerationY + forceBack); oldCorpsDeltaX = corpsDeltaX; corpsDeltaX = corpsDeltaX + corpsSpeedX; if (corpsDeltaX > maxCorpsDeltaX) { corpsDeltaX = maxCorpsDeltaX; } else if (corpsDeltaX < minCorpsDeltaX) { corpsDeltaX = minCorpsDeltaX; } bustebras._x = _root.xCorps + corpsDeltaX; corpsSpeedX = corpsSpeedX * corpsDecay; teteDeltaX = teteDeltaX + (oldCorpsDeltaX - corpsDeltaX); teteSpeedX = teteSpeedX + ((-teteDeltaX) * 0.5); teteDeltaX = teteDeltaX + teteSpeedX; if (teteDeltaX > maxTeteDeltaX) { teteDeltaX = maxTeteDeltaX; } else if (teteDeltaX < minTeteDeltaX) { teteDeltaX = minTeteDeltaX; } tete._x = (_root.xTete + corpsDeltaX) + teteDeltaX; teteSpeedX = teteSpeedX * teteDecay; if (((oldRot != wheelRotation) || (oldSpeed != speed)) || (oldCorpsSpeedX != corpsSpeedX)) { corpsDeltaY = ((wheelRotation * Math.abs(speed)) * maxCorpsDeltaY) / (maxWheelAngle * maxSpeed); bustebras._y = _root.yCorps + corpsDeltaY; teteDeltaY = corpsDeltaY * 0.3; tete._y = (_root.yTete + corpsDeltaY) + teteDeltaY; posBrasDroitVolant = rayonVolant * Math.sin((Math.abs(2 * wheelRotation) * Math.PI) / (2 * maxWheelAngle)); posBrasGaucheVolant = rayonVolant * Math.sin((Math.abs(2 * wheelRotation) * Math.PI) / (2 * maxWheelAngle)); setBrasRotation(); } _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; if (!replayPlay) { replayRecFrame = replayRecFrame + 1; } } }
Instance of Symbol 109 MovieClip "menuder" in Frame 1
onClipEvent (enterFrame) { if (initDone && (openDone)) { } }
Instance of Symbol 124 MovieClip "message" in Frame 1
onClipEvent (load) { var messagetext; }
Symbol 59 MovieClip Frame 15
stop(); var seschocs = _root.voitureverte.chocs; var sonscore = Math.ceil(_root.voitureverte.score * 100); var sontemps = _root.elapsedTime; if (seschocs < 0) { chocs.text = ""; } else if (seschocs < 2) { chocs.text = seschocs + " choc"; } else { chocs.text = seschocs + " chocs"; } score.text = "score : " + (sonscore / 100); var position = -1; var total = -1; var parcoursenr = 0; enregistrer.onPress = function () { _root.showButtons(false); gotoAndPlay (16); myVar = new LoadVars(); myVar.seschocs = seschocs; myVar.sonscore = sonscore; myVar.sontemps = sontemps; myVar.sonnom = sonnom; myVar.sonsite = sonsite; myVar.fc = _root.voitureverte.forceChocs; myVar.position = -1; myVar.total = -1; myVar.sendAndLoad("caravane.php", myVar, "POST"); myVar.onLoad = function () { position = this.position; total = this.total; if (this.askparcours == 1) { _root.message.messagetext = "Enregistrement\ndu parcours :)"; _root.message.gotoAndPlay(2); myParcours = new LoadVars(); myParcours.sonnom = sonnom; myParcours.sonscore = sonscore; myParcours.parcours = "1.01_"; tmpA = new Array(); i = 0; while (i < _root.voitureverte.replayRecEventsIndex) { tmpA[i] = {clef:(_root.voitureverte.replayEvents[i].updown + "_") + _root.getAlphaNum(_root.voitureverte.replayEvents[i].keycode), framenb:_root.voitureverte.replayEvents[i].framenb}; i++; } tmpA.sortOn(["clef", "framenb"], Array.NUMERIC); theCurrentKey = ""; i = 0; while (i < _root.voitureverte.replayRecEventsIndex) { key = tmpA[i].clef; if (key != theCurrentKey) { if (theCurrentKey != "") { myParcours.parcours = myParcours.parcours + "!"; } theCurrentKey = key; myParcours.parcours = myParcours.parcours + ((theCurrentKey + "_") + _root.getAlphaNum(tmpA[i].framenb)); } else { myParcours.parcours = myParcours.parcours + ("_" + _root.getAlphaNum(tmpA[i].framenb - tmpA[i - 1].framenb)); } i++; } tmpA = new Array(); myParcours.sendAndLoad("caravane.php", myParcours, "POST"); myParcours.onLoad = function () { parcoursenr = this.parcoursenr; _root.replayos.gotoAndPlay(2); _root.showButtons(true); }; } else { _root.replayos.gotoAndPlay(2); _root.showButtons(true); } }; };
Symbol 59 MovieClip Frame 30
_visible = false; stop();
Symbol 67 MovieClip Frame 1
_visible = false; stop();
Symbol 67 MovieClip Frame 2
_visible = true;
Symbol 67 MovieClip Frame 15
stop(); classement.text = ""; if ((_root.gagnos.position > 0) && (_root.gagnos.total > 0)) { if (_root.gagnos.position == 1) { eme = "er"; } else { eme = "\u00E8me"; } classement.text = (((_root.gagnos.position + "") + eme) + " sur ") + _root.gagnos.total; } goreplay.onPress = function () { gotoAndPlay (16); _root.voitureverte.startReplayPlay(); };
Symbol 67 MovieClip Frame 30
_visible = false; stop();
Symbol 70 MovieClip Frame 1
onRollOut = function () { _root.menuder.gotoAndPlay(1); }; onRollOver = function () { _root.menuder.gotoAndPlay(2); }; onPress = function () { _root.menuder.gotoAndPlay(8); };
Symbol 87 MovieClip Frame 15
gotoAndPlay (1);
Symbol 100 MovieClip Frame 1
stop();
Symbol 100 MovieClip Frame 4
gotoAndPlay (2);
Symbol 103 MovieClip Frame 1
stop();
Symbol 103 MovieClip Frame 4
gotoAndPlay (2);
Symbol 106 MovieClip Frame 1
stop(); onRollOut = function () { gotoAndPlay (1); }; onRollOver = function () { gotoAndPlay (2); }; onPress = function () { _root.menuder.theparcours.loadModelAndPlay(theindice); stop(); }; coupcoeur.gotoAndPlay(1); coupcoeur._visible = thecoeur; nouv.gotoAndPlay(1); nouv._visible = thenouv; parcourstexte.text = thetext;
Symbol 106 MovieClip Frame 2
onRollOut = function () { gotoAndPlay (1); }; onRollOver = function () { }; onPress = function () { _root.menuder.theparcours.loadModelAndPlay(theindice); stop(); }; coupcoeur.gotoAndPlay(2); coupcoeur._visible = thecoeur; nouv.gotoAndPlay(2); nouv._visible = thenouv; parcourstexte.text = thetext;
Symbol 106 MovieClip Frame 7
stop(); onPress = function () { _root.menuder.theparcours.loadModelAndPlay(theindice); stop(); }; coupcoeur._visible = thecoeur; nouv._visible = thenouv; parcourstexte.text = thetext;
Instance of Symbol 106 MovieClip "themodel1" in Symbol 107 MovieClip Frame 1
onClipEvent (load) { var thetext; var theindice; var thecoeur; var thenouv; }
Instance of Symbol 106 MovieClip "themodel2" in Symbol 107 MovieClip Frame 1
onClipEvent (load) { var thetext; var theindice; }
Instance of Symbol 106 MovieClip "themodel10" in Symbol 107 MovieClip Frame 1
onClipEvent (load) { var thetext; var theindice; }
Instance of Symbol 106 MovieClip "themodel9" in Symbol 107 MovieClip Frame 1
onClipEvent (load) { var thetext; var theindice; }
Instance of Symbol 106 MovieClip "themodel8" in Symbol 107 MovieClip Frame 1
onClipEvent (load) { var thetext; var theindice; }
Instance of Symbol 106 MovieClip "themodel7" in Symbol 107 MovieClip Frame 1
onClipEvent (load) { var thetext; var theindice; }
Instance of Symbol 106 MovieClip "themodel6" in Symbol 107 MovieClip Frame 1
onClipEvent (load) { var thetext; var theindice; }
Instance of Symbol 106 MovieClip "themodel5" in Symbol 107 MovieClip Frame 1
onClipEvent (load) { var thetext; var theindice; }
Instance of Symbol 106 MovieClip "themodel4" in Symbol 107 MovieClip Frame 1
onClipEvent (load) { var thetext; var theindice; }
Instance of Symbol 106 MovieClip "themodel3" in Symbol 107 MovieClip Frame 1
onClipEvent (load) { var thetext; var theindice; }
Symbol 109 MovieClip Frame 1
initDone = false; openDone = false; index = 0; parcoursArray = new Array(); stop();
Symbol 109 MovieClip Frame 2
initDone = false; openDone = false;
Symbol 109 MovieClip Frame 7
gotoAndPlay (2);
Symbol 109 MovieClip Frame 8
_root.showButtons(false); _root.replayos._alpha = 30; _root.gagnos.position = 0; _root.gagnos.total = 0; initDone = false; openDone = false; parcoursArray = new Array(); index = 0; demandeParcours = new LoadVars(); demandeParcours.action = "allparcours"; demandeParcours.sendAndLoad("pcaravane.php", demandeParcours, "POST"); demandeParcours.onLoad = function () { occurence = -1; while (occurence != -2) { occurence1 = this.allparcours.indexOf("_", occurence); occurence2 = this.allparcours.indexOf("_", occurence1 + 1); score = this.allparcours.substring(occurence, occurence1); if (occurence2 == -1) { nom = this.allparcours.substring(occurence1 + 1); occurence = -2; } else if (occurence2 == undefined) { nom = "Echec"; score = "0"; occurence = -2; } else { nom = this.allparcours.substring(occurence1 + 1, occurence2); occurence = occurence2 + 1; } if (score.substring(0, 1) == "#") { score = score.substring(1); coeur = true; } else { coeur = false; } if (score.substring(0, 1) == "N") { score = score.substring(1); nouv = true; } else { nouv = false; } parcoursArray[index] = new Array(nom, score, coeur, nouv); index = index + 1; } initDone = true; };
Symbol 109 MovieClip Frame 44
openDone = true; closemenu.onPress = function () { gotoAndPlay (45); }; stop();
Instance of Symbol 107 MovieClip "theparcours" in Symbol 109 MovieClip Frame 44
onClipEvent (load) { function models() { if (!loadingparcours) { indFirst = Math.round((-yFirst) / 30); decal = (-yFirst) - (indFirst * 30); max = 10; if (objectNumber < 10) { max = objectNumber; } i = 0; while (i < max) { objet = this["themodel" + (i + 1)]; objet._visible = true; objet.theindice = indFirst + i; objet.thetext = objectList[objet.theindice]; objet.thecoeur = _root.menuder.parcoursArray[objet.theindice][2]; objet.coupcoeur._visible = objet.thecoeur; objet.thenouv = _root.menuder.parcoursArray[objet.theindice][3]; objet.nouv._visible = objet.thenouv; objet.parcourstexte.text = objet.thetext; objet._y = (30 * i) - decal; i++; } i = max + 1; while (i < 10) { objet = this["themodel" + (i + 1)]; objet._visible = false; i++; } } } function loadModelAndPlay(ind) { loadingparcours = true; _root.menuder.closemenu._visible = false; i = 0; while (i < 10) { objet = this["themodel" + (i + 1)]; objet._visible = false; i++; } demandeParcours = new LoadVars(); demandeParcours.action = "oneparcours"; demandeParcours.sonnom = _root.menuder.parcoursArray[ind][0]; demandeParcours.sonscore = _root.menuder.parcoursArray[ind][1]; demandeParcours.sendAndLoad("pcaravane.php", demandeParcours, "POST"); demandeParcours.onLoad = function () { occurence = this.sonparcours.indexOf("_", 0); version = this.sonparcours.substring(0, occurence); _root.voitureverte.initReplayRec(); if ((version == "1.00") && (occurence != -1)) { occurence = occurence + 1; while (occurence != -2) { occurence1 = this.sonparcours.indexOf("_", occurence); occurence2 = this.sonparcours.indexOf("_", occurence1 + 1); occurence3 = this.sonparcours.indexOf("_", occurence2 + 1); frame = this.sonparcours.substring(occurence, occurence1); updown = this.sonparcours.substring(occurence1 + 1, occurence2); if (occurence3 == -1) { key = this.sonparcours.substring(occurence2 + 1); occurence = -2; } else { key = this.sonparcours.substring(occurence2 + 1, occurence3); occurence = occurence3 + 1; } _root.voitureverte.replayEvents[_root.voitureverte.replayRecEventsIndex] = {framenb:frame, updown:updown, keycode:key}; _root.voitureverte.replayRecEventsIndex = _root.voitureverte.replayRecEventsIndex + 1; } _root.voitureverte.startReplayPlay(); } else if ((version == "1.01") && (occurence != -1)) { occurence = occurence + 1; while (occurence != 0) { occurence1 = this.sonparcours.indexOf("!", occurence); if (occurence1 == -1) { keysequence = this.sonparcours.substring(occurence); } else { keysequence = this.sonparcours.substring(occurence, occurence1); } occurence2 = keysequence.indexOf("_", 0); var updown = keysequence.substring(0, occurence2); occurence2++; occurence3 = keysequence.indexOf("_", occurence2); var key = _root.getNumber(keysequence.substring(occurence2, occurence3)); occurence3++; var frame = -1; while (occurence3 != 0) { occurence4 = keysequence.indexOf("_", occurence3); if (occurence4 == -1) { tmpframe = _root.getNumber(keysequence.substring(occurence3)); } else { tmpframe = _root.getNumber(keysequence.substring(occurence3, occurence4)); } if (frame == -1) { frame = tmpframe; } else { frame = frame + tmpframe; } _root.voitureverte.replayEvents[_root.voitureverte.replayRecEventsIndex] = {framenb:frame, updown:updown, keycode:key}; _root.voitureverte.replayRecEventsIndex = _root.voitureverte.replayRecEventsIndex + 1; occurence3 = occurence4 + 1; } occurence = occurence1 + 1; } _root.voitureverte.replayEvents.sortOn("framenb", Array.NUMERIC); _root.voitureverte.startReplayPlay(); } else { _root.message.messagetext = "\nECHEC :("; _root.message.gotoAndPlay(2); } _root.menuder.gotoAndPlay(45); }; } loadingparcours = false; initDone = false; objectList = new Array(); objectNumber = 0; incy = 0; yFirst = 0; listeHeight = 0; closemenu._visible = true; i = 0; while (i < 10) { objet = this["themodel" + (i + 1)]; objet._visible = false; i++; } } onClipEvent (unload) { } onClipEvent (enterFrame) { if (initDone == false) { if (_root.menuder.initDone && (_root.menuder.openDone)) { initDone = true; titre.text = "Liste des parcours"; objectNumber = _root.menuder.index; listeHeight = (objectNumber + 1) * 30; i = 0; while (i < objectNumber) { scoretmp = _root.menuder.parcoursArray[i][1] / 100; nomtmp = _root.menuder.parcoursArray[i][0]; objectList[i] = (nomtmp + " ") + scoretmp; i++; } } else { titre.text = "Chargement..."; } } else { if (objectNumber > 9) { if ((_ymouse - 150) > 0) { incy = (-(_ymouse - 150)) / 5; } else if ((_ymouse - 120) < 0) { incy = (-(_ymouse - 120)) / 5; } else { incy = 0; } } else { incy = 0; } if (incy > 100) { incy = 100; } else if (incy < -100) { incy = -100; } oldYFirst = yFirst; yFirst = yFirst + incy; if (yFirst >= 0) { yFirst = 0; } else if ((yFirst + listeHeight) < 300) { yFirst = 300 - listeHeight; } models(); } }
Symbol 109 MovieClip Frame 45
_root.replayos._alpha = 100;
Symbol 109 MovieClip Frame 60
initDone = false; _root.showButtons(true); gotoAndPlay (1);
Symbol 112 MovieClip Frame 15
stop();
Symbol 117 MovieClip Frame 40
gotoAndPlay (1);
Symbol 124 MovieClip Frame 1
stop();
Symbol 124 MovieClip Frame 10
msg.text = messagetext;
Symbol 124 MovieClip Frame 41
msg.text = messagetext;
Symbol 129 MovieClip Frame 1
stop(); onRollOut = function () { gotoAndPlay (1); }; onRollOver = function () { gotoAndPlay (2); };
Symbol 129 MovieClip Frame 5
gotoAndPlay (2);
Symbol 134 MovieClip Frame 1
stop(); onRollOut = function () { gotoAndPlay (1); }; onRollOver = function () { gotoAndPlay (2); };
Symbol 134 MovieClip Frame 5
gotoAndPlay (2);
Symbol 138 MovieClip Frame 1
stop(); onRollOut = function () { gotoAndPlay (1); }; onRollOver = function () { gotoAndPlay (2); };
Symbol 138 MovieClip Frame 5
gotoAndPlay (2);

Library Items

Symbol 1 GraphicUsed by:2
Symbol 2 MovieClipUses:1Used by:Timeline
Symbol 3 BitmapUsed by:4
Symbol 4 GraphicUses:3Used by:5
Symbol 5 MovieClipUses:4Used by:Timeline
Symbol 6 GraphicUsed by:7
Symbol 7 MovieClipUses:6Used by:Timeline
Symbol 8 GraphicUsed by:9
Symbol 9 MovieClipUses:8Used by:Timeline
Symbol 10 GraphicUsed by:11
Symbol 11 MovieClipUses:10Used by:Timeline
Symbol 12 GraphicUsed by:13
Symbol 13 MovieClipUses:12Used by:Timeline
Symbol 14 GraphicUsed by:17
Symbol 15 GraphicUsed by:16
Symbol 16 MovieClipUses:15Used by:17
Symbol 17 MovieClipUses:14 16Used by:Timeline
Symbol 18 GraphicUsed by:38
Symbol 19 GraphicUsed by:20
Symbol 20 MovieClipUses:19Used by:38
Symbol 21 GraphicUsed by:38
Symbol 22 GraphicUsed by:30
Symbol 23 GraphicUsed by:26
Symbol 24 GraphicUsed by:25
Symbol 25 MovieClipUses:24Used by:26
Symbol 26 MovieClipUses:23 25Used by:30
Symbol 27 GraphicUsed by:30
Symbol 28 GraphicUsed by:29
Symbol 29 MovieClipUses:28Used by:30
Symbol 30 MovieClipUses:22 26 27 29Used by:38
Symbol 31 GraphicUsed by:38
Symbol 32 GraphicUsed by:33
Symbol 33 MovieClipUses:32Used by:38
Symbol 34 GraphicUsed by:38
Symbol 35 GraphicUsed by:37
Symbol 36 GraphicUsed by:37
Symbol 37 MovieClipUses:35 36Used by:38
Symbol 38 MovieClipUses:18 20 21 30 31 33 34 37Used by:Timeline
Symbol 39 ShapeTweeningUsed by:59
Symbol 40 ShapeTweeningUsed by:59
Symbol 41 GraphicUsed by:59
Symbol 42 GraphicUsed by:59
Symbol 43 FontUsed by:44 45 46 48 53 56 57 58 63 64
Symbol 44 TextUses:43Used by:59
Symbol 45 EditableTextUses:43Used by:59
Symbol 46 EditableTextUses:43Used by:59
Symbol 47 GraphicUsed by:59
Symbol 48 EditableTextUses:43Used by:59
Symbol 49 GraphicUsed by:52
Symbol 50 GraphicUsed by:52
Symbol 51 GraphicUsed by:52
Symbol 52 ButtonUses:49 50 51Used by:59 67
Symbol 53 EditableTextUses:43Used by:59
Symbol 54 ShapeTweeningUsed by:59
Symbol 55 GraphicUsed by:59
Symbol 56 TextUses:43Used by:59
Symbol 57 EditableTextUses:43Used by:59
Symbol 58 EditableTextUses:43Used by:59
Symbol 59 MovieClipUses:39 40 41 42 44 45 46 47 48 52 53 54 55 56 57 58Used by:Timeline
Symbol 60 GraphicUsed by:67
Symbol 61 ShapeTweeningUsed by:67
Symbol 62 GraphicUsed by:67
Symbol 63 EditableTextUses:43Used by:67
Symbol 64 EditableTextUses:43Used by:67
Symbol 65 ShapeTweeningUsed by:67
Symbol 66 GraphicUsed by:67
Symbol 67 MovieClipUses:60 61 62 52 63 64 65 66Used by:Timeline
Symbol 68 GraphicUsed by:109
Symbol 69 GraphicUsed by:70
Symbol 70 MovieClipUses:69Used by:109
Symbol 71 GraphicUsed by:109
Symbol 72 GraphicUsed by:87
Symbol 73 GraphicUsed by:87
Symbol 74 GraphicUsed by:87
Symbol 75 GraphicUsed by:87
Symbol 76 GraphicUsed by:87
Symbol 77 GraphicUsed by:87
Symbol 78 GraphicUsed by:87
Symbol 79 GraphicUsed by:87
Symbol 80 GraphicUsed by:87
Symbol 81 GraphicUsed by:87
Symbol 82 GraphicUsed by:87
Symbol 83 GraphicUsed by:87
Symbol 84 GraphicUsed by:87
Symbol 85 GraphicUsed by:87
Symbol 86 GraphicUsed by:87
Symbol 87 MovieClipUses:72 73 74 75 76 77 78 79 80 81 82 83 84 85 86Used by:109
Symbol 88 ShapeTweeningUsed by:109
Symbol 89 ShapeTweeningUsed by:109
Symbol 90 ShapeTweeningUsed by:109
Symbol 91 GraphicUsed by:107 109
Symbol 92 GraphicUsed by:93
Symbol 93 ButtonUses:92Used by:109
Symbol 94 FontUsed by:95 97 104 105 115 116 120 123
Symbol 95 EditableTextUses:94Used by:107
Symbol 96 GraphicUsed by:107
Symbol 97 EditableTextUses:94Used by:106
Symbol 98 GraphicUsed by:100
Symbol 99 ShapeTweeningUsed by:100
Symbol 100 MovieClipUses:98 99Used by:106
Symbol 101 GraphicUsed by:103
Symbol 102 ShapeTweeningUsed by:103
Symbol 103 MovieClipUses:101 102Used by:106
Symbol 104 EditableTextUses:94Used by:106
Symbol 105 EditableTextUses:94Used by:106
Symbol 106 MovieClipUses:97 100 103 104 105Used by:107
Symbol 107 MovieClipUses:91 95 96 106Used by:109
Symbol 108 ShapeTweeningUsed by:109
Symbol 109 MovieClipUses:68 70 71 87 88 89 90 91 93 107 108Used by:Timeline
Symbol 110 ShapeTweeningUsed by:112
Symbol 111 GraphicUsed by:112
Symbol 112 MovieClipUses:110 111Used by:Timeline
Symbol 113 GraphicUsed by:114
Symbol 114 MovieClipUses:113Used by:Timeline
Symbol 115 EditableTextUses:94Used by:Timeline
Symbol 116 EditableTextUses:94Used by:117
Symbol 117 MovieClipUses:116Used by:Timeline
Symbol 118 ShapeTweeningUsed by:124
Symbol 119 GraphicUsed by:124
Symbol 120 EditableTextUses:94Used by:124
Symbol 121 ShapeTweeningUsed by:124
Symbol 122 GraphicUsed by:124
Symbol 123 EditableTextUses:94Used by:124
Symbol 124 MovieClipUses:118 119 120 121 122 123Used by:Timeline
Symbol 125 GraphicUsed by:129 138
Symbol 126 ShapeTweeningUsed by:129
Symbol 127 ShapeTweeningUsed by:129
Symbol 128 GraphicUsed by:129
Symbol 129 MovieClipUses:125 126 127 128Used by:Timeline
Symbol 130 GraphicUsed by:134
Symbol 131 GraphicUsed by:134
Symbol 132 GraphicUsed by:134
Symbol 133 GraphicUsed by:134
Symbol 134 MovieClipUses:130 131 132 133Used by:Timeline
Symbol 135 ShapeTweeningUsed by:138
Symbol 136 ShapeTweeningUsed by:138
Symbol 137 GraphicUsed by:138
Symbol 138 MovieClipUses:125 135 136 137Used by:Timeline

Instance Names

"parking"Frame 1Symbol 2 MovieClip
"ombrevoiture"Frame 1Symbol 7 MovieClip
"ombrecaravane"Frame 1Symbol 9 MovieClip
"ombretract"Frame 1Symbol 11 MovieClip
"caravane"Frame 1Symbol 17 MovieClip
"voitureverte"Frame 1Symbol 38 MovieClip
"maskcaravane"Frame 1Symbol 9 MovieClip
"maskvoiture"Frame 1Symbol 7 MovieClip
"gagnos"Frame 1Symbol 59 MovieClip
"replayos"Frame 1Symbol 67 MovieClip
"menuder"Frame 1Symbol 109 MovieClip
"playback"Frame 1Symbol 112 MovieClip
"palmhaut"Frame 1Symbol 114 MovieClip
"palmbas"Frame 1Symbol 114 MovieClip
"palmfond"Frame 1Symbol 114 MovieClip
"repclign"Frame 1Symbol 117 MovieClip
"message"Frame 1Symbol 124 MovieClip
"pause_btn"Frame 1Symbol 129 MovieClip
"play_btn"Frame 1Symbol 134 MovieClip
"stop_btn"Frame 1Symbol 138 MovieClip
"toit"Symbol 17 MovieClip Frame 1Symbol 16 MovieClip
"avantbras"Symbol 26 MovieClip Frame 1Symbol 25 MovieClip
"contourbrasgauche"Symbol 30 MovieClip Frame 1Symbol 26 MovieClip
"contourbrasdroit"Symbol 30 MovieClip Frame 1Symbol 26 MovieClip
"brasgaucheplein"Symbol 30 MovieClip Frame 1Symbol 29 MovieClip
"brasdroitplein"Symbol 30 MovieClip Frame 1Symbol 29 MovieClip
"rouegauche"Symbol 38 MovieClip Frame 1Symbol 20 MovieClip
"rouedroite"Symbol 38 MovieClip Frame 1Symbol 20 MovieClip
"bustebras"Symbol 38 MovieClip Frame 1Symbol 30 MovieClip
"tete"Symbol 38 MovieClip Frame 1Symbol 33 MovieClip
"tuturevertefeuxarr"Symbol 38 MovieClip Frame 1Symbol 37 MovieClip
"chocs"Symbol 59 MovieClip Frame 15Symbol 45 EditableText
"score"Symbol 59 MovieClip Frame 15Symbol 46 EditableText
"site"Symbol 59 MovieClip Frame 15Symbol 48 EditableText
"enregistrer"Symbol 59 MovieClip Frame 15Symbol 52 Button
"nom"Symbol 59 MovieClip Frame 15Symbol 53 EditableText
"chocs"Symbol 59 MovieClip Frame 30Symbol 57 EditableText
"score"Symbol 59 MovieClip Frame 30Symbol 58 EditableText
"goreplay"Symbol 67 MovieClip Frame 15Symbol 52 Button
"classement"Symbol 67 MovieClip Frame 15Symbol 64 EditableText
"parcourstexte"Symbol 106 MovieClip Frame 1Symbol 97 EditableText
"coupcoeur"Symbol 106 MovieClip Frame 1Symbol 100 MovieClip
"nouv"Symbol 106 MovieClip Frame 1Symbol 103 MovieClip
"parcourstexte"Symbol 106 MovieClip Frame 2Symbol 104 EditableText
"parcourstexte"Symbol 106 MovieClip Frame 7Symbol 105 EditableText
"titre"Symbol 107 MovieClip Frame 1Symbol 95 EditableText
"themodel1"Symbol 107 MovieClip Frame 1Symbol 106 MovieClip
"themodel2"Symbol 107 MovieClip Frame 1Symbol 106 MovieClip
"themodel10"Symbol 107 MovieClip Frame 1Symbol 106 MovieClip
"themodel9"Symbol 107 MovieClip Frame 1Symbol 106 MovieClip
"themodel8"Symbol 107 MovieClip Frame 1Symbol 106 MovieClip
"themodel7"Symbol 107 MovieClip Frame 1Symbol 106 MovieClip
"themodel6"Symbol 107 MovieClip Frame 1Symbol 106 MovieClip
"themodel5"Symbol 107 MovieClip Frame 1Symbol 106 MovieClip
"themodel4"Symbol 107 MovieClip Frame 1Symbol 106 MovieClip
"themodel3"Symbol 107 MovieClip Frame 1Symbol 106 MovieClip
"cpateurouverturemenu"Symbol 109 MovieClip Frame 1Symbol 70 MovieClip
"replays"Symbol 109 MovieClip Frame 2Symbol 87 MovieClip
"closemenu"Symbol 109 MovieClip Frame 44Symbol 93 Button
"theparcours"Symbol 109 MovieClip Frame 44Symbol 107 MovieClip
"classement"Symbol 117 MovieClip Frame 1Symbol 116 EditableText
"msg"Symbol 124 MovieClip Frame 10Symbol 120 EditableText
"msg"Symbol 124 MovieClip Frame 51Symbol 123 EditableText

Dynamic Text Variables

sonsiteSymbol 48 EditableText""
sonnomSymbol 53 EditableText""
timer_txtSymbol 115 EditableText"00:00:00:00"




http://swfchan.com/5/24065/info.shtml
Created: 11/8 -2019 21:31:23 Last modified: 11/8 -2019 21:31:23 Server time: 29/04 -2024 00:18:41