Buttons & Menus Part 1: A Simple Centered Button
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
- Buttons & Menus Part 1: A Simple Centered Button
- 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”
-
June 18th, 2009 at 04:13 -
June 18th, 2009 at 12:40This 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 :) -
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 […]
Definitely an excellent article – however, I don’t understand why you don’t use the built-in up, over, down, and hit options…