1 person found this helpful
After sending message
textInput.text = "";
textInput.selectionBeginIndex = 0;
first two are correct but Ive them before;p
but when I add this one: textInput.selectionBeginIndex = 0;
I have such error:
1119: Access of possibly undefined property selectionBeginIndex through a reference with static type spark.components:TextArea. chat.mxml livechat/src line 60 Flex Problem
actually this code i have given for TextInput/TextArea controls in Flex 3.0 where its working properly. For Flex 4.0 we have to see for another property.
Ive found something like that: tiChatText.setSelection(0)
now the cursor is on the text area
but still you cant type in it:/
setSelection wont work here its to show selected text by giving(start, end) indices.
you try textArea.paragraphStartIndent = 0;
also an error :/
1119: Access of possibly undefined property paragraphStartIndent through a reference with static type spark.components:TextArea. chat.mxml livechat/src line 60 Flex Problem