PDA

View Full Version : Scrollbar


MechaTwiggy
12-01-2008, 02:07 AM
Hello, I'm not moderately talented at flash programming, and I need help. I tried googling, can't find anything specific enough. Anyway....

So I used the UIscrollbar component. And I want it to apply to multiple text fields with the same scroll bar. I've tried using this.setScrollTarget(); But I don't know how to assign it to multiple text fields. If any of you know how to do this, that'd be helpful :)

atomic
12-01-2008, 04:00 AM
The way to do it is to have a scrollbar component for each one of the textfields, each one controlling their own textfield, but to position them off stage (unseen) so that only the one on stage is visible and seems to control the scrolling of all the textfields...

You then set the scroll position of all the off stage scrollbar components, through their instance names and an onEnterFrame, based on the scroll position of the on stage scrollbar...

MechaTwiggy
12-01-2008, 09:44 PM
Ah makes sense. Thank ye very much.