Loading assets dynamically from disk (not from a library)

We have some APIs that may help make it simpler to load files:

BitmapData.loadFromFile ("path/to/image.png").onComplete (function (bitmapData) {
    trace ("loaded");
}).onError (function (e) {
    trace ("error");
}).onProgress (function (loaded, total) {
    trace ("loaded " + loaded + "/" + total);
});

We don’t have an API to combine multiple requests into one progress queue at the moment, though.

1 Like