-
-
Save nelix/140191 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 同時実行されてしまう | |
for (var i:uint = 0; i < len; i++) { | |
var loader:URLLoader = new URLLoader(); | |
loader.addEventListener(Event.COMPLETE, fun (..._) {}); | |
loader.load(t[i]); | |
} | |
// 順次実行 | |
var i:uint = 0; (function cont (..._):void { if (i++ < parts) { | |
var loader:URLLoader = new URLLoader(); | |
loader.addEventListener(Event.COMPLETE, cont); | |
loader.load(t[i]); | |
} })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment