Transferred from the Adobe Open Source Subversion Repository

Revision: 10464
Author:   rfrishbe@adobe.com
Date:     2009-09-21T17:40:30.663638Z

Log Message:
-----------
Removing support in Flex framework for compatibility version < 3.  We won't support compatibility-version 2 or 2.01 anymore.  We only keep compatibility-version for one full release, so for Flex 4, we only support compatibility-version = 3.x.

This should reduce our code-size some as we no longer need this old code.  I didn't clean up the compiler's support for compatibility-versioning as it didn't seem worth the effort.

QE notes: -
Doc notes: -
Bugs: SDK-15360
Reviewer: Kevin
Tests run: checkintests, Joan ran all mustella tests
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileListItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/HaloBorder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ProgressBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/RadioButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/accordionClasses/AccordionHeader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/utilityClasses/CanvasLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateChooser.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/mx/core/UITLFTextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ScrollArrowSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/AccordionHeaderSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Alert.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/NavBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextField.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/controls/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridHeaderBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/treeClasses/TreeItemRenderer.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/containers/FormItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridHeader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/CheckBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/DateChooserYearArrowSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/LinkButton.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/ComboBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/menuClasses/MenuBarItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/PanelSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/menuClasses/MenuItemRenderer.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/controls/PopUpButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/scrollClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/colorPickerClasses/SwatchPanel.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/controls/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ScrollTrackSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/utilityClasses/Flex.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/LinkBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/sliderClasses/Slider.as</path>

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

--- frameworks/projects/mx/src/mx/containers/Accordion.as
+++ frameworks/projects/mx/src/mx/containers/Accordion.as
@@ -28,7 +28,6 @@
 import mx.core.Container;
 import mx.core.ContainerCreationPolicy;
 import mx.core.EdgeMetrics;
-import mx.core.FlexVersion;
 import mx.core.IDataRenderer;
 import mx.core.IDeferredContentOwner;
 import mx.core.IFactory;
@@ -627,9 +626,6 @@
      */
     override public function get baselinePosition():Number
     {
-        if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0)
-            return super.baselinePosition;
-
         if (!validateBaselinePosition())
             return NaN;

@@ -1507,35 +1503,12 @@

             if (headerStyleName)
             {
-                if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0)
-                {
-                    var headerStyleDecl:CSSStyleDeclaration =
-                        StyleManager.getStyleDeclaration("." + headerStyleName);
-                    if (headerStyleDecl)
+                for (var j:int = 0; j < numChildren; j++)
+                {
+                    header = getHeaderAt(j);
+                    if (header)
                     {
-                        // Need to reset the header style declaration and
-                        // regenerate their style cache
-                        for (var i:int = 0; i < numChildren; i++)
-                        {
-                            header = getHeaderAt(i);
-                            if (header)
-                            {
-                                header.styleDeclaration = headerStyleDecl;
-                                header.regenerateStyleCache(true);
-                                header.styleChanged(null);
-                            }
-                        }
-                    }
-                }
-                else
-                {
-                    for (var j:int = 0; j < numChildren; j++)
-                    {
-                        header = getHeaderAt(j);
-                        if (header)
-                        {
-                            header.styleName = headerStyleName;
-                        }
+                        header.styleName = headerStyleName;
                     }
                 }
             }
@@ -1727,26 +1700,10 @@
         var header:Button = Button(headerRenderer.newInstance());
         header.name = HEADER_NAME_BASE + (numChildren - 1);

-        if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0)
-        {
-            header.styleName = this;
-        }
-
         var headerStyleName:String = getStyle("headerStyleName");
         if (headerStyleName)
         {
-            if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0)
-            {
-                 var headerStyleDecl:CSSStyleDeclaration = StyleManager.
-                        getStyleDeclaration("." + headerStyleName);
-
-                if (headerStyleDecl)
-                    header.styleDeclaration = headerStyleDecl;
-            }
-            else
-            {
-                header.styleName = headerStyleName;
-            }
+            header.styleName = headerStyleName;
         }

         header.addEventListener(MouseEvent.CLICK, headerClickHandler);


FLEX-27652 Fixed month getting stuck on September and fixed RTEs for open ended ranges

--- frameworks/projects/mx/src/mx/controls/DateChooser.as
+++ frameworks/projects/mx/src/mx/controls/DateChooser.as
@@ -3083,9 +3083,12 @@
         var longestMonthName:String = monthNames ? monthNames[longestMonth] : "";
         var longestMonthText:String = longestMonthName + monthSymbol;
         var longestMonthUITextField:IUITextField = monthDisplay;
+		var oldMonth:String = monthDisplay.text;
+
         longestMonthUITextField.text = longestMonthText
         monthDisplay.width = longestMonthWidth * longestMonthUITextField.getExplicitOrMeasuredWidth()
             / measureText(longestMonthText).width;
+		longestMonthUITextField.text = oldMonth;
     }

     /**
@@ -3214,10 +3217,12 @@
             (dateGrid.selRangeMode == 1 || dateGrid.selRangeMode == 3))
         {
         	var newDate:Object = CalendarLayout.getNewIncrementDate(displayedYear, displayedMonth, 1, 0);
-            var testDate:Date = new Date(newDate.year, newDate.month,
+
+			if (selectableRange.rangeEnd != null)
+           		var testDate:Date = new Date(newDate.year, newDate.month,
                                          selectableRange.rangeEnd.getDate());

-            if (selectableRange.rangeEnd >= testDate)
+            if (selectableRange.rangeEnd == null || selectableRange.rangeEnd >= testDate)
             {
                 dateGrid.stepDate(1, 0, event);
                 invalidateDisplayList();
@@ -3244,10 +3249,12 @@
             (dateGrid.selRangeMode == 1 || dateGrid.selRangeMode == 2))
         {
         	var newDate:Object = CalendarLayout.getNewIncrementDate(displayedYear, displayedMonth, -1, 0);
-            var testDate:Date = new Date(newDate.year, newDate.month,
+
+			if (selectableRange.rangeStart != null)
+            	var testDate:Date = new Date(newDate.year, newDate.month,
                                          selectableRange.rangeStart.getDate());

-            if (selectableRange.rangeStart <= testDate)
+            if (selectableRange.rangeStart == null || selectableRange.rangeStart <= testDate)
             {
                 dateGrid.stepDate(-1, 0, event);
                 invalidateDisplayList();
@@ -3274,10 +3281,12 @@
             (dateGrid.selRangeMode == 1 || dateGrid.selRangeMode == 3))
         {
         	var newDate:Object = CalendarLayout.getNewIncrementDate(displayedYear, displayedMonth, 0, 1);
-            var testDate:Date = new Date(newDate.year, newDate.month,
+
+			if (selectableRange.rangeEnd != null)
+           		var testDate:Date = new Date(newDate.year, newDate.month,
                                          selectableRange.rangeEnd.getDate());

-            if (selectableRange.rangeEnd >= testDate)
+            if (selectableRange.rangeEnd == null || selectableRange.rangeEnd >= testDate)
             {
                 dateGrid.stepDate(0, 1, event);
                 invalidateDisplayList();
@@ -3304,10 +3313,12 @@
             (dateGrid.selRangeMode == 1 || dateGrid.selRangeMode == 2))
         {
         	var newDate:Object = CalendarLayout.getNewIncrementDate(displayedYear, displayedMonth, 0, -1);
-            var testDate:Date = new Date(newDate.year, newDate.month,
+
+			if (selectableRange.rangeStart != null)
+            	var testDate:Date = new Date(newDate.year, newDate.month,
                                          selectableRange.rangeStart.getDate());

-            if (selectableRange.rangeStart <= testDate)
+            if (selectableRange.rangeStart == null || selectableRange.rangeStart <= testDate)
             {
                 dateGrid.stepDate(0, -1, event);
                 invalidateDisplayList();


Transferred from the Adobe Open Source Subversion Repository

Revision: 5468
Author:   mhorn@adobe.com
Date:     2009-03-20T20:03:56.963789Z

Log Message:
-----------
asdoc bug fixes

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/PopUpManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/RadioButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/ObjectUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>

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

--- frameworks/projects/mx/src/mx/controls/RadioButton.as
+++ frameworks/projects/mx/src/mx/controls/RadioButton.as
@@ -368,7 +368,7 @@
      *  if this RadioButton is part of a group defined by a RadioButtonGroup control.
      *
      *  @default "undefined"
-     *  @throws ArgumentError if Flex 4 or later and the groupName starts with _fx_
+     *  @throws ArgumentError Throws an ArgumentError if you are using Flex 4 or later and the groupName starts with the string "_fx_".
      *
      *  @langversion 3.0
      *  @playerversion Flash 9


Transferred from the Adobe Open Source Subversion Repository

Revision: 654
Author:   svetlink@adobe.com
Date:     2008-02-26T15:29:51.450580Z

Log Message:
-----------
exposing strictNillability flag in IXMLEncoder to allow finer control over xsi:nil encoding

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/XMLEncoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/IXMLEncoder.as</path>

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

--- frameworks/projects/rpc/src/mx/rpc/xml/IXMLEncoder.as
+++ frameworks/projects/rpc/src/mx/rpc/xml/IXMLEncoder.as
@@ -55,6 +55,17 @@
      */
     function get xmlSpecialCharsFilter():Function;
     function set xmlSpecialCharsFilter(func:Function):void;
+
+    /**
+     * When strictNillability is set to true, null values
+     * are encoded according to XML Schema rules (requires nillable=true
+     * to be set in the definition). When strictNillability is set to
+     * false, null values are always encoded with the
+     * xsi:nil="true" attribute. The default is false.
+     */
+    function get strictNillability():Boolean;
+
+    function set strictNillability(value:Boolean):void;
 }

 }


fixed bug in transposed metadata column titles

Change-Id: Ib2c791f35bc3771640cc4c03739372b4c853fa40

--- WeaveData/src/weave/data/DataSources/TransposedDataSource.as
+++ WeaveData/src/weave/data/DataSources/TransposedDataSource.as
@@ -355,7 +355,7 @@
 		{
 			// metadata for transposed metadata columns
 			if (propertyName == ColumnMetadata.TITLE)
-				return propertyName;
+				return sourceMetadataName;
 			if (propertyName == ColumnMetadata.DATA_TYPE)
 				return DataTypes.STRING;
 			return null;


Fixed ANE for AIR simulator

Fixed ANE for AIR simulator

--- actionscript/src/com/freshplanet/ane/AirFacebook/Facebook.as
+++ actionscript/src/com/freshplanet/ane/AirFacebook/Facebook.as
@@ -89,18 +89,24 @@
 		 */
 		public function init( appID : String, urlSchemeSuffix : String = null ) : void
 		{
+			if (!isSupported) return;
+
 			_context.call('init', appID, urlSchemeSuffix);
 		}

 		/** True if a Facebook session is open, false otherwise. */
 		public function get isSessionOpen() : Boolean
 		{
+			if (!isSupported) return false;
+
 			return _context.call('isSessionOpen');
 		}

 		/** The current Facebook access token, or null if no session is open. */
 		public function get accessToken() : String
 		{
+			if (!isSupported) return null;
+
 			return _context.call('getAccessToken') as String;
 		}

@@ -110,6 +116,8 @@
 		 */
 		public function get expirationTimestamp() : Number
 		{
+			if (!isSupported) return 0;
+
 			return _context.call('getExpirationTimestamp') as Number;
 		}

@@ -204,6 +212,8 @@
 		/** Close the current Facebook session and delete the token from the cache. */
 		public function closeSessionAndClearTokenInformation() : void
 		{
+			if (!isSupported) return;
+
 			_context.call('closeSessionAndClearTokenInformation');
 		}

@@ -219,6 +229,8 @@
 		 */
 		public function requestWithGraphPath( graphPath : String, parameters : Object = null, httpMethod : String = "GET", callback : Function = null ) : void
 		{
+			if (!isSupported) return;
+
 			// Verify the HTTP method
 			if (httpMethod != "GET" && httpMethod != "POST" && httpMethod != "DELETE")
 			{
@@ -261,6 +273,8 @@
 		 */
 		public function dialog( method : String, parameters : Object = null, callback : Function = null, allowNativeUI : Boolean = true ) : void
 		{
+			if (!isSupported) return;
+
 			// Separate parameters keys and values
 			var keys:Array = []; var values:Array = [];
 			for (var key:String in parameters)
@@ -283,6 +297,8 @@
 		/** Register the appId for install tracking. */
 		public function publishInstall(appId:String):void
 		{
+			if (!isSupported) return;
+
 			_context.call('publishInstall', appId);
 		}

@@ -303,13 +319,17 @@
 		private var _requestCallbacks : Object = {};

 		private function openSessionWithPermissionsOfType( permissions : Array, type : String, callback : Function = null ) : void
-		{
+		{
+			if (!isSupported) return;
+
 			_openSessionCallback = callback;
 			_context.call('openSessionWithPermissions', permissions, type);
 		}

 		private function reauthorizeSessionWithPermissionsOfType( permissions : Array, type : String, callback : Function = null ) : void
 		{
+			if (!isSupported) return;
+
 			_reauthorizeSessionCallback = callback;
 			_context.call('reauthorizeSessionWithPermissions', permissions, type);
 		}


FLEX-34119 FLEX-34440 Adding the setItemAt() operation to HierarchicalCollectionViewCursor_FLEX_34119_Test, which uncovers FLEX-34440. Separate unit test for FLEX-34440 will follow.

--- frameworks/tests/unitTests/mx/collections/HierarchicalCollectionViewCursor_FLEX_34119_Test.as
+++ frameworks/tests/unitTests/mx/collections/HierarchicalCollectionViewCursor_FLEX_34119_Test.as
@@ -8,7 +8,7 @@
 	import mx.collections.HierarchicalCollectionViewCursor;
 	import mx.collections.IViewCursor;
 	import mx.core.FlexGlobals;
-
+
 	import spark.components.WindowedApplication;

 	import flexunit.framework.AssertionFailedError;
@@ -49,7 +49,7 @@
 	        private static var OPERATION_LOCATION:int = 0;
 	        private static var OPERATION_INDEX:int = 0;
 	        for(SELECTED_INDEX = 0; SELECTED_INDEX < NO_ITEMS_IN_HIERARCHY; SELECTED_INDEX++)
-		        for(OPERATION_LOCATION = SELECTED_INDEX -1; OPERATION_LOCATION >= 0; OPERATION_LOCATION--)
+		        for(OPERATION_LOCATION = SELECTED_INDEX; OPERATION_LOCATION >= 0; OPERATION_LOCATION--)
 		            for(OPERATION_INDEX = 0; OPERATION_INDEX < OPERATIONS.length; OPERATION_INDEX++)
 		                positionAndOperation.push([SELECTED_INDEX, OPERATION_LOCATION, OPERATIONS[OPERATION_INDEX]]);
 	    }
@@ -124,7 +124,7 @@
        	[Test(dataProvider="positionAndOperation")]
         public function testReproduce_FLEX_34119_Comprehensive(selectedItemIndex:int, operationIndex:int, operation:int):void
         {
-			assertThat(operationIndex < selectedItemIndex);
+			assertThat(operationIndex <= selectedItemIndex);

             try {
 				//WHEN
@@ -143,17 +143,21 @@

 			   selectedNode.isSelected = true;

+               var selectedNodeOrDirectAncestorWasRemoved:Boolean;
                 //3. Perform operation
                 if (operation == OP_ADD)
-                    testAddition(_operationCursor);
+                    selectedNodeOrDirectAncestorWasRemoved = testAddition(_operationCursor);
                 else if (operation == OP_REMOVE)
-                    testRemoval(_operationCursor);
+                    selectedNodeOrDirectAncestorWasRemoved = testRemoval(_operationCursor, selectedNode);
+                else if(operation == OP_SET)
+                    selectedNodeOrDirectAncestorWasRemoved = testReplacement(_operationCursor, selectedNode);

                 //THEN 1
                 assertTrue(_noErrorsThrown);

-
-
+				if(selectedNodeOrDirectAncestorWasRemoved)
+                    return; //it means that _sut.current is now (correctly) null
+
                 //4. Create mirror HierarchicalCollectionView from the changed root, as the source of truth
                 _mirrorCursor = _utils.navigateToItem(_currentHierarchy.createCursor() as HierarchicalCollectionViewCursor, selectedNode);

@@ -181,25 +185,16 @@
 			_operationCursor = _currentHierarchy.createCursor() as HierarchicalCollectionViewCursor;
 			_operationCursor.seek(new CursorBookmark(where));
 			var itemToPerformOperationOn:DataNode = _operationCursor.current as DataNode;
-
-			switch(operation)
-			{
-				case OP_ADD:
-					return _utils.nodesHaveCommonAncestor(itemToPerformOperationOn, selectedNode, _currentHierarchy);
-				case OP_REMOVE:
-					return !_utils.isAncestor(itemToPerformOperationOn, selectedNode, _currentHierarchy);
-				case OP_SET:
-					return false;
-				default:
-					return false;
-			}
-		}
-
-	    private function testRemoval(where:HierarchicalCollectionViewCursor):void
+            return _utils.nodesHaveCommonAncestor(itemToPerformOperationOn, selectedNode, _currentHierarchy);
+		}
+
+	    private function testRemoval(where:HierarchicalCollectionViewCursor, selectedNode:DataNode):Boolean
 	    {
 	        var itemToDelete:DataNode = where.current as DataNode;
 	        assertNotNull(itemToDelete);
-
+
+            var currentWillBeNulled:Boolean = itemToDelete == selectedNode || _utils.isAncestor(itemToDelete, selectedNode, _currentHierarchy);
+
 	        //mark the next item, so we know which item disappeared
 			where.moveNext();
 	        var nextItem:DataNode = where.current as DataNode;
@@ -209,16 +204,15 @@
 			//remove the item
 	        var parentOfItemToRemove:DataNode = _currentHierarchy.getParentItem(itemToDelete) as DataNode;
 	        var collectionToChange:ArrayCollection = parentOfItemToRemove ? parentOfItemToRemove.children : _utils.getRoot(_currentHierarchy) as ArrayCollection;
-			//trace("REM: sel=" + selectedNode + "; before=" + itemToDelete);
+			//trace("REM: sel=" + selectedNode + "; before=" + nextItem);
 			_operationPerformedInLastStep = true;
 	        collectionToChange.removeItem(itemToDelete);
+
+            return currentWillBeNulled;
 	    }

-        /**
-         * @return true when the where parameter designates an item on the root collection (last ancestor of modified node)
-         */
-        private function testAddition(where:HierarchicalCollectionViewCursor):void
+        private function testAddition(where:HierarchicalCollectionViewCursor):Boolean
         {
             var itemBeforeWhichWereAdding:DataNode = where.current as DataNode;
             assertNotNull(itemBeforeWhichWereAdding);
@@ -229,7 +223,25 @@

 			_operationPerformedInLastStep = true;
             collectionToChange.addItemAt(_utils.createSimpleNode(itemBeforeWhichWereAdding.label + " [INSERTED NODE]"), positionOfItemBeforeWhichWereAdding);
-			//trace("ADD: sel=" + selectedNode + "; before=" + itemBeforeWhichWereAdding);
+			//trace("ADD: sel=" + selectedNode + ");
+            return false;
+        }
+
+        private function testReplacement(where:HierarchicalCollectionViewCursor, selectedNode:DataNode):Boolean
+        {
+            var itemToBeReplaced:DataNode = where.current as DataNode;
+            assertNotNull(itemToBeReplaced);
+
+            var currentWillBeNulled:Boolean = itemToBeReplaced == selectedNode || _utils.isAncestor(itemToBeReplaced, selectedNode, _currentHierarchy);
+
+            var parentOfReplacementLocation:DataNode = _currentHierarchy.getParentItem(itemToBeReplaced) as DataNode;
+            var collectionToChange:ArrayCollection = parentOfReplacementLocation ? parentOfReplacementLocation.children : _utils.getRoot(_currentHierarchy) as ArrayCollection;
+            var replacedItemIndex:int = collectionToChange.getItemIndex(itemToBeReplaced);
+
+            _operationPerformedInLastStep = true;
+            collectionToChange.setItemAt(_utils.createSimpleNode(itemToBeReplaced.label + " [REPLACED NODE]"), replacedItemIndex);
+            //trace("REPLACE: sel=" + selectedNode + ");
+            return currentWillBeNulled;
         }


add flag for web platform

add flag for web platform

--- Assets/GameLogic/Scripts/LevelManager.as
+++ Assets/GameLogic/Scripts/LevelManager.as
@@ -213,6 +213,8 @@

 	LevelState levelState_ = LS_OUTGAME;

+    bool isWeb_ = GetPlatform() == "Web";
+
 	Node@ cameraNode_;
 	Node@ playerNode_;

@@ -340,10 +342,8 @@
 		cameraNode_.CreateComponent("SoundListener");

 		SetViewportCamera(cameraNode_.GetComponent("Camera"));
-
-		Viewport@ viewPort = renderer.viewports[0];
-
-		if (GetPlatform() != "Web")
+
+		if ( !isWeb_ )
         {
             RenderPath@ rPath = viewPort.renderPath;
             rPath.Append(cache.GetResource("XMLFile", "PostProcess/Blur.xml"));
@@ -417,7 +417,7 @@

 		CleanupScene();

-		if (GetPlatform() != "Web")
+		if ( !isWeb_ )
         {
 		    renderer.viewports[0].renderPath.SetEnabled("Blur",true);
         }
@@ -486,7 +486,7 @@
 		enemyCounterText_.text = 0;
 		playerScoreText_.text = 0;

-		if (GetPlatform() != "Web")
+		if ( !isWeb_ )
         {
 		    renderer.viewports[0].renderPath.SetEnabled("Blur",false);
         }


Transferred from the Adobe Open Source Subversion Repository

Revision: 21589
Author:   aaltman@adobe.com
Date:     2011-07-15T23:40:33.904445Z

Log Message:
-----------
Fixed build: Removed '@' from asdoc comments

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableStageText.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/core/ISoftKeyboardHintClient.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableStageText.as
+++ frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableStageText.as
@@ -1041,7 +1041,7 @@
      *      "contact" - puts the keyboard into a mode appropriate for entering
      *          contact information
      *      "email" - puts the keyboard into e-mail addres entry mode, which may
-     *          make it easier to enter '@' or '.com'
+     *          make it easier to enter the at sign or '.com'
      *
      *  @langversion 3.0
      *  @playerversion AIR 3.0


Remove braces around some single line bodies.


Move knife

Move knife


corrected flag location

corrected flag location

--- src/com/phylake/fsm/impl/Fsm.as
+++ src/com/phylake/fsm/impl/Fsm.as
@@ -143,7 +143,6 @@

                 // execute submachines with current event
                 executeSubmachines(currentState, event);
-
             }

             _inEventLoop = false;


Split method "testCopyWithClassLevelMetadata" to a few.

--- dolly-framework/src/test/actionscript/dolly/CopierTest.as
+++ dolly-framework/src/test/actionscript/dolly/CopierTest.as
@@ -116,28 +116,31 @@
 	}

 	[Test]
-	public function testCopyWithClassLevelMetadata():void {
-		const copy1:ClassLevelCopyable = Copier.copy(classLevelCopyable);
-		assertNotNull(copy1);
-		assertNotNull(copy1.property1);
-		assertEquals(copy1.property1, classLevelCopyable.property1);
-		assertNotNull(copy1.property2);
-		assertEquals(copy1.property2, classLevelCopyable.property2);
-		assertNotNull(copy1.property3);
-		assertEquals(copy1.property3, classLevelCopyable.property3);
-		assertNotNull(copy1.writableField);
-		assertEquals(copy1.writableField, classLevelCopyable.writableField);
+	public function testCopyClassLevelCopyable():void {
+		const copy:ClassLevelCopyable = Copier.copy(classLevelCopyable);
+		assertNotNull(copy);
+		assertNotNull(copy.property1);
+		assertEquals(copy.property1, classLevelCopyable.property1);
+		assertNotNull(copy.property2);
+		assertEquals(copy.property2, classLevelCopyable.property2);
+		assertNotNull(copy.property3);
+		assertEquals(copy.property3, classLevelCopyable.property3);
+		assertNotNull(copy.writableField);
+		assertEquals(copy.writableField, classLevelCopyable.writableField);
+	}

-		const copy2:ClassLevelCopyableCloneable = Copier.copy(classLevelCopyableCloneable);
-		assertNotNull(copy2);
-		assertNotNull(copy2.property1);
-		assertEquals(copy2.property1, classLevelCopyable.property1);
-		assertNotNull(copy2.property2);
-		assertEquals(copy2.property2, classLevelCopyable.property2);
-		assertNotNull(copy2.property3);
-		assertEquals(copy2.property3, classLevelCopyable.property3);
-		assertNotNull(copy2.writableField);
-		assertEquals(copy2.writableField, classLevelCopyable.writableField);
+	[Test]
+	public function testCopyClassLevelCopyableCloneable():void {
+		const copy:ClassLevelCopyableCloneable = Copier.copy(classLevelCopyableCloneable);
+		assertNotNull(copy);
+		assertNotNull(copy.property1);
+		assertEquals(copy.property1, classLevelCopyable.property1);
+		assertNotNull(copy.property2);
+		assertEquals(copy.property2, classLevelCopyable.property2);
+		assertNotNull(copy.property3);
+		assertEquals(copy.property3, classLevelCopyable.property3);
+		assertNotNull(copy.writableField);
+		assertEquals(copy.writableField, classLevelCopyable.writableField);
 	}

 	[Test]


Transferred from the Adobe Open Source Subversion Repository

Revision: 6792
Author:   jimurphy@adobe.com
Date:     2009-05-11T18:24:09.346026Z

Log Message:
-----------
Merged revisions 6729,6731,6746,6755,6757,6765,6767-6768,6770-6772,6775,6784-6786,6790 from http://p01weblab02.corp.adobe.com/svn/opensource/flex/sdk/branches/beta1

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/utilities/src/FlashContainerPlaceholder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/fxg/FlexFXG2SWFTranscoder.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/TextGraphicElement.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/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/FlexContentHolder.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/flash-integration/src/mx/flash/ContainerMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Effect.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/TextArea.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/flex4/src/spark/layouts/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/swf/TypeHelper.java</path>
<path kind="dir" copyfrom-path="/flex/sdk/branches/beta1/modules/fxgutils/src/java/com/adobe/internal/fxg/swf/types" copyfrom-rev="6790" action="A">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/swf/types</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichEditableText.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/components/supportClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/ButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/fxg/swf/FXG2SWFTranscoder.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/SimpleText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/TileLayout.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/effects/supportClasses/ResizeInstance.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/components/supportClasses/ScrollerLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/supportClasses/LayoutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/RadioButtonSkin.mxml</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/beta1/modules/fxgutils/src/java/com/adobe/internal/fxg/swf/types/FXGMatrix.java" copyfrom-rev="6790" action="R">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/swf/types/FXGMatrix.java</path>

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

--- frameworks/projects/spark/src/spark/layouts/TileLayout.as
+++ frameworks/projects/spark/src/spark/layouts/TileLayout.as
@@ -1413,8 +1413,9 @@
      */
     override public function getDestinationIndex(navigationUnit:uint, currentIndex:int):int
     {
-        if (!target)
+        if (!target || target.numElements < 1)
             return -1;
+
         // Make sure currentIndex is within range
         var maxIndex:int = target.numElements - 1;
         currentIndex = Math.max(0, Math.min(maxIndex, currentIndex));


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

--- frameworks/projects/automation_dmv/src/mx/automation/delegates/charts/BarSeriesAutomationImpl.as
+++ frameworks/projects/automation_dmv/src/mx/automation/delegates/charts/BarSeriesAutomationImpl.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.delegates.charts
 {


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

--- frameworks/projects/automation_dmv/src/mx/automation/delegates/charts/ChartBaseAutomationImpl.as
+++ frameworks/projects/automation_dmv/src/mx/automation/delegates/charts/ChartBaseAutomationImpl.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.delegates.charts
 {


check for NaN on size https://github.com/johndyer/mediaelement/pull/571

--- src/flash/FlashMediaElement.as
+++ src/flash/FlashMediaElement.as
@@ -792,7 +792,7 @@

 			if (_mediaElement is VideoElement) {

-				if (_nativeVideoWidth <= 0 || _nativeVideoHeight <= 0) {
+				if (isNaN(_nativeVideoWidth) || isNaN(_nativeVideoHeight) || _nativeVideoWidth <= 0 || _nativeVideoHeight <= 0) {
 					_output.appendText("ERR: I dont' have the native dimension\n");
 					return;
 				}


Transferred from the Adobe Open Source Subversion Repository

Revision: 8031
Author:   egeorgie@adobe.com
Date:     2009-06-20T01:10:03.288554Z

Log Message:
-----------
Scrub the TODOs in the framework, convert to FIXMEs in the new convention and assigning an owner.

Doc Notes: N/A
Bugs: N/A
Reviewer: Deepa
tests: build, checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/StrokedElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ProgressBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/layouts/WheelLayout.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/framework/src/mx/controls/DateChooser.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/FadeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/Slider.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/effects/animation/Timeline.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AddAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Scale.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateInstance.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/components/mediaClasses/VolumeBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/DropDownController.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/HSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/ModifiedCollectionView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/spark/ErrorSkin.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/layouts/HorizontalLayout.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/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="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/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/MoveInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/SequenceInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectTargetFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/SkinnableComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateTransformInstance.as</path>
<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/utils/BitmapUtil.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/skins/spark/FocusSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/GraphicElement.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/framework/src/mx/effects/CompositeEffect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/MotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/MatrixUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/supportClasses/LayoutElementHelper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/TextGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/PopUpAnchor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/mediaClasses/StreamingVideoSource.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/PropertyChanges.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ToggleButtonBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/RemoveActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Effect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/pathSegments/LineSegment.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VideoPlayer.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/effects/supportClasses/AnimateTransitionShaderInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/Transform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/ObjectUtil.as</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/components/supportClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Path.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Rect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/SimpleText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as</path>

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

--- frameworks/projects/framework/src/mx/effects/EffectTargetFilter.as
+++ frameworks/projects/framework/src/mx/effects/EffectTargetFilter.as
@@ -234,7 +234,7 @@
     public function filterInstance(propChanges:Array, semanticsProvider:IEffectTargetHost,
                                    target:Object):Boolean
     {
-        // TODO For better performance,
+        // FIXME (chaase): For better performance,
         if (filterFunction.length == 2)
             return filterFunction(propChanges, target);
         else // if (filterFunction.length == 3)


OFC-260 Add "Record saved" confirmation after successful save

--- collect-flex/collect-flex-client/src/main/flex/org/openforis/collect/presenter/DetailPresenter.as
+++ collect-flex/collect-flex-client/src/main/flex/org/openforis/collect/presenter/DetailPresenter.as
@@ -44,6 +44,7 @@
 			_view.submitButton.addEventListener(MouseEvent.CLICK, submitButtonClickHandler);
 			_view.rejectButton.addEventListener(MouseEvent.CLICK, rejectButtonClickHandler);
 			eventDispatcher.addEventListener(ApplicationEvent.UPDATE_RESPONSE_RECEIVED, updateResponseReceivedHandler);
+			eventDispatcher.addEventListener(ApplicationEvent.RECORD_SAVED, recordSavedHandler);

 			eventDispatcher.addEventListener(UIEvent.ACTIVE_RECORD_CHANGED, activeRecordChangedListener);
 		}
@@ -101,6 +102,12 @@
 			form.record = activeRecord;
 		}

+		protected function recordSavedHandler(event:ApplicationEvent):void {
+			var rootEntityLabel:String = Application.activeRootEntity.getLabelText()
+			_view.recordSavedMessage.text = Message.get("edit.recordSaved", [rootEntityLabel]);
+			_view.recordSavedMessage.show();
+		}
+
 		protected function updateRecordKeyLabel(event:Event = null):void {
 			var result:String;
 			var rootEntityLabel:String = Application.activeRootEntity.getLabelText();


FLEX-34133 Fix logic/ADG RTE in columnHeaderWordWrap

--- frameworks/projects/advancedgrids/src/mx/controls/advancedDataGridClasses/AdvancedDataGridBase.as
+++ frameworks/projects/advancedgrids/src/mx/controls/advancedDataGridClasses/AdvancedDataGridBase.as
@@ -1693,12 +1693,15 @@
      */
     mx_internal function columnHeaderWordWrap(c:AdvancedDataGridColumn):Boolean
     {
-        if (c.headerWordWrap == true)
-            return true;
-        if (c.headerWordWrap == false)
-            return false;
-
-        return headerWordWrap;
+		if (c)
+		{
+			if (c.headerWordWrap === undefined)
+				return headerWordWrap;
+			else
+				return c.headerWordWrap;
+		}
+
+		return headerWordWrap;
     }

     /**
@@ -1711,10 +1714,13 @@
      */
     mx_internal function columnWordWrap(c:AdvancedDataGridColumn):Boolean
     {
-        if (c.wordWrap == true)
-            return true;
-        if (c.wordWrap == false)
-            return false;
+		if (c)
+		{
+			if (c.wordWrap === undefined)
+				return wordWrap;
+			else
+				return c.wordWrap;
+		}

         return wordWrap;
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 12850
Author:   jimurphy@adobe.com
Date:     2009-12-11T14:57:14.623098Z

Log Message:
-----------
add 6 new DMV projects to the SDK:
automation
automation_air
automation_dmv
automation_flashflexkit
automation_spark
datavisualization

These projects are setup to build in an ant main call.  There are currently several warnings in the datavisualization project that will be cleaned up.  No checkintests exist for these projects as of yet.

I also modified the exisitng projects build files for easier management of the localization targets, bundle and fat-swc. If the projects that I updated:airframework,airspark,framework,playerglobal,rpc,and spark.  All the new projects have been implemented this same way.

QE notes: DMV folks should run through their tests
Doc notes: probably
Bugs: nope
Reviewer:
Tests run: ran the following targets: compile,checkintests,other.locales and doc
Is noteworthy for integration: no

Modified Paths:
--------------
1404 paths were modified

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

--- frameworks/projects/automation/src/mx/automation/delegates/containers/DividedBoxAutomationImpl.as
+++ frameworks/projects/automation/src/mx/automation/delegates/containers/DividedBoxAutomationImpl.as
@@ -0,0 +1,149 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.delegates.containers
+{
+	import flash.display.DisplayObject;
+	import flash.events.Event;
+
+	import mx.automation.Automation;
+	import mx.automation.delegates.core.ContainerAutomationImpl;
+	import mx.containers.DividedBox;
+	import mx.core.mx_internal;
+	import mx.events.DividerEvent;
+
+	use namespace mx_internal;
+
+	[Mixin]
+	/**
+	 *
+	 *  Defines the methods and properties required to perform instrumentation for the
+	 *  DividedBox class.
+	 *
+	 *  @see mx.containers.DividedBox
+	 *
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public class DividedBoxAutomationImpl extends ContainerAutomationImpl
+	{
+		include "../../../core/Version.as";
+
+		//--------------------------------------------------------------------------
+		//
+		//  Class methods
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  Registers the delegate class for a component class with automation manager.
+		 *
+		 *  @param root The SystemManger of the application.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public static function init(root:DisplayObject):void
+		{
+			Automation.registerDelegateClass(DividedBox, DividedBoxAutomationImpl);
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Constructor
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  Constructor.
+		 * @param obj DividedBox object to be automated.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public function DividedBoxAutomationImpl(obj:DividedBox)
+		{
+			super(obj);
+
+			obj.addEventListener(DividerEvent.DIVIDER_RELEASE, recordAutomatableEvent, false, 0, true);
+		}
+
+		/**
+		 *  @private
+		 *  storage for the owner component
+		 */
+		protected function get dBox():DividedBox
+		{
+			return uiComponent as DividedBox;
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Replay methods
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  Replays DIVIDER_RELEASE events by dispatching
+		 *  a DIVIDER_PRESS event, moving the divider in question,
+		 *  and dispatching a DIVIDER_RELEASE event.
+		 *
+		 *  @param interaction The event to replay.
+		 *
+		 *  @return true if the replay was successful. Otherwise, returns false.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		override public function replayAutomatableEvent(interaction:Event):Boolean
+		{
+			if (interaction is DividerEvent)
+			{
+				var dividerInteraction:DividerEvent = DividerEvent(interaction);
+
+				// dispatch a pressed event (in case anyone was listening)
+				var pressedEvent:DividerEvent =
+					new DividerEvent(DividerEvent.DIVIDER_PRESS);
+				pressedEvent.dividerIndex = dividerInteraction.dividerIndex;
+				dBox.dispatchEvent(pressedEvent);
+
+				// dispatch a dragged event (in case anyone was listening)
+				var draggedEvent:DividerEvent =
+					new DividerEvent(DividerEvent.DIVIDER_DRAG);
+				draggedEvent.dividerIndex = dividerInteraction.dividerIndex;
+				draggedEvent.delta = dividerInteraction.delta / 2;
+				dBox.dispatchEvent(draggedEvent);
+
+				// move the divider
+				dBox.moveDivider(dividerInteraction.dividerIndex,
+					dividerInteraction.delta);
+
+				dBox.validateNow();
+				// dispatch a released event (the same one that was recorded)
+				dBox.dispatchEvent(interaction);
+
+				return true;
+			}
+			return super.replayAutomatableEvent(interaction);
+		}
+
+	}
+
+}


fix bug

fix bug

--- src/model/AnimationDataProxy.as
+++ src/model/AnimationDataProxy.as
@@ -233,12 +233,10 @@
 			var movementData:MovementData = animationData.getMovementData(movementName);
 			var movementBoneData:MovementBoneData = movementData.getMovementBoneData(boneName);

-			movementBoneData.scale = boneScale * 0.01;
-			movementBoneData.delay = boneDelay * 0.01;
-			if(movementBoneData.delay > 0)
-			{
-				movementBoneData.delay -= 1;
-			}
+			movementBoneData.setValues(
+				boneScale * 0.01,
+				boneDelay * 0.01
+			)

 			if(!ImportDataProxy.getInstance().isExportedSource)
 			{


Update Events.as

Update Events.as

修复list点击的item的ctrlKey等属性传递丢失。。

--- source/fairygui/Events.as
+++ source/fairygui/Events.as
@@ -24,7 +24,14 @@
         public static function createEvent(type:String, target:Sprite, source:Event=null):Event {
             Events.$event.setTo(type, target, source?source.target:target);
             if(source)
-                Events.$event.touchId = source.touchId;
+	    {
+	    	Events.$event.touchId = source.touchId;
+		Events.$event.nativeEvent=source.nativeEvent;
+	    }
+            else
+	    {
+	    	Events.$event.nativeEvent=null;
+	    }
             Events.$event._stoped = false;
             return Events.$event;
         }
@@ -33,4 +40,4 @@
             target.event(type, Events.createEvent(type, target, source));
         }
     }
-}+}


small optimization

small optimization

--- src/org/mangui/HLS/utils/AES.as
+++ src/org/mangui/HLS/utils/AES.as
@@ -103,19 +103,16 @@
           pad = new NullPad;
           _read_position+=CHUNK_SIZE;
           _data.readBytes(dumpByteArray,0,CHUNK_SIZE);
-          newIv = new ByteArray;
           // Save new IV from ciphertext
-          dumpByteArray.position += (dumpByteArray.length-16);
+          newIv = new ByteArray();
+          dumpByteArray.position = (CHUNK_SIZE-16);
           dumpByteArray.readBytes(newIv, 0, 16);
         }
         dumpByteArray.position = 0;
         //Log.info("before decrypt");
         _mode = new CBCMode(_key, pad);
         pad.setBlockSize(_mode.getBlockSize());
-        if (_mode is IVMode) {
-          var ivmode:IVMode = _mode as IVMode;
-          ivmode.IV = _iv;
-        }
+        (_mode as IVMode).IV = _iv;
         _mode.decrypt(dumpByteArray);
         //Log.info("after decrypt");
         _decrypteddata.writeBytes(dumpByteArray);
@@ -138,6 +135,7 @@
     }

     public function destroy():void {
+      _key.dispose();
       _key = null;
       _mode = null;
     }


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

--- frameworks/projects/framework/src/mx/utils/DescribeTypeCache.as
+++ frameworks/projects/framework/src/mx/utils/DescribeTypeCache.as
@@ -0,0 +1,134 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2005-2006 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.utils
+{
+
+import flash.utils.describeType;
+import flash.utils.getDefinitionByName;
+import flash.utils.getQualifiedClassName;
+import mx.binding.BindabilityInfo;
+
+[ExcludeClass]
+
+/**
+ *  DescribeTypeCache is a convenience class that is used to
+ *  cache the return values of flash.utils.describeType()
+ *  so that calls made subsequent times return faster.
+ *
+ *  This class also lets you set handler functions for specific value types.
+ *  These will get called when the user tries to access these values on
+ *  the DescribeTypeCacheRecord class.
+ *
+ *  @see mx.utils.DescribeTypeCacheRecord
+ */
+public class DescribeTypeCache
+{
+	include "../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Class initialization
+	//
+	//--------------------------------------------------------------------------
+
+	registerCacheHandler("bindabilityInfo", bindabilityInfoHandler);
+
+	//--------------------------------------------------------------------------
+	//
+	//  Class variables
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	private static var typeCache:Object = {};
+
+	/**
+	 *  @private
+	 */
+	private static var cacheHandlers:Object = {};
+
+	//--------------------------------------------------------------------------
+	//
+	//  Class methods
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Calls flash.utils.describeType() for the first time and caches
+     *  the return value so that subsequent calls return faster.
+     *
+     *  @see flash.utils#describeType()
+	 */
+	public static function describeType(o:*):DescribeTypeCacheRecord
+	{
+		var className:String;
+
+		if (o is String)
+			className = o;
+		else
+			className = getQualifiedClassName(o);
+
+		if (className in typeCache)
+		{
+			return typeCache[className];
+		}
+		else
+		{
+			if (o is String)
+				o = getDefinitionByName(o);
+
+			var typeDescription:XML = flash.utils.describeType(o);
+			var record:DescribeTypeCacheRecord = new DescribeTypeCacheRecord();
+			record.typeDescription = typeDescription;
+			record.typeName = className;
+			typeCache[className] = record;
+
+			return record;
+		}
+	}
+
+	/**
+	 *  registerCacheHandler lets you add function handler for specific strings.
+         *  These functions get called when the user refers to these values on a
+         *  instance of DescribeTypeCacheRecord.
+	 *
+	 *  @param valueName String that specifies the value for which the handler must be set.
+         *  @param handler Function that should be called when user references valueName.
+	 */
+	public static function registerCacheHandler(valueName:String, handler:Function):void
+	{
+		cacheHandlers[valueName] = handler;
+	}
+
+	/**
+	 *  @private
+	 */
+	internal static function extractValue(valueName:String, record:DescribeTypeCacheRecord):*
+	{
+		if (valueName in cacheHandlers)
+			return cacheHandlers[valueName](record);
+
+		return undefined;
+	}
+
+	/**
+	 *  @private
+	 */
+	private static function bindabilityInfoHandler(record:DescribeTypeCacheRecord):*
+	{
+		return new BindabilityInfo(record.typeDescription);
+	}
+}
+
+}


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

--- frameworks/projects/rpc/src/mx/messaging/errors/ChannelError.as
+++ frameworks/projects/rpc/src/mx/messaging/errors/ChannelError.as
@@ -0,0 +1,39 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2005-2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.messaging.errors
+{
+
+/**
+ *  This is the base class for any channel related errors.
+ *  It allows for less granular catch code.
+ */
+public class ChannelError extends MessagingError
+{
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+    /**
+	 *  Constructs a new instance of a ChannelError with the
+	 *  specified message.
+	 *
+	 *  @param msg String that contains the message that describes the error.
+     */
+    public function ChannelError(msg:String)
+    {
+        super(msg);
+    }
+}
+
+}


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

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


Transferred from the Adobe Open Source Subversion Repository

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

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

 package mx.effects.easing
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 8486
Author:   smgilson@adobe.com
Date:     2009-07-09T18:42:45.734868Z

Log Message:
-----------
Third checkin to update the namespace in ASDoc MXML syntax descriptions for Spark components

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/PopUpAnchor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DataRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RadioButtonGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ToggleButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Spinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoPlayer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/CheckBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/TrackBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VSlider.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/components/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Range.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DataGroup.as</path>

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

--- frameworks/projects/spark/src/spark/components/VideoPlayer.as
+++ frameworks/projects/spark/src/spark/components/VideoPlayer.as
@@ -362,7 +362,7 @@
  *
  *  @mxml
  *
- *
The <VideoPlayer> tag inherits all of the tag
+ *
The <s:VideoPlayer> tag inherits all of the tag
  *  attributes of its superclass and adds the following tag attributes:

  *
  *


Transferred from the Adobe Open Source Subversion Repository

Revision: 4958
Author:   rfrishbe@adobe.com
Date:     2009-02-13T23:07:46.243121Z

Log Message:
-----------
Change the initialization sequence of FxComponent and Group.  Basically now children (including the skin) should get created at createChildren() time and follow the correct lifecycle pattern.  Unfortunately, this change got mingled in with all my PARB changes, so I'm submitting a bunch of PARB changes for Group, DataGroup, FxContainer, and FxDataContainer, outlined below:

1.     New event classes/names for Group/FxContainer and DataGroup ("elementAdd" and "elementRemove" event of type ElementExistenceEvent for Group/FxContainer and "rendererAdd" and "rendererRemove" event of type RendererExistenceEvent for DataGroup). It was just one event class of ItemExistenceChangedEvent before.
2.     LayoutBase.clipContent->clipAndEnableScrolling (same with IViewport.clipContent and GroupBase.clipContent)
3.     GroupBase.getLayoutELementAt()->getElementAt()
4.     GroupBase.numLayoutElements -> numElements.
5.     LayoutBase.virtualLayout -> useVirtualLayout
6.     ScrollUnit constants are now changed to be uints instead of typed as ScrollUnit.  This means the signature for getHorizontalScrollPositionDelta(unit:ScrollUnit):Number has changed to getHorizontalScrollPositionDelta(scrollUnit:uint):Number (and ditto for getVerticalScrollPositionDelta())
7.  DataGroup.getRendererForItemAt() -> getElementAt()
8.  DataGroup.getItemIndexForRenderer() -> getElementIndex()

Other changes:
 - Change IVisualElement interface so that it's smaller now.  It also extends ILayoutElement now.  The properties removed from IVisualElement are: rotation, rotationX, rotationY, rotationZ, transformX, transformY, offsets, x, y, z, scaleX, scaleY, scaleZ, explicitWidth, explicitMinWidth, explicitMaxWidth, explicitHeight, explicitMinHeight, explicitMaxHeight)
-  Fix in DataGroup so we don’t remove/add elements if we’re gonna do it later anyways.  I also need to do some other work in here around cleaning up of renderers.
- AddItems fix around handling IVisualElementContainers more effeciently
- get mxmlContent now returns a copy of the Array rather than the one we're using internally
- Had to update mustella since there was special case logic for dealing with getLayoutElementAt().  I added this logic for getElementAt(), which replaces that method.

QE Notes: Thanks for changing all the tests and working on the cyclone
Doc Notes: Made some ASDoc changes to some core classes to move the comments into the interfaces.  I did update the comments a bit as well.
Bugs: SDK-18115, SDK-19004
Reviewer: Jason, Glenn, Hans for initialization sequence change and Hans for all PARB changes
tests: checkintests, all mustella tests

Modified Paths:
--------------
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/mx/events/ItemExistenceChangedEvent.as" copyfrom-rev="4812" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/events/ElementExistenceEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/TileLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxScroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/layouts/WheelLayout.as</path>
<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/baseClasses/FxComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxHScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/core/IViewport.as</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/components/baseClasses/FxListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/VerticalLayout.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/events/RendererExistenceEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/LayoutBase.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/events/ItemExistenceChangedEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/core/ScrollUnit.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxVScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/BasicLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/states/AddItems.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxScrollBar.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/FxDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/mustella/mustella.swc</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ILayoutElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/TextView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxContainer.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/VerticalLayout.as
+++ frameworks/projects/spark/src/spark/layouts/VerticalLayout.as
@@ -20,7 +20,6 @@
 import mx.components.baseClasses.GroupBase;
 import mx.containers.utilityClasses.Flex;
 import mx.core.ILayoutElement;
-import mx.core.ScrollUnit;
 import mx.events.PropertyChangeEvent;
 import mx.layout.LinearLayoutVector;

@@ -450,10 +449,10 @@
 	    if (!g)
 	        return 0.0;

-	    if ((index < 0) || (index >= g.numLayoutElements))
+	    if ((index < 0) || (index >= g.numElements))
 	       return 0.0;

-        if (!clipContent)
+        if (!clipAndEnableScrolling)
             return 1.0;

@@ -471,14 +470,14 @@
         // get the layout element's Y and Height
 	    var eltY:Number;
 	    var eltHeight:Number;
-	    if (virtualLayout)
+	    if (useVirtualLayout)
 	    {
 	        eltY = llv.start(index);
 	        eltHeight = llv.getMajorSize(index);
 	    }
 	    else
 	    {
-            var elt:ILayoutElement = g.getLayoutElementAt(index);
+            var elt:ILayoutElement = g.getElementAt(index);
             if (!elt || !elt.includeInLayout)
                 return 0.0;
             eltY = elt.getLayoutBoundsY();
@@ -516,7 +515,7 @@
 	private static function findIndexAt(y:Number, gap:int, g:GroupBase, i0:int, i1:int):int
 	{
 	    var index:int = (i0 + i1) / 2;
-        var element:ILayoutElement = g.getLayoutElementAt(index);
+        var element:ILayoutElement = g.getElementAt(index);
 	    var elementY:Number = element.getLayoutBoundsY();
         var elementHeight:Number = element.getLayoutBoundsHeight();
         // TBD: deal with null element, includeInLayout false.
@@ -540,10 +539,10 @@
     */
     private static function findLayoutElementIndex(g:GroupBase, i:int, dir:int):int
     {
-        var n:int = g.numLayoutElements;
+        var n:int = g.numElements;
         while((i >= 0) && (i < n))
         {
-           var element:ILayoutElement = g.getLayoutElementAt(i);
+           var element:ILayoutElement = g.getElementAt(i);
            if (element && element.includeInLayout)
            {
                return i;
@@ -567,7 +566,7 @@
         if (!g)
             return;

-        var n:int = g.numLayoutElements - 1;
+        var n:int = g.numElements - 1;
         if (n < 0)
         {
             setIndexInView(-1, -1);
@@ -598,7 +597,7 @@

         var i0:int;
         var i1:int;
-        if (virtualLayout)
+        if (useVirtualLayout)
         {
             i0 = llv.indexOf(y0);
             i1 = llv.indexOf(y1);
@@ -615,7 +614,7 @@
             var index0:int = findLayoutElementIndex(g, 0, +1);
             if (index0 != -1)
             {
-                var element0:ILayoutElement = g.getLayoutElementAt(index0);
+                var element0:ILayoutElement = g.getElementAt(index0);
                 var element0Y:Number = element0.getLayoutBoundsY();
                 var elementHeight:Number = element0.getLayoutBoundsHeight();
                 if ((element0Y < y1) && ((element0Y + elementHeight) > y0))
@@ -629,7 +628,7 @@
             var index1:int = findLayoutElementIndex(g, n, -1);
             if (index1 != -1)
             {
-                var element1:ILayoutElement = g.getLayoutElementAt(index1);
+                var element1:ILayoutElement = g.getElementAt(index1);
                 var element1Y:Number = element1.getLayoutBoundsY();
                 var element1Height:Number = element1.getLayoutBoundsHeight();
                 if ((element1Y < y1) && ((element1Y + element1Height) > y0))
@@ -637,7 +636,7 @@
             }
         }

-        if (virtualLayout)
+        if (useVirtualLayout)
             g.invalidateDisplayList();

         setIndexInView(i0, i1);
@@ -651,11 +650,11 @@
      */
     private function layoutElementBounds(g:GroupBase, i:int):Rectangle
     {
-        if (virtualLayout)
+        if (useVirtualLayout)
             return llv.getBounds(i);
         else
         {
-            var element:ILayoutElement = g.getLayoutElementAt(i);
+            var element:ILayoutElement = g.getElementAt(i);
             if (element && element.includeInLayout)
             {
                 return new Rectangle(element.getLayoutBoundsX(),
@@ -680,7 +679,7 @@
      */
     private function findLayoutElementBounds(g:GroupBase, i:int, dir:int, r:Rectangle):Rectangle
     {
-        var n:int = g.numLayoutElements;
+        var n:int = g.numElements;

         if (inView(i) >= 1)
             i = Math.max(0, Math.min(n - 1, i + dir));
@@ -730,7 +729,7 @@
      */
     private function measureReal(layoutTarget:GroupBase):void
     {
-        var layoutEltCount:int = layoutTarget.numLayoutElements;
+        var layoutEltCount:int = layoutTarget.numElements;
         var reqEltCount:int = requestedRowCount; // -1 means "all elements"
         var eltCount:uint = Math.max(reqEltCount, layoutEltCount);
         var eltInLayoutCount:uint = 0; // elts that have been measured
@@ -749,9 +748,9 @@
             if ((reqEltCount != -1) && (eltInLayoutCount >= reqEltCount))
                 break;

-            if (i < layoutEltCount) // target.numLayoutElements
-                var elt:ILayoutElement = layoutTarget.getLayoutElementAt(i);
-            else // target.numLayoutElements < requestedElementCount, so "pad"
+            if (i < layoutEltCount) // target.numElements
+                var elt:ILayoutElement = layoutTarget.getElementAt(i);
+            else // target.numElements < requestedElementCount, so "pad"
                 elt = typicalLayoutElement;
             if (!elt || !elt.includeInLayout)
                 continue;
@@ -784,7 +783,7 @@
     /**
      *  @private
      *  Syncs the LinearLayoutVector llv with typicalLayoutElement and
-     *  the target's numLayoutElements.  Calling this function accounts
+     *  the target's numElements.  Calling this function accounts
      *  for the possibility that the typicalLayoutElement has changed, or
      *  something that its preferred size depends on has changed.
      */
@@ -799,7 +798,7 @@
             llv.defaultMajorSize = typicalHeight;
         }
         if (layoutTarget)
-            llv.length = layoutTarget.numLayoutElements;
+            llv.length = layoutTarget.numElements;
      }

     /**
@@ -817,7 +816,7 @@
      */
     private function measureVirtual(layoutTarget:GroupBase):void
     {
-        var eltCount:uint = layoutTarget.numLayoutElements;
+        var eltCount:uint = layoutTarget.numElements;
         var measuredEltCount:int = (requestedRowCount != -1) ? requestedRowCount : eltCount;

         updateLLV(layoutTarget);
@@ -877,14 +876,14 @@
         if (!layoutTarget)
             return;

-        if (layoutTarget.numLayoutElements == 0)
+        if (layoutTarget.numElements == 0)
         {
             layoutTarget.measuredWidth = 0;
             layoutTarget.measuredHeight = 0;
             layoutTarget.measuredMinWidth = 0;
             layoutTarget.measuredMinHeight = 0;
         }
-        else if (virtualLayout)
+        else if (useVirtualLayout)
             measureVirtual(layoutTarget);
         else
             measureReal(layoutTarget);
@@ -970,7 +969,7 @@
     private function updateDisplayListVirtual():void
     {
         var layoutTarget:GroupBase = target;
-        var eltCount:int = layoutTarget.numLayoutElements;
+        var eltCount:int = layoutTarget.numElements;
         var targetWidth:Number = layoutTarget.width;
         var minVisibleY:Number = layoutTarget.verticalScrollPosition;
         var maxVisibleY:Number = minVisibleY + layoutTarget.height;
@@ -991,7 +990,7 @@
         // current contentWidth; cache computed widths/heights in llv.
         for (; (y < maxVisibleY) && (index < eltCount); index++)
         {
-            var elt:ILayoutElement = layoutTarget.getLayoutElementAt(index);
+            var elt:ILayoutElement = layoutTarget.getElementAt(index);
             var h:Number = (isNaN(fixedRowHeight)) ? elt.getPreferredBoundsHeight() : fixedRowHeight;
             var w:Number = calculateElementWidth(elt, targetWidth, containerWidth);
             var x:Number = calculateElementX(elt, w, containerWidth);
@@ -1012,7 +1011,7 @@
             {
                 for (index = startIndex; index <= endIndex; index++)
                 {
-                    elt = layoutTarget.getLayoutElementAt(index);
+                    elt = layoutTarget.getElementAt(index);
                     w = calculateElementWidth(elt, targetWidth, containerWidth);
                     x = calculateElementX(elt, w, containerWidth);
                     elt.setLayoutBoundsPosition(x, elt.getLayoutBoundsY());
@@ -1034,7 +1033,7 @@
         var targetHeight:Number = layoutTarget.height;

         var layoutElement:ILayoutElement;
-        var count:uint = layoutTarget.numLayoutElements;
+        var count:uint = layoutTarget.numElements;

         // If horizontalAlign is left, we don't need to figure out the contentWidth
         // Otherwise the contentWidth is used to position the element and even size
@@ -1048,7 +1047,7 @@
         {
             for (var i:int = 0; i < count; i++)
             {
-                layoutElement = layoutTarget.getLayoutElementAt(i);
+                layoutElement = layoutTarget.getElementAt(i);
                 if (!layoutElement || !layoutElement.includeInLayout)
                     continue;

@@ -1098,7 +1097,7 @@

         for (var index:int = 0; index < count; index++)
         {
-            layoutElement = layoutTarget.getLayoutElementAt(index);
+            layoutElement = layoutTarget.getElementAt(index);
             if (!layoutElement || !layoutElement.includeInLayout)
                 continue;

@@ -1112,7 +1111,7 @@

             maxX = Math.max(maxX, x + dx);
             maxY = Math.max(maxY, y + dy);
-            if (!clipContent ||
+            if (!clipAndEnableScrolling ||
                 ((y < maxVisibleY) && ((y + dy) > minVisibleY)) ||
                 ((dy <= 0) && ((y == maxVisibleY) || (y == minVisibleY))))
             {
@@ -1155,7 +1154,7 @@

         // rowHeight can be expensive to compute
         var rh:Number = (variableRowHeight) ? 0 : rowHeight;
-        var count:uint = target.numLayoutElements;
+        var count:uint = target.numElements;
         var totalCount:uint = count; // number of elements to use in gap calculation

         // If the child is flexible, store information about it in the
@@ -1163,7 +1162,7 @@
         // width and height immediately.
         for (var index:int = 0; index < count; index++)
         {
-            layoutElement = target.getLayoutElementAt(index);
+            layoutElement = target.getElementAt(index);
             if (!layoutElement || !layoutElement.includeInLayout)
             {
                 totalCount--;
@@ -1220,13 +1219,13 @@
         if (!layoutTarget)
             return;

-        if (layoutTarget.numLayoutElements == 0)
+        if (layoutTarget.numElements == 0)
         {
             setRowCount(0);
             setIndexInView(-1, -1);
             layoutTarget.setContentSize(0, 0);
         }
-        else if (virtualLayout)
+        else if (useVirtualLayout)
             updateDisplayListVirtual();
         else
             updateDisplayListReal();


Transferred from the Adobe Open Source Subversion Repository

Revision: 4343
Author:   egeorgie@adobe.com
Date:     2008-12-17T19:43:14.985373Z

Log Message:
-----------
Fix a bad rename I added in VerticalLayout with change 4337
QE Notes: None
Doc Notes: None
Bugs: None
Reviewer: None
tests: checkintests, mustella (gumbo/core/group)

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/VerticalLayout.as

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

--- frameworks/projects/spark/src/spark/layouts/VerticalLayout.as
+++ frameworks/projects/spark/src/spark/layouts/VerticalLayout.as
@@ -257,9 +257,9 @@
         else if (!target || (target.numLayoutElements <= 0))
             return 0;
         else if (typicalLayoutElement)
-            return typicalLayoutElement.getPreferredBoundsWidth();
+            return typicalLayoutElement.getPreferredBoundsHeight();
         else
-            return target.getLayoutElementAt(0).getPreferredBoundsWidth();
+            return target.getLayoutElementAt(0).getPreferredBoundsHeight();
     }

     /**
@@ -805,14 +805,14 @@
             }

             preferredWidth = Math.max(preferredWidth, li.getPreferredBoundsWidth());
-            preferredHeight += li.getPreferredBoundsWidth();
+            preferredHeight += li.getPreferredBoundsHeight();

             var vrr:Boolean = (reqRows != -1) && (visibleRows < reqRows);

             if (vrr || (reqRows == -1))
             {
                 var mw:Number =  hasPercentWidth(li) ? li.getMinBoundsWidth() : li.getPreferredBoundsWidth();
-                var mh:Number = hasPercentHeight(li) ? li.getMinBoundsHeight() : li.getPreferredBoundsWidth();
+                var mh:Number = hasPercentHeight(li) ? li.getMinBoundsHeight() : li.getPreferredBoundsHeight();
                 minWidth = Math.max(mw, minWidth);
                 minHeight += mh;
             }
@@ -896,7 +896,7 @@
     {
         var rowCount:uint = layoutTarget.numLayoutElements;
         llv.length = rowCount;
-        llv.defaultMajorSize = typicalLayoutElement.getPreferredBoundsWidth();
+        llv.defaultMajorSize = typicalLayoutElement.getPreferredBoundsHeight();
         llv.minorSize = typicalLayoutElement.getPreferredBoundsWidth();

         var measuredRowCount:int = (requestedRowCount != -1) ? requestedRowCount : rowCount;
@@ -1010,7 +1010,7 @@

         // TBD: don't assume typicalLayoutElement is set, use 1st row...
         var typicalWidth:Number = typicalLayoutElement.getPreferredBoundsWidth();
-        var typicalHeight:Number = typicalLayoutElement.getPreferredBoundsWidth();
+        var typicalHeight:Number = typicalLayoutElement.getPreferredBoundsHeight();
         llv.length = layoutTarget.numLayoutElements;
         llv.minorSize = Math.max(llv.minorSize, typicalWidth);
         llv.defaultMajorSize = typicalHeight;
@@ -1027,11 +1027,11 @@
         for (; (y < maxVisibleY) && (index < eltCount); index++)
         {
             var elt:ILayoutElement = layoutTarget.getLayoutElementAt(index);
-            var h:Number = elt.getPreferredBoundsWidth();
+            var h:Number = elt.getPreferredBoundsHeight();
             var w:Number = calculateElementWidth(elt, targetWidth, contentWidth);
             var x:Number = calculateElementX(elt, w, contentWidth);
             elt.setLayoutBoundsPosition(x, y);
-            elt.setLayoutBoundsSize(w, elt.getPreferredBoundsWidth());
+            elt.setLayoutBoundsSize(w, elt.getPreferredBoundsHeight());
             llv.cacheDimensions(index, elt);
             y += h + gap;
         }


Transferred from the Adobe Open Source Subversion Repository

Revision: 5140
Author:   gauravj@adobe.com
Date:     2009-03-02T20:09:24.249785Z

Log Message:
-----------
Removing [ExcludeClass] from classes outside the package.

QE Notes: None.
Doc Notes: None.
tests: checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/VerticalLayout.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/VerticalLayout.as
+++ frameworks/projects/spark/src/spark/layouts/VerticalLayout.as
@@ -1313,8 +1313,6 @@
 }
 }

-[ExcludeClass]
-
 import mx.core.ILayoutElement;
 import mx.containers.utilityClasses.FlexChildInfo;


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

--- frameworks/projects/advancedgrids/src/mx/controls/advancedDataGridClasses/AdvancedDataGridListData.as
+++ frameworks/projects/advancedgrids/src/mx/controls/advancedDataGridClasses/AdvancedDataGridListData.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.advancedDataGridClasses
 {