flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cd...@apache.org
Subject [13/51] [partial] flex-blazeds git commit: Refactored the directory structure
Date Tue, 04 Aug 2015 10:16:21 GMT
http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/samples/WEB-INF/flex-src/inventory/src/inventory.mxml
----------------------------------------------------------------------
diff --git a/attic/apps/samples/WEB-INF/flex-src/inventory/src/inventory.mxml b/attic/apps/samples/WEB-INF/flex-src/inventory/src/inventory.mxml
index ff97b8f..72c8911 100755
--- a/attic/apps/samples/WEB-INF/flex-src/inventory/src/inventory.mxml
+++ b/attic/apps/samples/WEB-INF/flex-src/inventory/src/inventory.mxml
@@ -1,116 +1,116 @@
-<?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:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*"
-	layout="absolute">
-	
-	<mx:Script>
-		<![CDATA[
-			
-			private function addItem():void
-			{
-				openTab(new Product())
-			}
-			
-			public function openTab(product:Product):void
-			{
-				if (product.productId > 0)
-				{
-					// Check if product is already opened in an existing tab
-					var children:Array = tn.getChildren();
-					var length:int = children.length;
-					for (var i:int = 0; i<length; i++)
-					{
-						if (children[i].product.productId == product.productId)
-						{
-							tn.selectedIndex = i;
-							return;
-						}
-					}
-				}
-				var form:ProductForm = new ProductForm();
-				tn.addChild(form);
-				form.product = product;
-				tn.selectedChild = form;
-			}
-			
-			private function search():void
-			{
-				searchPopup.search(searchStr.text);
-			}
-	
-			// Handles keys pressed in the search TextInput field
-			protected function searchKeyDownHandler(event:KeyboardEvent):void
-			{
-				if (searchPopup.currentState == "hidden" && event.keyCode != Keyboard.DOWN)
-				{
-					return
-				}
-				
-				switch (event.keyCode) 
-				{
-					case Keyboard.DOWN:
-						if (searchPopup.currentState == "hidden") search();
-						searchPopup.selectNext();
-	    				break;
-					case Keyboard.UP:
-						searchPopup.selectPrevious();
-						searchStr.setSelection(searchStr.text.length, searchStr.text.length);
-	    				break;
-					case Keyboard.ENTER:
-						searchPopup.openSelectedItem();
-	    				break;
-					case Keyboard.ESCAPE:
-						searchPopup.currentState = "hidden";
-	    				break;
-				}
-			}
-
-		]]>
-	</mx:Script>
-	
-	<mx:Style source="styles.css"/>
-	
-	<mx:Canvas styleName="appContainer" width="100%" height="100%"/>
-		
-	<mx:Label text="Inventory Management" styleName="appTitle" left="22" top="10"/>
-		
-	<mx:Button icon="@Embed('assets/icon_plus.png')" click="addItem()" toolTip="Add Product" width="31" height="29" right="243" top="10"/>
-
-	<mx:Image source="@Embed('assets/top_separator.png')" right="223" top="-4"/>
-	
-	<mx:Image source="@Embed('assets/search.png')" right="69" top="16"/>
-	<mx:TextInput id="searchStr" borderStyle="none" backgroundAlpha="0" top="16" width="110" right="88" focusThickness="0" change="search()"
-		borderSkin="@Embed('assets/blank.png')"
-		keyDown="searchKeyDownHandler(event)"/>
-	<mx:Image source="@Embed('assets/icon_close.png')" visible="{searchPopup.currentState == ''}" right="78" top="21"
-		click="searchPopup.currentState = 'hidden'"/>
-		
-		
-	<mx:TabNavigator id="tn" right="10" top="60" bottom="10" left="10" />
-	<mx:Text width="480" verticalCenter="0" horizontalCenter="0" visible="{!tn.getChildren().length>0}" textAlign="center">
-		<mx:text>
-		Type a few characters in the Search box in the upper right corner to search for products. 
-		For example type "no". You can also click the + button to add a new product.
-		</mx:text>
-	</mx:Text>
-
-	<SearchPopup id="searchPopup" top="52" right="50" width="180" height="250" select="openTab(searchPopup.selectedItem as Product)"/>
-
+<?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:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*"
+	layout="absolute">
+	
+	<mx:Script>
+		<![CDATA[
+			
+			private function addItem():void
+			{
+				openTab(new Product())
+			}
+			
+			public function openTab(product:Product):void
+			{
+				if (product.productId > 0)
+				{
+					// Check if product is already opened in an existing tab
+					var children:Array = tn.getChildren();
+					var length:int = children.length;
+					for (var i:int = 0; i<length; i++)
+					{
+						if (children[i].product.productId == product.productId)
+						{
+							tn.selectedIndex = i;
+							return;
+						}
+					}
+				}
+				var form:ProductForm = new ProductForm();
+				tn.addChild(form);
+				form.product = product;
+				tn.selectedChild = form;
+			}
+			
+			private function search():void
+			{
+				searchPopup.search(searchStr.text);
+			}
+	
+			// Handles keys pressed in the search TextInput field
+			protected function searchKeyDownHandler(event:KeyboardEvent):void
+			{
+				if (searchPopup.currentState == "hidden" && event.keyCode != Keyboard.DOWN)
+				{
+					return
+				}
+				
+				switch (event.keyCode) 
+				{
+					case Keyboard.DOWN:
+						if (searchPopup.currentState == "hidden") search();
+						searchPopup.selectNext();
+	    				break;
+					case Keyboard.UP:
+						searchPopup.selectPrevious();
+						searchStr.setSelection(searchStr.text.length, searchStr.text.length);
+	    				break;
+					case Keyboard.ENTER:
+						searchPopup.openSelectedItem();
+	    				break;
+					case Keyboard.ESCAPE:
+						searchPopup.currentState = "hidden";
+	    				break;
+				}
+			}
+
+		]]>
+	</mx:Script>
+	
+	<mx:Style source="styles.css"/>
+	
+	<mx:Canvas styleName="appContainer" width="100%" height="100%"/>
+		
+	<mx:Label text="Inventory Management" styleName="appTitle" left="22" top="10"/>
+		
+	<mx:Button icon="@Embed('assets/icon_plus.png')" click="addItem()" toolTip="Add Product" width="31" height="29" right="243" top="10"/>
+
+	<mx:Image source="@Embed('assets/top_separator.png')" right="223" top="-4"/>
+	
+	<mx:Image source="@Embed('assets/search.png')" right="69" top="16"/>
+	<mx:TextInput id="searchStr" borderStyle="none" backgroundAlpha="0" top="16" width="110" right="88" focusThickness="0" change="search()"
+		borderSkin="@Embed('assets/blank.png')"
+		keyDown="searchKeyDownHandler(event)"/>
+	<mx:Image source="@Embed('assets/icon_close.png')" visible="{searchPopup.currentState == ''}" right="78" top="21"
+		click="searchPopup.currentState = 'hidden'"/>
+		
+		
+	<mx:TabNavigator id="tn" right="10" top="60" bottom="10" left="10" />
+	<mx:Text width="480" verticalCenter="0" horizontalCenter="0" visible="{!tn.getChildren().length>0}" textAlign="center">
+		<mx:text>
+		Type a few characters in the Search box in the upper right corner to search for products. 
+		For example type "no". You can also click the + button to add a new product.
+		</mx:text>
+	</mx:Text>
+
+	<SearchPopup id="searchPopup" top="52" right="50" width="180" height="250" select="openTab(searchPopup.selectedItem as Product)"/>
+
 </mx:Application>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/samples/WEB-INF/flex-src/inventory/src/styles.css
----------------------------------------------------------------------
diff --git a/attic/apps/samples/WEB-INF/flex-src/inventory/src/styles.css b/attic/apps/samples/WEB-INF/flex-src/inventory/src/styles.css
index 1f20856..b674cc4 100755
--- a/attic/apps/samples/WEB-INF/flex-src/inventory/src/styles.css
+++ b/attic/apps/samples/WEB-INF/flex-src/inventory/src/styles.css
@@ -1,74 +1,74 @@
-/*
- * 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.
- */
-@namespace mx "library://ns.adobe.com/flex/mx";
-
-@font-face
-{
-    src: url("assets/fonts/MyriadWebPro.ttf");
-    font-family: main;
-    font-style: normal;
-    font-weight: normal;
-}
-
-@font-face
-{
-    src: url("assets/fonts/MyriadWebPro-Bold.ttf");
-    font-family: main;
-    font-style: normal;
-    font-weight: bold;
-}
-
-mx|Application {
-    font-family: main; 
-    font-size: 12;
-}
-
-.appContainer {
-	borderSkin: Embed(source="assets/app_skin.png",
-		scaleGridTop="55",
-		scaleGridLeft="5",
-		scaleGridRight="293",
-		scaleGridBottom="66");
-}
-
-mx|TabNavigator {
-	border-style:solid;	
-}
-
-mx|Button {
-	skin: Embed("assets/button_skin.png",
-			scaleGridLeft="8",
-			scaleGridRight="23",
-			scaleGridTop="8",
-			scaleGridBottom="21");
-	over-skin: Embed("assets/button_over_skin.png",
-			scaleGridLeft="8",
-			scaleGridRight="23",
-			scaleGridTop="8",
-			scaleGridBottom="21");
-	open-duration: 0;
-	close-duration: 0;
-	corner-radius: 2;
-}
-
-
-.appTitle
-{
-	color:#222222;	
-    font-family: main; 
-    font-size: 20pt;
+/*
+ * 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.
+ */
+@namespace mx "library://ns.adobe.com/flex/mx";
+
+@font-face
+{
+    src: url("assets/fonts/MyriadWebPro.ttf");
+    font-family: main;
+    font-style: normal;
+    font-weight: normal;
+}
+
+@font-face
+{
+    src: url("assets/fonts/MyriadWebPro-Bold.ttf");
+    font-family: main;
+    font-style: normal;
+    font-weight: bold;
+}
+
+mx|Application {
+    font-family: main; 
+    font-size: 12;
+}
+
+.appContainer {
+	borderSkin: Embed(source="assets/app_skin.png",
+		scaleGridTop="55",
+		scaleGridLeft="5",
+		scaleGridRight="293",
+		scaleGridBottom="66");
+}
+
+mx|TabNavigator {
+	border-style:solid;	
+}
+
+mx|Button {
+	skin: Embed("assets/button_skin.png",
+			scaleGridLeft="8",
+			scaleGridRight="23",
+			scaleGridTop="8",
+			scaleGridBottom="21");
+	over-skin: Embed("assets/button_over_skin.png",
+			scaleGridLeft="8",
+			scaleGridRight="23",
+			scaleGridTop="8",
+			scaleGridBottom="21");
+	open-duration: 0;
+	close-duration: 0;
+	corner-radius: 2;
+}
+
+
+.appTitle
+{
+	color:#222222;	
+    font-family: main; 
+    font-size: 20pt;
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/samples/WEB-INF/flex-src/runtimeconfig-messaging/build.xml
----------------------------------------------------------------------
diff --git a/attic/apps/samples/WEB-INF/flex-src/runtimeconfig-messaging/build.xml b/attic/apps/samples/WEB-INF/flex-src/runtimeconfig-messaging/build.xml
index 30f386f..0555bf5 100755
--- a/attic/apps/samples/WEB-INF/flex-src/runtimeconfig-messaging/build.xml
+++ b/attic/apps/samples/WEB-INF/flex-src/runtimeconfig-messaging/build.xml
@@ -1,77 +1,77 @@
-<?xml version="1.0"?>
-<!--
-
-  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.
-
--->
-<project name="samples.war/build.xml" default="main" basedir="../../../../../">
-    
-    <property environment="env" />
-    <property file="${basedir}/build.properties"/>
-    <property name="samples.war" value="${basedir}/apps/samples"/>
-    <property name="context.root" value="samples" />
-    <property name="application.name" value="Runtime Configuration - Messaging" />
-    <property name="application.file" value="main" />
-    <property name="application.bin.dir" value="${samples.war}/runtimeconfig-messaging" />
-    <property name="application.src.dir" value="${samples.war}/WEB-INF/flex-src/runtimeconfig-messaging/src" />
-
-    <target name="main" depends="clean,compile-swf" />
-    
-    <target name="compile-swf">
-
-        <taskdef resource="flexTasks.tasks" classpath="${basedir}/ant/lib/flexTasks.jar" />
-        
-        <property name="FLEX_HOME" value="${basedir}"/>
-
-        <mxmlc file="${application.src.dir}/${application.file}.mxml" 
-            output="${application.bin.dir}/${application.file}.swf"
-            actionscript-file-encoding="UTF-8"
-            keep-generated-actionscript="false"
-            incremental="false"
-            services="${samples.war}/WEB-INF/flex/services-config.xml"
-            context-root="${context.root}" 
-            locale="en_US">
-            <load-config filename="${basedir}/frameworks/flex-config.xml"/>
-            <license product="flexbuilder3" serial-number="${env.fb3_license}"/>
-            <source-path path-element="${basedir}/frameworks"/>
-            <external-library-path/>
-            <metadata>
-                <publisher name="${manifest.Implementation-Vendor}" />
-                <creator name="${manifest.Implementation-Vendor}" />
-            </metadata>
-        </mxmlc>
-
-        <html-wrapper title="${application.name}"
-            height="100%"
-            width="100%"
-            application="app"
-            swf="${application.file}"
-            version-major="10"
-            version-minor="0"
-            version-revision="0"
-            express-install="true"
-            output="${application.bin.dir}"/>
-
-    </target>
-
-    <target name="clean" description="--> Removes jars and classes">
-        <delete quiet="true" includeemptydirs="true">
-            <fileset dir="${application.bin.dir}" includes="*.swf,index.html"/>
-            <fileset dir="${application.bin.dir}/history" />
-        </delete>
-    </target>
-
-</project>
+<?xml version="1.0"?>
+<!--
+
+  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.
+
+-->
+<project name="samples.war/build.xml" default="main" basedir="../../../../../">
+    
+    <property environment="env" />
+    <property file="${basedir}/build.properties"/>
+    <property name="samples.war" value="${basedir}/apps/samples"/>
+    <property name="context.root" value="samples" />
+    <property name="application.name" value="Runtime Configuration - Messaging" />
+    <property name="application.file" value="main" />
+    <property name="application.bin.dir" value="${samples.war}/runtimeconfig-messaging" />
+    <property name="application.src.dir" value="${samples.war}/WEB-INF/flex-src/runtimeconfig-messaging/src" />
+
+    <target name="main" depends="clean,compile-swf" />
+    
+    <target name="compile-swf">
+
+        <taskdef resource="flexTasks.tasks" classpath="${basedir}/ant/lib/flexTasks.jar" />
+        
+        <property name="FLEX_HOME" value="${basedir}"/>
+
+        <mxmlc file="${application.src.dir}/${application.file}.mxml" 
+            output="${application.bin.dir}/${application.file}.swf"
+            actionscript-file-encoding="UTF-8"
+            keep-generated-actionscript="false"
+            incremental="false"
+            services="${samples.war}/WEB-INF/flex/services-config.xml"
+            context-root="${context.root}" 
+            locale="en_US">
+            <load-config filename="${basedir}/frameworks/flex-config.xml"/>
+            <license product="flexbuilder3" serial-number="${env.fb3_license}"/>
+            <source-path path-element="${basedir}/frameworks"/>
+            <external-library-path/>
+            <metadata>
+                <publisher name="${manifest.Implementation-Vendor}" />
+                <creator name="${manifest.Implementation-Vendor}" />
+            </metadata>
+        </mxmlc>
+
+        <html-wrapper title="${application.name}"
+            height="100%"
+            width="100%"
+            application="app"
+            swf="${application.file}"
+            version-major="10"
+            version-minor="0"
+            version-revision="0"
+            express-install="true"
+            output="${application.bin.dir}"/>
+
+    </target>
+
+    <target name="clean" description="--> Removes jars and classes">
+        <delete quiet="true" includeemptydirs="true">
+            <fileset dir="${application.bin.dir}" includes="*.swf,index.html"/>
+            <fileset dir="${application.bin.dir}/history" />
+        </delete>
+    </target>
+
+</project>

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/samples/WEB-INF/flex-src/runtimeconfig-messaging/src/ChatPanel.mxml
----------------------------------------------------------------------
diff --git a/attic/apps/samples/WEB-INF/flex-src/runtimeconfig-messaging/src/ChatPanel.mxml b/attic/apps/samples/WEB-INF/flex-src/runtimeconfig-messaging/src/ChatPanel.mxml
index 7271a5a..d0dbba5 100755
--- a/attic/apps/samples/WEB-INF/flex-src/runtimeconfig-messaging/src/ChatPanel.mxml
+++ b/attic/apps/samples/WEB-INF/flex-src/runtimeconfig-messaging/src/ChatPanel.mxml
@@ -1,87 +1,87 @@
-<?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:Panel xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%"
-	creationComplete="initComp()">
-
-	<mx:Script>
-		<![CDATA[
-			import mx.messaging.channels.StreamingAMFChannel;
-			import mx.messaging.ChannelSet;
-			import mx.messaging.channels.AMFChannel;
-			import mx.messaging.events.MessageEvent;
-			import mx.messaging.messages.AsyncMessage;
-			import mx.messaging.messages.IMessage;
-
-
-			private function initComp():void
-			{
-				var myStreamingAMF:AMFChannel = new StreamingAMFChannel("my-streaming-amf", "../messagebroker/streamingamf");
-				var myPollingAMF:AMFChannel = new AMFChannel("my-polling-amf", "../messagebroker/amfpolling");
-				myPollingAMF.pollingEnabled = true;
-				myPollingAMF.pollingInterval = 2000;
-				var channelSet:ChannelSet = new ChannelSet();
-				channelSet.addChannel(myStreamingAMF);
-				channelSet.addChannel(myPollingAMF);
-				consumer.channelSet = channelSet;				
-				producer.channelSet = channelSet;
-			}
-
-			public function set room(name:String):void
-			{
-				if (!name) return;
-				
-				if (consumer && consumer.subscribed) 
-				{
-					log.text += "Leaving room " + consumer.destination + "\n";	
-					consumer.unsubscribe();
-				}
-				consumer.destination = name;
-				producer.destination = name;
-				consumer.subscribe();
-				log.text += "Entering room " + name + "\n";	
-			}
-			
-			private function send():void
-			{
-				var message:IMessage = new AsyncMessage();
-				message.body = msg.text;
-				producer.send(message);
-				msg.text = "";
-			}
-							
-			private function messageHandler(event:MessageEvent):void
-			{
-				log.text += event.message.body + "\n";	
-			}
-			
-		]]>
-	</mx:Script>
-
-	<mx:Producer id="producer"/>
-	<mx:Consumer id="consumer" message="messageHandler(event)"/>
-
-	<mx:TextArea id="log" width="100%" height="100%"/>
-	
-	<mx:ControlBar>
-		<mx:TextInput id="msg" width="100%" enter="send()" enabled="{consumer.subscribed}"/>
-		<mx:Button label="Send" click="send()" enabled="{consumer.subscribed}"/>
-	</mx:ControlBar>
-	
-</mx:Panel>
+<?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:Panel xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%"
+	creationComplete="initComp()">
+
+	<mx:Script>
+		<![CDATA[
+			import mx.messaging.channels.StreamingAMFChannel;
+			import mx.messaging.ChannelSet;
+			import mx.messaging.channels.AMFChannel;
+			import mx.messaging.events.MessageEvent;
+			import mx.messaging.messages.AsyncMessage;
+			import mx.messaging.messages.IMessage;
+
+
+			private function initComp():void
+			{
+				var myStreamingAMF:AMFChannel = new StreamingAMFChannel("my-streaming-amf", "../messagebroker/streamingamf");
+				var myPollingAMF:AMFChannel = new AMFChannel("my-polling-amf", "../messagebroker/amfpolling");
+				myPollingAMF.pollingEnabled = true;
+				myPollingAMF.pollingInterval = 2000;
+				var channelSet:ChannelSet = new ChannelSet();
+				channelSet.addChannel(myStreamingAMF);
+				channelSet.addChannel(myPollingAMF);
+				consumer.channelSet = channelSet;				
+				producer.channelSet = channelSet;
+			}
+
+			public function set room(name:String):void
+			{
+				if (!name) return;
+				
+				if (consumer && consumer.subscribed) 
+				{
+					log.text += "Leaving room " + consumer.destination + "\n";	
+					consumer.unsubscribe();
+				}
+				consumer.destination = name;
+				producer.destination = name;
+				consumer.subscribe();
+				log.text += "Entering room " + name + "\n";	
+			}
+			
+			private function send():void
+			{
+				var message:IMessage = new AsyncMessage();
+				message.body = msg.text;
+				producer.send(message);
+				msg.text = "";
+			}
+							
+			private function messageHandler(event:MessageEvent):void
+			{
+				log.text += event.message.body + "\n";	
+			}
+			
+		]]>
+	</mx:Script>
+
+	<mx:Producer id="producer"/>
+	<mx:Consumer id="consumer" message="messageHandler(event)"/>
+
+	<mx:TextArea id="log" width="100%" height="100%"/>
+	
+	<mx:ControlBar>
+		<mx:TextInput id="msg" width="100%" enter="send()" enabled="{consumer.subscribed}"/>
+		<mx:Button label="Send" click="send()" enabled="{consumer.subscribed}"/>
+	</mx:ControlBar>
+	
+</mx:Panel>

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/samples/WEB-INF/flex-src/runtimeconfig-messaging/src/main.mxml
----------------------------------------------------------------------
diff --git a/attic/apps/samples/WEB-INF/flex-src/runtimeconfig-messaging/src/main.mxml b/attic/apps/samples/WEB-INF/flex-src/runtimeconfig-messaging/src/main.mxml
index 8da08cc..f9d9421 100755
--- a/attic/apps/samples/WEB-INF/flex-src/runtimeconfig-messaging/src/main.mxml
+++ b/attic/apps/samples/WEB-INF/flex-src/runtimeconfig-messaging/src/main.mxml
@@ -1,54 +1,54 @@
-<?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:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" layout="horizontal"
-	creationComplete="srv.getRoomList()">
-
-	<mx:RemoteObject id="srv" destination="chat-room-service" 
-		fault="Alert.show(event.fault.rootCause.message, 'Error')"/>
-
-	<mx:Panel title="Room List" width="100%" height="100%" paddingTop="4" paddingLeft="4" paddingBottom="4" paddingRight="4">
-
-		<mx:Label text="Select a room and start chatting in the right panel:"/>
-		<mx:List id="list" dataProvider="{srv.getRoomList.lastResult}" width="100%" height="100%"/>
-
-		<mx:ControlBar>
-			<mx:VBox width="100%">
-				<mx:Button label="Refresh" click="srv.getRoomList()"/>
-				<mx:Spacer height="2"/>
-				<mx:HRule width="100%" height="1"/>
-				<mx:Label text="Create a room:"/>
-				<mx:HBox>
-					<mx:TextInput id="room"/>
-					<mx:Button label="Create" click="srv.createRoom(room.text)" enabled="{room.text.length>0}"/>
-				</mx:HBox>
-			</mx:VBox>
-		</mx:ControlBar>		
-		
-	</mx:Panel>
-	
-	<ChatPanel title="Chat" room="{list.selectedItem}"/>
-
-	<mx:Script>
-		<![CDATA[
-			import mx.controls.Alert;
-		]]>
-	</mx:Script>
-	
-</mx:Application>
+<?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:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" layout="horizontal"
+	creationComplete="srv.getRoomList()">
+
+	<mx:RemoteObject id="srv" destination="chat-room-service" 
+		fault="Alert.show(event.fault.rootCause.message, 'Error')"/>
+
+	<mx:Panel title="Room List" width="100%" height="100%" paddingTop="4" paddingLeft="4" paddingBottom="4" paddingRight="4">
+
+		<mx:Label text="Select a room and start chatting in the right panel:"/>
+		<mx:List id="list" dataProvider="{srv.getRoomList.lastResult}" width="100%" height="100%"/>
+
+		<mx:ControlBar>
+			<mx:VBox width="100%">
+				<mx:Button label="Refresh" click="srv.getRoomList()"/>
+				<mx:Spacer height="2"/>
+				<mx:HRule width="100%" height="1"/>
+				<mx:Label text="Create a room:"/>
+				<mx:HBox>
+					<mx:TextInput id="room"/>
+					<mx:Button label="Create" click="srv.createRoom(room.text)" enabled="{room.text.length>0}"/>
+				</mx:HBox>
+			</mx:VBox>
+		</mx:ControlBar>		
+		
+	</mx:Panel>
+	
+	<ChatPanel title="Chat" room="{list.selectedItem}"/>
+
+	<mx:Script>
+		<![CDATA[
+			import mx.controls.Alert;
+		]]>
+	</mx:Script>
+	
+</mx:Application>

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/samples/WEB-INF/flex-src/runtimeconfig-remoting/build.xml
----------------------------------------------------------------------
diff --git a/attic/apps/samples/WEB-INF/flex-src/runtimeconfig-remoting/build.xml b/attic/apps/samples/WEB-INF/flex-src/runtimeconfig-remoting/build.xml
index 2d7ccf0..6a2edf8 100755
--- a/attic/apps/samples/WEB-INF/flex-src/runtimeconfig-remoting/build.xml
+++ b/attic/apps/samples/WEB-INF/flex-src/runtimeconfig-remoting/build.xml
@@ -1,77 +1,77 @@
-<?xml version="1.0"?>
-<!--
-
-  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.
-
--->
-<project name="samples.war/build.xml" default="main" basedir="../../../../../">
-    
-    <property environment="env" />
-    <property file="${basedir}/build.properties"/>
-    <property name="samples.war" value="${basedir}/apps/samples"/>
-    <property name="context.root" value="samples" />
-    <property name="application.name" value="Runtime Configuration - Remoting" />
-    <property name="application.file" value="main" />
-    <property name="application.bin.dir" value="${samples.war}/runtimeconfig-remoting" />
-    <property name="application.src.dir" value="${samples.war}/WEB-INF/flex-src/runtimeconfig-remoting/src" />
-
-    <target name="main" depends="clean,compile-swf" />
-    
-    <target name="compile-swf">
-
-        <taskdef resource="flexTasks.tasks" classpath="${basedir}/ant/lib/flexTasks.jar" />
-        
-        <property name="FLEX_HOME" value="${basedir}"/>
-
-        <mxmlc file="${application.src.dir}/${application.file}.mxml" 
-            output="${application.bin.dir}/${application.file}.swf"
-            actionscript-file-encoding="UTF-8"
-            keep-generated-actionscript="false"
-            incremental="false"
-            services="${samples.war}/WEB-INF/flex/services-config.xml"
-            context-root="${context.root}" 
-            locale="en_US">
-            <load-config filename="${basedir}/frameworks/flex-config.xml"/>
-            <license product="flexbuilder3" serial-number="${env.fb3_license}"/>
-            <source-path path-element="${basedir}/frameworks"/>
-            <external-library-path/>
-            <metadata>
-                <publisher name="${manifest.Implementation-Vendor}" />
-                <creator name="${manifest.Implementation-Vendor}" />
-            </metadata>
-        </mxmlc>
-
-        <html-wrapper title="${application.name}"
-            height="100%"
-            width="100%"
-            application="app"
-            swf="${application.file}"
-            version-major="10"
-            version-minor="0"
-            version-revision="0"
-            express-install="true"
-            output="${application.bin.dir}"/>
-
-    </target>
-
-    <target name="clean" description="--> Removes jars and classes">
-        <delete quiet="true" includeemptydirs="true">
-            <fileset dir="${application.bin.dir}" includes="*.swf,index.html"/>
-            <fileset dir="${application.bin.dir}/history" />
-        </delete>
-    </target>
-
-</project>
+<?xml version="1.0"?>
+<!--
+
+  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.
+
+-->
+<project name="samples.war/build.xml" default="main" basedir="../../../../../">
+    
+    <property environment="env" />
+    <property file="${basedir}/build.properties"/>
+    <property name="samples.war" value="${basedir}/apps/samples"/>
+    <property name="context.root" value="samples" />
+    <property name="application.name" value="Runtime Configuration - Remoting" />
+    <property name="application.file" value="main" />
+    <property name="application.bin.dir" value="${samples.war}/runtimeconfig-remoting" />
+    <property name="application.src.dir" value="${samples.war}/WEB-INF/flex-src/runtimeconfig-remoting/src" />
+
+    <target name="main" depends="clean,compile-swf" />
+    
+    <target name="compile-swf">
+
+        <taskdef resource="flexTasks.tasks" classpath="${basedir}/ant/lib/flexTasks.jar" />
+        
+        <property name="FLEX_HOME" value="${basedir}"/>
+
+        <mxmlc file="${application.src.dir}/${application.file}.mxml" 
+            output="${application.bin.dir}/${application.file}.swf"
+            actionscript-file-encoding="UTF-8"
+            keep-generated-actionscript="false"
+            incremental="false"
+            services="${samples.war}/WEB-INF/flex/services-config.xml"
+            context-root="${context.root}" 
+            locale="en_US">
+            <load-config filename="${basedir}/frameworks/flex-config.xml"/>
+            <license product="flexbuilder3" serial-number="${env.fb3_license}"/>
+            <source-path path-element="${basedir}/frameworks"/>
+            <external-library-path/>
+            <metadata>
+                <publisher name="${manifest.Implementation-Vendor}" />
+                <creator name="${manifest.Implementation-Vendor}" />
+            </metadata>
+        </mxmlc>
+
+        <html-wrapper title="${application.name}"
+            height="100%"
+            width="100%"
+            application="app"
+            swf="${application.file}"
+            version-major="10"
+            version-minor="0"
+            version-revision="0"
+            express-install="true"
+            output="${application.bin.dir}"/>
+
+    </target>
+
+    <target name="clean" description="--> Removes jars and classes">
+        <delete quiet="true" includeemptydirs="true">
+            <fileset dir="${application.bin.dir}" includes="*.swf,index.html"/>
+            <fileset dir="${application.bin.dir}/history" />
+        </delete>
+    </target>
+
+</project>

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/samples/WEB-INF/flex-src/runtimeconfig-remoting/src/main.mxml
----------------------------------------------------------------------
diff --git a/attic/apps/samples/WEB-INF/flex-src/runtimeconfig-remoting/src/main.mxml b/attic/apps/samples/WEB-INF/flex-src/runtimeconfig-remoting/src/main.mxml
index a745b7c..f225124 100755
--- a/attic/apps/samples/WEB-INF/flex-src/runtimeconfig-remoting/src/main.mxml
+++ b/attic/apps/samples/WEB-INF/flex-src/runtimeconfig-remoting/src/main.mxml
@@ -1,64 +1,64 @@
-<?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:Application xmlns:mx="http://www.adobe.com/2006/mxml"
-	creationComplete="initApp()">
-
-	<!-- 
-		Simple client to demonstrate runtime configuration of destinations.
-		The "runtime-employee" destination is configured in 
-		EmployeeRuntimeRemotingDestination.java. 
-	-->
-
-	<mx:Script>
-		<![CDATA[
-			import mx.rpc.remoting.mxml.RemoteObject;
-			import mx.messaging.ChannelSet;
-			import mx.messaging.channels.AMFChannel;
-			
-			[Bindable]
-			private var srv:RemoteObject;
-			
-			private function initApp():void
-			{
-				var channel:AMFChannel = new AMFChannel("my-amf", "../messagebroker/amf");
-				var channelSet:ChannelSet = new ChannelSet();
-				channelSet.addChannel(channel);
-				srv = new RemoteObject();
-				srv.destination="runtime-employee-ro";	
-				srv.channelSet = channelSet;
-				srv.getEmployees();
-			}
-			
-		]]>
-	</mx:Script>
-
-	<mx:Panel title="Employee List" width="100%" height="100%">
-		<mx:DataGrid width="100%" height="100%" dataProvider="{srv.getEmployees.lastResult}">
-			<mx:columns>
-				<mx:DataGridColumn headerText="First Name" dataField="firstName"/>
-				<mx:DataGridColumn headerText="Last Name" dataField="lastName"/>
-				<mx:DataGridColumn headerText="Title" dataField="title"/>
-				<mx:DataGridColumn headerText="Phone" dataField="phone"/>
-				<mx:DataGridColumn headerText="Email" dataField="email"/>
-			</mx:columns>
-		</mx:DataGrid>
-	</mx:Panel>
-	
-</mx:Application>
+<?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:Application xmlns:mx="http://www.adobe.com/2006/mxml"
+	creationComplete="initApp()">
+
+	<!-- 
+		Simple client to demonstrate runtime configuration of destinations.
+		The "runtime-employee" destination is configured in 
+		EmployeeRuntimeRemotingDestination.java. 
+	-->
+
+	<mx:Script>
+		<![CDATA[
+			import mx.rpc.remoting.mxml.RemoteObject;
+			import mx.messaging.ChannelSet;
+			import mx.messaging.channels.AMFChannel;
+			
+			[Bindable]
+			private var srv:RemoteObject;
+			
+			private function initApp():void
+			{
+				var channel:AMFChannel = new AMFChannel("my-amf", "../messagebroker/amf");
+				var channelSet:ChannelSet = new ChannelSet();
+				channelSet.addChannel(channel);
+				srv = new RemoteObject();
+				srv.destination="runtime-employee-ro";	
+				srv.channelSet = channelSet;
+				srv.getEmployees();
+			}
+			
+		]]>
+	</mx:Script>
+
+	<mx:Panel title="Employee List" width="100%" height="100%">
+		<mx:DataGrid width="100%" height="100%" dataProvider="{srv.getEmployees.lastResult}">
+			<mx:columns>
+				<mx:DataGridColumn headerText="First Name" dataField="firstName"/>
+				<mx:DataGridColumn headerText="Last Name" dataField="lastName"/>
+				<mx:DataGridColumn headerText="Title" dataField="title"/>
+				<mx:DataGridColumn headerText="Phone" dataField="phone"/>
+				<mx:DataGridColumn headerText="Email" dataField="email"/>
+			</mx:columns>
+		</mx:DataGrid>
+	</mx:Panel>
+	
+</mx:Application>

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/samples/WEB-INF/flex-src/testdrive-101/build.xml
----------------------------------------------------------------------
diff --git a/attic/apps/samples/WEB-INF/flex-src/testdrive-101/build.xml b/attic/apps/samples/WEB-INF/flex-src/testdrive-101/build.xml
index eb756ee..d711d68 100755
--- a/attic/apps/samples/WEB-INF/flex-src/testdrive-101/build.xml
+++ b/attic/apps/samples/WEB-INF/flex-src/testdrive-101/build.xml
@@ -1,77 +1,77 @@
-<?xml version="1.0"?>
-<!--
-
-  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.
-
--->
-<project name="samples.war/build.xml" default="main" basedir="../../../../../">
-    
-    <property environment="env" />
-    <property file="${basedir}/build.properties"/>
-    <property name="samples.war" value="${basedir}/apps/samples"/>
-    <property name="context.root" value="samples" />
-    <property name="application.name" value="Flex Programming Model 101" />
-    <property name="application.file" value="main" />
-    <property name="application.bin.dir" value="${samples.war}/testdrive-101" />
-    <property name="application.src.dir" value="${samples.war}/WEB-INF/flex-src/testdrive-101/src" />
-
-    <target name="main" depends="clean,compile-swf" />
-    
-    <target name="compile-swf">
-
-        <taskdef resource="flexTasks.tasks" classpath="${basedir}/ant/lib/flexTasks.jar" />
-        
-        <property name="FLEX_HOME" value="${basedir}"/>
-
-        <mxmlc file="${application.src.dir}/${application.file}.mxml" 
-            output="${application.bin.dir}/${application.file}.swf"
-            actionscript-file-encoding="UTF-8"
-            keep-generated-actionscript="false"
-            incremental="false"
-            services="${samples.war}/WEB-INF/flex/services-config.xml"
-            context-root="${context.root}" 
-            locale="en_US">
-            <load-config filename="${basedir}/frameworks/flex-config.xml"/>
-            <license product="flexbuilder3" serial-number="${env.fb3_license}"/>
-            <source-path path-element="${basedir}/frameworks"/>
-            <external-library-path/>
-            <metadata>
-                <publisher name="${manifest.Implementation-Vendor}" />
-                <creator name="${manifest.Implementation-Vendor}" />
-            </metadata>
-        </mxmlc>
-
-        <html-wrapper title="${application.name}"
-            height="100%"
-            width="100%"
-            application="app"
-            swf="${application.file}"
-            version-major="10"
-            version-minor="0"
-            version-revision="0"
-            express-install="true"
-            output="${application.bin.dir}"/>
-
-    </target>
-
-    <target name="clean" description="--> Removes jars and classes">
-        <delete quiet="true" includeemptydirs="true">
-            <fileset dir="${application.bin.dir}" includes="*.swf,index.html"/>
-            <fileset dir="${application.bin.dir}/history" />
-        </delete>
-    </target>
-
-</project>
+<?xml version="1.0"?>
+<!--
+
+  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.
+
+-->
+<project name="samples.war/build.xml" default="main" basedir="../../../../../">
+    
+    <property environment="env" />
+    <property file="${basedir}/build.properties"/>
+    <property name="samples.war" value="${basedir}/apps/samples"/>
+    <property name="context.root" value="samples" />
+    <property name="application.name" value="Flex Programming Model 101" />
+    <property name="application.file" value="main" />
+    <property name="application.bin.dir" value="${samples.war}/testdrive-101" />
+    <property name="application.src.dir" value="${samples.war}/WEB-INF/flex-src/testdrive-101/src" />
+
+    <target name="main" depends="clean,compile-swf" />
+    
+    <target name="compile-swf">
+
+        <taskdef resource="flexTasks.tasks" classpath="${basedir}/ant/lib/flexTasks.jar" />
+        
+        <property name="FLEX_HOME" value="${basedir}"/>
+
+        <mxmlc file="${application.src.dir}/${application.file}.mxml" 
+            output="${application.bin.dir}/${application.file}.swf"
+            actionscript-file-encoding="UTF-8"
+            keep-generated-actionscript="false"
+            incremental="false"
+            services="${samples.war}/WEB-INF/flex/services-config.xml"
+            context-root="${context.root}" 
+            locale="en_US">
+            <load-config filename="${basedir}/frameworks/flex-config.xml"/>
+            <license product="flexbuilder3" serial-number="${env.fb3_license}"/>
+            <source-path path-element="${basedir}/frameworks"/>
+            <external-library-path/>
+            <metadata>
+                <publisher name="${manifest.Implementation-Vendor}" />
+                <creator name="${manifest.Implementation-Vendor}" />
+            </metadata>
+        </mxmlc>
+
+        <html-wrapper title="${application.name}"
+            height="100%"
+            width="100%"
+            application="app"
+            swf="${application.file}"
+            version-major="10"
+            version-minor="0"
+            version-revision="0"
+            express-install="true"
+            output="${application.bin.dir}"/>
+
+    </target>
+
+    <target name="clean" description="--> Removes jars and classes">
+        <delete quiet="true" includeemptydirs="true">
+            <fileset dir="${application.bin.dir}" includes="*.swf,index.html"/>
+            <fileset dir="${application.bin.dir}/history" />
+        </delete>
+    </target>
+
+</project>

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/samples/WEB-INF/flex-src/testdrive-101/src/ProductView.mxml
----------------------------------------------------------------------
diff --git a/attic/apps/samples/WEB-INF/flex-src/testdrive-101/src/ProductView.mxml b/attic/apps/samples/WEB-INF/flex-src/testdrive-101/src/ProductView.mxml
index d55d038..6d25118 100755
--- a/attic/apps/samples/WEB-INF/flex-src/testdrive-101/src/ProductView.mxml
+++ b/attic/apps/samples/WEB-INF/flex-src/testdrive-101/src/ProductView.mxml
@@ -1,35 +1,35 @@
-<?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:Panel xmlns:mx="http://www.adobe.com/2006/mxml" layout="horizontal" width="100%" height="100%"
-	title="Product Details" paddingLeft="12" paddingRight="12" paddingTop="12" paddingBottom="12">
-	
-	<mx:Object id="product"/>
-	
-	<mx:CurrencyFormatter id="cf"/>
-	
-	<mx:Image source="../images/{product.image}"/>
-
-	<mx:VBox width="100%" height="100%">
-		<mx:Label text="{product.name}" fontWeight="bold"/>
-		<mx:Label text="Price: {cf.format(product.price)}" styleName="price"/>
-		<mx:Text text="{product.description}" width="100%" height="100%"/>
-	</mx:VBox>
-			
+<?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:Panel xmlns:mx="http://www.adobe.com/2006/mxml" layout="horizontal" width="100%" height="100%"
+	title="Product Details" paddingLeft="12" paddingRight="12" paddingTop="12" paddingBottom="12">
+	
+	<mx:Object id="product"/>
+	
+	<mx:CurrencyFormatter id="cf"/>
+	
+	<mx:Image source="../images/{product.image}"/>
+
+	<mx:VBox width="100%" height="100%">
+		<mx:Label text="{product.name}" fontWeight="bold"/>
+		<mx:Label text="Price: {cf.format(product.price)}" styleName="price"/>
+		<mx:Text text="{product.description}" width="100%" height="100%"/>
+	</mx:VBox>
+			
 </mx:Panel>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/samples/WEB-INF/flex-src/testdrive-101/src/Thumb.mxml
----------------------------------------------------------------------
diff --git a/attic/apps/samples/WEB-INF/flex-src/testdrive-101/src/Thumb.mxml b/attic/apps/samples/WEB-INF/flex-src/testdrive-101/src/Thumb.mxml
index 79b5f04..71cbb7d 100755
--- a/attic/apps/samples/WEB-INF/flex-src/testdrive-101/src/Thumb.mxml
+++ b/attic/apps/samples/WEB-INF/flex-src/testdrive-101/src/Thumb.mxml
@@ -1,29 +1,29 @@
-<?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" width="120" height="120" 
-	horizontalAlign="center" verticalGap="0" verticalScrollPolicy="off" horizontalScrollPolicy="off">
-	
-	<mx:CurrencyFormatter id="cf"/>
-	
-	<mx:Label text="{data.name}" fontWeight="bold"/>
-	<mx:Image source="../images/{data.image}" width="40" height="80"/>
-	<mx:Label text="{cf.format(data.price)}" styleName="price"/>
-
-</mx:VBox>
+<?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" width="120" height="120" 
+	horizontalAlign="center" verticalGap="0" verticalScrollPolicy="off" horizontalScrollPolicy="off">
+	
+	<mx:CurrencyFormatter id="cf"/>
+	
+	<mx:Label text="{data.name}" fontWeight="bold"/>
+	<mx:Image source="../images/{data.image}" width="40" height="80"/>
+	<mx:Label text="{cf.format(data.price)}" styleName="price"/>
+
+</mx:VBox>

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/samples/WEB-INF/flex-src/testdrive-101/src/main.mxml
----------------------------------------------------------------------
diff --git a/attic/apps/samples/WEB-INF/flex-src/testdrive-101/src/main.mxml b/attic/apps/samples/WEB-INF/flex-src/testdrive-101/src/main.mxml
index a90fb43..e0d18c1 100755
--- a/attic/apps/samples/WEB-INF/flex-src/testdrive-101/src/main.mxml
+++ b/attic/apps/samples/WEB-INF/flex-src/testdrive-101/src/main.mxml
@@ -1,52 +1,52 @@
-<?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:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" layout="horizontal"
-	creationComplete="srv.getProducts()">
-	
-	<mx:Style source="testdrive.css"/>
-
-	<mx:Script>
-		<![CDATA[
-		
-			import mx.collections.ArrayCollection;
-			import mx.rpc.events.ResultEvent;
-		
-			[Bindable]
-			private var products:ArrayCollection;
-			
-			private function resultHandler(event:ResultEvent):void
-			{
-				products = event.result as ArrayCollection;	
-			}			
-			
-		]]>
-	</mx:Script>
-
-	<mx:RemoteObject id="srv" destination="product">
-		<mx:method name="getProducts" result="resultHandler(event)"/>
-	</mx:RemoteObject>
-	
-	<mx:Panel title="Catalog" width="100%" height="100%">
-		<mx:TileList id="list" dataProvider="{products}" itemRenderer="Thumb" width="100%" height="100%"/> 
-	</mx:Panel>
-	
-	<ProductView product="{list.selectedItem}"/>
-		
+<?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:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" layout="horizontal"
+	creationComplete="srv.getProducts()">
+	
+	<mx:Style source="testdrive.css"/>
+
+	<mx:Script>
+		<![CDATA[
+		
+			import mx.collections.ArrayCollection;
+			import mx.rpc.events.ResultEvent;
+		
+			[Bindable]
+			private var products:ArrayCollection;
+			
+			private function resultHandler(event:ResultEvent):void
+			{
+				products = event.result as ArrayCollection;	
+			}			
+			
+		]]>
+	</mx:Script>
+
+	<mx:RemoteObject id="srv" destination="product">
+		<mx:method name="getProducts" result="resultHandler(event)"/>
+	</mx:RemoteObject>
+	
+	<mx:Panel title="Catalog" width="100%" height="100%">
+		<mx:TileList id="list" dataProvider="{products}" itemRenderer="Thumb" width="100%" height="100%"/> 
+	</mx:Panel>
+	
+	<ProductView product="{list.selectedItem}"/>
+		
 </mx:Application>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/samples/WEB-INF/flex-src/testdrive-101/src/testdrive.css
----------------------------------------------------------------------
diff --git a/attic/apps/samples/WEB-INF/flex-src/testdrive-101/src/testdrive.css b/attic/apps/samples/WEB-INF/flex-src/testdrive-101/src/testdrive.css
index ac2b336..1c65407 100755
--- a/attic/apps/samples/WEB-INF/flex-src/testdrive-101/src/testdrive.css
+++ b/attic/apps/samples/WEB-INF/flex-src/testdrive-101/src/testdrive.css
@@ -1,35 +1,35 @@
-/*
- * 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.
- */
-@namespace mx "library://ns.adobe.com/flex/mx";
-
-mx|Application {
-	background-color: #E57000;
-	themeColor: #E57000;
-}
-
-mx|TileList {
-	selection-color: #FFCC33;
-	roll-over-color: #FFCC99;
-}
-
-mx|Panel {
-	roundedBottomCorners: true;
-}
-
-.price {
-	color: #E57000;
-}
+/*
+ * 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.
+ */
+@namespace mx "library://ns.adobe.com/flex/mx";
+
+mx|Application {
+	background-color: #E57000;
+	themeColor: #E57000;
+}
+
+mx|TileList {
+	selection-color: #FFCC33;
+	roll-over-color: #FFCC99;
+}
+
+mx|Panel {
+	roundedBottomCorners: true;
+}
+
+.price {
+	color: #E57000;
+}

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/samples/WEB-INF/flex-src/testdrive-chat/build.xml
----------------------------------------------------------------------
diff --git a/attic/apps/samples/WEB-INF/flex-src/testdrive-chat/build.xml b/attic/apps/samples/WEB-INF/flex-src/testdrive-chat/build.xml
index 3fedee4..1e74b02 100755
--- a/attic/apps/samples/WEB-INF/flex-src/testdrive-chat/build.xml
+++ b/attic/apps/samples/WEB-INF/flex-src/testdrive-chat/build.xml
@@ -1,77 +1,77 @@
-<?xml version="1.0"?>
-<!--
-
-  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.
-
--->
-<project name="samples.war/build.xml" default="main" basedir="../../../../../">
-    
-    <property environment="env" />
-    <property file="${basedir}/build.properties"/>
-    <property name="samples.war" value="${basedir}/apps/samples"/>
-    <property name="context.root" value="samples" />
-    <property name="application.name" value="Chat" />
-    <property name="application.file" value="main" />
-    <property name="application.bin.dir" value="${samples.war}/testdrive-chat" />
-    <property name="application.src.dir" value="${samples.war}/WEB-INF/flex-src/testdrive-chat/src" />
-
-    <target name="main" depends="clean,compile-swf" />
-    
-    <target name="compile-swf">
-
-        <taskdef resource="flexTasks.tasks" classpath="${basedir}/ant/lib/flexTasks.jar" />
-        
-        <property name="FLEX_HOME" value="${basedir}"/>
-
-        <mxmlc file="${application.src.dir}/${application.file}.mxml" 
-            output="${application.bin.dir}/${application.file}.swf"
-            actionscript-file-encoding="UTF-8"
-            keep-generated-actionscript="false"
-            incremental="false"
-            services="${samples.war}/WEB-INF/flex/services-config.xml"
-            context-root="${context.root}" 
-            locale="en_US">
-            <load-config filename="${basedir}/frameworks/flex-config.xml"/>
-            <license product="flexbuilder3" serial-number="${env.fb3_license}"/>
-            <source-path path-element="${basedir}/frameworks"/>
-            <external-library-path/>
-            <metadata>
-                <publisher name="${manifest.Implementation-Vendor}" />
-                <creator name="${manifest.Implementation-Vendor}" />
-            </metadata>
-        </mxmlc>
-
-        <html-wrapper title="${application.name}"
-            height="100%"
-            width="100%"
-            application="app"
-            swf="${application.file}"
-            version-major="10"
-            version-minor="0"
-            version-revision="0"
-            express-install="true"
-            output="${application.bin.dir}"/>
-
-    </target>
-
-    <target name="clean" description="--> Removes jars and classes">
-        <delete quiet="true" includeemptydirs="true">
-            <fileset dir="${application.bin.dir}" includes="*.swf,index.html"/>
-            <fileset dir="${application.bin.dir}/history" />
-        </delete>
-    </target>
-
-</project>
+<?xml version="1.0"?>
+<!--
+
+  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.
+
+-->
+<project name="samples.war/build.xml" default="main" basedir="../../../../../">
+    
+    <property environment="env" />
+    <property file="${basedir}/build.properties"/>
+    <property name="samples.war" value="${basedir}/apps/samples"/>
+    <property name="context.root" value="samples" />
+    <property name="application.name" value="Chat" />
+    <property name="application.file" value="main" />
+    <property name="application.bin.dir" value="${samples.war}/testdrive-chat" />
+    <property name="application.src.dir" value="${samples.war}/WEB-INF/flex-src/testdrive-chat/src" />
+
+    <target name="main" depends="clean,compile-swf" />
+    
+    <target name="compile-swf">
+
+        <taskdef resource="flexTasks.tasks" classpath="${basedir}/ant/lib/flexTasks.jar" />
+        
+        <property name="FLEX_HOME" value="${basedir}"/>
+
+        <mxmlc file="${application.src.dir}/${application.file}.mxml" 
+            output="${application.bin.dir}/${application.file}.swf"
+            actionscript-file-encoding="UTF-8"
+            keep-generated-actionscript="false"
+            incremental="false"
+            services="${samples.war}/WEB-INF/flex/services-config.xml"
+            context-root="${context.root}" 
+            locale="en_US">
+            <load-config filename="${basedir}/frameworks/flex-config.xml"/>
+            <license product="flexbuilder3" serial-number="${env.fb3_license}"/>
+            <source-path path-element="${basedir}/frameworks"/>
+            <external-library-path/>
+            <metadata>
+                <publisher name="${manifest.Implementation-Vendor}" />
+                <creator name="${manifest.Implementation-Vendor}" />
+            </metadata>
+        </mxmlc>
+
+        <html-wrapper title="${application.name}"
+            height="100%"
+            width="100%"
+            application="app"
+            swf="${application.file}"
+            version-major="10"
+            version-minor="0"
+            version-revision="0"
+            express-install="true"
+            output="${application.bin.dir}"/>
+
+    </target>
+
+    <target name="clean" description="--> Removes jars and classes">
+        <delete quiet="true" includeemptydirs="true">
+            <fileset dir="${application.bin.dir}" includes="*.swf,index.html"/>
+            <fileset dir="${application.bin.dir}/history" />
+        </delete>
+    </target>
+
+</project>

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/samples/WEB-INF/flex-src/testdrive-chat/src/main.mxml
----------------------------------------------------------------------
diff --git a/attic/apps/samples/WEB-INF/flex-src/testdrive-chat/src/main.mxml b/attic/apps/samples/WEB-INF/flex-src/testdrive-chat/src/main.mxml
index 213fa31..a949346 100755
--- a/attic/apps/samples/WEB-INF/flex-src/testdrive-chat/src/main.mxml
+++ b/attic/apps/samples/WEB-INF/flex-src/testdrive-chat/src/main.mxml
@@ -1,56 +1,56 @@
-<?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:Application xmlns:mx="http://www.adobe.com/2006/mxml"
-	creationComplete="consumer.subscribe()">
-	
-	<mx:Script>
-		<![CDATA[
-		
-			import mx.messaging.messages.AsyncMessage;
-			import mx.messaging.messages.IMessage;
-			
-			private function send():void
-			{
-				var message:IMessage = new AsyncMessage();
-				message.body.chatMessage = msg.text;
-				producer.send(message);
-				msg.text = "";
-			}
-							
-			private function messageHandler(message:IMessage):void
-			{
-				log.text += message.body.chatMessage + "\n";	
-			}
-			
-		]]>
-	</mx:Script>
-	
-	<mx:Producer id="producer" destination="chat"/>
-	<mx:Consumer id="consumer" destination="chat" message="messageHandler(event.message)"/>
-	
-	<mx:Panel title="Chat" width="100%" height="100%">
-		<mx:TextArea id="log" width="100%" height="100%"/>
-		<mx:ControlBar>
-			 <mx:TextInput id="msg" width="100%" enter="send()"/>
-			 <mx:Button label="Send" click="send()"/> 
-		</mx:ControlBar>
-	</mx:Panel>
-	
+<?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:Application xmlns:mx="http://www.adobe.com/2006/mxml"
+	creationComplete="consumer.subscribe()">
+	
+	<mx:Script>
+		<![CDATA[
+		
+			import mx.messaging.messages.AsyncMessage;
+			import mx.messaging.messages.IMessage;
+			
+			private function send():void
+			{
+				var message:IMessage = new AsyncMessage();
+				message.body.chatMessage = msg.text;
+				producer.send(message);
+				msg.text = "";
+			}
+							
+			private function messageHandler(message:IMessage):void
+			{
+				log.text += message.body.chatMessage + "\n";	
+			}
+			
+		]]>
+	</mx:Script>
+	
+	<mx:Producer id="producer" destination="chat"/>
+	<mx:Consumer id="consumer" destination="chat" message="messageHandler(event.message)"/>
+	
+	<mx:Panel title="Chat" width="100%" height="100%">
+		<mx:TextArea id="log" width="100%" height="100%"/>
+		<mx:ControlBar>
+			 <mx:TextInput id="msg" width="100%" enter="send()"/>
+			 <mx:Button label="Send" click="send()"/> 
+		</mx:ControlBar>
+	</mx:Panel>
+	
 </mx:Application>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/samples/WEB-INF/flex-src/testdrive-datapush/build.xml
----------------------------------------------------------------------
diff --git a/attic/apps/samples/WEB-INF/flex-src/testdrive-datapush/build.xml b/attic/apps/samples/WEB-INF/flex-src/testdrive-datapush/build.xml
index d408630..3b30fb5 100755
--- a/attic/apps/samples/WEB-INF/flex-src/testdrive-datapush/build.xml
+++ b/attic/apps/samples/WEB-INF/flex-src/testdrive-datapush/build.xml
@@ -1,81 +1,81 @@
-<?xml version="1.0"?>
-<!--
-
-  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.
-
--->
-<project name="samples.war/build.xml" default="main" basedir="../../../../../">
-    
-    <property environment="env" />
-    <property file="${basedir}/build.properties"/>
-    <property name="samples.war" value="${basedir}/apps/samples"/>
-    <property name="context.root" value="samples" />
-    <property name="application.name" value="Data Push" />
-    <property name="application.file" value="main" />
-    <property name="application.bin.dir" value="${samples.war}/testdrive-datapush" />
-    <property name="application.src.dir" value="${samples.war}/WEB-INF/flex-src/testdrive-datapush/src" />
-
-    <target name="main" depends="clean,compile-swf" />
-    
-    <target name="compile-swf">
-
-        <taskdef resource="flexTasks.tasks" classpath="${basedir}/ant/lib/flexTasks.jar" />
-        
-        <property name="FLEX_HOME" value="${basedir}"/>
-
-        <mxmlc file="${application.src.dir}/${application.file}.mxml" 
-            output="${application.bin.dir}/${application.file}.swf"
-            actionscript-file-encoding="UTF-8"
-            keep-generated-actionscript="false"
-            incremental="false"
-            services="${samples.war}/WEB-INF/flex/services-config.xml"
-            context-root="${context.root}" 
-            locale="en_US">
-            <load-config filename="${basedir}/frameworks/flex-config.xml"/>
-            <license product="flexbuilder3" serial-number="${env.fb3_license}"/>
-            <source-path path-element="${basedir}/frameworks"/>
-            <external-library-path/>
-            <metadata>
-                <publisher name="${manifest.Implementation-Vendor}" />
-                <creator name="${manifest.Implementation-Vendor}" />
-            </metadata>
-        </mxmlc>
-
-        <html-wrapper title="${application.name}"
-            height="100%"
-            width="100%"
-            application="app"
-            swf="${application.file}"
-            version-major="10"
-            version-minor="0"
-            version-revision="0"
-            express-install="true"
-            output="${application.bin.dir}"/>
-
-        <copy todir="${application.bin.dir}">
-            <fileset dir="${application.src.dir}" includes="*.jsp"/>
-        </copy>
-        
-    </target>
-
-    <target name="clean" description="--> Removes jars and classes">
-        <delete quiet="true" includeemptydirs="true">
-            <fileset dir="${application.bin.dir}" includes="*.swf,index.html,*.jsp"/>
-            <fileset dir="${application.bin.dir}/history" />
-        </delete>
-    </target>
-
-</project>
+<?xml version="1.0"?>
+<!--
+
+  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.
+
+-->
+<project name="samples.war/build.xml" default="main" basedir="../../../../../">
+    
+    <property environment="env" />
+    <property file="${basedir}/build.properties"/>
+    <property name="samples.war" value="${basedir}/apps/samples"/>
+    <property name="context.root" value="samples" />
+    <property name="application.name" value="Data Push" />
+    <property name="application.file" value="main" />
+    <property name="application.bin.dir" value="${samples.war}/testdrive-datapush" />
+    <property name="application.src.dir" value="${samples.war}/WEB-INF/flex-src/testdrive-datapush/src" />
+
+    <target name="main" depends="clean,compile-swf" />
+    
+    <target name="compile-swf">
+
+        <taskdef resource="flexTasks.tasks" classpath="${basedir}/ant/lib/flexTasks.jar" />
+        
+        <property name="FLEX_HOME" value="${basedir}"/>
+
+        <mxmlc file="${application.src.dir}/${application.file}.mxml" 
+            output="${application.bin.dir}/${application.file}.swf"
+            actionscript-file-encoding="UTF-8"
+            keep-generated-actionscript="false"
+            incremental="false"
+            services="${samples.war}/WEB-INF/flex/services-config.xml"
+            context-root="${context.root}" 
+            locale="en_US">
+            <load-config filename="${basedir}/frameworks/flex-config.xml"/>
+            <license product="flexbuilder3" serial-number="${env.fb3_license}"/>
+            <source-path path-element="${basedir}/frameworks"/>
+            <external-library-path/>
+            <metadata>
+                <publisher name="${manifest.Implementation-Vendor}" />
+                <creator name="${manifest.Implementation-Vendor}" />
+            </metadata>
+        </mxmlc>
+
+        <html-wrapper title="${application.name}"
+            height="100%"
+            width="100%"
+            application="app"
+            swf="${application.file}"
+            version-major="10"
+            version-minor="0"
+            version-revision="0"
+            express-install="true"
+            output="${application.bin.dir}"/>
+
+        <copy todir="${application.bin.dir}">
+            <fileset dir="${application.src.dir}" includes="*.jsp"/>
+        </copy>
+        
+    </target>
+
+    <target name="clean" description="--> Removes jars and classes">
+        <delete quiet="true" includeemptydirs="true">
+            <fileset dir="${application.bin.dir}" includes="*.swf,index.html,*.jsp"/>
+            <fileset dir="${application.bin.dir}/history" />
+        </delete>
+    </target>
+
+</project>

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/samples/WEB-INF/flex-src/testdrive-datapush/src/main.mxml
----------------------------------------------------------------------
diff --git a/attic/apps/samples/WEB-INF/flex-src/testdrive-datapush/src/main.mxml b/attic/apps/samples/WEB-INF/flex-src/testdrive-datapush/src/main.mxml
index f05affe..ed803d5 100755
--- a/attic/apps/samples/WEB-INF/flex-src/testdrive-datapush/src/main.mxml
+++ b/attic/apps/samples/WEB-INF/flex-src/testdrive-datapush/src/main.mxml
@@ -1,42 +1,42 @@
-<?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:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="#FFFFFF">
-	
-	<mx:Script>
-		<![CDATA[
-		
-			import mx.messaging.messages.IMessage;
-			
-			private function messageHandler(message:IMessage):void
-			{
-				pushedValue.text = ""+ message.body;	
-			}
-			
-		]]>
-	</mx:Script>
-	
-	<mx:Consumer id="consumer" destination="feed" message="messageHandler(event.message)"/>
-
-	<mx:Button label="Subscribe to 'feed' destination" click="consumer.subscribe()" enabled="{!consumer.subscribed}"/>
-	<mx:Button label="Unsubscribe from 'feed' destination" click="consumer.unsubscribe()" enabled="{consumer.subscribed}"/>
-
-	<mx:TextInput id="pushedValue"/>
-		
+<?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:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="#FFFFFF">
+	
+	<mx:Script>
+		<![CDATA[
+		
+			import mx.messaging.messages.IMessage;
+			
+			private function messageHandler(message:IMessage):void
+			{
+				pushedValue.text = ""+ message.body;	
+			}
+			
+		]]>
+	</mx:Script>
+	
+	<mx:Consumer id="consumer" destination="feed" message="messageHandler(event.message)"/>
+
+	<mx:Button label="Subscribe to 'feed' destination" click="consumer.subscribe()" enabled="{!consumer.subscribed}"/>
+	<mx:Button label="Unsubscribe from 'feed' destination" click="consumer.unsubscribe()" enabled="{consumer.subscribed}"/>
+
+	<mx:TextInput id="pushedValue"/>
+		
 </mx:Application>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/samples/WEB-INF/flex-src/testdrive-datapush/src/startfeed.jsp
----------------------------------------------------------------------
diff --git a/attic/apps/samples/WEB-INF/flex-src/testdrive-datapush/src/startfeed.jsp b/attic/apps/samples/WEB-INF/flex-src/testdrive-datapush/src/startfeed.jsp
index 8970756..49640ae 100755
--- a/attic/apps/samples/WEB-INF/flex-src/testdrive-datapush/src/startfeed.jsp
+++ b/attic/apps/samples/WEB-INF/flex-src/testdrive-datapush/src/startfeed.jsp
@@ -1,26 +1,26 @@
-<!--
-  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.
--->
-<%@page import="flex.samples.feed.Feed"%>
-<%
-	try {
-		Feed feed = new Feed();
-		feed.start();
-		out.println("Feed Started");
-	} catch (Exception e) {
-		out.println("A problem occured while starting the feed: "+e.getMessage());
-	}
+<!--
+  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.
+-->
+<%@page import="flex.samples.feed.Feed"%>
+<%
+	try {
+		Feed feed = new Feed();
+		feed.start();
+		out.println("Feed Started");
+	} catch (Exception e) {
+		out.println("A problem occured while starting the feed: "+e.getMessage());
+	}
 %>
\ No newline at end of file


Mime
View raw message