Euro Symbol from Dynamic Text
Sorry, me again! I understand that this seems to be a pretty common problem. My euro symbol isn't showing up in the XML text I bring into Flash. I've worked with our developer to replace the euro symbol with "EURO" in the XML so that at least it shows up in Flash and I'm trying to use actionscript to change it back to the euro symbol. I found some script here (see the 2nd post) and I thought it looked promising but it's not working for me. Have I adapted it correctly?
function replaceSpecChars(txtField):Void {
for (var i = 0; i < txtField.text.length; i++) {
var euro:String = "EURO";
var euroPos:Number = txtField.text.indexOf(euro);
if (euroPos > -1) {
txtField.replaceText(euroPos, euroPos+3, "€");
}
}
}
replaceSpecChars(newsContent.articleHeadline.text);
