Transferred from the Adobe Open Source Subversion Repository

Revision: 11995
Author:   doug.lee@ssbbartgroup.com
Date:     2009-11-19T18:50:30.831767Z

Log Message:
-----------
Updated all AccImpls that use MSAA constants (except TextLayout) to
use the new AccConst references instead of hard-coding hex numbers and
local copies of the constants.

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ListAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ColorPickerAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/PanelAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/LabelAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/DataGridAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/SliderAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/TextInputAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/CheckBoxAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ComboBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TabBarAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/accessibility/WindowedApplicationAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/SpinnerAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/TextBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/PanelAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/SliderAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/DropDownListBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/RichEditableTextAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/CheckBoxAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ListBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AlertAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/RadioButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AccordionHeaderAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ButtonBarAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/DateFieldAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/NumericStepperAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/SkinnableTextBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ListBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ComboBoxAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/TitleWindowAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/LinkButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/MenuBarAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/RadioButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ToggleButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TreeAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/accessibility/WindowAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/DateChooserAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/VideoPlayerAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/MenuAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TitleWindowAccImpl.as</path>

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

--- frameworks/projects/mx/src/mx/accessibility/PanelAccImpl.as
+++ frameworks/projects/mx/src/mx/accessibility/PanelAccImpl.as
@@ -12,6 +12,7 @@
 package mx.accessibility
 {

+import mx.accessibility.AccConst;
 import mx.containers.Panel;
 import mx.core.UIComponent;
 import mx.core.mx_internal;
@@ -97,7 +98,7 @@
 	{
 		super(master);

-		role = 0x14; // ROLE_SYSTEM_GROUPING
+		role = AccConst.ROLE_SYSTEM_GROUPING;
 	}

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


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

--- frameworks/projects/rpc/src/mx/rpc/soap/types/RowSetType.as
+++ frameworks/projects/rpc/src/mx/rpc/soap/types/RowSetType.as
@@ -0,0 +1,111 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2006-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.rpc.soap.types
+{
+
+import mx.rpc.soap.SOAPDecoder;
+import mx.rpc.soap.SOAPEncoder;
+import mx.rpc.xml.ContentProxy;
+import mx.rpc.xml.TypeIterator;
+import mx.utils.object_proxy;
+
+use namespace object_proxy;
+
+[ExcludeClass]
+
+/**
+ * Marshalls between the SOAP representation of a ColdFusion Query (aka a
+ * "Query Bean") and ActionScript.
+ * @private
+ */
+public class RowSetType implements ICustomSOAPType
+{
+    public function RowSetType()
+    {
+        super();
+    }
+
+    public function encode(encoder:SOAPEncoder, parent:XML, name:QName, value:*, restriction:XML = null):void
+    {
+        throw new Error("Unsupported operation - RowSet cannot be sent to a server.");
+    }
+
+    // Custom deserialization for rowsets, which look like this:
+    //
+    // <rowSet>
+    //   <fields>
+    //     <field type="xsd:string">Field1</field>
+    //     <field type="xsd:int">Field2</field>
+    //   </fields>
+    //   <data>
+    //    <item>
+    //     <d>a string</d>
+    //     <d>52</d>
+    //    </item>
+    //   </data>
+    // </rowSet>
+    //
+    // (That would decode into an Array with a single object {Field1:"a string", Field2:52})
+    //
+    public function decode(decoder:SOAPDecoder, parent:*, name:*, value:*, restriction:XML = null):void
+    {
+        if (parent is ContentProxy)
+            parent.object_proxy::isSimple = false;
+
+        var rowSetNode:XML = value as XML;
+
+        var returnVal:Array = [];
+        var types:Array = [];
+        var fields:Array = [];
+
+        var fieldNodes:XMLList = rowSetNode.elements()[0].elements();
+        var i:uint;
+
+        // Gather each of the field names and types
+        for each (var field:XML in fieldNodes)
+        {
+            var typeAttr:String = field.attribute("type").toString();
+            var typeQName:QName;
+
+            if (typeAttr != null && typeAttr != "")
+                typeQName = decoder.schemaManager.getQNameForPrefixedName(typeAttr, field);
+
+            if (typeQName == null)
+                typeQName = decoder.schemaManager.schemaDatatypes.stringQName;
+
+            types[i] = typeQName;
+            fields[i] = field.text().toString();
+            i++;
+        }
+
+        var items:XMLList = rowSetNode.elements()[1].elements();
+
+        // Process each Row using field names and types
+        i = 0;
+        for each (var item:XML in items)
+        {
+            var columns:XMLList = item.elements();
+            var row:* = decoder.createContent();
+            var j:uint = 0;
+            for each (var column:XML in columns)
+            {
+                row[fields[j]] = decoder.decode(column, null, types[j] as QName);
+                j++;
+            }
+            returnVal[i] = row;
+            i++;
+        }
+
+        decoder.setValue(parent, name, returnVal);
+    }
+}
+}


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

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


If the original node is still selected in paste, behave as if duplicating. Closes #1034.

--- bin/Data/Scripts/Editor/EditorScene.as
+++ bin/Data/Scripts/Editor/EditorScene.as
@@ -693,8 +693,8 @@
                 newNode = editorScene.CreateChild("", rootElem.GetBool("local") ? LOCAL : REPLICATED);
             else
             {
-                // If we are duplicating, paste into the selected nodes parent
-                if (duplication)
+                // If we are duplicating or have the original node selected, paste into the selected nodes parent
+                if (duplication || editNode is null || editNode.id == rootElem.GetUInt("id"))
                 {
                     if (editNode !is null && editNode.parent !is null)
                         newNode = editNode.parent.CreateChild("", rootElem.GetBool("local") ? LOCAL : REPLICATED);


Transferred from the Adobe Open Source Subversion Repository

Revision: 5797
Author:   jimurphy@adobe.com
Date:     2009-03-31T15:35:34.544076Z

Log Message:
-----------
Merged revisions 3.x 5505,5526-5527,5535,5540,5542,5572,5616-5617,5656-5657,5671,5674,5683,5687-5688,5690,5698,5708-5709,5713-5716,5719-5723,5726,5728-5729,5736,5752,5754,5761,5774,5780,5784 -> trunk

most of these are user submitted patches! very cool.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/VideoDisplay.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/resources/IResourceManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ToggleButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Menu.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/CalendarLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ProgressIndeterminateSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/NavBar.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="D">/flex/sdk/trunk/modules/compiler/FlexCompilerShell-license.txt</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/DividedBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/formatters/DateFormatter.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/controls/SWFLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridColumn.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/validators/PhoneNumberValidator.as</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/3.x/frameworks/projects/framework/src/mx/validators/NumberValidatorDomainType.as" copyfrom-rev="5784" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/validators/NumberValidatorDomainType.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/managers/ToolTipManagerImpl.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/validators/NumberValidator.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/framework/src/mx/validators/CurrencyValidator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Form.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/resources/ResourceManagerImpl.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/events/CalendarLayoutChangeEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/DataGridEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/sliderClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/PopUpMenuButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Text.as</path>

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

--- frameworks/projects/mx/src/mx/controls/listClasses/ListBase.as
+++ frameworks/projects/mx/src/mx/controls/listClasses/ListBase.as
@@ -1332,6 +1332,21 @@
      *  and selectedItems.
      */
     private var lastSelectionData:ListBaseSelectionData;
+
+    /**
+     *  The first proposed selectedItem.  Because the loop where it is used
+     *  can be called several times becaouse of IPEs, we have to store stuff like
+     *  this outside the loop
+     */
+    private var firstSelectedItem:Object;
+
+    /**
+     *  A map of proposed selectedItems to the original order
+     *  they were proposed.  Because the loop where it is used
+     *  can be called several times becaouse of IPEs, we have to store stuff like
+     *  this outside the loop
+     */
+    private var proposedSelectedItemIndexes:Dictionary;

     /**
      *  The renderer that is or was rolled over or under the caret.
@@ -1365,13 +1380,18 @@
      */
     private var lastHighlightItemIndices:Point;

+    /**
+     *  Temporary array to manage order of selectedItems
+     */
+    private var selectionDataArray:Array;
+
     mx_internal var dragScrollingInterval:int = 0;

     /**
      *  @private
      *  An Array of Shapes that are used as clip masks for the list items
      */
-    private var itemMaskFreeList:Array;
+    mx_internal var itemMaskFreeList:Array;

     /**
      *  @private
@@ -3495,6 +3515,54 @@
         }

         commitSelectedItems(items);
+    }
+
+    //----------------------------------
+    //  selectedItemsCompareFunction
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for labelFunction property.
+     */
+    private var _selectedItemsCompareFunction:Function;
+
+    [Bindable("selectedItemsCompareFunctionChanged")]
+    [Inspectable(category="Data")]
+
+    /**
+     *  A function used to compare selectedItems against items in the
+     *  dataProvider.  If there is a match, the item in the dataProvider
+     *  becomes part of the selection.
+   	 *  By default, or if selectedItemsCompareFunction is set to null
+     *  the default comparision function is used which uses
+     *  strict equality (===).  Note that earlier releases of
+     *  Flex used simple equality (==) so there could be behavioral
+     *  differences in certain cases.
+     *  A common compare function might simply compare UIDs of objects
+     *  or test that a particular property matches.
+     *
+     *
The compare function takes a two arguments, the first being the
+     *  object in the dataProvider, the other an object in the list of
+     *  selectedItems, and returns TRUE if the item should be selected.

+     *

+     *  myCompareFunction(itemInDataProvider:Object, itemInSelectedItems):Boolean

+     *
+     *  @default null (which will use strict equality)
+     */
+    public function get selectedItemsCompareFunction():Function
+    {
+        return _selectedItemsCompareFunction;
+    }
+
+    /**
+     *  @private
+     */
+    public function set selectedItemsCompareFunction(value:Function):void
+    {
+        _selectedItemsCompareFunction = value;
+
+        dispatchEvent(new Event("selectedItemsCompareFunctionChanged"));
     }

     //----------------------------------
@@ -6274,7 +6342,7 @@
      *  Creates a clip mask with the specified dimensions.
      */
     mx_internal function createItemMask(x:Number, y:Number,
-                                    width:Number, height:Number):DisplayObject
+                width:Number, height:Number, contentHolder:DisplayObjectContainer = null):DisplayObject
     {
         var mask:Shape;

@@ -6304,7 +6372,11 @@
             g.endFill();

             mask.visible = false;
-            listContent.addChild(mask);
+
+            if (contentHolder)
+                contentHolder.addChild(mask)
+            else
+                listContent.addChild(mask);
         }

         if (mask.x != x)
@@ -7153,6 +7225,16 @@
             e.addResponder(new ItemResponder(selectionDataPendingResultHandler, selectionDataPendingFailureHandler,
                                                     new ListBaseSelectionDataPending(useFind, 0, items, null, 0)));
             return;
+        }
+
+        var n:int = items.length;
+        selectionDataArray = new Array(n);
+        firstSelectedItem = n ? items[0] : null;
+        proposedSelectedItemIndexes = new Dictionary();
+        for (var i:int = 0; i < n; i++)
+        {
+            var uid:String = itemToUID(items[i]);
+            proposedSelectedItemIndexes[uid] = i;
         }

         setSelectionDataLoop(items, 0, useFind);
@@ -7217,24 +7299,25 @@
             }
         }
         else
-        {
+        {
+            var compareFunction:Function = selectedItemsCompareFunction;
+            if (compareFunction == null)
+                compareFunction = strictEqualityCompareFunction;
             while (items.length && !collectionIterator.afterLast)
             {
                 var len:int = items.length;
                 var data:Object = collectionIterator.current;
-                var prevSelectionData:ListBaseSelectionData = null;
                 for (var i:int = 0; i < len; i++)
                 {
-                    if (data == items[i])
+                    item = items[i];
+                    if (compareFunction(data, item))
                     {
                         uid = itemToUID(data);

-                        if (prevSelectionData == null)
-                            insertSelectionDataBefore(uid, new ListBaseSelectionData(data, index, false), firstSelectionData);
-                        else
-                            insertSelectionDataAfter(uid, new ListBaseSelectionData(data, index, false), prevSelectionData);
-
-                        if (i == 0)
+                        selectionDataArray[proposedSelectedItemIndexes[uid]] = new ListBaseSelectionData(data, index, false);
+
+                        items.splice(i, 1);
+                        if (item === firstSelectedItem)
                         {
                             _selectedIndex = index;
                             _selectedItem = data;
@@ -7246,9 +7329,6 @@
                         break;
                     }

-                    uid = itemToUID(items[i]);
-                    if (selectedData[uid] != null)
-                        prevSelectionData = selectedData[uid];
                 }
                 try
                 {
@@ -7258,10 +7338,25 @@
                 catch(e2:ItemPendingError)
                 {
                     e2.addResponder(new ItemResponder(selectionDataPendingResultHandler, selectionDataPendingFailureHandler,
-                                                            new ListBaseSelectionDataPending(false, index, items.slice(i + 1), CursorBookmark.FIRST, index)));
+                                                            new ListBaseSelectionDataPending(false, index, items, CursorBookmark.FIRST, index)));
                     return;
                 }
             }
+
+            len = selectionDataArray.length;
+            if (len)
+            {
+                uid = itemToUID(selectionDataArray[0].data);
+                insertSelectionDataBefore(uid, selectionDataArray[0], firstSelectionData);
+            }
+            for (i = 1; i < len; i++)
+            {
+                uid = itemToUID(selectionDataArray[i].data);
+                insertSelectionDataAfter(uid, selectionDataArray[i], selectionDataArray[i - 1]);
+            }
+            selectionDataArray = null;
+            proposedSelectedItemIndexes = null;
+            firstSelectedItem = null;
         }

         if (initialized)
@@ -8970,7 +9065,7 @@

             default:
             {
-                if (findKey(event.keyCode))
+                if (findKey(event.charCode))
                     event.stopPropagation();
             }
         }
@@ -10432,6 +10527,14 @@

     /**
      *  @private
+     */
+    private function strictEqualityCompareFunction(a:Object, b:Object):Boolean
+    {
+        return a === b;
+    }
+
+    /**
+     *  @private
      *  for automation delegate access
      */
     mx_internal function getListVisibleData():Object


Transferred from the Adobe Open Source Subversion Repository

Revision: 17491
Author:   aharui@adobe.com
Date:     2010-08-26T18:31:34.581497Z

Log Message:
-----------
Handle clipped sub-apps

QE notes: none
Doc notes: New optional parameter to SystemManager.getVisibleApplicationRect
Bugs: SDK-26478
Reviewer: Darrell
Tests run: checkintests mustella/MarshallPlan
Is noteworthy for integration: yes

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/DateField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/VSlider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/treeClasses/TreeItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/dataGridClasses/DataGridItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/listClasses/TileListItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/MenuBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/ISystemManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark_dmv/src/mx/controls/advancedDataGridClasses/FTEAdvancedDataGridItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/PopUpButton.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/systemClasses/MarshallingSupport.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/HSlider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/Menu.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/controls/advancedDataGridClasses/AdvancedDataGridItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/listClasses/ListItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/ColorPicker.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/mx/controls/dataGridClasses/FTEDataGridItemRenderer.as</path>

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

--- frameworks/projects/mx/src/mx/controls/ComboBox.as
+++ frameworks/projects/mx/src/mx/controls/ComboBox.as
@@ -1762,7 +1762,7 @@
         point = localToGlobal(point);

         var sm:ISystemManager = systemManager.topLevelSystemManager;
-        var screen:Rectangle = sm.getVisibleApplicationRect();
+        var screen:Rectangle = sm.getVisibleApplicationRect(null, true);

         //opening the dropdown
         if (show)


Transferred from the Adobe Open Source Subversion Repository

Revision: 12739
Author:   aharui@adobe.com
Date:     2009-12-09T18:57:28.627672Z

Log Message:
-----------
Try to keep focus on the editor or the DG so the player doesn't send focus to the browser

QE Notes: None
Doc Notes: None
Bugs: SDK-24250
Reviewer: Corey
API Change: No
Is noteworthy for integration: No
tests: checkintests mustella/components/DataGrid

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as

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

--- frameworks/projects/mx/src/mx/controls/DataGrid.as
+++ frameworks/projects/mx/src/mx/controls/DataGrid.as
@@ -4451,6 +4451,9 @@
                 if (itemEditorInstance && itemEditorInstance is UIComponent)
                     UIComponent(itemEditorInstance).drawFocus(false);

+                // setfocus back to us so something on stage has focus
+                losingFocus = true;
+                setFocus();
                 // must call removeChild() so FocusManager.lastFocus becomes null
                 actualContentHolder.removeChild(DisplayObject(itemEditorInstance));
                 editedItemRenderer.visible = true;


removed WeaveAPI as a library in EquationColumn compiler because it's unnecessary.

--- WeaveData/src/weave/data/AttributeColumns/EquationColumn.as
+++ WeaveData/src/weave/data/AttributeColumns/EquationColumn.as
@@ -56,7 +56,6 @@

 		public static const compiler:Compiler = new Compiler();
 		compiler.includeLibraries(
-			WeaveAPI,
 			WeaveAPI.CSVParser,
 			WeaveAPI.StatisticsCache,
 			WeaveAPI.AttributeColumnCache,


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

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

 package mx.core
 {


Manifest: Consider milliseconds on PROGRAM-DATE-TIME parsing (close #161)

--- src/org/mangui/hls/playlist/Manifest.as
+++ src/org/mangui/hls/playlist/Manifest.as
@@ -235,8 +235,13 @@
                     var hour : int = parseInt(line.substr(36, 2));
                     var minutes : int = parseInt(line.substr(39, 2));
                     var seconds : int = parseInt(line.substr(42, 2));
+                    var milliseconds : int = 0;
+                    if (line.charAt(44) == ".") {
+                        var ms_size : int = line.indexOf("+") - 45;
+                        milliseconds = parseInt(line.substr(45, ms_size));
+                    }
                     // month should be from 0 (January) to 11 (December).
-                    program_date = new Date(year, (month - 1), day, hour, minutes, seconds).getTime();
+                    program_date = new Date(year, (month - 1), day, hour, minutes, seconds, milliseconds).getTime();
                     program_date_defined = true;
                     tag_list.push(line);
                 } else if (line.indexOf(DISCONTINUITY) == 0) {


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

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

 package mx.controls
 {


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 4307
Author:   dloverin@adobe.com
Date:     2008-12-15T19:58:22.615045Z

Log Message:
-----------
Change use of Application.application to ApplicationGlobals.application.

QE Notes: None
Doc Notes: None
Bugs: N/A
Reviewer: Alex
tests: checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/ResizeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Menu.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Glow.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.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/controls/RadioButtonGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/haloclassic/src/haloclassic/ActivatorSkin.as</path>

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

--- frameworks/projects/mx/src/mx/effects/effectClasses/ResizeInstance.as
+++ frameworks/projects/mx/src/mx/effects/effectClasses/ResizeInstance.as
@@ -14,7 +14,7 @@

 import flash.events.Event;
 import mx.containers.Panel;
-import mx.core.Application;
+import mx.core.ApplicationGlobals;
 import mx.core.Container;
 import mx.core.IUIComponent;
 import mx.core.ScrollPolicy;
@@ -445,7 +445,7 @@
 		// Wait a frame before starting to restore the childrens' visibility.
 		// That way, we have a chance to run a measurement/layout pass with
 		// the final sizes and update the screen.
-		Application.application.callLater(restorePanelChildren);
+		ApplicationGlobals.application.callLater(restorePanelChildren);

 		super.onTweenEnd(value);


Transferred from the Adobe Open Source Subversion Repository

Revision: 4754
Author:   rfrishbe@adobe.com
Date:     2009-01-30T02:06:41.211348Z

Log Message:
-----------
ArrayList/ListCollectionView - remove addAll() and addAllAt() from change yesterday.  Instead I'll check this into the 3.x branch.

QE Notes: None
Doc Notes: None
Bugs: SDK-18536, SDK-18537
Reviewer: None
tests: checkintests

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

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

--- frameworks/projects/framework/src/mx/collections/ListCollectionView.as
+++ frameworks/projects/framework/src/mx/collections/ListCollectionView.as
@@ -499,35 +499,6 @@
                 listIndex = list.getItemIndex(localIndex[index]);
         }
         list.addItemAt(item, listIndex);
-    }
-
-    /**
-     *  Adds a list of items to the current list, placing them at the end of
-     *  the list in the order they are passed.
-     *
-     *  @param IList The list of items to add to the current list
-     */
-    public function addAll(addList:IList):void
-    {
-        addAllAt(addList, length);
-    }
-
-    /**
-     *  Adds a list of items to the current list, placing them at the position
-     *  index passed in to the function.  The items are placed at the index location
-     *  and placed in the order they are recieved.
-     *
-     *  @param IList The list of items to add to the current list
-     *  @param index The location of the current list to place the new items.
-     *  @throws RangeError if index is less than 0 or greater than the length of the list.
-     */
-    public function addAllAt(addList:IList, index:int):void
-    {
-        var length:int = addList.length;
-        for(var i:int=0; i < length; i++)
-        {
-            this.addItemAt(addList.getItemAt(i), i+index);
-        }
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 3057
Author:   jimurphy@adobe.com
Date:     2008-09-02T15:18:38.819662Z

Log Message:
-----------
Merged 3.0.x revisions [2966,2969,2995,3004,3018-3019,3023,3029-3030,3046,3049,3052] -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileListItemRenderer.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/ModalWindowRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Menu.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/dragClasses/DragProxy.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.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/controls/ColorPicker.as</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/InterDragManagerEvent.as" copyfrom-rev="3052" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/InterDragManagerEvent.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/PopUpRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManagerGlobals.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SWFBridgeEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/EventProxy.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/managers/ISystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/flex/tools/dependencychecker/FrameworkSwcDependencyRules.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/sliderClasses/SliderThumb.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/DividedBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/DragManagerImpl.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SizeRequest.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/SWFLoader.as</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/InterManagerRequest.as" copyfrom-rev="3052" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/InterManagerRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/FocusRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/wsdl/WSDL.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/dividedBoxClasses/BoxDivider.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/managers/ToolTipManagerImpl.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SandboxRootDragEvent.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/airframework/src/mx/managers/WindowedSystemManager.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/managers/SystemManager.as</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/SandboxMouseEvent.as" copyfrom-rev="3052" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SandboxMouseEvent.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/managers/SystemManagerProxy.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SandboxRootRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/EventUtil.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SandboxRootMouseEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ScrollControlBase.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/controls/sliderClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SWFBridgeRequest.as</path>

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

--- frameworks/projects/framework/src/mx/managers/dragClasses/DragProxy.as
+++ frameworks/projects/framework/src/mx/managers/dragClasses/DragProxy.as
@@ -31,9 +31,9 @@
 import mx.effects.Zoom;
 import mx.events.DragEvent;
 import mx.events.EffectEvent;
-import mx.events.SandboxRootDragEvent;
-import mx.events.SandboxRootMouseEvent;
-import mx.events.SandboxRootRequest;
+import mx.events.InterDragManagerEvent;
+import mx.events.SandboxMouseEvent;
+import mx.events.InterManagerRequest;
 import mx.managers.CursorManager;
 import mx.managers.DragManager;
 import mx.managers.ISystemManager;
@@ -100,7 +100,7 @@
 		super.initialize();

 		// in case we go offscreen
-		dragInitiator.systemManager.getSandboxRoot().addEventListener(SandboxRootMouseEvent.MOUSE_UP_SOMEWHERE,
+		dragInitiator.systemManager.getSandboxRoot().addEventListener(SandboxMouseEvent.MOUSE_UP_SOMEWHERE,
 													 mouseLeaveHandler);

 		// Make sure someone has focus, otherwise we
@@ -350,12 +350,12 @@
 		else
 		{
 			// wake up all the other DragManagers
-			var me:SandboxRootRequest = new SandboxRootRequest(SandboxRootRequest.INIT_MANAGER_REQUEST);
-			me.name = "mx.managers.IDragManagerImpl";
+			var me:InterManagerRequest = new InterManagerRequest(InterManagerRequest.INIT_MANAGER_REQUEST);
+			me.name = "mx.managers::IDragManager";
 			sandboxRoot.dispatchEvent(me);
 			// bounce this message off the sandbox root and hope
 			// another DragManager picks it up
-			var mde:SandboxRootDragEvent = new SandboxRootDragEvent(SandboxRootDragEvent.DISPATCH_DRAG_EVENT, false, false,
+			var mde:InterDragManagerEvent = new InterDragManagerEvent(InterDragManagerEvent.DISPATCH_DRAG_EVENT, false, false,
 													event.localX,
 													event.localY,
 													event.relatedObject,
@@ -546,7 +546,7 @@
                                keyDownHandler);

 		// in case we go offscreen
-		ed.removeEventListener(SandboxRootMouseEvent.MOUSE_UP_SOMEWHERE,
+		ed.removeEventListener(SandboxMouseEvent.MOUSE_UP_SOMEWHERE,
 							   mouseLeaveHandler);

         ed.removeEventListener(KeyboardEvent.KEY_UP,


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 12339
Author:   clucier@adobe.com
Date:     2009-12-01T22:28:31.107685Z

Log Message:
-----------
Reducing some of the event dispatching noise in the SDK.  Seeing pretty good results in our runtime performance tests and startup times... 5%-15% improvement over all.  This is about all we'll be able to commit to for Flex 4.0.  Added hasEventListener test before dispatching more of our lifecycle events.  Modified compiler binding code-gen to do the same.  Documented all public facing events where applicable to denote that they are no longer capturable by default.

QE notes: No
Doc notes: No
Bugs: SDK-24249
Reviewer: Alex
Tests run: Mustella, Checkin
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/BorderContainerSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.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/framework/src/mx/styles/StyleManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/SolidColorStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/FlexEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/LayoutManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/SolidColor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/ChildManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/GradientEntry.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/states/State.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/BindableSecondPassEvaluator.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/BindableProperty.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>

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

--- frameworks/projects/framework/src/mx/graphics/SolidColor.as
+++ frameworks/projects/framework/src/mx/graphics/SolidColor.as
@@ -177,8 +177,9 @@
 	private function dispatchFillChangedEvent(prop:String, oldValue:*,
 											  value:*):void
 	{
-        dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, prop,
-															oldValue, value));
+        if (hasEventListener("propertyChange"))
+            dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, prop,
+			    oldValue, value));
 	}
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 19763
Author:   rfrishbe@adobe.com
Date:     2011-01-14T02:37:54.388450Z

Log Message:
-----------
Performance fix for DataGroup in a specialized, width-constrained case (i.e.-when using a VerticalLayout and horizontalAlign="justify").

I will be doing some more validation of this fix later in the next day or so to verify this is correct, but I wanted to go ahead and get a performance run with it in first.

QE notes:
Doc notes:
Bugs: SDK-29057
Reviewer: Evtim, Hans
Tests run: checkintests, DataGroup, List, ListDragDrop
Is noteworthy for integration: No

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

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

--- frameworks/projects/spark/src/spark/components/DataGroup.as
+++ frameworks/projects/spark/src/spark/components/DataGroup.as
@@ -13,7 +13,6 @@
 {
 import flash.display.DisplayObject;
 import flash.events.Event;
-import flash.events.IEventDispatcher;
 import flash.geom.PerspectiveProjection;
 import flash.geom.Rectangle;
 import flash.utils.getQualifiedClassName;
@@ -33,6 +32,8 @@

 import spark.components.supportClasses.GroupBase;
 import spark.events.RendererExistenceEvent;
+import spark.layouts.HorizontalAlign;
+import spark.layouts.VerticalLayout;
 import spark.layouts.supportClasses.LayoutBase;

 use namespace mx_internal;  // for mx_internal property contentChangeDelta
@@ -1244,10 +1245,14 @@
                 elt.includeInLayout = false;
                 elt.visible = false;

-                // Reset back to (0,0), otherwise when the element is reused
+                // If the width isn't constrained,
+                // reset the size back to (0,0), otherwise when the element is reused
                 // it will be validated at its last layout size which causes
                 // problems with text reflow.
-                elt.setLayoutBoundsSize(0, 0, false);
+                var widthConstrained:Boolean = ((layout is VerticalLayout) &&
+                    (VerticalLayout(layout).horizontalAlign == HorizontalAlign.JUSTIFY));
+                if (!widthConstrained)
+                    elt.setLayoutBoundsSize(0, 0, false);

                 freeRenderers.push(elt);
             }


add optional uv argument to DiffuseShaderPart.getDiffuseColor()

--- src/aerys/minko/render/shader/part/DiffuseShaderPart.as
+++ src/aerys/minko/render/shader/part/DiffuseShaderPart.as
@@ -20,10 +20,11 @@
 			super(main);
 		}

-		public function getDiffuseColor(killOnAlphaThreshold : Boolean = true) : SFloat
+		public function getDiffuseColor(killOnAlphaThreshold : Boolean = true, uv : SFloat = null) : SFloat
 		{
 			var diffuseColor : SFloat	= null;
-			var uv			 : SFloat	= vertexUV.xy;
+
+            uv ||= vertexUV.xy;

 			if (meshBindings.propertyExists(BasicProperties.UV_SCALE))
 				uv.scaleBy(meshBindings.getParameter(BasicProperties.UV_SCALE, 2));


AbstractDataSource now requests columns immediately instead of waiting one frame.

--- WeaveData/src/weave/data/DataSources/AbstractDataSource.as
+++ WeaveData/src/weave/data/DataSources/AbstractDataSource.as
@@ -171,8 +171,8 @@
 			if (initializationComplete)
 			{
 				_proxyColumns[column] = false; // no longer pending
-				// immediate priority because we want to start the async column tasks as soon as possible.
-				WeaveAPI.StageUtils.callLater(column, requestColumnFromSourceLater, [column], WeaveAPI.TASK_PRIORITY_IMMEDIATE);
+				WeaveAPI.ProgressIndicator.removeTask(column);
+				requestColumnFromSource(column);
 			}
 			else
 			{
@@ -180,14 +180,6 @@
 			}
 		}

-		private function requestColumnFromSourceLater(column:ProxyColumn):void
-		{
-			column.delayCallbacks();
-			requestColumnFromSource(column);
-			WeaveAPI.ProgressIndicator.removeTask(column);
-			column.resumeCallbacks();
-		}
-
 		/**
 		 * This function will call handlePendingColumnRequest() on each pending column request.
 		 */


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

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

 package mx.charts.series.renderData
 {


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

--- frameworks/projects/mx/src/mx/controls/videoClasses/VideoPlayerQueuedCommand.as
+++ frameworks/projects/mx/src/mx/controls/videoClasses/VideoPlayerQueuedCommand.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.controls.videoClasses
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 9922
Author:   clucier@adobe.com
Date:     2009-09-02T14:07:30.149272Z

Log Message:
-----------
Several bug fixes:
- Setting element's designLayer to null now properly updates the visual representation.
- DesignLayers are now considered during InterfaceCompilation.
- XMLBuilder now supports mixed content, as such TLF content can now be imported from fx:XML.

QE notes: None
Doc notes: None
Bugs: SDK-22959, SDK-22961, SDK-22661.
Reviewer: Peter, Paul
Tests run: Full compiler cyclone, select Mustella tests that reference mx:XML, Checkin
Is noteworthy for integration: No.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/XMLBuilder.java</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/modules/compiler/src/java/flex2/compiler/mxml/Grammar.jj</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/modules/compiler/src/java/flex2/compiler/mxml/InterfaceCompiler.java</path>

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

--- frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
+++ frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
@@ -591,14 +591,13 @@
         _designLayer = value;

         if (_designLayer)
-        {
             _designLayer.addEventListener("layerPropertyChange", layer_PropertyChange, false, 0, true);
-            _effectiveAlpha = _alpha * _designLayer.effectiveAlpha;
-            _effectiveVisibility = _visible && _designLayer.effectiveVisibility;
-            alphaChanged = true;
-            visibleChanged = true;
-            invalidateProperties();
-        }
+
+        _effectiveAlpha = _designLayer ? _alpha * _designLayer.effectiveAlpha : _alpha;
+        _effectiveVisibility = _designLayer ? _visible && _designLayer.effectiveVisibility : _visible;
+        alphaChanged = true;
+        visibleChanged = true;
+        invalidateProperties();
     }

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 2711
Author:   jszeto@adobe.com
Date:     2008-08-01T21:28:09.563575Z

Log Message:
-----------
MXMLG-111 - Several shapes dont dispatch updateComplete event

All graphic elements now dispatch an updateComplete event after they have validated.

Bug: MXMLG-111
QA: Yes
Doc: Yes
Review: Evtim

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/TextBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/TextGraphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/StrokedElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/graphicsClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/BitmapGraphic.as</path>

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

--- frameworks/projects/spark/src/spark/primitives/supportClasses/StrokedElement.as
+++ frameworks/projects/spark/src/spark/primitives/supportClasses/StrokedElement.as
@@ -157,8 +157,6 @@
 		beginDraw(g);
 		drawElement(g);
 		endDraw(g);
-
-		applyDisplayObjectProperties();
 	}

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


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/framework/src/mx/core/IDataRenderer.as
+++ frameworks/projects/framework/src/mx/core/IDataRenderer.as
@@ -58,6 +58,11 @@
  *        dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));
  *    }
  *  </pre>
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public interface IDataRenderer
 {
@@ -73,6 +78,11 @@

 	/**
 	 *  The data to render or edit.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	function get data():Object;


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

--- frameworks/projects/framework/src/mx/events/ResizeEvent.as
+++ frameworks/projects/framework/src/mx/events/ResizeEvent.as
@@ -1,13 +1,3 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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.events
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 10315
Author:   smgilson@adobe.com
Date:     2009-09-16T19:10:58.022034Z

Log Message:
-----------
Add ASDoc version tags

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/ContainerBorderSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/BaseFilter.as</path>

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

--- frameworks/projects/framework/src/mx/filters/BaseFilter.as
+++ frameworks/projects/framework/src/mx/filters/BaseFilter.as
@@ -1,22 +1,50 @@
 package mx.filters
 {
-	import flash.events.EventDispatcher;
-	import flash.events.IEventDispatcher;
-	import flash.events.Event;
+    import flash.events.EventDispatcher;
+    import flash.events.IEventDispatcher;
+    import flash.events.Event;

-	public class BaseFilter extends EventDispatcher
-	{
-		public static const CHANGE:String = "change";
-
-		public function BaseFilter(target:IEventDispatcher=null)
-		{
-			super(target);
-		}
-
-		public function notifyFilterChanged():void
-		{
-			dispatchEvent(new Event(CHANGE));
-		}
-
-	}
+   /**
+    *
+    *  @langversion 3.0
+    *  @playerversion Flash 10
+    *  @playerversion AIR 1.5
+    *  @productversion Flex 4
+    */
+    public class BaseFilter extends EventDispatcher
+    {
+       /**
+        *
+        *  @langversion 3.0
+        *  @playerversion Flash 10
+        *  @playerversion AIR 1.5
+        *  @productversion Flex 4
+        */
+        public static const CHANGE:String = "change";
+
+       /**
+        *
+        *  @langversion 3.0
+        *  @playerversion Flash 10
+        *  @playerversion AIR 1.5
+        *  @productversion Flex 4
+        */
+        public function BaseFilter(target:IEventDispatcher=null)
+        {
+            super(target);
+        }
+
+       /**
+        *
+        *  @langversion 3.0
+        *  @playerversion Flash 10
+        *  @playerversion AIR 1.5
+        *  @productversion Flex 4
+        */
+        public function notifyFilterChanged():void
+        {
+            dispatchEvent(new Event(CHANGE));
+        }
+
+    }
 }


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


Transferred from the Adobe Open Source Subversion Repository

Revision: 19501
Author:   hmuller@adobe.com
Date:     2010-12-21T19:23:02.958488Z

Log Message:
-----------
Added GridColumn formatter and dataTipFormatter IFormatter properties.

QE notes: Default behavior is unchanged if formatters aren't specified.
Doc notes:
Bugs: SDK-28616
Reviewer: Kevin
Tests run: checkin, mustella
Is noteworthy for integration: yes

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

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

--- frameworks/projects/spark/src/spark/components/DataGrid.as
+++ frameworks/projects/spark/src/spark/components/DataGrid.as
@@ -1078,7 +1078,6 @@
     }

     // TBD(hmuller): baselinePosition override
-    // TBD(hmuller): methods to enable scrolling

     //----------------------------------
     //  columns (delegates to grid.columns)
@@ -1209,8 +1208,8 @@
     {
         if (setGridProperty("dataTipField", value))
             dispatchChangeEvent("dataTipFieldChanged");
-    }
-
+    }
+
     //----------------------------------
     //  dataTipFunction (delegates to grid.dataTipFunction)
     //----------------------------------


Transferred from the Adobe Open Source Subversion Repository

Revision: 7113
Author:   gosmith@adobe.com
Date:     2009-05-20T05:16:39.956387Z

Log Message:
-----------
Added [RichTextContent] metadata to the 'content' property of RichText, RichEditableText, and TextArea.

This metadata tells the MXML compiler to disable some of its default interpreation of the value specified for the 'content' property. Normally, for properties of type Object, it assumes that things looking like numbers are numbers and things looking like arrays are arrays. But <content>1</content> should generate code to set the content to  the String "1", not the int 1, and <content>[1]</content> hould set it to the String "[1]", not the Array [ 1 ]. However, {...} continues to be interpreted as a databinding expression, and @Resource(...), @Embed(...), etc. as compiler directives.

Similar metadata on the mxmlChildren property in TLF's FlowGroupElement and SpanElement classes causes the same rules to apply within <p>, <span>, etc.

QE Notes: None
Doc Notes: None
Bugs: Part of SDK-17748 and SDK-18877
Reviewer: Peter

Modified Paths:
--------------
<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/components/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichText.as</path>

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

--- frameworks/projects/spark/src/spark/components/RichText.as
+++ frameworks/projects/spark/src/spark/components/RichText.as
@@ -392,6 +392,23 @@
      *  @private
      */
     protected var _content:Object;
+
+    /**
+     *  @private
+     *  This metadata tells the MXML compiler to disable some of its default
+     *  interpreation of the value specified for the 'content' property.
+     *  Normally, for properties of type Object, it assumes that things
+     *  looking like numbers are numbers and things looking like arrays
+     *  are arrays. But <content>1</content> should generate code to set the
+     *  content to  the String "1", not the int 1, and <content>[1]</content>
+     *  should set it to the String "[1]", not the Array [ 1 ].
+     *  However, {...} continues to be interpreted as a databinding
+     *  expression, and @Resource(...), @Embed(...), etc.
+     *  as compiler directives.
+     *  Similar metadata on TLF classes causes the same rules to apply
+     *  within <p>, <span>, etc.
+     */
+    [RichTextContent]

     /**
      *  The text contained in the RichText element.


Transferred from the Adobe Open Source Subversion Repository

Revision: 22203
Author:   eday@adobe.com
Date:     2011-08-25T03:57:05.493052Z

Log Message:
-----------
Change event after a small scroll snap is more responsive

- The snap animation is stopped as soon as the final position is reached.

QE notes:
Doc notes:
Bugs: SDK-30970
Reviewer: Jazon Szeto
Tests run: checkintests, mustella
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/effects/ThrowEffect.as</path>

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

--- frameworks/projects/spark/src/spark/components/Scroller.as
+++ frameworks/projects/spark/src/spark/components/Scroller.as
@@ -1916,6 +1916,18 @@
                         if (canScrollVertically && event.property == VERTICAL_SCROLL_POSITION)
                             currentPageScrollPosition = viewport.verticalScrollPosition;
                     }
+                    else if (throwEffect && throwEffect.isPlaying && throwEffect.isSnapping)
+                    {
+                        // If a throw animation is playing just to snap an element into position,
+                        // then we want to stop the animation as soon as the final position is reached
+                        // to avoid very short snaps taking a relatively long time to complete.
+                        if (Math.abs(viewport.horizontalScrollPosition - throwEffect.finalPosition.x) < 1 &&
+                            Math.abs(viewport.verticalScrollPosition - throwEffect.finalPosition.y) < 1)
+                        {
+                            throwEffect.stop();
+                            snapContentScrollPosition();
+                        }
+                    }
                 }
                 break;
         }


Transferred from the Adobe Open Source Subversion Repository

Revision: 22113
Author:   eday@adobe.com
Date:     2011-08-19T21:50:26.745656Z

Log Message:
-----------
Item snapping bug fixes

Added throwEffect.stop() and snapElementAnimation.stop() in a few places.

QE notes:
Doc notes:
Bugs: SDK-31049, SDK-31236
Reviewer: Jason Szeto
Tests run: checkintests, Cyclone
Is noteworthy for integration: no

Modified Paths:
--------------
/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/Scroller.as

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

--- frameworks/projects/spark/src/spark/components/Scroller.as
+++ frameworks/projects/spark/src/spark/components/Scroller.as
@@ -1421,6 +1421,11 @@
             scrollProperty = HORIZONTAL_SCROLL_POSITION;
         else if (canScrollVertically)
             scrollProperty = VERTICAL_SCROLL_POSITION;
+
+        // If there's an animation playing, we need
+        // to stop it before we snap the element into
+        // position.
+        stopAnimations();

         if (animate)
         {
@@ -1443,6 +1448,18 @@
 			return null;
         }
     }
+
+    /**
+     *  @private
+     */
+    private function stopAnimations():void
+    {
+        if (throwEffect && throwEffect.isPlaying)
+            throwEffect.stop();
+        if (snapElementAnimation && snapElementAnimation.isPlaying)
+            snapElementAnimation.stop();
+    }
+

     //--------------------------------------------------------------------------
     //
@@ -2652,12 +2669,14 @@

         if (pageScrollingChanged)
         {
+            stopAnimations();
             determineCurrentPageScrollPosition();
             pageScrollingChanged = false;
         }

         if (snappingModeChanged)
         {
+            stopAnimations();
             snapContentScrollPosition();
             snappingModeChanged = false;
         }
@@ -3011,6 +3030,12 @@
     private function mouseDownHandler(event:MouseEvent):void
     {
         stopThrowEffectOnMouseDown();
+
+        // If the snap animation is playing, we need to stop it
+        // before watching for a scroll and potentially beginning
+        // a new touch interaction.
+        if (snapElementAnimation && snapElementAnimation.isPlaying)
+            snapElementAnimation.stop();

         captureNextClick = false;


preventing crash by validating session state

Change-Id: I3ce802457a02729672ffe94849e37e895394ceda

--- WeaveUISpark/src/weave/visualization/plotters/AxisLabelPlotter.as
+++ WeaveUISpark/src/weave/visualization/plotters/AxisLabelPlotter.as
@@ -18,12 +18,13 @@
 	import flash.display.BitmapData;
 	import flash.geom.Matrix;
 	import flash.geom.Point;
+	import flash.text.TextFormatAlign;

 	import weave.api.newLinkableChild;
 	import weave.api.primitives.IBounds2D;
 	import weave.api.registerLinkableChild;
+	import weave.api.ui.IPlotter;
 	import weave.api.ui.ISelectableAttributes;
-	import weave.api.ui.IPlotter;
 	import weave.compiler.StandardLib;
 	import weave.core.LinkableBoolean;
 	import weave.core.LinkableFunction;
@@ -73,7 +74,7 @@

 		public const color:LinkableNumber = registerLinkableChild(this, new LinkableNumber(0x000000));
 		public const text:DynamicColumn = newLinkableChild(this, DynamicColumn);
-		public const textFormatAlign:LinkableString = registerLinkableChild(this, new LinkableString(BitmapText.HORIZONTAL_ALIGN_LEFT));
+		public const textFormatAlign:LinkableString = registerLinkableChild(this, new LinkableString(BitmapText.HORIZONTAL_ALIGN_LEFT, verifyTextFormatAlign));
 		public const hAlign:LinkableString = registerLinkableChild(this, new LinkableString(BitmapText.HORIZONTAL_ALIGN_CENTER));
 		public const vAlign:LinkableString = registerLinkableChild(this, new LinkableString(BitmapText.VERTICAL_ALIGN_MIDDLE));
 		public const angle:LinkableNumber = registerLinkableChild(this, new LinkableNumber(0));
@@ -83,7 +84,17 @@
 		public const maxWidth:LinkableNumber = registerLinkableChild(this, new LinkableNumber(80));
 		public const alignToDataMax:LinkableBoolean = registerLinkableChild(this, new LinkableBoolean(false));

-		public const labelFunction:LinkableFunction = registerLinkableChild(this, new LinkableFunction('string', true, false, ['number', 'string', 'column']));
+		public const labelFunction:LinkableFunction = registerLinkableChild(this, new LinkableFunction('string', true, false, ['number', 'string', 'column']));
+
+		private function verifyTextFormatAlign(value:String):Boolean
+		{
+			return [
+				TextFormatAlign.CENTER,
+				TextFormatAlign.JUSTIFY,
+				TextFormatAlign.LEFT,
+				TextFormatAlign.RIGHT
+			].indexOf(value) >= 0;
+		}

 		/**
 		 * Draws the graphics onto BitmapData.


Optimization to recursive calling, sped up display code a lot

--- fp9/src/as3isolib/display/renderers/DefaultSceneLayoutRenderer.as
+++ fp9/src/as3isolib/display/renderers/DefaultSceneLayoutRenderer.as
@@ -104,7 +104,7 @@
 				}
 				dependency[objA] = behind;
 			}
-
+
 			trace("dependency scan time", getTimer() - startTime, "ms");

 			// TODO - set the invalidated children first, then do a rescan to make sure everything else is where it needs to be, too?  probably need to order the invalidated children sets from low to high index
@@ -112,13 +112,12 @@
 			// Set the childrens' depth, using dependency ordering
 			depth = 0;
 			for each(var obj:IsoDisplayObject in children)
-			{
-				place(obj);
-			}
+				if(true !== visited[obj])
+					place(obj);

 			// Clear out temporary dictionary so we're not retaining memory between calls
 			visited = new Dictionary();
-
+
 			// DEBUG OUTPUT

 			//trace("--------------------");
@@ -133,20 +132,23 @@
 		private var visited:Dictionary = new Dictionary();
 		private var scene:IIsoScene;
 		private var dependency:Dictionary;
-
+
 		/**
 		 * Dependency-ordered depth placement of the given objects and its dependencies.
 		 */
 		private function place(obj:IsoDisplayObject):void
 		{
-			if (visited[obj])
-				return;
 			visited[obj] = true;

 			for each(var inner:IsoDisplayObject in dependency[obj])
-				place(inner);
-
-			scene.setChildIndex(obj, depth);
+				if(true !== visited[inner])
+					place(inner);
+
+			if (depth != obj.depth)
+			{
+				scene.setChildIndex(obj, depth);
+				//trace(".");
+			}
 			++depth;
 		};


Refix-FLEX-34088 CalloutWithDropDown FIX 34124 ( RTE when clicking outside of callout)

--- frameworks/projects/spark/src/spark/components/supportClasses/DropDownController.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/DropDownController.as
@@ -608,8 +608,11 @@
                 return;

 			// don't close if something just been selected in a DropDownList
-			if (target is IUIComponent && (target as IUIComponent).document.hostComponent is DropDownList)
-				return;
+			if (target is IUIComponent){
+                   var doc:  Object = (target as IUIComponent).document;
+                   if ( ("hostComponent" in doc ) && doc.hostComponent is DropDownList )
+			                  	return;
+            }

             if (hitAreaAdditions != null)
             {


Created a new function called checkDefaultAudio. This function checks to
see if there are any alternative audio streams that are marked as DEFAULT.
If one is found we automatically switch to that audio stream. This
function is called at the beginning of play2.

Created new private boolean called hasStarted used in play2 to make sure
the default player is only automatically chosen once.

--- HLSPlugin/src/org/osmf/net/httpstreaming/HLSHTTPNetStream.as
+++ HLSPlugin/src/org/osmf/net/httpstreaming/HLSHTTPNetStream.as
@@ -219,6 +219,13 @@
 			 */
 			override public function play2(param:NetStreamPlayOptions):void
 			{
+				//See if any of our alternative audio sources (if we have any) are marked as DEFAULT if this is our initial play
+				if (!hasStarted)
+				{
+					checkDefaultAudio();
+					hasStarted = true;//We have started
+				}
+
 				switch(param.transition)
 				{
 					case NetStreamPlayTransitions.RESET:
@@ -453,6 +460,32 @@
 				}

 				_notifyPlayUnpublishPending = false;
+			}
+
+			/**
+			 * @private
+			 *
+			 * Checks if we have an alternate audio stream marked as default, and changes to that audio stream. If for some reason
+			 * there are multiple audio streams marked as default, only the first one will be chosen.
+			 */
+			private function checkDefaultAudio():void
+			{
+				var currentResource:HLSStreamingResource = _resource as HLSStreamingResource;//Make sure our resource is the right type
+
+				var i:int;
+				for (i=0; i < currentResource.alternativeAudioStreamItems.length; i++)
+				{
+					//Get our the info for our current audio stream item and make sure it is the right type
+					var currentInfo:HLSManifestPlaylist = currentResource.alternativeAudioStreamItems[i].info as HLSManifestPlaylist;
+
+					//We loop through our audio stream items until we find one with the default tag checked
+					if (currentInfo.isDefault)
+					{
+						//If we find one that is marked as default, change the audio source and break
+						changeAudioStreamTo(currentInfo.name);
+						break;
+					}
+				}
 			}

 			/**
@@ -1782,6 +1815,8 @@
 			private var _isPaused:Boolean = false; // true if we're currently paused. see checkIfExtraKickNeeded
 			private var _liveStallStartTime:Date;

+			private var hasStarted:Boolean = false;//Set to true after the first time play2 is called
+
 			private static const HIGH_PRIORITY:int = int.MAX_VALUE;

 			CONFIG::LOGGING


#FEC-681 #comment load entry by redirect ID #time 2h

--- kdp3Lib/src/com/kaltura/kdpfl/controller/media/GetMediaCommand.as
+++ kdp3Lib/src/com/kaltura/kdpfl/controller/media/GetMediaCommand.as
@@ -98,11 +98,6 @@
 		private var _sequenceProxy : SequenceProxy;
 		private var _flashvars : Object;

-		/**
-		 * a flag to distinguish between getting an entry by
-		 * entry id and getting an entry by reference id
-		 */
-		private var _isRefid:Boolean;

 		/**
 		 * when true, command will not be completed until akamai plugin load process is done
@@ -154,17 +149,20 @@
 				{
 					var ind:int =  1;
 					var mr : MultiRequest = new MultiRequest();
-					// get entry by refid / entryid
+
+					// get entry by refid / redirectEntryId / entryId
+					var baseEntryFilter:KalturaBaseEntryFilter = new KalturaBaseEntryFilter();
 					if (refid) {
-						_isRefid = true;
-						var getEntryByRefid:BaseEntryListByReferenceId = new BaseEntryListByReferenceId(refid);
-						mr.addAction(getEntryByRefid);
-					}
-					else {
-						_isRefid = false;
-						var getEntry : BaseEntryGet = new BaseEntryGet( entryId );
-						mr.addAction( getEntry );
-					}
+						baseEntryFilter.referenceIdEqual = refid;
+					} else if ( !_flashvars.disableEntryRedirect || _flashvars.disableEntryRedirect == "false" ) {
+						baseEntryFilter.redirectFromEntryId = entryId;
+					} else {
+						baseEntryFilter.idEqual = entryId;
+					}
+
+
+					var getEntry : BaseEntryList = new BaseEntryList(baseEntryFilter);
+					mr.addAction( getEntry );

 					ind ++;

@@ -182,9 +180,7 @@
 					}

 					var getExtraData : BaseEntryGetContextData = new BaseEntryGetContextData( _mediaProxy.vo.entry.id , keedp );
-					if (_isRefid) {
-						mr.addRequestParam(ind + ":entryId","{1:result:objects:0:id}");
-					}
+					mr.addRequestParam(ind + ":entryId","{1:result:objects:0:id}");
 					mr.addAction(getExtraData);
 					ind ++;

@@ -211,9 +207,8 @@

 						metadataAction = new MetadataList(metadataFilter,metadataPager);

-						if (_isRefid) {
-							mr.addRequestParam(ind + ":filter:objectIdEqual","{1:result:objects:0:id}");
-						}
+						mr.addRequestParam(ind + ":filter:objectIdEqual","{1:result:objects:0:id}");
+
 						mr.addAction(metadataAction);
 						ind ++;
 					}
@@ -226,9 +221,8 @@

 						var cuePointList : CuePointList = new CuePointList( cuePointFilter );

-						if (_isRefid) {
-							mr.addRequestParam(ind + ":filter:entryIdEqual","{1:result:objects:0:id}");
-						}
+						mr.addRequestParam(ind + ":filter:entryIdEqual","{1:result:objects:0:id}");
+
 						mr.addAction( cuePointList );
 						ind ++;
 					}
@@ -272,22 +266,16 @@
 			// save the received value
 			else
 			{
-				if (_isRefid) {
-					// arr[i] is KalturaBaseEntryListResponse, take the first entry in the result array
-					if (arr[i].objects.length) {
-						entry = arr[i].objects[0];
-					}
-					else {
-						KTrace.getInstance().log("Error in Get Entry: No Entry with given ReferenceId");
-						sendNotification( NotificationType.ENTRY_FAILED );
-						sendNotification( NotificationType.ALERT , {message: MessageStrings.getString('SERVICE_GET_ENTRY_ERROR'), title: MessageStrings.getString('SERVICE_ERROR')} );
-					}
+				// arr[i] is KalturaBaseEntryListResponse, take the first entry in the result array
+				if (arr[i].objects.length) {
+					entry = arr[i].objects[0];
 				}
 				else {
-					// the call was BaseEntryGet, use the result as is
-					entry = arr[i];
-				}
-
+					KTrace.getInstance().log("Error in Get Entry: No Entry with given filter");
+					sendNotification( NotificationType.ENTRY_FAILED );
+					sendNotification( NotificationType.ALERT , {message: MessageStrings.getString('SERVICE_GET_ENTRY_ERROR'), title: MessageStrings.getString('SERVICE_ERROR')} );
+				}
+
 				_mediaProxy.vo.entry = entry;

 				if(entry is KalturaLiveStreamEntry || _flashvars.streamerType == StreamerType.LIVE)


preventing refresh in CachedDataSource

preventing refresh in CachedDataSource

--- WeaveData/src/weave/data/DataSources/CachedDataSource.as
+++ WeaveData/src/weave/data/DataSources/CachedDataSource.as
@@ -16,6 +16,7 @@
 package weave.data.DataSources
 {
 	import weave.api.newLinkableChild;
+	import weave.api.core.ICallbackCollection;
 	import weave.core.LinkableString;
 	import weave.core.LinkableVariable;
 	import weave.data.DataSources.AbstractDataSource;
@@ -23,6 +24,10 @@
 	public class CachedDataSource extends AbstractDataSource
 	{
 		public const type:LinkableString = newLinkableChild(this, LinkableString);
-		public const state:LinkableVariable = newLinkableChild(this, LinkableVariable);
+		public const state:LinkableVariable = newLinkableChild(this, LinkableVariable);
+		override public function get hierarchyRefresh():ICallbackCollection
+		{
+			return null;
+		}
 	}
 }


Ensure that all fragment loaders are stopped when the NetStream is closed

--- src/org/mangui/HLS/streaming/HLSNetStream.as
+++ src/org/mangui/HLS/streaming/HLSNetStream.as
@@ -501,7 +501,8 @@
             Log.info("HLSNetStream:close");
             super.close();
             _timer.stop();
+            _fragmentLoader.stop();
             _setState(HLSStates.IDLE);
         };
     }
-}+}


correctly parse NetStream.play / NetStream.play2 start parameter

--- src/org/mangui/HLS/streaming/HLSNetStream.as
+++ src/org/mangui/HLS/streaming/HLSNetStream.as
@@ -286,8 +286,21 @@

     override public function play(...args):void
     {
-      Log.txt("HLSNetStream:play");
-      seek(0);
+      var _playStart:Number;
+      if (args.length >= 2)
+      {
+        _playStart = Number(args[1]);
+      } else {
+            _playStart = 0;
+         }
+      Log.txt("HLSNetStream:play("+_playStart+")");
+      seek(_playStart);
+    }
+
+    override public function play2(param : NetStreamPlayOptions):void
+    {
+      Log.txt("HLSNetStream:play2("+param.start+")");
+      seek(param.start);
     }

     /** Pause playback. **/


HistogramPlotter is now showing partial probe/select bins by default.

--- WeaveUI/src/weave/visualization/plotters/HistogramPlotter.as
+++ WeaveUI/src/weave/visualization/plotters/HistogramPlotter.as
@@ -103,7 +103,7 @@
 		}
 		public const lineStyle:SolidLineStyle = newNonSpatialProperty(SolidLineStyle);
 		public const fillStyle:SolidFillStyle = newNonSpatialProperty(SolidFillStyle);
-		public const drawPartialBins:LinkableBoolean = newNonSpatialProperty(LinkableBoolean);
+		public const drawPartialBins:LinkableBoolean = registerNonSpatialProperty(new LinkableBoolean(true));

 		/**
 		 * This function returns the collective bounds of all the bins.


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

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

 package mx.effects.effectClasses
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 12192
Author:   egeorgie@adobe.com
Date:     2009-11-25T00:55:11.384090Z

Log Message:
-----------
Adding requestedMinRowCount, requestedMinColumnCount to VerticalLayout, HorizontalLayout.

Note that fixing bug http://bugs.adobe.com/jira/browse/SDK-23634 requires an additional change to ListSkin.mxml.

QE notes: Add tests covering these two new properties.
Doc notes: None
Bugs: In preparation for fixing http://bugs.adobe.com/jira/browse/SDK-23634
Reviewer: Hans
Tests run: checkintests + mustella (cyclone + list, horizontalLayout, verticalLayout)
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/supportClasses/LinearLayoutVector.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/VerticalLayout.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/supportClasses/LinearLayoutVector.as
+++ frameworks/projects/spark/src/spark/layouts/supportClasses/LinearLayoutVector.as
@@ -153,12 +153,12 @@
     //  defaultMajorSize
     //----------------------------------

-    private var _defaultMajorSize:Number = 20;
+    private var _defaultMajorSize:Number = 0;

     /**
      *  The size of items whose majorSize was not specified with setMajorSize.
      *
-     *  @default 20
+     *  @default 0
      *  @see #cacheDimensions
      *
      *  @langversion 3.0
@@ -180,19 +180,50 @@
     }

     //----------------------------------
+    //  defaultMinorSize
+    //----------------------------------
+
+    private var _defaultMinorSize:Number = 0;
+
+    /**
+     *  The default minimum value for the minorSize property.
+     *
+     *  @default 0
+     *  @see #cacheDimensions
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function get defaultMinorSize():Number
+    {
+        return _defaultMinorSize;
+    }
+
+    /**
+     * @private
+     */
+    public function set defaultMinorSize(value:Number):void
+    {
+        _defaultMinorSize = value;
+    }
+
+    //----------------------------------
     //  minorSize
     //----------------------------------

     private var _minorSize:Number = 0;

     /**
-     *  The maximum size of items along the axis opposite the majorAxis.
+     *  The maximum size of items along the axis opposite the majorAxis and the defaultMinorSize.
      *
      *  This property is updated by the cacheDimensions() method.
      *
      *  @default 0
      *  @see #cacheDimensions
      *  @see majorAxis
+     *  @see #defaultMinorSize
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -201,7 +232,7 @@
      */
     public function get minorSize():Number
     {
-        return _minorSize;
+        return Math.max(defaultMinorSize, _minorSize);
     }

     /**
@@ -754,14 +785,20 @@
         {
             setMajorSize(index, elt.getLayoutBoundsHeight());
             var w:Number = Math.min(elt.getPreferredBoundsWidth(), elt.getLayoutBoundsWidth());
-            minorSize = Math.max(minorSize, w);
+
+            // Use the _minorSize instead of the getter, since the getter returns maximum
+            // of _minorSize and _defaultMinorSize.
+            _minorSize = Math.max(_minorSize, w);
             minMinorSize = Math.max(minMinorSize, elt.getMinBoundsWidth());
         }
         else
         {
             setMajorSize(index, elt.getLayoutBoundsWidth());
             var h:Number = Math.min(elt.getPreferredBoundsHeight(), elt.getLayoutBoundsHeight());
-            minorSize = Math.max(minorSize, h);
+
+            // Use the _minorSize instead of the getter, since the getter returns maximum
+            // of _minorSize and _defaultMinorSize.
+            _minorSize = Math.max(_minorSize, h);
             minMinorSize = Math.max(minMinorSize, elt.getMinBoundsHeight());
         }
     }


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

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

 package mx.formatters
 {