Frame 1
function removeStars() {
i = 1;
while (i < 50) {
removeMovieClip("star" add i);
i++;
}
}
function colorize(section, cred, cgreen, cblue, level) {
myColor = new Color(section);
red = cred.toString(16);
green = cgreen.toString(16);
blue = cblue.toString(16);
if (length(red) < 2) {
red = "0" add red;
}
if (length(green) < 2) {
green = "0" add green;
}
if (length(blue) < 2) {
blue = "0" add blue;
}
newColor = parseInt((("0x" + red) + green) + blue);
myColor.setRGB(newColor);
}
loadedbytes = getBytesLoaded();
totalbytes = getBytesTotal();
loadedkbytes = Math.ceil(loadedbytes / 1000);
totalkbytes = Math.ceil(totalbytes / 1000);
if (loadedbytes == totalbytes) {
gotoAndPlay (70);
}
frame = int(loadedbytes / (totalbytes / 100));
Frame 9
gotoAndPlay (1);
Instance of Symbol 34 MovieClip "4" in Frame 25
onClipEvent (load) {
_root.colorize(star.fill, 0, 175, 76, 1004);
}
Instance of Symbol 34 MovieClip "3" in Frame 25
onClipEvent (load) {
_root.colorize(star.fill, 245, 130, 43, 1003);
}
Instance of Symbol 34 MovieClip "2" in Frame 25
onClipEvent (load) {
_root.colorize(star.fill, 237, 28, 36, 1002);
}
Instance of Symbol 34 MovieClip "1" in Frame 25
onClipEvent (load) {
_root.colorize(star.fill, 255, 212, 0, 1001);
}
Frame 26
stop();
Frame 63
gotoAndPlay (90);
Frame 89
stop();
Frame 90
function gotoFrame() {
gotoAndPlay (149);
}
function createlib(num) {
i = 1;
while (num >= i) {
if (i == 1) {
this.snd = new Array();
}
this.snd[i] = new Sound(this);
this.snd[i].attachSound("sound_" + i);
i++;
}
}
function randomizeStars() {
i = 1;
while (i < 50) {
duplicateMovieClip (star, "star" add i, i);
i++;
}
_root.world.randomized = 1;
}
_root.world.moviewidth = 600;
_root.world.movieheight = 400;
soundLib.createLib = createLib;
soundLib.createLib(6);
indtast = new Array();
tal = new Array();
i = 0;
timer = 1;
v = 0;
o = 0;
t = 1;
flag = 0;
tast = 0;
f = 1;
error = 0;
u = 1;
intro = 1;
fast = 1;
soundfxvvv = 1;
Instance of Symbol 59 MovieClip "star" in Frame 90
onClipEvent (load) {
time = random(200) + 100;
if (_name != "star") {
_x = (Math.random() * _root.world.moviewidth);
_y = (Math.random() * _root.world.movieheight);
}
}
onClipEvent (enterFrame) {
count++;
if (count == time) {
_visible = 0;
count = 0;
} else {
_visible = 1;
}
}
Instance of Symbol 34 MovieClip "4" in Frame 90
onClipEvent (load) {
_root.colorize(star.fill, 0, 175, 76, 1004);
}
Instance of Symbol 34 MovieClip "2" in Frame 90
onClipEvent (load) {
_root.colorize(star.fill, 237, 28, 36, 1002);
}
Instance of Symbol 34 MovieClip "1" in Frame 90
onClipEvent (load) {
_root.colorize(star.fill, 255, 212, 0, 1001);
}
Instance of Symbol 34 MovieClip "3" in Frame 90
onClipEvent (load) {
_root.colorize(star.fill, 245, 130, 43, 1003);
}
Frame 91
while (i < 999) {
tal[i] = Math.Round(Math.random() * 3) + 1;
i++;
}
Frame 92
timercount = 0;
gotoAndPlay (97);
Frame 95
u++;
if (4 < u) {
u = 1;
}
gotoAndPlay (92);
Frame 96
timercount = 0;
Frame 97
k = 1;
Frame 98
k++;
Frame 108
if (fast == 1) {
if (k < 3) {
gotoAndPlay (98);
}
}
Frame 109
fast = 0;
n = tal[f];
p = 1;
while (p < 6) {
if (n == p) {
soundLib.snd[p].start();
tellTarget (p) {
gotoAndPlay (2);
};
}
p++;
}
Frame 117
if (f < timer) {
if (timer < 5) {
gotoAndPlay (97);
}
if ((timer >= 5) && (timer < 10)) {
gotoAndPlay (101);
}
if ((timer >= 10) && (timer < 15)) {
gotoAndPlay (104);
}
if (timer >= 15) {
gotoAndPlay (107);
}
f++;
}
Frame 119
loop = 1;
intro = 1;
Frame 120
if (flag == 1) {
if (indtast[timer] == tal[loop]) {
loop++;
gotoAndPlay (122);
flag = 0;
} else {
soundLib.snd[6].start();
gotoAndPlay (133);
}
}
intro++;
Frame 121
if (intro < 200) {
gotoAndPlay (120);
} else {
soundLib.snd[6].start();
gotoAndPlay (130);
}
Frame 122
if (timer >= loop) {
gotoAndPlay (120);
} else {
gotoAndPlay (122);
}
Frame 123
k = 1;
Frame 124
k++;
Frame 128
if (k < 5) {
gotoAndPlay (124);
}
Frame 129
timer++;
timercount++;
if (gametype == timercount) {
soundLib.gotoAndPlay("bravo");
}
Frame 130
if (gametype == timercount) {
gotoAndPlay (70);
}
Frame 131
if (timer < 999) {
f = 1;
gotoAndPlay (97);
} else {
stop();
}
Frame 133
u++;
setProperty(tal[loop], _xscale , 100);
setProperty(tal[loop], _yscale , 100);
Frame 134
setProperty(tal[loop], _xscale , 101);
setProperty(tal[loop], _yscale , 101);
Frame 135
setProperty(tal[loop], _xscale , 104);
setProperty(tal[loop], _yscale , 104);
Frame 136
setProperty(tal[loop], _xscale , 109);
setProperty(tal[loop], _yscale , 109);
Frame 137
setProperty(tal[loop], _xscale , 116);
setProperty(tal[loop], _yscale , 116);
Frame 138
setProperty(tal[loop], _xscale , 126);
setProperty(tal[loop], _yscale , 126);
Frame 139
setProperty(tal[loop], _xscale , 137);
setProperty(tal[loop], _yscale , 137);
Frame 140
setProperty(tal[loop], _xscale , 150);
setProperty(tal[loop], _yscale , 150);
Frame 141
setProperty(tal[loop], _xscale , 137);
setProperty(tal[loop], _yscale , 137);
Frame 142
setProperty(tal[loop], _xscale , 126);
setProperty(tal[loop], _yscale , 126);
Frame 143
setProperty(tal[loop], _xscale , 116);
setProperty(tal[loop], _yscale , 116);
Frame 144
setProperty(tal[loop], _xscale , 109);
setProperty(tal[loop], _yscale , 109);
Frame 145
setProperty(tal[loop], _xscale , 104);
setProperty(tal[loop], _yscale , 104);
Frame 146
setProperty(tal[loop], _xscale , 101);
setProperty(tal[loop], _yscale , 101);
Frame 147
setProperty(tal[loop], _xscale , 100);
setProperty(tal[loop], _yscale , 100);
setProperty(tal[loop], _alpha , 100);
if (u < 6) {
gotoAndPlay (133);
} else {
setProperty(tal[loop], _xscale , 100);
setProperty(tal[loop], _yscale , 100);
_root.tryagain = true;
gotoAndPlay (149);
}
Frame 163
stop();
Frame 178
if (action == "again") {
timercount = 0;
gotoAndPlay (90);
} else if (action == "continue") {
gotoAndPlay (70);
}
Symbol 34 MovieClip Frame 1
stop();
Symbol 43 Button
on (release) {
_root.gametype = 8;
_root.gotoAndPlay("goto");
}
Symbol 48 Button
on (release) {
_root.gametype = 6;
_root.gotoAndPlay("goto");
}
Symbol 52 Button
on (release) {
_root.gametype = 4;
_root.gotoAndPlay("goto");
}
Symbol 62 MovieClip Frame 2
stop();
Symbol 62 MovieClip Frame 6
stop();
Symbol 76 Button
on (press) {
soundLib.snd[1].start();
indtast[timer] = 1;
flag = 1;
tast++;
intro = 1;
tellTarget (1) {
gotoAndPlay (2);
};
gotoAndPlay (120);
}
Symbol 77 Button
on (press) {
soundLib.snd[2].start();
indtast[timer] = 2;
flag = 1;
tast++;
intro = 1;
tellTarget (2) {
gotoAndPlay (2);
};
gotoAndPlay (120);
}
Symbol 78 Button
on (press) {
soundLib.snd[3].start();
indtast[timer] = 3;
flag = 1;
tast++;
intro = 1;
tellTarget (3) {
gotoAndPlay (2);
};
gotoAndPlay (120);
}
Symbol 79 Button
on (press) {
soundLib.snd[4].start();
indtast[timer] = 4;
flag = 1;
tast++;
intro = 1;
tellTarget (4) {
gotoAndPlay (2);
};
gotoAndPlay (120);
}
Symbol 83 Button
on (release) {
action = "continue";
}
Symbol 87 Button
on (release) {
action = "again";
}
Symbol 88 Button
on (release) {
action = "continue";
play();
}
Symbol 89 Button
on (release) {
action = "again";
play();
}