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 8799549
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:21:15+00:00 2026-06-14T00:21:15+00:00

Scroller can be added to Richeditabletext in mxml. <s:BorderContainer> <s:Scroller width=335 height=265 > <s:RichEditableText

  • 0

Scroller can be added to Richeditabletext in mxml.

<s:BorderContainer>
    <s:Scroller width="335" height="265" >
        <s:RichEditableText backgroundColor="0x900000"  id='_text'  color="0x000000" width="335" height="265"   text="Hellooooo"/>  
    </s:Scroller>
</s:BorderContainer>

But the same implemented in Actionscript throws Argument Error

ArgumentError: This operation is not supported.
at spark.components::Scroller/addElement()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\Scroller.as:2277]

Actionscript code by which throws error

var bc:BorderContainer = new BorderContainer();
var scroller:Scroller = new Scroller();
var richEditableText:RichEditableText = new RichEditableText();
scroller.addElement(richEditableText);
bc.addElement(richEditableText);
changedTextComponent.addElement(bc);

Thanks in advance..

  • 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-14T00:21:16+00:00Added an answer on June 14, 2026 at 12:21 am

    Hi Below code may help you: –

    instead of scroller.addElement(richEditableText); replace scrollRTE.viewport = richEditableText and the problem is solved…

    BorderContainerClass.as

    package
    {
        import spark.components.BorderContainer;
        import spark.components.RichEditableText;
        import spark.components.Scroller;
    
        public class BorderContainerClass extends BorderContainer
        {
            public function BorderContainerClass()
            {
                super();
            }
    
            private var scrollRTE:Scroller;
            private var richEditableText:RichEditableText;
    
            override protected function createChildren():void
            {
                if(!scrollRTE)
                {
                    scrollRTE = new Scroller();
                    scrollRTE.width = 335; 
                    scrollRTE.height = 265;
                }
                if(!richEditableText)
                {
                    richEditableText = new RichEditableText();
                }
                richEditableText.setStyle('backgroundColor','0x900000');  
                richEditableText.setStyle('color','0x000000');  
                richEditableText.width = 335;
                richEditableText.height= 265;   
                richEditableText.text="Hellooooo";
                scrollRTE.viewport = richEditableText
                this.addElement(scrollRTE);
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've seen Giva labs' marquee scroller and SerialScroll but can't figure out how to
I'm making a 2d side scroller and for the life of me I can't
I added some special features to the sidebar of my webapplication. You can see
How can I make sure the scroller is always all the way down? What
Can anyone please recommend the best way to trigger a horizontal Jquery scroller using
I'm trying to remove a keydown event handler added by a scroller plugin into
How can I get the scroller around my JList component in the code given
Can any one tell me how can i implement a auto slider/scroller in my
How can I know when items are added to or removed from an ItemsControl
Why can't simplyscroll handle this div which has nested divs? ADDED INFO The scrolling

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.