LiveCulture
April 8th, 2009, 07:26 PM
I am using a dynamic text field to show html formatted text from .txt files. I have set the html property both in the properties panel and in AS, and it mostly works. All html formatting show up just fine, except for when "&" is used. Flash CS3 documentation indicates that & is supported, so... ? All text after the & does not appear: the only text loaded is that that comes before it.
I am using CS3, AS2, publishing in Flash Player 9. Sorry if this problem has been addressed elsewhere, but I've had no luck with my searches.
Sample from the AS:
loadVars = new LoadVars();
loadVars.onLoad = function() {
// the data is loaded in the myLoadVars object as a property of the object
textHolder.condenseWhite = true;
textHolder.htmlText = loadVars.loadText;
}
loadVars.load("info/links.txt");
resume.onRelease = function(){
removeMovieClip("holder");
loadVars.load("info/resume.txt");
}
Sample from the html:
loadText=
<p>EDUCATION</p>
<p>Graduate Studies, Rhode Island School of Design, Providence, R. I. <br />
BFA Kansas City Art Institute, Kansas City, Mo.<br />
BA Drury College, Springfield, Mo.<br />
International Studies, Institute for American Universities, Avignon, France</p>
<p>AWARDS AND GRANTS</p>
<p>2007<br />
Creative Capital Professional Development Workshop & Retreat</p>
<p>2006<br />
Avenue of the Arts Award </p>
<p>2000-2002<br />
Annual Artist’s Grant, SSE Manufacturing, Salina, Kansas </p>
I am using CS3, AS2, publishing in Flash Player 9. Sorry if this problem has been addressed elsewhere, but I've had no luck with my searches.
Sample from the AS:
loadVars = new LoadVars();
loadVars.onLoad = function() {
// the data is loaded in the myLoadVars object as a property of the object
textHolder.condenseWhite = true;
textHolder.htmlText = loadVars.loadText;
}
loadVars.load("info/links.txt");
resume.onRelease = function(){
removeMovieClip("holder");
loadVars.load("info/resume.txt");
}
Sample from the html:
loadText=
<p>EDUCATION</p>
<p>Graduate Studies, Rhode Island School of Design, Providence, R. I. <br />
BFA Kansas City Art Institute, Kansas City, Mo.<br />
BA Drury College, Springfield, Mo.<br />
International Studies, Institute for American Universities, Avignon, France</p>
<p>AWARDS AND GRANTS</p>
<p>2007<br />
Creative Capital Professional Development Workshop & Retreat</p>
<p>2006<br />
Avenue of the Arts Award </p>
<p>2000-2002<br />
Annual Artist’s Grant, SSE Manufacturing, Salina, Kansas </p>