Transferred from the Adobe Open Source Subversion Repository

Revision: 9932
Author:   smgilson@adobe.com
Date:     2009-09-02T19:17:26.077257Z

Log Message:
-----------
Add ASDoc version tags to new or untagged classes - Part 2

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/rpc/src/mx/rpc/xml/SimpleXMLDecoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/Request.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/RectangularBorder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/Responder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/RectangularDropShadow.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/states/OverrideBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/RichTextEditor.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/remoting/mxml/RemoteObject.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/remoting/Operation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/SparkChromeWindowedApplicationSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/WindowedApplicationSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Text.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/IXMLSchemaInstance.as</path>

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

--- frameworks/projects/rpc/src/mx/rpc/xml/SimpleXMLDecoder.as
+++ frameworks/projects/rpc/src/mx/rpc/xml/SimpleXMLDecoder.as
@@ -20,6 +20,11 @@
 /**
  *  The SimpleXMLDecoder class deserialize XML into a graph of ActionScript objects.
  * Use  this class when no schema information is available.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class SimpleXMLDecoder
 {
@@ -96,6 +101,11 @@
      *  @param dataNode An XMLNode to be converted into a tree of ActionScript Objects.
      *
      *  @return A tree of ActionScript Objects.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function decodeXML(dataNode:XMLNode):Object
     {
@@ -199,6 +209,11 @@
      *  @param xmlNode The XMLNode.
      *
      * @return The local name of an XMLNode.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static function getLocalName(xmlNode:XMLNode):String
     {


Transferred from the Adobe Open Source Subversion Repository

Revision: 20301
Author:   klin@adobe.com
Date:     2011-02-11T20:57:11.868583Z

Log Message:
-----------
Fix header renderers disappearing when DataGrid changes parents. DataGrid uses nestLevel to force the columnHeaderGroup to validate after the grid. In the case where DataGrid's nestLevel changes, we need to fix the columnHeaderGroup's nestLevel.

QE notes: No
Doc notes: No
Bugs: SDK-29480
Reviewer: Hans, Carol
Tests run: cyclone server, checkintests
Is noteworthy for integration: No

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

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

--- frameworks/projects/spark/src/spark/components/DataGrid.as
+++ frameworks/projects/spark/src/spark/components/DataGrid.as
@@ -14,7 +14,6 @@
 import flash.display.DisplayObject;
 import flash.display.Graphics;
 import flash.events.Event;
-import flash.events.EventPhase;
 import flash.events.FocusEvent;
 import flash.events.KeyboardEvent;
 import flash.geom.Rectangle;
@@ -42,14 +41,12 @@
 import spark.components.gridClasses.CellRegion;
 import spark.components.gridClasses.DataGridEditor;
 import spark.components.gridClasses.GridColumn;
-import spark.components.gridClasses.GridDimensions;
 import spark.components.gridClasses.GridLayout;
 import spark.components.gridClasses.GridSelection;
 import spark.components.gridClasses.GridSelectionMode;
 import spark.components.gridClasses.GridSortField;
 import spark.components.gridClasses.IDataGridElement;
 import spark.components.gridClasses.IGridItemEditor;
-import spark.components.gridClasses.IGridItemRenderer;
 import spark.components.supportClasses.SkinnableContainerBase;
 import spark.core.NavigationUnit;
 import spark.events.GridCaretEvent;
@@ -2130,6 +2127,43 @@

     /**
      *  @private
+     *  Ensure that IDataGridElements are laid out after the grid skin part.
+     *  At the moment, DataGrid has only one IDataGridElement, columnHeaderGroup.
+     *
+     *  The DataGrid columnHeaderGroup's layout role is unusual, since it depends on
+     *  the layout of the grid skin part.
+     *  The columnHeaderGroup's column widths, scroll position, and list of visible columns
+     *  are defined by the grid.
+     *  That means that the grid needs to compute its layout first.
+     *
+     *  The Flex LayoutManager orders the per-element work in each of its phases according
+     *  to the element's nestLevel. The measure() (validateSize) phase is "bottom up"
+     *  with respect to the nestLevel, which means that the deepest nodes in the tree with the
+     *  highest nestLevel are measured first.
+     *  Similarly the updateDisplayList() (validateDisplayList) phase is "top down" where the nodes
+     *  with the lowest nestLevel are validated first.
+     *  To guarantee that the columnHeaderGroup skin part is laid out after the grid skin part,
+     *  we need to ensure that its nestLevel is greater than the grid's nestLevel.
+     *
+     *  As the DataGrid's skin defines the grid and columnHeaderGroup skin parts, there is no
+     *  way for the DataGrid component to constrain their relative locations in the visual element
+     *  hierarchy.
+     *  However, all ILayoutManagerClients have a nestLevel property, which specifies the element's
+     *  depth relative to its SystemManager root.
+     *  Thus, we can overcome the limitation by initializing the columnHeaderGroup's nestLevel
+     *  to be grid.nestLevel+1, which ensures that the columnHeaderGroup will be validated after
+     *  the grid.
+     */
+    override public function set nestLevel(value:int):void
+    {
+        super.nestLevel = value;
+
+        if (grid)
+            initializeDataGridElement(columnHeaderGroup);
+    }
+
+    /**
+     *  @private
      *  Ensure that the DataGrid appears in the correct tab order, despite the fact that its
      *  focusOwner gets the focus.
      */
@@ -2448,7 +2482,8 @@
             return;

         elt.dataGrid = this;
-        elt.nestLevel = grid.nestLevel + 1;
+        if (elt.nestLevel <= grid.nestLevel)
+            elt.nestLevel = grid.nestLevel + 1;
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 18850
Author:   smgilson@adobe.com
Date:     2010-11-30T12:14:08.321423Z

Log Message:
-----------
First pass of ASDoc updates

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

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

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

--- frameworks/projects/spark/src/spark/components/DataGrid.as
+++ frameworks/projects/spark/src/spark/components/DataGrid.as
@@ -61,27 +61,30 @@
 //--------------------------------------

 /**
- *  Used to initialize the DataGrid's rowBackground.   If defined, the alternatingRowColorsBackground
- *  skin part is used to render row backgrounds whose fill color is defined by successive entries
+ *  Used to initialize the DataGrid's rowBackground skin part.
+ *  If defined, the alternatingRowColorsBackground
+ *  skin part is used to render row backgrounds whose
+ *  fill color is defined by successive entries
  *  in the array value of this style.
  *
  *  @default undefined
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
- *  @playerversion AIR 2.0
+ *  @playerversion AIR 2.5
  *  @productversion Flex 4.5
  */
 [Style(name="alternatingRowColors", type="Array", arrayType="uint", format="Color", inherit="no", theme="spark")]

 /**
- *  The alpha of the border for this component.
+ *  The alpha value of the border for this component.
+ *  Valid values are 0.0 to 1.0.
  *
  *  @default 1.0
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
- *  @playerversion AIR 2.0
+ *  @playerversion AIR 2.5
  *  @productversion Flex 4.5
  */
 [Style(name="borderAlpha", type="Number", inherit="no", theme="spark", minValue="0.0", maxValue="1.0")]
@@ -93,7 +96,7 @@
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
- *  @playerversion AIR 2.0
+ *  @playerversion AIR 2.5
  *  @productversion Flex 4.5
  */
 [Style(name="borderColor", type="uint", format="Color", inherit="no", theme="spark")]
@@ -105,17 +108,18 @@
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
- *  @playerversion AIR 2.0
+ *  @playerversion AIR 2.5
  *  @productversion Flex 4.5
  */
 [Style(name="borderVisible", type="Boolean", inherit="no", theme="spark")]

 /**
  *  The alpha of the content background for this component.
+ *  Valid values are 0.0 to 1.0.
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
- *  @playerversion AIR 2.0
+ *  @playerversion AIR 2.5
  *  @productversion Flex 4.5
  */
 [Style(name="contentBackgroundAlpha", type="Number", inherit="yes", theme="spark", minValue="0.0", maxValue="1.0")]
@@ -127,7 +131,7 @@
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
- *  @playerversion AIR 2.0
+ *  @playerversion AIR 2.5
  *  @productversion Flex 4.5
  */
 [Style(name="contentBackgroundColor", type="uint", format="Color", inherit="yes", theme="spark")]
@@ -135,11 +139,11 @@
 /**
  *  The class to use as the skin for the cursor that indicates that a column
  *  can be resized.
- *  The default value is the "cursorStretch" symbol from the Assets.swf file.
+ *  The default value is the cursorStretch symbol from the Assets.swf file.
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
- *  @playerversion AIR 2.0
+ *  @playerversion AIR 2.5
  *  @productversion Flex 4.5
  */
 [Style(name="stretchCursor", type="Class", inherit="no")]
@@ -148,43 +152,46 @@
 include "../styles/metadata/BasicInheritingTextStyles.as"

 /**
- *  Name of the class of the itemEditor to be used if one is not
- *  specified for a column.  This is a way to set
- *  an item editor for a group of DataGrids instead of having to
- *  set each one individually.  If you set the DataGridColumn's itemEditor
- *  property, it supercedes this value.
+ *  The class to use as the item editor, if one is not
+ *  specified by a column.
+ *  This style property lets you set
+ *  an item editor for a group of DataGrid controls instead of having to
+ *  set each one individually.
+ *  The DataGridColumn.itemEditor property supercedes this value.
+ *
  *  @default null
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
- *  @playerversion AIR 2.0
+ *  @playerversion AIR 2.5
  *  @productversion Flex 4.5
  */
 [Style(name="defaultDataGridItemEditor", type="Class", inherit="no")]

 /**
- *  Indicates under what conditions the horizontal scroll bar is displayed.
+ *  Indicates the conditions for which the horizontal scroll bar is displayed.
  *
  *

  *

- *  ScrollPolicy.ON ("on") - the scroll bar is always displayed.
+ *  ScrollPolicy.ON ("on") - The scroll bar is always displayed.
  *

  *

- *  ScrollPolicy.OFF ("off") - the scroll bar is never displayed.
+ *  ScrollPolicy.OFF ("off") - The scroll bar is never displayed.
  *  The viewport can still be scrolled programmatically, by setting its
- *  horizontalScrollPosition property.
+ *  horizontalScrollPosition property.
  *

  *

- *  ScrollPolicy.AUTO ("auto") - the scroll bar is displayed when
- *  the viewport's contentWidth is larger than its width.
+ *  ScrollPolicy.AUTO ("auto") - The scroll bar is displayed when
+ *  the viewport's contentWidth is larger than its width.
  *

  *

  *
  *

- *  The scroll policy affects the measured size of the scroller skin part.  This style
- *  is simply a cover for the scroller skin part's horizontalScrollPolicy.  It is not an
- *  inheriting style so, for example, it will not affect item renderers.
- *

+ *  The scroll policy affects the measured size of the scroller skin part.
+ *  This style is a reference to the scroller skin part's
+ *  horizontalScrollPolicy style.
+ *  It is not an inheriting style
+ *  Therefor, for example, it will not affect item renderers.

  *
  *  @default ScrollPolicy.AUTO
  *
@@ -192,7 +199,7 @@
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
- *  @playerversion AIR 2.0
+ *  @playerversion AIR 2.5
  *  @productversion Flex 4.5
  */
 [Style(name="horizontalScrollPolicy", type="String", inherit="no", enumeration="off,on,auto")]
@@ -202,24 +209,25 @@
  *
  *

  *

- *  ScrollPolicy.ON ("on") - the scroll bar is always displayed.
+ *  ScrollPolicy.ON ("on") - The scroll bar is always displayed.
  *

  *

- *  ScrollPolicy.OFF ("off") - the scroll bar is never displayed.
+ *  ScrollPolicy.OFF ("off") - The scroll bar is never displayed.
  *  The viewport can still be scrolled programmatically, by setting its
- *  verticalScrollPosition property.
+ *  verticalScrollPosition property.
  *

  *

- *  ScrollPolicy.AUTO ("auto") - the scroll bar is displayed when
- *  the viewport's contentHeight is larger than its height.
+ *  ScrollPolicy.AUTO ("auto") - The scroll bar is displayed when
+ *  the viewport's contentHeight is larger than its height.
  *

  *

  *
  *

- *  The scroll policy affects the measured size of the scroller skin part.  This style
- *  is simply a cover for the scroller skin part's verticalScrollPolicy.  It is not an
- *  inheriting style so, for example, it will not affect item renderers.
- *

+ *  The scroll policy affects the measured size of the scroller skin part.
+ *  This style is a reference to the scroller skin part's
+ *  verticalScrollPolicy style.
+ *  It is not an inheriting style
+ *  Therefor, for example, it will not affect item renderers.

  *
  *  @default ScrollPolicy.AUTO
  *
@@ -227,7 +235,7 @@
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
- *  @playerversion AIR 2.0
+ *  @playerversion AIR 2.5
  *  @productversion Flex 4.5
  */
 [Style(name="verticalScrollPolicy", type="String", inherit="no", enumeration="off,on,auto")]
@@ -237,99 +245,101 @@
 //--------------------------------------

 /**
- *  Dispatched by the grid skin part when the caret position, size, or
+ *  Dispatched by the grid skin part when the caret position, size, or
  *  visibility has changed due to user interaction or being programmatically set.
  *
  *  @eventType spark.events.GridCaretEvent.CARET_CHANGE
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
- *  @playerversion AIR 2.0
+ *  @playerversion AIR 2.5
  *  @productversion Flex 4.5
  */
 [Event(name="caretChange", type="spark.events.GridCaretEvent")]

 /**
- *  Dispatched by the grid skin part when the mouse button is pressed over a Grid cell.
+ *  Dispatched by the grid skin part when the mouse button
+ *  is pressed over a grid cell.
  *
  *  @eventType spark.events.GridEvent.GRID_MOUSE_DOWN
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
- *  @playerversion AIR 2.0
+ *  @playerversion AIR 2.5
  *  @productversion Flex 4.5
  */
 [Event(name="gridMouseDown", type="spark.events.GridEvent")]

 /**
- *  Dispatched by the grid skin part after a GRID_MOUSE_DOWN event if the mouse moves before the button is released.
+ *  Dispatched by the grid skin part after a gridMouseDown event
+ *  if the mouse moves before the button is released.
  *
  *  @eventType spark.events.GridEvent.GRID_MOUSE_DRAG
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
- *  @playerversion AIR 2.0
+ *  @playerversion AIR 2.5
  *  @productversion Flex 4.5
  */
 [Event(name="gridMouseDrag", type="spark.events.GridEvent")]

 /**
- *  Dispatched by the grid skin part after a GRID_MOUSE_DOWN event when the mouse button is released, even
- *  if the mouse is no longer within the Grid.
+ *  Dispatched by the grid skin part after a gridMouseDown event
+ *  when the mouse button is released, even if the mouse is no longer within the grid.
  *
  *  @eventType spark.events.GridEvent.GRID_MOUSE_UP
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
- *  @playerversion AIR 2.0
+ *  @playerversion AIR 2.5
  *  @productversion Flex 4.5
  */
 [Event(name="gridMouseUp", type="spark.events.GridEvent")]

 /**
- *  Dispatched by the grid skin part when the mouse enters a grid cell.
+ *  Dispatched by the grid skin part when the mouse enters a grid cell.
  *
  *  @eventType spark.events.GridEvent.GRID_ROLL_OVER
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
- *  @playerversion AIR 2.0
+ *  @playerversion AIR 2.5
  *  @productversion Flex 4.5
  */
 [Event(name="gridRollOver", type="spark.events.GridEvent")]

 /**
- *  Dispatched by the grid skin part when the mouse leaves a grid cell.
+ *  Dispatched by the grid skin part when the mouse leaves a grid cell.
  *
  *  @eventType spark.events.GridEvent.GRID_ROLL_OUT
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
- *  @playerversion AIR 2.0
+ *  @playerversion AIR 2.5
  *  @productversion Flex 4.5
  */
 [Event(name="gridRollOut", type="spark.events.GridEvent")]

 /**
- *  Dispatched by the grid skin part when the mouse is clicked over a cell
+ *  Dispatched by the grid skin part when the mouse is clicked over a cell
  *
  *  @eventType spark.events.GridEvent.GRID_CLICK
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
- *  @playerversion AIR 2.0
+ *  @playerversion AIR 2.5
  *  @productversion Flex 4.5
  */
 [Event(name="gridClick", type="spark.events.GridEvent")]

 /**
- *  Dispatched by the grid skin part when the mouse is double-clicked over a cell
+ *  Dispatched by the grid skin part when the mouse is double-clicked over a cell
  *
  *  @eventType spark.events.GridEvent.GRID_DOUBLE_CLICK
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
- *  @playerversion AIR 2.0
+ *  @playerversion AIR 2.5
  *  @productversion Flex 4.5
  */
 [Event(name="gridDoubleClick", type="spark.events.GridEvent")]
@@ -343,11 +353,11 @@
  *  When you change the selection programmatically,
  *  the component does not dispatch the selectionChanging event.

  *
- *  @eventType spark.events.GridSelectionChangeEvent.SELECTION_CHANGING
+ *  @eventType spark.events.GridSelectionEvent.SELECTION_CHANGING
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
- *  @playerversion AIR 2.0
+ *  @playerversion AIR 2.5
  *  @productversion Flex 4.5
  */
 [Event(name="selectionChanging", type="spark.events.GridSelectionEvent")]
@@ -360,11 +370,11 @@
  *  the component does not dispatch the selectionChange event.
  *  It dispatches the valueCommit event instead.

  *
- *  @eventType spark.events.GridSelectionChangeEvent.SELECTION_CHANGE
+ *  @eventType spark.events.GridSelectionEvent.SELECTION_CHANGE
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
- *  @playerversion AIR 2.0
+ *  @playerversion AIR 2.5
  *  @productversion Flex 4.5
  */
 [Event(name="selectionChange", type="spark.events.GridSelectionEvent")]
@@ -375,12 +385,12 @@

 /**
  *  Dispatched when a new item editor session has been requested. A listener can
- *  dynamically determine if a cell is editable and cancel the edit (with
- *  preventDefault()) if it is not. A listener may also dynamically
- *  change the editor that will be used by assigning a different item editor to
- *  a column.
+ *  dynamically determine if a cell is editable and cancel the edit (by calling
+ *  the preventDefault() method) if it is not.
+ *  A listener may also dynamically change the editor used by assigning a
+ *  different item editor to a column.
  *
- *
If this event is cancelled the item editor will not be created.

+ *
If this event is canceled the item editor will not be created.

  *
  *  @eventType spark.events.GridItemEditorEvent.GRID_ITEM_EDITOR_SESSION_STARTING
  *
@@ -389,7 +399,7 @@
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
- *  @playerversion AIR 2.0
+ *  @playerversion AIR 2.5
  *  @productversion Flex 4.5
  */
 [Event(name="gridItemEditorSessionStarting", type="spark.events.GridItemEditorEvent")]
@@ -403,7 +413,7 @@
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
- *  @playerversion AIR 2.0
+ *  @playerversion AIR 2.5
  *  @productversion Flex 4.5
  */
 [Event(name="gridItemEditorSessionStart", type="spark.events.GridItemEditorEvent")]
@@ -418,7 +428,7 @@
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
- *  @playerversion AIR 2.0
+ *  @playerversion AIR 2.5
  *  @productversion Flex 4.5
  */
 [Event(name="gridItemEditorSessionSave", type="spark.events.GridItemEditorEvent")]
@@ -432,7 +442,7 @@
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
- *  @playerversion AIR 2.0
+ *  @playerversion AIR 2.5
  *  @productversion Flex 4.5
  */
 [Event(name="gridItemEditorSessionCancel", type="spark.events.GridItemEditorEvent")]
@@ -450,7 +460,15 @@
 [IconFile("DataGrid.png")]

 /**
- *  TBD(hmuller)
+ *  The DataGrid class
+ *
+ *  @see Grid
+ *  @see spark.components.gridClasses.GridColumn
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 2.5
+ *  @productversion Flex 4.5
  */
 public class DataGrid extends SkinnableContainerBase implements IFocusManagerComponent,
                                                                 IGridItemRendererOwner,
@@ -481,7 +499,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function DataGrid()
@@ -995,7 +1013,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function get dataTipField():String
@@ -1023,7 +1041,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function get dataTipFunction():Function
@@ -1064,7 +1082,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function get editable():Boolean
@@ -1092,7 +1110,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function get editorColumnIndex():int
@@ -1115,7 +1133,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function get editorRowIndex():int
@@ -1139,7 +1157,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function get enableIME():Boolean
@@ -1193,7 +1211,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function get imeMode():String
@@ -1228,7 +1246,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function get itemEditor():IFactory
@@ -1267,7 +1285,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function get itemEditorInstance():IGridItemEditor
@@ -1289,7 +1307,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function get itemRenderer():IFactory
@@ -1315,7 +1333,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function get preserveSelection():Boolean
@@ -1346,7 +1364,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function get requireSelection():Boolean
@@ -1377,7 +1395,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function get requestedRowCount():int
@@ -1402,7 +1420,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function get requestedColumnCount():int
@@ -1427,7 +1445,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function get requestedMaxRowCount():int
@@ -1452,7 +1470,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function get requestedMinRowCount():int
@@ -1477,7 +1495,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function get requestedMinColumnCount():int
@@ -1504,7 +1522,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function get resizableColumns():Boolean
@@ -1532,7 +1550,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function get rowHeight():Number
@@ -1563,7 +1581,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function get selectionMode():String
@@ -1630,7 +1648,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function get showDataTips():Boolean
@@ -1668,7 +1686,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function get sortableColumns():Boolean
@@ -1699,7 +1717,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function get typicalItem():Object
@@ -1741,7 +1759,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function get variableRowHeight():Boolean
@@ -2229,7 +2247,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function get selectedCell():CellPosition
@@ -2271,7 +2289,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function get selectedCells():Vector.<CellPosition>
@@ -2309,7 +2327,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function get selectedIndex():int
@@ -2349,7 +2367,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function get selectedIndices():Vector.<int>
@@ -2387,7 +2405,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function get selectedItem():Object
@@ -2428,7 +2446,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function get selectedItems():Vector.<Object>
@@ -2474,7 +2492,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function get selectionLength():int
@@ -2493,7 +2511,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function invalidateCell(rowIndex:int, columnIndex:int):void
@@ -2507,7 +2525,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function selectAll():Boolean
@@ -2533,7 +2551,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function clearSelection():Boolean
@@ -2563,7 +2581,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function selectionContainsIndex(rowIndex:int):Boolean
@@ -2579,7 +2597,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function selectionContainsIndices(rowIndices:Vector.<int>):Boolean
@@ -2595,7 +2613,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function setSelectedIndex(rowIndex:int):Boolean
@@ -2621,7 +2639,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function addSelectedIndex(rowIndex:int):Boolean
@@ -2647,7 +2665,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function removeSelectedIndex(rowIndex:int):Boolean
@@ -2673,7 +2691,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function selectIndices(rowIndex:int, rowCount:int):Boolean
@@ -2703,7 +2721,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function selectionContainsCell(rowIndex:int, columnIndex:int):Boolean
@@ -2719,7 +2737,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function selectionContainsCellRegion(rowIndex:int, columnIndex:int,
@@ -2742,7 +2760,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function setSelectedCell(rowIndex:int, columnIndex:int):Boolean
@@ -2768,7 +2786,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function addSelectedCell(rowIndex:int, columnIndex:int):Boolean
@@ -2794,7 +2812,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function removeSelectedCell(rowIndex:int, columnIndex:int):Boolean
@@ -2820,7 +2838,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function selectCellRegion(rowIndex:int, columnIndex:int,
@@ -2892,7 +2910,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     protected function commitInteractiveSelection(
@@ -3032,7 +3050,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     protected function commitCaretPosition(newCaretRowIndex:int,
@@ -3172,7 +3190,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      *
      */
@@ -3197,7 +3215,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function endItemEditorSession(cancel:Boolean = false):Boolean
@@ -3239,7 +3257,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function sortByColumns(columnIndices:Vector.<int>):Boolean
@@ -3699,7 +3717,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function ensureCellIsVisible(rowIndex:int, columnIndex:int = -1):void


Transferred from the Adobe Open Source Subversion Repository

Revision: 6289
Author:   cframpto@adobe.com
Date:     2009-04-27T18:40:43.791247Z

Log Message:
-----------
Fix SimpleText verticalAlign="middle" and "bottom".

RichText - simplify assignment to textLineCreator to match how it was done in SimpleText

QE Notes:
Doc Notes:
Bugs: SDK-20589
Reviewers: Gordon

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/SimpleText.as</path>

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

--- frameworks/projects/spark/src/spark/components/RichText.as
+++ frameworks/projects/spark/src/spark/components/RichText.as
@@ -783,12 +783,7 @@
         mx_internal::embeddedFontContext = getEmbeddedFontContext();

         if (mx_internal::embeddedFontContext != oldEmbeddedFontContext)
-        {
-            textLineCreator =
-            	mx_internal::embeddedFontContext ?
-             	ITextLineCreator(mx_internal::embeddedFontContext) :
-                null;
-        }
+            textLineCreator = ITextLineCreator(mx_internal::embeddedFontContext);

         if (hostFormatChanged)
         {


Transferred from the Adobe Open Source Subversion Repository

Revision: 6194
Author:   cframpto@adobe.com
Date:     2009-04-22T16:11:33.307376Z

Log Message:
-----------
API changes for Vellum Build 417

DisplayObjectContainerController => ContainerController
IContainerController => ContainerController
scrollLines => getScrollDelta
TextLineCreator went away.  If null, the default TextLineCreator will be used.

QE Notes: checkintests passed
Doc Notes:
Bugs:
Reviewers: Gordon/Jim asked me to do this.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/RichEditableText2.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/libs/textLayout.swc</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/RichEditableText.as</path>

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

--- frameworks/projects/spark/src/spark/components/RichText.as
+++ frameworks/projects/spark/src/spark/components/RichText.as
@@ -26,7 +26,6 @@
 import flashx.textLayout.elements.ParagraphElement;
 import flashx.textLayout.elements.SpanElement;
 import flashx.textLayout.elements.TextFlow;
-import flashx.textLayout.elements.TextLineCreator;
 import flashx.textLayout.events.DamageEvent;
 import flashx.textLayout.factory.TextLineFactory;
 import flashx.textLayout.factory.TruncationOptions;
@@ -816,7 +815,7 @@
             if (embeddedFontContext)
                 textFlow.flowComposer.textLineCreator = ITextLineCreator(embeddedFontContext);
             else
-                textFlow.flowComposer.textLineCreator = new TextLineCreator();
+                textFlow.flowComposer.textLineCreator = null;
         }
         if (embeddedFontContext)
         {


Transferred from the Adobe Open Source Subversion Repository

Revision: 19811
Author:   eday@adobe.com
Date:     2011-01-19T21:50:34.509168Z

Log Message:
-----------
Scroller event thinning:  added an mx_internal API to disable thinning for automated testing.

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

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

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

--- frameworks/projects/spark/src/spark/components/Scroller.as
+++ frameworks/projects/spark/src/spark/components/Scroller.as
@@ -742,7 +742,7 @@
      *  If the container is smaller than the available screen space,
      *  then the Scroller restores the scroll positions to 0,
      *  the top of the wrapped container.

-     *
+     *
      *  @default true
      *
      *  @langversion 3.0
@@ -847,6 +847,12 @@
         installViewport();
         dispatchEvent(new Event("viewportChanged"));
     }
+
+    /**
+     *  @private
+     *  This is used to disable thinning for automated testing.
+     */
+    mx_internal static var dragEventThinning:Boolean = true;

     private function installViewport():void
     {
@@ -1391,7 +1397,7 @@
     //  Touch scrolling methods
     //
     //--------------------------------------------------------------------------
-
+
     /**
      *  @private
      *  Add touch listeners
@@ -2172,7 +2178,7 @@

         touchScrollHelper.startScrollWatch(event);
     }
-
+
     /**
      *  @private
      */
@@ -2180,7 +2186,7 @@
     {
         var xMove:int = 0;
         var yMove:int = 0;
-
+
         if (scrollerLayout && scrollerLayout.canScrollHorizontally)
             xMove = dragX;

@@ -2216,7 +2222,7 @@
         // clamp the values here
         newHSP = Math.min(Math.max(newHSP, -viewportWidth), maxWidth+viewportWidth);
         newVSP = Math.min(Math.max(newVSP, -viewportHeight), maxHeight+viewportHeight);
-
+
         viewport.horizontalScrollPosition = newHSP;
         viewport.verticalScrollPosition = newVSP;
     }
@@ -2285,141 +2291,141 @@
         // scrollbars in overlay mode
         skin.invalidateDisplayList();
     }
-
-    //--------------------------------------------------------------------------
-    //
-    //  Text selection auto scroll
-    //
-    //--------------------------------------------------------------------------
-
-    /**
-     *  @private
-     *  When true, use the text selection scroll behavior instead of the
-     *  typical "throw" behavior. This is only used when interactionMode="touch"
-     */
-    mx_internal var textSelectionAutoScrollEnabled:Boolean = false;
-    private var textSelectionAutoScrollTimer:Timer;
-    private var minTextSelectionVScrollPos:int = 0;
-    private var maxTextSelectionVScrollPos:int = -1;
-    private var minTextSelectionHScrollPos:int = 0;
-    private var maxTextSelectionHScrollPos:int = -1;
-    private static const TEXT_SELECTION_AUTO_SCROLL_FPS:int = 10;
-
-    /**
-     *  @private
-     *  Change scroll behavior when selecting text.
-     */
-    mx_internal function enableTextSelectionAutoScroll(enable:Boolean,
-                       minHScrollPosition:int = 0, maxHScrollPosition:int = -1,
-                       minVScrollPosition:int = 0, maxVScrollPosition:int = -1):void
-    {
-        if (getStyle("interactionMode") == InteractionMode.TOUCH)
-        {
-            this.textSelectionAutoScrollEnabled = enable;
-            this.minTextSelectionHScrollPos = minHScrollPosition;
-            this.maxTextSelectionHScrollPos = maxHScrollPosition;
-            this.minTextSelectionVScrollPos = minVScrollPosition;
-            this.maxTextSelectionVScrollPos = maxVScrollPosition;
-        }
-    }
-
-    /**
-     *  @private
-     */
-    mx_internal function setUpTextSelectionAutoScroll():void
-    {
-        if (!textSelectionAutoScrollTimer)
-        {
-            textSelectionAutoScrollTimer = new Timer(1000 / TEXT_SELECTION_AUTO_SCROLL_FPS);
-            textSelectionAutoScrollTimer.addEventListener(TimerEvent.TIMER,
-                textSelectionAutoScrollTimerHandler);
-
-            textSelectionAutoScrollTimer.start();
-        }
-    }
-
-    /**
-     *  @private
-     */
-    mx_internal function stopTextSelectionAutoScroll():void
-    {
-        if (textSelectionAutoScrollTimer)
-        {
-            textSelectionAutoScrollTimer.stop();
-            textSelectionAutoScrollTimer.removeEventListener(TimerEvent.TIMER,
-                textSelectionAutoScrollTimerHandler);
-            textSelectionAutoScrollTimer = null;
-        }
-    }
-
-    /**
-     *  @private
-     */
-    private function textSelectionAutoScrollTimerHandler(event:TimerEvent):void
-    {
-        const SLOW_SCROLL_THRESHOLD:int = 12;       // Distance from edge to trigger a slow scroll
-        const SLOW_SCROLL_SPEED:int = 20;           // Pixels per timer callback to scroll
-        const FAST_SCROLL_THRESHOLD:int = 3;        // Distance from edge to trigger a fast scroll
-        const FAST_SCROLL_DELTA:int = 30;           // Added to SLOW_SCROLL_SPEED to determine fast speed
-
-        var newVSP:Number = viewport.verticalScrollPosition;
-        var newHSP:Number = viewport.horizontalScrollPosition;
-
-        if (scrollerLayout.canScrollHorizontally)
-        {
-            if (mouseX > width - SLOW_SCROLL_THRESHOLD)
-            {
-                newHSP += SLOW_SCROLL_SPEED;
-
-                if (mouseX > width - FAST_SCROLL_THRESHOLD)
-                    newHSP += FAST_SCROLL_DELTA;
-
-                if (maxTextSelectionHScrollPos != -1 && newHSP > maxTextSelectionHScrollPos)
-                    newHSP = maxTextSelectionHScrollPos;
-            }
-
-            if (mouseX < SLOW_SCROLL_THRESHOLD)
-            {
-                newHSP -= SLOW_SCROLL_SPEED;
-
-                if (mouseX < FAST_SCROLL_THRESHOLD)
-                    newHSP -= FAST_SCROLL_DELTA;
-
-                if (newHSP < minTextSelectionHScrollPos)
-                    newHSP = minTextSelectionHScrollPos;
-            }
-        }
-
-        if (scrollerLayout.canScrollVertically)
-        {
-            if (mouseY > height - SLOW_SCROLL_THRESHOLD)
-            {
-                newVSP += SLOW_SCROLL_SPEED;
-
-                if (mouseY > height - FAST_SCROLL_THRESHOLD)
-                    newVSP += FAST_SCROLL_DELTA;
-
-                if (maxTextSelectionVScrollPos != -1 && newVSP > maxTextSelectionVScrollPos)
-                    newVSP = maxTextSelectionVScrollPos;
-            }
-
-            if (mouseY < SLOW_SCROLL_THRESHOLD)
-            {
-                newVSP -= SLOW_SCROLL_SPEED;
-
-                if (mouseY < FAST_SCROLL_THRESHOLD)
-                    newVSP -= FAST_SCROLL_DELTA;
-
-                if (newVSP < minTextSelectionVScrollPos)
-                    newVSP = minTextSelectionVScrollPos;
-            }
-        }
-
-        if (newHSP != viewport.horizontalScrollPosition)
-            viewport.horizontalScrollPosition = newHSP;
-        if (newVSP != viewport.verticalScrollPosition)
-            viewport.verticalScrollPosition = newVSP;
-    }
+
+	//--------------------------------------------------------------------------
+	//
+	//  Text selection auto scroll
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 *  When true, use the text selection scroll behavior instead of the
+	 *  typical "throw" behavior. This is only used when interactionMode="touch"
+	 */
+	mx_internal var textSelectionAutoScrollEnabled:Boolean = false;
+	private var textSelectionAutoScrollTimer:Timer;
+	private var minTextSelectionVScrollPos:int = 0;
+	private var maxTextSelectionVScrollPos:int = -1;
+	private var minTextSelectionHScrollPos:int = 0;
+	private var maxTextSelectionHScrollPos:int = -1;
+	private static const TEXT_SELECTION_AUTO_SCROLL_FPS:int = 10;
+
+	/**
+	 *  @private
+	 *  Change scroll behavior when selecting text.
+	 */
+	mx_internal function enableTextSelectionAutoScroll(enable:Boolean,
+					   minHScrollPosition:int = 0, maxHScrollPosition:int = -1,
+					   minVScrollPosition:int = 0, maxVScrollPosition:int = -1):void
+	{
+		if (getStyle("interactionMode") == InteractionMode.TOUCH)
+		{
+			this.textSelectionAutoScrollEnabled = enable;
+			this.minTextSelectionHScrollPos = minHScrollPosition;
+			this.maxTextSelectionHScrollPos = maxHScrollPosition;
+			this.minTextSelectionVScrollPos = minVScrollPosition;
+			this.maxTextSelectionVScrollPos = maxVScrollPosition;
+		}
+	}
+
+	/**
+	 *  @private
+	 */
+	mx_internal function setUpTextSelectionAutoScroll():void
+	{
+		if (!textSelectionAutoScrollTimer)
+		{
+			textSelectionAutoScrollTimer = new Timer(1000 / TEXT_SELECTION_AUTO_SCROLL_FPS);
+			textSelectionAutoScrollTimer.addEventListener(TimerEvent.TIMER,
+				textSelectionAutoScrollTimerHandler);
+
+			textSelectionAutoScrollTimer.start();
+		}
+	}
+
+	/**
+	 *  @private
+	 */
+	mx_internal function stopTextSelectionAutoScroll():void
+	{
+		if (textSelectionAutoScrollTimer)
+		{
+			textSelectionAutoScrollTimer.stop();
+			textSelectionAutoScrollTimer.removeEventListener(TimerEvent.TIMER,
+				textSelectionAutoScrollTimerHandler);
+			textSelectionAutoScrollTimer = null;
+		}
+	}
+
+	/**
+	 *  @private
+	 */
+	private function textSelectionAutoScrollTimerHandler(event:TimerEvent):void
+	{
+		const SLOW_SCROLL_THRESHOLD:int = 12;		// Distance from edge to trigger a slow scroll
+		const SLOW_SCROLL_SPEED:int = 20;			// Pixels per timer callback to scroll
+		const FAST_SCROLL_THRESHOLD:int = 3;		// Distance from edge to trigger a fast scroll
+		const FAST_SCROLL_DELTA:int = 30; 			// Added to SLOW_SCROLL_SPEED to determine fast speed
+
+		var newVSP:Number = viewport.verticalScrollPosition;
+		var newHSP:Number = viewport.horizontalScrollPosition;
+
+		if (scrollerLayout.canScrollHorizontally)
+		{
+			if (mouseX > width - SLOW_SCROLL_THRESHOLD)
+			{
+				newHSP += SLOW_SCROLL_SPEED;
+
+				if (mouseX > width - FAST_SCROLL_THRESHOLD)
+					newHSP += FAST_SCROLL_DELTA;
+
+				if (maxTextSelectionHScrollPos != -1 && newHSP > maxTextSelectionHScrollPos)
+					newHSP = maxTextSelectionHScrollPos;
+			}
+
+			if (mouseX < SLOW_SCROLL_THRESHOLD)
+			{
+				newHSP -= SLOW_SCROLL_SPEED;
+
+				if (mouseX < FAST_SCROLL_THRESHOLD)
+					newHSP -= FAST_SCROLL_DELTA;
+
+				if (newHSP < minTextSelectionHScrollPos)
+					newHSP = minTextSelectionHScrollPos;
+    		}
+		}
+
+		if (scrollerLayout.canScrollVertically)
+		{
+			if (mouseY > height - SLOW_SCROLL_THRESHOLD)
+			{
+				newVSP += SLOW_SCROLL_SPEED;
+
+				if (mouseY > height - FAST_SCROLL_THRESHOLD)
+					newVSP += FAST_SCROLL_DELTA;
+
+				if (maxTextSelectionVScrollPos != -1 && newVSP > maxTextSelectionVScrollPos)
+					newVSP = maxTextSelectionVScrollPos;
+			}
+
+			if (mouseY < SLOW_SCROLL_THRESHOLD)
+			{
+				newVSP -= SLOW_SCROLL_SPEED;
+
+				if (mouseY < FAST_SCROLL_THRESHOLD)
+					newVSP -= FAST_SCROLL_DELTA;
+
+				if (newVSP < minTextSelectionVScrollPos)
+					newVSP = minTextSelectionVScrollPos;
+			}
+		}
+
+		if (newHSP != viewport.horizontalScrollPosition)
+			viewport.horizontalScrollPosition = newHSP;
+		if (newVSP != viewport.verticalScrollPosition)
+			viewport.verticalScrollPosition = newVSP;
+	}

     //--------------------------------------------------------------------------
     //
@@ -2905,7 +2911,7 @@
                 var scrollStartEvent:TouchInteractionEvent = new TouchInteractionEvent(TouchInteractionEvent.TOUCH_INTERACTION_START, true, true);
                 scrollStartEvent.relatedObject = scroller;
                 scrollStartEvent.reason = TouchInteractionReason.SCROLL;
-                dispatchBubblingEventOnMouseDownedDisplayObject(scrollStartEvent);
+				dispatchBubblingEventOnMouseDownedDisplayObject(scrollStartEvent);

                 isScrolling = true;

@@ -2962,11 +2968,11 @@
         // if we are scrolling (even if we just started scrolling)
         if (isScrolling)
         {
-            if (scroller.textSelectionAutoScrollEnabled)
-            {
-                scroller.setUpTextSelectionAutoScroll();
-                return;
-            }
+			if (scroller.textSelectionAutoScrollEnabled)
+			{
+				scroller.setUpTextSelectionAutoScroll();
+				return;
+			}

             // calculate the delta
             var dx:Number = event.stageX - scrollGestureAnchorPoint.x;
@@ -2988,12 +2994,17 @@
                 // Call updateAfterEvent() to make sure it looks smooth
                 event.updateAfterEvent();

+                // If event thinning is not enabled, we never start the timer so all subsequent
+                // move event will continue to be handled right in this function.
+                if (Scroller.dragEventThinning)
+                {
                 // Start the periodic timer that will do subsequent drag
                 // scrolling if necessary.
                 dragTimer.start();

                 // No additional mouse events received yet, so no scrolling pending.
                 dragScrollPending = false;
+            }
             }
             else
             {
@@ -3047,14 +3058,14 @@
         if (!isScrolling)
             return;

-        // Don't throw if we're doing a text selection auto scroll
-        if (scroller.textSelectionAutoScrollEnabled)
-        {
-            scroller.stopTextSelectionAutoScroll();
-            endTouchScroll();
-            return;
-        }
-
+		// Don't throw if we're doing a text selection auto scroll
+		if (scroller.textSelectionAutoScrollEnabled)
+		{
+			scroller.stopTextSelectionAutoScroll();
+			endTouchScroll();
+			return;
+		}
+
         if (dragTimer)
         {
             if (dragScrollPending)
@@ -3112,13 +3123,13 @@
         }
         averageDt /= len-1;

-        // if off screen for some reason, let's end scrolling:
-        if (!scroller.stage)
-        {
+		// if off screen for some reason, let's end scrolling:
+		if (!scroller.stage)
+		{
             endTouchScroll();
-            return;
-        }
-
+			return;
+		}
+
         var lastMouseEventPoint:Point = mouseEventCoordinatesHistory[endIndex];

         // calculate the last velocity and make sure there was no pause that occurred
@@ -3214,40 +3225,40 @@

         return new Point(velX,velY);
     }
-
-    /**
-     *  @private
-     *  Helper method to dispatch bubbling events on mouseDownDisplayObject.  Since this
-     *  object can be off the display list, this may be tricky.  Technically, we should
-     *  grab all the live objects at the time of mouseDown and dispatch events to them
-     *  manually, but instead, we just use this heuristic, which is dispatch it to
-     *  mouseDownedDisplayObject.  If it's not inside of scroller and off the display list,
-     *  then dispatch to scroller as well.
-     *
-     *
If you absolutely need to know the touch event ended, add event listeners
-     *  to the mouseDownedDisplayObject directly and don't rely on event
-     *  bubbling.

-     */
-    private function dispatchBubblingEventOnMouseDownedDisplayObject(event:Event):Boolean
-    {
-        var eventAccepted:Boolean = true;
-        if (mouseDownedDisplayObject)
-        {
-            eventAccepted = eventAccepted && mouseDownedDisplayObject.dispatchEvent(event);
-            if (!mouseDownedDisplayObject.stage)
-            {
-                if (scroller && !scroller.contains(mouseDownedDisplayObject))
-                    eventAccepted = eventAccepted && scroller.dispatchEvent(event);
-            }
-        }
-        else
-        {
-            eventAccepted = eventAccepted && scroller.dispatchEvent(event);
-        }
-
-        return eventAccepted;
-    }
-
+
+	/**
+	 *  @private
+	 *  Helper method to dispatch bubbling events on mouseDownDisplayObject.  Since this
+	 *  object can be off the display list, this may be tricky.  Technically, we should
+	 *  grab all the live objects at the time of mouseDown and dispatch events to them
+	 *  manually, but instead, we just use this heuristic, which is dispatch it to
+	 *  mouseDownedDisplayObject.  If it's not inside of scroller and off the display list,
+	 *  then dispatch to scroller as well.
+	 *
+	 *
If you absolutely need to know the touch event ended, add event listeners
+	 *  to the mouseDownedDisplayObject directly and don't rely on event
+	 *  bubbling.

+	 */
+	private function dispatchBubblingEventOnMouseDownedDisplayObject(event:Event):Boolean
+	{
+		var eventAccepted:Boolean = true;
+		if (mouseDownedDisplayObject)
+		{
+			eventAccepted = eventAccepted && mouseDownedDisplayObject.dispatchEvent(event);
+			if (!mouseDownedDisplayObject.stage)
+			{
+				if (scroller && !scroller.contains(mouseDownedDisplayObject))
+					eventAccepted = eventAccepted && scroller.dispatchEvent(event);
+			}
+		}
+		else
+		{
+			eventAccepted = eventAccepted && scroller.dispatchEvent(event);
+		}
+
+		return eventAccepted;
+	}
+
     /**
      *  @private
      *  When the touchScrollThrow is over, we should dispatch a touchInteractionEnd.


Transferred from the Adobe Open Source Subversion Repository

Revision: 8224
Author:   cframpto@adobe.com
Date:     2009-06-25T12:23:58.799001Z

Log Message:
-----------
[sdk_api_change] Missed this PARB change last week.  The TextArea textFlow property is no longer bindable because you can't share a TextFlow between two editable components, due to the way that FTE and TLF work.

QA Notes:
Doc Notes: SDK-22001
Reviewers: Gordon

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

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

--- frameworks/projects/spark/src/spark/components/TextArea.as
+++ frameworks/projects/spark/src/spark/components/TextArea.as
@@ -235,8 +235,11 @@
     //  textFlow
     //----------------------------------

-    [Bindable("change")]
-
+    // Note:
+    // The 'textFlow' property is not bindable because you can't share a
+    // TextFlow between two editable components, due to the way that FTE and
+    // TLF work.
+
     /**
      *  The TextFlow displayed by this component.
      *


Name _global.flash.filters.BitmapFilter in trace_properties

This is so it's prototype that is used in other filters gets the right name
Also fixed early naming of _global.flash.text.TextRenderer in versions < 8

--- test/trace/trace_properties.as
+++ test/trace/trace_properties.as
@@ -399,18 +399,23 @@

 function trace_properties (o, prefix, identifier)
 {
+  // prioritize some things in the naming
+  ASSetPropFlags (_global, "flash", 0, 4096);
   _global["mySecretId"] = "_global";
   _global.Object["mySecretId"] = "_global.Object";
   _global.Function["mySecretId"] = "_global.Function";
   _global.Function.prototype["mySecretId"] = "_global.Function.prototype";
   _global.XMLNode["mySecretId"] = "_global.XMLNode";
   _global.flash.text.TextRenderer["mySecretId"] = "_global.flash.text.TextRenderer";
+  _global.flash.filters.BitmapFilter["mySecretId"] = "_global.flash.filters.BitmapFilter";
   generate_names (_global.Object, "_global", "Object");
   generate_names (_global.Function, "_global", "Function");
   generate_names (_global.Function.prototype, "_global", "Function.prototype");
   generate_names (_global.XMLNode, "_global", "XMLNode");
   generate_names (_global.flash.text.TextRenderer, "_global.flash.text", "TextRenderer");
+  generate_names (_global.flash.filters.BitmapFilter, "_global.flash.filters", "BitmapFilter");
   generate_names (_global, "", "_global");
+  ASSetPropFlags (_global, "flash", 4096);

   if (typeof (o) == "object" || typeof (o) == "function")
   {


fix coding style

fix coding style

--- src/aerys/minko/scene/node/Scene.as
+++ src/aerys/minko/scene/node/Scene.as
@@ -34,14 +34,14 @@

 		private var _numTriangles	: uint;

-		private var _enterFrame			: Signal;
-		private var _renderingBegin		: Signal;
-		private var _renderingEnd		: Signal;
-		private var _exitFrame			: Signal;
+		private var _enterFrame		: Signal;
+		private var _renderingBegin	: Signal;
+		private var _renderingEnd	: Signal;
+		private var _exitFrame		: Signal;

 		private var _assets				: AssetsLibrary;

-		public function get assets():AssetsLibrary
+		public function get assets() : AssetsLibrary
 		{
 			return _assets;
 		}


fix margin handling

fix margin handling

--- frameworks/projects/HTML/as/src/org/apache/flex/html/beads/layouts/HorizontalLayout.as
+++ frameworks/projects/HTML/as/src/org/apache/flex/html/beads/layouts/HorizontalLayout.as
@@ -30,6 +30,7 @@
 	import org.apache.flex.events.IEventDispatcher;
 	import org.apache.flex.geom.Rectangle;
 	import org.apache.flex.utils.dbg.DOMPathUtil;
+    import org.apache.flex.utils.CSSUtils;
     import org.apache.flex.utils.CSSContainerUtils;

     /**
@@ -94,8 +95,9 @@
 			var marginBottom:Object;
 			var margin:Object;
 			var maxHeight:Number = 0;
-            // asking for contentView.width can result in infinite loop if host isn't sized already
+            // asking for contentView.height can result in infinite loop if host isn't sized already
             var h:Number = hostSizedToContent ? 0 : contentView.height;
+            var w:Number = contentView.width;
 			var verticalMargins:Array = [];

 			for (var i:int = 0; i < n; i++)
@@ -104,63 +106,22 @@
 				if (child == null || !child.visible) continue;
                 var top:Number = ValuesManager.valuesImpl.getValue(child, "top");
                 var bottom:Number = ValuesManager.valuesImpl.getValue(child, "bottom");
+                margin = ValuesManager.valuesImpl.getValue(child, "margin");
+                marginLeft = ValuesManager.valuesImpl.getValue(child, "margin-left");
+                marginTop = ValuesManager.valuesImpl.getValue(child, "margin-top");
+                marginRight = ValuesManager.valuesImpl.getValue(child, "margin-right");
+                marginBottom = ValuesManager.valuesImpl.getValue(child, "margin-bottom");
+                var ml:Number = CSSUtils.getLeftValue(marginLeft, margin, w);
+                var mr:Number = CSSUtils.getRightValue(marginRight, margin, w);
+                var mt:Number = CSSUtils.getTopValue(marginTop, margin, h);
+                var mb:Number = CSSUtils.getBottomValue(marginBottom, margin, h);
+
                 ilc = child as ILayoutChild;
-				margin = ValuesManager.valuesImpl.getValue(child, "margin");
-				if (margin is Array)
-				{
-					if (margin.length == 1)
-						marginLeft = marginTop = marginRight = marginBottom = margin[0];
-					else if (margin.length <= 3)
-					{
-						marginLeft = marginRight = margin[1];
-						marginTop = marginBottom = margin[0];
-					}
-					else if (margin.length == 4)
-					{
-						marginLeft = margin[3];
-						marginBottom = margin[2];
-						marginRight = margin[1];
-						marginTop = margin[0];
-					}
-				}
-				else if (margin == null)
-				{
-					marginLeft = ValuesManager.valuesImpl.getValue(child, "margin-left");
-					marginTop = ValuesManager.valuesImpl.getValue(child, "margin-top");
-					marginRight = ValuesManager.valuesImpl.getValue(child, "margin-right");
-					marginBottom = ValuesManager.valuesImpl.getValue(child, "margin-bottom");
-				}
-				else
-				{
-					marginLeft = marginTop = marginBottom = marginRight = margin;
-				}
-				var ml:Number;
-				var mr:Number;
-				var mt:Number;
-				var mb:Number;
 				var lastmr:Number;
 				if (marginLeft == "auto")
 					ml = 0;
-				else
-				{
-					ml = Number(marginLeft);
-					if (isNaN(ml))
-						ml = 0;
-				}
 				if (marginRight == "auto")
 					mr = 0;
-				else
-				{
-					mr = Number(marginRight);
-					if (isNaN(mr))
-						mr = 0;
-				}
-				mt = Number(marginTop);
-				if (isNaN(mt))
-					mt = 0;
-				mb = Number(marginBottom);
-				if (isNaN(mb))
-					mb = 0;
                 var xx:Number;
                 if (i == 0)
                 {


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

--- frameworks/projects/framework/src/mx/effects/IAbstractEffect.as
+++ frameworks/projects/framework/src/mx/effects/IAbstractEffect.as
@@ -25,6 +25,11 @@
  *  the EffectManager class for processing.
  *
  *  @see mx.effects.IEffect
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public interface IAbstractEffect extends IEventDispatcher
 {


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

--- frameworks/projects/framework/src/mx/graphics/LinearGradient.as
+++ frameworks/projects/framework/src/mx/graphics/LinearGradient.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.graphics
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 1098
Author:   jimurphy@adobe.com
Date:     2008-04-03T21:50:39.896200Z

Log Message:
-----------
Merge 3.0.x -- 362:394, 427:429, 603:608, 644:645, 651:663, 672:676, 755:756, 763:766, 785:790, 812:814, 854:861, 862:866, 866:933,971:1009, 1050:1056 --> trunk

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/controls/treeClasses/DefaultDataDescriptor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/VRule.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AsyncRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/IList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/LayoutManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/StreamingConnectionHandler.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IRepeaterClient.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/videoClasses/VideoError.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/ObjectProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/messages/HTTPRequestMessage.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/resources/Locale.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/ParallelInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/Responder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/errors/MessageSerializationError.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/messages/SOAPMessage.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/IBrowserManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ComponentDescriptor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/FaultEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridColumn.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/IViewCursor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/AbstractWebService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Tween.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/containers/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/DragManager.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/controls/menuClasses/IMenuItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/MessageResponder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/preloaders/Preloader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ILayoutManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Spacer.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/rpc/src/mx/rpc/Fault.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/XMLListCollection.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectTargetFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SliderEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AsyncToken.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/resources/ResourceManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/ScrollEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/mxml/HTTPService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/videoClasses/CuePointManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/CrossDomainRSLItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/NumericStepperEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/BrowserManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/events/ChannelFaultEvent.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/collections/CursorBookmark.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/IXMLEncoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/HTTPService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/WSDLLoadEvent.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/rpc/src/mx/rpc/soap/LoadEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/ListCollectionView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/FlexClient.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/SubscriptionInfo.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/DescribeTypeCache.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/logging/LogLogger.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/rpc/src/mx/messaging/MessageAgent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/build_framework.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/HeaderEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/build.xml</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/dataGridClasses/DataGridDragProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/preloaders/DownloadProgressBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/treeClasses/ITreeDataDescriptor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/remoting/RemoteObject.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListItemDragProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/ChannelSet.as</path>

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

--- frameworks/projects/framework/src/mx/managers/ILayoutManager.as
+++ frameworks/projects/framework/src/mx/managers/ILayoutManager.as
@@ -269,6 +269,9 @@
 	/**
 	 *  Returns true if there are components that need validating;
 	 *  false if all components have been validated.
+         *
+         * @return Returns true if there are components that need validating;
+	 *  false if all components have been validated.
 	 */
 	function isInvalid():Boolean;
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 4726
Author:   gosmith@adobe.com
Date:     2009-01-29T02:47:59.868818Z

Log Message:
-----------
Accessibility changes to the MSAA name of several components, as requested by Freedom Scientific. These changes make Flex controls behave more like standard Windows controls.

In Accordion and TabBar, the name is now just what is displayed, without " Tab" or " Tab, Active" appended.

In ComboBox, List, and Tree, the name of each item is now just what it displays, without, for example, "2 of 7" appended.

Removed an artificial limit of 100000 items in List and Menu.

A Slider with an MXML id no longer returns that id as its name; no other component does this and id's are certainly no intended to be spoken.

Removed the getName() method of ComboBase, which isn't used.

QE Notes: None
Doc Notes: None
Bugs: None
Reviewer: Jason

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TabBarAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ColorPickerAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/DataGridAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TreeAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/SliderAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/MenuAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ListBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AlertAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ComboBoxAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/MenuBarAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AccordionHeaderAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ComboBaseAccImpl.as</path>

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

--- frameworks/projects/mx/src/mx/accessibility/ComboBaseAccImpl.as
+++ frameworks/projects/mx/src/mx/accessibility/ComboBaseAccImpl.as
@@ -214,40 +214,6 @@
 					0;

 		return createChildIDArray(n);
-	}
-
-	//--------------------------------------------------------------------------
-	//
-	//  Overridden methods: AccImpl
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  @private
-	 *  method for returning the name of the ComboBase
-	 *  For children items, it would add m of n string to the name.
-	 *  ComboBase should return the name specified in the AccessibilityProperties.
-	 *
-	 *  @param childID uint
-	 *
-	 *  @return Name String
-	 */
-	override protected function getName(childID:uint):String
-	{
-		if (childID == 0)
-			return "";
-
-		var comboBase:ComboBase = ComboBase(master);
-		var iterator:IViewCursor = comboBase.collectionIterator;
-		iterator.seek(CursorBookmark.FIRST, childID - 1);
-		var item:Object = iterator.current;
-
-		var mofn:String = " " + childID + " of " + comboBase.dataProvider.length;
-
-		if (typeof(item) != "object")
-			return item + mofn;
-
-		return !item.label ? item.data + mofn : item.label + mofn;
 	}

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


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

--- frameworks/projects/rpc/src/mx/messaging/events/ChannelEvent.as
+++ frameworks/projects/rpc/src/mx/messaging/events/ChannelEvent.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.messaging.events
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 14421
Author:   cframpto@adobe.com
Date:     2010-02-25T17:58:57.809794Z

Log Message:
-----------
Merge from 4.x mirroring PARB changes 14331, 14337, 14338.
Merge 14401 to fix clipping issue for right-aligned RichEditableText which had x < 0.
Merge 14402 to fix textAlignment issues for text with direction="rtl" for UIFTETextField and UITextField.

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</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/UITextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/mx/core/UIFTETextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/RichEditableTextContainerManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/mx/core/FTETextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>

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

--- frameworks/projects/spark/src/spark/core/SpriteVisualElement.as
+++ frameworks/projects/spark/src/spark/core/SpriteVisualElement.as
@@ -2000,14 +2000,14 @@
 	//  layoutDirection
 	//----------------------------------

-	private var _layoutDirection:String = "inherit";
+	private var _layoutDirection:String = null;

     /**
      *  @inheritDoc
      */
 	public function get layoutDirection():String
 	{
-        if (_layoutDirection != "inherit")
+        if (_layoutDirection != null)
             return _layoutDirection;

         const parentElt:IVisualElement = parent as IVisualElement;
@@ -2039,7 +2039,7 @@
         // set the _layoutFeatures.mirror flag.  Similarly, if mirroring isn't
         // required, then clear the _layoutFeatures.mirror flag.

-        const mirror:Boolean = (_layoutDirection != "inherit") && (_layoutDirection != parentElt.layoutDirection);
+        const mirror:Boolean = (_layoutDirection != null) && (_layoutDirection != parentElt.layoutDirection);
         if ((_layoutFeatures) ? (mirror != _layoutFeatures.mirror) : mirror)
         {
             if (_layoutFeatures == null)


Transferred from the Adobe Open Source Subversion Repository

Revision: 16972
Author:   clucier@adobe.com
Date:     2010-07-19T18:24:02.427299Z

Log Message:
-----------
Revert previous revision until I2 build has been created.

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>

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

--- frameworks/projects/spark/src/spark/core/SpriteVisualElement.as
+++ frameworks/projects/spark/src/spark/core/SpriteVisualElement.as
@@ -2042,8 +2042,7 @@
         // set the _layoutFeatures.mirror flag.  Similarly, if mirroring isn't
         // required, then clear the _layoutFeatures.mirror flag.

-        const mirror:Boolean = (parentElt.layoutDirection != null && _layoutDirection != null)
-            && (_layoutDirection != parentElt.layoutDirection);
+        const mirror:Boolean = (_layoutDirection != null) && (_layoutDirection != parentElt.layoutDirection);

         if ((_layoutFeatures) ? (mirror != _layoutFeatures.mirror) : mirror)
         {


[rest] Minor changes: creates constants for default request/response content types. Adds clearing statusCallback when client is free.

--- skein-rest/src/skein/rest/client/impl/DefaultRestClient.as
+++ skein-rest/src/skein/rest/client/impl/DefaultRestClient.as
@@ -42,6 +42,16 @@
     //
     //--------------------------------------------------------------------------

+    private static const DEFAULT_CONTENT_TYPE:String = "application/json";
+
+    private static const DEFAULT_RESPONSE_CONTENT_TYPE:String = DEFAULT_CONTENT_TYPE;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
     public function DefaultRestClient()
     {
         super();
@@ -179,7 +189,7 @@
     //  contentType
     //------------------------------------

-    private var _contentType:String = "application/json";
+    private var _contentType:String = DEFAULT_CONTENT_TYPE;

     public function contentType(value:String):RestClient
     {
@@ -204,7 +214,7 @@
         }
     }

-    private var _responseContentType:String = "application/json";
+    private var _responseContentType:String = DEFAULT_RESPONSE_CONTENT_TYPE;

     skein_internal function setResponseContentType(value:String):void
     {
@@ -565,8 +575,8 @@
         _headers = null;
         _params = null;
         _fields = null;
-        _contentType = "application/json";
-        _responseContentType = "application/json";
+        _contentType = DEFAULT_CONTENT_TYPE;
+        _responseContentType = DEFAULT_RESPONSE_CONTENT_TYPE;
         _accessTokenKey = null;
         _accessTokenValue = null;
         accessTokenSpecified = false;
@@ -578,6 +588,7 @@
         resultCallback = null;
         progressCallback = null;
         errorCallback = null;
+        statusCallback = null;
         headerCallbacks = {};

         stubValue = null;


updated TorusGeometry constructor to get a rounder torus

--- src/aerys/minko/render/geometry/primitive/TorusGeometry.as
+++ src/aerys/minko/render/geometry/primitive/TorusGeometry.as
@@ -22,8 +22,8 @@

 		public function TorusGeometry(radius				: Number	= .375,
 									  tube					: Number	= .125,
-									  segmentsR				: uint		= 10,
-									  segmentsT				: uint		= 8,
+									  segmentsR				: uint		= 14,
+									  segmentsT				: uint		= 13,
 									  arc					: Number	= Math.PI * 2.,
 									  withUVs				: Boolean	= true,
 									  withNormals			: Boolean	= true,


Change the name of function "go" to "main".

--- swfcat.as
+++ swfcat.as
@@ -64,10 +64,11 @@
                 return;
             }

-            go();
-        }
-
-        private function go():void
+            main();
+        }
+
+        /* The main logic begins here, after start-up issues are taken care of. */
+        private function main():void
         {
             s_f = new Socket();


Fit Array/Vector error in FlexRendererBase

--- src/org/flintparticles/common/renderers/FlexRendererBase.as
+++ src/org/flintparticles/common/renderers/FlexRendererBase.as
@@ -126,7 +126,7 @@
 					if( _emitters.length == 0 )
 					{
 						removeEventListener( Event.RENDER, updateParticles );
-						renderParticles( [] );
+						renderParticles( new <Particle>[] );
 					}
 					else if( stage )
 					{


Transferred from the Adobe Open Source Subversion Repository

Revision: 4593
Author:   jimurphy@adobe.com
Date:     2009-01-20T14:40:09.728921Z

Log Message:
-----------
Merged 3.x revisions 4591

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<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/controls/ColorPicker.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/SWFLoader.as</path>

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

--- frameworks/projects/framework/src/mx/managers/SystemManager.as
+++ frameworks/projects/framework/src/mx/managers/SystemManager.as
@@ -2832,14 +2832,17 @@
 	private function initHandler(event:Event):void
 	{
 		// we can still be the top level root if we can access our
-		// parent and get a positive response to the query
+		// parent and get a positive response to the query or
+		// or there is not a listener for the new application event
+		// that SWFLoader always adds.
 		if (!isStageRoot)
 		{
 			if (root.loaderInfo.parentAllowsChild)
 			{
 				try
 				{
-					if (!parent.dispatchEvent(new Event("mx.managers.SystemManager.isBootstrapRoot", false, true)))
+                    if (!parent.dispatchEvent(new Event("mx.managers.SystemManager.isBootstrapRoot", false, true)) ||
+                        !root.loaderInfo.sharedEvents.hasEventListener(SWFBridgeEvent.BRIDGE_NEW_APPLICATION))
 						isBootstrapRoot = true;
 				}
 				catch (e:Error)
@@ -2873,9 +2876,11 @@

 		// every SM has to have this listener in case it is the SM for some child AD that contains a manager
 		// and the parent ADs don't have that manager.
-		getSandboxRoot().addEventListener(InterManagerRequest.INIT_MANAGER_REQUEST, initManagerHandler, false, 0, true);
+		var sbRoot:DisplayObject = getSandboxRoot();
+		sbRoot.addEventListener(InterManagerRequest.INIT_MANAGER_REQUEST, initManagerHandler, false, 0, true);
+
 		// once managers get initialized, they bounce things off the sandbox root
-		if (getSandboxRoot() == this)
+		if (sbRoot == this)
 		{
 			addEventListener(InterManagerRequest.SYSTEM_MANAGER_REQUEST, systemManagerHandler);
 			addEventListener(InterManagerRequest.DRAG_MANAGER_REQUEST, multiWindowRedispatcher);
@@ -4821,14 +4826,16 @@
 		if (!topLevel && topLevelSystemManager)
 			return topLevelSystemManager.useSWFBridge();

+		var sbRoot:DisplayObject = getSandboxRoot();
+
 		// if we're toplevel and we aren't the sandbox root, we need a bridge
-		if (topLevel && getSandboxRoot() != this)
+		if (topLevel && sbRoot != this)
 			return true;

 		// we also need a bridge even if we're the sandbox root
 		// but not a stage root, but our parent loader is a bootstrap
 		// that is not the stage root
-		if (getSandboxRoot() == this)
+		if (sbRoot == this)
 		{
 			try
 			{
@@ -4916,7 +4923,7 @@
             // test to see if parent is a Bootstrap
             if (parent && !parent.dispatchEvent(new Event("mx.managers.SystemManager.isBootstrapRoot", false, true)))
                 return this;
-  			var lastParent:DisplayObject = parent;
+  			var lastParent:DisplayObject = this;
 			while (parent)
 			{
 				if (parent is Stage)
@@ -4936,7 +4943,12 @@
 				    if (!loaderInfo.childAllowsParent)
 				        return loaderInfo.content;
 				}
-				lastParent = parent;
+
+				// If an object is listening for system manager request we assume it is a sandbox
+				// root. If not, don't assign lastParent to this parent because it may be a
+				// non-Flex application. We only want Flex apps to be returned as sandbox roots.
+				if (parent.hasEventListener(InterManagerRequest.SYSTEM_MANAGER_REQUEST))
+				    lastParent = parent;
 				parent = parent.parent;
 			}
 		}
@@ -5098,8 +5110,6 @@
 			forms.splice(index, 1);
 			forms.push(form);
 		}
-		else
-			throw new Error();	// should never get here

 	}


Transferred from the Adobe Open Source Subversion Repository

Revision: 18635
Author:   aharui@adobe.com
Date:     2010-11-17T00:18:36.469040Z

Log Message:
-----------
Add estimatedSizes to the layout infrastructure to better deal with text reflow.
Add new events to layout infrastructure to deal with caching of size information

QE notes: New APIs and Interfaces
Doc notes: New APIs and interfaces
Bugs: SDK-27226, SDK-26155, SDK-25483, SDK-23621, SDK-27225, SDK-26993, SDK-25535, SDK-25521
Reviewer: Evtim
Tests run: checkintests mustella full run
Is noteworthy for integration: yes

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/TileLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/layoutClasses/PriorityQueue.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ScrollerLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/core/Application.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/RichEditableText.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGroup.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/layouts/BasicLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Group.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/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/events/FlexEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/IContainerInvalidating.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/scripts/FormTestScript.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/ILayoutManagerContainerClient.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DefaultItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/VerticalLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/IStyleManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/ILayoutElement.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/TextFieldGridItemRendererInclude.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/core/Container.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/LayoutManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Application.as</path>

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

--- frameworks/projects/framework/src/mx/styles/StyleProtoChain.as
+++ frameworks/projects/framework/src/mx/styles/StyleProtoChain.as
@@ -19,6 +19,7 @@
 import flash.utils.getQualifiedSuperclassName;

 import mx.core.FlexGlobals;
+import mx.core.IContainerInvalidating;
 import mx.core.IFlexDisplayObject;
 import mx.core.IFlexModule;
 import mx.core.IFlexModuleFactory;
@@ -766,8 +767,12 @@
         if (parent)
         {
             if (styleProp == "styleName" || styleManager.isParentSizeInvalidatingStyle(styleProp))
+            {
                 parent.invalidateSize();
-
+                if (parent is IContainerInvalidating &&
+                    (styleProp == "styleName" || styleManager.isParentSizeInvalidatingStyle(styleProp)))
+                    (IContainerInvalidating(parent)).invalidateEstimatedSizesOfChildren();
+            }
             if (styleProp == "styleName" || styleManager.isParentDisplayListInvalidatingStyle(styleProp))
                 parent.invalidateDisplayList();
         }


Transferred from the Adobe Open Source Subversion Repository

Revision: 23246
Author:   cframpto@adobe.com
Date:     2011-12-20T17:40:08.069454Z

Log Message:
-----------
Rollback 23243.  If comment followed header it was stripped as well.

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

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

--- frameworks/projects/mx/src/mx/events/SliderEventClickTarget.as
+++ frameworks/projects/mx/src/mx/events/SliderEventClickTarget.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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
 {