# Anybody know?!

**URL:** <https://forum.kirupa.com/t/anybody-know/62655>\
**Category:** flash\
**Created:** [August 30, 2004, 9:21am UTC](https://forum.kirupa.com/t/anybody-know/62655 "2004-08-30T09:21:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dave\_Reeves](https://avatars.discourse-cdn.com/v4/letter/d/ea5d25/32.png) [@Dave\_Reeves](https://forum.kirupa.com/u/Dave_Reeves)\
**Post date:** [August 30, 2004, 9:21am UTC](https://forum.kirupa.com/t/anybody-know/62655/1 "2004-08-30T09:21:48Z")

</div>

> **[Green Day Official Website](http://www.greenday.com)**
>
> Official Green Day Website with artist information, audio, and video clips, photos, downloads, and tour dates

  
On the comunities link, there is a little red icon of a guy getting shocked. Its on the left side of the page. When you move your mouse towards him, he flies away! How do you do this? Also, how does it reappear on the other side of the page when its pushed off? help?

---

<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:** [August 30, 2004, 10:02am UTC](https://forum.kirupa.com/t/anybody-know/62655/2 "2004-08-30T10:02:54Z")

</div>

It’s quite simple. It’s an animation that is stoped at first. When you click the button it plays the animation and when it ends it is rewinded and it waits for another click.

---

<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:** [August 30, 2004, 10:56pm UTC](https://forum.kirupa.com/t/anybody-know/62655/3 "2004-08-30T22:56:04Z")

</div>

thas kinda fun! 😛  
the man is a movieclip which uses some sort of easing where the end point is updated depending upon where the mouse is in relation to the center of the movieclip…  
off the top of my head i would say it uses some sort of trig equation to work out where to go… and the way it disappears and reappears is simple.

```auto
if(this._x<0){
    this._x=450
    endX=450-endX
}

```

etc etc 😉

Prophet.
