Namespace | tinymce.dom |
Class | ScriptLoader |
Method | Defined By |
---|---|
ScriptLoader(s:Object)
Constructs a new script loaded instance.
|
ScriptLoader |
add(u:String, cb:function, s:Object, pr:Boolean):object
Adds a specific script to the load queue of the script loader.
|
ScriptLoader |
eval(Script:string):void
Evaluates the specified string inside the global namespace/window scope.
|
ScriptLoader |
isDone(u:String):void
Returns true/false if a script has been loaded or not.
|
ScriptLoader |
load(u:String, cb:function, s:Object):void
Loads a specific script directly without adding it to the load queue.
|
ScriptLoader |
loadQueue(cb:function, s:Object):void
Starts the loading of the queue.
|
ScriptLoader |
loadScript(u:string, cb:function):void
[static] Loads the specified script without adding it to any load queue.
|
ScriptLoader |
loadScripts(sc:Array, cb:function, s:Object):void
Loads the specified queue of files and executes the callback ones they are loaded.
|
ScriptLoader |
markDone(u:string):void
Marks a specific script to be loaded.
|
ScriptLoader |
public
function ScriptLoader(s:Object)
s:Object | Optional settings object for the ScriptLoaded. |
public
function add(u:String, cb:function, s:Object, pr:Boolean):object
u:String | Absolute URL to script to add. |
cb:function | Optional callback function to execute ones this script gets loaded. |
s:Object | Optional scope to execute callback in. |
pr:Boolean | Optional state to add to top or bottom of load queue. Defaults to bottom. |
public
function eval(Script:string):void
Script:string | contents to evaluate. |
public
function isDone(u:String):void
u:String | URL to check for. |
public
function load(u:String, cb:function, s:Object):void
u:String | Absolute URL to script to add. |
cb:function | Optional callback function to execute ones this script gets loaded. |
s:Object | Optional scope to execute callback in. |
public
function loadQueue(cb:function, s:Object):void
cb:function | Optional callback to execute when all queued items are loaded. |
s:Object | Optional scope to execute the callback in. |
public static
function loadScript(u:string, cb:function):void
u:string | URL to dynamically load. |
cb:function | Callback function to executed on load. |
public
function loadScripts(sc:Array, cb:function, s:Object):void
sc:Array | Array of queue items to load. |
cb:function | Optional callback to execute ones all items are loaded. |
s:Object | Optional scope to execute callback in. |
public
function markDone(u:string):void
u:string | Absolute URL to the script to mark as loaded. |