Ver Mensaje Individual
  #5 (permalink)  
Antiguo 24/06/2005, 08:39
Avatar de stock
stock
 
Fecha de Ingreso: junio-2004
Ubicación: Monterrey NL
Mensajes: 2.390
Antigüedad: 22 años, 3 meses
Puntos: 53
o tambien puedes hacer funciones como bien dijiste (a mi forma de ver, mejor) asi:

Código PHP:
var xi:Number = myMC._x;
var 
A:Number = xi;
var 
B:Number = 300;

this.unBoton.onRollOver = function():Void{
       
this.onEnterFrame = function():Void{
            if(
myMC._x != B)
                
this._x +=5; 
            else
               
delete onEnterFrame; 
      }
} 

this.unBoton.onRollOut = function():Void{
       
this.onEnterFrame = function():Void{
            if(
myMC._x != A)
                
this._x -=5; 
            else
               
delete onEnterFrame; 
      }
} 
Prueba eso