Código :
onEnterFrame = function(){
if(_currentframe == 5){
enmascarar(c5)
}Supongo que sera haciendo un bucle, pero no me sale.
El codigo del ejercicio de la derecha es este:
Código :
function enmascarar(clip) {
clip.onEnterFrame = function() {
this._xscale += (100-this._xscale)/5;
this._yscale += (100-this._yscale)/5;
if (Math.round(this._yscale) == 100) {
delete this.onEnterFrame;
}
};
}
function ocultar() {
for (i=1; i<=24; i++) {
estrellas = eval("c"+i);
estrellas._xscale = 0;
estrellas._yscale = 0;
}
_parent.foto.setMask(this);
}
//En el fotograma 2 pondria solo enmascarar(c2) y asi sucesivamente...
enmascarar(c1);
ocultar();Alguien me echa una mano? Muchas gracias y perdon si me enrolle mucho...
