Class YLoader
Defined in: YLoader.js.
Constructor Attributes | Constructor Name and Description |
---|---|
YLoader()
DEPRECATED! USE YAsync; file loader Not instanciable.
|
Method Attributes | Method Name and Description |
---|---|
<static> |
YLoader.load(url, onloaded, datas, onProgress)
load a text file (ajax)
|
<static> |
YLoader.loadImg(url, onloaded, datas)
load an image
|
<static> |
YLoader.loadJSon(url, onloaded, datas)
load an js obj file (ajax)
|
<static> |
YLoader.loadList(urls, onprogress, onloaded, datas)
load a text file list(ajax)
|
<static> |
YLoader.loadXml(url, onloaded, datas)
load an xml file (ajax)
|
<static> |
YLoader.loadXmlToJs(url, onloaded, datas)
|
<static> |
YLoader.loadXmlToJsList(url, onloaded, datas)
|
Method Detail
<static>
YLoader.load(url, onloaded, datas, onProgress)
load a text file (ajax)
- Parameters:
- {string} url
- url of the text file.
- {function} onloaded
- invoked when file is loaded. of type onloaded(String content, Object loader, Mixed datas);
- {mixed} datas Optional
- returned to onloaded.
- onProgress
<static>
YLoader.loadImg(url, onloaded, datas)
load an image
- Parameters:
- {string} url
- url of the image file.
- {function} onloaded
- invoked when file is loaded. of type onloaded(Image img, Object loader, Mixed datas);
- {mixed} datas Optional
- returned to onloaded.
<static>
YLoader.loadJSon(url, onloaded, datas)
load an js obj file (ajax)
- Parameters:
- {string} url
- url of the js file.
- {function} onloaded
- invoked when file is loaded. of type onloaded(Mixed JS data: content, Object: loader, Mixed: datas);
- {mixed} datas Optional
- returned to onloaded.
<static>
YLoader.loadList(urls, onprogress, onloaded, datas)
load a text file list(ajax)
- Parameters:
- {string array} urls
- text files url list.
- {function} onprogress Optional
- can be null. of type onprogress(Float percent,String content,Object loader);
- {function} onloaded
- invoked when file is loaded. of type onloaded(String[] contents, Object[] loaders, Mixed datas);
- {mixed} datas Optional
- returned to onloaded.
<static>
YLoader.loadXml(url, onloaded, datas)
load an xml file (ajax)
- Parameters:
- {string} url
- url of the xml file.
- {function} onloaded
- invoked when file is loaded. of type onloaded(XMLDocument content, Object loader, Mixed datas);
- {mixed} datas Optional
- returned to onloaded.
<static>
YLoader.loadXmlToJs(url, onloaded, datas)
- Parameters:
- url
- onloaded
- datas
<static>
YLoader.loadXmlToJsList(url, onloaded, datas)
- Parameters:
- url
- onloaded
- datas