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

Parameters

style:Object - An object that describes the style, containing style rules as properties of the object, or null.

Returns

TextFormat - A TextFormat object containing the result of the mapping of CSS rules to text format properties.

Example

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");
    }
}