Question
Spark Text Component Changes
I just checked in some changes around the spark text components for Flex 4. The summary is:
- Replace SimpleText with Label, a UIComponent version of the same component
- Instead of extending GraphicElement, RichText will extend UIComponent (like Label will)
- All of the spark text components will move to spark.components.*, so there will be spark.components.Label, spark.components.RichText, and spark.components.RichEditableText
- The base class for SimpleText and RichText, spark.primitives.supportClasses.TextGraphicElement, will now extend UIComponent (instead of GraphicElement) and be moved and renamed to spark.components.supportClasses.TextBase. All of our text skin parts will now be typed as TextBase instead of TextGraphicElement
- For now, RichEditableText and RichText will co-exist. Performance numbers showed that it may be possible to collapse them, but we don't have the time right now to do this. We will revisit this later on, time permitting.
A more extensive writeup around the these decisions is written up here: http://opensource.adobe.com/wiki/display/flexsdk/Spark+Text+Primitives+Decision . It was checked in to the trunk with revision 9948.
If you have any questions, please let me know.
Thanks,
Ryan
