Archive for June, 2009
The arguments magic variable has been around since the AS2 days. It used to be more useful than it is in AS3, but don’t overlook it completely!
There are many ways to clear an Array or Vector. I’m tired of seeing the foolish ones. Read this and make sure you’re not doing anything foolish:
AS3 has two ways you can typecast a variable. These ways are not equivalent. Let’s take a look at how they differ:
The function call operator () is one of the most straightforward, well-understood, and universal operators in all of programming. Let’s see how AS3 can butcher it:
When an object is converted to a String, it is first checked for a toString() method. But there are subtleties to this that you may not have considered.
I really want to like Vectors, the new typed array functionality in Flash 10. In fact, I use it as often as I can. But there are some really awkward things about it that make it a pain. Here are some gotchas:
You could probably do this in most languages and it might be hard to spot. See for yourself.