Turns out that AS3 supports ! I have been making Function variables for a long time. Read on for the greatness that is nested functions.
Posts Tagged functions
Scoping is pretty weird in AS3 for those coming from C/C++ and Java. There are two cases in particular you should know about.
Dynamic functions are a very useful feature of AS3 and JavaScript. Closures constantly come in handy for cleaner, more powerful code. Here’s a feature you might not know about them though.
Like Java, AS3 has a super() function you can call from your constructor to call your parent class’ constructor. As it turns out, this is more optional than you might think.