Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scrollbar doesn't work with dynamic text

Status
Not open for further replies.

Sleidia

Technical User
May 4, 2001
1,284
FR

Hello,

I made a script that retrieves mysql data every second and append it to the text contained in a dynamic text box that have the built in UI component "scrollbar" attached to it.

The problem is that the incremented text string doesn't have any effect on the scroll bar. Thus, the text gets bigger than the textbox and I can't scroll at all.

But I've noticed that the scrolbar would work when the text isn't called dynamically (put directly in the textbox in the *.fla file).

Is there any reason ??

Thanks for helping !!!! :)
 
BTW, ins_scrollbar.getEnabled() returns TRUE.

That's weird.
 
I don't have my code in front of me.. but I had a similiar problem. Very frustrating... I think I solved it by initizializing the text field with enough text to make it scroll, then it worked. BTW... sometimes I had this problem loading in text and other times I did not.

K
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top