# Need some help to dynamically Load text

**URL:** <https://forum.kirupa.com/t/need-some-help-to-dynamically-load-text/7733>\
**Category:** Uncategorized\
**Created:** [November 6, 2002, 4:31pm UTC](https://forum.kirupa.com/t/need-some-help-to-dynamically-load-text/7733 "2002-11-06T16:31:17Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arqos](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@Arqos](https://forum.kirupa.com/u/Arqos)\
**Post date:** [November 6, 2002, 4:31pm UTC](https://forum.kirupa.com/t/need-some-help-to-dynamically-load-text/7733/1 "2002-11-06T16:31:17Z")

</div>

You can check the site here.

[www.t-aos.com](http://www.t-aos.com)

The News Ticker is dynamically loaded from a txt file.

I want to do the same thing with the news section underneath it. Would anyone know how i could go about doing this ?

It had to be html capable also, so i can link stuff and make the colors different for the title and body of text. Its a pain in the butt to have to open the fla and edit the news through that.

---

<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:** [November 7, 2002, 2:17am UTC](https://forum.kirupa.com/t/need-some-help-to-dynamically-load-text/7733/2 "2002-11-07T02:17:16Z")

</div>

[LOAD VARIABLES TUTORAIL](http://www.actionscript.org/tutorials/beginner/loadVariables_and_loadVars/index.shtml)  
try this tutorial if you have any other problems post some code when you start 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:** [November 7, 2002, 3:30am UTC](https://forum.kirupa.com/t/need-some-help-to-dynamically-load-text/7733/3 "2002-11-07T03:30:32Z")

</div>

Not to mention that news ticker looks a lot like the head labs news ticker component for Flash MX.

The tutorial for it can be found on this site.

---

<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:** [November 7, 2002, 6:30am UTC](https://forum.kirupa.com/t/need-some-help-to-dynamically-load-text/7733/4 "2002-11-07T06:30:35Z")

</div>

Ok, the news ticker is dynamically loaded. It is Head Lab one.

The tutorial you linked me too was very confusing. It did not give a step by step way of how to create dynamically loaded text in a scrolling news section.

Just gave some sample codes with explination. Still not sure which to use and where to put it. Do i convert the text into symbol or do i just give it instance name and create the loadvariable in the same layer and tell it to load in in the news section instance name ?

Ah well. You know any other tutorials ?

---

<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:** [November 7, 2002, 6:44am UTC](https://forum.kirupa.com/t/need-some-help-to-dynamically-load-text/7733/5 "2002-11-07T06:44:40Z")

</div>

Hey Arqos,

Pls Check the attached fla, and tell us how it goes!

yours,  
h88

PS. I Think everyone knows how to add nodes to an XML file!

---

<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:** [November 7, 2002, 6:47am UTC](https://forum.kirupa.com/t/need-some-help-to-dynamically-load-text/7733/6 "2002-11-07T06:47:41Z")

</div>

btw, i’d like yout to have a look at this thread too!  
[http://www.kirupaforum.com/showthread.php?s=&threadid=8292](http://www.kirupaforum.com/showthread.php?s=&threadid=8292)

---

<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:** [November 7, 2002, 9:53am UTC](https://forum.kirupa.com/t/need-some-help-to-dynamically-load-text/7733/7 "2002-11-07T09:53:37Z")

</div>

Never used xml. But i can look it up. Ill check the zip.

---

<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:** [November 7, 2002, 10:02am UTC](https://forum.kirupa.com/t/need-some-help-to-dynamically-load-text/7733/8 "2002-11-07T10:02:46Z")

</div>

its very simple, just add for each message:

\< message \>ur message\< /message \> , w/o the spaces!

yours,  
h88

---

<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:** [November 7, 2002, 7:41pm UTC](https://forum.kirupa.com/t/need-some-help-to-dynamically-load-text/7733/9 "2002-11-07T19:41:18Z")

</div>

You guys seem to be confused on what im talking about.  
I checked the marquee fla.

Im not trying to dynamically load text for the news ticker . I said this twice. Im using the headlab news ticker and its already dynamically loaded.

What im trying to do, is dynamically load text into the News Section, The big Text Box, with all the news. I still dont know exactly what to do for this. I need the text to load in correctlywith spaces and headings / different colors for heading.

☹

---

<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:** [November 7, 2002, 8:20pm UTC](https://forum.kirupa.com/t/need-some-help-to-dynamically-load-text/7733/10 "2002-11-07T20:20:51Z")

</div>

then, check that thread:

[http://www.kirupaforum.com/showthread.php?s=&threadid=8292&highlight=txt%2Fasp](http://www.kirupaforum.com/showthread.php?s=&threadid=8292&highlight=txt%2Fasp)

hope this helps

yours,  
h88

---

<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:** [November 7, 2002, 10:09pm UTC](https://forum.kirupa.com/t/need-some-help-to-dynamically-load-text/7733/11 "2002-11-07T22:09:34Z")

</div>

Try this tutorial. It teaches you how to dynamically load text into a text box in Flash MX using the Scrollbar componant.

[http://www.kirupa.com/developer/mx/dynamic\_scroller.asp](http://www.kirupa.com/developer/mx/dynamic_scroller.asp)

You can HTML enable the textbox so you can use font tags and other font formatting tags in HTML to change the color, size, font of your text as well as underline, make it bold, make it italic, or make a link.

To HTML enable the textbox, follow that tutorial, but use this code instead of the code given (or just modify the code)…

```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:** [November 8, 2002, 2:33am UTC](https://forum.kirupa.com/t/need-some-help-to-dynamically-load-text/7733/12 "2002-11-08T02:33:42Z")

</div>

Thx. Im going to give this a try. Does the action script need to go in the same layer as the news text box ? And Do i just put it in frame 1 ?

---

<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:** [November 8, 2002, 3:24am UTC](https://forum.kirupa.com/t/need-some-help-to-dynamically-load-text/7733/13 "2002-11-08T03:24:11Z")

</div>

You put the AS in the frame you want the text to load in.

It doesn’t have to be on any specific layer, just in the frame where you want your text to load.
