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

little probleme with UIScrollBar

Explorer ,
Dec 23, 2009 Dec 23, 2009

Copy link to clipboard

Copied

Hi,

Im having a problem with my UIScrollBar.,

I have a dynamic text field "My_text" in the scene.  the text is aplied to it  dynamicly    like this: My_text=String(theVarText). The text appear but the scroll dont scroll. but if i set the text in the textfield in the actual FLA and export the movie, the scroll works, Can someone tel me WHY ??

TOPICS
ActionScript

Views

355

Translate

Translate

Report

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 ,
Dec 23, 2009 Dec 23, 2009

Copy link to clipboard

Copied

When you write to a textfield that has a scrollbar assigned to it, you need to refresh the scrollbar if you change/add text after the file is playing.  I don't have the help documents available at the moment, but if you should be able to look thru the UIScrollbar methods and find the method that is used for this... possibly reset() or refresh() or update().  So once you write to the textfield, use that command to make the scrollbar readjust to the new next situation.

Votes

Translate

Translate

Report

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
Explorer ,
Dec 25, 2009 Dec 25, 2009

Copy link to clipboard

Copied

thanks     .i will look thru the UIScrollbar methods and find  happy new year !

Votes

Translate

Translate

Report

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
Explorer ,
Dec 25, 2009 Dec 25, 2009

Copy link to clipboard

Copied

LATEST
i found it 

yourScrollBar.update();

Votes

Translate

Translate

Report

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