org.silex.core.Api
This class handle the loading process and has references to singletons. In the repository : /trunk/core/Api.as
Version
1
Author
Alexandre Hoyau
isSilexServer
| var isSilexServer: Boolean |
true only if you use the whole SILEX server framework (Wysiwyg etc)
parent
The object which contains the api singleton. It is the root of the silex server if isSilexServer is true.
config
Dynamic object which contains all the constants localized or configuration. If a variable is called on this object and does not exist, SILEX try to find the variable in the constants object before returning null. This is the process used to override the constants values.
constants
| var constants: org.silex.core.Constants |
Static object. Contains the default - hard coded, constant values.
authentication
| var authentication: org.silex.core.Authentication |
Reference to the Authentication singleton.
See Also
Authentication
interpreter
| var interpreter: org.silex.core.Interpreter |
Reference to the Interpreter singleton.
See Also
Interpreter
filter
| var filter: org.silex.core.Filter |
Reference to the Filter singleton.
See Also
Filter
application
| var application: org.silex.core.Application |
Reference to the Application singleton.
See Also
Application
sequencer
| var sequencer: org.silex.core.Sequencer |
Reference to the Sequencer singleton.
See Also
Sequencer
com
| var com: org.silex.core.Com |
Reference to the Com singleton.
See Also
Com
deeplink
| var deeplink: org.silex.core.Deeplink |
Reference to the Deeplink singleton.
See Also
Deeplink
dynDataManager
| var dynDataManager: org.silex.core.DynDataManager |
Reference to the DynDataManager singleton.
See Also
DynDataManager
utils
| var utils: org.silex.core.Utils |
Reference to the Utils singleton.
See Also
Utils
xmlDom
| var xmlDom: org.silex.core.XmlDom |
Reference to the XmlDom singleton.
See Also
XmlDom
toolsManager
| var toolsManager: org.silex.ui.ToolsManager |
Reference to the ToolsManager singleton.
See Also
ToolsManager
rootUrl
| function get rootUrl():String |
Root url of the application (read only).
Api
| function Api( | apiContainer_mc: | MovieClip, | | argIsSilexServer: | Boolean | ) |
|
Constructor. Initialize all the framework’s classes. Start the loading process (config, preload, layout, xml, ...).
getSilexV1
| function getSilexV1( | target_mc: | MovieClip | ) |
|
getConfigData
| function getConfigData( | name_str: | String | ):Object |
|
Called when a property of config object is requested. Returns the corresponding property of _root (passed to flash by javascript). If it is undefined, then look in the constants.
Parameters
| param | name_str the name of the constant or config variable to retrieve |
Returns
the value of the desired constant or config variable
globalContextChange
| function globalContextChange( | prop, | | oldVal, | | newVal | ) |
|
Callback function called when the global context of the website changes. Causes all layers to refresh.
Parameters
| param | oldVal old value of the context |
| param | newVal new value of the context |