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@1267548 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/mx/src/mx/containers/ApplicationControlBar.as
+++ frameworks/projects/mx/src/mx/containers/ApplicationControlBar.as
@@ -1,13 +1,3 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2004-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.containers
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 17401
Author:   dthakkar@adobe.com
Date:     2010-08-20T03:21:57.711520Z

Log Message:
-----------
Flex integration bug fixes

QE notes: No
Doc notes: No
Bugs: SDK-27420, SDK-26936, SDK-27452
Reviewer: Craig , Masa
Tests run: Checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/supportClasses/GlobalizationBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters/NumberFormatter.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/supportClasses/CollatorBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters/CurrencyFormatter.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/StringTools.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters/DateTimeFormatter.as</path>

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

--- frameworks/projects/spark/src/spark/formatters/NumberFormatter.as
+++ frameworks/projects/spark/src/spark/formatters/NumberFormatter.as
@@ -151,7 +151,7 @@
                 as flash.globalization.NumberFormatter).actualLocaleIDName;
         }

-        if (!localeStyle)
+        if ((localeStyle === undefined) || (localeStyle === null))
         {
             fallbackLastOperationStatus
                                 = LastOperationStatus.LOCALE_UNDEFINED_ERROR;
@@ -257,7 +257,7 @@
      */
     override mx_internal function createWorkingInstance():void
     {
-        if (!localeStyle)
+        if ((localeStyle === undefined) || (localeStyle === null))
         {
             fallbackLastOperationStatus
                                 = LastOperationStatus.LOCALE_UNDEFINED_ERROR;
@@ -342,7 +342,7 @@
                 as flash.globalization.NumberFormatter).formatNumber(number);
         }

-        if (!localeStyle)
+        if ((localeStyle === undefined) || (localeStyle === null))
         {
             fallbackLastOperationStatus
                                 = LastOperationStatus.LOCALE_UNDEFINED_ERROR;
@@ -473,7 +473,7 @@
                 as flash.globalization.NumberFormatter).parse(inputString);
         }

-        if (!localeStyle)
+        if ((localeStyle === undefined) || (localeStyle === null))
         {
             fallbackLastOperationStatus
                                 = LastOperationStatus.LOCALE_UNDEFINED_ERROR;
@@ -524,7 +524,7 @@
                 as flash.globalization.NumberFormatter).parseNumber(parseString);
         }

-        if (!localeStyle)
+        if ((localeStyle === undefined) || (localeStyle === null))
         {
             fallbackLastOperationStatus
                                 = LastOperationStatus.LOCALE_UNDEFINED_ERROR;


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@1261175 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/framework/src/mx/graphics/RectangularDropShadow.as
+++ frameworks/projects/framework/src/mx/graphics/RectangularDropShadow.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.graphics
 {


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@1268989 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/mx/src/mx/controls/menuClasses/MenuItemRenderer.as
+++ frameworks/projects/mx/src/mx/controls/menuClasses/MenuItemRenderer.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.menuClasses
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 19635
Author:   aharui@adobe.com
Date:     2011-01-07T00:25:18.039632Z

Log Message:
-----------
revert the layout changes from svn 18635.  Management feels that there isn't enough time to thoroughly test the changes.

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/TileLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/layoutClasses/PriorityQueue.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ScrollerLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/core/Application.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewNavigatorApplicationSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/SkinnableContainerSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/RichEditableText.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/primitives/BitmapImage.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/BasicLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/IconItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewNavigatorSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/PopUpAnchor.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/supportClasses/LinearLayoutVector.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/events/FlexEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/airspark/src/spark/components/Window.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/IContainerInvalidating.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DefaultItemRenderer.as</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/ILayoutManagerContainerClient.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGrid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/VerticalLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TabbedViewNavigatorApplicationSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/IStyleManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/ILayoutElement.as</path>
<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/spark/src/spark/components/gridClasses/GridLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/TextFieldGridItemRendererInclude.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/core/Container.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/LayoutManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Application.as</path>

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

--- frameworks/projects/spark/src/spark/skins/spark/DefaultItemRenderer.as
+++ frameworks/projects/spark/src/spark/skins/spark/DefaultItemRenderer.as
@@ -18,14 +18,11 @@
 import flash.geom.Point;

 import mx.controls.listClasses.*;
-import mx.core.IContainerInvalidating;
 import mx.core.IDataRenderer;
-import mx.core.ILayoutElement;
 import mx.core.InteractionMode;
 import mx.core.UIComponent;
 import mx.core.mx_internal;
 import mx.events.FlexEvent;
-import mx.managers.ILayoutManagerContainerClient;

 import spark.components.IItemRenderer;
 import spark.components.Label;
@@ -553,44 +550,6 @@
         labelDisplay.setLayoutBoundsSize(childWidth, childHeight);
         labelDisplay.setLayoutBoundsPosition(3, 5);
     }
-
-    /**
-     *  @private
-     */
-    override mx_internal function validateEstimatedSizesOfChild(child:ILayoutElement):void
-    {
-        var cw:Number;
-        var ch:Number;
-        var c:Number;
-        var oldcw:Number = child.estimatedWidth;
-        var oldch:Number = child.estimatedHeight;
-        c = estimatedWidth;
-        if (isNaN(c) && !isNaN(explicitWidth))
-            c = explicitWidth;
-        if (!isNaN(c))
-        {
-            cw = c - 6;
-        }
-        c = estimatedHeight;
-        if (isNaN(c) && !isNaN(explicitHeight))
-            c = explicitHeight;
-        if (!isNaN(c))
-        {
-            ch = c - 10;
-        }
-        child.setEstimatedSize(cw, ch);
-		if (child is ILayoutManagerContainerClient)
-		{
-			var sameWidth:Boolean = isNaN(cw) && isNaN(oldcw) || cw == oldcw;
-			var sameHeight:Boolean = isNaN(ch) && isNaN(oldch) || ch == oldch;
-            if (!(sameHeight && sameWidth))
-            {
-                if (child is IContainerInvalidating)
-                    IContainerInvalidating(child).invalidateEstimatedSizesOfChildren();
-                ILayoutManagerContainerClient(child).validateEstimatedSizesOfChildren();
-            }
-		}
-    }

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


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@1290238 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/advancedgrids/src/mx/collections/Grouping.as
+++ frameworks/projects/advancedgrids/src/mx/collections/Grouping.as
@@ -1,13 +1,3 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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.collections
 {


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@1260743 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/framework/src/mx/events/SandboxMouseEvent.as
+++ frameworks/projects/framework/src/mx/events/SandboxMouseEvent.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 mx.events
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 4072
Author:   gosmith@adobe.com
Date:     2008-11-11T22:08:39.645236Z

Log Message:
-----------
FxNumericStepper now has a maxChars property, and it now restricts the characters that can be entered into its FxTextInput.

QE Notes: None
Doc Notes: None
Bugs: SDK-16293, SDK-16627
Reviewer: Glenn

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxNumericStepper.as

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 3466
Author:   egreenfi@adobe.com
Date:     2008-10-03T04:13:46.076266Z

Log Message:
-----------
Refactored TransformOffset to reduce code and confusion.

UIComponent and GraphicElement now aggregate an AdvancedLayoutFeatures object, which is responsible for computing the
actual transform based on the layout properties and a CompoundTransform object passed in as a set of offset values.

Re-enabled updateComplete events when component transform is modified, for mustella tests.

Review: Glenn, Evtim.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/Path.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/halo-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/graphicsClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/mxml-2009-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/frameworkSwcExceptionsList.txt</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/CompoundTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/AdvancedLayoutFeatures.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/TransformOffset.as</path>

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

--- frameworks/projects/framework/src/mx/core/AdvancedLayoutFeatures.as
+++ frameworks/projects/framework/src/mx/core/AdvancedLayoutFeatures.as
@@ -0,0 +1,573 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2003-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 mx.core
+{
+	import flash.geom.Matrix;
+	import flash.geom.Matrix3D;
+	import __AS3__.vec.Vector;
+	import flash.geom.Vector3D;
+	import mx.geom.ITransformable;
+	import flash.events.Event;
+	import mx.geom.CompoundTransform;
+	use namespace mx_internal;
+
+	/**
+	 *  Transform Offsets can be assigned to any Component or GraphicElement to modify the transform
+	 *  of the object beyond where its parent layout places it.
+	 */
+	public class AdvancedLayoutFeatures
+	{
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+    /**
+     *  Constructor.
+     */
+		public function AdvancedLayoutFeatures()
+		{
+			layout = new CompoundTransform();
+			layout.dispatchChangeEvents = false;
+		}
+
+
+
+    /**
+     * @private
+     * a flag for use by the owning object indicating whether the owning object has a pending update
+     * to its matrix.  If this is false, the AdvancedLayoutFeatures will notify the owning object of any changes
+     * to its transform properties. Otherwise, it assumes the owner has already taken appropriate action.
+     * it is the owner's responsibility to set this flag.
+     */
+	public var updatePending:Boolean = false;
+
+    /**
+     * @private
+     * storage for the layer value. Layering is considered 'advanced' layout behavior, and not something
+     * that gets used by the majority of the components out there.  So if a component has a non-zero layer,
+     * it will allocate a AdvancedLayoutFeatures object and store the value here.
+     */
+	public var layer:Number = 0;
+
+
+
+    /**
+     * @private
+     * slots for the various 2D and 3D matrices for layout, offset, and computed transforms.  Note that
+     * these are only allocated and computed on demand -- many component instances will never use a 3D
+     * matrix, for example.
+     */
+	protected var _computedMatrix:Matrix;
+	protected var _computedMatrix3D:Matrix3D;
+
+	/**
+	 * @private
+	 * the layout visible transform as defined by the user and parent layout.
+	 */
+	protected var layout:CompoundTransform;
+
+	/**
+	 * @private
+	 * offset values applied by the user
+	 */
+	private var _offsets:CompoundTransform;
+
+
+    /**
+     * @private
+     * bit field flags for indicating which transforms are valid -- the layout properties, the matrices,
+     * and the 3D matrices.  Since developers can set any of the three programmatically, the last one set
+     * will always be valid, and the others will be invalid until validated on demand.
+     */
+	private static const COMPUTED_MATRIX_VALID:uint 	= 0x1;
+	private static const COMPUTED_MATRIX3D_VALID:uint 	= 0x2;
+
+    /**
+     * @private
+     * general storage for all of ur flags.
+     */
+	private var _flags:uint = 0;
+
+	/**
+	 * @private
+	 * static data used by utility methods below
+	 */
+	private static var reVT:Vector3D = new Vector3D(0,0,0);
+	private static var reVR:Vector3D = new Vector3D(0,0,0);
+	private static var reVS:Vector3D = new Vector3D(1,1,1);
+
+	private static var reV:Vector.<Vector3D> = new Vector.<Vector3D>();
+	reV.push(reVT);
+	reV.push(reVR);
+	reV.push(reVS);
+
+
+	private static const RADIANS_PER_DEGREES:Number = Math.PI / 180;
+
+
+
+	//------------------------------------------------------------------------------
+
+    /**
+     * @private
+     * layout transform convenience property.  Setting this property makes the layout properties the source of truth,
+     * so they need to be first updated from the matrix or matrix3D if they are invalid.
+     * We then invalidate, but since this is an internal property, that is only set by the
+     * owner, we don't notify the owner of the change
+     */
+	public function set layoutX(value:Number):void
+	{
+		layout.x = value;
+		invalidate();
+	}
+
+    /**
+     * @private
+     */
+	public function get layoutX():Number
+	{
+		return layout.x;
+	}
+
+    /**
+     * @private
+     * layout transform convenience property.  Setting this property makes the layout properties the source of truth,
+     * so they need to be first updated from the matrix or matrix3D if they are invalid.
+     * We then invalidate, but since this is an internal property, that is only set by the
+     * owner, we don't notify the owner of the change
+     */
+	public function set layoutY(value:Number):void
+	{
+		layout.y = value;
+		invalidate();
+	}
+
+    /**
+     * @private
+     */
+	public function get layoutY():Number
+	{
+		return layout.y;
+	}
+
+    /**
+     * @private
+     * layout transform convenience property.  Setting this property makes the layout properties the source of truth,
+     * so they need to be first updated from the matrix or matrix3D if they are invalid.
+     * We then invalidate, but since this is an internal property, that is only set by the
+     * owner, we don't notify the owner of the change
+     */
+	public function set layoutZ(value:Number):void
+	{
+		layout.z = value;
+		invalidate();
+	}
+
+    /**
+     * @private
+     */
+	public function get layoutZ():Number
+	{
+		return layout.z;
+	}
+
+	//------------------------------------------------------------------------------
+
+    /**
+     * @private
+     * layout transform convenience property.  Setting this property makes the layout properties the source of truth,
+     * so they need to be first updated from the matrix or matrix3D if they are invalid.
+     * We then invalidate, but since this is an internal property, that is only set by the
+     * owner, we don't notify the owner of the change
+     */
+	public function set transformX(value:Number):void
+	{
+		layout.transformX= value;
+		invalidate();
+	}
+    /**
+     * @private
+     */
+	public function get transformX():Number
+	{
+		return layout.transformX;
+	}
+
+    /**
+     * @private
+     * layout transform convenience property.  Setting this property makes the layout properties the source of truth,
+     * so they need to be first updated from the matrix or matrix3D if they are invalid.
+     * We then invalidate, but since this is an internal property, that is only set by the
+     * owner, we don't notify the owner of the change
+     */
+	public function set transformY(value:Number):void
+	{
+		layout.transformY = value;
+		invalidate();
+	}
+
+    /**
+     * @private
+     */
+	public function get transformY():Number
+	{
+		return layout.transformX;
+	}
+
+    /**
+     * @private
+     * layout transform convenience property.  Setting this property makes the layout properties the source of truth,
+     * so they need to be first updated from the matrix or matrix3D if they are invalid.
+     * We then invalidate, but since this is an internal property, that is only set by the
+     * owner, we don't notify the owner of the change
+     */
+	public function set transformZ(value:Number):void
+	{
+		layout.transformZ = value;
+		invalidate();
+	}
+
+    /**
+     * @private
+     */
+	public function get transformZ():Number
+	{
+		return layout.transformZ;
+	}
+
+//------------------------------------------------------------------------------
+
+
+    /**
+     * @private
+     * layout transform convenience property.  Setting this property makes the layout properties the source of truth,
+     * so they need to be first updated from the matrix or matrix3D if they are invalid.
+     * We then invalidate, but since this is an internal property, that is only set by the
+     * owner, we don't notify the owner of the change
+     */
+	public function set layoutRotationX(value:Number):void
+	{
+		layout.rotationX = value;
+		invalidate();
+	}
+
+    /**
+     * @private
+     */
+	public function get layoutRotationX():Number
+	{
+		return layout.rotationX;
+	}
+
+    /**
+     * @private
+     * layout transform convenience property.  Setting this property makes the layout properties the source of truth,
+     * so they need to be first updated from the matrix or matrix3D if they are invalid.
+     * We then invalidate, but since this is an internal property, that is only set by the
+     * owner, we don't notify the owner of the change
+     */
+	public function set layoutRotationY(value:Number):void
+	{
+		layout.rotationY = value;
+		invalidate();
+	}
+
+    /**
+     * @private
+     */
+	public function get layoutRotationY():Number
+	{
+		return layout.rotationY;
+	}
+
+    /**
+     * @private
+     * layout transform convenience property.  Setting this property makes the layout properties the source of truth,
+     * so they need to be first updated from the matrix or matrix3D if they are invalid.
+     * We then invalidate, but since this is an internal property, that is only set by the
+     * owner, we don't notify the owner of the change
+     */
+	public function set layoutRotationZ(value:Number):void
+	{
+		layout.rotationZ = value;
+		invalidate();
+	}
+
+    /**
+     * @private
+     */
+	public function get layoutRotationZ():Number
+	{
+		return layout.rotationZ;
+	}
+
+	//------------------------------------------------------------------------------
+
+
+    /**
+     * @private
+     * layout transform convenience property.  Setting this property makes the layout properties the source of truth,
+     * so they need to be first updated from the matrix or matrix3D if they are invalid.
+     * We then invalidate, but since this is an internal property, that is only set by the
+     * owner, we don't notify the owner of the change
+     */
+	public function set layoutScaleX(value:Number):void
+	{
+		layout.scaleX = value;
+		invalidate();
+	}
+
+    /**
+     * @private
+     */
+	public function get layoutScaleX():Number
+	{
+		return layout.scaleX;
+	}
+
+    /**
+     * @private
+     * layout transform convenience property.  Setting this property makes the layout properties the source of truth,
+     * so they need to be first updated from the matrix or matrix3D if they are invalid.
+     * We then invalidate, but since this is an internal property, that is only set by the
+     * owner, we don't notify the owner of the change
+     */
+	public function set layoutScaleY(value:Number):void
+	{
+		layout.scaleY = value;
+		invalidate();
+	}
+
+    /**
+     * @private
+     */
+	public function get layoutScaleY():Number
+	{
+		return layout.scaleY;
+	}
+
+
+    /**
+     * @private
+     * layout transform convenience property.  Setting this property makes the layout properties the source of truth,
+     * so they need to be first updated from the matrix or matrix3D if they are invalid.
+     * We then invalidate, but since this is an internal property, that is only set by the
+     * owner, we don't notify the owner of the change
+     */
+	public function set layoutScaleZ(value:Number):void
+	{
+		layout.scaleZ = value;
+		invalidate();
+	}
+
+    /**
+     * @private
+     */
+	public function get layoutScaleZ():Number
+	{
+		return layout.scaleZ;
+	}
+
+    /**
+     * @private
+     * layout transform property.  Setting this property makes the layout matrix the source of truth,
+     * We then invalidate, but since this is an internal property, that is only set by the
+     * owner, we don't notify the owner of the change
+     */
+	public function set layoutMatrix(value:Matrix):void
+	{
+		layout.matrix = value;
+		invalidate();
+	}
+
+    /**
+     * @private
+     */
+	public function get layoutMatrix():Matrix
+	{
+		return layout.matrix;
+	}
+
+
+    /**
+     * @private
+     * layout transform property.  Setting this property makes the layout matrix3D the source of truth,
+     * We then invalidate, but since this is an internal property, that is only set by the
+     * owner, we don't notify the owner of the change
+     */
+	public function set layoutMatrix3D(value:Matrix3D):void
+	{
+		layout.matrix3D = value;
+		invalidate();
+	}
+
+    /**
+     * @private
+     */
+	public function get layoutMatrix3D():Matrix3D
+	{
+		return layout.matrix3D;
+	}
+
+
+	/**
+	 * @private
+	 * returns true if the computed transform has 3D values.
+	 */
+	public function get is3D():Boolean
+	{
+		return (layout.is3D || (offsets != null && offsets.is3D));
+	}
+
+	//------------------------------------------------------------------------------
+
+	public function set offsets(value:CompoundTransform):void
+	{
+		if(_offsets != null)
+			_offsets.removeEventListener(Event.CHANGE,offsetsChangedHandler);
+		_offsets = value;
+		if(_offsets != null)
+			_offsets.addEventListener(Event.CHANGE,offsetsChangedHandler);
+		invalidate();
+	}
+	public function get offsets():CompoundTransform
+	{
+		return _offsets;
+	}
+
+	private function offsetsChangedHandler(e:Event):void
+	{
+		invalidate();
+	}
+
+	//------------------------------------------------------------------------------
+
+	/**
+	 * @private
+	 * invalidates our various cached values.  Any change to the AdvancedLayoutFeatures object that affects
+	 * the various transforms should call this function.
+     * @param reason - the code indicating what changes to cause the invalidation.
+     * @param affects3D - a flag indicating whether the change affects the 2D/3D nature of the various transforms.
+     * @param dispatchChangeEvent - if true, the AdvancedLayoutFeatures will dispatch a change indicating that its underlying transforms
+     * have been modified.
+  	 */
+	private function invalidate():void
+	{
+		_flags &= ~COMPUTED_MATRIX_VALID;
+		_flags &= ~COMPUTED_MATRIX3D_VALID;
+	}
+
+
+
+	/**
+	 * @private
+	 * returns the computed matrix, calculated by combining the layout and offset transforms.
+	 */
+	public function get computedMatrix():Matrix
+	{
+		if(_flags & COMPUTED_MATRIX_VALID)
+			return _computedMatrix;
+
+		if(offsets == null)
+		{
+			return layout.matrix;
+		}
+
+		var m:Matrix = _computedMatrix;
+		if(m == null)
+			m = _computedMatrix = new Matrix();
+		else
+			m.identity();
+
+		build2DMatrix(m,layout.transformX,layout.transformY,
+					  layout.scaleX * offsets.scaleX,layout.scaleY * offsets.scaleY,
+					  layout.rotationZ + offsets.rotationZ,
+					  layout.x + offsets.x,layout.y + offsets.y);
+
+		_flags |= COMPUTED_MATRIX_VALID;
+		return m;
+	}
+
+	/**
+	 * @private
+ 	 * returns the computed matrix3D, calculated by combining the layout and offset transforms.
+	 */
+	public function get computedMatrix3D():Matrix3D
+	{
+		if(_flags & COMPUTED_MATRIX3D_VALID)
+			return _computedMatrix3D;
+
+		if(offsets == null)
+		{
+			return layout.matrix3D;
+		}
+
+		var m:Matrix3D = _computedMatrix3D;
+		if(m == null)
+			m = _computedMatrix3D = new Matrix3D();
+		else
+			m.identity();
+
+
+		build3DMatrix(m,layout.transformX,layout.transformY,layout.transformZ,
+				  layout.scaleX*offsets.scaleX,layout.scaleY*offsets.scaleY,layout.scaleZ*offsets.scaleZ,
+				  layout.rotationX+offsets.rotationX,layout.rotationY+offsets.rotationY,layout.rotationZ+offsets.rotationZ,
+				  layout.x+offsets.x,layout.y+offsets.y,layout.z+offsets.z);
+
+		_flags |= COMPUTED_MATRIX3D_VALID;
+		return m;
+	}
+
+
+
+
+
+
+	/**
+	 * @private
+	 * convenience function for building a 2D matrix from the convenience properties
+	 */
+	public static function build2DMatrix(m:Matrix,
+									tx:Number,ty:Number,
+									sx:Number,sy:Number,
+									rz:Number,
+									x:Number,y:Number):void
+	{
+		m.translate(-tx,-ty);
+		m.scale(sx,sy);
+		m.rotate(rz* RADIANS_PER_DEGREES);
+		m.translate(x+tx,y+ty);
+	}
+
+
+	/**
+	 * @private
+	 * convenience function for building a 3D matrix from the convenience properties
+	 */
+	public static function build3DMatrix(m:Matrix3D,
+										tx:Number,ty:Number,tz:Number,
+										sx:Number,sy:Number,sz:Number,
+										rx:Number,ry:Number,rz:Number,
+										x:Number,y:Number,z:Number):void
+	{
+		reVR.x = rx * RADIANS_PER_DEGREES;
+		reVR.y = ry * RADIANS_PER_DEGREES;
+		reVR.z = rz * RADIANS_PER_DEGREES;
+		m.recompose(reV);
+		m.prependScale(sx,sy,sz);
+		m.prependTranslation(-tx,-ty,-tz);
+		m.appendTranslation(tx+x,ty+y,tz+z);
+	}
+
+
+}
+}


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@1260589 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/framework/src/mx/events/EventListenerRequest.as
+++ frameworks/projects/framework/src/mx/events/EventListenerRequest.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 mx.events
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 9930
Author:   smgilson@adobe.com
Date:     2009-09-02T18:18:40.643031Z

Log Message:
-----------
Add ASDoc version tags to new or untagged classes

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/rpc/src/mx/rpc/mxml/IMXMLSupport.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/IMarshalSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/BaseDimensionFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AbstractService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/AbstractWebService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/easing/Bounce.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/IBitmapFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/DefaultTileListEffect.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/INavigatorContent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/DefaultListEffect.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/easing/Elastic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/HTTPService.as</path>

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

--- frameworks/projects/framework/src/mx/filters/BaseDimensionFilter.as
+++ frameworks/projects/framework/src/mx/filters/BaseDimensionFilter.as
@@ -3,174 +3,181 @@
 import flash.events.IEventDispatcher;
 import flash.filters.BitmapFilterQuality;

+/**
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
 public class BaseDimensionFilter extends BaseFilter
 {
-	public function BaseDimensionFilter()
-	{
-		super();
-	}
-
-	//----------------------------------
+    public function BaseDimensionFilter()
+    {
+        super();
+    }
+
+    //----------------------------------
     //  blurX
     //----------------------------------
-
-	private var _blurX:Number = 4.0;
-
-	/**
-	 *  The amount of horizontal blur. Valid values are 0 to 255. A blur of 1
-	 *  or less means that the original image is copied as is. The default
-	 *  value is 4. Values that are a power of 2 (such as 2, 4, 8, 16, and 32)
-	 *  are optimized to render more quickly than other values.
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 9
-	 *  @playerversion AIR 1.1
-	 *  @productversion Flex 3
-	 */
-	public function get blurX():Number
-	{
-		return _blurX;
-	}
-
-	public function set blurX(value:Number):void
-	{
-		if (value != _blurX)
-		{
-			_blurX = value;
-			notifyFilterChanged();
-		}
-	}
-
-	//----------------------------------
+
+    private var _blurX:Number = 4.0;
+
+    /**
+     *  The amount of horizontal blur. Valid values are 0 to 255. A blur of 1
+     *  or less means that the original image is copied as is. The default
+     *  value is 4. Values that are a power of 2 (such as 2, 4, 8, 16, and 32)
+     *  are optimized to render more quickly than other values.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function get blurX():Number
+    {
+        return _blurX;
+    }
+
+    public function set blurX(value:Number):void
+    {
+        if (value != _blurX)
+        {
+            _blurX = value;
+            notifyFilterChanged();
+        }
+    }
+
+    //----------------------------------
     //  blurY
     //----------------------------------

-	private var _blurY:Number = 4.0;
-
-	/**
-	 *  The amount of vertical blur. Valid values are 0 to 255. A blur of 1
-	 *  or less means that the original image is copied as is. The default
-	 *  value is 4. Values that are a power of 2 (such as 2, 4, 8, 16, and 32)
-	 *  are optimized to render more quickly than other values.
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 9
-	 *  @playerversion AIR 1.1
-	 *  @productversion Flex 3
-	 */
-	public function get blurY():Number
-	{
-		return _blurY;
-	}
-
-	public function set blurY(value:Number):void
-	{
-		if (value != _blurY)
-		{
-			_blurY = value;
-			notifyFilterChanged();
-		}
-	}
-
-	//----------------------------------
+    private var _blurY:Number = 4.0;
+
+    /**
+     *  The amount of vertical blur. Valid values are 0 to 255. A blur of 1
+     *  or less means that the original image is copied as is. The default
+     *  value is 4. Values that are a power of 2 (such as 2, 4, 8, 16, and 32)
+     *  are optimized to render more quickly than other values.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function get blurY():Number
+    {
+        return _blurY;
+    }
+
+    public function set blurY(value:Number):void
+    {
+        if (value != _blurY)
+        {
+            _blurY = value;
+            notifyFilterChanged();
+        }
+    }
+
+    //----------------------------------
     //  knockout
     //----------------------------------
-
-	private var _knockout:Boolean = false;
-
-	/**
-	 *  Specifies whether the object has a knockout effect. A knockout effect
-	 *  makes the object's fill transparent and reveals the background color
-	 *  of the document. The value true specifies a knockout effect; the
-	 *  default value is false (no knockout effect).
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 9
-	 *  @playerversion AIR 1.1
-	 *  @productversion Flex 3
-	 */
-	public function get knockout():Boolean
-	{
-		return _knockout;
-	}
-
-	public function set knockout(value:Boolean):void
-	{
-		if (value != _knockout)
-		{
-			_knockout = value;
-			notifyFilterChanged();
-		}
-	}
-
-	//----------------------------------
+
+    private var _knockout:Boolean = false;
+
+    /**
+     *  Specifies whether the object has a knockout effect. A knockout effect
+     *  makes the object's fill transparent and reveals the background color
+     *  of the document. The value true specifies a knockout effect; the
+     *  default value is false (no knockout effect).
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function get knockout():Boolean
+    {
+        return _knockout;
+    }
+
+    public function set knockout(value:Boolean):void
+    {
+        if (value != _knockout)
+        {
+            _knockout = value;
+            notifyFilterChanged();
+        }
+    }
+
+    //----------------------------------
     //  quality
     //----------------------------------
-
-	private var _quality:int = BitmapFilterQuality.LOW;
-
-	/**
-	 *  The number of times to apply the filter. The default value is
-	 *  BitmapFilterQuality.LOW, which is equivalent to applying the filter
-	 *  once. The value BitmapFilterQuality.MEDIUM  applies the filter twice;
-	 *  the value BitmapFilterQuality.HIGH applies it three times. Filters
-	 *  with lower values are rendered more quickly.
-	 *
-	 *  For most applications, a quality value of low, medium, or high is
-	 *  sufficient. Although you can use additional numeric values up to 15
-	 *  to achieve different effects, higher values are rendered more slowly.
-	 *  Instead of increasing the value of quality, you can often get a similar
-	 *  effect, and with faster rendering, by simply increasing the values of
-	 *  the blurX and blurY properties.
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 9
-	 *  @playerversion AIR 1.1
-	 *  @productversion Flex 3
-	 */
-	public function get quality():int
-	{
-		return _quality;
-	}
-
-	public function set quality(value:int):void
-	{
-		if (value != _quality)
-		{
-			_quality = value;
-			notifyFilterChanged();
-		}
-	}
-
-	//----------------------------------
+
+    private var _quality:int = BitmapFilterQuality.LOW;
+
+    /**
+     *  The number of times to apply the filter. The default value is
+     *  BitmapFilterQuality.LOW, which is equivalent to applying the filter
+     *  once. The value BitmapFilterQuality.MEDIUM  applies the filter twice;
+     *  the value BitmapFilterQuality.HIGH applies it three times. Filters
+     *  with lower values are rendered more quickly.
+     *
+     *  For most applications, a quality value of low, medium, or high is
+     *  sufficient. Although you can use additional numeric values up to 15
+     *  to achieve different effects, higher values are rendered more slowly.
+     *  Instead of increasing the value of quality, you can often get a similar
+     *  effect, and with faster rendering, by simply increasing the values of
+     *  the blurX and blurY properties.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function get quality():int
+    {
+        return _quality;
+    }
+
+    public function set quality(value:int):void
+    {
+        if (value != _quality)
+        {
+            _quality = value;
+            notifyFilterChanged();
+        }
+    }
+
+    //----------------------------------
     //  strength
     //----------------------------------
-
-	private var _strength:Number = 1;
-
-	/**
-	 *  The strength of the imprint or spread. The higher the value, the more
-	 *  color is imprinted and the stronger the contrast between the glow and
-	 *  the background. Valid values are 0 to 255. A value of 0 means that the
-	 *  filter is not applied. The default value is 1.
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 9
-	 *  @playerversion AIR 1.1
-	 *  @productversion Flex 3
-	 */
-	public function get strength():Number
-	{
-		return _strength;
-	}
-
-	public function set strength(value:Number):void
-	{
-		if (value != _strength)
-		{
-			_strength = value;
-			notifyFilterChanged();
-		}
-	}
+
+    private var _strength:Number = 1;
+
+    /**
+     *  The strength of the imprint or spread. The higher the value, the more
+     *  color is imprinted and the stronger the contrast between the glow and
+     *  the background. Valid values are 0 to 255. A value of 0 means that the
+     *  filter is not applied. The default value is 1.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function get strength():Number
+    {
+        return _strength;
+    }
+
+    public function set strength(value:Number):void
+    {
+        if (value != _strength)
+        {
+            _strength = value;
+            notifyFilterChanged();
+        }
+    }
 }
 }


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@1261774 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/framework/src/mx/managers/SystemChildrenList.as
+++ frameworks/projects/framework/src/mx/managers/SystemChildrenList.as
@@ -47,6 +47,11 @@

 	/**
 	 *  Constructor.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function SystemChildrenList(owner:SystemManager,
 									   lowerBoundReference:QName,
@@ -96,6 +101,11 @@

 	/**
 	 *  @copy mx.core.IChildList#numChildren
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function get numChildren():int
 	{
@@ -104,6 +114,11 @@

 	/**
 	 *  @copy mx.core.IChildList#addChild
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function addChild(child:DisplayObject):DisplayObject
 	{
@@ -115,6 +130,11 @@

 	/**
 	 *  @copy mx.core.IChildList#addChildAt
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function addChildAt(child:DisplayObject, index:int):DisplayObject
 	{
@@ -126,6 +146,11 @@

 	/**
 	 *  @copy mx.core.IChildList#removeChild
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function removeChild(child:DisplayObject):DisplayObject
 	{
@@ -141,6 +166,11 @@

 	/**
 	 *  @copy mx.core.IChildList#removeChildAt
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function removeChildAt(index:int):DisplayObject
 	{
@@ -153,6 +183,11 @@

 	/**
 	 *  @copy mx.core.IChildList#getChildAt
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
   	public function getChildAt(index:int):DisplayObject
   	{
@@ -164,6 +199,11 @@

 	/**
 	 *  @copy mx.core.IChildList#getChildByName
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
   	public function getChildByName(name:String):DisplayObject
   	{
@@ -172,6 +212,11 @@

 	/**
 	 *  @copy mx.core.IChildList#getChildIndex
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
   	public function getChildIndex(child:DisplayObject):int
   	{
@@ -182,6 +227,11 @@

 	/**
 	 *  @copy mx.core.IChildList#setChildIndex
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function setChildIndex(child:DisplayObject, newIndex:int):void
 	{
@@ -191,6 +241,11 @@

 	/**
 	 *  @copy mx.core.IChildList#getObjectsUnderPoint
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function getObjectsUnderPoint(point:Point):Array
 	{
@@ -199,6 +254,11 @@

 	/**
 	 *  @copy mx.core.IChildList#contains
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function contains(child:DisplayObject):Boolean
 	{


added missing parentheses in decompiled output

--- WeaveCore/src/weave/compiler/Compiler.as
+++ WeaveCore/src/weave/compiler/Compiler.as
@@ -1444,7 +1444,7 @@
 					if (op == '--' || op == '++')
 						return op + result;

-					return StringUtil.substitute("{0} {1} {2}", result, op, params[params.length - 1]);
+					return StringUtil.substitute("({0} {1} {2})", result, op, params[params.length - 1]);
 				}
 				// variable number of params
 				if (op == '[')


added support for as,in,is,void,delete

added support for as,in,is,void,delete

--- WeaveCore/src/weave/compiler/Compiler.as
+++ WeaveCore/src/weave/compiler/Compiler.as
@@ -309,7 +309,6 @@
 				}
 			};
 			constants['iif'] = function(c:*, t:*, f:*):* { return c ? t : f; };
-			constants['typeof'] = function(value:*):* { return typeof(value); };
 			// for trace debugging, debug must be set to true
 			if (debug)
 				constants['trace'] = function(...args):void { trace.apply(null, args); };
@@ -393,6 +392,12 @@
 			// multiple commands
 			operators[','] = function(...args):* { return args[args.length - 1]; };
 			operators[';'] = operators[',']; // equivalent functionality but must be remembered as a different operator
+			// operators with alphabetic names
+			operators['void'] = function(..._):void { };
+			operators['typeof'] = function(value:*):* { return typeof(value); };
+			operators['as'] = function(a:*, b:*):Object { return a as b; };
+			operators['in'] = function(a:*, b:*):Boolean { return a in b; };
+			operators['is'] = operators['instanceof'] = function(a:*, b:*):Boolean { return a is b; };
 			// assignment operators -- first arg is host object, last arg is new value, remaining args are a chain of property names
 			assignmentOperators['=']    = function(o:*, ...a):* { for (var i:int = 0; i < a.length - 2; i++) o = o[a[i]]; return o[a[i]] =    a[i + 1]; };
 			assignmentOperators['+=']   = function(o:*, ...a):* { for (var i:int = 0; i < a.length - 2; i++) o = o[a[i]]; return o[a[i]] +=   a[i + 1]; };
@@ -408,11 +413,12 @@
 			assignmentOperators['&=']   = function(o:*, ...a):* { for (var i:int = 0; i < a.length - 2; i++) o = o[a[i]]; return o[a[i]] &=   a[i + 1]; };
 			assignmentOperators['|=']   = function(o:*, ...a):* { for (var i:int = 0; i < a.length - 2; i++) o = o[a[i]]; return o[a[i]] |=   a[i + 1]; };
 			assignmentOperators['^=']   = function(o:*, ...a):* { for (var i:int = 0; i < a.length - 2; i++) o = o[a[i]]; return o[a[i]] ^=   a[i + 1]; };
-			// special cases: -- and ++ unary operators ignore last parameter
-			assignmentOperators['--']  = function(o:*, ...a):* { for (var i:int = 0; i < a.length - 2; i++) o = o[a[i]]; return --o[a[i]]; };
-			assignmentOperators['++']  = function(o:*, ...a):* { for (var i:int = 0; i < a.length - 2; i++) o = o[a[i]]; return ++o[a[i]]; };
+			// special cases: delete, -- and ++ unary operators ignore last parameter
+			assignmentOperators['--']   = function(o:*, ...a):* { for (var i:int = 0; i < a.length - 2; i++) o = o[a[i]]; return --o[a[i]]; };
+			assignmentOperators['++']   = function(o:*, ...a):* { for (var i:int = 0; i < a.length - 2; i++) o = o[a[i]]; return ++o[a[i]]; };
 			assignmentOperators['#--']  = function(o:*, ...a):* { for (var i:int = 0; i < a.length - 2; i++) o = o[a[i]]; return o[a[i]]--; };
 			assignmentOperators['#++']  = function(o:*, ...a):* { for (var i:int = 0; i < a.length - 2; i++) o = o[a[i]]; return o[a[i]]++; };
+			assignmentOperators['delete'] = function(o:*, ...a):* { for (var i:int = 0; i < a.length - 2; i++) o = o[a[i]]; return delete o[a[i]]; };
 			for (var aop:String in assignmentOperators)
 				operators[aop] = assignmentOperators[aop];

@@ -421,7 +427,7 @@
 				['*','/','%'],
 				['+','-'],
 				['<<','>>','>>>'],
-				['<','<=','>','>='],
+				['<','<=','>','>=','as','in','instanceof','is'],
 				['==','!=','===','!=='],
 				['&'],
 				['^'],
@@ -430,7 +436,7 @@
 				['||']
 			];
 			// unary operators
-			unaryOperatorSymbols = ['--','++','+','-','~','!']; // '#' not listed because it has special evaluation order
+			unaryOperatorSymbols = ['++','--','+','-','~','!','delete','typeof','void']; // '#' not listed because it has special evaluation order

 			// create a corresponding function name for each operator
 			for (var op:String in operators)
@@ -528,7 +534,7 @@

 			// handle operators (find the longest matching operator)
 			// this function assumes operators has already been initialized
-			if (operators.hasOwnProperty(c))
+			if (operators.hasOwnProperty(c)) // only handle operator if it begins with operator character (doesn't include as,in,instanceof,is)
 				for (var opLength:int = MAX_OPERATOR_LENGTH; opLength > 0; opLength--)
 					if (operators.hasOwnProperty(c = expression.substr(index, opLength)))
 						return c;
@@ -1433,6 +1439,8 @@

 					if (op.charAt(0) == '#')
 						return result + op.substr(1);
+					if (op == 'delete')
+						return op + ' ' + result;
 					if (op == '--' || op == '++')
 						return op + result;

@@ -1447,7 +1455,12 @@
 					return '(' + params.join(', ') + ')';

 				if (call.compiledParams.length == 1) // unary op
-					return op + params[0];
+				{
+					var c:String = op.charAt(0);
+					if (operators.hasOwnProperty(c) && c != (params[0] as String).charAt(0))
+						return op + params[0];
+					return op + ' ' + params[0];
+				}
 				if (call.compiledParams.length == 2) // infix op
 					return StringUtil.substitute("({0} {1} {2})", params[0], op, params[1]);
 				if (call.compiledParams.length == 3 && op == '?:') // ternary op


fixed null pointer error

fixed null pointer error

Change-Id: I027cc949e657f85e60282457d9051f7832909071

--- WeaveCore/src/weave/core/Synchronizer.as
+++ WeaveCore/src/weave/core/Synchronizer.as
@@ -86,6 +86,10 @@
 		// When given one or more parameters, this function copies the bindable value to the linkable value.
 		private function synchronize(firstParam:* = undefined, callingLater:Boolean = false):void
 		{
+			// stop if already disposed
+			if (!linkableVariable)
+				return;
+
 			// unlink if linkableVariable was disposed
 			if (sm.objectWasDisposed(linkableVariable))
 			{
@@ -176,7 +180,7 @@
 			if (sm.getCallbackCollection(linkableVariable).callbacksAreDelayed)
 			{
 				// firstParam is ignored when callingLater=true
-				WeaveAPI.StageUtils.callLater(linkableVariable, synchronize, [firstParam, true], WeaveAPI.TASK_PRIORITY_0_IMMEDIATE);
+				WeaveAPI.StageUtils.callLater(this, synchronize, [firstParam, true], WeaveAPI.TASK_PRIORITY_0_IMMEDIATE);
 				return;
 			}


Update src/aerys/minko/type/MouseManager.as

Fixed bug in middle mouse button handler.

--- src/aerys/minko/type/MouseManager.as
+++ src/aerys/minko/type/MouseManager.as
@@ -117,12 +117,12 @@

 		private function mouseMiddleDownHandler(event : MouseEvent) : void
 		{
-			_rightButtonDown = true;
+			_middleButtonDown = true;
 		}

 		private function mouseMiddleUpHandler(event : MouseEvent) : void
 		{
-			_rightButtonDown = false;
+			_middleButtonDown = false;
 		}

 		private function mouseRightDownHandler(event : MouseEvent) : void


try to fix align right

try to fix align right

--- frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/CSSTextField.as
+++ frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/CSSTextField.as
@@ -19,6 +19,7 @@
 package org.apache.flex.core
 {
 	import flash.text.TextField;
+    import flash.text.TextFieldAutoSize;
 	import flash.text.TextFormat;

 	import org.apache.flex.core.ValuesManager;
@@ -84,9 +85,15 @@
 			tf.rightMargin = paddingRight;
             var align:Object = ValuesManager.valuesImpl.getValue(sp, "text-align");
             if (align == "center")
+			{
+				autoSize = TextFieldAutoSize.NONE;
                 tf.align = "center";
+			}
             else if (align == "right")
+			{
                 tf.align = "right";
+				autoSize = TextFieldAutoSize.NONE;
+			}

 			defaultTextFormat = tf;
 			super.text = value;


Transferred from the Adobe Open Source Subversion Repository

Revision: 12052
Author:   clucier@adobe.com
Date:     2009-11-20T18:38:19.094091Z

Log Message:
-----------
We now issue runtime warnings for incompatible embedded fonts as we detect their use.

QE notes: You might want to create a couple tests around this.
Doc notes: None.
Bugs: SDK-23920.
Reviewer: Alex, Darrell
Tests run: Checkin
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/core.properties</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridColumn.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RichText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/mx/core/UIFTETextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/EmbeddedFontRegistry.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/utils/TextUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextFormat.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Label.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/spark/src/spark/components/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IEmbeddedFontRegistry.as</path>

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

--- frameworks/projects/mx/src/mx/controls/dataGridClasses/DataGridColumn.as
+++ frameworks/projects/mx/src/mx/controls/dataGridClasses/DataGridColumn.as
@@ -1919,10 +1919,12 @@
             fontStyle = owner.getStyle("fontStyle");
         var bold:Boolean = fontWeight == "bold";
         var italic:Boolean = fontStyle == "italic";
+
         embeddedFontContext = (noEmbeddedFonts || !embeddedFontRegistry) ?
 			null :
             embeddedFontRegistry.getAssociatedModuleFactory(
-                fontName, bold, italic, this, owner.moduleFactory);
+                fontName, bold, italic, this, owner.moduleFactory,
+                owner.systemManager);

         if (embeddedFontContext != oldEmbeddedFontContext)
         {
@@ -1980,12 +1982,13 @@
             bold = fontWeight == "bold";
             italic = fontStyle == "italic";
         }
-
+
         embeddedFontContext = (noEmbeddedFonts || !embeddedFontRegistry) ?
 			null :
             embeddedFontRegistry.getAssociatedModuleFactory(
-                fontName, bold, italic, this, owner.moduleFactory);
-
+                fontName, bold, italic, this, owner.moduleFactory,
+                owner.systemManager);
+
         if (embeddedFontContext != oldHeaderEmbeddedFontContext)
         {
             oldHeaderEmbeddedFontContext = embeddedFontContext;


Transferred from the Adobe Open Source Subversion Repository

Revision: 20032
Author:   smgilson@adobe.com
Date:     2011-02-01T15:47:30.269415Z

Log Message:
-----------
Minor ASDoc edits

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridColumn.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/IGridItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/IGridVisualElement.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/ComboBoxGridItemEditor.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridSelectionMode.as</path>

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

--- frameworks/projects/spark/src/spark/components/gridClasses/GridColumn.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridColumn.as
@@ -367,11 +367,11 @@
     [Inspectable(category="General")]

     /**
-     *  Specifies the formatter used by the column's itemToDataTip() method to
-     *  convert dataProvider items to strings.
-     *
-     *
If the formatter's styleParent wasn't specified, it's set
-     *  to the column's grid, so that the formatter inherits the grid's "locale" style.

+     *  Specifies the formatter used by the column's itemToDataTip() method to
+     *  convert data provider items to Strings.
+     *
+     *
If the formatter's styleParent was not specified, it's set
+     *  to the column's grid, so that the formatter inherits the grid's locale style.

      *
      *  @default null
      *
@@ -433,23 +433,24 @@

     /**
      *  Specifies a callback function to run on each item of the data provider
-     *  to determine its dataTip.
+     *  to determine its data tip.
      *  This property is used by the itemToDataTip method.
      *
      *
By default, if showDataTips is true,
      *  the column looks for a property named label
-     *  on each data provider item and displays it as its dataTip.
+     *  on each data provider item and displays it as its data tip.
      *  However, some data providers do not have a label property
      *  nor do they have another property that you can use for displaying data
-     *  in the rows.
-     *  For example, you might have a data provider that contains a lastName
-     *  and firstName fields, but you want to display full names as the dataTip.
+     *  in the rows.

+     *
+     *
For example, you have a data provider that contains a lastName
+     *  and firstName fields, but you want to display full names as the data tip.
      *  You can specify a function to the dataTipFunction property
      *  that returns a single String containing the value of both fields. You
      *  can also use the dataTipFunction property for handling
      *  formatting and localization.

      *
-     *
The dataTipFunction's signature must match the following:
+     *
The signature of the dataTipFunction function must match the following:
      *
      *
dataTipFunction(item:Object, column:GridColumn):String

      *
@@ -460,7 +461,6 @@
      *  lastName properties, or do some custom formatting on a Date value
      *  property.

      *
-     *
      *  @default null
      *
      *  @see #itemToDataTip
@@ -544,11 +544,11 @@
     [Inspectable(category="General")]

     /**
-     *  Specifies the formatter used by the column's itemToLabel() method to
-     *  convert dataProvider items to strings.
-     *
-     *
If the formatter's styleParent wasn't specified, it's set
-     *  to the column's grid, so that the formatter inherits the grid's "locale" style.

+     *  Specifies the formatter used by the column's itemToLabel() method to
+     *  convert data provider items to strings.
+     *
+     *
If the formatter's styleParent was not specified, it's set
+     *  to the column's grid, so that the formatter inherits the grid's locale style.

      *
      *  @default null
      *


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@1259307 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/framework/src/mx/core/IEmbeddedFontRegistry.as
+++ frameworks/projects/framework/src/mx/core/IEmbeddedFontRegistry.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 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.core
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 23247
Author:   cframpto@adobe.com
Date:     2011-12-20T19:21:13.134833Z

Log Message:
-----------
Remove ADOBE SYSTEMS license and replace with Apache license in headers - frameworks.  A 2nd pass will be needed to get the files not handled up by the scripts.

Modified Paths:
--------------
4959 paths were modified

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

--- frameworks/projects/framework/src/mx/styles/AdvancedStyleClient.as
+++ frameworks/projects/framework/src/mx/styles/AdvancedStyleClient.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2010 Adobe Systems Incorporated
-//  All Rights Reserved.
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
 //
-//  NOTICE: Adobe permits you to use, modify, and distribute this file
-//  in accordance with the terms of the license agreement accompanying it.
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
 //
 ////////////////////////////////////////////////////////////////////////////////


Transferred from the Adobe Open Source Subversion Repository

Revision: 23247
Author:   cframpto@adobe.com
Date:     2011-12-20T19:21:13.134833Z

Log Message:
-----------
Remove ADOBE SYSTEMS license and replace with Apache license in headers - frameworks.  A 2nd pass will be needed to get the files not handled up by the scripts.

Modified Paths:
--------------
4959 paths were modified

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

--- frameworks/projects/framework/src/mx/validators/StringValidator.as
+++ frameworks/projects/framework/src/mx/validators/StringValidator.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2003-2007 Adobe Systems Incorporated
-//  All Rights Reserved.
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
 //
-//  NOTICE: Adobe permits you to use, modify, and distribute this file
-//  in accordance with the terms of the license agreement accompanying it.
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
 //
 ////////////////////////////////////////////////////////////////////////////////


Transferred from the Adobe Open Source Subversion Repository

Revision: 15290
Author:   cframpto@adobe.com
Date:     2010-04-08T23:14:41.217329Z

Log Message:
-----------
Merge RET fix 15289 from 4.x to trunk.

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

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

--- frameworks/projects/spark/src/spark/components/RichEditableText.as
+++ frameworks/projects/spark/src/spark/components/RichEditableText.as
@@ -2628,11 +2628,14 @@
             // between a measured width/height that is the same as the
             // constrained width/height to know whether that dimension can
             // be sized or must be fixed at the constrained value.
-            if (!isNaN(width))
-                widthConstraint = width;
-
-            if (!isNaN(height))
-                heightConstraint = height;
+            if (autoSize)
+            {
+                if (!isNaN(width))
+                    widthConstraint = width;
+
+                if (!isNaN(height))
+                    heightConstraint = height;
+            }

             super.setLayoutBoundsSize(width, height, postLayoutTransform);
         }


Fixed bug where ObjectPool.returnObject() was called on Bounds2D objects more often than they were returned from ObjectPool.borrowObject(), causing random zoom behavior.

--- WeaveUISpark/src/weave/visualization/plotters/TextGlyphPlotter.as
+++ WeaveUISpark/src/weave/visualization/plotters/TextGlyphPlotter.as
@@ -105,7 +105,7 @@
 						// cleanup
 						for each (bounds in reusableBoundsObjects)
 							ObjectPool.returnObject(bounds);
-						reusableBoundsObjects.length = 0;
+						reusableBoundsObjects.length = 0; // important so we don't return the same bounds later
 					}

 					if (task.iteration < task.recordKeys.length)
@@ -187,6 +187,7 @@
 					// cleanup
 					for each (bounds in reusableBoundsObjects)
 						ObjectPool.returnObject(bounds);
+					reusableBoundsObjects.length = 0; // important so we don't return the same bounds later

 					return 1; // avoids divide-by-zero when there are no record keys
 				}; // end task function