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.
Posts Tagged conditionals
Pointless Code
Jul 31
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:
Spot The Problem
Jun 12
You could probably do this in most languages and it might be hard to spot. See for yourself.
The Truth of Strings
Jun 7
What strings are true? The answer may surprise you.
Fancy Or
Jun 7
The lowly || operator in the hands of AS3 and JavaScript is not so lowly. Here’s a quick time saver.