Buttons & Menus Part 1: A Simple Centered Button

This entry is part of a series, Buttons & Menus»

This post was crap, so instead of reading that, please read my new post on the same subject instead.

Using the Hit Class for Buttons




Entries in this series:
  1. Buttons & Menus Part 1: A Simple Centered Button
  2. Buttons & Menus Part 2: Animated Button

Posted on June 17th, 2009
Filed under ActionScript 3, Flash, Tutorial, User Interface |

3 Responses to “Buttons & Menus Part 1: A Simple Centered Button”

  1. Mushyrulez
    June 18th, 2009 at 04:13

    Definitely an excellent article – however, I don’t understand why you don’t use the built-in up, over, down, and hit options…

  2. Rasmus Wriedt Larsen
    June 18th, 2009 at 12:40

    This was my first thought:

    For the textfield you mean? In that case it’s because then people are going to be lazy and not make a ‘hit’ layer. Also it would only work in the area of the textfield, and that no good. Third thin: if we were to pass an element when clicked, it is more suitable to have the event.target point at the whole MC instead of just the textfield.
    was this what you were looking for?

    But now I realize what you mean, and here is my answer:
    Because we’re going to animate our button in the next part, and we can’t do that with a simple button. I can see the title is misleading, I will change that now :)

  3. A Freelancer’s Flash Bash [4] | Freelance Flash Games News
    July 22nd, 2009 at 19:02

    […] Wriedt Larsen has a new series on Buttons and Menus in AS3, and a nice post on using 8 way character […]

Leave a Reply