views:

31

answers:

0

I have two text areas in adobe flex - an original and a target text area. The original text area has text in it and some of the words are in bold (the user has the option to bold whatever selection in the text they want via a bold button). What is the easiest way to maintain this text formatting when copying it over to the target text area? I know about getStyle and setStyle but would using that mean I'd have to individually get the style of each character in the old text when copying over, check if it is bold, and set it again to bold in the target text area? I know there's got to be an easier way than that but I just can't think of it right now. Much appreciated

Also, I know it is easy with the new text layout framework but I want it done so it's compatible with older versions of flash than ver. 10 as well. Thanks!