Payday Loans Online Payday Loans Online

Todd Rothe : UI/UX Developer

it's pronounced rowth-ee

By 2g1c2 girls 1 cup

Flex 3 to Flex 4 Migration Chronicles: III

Error #1053: Illegal override of SolidFill in com.degrafa.paint.SolidFill.

Flex 3 code:
< degrafa:Surface verticalCenter="0" horizontalCenter="0">

< degrafa:fills>
< paint:SolidFill id="blue" color="#62ABCD"/>

< degrafa:strokes>
< paint:SolidStroke id="black" color="#000000" alpha="1" weight="3"/>

< degrafa:GeometryGroup>
< geometry:Circle fill="{blue}" stroke="{black}" radius="150"/>

Attempt 1: Get a Flex 4 compatible Degrafa swc from Degrafa.org.

Result 1: There isn’t one… yet. Greg Drove of the Degrafa dev team has said that a Flex 4 swc is coming, but no word as to when.

Attempt 2: Create a mx.graphics.SolidColor in AS3 to use in place of the com.degrafa.paint.SolidFill.

< fx:Script>
import mx.graphics.SolidColor;
var blue:SolidColor = new SolidColor( 0x62ABCD, 3);
]]>

Result 2: Fail. SolidColor and IGraphicsFill are not interchangeable. You get ‘Error #1053: Illegal override of SolidFill in com.degrafa.paint.SolidFill.’

Attempt 3: Recreate the entire Degrafa surface in using Spark.

< s:Graphic horizontalCenter="0" verticalCenter="0">
< s:Ellipse width="300" height="300">
< s:fill>
< s:SolidColor id="blueFxg" color="#62ABCD"/>

< s:stroke>
< s:SolidColorStroke color="#000000" weight="3"/>


Result 3: Success! This was the fail safe: the most work, guaranteed results, and kinda boring.

 

2 Responses to “Flex 3 to Flex 4 Migration Chronicles: III” (post new)

  1.  

    Nice article.

  2.  

    I have to show appreciation to you for bailing me out of this problem. As a result of browsing through the the net and finding strategies which are not productive, I was thinking my entire life was over. Existing minus the answers to the issues you have fixed by means of your good post is a crucial case, and ones that could have badly affected my entire career if I had not noticed your site. Your main skills and kindness in dealing with the whole thing was useful. I don’t know what I would have done if I hadn’t discovered such a subject like this. It’s possible to at this time look forward to my future. Thanks a lot very much for your skilled and amazing help. I won’t think twice to recommend your blog to anyone who requires guide about this issue.

Leave a Reply

You must be logged in to post a comment.