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?

Franky
frankybonesAsked:
Who is Participating?
 
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..

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

http://www.cadadvantage.com/port.htm

0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
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.
0
 
frankybonesAuthor Commented:
Iammontoya,

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.

www.cadadvantage.com/scroller.zip

Franky
0
 
frankybonesAuthor Commented:
Hey Iammontoya,

Did you get to look at the file yet?
0
 
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.

Regards,

Franky
0
 
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.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.