According to
the Adobe® Flex™ 2 Language Reference for Class TextArea, one is supposed to
call validateNow() on a textArea to sync up the htmlText and text properties
after programmatically setting one of them.
This seems to not be working.
I have a textArea in which I've initialized the htmlText property.
This seems to not be working.
I have a textArea in which I've initialized the htmlText property.
I have a function on this
textArea that selects the whole word when the word is enclosed in curly
braces and the user clicks on it. I then programmatically replace the textRange
according to what the user wants to something with fewer characters and styled
via htmlText. This is nicely reflected in the textArea. However, looks are deceiving, because if the user
clicks on that same word again, the selection is offset by the difference in
length between the old and new
strings.
I created a test button to call validateNow() on the textArea to force the htmlText property changes to get pushed to the text property, but it doesn't work.
The only way I can currently force them to sync up is to manually click in the text area (anywhere outside of the special bracketed words) and type a junk character. After that, my auto selection function works correctly again, because the htmlText is now once again in sync with the text property, as it was in the starting condition.
Any ideas how to get validateNow() to work as advertised?
Cheers,
Jeff
__._,_.___
I created a test button to call validateNow() on the textArea to force the htmlText property changes to get pushed to the text property, but it doesn't work.
The only way I can currently force them to sync up is to manually click in the text area (anywhere outside of the special bracketed words) and type a junk character. After that, my auto selection function works correctly again, because the htmlText is now once again in sync with the text property, as it was in the starting condition.
Any ideas how to get validateNow() to work as advertised?
Cheers,
Jeff
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
| Software development tool | Software development | Software development services |
| Home design software | Software development company |
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
__,_._,___

