Solved

Vertical ScrollBar on RichTextArea

Posted on 2013-01-10
2
1,083 Views
Last Modified: 2013-01-10
Greetings.

Can someone please assist with showing me how to put a vertical scroll bar on a rich text area. I'm using flash builder 4.6.

Thanks

--------------

text.mxml file
------------------

<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                                 xmlns:s="library://ns.adobe.com/flex/spark"
                                 xmlns:mx="library://ns.adobe.com/flex/mx">
      <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
      </fx:Declarations>
      <fx:Script>
            
            <![CDATA[
                  import spark.utils.TextFlowUtil;
                  
                  XML.ignoreWhitespace = false;
            ]]>
                  
      </fx:Script>
      <fx:Declarations>
            <fx:XML id="text1" source="text1.xml" />
      </fx:Declarations>
      
      <s:RichText id="richTxt" width="338" height="167" horizontalCenter="0"
                        textFlow="{TextFlowUtil.importFromXML(text1)}"
                        verticalCenter="-8"/>

</s:WindowedApplication>

---------------
0
Comment
Question by:zerog
2 Comments
 
LVL 37

Accepted Solution

by:
CyanBlue earned 500 total points
ID: 38763514
I am doing something like this to add the scroller...

CyanBlue
<s:Scroller id="scroller" width="100%" height="100%" minViewportInset="1" focusEnabled="false"
			skinClass="com.company.skins.ScrollBarSkin">
	<s:Group clipAndEnableScrolling="true">
		<s:RichText width="97%" paddingBottom="15"
					textAlign="left" fontFamily="SOMEFONT" fontSize="24" color="#000000" text="" textFlow="{textFlowData}" />
	</s:Group>
</s:Scroller>

Open in new window

0
 

Author Closing Comment

by:zerog
ID: 38763789
Great stuff, works perfectly. Thanks
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How popular is Java FX these days? 5 358
Converting PDF to SWF with video embedded 11 458
Flex SDK setup 1 355
Display PHP content using Adobe AIR 9 474
First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
This article explains the steps required to use the default Photos screensaver to display branding/corporate images
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question