# Scroll bars

**URL:** <https://forum.kirupa.com/t/scroll-bars/20364>\
**Category:** Uncategorized\
**Created:** [May 7, 2003, 11:11pm UTC](https://forum.kirupa.com/t/scroll-bars/20364 "2003-05-07T23:11:30Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanman918](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@sanman918](https://forum.kirupa.com/u/sanman918)\
**Post date:** [May 7, 2003, 11:11pm UTC](https://forum.kirupa.com/t/scroll-bars/20364/1 "2003-05-07T23:11:30Z")

</div>

Hey,  
I read the tutorial on the site and did exactly what I was told. I’m trying to have a scroll bar that will scroll text loaded through a .txt file. When I publish my scroll bar doesn’t work and my text is double spaced. Anyone have any other tutorials or any other 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:** [May 7, 2003, 11:19pm UTC](https://forum.kirupa.com/t/scroll-bars/20364/2 "2003-05-07T23:19:23Z")

</div>

ok…now i have got my scroll bar working but my text is still doubled spaced. Does anyone know how to fix the dynamic text from being doubled spaced?

---

<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:** [May 8, 2003, 12:28am UTC](https://forum.kirupa.com/t/scroll-bars/20364/3 "2003-05-08T00:28:59Z")

</div>

here’s why [http://www.kirupaforum.com/forums/showthread.php?s=&postid=189323#post189323](http://www.kirupaforum.com/forums/showthread.php?s=&postid=189323#post189323)

and here’s answer [http://www.kirupaforum.com/forums/showthread.php?s=&postid=189241#post189241](http://www.kirupaforum.com/forums/showthread.php?s=&postid=189241#post189241)

😉

---

<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:** [May 8, 2003, 12:53am UTC](https://forum.kirupa.com/t/scroll-bars/20364/4 "2003-05-08T00:53:27Z")

</div>

I still seem to be having a little trouble. This is what I have:

“kirupatext=  
/nHello There!  
I am an example of text that has been loaded from a separate location on kirupa’s server.  
Best of all, notice that you can scroll the contents of the text up and down by clicking on  
the arrows. This is a nice, useful feature that you can use on your site.”

But is there anyway where I can just type a paragraph and let it go or do I have to figure out exactly where I want the returns and such?

---

<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:** [May 8, 2003, 1:03am UTC](https://forum.kirupa.com/t/scroll-bars/20364/5 "2003-05-08T01:03:34Z")

</div>

Also is there a way I can change the colors of the 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:** [May 8, 2003, 1:22am UTC](https://forum.kirupa.com/t/scroll-bars/20364/6 "2003-05-08T01:22:49Z")

</div>

nope… i don’t think there’s another way.

and read this:  
[http://www.kirupaforum.com/forums/showthread.php?s=&threadid=7271#post41587](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=7271#post41587)

---

<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:** [May 8, 2003, 1:49am UTC](https://forum.kirupa.com/t/scroll-bars/20364/7 "2003-05-08T01:49:20Z")

</div>

Can you just please give me a quick example of how i use the /n and /r code inside the notepad file. Because by the way I showed you above I get the /n to actually show up when i publish. I don’t have to put it in a tag or anything do I?

---

<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:** [May 8, 2003, 2:06am UTC](https://forum.kirupa.com/t/scroll-bars/20364/8 "2003-05-08T02:06:04Z")

</div>

you use \*\*  
\*\*, not /n. :-\

---

<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:** [May 8, 2003, 2:36am UTC](https://forum.kirupa.com/t/scroll-bars/20364/9 "2003-05-08T02:36:37Z")

</div>

"kirupatext=

Hello There!  
I am an example of text that has been loaded from a separate location on kirupa’s server.  
Best of all, notice that you can scroll the contents of the text up and down by clicking on

the arrows. This is a nice, useful feature that you can use on your site."

That is what i have in my text file and the  
shows up in the published swf. What to do?

---

<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:** [May 8, 2003, 2:57am UTC](https://forum.kirupa.com/t/scroll-bars/20364/10 "2003-05-08T02:57:58Z")

</div>

i don’t have flash installed in this pc, so i can’t make an example for you. :-\

however, if you can’t get it to work, you could try something else:

you can use the \<br\> tag like you would in html. you just need to change the script a bit…

```auto
loadText = new loadVars();
loadText.load("kirupa.txt");
//creating the loadVarsText function
loadText.onLoad = function() {
scroller.html = true;
scroller.htmlText = this.kirupatext;
};

```

😉

---

<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:** [May 8, 2003, 3:13am UTC](https://forum.kirupa.com/t/scroll-bars/20364/11 "2003-05-08T03:13:04Z")

</div>

OK i think i got it…its kinda a pain in the \*\*\* but thanks for all the help!

---

<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:** [May 8, 2003, 3:14am UTC](https://forum.kirupa.com/t/scroll-bars/20364/12 "2003-05-08T03:14:33Z")

</div>

no problem, sanman. =)

---

<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:** [May 8, 2003, 9:49pm UTC](https://forum.kirupa.com/t/scroll-bars/20364/13 "2003-05-08T21:49:38Z")

</div>

Hey, I got another quick question. My dynamic text through a text file was working great in the root scene but now i’ve imbedded it into a movie clip with the instance name of “text”. I made some edits to the actionscript to compenstate for this but it does not appear to be working. This is the action script in which I have in the frame of the root directory.

loadText = new loadVars();  
loadText.load(“news.txt”);  
// creating the loadVarsText function  
loadText.onLoad = function() {  
\_root.text.scroller.html = true;  
\_root.text.scroller.htmlText = this.newstext;  
};

Can anyone help me?

---

<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:** [May 9, 2003, 6:50am UTC](https://forum.kirupa.com/t/scroll-bars/20364/14 "2003-05-09T06:50:11Z")

</div>

a/ you should define the onLoad handler before loading the text  
b/ use trace to check if “this.newstext” contains anything…

---

<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:** [May 9, 2003, 7:06am UTC](https://forum.kirupa.com/t/scroll-bars/20364/15 "2003-05-09T07:06:12Z")

</div>

How would I setup a trace? I mean this was working just fine in the root directory I just endbedded it into a movie clip called “text”.

---

<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:** [May 9, 2003, 9:35pm UTC](https://forum.kirupa.com/t/scroll-bars/20364/16 "2003-05-09T21:35:47Z")

</div>

\*\*

> Also is there a way I can change the colors of the scroll bar?  
> \*\*

you can change the color and look of your scroll bar if you use the flash MX component. You will need to drag it from the component box to the stage, then in the library, edit it from there.  
There is a comment frame for each part of the scroller when you break it down and it tells of how to edit it.:elderly:

---

<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:** [May 9, 2003, 11:43pm UTC](https://forum.kirupa.com/t/scroll-bars/20364/17 "2003-05-09T23:43:01Z")

</div>

OK thanks for all the help guys. Coolidge I like that way the best…its easy 🙂 Its looking good.
