incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject svn commit: r1232635 - in /incubator/flex/whiteboard/tink/mobile_dropdownlist/examples/src: ./ MobileDropDownListExample.mxml
Date Tue, 17 Jan 2012 23:04:50 GMT
Author: tink
Date: Tue Jan 17 23:04:49 2012
New Revision: 1232635

URL: http://svn.apache.org/viewvc?rev=1232635&view=rev
Log:
Example for fix for DropDownList use on mobile.

Added:
    incubator/flex/whiteboard/tink/mobile_dropdownlist/examples/src/
    incubator/flex/whiteboard/tink/mobile_dropdownlist/examples/src/MobileDropDownListExample.mxml

Added: incubator/flex/whiteboard/tink/mobile_dropdownlist/examples/src/MobileDropDownListExample.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/tink/mobile_dropdownlist/examples/src/MobileDropDownListExample.mxml?rev=1232635&view=auto
==============================================================================
--- incubator/flex/whiteboard/tink/mobile_dropdownlist/examples/src/MobileDropDownListExample.mxml
(added)
+++ incubator/flex/whiteboard/tink/mobile_dropdownlist/examples/src/MobileDropDownListExample.mxml
Tue Jan 17 23:04:49 2012
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="utf-8"?>
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
+			   xmlns:s="library://ns.adobe.com/flex/spark"
+			   xmlns:components="org.apache.spark.components.*"
+			   applicationDPI="160">
+	
+	<fx:Script>
+		<![CDATA[
+			import spark.events.IndexChangeEvent;
+			
+			protected function dropdownlist_changeHandler(event:IndexChangeEvent):void
+			{
+				trace( event.newIndex )
+			}
+			
+		]]>
+	</fx:Script>
+	
+	<components:MobileDropDownList change="dropdownlist_changeHandler(event)">
+		<components:dataProvider>
+			<s:ArrayList>
+				<fx:Object label="test1"/>
+				<fx:Object label="test2"/>
+				<fx:Object label="test3"/>
+				<fx:Object label="test4"/>
+				<fx:Object label="test1"/>
+				<fx:Object label="test2"/>
+				<fx:Object label="test3"/>
+				<fx:Object label="test4"/>
+				<fx:Object label="test1"/>
+				<fx:Object label="test2"/>
+				<fx:Object label="test3"/>
+				<fx:Object label="test4"/>
+				<fx:Object label="test1"/>
+				<fx:Object label="test2"/>
+				<fx:Object label="test3"/>
+				<fx:Object label="test4"/>
+			</s:ArrayList>
+		</components:dataProvider>
+	</components:MobileDropDownList>
+	
+
+</s:Application>



Mime
View raw message