Some AS3 goodies to reuse.