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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

See also<br />

mouseWheelEnabled (TextField.mouseWheelEnabled property)<br />

multiline (TextField.multiline property)<br />

public multiline : Boolean<br />

Indicates whether the text field is a multiline text field. If the value is true, the text field is<br />

multiline; if the value is false, the text field is a single-line text field.<br />

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

Example<br />

The following example creates a two text fields. The first has the multiline property set to<br />

true, <strong>and</strong> the second has it set to false. When you run the file, notice the difference between<br />

pressing the ENTER key in the first text field <strong>and</strong> doing so in the second text field:<br />

this.createTextField("input1", this.getNextHighestDepth(), 10, 10, 240,<br />

320);<br />

input1.border = true;<br />

input1.type = "input";<br />

input1.multiline = true;<br />

input1.text = "Type some text <strong>and</strong> press the ENTER key: ";<br />

this.createTextField("input2", this.getNextHighestDepth(), 10, 10, 240,<br />

320);<br />

input2.border = true;<br />

input2._x = 275;<br />

input2.type = "input";<br />

input2.multiline = false;<br />

input2.text = "Type some text <strong>and</strong> press the ENTER key: ";<br />

The MovieClip.getNextHighestDepth() method used in this example requires Flash Player<br />

7 or later. If your SWF file includes a version 2 component, use the version 2 components'<br />

DepthManager class instead of the MovieClip.getNextHighestDepth() method.<br />

_name (TextField._name property)<br />

public _name : String<br />

The instance name of the text field.<br />

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

1212 <strong>ActionScript</strong> classes

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

Saved successfully!

Ooh no, something went wrong!