home *** CD-ROM | disk | FTP | other *** search
- _root.stop();
- Stage.scaleMode = "noScale";
- fscommand("trapallkeys",true);
- Stage.showMenu = false;
- this.sg = [];
- for(var i in this)
- {
- if(this[i]._totalframes == 1)
- {
- this.sg.push(this[i]);
- this[i]._alpha = 20;
- }
- }
- this._tm = getTimer();
- this.onEnterFrame = function()
- {
- var ld = _root.getBytesLoaded();
- var tt = _root.getBytesTotal();
- this.bytes = ld;
- this.procent = tt <= 0 ? 0 : 100 * ld / tt;
- this.time = (getTimer() - this._tm) / 1000;
- this.transfer = this.bytes / this.time;
- var pr = Math.floor(this.procent);
- var i = 100;
- while(i > 100 - pr)
- {
- this.sg[i]._alpha = 40;
- i--;
- }
- if(pr >= 100)
- {
- this.onEnterFrame = null;
- _root.play();
- }
- };
-