03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - 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.

public dynamic class TextField<br />

extends Object<br />

The TextField class is used to create areas for text display <strong>and</strong> input. All dynamic <strong>and</strong> input<br />

text fields in a SWF file are instances of the TextField class. You can give a text field an<br />

instance name in the Property inspector <strong>and</strong> use the methods <strong>and</strong> properties of the TextField<br />

class to manipulate it with ActionScript. TextField instance names are displayed in the Movie<br />

Explorer <strong>and</strong> in the Insert Target Path dialog box in the Actions panel.<br />

To create a text field dynamically, you do not use the new operator. Instead, you use<br />

MovieClip.createTextField().<br />

The methods of the TextField class let you set, select, <strong>and</strong> manipulate text in a dynamic or<br />

input text field that you create during authoring or at runtime.<br />

See also<br />

Object, createTextField (MovieClip.createTextField method)<br />

Property summary<br />

Modifiers Property Description<br />

_alpha:Number Sets or retrieves the alpha transparency value of<br />

the text field.<br />

autoSize:Object Controls automatic sizing <strong>and</strong> alignment of text<br />

fields.<br />

background:Boolean Specifies if the text field has a background fill.<br />

backgroundColor:Numb The color of the text field background.<br />

er<br />

border:Boolean Specifies if the text field has a border.<br />

borderColor:Number The color of the text field border.<br />

bottomScroll:Number<br />

[read-only]<br />

condenseWhite:Boolea<br />

n<br />

An integer (one-based index) that indicates the<br />

bottommost line that is currently visible the text<br />

field.<br />

A Boolean value that specifies whether extra white<br />

space (spaces, line breaks, <strong>and</strong> so on) in an HTML<br />

text field should be removed when the field is<br />

rendered in a browser.<br />

embedFonts:Boolean A Boolean value that specifies whether to render<br />

the text using embedded font outlines.<br />

_height:Number The height of the text field in pixels.<br />

TextField 609

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

Saved successfully!

Ooh no, something went wrong!