# Easy Button Classes

**URL:** https://forum.kirupa.com/t/easy-button-classes/157099
**Category:** open source
**Created:** [July 29, 2005, 9:31pm UTC](https://forum.kirupa.com/t/easy-button-classes/157099 "2005-07-29T21:31:16Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![iloveitaly](https://avatars.discourse-cdn.com/v4/letter/i/7ea924/32.png) [@iloveitaly](https://forum.kirupa.com/u/iloveitaly)
#### Post date: [July 29, 2005, 9:31pm UTC](https://forum.kirupa.com/t/easy-button-classes/157099/1 "2005-07-29T21:31:16Z")

</div>

I made two simple button classes that I use in all my projects, I figured they might be useful to some other people also.

The goal of these button classes is simplicity, I wanted to be able to very easily (in one or two lines of code) have a fully functional button with rollover effects, and a press action. For a toggle button i wanted to easily assign two actions, one for the ‘on’ and ‘off’ states and easily alter the appearance on the button onRelease().

You can download source with examples [here](http://developer.mabwebdesign.com/getfile.php?file=17).  
Enjoy!
