incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r1369970 [4/16] - in /incubator/flex/trunk/mustella/tests/Managers: ./ CursorManager/ CursorManager/Methods/ CursorManager/Props/ CursorManager/SWFs/ CursorManager/SWFs/Assets/ DragManager/ DragManager/Events/ DragManager/Halo/ DragManager/...
Date Mon, 06 Aug 2012 20:17:23 GMT
Added: incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/DragManager_Squares.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/DragManager_Squares.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/DragManager_Squares.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/DragManager_Squares.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,178 @@
+<?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="Managers/DragManager/Halo/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="Drag_Custom_Squares.mxml">
+
+    <mx:Script>
+	<![CDATA[
+
+       import mx.events.DragEvent;
+       import mx.controls.List;
+
+       public static function init(o:DisplayObject):void
+		{
+
+		}
+
+        public var accepted:Array;
+		public function addListenersToList(myList:List, acceptedValues:Array): void
+		{
+		    myList.addEventListener('dragEnter', callDragEnter);
+		    myList.addEventListener('dragOver', application.doDragOver);
+		    myList.addEventListener('dragDrop', callDragDrop);
+		    accepted = acceptedValues;
+		}
+
+		public function callDragEnter(event:DragEvent): void
+		{
+            if(accepted.length == 1)
+            {
+		        application.doDragEnter(event, accepted[0]);
+		    }
+		    else
+		    {
+		        application.doDragEnter(event, 'any');
+		    }
+		}
+
+		public function callDragDrop(event:DragEvent): void
+		{
+		    application.doDragDrop(event, event.target, accepted);
+		}
+
+	]]>
+	</mx:Script>
+
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>
+
+	<testCases>
+     <TestCase testID="DragManager_dragCanvasRed" description="Test that a custom drag object that is a Canvas" keywords="[DragManager, Custom, List]">
+			 <body>
+			    <DispatchMouseEvent target="canvas1" type="mouseOver" localX="5" localY="5"  />
+			    <DispatchMouseEvent target="canvas1" type="mouseDown" localX="5" localY="5" buttonDown="true" />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="215" localY="110" buttonDown="true"
+					waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move" />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="215" localY="135" buttonDown="true" 	waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move" />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="215" localY="170" buttonDown="true" 	waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="215" localY="200" buttonDown="true" 	waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="215" localY="220" buttonDown="true" 	waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+	            <DispatchMouseEvent target="stage" type="mouseUp" localX="215" localY="220" waitTarget="firstList" waitEvent="dragDrop" />
+	            <AssertPropertyValue propertyName="length" value="1" target="firstList.dataProvider" />
+	        </body>
+		</TestCase>
+     <TestCase testID="DragManager_dragCanvasRedReject" description="Test that a custom drag object that is a Canvas" keywords="[DragManager, Custom, List]">
+			 <setup>
+			     <ResetComponent target="firstList" className="mx.controls.List" waitTarget="firstList" waitEvent="updateComplete" />
+			     <SetProperty target="firstList" propertyName="dataProvider" valueExpression="value=[]" />
+			     <RunCode code="addListenersToList(application.firstList, ['red'])" />
+			     <SetProperty target="firstList" propertyName="dropEnabled" value="true" />
+				 <SetProperty target="firstList" propertyName="width" value="250" waitEvent="updateComplete" waitTarget="firstList"/>
+			 </setup>
+			 <body>
+			    <DispatchMouseEvent target="canvas6" type="mouseOver" localX="5" localY="5"  />
+			    <DispatchMouseEvent target="canvas6" type="mouseDown" localX="5" localY="5" buttonDown="true" />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="215" localY="110" buttonDown="true" />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="215" localY="135" buttonDown="true" />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="215" localY="170" buttonDown="true" />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="215" localY="200" buttonDown="true" />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="215" localY="220" buttonDown="true" />
+	    	    <DispatchMouseEvent target="stage" type="mouseUp" localX="215" localY="220"  />
+	            <WaitForEffectsToEnd />
+	            <AssertPropertyValue propertyName="length" value="0" target="firstList.dataProvider" />
+	        </body>
+		</TestCase>
+     <TestCase testID="DragManager_dragCanvasBlue" description="Test that a custom drag object that is a Canvas" keywords="[DragManager, Custom, List]">
+			<body>
+			    <DispatchMouseEvent target="canvas6" type="mouseOver" localX="5" localY="5"  />
+			    <DispatchMouseEvent target="canvas6" type="mouseDown" localX="5" localY="5" buttonDown="true" />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="215" localY="110" buttonDown="true" waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"  />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="215" localY="135" buttonDown="true" />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="215" localY="170" buttonDown="true" waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"  />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="215" localY="200" buttonDown="true" />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="215" localY="230" buttonDown="true" />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="215" localY="260" buttonDown="true" />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="215" localY="320" buttonDown="true" />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="215" localY="350" buttonDown="true" />
+	    	    <DispatchMouseEvent target="stage" type="mouseMove" localX="215" localY="390" buttonDown="true" />
+	    	    <DispatchMouseEvent target="stage" type="mouseUp" localX="215" localY="390"  waitEvent="dragDrop" waitTarget="secondList" />
+	            <AssertPropertyValue propertyName="length" value="0" target="firstList.dataProvider" />
+	        </body>
+		</TestCase>
+     <TestCase testID="DragManager_dragCanvasBlue_afterScrolling" description="Test dropTargets after Scrolling" keywords="[DragManager, dropTarget, Scrolling, List]">
+			 <setup>
+			     <ResetComponent target="secondList" className="mx.controls.List" waitTarget="secondList" waitEvent="updateComplete" />
+			     <SetProperty target="secondList" propertyName="dataProvider" valueExpression="value=[]" />
+			     <RunCode code="addListenersToList(application.secondList, ['blue'])" />
+			     <SetProperty target="secondList" propertyName="dropEnabled" value="true" />
+				 <SetProperty target="secondList" propertyName="width" value="250" waitEvent="updateComplete" waitTarget="secondList"/>
+			 </setup>
+			 <body>
+			    <DispatchMouseClickEvent target="rawChildren.getChildAt(2).getChildAt(3)" localX="5" localY="5" waitTarget="" waitEvent="scroll" />
+			    <DispatchMouseClickEvent target="rawChildren.getChildAt(2).getChildAt(3)" localX="5" localY="5" waitTarget="" waitEvent="scroll" />
+			    <DispatchMouseClickEvent target="rawChildren.getChildAt(2).getChildAt(3)" localX="5" localY="5" waitTarget="" waitEvent="scroll" />
+			    <DispatchMouseEvent target="canvas7" type="mouseOver" localX="5" localY="5"  />
+			    <DispatchMouseEvent target="canvas7" type="mouseDown" localX="5" localY="5" buttonDown="true" />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="215" localY="110" buttonDown="true" waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"  />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="215" localY="135" buttonDown="true" />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="215" localY="170" buttonDown="true" waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"  />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="215" localY="200" buttonDown="true" />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="215" localY="230" buttonDown="true" />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="215" localY="260" buttonDown="true" waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"  />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="215" localY="320" buttonDown="true" />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="215" localY="350" buttonDown="true" />
+	    	    <DispatchMouseEvent target="stage" type="mouseMove" localX="215" localY="366" buttonDown="true" />
+	    	    <DispatchMouseEvent target="stage" type="mouseUp" localX="215" localY="366"  waitEvent="dragDrop" waitTarget="secondList" />
+	            <AssertPropertyValue propertyName="length" value="1" target="secondList.dataProvider" />
+	        </body>
+		</TestCase>
+     <TestCase testID="DragManager_dragCanvasGreen_afterScrolling" description="Test dropTargets after Scrolling" keywords="[DragManager, dropTarget, Scrolling, List]">
+			 <setup>
+			    <DispatchMouseClickEvent target="rawChildren.getChildAt(2).getChildAt(1)" localX="5" localY="5" waitTarget="" waitEvent="scroll" />
+				<DispatchMouseClickEvent target="rawChildren.getChildAt(2).getChildAt(1)" localX="5" localY="5" waitTarget="" waitEvent="scroll" />
+				<DispatchMouseClickEvent target="rawChildren.getChildAt(2).getChildAt(1)" localX="5" localY="5" waitTarget="" waitEvent="scroll" />
+			</setup>
+			 <body>
+			    <DispatchMouseClickEvent target="rawChildren.getChildAt(2).getChildAt(3)" localX="5" localY="5" waitTarget="" waitEvent="scroll" />
+			    <DispatchMouseClickEvent target="rawChildren.getChildAt(2).getChildAt(3)" localX="5" localY="5" waitTarget="" waitEvent="scroll" />
+			    <DispatchMouseClickEvent target="rawChildren.getChildAt(2).getChildAt(3)" localX="5" localY="5" waitTarget="" waitEvent="scroll" />
+			    <DispatchMouseClickEvent target="rawChildren.getChildAt(2).getChildAt(3)" localX="5" localY="5" waitTarget="" waitEvent="scroll" />
+			    <DispatchMouseEvent target="canvas11" type="mouseOver" localX="5" localY="5"  />
+			    <DispatchMouseEvent target="canvas11" type="mouseDown" localX="5" localY="5" buttonDown="true" />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="215" localY="110" buttonDown="true" waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"  />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="215" localY="135" buttonDown="true" />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="215" localY="170" buttonDown="true" waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"  />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="215" localY="200" buttonDown="true" />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="215" localY="230" buttonDown="true" />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="215" localY="260" buttonDown="true" waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"  />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="215" localY="330" buttonDown="true" />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="215" localY="370" buttonDown="true" />
+	    	    <DispatchMouseEvent target="stage" type="mouseMove" localX="215" localY="420" buttonDown="true" waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"  />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="215" localY="470" buttonDown="true" />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="215" localY="510" buttonDown="true" />
+	    	    <DispatchMouseEvent target="stage" type="mouseMove" localX="215" localY="550" buttonDown="true" />
+	    	    <DispatchMouseEvent target="stage" type="mouseUp" localX="215" localY="550"  waitEvent="dragDrop" waitTarget="thirdList" />
+	            <AssertPropertyValue propertyName="length" value="1" target="thirdList.dataProvider" />
+	        </body>
+		</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/DragManager_TileListToTree.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/DragManager_TileListToTree.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/DragManager_TileListToTree.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/DragManager_TileListToTree.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,62 @@
+<?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="Managers/DragManager/Halo/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="DragManager_Tree.mxml">
+
+    <mx:Script>
+    <![CDATA[
+       import data.ListDataAS;
+       import comps.DragList;
+       import comps.DragDataGrid;
+        import comps.CustomComp;
+       import mx.collections.XMLListCollection;
+
+       public static function init(o:DisplayObject):void
+        {
+
+        }
+
+    ]]>
+    </mx:Script>
+
+    <mx:Metadata>
+    <![CDATA[
+        [Mixin]
+    ]]>
+    </mx:Metadata>
+
+    <testCases>
+        <!--- drag from Tree to TileList -->
+        <TestCase testID="DragManager_TileList2Tree" description="Test that a drag from Tree to TileList works." keywords="[DragManager, TileList, Tree]">
+            <body>
+                <DispatchMouseEvent target="destTree.mx_internal:rendererArray.1.0" type="mouseOver" localX="15" localY="15"  />
+                <DispatchMouseEvent target="destTree.mx_internal:rendererArray.1.0" type="mouseDown" localX="15" localY="15" buttonDown="true" />
+                <DispatchMouseEvent target="stage" type="mouseMove" localX="214" localY="360" buttonDown="true"
+                    waitTarget="mx.managers::DragManager.mx_internal:dragProxy" />
+                <DispatchMouseEvent target="stage" type="mouseMove" localX="214" localY="345" buttonDown="true"     waitTarget="mx.managers::DragManager.mx_internal:dragProxy" />
+                <DispatchMouseEvent target="stage" type="mouseMove" localX="214" localY="325" buttonDown="true"     waitTarget="mx.managers::DragManager.mx_internal:dragProxy" />
+                <DispatchMouseEvent target="stage" type="mouseMove" localX="214" localY="315" buttonDown="true"  waitTarget="mx.managers::DragManager.mx_internal:dragProxy" />
+                <DispatchMouseEvent target="stage" type="mouseMove" localX="214" localY="275" buttonDown="true"  waitTarget="mx.managers::DragManager.mx_internal:dragProxy" />
+                <DispatchMouseEvent target="stage" type="mouseUp" localX="214" localY="275" waitTarget="srcTileList" waitEvent="dragDrop" />
+                <WaitForEffectsToEnd />
+                <AssertPropertyValue propertyName="length" target="srcTileList.dataProvider" value="2" />
+            </body>
+        </TestCase>
+    </testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/DragManager_TreeTests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/DragManager_TreeTests.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/DragManager_TreeTests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/DragManager_TreeTests.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,208 @@
+<?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="Managers/DragManager/Halo/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="DragManager_Tree.mxml">
+
+    <mx:Script>
+	<![CDATA[
+
+    import mx.collections.XMLListCollection;
+    import data.TreeData;
+    import data.TreeData2;
+
+       public static function init(o:DisplayObject):void
+		{
+
+		}
+
+
+    public var XLCAS:XMLListCollection;
+    public var genericObject:TreeData2;
+
+    public function getDataXML():void {
+        var newData:TreeData = new TreeData();
+	    XLCAS = new XMLListCollection(newData.myData);
+	    application.firstTree.dataProvider = XLCAS;
+	    application.firstTree.labelField = "@label";
+	    application.firstTree.showRoot = false;
+    }
+
+    public function getDataAS():void {
+	    var newData:TreeData2 = new TreeData2();
+		application.firstTree.dataProvider = newData.myData;
+		application.firstTree.labelField = "fileName";
+		application.firstTree.showRoot = false;
+    }
+
+	]]>
+	</mx:Script>
+
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>
+
+
+	<testCases>
+	<!-- Drag Tree to Tree-->
+        <TestCase testID="DragManager_TreeToTree_singleMove" description="Test that you can move Tree items from one to the other." keywords="[DragManager, Tree]">
+			<setup>
+			   <ResetComponent target="firstTree" className="mx.controls.Tree" waitTarget="firstTree" waitEvent="updateComplete" />
+			   <SetProperty propertyName="dragEnabled" value="true" target="firstTree" />
+			   <SetProperty propertyName="width" value="250" target="firstTree" />
+			   <RunCode code="getDataXML()" waitTarget="firstTree" waitEvent="updateComplete" />
+			   <SetProperty propertyName="dragMoveEnabled" value="true" target="firstTree" />
+			   <ResetComponent target="secondTree" className="mx.controls.Tree" waitTarget="secondTree" waitEvent="updateComplete" />
+			   <SetProperty propertyName="dropEnabled" value="true" target="secondTree" />
+			   <SetProperty propertyName="width" value="250" target="secondTree" />
+			   <SetProperty propertyName="labelField" value="@label" target="secondTree" />
+			 </setup>
+			 <body>
+			    <DispatchMouseClickEvent target="firstTree.mx_internal:rendererArray.0.0" localX="5" localY="5" waitEvent="itemOpen" waitTarget="firstTree" />
+			    <DispatchMouseEvent target="firstTree.mx_internal:rendererArray.1.0.getChildAt(0)" type="mouseOver" localX="10" localY="8" buttonDown="true" />
+			    <DispatchMouseEvent target="firstTree.mx_internal:rendererArray.1.0.getChildAt(0)" type="mouseDown" localX="10" localY="8" buttonDown="true" />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="100" localY="75" buttonDown="true"
+					waitTarget="mx.managers::DragManager.mx_internal:dragProxy" />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="200" localY="75" buttonDown="true" 	waitTarget="mx.managers::DragManager.mx_internal:dragProxy" />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="260" localY="75" buttonDown="true" 	waitTarget="mx.managers::DragManager.mx_internal:dragProxy" />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="350" localY="75" buttonDown="true" 	waitTarget="mx.managers::DragManager.mx_internal:dragProxy" />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="480" localY="85" buttonDown="true" 	waitTarget="mx.managers::DragManager.mx_internal:dragProxy" />
+	            <DispatchMouseEvent target="stage" type="mouseUp" localX="480" localY="85" waitTarget="secondTree" waitEvent="dragDrop" />
+	            <AssertPropertyValue propertyName="label" target="secondTree.mx_internal:rendererArray.0.0.listData" value="Inbox" />
+	            <AssertPropertyValue propertyName="label" target="firstTree.mx_internal:rendererArray.1.0.listData" value="Drafts" />
+	         </body>
+		</TestCase>
+        <TestCase testID="DragManager_TreeToTree_multipleMove" description="Test that you can move multiple items of a Tree by drag and drop." keywords="[DragManager, Tree, multi-selection]">
+			<setup>
+			   <ResetComponent target="firstTree" className="mx.controls.Tree" waitTarget="firstTree" waitEvent="updateComplete" />
+			   <SetProperty propertyName="dragEnabled" value="true" target="firstTree" />
+			   <SetProperty propertyName="width" value="250" target="firstTree" />
+			   <SetProperty propertyName="allowMultipleSelection" value="tree" target="firstTree" />
+			   <RunCode code="getDataXML()" waitTarget="firstTree" waitEvent="updateComplete" />
+			   <SetProperty propertyName="dragMoveEnabled" value="true" target="firstTree" />
+			   <ResetComponent target="secondTree" className="mx.controls.Tree" waitTarget="secondTree" waitEvent="updateComplete" />
+			   <SetProperty propertyName="dropEnabled" value="true" target="secondTree" />
+			   <SetProperty propertyName="width" value="250" target="secondTree" />
+			   <SetProperty propertyName="labelField" value="@label" target="secondTree" />
+			 </setup>
+			 <body>
+			    <DispatchMouseClickEvent target="firstTree.mx_internal:rendererArray.1.0" localX="5" localY="5" waitEvent="itemOpen" waitTarget="firstTree" />
+                <DispatchMouseClickEvent target="firstTree.mx_internal:rendererArray.2.0.getChildAt(0)" localX="4" localY="5" waitEvent="itemClick" waitTarget="firstTree" ctrlKey="true" />
+			    <DispatchMouseClickEvent target="firstTree.mx_internal:rendererArray.3.0.getChildAt(0)" localX="4" localY="5" waitEvent="itemClick" waitTarget="firstTree" ctrlKey="true" />
+			    <DispatchMouseEvent target="firstTree.mx_internal:rendererArray.2.0.getChildAt(0)" type="mouseOver" localX="5" localY="5"  />
+			    <DispatchMouseEvent target="firstTree.mx_internal:rendererArray.2.0.getChildAt(0)" type="mouseDown" localX="5" localY="5" buttonDown="true" />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="100" localY="75" buttonDown="true"
+					waitTarget="mx.managers::DragManager.mx_internal:dragProxy" />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="200" localY="75" buttonDown="true" 	waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="260" localY="75" buttonDown="true" 	 />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="350" localY="75" buttonDown="true" 	waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="480" localY="75" buttonDown="true" 	/>
+	            <DispatchMouseEvent target="stage" type="mouseUp" localX="480" localY="75" waitEvent="dragDrop" waitTarget="secondTree" />
+				<AssertPropertyValue propertyName="length" target="secondTree.dataProvider" value="2" />
+	            <AssertPropertyValue propertyName="label" target="firstTree.mx_internal:rendererArray.2.0.listData" value="Juice" />
+	         </body>
+		</TestCase>
+
+		<TestCase testID="DragManager_TreeToTree_dragEnabledFalse" description="Test that you cannot drag when dragEnabled=false." keywords="[DragManager, Tree]">
+			<setup>
+			   <ResetComponent target="firstTree" className="mx.controls.Tree" waitTarget="firstTree" waitEvent="updateComplete" />
+			   <SetProperty propertyName="width" value="250" target="firstTree" />
+			   <RunCode code="getDataXML()" waitTarget="firstTree" waitEvent="updateComplete" />
+			   <ResetComponent target="secondTree" className="mx.controls.Tree" waitTarget="secondTree" waitEvent="updateComplete" />
+			   <SetProperty propertyName="dropEnabled" value="true" target="secondTree" />
+			   <SetProperty propertyName="dataProvider" valueExpression="value=[];" target="secondTree" />
+			   <SetProperty propertyName="width" value="250" target="secondTree" />
+			   <SetProperty propertyName="labelField" value="@label" target="secondTree" />
+			 </setup>
+			 <body>
+			    <DispatchMouseClickEvent target="firstTree.mx_internal:rendererArray.0.0" localX="5" localY="5"  />
+			    <WaitForEffectsToEnd/>
+			    <DispatchMouseEvent target="firstTree.mx_internal:rendererArray.1.0.getChildAt(0)" type="mouseOver" localX="10" localY="8" buttonDown="true" />
+			    <DispatchMouseEvent target="firstTree.mx_internal:rendererArray.1.0.getChildAt(0)" type="mouseDown" localX="10" localY="8" buttonDown="true" />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="100" localY="75" buttonDown="true"
+					waitTarget="mx.managers::DragManager.mx_internal:dragProxy" />
+			    <WaitForEffectsToEnd/>
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="200" localY="75" buttonDown="true" 	waitTarget="mx.managers::DragManager.mx_internal:dragProxy" />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="260" localY="75" buttonDown="true" 	waitTarget="mx.managers::DragManager.mx_internal:dragProxy" />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="350" localY="75" buttonDown="true" 	waitTarget="mx.managers::DragManager.mx_internal:dragProxy" />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="480" localY="85" buttonDown="true" 	waitTarget="mx.managers::DragManager.mx_internal:dragProxy" />
+	            <DispatchMouseEvent target="stage" type="mouseUp" localX="480" localY="85" />
+	            <WaitForEffectsToEnd/>
+	            <AssertPropertyValue propertyName="length" target="secondTree.dataProvider" value="0" />
+	            <AssertPropertyValue propertyName="label" target="firstTree.mx_internal:rendererArray.1.0.listData" value="Inbox" />
+	         </body>
+		</TestCase>
+		<TestCase testID="DragManager_TreeToTree_dragEnabledTrue" description="Test that you can drag when dragEnabled=true." keywords="[DragManager, Tree, Drop]">
+			<setup>
+			   <ResetComponent target="firstTree" className="mx.controls.Tree" waitTarget="firstTree" waitEvent="updateComplete" />
+			   <SetProperty propertyName="width" value="250" target="firstTree" />
+			   <RunCode code="getDataXML()" waitTarget="firstTree" waitEvent="updateComplete" />
+			   <ResetComponent target="secondTree" className="mx.controls.Tree" waitTarget="secondTree" waitEvent="updateComplete" />
+			   <SetProperty propertyName="dragEnabled" value="true" target="firstTree" />
+			   <SetProperty propertyName="dropEnabled" value="true" target="secondTree" />
+			   <SetProperty propertyName="dataProvider" valueExpression="value=[];" target="secondTree" />
+			   <SetProperty propertyName="width" value="250" target="secondTree" />
+			   <SetProperty propertyName="labelField" value="@label" target="secondTree" />
+			 </setup>
+			 <body>
+			    <DispatchMouseClickEvent target="firstTree.mx_internal:rendererArray.0.0" localX="5" localY="5"  />
+			    <WaitForEffectsToEnd/>
+			    <DispatchMouseEvent target="firstTree.mx_internal:rendererArray.1.0.getChildAt(0)" type="mouseOver" localX="10" localY="8" buttonDown="true" />
+			    <DispatchMouseEvent target="firstTree.mx_internal:rendererArray.1.0.getChildAt(0)" type="mouseDown" localX="10" localY="8" buttonDown="true" />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="100" localY="75" buttonDown="true"
+					waitTarget="mx.managers::DragManager.mx_internal:dragProxy" />
+			    <WaitForEffectsToEnd/>
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="200" localY="75" buttonDown="true" 	waitTarget="mx.managers::DragManager.mx_internal:dragProxy" />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="260" localY="75" buttonDown="true" 	waitTarget="mx.managers::DragManager.mx_internal:dragProxy" />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="350" localY="75" buttonDown="true" 	waitTarget="mx.managers::DragManager.mx_internal:dragProxy" />
+			    <DispatchMouseEvent target="stage" type="mouseMove" localX="480" localY="85" buttonDown="true" 	waitTarget="mx.managers::DragManager.mx_internal:dragProxy" />
+			    <DispatchMouseEvent target="stage" type="mouseUp" localX="480" localY="85" />
+			    <WaitForEffectsToEnd/>
+			    <AssertPropertyValue propertyName="length" target="secondTree.dataProvider" value="1" />
+			    <AssertPropertyValue propertyName="label" target="secondTree.mx_internal:rendererArray.0.0.listData" value="Inbox" />
+			  </body>
+		</TestCase>
+		<TestCase testID="DragManager_TreeToTree_dataProviderIsObject" description="Ensure that Drag and Drop works for Trees with Object dataProviders"
+		    keywords="[Tree, Drag and Drop, dataProvider]" >
+               <setup>
+               	   <ResetComponent target="firstTree" className="mx.controls.Tree" waitTarget="firstTree" waitEvent="updateComplete" />
+			   </setup>
+			   <body>
+			       <RunCode code="getDataAS();" waitTarget="firstTree" waitEvent="updateComplete" />
+			       <SetProperty target="firstTree" propertyName="dragEnabled" value="true" />
+			       <SetProperty target="firstTree" propertyName="dragMoveEnabled" value="true" />
+			       <SetProperty target="firstTree" propertyName="dropEnabled" value="true" />
+			       <DispatchMouseClickEvent target="firstTree.mx_internal:rendererArray.0.0" localX="5" localY="5" />
+			       <WaitForEffectsToEnd/>
+			       <DispatchMouseEvent target="firstTree.mx_internal:rendererArray.1.0.getChildAt(0)" type="mouseOver" localX="10" localY="8" buttonDown="true" />
+			       <DispatchMouseEvent target="firstTree.mx_internal:rendererArray.1.0.getChildAt(0)" type="mouseDown" localX="10" localY="8" buttonDown="true" />
+			       <DispatchMouseEvent target="stage" type="mouseMove" localX="100" localY="85" buttonDown="true"
+					    waitTarget="mx.managers::DragManager.mx_internal:dragProxy" />
+			       <DispatchMouseEvent target="stage" type="mouseMove" localX="110" localY="95" buttonDown="true" 	waitTarget="mx.managers::DragManager.mx_internal:dragProxy" />
+			       <DispatchMouseEvent target="stage" type="mouseMove" localX="115" localY="105" buttonDown="true" 	waitTarget="mx.managers::DragManager.mx_internal:dragProxy" />
+			       <DispatchMouseEvent target="stage" type="mouseMove" localX="115" localY="115" buttonDown="true" 	waitTarget="mx.managers::DragManager.mx_internal:dragProxy" />
+			       <DispatchMouseEvent target="stage" type="mouseMove" localX="115" localY="125" buttonDown="true" 	waitTarget="mx.managers::DragManager.mx_internal:dragProxy" />
+	               <DispatchMouseEvent target="stage" type="mouseUp" localX="115" localY="125" waitEvent="dragDrop" waitTarget="firstTree" />
+			       <AssertPropertyValue propertyName="label" target="firstTree.mx_internal:rendererArray.3.0.listData" value="StringUtil.as" />
+
+			   </body>
+		</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/baselines/DragManager_Mirroring_copyCursor.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/baselines/DragManager_Mirroring_copyCursor.png?rev=1369970&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/baselines/DragManager_Mirroring_copyCursor.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/baselines/DragManager_Mirroring_moveCursor.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/baselines/DragManager_Mirroring_moveCursor.png?rev=1369970&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/baselines/DragManager_Mirroring_moveCursor.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/baselines/DragManager_Mirroring_rejectCursor.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/baselines/DragManager_Mirroring_rejectCursor.png?rev=1369970&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/baselines/DragManager_Mirroring_rejectCursor.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/baselines/copyCursor_custom.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/baselines/copyCursor_custom.png?rev=1369970&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/baselines/copyCursor_custom.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/baselines/customDragProxy.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/baselines/customDragProxy.png?rev=1369970&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/baselines/customDragProxy.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/baselines/customDropIndicatorSkin.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/baselines/customDropIndicatorSkin.png?rev=1369970&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/baselines/customDropIndicatorSkin.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/baselines/moveCursor_custom.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/baselines/moveCursor_custom.png?rev=1369970&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/baselines/moveCursor_custom.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/baselines/rejectCursor_custom.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/baselines/rejectCursor_custom.png?rev=1369970&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/baselines/rejectCursor_custom.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/baselines/showDropFeedbackTest.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/baselines/showDropFeedbackTest.png?rev=1369970&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/baselines/showDropFeedbackTest.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/data/ListDataAS.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/data/ListDataAS.as?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/data/ListDataAS.as (added)
+++ incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/data/ListDataAS.as Mon Aug  6 20:17:09 2012
@@ -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 data {
+
+    public class ListDataAS  {
+    
+        public var myData:Object;
+        public function ListDataAS(): void
+        {
+            var date1:Date = new Date(2007,4,20);
+			var date2:Date = new Date(2007,0,15);
+            var date3:Date = new Date(2007,9,24); 
+            
+            myData = [
+						{label:"Toys", available:false, quantity: 0, shipDate: date1, url: "../../../../../Assets/Images/redrect.jpg", color: "Red"}, 
+						{label:"Stuffed Animals", available:false, quantity: 0, shipDate: date1, url: "../../../../../Assets/Images/orangerect.jpg", color: "Red"}, 
+						{label:"Stuffed Bears", available:true, quantity: 2, shipDate: date2, url: "../../../../../Assets/Images/brownrect.jpg", color: "Green"}, 
+						{label:"Dinosaur", available:true, quantity: 8, shipDate: date1, url: "../../../../../Assets/Images/purplerect.jpg", color: "Fuscia"}, 
+						{label:"Race Cars", available:true, quantity: 9, shipDate: date1, url: "../../../../../Assets/Images/yellowrect.jpg", color: "Yellow"}, 
+						{label:"Games", available:false, quantity: 0, shipDate: date2, url: "../../../../../Assets/Images/greenrect.jpg", color: "Black"}, 
+						{label:"Board Games", available:false, quantity: 0, shipDate: date3, url: "../../../../../Assets/Images/bluerect.jpg", color: "Black"}, 
+						{label:"White Squares", available:true, quantity: 4, shipDate: date3, url: "../../../../../Assets/Images/whiterect.jpg", color: "White"}, 
+						{label:"Action Figure", available:false, quantity: 0, shipDate: date1, url: "../../../../../Assets/Images/blackrect.jpg", color: "Rose"}, 
+						{label:"Video Game",available:true, quantity: 8, shipDate: date3, url: "../../../../../Assets/Images/cyanrect.jpg", color: "Periwinkle"}, 
+					  ]; 
+        }
+    }
+}
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/data/TreeData.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/data/TreeData.as?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/data/TreeData.as (added)
+++ incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/data/TreeData.as Mon Aug  6 20:17:09 2012
@@ -0,0 +1,43 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 data {
+    
+    import XMLList;
+    
+    public class TreeData  {
+    
+        public var myData:XMLList;
+        public function TreeData(): void
+        {
+                 myData =
+			     <>
+			     <root>
+			         <nodes label="Mail" data="mail">
+			             <nodes label="Inbox" data="inbox" />
+			         </nodes>
+			         <nodes label="Drafts" data="drafts">
+			             <nodes label="Memos" data="memos" />
+			             <nodes label="Faxes" data="faxes" />
+			             <node label="Juice" data="juice" />
+			         </nodes>
+			     </root>
+                 </>;
+        }
+    }
+}
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/data/TreeData2.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/data/TreeData2.as?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/data/TreeData2.as (added)
+++ incubator/flex/trunk/mustella/tests/Managers/DragManager/Halo/data/TreeData2.as Mon Aug  6 20:17:09 2012
@@ -0,0 +1,46 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 data {
+    
+    public class TreeData2  {
+    
+        public var myData:Object;
+        public function TreeData2(): void
+        {
+            myData =
+				 {fileName:"mx", Summary:"true", children: [
+				 	{fileName: "utils", children: [
+				 		{fileName: "StringUtil.as", Summary:"true", size:"5563 bytes", lastModified:"October 6, 2006", type:"File", attributes:"Read Only"},
+				 		{fileName: "ArrayUtil.as", size:"2509 bytes", lastModified:"June 12, 2006", type:"File", attributes:"Read Only"}
+				 	]},
+				 	{fileName:"accessibility", Summary:"false", children: [
+				 		{fileName:"DataGridAccImpl.as", size:"17045 bytes", lastModified:"November 2, 2006", type:"File", attributes:"Read Only"},
+				 		{fileName:"AccImpl.as", Summary:"true", size:"7263 bytes", lastModified:"June 1, 2006", type:"File", attributes:"Read Only"}
+				 	]},
+				 	{fileName: "controls", children: [
+				 		{fileName: "DataGrid.as", size:"169825 bytes", lastModified:"December 6, 2006", type:"File", attributes:"Read Only"},
+				 		{fileName: "dataGridClasses", children: [
+				 			{fileName: "DataGridItemRenderer.as", size:"18587 bytes", lastModified:"November 20, 2006", type:"File", attributes:"Read Only"},
+				 			{fileName: "DataGridBase.as", size:"36419 bytes", lastModified:"December 6, 2006", type:"File", attributes:"Read Only"}
+				 		]}
+				 	]}
+				 ]}
+        }
+    }
+}
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Comps.compile
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Comps.compile?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Comps.compile (added)
+++ incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Comps.compile Mon Aug  6 20:17:09 2012
@@ -0,0 +1 @@
+ -theme=${flexlib}/themes/Halo/halo.swc

Added: incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Comps.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Comps.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Comps.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Comps.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,70 @@
+<?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 backgroundColor="0xFFFFFF" backgroundImage="" xmlns:mx="http://www.adobe.com/2006/mxml" width="800" height="700"
+    xmlns:comps="comps.*" >
+<mx:Script>
+    <![CDATA[
+
+       import mx.events.DragEvent;
+       import mx.managers.DragManager;
+
+       [Embed(source="../../../../Assets/Images/redrect.jpg")]
+	    	public var cartoon:Class;
+
+	    public function doDragOver(event:DragEvent) : void
+	    {
+	        if (event.ctrlKey)
+	            mx.managers.DragManager.showFeedback(mx.managers.DragManager.COPY);
+	        else if (event.shiftKey)
+	            mx.managers.DragManager.showFeedback(mx.managers.DragManager.LINK);
+	        else
+	            mx.managers.DragManager.showFeedback(mx.managers.DragManager.MOVE);
+
+	        event.preventDefault();
+        }
+]]>
+</mx:Script>
+
+<mx:HBox>
+
+    <!--comps:DragList id="firstList" /-->
+    <mx:List id="firstList" dragEnabled="true" />
+    <!--comps:DragList id="secondList" /-->
+    <mx:List id="secondList" />
+
+</mx:HBox>
+
+
+<mx:HBox>
+
+    <mx:DataGrid id="firstDataGrid" />
+
+    <mx:DataGrid id="secondDataGrid" />
+
+</mx:HBox>
+
+<mx:HBox>
+
+    <mx:TileList id="firstTileList" />
+
+    <mx:TileList id="secondTileList" />
+
+</mx:HBox>
+ </mx:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Comps_spark.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Comps_spark.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Comps_spark.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Comps_spark.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,73 @@
+<?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:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark" width="800" height="700"
+    xmlns:comps="comps.*" >
+<s:layout>
+    <s:VerticalLayout />
+</s:layout>
+<fx:Script>
+    <![CDATA[
+
+       import mx.events.DragEvent;
+       import mx.managers.DragManager;
+
+       [Embed(source="../../../../Assets/Images/redrect.jpg")]
+	    	public var cartoon:Class;
+
+	    public function doDragOver(event:DragEvent) : void
+	    {
+	        if (event.ctrlKey)
+	            mx.managers.DragManager.showFeedback(mx.managers.DragManager.COPY);
+	        else if (event.shiftKey)
+	            mx.managers.DragManager.showFeedback(mx.managers.DragManager.LINK);
+	        else
+	            mx.managers.DragManager.showFeedback(mx.managers.DragManager.MOVE);
+
+	        event.preventDefault();
+        }
+]]>
+</fx:Script>
+
+<mx:HBox>
+
+    <!--comps:DragList id="firstList" /-->
+    <mx:List id="firstList" dragEnabled="true" />
+    <!--comps:DragList id="secondList" /-->
+    <mx:List id="secondList" />
+
+</mx:HBox>
+
+
+<mx:HBox>
+
+    <mx:DataGrid id="firstDataGrid" />
+
+    <mx:DataGrid id="secondDataGrid" />
+
+</mx:HBox>
+
+<mx:HBox>
+
+    <mx:TileList id="firstTileList" />
+
+    <mx:TileList id="secondTileList" />
+
+</mx:HBox>
+ </s:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Custom.compile
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Custom.compile?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Custom.compile (added)
+++ incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Custom.compile Mon Aug  6 20:17:09 2012
@@ -0,0 +1 @@
+ -theme=${flexlib}/themes/Halo/halo.swc

Added: incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Custom.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Custom.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Custom.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Custom.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,125 @@
+<?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 backgroundColor="0xFFFFFF" backgroundImage="" xmlns:mx="http://www.adobe.com/2006/mxml" width="800" height="700"
+    xmlns:comps="comps.*" >
+
+<mx:Script>
+<![CDATA[
+    import mx.managers.DragManager;
+    import mx.core.DragSource;
+    import mx.events.DragEvent;
+    import flash.events.MouseEvent;
+    import comps.MXMLcomp;
+
+    public var xOff:*;
+    public var yOff:*;
+
+    public function dragMe(event:MouseEvent, img1:*, format:*) : void
+    {
+        var ds:DragSource = new DragSource()
+        ds.addData(img1, format);
+        var di:Image = new Image();
+   		di.source = "../../../../Assets/Images/unknown.jpg";
+   		di.width=78;
+   		di.height=78;
+
+        mx.managers.DragManager.doDrag(Image(event.currentTarget), ds, event, di);
+    }
+
+    public function dragMe2(event:MouseEvent, img1:*, format:*) : void
+    {
+        var ds:DragSource = new DragSource()
+		ds.addData(img1, format);
+
+		var di:MXMLcomp = new MXMLcomp();
+        mx.managers.DragManager.doDrag(MXMLcomp(event.currentTarget), ds, event, di);
+    }
+
+    public function dragMe3(event:MouseEvent, img1:String, format:String): void
+	{
+	    var ds:DragSource = new DragSource();
+	    ds.addData(img1, format);
+	    var di:Image = new Image();
+	    di.source = "../../../../Assets/Images/unknown.jpg";
+	    di.width=78;
+	  	di.height=78;
+	  	mx.managers.DragManager.doDrag(Image(event.currentTarget), ds, event, di, 100, 100);
+    }
+
+    public function dragMe4(event:MouseEvent, img1:String, format:String) : void
+	{
+	    var ds:DragSource = new DragSource();
+	    ds.addData(img1, format);
+
+	    mx.managers.DragManager.doDrag(Image(event.currentTarget), ds, event);
+	}
+
+    public function doDragEnter(event:DragEvent) : void
+    {
+
+        mx.managers.DragManager.acceptDragDrop(Canvas(event.target));
+    }
+
+    public function doDragDrop(event:DragEvent,target1:*, format:*) : void
+    {
+
+        event.dragInitiator.x = target1.mouseX - xOff;
+        event.dragInitiator.y = target1.mouseY - yOff;
+
+    }
+
+    public function myoffset(img:*) : void
+    {
+        xOff = img.mouseX
+        yOff = img.mouseY
+    }
+
+    public function callDrag(event:MouseEvent): void
+    {
+        dragMe4(event, 'Image', 'img');
+        myoffset(myImage);
+    }
+
+
+]]>
+</mx:Script>
+<mx:Style>
+   @namespace "library://ns.adobe.com/flex/mx";
+   DragManager {
+      defaultDragImageSkin: Embed('../../../../Assets/Images/dropSkin.jpg');
+}
+</mx:Style>
+
+<mx:Canvas id="v1"
+    width="500"
+    height="500"
+    dragEnter="doDragEnter(event)"
+    dragDrop ="doDragDrop(event,v1, 'img')"
+    borderStyle="solid"
+    backgroundColor="#DDDDDD"
+    >
+
+    <mx:Image id="myImage" source="@Embed('../../../../Assets/Images/unknown.jpg')" mouseDown="dragMe(event, 'Image', 'img');myoffset(myImage);"/>
+    <comps:MXMLcomp id="comp" x="0" y="250" mouseDown="dragMe2(event, 'Image', 'img');myoffset(comp)"/>
+    <mx:Image id="myImage2" source="@Embed('../../../../Assets/Images/unknown.jpg')" mouseDown="dragMe3(event, 'Image', 'img');myoffset(myImage2);"
+        x="250" y="200" />
+
+ </mx:Canvas>
+ </mx:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Custom_spark.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Custom_spark.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Custom_spark.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Custom_spark.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,128 @@
+<?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:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark" width="800" height="700"
+    xmlns:comps="comps.*" >
+<s:layout>
+    <s:VerticalLayout />
+</s:layout>
+<fx:Script>
+<![CDATA[
+    import mx.managers.DragManager;
+    import mx.core.DragSource;
+    import mx.events.DragEvent;
+    import flash.events.MouseEvent;
+    import comps.MXMLcomp;
+
+    public var xOff:*;
+    public var yOff:*;
+
+    public function dragMe(event:MouseEvent, img1:*, format:*) : void
+    {
+        var ds:DragSource = new DragSource()
+        ds.addData(img1, format);
+        var di:Image = new Image();
+   		di.source = "../../../../Assets/Images/unknown.jpg";
+   		di.width=78;
+   		di.height=78;
+
+        mx.managers.DragManager.doDrag(Image(event.currentTarget), ds, event, di);
+    }
+
+    public function dragMe2(event:MouseEvent, img1:*, format:*) : void
+    {
+        var ds:DragSource = new DragSource()
+		ds.addData(img1, format);
+
+		var di:MXMLcomp = new MXMLcomp();
+        mx.managers.DragManager.doDrag(MXMLcomp(event.currentTarget), ds, event, di);
+    }
+
+    public function dragMe3(event:MouseEvent, img1:String, format:String): void
+	{
+	    var ds:DragSource = new DragSource();
+	    ds.addData(img1, format);
+	    var di:Image = new Image();
+	    di.source = "../../../../Assets/Images/unknown.jpg";
+	    di.width=78;
+	  	di.height=78;
+	  	mx.managers.DragManager.doDrag(Image(event.currentTarget), ds, event, di, 100, 100);
+    }
+
+    public function dragMe4(event:MouseEvent, img1:String, format:String) : void
+	{
+	    var ds:DragSource = new DragSource();
+	    ds.addData(img1, format);
+
+	    mx.managers.DragManager.doDrag(Image(event.currentTarget), ds, event);
+	}
+
+    public function doDragEnter(event:DragEvent) : void
+    {
+
+        mx.managers.DragManager.acceptDragDrop(Canvas(event.target));
+    }
+
+    public function doDragDrop(event:DragEvent,target1:*, format:*) : void
+    {
+
+        event.dragInitiator.x = target1.mouseX - xOff;
+        event.dragInitiator.y = target1.mouseY - yOff;
+
+    }
+
+    public function myoffset(img:*) : void
+    {
+        xOff = img.mouseX
+        yOff = img.mouseY
+    }
+
+    public function callDrag(event:MouseEvent): void
+    {
+        dragMe4(event, 'Image', 'img');
+        myoffset(myImage);
+    }
+
+
+]]>
+</fx:Script>
+<fx:Style>
+	@namespace s "library://ns.adobe.com/flex/spark";
+	@namespace mx "library://ns.adobe.com/flex/mx";
+   mx|DragManager {
+      defaultDragImageSkin: Embed('../../../../Assets/Images/dropSkin.jpg');
+}
+</fx:Style>
+
+<mx:Canvas id="v1"
+    width="500"
+    height="500"
+    dragEnter="doDragEnter(event)"
+    dragDrop ="doDragDrop(event,v1, 'img')"
+    borderStyle="solid"
+    backgroundColor="#DDDDDD"
+    >
+
+    <mx:Image id="myImage" source="@Embed('../../../../Assets/Images/unknown.jpg')" mouseDown="dragMe(event, 'Image', 'img');myoffset(myImage);"/>
+    <comps:MXMLcomp id="comp" x="0" y="250" mouseDown="dragMe2(event, 'Image', 'img');myoffset(comp)"/>
+    <mx:Image id="myImage2" source="@Embed('../../../../Assets/Images/unknown.jpg')" mouseDown="dragMe3(event, 'Image', 'img');myoffset(myImage2);"
+        x="250" y="200" />
+
+ </mx:Canvas>
+ </s:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Custom_spark_RTL.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Custom_spark_RTL.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Custom_spark_RTL.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Custom_spark_RTL.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,128 @@
+<?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:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark" width="800" height="700"
+    xmlns:comps="comps.*" layoutDirection="rtl" direction="rtl">
+<s:layout>
+    <s:VerticalLayout />
+</s:layout>
+<fx:Script>
+<![CDATA[
+    import mx.managers.DragManager;
+    import mx.core.DragSource;
+    import mx.events.DragEvent;
+    import flash.events.MouseEvent;
+    import comps.MXMLcomp;
+
+    public var xOff:*;
+    public var yOff:*;
+
+    public function dragMe(event:MouseEvent, img1:*, format:*) : void
+    {
+        var ds:DragSource = new DragSource()
+        ds.addData(img1, format);
+        var di:Image = new Image();
+        di.source = "../../../../Assets/Images/unknown.jpg";
+        di.width=78;
+        di.height=78;
+
+        mx.managers.DragManager.doDrag(Image(event.currentTarget), ds, event, di);
+    }
+
+    public function dragMe2(event:MouseEvent, img1:*, format:*) : void
+    {
+        var ds:DragSource = new DragSource()
+        ds.addData(img1, format);
+
+        var di:MXMLcomp = new MXMLcomp();
+        mx.managers.DragManager.doDrag(MXMLcomp(event.currentTarget), ds, event, di);
+    }
+
+    public function dragMe3(event:MouseEvent, img1:String, format:String): void
+    {
+        var ds:DragSource = new DragSource();
+        ds.addData(img1, format);
+        var di:Image = new Image();
+        di.source = "../../../../Assets/Images/unknown.jpg";
+        di.width=78;
+        di.height=78;
+        mx.managers.DragManager.doDrag(Image(event.currentTarget), ds, event, di, 100, 100);
+    }
+
+    public function dragMe4(event:MouseEvent, img1:String, format:String) : void
+    {
+        var ds:DragSource = new DragSource();
+        ds.addData(img1, format);
+
+        mx.managers.DragManager.doDrag(Image(event.currentTarget), ds, event);
+    }
+
+    public function doDragEnter(event:DragEvent) : void
+    {
+
+        mx.managers.DragManager.acceptDragDrop(Canvas(event.target));
+    }
+
+    public function doDragDrop(event:DragEvent,target1:*, format:*) : void
+    {
+
+        event.dragInitiator.x = target1.mouseX - xOff;
+        event.dragInitiator.y = target1.mouseY - yOff;
+
+    }
+
+    public function myoffset(img:*) : void
+    {
+        xOff = img.mouseX
+        yOff = img.mouseY
+    }
+
+    public function callDrag(event:MouseEvent): void
+    {
+        dragMe4(event, 'Image', 'img');
+        myoffset(myImage);
+    }
+
+
+]]>
+</fx:Script>
+<fx:Style>
+    @namespace s "library://ns.adobe.com/flex/spark";
+    @namespace mx "library://ns.adobe.com/flex/mx";
+   mx|DragManager {
+      defaultDragImageSkin: Embed('../../../../Assets/Images/dropSkin.jpg');
+}
+</fx:Style>
+
+<mx:Canvas id="v1"
+    width="500"
+    height="500"
+    dragEnter="doDragEnter(event)"
+    dragDrop ="doDragDrop(event,v1, 'img')"
+    borderStyle="solid"
+    backgroundColor="#DDDDDD"
+    >
+
+    <mx:Image id="myImage" source="@Embed('../../../../Assets/Images/unknown.jpg')" mouseDown="dragMe(event, 'Image', 'img');myoffset(myImage);"/>
+    <comps:MXMLcomp id="comp" x="0" y="250" mouseDown="dragMe2(event, 'Image', 'img');myoffset(comp)"/>
+    <mx:Image id="myImage2" source="@Embed('../../../../Assets/Images/unknown.jpg')" mouseDown="dragMe3(event, 'Image', 'img');myoffset(myImage2);"
+        x="250" y="200" />
+
+ </mx:Canvas>
+ </s:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Events.compile
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Events.compile?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Events.compile (added)
+++ incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Events.compile Mon Aug  6 20:17:09 2012
@@ -0,0 +1 @@
+ -theme=${flexlib}/themes/Halo/halo.swc

Added: incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Events.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Events.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Events.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Events.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,72 @@
+<?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 backgroundColor="0xFFFFFF" xmlns:mx="http://www.adobe.com/2006/mxml" width="800" height="700"
+    xmlns:comps="comps.*" initialize="initApp()" >
+<mx:Script>
+    <![CDATA[
+
+    [Bindable]
+    public var dp:Array = [
+		                {label:"First", blah:"blah"},
+		                {label:"Second", blah:"blah"},
+		                {label:"Third", blah:"blah"},
+		                {label:"Fourth", blah:"blah"},
+		                {label:"Fifth", blah:"blah"},
+		                {label:"Sixth", blah:"blah"},
+		                {label:"Seventh", blah:"blah"},
+		                {label:"Eighth", blah:"blah"},
+		                {label:"Nineth", blah:"blah"},
+		                {label:"Tenth", blah:"blah"},
+		                {label:"Eleventh", blah:"blah"},
+		                {label:"Twelfth", blah:"blah"},
+		                {label:"Thirteenth", blah:"blah"},
+		                {label:"Fourteenth", blah:"blah"},
+		                {label:"Fifteenth", blah:"blah"},
+		                {label:"Sixteenth", blah:"blah"},
+		                {label:"Seventeenth", blah:"blah"}
+                ];
+
+    public function initApp() : void
+    {
+        firstList.dataProvider = dp;
+        secondList.dataProvider = [];
+    }
+
+    ]]>
+</mx:Script>
+
+<mx:HBox>
+
+    <mx:List  id="firstList"
+        width="250"
+        height="200"
+        dragEnabled="true"
+        allowMultipleSelection="true"
+        dragMoveEnabled="true"
+    />
+    <mx:List  id="secondList"
+        width="250"
+        height="200"
+        dragEnabled="true"
+        dropEnabled="true"
+    />
+</mx:HBox>
+
+ </mx:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Tree.compile
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Tree.compile?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Tree.compile (added)
+++ incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Tree.compile Mon Aug  6 20:17:09 2012
@@ -0,0 +1 @@
+ -theme=${flexlib}/themes/Halo/halo.swc

Added: incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Tree.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Tree.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Tree.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Tree.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,175 @@
+<?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 backgroundColor="0xFFFFFF" backgroundImage="" height="650" width="500" xmlns:mx="http://www.adobe.com/2006/mxml" initialize="initApp()">
+
+<mx:Script>
+    <![CDATA[
+
+    import mx.events.DragEvent;
+    import mx.managers.DragManager;
+    import mx.core.DragSource;
+    import mx.core.mx_internal;
+    import mx.managers.DragManager;
+    import mx.collections.*;
+
+    public function initApp():void {
+        srcTileList.dataProvider = ["Jane"];
+        destTree.dataProvider = treeDP;
+    }
+
+    public function doDragOver(event:DragEvent) : void
+    {
+        event.preventDefault();
+
+        mx.managers.DragManager.showFeedback(event.ctrlKey ? mx.managers.DragManager.COPY : mx.managers.DragManager.MOVE);
+        TileList(event.target).showDropFeedback(event);
+    }
+
+    public function doDragEnter(event:DragEvent): void
+    {
+        event.preventDefault();
+
+        mx.managers.DragManager.acceptDragDrop(TileList(event.target));
+        mx.managers.DragManager.showFeedback(event.ctrlKey ? mx.managers.DragManager.COPY : mx.managers.DragManager.MOVE);
+        TileList(event.target).showDropFeedback(event);
+    }
+
+    public function doDragDrop(event:DragEvent): void
+    {
+        event.preventDefault();
+        var myTileList:TileList = TileList(event.target);
+        myTileList.hideDropFeedback(event);
+
+        if (event.dragSource.hasFormat("treeItems"))
+        {
+            if (!myTileList.dataProvider)
+               // Create an empty collection to drop items into.
+               myTileList.dataProvider = [];
+
+            var items:Array = event.dragSource.dataForFormat("treeItems") as Array;
+            for (var i:int = items.length - 1; i >= 0; i--)
+            {
+               myTileList.dataProvider.addItemAt(String(items[i].@label), TileList(event.target).calculateDropIndex(event));
+            }
+        }
+    }
+
+    public function doDragComplete(event:DragEvent): void
+    {
+        event.preventDefault();
+        if (event.action == mx.managers.DragManager.MOVE && Tree(event.target).dragMoveEnabled)
+        {
+            var target:Tree = Tree(event.target)
+            if (event.relatedObject != this)
+            {
+                //if we dropped on another component
+                //then we need to remove from ourself first
+                var items:Array = event.dragSource.dataForFormat("treeItems") as Array;
+                var parent:*;
+                var index:int;
+
+                //do the remove
+                for (var i:int=0; i<items.length; i++)
+                {
+                    parent = target.getParentItem(items[i]);
+                    index = getChildIndexInParent(parent, items[i], target);
+                    target.mx_internal::removeChildItem(parent, items[i], index);
+                 }
+             }
+        }
+    }
+
+    private function getChildIndexInParent(parent:Object, child:Object, target:Tree):int
+    {
+        var index:int = 0;
+        if (!parent)
+        {
+            var cursor:IViewCursor = ICollectionView(target.dataProvider).createCursor();
+            while (!cursor.afterLast)
+            {
+                if (child === cursor.current)
+                    break;
+                index++;
+                cursor.moveNext();
+            }
+        }
+        else
+        {
+            if (parent != null && target.dataDescriptor.isBranch(parent) &&
+                target.dataDescriptor.hasChildren(parent))
+            {
+                var children:ICollectionView = target.dataDescriptor.getChildren(parent);
+                if (children.contains(child))
+                {
+                    for (; index < children.length; index++)
+                    {
+                       if (child === children[index])
+                       break;
+                    }
+                }
+             }
+        }
+        return index;
+    }
+
+]]>
+</mx:Script>
+
+<mx:XML id="treeDP" format="e4x">
+   <rootnode>
+        <node label="Mail">
+            <node label="Inbox"/>
+            <node label="Personal Folder">
+                <node label="Demo" isBranch="true" />
+                <node label="Personal" isBranch="true" />
+                <node label="Saved Mail" isBranch="true" />
+                <node label="bar" isBranch="true" />
+            </node>
+            <node label="Sent" isBranch="true" />
+            <node label="Trash"/>
+        </node>
+        <node label="Calendar"/>
+   </rootnode>
+</mx:XML>
+
+<mx:HBox>
+   <mx:Tree id="firstTree" width="250" dragEnabled="true"
+        showRoot="false" dragMoveEnabled="true" dropEnabled="true"  />
+
+<mx:Tree id="secondTree" dataProvider="[]" dropEnabled="true" dragEnabled="true"
+        dragMoveEnabled="true"  />
+</mx:HBox>
+
+<mx:Label width="100%" text="Drag Tree items to the TileList" />
+
+<mx:TileList id="srcTileList"
+    dropEnabled="true"
+    dragOver="doDragOver(event)"
+    dragEnter="doDragEnter(event)"
+    dragDrop="doDragDrop(event)"
+    columnWidth="100" />
+
+<mx:Tree id="destTree"
+    dragEnabled="true"
+    labelField="@label"
+    showRoot="false"
+    dragComplete="doDragComplete(event)"
+    width="250" />
+</mx:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Tree_spark.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Tree_spark.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Tree_spark.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_Tree_spark.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,177 @@
+<?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  height="650" width="500" xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark" initialize="initApp()">
+<s:layout>
+    <s:VerticalLayout />
+</s:layout>
+<fx:Script>
+    <![CDATA[
+
+    import mx.events.DragEvent;
+    import mx.managers.DragManager;
+    import mx.core.DragSource;
+    import mx.core.mx_internal;
+    import mx.managers.DragManager;
+    import mx.collections.*;
+
+    public function initApp():void {
+        srcTileList.dataProvider = ["Jane"];
+        destTree.dataProvider = treeDP;
+    }
+
+    public function doDragOver(event:DragEvent) : void
+    {
+        event.preventDefault();
+
+        mx.managers.DragManager.showFeedback(event.ctrlKey ? mx.managers.DragManager.COPY : mx.managers.DragManager.MOVE);
+        TileList(event.target).showDropFeedback(event);
+    }
+
+    public function doDragEnter(event:DragEvent): void
+    {
+        event.preventDefault();
+
+        mx.managers.DragManager.acceptDragDrop(TileList(event.target));
+        mx.managers.DragManager.showFeedback(event.ctrlKey ? mx.managers.DragManager.COPY : mx.managers.DragManager.MOVE);
+        TileList(event.target).showDropFeedback(event);
+    }
+
+    public function doDragDrop(event:DragEvent): void
+    {
+        event.preventDefault();
+        var myTileList:TileList = TileList(event.target);
+        myTileList.hideDropFeedback(event);
+
+        if (event.dragSource.hasFormat("treeItems"))
+        {
+            if (!myTileList.dataProvider)
+               // Create an empty collection to drop items into.
+               myTileList.dataProvider = [];
+
+            var items:Array = event.dragSource.dataForFormat("treeItems") as Array;
+            for (var i:int = items.length - 1; i >= 0; i--)
+            {
+               myTileList.dataProvider.addItemAt(String(items[i].@label), TileList(event.target).calculateDropIndex(event));
+            }
+        }
+    }
+
+    public function doDragComplete(event:DragEvent): void
+    {
+        event.preventDefault();
+        if (event.action == mx.managers.DragManager.MOVE && Tree(event.target).dragMoveEnabled)
+        {
+            var target:Tree = Tree(event.target)
+            if (event.relatedObject != this)
+            {
+                //if we dropped on another component
+                //then we need to remove from ourself first
+                var items:Array = event.dragSource.dataForFormat("treeItems") as Array;
+                var parent:*;
+                var index:int;
+
+                //do the remove
+                for (var i:int=0; i<items.length; i++)
+                {
+                    parent = target.getParentItem(items[i]);
+                    index = getChildIndexInParent(parent, items[i], target);
+                    target.mx_internal::removeChildItem(parent, items[i], index);
+                 }
+             }
+        }
+    }
+
+    private function getChildIndexInParent(parent:Object, child:Object, target:Tree):int
+    {
+        var index:int = 0;
+        if (!parent)
+        {
+            var cursor:IViewCursor = ICollectionView(target.dataProvider).createCursor();
+            while (!cursor.afterLast)
+            {
+                if (child === cursor.current)
+                    break;
+                index++;
+                cursor.moveNext();
+            }
+        }
+        else
+        {
+            if (parent != null && target.dataDescriptor.isBranch(parent) &&
+                target.dataDescriptor.hasChildren(parent))
+            {
+                var children:ICollectionView = target.dataDescriptor.getChildren(parent);
+                if (children.contains(child))
+                {
+                    for (; index < children.length; index++)
+                    {
+                       if (child === children[index])
+                       break;
+                    }
+                }
+             }
+        }
+        return index;
+    }
+
+]]>
+</fx:Script>
+<fx:Declarations>
+<fx:XML id="treeDP" format="e4x">
+   <rootnode>
+        <node label="Mail">
+            <node label="Inbox"/>
+            <node label="Personal Folder">
+                <node label="Demo" isBranch="true" />
+                <node label="Personal" isBranch="true" />
+                <node label="Saved Mail" isBranch="true" />
+                <node label="bar" isBranch="true" />
+            </node>
+            <node label="Sent" isBranch="true" />
+            <node label="Trash"/>
+        </node>
+        <node label="Calendar"/>
+   </rootnode>
+</fx:XML>
+</fx:Declarations>
+<mx:HBox>
+   <mx:Tree id="firstTree" width="250" dragEnabled="true"
+        showRoot="false" dragMoveEnabled="true" dropEnabled="true"  />
+
+<mx:Tree id="secondTree" dataProvider="[]" dropEnabled="true" dragEnabled="true"
+        dragMoveEnabled="true"  />
+</mx:HBox>
+
+<mx:Label width="100%" text="Drag Tree items to the TileList" />
+
+<mx:TileList id="srcTileList"
+    dropEnabled="true"
+    dragOver="doDragOver(event)"
+    dragEnter="doDragEnter(event)"
+    dragDrop="doDragDrop(event)"
+    columnWidth="100" />
+
+<mx:Tree id="destTree"
+    dragEnabled="true"
+    labelField="@label"
+    showRoot="false"
+    dragComplete="doDragComplete(event)"
+    width="250" />
+</s:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_customcursors.compile
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_customcursors.compile?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_customcursors.compile (added)
+++ incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_customcursors.compile Mon Aug  6 20:17:09 2012
@@ -0,0 +1 @@
+ -theme=${flexlib}/themes/Halo/halo.swc

Added: incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_customcursors.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_customcursors.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_customcursors.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/DragManager/SWFs/DragManager_customcursors.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="iso-8859-1" ?>
+<!--
+
+  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 backgroundColor="0xFFFFFF" backgroundImage="" xmlns:mx="http://www.adobe.com/2006/mxml" width="800" height="600">
+
+<mx:Script>
+    <![CDATA[
+
+    import mx.managers.DragManager;
+
+]]>
+
+</mx:Script>
+
+<mx:Style source="assets/myStyles.css" />
+<mx:Style>
+@namespace "library://ns.adobe.com/flex/mx";
+
+ DragManager {
+        copyCursor: Embed(source="../../../../Assets/Images/bluerect.jpg");
+        linkCursor: Embed(source="../../../../Assets/Images/purplerect.jpg");
+        moveCursor: Embed(source="../../../../Assets/Images/greenrect.jpg");
+        rejectCursor: Embed(source="../../../../Assets/Images/orangerect.jpg");
+    }
+</mx:Style>
+<mx:HBox>
+     <mx:List id="firstList"
+            width="250"
+            dragEnabled="true"
+            dragMoveEnabled = "true"
+            allowMultipleSelection="true"
+            dropEnabled="true"
+
+    />
+
+    <mx:List id="secondList"
+             dropEnabled="true"
+             width="250"
+    />
+</mx:HBox>
+
+</mx:Application>



Mime
View raw message