Packagevegas.i18n
Classpublic class JSONLocalizationLoader
InheritanceJSONLocalizationLoader Inheritance CoreLocalizationLoader Inheritance ActionURLLoader Inheritance CoreActionLoader Inheritance CoreAction Inheritance Task Inheritance Object

The JSONLocalizationLoader class based on the JSON notation.



Public Properties
 PropertyDefined By
 InheritedbytesLoaded : uint
[override] [read-only] Indicates the number of bytes that have been loaded thus far during the load operation.
ActionURLLoader
 InheritedbytesTotal : uint
[override] [read-only] Indicates the total number of bytes in the downloaded data.
ActionURLLoader
 Inheritedcache : Boolean
The cache flag of this resource (default is true).
CoreActionLoader
 InheritedcacheParameterName : String
The name of the uri query parameter when the cache attribute is true.
CoreActionLoader
 InheritedchangeIt : Signaler
This signal emit when the notifyChanged method is invoked.
CoreAction
 InheritedclearIt : Signaler
This signal emit when the notifyCleared method is invoked.
CoreAction
 Inheritedcomplete : Signaler
This signal emit when the notifyComplete method is invoked.
CoreActionLoader
 Inheriteddata : *
Indicates the data received from the load operation.
ActionURLLoader
 InheriteddataFormat : String
Controls whether the downloaded data is received as - text (URLLoaderDataFormat.TEXT), - raw binary data (URLLoaderDataFormat.BINARY) - URL-encoded variables (URLLoaderDataFormat.VARIABLES).
ActionURLLoader
 InheritedDEFAULT_CACHE_PARAMETER : String = random
[static] The name of the default cache uri query parameter ("random").
CoreActionLoader
 InheritedDEFAULT_DELAY : uint = 8000
[static] The default value of the delay before the ActionEvent.TIMEOUT event (defines in the constructor of the class).
CoreActionLoader
 Inheriteddefault_file_path : String
Defines the defaut path of the localization file.
CoreLocalizationLoader
 Inheriteddefault_file_prefix : String = localize_
Defines the defaut prefix of the localization file.
CoreLocalizationLoader
 Inheriteddefault_file_suffix : String = .txt
Defines the defaut file suffix of the localization file.
CoreLocalizationLoader
 Inheriteddefault_lang : String = en
Defines the defaut lang of the localization file.
CoreLocalizationLoader
 InheritedDEFAULT_TIMEOUT_POLICY : TimeoutPolicy
[static] The default TimeoutPolicy value used to set the timeoutPolicy member of all new objects of this class.
CoreActionLoader
 Inheriteddelay : uint
[read-only] Indicates the timeout interval duration.
CoreActionLoader
 Inheritederror : Signaler
This signal emit when the notifyError method is invoked.
CoreActionLoader
 InheritedfinishIt : Signaler
This signal emit when the notifyFinished method is invoked.
Task
 InheritedhttpStatus : Signaler
This signal emit when the notifyHttpStatus method is invoked.
CoreActionLoader
 InheritedinfoIt : Signaler
This signal emit when the notifyInfo method is invoked.
CoreAction
 Inheritedinit : Signaler
This signal emit when the notifyInit method is invoked.
CoreActionLoader
 InheritedisCollapse : Boolean
Indicated if the console use collapse property or not.
ActionURLLoader
 Inheritedlang : *
Indicates the lang of the current Localization to load.
CoreLocalizationLoader
 Inheritedloader : IEventDispatcher
Indicates the loader object of this process.
CoreActionLoader
 Inheritedlocalization : Localization
Returns the localization reference of this loader.
CoreLocalizationLoader
 Inheritedlogger : Logger
Determinates the internal Logger reference of this Loggable object.
Task
 Inheritedlooping : Boolean
The flag to determinate if the Action object is looped.
CoreAction
 InheritedloopIt : Signaler
This signal emit when the notifyLooped method is invoked.
CoreAction
 InheritedmaxDepth : uint
Determinates the max depth to collaspe the structure of an object in the console.
ActionURLLoader
 InheritedMAX_DEPTH_RANGE : Range
[static] The range of the max depth value.
ActionURLLoader
 Inheritedopen : Signaler
This signal emit when the notifyOpen method is invoked.
CoreActionLoader
 Inheritedparsing : Boolean
Activate or disactivate parsing (Use this with XML, EDEN, JSON...).
ActionURLLoader
 Inheritedpath : String
The path of the localization file.
CoreLocalizationLoader
 InheritedpauseIt : Signaler
This signal emit when the notifyPause method is invoked.
CoreAction
 Inheritedphase : String
[read-only] The current phase of the action.
Task
 Inheritedprefix : String
The prefix of the localization file.
CoreLocalizationLoader
 InheritedprogressIt : Signaler
This signal emit when the notifyProgress method is invoked.
CoreAction
 Inheritedrequest : URLRequest
[override] Indicates the URLRequest object who captures all of the information in a single HTTP request.
CoreLocalizationLoader
 InheritedresumeIt : Signaler
This signal emit when the notifyResumed method is invoked.
CoreAction
 Inheritedrunning : Boolean
[read-only] Indicates true if the process is in progress.
Task
 InheritedSPACE : String =
[static] The space string use to format the debugs.
ActionURLLoader
 InheritedstartIt : Signaler
This signal emit when the notifyStarted method is invoked.
Task
 InheritedstopIt : Signaler
This signal emit when the notifyStopped method is invoked.
CoreAction
 Inheritedsuffix : String
The suffix of the config file with datas.
CoreLocalizationLoader
 InheritedtimeoutIt : Signaler
This signal emit when the notifyTimeOut method is invoked.
CoreAction
 InheritedtimeoutPolicy : TimeoutPolicy
Indicates the timeout policy of the loader.
CoreActionLoader
 Inheritedverbose : Boolean
Indicates the flag of the verbose mode.
ActionURLLoader
Public Methods
 MethodDefined By
  
Creates a new JSONLocalizationLoader instance.
JSONLocalizationLoader
 Inherited
clone():*
[override] Returns a shallow copy of this object.
CoreLocalizationLoader
 Inherited
close():void
[override] Cancels a load() method operation that is currently in progress for the Loader instance.
ActionURLLoader
 Inherited
enumerate(o:Object):void
Enumerates the specified object.
ActionURLLoader
 Inherited
isLocked():Boolean
Returns true if the object is locked.
Task
 Inherited
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
 Inherited
lock():void
Locks the object.
Task
 Inherited
Notify when the process is changed.
CoreAction
 Inherited
Notify when the process is cleared.
CoreAction
 Inherited
Notify when the process is complete.
CoreActionLoader
 Inherited
notifyError(error:Object = null):void
Notify when the process failed.
CoreActionLoader
 Inherited
[override] Notify an ActionEvent when the process is finished.
CoreActionLoader
 Inherited
notifyHttpStatus(status:Object = null):void
Notify when the loading process httpstatus is changed..
CoreActionLoader
 Inherited
notifyInfo(info:*):void
Notify a specific information when the process is changed.
CoreAction
 Inherited
notifyInit():void
Notify when the process is initialize.
CoreActionLoader
 Inherited
Notify when the process is looped.
CoreAction
 Inherited
notifyOpen():void
Notify when the process is open.
CoreActionLoader
 Inherited
Notify when the process is paused.
CoreAction
 Inherited
Notify when the process is in progress.
CoreAction
 Inherited
Notify when the process is resumed.
CoreAction
 Inherited
[override] Notify an ActionEvent when the process is started.
CoreActionLoader
 Inherited
Notify when the process is stopped.
CoreAction
 Inherited
Notify when the process is out of time.
CoreAction
 Inherited
parse():void
[override] Parse your datas when loading is complete.
CoreLocalizationLoader
 Inherited
register(dispatcher:IEventDispatcher):void
Register the loader object.
CoreActionLoader
 Inherited
run(... arguments):void
[override] Run the process.
CoreActionLoader
 Inherited
setDelay(time:uint, useSeconds:Boolean = false):void
Sets the timeout interval duration.
CoreActionLoader
 Inherited
unlock():void
Unlocks the display.
Task
 Inherited
unregister(dispatcher:IEventDispatcher):void
Unregisters the loader object.
CoreActionLoader
 Inherited
warn(message:String):void
Notify a warning.
CoreLocalizationLoader
Protected Methods
 MethodDefined By
 Inherited
_complete(e:Event):void
[override] Dispatch an Event.COMPLETE event after all the received data is decoded and placed in the data property.
ActionURLLoader
 Inherited
_error(e:ErrorEvent):void
Dispatch an ErrorEvent if a call to load() attempts a server problem (IOErrorEvent or SecurityErrorEvent).
CoreActionLoader
 Inherited
_httpStatus(e:HTTPStatusEvent):void
Dispatch HTTPStatusEvent if a call to load() attempts to access data over HTTP and the current Flash Player environment is able to detect and return the status code for the request.
CoreActionLoader
 Inherited
_init(e:Event):void
Invoked when the loading is init.
CoreActionLoader
 Inherited
_open(e:Event):void
Dispatch Event.OPEN event when the download operation commences following a call to the load() method.
CoreActionLoader
 Inherited
_progress(e:ProgressEvent):void
Invoked when the loading is in complete.
CoreActionLoader
 Inherited
_run():void
[override] This protected method contains the invokation of the load method of the current loader of this process.
ActionURLLoader
 Inherited
Resolves the request of the loader with the cache query parameter if the cache attribute is true.
CoreActionLoader
 Inherited
setRunning(b:Boolean):void
Changes the running property value.
Task
Constructor Detail
JSONLocalizationLoader()Constructor
public function JSONLocalizationLoader(localization:Localization = null)

Creates a new JSONLocalizationLoader instance.

Parameters
localization:Localization (default = null) — The owner Localization reference of this loader.