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

Punching Trainer.swf

This is the info page for
Flash #22543

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


Text
0

500

ActionScript [AS1/AS2]

Frame 1
loaded = "0";
Frame 23
ifFrameLoaded (70) { loaded = "1"; }
Frame 25
gotoAndPlay (21);
Frame 43
Set("../:tip", "CHECK THE INSTRUCTIONS BEFORE YOU ATTEMPT THIS EXERCISE."); Set("../:lineMax", "0"); Set("../:comms", "1"); tellTarget ("../instructions") { gotoAndPlay ("out"); }
Frame 50
gotoAndPlay (44);
Frame 51
if (../:registered == "1") { loadVariables ("scripts/missioncount.asp?misstrain=1&mission=1&agentID=" add ../:agentID, ""); } loader = ../:loader; Set("../:comms", "0"); startDrag (loader add "/trail0", true, "100", "324", "450", "324"); drag = "1"; tellTarget (loader add "/trail0") { gotoAndPlay (2); }; score = "0"; Set(loader add "/target1:up", "0"); Set(loader add "/target2:up", "0"); Set(loader add "/target3:up", "0"); Set(loader add "/target1:hit", "0"); Set(loader add "/target2:hit", "0"); Set(loader add "/target3:hit", "0"); start = "1"; goneTime = "0"; play();
Frame 52
if (start == "1") { play(); } else { gotoAndStop (60); } punch = "0";
Frame 53
punchFrame = int((getProperty(loader add "/trail1", _x) - "80") / "40") + "1"; tellTarget (loader add "/trail1") { gotoAndStop(../:punchFrame); }; if ((eval (loader add "/target1:up") == "0") and (random("3") == "0")) { target1 = random("10") + "1"; if ((target2 >= "8") and (target3 >= "8")) { target1 = "1"; } target1X = "170" + random("211"); tellTarget (loader add "/target1/character") { gotoAndStop(../../:target1); }; tellTarget (loader add "/target1") { _x = ../:target1X; count = "0"; upTime = "30" + random("50"); up = "1"; gotoAndPlay ("up"); }; } if ((eval (loader add "/target2:up") == "0") and (random("3") == "0")) { target2 = random("10") + "1"; if ((target1 >= "8") and (target3 >= "8")) { target2 = "1"; } target2X = "180" + random("201"); tellTarget (loader add "/target2/character") { gotoAndStop(../../:target2); }; tellTarget (loader add "/target2") { _x = ../:target2X; count = "0"; upTime = "30" + random("50"); up = "1"; gotoAndPlay ("up"); }; } if ((eval (loader add "/target3:up") == "0") and (random("3") == "0")) { target3 = random("10") + "1"; if ((target2 >= "8") and (target1 >= "8")) { target3 = "1"; } target3X = "190" + random("191"); tellTarget (loader add "/target3/character") { gotoAndStop(../../:target3); }; tellTarget (loader add "/target3") { _x = ../:target3X; count = "0"; upTime = "30" + random("50"); up = "1"; gotoAndPlay ("up"); }; } prevFrame();
Frame 56
if (count == "11") { scale = scale * (-"1"); xMove = xMove * (-"1"); yMove = yMove * (-"1"); } play();
Frame 57
if ("21" >= count) { setProperty(loader add "/trail1", _x , getProperty(loader add "/trail1", _x) + xMove); setProperty(loader add "/trail1", _y , getProperty(loader add "/trail1", _y) - yMove); setProperty(loader add "/trail1", _xscale , getProperty(loader add "/trail1", _xscale) - scale); setProperty(loader add "/trail1", _yscale , getProperty(loader add "/trail1", _yscale) - scale); posZ = getProperty(loader add "/trail1", _xscale); posX = getProperty(loader add "/trail1", _x); count = count + "1"; if ((((((((posZ < "42") and ("34" < posZ)) and ((posX - target1X) < "30")) and ((-"30") < (posX - target1X))) and (eval (loader add "/target1:hit") == "0")) and (eval (loader add "/target1:up") == "1")) and (eval (loader add "/target1:down") == "0")) and (count < "11")) { if (target1 < "8") { score = score + "20"; } else if (score >= "10") { score = score - "10"; } tellTarget (loader add "/target1") { hit = "1"; gotoAndPlay ("hit"); }; scale = scale * (-"1"); xMove = xMove * (-"1"); yMove = yMove * (-"1"); count = "23" - count; } if ((((((((posZ < "32") and ("24" < posZ)) and ((posX - target2X) < "27")) and ((-"27") < (posX - target2X))) and (eval (loader add "/target2:hit") == "0")) and (eval (loader add "/target2:up") == "1")) and (eval (loader add "/target2:down") == "0")) and (count < "11")) { if (target2 < "8") { score = score + "25"; } else if (score >= "10") { score = score - "10"; } tellTarget (loader add "/target2") { hit = "1"; gotoAndPlay ("hit"); }; scale = scale * (-"1"); xMove = xMove * (-"1"); yMove = yMove * (-"1"); count = "23" - count; } if ((((((((posZ < "24") and ("12" < posZ)) and ((posX - target3X) < "24")) and ((-"24") < (posX - target3X))) and (eval (loader add "/target3:hit") == "0")) and (eval (loader add "/target3:up") == "1")) and (eval (loader add "/target3:down") == "0")) and (count < "11")) { if (target3 < "8") { score = score + "30"; } else if (score >= "10") { score = score - "10"; } tellTarget (loader add "/target3") { hit = "1"; gotoAndPlay ("hit"); }; scale = scale * (-"1"); xMove = xMove * (-"1"); yMove = yMove * (-"1"); count = "23" - count; } prevFrame(); } else { setProperty(loader add "/trail1", _xscale , "100"); setProperty(loader add "/trail1", _yscale , "100"); tellTarget (loader add "/trail0") { gotoAndPlay (2); }; gotoAndPlay (52); }
Frame 60
stop();
Symbol 8 MovieClip Frame 1
play();
Symbol 8 MovieClip Frame 62
if (../:loaded == "1") { gotoAndStop (120); }
Symbol 8 MovieClip Frame 73
if (../:loaded == "1") { gotoAndStop (120); }
Symbol 8 MovieClip Frame 82
if (../:loaded == "1") { gotoAndStop (120); }
Symbol 8 MovieClip Frame 92
if (../:loaded == "1") { gotoAndStop (120); }
Symbol 8 MovieClip Frame 102
if (../:loaded == "1") { gotoAndStop (120); }
Symbol 8 MovieClip Frame 112
if (../:loaded == "1") { gotoAndStop (120); }
Symbol 8 MovieClip Frame 120
play();
Symbol 8 MovieClip Frame 162
if (../:loaded == "1") { gotoAndStop (225); }
Symbol 8 MovieClip Frame 170
if (../:loaded == "1") { gotoAndStop (225); }
Symbol 8 MovieClip Frame 178
if (../:loaded == "1") { gotoAndStop (225); }
Symbol 8 MovieClip Frame 187
if (../:loaded == "1") { gotoAndStop (225); }
Symbol 8 MovieClip Frame 196
if (../:loaded == "1") { gotoAndStop (225); }
Symbol 8 MovieClip Frame 206
if (../:loaded == "1") { gotoAndStop (225); }
Symbol 8 MovieClip Frame 216
if (../:loaded == "1") { gotoAndStop (225); }
Symbol 8 MovieClip Frame 225
play();
Symbol 8 MovieClip Frame 257
if (../:loaded == "1") { tellTarget ("../") { gotoAndPlay ("enterplay"); }; }
Symbol 8 MovieClip Frame 259
gotoAndPlay (239);
Symbol 12 Button
on (release) { gotoAndPlay (51); }
Symbol 15 MovieClip Frame 1
play();
Symbol 15 MovieClip Frame 10
gotoAndPlay (1);
Symbol 17 Button
on (release) { gotoAndPlay (51); }
Symbol 22 MovieClip Frame 1
play();
Symbol 22 MovieClip Frame 2
if (../:start == "1") { Set("../:goneTime", ../:goneTime + "83"); nowTime = "60000" - ../:goneTime; if ("0" >= nowTime) { nowTime = "0"; tellTarget ("../") { start = "0"; }; } secs = int(nowTime / "1000"); mins = int(secs / "60"); if ("0" < mins) { secs = secs - (mins * "60"); } timeTemp = ("0" add mins) add ":"; if (secs < "10") { timeTemp = (timeTemp add "0") add secs; } else { timeTemp = timeTemp add secs; } if (mins < "1") { millis = int((nowTime - (secs * "1000")) / "10"); } else { millis = int((nowTime - ((secs * "1000") + (mins * "60000"))) / "10"); } timeTemp = (timeTemp add ":") add millis; time = timeTemp; } prevFrame();
Symbol 34 MovieClip Frame 1
up = "0"; hit = "0"; stop();
Symbol 34 MovieClip Frame 7
down = "0";
Symbol 34 MovieClip Frame 8
play();
Symbol 34 MovieClip Frame 9
if (count < upTime) { count = count + "1"; prevFrame(); } else { gotoAndPlay (11); }
Symbol 34 MovieClip Frame 11
down = "1";
Symbol 34 MovieClip Frame 14
gotoAndStop (1);
Symbol 34 MovieClip Frame 20
gotoAndPlay (11);
Symbol 40 MovieClip Frame 1
play();
Symbol 40 MovieClip Frame 7
gotoAndPlay (1);
Symbol 50 MovieClip Frame 1
stop();
Symbol 50 MovieClip Frame 2
i = "1"; a = "5"; b = "1.55"; k = "0"; while (i >= "0") { Set(((../:loader add "/trail") add i) add ":x_value", getProperty((../:loader add "/trail") add i, _x)); Set(((../:loader add "/trail") add i) add ":y_value", getProperty((../:loader add "/trail") add i, _y)); Set(((../:loader add "/trail") add i) add ":vx", "0"); Set(((../:loader add "/trail") add i) add ":vy", "0"); i = i - "1"; } play();
Symbol 50 MovieClip Frame 3
Set(../:loader add "/trail1:vx", (eval (../:loader add "/trail1:vx") + ((((eval (../:loader add "/trail0:x_value") + k) - eval (../:loader add "/trail1:x_value")) * "1") / a)) / b); Set(../:loader add "/trail1:vy", (eval (../:loader add "/trail1:vy") + ((((eval (../:loader add "/trail0:y_value") + k) - eval (../:loader add "/trail1:y_value")) * "1") / a)) / b); Set(../:loader add "/trail1:x_value", eval (../:loader add "/trail1:x_value") + eval (../:loader add "/trail1:vx")); Set(../:loader add "/trail1:y_value", eval (../:loader add "/trail1:y_value") + eval (../:loader add "/trail1:vy")); Set(../:loader add "/trail0:x_value", getProperty(../:loader add "/trail0", _x)); Set(../:loader add "/trail0:y_value", getProperty(../:loader add "/trail0", _y)); setProperty(../:loader add "/trail1", _x , eval (../:loader add "/trail1:x_value")); setProperty(../:loader add "/trail1", _y , eval (../:loader add "/trail1:y_value")); play();
Symbol 50 MovieClip Frame 4
prevFrame();
Symbol 51 Button
on (rollOver) { if (drag == "0") { drag = "1"; startDrag (loader add "/trail0", true, "100", "324", "450", "324"); } } on (rollOut) { drag = "0"; stopDrag(); } on (press) { power = "0"; tellTarget (loader add "/power") { gotoAndPlay (2); } } on (release, releaseOutside) { if (punch == "0") { scale = power * "0.18"; yMove = scale * "2.666"; xMove = (("275" - getProperty(loader add "/trail1", _x)) * "0.006") * scale; tellTarget (loader add "/trail0") { gotoAndStop (1); }; tellTarget (loader add "/power/bar") { gotoAndStop (1); }; tellTarget (loader add "/power") { gotoAndStop (1); }; tellTarget (loader add "/sounds") { gotoAndPlay (2); }; count = "1"; punch = "1"; gotoAndPlay (57); } }
Symbol 53 MovieClip Frame 1
stop();
Symbol 53 MovieClip Frame 11
stop();
Symbol 55 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 2
play();
Symbol 55 MovieClip Frame 3
if (../:power < "48") { Set("../:power", ../:power + "4"); } tellTarget ("bar") { gotoAndStop(int(../../:power / "5") + "2"); }; prevFrame();
Symbol 57 MovieClip Frame 1
stop();
Symbol 57 MovieClip Frame 25
gotoAndStop (1);
Symbol 64 Button
on (release) { gotoAndPlay (51); }
Symbol 75 MovieClip Frame 1
scoreTemp = "0"; incScore = ../:score / "25"; play();
Symbol 75 MovieClip Frame 2
play();
Symbol 75 MovieClip Frame 3
scoreTemp = int(scoreTemp + incScore); if (scoreTemp < ../:score) { prevFrame(); } else { scoreTemp = ../:score; nextFrame(); }
Symbol 75 MovieClip Frame 4
if ((../../:statusThreshold < "20000") and (../../:registered == "1")) { Set("../../:agentStatusScore", ../../:agentStatusScore + scoreTemp); if (../../:statusThreshold < ../../:agentStatusScore) { if (../../:statusThreshold == "5000") { Set("../../:statusThreshold", "15000"); Set("../../:agentStatus", "2"); } else { Set("../../:statusThreshold", "20000"); Set("../../:agentStatus", "3"); } Set("../../:tip", "GRRREAT WORK AGENT. YOU'VE NOW GAINED AGENT POWER " add ../../:agentStatus); Set("../../:lineMax", "0"); Set("../../:comms", "1"); agentID = ../../:agentID; statusScore = ../../:agentStatusScore; loadVariables ((("scripts/agentstatus.asp?agentID=" add agentID) add "&statusScore=") add statusScore, ""); } } stop();

Library Items

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

Instance Names

"timer"Frame 51Symbol 22 MovieClip
"target3"Frame 51Symbol 34 MovieClip
"target2"Frame 51Symbol 34 MovieClip
"target1"Frame 51Symbol 34 MovieClip
"trail1"Frame 51Symbol 49 MovieClip
"trail0"Frame 51Symbol 50 MovieClip
"power"Frame 51Symbol 55 MovieClip
"sounds"Frame 51Symbol 57 MovieClip
"timetoscore"Frame 60Symbol 75 MovieClip
"character"Symbol 34 MovieClip Frame 1Symbol 31 MovieClip
"bar"Symbol 55 MovieClip Frame 1Symbol 53 MovieClip

Special Tags

Protect (24)Timeline Frame 10 bytes ""

Labels

"load01"Frame 21
"enterplay"Frame 26
"enterplayb"Frame 44
"aim"Frame 52
"punch"Frame 57
"gameover"Frame 60
"endframe"Frame 70
"barloaded01"Symbol 8 MovieClip Frame 120
"barloaded02"Symbol 8 MovieClip Frame 225
"loopframe"Symbol 8 MovieClip Frame 239
"up"Symbol 34 MovieClip Frame 3
"down"Symbol 34 MovieClip Frame 11
"hit"Symbol 34 MovieClip Frame 17

Dynamic Text Variables

timeSymbol 21 EditableText""
scoreSymbol 25 EditableText"0"
scoreTempSymbol 73 EditableText"500"




http://swfchan.com/5/22543/info.shtml
Created: 26/5 -2019 21:28:56 Last modified: 26/5 -2019 21:28:56 Server time: 22/12 -2024 05:49:47