tengo 19 movies y 19 botones. y queria asignarle mediante un for las acciones del boton.
la accion que debe realizar es que el movieclip avance en su propia linea de tiempo.
aca esta el script que arme yo.
function encima() {
this["punto"+i].gotoAndPlay("over");
}
function afuera() {
this["punto"+i].gotoAndStop(10);
}
for (i=1; i<20; i++) {
this["b"+i].onRollOver = encima;
this["b"+i].onRollOut = afuera;
}
o esta pero tampoco funciona...
for (i=1; i<20; i++) {
this["b"+i].onRollOver = function() {
this["punto"+i].gotoAndPlay("over");
};
this["b"+i].onRollOut = function() {
this["punto"+i].gotoAndStop(10);
};
espero sepan ayudarme y gracias![/code]
