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

basket.swf

This is the info page for
Flash #28315

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


Text
Déterminez l'angle et la
vitesse en utilisant les
flèches et utilisez la
barre "Espace" pour
lancer.

Directeur Artistique
Jef
Graphistes
Arnaud
Max
Développeurs
Guillaume
Antoine

Réalisation Toon 8

Score : 0 / 0

ActionScript [AS1/AS2]

Frame 1
stop();
Frame 9
_root.Boule._visible = 0;
Frame 10
function DegreeToRadian(VarAngle) { return((VarAngle * Math.PI) / 180); } function FireHitsFloor(FireMovieClip, FloorMovieClip) { return(FloorMovieClip.hitTest(FireMovieClip._x, FireMovieClip._y, true)); } function FireHitsPanel(FireMovieClip, PanelMovieClip) { return(FireMovieClip.hitTest(PanelMovieClip)); } function FireHitsRing(FireMovieClip, RingMovieClip) { return(FireMovieClip.hitTest(RingMovieClip)); } G_SCREEN_WIDTH = 550; G_SCREEN_HEIGHT = 300; ScoreTotal = 0; TotalPanier = 0; PanierTmp = 0; ValPosPersoX = 0; TimeOut = 0; TimeToPlay = 90; Gravity = 9.8; BaseXStart = _root.Boule._x - Perso._x; BaseYStart = G_SCREEN_HEIGHT - _root.Boule._y; MasseShoot = 3; FactorPanel = 0.4; FactorRing = 1; Angle = 0; AngleInc = 1; AngleMax = 90; Power = 0; PowerInc = 1; PowerMax = 50; PowerScale = 5; StartTime = 0; TimeScale = 3; XVector = 0; YVector = 0; WindFactor = 1; AngleWind = 0; PowerWind = 0; PowerWindInc = 1; PowerWindMax = 25; XWindVector = 0; YWindVector = 0; Cpt = 0;
Frame 11
TextScore = "Score : 0 / 0";
Frame 12
ClipTime.play();
Frame 13
Perso._x = Math.floor(Math.random() * 250) + 50; _root.Boule._x = BaseXStart + Perso._x; _root.Boule._y = G_SCREEN_HEIGHT - BaseYStart; _root.Boule._visible = 0; _root.ClipPower._x = _root.Boule._x + 10; _root.ClipPower._y = _root.Boule._y - 10; _root.ClipPower._rotation = -Angle; XVectorObstacle = 0; Angle = 0; Power = 0; PanierTmp = 0; Perso.gotoAndStop(1);
Frame 14
if (Key.isDown(Key.UP)) { if (Angle != AngleMax) { Angle = Angle + AngleInc; if (AngleMax < Angle) { Angle = AngleMax; } } } if (Key.isDown(Key.DOWN)) { if (Angle != 0) { Angle = Angle - AngleInc; if (Angle < 0) { Angle = 0; } } } if (Key.isDown(Key.LEFT)) { if (Power != 0) { Power = Power - PowerInc; if (Power < 0) { Power = 0; } } } if (Key.isDown(Key.RIGHT)) { if (Power != PowerMax) { Power = Power + PowerInc; if (PowerMax < Power) { Power = PowerMax; } } } if (Key.isDown(Key.SPACE)) { gotoAndPlay (17); } if (Power) { ClipPower.gotoAndStop((Power * ClipPower._totalFrames) / PowerMax); } else { ClipPower.gotoAndStop(1); } ClipPower._rotation = -Angle; if (PowerWind) { ClipWind.gotoAndStop((PowerWind * ClipWind._totalFrames) / PowerWindMax); } else { ClipWind.gotoAndStop(1); } ClipWind._rotation = -AngleWind; if (TimeOut) { gotoAndPlay (27); } play();
Frame 15
prevFrame();
Frame 17
Perso.play();
Frame 18
if (Perso._currentFrame >= 4) { _root.Boule._visible = 1; gotoAndPlay (22); } play();
Frame 19
prevFrame();
Frame 22
StartTime = getTimer(); XVector = (Power * PowerScale) * Math.cos(DegreeToRadian(Angle)); YVector = (Power * PowerScale) * Math.sin(DegreeToRadian(Angle)); XWindVector = (PowerWind * WindFactor) * Math.cos(DegreeToRadian(AngleWind)); YWindVector = (PowerWind * WindFactor) * Math.sin(DegreeToRadian(AngleWind)); XStart = BaseXStart + Perso._x; YStart = BaseYStart; TotalPanier++;
Frame 23
TimeElapsed = ((getTimer() - StartTime) / 1000) * TimeScale; XTmp = (XVector * TimeElapsed) + XStart; YTmp = ((((((-1 * Gravity) * MasseShoot) * TimeElapsed) * TimeElapsed) / 2) + (YVector * TimeElapsed)) + YStart; _root.Boule._x = XTmp; _root.Boule._y = G_SCREEN_HEIGHT - YTmp; TextX = XTmp; TextY = YTmp; if (FireHitsPanel(Boule, ClipPanneau) || (FireHitsRing(Boule, ClipTestAnneau))) { var BBoule; var BHit; var XTmp2; var YTmp2; var ObjTmp; var Factor; TimeElapsed = TimeElapsed + 1; XTmp2 = (XVector * TimeElapsed) + XStart; YTmp2 = ((((((-1 * Gravity) * MasseShoot) * TimeElapsed) * TimeElapsed) / 2) + (YVector * TimeElapsed)) + YStart; BBoule = Boule.getBounds(_root); if (ClipPanneau.hitTest(Boule.Right) || (ClipTestAnneau.hitTest(Boule.Right))) { if (ClipTestAnneau.hitTest(Boule.Right)) { Factor = FactorRing; ObjTmp = ClipTestAnneau; } else { Factor = FactorPanel; ObjTmp = ClipPanneau; } BHit = ObjTmp.getBounds(_root); XVector = (-1 * Factor) * Math.abs(XTmp2 - XTmp); YVector = YTmp2 - YTmp; XStart = (ObjTmp._x - (ObjTmp._x - BHit.xMin)) - (Boule._x - BBoule.xMin); Boule._x = XStart; YStart = G_SCREEN_HEIGHT - Boule._y; StartTime = getTimer(); } else if (ClipTestAnneau.hitTest(Boule.Left)) { Factor = FactorRing; ObjTmp = ClipTestAnneau; BHit = ObjTmp.getBounds(_root); XVector = (-1 * Factor) * Math.abs(XTmp2 - XTmp); YVector = YTmp2 - YTmp; XStart = (ObjTmp._x + (ObjTmp._x - BHit.xMin)) + (Boule._x - BBoule.xMin); Boule._x = XStart; YStart = G_SCREEN_HEIGHT - Boule._y; StartTime = getTimer(); } else if (ClipPanneau.hitTest(Boule.Up) || (ClipTestAnneau.hitTest(Boule.Up))) { if (ClipTestAnneau.hitTest(Boule.Up)) { Factor = FactorRing; ObjTmp = ClipTestAnneau; } else { Factor = FactorPanel; ObjTmp = ClipPanneau; } BHit = ObjTmp.getBounds(_root); YVector = (-1 * Factor) * Math.abs(YTmp2 - YTmp); XVector = XTmp2 - XTmp; YStart = G_SCREEN_HEIGHT - ((ObjTmp._y + (ObjTmp._y - BHit.yMin)) + (Boule._y - BBoule.yMin)); Boule._y = G_SCREEN_HEIGHT - YStart; XStart = Boule._x; StartTime = getTimer(); } else if (ClipPanneau.hitTest(Boule.Down) || (ClipTestAnneau.hitTest(Boule.Down))) { if (ClipTestAnneau.hitTest(Boule.Down)) { Factor = FactorRing; ObjTmp = ClipTestAnneau; } else { Factor = FactorPanel; ObjTmp = ClipPanneau; } BHit = ObjTmp.getBounds(_root); YVector = ((-1 * Factor) * 2) * Math.abs(YTmp2 - YTmp); XVector = XTmp2 - XTmp; YStart = G_SCREEN_HEIGHT - ((ObjTmp._y - (ObjTmp._y - BHit.yMin)) - (Boule._y - BBoule.yMin)); Boule._y = G_SCREEN_HEIGHT - YStart; XStart = Boule._x; StartTime = getTimer(); } } else { if (((_root.Boule._x >= G_SCREEN_WIDTH) || (_root.Boule._y >= G_SCREEN_HEIGHT)) || (_root.Boule._x < 0)) { gotoAndPlay (13); } if (FireHitsFloor(Boule, Floor)) { gotoAndPlay (13); } } if (Boule.Down.hitTest(TestPanier)) { PanierTmp = 1; } if (Boule.Up.hitTest(TestPanier) && (PanierTmp)) { PanierTmp = 0; ScoreTotal++; } TextScore = (("Score : " + ScoreTotal) + " / ") + TotalPanier; play();
Frame 24
prevFrame();
Frame 27
stop();
Symbol 7 Button
on (release) { gotoAndPlay (9); }
Symbol 52 MovieClip Frame 1
stop();
Symbol 52 MovieClip Frame 10
stop();
Symbol 56 MovieClip Frame 1
stop();
Symbol 60 MovieClip Frame 1
stop();
Symbol 64 MovieClip Frame 1
TimerStartTime = 0; CurrentTime = 0; TotalTime = _root.TimeToPlay; CountTime = 0; stop();
Symbol 64 MovieClip Frame 2
TimerStartTime = Math.floor(getTimer() / 1000);
Symbol 64 MovieClip Frame 3
CurrentTime = Math.floor(getTimer() / 1000); CountTime = (TotalTime - CurrentTime) + TimerStartTime; if (CountTime >= 0) { TextTime = ("Time : " + CountTime) + " s"; } else { _root.TimeOut = 1; } play();
Symbol 64 MovieClip Frame 4
prevFrame();
Symbol 66 Button
on (release) { TextScore = "Score : 0 / 0"; ScoreTotal = 0; TotalPanier = 0; TimeOut = 0; ClipTime.gotoAndPlay(2); gotoAndPlay (12); }

Library Items

Symbol 1 GraphicUsed by:Timeline
Symbol 2 BitmapUsed by:3 47
Symbol 3 GraphicUses:2Used by:32 52  Timeline
Symbol 4 GraphicUsed by:7
Symbol 5 GraphicUsed by:7
Symbol 6 GraphicUsed by:7 12 18 66
Symbol 7 ButtonUses:4 5 6Used by:Timeline
Symbol 8 GraphicUsed by:12
Symbol 9 GraphicUsed by:12
Symbol 10 FontUsed by:11 17
Symbol 11 TextUses:10Used by:12
Symbol 12 ButtonUses:8 9 11 6Used by:Timeline
Symbol 13 GraphicUsed by:18
Symbol 14 GraphicUsed by:18
Symbol 15 GraphicUsed by:18
Symbol 16 FontUsed by:17
Symbol 17 TextUses:16 10Used by:18
Symbol 18 ButtonUses:13 14 15 17 6Used by:Timeline
Symbol 19 GraphicUsed by:Timeline
Symbol 20 FontUsed by:21
Symbol 21 TextUses:20Used by:Timeline
Symbol 22 GraphicUsed by:32 52
Symbol 23 GraphicUsed by:32 52
Symbol 24 GraphicUsed by:32 52
Symbol 25 GraphicUsed by:32 52
Symbol 26 GraphicUsed by:32 52
Symbol 27 GraphicUsed by:32 52
Symbol 28 GraphicUsed by:32 52
Symbol 29 GraphicUsed by:32 52
Symbol 30 GraphicUsed by:32 52
Symbol 31 SoundUsed by:32
Symbol 32 MovieClipUses:22 23 24 25 26 27 28 29 3 30 31Used by:Timeline
Symbol 33 GraphicUsed by:Timeline
Symbol 34 GraphicUsed by:35
Symbol 35 MovieClipUses:34Used by:Timeline
Symbol 36 GraphicUsed by:37
Symbol 37 MovieClipUses:36Used by:Timeline
Symbol 38 BitmapUsed by:39
Symbol 39 GraphicUses:38Used by:Timeline
Symbol 40 GraphicUsed by:Timeline
Symbol 41 GraphicUsed by:Timeline
Symbol 42 GraphicUsed by:Timeline
Symbol 43 GraphicUsed by:Timeline
Symbol 44 GraphicUsed by:Timeline
Symbol 45 GraphicUsed by:46 50 56
Symbol 46 MovieClipUses:45Used by:48
Symbol 47 GraphicUses:2Used by:48
Symbol 48 MovieClipUses:46 47Used by:Timeline
Symbol 49 GraphicUsed by:Timeline
Symbol 50 MovieClipUses:45Used by:Timeline
Symbol 51 GraphicUsed by:Timeline
Symbol 52 MovieClipUses:22 23 24 25 26 27 28 29 3 30Used by:Timeline
Symbol 53 GraphicUsed by:Timeline
Symbol 54 GraphicUsed by:56
Symbol 55 GraphicUsed by:56
Symbol 56 MovieClipUses:54 45 55Used by:Timeline
Symbol 57 GraphicUsed by:60
Symbol 58 GraphicUsed by:60
Symbol 59 GraphicUsed by:60
Symbol 60 MovieClipUses:57 58 59Used by:Timeline
Symbol 61 FontUsed by:62 63
Symbol 62 EditableTextUses:61Used by:Timeline
Symbol 63 EditableTextUses:61Used by:64
Symbol 64 MovieClipUses:63Used by:Timeline
Symbol 65 GraphicUsed by:66
Symbol 66 ButtonUses:65 6Used by:Timeline

Instance Names

"TestPanier"Frame 9Symbol 35 MovieClip
"ClipPanneau"Frame 9Symbol 37 MovieClip
"Boule"Frame 9Symbol 48 MovieClip
"ClipTestAnneau"Frame 9Symbol 50 MovieClip
"Perso"Frame 9Symbol 52 MovieClip
"ClipPower"Frame 9Symbol 56 MovieClip
"ClipWind"Frame 9Symbol 60 MovieClip
"ClipTime"Frame 11Symbol 64 MovieClip
"Right"Symbol 48 MovieClip Frame 1Symbol 46 MovieClip
"Down"Symbol 48 MovieClip Frame 1Symbol 46 MovieClip
"Up"Symbol 48 MovieClip Frame 1Symbol 46 MovieClip
"Left"Symbol 48 MovieClip Frame 1Symbol 46 MovieClip

Special Tags

Protect (24)Timeline Frame 10 bytes ""

Labels

"Play"Frame 13
"PersoTir"Frame 17
"Fire"Frame 22
"Fin"Frame 27

Dynamic Text Variables

TextScoreSymbol 62 EditableText"Score : 0 / 0"
TextTimeSymbol 63 EditableText""




http://swfchan.com/6/28315/info.shtml
Created: 20/5 -2019 11:23:29 Last modified: 20/5 -2019 11:23:29 Server time: 22/12 -2024 12:43:50