Ver Mensaje Individual
  #2 (permalink)  
Antiguo 18/06/2010, 12:52
evo_it
 
Fecha de Ingreso: mayo-2010
Ubicación: Argentina
Mensajes: 61
Antigüedad: 13 años, 10 meses
Puntos: 6
Respuesta: Saber si existe movieclip

Hola Kyke_89:

Te pego el código:

Código actionscript:
Ver original
  1. if (_root.Inserta)
  2. {
  3.     _root.Inserta._visible = true;
  4. }
  5.  
  6. else
  7. {
  8.     _root.attachMovie("Inserta", "Inserta", this.getNextHighestDepth());
  9.  
  10. }


En mi opinión sería recomendable que no utilices la instrucción _root, debido a que trae mucho problemas. Para evitarlo puedes usar this, o this._parent o this._parent._parent, etc.

Si el codigo que pegaste tu va en el _root, en ese caso no sería necesario utilizarlo y quedaría así:

Código actionscript:
Ver original
  1. if (Inserta)
  2. {
  3.     Inserta._visible = true;
  4. }
  5.  
  6. else
  7. {
  8.     attachMovie("Inserta", "Inserta", this.getNextHighestDepth());
  9.  
  10. }

Espero que te sea útil, saludos.