I am loading cssStyle text from server with a stored procedure and
loading into a string:

Button {
    cornerRadius: 9;
    highlightAlphas: 0, 0;
    fillAlphas: 1, 1, 1, 1;
    fillColors: #6699ff, #6699ff, #6699ff, #6699ff;
    color: #0033cc;
    textRollOverColor: #000000;
    textSelectedColor: #000000;
    borderColor: #6699ff;
    themeColor: #ffffff;
    fontSize: 12;
    fontWeight: normal;
}

into cssString. I want to use this as the Application's StyleSheet i.e.

      <mx:Style source="contents of cssString"/>

I tried

this.styleName = cssString;

and played with

appStyle = new StyleSheet;
appStyle.parseCSS(cssString);

but a little knowledge is a dangerous thing :-) How do I get the style
text to become the Application StyleSheet? TIA,

Mic.


Reply via email to