|
@@ -65,19 +65,18 @@
|
|
|
<p>
|
|
|
[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:AnimationClip animation clips].<br />
|
|
|
[page:Function onProgress] — Will be called while load progresses. The argument will be the XMLHttpRequest instance, which contains .[page:Integer total] and .[page:Integer loaded] bytes.<br />
|
|
|
[page:Function onError] — Will be called if load errors.<br /><br />
|
|
|
|
|
|
Begin loading from url and pass the loaded animation to onLoad.
|
|
|
</p>
|
|
|
|
|
|
- <h3>[method:null parse]( [param:JSON json], [param:Function onLoad] )</h3>
|
|
|
+ <h3>[method:Array parse]( [param:JSON json] )</h3>
|
|
|
<p>
|
|
|
- [page:JSON json] — required<br />
|
|
|
- [page:Function onLoad] — Will be called when parsing completes. <br /><br />
|
|
|
+ [page:JSON json] — required<br /><br />
|
|
|
|
|
|
- Parse the JSON object and pass the result to onLoad. Individual clips in the object will
|
|
|
+ Parse the JSON object and return an array of animation clips. Individual clips in the object will
|
|
|
be parsed with [page:AnimationClip.parse].
|
|
|
</p>
|
|
|
|