# MC "\_x" limit?

**URL:** <https://forum.kirupa.com/t/mc--x-limit/287026>\
**Category:** Uncategorized\
**Created:** [April 24, 2009, 6:38pm UTC](https://forum.kirupa.com/t/mc--x-limit/287026 "2009-04-24T18:38:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![xpermaniac](https://avatars.discourse-cdn.com/v4/letter/x/a88e57/32.png) [@xpermaniac](https://forum.kirupa.com/u/xpermaniac)\
**Post date:** [April 24, 2009, 6:38pm UTC](https://forum.kirupa.com/t/mc--x-limit/287026/1 "2009-04-24T18:38:00Z")

</div>

Hi,

The following method checks to the left when it is inserted with mouse and kits are mc … Measurements do not as I did not? I really want to explain, for example, I have a picture or 3000 px but I mc let’s say this image from both directions in equal amounts 2000px want to move. from the right and the left will lose 500’er px …

My project is over, friends problem here … :crying:

CODE:  
[COLOR=red]this.tumMC.onEnterFrame = function() { [/COLOR]  
[COLOR=red]var delay = 15; [/COLOR]  
[COLOR=red]difference = \_xmouse - arrow.\_x; [/COLOR]  
[COLOR=red]arrow.\_x = arrow.\_x + (difference/delay); [/COLOR]  
[COLOR=red]if (tumMC.\_x \>=200 || tumMC.\_x[/COLOR]  
[COLOR=red]delete tumMC.onEnterFrame;// burda değerlerin arasından çıkıldığında fonksiyonu kırıyorum [/COLOR]  
[COLOR=red]} [/COLOR]  
[COLOR=red]else{ [/COLOR]  
[COLOR=red]tumMC.\_x = - arrow.\_x; [/COLOR]  
[COLOR=red]} [/COLOR]  
[COLOR=red]}[/COLOR]
