Specifications
Add a script to a button by using Script Assist mode 217
10. In the Frame text box, enter home.
Modifying function parameters to complete the script
The changes you made with Script Assist mode are displayed in the
ActionScript editor. You’ve just created a script without manually writing
code in the ActionScript editor.
When you test the application, clicking the Home button will display the
title “Home” in the Title movie clip, indicating that the Home frame is
currently displayed.
Clicking the Home button displays “Home” in the Title movie clip.
You could repeat this process for the About, Products, and Contacts
buttons. However, for these buttons you’ll use an alternative and preferred
method for creating scripts.
In each case, you want to display the related frames on the Timeline when
each of the buttons are clicked; therefore, you will set the frame target of
the
gotoAndStop() function to the About, Products, and Contacts frames,
as you’ve just done for the Home button.