|
@@ -60,7 +60,8 @@
|
|
|
|
|
|
<h3>[method:null load]( [page:String url], [page:Function onLoad], [page:Function onProgress], [page:Function onError] )</h3>
|
|
<h3>[method:null load]( [page:String url], [page:Function onLoad], [page:Function onProgress], [page:Function onError] )</h3>
|
|
<div>
|
|
<div>
|
|
- [page:String url] — required<br />
|
|
|
|
|
|
+ [page:String url] — the path or URL to the file. This can also be a
|
|
|
|
+ [link:https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs Data URI].<br />
|
|
[page:Function onLoad] — Will be called when load completes. The argument will be the loaded [page:Animation animation].<br />
|
|
[page:Function onLoad] — Will be called when load completes. The argument will be the loaded [page:Animation animation].<br />
|
|
[page:Function onProgress] — Will be called while load progresses. The argument will be the XmlHttpRequest instance, that contain .[page:Integer total] and .[page:Integer loaded] bytes.<br />
|
|
[page:Function onProgress] — Will be called while load progresses. The argument will be the XmlHttpRequest instance, that contain .[page:Integer total] and .[page:Integer loaded] bytes.<br />
|
|
[page:Function onError] — Will be called if load errors.<br /><br />
|
|
[page:Function onError] — Will be called if load errors.<br /><br />
|
|
@@ -71,7 +72,7 @@
|
|
<h3>[method:null parse]( [page:JSON json], [page:Function onLoad] )</h3>
|
|
<h3>[method:null parse]( [page:JSON json], [page:Function onLoad] )</h3>
|
|
<div>
|
|
<div>
|
|
[page:JSON json] — required<br />
|
|
[page:JSON json] — required<br />
|
|
- [page:Function onLoad] — Will be called when pasring completes. <br /><br />
|
|
|
|
|
|
+ [page:Function onLoad] — Will be called when parsing completes. <br /><br />
|
|
|
|
|
|
Parse the JSON object and pass the result to onLoad. Individual clips in the object will
|
|
Parse the JSON object and pass the result to onLoad. Individual clips in the object will
|
|
be parsed with [page:AnimationClip.parse].
|
|
be parsed with [page:AnimationClip.parse].
|