# Dynamically loading content

**URL:** <https://forum.kirupa.com/t/dynamically-loading-content/63973>\
**Category:** flash\
**Created:** [September 12, 2004, 2:24am UTC](https://forum.kirupa.com/t/dynamically-loading-content/63973 "2004-09-12T02:24:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ignusb](https://avatars.discourse-cdn.com/v4/letter/i/9f8e36/32.png) [@ignusb](https://forum.kirupa.com/u/ignusb)\
**Post date:** [September 12, 2004, 2:24am UTC](https://forum.kirupa.com/t/dynamically-loading-content/63973/1 "2004-09-12T02:24:37Z")

</div>

Hi all,  
I’m sure there is a tutorial somewhere out there covering this, i just can’t find it. I want to dynamically load content into a text box, and sure thats easy enough, but in the .txt file i want to load from, I want to not only be able to have the text, but control over the font and font size… is this possible?  
Also, if the text is too long, i want a scroll bar to appear, with certain colours on it, i.e. based around fx(00ff00) so all green, just different shades…

I hope this makes sense to people, cause reading it over it only just does to me.

Thanks all,  
ignusb

---

<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:** [September 12, 2004, 2:35am UTC](https://forum.kirupa.com/t/dynamically-loading-content/63973/2 "2004-09-12T02:35:08Z")

</div>

you can’t find it?

[http://www.kirupa.com/developer/mx/multiple\_dynamictext.htm](http://www.kirupa.com/developer/mx/multiple_dynamictext.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:** [September 12, 2004, 6:19am UTC](https://forum.kirupa.com/t/dynamically-loading-content/63973/3 "2004-09-12T06:19:47Z")

</div>

err, that really doesnt answer my question, that’s just how to dynamically load text, but I want to know how to do it with formatting in the .txt file.  
And also, I don’t always want the scrollbar there.

---

<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:** [September 12, 2004, 8:01am UTC](https://forum.kirupa.com/t/dynamically-loading-content/63973/4 "2004-09-12T08:01:58Z")

</div>

what do you mean formatting?

You can just forget about the scroll bar part, just leave it out.

---

<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:** [September 12, 2004, 8:52am UTC](https://forum.kirupa.com/t/dynamically-loading-content/63973/5 "2004-09-12T08:52:56Z")

</div>

> [@GreenLantern](#):
>
> what do you mean formatting?
> 
> You can just forget about the scroll bar part, just leave it out.

I’m trying to apply font styles and sizes to text in a .txt file, but with the possibility of different fonts and sizes in each file…  
I have no idea how to do this, but just to give an idea, something like this:

fnt=arial; size=24; colour=ff0000 &title goes here&  
fnt=times new roman; size=16; colour=ababab &body copy in here&

I hope this has given you an idea of what I am looking for.

---

<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:** [September 13, 2004, 7:05am UTC](https://forum.kirupa.com/t/dynamically-loading-content/63973/6 "2004-09-13T07:05:46Z")

</div>

[http://livedocs.macromedia.com/flash/mx2004/main\_7\_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash\_MX\_2004&file=00001040.html](http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&file=00001040.html)  
?

scotty(-:

---

<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:** [September 13, 2004, 7:30am UTC](https://forum.kirupa.com/t/dynamically-loading-content/63973/7 "2004-09-13T07:30:46Z")

</div>

or you could use css to format the external text:  
[http://www.kirupa.com/developer/mx2004/cssfile.htm](http://www.kirupa.com/developer/mx2004/cssfile.htm)
