Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Scrollbar with dynamic text field?

Engaged ,
Nov 25, 2008 Nov 25, 2008
I have a dynamic text field, multi-line. I have attached a scrollbar component to it via drag and drop.

It is empty but gets text dumped into it via AS's appendText() method when the user clicks a button.

It works, but if there are more lines than what fits into the text field, the scroll bar does not "activate", and allow the user to scroll to see all of it.

I'm sure I am missing something simple here, can anyone please help. Thanks.
TOPICS
ActionScript
1.5K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Nov 25, 2008 Nov 25, 2008
Use the scrollbar's update() method after text is appended.
Translate
LEGEND ,
Nov 25, 2008 Nov 25, 2008
Use the scrollbar's update() method after text is appended.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Nov 26, 2008 Nov 26, 2008
Thanks, I figured it was something simple.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 26, 2008 Nov 26, 2008
Using the help docs in Flash is simple... that's how I found it.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 18, 2010 Nov 18, 2010
LATEST

I keep trolling through these threads but can't figure out my version of this same problem:

-AS3 in Flash CS5

-dynamic, multi line text box (nested inside of a movie clip, which is placed on the stage)

-scrollbar component

Text is loading fine, scrollbar component is linked, but does not scroll. I'm using the same text box over and over, loading different lengths of text (some of which needs to scroll) through xml.

I'm not sure how to get this to work. Looking through the flash help documents I either can't find the solution, or just don't know what to look for - and can't figure out how to apply the update() command that has been mentioned in these threads...

Any help/direction appreciated!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines