# Scrolling a dynamically loaded txt file

**URL:** <https://forum.kirupa.com/t/scrolling-a-dynamically-loaded-txt-file/28518>\
**Category:** flash\
**Created:** [August 14, 2003, 4:41pm UTC](https://forum.kirupa.com/t/scrolling-a-dynamically-loaded-txt-file/28518 "2003-08-14T16:41:17Z")\
**Posts on this page:** 20\
**Page:** 2

<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 17, 2003, 7:49pm UTC](https://forum.kirupa.com/t/scrolling-a-dynamically-loaded-txt-file/28518/21 "2003-08-17T19:49:23Z")

</div>

I dont understand :-  
it seems to be working here

---

<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 17, 2003, 7:57pm UTC](https://forum.kirupa.com/t/scrolling-a-dynamically-loaded-txt-file/28518/22 "2003-08-17T19:57:52Z")

</div>

heres one example

---

<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 17, 2003, 7:58pm UTC](https://forum.kirupa.com/t/scrolling-a-dynamically-loaded-txt-file/28518/23 "2003-08-17T19:58:48Z")

</div>

and what happens when I scroll down

---

<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 17, 2003, 8:01pm UTC](https://forum.kirupa.com/t/scrolling-a-dynamically-loaded-txt-file/28518/24 "2003-08-17T20:01:28Z")

</div>

Look mine

---

<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 17, 2003, 8:10pm UTC](https://forum.kirupa.com/t/scrolling-a-dynamically-loaded-txt-file/28518/25 "2003-08-17T20:10:40Z")

</div>

How the hell did you get it to do that?

[edit]Oh, I know why. Its the font! I changed the font and it displays fine. Unbelieveable isn’t it?[/edit]

---

<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 17, 2003, 8:13pm UTC](https://forum.kirupa.com/t/scrolling-a-dynamically-loaded-txt-file/28518/26 "2003-08-17T20:13:36Z")

</div>

I sent you the files

---

<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 17, 2003, 8:19pm UTC](https://forum.kirupa.com/t/scrolling-a-dynamically-loaded-txt-file/28518/27 "2003-08-17T20:19:25Z")

</div>

Thats weird :!:

---

<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 17, 2003, 8:27pm UTC](https://forum.kirupa.com/t/scrolling-a-dynamically-loaded-txt-file/28518/28 "2003-08-17T20:27:21Z")

</div>

thanks claudio. one last question, if i wanted to put a link in, how would I do it? because I tried turning on “render as HTML” and putting in \< a href \> and all the other associated crap, but it didn’t work, do you know? or know anyone who does know? or know anyone who knows someone who does?

---

<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 17, 2003, 8:34pm UTC](https://forum.kirupa.com/t/scrolling-a-dynamically-loaded-txt-file/28518/29 "2003-08-17T20:34:31Z")

</div>

You would have to use something like this:

```auto
loadtotal = new LoadVars();
loadstuff = new LoadVars();
loadtotal.load("total-number.txt");
loadtotal.onLoad = function() {
one.html=two.html=three.html=month.html=true;
	postnum = this.total;
	three.htmlText = this.total;
	total = this.total;
	loadstuff.load(postnum add ".txt");
	loadstuff.onLoad = function() {
		one.htmlText = this.content;
		two.htmlText = this.yearday;
		month.htmlText = this.month;
	};
};[/AS]And use html tags on your text files
```

---

<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 17, 2003, 8:35pm UTC](https://forum.kirupa.com/t/scrolling-a-dynamically-loaded-txt-file/28518/30 "2003-08-17T20:35:34Z")

</div>

Thanks alot claudio.

When you say use tags, does that include the \< body \> \<head\> etc tags?

---

<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 17, 2003, 8:37pm UTC](https://forum.kirupa.com/t/scrolling-a-dynamically-loaded-txt-file/28518/31 "2003-08-17T20:37:38Z")

</div>

Nope.  
Check this:  
[http://www.macromedia.com/support/flash/ts/documents/htmltext.htm](http://www.macromedia.com/support/flash/ts/documents/htmltext.htm)

---

<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 17, 2003, 8:38pm UTC](https://forum.kirupa.com/t/scrolling-a-dynamically-loaded-txt-file/28518/32 "2003-08-17T20:38:40Z")

</div>

thanks for everything. I’ll post when the site is finished.

(grin)

---

<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 17, 2003, 8:39pm UTC](https://forum.kirupa.com/t/scrolling-a-dynamically-loaded-txt-file/28518/33 "2003-08-17T20:39:23Z")

</div>

welcome 😉

---

<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 17, 2003, 9:15pm UTC](https://forum.kirupa.com/t/scrolling-a-dynamically-loaded-txt-file/28518/34 "2003-08-17T21:15:40Z")

</div>

erk, I tried putting HTML formatting in the text file, but it doesn’t render the text as html even though one.html = true and one.htmlText = this.content, aint working. Sorry to bother, but how would I get it to work?

example, here is entry 17 edited:

content=\<p align=“left”\>So much news. not really anything that you care about but Wade and Hanna are now an item, which I’m sure Hanna would not want me to be posting on the internet. It sounds good, but it’s really lame 'cause one of my hobbies was beating on Hanna, but Wade thinks he now has to protect her to the extreme so he keeps shaking his fist at me. One day I’ll kick his \*\*\* so bad. I want to play a show and write a newsletter. So for a show, we need a drummer. For a newsletter we need people to sign up for the mailing list. Now. Thank you and I love you.

\< a href=“[http://www.anklespank.iwarp.com/mailinglist.html](http://www.anklespank.iwarp.com/mailinglist.html)”\> Mailing List \</ a\>

last thing - Steve’s essay for english about why ninjas are better than pirates. This is so illin’ yo. It’s Ill-legal… \< a href=“[http://www.anklespank.iwarp.com/neverendingqu.htm](http://www.anklespank.iwarp.com/neverendingqu.htm)”\> Here \</ a\>\</p\>

&yearday=30th 20 03&month=April

its exactly like above, only minus the spaces in the \< a \> tags and the \< /a \> shows up

---

<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 17, 2003, 9:19pm UTC](https://forum.kirupa.com/t/scrolling-a-dynamically-loaded-txt-file/28518/35 "2003-08-17T21:19:03Z")

</div>

It works fine here

---

<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 17, 2003, 9:20pm UTC](https://forum.kirupa.com/t/scrolling-a-dynamically-loaded-txt-file/28518/36 "2003-08-17T21:20:45Z")

</div>

again? figures.

[edit]I changed the font, and that didn’t make a difference. here is the code I am currently using

```auto
stop();
loadtotal = new LoadVars();
loadstuff = new LoadVars();
loadtotal.load("total-number.txt");
loadtotal.onLoad = function() {
        one.html=true;
        postnum = this.total;
        three.text = this.total;
        total = this.total;
        loadstuff.load(postnum add ".txt");
        loadstuff.onLoad = function() {
                one.htmlText = this.content;
                two.text = this.yearday;
                month.text = this.month;
        };
};

```

i did that because one is the only text field that requires HTML formatting.[/edit]

---

<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 17, 2003, 9:27pm UTC](https://forum.kirupa.com/t/scrolling-a-dynamically-loaded-txt-file/28518/37 "2003-08-17T21:27:39Z")

</div>

I sent you the files

---

<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 17, 2003, 9:35pm UTC](https://forum.kirupa.com/t/scrolling-a-dynamically-loaded-txt-file/28518/38 "2003-08-17T21:35:46Z")

</div>

Ok, that is incredibly weird.

The code there is almost the same as mine, only difference is you turned on html for all text boxes, yet, when I copy paste that into the file i’m using it stops working.

Conclusion: Working on my computer f\*cks your files up.

---

<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 17, 2003, 9:36pm UTC](https://forum.kirupa.com/t/scrolling-a-dynamically-loaded-txt-file/28518/39 "2003-08-17T21:36:44Z")

</div>

lol  
I dunno why it works for me but not for you  
😛

---

<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 17, 2003, 9:39pm UTC](https://forum.kirupa.com/t/scrolling-a-dynamically-loaded-txt-file/28518/40 "2003-08-17T21:39:19Z")

</div>

Unbelieveable isn’t it? Well, thanks once again.

[Previous page](https://forum.kirupa.com/t/scrolling-a-dynamically-loaded-txt-file/28518.md?page=1)

[Next page](https://forum.kirupa.com/t/scrolling-a-dynamically-loaded-txt-file/28518.md?page=3)
