I am developing an application that requires storage of styled text entered by users offline. I therefore have used htmlText to provide style capabilities to the text entered by users. However I have found that sharedobjects do not store the cdata that must be used for htmltext. I was a little unhappy with the fact that not only is this limitation undocumented but also the shared objects behave strangely in that even if you flush the shared object the data is returned from the shared object until you actually quit the app, when the data disappears, so even after a flush the data is not retrieved from the .sol file unless Flex has to do this. You don't want to know how much coding time was lost on that little puzzle, but I was pretty angry when I found out what was going on!
Given that the htmltext that is produced by richtext components is some way from xml and given that I have had difficulty getting <span> to actually style text is there a way to store the text in the shared objects with the style information. I'm thinking of encoding it as good xml and then pushing it back into the components as htmltext later but I don't know how I can do this without messing up the style information. The styling required is actually fairly limited, two or three styles at most (with different colours and some bullets) , it is not requiring any complex layot stuff. Any ideas!