# MC position

**URL:** https://forum.kirupa.com/t/mc-position/15029
**Category:** flash
**Created:** [March 5, 2003, 3:27pm UTC](https://forum.kirupa.com/t/mc-position/15029 "2003-03-05T15:27:58Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jerry](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@jerry](https://forum.kirupa.com/u/jerry)
#### Post date: [March 5, 2003, 3:27pm UTC](https://forum.kirupa.com/t/mc-position/15029/1 "2003-03-05T15:27:58Z")

</div>

Hey there!  
I’m making a little bubble rollover effect, like this:

```auto
on(rollOver){
_root.bubble.gotoAndPlay(1);
startdrag(_root.bubble);
}

```

What I would to do, is to define a start position for the bubble mc regarding the mouse pointer, I know it’s possiable, but how!?  
So that when I rollover anywhere in the “hit stage”, the bubble will appear, let’s say 2 pixels from the top of the pointer!

Any help would be NICE!

cheers \<:}

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 5, 2003, 4:27pm UTC](https://forum.kirupa.com/t/mc-position/15029/2 "2003-03-05T16:27:41Z")

</div>

find out the x and y positions of the mouse its ether \_xmouse or \_mousex i can’t remember

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 5, 2003, 4:37pm UTC](https://forum.kirupa.com/t/mc-position/15029/3 "2003-03-05T16:37:52Z")

</div>

Yeah, THX m8!

This did the trick:

```auto
_root.bubble._x = _xmouse ;
_root.bubble._y = _ymouse ;

```

:nerd:

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 5, 2003, 4:48pm UTC](https://forum.kirupa.com/t/mc-position/15029/4 "2003-03-05T16:48:39Z")

</div>

np
