# Problem of loading dynamic text with a scroll bar

**URL:** <https://forum.kirupa.com/t/problem-of-loading-dynamic-text-with-a-scroll-bar/157331>\
**Category:** Uncategorized\
**Created:** [August 1, 2005, 6:28am UTC](https://forum.kirupa.com/t/problem-of-loading-dynamic-text-with-a-scroll-bar/157331 "2005-08-01T06:28:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joymj](https://avatars.discourse-cdn.com/v4/letter/j/3be4f8/32.png) [@joymj](https://forum.kirupa.com/u/joymj)\
**Post date:** [August 1, 2005, 6:28am UTC](https://forum.kirupa.com/t/problem-of-loading-dynamic-text-with-a-scroll-bar/157331/1 "2005-08-01T06:28:59Z")

</div>

Hi

Well here is the problem that I face.

I have a dynamic text content which displays content read from an XML.  
I have used the UI Component Scroll bar to scroll through content longer than the  
text field area.  
To use it so as to scroll as per the content size the control is sent to another frame so as to get refreshed.  
How ever the scroll appears default at the text area even when there is no need of one.

How do I solve this problem???  
This is wat I did in my application:

My application has three frames.  
on the first frame:

initially at start of the program:  
scroller.\_visible = false; ( scroller is the instance name for the UI  
Component scroll )

after the words to display on the text area are extracted from the XML into meaning\_txt following is the action provided:

scroller.\_visible = (meaning\_txt.maxscroll\>4);  
gotoAndPlay(“re” ) ;

To refresh the scroll bar…this is the action on the third frame of the application:  
gotoAndStop(“re” ) ;

“re” is a frame name for the second frame.

Is there any other way to solve this problem???

* * *

With regards  
Joy MJ
