Instance of Symbol 46 MovieClip "trackbar" in Frame 1
onClipEvent (load) {
fps = 20;
myClip = _parent;
play_pause = 32;
stepForward = 39;
stepBackward = 37;
volumeUp = 38;
volumeDown = 40;
autohide = true;
}
Symbol 22 MovieClip Frame 1
_visible = false;
Symbol 27 MovieClip Frame 1
function overMe() {
return((((_xmouse >= -10) && (_xmouse <= 10)) && (_ymouse >= -10)) && (_ymouse <= 10));
}
function advance() {
var _local2 = overMe();
if (_local2) {
if (down || (pushed)) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
} else if (down) {
gotoAndStop (4);
} else {
gotoAndStop (1);
}
_parent.gotoAndStop(_currentframe);
}
function clicked() {
pushed = overMe();
}
function released() {
pushed = false;
if (_currentframe == 3) {
if (bipress && (down)) {
release();
click();
} else {
if (!down) {
click();
}
down = lockable;
}
} else if (_currentframe == 1) {
down = false;
}
}
function release() {
down = false;
pushed = false;
}
if (init == undefined) {
init = true;
pushed = false;
if (down == undefined) {
down = false;
}
if (lockable == undefined) {
lockable = true;
}
if (bipress == undefined) {
bipress = false;
}
}
Instance of Symbol 22 MovieClip "trigger" in Symbol 27 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.advance();
}
onClipEvent (mouseDown) {
_parent.clicked();
}
onClipEvent (mouseUp) {
_parent.released();
}
Symbol 29 MovieClip Frame 1
function release() {
button.release();
}
Instance of Symbol 27 MovieClip "button" in Symbol 29 MovieClip Frame 1
onClipEvent (load) {
function click() {
_parent.click();
}
}
Symbol 31 MovieClip Frame 1
function release() {
button.release();
}
Instance of Symbol 27 MovieClip "button" in Symbol 31 MovieClip Frame 1
onClipEvent (load) {
function click() {
_parent.click();
}
}
Symbol 33 MovieClip Frame 1
function release() {
button.release();
}
Instance of Symbol 27 MovieClip "button" in Symbol 33 MovieClip Frame 1
onClipEvent (load) {
function click() {
_parent.click();
}
}
Instance of Symbol 27 MovieClip "button" in Symbol 36 MovieClip Frame 1
onClipEvent (load) {
function click() {
_parent.click();
}
lockable = false;
}
Instance of Symbol 27 MovieClip "button" in Symbol 38 MovieClip Frame 1
onClipEvent (load) {
function click() {
_parent.click();
}
lockable = false;
}
Instance of Symbol 27 MovieClip "button" in Symbol 40 MovieClip Frame 1
onClipEvent (load) {
function click() {
_parent.click();
}
lockable = false;
}
Instance of Symbol 27 MovieClip "button" in Symbol 43 MovieClip Frame 1
onClipEvent (load) {
function click() {
_parent.click();
}
bipress = true;
}
Symbol 46 MovieClip Frame 1
function Play() {
play_button.button.down = true;
pause_button.release();
stop_button.release();
play_button.click();
}
function Pause() {
pause_button.button.down = true;
play_button.release();
stop_button.release();
pause_button.click();
}
function Stop() {
stop_button.button.down = true;
play_button.release();
pause_button.release();
stop_button.click();
}
function getTime(seconds) {
var _local2 = int(seconds / 60) % 60;
if (_local2 < 10) {
_local2 = "0" + _local2;
}
seconds = int(seconds - (_local2 * 60)) % 60;
if (seconds < 10) {
seconds = "0" + seconds;
}
return((_local2 + ":") + seconds);
}
if (myClip == undefined) {
myClip = _parent;
}
var loaded = (myClip.getBytesLoaded() == myClip.getBytesTotal());
if (!loaded) {
Status.text = "Downloading...";
myClip.stop();
checkTime = function (seconds) {
if (myClip._framesloaded < myClip._totalframes) {
if (!playing) {
current_time.text = getTime(myClip._framesloaded / fps);
total_time.text = getTime(myClip._totalframes / fps);
} else {
current_time.text = getTime(seconds);
total_time.text = getTime(myClip._framesloaded / fps);
}
} else {
play_button.button.down = true;
play_button.click();
loading_text._visible = false;
total_time.text = getTime(myClip._totalframes / fps);
checkTime = function (seconds) {
current_time.text = getTime(seconds);
};
hide = function () {
_visible = (_ymouse >= 0);
};
}
};
hide = function () {
if (playing) {
_visible = (_ymouse >= 0);
} else {
_visible = true;
}
};
} else {
checkTime = function (seconds) {
current_time.text = getTime(seconds);
};
hide = function () {
_visible = (_ymouse >= 0);
};
}
total_time.text = getTime(myClip._totalframes / fps);
if (autohide == undefined) {
autohide = true;
}
if (autohide_delay == undefined) {
autohide_delay = 0;
}
loading_text._visible = !loaded;
play_button.button.down = loaded;
playing = loaded;
speeding = false;
speed = 1;
Instance of Symbol 20 MovieClip "prog" in Symbol 46 MovieClip Frame 1
onClipEvent (load) {
function overMe() {
return((((_parent._xmouse >= anchor) && (_parent._xmouse <= (anchor + 620))) && (_ymouse >= -7.5)) && (_ymouse <= 7.5));
}
total = _parent.myClip._totalframes;
drag = false;
anchor = _x;
}
onClipEvent (enterFrame) {
if (drag) {
var percent = ((_parent._xmouse - anchor) / 620);
if (percent < 0) {
percent = 0;
} else if (percent > 1) {
percent = 1;
}
var toGo = int(((total - 1) * percent) + 1.5);
if (_parent.playing) {
_parent.myClip.gotoAndPlay(toGo);
} else {
_parent.myClip.gotoAndStop(toGo);
}
}
var current = _parent.myClip._currentframe;
if (_parent.speeding) {
var toGo = ((current + _parent.speed) - 1);
if (toGo < 1) {
_parent.Stop();
} else if (toGo >= total) {
_parent.myClip.gotoAndPlay(total);
_parent.Pause();
} else {
_parent.myClip.gotoAndPlay(toGo);
}
}
_x = ((((current - 1) / (total - 1)) * 620) + anchor);
_parent.checkTime(current / _parent.fps);
if (_parent.autohide) {
_parent.hide();
}
if ((current >= total) && (_parent.playing)) {
_parent.Pause();
}
}
onClipEvent (mouseDown) {
drag = overMe();
if (_parent._ymouse < 0) {
if (_parent.playing) {
_parent.Pause();
} else {
_parent.Play();
}
}
}
onClipEvent (mouseUp) {
drag = false;
}
onClipEvent (keyDown) {
if (Key.isDown(_parent.play_pause)) {
if (_parent.playing) {
_parent.Pause();
} else {
_parent.Play();
}
}
if (Key.isDown(_parent.stepForward)) {
_parent.myClip.nextFrame();
}
if (Key.isDown(_parent.stepBackward)) {
_parent.myClip.prevFrame();
}
if (Key.isDown(_parent.volumeUp)) {
_parent.vol.setVol(_parent.vol.myVolume + 8);
}
if (Key.isDown(_parent.volumeDown)) {
_parent.vol.setVol(_parent.vol.myVolume - 8);
}
}
Instance of Symbol 29 MovieClip "pause_button" in Symbol 46 MovieClip Frame 1
onClipEvent (load) {
function click() {
_parent.play_button.release();
_parent.stop_button.release();
_parent.playing = false;
_parent.myClip.stop();
_parent.Status.text = "Paused";
_parent.speed = 0;
_parent.speeding = false;
}
}
Instance of Symbol 31 MovieClip "play_button" in Symbol 46 MovieClip Frame 1
onClipEvent (load) {
function click() {
_parent.pause_button.release();
_parent.stop_button.release();
_parent.playing = true;
_parent.myClip.play();
_parent.Status.text = "Playing";
_parent.speed = 1;
_parent.speeding = false;
}
}
Instance of Symbol 33 MovieClip "stop_button" in Symbol 46 MovieClip Frame 1
onClipEvent (load) {
function click() {
_parent.play_button.release();
_parent.pause_button.release();
_parent.playing = false;
_parent.myClip.gotoAndStop(1);
_parent.Status.text = "Stopped";
_parent.speed = 0;
_parent.speeding = false;
}
}
Instance of Symbol 36 MovieClip "RW_button" in Symbol 46 MovieClip Frame 1
onClipEvent (load) {
function click() {
if (_parent.speed == 1) {
_parent.speed = 0;
}
_parent.speed--;
_parent.pause_button.release();
_parent.stop_button.release();
_parent.play_button.release();
_parent.speeding = true;
_parent.playing = true;
if (_parent.speed > 0) {
if (_parent.speed > 2) {
_parent.Status.text = "FF x" + _parent.speed;
} else {
_parent.Status.text = "FF";
}
} else if (_parent.speed < 0) {
if (_parent.speed < -1) {
_parent.Status.text = "RW x" + (-_parent.speed);
} else {
_parent.Status.text = "RW";
}
}
}
}
Instance of Symbol 38 MovieClip "FF_button" in Symbol 46 MovieClip Frame 1
onClipEvent (load) {
function click() {
if ((_parent.speed == -1) || (_parent.speed == 0)) {
_parent.speed = 1;
}
_parent.speed++;
_parent.pause_button.release();
_parent.stop_button.release();
_parent.play_button.release();
_parent.speeding = true;
_parent.playing = true;
if (_parent.speed > 0) {
if (_parent.speed > 2) {
_parent.Status.text = "FF x" + _parent.speed;
} else {
_parent.Status.text = "FF";
}
} else if (_parent.speed < 0) {
if (_parent.speed < -1) {
_parent.Status.text = "RW x" + (-_parent.speed);
} else {
_parent.Status.text = "RW";
}
}
}
}
Instance of Symbol 40 MovieClip "step_button" in Symbol 46 MovieClip Frame 1
onClipEvent (load) {
function click() {
_parent.Pause();
_parent.pause_button.button.gotoAndStop(4);
_parent.myClip.nextFrame();
}
}
Instance of Symbol 43 MovieClip "mute_button" in Symbol 46 MovieClip Frame 1
onClipEvent (load) {
function click() {
mute = !mute;
if (mute) {
mySound.setVolume(0);
} else {
mySound.setVolume(_parent.vol.myVolume);
}
}
mySound = new Sound(_parent.myClip);
mute = false;
}
Instance of Symbol 45 MovieClip "vol" in Symbol 46 MovieClip Frame 1
onClipEvent (load) {
function overMe() {
return((((_parent._xmouse >= anchor) && (_parent._xmouse <= (anchor + 45))) && (_ymouse >= -8)) && (_ymouse <= 8));
}
function setVol(percent) {
if (percent < 0) {
percent = 0;
} else if (percent > 100) {
percent = 100;
}
myVolume = percent;
_x = (anchor + (myVolume * 0.45));
if (!_parent.mute_button.mute) {
_parent.mute_button.mySound.setVolume(myVolume);
}
}
anchor = _x - 45;
clicked = false;
setVol(100);
}
onClipEvent (mouseDown) {
if (overMe()) {
clicked = true;
}
}
onClipEvent (mouseUp) {
clicked = false;
}
onClipEvent (enterFrame) {
if (clicked) {
setVol((_parent._xmouse - anchor) / 0.45);
}
}