Port of flash.text.*