• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 8. Masks, Transitions, and Video > Adding Movie Clip Buttons

Adding Movie Clip Buttons

There are several different ways to create a button in Flash. You could use a button symbol, a button component, a movie clip with an onPress or onRelease event handler defined; or you can even create movie clip based buttons with different button states (such as up, over and down). A movie clip button is a movie clip that you apply button functionality and characteristics to, using ActionScript and frame labels. Flash has a built-in functionality to understand when you want a movie clip to act as a button. All you need to do is apply an onRelease handler to a movie clip, and it's treated like a clickable button.

When you add the frame labels to a movie clip, Flash knows to move the playhead to each label, depending on where the cursor is. For example, if the cursor hovers over the movie button, Flash knows o move the playhead to the _over frame (if you have one on the Timeline). However, Flash does this only after you add ActionScript for that movie clip (such as an onRelease handler).


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint