Hi all,
i have a tricky question: how to process css inside a xml file, which is use for display in FlashMX pro? I’ve done the kirupa’s tutorial on XML, and find other infos on the w3schools site on how to implant css in xml, which when not in flash display the right font/color.
ok here what i am doing: first, i did a very simple css file which look like this:
NAME
{
font-family: “Trebuchet MS”;
font-size: 10px;
color: #CC6600;
}
then the xml file:
[size=2]<?xml version=“1.0”?>
<?xml-stylesheet type=“text/css” href=“http://jdl.ip-max.net/ipmax/css/menufr.css”?>
<menu.fr>
<menu.principal>
<NAME>services</NAME>
</menu.principal>
<menu.principal>
<NAME>clients</NAME>
</menu.principal>
<menu.principal>
<NAME>contacts</NAME>
</menu.principal>
</menu.fr>
[/size]
note that if i display my xml file in IE, the xml display ‘services’, ‘clients’ and ‘contact’ on one row, but everythings fine with color etc.
in flash, i based my code on kirupa’s tutorial on XML (firstchild and nodes).
so here i am, with no idea on what to do to make that work.
hope you can help
p.s.: you can find the fla here