Keep your hand where I can see it.

Using the Hand Cursor on a button

In AS2 we took for granted that when we assigned a mouse event (onRelease, onPress, onRollOut etc) to a movie clip Flash by default would change the cursor from the arrow to the hand when the user interacted with that movie clip.

In AS3 that is no longer the case. You have to implicitly tell the clip that it should work that way. Luckily, it’s a very easy step.

myClip.buttonMode = true;

That’s it. Your done.

Personally I like the change, you have to want the clip to work that way and take the steps to do so. I know when I am doing something quick and dirty that it’s a pain but as a programmer I like the idea that I control the functionality.

Leave a Reply