PDA

View Full Version : 2/more dynamic textboxes, one scrollbar?


bkohsl
06-20-2005, 08:26 PM
Hi.

I managed to create a scrollbar for one dynamic text box. No problem.

How do I program the scrollbar actionscript to control 2 dynamic text boxes at the same time? Ie, I want 2 columns of text to appear in my movie, side by side, but have one scrollbar that will scroll both at the same time when a user toggles it. User scrolls down, both scroll down; user scroll up, both scroll up.

I thought about just putting in 2 columns in my .txt and making it one text file, but I don't think that is possible. The spacing will probably get horribly messed up.

If I really must, I'll put in 2 scrollbars (one per dynamic textbox), but it just seems really messy and crowded.

Any and all input/feedback/help will be greatly appreciated.

Thank you so very very much.

bkohsl
06-22-2005, 11:43 PM
ok, so kind of found a solution ... here (http://flashkit.com/board/showthread.php?p=3321177#post3321177)

But of course, I'm still encountering problems ... using the file scroll2texts.zip .

Basically, all I did was resize the textfields, which works fine. But then I am trying to use a custom scroller I designed, but I cannot get it to scroll. I do not need scroll arrows, or the scrollbar to be clickable. All I need is the scrollbutton to function.

I have kept all the scripting the same, but somehow it's screwing up. Did I not set my movie correctly?

Attached is the file. If anyone would be so kind as to point out what I did wrong, or help me correct the scripting, I'd appreciate it very much.