Skip to content

Commit a198a93

Browse files
committed
Merge branch 'master' of github.com:ProG4mr/assetsmanager
2 parents 8c56cd5 + 9ea6573 commit a198a93

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ To install it use `haxelib install assetsmanager`
2626
Uses openfl URLLoader to load external files. Full-path, relative path or URL can be used, full-path not available for flash target (and html5?).
2727

2828
Files are loaded asynchronously, and different notifications are sent:
29-
* **onFileLoaded :** every time a file is loaded successfully.
30-
* **onFilesLoaded :** when files are loaded and there are no more to load.
31-
* **NEW** - Unique callbacks may be assigned to each file when loading or queueing them.
29+
* **onFileLoaded :** signal dispatched every time a file finishes loading (even with error).
30+
* **onFilesLoaded :** signal dispatched when files finish loading and there are no more to load.
31+
* **onComplete :** callback to a specific load or queue request.
3232

33-
Example showing how to load a single file and assigning unique callback.
33+
Example loading a single file and using **onComplete** callback.
3434
```actionscript
3535
var loader = new FileLoader();
3636
loader.loadText("text.txt", onTextLoaded);
@@ -41,7 +41,7 @@ function onTextLoaded(f:FileInfo) {
4141
}
4242
}
4343
```
44-
Example showing how to queue multiple files and waiting for all files to be loaded.
44+
Example loading multiple files and listening to **onFilesLoaded** signal.
4545
```actionscript
4646
var loader = new FileLoader();
4747
loader.onFilesLoaded.add(onComplete); // listen to all files loaded signal.

0 commit comments

Comments
 (0)