Transferred from the Adobe Open Source Subversion Repository

Revision: 18411
Author:   doug.lee@ssbbartgroup.com
Date:     2010-11-02T19:14:38.699885Z

Log Message:
-----------
DataGridAccImpl's accDoDefaultAction method now explicitly sets columnHeaderGroup.visibleSortIndicatorIndices.
My previous commit caused DataGrid.sortByColumns() to do this, but
this apparently breaks some intended functionality.  Callers of
sortByColumns(), such as from mxml, are supposed to set
columnHeaderGroup.visibleSortIndicatorIndices themselves after
resorting.  This lets developers choose unusual display configuration,
such as showing (and reporting to assistive technology) that a grid is
sorted by column 1 when it is really sorted by columns 1 through 3
(iTunes apparently does something like this).

A DataGrid.as spello of "@priavte" is also fixed here.

QE notes:
Doc notes:
Bugs:
Reviewer: Kevin / Gordon
Tests run: checkintests
Is noteworthy for integration: no

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

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

--- frameworks/projects/spark/src/spark/components/DataGrid.as
+++ frameworks/projects/spark/src/spark/components/DataGrid.as
@@ -3191,12 +3191,11 @@

         dataProvider.sort = sort;
         dataProvider.refresh();
-        columnHeaderGroup.visibleSortIndicatorIndices = columnIndices;
         return true;
     }

     /**
-     *  @priavte
+     *  @private
      *  This function builds an array of SortFields based on the column
      *  indices given. The direction is based on the current value of
      *  sortDescending from the column.
@@ -3888,7 +3887,9 @@
             return;

         const columnIndices:Vector.<int> = Vector.<int>([column.columnIndex]);
-        sortByColumns(columnIndices);
+
+        if (sortByColumns(columnIndices))
+            columnHeaderGroup.visibleSortIndicatorIndices = columnIndices;
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 5912
Author:   cframpto@adobe.com
Date:     2009-04-03T19:18:48.131864Z

Log Message:
-----------
-Redo clipping.
-Shared display object containers used if text not being clipped and container is BasicLayout
-SimpleText will recycle text lines if the player supports it (>= Argo)
-SimpleText now supports truncation.  -1 means fill box and truncate if overflow.  0 mean no truncation.  >0 is the number of lines to keep before truncating.

There is one issue with textLines being composed with x=0 and textWidth=-number which isn't reflected in the bounding box for either SimpleText or RichText so the text isn't clipped properly.  (kerning=on and trackingLeft=-10 demonstrates this).

QE Notes:
Doc Notes:
Bugs:
Reviewers: will be Gordon

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/TextGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/SimpleText.as</path>

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

--- frameworks/projects/spark/src/spark/components/RichText.as
+++ frameworks/projects/spark/src/spark/components/RichText.as
@@ -613,15 +613,30 @@
 		var bounds:Rectangle = mx_internal::bounds;
         bounds.x = 0;
         bounds.y = 0;
-        bounds.width = width;
+        bounds.width = isNaN(width) ? maxWidth : width;
         bounds.height = height;

         mx_internal::removeTextLines();
+        mx_internal::textLines.length = 0;
+
         createTextLines();
-        mx_internal::addTextLines(DisplayObjectContainer(displayObject));
+
+        // If toFit and explicit width, adjust the bounds to match.
+        // This will save a recompose and/or clip in updateDisplayList() if
+        // the bounds width matches the unscaled width.
+        if (getStyle("lineBreak") == "toFit" && !isNaN(width) &&
+            mx_internal::bounds.width < width)
+        {
+            mx_internal::bounds.width = width;
+        }
+
+        mx_internal::addTextLines(DisplayObjectContainer(drawnDisplayObject));
+
+        // Figure out if the text overruns the available space for composition.
+        mx_internal::isOverset = mx_internal::isTextOverset(width, height);

 		// Just recomposed so reset.
-        mx_internal::stylesChanged = false;
+        mx_internal::invalidateCompose = false;

         // Listen for "damage" events in case the textFlow is
         // modified programatically.
@@ -667,6 +682,9 @@
      */
     override protected function composeOnHeightChange():Boolean
     {
+        if (super.composeOnHeightChange())
+            return true;
+
         var topAligned:Boolean =
             textFlow.hostTextLayoutFormat.verticalAlign == "top";

@@ -680,6 +698,9 @@
      */
     override protected function composeOnWidthChange():Boolean
     {
+        if (super.composeOnWidthChange())
+            return true;
+
         var direction:String = textFlow.hostTextLayoutFormat.direction;
         var textAlign:String = textFlow.hostTextLayoutFormat.textAlign;
         var leftAligned:Boolean =
@@ -710,8 +731,8 @@
         // Invalidate text.
         textInvalid = true;

-        // Invalidate styles.
-        mx_internal::stylesChanged = true;
+        // Force recompose since text and/or styles may have changed.
+        mx_internal::invalidateCompose = true;

         // This is smart enough not to remeasure if the explicit width/height
         // were specified.


Transferred from the Adobe Open Source Subversion Repository

Revision: 13101
Author:   hmuller@adobe.com
Date:     2009-12-18T03:52:12.765310Z

Log Message:
-----------
I've made Scroller hasFocusableChildren=true and focusEnabled=false by
default.  The skins that include a Scroller: ComboBoxSkin,
DropDownListSkin, ListSkin, TextAreaSkin,  now set
hasFocusableChildren=false.  Most of them used to specify
focusEnabled=false which is no longer necessary.

QE notes:
Doc notes:
Bugs: sdk-24693
Reviewer: Evtim
Tests run:
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ComboBoxSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/DropDownListSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ListSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/TextAreaSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Scroller.as</path>

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

--- frameworks/projects/spark/src/spark/components/Scroller.as
+++ frameworks/projects/spark/src/spark/components/Scroller.as
@@ -370,6 +370,8 @@
     public function Scroller()
     {
         super();
+        hasFocusableChildren = true;
+        focusEnabled = false;
     }

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 11521
Author:   smgilson@adobe.com
Date:     2009-11-06T19:47:48.095501Z

Log Message:
-----------
ASDoc fixes for bugs FLEXDOCS-1102, FLEXDOCS-1103

QE notes: -
Doc notes: -
Bugs: - FLEXDOCS-1102, FLEXDOCS-1103
Reviewer: -
Tests run: - checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ViewStack.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Accordion.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/TabNavigator.as</path>

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

--- frameworks/projects/spark/src/spark/components/TextArea.as
+++ frameworks/projects/spark/src/spark/components/TextArea.as
@@ -129,7 +129,7 @@
  *        differently than the MX version.
  *        To learn how to use the
  *        embedAsCFF attribute when you embed a font,
- *    see the topic "Using embedded fonts" in Using Flex SDK.

+ *    see the topic "Using embedded fonts" in Using Flex.

  *

  *
  *
The Spark TextArea control uses the TLF object-oriented model of rich text,


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

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

 package mx.charts.chartClasses
 {


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 3257
Author:   jimurphy@adobe.com
Date:     2008-09-18T18:16:26.838722Z

Log Message:
-----------
-Merged 3.0.X revisions 3232,3236,3238,3244 -> trunk
-integrated:
 Player build d604
 flex-messaging-common.jar 4.0.0.3256

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileListItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/lib/flex-messaging-common.jar</path>
<path kind="file" action="M">/flex/sdk/trunk/in/player/10/win/Install Flash Player 10 Plugin.exe</path>
<path kind="file" action="M">/flex/sdk/trunk/in/player/10/mac/Install Flash Player 10 UB.dmg</path>
<path kind="file" action="M">/flex/sdk/trunk/in/player/10/win/Install Flash Player 10 ActiveX.exe</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/PopUpButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Menu.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/libs/player/10/playerglobal.swc</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/defaults-2.0.0.css</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/defaults-2.0.1.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/in/player/10/lnx/flashplayer.tar.gz</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ColorPicker.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/in/player/10/lnx/install_flash_player_10_linux.tar.gz</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/FlexModuleFactory.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/treeClasses/TreeItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/in/player/10/lnx/libflashplayer.so.tar.gz</path>
<path kind="file" action="M">/flex/sdk/trunk/in/player/10/win/FlashPlayer.exe</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/in/player/10/mac/Flash Player.app.zip</path>

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

--- frameworks/projects/mx/src/mx/controls/treeClasses/TreeItemRenderer.as
+++ frameworks/projects/mx/src/mx/controls/treeClasses/TreeItemRenderer.as
@@ -35,8 +35,10 @@
 import mx.core.UITextField;
 import mx.core.mx_internal;
 import mx.events.FlexEvent;
+import mx.events.InterManagerRequest;
 import mx.events.ToolTipEvent;
 import mx.events.TreeEvent;
+import mx.managers.ISystemManager;

 use namespace mx_internal;

@@ -542,16 +544,32 @@
 		var toolTip:IToolTip = event.toolTip;

 		// Calculate global position of label.
+        var sm:ISystemManager = systemManager.topLevelSystemManager;
+        var sbRoot:DisplayObject = sm.getSandboxRoot();
+        var screen:Rectangle;
 		var pt:Point = new Point(0, 0);
 		pt = label.localToGlobal(pt);
-		pt = toolTip.parent.globalToLocal(pt);
+		pt = sbRoot.globalToLocal(pt);

 		toolTip.move(pt.x, pt.y + (height - toolTip.height) / 2);
-
-		var screen:Rectangle = systemManager.screen;
+
+        if (sm != sbRoot)
+        {
+            var request:InterManagerRequest = new InterManagerRequest(InterManagerRequest.SYSTEM_MANAGER_REQUEST,
+                                    false, false,
+                                    "getVisibleApplicationRect");
+            sbRoot.dispatchEvent(request);
+            screen = Rectangle(request.value);
+        }
+        else
+            screen = sm.getVisibleApplicationRect();
+
 		var screenRight:Number = screen.x + screen.width;
-		if (toolTip.x + toolTip.width > screenRight)
-			toolTip.move(screenRight - toolTip.width, toolTip.y);
+        pt.x = toolTip.x;
+        pt.y = toolTip.y;
+        pt = sbRoot.localToGlobal(pt);
+        if (pt.x + toolTip.width > screenRight)
+            toolTip.move(toolTip.x - (pt.x + toolTip.width - screenRight), toolTip.y);
 	}

 	/**


Fix for floating point errors showing up in NumericStepper. The errors stemmed from adding/subtracting the offset (the minimum value) from the value that's being validated. We avoided float errors in the rounding by scaling, but didn't account for errors when adjusting by the offset. Now, we scale the offset as well to remove these errors.  Shouldn't round the offset value if the interval is an integer. Only round when we are  scaling the values to remove the unneeded precision. [SDK-31416][SDK-31417]

git-svn-id: 7d913817b0a978d84de757191e4bce372605a781@1403836 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/components/supportClasses/Range.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/Range.as
@@ -451,8 +451,7 @@

         var maxValue:Number = maximum - minimum;
         var scale:Number = 1;
-
-        value -= minimum;
+        var offset:Number = minimum; // the offset from 0.

         // If interval isn't an integer, there's a possibility that the floating point
         // approximation of value or value/interval will be slightly larger or smaller
@@ -463,20 +462,26 @@
         // we scale by the implicit precision of the interval and then round.  For
         // example if interval=0.01, then we scale by 100.

-        if (interval != Math.round(interval))
-        {
+        if (interval != Math.round(interval))
+        {
+            // calculate scale and compute new scaled values.
             const parts:Array = (new String(1 + interval)).split(".");
             scale = Math.pow(10, parts[1].length);
             maxValue *= scale;
-            value = Math.round(value * scale);
+            offset *= scale;
             interval = Math.round(interval * scale);
-        }
-
+            value = Math.round((value * scale) - offset);
+        }
+        else
+        {
+            value -= offset;
+        }
+
         var lower:Number = Math.max(0, Math.floor(value / interval) * interval);
         var upper:Number = Math.min(maxValue, Math.floor((value + interval) / interval) * interval);
         var validValue:Number = ((value - lower) >= ((upper - lower) / 2)) ? upper : lower;

-        return (validValue / scale) + minimum;
+        return (validValue + offset) / scale;
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 4368
Author:   gruehle@adobe.com
Date:     2008-12-20T00:18:43.962886Z

Log Message:
-----------
Style name change: contentColor --> contentBackgroundColor.

QE Notes: Tests using contentColor need to be updated
Doc Notes: None
Bugs: ---
Reviewer: ---

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/styles/metadata/SparkColorStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxTextInputSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxDefaultItemRenderer.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/ItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/SparkSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxListSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxTextAreaSkin.mxml</path>

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

--- frameworks/projects/spark/src/spark/skins/spark/DefaultItemRenderer.as
+++ frameworks/projects/spark/src/spark/skins/spark/DefaultItemRenderer.as
@@ -21,7 +21,7 @@

 	<Rect left="0" right="0" top="0" bottom="0">
 		<fill>
-			<SolidColor color="{contentColor}" />
+			<SolidColor color="{contentBackgroundColor}" />
 		</fill>
 		<fill.hovered>
 		    <SolidColor color="{rollOverColor}" />


calling handler asynchronously when result is already cached

--- WeaveData/src/weave/services/JsonCache.as
+++ WeaveData/src/weave/services/JsonCache.as
@@ -167,10 +167,16 @@
 		}
 		else
 		{
-			if (success && resultHandler is Function)
-				resultHandler(result);
-			if (!success && faultHandler is Function)
-				faultHandler(result);
+			WeaveAPI.ProgressIndicator.addTask(doLater, owner, "Retrieving JSON data from cache");
+			function doLater():void
+			{
+				WeaveAPI.ProgressIndicator.removeTask(doLater);
+				if (success && resultHandler is Function)
+					resultHandler(result);
+				if (!success && faultHandler is Function)
+					faultHandler(result);
+			}
+			WeaveAPI.StageUtils.callLater(owner, doLater);
 		}
 	}


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

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

 package mx.graphics.shaderClasses
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 14743
Author:   chaase@adobe.com
Date:     2010-03-12T23:30:57.186697Z

Log Message:
-----------
QE notes: spark/effects/Resize/Controls/Resize_Controls_Button_FromTo needs to be fixed to reflect the new behavior; effects that set playheadTime >= the effect duration no longer automatically dispatch an effectEnd event. Also, basictests EasingTests was updated to reflect new (correct) behavior.
Doc notes: none
Bugs: sdk-25352, sdk-25270, sdk-25269
Reviewer: Jason (+Ely for sdk-25352's AnimateTransformInstance)
Tests run: checkintests, Mustella mx/effects/Parallel|Sequence, spark/effects
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/animation/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/CompositeEffectInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/basicTests/spark/scripts/EasingTestScript.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/AddActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/SequenceInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransformInstance.as</path>

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

--- frameworks/projects/spark/src/spark/effects/supportClasses/AddActionInstance.as
+++ frameworks/projects/spark/src/spark/effects/supportClasses/AddActionInstance.as
@@ -121,12 +121,20 @@
        return child.parent;
     }

+    private function getNumElements(container:*):int
+    {
+        if (container is IVisualElementContainer)
+            return IVisualElementContainer(container).numElements;
+        else
+            return container.numChildren;
+    }
+
     private function addChild(container:*, child:*):void
     {
         if (container is IVisualElementContainer)
-           IVisualElementContainer(container).addElement(child);
-        else
-           container.addChild(child);
+            IVisualElementContainer(container).addElement(child);
+        else
+            container.addChild(child);
     }

     private function removeChild(container:*, child:*):void
@@ -185,7 +193,7 @@
                             addChild(relativeTo, target);
                         else
                             addChildAt(relativeTo, target,
-                                                Math.min(index, relativeTo.numChildren));
+                                Math.min(index, getNumElements(relativeTo)));
                         break;
                     }


This closes #20

This closes #20

--- frameworks/projects/airspark/src/spark/components/Window.as
+++ frameworks/projects/airspark/src/spark/components/Window.as
@@ -749,7 +749,7 @@
      */
     override public function get maxHeight():Number
     {
-        if (nativeWindow && !maxHeightChanged)
+        if (nativeWindow && nativeWindow.maxSize && !maxHeightChanged)
             return nativeWindow.maxSize.y - chromeHeight();
         else
             return _maxHeight;
@@ -797,7 +797,7 @@
      */
     override public function get maxWidth():Number
     {
-        if (nativeWindow && !maxWidthChanged)
+        if (nativeWindow && nativeWindow.maxSize && !maxWidthChanged)
             return nativeWindow.maxSize.x - chromeWidth();
         else
             return _maxWidth;
@@ -851,7 +851,7 @@
      */
     override public function get minHeight():Number
     {
-        if (nativeWindow && !minHeightChanged)
+        if (nativeWindow && nativeWindow.minSize && !minHeightChanged)
             return nativeWindow.minSize.y - chromeHeight();
         else
             return _minHeight;
@@ -899,7 +899,7 @@
      */
     override public function get minWidth():Number
     {
-        if (nativeWindow && !minWidthChanged)
+        if (nativeWindow && nativeWindow.minSize && !minWidthChanged)
             return nativeWindow.minSize.x - chromeWidth();
         else
             return _minWidth;


Transferred from the Adobe Open Source Subversion Repository

Revision: 13965
Author:   build@adobe.com
Date:     2010-02-03T20:37:12.428300Z

Log Message:
-----------
Version update to 4.5.0

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

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

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


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

--- frameworks/projects/spark/src/spark/components/ButtonBar.as
+++ frameworks/projects/spark/src/spark/components/ButtonBar.as
@@ -9,7 +9,7 @@
 //
 ////////////////////////////////////////////////////////////////////////////////

-package mx.components
+package spark.components
 {
 import flash.events.Event;
 import flash.events.EventPhase;
@@ -20,29 +20,29 @@
 import flash.ui.Keyboard;

 import mx.collections.IList;
-import mx.components.baseClasses.FxListBase;
+import spark.components.supportClasses.ListBase;
 import mx.core.EventPriority;
 import mx.core.IFactory;
 import mx.core.IVisualElement;
 import mx.core.mx_internal;
 import mx.events.CollectionEvent;
 import mx.events.CollectionEventKind;
-import mx.events.RendererExistenceEvent;
+import spark.events.RendererExistenceEvent;
 import mx.managers.IFocusManagerComponent;

-[IconFile("FxButtonBar.png")]
+[IconFile("ButtonBar.png")]

 /**
- *  The FxButtonBar control displays a set of Buttons
+ *  The ButtonBar control displays a set of Buttons
  *
- *  @includeExample examples/FxButtonBarExample.mxml
+ *  @includeExample examples/ButtonBarExample.mxml
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
  *  @productversion Flex 4
  */
-public class FxButtonBar extends FxListBase implements IFocusManagerComponent
+public class ButtonBar extends ListBase implements IFocusManagerComponent
 {
     include "../core/Version.as";

@@ -66,7 +66,7 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    public function FxButtonBar()
+    public function ButtonBar()
     {
         super();
         itemRendererFunction = defaultButtonBarItemRendererFunction;


Transferred from the Adobe Open Source Subversion Repository

Revision: 7698
Author:   rfrishbe@adobe.com
Date:     2009-06-10T00:45:40.524592Z

Log Message:
-----------
When itemRendererFunction() returns null for a DataGroup, we should try to use that item directly, rather than falling through to the item renderer.

Also cleaning up some "==" for "===" cases, especially when we deal with data.

QE Notes: Add some tests for things that "==" will fail on, like 0 vs. false in the dataset.
Doc Notes: -
Bugs: SDK-21104
Reviewer: Deepa
tests: checkintest, mustella datagroup, list, buttonbar, and dropdownlist (DropDownList ones fail due to Mac vs. Windows)

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

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

--- frameworks/projects/spark/src/spark/components/DataGroup.as
+++ frameworks/projects/spark/src/spark/components/DataGroup.as
@@ -211,7 +211,7 @@
      */
     public function set typicalItem(value:Object):void
     {
-        if (_typicalItem == value)
+        if (_typicalItem === value)
             return;
         _typicalItem = explicitTypicalItem = value;
         typicalItemChanged = true;
@@ -227,7 +227,7 @@

     private function initializeTypicalItem():void
     {
-        if (_typicalItem == null)
+        if (_typicalItem === null)
         {
             setTypicalLayoutElement(null);
             return;
@@ -619,8 +619,12 @@
         {
             var rendererFactory:IFactory = itemRendererFunction(item);

+            // if the function returned a factory, use that.
+            // otherwise, if it returned null, try using the item directly
             if (rendererFactory)
                 myItemRenderer = rendererFactory.newInstance();
+            else if (item is IVisualElement && item is DisplayObject)
+                myItemRenderer = IVisualElement(item);
         }

         // 2. if itemRenderer is defined, instantiate one
@@ -725,7 +729,7 @@
         renderersBeingUpdated = true;

         //Set the data
-        if ((renderer is IDataRenderer) && (renderer != data))
+        if ((renderer is IDataRenderer) && (renderer !== data))
             IDataRenderer(renderer).data = data;

         //Newly created renderer with no owner, set owner to this
@@ -1223,7 +1227,7 @@
                       RendererExistenceEvent.RENDERER_REMOVE, false, false,
                       myItemRenderer, index, item));

-        if (myItemRenderer is IDataRenderer && myItemRenderer != item)
+        if (myItemRenderer is IDataRenderer && myItemRenderer !== item)
             IDataRenderer(myItemRenderer).data = null;

         var child:DisplayObject = myItemRenderer as DisplayObject;


Let's lose the twee traces.

Let's lose the twee traces.

--- tamarin-central/thane/as3src/flash/net/CachingHttpClient.as
+++ tamarin-central/thane/as3src/flash/net/CachingHttpClient.as
@@ -24,11 +24,9 @@

     public function request (resource :String) :void
     {
-        trace("Recevied request for: " + resource);
         // did we already load this?
         var data :ByteArray = _cached[resource];
         if (data != null) {
-            trace("Scheduling delivery of cached data for: " + resource);
             setTimeout(function () :void {
                 dispatchEvent(new HttpDataEvent(data));
                 dispatchEvent(new Event(Event.COMPLETE));
@@ -39,15 +37,11 @@
         // else, is some instance already loading it?
         var loader :HttpLoader = _loading[resource];
         if (!loader) {
-            trace("Starting download of: " + resource);
             // if not, start loading
             loader = new HttpLoader(resource);

             // and remember that we are
             _loading[resource] = loader;
-
-        } else {
-            trace("Resource already being loaded: " + resource);
         }

         // finally make sure we hear about the loader's events


vast: allow fallback to a supported mediaFile, if mediaFiles list contains unsupported one (such as webm).

--- vendors/VASTNew/org/osmf/vast/media/VAST2MediaGenerator.as
+++ vendors/VASTNew/org/osmf/vast/media/VAST2MediaGenerator.as
@@ -160,6 +160,7 @@
 			// Check for Video.
 			if (vastDocument.mediafileArray != null && vastDocument.mediafileArray.length > 0 && isLinear)
 			{
+				var mediaFileURL:Vector.<VAST2MediaFile> = new Vector.<VAST2MediaFile>;

 				for each(var mediaObj:Object in vastDocument.mediafileArray)
 				{
@@ -175,7 +176,7 @@
 					mediaFileObj.maintainAspectRatio = mediaObj.maintainAspectRatio;
 					mediaFileObj.apiFramework = mediaObj.apiFramework;

-					var mediaFileURL:Vector.<VAST2MediaFile> = new Vector.<VAST2MediaFile>;
+
 					mediaFileURL.push(mediaFileObj);
 				}