Hola tengo el siguiente problemilla a ver si alguno lo ve. Tengo un  
movieclip(contenedor) y dentro de esta tengo otra (boton para hacer el drag).

En el frame 1 de la escena tengo puesto lo siguiente pero no consigo que funcione:

//MovieClip(contenedor) = _root.mc_solapa
//MovieClip para el drag = _root.mc_solapa.mc_drag1


/****************************************
DRAG PARA EL SUBMENU
/*******************************************/
_root.mc_solapa.mover = function(){
 this._x = this._x + ((_xmouse-this._x)/this.velocidad);
 this._y = this._y + ((_ymouse-this._y)/this.velocidad);
}
_root.mc_solapa.moviendo = false;
_root.mc_solapa.destino = 500;
_root.mc_solapa.velocidad = 5;
_root.mc_solapa.playPause = function(){
 this.destinoX = parseInt(Math.random()*500)
 this.destinoY = parseInt(Math.random()*500)
 if(!this.moviendo){
  this.onEnterFrame = this.mover;
  this.moviendo = true;
 }
 else{
  delete(this.onEnterFrame);
  this.moviendo = false;
  }
 }

_root.mc_solapa.mc_drag1.onPress = _root.mc_solapa.playPause;

<!-------------------------------
Lista ASNativos:
subscripciones/desubscripciones
http://www.sidedev.net/asnativos
-------------------------------->

Responder a