incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r1369972 [11/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/SWFs/air_Bootstrap_CursorManager.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/air_Bootstrap_CursorManager.as?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/air_Bootstrap_CursorManager.as (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/air_Bootstrap_CursorManager.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="750", height="700")]
+public class air_Bootstrap_CursorManager extends Sprite
+{
+    /**
+     *  The URL of the application SWF to be loaded
+     *  by this bootstrap loader.
+     */
+    private static const applicationURL:String = "assets/zzaird_Bootstrap_CursorManager_Child.swf";
+
+	public var portNumber : Number=80;
+    /**
+     *  Constructor.
+     */
+    public function air_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/air_Bootstrap_DragManager.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/air_Bootstrap_DragManager.as?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/air_Bootstrap_DragManager.as (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/air_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 air_Bootstrap_DragManager extends Sprite
+{
+    /**
+     *  The URL of the application SWF to be loaded
+     *  by this bootstrap loader.
+     */
+    private static const applicationURL:String = "assets/zzaird_Bootstrap_DragManager_Child.swf";
+
+	public var portNumber : Number=80;
+    /**
+     *  Constructor.
+     */
+    public function air_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/air_Bootstrap_FocusManager_Nested.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/air_Bootstrap_FocusManager_Nested.as?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/air_Bootstrap_FocusManager_Nested.as (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/air_Bootstrap_FocusManager_Nested.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 air_Bootstrap_FocusManager_Nested extends Sprite
+{
+    /**
+     *  The URL of the application SWF to be loaded
+     *  by this bootstrap loader.
+     */
+    private static const applicationURL:String = "assets/zzaird_Bootstrap_FocusManager_Nested_Child.swf";
+
+	public var portNumber : Number=80;
+    /**
+     *  Constructor.
+     */
+    public function air_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/air_Bootstrap_Managers.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/air_Bootstrap_Managers.as?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/air_Bootstrap_Managers.as (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/air_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 air_Bootstrap_Managers extends Sprite
+{
+    /**
+     *  The URL of the application SWF to be loaded
+     *  by this bootstrap loader.
+     */
+    private static const applicationURL:String = "assets/zzaird_Bootstrap_Managers_Child.swf";
+
+	public var portNumber : Number=80;
+    /**
+     *  Constructor.
+     */
+    public function air_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);
+    }
+}
+
+}

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/air_Bootstrap_PopUpManager.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/air_Bootstrap_PopUpManager.as?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/air_Bootstrap_PopUpManager.as (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/air_Bootstrap_PopUpManager.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 air_Bootstrap_PopUpManager extends Sprite
+{
+    /**
+     *  The URL of the application SWF to be loaded
+     *  by this bootstrap loader.
+     */
+    private static const applicationURL:String = "assets/zzaird_Bootstrap_PopUpManager_Child.swf";
+
+	public var portNumber : Number=80;
+    /**
+     *  Constructor.
+     */
+    public function air_Bootstrap_PopUpManager()
+    {
+        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/air_Bootstrap_RPC.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/air_Bootstrap_RPC.as?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/air_Bootstrap_RPC.as (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/air_Bootstrap_RPC.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 air_Bootstrap_RPC extends Sprite
+{
+    /**
+     *  The URL of the application SWF to be loaded
+     *  by this bootstrap loader.
+     */
+    private static const applicationURL:String = "assets/zzaird_Bootstrap_RPC_Child.swf";
+
+	public var portNumber : Number=80;
+    /**
+     *  Constructor.
+     */
+    public function air_Bootstrap_RPC()
+    {
+        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/assets/BootStrap_CursorManager_Child.compile
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/BootStrap_CursorManager_Child.compile?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/BootStrap_CursorManager_Child.compile (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/BootStrap_CursorManager_Child.compile Mon Aug  6 20:20:08 2012
@@ -0,0 +1,2 @@
+ -theme=${flexlib}/themes/Halo/halo.swc
+-includes=mx.managers.systemClasses.MarshallingSupport

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/BootStrap_CursorManager_Child.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/BootStrap_CursorManager_Child.mxml?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/BootStrap_CursorManager_Child.mxml (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/BootStrap_CursorManager_Child.mxml Mon Aug  6 20:20:08 2012
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" width="900" height="900"
+    backgroundColor="#000000" backgroundImage="" >
+	
+	<mx:Style source="../../../../Assets/Fonts/myStyles.css" />
+	
+	<mx:SWFLoader id="swf1" />
+	<mx:TextInput text="button" id="ta1" />
+</mx:Application>

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/Bootstrap_DragManager_Child.compile
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/Bootstrap_DragManager_Child.compile?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/Bootstrap_DragManager_Child.compile (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/Bootstrap_DragManager_Child.compile Mon Aug  6 20:20:08 2012
@@ -0,0 +1 @@
+ -includes=mx.managers.systemClasses.MarshallingSupport

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/Bootstrap_DragManager_Child.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/Bootstrap_DragManager_Child.mxml?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/Bootstrap_DragManager_Child.mxml (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/Bootstrap_DragManager_Child.mxml Mon Aug  6 20:20:08 2012
@@ -0,0 +1,48 @@
+<?xml version="1.0"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" height="700" xmlns:comps="comps.*">
+
+<mx:Script>
+<![CDATA[
+
+    import mx.managers.DragManager;
+    private var dummy:DragManager;
+
+    [Bindable]
+    private var smallArray:Array=
+         [
+        { firstName: "Alex", lastName: "Harui" },
+        { firstName: "Joan", lastName: "Lafferty" },
+        { firstName: "Darrell", lastName: "Loverin" },
+        { firstName: "Lauren", lastName: "Park" },
+        { firstName: "Susan", lastName: "Lally" }
+         ];
+
+
+
+
+]]>
+</mx:Script>
+
+<comps:DGComp id="dg" />
+
+<comps:SWFLoaderComp id="swf2" />
+
+</mx:Application>

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/Bootstrap_FocusManager_Nested_Child.compile
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/Bootstrap_FocusManager_Nested_Child.compile?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/Bootstrap_FocusManager_Nested_Child.compile (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/Bootstrap_FocusManager_Nested_Child.compile Mon Aug  6 20:20:08 2012
@@ -0,0 +1 @@
+ -includes=mx.managers.systemClasses.MarshallingSupport

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/Bootstrap_FocusManager_Nested_Child.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/Bootstrap_FocusManager_Nested_Child.mxml?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/Bootstrap_FocusManager_Nested_Child.mxml (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/Bootstrap_FocusManager_Nested_Child.mxml Mon Aug  6 20:20:08 2012
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" xmlns:comps="comps.*">
+    <mx:Script>
+    <![CDATA[
+
+         import mx.managers.PopUpManager;
+
+         private var popUpManager:PopUpManager;
+
+     ]]>
+    </mx:Script>
+
+    <mx:TextInput id="control1" />
+	<mx:Button id="control2" />
+	<mx:SWFLoader id="topSWF" width="900" height="1000" />
+
+</mx:Application>

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/Bootstrap_Managers_Child.compile
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/Bootstrap_Managers_Child.compile?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/Bootstrap_Managers_Child.compile (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/Bootstrap_Managers_Child.compile Mon Aug  6 20:20:08 2012
@@ -0,0 +1 @@
+ -includes=mx.managers.systemClasses.MarshallingSupport

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/Bootstrap_Managers_Child.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/Bootstrap_Managers_Child.mxml?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/Bootstrap_Managers_Child.mxml (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/Bootstrap_Managers_Child.mxml Mon Aug  6 20:20:08 2012
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" xmlns:comps="comps.*">
+    <mx:Script>
+    <![CDATA[
+
+         import mx.managers.PopUpManager;
+
+         private var popUpManager:PopUpManager;
+
+     ]]>
+    </mx:Script>
+
+    <mx:TextInput id="control1" />
+	<mx:Button id="control2" />
+	<mx:SWFLoader id="swf1" />
+	<comps:SWFLoaderComp id="swf2" />
+
+</mx:Application>

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/Bootstrap_PopUpManager_Child.compile
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/Bootstrap_PopUpManager_Child.compile?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/Bootstrap_PopUpManager_Child.compile (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/Bootstrap_PopUpManager_Child.compile Mon Aug  6 20:20:08 2012
@@ -0,0 +1,2 @@
+ -theme=${flexlib}/themes/Halo/halo.swc
+ -includes=mx.managers.systemClasses.MarshallingSupport

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/Bootstrap_PopUpManager_Child.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/Bootstrap_PopUpManager_Child.mxml?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/Bootstrap_PopUpManager_Child.mxml (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/Bootstrap_PopUpManager_Child.mxml Mon Aug  6 20:20:08 2012
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" width="900" height="900"
+    backgroundColor="#000000" backgroundImage="" >
+    <mx:Script>
+    <![CDATA[
+
+         import mx.managers.PopUpManager;
+
+         private var popUpManager:PopUpManager;
+
+     ]]>
+    </mx:Script>
+
+    <mx:Style source="../../../../Assets/Fonts/myStyles.css" />
+
+    <mx:SWFLoader id="swf1" />
+	<mx:TextInput text="button" id="ta1" />
+
+</mx:Application>

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/DragMXMLComp.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/DragMXMLComp.mxml?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/DragMXMLComp.mxml (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/DragMXMLComp.mxml Mon Aug  6 20:20:08 2012
@@ -0,0 +1,79 @@
+<?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 xmlns:mx="http://www.adobe.com/2006/mxml" width="600" height="600">
+
+<mx:Script>
+<![CDATA[
+    import mx.managers.DragManager;
+    import mx.core.DragSource;
+    import mx.events.DragEvent;
+    import flash.events.MouseEvent;
+
+    private var xOff:Number;
+    private var yOff:Number;
+
+    private function dragMe(event:MouseEvent, img1:Object, format:String): void
+    {
+        var ds:DragSource = new DragSource()
+        ds.addData(img1, format);
+
+        var di:MXMLcomp = new MXMLcomp();
+        DragManager.doDrag(MXMLcomp(event.currentTarget), ds, event, di);
+    }
+
+
+    private function doDragEnter(event:DragEvent): void
+    {
+
+        DragManager.acceptDragDrop(Canvas(event.target));
+    }
+
+    private function doDragDrop(event:MouseEvent,target1:Object, format:String): void
+    {
+        comp.x = target1.mouseX - xOff
+        comp.y = target1.mouseY - yOff
+    }
+
+    private function myoffset(img:Object): void
+    {
+        xOff = img.mouseX;
+        yOff = img.mouseY;
+    }
+
+
+]]>
+</mx:Script>
+<mx:HBox backgroundColor="#CCCCFF" horizontalAlign="center" width="100%">
+    <mx:Label fontSize="15" text="Drag and Drop MXML Component" />
+</mx:HBox>
+<mx:Text width="100%" text="Drag question mark around stage. Verify it moves around correctly, following the mouse, and drag image appears correctly" />
+
+<mx:Canvas id="v1"
+    width="500"
+    height="500"
+    dragEnter="doDragEnter(event)"
+    dragDrop ="doDragDrop(event,v1, 'img')"
+    borderStyle="solid"
+    backgroundColor="#DDDDDD" >
+
+     <MXMLcomp id="comp" xmlns="*" mouseDown="dragMe(event, 'Image', 'img');myoffset(comp)"/>
+
+ </mx:Canvas>
+</mx:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/GateKeeper.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/GateKeeper.mxml?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/GateKeeper.mxml (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/GateKeeper.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.
+
+-->
+<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*"
+layout="absolute" width="100%"
+title="Log On" height="100%" >
+
+<mx:Script>
+<![CDATA[
+import mx.managers.PopUpManager;
+
+private function processLogon():void {
+PopUpManager.removePopUp(this);
+}
+]]>
+</mx:Script>
+
+<!-- TODO: in popup window tab order doesn't work, default button doesn't work -->
+<mx:Form top="25" bottom="75" left="25" right="25"
+defaultButton="{buttonLogon}" focusEnabled="true">
+<mx:FormItem label="User Name" width="100%" required="true">
+<mx:TextInput id="inputUsername" width="100%" editable="true" />
+</mx:FormItem>
+<mx:FormItem label="Password" width="100%" required="true">
+<mx:TextInput id="inputPassword" displayAsPassword="true" width="100%"
+editable="true"/>
+</mx:FormItem>
+</mx:Form>
+
+<mx:HBox bottom="25" left="25" right="25">
+<mx:Button id="buttonLogon" click="processLogon()" label="Log on" width="90"/>
+<mx:Button id="buttonCancel" label="Cancel" width="90"/>
+</mx:HBox>
+</mx:TitleWindow>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/MP_Controls_Child.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/MP_Controls_Child.mxml?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/MP_Controls_Child.mxml (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/MP_Controls_Child.mxml Mon Aug  6 20:20:08 2012
@@ -0,0 +1,103 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:comps="comps.*"
+   backgroundColor="0xFFFFFF" backgroundImage="">
+<mx:Script>
+	<![CDATA[
+
+		[Bindable]
+		private var myData:Array = [
+           { Artist:'ArtistA', Album:'AlbumA', Price:11.99, Rating:'Excellent' },
+           { Artist:'ArtistA', Album:'AlbumB', Price:10.99, Rating:'Excellent' },
+           { Artist:'ArtistA', Album:'AlbumC', Price:12.99, Rating:'Excellent' },
+           { Artist:'ArtistA', Album:'AlbumD', Price:11.99, Rating:'Good' },
+           { Artist:'ArtistA', Album:'AlbumE', Price:11.99, Rating:'Good' },
+           { Artist:'Other', Album:'Other', Price:5.99, Rating:'Bad' }
+		];
+
+        [Bindable]
+        [Embed(source="../../../../Assets/Images/smallpurplerect.jpg")]
+        public var jpgIcon:Class;
+
+
+	]]>
+</mx:Script>
+
+<mx:Style source="../../../../Assets/Fonts/myStyles.css" />
+
+<mx:XML id="treeData" format="e4x" >
+  <node>
+		<node label="Containers" data="Containers.as">
+		    <node label="DividedBoxClasses">
+			<node label="BoxDivider" data="BoxDivider.as" />
+		</node>
+		    <node label="GridClasses">
+			    <node label="GridRow" data="GridRow.as" />
+			    <node label="GridItem" data="GridItem.as" />
+		    </node>
+		</node>
+		<node label="Printing">
+			<node label="PrintJob" data="PrintJob.as" />
+			<node label="PrintJob1" data="PrintJob1.as" />
+			<node label="PrintTree" data="PrintTree.as" />
+		</node>
+		<node label="Data">
+		    <node label="Messages">
+			    <node label="DataMessage" data="DataMessage.as" />
+			    <node label="SequenceMessage" data="SequenceMessage.as" />
+			    <node label="PagedMessage" data="PagedMessage.as" />
+		    </node>
+		    <node label="Events">
+			    <node label="ConflictEvents">
+				<node label="ResolveEvent" data="ResolveEvent.as" />
+				<node label="BubbleEvent" data="BubbleEvent.as" />
+			</node>
+			    <node label="CommitFaultEvent" data="CommitFaultEvent.as" />
+		    </node>
+		</node>
+    </node>
+</mx:XML>
+
+<mx:Style>
+
+Menu {
+   openDuration: 0;
+}
+</mx:Style>
+
+<mx:HBox x="5" y="5">
+    <comps:DGComp id="dataGrid1" />
+	<comps:ListComp id="list1" />
+</mx:HBox>
+
+	<mx:ColorPicker id="colorPicker1" y="200" right="20" toolTip="This is a ColorPicker"/>
+	<mx:DateField id="dateField1" right="20" y="270" toolTip="DateField"/>
+	<mx:HSlider minimum="0" maximum="100" y="290" right="20" toolTip="Slider"/>
+	<mx:Button toggle="true" label="I toggle" y="330" right="20" toolTip="Toggleable Button"/>
+	<mx:Button id="iconButton" label="launch Alert" click="mx.controls.Alert.show('hello')" y="350" right="20"
+		  icon="{jpgIcon}" toolTip="Button to launch an alert."/>
+	<mx:NumericStepper  right="20" y="410" toolTip="NumericStepper"/>
+	<mx:TextArea  right="20" y="450" toolTip="TextArea"/>
+	<mx:TextInput  right="20" y="500" toolTip="TextInput"/>
+	<mx:Tree id="tree1" dataProvider="{treeData}" labelField="@label" showRoot="false" right="20" y="560"
+		  toolTip="This is a scrolling Tree, dude"/>
+	<mx:ComboBox dataProvider="{myData}" id="comboBox1" labelField="Price"  right="20" bottom="20" toolTip="ComboBox"/>
+
+</mx:Application>

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/MP_Controls_Child2.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/MP_Controls_Child2.mxml?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/MP_Controls_Child2.mxml (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/MP_Controls_Child2.mxml Mon Aug  6 20:20:08 2012
@@ -0,0 +1,111 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:comps="comps.*"
+   height="200" backgroundColor="0xFF9966" backgroundImage="">
+<mx:Script>
+	<![CDATA[
+
+        import mx.events.*;
+        import mx.controls.TextInput;
+
+		[Bindable]
+		private var myData:Array = [
+           { Artist:'ArtistA', Album:'AlbumA', Price:11.99, Rating:'Excellent' },
+           { Artist:'ArtistA', Album:'AlbumB', Price:10.99, Rating:'Excellent' },
+           { Artist:'ArtistA', Album:'AlbumC', Price:12.99, Rating:'Excellent' },
+           { Artist:'ArtistA', Album:'AlbumD', Price:11.99, Rating:'Good' },
+           { Artist:'ArtistA', Album:'AlbumE', Price:11.99, Rating:'Good' },
+           { Artist:'Other', Album:'Other', Price:5.99, Rating:'Bad' }
+		];
+
+        [Bindable]
+        private var quantityInfo:Array = [
+           {Company: 'Blue Horizon', Contact: 'Bob Jones',
+               Product: 'Pinatas', Inventory: 200},
+           {Company: 'Allied', Contact: 'Jane Smith',
+               Product: 'Candy Hearts', Inventory: 190}
+        ];
+
+         public function validateData(event:DataGridEvent):void
+         {
+             // Check the reason for the event.
+             if (event.reason == DataGridEventReason.OTHER ||
+                 event.reason == DataGridEventReason.CANCELLED)
+             {
+                 // Do not update cell.
+                 return;
+             }
+
+             // Get the new data value from the editor.
+             var newData:Number= Number(TextInput(myGrid.itemEditorInstance).text);
+             if(newData < 100) {
+                event.preventDefault();
+                TextInput(myGrid.itemEditorInstance).errorString = "Enter a valid number over 100.";
+             }
+        }
+	]]>
+</mx:Script>
+
+<mx:Style source="../../../../Assets/Fonts/myStyles.css" />
+
+<mx:XML id="treeData" format="e4x" >
+  <node>
+		<node label="Containers" data="Containers.as">
+		    <node label="DividedBoxClasses">
+			<node label="BoxDivider" data="BoxDivider.as" />
+		</node>
+		    <node label="GridClasses">
+			    <node label="GridRow" data="GridRow.as" />
+			    <node label="GridItem" data="GridItem.as" />
+		    </node>
+		</node>
+		<node label="Printing">
+			<node label="PrintJob" data="PrintJob.as" />
+			<node label="PrintJob1" data="PrintJob1.as" />
+			<node label="PrintTree" data="PrintTree.as" />
+		</node>
+		<node label="Data">
+		    <node label="Messages">
+			    <node label="DataMessage" data="DataMessage.as" />
+			    <node label="SequenceMessage" data="SequenceMessage.as" />
+			    <node label="PagedMessage" data="PagedMessage.as" />
+		    </node>
+		    <node label="Events">
+			    <node label="ConflictEvents">
+				<node label="ResolveEvent" data="ResolveEvent.as" />
+				<node label="BubbleEvent" data="BubbleEvent.as" />
+			</node>
+			    <node label="CommitFaultEvent" data="CommitFaultEvent.as" />
+		    </node>
+		</node>
+    </node>
+</mx:XML>
+    <mx:ComboBox dataProvider="{myData}" id="comboBox1" labelField="Price"  x="20" bottom="20" toolTip="ComboBox"/>
+	<mx:MenuBar id="menuBar1" dataProvider="{treeData}" labelField="@label" showRoot="false" x="140" bottom="25" />
+    <mx:PopUpMenuButton id="popUpMenuButton1" dataProvider="{myData}" label="Select:" labelField="Price" x="380" bottom="25" toolTip="My PopUpMenuButton Tooltip" />
+	<mx:DataGrid id="myGrid" dataProvider="{quantityInfo}" editable="true" itemEditEnd="validateData(event)" rowCount="5">
+        <mx:columns>
+            <mx:DataGridColumn dataField="Company" editable="false"/>
+            <mx:DataGridColumn dataField="Product" editable="false"/>
+            <mx:DataGridColumn dataField="Inventory"/>
+        </mx:columns>
+    </mx:DataGrid>
+
+</mx:Application>

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/MP_CursorManager_Child.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/MP_CursorManager_Child.mxml?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/MP_CursorManager_Child.mxml (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/MP_CursorManager_Child.mxml Mon Aug  6 20:20:08 2012
@@ -0,0 +1,58 @@
+<?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 height="500" width="500"
+    xmlns:mx="http://www.adobe.com/2006/mxml"
+    backgroundColor="0xFFFFFF"
+    backgroundImage="">
+
+  <mx:Style source="../../../../Assets/Fonts/myStyles.css" />
+
+    <mx:Script>
+        <![CDATA[
+        import mx.managers.CursorManager;
+        import mx.managers.CursorManagerPriority;
+
+        [Embed(source='../../../../Assets/Images/ButtonImages/pencil48x48.png')]
+        public var cursorPencil:Class;
+
+        [Embed(source='../../../../Assets/Images/ButtonImages/edit48x48.png')]
+        public var cursorFlask:Class;
+
+        public function ResetCursorManager():void
+        {
+            this.cursorManager.removeAllCursors();
+            this.cursorManager.showCursor();
+        }
+
+        public function showCM(): void
+        {
+            this.cursorManager.showCursor();
+        }
+        ]]>
+    </mx:Script>
+
+    <mx:Fade id="testEffect" alphaFrom="1" alphaTo="2" duration="1000" />
+
+    <mx:Panel x="10" y="10" id="testPanel" layout="absolute"  width="400" height="300"
+        title="Test Panel">
+    <mx:Button bottom="15" id="btn1" click="this.cursorManager.setCursor(cursorPencil, CursorManagerPriority.HIGH, 0, 0)" />
+    <mx:Button bottom="15" right="10" id="btn2" click="ResetCursorManager()" />
+</mx:Panel>
+</mx:Application>

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/MP_CursorManager_Child_WithControls.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/MP_CursorManager_Child_WithControls.mxml?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/MP_CursorManager_Child_WithControls.mxml (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/MP_CursorManager_Child_WithControls.mxml Mon Aug  6 20:20:08 2012
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundImage="" backgroundColor="0xFFFFFF"
+>
+<mx:Script>
+	<![CDATA[
+
+		[Bindable]
+		private var dpMain:Array = [
+		    {Fruit: "Kiwi", Color: "Green"},
+		    {Fruit: "Strawberry", Color: "Red"},
+		    {Fruit: "Orange", Color: "Orange"},
+		    {Fruit: "Banana", Color: "Yellow"}
+		 ];
+
+        public function ResetCursorManager():void
+        {
+            this.cursorManager.removeAllCursors();
+            this.cursorManager.showCursor();
+        }
+
+	]]>
+</mx:Script>
+
+<mx:Style source="../../../../Assets/Fonts/myStyles.css" />
+
+
+    <mx:DividedBox id="container_dividedbox" height="300" width="300" borderColor="0x000000" borderStyle="solid">
+    <mx:VBox>
+        <mx:LinkButton id="control_link" label="my label" />
+    </mx:VBox>
+    <mx:VBox>
+    	<mx:DataGrid id="control_datagrid" dataProvider="{dpMain}" width="250" />
+    </mx:VBox>
+</mx:DividedBox>
+
+<mx:Button bottom="15" right="10" id="btn2" click="ResetCursorManager()" />
+
+</mx:Application>
+

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/MP_DragManager_Events.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/MP_DragManager_Events.mxml?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/MP_DragManager_Events.mxml (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/MP_DragManager_Events.mxml Mon Aug  6 20:20:08 2012
@@ -0,0 +1,72 @@
+<?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 xmlns:mx="http://www.adobe.com/2006/mxml"
+        width="600" height="700" paddingLeft="6" paddingRight="6" backgroundColor="#FFFFFF" creationComplete="initApp()">
+
+<mx:Script>
+    <![CDATA[
+
+    import mx.collections.*;
+    import mx.managers.DragManager;
+    import mx.core.DragSource;
+    import mx.managers.DragManager;
+
+
+    [Bindable]
+    public var dp:Array = [
+		                {firstName:"First", lastName:"blah"},
+		                {firstName:"Second", lastName:"blah"},
+		                {firstName:"Third", lastName:"blah"},
+		                {firstName:"Fourth", lastName:"blah"},
+		                {firstName:"Fifth", lastName:"blah"},
+		                {firstName:"Sixth", lastName:"blah"},
+		                {firstName:"Seventh", lastName:"blah"},
+		                {firstName:"Eighth", lastName:"blah"},
+		                {firstName:"Nineth", lastName:"blah"},
+		                {firstName:"Tenth", lastName:"blah"},
+		                {firstName:"Eleventh", lastName:"blah"},
+		                {firstName:"Twelfth", lastName:"blah"},
+		                {firstName:"Thirteenth", lastName:"blah"},
+		                {firstName:"Fourteenth", lastName:"blah"},
+		                {firstName:"Fifteenth", lastName:"blah"},
+		                {firstName:"Sixteenth", lastName:"blah"},
+		                {firstName:"Seventeenth", lastName:"blah"}
+                ];
+
+    public function initApp() : void
+    {
+        firstList.dataProvider = dp;
+        secondList.dataProvider = [];
+    }
+
+
+    ]]>
+</mx:Script>
+
+<mx:HBox paddingBottom="6">
+
+    <mx:List  id="firstList" labelField="firstName" width="250" height="100%" dragEnabled="true"
+        allowMultipleSelection="true" dragMoveEnabled="true" />
+    <mx:List id="secondList" labelField="firstName" width="250" height="100%" dragEnabled="true"
+        dropEnabled="true" />
+</mx:HBox>
+
+</mx:Application>

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/MP_FCK_childApp.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/MP_FCK_childApp.mxml?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/MP_FCK_childApp.mxml (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/MP_FCK_childApp.mxml Mon Aug  6 20:20:08 2012
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<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"
+    xmlns:local="*">
+    <fx:Script>
+        <![CDATA[
+            import mx.controls.Alert;       
+            import mx.collections.ArrayCollection;
+            
+            [Bindable]
+            private var myData:Array = [
+                { Artist:'ArtistA', Album:'AlbumA', Price:11.99, Rating:'Excellent' },
+                { Artist:'ArtistA', Album:'AlbumB', Price:10.99, Rating:'Excellent' },
+                { Artist:'ArtistA', Album:'AlbumC', Price:12.99, Rating:'Excellent' },
+                { Artist:'ArtistA', Album:'AlbumD', Price:11.99, Rating:'Good' },
+                { Artist:'ArtistA', Album:'AlbumE', Price:11.99, Rating:'Good' },
+                { Artist:'Other', Album:'Other', Price:5.99, Rating:'Bad' }
+            ];
+            
+            [Bindable]
+            private var quantityInfo:ArrayCollection = new ArrayCollection(myData);
+
+        ]]>
+    </fx:Script>
+    <s:Group id="group1" width="240" height="300">
+    <local:TransitionsContainer id="fckContainer">
+        <s:VGroup>
+            <s:Button id="button1" label="show Alert" click="Alert.show('Carnivores eat peanuts.')"/>
+            <mx:List id="list10" dataProvider="['Red', 'Blue', 'Orange', 'Yellow']" dragEnabled="true" height="50" width="130"/>
+            <s:DropDownList id="dropdown1" dataProvider="{quantityInfo}" labelField="Price"  x="20" bottom="20" toolTip="ComboBox"/>
+       </s:VGroup>
+    </local:TransitionsContainer>
+    </s:Group>
+</s:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/MP_PopUpManager_Child.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/MP_PopUpManager_Child.mxml?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/MP_PopUpManager_Child.mxml (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/MP_PopUpManager_Child.mxml Mon Aug  6 20:20:08 2012
@@ -0,0 +1,95 @@
+<?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="600"
+    xmlns:comps="comps.*">
+<mx:Script>
+    <![CDATA[
+
+       import mx.managers.PopUpManager;
+	   import mx.controls.Button;
+	   import mx.containers.Panel;
+	   import mx.managers.ISystemManager;
+	   import comps.MyCanvasMXML;
+	   import mx.core.IFlexDisplayObject;
+	   import mx.core.UIComponent;
+	   import mx.events.FlexMouseEvent;
+       import mx.managers.PopUpManagerChildList;
+
+    public var iPopUp:IFlexDisplayObject;
+
+	public var iPanel:Panel;
+
+
+	public function closeWindow(popUp:IFlexDisplayObject):void
+	{
+		PopUpManager.removePopUp(popUp);
+	}
+
+
+	public function openWindow4(modalSetting:Boolean):void
+	{
+		iPopUp = PopUpManager.createPopUp(ISystemManager(this.systemManager).getSandboxRoot(), comps.MyCanvasMXML, modalSetting, "popup");
+	}
+
+	public function openWindow3(modalSetting:Boolean):void
+	{
+		iPopUp = PopUpManager.createPopUp(this, comps.MyCanvasMXML, modalSetting, "popup");
+	}
+
+	public function centerMyPopUp():void
+	{
+		PopUpManager.centerPopUp(iPopUp);
+	}
+
+	public function centerPanel(event:MouseEvent):void
+	{
+		PopUpManager.centerPopUp(iPanel);
+	}
+
+	public function addWindow(modalSetting:Boolean):void
+	{
+		iPanel = new Panel();
+		iPanel.title = "My Test PopUp: Modal Setting:" + String(modalSetting);
+		iPanel.width=220;
+		iPanel.height=150;
+		var btn2:Button = new Button();
+		btn2.label="close";
+		iPanel.addChild(btn2);
+		var btn3:Button = new Button();
+		btn3.label = "center";
+		btn3.addEventListener("click", centerPanel);
+		iPanel.addChild(btn3);
+	    PopUpManager.addPopUp(iPanel, this , modalSetting, PopUpManagerChildList.POPUP);
+	}
+
+  ]]>
+</mx:Script>
+
+<mx:Style source="../../../../Assets/Fonts/myStyles.css" />
+
+<mx:TextInput id="ta" />
+<mx:Panel id="myPanel" />
+<mx:CheckBox label="modal checkbox" id="modalCheckBox" />
+<mx:Button id="btn_openWindow4" click="openWindow4(modalCheckBox.selected)" />
+<mx:Button id="btn_centerMyPopUp" click="centerMyPopUp()" />
+<mx:Button id="btn_closeWindow" click="closeWindow(iPopUp)" />
+<mx:Button id="btn_addWindow" click="addWindow(modalCheckBox.selected)" />
+<mx:Button id="btn_openWindow3" click="openWindow3(modalCheckBox.selected)" />
+</mx:Application>

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/MP_PopUpManager_Main.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/MP_PopUpManager_Main.mxml?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/MP_PopUpManager_Main.mxml (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/MP_PopUpManager_Main.mxml Mon Aug  6 20:20:08 2012
@@ -0,0 +1,89 @@
+<?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.PopUpManager;
+	   import mx.controls.Button;
+	   import mx.containers.Panel;
+	   import comps.MyCanvasMXML;
+	   import mx.core.IFlexDisplayObject;
+	   import mx.core.UIComponent;
+	   import mx.events.FlexMouseEvent;
+       import mx.managers.PopUpManagerChildList;
+
+    public var iPopUp:IFlexDisplayObject;
+
+	public var iPanel:Panel;
+
+
+	public function closeWindow(popUp:IFlexDisplayObject):void
+	{
+		PopUpManager.removePopUp(popUp);
+	}
+
+
+	public function openWindow4(modalSetting:Boolean):void
+	{
+		iPopUp = PopUpManager.createPopUp(this, comps.MyCanvasMXML, modalSetting, "popup");
+	}
+
+	public function centerMyPopUp():void
+	{
+		PopUpManager.centerPopUp(iPopUp);
+	}
+
+	public function centerPanel(event:MouseEvent):void
+	{
+		PopUpManager.centerPopUp(iPanel);
+	}
+
+	public function addWindow(modalSetting:Boolean):void
+	{
+		iPanel = new Panel();
+		iPanel.title = "My Test PopUp: Modal Setting:" + String(modalSetting);
+		iPanel.width=220;
+		iPanel.height=150;
+		var btn2:Button = new Button();
+		btn2.label="close";
+		iPanel.addChild(btn2);
+		var btn3:Button = new Button();
+		btn3.label = "center";
+		btn3.addEventListener("click", centerPanel);
+		iPanel.addChild(btn3);
+	    PopUpManager.addPopUp(iPanel, this , modalSetting, PopUpManagerChildList.POPUP);
+	}
+
+  ]]>
+</mx:Script>
+
+<mx:Style source="../../../Assets/Fonts/myStyles.css" />
+
+<mx:TextInput id="ta" />
+<mx:Panel id="myPanel" />
+<mx:CheckBox label="modal checkbox" id="modalCheckBox" />
+<mx:Button id="btn_openWindow4" click="openWindow4(modalCheckBox.selected)" />
+<mx:Button id="btn_centerMyPopUp" click="centerMyPopUp()" />
+<mx:Button id="btn_closeWindow" click="closeWindow(iPopUp)" />
+<mx:Button id="btn_addWindow" click="addWindow(modalCheckBox.selected)" />
+
+</mx:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/MP_RPC_dataSetMain.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/MP_RPC_dataSetMain.mxml?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/MP_RPC_dataSetMain.mxml (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/MP_RPC_dataSetMain.mxml Mon Aug  6 20:20:08 2012
@@ -0,0 +1,23 @@
+<?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="*" xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
+    <mx:DataGrid id="dg"/>
+    <mx:TextArea id="txt" width="600" height="600" />
+</mx:Application>

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/MP_ResourceManager_Child.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/MP_ResourceManager_Child.mxml?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/MP_ResourceManager_Child.mxml (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/MP_ResourceManager_Child.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.
+
+-->
+<mx:Application backgroundColor="0xFFFFFF" xmlns:mx="http://www.adobe.com/2006/mxml">
+	<mx:Script>
+	<![CDATA[
+
+		import mx.resources.ResourceBundle;
+		import mx.resources.ResourceManager;
+
+        public function getResourcesLength(): int
+        {
+            return ResourceManager.getInstance().getLocales().length;
+        }
+
+        public function getLocalesMethod(localeString:String): int
+        {
+            return ResourceManager.getInstance().getLocales().indexOf(localeString);
+        }
+
+        public function getStringMethod(bundleName:String, key:String): String
+        {
+            return ResourceManager.getInstance().getString(bundleName, key);
+        }
+
+	]]>
+	</mx:Script>
+
+<mx:Button id="control2" />
+<mx:Label id="lbl2" />
+
+
+</mx:Application>

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/MP_ResourceManager_Main.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/MP_ResourceManager_Main.mxml?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/MP_ResourceManager_Main.mxml (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/SWFs/assets/MP_ResourceManager_Main.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.
+
+-->
+<mx:Application backgroundColor="0xFFFFFF" xmlns:mx="http://www.adobe.com/2006/mxml">
+	<mx:Script>
+	<![CDATA[
+
+		import mx.resources.ResourceBundle;
+		import mx.resources.ResourceManager;
+
+        public function getResourcesLength(): int
+        {
+            return ResourceManager.getInstance().getLocales().length;
+        }
+
+        public function getLocalesMethod(localeString:String): int
+        {
+            return ResourceManager.getInstance().getLocales().indexOf(localeString);
+        }
+
+        public function getStringMethod(bundleName:String, key:String): String
+        {
+            return ResourceManager.getInstance().getString(bundleName, key);
+        }
+
+	]]>
+	</mx:Script>
+
+<mx:Button id="control2" />
+<mx:Label id="lbl2" />
+
+
+</mx:Application>



Mime
View raw message