Anchor tag

The <a> tag creates a hypertext link and supports the following attributes:

For example, the following HTML code creates the link "Go home," which opens www.adobe.com in a new browser window:

urlText_txt.htmlText = "<a href='http://www.adobe.com' target='_blank'>Go home</a>";

You can use the special asfunction protocol to cause the link to execute an ActionScript function in a SWF file instead of opening a URL. For more information on the asfunction protocol, see asfunction protocol in the ActionScript 2.0 Language Reference.

You can also define a:link, a:hover, and a:active styles for anchor tags by using style sheets. See Styling built-in HTML tags.

NOTE

Absolute URLs must be prefixed with http://; otherwise, Flash treats them as relative URLs.