flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [40/42] TourDeFlex donation from Adobe Systems Inc
Date Fri, 25 Apr 2014 06:33:22 GMT
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/3dc107b9/TourDeFlex/TourDeFlex/src/components/TextBoxSearch.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex/src/components/TextBoxSearch.mxml b/TourDeFlex/TourDeFlex/src/components/TextBoxSearch.mxml
new file mode 100644
index 0000000..59bf20e
--- /dev/null
+++ b/TourDeFlex/TourDeFlex/src/components/TextBoxSearch.mxml
@@ -0,0 +1,79 @@
+<?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.
+
+-->
+<mx:TextInput xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="init()" keyUp="textBox_keyUp(event)"
change="textBox_change()">
+
+	<mx:Script>
+	<![CDATA[
+	
+		public static const TEXT_SUBMIT:String = "textSubmit";
+		private var isDirty:Boolean = false;
+		private var typingPauseTimer:Timer;
+
+		private function init():void
+		{
+			typingPauseTimer = new Timer(700, 1);
+			typingPauseTimer.addEventListener(TimerEvent.TIMER, timer_typingPause);
+		}
+
+		private function textBox_change():void
+		{
+			isDirty = true;
+			
+			if(typingPauseTimer.running)
+				typingPauseTimer.reset();
+			typingPauseTimer.start();
+		}
+		
+		private function timer_typingPause(event:TimerEvent):void
+		{
+			if(isDirty)
+				submitText();
+		}
+
+		private function textBox_keyUp(event:KeyboardEvent):void
+		{
+			if(event.keyCode == Keyboard.ENTER && isDirty)
+				submitText();
+		}
+		
+		private function submitText():void
+		{
+			var notificationTimer:Timer = new Timer(100, 1);
+			notificationTimer.addEventListener(TimerEvent.TIMER, timer_turnNotificationOff);
+			notificationTimer.start();
+			
+			isDirty = false;
+			this.setStyle("backgroundColor", 0xFFFFB3);	
+			dispatchEvent(new Event(TEXT_SUBMIT, true));	
+		}
+
+		private function timer_turnNotificationOff(event:TimerEvent):void 
+		{
+			this.setStyle("backgroundColor", 0xFFFFFF);
+		}
+
+	]]>
+	</mx:Script>
+	
+	<mx:Metadata>
+		[Event(name="textSubmit", type="flash.events.Event")]
+	</mx:Metadata>
+	
+</mx:TextInput>

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/3dc107b9/TourDeFlex/TourDeFlex/src/components/WipeWindow.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex/src/components/WipeWindow.mxml b/TourDeFlex/TourDeFlex/src/components/WipeWindow.mxml
new file mode 100644
index 0000000..88a7a20
--- /dev/null
+++ b/TourDeFlex/TourDeFlex/src/components/WipeWindow.mxml
@@ -0,0 +1,45 @@
+<?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.
+
+-->
+<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" showEffect="{this.wipeDown}" hideEffect="{this.wipeUp}"
styleName="wipeWindow">
+
+	<mx:Script>
+	<![CDATA[
+		import mx.events.FlexEvent;
+		import mx.events.EffectEvent;
+		
+		public static const HIDE_COMPLETE:String = "hideComplete";
+	
+		private function hideComplete(event:EffectEvent):void
+		{
+			var hideCompleteEvent:FlexEvent = new FlexEvent(HIDE_COMPLETE);
+			dispatchEvent(hideCompleteEvent);	
+		}
+		
+	]]>
+	</mx:Script>
+
+	<mx:Metadata>
+		[Event(name="hideComplete", type="mx.events.FlexEvent")]
+	</mx:Metadata>
+
+	<mx:WipeDown id="wipeDown" duration="500" />
+	<mx:WipeUp id="wipeUp" duration="500" effectEnd="hideComplete(event)" />
+		
+</mx:VBox>

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/3dc107b9/TourDeFlex/TourDeFlex/src/data/about.html
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex/src/data/about.html b/TourDeFlex/TourDeFlex/src/data/about.html
new file mode 100644
index 0000000..11c6bd7
--- /dev/null
+++ b/TourDeFlex/TourDeFlex/src/data/about.html
@@ -0,0 +1,57 @@
+<!--
+  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.
+-->
+<html>
+	<head>
+		<meta http-equiv="content-type" content="text/html; charset=utf-8">
+		<title>About</title>
+		<link rel="stylesheet" href="style.css" />
+	</head>
+	<!-- width:434 height:333 -->
+	<body>
+		<div id="hdr">
+			<a href="http://www.adobe.com/devnet/flex/tourdeflex" target="_blank"><img src="images/logo.png"
alt="logo" width="159" height="43" border="0"></a>
+			<div id="version"><br>
+				<span class="team"><b><font color="#FFFFFF"><CENTER>A Product
of the <BR>Adobe Evangelism Team</CENTER></font></b><br /></span>
+			</div>
+		</div>
+		<div id="main">
+			<div id="credits">
+				<p><b>Concept by:</b><BR/>
+				<A HREF="http://www.jamesward.com">James Ward</A>, <A HREF="http://coenraets.org/">Christophe
Coenraets</A>, and <A HREF="http://gregsramblings.com">Greg Wilson</A></p>
+				<p><b>Application Design & Development:</b><br />
+				Sean Carey, Rich Emery, Trae Regan, Holly Schinsky, <A HREF="http://www.taterboy.com/blog/">Todd
Williams</A><BR>
+				Christophe Coenraets, James Ward, Greg Wilson</p>
+				
+				<p><b>Eclipse Plugin Development:</b><br />
+				<A HREF="http://richdesktopsolutions.com">Holly Schinsky</A></p>
+				
+			</div>
+			<div id="logo">
+				<a href="http://www.hdinteractive.com" target="_blank"><img src="images/HDlogo.png"
alt="HDlogo" width="97" height="25" border="0"></a><br />
+				<a href="http://www.hdinteractive.com" target="_blank">http://www.hdinteractive.com</a>
+			</div>
+			<div id="ftr">
+				<div id="ftrLogo" class="lt">
+					<img src="images/adobe_logo.png" alt="adobe_logo" width="22" height="25">
+				</div>
+				<div id="rights" class="rt">
+					©2010 Adobe Systems Inccorporated. All rights reserved.  The Adobe logo and Flex are
registered trademarks of Adobe Systems Incorporated in the United States and/or other countries.
+				</div>
+			</div>
+		</div>
+	</body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/3dc107b9/TourDeFlex/TourDeFlex/src/data/images/bkg.jpg
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex/src/data/images/bkg.jpg b/TourDeFlex/TourDeFlex/src/data/images/bkg.jpg
new file mode 100644
index 0000000..4654381
Binary files /dev/null and b/TourDeFlex/TourDeFlex/src/data/images/bkg.jpg differ

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/3dc107b9/TourDeFlex/TourDeFlex/src/data/images/logo.png
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex/src/data/images/logo.png b/TourDeFlex/TourDeFlex/src/data/images/logo.png
new file mode 100644
index 0000000..4db7317
Binary files /dev/null and b/TourDeFlex/TourDeFlex/src/data/images/logo.png differ

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/3dc107b9/TourDeFlex/TourDeFlex/src/data/images/qs_banner_plain_big2.jpg
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex/src/data/images/qs_banner_plain_big2.jpg b/TourDeFlex/TourDeFlex/src/data/images/qs_banner_plain_big2.jpg
new file mode 100644
index 0000000..3012a3b
Binary files /dev/null and b/TourDeFlex/TourDeFlex/src/data/images/qs_banner_plain_big2.jpg
differ

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/3dc107b9/TourDeFlex/TourDeFlex/src/data/images/quickstart.gif
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex/src/data/images/quickstart.gif b/TourDeFlex/TourDeFlex/src/data/images/quickstart.gif
new file mode 100644
index 0000000..0bf5e21
Binary files /dev/null and b/TourDeFlex/TourDeFlex/src/data/images/quickstart.gif differ


Mime
View raw message