Posts Tagged functions

Nested Functions and Function Variables

Tags: ,

Turns out that AS3 supports ! I have been making Function variables for a long time. Read on for the greatness that is nested functions.

Read the rest of this article »

No Comments

Variable Clashes

Tags: , ,

Scoping is pretty weird in AS3 for those coming from C/C++ and Java. There are two cases in particular you should know about.

Read the rest of this article »

3 Comments

Fun With Dynamic Functions

Tags:

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.

Read the rest of this article »

No Comments

Super Is (Really) Optional!

Tags: ,

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.

Read the rest of this article »

7 Comments