Fix quotation error.

Fix quotation error.

	* build-aux/children.as (children_alive): Fix m4 quotation.

--- build-aux/children.as
+++ build-aux/children.as
@@ -169,7 +169,7 @@
 {
   local pid
   local pids
-  pids=$(children_pid "$@")
+  pids=$(children_pid "$[@]")
   for pid in $pids
   do
     # Using "ps PID" to test whether a processus is alive is,


Spaces.

Spaces.

git-svn-id: a15b1a68d1eb0b178e64880bb702e768ba372808@1692 f9a80dcf-8710-0410-9714-9a4fb6817a1c

--- build-aux/children.as
+++ build-aux/children.as
@@ -208,7 +208,7 @@
     test -f $i.sta ||
       error SOFTWARE "children_status: cannot find $i.sta." \
 		     "Was children_harvest called?"         \
-	             "Maybe children_cleanup was already called..."
+		     "Maybe children_cleanup was already called..."
     local sta=$(sed -n '1{s/^\([[0-9][0-9]]*\).*/\1/;p;q;}' <$i.sta)
     if test $res -lt $sta; then
       res=$sta


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

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

+/**
+ *  Sets the fill for this data series. You can specify either an object implementing the IFill interface,
+ *  or a number representing a solid color value. You can also specify a solid fill using CSS.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
 [Style(name="fill", type="mx.graphics.IFill", inherit="no")]

 /**


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

--- frameworks/projects/framework/src/mx/effects/effectClasses/RotateInstance.as
+++ frameworks/projects/framework/src/mx/effects/effectClasses/RotateInstance.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  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.
+//  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
+//
+//      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.
 //
 ////////////////////////////////////////////////////////////////////////////////


FLEX-34543 Accepting patch from Marcus Wilkinson.

--- frameworks/projects/spark/src/spark/components/gridClasses/DataGridEditor.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/DataGridEditor.as
@@ -931,7 +931,7 @@

         dataGridEvent.columnIndex = editedItemPosition.columnIndex;
         dataGridEvent.column = itemEditorInstance.column;
-        dataGridEvent.rowIndex = editedItemPosition.rowIndex;
+        dataGridEvent.rowIndex = dataGrid.dataProvider ? dataGrid.dataProvider.getItemIndex(itemEditorInstance.data) : -1;
         dataGrid.dispatchEvent(dataGridEvent);
     }

@@ -960,6 +960,7 @@
         inEndEdit = true;

         var itemPosition:Object = editedItemPosition;
+        var editedItem:Object = itemEditorInstance.data;
         if (!saveItemEditorSession())
         {
             // The save was cancelled so check if the editor can be cancelled.
@@ -977,7 +978,7 @@
         // GRID_ITEM_EDITOR_SESSION_SAVE events are NOT cancelable
         dataGridEvent.columnIndex = itemPosition.columnIndex;
         dataGridEvent.column = dataGrid.columns.getItemAt(itemPosition.columnIndex) as GridColumn;
-        dataGridEvent.rowIndex = itemPosition.rowIndex;
+        dataGridEvent.rowIndex = dataGrid.dataProvider ? dataGrid.dataProvider.getItemIndex(editedItem) : -1;
         dataGrid.dispatchEvent(dataGridEvent);

         inEndEdit = false;


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

--- frameworks/projects/automation_spark/src/spark/automation/tabularData/SparkListBaseTabularData.as
+++ frameworks/projects/automation_spark/src/spark/automation/tabularData/SparkListBaseTabularData.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 spark.automation.tabularData
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 11273
Author:   aharui@adobe.com
Date:     2009-10-29T18:57:54.403337Z

Log Message:
-----------
Initial check in of MXItemRenderer and friends

QE Notes: New Classes and Code
Doc Notes: New Classes and Code
Bugs: None
Reviewer: Ryan
API Change: yes
Is noteworthy for integration: No
tests: checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/BaseListData.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListData.as</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/treeClasses</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridListData.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/treeClasses/TreeListData.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/tests/basicTests/halo/scripts/MXItemRendererTestScript.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/listClasses/MXItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/basicTests/BasicTests-config.xml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/tests/basicTests/halo/views/MXItemRendererTests.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/dataGridClasses/MXDataGridItemRenderer.as</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/listClasses</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/treeClasses/MXTreeItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/spark-manifest.xml</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/tests/basicTests/BasicTests.mxml</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/ItemRenderer.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ItemRenderer.as
@@ -79,12 +79,6 @@

     /**
      *  @private
-     *  Flag that is set when the mouse is hovered over the item renderer.
-     */
-    private var hovered:Boolean = false;
-
-    /**
-     *  @private
      *  Whether the renderer's state is invalid or not.
      */
     private var rendererStateIsDirty:Boolean = false;
@@ -103,7 +97,7 @@
     //--------------------------------------------------------------------------

     //----------------------------------
-    //  handleHighlightBackground
+    //  autoDrawBackground
     //----------------------------------

     /**
@@ -147,6 +141,42 @@
         }
     }

+    //----------------------------------
+    //  hovered
+    //----------------------------------
+    /**
+     *  @private
+     *  storage for the selected property
+     */
+    private var _hovered:Boolean = false;
+
+    /**
+     *  Flag that is set when the mouse is hovered over the item renderer.
+     *
+     *  @default false
+     */
+    protected function get hovered():Boolean
+    {
+        return _hovered;
+    }
+
+    /**
+     *  @private
+     */
+    protected function set hovered(value:Boolean):void
+    {
+        if (value != _hovered)
+        {
+            _hovered = value;
+            setCurrentState(getCurrentRendererState(), playTransitions);
+            if (autoDrawBackground)
+            {
+                redrawRequested = true;
+                super.$invalidateDisplayList();
+            }
+        }
+    }
+
     //----------------------------------
     //  itemIndex
     //----------------------------------
@@ -458,7 +488,7 @@
      */
     override mx_internal function drawBackground():void
     {
-        // if handleHighlightBackground is set to true, we always
+        // if autoDrawBackground is set to true, we always
         // draw a background and don't need to worry about mouseEnabledWhereTransparent.
         // However, if it's false, then we should just let super.drawBackground()
         // do its job.
@@ -551,15 +581,7 @@
     protected function itemRenderer_rollOverHandler(event:MouseEvent):void
     {
         if (!anyButtonDown(event))
-        {
             hovered = true;
-            setCurrentState(getCurrentRendererState(), playTransitions);
-            if (autoDrawBackground)
-            {
-                redrawRequested = true;
-                super.$invalidateDisplayList();
-            }
-        }
     }

     /**
@@ -569,12 +591,6 @@
     protected function itemRenderer_rollOutHandler(event:MouseEvent):void
     {
         hovered = false;
-        setCurrentState(getCurrentRendererState(), playTransitions);
-        if (autoDrawBackground)
-        {
-            redrawRequested = true;
-            super.$invalidateDisplayList();
-        }
     }

 }


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

--- frameworks/projects/spark/src/spark/skins/spark/HighlightBitmapCaptureSkin.as
+++ frameworks/projects/spark/src/spark/skins/spark/HighlightBitmapCaptureSkin.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.skins.spark
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 18561
Author:   klin@adobe.com
Date:     2010-11-12T19:56:05.261580Z

Log Message:
-----------
Add down state to IGridItemRenderer. Added down state support in GridColumnHeaderGroup for UI feedback. Also, fixed various bugs relating to the header renderers.

IGridItemRenderer.as, GridItemRenderer.as, TextFieldGridItemRendererInclude.as
-Add down property

DefaultGridColumnHeaderRenderer.mxml (Both spark and wireframe)
-Add back missing showTruncationTip property.
-Modified the states to be GridItemRenderer states. This gives us the UI feedback like a Button
-Only include the sort indicator in the layout when its visible so that the sort indicator doesn’t overlap the header text.

GridColumnHeaderGroup.as
-Added downColumnIndex, hoverColumnIndex to support the header renderer states. I modified the mouse handlers to handle these cases.

GridColumnHeaderGroupLayout.as
-Added initalizeItemRenderer to set the properties on the header renderers using the down/hoverColumnIndex from GCHG.
-Fixed a bug in getHeaderIndex() so that we return the correct header if the x is past the end of the grid but still over the vertical scroll bar.

QE notes: No
Doc notes: No
Bugs: SDK-28299, SDK-28431, SDK-28442, SDK-28450
Reviewer: Hans
Tests run: cyclone, checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DefaultGridHeaderRenderer.mxml</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/wireframe/src/spark/skins/wireframe/DefaultGridHeaderRenderer.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/GridColumnHeaderGroup.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridColumnHeaderGroupLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/TextFieldGridItemRendererInclude.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridItemRenderer.as</path>

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

--- frameworks/projects/spark/src/spark/components/gridClasses/GridItemRenderer.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridItemRenderer.as
@@ -23,7 +23,6 @@
 import mx.managers.ISystemManager;

 import spark.components.Group;
-import spark.components.supportClasses.ItemRenderer;
 import spark.components.supportClasses.TextBase;

 use namespace mx_internal;
@@ -39,8 +38,8 @@
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
- *  @playerversion AIR 1.5
- *  @productversion Flex 4
+ *  @playerversion AIR 2.0
+ *  @productversion Flex 4.5
  */
 [Event(name="dataChange", type="mx.events.FlexEvent")]

@@ -52,8 +51,22 @@
  */
 public class GridItemRenderer extends Group implements IGridItemRenderer
 {
-    include "../../core/Version.as";
-
+    include "../../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.0
+     *  @productversion Flex 4.5
+     */
     public function GridItemRenderer()
     {
         super();
@@ -65,7 +78,7 @@

     //--------------------------------------------------------------------------
     //
-    //  Private Properties
+    //  Variables
     //
     //--------------------------------------------------------------------------

@@ -89,6 +102,9 @@
     //
     //--------------------------------------------------------------------------

+    /**
+     *  @private
+     */
     private function dispatchChangeEvent(type:String):void
     {
         if (hasEventListener(type))
@@ -128,6 +144,11 @@
      *  before calling preprare()
.
      *
      *  @default null
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.0
+     *  @productversion Flex 4.5
      */
     public function get column():GridColumn
     {
@@ -160,6 +181,11 @@
      *  that, despite its name, this property does not depend on the column's "dataField".
      *
      *  @default null
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.0
+     *  @productversion Flex 4.5
      */
     public function get data():Object
     {
@@ -182,11 +208,49 @@
     }

     //----------------------------------
+    //  down
+    //----------------------------------
+
+    /**
+     *  @private
+     *  storage for the down property
+     */
+    private var _down:Boolean = false;
+
+    /**
+     *  @inheritDoc
+     *
+     *  @default false
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.0
+     *  @productversion Flex 4.5
+     */
+    public function get down():Boolean
+    {
+        return _down;
+    }
+
+    /**
+     *  @private
+     */
+    public function set down(value:Boolean):void
+    {
+        if (value == _down)
+            return;
+
+        _down = value;
+        setCurrentState(getCurrentRendererState(), playTransitions);
+    }
+
+    //----------------------------------
     //  hovered
     //----------------------------------
-    /**
-     *  @private
-     *  storage for the selected property
+
+    /**
+     *  @private
+     *  storage for the hovered property
      */
     private var _hovered:Boolean = false;

@@ -194,6 +258,11 @@
      *  Set to true when the mouse is hovered over the item renderer.
      *
      *  @default false
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.0
+     *  @productversion Flex 4.5
      */
     public function get hovered():Boolean
     {
@@ -227,6 +296,11 @@
      *  before calling prepare()
.
      *
      *  @default -1
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.0
+     *  @productversion Flex 4.5
      */
     public function get rowIndex():int
     {
@@ -262,6 +336,11 @@
      *  before calling preprare()
.
      *
      *  @default false
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.0
+     *  @productversion Flex 4.5
      */
     public function get showsCaret():Boolean
     {
@@ -299,6 +378,11 @@
      *  before calling preprare()
.
      *
      *  @default false
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.0
+     *  @productversion Flex 4.5
      */
     public function get selected():Boolean
     {
@@ -362,7 +446,12 @@
      *
The Grid sets this property to the value of the column's itemToLabel() method, before
      *  calling preprare().

      *
-     *  @default ""
+     *  @default ""
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.0
+     *  @productversion Flex 4.5
      */
     public function get label():String
     {
@@ -398,6 +487,11 @@
      *  text will be kept in sync with this renderer's label.
      *
      *  @default null
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.0
+     *  @productversion Flex 4.5
      */
     public function get labelDisplay():TextBase
     {
@@ -425,23 +519,48 @@
     /**
      *  Returns the name of the state to be applied to the renderer. For example, a
      *  very basic Grid item renderer would return the String "normal", "hovered",
-     *  or "selected" to specify the renderer's state.
+     *  or "selected" to specify the renderer's state.
+     *  If dealing with touch interactions (or mouse interactions where selection
+     *  is ignored), "down" and "downAndSelected" are also important states.
      *
      *
A subclass of GridItemRenderer must override this method to return a value
      *  if the behavior desired differs from the default behavior.

      *
-     *  @return A string specifying the name of the state to apply to the renderer.
+     *
In Flex 4.0, the 3 main states were "normal", "hovered", and "selected".
+     *  In Flex 4.5, "down" and "downAndSelected" have been added.

+     *
+     *
The full set of states supported (in order of precedence) are:
+     *

+     *
dragging

+     *
downAndSelected

+     *
selectedAndShowsCaret

+     *
hoveredAndShowsCaret

+     *
normalAndShowsCaret

+     *
down

+     *
selected

+     *
hovered

+     *
normal

+     *

+     *

+     *
+     *  @return A String specifying the name of the state to apply to the renderer.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
+     *  @playerversion AIR 2.0
+     *  @productversion Flex 4.5
      */
     protected function getCurrentRendererState():String
     {
+        // this code is pretty confusing without multi-dimensional states, but it's
+        // defined in order of precedence.
+
         if (dragging && hasState("dragging"))
             return "dragging";

+        if (selected && down && hasState("downAndSelected"))
+            return "downAndSelected";
+
         if (selected && showsCaret && hasState("selectedAndShowsCaret"))
             return "selectedAndShowsCaret";

@@ -451,6 +570,9 @@
         if (showsCaret && hasState("normalAndShowsCaret"))
             return "normalAndShowsCaret";

+        if (down && hasState("down"))
+            return "down";
+
         if (selected && hasState("selected"))
             return "selected";

@@ -460,6 +582,9 @@
         if (hasState("normal"))
             return "normal";

+        // If none of the above states are defined in the item renderer,
+        // we return null. This means the user-defined renderer
+        // will display but essentially be non-interactive visually.
         return null;
     }

@@ -504,7 +629,6 @@
             toolTip = null;
     }

-
     /**
      *  @inheritDoc
      */


ZoomBounds now defines session state with data area instead of
dataAreaPerPixel.

Change-Id: I2a8450144fe8687b5afe7930e6451f3cf7da5360

--- WeaveData/src/weave/primitives/ZoomBounds.as
+++ WeaveData/src/weave/primitives/ZoomBounds.as
@@ -19,6 +19,8 @@

 package weave.primitives
 {
+	import mx.utils.ObjectUtil;
+
 	import weave.api.WeaveAPI;
 	import weave.api.core.ICallbackCollection;
 	import weave.api.core.ILinkableObject;
@@ -35,7 +37,7 @@

 	/**
 	 * This object defines the data bounds of a visualization, either directly with
-	 * absolute coordinates or indirectly with center coordinates and a scale value.
+	 * absolute coordinates or indirectly with center coordinates and area.
 	 * Screen coordinates are never directly specified in the session state.
 	 *
 	 * @author adufilie
@@ -62,7 +64,7 @@
 				return {
 					xCenter: MathLib.roundSignificant(_dataBounds.getXCenter()),
 					yCenter: MathLib.roundSignificant(_dataBounds.getYCenter()),
-					areaPerPixel: MathLib.roundSignificant(_dataBounds.getArea() / _screenBounds.getArea())
+					area: MathLib.roundSignificant(_dataBounds.getArea())
 				};
 			}
 			else
@@ -93,37 +95,52 @@
 			}
 			else
 			{
-				var usedCenterCoords:Boolean = false;
+				var useFixedAspectRatio:Boolean = false;
 				if (state.hasOwnProperty("xCenter"))
 				{
+					useFixedAspectRatio = true;
 					if (MathLib.roundSignificant(_dataBounds.getXCenter()) != state.xCenter)
 					{
 						_dataBounds.setXCenter(state.xCenter);
 						cc.triggerCallbacks();
 					}
-					usedCenterCoords = true;
 				}
 				if (state.hasOwnProperty("yCenter"))
 				{
+					useFixedAspectRatio = true;
 					if (MathLib.roundSignificant(_dataBounds.getYCenter()) != state.yCenter)
 					{
 						_dataBounds.setYCenter(state.yCenter);
 						cc.triggerCallbacks();
 					}
-					usedCenterCoords = true;
-				}
-				if (state.hasOwnProperty("areaPerPixel"))
-				{
-					if (MathLib.roundSignificant(_dataBounds.getArea() / _screenBounds.getArea()) != state.areaPerPixel)
-					{
-						var scale:Number = Math.sqrt(state.areaPerPixel);
-						_dataBounds.centeredResize(_screenBounds.getXCoverage() * scale, _screenBounds.getYCoverage() * scale);
+				}
+				if (state.hasOwnProperty("area"))
+				{
+					useFixedAspectRatio = true;
+					if (MathLib.roundSignificant(_dataBounds.getArea()) != state.area)
+					{
+						// We can't change the screen area.  Adjust the dataBounds to match the specified area.
+						/*
+							Ad = Wd * Hd
+							Wd/Hd = Ws/Hs
+							Wd = Hd * Ws/Hs
+							Ad = Hd^2 * Ws/Hs
+							Hd^2 = Ad * Hs/Ws
+							Hd = sqrt(Ad * Hs/Ws)
+						*/
+
+						var Ad:Number = state.area;
+						var HsWsRatio:Number = _screenBounds.getYCoverage() / _screenBounds.getXCoverage();
+						if (!isFinite(HsWsRatio)) // handle case if screenBounds is undefined
+							HsWsRatio = 1;
+						var Hd:Number = Math.sqrt(Ad * HsWsRatio);
+						var Wd:Number = Ad / Hd;
+						_dataBounds.centeredResize(Wd, Hd);
 						cc.triggerCallbacks();
 					}
-					usedCenterCoords = true;
 				}

-				if (!usedCenterCoords)
+				if (!useFixedAspectRatio)
 				{
 					var names:Array = ["xMin", "yMin", "xMax", "yMax"];
 					for each (var name:String in names)
@@ -136,7 +153,7 @@
 					}
 				}

-				_useFixedAspectRatio = usedCenterCoords;
+				_useFixedAspectRatio = useFixedAspectRatio;
 			}

 			cc.resumeCallbacks();


FLVTag: distinguish keyframe NALu when debugging

--- src/org/mangui/hls/flv/FLVTag.as
+++ src/org/mangui/hls/flv/FLVTag.as
@@ -176,7 +176,11 @@
                     case AVC_HEADER:
                         return "AVC_HEADER";
                     case AVC_NALU:
-                        return "AVC_NALU";
+                        if(keyframe) {
+                            return "AVC_NALU_K";
+                        } else {
+                            return "AVC_NALU";
+                        }
                     case MP3_RAW:
                         return "MP3_RAW";
                     case DISCONTINUITY:


FLVTag : compute ByteArray length straight from the beginning

to optimize memory usage and avoid triggering the GC too often

--- src/org/mangui/hls/flv/FLVTag.as
+++ src/org/mangui/hls/flv/FLVTag.as
@@ -60,7 +60,7 @@
         /** Get an FLV Tag header (11 bytes). **/
         public static function getTagHeader(type : int, length : int, stamp : int) : ByteArray {
             var tag : ByteArray = new ByteArray();
-            tag.length = 11;
+            tag.length = 11+length+4;
             tag.writeByte(type);

             // Size of the tag in bytes after StreamID.
@@ -204,4 +204,4 @@
         this.start = start;
         this.length = length;
     }
-}+}


Added PickingController.disableAntiAliasing property

--- src/aerys/minko/scene/controller/PickingController.as
+++ src/aerys/minko/scene/controller/PickingController.as
@@ -55,7 +55,8 @@
 		private static const EVENT_MIDDLE_DOWN		: uint 			= 1 << 14;
 		private static const EVENT_MIDDLE_UP		: uint 			= 1 << 15;

-		private static var _previousAntiAliasing	: int = 0;
+		private static var _disableAntiAliasing		: Boolean		= false;
+		private static var _previousAntiAliasing	: int			= 0;

         private var _technique          	: uint;
 		private var _pickingRate			: Number;
@@ -97,6 +98,16 @@

 		private var _pixelPickingIncrement	: uint;

+		public static function get disableAntiAliasing():Boolean
+		{
+			return _disableAntiAliasing;
+		}
+
+		public static function set disableAntiAliasing(value:Boolean):void
+		{
+			_disableAntiAliasing = value;
+		}
+
         public function get pickingRate() : Number
         {
             return _pickingRate;
@@ -378,7 +389,9 @@
 												context		: Context3DResource,
 												backBuffer	: RenderTarget) : void
 		{
-			context.configureBackBuffer(backBuffer.width, backBuffer.height, 0, true);
+			if (_disableAntiAliasing && backBuffer.antiAliasing != 0)
+				context.configureBackBuffer(backBuffer.width, backBuffer.height, 0, true);
+
 			context.clear(0, 0, 0, 0);
 		}

@@ -396,8 +409,11 @@
 				(color & 0xff) / 255.
 			);

-			context.configureBackBuffer(backBuffer.width, backBuffer.height, _previousAntiAliasing, true);
-			context.clear(0, 0, 0, 0);
+			if (_disableAntiAliasing && backBuffer.antiAliasing != _previousAntiAliasing)
+			{
+				context.configureBackBuffer(backBuffer.width, backBuffer.height, _previousAntiAliasing, true);
+				context.clear(0, 0, 0, 0);
+			}

 			SHADER.enabled = false;
 		}


Removed trace in PickingController

Removed trace in PickingController

--- src/aerys/minko/scene/controller/PickingController.as
+++ src/aerys/minko/scene/controller/PickingController.as
@@ -578,7 +578,6 @@
 		private function addMesh(mesh : Mesh) : void
 		{
 			_pickingId += _pixelPickingIncrement;
-			trace("PICKING ID", _pickingId.toString(16), mesh.name);
 			_pickingIdToMesh[_pickingId] = mesh;

 			var meshData : DataProvider = new DataProvider(


ooo-style formatting and importing.

ooo-style formatting and importing.

git-svn-id: b675b909355d5cf946977f44a8ec5a6ceb3782e4@670 ed5b42cb-e716-0410-a449-f6a68f950b19

--- src/as/com/threerings/flash/BackgroundJPGEncoder.as
+++ src/as/com/threerings/flash/BackgroundJPGEncoder.as
@@ -21,8 +21,12 @@

 package com.threerings.flash {

-import flash.display.*;
-import flash.events.*;
+import flash.display.BitmapData;
+
+import flash.events.Event;
+import flash.events.EventDispatcher;
+import flash.events.TimerEvent;
+
 import flash.utils.Timer;

 import com.threerings.util.ValueEvent;
@@ -38,8 +42,8 @@
 /**
  * Class that will encode a jpeg in the background and fire an event when it's done.
  */
-public class BackgroundJPGEncoder extends EventDispatcher {
-
+public class BackgroundJPGEncoder extends EventDispatcher
+{
     /**
      * Construct a jpeg encoder.  Once started, the encoder will encode a jpeg over the course
      * of multiple frames, generating an event to deliver the finished jpeg when it is done.
@@ -48,46 +52,46 @@
      * @param quality The jpeg quality from 1 to 100 which determines the compression level.
      * @param timeSlice The number of milliseconds of processing to do per frame.
      */
-	public function BackgroundJPGEncoder (
-	    image :BitmapData, quality :Number = 50, timeSlice :int = 100)
-	{
-	    _timeSlice = timeSlice;
-	    _encoder = new JPGEncoder(image, quality, PIXEL_GRANULARITY);
-	    _timer = new Timer(1);
-	    _timer.addEventListener(TimerEvent.TIMER, timerHandler);
-	}
-
-	/**
-	 * Start encoding
-	 */
-	public function start () :void
-	{
-	    _timer.start();
-	}
-
-	/**
-	 * Cancel encoding and discard any intermediate results.
-	 */
-	public function cancel () :void
-	{
-	    _timer.stop();
-	    _timer = null;
-	    _encoder = null;
-	}
-
-	protected function timerHandler (event :TimerEvent) :void
-	{
-	    if (_encoder.process(_timeSlice)) {
-	        _timer.stop();
-	        // The jpeg is ready so we fire an event passing it to the consumer.
-	        dispatchEvent(new ValueEvent(Event.COMPLETE, _encoder.getJpeg()));
-	    }
-	}
-
-	protected var _timeSlice :int;
-	protected var _timer :Timer;
-	protected var _encoder :JPGEncoder;
-
-	protected const PIXEL_GRANULARITY :int = 100;
+    public function BackgroundJPGEncoder (
+        image :BitmapData, quality :Number = 50, timeSlice :int = 100)
+    {
+        _timeSlice = timeSlice;
+        _encoder = new JPGEncoder(image, quality, PIXEL_GRANULARITY);
+        _timer = new Timer(1);
+        _timer.addEventListener(TimerEvent.TIMER, timerHandler);
+    }
+
+    /**
+     * Start encoding
+     */
+    public function start () :void
+    {
+        _timer.start();
+    }
+
+    /**
+     * Cancel encoding and discard any intermediate results.
+     */
+    public function cancel () :void
+    {
+        _timer.stop();
+        _timer = null;
+        _encoder = null;
+    }
+
+    protected function timerHandler (event :TimerEvent) :void
+    {
+        if (_encoder.process(_timeSlice)) {
+            _timer.stop();
+            // The jpeg is ready so we fire an event passing it to the consumer.
+            dispatchEvent(new ValueEvent(Event.COMPLETE, _encoder.getJpeg()));
+        }
+    }
+
+    protected var _timeSlice :int;
+    protected var _timer :Timer;
+    protected var _encoder :JPGEncoder;
+
+    protected const PIXEL_GRANULARITY :int = 100;
 }
 }


Added node attribute to DiscoItem.

Added node attribute to DiscoItem.

--- src/org/igniterealtime/xiff/data/disco/DiscoItem.as
+++ src/org/igniterealtime/xiff/data/disco/DiscoItem.as
@@ -42,7 +42,7 @@

 		public function equals( other:DiscoItem ):Boolean
 		{
-			return jid == other.jid && name == other.name;
+			return jid == other.jid && name == other.name && node == other.node;
 		}

 		public function get jid():String
@@ -65,5 +65,15 @@
 			getNode().attributes.name = value;
 		}

+		public function get node():String
+		{
+			return getNode().attributes.node;
+		}
+
+		public function set node( value:String ):void
+		{
+			getNode().attributes.node = value;
+		}
+
 	}
 }


Issue #72: Migrate outdated HeaderController search results title tag to new structure.

--- src/modules/HeaderController/HeaderControllerModel.as
+++ src/modules/HeaderController/HeaderControllerModel.as
@@ -51,6 +51,8 @@
     [Bindable]
     public var searchResultTitle:String;
     [Bindable]
+    public var searchResultDescription:String;
+    [Bindable]
     public var locatorURL:String = Model.instance.geocodeURL || DEFAULT_LOCATOR_URL;
     [Bindable]
     public var useProxy:Boolean = false;
@@ -128,10 +130,16 @@
                     prompt = parsedPrompt;
                 }

-                const parsedSearchResultTitle:String = geocoderXML.labels.searchresulttitle[0];
+                const parsedSearchResultTitle:String = geocoderXML.result.title[0] || geocoderXML.labels.searchresulttitle[0];
                 if (parsedSearchResultTitle)
                 {
                     searchResultTitle = parsedSearchResultTitle;
+                }
+
+                const parsedSearchResultDescription:String = geocoderXML.result.description[0];
+                if (parsedSearchResultDescription)
+                {
+                    searchResultDescription = parsedSearchResultDescription;
                 }
             }

@@ -333,6 +341,21 @@
         {
             geocoderXML.appendChild(<usemapservicesonly>true</usemapservicesonly>);
         }
+        if (searchResultTitle || searchResultDescription)
+        {
+            var resultsXML:XML = <results/>;
+
+            if (searchResultTitle)
+            {
+                resultsXML.appendChild(<title>{searchResultTitle}</title>);
+            }
+            if (searchResultDescription)
+            {
+                resultsXML.appendChild(<description>{searchResultDescription}</description>);
+            }
+
+            geocoderXML.appendChild(resultsXML);
+        }

         var labelsXML:XML = getLabelsXML();
         if (labelsXML)
@@ -360,10 +383,6 @@
             {
                 labelsXML.appendChild(<searchprompt>{prompt}</searchprompt>);
             }
-            if (searchResultTitle)
-            {
-                labelsXML.appendChild(<searchresulttitle>{searchResultTitle}</searchresulttitle>);
-            }
         }

         return labelsXML;


Updated shuffle() to use Vector types as well.

--- net/flashpunk/FP.as
+++ net/flashpunk/FP.as
@@ -475,19 +475,21 @@

 		/**
 		 * Shuffles the elements in the array.
-		 * @param	a		The array to shuffle.
+		 * @param	a		The Object to shuffle (an Array or Vector).
 		 * @return	The provided array with elements shuffled.
 		 */
-		public static function shuffle(a:Array):Array
-		{
-			var i:int = a.length, j:int, t:*;
-			while (i --)
-			{
-				t = a[i];
-				a[i] = a[j = FP.rand(i + 1)];
-				a[j] = t;
-			}
-			return a;
+		public static function shuffle(a:Object):void
+		{
+			if (a is Array || a is Vector.<*>)
+			{
+				var i:int = a.length, j:int, t:*;
+				while (-- i)
+				{
+					t = a[i];
+					a[i] = a[j = FP.rand(i + 1)];
+					a[j] = t;
+				}
+			}
 		}

 		/**


Added sortBy() and quicksortBy() to FP, for sorting elements by property.

--- net/flashpunk/FP.as
+++ net/flashpunk/FP.as
@@ -502,13 +502,24 @@
 			return a;
 		}

-		/** @private Quicksorts the array ascending. */
+		/**
+		 * Sorts the elements in the array by a property of the element.
+		 * @param	a			The array to sort.
+		 * @param	property	The numeric property to sort by.
+		 * @param	ascending	If it should be sorted ascending (true) or descending (false).
+		 * @return	The provided array with elements sorted.
+		 */
+		public static function sortBy(a:Array, property:String, ascending:Boolean = true):Array
+		{
+			quicksortBy(a, 0, a.length - 1, ascending, property);
+			return a;
+		}
+
+		/** @private Quicksorts the array. */
 		private static function quicksort(a:Array, left:int, right:int, ascending:Boolean):void
 		{
-			var i:int = left,
-				j:int = right,
-				p:Number = a[Math.round((left + right) * .5)],
-				t:Number;
+			var i:int = left, j:int = right, t:Number,
+				p:Number = a[Math.round((left + right) * .5)];
 			if (ascending)
 			{
 				while (i <= j)
@@ -541,6 +552,43 @@
 			if (i < right) quicksort(a, i, right, ascending);
 		}

+		/** @private Quicksorts the array by the property. */
+		private static function quicksortBy(a:Array, left:int, right:int, ascending:Boolean, property:String):void
+		{
+			var i:int = left, j:int = right, t:Object,
+				p:Number = a[Math.round((left + right) * .5)][property];
+			if (ascending)
+			{
+				while (i <= j)
+				{
+					while (a[i][property] < p) i ++;
+					while (a[j][property] > p) j --;
+					if (i <= j)
+					{
+						t = a[i];
+						a[i ++] = a[j];
+						a[j --] = t;
+					}
+				}
+			}
+			else
+			{
+				while (i <= j)
+				{
+					while (a[i][property] > p) i ++;
+					while (a[j][property] < p) j --;
+					if (i <= j)
+					{
+						t = a[i];
+						a[i ++] = a[j];
+						a[j --] = t;
+					}
+				}
+			}
+			if (left < j) quicksortBy(a, left, j, ascending, property);
+			if (i < right) quicksortBy(a, i, right, ascending, property);
+		}
+
 		// World information
 		/** @private */ internal static var _world:World;
 		/** @private */ internal static var _goto:World;


coding

coding

--- src/org/mangui/hls/demux/TSDemuxer.as
+++ src/org/mangui/hls/demux/TSDemuxer.as
@@ -75,12 +75,12 @@

         public static function probe(data : ByteArray) : Boolean {
             var pos : uint = data.position;
-            var len : uint = Math.min(data.bytesAvailable, 188 * 2);
+            var len : uint = Math.min(data.bytesAvailable, PACKETSIZE * 2);
             for (var i : int = 0; i < len; i++) {
                 if (data.readByte() == SYNCBYTE) {
                     // ensure that at least two consecutive TS start offset are found
-                    if (data.bytesAvailable > 188) {
-                        data.position = pos + i + 188;
+                    if (data.bytesAvailable > PACKETSIZE) {
+                        data.position = pos + i + PACKETSIZE;
                         if (data.readByte() == SYNCBYTE) {
                             data.position = pos + i;
                             return true;
@@ -161,7 +161,7 @@
             var start_time : int = getTimer();
             _data.position = _read_position;
             // dont spend more than 20ms demuxing TS packets to avoid loosing frames
-            while ((_data.bytesAvailable >= 188) && ((getTimer() - start_time) < 20)) {
+            while ((_data.bytesAvailable >= PACKETSIZE) && ((getTimer() - start_time) < 20)) {
                 _parseTSPacket();
             }
             if (_tags.length) {
@@ -171,7 +171,7 @@
             if (_data) {
                 _read_position = _data.position;
                 // finish reading TS fragment
-                if (_data_complete && _data.bytesAvailable < 188) {
+                if (_data_complete && _data.bytesAvailable < PACKETSIZE) {
                     // free ByteArray
                     _data = null;
                     // first check if TS parsing was successful
@@ -811,4 +811,4 @@
             return len + pointerField;
         };
     }
-}+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 5545
Author:   jimurphy@adobe.com
Date:     2009-03-25T19:00:52.330680Z

Log Message:
-----------
1st pass of rename according to the spec http://opensource.adobe.com/wiki/display/flexsdk/Dropping+the+Fx+Prefix

Flex now requires CSS Style declarations to declare @namespace rules and disambiguate between halo and spark components using CSS 3 namespace prefixes on type selectors. At compile time, this namespace information will be used to map type names to qualified ActionScript class names. At runtime, type selectors are matched on qualified ActionScript class name (for example mx.controls.Button rather than just Button). Flex 3 applications must be compiled with -compatibility-version=3.0.0 to get unqualified CSS type selector behavior.

QE: Yes, this build may help in updating test cases to use the new namespaces and class names.
Dev: Not yet
Doc: Not yet

Modified Paths:
--------------
748 paths were modified

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

--- frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
+++ frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
@@ -9,7 +9,7 @@
 //
 ////////////////////////////////////////////////////////////////////////////////

-package mx.graphics.baseClasses
+package spark.primitives.supportClasses
 {

 import flash.display.BitmapData;
@@ -29,14 +29,14 @@
 import flash.geom.Transform;
 import flash.geom.Vector3D;

-import mx.components.Group;
+import spark.components.Group;
 import mx.core.AdvancedLayoutFeatures;
 import mx.core.IID;
 import mx.core.IInvalidating;
 import mx.core.ILayoutElement;
 import mx.core.IUIComponent;
 import mx.core.IVisualElement;
-import mx.core.InvalidatingSprite;
+import spark.components.supportClasses.InvalidatingSprite;
 import mx.core.UIComponent;
 import mx.core.UIComponentGlobals;
 import mx.core.mx_internal;
@@ -47,14 +47,14 @@
 import mx.filters.IBitmapFilter;
 import mx.geom.Transform;
 import mx.geom.TransformOffsets;
-import mx.graphics.IGraphicElement;
+import spark.core.IGraphicElement;
 import mx.graphics.IStroke;
-import mx.graphics.MaskType;
+import spark.core.MaskType;
 import mx.managers.ILayoutManagerClient;
 import mx.managers.LayoutManager;
 import mx.utils.MatrixUtil;
 import mx.utils.OnDemandEventDispatcher;
-
+import spark.primitives.supportClasses.ISharedGraphicsDisplayObject;
 use namespace mx_internal;

 /**


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

--- frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
+++ frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
@@ -2907,8 +2907,7 @@
         // set the layoutFeatures.mirror flag.  Similarly, if mirroring isn't
         // required, then clear the layoutFeatures.mirror flag.

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

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


Consecutive keyframes with the same library item share DisplayObjects

--- runtime/src/main/as/flump/display/Layer.as
+++ runtime/src/main/as/flump/display/Layer.as
@@ -26,11 +26,20 @@
             // The layer is empty.
             movie.addChild(new Sprite());
         } else {
+            // Create the display objects for each keyframe.
+            // If multiple consecutive keyframes refer to the same library item,
+            // we reuse that item across those frames.
             _displays = new Vector.<DisplayObject>(_keyframes.length, true);
             for (ii = 0; ii < _keyframes.length; ++ii) {
                 var kf :KeyframeMold = _keyframes[ii];
-                var display :DisplayObject =
-                    (kf.ref == null ? new Sprite() : library.createDisplayObject(kf.ref));
+                var display :DisplayObject = null;
+                if (ii > 0 && _keyframes[ii - 1].ref == kf.ref) {
+                    display = _displays[ii - 1];
+                } else if (kf.ref == null) {
+                    display = new Sprite();
+                } else {
+                    display = library.createDisplayObject(kf.ref);
+                }
                 _displays[ii] = display;
                 display.name = src.name;
             }
@@ -73,13 +82,15 @@

         if (_needsKeyframeUpdate) {
             // Swap in the proper DisplayObject for this keyframe.
-            _movie.removeChildAt(_layerIdx);
             const disp :DisplayObject = _displays[_keyframeIdx];
-            // If we're swapping in a Movie, reset its timeline.
-            if (disp is Movie) {
-                Movie(disp).goTo(0);
+            if (_movie.getChildAt(_layerIdx) != disp) {
+                _movie.removeChildAt(_layerIdx);
+                // If we're swapping in a Movie, reset its timeline.
+                if (disp is Movie) {
+                    Movie(disp).goTo(0);
+                }
+                _movie.addChildAt(disp, _layerIdx);
             }
-            _movie.addChildAt(disp, _layerIdx);
         }
         _needsKeyframeUpdate = false;


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

--- frameworks/projects/automation_spark/src/spark/automation/codec/SparkDropDownListBaseSelectedItemCodec.as
+++ frameworks/projects/automation_spark/src/spark/automation/codec/SparkDropDownListBaseSelectedItemCodec.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 spark.automation.codec
 {


code improvements

code improvements

--- WeaveAPI/src/JavaScript.as
+++ WeaveAPI/src/JavaScript.as
@@ -234,6 +234,21 @@
 					"var symbols = [NaN, Infinity, -Infinity];",
 					"for (var i in symbols)",
 					"    lookup[symbols[i] + JSON_SUFFIX] = symbols[i];",
+
+					"function cacheProxyFunction(id) {",
+					"    var func = function() {",
+					"        var params = Array.prototype.slice.call(arguments);",
+					"        var paramsJson = JSON.stringify(params, flash[JSON_REPLACER]);",
+					"        try {",
+					"            var resultJson = flash[JSON_CALL](id, paramsJson);",
+					"        } catch (e) {",
+					"            throw new Error(e);",
+					"        }",
+					"        return JSON.parse(resultJson, flash[JSON_REVIVER]);",
+					"    };",
+					"    func[JSON_FUNCTION_PREFIX] = id;",
+					"    return lookup[id] = func;",
+					"}",

 					"flash[JSON_REPLACER] = function(key, value) {",
 					"    if (typeof value === 'function') {",
@@ -258,21 +273,8 @@
 					"    if (typeof value === 'string') {",
 					"        if (lookup.hasOwnProperty(value))",
 					"            value = lookup[value];",
-					"        else if (value.substr(0, JSON_FUNCTION_PREFIX.length) == JSON_FUNCTION_PREFIX) {",
-					"            var id = value;",
-					"            var func = function() {",
-					"                var params = Array.prototype.slice.call(arguments);",
-					"                var paramsJson = JSON.stringify(params, flash[JSON_REPLACER]);",
-					"                try {",
-					"                    var resultJson = flash[JSON_CALL](id, paramsJson);",
-					"                } catch (e) {",
-					"                    throw new Error(e);",
-					"                }",
-					"                return JSON.parse(resultJson, flash[JSON_REVIVER]);",
-					"            };",
-					"            func[JSON_FUNCTION_PREFIX] = id;",
-					"            value = lookup[id] = func;",
-					"        }",
+					"        else if (value.substr(0, JSON_FUNCTION_PREFIX.length) == JSON_FUNCTION_PREFIX)",
+					"            value = cacheProxyFunction(value);",
 					"    }",
 					"    for (var i in extensions)",
 					"        if (typeof extensions[i] === 'object' && typeof extensions[i].reviver === 'function')",
@@ -282,20 +284,6 @@
 				);
 			}
 		}
-
-		/*var replace = weave._jsonReplacer, revive = weave._jsonReviver;
-		weave._jsonReplacer = (k, v) => {
-		var r = replace.call(weave, k, v);
-		console.log('replace', k, v, r);
-		return r;
-		}
-		weave._jsonReviver = (k, v) => {
-		var r = revive.call(weave, k, v);
-		console.log('revive', k, v, r);
-		return r;
-		}
-		JSON.stringify({x: Math.round}, weave._jsonReplacer)
-		//*/

 		/**
 		 * Handles a JavaScript request.


OFC-531 Range attributes with type "real": It’s allowed to enter more than one decimal point (e.g. 345.54.54) and when focusing out of the input field the value previously entered gets lost.

--- collect-flex/collect-flex-client/src/main/flex/org/openforis/collect/presenter/RangeInputFieldPresenter.as
+++ collect-flex/collect-flex-client/src/main/flex/org/openforis/collect/presenter/RangeInputFieldPresenter.as
@@ -1,62 +1,62 @@
-package org.openforis.collect.presenter
-{
-	import org.openforis.collect.metamodel.proxy.RangeAttributeDefinitionProxy;
-	import org.openforis.collect.metamodel.proxy.RangeAttributeDefinitionProxy$Type;
-	import org.openforis.collect.model.proxy.AttributeProxy;
-	import org.openforis.collect.model.proxy.FieldProxy;
-	import org.openforis.collect.ui.component.input.RangeInputField;
-
-	/**
-	 * @author S. Ricci
-	 */
-	public class RangeInputFieldPresenter extends InputFieldPresenter {
-
-		protected static const RESTRICT_PATTERN:String = "^(\\*|-|\\?|((-?\\d*\\.?\\d*)(-?(-?\\d*\\.?\\d*))?))$";
-		protected static const INTEGER_RESTRICT_PATTERN:String = "^(\\*|-|\\?|((-?\\d*)(-?(-?\\d*))?))$";
-		protected static const SEPARATOR:String = "-";
-
-		private var _view:RangeInputField;
-
-		public function RangeInputFieldPresenter(inputField:RangeInputField) {
-			_view = inputField;
-			_view.fieldIndex = -1;
-			super(inputField);
-			setRestriction();
-		}
-
-		override protected function getTextFromValue():String {
-			var attribute:AttributeProxy = _view.attribute;
-			if(attribute != null) {
-				var field:FieldProxy = attribute.getField(0);
-				if(field.symbol != null) {
-					var shortKey:String = getShortCutForReasonBlank(field.symbol);
-					if(shortKey != null) {
-						return shortKey;
-					}
-				}
-				var start:Object = attribute.getField(0).value;
-				var end:Object = attribute.getField(1).value;
-				if(start != null && !isNaN(Number(start))) {
-					var result:String = start.toString();
-					if(end != null && !isNaN(Number(end)) && start != end) {
-						result += SEPARATOR + end.toString();
-					}
-					return result;
-				}
-			}
-			return "";
-		}
-
-		protected function setRestriction():void {
-			var type:RangeAttributeDefinitionProxy$Type = RangeAttributeDefinitionProxy(_view.attributeDefinition).type;
-			switch(type) {
-				case RangeAttributeDefinitionProxy$Type.INTEGER:
-					_view.restrict = INTEGER_RESTRICT_PATTERN;
-					break;
-				default:
-					_view.restrict = RESTRICT_PATTERN;
-			}
-		}
-
-	}
+package org.openforis.collect.presenter
+{
+	import org.openforis.collect.metamodel.proxy.RangeAttributeDefinitionProxy;
+	import org.openforis.collect.metamodel.proxy.RangeAttributeDefinitionProxy$Type;
+	import org.openforis.collect.model.proxy.AttributeProxy;
+	import org.openforis.collect.model.proxy.FieldProxy;
+	import org.openforis.collect.ui.component.input.RangeInputField;
+
+	/**
+	 * @author S. Ricci
+	 */
+	public class RangeInputFieldPresenter extends InputFieldPresenter {
+
+		protected static const RESTRICT_PATTERN:String = "^(\\*|-|\\?|((-?\\d*\\.?\\d*)(-(-?\\d*\\.?\\d*))?))$";
+		protected static const INTEGER_RESTRICT_PATTERN:String = "^(\\*|-|\\?|((-?\\d*)(-(-?\\d*))?))$";
+		protected static const SEPARATOR:String = "-";
+
+		private var _view:RangeInputField;
+
+		public function RangeInputFieldPresenter(inputField:RangeInputField) {
+			_view = inputField;
+			_view.fieldIndex = -1;
+			super(inputField);
+			setRestriction();
+		}
+
+		override protected function getTextFromValue():String {
+			var attribute:AttributeProxy = _view.attribute;
+			if(attribute != null) {
+				var field:FieldProxy = attribute.getField(0);
+				if(field.symbol != null) {
+					var shortKey:String = getShortCutForReasonBlank(field.symbol);
+					if(shortKey != null) {
+						return shortKey;
+					}
+				}
+				var start:Object = attribute.getField(0).value;
+				var end:Object = attribute.getField(1).value;
+				if(start != null && !isNaN(Number(start))) {
+					var result:String = start.toString();
+					if(end != null && !isNaN(Number(end)) && start != end) {
+						result += SEPARATOR + end.toString();
+					}
+					return result;
+				}
+			}
+			return "";
+		}
+
+		protected function setRestriction():void {
+			var type:RangeAttributeDefinitionProxy$Type = RangeAttributeDefinitionProxy(_view.attributeDefinition).type;
+			switch(type) {
+				case RangeAttributeDefinitionProxy$Type.INTEGER:
+					_view.restrict = INTEGER_RESTRICT_PATTERN;
+					break;
+				default:
+					_view.restrict = RESTRICT_PATTERN;
+			}
+		}
+
+	}
 }


adds new functions to sample app

adds new functions to sample app

--- sample/src/AirFacebookSample.as
+++ sample/src/AirFacebookSample.as
@@ -25,6 +25,11 @@

 			createUI(
 				{label: "Connect", 					handler: onBtnConnect},
+
+				{label: "Disconnect",				handler: onBtnDisconnect},
+
+				// you need to be connected to call this one
+				{label: "Share opengraph object (old version)", handler: onBtnShareOGAction},

 				// You don't need to be connected to use those functionalities
 				// it will call the native app or mFacebook in a webview
@@ -52,6 +57,11 @@

 		}

+		private function onBtnDisconnect(e:Event):void
+		{
+			Facebook.getInstance().closeSessionAndClearTokenInformation();
+		}
+
 		// ------------------
 		// showing dialogs
 		private function onBtnShareStatus(e:Event):void
@@ -94,6 +104,15 @@

 			trace(JSON.stringify(data));

+		}
+
+		private function onBtnShareOGAction(e:Event):void
+		{
+			var ogObject:Object = {
+				object:"http://freshplanet.com"
+			};
+
+			Facebook.getInstance().requestWithGraphPath("me/books.reads", ogObject, 'POST');
 		}


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

--- frameworks/projects/automation/src/mx/automation/codec/DateRangePropertyCodec.as
+++ frameworks/projects/automation/src/mx/automation/codec/DateRangePropertyCodec.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: 18868
Author:   clucier@adobe.com
Date:     2010-11-30T19:23:43.080694Z

Log Message:
-----------
Adding simple zoom view transition.

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/ZoomViewTransitionMode.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/transitions/ZoomViewTransition.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/transitions/ZoomViewTransition.as
+++ frameworks/projects/mobilecomponents/src/spark/transitions/ZoomViewTransition.as
@@ -0,0 +1,391 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.BlendMode;
+import flash.display.DisplayObject;
+import flash.display.DisplayObjectContainer;
+
+import mx.core.UIComponent;
+import mx.core.mx_internal;
+import mx.effects.Fade;
+import mx.effects.IEffect;
+import mx.effects.Parallel;
+
+import spark.components.Group;
+import spark.effects.Scale;
+
+use namespace mx_internal;
+
+/**
+ *  The ZoomViewTransition class serves as a zoom in/out transition
+ *  for views.  It performs its transition by zooming out the startView to reveal
+ *  the endView, or by zooming in the new endView to cover the startView.
+ *
+ *  The default duration of a ZoomViewTransition is 350ms.  In addition, the
+ *  zoom transition by default transitions the control bar and view content
+ *  as one (transitionControlsWithContent = true).
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 2.5
+ *  @productversion Flex 4.5
+ */
+public class ZoomViewTransition extends ViewTransitionBase
+{
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    public function ZoomViewTransition()
+    {
+        super();
+
+        // Default duration of 350 yields a smoother result.
+        duration = 350;
+
+        // Default to transitioning control bars with our views.
+        transitionControlsWithContent = true;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  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
+     */
+    private var transitionGroup:Group;
+
+    /**
+     *  @private
+     */
+    private var savedCacheAsBitmap:Boolean;
+
+    /**
+     *  @private
+     */
+    private var zoomTarget:UIComponent;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //---------------------------------
+    // minimumScale
+    //---------------------------------
+
+    private var _minimumScale:Number = .25;
+
+    /**
+     *  Specifies the minimum scale of the zoomed view (represents when the
+     *  view is first visible when zooming in or last visible when zooming
+     *  out).
+     *
+     *  @default .25
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    public function get minimumScale():Number
+    {
+        return _minimumScale;
+    }
+
+    /**
+     *  @private
+     */
+    public function set minimumScale(value:Number):void
+    {
+        _minimumScale = value;
+    }
+
+    //---------------------------------
+    // mode
+    //---------------------------------
+
+    private var _mode:String = ZoomViewTransitionMode.OUT;
+
+    /**
+     *  Specifies the type of zoom transition to perform.
+     *
+     *  @default ZoomTransitionMode.OUT
+     *
+     *  @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
+    {
+        // Suppress the default action bar transition, not really
+        // appropriate for the zoom.
+        actionBarTransitionMode = ViewTransitionBase.ACTION_BAR_MODE_NONE;
+
+        super.captureStartValues();
+
+        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
+    {
+        // Disable layout for our start view.
+        if (startView)
+        {
+            startViewProps = {includeInLayout:startView.includeInLayout};
+            startView.includeInLayout = false;
+        }
+
+        // Disable layout for our end view, and ensure z-order of the views
+        // is appropriate for our transition mode.
+        if (endView)
+        {
+            endViewProps = {includeInLayout:endView.includeInLayout};
+            endView.includeInLayout = false;
+
+            if (mode == ZoomViewTransitionMode.OUT)
+                setComponentChildIndex(endView, navigator, 0);
+        }
+
+        zoomTarget = (mode == ZoomViewTransitionMode.OUT) ? startView : endView;
+
+        // Initialize our target's transform center.
+        zoomTarget.transformX = endView.width / 2;
+        zoomTarget.transformY = endView.height / 2;
+
+        // Ensure our alpha is initialized to 0 prior to the start
+        // of our transition so that the view isn't displayed briefly
+        // after validation.
+        if (mode == ZoomViewTransitionMode.IN)
+            zoomTarget.alpha = 0;
+
+        // Set our blendMode to 'normal' for performance reasons.
+        startViewProps.zoomTargetBlendMode = zoomTarget.blendMode;
+        zoomTarget.blendMode = BlendMode.NORMAL;
+
+        return createZoomEffect(zoomTarget);
+    }
+
+    /**
+     *  @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)
+            return null;
+
+        // Add a group to contain our snapshot view of the navigator while
+        // we animate.
+        transitionGroup = new Group();
+        transitionGroup.includeInLayout = false;
+
+        // Add our temporary transition group to our target navigator's parent
+        // so we can make it and the original navigator siblings.
+        if (mode == ZoomViewTransitionMode.OUT)
+            addComponentToContainer(transitionGroup, DisplayObjectContainer(targetNavigator).parent as UIComponent);
+        else
+            addComponentToContainerAt(transitionGroup, DisplayObjectContainer(targetNavigator).parent as UIComponent,0);
+
+        // Position our snapshot above endView.
+        cachedNavigator.includeInLayout = false;
+        transitionGroup.addElement(cachedNavigator);
+
+        // Ensure that appropriate surfaces are cached and snapshots rendered.
+        transitionGroup.validateNow();
+        transitionGroup.x = transitionGroup.y = 0;
+
+        zoomTarget = (mode == ZoomViewTransitionMode.OUT) ? transitionGroup : targetNavigator.skin;
+
+        // Initialize our target's transform center.
+        zoomTarget.transformX = cachedNavigator.width / 2;
+        zoomTarget.transformY = cachedNavigator.height / 2;
+
+        // Ensure our alpha is initialized to 0 prior to the start
+        // of our transition so that the view isn't displayed briefly
+        // after validation.
+        if (mode == ZoomViewTransitionMode.IN)
+            zoomTarget.alpha = 0;
+
+        // Save view properties for restoration later.
+        startViewProps = { targetNavigatorIncludeInLayout:targetNavigator.includeInLayout,
+            zoomTargetBlendMode:zoomTarget.blendMode};
+
+        // Disable layout for our target navigator.
+        targetNavigator.includeInLayout = false;
+
+        // Set our blendMode to 'normal' for performance reasons.
+        zoomTarget.blendMode = BlendMode.NORMAL;
+
+        return createZoomEffect(zoomTarget);
+    }
+
+    /**
+     *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    override protected function cleanUp():void
+    {
+        if (!consolidatedTransition)
+        {
+            if (startView)
+                startView.includeInLayout = startViewProps.includeInLayout;
+
+            if (endView)
+                endView.includeInLayout = endViewProps.includeInLayout;
+        }
+        else
+        {
+            if (transitionGroup)
+                removeComponentFromContainer(transitionGroup, UIComponent(DisplayObjectContainer(targetNavigator).parent));
+
+            targetNavigator.includeInLayout = startViewProps.targetNavigatorIncludeInLayout;
+        }
+
+        if (zoomTarget)
+        {
+            zoomTarget.transformX = 0;
+            zoomTarget.transformY = 0;
+            zoomTarget.blendMode = startViewProps.zoomTargetBlendMode;
+        }
+
+        transitionGroup = null;
+        cachedNavigator = null;
+
+        super.cleanUp();
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Private Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     *  Shared helper routine which serves as our effect factory for both standard
+     *  and consolidated transitions.
+     */
+    protected function createZoomEffect(zoomTarget:Object):IEffect
+    {
+        // This will be a composite control, initialized with the appropriate target
+        // depending on the transition mode (in/out).
+        var parallel:Parallel = new Parallel;
+        parallel.target = zoomTarget;
+
+        // Create fade effect to gradually fade our zoom target, we don't fade for the
+        // duration of the effect as this degrades overall transition performance, we
+        // simply fade near the point of first appearance or disappearance.
+        var fadeEffect:Fade = new Fade();
+        fadeEffect.duration = (mode == ZoomViewTransitionMode.IN) ?
+            duration * .4 : duration * .6;
+        if (mode == ZoomViewTransitionMode.OUT)
+            fadeEffect.startDelay = duration * .4;
+        fadeEffect.alphaTo = (mode == ZoomViewTransitionMode.OUT) ? 0 : 1;
+        fadeEffect.alphaFrom = (mode == ZoomViewTransitionMode.OUT) ? 1 : 0;
+
+        // Create scale effect to zoom in/our our target from or to our
+        // specified minimum scale.
+        var scaleEffect:Scale = new Scale();
+        scaleEffect.duration = duration;
+        scaleEffect.easer = easer;
+        scaleEffect.scaleXFrom = scaleEffect.scaleYFrom =
+            (mode == ZoomViewTransitionMode.OUT) ? 1 : minimumScale;
+        scaleEffect.scaleXTo = scaleEffect.scaleYTo =
+            (mode == ZoomViewTransitionMode.OUT) ? minimumScale : 1;
+
+        parallel.addChild(scaleEffect);
+        parallel.addChild(fadeEffect);
+
+        return parallel;
+    }
+
+}
+}


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

--- frameworks/projects/spark/src/spark/components/gridClasses/IGridVisualElement.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/IGridVisualElement.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2010 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@1248596 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/advancedgrids/src/mx/controls/listClasses/AdvancedListBase.as
+++ frameworks/projects/advancedgrids/src/mx/controls/listClasses/AdvancedListBase.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.controls.listClasses


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

--- frameworks/projects/framework/src/mx/core/FlexShape.as
+++ frameworks/projects/framework/src/mx/core/FlexShape.as
@@ -0,0 +1,97 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2006 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.core
+{
+
+import flash.display.Shape;
+import mx.utils.NameUtil;
+
+/**
+ *  FlexShape is a subclass of the Player's Shape class.
+ *  It overrides the toString() method
+ *  to return a string indicating the location of the object
+ *  within the hierarchy of DisplayObjects in the application.
+ */
+public class FlexShape extends Shape
+{
+    include "../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+	 *
+	 *
Sets the name property to a string which is
+	 *  returned by the createUniqueName()
+	 *  method of the mx.utils.NameUtils class.

+	 *
+	 *
This string is the name of the object's class concatenated
+	 *  with an integer that is unique within the application,
+	 *  such as "FlexShape15".

+	 *
+	 *  @see flash.display.DisplayObject#name
+	 *  @see mx.utils.NameUtil#createUniqueName()
+     */
+    public function FlexShape()
+	{
+		super();
+
+		try
+		{
+			name = NameUtil.createUniqueName(this);
+		}
+		catch(e:Error)
+		{
+			// The name assignment above can cause the RTE
+			//   Error #2078: The name property of a Timeline-placed
+			//   object cannot be modified.
+			// if this class has been associated with an asset
+			// that was created in the Flash authoring tool.
+			// The only known case where this is a problem is when
+			// an asset has another asset PlaceObject'd onto it and
+			// both are embedded separately into a Flex application.
+			// In this case, we ignore the error and toString() will
+			// use the name assigned in the Flash authoring tool.
+		}
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden methods
+	//
+	//--------------------------------------------------------------------------
+
+    /**
+	 *  Returns a string indicating the location of this object
+	 *  within the hierarchy of DisplayObjects in the Application.
+	 *  This string, such as "MyApp0.HBox5.FlexShape15",
+	 *  is built by the displayObjectToString() method
+	 *  of the mx.utils.NameUtils class from the name
+	 *  property of the object and its ancestors.
+	 *
+	 *  @return A String indicating the location of this object
+	 *  within the DisplayObject hierarchy.
+	 *
+	 *  @see flash.display.DisplayObject#name
+	 *  @see mx.utils.NameUtil#displayObjectToString()
+     */
+    override public function toString():String
+	{
+		return NameUtil.displayObjectToString(this);
+	}
+}
+
+}


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 7763
Author:   dsubrama@adobe.com
Date:     2009-06-11T22:45:36.057890Z

Log Message:
-----------
Simple null-check to fix SDK-21677.
Cleanup ASDoc entries for ArrayList for sub-task SDK-21591

QA: yes
Docs: no
Checkintests: pass

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/ArrayList.as</path>

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

--- frameworks/projects/spark/src/spark/components/List.as
+++ frameworks/projects/spark/src/spark/components/List.as
@@ -500,7 +500,7 @@
         }

         // Select the new items in the new selection interval
-        if (_proposedSelectedIndices.length > 0)
+        if (!isEmpty(_proposedSelectedIndices))
         {
             count = _proposedSelectedIndices.length;
             for (i = 0; i < count; i++)


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/spark/src/spark/effects/Scale3D.as
+++ frameworks/projects/spark/src/spark/effects/Scale3D.as
@@ -28,7 +28,7 @@
  */
 public class AnimateTransformScale3D extends AnimateTransformScale
 {
-    include "../../mx/core/Version.as";
+    include "../../spark.core.Version.as";

     public function AnimateTransformScale3D(target:Object=null)
     {


Transferred from the Adobe Open Source Subversion Repository

Revision: 4281
Author:   cframpto@adobe.com
Date:     2008-12-10T20:47:53.209400Z

Log Message:
-----------
1.  In Container.keyDownHandler() and CursorManagerImpl.mouseDownHandler() check for Gumbo text using a soft-link to TextView as well as Halo TextField.
2. In FxTextBase.focusInHandler() show focus ring on editable text per XD.
3.  In TextUtil.unobsureTextFlow() fix line break issues.  substring() should have been substr().  When trying to match the text in the span with the text string, use the length of the span's text rather than the length of the leaf, since the leaf could include an added paragraph terminator which isn't in the text string.

QE Notes: New functionality to test.
Doc Notes: None
Bugs: SDK-17306, SDK-16063, SDK-17762, SDK-17763, SDK-17923, SDK-17917
Reviewer: Gordon and Alex

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxTextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/utils/TextUtil.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/core/Container.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as
@@ -736,6 +736,10 @@
         // it changes the selection to (0, 0).
         if (selectionAnchorPosition == -1 && selectionActivePosition == -1)
             setSelection(int.MAX_VALUE, int.MAX_VALUE);
+
+        // Only editable text should have a focus ring.
+        if (focusManager && editable)
+            focusManager.showFocusIndicator = true;

         super.focusInHandler(event);
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 5545
Author:   jimurphy@adobe.com
Date:     2009-03-25T19:00:52.330680Z

Log Message:
-----------
1st pass of rename according to the spec http://opensource.adobe.com/wiki/display/flexsdk/Dropping+the+Fx+Prefix

Flex now requires CSS Style declarations to declare @namespace rules and disambiguate between halo and spark components using CSS 3 namespace prefixes on type selectors. At compile time, this namespace information will be used to map type names to qualified ActionScript class names. At runtime, type selectors are matched on qualified ActionScript class name (for example mx.controls.Button rather than just Button). Flex 3 applications must be compiled with -compatibility-version=3.0.0 to get unqualified CSS type selector behavior.

QE: Yes, this build may help in updating test cases to use the new namespaces and class names.
Dev: Not yet
Doc: Not yet

Modified Paths:
--------------
748 paths were modified

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

--- frameworks/projects/spark/src/spark/effects/supportClasses/AnimateColorInstance.as
+++ frameworks/projects/spark/src/spark/effects/supportClasses/AnimateColorInstance.as
@@ -9,14 +9,14 @@
 //
 ////////////////////////////////////////////////////////////////////////////////

-package mx.effects.effectClasses
+package spark.effects.supportClasses
 {
-import mx.effects.AnimationProperty;
-import mx.effects.interpolation.RGBInterpolator;
+import spark.effects.AnimationProperty;
+import spark.effects.interpolation.RGBInterpolator;
 import mx.styles.StyleManager;

 /**
- * The instance of the FxAnimateColor effect, which animates a change in
+ * The instance of the AnimateColor effect, which animates a change in
  * color by interpolating the from/to values per color channel
  *
  *  @langversion 3.0
@@ -24,10 +24,10 @@
  *  @playerversion AIR 1.5
  *  @productversion Flex 4
  */
-public class FxAnimateColorInstance extends FxAnimateInstance
+public class AnimateColorInstance extends AnimateInstance
 {
     /**
-     * copy mx.effects.FxAnimateColor#colorFrom
+     * copy mx.effects.AnimateColor#colorFrom
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -37,7 +37,7 @@
     public var colorFrom:uint;

     /**
-     * copy mx.effects.FxAnimateColor#colorTo
+     * copy mx.effects.AnimateColor#colorTo
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -47,7 +47,7 @@
     public var colorTo:uint;

     /**
-     * copy mx.effects.FxAnimateColor#colorPropertyName
+     * copy mx.effects.AnimateColor#colorPropertyName
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -56,7 +56,7 @@
      */
     public var colorPropertyName:String;

-    public function FxAnimateColorInstance(target:Object)
+    public function AnimateColorInstance(target:Object)
     {
         super(target);
     }


updating sample

updating sample

--- sample/src/Main.as
+++ sample/src/Main.as
@@ -18,6 +18,7 @@
 import com.freshplanet.ane.AirImagePicker.AirImagePicker;
 import com.freshplanet.ane.AirImagePicker.AirImagePickerImageData;
 import com.freshplanet.ane.AirImagePicker.events.AirImagePickerDataEvent;
+import com.freshplanet.ane.AirImagePicker.events.AirImagePickerErrorEvent;
 import com.freshplanet.ane.AirImagePicker.events.AirImagePickerRecentImagesEvent;

 import flash.display.Bitmap;
@@ -58,8 +59,9 @@

 	    AirImagePicker.instance.addEventListener(AirImagePickerDataEvent.CANCELLED, onImagePickCanceled);
 	    AirImagePicker.instance.addEventListener(AirImagePickerDataEvent.IMAGE_CHOSEN, onImageChosen);
-	    AirImagePicker.instance.addEventListener(AirImagePickerDataEvent.CAMERA_PERMISSION_ERROR, onCameraPermissionError);
-	    AirImagePicker.instance.addEventListener(AirImagePickerDataEvent.GALLERY_PERMISSION_ERROR, onGalleryPermissionError);
+	    AirImagePicker.instance.addEventListener(AirImagePickerErrorEvent.CAMERA_PERMISSION_ERROR, onCameraPermissionError);
+	    AirImagePicker.instance.addEventListener(AirImagePickerErrorEvent.GALLERY_PERMISSION_ERROR, onGalleryPermissionError);
+	    AirImagePicker.instance.addEventListener(AirImagePickerErrorEvent.ERROR, onError);
 	    AirImagePicker.instance.addEventListener(AirImagePickerRecentImagesEvent.ON_LOAD_RESULT, onRecentImagesResult);
 	    AirImagePicker.instance.addEventListener(AirImagePickerRecentImagesEvent.PERMISSION_ERROR, onRecentImagesPermissionError);

@@ -101,6 +103,10 @@
         }
     }

+	private function onError(event:AirImagePickerErrorEvent):void {
+		trace("Error occurred: ", event.error);
+	}
+
 	private function onImagePickCanceled(event:AirImagePickerDataEvent):void {
 		trace("Image pick cancelled");
 	}


Transferred from the Adobe Open Source Subversion Repository

Revision: 10755
Author:   clucier@adobe.com
Date:     2009-09-30T19:32:20.239118Z

Log Message:
-----------
Cleanup. Removing all 2.x APIs that have been deprecated since 3.0.

QE notes:  None
Doc notes: None
Bugs: SDK-23265
Reviewer: Ryan, Gordon
Tests run: Checkin
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/HistoryManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/resources/ResourceBundle.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/ColorPicker.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/IHistoryManager.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/controls/DateField.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/containers/FormItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/resources/Locale.as</path>

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

--- frameworks/projects/mx/src/mx/containers/FormItem.as
+++ frameworks/projects/mx/src/mx/containers/FormItem.as
@@ -416,22 +416,6 @@
         return labelObj;
     }

-    //----------------------------------
-    //  labelObject
-    //----------------------------------
-
-    [Deprecated(replacement="FormItem.itemLabel", since="3.0")]
-
-    /**
-     *  @private
-     *  A read-only reference to the FormItemLabel subcomponent
-     *  displaying the label of the FormItem.
-     */
-    mx_internal function get labelObject():Object
-    {
-        return labelObj;
-    }
-
     //----------------------------------
     //  required
     //----------------------------------