# Coordinates and variables.. :s

**URL:** <https://forum.kirupa.com/t/coordinates-and-variables-s/229001>\
**Category:** flash\
**Created:** [June 13, 2007, 8:30am UTC](https://forum.kirupa.com/t/coordinates-and-variables-s/229001 "2007-06-13T08:30:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Takashy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/takashy/32/1985_2.png) [@Takashy](https://forum.kirupa.com/u/Takashy)\
**Post date:** [June 13, 2007, 8:30am UTC](https://forum.kirupa.com/t/coordinates-and-variables-s/229001/1 "2007-06-13T08:30:26Z")

</div>

Hi all,

I got a little problem with the y coordinate and my keyboard.

Basicaly its like this…

I got a movieclip that I move with my arrow keys… and when the y coordinate is 277.5 I want to set another variable to 0. But it does not work…

thers my code…

```
if ((_y, 277.5)) {
    set(DWN, 0);
}

```

the value of DWN is 37 so everytime I press the down button it goes down by 37. And I want it to stop at 277.5 so that I cant move it any more down… but it does not work… ☹

any idea? ^^;
