# FMX click on button and image eases to location

**URL:** https://forum.kirupa.com/t/fmx-click-on-button-and-image-eases-to-location/13468
**Category:** flash
**Created:** [February 13, 2003, 5:45pm UTC](https://forum.kirupa.com/t/fmx-click-on-button-and-image-eases-to-location/13468 "2003-02-13T17:45:38Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![cybergold](https://avatars.discourse-cdn.com/v4/letter/c/9dc877/32.png) [@cybergold](https://forum.kirupa.com/u/cybergold)
#### Post date: [February 13, 2003, 5:45pm UTC](https://forum.kirupa.com/t/fmx-click-on-button-and-image-eases-to-location/13468/1 "2003-02-13T17:45:38Z")

</div>

How can i duplicate the effect found here? I want an image that eases into location when pressed. Any help would be greatly appreciated [http://www.swishzone.com/products/sites/site05/index.html](http://www.swishzone.com/products/sites/site05/index.html)

---

<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: [February 13, 2003, 9:11pm UTC](https://forum.kirupa.com/t/fmx-click-on-button-and-image-eases-to-location/13468/2 "2003-02-13T21:11:45Z")

</div>

look for robert penners website, one of flash great scripters, he’s got some cool easing scripts available

---

<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: [February 13, 2003, 9:30pm UTC](https://forum.kirupa.com/t/fmx-click-on-button-and-image-eases-to-location/13468/3 "2003-02-13T21:30:53Z")

</div>

everyone always says that… “look for robert penners website”

how about a direct link =)

[http://www.robertpenner.com/](http://www.robertpenner.com/)

---

<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: [February 13, 2003, 10:38pm UTC](https://forum.kirupa.com/t/fmx-click-on-button-and-image-eases-to-location/13468/4 "2003-02-13T22:38:01Z")

</div>

No need to disturb Robert for this 🙂

Check the sliding window tutorial, that’s exactly the same thing. And if you need the tweening formulas, there are tutes about that here too.

pom :crazy:

---

<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: [February 14, 2003, 5:31pm UTC](https://forum.kirupa.com/t/fmx-click-on-button-and-image-eases-to-location/13468/5 "2003-02-14T17:31:16Z")

</div>

can someone explain this?

---

<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: [February 15, 2003, 12:05am UTC](https://forum.kirupa.com/t/fmx-click-on-button-and-image-eases-to-location/13468/6 "2003-02-15T00:05:52Z")

</div>

Which “this”?

---

<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: [February 15, 2003, 3:11pm UTC](https://forum.kirupa.com/t/fmx-click-on-button-and-image-eases-to-location/13468/7 "2003-02-15T15:11:43Z")

</div>

If i have a picture, that is in black and white, and i have a mask that reveals color(it is only a bar). and i want it to go to ease to a desired location when i press a button. What scripting can i use for this, is there an example i can look at? Thank you.

---

<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: [February 15, 2003, 3:47pm UTC](https://forum.kirupa.com/t/fmx-click-on-button-and-image-eases-to-location/13468/8 "2003-02-15T15:47:24Z")

</div>

use the easing tutorial here at kirupa :sigh:  
[http://www.kirupa.com/developer/mx/easing\_mouseclick.htm](http://www.kirupa.com/developer/mx/easing_mouseclick.htm)

just replace the x and y coordinates depending on the mouse position with your desired x and y coordinates 🙂
