For performance and memory reasons, text in <s:RichText> cannot be selectable or editable. You can use <s:RichEditableText>, which does not have scrollbars, or you can turn the scrollbars of <s:TextArea> off by setting horizontalScrollPolicy and verticalScrollPolicy to "off".
Gordon Smith Adobe Flex SDK Team From: [email protected] [mailto:[email protected]] On Behalf Of Sebastian Mohr Sent: Saturday, June 13, 2009 4:18 AM To: [email protected] Subject: [flexcoders] Selectable <s:RichText in Flex 4? hi Flexcoders, does anybody know how I can make a text selectable in a Spark <s:RichText-Component? I know I could use the <s:TextArea instead: <s:TextArea width="400" height="100"> <s:text>This is a multiline, editable Spark TextArea control. If you need a non-editable multiline control, use the Text control.</s:text> </s:TextArea> ... but we don't want to have any scrollbars for the text. In our projects we always use selectable texts. If the <s:RichText-component does not provide this functionality, we would never use this component. Here is the very simple Flex 4 - code I am dealing with: <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/halo<http://ns.adobe.com/flex/halo>" xmlns:s="library://ns.adobe.com/flex/spark<http://ns.adobe.com/flex/spark>" width="100%" height="100%" > <s:Graphic> <s:RichText x="0" y="0" width="75" fontFamily="Times" fontSize="15" > <s:text>Hello World</s:text> </s:RichText> </s:Graphic> </s:Application> Regards, masu

