Frame 1
var Width_OF_PL = "INTERNAL_TWCPX_NMBR_N10000x10000_MWIDTH:-:-:430";
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:-:-:316";
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:-:-:0";
StrArray = Yoffset.split(":-:-:");
Yoffset = Number(StrArray[StrArray.length - 1]);
trace(Yoffset);
var BackgroundColor = "CONST_TWCPX_COLR_Background_Color:-:-:0x666666";
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_Square01_Color:-:-:0xFF9900";
StrArray = BarColor.split(":-:-:");
BarColor = Number(StrArray[StrArray.length - 1]);
trace(BarColor);
var BarBorderColor = "CONST_TWCPX_COLR_Square02_Color:-:-:0xFF0000";
StrArray = BarBorderColor.split(":-:-:");
BarBorderColor = Number(StrArray[StrArray.length - 1]);
trace(BarBorderColor);
var counter;
if (counter <= 0) {
counter = 1;
}
counter = counter + random(5);
trace(counter);
setProperty(backgroundrect, _x , 0);
setProperty(backgroundrect, _y , 0);
setProperty(backgroundrect, _width , Width_OF_PL);
setProperty(backgroundrect, _height , Height_OF_PL);
setProperty(box_inside, _x , (Width_OF_PL / 2) + Xoffset);
setProperty(box_inside, _y , (Height_OF_PL / 2) + Yoffset);
setProperty(box_outside, _x , (Width_OF_PL / 2) + Xoffset);
setProperty(box_outside, _y , (Height_OF_PL / 2) + Yoffset);
setProperty(box_background, _x , (Width_OF_PL / 2) + Xoffset);
setProperty(box_background, _y , (Height_OF_PL / 2) + Yoffset);
setProperty(box_initial, _x , (Width_OF_PL / 2) + Xoffset);
setProperty(box_initial, _y , (Height_OF_PL / 2) + Yoffset);
setProperty(progressmessage, _x , ((Width_OF_PL / 2) - (getProperty(progressmessage, _width) / 2)) + Xoffset);
setProperty(progressmessage, _y , ((Height_OF_PL / 2) + 15) + Yoffset);
if (showProgress == false) {
setProperty(box_inside, _visible , false);
setProperty(box_outside, _visible , false);
}
myColor = new Color(backgroundrect);
myColor.setRGB(BackgroundColor);
myColor = new Color(box_inside);
myColor.setRGB(BarColor);
myColor = new Color(box_outside);
myColor.setRGB(BarBorderColor);
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) {
gotoAndStop (4);
} else {
counter = 0;
gotoAndPlay (1);
}
} else {
gotoAndPlay (1);
}
Frame 2
gotoAndPlay (1);
Symbol 9 MovieClip Frame 20
stop();