blob: 75f285d2929439385b50d680ab54ce1a8dec5cfa [file] [log] [blame]
<?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:VGroup xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
>
<fx:Script>
<![CDATA[
]]>
</fx:Script>
<s:states>
<s:State name="default" />
<s:State name="addRect" />
<s:State name="addLine" />
<s:State name="addEllipse" />
<s:State name="addPath" />
<s:State name="addGroup" />
<s:State name="setPropGraphic" />
<s:State name="setPropGroup" />
<s:State name="setPropElement" />
</s:states>
<s:Graphic includeIn="addRect,setPropGraphic">
<s:Rect height="200" width="300" width.setPropGraphic="200">
<s:fill>
<mx:SolidColor color="0xFFDD99" />
</s:fill>
</s:Rect>
</s:Graphic>
<s:Graphic includeIn="addLine">
<s:Line xFrom="0" yFrom="0" xTo="120" yTo="100">
<s:stroke>
<mx:SolidColorStroke color="0xFFDD99" />
</s:stroke>
</s:Line>
</s:Graphic>
<s:Graphic includeIn="addEllipse">
<s:Ellipse width="350" height="270">
<s:fill>
<mx:SolidColor color="0xFFDD99" />
</s:fill>
</s:Ellipse>
</s:Graphic>
<s:Graphic includeIn="addPath,setPropElement">
<s:Path data="M 50,50 Q -30,100 50,150 100,230 150,150 230,100 150,50 100,-30 50,50" x.setPropElement="70" >
<s:stroke>
<mx:SolidColorStroke color="0xFFDD99" />
</s:stroke>
</s:Path>
</s:Graphic>
<s:Graphic includeIn="addGroup,setPropGroup">
<s:Group rotation.setPropGroup="-45">
<s:Rect width="200" height="130">
<s:fill>
<mx:SolidColor color="0xFFDD99" />
</s:fill>
</s:Rect>
<s:Path data="M 50,50 Q -30,100 50,150 100,230 150,150 230,100 150,50 100,-30 50,50" >
<s:stroke>
<mx:SolidColorStroke color="0xFF0000" />
</s:stroke>
</s:Path>
</s:Group>
</s:Graphic>
</s:VGroup>