         
         var bounds:Rectangle = new Rectangle(drawX, drawY, width, height);
         if (stroke)
-            stroke.draw(g, bounds);
+            stroke.apply(g, bounds);
         else
             g.lineStyle();
         

            fillEventDispatcher.addEventListener(
                PropertyChangeEvent.PROPERTY_CHANGE, 
                fill_propertyChangeHandler);
        
        dispatchPropertyChangeEvent("fill", oldValue, _fill);    
        invalidateDisplayList();
    }

{

import flash.display.Graphics;
import flash.events.Event;
import flash.events.EventDispatcher;
import flash.geom.Rectangle;

import mx.core.mx_internal;
import mx.events.PropertyChangeEvent;
import mx.graphics.IFill;

use namespace mx_internal;

/**
 *  The FilledElement class is the base class for graphics elements that contain a stroke
