Hi @TBaudon
Sure! I believe the argument is called rootPath
, and should be available if you add it to the final argument in the Stage
constructor, like this:
var stage = new Stage (550, 400, 0xFFFFFF, App, { rootPath: "path/to/assets" });
The Future
type for AssetLibrary.loadFromFile
and other like calls has onComplete
, onProgress
and onError
callbacks. onProgress
looks like this:
AssetLibrary.loadFromManifest (manifest).onProgress ((bytesLoaded, bytesTotal) => {
console.log (bytesLoaded, bytesTotal);
}) ...