Link to home
Start Free TrialLog in
Avatar of frankybones
frankybones

asked on

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
Avatar of frankybones
frankybones

ASKER

Here is an example of what I am talking about:

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

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.
ASKER CERTIFIED SOLUTION
Avatar of Montoya
Montoya

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
Hey Iammontoya,

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