Combined Code
frame 1 {
stop();
}
movieClip 3 {
}
movieClip 5 {
}
movieClip 6 {
}
movieClip 8 {
}
movieClip 9 {
}
movieClip 10 {
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();
}
}
frame 2 {
myColor = new Color(preloader.bar.barcolor);
myColor.setRGB(barcolor);
stop();
}
instance preloader of movieClip 9 {
onClipEvent (load) {
_root.stop();
this.createTextField('textbox2', 1, -119.3, -39, 238.7, 78.09999999999999);
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();
}
}
}
}
}
instance of movieClip 10 {
onClipEvent (initialize) {
txtfont = 'I suck at golf';
txtcolor = 16711680;
txtbold = false;
txtitalic = false;
txtsize = 20;
barcolor = 16711680;
txtstyle = 'Percent';
}
}
movieClip 24 {
}
movieClip 40 {
}
movieClip 42 {
}
movieClip 139 {
}
movieClip 144 {
}
movieClip 151 {
}
button 215 {
on (release) {
gotoAndPlay(1);
}
}
movieClip 221 {
}
movieClip 267 {
}
movieClip 269 {
}
movieClip 271 {
}
movieClip 275 {
}
movieClip 278 {
}
movieClip 352 {
}
movieClip 353 {
}
movieClip 356 {
}
movieClip 445 {
}
movieClip 453 {
}
movieClip 454 {
}
movieClip 538 {
}
movieClip 539 {
}
movieClip 551 {
}
movieClip 554 {
}
movieClip 561 {
}
movieClip 562 {
}
movieClip 565 {
}
movieClip 647 {
}
movieClip 655 {
}
movieClip 684 {
}
movieClip 690 {
}
movieClip 691 {
}
movieClip 701 {
}
movieClip 783 {
}
button 796 {
on (release) {
gotoAndPlay(1);
}
}
movieClip 808 {
}
movieClip 809 {
}
movieClip 918 {
}
movieClip 921 {
}
movieClip 923 {
}
movieClip 925 {
}
movieClip 934 {
}
movieClip 938 {
}
movieClip 943 {
}
movieClip 944 {
}
movieClip 946 {
}
movieClip 948 {
}
movieClip 949 {
}
button 984 {
on (release) {
gotoAndPlay(2);
}
}
frame 7948 {
stop();
}