Ver Mensaje Individual
  #5 (permalink)  
Antiguo 17/06/2010, 17:28
Avatar de Bandit
Bandit
Moderador
 
Fecha de Ingreso: julio-2003
Ubicación: Lima - Perú
Mensajes: 16.726
Antigüedad: 20 años, 9 meses
Puntos: 406
Respuesta: Duda con star drag y stop drag

Hola Arok:
Crea una capa para las acciones y escribe éste código:
Código actionscript:
Ver original
  1. stop();
  2. _root.bola.onPress = function() {
  3.     _root.bola.startDrag();
  4. };
  5. _root.bola.onRelease = function() {
  6.     if (_root.bola.hitTest(_root.hueco)) {
  7.         stopDrag();
  8.         gotoAndStop(5);//aquí cambia el numero del frame a donde quieres ir
  9.     }else{
  10.         bola._x = 110;
  11.         bola._y = 46;
  12.         stopDrag();
  13. };
  14. }
Espero haberte sido de ayuda.
__________________
Bandit.
Si no sabes estudia y si sabes enseña.
http://www.banditwebdesign.com/