# Scrollbar - Dynamically loads text

**URL:** https://forum.kirupa.com/t/scrollbar-dynamically-loads-text/96678
**Category:** Uncategorized
**Created:** [December 12, 2003, 6:11am UTC](https://forum.kirupa.com/t/scrollbar-dynamically-loads-text/96678 "2003-12-12T06:11:46Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Lacuna](https://avatars.discourse-cdn.com/v4/letter/l/edb3f5/32.png) [@Lacuna](https://forum.kirupa.com/u/Lacuna)
#### Post date: [December 12, 2003, 6:11am UTC](https://forum.kirupa.com/t/scrollbar-dynamically-loads-text/96678/1 "2003-12-12T06:11:46Z")

</div>

I followed the directions directly from flashkit but somewhere’s along the way i’ve gone astray. I cant figure it out and i really really dnt want to start from scratch…

here’s my fla, any help?

[http://www.cyberwebs.org/test/scrollbar.fla](http://www.cyberwebs.org/test/scrollbar.fla)

Pleeeeeeease…

– Come on boys, help a lady in distress… :p:

~~ Seretha :love:

---

<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: [December 12, 2003, 8:54am UTC](https://forum.kirupa.com/t/scrollbar-dynamically-loads-text/96678/2 "2003-12-12T08:54:29Z")

</div>

First, I would like to say thank you for your email tut in the forums. I learned from it and still use it for reference all the time!! 😛

Now, with your fla; I played with it for a little bit and found that I couldn’t even get the text to load into the text box!! ?? I would suggest using:

```auto

lv = new LoadVars();
lv.onLoad = function (success){
	if (success){
		_root.hostTxt.hosting.text = this.crap;
	}
}
lv.load("hostingtxt.txt");

```

instead of LoadVariables. That may be one small prob. What exactly do you want to do? Just that textbox with a custom scroll bar??

---

<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: [December 12, 2003, 2:51pm UTC](https://forum.kirupa.com/t/scrollbar-dynamically-loads-text/96678/3 "2003-12-12T14:51:25Z")

</div>

…you probably couldnt get the text to load cause im an idiot and didnt upload the text file to the server… ooops :c)

and i’ll try that code out. thanks so much for the help!

~~ Seretha Blaze :love:

---

<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: [December 12, 2003, 3:16pm UTC](https://forum.kirupa.com/t/scrollbar-dynamically-loads-text/96678/4 "2003-12-12T15:16:16Z")

</div>

it’s still not scrolling… any ideas or is it worth it just to … dare i say it… start over… :c0

~~ Seretha :love:

---

<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: [December 13, 2003, 12:13am UTC](https://forum.kirupa.com/t/scrollbar-dynamically-loads-text/96678/5 "2003-12-13T00:13:35Z")

</div>

Well, I figured out why I couldn’t see the text. I made a txt file to use, but the color of the text was set to white! :crazy:

Now, your code, I don’t understand it at all. If you put a trace on a or b, you get [object] and a bunch of zeros respectively. As you may have read once upon a time - I am very lazy. 😛 I would take the IU scroll component, connect it to the textbox (lose the movieClip) then open your library, open up the folder that says ‘Flash IU Component’ and you have all the movieClips that make up the scroll bar. Adjust the crap out of it!! I know it’s time consuming, but it’s a lot easier and you don’t have to do any of the code, Flash does it for you.

Granted, you won’t _learn_ how to do it, but it is a solution.

[edit]one more thing - I found this on the net:  
[http://www.virtual-fx.net/vfx/tutorial/tutorial3\_214\_20020113.php](http://www.virtual-fx.net/vfx/tutorial/tutorial3_214_20020113.php)  
I think it explains how a scroll pane works, but it has a bunch of code at the bottom if you are not lazy like I. :)[/edit]

…nice elf.

---

<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: [December 13, 2003, 1:14am UTC](https://forum.kirupa.com/t/scrollbar-dynamically-loads-text/96678/6 "2003-12-13T01:14:27Z")

</div>

Try this
