| Package | vegas.i18n |
| Class | public class CoreLocalizationLoader |
| Inheritance | CoreLocalizationLoader ActionURLLoader CoreActionLoader CoreAction Task Object |
| Implements | ILocalizationLoader |
| Subclasses | EdenLocalizationLoader, JSONLocalizationLoader |
| Property | Defined By | ||
|---|---|---|---|
![]() | bytesLoaded : uint [override] [read-only]
Indicates the number of bytes that have been loaded thus far during the load operation. | ActionURLLoader | |
![]() | bytesTotal : uint [override] [read-only]
Indicates the total number of bytes in the downloaded data. | ActionURLLoader | |
![]() | cache : Boolean
The cache flag of this resource (default is true). | CoreActionLoader | |
![]() | cacheParameterName : String
The name of the uri query parameter when the cache attribute is true. | CoreActionLoader | |
![]() | changeIt : Signaler
This signal emit when the notifyChanged method is invoked. | CoreAction | |
![]() | clearIt : Signaler
This signal emit when the notifyCleared method is invoked. | CoreAction | |
![]() | complete : Signaler
This signal emit when the notifyComplete method is invoked. | CoreActionLoader | |
![]() | data : *
Indicates the data received from the load operation. | ActionURLLoader | |
![]() | dataFormat : String
Controls whether the downloaded data is received as
- text (URLLoaderDataFormat.TEXT),
- raw binary data (URLLoaderDataFormat.BINARY)
- URL-encoded variables (URLLoaderDataFormat.VARIABLES). | ActionURLLoader | |
![]() | DEFAULT_CACHE_PARAMETER : String = random [static]
The name of the default cache uri query parameter ("random"). | CoreActionLoader | |
![]() | DEFAULT_DELAY : uint = 8000 [static]
The default value of the delay before the ActionEvent.TIMEOUT event (defines in the constructor of the class). | CoreActionLoader | |
| default_file_path : String
Defines the defaut path of the localization file. | CoreLocalizationLoader | ||
| default_file_prefix : String = localize_
Defines the defaut prefix of the localization file. | CoreLocalizationLoader | ||
| default_file_suffix : String = .txt
Defines the defaut file suffix of the localization file. | CoreLocalizationLoader | ||
| default_lang : String = en
Defines the defaut lang of the localization file. | CoreLocalizationLoader | ||
![]() | DEFAULT_TIMEOUT_POLICY : TimeoutPolicy [static]
The default TimeoutPolicy value used to set the timeoutPolicy member of all new objects of this class. | CoreActionLoader | |
![]() | delay : uint [read-only]
Indicates the timeout interval duration. | CoreActionLoader | |
![]() | error : Signaler
This signal emit when the notifyError method is invoked. | CoreActionLoader | |
![]() | finishIt : Signaler
This signal emit when the notifyFinished method is invoked. | Task | |
![]() | httpStatus : Signaler
This signal emit when the notifyHttpStatus method is invoked. | CoreActionLoader | |
![]() | infoIt : Signaler
This signal emit when the notifyInfo method is invoked. | CoreAction | |
![]() | init : Signaler
This signal emit when the notifyInit method is invoked. | CoreActionLoader | |
![]() | isCollapse : Boolean
Indicated if the console use collapse property or not. | ActionURLLoader | |
| lang : *
Indicates the lang of the current Localization to load. | CoreLocalizationLoader | ||
![]() | loader : IEventDispatcher
Indicates the loader object of this process. | CoreActionLoader | |
| localization : Localization
Returns the localization reference of this loader. | CoreLocalizationLoader | ||
![]() | logger : Logger
Determinates the internal Logger reference of this Loggable object. | Task | |
![]() | looping : Boolean
The flag to determinate if the Action object is looped. | CoreAction | |
![]() | loopIt : Signaler
This signal emit when the notifyLooped method is invoked. | CoreAction | |
![]() | maxDepth : uint
Determinates the max depth to collaspe the structure of an object in the console. | ActionURLLoader | |
![]() | MAX_DEPTH_RANGE : Range [static]
The range of the max depth value. | ActionURLLoader | |
![]() | open : Signaler
This signal emit when the notifyOpen method is invoked. | CoreActionLoader | |
![]() | parsing : Boolean
Activate or disactivate parsing (Use this with XML, EDEN, JSON...). | ActionURLLoader | |
| path : String
The path of the localization file. | CoreLocalizationLoader | ||
![]() | pauseIt : Signaler
This signal emit when the notifyPause method is invoked. | CoreAction | |
![]() | phase : String [read-only]
The current phase of the action. | Task | |
| prefix : String
The prefix of the localization file. | CoreLocalizationLoader | ||
![]() | progressIt : Signaler
This signal emit when the notifyProgress method is invoked. | CoreAction | |
| request : URLRequest [override]
Indicates the URLRequest object who captures all of the information in a single HTTP request. | CoreLocalizationLoader | ||
![]() | resumeIt : Signaler
This signal emit when the notifyResumed method is invoked. | CoreAction | |
![]() | running : Boolean [read-only]
Indicates true if the process is in progress. | Task | |
![]() | SPACE : String = [static]
The space string use to format the debugs. | ActionURLLoader | |
![]() | startIt : Signaler
This signal emit when the notifyStarted method is invoked. | Task | |
![]() | stopIt : Signaler
This signal emit when the notifyStopped method is invoked. | CoreAction | |
| suffix : String
The suffix of the config file with datas. | CoreLocalizationLoader | ||
![]() | timeoutIt : Signaler
This signal emit when the notifyTimeOut method is invoked. | CoreAction | |
![]() | timeoutPolicy : TimeoutPolicy
Indicates the timeout policy of the loader. | CoreActionLoader | |
![]() | verbose : Boolean
Indicates the flag of the verbose mode. | ActionURLLoader | |
| Method | Defined By | ||
|---|---|---|---|
CoreLocalizationLoader(localization:Localization = null, loader:URLLoader = null)
Creates a new CoreLocalizationLoader instance. | CoreLocalizationLoader | ||
clone():* [override]
Returns a shallow copy of this object. | CoreLocalizationLoader | ||
![]() | close():void [override]
Cancels a load() method operation that is currently in progress for the Loader instance. | ActionURLLoader | |
![]() | enumerate(o:Object):void
Enumerates the specified object. | ActionURLLoader | |
![]() | isLocked():Boolean
Returns true if the object is locked. | Task | |
loadLang(lang:*):void
Sends and loads data from the specified passed-in lang value (the passed-in argument must be a Lang reference or a valid string). | CoreLocalizationLoader | ||
![]() | lock():void
Locks the object. | Task | |
![]() | notifyChanged():void
Notify when the process is changed. | CoreAction | |
![]() | notifyCleared():void
Notify when the process is cleared. | CoreAction | |
![]() | notifyComplete():void
Notify when the process is complete. | CoreActionLoader | |
![]() | notifyError(error:Object = null):void
Notify when the process failed. | CoreActionLoader | |
![]() | notifyFinished():void [override]
Notify an ActionEvent when the process is finished. | CoreActionLoader | |
![]() | notifyHttpStatus(status:Object = null):void
Notify when the loading process httpstatus is changed.. | CoreActionLoader | |
![]() | notifyInfo(info:*):void
Notify a specific information when the process is changed. | CoreAction | |
![]() | notifyInit():void
Notify when the process is initialize. | CoreActionLoader | |
![]() | notifyLooped():void
Notify when the process is looped. | CoreAction | |
![]() | notifyOpen():void
Notify when the process is open. | CoreActionLoader | |
![]() | notifyPaused():void
Notify when the process is paused. | CoreAction | |
![]() | notifyProgress():void
Notify when the process is in progress. | CoreAction | |
![]() | notifyResumed():void
Notify when the process is resumed. | CoreAction | |
![]() | notifyStarted():void [override]
Notify an ActionEvent when the process is started. | CoreActionLoader | |
![]() | notifyStopped():void
Notify when the process is stopped. | CoreAction | |
![]() | notifyTimeOut():void
Notify when the process is out of time. | CoreAction | |
parse():void [override]
Parse your datas when loading is complete. | CoreLocalizationLoader | ||
![]() | register(dispatcher:IEventDispatcher):void
Register the loader object. | CoreActionLoader | |
![]() | run(... arguments):void [override]
Run the process. | CoreActionLoader | |
![]() | setDelay(time:uint, useSeconds:Boolean = false):void
Sets the timeout interval duration. | CoreActionLoader | |
![]() | unlock():void
Unlocks the display. | Task | |
![]() | unregister(dispatcher:IEventDispatcher):void
Unregisters the loader object. | CoreActionLoader | |
warn(message:String):void
Notify a warning. | CoreLocalizationLoader | ||
| default_file_path | property |
public var default_file_path:StringDefines the defaut path of the localization file.
| default_file_prefix | property |
public var default_file_prefix:String = localize_Defines the defaut prefix of the localization file.
| default_file_suffix | property |
public var default_file_suffix:String = .txtDefines the defaut file suffix of the localization file.
| default_lang | property |
public var default_lang:String = enDefines the defaut lang of the localization file.
| lang | property |
lang:*Indicates the lang of the current Localization to load.
public function get lang():* public function set lang(value:any):void| localization | property |
localization:LocalizationReturns the localization reference of this loader.
public function get localization():Localization public function set localization(value:Localization):void| path | property |
path:StringThe path of the localization file.
public function get path():String public function set path(value:String):void| prefix | property |
prefix:StringThe prefix of the localization file.
public function get prefix():String public function set prefix(value:String):void| request | property |
request:URLRequest[override] Indicates the URLRequest object who captures all of the information in a single HTTP request.
public function get request():URLRequest public function set request(value:URLRequest):void| suffix | property |
suffix:StringThe suffix of the config file with datas.
public function get suffix():String public function set suffix(value:String):void| CoreLocalizationLoader | () | Constructor |
public function CoreLocalizationLoader(localization:Localization = null, loader:URLLoader = null)Creates a new CoreLocalizationLoader instance.
Parameterslocalization:Localization (default = null) — The Localization singleton reference of this loader.
| |
loader:URLLoader (default = null) — The URLLoader object to load.
|
| clone | () | method |
override public function clone():*Returns a shallow copy of this object.
Returns* — a shallow copy of this object.
|
| loadLang | () | method |
public function loadLang(lang:*):voidSends and loads data from the specified passed-in lang value (the passed-in argument must be a Lang reference or a valid string).
Parameters
lang:* — The localization Lang value.
|
| parse | () | method |
override public function parse():voidParse your datas when loading is complete.
| warn | () | method |
public function warn(message:String):voidNotify a warning.
Parameters
message:String |