Frame 1
stop();
Instance of Symbol 5 MovieClip [Loader] in Frame 1
//component parameters
onClipEvent (initialize) {
SlideWidth = 100;
SlideHeight = 10;
scolor = 10066329 /* 0x999999 */;
bcolor = 3355443 /* 0x333333 */;
fname = "Times New Roman";
fsize = 10;
}
Frame 2
stop();
Frame 21
stop();
Symbol 5 MovieClip [Loader] Frame 1
#initclip 1
function LoaderClass() {
this.slideColor = new Color(this.slide);
this.bordColor = new Color(this.bord);
this.update();
}
LoaderClass.prototype = new MovieClip();
LoaderClass.prototype.update = function () {
this.slideColor.setRGB(this.scolor);
this.bordColor.setRGB(this.bcolor);
this.bord._width = this.SlideWidth + 4;
this.slide._width = this.SlideWidth;
this.bord._height = this.SlideHeight + 4;
this.slide._height = this.SlideHeight;
this.createTextField("mytext", 1, this.bord._x, this.bord._y, 300, 40);
delete this.mtextFormat;
this.mtextFormat = new TextFormat(this);
this.mTextFormat.font = this.fname;
this.mTextFormat.color = this.bcolor;
this.mTextFormat.size = this.fsize;
this.mytext.text = "";
this.mytext.setTextFormat(this.mtextFormat);
};
LoaderClass.prototype.setSlideWidth = function (b) {
this.SlideWidth = b;
this.update();
};
LoaderClass.prototype.getSlideWidth = function () {
return(this.SlideWidth);
};
LoaderClass.prototype.setSlideHeight = function (h) {
this.SlideHeight = h;
this.update();
};
LoaderClass.prototype.getSlideHeight = function () {
return(this.SlideHeight);
};
LoaderClass.prototype.setTintColor = function (c) {
this.tcolor = c;
this.update();
};
LoaderClass.prototype.turnOnTint = function () {
this.applyTint = true;
this.update();
};
Object.registerClass("Loader", LoaderClass);
#endinitclip
Instance of Symbol 2 MovieClip "slide" in Symbol 5 MovieClip [Loader] Frame 1
onClipEvent (load) {
_root.stop();
this.topScale = this._width;
this._xscale = 0;
ft = int(_root.getBytesTotal() / 1024);
}
onClipEvent (enterFrame) {
fl = int(_root.getBytesLoaded() / 1024);
this._xscale = (fl / ft) * this.topScale;
_parent.mytext.text = ((("LOADING " + fl) + " KB OF ") + ft) + " KB";
_parent.mytext.setTextFormat(_parent.mtextFormat);
if (fl == ft) {
_root.gotoAndPlay(_currentframe + 1);
play();
}
}
Symbol 9 Button
on (release) {
gotoAndPlay (3);
}