Comunidad de diseño web y desarrollo en internet online

Error 2044 con un código pequeño.

Citar            
MensajeEscrito el 20 Feb 2010 04:24 pm
Hola a todos, estoy haciendo una pequeña galería, pero me está lanzando este error:

Error #2044: IOErrorEvent no controlado: text=Error #2124: El archivo cargado es de tipo desconocido.

Código ActionScript :

var fotoRequest:URLRequest = new URLRequest()
var fotosLoader:Loader = new Loader();

fotosLoader.addEventListener(MouseEvent.CLICK, unLoadFoto);
function unLoadFoto(evt:MouseEvent):void

{
   fotosLoader.unload();
}

function createLoader()
{
   fotosLoader.x = mouseX; 
   fotosLoader.y = mouseY;
   fotosLoader.scaleX = 0; 
   fotosLoader.scaleY = 0;
   TweenMax.to (fotosLoader, 3, {x: -520, y:-300, scaleX:1, scaleY:1, ease:Expo.easeOut});
}

//Links de Galeria

photo_01_mc.addEventListener(MouseEvent.CLICK, load01);
function load01(evt:MouseEvent):void
{
   
   createLoader();
   var fotoRequest:URLRequest = new URLRequest("fotos/full/photo_01.png");
   fotosLoader.load(fotoRequest);
   fotosLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loaderCompleted);
   
   function loaderCompleted(evt:Event):void
   {
      
      addChild(fotosLoader);
      fotosLoader.contentLoaderInfo.removeEventListener(Event.COMPLETE, loaderCompleted);
      fotoRequest = null;
   }

}

//*************               

photo_02_mc.addEventListener(MouseEvent.CLICK, load02);
function load02(evt:MouseEvent):void
{
   
   createLoader();
   
   
   var fotoRequest:URLRequest = new URLRequest("fotos/full/photo_02.png");
   fotosLoader.load(fotoRequest);
   fotosLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loaderCompleted);
   
   function loaderCompleted(evt:Event):void
   {
      
      addChild(fotosLoader);
      fotosLoader.contentLoaderInfo.removeEventListener(Event.COMPLETE, loaderCompleted);
      fotoRequest = null;
   }

}




¿A qué razón se pueda deber ese error?, de hecho, si alguien sabe a que se puede deber ese error estaría agradecido de cualquier consejo. Gracias por su tiempo y ayuda.

Por djburner

19 de clabLevel



 

firefox
Citar            
MensajeEscrito el 22 Feb 2010 03:59 pm
Parece que no le gusta fotos/full/photo_01.png o fotos/full/photo_02.png ... prueba volviendo a crearlas o cambiándolas por otras

Jorge

Por solisarg

BOFH

13669 de clabLevel

4 tutoriales
5 articulos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Argentina

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.