Instance of Symbol 22 MovieClip in Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
on (rollOut) {
_root.main.bonus = _root.main.bonus + 10;
}
Instance of Symbol 37 MovieClip "hand" in Frame 1
onClipEvent (load) {
lastCodeUp = (lastCodeDown = 0);
aListener = new Object();
aListener.onKeyDown = function () {
lastCodeDown = Key.getCode();
};
aListener.onKeyUp = function () {
lastCodeUp = Key.getCode();
};
Key.addListener(aListener);
rings = false;
}
onClipEvent (enterFrame) {
if (lastCodeDown == 27) {
this.gotoAndStop(2);
_root.main.displayatzero = 0;
} else if (lastCodeDown == 32) {
_root.main.PAUS = !_root.main.PAUS;
_root.main.displayatzero = 0;
} else if (lastCodeDown == 37) {
_root.main.spola = -1;
_root.main.PAUS = true;
_root.main.displayatzero = 10;
} else if (lastCodeDown == 39) {
_root.main.spola = 1;
_root.main.PAUS = true;
_root.main.displayatzero = 10;
} else if (lastCodeDown == 38) {
_root.main.VOLYM = 1;
_root.main.displayatzero = 10;
} else if (lastCodeDown == 40) {
_root.main.VOLYM = -1;
_root.main.displayatzero = 10;
} else if (lastCodeDown == 82) {
rings = !rings;
}
if (lastCodeUp != 0) {
this.gotoAndStop(1);
_root.main.VOLYM = 0;
if (_root.main.spola != 0) {
_root.main.spola = 0;
_root.main.PAUS = false;
}
}
lastCodeUp = (lastCodeDown = 0);
}
Symbol 15 MovieClip Frame 1
this._x = random(522);
this._y = random(272);
if (init == undefined) {
init = 1;
gotoAndPlay(random(5) + 2);
} else if (_root.hand._currentframe == 1) {
gotoAndPlay (2);
} else {
gotoAndPlay(Array(7, 12, 17, 22)[random(4)]);
}
Symbol 15 MovieClip Frame 6
gotoAndPlay (1);
Symbol 15 MovieClip Frame 11
gotoAndPlay (1);
Symbol 15 MovieClip Frame 16
gotoAndPlay (1);
Symbol 15 MovieClip Frame 21
gotoAndPlay (1);
Symbol 15 MovieClip Frame 26
gotoAndPlay (1);
Symbol 16 MovieClip Frame 2
if (_root.hand.rings) {
gotoAndStop (3);
} else {
gotoAndPlay (1);
}
Symbol 16 MovieClip Frame 3
i = 0;
while (i < 100) {
duplicateMovieClip (gfx, "gfx" + i, this.getNextHighestDepth());
i++;
}
Symbol 18 MovieClip Frame 90
gotoAndPlay (1);
Symbol 19 MovieClip Frame 475
gotoAndPlay (1);
Symbol 28 MovieClip Frame 1
stop();
Symbol 29 MovieClip Frame 1
function runMe() {
if ((thetrack.position > placeToStop) && (pausadpa == -1)) {
thetrack.stop();
thetrack.start(0.05);
}
}
function MakeTime(tidIsek) {
sekunderna = tidIsek % 60;
return((MakeTwo(Math.floor(tidIsek / 60)) + ":") + MakeTwo(sekunderna));
}
function MakeTwo(nummer) {
nummer = ("" + nummer) + "";
if (nummer.length > 2) {
return(nummer);
}
return(("" + "00".substring(0, 2 - nummer.length)) + nummer);
}
function dateFix() {
dt = new Date();
return(Date.UTC(dt.getFullYear(), dt.getMonth(), dt.getDay(), dt.getHours(), dt.getMinutes(), dt.getSeconds(), dt.getMilliseconds()));
}
function invokePaus() {
pausadpa = thetrack.position;
thetrack.stop();
}
function removePaus() {
thetrack.start(pausadpa / 1000);
pausadpa = -1;
spolaspeed = 2000;
}
function beenLoaded() {
thetrack.start();
ok = -1;
placeToStop = thetrack.duration - 50;
intervalVal = setInterval(runMe, 1);
_root.p = _root.p.split("\\").join("/");
if (_root.p.indexOf("/") == -1) {
songname = _root.p;
} else {
while (_root.p.indexOf("/") != -1) {
_root.p = substring(_root.p, _root.p.indexOf("/") + 2, 999666000);
}
songname = _root.p;
}
sysout.display.text = "";
pixlar = 200 + ((11 * (songname.length + 14)) / 2);
lage = (pixlar / 2) - 50;
displayatzero = 0;
effect.gotoAndPlay(2);
}
songname = "";
displayatzero = -1;
ok = 0;
bonus = 0;
PAUS = false;
spola = 0;
spolaspeed = 2000;
pausadpa = -1;
VOLYM = 0;
volymen = 100;
oldstampel = dateFix();
thetrack = new Sound(sysout);
thetrack.setVolume(100);
thetrack.loadSound(_root.p + ".mp3", false);
if (_root.p != undefined) {
sysout.display.text = "LOADING FILE";
}
onEnterFrame = function () {
timepassed = (dateFix() - oldstampel) / 1000;
if (ok >= 0) {
ok++;
if (thetrack.getBytesLoaded() > 0) {
if (thetrack.getBytesLoaded() == thetrack.getBytesTotal()) {
if (thetrack.duration > 0) {
beenLoaded();
} else if (ok >= 20) {
sysout.display.text = "COULD NOT LOAD FILE";
}
} else {
sysout.display.text = Math.round((thetrack.getBytesLoaded() / thetrack.getBytesTotal()) * 1000) / 10;
if (sysout.display.text.indexOf(".") == -1) {
sysout.display.text = sysout.display.text + ".0";
}
sysout.display.text = sysout.display.text + "%";
}
} else if ((ok >= 20) && (_root.p != undefined)) {
sysout.display.text = "COULD NOT LOAD FILE";
}
} else if (VOLYM != 0) {
volymen = volymen + Math.round((50 * VOLYM) * timepassed);
if (volymen < 0) {
volymen = 0;
} else if (volymen > 100) {
volymen = 100;
}
thetrack.setVolume(volymen);
sysout.display.text = "VOLUME: " + volymen;
sysout._x = 0;
} else if (displayatzero == 0) {
if (PAUS) {
sysout.display.text = "PAUSED";
sysout._x = 0;
if (pausadpa == -1) {
invokePaus();
}
} else {
if (pausadpa != -1) {
removePaus();
}
sysout.display.text = ((((songname + " [") + MakeTime(Math.floor(thetrack.position / 1000))) + "/") + MakeTime(Math.floor(thetrack.duration / 1000))) + "]";
if (((lage - 70) < (-1 * pixlar)) && (bonus < 15)) {
bonus = bonus + 2;
}
lage = lage - ((40 * timepassed) + bonus);
sysout._x = lage;
if (lage < (-1 * pixlar)) {
lage = pixlar;
}
}
} else if (displayatzero > 0) {
if (spola != 0) {
if (pausadpa == -1) {
invokePaus();
}
pausadpa = pausadpa + ((spolaspeed * timepassed) * spola);
while (pausadpa < 0) {
pausadpa = pausadpa + thetrack.duration;
}
while (pausadpa > thetrack.duration) {
pausadpa = pausadpa - thetrack.duration;
}
sysout.display.text = (MakeTime(Math.floor(pausadpa / 1000)) + " / ") + MakeTime(Math.floor(thetrack.duration / 1000));
sysout._x = 0;
spolaspeed = spolaspeed + (10000 * timepassed);
} else if ((pausadpa != -1) && (PAUS == false)) {
removePaus();
} else {
displayatzero = displayatzero - (20 * timepassed);
if (displayatzero < 0) {
displayatzero = 0;
}
}
}
if (bonus > 0) {
bonus--;
if (bonus > 10) {
bonus = Math.ceil(bonus * 0.9);
}
}
oldstampel = dateFix();
};
Symbol 37 MovieClip Frame 1
stop();