Hi There,
I am having problems displaying ‘%’ and ‘&’ in my text fields. I am using:
[COLOR=“RoyalBlue”]var myLV:LoadVars = new LoadVars();
myLV.onLoad = function (success:Boolean) {
if (success) {
main_mc.body_txt.htmlText = myLV.bodyCopy;
} else {
main_mc.body_txt.text = “There has been an error loading the requested information. Please contact the webmaster and report the fault”;
}
}
var cssStyles:TextField.StyleSheet = new TextField.StyleSheet ();
cssStyles.load(“styles/styles.css”);
cssStyles.onLoad = function (success:Boolean) {
if (success) {
main_mc.body_txt.styleSheet = cssStyles;
myLV.load(“copy/product01b.txt”);
} else {
main_mc.body_txt.text = “There has been an error loading the requested information. Please contact the webmaster and report the fault”;
}
}[/COLOR]
to load the text file and the style sheet.
I have two external files, a text file and a .css file
this is the css style:
[COLOR=“Red”]p {
font-family: “Arial Narrow”;
font-size: 18px;
}[/COLOR]
And this is the text file:
[COLOR=“Red”]&bodyCopy=<textformat leading=“2”><p>Save up to 30% on internet prices.</p></textformat>[/COLOR]
I have also embedded the symbol into my text field and have also embedded the font itself into my flash file. Has anyone any idea how I can display these symbols.
Cheers