Combined Code
frame 1 {
function trim(trimmed) {
var v1 = trimmed.length;
lfound = false;
while (!lfound) {
v1 -= 1;
if (trimmed.charAt(v1) != ' ') {
lfound = true;
}
}
return trimmed.slice(0, v1 + 1);
}
setting = trim('-1,1,3,25.00,640,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';
v_mright = 0;
v_mbottom = 0;
v_mtop = 0;
var v_mleft = 0;
var vh = v_height;
var vw = v_width;
var v_twidth = v_width;
var v_theight = v_height;
if (_framesloaded >= _totalframes) {
gotoAndPlay(2);
} else {
stop();
}
}
movieClip 4 {
}
movieClip 5 {
instance bar of movieClip 4 {
onClipEvent (load) {
_rotation = 180;
}
}
}
movieClip 6 {
}
instance loading_mc of movieClip 6 {
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 -= 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 += p.v_fps * 2;
} else {
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 v1 = '_self';
if (pWin == 2) {
v1 = '_blank';
} else {
if (pWin == 3) {
v1 = '_parent';
} else {
if (pWin == 4) {
v1 = '_top';
}
}
}
getURL(pURL, v1);
}
function jumpFrame(pf) {
v_stat = 2;
if (pf >= ftotal) {
pf = ftotal;
if (v_playstat) {
pf -= 1;
}
} else {
if (pf < 1) {
pf = 1;
}
}
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 (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);
}
}
v_title = trim(' ');
v_url = trim(' ');
eventpar = trim(' ');
swfset = trim('75`~,100 ');
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;
temp2;
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;
gotoAndStop(3);
}
movieClip 8 vc_area {
}
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_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);
};
}
var evlast = -1;
if (eventpar != '') {
this.createEmptyMovieClip('clip_mc', 9);
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;
v_event = eventpar.split('`,');
evFunc = _parent != undefined;
evlast = 0;
delete eventpar;
}
v_stat = 0;
var fcheck;
var fadd = v_bframe;
var fnow = 0;
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_loading = false;
v_buffing = v_loading;
v_preload = v_buffing;
}
}
if (fnow != _currentframe - 3) {
fnow = _currentframe - 3;
if (evlast > -1) {
var v6 = -1;
var v8 = 0;
if (fnow > v_evtime[evlast]) {
v8 = evlast + 1;
}
var v4 = v8;
while (v4 < v_evtime.length) {
if (fnow <= v_evtime[v4]) {
if (fnow == v_evtime[v4]) {
v6 = v4;
}
break;
}
++v4;
}
if (v6 > -1) {
evlast = v6;
if (v_event[v6] != '') {
var v9 = Math.round(fv_getTime() * 100) / 100;
if (evFunc) {
_parent.onFVSEvent(v9, v_evname[v6]);
} else {
fscommand('FVSEvent', v9 + ',' + v_evname[v6]);
}
var v7 = v_event[v6].split(',');
v4 = 1;
while (v4 < v7.length) {
var v2 = v7[v4].split('~');
if (v2[0] == '1') {
var v5 = v6 + '_' + v4;
var v3;
if (clip_mc[v5] == undefined) {
v3 = clip_mc.createEmptyMovieClip(v5, clip_mc.getNextHighestDepth());
} else {
v3 = clip_mc[v5];
}
v3.loadMovie((v2.slice(5)).join(''));
v3._lockroot = true;
v3._x = Number(v2[1]);
v3._y = Number(v2[2]);
v3._xscale = Number(v2[3]);
v3._yscale = Number(v2[4]);
} else {
if (v2[0] == '2') {
loadURL((v2.slice(2)).join(''), Number(v2[1]));
}
}
++v4;
}
if (v7[0] == '1') {
v_event[v6] = '';
}
}
}
}
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);
}