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

Chapter 18. ActionScript: Use Script Ass... > Add a script to a button by using Sc...

Add a script to a button by using Script Assist mode

In this section you’ll use Script Assist mode to add a script to the Home button. When the sample application is run and the Home button is clicked, the Home title appears in the Title movie clip.

Note

This section demonstrates how you add scripts directly to objects. Although this approach can be convenient for adding interactivity to your Flash applications, you should follow best coding practices and add code to the Timeline rather than to individual objects. For more information, see “Add frame scripts to the Timeline by using Script Assist mode” on page 218.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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