ArrayConvert

Package:

Class:

Inheritance:

biz.flashscript.utils

public class ArrayConvert

EventDispatcher implements IEventDispatcher

The ArrayConvert class loads text files and extracts variables from the file, which can then be used in the Flash movie. Use the constructor new ArrayConvert() to create an instance of the class and add parameters as desired.

Public Properties

Property

Defined By

newArray : Array
An array containing all variables from the text file.

ArrayConvert

Public Methods

Method

Defined By

ArrayConvert(textFile:String)
Creates a new instance of the ArrayConvert class.

Create a new fla file and name it ArrayConverter.fla. Place the fla in the same folder as the biz folder. Add a TextField and name it myText. In a folder named "text_files" have a file named "textexample.txt". Then create an Actionscript file, name it ArrayConverter.as and place this script.