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

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

Projectile.swf

This is the info page for
Flash #51424

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


Text
x

y

Projectile Motion

v
0
= 31.3 m/s
Air resistance is negligible
Time is speeded up

Copyright © 2004 David M. Harrison

50

100

150

Drag the slider to
position the gun

Click the knob and
drag left or right
to change the gun
angle:

Fire:

Gun
position

Gun
angle

CCW

CW

y
0
=

q =

m

degrees

t =

s

x
f
=

m

ActionScript [AS1/AS2]

Frame 1
var v0 = 10; var g = 0.5; var theta; var t = 0; var tf; var tdisplay; var xfdisplay; onEnterFrame = function () { if (_currentframe == 1) { gun_posn._visible = true; gun_angle._visible = true; bullet._visible = false; play_btn._visible = true; pause_btn._visible = false; rewind_btn._visible = false; pistol._y = 350 - (2 * gun_posn.level); pistol._rotation = gun_angle.level; gun_flash_mc._y = 350 - (2 * gun_posn.level); gun_flash_mc._rotation = gun_angle.level; gun_flash_mc.gotoAndStop(1); y_line._y = 350 - (2 * gun_posn.level); x_line._x = 149.8; theta_degrees = -gun_angle.level; theta = (gun_angle.level * Math.PI) / 180; tdisplay = "0.00"; } else if (_currentframe == 73) { play_btn._visible = false; pause_btn._visible = false; } else { if (_currentframe == 2) { gun_flash_mc.play(); } gun_posn._visible = false; gun_angle._visible = false; pause_btn._visible = true; rewind_btn._visible = true; bullet._visible = true; t = _currentframe - 1; x = 150 + ((v0 * Math.cos(theta)) * t); y = ((350 - (2 * gun_posn.level)) + ((v0 * Math.sin(theta)) * t)) + ((0.5 * g) * Math.pow(t, 2)); if ((x > 500) || (y >= 350)) { y_line._y = 350; h = 2 * gun_posn.level; tf = Math.pow(v0 * Math.sin(-theta), 2) + ((2 * g) * h); tf = (v0 * Math.sin(-theta)) + Math.sqrt(tf); tf = tf / g; tdisplay = Math.round((tf * 100) / 6.261) / 100; xf = 150 + ((v0 * Math.cos(-theta)) * tf); xfdisplay = Math.round(((v0 * Math.cos(theta)) * tf) * 50) / 100; x_line._x = xf; bullet._x = xf; bullet._y = 350; gotoAndStop (73); } else { bullet._x = x; bullet._y = y; attachMovie("red_dot_mc", "dot" + t, 100 + t); setProperty("dot" + t, _x , x); setProperty("dot" + t, _y , y); x_line._x = x; y_line._y = y; tdisplay = Math.round((t * 100) / 6.261) / 100; } } }; stop();
Frame 73
stop();
Symbol 31 MovieClip Frame 1
top = vol._y; left = vol._x; right = vol._x; bottom = vol._y + 100; level = 75; vol.onPress = function () { startDrag ("vol", false, left, top, right, bottom); dragging = true; }; vol.onRelease = function () { stopDrag(); dragging = false; }; vol.onReleaseOutside = function () { dragging = false; }; this.onEnterFrame = function () { if (dragging) { level = 100 - (vol._y - top); } else if (level > 100) { level = 100; } else if (level < 0) { level = 0; } else { vol._y = ((-level) + 100) + top; } };
Symbol 42 MovieClip Frame 1
increment = 4; level = 0; panKnob.onPress = function () { if (Key.isDown(Key.getCode(18))) { autoPan = true; } else { autoPan = false; start = _root._xmouse; newStart = panKnob._rotation; dragging = true; } }; panKnob.onRelease = function () { dragging = false; }; panKnob.onReleaseOutside = function () { dragging = false; }; this.onEnterFrame = function () { if (dragging) { pivot = ((_root._xmouse - start) * 2) + newStart; panKnob._rotation = pivot; if (pivot < -135) { panKnob._rotation = -135; } if (pivot > 135) { panKnob._rotation = 135; } level = Math.round(panKnob._rotation / 1.5); } else { if (autoPan) { textInput.value.selectable = false; level = level + increment; if ((level > 90) || (level < -90)) { increment = increment * -1; } } else { textInput.value.selectable = true; } if (level > 90) { level = 90; } else if (level < -90) { level = -90; } else if ((level <= 90) && (level >= -90)) { panKnob._rotation = level * 1.5; } } sound.setPan(level); };
Symbol 49 Button
on (release) { stop(); }
Symbol 52 Button
on (release) { i = 1; while (i <= 73) { removeMovieClip("dot" + i); i++; } gotoAndStop (1); }
Symbol 55 Button
on (release) { play(); }
Symbol 71 MovieClip Frame 5
stop();

Library Items

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

Instance Names

"gun_posn"Frame 1Symbol 31 MovieClip
"gun_angle"Frame 1Symbol 42 MovieClip
"pause_btn"Frame 1Symbol 49 Button
"rewind_btn"Frame 1Symbol 52 Button
"play_btn"Frame 1Symbol 55 Button
"x_line"Frame 1Symbol 67 MovieClip
"y_line"Frame 1Symbol 69 MovieClip
"pistol"Frame 1Symbol 6 MovieClip [pistol_mc]
"bullet"Frame 1Symbol 3 MovieClip [gun_mc]
"gun_flash_mc"Frame 1Symbol 71 MovieClip
"value"Symbol 30 MovieClip Frame 1Symbol 29 EditableText
"vol"Symbol 31 MovieClip Frame 1Symbol 27 MovieClip
"textInput"Symbol 31 MovieClip Frame 1Symbol 30 MovieClip
"knobborder"Symbol 42 MovieClip Frame 1Symbol 39 MovieClip
"panKnob"Symbol 42 MovieClip Frame 1Symbol 41 MovieClip
"textInput"Symbol 42 MovieClip Frame 1Symbol 30 MovieClip

Special Tags

ExportAssets (56)Timeline Frame 1Symbol 2 as "red_dot_mc"
ExportAssets (56)Timeline Frame 1Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 1Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 1Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 1Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 2Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 2Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 3Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 3Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 4Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 4Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 5Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 5Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 6Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 6Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 7Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 7Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 8Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 8Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 9Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 9Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 10Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 10Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 11Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 11Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 12Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 12Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 13Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 13Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 14Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 14Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 15Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 15Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 16Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 16Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 17Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 17Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 18Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 18Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 19Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 19Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 20Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 20Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 21Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 21Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 22Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 22Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 23Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 23Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 24Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 24Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 25Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 25Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 26Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 26Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 27Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 27Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 28Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 28Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 29Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 29Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 30Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 30Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 31Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 31Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 32Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 32Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 33Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 33Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 34Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 34Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 35Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 35Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 36Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 36Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 37Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 37Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 38Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 38Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 39Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 39Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 40Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 40Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 41Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 41Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 42Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 42Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 43Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 43Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 44Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 44Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 45Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 45Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 46Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 46Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 47Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 47Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 48Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 48Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 49Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 49Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 50Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 50Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 51Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 51Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 52Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 52Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 53Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 53Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 54Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 54Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 55Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 55Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 56Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 56Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 57Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 57Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 58Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 58Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 59Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 59Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 60Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 60Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 61Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 61Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 62Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 62Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 63Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 63Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 64Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 64Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 65Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 65Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 66Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 66Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 67Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 67Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 68Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 68Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 69Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 69Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 70Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 70Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 71Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 71Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 72Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 72Symbol 3 as "gun_mc"
ExportAssets (56)Timeline Frame 73Symbol 6 as "pistol_mc"
ExportAssets (56)Timeline Frame 73Symbol 3 as "gun_mc"

Dynamic Text Variables

_parent.levelSymbol 29 EditableText""
gun_posn.levelSymbol 56 EditableText""
theta_degreesSymbol 57 EditableText""
tdisplaySymbol 63 EditableText""
xfdisplaySymbol 73 EditableText""




http://swfchan.com/11/51424/info.shtml
Created: 25/4 -2019 01:11:43 Last modified: 25/4 -2019 01:11:43 Server time: 11/05 -2024 19:10:33