We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

how can i jump to the location of a particular button inside a scroll pane

leemichellewilson
on
Medium Priority
226 Views
Last Modified: 2010-04-03
Hi

i have a navigation bar and scroll pane on the stage.  Within the scroll pane i have a movie clip which doesn't really do anything but contains a bit of text and some buttons... the scroll pane only has a vertical scroll and not a horizontal so it's basically a list of information with the associated clickable logo (button) to the left of it.  I would like to have each submenubutton on the navigation bar show the relevant part of this information when pressed.  E.g. if options are A, B, C on menu and scroll pane automatically shows A (given that you must scroll down to see B and C as they are offscreen) I would like for the user to click on B and the B is shown in the scroll pane.  I think these are called anchors in html (not sure though) but I can't find any example in my flash textbook to help me do this.  The navigation bar is fully funtioning and set up and I plan to use the onpress and onrelease to jump to this page and show the user the appropriate selection... i've named the logos (buttons within the scroll pane) as i think this might help but don't know where to go from here! can this be done?

Thanks v. much.

Lee :O)
Comment
Watch Question

MontoyaProcess Improvement Mgr
CERTIFIED EXPERT

Commented:
Sounds like you want to use scrollpane.vposition("n")... where n is the positon for A, B, or C...

I'll post an example in a few minutes.
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview
Hi,

Did my reply answer your question. If so please close this question or if you need some more help on this feel free to ask.

Thanks,
KP

Commented:
in ActionScriot 3.0 you have to use

verticalScrollPosition=MyNewPosition

insted of setScrollPosition
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*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.