Ver Mensaje Individual
  #2 (permalink)  
Antiguo 23/01/2004, 11:17
Avatar de ¬...
¬...
 
Fecha de Ingreso: noviembre-2003
Ubicación: Guatemala
Mensajes: 742
Antigüedad: 20 años, 5 meses
Puntos: 4
no le pongas a un movieClip a procesar un hitest que no lo incluye, es mejor que controles a los objetos desde afuera,
si InsMovCentral esta en la linea de tiempo principal, al frame donde etsa InsMovCentral:
Código:
this.onEnterFrame=function(){
if(!InsMovCentral.hitTest(_xmouse,_ymouse)){// usa ! para negar la condicion

InsMovCentral._x = InsMovCentral._x + a;
if (InsMovCentral._x >= 460){
a = -5;
}
if (InsMovCentral._x <= 250){
a = + 5;
}
}
}
ahora si tenes InsMovCentral dentro de un movieClip que esta en la main timeline:
Código:
this.onEnterFrame=function(){
if(!InsMovCentral.hitTest(_parent._xmouse,_parent._ymouse)){// usa ! para negar la condicion

InsMovCentral._x = InsMovCentral._x + a;
if (InsMovCentral._x >= 460){
a = -5;
}
if (InsMovCentral._x <= 250){
a = + 5;
}
}
}
__________________
'_'

...