Frame 1
function fadeToNewSong() {
if (track == 7) {
vol1 = 100;
}
if ((track > 0) and (track < 7)) {
if (tick == false) {
if (vol1 <= 1) {
stopAllSounds();
_root.soundclip.gotoAndStop(track + 1);
vol1 = vol1 + 2;
tick = true;
} else {
vol1 = vol1 - 2;
}
} else {
vol1 = vol1 + 2;
}
if (vol1 == 100) {
track++;
tick = false;
}
}
if (track == 0) {
if (tick == false) {
_root.attachMovie("soundclip", "soundclip", 425);
_root.soundclip._x = -470;
_root.soundclip._y = -187;
tick = true;
}
vol1 = vol1 + 2;
if (vol1 == 100) {
track = 1;
tick = false;
}
}
}
function spawnStars() {
if (begin == true) {
i = 0;
while (i < numOfStars) {
_root.attachMovie("star", "star" + i, i);
_root["star" + i]._x = -100 + (Math.random() * 550);
_root["star" + i]._y = Math.random() * 400;
_root["star" + i]._height = Math.random() * 5;
_root["star" + i]._width = _root["star" + i]._height;
i++;
}
}
begin = false;
}
function updateStars() {
i = 0;
while (i < numOfStars) {
_root["star" + i]._x = _root["star" + i]._x + ((speed / 4) * (_root["star" + i]._height / 4));
if (_root["star" + i]._x >= 700) {
_root["star" + i]._x = Math.random() * -550;
_root["star" + i]._y = Math.random() * 400;
if (speed > 30) {
_root["star" + i]._width = speed / 4;
}
if (speed > 110) {
_root["star" + i].gotoAndStop(2);
}
if (speed > 180) {
_root["star" + i].gotoAndStop(3);
}
if (speed > 220) {
_root.rectanglw._alpha = speed - 220;
}
if (speed > 299.792455) {
speed = 299.792457;
finalCounter = finalCounter + 0.25;
}
}
i++;
}
}
var vol = new Sound();
vol.setVolume(0);
switchSpeed = new Array(0, 10, 85, 170, 200, 250, 299.6);
var vol1 = 0;
var track = 0;
var tick = false;
var depth2 = 425;
var depth = 1000000;
var numOfStars = 75;
var begin = true;
var speed = 0;
var speedAdd = 0.1;
var finalCounter = 0;
spawnStars();
onEnterFrame = function () {
if (speed >= switchSpeed[track]) {
fadeToNewSong();
}
vol.setVolume(vol1);
updateStars();
if (finalCounter >= 60) {
finalCounter = 60;
}
if (finalCounter == 59) {
_root.speedBar.circle.gotoAndPlay(2);
}
_root.rectongle._alpha = finalCounter;
_root.speedBar.speedText.text = Math.round(speed * 1000000);
_root.cursor._x = _xmouse;
_root.cursor._y = _ymouse;
};
Instance of Symbol 35 MovieClip "butten" in Frame 1
onClipEvent (load) {
function spawnShit() {
_root.depth++;
_root.attachMovie("shite", "shit" + _root.depth, _root.depth);
_root["shit" + _root.depth]._x = 470;
_root["shit" + _root.depth]._y = 187 + (Math.random() * 10);
_root["shit" + _root.depth]._rotation = -30 - (Math.random() * 90);
_root.speed = _root.speed + _root.speedAdd;
}
var counter = 0;
var touchingCursor = false;
}
onClipEvent (mouseDown) {
this.gotoAndStop(3);
if (this.hitTest(_root.cursor)) {
spawnShit();
touchingCursor = true;
} else {
touchingCursor = false;
this.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.cursor)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if (touchingCursor == true) {
counter++;
this.gotoAndStop(3);
}
if (counter >= 48) {
spawnShit();
counter = counter - 3;
}
}
onClipEvent (mouseUp) {
this.gotoAndStop(1);
touchingCursor = false;
counter = 0;
}
Instance of Symbol 37 MovieClip "rectongle" in Frame 1
onClipEvent (load) {
this.swapDepths(550);
}
Instance of Symbol 41 MovieClip in Frame 1
onClipEvent (load) {
this.swapDepths(500);
_root.butten.swapDepths(501);
}
Instance of Symbol 64 MovieClip "speedBar" in Frame 1
onClipEvent (load) {
this.swapDepths(600);
}
Symbol 17 MovieClip [shite] Frame 42
this.removeMovieClip();
Symbol 20 MovieClip [soundclip] Frame 1
stop();
Symbol 24 MovieClip [star] Frame 1
stop();
Symbol 35 MovieClip Frame 1
stop();
Symbol 63 MovieClip Frame 1
stop();
Symbol 63 MovieClip Frame 18
stop();