| Package | vegas.events |
| Class | public class LocalizationEvent |
| Inheritance | LocalizationEvent BasicEvent flash.events.Event |
| Property | Defined By | ||
|---|---|---|---|
| CHANGE : String = change [static]
The name of the event when the localization is changed. | LocalizationEvent | ||
![]() | context : *
Determinates the optional context of this event. | BasicEvent | |
| current : Lang [read-only]
Indicates the current Lang value of the internal Localization. | LocalizationEvent | ||
| DEFAULT_ID : String [static]
The default singleton name of the Localization singletons. | LocalizationEvent | ||
![]() | target : Object [override]
Indicates the custom event target. | BasicEvent | |
![]() | timeStamp : uint [read-only]
Indicates the timestamp of the event. | BasicEvent | |
![]() | type : String [override]
Returns the type of event. | BasicEvent | |
| Method | Defined By | ||
|---|---|---|---|
LocalizationEvent(type:String, target:Localization = null, context:* = null, bubbles:Boolean = false, cancelable:Boolean = false, time:Number = 0)
Creates a new LocalizationEvent instance. | LocalizationEvent | ||
clone():Event [override]
Returns a shallow copy of this object. | LocalizationEvent | ||
![]() | dispatch(channel:String = null):void
Dispatch the event with the global event flow. | BasicEvent | |
getLocale(id:String = null):*
Returns the current Local reference or the internal value of the Local property passed in argument with the string in argument. | LocalizationEvent | ||
init(o:Object, sID:String = null, callback:Function = null):void
Apply the current localization over the specified object. | LocalizationEvent | ||
![]() | toString():String [override]
Returns the string representation of this event. | BasicEvent | |
| CHANGE | property |
public static var CHANGE:String = changeThe name of the event when the localization is changed.
| current | property |
current:Lang [read-only] Indicates the current Lang value of the internal Localization.
public function get current():Lang| DEFAULT_ID | property |
public static var DEFAULT_ID:StringThe default singleton name of the Localization singletons.
| LocalizationEvent | () | Constructor |
public function LocalizationEvent(type:String, target:Localization = null, context:* = null, bubbles:Boolean = false, cancelable:Boolean = false, time:Number = 0)Creates a new LocalizationEvent instance.
Parameterstype:String — the string type of the instance.
| |
target:Localization (default = null) — the target of the event.
| |
context:* (default = null) — the optional context object of the event.
| |
bubbles:Boolean (default = false) — indicates if the event is a bubbling event.
| |
cancelable:Boolean (default = false) — indicates if the event is a cancelable event.
| |
time:Number (default = 0) — this optional parameter is used in the eden deserialization to copy the timestamp value of this event.
|
| clone | () | method |
override public function clone():EventReturns a shallow copy of this object.
ReturnsEvent — a shallow copy of this object.
|
| getLocale | () | method |
public function getLocale(id:String = null):*
Returns the current Local reference or the internal value of the Local property passed in argument with the string in argument.
Parameters
id:String (default = null) |
* — the current Local reference or the internal value of the Local property passed in argument with the string in argument.
|
| init | () | method |
public function init(o:Object, sID:String = null, callback:Function = null):voidApply the current localization over the specified object.
Parameters
o:Object — The object to fill with the current localization in the application.
| |
sID:String (default = null) — (optional) if this key is specified the method return the value of the specified key in the current locale object.
| |
callback:Function (default = null) — (optional) The optional method to launch after the initialization over the specified object.
|