# X and Y coords of a movie clip declared in a variable

**URL:** <https://forum.kirupa.com/t/x-and-y-coords-of-a-movie-clip-declared-in-a-variable/129614>\
**Category:** Uncategorized\
**Created:** [November 25, 2004, 10:20pm UTC](https://forum.kirupa.com/t/x-and-y-coords-of-a-movie-clip-declared-in-a-variable/129614 "2004-11-25T22:20:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tinuviel](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/tinuviel/32/497_2.png) [@Tinuviel](https://forum.kirupa.com/u/Tinuviel)\
**Post date:** [November 25, 2004, 10:20pm UTC](https://forum.kirupa.com/t/x-and-y-coords-of-a-movie-clip-declared-in-a-variable/129614/1 "2004-11-25T22:20:00Z")

</div>

How come this:

```php
function drop (thumbClip, xCoord, yCoord) {
	thumbClip._x = xCoord;
	thumbClip._y = yCoord;
	trace (thumbClip);
	trace (xCoord);
	trace(yCoord);
}

```

receives the variables (specified in a later function) and traces them all right, but refuses to deposit the variable thumbClip in the x and y coordinates being specified?

I replaced thumbClip with a specific movie clip, and the fucntion worked perfectly. Does this mean Flash cannot use variables to set the x and y coords to?

If not, what’s the workaround?
