# Action Script to change Mc position around canvas

**URL:** https://forum.kirupa.com/t/action-script-to-change-mc-position-around-canvas/139389
**Category:** Uncategorized
**Created:** [March 2, 2005, 6:05pm UTC](https://forum.kirupa.com/t/action-script-to-change-mc-position-around-canvas/139389 "2005-03-02T18:05:58Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![felipegm](https://avatars.discourse-cdn.com/v4/letter/f/e9bcb4/32.png) [@felipegm](https://forum.kirupa.com/u/felipegm)
#### Post date: [March 2, 2005, 6:05pm UTC](https://forum.kirupa.com/t/action-script-to-change-mc-position-around-canvas/139389/1 "2005-03-02T18:05:58Z")

</div>

Hi,

I´m trying to make a Mc to move around the canvas according to the mouse position. It´s working fine on the \_xmouse position, but I´m getting it to work to the \_ymouse position. I´d like the Mc change position when the mouse is over the white box.

Could anyone help?

I´m posting the fla.
