Transferred from the Adobe Open Source Subversion Repository

Revision: 6919
Author:   smgilson@adobe.com
Date:     2009-05-14T18:09:59.289095Z

Log Message:
-----------
Update ASdoc for 3D effects

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Move3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Rotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Scale3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Rotate3D.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/Scale.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransform.as</path>

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

--- frameworks/projects/spark/src/spark/effects/AnimateTransform.as
+++ frameworks/projects/spark/src/spark/effects/AnimateTransform.as
@@ -37,7 +37,7 @@

 /**
  *  The AnimateTransform effect controls all transform-related animations on target
- *  objects. Transform operations, such s translation, scale, and
+ *  objects. Transform operations, such as translation, scale, and
  *  rotation, are combined into single operations that act
  *  in parallel to avoid any conflict when modifying overlapping property values.
  *  This effect works by combining all current transform effects
@@ -102,7 +102,23 @@
  *  <mx:AnimateTransform
  *    Properties
  *    id="ID"
+ *    applyLocalProjection="false"
+ *    autoCenterProjection="true"
  *    autoCenterTransform="false"
+ *    fieldOfView="no default"
+ *    focalLength="no default"
+ *    postLayoutRotationX="no default"
+ *    postLayoutRotationY="no default"
+ *    postLayoutRotationZ="no default"
+ *    postLayoutScaleX="no default"
+ *    postLayoutScaleY="no default"
+ *    postLayoutScaleZ="no default"
+ *    postLayoutTranslationX="no default"
+ *    postLayoutTranslationY="no default"
+ *    postLayoutTranslationZ="no default"
+ *    projectionX="0"
+ *    projectionY="0"
+ *    removeLocalProjectionWhenComplete="false"
  *    rotationX="no default"
  *    rotationY="no default"
  *    rotationZ="no default"
@@ -268,7 +284,7 @@
      *  transformZ properties in this effect. That is, the
      *  transform center is the transform center of the target object,
      *  where any of the transformX, transformY,
-     *  transformZ properties are overriden by those
+     *  transformZ properties are overridden by those
      *  values in the effect, if set.
      *
      *  @default false
@@ -294,14 +310,14 @@
     [Inspectable(category="General", defaultValue="NaN")]

     /**
-     *  Sets the x coordinate for the transform center, unless overriden
+     *  Sets the x coordinate for the transform center, unless overridden
      *  by the autoCenterTransform property.
      *
      *
If autoCenterTransform is false, the transform
      *  center is determined by the transformX,
      *  transformY, and transformZ properties
      *  of the target object, but each of those properties can be
-     *  overriden by setting the respective properties in this effect.

+     *  overridden by setting the respective properties in this effect.

      *
      *  @see mx.core.UIComponent#transformX
      *  @see #autoCenterTransform
@@ -320,14 +336,14 @@
     [Inspectable(category="General", defaultValue="NaN")]

     /**
-     *  Sets the y coordinate for the transform center, unless overriden
+     *  Sets the y coordinate for the transform center, unless overridden
      *  by the autoCenterTransform property.
      *
      *
If autoCenterTransform is false, the transform
      *  center is determined by the transformX,
      *  transformY, and transformZ properties
      *  of the target object, but each of those properties can be
-     *  overriden by setting the respective properties in this effect.

+     *  overridden by setting the respective properties in this effect.

      *
      *  @see mx.core.UIComponent#transformY
      *  @see #autoCenterTransform
@@ -346,14 +362,14 @@
     [Inspectable(category="General", defaultValue="NaN")]

     /**
-     *  Sets the z coordinate for the transform center, unless overriden
+     *  Sets the z coordinate for the transform center, unless overridden
      *  by the autoCenterTransform property.
      *
      *
If autoCenterTransform is false, the transform
      *  center is determined by the transformX,
      *  transformY, and transformZ properties
      *  of the target object, but each of those properties can be
-     *  overriden by setting the respective properties in this effect.

+     *  overridden by setting the respective properties in this effect.

      *
      *  @see mx.core.UIComponent#transformZ
      *  @see #autoCenterTransform
@@ -376,6 +392,8 @@
     private var _translationX:MotionPath;
     /**
      *  The MotionPath object describing the change in x during the effect.
+     *  Setting this property as part of an effect modifies the target,
+     *  and can cause the parent container to update its layout.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -407,6 +425,8 @@
     private var _translationY:MotionPath;
     /**
      *  The MotionPath object describing the change in y during the effect.
+     *  Setting this property as part of an effect modifies the target,
+     *  and can cause the parent container to update its layout.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -438,6 +458,8 @@
     private var _translationZ:MotionPath;
     /**
      *  The MotionPath object describing the change in z during the effect.
+     *  Setting this property as part of an effect modifies the target,
+     *  and can cause the parent container to update its layout.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -470,6 +492,8 @@
     /**
      *  The MotionPath object describing the change in rotation around the x
      *  axis during the effect.
+     *  Setting this property as part of an effect modifies the target,
+     *  and can cause the parent container to update its layout.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -502,6 +526,8 @@
     /**
      *  The MotionPath object describing the change in rotation around the y
      *  axis during the effect.
+     *  Setting this property as part of an effect modifies the target,
+     *  and can cause the parent container to update its layout.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -534,6 +560,8 @@
     /**
      *  The MotionPath object describing the change in rotation around the z
      *  axis during the effect.
+     *  Setting this property as part of an effect modifies the target,
+     *  and can cause the parent container to update its layout.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -566,6 +594,8 @@
     /**
      *  The MotionPath object describing the change in scale in the x direction
      *  during the effect.
+     *  Setting this property as part of an effect modifies the target,
+     *  and can cause the parent container to update its layout.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -598,6 +628,8 @@
     /**
      *  The MotionPath object describing the change in scale in the y direction
      *  during the effect.
+     *  Setting this property as part of an effect modifies the target,
+     *  and can cause the parent container to update its layout.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -630,6 +662,8 @@
     /**
      *  The MotionPath object describing the change in scale in the z direction
      *  during the effect.
+     *  Setting this property as part of an effect modifies the target,
+     *  and can cause the parent container to update its layout.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -661,12 +695,22 @@
      */
     private var _postLayoutTranslationX:MotionPath;
     /**
-     * The MotionPath describing the change in x during the effect
+     *  The MotionPath describing the change in x during the effect.
+     *  Setting this property as part of an effect modifies the target,
+     *  but the parent container ignores the changes and does not update its layout.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get postLayoutTranslationX():MotionPath
     {
         return _postLayoutTranslationX;
     }
+    /**
+     * @private
+     */
     public function set postLayoutTranslationX(value:MotionPath):void
     {
         _postLayoutTranslationX = value;
@@ -687,12 +731,22 @@
      */
     private var _postLayoutTranslationY:MotionPath;
     /**
-     * The MotionPath describing the change in y during the effect
+     *  The MotionPath describing the change in y during the effect.
+     *  Setting this property as part of an effect modifies the target,
+     *  but the parent container ignores the changes and does not update its layout.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get postLayoutTranslationY():MotionPath
     {
         return _postLayoutTranslationY;
     }
+    /**
+     * @private
+     */
     public function set postLayoutTranslationY(value:MotionPath):void
     {
         _postLayoutTranslationY = value;
@@ -713,12 +767,22 @@
      */
     private var _postLayoutTranslationZ:MotionPath;
     /**
-     * The MotionPath describing the change in z during the effect
+     *  The MotionPath describing the change in z during the effect.
+     *  Setting this property as part of an effect modifies the target,
+     *  but the parent container ignores the changes and does not update its layout.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get postLayoutTranslationZ():MotionPath
     {
         return _postLayoutTranslationZ;
     }
+    /**
+     * @private
+     */
     public function set postLayoutTranslationZ(value:MotionPath):void
     {
         _postLayoutTranslationZ = value;
@@ -739,13 +803,23 @@
      */
     private var _postLayoutRotationX:MotionPath;
     /**
-     * The MotionPath describing the change in postLayoutRotation around the x
-     * axis during the effect
+     *  The MotionPath object describing the change in rotation of the target
+     *  around the x axis during the effect.
+     *  Setting this property as part of an effect modifies the target,
+     *  but the parent container ignores the changes and does not update its layout.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get postLayoutRotationX():MotionPath
     {
         return _postLayoutRotationX;
     }
+    /**
+     * @private
+     */
     public function set postLayoutRotationX(value:MotionPath):void
     {
         _postLayoutRotationX = value;
@@ -766,13 +840,23 @@
      */
     private var _postLayoutRotationY:MotionPath;
     /**
-     * The MotionPath describing the change in postLayoutRotation around the y
-     * axis during the effect
+     *  The MotionPath describing the change in rotation of the target
+     *  around the y axis during the effect.
+     *  Setting this property as part of an effect modifies the target,
+     *  but the parent container ignores the changes and does not update its layout.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get postLayoutRotationY():MotionPath
     {
         return _postLayoutRotationY;
     }
+    /**
+     * @private
+     */
     public function set postLayoutRotationY(value:MotionPath):void
     {
         _postLayoutRotationY = value;
@@ -793,13 +877,23 @@
      */
     private var _postLayoutRotationZ:MotionPath;
     /**
-     * The MotionPath describing the change in postLayoutRotation around the z
-     * axis during the effect
+     *  The MotionPath describing the change in rotation of the target
+     *  around the z axis during the effect.
+     *  Setting this property as part of an effect modifies the target,
+     *  but the parent container ignores the changes and does not update its layout.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get postLayoutRotationZ():MotionPath
     {
         return _postLayoutRotationZ;
     }
+    /**
+     * @private
+     */
     public function set postLayoutRotationZ(value:MotionPath):void
     {
         _postLayoutRotationZ = value;
@@ -820,13 +914,23 @@
      */
     private var _postLayoutScaleX:MotionPath;
     /**
-     * The MotionPath describing the change in postLayoutScale in the x direction
-     * during the effect
+     *  The MotionPath describing the change in scale of the target
+     *  in the x direction during the effect.
+     *  Setting this property as part of an effect modifies the target,
+     *  but the parent container ignores the changes and does not update its layout.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get postLayoutScaleX():MotionPath
     {
         return _postLayoutScaleX;
     }
+    /**
+     * @private
+     */
     public function set postLayoutScaleX(value:MotionPath):void
     {
         _postLayoutScaleX = value;
@@ -847,13 +951,23 @@
      */
     private var _postLayoutScaleY:MotionPath;
     /**
-     * The MotionPath describing the change in postLayoutScale in the y direction
-     * during the effect
+     *  The MotionPath describing the change in scale of the target in the y direction
+     *  during the effect.
+     *  Setting this property as part of an effect modifies the target,
+     *  but the parent container ignores the changes and does not update its layout.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get postLayoutScaleY():MotionPath
     {
         return _postLayoutScaleY;
     }
+    /**
+     * @private
+     */
     public function set postLayoutScaleY(value:MotionPath):void
     {
         _postLayoutScaleY = value;
@@ -874,13 +988,23 @@
      */
     private var _postLayoutScaleZ:MotionPath;
     /**
-     * The MotionPath describing the change in postLayoutScale in the z direction
-     * during the effect
+     *  The MotionPath describing the change in scale of the target in the z direction
+     *  during the effect.
+     *  Setting this property as part of an effect modifies the target,
+     *  but the parent container ignores the changes and does not update its layout.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get postLayoutScaleZ():MotionPath
     {
         return _postLayoutScaleZ;
     }
+    /**
+     * @private
+     */
     public function set postLayoutScaleZ(value:MotionPath):void
     {
         _postLayoutScaleZ = value;
@@ -900,7 +1024,10 @@
     //--------------------------------------------------------------------------

     /**
-     *  Documentation is not currently available.
+     *  If true, the effect creates a perspective projection
+     *  and applies it to the target component's parent when it starts playing.
+     *
+     *  @default false
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -910,7 +1037,11 @@
     public var applyLocalProjection:Boolean = false;

     /**
-     *  Documentation is not currently available.
+     *  If true, the effect removes the perspective projection
+     *  from the target component's parent when it completes playing.
+     *  By default, the perspective projection is retained.
+     *
+     *  @default false
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -920,7 +1051,18 @@
     public var removeLocalProjectionWhenComplete:Boolean = false;

     /**
-     *  Documentation is not currently available.
+     *  Set to false to disable a 3D effect from automatically setting
+     *  the projection point to the center of the target.
+     *  You then use the projectionX and projectionY properties
+     *  to explicitly set the projection point
+     *  as the offset of the projection point from the (0, 0) coordinate of the target.
+     *
+     *
The 3D effects work by mapping a three-dimensional image onto a two-dimensional
+     *  representation for display on a computer screen.
+     *  The projection point defines the center of the field of view,
+     *  and controls how the target is projected from three dimensions onto the screen.

+     *
+     *  @default true
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -929,7 +1071,7 @@
      */
     public var autoCenterProjection:Boolean = true;
     /**
-     *  Documentation is not currently available.
+     *  @copy flash.geom.PerspectiveProjection#fieldOfView
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -938,7 +1080,7 @@
      */
     public var fieldOfView:Number;
     /**
-     *  Documentation is not currently available.
+     *  @copy flash.geom.PerspectiveProjection#focalLength
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -947,7 +1089,14 @@
      */
     public var focalLength:Number;
     /**
-     *  Documentation is not currently available.
+     *  Sets the projection point
+     *  as the offset of the projection point in the x direction
+     *  from the (0, 0) coordinate of the target.
+     *  By default, when you apply a 3D effect, the effect automatically sets
+     *  the projection point to the center of the target.
+     *  You can set the autoCenterProjection property of the effect
+     *  to false to disable this default, and use the
+     *  projectionX and projectionY properties instead.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -956,7 +1105,14 @@
      */
     public var projectionX:Number = 0;
     /**
-     *  Documentation is not currently available.
+     *  Sets the projection point
+     *  as the offset of the projection point in the y direction
+     *  from the (0, 0) coordinate of the target.
+     *  By default, when you apply a 3D effect, the effect automatically sets
+     *  the projection point to the center of the target.
+     *  You can set the autoCenterProjection property of the effect
+     *  to false to disable this default, and use the
+     *  projectionX and projectionY properties instead.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -1087,45 +1243,45 @@
                 valueMap.translationY = xformPosition.y;
                 valueMap.translationZ = xformPosition.z;
             }
-
-
-			// if someone has asked for the motionpaths to affect offsets,
-			// they might not have explcitly defined any offsets.  If that's the case,
-			// we still need to capture default start values, so let's initialize the offsets
-			// to a default set anyway.
+
+
+            // if someone has asked for the motionpaths to affect offsets,
+            // they might not have explcitly defined any offsets.  If that's the case,
+            // we still need to capture default start values, so let's initialize the offsets
+            // to a default set anyway.
             if(postLayoutTransformPropertiesSet && target.offsets == null)
             {
-            	target.offsets = new TransformOffsets();
+                target.offsets = new TransformOffsets();
             }

             // if the target doesn't have any offsets, there's no need to capture
             // offset values.
             if(target.offsets != null)
             {
-            	var offsets:TransformOffsets = target.offsets;
-            	valueMap.postLayoutRotationX = offsets.rotationX;
-            	valueMap.postLayoutRotationY = offsets.rotationY;
-            	valueMap.postLayoutRotationZ = offsets.rotationZ;
-
-            	valueMap.postLayoutScaleX = offsets.scaleX;
-            	valueMap.postLayoutScaleY = offsets.scaleY;
-            	valueMap.postLayoutScaleZ = offsets.scaleZ;
-
-	            if (valueMap.postLayoutTranslationX === undefined ||
-	                valueMap.postLayoutTranslationY === undefined ||
-	                valueMap.postLayoutTranslationZ === undefined)
-	            {
-    	            // TODO (chaase): do we really need this?
-	                propChanges[i].stripUnchangedValues = false;
-
-	                computedTransformCenter =
-	                    computeTransformCenterForTarget(target);
-	                target.transformPointToParent(computedTransformCenter, null,
-	                    postLayoutPosition);
-	                valueMap.postLayoutTranslationX = postLayoutPosition.x;
-	                valueMap.postLayoutTranslationY = postLayoutPosition.y;
-	                valueMap.postLayoutTranslationZ = postLayoutPosition.z;
-	            }
+                var offsets:TransformOffsets = target.offsets;
+                valueMap.postLayoutRotationX = offsets.rotationX;
+                valueMap.postLayoutRotationY = offsets.rotationY;
+                valueMap.postLayoutRotationZ = offsets.rotationZ;
+
+                valueMap.postLayoutScaleX = offsets.scaleX;
+                valueMap.postLayoutScaleY = offsets.scaleY;
+                valueMap.postLayoutScaleZ = offsets.scaleZ;
+
+                if (valueMap.postLayoutTranslationX === undefined ||
+                    valueMap.postLayoutTranslationY === undefined ||
+                    valueMap.postLayoutTranslationZ === undefined)
+                {
+                    // TODO (chaase): do we really need this?
+                    propChanges[i].stripUnchangedValues = false;
+
+                    computedTransformCenter =
+                        computeTransformCenterForTarget(target);
+                    target.transformPointToParent(computedTransformCenter, null,
+                        postLayoutPosition);
+                    valueMap.postLayoutTranslationX = postLayoutPosition.x;
+                    valueMap.postLayoutTranslationY = postLayoutPosition.y;
+                    valueMap.postLayoutTranslationZ = postLayoutPosition.z;
+                }
             }
         }
         return propChanges;
@@ -1234,11 +1390,11 @@
                 var tmpPosition:Vector3D;
                 var tmpRotation:Vector3D;

-	    	    var tmpOffsetTranslation:Vector3D;
-    	    	var tmpOffsetRotation:Vector3D;
-		        var tmpOffsetScale:Vector3D;
-
-		        var currentXFormPositionComputed:Boolean = false;
+                var tmpOffsetTranslation:Vector3D;
+                var tmpOffsetRotation:Vector3D;
+                var tmpOffsetScale:Vector3D;
+
+                var currentXFormPositionComputed:Boolean = false;

                 if (!isNaN(transitionValues.scaleX) ||
                     !isNaN(transitionValues.scaleY) ||
@@ -1282,62 +1438,62 @@
                         position.z = xformPosition.z;
                 }

-				if(target.offsets != null)
-				{
-					var offsets:TransformOffsets = target.offsets;
-			        if (!isNaN(transitionValues.postLayoutRotationX) ||
-			            !isNaN(transitionValues.postLayoutRotationY) ||
-			            !isNaN(transitionValues.postLayoutRotationZ))
-			        {
-			            offsetRotation.x = !isNaN(transitionValues.postLayoutRotationX) ?
-			                transitionValues.postLayoutRotationX : offsets.rotationX;
-			            offsetRotation.y = !isNaN(transitionValues.postLayoutRotationY) ?
-			                transitionValues.postLayoutRotationY : offsets.rotationY;
-			            offsetRotation.z = !isNaN(transitionValues.postLayoutRotationZ) ?
-			                transitionValues.postLayoutRotationZ : offsets.rotationZ;
-			            tmpOffsetRotation = offsetRotation;
-			        }
-
-			        if (!isNaN(transitionValues.postLayoutScaleX) ||
-			            !isNaN(transitionValues.postLayoutScaleY) ||
-			            !isNaN(transitionValues.postLayoutScaleZ))
-			        {
-			            offsetScale.x = !isNaN(transitionValues.postLayoutScaleX) ?
-			                transitionValues.postLayoutScaleX : offsets.scaleX;
-			            offsetScale.y = !isNaN(transitionValues.postLayoutScaleY) ?
-			                transitionValues.postLayoutScaleY : offsets.scaleY;
-			            offsetScale.z = !isNaN(transitionValues.postLayoutScaleZ) ?
-			                transitionValues.postLayoutScaleZ : offsets.scaleZ;
-			            tmpOffsetScale = offsetScale;
-			        }
-
-
-		            offsetTranslation.x = transitionValues.postLayoutTranslationX;
-		            offsetTranslation.y = transitionValues.postLayoutTranslationY;
-		            offsetTranslation.z = transitionValues.postLayoutTranslationZ;
-
-			        if (isNaN(offsetTranslation.x) ||
-			            isNaN(offsetTranslation.y) ||
-			            isNaN(offsetTranslation.z))
-			        {
-
-	                    if(currentXFormPositionComputed == false)
-	                    {
-	                    	target.transformPointToParent(xformCenter,
+                if(target.offsets != null)
+                {
+                    var offsets:TransformOffsets = target.offsets;
+                    if (!isNaN(transitionValues.postLayoutRotationX) ||
+                        !isNaN(transitionValues.postLayoutRotationY) ||
+                        !isNaN(transitionValues.postLayoutRotationZ))
+                    {
+                        offsetRotation.x = !isNaN(transitionValues.postLayoutRotationX) ?
+                            transitionValues.postLayoutRotationX : offsets.rotationX;
+                        offsetRotation.y = !isNaN(transitionValues.postLayoutRotationY) ?
+                            transitionValues.postLayoutRotationY : offsets.rotationY;
+                        offsetRotation.z = !isNaN(transitionValues.postLayoutRotationZ) ?
+                            transitionValues.postLayoutRotationZ : offsets.rotationZ;
+                        tmpOffsetRotation = offsetRotation;
+                    }
+
+                    if (!isNaN(transitionValues.postLayoutScaleX) ||
+                        !isNaN(transitionValues.postLayoutScaleY) ||
+                        !isNaN(transitionValues.postLayoutScaleZ))
+                    {
+                        offsetScale.x = !isNaN(transitionValues.postLayoutScaleX) ?
+                            transitionValues.postLayoutScaleX : offsets.scaleX;
+                        offsetScale.y = !isNaN(transitionValues.postLayoutScaleY) ?
+                            transitionValues.postLayoutScaleY : offsets.scaleY;
+                        offsetScale.z = !isNaN(transitionValues.postLayoutScaleZ) ?
+                            transitionValues.postLayoutScaleZ : offsets.scaleZ;
+                        tmpOffsetScale = offsetScale;
+                    }
+
+
+                    offsetTranslation.x = transitionValues.postLayoutTranslationX;
+                    offsetTranslation.y = transitionValues.postLayoutTranslationY;
+                    offsetTranslation.z = transitionValues.postLayoutTranslationZ;
+
+                    if (isNaN(offsetTranslation.x) ||
+                        isNaN(offsetTranslation.y) ||
+                        isNaN(offsetTranslation.z))
+                    {
+
+                        if(currentXFormPositionComputed == false)
+                        {
+                            target.transformPointToParent(xformCenter,
                                 xformPosition, postLayoutPosition);
                             currentXFormPositionComputed = true;
-	                    }
-
-			            if(isNaN(offsetTranslation.x))
-			            	offsetTranslation.x = postLayoutPosition.x;
-			            if(isNaN(offsetTranslation.y))
-			            	offsetTranslation.y = postLayoutPosition.y;
-			            if(isNaN(offsetTranslation.z))
-			            	offsetTranslation.z = postLayoutPosition.z;
-			        }
-
-			        tmpOffsetTranslation  = offsetTranslation;
-			 }
+                        }
+
+                        if(isNaN(offsetTranslation.x))
+                            offsetTranslation.x = postLayoutPosition.x;
+                        if(isNaN(offsetTranslation.y))
+                            offsetTranslation.y = postLayoutPosition.y;
+                        if(isNaN(offsetTranslation.z))
+                            offsetTranslation.z = postLayoutPosition.z;
+                    }
+
+                    tmpOffsetTranslation  = offsetTranslation;
+             }

                 target.transformAround(xformCenter, tmpScale, tmpRotation,
                     position,tmpOffsetScale,tmpOffsetRotation,tmpOffsetTranslation);
@@ -1395,7 +1551,7 @@
             property == "rotationY" || property == "rotationZ" ||
             property == "scaleX" || property == "scaleY" ||
             property == "scaleZ" ||
-			property == "postLayoutTranslationX" || property == "postLayoutTranslationY" ||
+            property == "postLayoutTranslationX" || property == "postLayoutTranslationY" ||
             property == "postLayoutTranslationZ" || property == "postLayoutRotationX" ||
             property == "postLayoutRotationY" || property == "postLayoutRotationZ" ||
             property == "postLayoutScaleX" || property == "postLayoutScaleY" ||
@@ -1443,14 +1599,34 @@
         keyframes.push(newKF);
     }

+    /**
+     *  Adds a MotionPath object to the transform effect with the
+     *  given parameters.
+     *  If a MotionPath object
+     *  on the same property already exists, adds the keyframes from the
+     *  new MotionPath object into the existing MotionPath object, sorted
+     *  by the time values.
+     *
+     *
Setting a post-layout motion path as part of an effect modifies the target,
+     *  but the parent container ignores the changes and does not update its layout.

+     *
+     *  @param property The name of the property being animated.
+     *
+     *  @param valueFrom The initial value of the property.
+     *
+     *  @param valueTo The final value of the property.
+     *
+     *  @param valueBy An optional parameter that specifies the delta with
+     *  which to calculate either the from or to values, if one is omitted.
+     */
     protected function addPostLayoutMotionPath(property:String,
         valueFrom:Number = NaN, valueTo:Number = NaN, valueBy:Number = NaN):void
     {
-    	if(isNaN(valueFrom) && isNaN(valueTo) && isNaN(valueBy))
-    	   return;
-
+        if(isNaN(valueFrom) && isNaN(valueTo) && isNaN(valueBy))
+           return;
+
         postLayoutTransformPropertiesSet = true;
-    	addMotionPath(property,valueFrom,valueTo,valueBy);
+        addMotionPath(property,valueFrom,valueTo,valueBy);
     }

     /**
@@ -1542,7 +1718,7 @@
         var transformInstance:AnimateTransformInstance =
             AnimateTransformInstance(instance);

-
+
         if (transformPropertiesSet)
         {
             if (!motionPaths)
@@ -1571,13 +1747,13 @@
             if (!motionPaths)
                 motionPaths = [];

-	        // there are two ways we can be affecting post-layout values.
-	        // first, if the user has explicity asked the motion paths to be post layout by setting the motionPathsAffectLayout
-	        // flag.  In that case, we can assume that they need an offsets object if one doesn't already exist.
-	        // Second, if we captured post-layout changes from a state change. In that case, we can assume that since values were captured,
-	        // offsets must already exist.
-	        if(target.offsets == null)
-	            target.offsets = new TransformOffsets();
+            // there are two ways we can be affecting post-layout values.
+            // first, if the user has explicity asked the motion paths to be post layout by setting the motionPathsAffectLayout
+            // flag.  In that case, we can assume that they need an offsets object if one doesn't already exist.
+            // Second, if we captured post-layout changes from a state change. In that case, we can assume that since values were captured,
+            // offsets must already exist.
+            if(target.offsets == null)
+                target.offsets = new TransformOffsets();

             if (_postLayoutTranslationX)
                 motionPaths.push(_postLayoutTranslationX);


Transferred from the Adobe Open Source Subversion Repository

Revision: 6642
Author:   chaase@adobe.com
Date:     2009-05-05T15:18:04.956805Z

Log Message:
-----------
Fix for bug when doing a Resize and a transform effect in a Parallel transition with autoCenterTransform=true. We would calculate different transform centers when capturing the start and end values, and there would be mismatches between the transform center and the transform properties that resulted. The fix is to calculate the transform center once, at captureStartValues time, and use that single transform center for the other cases.

QE Notes: -
Doc Notes: -
Bugs: SDK-20912
Reviewer: Hans
tests: checkintests

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransform.as

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

--- frameworks/projects/spark/src/spark/effects/AnimateTransform.as
+++ frameworks/projects/spark/src/spark/effects/AnimateTransform.as
@@ -226,6 +226,13 @@
     private static var xformPosition:Vector3D = new Vector3D();
     private static var postLayoutPosition:Vector3D = new Vector3D();

+    // Caches the transform center when start values are captured
+    // Ensures same center point used to capture and apply start and
+    // end values
+    // TODO (chaase): More correct approach might be to animate the
+    // transform center between start and end
+    private var transformCenterPerTarget:Dictionary = new Dictionary(true);
+
     /**
      * @private
      * This flag is set when any of the translationXYZ, rotationXYZ, scaleXYZ
@@ -1059,8 +1066,19 @@
                 // TODO (chaase): do we really need this?
                 propChanges[i].stripUnchangedValues = false;

-                var computedTransformCenter:Vector3D =
-                    computeTransformCenterForTarget(target);
+                var computedTransformCenter:Vector3D;
+                // cache transform center at captureStartValues time; this will
+                // force captureEndValues to use the transform center
+                if (!setStartValues && transformCenterPerTarget[target] !== undefined)
+                {
+                    computedTransformCenter = transformCenterPerTarget[target];
+                }
+                else
+                {
+                    computedTransformCenter = computeTransformCenterForTarget(target);
+                    if (setStartValues)
+                        transformCenterPerTarget[target] = computedTransformCenter;
+                }
                 target.transformPointToParent(computedTransformCenter, xformPosition,
                     null);
                 valueMap.translationX = xformPosition.x;
@@ -1144,7 +1162,7 @@
                 if(!isNaN(transformZ))
                     computedTransformCenter.z = transformZ;
             }
-        }
+        }
         return computedTransformCenter;
     }

@@ -1206,7 +1224,10 @@
                     }
                 }
                 // Now transform it
-                var xformCenter:Vector3D = computeTransformCenterForTarget(target);
+                var xformCenter:Vector3D =
+                    (transformCenterPerTarget[target] !== undefined) ?
+                    transformCenterPerTarget[target] :
+                    computeTransformCenterForTarget(target);
                 var tmpScale:Vector3D;
                 var tmpPosition:Vector3D;
                 var tmpRotation:Vector3D;


Transferred from the Adobe Open Source Subversion Repository

Revision: 19105
Author:   gruehle@adobe.com
Date:     2010-12-07T19:03:28.396000Z

Log Message:
-----------
Fix off-by-one error in recent scroll optimizations.

QE notes:
Doc notes:
Bugs: SDK-28666, SDK-28667
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/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/VerticalLayout.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
+++ frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
@@ -1395,7 +1395,7 @@
 			up small scrolls. */
 			if (!firstElement || !lastElement ||
 				scrollRect.left < firstElement.getLayoutBoundsX() ||
-				scrollRect.right > (lastElement.getLayoutBoundsX() + lastElement.getLayoutBoundsWidth()))
+				scrollRect.right >= (lastElement.getLayoutBoundsX() + lastElement.getLayoutBoundsWidth()))
 			{
 				g.invalidateDisplayList();
 			}


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

--- frameworks/projects/advancedgrids/src/mx/controls/advancedDataGridClasses/AdvancedDataGridDragProxy.as
+++ frameworks/projects/advancedgrids/src/mx/controls/advancedDataGridClasses/AdvancedDataGridDragProxy.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.controls.advancedDataGridClasses
 {


Ooops stray letter.

Ooops stray letter.

--- net/flashpunk/FP.as
+++ net/flashpunk/FP.as
@@ -658,7 +658,7 @@
 				while (from >= to)
 				{
 					a.push(from);
-					from -= skip;s
+					from -= skip;
 				}
 			}
 			return a;


Transferred from the Adobe Open Source Subversion Repository

Revision: 6843
Author:   jimurphy@adobe.com
Date:     2009-05-12T13:58:34.182467Z

Log Message:
-----------
Merged beta1 revisions 6793,6796-6797,6802,6805,6808-6809,6831 -> trunk

Modified Paths:
--------------
<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/skins/default/ButtonBarFirstButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichEditableText.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/utils/MouseShieldUtil.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/supportClasses/SkinnableContainerBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/TextAreaSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/SimpleText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/ButtonBarLastButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/TileLayout.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/TextBase.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/flex4/src/spark/layouts/VerticalLayout.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/SkinnableContainerBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/SkinnableContainerBase.as
@@ -13,12 +13,10 @@
 {

 import flash.display.DisplayObject;
-import spark.components.supportClasses.SkinnableComponent;
+
 import mx.core.ContainerGlobals;
 import mx.core.IFlexDisplayObject;
 import mx.managers.IFocusManagerContainer;
-import spark.utils.MouseShieldUtil;
-

 /**
  *  Normal State
@@ -77,6 +75,42 @@
     //
     //--------------------------------------------------------------------------

+    //----------------------------------
+    //  mouseChildren
+    //----------------------------------
+
+    private var _explicitMouseChildren:Boolean = true;
+
+    /**
+     *  @private
+     */
+    override public function set mouseChildren(value:Boolean):void
+    {
+        if (enabled)
+            super.mouseChildren = value;
+        _explicitMouseChildren = value;
+    }
+
+    //----------------------------------
+    //  mouseEnabled
+    //----------------------------------
+
+    private var _explicitMouseEnabled:Boolean = true;
+
+    /**
+     *  @private
+     */
+    override public function set mouseEnabled(value:Boolean):void
+    {
+        if (enabled)
+            super.mouseEnabled = value;
+        _explicitMouseEnabled = value;
+    }
+
+    //----------------------------------
+    //  enabled
+    //----------------------------------
+
     /**
      *  @private
      */
@@ -84,10 +118,11 @@
     {
         super.enabled = value;
         invalidateSkinState();
-
-        // We update the mouseShield that prevents clicks to propagate to
-        // children in our updateDisplayList.
-        invalidateDisplayList();
+
+        // If enabled, reset the mouseChildren, mouseEnabled to the previously
+        // set explicit value, otherwise disable mouse interaction.
+        super.mouseChildren = value ? _explicitMouseChildren : false;
+        super.mouseEnabled  = value ? _explicitMouseEnabled  : false;
     }

     //----------------------------------
@@ -141,31 +176,5 @@
     {
         return enabled ? "normal" : "disabled";
     }
-
-    /**
-     *  @inheritDoc
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-     */
-    override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
-    {
-        super.updateDisplayList(unscaledWidth, unscaledHeight);
-        mouseShield = MouseShieldUtil.updateMouseShield(this, mouseShield);
-    }
-
-    //--------------------------------------------------------------------------
-    //
-    //  Variables
-    //
-    //--------------------------------------------------------------------------
-
-    /**
-     *  @private
-     *  Mouse shield that is put up when this component is disabled.
-     */
-    private var mouseShield:DisplayObject;
 }
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 3791
Author:   jszeto@adobe.com
Date:     2008-10-21T20:23:09.861725Z

Log Message:
-----------
Fix bug when resetting stylesheet on FxApplication

SDK-17691 RTE loading styles

When the FxApplication replaces its style sheet, it unloads the previous skin and loads in a new one. With the new skin, it creates a new instance of the contentGroup. However, when the content is added to the contentGroup, it has already been parented by the previous version of the contentGroup. This causes the RTE because the content is not in the correct state.

The solution is to set the old contentGroup's content property to null when we remove the skin. We also force the contentGroup to validate immediately because the new contentGroup was processing its content array before the oldGroup had removed the content as children.

QE Notes: Needs testing
Doc Notes: none
Bugs: SDK-17691
Reviewer: Glenn

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

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

--- frameworks/projects/spark/src/spark/components/SkinnableContainer.as
+++ frameworks/projects/spark/src/spark/components/SkinnableContainer.as
@@ -453,6 +453,9 @@
                 ItemExistenceChangedEvent.ITEM_ADD, contentGroup_itemAddedHandler);
             contentGroup.removeEventListener(
                 ItemExistenceChangedEvent.ITEM_REMOVE, contentGroup_itemRemovedHandler);
+
+            contentGroup.content = null;
+            contentGroup.validateProperties();
         }
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 4824
Author:   rfrishbe@adobe.com
Date:     2009-02-04T02:04:24.158140Z

Log Message:
-----------
Modifying flash component kit.  We now implement ILayoutElement directly on UIMovieClip.  I also fixed some scaling issues and worked on the Flash Container so we size children appropriately, adding a flag to size the content to the size of the flash container and a flag to unscale the flex content (even though it's parent is scaled due to resizing).

Because of this, we can remove ILayoutElementUIC.  Some point soon, we'll remove LayoutElementFactory and just assume all elements implement ILayoutElement (will do this change when we make IVisualElement extend ILayoutElement).

QE Notes: None
Doc Notes: None
Bugs: None
Reviewer: Glenn, Evtim
tests: checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/LayoutElementFactory.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/flash-integration/src/mx/flash/FlexContentHolder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/ContainerMovieClip.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/LayoutElementUIC.as</path>

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

--- frameworks/projects/flash-integration/src/mx/flash/FlexContentHolder.as
+++ frameworks/projects/flash-integration/src/mx/flash/FlexContentHolder.as
@@ -15,8 +15,6 @@
 import flash.display.DisplayObject;
 import flash.display.DisplayObjectContainer;
 import flash.display.InteractiveObject;
-import flash.display.MovieClip;
-import flash.geom.Rectangle;
 import flash.utils.getDefinitionByName;

 import mx.core.IUIComponent;
@@ -94,9 +92,6 @@
     override public function initialize():void
     {
         super.initialize();
-
-        _width = bounds.width;
-        _height = bounds.height;

         // initialize is only called when we are running in Flex.
         // Since we are in Flex, let's hide the content placeholder.
@@ -148,8 +143,6 @@
         _width = newWidth;
         _height = newHeight;

-        scaleX = scaleY = 1;
-
         if (flexContent)
         {
             sizeFlexContent();
@@ -245,7 +238,6 @@
                 if (!uicParent)
                     return;

-                flexContent.initialize();

                 // The rest of this was copied from UIComponent.addingChild()...

@@ -270,6 +262,10 @@
                 if (flexContent is uiComponentClass)
                 {
                     var child:Object = flexContent;
+
+                    // set the child's parent to this for now (when initializing styles,
+                    // we'll have to do some funky business).
+                    child.mx_internal::_parent = this;

                     // Set the nestLevel of the child to be one greater
                     // than the nestLevel of this component.
@@ -292,10 +288,8 @@
                     // but some need to react to even this early change.
                     child.stylesInitialized();
                  }
-
-                 _width *= scaleX;
-                 _height *= scaleY;
-                 scaleX = scaleY = 1;
+
+                flexContent.initialize();

                  sizeFlexContent();
             }
@@ -309,22 +303,40 @@
     {
         if (!flexContent)
             return;
-
-        // Scale the flex content to the inverse of our nested scale
-        flexContent.scaleX = 1;
-        flexContent.scaleY = 1;
-
-        // Size the flex content to our size
-        var contentWidth:Number = _width;
-        var contentHeight:Number = _height;
-
-        if (flexContent.explicitWidth)
-            contentWidth = Math.min(contentWidth, flexContent.explicitWidth);
-
-        if (flexContent.explicitHeight)
-            contentHeight = Math.min(contentHeight, flexContent.explicitHeight);
-
-        flexContent.setActualSize(contentWidth, contentHeight);
+
+        var myParent:ContainerMovieClip = ContainerMovieClip(parent);
+        var contentWidth:Number;
+        var contentHeight:Number;
+
+        if (myParent.fillContentToSize)
+        {
+            // Size the flex content to our size
+            contentWidth = _width;
+            contentHeight = _height;
+
+            if (flexContent.explicitWidth)
+                contentWidth = Math.min(contentWidth, flexContent.explicitWidth);
+
+            if (flexContent.explicitHeight)
+                contentHeight = Math.min(contentHeight, flexContent.explicitHeight);
+
+            flexContent.setActualSize(contentWidth, contentHeight);
+        }
+        else
+        {
+            // Size the flex content to what they want to be,
+            // making sure we size them to their minimum size and
+            // making sure we fit within this container.
+            // We don't do anything too fancy here for layout, like make sure
+            // our size is large enough to hold our content in the first place
+
+            contentWidth = Math.max(flexContent.minWidth,
+                Math.min(_width, flexContent.getExplicitOrMeasuredWidth()));
+            contentHeight = Math.max(flexContent.minHeight,
+                Math.min(_height, flexContent.getExplicitOrMeasuredHeight()));
+
+            flexContent.setActualSize(contentWidth, contentHeight);
+        }
     }
 }
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 17970
Author:   egeorgie@adobe.com
Date:     2010-09-30T21:32:24.300370Z

Log Message:
-----------
Fix SDK-27642 Unnecessary Measure for Mobile Programmatic Skins

In this change:
- introduce new protected APIs in MobileSkin, MobileItemRenderer for resizing and positioning elements.
- update Mobile skin code to use new APIs instead of setting explicitly x, y, width, height
- update FXG assetes to make elements pixel aligned
- update Mobile skin code to assume FXG assest are always pixel aligned

QE notes: Verify skins look as expected; mobile item renderers layout as expected
Doc notes: None.
Bugs: SDK-27642
Reviewer: Glenn, Jason S, Jason SJ, Ryan
Tests run: full mobile mustella
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/VScrollBarTrackSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/Button_down.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/MobileSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/CheckBox_upSelected.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/MobileItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextInputSkin.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/VScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/VScrollBarThumbSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/CheckBox_down.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/MobileIconItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/Button_up.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HScrollBarTrackSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/CheckBox_downSelected.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/CheckBoxSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/CheckBox_up.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/NavigationButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HScrollBarThumbSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HScrollBarSkin.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/TextInputSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/TextInputSkin.as
@@ -127,26 +127,22 @@
     override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
     {
         super.updateDisplayList(unscaledWidth, unscaledHeight);
-
+
         // Draw the contentBackgroundColor
         graphics.clear();
         graphics.beginFill(getStyle("contentBackgroundColor"), getStyle("contentBackgroundAlpha"));
         graphics.drawRoundRect(2, 2, unscaledWidth - 4, unscaledHeight - 4, 4, 4);
         graphics.endFill();
-
+
         // position & size border
-        border.x = border.y = 0;
-        border.width = unscaledWidth;
-        border.height = unscaledHeight;
-
+        resizePart(border, unscaledWidth, unscaledHeight);
+        positionPart(border, 0, 0);
+
         // position & size the text
         textDisplay.commitStyles();
-        textDisplay.x = HORIZONTAL_PADDING;
-        textDisplay.width = unscaledWidth - (HORIZONTAL_PADDING * 2);
-
 		var textHeight:Number = textDisplay.textHeight + TEXT_HEIGHT_PADDING;
-		textDisplay.height = textHeight;
-        textDisplay.y = Math.round((unscaledHeight - textHeight) / 2);
+        resizePart(textDisplay, unscaledWidth - (HORIZONTAL_PADDING * 2), textHeight);
+        positionPart(textDisplay, HORIZONTAL_PADDING, Math.round((unscaledHeight - textHeight) / 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@1273706 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/rpc/src/mx/messaging/channels/StreamingConnectionHandler.as
+++ frameworks/projects/rpc/src/mx/messaging/channels/StreamingConnectionHandler.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 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: 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@1258473 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/framework/src/mx/automation/IAutomationObject.as
+++ frameworks/projects/framework/src/mx/automation/IAutomationObject.as
@@ -21,6 +21,11 @@
  * The IAutomationObject interface defines the interface
  * for a delegate object that implements automation
  * for a component.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public interface IAutomationObject
 {
@@ -37,6 +42,11 @@
     /**
      *  The delegate object that is handling the automation-related functionality.
      *  Automation sets this when it creates the delegate object.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get automationDelegate():Object;

@@ -51,6 +61,11 @@

     /**
      *  Name that can be used as an identifier for this object.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get automationName():String;

@@ -67,6 +82,11 @@
      *  This value generally corresponds to the rendered appearance of the
      *  object and should be usable for correlating the identifier with
      *  the object as it appears visually within the application.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get automationValue():Array;

@@ -79,6 +99,11 @@
      *
      *  @return Sets of properties describing the child which can
      *          later be used to resolve the component.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function createAutomationIDPart(child:IAutomationObject):Object;

@@ -91,6 +116,11 @@
      *         resulting in multiple children being matched.
      *  @return Array of children that matched the criteria
      *          or null if no children could not be resolved.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function resolveAutomationIDPart(criteria:Object):Array;

@@ -101,6 +131,11 @@
      *  @param index The index of the child to return
      *
      *  @return The child at the specified index.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function getAutomationChildAt(index:int):IAutomationObject;

@@ -109,6 +144,11 @@
      *  This sum should not include any composite children, though
      *  it does include those children not significant within the
      *  automation hierarchy.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get numAutomationChildren():int;

@@ -126,6 +166,11 @@
      *  including boxes, to appear in the hierarchy.
      *  Implementers must support setting this property
      *  to true.

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

@@ -139,6 +184,11 @@
      * can be used to retrieve the data.
      *
      * @return An implementation of the IAutomationTabularData interface.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get automationTabularData():Object;

@@ -150,6 +200,11 @@
      *  @param event The event to replay.
      *
      *  @return true if a replay was successful.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function replayAutomatableEvent(event:Event):Boolean;


Transferred from the Adobe Open Source Subversion Repository

Revision: 11264
Author:   smgilson@adobe.com
Date:     2009-10-29T17:34:22.099841Z

Log Message:
-----------
ASDoc updates for TileList

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TitleWindow.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/TitleWindowSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/TitleWindowCloseButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/events/TitleWindowBoundsEvent.as</path>

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

--- frameworks/projects/spark/src/spark/events/TitleWindowBoundsEvent.as
+++ frameworks/projects/spark/src/spark/events/TitleWindowBoundsEvent.as
@@ -11,13 +11,14 @@

 package spark.events
 {
-
+
 import flash.events.Event;
 import flash.geom.Rectangle;

 /**
- *  Represents event objects that are dispatched when bounds of a
- *  TitleWindow changes either by moving or resizing.
+ *  The TitleWindowBoundsEvent class represents event objects
+ *  that are dispatched when bounds of a
+ *  Spark TitleWindow changes, either by moving or resizing.
  *
  *  @see spark.components.TitleWindow
  *
@@ -28,225 +29,245 @@
  */
 public class TitleWindowBoundsEvent extends Event
 {
-	include "../core/Version.as";
-
-	//--------------------------------------------------------------------------
-	//
-	//  Class constants
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  The TitleWindowBoundsEvent.WINDOW_MOVE_START constant defines the value of the
-	 *  type property of the event object for a windowMoveStart event.
-	 *
-	 *
The properties of the event object have the following values:

-	 *

-	 *
Property	Value

-	 *
bubbles	false

-	 *
cancelable	true

-	 *
currentTarget	The Object that defines the
-	 *       event listener that handles the event. For example, if you use
-	 *       myButton.addEventListener() to register an event listener,
-	 *       myButton is the value of the currentTarget.

-	 *
beforeBounds	The starting bounds of the object.

-	 *
afterBounds	The final bounds of the object.

-	 *
target	The Object that dispatched the event;
-	 *       it is not always the Object listening for the event.
-	 *       Use the currentTarget property to always access the
-	 *       Object listening for the event.

-	 *

-	 *
-	 *  @eventType windowMoveStart
-	 *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-	 */
-	public static const WINDOW_MOVE_START:String = "windowMoveStart";
-
-    /**
-	 *  The TitleWindowBoundsEvent.WINDOW_MOVING constant defines the value of the
-	 *  type property of the event object for a windowMoving event.
-	 *
-	 *
The properties of the event object have the following values:

-	 *

-	 *
Property	Value

-	 *
bubbles	false

-	 *
cancelable	true

-	 *
currentTarget	The Object that defines the
-	 *       event listener that handles the event. For example, if you use
-	 *       myButton.addEventListener() to register an event listener,
-	 *       myButton is the value of the currentTarget.

-	 *
beforeBounds	The current bounds of the object.

-	 *
afterBounds	The future bounds of the object.

-	 *
target	The Object that dispatched the event;
-	 *       it is not always the Object listening for the event.
-	 *       Use the currentTarget property to always access the
-	 *       Object listening for the event.

-	 *

-	 *
-	 *  @eventType windowMoving
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 10
-	 *  @playerversion AIR 1.5
- 	 *  @productversion Flex 4
-	 */
-	public static const WINDOW_MOVING:String = "windowMoving";
-
-	/**
-	 *  The TitleWindowBoundsEvent.WINDOW_MOVE constant defines the value of the
-	 *  type property of the event object for a windowMove event.
-	 *
-	 *
The properties of the event object have the following values:

-	 *

-	 *
Property	Value

-	 *
bubbles	false

-	 *
cancelable	false

-	 *
currentTarget	The Object that defines the
-	 *       event listener that handles the event. For example, if you use
-	 *       myButton.addEventListener() to register an event listener,
-	 *       myButton is the value of the currentTarget.

-	 *
beforeBounds	The previous bounds of the object.

-	 *
afterBounds	The current bounds of the object.

-	 *
target	The Object that dispatched the event;
-	 *       it is not always the Object listening for the event.
-	 *       Use the currentTarget property to always access the
-	 *       Object listening for the event.

-	 *

-	 *
-	 *  @eventType windowMove
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 10
-	 *  @playerversion AIR 1.5
-	 *  @productversion Flex 4
-	 */
-	public static const WINDOW_MOVE:String = "windowMove";
-
-	/**
-	 *  The TitleWindowBoundsEvent.WINDOW_MOVE_END constant defines the value of the
-	 *  type property of the event object for a windowMoveEnd event.
-	 *
-	 *
The properties of the event object have the following values:

-	 *

-	 *
Property	Value

-	 *
bubbles	false

-	 *
cancelable	false

-	 *
currentTarget	The Object that defines the
-	 *       event listener that handles the event. For example, if you use
-	 *       myButton.addEventListener() to register an event listener,
-	 *       myButton is the value of the currentTarget.

-	 *
beforeBounds	The starting bounds of the object.

-	 *
afterBounds	The final bounds of the object.

-	 *
target	The Object that dispatched the event;
-	 *       it is not always the Object listening for the event.
-	 *       Use the currentTarget property to always access the
-	 *       Object listening for the event.

-	 *

-	 *
-	 *  @eventType windowMoveEnd
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 10
-	 *  @playerversion AIR 1.5
-	 *  @productversion Flex 4
-	 */
-	public static const WINDOW_MOVE_END:String = "windowMoveEnd";
-
-	//--------------------------------------------------------------------------
-	//
-	//  Constructor
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  Constructor.
-	 *
-	 *  @param type The event type; indicates the action that caused the event.
-	 *
-	 *  @param bubbles Specifies whether the event can bubble
-	 *  up the display list hierarchy.
-	 *
-	 *  @param cancelable Specifies whether the behavior
-	 *  associated with the event can be prevented.
-	 *
-	 *  @param beforeBounds The bounds of the window before the action. If
-	 * 		this event is cancelable, beforeBounds is the current bounds of
-	 *      the window. Otherwise, it is the bounds before a change occurred.
-	 *
-	 *  @param afterBounds The bounds of the window after the action. If
-	 * 		this event is cancelable, afterBounds is the future bounds of
-	 *      the window. Otherwise, it is the current bounds.
-	 *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-	 */
-	public function TitleWindowBoundsEvent(type:String, bubbles:Boolean = false,
-										   cancelable:Boolean = false,
-										   beforeBounds:Rectangle = null, afterBounds:Rectangle = null)
-	{
-		super(type, bubbles, cancelable);
-
-		this.beforeBounds = beforeBounds;
-		this.afterBounds = afterBounds;
-	}
-
-	//--------------------------------------------------------------------------
-	//
-	//  Properties
-	//
-	//--------------------------------------------------------------------------
-
-	//----------------------------------
-	//  beforeBounds
-	//----------------------------------
-
-	/**
-	 *  The bounds of the object before the action. If this event
-	 *  is cancelable, beforeBounds is the current bounds of
-	 *  the window. Otherwise, it is the bounds before a change occurred.
-	 *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-	 */
-	public var beforeBounds:Rectangle;
-
-	//----------------------------------
-	//  afterBounds
-	//----------------------------------
-
-	/**
-	 *  The bounds of the object after the action. If this event
-	 *  is cancelable, afterBounds is the future bounds of
-	 *  the window. Otherwise, it is the current bounds.
-	 *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-	 */
-	public var afterBounds:Rectangle;
-
-	//--------------------------------------------------------------------------
-	//
-	//  Overridden methods: Event
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  @private
-	 */
-	override public function clone():Event
-	{
-		return new TitleWindowBoundsEvent(type, bubbles, cancelable, beforeBounds, afterBounds);
-	}
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Class constants
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  The TitleWindowBoundsEvent.WINDOW_MOVE_START constant defines the value of the
+     *  type property of the event object for a windowMoveStart event.
+     *
+     *
The properties of the event object have the following values:

+     *

+     *
Property	Value

+     *
bubbles	false

+     *
cancelable	true

+     *
currentTarget	The Object that defines the
+     *       event listener that handles the event. For example, if you use
+     *       myButton.addEventListener() to register an event listener,
+     *       myButton is the value of the currentTarget.

+     *
beforeBounds	The starting bounds of the object.

+     *
afterBounds	The final bounds of the object.

+     *
target	The Object that dispatched the event;
+     *       it is not always the Object listening for the event.
+     *       Use the currentTarget property to always access the
+     *       Object listening for the event.

+     *

+     *
+     *  @eventType windowMoveStart
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public static const WINDOW_MOVE_START:String = "windowMoveStart";
+
+    /**
+     *  The TitleWindowBoundsEvent.WINDOW_MOVING constant defines the value of the
+     *  type property of the event object for a windowMoving event.
+     *
+     *
The properties of the event object have the following values:

+     *

+     *
Property	Value

+     *
bubbles	false

+     *
cancelable	true

+     *
currentTarget	The Object that defines the
+     *       event listener that handles the event. For example, if you use
+     *       myButton.addEventListener() to register an event listener,
+     *       myButton is the value of the currentTarget.

+     *
beforeBounds	The current bounds of the object.

+     *
afterBounds	The future bounds of the object.

+     *
target	The Object that dispatched the event;
+     *       it is not always the Object listening for the event.
+     *       Use the currentTarget property to always access the
+     *       Object listening for the event.

+     *

+     *
+     *  @eventType windowMoving
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public static const WINDOW_MOVING:String = "windowMoving";
+
+    /**
+     *  The TitleWindowBoundsEvent.WINDOW_MOVE constant defines the value of the
+     *  type property of the event object for a windowMove event.
+     *
+     *
The properties of the event object have the following values:

+     *

+     *
Property	Value

+     *
bubbles	false

+     *
cancelable	false

+     *
currentTarget	The Object that defines the
+     *       event listener that handles the event. For example, if you use
+     *       myButton.addEventListener() to register an event listener,
+     *       myButton is the value of the currentTarget.

+     *
beforeBounds	The previous bounds of the object.

+     *
afterBounds	The current bounds of the object.

+     *
target	The Object that dispatched the event;
+     *       it is not always the Object listening for the event.
+     *       Use the currentTarget property to always access the
+     *       Object listening for the event.

+     *

+     *
+     *  @eventType windowMove
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public static const WINDOW_MOVE:String = "windowMove";
+
+    /**
+     *  The TitleWindowBoundsEvent.WINDOW_MOVE_END constant defines the value of the
+     *  type property of the event object for a windowMoveEnd event.
+     *
+     *
The properties of the event object have the following values:

+     *

+     *
Property	Value

+     *
bubbles	false

+     *
cancelable	false

+     *
currentTarget	The Object that defines the
+     *       event listener that handles the event. For example, if you use
+     *       myButton.addEventListener() to register an event listener,
+     *       myButton is the value of the currentTarget.

+     *
beforeBounds	The starting bounds of the object.

+     *
afterBounds	The final bounds of the object.

+     *
target	The Object that dispatched the event;
+     *       it is not always the Object listening for the event.
+     *       Use the currentTarget property to always access the
+     *       Object listening for the event.

+     *

+     *
+     *  @eventType windowMoveEnd
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public static const WINDOW_MOVE_END:String = "windowMoveEnd";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *
+     *  @param type The event type; indicates the action that caused the event.
+     *
+     *  @param bubbles Specifies whether the event can bubble
+     *  up the display list hierarchy.
+     *
+     *  @param cancelable Specifies whether the behavior
+     *  associated with the event can be prevented.
+     *
+     *  @param beforeBounds The bounds of the window before the action. If
+     *      this event is cancelable, beforeBounds is the current bounds of
+     *      the window. Otherwise, it is the bounds before a change occurred.
+     *
+     *  @param afterBounds The bounds of the window after the action. If
+     *      this event is cancelable, afterBounds is the future bounds of
+     *      the window. Otherwise, it is the current bounds.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function TitleWindowBoundsEvent(type:String, bubbles:Boolean = false,
+                                           cancelable:Boolean = false,
+                                           beforeBounds:Rectangle = null, afterBounds:Rectangle = null)
+    {
+        super(type, bubbles, cancelable);
+
+        this.beforeBounds = beforeBounds;
+        this.afterBounds = afterBounds;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  beforeBounds
+    //----------------------------------
+
+    /**
+     *  The bounds of the object before the action. If this event
+     *  is cancelable, beforeBounds is the current bounds of
+     *  the window. Otherwise, it is the bounds before a change occurred.
+     *
+     *
The following list shows how this property is set for the different
+     *  event types:

+     *
+     *

+     *
WINDOW_MOVE - The previous bounds of the window.

+     *
WINDOW_MOVE_END - The starting bounds of the window, before the drag.

+     *
WINDOW_MOVE_START    - The starting bounds of the window.

+     *
WINDOW_MOVING - The current bounds of the window.

+     *

+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public var beforeBounds:Rectangle;
+
+    //----------------------------------
+    //  afterBounds
+    //----------------------------------
+
+    /**
+     *  The bounds of the object after the action. If this event
+     *  is cancelable, afterBounds is the future bounds of
+     *  the window. Otherwise, it is the current bounds.
+     *
+     *
The following list shows how this property is set for the different
+     *  event types:

+     *
+     *

+     *
WINDOW_MOVE - The current bounds of the window.

+     *
WINDOW_MOVE_END - The final bounds of the window, before the drag.

+     *
WINDOW_MOVE_START    - The final bounds of the window.

+     *
WINDOW_MOVING - The future bounds of the window.

+     *

+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public var afterBounds:Rectangle;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden methods: Event
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    override public function clone():Event
+    {
+        return new TitleWindowBoundsEvent(type, bubbles, cancelable, beforeBounds, afterBounds);
+    }
 }

 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 13502
Author:   jimurphy@adobe.com
Date:     2010-01-14T16:21:58.005354Z

Log Message:
-----------
Merged 3.x revs 13376,13384,13443 -> trunk
Blocked 3.x rev 13426

13443
* Fixed Ant compilation issue with RSL's.
SDK-24995

13384
asdoc for SOAPResult. no code changes.
LCDS-919

13376
Add missing ASDoc comments. No real code changes.
LCDS-920

Add new svn property to better track blocked revisions - svn:blockinfo. This will be updated by a script that I run to do merges (it can also be updated manually)

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

Modified Paths:
--------------
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/AbstractOperation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/SOAPResult.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/SOAPEncoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/antTasks/src/flex/ant/types/URLElement.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/ISOAPEncoder.as</path>

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

--- frameworks/projects/rpc/src/mx/rpc/soap/ISOAPEncoder.as
+++ frameworks/projects/rpc/src/mx/rpc/soap/ISOAPEncoder.as
@@ -16,17 +16,14 @@
 import mx.rpc.xml.SchemaConstants;
 import mx.rpc.xml.IXMLEncoder;

+[ExcludeClass]
+
 /**
  * An ISOAPEncoder is used to create SOAP 1.1 formatted requests for a web
  * service operation. A WSDLOperation provides the definition of how a SOAP
  * request should be formatted and therefore must be set before a call is made to
  * encode().
  *
- *
- *  @langversion 3.0
- *  @playerversion Flash 9
- *  @playerversion AIR 1.1
- *  @productversion Flex 3
  */
 public interface ISOAPEncoder extends IXMLEncoder
 {
@@ -45,11 +42,6 @@
      * first be set to false. Conversely, if a type whiteSpace
      * restriction is set to replace or collapse then
      * that setting will be honored even if ignoreWhitespace is set to false.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
      */
     function get ignoreWhitespace():Boolean;
     function set ignoreWhitespace(value:Boolean):void;
@@ -57,11 +49,6 @@
     /**
      * A WSDLOperation defines the SOAP binding styles and specifies how to
      * encode a SOAP request.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
      */
     function get wsdlOperation():WSDLOperation;
     function set wsdlOperation(value:WSDLOperation):void;
@@ -75,11 +62,12 @@
     /**
      * Creates a SOAP-encoded request to an operation from the given input
      * parameters and headers.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
+	 *
+	 * @param args values to be encoded in the body of the SOAP request.
+	 *
+	 * @param headers header values to be encoded in the SOAP envelope.
+     *
+     * @return SOAP-encoded XML representation of the passed in arguments and headers.
      */
     function encodeRequest(args:* = null, headers:Array = null):XML;
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 12562
Author:   dsubrama@adobe.com
Date:     2009-12-05T00:02:43.232200Z

Log Message:
-----------
The three cases needing handling in Group.commitProperties() handling of a blendMode change are: the case where blendMode is auto, the case that blendMode is set to a native Flash blendMode, the case that blendMode is set to a non-native AIM blendMode (which is handled via a blendShader). There was lingering code for a fourth case that was setting blendMode back to normal in the 4th case - meaning when changing a blendMode to an AIM-based blendMode, it didn't take. Now, that errant code is gone.

QE notes: Regress
Doc notes: No
Bugs: SDK-24248
Reviewer: Pete Farland
Tests run: FXG primitives, FXG static (core/fxg), Spark ScrollBar, Halo List
Is noteworthy for integration: No

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Group.as

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

--- frameworks/projects/spark/src/spark/components/Group.as
+++ frameworks/projects/spark/src/spark/components/Group.as
@@ -755,11 +755,6 @@
             {
                 super.blendMode = _blendMode;
             }
-                // The blendMode is neither a native value,
-                // or the 'auto' value so lets set blendMode
-                // to normal.
-            else
-                super.blendMode = "normal";

             if (blendShaderChanged)
             {


Transferred from the Adobe Open Source Subversion Repository

Revision: 7530
Author:   hmuller@adobe.com
Date:     2009-06-03T19:07:27.102549Z

Log Message:
-----------
Reverted the changes I accidentally committed in SVN 7529.  Oops.

Modified Paths:
--------------
<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/development/eclipse/flex/flex4/.project</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/SimpleText.as</path>

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

--- frameworks/projects/spark/src/spark/components/Label.as
+++ frameworks/projects/spark/src/spark/components/Label.as
@@ -542,21 +542,6 @@
     private function setKerning(elementFormat:ElementFormat):void
     {
         var kerning:Object = getStyle("kerning");
-        switch(kerning)
-        {
-            case true:
-                elementFormat.kerning = Kerning.ON;
-                break;
-            case false:
-                elementFormat.kerning = Kerning.OFF
-                break;
-        }
-    }
-
-    /*
-    private function setKerning(elementFormat:ElementFormat):void
-    {
-        var kerning:Object = getStyle("kerning");

         if (kerning === true)
             kerning = Kerning.ON;
@@ -567,7 +552,6 @@
         if (s != null)
            elementFormat.kerning = s;
     }
-    */

     /**
      *  @private


Transferred from the Adobe Open Source Subversion Repository

Revision: 16822
Author:   deeptika@adobe.com
Date:     2010-07-07T06:16:32.586582Z

Log Message:
-----------
Removing deprecated API and their usage.

QE notes:
Doc notes:
Bugs: FLEXDMV-2463 (LineaSeries legendData marker are not working if the series has lineStroke to a SolidColorStroke)
FLEXDMV-2470 (Remove deprecation or Remove deprecated properties in charting)
Reviewer:
Tests run:
Is noteworthy for integration:

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/BarChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_dmv/src/mx/automation/delegates/charts/CartesianChartAutomationImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/renderers/AreaRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/AreaChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/series/HLOCSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/series/LineSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/PlotChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/series/BubbleSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/series/ColumnSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation/src/mx/automation/tabularData/CartesianChartTabularData.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/CandlestickChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/HLOCChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/chartClasses/StackedSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/series/BarSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/LineChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/chartClasses/HLOCSeriesBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/chartClasses/CartesianChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/chartClasses/ChartBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/BubbleChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/series/AreaSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/chartClasses/PolarChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/ColumnChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/series/PlotSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/renderers/HLOCItemRenderer.as</path>

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

--- frameworks/projects/charts/src/mx/charts/CandlestickChart.as
+++ frameworks/projects/charts/src/mx/charts/CandlestickChart.as
@@ -209,11 +209,7 @@
 			this.fill = new SolidColor(0xFFFFFF, 0);
 			this.calloutStroke = new Stroke(0x888888,2);
 			this.fontSize = 10;
-			this.horizontalAxisStyleName = "blockCategoryAxis";
-			this.secondHorizontalAxisStyleName = "blockCategoryAxis";
-			this.secondVerticalAxisStyleName = "blockNumericAxis";
 			this.textAlign = "left"
-			this.verticalAxisStyleName = "blockNumericAxis";
 			this.horizontalAxisStyleNames = ["blockCategoryAxis"];
 			this.verticalAxisStyleNames = ["blockNumericAxis"];
 		}
@@ -318,26 +314,6 @@

 		return super.applySeriesSet(seriesSet, transform);
 	}
-
-	//--------------------------------------------------------------------------
-	//
-	//  Overridden methods: CartesianChart
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  @private
-	 */
-	override protected function initSecondaryMode():void
-	{
-		super.initSecondaryMode();
-
-		if (!secondVerticalAxis)
-			secondVerticalAxis = new LinearAxis();
-
-		if (!secondVerticalAxisRenderer)
-			secondVerticalAxisRenderer = new AxisRenderer();
-	}
 }

 }