Posts Tagged conditionals

Conditional Compilation

MXMLC’s -define feature allows you to do two things: compile-time constants (as covered previously) and conditional compilation. Both are very useful, so today I’m covering conditional compilation.

Read the rest of this entry »

Tags: , ,

3 Comments

Pointless Code

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 entry »

Tags: , ,

2 Comments

Spot The Problem

You could probably do this in most languages and it might be hard to spot. See for yourself.

Read the rest of this entry »

Tags: ,

2 Comments

The Truth of Strings

What strings are true? The answer may surprise you.

Read the rest of this entry »

Tags: ,

No Comments

Fancy Or

The lowly || operator in the hands of AS3 and JavaScript is not so lowly. Here’s a quick time saver.

Read the rest of this entry »

Tags: ,

4 Comments