Ver Mensaje Individual
  #3 (permalink)  
Antiguo 11/06/2010, 22:37
mariox55
 
Fecha de Ingreso: febrero-2008
Mensajes: 78
Antigüedad: 16 años, 2 meses
Puntos: 2
Respuesta: presionar boton

Con esto te funciona:
Código ACTIONSCRIPT:
Ver original
  1. onClipEvent(load)
  2. {
  3.     this.stop();
  4. }
  5. on(press)
  6. {
  7.     this.play();
  8. }
  9.  
  10. on(release)
  11. {
  12.     this.stop();
  13. }
  14.  
  15. on(releaseOutside)
  16. {
  17.     this.stop();
  18. }

Y esto también te funciona tal cual el codigo anterior pero colocando el codigo en el fotograma principal.

Código ACTIONSCRIPT:
Ver original
  1. this.animacion_mc.stop();
  2. this.animacion_mc.onPress = function()
  3. {
  4.     this.play();
  5. };
  6. this.animacion_mc.onRelease = function()
  7. {
  8.     this.stop();
  9. };
  10. this.animacion_mc.onReleaseOutside = function()
  11. {
  12.     this.stop();
  13. };

Mis saludos.