# Undefined coordinated in a class (FL8 & AS2.0)

**URL:** https://forum.kirupa.com/t/undefined-coordinated-in-a-class-fl8-as2-0/171218
**Category:** Uncategorized
**Created:** [December 2, 2005, 8:46pm UTC](https://forum.kirupa.com/t/undefined-coordinated-in-a-class-fl8-as2-0/171218 "2005-12-02T20:46:33Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jwopitz](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jwopitz/32/1556_2.png) [@jwopitz](https://forum.kirupa.com/u/jwopitz)
#### Post date: [December 2, 2005, 8:46pm UTC](https://forum.kirupa.com/t/undefined-coordinated-in-a-class-fl8-as2-0/171218/1 "2005-12-02T20:46:33Z")

</div>

I have a class I am building that will attach a circle inside a designated MC. The circle then uses startDrag() to follow the mouse. There is a method called display\_range that does all the movement stuff.

```auto

public function display_range ():Void {
		dest_circle = range_mc.createEmptyMovieClip("destination", 50);
		dest_mc.startDrag (true);
		range_mc.onMouseMove = function () {
			update_position ();
			trace (dest_mc._x + ", " + dest_mc._y);
		};
		trace (dest_mc._x + ", " + dest_mc._y);
		trace (point.x + ", " + point.y);
		trace ("-------");
	}
private function update_position ():Void {
		point.x = dest_mc._x;
		point.y = dest_mc._y;
	}

```

the initial trace displays the coordinates, but when tracing the coordinates of the dest\_mc inside the onMouseMove event it shows undefined. What gives?
