Ver Mensaje Individual
  #5 (permalink)  
Antiguo 17/08/2004, 21:46
Avatar de Prince
Prince
 
Fecha de Ingreso: mayo-2003
Ubicación: DF
Mensajes: 574
Antigüedad: 20 años, 11 meses
Puntos: 1
Ah, claro que sí...

Código:
stop();
//-----------------CuadroGris de Fondo Loader----------------------------------------------
var GrayBox:Function = function () {
	this.createEmptyMovieClip("box_mc", this.getNextHighestDepth());
	box_mc._x = Stage.width/2-60;
	box_mc._y = Stage.height/2-20;
	box_mc.ancho = new Number(15);
	box_mc.posicion = {x1:0, y1:0, x2:120, y2:0, x3:120, y3:box_mc.ancho, x4:0, y4:box_mc.ancho};
	with (box_mc) {
		lineStyle(0, 0x000000, 0);
		moveTo(box_mc.posicion.x1, box_mc.posicion.y1);
		beginFill(0x666666, 100);
		lineTo(box_mc.posicion.x2, box_mc.posicion.y2);
		lineTo(box_mc.posicion.x3, box_mc.posicion.y3);
		lineTo(box_mc.posicion.x4, box_mc.posicion.y4);
		lineTo(box_mc.posicion.x1, box_mc.posicion.y1);
		endFill();
	}
	ProgBar();
};
//-----------------------------------------------------------------------------------------
//-----------------------------Checar Progreso---------------------------------------------
var Checar:Function = function () {
	progBar_mc._xscale = 0;
	progBar_mc.loaded = new Number();
	progBar_mc.onEnterFrame = function() {
		if (this._parent.getBytesLoaded() == this._parent.getBytesTotal()) {
			this._parent.box_mc.clear();
			this._parent.progBar_mc.clear();
			this._parent.play();
			this._parent.load_txt._visible = false;
			delete this.onEnterFrame;
		} else {
			this.loaded = Math.ceil(this._parent.getBytesLoaded()/this._parent.getBytesTotal()*100);
			this._xscale = this.loaded;
			this._parent.load_txt.text = "Loading . . . "+Math.ceil(this._parent.getBytesTotal()/1024)+" Kb";
			this._parent.load_txt.autoSize = true;
		}
	};
};
//-----------------------------------------------------------------------------------------
//---------------ProgressBar---------------------------------------------------------------
var ProgBar:Function = function () {
	this.createEmptyMovieClip("progBar_mc", this.getNextHighestDepth());
	progBar_mc._x = box_mc._x+2;
	progBar_mc._y = box_mc._y+2;
	progBar_mc.ancho = new Number(box_mc.ancho-4);
	with (progBar_mc) {
		lineStyle(0, 0xFFFFFF, 0);
		moveTo(0, 0);
		beginFill(0xCCCCCC, 100);
		lineTo(box_mc.posicion.x2-4, box_mc.posicion.y2);
		lineTo(box_mc.posicion.x3-4, progBar_mc.ancho);
		lineTo(box_mc.posicion.x4, progBar_mc.ancho);
		lineTo(0, 0);
		endFill();
	}
	this.createTextField("load_txt",this.getNextHighestDepth(),box_mc._x, box_mc._y + box_mc._height,0,0);
	var formato:TextFormat = new TextFormat();
	with(formato){
		font = "Verdana";
		size = 10;
		color = 0x999999;
		bold = true;
	}
	load_txt.setNewTextFormat(formato);
	Checar();
};
//----------------------------------------------------------------------------------------
GrayBox();
Ésto lo hice así.
Este código está en el primer frame de mi película, la cual solamente tiene dos frames.
En el segundo frame está otro código con la página.
La película sólo tiene una escena.

GRACIAS.
__________________
- P R I N C E -