| <?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" backgroundColor="#000000" width="640" > |
| <s:layout> |
| <s:HorizontalLayout/> |
| </s:layout> |
| |
| <mx:DataGrid id="dg" width="400" height="300" > |
| <mx:dataProvider> |
| <mx:ArrayCollection> |
| <fx:Object recordName="100 Meter Run" recordAmount="9.74 seconds" who="Asafirstname Powlastname" where="Rieti, Italy" when="9/9/2007" image="../../../../../Assets/Images/redrect.jpg" /> |
| <fx:Object recordName="200 Meter Run" recordAmount="19.32 seconds" who="Micfirstname Johlastname" where="Atlanta, GA, USA" when="9/1/1996" image="../../../../../Assets/Images/orangerect.jpg" /> |
| <fx:Object recordName="800 Meter Run" recordAmount="1:41.11" who="Wilfirstname Kiplastname" where="Cologne, Germany" when="9/24/1997" image="../../../../../Assets/Images/greenrect.jpg" /> |
| <fx:Object recordName="1000 Meter Run" recordAmount="2:11.96" who="Noafirstname Ngelastname" where="Rieti, Italy" when="9/5/1999" image="../../../../../Assets/Images/bluerect.jpg" /> |
| <fx:Object recordName="1 Hour Run" recordAmount="21.285 km" who="Haifirstname Geblastname" where="Ostrava, Czech Republic" when="6/27/2007" image="../../../../../Assets/Images/purplerect.jpg" /> |
| <fx:Object recordName="3000 Meter Steeplechase" recordAmount="7:53.63" who="Saifirstname Saalastname" where="Brussels, Belgium" when="9/3/2004" image="../../../../../Assets/Images/blackrect.jpg" /> |
| <fx:Object recordName="Discus" recordAmount="74.08 m" who=" Jürfirstname Schlastname" where="Neubrandenburg, Germany" when="6/6/2006" image="../../../../../Assets/Images/whiterect.jpg" /> |
| <fx:Object recordName="Hammer" recordAmount="86.74 m" who="Yurfirstname Sedlastname" where="Stuttgart, Germany" when="9/30/1986" image="../../../../../Assets/Images/brownrect.jpg" /> |
| <fx:Object recordName="2000 Meter Run" recordAmount="5:25.36" who="Sonfirstname Sullastname" where="Edinburgh, Scotland" when="7/8/1994" image="../../../../../Assets/Images/tanrect.jpg" /> |
| <fx:Object recordName="3000 Meter Run" recordAmount="8:06.11" who="Wanfirstname Junlastname" where="Beijing, China" when="9/13/1993" image="../../../../../Assets/Images/bwrect.jpg" /> |
| <fx:Object recordName="High Jump" recordAmount="2.09 m" who="Stefirstname Koslastname" where="Rome, Italy" when="8/30/1987" image="../../../../../Assets/Images/rgrect.jpg" /> |
| <fx:Object recordName="Pole Vault" recordAmount="5.01 m" who="Yelfirstname Isilastname" where="Helsinki, Finland" when="8/12/2005" image="../../../../../Assets/Images/ybrect.jpg" /> |
| <fx:Object recordName="Long Jump" recordAmount="7.52 m" who="Galfirstname Chislastname" where="Leningrad, USSR" when="6/11/1998" image="../../../../../Assets/Images/oprect.jpg" /> |
| <fx:Object recordName="Triple Jump" recordAmount="15.50 m" who="Inefirstname Kralastname" where="Göteborg, Sweden" when="8/10/1995" image="../../../../../Assets/Images/cyanrect.jpg" /> |
| <fx:Object recordName="Heptathlon" recordAmount="7291 points" who="Jacfirstname Joylastname" where="Seoul, S. Korea" when="9/24/1988" image="../../../../../Assets/Images/magentarect.jpg" /> |
| <fx:Object recordName="Javelin" recordAmount="71.70 m" who="Oslfirstname Menlastname" where="Helsinki, Finland" when="8/14/2005" image="../../../../../Assets/Images/ltgrayrect.jpg" /> |
| </mx:ArrayCollection> |
| </mx:dataProvider> |
| </mx:DataGrid> |
| |
| <fx:Declarations> |
| <s:Linear id="linearEase" /> |
| |
| <s:ShaderFilter id="sphereShader" shader="@Embed(source='Assets/PixelBenderFiles/sphere.pbj')" |
| imgSize_x="400" imgSize_y="300" center_x="200" center_y="150" /> |
| |
| <mx:Sequence id="rotatingGlobe"> |
| <s:AnimateFilter id="anim1" bitmapFilter="{sphereShader}" duration="500" target="{dg}"> |
| <s:SimpleMotionPath property="center_y" valueFrom="512" valueTo="320"/> |
| </s:AnimateFilter> |
| |
| <s:AnimateFilter id="anim2" bitmapFilter="{sphereShader}" duration="500" target="{dg}" easer="{linearEase}" repeatCount="0" > |
| <s:SimpleMotionPath property="offset_y" valueFrom="0" valueTo="5"/> |
| </s:AnimateFilter> |
| </mx:Sequence> |
| |
| <s:Animate id="extend" duration="1000" target="{sphereShader}" > |
| <s:SimpleMotionPath property="rightExtension" valueFrom="0.0" valueTo="128"/> |
| <s:SimpleMotionPath property="leftExtension" valueFrom="0.0" valueTo="128"/> |
| </s:Animate> |
| </fx:Declarations> |
| |
| |
| </s:Application> |