Archive for August, 2011

Dictionary Memory Leak

The Dictionary class provides perhaps the most useful support for weak references—and therefore garbage collection control—in the AS3 Flash API. However, due to a subtle error in its documentation, you may inadvertently be leaking a lot of memory. Today’s article shows you how this can happen and how you can easily fix the leak.

Read the rest of this entry »

Tags: , , ,

23 Comments

Casting Questions Answered

You, my dear readers, have posed many fine questions and chimed in with many excellent suggestions to my previous articles on typecasting and today I will answer them! (for newcomers to this series, read on for tips showing how to easily speed up your casts by 200x or more)

Read the rest of this entry »

Tags: , , , , ,

9 Comments

No Article Today

Sorry, but there will be no article today. Stay tuned for more articles in the near future!

12 Comments

What is an int?

If you’re thinking “I know what an int is”, you need to take this little quiz to find out for sure!

Read the rest of this entry »

Tags: , , , ,

5 Comments

Faster Logic With Bitwise Operators

Logical operators are necessary in every app, so it’s unfortunate that they are so slow in AS3. That’s why I was happy to see a potential alternative in a recent comment by Skyboy. Today’s article shows you how to do logic faster by avoiding logical operators (e.g. &&) and using their bitwise (e.g. &) operator counterparts instead.

Read the rest of this entry »

Tags: , , , , , , ,

24 Comments