Insert Text at specified position of TextInput, TextArea and TextField, etc. in Flex

 

Someone asked me how to insert text into input components such as TextInput and TextArea at a specified position programmatically.

Solution Summery:TextInput and TextArea are warped for the TextField interactive object contained in the package flash.text. TextField class provides the function replaceText() to help us to complete the insertion.

Demo