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,2,3,20.00,320,240,1,1,1,1,1,1,1,1,1,1,0,000000,0,ffffff,282828,00ffff,000000,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", "bfscreen", "bbigplay", "preloader", "startfscr");
var i = 0;
while (i < 11) {
this["v_" + tname[i]] = temp[i + 6] == "1";
i++;
}
v_color = "0x" + temp[17];
v_center = temp[18] == "1";
tname = new Array("col1", "col2", "col3", "col4");
var i = 0;
while (i < 4) {
if (temp[i + 19] != "") {
this["v_" + tname[i]] = "0x" + temp[i + 19];
}
i++;
}
v_mUrlWindow = Number(temp[23]);
v_mUrl = temp[24];
v_preview = temp[25] == "1";
delete tname;
delete temp;
_quality = "BEST";
version = 3;
temp = Stage.scaleMode;
Stage.scaleMode = "showAll";
var sw = Stage.width;
var sh = Stage.height;
Stage.scaleMode = temp;
delete temp;
if (_framesloaded >= _totalframes) {
gotoAndPlay (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 = 180;
var vr = (72 / p.v_fps);
if (!p.v_center) {
_x = (p.sw / 2);
_y = (p.sh / 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 < 3)) {
isOn = true;
_alpha = 100;
twait = twait + (p.v_fps * 2);
} else if (p._framesloaded > 2) {
p.gotoAndPlay(2);
}
}
}
Frame 2
function fv_getTime() {
return((_currentframe - 3) / v_fps);
}
function fv_setEnd() {
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 jumpFrame(pf) {
v_stat = 2;
if (pf >= ftotal) {
pf = ftotal;
if (v_playstat) {
pf = pf - 1;
}
} else if (pf < 1) {
pf = 1;
}
pf = pf + 3;
if (v_playstat && (!v_buffing)) {
gotoAndPlay(pf);
} else {
gotoAndStop(pf);
}
}
function fv_rewind() {
jumpFrame(1);
}
function fv_forward() {
jumpFrame(v_cueframe * (Math.floor((_currentframe - 3) / v_cueframe) + 1));
}
function fv_backward() {
jumpFrame(v_cueframe * Math.floor((_currentframe - 4) / v_cueframe));
}
function fv_play(pflag) {
if (pflag == null) {
pflag = !v_playstat;
}
if (pflag && (v_stat == 3)) {
fv_rewind();
}
v_playstat = pflag;
if (v_playstat && (!v_buffing)) {
play();
} else {
stop();
}
}
function fv_jump(psec) {
if (!v_preload) {
if ((getTimer() - d0) >= dseek) {
d0 = getTimer();
jumpFrame(Math.round(psec * v_fps));
}
}
}
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);
}
}
function fv_initPosition(tobj) {
if (!v_center) {
subs_mc._x = tobj.m_left + ((vw - v_width) / 2);
subs_mc._y = tobj.m_top + ((vh - v_height) / 2);
}
}
function fv_fullScreen(cond) {
if (cond == null) {
cond = !v_fscreen;
}
if (v_fscreen != cond) {
v_fscreen = cond;
if (cond) {
Stage.fullScreenSourceRect = new flash.geom.Rectangle(0, 0, sw, sh);
Stage.displayState = "fullScreen";
} else {
Stage.displayState = "normal";
}
}
}
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 cm_handler(obj, menu) {
ci_play.caption = (v_playstat ? "Pause Movie" : "Play Movie");
ci_fscreen.caption = (v_fscreen ? "Normal Screen" : "Full Screen");
}
function cf_play(pobj, pitem) {
fv_play();
}
function cf_fscreen() {
fv_fullScreen();
}
v_title = trim(" ");
v_url = trim(" ");
eventpar = trim("1`,1`,1 ");
subs = trim(" ");
chapter = trim(" ");
swfset = trim("60`~,80`~,513,0:0:25.61s`~,1527,0:1:16.33s`~,2814,0:2:20.68s ");
v_mcount = 1;
var temp = swfset.split("`~,");
delete swfset;
v_bframe = Number(temp[0]);
v_cueframe = Number(temp[1]);
if (temp.length > 2) {
var v_evtime = new Array();
var v_evname = new Array();
var temp2;
var i = 2;
while (i < temp.length) {
temp2 = temp[i].split(",");
v_evtime[i - 2] = Number(temp2[0]);
v_evname[i - 2] = temp2.slice(1).join("");
i++;
}
}
delete temp;
if (chapter != "") {
var v_chapnow = 0;
var temp = chapter.split("`|~");
var v_chapter = new Array(temp.length);
var i = 0;
while (i < temp.length) {
v_chapter[i] = new Object();
v_chapter[i].time = Number(temp[i].split(",", 1)[0]);
v_chapter[i].name = temp[i].substr(temp[i].indexOf(",", 0) + 1);
i++;
}
delete temp;
}
delete chapter;
ftotal = _totalframes - 3;
v_timetotal = ftotal / v_fps;
var v_playstat = true;
var v_loading = true;
var v_buffing = true;
var v_preload = false;
var v_loadpct = 0;
var v_buff = 0;
var v_stat = 0;
var d0 = getTimer();
var dseek = (1000 / v_fps);
var v_sound = new Sound(this);
var v_vol = v_sound.getVolume();
var v_mute = false;
vw = v_width;
vh = v_height;
if (subs != "") {
subs_mc.swapDepths(9);
subs_mc._x = (v_center ? ((-vw) / 2) : ((sw - vw) / 2));
subs_mc._y = (v_center ? ((-vh) / 2) : ((sh - vh) / 2));
}
control_mc.swapDepths(11);
var fnow = 0;
gotoAndStop (3);
var v_fscreen = false;
fv_fullScreen(v_startfscr);
var cm_menu = new ContextMenu();
var ci_play = new ContextMenuItem("Pause Movie", cf_play);
var ci_rewind = new ContextMenuItem("Rewind Movie", fv_rewind);
var ci_next = new ContextMenuItem("Next", fv_forward);
var ci_prev = new ContextMenuItem("Previous", fv_backward);
var ci_fscreen = new ContextMenuItem("Full Screen", cf_fscreen, true);
cm_menu.customItems.push(ci_play, ci_rewind, ci_prev, ci_next, ci_fscreen);
cm_menu.onSelect = cm_handler;
cm_menu.hideBuiltInItems();
cm_menu.builtInItems.zoom = true;
cm_menu.builtInItems.quality = true;
this.menu = cm_menu;
Frame 3
if ((v_mUrl != "") && (v_mUrl != undefined)) {
attachMovie("vc_area", "area_mc", 8);
area_mc._width = vw;
area_mc._height = vh;
area_mc._x = (v_center ? ((-vw) / 2) : (control_mc.m_left));
area_mc._y = (v_center ? ((-vh) / 2) : (control_mc.m_top));
area_mc.onRelease = function () {
loadURL(v_mUrl, v_mUrlWindow);
};
}
var evlast = -1;
if (eventpar != "") {
this.createEmptyMovieClip("clip_mc", 10);
clip_mc._x = (v_center ? ((-v_width) / 2) : (control_mc.m_left + ((vw - v_width) / 2)));
clip_mc._y = (v_center ? ((-v_height) / 2) : (control_mc.m_top + ((vh - v_height) / 2)));
v_event = eventpar.split("`,");
evFunc = _parent != undefined;
evlast = 0;
}
delete eventpar;
v_stat = 0;
var fcheck;
var fadd = v_bframe;
var ft = 0;
var ftwait = (v_fps * 3);
if (v_startFlag == 0) {
v_playstat = false;
} else if (v_startFlag == -1) {
} else {
v_preload = true;
fadd = ((v_startFlag > 0) ? (v_startFlag * v_fps) : (ftotal));
}
fadd = Math.min(fadd, ftotal);
this.createEmptyMovieClip("play_mc", 5);
play_mc.onEnterFrame = function () {
if (v_stat == 0) {
if (_currentframe > 3) {
v_stat = 2;
v_loading = _framesloaded < _totalframes;
if ((!v_loading) || (_framesloaded >= (3 + fadd))) {
v_preload = false;
v_buffing = false;
if (v_playstat) {
play();
} else {
stop();
}
} else {
stop();
}
}
} else {
if (v_loading) {
if (v_buffing) {
ft++;
if (((_framesloaded - _currentframe) > fadd) && (ft > ftwait)) {
v_buffing = false;
v_preload = false;
ft = 0;
if (v_playstat) {
play();
}
}
} else if (v_playstat) {
fcheck = _currentframe + 2;
if (fcheck > _totalframes) {
fcheck = _totalframes;
}
if (_framesloaded < fcheck) {
fadd = Math.min(v_bframe, _totalframes - _currentframe);
v_buffing = true;
}
}
v_loadpct = ((_framesloaded - 3) / ftotal) * 100;
v_buff = Math.min(99, ((_framesloaded - _currentframe) / fadd) * 100);
if (_framesloaded >= _totalframes) {
v_preload = (v_buffing = (v_loading = false));
}
}
if (fnow != (_currentframe - 3)) {
fnow = _currentframe - 3;
if (evlast > -1) {
var _local6 = -1;
var _local8 = 0;
if (fnow > v_evtime[evlast]) {
_local8 = evlast + 1;
}
var _local4 = _local8;
while (_local4 < v_evtime.length) {
if (fnow <= v_evtime[_local4]) {
if (fnow == v_evtime[_local4]) {
_local6 = _local4;
}
break;
}
_local4++;
}
if (_local6 > -1) {
evlast = _local6;
if (v_event[_local6] != "") {
var _local9 = Math.round(fv_getTime() * 100) / 100;
if (evFunc) {
_parent.onFVSEvent(_local9, v_evname[_local6]);
} else {
fscommand ("FVSEvent", (_local9 + ",") + v_evname[_local6]);
}
var _local7 = v_event[_local6].split(",");
_local4 = 1;
while (_local4 < _local7.length) {
var _local2 = _local7[_local4].split("~");
if (_local2[0] == "1") {
var _local5 = (_local6 + "_") + _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 (_local7[0] == "1") {
v_event[_local6] = "";
}
}
}
}
if ((vstat != 3) && (fnow >= ftotal)) {
v_stat = 3;
if (v_playstat) {
fv_setEnd();
}
}
if ((!v_playstat) || (v_buffing)) {
stop();
}
} else if (v_playstat && (!v_buffing)) {
play();
}
}
};
gotoAndPlay (4);
Instance of Symbol 4 MovieClip "bar" in Symbol 5 MovieClip Frame 1
onClipEvent (load) {
_rotation = 180;
}
Symbol 9 MovieClip Frame 1
p = _parent;
hasSub = p.subs != "";
if (hasSub) {
var temp = p.subs.split("|@`");
delete p.subs;
var temp2 = temp[0].split(",");
var fmt = new TextFormat();
fmt.font = temp2[0];
if (temp2[1] == "0") {
fmt.align = "left";
} else if (temp2[1] == "2") {
fmt.align = "right";
} else if (temp2[1] == "3") {
fmt.align = "justify";
} else {
fmt.align = "center";
}
fmt.size = Number(temp2[2]);
fmt.color = Number("0x" + temp2[3]);
fmt.bold = temp2[4] == "1";
fmt.italic = temp2[5] == "1";
fmt.underline = temp2[6] == "1";
var shadOn = (temp2[7] == "1");
if (shadOn) {
var shadFil = (new flash.filters.DropShadowFilter());
if (temp2[8] != "") {
var temp3 = temp2[8].split("~");
shadFil.distance = Number(temp3[0]);
shadFil.angle = Number(temp3[1]);
shadFil.color = Number("0x" + temp3[2]);
shadFil.alpha = Number(temp3[3]) / 100;
shadFil.blurX = Number(temp3[4]);
shadFil.blurY = Number(temp3[5]);
shadFil.strength = Number(temp3[6]);
shadFil.quality = Number(temp3[7]);
delete temp3;
}
var txtFil = new Array(shadFil);
}
var chnlnow = Number(temp2[9]);
var channel = temp2.slice(10);
delete temp2;
var temp1 = temp[1].split(",");
var temp2 = temp[2].split(",");
var starts = new Array(temp1.length);
var ends = new Array(temp1.length);
var i = 0;
while (i < temp2.length) {
starts[i] = Number(temp1[i]);
ends[i] = Number(temp2[i]);
i++;
}
delete temp1;
delete temp2;
var temp2 = temp[3].split("`|~");
var i = 0;
while (i < temp2.length) {
this["channel" + i] = temp2[i].split("`^~");
i++;
}
delete temp2;
delete temp;
}
function callSub(n) {
subnow = n;
this.createTextField("sub_txt", 1, 0, 0, w, h);
sub_txt.multiline = true;
sub_txt.wordWrap = true;
sub_txt.selectable = false;
sub_txt.setNewTextFormat(fmt);
sub_txt.text = this["channel" + chnlnow][ts];
sub_txt._y = h - (sub_txt.textHeight + 10);
if (shadOn) {
sub_txt.filters = txtFil;
}
}
function changeChannel(n) {
chnlnow = n;
if (sub_txt) {
if (n < 0) {
sub_txt.removeTextField();
} else {
sub_txt.text = this["channel" + chnlnow][subnow];
}
}
}
w = p.v_width;
h = p.v_height;
ts = (subnow = 0);
tend = ends[ends.length - 1];
this.createEmptyMovieClip("timer", 2);
timer.onEnterFrame = function () {
var _local1 = p.fnow;
if (sub_txt) {
if (((_local1 < starts[subnow]) || (_local1 > ends[subnow])) || (chnlnow < 0)) {
sub_txt.removeTextField();
}
} else if (chnlnow > -1) {
if ((_local1 > starts[0]) && (_local1 < tend)) {
if (_local1 < starts[ts]) {
ts = 0;
}
while ((ends[ts] < _local1) && (ts < starts.length)) {
ts++;
}
if ((_local1 >= starts[ts]) && (_local1 < ends[ts])) {
callSub(ts);
}
}
}
};