I just spent a long time tracking down a bug:
I needed to delay execution of a private method called “doPackage()”. Because
of “this” weirdness, I used “that” as a reference:
setTimeout(function():*{that.doPackage()},50);And declared this as that: var that:* = this; The problem is that “doPackage” is now a fully qualified so doPackage is not defined. The solution is to declare the type of that like so: var that:PackagePanel = this; I’m not sure if there’s a way to resolve this better. Harbs
