Frame 1
bar._xscale = int(100 * (_root.getBytesLoaded() / _root.getBytesTotal()));
Frame 2
if (_root.getBytesLoaded() != _root.getBytesTotal()) {
gotoAndPlay (1);
}
Frame 47
holders = new Array();
music = new Array();
x = 0;
while (x < 8) {
this.createEmptyMovieClip("h" + x, x + 100000);
music[x] = new Sound("h" + x);
x++;
}
music[0].attachSound("ch_drums.wav");
music[1].attachSound("ch_cymbals.wav");
music[2].attachSound("ch_bass.wav");
music[3].attachSound("ch_tune.wav");
music[4].attachSound("ch_arpeggio.wav");
music[5].attachSound("ch_jitter.wav");
music[6].attachSound("ch_2chord.wav");
music[7].attachSound("ch_intro.wav");
x = 0;
while (x < 7) {
music[x].setVolume(0);
x++;
}
mlimit = 6;
mbits = new Array();
mbits[0] = "00000001";
mbits[1] = "11111110";
mbits[2] = "00111110";
mbits[3] = "11100010";
mbits[4] = "10011000";
mbits[5] = "01100100";
mbits[6] = "00010110";
Frame 49
music[7].start(0, 9999);
music[0].start(0, 9999);
music[1].start(0, 9999);
music[2].start(0, 9999);
music[3].start(0, 9999);
music[4].start(0, 9999);
music[5].start(0, 9999);
music[6].start(0, 9999);
Frame 51
function levelup() {
lvl++;
if (lvl > mlimit) {
lvl = 1;
}
}
stop();
sw = Stage.width;
sh = Stage.height;
sw2 = int(sw / 2);
sh2 = int(sh / 2);
sky._x = sw2;
sky._y = sh2;
fl = 150;
vx = (vy = 0);
vz = 12;
diffx = 0;
lastxmouse = 320;
starmax = 200;
stars = new Array(starmax);
q = 0;
while (q < starmax) {
stars[q] = sky.attachMovie("star", "star" + q, q + 100);
q++;
}
lvl = 0;
trig = true;
this.onEnterFrame = function () {
if ((music[7].position > 9602) && (trig == false)) {
levelup();
trig = true;
x = 0;
while (x < 8) {
c = ord(mbits[lvl].charAt(x)) - 48;
music[x].setVolume(c * 100);
x++;
}
}
if ((music[7].position < 9602) && (trig == true)) {
trig = false;
}
curxmouse = _xmouse;
curymouse = _ymouse;
vx = int((curxmouse - 320) / 32);
vy = int((curymouse - 240) / 12);
diffx = diffx + (curxmouse - lastxmouse);
lastxmouse = curxmouse;
if (diffx > 0) {
diffx = diffx - (int(diffx / 20) + 1);
}
if (diffx < 0) {
diffx = diffx - (int(diffx / 20) - 1);
}
sky._rotation = int(diffx / 5);
};
Symbol 9 MovieClip [star] Frame 1
function reset() {
zp = random(500) + 500;
xp = (random(2560) - 1280) - (_root.vx * 32);
yp = (random(1920) - 960) - (_root.vy * 48);
gotoAndStop(_root.lvl + 2);
}
xp = random(2560) - 1280;
yp = random(1920) - 960;
zp = random(1000);
this.onEnterFrame = function () {
xp = xp + _root.vx;
yp = yp + _root.vy;
zp = zp - _root.vz;
if ((_root.fl + zp) <= 0) {
reset();
} else {
scale = _root.fl / (_root.fl + zp);
_x = (xp * scale);
_y = (yp * scale);
_yscale = (scale * 100);
_xscale = (scale * 100);
if ((Math.abs(_x) > (_root.sw2 + 100)) || (Math.abs(_y) > (_root.sw2 + 100))) {
reset();
}
}
_alpha = ((1000 - zp) / 10);
swapDepths(1500 - zp);
};
Symbol 9 MovieClip [star] Frame 2
stop();