AS3/flex/AIR utilities