Ver Mensaje Individual
  #3 (permalink)  
Antiguo 26/06/2007, 17:02
Avatar de karemlis
karemlis
 
Fecha de Ingreso: agosto-2006
Mensajes: 153
Antigüedad: 20 años, 1 mes
Puntos: 0
Re: problema con evento mouse move ayuda pliiiiissss!!

yap..gracias rizzo por responder..
bueno pal q algun dia tenga mi mismo problema aki va la solucion:
en las acciones del MC (INSTANCIA "imagen")
puse este codigo:
Código PHP:
onClipEvent(load){
    
ancho=this._width;
    
alto=this._height;
}

onClipEvent(mouseDown){
    if(
this.hitTest(_root._xmouse, _root._ymouse, true))/*PREGUNTA SI EL RATON ESTA DENTRO DEL AREA DE LA IMAGEN*/
    
{startDrag(this); 
    }  
}
onClipEvent(mouseUp){
    
stopDrag();}
    
onClipEvent(mouseMove){ 
    if(!
this.hitTest(_root._xmouse, _root._ymouse, true)){
        
stopDrag();} 
    if (
ancho > 752 && alto > 590) {
        
        if(
_x< -(_width-751)) {
            
_x= -(_width-751);} 
        
        else    
            if(
_x> 0){_x= 8;}   
        if(
_y< -(_height-590)){
            
_y= -(_height-590);}
        else         
            if(
_y> 0){_y= 0;} 
    }else{
    
imagen.stopDrag();
         
_x=8;
        
_y= 0; 
    }
} 
asi se soluciona el problemita de las imagenes mas pekeñas q el escenario...

saludos..
karen