     protected function beginDraw(g:Graphics):void
     {
         if (stroke)
-            stroke.draw(g,new Rectangle(drawX + measuredX, 
+            stroke.apply(g,new Rectangle(drawX + measuredX, 
             						    drawY + measuredY, 
             						    Math.max(width, stroke.weight), 
             						    Math.max(height, stroke.weight)));

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