Frame 1
function sPos(aus, sobj) {
this[aus] = this[sobj].position;
}
function sBalken(obj, spobj) {
dauer = this[spobj].duration;
pos = this[spobj].position;
prozent = (pos * 100) / dauer;
_root[obj]._xscale = prozent;
prozent = parseInt(prozent) + "%";
}
function spielen() {
anhalten();
mSound.start(0, 1);
}
function anhalten() {
mSound.stop();
}
function pause() {
anhalten();
mSound.start(pausgabe / 1000, 1);
}
function ruck(diff) {
pausgabe = int(pausgabe) - diff;
anhalten();
mSound.start(pausgabe / 1000, 1);
}
function vor(diff) {
pausgabe = int(pausgabe) + diff;
anhalten();
mSound.start(pausgabe / 1000, 1);
}
mSound = new Sound(this);
mSound.attachSound("bottle.mp3", false);
dausgabe = mSound.duration;
Instance of Symbol 11 MovieClip "mc" in Frame 1
onClipEvent (load) {
_xscale = 0;
}
Instance of Symbol 18 MovieClip in Frame 1
onClipEvent (enterFrame) {
_root.sPos("pausgabe", "mSound");
_root.sBalken("mc", "mSound");
_root.psek = int(_root.pausgabe / 1000) + " Sek";
}
onClipEvent (load) {
_root.dsek = int(_root.dausgabe / 1000) + " Sek";
}
Instance of Symbol 24 MovieClip in Frame 1
onClipEvent (load) {
_root.psig = 1;
}
onClipEvent (mouseUp) {
if (_root.psig && (_root.absig)) {
_root.pause();
} else {
_root.anhalten();
}
}
Instance of Symbol 29 MovieClip in Frame 1
onClipEvent (load) {
oben = _y;
rechts = _x;
links = _x - 100;
unten = _y;
_root.vprozent = _root.mSound.getVolume();
}
onClipEvent (enterFrame) {
if (ziehen == true) {
_root.mSound.setVolume(100 - (rechts - _x));
_root.vprozent = _root.mSound.getVolume();
}
}
Symbol 22 Button
on (release) {
if (mSound.duration == mSound.position) {
spielen();
} else {
pause();
}
absig = 1;
psig = 1;
}
Symbol 23 Button
on (press) {
_root.psig = !_root.psig;
}
Symbol 28 Button
on (press) {
startDrag ("", false, links, oben, rechts, unten);
ziehen = true;
}
on (release, releaseOutside) {
stopDrag();
ziehen = false;
}