Combined Code
frame 1 {
this.stop();
}
movieClip 7 {
}
movieClip 12 {
}
button 18 {
on (release) {
_root.play();
}
}
movieClip 20 {
frame 1 {
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop('loaded');
}
}
frame 2 {
gotoAndPlay(1);
}
}
// unknown tag 88 length 138
movieClip 33 {
}
movieClip 35 {
frame 1 {
_visible = false;
}
}
movieClip 40 {
frame 1 {
function overMe() {
return _xmouse >= -10 && _xmouse <= 10 && _ymouse >= -10 && _ymouse <= 10;
}
function advance() {
var v2 = overMe();
if (v2) {
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 trigger of movieClip 35 {
onClipEvent (enterFrame) {
_parent.advance();
}
onClipEvent (mouseDown) {
_parent.clicked();
}
onClipEvent (mouseUp) {
_parent.released();
}
}
}
movieClip 42 {
frame 1 {
function release() {
button.release();
}
}
instance button of movieClip 40 {
onClipEvent (load) {
function click() {
_parent.click();
}
}
}
}
movieClip 44 {
frame 1 {
function release() {
button.release();
}
}
instance button of movieClip 40 {
onClipEvent (load) {
function click() {
_parent.click();
}
}
}
}
movieClip 46 {
frame 1 {
function release() {
button.release();
}
}
instance button of movieClip 40 {
onClipEvent (load) {
function click() {
_parent.click();
}
}
}
}
movieClip 49 {
instance button of movieClip 40 {
onClipEvent (load) {
function click() {
_parent.click();
}
lockable = false;
}
}
}
movieClip 51 {
instance button of movieClip 40 {
onClipEvent (load) {
function click() {
_parent.click();
}
lockable = false;
}
}
}
movieClip 53 {
instance button of movieClip 40 {
onClipEvent (load) {
function click() {
_parent.click();
}
lockable = false;
}
}
}
movieClip 56 {
instance button of movieClip 40 {
onClipEvent (load) {
function click() {
_parent.click();
}
bipress = true;
}
}
}
movieClip 58 {
}
movieClip 60 {
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();
}
}
frame 1 {
function getTime(seconds) {
var v2 = int(seconds / 60) % 60;
if (v2 < 10) {
v2 = '0' + v2;
}
seconds = int(seconds - v2 * 60) % 60;
if (seconds < 10) {
seconds = '0' + seconds;
}
return v2 + ':' + 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 {
if (autoplay) {
play_button.click();
} else {
Status.text = 'Done';
}
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 prog of movieClip 33 {
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) {
if (_parent.autorepeat) {
_parent.myClip.gotoAndStop(toGo % total);
} else {
_parent.myClip.gotoAndStop(total);
_parent.Pause();
}
} else {
_parent.myClip.gotoAndPlay(toGo);
}
}
}
current = _parent.myClip._currentframe;
_x = ((current - 1) / (total - 1)) * 620 + anchor;
_parent.checkTime(current / _parent.fps);
if (_parent.autohide) {
_parent.hide();
}
if (current >= total && _parent.playing) {
if (_parent.autorepeat) {
_parent.myClip.gotoAndPlay(1);
} else {
_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 pause_button of movieClip 42 {
onClipEvent (load) {
function click() {
button.down = true;
_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 play_button of movieClip 44 {
onClipEvent (load) {
function click() {
button.down = true;
_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 stop_button of movieClip 46 {
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 RW_button of movieClip 49 {
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 {
if (_parent.speed > 1) {
_parent.Status.text = 'FF';
} else {
_parent.play_button.click();
}
}
} else {
if (_parent.speed == 0) {
_parent.pause_button.click();
} else {
if (_parent.speed < 0) {
if (_parent.speed < -1) {
_parent.Status.text = 'RW x' + -_parent.speed;
} else {
_parent.Status.text = 'RW';
}
}
}
}
}
}
}
instance FF_button of movieClip 51 {
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 {
if (_parent.speed > 1) {
_parent.Status.text = 'FF';
} else {
_parent.play_button.click();
}
}
} else {
if (_parent.speed == 0) {
_parent.pause_button.click();
} else {
if (_parent.speed < 0) {
if (_parent.speed < -1) {
_parent.Status.text = 'RW x' + -_parent.speed;
} else {
_parent.Status.text = 'RW';
}
}
}
}
}
}
}
instance step_button of movieClip 53 {
onClipEvent (load) {
function click() {
_parent.Pause();
_parent.pause_button.button.gotoAndStop(4);
_parent.myClip.nextFrame();
}
}
}
instance mute_button of movieClip 56 {
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 vol of movieClip 58 {
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);
}
}
}
}
instance trackbar of movieClip 60 {
onClipEvent (load) {
fps = 24;
myClip = _parent;
play_pause = 32;
stepForward = 39;
stepBackward = 37;
volumeUp = 38;
volumeDown = 40;
autohide = true;
autoplay = false;
autorepeat = true;
}
}