# \[xml\] scrolling dynamically loaded xml text

**URL:** https://forum.kirupa.com/t/xml-scrolling-dynamically-loaded-xml-text/51438
**Category:** programming
**Created:** [May 12, 2004, 9:59pm UTC](https://forum.kirupa.com/t/xml-scrolling-dynamically-loaded-xml-text/51438 "2004-05-12T21:59:47Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![flow14](https://avatars.discourse-cdn.com/v4/letter/f/ec9cab/32.png) [@flow14](https://forum.kirupa.com/u/flow14)
#### Post date: [May 12, 2004, 9:59pm UTC](https://forum.kirupa.com/t/xml-scrolling-dynamically-loaded-xml-text/51438/1 "2004-05-12T21:59:47Z")

</div>

Before I get into this, I’ll say that I’ve read the kirupa tutorial on this subject as well as the Macromedia technote…neither seemed to solve my problem.

Basically, I’m loading an XML file into a dynamic text box. I would like to use the Flash scroller component to scroll through the text, but when I drag the component onto the stage and attach it to the text box, nothing happens.

I did manage to make some simple buttons of my own that will scroll the text, but I would prefer to use the component.

Any ideas?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 3, 2004, 2:47am UTC](https://forum.kirupa.com/t/xml-scrolling-dynamically-loaded-xml-text/51438/2 "2004-08-03T02:47:11Z")

</div>

in flash mx u can drag scroll to stage and attach to textfield but in 2004/2004pro u cant.  
so i asume u using 2004 or higher.  
use the textarea instead. if the word length is greater then the box it will auto  
make a scroll bar out of it

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 3, 2004, 7:00am UTC](https://forum.kirupa.com/t/xml-scrolling-dynamically-loaded-xml-text/51438/3 "2004-08-03T07:00:01Z")

</div>

> [@new bird](#):
>
> in flash mx u can drag scroll to stage and attach to textfield but in 2004/2004pro u cant.  
> so i asume u using 2004 or higher.  
> use the textarea instead. if the word length is greater then the box it will auto  
> make a scroll bar out of it

it was Flash MX, and the problem was with dragging a scroll on stage and attaching it. The scroll bar appeared, but being dynamic text it never realised there was anything to scroll and so didn’t do anything.  
Just upgraded to 2004, so i’ll give textarea a shot, thanks 🙂

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 4, 2004, 1:44am UTC](https://forum.kirupa.com/t/xml-scrolling-dynamically-loaded-xml-text/51438/4 "2004-08-04T01:44:35Z")

</div>

> [@se99jmk](#):
>
> it was Flash MX, and the problem was with dragging a scroll on stage and attaching it. The scroll bar appeared, but being dynamic text it never realised there was anything to scroll and so didn’t do anything.  
> Just upgraded to 2004, so i’ll give textarea a shot, thanks 🙂

give the text field a instan name  
at the scrollbar in the parameter [color=red]targetpath[/color] put the textfield  
instant name in it
