Ver Mensaje Individual
  #1 (permalink)  
Antiguo 29/05/2011, 19:01
Avatar de Asus2800
Asus2800
 
Fecha de Ingreso: mayo-2011
Mensajes: 39
Antigüedad: 13 años
Puntos: 1
Pregunta Preloader AS3

Buenas gente como andan?. Tengo el siguiente problemita

TypeError: Error #1009: No se puede acceder a una propiedad o a un método de una referencia a un objeto nulo.
at index_fla::MainTimeline/frame1()

[URL="http://imageshack.us/f/838/duda2.jpg/"]http://imageshack.us/f/838/duda2.jpg/[/URL] Foto de linea de tiempo



Este el codigo ...
Código:
stop();

addEventListener(Event.ENTER_FRAME, lodeando);

function lodeando(event:Event):void
{
	var bytesTotales = stage.loaderInfo.bytesTotal;
	var bytesCargados = stage.loaderInfo.bytesLoaded;
	var porcentaje = Math.round(bytesCargados * 100 / bytesTotales);
	
	textoPorcentaje.text = porcentaje + "% Cargados";
	cargaAnimada_mc.gotoAndStop(porcentaje);
	
	if (bytesCargados == bytesTotales)
	{
		removeEventListener(Event.ENTER_FRAME, lodeando);
		gotoAndStop(2);
		textoPorcentaje.text = "";
		removeChild(textoPorcentaje);
		removeChild(cargaAnimada_mc);
	}
}
... (Sigue el codigo de la web)
Ya no se que hacer porque el movieclip tiene su nombre cargaAnimada_mc y el cuadro de texto dinamico se llama textoPorcentaje...

Como lo soluciono????? Alguna sugerencia... porque la web terminada va a pesar unos cuantos KB y me gustaria q tenga su cargador inicial...

Saludos gente!...
__________________
****EN LA PRACTICA Y EL ERROR NACE LA PERFECCION****