PDA

View Full Version : Easy Button Classes


iloveitaly
07-29-2005, 06:31 PM
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!

unchew
07-29-2005, 06:36 PM
Can you place the swf to have a quick watch?

treatkor
07-29-2005, 11:54 PM
I made two simple button classes that I use in all my projects, I figured they might be useful to some other people also.

thank you for sharing! i love checking out other people's solutions to common situations like button behaviors.
i've been using a version of senocular's asButton (http://proto.layer51.com/d.aspx?f=663) to give movieclips button-like behavior.

I be DoH32
07-30-2005, 09:26 AM
I have allways hated working with the stock buttons in Flash. I used only movie clips that I added button like effects to in my circular menu tutorial on ABS (http://www.albinoblacksheep.com/text/circular). I have allways had a problem with how buttons don't allow you to add movie clip like effects to them. Thanks for the kickawrs buttons italy.