My each TextFrame can have many contents and styles and I need to change their contents and styles.
So I save each contents in Flex but when I set textFrame.contents, all styles are deleted, that is normal... but how to save Textframe contents and styles ( bold,italic parts of text ... ) in order to use them again ? I dont know how to store textFrame styles ....
Use TextStyleRanges and loop through that. If you set the contents of each texStyleRange separately, the styles will be preserved.