..:: MX Studio Fóruns ::..: duplicateMovieClip funciona para Flash 5 e não para 8 - ..:: MX Studio Fóruns ::..

Jump to content

Publicidade




ATENÇÃO

Para evitar posts desnecessários e que não influam para o andamento e desenvolvimento do fórum, clique aqui e leia todas as regras.
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

duplicateMovieClip funciona para Flash 5 e não para 8 Preciso Urgente de uma Ajuda

#1 User is offline   Rogério Brasil 

  • Group: Membros
  • Posts: 1
  • Joined: 01-February 08

Posted 01 February 2008 - 09:44 AM

Estou tentando fazer um menu elastico, porem ele funciona habilitado no flash 5 e não funciona no flash 8.

Object.prototype.scaleto = function (n) {
xs = (xs*0.8) + (n-this._xscale)/10;
this._xscale = _xscale + xs;
this._yscale = this._xscale;
}
Object.prototype.moveto = function (newx) {
xsp = (xsp*0.8) + (newx-this._x)/10;
this._x = _x + xsp;
}
function verifica (clip) {
clip.x = clip._x;
}
stop ();

//Mail animi:
MovieClip.prototype.minhaScale = function (target,accel,convert) {
xs = xs*accel+(target-this._xscale)*convert
ys = ys*accel+(target-this._yscale)*convert
this._xscale += xs
this._yscale += ys

}
do{
bola.duplicateMovieClip("bola"add h,h)
this["bola"add h]._x = bola._x + 15*h
this["bola"add h]._alpha = bola._alpha - 12*h
h = h+1

}while (h < 8)




Alguem pode me ajudar

0

#2 User is offline   ubi_rj 

  • Group: Moderador Global
  • Posts: 2920
  • Joined: 29-June 07

Posted 02 February 2008 - 09:23 AM

Topico movido para a área correta: Para dúvisa utilize o fórum principal.

Troque o seu "add" por "+"

Troque aquela parte por essa e veja se melhora ok ?

CÓDIGO
do{
       bola.duplicateMovieClip("bola"+ h,h)
       this["bola"+ h]._x = bola._x + 15*h
       this["bola"+ h]._alpha = bola._alpha - 12*h
       h = h+1


Abraço

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic



Publicidade




1 User(s) are reading this topic
0 membro(s), 1 visitante(s) e 0 membros anônimo(s)