Ver Mensaje Individual
  #1 (permalink)  
Antiguo 25/06/2009, 10:26
indito
 
Fecha de Ingreso: junio-2009
Mensajes: 2
Antigüedad: 14 años, 10 meses
Puntos: 0
Modo debug en flash? Problema ejecutando funciones

Tengo un problema que consiste en que creo que el flujo de la pelicula no entra a una funcion. Hay algun modo debug para action script? (Estoy usando Adobe Flash CS4)


De todos modos dejo la funcion que llama a la siguiente funcion, por si hay algo mal (no me da errores en la publicacion)


En esta funcion entra sin problemas.
function cargaXML(loaded)
{
if (loaded)
{
xmlNode = this.firstChild;
image = [];
description = [];
thumbnails = [];
total = xmlNode.childNodes.length;
i = 0;
while (i < total)
{
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
thumbnails[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
thumbnails_fn(i); /* Esta es la llamada a la funcion que quiero ejecutar y no funciona */
++i;
}
firstImage();
return;
}
content = "file not loaded!";
}


Esta es la funcion que no funciona, creo que es porque no llega a entrar, pero por si acaso la copio por si hay algo mal hecho.


function thumbnails_fn(k) {
thumbnail_mc.createEmptyMovieClip("t"+k,thumbnail_ mc.getNextHighestDepth());
tlistener = new Object();
tlistener.onLoadInit = function (target_mc)
{
target_mc._x = hit_left._x + (target_mc._width + 5) * k;
target_mc.pictureValue = k;
target_mc.onRelease = function ()
{
p = this.pictureValue - 1;
nextImage();
}
;
target_mc.onRollOver = function ()
{
this._alpha = 50;
thumbNailScroller();
}
;
target_mc.onRollOut = function ()
{
this._alpha = 100;
}
;
}
;
image_mcl = new MovieClipLoader();
image_mcl.addListener(tlistener);
image_mcl.loadClip(thumbnails[k],"thumbnail_mc.t"+k);
}


Muchas gracias por vuestra ayuda.