flex - Inserting text in text area at current cursor position from keyboard as well as from programmer made keyboard in flex4? -


i trying insert text @ current cursor position.i able insert text @ current cursor position keyboard not able insert text programmer made keyboard.

            var pos:int = tamain.selectionactiveposition;              if (pos != -1)             {                 tamain.text = tamain.text.substr(0, pos) + str + tamain.text.substr(pos, tamain.text.length - pos);                 tamain.selectrange(pos + str.length, pos + str.length);             }         }     ]]> </fx:script> 

Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -