Frame 1
function trim(trimmed) {
var _local1 = trimmed.length;
lfound = false;
while (!lfound) {
_local1 = _local1 - 1;
if (trimmed.charAt(_local1) != " ") {
lfound = true;
}
}
return(trimmed.slice(0, _local1 + 1));
}
setting = trim("-1,1,3,29.97,720,480,1,1,1,1,1,1,1,1,000000,0,ffffff,2592ff,404040,96caff,3,,0 ");
temp = setting.split(",");
delete setting;
tname = new Array("startFlag", "endAction", "urlWindow", "fps", "width", "height");
var i = 0;
while (i < 6) {
this["v_" + tname[i]] = Number(temp[i]);
i++;
}
tname = new Array("bslider", "bvolume", "bmute", "btiming", "bforward", "bbackward", "brewind", "preloader");
var i = 0;
while (i < 8) {
this["v_" + tname[i]] = temp[i + 6] == "1";
i++;
}
v_color = "0x" + temp[14];
v_center = temp[15] == "1";
tname = new Array("col1", "col2", "col3", "col4");
var i = 0;
while (i < 4) {
if (temp[i + 16] != "") {
this["v_" + tname[i]] = "0x" + temp[i + 16];
}
i++;
}
v_mUrlWindow = Number(temp[20]);
v_mUrl = temp[21];
v_preview = temp[22] == "1";
delete tname;
delete temp;
_quality = "BEST";
var v_mleft = 0;
var v_mtop = 0;
var v_mbottom = 46;
var v_mright = 0;
vw = ((v_width < 210) ? 210 : (v_width));
vh = v_height;
var v_twidth = ((vw + v_mleft) + v_mright);
var v_theight = ((vh + v_mtop) + v_mbottom);
if (_framesloaded >= 2) {
gotoAndStop (2);
} else {
stop();
}
Instance of Symbol 6 MovieClip "loading_mc" in Frame 1
onClipEvent (load) {
var p = _parent;
var t = 0;
var twait = (0.5 * p.v_fps);
var v = (120 / p.v_fps);
var isOn = false;
var r = 0;
if (!p.v_center) {
_x = (p.v_twidth / 2);
_y = (p.v_theight / 2);
}
}
onClipEvent (enterFrame) {
t++;
if (isOn) {
_rotation = (_rotation - v);
r = p.getBytesLoaded() / p.getBytesTotal();
bottom.bar._rotation = (top.bar._rotation = 180 * (1 - r));
if ((r >= 1) && (t > twait)) {
p.gotoAndStop(2);
}
} else if (t > twait) {
if (p.v_preloader && (p._framesloaded < 2)) {
isOn = true;
_alpha = 100;
twait = twait + (p.v_fps * 2);
} else {
p.gotoAndStop(2);
}
}
}
Frame 2
function fv_cLoad() {
if (v_loading) {
var _local1 = (v_ns.bytesLoaded / v_ns.bytesTotal) * 100;
var _local2 = (v_ns.time / v_timetotal) * 100;
_local1 = Math.max(_local1, _local2);
v_loadpct = Math.max(v_loadpct, _local1);
v_buff = (v_ns.bufferLength / v_ns.bufferTime) * 100;
v_loading = v_ns.bytesLoaded < v_ns.bytesTotal;
} else {
clearInterval(v_idload);
}
}
function fv_cPlay() {
if (v_playstat) {
var _local1 = fv_getTime();
if (!v_loading) {
if ((_local1 == ctlast) && (_local1 > (v_timetotal - 1))) {
ctf++;
if (ctf >= ctwait) {
fv_setEnd();
ctf = 0;
}
} else {
ctf = 0;
}
}
ctlast = _local1;
}
}
function fv_getTime() {
return(v_ns.time);
}
function fv_getCue(pt) {
var _local2 = 0;
var _local1 = 1;
while (_local1 < v_cue.length) {
if (pt < v_cue[_local1]) {
break;
}
_local2 = _local1;
_local1++;
}
return(_local2);
}
function fv_setEnd() {
v_stat = 3;
if (v_endAction == 2) {
fv_rewind();
fv_play(true);
} else {
fv_play(false);
if (v_endAction == 3) {
loadURL(v_url, v_urlWindow);
}
}
}
function loadURL(pURL, pWin) {
var _local1 = "_self";
if (pWin == 2) {
_local1 = "_blank";
} else if (pWin == 3) {
_local1 = "_parent";
} else if (pWin == 4) {
_local1 = "_top";
}
getURL (pURL, _local1);
}
function fv_rewind() {
v_cuenow = 0;
fv_jump(0);
}
function fv_forward() {
v_cuenow = fv_getCue(fv_getTime()) + 1;
if (v_cuenow > v_cue.length) {
v_cuenow = v_cue.length;
}
fv_jump(v_cue[v_cuenow]);
}
function fv_backward() {
v_cuenow = fv_getCue(fv_getTime() - 0.1) - 1;
if (v_cuenow <= 0) {
v_cuenow = 0;
}
fv_jump(v_cue[v_cuenow]);
}
function fv_play(pflag) {
if (pflag == null) {
pflag = !v_playstat;
}
if (pflag && (v_stat == 3)) {
fv_rewind();
}
v_playstat = pflag;
v_ns.pause(!pflag);
}
function fv_jump(psec) {
if ((getTimer() - d0) >= dseek) {
d0 = getTimer();
v_ns.seek(psec);
}
}
function fv_mute(pflag) {
if (pflag == null) {
pflag = !v_mute;
}
v_mute = pflag;
if (v_mute) {
v_sound.setVolume(0);
} else {
v_sound.setVolume(v_vol);
}
}
function fv_volume(pvol) {
v_vol = pvol;
if (!v_mute) {
v_sound.setVolume(v_vol);
}
}
v_title = trim(" ");
v_url = trim(" ");
eventpar = trim(" ");
flvset = trim("72.04,4.00,snowball2.flv ");
temp = flvset.split(",");
delete flvset;
v_timetotal = Number(temp[0]);
v_btime = Number(temp[1]);
v_file = temp[2];
delete temp;
var vid_mc;
var v_nc = new NetConnection();
v_nc.connect(null);
var v_ns = new NetStream(v_nc);
v_ns.setBufferTime(v_btime);
vid_mc.attachVideo(v_ns);
v_ns.play(v_file);
this.createEmptyMovieClip("aud_mc", this.getNextHighestDepth());
aud_mc.attachAudio(v_ns);
var v_sound = new Sound(aud_mc);
vid_mc._x = (v_center ? ((-v_width) / 2) : (v_mleft + ((vw - v_width) / 2)));
vid_mc._y = (v_center ? ((-v_height) / 2) : (v_mtop + ((vh - v_height) / 2)));
vid_mc._width = v_width;
vid_mc._height = v_height;
if ((v_mUrl != "") && (v_mUrl != undefined)) {
area_mc._width = vw;
area_mc._height = vh;
area_mc._x = v_mleft;
area_mc._y = v_mtop;
if (v_center) {
area_mc._x = (-vw) / 2;
area_mc._y = (-vh) / 2;
}
area_mc.onRelease = function () {
loadURL(v_mUrl, v_mUrlWindow);
};
}
clip_mc._x = (v_center ? ((-v_width) / 2) : (v_mleft + ((vw - v_width) / 2)));
clip_mc._y = (v_center ? ((-v_height) / 2) : (v_mtop + ((vh - v_height) / 2)));
var v_playstat = true;
var v_preload = false;
var v_loading = true;
var v_loadpct = 0;
var v_buffing = true;
var v_buff = 0;
var v_vol = v_sound.getVolume();
var v_mute = false;
var v_stat = 0;
var d0 = getTimer();
var dseek = 100;
var ctlast = ((ctf = 0));
var ctwait = (1.5 * v_fps);
var v_cuenow = 0;
var v_cue = new Array();
v_ns.onMetaData = function (pdat) {
var _local3 = pdat.cuePoints;
var _local1 = 0;
while (_local1 < _local3.length) {
var _local2 = _local3[_local1];
if (_local2.type == "navigation") {
v_cue.push(_local2.time);
}
_local1++;
}
delete v_ns.onMetaData;
};
var v_idplay;
var v_idload;
v_ns.onStatus = function (pstat) {
switch (pstat.code) {
case "NetStream.Buffer.Empty" :
v_buffing = true;
break;
case "NetStream.Buffer.Full" :
v_buffing = false;
if (v_preload) {
v_ns.setBufferTime(v_btime);
v_preload = false;
}
break;
case "NetStream.Play.Start" :
v_stat = 2;
if (v_startFlag == 0) {
v_ns.seek(0);
fv_play(false);
} else if (v_startFlag == -1) {
} else {
v_preload = true;
v_ns.setBufferTime(((v_startFlag > 0) ? (v_startFlag) : (v_timetotal)));
}
v_loading = v_ns.bytesLoaded < v_ns.bytesTotal;
if (v_loading) {
if (v_idload != null) {
clearInterval(v_idload);
}
v_idload = setInterval(fv_cLoad, 1000 / v_fps);
}
if (v_idplay != null) {
clearInterval(v_idplay);
}
v_idplay = setInterval(fv_cPlay, 1000 / v_fps);
break;
case "NetStream.Play.Stop" :
if (v_stat != 3) {
fv_setEnd();
}
break;
case "NetStream.Play.StreamNotFound" :
v_stat = 1;
break;
case "NetStream.Seek.InvalidTime" :
if (!v_loading) {
fv_rewind();
} else {
v_buffing = true;
}
case "NetStream.Seek.Notify" :
v_stat = 2;
}
};
if (eventpar != "") {
v_event = eventpar.split("`,");
evFunc = _parent != undefined;
}
delete eventpar;
v_ns.onCuePoint = function (pCue) {
if (pCue.type == "event") {
var _local7 = Number(pCue.index);
if (v_event[_local7] != "") {
if (evFunc) {
_parent.onFVSEvent(pCue.time, pCue.name);
} else {
fscommand ("FVSEvent", (pCue.time + ",") + pCue.name);
}
var _local6 = v_event[_local7].split(",");
var _local4 = 1;
while (_local4 < _local6.length) {
var _local2 = _local6[_local4].split("~");
if (_local2[0] == "1") {
var _local5 = (_local7 + "_") + _local4;
var _local3;
if (clip_mc[_local5] == undefined) {
_local3 = clip_mc.createEmptyMovieClip(_local5, clip_mc.getNextHighestDepth());
} else {
_local3 = clip_mc[_local5];
}
_local3.loadMovie(_local2.slice(5).join(""));
_local3._lockroot = true;
_local3._x = Number(_local2[1]);
_local3._y = Number(_local2[2]);
_local3._xscale = Number(_local2[3]);
_local3._yscale = Number(_local2[4]);
} else if (_local2[0] == "2") {
loadURL(_local2.slice(2).join(""), Number(_local2[1]));
}
_local4++;
}
if (_local6[0] == "1") {
v_event[_local7] = "";
}
}
}
};
stop();
Instance of Symbol 4 MovieClip "bar" in Symbol 5 MovieClip Frame 1
onClipEvent (load) {
_rotation = 180;
}
Symbol 14 MovieClip Frame 1
new Color(color_mc).setRGB(_parent.colBase);
Symbol 18 MovieClip Frame 1
new Color(color_mc).setRGB(_parent.colBase);
Symbol 26 MovieClip Frame 1
new Color(color_mc).setRGB(_parent._parent.colGauge);
Symbol 33 MovieClip Frame 1
w = _parent.barWidth;
if (w > 200) {
bar_mc._width = w - 16;
right_mc._x = w - 8;
}
Symbol 37 MovieClip Frame 1
stop();
Symbol 38 MovieClip Frame 1
function go(pos) {
if (pos < 0) {
pos = 0;
} else if (pos > gauge_mc._width) {
pos = gauge_mc._width;
}
n = (pos / barWidth) * totaltime;
p.fv_jump(n);
}
function setSlider() {
var _local1 = (p.fv_getTime() / totaltime) * barWidth;
if (!btn_mc.active) {
btn_mc._x = _local1;
}
line_mc._x = _local1;
}
function setGauge(ppct) {
gauge_mc._width = (ppct / 100) * barWidth;
}
var barWidth = (_parent.pwidth - 10);
var p = _parent.p;
var totaltime = p.v_timetotal;
var isLoad = true;
gauge_mc._width = 0;
gauge_mc.setMask(gauge_mask);
line_mc.setMask(line_mask);
if (barWidth > 200) {
bbar_mc._width = barWidth - 16;
bright_mc._x = barWidth - 8;
}
new Color(btn_mc).setRGB(_parent.colText);
new Color(line_mc).setRGB(_parent.colLight);
Instance of Symbol 26 MovieClip "gauge_mc" in Symbol 38 MovieClip Frame 1
onClipEvent (load) {
var p = _parent;
var active = false;
}
onClipEvent (enterFrame) {
if (active) {
p.go(p._xmouse);
}
}
on (press) {
active = true;
p.go(p._xmouse);
}
on (release, releaseOutside) {
active = false;
}
Instance of Symbol 28 MovieClip "line_mc" in Symbol 38 MovieClip Frame 1
onClipEvent (load) {
this.setMask(_parent.line_mask);
}
Instance of Symbol 37 MovieClip "btn_mc" in Symbol 38 MovieClip Frame 1
onClipEvent (load) {
p = _parent;
var right = p.barWidth;
var active = false;
}
onClipEvent (enterFrame) {
if (active) {
p.go(_x);
}
}
on (press) {
startDrag (this, true, 0, 0, right, 0);
active = true;
gotoAndStop (2);
}
on (release, releaseOutside) {
stopDrag();
active = false;
gotoAndStop (1);
p.go(_x);
}
Symbol 43 MovieClip Frame 1
p = _parent;
ikon = _parent.icon_mc;
cikon = new Color(ikon);
new Color(light_mc).setRGB(p.p.colLight);
cikon.setRGB(p.p.colText);
light_mc._visible = false;
this.onPress = function () {
cikon.setRGB(p.p.colText);
ikon._xscale = (ikon._yscale = 95);
light_mc._alpha = 100;
};
this.onRollOver = function () {
cikon.setRGB(p.p.colLight);
ikon._xscale = (ikon._yscale = 100);
light_mc._visible = true;
light_mc._alpha = 70;
};
this.onRelease = function () {
cikon.setRGB(p.p.colLight);
ikon._xscale = (ikon._yscale = 100);
light_mc._visible = true;
light_mc._alpha = 70;
p.clicked();
};
this.onReleaseOutside = (this.onRollOut = (this.onDragOut = function () {
cikon.setRGB(p.p.colText);
ikon._xscale = (ikon._yscale = 100);
light_mc._visible = false;
}));
Symbol 46 MovieClip Frame 1
function clicked() {
p.p.fv_rewind();
}
p = _parent;
stop();
Symbol 48 MovieClip Frame 1
function clicked() {
p.p.fv_forward();
}
p = _parent;
stop();
Symbol 51 MovieClip Frame 1
function clicked() {
p.p.fv_play(false);
}
p = _parent._parent;
stop();
Symbol 52 MovieClip Frame 1
function clicked() {
p.p.fv_play(true);
}
p = _parent._parent;
stop();
Instance of Symbol 51 MovieClip "b_play" in Symbol 53 MovieClip Frame 1
/* no clip actions */
Symbol 59 MovieClip Frame 1
function clicked() {
p.p.fv_mute(true);
}
p = _parent._parent;
stop();
Symbol 63 MovieClip Frame 1
function clicked() {
p.p.fv_mute(false);
}
p = _parent._parent;
stop();
Symbol 64 MovieClip Frame 1
stop();
Instance of Symbol 63 MovieClip "b_play" in Symbol 64 MovieClip Frame 3
/* no clip actions */
Symbol 73 MovieClip Frame 1
new Color(color_mc).setRGB(_parent._parent.colBase);
stop();
Symbol 74 MovieClip Frame 1
function setSlider(x) {
bar_mc._width = x;
if (!slider_mc.active) {
slider_mc._x = x;
}
}
function setVol(x) {
if (x < 0) {
x = 0;
} else if (x > 50) {
x = 50;
}
vol = 2 * x;
setSlider(x);
p.fv_volume(vol);
}
var p = _parent.p;
var vol = p.v_vol;
new Color(bar_mc).setRGB(_parent.colLight);
setVol(vol / 2);
Instance of Symbol 68 MovieClip "base_mc" in Symbol 74 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 68 MovieClip "base_mc" in Symbol 74 MovieClip Frame 1
onClipEvent (load) {
var p = _parent;
var active = false;
}
onClipEvent (enterFrame) {
if (active) {
p.setVol(p._xmouse);
}
}
on (press) {
active = true;
p.setVol(p._xmouse);
}
on (release, releaseOutside) {
active = false;
}
Instance of Symbol 73 MovieClip "slider_mc" in Symbol 74 MovieClip Frame 1
onClipEvent (load) {
active = false;
p = _parent;
}
onClipEvent (enterFrame) {
if (active) {
p.setVol(_x);
}
}
on (press) {
gotoAndStop (2);
startDrag (this, true, 0, 0, 50, 0);
active = true;
}
on (release, releaseOutside) {
gotoAndStop (1);
p.setVol(_x);
active = false;
stopDrag();
}
Symbol 75 MovieClip Frame 1
function clicked() {
p.p.fv_backward();
}
p = _parent;
stop();
Symbol 82 MovieClip Frame 1
function setPlay() {
gotoAndStop ("playing");
}
function setStop() {
gotoAndStop (1);
}
function setBuff(p) {
perc = ("(" + Math.round(p)) + "%)";
gotoAndStop ("buffering");
}
function setLoad(p) {
perc = ("(" + Math.round(p)) + "%)";
gotoAndStop ("loading");
}
var perc;
stop();
Symbol 84 MovieClip Frame 1
function setTime() {
t = p.fv_getTime();
time = (((((getS(t / 3600) + ":") + getS((t % 3600) / 60)) + ":") + getS(t % 60)) + "/") + stotal;
}
function getS(t) {
t = Math.floor(t);
if (t < 10) {
temp = "0" + t;
} else {
temp = String(t);
}
return(temp);
}
var p = _parent.p;
var total = p.v_timetotal;
var stotal = ((((getS(total / 3600) + ":") + getS((total % 3600) / 60)) + ":") + getS(total % 60));
var time = ("00:00:00/" + stotal);
stop();
Symbol 86 MovieClip Frame 1
var title = _parent.p.v_title;
tfield._width = (_parent.pos - _x) - 5;
stop();
Symbol 87 MovieClip Frame 1
function c_main() {
if (p.v_loading && (p.v_buffing)) {
if (p.v_preload) {
t_stat.setLoad(p.v_buff);
} else {
t_stat.setBuff(p.v_buff);
}
} else if (p.v_playstat) {
t_stat.setPlay();
} else {
t_stat.setStop();
}
t_time.setTime();
if (p.v_mute) {
b_mute.gotoAndStop("mute");
} else {
b_mute.gotoAndStop("play");
}
if (p.v_playstat) {
b_play.gotoAndStop("play");
} else {
b_play.gotoAndStop("pause");
}
if ((p.v_vol != b_volume.vol) && (!b_volume.slider_mc.active)) {
trace("sound");
b_volume.setVol(p.v_vol);
}
b_slider.setSlider();
if (b_slider.isLoad) {
b_slider.setGauge(p.v_loadpct);
if (!p.v_loading) {
b_slider.setGauge(100);
b_slider.isLoad = false;
}
}
}
var p = _parent;
b_slider._visible = p.v_bslider;
b_volume._visible = p.v_bvolume;
b_mute._visible = p.v_bmute;
t_time._visible = p.v_btiming;
b_backward._visible = p.v_bbackward;
b_forward._visible = p.v_bforward;
b_rewind._visible = p.v_brewind;
_x = 0;
_y = (p.v_mtop + p.v_height);
if (p.v_center) {
_x = ((-p.vw) / 2);
_y = (_y - (p.v_height / 2));
}
var pwidth = p.vw;
pbar._width = pwidth - 20;
pright._x = pwidth;
t_time._x = pwidth - 7;
var pos;
pos = 12;
if (b_rewind._visible) {
pos = pos + 18;
}
if (b_backward._visible) {
b_backward._x = pos;
pos = pos + 18;
}
b_play._x = pos;
if (b_forward._visible) {
pos = pos + 18;
b_forward._x = pos;
}
pos = pos + 12;
t_title._x = pos;
pos = pwidth - 2;
if (b_mute._visible) {
pos = pos - 10;
b_mute._x = pos;
pos = pos - 10;
}
if (b_volume._visible) {
pos = pos - 55;
b_volume._x = pos;
}
colBase = _parent.v_col1;
colLight = _parent.v_col2;
colText = _parent.v_col3;
colGauge = _parent.v_col4;
new Color(t_stat).setRGB(colText);
new Color(t_time).setRGB(colText);
new Color(t_title).setRGB(colText);
if (c_id != null) {
clearInterval(c_id);
}
c_id = setInterval(c_main, 1000 / p.v_fps);