Class template.TextContentLoader

Description

This class can be used to load an text content from XML files.

Field Index

Inherited from DisplayObject

Method Index

new TextContentLoader()
init(), loadText(), main(), reset()

Inherited from DisplayObject

Constructor Detail

TextContentLoader

public function TextContentLoader()

The constructor.

Method Detail

main

static public function main(target:MovieClip):Void

Use this method to register a movieclip as this class

Parameters

target- the movieclip to be registered

init

public function init()

Method used to initialize all the variables, functionality, etc.

loadText

public function loadText(str:String)

Use this method to load the XML file containing the text to be displayed

Parameters

str- path of the XML file.

reset

public function reset()

Call this function to reset the text box.