File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -26,11 +26,11 @@ To install it use `haxelib install assetsmanager`
26
26
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?).
27
27
28
28
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.
32
32
33
- Example showing how to load a single file and assigning unique callback.
33
+ Example loading a single file and using ** onComplete ** callback.
34
34
``` actionscript
35
35
var loader = new FileLoader();
36
36
loader.loadText("text.txt", onTextLoaded);
@@ -41,7 +41,7 @@ function onTextLoaded(f:FileInfo) {
41
41
}
42
42
}
43
43
```
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 .
45
45
``` actionscript
46
46
var loader = new FileLoader();
47
47
loader.onFilesLoaded.add(onComplete); // listen to all files loaded signal.
You can’t perform that action at this time.
0 commit comments