Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8177109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T23:25:42+00:00 2026-06-06T23:25:42+00:00

How can I get the RichEditableText control to display the text in pages. Just

  • 0

How can I get the RichEditableText control to display the text in pages. Just like in Microsoft Word, it should have visual pagebreaks which are determined by a page-size setting so that, I can switch to A4, US Letter size, etc and the text will flow into vertical rectangles (pages) accordingly.

enter image description here

I sense I should use the Text Layout Framework, TextFlow actually.
But what is the starting point and what should I focus on, in order to get this paper layout.

Any help is appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T23:25:44+00:00Added an answer on June 6, 2026 at 11:25 pm

    You can’t do it with the default RichEditableText component, but here’s a little snippet that should get you started:

    <s:VGroup gap="20">
        <mx:UIComponent id="page1" width="50" height="50" />
        <mx:UIComponent id="page2" width="50" height="50" />
    </s:VGroup>
    

    Replace the sizes with your A4 or other sizes. If you want the number of pages to be dynamic, you’ll have to use a DataGroup instead.

    Now we create one TextFlow object, we assign it one ContainerController per page, and we have it lay out the text over our pages:

    var tlf:TextFlow = TextFlowUtil.importFromString(
        "Some very long text that spans many pages goes in here."
    );
    for each (var page:Sprite in [page1, page2]) {
        var c:ContainerController = new ContainerController(
            page, page.width, page.height
        );
        tlf.flowComposer.addController(c);
    }
    tlf.flowComposer.updateAllControllers();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can we get the variables in the query string in Node.js just like we
I can get the word under the cursor with or , and I can
Can get the command history by using cursor key (like up arrow key) in
I can get other capybara methods like visit, fill_in, select etc.. to work. but
I can get a colored ListLinePlot by doing something like ListLinePlot[Range[420, 680, 20], ColorFunction
I can get diffs between two revisions using something like svn diff -r 100:200
One can get the text of the selected item in the list-view of a
Can we get an ivar or a property from a NSString like we can
i can get the .htpasswd to work with .htaccess I have the following lines
we can get the environment variable in C like this: extern char **environ; int

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.