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

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

lightsout.swf

This is the info page for
Flash #78193

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


Text
START

The objective is to turn all lights on the board out.
By clicking a piece you will reverse the state for
that piece and every adjacent piece.
Turn all lights out.

CONGRATULATIONS

try next level

EXIT

ActionScript [AS1/AS2]

Frame 1
stop(); playing = 1;
Instance of Symbol 10 MovieClip in Frame 1
onClipEvent (enterFrame) { text = ((int(_parent.getBytesLoaded() / 1000) add " KBYTES OF ") add int(_parent.getBytesTotal() / 1000)) add " LOADED ..."; if (_parent.getBytesTotal() == _parent.getBytesLoaded()) { _parent.gotoAndStop(2); } }
Frame 2
stopAllSounds(); stop();
Frame 3
bArray = [[0], [2, 2, 1, 2, 2, 2, 1, 2, 1, 2, 1, 2, 2, 2, 1, 2, 1, 2, 1, 2, 2, 2, 1, 2, 2], [1, 2, 1, 2, 1, 2, 2, 1, 2, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 2, 1, 2, 1, 2], [2, 1, 1, 1, 2, 2, 2, 1, 2, 2, 1, 1, 2, 1, 1, 2, 1, 2, 1, 1, 2, 1, 2, 2, 1], [2, 2, 1, 2, 2, 1, 1, 1, 1, 1, 2, 2, 1, 2, 2, 1, 1, 1, 1, 2, 2, 2, 1, 1, 1], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [1, 1, 1, 2, 2, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 2, 2, 1, 1, 1], [1, 1, 1, 1, 1, 1, 2, 2, 2, 1, 2, 2, 2, 2, 2, 1, 2, 2, 2, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 2, 2, 2, 1, 1, 2, 2, 2, 1, 1, 2, 2, 2, 1, 1, 1, 1, 1, 1], [2, 2, 1, 2, 2, 2, 2, 1, 2, 2, 1, 1, 1, 1, 1, 2, 2, 1, 2, 2, 2, 2, 1, 2, 2], [2, 2, 2, 2, 2, 2, 1, 1, 1, 2, 2, 1, 1, 1, 2, 2, 1, 1, 1, 2, 2, 2, 2, 2, 2], [1, 1, 2, 2, 2, 1, 1, 1, 2, 2, 2, 1, 1, 1, 2, 2, 2, 1, 1, 1, 2, 2, 2, 1, 1], [2, 1, 1, 1, 2, 1, 2, 1, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 2, 1, 2, 1, 1, 1, 2], [2, 2, 2, 2, 2, 2, 1, 2, 1, 2, 2, 2, 2, 2, 2, 2, 1, 2, 1, 2, 2, 2, 2, 2, 2], [1, 1, 1, 1, 2, 1, 1, 1, 2, 2, 1, 1, 2, 1, 2, 1, 2, 1, 1, 2, 2, 2, 2, 2, 2]]; playGame = true; setButtons = function () { left = 30; top = 25; step = 0; i = 0; while (i < 25) { b = "b" + i; t.attachMovie("button", b, 1000 + i); t[b]._x = left; t[b]._y = top; ((bArray[lv][i] == 1) ? ((t[b].state = false)) : ((t[b].state = true))); t[b].gotoAndStop(bArray[lv][i]); left = left + 55; if (step == 4) { left = 30; top = top + 55; step = 0; } else { step++; } i++; } }; doClick = function (pos, left, right, up, down) { var _local1 = _root; var _local2 = pos; if (playGame) { _local1.mc = _local1.t["b" + _local2]; _local1.lmc = _local1.t["b" + left]; _local1.rmc = _local1.t["b" + right]; _local1.dmc = _local1.t["b" + down]; _local1.umc = _local1.t["b" + up]; if (mc.state == true) { mc.state = false; mc.gotoAndStop(1); } else { mc.state = true; mc.gotoAndStop(2); } if ((((_local2 != 5) and (_local2 != 10)) and (_local2 != 15)) and (_local2 != 20)) { if (lmc.state == true) { lmc.state = false; lmc.gotoAndStop(1); } else { lmc.state = true; lmc.gotoAndStop(2); } } if ((((_local2 != 4) and (_local2 != 9)) and (_local2 != 14)) and (_local2 != 19)) { if (rmc.state == true) { rmc.state = false; rmc.gotoAndStop(1); } else { rmc.state = true; rmc.gotoAndStop(2); } } if (dmc.state == true) { dmc.state = false; dmc.gotoAndStop(1); } else { dmc.state = true; dmc.gotoAndStop(2); } if (umc.state == true) { umc.state = false; umc.gotoAndStop(1); } else { umc.state = true; umc.gotoAndStop(2); } bleep.gotoAndPlay(2); lightsOut = 0; i = 0; while (i < 25) { b = "b" + i; if (_local1.t[b].state == false) { lightsOut++; } i++; } if (lightsOut == 25) { playGame = false; winSound.gotoAndPlay(2); if (lv == 14) { _local1.nextFrame(); } else { nextLevel.gotoAndPlay(2); } } } }; lv = 1; setButtons();
Symbol 4 Button
on (press) { name = this._name; len = length(name); str = name.substring(1, len); pos = Math.abs(str); left = pos - 1; right = pos + 1; up = pos - 5; down = pos + 5; _root.doClick(pos, left, right, up, down); }
Symbol 17 Button
on (press) { nextFrame(); }
Symbol 21 Button
on (press) { getURL ("http://www.freestuff.gr/lightforce", "_blank"); }
Symbol 26 Button
on (release) { if (_root.playing == 1) { stopAllSounds(); loopSound.gotoAndStop("Stop"); playing = 0; } else { loopSound.gotoAndStop("Play"); playing = 1; } }
Symbol 32 Button
on (press) { if (playGame == true) { setButtons(); } }
Symbol 36 Button
on (press) { if (playGame == true) { gotoAndPlay (1); } }
Symbol 38 MovieClip Frame 1
Symbol 40 MovieClip Frame 1
stop();
Symbol 42 MovieClip Frame 1
stop();
Symbol 49 MovieClip Frame 1
stop();
Symbol 49 MovieClip Frame 92
_root.lv++; _root.setButtons(); _root.playGame = true;
Symbol 51 Button
on (press) { gotoAndPlay (1); }

Library Items

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

Instance Names

"loopSound"Frame 3Symbol 38 MovieClip
"bleep"Frame 3Symbol 40 MovieClip
"winSound"Frame 3Symbol 42 MovieClip
"t"Frame 3Symbol 43 MovieClip
"nextLevel"Frame 3Symbol 49 MovieClip

Special Tags

ExportAssets (56)Timeline Frame 1Symbol 6 as "button"

Labels

"Play"Symbol 38 MovieClip Frame 1
"Stop"Symbol 38 MovieClip Frame 5

Dynamic Text Variables

textSymbol 9 EditableText""
lvSymbol 28 EditableText""




http://swfchan.com/16/78193/info.shtml
Created: 3/4 -2019 18:22:52 Last modified: 3/4 -2019 18:22:52 Server time: 22/12 -2024 01:38:22