new TextFileLoader()
Default Constructor
loads an text file into resourceMap, either as simple text or as XML
Note: loads the a textfile and when done calls the callbackFunction()
fileName is treated as resource map key, file content is stored as asset
Members
(static) eTextFileType :enum|eTextFileType
Text file type tokens
Type:
- enum | eTextFileType
Methods
(static) loadTextFile(fileName, fileType, callbackFunction) → {void}
Load text file if fileType is a eTextFileType
Parameters:
Name | Type | Description |
---|---|---|
fileName |
String | File Path name |
fileType |
enum | eTextFileType | File type token |
callbackFunction |
function | Callback Function called when file load is complete |
Returns:
- Type
- void
(static) unloadTextFile(fileName) → {void}
Unload the TextFile
Parameters:
Name | Type | Description |
---|---|---|
fileName |
type | file name to unload |
Returns:
- Type
- void