Transferred from the Adobe Open Source Subversion Repository

Revision: 4980
Author:   rfrishbe@adobe.com
Date:     2009-02-17T02:44:16.795158Z

Log Message:
-----------
Reverting change 4934 to move it to 3.x instead.  The bug was around NativeDragManager.

QE Notes: None
Doc Notes: None
Bugs: SDK-19079
Reviewer: None (Jason reviewed original change)
tests: checkintests (ran more tests before)

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1261813 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/framework/src/mx/managers/SystemManager.as
+++ frameworks/projects/framework/src/mx/managers/SystemManager.as
@@ -3035,79 +3035,84 @@
 		dispatchEvent(new FlexEvent(FlexEvent.APPLICATION_COMPLETE));
 	}

-    /**
-     *  @private
-     *  This is attached as the framescript at the end of frame 2.
-     *  When this function is called, we know that the application
-     *  class has been defined and read in by the Player.
-     */
-    mx_internal function docFrameHandler(event:Event = null):void
-    {
-        // The ResourceManager has already been registered
-        // by initialize() in frame 1.
-
-        // Register other singleton classes.
-        // Note: getDefinitionByName() will return null
-        // if the class can't be found.
-
-        Singleton.registerClass("mx.managers::IBrowserManager",
-            Class(getDefinitionByName("mx.managers::BrowserManagerImpl")));
-
-        Singleton.registerClass("mx.managers::ICursorManager",
-            Class(getDefinitionByName("mx.managers::CursorManagerImpl")));
-
-        Singleton.registerClass("mx.managers::IHistoryManager",
-            Class(getDefinitionByName("mx.managers::HistoryManagerImpl")));
-
-        Singleton.registerClass("mx.managers::ILayoutManager",
-            Class(getDefinitionByName("mx.managers::LayoutManager")));
-
-        Singleton.registerClass("mx.managers::IPopUpManager",
-            Class(getDefinitionByName("mx.managers::PopUpManagerImpl")));
-
-        Singleton.registerClass("mx.managers::IToolTipManager2",
-            Class(getDefinitionByName("mx.managers::ToolTipManagerImpl")));
-
-        var dragManagerClass:Class = null;
-
-        // Make this call to create a new instance of the DragManager singleton.
-        // Try to link in the NativeDragManager first. This will allow the
-        // application to receive NativeDragEvents that originate from the
-        // desktop.  If it can't be found, then we're
-        // not in AIR, and it can't be linked in, so we should just work off of
-        // the regular Flex DragManager.
-        dragManagerClass = Class(getDefinitionByName("mx.managers::NativeDragManagerImpl"));
-
-        if (dragManagerClass == null)
-            dragManagerClass = Class(getDefinitionByName("mx.managers::DragManagerImpl"));
-
-        Singleton.registerClass("mx.managers::IDragManager", dragManagerClass);
-
-        var textFieldFactory:TextFieldFactory; // ref to cause TextFieldFactory to be linked in
-        Singleton.registerClass("mx.core::ITextFieldFactory",
-            Class(getDefinitionByName("mx.core::TextFieldFactory")));
-
-        executeCallbacks();
-        doneExecutingInitCallbacks = true;
+	/**
+	 *  @private
+	 *  This is attached as the framescript at the end of frame 2.
+	 *  When this function is called, we know that the application
+	 *  class has been defined and read in by the Player.
+	 */
+	mx_internal function docFrameHandler(event:Event = null):void
+	{
+		// The ResourceManager has already been registered
+		// by initialize() in frame 1.
+
+		// Register other singleton classes.
+		// Note: getDefinitionByName() will return null
+		// if the class can't be found.
+
+		Singleton.registerClass("mx.managers::IBrowserManager",
+			Class(getDefinitionByName("mx.managers::BrowserManagerImpl")));
+
+		Singleton.registerClass("mx.managers::ICursorManager",
+			Class(getDefinitionByName("mx.managers::CursorManagerImpl")));
+
+		Singleton.registerClass("mx.managers::IHistoryManager",
+			Class(getDefinitionByName("mx.managers::HistoryManagerImpl")));
+
+		Singleton.registerClass("mx.managers::ILayoutManager",
+			Class(getDefinitionByName("mx.managers::LayoutManager")));
+
+		Singleton.registerClass("mx.managers::IPopUpManager",
+			Class(getDefinitionByName("mx.managers::PopUpManagerImpl")));
+
+		Singleton.registerClass("mx.managers::IToolTipManager2",
+			Class(getDefinitionByName("mx.managers::ToolTipManagerImpl")));
+
+		if (Capabilities.playerType == "Desktop")
+		{
+			Singleton.registerClass("mx.managers::IDragManager",
+				Class(getDefinitionByName("mx.managers::NativeDragManagerImpl")));
+
+			// Make this call to create a new instance of the DragManager singleton.
+			// This will allow the application to receive NativeDragEvents that originate
+			// from the desktop.
+			// if this class is not registered, it's most likely because the NativeDragManager is not
+			// linked in correctly. all back to old DragManager.
+			if (Singleton.getClass("mx.managers::IDragManager") == null)
+				Singleton.registerClass("mx.managers::IDragManager",
+					Class(getDefinitionByName("mx.managers::DragManagerImpl")));
+		}
+		else
+		{
+			Singleton.registerClass("mx.managers::IDragManager",
+				Class(getDefinitionByName("mx.managers::DragManagerImpl")));
+		}
+
+		var textFieldFactory:TextFieldFactory; // ref to cause TextFieldFactory to be linked in
+		Singleton.registerClass("mx.core::ITextFieldFactory",
+			Class(getDefinitionByName("mx.core::TextFieldFactory")));
+
+		executeCallbacks();
+		doneExecutingInitCallbacks = true;

         var mixinList:Array = info()["mixins"];
-        if (mixinList && mixinList.length > 0)
-        {
-            var n:int = mixinList.length;
-            for (var i:int = 0; i < n; ++i)
-            {
-                // trace("initializing mixin " + mixinList[i]);
-                var c:Class = Class(getDefinitionByName(mixinList[i]));
-                c["init"](this);
-            }
+		if (mixinList && mixinList.length > 0)
+		{
+		    var n:int = mixinList.length;
+			for (var i:int = 0; i < n; ++i)
+		    {
+		        // trace("initializing mixin " + mixinList[i]);
+		        var c:Class = Class(getDefinitionByName(mixinList[i]));
+		        c["init"](this);
+		    }
         }
-
-        installCompiledResourceBundles();
-
-        initializeTopLevelWindow(null);
-
-        deferredNextFrame();
-    }
+
+		installCompiledResourceBundles();
+
+		initializeTopLevelWindow(null);
+
+		deferredNextFrame();
+	}

     /**
      *  @private


Transferred from the Adobe Open Source Subversion Repository

Revision: 23246
Author:   cframpto@adobe.com
Date:     2011-12-20T17:40:08.069454Z

Log Message:
-----------
Rollback 23243.  If comment followed header it was stripped as well.

Modified Paths:
--------------
2361 paths were modified

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1253038 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/charts/src/mx/charts/chartClasses/HLOCSeriesBase.as
+++ frameworks/projects/charts/src/mx/charts/chartClasses/HLOCSeriesBase.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2009 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////

 package mx.charts.chartClasses
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 22217
Author:   mhorn@adobe.com
Date:     2011-08-25T18:07:03.696931Z

Log Message:
-----------
minor asdoc change

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/VideoPlayer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/FormHeading.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/framework/src/mx/controls/ToolTip.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/TabBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/VideoDisplay.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/Panel.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/Form.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/NumericStepper.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/VSlider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/ComboBox.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/TitleWindow.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/ToggleButton.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/Spinner.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mx/src/mx/controls/ProgressBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/BorderContainer.as</path>

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1281148 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/components/VideoDisplay.as
+++ frameworks/projects/spark/src/spark/components/VideoDisplay.as
@@ -154,7 +154,7 @@
  * Because this component does not define a skin for the mobile theme, Adobe
  * recommends that you not use it in a mobile application. Alternatively, you
  * can define your own mobile skin for the component. For more information,
- * see Spark Skinning.
+ * see Basics of mobile skinning.
  */
 [DiscouragedForProfile("mobileDevice")]


Transferred from the Adobe Open Source Subversion Repository

Revision: 18747
Author:   rfrishbe@adobe.com
Date:     2010-11-19T21:49:23.290523Z

Log Message:
-----------
A few MobileSkin changes

1) Added new protected methods to MobileSkin (getElementPreferredWidth(), getElementPreferredHeight())
2) Renamed MobileSkin resizePart(), positionPart() to resizeElement, positionElement().  This matches MobileItemRenderer but still needs to be PARBed
3) Fixed up multi-line resize in TextAreaSkin

QE notes:
Doc notes:
Bugs: -
Reviewer: Evtim
Tests run: checkintests, mustella cyclone
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/MobileSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ActionBarButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/SelectableButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/VScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/TextSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HScrollBarSkin.as</path>

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1265111 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionBarSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionBarSkin.as
@@ -254,7 +254,7 @@
         var contentGroupsHeight:Number = unscaledHeight - (layoutBorderHeight * 2);

         // FXG uses scale-9, drop shadow is drawn outside the bounds
-        resizePart(border, unscaledWidth, unscaledHeight + layoutShadowHeight);
+        resizeElement(border, unscaledWidth, unscaledHeight + layoutShadowHeight);

         // position groups, overlap of navigation and action groups is allowed
         // when overlap occurs, titleDisplay/titleGroup is not visible


Transferred from the Adobe Open Source Subversion Repository

Revision: 23243
Author:   cframpto@adobe.com
Date:     2011-12-20T00:59:57.384047Z

Log Message:
-----------
In frameworks, remove Adobe headers from all files except xml/mxml file types.  There are also a few .txt files that are license files that I didn't touch yet.

Modified Paths:
--------------
2361 paths were modified

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1258531 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/framework/src/mx/binding/IWatcherSetupUtil2.as
+++ frameworks/projects/framework/src/mx/binding/IWatcherSetupUtil2.as
@@ -1,13 +1,3 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2005-2006 Adobe Systems Incorporated
-//  All Rights Reserved.
-//
-//  NOTICE: Adobe permits you to use, modify, and distribute this file
-//  in accordance with the terms of the license agreement accompanying it.
-//
-////////////////////////////////////////////////////////////////////////////////

 package mx.binding
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 23243
Author:   cframpto@adobe.com
Date:     2011-12-20T00:59:57.384047Z

Log Message:
-----------
In frameworks, remove Adobe headers from all files except xml/mxml file types.  There are also a few .txt files that are license files that I didn't touch yet.

Modified Paths:
--------------
2361 paths were modified

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1260035 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/framework/src/mx/core/UIComponentDescriptor.as
+++ frameworks/projects/framework/src/mx/core/UIComponentDescriptor.as
@@ -1,13 +1,3 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2003-2006 Adobe Systems Incorporated
-//  All Rights Reserved.
-//
-//  NOTICE: Adobe permits you to use, modify, and distribute this file
-//  in accordance with the terms of the license agreement accompanying it.
-//
-////////////////////////////////////////////////////////////////////////////////

 package mx.core
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 23243
Author:   cframpto@adobe.com
Date:     2011-12-20T00:59:57.384047Z

Log Message:
-----------
In frameworks, remove Adobe headers from all files except xml/mxml file types.  There are also a few .txt files that are license files that I didn't touch yet.

Modified Paths:
--------------
2361 paths were modified

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1269176 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/mx/src/mx/controls/videoClasses/VideoPlayer.as
+++ frameworks/projects/mx/src/mx/controls/videoClasses/VideoPlayer.as
@@ -1,13 +1,3 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2005-2007 Adobe Systems Incorporated
-//  All Rights Reserved.
-//
-//  NOTICE: Adobe permits you to use, modify, and distribute this file
-//  in accordance with the terms of the license agreement accompanying it.
-//
-////////////////////////////////////////////////////////////////////////////////

 package mx.controls.videoClasses
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 23243
Author:   cframpto@adobe.com
Date:     2011-12-20T00:59:57.384047Z

Log Message:
-----------
In frameworks, remove Adobe headers from all files except xml/mxml file types.  There are also a few .txt files that are license files that I didn't touch yet.

Modified Paths:
--------------
2361 paths were modified

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1279722 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/components/NavigatorContent.as
+++ frameworks/projects/spark/src/spark/components/NavigatorContent.as
@@ -1,13 +1,3 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2008 Adobe Systems Incorporated
-//  All Rights Reserved.
-//
-//  NOTICE: Adobe permits you to use, modify, and distribute this file
-//  in accordance with the terms of the license agreement accompanying it.
-//
-////////////////////////////////////////////////////////////////////////////////

 package spark.components
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 7539
Author:   cframpto@adobe.com
Date:     2009-06-03T21:41:04.560668Z

Log Message:
-----------
Integrate TLF 446. tcm.getText no longer appends terminator to the end of the string.  TCM.hasScrollRect is now private.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/in/tlf/textLayout.swz</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/libs/textLayout.swc</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/RichEditableTextContainerManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/in/tlf/textLayout.swf</path>
<path kind="file" action="M">/flex/sdk/trunk/in/tlf/tlf.properties</path>

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1280119 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/components/RichEditableText.as
+++ frameworks/projects/spark/src/spark/components/RichEditableText.as
@@ -1359,6 +1359,8 @@
      */
     private var textChanged:Boolean = false;

+    //[Bindable("change")]
+
     /**
      *  The text String displayed by this TextView.
      *
@@ -1370,7 +1372,7 @@
     public function get text():String
     {
         if (!displayAsPassword)
-            _text = getText();
+            _text = _textContainerManager.getText("\n");

         return _text;
     }
@@ -1587,7 +1589,7 @@
             {
                 // Make sure _text is set with the actual text before we
                 // change the displayed text.
-                _text = getText();
+                _text = _textContainerManager.getText("\n");

                 // ToDo: if content, should the paragraph terminators be
                 // left in the string so the displayAsPassword string has the
@@ -2522,29 +2524,7 @@

   		editingMode = newEditingMode;
     }
-
-    /**
-     *  @private
-     *  Get the text from the textFlow.  This wrapper can go away once Vellum
-     *  gives us a getText that doesn't put a paragraph terminator on the
-     *  last paragraph.
-     */
-    private function getText():String
-    {
-        var t:String = _textContainerManager.getText("\n");
-
-        // ToDo: asked TLF if they not put the terminator on the last
-        // paragraph
-
-        // Remove terminator on the last paragraph, ie remove the last char.
-        // t true implies length > 0.
-        if (t != null && t.length > 0 && t.charAt(t.length-1) == "\n")
-            t = t.slice(0, -1);
-
-        return t;
-    }
-
-
+
     /**
      *  Sets the selection range.  By default, the entire range is selected.
      *  If you pass negative numbers for the position, it will deselect.


Transferred from the Adobe Open Source Subversion Repository

Revision: 6453
Author:   cframpto@adobe.com
Date:     2009-05-01T11:55:04.914220Z

Log Message:
-----------
Add module headers to RichEditableTextContainerManager.as and InvalidatingSprite.as.
Comment out trace in RichEditableText.as.

QE Notes:
Doc Notes:
Bugs:
Reviewers: Gordon

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/InvalidatingSprite.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/RichEditableTextContainerManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/RichEditableText.as</path>

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1280088 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/components/RichEditableText.as
+++ frameworks/projects/spark/src/spark/components/RichEditableText.as
@@ -2734,7 +2734,7 @@
      */
     mx_internal function focusInHandler(event:FocusEvent):void
     {
-        trace("focusIn handler");
+        //trace("focusIn handler");
         if (_editable)
         {
             // If no selection, give it one so that there is an insertion


ChromelessPlayer constructor refactory

ChromelessPlayer constructor refactory

--- src/org/mangui/chromeless/ChromelessPlayer.as
+++ src/org/mangui/chromeless/ChromelessPlayer.as
@@ -36,20 +36,15 @@

         /** Initialization. **/
         public function ChromelessPlayer() {
-            // Set stage properties
-            stage.scaleMode = StageScaleMode.NO_SCALE;
-            stage.align = StageAlign.TOP_LEFT;
-            stage.fullScreenSourceRect = new Rectangle(0, 0, stage.stageWidth, stage.stageHeight);
-            stage.addEventListener(StageVideoAvailabilityEvent.STAGE_VIDEO_AVAILABILITY, _onStageVideoState);
-            stage.addEventListener(Event.RESIZE, _onStageResize);
-            // Draw sheet for catching clicks
-            _sheet = new Sprite();
-            _sheet.graphics.beginFill(0x000000, 0);
-            _sheet.graphics.drawRect(0, 0, stage.stageWidth, stage.stageHeight);
-            _sheet.addEventListener(MouseEvent.CLICK, _clickHandler);
-            _sheet.buttonMode = true;
-            addChild(_sheet);
-            // Connect getters to JS.
+            _setupStage();
+            _setupSheet();
+            _setupExternalGetters();
+            _setupExternalCallers();
+
+            setTimeout(_pingJavascript, 50);
+        };
+
+        private function _setupExternalGetters():void {
             ExternalInterface.addCallback("getLevel", _getLevel);
             ExternalInterface.addCallback("getLevels", _getLevels);
             ExternalInterface.addCallback("getAutoLevel", _getAutoLevel);
@@ -73,7 +68,9 @@
             ExternalInterface.addCallback("getPlayerVersion", _getPlayerVersion);
             ExternalInterface.addCallback("getAudioTrackList", _getAudioTrackList);
             ExternalInterface.addCallback("getAudioTrackId", _getAudioTrackId);
-            // Connect calls to JS.
+        };
+
+        private function _setupExternalCallers():void {
             ExternalInterface.addCallback("playerLoad", _load);
             ExternalInterface.addCallback("playerPlay", _play);
             ExternalInterface.addCallback("playerPause", _pause);
@@ -94,9 +91,25 @@
             ExternalInterface.addCallback("playerCapLeveltoStage", _setCapLeveltoStage);
             ExternalInterface.addCallback("playerSetAudioTrack", _setAudioTrack);
             ExternalInterface.addCallback("playerSetJSURLStream", _setJSURLStream);
-
-            setTimeout(_pingJavascript, 50);
-        };
+        };
+
+        private function _setupStage():void {
+            stage.scaleMode = StageScaleMode.NO_SCALE;
+            stage.align = StageAlign.TOP_LEFT;
+            stage.fullScreenSourceRect = new Rectangle(0, 0, stage.stageWidth, stage.stageHeight);
+            stage.addEventListener(StageVideoAvailabilityEvent.STAGE_VIDEO_AVAILABILITY, _onStageVideoState);
+            stage.addEventListener(Event.RESIZE, _onStageResize);
+        }
+
+        private function _setupSheet():void {
+            // Draw sheet for catching clicks
+            _sheet = new Sprite();
+            _sheet.graphics.beginFill(0x000000, 0);
+            _sheet.graphics.drawRect(0, 0, stage.stageWidth, stage.stageHeight);
+            _sheet.addEventListener(MouseEvent.CLICK, _clickHandler);
+            _sheet.buttonMode = true;
+            addChild(_sheet);
+        }

         /** Notify javascript the framework is ready. **/
         protected function _pingJavascript() : void {


Fix a crasher Gato found

Fix a crasher Gato found

git-svn-id: c197267f952b24206666de142881703007ca05d5@9667 b35dd754-fafc-0310-a699-88a17e54d16e

--- src/org/jivesoftware/xiff/core/XMPPConnection.as
+++ src/org/jivesoftware/xiff/core/XMPPConnection.as
@@ -501,6 +501,12 @@
 				}
 			}

+			if(ev.data == "</flash:stream>")
+			{
+				socketClosed(null);
+				return;
+			}
+
 			var xmlData:XMLDocument = new XMLDocument();
 			xmlData.ignoreWhite = this.ignoreWhite;
 			xmlData.parseXML( ev.data );


log autoload url

log autoload url

--- src/org/mangui/chromeless/ChromelessPlayer.as
+++ src/org/mangui/chromeless/ChromelessPlayer.as
@@ -25,6 +25,7 @@
     import org.mangui.hls.utils.JSURLStream;
     import org.mangui.hls.utils.Log;
     import org.mangui.hls.utils.ScaleVideo;
+    import org.hola.ZErr;

     // import com.sociodox.theminer.*;
     public class ChromelessPlayer extends Sprite {
@@ -532,6 +533,7 @@

             var autoLoadUrl : String = root.loaderInfo.parameters.url as String;
             if (autoLoadUrl != null) {
+                ZErr.notice('autoLoadUrl', autoLoadUrl);
                 _autoLoad = true;
                 _load(autoLoadUrl);
             }


Transferred from the Adobe Open Source Subversion Repository

Revision: 11332
Author:   gosmith@adobe.com
Date:     2009-10-30T21:40:07.686464Z

Log Message:
-----------
Added the beginnings of accessibility support for Spark's Window and WindowedApplication.

The new WindowAccImpl and WindowedApplicationAccImpl classes live in airframework.swc, not spark.swc, because this is where Window and WindowedApplication live. All AIR components for both MX and Spark are in airframework.swc, which gets compiled against airglobal.swc rather than playerglobal.swc in order to get AIR-specific classes like NativeWindow.

The trunk has AIR 1.5.2, which is the current version. This version has classes like AccessibilityImplementation, but they aren't operational; there is no actual MSAA support. However, AIR 2.0 will support MSAA, so accessibility code compiled against 1.5.2 should start to work in 2.0.

QE notes: None
Doc notes: None
Bugs: None
Reviewer: Evtim
Tests run: ant checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/accessibility/WindowedApplicationAccImpl.as</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/accessibility</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/accessibility/WindowAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/Window.as</path>

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1250591 13f79535-47bb-0310-9956-ffa450edef68


Transferred from the Adobe Open Source Subversion Repository

Revision: 12789
Author:   smgilson@adobe.com
Date:     2009-12-10T15:51:11.001332Z

Log Message:
-----------
asdoc prep for L10N

QE notes: -
Doc notes: -
Bugs: -
Reviewer: -
Tests run: - checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/ContainerMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1253694 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/flash-integration/src/mx/flash/ContainerMovieClip.as
+++ frameworks/projects/flash-integration/src/mx/flash/ContainerMovieClip.as
@@ -192,9 +192,8 @@
      *  of a Flash container, you do not use the addChild() or addChildAt() method.
      *  Instead, you assign the child directly to the content property.

      *
-     *  @example
-     *  The following example assigns a container to the ContainerMovieClip.content property.
-     * <listing version="3.0">
+     *
The following example assigns a container to the ContainerMovieClip.content property.

+     *

      *  <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
      *     xmlns:myComps="~~">
      *
@@ -226,9 +225,7 @@
      *
      *     <myComps:MyPictureFrameContainer id="pFrame"
      *         initialize="init();"/>
-     * </mx:Application>
-     * </listing>
-     *
+     * </mx:Application>

      *
      *  @langversion 3.0
      *  @playerversion Flash 9


Transferred from the Adobe Open Source Subversion Repository

Revision: 16037
Author:   cframpto@adobe.com
Date:     2010-05-11T18:55:08.875763Z

Log Message:
-----------
Per request of TLF, rewrote CSSTextLayoutFormat to extend TextLayoutFormat rather than implement ITextLayoutFormat.  This will allow TLF to add new formats and continue to use Flex without requiring any immediate work on our part.

QE notes:
Doc notes: None
Bugs:
Reviewed By: Gordon
Tests run: checkintests

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/CSSTextLayoutFormat.as

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1283182 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/core/CSSTextLayoutFormat.as
+++ frameworks/projects/spark/src/spark/core/CSSTextLayoutFormat.as
@@ -1,7 +1,7 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
 //  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2009 Adobe Systems Incorporated
+//  Copyright 2009-2010 Adobe Systems Incorporated
 //  All Rights Reserved.
 //
 //  NOTICE: Adobe permits you to use, modify, and distribute this file
@@ -11,565 +11,135 @@

 package spark.core
 {
-
-import flash.text.engine.FontLookup;
-import flash.text.engine.Kerning;
-import flashx.textLayout.formats.ITextLayoutFormat;
-import mx.core.mx_internal;
-import mx.styles.IStyleClient;
-
-[ExcludeClass]
-
-/**
- *  @private
- *  This class is used by components such as RichText
- *  and RichEditableText which use TLF to display their text.
- *  The default formatting for their text is determined
- *  by the component's CSS styles.
- *  This class allows TLF to simply "pull" the format values
- *  from the CSS system using getStyle() calls.
- *  This takes less memory than using an instance of TextLayoutFormat
- *  because this class has only one var while TextLayoutFormat
- *  has one for every format.
- *
- *  The only extra functionality supported here, beyond what TLF has,
- *  is the ability for the fontLookup style to have the value "auto";
- *  in this case, the client object's embeddedFontContext is used
- *  to determine whether the the fontLookup format in TLF should be
- *  "embeddedCFF" or "device".
- */
-public class CSSTextLayoutFormat implements ITextLayoutFormat
-{
-    include "../core/Version.as";
+
+    import flash.text.engine.FontLookup;
+    import flash.text.engine.Kerning;
+    import flashx.textLayout.formats.TextLayoutFormat;
+    import flashx.textLayout.property.Property;
+    import flashx.textLayout.tlf_internal;
+    import mx.core.mx_internal;
+    import mx.styles.IStyleClient;
+
+    [ExcludeClass]
+
+    /**
+     *  @private
+     *  This class is used by components such as RichText
+     *  and RichEditableText which use TLF to display their text.
+     *  The default formatting for their text is determined
+     *  by the component's CSS styles.
+     *
+     *  TLF recognizes the copy that is done in this constructor and does not
+     *  do another one. If TLF adds formats to TextLayoutFormats this should
+     *  continue to work as long as Flex doesn't want some alterate behavior.
+     *
+     *  The only extra functionality supported here, beyond what TLF has,
+     *  is the ability for the fontLookup style to have the value "auto";
+     *  in this case, the client object's embeddedFontContext is used
+     *  to determine whether the the fontLookup format in TLF should be
+     *  "embeddedCFF" or "device".
+     */
+    public class CSSTextLayoutFormat extends TextLayoutFormat
+    {
+        include "../core/Version.as";

-    //--------------------------------------------------------------------------
-    //
-    //  Constructor
-    //
-    //--------------------------------------------------------------------------
+        //--------------------------------------------------------------------------
+        //
+        //  Constructor
+        //
+        //--------------------------------------------------------------------------
+
+        /**
+         *  @private
+         *  Constructor
+         */
+        public function CSSTextLayoutFormat(client:IStyleClient)
+        {
+            super();
+
+            for each (var prop:Property in TextLayoutFormat.tlf_internal::description)
+            {
+                const propName:String = prop.name;
+                if (propName == "fontLookup")
+                {
+                    this[propName] = convertedFontLookup(client);
+                }
+                else if (propName == "kerning")
+                {
+                    this[propName] = convertedKerning(client);
+                }
+                else
+                {
+                    const value:* = client.getStyle(propName);
+                    if (value !== undefined)
+                        this[propName] = value;
+                }
+            }
+        }
+
+
+        /**
+         *  @private
+         */
+        private static function convertedFontLookup(client:IStyleClient):*
+        {
+            var value:String = client.getStyle("fontLookup");
+
+            // Special processing of the "auto" value is required,
+            // because this value has meaning only in Flex, not in TLF.
+            // It tells Flex to use its EmbeddedFontRegistry to determine
+            // whether the font is embedded or not.
+            if (value == "auto")
+            {
+                if (client.mx_internal::embeddedFontContext)
+                    value = FontLookup.EMBEDDED_CFF;
+                else
+                    value = FontLookup.DEVICE;
+            }
+
+            return value;
+        }
+
+
+        /**
+         *  @private
+         */
+        private static function convertedKerning(client:IStyleClient):*
+        {
+            var kerning:Object = client.getStyle("kerning");
+
+            // In Halo components based on TextField,
+            // kerning is supposed to be true or false.
+            // The default in TextField and Flex 3 is false
+            // because kerning doesn't work for device fonts
+            // and is slow for embedded fonts.
+            // In Spark components based on TLF and FTE,
+            // kerning is "auto", "on", or, "off".
+            // The default in TLF and FTE is "auto"
+            // (which means kern non-Asian characters)
+            // because kerning works even on device fonts
+            // and has miminal performance impact.
+            // Since a CSS selector or parent container
+            // can affect both Halo and Spark components,
+            // we need to map true to "on" and false to "off"
+            // here and in Label.
+            // For Halo components, UITextField and UIFTETextField
+            // do the opposite mapping
+            // of "auto" and "on" to true and "off" to false.
+            // We also support a value of "default"
+            // (which we set in the global selector)
+            // to mean "auto" for Spark and false for Halo
+            // to get the recommended behavior in both sets of components.
+            if (kerning === "default")
+                kerning = Kerning.AUTO;
+            else if (kerning === true)
+                kerning = Kerning.ON;
+            else if (kerning === false)
+                kerning = Kerning.OFF;
+
+            return kerning;
+        }
+    }

-	/**
-	 *  @private
-	 *  Constructor
-	 */
-	public function CSSTextLayoutFormat(client:IStyleClient)
-	{
-		super();
-
-		this.client = client;
-	}
-
-    //--------------------------------------------------------------------------
-    //
-    //  Variables
-    //
-    //--------------------------------------------------------------------------
-
-	/**
-	 *  @private
-	 *  The component whose CSS styles are used to determine the TLF format.
-	 */
-	private var client:IStyleClient;
-
-    //--------------------------------------------------------------------------
-    //
-    //  Properties: ITextLayoutFormat
-    //
-    //--------------------------------------------------------------------------
-
-	/**
-	 *  @private
-	 */
-	public function get alignmentBaseline():*
-	{
-		return client.getStyle("alignmentBaseline");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get backgroundAlpha():*
-	{
-		return client.getStyle("backgroundAlpha");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get backgroundColor():*
-	{
-		return client.getStyle("backgroundColor");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get baselineShift():*
-	{
-		return client.getStyle("baselineShift");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get blockProgression():*
-	{
-		return client.getStyle("blockProgression");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get breakOpportunity():*
-	{
-		return client.getStyle("breakOpportunity");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get cffHinting():*
-	{
-		return client.getStyle("cffHinting");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get color():*
-	{
-		return client.getStyle("color");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get columnCount():*
-	{
-		return client.getStyle("columnCount");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get columnGap():*
-	{
-		return client.getStyle("columnGap");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get columnWidth():*
-	{
-		return client.getStyle("columnWidth");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get digitCase():*
-	{
-		return client.getStyle("digitCase");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get digitWidth():*
-	{
-		return client.getStyle("digitWidth");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get direction():*
-	{
-		return client.getStyle("direction");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get dominantBaseline():*
-	{
-		return client.getStyle("dominantBaseline");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get firstBaselineOffset():*
-	{
-		return client.getStyle("firstBaselineOffset");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get fontFamily():*
-	{
-		return client.getStyle("fontFamily");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get fontLookup():*
-	{
-        var value:String = client.getStyle("fontLookup");
-
-		// Special processing of the "auto" value is required,
-		// because this value has meaning only in Flex, not in TLF.
-		// It tells Flex to use its EmbeddedFontRegistry to determine
-		// whether the font is embedded or not.
-		if (value == "auto")
-        {
-            if (client.mx_internal::embeddedFontContext)
-                value = FontLookup.EMBEDDED_CFF;
-            else
-                value = FontLookup.DEVICE;
-        }
-
-        return value;
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get fontSize():*
-	{
-		return client.getStyle("fontSize");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get fontStyle():*
-	{
-		return client.getStyle("fontStyle");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get fontWeight():*
-	{
-		return client.getStyle("fontWeight");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get justificationRule():*
-	{
-		return client.getStyle("justificationRule");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get justificationStyle():*
-	{
-		return client.getStyle("justificationStyle");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get kerning():*
-	{
-		var kerning:Object = client.getStyle("kerning");
-
-		// In Halo components based on TextField,
-		// kerning is supposed to be true or false.
-		// The default in TextField and Flex 3 is false
-		// because kerning doesn't work for device fonts
-		// and is slow for embedded fonts.
-		// In Spark components based on TLF and FTE,
-		// kerning is "auto", "on", or, "off".
-		// The default in TLF and FTE is "auto"
-		// (which means kern non-Asian characters)
-		// because kerning works even on device fonts
-		// and has miminal performance impact.
-        // Since a CSS selector or parent container
-		// can affect both Halo and Spark components,
-		// we need to map true to "on" and false to "off"
-		// here and in Label.
-		// For Halo components, UITextField and UIFTETextField
-		// do the opposite mapping
-		// of "auto" and "on" to true and "off" to false.
-		// We also support a value of "default"
-		// (which we set in the global selector)
-		// to mean "auto" for Spark and false for Halo
-		// to get the recommended behavior in both sets of components.
-		if (kerning === "default")
-			kerning = Kerning.AUTO;
-		else if (kerning === true)
-			kerning = Kerning.ON;
-		else if (kerning === false)
-			kerning = Kerning.OFF;
-
-		return kerning;
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get leadingModel():*
-	{
-		return client.getStyle("leadingModel");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get ligatureLevel():*
-	{
-		return client.getStyle("ligatureLevel");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get lineBreak():*
-	{
-		return client.getStyle("lineBreak");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get lineHeight():*
-	{
-		return client.getStyle("lineHeight");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get lineThrough():*
-	{
-		return client.getStyle("lineThrough");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get locale():*
-	{
-		return client.getStyle("locale");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get marginBottom():*
-	{
-		return client.getStyle("marginBottom");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get marginLeft():*
-	{
-		return client.getStyle("marginLeft");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get marginRight():*
-	{
-		return client.getStyle("marginRight");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get marginTop():*
-	{
-		return client.getStyle("marginTop");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get paddingBottom():*
-	{
-		return client.getStyle("paddingBottom");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get paddingLeft():*
-	{
-		return client.getStyle("paddingLeft");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get paddingRight():*
-	{
-		return client.getStyle("paddingRight");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get paddingTop():*
-	{
-		return client.getStyle("paddingTop");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get paragraphEndIndent():*
-	{
-		return client.getStyle("paragraphEndIndent");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get paragraphSpaceAfter():*
-	{
-		return client.getStyle("paragraphSpaceAfter");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get paragraphSpaceBefore():*
-	{
-		return client.getStyle("paragraphSpaceBefore");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get paragraphStartIndent():*
-	{
-		return client.getStyle("paragraphStartIndent");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get renderingMode():*
-	{
-		return client.getStyle("renderingMode");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get tabStops():*
-	{
-		return client.getStyle("tabStops");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get textAlign():*
-	{
-		return client.getStyle("textAlign");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get textAlignLast():*
-	{
-		return client.getStyle("textAlignLast");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get textAlpha():*
-	{
-		return client.getStyle("textAlpha");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get textDecoration():*
-	{
-		return client.getStyle("textDecoration");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get textIndent():*
-	{
-		return client.getStyle("textIndent");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get textJustify():*
-	{
-		return client.getStyle("textJustify");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get textRotation():*
-	{
-		return client.getStyle("textRotation");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get trackingLeft():*
-	{
-		return client.getStyle("trackingLeft");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get trackingRight():*
-	{
-		return client.getStyle("trackingRight");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get typographicCase():*
-	{
-		return client.getStyle("typographicCase");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get verticalAlign():*
-	{
-		return client.getStyle("verticalAlign");
-	}
-
-	/**
-	 *  @private
-	 */
-	public function get whiteSpaceCollapse():*
-	{
-		return client.getStyle("whiteSpaceCollapse");
-	}
 }

-}
-


Transferred from the Adobe Open Source Subversion Repository

Revision: 15856
Author:   klin@adobe.com
Date:     2010-04-30T21:04:25.497643Z

Log Message:
-----------
Adding support for percentWidth and percentHeight on elements.

QE notes:
Doc notes:
Bugs:
Reviewer:
Tests run:
Is noteworthy for integration:

Modified Paths:
--------------
/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/layouts/ConstraintLayout.as

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1285009 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/layouts/ConstraintLayout.as
+++ frameworks/projects/spark/src/spark/layouts/ConstraintLayout.as
@@ -38,6 +38,39 @@
     private static function constraintsDetermineHeight(elementInfo:ElementConstraintInfo):Boolean
     {
         return !isNaN(elementInfo.top) && !isNaN(elementInfo.bottom);
+    }
+
+    /**
+     *  @return Returns the maximum value for an element's dimension so that the component doesn't
+     *  spill out of the container size. Calculations are based on the layout rules.
+     *  Pass in unscaledWidth, hCenter, left, right, childX to get a maxWidth value.
+     *  Pass in unscaledHeight, vCenter, top, bottom, childY to get a maxHeight value.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    static private function maxSizeToFitIn(totalSize:Number,
+                                           lowConstraint:Number,
+                                           highConstraint:Number,
+                                           position:Number):Number
+    {
+        if (!isNaN(lowConstraint))
+        {
+            // childWidth + left <= totalSize
+            return totalSize - lowConstraint;
+        }
+        else if (!isNaN(highConstraint))
+        {
+            // childWidth + right <= totalSize
+            return totalSize - highConstraint;
+        }
+        else
+        {
+            // childWidth + childX <= totalSize
+            return totalSize - position;
+        }
     }

     //--------------------------------------------------------------------------
@@ -469,6 +502,7 @@
             }
         }

+        // TODO: Add baseline
         if (topBoundary || bottomBoundary)
         {
             var numRows:Number = _constraintRows.length;
@@ -754,6 +788,8 @@
         {
             var numRowSpanElements:Number = rowSpanElements.length;

+            // TODO: Add baseline
+
             // Measure content size rows only single span for now.
             // If multiple span, do nothing yet.
             for (i = 0; i < numRowSpanElements; i++)
@@ -896,6 +932,8 @@
         var minHeight:Number = 0;
         var count:int = otherElements.length;

+        // TODO: Add baseline
+
         for (var i:int = 0; i < count; i++)
         {
             var elementInfo:ElementConstraintInfo = otherElements[i];
@@ -999,6 +1037,9 @@
         var topBoundary:String = elementInfo.topBoundary;
         var bottomBoundary:String = elementInfo.bottomBoundary;

+        var percentWidth:Number = layoutElement.percentWidth;
+        var percentHeight:Number = layoutElement.percentHeight;
+
         var availableWidth:Number;
         var availableHeight:Number;

@@ -1043,17 +1084,39 @@
             bottomHolder = row.y + row.height;
         }

-
         // available width
         availableWidth = Math.round(rightHolder - leftHolder);
         availableHeight = Math.round(bottomHolder - topHolder);

         // set width
-        if (!isNaN(left) && !isNaN(right))
+        if (!isNaN(percentWidth))
+        {
+            if (!isNaN(left))
+                availableWidth -= left;
+            if (!isNaN(right))
+                availableWidth -= right;
+
+            elementWidth = Math.round(availableWidth * Math.min(percentWidth * 0.01, 1));
+            elementMaxWidth = Math.min(layoutElement.getMaxBoundsWidth(),
+                maxSizeToFitIn(unscaledWidth, left, right, layoutElement.getLayoutBoundsX()));
+        }
+        else if (!isNaN(left) && !isNaN(right))
         {
             elementWidth = availableWidth - left - right;
         }
+
         // set height
+        if (!isNaN(percentHeight))
+        {
+            if (!isNaN(top))
+                availableHeight -= top;
+            if (!isNaN(bottom))
+                availableHeight -= bottom;
+
+            elementHeight = Math.round(availableHeight * Math.min(percentHeight * 0.01, 1));
+            elementMaxHeight = Math.min(layoutElement.getMaxBoundsHeight(),
+                maxSizeToFitIn(unscaledHeight, top, bottom, layoutElement.getLayoutBoundsY()));
+        }
         if (!isNaN(top) && !isNaN(bottom))
         {
             elementHeight = availableHeight - top - bottom;
@@ -1064,12 +1127,14 @@
         // which is already constrained between min and max.
         if (!isNaN(elementWidth))
         {
-            elementMaxWidth = layoutElement.getMaxBoundsWidth();
+            if (isNaN(elementMaxWidth))
+                elementMaxWidth = layoutElement.getMaxBoundsWidth();
             elementWidth = Math.max(layoutElement.getMinBoundsWidth(), Math.min(elementMaxWidth, elementWidth));
         }
         if (!isNaN(elementHeight))
         {
-            elementMaxHeight = layoutElement.getMaxBoundsHeight();
+            if (isNaN(elementMaxHeight))
+                elementMaxHeight = layoutElement.getMaxBoundsHeight();
             elementHeight = Math.max(layoutElement.getMinBoundsHeight(), Math.min(elementMaxHeight, elementHeight));
         }

@@ -1087,6 +1152,7 @@
             elementX = layoutElement.getLayoutBoundsX();

         // Vertical Position
+        // TODO: Add baseline here.
         if (!isNaN(top))
             elementY = topHolder + top;
         else if (!isNaN(bottom))


Transferred from the Adobe Open Source Subversion Repository

Revision: 23243
Author:   cframpto@adobe.com
Date:     2011-12-20T00:59:57.384047Z

Log Message:
-----------
In frameworks, remove Adobe headers from all files except xml/mxml file types.  There are also a few .txt files that are license files that I didn't touch yet.

Modified Paths:
--------------
2361 paths were modified

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1285181 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
+++ frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
@@ -1,13 +1,3 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2008 Adobe Systems Incorporated
-//  All Rights Reserved.
-//
-//  NOTICE: Adobe permits you to use, modify, and distribute this file
-//  in accordance with the terms of the license agreement accompanying it.
-// foo
-////////////////////////////////////////////////////////////////////////////////

 package spark.layouts
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 11029
Author:   egeorgie@adobe.com
Date:     2009-10-20T18:30:03.592198Z

Log Message:
-----------
Drag and Drop - add dragging support to HorizontalLayout

- Mostly a mechanic port from VerticalLayout

QE notes: Drag Drop for HorizontalLayout ready for testing.
Doc notes: None
Bugs: None
Reviewer: Evtim
Tests run: checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1285139 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
+++ frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
@@ -16,10 +16,12 @@

 import mx.containers.utilityClasses.Flex;
 import mx.core.ILayoutElement;
+import mx.core.IVisualElement;
 import mx.events.PropertyChangeEvent;

 import spark.components.supportClasses.GroupBase;
 import spark.core.NavigationUnit;
+import spark.layouts.supportClasses.DropLocation;
 import spark.layouts.supportClasses.LayoutBase;
 import spark.layouts.supportClasses.LayoutElementHelper;
 import spark.layouts.supportClasses.LinearLayoutVector;
@@ -1777,6 +1779,95 @@
         g.invalidateSize();
         g.invalidateDisplayList();
     }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Drop methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    override protected function calculateDropIndex(x:Number, y:Number):int
+    {
+        // Iterate over the visible elements
+        var layoutTarget:GroupBase = target;
+        var count:int = layoutTarget.numElements;
+
+        // If there are no items, insert at index 0
+        if (count == 0)
+            return 0;
+
+        // Go through the visible elements
+        var minDistance:Number = Number.MAX_VALUE;
+        var bestIndex:int = -1;
+        var start:int = this.firstIndexInView;
+        var end:int = this.lastIndexInView;
+
+        for (var i:int = start; i <= end; i++)
+        {
+            var elementBounds:Rectangle = this.getElementBounds(i);
+            if (!elementBounds)
+                continue;
+
+            if (elementBounds.left <= x && x <= elementBounds.right)
+            {
+                var centerX:Number = elementBounds.x + elementBounds.height / 2;
+                return (x < centerX) ? i : i + 1;
+            }
+
+            var curDistance:Number = Math.min(Math.abs(x - elementBounds.left),
+                                              Math.abs(x - elementBounds.right));
+            if (curDistance < minDistance)
+            {
+                minDistance = curDistance;
+                bestIndex = (x < elementBounds.left) ? i : i + 1;
+            }
+        }
+
+        // If there are no visible elements, either pick to drop at the beginning or at the end
+        if (bestIndex == -1)
+            bestIndex = getElementBounds(0).x < x ? count : 0;
+
+        return bestIndex;
+    }
+
+    /**
+     *  @private
+     */
+    override protected function calculateDropIndicatorBounds(dropLocation:DropLocation):Rectangle
+    {
+        var dropIndex:int = dropLocation.dropIndex;
+        var count:int = target.numElements;
+        var gap:Number = this.gap;
+
+        // Special case, if we insert at the end, and the gap is negative, consider it to be zero
+        if (gap < 0 && dropIndex == count)
+            gap = 0;
+
+        var emptySpace:Number = (0 < gap ) ? gap : 0;
+        var emptySpaceLeft:Number = 0;
+        if (target.numElements > 0)
+        {
+            emptySpaceLeft = (dropIndex < count) ? getElementBounds(dropIndex).left - emptySpace :
+                                                   getElementBounds(dropIndex - 1).right + gap - emptySpace;
+        }
+
+        // Calculate the size of the bounds, take minium and maximum into account
+        var width:Number = emptySpace;
+        var height:Number = Math.max(target.height, target.contentHeight) - paddingTop - paddingBottom;
+        if (dropIndicator is IVisualElement)
+        {
+            var element:IVisualElement = IVisualElement(dropIndicator);
+            width = Math.max(Math.min(width, element.getMaxBoundsWidth(false)), element.getMinBoundsWidth(false));
+        }
+
+        var x:Number = emptySpaceLeft + Math.round((emptySpace - width)/2);
+        x = Math.max(-Math.ceil(width / 2), Math.min(target.contentWidth - Math.ceil(width/2), x));
+        var y:Number = paddingTop;
+        return new Rectangle(x, y, width, height);
+    }
 }
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 16236
Author:   jszeto@adobe.com
Date:     2010-05-20T00:54:54.963159Z

Log Message:
-----------
Form Feature Work

Merging in Form classes from the private sandbox. All spec'ed functionality has been implemented.

QE notes: none
Doc notes: Needs ASDoc comments
Bugs: none
Reviewer: Hans, Kevin
Tests run: checkintests
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/SparkClasses.as</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/layouts/FormItemLayout.as" copyfrom-rev="15875" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/FormItemLayout.as</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/skins/spark/assets/ErrorIndicator.png" copyfrom-rev="16235" action="R">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/assets/ErrorIndicator.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutElementHelper.as</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/layouts/ConstraintLayout.as" copyfrom-rev="15875" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/ConstraintLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/skins/spark/StackedFormItemSkin.mxml" copyfrom-rev="15875" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/StackedFormItemSkin.mxml</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/components/Form.as" copyfrom-rev="15875" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Form.as</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/skins/spark/FormItemSkin.mxml" copyfrom-rev="15875" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/FormItemSkin.mxml</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/skins/spark/StackedFormHeadingSkin.mxml" copyfrom-rev="16047" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/StackedFormHeadingSkin.mxml</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/skins/spark/FormHeadingSkin.mxml" copyfrom-rev="15875" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/FormHeadingSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/layouts/FormLayout.as" copyfrom-rev="15875" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/FormLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/spark-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/bundles/en_US/layout.properties</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/skins/spark/assets/RequiredIndicator.png" copyfrom-rev="16235" action="R">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/assets/RequiredIndicator.png</path>
<path kind="dir" copyfrom-path="/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/skins/spark/assets" copyfrom-rev="16235" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/assets</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/components/FormItem.as" copyfrom-rev="15875" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/FormItem.as</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/components/FormHeading.as" copyfrom-rev="15875" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/FormHeading.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/skins/spark/FormSkin.mxml" copyfrom-rev="15875" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/FormSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/FocusSkin.as</path>

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1261945 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl.as
+++ frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl.as
@@ -772,7 +772,10 @@
             if (displayObject is IValidatorListener)
             {
                 currentText = IValidatorListener(displayObject).errorString;
-                if (currentText != null && currentText != "")
+                var showErrorTip:Boolean;
+                if (displayObject is IStyleClient)
+                    showErrorTip = IStyleClient(displayObject).getStyle("showErrorTip");
+                if (currentText != null && currentText != "" && showErrorTip)
                 {
                     currentTarget = displayObject;
                     isError = true;


Transferred from the Adobe Open Source Subversion Repository

Revision: 5101
Author:   gauravj@adobe.com
Date:     2009-02-27T05:22:45.887116Z

Log Message:
-----------
Update action script files with asdoc version tags.

QE Notes: None.
Doc Notes: Please review and update as necessary.
tests: checkintests

Modified Paths:
--------------
663 paths were modified

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1269506 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/mx/src/mx/effects/effectClasses/GlowInstance.as
+++ frameworks/projects/mx/src/mx/effects/effectClasses/GlowInstance.as
@@ -53,6 +53,11 @@
  *
  *  @see mx.effects.Glow
  *  @see mx.events.TweenEvent
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class GlowInstance extends TweenEffectInstance
 {
@@ -68,6 +73,11 @@
 	 *  Constructor.
 	 *
 	 *  @param target The Object to animate with this effect.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function GlowInstance(target:Object)
 	{
@@ -86,6 +96,11 @@

 	/**
 	 *  Starting transparency level.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public var alphaFrom:Number;

@@ -95,6 +110,11 @@

 	/**
 	 *  Ending transparency level.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public var alphaTo:Number;

@@ -104,6 +124,11 @@

 	/**
 	 *  The starting amount of horizontal blur.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public var blurXFrom:Number;

@@ -113,6 +138,11 @@

 	/**
 	 *  The ending amount of horizontal blur.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public var blurXTo:Number;

@@ -122,6 +152,11 @@

 	/**
 	 *  The starting amount of vertical blur.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public var blurYFrom:Number;

@@ -131,6 +166,11 @@

 	/**
 	 *  The ending amount of vertical blur.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public var blurYTo:Number;

@@ -140,6 +180,11 @@

 	/**
 	 *  The color of the glow.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public var color:uint = StyleManager.NOT_A_COLOR;

@@ -149,6 +194,11 @@

 	/**
 	 *  The inner flag of the glow.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public var inner:Boolean;

@@ -158,6 +208,11 @@

 	/**
 	 *  The knockout flag of the glow.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public var knockout:Boolean;

@@ -167,6 +222,11 @@

 	/**
 	 *  The strength of the glow.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public var strength:Number;


Transferred from the Adobe Open Source Subversion Repository

Revision: 8044
Author:   chaase@adobe.com
Date:     2009-06-22T17:01:54.701660Z

Log Message:
-----------
Final (!) PARB changes for effects.
- renamed ArrayInterpolator to MultiValueInterpolator (and enhanced behavior to handle Vectors as well as Arrays).
- Created new AnimateTransform3D subclass of AnimateTransform (to hold 3D-specific properties/defaults), and moved Move3D, Rotate3D, Scale3D to subclass from this new class.

QE Notes: Change to default value of applyLocalProjection (matches former default on 3D effects, but not default on AnimateTransform).
Doc Notes: None
Bugs: None
Reviewer: Hans
Tests: checkintests, effects cyclone from QE

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/SimpleMotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Move3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Animate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Scale3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/spark-manifest.xml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransform3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/MotionPath.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/interpolation/ArrayInterpolator.as" copyfrom-rev="7917" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/interpolation/MultiValueInterpolator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Rotate3D.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/interpolation/ArrayInterpolator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateTransformInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransform.as</path>

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1283959 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/effects/animation/MotionPath.as
+++ frameworks/projects/spark/src/spark/effects/animation/MotionPath.as
@@ -113,7 +113,6 @@
      */
     public var interpolator:IInterpolator = NumberInterpolator.getInstance();

-    [Inspectable(category="General", arrayType="spark.effects.Keyframe")]
     /**
      *  A sequence of Keyframe objects that represent the time/value pairs
      *  that the property takes during the animation. Each successive


Transferred from the Adobe Open Source Subversion Repository

Revision: 8238
Author:   smgilson@adobe.com
Date:     2009-06-25T17:25:59.965879Z

Log Message:
-----------
More post PARB ASDoc cleanup

QE Notes: None
Doc Notes: None
Bugs: -
checkintests: passed

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HGroup.as</path>

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1282372 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
@@ -631,7 +631,7 @@
      */
     override protected function commitProperties():void
     {
-    	var e:IndexChangedEvent;
+        var e:IndexChangedEvent;
         var changedSelection:Boolean = false;

         super.commitProperties();
@@ -693,21 +693,21 @@

         if (caretIndexAdjusted)
         {
-        	caretIndexAdjusted = false;
-        	if (!changedSelection)
-        	{
-        		// Put the new caretIndex renderer into the
-        		// caret state and dispatch an "caretChange"
-        		// event to update any bindings. Additionally, update
-        		// the backing variable.
-        		itemShowingCaret(selectedIndex, true);
-        		_caretIndex = selectedIndex;
-
-        		e = new IndexChangedEvent(IndexChangedEvent.CARET_CHANGE);
-        		e.oldIndex = caretIndex;
-        		e.newIndex = caretIndex;
-        		dispatchEvent(e);
-        	}
+            caretIndexAdjusted = false;
+            if (!changedSelection)
+            {
+                // Put the new caretIndex renderer into the
+                // caret state and dispatch an "caretChange"
+                // event to update any bindings. Additionally, update
+                // the backing variable.
+                itemShowingCaret(selectedIndex, true);
+                _caretIndex = selectedIndex;
+
+                e = new IndexChangedEvent(IndexChangedEvent.CARET_CHANGE);
+                e.oldIndex = caretIndex;
+                e.newIndex = caretIndex;
+                dispatchEvent(e);
+            }
         }

         if (labelFieldOrFunctionChanged)
@@ -1001,6 +1001,9 @@
      *  the selectedIndex is adjusted.

      *
      *  @param newIndex The new index.
+     *
+     *  @param add true if an item was added to the component,
+     *  and false if an item was removed.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10


Clear out the test list between test runs.

--- flash/org/windmill/astest/ASTest.as
+++ flash/org/windmill/astest/ASTest.as
@@ -36,6 +36,7 @@

     public static function loadTestFiles(files:Array):void {
       ASTest.testClassList = [];
+      ASTest.testList = [];
       WMLoader.load(files);
     }


- bugfix: UIComponent did lots of unneccesary validation in some cases. That's fixed now (well, at least one reason for that is fixed ...)

git-svn-id: e38e7cdd6ace00d8230583a2d3b43e9a55f5c011@705 bc4816be-ef27-423a-9c4d-fc420be121a2

--- src/reprise/ui/UIComponent.as
+++ src/reprise/ui/UIComponent.as
@@ -1460,6 +1460,8 @@

 			m_oldContentBoxWidth = m_contentBoxWidth;
 			m_oldContentBoxHeight = m_contentBoxHeight;
+			var oldSpecifiedWidth : int = m_currentStyles.width;
+			var oldSpecifiedHeight : int = m_currentStyles.height;

 			if (m_stylesInvalidated)
 			{
@@ -1508,8 +1510,8 @@
 						}
 					}
 					applyStyles();
-					if (m_currentStyles.width != m_oldContentBoxWidth ||
-						m_currentStyles.height != m_oldContentBoxHeight)
+					if (m_currentStyles.width != oldSpecifiedWidth ||
+						m_currentStyles.height != oldSpecifiedHeight)
 					{
 						m_specifiedDimensionsChanged = true;
 					}


improved labeling

improved labeling

Change-Id: Ided085f244cab4ae0c06305688d3d13314543806

--- WeaveUI/src/weave/ui/VariableListController.as
+++ WeaveUI/src/weave/ui/VariableListController.as
@@ -133,7 +133,7 @@
 			if (!_nameColumn)
 				return;
 			if (hashMap && hashMap.getNames().length)
-				_nameColumn.headerText = lang("Name (Click to edit)")
+				_nameColumn.headerText = lang("Name (Click below to edit)")
 			else
 				_nameColumn.headerText = lang("Name");
 		}


VariableListController now preserves selected items and scroll position
when dataProvider is updated.

Change-Id: I481f4199e9358d8a6a69885148a992d67f63b533

--- WeaveUI/src/weave/ui/VariableListController.as
+++ WeaveUI/src/weave/ui/VariableListController.as
@@ -198,6 +198,9 @@
 			if (!_editor)
 				return;

+			var vsp:int = _editor.verticalScrollPosition;
+			var selectedItems:Array = _editor.selectedItems;
+
 			if (dynamicObject)
 			{
 				_editor.dataProvider = dynamicObject.internalObject;
@@ -216,6 +219,14 @@
 			var view:ICollectionView = _editor.dataProvider as ICollectionView;
 			if (view)
 				view.refresh();
+
+			if (selectedItems && selectedItems.length)
+			{
+				_editor.validateProperties();
+				if (vsp >= 0 && vsp <= _editor.maxVerticalScrollPosition)
+					_editor.verticalScrollPosition = vsp;
+				_editor.selectedItems = selectedItems;
+			}

 			getCallbackCollection(this).triggerCallbacks();
 		}


Return "    >areaCost" variables to AttributeEditor.

--- bin/Data/Scripts/Editor/AttributeEditor.as
+++ bin/Data/Scripts/Editor/AttributeEditor.as
@@ -1491,6 +1491,12 @@

 void InitVectorStructs()
 {
+    Array<String> crowdManagerAreaCostVariables = {
+        "   Area Count",
+        "      Cost"
+    };
+    vectorStructs.Push(VectorStruct("CrowdManager", "   >AreaCost", crowdManagerAreaCostVariables, 1));
+
     Array<String> categories = GetObjectCategories();
     for (int categoryIndex = 0; categoryIndex < categories.length; categoryIndex++)
     {


Transferred from the Adobe Open Source Subversion Repository

Revision: 22561
Author:   smgilson@adobe.com
Date:     2011-09-14T19:12:37.612519Z

Log Message:
-----------
Minor ASDoc updates

QE notes:
Doc notes:
Bugs:
Reviewer:
Tests run: checkintests
Is noteworthy for integration:

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/framework/src/mx/events/RSLEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mx/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/framework/src/mx/events/ModuleEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/advancedgrids/src/mx/events/AdvancedDataGridEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/CalloutButton.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/framework/src/mx/events/EventListenerRequest.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/Callout.as</path>

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1263819 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/mobilecomponents/src/spark/components/CalloutButton.as
+++ frameworks/projects/mobilecomponents/src/spark/components/CalloutButton.as
@@ -140,6 +140,8 @@
  *  @see spark.components.Callout
  *  @see spark.components.Button
  *  @see spark.components.supportClasses.DropDownController
+ *
+ *  @includeExample examples/CalloutButtonExample.mxml -noswf
  *
  *  @langversion 3.0
  *  @playerversion AIR 3
@@ -553,6 +555,9 @@
     //
     //--------------------------------------------------------------------------

+    /**
+     *  @private
+     */
     override protected function attachSkin():void
     {
         super.attachSkin();


Transferred from the Adobe Open Source Subversion Repository

Revision: 3935
Author:   hmuller@adobe.com
Date:     2008-10-28T23:06:19.450100Z

Log Message:
-----------
Fix for 17281, 17751, 17765, and PARB changes: ClipContent now defaults to false, defined ScrollUnit enum and changed IViewport ScrollPositionDelta methods to use it.   Added "get" prefix to the ScrollPositionDelta methods.

Changed the default value of the clipContent property in GroupBase
and FxContainer from true to false.

Scroller now sets the clipContent of its viewport to true.

Removed clipContent="false" from spark skins, since false is
now the default.

Removed a clipContent="false" hack from CircularScrollbar test.

Removed calls to updateScrollRect from layout updateDisplayList()
methods, since the scrollRect is no longer contingent on
the value of the contentWidth,Height properties.  To keep
the scrollRect in sync with a component's size, we call
layout.updateScrollRect() in GroupBase::updateDisplayList()
and FxContainer::updateDisplayList().

Revised (simplified) the LayoutBase::updateScrollRect ASDoc.

Provisional change to make the FxContainer clipContent property work
correctly.

LayoutBase method renames per PARB feedback:
verticalScrollPositionDelta() => getVerticalScrollPositionDelta()
horizontalScrollPositionDelta() => getHorizontalScrollPositionDelta()

Defined a new mx.core.ScrollUnit enum per PARB feedback.  The
IViewport getHorizontal,VerticalScrollPositionDelta() methods now take
a ScrollUnit type argument, instead of a (character code) uint.

QE Notes: clipContent and ScrollUnit changes will break tests
Doc Notes: None
Bugs: sdk-17751, sdk-17257, sdk-17765
Reviewer: Ryan

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxScroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxVSliderThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxHScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/core/IViewport.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxToggleButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/LayoutBase.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/core/ScrollUnit.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxCheckBoxSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxVScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/BasicLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxHSliderThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxRadioButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/TextView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxContainer.as</path>

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1282086 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as
@@ -18,6 +18,7 @@
 import mx.graphics.IGraphicElement;
 import mx.layout.ILayoutItem;
 import mx.core.IViewport;
+import mx.core.ScrollUnit;
 import mx.layout.LayoutBase;
 import mx.layout.BasicLayout;
 import mx.layout.LayoutItemFactory;
@@ -499,6 +500,10 @@

         if (autoLayout && _layout)
             _layout.updateDisplayList(unscaledWidth, unscaledHeight);
+
+        if (_layout)
+            _layout.updateScrollRect(unscaledWidth, unscaledHeight);
+
     }

     //----------------------------------
@@ -508,17 +513,17 @@
     /**
      *  @copy mx.core.IViewport#horizontalScrollPositionDelta
      */
-    public function horizontalScrollPositionDelta(unit:uint):Number
-    {
-        return (layout) ? layout.horizontalScrollPositionDelta(unit) : 0;
+    public function getHorizontalScrollPositionDelta(unit:ScrollUnit):Number
+    {
+        return (layout) ? layout.getHorizontalScrollPositionDelta(unit) : 0;
     }

     /**
      *  @copy mx.core.IViewport#verticalScrollPositionDelta
      */
-    public function verticalScrollPositionDelta(unit:uint):Number
-    {
-        return (layout) ? layout.verticalScrollPositionDelta(unit) : 0;
+    public function getVerticalScrollPositionDelta(unit:ScrollUnit):Number
+    {
+        return (layout) ? layout.getVerticalScrollPositionDelta(unit) : 0;
     }

     //--------------------------------------------------------------------------


Transferred from the Adobe Open Source Subversion Repository

Revision: 2506
Author:   jimurphy@adobe.com
Date:     2008-07-16T13:25:03.893431Z

Log Message:
-----------
Merged 3.0.x revisions [2417,2458,2504] -> trunk
-I also manually updated modules/compiler/src/java/flex2/tools/oem/internal/LinkerConfiguration.java to implement flex2.linker.LinkerConfiguration due to a name change in trunk
-removed player 9 stuff

Modified Paths:
--------------
<path kind="file" copyfrom-path="/flex/sdk/branches/3.0.x/development/eclipse/flex/airframework/.project" copyfrom-rev="2504" action="R">/flex/sdk/trunk/development/eclipse/flex/airframework/.project</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/flex/tools/dependencychecker/DependencyChecker.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/resources/IResourceManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/dragClasses/DragProxy.as</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/3.0.x/development/eclipse/flex/airframework/.actionScriptProperties" copyfrom-rev="2504" action="R">/flex/sdk/trunk/development/eclipse/flex/airframework/.actionScriptProperties</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/air-config.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/Channel.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="A">/flex/sdk/trunk/in/player/mac/Install Flash Player 10 UB.dmg</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/internal/LinkerConfiguration.java</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/3.0.x/development/eclipse/flex/airframework/.settings/org.eclipse.core.resources.prefs" copyfrom-rev="2504" action="R">/flex/sdk/trunk/development/eclipse/flex/airframework/.settings/org.eclipse.core.resources.prefs</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/FlexModuleFactory.as</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/flex/tools/dependencychecker/FrameworkSwcDependencyRules.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/DragManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/3.0.x/development/eclipse/flex/airframework/.flexLibProperties" copyfrom-rev="2504" action="R">/flex/sdk/trunk/development/eclipse/flex/airframework/.flexLibProperties</path>
<path kind="file" action="D">/flex/sdk/trunk/in/player/lnx/install_flash_player_9_linux.tar.gz</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/flex/tools/dependencychecker/nodes/LibrariesNode.java</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/flex/tools/dependencychecker/nodes/DependencyNode.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/XMLDecoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/scrollClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Panel.as</path>
<path kind="file" action="D">/flex/sdk/trunk/in/player/win/Install Flash Player 9 Plugin.exe</path>
<path kind="file" action="D">/flex/sdk/trunk/in/player/mac/Install Flash Player 9 UB.dmg</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/MarshalMouseEvent.as</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/resources/LocaleSorter.as" copyfrom-rev="2504" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/resources/LocaleSorter.as</path>
<path kind="file" action="D">/flex/sdk/trunk/in/player/win/Install Flash Player 9 ActiveX.exe</path>
<path kind="dir" copyfrom-path="/flex/sdk/branches/3.0.x/development/eclipse/flex/airframework" copyfrom-rev="2504" action="A">/flex/sdk/trunk/development/eclipse/flex/airframework</path>
<path kind="file" action="M">/flex/sdk/trunk/build.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/scrollClasses/ScrollThumb.as</path>
<path kind="file" action="A">/flex/sdk/trunk/in/player/win/Install Flash Player 10 Plugin.exe</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/flex/tools/dependencychecker/nodes/DefNode.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/resources/ResourceManagerImpl.as</path>
<path kind="file" action="A">/flex/sdk/trunk/in/player/win/Install Flash Player 10 ActiveX.exe</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/flex/tools/dependencychecker/nodes/LibraryNode.java</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/flex/tools/dependencychecker/nodes/ScriptNode.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/asc/src/java/macromedia/asc/util/ContextStatics.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/flex/tools/dependencychecker/nodes/DepNode.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/ChannelSet.as</path>
<path kind="dir" copyfrom-path="/flex/sdk/branches/3.0.x/development/eclipse/flex/airframework/.settings" copyfrom-rev="2504" action="R">/flex/sdk/trunk/development/eclipse/flex/airframework/.settings</path>
<path kind="file" action="D">/flex/sdk/trunk/in/player/10/lnx/Flash Player.app.zip</path>
<path kind="dir" action="D">/flex/sdk/trunk/frameworks/libs/player/9</path>

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1261460 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/framework/src/mx/managers/DragManagerImpl.as
+++ frameworks/projects/framework/src/mx/managers/DragManagerImpl.as
@@ -34,6 +34,7 @@
 import mx.events.MarshalDragEvent;
 import mx.managers.ISystemManager2;
 import mx.managers.dragClasses.DragProxy;
+import mx.managers.SystemManager;
 import mx.styles.CSSStyleDeclaration;
 import mx.styles.StyleManager;

@@ -250,6 +251,12 @@
 		sandboxRoot.dispatchEvent(me);
 		// trace("<--dispatch isDragging for DragManagerImpl", sm, true);

+		me = new MarshalEvent(MarshalEvent.DRAG_MANAGER);
+		me.name = "mouseShield";
+		me.value = true;
+		// trace("-->dispatch add mouseShield.for DragManagerImpl", sm);
+		sandboxRoot.dispatchEvent(me);
+
 		this.dragInitiator = dragInitiator;

 		// The drag proxy is a UIComponent with a single child -
@@ -432,6 +439,11 @@
 			sandboxRoot.dispatchEvent(me);
 			// trace("<--dispatch endDrag for DragManagerImpl", sm);
 		}
+		me = new MarshalEvent(MarshalEvent.DRAG_MANAGER);
+		me.name = "mouseShield";
+		me.value = false;
+		// trace("-->dispatch remove mouseShield.for DragManagerImpl", sm);
+		sandboxRoot.dispatchEvent(me);

 		dragInitiator = null;
 		bDoingDrag = false;
@@ -476,24 +488,9 @@

 		var marshalEvent:Object = event;

-		if (marshalEvent.dragTarget.loaderInfo.applicationDomain != sm.loaderInfo.applicationDomain)
-		{
-			// see if we parent the application domain of the dragtarget
-			var ad:ApplicationDomain = marshalEvent.dragTarget.loaderInfo.applicationDomain.parentDomain;
-			var inOurAD:Boolean = false;
-			while (ad)
-			{
-				if (ad == ApplicationDomain.currentDomain)
-				{
-					inOurAD = true;
-					break;
-				}
-				ad = ad.parentDomain;
-			}
-			if (!inOurAD)
-				return;
-		}
-
+		var swfRoot:DisplayObject = SystemManager.getSWFRoot(marshalEvent.dragTarget);
+		if (!swfRoot)
+			return;	// doesn't belong to this appdomain

 		var dragEvent:DragEvent = new DragEvent(marshalEvent.eventType, marshalEvent.bubbles, marshalEvent.cancelable);
 		dragEvent.localX = marshalEvent.localX;


Transferred from the Adobe Open Source Subversion Repository

Revision: 8
Author:   open-source-svn-admin@adobe.com
Date:     2007-12-15T01:49:31.087529Z

Log Message:
-----------
The beginning of the open-source Flex SDK.

Populated the flex/sdk/trunk directory with an open-source subset of files from //depot/flex/sdk/...@191097 in the Faramir Perforce server. This changelist is a bit past the 3.0rc0 build.

The Ant scripts will not successfully build yet. They need to be adapted to the open-source subset.

Modified Paths:
--------------
2532 paths were modified

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1269782 13f79535-47bb-0310-9956-ffa450edef68


Transferred from the Adobe Open Source Subversion Repository

Revision: 2557
Author:   jimurphy@adobe.com
Date:     2008-07-22T14:15:44.500232Z

Log Message:
-----------
Merge 3.0.x revisions [2544,2546,2551] -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Tile.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/FormHeading.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1268248 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/mx/src/mx/controls/List.as
+++ frameworks/projects/mx/src/mx/controls/List.as
@@ -62,6 +62,7 @@
 import mx.events.ScrollEventDetail;
 import mx.managers.IFocusManager;
 import mx.managers.IFocusManagerComponent;
+import mx.managers.ISystemManager2;
 import mx.styles.StyleManager;
 import mx.collections.ItemWrapper;
 import mx.collections.ModifiedCollectionView;
@@ -2061,7 +2062,7 @@
         DisplayObject(itemEditorInstance).addEventListener(KeyboardEvent.KEY_DOWN, editorKeyDownHandler);
         // we disappear on any mouse down outside the editor
         // use weak reference
-        stage.addEventListener(MouseEvent.MOUSE_DOWN, editorMouseDownHandler, true, 0, true);
+        systemManager.addEventListener(MouseEvent.MOUSE_DOWN, editorMouseDownHandler, true, 0, true);

     }

@@ -2558,8 +2559,10 @@
     private function itemEditorItemEditBeginHandler(event:ListEvent):void
     {
         // trace("listening for deactivate");
-        // weak reference to stage
-        stage.addEventListener(Event.DEACTIVATE, deactivateHandler, false, 0, true);
+
+        // weak reference to stage or systemManager
+		if (root)	// we're on the display list
+    		systemManager.addEventListener(Event.DEACTIVATE, deactivateHandler, false, 0, true);

         if (!event.isDefaultPrevented() && listItems[actualRowIndex][actualColIndex].data != null)
         {