Comunidad de diseño web y desarrollo en internet online

cambio de Flash 6 a Flash 8

Citar            
MensajeEscrito el 23 Oct 2008 04:52 pm
:) :) :) :) HOLA :) :) :) :) :)

como puedo pasar este codigo que solo sirve en Flash 6 a Flash 8

Código :

for (n=8; n<50; n++) {
   duplicateMovieClip("bluebit", "bluebit" add n, n);
   setProperty("bluebit" add n, _rotation, random(360));
   setProperty("bluebit" add n, _alpha, random(30)+80);
   setProperty("bluebit" add n, _xscale, 50+Number(random(60)));
   setProperty("bluebit" add n, _yscale, 50+Number(random(60)));
   tellTarget ("bluebit" add n) {
      gotoAndPlay(random(5));
   }
}


donde me aparece un ERROR como este

    **Error** Símbolo=firework1, capa=Layer 1, fotograma=1:Línea 2: Se espera ')' o ','
    duplicateMovieClip("bluebit", "bluebit" add n, n);

    **Error** Símbolo=firework1, capa=Layer 1, fotograma=1:Línea 3: Se espera ')' o ','
    setProperty("bluebit" add n, _rotation, random(360));

    **Error** Símbolo=spinner, capa=Layer 1, fotograma=1:Línea 2: Se espera ')' o ','
    duplicateMovieClip("spinner", "spinner" add n, n);

    **Error** Símbolo=spinner, capa=Layer 1, fotograma=1:Línea 3: Se espera ')' o ','
    setProperty("spinner" add n, _rotation, random(360));

    **Error** Símbolo=crack_particle_holder, capa=Layer 1, fotograma=1:Línea 2: Se espera ')' o ','
    duplicateMovieClip("bluebit", "bluebit" add n, n);

    **Error** Símbolo=crack_particle_holder, capa=Layer 1, fotograma=1:Línea 3: Se espera ')' o ','
    setProperty("bluebit" add n, _rotation, random(360));

    Total de errores de ActionScript: 6 Errores comunicados: 6



GRACIAS :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops:

Por lorenaFLASH

45 de clabLevel



 

firefox
Citar            
MensajeEscrito el 23 Oct 2008 05:37 pm
Esto es sintaxis de Flash 4 !!!!!

prueba

Código ActionScript :

for (n=8; n<50; n++) {
  target = duplicateMovieoClip("bluebit", "bluebit"+n, n);
  target._rotation = random(360);
  target._alpha = random(30)+80
  target._xscale = 50+Number(random(60));
  target._yscale = 50+Number(random(60));
  target.gotoAndPlay(random(5))
}


Jorge

Jorge

Por solisarg

BOFH

13669 de clabLevel

4 tutoriales
5 articulos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Argentina

firefox
Citar            
MensajeEscrito el 23 Oct 2008 05:48 pm
GRACIAS JORGE..........

Por lorenaFLASH

45 de clabLevel



 

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.