flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cd...@apache.org
Subject [03/51] [partial] flex-blazeds git commit: - Moved old stuff to an "attic" directory - Changed the directory structure to comply to a default maven directory structure
Date Tue, 04 Aug 2015 09:51:41 GMT
http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/attic/apps/samples/WEB-INF/flex-src/inventory/build.xml
----------------------------------------------------------------------
diff --git a/attic/apps/samples/WEB-INF/flex-src/inventory/build.xml b/attic/apps/samples/WEB-INF/flex-src/inventory/build.xml
new file mode 100755
index 0000000..d64e42e
--- /dev/null
+++ b/attic/apps/samples/WEB-INF/flex-src/inventory/build.xml
@@ -0,0 +1,82 @@
+<?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="Inventory Management" />
+    <property name="application.file" value="inventory" />
+    <property name="application.bin.dir" value="${samples.war}/inventory" />
+    <property name="application.src.dir" value="${samples.war}/WEB-INF/flex-src/inventory/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"
+            history="true"
+            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/75229759/attic/apps/samples/WEB-INF/flex-src/inventory/src/Product.as
----------------------------------------------------------------------
diff --git a/attic/apps/samples/WEB-INF/flex-src/inventory/src/Product.as b/attic/apps/samples/WEB-INF/flex-src/inventory/src/Product.as
new file mode 100755
index 0000000..3d9b476
--- /dev/null
+++ b/attic/apps/samples/WEB-INF/flex-src/inventory/src/Product.as
@@ -0,0 +1,44 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////
+package
+{
+	[Bindable]
+	[RemoteClass(alias="flex.samples.product.Product")]
+	public class Product
+	{
+		public function Product()
+		{
+		}
+
+		public var productId:int;
+
+		public var name:String;
+
+		public var category:String;
+
+		public var price:Number = 0;
+
+		public var image:String;
+
+		public var description:String;
+		
+		public var qtyInStock:int = 0;
+
+	}
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/attic/apps/samples/WEB-INF/flex-src/inventory/src/ProductForm.mxml
----------------------------------------------------------------------
diff --git a/attic/apps/samples/WEB-INF/flex-src/inventory/src/ProductForm.mxml b/attic/apps/samples/WEB-INF/flex-src/inventory/src/ProductForm.mxml
new file mode 100755
index 0000000..9c553a5
--- /dev/null
+++ b/attic/apps/samples/WEB-INF/flex-src/inventory/src/ProductForm.mxml
@@ -0,0 +1,106 @@
+<?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:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*"
+	label="{product.productId > 0 ? product.name : 'New Product'}" width="100%" height="100%">
+	
+	<mx:Script>
+		<![CDATA[
+			import mx.events.ValidationResultEvent;
+			import mx.rpc.events.ResultEvent;
+			
+			[Bindable]
+			public var product:Product;
+			
+			private function save():void
+			{
+				if (nameValidator.validate().type == ValidationResultEvent.INVALID) return;
+				product.name = productName.text;
+				product.category = category.text;
+				product.price = Number(price.text);
+				product.qtyInStock = parseInt(qtyInStock.text);
+				product.image = image.text;
+				product.description = description.text;
+				if (product.productId > 0)
+					srv.update(product);
+				else
+					srv.create(product);
+			}
+			
+			private function createResult(event:ResultEvent):void
+			{
+				product = event.result as Product;
+				label = product.name;
+			}
+
+			private function removeResult(event:ResultEvent):void
+			{
+				parent.removeChild(this);
+			}
+
+			
+		]]>
+	</mx:Script>
+	
+	<mx:StringValidator id="nameValidator" source="{productName}" property="text" minLength="1"/>
+	
+	<mx:RemoteObject id="srv" destination="product">
+		<mx:method name="create" result="createResult(event)"/>
+		<mx:method name="remove" result="removeResult(event)"/>
+	</mx:RemoteObject>
+
+	<mx:Image source="../images/{product.image}" top="0" right="20" brokenImageSkin="@Embed('assets/blank.png')"/>
+
+	<mx:Form width="100%" verticalGap="8">
+	
+		<mx:FormItem label="Id">
+			<mx:TextInput id="productId" text="{product.productId}" enabled="false"/>
+		</mx:FormItem>
+
+		<mx:FormItem label="Name" required="true">
+			<mx:TextInput id="productName" text="{product.name}"/>
+		</mx:FormItem>
+	
+		<mx:FormItem label="Category">
+			<mx:TextInput id="category" text="{product.category}"/>
+		</mx:FormItem>
+		
+		<mx:FormItem label="Image">
+			<mx:TextInput id="image" text="{product.image}"/>
+		</mx:FormItem>
+		
+		<mx:FormItem label="Price">
+			<mx:TextInput id="price" text="{product.price}"/>
+		</mx:FormItem>
+
+		<mx:FormItem label="In Stock">
+			<mx:TextInput id="qtyInStock" text="{product.qtyInStock}"/>
+		</mx:FormItem>
+	
+		<mx:FormItem label="Description" width="100%">
+			<mx:TextArea id="description" text="{product.description}" width="100%" height="100"/>
+		</mx:FormItem>
+		
+	</mx:Form>
+
+	<mx:Button label="Save" click="save()" bottom="10" left="10" height="36" width="63"/>
+	<mx:Button label="Delete" click="srv.remove(product)" left="75" bottom="10" height="36" width="72"/> 
+	<mx:Button label="Close Tab" click="parent.removeChild(this)" right="10" bottom="10" height="36" width="88"/> 
+
+</mx:Canvas>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/attic/apps/samples/WEB-INF/flex-src/inventory/src/SearchPopup.mxml
----------------------------------------------------------------------
diff --git a/attic/apps/samples/WEB-INF/flex-src/inventory/src/SearchPopup.mxml b/attic/apps/samples/WEB-INF/flex-src/inventory/src/SearchPopup.mxml
new file mode 100755
index 0000000..04b5ad4
--- /dev/null
+++ b/attic/apps/samples/WEB-INF/flex-src/inventory/src/SearchPopup.mxml
@@ -0,0 +1,96 @@
+<?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:List xmlns:mx="http://www.adobe.com/2006/mxml"
+	dropShadowEnabled="true"
+	currentState="hidden"
+	labelField="name"
+	keyDown="searchKeyDownHandler(event)"
+	click="openSelectedItem()">
+
+	<mx:Metadata>
+		[Event(name="select")]
+	</mx:Metadata>	
+	
+	<mx:Script>
+		<![CDATA[
+			import mx.rpc.events.ResultEvent;
+
+			import mx.collections.ArrayCollection;
+
+			public function search(searchStr:String):void
+			{
+				dataProvider = null;
+				srv.getProductsByName(searchStr);
+				if (currentState == "hidden") currentState = "";
+			}
+			
+			protected function searchKeyDownHandler(event:KeyboardEvent):void
+			{
+				switch (event.keyCode) 
+				{
+					case Keyboard.ENTER:
+						openSelectedItem();
+	    				break;
+					case Keyboard.ESCAPE:
+						currentState = "hidden";
+	    				break;
+				}
+			}
+		
+			public function openSelectedItem():void
+			{
+				if (selectedItem)
+				{
+					dispatchEvent(new Event("select"));	
+					currentState="hidden";
+				}
+			}
+
+			public function selectNext():void
+			{
+				selectedIndex++;
+			}		
+			
+			public function selectPrevious():void
+			{
+				if (selectedIndex > 0) selectedIndex--;
+			}		
+
+			private function resultHandler(event:ResultEvent):void
+			{
+				dataProvider = event.result as ArrayCollection;
+				if (dataProvider && dataProvider.length > 0)
+				{
+					selectedIndex = 0;
+				}
+			}
+			
+		]]>
+	</mx:Script>
+
+	<mx:RemoteObject id="srv" destination="product" result="resultHandler(event)"/>
+
+	<mx:states>
+		<mx:State name="hidden">
+			<mx:SetProperty name="visible" value="false"/>
+		</mx:State>
+	</mx:states>
+	
+</mx:List>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/attic/apps/samples/WEB-INF/flex-src/inventory/src/assets/Thumbs.db
----------------------------------------------------------------------
diff --git a/attic/apps/samples/WEB-INF/flex-src/inventory/src/assets/Thumbs.db b/attic/apps/samples/WEB-INF/flex-src/inventory/src/assets/Thumbs.db
new file mode 100755
index 0000000..ad2bbe5
Binary files /dev/null and b/attic/apps/samples/WEB-INF/flex-src/inventory/src/assets/Thumbs.db differ

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/attic/apps/samples/WEB-INF/flex-src/inventory/src/assets/app_skin.png
----------------------------------------------------------------------
diff --git a/attic/apps/samples/WEB-INF/flex-src/inventory/src/assets/app_skin.png b/attic/apps/samples/WEB-INF/flex-src/inventory/src/assets/app_skin.png
new file mode 100755
index 0000000..48d919b
Binary files /dev/null and b/attic/apps/samples/WEB-INF/flex-src/inventory/src/assets/app_skin.png differ

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/attic/apps/samples/WEB-INF/flex-src/inventory/src/assets/blank.png
----------------------------------------------------------------------
diff --git a/attic/apps/samples/WEB-INF/flex-src/inventory/src/assets/blank.png b/attic/apps/samples/WEB-INF/flex-src/inventory/src/assets/blank.png
new file mode 100755
index 0000000..02f2d4b
Binary files /dev/null and b/attic/apps/samples/WEB-INF/flex-src/inventory/src/assets/blank.png differ

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/attic/apps/samples/WEB-INF/flex-src/inventory/src/assets/button_over_skin.png
----------------------------------------------------------------------
diff --git a/attic/apps/samples/WEB-INF/flex-src/inventory/src/assets/button_over_skin.png b/attic/apps/samples/WEB-INF/flex-src/inventory/src/assets/button_over_skin.png
new file mode 100755
index 0000000..a489605
Binary files /dev/null and b/attic/apps/samples/WEB-INF/flex-src/inventory/src/assets/button_over_skin.png differ

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/attic/apps/samples/WEB-INF/flex-src/inventory/src/assets/button_skin.png
----------------------------------------------------------------------
diff --git a/attic/apps/samples/WEB-INF/flex-src/inventory/src/assets/button_skin.png b/attic/apps/samples/WEB-INF/flex-src/inventory/src/assets/button_skin.png
new file mode 100755
index 0000000..5ac3c63
Binary files /dev/null and b/attic/apps/samples/WEB-INF/flex-src/inventory/src/assets/button_skin.png differ

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/attic/apps/samples/WEB-INF/flex-src/inventory/src/assets/icon_close.png
----------------------------------------------------------------------
diff --git a/attic/apps/samples/WEB-INF/flex-src/inventory/src/assets/icon_close.png b/attic/apps/samples/WEB-INF/flex-src/inventory/src/assets/icon_close.png
new file mode 100755
index 0000000..ccb86db
Binary files /dev/null and b/attic/apps/samples/WEB-INF/flex-src/inventory/src/assets/icon_close.png differ

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/attic/apps/samples/WEB-INF/flex-src/inventory/src/assets/icon_plus.png
----------------------------------------------------------------------
diff --git a/attic/apps/samples/WEB-INF/flex-src/inventory/src/assets/icon_plus.png b/attic/apps/samples/WEB-INF/flex-src/inventory/src/assets/icon_plus.png
new file mode 100755
index 0000000..b4ecdba
Binary files /dev/null and b/attic/apps/samples/WEB-INF/flex-src/inventory/src/assets/icon_plus.png differ

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/attic/apps/samples/WEB-INF/flex-src/inventory/src/assets/icon_search.png
----------------------------------------------------------------------
diff --git a/attic/apps/samples/WEB-INF/flex-src/inventory/src/assets/icon_search.png b/attic/apps/samples/WEB-INF/flex-src/inventory/src/assets/icon_search.png
new file mode 100755
index 0000000..4f62019
Binary files /dev/null and b/attic/apps/samples/WEB-INF/flex-src/inventory/src/assets/icon_search.png differ

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/attic/apps/samples/WEB-INF/flex-src/inventory/src/assets/search.png
----------------------------------------------------------------------
diff --git a/attic/apps/samples/WEB-INF/flex-src/inventory/src/assets/search.png b/attic/apps/samples/WEB-INF/flex-src/inventory/src/assets/search.png
new file mode 100755
index 0000000..5f0e375
Binary files /dev/null and b/attic/apps/samples/WEB-INF/flex-src/inventory/src/assets/search.png differ

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/attic/apps/samples/WEB-INF/flex-src/inventory/src/assets/top_separator.png
----------------------------------------------------------------------
diff --git a/attic/apps/samples/WEB-INF/flex-src/inventory/src/assets/top_separator.png b/attic/apps/samples/WEB-INF/flex-src/inventory/src/assets/top_separator.png
new file mode 100755
index 0000000..f3848f6
Binary files /dev/null and b/attic/apps/samples/WEB-INF/flex-src/inventory/src/assets/top_separator.png differ

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/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
new file mode 100755
index 0000000..ff97b8f
--- /dev/null
+++ b/attic/apps/samples/WEB-INF/flex-src/inventory/src/inventory.mxml
@@ -0,0 +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)"/>
+
+</mx:Application>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/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
new file mode 100755
index 0000000..1f20856
--- /dev/null
+++ b/attic/apps/samples/WEB-INF/flex-src/inventory/src/styles.css
@@ -0,0 +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;
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/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
new file mode 100755
index 0000000..30f386f
--- /dev/null
+++ b/attic/apps/samples/WEB-INF/flex-src/runtimeconfig-messaging/build.xml
@@ -0,0 +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>

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/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
new file mode 100755
index 0000000..7271a5a
--- /dev/null
+++ b/attic/apps/samples/WEB-INF/flex-src/runtimeconfig-messaging/src/ChatPanel.mxml
@@ -0,0 +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>

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/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
new file mode 100755
index 0000000..8da08cc
--- /dev/null
+++ b/attic/apps/samples/WEB-INF/flex-src/runtimeconfig-messaging/src/main.mxml
@@ -0,0 +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>

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/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
new file mode 100755
index 0000000..2d7ccf0
--- /dev/null
+++ b/attic/apps/samples/WEB-INF/flex-src/runtimeconfig-remoting/build.xml
@@ -0,0 +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>

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/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
new file mode 100755
index 0000000..a745b7c
--- /dev/null
+++ b/attic/apps/samples/WEB-INF/flex-src/runtimeconfig-remoting/src/main.mxml
@@ -0,0 +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>

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/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
new file mode 100755
index 0000000..eb756ee
--- /dev/null
+++ b/attic/apps/samples/WEB-INF/flex-src/testdrive-101/build.xml
@@ -0,0 +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>

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/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
new file mode 100755
index 0000000..d55d038
--- /dev/null
+++ b/attic/apps/samples/WEB-INF/flex-src/testdrive-101/src/ProductView.mxml
@@ -0,0 +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>
+			
+</mx:Panel>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/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
new file mode 100755
index 0000000..79b5f04
--- /dev/null
+++ b/attic/apps/samples/WEB-INF/flex-src/testdrive-101/src/Thumb.mxml
@@ -0,0 +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>

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/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
new file mode 100755
index 0000000..a90fb43
--- /dev/null
+++ b/attic/apps/samples/WEB-INF/flex-src/testdrive-101/src/main.mxml
@@ -0,0 +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}"/>
+		
+</mx:Application>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/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
new file mode 100755
index 0000000..ac2b336
--- /dev/null
+++ b/attic/apps/samples/WEB-INF/flex-src/testdrive-101/src/testdrive.css
@@ -0,0 +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;
+}

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/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
new file mode 100755
index 0000000..3fedee4
--- /dev/null
+++ b/attic/apps/samples/WEB-INF/flex-src/testdrive-chat/build.xml
@@ -0,0 +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>

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/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
new file mode 100755
index 0000000..213fa31
--- /dev/null
+++ b/attic/apps/samples/WEB-INF/flex-src/testdrive-chat/src/main.mxml
@@ -0,0 +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>
+	
+</mx:Application>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/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
new file mode 100755
index 0000000..d408630
--- /dev/null
+++ b/attic/apps/samples/WEB-INF/flex-src/testdrive-datapush/build.xml
@@ -0,0 +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>

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/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
new file mode 100755
index 0000000..f05affe
--- /dev/null
+++ b/attic/apps/samples/WEB-INF/flex-src/testdrive-datapush/src/main.mxml
@@ -0,0 +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"/>
+		
+</mx:Application>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/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
new file mode 100755
index 0000000..8970756
--- /dev/null
+++ b/attic/apps/samples/WEB-INF/flex-src/testdrive-datapush/src/startfeed.jsp
@@ -0,0 +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());
+	}
+%>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/attic/apps/samples/WEB-INF/flex-src/testdrive-datapush/src/stopfeed.jsp
----------------------------------------------------------------------
diff --git a/attic/apps/samples/WEB-INF/flex-src/testdrive-datapush/src/stopfeed.jsp b/attic/apps/samples/WEB-INF/flex-src/testdrive-datapush/src/stopfeed.jsp
new file mode 100755
index 0000000..7b94f86
--- /dev/null
+++ b/attic/apps/samples/WEB-INF/flex-src/testdrive-datapush/src/stopfeed.jsp
@@ -0,0 +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.stop();
+		out.println("Feed Stopped");
+	} catch (Exception e) {
+		out.println("A problem occured while stopping the feed: "+e.getMessage());
+	}
+%>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/attic/apps/samples/WEB-INF/flex-src/testdrive-httpservice/build.xml
----------------------------------------------------------------------
diff --git a/attic/apps/samples/WEB-INF/flex-src/testdrive-httpservice/build.xml b/attic/apps/samples/WEB-INF/flex-src/testdrive-httpservice/build.xml
new file mode 100755
index 0000000..309ce78
--- /dev/null
+++ b/attic/apps/samples/WEB-INF/flex-src/testdrive-httpservice/build.xml
@@ -0,0 +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="Testdrive - HTTPService" />
+    <property name="application.file" value="main" />
+    <property name="application.bin.dir" value="${samples.war}/testdrive-httpservice" />
+    <property name="application.src.dir" value="${samples.war}/WEB-INF/flex-src/testdrive-httpservice/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/75229759/attic/apps/samples/WEB-INF/flex-src/testdrive-httpservice/src/catalog.jsp
----------------------------------------------------------------------
diff --git a/attic/apps/samples/WEB-INF/flex-src/testdrive-httpservice/src/catalog.jsp b/attic/apps/samples/WEB-INF/flex-src/testdrive-httpservice/src/catalog.jsp
new file mode 100755
index 0000000..2ac0688
--- /dev/null
+++ b/attic/apps/samples/WEB-INF/flex-src/testdrive-httpservice/src/catalog.jsp
@@ -0,0 +1,42 @@
+<!--
+  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.product.ProductService, 
+				flex.samples.product.Product, 
+				java.util.List"%>
+<?xml version="1.0" encoding="utf-8"?>
+<catalog>
+<%
+	ProductService srv = new ProductService();
+	List list = null;
+	list = srv.getProducts();
+	Product product;
+	for (int i=0; i<list.size(); i++)
+	{
+		product = (Product) list.get(i);
+%>	
+    <product productId="<%= product.getProductId()%>">
+        <name><%= product.getName() %></name>
+        <description><%= product.getDescription() %></description>
+        <price><%= product.getPrice() %></price>
+        <image><%= product.getImage() %></image>
+        <category><%= product.getCategory() %></category>
+        <qtyInStock><%= product.getQtyInStock() %></qtyInStock>
+    </product>
+<%
+	}
+%>
+</catalog>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/attic/apps/samples/WEB-INF/flex-src/testdrive-httpservice/src/main.mxml
----------------------------------------------------------------------
diff --git a/attic/apps/samples/WEB-INF/flex-src/testdrive-httpservice/src/main.mxml b/attic/apps/samples/WEB-INF/flex-src/testdrive-httpservice/src/main.mxml
new file mode 100755
index 0000000..17c8d34
--- /dev/null
+++ b/attic/apps/samples/WEB-INF/flex-src/testdrive-httpservice/src/main.mxml
@@ -0,0 +1,28 @@
+<?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:HTTPService id="srv" destination="catalog" useProxy="true"/>
+
+	<mx:DataGrid dataProvider="{srv.lastResult.catalog.product}" width="100%" height="100%"/> 
+	
+	<mx:Button label="Get Data" click="srv.send()"/>
+	
+</mx:Application>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/attic/apps/samples/WEB-INF/flex-src/testdrive-remoteobject/build.xml
----------------------------------------------------------------------
diff --git a/attic/apps/samples/WEB-INF/flex-src/testdrive-remoteobject/build.xml b/attic/apps/samples/WEB-INF/flex-src/testdrive-remoteobject/build.xml
new file mode 100755
index 0000000..bdfea75
--- /dev/null
+++ b/attic/apps/samples/WEB-INF/flex-src/testdrive-remoteobject/build.xml
@@ -0,0 +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="Testdrive - RemoteObject" />
+    <property name="application.file" value="main" />
+    <property name="application.bin.dir" value="${samples.war}/testdrive-remoteobject" />
+    <property name="application.src.dir" value="${samples.war}/WEB-INF/flex-src/testdrive-remoteobject/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/75229759/attic/apps/samples/WEB-INF/flex-src/testdrive-remoteobject/src/main.mxml
----------------------------------------------------------------------
diff --git a/attic/apps/samples/WEB-INF/flex-src/testdrive-remoteobject/src/main.mxml b/attic/apps/samples/WEB-INF/flex-src/testdrive-remoteobject/src/main.mxml
new file mode 100755
index 0000000..fb40f23
--- /dev/null
+++ b/attic/apps/samples/WEB-INF/flex-src/testdrive-remoteobject/src/main.mxml
@@ -0,0 +1,28 @@
+<?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:RemoteObject id="srv" destination="product"/>
+	
+	<mx:DataGrid dataProvider="{srv.getProducts.lastResult}" width="100%" height="100%"/> 
+
+	<mx:Button label="Get Data" click="srv.getProducts()"/>	
+		
+</mx:Application>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/attic/apps/samples/WEB-INF/flex-src/testdrive-update/build.xml
----------------------------------------------------------------------
diff --git a/attic/apps/samples/WEB-INF/flex-src/testdrive-update/build.xml b/attic/apps/samples/WEB-INF/flex-src/testdrive-update/build.xml
new file mode 100755
index 0000000..6037eb3
--- /dev/null
+++ b/attic/apps/samples/WEB-INF/flex-src/testdrive-update/build.xml
@@ -0,0 +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="Testdrive - Update" />
+    <property name="application.file" value="main" />
+    <property name="application.bin.dir" value="${samples.war}/testdrive-update" />
+    <property name="application.src.dir" value="${samples.war}/WEB-INF/flex-src/testdrive-update/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/75229759/attic/apps/samples/WEB-INF/flex-src/testdrive-update/src/Product.as
----------------------------------------------------------------------
diff --git a/attic/apps/samples/WEB-INF/flex-src/testdrive-update/src/Product.as b/attic/apps/samples/WEB-INF/flex-src/testdrive-update/src/Product.as
new file mode 100755
index 0000000..8a68100
--- /dev/null
+++ b/attic/apps/samples/WEB-INF/flex-src/testdrive-update/src/Product.as
@@ -0,0 +1,44 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////
+package
+{
+	[Bindable]
+	[RemoteClass(alias="flex.samples.product.Product")]
+	public class Product
+	{
+		public function Product()
+		{
+		}
+
+		public var productId:int;
+
+		public var name:String;
+
+		public var description:String;
+
+		public var image:String;
+
+		public var category:String;
+
+		public var price:Number;
+
+		public var qtyInStock:int;
+
+	}
+}

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/75229759/attic/apps/samples/WEB-INF/flex-src/testdrive-update/src/ProductForm.mxml
----------------------------------------------------------------------
diff --git a/attic/apps/samples/WEB-INF/flex-src/testdrive-update/src/ProductForm.mxml b/attic/apps/samples/WEB-INF/flex-src/testdrive-update/src/ProductForm.mxml
new file mode 100755
index 0000000..5ffb8fa
--- /dev/null
+++ b/attic/apps/samples/WEB-INF/flex-src/testdrive-update/src/ProductForm.mxml
@@ -0,0 +1,60 @@
+<?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" xmlns="*"
+	title="Details" width="100%" height="100%">
+	
+	<Product id="product"
+		name="{productName.text}"
+		category="{category.text}"
+		price="{Number(price.text)}"
+		image="{image.text}"
+		description="{description.text}"/>
+
+	<mx:RemoteObject id="srv" destination="product"/>
+
+	<mx:Form width="100%">
+	
+		<mx:FormItem label="Name">
+			<mx:TextInput id="productName" text="{product.name}"/>
+		</mx:FormItem>
+	
+		<mx:FormItem label="Category">
+			<mx:TextInput id="category" text="{product.category}"/>
+		</mx:FormItem>
+		
+		<mx:FormItem label="Image">
+			<mx:TextInput id="image" text="{product.image}"/>
+		</mx:FormItem>
+		
+		<mx:FormItem label="Price">
+			<mx:TextInput id="price" text="{product.price}"/>
+		</mx:FormItem>
+	
+		<mx:FormItem label="Description" width="100%">
+			<mx:TextArea id="description" text="{product.description}" width="100%" height="100"/>
+		</mx:FormItem>
+		
+	</mx:Form>
+
+	<mx:ControlBar>
+		<mx:Button label="Update" click="srv.update(product);"/>
+	</mx:ControlBar>
+
+</mx:Panel>
\ No newline at end of file


Mime
View raw message