Instance of Symbol 3 MovieClip "videoPlayer" in Frame 1
onClipEvent (load) {
maxDWidth = -299;
maxLWidth = -299;
maxWidth = -299;
playCount = 0;
curPos = 0;
isPlaying = false;
begVidFrame = 1;
maxVidFrames = _parent._totalframes - begVidFrame;
videoAtEnd = false;
btt = 0;
btl = 0;
}
onClipEvent (enterFrame) {
cur = (_parent._currentframe - begVidFrame) - 1;
tot = maxVidFrames - 1;
curPos = math.Round((cur / tot) * maxWidth);
}
Frame 2
if (videoPlayer.playCount == 0) {
videoPlayer.pauseVideo(false);
}
videoPlayer.playCount = videoPlayer.playCount + 1;
if (videoPlayer.isPlaying) {
videoPlayer.pauseVideo(false);
}
Frame 205
if (videoPlayer.isPlaying) {
_root.gotoAndPlay("videoStartFrame");
} else {
videoPlayer.pauseVideo(true);
}
Symbol 3 MovieClip Frame 1
function pauseVideo(bpause) {
if (bpause) {
isPlaying = false;
vidBtns.playPauseBtn.gotoAndStop("pauseOn");
_parent.stop();
} else {
isPlaying = true;
vidBtns.playPauseBtn.gotoAndStop("pauseOff");
if (_parent._currentframe < (begVidFrame + maxVidFrames)) {
_parent.play();
} else {
_parent.gotoAndPlay(begVidFrame + 1);
}
}
}
stop();
Instance of Symbol 4 MovieClip in Symbol 3 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.vidbar.progressBtn._x = _parent.curPos;
}
Symbol 3 MovieClip Frame 2
stop();
Instance of Symbol 4 MovieClip in Symbol 3 MovieClip Frame 2
onClipEvent (enterFrame) {
var targetFrame = ((Math.round((_parent.vidbar.progressBtn._x / _parent.maxWidth) * _parent.maxVidFrames) + 1) + _parent.begVidFrame);
_parent._parent.gotoAndStop(targetFrame);
}