• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 244
  • Last Modified:

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
0
frankybones
Asked:
frankybones
  • 6
1 Solution
 
frankybonesAuthor Commented:
Here is an example of what I am talking about:

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

0
 
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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:
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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now