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

Flash Calculator.swf

This is the info page for
Flash #59768

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


Text

ActionScript [AS1/AS2]

Frame 1
fscommand ("fullscreen", "false"); fscommand ("showmenu", "false"); calctext = "0"; decimal = eval("False"); lastkey = "empty";
Frame 5
stop();
Symbol 7 Button
on (press) { newdig = "3.14159"; call("/actions:digitcall"); }
Symbol 15 Button
on (press) { if ((lastkey eq "operator") or (lastkey eq "equals")) { calctext = "0."; decimal = eval("True"); } if (Number(decimal) == Number(eval("False"))) { calctext = calctext add "."; decimal = eval("True"); } lastkey = "digit"; }
Symbol 17 Button
on (press) { newdig = "0"; call("/actions:digitcall"); }
Symbol 19 Button
on (press) { newdig = "1"; call("/actions:digitcall"); }
Symbol 21 Button
on (press) { newdig = "4"; call("/actions:digitcall"); }
Symbol 23 Button
on (press) { newdig = "7"; call("/actions:digitcall"); }
Symbol 25 Button
on (press) { newdig = "2"; call("/actions:digitcall"); }
Symbol 27 Button
on (press) { newdig = "5"; call("/actions:digitcall"); }
Symbol 29 Button
on (press) { newdig = "8"; call("/actions:digitcall"); }
Symbol 31 Button
on (press) { newdig = "3"; call("/actions:digitcall"); }
Symbol 33 Button
on (press) { newdig = "6"; call("/actions:digitcall"); }
Symbol 35 Button
on (press) { newdig = "9"; call("/actions:digitcall"); }
Symbol 37 Button
on (release) { newop = "/"; call("/actions:opcall"); }
Symbol 40 Button
on (release) { newop = "*"; call("/actions:opcall"); }
Symbol 42 Button
on (release) { newop = "-"; call("/actions:opcall"); }
Symbol 44 Button
on (release) { newop = "+"; call("/actions:opcall"); }
Symbol 46 Button
on (release) { if (Number(calctext) < 0) { calctext = "Error. Press C."; } else { i = 0; n = 1; while (Number(i) < 500) { n = n - (((n * n) - calctext) / (2 * n)); i = Number(i) + 1; } calctext = n; lastkey = "equals"; } }
Symbol 48 Button
on (release) { call("/actions:calculate"); lastkey = "equals"; operator = "empty"; }
Symbol 50 Button
on (release) { calctext = "0"; x1 = "0"; lastkey = "clear"; operator = "empty"; decimal = eval("False"); }
Symbol 53 Button
on (release) { stopAllSounds(); }
Symbol 54 MovieClip Frame 1
stop();
Symbol 54 MovieClip Frame 5
if (((/:calctext eq "0") or (/:lastkey eq "equals")) or (/:lastkey eq "operator")) { Set("/:calctext", /:newdig); } else { Set("/:calctext", /:calctext add /:newdig); } Set("/:lastkey", "digit");
Symbol 54 MovieClip Frame 10
if (/:lastkey eq "operator") { Set("/:operator", /:newop); } else if (((/:lastkey eq "digit") or (/:lastkey eq "equals")) or (/:lastkey eq "clear")) { call("calculate"); Set("/:operator", /:newop); } Set("/:lastkey", "operator");
Symbol 54 MovieClip Frame 15
if (/:operator eq "+") { z1 = Number(/:x1) + Number(/:calctext); Set("/:calctext", z1); Set("/:x1", z1); } else if (/:operator eq "-") { z1 = /:x1 - /:calctext; Set("/:calctext", z1); Set("/:x1", z1); } else if (/:operator eq "*") { z1 = /:x1 * /:calctext; Set("/:calctext", z1); Set("/:x1", z1); } else if (/:operator eq "/") { z1 = /:x1; Set("/:calctext", z1); Set("/:x1", z1); } else if (/:operator eq "exp") { if ((Number(/:calctext) != Number(int(/:calctext))) or (Number(/:calctext) < 1)) { Set("/:calctext", "Error. Press C."); } else { it = 1; base = /:x1; z1 = base; maxit = /:calctext; while (Number(it) < Number(maxit)) { z1 = z1 * base; it = Number(it) + 1; } Set("/:calctext", z1); Set("/:x1", z1); } } else { Set("/:x1", /:calctext); }

Library Items

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

Instance Names

"actions"Frame 1Symbol 54 MovieClip

Labels

"digitcall"Symbol 54 MovieClip Frame 5
"opcall"Symbol 54 MovieClip Frame 10
"calculate"Symbol 54 MovieClip Frame 15

Dynamic Text Variables

calctextSymbol 56 EditableText"      "




http://swfchan.com/12/59768/info.shtml
Created: 16/4 -2019 15:11:47 Last modified: 16/4 -2019 15:11:47 Server time: 22/12 -2024 19:52:53