Transferred from the Adobe Open Source Subversion Repository

Revision: 5947
Author:   gauravj@adobe.com
Date:     2009-04-06T17:03:21.070169Z

Log Message:
-----------
Fix for "selectedItem" property for ComboBox not shown in the code hints.

QE Notes: None.
Doc Notes: None.
Bugs: SDK-18682
tests: checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBase.as</path>

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

--- frameworks/projects/mx/src/mx/controls/ComboBase.as
+++ frameworks/projects/mx/src/mx/controls/ComboBase.as
@@ -805,7 +805,7 @@

     [Bindable("change")]
     [Bindable("valueCommit")]
-    [Inspectable(environment="none")]
+    [Inspectable(category="General", defaultValue="null")]

     /**
      *  The item in the data provider at the selectedIndex.


Transferred from the Adobe Open Source Subversion Repository

Revision: 6476
Author:   dsubrama@adobe.com
Date:     2009-05-01T21:08:56.231254Z

Log Message:
-----------
Multiple selection and requiresSelection now work together.

QA: Yes
Checkintests: Pass
Reviewer: Ryan

Fixed bugs:
https://bugs.adobe.com/jira/browse/SDK-20910
https://bugs.adobe.com/jira/browse/SDK-20831
https://bugs.adobe.com/jira/browse/SDK-20847
https://bugs.adobe.com/jira/browse/SDK-20858
https://bugs.adobe.com/jira/browse/SDK-20844

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/flex4/src/spark/components/supportClasses/ListBase.as</path>

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

--- frameworks/projects/spark/src/spark/components/List.as
+++ frameworks/projects/spark/src/spark/components/List.as
@@ -184,7 +184,10 @@
         //Going from multiple to single, clear out selection
         if (!_allowMultipleSelection)
         {
-            _proposedSelectedIndices = [NO_SELECTION];
+            if (!requiresSelection)
+                _proposedSelectedIndices = [NO_SELECTION];
+            else
+                _proposedSelectedIndices = [0];
             commitMultipleSelection();
         }
     }
@@ -199,11 +202,20 @@
      */
     override public function get selectedIndex():int
     {
-        if (!allowMultipleSelection || !_selectedIndices)
+        if (!allowMultipleSelection)
             return super.selectedIndex;
+
+        //The case that selection has been set as a result of
+        //requiresSelection, we want to make sure the multiple selection
+        //properties stay in sync.
+        if (!_selectedIndices && _selectedIndex >= 0)
+        {
+            _selectedIndices = [_selectedIndex];
+            return _selectedIndex;
+        }

         if (_selectedIndices && _selectedIndices.length > 0)
-            return _selectedIndices[0];
+            return _selectedIndices[_selectedIndices.length - 1];

         return NO_SELECTION;
     }
@@ -212,7 +224,7 @@
      *  @private
      */
     override public function set selectedIndex(value:int):void
-    {
+    {
         if (!allowMultipleSelection)
         {
             super.selectedIndex = value;
@@ -238,7 +250,7 @@
             return super.selectedItem;

         if (_selectedIndices && _selectedIndices.length > 0)
-            return dataProvider.getItemAt(_selectedIndices[0]);
+            return dataProvider.getItemAt(_selectedIndices[_selectedIndices.length - 1]);

         return undefined;
     }
@@ -538,7 +550,12 @@
                     //Quick check to see if selectedIndices had only one selected item
                     //and that item was de-selected
                     if (selectedIndices.length == 1 && (selectedIndices[0] == index))
-                        return [NO_SELECTION];
+                    {
+                        //we need to respect requiresSelection
+                        if (!requiresSelection)
+                            return [NO_SELECTION];
+                        else return [selectedIndices[0]];
+                    }
                     else
                     {
                         // Go through and see if the index passed in was in the
@@ -550,7 +567,7 @@
                             if (_selectedIndices[i] == index)
                                 found = true;
                             else if (_selectedIndices[i] != index)
-                                interval.push(_selectedIndices[i]);
+                                interval.push(_selectedIndices[i]);
                         }
                         if (!found)
                         {
@@ -562,6 +579,9 @@
                         return interval;
                     }
                 }
+                //Ctrl+click with no previously selected items
+                else
+                    return [index];
             }
             //A single item was newly selected, add that to the selection interval.
             else
@@ -572,7 +592,7 @@
         {
             //A contiguous selection action has occurred. Figure out which new
             //indices to add to the selection interval and return that.
-            var start:Number = (!isEmpty(selectedIndices)) ? selectedIndices[0] : -1;
+            var start:Number = (!isEmpty(selectedIndices)) ? selectedIndices[0] : 0;
             var end:Number = index;
             if (start < end)
             {


Transferred from the Adobe Open Source Subversion Repository

Revision: 12864
Author:   mhorn@adobe.com
Date:     2009-12-11T21:35:24.243046Z

Log Message:
-----------
asdoc minor fixes

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/SpriteAsset.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/MovieClipAsset.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/BitmapAsset.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/TabNavigator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>

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

--- frameworks/projects/mx/src/mx/controls/TextInput.as
+++ frameworks/projects/mx/src/mx/controls/TextInput.as
@@ -967,13 +967,13 @@
      *
where the myTextInput_initialize method is in a script CDATA section:

      *
      *

-     *  <mx:Script>
+     *  <fx:Script>
      *  <![CDATA[
      *  private function myTextInput_initialize():void {
      *      myTextInput.htmlText = "This is an example of <b>bold</b> markup";
      *  }
      *  ]]>
-     *  </mx:Script>
+     *  </fx:Script>
      *
      *

      *


Transferred from the Adobe Open Source Subversion Repository

Revision: 12965
Author:   smgilson@adobe.com
Date:     2009-12-15T18:53:50.933674Z

Log Message:
-----------
Add ASDoc for selectionColor

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

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

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

--- frameworks/projects/spark/src/spark/components/List.as
+++ frameworks/projects/spark/src/spark/components/List.as
@@ -170,7 +170,7 @@
 [Style(name="rollOverColor", type="uint", format="Color", inherit="yes", theme="spark")]

 /**
- *  @copy spark.components.supportClasses.GroupBase#style:selectionColor
+ *  @copy mx.controls.listClasses.ListBase#style:selectionColor
  *
  *  @default 0xA8C6EE
  *


fixed bug where updateZoom() would be called every frame

--- WeaveUISpark/src/weave/visualization/layers/PlotManager.as
+++ WeaveUISpark/src/weave/visualization/layers/PlotManager.as
@@ -205,17 +205,20 @@
 		}

 		private var _shouldUpdateZoom:Boolean = false;
+		private var _lazyUpdateZoom:Boolean = true;

 		/**
 		 * This function will update the fullDataBounds and zoomBounds based on the current state of the layers.
 		 */
 		protected function updateZoom(now:Boolean = false):void
 		{
-			if (!now)
+			if (_lazyUpdateZoom && !now)
 			{
 				_shouldUpdateZoom = true;
 				return;
 			}
+			_lazyUpdateZoom = false;
+			_shouldUpdateZoom = false;

 			// make sure callbacks only trigger once
 			getCallbackCollection(this).delayCallbacks();
@@ -300,6 +303,8 @@

 			getCallbackCollection(zoomBounds).resumeCallbacks();
 			getCallbackCollection(this).resumeCallbacks();
+
+			_lazyUpdateZoom = true;
 		}

 		/**


Transferred from the Adobe Open Source Subversion Repository

Revision: 19157
Author:   hmuller@adobe.com
Date:     2010-12-08T19:18:24.437683Z

Log Message:
-----------
Added a little ASDoc about typicalLayoutElement to s:List.

QE notes: Commented out TestCase testID="SparkSort_ja-JP" in basicTests\spark\scripts\SortTestScript.mxml
Doc notes:
Bugs: SDK-26316
Reviewer: Joann
Tests run: checkin
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/scripts/SortTestScript.mxml</path>

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

--- frameworks/projects/spark/src/spark/components/List.as
+++ frameworks/projects/spark/src/spark/components/List.as
@@ -321,7 +321,9 @@
  *
Note: The Spark list-based controls (the Spark ListBase class and its subclasses
  *  such as ButtonBar, ComboBox, DropDownList, List, and TabBar) do not support the BasicLayout class
  *  as the value of the layout property.
- *  Do not use BasicLayout with the Spark list-based controls.

+ *  Do not use BasicLayout with the Spark list-based controls.  When a layout is specified,
+ *  the layout's typicalLayoutElement property should not be set; it's automatically set
+ *  to an item renderer created with the List's typicalItem.

  *
  *
To use this component in a list-based component, such as a List or DataGrid,
  *  create an item renderer.


Transferred from the Adobe Open Source Subversion Repository

Revision: 18173
Author:   jasonsj@adobe.com
Date:     2010-10-15T17:03:20.801634Z

Log Message:
-----------
Mobile Theme Initial check-in

* New light-look visuals from XD
* Changed airmobile-config.xml to use standalone Mobile theme instead of Spark overlay
* Added theme="spark, mobile" where spark was already white-listed and support is implemented and/or planned for Mobile/spark.css (see https://zerowing.corp.adobe.com/display/flexmobile/Mobile+Theme+Styles+Spec)
* MobileSkin has symbolColor and chromeColor support. Override beginChromeColorFill and drawChromeColor when defining custom chromeColor visuals.
* CheckBox and RadioButton now have chromeColor and symbolColor support
* Added textShadowColor and textShadowAlpha support to Button and ActionBar
* Added chromeColor support to HScrollBar and VScrollBar

QE notes: All mobile skins have been updaetd.
Doc notes: Update mobile skinning documentation for new APIs
Bugs:
SDK-28043 Investigate usage of "viewWidth", "viewHeight" for the Flex Mobile Skin Assets
SDK-27609 Mobile scroll bar skins should use chromeColor
SDK-27646 cornerradius has no effect on button in mobile application
Reviewer: gruehle
Tests run: checkintests
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/VScrollBarTrackSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/MobileSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/defaults.css</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Button.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/metadata/BorderStyles.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/CheckBox_symbol.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Image.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/RadioButton_symbol.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/Button_up.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/metadata/ContainerBackgroundStyles.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/CheckBox.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ActionBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/CheckBox_up.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionBarButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HScrollBarThumbSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/SkinnableDataContainer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/RadioButton_up.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/TextInput_border.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/SliderBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/Button_down.fxg</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/CheckBox_upSelected.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DefaultItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextInputSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/RadioButton_upSelected.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/VScrollBarThumbSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/CheckBox_down.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewMenuItemSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/RadioButton_down.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HScrollBarTrackSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/controls/ToolTip.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/RadioButton.as</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/CheckBox_downSelected.fxg</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/themes/Mobile/spark.css</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/SelectableButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/airmobile-config.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/CheckBoxSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/RadioButton_downSelected.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/RadioButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/NavigationButtonSkin.as</path>

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

--- frameworks/projects/spark/src/spark/components/List.as
+++ frameworks/projects/spark/src/spark/components/List.as
@@ -67,7 +67,7 @@
  *  @playerversion AIR 1.5
  *  @productversion Flex 4
  */
-[Style(name="alternatingItemColors", type="Array", arrayType="uint", format="Color", inherit="yes", theme="spark")]
+[Style(name="alternatingItemColors", type="Array", arrayType="uint", format="Color", inherit="yes", theme="spark, mobile")]

 /**
  *  The alpha of the border for this component.
@@ -103,7 +103,7 @@
  *  @playerversion AIR 1.5
  *  @productversion Flex 4
  */
-[Style(name="borderVisible", type="Boolean", inherit="no", theme="spark")]
+[Style(name="borderVisible", type="Boolean", inherit="no", theme="spark, mobile")]

 /**
  *  The alpha of the content background for this component.
@@ -113,7 +113,7 @@
  *  @playerversion AIR 1.5
  *  @productversion Flex 4
  */
-[Style(name="contentBackgroundAlpha", type="Number", inherit="yes", theme="spark", minValue="0.0", maxValue="1.0")]
+[Style(name="contentBackgroundAlpha", type="Number", inherit="yes", theme="spark, mobile", minValue="0.0", maxValue="1.0")]

 /**
  *  @copy spark.components.supportClasses.GroupBase#style:contentBackgroundColor
@@ -125,7 +125,7 @@
  *  @playerversion AIR 1.5
  *  @productversion Flex 4
  */
-[Style(name="contentBackgroundColor", type="uint", format="Color", inherit="yes", theme="spark")]
+[Style(name="contentBackgroundColor", type="uint", format="Color", inherit="yes", theme="spark, mobile")]

 /**
  *  The class to create instance of for the drag indicator during drag
@@ -188,7 +188,7 @@
  *  @playerversion AIR 1.5
  *  @productversion Flex 4
  */
-[Style(name="selectionColor", type="uint", format="Color", inherit="yes", theme="spark")]
+[Style(name="selectionColor", type="uint", format="Color", inherit="yes", theme="spark, mobile")]

 /**
  *  @copy spark.components.supportClasses.GroupBase#style:symbolColor
@@ -200,7 +200,7 @@
  *  @playerversion AIR 1.5
  *  @productversion Flex 4
  */
-[Style(name="symbolColor", type="uint", format="Color", inherit="yes", theme="spark")]
+[Style(name="symbolColor", type="uint", format="Color", inherit="yes", theme="spark, mobile")]

 /**
  *  When in touch interaction mode, the number of milliseconds to wait before showing the


Transferred from the Adobe Open Source Subversion Repository

Revision: 4515
Author:   hmuller@adobe.com
Date:     2009-01-13T22:58:06.587808Z

Log Message:
-----------
Restored internal DataGroup.getItemIndexForRenderer() method.

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxButtonBar.as</path>

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

--- frameworks/projects/spark/src/spark/components/List.as
+++ frameworks/projects/spark/src/spark/components/List.as
@@ -434,7 +434,7 @@
     {
         // Multiple selection needs to be added here....

-        selectedIndex = dataGroup.mx_internal::getItemIndexForRenderer(event.currentTarget as IVisualElement);
+        selectedIndex = dataGroup.getItemIndexForRenderer(event.currentTarget as IVisualElement);
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 4335
Author:   jszeto@adobe.com
Date:     2008-12-17T00:52:56.919040Z

Log Message:
-----------
GraphicElement Optimization

- Changed how a shared displayObject is positioned in a GraphicElement. Previously, it was always placed at (x,y). Now, it is placed at (0,0) if the displayObject can be shared (ie. it has no transforms). This solves the problem of a sharedDisplayObject getting repositioned without the GraphicElement being aware of it.

- Optimized Group.updateDisplayList so that we only redraw the GraphicElement's that share a displayObject that needs to be updated. Added a new class called InvalidatingSprite which has a single property called "invalid". If a GraphicElement needs to be redrawn, it marks its shared or unshared displayObject as invalid. Group will then only update the GraphicElements whose displayObject is marked invalid. Added invalidateDisplayList calls in a few missing places.

QE Notes: Some of the mustella bitmaps need to be regenerated. The player renders differently two transformed sprites that draw the same visuals. For example, a rotated sprite at (0,0) with a drawRect at (20,20) will look from a rotated sprite at (20,20) with a drawRect at (0,0).
Doc Notes: None
Bugs: SDK-18053
Reviewer: Evtim

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/Line.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/core/InvalidatingSprite.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxTrackBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/Path.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxVSliderSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.as</path>

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

--- frameworks/projects/spark/src/spark/primitives/Line.as
+++ frameworks/projects/spark/src/spark/primitives/Line.as
@@ -76,6 +76,7 @@
         {
             _xFrom = value;
             invalidateSize();
+            invalidateDisplayList();
         }
     }

@@ -107,6 +108,7 @@
         {
             _xTo = value;
             invalidateSize();
+            invalidateDisplayList();
         }
     }

@@ -138,6 +140,7 @@
         {
             _yFrom = value;
             invalidateSize();
+            invalidateDisplayList();
         }
     }

@@ -169,6 +172,7 @@
         {
             _yTo = value;
             invalidateSize();
+            invalidateDisplayList();
         }
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 14354
Author:   jimurphy@adobe.com
Date:     2010-02-23T15:05:48.761194Z

Log Message:
-----------
resetting the build number in version.as
The build automated process checked it in as 4.5.0.13964 when it should have been 4.5.0.0

QE notes: no
Doc notes: no
Bugs: https://bugs.adobe.com/jira/browse/SDK-25489
Reviewer: no
Tests run: ran version test included in the bug
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_air/src/mx/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/datavisualization/src/mx/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation/src/mx/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/mx/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_flashflexkit/src/mx/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_dmv/src/mx/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airspark/src/spark/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Version.as</path>

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

--- frameworks/projects/spark/src/spark/core/Version.as
+++ frameworks/projects/spark/src/spark/core/Version.as
@@ -15,4 +15,4 @@
  *  @private
  *  Version string for this class.
  */
-mx_internal static const VERSION:String = "4.5.0.13964";
+mx_internal static const VERSION:String = "4.5.0.0";


Transferred from the Adobe Open Source Subversion Repository

Revision: 6215
Author:   smgilson@adobe.com
Date:     2009-04-23T17:12:57.259499Z

Log Message:
-----------
ASDoc updates for effect classes

Checkintests: passed

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/RemoveAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/SimpleMotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Rotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Fade.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/effects/Resize.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/KeyFrame.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Wipe.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/WipeDirection.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Move.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/CallAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/CrossFade.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/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/effects/MotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/SetAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformRotate.as</path>

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

--- frameworks/projects/spark/src/spark/effects/Move.as
+++ frameworks/projects/spark/src/spark/effects/Move.as
@@ -18,27 +18,57 @@
 import spark.effects.supportClasses.AnimateTransformInstance;

 /**
- * This class is a utility wrapper around the AnimateTransform effect, exposing the
- * properties that make sense for someone wishing to merely move a target object
- * in the x and y directions. An important difference between this TransformMove
- * effect and the previous Move effect is that the x and y property specifications
- * for TransformMove specify not absolute values of the x/y point on the target
- * object, but rather the change in x/y that should occur to the center around
- * which the overall transform is occuring. So if, for example, the
- * autoCenterTransform property is set, then the from/to/by values
- * in this effect will define how much to move the center of the target, not the
- * (x,y) of the target.
+ *  The AnimateTransformMove effect move the target object
+ *  in the x and y directions. An important difference between the AnimateTransformMove
+ *  effect and the Move effect is that the x and y property specifications
+ *  for AnimateTransformMove specify not absolute values of the x and y coordinates on the target,
+ *  but rather the change in x and y that should occur to the transform center around
+ *  which the overall transform occurs.
+ *  If, for example, the
+ *  autoCenterTransform property is set, then the from/to/by values
+ *  in this effect will define how much to move the center of the target, not the
+ *  (x,y) coordinates of the target.
  *
- *
Like all AnimateTransform-based effects, this effect will only work on subclasses
- * of UIComponent and GraphicElement, as these effects depend on specific
- * transform functions in those classes. Also, all of these effects run one single
- * effect instance on any given target at a time, which means that they will
- * share the transform center set by any of the contributing effects.

+ *
Like all transform-based effects, this effect only work on subclasses
+ *  of UIComponent and GraphicElement.

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

+ *
+ *

+ *  <mx:AnimateTransformMove
+ *    id="ID"
+ *    xFrom="val"
+ *    yFrom="val"
+ *    xTo="val"
+ *    yTo="val"
+ *    xBy="val"
+ *    yBy="val"
+ *   />
+ *

+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
  */
 public class AnimateTransformMove extends AnimateTransform
 {
     include "../core/Version.as";

+    /**
+     *  Constructor.
+     *
+     *  @param target The Object to animate with this effect.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
     public function AnimateTransformMove(target:Object=null)
     {
         super(target);
@@ -58,8 +88,13 @@
     [Inspectable(category="General", defaultValue="NaN")]

     /**
-     *  Number of pixels by which to modify the y of the component.
-     *  Values may be negative.
+     *  Number of pixels by which to modify the y position of the target.
+     *  Values can be negative.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public var yBy:Number;

@@ -70,10 +105,15 @@
     [Inspectable(category="General", defaultValue="NaN")]

     /**
-     *  Initial y, in pixels.
-     *  If omitted, Flex uses either the value in the start state,
-     *  if the effect is playing in a state transition, or the current
-     *  value in the target.
+     *  Initial y position of the target, in pixels.
+     *  If omitted, Flex uses either the value in the start view state,
+     *  if the effect is playing in a transition, or the current
+     *  value of the target.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public var yFrom:Number;

@@ -84,10 +124,15 @@
     [Inspectable(category="General", defaultValue="NaN")]

     /**
-     *  Final y, in pixels.
-     *  If omitted, Flex uses either the value in the end state,
-     *  if the effect is playing in a state transition, or the current
-     *  value in the target.
+     *  Final y position of the target, in pixels.
+     *  If omitted, Flex uses either the value in the end view state,
+     *  if the effect is playing in a transition, or the current
+     *  value of the target.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public var yTo:Number;

@@ -98,8 +143,13 @@
     [Inspectable(category="General", defaultValue="NaN")]

     /**
-     *  Number of pixels by which to modify the x of the component.
+     *  Number of pixels by which to modify the x position of the target.
      *  Values may be negative.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public var xBy:Number;

@@ -110,10 +160,15 @@
     [Inspectable(category="General", defaultValue="NaN")]

     /**
-     *  Initial x, in pixels.
-     *  If omitted, Flex uses either the value in the starting state,
-     *  if the effect is playing in a state transition, or the current
-     *  value in the target.
+     *  Initial x position of the target, in pixels.
+     *  If omitted, Flex uses either the value in the starting view state,
+     *  if the effect is playing in a transition, or the current
+     *  value of the target.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public var xFrom:Number;

@@ -127,7 +182,12 @@
      *  Final x, in pixels.
      *  If omitted, Flex uses either the value in the starting state,
      *  if the effect is playing in a state transition, or the current
-     *  value in the target.
+     *  value of the target.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public var xTo:Number;


separate optimization flags from architecture flags, plus some general cleanup

--- otp.replace.as
+++ otp.replace.as
@@ -1,7 +1,7 @@
 #!/bin/ksh -e

 typeset -ir makejobs='5'
-typeset -ir verbosity='0'
+typeset -ir verbosity="${V:-0}"

 usage()
 {
@@ -66,7 +66,8 @@

 hipe_supported()
 {
-    if [[ $otp_vsn_major -gt 16 && "$os_type" != 'darwin' ]]
+    if [[ $otp_vsn_major -gt 16 && "$os_type" != 'darwin' ]] \
+    || [[ $otp_vsn_major -gt 15 && "$os_type" == 'linux' ]]
     then
         return 0
     else
@@ -88,8 +89,16 @@
     hipe_modes='false'
 fi

+opt_flags='-O2'
+opt_flags='-O3'
+opt_flags='-fomit-frame-pointer -O3'
+
+arch_flags='-m64 -mcx16'
 arch_flags='-m64 -march=core2 -mcx16'
 arch_flags='-m64 -march=native -mcx16'
+
+config_os='--enable-64bit'
+
 case "$os_type" in
     darwin )
         osx_ver="$(/usr/bin/sw_vers -productVersion | /usr/bin/cut -d. -f1,2)"
@@ -101,17 +110,14 @@
     linux )
         ccands='icc gcc cc'
         cccands='g++ gcc c++'
-        config_os='--enable-64bit'
         ;;
     freebsd )
-        ccands='icc clang37 /usr/bin/cc gcc cc'
+        ccands='icc clang39 clang38 clang37 /usr/bin/cc gcc cc'
         cccands='/usr/bin/c++ g++ c++'
-        config_os='--enable-64bit'
         ;;
     * )
         ccands='cc gcc'
-        cccands='c++ g++'
-        config_os='--enable-64bit'
+        cccands='c++ g++ gcc'
         ;;
 esac
 for c in $ccands
@@ -131,9 +137,9 @@
 fi
 unset   c ccand cccand
 [[ -n "$LANG" ]] || LANG='C'
-LDFLAGS="$arch_flags -O4"
-
-CFLAGS="$arch_flags -O3"
+LDFLAGS="$arch_flags $opt_flags"
+
+CFLAGS="$arch_flags $opt_flags"
 if [[ $otp_vsn_major -lt 17 ]]
 then
     CFLAGS+=' -Wno-deprecated-declarations'
@@ -160,6 +166,8 @@
 PATH="$ERL_TOP/bin:$PATH"
 export  ERL_TOP PATH

+unset   V MAKEFLAGS
+
 for hipe in $hipe_modes
 do
     if $hipe


Fix package name of spark/components/MobileBusyIndicator.as Fix constructor name

--- frameworks/projects/mobilecomponents/src/spark/components/MobileBusyIndicator.as
+++ frameworks/projects/mobilecomponents/src/spark/components/MobileBusyIndicator.as
@@ -17,7 +17,7 @@
 //
 ////////////////////////////////////////////////////////////////////////////////

-package components
+package spark.components
 {
 	import flash.events.Event;
 	import mx.core.IUIComponent;
@@ -34,7 +34,7 @@
 		private var effectiveVisibility:Boolean = false;
 		private var effectiveVisibilityChanged:Boolean = true;

-		public function BusyIndicator()
+		public function MobileBusyIndicator()
 		{
 			super();
 			// Listen to added to stage and removed from stage.


Transferred from the Adobe Open Source Subversion Repository

Revision: 17436
Author:   chiedozi@adobe.com
Date:     2010-08-20T22:07:56.954194Z

Log Message:
-----------
Changing the selectedIndex can now be cancel by listening to the CHANGING event on TabbedViewNavigator, or the REMOVING event on view.
ViewNavigators now properly destroy and recreate the active view as the navigator is activated and deactivated
Updated the TabBar hide/show animations

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TabbedViewNavigatorSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigator.as
+++ frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigator.as
@@ -25,9 +25,10 @@
 import mx.resources.ResourceManager;

 import spark.components.supportClasses.ButtonBarBase;
-import spark.components.supportClasses.NavigationStack;
 import spark.components.supportClasses.ViewNavigatorBase;
-import spark.effects.Move;
+import spark.effects.Animate;
+import spark.effects.animation.MotionPath;
+import spark.effects.animation.SimpleMotionPath;
 import spark.events.ElementExistenceEvent;
 import spark.events.IndexChangeEvent;

@@ -136,6 +137,14 @@
      *  @private
      */
     private var contentGroupProps:Object;
+
+    /**
+     *  @private
+     *  Determines if a changing event has already been dispatched.
+     *  This was introduced to prevent the IndexChangeEvent from
+     *  dispatching twice when the tabBar selection changes.
+     */
+    private var changingEventDispatched:Boolean = false;

     /**
      *  @private
@@ -411,6 +420,14 @@

     /**
      *  @private
+     */
+    override public function canRemoveCurrentView():Boolean
+    {
+        return (activeNavigator && activeNavigator.canRemoveCurrentView());
+    }
+
+    /**
+     *  @private
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -419,7 +436,10 @@
      */
     protected function captureAnimationValues(component:UIComponent):Object
     {
-        var values:Object = {   y:component.y,
+        var values:Object = {   x:component.x,
+                                y:component.y,
+                                width:component.width,
+                                height:component.height,
                                 visible: component.visible,
                                 includeInLayout: component.includeInLayout,
                                 cacheAsBitmap: component.cacheAsBitmap };
@@ -460,13 +480,14 @@
             if (_selectedIndex > -1)
             {
                 navigator = navigators[_selectedIndex];
-                navigator.active = true;
-                navigator.landscapeOrientation = landscapeOrientation;

-                addElement(navigator);
                 navigator.addEventListener(ElementExistenceEvent.ELEMENT_ADD, navigator_elementAddHandler);
                 navigator.addEventListener(ElementExistenceEvent.ELEMENT_REMOVE, navigator_elementRemoveHandler);

+                navigator.active = true;
+                navigator.landscapeOrientation = landscapeOrientation;
+                addElement(navigator);
+
                 UIComponent(navigator).invalidateProperties();
             }

@@ -492,13 +513,6 @@

         if (hasEventListener(FlexEvent.VALUE_COMMIT))
             dispatchEvent(new FlexEvent(FlexEvent.VALUE_COMMIT));
-
-        var currentStack:NavigationStack = null;
-        if (_selectedIndex > -1)
-            currentStack = navigators[_selectedIndex].navigationStack;
-
-        // FIXME (chiedozi): When a selection changes, old navigator should
-        // destory its current view
     }

     /**
@@ -511,16 +525,10 @@
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
-    protected function commitVisibilityChanges():void
+    private function commitVisibilityChanges():void
     {
         // Can't change the visibility during a view transition
-        // FIXME (chiedozi): Shouldn't be able to do this if the child view
-        // is animating
-//        if (viewChanging)
-//        {
-//            tabBarVisibilityInvalidated = false;
-//            return;
-//        }
+        // FIXME (chiedozi): Shouldn't be able to do this if the child view is animating

         // If an animation is running, end it
         if (tabBarVisibilityEffect)
@@ -547,18 +555,18 @@
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
-    protected function createTabBarVisibilityEffect(hiding:Boolean, props:Object):IEffect
-    {
-        var effect:Move = new Move();
-
-        effect.target = tabBar;
-        effect.yFrom = props.start.y;
-        effect.yTo = props.end.y;
+    private function createTabBarVisibilityEffect(hiding:Boolean, props:Object):IEffect
+    {
+        var animate:Animate = new Animate();
+        animate.target = tabBar;
+        animate.duration = getStyle("animationDuration");
+        animate.motionPaths = new Vector.<MotionPath>();
+        animate.motionPaths.push(new SimpleMotionPath("y", props.start.y, props.end.y));

         tabBar.includeInLayout = false;
         tabBar.cacheAsBitmap = true;

-        return effect;
+        return animate;
     }

     /**
@@ -593,59 +601,67 @@
             finalEffect.addChild(effect);
         }

-        var moveEffect:Move = new Move();
-        moveEffect.target = contentGroup;
-        moveEffect.yFrom = contentGroupProps.start.y;
-        moveEffect.yTo = contentGroup.y;
+        var animate:Animate = new Animate();
+        animate.target = contentGroup;
+        animate.duration = getStyle("animationDuration");
+        animate.motionPaths = new Vector.<MotionPath>();
+        animate.motionPaths.push(new SimpleMotionPath("y", contentGroupProps.start.y,
+                                                           contentGroupProps.end.y));
+        animate.motionPaths.push(new SimpleMotionPath("height", contentGroupProps.start.height,
+                                                                contentGroupProps.end.height));
+
         contentGroup.includeInLayout = false;
-        contentGroup.cacheAsBitmap = true;
-        finalEffect.addChild(moveEffect);
-
-        finalEffect.duration = 250;
+        contentGroup.cacheAsBitmap = true;
+
+        finalEffect.addChild(animate);
+        finalEffect.duration = getStyle("animationDuration");
         return finalEffect;
     }

     /**
      *  @private
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10.1
-     *  @playerversion AIR 2.5
-     *  @productversion Flex 4.5
      */
     private function navigator_elementAddHandler(event:ElementExistenceEvent):void
     {
-        event.element.addEventListener(PropertyChangeEvent.PROPERTY_CHANGE, view_propertyChangeHandler);
-    }
-
-    /**
-     *  @private
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10.1
-     *  @playerversion AIR 2.5
-     *  @productversion Flex 4.5
+        event.element.addEventListener(PropertyChangeEvent.PROPERTY_CHANGE,
+                                                view_propertyChangeHandler);
+    }
+
+    /**
+     *  @private
      */
     private function navigator_elementRemoveHandler(event:ElementExistenceEvent):void
     {
-        event.element.removeEventListener(PropertyChangeEvent.PROPERTY_CHANGE, view_propertyChangeHandler);
-    }
-
-    /**
-     *  @private
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10.1
-     *  @playerversion AIR 2.5
-     *  @productversion Flex 4.5
+        event.element.removeEventListener(PropertyChangeEvent.PROPERTY_CHANGE,
+                                                view_propertyChangeHandler);
+    }
+
+    /**
+     *  @private
      */
     override protected function partAdded(partName:String, instance:Object):void
     {
         super.partAdded(partName, instance);

-        // If the actionBar changes, need to reset the properties on it
         if (instance == tabBar)
+        {
             tabBar.dataProvider = this;
+            tabBar.addEventListener(IndexChangeEvent.CHANGING, tabBar_indexChanging);
+        }
+    }
+
+    /**
+     *  @private
+     */
+    override protected function partRemoved(partName:String, instance:Object):void
+    {
+        super.partRemoved(partName, instance);
+
+        if (instance == tabBar)
+        {
+            tabBar.dataProvider = null;
+            tabBar.removeEventListener(IndexChangeEvent.CHANGING, tabBar_indexChanging);
+        }
     }

     /**
@@ -698,6 +714,16 @@

     /**
      *  @private
+     *  Determines if the selection of the tab bar can change.
+     */
+    private function tabBar_indexChanging(event:IndexChangeEvent):void
+    {
+        if (!indexCanChange(event.newIndex))
+            event.preventDefault();
+    }
+
+    /**
+     *  @private
      *
      *  @langversion 3.0
      *  @playerversion Flash 10.1
@@ -790,8 +816,6 @@
     // TODO (chiedozi): Follow ListBase setSelectedIndex pattern
     public function set selectedIndex(value:int):void
     {
-        var cancelIndexChange:Boolean = false;
-
         if (value < -1 || value >= length)
         {
             var message:String = ResourceManager.getInstance().getString(
@@ -802,26 +826,18 @@
         if (!selectedNavigatorChanged && value == selectedIndex)
             return;

-        // FIXME (chiedozi): Need to be able to cancel this event
-//        if (activeView && !canRemoveCurrentView())
-//            cancelIndexChange = true;
-
-        if (initialized)
-        {
-            if (hasEventListener(IndexChangeEvent.CHANGING))
-            {
-                var e:IndexChangeEvent = new IndexChangeEvent(IndexChangeEvent.CHANGING, false, true);
-                e.oldIndex = _selectedIndex;
-                e.newIndex = value;
-
-                if (!dispatchEvent(e))
-                    cancelIndexChange = true;
-            }
-
+        // TODO (chiedozi): Add comment about how you can be in here via progromattic setting
+        // of selectedIndex through a tab navigator change and how the changingEventDispatched
+        // is the gating factor there
+        if (initialized && !changingEventDispatched)
+        {
             // If the active view's REMOVING event or the navigator's
             // CHANGING event was canceled, prevent the index change
-            if (cancelIndexChange)
+            if (!indexCanChange(value))
             {
+                if (tabBar)
+                    tabBar.selectedIndex = _selectedIndex;
+
                 _proposedSelectedIndex = NO_PROPOSED_SELECTION;
                 return;
             }
@@ -830,7 +846,33 @@
         _proposedSelectedIndex = value;
         selectedNavigatorChanged = true;

+        changingEventDispatched = false;
         invalidateProperties();
+    }
+
+    /**
+     *  @private
+     *  This method determines the navigator can change its selected index.
+     *  This function will be called if the selection changed on the
+     *  tab bar, or if the selectedIndex property has changed.
+     */
+    private function indexCanChange(proposedSelection:int):Boolean
+    {
+        changingEventDispatched = true;
+        if (!canRemoveCurrentView())
+            return false;
+
+        if (hasEventListener(IndexChangeEvent.CHANGING))
+        {
+            var e:IndexChangeEvent = new IndexChangeEvent(IndexChangeEvent.CHANGING, false, true);
+            e.oldIndex = _selectedIndex;
+            e.newIndex = proposedSelection;
+
+            if (!dispatchEvent(e))
+                return false;
+        }
+
+        return true;
     }

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


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

--- frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigator.as
+++ frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigator.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: 1968
Author:   jimurphy@adobe.com
Date:     2008-06-05T15:31:56.961691Z

Log Message:
-----------
Merge 3.0.x revisions [1940,1954] -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/FlexHTMLLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemEnumerationMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemHistoryButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemTree.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/HTML.as</path>
<path kind="file" action="M">/flex/sdk/trunk/in/air/mac/AIR Integration Kit.tbz2</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/utils/DirectoryEnumeration.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/utils/DirectoryEnumerationMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/AIREvent.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FileEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/windowClasses/StatusBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/in/air/win/AIR Integration Kit.zip</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemDataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/ApplicationTitleBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FlexNativeMenuEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowMinimizeButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowMaximizeButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowRestoreButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/StatusBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/IWindow.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemSizeDisplayMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FlexNativeWindowBoundsEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowBackground.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/windowClasses/TitleBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowCloseButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FlexNativeMenu.as</path>

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

--- frameworks/projects/airframework/src/mx/events/FileEvent.as
+++ frameworks/projects/airframework/src/mx/events/FileEvent.as
@@ -25,7 +25,7 @@
  *  @see mx.controls.FileSystemList
  *  @see mx.controls.FileSystemTree
  *
- *  @productversion Apollo 1.0
+ *  @playerversion AIR 1.1
  */
 public class FileEvent extends Event
 {


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/framework/src/mx/core/TextFieldAsset.as
+++ frameworks/projects/framework/src/mx/core/TextFieldAsset.as
@@ -26,6 +26,11 @@
  *  However, Flex applications do not typically use embedded TextFields.
  *  Refer to more commonly-used asset classes such as BitmapAsset
  *  for more information about how embedded assets work in Flex.</p>
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class TextFieldAsset extends FlexTextField
                             implements IFlexAsset, IFlexDisplayObject
@@ -40,6 +45,11 @@

     /**
      *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function TextFieldAsset()
     {
@@ -68,6 +78,11 @@

     /**
      *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get measuredHeight():Number
     {
@@ -86,6 +101,11 @@

     /**
      *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get measuredWidth():Number
     {
@@ -100,6 +120,11 @@

     /**
      *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function move(x:Number, y:Number):void
     {
@@ -109,6 +134,11 @@

     /**
      *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function setActualSize(newWidth:Number, newHeight:Number):void
     {


fix RenderingController.applyPassInstancesBindingChanges() to delete/re-create draw calls when a newly forked shader instance fails to compile


Transferred from the Adobe Open Source Subversion Repository

Revision: 13763
Author:   smgilson@adobe.com
Date:     2010-01-25T20:53:28.454349Z

Log Message:
-----------
ASDoc bug fixes

QE notes:
Doc notes:
Bugs: FLEXDOCS-1207, FLEXDOCS-1199, FLEXDOCS-1215
Reviewer:
Tests run: checkintests
Is noteworthy for integration:

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Animate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/DragManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/TabNavigator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/datavisualization/src/mx/olap/OLAPAttribute.as</path>

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

--- frameworks/projects/advancedgrids/src/mx/olap/OLAPAttribute.as
+++ frameworks/projects/advancedgrids/src/mx/olap/OLAPAttribute.as
@@ -115,7 +115,7 @@
     //----------------------------------

     /**
-     *  Contains true becasue attributes are assumed to be aggregatable
+     *  Contains true because attributes are assumed to be aggregatable
      *  and all member is present.
      *
      *  @langversion 3.0
@@ -384,8 +384,8 @@
      */
     override mx_internal function refresh():void
     {
-    	uniqueChildrenMap = new Dictionary(true);
-    	uniqueMembers = new ArrayCollection();
+        uniqueChildrenMap = new Dictionary(true);
+        uniqueMembers = new ArrayCollection();

         if (!super.findLevel(name))
         {


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

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


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

 package mx.core
 {


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/framework/src/mx/managers/ISystemManager.as
+++ frameworks/projects/framework/src/mx/managers/ISystemManager.as
@@ -69,6 +69,11 @@
  *  that aren't popped up.
  *  To get the list of all windows, including popups, tooltips and cursors,
  *  use the rawChildren property.

+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public interface ISystemManager extends IEventDispatcher, IChildList, IFlexModuleFactory
 {
@@ -98,6 +103,11 @@
 	 *  the number of custom cursors (which will be either 0 or 1)
 	 *  and, if a custom cursor exists, you can access it as
 	 *  cursorChildren.getChildAt(0).

+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	function get cursorChildren():IChildList;

@@ -109,6 +119,11 @@
 	 *  A reference to the document object.
 	 *  A document object is an Object at the top of the hierarchy of a
 	 *  Flex application, MXML component, or AS component.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	function get document():Object;

@@ -133,6 +148,11 @@
 	/**
 	 *  A single Sprite shared among components used as an overlay for drawing focus.
 	 *  You share it if you parent a focused component, not if you are IFocusManagerComponent.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	function get focusPane():Sprite;

@@ -147,6 +167,11 @@

 	/**
 	 *  The LoaderInfo object that represents information about the application.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	function get loaderInfo():LoaderInfo;

@@ -161,6 +186,11 @@
 	 *  clicking in another windows which would normally
 	 *  activate the FocusManager in that window.  The PopUpManager
 	 *  modifies this count as it creates and destroy modal windows.

+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	function get numModalWindows():int;

@@ -189,6 +219,11 @@
 	 *  the number of topmost windows and you can access them as
 	 *  popUpChildren.getChildAt(i).

 	 *
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	function get popUpChildren():IChildList;

@@ -206,6 +241,11 @@
 	 *
 	 *
The IChildList object has methods like getChildAt()
 	 *  and properties like numChildren.

+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	function get rawChildren():IChildList;

@@ -216,6 +256,11 @@
     /**
      *  Contains all the bridges to other applications
      *  that this application is connected to.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get swfBridgeGroup():ISWFBridgeGroup;

@@ -228,6 +273,11 @@
 	 *
 	 *  The Rectangle object contains x, y,
 	 *  width, and height properties.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	function get screen():Rectangle

@@ -238,6 +288,11 @@
 	/**
 	 *  The flash.display.Stage that represents the application window
 	 *  mapped to this SystemManager
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	function get stage():Stage

@@ -259,6 +314,11 @@
 	 *  the number of tooltips (which will be either 0 or 1)
 	 *  and, if a tooltip exists, you can access it as
 	 *  toolTipChildren.getChildAt(0).

+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	function get toolTipChildren():IChildList;

@@ -270,6 +330,11 @@
 	 *  The ISystemManager responsible for the application window.
 	 *  This will be the same ISystemManager unless this application
 	 *  has been loaded into another application.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	function get topLevelSystemManager():ISystemManager;

@@ -284,6 +349,11 @@
 	 *  Called by the FocusManager, generally not called by application code.
 	 *
 	 *  @param f The top-level window in the application.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	function addFocusManager(f:IFocusManagerContainer):void;

@@ -292,6 +362,11 @@
 	 *  Called by the FocusManager, generally not called by application code.
 	 *
 	 *  @param f The top-level window in the application.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	function removeFocusManager(f:IFocusManagerContainer):void;

@@ -300,6 +375,11 @@
 	 *
 	 *  @param f IFocusManagerContainer the top-level window
 	 *  whose FocusManager should be activated.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	function activate(f:IFocusManagerContainer):void;

@@ -309,6 +389,11 @@
 	 *
 	 *  @param f IFocusManagerContainer the top-level window
 	 *  whose FocusManager should be deactivated.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	function deactivate(f:IFocusManagerContainer):void;

@@ -321,6 +406,11 @@
 	 *  @param name Name of class, for example "mx.video.VideoManager".
 	 *
 	 *  @return The Class represented by the name, or null.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	function getDefinitionByName(name:String):Object;

@@ -331,6 +421,11 @@
 	 *
 	 *  @return true if this ISystemManager is responsible
 	 *  for an application window.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	function isTopLevel():Boolean;

@@ -344,6 +439,11 @@
 	 *  @return true if the required font face is embedded
 	 *  in this application, or has been registered globally by using the
 	 *  Font.registerFont() method.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function isFontFaceEmbedded(tf:TextFormat):Boolean;

@@ -354,6 +454,11 @@
      *  @return true if the SystemManager
      *  is the root of all SystemManagers on the display list,
      *  and false otherwise.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function isTopLevelRoot():Boolean;

@@ -362,6 +467,11 @@
      *
      *  @return The main application's systemManager if allowed by
 	 *  security restrictions or null if it is in a different SecurityDomain.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function getTopLevelRoot():DisplayObject;

@@ -370,6 +480,11 @@
      *  top level system managers in this SecurityDomain
      *
      *  @return the highest-level systemManager in the sandbox
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function getSandboxRoot():DisplayObject;

@@ -381,6 +496,11 @@
      *  @param bridge The bridge for the child.
      *
      *  @param owner The SWFLoader for the child.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function addChildBridge(bridge:IEventDispatcher, owner:DisplayObject):void;

@@ -390,6 +510,11 @@
      *  or compiled with a different version of Flex.
      *
      *  @param bridge The bridge for the child
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function removeChildBridge(bridge:IEventDispatcher):void;

@@ -405,6 +530,11 @@
      	 *  @param trackClones Whether to keep a reference to the events as they are dispatched.
      	 *
      	 *  @param toOtherSystemManagers Whether to dispatch the event to other top-level SystemManagers in AIR.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	function dispatchEventFromSWFBridges(event:Event, skip:IEventDispatcher = null, trackClones:Boolean = false, toOtherSystemManagers:Boolean = false):void

@@ -417,6 +547,11 @@
      *  should  communicate using sandbox bridges.
      *  If false the system manager may directly call
      *  other managers directly via references.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function useSWFBridge():Boolean;

@@ -426,6 +561,11 @@
      *  @param layer Name of IChildList in SystemManager
      *
      *  @param child DisplayObject to add
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function addChildToSandboxRoot(layer:String, child:DisplayObject):void;

@@ -435,6 +575,11 @@
      *  @param layer Name of IChildList in SystemManager
      *
      *  @param child DisplayObject to add
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function removeChildFromSandboxRoot(layer:String, child:DisplayObject):void;

@@ -447,6 +592,11 @@
      *  @return true if displayObject
      *  is in a child application that is loaded in compatibility mode
      *  or in an untrusted sandbox, and false otherwise.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function isDisplayObjectInABridgedApplication(
                         displayObject:DisplayObject):Boolean;
@@ -462,6 +612,11 @@
      *
      *  @return a Rectangle including the visible portion of the this
      *  object. The rectangle is in global coordinates.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function getVisibleApplicationRect(bounds:Rectangle = null):Rectangle;

@@ -476,6 +631,11 @@
      *
      *  @param deploy true to deploy the mouse shields, false
      *  to remove the mouse shields.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function deployMouseShields(deploy:Boolean):void;


Transferred from the Adobe Open Source Subversion Repository

Revision: 5179
Author:   clucier@adobe.com
Date:     2009-03-05T21:58:00.811900Z

Log Message:
-----------
Performance tweak for unnecessary invalidation.
QE Notes: No bug, found by dev.
Reviewer: Alex

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/RectangularBorder.as

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

--- frameworks/projects/framework/src/mx/skins/RectangularBorder.as
+++ frameworks/projects/framework/src/mx/skins/RectangularBorder.as
@@ -182,6 +182,9 @@
      */
     public function set backgroundImageBounds(value:Rectangle):void
     {
+        if (_backgroundImageBounds &&_backgroundImageBounds.equals(value))
+            return;
+
         _backgroundImageBounds = value;

         invalidateDisplayList();


Transferred from the Adobe Open Source Subversion Repository

Revision: 3594
Author:   pfarland@adobe.com
Date:     2008-10-13T18:00:52.025975Z

Log Message:
-----------
Initial check-in for Advanced CSS selector support. Note that since direct AST generation for advanced styles (i.e. equivalent code of StyleModule.vm, StyleDef.vm, ClassDefLib.vm) is not yet implemented and as such advanced selector support is only enabled when the compiler -keep=true is enabled at this time. Direct AST generation to follow.

This change adds support for descendant type selectors (e.g. Panel VBox Button), non-global class selectors (e.g. Button.special), id selectors (e.g. Button#button14), and combinations of these types of selectors (e.e. Panel.special VBox.box12 Button.cancel). Pseudo selector awareness is included but it is not yet wired up to the runtime states mechanism as an efficient method of reacting to state changes is still being developed. Combinator conditional global selectors will be supported soon (i.e. the scenario of combining both an id and class selector at the top level, e.g. .foo#foo12, this requires a more expensive search of global class selectors).

This change juggles both the introduction of advanced selector support while retaining legacy styles APIs. The major difference with advanced styles is that multiple styles need to be considered for a type. This requires new data structures to keep track of selectors by subject. Performance analysis will be conducted to ensure these new data structures do not add unacceptable overhead to the style subsystem.

For the compiler this change consolidates styles processing in the base StyleModule class and then MXML-specific overrides (i.e. inline <Styles> nodes and SWC defaults.css) are in the StylesContainer.java class, which now extends StyleModule. The existing structure for legacy simple style codegen was retained and advanced style codegen wedged in.

QA: Yes
Doc: Not yet
Checkintests: Pass 100%
mxunit styles tests: Pass 100% (note that styles modules include tests you need to manually compile the .css files to swf and they're currently cleaned out each time a build runs... QE please correct this).
mustella styles tests: QE's select list of components testsuites pass 100%. Any failures in the full suite will be addressed in the next-checkin.
Reviewers: Glenn (framework), Paul (compiler)

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/CssCompiler.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StylesContainer.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/MxmlDocument.java</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/frameworkSwcExceptionsList.txt</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/IStyleManager3.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/config/ConfigMap.as</path>
<path kind="file" action="A">/flex/sdk/trunk/modules/compiler/src/java/flash/css/StyleSelector.java</path>
<path kind="file" action="A">/flex/sdk/trunk/modules/compiler/src/java/flash/css/StyleProperty.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flash/css/StyleDeclaration.java</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSSelectorKind.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSConditionKind.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flash/css/FontFaceRule.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationGenerator.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/IStyleClient.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSStyleDeclaration.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flash/css/StyleSheet.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flash/css/StyleDocumentHandler.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/PreLink.java</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSSelector.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManager.as</path>
<path kind="file" action="D">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleProperty.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleModule.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleModule.vm</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/IAdvancedStyleClient.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSCondition.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/gen/ClassDefLib.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flash/css/Rule.java</path>
<path kind="file" action="A">/flex/sdk/trunk/modules/compiler/src/java/flash/css/StyleCondition.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/FrameworkClasses.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleDef.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleDef.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flash/css/StyleParser.java</path>

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

--- frameworks/projects/framework/src/mx/styles/CSSConditionKind.as
+++ frameworks/projects/framework/src/mx/styles/CSSConditionKind.as
@@ -0,0 +1,57 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 mx.styles
+{
+
+/**
+ *  An enumeration of the kinds of CSSCondition.
+ *
+ *  @see mx.styles.CSSCondition
+ *  @see mx.styles.CSSSelector
+ */
+public class CSSConditionKind
+{
+    /**
+     *  A selector condition to match a component by styleName.
+     *  Examples:
+     *      Button.special { ... }
+     *      .special { ... }
+     */
+    public static const CLASS_CONDITION:uint = 1;
+
+    /**
+     *  A selector condition to match a component by id.
+     *  Examples:
+     *      Button#special { ... }
+     *      #special { ... }
+     */
+    public static const ID_CONDITION:uint = 2;
+
+    /**
+     *  A selector condition to match a component by state (which may be
+     *  dynamic and change over time).
+     *  Examples:
+     *      Button:special { ... }
+     *      :special { ... }
+     */
+    public static const PSEUDO_CONDITION:uint = 3;
+
+    /**
+     *  Constructor. Not used.
+     *
+     *  @private
+     */
+    public function CSSConditionKind()
+    {
+    }
+}
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 17838
Author:   smgilson@adobe.com
Date:     2010-09-24T13:58:54.728287Z

Log Message:
-----------
Fix ASDoc build because of missing </p> tag

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

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

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

--- frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
+++ frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
@@ -840,7 +840,7 @@
      *  of the layout elements is set to the container's height.

      *
      *
If the value is "baseline" then the elements are positioned
-     *  such that thier text is aligned to the alignmentBaseline of the layout.
+     *  such that thier text is aligned to the alignmentBaseline of the layout.

      *
      *
This property does not affect the layout's measured size.

      *


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

--- frameworks/projects/charts/src/mx/charts/series/CandlestickSeries.as
+++ frameworks/projects/charts/src/mx/charts/series/CandlestickSeries.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.charts.series
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 10467
Author:   gruehle@adobe.com
Date:     2009-09-21T19:57:44.869335Z

Log Message:
-----------
Re-commit 10435. Broken tests have been excluded.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ApplicationBackground.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/SkinnableContainerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/BorderSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Border.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/BorderStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/SkinnableDataContainerSkin.mxml</path>

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

--- frameworks/projects/framework/src/mx/styles/metadata/BorderStyles.as
+++ frameworks/projects/framework/src/mx/styles/metadata/BorderStyles.as
@@ -128,6 +128,8 @@
  *  The default value depends on the component class;
  *  if not overridden for the class, the default value is "inset".
  *  The default value for most Containers is "none".
+ *  The "inset" and "outset" values are only
+ *  valid with the halo theme.
  *
  *  @langversion 3.0
  *  @playerversion Flash 9