# The syntax for overriding built-in classes

**URL:** <https://forum.kirupa.com/t/the-syntax-for-overriding-built-in-classes/274216>\
**Category:** flash\
**Created:** [October 27, 2008, 7:55am UTC](https://forum.kirupa.com/t/the-syntax-for-overriding-built-in-classes/274216 "2008-10-27T07:55:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jontyc](https://avatars.discourse-cdn.com/v4/letter/j/eb9ed0/32.png) [@jontyc](https://forum.kirupa.com/u/jontyc)\
**Post date:** [October 27, 2008, 7:55am UTC](https://forum.kirupa.com/t/the-syntax-for-overriding-built-in-classes/274216/1 "2008-10-27T07:55:01Z")

</div>

Having trouble overriding the transform() method in StyleSheet - it could be done in AS2.0 and AS3.0 help says it can be done, but I’m getting a compile error telling me it’s not marked for override and it’s an incompatible override.

Have I got something syntactically wrong here:

```auto

package
{
    import flash.text.*;
    
    public class StyleSheetEx extends flash.text.StyleSheet
    {
        // override the transform method
        function transform(style:Object):TextFormat
        {
            
        ...
        

```
