Hello. Please, help me.
I want format all textfields of my flash-app with single css;
I’ve already written this function:
function formatWithCss(field, xml_html) {
field.html = true;
field.wordWrap = true;
field.multiline = true;
field.condenseWhite = true;
var css = new TextField.StyleSheet();
css.onLoad = function(success) {
field.styleSheet = css;
field.htmlText = xml_html;
};
css.load('styles.css');
}
Big disadvantage of this approach is that my app opens styles.css for each textfield.
How can I read styles.css once and use it many times?