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

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

FF13_2Quiz.swf

This is the info page for
Flash #103008

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


Text
◆使い方◆

(1) Flashプラグイン上のどこかを
  クリックして下さい。

(2) 問題を上から時計回りに入力します。
  ・1~6キー:入力
  ・0キー:削除
  コンピュータが直ちに解答を計算します。

無理ゲー

1

2

3

4

5

6

12

12

12

12

12

12

12

12

12

12

12

12

12

ActionScript [AS1/AS2]

Frame 1
function Init() { num = 0; var i; i = 0; while (i < max) { qNums[i] = 0; i++; } DrawView(); } function Add(i) { if (num < max) { qNums[num] = i; num++; DrawView(); } } function Delete() { if (num > 0) { qNums[num] = 0; num--; DrawView(); } } function DrawView() { var i; var r = 83; var rad; var center_x = 135; var center_y = 135; i = 0; while (i < max) { var original = ("i" + qNums[i]); var tgt = ("p" + i); removeMovieClip(tgt); i++; } i = 0; while (i < num) { var original = ("i" + qNums[i]); var tgt = ("p" + i); duplicateMovieClip (original, tgt, 10 + i); rad = Math.PI * (-0.5 + ((2 * i) / num)); setProperty(tgt, _x , center_x + (r * Math.cos(rad))); setProperty(tgt, _y , center_y + (r * Math.sin(rad))); i++; } Calc(); } function DrawAnsOrder() { var i; var r = 114; var rad; var center_x = 118.5; var center_y = 119.4; i = 0; while (i < max) { var tgt = ("txtOrder" + i); if ((i < num) && (hasAns)) { rad = Math.PI * (-0.5 + ((2 * i) / num)); setProperty(tgt, _x , center_x + (r * Math.cos(rad))); setProperty(tgt, _y , center_y + (r * Math.sin(rad))); } else { setProperty(tgt, _x , 0); setProperty(tgt, _y , 900); } i++; } txtOrder0.text = ansOrder[0]; txtOrder1.text = ansOrder[1]; txtOrder2.text = ansOrder[2]; txtOrder3.text = ansOrder[3]; txtOrder4.text = ansOrder[4]; txtOrder5.text = ansOrder[5]; txtOrder6.text = ansOrder[6]; txtOrder7.text = ansOrder[7]; txtOrder8.text = ansOrder[8]; txtOrder9.text = ansOrder[9]; txtOrder10.text = ansOrder[10]; txtOrder11.text = ansOrder[11]; txtOrder12.text = ansOrder[12]; txtOrder13.text = ansOrder[13]; } function Calc() { var k; var orders = new Array(max); i = 0; while (i < max) { orders[i] = 0; ansOrder[i] = 0; i++; } hasAns = false; nAns = 0; k = 0; while (k < num) { Check(orders, k, 1); k++; } if (hasAns == true) { result.text = ("\u53EF\u80FD(" + nAns) + "\u901A\u308A)"; } else { result.text = "\u7121\u7406\u30B2\u30FC"; } DrawAnsOrder(); } function Check(oldOrder, cPos, count) { var i; var newOrder = new Array(max); i = 0; while (i < max) { newOrder[i] = oldOrder[i]; i++; } newOrder[cPos] = count; var upper = ((cPos + qNums[cPos]) % num); var lower = ((((6 * num) + cPos) - qNums[cPos]) % num); if (newOrder[upper] == 0) { Check(newOrder, upper, count + 1); } if ((newOrder[lower] == 0) && (upper != lower)) { Check(newOrder, lower, count + 1); } if ((newOrder[upper] != 0) && (newOrder[lower] != 0)) { if (count == num) { hasAns = true; nAns = nAns + 1; i = 0; while (i < max) { ansOrder[i] = newOrder[i]; i++; } } } } var max = 13; var num = 0; var qNums = new Array(13); var ansOrder = new Array(13); var hasAns; var nAns; Init(); var key_obj = new Object(); key_obj.onKeyDown = function () { var ascii = Key.getAscii(); if (!(ascii === Key.BACKSPACE)) { } else { Delete(); } var code = Key.getCode(); switch (code) { case 49 : case 97 : Add(1); return; case 50 : case 98 : Add(2); return; case 51 : case 99 : Add(3); return; case 52 : case 100 : Add(4); return; case 53 : case 101 : Add(5); return; case 54 : case 102 : Add(6); return; case 8 : case 12 : case 46 : case 48 : case 96 : Delete(); } }; Key.addListener(key_obj);
Frame 3
gotoAndPlay (2);

Library Items

Symbol 1 GraphicUsed by:Timeline
Symbol 2 FontUsed by:3 4
Symbol 3 EditableTextUses:2Used by:Timeline
Symbol 4 EditableTextUses:2Used by:Timeline
Symbol 5 GraphicUsed by:6
Symbol 6 MovieClipUses:5Used by:Timeline
Symbol 7 GraphicUsed by:10 12 14 16 18 20
Symbol 8 FontUsed by:9 11 13 15 17 19
Symbol 9 TextUses:8Used by:10
Symbol 10 MovieClipUses:7 9Used by:Timeline
Symbol 11 TextUses:8Used by:12
Symbol 12 MovieClipUses:7 11Used by:Timeline
Symbol 13 TextUses:8Used by:14
Symbol 14 MovieClipUses:7 13Used by:Timeline
Symbol 15 TextUses:8Used by:16
Symbol 16 MovieClipUses:7 15Used by:Timeline
Symbol 17 TextUses:8Used by:18
Symbol 18 MovieClipUses:7 17Used by:Timeline
Symbol 19 TextUses:8Used by:20
Symbol 20 MovieClipUses:7 19Used by:Timeline
Symbol 21 FontUsed by:22 23 24 25 26 27 28 29 30 31 32 33 34
Symbol 22 EditableTextUses:21Used by:Timeline
Symbol 23 EditableTextUses:21Used by:Timeline
Symbol 24 EditableTextUses:21Used by:Timeline
Symbol 25 EditableTextUses:21Used by:Timeline
Symbol 26 EditableTextUses:21Used by:Timeline
Symbol 27 EditableTextUses:21Used by:Timeline
Symbol 28 EditableTextUses:21Used by:Timeline
Symbol 29 EditableTextUses:21Used by:Timeline
Symbol 30 EditableTextUses:21Used by:Timeline
Symbol 31 EditableTextUses:21Used by:Timeline
Symbol 32 EditableTextUses:21Used by:Timeline
Symbol 33 EditableTextUses:21Used by:Timeline
Symbol 34 EditableTextUses:21Used by:Timeline

Instance Names

"result"Frame 1Symbol 4 EditableText
"i0"Frame 1Symbol 6 MovieClip
"i1"Frame 1Symbol 10 MovieClip
"i2"Frame 1Symbol 12 MovieClip
"i3"Frame 1Symbol 14 MovieClip
"i4"Frame 1Symbol 16 MovieClip
"i5"Frame 1Symbol 18 MovieClip
"i6"Frame 1Symbol 20 MovieClip
"txtOrder0"Frame 1Symbol 22 EditableText
"txtOrder1"Frame 1Symbol 23 EditableText
"txtOrder2"Frame 1Symbol 24 EditableText
"txtOrder3"Frame 1Symbol 25 EditableText
"txtOrder4"Frame 1Symbol 26 EditableText
"txtOrder5"Frame 1Symbol 27 EditableText
"txtOrder6"Frame 1Symbol 28 EditableText
"txtOrder7"Frame 1Symbol 29 EditableText
"txtOrder8"Frame 1Symbol 30 EditableText
"txtOrder9"Frame 1Symbol 31 EditableText
"txtOrder10"Frame 1Symbol 32 EditableText
"txtOrder11"Frame 1Symbol 33 EditableText
"txtOrder12"Frame 1Symbol 34 EditableText




http://swfchan.com/21/103008/info.shtml
Created: 6/2 -2012 08:01:24 Last modified: 6/2 -2012 08:01:24 Server time: 15/12 -2018 05:41:49