Frame 1
_quality = "LOW";
Stage.scaleMode = "noScale";
Stage.showMenu = false;
_focusrect = false;
mdown = false;
someListener = new Object();
someListener.onMouseDown = function () {
_root.mdown = true;
_root.powerc = 1;
};
someListener.onMouseUp = function () {
_root.mdown = false;
};
Mouse.addListener(someListener);
Frame 3
if (_root._framesloaded < 4) {
gotoAndPlay (2);
}
Frame 4
line = new Array();
line[0] = ".....0000....000.....";
line[1] = ".....0...0....0......";
line[2] = ".....0...0....0......";
line[3] = ".....0...0.0..0......";
line[4] = ".....0000...00.......";
line[5] = ".....................";
line[6] = "0...0......00000.....";
line[7] = "0...0.0..0....0..0000";
line[8] = "0.0.0.0..0...0.....0.";
line[9] = "0.0.0..000..0.....0..";
line[10] = ".0.0.....0.00000.0000";
line[11] = "......000............";
y = 0;
while (y < line.length) {
x = 0;
while (x < line[y].length) {
if (line[y].charAt(x) == "0") {
temp = attachMovie("ds", ("ds" + (y * line[y].length)) + x, (1050 + (y * line[y].length)) + x);
temp._x = ((320 + (x * 10)) - (((line[y].length - 1) / 2) * 10)) + 0;
temp._y = (y * 10) + 50;
temp.dot._x = random(1001) - 500;
temp.dot._y = random(1001) - 500;
temp = attachMovie("dotbig", ("db" + (y * line[y].length)) + x, (50 + (y * line[y].length)) + x);
temp._x = ((320 + (x * 10)) - (((line[y].length - 1) / 2) * 10)) + 0;
temp._y = (y * 10) + 50;
}
x++;
}
y++;
}
line = new Array();
line[0] = "00000.0.....00......00000..0...0........00000...........0................0000..0.........00...0........0...";
line[1] = "..0...0....0..0.........0.000..0..........0...000..000....000...000.....0.....000..000..0..0.000...000.0...";
line[2] = "..0...000..0000........0...0...000........0...0..0.0..0.0.0..0.0..0......000...0...0..0.000...0...0....000.";
line[3] = "..0...0..0.0..........0....0.0.0..0.......0...0..0.0..0.0.0..0..000.........0..0.0.0....0.....0.0.0....0..0";
line[4] = "..0...0..0..000.......0.....0..0..0.....00000.0..0.0..0.0.0..0....0.....0000....0..0.....000...0...000.0..0";
line[5] = "...............................................................000.........................................";
y = 0;
while (y < line.length) {
x = 0;
while (x < line[y].length) {
if (line[y].charAt(x) == "0") {
temp = attachMovie("dotsmall", ("dotsmall" + (y * line[y].length)) + x, (2050 + (y * line[y].length)) + x);
temp._x = ((320 + (x * 5)) - (((line[y].length - 1) / 2) * 5)) + 0;
temp._y = (y * 5) + 180;
}
x++;
}
y++;
}
Instance of Symbol 9 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.mdown) {
_root.powerc = _root.powerc + 0.2;
_root.power = int(_root.powerc);
if (_root.powerc > 1000) {
_root.powerc = 1;
}
if (_root.powerc > 30) {
_root.powerc = 1000;
}
}
}
Frame 5
lbar._width = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
Frame 6
if (_root._framesloaded < 7) {
gotoAndPlay (5);
}
Frame 9
stop();
song = new Sound();
song.attachSound("song");
song.start(0, 0);
playing = true;
dragging = false;
songpos = 0;
pp = "PAUSE";
Instance of Symbol 18 MovieClip "playbar" in Frame 9
onClipEvent (enterFrame) {
if (_root.playing && (_root.delayonce == false)) {
_root.songpos = _root.song.position;
this._x = ((_root.song.position / _root.song.duration) * 500) + 70;
}
timedisp = ((int(_root.songpos / 60000) + ":") + int((int(_root.songpos / 1000) % 60) / 10)) + (int(_root.songpos / 1000) % 10);
if ((this._x == 570) && (_root.playing)) {
_root.songpos = 0;
_root.song.stop();
_root.song.start(0, 0);
}
}
Instance of Symbol 23 MovieClip "dragbar" in Frame 9
onClipEvent (enterFrame) {
if ((_root.dragging == false) && (_root.delayonce == false)) {
if (_root.playing) {
this._x = ((_root.song.position / _root.song.duration) * 500) + 70;
}
timedisp = "";
} else {
w = ((this._x - 70) / 500) * _root.song.duration;
timedisp = ((int(w / 60000) + ":") + int((int(w / 1000) % 60) / 10)) + (int(w / 1000) % 10);
_root.delayonce = false;
}
}
Instance of Symbol 4 MovieClip "dot" in Symbol 5 MovieClip [ds] Frame 1
onClipEvent (enterFrame) {
with (_parent) {
tdist = Math.sqrt((_xmouse * _xmouse) + (_ymouse * _ymouse));
if (tdist < 50) {
xdist = _xmouse;
ydist = _ymouse;
xwant = (_xmouse * (7 - Math.sqrt(tdist))) * -0.8;
ywant = (_ymouse * (7 - Math.sqrt(tdist))) * -0.8;
} else {
xwant = 0;
ywant = 0;
}
if (_root.mdown) {
xwant = xwant + (random((_root.power * 2) + 1) - _root.power);
ywant = ywant + (random((_root.power * 2) + 1) - _root.power);
}
dot._x = dot._x + ((xwant - dot._x) / 3);
dot._y = dot._y + ((ywant - dot._y) / 3);
}
}
Symbol 13 Button
on (release) {
with (_root) {
playing = !playing;
if (playing) {
song.start(songpos / 1000, 0);
pp = "PAUSE";
} else {
songpos = song.position;
song.stop();
pp = "PLAY";
}
}
}
Symbol 21 Button
on (press) {
startDrag (this, false, 70, 250, 570, 250);
_root.dragging = true;
}
on (release) {
_root.songpos = ((_root.dragbar._x - 70) / 500) * _root.song.duration;
if (_root.playing) {
_root.song.stop();
_root.song.start(_root.songpos / 1000, 0);
}
stopDrag();
if (_root.playing == false) {
_root.playbar._x = _root.dragbar._x;
_root.playbar.timedisp = _root.dragbar.timedisp;
}
_root.dragging = false;
_root.delayonce = true;
}