Hi,
I have a render problem with an html text from xml. There’s a space between words that is not rendered except when I rollover(this is a link).
It’s like that basically :“Also, check out ourservices” then when I rollover it’s “Also, check out our services”
Here’s my xml node :
<message>
<![CDATA[ Welcome. I have set up a few unique features for you based on our discussion. Below you will find some projects that I feel are a good representation of some of the work that may be of greater interest to you based on your project.<br /><br />Also, be sure to check out our <a href='asfunction:_root.launchServices'>services</a> as we put some detail into how we approach projects such as yours.]]>
</message>
Now the code :
var uMessage:String=loginXML.firstChild.childNodes[1].childNodes[3].firstChild.nodeValue;
txt.html = true;
txt.wordWrap = true;
txt.multiline = true;
txt.condenseWhite = true;
txt.autoSize=true;
// create new style sheet object
var CSS:StyleSheet = new TextField.StyleSheet();
// load CSS file
CSS.load(CSS_FOLDER+url);
// define onLoad handler
CSS.onLoad = function(success) {
if (success) {
txt.styleSheet = CSS;
txt.htmlText=uMessage;
} else {
trace("CSS file failed to load!");
}
};
Sorry if I don’t post the fla, there’s too much files in action just to separate that particular one.
Did you have such weird issue before ? Or I just missed something and I did something wrong ?
Thank you for your help.