Frame 1
function trim(trimmed) {
var n = trimmed.length;
lfound = false;
while (!lfound) {
n = n - 1;
if (trimmed.charAt(n) != " ") {
lfound = true;
}
}
return(trimmed.slice(0, n + 1));
}
setting = trim("-1,1,3,30.00,320,240,1,1,1,1,1,1,1,000000,0,ffffff,cfcfcf,80c8ff,404040,1, ");
v_title = trim(" ");
v_url = trim(" ");
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", "brewind", "preloader");
var i = 0;
while (i < 7) {
this["v_" + tname[i]] = temp[i + 6] == "1";
i++;
}
v_color = "0x" + temp[13];
v_center = temp[14] == "1";
tname = new Array("col1", "col2", "col3", "col4");
var i = 0;
while (i < 4) {
if (temp[i + 15] != "") {
this["v_" + tname[i]] = "0x" + temp[i + 15];
}
i++;
}
v_mUrlWindow = Number(temp[19]);
v_mUrl = temp[20];
delete temp;
delete tname;
_quality = "BEST";
var v_mleft = 0;
var v_mtop = 0;
var v_mbottom = 45;
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);
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 = 180;
var vr = (72 / p.v_fps);
if (!p.v_center) {
_x = (p.v_twidth / 2);
_y = (p.v_theight / 2);
}
}
onClipEvent (enterFrame) {
t++;
if (isOn) {
_rotation = (_rotation - v);
if (r > 0) {
r = r - vr;
top.bar._rotation = r;
bottom.bar._rotation = r;
}
if ((p._framesloaded > 2) && (t > twait)) {
p.gotoAndPlay(2);
}
} else if (t > twait) {
if (p.v_preloader && (p._framesloaded < 2)) {
isOn = true;
_alpha = 100;
twait = twait + (p.v_fps * 2);
} else {
p.gotoAndPlay(2);
}
}
}
Frame 2
function fv_check() {
if (v_loading) {
t++;
fv_setGauge();
if (v_buffstat) {
fv_setBuff();
if ((_framesloaded > fwait) && (t > twait)) {
fv_endBuff();
}
} else {
fcheck = _currentframe + v_fps;
if (fcheck > _totalframes) {
fcheck = _totalframes;
}
if (_framesloaded < fcheck) {
fwait = _currentframe + fadd;
if (fwait > _totalframes) {
fwait = _totalframes;
}
fv_initBuff();
}
}
if (_framesloaded >= _totalframes) {
fplay = _totalframes;
v_loading = false;
fv_endBuff();
}
}
if (v_playstat) {
if (_currentframe >= _totalframes) {
if (v_endAction == 2) {
gotoAndPlay (4);
} else {
fv_rewind();
if (v_endAction == 3) {
var window;
if (v_urlWindow == 1) {
window = "_self";
} else if (v_urlWindow == 2) {
window = "_blank";
} else if (v_urlWindow == 3) {
window = "_parent";
} else {
window = "_top";
}
getURL (v_url, window);
}
}
}
}
}
function fv_initBuff() {
v_buffstat = true;
t = 0;
fbuff0 = _currentframe;
fv_setBuff();
stop();
}
function fv_setBuff() {
p = (_framesloaded - fbuff0) / (fwait - fbuff0);
if (p >= 0.99) {
p = 0.99;
}
c_stat.setBuff(p);
}
function fv_endBuff() {
v_buffstat = false;
if (v_playstat) {
c_stat.setPlay();
play();
} else {
c_stat.setStop();
}
}
function fv_setGauge() {
f = _framesloaded;
if (f < _totalframes) {
f = Math.max(_currentframe, f - fadd);
}
fplay = Math.max(f, fplay);
c_gauge.setGauge(fplay);
}
function fv_rewind() {
gotoAndStop (4);
fv_play(false);
}
function fv_forward() {
gotoAndStop(fplay);
fv_play(false);
}
function fv_play(cond) {
v_playstat = cond;
c_play.setButton(cond);
if (cond) {
c_stat.setPlay();
if (!v_buffstat) {
play();
}
} else {
c_stat.setStop();
stop();
}
}
function fv_jump(f) {
f = f + 3;
if (f < 4) {
f = 4;
} else if (f > fplay) {
f = fplay;
}
gotoAndStop(f);
fv_play(false);
}
function fv_mute(cond) {
v_mute = cond;
c_mute.setButton(cond);
if (cond) {
v_sound.setVolume(0);
} else {
v_sound.setVolume(v_vol);
}
}
function fv_volume(vol) {
v_vol = vol;
if (!v_mute) {
v_sound.setVolume(v_vol);
}
}
var v_playstat = true;
var v_buffstat = true;
var v_loading = true;
var fwait;
var fbuff0;
var fadd = (v_fps * 5);
var fplay = 3;
var t = 0;
var twait = (v_fps * 3);
if (v_startFlag == 0) {
fwait = 3 + fadd;
v_playstat = false;
} else if (v_startFlag == -1) {
fwait = 3 + fadd;
} else if (v_startFlag == -2) {
fwait = _totalframes;
} else {
fwait = 3 + (v_startFlag * v_fps);
}
fv_initBuff();
v_sound = new Sound(this);
var v_vol = v_sound.getVolume();
var v_mute = false;
gotoAndStop (3);
Frame 3
attachMovie("vc_control", "control_mc", 10);
control_mc._y = v_mtop + v_height;
if (v_center) {
control_mc._x = control_mc._x - (vw / 2);
control_mc._y = control_mc._y - (vh / 2);
}
setInterval(fv_check, 1000 / v_fps);
if (v_mUrl != "") {
attachMovie("vc_area", "area_mc", 9);
area_mc._width = vw;
area_mc._height = vh;
area_mc._x = v_mleft;
area_mc._y = v_mtop;
area_mc.onRelease = function () {
var w;
if (v_mUrlWindow == 1) {
w = "_self";
} else if (v_mUrlWindow == 2) {
w = "_blank";
} else if (v_mUrlWindow == 3) {
w = "_parent";
} else {
w = "_top";
}
getURL (v_mUrl, w);
};
if (v_center) {
area_mc._x = area_mc._x - (vw / 2);
area_mc._y = area_mc._y - (vh / 2);
}
}
gotoAndStop (4);
Instance of Symbol 4 MovieClip "bar" in Symbol 5 MovieClip Frame 1
onClipEvent (load) {
_rotation = 180;
}
Symbol 20 MovieClip Frame 1
stop();
Symbol 21 MovieClip Frame 1
function go(pos) {
if (pos < 0) {
pos = 0;
} else if (pos > gauge_mc._width) {
pos = gauge_mc._width;
}
n = Math.ceil((pos / barWidth) * frames);
p.fv_jump(n);
}
function setSlider() {
var pos = (((p._currentframe - 3) / frames) * barWidth);
if (!btn_mc.active) {
btn_mc._x = pos;
}
line_mc._x = pos;
}
function setGauge(f) {
gauge_mc._width = ((f - 3) / frames) * barWidth;
}
var barWidth = (_parent.pwidth - 10);
var p = _parent._parent;
var frames = (p._totalframes - 3);
base_mc._width = barWidth;
new Color(btn_mc).setRGB(_parent.colText);
new Color(line_mc).setRGB(_parent.colText);
new Color(gauge_mc).setRGB(_parent.colLight);
new Color(base_mc).setRGB(_parent.colButton);
Instance of Symbol 14 MovieClip "gauge_mc" in Symbol 21 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 16 MovieClip "line_mc" in Symbol 21 MovieClip Frame 1
onClipEvent (load) {
this.setMask(_parent.line_mask);
}
Instance of Symbol 20 MovieClip "btn_mc" in Symbol 21 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 26 MovieClip Frame 1
col1 = _parent.colText;
col2 = _parent.colLight;
new Color(base_mc).setRGB(_parent.colButton);
new Color(icon_mc).setRGB(col1);
stop();
Symbol 27 MovieClip Frame 1
col1 = _parent.colText;
col2 = _parent.colLight;
new Color(base_mc).setRGB(_parent.colButton);
new Color(icon_mc).setRGB(col1);
stop();
Symbol 30 MovieClip Frame 1
col1 = _parent._parent.colText;
col2 = _parent._parent.colLight;
new Color(base_mc).setRGB(_parent._parent.colButton);
new Color(icon_mc).setRGB(col1);
stop();
Symbol 31 MovieClip Frame 1
col1 = _parent._parent.colText;
col2 = _parent._parent.colLight;
new Color(base_mc).setRGB(_parent._parent.colButton);
new Color(icon_mc).setRGB(col1);
stop();
Symbol 32 MovieClip Frame 1
function setButton(cond) {
if (cond) {
gotoAndStop (2);
} else {
gotoAndStop (3);
}
}
setButton(_parent._parent.v_playstat);
stop();
Instance of Symbol 30 MovieClip "b_play" in Symbol 32 MovieClip Frame 1
on (press) {
_alpha = 60;
}
on (release, rollOver) {
new Color(icon_mc).setRGB(col2);
_alpha = 100;
}
on (releaseOutside, rollOut, dragOut) {
new Color(icon_mc).setRGB(col1);
_alpha = 100;
}
on (release) {
_parent._parent._parent.fv_play(false);
}
Instance of Symbol 31 MovieClip "b_play" in Symbol 32 MovieClip Frame 3
on (press) {
_alpha = 60;
}
on (release, rollOver) {
new Color(icon_mc).setRGB(col2);
_alpha = 100;
}
on (releaseOutside, rollOut, dragOut) {
new Color(icon_mc).setRGB(col1);
_alpha = 100;
}
on (release) {
_parent._parent._parent.fv_play(true);
}
Symbol 38 MovieClip Frame 1
col1 = _parent._parent.colText;
col2 = _parent._parent.colLight;
new Color(base_mc).setRGB(_parent._parent.colButton);
new Color(icon_mc).setRGB(col1);
stop();
Symbol 42 MovieClip Frame 1
col1 = _parent._parent.colText;
col2 = _parent._parent.colLight;
new Color(base_mc).setRGB(_parent._parent.colButton);
new Color(icon_mc).setRGB(col1);
stop();
Symbol 43 MovieClip Frame 1
function setButton(cond) {
if (cond) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
stop();
Instance of Symbol 38 MovieClip "b_play" in Symbol 43 MovieClip Frame 1
on (press) {
_alpha = 60;
}
on (release, rollOver) {
new Color(icon_mc).setRGB(col2);
_alpha = 100;
}
on (releaseOutside, rollOut, dragOut) {
new Color(icon_mc).setRGB(col1);
_alpha = 100;
}
on (release) {
_parent._parent._parent.fv_mute(true);
}
Instance of Symbol 42 MovieClip "b_play" in Symbol 43 MovieClip Frame 3
on (press) {
_alpha = 60;
}
on (release, rollOver) {
new Color(icon_mc).setRGB(col2);
_alpha = 100;
}
on (releaseOutside, rollOut, dragOut) {
new Color(icon_mc).setRGB(col1);
_alpha = 100;
}
on (release) {
_parent._parent._parent.fv_mute(false);
}
Symbol 46 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._parent;
var vol = p.v_vol;
new Color(bar_mc).setRGB(_parent.colLight);
new Color(base_mc).setRGB(_parent.colButton);
new Color(slider_mc).setRGB(_parent.colText);
setVol(vol / 2);
Instance of Symbol 20 MovieClip "slider_mc" in Symbol 46 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();
}
Instance of Symbol 45 MovieClip "area_mc" in Symbol 46 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;
}
Symbol 51 MovieClip Frame 1
function setPlay() {
gotoAndStop (3);
}
function setStop() {
gotoAndStop (1);
}
function setBuff(p) {
perc = ("(" + Math.round(p * 100)) + "%)";
gotoAndStop (2);
}
var perc;
var isPlay;
stop();
Symbol 53 MovieClip Frame 1
function setTime() {
t = Math.round((p._currentframe - 3) / fps);
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._parent;
var fps = p.v_fps;
var total = Math.round((p._totalframes - 3) / fps);
var stotal = ((((getS(total / 3600) + ":") + getS((total % 3600) / 60)) + ":") + getS(total % 60));
var time = stotal;
setTime();
stop();
Symbol 55 MovieClip Frame 1
var title = _parent._parent.v_title;
tfield._width = _parent.pos - _x;
stop();
Symbol 56 MovieClip [vc_control] Frame 1
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_forward._visible = p.v_bforward;
b_rewind._visible = p.v_brewind;
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;
}
b_play._x = pos;
if (b_forward._visible) {
pos = pos + 18;
b_forward._x = pos;
}
pos = pos + 12;
t_title._x = pos;
pos = pwidth - 5;
if (b_mute._visible) {
pos = pos - 7;
b_mute._x = pos;
pos = pos - 8;
}
if (b_volume._visible) {
pos = pos - 54;
b_volume._x = pos;
}
p.c_stat = t_stat;
p.c_gauge = b_slider;
p.c_play = b_play;
p.c_mute = b_mute;
colBase = _parent.v_col1;
colButton = _parent.v_col2;
colLight = _parent.v_col3;
colText = _parent.v_col4;
new Color(t_stat).setRGB(colText);
new Color(t_time).setRGB(colText);
new Color(t_title).setRGB(colText);
new Color(pleft).setRGB(colBase);
new Color(pbar).setRGB(colBase);
new Color(pright).setRGB(colBase);
Instance of Symbol 21 MovieClip "b_slider" in Symbol 56 MovieClip [vc_control] Frame 1
onClipEvent (enterFrame) {
setSlider();
}
Instance of Symbol 26 MovieClip "b_rewind" in Symbol 56 MovieClip [vc_control] Frame 1
on (press) {
_alpha = 60;
}
on (release, rollOver) {
new Color(icon_mc).setRGB(col2);
_alpha = 100;
}
on (releaseOutside, rollOut, dragOut) {
new Color(icon_mc).setRGB(col1);
_alpha = 100;
}
on (release) {
_parent._parent.fv_rewind();
}
Instance of Symbol 27 MovieClip "b_forward" in Symbol 56 MovieClip [vc_control] Frame 1
on (press) {
_alpha = 60;
}
on (release, rollOver) {
new Color(icon_mc).setRGB(col2);
_alpha = 100;
}
on (releaseOutside, rollOut, dragOut) {
new Color(icon_mc).setRGB(col1);
_alpha = 100;
}
on (release) {
_parent._parent.fv_forward();
}
Instance of Symbol 53 MovieClip "t_time" in Symbol 56 MovieClip [vc_control] Frame 1
onClipEvent (enterFrame) {
setTime();
}