flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [31/51] [partial] BlazeDS Donation from Adobe Systems Inc
Date Fri, 25 Apr 2014 05:34:29 GMT
http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/7a58369c/apps/samples/WEB-INF/flex-src/dashboard/src/dashboard.mxml
----------------------------------------------------------------------
diff --git a/apps/samples/WEB-INF/flex-src/dashboard/src/dashboard.mxml b/apps/samples/WEB-INF/flex-src/dashboard/src/dashboard.mxml
new file mode 100755
index 0000000..1be8190
--- /dev/null
+++ b/apps/samples/WEB-INF/flex-src/dashboard/src/dashboard.mxml
@@ -0,0 +1,209 @@
+<?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:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns="*"
+    pageTitle="Collaborative Dashboard"
+    creationComplete="initApp()">
+
+
+    <fx:Style source="main.css"/>
+
+	<fx:Script>
+        <![CDATA[
+
+    	import mx.messaging.messages.AsyncMessage;
+    	import mx.messaging.messages.IMessage;
+    	import mx.collections.ArrayCollection;
+    	import mx.messaging.events.MessageEvent;
+    	import mx.rpc.events.ResultEvent;
+
+		[Bindable]
+        public var slicedMonthData:ArrayCollection;
+
+		[Bindable]
+        public var slicedRegionData:ArrayCollection;
+        
+        private var monthData:Array;
+        private var regionData:Array;
+
+        private function initApp():void
+        {
+            consumer.subscribe();
+           	srv.send();
+            slicedMonthData = new ArrayCollection();
+            slicedRegionData = new ArrayCollection();   
+        }
+
+        private function resultHandler(event:ResultEvent):void
+        {
+            monthData = event.result.list.month.source as Array;
+			slider.maximum = monthData.length - 1;
+			slider.values = [0, monthData.length - 1];
+            slicedMonthData.source = monthData;
+            regionBreakdown.month = monthData[0];
+            
+            regionData = new Array(monthData.length);
+            var monthTotal:Number;
+            
+            for (var i:Number = 0; i < monthData.length; i++) 
+        	{
+                regionData[i] = {name: monthData[i].name, average: 0, revenue: 0};
+                var regions:Array = monthData[i].region.source;
+                monthTotal = 0;
+                for (var j:Number = 0; j < regions.length; j++)
+                {
+                    monthTotal += regions[j].revenue;
+                }
+                regionData[i].average = monthTotal/monthData[i].region.length
+            }
+            slicedRegionData.source = regionData.slice(slider.values[0], slider.values[1]);
+        }
+        
+        private function getSliderLabel(value:String):String 
+    	{
+            return monthData[parseInt(value)].name;
+        }
+        
+   	    // Send messages when user's selection changes
+        private function monthChange():void
+    	{
+            var message:IMessage = new AsyncMessage();
+            message.body = {month: timeline.selectedMonth};
+            producer.send(message);
+        }
+
+        private function rangeChange():void
+    	{
+            var message:IMessage = new AsyncMessage();
+            message.body = {min: slider.values[0], max: slider.values[1]+1};
+            producer.send(message);
+        }
+
+        private function regionChange():void
+    	{
+            var message: IMessage = new AsyncMessage();
+            message.body = {region: regionBreakdown.selectedRegion};
+            producer.send(message);
+       	}
+
+        // Handle incoming messages
+        private function messageHandler(event:MessageEvent):void
+    	{
+            var body:Object = event.message.body;
+
+            if (body.min != null) //range
+        	{
+                slider.values = [body.min, body.max - 1];
+
+                if (monthData != null)
+                   slicedMonthData.source = monthData.slice(body.min, body.max);
+                if (regionData != null)
+                   slicedRegionData.source = regionData.slice(body.min, body.max);
+
+            } 
+            else if (body.month != null) //month in timeline
+        	{
+                regionBreakdown.month = body.month;
+            } 
+            else if (body.region != null) //region from breakdown
+        	{
+                regionBreakdown.selectedRegion = body.region;
+                regionDetail.region = body.region.name;
+
+                for (var i: Number = 0; i < monthData.length; i++) 
+            	{
+                    var regions: Array = monthData[i].region.source;
+                    for (var j: Number = 0; j < regions.length; j++) 
+                	{
+                        if (regions[j].name == body.region.name)
+                    	{
+                            regionData[i].revenue = regions[j].revenue;
+                            break;
+                        }
+                    }
+                }
+                slicedRegionData.source = regionData.slice(slider.values[0], slider.values[1] + 1);
+            }
+        }
+        
+        private function toggleSeries():void
+		{
+            var message: IMessage = new AsyncMessage();
+			if (currentState=="series")
+			{
+				currentState = "";
+	            message.body.series = false;
+			} 
+			else
+			{
+				currentState = "series";
+	            message.body.series = true;
+			}
+            producer.send(message);
+		}
+
+        private function dataGridCurrencyFormat(item:Object, column:Object):String
+        {
+            return cf.format(item[column.dataField]);
+        }
+
+        ]]>
+    </fx:Script>
+
+    <fx:Declarations>
+    	<mx:Producer id="producer" destination="dashboard"/>
+    	<mx:Consumer id="consumer" destination="dashboard" message="messageHandler(event)"/>
+
+    	<mx:HTTPService id="srv" url="results.xml" useProxy="false" result="resultHandler(event)"/>
+
+    	<mx:CurrencyFormatter id="cf"/>
+    </fx:Declarations>
+
+    <mx:HBox width="100%" verticalAlign="middle" horizontalAlign="right" paddingRight="40">
+        <mx:Label text="Welcome, Guest |"/>
+        <mx:ComboBox id="cb">
+        	<mx:dataProvider>
+        		<fx:String>Revenue Timeline</fx:String>
+        	</mx:dataProvider>
+        </mx:ComboBox>
+    </mx:HBox>
+
+	<mx:HDividedBox width="100%" height="100%">
+
+		<mx:Panel id="timelinePanel" title="Revenue Timeline" width="100%" height="100%">
+	        <RevenueTimeline id="timeline" revenueData="{slicedMonthData.source}"
+	        	monthChange="monthChange()"/>
+		    <mx:ControlBar horizontalGap="4">
+		        <mx:ToggleButtonBar dataProvider="{timeline}"/>
+		        <mx:Spacer width="10"/>
+		        <mx:Label text="Range:"/>
+		        <mx:HSlider id="slider" width="150" thumbCount="2" snapInterval="1" minimum="0"
+		            dataTipFormatFunction="getSliderLabel"
+		            change="rangeChange()"/>
+		    </mx:ControlBar>
+		</mx:Panel>
+	
+	    <mx:VDividedBox width="100%" height="100%">
+	        <RegionBreakdown id="regionBreakdown" regionChange="regionChange()" width="100%" height="50%" />
+	        <RegionDetail id="regionDetail" revenueData="{slicedRegionData.source}" width="100%" height="50%" />
+	    </mx:VDividedBox>
+		
+	</mx:HDividedBox>
+
+</mx:Application>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/7a58369c/apps/samples/WEB-INF/flex-src/dashboard/src/icon_chart.png
----------------------------------------------------------------------
diff --git a/apps/samples/WEB-INF/flex-src/dashboard/src/icon_chart.png b/apps/samples/WEB-INF/flex-src/dashboard/src/icon_chart.png
new file mode 100755
index 0000000..7abe2f1
Binary files /dev/null and b/apps/samples/WEB-INF/flex-src/dashboard/src/icon_chart.png differ

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/7a58369c/apps/samples/WEB-INF/flex-src/dashboard/src/icon_grid.png
----------------------------------------------------------------------
diff --git a/apps/samples/WEB-INF/flex-src/dashboard/src/icon_grid.png b/apps/samples/WEB-INF/flex-src/dashboard/src/icon_grid.png
new file mode 100755
index 0000000..a44f0bc
Binary files /dev/null and b/apps/samples/WEB-INF/flex-src/dashboard/src/icon_grid.png differ

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/7a58369c/apps/samples/WEB-INF/flex-src/dashboard/src/main.css
----------------------------------------------------------------------
diff --git a/apps/samples/WEB-INF/flex-src/dashboard/src/main.css b/apps/samples/WEB-INF/flex-src/dashboard/src/main.css
new file mode 100755
index 0000000..1c3d051
--- /dev/null
+++ b/apps/samples/WEB-INF/flex-src/dashboard/src/main.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 {
+    paddingTop: 12;
+    verticalGap: 12;
+}
+
+mx|Panel {
+    cornerRadius: 6;
+    panelBorderStyle: "roundCorners";
+}
+
+mx|Button {
+	cornerRadius: 4;	
+}
+
+mx|HSlider {
+	showTrackHighlight: true;
+}

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/7a58369c/apps/samples/WEB-INF/flex-src/dashboard/src/results.xml
----------------------------------------------------------------------
diff --git a/apps/samples/WEB-INF/flex-src/dashboard/src/results.xml b/apps/samples/WEB-INF/flex-src/dashboard/src/results.xml
new file mode 100755
index 0000000..6a96b33
--- /dev/null
+++ b/apps/samples/WEB-INF/flex-src/dashboard/src/results.xml
@@ -0,0 +1,213 @@
+<!--
+
+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.
+
+-->
+<list>
+
+    <month name="Jan-04" revenue="400263" average="80052">
+        <region name="APAC" revenue="46130"/>
+        <region name="Europe" revenue="106976"/>
+        <region name="Japan" revenue="79554"/>
+        <region name="Latin America" revenue="39252"/>
+        <region name="North America" revenue="128351"/>
+    </month>
+
+    <month name="Feb-04" revenue="379145" average="75829">
+        <region name="APAC" revenue="70324"/>
+        <region name="Europe" revenue="88912"/>
+        <region name="Japan" revenue="69677"/>
+        <region name="Latin America" revenue="59428"/>
+        <region name="North America" revenue="90804"/>
+    </month>
+
+    <month name="Mar-04" revenue="389687" average="77937">
+        <region name="APAC" revenue="60431"/>
+        <region name="Europe" revenue="140982"/>
+        <region name="Japan" revenue="58196"/>
+        <region name="Latin America" revenue="33373"/>
+        <region name="North America" revenue="96705"/>
+    </month>
+
+    <month name="Apr-04" revenue="460329" average="92065">
+        <region name="APAC" revenue="78969"/>
+        <region name="Europe" revenue="85885"/>
+        <region name="Japan" revenue="78107"/>
+        <region name="Latin America" revenue="65796"/>
+        <region name="North America" revenue="151572"/>
+    </month>
+
+    <month name="May-04" revenue="351014" average="70202">
+        <region name="APAC" revenue="64069"/>
+        <region name="Europe" revenue="82415"/>
+        <region name="Japan" revenue="96397"/>
+        <region name="Latin America" revenue="44627"/>
+        <region name="North America" revenue="63506"/>
+    </month>
+
+    <month name="Jun-04" revenue="384855" average="76971">
+        <region name="APAC" revenue="55331"/>
+        <region name="Europe" revenue="113196"/>
+        <region name="Japan" revenue="55371"/>
+        <region name="Latin America" revenue="58323"/>
+        <region name="North America" revenue="102634"/>
+    </month>
+
+    <month name="Jul-04" revenue="335192" average="67038">
+        <region name="APAC" revenue="39445"/>
+        <region name="Europe" revenue="110750"/>
+        <region name="Japan" revenue="73722"/>
+        <region name="Latin America" revenue="50595"/>
+        <region name="North America" revenue="60680"/>
+    </month>
+
+    <month name="Aug-04" revenue="393654" average="78730">
+        <region name="APAC" revenue="44801"/>
+        <region name="Europe" revenue="98806"/>
+        <region name="Japan" revenue="93673"/>
+        <region name="Latin America" revenue="50636"/>
+        <region name="North America" revenue="105738"/>
+    </month>
+
+    <month name="Sep-04" revenue="472554" average="94510">
+        <region name="APAC" revenue="61134"/>
+        <region name="Europe" revenue="136467"/>
+        <region name="Japan" revenue="93624"/>
+        <region name="Latin America" revenue="32293"/>
+        <region name="North America" revenue="149036"/>
+    </month>
+
+    <month name="Oct-04" revenue="324299" average="64859">
+        <region name="APAC" revenue="32078"/>
+        <region name="Europe" revenue="85420"/>
+        <region name="Japan" revenue="80483"/>
+        <region name="Latin America" revenue="64390"/>
+        <region name="North America" revenue="61928"/>
+    </month>
+
+    <month name="Nov-04" revenue="415403" average="83080">
+        <region name="APAC" revenue="58832"/>
+        <region name="Europe" revenue="143128"/>
+        <region name="Japan" revenue="64295"/>
+        <region name="Latin America" revenue="58261"/>
+        <region name="North America" revenue="90887"/>
+    </month>
+
+    <month name="Dec-04" revenue="386089" average="77217">
+        <region name="APAC" revenue="80555"/>
+        <region name="Europe" revenue="118981"/>
+        <region name="Japan" revenue="87520"/>
+        <region name="Latin America" revenue="27154"/>
+        <region name="North America" revenue="71879"/>
+    </month>
+
+    <month name="Jan-05" revenue="400263" average="80052">
+        <region name="APAC" revenue="46130"/>
+        <region name="Europe" revenue="106976"/>
+        <region name="Japan" revenue="79554"/>
+        <region name="Latin America" revenue="39252"/>
+        <region name="North America" revenue="128351"/>
+    </month>
+
+    <month name="Feb-05" revenue="379145" average="75829">
+        <region name="APAC" revenue="70324"/>
+        <region name="Europe" revenue="88912"/>
+        <region name="Japan" revenue="69677"/>
+        <region name="Latin America" revenue="59428"/>
+        <region name="North America" revenue="90804"/>
+    </month>
+
+    <month name="Mar-05" revenue="389687" average="77937">
+        <region name="APAC" revenue="60431"/>
+        <region name="Europe" revenue="140982"/>
+        <region name="Japan" revenue="58196"/>
+        <region name="Latin America" revenue="33373"/>
+        <region name="North America" revenue="96705"/>
+    </month>
+
+    <month name="Apr-05" revenue="460329" average="92065">
+        <region name="APAC" revenue="78969"/>
+        <region name="Europe" revenue="85885"/>
+        <region name="Japan" revenue="78107"/>
+        <region name="Latin America" revenue="65796"/>
+        <region name="North America" revenue="151572"/>
+    </month>
+
+    <month name="May-05" revenue="351014" average="70202">
+        <region name="APAC" revenue="64069"/>
+        <region name="Europe" revenue="82415"/>
+        <region name="Japan" revenue="96397"/>
+        <region name="Latin America" revenue="44627"/>
+        <region name="North America" revenue="63506"/>
+    </month>
+
+    <month name="Jun-05" revenue="384855" average="76971">
+        <region name="APAC" revenue="55331"/>
+        <region name="Europe" revenue="113196"/>
+        <region name="Japan" revenue="55371"/>
+        <region name="Latin America" revenue="58323"/>
+        <region name="North America" revenue="102634"/>
+    </month>
+
+    <month name="Jul-05" revenue="335192" average="67038">
+        <region name="APAC" revenue="39445"/>
+        <region name="Europe" revenue="110750"/>
+        <region name="Japan" revenue="73722"/>
+        <region name="Latin America" revenue="50595"/>
+        <region name="North America" revenue="60680"/>
+    </month>
+
+    <month name="Aug-05" revenue="393654" average="78730">
+        <region name="APAC" revenue="44801"/>
+        <region name="Europe" revenue="98806"/>
+        <region name="Japan" revenue="93673"/>
+        <region name="Latin America" revenue="50636"/>
+        <region name="North America" revenue="105738"/>
+    </month>
+
+    <month name="Sep-05" revenue="472554" average="94510">
+        <region name="APAC" revenue="61134"/>
+        <region name="Europe" revenue="136467"/>
+        <region name="Japan" revenue="93624"/>
+        <region name="Latin America" revenue="32293"/>
+        <region name="North America" revenue="149036"/>
+    </month>
+
+    <month name="Oct-05" revenue="324299" average="64859">
+        <region name="APAC" revenue="32078"/>
+        <region name="Europe" revenue="85420"/>
+        <region name="Japan" revenue="80483"/>
+        <region name="Latin America" revenue="64390"/>
+        <region name="North America" revenue="61928"/>
+    </month>
+
+    <month name="Nov-05" revenue="415403" average="83080">
+        <region name="APAC" revenue="58832"/>
+        <region name="Europe" revenue="143128"/>
+        <region name="Japan" revenue="64295"/>
+        <region name="Latin America" revenue="58261"/>
+        <region name="North America" revenue="90887"/>
+    </month>
+
+    <month name="Dec-05" revenue="386089" average="77217">
+        <region name="APAC" revenue="80555"/>
+        <region name="Europe" revenue="118981"/>
+        <region name="Japan" revenue="87520"/>
+        <region name="Latin America" revenue="27154"/>
+        <region name="North America" revenue="71879"/>
+    </month>
+
+</list>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/7a58369c/apps/samples/WEB-INF/flex-src/inventory/build.xml
----------------------------------------------------------------------
diff --git a/apps/samples/WEB-INF/flex-src/inventory/build.xml b/apps/samples/WEB-INF/flex-src/inventory/build.xml
new file mode 100755
index 0000000..b1e0787
--- /dev/null
+++ b/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/7a58369c/apps/samples/WEB-INF/flex-src/inventory/src/Product.as
----------------------------------------------------------------------
diff --git a/apps/samples/WEB-INF/flex-src/inventory/src/Product.as b/apps/samples/WEB-INF/flex-src/inventory/src/Product.as
new file mode 100755
index 0000000..2f91ccb
--- /dev/null
+++ b/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/7a58369c/apps/samples/WEB-INF/flex-src/inventory/src/ProductForm.mxml
----------------------------------------------------------------------
diff --git a/apps/samples/WEB-INF/flex-src/inventory/src/ProductForm.mxml b/apps/samples/WEB-INF/flex-src/inventory/src/ProductForm.mxml
new file mode 100755
index 0000000..d9977fa
--- /dev/null
+++ b/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/7a58369c/apps/samples/WEB-INF/flex-src/inventory/src/SearchPopup.mxml
----------------------------------------------------------------------
diff --git a/apps/samples/WEB-INF/flex-src/inventory/src/SearchPopup.mxml b/apps/samples/WEB-INF/flex-src/inventory/src/SearchPopup.mxml
new file mode 100755
index 0000000..89333d2
--- /dev/null
+++ b/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/7a58369c/apps/samples/WEB-INF/flex-src/inventory/src/assets/Thumbs.db
----------------------------------------------------------------------
diff --git a/apps/samples/WEB-INF/flex-src/inventory/src/assets/Thumbs.db b/apps/samples/WEB-INF/flex-src/inventory/src/assets/Thumbs.db
new file mode 100755
index 0000000..ad2bbe5
Binary files /dev/null and b/apps/samples/WEB-INF/flex-src/inventory/src/assets/Thumbs.db differ

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/7a58369c/apps/samples/WEB-INF/flex-src/inventory/src/assets/app_skin.png
----------------------------------------------------------------------
diff --git a/apps/samples/WEB-INF/flex-src/inventory/src/assets/app_skin.png b/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/apps/samples/WEB-INF/flex-src/inventory/src/assets/app_skin.png differ

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

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/7a58369c/apps/samples/WEB-INF/flex-src/inventory/src/assets/button_over_skin.png
----------------------------------------------------------------------
diff --git a/apps/samples/WEB-INF/flex-src/inventory/src/assets/button_over_skin.png b/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/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/7a58369c/apps/samples/WEB-INF/flex-src/inventory/src/assets/button_skin.png
----------------------------------------------------------------------
diff --git a/apps/samples/WEB-INF/flex-src/inventory/src/assets/button_skin.png b/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/apps/samples/WEB-INF/flex-src/inventory/src/assets/button_skin.png differ

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/7a58369c/apps/samples/WEB-INF/flex-src/inventory/src/assets/icon_close.png
----------------------------------------------------------------------
diff --git a/apps/samples/WEB-INF/flex-src/inventory/src/assets/icon_close.png b/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/apps/samples/WEB-INF/flex-src/inventory/src/assets/icon_close.png differ

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/7a58369c/apps/samples/WEB-INF/flex-src/inventory/src/assets/icon_plus.png
----------------------------------------------------------------------
diff --git a/apps/samples/WEB-INF/flex-src/inventory/src/assets/icon_plus.png b/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/apps/samples/WEB-INF/flex-src/inventory/src/assets/icon_plus.png differ

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/7a58369c/apps/samples/WEB-INF/flex-src/inventory/src/assets/icon_search.png
----------------------------------------------------------------------
diff --git a/apps/samples/WEB-INF/flex-src/inventory/src/assets/icon_search.png b/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/apps/samples/WEB-INF/flex-src/inventory/src/assets/icon_search.png differ

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

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/7a58369c/apps/samples/WEB-INF/flex-src/inventory/src/assets/top_separator.png
----------------------------------------------------------------------
diff --git a/apps/samples/WEB-INF/flex-src/inventory/src/assets/top_separator.png b/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/apps/samples/WEB-INF/flex-src/inventory/src/assets/top_separator.png differ

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/7a58369c/apps/samples/WEB-INF/flex-src/inventory/src/inventory.mxml
----------------------------------------------------------------------
diff --git a/apps/samples/WEB-INF/flex-src/inventory/src/inventory.mxml b/apps/samples/WEB-INF/flex-src/inventory/src/inventory.mxml
new file mode 100755
index 0000000..72c8911
--- /dev/null
+++ b/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/7a58369c/apps/samples/WEB-INF/flex-src/inventory/src/styles.css
----------------------------------------------------------------------
diff --git a/apps/samples/WEB-INF/flex-src/inventory/src/styles.css b/apps/samples/WEB-INF/flex-src/inventory/src/styles.css
new file mode 100755
index 0000000..b674cc4
--- /dev/null
+++ b/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/7a58369c/apps/samples/WEB-INF/flex-src/runtimeconfig-messaging/build.xml
----------------------------------------------------------------------
diff --git a/apps/samples/WEB-INF/flex-src/runtimeconfig-messaging/build.xml b/apps/samples/WEB-INF/flex-src/runtimeconfig-messaging/build.xml
new file mode 100755
index 0000000..0555bf5
--- /dev/null
+++ b/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/7a58369c/apps/samples/WEB-INF/flex-src/runtimeconfig-messaging/src/ChatPanel.mxml
----------------------------------------------------------------------
diff --git a/apps/samples/WEB-INF/flex-src/runtimeconfig-messaging/src/ChatPanel.mxml b/apps/samples/WEB-INF/flex-src/runtimeconfig-messaging/src/ChatPanel.mxml
new file mode 100755
index 0000000..d0dbba5
--- /dev/null
+++ b/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/7a58369c/apps/samples/WEB-INF/flex-src/runtimeconfig-messaging/src/main.mxml
----------------------------------------------------------------------
diff --git a/apps/samples/WEB-INF/flex-src/runtimeconfig-messaging/src/main.mxml b/apps/samples/WEB-INF/flex-src/runtimeconfig-messaging/src/main.mxml
new file mode 100755
index 0000000..f9d9421
--- /dev/null
+++ b/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/7a58369c/apps/samples/WEB-INF/flex-src/runtimeconfig-remoting/build.xml
----------------------------------------------------------------------
diff --git a/apps/samples/WEB-INF/flex-src/runtimeconfig-remoting/build.xml b/apps/samples/WEB-INF/flex-src/runtimeconfig-remoting/build.xml
new file mode 100755
index 0000000..6a2edf8
--- /dev/null
+++ b/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/7a58369c/apps/samples/WEB-INF/flex-src/runtimeconfig-remoting/src/main.mxml
----------------------------------------------------------------------
diff --git a/apps/samples/WEB-INF/flex-src/runtimeconfig-remoting/src/main.mxml b/apps/samples/WEB-INF/flex-src/runtimeconfig-remoting/src/main.mxml
new file mode 100755
index 0000000..f225124
--- /dev/null
+++ b/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/7a58369c/apps/samples/WEB-INF/flex-src/testdrive-101/build.xml
----------------------------------------------------------------------
diff --git a/apps/samples/WEB-INF/flex-src/testdrive-101/build.xml b/apps/samples/WEB-INF/flex-src/testdrive-101/build.xml
new file mode 100755
index 0000000..d711d68
--- /dev/null
+++ b/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/7a58369c/apps/samples/WEB-INF/flex-src/testdrive-101/src/ProductView.mxml
----------------------------------------------------------------------
diff --git a/apps/samples/WEB-INF/flex-src/testdrive-101/src/ProductView.mxml b/apps/samples/WEB-INF/flex-src/testdrive-101/src/ProductView.mxml
new file mode 100755
index 0000000..6d25118
--- /dev/null
+++ b/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/7a58369c/apps/samples/WEB-INF/flex-src/testdrive-101/src/Thumb.mxml
----------------------------------------------------------------------
diff --git a/apps/samples/WEB-INF/flex-src/testdrive-101/src/Thumb.mxml b/apps/samples/WEB-INF/flex-src/testdrive-101/src/Thumb.mxml
new file mode 100755
index 0000000..71cbb7d
--- /dev/null
+++ b/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/7a58369c/apps/samples/WEB-INF/flex-src/testdrive-101/src/main.mxml
----------------------------------------------------------------------
diff --git a/apps/samples/WEB-INF/flex-src/testdrive-101/src/main.mxml b/apps/samples/WEB-INF/flex-src/testdrive-101/src/main.mxml
new file mode 100755
index 0000000..e0d18c1
--- /dev/null
+++ b/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/7a58369c/apps/samples/WEB-INF/flex-src/testdrive-101/src/testdrive.css
----------------------------------------------------------------------
diff --git a/apps/samples/WEB-INF/flex-src/testdrive-101/src/testdrive.css b/apps/samples/WEB-INF/flex-src/testdrive-101/src/testdrive.css
new file mode 100755
index 0000000..1c65407
--- /dev/null
+++ b/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/7a58369c/apps/samples/WEB-INF/flex-src/testdrive-chat/build.xml
----------------------------------------------------------------------
diff --git a/apps/samples/WEB-INF/flex-src/testdrive-chat/build.xml b/apps/samples/WEB-INF/flex-src/testdrive-chat/build.xml
new file mode 100755
index 0000000..1e74b02
--- /dev/null
+++ b/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/7a58369c/apps/samples/WEB-INF/flex-src/testdrive-chat/src/main.mxml
----------------------------------------------------------------------
diff --git a/apps/samples/WEB-INF/flex-src/testdrive-chat/src/main.mxml b/apps/samples/WEB-INF/flex-src/testdrive-chat/src/main.mxml
new file mode 100755
index 0000000..a949346
--- /dev/null
+++ b/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/7a58369c/apps/samples/WEB-INF/flex-src/testdrive-datapush/build.xml
----------------------------------------------------------------------
diff --git a/apps/samples/WEB-INF/flex-src/testdrive-datapush/build.xml b/apps/samples/WEB-INF/flex-src/testdrive-datapush/build.xml
new file mode 100755
index 0000000..3b30fb5
--- /dev/null
+++ b/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/7a58369c/apps/samples/WEB-INF/flex-src/testdrive-datapush/src/main.mxml
----------------------------------------------------------------------
diff --git a/apps/samples/WEB-INF/flex-src/testdrive-datapush/src/main.mxml b/apps/samples/WEB-INF/flex-src/testdrive-datapush/src/main.mxml
new file mode 100755
index 0000000..ed803d5
--- /dev/null
+++ b/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/7a58369c/apps/samples/WEB-INF/flex-src/testdrive-datapush/src/startfeed.jsp
----------------------------------------------------------------------
diff --git a/apps/samples/WEB-INF/flex-src/testdrive-datapush/src/startfeed.jsp b/apps/samples/WEB-INF/flex-src/testdrive-datapush/src/startfeed.jsp
new file mode 100755
index 0000000..49640ae
--- /dev/null
+++ b/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/7a58369c/apps/samples/WEB-INF/flex-src/testdrive-datapush/src/stopfeed.jsp
----------------------------------------------------------------------
diff --git a/apps/samples/WEB-INF/flex-src/testdrive-datapush/src/stopfeed.jsp b/apps/samples/WEB-INF/flex-src/testdrive-datapush/src/stopfeed.jsp
new file mode 100755
index 0000000..a035b17
--- /dev/null
+++ b/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


Mime
View raw message