Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/spark/src/spark/effects/AnimateTransform3D.as
+++ frameworks/projects/spark/src/spark/effects/AnimateTransform3D.as
@@ -0,0 +1,311 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 spark.effects
+{
+import flash.geom.Vector3D;
+import flash.utils.Dictionary;
+
+import mx.core.IUIComponent;
+import mx.core.mx_internal;
+import mx.effects.CompositeEffect;
+import mx.effects.Effect;
+import mx.effects.IEffectInstance;
+import mx.effects.Parallel;
+import mx.effects.Sequence;
+import mx.events.EffectEvent;
+import mx.geom.TransformOffsets;
+import mx.styles.IStyleClient;
+
+import spark.core.IGraphicElement;
+import spark.effects.supportClasses.AnimateTransformInstance;
+
+use namespace mx_internal;
+
+//--------------------------------------
+//  Excluded APIs
+//--------------------------------------
+
+/**
+ *  The AnimateTransform3D effect extends the abilities of
+ *  the AnimateTransform effect to 3D transform properties. Like
+ *  AnimateTransform, this effect is not intended to be used directly,
+ *  but instead provides common functionality that is used by its
+ *  subclasses. To get 3D effects, use the subclasses Move3D, Rotate3D,
+ *  and Scale3D.
+ *
+ *
As with AnimateTransform, there are some properties of this
+ *  affect that are shared with all other transform effects that it is
+ *  combined with at runtime. In particular, the projection-related properties
+ *  applyLocalProjection, removeProjectionWhenComplete,
+ *  autoCenterProjection, fieldOfView,
+ *  focalLength, projectionX, and
+ *  projectionY are all shared properties. Set these
+ *  properties similarly on all 3D effects that are combined in a composite
+ *  effect to get predictable results.

+ *
+ *  @mxml
+ *
+ *
The <mx:AnimateTransform> tag
+ *  inherits all of the tag attributes of its superclass,
+ *  and adds the following tag attributes:

+ *
+ *

+ *  <mx:AnimateTransform
+ *    Properties
+ *    id="ID"
+ *    applyChangesPostLayout="true"
+ *    applyLocalProjection="false"
+ *    autoCenterProjection="true"
+ *    fieldOfView="no default"
+ *    focalLength="no default"
+ *    projectionX="0"
+ *    projectionY="0"
+ *  />
+ *

+ *
+ *  @see spark.effects.supportClasses.AnimateTransformInstance
+ *
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+public class AnimateTransform3D extends AnimateTransform
+{
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *
+     *  @param target The Object to animate with this effect.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function AnimateTransform3D(target:Object=null)
+    {
+        super(target);
+        instanceClass = AnimateTransformInstance;
+        applyChangesPostLayout = true;
+    }
+
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  applyChangesPostLayout
+    //----------------------------------
+    [Inspectable(category="General")]
+    /**
+     *  @copy AnimateTransform#applyChangesPostLayout
+     *  The default value for this property is true for 3D effects,
+     *  because the Flex layout system ignores 3D transformation properties.
+     *
+     *  @default true
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    override public function get applyChangesPostLayout():Boolean
+    {
+        return super.applyChangesPostLayout;
+    }
+
+    /**
+     *  If true, the effect creates a perspective projection
+     *  using the other projection-related properties in the effect
+     *  and applies it to the target component's parent when it starts playing.
+     *  By default, the projection is left on the parent when the effect finishes;
+     *  to remove the projection when the effect ends, set
+     *  removeLocalProjectionWhenComplete to true.
+     *
+     *  @see #removeLocalProjectionWhenComplete
+     *  @default true
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    private var _applyLocalProjection:Boolean = true;
+    public function get applyLocalProjection():Boolean
+    {
+        return _applyLocalProjection;
+    }
+    public function set applyLocalProjection(value:Boolean):void
+    {
+        _applyLocalProjection = value;
+    }
+
+    /**
+     *  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.
+     *
+     *
This property is only used when applyLocalProjection
+     *  is set to true.

+     *
+     *  @see #applyLocalProjection
+     *  @default false
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public var removeLocalProjectionWhenComplete:Boolean = false;
+
+    /**
+     *  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.

+     *
+     *
This property is only used when applyLocalProjection
+     *  is set to true.

+     *
+     *  @see #applyLocalProjection
+     *  @default true
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public var autoCenterProjection:Boolean = true;
+
+    /**
+     *  @copy flash.geom.PerspectiveProjection#fieldOfView
+     *
+     *
This property is only used when applyLocalProjection
+     *  is set to true.

+     *
+     *  @see #applyLocalProjection
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public var fieldOfView:Number;
+
+    /**
+     *  @copy flash.geom.PerspectiveProjection#focalLength
+     *
+     *
This property is only used when applyLocalProjection
+     *  is set to true.

+     *
+     *  @see #applyLocalProjection
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public var focalLength:Number;
+
+    /**
+     *  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.
+     *
+     *
This property is only used when applyLocalProjection
+     *  is set to true.

+     *
+     *  @see #applyLocalProjection
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public var projectionX:Number = 0;
+
+    /**
+     *  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.
+     *
+     *
This property is only used when applyLocalProjection
+     *  is set to true.

+     *
+     *  @see #applyLocalProjection
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public var projectionY:Number = 0;
+
+    //--------------------------------------------------------------------------
+    //
+    // Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     * @private
+     *
+     * This is where we create the single instance and/or feed extra
+     * MotionPath information (from othe transform-related effects) into the
+     * single transform effect instance.
+     */
+    override protected function initInstance(instance:IEffectInstance):void
+    {
+        super.initInstance(instance);
+
+        var transformInstance:AnimateTransformInstance =
+            AnimateTransformInstance(instance);
+
+        transformInstance.applyLocalProjection = applyLocalProjection;
+        transformInstance.removeLocalProjectionWhenComplete = removeLocalProjectionWhenComplete;
+        transformInstance.autoCenterProjection = autoCenterProjection;
+        transformInstance.fieldOfView = fieldOfView;
+        transformInstance.focalLength = focalLength;
+        transformInstance.projectionX = projectionX;
+        transformInstance.projectionY = projectionY;
+    }
+
+}
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 18905
Author:   smgilson@adobe.com
Date:     2010-12-01T19:46:01.171525Z

Log Message:
-----------
ASDoc updates on formatters

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

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

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

--- frameworks/projects/spark/src/spark/formatters/NumberFormatter.as
+++ frameworks/projects/spark/src/spark/formatters/NumberFormatter.as
@@ -29,28 +29,40 @@
 [ResourceBundle("core")]

 /**
- *  The NumberFormatter class provides locale-sensitive formatting
+ *  The NumberFormatter class provides locale-sensitive formatting
  *  and parsing of numeric values. It can format int,
  *  uint, and Number objects.
  *
  *
This class is a wrapper class around the
- *  flash.globalization.NumberFormatter.
+ *  flash.globalization.NumberFormatter class.
  *  Therefore, the locale-specific formatting
- *  is provided by the flash.globalization.NumberFormatter.
- *  However, this NumberFormatter class can be used in MXML declartions,
+ *  is provided by the flash.globalization.NumberFormatter.
+ *  However, this NumberFormatter class can be used in MXML declarations,
  *  uses the locale style for the requested Locale ID name, and has
  *  methods and properties that are bindable.
- *

- *  The flash.globalization.NumberFormatter class use the
+ *

+ *
+ *
The flash.globalization.NumberFormatter class use the
  *  underlying operating system for the formatting functionality and
  *  to supply the locale-specific data. On some operating systems, the
  *  flash.globalization classes are unsupported, on these systems this wrapper
  *  class provides fallback functionality.

  *
+ *  @mxml
The <s:NumberFormatter> tag inherits all of the tag
+ *  attributes of its superclass and adds the following tag attributes:

+ *
+ *

+ *  <s:NumberFormatter
+ *    Properties
+ *    negativeNumberFormat="locale and OS dependent"
+ *  />
+ *

+ *
  *  @includeExample examples/NumberFormatterExample1.mxml
  *  @includeExample examples/NumberFormatterExample2.mxml
  *
  *  @see flash.globalization.NumberFormatter
+ *
  *  @langversion 3.0
  *  @playerversion Flash 10.1
  *  @playerversion AIR 2.5
@@ -85,26 +97,22 @@
      *

      *  By using the class in an MXML declaration and inheriting the
      *  locale from the document that contains the declaration.
-     *  <listing version="3.0" >
-     *  Example:

+     *  Example:

      *  <fx:Declarations>

      *         <s:NumberFormatter id="nf" />

-     *  </fx:Declarations>
-     *  </listing>
+     *  </fx:Declarations>

      *

      *

      *  By using an MXML declaration and specifying the locale value in
      *  the list of assignments.
-     *  <listing version="3.0" >
-     *  Example:

+     *  Example:

      *  <fx:Declarations>

      *      <s:NumberFormatter id="nf_French_France" locale="fr_FR" />

-     *  </fx:Declarations>
-     *  </listing>
+     *  </fx:Declarations>

      *

      *

-     *  Calling the setStyle method, e.g.
-     *  nf.setStyle("locale", "fr-FR")
+     *  Calling the setStyle method. For example:

+     *  nf.setStyle("locale", "fr-FR")

      *

      *

      *  Inheriting the style from a UIComponent by calling
@@ -247,7 +255,7 @@
      *

      *
      *
-     *  The default value is dependent on the locale and operating system.
+     *
The default value is dependent on the locale and operating system.

      *
      *  @throws ArgumentError if the assigned value is not a number
      *  between 0 and 4.
@@ -342,10 +350,10 @@
      *
      *
This function formats the number based on the property values
      *  of the formatter.
-     *  If the properties are not modified after the locale style is set, the
-     *  numbers are formatted according to the locale-specific conventions
+     *  If the properties are not modified after the locale style is set,
+     *  the numbers are formatted according to the locale-specific conventions
      *  provided by the operating system for the locale identified
-     *  by actualLocaleIDName.
+     *  by the actualLocaleIDName property.
      *  To customize the format, the properties
      *  can be altered to control specific aspects of formatting a number.

      *
@@ -356,14 +364,15 @@
      *  supported.

      *
      *
If there is an error when formatting, due to an illegal input value
-     *  or other error, by default the format() method will
-     *  return null. However if the errorText property
-     *  is non-null, then the value of the errorText property will
-     *  be returned. The lastOperationStatus property will be
+     *  or other error, by default the format() method
+     *  returns null.
+     *  However if the errorText property
+     *  is non-null, then the value of the errorText property
+     *  is returned. The lastOperationStatus property will be
      *  set to indicate the error that occurred.

      *
      *  @param value An object containing a number value to format. If the
-     *  object is not a Number then it will be converted
+     *  object is not a Number then it is converted
      *  to a number using the Number() conversion function.
      *
      *  @return A formatted number string.
@@ -487,7 +496,9 @@
      *
A single white space is allowed between the number and the
      *  minus sign or parenthesis. A white space
      *  character is a character that has a Space Separator (Zs) property
-     *  in the Unicode Character Database (see http://www.unicode.org/ucd/).

+     *  in the Unicode Character Database.
+     *  For more information,
+     *  see http://www.unicode.org/ucd/).

      *
      *
Other properties are ignored when determining a valid number.
      *  Specifically the value of the
@@ -579,6 +590,10 @@
      *

      *
      *  @throws TypeError if the parseString is null
+     *
+     *  @param inputString The input string to parse.
+     *
+     *  @return A Number object containing the numeric value.
      *
      *  @see #parse()
      *  @see flash.globalization.NationalDigitsType


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

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


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

--- frameworks/projects/mx/src/mx/events/ScrollEventDirection.as
+++ frameworks/projects/mx/src/mx/events/ScrollEventDirection.as
@@ -17,6 +17,11 @@
  *  of a ScrollEvent.
  *
  *  @see mx.events.ScrollEvent
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public final class ScrollEventDirection
 {
@@ -30,11 +35,21 @@

 	/**
 	 *  The user scrolled horizontally.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public static const HORIZONTAL:String = "horizontal";

 	/**
 	 *  The user scrolled vertically.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public static const VERTICAL:String = "vertical";
 }


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

--- frameworks/projects/mx/src/mx/styles/metadata/FocusStyles.as
+++ frameworks/projects/mx/src/mx/styles/metadata/FocusStyles.as
@@ -13,6 +13,11 @@
  *  Specifies the alpha transparency value of the focus skin.
  *
  *  @default 0.4
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="focusAlpha", type="Number", inherit="no")]

@@ -27,5 +32,10 @@
  *  the radius of the rounded corners.
  *  The default value depends on the component class; if not overridden for
  *  the class, default value is <code>"tl tr bl br"</code>.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="focusRoundedCorners", type="String", inherit="no")]


Transferred from the Adobe Open Source Subversion Repository

Revision: 8551
Author:   clucier@adobe.com
Date:     2009-07-14T18:31:50.040886Z

Log Message:
-----------
Fix for focusSkin and errorSkin to account for bogus bitmap snapshots when objects are 3D transformed.
Bugs: SDK-17766
Reviewer: Glenn
QE Notes: None
Doc Notes: None

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ErrorSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/FocusSkin.as</path>

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

--- frameworks/projects/spark/src/spark/skins/spark/ErrorSkin.as
+++ frameworks/projects/spark/src/spark/skins/spark/ErrorSkin.as
@@ -19,6 +19,7 @@
 import flash.filters.GlowFilter;
 import flash.geom.ColorTransform;
 import flash.geom.Matrix;
+import flash.geom.Matrix3D;
 import flash.geom.Point;
 import flash.geom.Rectangle;

@@ -158,7 +159,15 @@
         // If the error object has a focus skin, make sure it is hidden.
         if (errorObject.focusObj)
             errorObject.focusObj.visible = false;
-
+
+        // Ensure no 3D transforms apply, as this skews our snapshot bitmap.
+        var transform3D:Matrix3D = null;
+        if (errorObject.transform.matrix3D)
+        {
+            transform3D = errorObject.transform.matrix3D;
+            errorObject.transform.matrix3D = null;
+        }
+
         // Temporary solution for error drawing on CheckBox and RadioButton components.
         // Hide the label before drawing the focus.
         // FIXME (gruehle): Figure out a better solution.
@@ -219,6 +228,10 @@
         // of overlaying the error skin on the border of the component.
         bitmap.width = errorObject.width;
         bitmap.height = errorObject.height;
+
+        // Restore original 3D matrix if applicable.
+        if (transform3D)
+            errorObject.transform.matrix3D = transform3D;
     }

     private static var classDefCache:Object = {};


delete unused variables

delete unused variables

--- bin/Data/Scripts/Editor/EditorScene.as
+++ bin/Data/Scripts/Editor/EditorScene.as
@@ -845,8 +845,6 @@
     }

     Node@ lastChild = lastSelectedNode;
-    Node@ beforeLastChild;
-    float sideSize = 0;
     Vector3 size;
     BoundingBox bb;


Transferred from the Adobe Open Source Subversion Repository

Revision: 6196
Author:   smgilson@adobe.com
Date:     2009-04-22T17:59:05.886447Z

Log Message:
-----------
ASDoc bug fixes for l10n

QE Notes: None
Doc Notes: None
Bugs: - FLEXDOCS-746, FLEXDOCS-748, FLEXDOCS-749
checkintests - passed

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/IFlexContextMenu.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ISystemManager.as</path>

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

--- frameworks/projects/framework/src/mx/controls/IFlexContextMenu.as
+++ frameworks/projects/framework/src/mx/controls/IFlexContextMenu.as
@@ -25,35 +25,35 @@
  */
 public interface IFlexContextMenu
 {
-	import flash.display.InteractiveObject;
+    import flash.display.InteractiveObject;

-	/**
-	 *  Sets the context menu of an InteractiveObject.  This will do
-	 *  all the necessary steps to add ourselves as the context
-	 *  menu for this InteractiveObject, such as adding listeners, etc..
-	 *
-	 *  @param component InteractiveObject to set context menu on
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 9
-	 *  @playerversion AIR 1.1
-	 *  @productversion Flex 3
-	 */
-	function setContextMenu(component:InteractiveObject):void;
-
-	/**
-	 *  Unsets the context menu of a InteractiveObject.  This will do
-	 *  all the necessary steps to remove ourselves as the context
-	 *  menu for this InteractiveObject, such as removing listeners, etc..
-	 *
-	 *  @param component InteractiveObject to unset context menu on
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 9
-	 *  @playerversion AIR 1.1
-	 *  @productversion Flex 3
-	 */
-	function unsetContextMenu(component:InteractiveObject):void;
+    /**
+     *  Sets the context menu of an InteractiveObject.  This will do
+     *  all the necessary steps to add the InteractiveObject as the context
+     *  menu for this InteractiveObject, such as adding listeners, etc..
+     *
+     *  @param component InteractiveObject to set context menu on
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function setContextMenu(component:InteractiveObject):void;
+
+    /**
+     *  Unsets the context menu of a InteractiveObject.  This will do
+     *  all the necessary steps to remove the InteractiveObject as the context
+     *  menu for this InteractiveObject, such as removing listeners, etc..
+     *
+     *  @param component InteractiveObject to unset context menu on
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function unsetContextMenu(component:InteractiveObject):void;

 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 7256
Author:   aharui@adobe.com
Date:     2009-05-23T20:25:20.378550Z

Log Message:
-----------
Fix various Mustella failures due to frame1 cleanup

QE Notes: None
Doc Notes: None
Bugs: SDK-21372, SDK-21373, SDK-21374
Reviewer: Joan tested a cyclone
tests: checkintests mustella/components mustella/MarshallPlan

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/ActiveWindowManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/MarshallPlan.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/EmbeddedFontRegistry.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses/ToolTipManagerMarshalMixin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/EmbeddedFont.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses/FocusManagerMarshalMixin.as</path>

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

--- frameworks/projects/framework/src/mx/core/EmbeddedFontRegistry.as
+++ frameworks/projects/framework/src/mx/core/EmbeddedFontRegistry.as
@@ -163,8 +163,18 @@
 	public static function registerFonts(fonts:Object,
 										 moduleFactory:IFlexModuleFactory):void
 	{
-		var fontRegistry:IEmbeddedFontRegistry = IEmbeddedFontRegistry(
+		var fontRegistry:IEmbeddedFontRegistry;
+        try
+        {
+            fontRegistry = IEmbeddedFontRegistry(
 			Singleton.getInstance("mx.core::IEmbeddedFontRegistry"));
+        }
+        catch (e:Error)
+        {
+            Singleton.registerClass("mx.core::IEmbeddedFontRegistry", EmbeddedFontRegistry);
+            fontRegistry = IEmbeddedFontRegistry(
+			Singleton.getInstance("mx.core::IEmbeddedFontRegistry"));
+        }

 		// Loop thru all the font objects and put them in the registry
 		for (var f:Object in fonts)
@@ -332,6 +342,18 @@
 			font = new EmbeddedFont(fontName, bold, italic);
 			cachedFontsForObjects[object] = font;
 		}
+        else
+        {
+            // replace if not the same
+            if (font.fontName != fontName ||
+                font.bold != bold ||
+                font.italic != italic)
+            {
+			    font = new EmbeddedFont(fontName, bold, italic);
+			    cachedFontsForObjects[object] = font;
+            }
+
+        }

 		var fontDictionary:Dictionary = fonts[createFontKey(font)];
 		if (fontDictionary)


FLEX-18746 Renamed the main test function and increased the timeout a bit.

--- frameworks/projects/mx/tests/mx/controls/Tree_FLEX_18746_Tests.as
+++ frameworks/projects/mx/tests/mx/controls/Tree_FLEX_18746_Tests.as
@@ -46,7 +46,7 @@
         //--------------------------------------------------------------------------

         [Test(async, timeout=1000)]
-        public function test_object_removed_from_stage_via_code_is_not_initialized():void
+        public function test_closing_previously_opened_folder_with_0_children_does_not_throw_fatal():void
         {
             //given
             const dataProvider:ArrayCollection = new ArrayCollection();
@@ -59,7 +59,7 @@
             //then wait a few frames
             noEnterFramesToWait = 2;
             UIImpersonator.testDisplay.addEventListener(Event.ENTER_FRAME, onEnterFrame);
-            Async.handleEvent(this, _finishNotifier, Event.COMPLETE, then_expand_second_folder, 200);
+            Async.handleEvent(this, _finishNotifier, Event.COMPLETE, then_expand_second_folder, 300);
         }


Transferred from the Adobe Open Source Subversion Repository

Revision: 11376
Author:   gruehle@adobe.com
Date:     2009-11-02T19:39:44.080063Z

Log Message:
-----------
Remove external image support from BitmapImage and BitmapFill.

QE notes: none
Doc notes: ASDoc updated. Any other docs that mention loading external images in BitmapImage, BitmapFill, or Border need to be updated.
Bugs: none
Reviewer: Jason
Tests run: checkintests, cyclone
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Border.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/BitmapFill.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/BitmapImage.as</path>

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

--- frameworks/projects/spark/src/spark/components/BorderContainer.as
+++ frameworks/projects/spark/src/spark/components/BorderContainer.as
@@ -18,7 +18,6 @@

 /**
  *  Background image of a container.
- *  This can be an absolute or relative URL or class.
  *  You can have both a backgroundColor and a
  *  backgroundImage set at the same time.
  *  The background image is displayed on top of the background color.


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

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

 package spark.utils
 {


Add a debugging message before making the RTMFP socket.

--- swfcat.as
+++ swfcat.as
@@ -255,6 +255,7 @@
         {
             var rs:RTMFPSocket;

+            puts("Making RTMFP socket.");
             rs = new RTMFPSocket(RTMFP_URL);
             rs.addEventListener(Event.COMPLETE, function (e:Event):void {
                 puts("Got RTMFP id " + rs.id);


XIFF-92: Not so incomplete as this is as far as it goes.

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

--- src/org/igniterealtime/xiff/data/si/FileTransferExtension.as
+++ src/org/igniterealtime/xiff/data/si/FileTransferExtension.as
@@ -30,8 +30,6 @@
 	import org.igniterealtime.xiff.util.DateTimeParser;

 	/**
-	 * INCOMPLETE
-	 *
 	 * XEP-0096: SI File Transfer.
 	 *
 	 *
To be used within XEP-0095: Stream Initiation


Setting textformat on the DefaultListRenderer sets both the default and the new textFormat properties

--- src/org/openPyro/controls/listClasses/DefaultListRenderer.as
+++ src/org/openPyro/controls/listClasses/DefaultListRenderer.as
@@ -82,6 +82,7 @@
 			_labelFormat = format;
 			if(_labelField){
 				_labelField.defaultTextFormat = format;
+				_labelField.setTextFormat(format);
 			}
 		}


Transferred from the Adobe Open Source Subversion Repository

Revision: 12850
Author:   jimurphy@adobe.com
Date:     2009-12-11T14:57:14.623098Z

Log Message:
-----------
add 6 new DMV projects to the SDK:
automation
automation_air
automation_dmv
automation_flashflexkit
automation_spark
datavisualization

These projects are setup to build in an ant main call.  There are currently several warnings in the datavisualization project that will be cleaned up.  No checkintests exist for these projects as of yet.

I also modified the exisitng projects build files for easier management of the localization targets, bundle and fat-swc. If the projects that I updated:airframework,airspark,framework,playerglobal,rpc,and spark.  All the new projects have been implemented this same way.

QE notes: DMV folks should run through their tests
Doc notes: probably
Bugs: nope
Reviewer:
Tests run: ran the following targets: compile,checkintests,other.locales and doc
Is noteworthy for integration: no

Modified Paths:
--------------
1404 paths were modified

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

--- frameworks/projects/automation/src/mx/automation/codec/ScrollDirectionPropertyCodec.as
+++ frameworks/projects/automation/src/mx/automation/codec/ScrollDirectionPropertyCodec.as
@@ -0,0 +1,83 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.automation.codec
+{
+
+	import mx.automation.qtp.IQTPPropertyDescriptor;
+	import mx.automation.IAutomationManager;
+	import mx.automation.IAutomationObject;
+
+	/**
+	 * Translates between internal Flex ScrollEvent direction and automation-friendly version
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public class ScrollDirectionPropertyCodec extends DefaultPropertyCodec
+	{
+		/**
+		 *  Constructor
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public function ScrollDirectionPropertyCodec()
+		{
+			super();
+		}
+
+		/**
+		 *  @private
+		 */
+		override public function encode(automationManager:IAutomationManager,
+										obj:Object,
+										pd:IQTPPropertyDescriptor,
+										relativeParent:IAutomationObject):Object
+		{
+			var val:int = 0;
+
+			if (!("direction" in obj))
+				return val;
+
+			switch (obj["direction"])
+			{
+				case "horizontal" :
+					return 1;
+				case "vertical" :
+					return 2;
+			}
+
+			return val;
+		}
+
+		/**
+		 *  @private
+		 */
+		override public function decode(automationManager:IAutomationManager,
+										obj:Object,
+										value:Object,
+										pd:IQTPPropertyDescriptor,
+										relativeParent:IAutomationObject):void
+		{
+			var directions:Array =
+				[ "horizontal", "vertical" ];
+
+			if ("direction" in obj && value > 0 && value <= directions.length)
+				obj["direction"] = directions[uint(value)-1];
+		}
+	}
+
+}


fix coding style

fix coding style

--- src/aerys/minko/scene/node/Scene.as
+++ src/aerys/minko/scene/node/Scene.as
@@ -39,7 +39,7 @@
 		private var _renderingEnd	: Signal;
 		private var _exitFrame		: Signal;

-		private var _assets				: AssetsLibrary;
+		private var _assets			: AssetsLibrary;

 		public function get assets() : AssetsLibrary
 		{


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

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

 package spark.effects.interpolation
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 21352
Author:   deeptika@adobe.com
Date:     2011-06-08T06:04:22.205178Z

Log Message:
-----------
Creating new transform when series is added to Chart

QE notes:
Doc notes:
Bugs: FLEXDMV-2543 (removeElement/addElement invalidates Chart Series)
Reviewer:
Tests run: Checkintests
Is noteworthy for integration:

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/charts/src/mx/charts/chartClasses/CartesianChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/charts/src/mx/charts/chartClasses/ChartBase.as</path>

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

--- frameworks/projects/charts/src/mx/charts/chartClasses/ChartBase.as
+++ frameworks/projects/charts/src/mx/charts/chartClasses/ChartBase.as
@@ -4329,7 +4329,7 @@
         {
             var c:DisplayObject = parent.removeChildAt(i);
             var g:IChartElement = (c as IChartElement);
-            if (g && !(g is Series))
+            if (g)
                 g.dataTransform = null;
         }
     }


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

--- frameworks/projects/framework/src/mx/core/ResourceModuleRSLItem.as
+++ frameworks/projects/framework/src/mx/core/ResourceModuleRSLItem.as
@@ -75,6 +75,11 @@
      *  @param securityErrorHandler Receives SecurityErrorEvent.SECURITY_ERROR events, may be null
 	 *
      *  @param rslErrorHandler Receives RSLEvent.RSL_ERROR events, may be null
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	override public function load(progressHandler:Function,
                                   completeHandler:Function,


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

--- frameworks/projects/framework/src/mx/graphics/codec/JPEGEncoder.as
+++ frameworks/projects/framework/src/mx/graphics/codec/JPEGEncoder.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: 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@1265385 13f79535-47bb-0310-9956-ffa450edef68

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

 package spark.skins.mobile
 {


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

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

 package mx.controls.videoClasses
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 5573
Author:   jimurphy@adobe.com
Date:     2009-03-26T15:11:59.159776Z

Log Message:
-----------
-more updated package and class names that were missed in the first pass
-remove the mx folder

qa: probably
doc: this updated more asdoc comments so you may want to make sure that this pass made the correct updates
checkintests: pass

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/supportClasses/LayoutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformMove.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/core/IViewport.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VideoDisplay.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/interpolation/HSBInterpolator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/SetActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/core/IGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformScale3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/HGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/easing/IEaser.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Animate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/asdoc/en_US/mx/components/examples/DataGroupExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateShaderTransition.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformScale.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/Slider.as</path>
<path kind="dir" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Spinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/CheckBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/pathSegments/PathSegment.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/RadioButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/HScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/asdoc/en_US/mx/components/examples/FxToggleButtonExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AddActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/events/AnimationEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/SkinnableDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/TextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformRotate3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/WipeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformMove3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/SkinnableComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformRotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/SetAction.as</path>

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

--- frameworks/projects/spark/src/spark/components/RichEditableText.as
+++ frameworks/projects/spark/src/spark/components/RichEditableText.as
@@ -101,7 +101,7 @@
  *  @playerversion AIR 1.5
  *  @productversion Flex 4
  */
-[Event(name="changing", type="mx.events.TextOperationEvent")]
+[Event(name="changing", type="spark.events.TextOperationEvent")]

 /**
  *  Dispatched after a user editing operation is complete.
@@ -113,7 +113,7 @@
  *  @playerversion AIR 1.5
  *  @productversion Flex 4
  */
-[Event(name="change", type="mx.events.TextOperationEvent")]
+[Event(name="change", type="spark.events.TextOperationEvent")]

 /**
  *  Dispatched when the user pressed the Enter key.
@@ -418,7 +418,7 @@
     private var _clipAndEnableScrolling:Boolean = true;

     /**
-     *  @copy mx.layout.LayoutBase#clipAndEnableScrolling
+     *  @copy spark.layout.supportClasses.LayoutBase#clipAndEnableScrolling
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -764,7 +764,7 @@
     //----------------------------------

     /**
-     *  @copy mx.layout.LayoutBase#getHorizontalScrollPositionDelta
+     *  @copy spark.layout.supportClasses.LayoutBase#getHorizontalScrollPositionDelta
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -1092,7 +1092,7 @@
      *
      *  Possible values are ALWAYS, WHEN_FOCUSED, and WHEN_ACTIVE.
      *
-     *  @see mx.components.TextSelectionVisibility
+     *  @see spark.components.TextSelectionVisibility
      *
      *  @default TextSelectionVisibility.WHEN_FOCUSED
      *
@@ -1221,7 +1221,7 @@
     //----------------------------------

     /**
-     *  @copy mx.layout.LayoutBase#getVerticalScrollPositionDelta
+     *  @copy spark.layout.supportClasses.LayoutBase#getVerticalScrollPositionDelta
      *
      *  @langversion 3.0
      *  @playerversion Flash 10


fixed bugs handling recursive calls

fixed bugs handling recursive calls

--- WeaveCore/src/weave/compiler/Compiler.as
+++ WeaveCore/src/weave/compiler/Compiler.as
@@ -2544,36 +2544,19 @@
 				return function(...args):* { return value; };
 			}

-			// create the variables that will be used inside the wrapper function
-
-			const builtInSymbolTable:Object = {};
-			builtInSymbolTable['eval'] = this._eval as Function || undefined;
-			builtInSymbolTable['this'] = bindThis;
+			const EVAL:* = this._eval as Function || undefined;

 			// set up Array of symbol tables in the correct scope order: built-in, local, params, this, global
-			const allSymbolTables:Array = [builtInSymbolTable]; // buit-in first
-			const LOCAL_SYMBOL_TABLE_INDEX:int = allSymbolTables.push(null) - 1; // placeholder
-
-			// add custom symbol table(s)
+			const BUILT_IN_SYMBOL_TABLE_INDEX:int = 0;
+			const LOCAL_SYMBOL_TABLE_INDEX:int = 1;
+			var THIS_SYMBOL_TABLE_INDEX:int = LOCAL_SYMBOL_TABLE_INDEX + 1;
 			if (symbolTable is Array)
 			{
-				for each (var _symbolTable:Object in symbolTable)
-					allSymbolTables.push(_symbolTable);
+				symbolTable = (symbolTable as Array).concat();
+				THIS_SYMBOL_TABLE_INDEX += symbolTable.length;
 			}
 			else
-			{
-				allSymbolTables.push(symbolTable);
-			}
-
-			// push placeholder for 'this' symbol table
-			const THIS_SYMBOL_TABLE_INDEX:int = allSymbolTables.push(null) - 1;
-
-			// add libraries in reverse order so the last one will be checked first
-			var i:int = libraries.length;
-			while (i--)
-				allSymbolTables.push(libraries[i]);
-			// check globals last
-			allSymbolTables.push(globals);
+				THIS_SYMBOL_TABLE_INDEX += 1;

 			// this flag is set to useThisScope when the compiledObject is a function definition
 			var cascadeThisScope:Boolean = false;
@@ -2581,14 +2564,17 @@
 			// Each recursive call must use a clone of the CompiledFunctionCall,
 			// so we keep track of recursion depth and re-use copies of the CompiledFunctionCall.
 			var recursion:int = 0;
-			var recursiveCalls:Array = [compiledObject];
+			var recursiveCalls:Array = [];
+			var recursiveCallSymbolTables:Array = [];

 			// this function avoids unnecessary function call overhead by keeping its own call stack rather than using recursion.
-			var wrapperFunction:Function = function():*
+			var wrapperFunction:Function = function():*
 			{
-				const stack:Array = []; // used as a queue of function calls
-				const localSymbolTable:Object = {};
-				var call:CompiledFunctionCall;
+				const stack:Array = []; // used as a queue of function calls
+				const localSymbolTable:Object = {}; // new local symbol table for each invocation
+				var call:CompiledFunctionCall;
+				var allSymbolTables:Array;
+				var builtInSymbolTable:Object;
 				var subCall:CompiledFunctionCall;
 				var compiledParams:Array;
 				var method:Object;
@@ -2598,10 +2584,54 @@
 				var propertyHost:Object;
 				var propertyName:String;

-				if (bindThis === null)
-					builtInSymbolTable['this'] = this;
+				// initialize top-level function and push it onto the stack
+				call = recursiveCalls[recursion] as CompiledFunctionCall;
+				allSymbolTables = recursiveCallSymbolTables[recursion] as Array;
+
+				// if recursion has not been this deep before, initialize a copy of the top-level function call structures
+				if (!call)
+				{
+					call = compiledObject as CompiledFunctionCall;
+					if (recursion)
+						call = call.clone();
+					allSymbolTables = [];
+
+					recursiveCalls[recursion] = call;
+					recursiveCallSymbolTables[recursion] = allSymbolTables;
+
+					// set up Array of symbol tables in the correct scope order: built-in, local, params, this, global
+					allSymbolTables[BUILT_IN_SYMBOL_TABLE_INDEX] = {};
+					allSymbolTables[LOCAL_SYMBOL_TABLE_INDEX] = null; // placeholder
+
+					// add custom symbol table(s)
+					if (symbolTable is Array)
+					{
+						for each (var _symbolTable:Object in symbolTable)
+							allSymbolTables.push(_symbolTable);
+					}
+					else
+					{
+						allSymbolTables.push(symbolTable);
+					}
+
+					allSymbolTables[THIS_SYMBOL_TABLE_INDEX] = null; // placeholder
+
+					// add libraries in reverse order so the last one will be checked first
+					i = libraries.length;
+					while (i--)
+						allSymbolTables.push(libraries[i]);
+					// check globals last
+					allSymbolTables.push(globals);
+				}
+				recursion++;
+
+				// initialize built-in symbol table
+				builtInSymbolTable = allSymbolTables[BUILT_IN_SYMBOL_TABLE_INDEX];
+				builtInSymbolTable['eval'] = EVAL;
+				builtInSymbolTable['this'] = bindThis !== null ? bindThis : this;
 				builtInSymbolTable['arguments'] = arguments;

+				// initialize local symbol table
 				allSymbolTables[LOCAL_SYMBOL_TABLE_INDEX] = localSymbolTable;
 				if (useThisScope)
 					allSymbolTables[THIS_SYMBOL_TABLE_INDEX] = builtInSymbolTable['this'];
@@ -2610,12 +2640,6 @@
 				if (paramNames)
 					for (i = 0; i < paramNames.length; i++)
 						localSymbolTable[paramNames[i] as String] = i < arguments.length ? arguments[i] : paramDefaults[i];
-
-				// initialize top-level function and push it onto the stack
-				call = recursiveCalls[recursion] as CompiledFunctionCall;
-				if (!call)
-					recursiveCalls[recursion] = call = (compiledObject as CompiledFunctionCall).clone();
-				recursion++;

 				call.evalIndex = INDEX_METHOD;
 				stack.length = 1;
@@ -2895,7 +2919,10 @@
 							throw e;

 						if (errorHandler(e))
+						{
 							result = undefined; // ignore and continue
+							recursion++;
+						}
 						else
 							return undefined; // halt
 					}


now removing local files not appearing in loaded archive

--- WeaveJS/src/weavejs/core/WeaveArchive.as
+++ WeaveJS/src/weavejs/core/WeaveArchive.as
@@ -148,10 +148,14 @@
 			if (columnCache)
 				(WeaveAPI.AttributeColumnCache as AttributeColumnCache).restoreCache(weave.root, columnCache);

-			//TODO - update existing local files, remove old local files not present in new archive
+			var fileName:String;
+			for (fileName in archive.files)
+				WeaveAPI.URLRequestUtils.saveLocalFile(weave.root, fileName, archive.files[fileName]);

-			for (var fileName:String in archive.files)
-				WeaveAPI.URLRequestUtils.saveLocalFile(weave.root, fileName, archive.files[fileName]);
+			// remove files not appearing in archive
+			for each (fileName in WeaveAPI.URLRequestUtils.getLocalFileNames(weave.root))
+				if (!archive.files[fileName])
+					WeaveAPI.URLRequestUtils.removeLocalFile(weave.root, fileName);
 		}

 		/**


added workaround for compiler error

added workaround for compiler error

--- WeaveJS/src/weavejs/utils/StandardLib.as
+++ WeaveJS/src/weavejs/utils/StandardLib.as
@@ -269,6 +269,7 @@
 				case "\r":
 				case "\n":
 				case "\f":
+				/*
 					// non breaking space
 				case "\u00A0":
 					// line seperator
@@ -278,7 +279,7 @@
 					// ideographic space
 				case "\u3000":
 					return true;
-
+				*/
 				default:
 					return false;
 			}


default wms is now OSM

default wms is now OSM

--- WeaveUISpark/src/weave/visualization/plotters/WMSPlotter.as
+++ WeaveUISpark/src/weave/visualization/plotters/WMSPlotter.as
@@ -86,7 +86,7 @@
 			_textField.alpha = 0.2;

 			//setting default WMS Map to Blue Marble
-			setProvider(WMSProviders.BLUE_MARBLE_MAP);
+			setProvider(WMSProviders.OPEN_STREET_MAP);
 		}

 		// the service and its parameters


Transferred from the Adobe Open Source Subversion Repository

Revision: 18987
Author:   rfrishbe@adobe.com
Date:     2010-12-03T01:08:34.503999Z

Log Message:
-----------
PARB changes for sizeElement/positionElement.  MobileSkin and MobileItemRenderer's methods have been renamed: resizeElement() -> setElementSize(), positionElement() -> setElementPosition().

Also, cleaning up text reflow for TextAreaSkin

QE notes:
Doc notes:
Bugs:
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/mobiletheme/src/spark/skins/mobile/supportClasses/ButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/MobileSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/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/VScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/TextSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/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/mobilecomponents/src/spark/components/supportClasses/StyleableTextField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderTrackSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ActionBarButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/SelectableButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderThumbSkin.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@1263910 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/mobilecomponents/src/spark/components/IconItemRenderer.as
+++ frameworks/projects/mobilecomponents/src/spark/components/IconItemRenderer.as
@@ -75,6 +75,8 @@
  *  @productversion Flex 4.5
  */
 [Style(name="messageStyleName", type="String", inherit="no")]
+
+// FIXME (rfrishbe): add verticalGap

 /**
  *  The MobileIconItemRenderer class is a performant item
@@ -1759,7 +1761,7 @@
         if (iconDisplay)
         {
             // set the icon's position and size
-            resizeElement(iconDisplay, this.iconWidth, this.iconHeight);
+            setElementSize(iconDisplay, this.iconWidth, this.iconHeight);

             iconWidth = iconDisplay.getLayoutBoundsWidth();
             iconHeight = iconDisplay.getLayoutBoundsHeight();
@@ -1772,7 +1774,7 @@
             else
                 iconDisplayY = paddingTop;

-            positionElement(iconDisplay, paddingLeft, iconDisplayY);
+            setElementPosition(iconDisplay, paddingLeft, iconDisplayY);
         }

         // decorator is aligned next to icon
@@ -1781,11 +1783,11 @@
             decoratorWidth = getElementPreferredWidth(decoratorDisplay);
             decoratorHeight = getElementPreferredHeight(decoratorDisplay);

-            resizeElement(decoratorDisplay, decoratorWidth, decoratorHeight);
+            setElementSize(decoratorDisplay, decoratorWidth, decoratorHeight);

             // decorator is always right aligned, vertically centered
             var decoratorY:Number = Math.round(0.5 * (viewHeight - decoratorHeight)) + paddingTop;
-            positionElement(decoratorDisplay, unscaledWidth - paddingRight - decoratorWidth, decoratorY);
+            setElementPosition(decoratorDisplay, unscaledWidth - paddingRight - decoratorWidth, decoratorY);
         }

         // Figure out how much space we have for label and message as well as the
@@ -1845,7 +1847,7 @@
             // and make sure verticalAlign is operating on a correct value.
             labelWidth = Math.max(labelComponentsViewWidth, 0);
             labelHeight = Math.max(Math.min(viewHeight, labelTextHeight), 0);
-            resizeElement(labelDisplay, labelWidth, labelHeight);
+            setElementSize(labelDisplay, labelWidth, labelHeight);

             // attempt to truncate text
             labelDisplay.truncateToFit();
@@ -1857,7 +1859,7 @@
             messageWidth = Math.max(labelComponentsViewWidth, 0);
             messageHeight = Math.max(viewHeight - labelHeight - verticalGap, 0);

-            resizeElement(messageDisplay, messageWidth, messageHeight);
+            setElementSize(messageDisplay, messageWidth, messageHeight);
             messageHeight = Math.max(0, Math.min(messageHeight, getElementPreferredHeight(messageDisplay)));

             // since it's multi-line, no need to truncate
@@ -1873,10 +1875,10 @@
             var labelComponentsY:Number = Math.round(vAlign * (viewHeight - totalHeight)) + paddingTop;

             if (labelDisplay)
-                positionElement(labelDisplay, labelComponentsX, labelComponentsY);
+                setElementPosition(labelDisplay, labelComponentsX, labelComponentsY);

             if (messageDisplay)
-                positionElement(messageDisplay, labelComponentsX, labelComponentsY + labelHeight + verticalGap);
+                setElementPosition(messageDisplay, labelComponentsX, labelComponentsY + labelHeight + verticalGap);
         }

         // see if we have an icon that needs to be validated


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 16775
Author:   aharui@adobe.com
Date:     2010-07-01T17:17:55.448575Z

Log Message:
-----------
check for null stage

QE notes: none
Doc notes: none
Bugs: SDK-26273
Reviewer: Corey
Tests run: checkintests mustella/Managers/focusManager
Is noteworthy for integration: no

Modified Paths:
--------------
/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/FocusManager.as

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

--- frameworks/projects/framework/src/mx/managers/FocusManager.as
+++ frameworks/projects/framework/src/mx/managers/FocusManager.as
@@ -1754,7 +1754,7 @@
         // trace("FocusManager focusInHandler in  = " + this._form.systemManager.loaderInfo.url);
         // trace("FM " + this + " focusInHandler " + target);

-        if (lastFocus && !isEnabledAndVisible(DisplayObject(lastFocus)))
+        if (lastFocus && !isEnabledAndVisible(DisplayObject(lastFocus)) && DisplayObject(form).stage)
         {
             DisplayObject(form).stage.focus = null;
             lastFocus = null;


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

 package mx.rpc.remoting.mxml
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 19756
Author:   egeorgie@adobe.com
Date:     2011-01-14T00:01:45.415663Z

Log Message:
-----------
Fix for http://bugs.adobe.com/jira/browse/SDK-27573 Application backgroundColor shows thru on orientation change

In this change:
- force app validation on stage resize when Capabilities.version != lnx, win or mac

QE notes:
Doc notes:
Bugs: SDK-27573
Reviewer: Glenn
Tests run: checkin tests
Is noteworthy for integration: No

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

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

--- frameworks/projects/spark/src/spark/components/Application.as
+++ frameworks/projects/spark/src/spark/components/Application.as
@@ -1397,10 +1397,13 @@
     private function initResizeBehavior():void
     {
         var version:Array = Capabilities.version.split(' ')[1].split(',');
-
+        var versionPrefix:String = Capabilities.version.substr(0, 3).toLowerCase();
+        var runningOnMobile:Boolean = (versionPrefix != "win" &&
+                                       versionPrefix != "mac" &&
+                                       versionPrefix != "lnx");
+
         synchronousResize = (parseFloat(version[0]) > 10 ||
-            (parseFloat(version[0]) == 10 && parseFloat(version[1]) >= 1))
-            && (Capabilities.playerType != "Desktop");
+                             (parseFloat(version[0]) == 10 && parseFloat(version[1]) >= 1)) && (Capabilities.playerType != "Desktop" || runningOnMobile);
     }

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 4475
Author:   dloverin@adobe.com
Date:     2009-01-09T18:47:20.916770Z

Log Message:
-----------
Add colorCorrection property to FxApplication.
Since the colorCorrection property on FxApplication is just a proxy for the Flash Player's Stage.colorCorrection property, the compiler generates code that waits until after the application has been added to the stage to set the property.

QE Notes: None
Doc Notes: None
Bugs: SDK-17869
Reviewer: Alex, Paul
tests: checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/gen/ClassDef.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/MxmlDocument.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/gen/ClassDefLib.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationGenerator.java</path>

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

--- frameworks/projects/spark/src/spark/components/Application.as
+++ frameworks/projects/spark/src/spark/components/Application.as
@@ -224,6 +224,50 @@
         dispatchEvent(new Event("backgroundColorUpdated"));
     }

+    //----------------------------------
+    //  colorCorrection
+    //----------------------------------
+
+    [Inspectable(enumeration="default,off,on", defaultValue="default" )]
+
+   /**
+    *  The value of the stage's colorCorrection property. If this application
+    *  does not have access to the stage's colorCorrection property,
+    *  the value of the colorCorrection property will be reported as
+    *  null. Also, only the main application is allowed to set the colorCorrection
+    *  property.
+    *
+    *  @default ColorCorrection.DEFAULT
+    */
+    public function get colorCorrection():String
+    {
+        try
+        {
+            var sm:ISystemManager = systemManager;
+            if (sm && sm.stage)
+                return sm.stage.colorCorrection;
+        }
+        catch (e:SecurityError)
+        {
+            // ignore error if this application is not allow
+            // to view the colorCorrection property.
+        }
+
+        return null;
+    }
+
+    /**
+     * @private
+     */
+    public function set colorCorrection(value:String):void
+    {
+        // Since only the main application is allowed to change the value this property, there
+        // is no need to catch security violations like in the getter.
+        var sm:ISystemManager = systemManager;
+        if (sm && sm.stage && sm.isTopLevelRoot())
+            sm.stage.colorCorrection = value;
+    }
+
     //--------------------------------------------------------------------------
     //
     //  Compile-time pseudo-properties


Transferred from the Adobe Open Source Subversion Repository

Revision: 15522
Author:   jszeto@adobe.com
Date:     2010-04-16T22:08:12.278608Z

Log Message:
-----------
ComboBox, DropDownList and PopUpAnchor bug fixes

http://bugs.adobe.com/jira/browse/SDK-25764 - ComboBox will not display first item in dataProvider when dropdown is open

The first item of the dataProvider was the object "Zero". This returns false in an equality check, so I changed the check to compare to undefiend

http://bugs.adobe.com/jira/browse/SDK-25765 - ComboBox does not commit item when closed if Enter key is pressed

Pressing Enter was actually clearing the selection. Fixed ComboBox.applySelection to only commit if the proposed selection is a custom string or if the dropdown is open

http://bugs.adobe.com/jira/browse/SDK-25432 - Spark DropDownList throws RTE when trying to change data provider and open dropdown and use mouse wheel

Added null check

http://bugs.adobe.com/jira/browse/SDK-25132 - Odd rendering of pop up when using PopUpAnchor w/ popUpPosition == center

Rounded off the x/y position of the popUp

QE notes: Add test for PopUpAnchor centered where popup dimensions are odd numbers
Doc notes: none
Bugs: SDK-25764, SDK-25765, SDK-25432, SDK-25132
Reviewer: Kevin
Tests run: checkintests, ComboBox, DropDownList, PopUpAnchor
Is noteworthy for integration: no

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

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

--- frameworks/projects/spark/src/spark/components/PopUpAnchor.as
+++ frameworks/projects/spark/src/spark/components/PopUpAnchor.as
@@ -613,8 +613,8 @@
             return;

         // Position the popUp.
-        m.tx = popUpPoint.x;
-        m.ty = popUpPoint.y;
+        m.tx = Math.round(popUpPoint.x);
+        m.ty = Math.round(popUpPoint.y);
         if (popUp is UIComponent)
             UIComponent(popUp).setLayoutMatrix(m,false);
         else if (popUp is DisplayObject)


Transferred from the Adobe Open Source Subversion Repository

Revision: 13095
Author:   rfrishbe@adobe.com
Date:     2009-12-18T01:38:44.413519Z

Log Message:
-----------
Fixing up fullScreen logic in VideoPlayer to restore the size and position after returning from fullScreen.  Should refer to explicitWidth and explicitHeight instead of explicitWidth twice.  This was a copy and paste error that I didn't clean up correctly.

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

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

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

--- frameworks/projects/spark/src/spark/components/VideoPlayer.as
+++ frameworks/projects/spark/src/spark/components/VideoPlayer.as
@@ -2184,7 +2184,7 @@
                 x: this.x,
                 y: this.y,
                 explicitWidth: this.explicitWidth,
-                explicitWidth: this.explicitWidth};
+                explicitHeight: this.explicitHeight};

             pauseWhenHidden = false;


Transferred from the Adobe Open Source Subversion Repository

Revision: 8483
Author:   smgilson@adobe.com
Date:     2009-07-09T17:52:48.367800Z

Log Message:
-----------
Second checkin to update the namespace in ASDoc MXML syntax descriptions for Spark components

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/easing/EaseInOutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Fade.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/animation/MotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/ColorMatrixFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/easing/Power.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/BlurFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/DisplacementMapFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/ShaderFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/DropShadowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/CallAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GradientBevelFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateColor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Scale3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Animate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransitionShader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Rotate3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AddAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Scale.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/Graphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Move3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Rotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/BasicLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Resize.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransform3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Wipe.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/easing/Sine.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Move.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GlowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/TileLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/ConvolutionFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/easing/Linear.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/animation/Keyframe.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GradientGlowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/SetAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/RemoveAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/BevelFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GradientFilter.as</path>

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

--- frameworks/projects/spark/src/spark/filters/GradientFilter.as
+++ frameworks/projects/spark/src/spark/filters/GradientFilter.as
@@ -24,7 +24,7 @@
  *  attributes of its superclass and adds the following tag attributes:

  *
  *

- *  <GradientFilter
+ *  <s:GradientFilter
  *    Properties
  *    angle="45"
  *    disatance="4.0"