Transferred from the Adobe Open Source Subversion Repository

Revision: 22294
Author:   jszeto@adobe.com
Date:     2011-08-30T21:22:59.162418Z

Log Message:
-----------
SpinnerList bug fixes

SDK-31384 - SpinnerListContainer has a tiny minWidth

Set minWidth to 30

SDK-31382 - SpinnerList should suppress chromeColor and accentColor code hinting since it isn't supported

Added exclude metadata

SDK-31315 - SpinnerList behaviour erratic when selecting items by 'click'

We floor the calculation for the first visible row

SDK-31387 - SpinnerList w/ fixed height doesn't show bottom row

Changed logic in VerticalSpinnerLayout to calculate the max y position using the bottom of the top row, instead of its top.

QE notes: none
Doc notes: none
Bugs: listed above
Reviewer: Tom K, Hans, Eric Day
Tests run: checkintests
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/SpinnerListSkin.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/tests/airMobileBasicTests/src/mobile/scripts/SpinnerListTestScript.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/tests/airMobileBasicTests/src/airMobileBasicTests-config.xml</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/tests/airMobileBasicTests/src/mobile/views/TestSpinnerList.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/SpinnerListContainerSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SpinnerList.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/layouts/VerticalSpinnerLayout.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/SpinnerList.as
+++ frameworks/projects/mobilecomponents/src/spark/components/SpinnerList.as
@@ -33,6 +33,8 @@

 use namespace mx_internal;

+[Exclude(name="accentColor", kind="style")]
+[Exclude(name="chromeColor", kind="style")]
 [Exclude(name="layout", kind="property")]
 [Exclude(name="requireSelection", kind="property")]
 [Exclude(name="changing", kind="event")]
@@ -326,7 +328,7 @@
 	//
 	//--------------------------------------------------------------------------

-    protected function resizeHandler(event:ResizeEvent):void
+    private function resizeHandler(event:ResizeEvent):void
     {
         if ((event.oldWidth != width || event.oldHeight != height) && !scrollToSelection)
         {


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

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

 package spark.accessibility
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 18643
Author:   klin@adobe.com
Date:     2010-11-17T01:43:22.669479Z

Log Message:
-----------
Fixed up GridColumnHeaderGroupLayout, bandaid fix the caret, and some minor DataGrid skin changes.

GridColumnHeaderGroupLayout.as
-Added two Groups used as layers for the renderers and the separators.
-Fixed a leak in the separators. We now keep track of both visible separators and visible header renderers.
-Added updateRendererHeights() to update the renderer heights cache and keep track of the current max renderer height. This method also may invalidate the gchg's size if the max renderer height changes.
-Moved the call to renderer.prepare to allow prepare to be called on the last renderer.

DataGridSkin.mxml
-Moved background color fill underneath the column header group.
-Added minHeight to column header group

GridLayout.as - Add special case when laying out the caret so that the caret overlaps all the separators.

DataGrid.as - Call event.updateAfterEvent() to smooth out resizing columns.

QE notes: No
Doc notes: No
Bugs: SDK-27984, SDK-28057, SDK-28060, SDK-28080, SDK-28462, SDK-28577
Reviewer: Hans, Carol
Tests run: cyclone, checkintests
Is noteworthy for integration: No

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

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

--- frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as
@@ -1619,6 +1619,18 @@
                 gridDimensions.getRowBounds(rowIndex) :
                 gridDimensions.getCellBounds(rowIndex, columnIndex);

+            // TODO (klin): Remove this special case for the caret overlapping separators
+            // when we implement column/row gaps.
+            if (indicatorFactory == grid.caretIndicator && bounds)
+            {
+                // increase width and height by 1 to cover separator.
+                if (isCellSelectionMode() && (columnIndex < grid.columns.length - 1))
+                    bounds.width += 1;
+
+                if ((rowIndex < grid.dataProvider.length - 1) || (visibleRowIndices.length > grid.dataProvider.length))
+                    bounds.height += 1;
+            }
+
             layoutGridElementR(indicator, bounds);
             layer.addElement(indicator);
             indicator.visible = true;


Transferred from the Adobe Open Source Subversion Repository

Revision: 6137
Author:   egeorgie@adobe.com
Date:     2009-04-10T23:58:54.405311Z

Log Message:
-----------
Fix bugs: http://bugs.adobe.com/jira/browse/SDK-20513 distributeHeight() method should be protected or private for VerticalLayout;
http://bugs.adobe.com/jira/browse/SDK-20514 distributeWidth() method should be private or protected for HorizontalLayout;
http://bugs.adobe.com/jira/browse/SDK-20460 typo in Flex 4 language reference for requestedRowCount property of VerticalLayout;
http://bugs.adobe.com/jira/browse/SDK-18713 Layouts are missing enum metadata for alignment

Fix: update the layouts, add initial padding support.

QE Notes: None
Doc Notes: None
Bugs: SDK-20513, SDK-20514, SDK-20460, SDK-18713
Reviewer: Hans
tests: checkintests, mustella (layout, group, datagroup)

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

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

--- frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as
+++ frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as
@@ -75,7 +75,7 @@
      *  actions. For example a 3D layout may set the target's
      *  maintainProjectionCenter property here.

      *
-     *  @default null;
+     *  @default null
      *  @see #updateDisplayList
      *  @see #measure
      *


Transferred from the Adobe Open Source Subversion Repository

Revision: 5190
Author:   hmuller@adobe.com
Date:     2009-03-06T14:55:28.277220Z

Log Message:
-----------
Initial support for mirroring: added mirror and dir properties to IVisualElement, mirroring logic to UIComponent, GraphicElement, UIMovieClip.  Mirroring in mx.core.SpriteVisualElement is just a stub.  Support for the mirror bit and the mirror transform is in mx.core.AdvancedLayoutFeatures.

QE Notes: Mustella tests pass
Doc Notes: None
Bugs:
Reviewer: Ryan

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/core/SpriteVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/baseClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextGraphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/TextView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/baseClasses/TextGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/AdvancedLayoutFeatures.as</path>

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

--- frameworks/projects/spark/src/spark/core/SpriteVisualElement.as
+++ frameworks/projects/spark/src/spark/core/SpriteVisualElement.as
@@ -476,6 +476,38 @@
         super.width = value;
         invalidateParentSizeAndDisplayList();
     }
+
+    //----------------------------------
+    //  mirror
+    //----------------------------------
+
+    private var _mirror:Boolean;
+
+    public function get mirror():Boolean
+    {
+        return _mirror;
+    }
+
+    public function set mirror(value:Boolean):void
+    {
+        if (value == _mirror)
+            return;
+        _mirror = value;
+    }
+
+    //----------------------------------
+    //  dir
+    //----------------------------------
+
+    public function get dir():String
+    {
+        return "ltr"
+    }
+
+    public function set dir(value:String):void
+    {
+    }
+

     //--------------------------------------------------------------------------
     //
@@ -762,4 +794,5 @@
         return height;
     }
 }
-}+}
+


Transferred from the Adobe Open Source Subversion Repository

Revision: 19741
Author:   mhorn@adobe.com
Date:     2011-01-13T15:38:18.894498Z

Log Message:
-----------
Doc notes: asdoc updates

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

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

--- frameworks/projects/spark/src/spark/core/SpriteVisualElement.as
+++ frameworks/projects/spark/src/spark/core/SpriteVisualElement.as
@@ -2981,10 +2981,17 @@
     /**
      *  Transform the element's size.
      *
+     *
This method calculates the bounding box of the graphic element as if the element’s width/height properties were set to the passed in values.
+     *  The method returns the width of the bounding box.

+     *
+     *
In general, this method is not for use by developers. Instead, you should implement or override the methods defined by the ILayoutElement interface.

+     *
      *  @param width The target pre-transform width.
      *
      *  @param height The target pre-transform height.
      *
+     *  @param postLayoutTransform When true, the returned bounding box is around the transformed element in its parent space (the element's transform is applied first).
+     *
      *  @return Returns the transformed width. Transformation is this element's
      *  layout transformation matrix.
      *
@@ -3010,10 +3017,17 @@
     /**
      *  Transform the element's size.
      *
+     *
This method calculates the bounding box of the graphic element as if the element’s width/height properties were set to the passed in values.
+     *  The method returns the height of the bounding box.

+     *
+     *
In general, this method is not for use by developers. Instead, you should implement or override the methods defined by the ILayoutElement interface.

+     *
      *  @param width The target pre-transform width.
      *
      *  @param height The target pre-transform height.
      *
+     *  @param postLayoutTransform When true, the returned bounding box is around the transformed element in its parent space (the element's transform is applied first).
+     *
      *  @return Returns the transformed height. Transformation is this element's
      *  layout transformation matrix.
      *


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

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


Transferred from the Adobe Open Source Subversion Repository

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

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

 package mx.automation.codec
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 16776
Author:   klin@adobe.com
Date:     2010-07-01T17:57:16.317108Z

Log Message:
-----------
The following changes apply to Spark DataGrid only.   Code reviews have been deferred until the implementation is closer to completion.

-update getRowBounds and getColumnBounds to be more efficient.
-getCellBounds returns null when you provide it with indices that are out of bounds. Updated GridLayout to account for the null case.

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

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

--- frameworks/projects/spark/src/spark/components/gridClasses/GridDimensions.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridDimensions.as
@@ -426,12 +426,14 @@
     public function getCellBounds(row:int, col:int):Rectangle
     {
         // TBD: provide optional return value (Rectangle) parameter
-        // TBD: return null if row or col are out of bounds
+        if (row < 0 || row >= rowCount || col < 0 || col >= columnCount)
+            return null;
+
         var x:Number = getCellX(row, col);
         var y:Number = getCellY(row, col);

-        var width:Number = this.getColumnWidth(col);
-        var height:Number = this.getRowHeight(row);
+        var width:Number = getColumnWidth(col);
+        var height:Number = getRowHeight(row);

         return new Rectangle(x, y, width, height);
     }
@@ -512,11 +514,11 @@
         if ((row < 0) || (row >= rowCount))
             return null;  // TBD: return empty Rectangle instead

-        const firstCellR:Rectangle = getCellBounds(row, 0);
-        const lastCellR:Rectangle = getCellBounds(row, columnCount - 1);
-        const rowWidth:Number = lastCellR.x + lastCellR.width - firstCellR.x;
-        const rowHeight:Number = firstCellR.height;
-        return new Rectangle(firstCellR.x, firstCellR.y, rowWidth, rowHeight);
+        const x:Number = getCellX(row, 0);
+        const y:Number = getCellY(row, 0);
+        const rowWidth:Number = getCellX(row, columnCount - 1) + getColumnWidth(columnCount - 1) - x;
+        const rowHeight:Number = getRowHeight(row);
+        return new Rectangle(x, y, rowWidth, rowHeight);
     }

     /**
@@ -528,11 +530,11 @@
         if ((col < 0) || (col >= columnCount))
             return null;  // TBD: return empty Rectangle instead

-        const firstCellR:Rectangle = getCellBounds(0, col);
-        const lastCellR:Rectangle = getCellBounds(rowCount - 1, col);
-        const colWidth:Number = firstCellR.width;
-        const colHeight:Number = lastCellR.y + lastCellR.height - firstCellR.y;
-        return new Rectangle(firstCellR.x, firstCellR.y, colWidth, colHeight);
+        const x:Number = getCellX(0, col);
+        const y:Number = getCellY(0, col);
+        const colWidth:Number = getColumnWidth(col);
+        const colHeight:Number = getCellY(rowCount - 1, col) + getCellHeight(rowCount - 1, col) - y;
+        return new Rectangle(x, y, colWidth, colHeight);
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 6260
Author:   rfrishbe@adobe.com
Date:     2009-04-24T22:08:41.005574Z

Log Message:
-----------
Automation assumed that a component implemented both IUIComponent and IAutomationObject; however, we'd like to automate FlexNativeMenu and FNM doesn't implement IUIComponent.  The properties automation needed from IUIComponent, were enabled, parent, owner, and visible.  We now have properties on IAutomationObject called automationEnabled, automationParent, automationOwner, and automationVisible for this purpose.  Now automation only needs to rely on IAutomationObject.

QE Notes: -
Doc Notes: -
Bugs: SDK-20488
Reviewer: Evtim
tests: checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/automation/IAutomationObject.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework_textLayout/src/mx/core/UITLFTextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FlexNativeMenu.as</path>

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

--- frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as
+++ frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as
@@ -4407,6 +4407,74 @@

         return [];
     }
+
+    //----------------------------------
+    //  automationOwner
+    //----------------------------------
+
+    /**
+     *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 4
+     */
+    public function get automationOwner():DisplayObjectContainer
+    {
+        return owner;
+    }
+
+    //----------------------------------
+    //  automationParent
+    //----------------------------------
+
+    /**
+     *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 4
+     */
+    public function get automationParent():DisplayObjectContainer
+    {
+        return parent;
+    }
+
+    //----------------------------------
+    //  automationEnabled
+    //----------------------------------
+
+    /**
+     *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 4
+     */
+    public function get automationEnabled():Boolean
+    {
+        return enabled;
+    }
+
+    //----------------------------------
+    //  automationVisible
+    //----------------------------------
+
+    /**
+     *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 4
+     */
+    public function get automationVisible():Boolean
+    {
+        return visible;
+    }

     //----------------------------------
     //  showInAutomationHierarchy


Fixing unit test per code review: http://code.google.com/p/gaforflash/source/detail?r=330

--- tests/GAv4/com/google/analytics/campaign/CampaignManagerTest.as
+++ tests/GAv4/com/google/analytics/campaign/CampaignManagerTest.as
@@ -208,17 +208,24 @@

             assertEquals( "utmcn=1", ci1.toURLString() );
             assertEquals( "utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=search%20me", _buffer.utmz.campaignTracking );
+
+        	var ci2:CampaignInfo = _cm_noref.getCampaignInformation( "?gclid=xxx&utm_medium=yyy&utm_source=zzz&utm_campaign=qqq", true );
+
+        	assertEquals( "utmcn=1", ci2.toURLString() );
+            assertEquals( "utmcsr=zzz|utmgclid=xxx|utmccn=qqq|utmcmd=yyy", _buffer.utmz.campaignTracking );
+
+
         }

         //test gclid and manual tagging works properly
         public function testGetCampaignInformation2():void
         {
-            var search1:String = "?gclid=0123456789";
+            var search1:String = "gclid=0123456789";
             var ci1:CampaignInfo = _cm_noref.getCampaignInformation( search1, true );

             assertEquals( "utmgclid=0123456789|utmccn=(not%20set)|utmcmd=(not%20set)", _buffer.utmz.campaignTracking );

-            var search2:String = "?gclid=xxx&utm_medium=yyy";
+            var search2:String = "gclid=xxx&utm_medium=yyy";
             var ci2:CampaignInfo = _cm_noref.getCampaignInformation( search2, true );

             assertEquals( "utmgclid=xxx|utmccn=(not%20set)|utmcmd=yyy", _buffer.utmz.campaignTracking );


Transferred from the Adobe Open Source Subversion Repository

Revision: 12822
Author:   hhillen@paciellogroup.com
Date:     2009-12-11T01:59:23.162545Z

Log Message:
-----------
Changes to improve screen reader compatibility with ComboBoxAccImpl. Created ListAccImpl.
QE notes: none
Doc notes: none
Bugs: n/a
Reviewer: Gordon
Tests run: checkintests
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/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="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ListAccImpl.as</path>

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

--- frameworks/projects/spark/src/spark/accessibility/ComboBoxAccImpl.as
+++ frameworks/projects/spark/src/spark/accessibility/ComboBoxAccImpl.as
@@ -11,7 +11,7 @@

 package spark.accessibility
 {
-
+
 import flash.accessibility.Accessibility;
 import flash.events.Event;
 import flash.events.FocusEvent;
@@ -100,14 +100,14 @@
     {
         super(master);

-		// ComboBox has a TextInput as a skin part,
-		// and we need to listen to some of its events.
-		// It may or may not be present when this constructor is called.
-		// If it comes or goes later, we are notified via
-		// "partAdded" and "partRemoved" events.
-		var textInput:TextInput = ComboBox(master).textInput;
-		if (textInput)
-			textInput.addEventListener(Event.CHANGE, textInputChangeHandler);
+        // ComboBox has a TextInput as a skin part,
+        // and we need to listen to some of its events.
+        // It may or may not be present when this constructor is called.
+        // If it comes or goes later, we are notified via
+        // "partAdded" and "partRemoved" events.
+        var textInput:TextInput = ComboBox(master).textInput;
+        if (textInput)
+            textInput.addEventListener(Event.CHANGE, textInputChangeHandler);
     }

     //--------------------------------------------------------------------------
@@ -126,9 +126,9 @@
      */
     override protected function get eventsToHandle():Array
     {
-		return super.eventsToHandle.concat([ FocusEvent.FOCUS_IN,
-											 SkinPartEvent.PART_ADDED,
-											 SkinPartEvent.PART_REMOVED ]);
+        return super.eventsToHandle.concat([ FocusEvent.FOCUS_IN,
+                                             SkinPartEvent.PART_ADDED,
+                                             SkinPartEvent.PART_REMOVED ]);
     }

     //--------------------------------------------------------------------------
@@ -137,6 +137,143 @@
     //
     //--------------------------------------------------------------------------
     /**
+     *  @private
+     *  Returns the name of the component.
+     *
+     *  @param childID uint.
+     *
+     *  @return Name of the component.
+     *
+     *  @tiptext Returns the name of the component
+     */
+    override public function get_accName(childID:uint):String
+    {
+        if (childID <= 1)
+            return super.get_accName(0);
+        else
+            return super.get_accName(childID - 1);
+    }
+
+
+    /**
+     *  @private
+     *  Gets the role for the component.
+     *
+     *  @param childID children of the component
+     */
+    override public function get_accRole(childID:uint):uint
+    {
+        if (childID == 1)
+            return AccConst.ROLE_SYSTEM_TEXT;
+        else if (childID == 0)
+            return super.get_accRole(0);
+        else
+            return super.get_accRole(childID - 1);
+    }
+
+    /**
+     *  @private
+     *  IAccessible method for returning the state of the ComboBox.
+     *  States are predefined for all the components in MSAA.
+     *  Values are assigned to each state.
+     *
+     *  @param childID uint
+     *
+     *  @return State uint
+     */
+    override public function get_accState(childID:uint):uint
+    {
+        if (childID <= 1)
+            return  super.get_accState(0);
+        else {
+            return super.get_accState(ComboBox(master).isDropDownOpen ? childID -1 : 0);
+        }
+    }
+
+    /**
+     *  @private
+     *  IAccessible method for returning the Default Action.
+     *
+     *  @param childID uint
+     *
+     *  @return DefaultAction String
+     */
+    override public function get_accDefaultAction(childID:uint):String
+    {
+        if (childID <= 1)
+            return null;
+
+        return super.get_accDefaultAction(childID - 1);
+    }
+
+    /**
+     *  @private
+     *  IAccessible method for executing the Default Action.
+     *
+     *  @param childID uint
+     */
+    override public function accDoDefaultAction(childID:uint):void
+    {
+        if (childID > 1)
+            super.accDoDefaultAction(childID -1);
+    }
+
+    /**
+     *  @private
+     *  Method to return an array of childIDs.
+     *
+     *  @return Array
+     */
+    override public function getChildIDArray():Array
+    {
+        var childIDArray:Array = super.getChildIDArray();
+        childIDArray[childIDArray.length] = childIDArray.length;
+        return childIDArray;
+    }
+
+    /**
+     *  @private
+     *  IAccessible method for returning the childFocus of the List.
+     *
+     *  @param childID uint
+     *
+     *  @return focused childID.
+     */
+    override public function get_accFocus():uint
+    {
+        var index:uint = super.get_accFocus();
+        return index > 0 ? index + 1 : 0;
+    }
+
+    /**
+     *  @private
+     *  IAccessible method for returning the bounding box of the ListItem.
+     *
+     *  @param childID uint
+     *
+     *  @return Location Object
+     */
+    override public function accLocation(childID:uint):*
+    {
+        if (childID == 0)
+            return super.accLocation(0);
+        else if (childID == 1)
+            return ComboBox(master).textInput;
+        else
+            return super.accLocation(childID - 1);
+    }
+
+    /**
+     *  @private
+     *  IAccessible method for selecting an item.
+     *
+     *  @param childID uint
+     */
+    override public function accSelect(selFlag:uint, childID:uint):void
+    {
+        if (childID > 1 )
+            super.accSelect(selFlag, childID - 1)
+    }

     /**
      *  @private
@@ -150,7 +287,7 @@
     override public function get_accValue(childID:uint):String
     {
         var comboBox:ComboBox = ComboBox(master);
-        if (childID == 0)
+        if (childID <= 1)
             return comboBox.selectedIndex == -1 ?
                 comboBox.textInput.text :comboBox.selectedItem;
         return null;
@@ -197,68 +334,84 @@
      */
     override protected function eventHandler(event:Event):void
     {
-		var textInput:TextInput;
-
+        var textInput:TextInput;
+        if (event is IndexChangeEvent)
+        {
+            var tweaked_event:Event = event.clone();
+            IndexChangeEvent(tweaked_event).oldIndex += 1;
+            IndexChangeEvent(tweaked_event).newIndex += 1;
+            super.eventHandler(tweaked_event);
+        }
+
         switch (event.type)
         {
-            case "IndexChangeEvent":
-            {
-                var tweaked_event:Event = event.clone();
-                IndexChangeEvent(tweaked_event).oldIndex += 1;
-                IndexChangeEvent(tweaked_event).newIndex += 1;
-                super.eventHandler(tweaked_event);
-                break;
-            }
-
             case "open":
             {
                 Accessibility.sendEvent(master, 0, AccConst.EVENT_OBJECT_STATECHANGE);
                 break;
             }
-
+
             case "focusIn":
             {
                 Accessibility.sendEvent(master, 0, AccConst.EVENT_OBJECT_FOCUS);
                 break;
             }
-
-			case SkinPartEvent.PART_ADDED:
-			{
-				textInput = ComboBox(master).textInput;
-				if (SkinPartEvent(event).instance == textInput)
-				{
-					textInput.addEventListener(Event.CHANGE,
-											   textInputChangeHandler);
-				}
-				break;
-			}
-
-			case SkinPartEvent.PART_REMOVED:
-			{
-				textInput = ComboBox(master).textInput;
-				if (SkinPartEvent(event).instance == textInput)
-				{
-					textInput.removeEventListener(Event.CHANGE,
-												  textInputChangeHandler);
-				}
-				break;
-			}
-
+
+            case "caretChange":
+            {
+                var index:uint = IndexChangeEvent(event).newIndex;
+                var childID:uint = index + 2;
+                if (!ComboBox(master).isDropDownOpen) {
+                    Accessibility.sendEvent(master, 0,
+                        AccConst.EVENT_OBJECT_VALUECHANGE);
+                    Accessibility.sendEvent(master, 1,
+                        AccConst.EVENT_OBJECT_VALUECHANGE);
+
+                }
+                Accessibility.sendEvent(master, childID,
+                    AccConst.EVENT_OBJECT_FOCUS);
+
+                break;
+            }
+
+            case SkinPartEvent.PART_ADDED:
+            {
+                textInput = ComboBox(master).textInput;
+                if (SkinPartEvent(event).instance == textInput)
+                {
+                    textInput.addEventListener(Event.CHANGE,
+                                               textInputChangeHandler);
+                }
+                break;
+            }
+
+            case SkinPartEvent.PART_REMOVED:
+            {
+                textInput = ComboBox(master).textInput;
+                if (SkinPartEvent(event).instance == textInput)
+                {
+                    textInput.removeEventListener(Event.CHANGE,
+                                                  textInputChangeHandler);
+                }
+                break;
+            }
+
             default:
             {
                 super.eventHandler(event);
             }
         }
     }
-
-	/**
-	 *  @private
-	 */
-	private function textInputChangeHandler(event:Event):void
-	{
-		Accessibility.sendEvent(master, 0, AccConst.EVENT_OBJECT_VALUECHANGE);
-	}
+
+    /**
+     *  @private
+     */
+    private function textInputChangeHandler(event:Event):void
+    {
+        Accessibility.sendEvent(master, 0, AccConst.EVENT_OBJECT_VALUECHANGE);
+    }
 }

+
 }


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

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

 package spark.components
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 3935
Author:   hmuller@adobe.com
Date:     2008-10-28T23:06:19.450100Z

Log Message:
-----------
Fix for 17281, 17751, 17765, and PARB changes: ClipContent now defaults to false, defined ScrollUnit enum and changed IViewport ScrollPositionDelta methods to use it.   Added "get" prefix to the ScrollPositionDelta methods.

Changed the default value of the clipContent property in GroupBase
and FxContainer from true to false.

Scroller now sets the clipContent of its viewport to true.

Removed clipContent="false" from spark skins, since false is
now the default.

Removed a clipContent="false" hack from CircularScrollbar test.

Removed calls to updateScrollRect from layout updateDisplayList()
methods, since the scrollRect is no longer contingent on
the value of the contentWidth,Height properties.  To keep
the scrollRect in sync with a component's size, we call
layout.updateScrollRect() in GroupBase::updateDisplayList()
and FxContainer::updateDisplayList().

Revised (simplified) the LayoutBase::updateScrollRect ASDoc.

Provisional change to make the FxContainer clipContent property work
correctly.

LayoutBase method renames per PARB feedback:
verticalScrollPositionDelta() => getVerticalScrollPositionDelta()
horizontalScrollPositionDelta() => getHorizontalScrollPositionDelta()

Defined a new mx.core.ScrollUnit enum per PARB feedback.  The
IViewport getHorizontal,VerticalScrollPositionDelta() methods now take
a ScrollUnit type argument, instead of a (character code) uint.

QE Notes: clipContent and ScrollUnit changes will break tests
Doc Notes: None
Bugs: sdk-17751, sdk-17257, sdk-17765
Reviewer: Ryan

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxScroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxVSliderThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxHScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/core/IViewport.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxToggleButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/LayoutBase.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/core/ScrollUnit.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxCheckBoxSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxVScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/BasicLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxHSliderThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxRadioButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/TextView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxContainer.as</path>

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

--- frameworks/projects/spark/src/spark/components/SkinnableContainer.as
+++ frameworks/projects/spark/src/spark/components/SkinnableContainer.as
@@ -197,7 +197,7 @@
     //  clipContent
     //----------------------------------

-    private var _clipContent:Boolean = true;
+    private var _clipContent:Boolean = false;

     /**
      *  @copy mx.core.IViewport#clipContent
@@ -214,6 +214,8 @@
     {
         _clipContent = value;

+        if (skin)  // TEMPORARY fix for SDK-17751
+            skin.clipContent = value;
         if (contentGroup)
             contentGroup.clipContent = value;
     }
@@ -423,6 +425,7 @@
             }
             if (_layout != null)
                 contentGroup.layout = _layout;
+            skin.clipContent = _clipContent;  // TEMPORARY fix for SDK-17751
             contentGroup.clipContent = _clipContent;

             contentGroup.addEventListener(


StreamBuffer : small optimisation, use local variable

--- src/org/mangui/hls/stream/StreamBuffer.as
+++ src/org/mangui/hls/stream/StreamBuffer.as
@@ -560,7 +560,7 @@
              * this is to ensure that accurate seeking will work appropriately
              */
             CONFIG::LOGGING {
-                Log.debug2("position/duration/total/audio/video/NetStream bufferLength/audioExpected/videoExpected:" + position.toFixed(2) + "/" + duration.toFixed(2) + "/" + _hls.stream.bufferLength.toFixed(2) + "/" + audioBufferLength.toFixed(2) + "/" + videoBufferLength.toFixed(2) + "/" + netStreamBuffer.toFixed(2) + "/" + audioExpected + "/" + videoExpected);
+                Log.debug2("position/duration/total/audio/video/NetStream bufferLength/audioExpected/videoExpected:" + position.toFixed(2) + "/" + duration.toFixed(2) + "/" + bufLen.toFixed(2) + "/" + audioBufferLength.toFixed(2) + "/" + videoBufferLength.toFixed(2) + "/" + netStreamBuffer.toFixed(2) + "/" + audioExpected + "/" + videoExpected);
             }

             var tagDuration : Number = 0;


fix live playback never starting in case live playlist slides before first fragment parsing

--- src/org/mangui/hls/stream/StreamBuffer.as
+++ src/org/mangui/hls/stream/StreamBuffer.as
@@ -451,15 +451,12 @@
                 }
             } else {
                 /* seek position not reached yet.
-                 * check if buffer max position is greater than requested seek position
+                 * check if buffer max absolute position is greater than requested seek position
                  * if it is the case, then we can start injecting tags in NetStream
+                 * max_pos is a relative max, here we need to compare against absolute max position, so
+                 * we need to add _playlistSlidingMain to convert from relative to absolute
                  */
-
-//                CONFIG::LOGGING {
-//                    Log.info("min_audio/max_audio/min_video/max_video:" + min_audio_pos.toFixed(2) + "/" + max_audio_pos.toFixed(2) + "/" + min_video_pos.toFixed(2) + "/" + max_video_pos.toFixed(2));
-//                }
-
-                if (max_pos >= _seekPositionRequested) {
+                if ((max_pos+_playlistSlidingMain) >= _seekPositionRequested) {
                     // inject enough tags to reach seek position
                     duration = _seekPositionRequested + MAX_NETSTREAM_BUFFER_SIZE - min_min_pos;
                 }


Saving VCard should now be possible once the node in the extension is updated.

--- src/org/igniterealtime/xiff/vcard/VCard.as
+++ src/org/igniterealtime/xiff/vcard/VCard.as
@@ -27,6 +27,8 @@
 	import flash.events.*;
 	import flash.utils.ByteArray;
 	import flash.utils.Timer;
+	import flash.xml.XMLDocument;
+	import flash.xml.XMLNode;

 	//import mx.utils.Base64Decoder;
 	import com.hurlant.util.Base64;
@@ -866,9 +868,9 @@
 				{
 					avatarBase64 = Base64.encodeByteArray(avatar);
 				}
-				catch(err:Error)
-				{
-					throw new Error("VCard:saveVCard Error encoding bytes " + err.getStackTrace());
+				catch(error:Error)
+				{
+					throw new Error("VCard:saveVCard Error encoding bytes " + error.getStackTrace());
 				}

 				try
@@ -877,9 +879,9 @@
 					binaryNode.appendChild(avatarBase64);
 					avatarNode.appendChild(binaryNode);
 				}
-				catch(err:Error)
-				{
-					throw new Error("VCard:saveVCard Error converting bytes to string " + err.message);
+				catch(error:Error)
+				{
+					throw new Error("VCard:saveVCard Error converting bytes to string " + error.message);
 				}

 				var typeNode:XML = <TYPE/>;
@@ -888,6 +890,10 @@

 				vcardExtNode.appendChild( avatarNode );
 			}
+
+			var xmlDoc:XMLDocument = new XMLDocument(vcardExtNode.toString());
+			vcardExt.setNode(xmlDoc.firstChild);
+			//vcardExt.node = vcardExtNode;

 			iq.addExtension( vcardExt );
 			connection.send( iq );


support Network-Path Reference URI / Scheme relative URLs related to #252

--- src/org/mangui/hls/playlist/Manifest.as
+++ src/org/mangui/hls/playlist/Manifest.as
@@ -515,8 +515,12 @@
                     // suffix = domain/subdomain:1234/otherstuff
                     _prefix = base.substr(0, base.indexOf("//") + 2);
                     _suffix = base.substr(base.indexOf("//") + 2);
-                    // return http[s]://domain/subdomain:1234/path
-                    return _prefix + _suffix.substr(0, _suffix.indexOf("/")) + path;
+                    if(path.charAt(1) == '/') {
+                            return _prefix + path.substr(2);
+                        } else {
+                            // return http[s]://domain/subdomain:1234/path
+                            return _prefix + _suffix.substr(0, _suffix.indexOf("/")) + path;
+                        }
                 } else {
                     return base.substr(0, base.lastIndexOf('/') + 1) + path;
                 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 8401
Author:   smgilson@adobe.com
Date:     2009-07-06T21:34:44.861518Z

Log Message:
-----------
ASDoc on filters/BevelFilter.as

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/ConvolutionFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/ColorMatrixFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/BlurFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/DisplacementMapFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GradientGlowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/ShaderFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GlowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/DropShadowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GradientBevelFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/BevelFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GradientFilter.as</path>

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

--- frameworks/projects/spark/src/spark/filters/ColorMatrixFilter.as
+++ frameworks/projects/spark/src/spark/filters/ColorMatrixFilter.as
@@ -24,6 +24,17 @@
  *  such as MovieClip, SimpleButton, TextField, and Video objects, as well as to
  *  BitmapData objects.
  *
+ *  @mxml
+ *
The <ColorMatrixFilter> tag inherits all of the tag
+ *  attributes of its superclass and adds the following tag attributes:

+ *
+ *

+ *  <ColorMatrixFilter
+ *    Properties
+ *    matrix="[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]"
+ *  />
+ *

+ *
  *  @see flash.filters.ColorMatrixFilter
  *
  *  @langversion 3.0
@@ -33,89 +44,91 @@
  */
 public class ColorMatrixFilter extends BaseFilter implements IBitmapFilter
 {
-	/**
-	 * Constructor.
-	 *
-	 * @tiptext Initializes a new ColorMatrixFilter instance.
-	 *
-	 * @param matrix An array of 20 items arranged as a 4 x 5 matrix.
-	 *
-	 * @langversion 3.0
- 	 * @playerversion Flash 10
- 	 * @playerversion AIR 1.5
- 	 * @productversion Flex 4
-	 */
-
-	public function ColorMatrixFilter(matrix:Array = null)
-	{
-		super();
-
-		if (matrix != null)
-		{
-			this.matrix = matrix;
-		}
-	}
-
-	//----------------------------------
+    /**
+     * Constructor.
+     *
+     * @tiptext Initializes a new ColorMatrixFilter instance.
+     *
+     * @param matrix An array of 20 items arranged as a 4 x 5 matrix.
+     *
+     * @langversion 3.0
+     * @playerversion Flash 10
+     * @playerversion AIR 1.5
+     * @productversion Flex 4
+     */
+
+    public function ColorMatrixFilter(matrix:Array = null)
+    {
+        super();
+
+        if (matrix != null)
+        {
+            this.matrix = matrix;
+        }
+    }
+
+    //----------------------------------
     //  matrix
     //----------------------------------
-
-	private var _matrix:Array =  [1,0,0,0,0,0,
-								  1,0,0,0,0,0,
-								  1,0,0,0,0,0,
-								  1,0];
-
-	/**
-	 *  A comma delimited list of 20 doubles that comprise a 4x5 matrix applied to the
-	 *  rendered element.  The matrix is in row major order -- that is, the first five
-	 *  elements are multipled by the vector [srcR,srcG,srcB,srcA,1] to determine the
-	 *  output red value, the second five determine the output green value, etc.
-	 *
-	 *  The value must either be an array or comma delimited string of 20 numbers.
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 10
-	 *  @playerversion AIR 1.5
-	 *  @productversion Flex 4
-	 */
-	public function get matrix():Object
-	{
-		return _matrix;
-	}
-
-	public function set matrix(value:Object):void
-	{
-		if (value != _matrix)
-		{
-			if (value is Array)
-			{
-				_matrix = value as Array;
-			}
-			else if (value is String)
-			{
-				_matrix = String(value).split(',');
-			}
-
-			notifyFilterChanged();
-		}
-	}
-
-	/**
-	 * Returns a copy of this filter object.
-	 *
-	 * @return A new ColorMatrixFilter instance with all of the same
-	 * properties as the original one.
-	 *
-	 * @langversion 3.0
-	 * @playerversion Flash 10
-	 * @playerversion AIR 1.5
-	 * @productversion Flex 4
-	 */
-
-	public function clone():BitmapFilter
-	{
-		return new flash.filters.ColorMatrixFilter(_matrix);
-	}
-
+
+    private var _matrix:Array =  [1,0,0,0,0,0,
+                                  1,0,0,0,0,0,
+                                  1,0,0,0,0,0,
+                                  1,0];
+
+    /**
+     *  A comma delimited list of 20 doubles that comprise a 4x5 matrix applied to the
+     *  rendered element.  The matrix is in row major order -- that is, the first five
+     *  elements are multipled by the vector [srcR,srcG,srcB,srcA,1] to determine the
+     *  output red value, the second five determine the output green value, etc.
+     *
+     *
The value must either be an array or comma delimited string of 20 numbers.

+     *
+     *  @default [1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function get matrix():Object
+    {
+        return _matrix;
+    }
+
+    public function set matrix(value:Object):void
+    {
+        if (value != _matrix)
+        {
+            if (value is Array)
+            {
+                _matrix = value as Array;
+            }
+            else if (value is String)
+            {
+                _matrix = String(value).split(',');
+            }
+
+            notifyFilterChanged();
+        }
+    }
+
+    /**
+     * Returns a copy of this filter object.
+     *
+     * @return A new ColorMatrixFilter instance with all of the same
+     * properties as the original one.
+     *
+     * @langversion 3.0
+     * @playerversion Flash 10
+     * @playerversion AIR 1.5
+     * @productversion Flex 4
+     */
+
+    public function clone():BitmapFilter
+    {
+        return new flash.filters.ColorMatrixFilter(_matrix);
+    }
+
 }
 }


Doc changes.

Doc changes.

	* build-aux/wine-ld-library-path.as: here.

--- build-aux/wine-ld-library-path.as
+++ build-aux/wine-ld-library-path.as
@@ -25,14 +25,16 @@
     WINEPREFIX=/SOME/PATH

 Arguments can also be passed via the envvar
-\`WINE_LD_LIBRARY_PATH_ARGS'.
+\`WINE_LD_LIBRARY_PATH_ARGS'.  The DIRs are added to the pseudo
+LD_LIBRARY_PATH that Windows supports.

 Options:
   -h, --help           display this message and exit
   -t, --to=DIR         install the \`wine' directory inside DIR
                        [$where]
-  -w, --wrapper=FILE   use PATH as defined by the libtool wrapper FILE
-                       several invocation accumulate
+  -w, --wrapper=FILE   also add the DIRs required to load the libraries
+                       used by the Libtool wrapper FILE
+                       multiple invocations accumulate
 EOF
     exit 0
 }


better tests for define compiler option

better tests for define compiler option

--- test/source/tests/CompilerOptionsTests.as
+++ test/source/tests/CompilerOptionsTests.as
@@ -88,17 +88,21 @@
 				},
 				{
 					name: "CONFIG::str",
-					value: "test"
+					value: "'test'"
 				},
 				{
 					name: "CONFIG::num",
 					value: 12.3
+				},
+				{
+					name: "CONFIG::expr",
+					value: "2 + 4"
 				}
 			];
 			var args:Object = {};
 			args[CompilerOptions.DEFINE] = value;
 			var result:Array = CompilerOptionsParser.parse(args);
-			Assert.strictEqual(result.length, 3,
+			Assert.strictEqual(result.length, 4,
 				"Incorrect argument count for " + CompilerOptions.DEFINE);
 			Assert.strictEqual(result[0],
 				"--" + CompilerOptions.DEFINE + "+=" + value[0].name + "," + value[0].value,
@@ -109,6 +113,9 @@
 			Assert.strictEqual(result[2],
 				"--" + CompilerOptions.DEFINE + "+=" + value[2].name + "," + value[2].value,
 				"Incorrect argument 2 value for " + CompilerOptions.DEFINE);
+			Assert.strictEqual(result[3],
+				"--" + CompilerOptions.DEFINE + "+=" + value[3].name + ",\"" + value[3].value + "\"",
+				"Incorrect argument 3 value for " + CompilerOptions.DEFINE);
 		}

 		[Test]


qnd: change "allowCookies" to true by default, display cookies alert only if alertForCookies flashvar is set

git-svn-id: 3f608e5a9a704dd448217c0a64c508e7f145cfa1@86106 6b8eccd3-e8c5-4e7d-8186-e12b5326b719

--- kdp3Lib/src/com/kaltura/kdpfl/view/media/KMediaPlayerMediator.as
+++ kdp3Lib/src/com/kaltura/kdpfl/view/media/KMediaPlayerMediator.as
@@ -590,8 +590,14 @@
 					{
 						sendNotification(NotificationType.CHANGE_VOLUME, 0);
 					}
+					//default should allow cookies
+					if (!_flashvars.allowCookies)
+					{
+						_flashvars.allowCookies="true";
+					}
+
 					//check if kdp is allowed to save cookies
-					if (!_flashvars.allowCookies || _flashvars.allowCookies=="true")
+					if (_flashvars.alertForCookies && _flashvars.alertForCookies=="true")
 					{
 						var cookie : SharedObject;
 						try
@@ -609,8 +615,7 @@
 						}
 						else
 						{
-							if (!_flashvars.hideCookiesAlert || _flashvars.hideCookiesAlert=="false")
-								sendNotification(NotificationType.ALERT, {title: MessageStrings.getString('ALLOW_COOKIES_TITLE'), message: MessageStrings.getString('ALLOW_COOKIES'), buttons: [MessageStrings.getString('ALLOW'), MessageStrings.getString('DISALLOW')], callbackFunction: setAllowCookies, props: {buttonSpacing: 5}});
+							sendNotification(NotificationType.ALERT, {title: MessageStrings.getString('ALLOW_COOKIES_TITLE'), message: MessageStrings.getString('ALLOW_COOKIES'), buttons: [MessageStrings.getString('ALLOW'), MessageStrings.getString('DISALLOW')], callbackFunction: setAllowCookies, props: {buttonSpacing: 5}});
 						}
 					}


Transferred from the Adobe Open Source Subversion Repository

Revision: 21594
Author:   deeptika@adobe.com
Date:     2011-07-18T11:39:38.158141Z

Log Message:
-----------
Changing the style setting mechanism in charts (moving to defaults.css) to fix memory leak in charts.
QE notes:
Doc notes:
Bugs: FLEXDMV-2626 (Views with charts not getting GC-ed)
Reviewer:
Tests run: Mustella test suite for charts - cyclone tested by QE
Is noteworthy for integration:

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/charts/charts.css</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/charts/src/mx/charts/chartClasses/CartesianChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/charts/src/mx/charts/chartClasses/ChartBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/charts/src/mx/charts/series/AreaSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/charts/src/mx/charts/BubbleChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/charts/src/mx/charts/chartClasses/PolarChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/charts/src/mx/charts/ColumnChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/charts/charts-4.X.0.css</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/charts/src/mx/charts/GridLines.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/charts/src/mx/charts/series/PieSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/charts/src/mx/charts/series/PlotSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/charts/src/mx/charts/BarChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/charts/src/mx/charts/series/CandlestickSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/charts/src/mx/charts/AreaChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/charts/src/mx/charts/series/HLOCSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/charts/src/mx/charts/AxisRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/charts/src/mx/charts/series/LineSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/charts/src/mx/charts/PieChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/charts/src/mx/charts/series/BubbleSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/charts/src/mx/charts/PlotChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/charts/src/mx/charts/series/ColumnSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/charts/src/mx/charts/CandlestickChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/charts/charts-3.0.0.css</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/charts/src/mx/charts/HLOCChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/charts/src/mx/charts/LineChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/charts/src/mx/charts/series/BarSeries.as</path>

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

--- frameworks/projects/charts/src/mx/charts/series/BubbleSeries.as
+++ frameworks/projects/charts/src/mx/charts/series/BubbleSeries.as
@@ -39,13 +39,14 @@
 import mx.core.IDataRenderer;
 import mx.core.IFactory;
 import mx.core.IFlexDisplayObject;
+import mx.core.IFlexModuleFactory;
 import mx.core.mx_internal;
 import mx.graphics.IFill;
 import mx.graphics.SolidColor;
+import mx.graphics.SolidColorStroke;
 import mx.graphics.Stroke;
 import mx.styles.CSSStyleDeclaration;
 import mx.styles.ISimpleStyleClient;
-import mx.core.IFlexModuleFactory;

 use namespace mx_internal;

@@ -693,16 +694,11 @@
 	{
 		HaloDefaults.init(styleManager);

-		var seriesStyle:CSSStyleDeclaration =
-			HaloDefaults.createSelector("mx.charts.series.BubbleSeries", styleManager);
-
-		seriesStyle.defaultFactory = function():void
-		{
-			this.fill = new SolidColor(0x444444);
-			this.fills = [];
-			this.itemRenderer = new ClassFactory(CircleItemRenderer);
-			this.stroke = new Stroke(0, 1, 0.2);
-		}
+		var bubbleSeriesStyle:CSSStyleDeclaration = styleManager.getStyleDeclaration("mx.charts.series.BubbleSeries");
+		bubbleSeriesStyle.setStyle("itemRenderer", new ClassFactory(mx.charts.renderers.CircleItemRenderer));
+		bubbleSeriesStyle.setStyle("fill", new SolidColor(0x444444));
+		bubbleSeriesStyle.setStyle("fills", []);
+		bubbleSeriesStyle.setStyle("stroke", new SolidColorStroke(0,1,0.2));

 		return true;
 	}


Transferred from the Adobe Open Source Subversion Repository

Revision: 10050
Author:   dloverin@adobe.com
Date:     2009-09-08T14:43:16.690474Z

Log Message:
-----------
Per-Module Style Management: Create a style manager for each application/module.

The singleton StyleManager is still the only style manager that is currently used.

QE notes: None.
Doc notes: None.
Bugs:
Reviewer: Alex
Tests run: checkintests, Managers/StyleManager
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/PreLink.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/Request.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IFlexModuleFactory.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/modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/modules/IModuleInfo.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/FlexModuleFactory.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/modules/ModuleLoader.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/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/modules/ModuleManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/IStyleManager2.as</path>

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

--- frameworks/projects/framework/src/mx/core/IFlexModuleFactory.as
+++ frameworks/projects/framework/src/mx/core/IFlexModuleFactory.as
@@ -45,7 +45,7 @@
      *  Information about preloadedRSLs is stored in a Dictionary. The key is
      *  the RSL's LoaderInfo. The value is the url the RSL was loaded from.
      */
-    function  get preloadedRSLs():Dictionary;
+    function get preloadedRSLs():Dictionary;

     //--------------------------------------------------------------------------
     //
@@ -109,6 +109,18 @@
     function create(... parameters):Object;

     /**
+     *  Get the implementation for an interface.
+     *  Similar to Singleton.getInstance, but per-
+     *  IFlexModuleFactory.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function getImplementation(interfaceName:String):Object;
+
+    /**
      *  Returns a block of key/value pairs
      *  that hold static data known to the module.
      *  This method always succeeds, but can return an empty object.
@@ -134,6 +146,20 @@
      *  @productversion Flex 3
      */
     function info():Object;
+
+    /**
+     *  Register an implementation for an interface.
+     *  Similar to Singleton.registerClass, but per-
+     *  IFlexModuleFactory, and takes an instance not a class.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function registerImplementation(interfaceName:String,
+                                    impl:Object):void;
+
 }

 }


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

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


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

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


Fix test for FLEX-34753

Fix test for FLEX-34753

Signed-off-by: Erik de Bruin <c195b508e6f0c57aeafdb5e96947e2b79e6a4b40@ixsoftware.nl>

--- frameworks/projects/apache/tests/promises/cases/PromisesJIRATests.as
+++ frameworks/projects/apache/tests/promises/cases/PromisesJIRATests.as
@@ -23,8 +23,6 @@
 import flash.events.TimerEvent;
 import flash.net.URLRequest;
 import flash.utils.Timer;
-
-import flashx.textLayout.debug.assert;

 import org.apache.flex.promises.Promise;
 import org.apache.flex.promises.interfaces.IThenable;
@@ -95,7 +93,7 @@
 	//----------------------------------

 	private function verifyGotType_(event:TimerEvent, result:*):void {
-		assertEquals(typeof this.expected_, this.got_);
+		assertEquals(this.expected_, this.got_.toString());
 	}


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

--- frameworks/projects/framework/src/mx/events/ValidationResultEvent.as
+++ frameworks/projects/framework/src/mx/events/ValidationResultEvent.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  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.
+//  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: 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@1265214 13f79535-47bb-0310-9956-ffa450edef68

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


Transferred from the Adobe Open Source Subversion Repository

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

--- frameworks/projects/spark/src/spark/accessibility/ListBaseAccImpl.as
+++ frameworks/projects/spark/src/spark/accessibility/ListBaseAccImpl.as
@@ -17,6 +17,7 @@
 import flash.geom.Point;

 import mx.accessibility.AccImpl;
+import mx.accessibility.AccConst;
 import mx.core.mx_internal;
 import mx.core.UIComponent;
 import spark.components.List;
@@ -41,57 +42,6 @@

     //--------------------------------------------------------------------------
     //
-    //  Class constants
-    //
-    //--------------------------------------------------------------------------
-
-    /**
-     *  @private
-     */
-    private static const ROLE_SYSTEM_LISTITEM:uint = 0x22;
-
-    /**
-     *  @private
-     */
-    private static const STATE_SYSTEM_FOCUSED:uint = 0x00000004;
-
-    /**
-     *  @private
-     */
-    private static const STATE_SYSTEM_INVISIBLE:uint = 0x00008000;
-
-    /**
-     *  @private
-     */
-    private static const STATE_SYSTEM_OFFSCREEN:uint = 0x00010000;
-
-    /**
-     *  @private
-     */
-    private static const STATE_SYSTEM_SELECTABLE:uint = 0x00200000;
-
-    /**
-     *  @private
-     */
-    private static const STATE_SYSTEM_SELECTED:uint = 0x00000002;
-
-    /**
-     *  @private
-     */
-    private static const STATE_SYSTEM_MULTISELECTABLE:uint =  0x01000000;
-
-    /**
-     *  @private
-     */
-    private static const EVENT_OBJECT_FOCUS:uint = 0x8005;
-
-    /**
-     *  @private
-     */
-    private static const EVENT_OBJECT_SELECTION:uint = 0x8006;
-
-    //--------------------------------------------------------------------------
-    //
     //  Class methods
     //
     //--------------------------------------------------------------------------
@@ -152,7 +102,7 @@
     {
         super(master);

-        role = 0x21; // ROLE_SYSTEM_LIST
+        role = AccConst.ROLE_SYSTEM_LIST;
     }

     //--------------------------------------------------------------------------
@@ -207,7 +157,7 @@
      */
     override public function get_accRole(childID:uint):uint
     {
-        return childID == 0 ? role : ROLE_SYSTEM_LISTITEM;
+        return childID == 0 ? role : AccConst.ROLE_SYSTEM_LISTITEM;
     }

     /**
@@ -237,26 +187,26 @@

             if (isInvisible)
             {
-            accState |= (STATE_SYSTEM_OFFSCREEN |
-                                 STATE_SYSTEM_INVISIBLE);
+            accState |= (AccConst.STATE_SYSTEM_OFFSCREEN |
+                                 AccConst.STATE_SYSTEM_INVISIBLE);
             }
             else
             {
                 if (master is List)
-                    accState |= STATE_SYSTEM_SELECTABLE;
+                    accState |= AccConst.STATE_SYSTEM_SELECTABLE;

                 if (ListBase(master).isItemIndexSelected(index))
                 {
-                    accState |= STATE_SYSTEM_SELECTED;
+                    accState |= AccConst.STATE_SYSTEM_SELECTED;
                 }
                 if (index == ListBase(master).caretIndex)
-                    accState |= STATE_SYSTEM_FOCUSED;
+                    accState |= AccConst.STATE_SYSTEM_FOCUSED;
             }
         }
         else
         {
             if (master is List && List(master).allowMultipleSelection)
-                accState |= STATE_SYSTEM_MULTISELECTABLE;
+                accState |= AccConst.STATE_SYSTEM_MULTISELECTABLE;
         }
         return accState;
     }
@@ -435,7 +385,7 @@
                 {
                     childID = index + 1;
                     Accessibility.sendEvent(master, childID,
-                                            EVENT_OBJECT_SELECTION);
+                                            AccConst.EVENT_OBJECT_SELECTION);
                 }
                 break;
             }
@@ -444,7 +394,7 @@
                 index = ListBase(master).caretIndex;
                 childID = index + 1;
                 Accessibility.sendEvent(master, childID,
-                    EVENT_OBJECT_FOCUS);
+                    AccConst.EVENT_OBJECT_FOCUS);
                 break;
             }
         }


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

--- frameworks/projects/framework/src/mx/binding/IBindingClient.as
+++ frameworks/projects/framework/src/mx/binding/IBindingClient.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.binding
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 19363
Author:   mhorn@adobe.com
Date:     2010-12-14T16:57:25.600360Z

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/styles/metadata/BasicInheritingTextStyles.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/graphics/GradientEntry.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.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/spark/src/spark/primitives/Path.as</path>

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

--- frameworks/projects/framework/src/mx/graphics/GradientEntry.as
+++ frameworks/projects/framework/src/mx/graphics/GradientEntry.as
@@ -15,7 +15,7 @@
 import flash.events.Event;
 import flash.events.EventDispatcher;
 import mx.events.PropertyChangeEvent;
-
+
 /**
  *  The GradientEntry class defines the objects
  *  that control a transition as part of a gradient fill.
@@ -46,169 +46,167 @@
  */
 public class GradientEntry extends EventDispatcher
 {
-	include "../core/Version.as";
-
-	//--------------------------------------------------------------------------
-	//
-	//  Constructor
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  Constructor.
-	 *
-	 *  @param color The color for this gradient entry.
-	 *  The default value is 0x000000 (black).
-	 *
-	 *  @param ratio Where in the graphical element the associated color is
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *
+     *  @param color The color for this gradient entry.
+     *  The default value is 0x000000 (black).
+     *
+     *  @param ratio Where in the graphical element the associated color is
      *  sampled at 100%.
-	 *  Flex uniformly spaces any GradientEntries
-	 *  with missing ratio values.
-	 *  The default value is NaN.
-	 *
-	 *  @param alpha The alpha value for this entry in the gradient.
-	 *  This parameter is optional. The default value is 1.0.
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 9
-	 *  @playerversion AIR 1.1
-	 *  @productversion Flex 3
-	 */
-	public function GradientEntry(color:uint = 0x000000,
-								  ratio:Number = NaN,
-								  alpha:Number = 1.0)
-	{
-		super();
-
-		this.color = color;
-		this.ratio = ratio;
-		this.alpha = alpha;
-	}
-
-	//--------------------------------------------------------------------------
-	//
-	//  Properties
-	//
-	//--------------------------------------------------------------------------
-
-	//----------------------------------
-	//  alpha
-	//----------------------------------
-
-	private var _alpha:Number = 1.0;
-
-	[Bindable("propertyChange")]
+     *  Flex uniformly spaces any GradientEntries
+     *  with missing ratio values.
+     *  The default value is NaN.
+     *
+     *  @param alpha The alpha value for this entry in the gradient.
+     *  This parameter is optional. The default value is 1.0.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function GradientEntry(color:uint = 0x000000,
+                                  ratio:Number = NaN,
+                                  alpha:Number = 1.0)
+    {
+        super();
+
+        this.color = color;
+        this.ratio = ratio;
+        this.alpha = alpha;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  alpha
+    //----------------------------------
+
+    private var _alpha:Number = 1.0;
+
+    [Bindable("propertyChange")]
     [Inspectable(category="General", defaultValue="1", minValue="0.0", maxValue="1.0")]

-	/**
-	 *  The transparency of a gradient fill.
-	 *  Possible values are 0.0 (invisible) through 1.0 (opaque).
-	 *
-	 *  @default 1.0
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 9
-	 *  @playerversion AIR 1.1
-	 *  @productversion Flex 3
-	 */
-	public function get alpha():Number
-	{
-		return _alpha;
-	}
-
-	public function set alpha(value:Number):void
-	{
-		var oldValue:Number = _alpha;
-		if (value != oldValue)
-		{
-			_alpha = value;
-			dispatchEntryChangedEvent("alpha", oldValue, value);
-		}
-	}
-
-	//----------------------------------
-	//  color
-	//----------------------------------
-
-	private var _color:uint;
-
-	[Bindable("propertyChange")]
+    /**
+     *  The transparency of a gradient fill.
+     *  Possible values are 0.0 (invisible) through 1.0 (opaque).
+     *
+     *  @default 1.0
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function get alpha():Number
+    {
+        return _alpha;
+    }
+
+    public function set alpha(value:Number):void
+    {
+        var oldValue:Number = _alpha;
+        if (value != oldValue)
+        {
+            _alpha = value;
+            dispatchEntryChangedEvent("alpha", oldValue, value);
+        }
+    }
+
+    //----------------------------------
+    //  color
+    //----------------------------------
+
+    private var _color:uint;
+
+    [Bindable("propertyChange")]
     [Inspectable(category="General", format="Color")]

-	/**
-	 *  The color value for a gradient fill.
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 9
-	 *  @playerversion AIR 1.1
-	 *  @productversion Flex 3
-	 */
-	public function get color():uint
-	{
-		return _color;
-	}
-
-	public function set color(value:uint):void
-	{
-		var oldValue:uint = _color;
-		if (value != oldValue)
-		{
-			_color = value;
-			dispatchEntryChangedEvent("color", oldValue, value);
-		}
-	}
-
-	//----------------------------------
-	//  ratio
-	//----------------------------------
-
-	private var _ratio:Number;
-
-	[Bindable("propertyChange")]
+    /**
+     *  The color value for a gradient fill.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function get color():uint
+    {
+        return _color;
+    }
+
+    public function set color(value:uint):void
+    {
+        var oldValue:uint = _color;
+        if (value != oldValue)
+        {
+            _color = value;
+            dispatchEntryChangedEvent("color", oldValue, value);
+        }
+    }
+
+    //----------------------------------
+    //  ratio
+    //----------------------------------
+
+    private var _ratio:Number;
+
+    [Bindable("propertyChange")]
     [Inspectable(category="General", minValue="0.0", maxValue="1.0")]

-	/**
-	 *  Where in the graphical element, as a percentage from 0.0 to 1.0,
-	 *  Flex samples the associated color at 100%.
-	 *  For example, a ratio of 0.33 means Flex begins the transition
-	 *  to that color 33% of the way through the graphical element.
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 9
-	 *  @playerversion AIR 1.1
-	 *  @productversion Flex 3
-	 */
-	public function get ratio():Number
-	{
-		return _ratio;
-	}
-
-	public function set ratio(value:Number):void
-	{
-		var oldValue:Number = _ratio;
-		if (value != oldValue)
-		{
-			_ratio = value;
-			dispatchEntryChangedEvent("ratio", oldValue, value);
-		}
-	}
-
-	//--------------------------------------------------------------------------
-	//
-	//  Methods
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  @private
-	 */
-	private function dispatchEntryChangedEvent(prop:String,
-											   oldValue:*, value:*):void
-	{
+    /**
+     *  Where in the graphical element, as a percentage from 0.0 to 1.0,
+     *  Flex samples the associated color at 100%.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function get ratio():Number
+    {
+        return _ratio;
+    }
+
+    public function set ratio(value:Number):void
+    {
+        var oldValue:Number = _ratio;
+        if (value != oldValue)
+        {
+            _ratio = value;
+            dispatchEntryChangedEvent("ratio", oldValue, value);
+        }
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    private function dispatchEntryChangedEvent(prop:String,
+                                               oldValue:*, value:*):void
+    {
         if (hasEventListener("propertyChange"))
-		    dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, prop,
-				oldValue, value));
-	}
+            dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, prop,
+                oldValue, value));
+    }
 }

 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 11319
Author:   aharui@adobe.com
Date:     2009-10-30T18:42:01.565515Z

Log Message:
-----------
Allow for resizing of sub-apps after they initialize

QE Notes: Two Mustella Tests need updating:
MP_Controls_Tests2:MP_ComboBox_closeOnMouseDown_untrusted
MP_Controls_Tests2:MP_ComboBox_closeOnMouseDownOutside_untrusted
The new sub-app resize closes the dropdown.  Probably have to wait a bit longer before opening the dropdown
Doc Notes: New API in ISystemManager
Bugs: SDK-23892
Reviewer: Darrell
API Change: yes
Is noteworthy for integration: No
tests: checkintests mustella/MarshallPlan

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/MarshallingSupport.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/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>

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

--- frameworks/projects/framework/src/mx/managers/SystemManager.as
+++ frameworks/projects/framework/src/mx/managers/SystemManager.as
@@ -2818,7 +2818,8 @@
     }

     /**
-     *  Override this function if you want to perform any logic
+     *  listen for creationComplete" on the application
+     *  if you want to perform any logic
      *  when the application has finished initializing itself.
      *
      *  @langversion 3.0
@@ -2827,6 +2828,20 @@
      *  @productversion Flex 3
      */
     private function appCreationCompleteHandler(event:FlexEvent):void
+    {
+        invalidateParentSizeAndDisplayList();
+    }
+
+    /**
+     *  Attempts to notify the parent SWFLoader that the
+     *  Application's size has may have changed
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function invalidateParentSizeAndDisplayList():void
     {
         if (!topLevel && parent)
         {
@@ -2844,7 +2859,7 @@
         }

         // re-dispatch from here so MarshallPlan mixins can see it
-        dispatchEvent(event);
+        dispatchEvent(new Event("invalidateParentSizeAndDisplayList"));
     }

     /**