| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| --> |
| <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" |
| xmlns:mx="library://ns.adobe.com/flex/mx" |
| xmlns:s="library://ns.adobe.com/flex/spark" |
| xmlns:local="comps.*"> |
| |
| <local:RectComp id="rectComp1" y="20"/> |
| |
| <fx:Declarations> |
| <s:LinearGradientStroke id="gradient1" rotation="45" weight="10"> |
| <s:GradientEntry color="#FFCCFF" alpha=".8" /> |
| <s:GradientEntry color="#9933CC" alpha="1" /> |
| <s:GradientEntry color="#00FF00" alpha="1" /> |
| </s:LinearGradientStroke> |
| </fx:Declarations> |
| |
| <s:Graphic id="rect_angle" y="110" width="70" height="80"> |
| <s:Rect width="40" height="40" horizontalCenter="0" verticalCenter="0"> |
| <s:fill> |
| <s:SolidColor color="0x220044"/> |
| </s:fill> |
| <s:stroke> |
| <s:LinearGradientStroke id="gradient2" angle="45" weight="10"> |
| <s:GradientEntry color="#FFFFFF" alpha=".8" /> |
| <s:GradientEntry color="#3399CC" alpha="1" /> |
| <s:GradientEntry color="#0000FF" alpha="1" /> |
| </s:LinearGradientStroke> |
| </s:stroke> |
| </s:Rect> |
| </s:Graphic> |
| |
| <s:Graphic id="rect_rotation" y="240" width="80" height="70"> |
| <s:Rect width="50" height="50" horizontalCenter="0" verticalCenter="0"> |
| <s:fill> |
| <s:SolidColor color="0x000000" /> |
| </s:fill> |
| </s:Rect> |
| </s:Graphic> |
| </s:Application> |