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/62693149?noj=FRM62693149-22DC" width="1" height="1"></div>

Formule Toon.swf

This is the info page for
Flash #31202

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


Text
DIRECTEUR ARTISTIQUE
JEF

GRAPHISTES

ARNAUD      MAX      DOM

DEVELOPPEURS

ANTOINE     GUILLAUME

Réalisation Toon8

ActionScript [AS1/AS2]

Frame 1
function CCar(speedmax, acceleration, theclip, StartRotation, KeySpeed, KeyLeft, KeyRight, ClipCircuit) { this.SpeedKey = KeySpeed; this.TurnLeftKey = KeyLeft; this.TurnRightKey = KeyRight; this.ConvToRad = (Math.PI/180); this.MaxSpeed = speedmax; this.Acceleration = acceleration; this.ClipName = theclip; this.Rotation = 5; this.Circuit = ClipCircuit; this.CurrentSpeed = 0; this.CurrentRotation = StartRotation; this.ClipName._rotation = this.CurrentRotation; } var aKey = 97; var wKey = 112; var xKey = 120; CCar.prototype.Move = function () { var RadianAngle; if (Key.isDown(this.TurnLeftKey)) { this.CurrentRotation = this.CurrentRotation - this.Rotation; } if (Key.isDown(this.TurnRightKey)) { this.CurrentRotation = this.CurrentRotation + this.Rotation; } if (Key.isDown(this.SpeedKey)) { if (this.HitBounds()) { this.CurrentSpeed = 0.5; } else { this.CurrentSpeed = this.CurrentSpeed + this.Acceleration; if (this.MaxSpeed < this.CurrentSpeed) { this.CurrentSpeed = this.MaxSpeed; } } } else if (this.HitBounds()) { this.CurrentSpeed = 0; } else { this.CurrentSpeed = this.CurrentSpeed - this.Acceleration; if (this.CurrentSpeed < 0) { this.CurrentSpeed = 0; } } RadianAngle = this.CurrentRotation * this.ConvToRad; this.ClipName._rotation = this.CurrentRotation; this.ClipName._x = this.ClipName._x + (this.CurrentSpeed * Math.cos(RadianAngle)); this.ClipName._y = this.ClipName._y + (this.CurrentSpeed * Math.sin(RadianAngle)); }; CCar.prototype.HitBounds = function () { return(this.Circuit.hitTest(this.ClipName._x, this.ClipName._y, true)); }; if (_framesloaded == _totalframes) { gotoAndPlay(_currentframe + 2); } else { play(); }
Frame 2
function TestCheckPoint(CheckPointMovieClipArray, CarMovieClip) { var CptArray; var HitValue; CptArray = 0; HitValue = 0; while ((CptArray < CheckPointMovieClipArray.length) && (!HitValue)) { HitValue = CheckPointMovieClipArray[CptArray].hitTest(CarMovieClip._x, CarMovieClip._y, true); CptArray++; } if (HitValue) { CptArray--; return(CptArray); } return(-1); } function UpDateCheckPointNumArray(RangeNum, CheckPointNumOfMovieClipArray) { if ((!RangeNum) || (CheckPointNumOfMovieClipArray[RangeNum - 1])) { CheckPointNumOfMovieClipArray[RangeNum] = 1; return(1); } return(0); } function TestNewLap(CheckPointNumOfMovieClipArray) { var Cpt; Cpt = 0; while ((Cpt < CheckPointNumOfMovieClipArray.length) && (CheckPointNumOfMovieClipArray[Cpt])) { Cpt++; } return(Cpt >= CheckPointNumOfMovieClipArray.length); } function InitTab(TableOfNum, Nb) { var Cpt; Cpt = 0; while (Cpt < TableOfNum.length) { TableOfNum[Cpt] = Nb; Cpt++; } } prevFrame();
Frame 3
VarNumCircuit = ""; stop();
Frame 4
gotoAndPlay(_root.VarNumCircuit);
Frame 10
TotalLaps = 5; CurrentLap = 1; CheckPointClipArray = new Array(ClipInterLap1, ClipInterLap2, ClipInterLap3, ClipInterLap4, ClipNewLap); CheckPointNumArray = new Array(0, 0, 0, 0, 0); TheDate = new Date(); TextLaps = (("Lap " + CurrentLap) + "/") + TotalLaps; TextTime = "Time : 0 s 00"; StartTime = TheDate.getTime(); delete TheDate; OpponentLaps = 0;
Frame 11
myCar1 = new CCar(6, 0.08, CarN1, 0, Key.UP, Key.LEFT, Key.RIGHT, BordsCircuit);
Frame 12
TheDate = new Date(); CurrentTime = TheDate.getTime(); delete TheDate; TotalTime = CurrentTime - StartTime; TextTime = (("Time : " + Math.floor(TotalTime / 1000)) + " s ") + Math.floor((TotalTime - (Math.floor(TotalTime / 1000) * 1000)) / 10); myCar1.Move(); TestVal = TestCheckPoint(CheckPointClipArray, myCar1.ClipName); if (-1 < TestVal) { if (UpDateCheckPointNumArray(TestVal, CheckPointNumArray)) { TestVal = TestNewLap(CheckPointNumArray); if (TestVal) { CurrentLap++; InitTab(CheckPointNumArray, 0); if (TotalLaps >= CurrentLap) { TextLaps = (("Lap " + CurrentLap) + "/") + TotalLaps; } else { gotoAndPlay(_currentframe + 2); } } } } TextTabNum = (((((((CheckPointNumArray[0] + " ") + CheckPointNumArray[1]) + " ") + CheckPointNumArray[2]) + " ") + CheckPointNumArray[3]) + " ") + CheckPointNumArray[4]; if (TotalLaps < OpponentLaps) { ClipOpponent.stop(); gotoAndPlay(_currentframe + 2); } play();
Frame 13
prevFrame();
Frame 15
stop();
Frame 16
gotoAndPlay (3);
Frame 20
TotalLaps = 5; CurrentLap = 1; CheckPointClipArray = new Array(ClipInterLap1, ClipInterLap2, ClipInterLap3, ClipInterLap4, ClipNewLap); CheckPointNumArray = new Array(0, 0, 0, 0, 0); TheDate = new Date(); TextLaps = (("Lap " + CurrentLap) + "/") + TotalLaps; TextTime = "Time : 0 s 00"; StartTime = TheDate.getTime(); delete TheDate; OpponentLaps = 0;
Frame 21
myCar1 = new CCar(6, 0.08, CarN1, 315, Key.UP, Key.LEFT, Key.RIGHT, BordsCircuit);
Frame 22
TheDate = new Date(); CurrentTime = TheDate.getTime(); delete TheDate; TotalTime = CurrentTime - StartTime; TextTime = (("Time : " + Math.floor(TotalTime / 1000)) + " s ") + Math.floor((TotalTime - (Math.floor(TotalTime / 1000) * 1000)) / 10); myCar1.Move(); TestVal = TestCheckPoint(CheckPointClipArray, myCar1.ClipName); if (-1 < TestVal) { if (UpDateCheckPointNumArray(TestVal, CheckPointNumArray)) { TestVal = TestNewLap(CheckPointNumArray); if (TestVal) { CurrentLap++; InitTab(CheckPointNumArray, 0); if (TotalLaps >= CurrentLap) { TextLaps = (("Lap " + CurrentLap) + "/") + TotalLaps; } else { gotoAndPlay(_currentframe + 2); } } } } TextTabNum = (((((((CheckPointNumArray[0] + " ") + CheckPointNumArray[1]) + " ") + CheckPointNumArray[2]) + " ") + CheckPointNumArray[3]) + " ") + CheckPointNumArray[4]; if (TotalLaps < OpponentLaps) { ClipOpponent.stop(); gotoAndPlay(_currentframe + 2); } play();
Frame 23
prevFrame();
Frame 25
stop();
Frame 26
gotoAndPlay (3);
Frame 30
TotalLaps = 5; CurrentLap = 1; CheckPointClipArray = new Array(ClipInterLap1, ClipInterLap2, ClipInterLap3, ClipInterLap4, ClipNewLap); CheckPointNumArray = new Array(0, 0, 0, 0, 0); TheDate = new Date(); TextLaps = (("Lap " + CurrentLap) + "/") + TotalLaps; TextTime = "Time : 0 s 00"; StartTime = TheDate.getTime(); delete TheDate; OpponentLaps = 0;
Frame 31
myCar1 = new CCar(6, 0.08, CarN1, 0, Key.UP, Key.LEFT, Key.RIGHT, BordsCircuit);
Frame 32
TheDate = new Date(); CurrentTime = TheDate.getTime(); delete TheDate; TotalTime = CurrentTime - StartTime; TextTime = (("Time : " + Math.floor(TotalTime / 1000)) + " s ") + Math.floor((TotalTime - (Math.floor(TotalTime / 1000) * 1000)) / 10); myCar1.Move(); TestVal = TestCheckPoint(CheckPointClipArray, myCar1.ClipName); if (-1 < TestVal) { if (UpDateCheckPointNumArray(TestVal, CheckPointNumArray)) { TestVal = TestNewLap(CheckPointNumArray); if (TestVal) { CurrentLap++; InitTab(CheckPointNumArray, 0); if (TotalLaps >= CurrentLap) { TextLaps = (("Lap " + CurrentLap) + "/") + TotalLaps; } else { gotoAndPlay(_currentframe + 2); } } } } TextTabNum = (((((((CheckPointNumArray[0] + " ") + CheckPointNumArray[1]) + " ") + CheckPointNumArray[2]) + " ") + CheckPointNumArray[3]) + " ") + CheckPointNumArray[4]; if (TotalLaps < OpponentLaps) { ClipOpponent.stop(); gotoAndPlay(_currentframe + 2); } play();
Frame 33
prevFrame();
Frame 35
stop();
Frame 36
gotoAndPlay (3);
Symbol 36 Button
on (release) { gotoAndPlay (10); ClipRegles.play(); }
Symbol 40 Button
on (release) { gotoAndPlay (10); ClipCredits.play(); }
Symbol 44 Button
on (release) { gotoAndPlay (10); SelectCircuit._visible = 1; }
Symbol 58 MovieClip Frame 1
stop();
Symbol 58 MovieClip Frame 275
_parent.play();
Symbol 61 MovieClip Frame 1
stop();
Symbol 61 MovieClip Frame 259
_parent.play();
Symbol 72 Button
on (release) { _root.VarNumCircuit = "Circuit1"; _root.play(); }
Symbol 79 Button
on (release) { _root.VarNumCircuit = "Circuit2"; _root.play(); }
Symbol 86 Button
on (release) { _root.VarNumCircuit = "Circuit3"; _root.play(); }
Symbol 93 MovieClip Frame 1
SelectCircuit._visible = 0;
Symbol 93 MovieClip Frame 2
stop();
Symbol 93 MovieClip Frame 10
stop();
Symbol 93 MovieClip Frame 19
gotoAndPlay (1);
Symbol 93 MovieClip Frame 20
stop();
Symbol 93 MovieClip Frame 29
gotoAndPlay (1);
Symbol 93 MovieClip Frame 30
stop();
Symbol 93 MovieClip Frame 101
stop();
Symbol 108 MovieClip Frame 1
_root.OpponentLaps++;
Symbol 111 MovieClip Frame 45
_root.play();
Symbol 117 MovieClip Frame 1
-(root.OpponentLaps++);
Symbol 123 MovieClip Frame 1
_root.OpponentLaps++;

Library Items

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

Instance Names

"BordsCircuit"Frame 10Symbol 95 MovieClip
"ClipInterLap1"Frame 10Symbol 97 MovieClip
"ClipNewLap"Frame 10Symbol 99 MovieClip
"ClipInterLap2"Frame 10Symbol 97 MovieClip
"ClipInterLap3"Frame 10Symbol 100 MovieClip
"ClipInterLap4"Frame 10Symbol 97 MovieClip
"ClipOpponent"Frame 11Symbol 108 MovieClip
"CarN1"Frame 11Symbol 109 MovieClip
"BordsCircuit"Frame 20Symbol 113 MovieClip
"ClipOpponent"Frame 21Symbol 117 MovieClip
"CarN1"Frame 21Symbol 109 MovieClip
"BordsCircuit"Frame 30Symbol 119 MovieClip
"ClipOpponent"Frame 31Symbol 123 MovieClip
"CarN1"Frame 31Symbol 109 MovieClip
"ClipCredits"Symbol 93 MovieClip Frame 1Symbol 58 MovieClip
"ClipRegles"Symbol 93 MovieClip Frame 1Symbol 61 MovieClip
"SelectCircuit"Symbol 93 MovieClip Frame 1Symbol 87 MovieClip

Special Tags

Protect (24)Timeline Frame 10 bytes ""

Labels

"Menu"Frame 3
"Circuit1"Frame 10
"Circuit2"Frame 20
"Circuit3"Frame 30

Dynamic Text Variables

TextLapsSymbol 102 EditableText""
TextTabNumSymbol 104 EditableText""
TextTimeSymbol 105 EditableText""
TextLapsSymbol 114 EditableText""
TextTabNumSymbol 115 EditableText""
TextTimeSymbol 116 EditableText""
TextLapsSymbol 120 EditableText""
TextTabNumSymbol 121 EditableText""
TextTimeSymbol 122 EditableText""




http://swfchan.com/7/31202/info.shtml
Created: 18/5 -2019 20:11:31 Last modified: 18/5 -2019 20:11:31 Server time: 22/12 -2024 13:21:34