Solved

Vertical ScrollBar on RichTextArea

Posted on 2013-01-10
2
1,078 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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Automatic Notifications 16 336
Adobe upload listbox 2 498
rebuild swf 5 467
How to create a simple "throw object" gesture on as3 / air mobile ? 3 1,183
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 outlines why you need to choose a backup solution that protects your entire environment – including your VMware ESXi and Microsoft Hyper-V virtualization hosts – not just your virtual machines.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

770 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