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

--- frameworks/projects/mx/src/mx/controls/dataGridClasses/DataGridBase.as
+++ frameworks/projects/mx/src/mx/controls/dataGridClasses/DataGridBase.as
@@ -72,6 +72,11 @@
  *    showHeaders="true|false"
  *  />
  *

+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class DataGridBase extends ListBase implements IFontContextComponent
 {
@@ -85,6 +90,11 @@

     /**
      *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function DataGridBase()
     {
@@ -110,6 +120,11 @@
      *  Item renderers are indexed by their DisplayObject name.
      *
      *  @see mx.controls.listClasses.ListBase#rowMap
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     protected var columnMap:Object;

@@ -121,36 +136,71 @@
      *  The table is a Dictionary where the entries are Arrays indexed
      *  by the actual DataGridColumn (not the column's dataField or other
      *  properties), and each array is a stack of currently unused renderers.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     protected var freeItemRenderersTable:Dictionary;

     /**
      *  The set of visible columns.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     mx_internal var visibleColumns:Array;

     /**
      *  The set of visible locked columns.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     mx_internal var visibleLockedColumns:Array;

     /**
      *  The header sub-component.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     protected var header:DataGridHeaderBase;

     /**
      *  The class to use as the DGHeader.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     mx_internal var headerClass:Class = DataGridHeader;

     /**
      *
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     protected var headerMask:Shape;

     /**
      *  The header sub-component for locked columns.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     protected var lockedColumnHeader:DataGridHeaderBase;

@@ -158,6 +208,11 @@

     /**
      *  The sub-component that contains locked rows.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     protected var lockedRowContent:DataGridLockedRowContentHolder;

@@ -165,6 +220,11 @@

     /**
      *  The sub-component that contains locked rows for locked columns.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     protected var lockedColumnAndRowContent:DataGridLockedRowContentHolder;

@@ -172,6 +232,11 @@

     /**
      *  The sub-component that contains locked columns.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     protected var lockedColumnContent:ListBaseContentHolder;

@@ -225,6 +290,11 @@
     /**
      *  Flag specifying that the set of visible columns and/or their sizes needs to
      *  be recomputed.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     mx_internal var columnsInvalid:Boolean = true;

@@ -285,6 +355,11 @@

     /**
      *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get fontContext():IFlexModuleFactory
     {
@@ -323,6 +398,11 @@
      *  the headers. If not set explicitly,
      *  the height will based on style settings and the header
      *  renderer.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get headerHeight():Number
     {
@@ -361,6 +441,11 @@
      *  in view. Not supported by all list classes.
      *
      *  @default 0
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get lockedColumnCount():int
     {
@@ -400,6 +485,11 @@
      *  Rows above this one remain fixed in view.
      *
      *  @default 0
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get lockedRowCount():int
     {
@@ -437,6 +527,11 @@
      *  If true, the control shows column headers.
      *
      *  @default true
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get showHeaders():Boolean
     {
@@ -736,6 +831,11 @@
      *  @param contentHolder The set of rows (locked rows, regular rows).
      *
      *  @param rowNum The row number.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     protected function prepareRowArray(contentHolder:ListBaseContentHolder, rowNum:int):void
     {
@@ -772,6 +872,11 @@
      *  @param uid The uid for the data.
      *
      *  @return Height of the row.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     protected function makeRow(contentHolder:ListBaseContentHolder, rowNum:int, left:Number, right:Number, yy:Number, data:Object, uid:String):Number
     {
@@ -840,6 +945,11 @@
      *
      *  @param contentHolder The set of rows (locked rows, regular rows).
      *  @param rowNum The row number.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     protected function clearRow(contentHolder:ListBaseContentHolder, rowNum:int):void
     {
@@ -882,6 +992,11 @@
      *  @param rowNum The row number.
      *  @param yy The y position of the row.
      *  @param hh The height of the row.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     protected function adjustRow(contentHolder:ListBaseContentHolder, rowNum:int, yy:Number, hh:Number):void
     {
@@ -969,6 +1084,11 @@
      *  @param yy The y position of the row.
      *  @param hh The height of the row.
      *  @param uid The UID for the data.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     protected function setRowInfo(contentHolder:ListBaseContentHolder, rowNum:int, yy:Number, hh:Number, uid:String):void
     {
@@ -994,6 +1114,11 @@
      *  Removes extra row from the end of the contentHolder.
      *
      *  @param contentHolder The set of rows (locked rows, regular rows).
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     protected function removeExtraRow(contentHolder:ListBaseContentHolder):void
     {
@@ -1037,6 +1162,11 @@
      *  @param uid The uid for the data.
      *
      *  @return The renderer for this column and row.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     protected function setupColumnItemRenderer(c:DataGridColumn, contentHolder:ListBaseContentHolder,
                     rowNum:int, colNum:int, data:Object, uid:String):IListItemRenderer
@@ -1086,6 +1216,11 @@
      *  @param yy The y position.
      *
      *  @return Size of the renderer as a Point.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     protected function layoutColumnItemRenderer(c:DataGridColumn, item:IListItemRenderer, xx:Number, yy:Number):Point
     {
@@ -1116,6 +1251,11 @@
      *  it is the selection caret.
      *  @param transition true if the selection state should fade in
      *  via an effect.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     protected function drawVisibleItem(uid:String,
                                        selected:Boolean = false,
@@ -1174,6 +1314,11 @@
      *  Redraws the renderer synchronously.
      *
      *  @param r The renderer;
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     protected function updateRendererDisplayList(r:IListItemRenderer):void
     {
@@ -1314,6 +1459,11 @@
      *  @param column The column associated with this item.
      *
      *  @return A newly constructed ListData object.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     protected function makeListData(data:Object, uid:String,
         rowNum:int, columnNum:int, column:DataGridColumn):BaseListData
@@ -1360,6 +1510,11 @@
      *  renderers in visible columns.
      *
      *  @return The row height, in pixels.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     protected function calculateRowHeight(data:Object, hh:Number, skipVisible:Boolean = false):Number
     {
@@ -1385,6 +1540,11 @@
      *  the DataGridColumn instance.
      *
      *  @return The item renderer.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function createColumnItemRenderer(c:DataGridColumn, forHeader:Boolean, data:Object):IListItemRenderer
     {
@@ -1450,6 +1610,11 @@
      *
      *  @return true if the value of the column's headerWordWrap property is true, or
      *  false if the value is false.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     mx_internal function columnHeaderWordWrap(c:DataGridColumn):Boolean
     {
@@ -1468,6 +1633,11 @@
      *
      *  @return true if the value of the column's wordWrap property is true, or
      *  false if the value is false.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     mx_internal function columnWordWrap(c:DataGridColumn):Boolean
     {
@@ -1516,12 +1686,22 @@
     /**
      *  The DisplayObject that contains the graphics that indicates
      *  which renderer is highlighted for lockedColumns.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     protected var columnHighlightIndicator:Sprite;

     /**
      *  The DisplayObject that contains the graphics that indicates
      *  which renderer is the caret for lockedColumns.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     protected var columnCaretIndicator:Sprite;

@@ -1752,6 +1932,11 @@
     /**
      *  Determines the column under the mouse for dropping a column, if any.
      *  This method only checks horizontal position, and assumes the y value is within headers.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     mx_internal function getAllVisibleColumns():Array
     {
@@ -2323,6 +2508,11 @@
      *
      *  @param ctrlKey true if the Ctrl key was held down when
      *  the keyboard key was pressed
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     override protected function moveSelectionVertically(code:uint, shiftKey:Boolean,
                                                ctrlKey:Boolean):void
@@ -2517,6 +2707,11 @@
      *  This method is called by the keyboard selection handlers
      *  and by the updateDisplayList() method in case the
      *  keyboard selection handler received a page fault while scrolling to get more items.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     override protected function finishKeySelection():void
     {
@@ -2611,6 +2806,11 @@
      *
      *  @return A Point object. The x property is the columnIndex
      *  and the y property is the rowIndex.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     override protected function itemRendererToIndices(item:IListItemRenderer):Point
     {


Transferred from the Adobe Open Source Subversion Repository

Revision: 13173
Author:   gosmith@adobe.com
Date:     2009-12-23T00:22:15.529877Z

Log Message:
-----------
Added ASDoc for the Spark SpinnerAccImpl, NumericStepperAccImpl, and SliderBaseAccImpl, based on the opensource specs. Also made minor edits to ASDoc in other Spark acc impl classes.

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/SliderBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/SpinnerAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/DropDownListBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/NumericStepperAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ButtonBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ButtonBarBaseAccImpl.as</path>

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

--- frameworks/projects/spark/src/spark/accessibility/SliderBaseAccImpl.as
+++ frameworks/projects/spark/src/spark/accessibility/SliderBaseAccImpl.as
@@ -31,8 +31,119 @@
 [ResourceBundle("components")]

 /**
- *  SliderBaseAccImpl is a subclass of AccessibilityImplementation
- *  which implements accessibility for the SliderBase class.
+ *  SliderBaseAccImpl is the accessibility implementation class
+ *  for spark.components.supportClasses.SliderBase.
+ *
+ *
The Spark HSlider and VSlider components extend SliderBase
+ *  and use SlideBaseAccImpl as their accessibility implementation
+ *  class.
+ *  For convenience, the rest of this description uses the word
+ *  Slider to mean either HSlider or VSlider, even though there
+ *  is no Spark class named Slider.

+ *
+ *
When a Slider is created,
+ *  its accessibilityImplementation property
+ *  is set to an instance of this class.
+ *  The Flash Player then uses this class to allow MSAA clients
+ *  such as screen readers to see and manipulate the Slider.
+ *  See the mx.accessibility.AccImpl and
+ *  flash.accessibility.AccessibilityImplementation classes
+ *  for background information about accessibility implementation
+ *  classes and MSAA.

+ *
+ *
Children

+ *
+ *
A Slider has 3 MSAA children:
+ *

+ *
Clickable area to the left (or bottom) of thumb

+ *
Thumb

+ *
Clickable area to the right (or top) of thumb

+ *

+ *
+ *
Role

+ *
+ *
The MSAA Role of a Slider is ROLE_SYSTEM_SLIDER.

+ *
+ *
The Role of each child is:
+ *

+ *
ROLE_SYSTEM_PUSHBUTTON

+ *
ROLE_SYSTEM_INDICATOR

+ *
ROLE_SYSTEM_PUSHBUTTON

+ *

+ *
+ *
Name

+ *
+ *
The MSAA Name of a Slider is, by default, an empty string.
+ *  When wrapped in a FormItem element, the Name is the FormItem's label.
+ *  To override this behavior,
+ *  set the Slider's accessibilityName property.

+ *
+ *
The Name of each child comes from a locale-dependent resource.
+ *  In the en_US locale, the names are:
+ *

+ *
"Page left" for HSlider; "Page up" for VSlider

+ *
"Position"

+ *
"Page right" for HSlider; "Page down" for VSlider

+ *

+ *
+ *
When the Name of the Slider or one of its child parts changes,
+ *  a Slider dispatches the MSAA event EVENT_OBJECT_NAMECHANGE
+ *  with the proper childID for the part or 0 for itself.

+ *
+ *
Description

+ *
+ *
The MSAA Description of a Slider is, by default, the empty string,
+ *  but you can set the Slider's accessibilityDescription
+ *  property.

+ *
+ *
The Description of each child part is the empty string.

+ *
+ *
State

+ *
+ *
The MSAA state of a Slider is a combination of:
+ *

+ *
STATE_SYSTEM_UNAVAILABLE (when enabled is false)

+ *
STATE_SYSTEM_FOCUSABLE (when enabled is true)

+ *
STATE_SYSTEM_FOCUSED
+ *    (when enabled is true and the Slider has focus)

+ *

+ *
+ *
The State of each child part is:
+ *

+ *
STATE_SYSTEM_UNAVAILABLE (when enabled is false)

+ *

+ *
+ *
When the State of the Slider or one of its child parts changes,
+ *  a Slider dispatches the MSAA event EVENT_OBJECT_STATECHANGE
+ *  with the proper childID for the part or 0 for itself.

+ *
+ *
Value

+ *
+ *
The MSAA Value of a Slider is a number between 0 and 100.

+ *
+ *
The child parts do not have MSAA values.

+ *
+ *
When the Value of the Slider changes,
+ *  a Slider dispatches the MSAA event EVENT_OBJECT_VALUECHANGE.

+ *
+ *
Location

+ *
+ *
The MSAA Location of a Slider or its thumb is its bounding rectangle.
+ *  For the two children representing the trackbar regions adjacent
+ *  to the thumb, the slider's bounding rectangle is returned.

+ *
+ *
Default Action

+ *
+ *
A Slider and its child parts have no default action.

+ *
+ *
Focus

+ *
+ *
A Slider accepts focus.
+ *  When it does so, it dispatches the MSAA event EVENT_OBJECT_FOCUS.

+ *
+ *
Selection

+ *
+ *
A Slider does not support selection in the MSAA sense.

  *
  *  @langversion 3.0
  *  @playerversion Flash 10


Transferred from the Adobe Open Source Subversion Repository

Revision: 11657
Author:   rfrishbe@adobe.com
Date:     2009-11-11T17:24:23.830556Z

Log Message:
-----------
We need to set menu's automationParent/automationOwner.  This is needed for automation, and this was already in the MX Window/WindowedApplication but not in Spark Window/WIndowedApplication

QE notes: -
Doc notes: -
Bugs: SDK-23798
Reviewer: Darrell
Tests run: checkintest
Is noteworthy for integration: No

Modified Paths:
--------------
<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/airframework/src/spark/components/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as</path>

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

--- frameworks/projects/airframework/src/mx/core/Window.as
+++ frameworks/projects/airframework/src/mx/core/Window.as
@@ -1438,8 +1438,8 @@
     {
         if (_menu)
         {
+            _menu.automationParent = null;
             _menu.automationOwner = null;
-            _menu.automationParent = null;
         }

         _menu = value;


Transferred from the Adobe Open Source Subversion Repository

Revision: 16790
Author:   cframpto@adobe.com
Date:     2010-07-02T13:38:06.396006Z

Log Message:
-----------
The following changes apply to Spark DataGrid only.   Code reviews have been deferred until the implementation is closer to completion.

SDK-26847.  Add metadata for DataGrid.selectionMode and Grid.selectionMode.

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Grid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/GridContainerBase.as</path>

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

--- frameworks/projects/spark/src/spark/components/Grid.as
+++ frameworks/projects/spark/src/spark/components/Grid.as
@@ -1367,6 +1367,7 @@
         //----------------------------------

         [Bindable("selectionModeChanged")]
+        [Inspectable(category="General", enumeration="none,row,multipleRows,cell,multipleCells", defaultValue="row")]

         /**
          *  @copy spark.components.supportClasses.GridSelection#selectionMode


Transferred from the Adobe Open Source Subversion Repository

Revision: 5181
Author:   dsubrama@adobe.com
Date:     2009-03-05T22:40:12.746581Z

Log Message:
-----------
List work:

-Introduction of two new interfaces that formalize communication between a component and its renderers: IItemRenderer, IItemRendererOwner
-Removed ISelectableRenderer from use by ButtonBar. ButtonBar now works with the above-mentioned interfaces.
-Added labelField/labelFunction to ListBase - usable by List and ButtonBar.
-Introduced new utility class, LabelUtils, which returns the correct text for a data item's renderer given a labelField and labelFunction.
-Removed data-binding from FxDefaultItemRenderer - the new interfaces determine how a component stuffs the right text into the renderer's optional part, labelElement.

Checkintests: Pass
Mustella: ButtonBar and List tests pass
Reviewer: Ryan

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxDefaultItemRenderer.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/ItemRenderer.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/core/ISelectableRenderer.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/utils/LabelUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxList.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/IItemRendererOwner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxToggleButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/ButtonBarButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxButtonBar.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/IItemRenderer.as</path>

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

--- frameworks/projects/spark/src/spark/components/List.as
+++ frameworks/projects/spark/src/spark/components/List.as
@@ -17,14 +17,16 @@
 import flash.ui.Keyboard;

 import mx.components.baseClasses.FxListBase;
-import mx.core.ClassFactory;
+import mx.core.ClassFactory;
+import mx.components.IItemRenderer;
 import mx.core.IVisualElement;
 import mx.events.RendererExistenceEvent;
+import mx.events.FlexEvent;
 import mx.layout.HorizontalLayout;
 import mx.layout.VerticalLayout;
 import mx.managers.IFocusManagerComponent;
 import mx.skins.spark.FxDefaultItemRenderer;
-import flash.geom.Point;
+

 /**
  *  @copy mx.components.baseClasses.GroupBase#alternatingItemColors
@@ -424,12 +426,6 @@

     //--------------------------------------------------------------------------
     //
-    //  Methods
-    //
-    //--------------------------------------------------------------------------
-
-    //--------------------------------------------------------------------------
-    //
     //  Private Methods
     //
     //--------------------------------------------------------------------------
@@ -522,7 +518,19 @@
         var renderer:Object = event.renderer;

         if (renderer)
-            renderer.addEventListener("click", item_clickHandler);
+        {
+        	renderer.addEventListener("click", item_clickHandler);
+        	renderer.addEventListener("dataChange", item_dataChangeHandler);
+        	if (renderer is IVisualElement)
+        		IVisualElement(renderer).owner = this;
+
+        	//If the labelElement part has been defined on the renderer,
+    		//push the right text in.
+        	if ((renderer is ItemRenderer) && (renderer.labelElement))
+        	{
+        		renderer.labelElement.text = itemToLabel(renderer.data);
+        	}
+        }

         if (isItemIndexSelected(index))
             itemSelected(index, true);
@@ -538,7 +546,10 @@
         var renderer:Object = event.renderer;

         if (renderer)
+        {
             renderer.removeEventListener("click", item_clickHandler);
+            renderer.removeEventListener("dataChange", item_dataChangeHandler);
+        }
     }

     /**
@@ -550,6 +561,24 @@
         // Multiple selection needs to be added here....

         selectedIndex = dataGroup.getElementIndex(event.currentTarget as IVisualElement);
+    }
+
+    /**
+     *  @private
+     *  Called when an item's data has changed.
+     */
+    private function item_dataChangeHandler(event:FlexEvent):void
+    {
+    	var renderer:Object = event.target;
+    	if (renderer)
+    	{
+    		//If the labelElement part has been defined on the renderer,
+    		//push the right text in based on the new data.
+        	if ((renderer is ItemRenderer) && (renderer.labelElement))
+        	{
+        		renderer.labelElement.text = itemToLabel(renderer.data);
+        	}
+     	}
     }

     /**


Import OccupantInfo. Now that other things are fixed, the compiler can notice
that it has no idea what I'm talking about.

git-svn-id: a3e1eb16dde062992de22c830ed8045c8013209a@824 c613c5cb-e716-0410-b11b-feb51c14d237

--- src/as/com/threerings/parlor/game/client/GameController.as
+++ src/as/com/threerings/parlor/game/client/GameController.as
@@ -29,6 +29,7 @@

 import com.threerings.crowd.client.PlaceController;
 import com.threerings.crowd.data.BodyObject;
+import com.threerings.crowd.data.OccupantInfo;
 import com.threerings.crowd.data.PlaceConfig;
 import com.threerings.crowd.data.PlaceObject;
 import com.threerings.crowd.util.CrowdContext;


Transferred from the Adobe Open Source Subversion Repository

Revision: 23247
Author:   cframpto@adobe.com
Date:     2011-12-20T19:21:13.134833Z

Log Message:
-----------
Remove ADOBE SYSTEMS license and replace with Apache license in headers - frameworks.  A 2nd pass will be needed to get the files not handled up by the scripts.

Modified Paths:
--------------
4959 paths were modified

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

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


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

--- frameworks/projects/framework/src/mx/printing/FlexPrintJobScaleType.as
+++ frameworks/projects/framework/src/mx/printing/FlexPrintJobScaleType.as
@@ -0,0 +1,69 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.printing
+{
+
+/**
+ *  Values for the scaleType property
+ *  of the FlexPrintJob.addObject() method parameter.
+ *
+ *  @see FlexPrintJob#addObject()
+ */
+public final class FlexPrintJobScaleType
+{
+	include "../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Class constants
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Scales the object to fill at least one page completely;
+	 *  that is, it selects the larger of the MATCH_WIDTH or MATCH_HEIGHT
+	 *  scale types.
+	 */
+	public static const FILL_PAGE:String = "fillPage";
+
+	/**
+	 *  Scales the object to fill the available page height.
+	 *  If the resulting object width exceeds the page width, the output
+	 *  spans multiple pages.
+	 */
+	public static const MATCH_HEIGHT:String = "matchHeight";
+
+	/**
+	 *  Scales the object to fill the available page width.
+	 *  If the resulting object height exceeds the page height, the output
+	 *  spans multiple pages.
+	 */
+	public static const MATCH_WIDTH:String = "matchWidth";
+
+	/**
+	 *  Does not scale the output.
+	 *  The printed page has the same dimensions as the object on the screen.
+	 *  If the object height, width, or both dimensions exceed the page width
+	 *  or height, the output spans multiple pages.
+	 */
+	public static const NONE:String = "none";
+
+	/**
+	 *  Scales the object to fit on a single page, filling one dimension;
+	 *  that is, it selects the smaller of the MATCH_WIDTH or MATCH_HEIGHT
+	 *  scale types.
+	 */
+	public static const SHOW_ALL:String = "showAll";
+}
+
+}
+


Transferred from the Adobe Open Source Subversion Repository

Revision: 23247
Author:   cframpto@adobe.com
Date:     2011-12-20T19:21:13.134833Z

Log Message:
-----------
Remove ADOBE SYSTEMS license and replace with Apache license in headers - frameworks.  A 2nd pass will be needed to get the files not handled up by the scripts.

Modified Paths:
--------------
4959 paths were modified

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

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


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

+/**
+ *  Specifies the alpha transparency value of the focus skin.
+ *
+ *  @default 0.4
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
 [Style(name="focusAlpha", type="Number", inherit="no")]

 /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 10633
Author:   dloverin@adobe.com
Date:     2009-09-28T13:24:30.559033Z

Log Message:
-----------
Use styleManager instance instead of StyleManager singleton (framework and compiler generated code)

Modified compiler generated style code for the FlexInit class. The style related changes are only available with the -keep option. AST generation is coming later.

Only the framework project is changed here. The other projects are will be changed soon.

QE notes: None.
Doc notes: None.
Bugs:
Reviewer: Alex and Paul
Tests run: checkintests, all Mustella tests(no new failures)
Is noteworthy for integration: no.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ButtonBarButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/HaloBorder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/accordionClasses/AccordionHeader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/utilityClasses/CanvasLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateChooser.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/dragClasses/DragProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ScrollArrowSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/configuration_en.properties</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/CompilerConfiguration.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ProgressIndeterminateSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/DateChooserMonthArrowSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/SliderThumbSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/DividedBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/DragManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ScrollThumbSkin.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/styles/StyleManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/IStyleModule.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/Form.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/IStyleManager2.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/PreLink.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/gen/ClassDefLib.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ProgressTrackSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/TitleBackground.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/NumericStepperDownSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/PopUpButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/ProgrammaticSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/TabSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/textClasses/TextRange.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/LayoutContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/AccordionHeaderSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/CheckBoxIcon.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/NumericStepperUpSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/RadioButtonIcon.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/states/SetStyle.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ComboBoxArrowSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridHeaderBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/FormItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridHeader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/MenuBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ProgressBarSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/BusyCursor.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/controls/MenuBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Tree.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSStyleDeclaration.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Accordion.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/SliderTrackSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleModule.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ScrollTrackSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/DataGridHeaderBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/modules/ModuleManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/SetStyleActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleDef.vm</path>

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

--- frameworks/projects/framework/src/mx/managers/DragManagerImpl.as
+++ frameworks/projects/framework/src/mx/managers/DragManagerImpl.as
@@ -22,6 +22,7 @@

 import mx.core.DragSource;
 import mx.core.IFlexDisplayObject;
+import mx.core.IFlexModuleFactory;
 import mx.core.IUIComponent;
 import mx.core.UIComponentGlobals;
 import mx.core.mx_internal;
@@ -272,7 +273,8 @@
 		{
 			// No drag image specified, use default
 			var dragManagerStyleDeclaration:CSSStyleDeclaration =
-				StyleManager.getStyleDeclaration("mx.managers.DragManager");
+				StyleManager.getStyleManager(sm as IFlexModuleFactory).
+                getStyleDeclaration("mx.managers.DragManager");
 			var dragImageClass:Class =
 				dragManagerStyleDeclaration.getStyle("defaultDragImageSkin");
 			dragImage = new dragImageClass();


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

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

 package mx.controls.alertClasses
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 3341
Author:   rfrishbe@adobe.com
Date:     2008-09-24T23:10:20.245436Z

Log Message:
-----------
Changing the definition of some methods in SkinnableComponent.  So instead of:

protected function partAdded(partName:String, instance:*):void

We now have:

protected function partAdded(partName:String, instance:Object):void

Technically this just means we can't support the value of "undefined" anymore.  This change was made to partAdded(), partRemoved(), createPartInstance(), removePartInstance(), and getDyanamicPartAt().

As I was making these changes in all the files that override these methods, I noticed Slider should have a partRemoved() method, so I added it.

I also made a minor change in Selector where there was a bug in the dataProvider collectionChange eventHandler.  Basically we were doing remove code on replace rather than remove.

QE: Yes - This will break (as in, it won't compile) some tests in SkinnableComponent.  Joann will change them soon after I checkin.
Doc: Yes
Bugs: SDK-16640, SDK-16709
Reviewer: Hans

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/DataComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/Spinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/TextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/TrackBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/SkinnableComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/Selector.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/ItemsComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/Scroller.as</path>

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

--- frameworks/projects/spark/src/spark/components/NumericStepper.as
+++ frameworks/projects/spark/src/spark/components/NumericStepper.as
@@ -75,7 +75,7 @@
 	/**
 	 *  @private
 	 */
-	override protected function partAdded(partName:String, instance:*):void
+	override protected function partAdded(partName:String, instance:Object):void
 	{
         super.partAdded(partName, instance);

@@ -89,7 +89,7 @@
     /**
      *  @private
      */
-	override protected function partRemoved(partName:String, instance:*):void
+	override protected function partRemoved(partName:String, instance:Object):void
 	{
         super.partRemoved(partName, instance);


no longer replacing undefined values with special strings.

--- WeaveAPI/src/JavaScript.as
+++ WeaveAPI/src/JavaScript.as
@@ -33,7 +33,7 @@
 	 * ExternalInterface generates the following invalid code: {Content-Type: "foo\"}.
 	 * The same problem occurs when returning an Object from an ActionScript function that was invoked
 	 * from JavaScript. This class works around the limitation by using JSON.stringify() and JSON.parse()
-	 * and escaping backslashes in resulting JSON strings. The values undefined, NaN, Infinity, -Infinity
+	 * and escaping backslashes in resulting JSON strings. The values NaN, Infinity, -Infinity
 	 * are preserved.
 	 *
 	 * This class also provides an objectID accessor which is more reliable than ExternalInterface.objectID,
@@ -87,7 +87,7 @@
 		private static const JSON_LOOKUP:String = "_jsonLookup";

 		/**
-		 * A random String which is highly unlikely to appear in any String value.  Used as a suffix for undefined, NaN, -Infinity, Infinity.
+		 * A random String which is highly unlikely to appear in any String value.  Used as a suffix for NaN, -Infinity, Infinity.
 		 */
 		private static const JSON_SUFFIX:String = ';' + Math.random() + ';' + new Date();

@@ -181,7 +181,7 @@
 			initialized = true;

 			// save special IDs for values not supported by JSON
-			for each (var symbol:* in [undefined, NaN, Infinity, -Infinity])
+			for each (var symbol:Object in [NaN, Infinity, -Infinity])
 				_jsonLookup[symbol + JSON_SUFFIX] = symbol;

 			// determine if backslashes need to be escaped
@@ -212,7 +212,7 @@
 					"var flash = this;",
 					"var functionCounter = 0;",
 					"var lookup = flash[JSON_LOOKUP] = {};",
-					"var symbols = [undefined, NaN, Infinity, -Infinity];",
+					"var symbols = [NaN, Infinity, -Infinity];",
 					"for (var i in symbols)",
 					"    lookup[symbols[i] + JSON_SUFFIX] = symbols[i];",

@@ -225,9 +225,11 @@
 					"        }",
 					"        return value[JSON_FUNCTION_PREFIX];",
 					"    }",
-					"    if (value === undefined || (typeof value === 'number' && !isFinite(value)))",
+					"    if (typeof value === 'number' && !isFinite(value))",
 					"        return value + JSON_SUFFIX;",
-					"    return Array.isArray(value) && !(value instanceof Array) ? [].concat(value) : value;",
+					"    if (Array.isArray(value) && !(value instanceof Array))",
+					"        return Array.prototype.slice.call(value);",
+					"    return value;",
 					"};",

 					"flash[JSON_REVIVER] = function(key, value) {",
@@ -277,7 +279,7 @@
 		}

 		/**
-		 * Preserves primitive values not supported by JSON: undefined, NaN, Infinity, -Infinity
+		 * Preserves primitive values not supported by JSON: NaN, Infinity, -Infinity
 		 * Also looks up or generates an ID corresponding to a Function value.
 		 */
 		private static function _jsonReplacer(key:String, value:*):*
@@ -295,7 +297,7 @@
 				_needsReviving = true;
 				return id;
 			}
-			if (value === undefined || (typeof value === 'number' && !isFinite(value)))
+			if (value is Number && !isFinite(value as Number))
 			{
 				_needsReviving = true;
 				return value + JSON_SUFFIX;


Transferred from the Adobe Open Source Subversion Repository

Revision: 23247
Author:   cframpto@adobe.com
Date:     2011-12-20T19:21:13.134833Z

Log Message:
-----------
Remove ADOBE SYSTEMS license and replace with Apache license in headers - frameworks.  A 2nd pass will be needed to get the files not handled up by the scripts.

Modified Paths:
--------------
4959 paths were modified

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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 23247
Author:   cframpto@adobe.com
Date:     2011-12-20T19:21:13.134833Z

Log Message:
-----------
Remove ADOBE SYSTEMS license and replace with Apache license in headers - frameworks.  A 2nd pass will be needed to get the files not handled up by the scripts.

Modified Paths:
--------------
4959 paths were modified

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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 5101
Author:   gauravj@adobe.com
Date:     2009-02-27T05:22:45.887116Z

Log Message:
-----------
Update action script files with asdoc version tags.

QE Notes: None.
Doc Notes: Please review and update as necessary.
tests: checkintests

Modified Paths:
--------------
663 paths were modified

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

--- frameworks/projects/framework/src/mx/effects/easing/Elastic.as
+++ frameworks/projects/framework/src/mx/effects/easing/Elastic.as
@@ -18,6 +18,11 @@
  *  an exponentially decaying sine wave.
  *
  *  For more information, see http://www.robertpenner.com/profmx.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class Elastic
 {
@@ -46,6 +51,11 @@
      *  @param p Specifies the period of the sine wave.
      *
      *  @return Number corresponding to the position of the component.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
 	public static function easeIn(t:Number, b:Number,
 								  c:Number, d:Number,
@@ -92,6 +102,11 @@
      *  @param p Specifies the period of the sine wave.
      *
      *  @return Number corresponding to the position of the component.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
 	public static function easeOut(t:Number, b:Number,
 								   c:Number, d:Number,
@@ -139,6 +154,11 @@
      *  @param p Specifies the period of the sine wave.
      *
      *  @return Number corresponding to the position of the component.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
 	public static function easeInOut(t:Number, b:Number,
 									 c:Number, d:Number,


FLEX-26948 FLEX-14269 Fix RTE in code when thumbs is null or no sliders.

--- frameworks/projects/mx/src/mx/controls/sliderClasses/Slider.as
+++ frameworks/projects/mx/src/mx/controls/sliderClasses/Slider.as
@@ -1826,14 +1826,20 @@

         var isHorizontal:Boolean = (_direction == SliderDirection.HORIZONTAL);
         var numLabels:int = labelObjects ? labelObjects.numChildren : 0;
-        var numThumbs:int = thumbs ? thumbs.numChildren : 0;
         var trackMargin:Number = getStyle("trackMargin");
-        var widestThumb:Number = 6;
-        var firstThumb:SliderThumb = SliderThumb(thumbs.getChildAt(0));
-        if (thumbs && firstThumb)
-            widestThumb = firstThumb.getExplicitOrMeasuredWidth();
-
-        var trackLeftOffset:Number = widestThumb / 2; // Enough space for the thumb to rest at the edges
+		var firstThumbWidth:Number = 6;
+		var firstThumbHeight:Number = 0;
+        var firstThumb:SliderThumb;
+
+		if (thumbs && thumbs.numChildren > 0)
+			firstThumb = SliderThumb(thumbs.getChildAt(0));
+
+        if (thumbs && firstThumb) {
+			firstThumbWidth = firstThumb.getExplicitOrMeasuredWidth();
+			firstThumbHeight = firstThumb.getExplicitOrMeasuredHeight();
+		}
+
+        var trackLeftOffset:Number = firstThumbWidth / 2; // Enough space for the thumb to rest at the edges
         var trackRightOffset:Number = trackLeftOffset;

         var availSpace:Number;
@@ -1894,7 +1900,7 @@

         // Layout the thumbs' y positions.
         var tY:Number = track.y +
-                        (track.height - firstThumb.getExplicitOrMeasuredHeight()) / 2 +
+                        (track.height - firstThumbHeight) / 2 +
                         getStyle("thumbOffset");

         var n:int = _thumbCount;
@@ -1914,12 +1920,10 @@
             tLength = getStyle("tickLength");
         g.clear();
         g.beginFill(0,0);
-        var fullThumbHeight:Number = firstThumb.getExplicitOrMeasuredHeight();
-        var halfThumbHeight:Number = (!fullThumbHeight) ? 0 : (fullThumbHeight / 2);
         g.drawRect(track.x,
-                track.y - halfThumbHeight - tLength,
+                track.y - firstThumbHeight/2 - tLength,
                 track.width,
-                track.height + fullThumbHeight + tLength);
+                track.height + firstThumbHeight + tLength);
         g.endFill();

         if (_direction != SliderDirection.HORIZONTAL)