# Easing with mouse click question in MX

**URL:** https://forum.kirupa.com/t/easing-with-mouse-click-question-in-mx/25026
**Category:** flash
**Created:** [July 8, 2003, 6:21pm UTC](https://forum.kirupa.com/t/easing-with-mouse-click-question-in-mx/25026 "2003-07-08T18:21:14Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![gmcgrawa](https://avatars.discourse-cdn.com/v4/letter/g/ecc23a/32.png) [@gmcgrawa](https://forum.kirupa.com/u/gmcgrawa)
#### Post date: [July 8, 2003, 6:21pm UTC](https://forum.kirupa.com/t/easing-with-mouse-click-question-in-mx/25026/1 "2003-07-08T18:21:14Z")

</div>

I hae gone through the tutorial on how to use a mouse click to ease a movie clip and there is something I can’t quite figure out.

If I want to have the clip start at a different location, I need to change the:

onClipEvent (load) {  
\_x = 0;  
\_y = 0;  
speed = 5;  
}

When I change this to where I want to put the movie clip, it still doesn’t place it in the right location.

Another thing…if I want the movement to be associated with a button, do I place the:

onClipEvent (mouseDown) {  
endX = \_root.\_xmouse;  
endY = \_root.\_ymouse;  
}

on the button specifying onClipEvent(slider\_MC.mouseDown) {}  
onClipEvent (enterFrame) {

Thanks! Sorry if this is a little confusing, I will try to post a copy of the fla I am working on if anyone needs to see what I am trying to do.

---

<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: [July 8, 2003, 7:18pm UTC](https://forum.kirupa.com/t/easing-with-mouse-click-question-in-mx/25026/2 "2003-07-08T19:18:26Z")

</div>

you should certainly post the fla.

As for placing it where you want, \_x and \_y alone are relative coordinates, so make sure you aren’t thinking that say, 0,0 is in the top left corner of the stage. That can get confusing, you just have to try and stay on top of it.

---

<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: [July 8, 2003, 8:06pm UTC](https://forum.kirupa.com/t/easing-with-mouse-click-question-in-mx/25026/3 "2003-07-08T20:06:04Z")

</div>

Here is the FLA…

Keep in mind that this is the first webpage I have ever tried…so please be gentle!

I am trying to get the slider\_MC (bar with the arrow on top) to slide when a button is clicked…

I only have one button but you get the point.

Thanks

---

<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: [July 8, 2003, 8:06pm UTC](https://forum.kirupa.com/t/easing-with-mouse-click-question-in-mx/25026/4 "2003-07-08T20:06:45Z")

</div>

a
