limweb / degrafa

Automatically exported from code.google.com/p/degrafa
1 stars 0 forks source link

LinearGradientFIll Type Coercion failed: to com.degrafa.core.IGraphicsFill. #88

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. cannot convert com.degrafa.paint:
2.
3.

If this is, the code:
<pre>
private function addFillListeners(fills:Array):void {
            var fill:IGraphicsFill;
            for each(fill in fills) {
                if(fill is IGraphicsFill) {
                    (fill as
IGraphicsFill).addEventListener(PropertyChangeEvent.PROPERTY_CHANGE,
propertyChangeHandler, false, 0, true);
                }
            }
        }

        private function removeFillListeners(fills:Array):void {
            var fill:IGraphicsFill;
            for each(fill in fills) {
                if(fill is IGraphicsFill) {
                    (fill as
IGraphicsFill).removeEventListener(PropertyChangeEvent.PROPERTY_CHANGE,
propertyChangeHandler, false);
                }
            }
        }
</pre>

if you are testing fill to see if it's an IGraphicsFill wouldn't the check
just be for a null object, rather than a type of IGraphicsFill?

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by patrickl...@gmail.com on 6 Apr 2010 at 9:46