Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

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

Chapter 13. Basic Interactivity > Making Frame Actions Control Objects

Making Frame Actions Control Objects

If you decide to do a lot of interactivity, you’ll need to learn more about ActionScript. Ideally, you’ll want to place less code directly on objects and put most of your code in frames. Using frame actions to control objects is a sophisticated technique that goes beyond the scope of this book. To give you a peek at the power of this type of scripting, the following tasks walk you through creating a simple frame action that controls a movie-clip instance. You’ll use a mix of assisted and unassisted scripting methods.

In the preceding section, you scripted your movie-clip button to use the standard button states (showing the _up, _over, and _down frames) but made no use of its Disabled frame. You may want the disabled state to appear only in certain frames of your movie, not in response to a user’s interaction. A Back button that takes users to the previous page may be disabled in frame 1, for example. You can use frame actions to disable (or enable) a movie-clip button.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint