Who Has the Best Button Class?

We’ve all done it… we’ve wasted way too much time writing an overly complex class just to create a simple square/roundrect button. Who has the nicest one? Post a link to yours (googlecode, wonderfl, etc…).

I’ve always avoided wasting too much time writing one of these but just spent 2 hours writing an overly complex one… looking forward to the way that people have done it….

For instance, did you make your class dynamic? Did you use scale9? did you use CSS? etc… Just curious how complex have gotten with it.

This entry was posted in OOP, UI and tagged , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.


  1. Posted February 25, 2010 at 3:53 am | Permalink

    my button class is a bit complex because it’s a part of my framework ; anyway the implementation makes it easier. I may give you a zip file with classes and implementation in it by email if you want :)

  2. Posted February 25, 2010 at 6:49 am | Permalink

    yeah i would love to see it :D

  3. Posted February 26, 2010 at 3:30 am | Permalink

    Would love to see it also, still a novice - intermediat programmer with abit of prior coding experience (going thru your book Learning ActionScript 3.0 A beginners guide) So would be cool to see some codeexampels of more complex code, because so far I’ve only done banners, menues, galleries and such. But my goal is to become more experienced and maybe move into Flex / Java later on :)

  4. Posted February 27, 2010 at 4:45 pm | Permalink

    I’m very interested in this topic as well.

  5. Posted February 27, 2010 at 7:47 pm | Permalink

    Please do upload this file with the classes as I would love to see it as well.
    Thanks, Zevan!

  6. Posted March 1, 2010 at 2:06 am | Permalink

    I’ve been using this one:

    And this is a rewritten version of the one above:

  7. Posted March 1, 2010 at 2:50 am | Permalink

    Ok :) i’m opening a googlecode for this ; it’s a bit early for me because i thought to release it in a month or two, anyway i can tease a little ! Anyway, keep in mind this is a sample of my work, be kind :)


  8. Posted March 1, 2010 at 2:52 am | Permalink

    Thanks y_nk for sharing your project with us !

  9. Posted October 26, 2010 at 1:46 pm | Permalink

    In our Temple Library for AS3 we have a few amazing button-classes, usable for different purposes.

    The library can be found here: http://code.google.com/p/templelibrary/

  10. Posted November 22, 2010 at 4:04 pm | Permalink

    @pvdn very cool

One Trackback

  1. [...] Who Has the Best Button Class? [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *