| <?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:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009" |
| xmlns:s="library://ns.adobe.com/flex/spark" |
| xmlns:mx="library://ns.adobe.com/flex/mx" |
| autoDrawBackground="false" width="100" height="100" clipAndEnableScrolling="false" |
| depth="0" depth.hovered="1"> |
| |
| <fx:Declarations> |
| <mx:CurrencyFormatter id="cf"/> |
| </fx:Declarations> |
| |
| <s:states> |
| <s:State name="normal" /> |
| <s:State name="hovered" /> |
| </s:states> |
| |
| <s:transitions> |
| <s:Transition fromState="normal" toState="hovered" autoReverse="true"> |
| <s:Parallel> |
| <s:Rotate3D target="{image}" angleXFrom="0" angleXTo="0" angleZFrom="0" autoCenterTransform="true" angleYTo="360" angleYFrom="0" autoCenterProjection="true" angleZTo="0"/> |
| <s:Fade target="{group}" startDelay="320"/> |
| </s:Parallel> |
| </s:Transition> |
| </s:transitions> |
| |
| <mx:Image id="image" source="@Embed('../assets/ApacheFlexIcon.png')" horizontalCenter="0" /> |
| |
| <s:Group id="group" top="0" bottom="0" left="0" right="0" visible.normal="false"> |
| |
| <s:Rect id="rect" left="0" right="0" top="0" bottom="0" radiusX="4" radiusY="4"> |
| <s:fill> |
| <s:SolidColor color="black" alpha="0.5"/> |
| </s:fill> |
| </s:Rect> |
| |
| <s:Label text="{data.name}" verticalCenter="-20" horizontalCenter="0" color="white"/> |
| <s:Label text="{data.color}" verticalCenter="0" horizontalCenter="0" color="white"/> |
| <s:Label text="{cf.format(data.price)}" verticalCenter="20" horizontalCenter="0" color="white"/> |
| |
| </s:Group> |
| |
| </s:ItemRenderer> |