03.05.2013 Views

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

this.createTextField("mytext",1,100,100,200,100);<br />

mytext.multiline = true;<br />

mytext.wordWrap = true;<br />

mytext.border = true;<br />

var myformat:TextFormat = new TextFormat();<br />

myformat.underline = true;<br />

mytext.text = "This is my first text field object text";<br />

mytext.setTextFormat(myformat);<br />

url (TextFormat.url property)<br />

public url : String<br />

Indicates the URL that text in this text format hyperlinks to. If the url property is an empty<br />

string, the text does not have a hyperlink. The default value is null, which indicates that the<br />

property is undefined.<br />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 6<br />

Example<br />

This example creates a text field that is a hyperlink to the <strong>Adobe</strong> website.<br />

var myformat:TextFormat = new TextFormat();<br />

myformat.url = "http://www.adobe.com";<br />

this.createTextField("mytext",1,100,100,200,100);<br />

mytext.multiline = true;<br />

mytext.wordWrap = true;<br />

mytext.border = true;<br />

mytext.html = true;<br />

mytext.text = "Go to <strong>Adobe</strong>.com";<br />

mytext.setTextFormat(myformat);<br />

TextRenderer (flash.text.TextRenderer)<br />

Object<br />

|<br />

+-flash.text.TextRenderer<br />

public class TextRenderer<br />

extends Object<br />

1266 <strong>ActionScript</strong> classes

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!