您的位置:首页 > 其它

flex填充图形,渐变

2013-06-03 15:09 204 查看


<?xml version="1.0" encoding="utf-8"?>

<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"

xmlns:s="library://ns.adobe.com/flex/spark"

xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">

<fx:Declarations>

<!-- 将非可视元素(例如服务、值对象)放在此处 -->

</fx:Declarations>

<s:Group width="100%" height="100%">

<s:Graphic>

<s:Rect width="200" height="200">

<s:stroke>

<s:Stroke weight="2" color="red"/>

</s:stroke>

<s:fill>

<s:RadialGradient>

<s:entries>

<s:GradientEntry color="0x0056FF" ratio="0" alpha="0.5"/>

<s:GradientEntry color="0x00CC99" ratio="0.33" alpha="0.5"/>

<s:GradientEntry color="0x0ECEC21" ratio="0.66" alpha="0.5"/>

</s:entries>

</s:RadialGradient>

</s:fill>

</s:Rect>

</s:Graphic>

</s:Group>

<s:Group width="100%" height="100%">

<s:Graphic>

</s:Graphic>

<s:Rect x="280" y="4" width="200" height="200">

<s:stroke>

<s:Stroke weight="2" color="red"/>

</s:stroke>

<s:fill>

<s:LinearGradient>

<s:entries>

<s:GradientEntry color="0x0056FF" ratio="0" alpha="0.5"/>

<s:GradientEntry color="0x00CC99" ratio="0.33" alpha="0.5"/>

<s:GradientEntry color="0x0ECEC21" ratio="0.66" alpha="0.5"/>

</s:entries>

</s:LinearGradient>

</s:fill>

</s:Rect>

</s:Group>

</s:Application>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: