Transferred from the Adobe Open Source Subversion Repository

Revision: 18289
Author:   cframpto@adobe.com
Date:     2010-10-22T18:37:30.454222Z

Log Message:
-----------
Partial implementation of preserveSelection.  If preserveSelecton is true, the selection is only preserved if selectionMode is "singleCell" or "singleRow".  We are still trying to figure out if we can handle "multipleCells" and "multipleRows" efficiently enough to allow a large number of selected items to be preserved.

Fix error in RichEditableText ASdoc.

QE notes: right now, only preserves selection if selectionMode="singleCell" or "singleRow"
Doc notes:
Bugs:
Reviewer: Hans
Tests run: cyclone - Jody excluded the 6 tests that fail because of no "mutipleCell" or "multipleRow" support for preserveSelection
Is noteworthy for integration:

Modified Paths:
--------------
<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/spark/src/spark/components/gridClasses/GridSelection.as</path>

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

--- frameworks/projects/spark/src/spark/components/gridClasses/GridSelection.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridSelection.as
@@ -17,6 +17,7 @@
 import mx.core.mx_internal;
 import mx.events.CollectionEvent;
 import mx.events.CollectionEventKind;
+import mx.collections.ICollectionView;

 import spark.components.Grid;
 import spark.components.gridClasses.CellPosition;
@@ -81,6 +82,14 @@

     /**
      *  @private
+     *  If preserveSelection, and selectionMode is "singleRow" or "singleCell",
+     *  cache the dataItem that goes with the selection so we can find the
+     *  index of the selection after a collection refresh event.
+     */
+    private var selectedItem:Object;
+
+    /**
+     *  @private
      *  True if all cells are selected.  In this case, the data structures are
      *  all reset and the flag should be used to determine the selection.
      */
@@ -154,11 +163,12 @@
     private var _preserveSelection:Boolean = false;

     /**
-     *  If true, the selection will be preserved when the
-     *  dataProvider refreshes its collection.
-     *  The selection will be clipped if it includes rows or columns that no
-     *  longer exist after the refresh.  The selection sticks to its position,
-     *  not the data.
+     *  If true, and selectionMode is
+     *  GridSelectionMode.SINGLE_ROW or
+     *  GridSelectionMode.SINGLE_CELL, the selection will be
+     *  preserved when the dataProvider refreshes its collection,
+     *  if the corresponding item is contained in the collection after
+     *  the refresh event.
      *
      *  @default false
      *
@@ -181,6 +191,21 @@
             return;

         _preserveSelection = value;
+
+        selectedItem = null;
+
+        // If preserving the selection and there is currently a selection,
+        // save the corresponding data item.
+        if (_preserveSelection &&
+            (selectionMode == GridSelectionMode.SINGLE_ROW ||
+                selectionMode == GridSelectionMode.SINGLE_CELL) &&
+            selectionLength > 0)
+        {
+            if (selectionMode == GridSelectionMode.SINGLE_ROW)
+                selectedItem = grid.dataProvider.getItemAt(allRows()[0]);
+            else  // SINGLE_CELL
+                selectedItem = grid.dataProvider.getItemAt(allCells()[0].rowIndex);
+        }
     }

     //----------------------------------
@@ -874,7 +899,7 @@
         return mode == GridSelectionMode.SINGLE_CELL ||
                 mode == GridSelectionMode.MULTIPLE_CELLS;
     }
-
+
     /**
      *  @private
      */
@@ -975,6 +1000,7 @@
         cellRegions.length = 0;
         selectAllFlag = false;
         _selectionLength = 0;
+        selectedItem = null;
     }

     /**
@@ -1095,6 +1121,13 @@
         cellRegions.push(cr);

         _selectionLength = rowCount * columnCount;
+
+        if (preserveSelection &&
+            selectionMode == GridSelectionMode.SINGLE_ROW ||
+            selectionMode == GridSelectionMode.SINGLE_CELL)
+        {
+            selectedItem = grid.dataProvider.getItemAt(rowIndex);
+        }
     }

     /**
@@ -1132,6 +1165,8 @@
             // length.
             if (_selectionLength >= 0)
                 _selectionLength--;
+
+            selectedItem = null;
         }
     }

@@ -1302,40 +1337,38 @@
      *  The sort or filter on the collection changed.
      */
     private function dataProviderCollectionRefresh(event:CollectionEvent):void
-    {
+    {
         // Not preserving selection so this is similiar to a RESET.
-        if (!preserveSelection)
+        if (!selectedItem)
         {
             removeSelection();
             ensureRequiredSelection();
             return;
         }

-        const rowCount:int = getGridDataProviderLength();
-        var crIndex:int = 0
-        while (crIndex < cellRegions.length)
-        {
-            var cr:CellRect = cellRegions[crIndex];
-
-            // clip or remove any cell regions that extend beyond the
-            // new number of rows
-            if (cr.bottom > rowCount)
-            {
-                _selectionLength = -1;  // recalculate
-                if (cr.y >= rowCount)
-                {
-                    cellRegions.splice(crIndex, 1);
-                    continue;
-                }
-                else
-                {
-                    cr.height = rowCount - cr.y;
-                }
-            }
-            crIndex++;
-        }
-
-        ensureRequiredSelection();
+        // Is the selectedItem still in the collection?
+        const view:ICollectionView = event.currentTarget as ICollectionView;
+        if (view && view.contains(selectedItem))
+        {
+            // Selection is in view so move it to the new row location.
+            const newRowIndex:int = grid.dataProvider.getItemIndex(selectedItem);
+            if (selectionMode == GridSelectionMode.SINGLE_ROW)
+            {
+                internalSetCellRegion(newRowIndex);
+            }
+            else
+            {
+                var oldSelectedCell:CellPosition = allCells()[0];
+                internalSetCellRegion(newRowIndex, oldSelectedCell.columnIndex);
+            }
+        }
+        else
+        {
+            // Selection not in current view so remove selection.
+            removeSelection();
+            ensureRequiredSelection();
+            return;
+        }
     }

     /**
@@ -1607,49 +1640,13 @@

     /**
      *  @private
-     *  The sort or filter on the collection changed.  If the selectionMode is
-     *  cell-based, reset the selection.
+     *  The sort or filter on the collection changed. For columns, this is
+     *  the same as a "reset" event.
      */
     private function columnsCollectionRefresh(event:CollectionEvent):void
     {
-        // If no selectionMode or a row-based selectionMode, nothing to do.
-        if (!isCellSelectionMode())
-            return;
-
-        // Not preserving selection so this is similiar to a RESET.
-        if (!preserveSelection)
-        {
-            removeSelection();
-            ensureRequiredSelection();
-            return;
-        }
-
-        const columnCount:int = getGridColumnsLength();
-        var crIndex:int = 0
-        while (crIndex < cellRegions.length)
-        {
-            var cr:CellRect = cellRegions[crIndex];
-
-            // clip or remove any cell regions that extend beyond the
-            // new number of columns
-            if (cr.right > columnCount)
-            {
-                _selectionLength = -1;  // recalculate
-                if (cr.x >= columnCount)
-                {
-                    cellRegions.splice(crIndex, 1);
-                    continue;
-                }
-                else
-                {
-                    cr.width = columnCount - cr.x;
-                }
-            }
-            crIndex++;
-        }
-
-        ensureRequiredSelection();
-     }
+        columnsCollectionReset(event);
+    }

     /**
      *  @private


Transferred from the Adobe Open Source Subversion Repository

Revision: 18674
Author:   cframpto@adobe.com
Date:     2010-11-17T20:45:54.108853Z

Log Message:
-----------
When selecting cell(s), don't allow a cell in a column which has visible=false be selected.  If a cell range is selected that spans columns that aren't visible, internally, the cell range will be broken up into regions that contain only the visible columns.  If a column becomes invisible, and either the anchorColumnIndex or the caretColumnIndex were set to that column, reinitialize to the first visible column, or -1 if there aren't any.  Fix up how the old caret position is saved so the CARET_CHANGE event will have the correct values.

QE notes: caret tests that were excluded need to be updated
Doc notes:
Bugs: SDK-28540
Reviewer: Hans, Kevin
Tests run: many cyclones
Is noteworthy for integration:

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/gridClasses/GridLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridSelection.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridDimensions.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/events/GridSelectionEventKind.as</path>

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

--- frameworks/projects/spark/src/spark/components/gridClasses/GridSelection.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridSelection.as
@@ -729,7 +729,8 @@
     /**
      *  If the selectionMode is either GridSelectionMode.SINGLE_CELLS
      *  or GridSelectionMode.MULTIPLE_CELLS, replaces the current
-     *  selection with the cell at the given location.
+     *  selection with the cell at the given location.  The cell must be in
+     *  a visible column.
      *
      *  @param rowIndex The 0-based row index.
      *
@@ -739,7 +740,7 @@
      *  Returns false if
      *  rowIndex is not a valid index in dataProvider,
      *  if columnIndex is not a valid index in columns,
-     *  or if the selectionMode is invalid.
+     *  if the selectionMode is invalid or the column is not visible.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -751,14 +752,18 @@
         if (!validateCell(rowIndex, columnIndex))
             return false;

-        internalSetCellRegion(rowIndex, columnIndex, 1, 1);
-
-        return true;
+        // columns and indexes validated above.
+        const columnVisible:Boolean = isColumnVisible(columnIndex);
+        if (columnVisible)
+            internalSetCellRegion(rowIndex, columnIndex, 1, 1);
+
+        return columnVisible;
     }

     /**
      *  If the selectionMode is GridSelectionMode.MULTIPLE_CELLS,
-     *  adds the cell at the given location to the cell selection.
+     *  adds the cell at the given location to the cell selection.  The cell
+     *  must be in a visible column.
      *
      *  @param rowIndex The 0-based row index.
      *
@@ -768,7 +773,7 @@
      *  Returns false if
      *  rowIndex is not a valid index in dataProvider,
      *  if columnIndex is not a valid index in columns,
-     *  or if the selectionMode is invalid.
+     *  if the selectionMode is invalid or the column is not visible.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -780,9 +785,12 @@
         if (!validateCellRegion(rowIndex, columnIndex, 1, 1))
             return false;

-        internalAddCell(rowIndex, columnIndex);
-
-        return true;
+        // columns and indexes validated above.
+        const columnVisible:Boolean = isColumnVisible(columnIndex);
+        if (columnVisible)
+            internalAddCell(rowIndex, columnIndex);
+
+        return columnVisible;
     }

     /**
@@ -824,7 +832,10 @@
      *  The origin of the cell region is the cell location specified by
      *  rowIndex and columnIndex, the width is
      *  columnCount and the height is rowCound.
-     *
+     *
+     *
Only cells in columns which are visible at the time of selection are
+     *  included in the selection.

+     *
      *  @param rowIndex The 0-based row index of the origin.
      *
      *  @param columnsIndex The 0-based column index of the origin.
@@ -849,9 +860,35 @@
     {
         if (!validateCellRegion(rowIndex, columnIndex, rowCount, columnCount))
             return false;
-
-        internalSetCellRegion(rowIndex, columnIndex, rowCount, columnCount);
-
+
+        removeSelection();
+
+        var startColumnIndex:int = columnIndex;
+        var curColumnCount:int = 0;
+
+        const endColumnIndex:int = columnIndex + columnCount - 1;
+        for (var i:int = columnIndex; i <= endColumnIndex; i++)
+        {
+            // columns and indexes validated above.
+            const columnVisible:Boolean = isColumnVisible(i);
+            if (columnVisible)
+            {
+                curColumnCount++;
+                continue;
+            }
+
+            // This column isn't visible so commit the cell region.
+            internalAddCellRegion(rowIndex, startColumnIndex, rowCount, curColumnCount);
+
+            curColumnCount = 0;
+            startColumnIndex = i + 1;
+        }
+
+        // If the last column(s) are not visible, need to commit the last
+        // cell region.
+        if (curColumnCount > 0)
+            internalAddCellRegion(rowIndex, startColumnIndex, rowCount, curColumnCount);
+
         return true;
     }

@@ -880,6 +917,15 @@
         return mode == GridSelectionMode.SINGLE_CELL ||
                 mode == GridSelectionMode.MULTIPLE_CELLS;
     }
+
+    /**
+     *  @private
+     *  Assumes columns is set and index is valid.
+     */
+    private function isColumnVisible(columnIndex:int):Boolean
+    {
+        return GridColumn(grid.columns.getItemAt(columnIndex)).visible;
+    }

     /**
      *  @private
@@ -1109,6 +1155,28 @@
         {
             selectedItem = grid.dataProvider.getItemAt(rowIndex);
         }
+    }
+
+    /**
+     *  @private
+     *  This should only be used for setCellRegion.  The selection should
+     *  be cleared first.  This will add a cellRegion to the list of cellRegions.
+     *  This allows the special-handling needed for setting a cell region
+     *  which has one of more columns which are not visible and not to be
+     *  included in the selection.
+     *
+     *  The code is not equipped to handle the general case of overlapping
+     *  cell regions.
+     */
+    private function internalAddCellRegion(rowIndex:int, columnIndex:int=0,
+                                           rowCount:uint=1, columnCount:uint=1):void
+    {
+        const cr:CellRect =
+            new CellRect(rowIndex, columnIndex, rowCount, columnCount, true);
+
+        cellRegions.push(cr);
+
+        _selectionLength += rowCount * columnCount;
     }

     /**


fixed compiler warnings

fixed compiler warnings

--- WeaveJS/src/weavejs/util/JS.as
+++ WeaveJS/src/weavejs/util/JS.as
@@ -390,8 +390,8 @@
 			return names;
 		}

-		private static const map_obj_names:Object = new JS.WeakMap();
-		private static const map_prop_skip:Object = new JS.Map();
+		private static const map_obj_names:Object = new JS['WeakMap']();
+		private static const map_prop_skip:Object = new JS['Map']();
 		private static var skip_id:int = 0;
 	}
 }


rename method for sake of clarity

rename method for sake of clarity

--- src/org/mangui/flowplayer/HLSStreamProvider.as
+++ src/org/mangui/flowplayer/HLSStreamProvider.as
@@ -69,9 +69,9 @@
             _hls.stage = player.screen.getDisplayObject().stage;
             _hls.addEventListener(HLSEvent.PLAYBACK_COMPLETE, _completeHandler);
             _hls.addEventListener(HLSEvent.ERROR, _errorHandler);
-            _hls.addEventListener(HLSEvent.MANIFEST_LOADED, _manifestHandler);
+            _hls.addEventListener(HLSEvent.MANIFEST_LOADED, _manifestLoadedHandler);
             _hls.addEventListener(HLSEvent.MEDIA_TIME, _mediaTimeHandler);
-            _hls.addEventListener(HLSEvent.PLAYBACK_STATE, _stateHandler);
+            _hls.addEventListener(HLSEvent.PLAYBACK_STATE, _playbackStateHandler);
             _hls.addEventListener(HLSEvent.ID3_UPDATED, _ID3Handler);

             var cfg : Object = _model.config;
@@ -99,7 +99,7 @@
             _clip.dispatch(ClipEventType.NETSTREAM_EVENT, "onID3", event.ID3Data);
         };

-        private function _manifestHandler(event : HLSEvent) : void {
+        private function _manifestLoadedHandler(event : HLSEvent) : void {
             _duration = event.levels[_hls.startlevel].duration - _clipStart;
             _isManifestLoaded = true;
             // only update duration if not capped
@@ -176,7 +176,7 @@
             }
         };

-        private function _stateHandler(event : HLSEvent) : void {
+        private function _playbackStateHandler(event : HLSEvent) : void {
             // CONFIG::LOGGING {
             // Log.txt("state:"+ event.state);
             // }


Transferred from the Adobe Open Source Subversion Repository

Revision: 5770
Author:   gruehle@adobe.com
Date:     2009-03-30T20:58:54.529722Z

Log Message:
-----------
Add [Alternative] metadata to the Halo components that have a Gumbo replacement.

Bugs: SDK-20190
QA notes: none
Doc notes: Additional ASDoc comments added for many of the classes. These should all be reviewed.
Reviewer: Chet

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TileList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/RadioButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/HSlider.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/effects/Zoom.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ToggleButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/HBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ViewStack.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/RadioButtonGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ControlBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Cubic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/VSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Fade.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/RemoveChildAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/TweenEffect.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/effects/WipeRight.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Sine.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/VBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Glow.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/CheckBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Quartic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Box.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/WipeLeft.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/HScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ApplicationControlBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Linear.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Quintic.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/containers/Tile.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Quadratic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/AddChildAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/WipeDown.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Rotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/SetPropertyAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Canvas.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Resize.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/effects/Blur.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/LinkBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Move.as</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/framework/src/mx/controls/HorizontalList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/WipeUp.as</path>

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

--- frameworks/projects/mx/src/mx/effects/Resize.as
+++ frameworks/projects/mx/src/mx/effects/Resize.as
@@ -13,6 +13,8 @@
 {

 import mx.effects.effectClasses.ResizeInstance;
+
+[Alternative(replacement="spark.effects.Resize", since="4.0")]

 /**
  *  The Resize effect changes the width, height, or both dimensions


修正可繼承並整理程式碼

修正可繼承並整理程式碼

--- flash/src/lambmei/starling/display/HandleSheet.as
+++ flash/src/lambmei/starling/display/HandleSheet.as
@@ -15,44 +15,25 @@

 	public class HandleSheet extends Sprite
 	{
-		private var _selected:Boolean
-		private var _contents:DisplayObject
-
-		private var _ctrlButton:DisplayObject
-		private var _selectedGroup:Sprite
-
-		private var _touchBringToFront:Boolean
-		public function get touchBringToFront():Boolean
-		{
-			return _touchBringToFront;
-		}
-
-		public function set touchBringToFront(value:Boolean):void
-		{
-			_touchBringToFront = value;
-		}
-
-		public function get selected():Boolean
-		{
-			return _selected;
-		}
-
+
+		/** 點擊 將物件移動到前方 **/
+		protected var _touchBringToFront:Boolean
+		public function get touchBringToFront():Boolean { return _touchBringToFront;}
+		public function set touchBringToFront(value:Boolean):void{ _touchBringToFront = value; }
+
+		/** 是否選擇 **/
+		protected var _selected:Boolean
+		public function get selected():Boolean { return _selected;}
 		public function set selected(value:Boolean):void
 		{
 			if(value!=_selected){
 				_selected = value;
-
-			}
-
-		}
-		private static const CTRL_BUTTON_NAME:String = "ctrlBtn"
-
-		public static const ALIGN_CENTER:String = "center"
-		public static const ALIGN_LT:String = "LT"
-
-		private var _useCtrlButton:Boolean
-
-
+				_selectedGroup.visible = _selected
+			}
+		}
+
+		/** 是否有使用 控制按鈕 Read Only **/
+		protected var _useCtrlButton:Boolean
 		public function get useCtrlButton():Boolean
 		{
 			return _useCtrlButton;
@@ -63,7 +44,17 @@
 //			_useCtrlButton = value;
 //		}

-
+		//Const Vars
+		protected static const CTRL_BUTTON_NAME:String = "HandlectrlBtn"
+		public static const ALIGN_CENTER:String = "center"
+		public static const ALIGN_LT:String = "LT"
+
+
+
+		//UI
+		protected var _contents:DisplayObject
+		protected var _ctrlButton:DisplayObject
+		protected var _selectedGroup:Sprite

 		public function HandleSheet(contents:DisplayObject=null)
@@ -86,10 +77,11 @@
 				_contents = contents

 			}
-
 			//init SelectGroup
 			_selectedGroup = new Sprite()
 			this.addChild(this._selectedGroup);
+
+			_selectedGroup.visible = _selected
 		}

@@ -109,6 +101,7 @@
 				throw new ArgumentError("Texture is Null!")
 			}
 		}
+
 		/** 設定控制按鈕 by 物件 可以是 image sprite button **/
 		public function setCtrlButtonInitByObject( obj:DisplayObject ):void
 		{
@@ -136,145 +129,35 @@
 		}

-		/** 單隻手指使用控制按鈕 放大縮小旋轉 **/
-		private function resizeAndRotationByCtrlButton(touches:Vector.<Touch>):void
-		{
-
-				var touchA:Touch = touches[0];
-				var touchB:Touch = touchA.clone();		//模擬B點
-				var n = touchA.getLocation(this);
-				//鏡射A點坐標
-				touchB.globalX = n.x * 1
-				touchB.globalY = n.y * -1
-
-				var currentPosA:Point  = touchA.getLocation(this);
-				var previousPosA:Point = touchA.getPreviousLocation(this);
-
-				//鏡射A點
-				var currentPosB:Point  = currentPosA.clone();
-				currentPosB.x *=-1;
-				currentPosB.y *=-1;
-				//鏡射A點
-				var previousPosB:Point  = previousPosA.clone();
-				previousPosB.x *=-1;
-				previousPosB.y *=-1;
-
-				var currentVector:Point  = currentPosA.subtract(currentPosB);
-				var previousVector:Point = previousPosA.subtract(previousPosB);
-
-				var currentAngle:Number  = Math.atan2(currentVector.y, currentVector.x);
-				var previousAngle:Number = Math.atan2(previousVector.y, previousVector.x);
-
-				var deltaAngle:Number = currentAngle - previousAngle;
-
-				// rotate
-				rotation += deltaAngle;
-
-				// scale
-				var sizeDiff:Number = currentVector.length / previousVector.length;
-				scaleX *= sizeDiff;
-				scaleY *= sizeDiff;
-
-				//_ctrlButton 保持原比例
-				if(_ctrlButton){
-					_ctrlButton.scaleX /= sizeDiff
-					_ctrlButton.scaleY /= sizeDiff
-				}
-
-
-
-		}
-
-		/** 使用兩隻手指 使用放大縮小旋轉 保留官方功能 **/
-		private function resizeAndRotationByTwoFingers(touches:Vector.<Touch>):void
-		{
-			//保留官方原本兩隻手指操作的功能
-			// two fingers touching -> rotate and scale
-			var touchA:Touch = touches[0];
-			var touchB:Touch = touches[1];
-
-			var currentPosA:Point  = touchA.getLocation(parent);
-			var previousPosA:Point = touchA.getPreviousLocation(parent);
-			var currentPosB:Point  = touchB.getLocation(parent);
-			var previousPosB:Point = touchB.getPreviousLocation(parent);
-
-			var currentVector:Point  = currentPosA.subtract(currentPosB);
-			var previousVector:Point = previousPosA.subtract(previousPosB);
-
-			var currentAngle:Number  = Math.atan2(currentVector.y, currentVector.x);
-			var previousAngle:Number = Math.atan2(previousVector.y, previousVector.x);
-			var deltaAngle:Number = currentAngle - previousAngle;
-
-			// update pivot point based on previous center
-			var previousLocalA:Point  = touchA.getPreviousLocation(this);
-			var previousLocalB:Point  = touchB.getPreviousLocation(this);
-			trace(previousLocalA , previousLocalB)
-
-			pivotX = (previousLocalA.x + previousLocalB.x) * 0.5;
-			pivotY = (previousLocalA.y + previousLocalB.y) * 0.5;
-
-			// update location based on the current center
-			x = (currentPosA.x + currentPosB.x) * 0.5;
-			y = (currentPosA.y + currentPosB.y) * 0.5;
-
-			// rotate
-			rotation += deltaAngle;
-
-			// scale
-			var sizeDiff:Number = currentVector.length / previousVector.length;
-			scaleX *= sizeDiff;
-			scaleY *= sizeDiff;
-		}
-
-		/**檢查是否touch 控制按鈕**/
-		private function isTouchCtrlButton(target:*):Boolean
-		{
-
-			var _do		:DisplayObject
-			var _doc	:DisplayObjectContainer
-
-			if(_ctrlButton is  DisplayObjectContainer){
-				_doc = _ctrlButton as DisplayObjectContainer
-				return _doc.contains(target)
-			}
-			else if(_ctrlButton is DisplayObject)
-			{
-				_do = _ctrlButton as DisplayObjectContainer
-				return _do == target
-			}
-			return false
-		}
-
-		private function onTouch(event:TouchEvent):void
+		protected function onTouch(event:TouchEvent):void
 		{
 			var touches:Vector.<Touch> = event.getTouches(this, TouchPhase.MOVED);
 			var touch:Touch

+
 			touch = event.getTouch(this, TouchPhase.BEGAN);
 			onTouchBegan(touch)

 			//一隻手指
 			if (touches.length == 1)
 			{
-
 				//檢查是否是Ctrl
 				if(isTouchCtrlButton(event.target) )
 				{
-
 					resizeAndRotationByCtrlButton(touches)
-
-
-				}else{
+				}
+				else
+				{
 					//一隻手指平移
 					var delta:Point = touches[0].getMovement(parent);

 					x += delta.x;
 					y += delta.y;
 				}
-
 			}
 			else if (touches.length == 2)
 			{
+				//兩隻手指
 				resizeAndRotationByTwoFingers(touches)
 			}

@@ -282,27 +165,137 @@
 			touch  = event.getTouch(this, TouchPhase.ENDED);
 			onTouchEnd(touch)

-
-
-			//if (touch && touch.tapCount == 2)
-			//				parent.addChild(this); // bring self to front
-
-			// enable this code to see when you're hovering over the object
-			//			 touch = event.getTouch(this, TouchPhase.HOVER);
-			//			 alpha = touch ? 0.8 : 1.0;
-
-		}
-		private function onTouchBegan(touch:Touch)
-		{
-
-		}
-
+		}
+
+		/**當touch開始**/
+		protected function onTouchBegan(touch:Touch):void
+		{
+			//touch 開始要做的事情
+			if(touch){
+				if(_touchBringToFront){
+					parent.addChild(this);
+				}
+				selected = true
+			}
+
+		}

 		/**當touch結束**/
-		private function onTouchEnd(touch:Touch){
-//			_touchBringToFront
-		}
-
+		protected function onTouchEnd(touch:Touch):void
+		{
+
+		}
+
+		/**檢查是否touch 控制按鈕**/
+		protected function isTouchCtrlButton(target:*):Boolean
+		{
+
+			var _do		:DisplayObject
+			var _doc	:DisplayObjectContainer
+
+			if(_ctrlButton is  DisplayObjectContainer){
+				_doc = _ctrlButton as DisplayObjectContainer
+				return _doc.contains(target)
+			}
+			else if(_ctrlButton is DisplayObject)
+			{
+				_do = _ctrlButton as DisplayObject
+				return _do == target
+			}
+			return false
+		}
+
+
+
+		/** 單隻手指使用控制按鈕 放大縮小旋轉 **/
+		protected function resizeAndRotationByCtrlButton(touches:Vector.<Touch>):void
+		{
+
+			var touchA:Touch = touches[0];
+			var touchB:Touch = touchA.clone();		//模擬B點
+			var n = touchA.getLocation(this);
+			//鏡射A點坐標
+			touchB.globalX = n.x * 1
+			touchB.globalY = n.y * -1
+
+			var currentPosA:Point  = touchA.getLocation(this);
+			var previousPosA:Point = touchA.getPreviousLocation(this);
+
+			//鏡射A點
+			var currentPosB:Point  = currentPosA.clone();
+			currentPosB.x *=-1;
+			currentPosB.y *=-1;
+			//鏡射A點
+			var previousPosB:Point  = previousPosA.clone();
+			previousPosB.x *=-1;
+			previousPosB.y *=-1;
+
+			var currentVector:Point  = currentPosA.subtract(currentPosB);
+			var previousVector:Point = previousPosA.subtract(previousPosB);
+
+			var currentAngle:Number  = Math.atan2(currentVector.y, currentVector.x);
+			var previousAngle:Number = Math.atan2(previousVector.y, previousVector.x);
+
+			var deltaAngle:Number = currentAngle - previousAngle;
+
+			// rotate
+			rotation += deltaAngle;
+
+			// scale
+			var sizeDiff:Number = currentVector.length / previousVector.length;
+			scaleX *= sizeDiff;
+			scaleY *= sizeDiff;
+
+			//_ctrlButton 保持原比例
+			if(_ctrlButton){
+				_ctrlButton.scaleX /= sizeDiff
+				_ctrlButton.scaleY /= sizeDiff
+			}
+
+
+
+		}
+
+		/** 使用兩隻手指 使用放大縮小旋轉 保留官方功能 **/
+		protected function resizeAndRotationByTwoFingers(touches:Vector.<Touch>):void
+		{
+			//保留官方原本兩隻手指操作的功能
+			// two fingers touching -> rotate and scale
+			var touchA:Touch = touches[0];
+			var touchB:Touch = touches[1];
+
+			var currentPosA:Point  = touchA.getLocation(parent);
+			var previousPosA:Point = touchA.getPreviousLocation(parent);
+			var currentPosB:Point  = touchB.getLocation(parent);
+			var previousPosB:Point = touchB.getPreviousLocation(parent);
+
+			var currentVector:Point  = currentPosA.subtract(currentPosB);
+			var previousVector:Point = previousPosA.subtract(previousPosB);
+
+			var currentAngle:Number  = Math.atan2(currentVector.y, currentVector.x);
+			var previousAngle:Number = Math.atan2(previousVector.y, previousVector.x);
+			var deltaAngle:Number = currentAngle - previousAngle;
+
+			// update pivot point based on previous center
+			var previousLocalA:Point  = touchA.getPreviousLocation(this);
+			var previousLocalB:Point  = touchB.getPreviousLocation(this);
+			trace(previousLocalA , previousLocalB)
+
+			pivotX = (previousLocalA.x + previousLocalB.x) * 0.5;
+			pivotY = (previousLocalA.y + previousLocalB.y) * 0.5;
+
+			// update location based on the current center
+			x = (currentPosA.x + currentPosB.x) * 0.5;
+			y = (currentPosA.y + currentPosB.y) * 0.5;
+
+			// rotate
+			rotation += deltaAngle;
+
+			// scale
+			var sizeDiff:Number = currentVector.length / previousVector.length;
+			scaleX *= sizeDiff;
+			scaleY *= sizeDiff;
+		}

 		public override function dispose():void


def: 7526 fix starting bitrate index when playing hdnetwork

--- kdp3Lib/src/com/kaltura/kdpfl/model/MediaProxy.as
+++ kdp3Lib/src/com/kaltura/kdpfl/model/MediaProxy.as
@@ -365,11 +365,15 @@
 								var ind:int = property.indexOf(":");
 								var objKey:String = property.substr(0, ind);
 								var objVal:String = property.substring(ind + 1, val.length);
-								var num:Number = parseFloat(objVal);
 								//convert value to boolean or number or string
-								valAsObj[objKey] = objVal=="true"? true: objVal=="false"? false: isNaN(num) ? objVal: num;
+								valAsObj[objKey] = getValueObject(objVal);
 							}
 						}
+						else
+						{
+							valAsObj = getValueObject(val);
+						}
+
 						metadata.addValue(cur.substr(0, index), valAsObj );
 					}
 				}
@@ -377,6 +381,19 @@
 				i++;
 			}

+		}
+
+		/**
+		 * converts given object to boolean / number / object
+		 * @param val
+		 * @return
+		 *
+		 */
+		private function getValueObject(val:String):Object
+		{
+			var valAsNum:Number = valAsNum = parseFloat(val);
+			var valAsObj:Object = val=="true"? true: val=="false" ? false : isNaN(valAsNum) ? val : valAsNum;
+			return valAsObj;
 		}

 		/**


- bugfix: setting a default value of 'none' didn't work for CSS transitions of the 'display' property

git-svn-id: e38e7cdd6ace00d8230583a2d3b43e9a55f5c011@642 bc4816be-ef27-423a-9c4d-fc420be121a2

--- src/reprise/css/transitions/CSSTransitionsManager.as
+++ src/reprise/css/transitions/CSSTransitionsManager.as
@@ -142,7 +142,8 @@
 						newStyles.getStyle(transitionPropName);

 					//apply default values
-					if (defaultValue && defaultValue.specifiedValue() != 'none')
+					if (defaultValue && (defaultValue.specifiedValue() != 'none' ||
+						transitionPropName == 'display'))
 					{
 						//use default value if we have a target value but no old value
 						if (targetValue && !oldValue)
@@ -194,7 +195,8 @@
 					transitionEasing = m_transitionEasings[i] ||
 						transitionEasing || DEFAULT_EASING[0];
 					var defaultValue : *;
-					if (m_defaultValues[i] && m_defaultValues[i] != 'none')
+					if (m_defaultValues[i] && (m_defaultValues[i] != 'none' ||
+						transitionPropName == 'display'))
 					{
 						defaultValue = CSSPropertyCache.propertyForKeyValue(
 							transitionPropName, m_defaultValues[i], null);


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

 package mx.automation.tabularData
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 3085
Author:   chaase@adobe.com
Date:     2008-09-03T22:22:09.170095Z

Log Message:
-----------
New effects, as requested by Thermo (and which made sense for SDK effects as well):
Wait: This effect waits for either/both a timeout period and a specified event. useful for choreographing Effect sequences.
CallFunctionAction: When played, this effect calls a specified function with an optional list of parameters. Again, useful when choreographing multiple effects in a sequence, where a function might be called after/before specific effects are played.

Also, tweaked NumberInterpolator to clamp start/end values to the supplied start/end values, rather than depending on floating-point precision to round off correctly in the parametric calculation of the proper result.

Reviewed by Glenn
tests: checkintests

Modified Paths:
--------------
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/effectClasses/CallFunctionActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/manifest.xml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/CallFunctionAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/interpolation/NumberInterpolator.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/effectClasses/WaitInstance.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/Wait.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/mxml-2009-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/gumbo-manifest.xml</path>

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

--- frameworks/projects/spark/src/spark/effects/interpolation/NumberInterpolator.as
+++ frameworks/projects/spark/src/spark/effects/interpolation/NumberInterpolator.as
@@ -59,6 +59,11 @@
             throw new Error("Interpolator cannot calculate interpolated " +
                             "values when either startValue (" + startValue + ") " +
                             "or endValue (" + endValue + ") is not a number");
+        // Quick test for 0 or 1 to avoid round-off error on either end
+        if (fraction == 0)
+            return startValue;
+        else if (fraction == 1)
+            return endValue;
         return Number(startValue) + (fraction * (Number(endValue) - Number(startValue)));
     }


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

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


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

 package mx.graphics.shaderClasses
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 12380
Author:   smgilson@adobe.com
Date:     2009-12-02T18:37:15.838623Z

Log Message:
-----------
ASDoc edits in preparation for localization

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/TrackBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/DisplayLayer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ToggleButtonBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBarHorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SliderBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ScrollBarBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/DropDownListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ListItemDragProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBarBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Range.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/ButtonBarBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ButtonBarBase.as
@@ -37,28 +37,39 @@

 /**
- *  Defines the common behavior for the ButtonBar, TabBar and similar subclasses.   This class does
- *  not add any new API however it refines selection, keyboard focus and keyboard navigation
- *  behavior for the dataGroup's ItemRenderer elements.   This base class is not intended to be
- *  instantiated directly.
+ *  The ButtonBarBase class defines the common behavior for the ButtonBar, TabBar and similar subclasses.
+ *  This class does not add any new API however it refines selection, keyboard focus and keyboard navigation
+ *  behavior for the control's ItemRenderer elements.
+ *  This base class is not intended to be instantiated directly.
  *
  *
Clicking on an ItemRenderer selects it by setting the selectedIndex and the
- *  caretIndex properties.  If requireSelection is false, then clicking
- *  again deselects it.  If dataProvider is an ISelectableList, then its
- *  selectedIndex is set as well.

+ *  caretIndex properties.  If requireSelection is false, then clicking
+ *  again deselects it.  If the data provider is an ISelectableList object, then its
+ *  selectedIndex is set as well.

  *
- *
Arrow key events are handled by adjusting the caretIndex.   If
- *  arrowKeysWrapFocus is true, then the caretIndex wraps.  Pressing the
- *  space bar selects the ItemRenderer at the caretIndex.

+ *
Arrow key events are handled by adjusting the caretIndex.
+ *  If arrowKeysWrapFocus is true, then the caretIndex wraps.
+ *  Pressing the Space key selects the ItemRenderer at the caretIndex.

  *
- *
The showsCaret property of the ItemRenderer at caretIndex is set to true
- *  when the ButtonBarBase has the focus and the caretIndex was reached as a consequence
- *  of a keyboard gesture.   If the caretIndex was set as a side effect of responding to a
- *  mouse click, then showsCaret is not set.

+ *
The showsCaret property of the ItemRenderer at caretIndex
+ *  is set to true when the ButtonBarBase object has focus and
+ *  the caretIndex was reached as a consequence
+ *  of a keyboard gesture.
+ *  If the caretIndex was set as a side effect of responding to a
+ *  mouse click, then showsCaret is not set.

  *
  *
The allowDeselection property of ButtonBarButton
  *  ItemRenderers is set to !requireSelection.

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

+ *
+ *

+ *  <s:ButtonBarBase/>
+ *

+  *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

 package mx.automation.codec
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 18714
Author:   smgilson@adobe.com
Date:     2010-11-18T20:19:29.573629Z

Log Message:
-----------
Remove "zero-based" extra comments from ASDoc

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

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

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

--- frameworks/projects/spark/src/spark/components/gridClasses/IGridItemEditor.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/IGridItemEditor.as
@@ -82,8 +82,6 @@

     /**
      *  The zero-based index of the column being edited.
-     *  That means that values are 0, 1, 2, ... , n - 1,
-     *  where n is the total number of columns.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -98,8 +96,6 @@

     /**
      *  The zero-based index of the row of the cell being edited.
-     *  That means that values are 0, 1, 2, ... , n - 1,
-     *  where n is the total number of rows.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10


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

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

 package spark.components.supportClasses
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 6391
Author:   smgilson@adobe.com
Date:     2009-04-29T20:04:20.789717Z

Log Message:
-----------
ASDoc updates

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/events/TextOperationEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/events/VideoEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/events/RendererExistenceEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/events/ElementExistenceEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/SkinnableDataContainer.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/ItemRenderer.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ItemRenderer.as
@@ -27,7 +27,20 @@

 /**
  *  The ItemRenderer class is the base class for Spark item renderers.
- *  It implements the IItemRenderer interface.
+ *
+ *  @mxml
+ *
+ *
The <ItemRenderer> tag inherits all of the tag
+ *  attributes of its superclass and adds the following tag attributes:

+ *
+ *

+ *  <ItemRenderer
+ *    Properties
+ *    allowDeselection="true"
+ *    selected="false"
+ *    showFocusIndicator="false"
+ *  />
+ *

  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -42,6 +55,14 @@
     //
     //--------------------------------------------------------------------------

+    /**
+     *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
     public function ItemRenderer()
     {
         super();
@@ -59,6 +80,12 @@
     //--------------------------------------------------------------------------

     [Bindable("contentBackgroundColorChanged")]
+    /**
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
     public function get contentBackgroundColor():uint
     {
         var alternatingColors:Array = getStyle("alternatingItemColors");
@@ -83,28 +110,49 @@
         return getStyle("contentBackgroundColor");
     }

+    /**
+     *  @private
+     */
     public function set contentBackgroundColor(value:uint):void
     {
         setStyle("contentBackgroundColor", value);
     }

     [Bindable("rollOverColorChanged")]
+    /**
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
     public function get rollOverColor():uint
     {
         return getStyle("rollOverColor");
     }

+    /**
+     *  @private
+     */
     public function set rollOverColor(value:uint):void
     {
         setStyle("rollOverColor", value);
     }

     [Bindable("selectionColorChanged")]
+    /**
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
     public function get selectionColor():uint
     {
         return getStyle("selectionColor");
     }

+    /**
+     *  @private
+     */
     public function set selectionColor(value:uint):void
     {
         setStyle("selectionColor", value);
@@ -139,9 +187,10 @@
     //----------------------------------

     /**
-     * Optional item renderer label component.
-     * This component is used to determine the renderer's
-     * parent component baselinePosition.
+     *  Optional item renderer label component.
+     *  This component is used to determine the value of the
+     *  baselinePosition property in the host component of
+     *  the item renderer.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -162,6 +211,8 @@

     /**
      *  @inheritDoc
+     *
+     *  @default true
      */
     public function get allowDeselection():Boolean
     {
@@ -191,6 +242,8 @@

     /**
      *  @inheritDoc
+     *
+     *  @default false
      */
     public function get showFocusIndicator():Boolean
     {
@@ -221,6 +274,8 @@

     /**
      *  @inheritDoc
+     *
+     *  @default false
      */
     public function get selected():Boolean
     {
@@ -251,7 +306,9 @@
     private var _labelText:String = "";

     /**
-     * @inheritDoc
+     *  @inheritDoc
+     *
+     *  @default ""
      */
     public function get labelText():String
     {
@@ -325,8 +382,8 @@
      */
     override protected function commitProperties():void
     {
-    	super.commitProperties();
-
+        super.commitProperties();
+
         if (rendererStateIsDirty)
         {
             currentState = getCurrentRendererState();
@@ -391,7 +448,7 @@
     }

     /**
-     *
+     *  @private
      *  Mouse rollOver event handler.
      */
     protected function itemRenderer_rollOverHandler(event:MouseEvent):void
@@ -401,7 +458,7 @@
     }

     /**
-     *
+     *  @private
      *  Mouse rollOut event handler.
      */
     protected function itemRenderer_rollOutHandler(event:MouseEvent):void
@@ -411,7 +468,7 @@
     }

     /**
-     *
+     *  @private
      *  Mouse down event handler.
      */
     protected function itemRenderer_mouseDownHandler(event:MouseEvent):void


Transferred from the Adobe Open Source Subversion Repository

Revision: 13125
Author:   smgilson@adobe.com
Date:     2009-12-21T20:40:37.345444Z

Log Message:
-----------
ASDoc L10N fixes

QE notes: -
Doc notes: -
Bugs: - FLEXDOCS-885, FLEXDOCS-841,FLEXDOCS-839, FLEXDOCS-769, FLEXDOCS-545, FLEXDOCS-540
Reviewer: -
Tests run: - checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Box.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Canvas.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Tile.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/VBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airspark/src/spark/components/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/BorderContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/HBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/TitleWindowAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/CheckBox.as</path>

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

--- frameworks/projects/mx/src/mx/containers/Tile.as
+++ frameworks/projects/mx/src/mx/containers/Tile.as
@@ -223,7 +223,7 @@
  *
  *  @includeExample examples/TileLayoutExample.mxml
  *
- *  @see mx.components.Container
+ *  @see mx.core.Container
  *
  *  @langversion 3.0
  *  @playerversion Flash 9


Updated ASDoc comments

Updated ASDoc comments

git-svn-id: 6aa7ccb0a2048310a30f08a72aaff4ca39d980ed@67 91848ab2-c4ae-4e4f-8e6a-6a52ea0dccc3

--- flare.vis/flare/vis/util/heap/FibonacciHeap.as
+++ flare.vis/flare/vis/util/heap/FibonacciHeap.as
@@ -1,10 +1,10 @@
 package flare.vis.util.heap
 {
 	/**
-	 * A fibonacci heap data structure for maintaining a sorted priority queue.
+	 * A Fibonacci heap data structure for maintaining a sorted priority queue.
 	 * For more about this particular implementation see
-	 * Wikipedia's
-	 * Fibonacci Heap article.
+	 *
+	 * Wikipedia's Fibonacci Heap article.
 	 */
 	public class FibonacciHeap
 	{


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

--- frameworks/projects/mx/src/mx/controls/Tree.as
+++ frameworks/projects/mx/src/mx/controls/Tree.as
@@ -69,7 +69,6 @@
 import mx.managers.DragManager;
 import mx.managers.ISystemManager;
 import mx.managers.SystemManager;
-import mx.styles.StyleManager;

 use namespace mx_internal;

@@ -1454,7 +1453,7 @@
             return;
 		}

-        StyleManager.getColorNames(colors);
+        styleManager.getColorNames(colors);

         var curRow:int = 0;
         var actualRow:int = verticalScrollPosition;


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

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

 package mx.automation.events
 {


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

 package mx.effects.effectClasses
 {


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

--- frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigator.as
+++ frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigator.as
@@ -1,4 +1,16 @@
-
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2010 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+// TODO (chiedozi): TabbedViewNavigator should override setActive and activate
+// the correct ViewNavigator.
 package spark.components
 {
 import flash.display.Stage;


Transferred from the Adobe Open Source Subversion Repository

Revision: 22285
Author:   chiedozi@adobe.com
Date:     2011-08-30T18:52:45.387113Z

Log Message:
-----------
Added builder icons for SplitViewNavigator, TabbedViewNavigator and ViewNavigator

QE notes:
Doc notes:
Bugs: SDK-31067
Reviewer: Tom
Tests run: checkintests, mustella-mobile
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.png</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigator.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigator.png</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SplitViewNavigator.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SplitViewNavigator.png</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigator.as
+++ frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigator.as
@@ -99,6 +99,12 @@
  *  @productversion Flex 4.5
  */
 [Event(name="valueCommit", type="mx.events.FlexEvent")]
+
+//--------------------------------------
+//  Other metadata
+//--------------------------------------
+
+[IconFile("TabbedViewNavigator.png")]

 /**
  *  The TabbedViewNavigator class is a container that manages a collection


Transferred from the Adobe Open Source Subversion Repository

Revision: 18878
Author:   clucier@adobe.com
Date:     2010-11-30T22:43:57.671744Z

Log Message:
-----------
Simple card flip view transition (performance optimizations and cube flip pending).

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

Modified Paths:
--------------
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/transitions/FlipViewTransition.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/transitions/FlipViewTransitionMode.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/transitions/FlipViewTransition.as
+++ frameworks/projects/mobilecomponents/src/spark/transitions/FlipViewTransition.as
@@ -0,0 +1,545 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2010 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package spark.transitions
+{
+
+import flash.display.DisplayObject;
+import flash.events.Event;
+import flash.geom.Matrix3D;
+import flash.geom.PerspectiveProjection;
+import flash.geom.Point;
+
+import mx.core.UIComponent;
+import mx.core.mx_internal;
+import mx.effects.IEffect;
+import mx.events.EffectEvent;
+import mx.events.FlexEvent;
+
+import spark.components.Group;
+import spark.components.TabbedViewNavigator;
+import spark.components.ViewNavigator;
+import spark.components.supportClasses.ButtonBarBase;
+import spark.effects.Animate;
+import spark.effects.animation.Keyframe;
+import spark.effects.animation.MotionPath;
+import spark.effects.animation.SimpleMotionPath;
+import spark.primitives.BitmapImage;
+
+use namespace mx_internal;
+
+/**
+ *  The FlipViewTransition class serves as a simple flip transition for
+ *  views.  The flip transition supports two modes (card and cube)
+ *  as well as an optional direction (up, down, left, or right).
+ *
+ *  The default duration of a FlipViewTransition is 400 ms.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 2.5
+ *  @productversion Flex 4.5
+ */
+public class FlipViewTransition extends ViewTransitionBase
+{
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Constructor.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 2.5
+	 *  @productversion Flex 4.5
+	 */
+	public function FlipViewTransition()
+	{
+		super();
+
+		// Defaut duration of 400 yields a smoother result.
+		duration = 400;
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Variables
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 *  Property bag used to save any start view properties that
+	 *  are then restored after the transition is complete.
+	 */
+	private var startViewProps:Object = {};
+
+	/**
+	 *  @private
+	 *  Property bag used to save any end view properties that
+	 *  are then restored after the transition is complete.
+	 */
+	private var endViewProps:Object = {};
+
+	/**
+	 *  @private
+	 *  Property bag used to save any navigator centric properties that
+	 *  are then restored after the transition is complete.
+	 */
+	private var navigatorProps:Object = {};
+
+	/**
+	 *  @private
+	 *  Parents our start and end view elements while flipping.
+	 */
+	private var transitionGroup:Group;
+
+	/**
+	 *  @private
+	 *  Flag to denote if we're flipping vertically or horizontally.
+	 */
+	private var vertical:Boolean;
+
+	/**
+	 *  @private
+	 *  Used to save off our pending view's transform matrix while we animate.
+	 */
+	private var savedMatrix:Matrix3D;
+
+	//--------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------
+
+	//---------------------------------
+	// direction
+	//---------------------------------
+
+	private var _direction:String = ViewTransitionDirection.LEFT;
+
+	/**
+	 *  Specifies the direction of flip transition.
+	 *
+	 *  @default ViewTransitionDirection.LEFT
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 2.5
+	 *  @productversion Flex 4.5
+	 */
+	public function get direction():String
+	{
+		return _direction;
+	}
+
+	/**
+	 *  @private
+	 */
+	public function set direction(value:String):void
+	{
+		_direction = value;
+	}
+
+	//---------------------------------
+	// mode
+	//---------------------------------
+
+	private var _mode:String = FlipViewTransitionMode.CARD;
+
+	/**
+	 *  Specifies the type of flip transition to perform.
+	 *
+	 *  @default FlipViewTransitionMode.CARD
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 2.5
+	 *  @productversion Flex 4.5
+	 */
+	public function get mode():String
+	{
+		return _mode;
+	}
+
+	/**
+	 *  @private
+	 */
+	public function set mode(value:String):void
+	{
+		_mode = value;
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Methods
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @inheritDoc
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 2.5
+	 *  @productversion Flex 4.5
+	 */
+	override public function captureStartValues():void
+	{
+		super.captureStartValues();
+
+		// Initialize the property bag used to save some of our
+		// properties that are then restored after the transition is over.
+		navigatorProps = new Object();
+
+		// Snapshot the entire navigator.
+		var oldVisibility:Boolean = endView.visible;
+		endView.visible = false;
+		cachedNavigator = getSnapshot(targetNavigator);
+		endView.visible = oldVisibility;
+	}
+
+	/**
+	 *  @inheritDoc
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 2.5
+	 *  @productversion Flex 4.5
+	 */
+	override protected function createViewEffect():IEffect
+	{
+		// Don't bother transitioning if we're missing views (or if we
+		// don't support the requested mode)
+		if (!startView || !endView || mode == FlipViewTransitionMode.CUBE)
+			return null;
+
+		// Initialize temporaries based on our currently flip direction.
+		vertical = (direction == ViewTransitionDirection.DOWN ||
+			direction == ViewTransitionDirection.UP);
+
+		var viewWidth:Number = endView.width;
+		var viewHeight:Number = endView.height;
+		var animatedProperty:String = vertical ? "rotationX" : "rotationY";
+
+		// Disable start view layout.
+		startViewProps = { includeInLayout:startView.includeInLayout };
+		startView.includeInLayout = false;
+
+		// Disable end view layout.
+		endViewProps = { includeInLayout:endView.includeInLayout };
+		endView.includeInLayout = false;
+
+		// Save our end view's transform matrix.
+		savedMatrix = endView.transform.matrix3D;
+
+		// In order for device text to render properly when negatively scaled, we
+		// must ensure our view has a transform matrix 3D active.
+		endView.z = .01;
+
+		// Mirror our end view so that it can serve as the reverse face of our
+		// card transition.
+		if (vertical)
+		{
+			endView.y += viewHeight;
+			endView.scaleY = -1;
+		}
+		else
+		{
+			endView.x += viewWidth;
+			endView.scaleX = -1;
+		}
+
+		// Create a temporary transition group to serve as the parent of our
+		// views while flipping.  Offset our transition group as necessary to
+		// ensure we flip relative to our center.
+		transitionGroup = new Group();
+		transitionGroup.includeInLayout=false;
+		addComponentToContainer(transitionGroup, UIComponent(endView.parent));
+		transitionGroup.addElement(endView);
+		transitionGroup.addElement(startView);
+
+		// Setup our transition group's perspective projection properties.
+		var projection:PerspectiveProjection = new PerspectiveProjection();
+		projection.fieldOfView = 45;
+		projection.projectionCenter = new Point(viewWidth / 2, viewHeight / 2);
+		transitionGroup.transform.perspectiveProjection = projection;
+		transitionGroup[animatedProperty] = 0;
+
+		// Now offset our transform center as appropriate for the transition direction
+		transitionGroup.transformX = viewWidth / 2;
+		transitionGroup.transformY = viewHeight / 2;
+
+		// Validate our transition group prior to the start of our animation.
+		transitionGroup.validateNow();
+
+		// Create and return our composite flip effect.
+		var directionModifier:int = (direction == ViewTransitionDirection.LEFT ||
+			direction == ViewTransitionDirection.DOWN) ? 1 : -1;
+
+		return createFlipEffect(transitionGroup, endView.width, animatedProperty, directionModifier);
+	}
+
+	/**
+	 *  @inheritDoc
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 2.5
+	 *  @productversion Flex 4.5
+	 */
+	override protected function createConsolidatedEffect():IEffect
+	{
+		// If we have no cachedNavigator then there is not much we can do.
+		if (!cachedNavigator || mode == FlipViewTransitionMode.CUBE)
+			return null;
+
+		// Add a temporary group to contain our snapshot view of the navigator
+		// while we animate.
+		transitionGroup = new Group();
+		transitionGroup.includeInLayout = false;
+		addComponentToContainer(transitionGroup, DisplayObject(targetNavigator).parent as UIComponent);
+
+		transitionGroup.addElement(targetNavigator);
+		cachedNavigator.includeInLayout = false;
+		transitionGroup.addElement(cachedNavigator);
+
+		transitionGroup.x = transitionGroup.y = 0;
+		transitionGroup.width = cachedNavigator.width;
+		transitionGroup.height = cachedNavigator.height;
+
+		// Initialize temporaries based on our currently flip direction.
+		vertical = (direction == ViewTransitionDirection.DOWN ||
+			direction == ViewTransitionDirection.UP);
+
+		var viewWidth:Number = targetNavigator.width;
+		var viewHeight:Number = targetNavigator.height;
+		var animatedProperty:String = vertical ? "rotationX" : "rotationY";
+
+		// Save our end view's transform matrix.
+		savedMatrix = targetNavigator.transform.matrix3D;
+
+		// In order for device text to render properly when negatively scaled, we
+		// must ensure our view has a transform matrix 3D active.
+		targetNavigator.z = .01;
+
+		// Mirror our end view so that it can serve as the reverse face of our
+		// card transition.
+		if (vertical)
+		{
+			targetNavigator.y += viewHeight;
+			targetNavigator.scaleY = -1;
+		}
+		else
+		{
+			targetNavigator.x += viewWidth;
+			targetNavigator.scaleX = -1;
+		}
+
+		// Setup our transition group's perspective projection properties.
+		var projection:PerspectiveProjection = new PerspectiveProjection();
+		projection.fieldOfView = 45;
+		projection.projectionCenter = new Point(viewWidth / 2 - 1, viewHeight / 2 - 1);
+		transitionGroup.transform.perspectiveProjection = projection;
+		transitionGroup[animatedProperty] = 0;
+
+		// Now offset our transform center as appropriate for the transition direction
+		transitionGroup.transformX = targetNavigator.width / 2;
+		transitionGroup.transformY = targetNavigator.height / 2;
+
+		navigatorProps.targetNavigatorIncludeInLayout = targetNavigator.includeInLayout;
+		targetNavigator.includeInLayout = false;
+
+		// Validate our transition group prior to the start of our animation.
+		transitionGroup.validateNow();
+
+		// Create and return our composite flip effect.
+		var directionModifier:int = (direction == ViewTransitionDirection.LEFT ||
+			direction == ViewTransitionDirection.DOWN) ? 1 : -1;
+
+		return createFlipEffect(transitionGroup, endView.width, animatedProperty, directionModifier);
+	}
+
+	/**
+	 *  @private
+	 *  Cleanup helper method.
+	 */
+	protected function deferredCleanUp():void
+	{
+
+		if (!consolidatedTransition && transitionGroup)
+		{
+			if (endView)
+				endView.transform.matrix3D = savedMatrix;
+
+			// Restore our views to their natural location.
+			if (startView && endView)
+			{
+				navigator.contentGroup.addElement(startView);
+				navigator.contentGroup.addElement(endView);
+			}
+
+			// Extract our temporary transition group.
+			Group(transitionGroup.parent).removeElement(transitionGroup);
+
+			// Restore startView properties.
+			if (startView)
+			{
+				startView.includeInLayout = startViewProps.includeInLayout;
+				startViewProps = null;
+			}
+
+			// Restore endView properties.
+			if (endView)
+			{
+				endView.includeInLayout = endViewProps.includeInLayout;
+				endViewProps = null;
+			}
+		}
+		else if (transitionGroup)
+		{
+			if (targetNavigator)
+				targetNavigator.transform.matrix3D = savedMatrix;
+
+			// Restore our views to their natural location.
+			removeComponentFromContainer(targetNavigator as UIComponent, transitionGroup as UIComponent);
+			addComponentToContainer(targetNavigator as UIComponent, transitionGroup.parent as UIComponent);
+			removeComponentFromContainer(transitionGroup as UIComponent, transitionGroup.parent as UIComponent);
+
+			// Restore targetNavigator properties.
+			targetNavigator.includeInLayout = navigatorProps.targetNavigatorIncludeInLayout;
+		}
+
+		transitionGroup = null;
+		cachedNavigator = null;
+
+		super.cleanUp();
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Private Methods
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @inheritDoc
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 2.5
+	 *  @productversion Flex 4.5
+	 */
+	override public function prepareForPlay():void
+	{
+		actionBarTransitionDirection = direction;
+		super.prepareForPlay();
+	}
+
+	/**
+	 *  @private
+	 *  Override transitionComplete so that we can defer clean up
+	 *  until after we've rendered the last frame of the 3d transition.
+	 */
+	override protected function transitionComplete():void
+	{
+		navigator.addEventListener("enterFrame", enterFrameHandler);
+	}
+
+	/**
+	 *  @private
+	 */
+	protected function enterFrameHandler(e:Event):void
+	{
+		navigator.removeEventListener("enterFrame", enterFrameHandler);
+
+		// Invoke our cleanup now that we've rendered the last frame of
+		// animation.
+		deferredCleanUp();
+
+		// Now dispatch our transition end event.
+		if (hasEventListener(FlexEvent.TRANSITION_END))
+			dispatchEvent(new FlexEvent(FlexEvent.TRANSITION_END));
+	}
+
+	/**
+	 *  @private
+	 *  Update listener on our flip effect that hides our start view
+	 *  once the end view can be seen.
+	 */
+	private function effectUpdateHandler(e:EffectEvent):void
+	{
+		var animatedProp:String = vertical ? "rotationX" : "rotationY";
+
+		if(Math.abs(transitionGroup[animatedProp]) > 90)
+		{
+			if (!consolidatedTransition)
+			    startView.visible = false;
+			else
+				cachedNavigator.visible = false;
+		}
+	}
+
+	/**
+	 *  @private
+	 *  Shared helper routine which serves as our effect factory for both standard
+	 *  and consolidated transitions.
+	 */
+	protected function createFlipEffect(flipTarget:UIComponent, width:Number,
+										animatedProperty:String, directionModifier:int):IEffect
+	{
+		var animation:Animate = new Animate();
+
+		// Create motion path for our rotation property.
+		var vector:Vector.<MotionPath> = new Vector.<MotionPath>();
+		vector.push(new SimpleMotionPath(animatedProperty, 0, directionModifier * 180));
+
+		// Creation motion path for the target's z property.
+		var mp:MotionPath = new MotionPath("z");
+		vector.push(mp);
+
+		// Generate key frames for the z animation
+		var keyframes:Vector.<Keyframe> = new Vector.<Keyframe>();
+
+		var keyFrame:Keyframe = new Keyframe();
+		keyFrame.time = 0;
+		keyFrame.value = 0;
+		keyframes.push(keyFrame);
+
+		keyFrame = new Keyframe();
+		keyFrame.time = duration / 2;
+		keyFrame.value = width / 2;
+		keyframes.push(keyFrame);
+
+		keyFrame = new Keyframe();
+		keyFrame.time = duration;
+		keyFrame.value = 0;
+		keyframes.push(keyFrame);
+
+		mp.keyframes = keyframes;
+
+		// Configure the remainder of our animation parameters and install
+		// an update listener so that we can hide the old view once it's out
+		// of view.
+		animation.motionPaths = vector;
+		animation.target = flipTarget;
+		animation.duration = duration;
+		animation.addEventListener("effectUpdate", effectUpdateHandler);
+		animation.easer = easer;
+
+		return animation;
+	}
+
+}
+}


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

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

 package spark.effects.supportClasses
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 8098
Author:   mhorn@adobe.com
Date:     2009-06-23T16:24:08.987020Z

Log Message:
-----------
Minor ASDoc updates

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/DropDownController.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ButtonBarMiddleButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/supportClasses/LinearLayoutVector.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/supportClasses/LinearLayoutVector.as
+++ frameworks/projects/spark/src/spark/layouts/supportClasses/LinearLayoutVector.as
@@ -713,19 +713,19 @@
     }

     /**
-     *  Stores the majorSize for the specified ILayoutElement at index,
-     *  and  updates the minorSize and minMinorSize properties.
-     *
-     *  If majorAxis is VERTICAL then majorSize corresponds to the
+     *  Stores the majorSize for the specified ILayoutElement at index,
+     *  and updates the minorSize and minMinorSize properties.
+     *
+     *  If majorAxis is VERTICAL then majorSize corresponds to the
      *  height of this ILayoutElement, and the minor sizes to the
-     *  preferredBoundsWidth and minWidth.
-     *
-     *  If majorAxis is HORIZONTAL, then the roles of the dimensions
+     *  preferredBoundsWidth and minWidth.
+     *
+     *  If majorAxis is HORIZONTAL, then the roles of the dimensions
      *  are reversed.
      *
-     *  The minMinorSize is intended to be used LinearLayout::measure() time.
-     *
-     *  It accumulates the maximum of the minWidth,Height for all items.
+     *  The minMinorSize is intended to be used at the time that the LinearLayout::measure() method is called.
+     *
+     *  It accumulates the maximum of the minWidth, Height for all items.
      *
      *  @param index The item's index.
      *  @param elt The layout element at index.