flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r1369972 [9/13] - in /incubator/flex/trunk/mustella/tests/MarshallPlan: ./ Bugs/ Controls/ Controls/baselines/ Events/ ManagerTests/ ManagerTests/baselines/ RPC/ RSLs/ SWFs/ SWFs/assets/ SWFs/assets/assets/ SWFs/assets/bundles/ SWFs/assets/...
Date Mon, 06 Aug 2012 20:20:14 GMT
Added: incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataSetSingleSQLTest.sh
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataSetSingleSQLTest.sh?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataSetSingleSQLTest.sh (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataSetSingleSQLTest.sh Mon Aug  6 20:20:08 2012
@@ -0,0 +1,23 @@
+#!/bin/sh
+################################################################################
+##
+##  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.
+##
+################################################################################
+cd ../SWFs
+
+$SDK_DIR/bin/mxmlc -includes=mx.managers.systemClasses.MarshallingSupport  assets/MP_RPC_dataSetMain.mxml
+

Propchange: incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataSetSingleSQLTest.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataTableArraySQLTest.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataTableArraySQLTest.mxml?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataTableArraySQLTest.mxml (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataTableArraySQLTest.mxml Mon Aug  6 20:20:08 2012
@@ -0,0 +1,147 @@
+<?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.
+
+-->
+<UnitTester testDir="MarshallPlan/RPC/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="Bootstrap_RPC_Child.mxml">
+    <mx:Script>
+	<![CDATA[
+
+       import mx.managers.PopUpManager;
+       public static function init(o:DisplayObject):void
+		{
+
+		}
+
+	]]>
+	</mx:Script>
+
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>
+
+    <mx:Script>
+        <![CDATA[
+            import mx.utils.ObjectUtil;
+            import mx.rpc.events.FaultEvent;
+            import mx.rpc.events.ResultEvent;
+            import mx.rpc.soap.LoadEvent;
+            import mx.rpc.soap.Operation;
+            import mx.rpc.AsyncToken;
+            import mx.collections.ArrayCollection;
+            import mx.rpc.soap.WebService;
+
+            private var rowsLength:int = 0;
+            private var nwCL:WebService = new WebService();
+            private var res:String = "";
+            private var tbl:Object;
+
+            public function exec(op:Operation):void
+            {
+                op.resultFormat="object";
+                op.send();
+            }
+            public function initApplication():void
+            {
+                nwCL.wsdl = "http://flexqa01.labs.corp.adobe.com/FlexWS/CustomerList.asmx?WSDL";
+                nwCL.addEventListener(ResultEvent.RESULT,onResult);
+                nwCL.addEventListener(FaultEvent.FAULT,onFault);
+                nwCL.addEventListener(LoadEvent.LOAD,onLoad);
+                nwCL.useProxy = false;
+                nwCL.loadWSDL();
+            }
+            private function onLoad(event:LoadEvent):void
+            {
+                //dump(event);
+            }
+            private function onResult(event:ResultEvent):void
+            {
+                var ds:Object = {};
+                for (var i:int=0;i<event.result.length;i++)
+                {
+                    ds[i] = event.result[i];
+                    for each (var tbl:Object in ds[i].Tables)
+                    {
+                        displayTable(tbl);
+                        rowsLength = tbl["Rows"].length;
+                        dump("Number of rows: " + tbl["Rows"].length);
+                    }
+                }
+            }
+
+            private function displayTable(tbl:Object):void
+            {
+                application.swf22.content.document.dg.dataProvider = tbl.Rows;
+            }
+
+            private function onFault(event:FaultEvent):void
+            {
+                dump(event.fault);
+            }
+
+            private function dump(obj:Object):void
+            {
+                //txt.text += "----------------------------------------\n";
+                application.swf22.content.document.txt.text += ObjectUtil.toString(obj);
+            }
+
+        ]]>
+    </mx:Script>
+
+	<testCases>
+        <TestCase testID="getDataTableArray" description="test that value = 30 rows 3 x" keywords="[rpc]">
+            <setup>
+		       <ResetComponent target="btn1" className="mx.controls.Button" waitEvent="updateComplete" waitTarget="btn1" />
+		   	   <SetProperty target="swf22" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf22" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf22" waitEvent="complete"/>
+			   <Pause timeout="100" />
+			   <SetProperty target="swf22" propertyName="loadForCompatibility" value="false" />
+			   <SetProperty target="swf22" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf22" propertyName="source" value="assets/MP_RPC_dataSetMain.swf" />
+			   <SetProperty target="swf22" propertyName="autoLoad" value="true"
+					waitTarget="swf22" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf22.content" waitEvent="applicationComplete"/>
+			  	<RunCode code="initApplication()" />
+                <RunCode code="exec(nwCL.getDataTableArray)"   waitEvent="updateComplete" waitTarget="swf22.content.document.dg"  />
+        	     <AssertPropertyValue propertyName="text" target="swf22.content.document.txt" value='"Number of rows: 30""Number of rows: 30""Number of rows: 30"' />
+			</body>
+		</TestCase>
+        <TestCase testID="getDataTableArray_compatible" description="test that value = 30 rows 3 x" keywords="[rpc]">
+            <setup>
+		       <ResetComponent target="btn1" className="mx.controls.Button" waitEvent="updateComplete" waitTarget="btn1" />
+		   	   <SetProperty target="swf22" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf22" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf22" waitEvent="complete"/>
+			   <Pause timeout="100" />
+			   <SetProperty target="swf22" propertyName="loadForCompatibility" value="true" />
+			   <SetProperty target="swf22" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf22" propertyName="source" value="assets/MP_RPC_dataSetMain.swf" />
+			   <SetProperty target="swf22" propertyName="autoLoad" value="true"
+					waitTarget="swf22" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf22.content" waitEvent="applicationComplete"/>
+			  	<RunCode code="initApplication()" />
+                <RunCode code="exec(nwCL.getDataTableArray)"   waitEvent="updateComplete" waitTarget="swf22.content.document.dg"  />
+        	     <AssertPropertyValue propertyName="text" target="swf22.content.document.txt" value='"Number of rows: 30""Number of rows: 30""Number of rows: 30"' />
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataTableArraySQLTest.sh
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataTableArraySQLTest.sh?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataTableArraySQLTest.sh (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataTableArraySQLTest.sh Mon Aug  6 20:20:08 2012
@@ -0,0 +1,23 @@
+#!/bin/sh
+################################################################################
+##
+##  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.
+##
+################################################################################
+cd ../SWFs
+
+$SDK_DIR/bin/mxmlc -includes=mx.managers.systemClasses.MarshallingSupport  assets/MP_RPC_dataSetMain.mxml
+

Propchange: incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataTableArraySQLTest.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataTableSingleSQLTest.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataTableSingleSQLTest.mxml?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataTableSingleSQLTest.mxml (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataTableSingleSQLTest.mxml Mon Aug  6 20:20:08 2012
@@ -0,0 +1,153 @@
+<?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.
+
+-->
+<UnitTester testDir="MarshallPlan/RPC/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="Bootstrap_RPC_Child.mxml">
+    <mx:Script>
+	<![CDATA[
+
+       import mx.managers.PopUpManager;
+       public static function init(o:DisplayObject):void
+		{
+
+		}
+
+	]]>
+	</mx:Script>
+
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>
+
+    <mx:Script>
+        <![CDATA[
+            import mx.utils.ObjectUtil;
+            import mx.rpc.events.FaultEvent;
+            import mx.rpc.events.ResultEvent;
+            import mx.rpc.soap.LoadEvent;
+            import mx.rpc.soap.Operation;
+            import mx.rpc.AsyncToken;
+            import mx.collections.ArrayCollection;
+            import mx.rpc.soap.WebService;
+
+            private var rowsLength:int = 0;
+            private var nwCL:WebService = new WebService();
+            private var res:String = "";
+            private var tbl:Object;
+
+            public function exec(op:Operation):void
+            {
+                op.resultFormat="object";
+                op.send();
+            }
+            public function initApplication():void
+            {
+                nwCL.wsdl = "http://flexqa01.labs.corp.adobe.com/FlexWS/CustomerList.asmx?WSDL";
+                nwCL.addEventListener(ResultEvent.RESULT,onResult);
+                nwCL.addEventListener(FaultEvent.FAULT,onFault);
+                nwCL.addEventListener(LoadEvent.LOAD,onLoad);
+                nwCL.useProxy = false;
+                nwCL.loadWSDL();
+            }
+            private function onLoad(event:LoadEvent):void
+            {
+                //dump(event);
+            }
+            private function onResult(event:ResultEvent):void
+            {
+                var ds:Object = event.result;
+                if (event.result is ArrayCollection)
+                {
+                    ds = event.result[0];
+                }
+                var done:Boolean = false;
+                for each (tbl in ds.Tables)
+                {
+                    //dump(tbl);
+                    if (!done)
+                        displayTable(tbl);
+                    done = true;
+                    rowsLength = tbl["Rows"].length;
+                    dump("Number of rows: " + tbl["Rows"].length);
+                }
+
+            }
+
+            private function displayTable(tbl:Object):void
+            {
+                application.swf22.content.document.dg.dataProvider = tbl.Rows;
+            }
+
+            private function onFault(event:FaultEvent):void
+            {
+                dump(event.fault);
+            }
+
+            private function dump(obj:Object):void
+            {
+                //txt.text += "----------------------------------------\n";
+                application.swf22.content.document.txt.text += ObjectUtil.toString(obj);
+            }
+
+        ]]>
+    </mx:Script>
+
+	<testCases>
+        <TestCase testID="getCustomersAsDT" description="test that value = 10 rows" keywords="[rpc]">
+            <setup>
+		       <ResetComponent target="btn1" className="mx.controls.Button" waitEvent="updateComplete" waitTarget="btn1" />
+		   	   <SetProperty target="swf22" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf22" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf22" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+			   <SetProperty target="swf22" propertyName="loadForCompatibility" value="false" />
+			   <SetProperty target="swf22" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf22" propertyName="source" value="assets/MP_RPC_dataSetMain.swf" />
+			   <SetProperty target="swf22" propertyName="autoLoad" value="true"
+					waitTarget="swf22" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf22.content" waitEvent="applicationComplete"/>
+			  	<RunCode code="initApplication()" />
+                <RunCode code="exec(nwCL.getCustomersAsDT)"   waitEvent="updateComplete" waitTarget="swf22.content.document.dg" />
+			    <AssertPropertyValue propertyName="text" target="swf22.content.document.txt" value='"Number of rows: 10"' />
+			</body>
+		</TestCase>
+        <TestCase testID="getCustomersAsDT_compatible" description="test that value = 10 rows" keywords="[rpc]">
+            <setup>
+		       <ResetComponent target="btn1" className="mx.controls.Button" waitEvent="updateComplete" waitTarget="btn1" />
+		   	   <SetProperty target="swf22" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf22" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf22" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+			   <SetProperty target="swf22" propertyName="loadForCompatibility" value="true" />
+			   <SetProperty target="swf22" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf22" propertyName="source" value="assets/MP_RPC_dataSetMain.swf" />
+			   <SetProperty target="swf22" propertyName="autoLoad" value="true"
+					waitTarget="swf22" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf22.content" waitEvent="applicationComplete"/>
+			  	<RunCode code="initApplication()" />
+                <RunCode code="exec(nwCL.getCustomersAsDT)"   waitEvent="updateComplete" waitTarget="swf22.content.document.dg" />
+			    <AssertPropertyValue propertyName="text" target="swf22.content.document.txt" value='"Number of rows: 10"' />
+			</body>
+		</TestCase>
+	</testCases>
+
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataTableSingleSQLTest.sh
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataTableSingleSQLTest.sh?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataTableSingleSQLTest.sh (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataTableSingleSQLTest.sh Mon Aug  6 20:20:08 2012
@@ -0,0 +1,23 @@
+#!/bin/sh
+################################################################################
+##
+##  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.
+##
+################################################################################
+cd ../SWFs
+
+$SDK_DIR/bin/mxmlc -includes=mx.managers.systemClasses.MarshallingSupport  assets/MP_RPC_dataSetMain.mxml
+

Propchange: incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataTableSingleSQLTest.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataTypeSurveySQLAsDSTest.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataTypeSurveySQLAsDSTest.mxml?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataTypeSurveySQLAsDSTest.mxml (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataTypeSurveySQLAsDSTest.mxml Mon Aug  6 20:20:08 2012
@@ -0,0 +1,152 @@
+<?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.
+
+-->
+<UnitTester testDir="MarshallPlan/RPC/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="Bootstrap_RPC_Child.mxml">
+    <mx:Script>
+	<![CDATA[
+
+       import mx.managers.PopUpManager;
+       public static function init(o:DisplayObject):void
+		{
+
+		}
+
+	]]>
+	</mx:Script>
+
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>
+
+    <mx:Script>
+        <![CDATA[
+            import mx.utils.ObjectUtil;
+            import mx.rpc.events.FaultEvent;
+            import mx.rpc.events.ResultEvent;
+            import mx.rpc.soap.LoadEvent;
+            import mx.rpc.soap.Operation;
+            import mx.rpc.AsyncToken;
+            import mx.collections.ArrayCollection;
+            import mx.rpc.soap.WebService;
+
+            private var rowsLength:int = 0;
+            private var nwCL:WebService = new WebService();
+            private var res:String = "";
+            private var tbl:Object;
+
+            public function exec(op:Operation):void
+            {
+                op.resultFormat="object";
+                op.send();
+            }
+            public function initApplication():void
+            {
+                nwCL.wsdl = "http://flexqa01.labs.corp.adobe.com/FlexWS/CustomerList.asmx?WSDL";
+                nwCL.addEventListener(ResultEvent.RESULT,onResult);
+                nwCL.addEventListener(FaultEvent.FAULT,onFault);
+                nwCL.addEventListener(LoadEvent.LOAD,onLoad);
+                nwCL.useProxy = false;
+                nwCL.loadWSDL();
+            }
+            private function onLoad(event:LoadEvent):void
+            {
+                //dump(event);
+            }
+
+            private function onResult(event:ResultEvent):void
+            {
+                var ds:Object = event.result;
+                if (event.result is ArrayCollection)
+                {
+                    ds = event.result[0];
+                }
+                //dump(ds.Tables);
+                var done:Boolean = false;
+                for each (var tbl:Object in ds.Tables)
+                {
+                    //dump(tbl);
+                    if (!done)
+                        displayTable(tbl);
+                    done = true;
+                    rowsLength = tbl["Rows"].length;
+                    dump("Number of rows: " + tbl["Rows"].length);
+                }
+
+            }
+            private function displayTable(tbl:Object):void
+            {
+                application.swf22.content.document.dg.dataProvider = tbl.Rows;
+            }
+
+            private function onFault(event:FaultEvent):void
+            {
+                dump(event.fault);
+            }
+
+            private function dump(obj:Object):void
+            {
+                //txt.text += "----------------------------------------\n";
+                application.swf22.content.document.txt.text += ObjectUtil.toString(obj);
+            }
+
+        ]]>
+    </mx:Script>
+	<testCases>
+        <TestCase testID="getDatTypeSurveyAsDS" description="test that value = 10 rows" keywords="[rpc]">
+            <setup>
+		       <ResetComponent target="btn1" className="mx.controls.Button" waitEvent="updateComplete" waitTarget="btn1" />
+		   	   <SetProperty target="swf22" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf22" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf22" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+			   <SetProperty target="swf22" propertyName="loadForCompatibility" value="false" />
+			   <SetProperty target="swf22" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf22" propertyName="source" value="assets/MP_RPC_dataSetMain.swf" />
+			   <SetProperty target="swf22" propertyName="autoLoad" value="true"
+					waitTarget="swf22" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf22.content" waitEvent="applicationComplete"/>
+			  	<RunCode code="initApplication()" />
+                <RunCode code="exec(nwCL.getDatTypeSurveyAsDS)"   waitEvent="updateComplete" waitTarget="swf22.content.document.dg" />
+			    <AssertPropertyValue propertyName="text" target="swf22.content.document.txt" value='"Number of rows: 10"' />
+			</body>
+		</TestCase>
+        <TestCase testID="getDatTypeSurveyAsDS_compatible" description="test that value = 10 rows" keywords="[rpc]">
+            <setup>
+		       <ResetComponent target="btn1" className="mx.controls.Button" waitEvent="updateComplete" waitTarget="btn1" />
+		   	   <SetProperty target="swf22" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf22" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf22" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+			   <SetProperty target="swf22" propertyName="loadForCompatibility" value="true" />
+			   <SetProperty target="swf22" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf22" propertyName="source" value="assets/MP_RPC_dataSetMain.swf" />
+			   <SetProperty target="swf22" propertyName="autoLoad" value="true"
+					waitTarget="swf22" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf22.content" waitEvent="applicationComplete"/>
+			  	<RunCode code="initApplication()" />
+                <RunCode code="exec(nwCL.getDatTypeSurveyAsDS)"   waitEvent="updateComplete" waitTarget="swf22.content.document.dg" />
+			    <AssertPropertyValue propertyName="text" target="swf22.content.document.txt" value='"Number of rows: 10"' />
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataTypeSurveySQLAsDSTest.sh
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataTypeSurveySQLAsDSTest.sh?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataTypeSurveySQLAsDSTest.sh (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataTypeSurveySQLAsDSTest.sh Mon Aug  6 20:20:08 2012
@@ -0,0 +1,24 @@
+#!/bin/sh
+################################################################################
+##
+##  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.
+##
+################################################################################
+cd ../SWFs
+
+$SDK_DIR/bin/mxmlc -includes=mx.managers.systemClasses.MarshallingSupport  assets/MP_RPC_dataSetMain.mxml
+
+

Propchange: incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataTypeSurveySQLAsDSTest.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_HTTPService_Tests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_HTTPService_Tests.mxml?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_HTTPService_Tests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_HTTPService_Tests.mxml Mon Aug  6 20:20:08 2012
@@ -0,0 +1,189 @@
+<?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.
+
+-->
+<UnitTester testDir="MarshallPlan/RPC/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="Bootstrap_RPC_Child.mxml">
+
+	<!-- this set of lines form a template that must be in each unit test -->
+	<mx:Script>
+	<![CDATA[
+	public static function init(o:DisplayObject):void
+	{
+	}
+	]]>
+	</mx:Script>
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>
+	<!-- end of set of lines that must be in each unit test -->
+
+	<mx:Script>
+	<![CDATA[
+	]]>
+	</mx:Script>
+    <!-- SOME OF THESE TESTS DEPEND ON DATA BEING SERVED FROM FLEXQA01 ON A JRUN SERVER -->
+	<testCases>
+		<TestCase testID="MP_HTTPService_localXML" description="Marshal Plan: Load an XML file using HTTPService"
+		    keywords="[Marshall Plan, HTTPService]">
+			<setup>
+		       <ResetComponent target="btn1" className="mx.controls.Button" waitEvent="updateComplete" waitTarget="btn1" />
+		   	   <SetProperty target="swf22" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf22" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf22" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+			   <SetProperty target="swf22" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf22" propertyName="source" value="assets/httpServiceTest.swf" />
+			   <SetProperty target="swf22" propertyName="autoLoad" value="true"
+					waitTarget="swf22" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf22.content" waitEvent="applicationComplete"/>
+			  	<Pause timeout="100" />
+			  	<DispatchMouseClickEvent target="swf22.content.document.btn_getWeather" localX="5" localY="5"
+			  	    waitEvent="result" waitTarget="swf22.content.document.weatherSVC" />
+		        <DispatchMouseClickEvent target="swf22.content.document.btn_dataProvider" localX="5" localY="5"
+			  	    waitTarget="swf22.content.document.datagrid1" waitEvent="updateComplete" />
+		    </body>
+		</TestCase>
+		<TestCase testID="MP_HTTPService_localXML_compatibility" description="Marshal Plan: Load an XML file using HTTPService"
+		    keywords="[Marshall Plan, HTTPService]">
+			<setup>
+		       <ResetComponent target="btn1" className="mx.controls.Button" waitEvent="updateComplete" waitTarget="btn1" />
+		   	   <SetProperty target="swf22" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf22" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf22" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+			   <SetProperty target="swf22" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf22" propertyName="loadForCompatibility" value="true" />
+		   	   <SetProperty target="swf22" propertyName="source" value="assets/httpServiceTest.swf" />
+			   <SetProperty target="swf22" propertyName="autoLoad" value="true"
+					waitTarget="swf22" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf22.content" waitEvent="applicationComplete"/>
+			  	<Pause timeout="100" />
+			  	<DispatchMouseClickEvent target="swf22.content.document.btn_getWeather" localX="5" localY="5"
+			  	    waitEvent="result" waitTarget="swf22.content.document.weatherSVC" />
+		        <DispatchMouseClickEvent target="swf22.content.document.btn_dataProvider" localX="5" localY="5"
+			  	    waitTarget="swf22.content.document.datagrid1" waitEvent="updateComplete" />
+		    </body>
+		</TestCase>
+		<TestCase testID="MP_HTTPService_localXML_fault" description="Marshal Plan: Load a non-existent XML file using HTTPService"
+		    keywords="[Marshall Plan, HTTPService]">
+			<setup>
+		       <ResetComponent target="btn1" className="mx.controls.Button" waitEvent="updateComplete" waitTarget="btn1" />
+		   	   <SetProperty target="swf22" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf22" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf22" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+			   <SetProperty target="swf22" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf22" propertyName="loadForCompatibility" value="false" />
+		   	   <SetProperty target="swf22" propertyName="source" value="assets/httpServiceTest.swf" />
+			   <SetProperty target="swf22" propertyName="autoLoad" value="true"
+					waitTarget="swf22" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf22.content" waitEvent="applicationComplete"/>
+			  	<Pause timeout="100" />
+			    <DispatchMouseClickEvent target="swf22.content.document.btn_getBadWeather" localX="5" localY="5"
+			  	    waitEvent="fault" waitTarget="swf22.content.document.badSVC" />
+		    </body>
+		</TestCase>
+		<TestCase testID="MP_HTTPService_localXML_fault_compatibility" description="Marshal Plan: Load a non-existent XML file using HTTPService"
+		    keywords="[Marshall Plan, HTTPService]">
+			<setup>
+		       <ResetComponent target="btn1" className="mx.controls.Button" waitEvent="updateComplete" waitTarget="btn1" />
+		   	   <SetProperty target="swf22" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf22" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf22" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+			   <SetProperty target="swf22" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf22" propertyName="loadForCompatibility" value="true" />
+		   	   <SetProperty target="swf22" propertyName="source" value="assets/httpServiceTest.swf" />
+			   <SetProperty target="swf22" propertyName="autoLoad" value="true"
+					waitTarget="swf22" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf22.content" waitEvent="applicationComplete"/>
+			  	<Pause timeout="100" />
+			  	<DispatchMouseClickEvent target="swf22.content.document.btn_getBadWeather" localX="5" localY="5"
+			  	    waitEvent="fault" waitTarget="swf22.content.document.badSVC" timeout="60000"/>
+		    </body>
+		</TestCase>
+		<TestCase testID="MP_HTTPService_localXML_securityError" description="Marshal Plan: Load an XML file using HTTPService from an untrusted app"
+		    keywords="[Marshall Plan, HTTPService]">
+			<setup>
+		       <ResetComponent target="btn1" className="mx.controls.Button" waitEvent="updateComplete" waitTarget="btn1" />
+		   	   <SetProperty target="swf22" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf22" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf22" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+			   <SetProperty target="swf22" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf22" propertyName="loadForCompatibility" value="false" />
+		   	   <SetProperty target="swf22" propertyName="source" value="http://localhost:{portNumber}/MarshallPlan/SWFs/assets/httpServiceTest.swf?117_23?117_23?117_23" />
+			   <SetProperty target="swf22" propertyName="autoLoad" value="true"
+					waitTarget="swf22" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf22.content" waitEvent="applicationComplete"/>
+			  	<Pause timeout="100" />
+			    <DispatchMouseClickEvent target="swf22.content.document.btn_getWeather" localX="5" localY="5"
+			  	    waitEvent="fault" waitTarget="swf22.content.document.weatherSVC" timeout="60000" />
+		    </body>
+		</TestCase>
+		<TestCase testID="MP_HTTPService_RequestParameters" description="Marshal Plan: Post with an HTTPService"
+		    keywords="[Marshall Plan, HTTPService]">
+			<setup>
+		       <ResetComponent target="btn1" className="mx.controls.Button" waitEvent="updateComplete" waitTarget="btn1" />
+		   	   <SetProperty target="swf22" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf22" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf22" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+			   <SetProperty target="swf22" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf22" propertyName="loadForCompatibility" value="false" />
+		   	   <SetProperty target="swf22" propertyName="source" value="assets/httpServiceRequestParams.swf" />
+			   <SetProperty target="swf22" propertyName="autoLoad" value="true"
+					waitTarget="swf22" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf22.content" waitEvent="applicationComplete"/>
+			  	<Pause timeout="100" />
+			  	<DispatchMouseClickEvent target="swf22.content.document.submit_btn" localX="5" localY="5"
+			  	    waitEvent="result" waitTarget="swf22.content.document.srv" />
+			  	<AssertPropertyValue propertyName="text" target="swf22.content.document.resultText" value="successful send." />
+		    </body>
+		</TestCase>
+		<TestCase testID="MP_HTTPService_RequestParameters_securityError" description="Marshal Plan: Post with an HTTPServic from an untrusted app"
+		    keywords="[Marshall Plan, HTTPService]">
+			<setup>
+		       <ResetComponent target="btn1" className="mx.controls.Button" waitEvent="updateComplete" waitTarget="btn1" />
+		   	   <SetProperty target="swf22" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf22" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf22" waitEvent="updateComplete"/>
+			   <Pause timeout="200" />
+			   <SetProperty target="swf22" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf22" propertyName="loadForCompatibility" value="false" />
+		   	   <SetProperty target="swf22" propertyName="source" value="http://localhost:{portNumber}/MarshallPlan/SWFs/assets/httpServiceRequestParams.swf?158_23?158_23?158_23" />
+			   <SetProperty target="swf22" propertyName="autoLoad" value="true"
+					waitTarget="swf22" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf22.content" waitEvent="applicationComplete"/>
+			  	<Pause timeout="100" />
+			    <DispatchMouseClickEvent target="swf22.content.document.submit_btn" localX="5" localY="5"
+			  	    waitEvent="fault" waitTarget="swf22.content.document.srv" />
+			  	<AssertPropertyValue propertyName="text" target="swf22.content.document.resultText" value="failed send." timeout="60000"/>
+		    </body>
+		</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_HTTPService_Tests.sh
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_HTTPService_Tests.sh?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_HTTPService_Tests.sh (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_HTTPService_Tests.sh Mon Aug  6 20:20:08 2012
@@ -0,0 +1,25 @@
+#!/bin/sh
+################################################################################
+##
+##  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.
+##
+################################################################################
+cd ../SWFs
+
+$SDK_DIR/bin/mxmlc -includes=mx.managers.systemClasses.MarshallingSupport  assets/httpServiceTest.mxml
+$SDK_DIR/bin/mxmlc -includes=mx.managers.systemClasses.MarshallingSupport  assets/httpServiceRequestParams.mxml
+
+

Propchange: incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_HTTPService_Tests.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/RSLs/allowDomainFalse_Tests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/RSLs/allowDomainFalse_Tests.mxml?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/RSLs/allowDomainFalse_Tests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/RSLs/allowDomainFalse_Tests.mxml Mon Aug  6 20:20:08 2012
@@ -0,0 +1,43 @@
+<UnitTester testDir="MarshallPlan/RSLs/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="AllowDomainFalse.mxml">
+    <!--Default Script-->
+    <mx:Script>
+        <![CDATA[
+        public static function init(o:DisplayObject):void{}
+    ]]>
+    </mx:Script>
+    <!--Default Metadata-->
+    <mx:Metadata><![CDATA[[Mixin]]]></mx:Metadata>
+    <testCases>
+
+		<TestCase testID="allowDomainFalse_rsl" description="Test loading of untursted sub app which depends upon rsl loaded in trusted domain."
+		  keywords="[RSL]">
+			<setup>
+
+               <SetProperty target="sl1" propertyName="autoLoad" value="true" />
+               <SetProperty target="sl1" propertyName="source" value="assets/baconplacemat.jpg" waitTarget="sl1" waitEvent="updateComplete"/>
+               <Pause timeout="100" />
+
+               <SetProperty target="sl1" propertyName="autoLoad" value="false" />
+               <SetProperty target="sl1" propertyName="source" value="assets/SubApp.swf" waitTarget="sl1" waitEvent="updateComplete"/>
+               <SetProperty target="sl1" propertyName="autoLoad" value="true" waitTarget="sl1" waitEvent="complete"/>
+			   
+               <SetProperty target="sl2" propertyName="autoLoad" value="true" />
+               <SetProperty target="sl2" propertyName="source" value="assets/baconplacemat.jpg" waitTarget="sl2" waitEvent="updateComplete"/>
+               <Pause timeout="100" />
+
+               <SetProperty target="sl2" propertyName="autoLoad" value="false" />
+               <SetProperty target="sl2" propertyName="source" value="http://127.0.0.1:{portNumber}/MarshallPlan/SWFs/assets/UntrustedApp.swf" waitTarget="sl2" waitEvent="updateComplete"/>
+               <SetProperty target="sl2" propertyName="autoLoad" value="true" waitTarget="sl2" waitEvent="complete"/>
+			   <Pause timeout="100" />			   
+			</setup>
+			<body>
+
+                <DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="sl2.content" waitEvent="added"/>
+                
+			    <DispatchMouseClickEvent target="sl2.content.document.runBtn" waitEvent="click" waitTarget="sl2.content.document.runBtn" />
+				<AssertPropertyValue target="sl2.content.document" propertyName="flag" value="false" />
+			</body>
+		</TestCase>
+
+    </testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/RSLs/allowDomain_Tests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/RSLs/allowDomain_Tests.mxml?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/RSLs/allowDomain_Tests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/RSLs/allowDomain_Tests.mxml Mon Aug  6 20:20:08 2012
@@ -0,0 +1,43 @@
+<UnitTester testDir="MarshallPlan/RSLs/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="AllowDomainBug.mxml">
+    <!--Default Script-->
+    <mx:Script>
+        <![CDATA[
+        public static function init(o:DisplayObject):void{}
+    ]]>
+    </mx:Script>
+    <!--Default Metadata-->
+    <mx:Metadata><![CDATA[[Mixin]]]></mx:Metadata>
+    <testCases>
+
+		<TestCase testID="allowDomain_rsl" description="Test loading of untursted sub app which depends upon rsl loaded in trusted domain."
+		  keywords="[RSL]">
+			<setup>
+			
+               <SetProperty target="sl1" propertyName="autoLoad" value="true" />
+               <SetProperty target="sl1" propertyName="source" value="assets/baconplacemat.jpg" waitTarget="sl1" waitEvent="updateComplete"/>
+               <Pause timeout="100" />
+
+               <SetProperty target="sl1" propertyName="autoLoad" value="false" />
+               <SetProperty target="sl1" propertyName="source" value="assets/SubApp.swf" waitTarget="sl1" waitEvent="updateComplete"/>
+               <SetProperty target="sl1" propertyName="autoLoad" value="true" waitTarget="sl1" waitEvent="complete"/>
+			   
+               <SetProperty target="sl2" propertyName="autoLoad" value="true" />
+               <SetProperty target="sl2" propertyName="source" value="assets/baconplacemat.jpg" waitTarget="sl2" waitEvent="updateComplete"/>
+               <Pause timeout="100" />
+
+               <SetProperty target="sl2" propertyName="autoLoad" value="false" />
+               <SetProperty target="sl2" propertyName="source" value="http://127.0.0.1:{portNumber}/MarshallPlan/SWFs/assets/UntrustedApp.swf" waitTarget="sl2" waitEvent="updateComplete"/>
+               <SetProperty target="sl2" propertyName="autoLoad" value="true" waitTarget="sl2" waitEvent="complete"/>
+			   <Pause timeout="100" />			   
+			</setup>
+			<body>
+
+                <DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="sl2.content" waitEvent="added"/>
+                
+			    <DispatchMouseClickEvent target="sl2.content.document.runBtn" waitEvent="click" waitTarget="sl2.content.document.runBtn" />
+				<AssertPropertyValue target="sl2.content.document" propertyName="flag" value="true" />
+			</body>
+		</TestCase>
+
+    </testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/ASLoaderApp.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/ASLoaderApp.as?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/ASLoaderApp.as (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/ASLoaderApp.as Mon Aug  6 20:20:08 2012
@@ -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.
+//
+////////////////////////////////////////////////////////////////////////////////
+package {
+    import flash.display.Loader;
+    import flash.display.Sprite;
+    import flash.events.*;
+    import flash.net.URLRequest;
+    public class ASLoaderApp extends Sprite {
+        private var url:String = "assets/menuBug.swf";
+        public function ASLoaderApp() {
+            var loader:Loader = new Loader();
+            var request:URLRequest = new URLRequest(url);
+            loader.load(request);
+            addChild(loader);
+        }
+
+
+    }
+}
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/AllowDomainBug.compile
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/AllowDomainBug.compile?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/AllowDomainBug.compile (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/AllowDomainBug.compile Mon Aug  6 20:20:08 2012
@@ -0,0 +1 @@
+ -includes=mx.managers.systemClasses.MarshallingSupport -static-link-runtime-shared-libraries=false -rslp=assets/MyUtils,assets/MyUtils/library.swf  -remove-unused-rsls=true
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/AllowDomainBug.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/AllowDomainBug.mxml?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/AllowDomainBug.mxml (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/AllowDomainBug.mxml Mon Aug  6 20:20:08 2012
@@ -0,0 +1,49 @@
+<?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.
+
+-->
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
+               xmlns:s="library://ns.adobe.com/flex/spark" 
+               xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" height="600"
+               applicationComplete="application1_applicationCompleteHandler(event)">
+
+    <fx:Script>
+        <![CDATA[
+            import flash.system.ApplicationDomain;
+            
+            import mx.core.ApplicationDomainTarget;
+            import mx.events.FlexEvent;
+            import mx.events.RSLEvent;
+            
+            protected function application1_applicationCompleteHandler(event:FlexEvent):void
+            {
+                systemManager.allowDomain("127.0.0.1");
+            }
+
+        ]]>
+    </fx:Script>
+    
+    <s:layout>
+        <s:VerticalLayout/>
+    </s:layout>
+    
+    <s:Button label="Load App1" click="sl1.source='assets/SubApp.swf'" />
+    <s:Button label="Load UntrustedApp" click="sl2.source='http://127.0.0.1/MarshallPlan/SWFs/assets/UntrustedApp.swf'" />
+    <mx:SWFLoader id="sl1" />
+    <mx:SWFLoader id="sl2" />
+</s:Application>

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/AllowDomainFalse.compile
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/AllowDomainFalse.compile?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/AllowDomainFalse.compile (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/AllowDomainFalse.compile Mon Aug  6 20:20:08 2012
@@ -0,0 +1 @@
+ -includes=mx.managers.systemClasses.MarshallingSupport -static-link-runtime-shared-libraries=false -rslp=assets/MyUtils,assets/MyUtils/library.swf  -remove-unused-rsls=true
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/AllowDomainFalse.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/AllowDomainFalse.mxml?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/AllowDomainFalse.mxml (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/AllowDomainFalse.mxml Mon Aug  6 20:20:08 2012
@@ -0,0 +1,50 @@
+<?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.
+
+-->
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
+               xmlns:s="library://ns.adobe.com/flex/spark" 
+               xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" height="600"
+               applicationComplete="application1_applicationCompleteHandler(event)">
+
+    <fx:Script>
+        <![CDATA[
+            import flash.system.ApplicationDomain;
+            
+            import mx.core.ApplicationDomainTarget;
+            import mx.events.FlexEvent;
+            import mx.events.RSLEvent;
+            
+            protected function application1_applicationCompleteHandler(event:FlexEvent):void
+            {
+            	systemManager.allowDomainsInNewRSLs = false;
+                systemManager.allowDomain("127.0.0.1");
+            }
+
+        ]]>
+    </fx:Script>
+    
+    <s:layout>
+        <s:VerticalLayout/>
+    </s:layout>
+    
+    <s:Button label="Load App1" click="sl1.source='assets/SubApp.swf'" />
+    <s:Button label="Load UntrustedApp" click="sl2.source='http://127.0.0.1/MarshallPlan/SWFs/assets/UntrustedApp.swf'" />
+    <mx:SWFLoader id="sl1" />
+    <mx:SWFLoader id="sl2" />
+</s:Application>

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/Bootstrap_CursorManager.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/Bootstrap_CursorManager.as?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/Bootstrap_CursorManager.as (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/Bootstrap_CursorManager.as Mon Aug  6 20:20:08 2012
@@ -0,0 +1,157 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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
+{
+
+import flash.display.Loader;
+import flash.display.Sprite;
+import flash.display.StageAlign;
+import flash.display.StageScaleMode;
+import flash.events.Event;
+import flash.net.URLRequest;
+import flash.system.ApplicationDomain;
+
+/**
+ *  Classes used by the networking protocols go here
+ */
+import mx.messaging.config.ConfigMap; ConfigMap;
+import mx.messaging.messages.AcknowledgeMessage; AcknowledgeMessage;
+import mx.messaging.messages.AcknowledgeMessageExt; AcknowledgeMessageExt;
+import mx.messaging.messages.AsyncMessage; AsyncMessage;
+import mx.messaging.messages.AsyncMessageExt; AsyncMessageExt;
+import mx.messaging.messages.CommandMessage; CommandMessage;
+import mx.messaging.messages.CommandMessageExt; CommandMessageExt;
+import mx.messaging.messages.ErrorMessage; ErrorMessage;
+import mx.messaging.messages.HTTPRequestMessage; HTTPRequestMessage;
+import mx.messaging.messages.MessagePerformanceInfo; MessagePerformanceInfo;
+import mx.messaging.messages.RemotingMessage; RemotingMessage;
+import mx.messaging.messages.SOAPMessage; SOAPMessage;
+import mx.core.mx_internal;
+
+[SWF(width="750", height="700")]
+public class Bootstrap_CursorManager extends Sprite
+{
+    /**
+     *  The URL of the application SWF to be loaded
+     *  by this bootstrap loader.
+     */
+    private static const applicationURL:String = "assets/Bootstrap_CursorManager_Child.swf";
+
+	public var portNumber : Number=80;
+    /**
+     *  Constructor.
+     */
+    public function Bootstrap_CursorManager()
+    {
+        super();
+
+        if (ApplicationDomain.currentDomain.hasDefinition("mx.core::UIComponent"))
+            throw new Error("UIComponent should not be in Bootstrap.");
+
+        stage.scaleMode = StageScaleMode.NO_SCALE;
+        stage.align = StageAlign.TOP_LEFT;
+
+        if (!stage)
+            isStageRoot = false;
+
+        root.loaderInfo.addEventListener(Event.INIT, initHandler);
+        
+        if(root.loaderInfo != null && root.loaderInfo.parameters != null)
+		{
+			for (var ix:String in root.loaderInfo.parameters) 
+			{
+				if(ix == "port") 
+				{
+					portNumber = Number(root.loaderInfo.parameters[ix]);	
+				}
+			}
+		}        
+    }
+
+    /**
+     *  The Loader used to load the application SWF.
+     */
+    private var loader:Loader;
+
+    /**
+     *  @private
+     *  Whether we are the stage root or not.
+     *  We are only the stage root if we were the root
+     *  of the first SWF that got loaded by the player.
+     *  Otherwise we could be top level but not stage root
+     *  if we are loaded by some other non-Flex shell
+     *  or are sandboxed.
+     */
+    private var isStageRoot:Boolean = true;
+
+	/**
+	 *  @private
+	 *  Whether the content is loaded
+	 */
+	private var contentLoaded:Boolean;
+
+    /**
+     *  Called when BootstrapLoader.swf has been loaded.
+     *  Starts loading the application SWF
+     *  specified by applicationURL.
+     */
+    private function initHandler(event:Event):void
+    {
+        loader = new Loader();
+        addChild(loader);
+        loader.contentLoaderInfo.addEventListener(
+            Event.COMPLETE, completeHandler);
+        loader.load(new URLRequest(applicationURL+"?port=" + portNumber));
+        loader.addEventListener("mx.managers.SystemManager.isBootstrapRoot", bootstrapRootHandler);
+        loader.addEventListener("mx.managers.SystemManager.isStageRoot", stageRootHandler);
+
+        stage.addEventListener(Event.RESIZE, resizeHandler);
+    }
+
+    private function completeHandler(event:Event):void
+    {
+        contentLoaded = true;
+    }
+
+    private function bootstrapRootHandler(event:Event):void
+    {
+        // cancel event to indicate that the message was heard
+        event.preventDefault();
+    }
+
+    private function stageRootHandler(event:Event):void
+    {
+        // cancel event to indicate that the message was heard
+        if (!isStageRoot)
+            event.preventDefault();
+    }
+
+    private function resizeHandler(event:Event):void
+    {
+    
+		if (!contentLoaded)
+			return;    
+    
+        loader.width = stage.width;
+        loader.height = stage.height;
+        Object(loader.content).setActualSize(stage.width, stage.height);
+    }
+}
+
+}

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/Bootstrap_DragManager-app.xml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/Bootstrap_DragManager-app.xml?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/Bootstrap_DragManager-app.xml (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/Bootstrap_DragManager-app.xml Mon Aug  6 20:20:08 2012
@@ -0,0 +1,184 @@
+<?xml version="1.0" encoding="utf-8" standalone="no"?>
+<!--
+
+  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.
+
+-->
+<application xmlns="http://ns.adobe.com/air/application/2.0">
+
+<!-- Adobe AIR Application Descriptor File Template.
+
+	Specifies parameters for identifying, installing, and launching AIR applications.
+
+	xmlns - The Adobe AIR namespace: http://ns.adobe.com/air/application/2.0
+			The last segment of the namespace specifies the version 
+			of the AIR runtime required for this application to run.
+			
+	minimumPatchLevel - The minimum patch level of the AIR runtime required to run 
+			the application. Optional.
+-->
+
+	<!-- A universally unique application identifier. Must be unique across all AIR applications.
+	     Using a reverse DNS-style name as the id is recommended. (Eg. com.example.ExampleApplication.) Required. -->
+	<id>Bootstrap_DragManager</id>
+
+	<!-- Used as the filename for the application. Required. -->
+	<filename>Bootstrap_DragManager</filename>
+
+	<!-- The name that is displayed in the AIR application installer. 
+	     May have multiple values for each language. See samples or xsd schema file. Optional. -->
+	<name>Bootstrap_DragManager</name>
+
+	<!-- An application version designator (such as "v1", "2.5", or "Alpha 1"). Required. -->
+	<version>v1</version>
+
+	<!-- Description, displayed in the AIR application installer.
+	     May have multiple values for each language. See samples or xsd schema file. Optional. -->
+	<!-- <description></description> -->
+
+	<!-- Copyright information. Optional -->
+	<!-- <copyright></copyright> -->
+
+	<!-- Publisher ID. Used if you're updating an application created prior to 1.5.3 -->
+	<!-- <publisherID></publisherID> -->
+
+	<!-- Settings for the application's initial window. Required. -->
+	<initialWindow>
+		<!-- The main SWF or HTML file of the application. Required. -->
+		<!-- Note: In Flash Builder, the SWF reference is set automatically. -->
+		<content>Bootstrap_DragManager.swf</content>
+		
+		<!-- The title of the main window. Optional. -->
+		<!-- <title></title> -->
+
+		<!-- The type of system chrome to use (either "standard" or "none"). Optional. Default standard. -->
+		<!-- <systemChrome></systemChrome> -->
+
+		<!-- Whether the window is transparent. Only applicable when systemChrome is none. Optional. Default false. -->
+		<!-- <transparent></transparent> -->
+
+		<!-- Whether the window is initially visible. Optional. Default false. -->
+		<!-- <visible></visible> -->
+
+		<!-- Whether the user can minimize the window. Optional. Default true. -->
+		<!-- <minimizable></minimizable> -->
+
+		<!-- Whether the user can maximize the window. Optional. Default true. -->
+		<!-- <maximizable></maximizable> -->
+
+		<!-- Whether the user can resize the window. Optional. Default true. -->
+		<!-- <resizable></resizable> -->
+
+		<!-- The window's initial width in pixels. Optional. -->
+		<!-- <width></width> -->
+
+		<!-- The window's initial height in pixels. Optional. -->
+		<!-- <height></height> -->
+
+		<!-- The window's initial x position. Optional. -->
+		<!-- <x></x> -->
+
+		<!-- The window's initial y position. Optional. -->
+		<!-- <y></y> -->
+
+		<!-- The window's minimum size, specified as a width/height pair in pixels, such as "400 200". Optional. -->
+		<!-- <minSize></minSize> -->
+
+		<!-- The window's initial maximum size, specified as a width/height pair in pixels, such as "1600 1200". Optional. -->
+		<!-- <maxSize></maxSize> -->
+	</initialWindow>
+
+    <!-- We recommend omitting the supportedProfiles element, -->
+    <!-- which in turn permits your application to be deployed to all -->
+    <!-- devices supported by AIR. If you wish to restrict deployment -->
+    <!-- (i.e., to only mobile devices) then add this element and list -->
+    <!-- only the profiles which your application does support. -->
+    <!-- <supportedProfiles>desktop extendedDesktop mobileDevice extendedMobileDevice</supportedProfiles> -->
+
+	<!-- The subpath of the standard default installation location to use. Optional. -->
+	<!-- <installFolder></installFolder> -->
+
+	<!-- The subpath of the Programs menu to use. (Ignored on operating systems without a Programs menu.) Optional. -->
+	<!-- <programMenuFolder></programMenuFolder> -->
+
+	<!-- The icon the system uses for the application. For at least one resolution,
+		 specify the path to a PNG file included in the AIR package. Optional. -->
+	<!-- <icon>
+		<image16x16></image16x16>
+		<image32x32></image32x32>
+		<image48x48></image48x48>
+		<image128x128></image128x128>
+	</icon> -->
+
+	<!-- Whether the application handles the update when a user double-clicks an update version
+	of the AIR file (true), or the default AIR application installer handles the update (false).
+	Optional. Default false. -->
+	<!-- <customUpdateUI></customUpdateUI> -->
+	
+	<!-- Whether the application can be launched when the user clicks a link in a web browser.
+	Optional. Default false. -->
+	<!-- <allowBrowserInvocation></allowBrowserInvocation> -->
+
+	<!-- Listing of file types for which the application can register. Optional. -->
+	<!-- <fileTypes> -->
+
+		<!-- Defines one file type. Optional. -->
+		<!-- <fileType> -->
+
+			<!-- The name that the system displays for the registered file type. Required. -->
+			<!-- <name></name> -->
+
+			<!-- The extension to register. Required. -->
+			<!-- <extension></extension> -->
+			
+			<!-- The description of the file type. Optional. -->
+			<!-- <description></description> -->
+			
+			<!-- The MIME content type. -->
+			<!-- <contentType></contentType> -->
+			
+			<!-- The icon to display for the file type. Optional. -->
+			<!-- <icon>
+				<image16x16></image16x16>
+				<image32x32></image32x32>
+				<image48x48></image48x48>
+				<image128x128></image128x128>
+			</icon> -->
+			
+		<!-- </fileType> -->
+	<!-- </fileTypes> -->
+
+    <!-- iPhone/iPad -specific capabilities -->
+	<!-- <iPhone> -->
+
+		<!-- A list of plist key/value pairs to be added to the application Info.plist -->
+		<!-- <InfoAdditions>
+            <![CDATA[
+                <key>UIDeviceFamily</key>
+                <array>
+                    <string>1</string>
+                    <string>2</string>
+                </array>
+                <key>UIStatusBarStyle</key>
+                <string>UIStatusBarStyleBlackOpaque</string>
+                <key>UIRequiresPersistentWiFi</key>
+                <string>YES</string>
+            ]]>
+        </InfoAdditions> -->
+
+	<!-- </iPhone> -->
+
+</application>

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/Bootstrap_DragManager.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/Bootstrap_DragManager.as?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/Bootstrap_DragManager.as (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/Bootstrap_DragManager.as Mon Aug  6 20:20:08 2012
@@ -0,0 +1,156 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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
+{
+
+import flash.display.Loader;
+import flash.display.Sprite;
+import flash.display.StageAlign;
+import flash.display.StageScaleMode;
+import flash.events.Event;
+import flash.net.URLRequest;
+import flash.system.ApplicationDomain;
+
+/**
+ *  Classes used by the networking protocols go here
+ */
+import mx.messaging.config.ConfigMap; ConfigMap;
+import mx.messaging.messages.AcknowledgeMessage; AcknowledgeMessage;
+import mx.messaging.messages.AcknowledgeMessageExt; AcknowledgeMessageExt;
+import mx.messaging.messages.AsyncMessage; AsyncMessage;
+import mx.messaging.messages.AsyncMessageExt; AsyncMessageExt;
+import mx.messaging.messages.CommandMessage; CommandMessage;
+import mx.messaging.messages.CommandMessageExt; CommandMessageExt;
+import mx.messaging.messages.ErrorMessage; ErrorMessage;
+import mx.messaging.messages.HTTPRequestMessage; HTTPRequestMessage;
+import mx.messaging.messages.MessagePerformanceInfo; MessagePerformanceInfo;
+import mx.messaging.messages.RemotingMessage; RemotingMessage;
+import mx.messaging.messages.SOAPMessage; SOAPMessage;
+import mx.core.mx_internal;
+
+[SWF(width="600", height="700")]
+public class Bootstrap_DragManager extends Sprite
+{
+    /**
+     *  The URL of the application SWF to be loaded
+     *  by this bootstrap loader.
+     */
+    private static const applicationURL:String = "assets/Bootstrap_DragManager_Child.swf";
+
+	public var portNumber : Number=80;
+    /**
+     *  Constructor.
+     */
+    public function Bootstrap_DragManager()
+    {
+        super();
+
+        if (ApplicationDomain.currentDomain.hasDefinition("mx.core::UIComponent"))
+            throw new Error("UIComponent should not be in Bootstrap.");
+
+        stage.scaleMode = StageScaleMode.NO_SCALE;
+        stage.align = StageAlign.TOP_LEFT;
+
+        if (!stage)
+            isStageRoot = false;
+
+        root.loaderInfo.addEventListener(Event.INIT, initHandler);
+        
+        if(root.loaderInfo != null && root.loaderInfo.parameters != null)
+		{
+			for (var ix:String in root.loaderInfo.parameters) 
+			{
+				if(ix == "port") 
+				{
+					portNumber = Number(root.loaderInfo.parameters[ix]);	
+				}
+			}
+		}
+    }
+
+    /**
+     *  The Loader used to load the application SWF.
+     */
+    private var loader:Loader;
+
+    /**
+     *  @private
+     *  Whether we are the stage root or not.
+     *  We are only the stage root if we were the root
+     *  of the first SWF that got loaded by the player.
+     *  Otherwise we could be top level but not stage root
+     *  if we are loaded by some other non-Flex shell
+     *  or are sandboxed.
+     */
+    private var isStageRoot:Boolean = true;
+	
+	/**
+	 *  @private
+	 *  Whether the content is loaded
+	 */
+	private var contentLoaded:Boolean;
+
+    /**
+     *  Called when BootstrapLoader.swf has been loaded.
+     *  Starts loading the application SWF
+     *  specified by applicationURL.
+     */
+    private function initHandler(event:Event):void
+    {
+        loader = new Loader();
+        addChild(loader);
+        loader.contentLoaderInfo.addEventListener(
+            Event.COMPLETE, completeHandler);
+        loader.load(new URLRequest(applicationURL+"?port=" + portNumber));
+        loader.addEventListener("mx.managers.SystemManager.isBootstrapRoot", bootstrapRootHandler);
+        loader.addEventListener("mx.managers.SystemManager.isStageRoot", stageRootHandler);
+
+        stage.addEventListener(Event.RESIZE, resizeHandler);
+    }
+
+    private function completeHandler(event:Event):void
+    {
+        contentLoaded = true;
+    }
+
+    private function bootstrapRootHandler(event:Event):void
+    {
+        // cancel event to indicate that the message was heard
+        event.preventDefault();
+    }
+
+    private function stageRootHandler(event:Event):void
+    {
+        // cancel event to indicate that the message was heard
+        if (!isStageRoot)
+            event.preventDefault();
+    }
+
+    private function resizeHandler(event:Event):void
+    {
+		if (!contentLoaded)
+			return;
+		
+        loader.width = stage.width;
+        loader.height = stage.height;
+        Object(loader.content).setActualSize(stage.width, stage.height);
+    }
+}
+
+}

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/Bootstrap_FocusManager_Nested.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/Bootstrap_FocusManager_Nested.as?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/Bootstrap_FocusManager_Nested.as (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/Bootstrap_FocusManager_Nested.as Mon Aug  6 20:20:08 2012
@@ -0,0 +1,157 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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
+{
+
+import flash.display.Loader;
+import flash.display.Sprite;
+import flash.display.StageAlign;
+import flash.display.StageScaleMode;
+import flash.events.Event;
+import flash.net.URLRequest;
+import flash.system.ApplicationDomain;
+
+/**
+ *  Classes used by the networking protocols go here
+ */
+import mx.messaging.config.ConfigMap; ConfigMap;
+import mx.messaging.messages.AcknowledgeMessage; AcknowledgeMessage;
+import mx.messaging.messages.AcknowledgeMessageExt; AcknowledgeMessageExt;
+import mx.messaging.messages.AsyncMessage; AsyncMessage;
+import mx.messaging.messages.AsyncMessageExt; AsyncMessageExt;
+import mx.messaging.messages.CommandMessage; CommandMessage;
+import mx.messaging.messages.CommandMessageExt; CommandMessageExt;
+import mx.messaging.messages.ErrorMessage; ErrorMessage;
+import mx.messaging.messages.HTTPRequestMessage; HTTPRequestMessage;
+import mx.messaging.messages.MessagePerformanceInfo; MessagePerformanceInfo;
+import mx.messaging.messages.RemotingMessage; RemotingMessage;
+import mx.messaging.messages.SOAPMessage; SOAPMessage;
+import mx.core.mx_internal;
+
+[SWF(width="600", height="700")]
+public class Bootstrap_FocusManager_Nested extends Sprite
+{
+    /**
+     *  The URL of the application SWF to be loaded
+     *  by this bootstrap loader.
+     */
+    private static const applicationURL:String = "assets/Bootstrap_FocusManager_Nested_Child.swf";
+
+	public var portNumber : Number=80;
+    /**
+     *  Constructor.
+     */
+    public function Bootstrap_FocusManager_Nested()
+    {
+        super();
+
+        if (ApplicationDomain.currentDomain.hasDefinition("mx.core::UIComponent"))
+            throw new Error("UIComponent should not be in Bootstrap.");
+
+        stage.scaleMode = StageScaleMode.NO_SCALE;
+        stage.align = StageAlign.TOP_LEFT;
+
+        if (!stage)
+            isStageRoot = false;
+
+        root.loaderInfo.addEventListener(Event.INIT, initHandler);              
+        
+        if(root.loaderInfo != null && root.loaderInfo.parameters != null)
+		{
+			for (var ix:String in root.loaderInfo.parameters) 
+			{
+				if(ix == "port") 
+				{
+					portNumber = Number(root.loaderInfo.parameters[ix]);	
+				}
+			}
+		}        
+    }
+
+    /**
+     *  The Loader used to load the application SWF.
+     */
+    private var loader:Loader;
+
+    /**
+     *  @private
+     *  Whether we are the stage root or not.
+     *  We are only the stage root if we were the root
+     *  of the first SWF that got loaded by the player.
+     *  Otherwise we could be top level but not stage root
+     *  if we are loaded by some other non-Flex shell
+     *  or are sandboxed.
+     */
+    private var isStageRoot:Boolean = true;
+
+
+	/**
+	 *  @private
+	 *  Whether the content is loaded
+	 */
+	private var contentLoaded:Boolean;
+	
+    /**
+     *  Called when BootstrapLoader.swf has been loaded.
+     *  Starts loading the application SWF
+     *  specified by applicationURL.
+     */
+    private function initHandler(event:Event):void
+    {
+        loader = new Loader();
+        addChild(loader);
+        loader.contentLoaderInfo.addEventListener(
+            Event.COMPLETE, completeHandler);
+        loader.load(new URLRequest(applicationURL+"?port=" + portNumber));
+        loader.addEventListener("mx.managers.SystemManager.isBootstrapRoot", bootstrapRootHandler);
+        loader.addEventListener("mx.managers.SystemManager.isStageRoot", stageRootHandler);
+
+        stage.addEventListener(Event.RESIZE, resizeHandler);
+    }
+
+    private function completeHandler(event:Event):void
+    {
+     	contentLoaded = true;
+    }
+
+    private function bootstrapRootHandler(event:Event):void
+    {
+        // cancel event to indicate that the message was heard
+        event.preventDefault();
+    }
+
+    private function stageRootHandler(event:Event):void
+    {
+        // cancel event to indicate that the message was heard
+        if (!isStageRoot)
+            event.preventDefault();
+    }
+
+    private function resizeHandler(event:Event):void
+    {
+		if (!contentLoaded)
+			return;    
+			
+        loader.width = stage.width;
+        loader.height = stage.height;
+        Object(loader.content).setActualSize(stage.width, stage.height);
+    }
+}
+
+}

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/Bootstrap_Managers.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/Bootstrap_Managers.as?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/Bootstrap_Managers.as (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/Bootstrap_Managers.as Mon Aug  6 20:20:08 2012
@@ -0,0 +1,156 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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
+{
+
+import flash.display.Loader;
+import flash.display.Sprite;
+import flash.display.StageAlign;
+import flash.display.StageScaleMode;
+import flash.events.Event;
+import flash.net.URLRequest;
+import flash.system.ApplicationDomain;
+
+/**
+ *  Classes used by the networking protocols go here
+ */
+import mx.messaging.config.ConfigMap; ConfigMap;
+import mx.messaging.messages.AcknowledgeMessage; AcknowledgeMessage;
+import mx.messaging.messages.AcknowledgeMessageExt; AcknowledgeMessageExt;
+import mx.messaging.messages.AsyncMessage; AsyncMessage;
+import mx.messaging.messages.AsyncMessageExt; AsyncMessageExt;
+import mx.messaging.messages.CommandMessage; CommandMessage;
+import mx.messaging.messages.CommandMessageExt; CommandMessageExt;
+import mx.messaging.messages.ErrorMessage; ErrorMessage;
+import mx.messaging.messages.HTTPRequestMessage; HTTPRequestMessage;
+import mx.messaging.messages.MessagePerformanceInfo; MessagePerformanceInfo;
+import mx.messaging.messages.RemotingMessage; RemotingMessage;
+import mx.messaging.messages.SOAPMessage; SOAPMessage;
+import mx.core.mx_internal;
+
+[SWF(width="600", height="700")]
+public class Bootstrap_Managers extends Sprite
+{
+    /**
+     *  The URL of the application SWF to be loaded
+     *  by this bootstrap loader.
+     */
+    private static const applicationURL:String = "assets/Bootstrap_Managers_Child.swf";
+
+	public var portNumber : Number=80;
+    /**
+     *  Constructor.
+     */
+    public function Bootstrap_Managers()
+    {
+        super();
+
+        if (ApplicationDomain.currentDomain.hasDefinition("mx.core::UIComponent"))
+            throw new Error("UIComponent should not be in Bootstrap.");
+
+        stage.scaleMode = StageScaleMode.NO_SCALE;
+        stage.align = StageAlign.TOP_LEFT;
+
+        if (!stage)
+            isStageRoot = false;
+
+        root.loaderInfo.addEventListener(Event.INIT, initHandler);
+        
+        if(root.loaderInfo != null && root.loaderInfo.parameters != null)
+		{
+			for (var ix:String in root.loaderInfo.parameters) 
+			{
+				if(ix == "port") 
+				{
+					portNumber = Number(root.loaderInfo.parameters[ix]);	
+				}
+			}
+		}        
+    }
+
+    /**
+     *  The Loader used to load the application SWF.
+     */
+    private var loader:Loader;
+
+    /**
+     *  @private
+     *  Whether we are the stage root or not.
+     *  We are only the stage root if we were the root
+     *  of the first SWF that got loaded by the player.
+     *  Otherwise we could be top level but not stage root
+     *  if we are loaded by some other non-Flex shell
+     *  or are sandboxed.
+     */
+    private var isStageRoot:Boolean = true;
+
+	/**
+	 *  @private
+	 *  Whether the content is loaded
+	 */
+	private var contentLoaded:Boolean;
+	
+    /**
+     *  Called when BootstrapLoader.swf has been loaded.
+     *  Starts loading the application SWF
+     *  specified by applicationURL.
+     */
+    private function initHandler(event:Event):void
+    {
+        loader = new Loader();
+        addChild(loader);
+        loader.contentLoaderInfo.addEventListener(
+            Event.COMPLETE, completeHandler);
+        loader.load(new URLRequest(applicationURL+"?port=" + portNumber));
+        loader.addEventListener("mx.managers.SystemManager.isBootstrapRoot", bootstrapRootHandler);
+        loader.addEventListener("mx.managers.SystemManager.isStageRoot", stageRootHandler);
+
+        stage.addEventListener(Event.RESIZE, resizeHandler);
+    }
+
+    private function completeHandler(event:Event):void
+    {
+        contentLoaded = true;
+    }
+
+    private function bootstrapRootHandler(event:Event):void
+    {
+        // cancel event to indicate that the message was heard
+        event.preventDefault();
+    }
+
+    private function stageRootHandler(event:Event):void
+    {
+        // cancel event to indicate that the message was heard
+        if (!isStageRoot)
+            event.preventDefault();
+    }
+
+    private function resizeHandler(event:Event):void
+    {
+		if (!contentLoaded)
+			return;    
+			
+        loader.width = stage.width;
+        loader.height = stage.height;
+        Object(loader.content).setActualSize(stage.width, stage.height);
+    }
+}
+
+}



Mime
View raw message