Ver Mensaje Individual
  #8 (permalink)  
Antiguo 15/01/2007, 12: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
Re: Drag and Drop para comparar productos, ¡¡Please help me!!

Hola Yeigp:
Los 2 objetos tiene que ser MC.
Al primero le ponemos como nombre de instancia: objeto y al segundo: base.
Código en el primer frame de tu película:
objeto.onPress = function() {
objeto.startDrag();
};
objeto.onRelease = function() {
if (objeto.hitTest(base)) {
stopDrag();
}else{
objeto._x = 100;
objeto._y = 100;
stopDrag();
};
}
__________________
Bandit.
Si no sabes estudia y si sabes enseña.
http://www.banditwebdesign.com/