| <?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:Group xmlns:fx="http://ns.adobe.com/mxml/2009" |
| xmlns:s="library://ns.adobe.com/flex/spark" width="100" height="100"> |
| |
| <s:states> |
| <s:State name="close"/> |
| <s:State name="open"/> |
| </s:states> |
| |
| <s:transitions> |
| <s:Transition fromState="close" toState="open"> |
| <s:Sequence id="effect1" target="{target}"> |
| <s:AddAction/> |
| <s:Parallel> |
| <s:Move applyChangesPostLayout="true" xFrom="25" yFrom="50"/> |
| <s:Resize /> |
| </s:Parallel> |
| </s:Sequence> |
| </s:Transition> |
| |
| <s:Transition fromState="open" toState="close"> |
| <s:Sequence id="effect2" target="{target}"> |
| <s:Parallel> |
| <s:Move applyChangesPostLayout="true" xTo="25" yTo="50"/> |
| <s:Resize /> |
| </s:Parallel> |
| <s:RemoveAction/> |
| </s:Sequence> |
| </s:Transition> |
| </s:transitions> |
| |
| <s:Group id="group1"> |
| <!-- grey rect to hint at the bounds of image2 --> |
| <s:Rect id="grey" width="100%" height="100%"><s:fill><s:SolidColor color="0xe3e3e3" /></s:fill></s:Rect> |
| |
| <s:Rect id="target" |
| includeIn="open" |
| x.open="0" |
| y.open="0" |
| width.close="25" |
| height.close="50" |
| width.open="50" |
| height.open="100"> |
| <s:fill> |
| <s:SolidColor color="blue" /> |
| </s:fill> |
| </s:Rect> |
| </s:Group> |
| |
| </s:Group> |