Frame 1
lungime_preloader = 510;
inaltime_preloader = 40;
preloader_x = 20;
preloader_y = 120;
var text_format = new TextFormat();
text_format.font = "Tahoma";
text_format.size = 11;
text_format.color = 4473924 /* 0x444444 */;
text_format.bold = true;
text_format.align = "center";
_root.createEmptyMovieClip("bg", 1);
with (_root.bg) {
_x = preloader_x;
_y = preloader_y;
lineStyle(0.1, 16711680, 60);
beginFill(16776960, 40);
moveTo(5, 0);
lineTo(lungime_preloader - 5, 0);
lineTo(lungime_preloader - 5, 40);
lineTo(5, 40);
lineTo(5, 0);
endFill();
}
_root.createEmptyMovieClip("loader", 2);
with (_root.loader) {
_x = (Math.ceil(_root.bg._width / 2) - 46) + _root.bg._x;
_y = _root.bg._y + 10;
lineStyle(0.1, 3355443, 100);
moveTo(0, 0);
lineTo(102, 0);
lineTo(102, 10);
lineTo(0, 10);
lineTo(0, 0);
}
_root.createEmptyMovieClip("bar", 3);
with (_root.bar) {
_x = _root.loader._x + 1.5;
_y = _root.loader._y + 1.5;
lineStyle(0.1, 65535, 60);
}
_root.createTextField("proc", 4, _root.loader._x, _root.loader._y + 10, 102, 20);
_root.createEmptyMovieClip("motor", -1);
_root.motor.onEnterFrame = function () {
_root.total = _root.getBytesTotal();
_root.incarcat = _root.getBytesLoaded();
_root.procent = Math.floor((_root.incarcat * 100) / _root.total);
if (procent < 100) {
with (_root.bar) {
clear();
beginFill(16711680, 40);
moveTo(0, 0);
lineTo(_root.procent, 0);
lineTo(_root.procent, 8);
lineTo(0, 8);
lineTo(0, 0);
endFill();
_root.proc.text = _root.procent;
_root.proc.setTextFormat(text_format);
}
} else {
_root.bg.removeMovieClip();
_root.loader.removeMovieClip();
_root.bar.removeMovieClip();
_root.proc.removeTextField();
gotoAndPlay (2);
}
};
stop();
Frame 34
gotoAndPlay (2);