Frame 1
onEnterFrame = function () {
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
delete onEnterFrame;
gotoAndPlay (2);
}
};
stop();
q1 = "The Flashbulb - Undiscovered Colors";
q2 = "Synonymous !SYNONymDuY";
q3 = "05/20/2011";
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/Synonymous-TheFlashbulbUndiscoveredColors491.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/Synonymous-TheFlashbulbUndiscoveredColors491.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 (mc_progress.mc_played._xscale == 100) {
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();
Symbol 20 Button
on (release) {
if ((Stage.scaleMode = "showAll")) {
Stage.scaleMode = "noScale";
} else {
Stage.scaleMode = "showAll";
}
gotoAndStop (2);
}
Symbol 22 Button
on (release) {
if ((Stage.scaleMode = "noScale")) {
Stage.scaleMode = "showAll";
} else {
Stage.scaleMode = "noScale";
}
gotoAndStop (1);
}
Symbol 23 MovieClip Frame 1
stop();