hola juanma, yo tambi�n estoy probando tu ejemplo y no consigo nada, ser�a posible una explicaci�n m�s "para torpes"
muchas gracias saludos ----- Mensaje Original ----- De: <[EMAIL PROTECTED]> Fecha: Jueves, Noviembre 13, 2003 1:11 pm Asunto: RE: [ASNativos] [O.T] Alguna animcaci�n sencilla y vistosa a partir de imagenes > primero creas un Movieclip con la foto y lo instancias en el > escenario,luego creas una animaci�n , la guardas y la vinculas > desde la biblioteca . > Luego instancias las clase pasandole los parametros M=new > Mascara(50,50,6,6,nombreclipfoto,"nombrevinculobiblioteca",50) y > tiene que > funcionar. > > > > > > he intentando poner el ejmplo en practica, y no funciona. > > la foto tiene que estar en el escenario? o como va > > > > -----Mensaje original----- > > De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > Enviado el: jueves, 13 de noviembre de 2003 11:51 > > Para: [EMAIL PROTECTED] > > Asunto: Re: [ASNativos] [O.T] Alguna animcaci�n sencilla y > vistosa a > > partir de imagenes > > > > > > el uso de las mascaras din�micas da mucho juego.Aqui tienes una > clase> que presenta fotograf�as (MovieClips) en forma de cuadricula > > por una mascara que realiza un clip attacheado. a partir de ah� las > > posibilidades son infinitas.El efecto lo puedes ver en > > http://www.apatika.com/clasemascara.html > > > > <code> > > /*CLASE MASCARA > > # 30-09-2003 > > # Clase que crea una mascara en forma de cuadricula > > # Par�metros > > # x,y=coordenadas de la mascara > > # Filas y columnas de la cuadricula > > # foto=Movieclip para enmascarar > > # movie=Movieclip que se atachea y crea la mascara > > #velocidad=velocidad de creaci�n > > # uso > > # M=new Mascara(100,100,4,4,foto,"cuadro",velocidad); > > > > :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::*/ > > function Mascara(x,y,filas,columnas,foto,movie,velocidad){ > > this.movie=movie; > > this.filas=filas; > > this.columnas=columnas; > > this.clip=_level0.createEmptyMovieClip("holder",1000); > > this.clip._x=x; > > this.clip._y=y; > > this.foto=foto; > > this.velocidad=velocidad; > > //mascara > > this.foto.setMask(this.clip); > > this.f=0; > > this.llamada(); > > } > > //m�todo que realiza las llamadas > > Mascara.prototype.llamada=function(){ > > this._int=setInterval(this,"__cuadricula",this.velocidad); > > } > > //m�todo que crea una cuadricula con el clip atacheado > > Mascara.prototype.__cuadricula=function(){ > > this.profundidad++; > > this.c++ > > if(this.f<this.filas){ > > if(this.c<this.columnas){ > > > this.clip.attachMovie (this.movie,"c"+this.f+"_"+this.c,this.profundidad);> this.clip ["c"+this.f+"_"+this.c]._x=this.clip["c"+this.f+"_"+(this.c- 1)]._x+this.clip["c"+this.f+"_"+(this.c-1)]._width+.5; > > this.clip["c"+this.f+"_"+this.c]._y=this.clip["c"+(this.f- > 1)+"_"+this.c]._y+this.clip["c"+(this.f-1)+"_"+this.c]._height+1; > > }else{ > > this.f++; > > this.c=0; > > } > > }else{ > > clearInterval(this._int); > > this.f=0; > > this.c=0; > > this.profundidad=0; > > } > > } > > > > </code> > > > > > > > > > > > > > > > >> Disculpen por el Off Topic, pero ando algo perdido a la hora de > >> realizar alguna animaci�n vistosa y sencilla a partir de > imagenes, es > >> decir, hacer uso de mascaras extra�as de esas jeje, por ejemplo las > >> hechas por Avantine en sus webs, www.ultimosproyectos.com > >> > >> Me gustaria saber si existe alguna t�cnica o algun patr�n a la > hora de > >> dise�ar animaciones, si es as� ... alguien me podria orientar un > >> poquito?� > >> > >> Muchisimas gracias :-) > >> > >> Iv�n Rodriguez Espada > >> _________________________ > >> ALAPLAYA.COM > >> http://www.alaplaya.com > >> [EMAIL PROTECTED] > >> <!------------------------------- > >> Lista ASNativos: > >> subscripciones/desubscripciones > >> http://www.sidedev.ne > >> --------------------------------> > > > > > > > > <!------------------------------- > > Lista ASNativos: > > subscripciones/desubscripciones > > http://www.sidedev.ne > > --------------------------------> > > <!------------------------------- > > Lista ASNativos: > > subscripciones/desubscripciones > > http://www.sidedev.ne > > --------------------------------> > > > > <!------------------------------- > Lista ASNativos: > subscripciones/desubscripciones > http://www.sidedev.ne > --------------------------------> > <!------------------------------- Lista ASNativos: subscripciones/desubscripciones http://www.sidedev.net/asnativos -------------------------------->
