[Tools][Expand/Collapse All]Note that automatic extraction of ActionScript 3 is still pretty much unsupported by swfchan. AS1/AS2 works okay most of the time.Combined Code (4.66 KiB) ●
movieClip 6 Symbol2 {
}
frame 1 {
var Width_OF_PL = 'INTERNAL_TWCPX_NMBR_N10000x10000_MWIDTH:-:-:800';
StrArray = Width_OF_PL.split(':-:-:');
Width_OF_PL = Number(StrArray[StrArray.length - 1]);
trace(Width_OF_PL);
var Height_OF_PL = 'INTERNAL_TWCPX_NMBR_N10000x10000_MHEIGHT:-:-:500';
StrArray = Height_OF_PL.split(':-:-:');
Height_OF_PL = Number(StrArray[StrArray.length - 1]);
trace(Height_OF_PL);
var showProgress = 'INTERNAL_TWCPX_BOOL_Show_Progress:-:-:True';
var StrArray = showProgress.split(':-:-:');
trace(StrArray[StrArray.length - 1]);
showProgress = Boolean(StrArray[StrArray.length - 1]);
trace(showProgress);
var simulation = 'INTERNAL_TWCPX_BOOL_SimulationMode:-:-:';
var StrArray = simulation.split(':-:-:');
simulation = Boolean(StrArray[StrArray.length - 1]);
trace(simulation);
var Xoffset = 'INTERNAL_TWCPX_NMBR_N10000x10000_Preloader_X_Offset:-:-:0';
StrArray = Xoffset.split(':-:-:');
Xoffset = Number(StrArray[StrArray.length - 1]);
trace(Xoffset);
var Yoffset = 'INTERNAL_TWCPX_NMBR_N10000x10000_Preloader_Y_Offset:-:-:121';
StrArray = Yoffset.split(':-:-:');
Yoffset = Number(StrArray[StrArray.length - 1]);
trace(Yoffset);
var BackgroundColor = 'CONST_TWCPX_COLR_Background_Color:-:-:0x000000';
StrArray = BackgroundColor.split(':-:-:');
BackgroundColor = Number(StrArray[StrArray.length - 1]);
trace(BackgroundColor);
var LoadingText = 'INTERNAL_TWCPX_STRN_100_Loading_Message:-:-:Loaded _KBL of _TKB _PL';
StrArray = LoadingText.split(':-:-:');
LoadingText = String(StrArray[StrArray.length - 1]);
trace(LoadingText);
var ProgressTextColor = 'CONST_TWCPX_COLR_Progress_Text_Color:-:-:0xEEEEEE';
StrArray = ProgressTextColor.split(':-:-:');
ProgressTextColor = Number(StrArray[StrArray.length - 1]);
trace(ProgressTextColor);
var BarColor = 'CONST_TWCPX_COLR_Progress_Bar_Color:-:-:0xFF0000';
StrArray = BarColor.split(':-:-:');
BarColor = Number(StrArray[StrArray.length - 1]);
trace(BarColor);
var BarBackgroundColor = 'CONST_TWCPX_COLR_Progress_Bar_Background_Color:-:-:0x800000';
StrArray = BarBackgroundColor.split(':-:-:');
BarBackgroundColor = Number(StrArray[StrArray.length - 1]);
trace(BarBackgroundColor);
var counter;
if (counter <= 0) {
counter = 1;
}
counter += random(5);
trace(counter);
eval(backgroundrect)._x = 0;
eval(backgroundrect)._y = 0;
eval(backgroundrect)._width = Width_OF_PL;
eval(backgroundrect)._height = Height_OF_PL;
eval(box_inside)._x = Width_OF_PL / 2 + Xoffset;
eval(box_inside)._y = Height_OF_PL / 2 + Yoffset;
eval(box_outside)._x = Width_OF_PL / 2 + Xoffset;
eval(box_outside)._y = Height_OF_PL / 2 + Yoffset;
eval(box_background)._x = Width_OF_PL / 2 + Xoffset;
eval(box_background)._y = Height_OF_PL / 2 + Yoffset;
eval(box_initial)._x = Width_OF_PL / 2 + Xoffset;
eval(box_initial)._y = Height_OF_PL / 2 + Yoffset;
eval(progressmessage)._x = Width_OF_PL / 2 - (eval(progressmessage))._width / 2 + Xoffset;
eval(progressmessage)._y = Height_OF_PL / 2 + 10 + Yoffset;
if (showProgress == false) {
eval(box_inside)._visible = false;
eval(box_background)._visible = false;
}
myColor = new Color(backgroundrect);
myColor.setRGB(BackgroundColor);
myColor = new Color(box_inside);
myColor.setRGB(BarColor);
myColor = new Color(box_background);
myColor.setRGB(BarBackgroundColor);
myColor = new Color(progressmessage);
myColor.setRGB(ProgressTextColor);
var actBytes = Math.round(_root.getBytesLoaded() / 1024);
var totBytes = Math.round(_root.getBytesTotal() / 1024);
var percent = Math.round(actBytes * 100 / totBytes);
trace(percent);
if (simulation == true) {
percent = counter;
actBytes = Math.round(percent * 3.55);
totBytes = 355;
}
trace(percent);
box_inside.gotoAndStop(percent);
box_outside.gotoAndStop(percent);
StrArray = LoadingText.split('_TKB');
if (StrArray.length > 1) {
LoadingText = StrArray[0] + '' + String(totBytes) + 'KB ' + StrArray[1];
}
StrArray = LoadingText.split('_KBL');
if (StrArray.length > 1) {
LoadingText = StrArray[0] + '' + String(actBytes) + 'KB ' + StrArray[1];
}
StrArray = LoadingText.split('_PL');
if (StrArray.length > 1) {
LoadingText = StrArray[0] + '' + String(percent) + '% ' + StrArray[1];
}
trace(LoadingText);
var loadingmessage = LoadingText;
if (percent >= 100) {
if (_root._totalframes >= 4) {
if (_root._totalframes >= 4) {
gotoAndStop(4);
} else {
counter = 0;
gotoAndPlay(1);
}
} else {
counter = 0;
gotoAndPlay(1);
}
} else {
gotoAndPlay(1);
}
}
movieClip 8 Background {
}
movieClip 12 {
}
movieClip 13 {
}
frame 2 {
gotoAndPlay(1);
}
movieClip 15 {
}