I have a style:
.rating{
fontSize:24;
}
and a custom MXML Component of type s|Graphic. How can I get the fontSize value from the component in actionscript?
I tried:
public var fff:String = getStyle("fontSize"); //undefined (runtime error)
public var fff2:String = this.getStyle("fontSize"); // undefined (compile time error)
have a look at this page for more info.
http://livedocs.adobe.com/flex/3/html/help.html?content=styles_08.html
somevar = this.getStyle("fontSize");
add to initialize function