# How can I make my MC stay in place?

**URL:** https://forum.kirupa.com/t/how-can-i-make-my-mc-stay-in-place/179386
**Category:** flash
**Created:** [February 19, 2006, 5:47pm UTC](https://forum.kirupa.com/t/how-can-i-make-my-mc-stay-in-place/179386 "2006-02-19T17:47:50Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Skyria](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@Skyria](https://forum.kirupa.com/u/Skyria)
#### Post date: [February 19, 2006, 5:47pm UTC](https://forum.kirupa.com/t/how-can-i-make-my-mc-stay-in-place/179386/1 "2006-02-19T17:47:50Z")

</div>

Hello,

I have an image that is twice the size of my scene and four buttons with actionsscripts to control the scrolling sideways.  
On the scene have a movieclip with a dot that changes its x and y coordinates based on input in my webbrowser.  
When I scroll the image sideways and up and down I want my movieclip to stay in the same place all the time which it does untill I get to the edge of the image and my movie clip just keeps going :puzzle: this of course makes it so that my movie clip no longer is placed on the x and y positions that I enter.

this is the script i use on my buttons (this being the left button but you get the idea)

```auto
_root.imgholder._x -= 3;
if (_root.imgholder._x < -700) {
    setProperty ("_root.imgholder", _x, "-700");
}
_root.mark._x -= 3;
if (_root.mark._x < -700) {
    setProperty ("_root.mark", _x, "-700");
}

```

So any points on how to get my movie clip to stay in place?

Thanks in advance
