Frame 1
videoPlayer.frameColor = {ra:127, ga:127, ba:127};
videoPlayer.progressBtnColor = {ra:127, ga:127, ba:127};
videoPlayer.progressBarColor = {ra:127, ga:127, ba:127};
videoPlayer.btnsColor = {ra:0, ga:0, ba:0};
Instance of Symbol 38 MovieClip "videoPlayer" in Frame 1
onClipEvent (load) {
function string_searchreplace(find, replace) {
var result = this.split(find);
return(result.join(replace));
}
function pauseVideo(bpause) {
if (bpause) {
isPlaying = false;
vidBtns.playPauseBtn.gotoAndStop("pauseOn");
_parent.stop();
} else {
if (_parent.posterFrame._visible) {
_parent.posterFrame._visible = false;
}
isPlaying = true;
vidBtns.playPauseBtn.gotoAndStop("pauseOff");
if (_parent._currentframe < (begVidFrame + maxVidFrames)) {
_parent.play();
} else {
_parent.gotoAndPlay("videoStartFrame");
}
}
}
function onPreloaderFinished() {
this.preloaderFinished = true;
if (usePosterFrame) {
_root.posterFrame._visible = true;
pauseVideo(true);
} else {
pauseVideo(false);
}
}
function getNearestKeyFrame(sec) {
index1 = 0;
index2 = 0;
i = 0;
while (i != keytimes.length) {
if (keytimes[i] < sec) {
index1 = i;
} else {
index2 = i;
break;
}
i++;
}
if ((sec - keytimes[index1]) < (keytimes[index2] - sec)) {
return(index1);
}
return(index2);
}
function getNearestSeekPoint(sec) {
if (seekpoints) {
index1 = 0;
index2 = 0;
i = 0;
while (i != seekpoints.length) {
if (seekpoints[i].time < sec) {
index1 = i;
} else {
index2 = i;
break;
}
i++;
}
if (i >= seekpoints.length) {
return(seekpoints[seekpoints.length - 1].time);
}
if ((sec - seekpoints[index1].time) < (seekpoints[index2].time - sec)) {
return(seekpoints[index1].time);
}
return(seekpoints[index2].time);
}
return(sec);
}
function videoSeek(sec) {
seekpoint = getNearestSeekPoint(sec);
_parent.flvstr.seek(seekpoint);
lastVideoSeek = seekpoint;
didVideoSeek = 1;
}
function showPosterFrame(bshow) {
}
function rewindVideo() {
_root.gotoAndStop("videoStartFrame");
this.pauseVideo(true);
if (usePosterFrame) {
showPosterFrame(true);
}
}
function adjustObject(obj, hanchor, vanchor, hstretch, vstretch) {
hdiff = newPlayerWidth - currentPlayerWidth;
vdiff = newPlayerHeight - currentPlayerHeight;
if (hanchor == "center") {
obj._x = obj._x + (hdiff / 2);
} else if (hanchor == "right") {
obj._x = obj._x + hdiff;
}
if (vanchor == "center") {
obj._y = obj._y + (vdiff / 2);
} else if (vanchor == "bottom") {
obj._y = obj._y + vdiff;
}
if (hstretch == "true") {
obj._width = obj._width + hdiff;
}
if (vstretch == "true") {
obj._height = obj._height + vdiff;
}
}
function resizeVideoBox() {
hdiff = newPlayerWidth - ogPlayerWidth;
vdiff = newPlayerHeight - ogPlayerHeight;
vaw = ogVidBox._width + hdiff;
vah = ogVidBox._height + vdiff;
vw = vaw;
vh = (videoHeight * vw) / videoWidth;
if (vah < vh) {
vh = vah;
vw = (videoWidth * vh) / videoHeight;
}
_root.swfvideo._x = (ogVidBox._x + (vaw / 2)) - (vw / 2);
_root.swfvideo._y = (ogVidBox._y + (vah / 2)) - (vh / 2);
_root.swfvideo._width = vw;
_root.swfvideo._height = vh;
}
function resizePosterFrame() {
posterFrame._width = posterFrame._width + (newPlayerWidth - currentPlayerWidth);
posterFrame._height = posterFrame._height + (newPlayerHeight - currentPlayerHeight);
}
function resizeBufferAnimation() {
_parent.bufferSp._x = 300;
_parent.bufferSp._y = 240;
}
function resizeVideoBar() {
this.maxWidth = this.maxWidth + (newPlayerWidth - currentPlayerWidth);
this.maxDWidth = this.maxDWidth + (newPlayerWidth - currentPlayerWidth);
this.maxLWidth = this.maxLWidth + (newPlayerWidth - currentPlayerWidth);
vidBar.bgBar._width = vidBar.bgBar._width + (newPlayerWidth - currentPlayerWidth);
}
function resizeOnClickBox() {
hdiff = newPlayerWidth - ogPlayerWidth;
vdiff = newPlayerHeight - ogPlayerHeight;
vaw = ogVidBox._width + hdiff;
vah = ogVidBox._height + vdiff;
_root.msClkSp._width = vaw;
_root.msClkSp._height = vah;
}
ogPlayerWidth = 300;
ogPlayerHeight = 216;
currentPlayerWidth = 300;
currentPlayerHeight = 216;
newPlayerWidth = currentPlayerWidth;
newPlayerHeight = currentPlayerHeight;
String.prototype.searchReplace = string_searchreplace;
ogVidBox = new Object();
ogVidBox._width = 300;
ogVidBox._height = 200;
ogVidBox._x = 0;
ogVidBox._y = 0;
videoWidth = 600;
videoHeight = 480;
minPlayerWidth = 150;
minPlayerHeight = 150;
didVideoSeek = 0;
lastVideoSeek = 0;
mediaDragging = false;
maxDWidth = 520;
maxLWidth = 520;
maxWidth = 520;
playCount = 0;
curPos = 0;
autoPlayVideo = true;
begVidFrame = 1;
maxVidFrames = _parent._totalframes - begVidFrame;
videoAtEnd = false;
flvplaystop = false;
btt = 0;
btl = 0;
tfps = 25;
bufa = 1.1;
plAutoLoad = true;
plAutoNext = false;
plAutoStart = true;
plShuffle = false;
plLoop = false;
plCurrentTrack = 0;
plTotalTracks = 0;
this.resizeVideoPlayer(600, 496);
_parent.posterFrame._visible = false;
}
onClipEvent (enterFrame) {
cur = (_parent._currentframe - begVidFrame) - 1;
tot = maxVidFrames - 1;
curPos = Math.round((cur / tot) * maxWidth);
this.btt = _root.getBytesTotal();
this.btl = _root.getBytesLoaded();
}
Frame 417
videoPlayer.pauseVideo(true);
Symbol 13 Button
on (release) {
_root.videoPlayer.showPosterFrame(false);
}
Symbol 18 Button
on (press) {
_parent.mediaDragging = true;
_parent.gotoAndStop("mediaMoving");
var x0 = 0;
var x1 = (x0 + _parent.maxWidth);
var y = progressBtn._y;
startDrag ("progressBtn", false, x0, y, x1, y);
}
on (release, releaseOutside) {
_parent.gotoAndStop("mediaPlaying");
if (_parent.isPlaying) {
_parent.didVideoSeek = 0;
_parent._parent.play();
}
_parent.mediaDragging = false;
stopDrag();
}
Symbol 23 Button
on (release) {
_parent.oldVol = _parent.volSnd.getVolume();
_parent.setVol(0);
_parent.muted = true;
nextFrame();
}
Symbol 24 Button
on (release) {
_parent.muted = false;
_parent.setVol(_parent.oldVol);
prevFrame();
}
Symbol 28 Button
on (release) {
_parent._parent.pauseVideo(true);
}
Symbol 30 Button
on (release) {
_parent._parent.pauseVideo(false);
}
Symbol 32 Button
on (press) {
_parent.gotoAndStop("rwMoving");
}
on (release, releaseOutside) {
_parent.gotoAndStop("rwIdle");
if (_parent._parent.isPlaying) {
_parent._parent._parent.play();
}
}
Symbol 34 Button
on (press) {
_parent.gotoAndStop("ffMoving");
}
on (release, releaseOutside) {
_parent.gotoAndStop("rwIdle");
if (_parent._parent.isPlaying) {
_parent._parent._parent.play();
}
}
Instance of Symbol 16 MovieClip "bgBar" in Symbol 19 MovieClip Frame 1
onClipEvent (load) {
this._width = _parent._parent.maxDWidth;
}
Symbol 26 MovieClip Frame 1
stop();
Symbol 26 MovieClip Frame 2
stop();
Instance of Symbol 39 MovieClip in Symbol 26 MovieClip Frame 2
onClipEvent (enterFrame) {
v = (_parent.volSlider.volBtn._x / _parent.volSlider.vol_scroll) * 100;
_parent.volSnd.setVolume(v);
v = (_parent.volSlider.volBtn._x / _parent.volSlider.vol_scroll) * 100;
_parent.volSnd.setVolume(v);
}
Symbol 36 MovieClip Frame 1
stop();
Symbol 36 MovieClip Frame 2
stop();
Instance of Symbol 39 MovieClip in Symbol 36 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((_parent._parent.begVidFrame + 1) < _parent._parent._parent._currentframe) {
_parent._parent._parent.prevFrame();
}
}
Symbol 36 MovieClip Frame 3
stop();
Instance of Symbol 39 MovieClip in Symbol 36 MovieClip Frame 3
onClipEvent (enterFrame) {
_parent._parent._parent.nextFrame();
}
Symbol 25 MovieClip Frame 1
stop();
Symbol 25 MovieClip Frame 2
stop();
Symbol 31 MovieClip Frame 1
stop();
Symbol 31 MovieClip Frame 2
stop();
Instance of Symbol 7 MovieClip "frame" in Symbol 38 MovieClip Frame 1
onClipEvent (load) {
function adjustFrame() {
}
}
Instance of Symbol 19 MovieClip "vidBar" in Symbol 38 MovieClip Frame 1
onClipEvent (load) {
vid_scroll = 220 - progressBtn._width;
}
Instance of Symbol 26 MovieClip "sndBtns" in Symbol 38 MovieClip Frame 1
onClipEvent (load) {
function setVol(vol) {
volSnd.setVolume(vol);
volSlider.volBtn._x = (vol / 100) * volSlider.vol_scroll;
}
function setMute(isMute) {
if (isMute) {
muted = true;
mute_btn.gotoAndStop("muteOn");
} else {
muted = false;
mute_btn.gotoAndStop("muteOff");
}
}
muted = false;
oldVol = 100;
volSnd = new Sound();
volDragging = false;
this.setVol(oldVol);
}
Instance of Symbol 37 MovieClip in Symbol 38 MovieClip Frame 1
onClipEvent (load) {
oFrameColor = new Color(_parent.frame.frame_1);
oFrameColor.setTransform(_parent.frameColor);
oProgressBtnColor = new Color(_parent.vidBar.progressBtn);
oProgressBtnColor.setTransform(_parent.progressBtnColor);
oProgressBarColor = new Color(_parent.vidBar.bgBar);
oProgressBarColor.setTransform(_parent.progressBarColor);
oVidBtnsColor = new Color(_parent.vidBtns);
oVidBtnsColor.setTransform(_parent.btnsColor);
oMuteBtnColor = new Color(_parent.sndBtns.muteBtn);
oMuteBtnColor.setTransform(_parent.btnsColor);
}
Symbol 38 MovieClip Frame 1
stop();
Instance of Symbol 39 MovieClip in Symbol 38 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.vidBar.progressBtn._x = _parent.curPos;
}
Symbol 38 MovieClip Frame 2
stop();
Instance of Symbol 39 MovieClip in Symbol 38 MovieClip Frame 2
onClipEvent (enterFrame) {
var targetFrame = ((Math.round((_parent.vidBar.progressBtn._x / _parent.maxWidth) * _parent.maxVidFrames) + 1) + _parent.begVidFrame);
_parent._parent.gotoAndStop(targetFrame);
}