Efeito de vibração no Flash CS5 A.S 2.0
Página 1 de 1
Efeito de vibração no Flash CS5 A.S 2.0
Efeito de vibração no Flash CS5 A.S 2.0
Abra o seu Flash.
Crie uma bola ou outro objeto.
Transforme ele em um Movie Clip.
de um nome a ele(de o nome de objeto na instancia).
e agora aplique esse A.S no Movie Clip:
onClipEvent (load) {
//tamanho do SWF(movie)
height = 300;
width = 300;
//faz tudo ficar aleatirio
this._x = Math.round(Math.random()*width);
this._y = Math.round(Math.random()*height);
var temp = this._alpha=Math.random()*130;
this._xscale = this._yscale=temp;
//de a posiçao
cx = this._x;
cy = this._y;
}
onClipEvent (enterFrame) {
this._x = cx+(1+Math.random()*9);
this._y = cy+(Math.random()*3);
e depois adicione esse A.S no 1º frame:
for (var i = 0; i<15; i++) {
objeto.duplicateMovieClip(i, i);
Por : guizin32
Abra o seu Flash.
Crie uma bola ou outro objeto.
Transforme ele em um Movie Clip.
de um nome a ele(de o nome de objeto na instancia).
e agora aplique esse A.S no Movie Clip:
onClipEvent (load) {
//tamanho do SWF(movie)
height = 300;
width = 300;
//faz tudo ficar aleatirio
this._x = Math.round(Math.random()*width);
this._y = Math.round(Math.random()*height);
var temp = this._alpha=Math.random()*130;
this._xscale = this._yscale=temp;
//de a posiçao
cx = this._x;
cy = this._y;
}
onClipEvent (enterFrame) {
this._x = cx+(1+Math.random()*9);
this._y = cy+(Math.random()*3);
e depois adicione esse A.S no 1º frame:
for (var i = 0; i<15; i++) {
objeto.duplicateMovieClip(i, i);
Por : guizin32
Página 1 de 1
Permissões neste sub-fórum
Não podes responder a tópicos
|
|