Promises/A+ compliant implementation in ActionScript 3.0