10Sep/095
Skinning MinimalComps with Degrafa
Just a quick post to show how you can utilize Degrafa and MXML to skin the MinimalComps components. Currently this adds just over 50kb to your SWF but it's on on going effort to lower this and minimize the dependencies on Flex classes.
My skin extends from GeometryGroup which instead of adding another DisplayObject to the display list it simply draws directly on the component.
I really like the idea of using AS3 for your component behavior/logic and seperating your views/skins using MXML. This is something Flex 4 is trying to achieve with FXG and it would be cool to see other frameworks do the same with Degrafa.

September 14th, 2009 - 23:25
amazing!
September 17th, 2009 - 00:03
Very nice but whats with invisible mask (skinned button has larger hit area than non-skinned one) is is bug or is it “feature”?
September 17th, 2009 - 06:15
Oh weird, never noticed that. It seems to be the DisplayObject containing the text causing that. I’ll see if I can fix that today.
September 17th, 2009 - 12:18
That was exactly what I wanted after I saw example of minimalcomps without flex framework… Very cool!
September 17th, 2009 - 13:46
Can you include with the source also your version of degrafa… I downloaded degrafa.swc from the official website and there is about 250kb added to minimalcomps example …