Frame 1
onEnterFrame = function () {
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
delete onEnterFrame;
gotoAndPlay (2);
}
};
stop();
Frame 2
totalTimeText = "";
var connection_nc = new NetConnection();
connection_nc.connect(null);
var stream_ns = new NetStream(connection_nc);
stream_ns.setBufferTime(4);
my_video.attachVideo(stream_ns);
stream_ns.play("http://blip.tv/file/get/Thecinemasnob-FRIDAYTHE13THPARTVANEWBEGINNINGByTheCinemaSnob539.flv");
stream_ns.onMetaData = function (infoObject) {
FLVduration = infoObject.duration;
var _local2 = Math.floor(FLVduration / 60);
var _local1 = Math.floor(FLVduration % 60);
if (_local1 < 10) {
_local1 = "0" + _local1;
}
totalTimeText = ((" : " + _local2) + ":") + _local1;
};
connection_nc.call("getLength", myStream, "http://blip.tv/file/get/Thecinemasnob-FRIDAYTHE13THPARTVANEWBEGINNINGByTheCinemaSnob539.flv");
time_txt.text = "LOADING";
mc_progress.mc_buff._xscale = 0;
mc_progress.mc_played._xscale = 0;
mc_progress.mc_buff.onPress = function () {
xpos = mc_progress._xmouse;
percent = Math.round((xpos / mc_progress._width) * 100);
seekTime = (percent / 100) * FLVduration;
seekTime = Math.round(seekTime * 100) / 100;
stream_ns.seek(seekTime);
};
onEnterFrame = function () {
var _local3 = Math.round((stream_ns.bytesLoaded / stream_ns.bytesTotal) * 100);
mc_progress.mc_buff._xscale = _local3;
var _local2 = stream_ns.time;
var _local4 = Math.floor(_local2 / 60);
var _local1 = Math.floor(_local2 % 60);
if (_local1 < 10) {
_local1 = "0" + _local1;
}
if (stream_ns.time == FLVduration) {
gotoAndPlay (2);
}
time_txt.text = ((_local4 + ":") + _local1) + totalTimeText;
mc_progress.mc_played._xscale = Math.round((stream_ns.time * 100) / FLVduration);
};
stop();
Symbol 15 Button
on (release) {
if (_parent.current == 2) {
_parent.swfHolder.stop();
} else {
_parent.stream_ns.pause();
}
gotoAndStop (2);
}
Symbol 17 Button
on (release) {
if (_parent.current == 2) {
_parent.swfHolder.play();
} else {
_parent.stream_ns.pause();
}
gotoAndStop (1);
}
Symbol 18 MovieClip Frame 1
stop();