Transferred from the Adobe Open Source Subversion Repository

Revision: 9352
Author:   clucier@adobe.com
Date:     2009-08-17T19:38:36.092988Z

Log Message:
-----------
Update DesignLayer ASDOC to reflect most recent updates to specification.  A bug fix to all IVisualElement implementers to account for initial value of alpha/visible for their owning layer.

QE notes:  None.
Doc notes:  None.
Bugs:  N/A.
Reviewer:  Chet
Tests run: Checkin
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/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/DesignLayer.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/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>

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

--- frameworks/projects/framework/src/mx/core/DesignLayer.as
+++ frameworks/projects/framework/src/mx/core/DesignLayer.as
@@ -12,6 +12,7 @@
 package mx.core
 {
     import flash.events.EventDispatcher;
+
     import mx.events.PropertyChangeEvent;
     import mx.events.PropertyChangeEventKind;

@@ -34,8 +35,8 @@
      *  propagate to the assocaited layer children.
      *
      *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
     public class DesignLayer extends EventDispatcher
@@ -50,8 +51,8 @@
          *  Constructor.
          *
          *  @langversion 3.0
-         *  @playerversion Flash 9
-         *  @playerversion AIR 1.1
+         *  @playerversion Flash 10
+         *  @playerversion AIR 1.5
          *  @productversion Flex 4
          */
         public function DesignLayer()
@@ -64,8 +65,14 @@
         //----------------------------------

         /**
-         * @private
-         */
+         *  ID of the layer component. This value becomes the instance name of the layer
+         *  and as such, should not contain any white space or special characters.
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10
+         *  @playerversion AIR 1.5
+         *  @productversion Flex 4
+         */
         public var id:String;

         //----------------------------------
@@ -73,9 +80,17 @@
         //----------------------------------

         /**
-         * @private
-         */
-        public var parent:DesignLayer;
+         *  @private
+         *  This layer's parent layer.
+         *
+         *  @default null
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10
+         *  @playerversion AIR 1.5
+         *  @productversion Flex 4
+         */
+        protected var parent:DesignLayer;

         //----------------------------------
         //  layerChildren
@@ -86,33 +101,38 @@
          */
         private var layerChildren:Array = new Array();

-        //--------------------------------------------------------------------------
-        //  Methods
-        //--------------------------------------------------------------------------
-
-        /**
-         * @private
-         */
-        public function addLayer(value:DesignLayer):void
-        {
-            value.parent = this;
-            layerChildren.push(value);
-        }
+        //----------------------------------
+        //  visible
+        //----------------------------------
+
+        /**
+         * @private
+         */
+        private var _visible:Boolean = true;

-        //----------------------------------
-        //  visible
-        //----------------------------------
-
-        /**
-         * @private
-         */
-        private var _visible:Boolean = true;
-
+        /**
+         *  The visibility for this design layer instance.
+         *
+         *  When updated, the appropriate change event for
+         *  computedVisibility will be dispatched to all layerPropertyChange
+         *  listeners for this layer, as well as those of affected
+         *  descendant layers if any.
+         *
+         *  @default true
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10
+         *  @playerversion AIR 1.5
+         *  @productversion Flex 4
+         */
         public function get visible():Boolean
         {
             return _visible;
         }
-
+
+        /**
+         * @private
+         */
         public function set visible(value:Boolean):void
         {
             if (_visible != value)
@@ -127,8 +147,17 @@
         //----------------------------------

         /**
-         * @private
-         */
+         *  Returns the effective visibility of this design layer
+         *  (which considers the visibility of this layer as well as
+         *  any ancestor layers).
+         *
+         *  @default true
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10
+         *  @playerversion AIR 1.5
+         *  @productversion Flex 4
+         */
         public function get computedVisibility():Boolean
         {
             var isVisible:Boolean = _visible;
@@ -143,11 +172,15 @@

         /**
          * @private
+         * Used to notify the visual elements associated with this layer
+         * that the computed visiblity has changed.  Dispatches a
+         * "layerPropertyChange" event with property field set to
+         * "computedVisibility".
          */
         protected function computedVisibilityChanged(value:Boolean):void
         {
             dispatchEvent(new PropertyChangeEvent("layerPropertyChange", false,
-                false, PropertyChangeEventKind.UPDATE, "visible", !value, value));
+                false, PropertyChangeEventKind.UPDATE, "computedVisibility", !value, value));

             for (var i:int = 0; i < layerChildren.length; i++)
             {
@@ -170,11 +203,29 @@
          */
         private var _alpha:Number = 1.0;

+        /**
+         *  The alpha for this design layer instance.
+         *
+         *  When updated, the appropriate change event for
+         *  computedAlpha will be dispatched to all layerPropertyChange
+         *  listeners for this layer, as well as those of affected
+         *  descendant layers if any.
+         *
+         *  @default 1.0
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10
+         *  @playerversion AIR 1.5
+         *  @productversion Flex 4
+         */
         public function get alpha():Number
         {
             return _alpha;
         }
-
+
+        /**
+         * @private
+         */
         public function set alpha(value:Number):void
         {
             if (_alpha != value)
@@ -190,8 +241,17 @@
         //----------------------------------

         /**
-         * @private
-         */
+         *  Property that returns the effective alpha of this design layer
+         *  (which considers the alpha of this multiplied with the alpha of
+         *  any ancestor layers).
+         *
+         *  @default 1.0
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10
+         *  @playerversion AIR 1.5
+         *  @productversion Flex 4
+         */
         public function get computedAlpha():Number
         {
             var currentAlpha:Number = _alpha;
@@ -206,11 +266,14 @@

         /**
          * @private
+         * Used to notify the visual elements associated with this layer
+         * that the computed alpha has changed.  Dispatches a "layerPropertyChange"
+         * event with the property field set to "computedAlpha".
          */
         protected function computedAlphaChanged(oldAlpha:Number):void
         {
             dispatchEvent(new PropertyChangeEvent("layerPropertyChange", false,
-                false, PropertyChangeEventKind.UPDATE, "alpha", oldAlpha, computedAlpha));
+                false, PropertyChangeEventKind.UPDATE, "computedAlpha", oldAlpha, computedAlpha));

             for (var i:int = 0; i < layerChildren.length; i++)
             {
@@ -218,6 +281,91 @@
                 layerChild.computedAlphaChanged(layerChild.alpha);
             }
         }
-
+
+        //----------------------------------
+        //  numLayers
+        //----------------------------------
+
+        /**
+         *  The number of DesignLayer children immediately parented by this layer.
+         *
+         *  @default 0
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10
+         *  @playerversion AIR 1.5
+         *  @productversion Flex 4
+         */
+        public function get numLayers():int
+        {
+            return layerChildren.length;
+        }
+
+        //----------------------------------------------------------------------
+        //
+        //  Methods
+        //
+        //----------------------------------------------------------------------
+
+        /**
+         *  Adds a DesignLayer child to this layer.
+         *
+         *  @param value The layer child to add.
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10
+         *  @playerversion AIR 1.5
+         *  @productversion Flex 4
+         */
+        public function addLayer(value:DesignLayer):void
+        {
+            value.parent = this;
+            layerChildren.push(value);
+        }
+
+        /**
+         *  Returns the DesignLayer child at the specified index.
+         *
+         *  @param index The 0-based index of a DesignLayer child.
+         *
+         *  @return The specified DesignLayer child if index is between
+         *  0 and numLayers - 1.  Returns
+         *  null if the index is invalid.
+         *
+         *  @see numLayers
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10
+         *  @playerversion AIR 1.5
+         *  @productversion Flex 4
+         */
+        public function getLayerAt(index:int):DesignLayer
+        {
+            return ((index < layerChildren.length) && index >= 0) ?
+                layerChildren[index] : null;
+        }
+
+        /**
+         *  Removes a DesignLayer child from this layer.
+         *
+         *  @param value The layer child to remove.
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10
+         *  @playerversion AIR 1.5
+         *  @productversion Flex 4
+         */
+        public function removeLayer(value:DesignLayer):void
+        {
+            for (var i:int = 0; i < layerChildren.length; i++)
+            {
+                if (layerChildren[i] == value)
+                {
+                    layerChildren.splice(i,1);
+                    return;
+                }
+            }
+        }
+
     }
 }


Fix FLEX-33408 UIComponent#getVisibleRect() omitted from documentation. Applied patch by Mark Kessler

--- frameworks/projects/framework/src/mx/core/UIComponent.as
+++ frameworks/projects/framework/src/mx/core/UIComponent.as
@@ -13067,8 +13067,6 @@

     /**
-     *  @private
-     *
      *  Get the bounds of this object that are visible to the user
      *  on the screen.
      *


Transferred from the Adobe Open Source Subversion Repository

Revision: 12074
Author:   gruehle@adobe.com
Date:     2009-11-21T01:02:03.186839Z

Log Message:
-----------
Change baseColor to chromeColor.

QE notes: Tests need to be updated.
Doc notes: ASDoc has been updated. Other docs need updating.
Bugs: SDK-24298
Reviewer: Ely
Tests run: checkintests, qe cyclone
Is noteworthy for integration: Yes

Modified Paths:
--------------
112 paths were modified

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

--- frameworks/projects/framework/src/mx/core/UIComponent.as
+++ frameworks/projects/framework/src/mx/core/UIComponent.as
@@ -809,7 +809,7 @@
  *  @playerversion AIR 1.5
  *  @productversion Flex 4
  */
-[Style(name="baseColor", type="uint", format="Color", inherit="yes", theme="spark")]
+[Style(name="chromeColor", type="uint", format="Color", inherit="yes", theme="spark")]

 /**
  *  Color of the component highlight when validation fails.


Transferred from the Adobe Open Source Subversion Repository

Revision: 12469
Author:   jimurphy@adobe.com
Date:     2009-12-03T22:04:16.560316Z

Log Message:
-----------
fix offsets for FB.  Convert line ending from lf to crlf in svn for the proects directory only.  When checking project files in, be sure to save you files this way.  Another update to make sure happens is set the svn properties svn:eol-style = native and svn:mime-type = text/plain (these have been updated on theses files as well)

QE notes: make sure the proper class is selected
Doc notes: no
Bugs: http://bugs.adobe.com/jira/browse/SDK-24498
Reviewer:
Tests run: checkintests
Is noteworthy for integration: no

Modified Paths:
--------------
133 paths were modified

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

--- frameworks/projects/spark/src/spark/effects/CrossFade.as
+++ frameworks/projects/spark/src/spark/effects/CrossFade.as
@@ -69,4 +69,4 @@
     }

 }
-}+}


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

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


fixed tooltip labeling bug

fixed tooltip labeling bug

Change-Id: I2938ba939426a7cb6319e444d6e0bd527ba91158

--- WeaveUISpark/src/weave/utils/PlotterUtils.as
+++ WeaveUISpark/src/weave/utils/PlotterUtils.as
@@ -165,7 +165,7 @@

 		public static function alphaSliderFormatFunction(value:Number):String
 		{
-			return lang("{0}% Opaque", int(value * 100)) + "\n" + lang("{0}% Transparent", int(100 - value * 100));
+			return lang("{0}% Opaque", Math.round(value * 100)) + "\n" + lang("{0}% Transparent", Math.round(100 - value * 100));
 		}
 	}
 }


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

--- frameworks/projects/framework/src/mx/managers/IFocusManagerContainer.as
+++ frameworks/projects/framework/src/mx/managers/IFocusManagerContainer.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2005-2006 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.
 //
 ////////////////////////////////////////////////////////////////////////////////