Hola, tengo un problema con un script. El problema es el siguiente:
on (press) {
        prof2=prof-1;
        j = i+1;
        _root.attachMovie("hoja"+i, "hoja"+j,prof2);
        _root["hoja"+j]._x = 94;
        _root["hoja"+j]._y = 57;
        trace(_root["hoja"+i]);
        _root["hoja"+i].swapDepths(prof);
        _root["hoja"+i].gotoAndPlay(1);
        i=i+1;
}
En el primer trace, sale correctamente trace=_level0.hoja2, pero a 
partir de ahi, me da undefined.
Alguna idea del posible error?
Pongo el inicio del script en el frame 1:

primera=true;
prof=10;
i=2;
_root.attachMovie("hoja","hoja"+i,prof);
_root["hoja"+i]._x=94;
_root["hoja"+i]._y=57;

Gracias, y un saludo.


Responder a