Instance of Symbol 12 MovieClip in Frame 1
//component parameters
onClipEvent (construct) {
txtfont = "Verdana";
txtcolor = 0;
txtbold = true;
txtitalic = true;
txtsize = 12;
barcolor = 13434624 /* 0xCCFF00 */;
txtstyle = "Kilobytes";
}
Frame 908
gotoAndPlay (856);
Symbol 12 MovieClip Frame 1
myformat = new textformat();
myformat.font = txtfont;
myformat.color = txtcolor;
myformat.bold = txtbold;
myformat.italic = txtitalic;
myformat.size = txtsize;
myformat.align = "center";
preloader._visible = false;
if (preloader.percentbytes >= 100) {
_root.play();
}
Symbol 12 MovieClip Frame 2
myColor = new Color(preloader.bar.barcolor);
myColor.setRGB(barcolor);
stop();
Instance of Symbol 11 MovieClip "preloader" in Symbol 12 MovieClip Frame 2
onClipEvent (load) {
_root.stop();
this.createTextField("textbox2", 1, -119.3, -39, 238.7, 78.1);
textbox2.variable = "txtdisplay";
textbox2.selectable = false;
}
onClipEvent (enterFrame) {
currentbytes = int(_root.getBytesLoaded() / 1000);
totalbytes = int(_root.getBytesTotal() / 1000);
percentbytes = int((currentbytes / totalbytes) * 100);
if (_parent.txtstyle == "Kilobytes") {
textbox2.text = ((("Loading " + currentbytes) + " Kb of ") + totalbytes) + " Kb";
textbox2.setTextFormat(_parent.myformat);
bar._xscale = percentbytes;
if (percentbytes >= 100) {
textbox2.text = "Loading Complete";
textbox2.setTextFormat(_parent.myformat);
_root.play();
}
}
if (_parent.txtstyle == "Percent") {
textbox2.text = ("Loading " + percentbytes) + "% ";
textbox2.setTextFormat(_parent.myformat);
bar._xscale = percentbytes;
if (percentbytes >= 100) {
textbox2.text = "Loading Complete";
textbox2.setTextFormat(_parent.myformat);
_root.play();
}
}
if (_parent.txtstyle == "Both") {
textbox2.text = ((("Loading " + percentbytes) + "% of ") + totalbytes) + " Kb";
textbox2.setTextFormat(_parent.myformat);
bar._xscale = percentbytes;
if (percentbytes >= 100) {
textbox2.text = "Loading Complete";
textbox2.setTextFormat(_parent.myformat);
_root.play();
}
}
}
Symbol 22 Button
on (press) {
getURL ("http://www.toon53.com/");
}
Symbol 29 Button
on (press) {
gotoAndPlay ("play");
}