MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 775

Actionscript language reference
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flex

Table of Contents