Scrolling Dynamic Data--strange thing happening here!

Okay here is the deal I am loading buttons out of the library based on an XML file.  I am using a scrollbar component to scroll the movie clip that the buttons are in.  I loads everything just fine, and it scrolls but it scrolls further than it should.  For instance it always acts like it has four more buttons than are showing.  Does anyone know why this would happen?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

frankybonesAuthor Commented:
Here is an example of what I am talking about:

frankybonesAuthor Commented:
I already know the info in those links and I already know who to scroll an object.  Every time I build a scrolling menu with an object already on the stage it works fine.  Here I have an empty movie clip with nothing on the stage.  I am filling that movie clip with objects out of the library using XML to determine how many buttons are being loaded.  When I do it this way it overscrolls the MC, I want to know why it does this.
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

MontoyaProcess Improvement MgrCommented:
I dont know exactly, since your fla is not available. i can tell you, however, that you can adjust the size of the box according to how many objects you have in there.. So, if you have 10 objects at 40 pixels wide, and there's 10 pixels in between them... 10pix x 10 = 100, 40 pixels x 10 = 400... that's 500 pixels, so 520 wide. Get my meaning?
There may be something else going on, but I can't tell you that without seeing it..

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
frankybonesAuthor Commented:

I follow what you are saying.  I guess I would have to write something that takes in account all of the menu["button',"btn"+1] variables the total width and start subtracting from there.  Any way here is a link to the file I am working on thank you for your help.

frankybonesAuthor Commented:
Hey Iammontoya,

Did you get to look at the file yet?
frankybonesAuthor Commented:
Hey All,

OMG! I am the dumbest person on the face of the earth.  My images that I am loading are like 500 x 400 and that is why it was overscrolling.  I changed the physical size of the images and it helped to adjust the scroll amount.  

Thank you for your help.


frankybonesAuthor Commented:
I awarded Iammontoya the points because he/she seems as though to have actually read the question and provided actual advise/ thought process that lead to the solution.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Flash

From novice to tech pro — start learning today.