load method

void load(
  1. dynamic url,
  2. Function onLoad, [
  3. Function? onProgress,
  4. Function? onError,
])
override

Implementation

void load( url, onLoad, [onProgress, onError ]){
	final scope = this;

	final loader = FileLoader(this.manager);
	loader.setPath(this.path);
	loader.setResponseType('arraybuffer');
	loader.setRequestHeader(this.requestHeader);
	loader.setWithCredentials(this.withCredentials);

	loader.load( url,
      (text) {
		  onLoad(scope.parse(text));
	  },
      onProgress,
      onError
    );
}