# Move image

**URL:** https://forum.kirupa.com/t/move-image/55355
**Category:** Uncategorized
**Created:** [June 23, 2004, 7:12am UTC](https://forum.kirupa.com/t/move-image/55355 "2004-06-23T07:12:38Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![o\_emma](https://avatars.discourse-cdn.com/v4/letter/o/aeb1de/32.png) [@o\_emma](https://forum.kirupa.com/u/o_emma)
#### Post date: [June 23, 2004, 7:12am UTC](https://forum.kirupa.com/t/move-image/55355/1 "2004-06-23T07:12:38Z")

</div>

Hi,

I have a problem with this code:

//stop();  
function moveimage (movex, movey) {  
if (\_root.photo.\_x \< 200) {  
\_root.photo.\_x += movex;  
\_root.photo.\_y += movey;  
}  
else {  
clearInterval (intervalID)  
}  
}  
function zoomimage (xfactor, yfactor) {  
\_root.photo.\_xscale += xfactor;  
\_root.photo.\_yscale += yfactor;  
}

function helloworld (){  
trace (“helloworld”);  
}

When I move the image it stops at 200pixlar. But when I than try to move it back again (or in any other direction) the image is frozen…how can I make the image move again?

/Emma
