Complicated shapes's filling

4 views
Skip to first unread message

Alek

unread,
Dec 10, 2009, 4:05:35 AM12/10/09
to Degrafa
Hi,

Can I fill complicated shapes with some textures or gradients?
Actually, I create these shapes from several object.. Polyline and
BezierSpline for example.. but I can't fill obtained shape neither as
GeometryGroup nor GeometryComposition.
I mean, shapes with rectangular bottom part and curved top part..

May be I'm creating these shapes by a wrong way?

I really need help.. :(

thanks

Alek

unread,
Dec 11, 2009, 4:29:11 AM12/11/09
to Degrafa

Alek

unread,
Dec 17, 2009, 4:27:32 AM12/17/09
to Degrafa
Great :(
no answers, no ideas...

I should use lineTo, curveTo and mask from flash.display classes for
creating complicated shapes and filling them

What a pity

Hasan

unread,
Dec 17, 2009, 6:10:03 AM12/17/09
to deg...@googlegroups.com
Hey Alek,

Any chance you have sample code of what you're trying to do? That may make it easier for others to offer help. Also, have you tried creating/using SVGs for your complex shapes? If you try to run the following sample, what are the results?

<?xml version="1.0" encoding="utf-8"?>
<degrafa:GraphicBorderSkin
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:degrafa="http://www.degrafa.com/2007"
>

<mx:Script>
<![CDATA[

[Bindable]
private var _skinWidth:Number=0;

[Bindable]
private var _skinHeight:Number=0;

override protected function updateDisplayList( unscaledWidth:Number, unscaledHeight:Number ):void
{
super.updateDisplayList( unscaledWidth, unscaledHeight );
_skinWidth = unscaledWidth;
_skinHeight = unscaledHeight;
}

]]>
</mx:Script>


<!--Degrafa Drawing Code-->
<degrafa:fills>
<degrafa:LinearGradientFill id="backgroundFill" angle="90">
<degrafa:GradientStop color="#f2f2f2"/>
<degrafa:GradientStop color="#cccccc"/>
</degrafa:LinearGradientFill>
</degrafa:fills>


<!-- SVG skin -->
<degrafa:geometry>
<degrafa:GeometryComposition>
<degrafa:Path
data="M0.028,0C0.017,0.296,0,0.591,0,0.892v137.425c0,8.64,4.375,15.646,9.773,15.646h134.38c5.394,0,9.77-7.006,9.77-15.646V0.892c0-0.301-0.017-0.595-0.027-0.892H0.028z"
fill="{backgroundFill}"
/>
</degrafa:GeometryComposition>
</degrafa:geometry>

<!--Filters-->
<degrafa:filters>
<filters:DropShadowFilter
angle='45'
blurX='4' blurY='4'
distance='2'
alpha='0.6' color='#000000'
knockout='false' quality='1'
strength='1' inner='false' hideObject='false'
xmlns:filters='flash.filters.*'
/>
</degrafa:filters>

</degrafa:GraphicBorderSkin>


P E A C E

Hasan Otuome
http://technophi.com

> --
>
> You received this message because you are subscribed to the Google Groups "Degrafa" group.
> To post to this group, send email to deg...@googlegroups.com.
> To unsubscribe from this group, send email to degrafa+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/degrafa?hl=en.
>
>

Reply all
Reply to author
Forward
0 new messages