How exactly does Flex validate text against restrict property? Is it posible to force this validation in case the text gets into a field by other than typing means?
In TextField, it is part of the player. In TLF, it is done by the TLF library. I don’t know if there is an API you can call, although I guess you could fake keyboard events instead of pasting or assigning text.
I think you can use regex and String.replace instead
Yes, regex is the way to go.