Buenas, 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;
}
 
El primer trace, lo hace correctamente, es decir que me tracea
_level0.hoja2, pero a partir de ahi, la siguiente aparece undefined,
cuando deberia ser _level0.hoja3.
Alguien ve el problema? Porque yo no.
En el primer frame tengo puesto:
 
prof=10;
i=2;
_root.attachMovie("hoja","hoja"+i,prof);
_root["hoja"+i]._x=94;
_root["hoja"+i]._y=57;
 
Saludos desde BCN.
 
 
*********************************************
David Serrano
TVC Multimedia (Dept. Internet)
Telf.: 935672550
BARCELONA
*********************************************
 
<!-------------------------------
Lista ASNativos:
subscripciones/desubscripciones
http://www.sidedev.net/asnativos
-------------------------------->

Responder a