Ver Mensaje Individual
  #8 (permalink)  
Antiguo 01/02/2005, 20:49
Avatar de S I D I U S
S I D I U S
 
Fecha de Ingreso: noviembre-2002
Ubicación: D.F.
Mensajes: 290
Antigüedad: 21 años, 5 meses
Puntos: 0
Cita:
Iniciado por goc00
Saludos...

S_I_D_I_U_S estás por ahí??!!, parece que eres el único que entiende mi idea y posible solución !
jajaja......


voy a ver que puedo hacer por ti!


mmm......
Código:
MovieClip.prototype.loadjpg = function(clip, eljpg) {
	var mcCarga = this.createEmptyMovieClip("mcCarga", 1);
	mcCarga.loadMovie(eljpg);
	this.onEnterFrame = function() {
		mcCarga._visible = false;
		var tLoaded, tBytes;
		tLoaded = mcCarga.getBytesLoaded();
		tBytes = mcCarga.getBytesTotal();
		var porcentaje = int(tLoaded*100/tBytes);
		info_txt.text = porcentaje+" % of "+eljpg+" loaded";
		// Make sure stream has started
		if (isNaN(tBytes) || tBytes<4) {
			return;
		}
		
		if (tLoaded/tBytes>=1) {
			clip.loadMovie(eljpg);
			clip._alpha = 0;
			var i = 0;
			if (clip.getBytesLoaded()>=clip.getBytesTotal()) {
				_root.onEnterFrame = function() {
					if (i<100) {
						clip._alpha = i;
						trace(i);
						i++;
					}
				};
			}
			delete this.onEnterFrame;
		}
	};

};
no esta depurado, pero funcina!:


solo tienes que publicar tu movie con 50fps para que se vea decente!
__________________
http://www.execomnet.com

Última edición por S I D I U S; 01/02/2005 a las 21:04