How to fix closure problem in ActionScript 3 (AS3)
Isn’t the behaviour of closures in AS3 the same as in Java Script ? Yes, JavaScript does exactly the same thing. As does Python. And others. Although you define ‘var imageData’ inside the ‘for’, for loops do not introduce a new scope in these languages; in fact the variable imageData is bound in the containing … Read more