# How to make image to stop?

**URL:** https://forum.kirupa.com/t/how-to-make-image-to-stop/205760
**Category:** flash
**Created:** [November 1, 2006, 6:16pm UTC](https://forum.kirupa.com/t/how-to-make-image-to-stop/205760 "2006-11-01T18:16:21Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Anthalus](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@Anthalus](https://forum.kirupa.com/u/Anthalus)
#### Post date: [November 1, 2006, 6:16pm UTC](https://forum.kirupa.com/t/how-to-make-image-to-stop/205760/1 "2006-11-01T18:16:21Z")

</div>

Hi!

So i have been looking at the forum and cant find anything that explain me how to do this.

I have an image that the width is like 2x bigger than the stage. I made an actionscript that the image mooves like my mouse moove. so, if i am mooving my mouse to right, the image mooves to right too.

My problem is: i want to make the image stop when i reach her end in one of the sides.

when i moove the mouse and the image mooves too, i want that, when the image reachs her total left or right to stop so i do not have the stage with no image in the background.

Since the image has his ref point in the top left, i made something like this:

\*\*if (\_root.image.\_x \> 0){  
trace (“you have reach the left maximum of the image”);  
}

\*\* Plz help, need that for school work 🙂
