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

Hour 14. Using ActionScript to Create No... > Task: Make a Button That Hyperlinks ...

Task: Make a Button That Hyperlinks to Another Web Page

1.
In a new file, create a Button symbol and place an instance onstage.

2.
With the Button instance selected, open the Actions panel.

3.
Insert the getURL Action (from the plus button, Actions, Browser Network). With the getURL Action selected, type http://www.phillipkerman.com into the URL field (in the parameters area).

4.
Test the movie (or, better yet, select File, Publish Preview, Default—so you'll watch this in a browser). Just click the button in the Flash movie and, if you're connected to the Internet, you'll hyperlink to my home page.

Addressing Movie Clips

The navigation Actions we just saw are good for jumping around within a Timeline or throughout the Web. However, you know Movie Clips have their own Timeline. What happens when you want to jump around within a Movie Clip? If you put your Action inside the Movie Clip or if you attach the Action to the clip, it's pretty straightforward. If you have a stop Action on a button inside the Movie Clip, for example, it will cause the Movie Clip to stop (provided it has multiple frames). So it's easy when you put an Action in the master clip or on a clip instance.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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