pero necesito un codigo que impida mover la imagen cuando esta es mas chica que el escenario
ya que sino esta se mueve sin parar!!
:bueno aki va el codigo q arrastra la imagen:
Código HTML:
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(_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;}
}
esperando una ayudadita
les saluda
karen

