We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Scrolling Dynamic Data--strange thing happening here!

frankybones
frankybones asked
on
Medium Priority
281 Views
Last Modified: 2012-06-27
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
Comment
Watch Question

Author

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

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

Author

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.
Process Improvement Mgr
CERTIFIED EXPERT
Commented:
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..

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

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

Author

Commented:
Hey Iammontoya,

Did you get to look at the file yet?

Author

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

Author

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.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.