| Package | com.gestureworks.cml.managers |
| Class | public class FileManager |
| Inheritance | FileManager Object |
The FileManager is used by the CMLParser to preload external files. It supports the following file types:
See also
| Property | Defined By | ||
|---|---|---|---|
| audioType : RegExp [static] | FileManager | ||
| cmlType : RegExp [static] | FileManager | ||
| debug : Boolean = false [static]
Turns on the debug information
| FileManager | ||
| fileCount : int [static]
The number of files in file list
| FileManager | ||
| fileList : LinkedMap [static] | FileManager | ||
| fileTypes : RegExp [static] | FileManager | ||
| imageType : RegExp [static] | FileManager | ||
| instance : * [static] [read-only] | FileManager | ||
| libraryTypes : RegExp [static] | FileManager | ||
| mediaPreloadTypes : RegExp [static] | FileManager | ||
| mediaTypes : RegExp [static] | FileManager | ||
| stopped : Boolean = false [static]
Indicates whther the file queue has stopped
| FileManager | ||
| swcType : RegExp [static] | FileManager | ||
| swfType : RegExp [static] | FileManager | ||
| videoType : RegExp [static] | FileManager | ||
| Method | Defined By | ||
|---|---|---|---|
| FileManager | |||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void [static] | FileManager | ||
addToQueue(file:String):void [static]
Appends to file queue
| FileManager | ||
dispatchEvent(event:Event):Boolean [static] | FileManager | ||
hasEventListener(type:String):Boolean [static] | FileManager | ||
hasFile(file:String):Boolean [static]
| FileManager | ||
isCML(file:String):Boolean [static]
| FileManager | ||
isLibrary(file:String):Boolean [static]
| FileManager | ||
isMedia(file:String):Boolean [static]
| FileManager | ||
isPreloadMedia(file:String):Boolean [static]
| FileManager | ||
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void [static] | FileManager | ||
resetQueue():void [static]
Resets file queue
| FileManager | ||
startQueue():void [static]
Starts file queue
| FileManager | ||
stopQueue():void [static]
Stops file queue
| FileManager | ||
willTrigger(type:String):Boolean [static] | FileManager | ||
| audioType | property |
public static var audioType:RegExp| cmlType | property |
public static var cmlType:RegExp| debug | property |
public static var debug:Boolean = falseTurns on the debug information
| fileCount | property |
public static var fileCount:intThe number of files in file list
| fileList | property |
public static var fileList:LinkedMap| fileTypes | property |
public static var fileTypes:RegExp| imageType | property |
public static var imageType:RegExp| instance | property |
instance:* [read-only] public static function get instance():*| libraryTypes | property |
public static var libraryTypes:RegExp| mediaPreloadTypes | property |
public static var mediaPreloadTypes:RegExp| mediaTypes | property |
public static var mediaTypes:RegExp| stopped | property |
public static var stopped:Boolean = falseIndicates whther the file queue has stopped
| swcType | property |
public static var swcType:RegExp| swfType | property |
public static var swfType:RegExp| videoType | property |
public static var videoType:RegExp| FileManager | () | Constructor |
public function FileManager()| addEventListener | () | method |
public static function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):voidParameters
type:String | |
listener:Function | |
useCapture:Boolean (default = false) | |
priority:int (default = 0) | |
useWeakReference:Boolean (default = false) |
| addToQueue | () | method |
public static function addToQueue(file:String):voidAppends to file queue
Parameters
file:String — - file name
|
| dispatchEvent | () | method |
public static function dispatchEvent(event:Event):BooleanParameters
event:Event |
Boolean |
| hasEventListener | () | method |
public static function hasEventListener(type:String):BooleanParameters
type:String |
Boolean |
| hasFile | () | method |
public static function hasFile(file:String):Boolean
Parameters
file:String |
Boolean |
| isCML | () | method |
public static function isCML(file:String):Boolean
Parameters
file:String |
Boolean |
| isLibrary | () | method |
public static function isLibrary(file:String):Boolean
Parameters
file:String |
Boolean |
| isMedia | () | method |
public static function isMedia(file:String):Boolean
Parameters
file:String |
Boolean |
| isPreloadMedia | () | method |
public static function isPreloadMedia(file:String):Boolean
Parameters
file:String |
Boolean |
| removeEventListener | () | method |
public static function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):voidParameters
type:String | |
listener:Function | |
useCapture:Boolean (default = false) |
| resetQueue | () | method |
public static function resetQueue():voidResets file queue
| startQueue | () | method |
public static function startQueue():voidStarts file queue
| stopQueue | () | method |
public static function stopQueue():voidStops file queue
| willTrigger | () | method |
public static function willTrigger(type:String):BooleanParameters
type:String |
Boolean |