Using Director > Text > Creating a hyperlink |  |

Creating a hyperlink

In the Text Inspector, you can turn any selected range of text into a hyperlink that links to a URL or initiates other actions. Director automatically adds standard hyperlink formatting to the selected text so that it initially appears with blue underlining. You can turn off this formatting in the Text tab of the Property Inspector. See Setting text or field cast member properties.

The following procedure describes how to add a hyperlink to selected text. To make a hyperlink actually do something, you need to write an `on hyperlinkClicked` event handler. See `on hyperlinkClicked`.

You can enter any string in the hyperlink box; it does not have to be a URL. The string cannot contain a double quotation mark or the Lingo continuation character.

To define a hyperlink:

1 | Select the text you want to define as a hyperlink.
2 | Choose Window > Inspector > Text to open the Text Inspector.
3 | In the Hyperlink box, enter the URL to which you want to link, or enter any message you want to send to the `on hyperlinkClicked` handler. Then press Enter (Windows) or Return (Macintosh).