Example
The following code subclasses this method:
class advCSS extends TextField.StyleSheet {
// override the transform method
function transform(style:Object):TextFormat {
for (var z in style) {
if (z == "margin") {
style.marginLeft = style[z];
style.marginRight = style[z];
delete style[z];
break;
}
}
return super.transform(style);
}
}
// end class definition
TextField.StyleSheet.transform()
775
Need help?
Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?