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

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

Newton's Penguins.swf

This is the info page for
Flash #19148

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


Text
Loading...

"For every action, there is an equal and opposite reaction."
- Sir Isaac Newton, 1687

"Brrrrr! Cold, innit?"
- A penguin, yesterday

Click here.

Click here.

Click and drag a penguin with your mouse,
and release the button to start swinging.
Use the spacebar to reset.

fps: -

Delete ball (left arrow key)

5

Add ball (right arrow key)

Sound on/off (S)

R

R

Reset (R)

www.TheWebshite.co.uk

www.TheWebshite.co.uk

ActionScript [AS1/AS2]

Frame 11
ifFrameLoaded (206) { gotoAndPlay (13); }
Frame 12
gotoAndPlay (1);
Frame 125
stop();
Frame 206
stop(); function init() { _focusrect = false; frames = 0; startTime = 0; sound_off = false; tmp = 2; while (num_of_balls >= tmp) { duplicateMovieClip ("b1", "b" + tmp, tmp); this["b" + tmp]._x = this.b1._x + (32 * (tmp - 1)); tmp++; } cradle.swapDepths(20); coll_sound = new Sound(); coll_sound.attachSound("coll"); } function centreBalls() { tmp = 1; while (num_of_balls >= tmp) { this["b" + tmp]._x = (316 + ((tmp - 1) * 32)) - (num_of_balls * 16); tmp++; } startTime = 0; frames = 0; } function calc_fps() { if (startTime < getTimer()) { if (frames == 0) { fps = "fps: -"; } else { fps = "fps: " + (frames / 10); frames = 0; } startTime = getTimer() + 10000; } frames++; }
Instance of Symbol 58 MovieClip in Frame 206
onClipEvent (load) { _parent.init(); } onClipEvent (enterFrame) { _parent.calc_fps(); }
Symbol 16 Button
on (release) { gotoAndPlay (126); }
Symbol 29 Button
on (release) { if (1 < Number(num_of_balls)) { removeMovieClip("b" + num_of_balls); num_of_balls--; centreBalls(); } }
Symbol 35 Button
on (release) { if (Number(num_of_balls) < 7) { num_of_balls++; duplicateMovieClip ("b" + (num_of_balls - 1), "b" + num_of_balls, num_of_balls); if (this["b" + (num_of_balls - 1)].rotation < 0) { this["b" + num_of_balls].rotation = this["b" + (num_of_balls - 1)].rotation; } centreBalls(); } }
Symbol 40 Button
on (release, keyPress "s") { gotoAndStop (2); Set("/:sound_off", true); }
Symbol 41 Button
on (release, keyPress "s") { gotoAndStop (1); Set("/:sound_off", false); }
Symbol 42 MovieClip Frame 1
stop();
Symbol 47 Button
on (release, keyPress "<Space>") { tmp = 1; while (num_of_balls >= tmp) { this["b" + tmp].rotation = 0; this["b" + tmp].rot_vel = 0; tmp++; } }
Symbol 54 Button
on (press) { _parent._parent.move = true; } on (release, releaseOutside) { _parent._parent.move = false; }
Symbol 57 MovieClip Frame 1
ball._rotation = rotation; my_name = this._name; my_num = parseInt(my_name.substring(1, 2)); left_buddy = "b" + (my_num - 1); right_buddy = "b" + (my_num + 1); to_rad = (Math.PI/180);
Symbol 57 MovieClip Frame 2
if (move == true) { x = Math.max(Math.min(_xmouse, 124), -124); if (x < 0) { left = 1; } else { left = 0; } rotation = (Math.asin((-x) / 128) / Math.PI) * 180; rot_vel = (rotation - old_rotation) / 6; temp = my_num; if (left) { while (1 < temp) { if (_parent["b" + (temp - 1)].rotation < _parent["b" + temp].rotation) { _parent["b" + (temp - 1)].rotation = rotation; _parent["b" + (temp - 1)].rot_vel = rot_vel; } temp--; } } else { while (temp < _parent.num_of_balls) { if (_parent["b" + temp].rotation < _parent["b" + (temp + 1)].rotation) { _parent["b" + (temp + 1)].rotation = rotation; _parent["b" + (temp + 1)].rot_vel = rot_vel; } temp++; } } } else { rotation = rotation + rot_vel; if (90 < rotation) { rotation = 90; rot_vel = 0; } else if (rotation < -90) { rotation = -90; rot_vel = 0; } rot_vel = rot_vel - (rotation / 90); if ((rot_vel < 0) and (my_num < _parent.num_of_balls)) { if (rotation < _parent[right_buddy].rotation) { rot_diff = Math.abs(ball._rotation - _parent[right_buddy].ball._rotation); if ((_parent.sound_off == false) and (0.5 < rot_diff)) { _parent.coll_sound.setVolume(rot_diff * 5); _parent.coll_sound.setPan((-rotation) * 2); _parent.coll_sound.start(); } right_vel = _parent[right_buddy].rot_vel; _parent[right_buddy].rot_vel = rot_vel; rotation = _parent[right_buddy].rotation; rot_vel = right_vel; } } else if ((0 < rot_vel) and (1 < my_num)) { if (_parent[left_buddy].rotation < rotation) { rot_diff = Math.abs(ball._rotation - _parent[left_buddy].ball._rotation); if ((_parent.sound_off == false) and (0.5 < rot_diff)) { _parent.coll_sound.setVolume(rot_diff * 5); _parent.coll_sound.setPan((-rotation) * 2); _parent.coll_sound.start(); } left_vel = _parent[left_buddy].rot_vel; _parent[left_buddy].rot_vel = rot_vel; rotation = _parent[left_buddy].rotation; rot_vel = left_vel; } } } if (old_rotation != rotation) { ball._rotation = rotation; sin_value = Math.sin(rotation * to_rad); shadow._x = -160 * sin_value; if ((rotation < (last_rotation - 5)) or ((last_rotation + 5) < rotation)) { ball.button._rotation = (-rotation) * 0.75; scale = 100 + (Math.abs(sin_value) * 100); shadow._xscale = scale; shadow._yscale = scale; last_rotation = rotation; } old_rotation = rotation; }
Symbol 57 MovieClip Frame 3
call("loop"); gotoAndPlay (2);
Symbol 63 Button
on (release) { getURL ("http://www.thewebshite.co.uk", "_blank"); }

Library Items

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

Instance Names

"cradle"Frame 206Symbol 4 MovieClip [cradle]
"b1"Frame 206Symbol 57 MovieClip
"button"Symbol 56 MovieClip Frame 1Symbol 55 MovieClip
"shadow"Symbol 57 MovieClip Frame 1Symbol 50 MovieClip
"ball"Symbol 57 MovieClip Frame 1Symbol 56 MovieClip

Special Tags

Protect (24)Timeline Frame 131 bytes "..$1$HS$ch/KiLMJ3JYGJgrB0jBU3/."
ExportAssets (56)Timeline Frame 1Symbol 1 as "coll"
ExportAssets (56)Timeline Frame 1Symbol 3 as "cradle"
ExportAssets (56)Timeline Frame 1Symbol 4 as "cradle"
ExportAssets (56)Timeline Frame 206Symbol 4 as "cradle"

Labels

"init"Symbol 57 MovieClip Frame 1
"loop"Symbol 57 MovieClip Frame 2

Dynamic Text Variables

fpsSymbol 24 EditableText"fps: -"
num_of_ballsSymbol 30 EditableText"5"




http://swfchan.com/4/19148/info.shtml
Created: 30/5 -2019 07:05:01 Last modified: 30/5 -2019 07:05:01 Server time: 13/05 -2024 11:41:39