everyone.
Can I get a number of items from a ScrollPane component in Flash? If yes, then how?
Thanks in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
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:
so call countChildren() with the source of the scrollPane.