# Animated Buttons

**URL:** <https://forum.kirupa.com/t/animated-buttons/131036>\
**Category:** Uncategorized\
**Created:** [December 10, 2004, 10:13pm UTC](https://forum.kirupa.com/t/animated-buttons/131036 "2004-12-10T22:13:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![VersusMG](https://avatars.discourse-cdn.com/v4/letter/v/898d66/32.png) [@VersusMG](https://forum.kirupa.com/u/VersusMG)\
**Post date:** [December 10, 2004, 10:13pm UTC](https://forum.kirupa.com/t/animated-buttons/131036/1 "2004-12-10T22:13:00Z")

</div>

Okay i’m working on a new site and i have my buttons set up as movie clips with invisible buttons that tell them what to do. They pop up when you move your mouse over them and what i am wanting is when you click the button it stays in the gray state even if you move your mouse away from the button and goes away when you click another button.

```auto

  on(rollOver){
  	 gotoAndPlay("mouseover")
  }
  on(rollOut){
  	 gotoAndPlay("mouseoff")
 }
  on(press){
  	 gotoAndPlay("pressed")
  }
  

```

Thats the code i have set for the invisible buttons.

[http://www.versusmediagroup.com/idea2.html](http://www.versusmediagroup.com/idea2.html)
