Posts Tagged variable

Class Bootup

Tags: , ,

Being allowed to declare and define member variables all at once introduces a question: in which order does the class boot up? Further, if the class has parent classes, how does this change things? Read on for the simple results.

Read the rest of this article »

2 Comments

Function Variables

Tags: ,

AS3, AS2, and JavaScript have some strange rules regarding the initialization of variables. These are shocking and perhaps ridiculous to users of C and Java. This article covers one particularly insane quirk.

Read the rest of this article »

6 Comments

Overriding Variables

Tags: , ,

AS3 makes some strange things possible. Even stranger, it seems to do this without any warning by its compiler: MXMLC. It seems as though one of these strange things is the ability to override the variables of your parent classes.

Read the rest of this article »

3 Comments

Initializing Constants

Tags:

Today I bring to you… another silly compiler quirk! Read on for the silliness.

Read the rest of this article »

No Comments

Pointless Code

Tags: , ,

We’ve all seen it, perhaps even in our own code. It’s something I think we do because we’re not really sure what would happen if we didn’t do it. Here are some little tidbits of pointless code I’ve been seeing recently:

Read the rest of this article »

7 Comments

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