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

Lesson 29. Creating Hypertext > Creating a Handler for a hyperlinkclicked Event

Creating a Handler for a hyperlinkclicked Event

To handle a hyperlink, you need to create an on hyperlinkClicked handler. This handler can reside anywhere in the movie event distribution hierarchy, or message path, which means that the handler can be attached to a text sprite, a text cast member, the frame that contains a sprite, or a movie script. Director will try to deliver the event message to the scripts in that order, testing each for an on hyperlinkClicked handler.

The handler takes two parameters. One is an identifier that indicates that the parameter is a hyperlink; it does not need to be used by your handler (just accepted). The other is the actual hyperlink message that you defined in your hyperlinks. In this lesson, the messages you created were Secrets, Planets, Stars, Galaxies, and Sun.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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