Category: Articles

Using the Key class

Written by Aaron Clinger on January 27th, 2009

CASA Lib’s Key class creates an easy way to receive events when multiple keys are held/released (key combo) and when a sequence of keys are pressed (e.g. a word is typed).

It also returns the ability in ActionScript 3.0 to easily determine if a key is pressed/down. A feature we were used to in AS2.

Simplifying Garbage Collection with CASA Lib

Written by Mike Creighton on December 21st, 2008

One of the most important things in ActionScript 3 is adhering to good garbage collection practices. With the release of CASA Lib for AS3, we’ve done our best to make that chore as easy as possible—extending the benefits to your own classes and work flow.

Dynamic Font Loading

Written by Aaron Clinger on January 10th, 2007

This article originally appeared on the old wiki in early 2007 and addresses font loading in ActionScript 2.0. With the introduction of ActionScript 3.0 there are quite a few simple techniques to load fonts and we found that FontManger was no longer needed.

If you wish to load fonts in AS3 you can do so with SwfLoad and external asset classes.

Many large flash projects or multilingual sites are prime candidates for dynamic font loading and switching. Unfortunately this is not as easy as a loadMovie call. Flash makes it close to impossible to accomplish. So hard in fact that there are costly Flash components to handle this need. Hold onto your money; after reading this article you will be able to dynamically load fonts for free.