Frame 1
status_playing = true;
playbtn._visible = false;
pausebtn._visible = true;
stopbtn.enabled = true;
gotoAndPlay (2);
timeSlider.updateThumbPos();
Frame 3690
status_playing = true;
playbtn._visible = false;
pausebtn._visible = true;
stopbtn.enabled = true;
gotoAndPlay (2);
timeSlider.updateThumbPos();
Symbol 8 Button
on (press) {
_parent._parent.stop();
_parent.dragging = true;
startDrag (this, true, 0, _y, _parent.maxThumbPos, _y);
}
on (release, releaseOutside) {
stopDrag();
_parent.dragging = false;
_parent.setPlayPos(_x);
}
Symbol 10 MovieClip Frame 1
function setPlayPos(thumbPos) {
var _local2 = _parent;
var _local1 = Math.round((thumbPos / maxThumbPos) * (_local2._totalframes - 2));
_local1 = _local1 + 2;
if (_local1 < 2) {
_local1 = 2;
} else if (_local1 >= _local2._totalframes) {
_local1 = _local2._totalframes - 1;
}
if (_local2.status_playing) {
_local2.gotoAndPlay(_local1);
} else {
_local2.gotoAndStop(_local1);
}
}
function updateThumbPos() {
var _local2 = _parent;
var _local1 = ((_local2._currentframe - 2) / (_local2._totalframes - 3)) * maxThumbPos;
if (_local1 < minThumbPos) {
_local1 = minThumbPos;
} else if (_local1 > maxThumbPos) {
_local1 = maxThumbPos;
}
thumb._x = _local1;
}
minThumbPos = 0;
maxThumbPos = _width - (thumb._width / 2);
dragging = false;
Instance of Symbol 9 MovieClip "thumb" in Symbol 10 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((!_parent.dragging) && (_parent._parent.status_playing)) {
_parent.updateThumbPos();
}
}
Symbol 13 Button
on (release) {
offsetframes = Math.round(_totalframes / 30);
if (offsetframes < 3) {
offsetframes = 3;
}
toFrame = _currentframe + offsetframes;
if (toFrame >= _totalframes) {
toFrame = _totalframes - 1;
}
if (status_playing) {
gotoAndPlay(toFrame);
} else {
gotoAndStop(toFrame);
}
timeSlider.updateThumbPos();
}
Symbol 14 Button
on (release) {
offsetframes = Math.round(_totalframes / 30);
if (offsetframes < 3) {
offsetframes = 3;
}
toFrame = _currentframe - offsetframes;
if (toFrame < 2) {
toFrame = 2;
}
if (status_playing) {
gotoAndPlay(toFrame);
} else {
gotoAndStop(toFrame);
}
timeSlider.updateThumbPos();
}
Symbol 16 Button
on (release) {
status_playing = false;
playbtn._visible = true;
pausebtn._visible = false;
stopbtn.enabled = false;
gotoAndStop (2);
timeSlider.updateThumbPos();
}
Symbol 17 Button
on (release) {
status_playing = false;
playbtn._visible = true;
pausebtn._visible = false;
stop();
}
Symbol 18 Button
on (release) {
status_playing = true;
playbtn._visible = false;
pausebtn._visible = true;
stopbtn.enabled = true;
play();
}