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("5,2,3,25.00,320,240,1,1,1,1,1,1,1,000000,0,ffffff,2592ff,404040,000000,1, ");
v_title = trim(" ");
v_url = trim(" ");
temp = setting.split(",", 19);
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] != undefined) {
this["v_" + tname[i]] = "0x" + temp[i + 15];
}
i++;
}
delete temp;
delete tname;
_quality = "BEST";
var v_mleft = 0;
var v_mtop = 0;
var v_mbottom = 0;
var v_mright = 0;
var v_twidth = v_width;
var v_theight = v_height;
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
setInterval(fv_check, 1000 / v_fps);
gotoAndStop (4);
Instance of Symbol 4 MovieClip "bar" in Symbol 5 MovieClip Frame 1
onClipEvent (load) {
_rotation = 180;
}