Frame 1
status_playing = false;
playbtn._visible = true;
pausebtn._visible = false;
stopbtn.enabled = false;
gotoAndStop (2);
timeSlider.updateThumbPos();
Frame 1854
status_playing = true;
playbtn._visible = false;
pausebtn._visible = true;
stopbtn.enabled = true;
gotoAndPlay (2);
timeSlider.updateThumbPos();
Symbol 11 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 17 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 19 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 18 MovieClip "thumb" in Symbol 19 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((!_parent.dragging) && (_parent._parent.status_playing)) {
_parent.updateThumbPos();
}
}
Symbol 22 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 23 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 24 Button
on (release) {
status_playing = false;
playbtn._visible = true;
pausebtn._visible = false;
stop();
}
Symbol 25 Button
on (release) {
status_playing = true;
playbtn._visible = false;
pausebtn._visible = true;
stopbtn.enabled = true;
play();
}