Xml Gallery what else?

You are all familiar with the basic xml gallery(http://www.kirupa.com/developer/mx2004/xml_flash_photogallery5.htm) I guess.What I am trying to do is apply css formatting to the dinamycally loaded text.

here is what I came up with

AS:

for (i=0; i<total; i++) {
image* = xmlNode.childNodes*.childNodes[0].firstChild.nodeValue;
description* = xmlNode.childNodes*.childNodes[1].childNodes[0].firstChild.nodeValue;
style_txt = new TextField.StyleSheet();
style_txt.load(“style.css”);
desc_txt.styleSheet = style_txt;
desc_txt.html = true;

    }

xml:

<pic>
<image>images/31072003_2.jpg</image>
<caption ><p class=“one”>Eidsvolen</p></caption>
</pic>

css:

.one {
font-family: Arial, Helvetica, sans-serif;
font-size: 20px;
font-weight: bold;
color: #ff0000;
}

I’d appreciate greatly any help!

at least a link to some tutorial ?:geek: