Frame 1
function makeTotalDuration() {
var _local2;
var _local1;
total_seconds = Math.floor((_totalframes - 2) / frame_rate);
_local2 = Math.floor(total_seconds / 60);
_local1 = total_seconds % 60;
total_duration = (((((_local2 < 10) ? "0" : "") + _local2) + ":") + ((_local1 < 10) ? "0" : "")) + _local1;
}
frame_rate = 12;
total_seconds = 0;
total_duration = "00:00";
status_playing = true;
playbtn._visible = false;
pausebtn._visible = true;
stopbtn.enabled = true;
onEnterFrame = function () {
var _local1;
var _local3;
var _local2;
_local1 = Math.floor((_currentframe - 1) / frame_rate);
if (_local1 > total_seconds) {
_local1 = total_seconds;
}
_local3 = Math.floor(_local1 / 60);
_local2 = _local1 % 60;
timeDisp = (((((((_local3 < 10) ? "0" : "") + _local3) + ":") + ((_local2 < 10) ? "0" : "")) + _local2) + "/") + total_duration;
};
makeTotalDuration();
gotoAndPlay (2);
timeSlider.updateThumbPos();
Frame 2272
status_playing = false;
playbtn._visible = true;
pausebtn._visible = false;
stopbtn.enabled = false;
gotoAndStop (2);
timeSlider.updateThumbPos();
Symbol 13 MovieClip Frame 1
function updateVolume() {
volvalue = Math.round((vc.maskrc._width * 100) / vc._width);
if ((volvalue > 0) && (snd.getVolume() == 0)) {
normaltrumpet._visible = true;
mutetrumpet._visible = false;
} else if ((volvalue == 0) && (snd.getVolume() > 0)) {
normaltrumpet._visible = false;
mutetrumpet._visible = true;
}
snd.setVolume(volvalue);
}
snd = new Sound();
vc.onPress = function () {
var _local1 = this;
_local1.onEnterFrame = function () {
var _local1 = this;
if (_local1._xmouse <= 0) {
_local1.maskrc._width = 0;
} else if (_local1._xmouse > _local1._width) {
_local1.maskrc._width = _local1._width;
} else {
_local1.maskrc._width = _local1._xmouse;
}
updateVolume();
};
};
vc.onRelease = (vc.onReleaseOutside = function () {
delete this.onEnterFrame;
});
normaltrumpet.onRelease = function () {
vc.maskrc._width = 0;
updateVolume();
};
mutetrumpet.onRelease = function () {
vc.maskrc._width = vc._width * 0.8;
updateVolume();
};
updateVolume();
Symbol 19 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 21 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 20 MovieClip "thumb" in Symbol 21 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((!_parent.dragging) && (_parent._parent.status_playing)) {
_parent.updateThumbPos();
}
}
Symbol 24 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 25 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 26 Button
on (release) {
status_playing = false;
playbtn._visible = true;
pausebtn._visible = false;
stop();
}
Symbol 27 Button
on (release) {
status_playing = true;
playbtn._visible = false;
pausebtn._visible = true;
stopbtn.enabled = true;
play();
}