Class template.TextContent

Description

This class is the dialog box in which the content is displayed.

Method Index

new TextContent()
getDimensions(), init(), resize(), setText(), setVisibility(), toggleVisiblity()

Constructor Detail

TextContent

public function TextContent()

Method Detail

init

public function init()

Use this function to initialize the info dialog

setText

public function setText(title:String, str:String)

Use this function to set the title and description to be displayed

Parameters

title- the title text
str- the description text

resize

public function resize(width, height)

Call this function to resize the text content scroller

Parameters

width
height

getDimensions

public function getDimensions():Object

Use this function to get the dimensions of the dialog.

Return

- an object with properties 'width' and 'height' of type Number.

setVisibility

public function setVisibility(bool:Boolean)

Use this function to set the visibility of the dialog

Parameters

bool- a boolean value

toggleVisiblity

public function toggleVisiblity()

Use this function to toggle the visibility of the dialog