      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    protected function drawElement(g:Graphics):void
+    protected function draw(g:Graphics):void
     {
         // override to do your drawing
     }

import mx.filters.BaseFilter;
import mx.filters.IBitmapFilter;
import mx.graphics.IStroke;

use namespace mx_internal;


        var g:Graphics = (drawnDisplayObject as Sprite).graphics;

        beginDraw(g);
        draw(g);
        endDraw(g);
    }
            
