<code>
on (press) {
prof2=prof-1;
j = i+1;
//attachas hoja+i ?
_root.attachMovie("hoja"+i, "hoja"+j,prof2);
_root["hoja"+j]._x = 94;
_root["hoja"+j]._y = 57;
//y que trazas ahora, el clip anterior?
trace(_root["hoja"+i]);
//y por que vuelves a cambiarlo de profundidad y lo accionas?
_root["hoja"+i].swapDepths(prof);
_root["hoja"+i].gotoAndPlay(1);
i=i+1;
}
</code>
hoja+j es el clip nuevo.
hoja+i es el clip de la libreria, pero, cuantos clips tienes, por que segun tu codigo tendras que tener hoja,hoja0,hoja1,hoja2,hoja3...asi hasta infinito?
Por otra parte, cuando le hayas clickeado 10 veces te empezara a poner un swapDephts negativo, ademas que todos los clips acaban en un depht 10, por que?


Mejor replanteate lo que quieres hacer,por ejemplo si es attachar el clip hoja, poniendolo encima del anterior:
<code>
on (press) {
_root.attachMovie("hoja", "hoja"+j,j);
_root["hoja"+j]._x = 94;
_root["hoja"+j]._y = 57;
//trace(_root["hoja"+j]);
_root["hoja"+j].gotoAndPlay(1);
j++;
}
</code>


_________________________________________________________________
Dale vida a tu correo. Con MSN 8 podr�s incluir fotos y textos increibles. http://join.msn.com/?pgmarket=es-es&XAPID=517&DI=1055


<!-------------------------------
Lista ASNativos:
subscripciones/desubscripciones
http://www.sidedev.net/asnativos
-------------------------------->

Responder a