Transferred from the Adobe Open Source Subversion Repository

Revision: 7743
Author:   clucier@adobe.com
Date:     2009-06-11T13:53:10.203664Z

Log Message:
-----------
Moving away from using namespace qualifiers in most cases in the SDK.  We've run into a few cases now where the use of qualifiers in code that is called excessively can slow things down.
Bugs: SDK-21337
Reviewer: Ryan, Paul
QE Notes: None
Tests: Ran several random Mustella test groups, checkintests.

Modified Paths:
--------------
106 paths were modified

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

--- frameworks/projects/spark/src/spark/core/SpriteVisualElement.as
+++ frameworks/projects/spark/src/spark/core/SpriteVisualElement.as
@@ -23,6 +23,8 @@
 import mx.core.mx_internal;
 import mx.utils.MatrixUtil;

+use namespace mx_internal;
+
 /**
  *  The SpriteVisualElement class is a light-weight Sprite-based implemention
  *  of IVisualElement.  It can be dropped in to Spark containers and be laid
@@ -310,7 +312,7 @@
      */
     public function get percentHeight():Number
     {
-        return mx_internal::_percentHeight;
+        return _percentHeight;
     }

     /**
@@ -318,10 +320,10 @@
      */
     public function set percentHeight(value:Number):void
     {
-        if (mx_internal::_percentHeight == value)
-            return;
-
-        mx_internal::_percentHeight = value;
+        if (_percentHeight == value)
+            return;
+
+        _percentHeight = value;
         invalidateParentSizeAndDisplayList();
     }

@@ -342,7 +344,7 @@
      */
     public function get percentWidth():Number
     {
-        return mx_internal::_percentWidth;
+        return _percentWidth;
     }

     /**
@@ -350,10 +352,10 @@
      */
     public function set percentWidth(value:Number):void
     {
-        if (mx_internal::_percentWidth == value)
+        if (_percentWidth == value)
             return;

-        mx_internal::_percentWidth = value;
+        _percentWidth = value;
         invalidateParentSizeAndDisplayList();
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 12870
Author:   klin@adobe.com
Date:     2009-12-11T23:52:43.652707Z

Log Message:
-----------
Couple of minor fixes including SDK-24627 and SDK-24628.

-Added metadata so that resizeMode code hints. Needed to add the same metadata to Group since it doesn't inherit the enumerations from GroupBase. Renamed NOSCALE to NO_SCALE, which is more in line with naming conventions.
-Added null checks in VScrollBar and HScrollBar in pointToValue().
-Cleaned up VSlider's code.

QE notes: No
Doc notes: No
Bugs: SDK-24627, SDK-24628
Reviewer: Ryan
Tests run: checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Group.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/ResizeMode.as</path>

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

--- frameworks/projects/spark/src/spark/core/SpriteVisualElement.as
+++ frameworks/projects/spark/src/spark/core/SpriteVisualElement.as
@@ -206,7 +206,7 @@
         _width = width;
         _height = height;

-        if (resizeMode == ResizeMode.NOSCALE)
+        if (resizeMode == ResizeMode.NO_SCALE)
         {
             // Set the internal scale to 1
             if (_layoutFeatures)


Transferred from the Adobe Open Source Subversion Repository

Revision: 23292
Author:   cframpto@adobe.com
Date:     2012-01-11T19:34:51.110620Z

Log Message:
-----------
Remove AdobePatentID="9999" strings per directions from legal.

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/apache/modules/compiler/src/java/flex2/compiler/as3/SkinPartExtension.java</path>
<path kind="file" action="M">/private/flex/sdk/branches/apache/modules/compiler/src/java/flex2/compiler/mxml/gen/StatesGenerator.java</path>
<path kind="file" action="M">/private/flex/sdk/branches/apache/frameworks/projects/spark/src/spark/components/supportClasses/Skin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/apache/frameworks/projects/framework/src/mx/collections/ModifiedCollectionView.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/apache/modules/compiler/src/java/flex2/compiler/CompilerAPI.java</path>
<path kind="file" action="M">/private/flex/sdk/branches/apache/modules/compiler/src/java/flex2/compiler/as3/SkinPartEvaluator.java</path>
<path kind="file" action="M">/private/flex/sdk/branches/apache/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/apache/frameworks/projects/spark/src/spark/effects/AnimateTransform.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/apache/modules/compiler/src/java/flex2/compiler/as3/binding/TypeAnalyzer.java</path>
<path kind="file" action="M">/private/flex/sdk/branches/apache/modules/compiler/src/java/flex2/compiler/mxml/rep/StatesModel.java</path>
<path kind="file" action="M">/private/flex/sdk/branches/apache/frameworks/projects/mx/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/apache/frameworks/projects/framework/src/mx/states/AddItems.as</path>

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

--- frameworks/projects/spark/src/spark/effects/AnimateTransform.as
+++ frameworks/projects/spark/src/spark/effects/AnimateTransform.as
@@ -16,8 +16,6 @@
 //  limitations under the License.
 //
 ////////////////////////////////////////////////////////////////////////////////
-
-// AdobePatentID="B998"

 package spark.effects
 {


update CloneOptions.cloneAllOptions and CloneOptions.defaultOptions to ignore the light related controller

--- src/aerys/minko/type/clone/CloneOptions.as
+++ src/aerys/minko/type/clone/CloneOptions.as
@@ -4,6 +4,10 @@
 	import aerys.minko.scene.controller.AnimationController;
 	import aerys.minko.scene.controller.TransformController;
 	import aerys.minko.scene.controller.camera.CameraController;
+	import aerys.minko.scene.controller.light.DirectionalLightController;
+	import aerys.minko.scene.controller.light.LightController;
+	import aerys.minko.scene.controller.light.PointLightController;
+	import aerys.minko.scene.controller.light.SpotLightController;
 	import aerys.minko.scene.controller.mesh.MeshController;
 	import aerys.minko.scene.controller.mesh.MeshVisibilityController;
 	import aerys.minko.scene.controller.mesh.skinning.SkinningController;
@@ -54,7 +58,11 @@
 				MeshController,
 				MeshVisibilityController,
 				CameraController,
-				TransformController
+				TransformController,
+                LightController,
+                DirectionalLightController,
+                SpotLightController,
+                PointLightController,
 			);
 			cloneOptions._defaultControllerAction = ControllerCloneAction.REASSIGN;

@@ -69,7 +77,11 @@
 				MeshController,
 				MeshVisibilityController,
 				CameraController,
-				TransformController
+				TransformController,
+                LightController,
+                DirectionalLightController,
+                SpotLightController,
+                PointLightController
 			);
 			cloneOptions._defaultControllerAction = ControllerCloneAction.CLONE;


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

--- frameworks/projects/charts/src/mx/charts/effects/SeriesZoom.as
+++ frameworks/projects/charts/src/mx/charts/effects/SeriesZoom.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.effects
 {


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

--- frameworks/projects/framework/src/mx/core/ITextFieldFactory.as
+++ frameworks/projects/framework/src/mx/core/ITextFieldFactory.as
@@ -1,13 +1,3 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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: 4866
Author:   hmuller@adobe.com
Date:     2009-02-05T22:14:08.037552Z

Log Message:
-----------
Bug fixes, notably support for "canceling" keyboard events that drive scrolling.  Added mouse-wheel scrolling to FxScroller.

QE Notes:
Doc Notes: None
Bugs: sdk-19027, sdk-19028, sdk-18903, sdk-18673
Reviewer: Evtim, Alex

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxRange.as</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/flex4/src/mx/components/FxScroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxDefaultItemRenderer.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxTrackBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxList.as</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/layout/VerticalLayout.as</path>

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

--- frameworks/projects/framework/src/mx/managers/SystemManager.as
+++ frameworks/projects/framework/src/mx/managers/SystemManager.as
@@ -24,6 +24,7 @@
 import flash.display.StageAlign;
 import flash.display.StageScaleMode;
 import flash.events.Event;
+import flash.events.KeyboardEvent;
 import flash.events.EventDispatcher;
 import flash.events.EventPhase;
 import flash.events.IEventDispatcher;
@@ -37,6 +38,7 @@
 import flash.system.Capabilities;
 import flash.text.Font;
 import flash.text.TextFormat;
+import flash.ui.Keyboard;
 import flash.utils.ByteArray;
 import flash.utils.Dictionary;
 import flash.utils.Timer;
@@ -86,6 +88,7 @@
 import mx.utils.LoaderUtil;
 import mx.utils.ObjectUtil;
 import mx.utils.SecurityUtil;
+import flash.events.KeyboardEvent;

 // NOTE: Minimize the non-Flash classes you import here.
 // Any dependencies of SystemManager have to load in frame 1,
@@ -286,6 +289,10 @@
 			compiledLocales[0] :
 			"en_US";

+        // This listener is intended to run before any other KeyboardEvent listeners
+        // so that it can redispatch a cancelable=true copy of the event.
+        addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, true, 1000);
+
 		executeCallbacks();

 		// Make sure to stop the playhead on the current frame.
@@ -1944,7 +1951,7 @@
 			initFunction(this);
 		}
 	}
-
+
 	//--------------------------------------------------------------------------
 	//
 	//  Methods: Child management
@@ -3085,7 +3092,6 @@
 		Singleton.registerClass("mx.core::ITextFieldFactory",
 			Class(getDefinitionByName("mx.core::TextFieldFactory")));

-
 		executeCallbacks();
 		doneExecutingInitCallbacks = true;

@@ -3107,6 +3113,45 @@

 		deferredNextFrame();
 	}
+
+    /**
+     *  @private
+     *  The Flash Player dispatches KeyboardEvents with cancelable=false.
+     *  We'd like to be able to use the preventDefault() method on some
+     *  KeyBoard events to record the fact that they've been handled.
+     *  This method stops propagation of the original event and redispatches
+     *  the new one from the original event's target.
+     *
+     *  We're only handling a small subset of keyboard events, to
+     *  avoid unnecessary copying.   Most of events in the subset are
+     *  handled by both FxScroller and by classes like FxTextArea or
+     *  or FxList that include an FxScroller in their skin.
+     */
+    private function keyDownHandler(e:KeyboardEvent):void
+    {
+        if (!e.cancelable)
+        {
+            switch (e.keyCode)
+            {
+                case Keyboard.UP:
+                case Keyboard.DOWN:
+                case Keyboard.PAGE_UP:
+                case Keyboard.PAGE_DOWN:
+                case Keyboard.HOME:
+                case Keyboard.END:
+                case Keyboard.LEFT:
+                case Keyboard.RIGHT:
+                case Keyboard.ENTER:
+                {
+                    e.stopImmediatePropagation();
+                    var cancelableEvent:KeyboardEvent =
+                        new KeyboardEvent(e.type, e.bubbles, true, e.charCode, e.keyCode,
+                                          e.keyLocation, e.ctrlKey, e.altKey, e.shiftKey)
+                    e.target.dispatchEvent(cancelableEvent);
+                }
+            }
+        }
+    }

 	private function installCompiledResourceBundles():void
 	{


Transferred from the Adobe Open Source Subversion Repository

Revision: 13162
Author:   clucier@adobe.com
Date:     2009-12-22T21:05:24.721246Z

Log Message:
-----------
Reverting revision 13127 per Steve Breinberg.

Modified Paths:
--------------
<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/managers/systemClasses/ChildManager.as</path>

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

--- frameworks/projects/framework/src/mx/managers/SystemManager.as
+++ frameworks/projects/framework/src/mx/managers/SystemManager.as
@@ -2778,34 +2778,64 @@
                 sandboxRoot.addEventListener(Event.RESIZE, Stage_resizeHandler, false, 0, true);
         }

-        var w:Number;
-        var h:Number;
-        if (isStageRoot && stage)
-        {
-            // stageWidth/stageHeight may have changed between initialize() and now,
-            // so refresh our _width and _height here.
-            _width = stage.stageWidth;
-            _height = stage.stageHeight;
+        var app:IUIComponent;
+        // Create a new instance of the toplevel class
+        document = app = topLevelWindow = IUIComponent(create());
+
+        if (document)
+        {
+            // Add listener for the creationComplete event
+            IEventDispatcher(app).addEventListener(FlexEvent.CREATION_COMPLETE,
+                                                   appCreationCompleteHandler);
+
+            if (isStageRoot && stage)
+            {
+                // stageWidth/stageHeight may have changed between initialize() and now,
+                // so refresh our _width and _height here.
+                _width = stage.stageWidth;
+                _height = stage.stageHeight;
+
+                // Detect and account for special case where our stage in some
+                // contexts has not actually been initialized fully, as is the
+                // case with IE if the window is fully obscured upon loading.
+                if (_width == 0 && _height == 0 &&
+                    loaderInfo.width != _width &&
+                    loaderInfo.height != _height)
+                {
+                    _width = loaderInfo.width;
+                    _height = loaderInfo.height;
+                }
+
+                IFlexDisplayObject(app).setActualSize(_width, _height);
+            }
+            else
+                IFlexDisplayObject(app).setActualSize(loaderInfo.width, loaderInfo.height);
+
+            // Wait for the app to finish its initialization sequence
+            // before doing an addChild().
+            // Otherwise, the measurement/layout code will cause the
+            // player to do a bunch of unnecessary screen repaints,
+            // which slows application startup time.

-            // Detect and account for special case where our stage in some
-            // contexts has not actually been initialized fully, as is the
-            // case with IE if the window is fully obscured upon loading.
-            if (_width == 0 && _height == 0 &&
-                loaderInfo.width != _width &&
-                loaderInfo.height != _height)
-            {
-                w = _width = loaderInfo.width;
-                h = _height = loaderInfo.height;
-            }
+            // Pass the application instance to the preloader.
+            // Note: preloader can be null when the user chooses
+            // Control > Play in the standalone player.
+            if (preloader)
+                preloader.registerApplication(app);
+
+            // The Application doesn't get added to the SystemManager in the standard way.
+            // We want to recursively create the entire application subtree and process
+            // it with the LayoutManager before putting the Application on the display list.
+            // So here we what would normally happen inside an override of addChild().
+            // Leter, when we actually attach the Application instance,
+            // we call super.addChild(), which is the bare player method.
+            childManager.addingChild(DisplayObject(app));
+            childManager.childAdded(DisplayObject(app)); // calls app.createChildren()
         }
         else
         {
-            w = loaderInfo.width;
-            h = loaderInfo.height;
-        }
-
-        childManager.initializeTopLevelWindow(w, h);
-
+            document = this;
+        }
     }

     /**


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

--- frameworks/projects/charts/src/mx/charts/chartClasses/ChartLabel.as
+++ frameworks/projects/charts/src/mx/charts/chartClasses/ChartLabel.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: 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@1248723 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/advancedgrids/src/mx/olap/IOLAPSchema.as
+++ frameworks/projects/advancedgrids/src/mx/olap/IOLAPSchema.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.olap
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 19492
Author:   rfrishbe@adobe.com
Date:     2010-12-20T23:00:41.140256Z

Log Message:
-----------
Fixing up a simple RTE in HScrollBar/VScrollBar in touch interactionMode by checking for viewport==null.

QE notes:
Doc notes:
Bugs: SDK-28922
Reviewer: Evtim
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/components/VScrollBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/HScrollBar.as</path>

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

--- frameworks/projects/spark/src/spark/components/HScrollBar.as
+++ frameworks/projects/spark/src/spark/components/HScrollBar.as
@@ -249,7 +249,7 @@

         var min:Number;
         var max:Number;
-        if (getStyle("interactionMode") == InteractionMode.TOUCH)
+        if (getStyle("interactionMode") == InteractionMode.TOUCH && viewport)
         {
             // For calculating thumb position/size on mobile, we want to exclude
             // the extra margin we added to minimum and maximum for bounce/pull.


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

--- frameworks/projects/spark/src/spark/components/ResizeMode.as
+++ frameworks/projects/spark/src/spark/components/ResizeMode.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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
 {


FLEX-26698 Fixed formatting of zero

FLEX-26698 Fixed formatting of zero

--- frameworks/projects/framework/src/mx/formatters/CurrencyFormatter.as
+++ frameworks/projects/framework/src/mx/formatters/CurrencyFormatter.as
@@ -724,8 +724,13 @@
         	// Handle leading zero if we got one give one if not don't
         	var position:Number = numStr.indexOf(".");
         	var leading:String = position > 0 ? "0" : "";
-            numStr = leading + decimalSeparatorTo +
-					 numStr.substring(position + 1);
+
+			// must be zero ("0") if no "." and >= 0 and < 1
+			if (position != -1)
+			{
+	            numStr = leading + decimalSeparatorTo +
+						 numStr.substring(position + 1);
+			}
         }

         numStr = dataFormatter.formatPrecision(numStr, int(precision));


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

--- frameworks/projects/rpc/src/mx/messaging/messages/AbstractMessage.as
+++ frameworks/projects/rpc/src/mx/messaging/messages/AbstractMessage.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2006-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: 5099
Author:   gauravj@adobe.com
Date:     2009-02-27T03:43:02.639229Z

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:
--------------
147 paths were modified

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

--- frameworks/projects/rpc/src/mx/messaging/messages/AsyncMessageExt.as
+++ frameworks/projects/rpc/src/mx/messaging/messages/AsyncMessageExt.as
@@ -49,6 +49,12 @@

     /**
      *  The unique id for the message.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion BlazeDS 4
+     *  @productversion LCDS 3
      */
     override public function get messageId():String
     {


Transferred from the Adobe Open Source Subversion Repository

Revision: 7836
Author:   chaase@adobe.com
Date:     2009-06-15T14:37:21.379918Z

Log Message:
-----------
PARB changes for effects. This includes various property renames, a couple of class renames, moving 3 classes to a sub-package, and various doc cleanups. This also includes changing a handful of Array properties to typed Vectors.

QE: This breaks Mustella due to the renames
Doc: Docs will need to be updated to reflect the changes as well
Bugs: None
Reviewer: Jason
Tests: checkintests, Thermo's transitionbug test

Modified Paths:
--------------
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/utils/BitmapUtil.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/MotionPath.as" copyfrom-rev="7748" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/MotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/easing/Power.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/easing/EasingFraction.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/KeyFrame.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/interpolation/RGBInterpolator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/interpolation/HSBInterpolator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/CallAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateColor.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/supportClasses/FadeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/RepeatBehavior.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateShaderTransition.as" copyfrom-rev="7748" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransitionShader.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateShaderTransition.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/flex4/src/spark/components/supportClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/interpolation/IInterpolator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/interpolation/NumberInterpolator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Rotate3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Scale.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/CallActionInstance.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/SimpleMotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateColorInstance.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/animation/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Rotate.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateShaderTransitionInstance.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateShaderTransitionInstance.as" copyfrom-rev="7748" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateTransitionShaderInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Wipe.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/easing/Sine.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Move.as</path>
<path kind="file" action="M">/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/CrossFade.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransform.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/SimpleMotionPath.as" copyfrom-rev="7748" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/SimpleMotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/HSBColor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/IAnimationTarget.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/easing/Linear.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/ResizeInstance.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/Keyframe.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/CrossFade.pbk</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/MotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/WipeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateTransformInstance.as</path>

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

--- frameworks/projects/spark/src/spark/effects/easing/EasingFraction.as
+++ frameworks/projects/spark/src/spark/effects/easing/EasingFraction.as
@@ -59,6 +59,6 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    public static const IN_OUT:Number = .5;
+    public static const IN_OUT:Number = 0.5;
 }
 }


Rollback to previous version, Adobe change request was cancelled

git-svn-id: c79b92e96100ef39c59e158da2f25328426f47b5@372 5cf17b04-402e-0410-8052-5f67ef7ba858

--- swfobject/src/expressInstall.as
+++ swfobject/src/expressInstall.as
@@ -2,7 +2,7 @@
 	Express Install Copyright (c) 2007-2008 Adobe Systems Incorporated and its licensors. All Rights Reserved.
 */

-System.security.allowDomain("fpdownload2.macromedia.com");
+System.security.allowDomain("fpdownload.macromedia.com");

 var time = 0;
 var timeOut = 5; // in seconds
@@ -10,7 +10,7 @@
 var int_id = setInterval(checkLoaded, delay);
 var old_si = null;
 var loaderClip = this.createEmptyMovieClip("loaderClip", 0);
-var updateSWF = "http://fpdownload2.macromedia.com/pub/flashplayer/update/current/swf/autoUpdater.swf?" + Math.random();
+var updateSWF = "http://fpdownload.macromedia.com/pub/flashplayer/update/current/swf/autoUpdater.swf?" + Math.random();
 loaderClip.loadMovie(updateSWF);

 function checkLoaded(){


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

--- frameworks/projects/mx/src/mx/styles/metadata/IconColorStyles.as
+++ frameworks/projects/mx/src/mx/styles/metadata/IconColorStyles.as
@@ -1,5 +1,31 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////

+/**
+ *  The color for the icon in a skin.
+ *  For example, this style is used by the CheckBoxIcon skin class
+ *  to draw the check mark for a CheckBox control,
+ *  by the ComboBoxSkin class to draw the down arrow of the ComboBox control,
+ *  and by the DateChooserMonthArrowSkin skin class to draw the month arrow
+ *  for the DateChooser control.
+ *
+ *  The default value depends on the component class;
+ *  if it is not overridden by the class, the default value is 0x111111.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
 [Style(name="iconColor", type="uint", format="Color", inherit="yes", theme="halo")]

 /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 22448
Author:   build@adobe.com
Date:     2011-09-08T19:26:12.465737Z

Log Message:
-----------
Version update to 4.6.0

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/airspark/src/spark/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/automation_air/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/automation_spark/src/spark/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/flex-config.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/automation_spark/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/automation/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark_dmv/src/spark/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/rpc/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mx/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/charts/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/automation_flashflexkit/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/automation_dmv/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/build.properties</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/modules/compiler/src/java/flex2/tools/VersionInfo.java</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/airframework/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/framework/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/advancedgrids/src/mx/core/Version.as</path>

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

--- frameworks/projects/automation_spark/src/mx/core/Version.as
+++ frameworks/projects/automation_spark/src/mx/core/Version.as
@@ -15,4 +15,4 @@
  *  @private
  *  Version string for this class.
  */
-mx_internal static const VERSION:String = "4.5.2.0";
+mx_internal static const VERSION:String = "4.6.0.0";


Transferred from the Adobe Open Source Subversion Repository

Revision: 20920
Author:   build@adobe.com
Date:     2011-03-18T19:54:14.958635Z

Log Message:
-----------
Version update to 4.5.1

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/airspark/src/spark/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/automation_air/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/flex-config.xml</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/automation_spark/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/automation/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark_dmv/src/spark/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/rpc/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/mx/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/charts/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/automation_flashflexkit/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/automation_dmv/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/VersionInfo.java</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/advancedgrids/src/mx/core/Version.as</path>

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

--- frameworks/projects/automation_spark/src/mx/core/Version.as
+++ frameworks/projects/automation_spark/src/mx/core/Version.as
@@ -15,4 +15,4 @@
  *  @private
  *  Version string for this class.
  */
-mx_internal static const VERSION:String = "4.5.0.0";
+mx_internal static const VERSION:String = "4.5.1.0";


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

--- frameworks/projects/spark/src/spark/modules/ModuleLoader.as
+++ frameworks/projects/spark/src/spark/modules/ModuleLoader.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2006-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 spark.modules
 {


Switching swfcat.as to point to David's facilitator by default instead of Nate's

--- swfcat.as
+++ swfcat.as
@@ -27,9 +27,9 @@
         private const DEFAULT_CIRRUS_ADDR:String = "rtmfp://p2p.rtmfp.net";
         private const DEFAULT_CIRRUS_KEY:String = RTMFP::CIRRUS_KEY;

-        /* Nate's facilitator -- serves a crossdomain policy */
+        /* David's facilitator. */
         private const DEFAULT_FACILITATOR_ADDR:Object = {
-            host: "128.12.179.80",
+            host: "173.255.221.44",
             port: 9002
         };


need to override clone and present a different method to be overridden without creating a dependency on flash classes

--- frameworks/as/projects/FlexJSUI/src/org/apache/flex/events/Event.as
+++ frameworks/as/projects/FlexJSUI/src/org/apache/flex/events/Event.as
@@ -53,5 +53,26 @@
 		{
 			super(type, bubbles, cancelable);
 		}
+
+        /**
+         *  @private
+         */
+        override public function clone():flash.events.Event
+        {
+            return cloneEvent();
+        }
+
+        /**
+         *  Create a copy/clone of the Event object.
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion FlexJS 0.0
+         */
+        public function cloneEvent():org.apache.flex.events.Event
+        {
+            return new org.apache.flex.events.Event(type, bubbles, cancelable);
+        }
 	}
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 10486
Author:   rfrishbe@adobe.com
Date:     2009-09-22T03:30:00.821190Z

Log Message:
-----------
Merge gumbo_beta2 revision 10485 -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as</path>

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

--- frameworks/projects/airframework/src/mx/core/WindowedApplication.as
+++ frameworks/projects/airframework/src/mx/core/WindowedApplication.as
@@ -1081,8 +1081,8 @@
                     else
                     {
                         _nativeWindow.visible = value;
-                        dispatchEvent(e);
                     }
+                    dispatchEvent(e);
                 }
             }
         }
@@ -2962,9 +2962,9 @@
      */
     private function hideEffectEndHandler(event:Event):void
     {
-        _nativeWindow.visible = false;
-
-        dispatchEvent(new FlexEvent(FlexEvent.HIDE));
+        if (!_nativeWindow.closed)
+            _nativeWindow.visible = false;
+        removeEventListener(EffectEvent.EFFECT_END, hideEffectEndHandler);
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 12556
Author:   gosmith@adobe.com
Date:     2009-12-04T22:49:03.592132Z

Log Message:
-----------
Added @private to various overrides in the new spark.accessibility classes. These classes are now included in ASDoc builds and I noticed that overrides we don't want to see were showing up.

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/SpinnerAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ButtonBarAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/VideoPlayerAccImpl.as</path>

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

--- frameworks/projects/spark/src/spark/accessibility/SpinnerAccImpl.as
+++ frameworks/projects/spark/src/spark/accessibility/SpinnerAccImpl.as
@@ -138,7 +138,7 @@
         return childID == 0 ? role : AccConst.ROLE_SYSTEM_PUSHBUTTON;
     }

-     /**
+    /**
      *  @private
      *  Method to return an array of childIDs. For the Spinner component the IDs
      *  for the decrement and increment buttons are returned.
@@ -196,7 +196,6 @@
         return accState;
     }

-
     /**
      *  @private
      *  IAccessible method for returning the numeric value of the Spinner
@@ -231,7 +230,6 @@
      *
      *  @param childID uint
      */
-
     override public function accDoDefaultAction(childID:uint):void
     {
         var prevValue:Number = Spinner(master).value;
@@ -264,7 +262,8 @@
     //
     //--------------------------------------------------------------------------

-     /**
+    /**
+	 *  @private
      *  Returns the name of the accessible component.
      *  All subclasses must implement this
      *  instead of implementing get_accName().


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

--- frameworks/projects/framework/src/mx/core/IVisualElement.as
+++ frameworks/projects/framework/src/mx/core/IVisualElement.as
@@ -19,6 +19,11 @@
  *  The IVisualElement interface represents the common methods and properties between UIComponents and
  *  GraphicElements and the minimum properties/methods required for a visual element to be
  *  laid out and displayed in a Spark application.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public interface IVisualElement extends ILayoutElement
 {
@@ -36,6 +41,11 @@
      *  to the component that popped it up.

      *
      *
The default value is the value of the parent property.

+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get owner():DisplayObjectContainer;
     function set owner(value:DisplayObjectContainer):void;
@@ -47,6 +57,11 @@
      *  the object to which they belong.
      *  By convention, non-visual item objects use an owner
      *  property to reference the object to which they belong.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get parent():DisplayObjectContainer;

@@ -59,6 +74,11 @@
      *  they are added to the Groups item list.
      *
      *  @default 0
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	function set layer(value:Number):void;
 	function get layer():Number;
@@ -73,6 +93,11 @@
      *  with the controls in the FormItem.

      *
      *
Each component should override this property.

+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get baselinePosition():Number;

@@ -93,6 +118,11 @@
      *
      *  @default true
      *  @see ILayoutElement#includeInLayout
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get visible():Boolean;
     function set visible(value:Boolean):void;


Transferred from the Adobe Open Source Subversion Repository

Revision: 4380
Author:   rfrishbe@adobe.com
Date:     2008-12-23T10:00:21.848800Z

Log Message:
-----------
Mostly rename changes in Group and FxContainer.

1.  GraphicElement.elementHost:GroupBase -> GraphicElement.parent:DisplayObjectContainer (parent already exists in the current code-base...I’m just removing elementHost now)

2.  Group content APIs now use “element” instead of “item.”  The new methods were added a while ago, but the old ones co-existed.  These particular changes remove the old methods and strongly type the new ones to deal with IVisualElements rather than Objects.  Here are the overall changes:

numItems:int -> numElements:int
getItemAt(int):Object -> getElementAt(int):IVisualElement
addItem(Object):Object -> addElement(IVisualElement):IVisualElement
addItemAt(Object, int):Object -> addElementAt(IVisualElement, int):IVisualElement
removeItem(Object):Object -> removeElement(IVisualElement):IVisualElement
removeItemAt(int):Object -> removeElementAt(int):IVisualElement
getItemIndex(Object):int -> getElementIndex(IVisualElement):int
setItemIndex(Object, int):void -> setElementIndex(IVisualElement, int):void
swapItems(Object, Object):void -> swapElements(IVisualElement, IVisualElement):void
swapItemsAt(int, int):void -> swapElementsAt(int, int):void

3.  Group and FxContainer's mxmlContent property is now strongly typed as an Array of IVisualElements instead of an Object

4.  Removing ITransformable...there's no need for it.

5.  Had to update Mustella for these changes (the Perforce changes are checked in, and here's the mustella.swc change for checkintests)

QE Notes: Joan and Steve worked with me on changing all the SDK QA tests.
Doc Notes: None
Bugs: SDK-18063
Reviewer: Jason
tests: checkintests, Mustella FxContainer, Group, and DataGroup (Joan ran all tests on an earlier version of these changes, so hopefully nothing broke in the meantime).  Some of the Group/DataGroup ones were failing for me, but I'm pretty sure they're all excluded (tests don't seem to exclude for me when I VPN in...)

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/TransformOffsets.as</path>
<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/development/eclipse/flex/flex4test/src/layouts/WheelLayout.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/ITransformable.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/ItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/RemoveAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/flex4/flex4test_testScript.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/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/testWheel.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/wireframe/FxDefaultComplexItemRenderer.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElementContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/states/AddItems.as</path>
<path kind="file" action="M">/flex/sdk/trunk/mustella/mustella.swc</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxDefaultComplexItemRenderer.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/AddAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxContainer.as</path>

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

--- frameworks/projects/framework/src/mx/core/IVisualElement.as
+++ frameworks/projects/framework/src/mx/core/IVisualElement.as
@@ -11,15 +11,15 @@
 package mx.core
 {
 import flash.display.DisplayObjectContainer;
-
-import mx.geom.ITransformable;
+import flash.events.IEventDispatcher;
+
 import mx.geom.TransformOffsets;

 /**
  *  The IVisualElement interface represents the common methods and properties between UIComponents and
  *  GraphicElements.
  */
-public interface IVisualElement extends ITransformable
+public interface IVisualElement extends IEventDispatcher
 {

     /**


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

--- frameworks/projects/framework/src/mx/utils/OrderedObject.as
+++ frameworks/projects/framework/src/mx/utils/OrderedObject.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2008 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.
 //
 ////////////////////////////////////////////////////////////////////////////////
 package mx.utils


Fix whitespace

Fix whitespace

Signed-off-by: Erik de Bruin <c195b508e6f0c57aeafdb5e96947e2b79e6a4b40@ixsoftware.nl>

--- frameworks/projects/spark/src/spark/components/DataGroup.as
+++ frameworks/projects/spark/src/spark/components/DataGroup.as
@@ -1761,15 +1761,15 @@

         if (oldRenderer)
         {
-        dispatchEvent(new RendererExistenceEvent(
-            RendererExistenceEvent.RENDERER_REMOVE, false, false, oldRenderer, index, item));
-
-        if (oldRenderer is IDataRenderer && oldRenderer !== item)
-            IDataRenderer(oldRenderer).data = null;
-
-        var child:DisplayObject = oldRenderer as DisplayObject;
-        if (child)
-            super.removeChild(child);
+            dispatchEvent(new RendererExistenceEvent(
+                RendererExistenceEvent.RENDERER_REMOVE, false, false, oldRenderer, index, item));
+
+            if (oldRenderer is IDataRenderer && oldRenderer !== item)
+                IDataRenderer(oldRenderer).data = null;
+
+            var child:DisplayObject = oldRenderer as DisplayObject;
+            if (child)
+                super.removeChild(child);
         }

         invalidateSize();


Transferred from the Adobe Open Source Subversion Repository

Revision: 20675
Author:   smgilson@adobe.com
Date:     2011-03-08T14:47:24.323678Z

Log Message:
-----------
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/hero_private/frameworks/projects/spark/src/spark/events/GridEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/events/LoaderInvalidationEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/events/ListEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/events/GridSortEvent.as</path>

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

--- frameworks/projects/spark/src/spark/events/GridSortEvent.as
+++ frameworks/projects/spark/src/spark/events/GridSortEvent.as
@@ -23,7 +23,7 @@
  *
  *  @see spark.components.DataGrid
  *  @see spark.components.gridClasses.GridColumn
- *  @see spark.components.gridClasses.GridColumnHeaderGroup
+ *  @see spark.components.GridColumnHeaderGroup
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -200,7 +200,7 @@
      *  visibleSortIndicatorIndices.
      *
      *  @see spark.components.DataGrid#columnHeaderGroup
-     *  @see spark.components.gridClasses.GridColumnHeaderGroup#visibleSortIndicatorIndices
+     *  @see spark.components.GridColumnHeaderGroup#visibleSortIndicatorIndices
      *  @see spark.components.gridClasses.GridColumn#columnIndex
      *
      *  @langversion 3.0


add missing import.  Falcon cares about this stuff

--- frameworks/projects/spark/src/spark/utils/MouseEventUtil.as
+++ frameworks/projects/spark/src/spark/utils/MouseEventUtil.as
@@ -162,6 +162,8 @@
     }
 }

+import flash.events.Event;
+
 /**
  * Event used to remove the handlers associated with the press-drag-release
  * gesture handlers.


abs_srcdir and the like

abs_srcdir and the like

	* build-aux/base.as (URBI_INIT): Define them all.

--- build-aux/base.as
+++ build-aux/base.as
@@ -293,6 +293,11 @@
 esac

 : ${abs_builddir='@abs_builddir@'}
+: ${abs_srcdir='@abs_srcdir@'}
 : ${abs_top_builddir='@abs_top_builddir@'}
 : ${abs_top_srcdir='@abs_top_srcdir@'}
-])
+: ${builddir='@builddir@'}
+: ${srcdir='@srcdir@'}
+: ${top_builddir='@top_builddir@'}
+: ${top_srcdir='@top_srcdir@'}
+])


Transferred from the Adobe Open Source Subversion Repository

Revision: 7862
Author:   jszeto@adobe.com
Date:     2009-06-15T22:06:23.250745Z

Log Message:
-----------
GraphicElement PARB Changes

mx.core.AdvancedLayoutFeatures
•	Rename layer -> depth
•	Rename offsets -> postLayoutTransformOffsets

mx.core.IVisualElement
•	Rename layer -> depth

mx.core.UIComponent
•	Rename offsets -> postLayoutTransformOffsets
•	Rename layer -> depth

mx.graphics.GradientBase
•	Remove scaleX

mx.graphics.GradientStroke
•	Add apply(g:Graphics, bounds:Rectangle)

mx.graphics.IStroke
•	Remove draw
•	Change apply(g:Graphics) -> apply(g:Graphics, bounds:Rectangle)

mx.graphics.LinearGradient
•	Add scaleX

mx.graphics.LinearGradientStroke
•	Add scaleX
•	Remove draw
•	Change apply(g:Graphics) -> apply(g:Graphics, bounds:Rectangle)

mx.graphics.RadialGradient
•	Add scaleX

mx.graphics.RadialGradientStroke
•	Add scaleX
•	Remove draw
•	Change apply(g:Graphics) -> apply(g:Graphics, bounds:Rectangle)

mx.graphics.SolidColorStroke
•	Remove draw
•	Change apply(g:Graphics) -> apply(g:Graphics, bounds:Rectangle)

mx.flash.UIMovieClip
•	Rename offsets -> postLayoutTransformOffsets
•	Rename layer -> depth

spark.components.PopUpAnchor
•	Change popUp type from UIComponent -> IFlexDisplayObject
•	Rename positionPopUp -> calculatePopUpPosition
•	Rename autoSizePopUpWidth -> popUpWidthMatchesAnchorWidth
•	Rename autoSizePopUpHeight -> popUpHeightMatchesAnchorHeight

spark.core.RelativePosition
•	Rename and move spark.core.RelativePosition -> spark.components.PopUpPosition
•	Rename EXACT -> TOP_LEFT (topLeft)

spark.core.SpriteVisualElement
•	Rename layer -> depth
•	Remove computeMatrix

spark.primitives.BitmapImage
•	Change _NORMAL_UINT from protected -> private
•	Change _REPEAT_UINT from protected -> private
•	Change _SCALE_UINT from protected -> private
•	Change resizeModeToUINT from protected -> private
•	Rename drawElement -> draw

spark.primitives.Line
•	Rename skipMeasure -> canSkipMeasurement
•	Rename drawElement -> draw

spark.primitives.Path
•	Change graphicsPath fro protected -> mx_internal
•	Rename skipMeasure -> canSkipMeasurement
•	Rename drawElement -> draw
•	Rename renderGraphicsAtScale -> generateGraphicsPath
•	Change generateGraphicsPath from protected -> mx_internal
•	Rename notifyElementLayerChanged -> invalidateDisplayObjectSharing

spark.primitives.Rect
•	Rename drawElement -> draw

spark.primitives.supportClasses.GraphicElement
•	Rename layer -> depth
•	Rename offsets -> postLayoutTransformOffsets
•	Rename getBitmapData -> captureBitmapData
•	Rename notifyElementLayerChanged -> invalidateDisplayObjectSharing
•	Rename skipMeasure -> canSkipMeasurement
•	Add protected hasComplexLayoutMatrix:Boolean getter
•	Remove target
•	Remove computeMatrix
•	Change DEFAULT_MAX_WIDTH from public -> private
•	Change DEFAULT_MAX_HEIGHT from public -> private
•	Change DEFAULT_MIN_WIDTH from public -> private
•	Change DEFAULT_MIN_HEIGHT from public -> private
•	Change allocateLayoutFeatures from protected -> mx_internal
•	Change invalidateTransform from protected -> private
•	Change captureBitmapData from public -> mx_internal
•	Change applyMaskType from protected -> mx_internal
•	Change dispatchPropertyChangeEvent from protected -> private
•	Change applyComputedTransform from protected -> mx_internal
•	Change filterChangedHandler from protected -> private

spark.supportClasses.StrokedElement
•	Rename drawElement -> draw
•	Remove getStroke()
•	Add getStrokeExtents() override

QE Notes: None
Doc Notes: None
Bugs: N/A
Reviewer: Glenn

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/StrokedElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/BitmapImage.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/TransformOffsets.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/TextGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Group.as</path>
<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/flex4/src/spark/primitives/Line.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Ellipse.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/FilledElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransitionShader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/BitmapFill.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/GradientStroke.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/graphics/GradientBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateTransitionShaderInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/IFill.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/SolidColorStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/RadialGradientStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Path.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Rect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/SolidColor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/RadialGradient.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/IStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/LinearGradientStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/LinearGradient.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/AdvancedLayoutFeatures.as</path>

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

--- frameworks/projects/framework/src/mx/core/IVisualElement.as
+++ frameworks/projects/framework/src/mx/core/IVisualElement.as
@@ -72,8 +72,8 @@
 	/**
      *  Determines the order in which items inside of groups and datagroups
      *  are rendered. Groups and DataGroups order their items based on their
-     *  layer property, with the lowest layer in the back, and the higher in
-     *  the front.  items with the same layer value will appear in the order
+     *  depth property, with the lowest depth in the back, and the higher in
+     *  the front.  items with the same depth value will appear in the order
      *  they are added to the Groups item list.
      *
      *  @default 0
@@ -83,12 +83,12 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    function set layer(value:Number):void;
-
-    /**
-     *  @private
-     */
-    function get layer():Number;
+    function set depth(value:Number):void;
+
+    /**
+     *  @private
+     */
+    function get depth():Number;

     /**
      *  Controls the visibility of this visual element. If 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@1260776 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/framework/src/mx/events/ToolTipEvent.as
+++ frameworks/projects/framework/src/mx/events/ToolTipEvent.as
@@ -22,6 +22,11 @@
  *
  *  @see mx.managers.ToolTipManager
  *  @see mx.core.UIComponent
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class ToolTipEvent extends Event
 {
@@ -55,6 +60,11 @@
 	 *  </table>
 	 *
      *  @eventType toolTipCreate
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public static const TOOL_TIP_CREATE:String = "toolTipCreate";

@@ -80,6 +90,11 @@
 	 *  </table>
 	 *
      *  @eventType toolTipEnd
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public static const TOOL_TIP_END:String = "toolTipEnd";

@@ -105,6 +120,11 @@
 	 *  </table>
 	 *
      *  @eventType toolTipHide
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public static const TOOL_TIP_HIDE:String = "toolTipHide";

@@ -130,6 +150,11 @@
 	 *  </table>
 	 *
      *  @eventType toolTipShow
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public static const TOOL_TIP_SHOW:String = "toolTipShow";

@@ -155,6 +180,11 @@
 	 *  </table>
 	 *
      *  @eventType toolTipShown
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public static const TOOL_TIP_SHOWN:String = "toolTipShown";

@@ -180,6 +210,11 @@
 	 *  </table>
 	 *
      *  @eventType toolTipStart
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public static const TOOL_TIP_START:String = "toolTipStart";

@@ -201,6 +236,11 @@
 	 *  associated with the event can be prevented.
 	 *
 	 *  @param toolTip The ToolTip object to which this event applies.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function ToolTipEvent(type:String, bubbles:Boolean = false,
 								 cancelable:Boolean = false,
@@ -225,6 +265,11 @@
 	 *  The ToolTip object to which this event applies.
 	 *  This object is normally an instance of ToolTip object,
 	 *  but can be any UIComponent object.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public var toolTip:IToolTip;


Transferred from the Adobe Open Source Subversion Repository

Revision: 4460
Author:   gosmith@adobe.com
Date:     2009-01-09T01:53:33.590972Z

Log Message:
-----------
Renamed UIComponentAccImpl to UIComponentAccProps because it extends AccessibilityProperties, not AccessibilityImplementation.

Added comments with the identifier for each magic role constant, so that it is easier to understand what roles our components are using.

Moved two static methods from UIComponentAccProperties to AccImpl because they make more sense there.

QE Notes: None
Doc Notes: None
Bugs: None
Reviewer: None (no functional changes)

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ColorPickerAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/DataGridAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/DateFieldAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/SliderAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/CheckBoxAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/LinkButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/MenuBarAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ComboBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/RadioButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TabBarAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TreeAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/PanelAccImpl.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/UIComponentAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/DateChooserAccImpl.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/UIComponentAccImpl.as" copyfrom-rev="4437" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/UIComponentAccProps.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/MenuAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ListBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AlertAccImpl.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/accessibility/AccordionHeaderAccImpl.as</path>

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

--- frameworks/projects/mx/src/mx/accessibility/PanelAccImpl.as
+++ frameworks/projects/mx/src/mx/accessibility/PanelAccImpl.as
@@ -123,7 +123,7 @@
 	{
 		super(master);

-		role = 0x09;
+		role = 0x09; // ROLE_SYSTEM_WINDOW
 	}

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 7743
Author:   clucier@adobe.com
Date:     2009-06-11T13:53:10.203664Z

Log Message:
-----------
Moving away from using namespace qualifiers in most cases in the SDK.  We've run into a few cases now where the use of qualifiers in code that is called excessively can slow things down.
Bugs: SDK-21337
Reviewer: Ryan, Paul
QE Notes: None
Tests: Ran several random Mustella test groups, checkintests.

Modified Paths:
--------------
106 paths were modified

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

--- frameworks/projects/mx/src/mx/skins/halo/PopUpButtonSkin.as
+++ frameworks/projects/mx/src/mx/skins/halo/PopUpButtonSkin.as
@@ -20,6 +20,8 @@
 import mx.styles.StyleManager;
 import mx.utils.ColorUtil;
 import mx.core.IProgrammaticSkin;
+
+use namespace mx_internal;

 /**
  *  The skin for all the states of a PopUpButton.
@@ -504,7 +506,7 @@
         }

         if (popUpIcon is PopUpIcon)
-        	PopUpIcon(popUpIcon).mx_internal::arrowColor = arrowColor;
+        	PopUpIcon(popUpIcon).arrowColor = arrowColor;
     }

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


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

--- frameworks/projects/rpc/src/mx/rpc/soap/types/RowSetType.as
+++ frameworks/projects/rpc/src/mx/rpc/soap/types/RowSetType.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2006-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.rpc.soap.types
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 3362
Author:   clucier@adobe.com
Date:     2008-09-25T18:42:09.171342Z

Log Message:
-----------
Getting rid of a warning, thanks Deepa.
QA: No

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/flex4/src/flex/filters/ShaderFilter.as

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

--- frameworks/projects/spark/src/spark/filters/ShaderFilter.as
+++ frameworks/projects/spark/src/spark/filters/ShaderFilter.as
@@ -367,7 +367,7 @@
      * Retrieve a single property value, provides special case conventions for
      * retrieving specific components of multi-dimensional shader properties.
      */
-    private function retrieveShaderProperty(name:*)
+    private function retrieveShaderProperty(name:*):*
     {
         name = (name is QName) ? name.localName : name;
         var suffixPattern:RegExp = /_.$/;


Transferred from the Adobe Open Source Subversion Repository

Revision: 19047
Author:   bsahlas@adobe.com
Date:     2010-12-05T16:34:35.180535Z

Log Message:
-----------
Link  spark.modules.Module and spark.modules.ModuleLoader example

Modified Paths:
--------------
/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/modules/ModuleLoader.as

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

--- frameworks/projects/spark/src/spark/modules/ModuleLoader.as
+++ frameworks/projects/spark/src/spark/modules/ModuleLoader.as
@@ -132,6 +132,7 @@
  *  ModuleManager singleton.</p>
  *
  *  @see mx.controls.SWFLoader
+ *  @includeExample examples/ModuleLoaderExample.mxml
  *
  *  @langversion 3.0
  *  @playerversion Flash 10.2


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

--- frameworks/projects/framework/src/mx/managers/IFocusManagerComponent.as
+++ frameworks/projects/framework/src/mx/managers/IFocusManagerComponent.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2005-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: 17831
Author:   jasonsj@adobe.com
Date:     2010-09-24T00:37:26.854399Z

Log Message:
-----------
Fixed ActionBar measurement, layout, padding and title bugs:

SDK-27745 ActionBar with empty title vs. empty titleContent now measure the same
SDK-27682 New titleAlign style to support center alignment
SDK-27749 Use titleLayout for paddingLeft and paddingRight, defaults to 25
SDK-27555 Include top/bottom borders in ActionBar measurement. Default height changes from 80 to 82.
SDK-27681 Update ActionButtonSkin and NavigationButtonSkin for new ActionBar measurement.

QE notes:
Doc notes:
Bugs:
SDK-27745 TitleDisplay/TitleGroup sizing is inconsistent
SDK-27682 ActionBar should have a style to change title alignment
SDK-27749 Should have default padding around titleContent
SDK-27555 Content is partially cut off by the ActionBar.
SDK-27681 ActionBar buttons do not size correctly when ActionBar has an explicit height
Reviewer: chiedozi
Tests run: checkintests
Is noteworthy for integration: Yes

Modified Paths:
--------------
<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/mobilecomponents/src/spark/components/ActionBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/NavigationButtonSkin.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionBarSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionBarSkin.as
@@ -76,9 +76,6 @@

     private var border:SpriteVisualElement;

-    // FIXME (jasonsj): pending mobile styling spec
-    private static const TITLE_PADDING:Number = 25;
-
     private static var matrix:Matrix = new Matrix();

     private static const ratios:Array = [0, 127.5, 255];
@@ -108,8 +105,8 @@
         hLayout.horizontalAlign = HorizontalAlign.LEFT;
         hLayout.verticalAlign = VerticalAlign.MIDDLE;
         hLayout.gap = 0;
-        hLayout.paddingLeft = hLayout.paddingTop = hLayout.paddingRight =
-            hLayout.paddingBottom = 0;
+        hLayout.paddingLeft = hLayout.paddingRight = 25;
+        hLayout.paddingTop = hLayout.paddingBottom = 0;
         titleGroup.layout = hLayout;

         actionGroup = new Group();
@@ -146,14 +143,19 @@
         var titleWidth:Number = 0;
         var titleHeight:Number = 0;

-        if (titleGroup && (titleGroup.numElements > 0))
+        if (titleGroup && hostComponent.titleContent)
         {
             titleWidth = titleGroup.getPreferredBoundsWidth();
             titleHeight = titleGroup.getPreferredBoundsHeight();
         }
         else if (titleDisplay)
         {
-            titleWidth = titleDisplay.getPreferredBoundsWidth() + (TITLE_PADDING * 2);
+            // use titleLayout for paddingLeft and paddingRight
+            var layoutObject:Object = hostComponent.titleLayout;
+            titleWidth = (layoutObject.paddingLeft) ? Number(layoutObject.paddingLeft) : 0
+                + (layoutObject.paddingRight) ? Number(layoutObject.paddingRight) : 0
+                + titleDisplay.getPreferredBoundsWidth();
+
             titleHeight = titleDisplay.getPreferredBoundsHeight();
         }

@@ -162,10 +164,12 @@
             + actionGroup.getPreferredBoundsWidth()
             + titleWidth;

+        // min height is 82 (80px content height, 1px borders on top and bottom)
+        // Math.max.apply optimization used instead of "..." rest parameter
         measuredMinHeight = measuredHeight =
-            Math.max(80, navigationGroup.getPreferredBoundsHeight(),
+            Math.max.apply(null, [80, navigationGroup.getPreferredBoundsHeight(),
                 actionGroup.getPreferredBoundsHeight(),
-                titleHeight);
+                titleHeight]) + 2;
     }

     override protected function updateDisplayList(unscaledWidth:Number,
@@ -175,17 +179,22 @@

         super.updateDisplayList(unscaledWidth, unscaledHeight);

-        // FXG contains a top border, bottom border, and 3 px drop shadow
-        border.width = unscaledWidth;
-        border.height = unscaledHeight + 5;
-
         var navigationGroupWidth:Number = 0;

         var titleCompX:Number = 0;
         var titleCompWidth:Number = 0;
+        var titleHeight:Number = 0;
+        var titleCompY:Number = 0;

         var actionGroupX:Number = unscaledWidth;
         var actionGroupWidth:Number = 0;
+
+        // remove top and bottom borders from content group height
+        var contentGroupsHeight:Number = unscaledHeight - 2;
+
+        // FXG uses scale-9, 3 px drop shadow is drawn outside the bounds
+        border.width = unscaledWidth;
+        border.height = unscaledHeight + 3;

         // position groups, overlap of navigation and action groups is allowed
         // when overlap occurs, titleDisplay/titleGroup is not visible
@@ -194,17 +203,18 @@
         {
             navigationGroupWidth = navigationGroup.getPreferredBoundsWidth();
             titleCompX += navigationGroupWidth;
-            navigationGroup.setLayoutBoundsSize(titleCompX, unscaledHeight);
+
+            navigationGroup.setLayoutBoundsSize(navigationGroupWidth, contentGroupsHeight);
             navigationGroup.setLayoutBoundsPosition(0, 1); // top border
         }

         if (actionGroup.numElements > 0 && actionGroup.includeInLayout)
         {
+            // actionGroup x position can be negative
             actionGroupWidth = actionGroup.getPreferredBoundsWidth();
             actionGroupX = unscaledWidth - actionGroupWidth;
-            actionGroup.setLayoutBoundsSize(actionGroupWidth, unscaledHeight);
-
-            // actionGroup x position can be negative
+
+            actionGroup.setLayoutBoundsSize(actionGroupWidth, contentGroupsHeight);
             actionGroup.setLayoutBoundsPosition(actionGroupX, 1); // top border
         }

@@ -214,50 +224,53 @@
             titleDisplay.visible = false;
             titleGroup.visible = false;
         }
-        else if (titleGroup.getMXMLContent() != null && titleGroup.includeInLayout)
-        {
-            titleGroup.setLayoutBoundsSize(titleCompWidth, unscaledHeight);
-            titleGroup.setLayoutBoundsPosition(titleCompX, 1);
-
+        else if (hostComponent.titleContent != null && titleGroup.includeInLayout)
+        {
             titleDisplay.visible = false;
             titleGroup.visible = true;
+
+            // use titleGroup for titleContent
+            titleGroup.setLayoutBoundsSize(titleCompWidth, contentGroupsHeight);
+            titleGroup.setLayoutBoundsPosition(titleCompX, 1); // top border
         }
         else
         {
-            // FIXME (jasonsj): pending mobile styling spec
-            // paddingLeft
-            titleCompX = titleCompX + TITLE_PADDING;
-
-            // FIXME (jasonsj): pending mobile styling spec
-            // paddingRight
-            titleCompWidth -= TITLE_PADDING * 2;
-
+            // use titleDisplay for title text label
+            titleGroup.visible = false;
+
+            // use titleLayout for paddingLeft and paddingRight
+            var layoutObject:Object = hostComponent.titleLayout;
+            var titlePaddingLeft:Number = (layoutObject.paddingLeft) ? Number(layoutObject.paddingLeft) : 0;
+            var titlePaddingRight:Number = (layoutObject.paddingRight) ? Number(layoutObject.paddingRight) : 0;
+
+            // implement padding by adjusting width and position
+            titleCompX += titlePaddingLeft;
+            titleCompWidth = titleCompWidth - (titlePaddingLeft + titlePaddingRight);
+
+            // align titleDisplay to the absolute center
             if (hostComponent.getStyle("titleAlign") == "center")
             {
-                // horizontalAlign=center
                 titleCompWidth = titleDisplay.getExplicitOrMeasuredWidth();
-                titleCompX = Math.floor((unscaledWidth / 2) - (titleCompWidth / 2));
+                titleCompX = Math.floor((unscaledWidth - titleCompWidth)/ 2);
             }

-            // hide titleDisplay if there is any overlap after padding
+            // shrink and/or move titleDisplay width if there is any overlap after padding
             if ((titleCompX < navigationGroupWidth)
-                || ((titleCompX + titleCompWidth) > actionGroupX))
+                || ((titleCompX + titleCompWidth) > (actionGroupX - titlePaddingRight)))
             {
-                titleDisplay.visible = false;
-                titleGroup.visible = false;
+                titleCompX = navigationGroupWidth + titlePaddingLeft;
+                titleCompWidth = actionGroupX - titleCompX - titlePaddingRight;
             }
-            else
-            {
-                // verticalAlign=center
-                var titleHeight:Number = titleDisplay.getExplicitOrMeasuredHeight();
-                var titleCompY:Number = Math.floor((unscaledHeight / 2) - (titleHeight / 2));
-
-                titleDisplay.setLayoutBoundsSize(titleCompWidth, titleHeight);
-                titleDisplay.setLayoutBoundsPosition(titleCompX, titleCompY + 1); // +1 FXG border
-
-                titleDisplay.visible = true;
-                titleGroup.visible = false;
-            }
+
+            // vertical align center by subtracting the descent and top gutter
+            titleHeight = titleDisplay.getExplicitOrMeasuredHeight();
+            titleCompY = Math.floor((contentGroupsHeight - titleHeight + titleDisplay.descent) / 2);
+            titleCompY -= (UITextField.TEXT_HEIGHT_PADDING / 2);
+
+            titleDisplay.setLayoutBoundsSize(titleCompWidth, titleHeight);
+            titleDisplay.setLayoutBoundsPosition(titleCompX, titleCompY);
+
+            titleDisplay.visible = true;
         }

         // Draw the gradient background
@@ -266,14 +279,15 @@
         var alphas:Array = [alpha, alpha, alpha];
         var colors:Array = [];

-        matrix.createGradientBox(unscaledWidth, unscaledHeight - 1, Math.PI / 2, 0, 0);
+        // exclude top and bottom 1px borders
+        matrix.createGradientBox(unscaledWidth, contentGroupsHeight, Math.PI / 2, 0, 0);

         colors[0] = ColorUtil.adjustBrightness2(chromeColor, 20);
         colors[1] = chromeColor;
         colors[2] = ColorUtil.adjustBrightness2(chromeColor, -20);

         graphics.beginGradientFill(GradientType.LINEAR, colors, alphas, ratios, matrix);
-        graphics.drawRect(0, 1, unscaledWidth, unscaledHeight);
+        graphics.drawRect(0, 1, unscaledWidth, contentGroupsHeight);
         graphics.endFill();
     }
 }
@@ -304,6 +318,7 @@
     private var titleDisplayShadow:MobileTextField;
     private var title:String;
     private var titleChanged:Boolean;
+    public var descent:Number;

     public function TitleDisplayComponent()
     {
@@ -373,6 +388,8 @@

         textHeight = lineMetrics.height + UITextField.TEXT_HEIGHT_PADDING;

+        descent = lineMetrics.descent;
+
         measuredWidth = textWidth;
         measuredHeight = textHeight;
     }
@@ -380,16 +397,6 @@
     override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
     {
         super.updateDisplayList(unscaledWidth, unscaledHeight);
-
-        var textHeight:Number = 0;
-        var lineMetrics:TextLineMetrics;
-
-        if (title != "")
-            lineMetrics = measureText(title);
-        else
-            lineMetrics = measureText("Wj");
-
-        textHeight = lineMetrics.height + UITextField.TEXT_HEIGHT_PADDING;

         titleDisplay.commitStyles();
         titleDisplay.width = unscaledWidth;


Transferred from the Adobe Open Source Subversion Repository

Revision: 7752
Author:   egeorgie@adobe.com
Date:     2009-06-11T17:59:06.510383Z

Log Message:
-----------
Revert revision Revision: 7724 [ http://p01weblab02.macromedia.com/viewvc/opensource?view=rev&revision=7724 ] as it breaks tests. Will have to redo later.

Doc Notes: None
Bugs: SDK-19018
Reviewer: none
tests: none

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/utilityClasses/CanvasLayout.as

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


FLEX-35028 stop RTE when clicking on DG header

--- frameworks/projects/spark/src/spark/components/GridColumnHeaderGroup.as
+++ frameworks/projects/spark/src/spark/components/GridColumnHeaderGroup.as
@@ -1109,7 +1109,9 @@
         }

         const columnIndex:int = (pressSeparatorIndex != -1) ? pressSeparatorIndex : eventColumnIndex;
-        dispatchGridEvent(event, gridEventType, eventHeaderXY, columnIndex);
+	if (columnIndex != -1) {
+        	dispatchGridEvent(event, gridEventType, eventHeaderXY, columnIndex);
+	}
     }

     /**
@@ -1327,4 +1329,4 @@
 	}

 }
-}+}