ActionScript 2.0 Language Reference |
|
|
|
| ActionScript classes > StyleSheet (TextField.StyleSheet) > transform (StyleSheet.transform method) | |||
public transform(style:Object) : TextFormat
Extends the CSS parsing capability. Advanced developers can override this method by extending the StyleSheet class.
Availability: ActionScript 1.0; Flash Player 7
style:Object - An object that describes the style, containing style rules as properties of the object, or null.
TextFormat - A TextFormat object containing the result of the mapping of CSS rules to text format properties.
The following example extends the transform() method:
import TextField.StyleSheet;
class AdvancedCSS extends StyleSheet {
public function AdvancedCSS() {
trace("AdvancedCSS instantiated");
}
public function transform(styleObject):TextFormat {
trace("tranform called");
}
}
|
|
|
|