| Package | vegas.config |
| Class | public class JSONConfigLoader |
| Inheritance | JSONConfigLoader CoreConfigLoader ActionURLLoader CoreActionLoader CoreAction Task Object |
Example :
import vegas.config.Config ;
import vegas.config.JSONConfigLoader;
import vegas.config.IConfigLoader;
import flash.events.Event ;
var complete:Function = function ( e:Event ):void
{
var data:= Config.getInstance() ;
for (var prop:String in data)
{
trace("> " + prop + " : " + data[prop]) ;
if (data[prop] as Object)
{
for (var key:String in data[prop])
{
trace(" > " + key + " : " + data[prop][key]) ;
}
}
}
}
var loader:IConfigLoader = new JSONConfigLoader() ;
loader.addEventListener(Event.COMPLETE, complete) ;
loader.path = "config/" ;
loader.load() ;
See also
| Method | Defined By | ||
|---|---|---|---|
Creates a new JSONConfigLoader instance. | JSONConfigLoader | ||
![]() | clone():* [override]
Returns a shallow copy of this object. | CoreConfigLoader | |
![]() | 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 | |
![]() | 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. | CoreConfigLoader | |
![]() | 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 | |