# CSS, PHP, and importing text

**URL:** <https://forum.kirupa.com/t/css-php-and-importing-text/42728>\
**Category:** flash\
**Created:** [February 12, 2004, 8:15am UTC](https://forum.kirupa.com/t/css-php-and-importing-text/42728 "2004-02-12T08:15:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jayumi](https://avatars.discourse-cdn.com/v4/letter/j/ecccb3/32.png) [@Jayumi](https://forum.kirupa.com/u/Jayumi)\
**Post date:** [February 12, 2004, 8:15am UTC](https://forum.kirupa.com/t/css-php-and-importing-text/42728/1 "2004-02-12T08:15:35Z")

</div>

I read the tutorial on how to get a CSS imported into Flash MX 2004… but rather than loading a few sentences, I’d like to apply the stylesheet to a dynamic text box so that whatever is loaded in it will recieve the styles. Also, what is the best way to import a document with html text into a dynamic text box? Thanks in advance :puzzle:

---

<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:** [February 12, 2004, 7:42pm UTC](https://forum.kirupa.com/t/css-php-and-importing-text/42728/2 "2004-02-12T19:42:40Z")

</div>

loadVars(“html.txt”)  
onLoad, textfield.htmlText=loadVars.content…  
Gives you a rough idea…  
and the css style is applied to a textfield, not text, so  
-load text content  
-if load ok,  
-load stylesheet  
-apply to txtfield after setting loaded txt as content  
(I’m in the process of writing a tutorial, but not done yet…)

---

<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:** [February 12, 2004, 8:00pm UTC](https://forum.kirupa.com/t/css-php-and-importing-text/42728/3 "2004-02-12T20:00:46Z")

</div>

:\*( I’m very new to flash mx and know virtually nothing of actionscript, so I didn’t understand much of what you just said lol… could you put it in more noobish terms? like… write out the code? I’d be very much obliged.

---

<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:** [February 12, 2004, 8:10pm UTC](https://forum.kirupa.com/t/css-php-and-importing-text/42728/4 "2004-02-12T20:10:40Z")

</div>

> \*Originally posted by eyezberg \*  
> \*\*  
> (I’m in the process of writing a tutorial, but not done yet…) \*\*

means asap…not right now tho’, sorry

---

<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:** [February 12, 2004, 8:55pm UTC](https://forum.kirupa.com/t/css-php-and-importing-text/42728/5 "2004-02-12T20:55:17Z")

</div>

:sure:
