TextField

public class
loom2d.text.TextField

API overview

Constructor

TextField ()

Attributes

Public attributes

defaultBitmapFont: BitmapFont static

The default BitmapFont to use when none is specified

Protected attributes

Functions

Public functions

getBitmapFont ( name: String ): BitmapFont static

Returns a registered bitmap font (or null, if the font has not been registered)

registerBitmapFont ( bitmapFont: BitmapFont , name: String = null ): String static

Makes a bitmap font available at any TextField in the current stage3D context

unregisterBitmapFont ( name: String , dispose: Boolean = true ): Void static

Unregisters the bitmap font and, optionally, disposes it

Constructor

TextField ()

Attributes

defaultBitmapFont: BitmapFont

static

The default BitmapFont to use when none is specified. It is set to the first registered font.

Protected attributes

Functions

getBitmapFont ( name: String ): BitmapFont

static

Returns a registered bitmap font (or null, if the font has not been registered).

Parameters

name: String


getFullTypeName (): String
Inherited from Object

native

Gets the fully qualified type name of the Object. The fully qualified type name includes the package of the type.


Returns

String fully qualified type name of the Object.

getType (): Type
Inherited from Object

native

Gets the Type that describes the Object.


Returns

Type The Type that describes the object.

getTypeName (): String
Inherited from Object

native

Gets the type name of the Object.


Returns

String type name of the Object.

registerBitmapFont ( bitmapFont: BitmapFont , name: String = null ): String

static

Makes a bitmap font available at any TextField in the current stage3D context. The font is identified by its name. Per default, the name property of the bitmap font will be used, but you can pass a custom name, as well.

Parameters

bitmapFont: BitmapFont
name: String = null

Returns

String s the name of the font.

toString (): String
Inherited from Object

native

Returns a String that describes the Object. This can be overriden to provide extra details when printing objects using trace().


Returns

String String that described the Object.

unregisterBitmapFont ( name: String , dispose: Boolean = true ): Void

static

Unregisters the bitmap font and, optionally, disposes it.

Parameters

name: String
dispose: Boolean = true


: