Transferred from the Adobe Open Source Subversion Repository

Revision: 12744
Author:   smgilson@adobe.com
Date:     2009-12-09T20:33:46.610069Z

Log Message:
-----------
asdoc prep for L10N

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/airframework/src/mx/core/FlexHTMLLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/DesignLayer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ILayoutElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>

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

--- frameworks/projects/framework/src/mx/core/DesignLayer.as
+++ frameworks/projects/framework/src/mx/core/DesignLayer.as
@@ -196,8 +196,9 @@
         //----------------------------------

         /**
-         *  Returns the effective visibility of this design layer (which considers
-         *  the visibility of this layer as well as any ancestor layers).
+         *  Returns the effective visibility of this design layer.
+         *  This value takes into consideration the  visibility of
+         *  this layer and any ancestor layers.
          *
          *  @default true
          *
@@ -252,7 +253,7 @@
         private var _alpha:Number = 1.0;

         /**
-         *  The alpha for this design layer instance.
+         *  The alpha for this design layer instance, between 0.0 and 1.0.
          *
          *
When updated, the appropriate change event for effectiveAlpha
          *  will be dispatched to all layerPropertyChange listeners
@@ -288,9 +289,10 @@
         //----------------------------------

         /**
-         *  Property that returns the effective alpha of this design layer
-         *  (which considers the alpha of this layer multiplied with the alpha of
-         *  any ancestor layers).
+         *  Property that returns the effective alpha, between 0.0 and 1.0,
+         *  of this design layer.
+         *  This value multiplies the alpha of this layer by the alpha of
+         *  any ancestor layers.
          *
          *  @default 1.0
          *


Transferred from the Adobe Open Source Subversion Repository

Revision: 937
Author:   clucier@adobe.com
Date:     2008-03-26T19:50:13.757467Z

Log Message:
-----------
Adding support for multiple class names in styleName property.

Bugs: SDK-14599, SDK-14385
Docs: Need to ensure the String flavor of styleName is documented as supporting space delimited list of class names.  Also need to document that order of precedence when multiple class names are specified is the order as listed in value of styleName property, not the order of original  declaration of classes within the stylesheet (differs from CSS 2.1 in that way).
QA: Yes
Reviewer: Glenn Ruehle

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as</path>

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

--- frameworks/projects/framework/src/mx/core/UIComponent.as
+++ frameworks/projects/framework/src/mx/core/UIComponent.as
@@ -4430,9 +4430,9 @@
      *  The class style used by this component. This can be a String, CSSStyleDeclaration
      *  or an IStyleClient.
      *
-     *
If this is a String, it is the name of a class declaration
-     *  in an mx:Style tag or CSS file. You do not include the period in
-     *  the styleName. For example, if you have a class style named ".bigText",
+     *
If this is a String, it is the name of one or more whitespace delimited class
+     *  declarations in an mx:Style tag or CSS file. You do not include the period
+     *  in the styleName. For example, if you have a class style named ".bigText",
      *  set the styleName property to "bigText" (no period).

      *
      *
If this is an IStyleClient (typically a UIComponent), all styles in the
@@ -7286,16 +7286,14 @@
     //  Note that initProtoChain is 99% copied into DataGridItemRenderer
     mx_internal function initProtoChain():void
     {
-        //trace("initProtoChain", name);
-
-        var classSelector:CSSStyleDeclaration;
+        var classSelectors:Array = [];

         if (styleName)
         {
             if (styleName is CSSStyleDeclaration)
             {
                 // Get the style sheet referenced by the styleName property
-                classSelector = CSSStyleDeclaration(styleName);
+                classSelectors.push(CSSStyleDeclaration(styleName));
             }
             else if (styleName is IFlexDisplayObject || styleName is IStyleClient)
             {
@@ -7306,9 +7304,15 @@
             }
             else if (styleName is String)
             {
-                // Get the style sheet referenced by the styleName property
-                classSelector =
-                    StyleManager.getStyleDeclaration("." + styleName);
+                // Get the style sheets referenced by the styleName property
+                var styleNames:Array = styleName.split(/\s+/);
+                for (var c:int=0; c < styleNames.length; c++)
+                {
+                    if (styleNames[c].length) {
+                        classSelectors.push(StyleManager.getStyleDeclaration("." +
+                            styleNames[c]));
+                    }
+                }
             }
         }

@@ -7318,10 +7322,10 @@
         //  - for non-inheriting styles, the global style sheet
         //  - for inheriting styles, my parent's style object
         var nonInheritChain:Object = StyleManager.stylesRoot;
-
+
         if (nonInheritChain && nonInheritChain.effects)
             registerEffects(nonInheritChain.effects);
-
+
         var p:IStyleClient = parent as IStyleClient;
         if (p)
         {
@@ -7336,7 +7340,8 @@
             // set on Application.
             if (isPopUp)
             {
-                if (FlexVersion.compatibilityVersion >= FlexVersion.VERSION_3_0 && _owner && _owner is IStyleClient)
+                if (FlexVersion.compatibilityVersion >= FlexVersion.VERSION_3_0 &&
+                        _owner && _owner is IStyleClient)
                     inheritChain = IStyleClient(_owner).inheritingStyles;
                 else
                     inheritChain = ApplicationGlobals.application.inheritingStyles;
@@ -7357,20 +7362,21 @@

             nonInheritChain =
                 typeSelector.addStyleToProtoChain(nonInheritChain, this);
-
+
             if (typeSelector.effects)
                 registerEffects(typeSelector.effects);
         }

-        // Next is the class selector
-        if (classSelector)
-        {
+        // Next are the class selectors
+        for (i = 0; i < classSelectors.length; i++)
+        {
+            var classSelector:CSSStyleDeclaration = classSelectors[i];
             inheritChain =
                 classSelector.addStyleToProtoChain(inheritChain, this);

             nonInheritChain =
                 classSelector.addStyleToProtoChain(nonInheritChain, this);
-
+
             if (classSelector.effects)
                 registerEffects(classSelector.effects);
         }


Transferred from the Adobe Open Source Subversion Repository

Revision: 11319
Author:   aharui@adobe.com
Date:     2009-10-30T18:42:01.565515Z

Log Message:
-----------
Allow for resizing of sub-apps after they initialize

QE Notes: Two Mustella Tests need updating:
MP_Controls_Tests2:MP_ComboBox_closeOnMouseDown_untrusted
MP_Controls_Tests2:MP_ComboBox_closeOnMouseDownOutside_untrusted
The new sub-app resize closes the dropdown.  Probably have to wait a bit longer before opening the dropdown
Doc Notes: New API in ISystemManager
Bugs: SDK-23892
Reviewer: Darrell
API Change: yes
Is noteworthy for integration: No
tests: checkintests mustella/MarshallPlan

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/MarshallingSupport.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ISystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>

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

--- frameworks/projects/framework/src/mx/core/UIComponent.as
+++ frameworks/projects/framework/src/mx/core/UIComponent.as
@@ -7147,7 +7147,12 @@

         var p:IInvalidating = parent as IInvalidating;
         if (!p)
+        {
+            if (parent is ISystemManager)
+                ISystemManager(parent).invalidateParentSizeAndDisplayList();
+
             return;
+        }

         p.invalidateSize();
         p.invalidateDisplayList();


Transferred from the Adobe Open Source Subversion Repository

Revision: 8
Author:   open-source-svn-admin@adobe.com
Date:     2007-12-15T01:49:31.087529Z

Log Message:
-----------
The beginning of the open-source Flex SDK.

Populated the flex/sdk/trunk directory with an open-source subset of files from //depot/flex/sdk/...@191097 in the Faramir Perforce server. This changelist is a bit past the 3.0rc0 build.

The Ant scripts will not successfully build yet. They need to be adapted to the open-source subset.

Modified Paths:
--------------
2532 paths were modified

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

--- frameworks/projects/framework/src/mx/effects/Dissolve.as
+++ frameworks/projects/framework/src/mx/effects/Dissolve.as
@@ -0,0 +1,223 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2004-2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.effects
+{
+
+import mx.effects.effectClasses.DissolveInstance;
+import mx.graphics.RoundedRectangle;
+import mx.styles.StyleManager;
+
+/**
+ *  Animate the component from transparent to opaque,
+ *  or from opaque to transparent.
+ *  When the Dissolve effect is played, it does the following:
+ *
+ *

+ *
When the effect begins, it creates an opaque rectangle.
+ *    The rectangle floats above the target component,
+ *    its color matches the Dissolve.color property,
+ *    and its alpha property is initially set to
+ *    (1.0 - Dissolve.alphaFrom).

+ *
As the effect plays, the alpha property
+ *    of the rectangle animates from (1.0 - alphaFrom)
+ *    to (1.0 - alphaTo).
+ *    As the rectangle becomes more and more opaque,
+ *    the content underneath it gradually disappears.

+ *
When the effect finishes, the rectangle is destroyed.

+ *

+ *
+ *
When the target object is a Container, the Dissolve effect
+ *  applies to the content area inside the container.
+ *  The content area is the region where the container's
+ *  background color is visible.

+ *
+ *
Note: To use the Dissolve effect with the
+ *  creationCompleteEffect trigger of a DataGrid control,
+ *  you must define the data provider of the control inline
+ *  using a child tag of the DataGrid control, or using data binding.
+ *  This issue is a result of the data provider not being set until the
+ *  creationComplete event is dispatched.
+ *  Therefore, when the effect starts playing, Flex has not completed
+ *  the sizing of the DataGrid control.

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

+ *
+ *

+ *  <mx:Dissolve
+ *    id="ID"
+ *    alphaFrom="val"
+ *    alphaTo="val"
+ *    color="val"
+ *  />
+ *

+ *
+ *  @see mx.effects.effectClasses.DissolveInstance
+ *  @see mx.effects.Tween
+ *  @see mx.effects.TweenEffect
+ *
+ *  @includeExample examples/DissolveEffectExample.mxml
+ */
+public class Dissolve extends TweenEffect
+{
+    include "../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Class constants
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	private static var AFFECTED_PROPERTIES:Array = [ "visible" ];
+
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Constructor.
+	 *
+	 *  @param target The Object to animate with this effect.
+	 */
+	public function Dissolve(target:Object = null)
+	{
+		super(target);
+
+		instanceClass = DissolveInstance;
+		relevantProperties = [ "visible", "alpha" ];
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------
+
+	//----------------------------------
+	//  alphaFrom
+	//----------------------------------
+
+	[Inspectable(category="General", defaultValue="NaN")]
+
+	/**
+	 *  Initial transparency level between 0.0 and 1.0,
+	 *  where 0.0 means transparent and 1.0 means fully opaque.
+	 *
+	 *
If the effect causes the target component to disappear, the default
+	 *  value is the current value of the target's alpha property.
+	 *  If the effect causes the target component to appear, the default
+	 *  value is 0.0.

+	 */
+	public var alphaFrom:Number;
+
+	//----------------------------------
+	//  alphaTo
+	//----------------------------------
+
+	[Inspectable(category="General", defaultValue="NaN")]
+
+	/**
+	 *  Final transparency level between 0.0 and 1.0,
+	 *  where 0.0 means transparent and 1.0 means fully opaque.
+	 *
+	 *
If the effect causes the target component to disappear, the default
+	 *  value is 0.0.
+	 *  If the effect causes the target component to appear, the default
+	 *  value is the current value of the target's alpha property.

+	 */
+	public var alphaTo:Number;
+
+	//----------------------------------
+	//  color
+	//----------------------------------
+
+	[Inspectable(category="General", format="Color", defaultValue="0xFFFFFFFF")]
+
+	/**
+	 *  Hex value that represents the color of the floating rectangle
+	 *  that the effect displays over the target object.
+	 *
+	 *  The default value is the color specified by the target component's
+	 *  backgroundColor style property, or 0xFFFFFF, if
+	 *  backgroundColor is not set.
+	 */
+	public var color:uint = StyleManager.NOT_A_COLOR;
+
+	//----------------------------------
+	//  persistAfterEnd
+	//----------------------------------
+
+	[Inspectable(category="General", format="Boolean", defaultValue="false")]
+
+	/**
+	 *  Flag indicating whether the floating rectangle is removed automatically
+	 *  when the effect finishes. If false, it is removed.
+	 *
+	 *  @default true
+	 */
+	mx_internal var persistAfterEnd:Boolean = false;
+
+	//----------------------------------
+	//  targetArea
+	//----------------------------------
+
+	/**
+	 *  The area of the target to play the effect upon.
+	 *  The dissolve overlay is drawn using this property's dimensions.
+	 *  UIComponents create an overlay over the entire component.
+	 *  Containers create an overlay over their content area,
+	 *  but not their chrome.
+	 *
+	 *  @default null
+	 */
+	public var targetArea:RoundedRectangle;
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden methods
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	override public function getAffectedProperties():Array /* of String */
+	{
+		return AFFECTED_PROPERTIES;
+	}
+
+	/**
+	 *  @private
+	 */
+	override protected function initInstance(instance:IEffectInstance):void
+	{
+		super.initInstance(instance);
+
+		var dissolveInstance:DissolveInstance = DissolveInstance(instance);
+
+		dissolveInstance.alphaFrom = alphaFrom;
+		dissolveInstance.alphaTo = alphaTo;
+		dissolveInstance.color = color;
+		dissolveInstance.mx_internal::persistAfterEnd = mx_internal::persistAfterEnd;
+		dissolveInstance.targetArea = targetArea;
+	}
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 20455
Author:   egeorgie@adobe.com
Date:     2011-02-24T18:39:34.625731Z

Log Message:
-----------
Fix for http://bugs.adobe.com/jira/browse/SDK-29635 When a child swf is loaded with loadForCompatibility=true, the Spark Slider pop up and DropDownList drop down are not positioned correctly.

In this change:
- update HSlider and VSlider to correctly convert the tooltip position form sandboxRoot to systemManager coordinates (the tip is in system manager coordinates).
- DropDown/ComboBox and other pop-up related code now calcualtes the concatenatedMatrix up to the sandboxRoot instead of the root sprite (the root sprite is the systemManager in a sub-app but the actual pop-up parent is the sandboxRoot).

QE notes: Verify grid item renderers' tooltips in sub-app/marshall plan/mobile density scaling scenarios; A general pass over drop-down and combo box in sub-app/marshall plan/mobile density scaling scenarios.
Doc notes:
Bugs: SDK-29635
Reviewer: Alex
Tests run: mustella full cyclone
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/utils/BitmapUtil.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/VSlider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/HSlider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/utils/MatrixUtil.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/PopUpAnchor.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/DragManagerImpl.as</path>

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

--- frameworks/projects/framework/src/mx/utils/MatrixUtil.as
+++ frameworks/projects/framework/src/mx/utils/MatrixUtil.as
@@ -1606,7 +1606,10 @@
      *
      *  @param displayObject Calculate the concatenatedMatrix for this displayObject
      *
-     *  @param excludingRootSprite Whether to exclude the root's transformation in the calculations.
+     *  @param topParent
When specified, the matrix is computed up to the topParent,
+     *  excluding topParent's concatenated matrix.  This is useful when computing a transform
+     *  in order to move an object to a different parent but the object's transform needs
+     *  to be adjusted in order to keep its original position on screen.

      *
      *  @return The concatenatedMatrix for the displayObject
      *
@@ -1615,9 +1618,9 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    public static function getConcatenatedMatrix(displayObject:DisplayObject, excludingRootSprite:Boolean):Matrix
+    public static function getConcatenatedMatrix(displayObject:DisplayObject, topParent:DisplayObject):Matrix
     {
-        return getConcatenatedMatrixHelper(displayObject, false, excludingRootSprite);
+        return getConcatenatedMatrixHelper(displayObject, false, topParent);
     }

     /**
@@ -1630,7 +1633,10 @@
      *
      *  @param displayObject Calculate the concatenatedMatrix for this displayObject
      *
-     *  @param excludingRootSprite Whether to exclude the root's transformation in the calculations.
+     *  @param topParent
When specified, the matrix is computed up to the topParent,
+     *  excluding topParent's concatenated matrix.  This is useful when computing a transform
+     *  in order to move an object to a different parent but the object's transform needs
+     *  to be adjusted in order to keep its original position on screen.

      *
      *  @return The concatenatedMatrix for the displayObject
      *
@@ -1639,15 +1645,15 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    public static function getConcatenatedComputedMatrix(displayObject:DisplayObject, excludingRootSprite:Boolean):Matrix
+    public static function getConcatenatedComputedMatrix(displayObject:DisplayObject, topParent:DisplayObject):Matrix
     {
-        return getConcatenatedMatrixHelper(displayObject, true, excludingRootSprite);
+        return getConcatenatedMatrixHelper(displayObject, true, topParent);
     }

     /**
      *  @private
      */
-    private static function getConcatenatedMatrixHelper(displayObject:DisplayObject, useComputedMatrix:Boolean, excludingRootSprite:Boolean):Matrix
+    private static function getConcatenatedMatrixHelper(displayObject:DisplayObject, useComputedMatrix:Boolean, topParent:DisplayObject):Matrix
     {
         var m:Matrix = new Matrix();

@@ -1668,10 +1674,9 @@

         // Note, root will be "null" if the displayObject is off the display list. In particular,
         // during start-up, before applicationComplete is dispatched, root will be null.
-        // Note that getConcatenatedMatrixHelper() with excludeRootSprite == true will still work
+        // Note that getConcatenatedMatrixHelper() with topParent == sandboxRoot will still work
         // correctly in those cases as we use ".$parent" to walk up the parent chain and during start-up
         // $parent will be null for the application before applicationComplete has been dispatched.
-        var root:DisplayObject = displayObject.root;

         if (fakeDollarParent == null)
             fakeDollarParent = new QName(mx_internal, "$parent");
@@ -1682,7 +1687,7 @@
         if ($transformProperty == null)
             $transformProperty = new QName(mx_internal, "$transform");

-        while (displayObject && displayObject.transform.matrix && (!excludingRootSprite || displayObject != root))
+        while (displayObject && displayObject.transform.matrix && displayObject != topParent)
         {
             var scrollRect:Rectangle = displayObject.scrollRect;
             if (scrollRect != null)


Transferred from the Adobe Open Source Subversion Repository

Revision: 20764
Author:   smgilson@adobe.com
Date:     2011-03-10T17:16:24.059260Z

Log Message:
-----------
Merge 20761 - ASDoc updates

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/LinkedList.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/Base64Encoder.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/ObjectUtil.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/rpc/src/mx/utils/URLUtil.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/LinkedListNode.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/ObjectProxy.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/HSBColor.as</path>
<path kind="dir" action="M">/private/flex/sdk/trunk</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/NameUtil.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/rpc/src/mx/utils/RpcClassAliasInitializer.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/XMLNotifier.as</path>

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

--- frameworks/projects/framework/src/mx/utils/ObjectUtil.as
+++ frameworks/projects/framework/src/mx/utils/ObjectUtil.as
@@ -158,7 +158,7 @@
      */
     private static function cloneInternal(result:Object, value:Object):void
     {
-		if (value && value.hasOwnProperty("uid"))
+        if (value && value.hasOwnProperty("uid"))
             result.uid = value.uid;

         var classInfo:Object = getClassInfo(value);
@@ -1152,7 +1152,11 @@
     }

     /**
-     *  Returns true if the object is an instance of a dynamic class.
+     *  Returns true if the object is an instance of a dynamic class.
+     *
+     *  @param obj The object.
+     *
+     *  @return true if the object is an instance of a dynamic class.
      *
      *  @langversion 3.0
      *  @playerversion Flash 9


Changed magic numbers to static consts so code is easier to understand

--- frameworks/projects/mx/src/mx/controls/CalendarLayout.as
+++ frameworks/projects/mx/src/mx/controls/CalendarLayout.as
@@ -199,6 +199,11 @@
         addEventListener(MouseEvent.MOUSE_OVER, mouseOverHandler);
         addEventListener(MouseEvent.MOUSE_OUT, mouseOutHandler);
     }
+
+	private static const START_END:int = 1;
+	private static const START_ONLY:int = 2;
+	private static const END_ONLY:int = 3;
+	private static const SINGLE_DATE:int = 4;

     //--------------------------------------------------------------------------
     //
@@ -531,7 +536,7 @@
         {
             if (_disabledRanges[i] is Date)
             {
-                disabledRangeMode[i] = 4;
+                disabledRangeMode[i] = SINGLE_DATE;
                 _disabledRanges[i] = new Date(value[i].getFullYear(),
                                               value[i].getMonth(),
                                               value[i].getDate());
@@ -544,17 +549,17 @@
                 if (!_disabledRanges[i].rangeStart &&
                     _disabledRanges[i].rangeEnd)
                 {
-                    disabledRangeMode[i] = 3;
+                    disabledRangeMode[i] = END_ONLY;
                 }
                 else if (_disabledRanges[i].rangeStart &&
                         !_disabledRanges[i].rangeEnd)
                 {
-                    disabledRangeMode[i] = 2;
+                    disabledRangeMode[i] = START_ONLY;
                 }
                 else if (_disabledRanges[i].rangeStart &&
                          _disabledRanges[i].rangeEnd)
                 {
-                    disabledRangeMode[i] = 1;
+                    disabledRangeMode[i] = START_END;
                 }
             }
         }
@@ -750,7 +755,7 @@

         if (value is Date)
         {
-            selRangeMode = 4;
+            selRangeMode = SINGLE_DATE;

             _selectableRange = new Date(value.getFullYear(),
                                         value.getMonth(),
@@ -765,7 +770,7 @@

             if (!value.rangeStart && value.rangeEnd)
             {
-                selRangeMode = 3;
+                selRangeMode = END_ONLY;
                 _selectableRange.rangeEnd = value.rangeEnd;

                 if (todaysYear <= _selectableRange.rangeEnd.getFullYear())
@@ -791,7 +796,7 @@
             }
             else if (!value.rangeEnd && value.rangeStart)
             {
-                selRangeMode = 2;
+                selRangeMode = START_ONLY;
                 _selectableRange.rangeStart = value.rangeStart;

                 if (todaysYear >= _selectableRange.rangeStart.getFullYear())
@@ -816,7 +821,7 @@
             }
             else if (value.rangeStart && value.rangeEnd)
             {
-                selRangeMode = 1;
+                selRangeMode = START_END;
                 _selectableRange.rangeStart = value.rangeStart;
                 _selectableRange.rangeEnd = value.rangeEnd;

@@ -867,25 +872,25 @@
     public function get selectedRanges():Array
     {
         if (_selectableRange)
-        {
+        {
             switch (selRangeMode)
             {
-                case 1:
+                case START_END:
                 {
                     removeRangeFromSelection(null, _selectableRange.rangeStart);
                     removeRangeFromSelection(_selectableRange.rangeEnd, null);
                     break;
                 }

-                case 2:
-                case 3:
+                case START_ONLY:
+                case END_ONLY:
                 {
                     removeRangeFromSelection(_selectableRange.rangeEnd,
                                              _selectableRange.rangeStart);
                     break;
                 }

-                case 4:
+                case SINGLE_DATE:
                 {
                     removeRangeFromSelection(null, _selectableRange as Date);
                     removeRangeFromSelection(_selectableRange as Date, null);
@@ -900,19 +905,19 @@
         {
             switch (disabledRangeMode[i])
             {
-                case 1:
-                case 2:
-                case 3:
-                {
-                    removeRangeFromSelection(_disabledRanges[i].rangeStart,
-                                             _disabledRanges[i].rangeEnd);
+                case START_END:
+                case START_ONLY:
+                case END_ONLY:
+                {
+                    removeRangeFromSelection(addSubtractDays(_disabledRanges[i].rangeStart, -1),
+								addSubtractDays(_disabledRanges[i].rangeEnd, +1));
                     break;
                 }

-                case 4:
-                {
-                    removeRangeFromSelection(_disabledRanges[i],
-                                             _disabledRanges[i]);
+                case SINGLE_DATE:
+                {
+                    removeRangeFromSelection(addSubtractDays(_disabledRanges[i], -1),
+								_disabledRanges[i]);
                     break;
                 }
             }
@@ -1620,7 +1625,7 @@
             // "end"::All dates before ths specified date are disabled, including the end Date
             // "date"::Only that day has to be disabled
             // "normal"::range is disabled including the start and end date
-            if (_disabledRanges.length>0)
+            if (_disabledRanges.length > 0)
             {
                 for (var dRanges:int = 0; dRanges < _disabledRanges.length; dRanges++)
                 {
@@ -1826,8 +1831,8 @@
             }

             switch (rangeMode)
-            {
-                case 1:
+            {
+                case START_END:
                 {
                     if (value < dateRange.rangeStart ||
                         value > dateRange.rangeEnd)
@@ -1837,21 +1842,21 @@
                     break;
                 }

-                case 2:
+                case START_ONLY:
                 {
                     if (value < dateRange.rangeStart)
                         result = false;
                     break;
                 }

-                case 3:
+                case END_ONLY:
                 {
                     if (value > dateRange.rangeEnd)
                         result = false;
                     break;
                 }

-                case 4:
+                case SINGLE_DATE:
                 {
                     if (value > dateRange || value < dateRange)
                         result = false;
@@ -1973,7 +1978,10 @@
     {
         var newDate:Date = new Date(value);

-        return new Date(newDate.fullYear, newDate.month, newDate.date + amount);
+		if (value)
+        	return new Date(newDate.fullYear, newDate.month, newDate.date + amount);
+		else
+			return null;
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 10464
Author:   rfrishbe@adobe.com
Date:     2009-09-21T17:40:30.663638Z

Log Message:
-----------
Removing support in Flex framework for compatibility version < 3.  We won't support compatibility-version 2 or 2.01 anymore.  We only keep compatibility-version for one full release, so for Flex 4, we only support compatibility-version = 3.x.

This should reduce our code-size some as we no longer need this old code.  I didn't clean up the compiler's support for compatibility-versioning as it didn't seem worth the effort.

QE notes: -
Doc notes: -
Bugs: SDK-15360
Reviewer: Kevin
Tests run: checkintests, Joan ran all mustella tests
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileListItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/HaloBorder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ProgressBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/RadioButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/accordionClasses/AccordionHeader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/utilityClasses/CanvasLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateChooser.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/mx/core/UITLFTextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ScrollArrowSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/AccordionHeaderSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Alert.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/NavBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ColorPicker.as</path>
<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/dataGridClasses/DataGridHeaderBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/treeClasses/TreeItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/TabNavigator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/FormItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridHeader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/CheckBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/DateChooserYearArrowSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/LinkButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/MenuBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/menuClasses/MenuBarItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/PanelSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/menuClasses/MenuItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/PopUpButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/scrollClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/colorPickerClasses/SwatchPanel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Accordion.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ScrollTrackSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/utilityClasses/Flex.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/LinkBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/sliderClasses/Slider.as</path>

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

--- frameworks/projects/mx/src/mx/controls/NumericStepper.as
+++ frameworks/projects/mx/src/mx/controls/NumericStepper.as
@@ -475,9 +475,6 @@
      */
     override public function get baselinePosition():Number
     {
-        if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0)
-            return inputField ? inputField.baselinePosition : NaN;
-
         if (!validateBaselinePosition())
             return NaN;


Transferred from the Adobe Open Source Subversion Repository

Revision: 8486
Author:   smgilson@adobe.com
Date:     2009-07-09T18:42:45.734868Z

Log Message:
-----------
Third 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/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/PopUpAnchor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DataRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RadioButtonGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ToggleButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Spinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoPlayer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/CheckBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/TrackBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Range.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DataGroup.as</path>

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

--- frameworks/projects/spark/src/spark/components/Button.as
+++ frameworks/projects/spark/src/spark/components/Button.as
@@ -56,7 +56,7 @@
  *

  *

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

  *
  *


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 8
Author:   open-source-svn-admin@adobe.com
Date:     2007-12-15T01:49:31.087529Z

Log Message:
-----------
The beginning of the open-source Flex SDK.

Populated the flex/sdk/trunk directory with an open-source subset of files from //depot/flex/sdk/...@191097 in the Faramir Perforce server. This changelist is a bit past the 3.0rc0 build.

The Ant scripts will not successfully build yet. They need to be adapted to the open-source subset.

Modified Paths:
--------------
2532 paths were modified

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

--- frameworks/projects/framework/src/mx/binding/PropertyWatcher.as
+++ frameworks/projects/framework/src/mx/binding/PropertyWatcher.as
@@ -0,0 +1,331 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2003-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.binding
+{
+
+import flash.events.Event;
+import flash.events.IEventDispatcher;
+import flash.utils.getQualifiedClassName;
+import mx.core.EventPriority;
+import mx.core.mx_internal;
+import mx.events.PropertyChangeEvent;
+import mx.utils.DescribeTypeCache;
+
+use namespace mx_internal;
+
+[ExcludeClass]
+
+/**
+ *  @private
+ */
+public class PropertyWatcher extends Watcher
+{
+    include "../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+    /**
+     *  Create a PropertyWatcher
+     *
+     *  @param prop The name of the property to watch.
+     *  @param event The event type that indicates the property has changed.
+     *  @param listeners The binding objects that are listening to this Watcher.
+     *  @param propertyGetter A helper function used to access non-public variables.
+     */
+    public function PropertyWatcher(propertyName:String,
+                                    events:Object,
+                                    listeners:Array,
+                                    propertyGetter:Function = null)
+    {
+		super(listeners);
+
+        _propertyName = propertyName;
+        this.events = events;
+        this.propertyGetter = propertyGetter;
+        useRTTI = !events;
+    }
+
+	//--------------------------------------------------------------------------
+	//
+	//  Variables
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+     *  The parent object of this property.
+     */
+    private var parentObj:Object;
+
+    /**
+     *  The events that indicate the property has changed
+     */
+    protected var events:Object;
+
+    /**
+     *  Storage for the propertyGetter property.
+     */
+    protected var propertyGetter:Function;
+
+	//--------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------
+
+	//----------------------------------
+	//  propertyName
+	//----------------------------------
+
+	/**
+     *  Storage for the propertyName property.
+     */
+    private var _propertyName:String;
+
+    /**
+     *  The name of the property this Watcher is watching.
+     */
+    public function get propertyName():String
+    {
+        return _propertyName;
+    }
+
+	//----------------------------------
+	//  useRTTI
+	//----------------------------------
+
+    /**
+     *	If compiler can't determine bindability from static type,
+	 *  use RTTI on runtime values.
+     */
+    private var useRTTI:Boolean;
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden methods: Watcher
+	//
+	//--------------------------------------------------------------------------
+
+    /**
+     *  If the parent has changed we need to update ourselves
+     */
+    override public function updateParent(parent:Object):void
+    {
+        if (parentObj && parentObj is IEventDispatcher)
+        {
+            for (var eventType:String in events)
+            {
+                parentObj.removeEventListener(eventType, eventHandler);
+            }
+        }
+
+        if (parent is Watcher)
+            parentObj = parent.value;
+        else
+            parentObj = parent;
+
+        if (parentObj)
+        {
+			if (useRTTI)
+			{
+				// Use RTTI to ensure that parentObj is an IEventDispatcher,
+				// and that bindability metadata exists
+				// for parentObj[_propertyName].
+
+				events = {};
+
+				if (parentObj is IEventDispatcher)
+				{
+					var info:BindabilityInfo =
+						DescribeTypeCache.describeType(parentObj).
+						bindabilityInfo;
+
+					events = info.getChangeEvents(_propertyName);
+
+					if (objectIsEmpty(events))
+					{
+						trace("warning: unable to bind to property '" +
+							  _propertyName + "' on class '" +
+							  getQualifiedClassName(parentObj) + "'");
+					}
+					else
+					{
+						addParentEventListeners();
+					}
+				}
+				else
+				{
+					trace("warning: unable to bind to property '" +
+						  _propertyName + "' on class '" +
+						  getQualifiedClassName(parentObj) +
+						  "' (class is not an IEventDispatcher)");
+				}
+			}
+			else
+			{
+				// useRTTI == false implies that the compiler
+				// has provided us with a list of change events.
+				// NOTE: this normally also implies that parentObj
+				// is guaranteed to implement IEventDispatcher.
+				// The guard below is necessitated by Proxy cases,
+				// which provide blanket bindability information
+				// on properties which are not strongly typed,
+				// and so could accept values that do not implement
+				// IEventDispatcher.
+				// In these cases, correct binding behavior depends on
+				// the Proxy implementation providing after-the-fact
+				// bindability by wrapping assigned values and attaching
+				// event listeners at that point.
+				// Here we can only fail silently.
+
+				if (parentObj is IEventDispatcher)
+					addParentEventListeners();
+			}
+        }
+
+		// Now get our property.
+        wrapUpdate(updateProperty);
+    }
+
+    /**
+	 *  @private
+	 */
+    override protected function shallowClone():Watcher
+    {
+        var clone:PropertyWatcher = new PropertyWatcher(_propertyName,
+                                                        events,
+                                                        listeners,
+                                                        propertyGetter);
+
+        return clone;
+    }
+
+	//--------------------------------------------------------------------------
+	//
+	//  Methods
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	private function addParentEventListeners():void
+	{
+		for (var eventType:String in events)
+		{
+			if (eventType != "__NoChangeEvent__")
+			{
+				parentObj.addEventListener(
+					eventType, eventHandler, false, EventPriority.BINDING, true);
+			}
+		}
+	}
+
+	/**
+	 *  @private
+	 */
+	private function traceInfo():String
+	{
+		return "Watcher(" + getQualifiedClassName(parentObj) + "." +
+				_propertyName + "): events = [" +
+				eventNamesToString() + (useRTTI ? "] (RTTI)" : "]");
+	}
+
+	/**
+	 *  @private
+	 */
+	private function eventNamesToString():String
+	{
+		var s:String = " ";
+
+		for (var ev:String in events)
+		{
+			s += ev + " ";
+		}
+
+		return s;
+	}
+
+	/**
+	 *  @private
+	 */
+	private function objectIsEmpty(o:Object):Boolean
+	{
+		for (var p:String in o)
+		{
+			return false;
+		}
+		return true;
+	}
+
+    /**
+     *  Gets the actual property then updates
+	 *  the Watcher's children appropriately.
+     */
+    private function updateProperty():void
+    {
+        if (parentObj)
+        {
+            if (_propertyName == "this")
+            {
+                value = parentObj;
+            }
+            else
+            {
+                if (propertyGetter != null)
+                {
+                    value = propertyGetter.apply(parentObj, [ _propertyName ]);
+                }
+                else
+                {
+                    value = parentObj[_propertyName];
+                }
+            }
+        }
+        else
+        {
+            value = null;
+        }
+
+        updateChildren();
+    }
+
+	//--------------------------------------------------------------------------
+	//
+	//  Event handlers
+	//
+	//--------------------------------------------------------------------------
+
+    /**
+     *  The generic event handler.
+	 *  The only event we'll hear indicates that the property has changed.
+     */
+    public function eventHandler(event:Event):void
+    {
+        if (event is PropertyChangeEvent)
+        {
+            var propName:Object = PropertyChangeEvent(event).property
+
+            if (propName != _propertyName)
+                return;
+        }
+
+		wrapUpdate(updateProperty);
+
+        notifyListeners(events[event.type]);
+    }
+}
+
+}


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

--- frameworks/projects/framework/src/mx/effects/easing/Circular.as
+++ frameworks/projects/framework/src/mx/effects/easing/Circular.as
@@ -17,6 +17,11 @@
  *  circular motion with Flex effect classes.
  *
  *  For more information, see http://www.robertpenner.com/profmx.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class Circular
 {
@@ -41,6 +46,11 @@
      *  @param d Specifies the duration of the effect, in milliseconds.
      *
      *  @return Number corresponding to the position of the component.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
 	public static function easeIn(t:Number, b:Number,
 								  c:Number, d:Number):Number
@@ -61,6 +71,11 @@
      *  @param d Specifies the duration of the effect, in milliseconds.
      *
      *  @return Number corresponding to the position of the component.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
 	public static function easeOut(t:Number, b:Number,
 								   c:Number, d:Number):Number
@@ -82,6 +97,11 @@
      *  @param d Specifies the duration of the effect, in milliseconds.
      *
      *  @return Number corresponding to the position of the component.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
 	public static function easeInOut(t:Number, b:Number,
 									 c:Number, d:Number):Number


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

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

 package mx.events
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 2950
Author:   hmuller@adobe.com
Date:     2008-08-21T20:23:05.935439Z

Log Message:
-----------
Most of the rest of the "Group as Viewport" feature.  Enables simple
scrolling for Groups with VerticalLayout or HorizontalLayout, including
support for fixed size rows/columns.  Currently, if variableSizeRows/Columns
is true, then rowHeight/columnWidth must be specified.

- HorizontalLayout

Replaced private static GAP:int constant with a similar "gap"
property.  Gap is the vertical space between rows, default is 6.

Added a columnCount:int property and a protected explicitColumnCount var.
The columnCount property specifies the number of visible columns, which
implies the layoutTarget's width.  The default is -1 which means
that all columns should be visible.

Added variableColumnWidth:Boolean and columnWidth:Number properties.
If the variableColumnWidth is true, HorzontalLayout works as
in earlier versions.  Otherwise the contentWidth and measuredWidth
are proportional to columnWidth.

Changed the updateDisplayList function to set the scrollRect
to the layoutTarget's width/height.

- VerticalLayout

Removed unused colWidth,explicitColWidth properties from
VerticalLayout.  Setting the width of a VerticalLayout
has the same effect as setting colWidth would have.

- Group
Changed vertical,horizontalScrollPosition properties to match the
invalidate/commitProperties pattern.

- HorizontalLayout, VerticalLayout, Group
Eliminated some Java-style bracket formatting atrocities.

QE: No
Doc: No
Checkintests: Pass
Reviewer: Jason
Bugs:
  SDK-1648 - Horizontal Layout is broken in Gumbo when it 's set dynamically

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/VerticalLayout.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
+++ frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
@@ -11,6 +11,7 @@

 package flex.layout
 {
+import flash.geom.Rectangle;

 import flex.core.Group;
 import flex.intf.ILayout;
@@ -27,17 +28,6 @@

     //--------------------------------------------------------------------------
     //
-    //  Class constants
-    //
-    //--------------------------------------------------------------------------
-
-    /**
-	 *  @private
-	 */
-	private static const GAP:int = 6;
-
-    //--------------------------------------------------------------------------
-    //
     //  Class methods
     //
     //--------------------------------------------------------------------------
@@ -92,16 +82,233 @@
         _target = value;
     }

-    public function measure():void
-    {
-    	var layoutTarget:Group = target;
-        if (!layoutTarget)
-            return;
-
+    //----------------------------------
+    //  gap
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    private var _gap:int = 6;
+
+    /**
+     *  @private
+     */
+    private var gapChanged:Boolean = false;
+
+    [Inspectable(category="General")]
+
+    /**
+     *  Horizontal space between columns.
+     *
+     *  @default 6
+     */
+    public function get gap():int
+    {
+        return _gap;
+    }
+
+    /**
+     *  @private
+     */
+    public function set gap(value:int):void
+    {
+        if (_gap == value) return;
+
+		_gap = value;
+ 	   	var layoutTarget:Group = target;
+    	if (layoutTarget != null)
+    	{
+			gapChanged = true;
+        	layoutTarget.invalidateSize();
+            layoutTarget.invalidateDisplayList();
+    	}
+    }
+
+    //----------------------------------
+    //  expliciColumnCount
+    //----------------------------------
+
+    /**
+     *  The column count requested by explicitly setting
+     *  columnCount.
+     */
+    protected var explicitColumnCount:int = -1;
+
+    //----------------------------------
+    //  columnCount
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    private var _columnCount:int = -1;
+
+    /**
+     *  @private
+     */
+    private var columnCountChanged:Boolean = false;
+
+    [Inspectable(category="General")]
+
+    /**
+     *  Number of columns to be displayed.
+     *  If the width of the component has been explicitly set,
+     *  this property might not have any effect.
+     *
+     *  @default -1
+     */
+    public function get columnCount():int
+    {
+        return _columnCount;
+    }
+
+    /**
+     *  @private
+     */
+    public function set columnCount(value:int):void
+    {
+        explicitColumnCount = value;
+
+        if (_columnCount == value) return;
+
+        setColumnCount(value);
+ 	   	var layoutTarget:Group = target;
+    	if (layoutTarget != null)
+    	{
+    		columnCountChanged = true;
+        	layoutTarget.invalidateSize();
+            layoutTarget.invalidateDisplayList();
+    	}
+    }
+
+    /**
+     *  Sets the columnCount property without causing
+     *  invalidation or setting the explicitColumnCount
+     *  property, which permanently locks in the number of columns.
+     *
+     *  @param v The row count.
+     */
+    protected function setColumnCount(v:int):void
+    {
+        _columnCount = v;
+    }
+
+    //----------------------------------
+    //  explicitColumnWidth
+    //----------------------------------
+
+    /**
+     *  The column width requested by explicitly setting
+     *  columnWidth.
+     */
+    protected var explicitColumnWidth:Number;
+
+    //----------------------------------
+    //  columnWidth
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    private var _columnWidth:Number = 20;
+
+    /**
+     *  @private
+     */
+    private var columnWidthChanged:Boolean = false;
+
+    [Inspectable(category="General")]
+
+    /**
+     *  The width of the columns in pixels.
+     *  Unless the variableColumnWidth property is
+     *  true, all columns are the same width.
+     */
+    public function get columnWidth():Number
+    {
+        return _columnWidth;
+    }
+
+    /**
+     *  @private
+     */
+    public function set columnWidth(value:Number):void
+    {
+        explicitColumnWidth = value;
+
+        if (_columnWidth != value)
+        {
+            setColumnWidth(value);
+ 		   	var layoutTarget:Group = target;
+        	if (layoutTarget != null)
+        	{
+        		columnWidthChanged = true;
+            	layoutTarget.invalidateSize();
+	            layoutTarget.invalidateDisplayList();
+        	}
+        }
+    }
+
+    /**
+     *  Sets the columnWidth property without causing invalidation or
+     *  setting of explicitColumnWidth which
+     *  permanently locks in the width of the columns.
+     *
+     *  @param value The column width, in pixels.
+     */
+    protected function setColumnWidth(value:Number):void
+    {
+        _columnWidth = value;
+    }
+
+
+    //----------------------------------
+    //  variableColumnWidth
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    private var _variableColumnWidth:Boolean = true;
+
+    [Inspectable(category="General")]
+
+    /**
+     *  @default true
+     */
+    public function get variableColumnWidth():Boolean
+    {
+        return _variableColumnWidth;
+    }
+
+    /**
+     *  @private
+     */
+    public function set variableColumnWidth(value:Boolean):void
+    {
+        if (value == _variableColumnWidth) return;
+
+        _variableColumnWidth = value;
+ 		var layoutTarget:Group = target;
+        if (layoutTarget != null) {
+    		layoutTarget.invalidateSize();
+        	layoutTarget.invalidateDisplayList();
+        }
+    }
+
+
+
+    public function variableColumnWidthMeasure(layoutTarget:Group):void
+    {
         var minWidth:Number = 0;
         var minHeight:Number = 0;
         var preferredWidth:Number = 0;
         var preferredHeight:Number = 0;
+        var visibleWidth:Number = 0;
+        var visibleColumns:uint = 0;
+        var explicitColumnCount:int = explicitColumnCount;
+

         var count:uint = layoutTarget.numLayoutItems;
         var totalCount:uint = count; // How many items will be laid out
@@ -121,21 +328,81 @@
             var itemMinHeight:Number = hasPercentHeight(layoutItem) ? layoutItem.minSize.y : layoutItem.preferredSize.y;
             minHeight = Math.max(minHeight, itemMinHeight);
             minWidth += itemMinWidth;
+
+            if ((explicitColumnCount != -1) && (visibleColumns < explicitColumnCount))
+            {
+            	visibleWidth = preferredWidth;
+            	visibleColumns += 1;
+            }
+
         }

         if (totalCount > 1)
         {
-            var gapSpace:Number = GAP * (totalCount - 1);
+            var gapSpace:Number = gap * (totalCount - 1);
             minWidth += gapSpace;
             preferredWidth += gapSpace;
-        }
-
-        layoutTarget.measuredWidth = preferredWidth;
+            visibleWidth += (visibleColumns < 2) ? 0 : ((visibleColumns - 1) * gap);
+        }
+
+        layoutTarget.measuredWidth = (explicitColumnCount == -1) ? preferredWidth : visibleWidth;
         layoutTarget.measuredHeight = preferredHeight;
+
+        layoutTarget.contentWidth = preferredWidth;
+        layoutTarget.contentHeight = preferredHeight;

         layoutTarget.measuredMinWidth = minWidth;
         layoutTarget.measuredMinHeight = minHeight;
     }
+
+
+    private function fixedColumnWidthMeasure(layoutTarget:Group):void
+    {
+        // TBD init columnWidth if explicitColumnWidth isNaN
+        var cols:uint = layoutTarget.numLayoutItems;
+        var visibleCols:uint = (explicitColumnCount == -1) ? cols : explicitColumnCount;
+        var contentWidth:Number = (cols * columnWidth) + ((cols > 1) ? (gap * (cols - 1)) : 0);
+        var visibleWidth:Number = (visibleCols * columnWidth) + ((visibleCols > 1) ? (gap * (visibleCols - 1)) : 0);
+
+        var rowHeight:Number = layoutTarget.explicitHeight;
+        var minRowHeight:Number = rowHeight;
+        if (isNaN(rowHeight))
+        {
+			minRowHeight = rowHeight = 0;
+	        var count:uint = layoutTarget.numLayoutItems;
+	        for (var i:int = 0; i < count; i++)
+	        {
+	            var layoutItem:ILayoutItem = layoutTarget.getLayoutItemAt(i);
+	            if (!layoutItem || !layoutItem.includeInLayout) continue;
+	            rowHeight = Math.max(rowHeight, layoutItem.preferredSize.y);
+	            var itemMinHeight:Number = hasPercentHeight(layoutItem) ? layoutItem.minSize.y : layoutItem.preferredSize.y;
+	            minRowHeight = Math.max(minRowHeight, itemMinHeight);
+	        }
+        }
+
+        layoutTarget.measuredWidth = visibleWidth;
+        layoutTarget.measuredHeight = rowHeight;
+
+        layoutTarget.contentWidth = contentWidth;
+        layoutTarget.contentHeight = rowHeight;
+
+        layoutTarget.measuredMinWidth = columnWidth;
+        layoutTarget.measuredMinHeight = minRowHeight;
+    }
+
+
+    public function measure():void
+    {
+    	var layoutTarget:Group = target;
+        if (!layoutTarget)
+            return;
+
+        if (variableColumnWidth)
+        	variableColumnWidthMeasure(layoutTarget);
+        else
+        	fixedColumnWidthMeasure(layoutTarget);
+    }
+

     public function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
     {
@@ -160,24 +427,51 @@

         var totalWidthToDistribute:Number = unscaledWidth;
         if (totalCount > 1)
-            totalWidthToDistribute -= (totalCount - 1) * GAP;
+            totalWidthToDistribute -= (totalCount - 1) * gap;

         distributeWidth(layoutItemArray, totalWidthToDistribute, unscaledHeight);

         // TODO EGeorgie: verticalAlign
         var vAlign:Number = 0;

+
+        // If columnCount wasn't set, then as the LayoutItems are positioned
+        // we'll count how many columns fall within the layoutTarget's scrollRect
+        var visibleColumns:uint = 0;
+        var minVisibleX:Number = layoutTarget.horizontalScrollPosition;
+        var maxVisibleX:Number = minVisibleX + unscaledWidth
+
         // Finally, position the objects
         var x:Number = 0;
         for each (var lo:ILayoutItem in layoutItemArray)
         {
             var y:Number = (unscaledHeight - lo.actualSize.y) * vAlign;
-
             lo.setActualPosition(x, y);
-            x += lo.actualSize.x;
-            x += GAP;
-        }
-    }
+            if (!variableColumnWidth)
+            	lo.setActualSize(columnWidth, lo.actualSize.y);
+            var dx:Number = lo.actualSize.x;
+            if((explicitColumnCount == -1) && (x < maxVisibleX) && ((x + dx) > minVisibleX))
+            	visibleColumns += 1;
+            x += dx + gap;
+        }
+        if (explicitColumnCount == -1)
+        	setColumnCount(visibleColumns);
+
+        var r:Rectangle = layoutTarget.scrollRect;
+        if (r != null)
+        {
+            r.width = unscaledWidth;
+            r.height = unscaledHeight;
+            layoutTarget.scrollRect = r;
+        }
+        else
+        {
+        	var rx:Number = layoutTarget.horizontalScrollPosition;
+        	var ry:Number = layoutTarget.verticalScrollPosition;
+        	layoutTarget.scrollRect = new Rectangle(rx, ry, unscaledWidth, unscaledHeight);
+        }
+    }
+

     /**
      *  This function sets the width of each child


Transferred from the Adobe Open Source Subversion Repository

Revision: 3217
Author:   dsubrama@adobe.com
Date:     2008-09-16T01:29:03.972652Z

Log Message:
-----------
SDK bugfixes: SDK-16557, SDK-16485

Incorrect event metadata made mxml event handlers not compile.

QA: Yes
Checkintests: Pass
Reviewer: Glenn

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/Spinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/TrackBase.as</path>

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

--- frameworks/projects/spark/src/spark/components/Spinner.as
+++ frameworks/projects/spark/src/spark/components/Spinner.as
@@ -24,9 +24,9 @@
  *  Dispatched when the value of the Spinner control changes
  *  as a result of user interaction.
  *
- *  @eventType mx.events.Event
+ *  @eventType flash.events.Event
  */
-[Event(name="change", type="mx.events.Event")]
+[Event(name="change", type="flash.events.Event")]

 /**
  *  A Spinner is used to select a value from an


some targets are not IUIBase

some targets are not IUIBase

--- frameworks/as/projects/FlexJSUI/src/org/apache/flex/events/MouseEvent.as
+++ frameworks/as/projects/FlexJSUI/src/org/apache/flex/events/MouseEvent.as
@@ -117,7 +117,7 @@
             if (!_stagePoint)
             {
                 var localPoint:Point = new Point(localX, localY);
-                _stagePoint = PointUtils.localToGlobal(localPoint, IUIBase(target));
+                _stagePoint = PointUtils.localToGlobal(localPoint, target);
             }
             return _stagePoint.x;
         }
@@ -128,7 +128,7 @@
             if (!_stagePoint)
             {
                 var localPoint:Point = new Point(localX, localY);
-                _stagePoint = PointUtils.localToGlobal(localPoint, IUIBase(target));
+                _stagePoint = PointUtils.localToGlobal(localPoint, target);
             }
             return _stagePoint.y;
         }


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

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

 package mx.automation.events
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 3778
Author:   smgilson@adobe.com
Date:     2008-10-21T17:21:41.861183Z

Log Message:
-----------
fix ASDoc comment

QE Notes: None
Doc Notes: None
Bugs: -
Reviewer: Evtim

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IInteractiveObjectInterface.as

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

--- frameworks/projects/framework/src/mx/core/IInteractiveObjectInterface.as
+++ frameworks/projects/framework/src/mx/core/IInteractiveObjectInterface.as
@@ -9,7 +9,7 @@
 //
 ////////////////////////////////////////////////////////////////////////////////

-/**
+/*
  *  The methods here would normally just be in IInteractiveObject,
  *  but for backward compatibility, their ancestor methods have to be included
  *  directly into IFlexDisplayObject, so these also have to be kept in