# CSS and dynamic flash

**URL:** <https://forum.kirupa.com/t/css-and-dynamic-flash/247603>\
**Category:** flash\
**Created:** [December 27, 2007, 2:20am UTC](https://forum.kirupa.com/t/css-and-dynamic-flash/247603 "2007-12-27T02:20:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sabayonerJoshua](https://avatars.discourse-cdn.com/v4/letter/s/258eb7/32.png) [@sabayonerJoshua](https://forum.kirupa.com/u/sabayonerJoshua)\
**Post date:** [December 27, 2007, 2:20am UTC](https://forum.kirupa.com/t/css-and-dynamic-flash/247603/1 "2007-12-27T02:20:45Z")

</div>

Hi, I am trying to style some dynamic text via CSS. Is this possible?  
My dynamic text is coming from an XML file and is beig brought in with the following function:

```auto

function getCurrentText(textObj, textNumber) {
 sectionNum=getXmlSection(mainObj, "section", "pages");
 currentPage=_root.link-_root.firstPageFrame;
 textObj.htmlText=mainObj["section"][sectionNum]["page"][currentPage]["texts"][0]["pageText"][textNumber].value;
 textSelectable(textObj);
}

```

And being called as follows:

```auto
 _root.getCurrentText(thisText2,1); 

```

The text is being read from an XML file but the text itself (whats in the dynamic text box) is not XML, its just text.  
Is it possible to link a css document to this text?

Thanks
