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

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

Sleep.swf

This is the info page for
Flash #21224

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


Text
COUNTING THE STARS GAME

POINTS:

0000

ERRORS:

0

HELP

CREDITS

HOW MANY STARS
SHINE IN THE SKY?
Now you can count them.
Answer exactly correct and stars
are added to your score.
Make mistake by 1 star, you dont
earn score, but you also dont lose
anything.
You can answer wrong 3 times.
Get special bonus for 5 exactly
correct answers in a row.

GAME:
idea, coding and graphics by
TONYPA www.tonypa.pri.ee
Released under
Creative Commons license.
MUSIC:
written and perfomed by
JEFF WAHL,
track "Waterfall",
album "Guitarscapes"
from magnatune.com

CLICK HERE TO START

3

TIME REMAINING TO ANSWER:

HOW MANY STARS
DID YOU SEE?

0

1

2

3

4

5

6

7

8

9

10

11

14

13

12

CLICK HERE FOR NEXT VIEW

CLICK HERE TO END GAME

PERFECT!

YOU EARNED
MORE POINTS

EXTRA

BONUS

ALMOST...

CORRECT
ANSWER WAS

0000

WATCH OUT,
YOU CANT MAKE
TOO MANY ERRORS

WRONG!

0000

TIME OUT!

0000

GAME OVER

Yourname

NAME:

ADD SCORE

1
2
3
4
5
6
7
8
9
10

TOP PLAYERS:

ActionScript [AS1/AS2]

Frame 1
fscommand ("allowscale", "false"); fscommand ("showmenu", "false"); if (_root.soundon == undefined) { _root.soundon = true; } stop();
Instance of Symbol 22 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
function makeStars() { game.diff = random(game.maxDiff) + int(game.points / 10); if (13 < game.diff) { game.diff = random(2 * game.maxDiff) + 4; } _root.attachMovie("stars", "stars", 1); game.stars = []; game.clip = _root.stars; var i = 1; while (game.diff >= i) { game.stars[i] = {}; game.stars[i].x = random(game.stageW) + game.starSpace; game.stars[i].y = random(game.stageH) + game.starSpace; var j = 1; while (j < i) { if ((Math.abs(game.stars[i].x - game.stars[j].x) < game.starSpace) or (Math.abs(game.stars[i].y - game.stars[j].y) < game.starSpace)) { i--; break; } j++; } i++; } i = 1; while (game.diff >= i) { var name = ("star_" + i); game.clip.attachMovie("star", name, i); game.clip[name]._x = game.stars[i].x; game.clip[name]._y = game.stars[i].y; i++; } if (random(25) < game.points) { game.diff++; game.clip.attachMovie("rocket", "rocket", 25); game.clip.rocket._x = random(game.stageW) + game.starSpace; game.clip.rocket._y = random(game.stageH) + game.starSpace; } game.gameStatus = "showing"; game.startTime = getTimer(); } function checkStars() { if (game.gameStatus == "showing") { if ((game.showTime - (game.points * 2)) < (getTimer() - game.startTime)) { _root.stars.removeMovieClip(); game.gameStatus = "answer"; game.startTime = getTimer(); } } else if (game.gameStatus == "answer") { if ((game.showTime * 2) < (getTimer() - game.startTime)) { game.gameStatus = "ended"; cover.gotoAndStop(3); } } } function answer(num) { if (num == game.diff) { if (0 < game.diff) { game.points = game.points + game.diff; } else { game.points++; } game.bonus++; cover.gotoAndStop(4); _root.addSound("answer3"); } else if (1 < Math.abs(num - game.diff)) { _root.addSound("answer2"); game.lives--; cover.gotoAndStop(6); game.bonus = 0; } else { _root.addSound("answer1"); cover.gotoAndStop(5); game.bonus = 0; } setVars(); } function setVars() { _root.points = game.points; if (_root.game.lives < 0) { _root.lives = 0; } else { _root.lives = game.lives; } cover.correct = game.diff; } function addSound(s_id) { if (_root.soundon) { this[s_id] = new Sound(); var s = this[s_id]; s.attachSound(s_id); s.start(); } } function addMusic() { if (_root.soundon) { _root.music.stop(); _root.music = new Sound(); _root.music.attachSound("music"); _root.music.start(0, 999); } } game = {maxDiff:5, stageW:460, stageH:340, starSpace:10, showTime:500, points:0, lives:2, bonus:0, answerTime:5000}; _root.points = game.points; _root.lives = game.lives;
Instance of Symbol 30 MovieClip "heli_nupp" in Frame 2
onClipEvent (load) { if (_root.soundon == false) { gotoAndStop (2); } }
Frame 3
stop();
Instance of Symbol 19 MovieClip [empty] "cont" in Frame 3
onClipEvent (enterFrame) { _root.checkStars(); }
Instance of Symbol 158 MovieClip "scoretable" in Frame 4
onClipEvent (enterFrame) { if (_root._currentframe != 5) { this._visible = false; } else { this._visible = true; } }
Instance of Symbol 7 MovieClip [empty] in Symbol 12 MovieClip [star] Frame 1
onClipEvent (load) { x = random(5) - 2; y = random(5) - 2; size = random(3) + 3; _parent.gotoAndStop(random(4) + 1); _parent._width = size; _parent._height = size; } onClipEvent (enterFrame) { _parent._x = _parent._x + x; _parent._y = _parent._y + y; }
Instance of Symbol 13 MovieClip [empty] in Symbol 15 MovieClip [rocket] Frame 1
onClipEvent (load) { ang = random(360); _parent._rotation = ang; ang = (ang * Math.PI) / 180; x = 5 * Math.cos(ang); y = 5 * Math.sin(ang); } onClipEvent (enterFrame) { _parent._x = _parent._x + x; _parent._y = _parent._y + y; }
Symbol 25 Button
on (keyPress "<Enter>") { foo = ""; } on (keyPress "<Left>") { foo = ""; } on (keyPress "<Right>") { foo = ""; }
Symbol 27 Button
on (release) { if (_root.soundon) { _root.soundon = false; } else { _root.soundon = true; } play(); }
Symbol 30 MovieClip Frame 1
stopAllSounds(); if (_root.soundon) { _root.addMusic(); } stop();
Symbol 30 MovieClip Frame 2
stopAllSounds(); stop();
Symbol 33 MovieClip Frame 6
stop();
Symbol 36 MovieClip Frame 6
stop();
Symbol 39 MovieClip Frame 6
stop();
Symbol 42 MovieClip Frame 10
_root.addSound("answer1");
Symbol 42 MovieClip Frame 30
_root.addSound("answer2");
Symbol 42 MovieClip Frame 50
_root.addSound("answer3");
Symbol 42 MovieClip Frame 70
_root.addSound("bonussound");
Symbol 42 MovieClip Frame 110
stop();
Symbol 48 Button
on (release) { _root.gotoAndStop(1); }
Symbol 51 Button
on (rollOver, release) { gotoAndStop (1); }
Symbol 52 Button
on (rollOver, release) { gotoAndStop (2); }
Symbol 58 Button
on (release) { getURL ("http://magnatune.com/", "_blank"); }
Symbol 59 Button
on (release) { getURL ("http://www.tonypa.pri.ee", "_blank"); }
Symbol 60 Button
on (release) { getURL ("http://creativecommons.org/licenses/by-nc/2.0/", "_blank"); }
Symbol 62 MovieClip Frame 1
stop();
Symbol 62 MovieClip Frame 2
stop();
Symbol 63 Button
on (release) { _root.gotoAndStop(3); }
Symbol 65 MovieClip Frame 100
stop();
Symbol 74 MovieClip Frame 1
_root.addSound("countsound");
Symbol 74 MovieClip Frame 24
_root.addSound("countsound");
Symbol 74 MovieClip Frame 48
_root.addSound("countsound");
Symbol 74 MovieClip Frame 73
_root.addSound("countsound");
Symbol 74 MovieClip Frame 85
_parent.gotoAndStop(2);
Symbol 83 Button
on (release) { _root.answer(0); }
Symbol 85 Button
on (release) { _root.answer(1); }
Symbol 87 Button
on (release) { _root.answer(2); }
Symbol 89 Button
on (release) { _root.answer(3); }
Symbol 91 Button
on (release) { _root.answer(4); }
Symbol 93 Button
on (release) { _root.answer(5); }
Symbol 95 Button
on (release) { _root.answer(6); }
Symbol 97 Button
on (release) { _root.answer(7); }
Symbol 99 Button
on (release) { _root.answer(8); }
Symbol 101 Button
on (release) { _root.answer(9); }
Symbol 103 Button
on (release) { _root.answer(10); }
Symbol 105 Button
on (release) { _root.answer(11); }
Symbol 107 Button
on (release) { _root.answer(14); }
Symbol 109 Button
on (release) { _root.answer(13); }
Symbol 111 Button
on (release) { _root.answer(12); }
Symbol 113 Button
on (release) { if (_root.game.lives < 0) { _root.game.lives = 0; _root.gotoAndStop(4); } else { _root.cover.gotoAndStop(1); } }
Symbol 116 MovieClip Frame 24
stop(); if (_root.game.lives < 0) { gotoAndStop (25); }
Symbol 121 MovieClip Frame 22
stop();
Symbol 130 MovieClip Frame 1
stop();
Symbol 130 MovieClip Frame 2
_root.makeStars();
Instance of Symbol 79 MovieClip in Symbol 130 MovieClip Frame 3
onClipEvent (load) { startTime = getTimer(); } onClipEvent (enterFrame) { timeGone = getTimer() - startTime; this.bar._xscale = 100 - ((timeGone / _root.game.answerTime) * 100); if (_root.game.answerTime < timeGone) { _root.game.lives--; _root.setVars(); _parent.gotoAndStop(7); } }
Instance of Symbol 121 MovieClip "bonus" in Symbol 130 MovieClip Frame 4
onClipEvent (load) { if (_root.game.bonus == 5) { _root.game.bonus = 0; _root.game.points = _root.game.points + 25; _root.points = _root.game.points; _root.addSound("bonussound"); play(); } else { stop(); } }
Symbol 134 Button
on (release) { scoretable.filename = "scores/12many.sco"; scoretable.scoresize = 10; scoretable.action = "INSERT"; scoretable.viewtype = "FLASH"; scoretable.winname = _root.my_name; scoretable.winscore = _root.points; scoretable.loadVariables("scores.php", "GET"); nextFrame(); }

Library Items

Symbol 1 Sound [music]
Symbol 2 Sound [answer3]
Symbol 3 Sound [bonussound]
Symbol 4 Sound [answer2]
Symbol 5 Sound [countsound]
Symbol 6 Sound [answer1]
Symbol 7 MovieClip [empty]Used by:12
Symbol 8 GraphicUsed by:12
Symbol 9 GraphicUsed by:12
Symbol 10 GraphicUsed by:12
Symbol 11 GraphicUsed by:12
Symbol 12 MovieClip [star]Uses:8 7 9 10 11
Symbol 13 MovieClip [empty]Used by:15
Symbol 14 GraphicUsed by:15
Symbol 15 MovieClip [rocket]Uses:14 13
Symbol 16 GraphicUsed by:17 42
Symbol 17 MovieClip [stars]Uses:16
Symbol 18 MovieClip [empty]
Symbol 19 MovieClip [empty]Used by:Timeline
Symbol 20 FontUsed by:21 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155
Symbol 21 EditableTextUses:20Used by:22
Symbol 22 MovieClipUses:21Used by:Timeline
Symbol 23 GraphicUsed by:25 27 48 51 52 58 59 60 63 113 134
Symbol 24 GraphicUsed by:25 27 48 51 52 58 59 60 63 113 134
Symbol 25 ButtonUses:23 24Used by:Timeline
Symbol 26 GraphicUsed by:Timeline
Symbol 27 ButtonUses:23 24Used by:30
Symbol 28 GraphicUsed by:30
Symbol 29 GraphicUsed by:30
Symbol 30 MovieClipUses:27 28 29Used by:Timeline
Symbol 31 GraphicUsed by:32
Symbol 32 MovieClipUses:31Used by:33
Symbol 33 MovieClipUses:32Used by:42
Symbol 34 GraphicUsed by:35
Symbol 35 MovieClipUses:34Used by:36
Symbol 36 MovieClipUses:35Used by:42
Symbol 37 GraphicUsed by:38
Symbol 38 MovieClipUses:37Used by:39
Symbol 39 MovieClipUses:38Used by:42
Symbol 40 FontUsed by:41 43 46 64 75 80 114 115 118 123 125
Symbol 41 TextUses:40Used by:42
Symbol 42 MovieClipUses:16 33 36 39 41Used by:Timeline
Symbol 43 TextUses:40Used by:Timeline
Symbol 44 FontUsed by:45 47 53 54 117 119 120 122 124 126 127 128 129 131 132 133 135 156 157
Symbol 45 EditableTextUses:44Used by:Timeline
Symbol 46 TextUses:40Used by:Timeline
Symbol 47 EditableTextUses:44Used by:Timeline
Symbol 48 ButtonUses:23 24Used by:Timeline
Symbol 49 GraphicUsed by:Timeline
Symbol 50 GraphicUsed by:62
Symbol 51 ButtonUses:23 24Used by:62
Symbol 52 ButtonUses:23 24Used by:62
Symbol 53 TextUses:44Used by:62
Symbol 54 TextUses:44Used by:62
Symbol 55 FontUsed by:57 61 73 84 86 88 90 92 94 96 98 100 102 104 106 108 110 112
Symbol 56 FontUsed by:57 61
Symbol 57 TextUses:55 56Used by:62
Symbol 58 ButtonUses:23 24Used by:62
Symbol 59 ButtonUses:23 24Used by:62
Symbol 60 ButtonUses:23 24Used by:62
Symbol 61 TextUses:55 56Used by:62
Symbol 62 MovieClipUses:50 51 52 53 54 57 58 59 60 61Used by:Timeline
Symbol 63 ButtonUses:23 24Used by:65
Symbol 64 TextUses:40Used by:65
Symbol 65 MovieClipUses:63 64Used by:Timeline
Symbol 66 GraphicUsed by:130
Symbol 67 GraphicUsed by:68
Symbol 68 MovieClipUses:67Used by:74
Symbol 69 GraphicUsed by:70
Symbol 70 MovieClipUses:69Used by:74
Symbol 71 GraphicUsed by:72
Symbol 72 MovieClipUses:71Used by:74
Symbol 73 TextUses:55Used by:74
Symbol 74 MovieClipUses:68 70 72 73Used by:130
Symbol 75 TextUses:40Used by:130
Symbol 76 GraphicUsed by:77
Symbol 77 MovieClipUses:76Used by:79
Symbol 78 GraphicUsed by:79
Symbol 79 MovieClipUses:77 78Used by:130
Symbol 80 TextUses:40Used by:130
Symbol 81 GraphicUsed by:83 85 87 89 91 93 95 97 99 101 103 105 107 109 111
Symbol 82 GraphicUsed by:83 85 87 89 91 93 95 97 99 101 103 105 107 109 111
Symbol 83 ButtonUses:81 82Used by:130
Symbol 84 TextUses:55Used by:130
Symbol 85 ButtonUses:81 82Used by:130
Symbol 86 TextUses:55Used by:130
Symbol 87 ButtonUses:81 82Used by:130
Symbol 88 TextUses:55Used by:130
Symbol 89 ButtonUses:81 82Used by:130
Symbol 90 TextUses:55Used by:130
Symbol 91 ButtonUses:81 82Used by:130
Symbol 92 TextUses:55Used by:130
Symbol 93 ButtonUses:81 82Used by:130
Symbol 94 TextUses:55Used by:130
Symbol 95 ButtonUses:81 82Used by:130
Symbol 96 TextUses:55Used by:130
Symbol 97 ButtonUses:81 82Used by:130
Symbol 98 TextUses:55Used by:130
Symbol 99 ButtonUses:81 82Used by:130
Symbol 100 TextUses:55Used by:130
Symbol 101 ButtonUses:81 82Used by:130
Symbol 102 TextUses:55Used by:130
Symbol 103 ButtonUses:81 82Used by:130
Symbol 104 TextUses:55Used by:130
Symbol 105 ButtonUses:81 82Used by:130
Symbol 106 TextUses:55Used by:130
Symbol 107 ButtonUses:81 82Used by:130
Symbol 108 TextUses:55Used by:130
Symbol 109 ButtonUses:81 82Used by:130
Symbol 110 TextUses:55Used by:130
Symbol 111 ButtonUses:81 82Used by:130
Symbol 112 TextUses:55Used by:130
Symbol 113 ButtonUses:23 24Used by:116
Symbol 114 TextUses:40Used by:116
Symbol 115 TextUses:40Used by:116
Symbol 116 MovieClipUses:113 114 115Used by:130
Symbol 117 TextUses:44Used by:130
Symbol 118 TextUses:40Used by:130
Symbol 119 TextUses:44Used by:121
Symbol 120 TextUses:44Used by:121
Symbol 121 MovieClipUses:119 120Used by:130
Symbol 122 TextUses:44Used by:130
Symbol 123 TextUses:40Used by:130
Symbol 124 EditableTextUses:44Used by:130
Symbol 125 TextUses:40Used by:130
Symbol 126 TextUses:44Used by:130
Symbol 127 EditableTextUses:44Used by:130
Symbol 128 TextUses:44Used by:130
Symbol 129 EditableTextUses:44Used by:130
Symbol 130 MovieClipUses:66 74 75 79 80 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 116 117 118 121 122 123 124 125 126 127 128 129Used by:Timeline
Symbol 131 TextUses:44Used by:Timeline
Symbol 132 EditableTextUses:44Used by:Timeline
Symbol 133 TextUses:44Used by:Timeline
Symbol 134 ButtonUses:23 24Used by:Timeline
Symbol 135 TextUses:44Used by:Timeline
Symbol 136 EditableTextUses:20Used by:158
Symbol 137 EditableTextUses:20Used by:158
Symbol 138 EditableTextUses:20Used by:158
Symbol 139 EditableTextUses:20Used by:158
Symbol 140 EditableTextUses:20Used by:158
Symbol 141 EditableTextUses:20Used by:158
Symbol 142 EditableTextUses:20Used by:158
Symbol 143 EditableTextUses:20Used by:158
Symbol 144 EditableTextUses:20Used by:158
Symbol 145 EditableTextUses:20Used by:158
Symbol 146 EditableTextUses:20Used by:158
Symbol 147 EditableTextUses:20Used by:158
Symbol 148 EditableTextUses:20Used by:158
Symbol 149 EditableTextUses:20Used by:158
Symbol 150 EditableTextUses:20Used by:158
Symbol 151 EditableTextUses:20Used by:158
Symbol 152 EditableTextUses:20Used by:158
Symbol 153 EditableTextUses:20Used by:158
Symbol 154 EditableTextUses:20Used by:158
Symbol 155 EditableTextUses:20Used by:158
Symbol 156 TextUses:44Used by:158
Symbol 157 TextUses:44Used by:158
Symbol 158 MovieClipUses:136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157Used by:Timeline

Instance Names

"heli_nupp"Frame 2Symbol 30 MovieClip
"cont"Frame 3Symbol 19 MovieClip [empty]
"cover"Frame 3Symbol 130 MovieClip
"scoretable"Frame 4Symbol 158 MovieClip
"bar"Symbol 79 MovieClip Frame 1Symbol 77 MovieClip
"bonus"Symbol 130 MovieClip Frame 4Symbol 121 MovieClip

Special Tags

Protect (24)Timeline Frame 10 bytes ""
ExportAssets (56)Timeline Frame 1Symbol 1 as "music"
ExportAssets (56)Timeline Frame 1Symbol 2 as "answer3"
ExportAssets (56)Timeline Frame 1Symbol 3 as "bonussound"
ExportAssets (56)Timeline Frame 1Symbol 4 as "answer2"
ExportAssets (56)Timeline Frame 1Symbol 5 as "countsound"
ExportAssets (56)Timeline Frame 1Symbol 6 as "answer1"
ExportAssets (56)Timeline Frame 1Symbol 7 as "empty"
ExportAssets (56)Timeline Frame 1Symbol 7 as "empty"
ExportAssets (56)Timeline Frame 1Symbol 7 as "empty"
ExportAssets (56)Timeline Frame 1Symbol 7 as "empty"
ExportAssets (56)Timeline Frame 1Symbol 7 as "empty"
ExportAssets (56)Timeline Frame 1Symbol 12 as "star"
ExportAssets (56)Timeline Frame 1Symbol 13 as "empty"
ExportAssets (56)Timeline Frame 1Symbol 13 as "empty"
ExportAssets (56)Timeline Frame 1Symbol 15 as "rocket"
ExportAssets (56)Timeline Frame 1Symbol 17 as "stars"
ExportAssets (56)Timeline Frame 1Symbol 18 as "empty"
ExportAssets (56)Timeline Frame 1Symbol 19 as "empty"
ExportAssets (56)Timeline Frame 3Symbol 19 as "empty"

Dynamic Text Variables

textSymbol 21 EditableText""
pointsSymbol 45 EditableText"0000"
livesSymbol 47 EditableText"0"
correctSymbol 124 EditableText"0000"
correctSymbol 127 EditableText"0000"
correctSymbol 129 EditableText"0000"
my_nameSymbol 132 EditableText"Yourname"
NAME0Symbol 136 EditableText""
SCORE0Symbol 137 EditableText""
NAME9Symbol 138 EditableText""
SCORE9Symbol 139 EditableText""
NAME1Symbol 140 EditableText""
SCORE1Symbol 141 EditableText""
NAME3Symbol 142 EditableText""
SCORE3Symbol 143 EditableText""
NAME2Symbol 144 EditableText""
SCORE2Symbol 145 EditableText""
NAME5Symbol 146 EditableText""
SCORE5Symbol 147 EditableText""
NAME4Symbol 148 EditableText""
SCORE4Symbol 149 EditableText""
NAME7Symbol 150 EditableText""
SCORE7Symbol 151 EditableText""
NAME6Symbol 152 EditableText""
SCORE6Symbol 153 EditableText""
NAME8Symbol 154 EditableText""
SCORE8Symbol 155 EditableText""




http://swfchan.com/5/21224/info.shtml
Created: 28/5 -2019 08:50:08 Last modified: 28/5 -2019 08:50:08 Server time: 21/12 -2024 12:57:46