JSDeffered非常酷: https://github.com/cho45/jsdeferred/blob/master/test-jsdeferred.js在ActionScript中有沒有很酷的Deferred庫?
我們可以編寫最簡單的異步調用鏈。
next(function() { // this `next` is global function
alert("1");
}).
next(function() { // this `next` is Deferred#next
alert("2");
}).
next(function() {
alert("3");
});
我們的代碼就是這樣 new Execute1(nextFunction); ...
所以通心粉代碼。
在ActionScript中有沒有很酷的Deferred庫? 或您正在使用哪個腳本?
hope [this](https://github.com/komelgman/Compromise)help – komelgman 2011-07-21 14:24:14