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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T07:48:41+00:00 2026-06-09T07:48:41+00:00

everyone. Can I get a number of items from a ScrollPane component in Flash?

  • 0

everyone.

Can I get a number of items from a ScrollPane component in Flash? If yes, then how?

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-09T07:48:43+00:00Added an answer on June 9, 2026 at 7:48 am

    ScrollPane has one item which is the source parameter. If you want to know all the children within that source (and it’s a DisplayObjectContainer), you can use the .numChildren property of the SOURCE.

    If you want all the sub-children, you could iterate through all the children until you have you’re final number:

    var d:DisplayObjectContainer = scrollPane.source;
    
    function countChildren(container:DisplayObjectContainer):int {
        var count:int = container.numChildren;
        var tmp:DisplayObject;
        var i:int = count;
        while(i--){
            tmp = container.getChildAt(i);
            if(tmp is DisplayObjectContainer){
                count += countChildren(tmp);
            }
        }
        return count;
    }
    

    so call countChildren() with the source of the scrollPane.

    if(scrollPane.source is DisplayObjectContainer){
        countChildren(DisplayObjectContainer(scrollPane.source));
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello everyone i have an question about firefox add-on: How i can get the
What I don't understand about C/C++ is: Yes, everyone uses it to get blazingly
I have an app, that will have a frontend where everyone can see and
In a project I have a stream for users, everyone can share and comment
Hey everyone I got a javascript problem I can't seem to find a specific
Currently we have web-services built up so that everyone (with valid service account) can
How should I store Birthdate's in MySQL so that I can easily update everyone's
Ok, I'm pretty sure isNumber is finally working. Thanks to everyone for the help.
Hello everyone i am trying to format the input number range with php number_format
Hey everyone, got a quick question that I can't seem to find anything about...

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.