Transferred from the Adobe Open Source Subversion Repository

Revision: 7862
Author:   jszeto@adobe.com
Date:     2009-06-15T22:06:23.250745Z

Log Message:
-----------
GraphicElement PARB Changes

mx.core.AdvancedLayoutFeatures
•	Rename layer -> depth
•	Rename offsets -> postLayoutTransformOffsets

mx.core.IVisualElement
•	Rename layer -> depth

mx.core.UIComponent
•	Rename offsets -> postLayoutTransformOffsets
•	Rename layer -> depth

mx.graphics.GradientBase
•	Remove scaleX

mx.graphics.GradientStroke
•	Add apply(g:Graphics, bounds:Rectangle)

mx.graphics.IStroke
•	Remove draw
•	Change apply(g:Graphics) -> apply(g:Graphics, bounds:Rectangle)

mx.graphics.LinearGradient
•	Add scaleX

mx.graphics.LinearGradientStroke
•	Add scaleX
•	Remove draw
•	Change apply(g:Graphics) -> apply(g:Graphics, bounds:Rectangle)

mx.graphics.RadialGradient
•	Add scaleX

mx.graphics.RadialGradientStroke
•	Add scaleX
•	Remove draw
•	Change apply(g:Graphics) -> apply(g:Graphics, bounds:Rectangle)

mx.graphics.SolidColorStroke
•	Remove draw
•	Change apply(g:Graphics) -> apply(g:Graphics, bounds:Rectangle)

mx.flash.UIMovieClip
•	Rename offsets -> postLayoutTransformOffsets
•	Rename layer -> depth

spark.components.PopUpAnchor
•	Change popUp type from UIComponent -> IFlexDisplayObject
•	Rename positionPopUp -> calculatePopUpPosition
•	Rename autoSizePopUpWidth -> popUpWidthMatchesAnchorWidth
•	Rename autoSizePopUpHeight -> popUpHeightMatchesAnchorHeight

spark.core.RelativePosition
•	Rename and move spark.core.RelativePosition -> spark.components.PopUpPosition
•	Rename EXACT -> TOP_LEFT (topLeft)

spark.core.SpriteVisualElement
•	Rename layer -> depth
•	Remove computeMatrix

spark.primitives.BitmapImage
•	Change _NORMAL_UINT from protected -> private
•	Change _REPEAT_UINT from protected -> private
•	Change _SCALE_UINT from protected -> private
•	Change resizeModeToUINT from protected -> private
•	Rename drawElement -> draw

spark.primitives.Line
•	Rename skipMeasure -> canSkipMeasurement
•	Rename drawElement -> draw

spark.primitives.Path
•	Change graphicsPath fro protected -> mx_internal
•	Rename skipMeasure -> canSkipMeasurement
•	Rename drawElement -> draw
•	Rename renderGraphicsAtScale -> generateGraphicsPath
•	Change generateGraphicsPath from protected -> mx_internal
•	Rename notifyElementLayerChanged -> invalidateDisplayObjectSharing

spark.primitives.Rect
•	Rename drawElement -> draw

spark.primitives.supportClasses.GraphicElement
•	Rename layer -> depth
•	Rename offsets -> postLayoutTransformOffsets
•	Rename getBitmapData -> captureBitmapData
•	Rename notifyElementLayerChanged -> invalidateDisplayObjectSharing
•	Rename skipMeasure -> canSkipMeasurement
•	Add protected hasComplexLayoutMatrix:Boolean getter
•	Remove target
•	Remove computeMatrix
•	Change DEFAULT_MAX_WIDTH from public -> private
•	Change DEFAULT_MAX_HEIGHT from public -> private
•	Change DEFAULT_MIN_WIDTH from public -> private
•	Change DEFAULT_MIN_HEIGHT from public -> private
•	Change allocateLayoutFeatures from protected -> mx_internal
•	Change invalidateTransform from protected -> private
•	Change captureBitmapData from public -> mx_internal
•	Change applyMaskType from protected -> mx_internal
•	Change dispatchPropertyChangeEvent from protected -> private
•	Change applyComputedTransform from protected -> mx_internal
•	Change filterChangedHandler from protected -> private

spark.supportClasses.StrokedElement
•	Rename drawElement -> draw
•	Remove getStroke()
•	Add getStrokeExtents() override

QE Notes: None
Doc Notes: None
Bugs: N/A
Reviewer: Glenn

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/StrokedElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/BitmapImage.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/TransformOffsets.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/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/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Line.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Ellipse.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/core/SpriteVisualElement.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/spark/primitives/supportClasses/FilledElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransitionShader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/BitmapFill.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/GradientStroke.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/graphics/GradientBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateTransitionShaderInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/IFill.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/SolidColorStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/RadialGradientStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Path.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Rect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/SolidColor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/RadialGradient.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/IStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/LinearGradientStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/LinearGradient.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/AdvancedLayoutFeatures.as</path>

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

--- frameworks/projects/framework/src/mx/graphics/LinearGradient.as
+++ frameworks/projects/framework/src/mx/graphics/LinearGradient.as
@@ -137,6 +137,62 @@

 	//--------------------------------------------------------------------------
 	//
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------
+
+    //----------------------------------
+	//  matrix
+	//----------------------------------
+
+    /**
+     *  @private
+     */
+    override public function set matrix(value:Matrix):void
+    {
+    	scaleX = NaN;
+    	super.matrix = value;
+    }
+
+	//----------------------------------
+    //  scaleX
+    //----------------------------------
+
+    private var _scaleX:Number;
+
+    [Bindable("propertyChange")]
+    [Inspectable(category="General")]
+
+    /**
+     *  The horizontal scale of the gradient transform, which defines the width of the (unrotated) gradient
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function get scaleX():Number
+    {
+        return _scaleX;
+    }
+
+    /**
+     *  @private
+     */
+    public function set scaleX(value:Number):void
+    {
+        var oldValue:Number = _scaleX;
+        if (value != oldValue && !compoundTransform)
+        {
+            _scaleX = value;
+            dispatchGradientChangedEvent("scaleX", oldValue, value);
+        }
+    }
+
+	//--------------------------------------------------------------------------
+	//
+	//
 	//  Methods
 	//
 	//--------------------------------------------------------------------------
@@ -159,7 +215,7 @@
 	 *  @playerversion AIR 1.1
 	 *  @productversion Flex 3
 	 */
-	public function begin(target:Graphics, rc:Rectangle):void
+	public function begin(target:Graphics, bounds:Rectangle):void
 	{
 		commonMatrix.identity();

@@ -187,18 +243,18 @@
 					if (normalizedAngle > 90)
 						normalizedAngle = 180 - normalizedAngle;

-					var side:Number = rc.width;
+					var side:Number = bounds.width;
 					// Get the hypotenuse of the largest triangle that can fit in the bounds
-					var hypotenuse:Number = Math.sqrt(rc.width * rc.width + rc.height * rc.height);
+					var hypotenuse:Number = Math.sqrt(bounds.width * bounds.width + bounds.height * bounds.height);
 					// Get the angle of that largest triangle
-					var hypotenuseAngle:Number =  Math.acos(rc.width / hypotenuse) * 180 / Math.PI;
+					var hypotenuseAngle:Number =  Math.acos(bounds.width / hypotenuse) * 180 / Math.PI;

 					// If the angle is larger than the hypotenuse angle, then use the height
 					// as the adjacent side of the triangle
 					if (normalizedAngle > hypotenuseAngle)
 					{
 						normalizedAngle = 90 - normalizedAngle;
-						side = rc.height;
+						side = bounds.height;
 					}

 					// Solve for the hypotenuse given an adjacent side and an angle.
@@ -207,7 +263,7 @@
 				else
 				{
 					// Use either width or height based on the rotation
-					length = (rotation % 180) == 0 ? rc.width : rc.height;
+					length = (rotation % 180) == 0 ? bounds.width : bounds.height;
 				}
 	    	}

@@ -231,15 +287,15 @@

 		    commonMatrix.rotate (!isNaN(_angle) ? _angle : rotationInRadians);
 		    if (isNaN(tx))
-		    	tx = rc.width / 2;
+	    		tx = bounds.width / 2;
 		    if (isNaN(ty))
-		    	ty = rc.height / 2;
-		    commonMatrix.translate(tx + rc.left, ty + rc.top);
+	    		ty = bounds.height / 2;
+	    	commonMatrix.translate(tx + bounds.left, ty + bounds.top);
 		}
 		else
 		{
-			commonMatrix.scale(rc.width / GRADIENT_DIMENSION, 1);
-			commonMatrix.translate(rc.left + rc.width / 2, 0);
+			commonMatrix.scale(bounds.width / GRADIENT_DIMENSION, 1);
+			commonMatrix.translate(bounds.left + bounds.width / 2, 0);
 			commonMatrix.concat(compoundTransform.matrix);
 		}


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

--- frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as
+++ frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as
@@ -494,13 +494,6 @@
      */
     public function initProtoChainRoots():void
     {
-		// Prior to version 3, textDecoration and leading were not inheriting styles
-		if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0)
-		{
-			delete _inheritingStyles["textDecoration"];
-			delete _inheritingStyles["leading"];
-		}
-
 		if (!stylesRoot)
 		{
 			if (_selectors["global"] != null)


Let's not exit when we find a .fla

Let's not exit when we find a .fla

--- exporter/src/main/as/flump/export/Exporter.as
+++ exporter/src/main/as/flump/export/Exporter.as
@@ -203,7 +203,8 @@
     }

     protected function loadFla (file :File) :void {
-        log.info("Loading fla", "path", file.nativePath);
+        log.info("fla support not implemented", "path", file.nativePath);
+        return;
         Files.load(file).succeeded.add(function (file :File) :void {
             const zip :FZip = new FZip();
             zip.loadBytes(file.data);


Transferred from the Adobe Open Source Subversion Repository

Revision: 16262
Author:   dloverin@adobe.com
Date:     2010-05-20T18:44:39.210129Z

Log Message:
-----------
Move mx components out of framework.swc into mx.swc

The new mx.swc library lives in the libs/mx directory.

QE notes: Of the 5 failures I saw: 1 was intermittent and 4 are not a bug.
Managers/StyleManager/AdvancedCSS/descendantSelectors/AdvancedCSS_descendantSelectors_Style descendantSelector_combining_nested_style
    This failure was intermittent.

mx/effects/Resize/Containers/Resize_Containers Effects_Resize_Containers_ApplicationControlBar_FromTo
mx/effects/Resize/Containers/Resize_Containers Effects_Resize_Containers_ApplicationControlBar_By
mx/effects/Resize/Containers/Resize_Containers Effects_Resize_Containers_ControlBar_FromTo
mx/effects/Resize/Containers/Resize_Containers Effects_Resize_Containers_ControlBar_By
    These failures are due to my code changes but I believe the old behavior was incorrect. When a control bar is the last child in a Panel it should appear at the bottom of the Panel. In the test case an ApplicationControlBar/ContorlBar is added to an empty Panel, making it the last child in the Panel. So it should appear at the bottom of the Panel instead of inside the Panel.

Doc notes: new library, mx.swc
Bugs:
Reviewer: Alex
Tests run:
Is noteworthy for integration: Yes

Modified Paths:
--------------
740 paths were modified

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

--- frameworks/projects/mx/src/mx/core/Version.as
+++ frameworks/projects/mx/src/mx/core/Version.as
@@ -0,0 +1,18 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2005-2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+import mx.core.mx_internal;
+
+/**
+ *  @private
+ *  Version string for this class.
+ */
+mx_internal static const VERSION:String = "4.5.0.0";


Transferred from the Adobe Open Source Subversion Repository

Revision: 18146
Author:   chiedozi@adobe.com
Date:     2010-10-14T00:23:22.539629Z

Log Message:
-----------
View and ViewNavigator PARB changes.

MobileApplication
canCancelBackKeyBehavior has been renamed exitApplicationOnBackKey (also impacts ViewNavigator and TabbedViewNavigator)

ViewNavigator
backKeyHandler method is now mx_internal, it is no longer part of public api
useDefaultTransitions property has been removed from the framework
canRemoveCurrentView is now mx_internal, it is no longer part of the public api
createVisibiliyAnimation() method has been removed and replaced with the createActionBarShowEffect() and createActionBarHideEffect() methods.
commitViewChange, beginViewChanged and endViewChanged have been renamed to commitNavigatorAction, committingNavigatorAction and navigatorActionCommitted.
maintainNavigationStack removed from ViewNavigator and moved to TabbedViewNavigator

View
VIEW_ACTIVATE, VIEW_DEACTIVATE and REMOVING have been removed from the FlexEvent class and added to the new ViewNavigatorEvent class.
ViewNavigatorEvent class now has a "action" property that indicates what the last committed navigation operation was
ViewNavigatorAction enum class added and is used to populate the action property of a ViewNavigatorEvent
View now dispatches a "backKeyPressed" (FlexEvent.BACK_KEY_PRESSED) event when the back device key is pressed.  This is a cancelable event.  When cancelled, the MobileApplication's default back behavior will not run.

TabbedViewNavigator
Added createTabBarShowEffect() and createTabBarHideEffect() methods
Added a maintainNavigationStack property to the view navigator.  When false, the navigation stack of a navigator is cleared when deactivated.

TabbedMobileApplication
Added maintainNavigationStack proxy property to the application

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/View.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/performance/mobile/ComponentCatalog/src/ScriptRunner.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/MobileApplication.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/TabbedMobileApplication.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorAction.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/MobileApplicationBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/events/FlexEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/performance/mobile/ComponentCatalog/src/views/SearchView.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/events/ViewNavigatorEvent.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/ViewNavigatorApplication.as
+++ frameworks/projects/mobilecomponents/src/spark/components/ViewNavigatorApplication.as
@@ -165,14 +165,20 @@
     //--------------------------------------------------------------------------

     //----------------------------------
-    //  canCancelBackKeyBehavior
+    //  exitApplicationOnBackKey
     //----------------------------------
     /**
      *  @private
      */
-    override public function get canCancelBackKeyBehavior():Boolean
-    {
-        return (navigator && navigator.canCancelBackKeyBehavior) || viewMenuOpen;
+    override public function get exitApplicationOnBackKey():Boolean
+    {
+        if (viewMenuOpen)
+            return false;
+
+        if (navigator)
+            return navigator.exitApplicationOnBackKey;
+
+        return super.exitApplicationOnBackKey;
     }

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 20644
Author:   mhorn@adobe.com
Date:     2011-03-07T18:49:20.181589Z

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/BeveledActionButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/MobileSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TabbedViewNavigatorTabBarFirstTabSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TabbedViewNavigatorTabBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaVScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaVScrollBarThumbSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/SkinnableContainerSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewMenuSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/TextSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TransparentNavigationButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TabbedViewNavigatorTabBarLastTabSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewMenuItemSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ButtonBarButtonClassFactory.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/BeveledBackButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ActionBarButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/SelectableButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/CheckBoxSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TabbedViewNavigatorSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaHScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaHScrollBarThumbSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/RadioButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HScrollBarThumbSkin.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaVScrollBarThumbSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaVScrollBarThumbSkin.as
@@ -5,6 +5,15 @@

 use namespace mx_internal;

+/**
+ *  The ActionScript-based skin used for TextAreaHScrollBarThumb components
+ *  in mobile applications.
+ *
+ *  @langversion 3.0
+ *  @playerversion AIR 2.5
+ *  @productversion Flex 4.5
+ *
+ */
 public class TextAreaVScrollBarThumbSkin extends VScrollBarThumbSkin
 {
     //--------------------------------------------------------------------------


- slight refactoring in UIComponent

- slight refactoring in UIComponent

git-svn-id: e38e7cdd6ace00d8230583a2d3b43e9a55f5c011@171 bc4816be-ef27-423a-9c4d-fc420be121a2

--- src/reprise/ui/UIComponent.as
+++ src/reprise/ui/UIComponent.as
@@ -1350,6 +1350,20 @@
 				m_visible = visible = true;
 			}

+			if (m_currentStyles.cursor == 'pointer')
+			{
+				if (!buttonMode)
+				{
+					buttonMode = true;
+					useHandCursor = true;
+				}
+			}
+			else if (buttonMode)
+			{
+				buttonMode = false;
+				useHandCursor = false;
+			}
+
 			super.rotation = m_currentStyles.rotation || 0;
 			if (m_currentStyles.opacity != null)
 			{
@@ -1409,20 +1423,6 @@
 			else
 			{
 				m_positionInFlow = 0;
-			}
-
-			if (m_currentStyles.cursor == 'pointer')
-			{
-				if (!buttonMode)
-				{
-					buttonMode = true;
-					useHandCursor = true;
-				}
-			}
-			else if (buttonMode)
-			{
-				buttonMode = false;
-				useHandCursor = false;
 			}
 		}


Transferred from the Adobe Open Source Subversion Repository

Revision: 20097
Author:   jasonsj@adobe.com
Date:     2011-02-03T17:48:25.773740Z

Log Message:
-----------
Remove use of minWidth and minHeight where possible from mobile skins to fix constraint use cases. Replace usage of minWidth/minHeight and layoutMeasuredWidth/layoutMeasuredHeight with MobileSkin property measuredDefaultWidth/measuredDefaultHeight.

Use minWidth/minHeight for skins that do not scale down: Beveled buttons, CheckBox, RadioButton, and scroll bars.

Doc notes:
Bugs:
SDK-28715 Cannot size and position button correctly in i4 build.
Reviewer: egeorgie
Tests run: checkintests
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/BeveledActionButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/MobileSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextInputSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonBarFirstButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/HSliderDataTip.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaVScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/VScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonBarMiddleButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewMenuItemSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/TabbedViewNavigatorTabBarTabSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderTrackSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonBarLastButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ImageSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/BeveledBackButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ActionBarButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/CheckBoxSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaHScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/RadioButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderThumbSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HScrollBarSkin.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonBarFirstButtonSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonBarFirstButtonSkin.as
@@ -72,7 +72,7 @@
             }
             default:
             {
-                // default PPI160
+                // default DPI_160
                 upBorderSkin = spark.skins.mobile160.assets.ButtonBarFirstButton_up;
                 downBorderSkin = spark.skins.mobile160.assets.ButtonBarFirstButton_down;
                 selectedBorderSkin = spark.skins.mobile160.assets.ButtonBarFirstButton_selected;


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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonBarFirstButtonSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonBarFirstButtonSkin.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.
 //
 ////////////////////////////////////////////////////////////////////////////////


[SequenceChecker] fixed status bar

[SequenceChecker] fixed status bar

git-svn-id: adbdea8fc1759bd16b0eaf24a244a7e5f870a654@232 fe3f0490-d73e-11de-a956-c71e7d3a9d2f

--- SequenceCheckerToolStandalone/src/org/jbei/registry/mediators/MainStatusBarMediator.as
+++ SequenceCheckerToolStandalone/src/org/jbei/registry/mediators/MainStatusBarMediator.as
@@ -40,13 +40,13 @@
                 case Notifications.SELECTION_CHANGED:
                     var selectionPositions:Array = notification.getBody() as Array;

-                    /*if(selectionPositions.length != 2 || !ApplicationFacade.getInstance().sequenceProvider) {
+                    if(selectionPositions.length != 2 || !ApplicationFacade.getInstance().sequenceProvider) {
                         mainStatusBar.selectionPositionLabel.text = "- : -";

                         return;
                     }

-                    updateSelection(selectionPositions[0], selectionPositions[1]);*/
+                    updateSelection(selectionPositions[0], selectionPositions[1]);

                     break;
                 case Notifications.ACTION_MESSAGE:
@@ -58,9 +58,9 @@

                     break;
                 case Notifications.PROJECT_UPDATED:
-                    /*var seqLength:int = (ApplicationFacade.getInstance().sequenceProvider && ApplicationFacade.getInstance().sequenceProvider.sequence) ? ApplicationFacade.getInstance().sequenceProvider.sequence.length : -1;
+                    var seqLength:int = (ApplicationFacade.getInstance().sequenceProvider && ApplicationFacade.getInstance().sequenceProvider.sequence) ? ApplicationFacade.getInstance().sequenceProvider.sequence.length : -1;

-                    updateSequenceLength(seqLength);*/
+                    updateSequenceLength(seqLength);

                     break;
                 case Notifications.SELECTED_TRACE_SEQUENCE_CHANGED:
@@ -105,7 +105,7 @@
                 if (fromIndex < toIndex) {
                     selectionLength = toIndex - fromIndex;
                 } else {
-                    //selectionLength = toIndex + ApplicationFacade.getInstance().sequenceProvider.sequence.length - fromIndex;
+                    selectionLength = toIndex + ApplicationFacade.getInstance().sequenceProvider.sequence.length - fromIndex;
                 }

                 mainStatusBar.selectionPositionLabel.text = String(fromIndex + 1) + " : " + String(toIndex) + " (" + String(selectionLength) + ")";


358 Made FitUtil slightly less annoying to use, with formal outparams and guards against aliasing

--- raw/src/org/yellcorp/lib/geom/FitUtil.as
+++ raw/src/org/yellcorp/lib/geom/FitUtil.as
@@ -5,33 +5,31 @@

 /**
- * Utility functions for scaling one rectangle up or down until one of its
- * axes match the target rectangle.  Which axis matches depends on whether
- * the mode is MODE_FIT or MODE_FILL.
+ * Utility functions for scaling a source rectangular area to fit inside a
+ * target area, while maintaining the aspect ratio of the source.
+ * MODE_FIT calculates a rectangle that is equal to or smaller
+ * than the target.  MODE_FILL is always equal or larger.
  */
 public class FitUtil
 {
     /**
-     * Scales the source rectangle proportionally to fit entirely within
-     * the target rectangle.
+     * Constant value that directs the fitRect function to
+     * calculate a result that is always smaller or equal to the target
+     * area. One of the axes of the result may not fully span the target.
      */
     public static const MODE_FIT:String = "fit";

     /**
-     * Scales the source rectangle proportionally to fill the target
-     * rectangle.  Parts of the source rectangle may sit outside the
-     * target rectangle.
+     * Constant value that directs the fitRect function to
+     * calculate a result that is always larget or equal to the target
+     * area. One of the axes of the result may exceed the target area.
      */
     public static const MODE_FILL:String = "fill";

     /**
-     * Modifies one rectangle to fit or fill another rectangle.
+     * Scales one rectangle to fit or fill another rectangle.
      *
-     * @param source   The source rectangle. The aspect ratio is preserved,
-     *                 and x, y, width
-     *                 and height are modified.  To keep
-     *                 a copy of the source rectangle, the caller should
-     *                 clone it themselves.
+     * @param source   The source rectangle.
      * @param target   The rectangle to fit source into.
      * @param mode     Calculation mode: MODE_FIT or
      *                 MODE_FILL
@@ -46,53 +44,62 @@
      * @param rounding Rounds the calculated values of x,
      *                 y, width and
      *                 height to the nearest whole number.
-     * @return         Nothing. The Rectangle passed into the
-     *                 source argument is modified.
+     * @param output   A reference to a Rectangle in which to store the
+     *                 result. If this is null, a new Rectangle will be
+     *                 constructed and returned.
+     * @return         The Rectangle passed into output, or a
+     *                 new Rectangle, with the calculated result.
      */
     public static function fitRect(source:Rectangle, target:Rectangle,
-                                   mode:String = "fit",
+                                   mode:String,
                                    xAlign:Number = 0.5,
                                    yAlign:Number = 0.5,
-                                   rounding:Boolean = false):void
+                                   rounding:Boolean = false,
+                                   output:Rectangle = null):Rectangle
     {
+        // copy values to guard against aliasing
+        var sw:Number = source.width, sh:Number = source.height;
+        var tw:Number = target.width, th:Number = target.height;
+
         var scale:Number;
+
+        if (!output)
+        {
+            output = new Rectangle();
+        }

         if (mode == MODE_FILL)
         {
-            scale = Math.max(target.width / source.width,
-                             target.height / source.height);
+            scale = Math.max(tw / sw, th / sh);
         }
         else
         {
-            scale = Math.min(target.width / source.width,
-                             target.height / source.height);
+            scale = Math.min(tw / sw, th / sh);
         }

         if (rounding)
         {
-            source.width =  int(.5 + source.width * scale);
-            source.height = int(.5 + source.height * scale);
+            output.width =  int(.5 + sw * scale);
+            output.height = int(.5 + sh * scale);
         }
         else
         {
-            source.height *= scale;
-            source.width *= scale;
+            output.width = sw * scale;
+            output.height = sh * scale;
         }
-        alignRects(source, target, xAlign, yAlign);
+        alignRects(output, target, xAlign, yAlign, output);
         if (rounding)
         {
-            source.x = int(.5 + source.x);
-            source.y = int(.5 + source.y);
+            output.x = int(.5 + output.x);
+            output.y = int(.5 + output.y);
         }
+        return output;
     }

     /**
      * Aligns one rectangle's edges relative to another rectangle's.
      *
-     * @param source   The source rectangle. Its x and
-     *                 y properties are modified.
-     *                 To keep a copy of the source rectangle,
-     *                 the caller should clone it themselves.
+     * @param source   The source rectangle.
      * @param target   The rectangle to align source to.
      * @param xAlign   X alignment. A number from 0 to 1. 0 aligns left
      *                 edges, 1 aligns right edges, and 0.5 centres
@@ -103,13 +110,23 @@
      *                 vertically. Other values interpolate between these
      *                 values.
      *                 Other values interpolate between these values.
-     * @return         Nothing. The Rectangle passed into the
-     *                 source argument is modified.
+     * @param output   A reference to a Rectangle in which to store the
+     *                 result. If this is null, a new Rectangle will be
+     *                 constructed and returned.
+     * @return         The Rectangle passed into output, or a
+     *                 new Rectangle, with the calculated result.
      */
-    public static function alignRects(source:Rectangle, target:Rectangle, xAlign:Number, yAlign:Number):void
+    public static function alignRects(
+        source:Rectangle, target:Rectangle,
+        xAlign:Number, yAlign:Number,
+        output:Rectangle = null):Rectangle
     {
-        source.x = target.x + xAlign * (target.width - source.width);
-        source.y = target.y + yAlign * (target.height - source.height);
+        if (!output) output = new Rectangle();
+        output.x = target.x + xAlign * (target.width - source.width);
+        output.y = target.y + yAlign * (target.height - source.height);
+        output.width = source.width;
+        output.height = source.height;
+        return output;
     }

     /**
@@ -119,11 +136,13 @@
      *                  applied to this rectangle, will produce a rectangle
      *                  equal to the target rectangle.
      * @param target    The target rectangle.
-     * @param outMatrix An existing Matrix to store the result
-     *                  in. If none provided, will create a new
-     *                  Matrix object.
-     * @return The result stored in outMatrix if it exists, or
-     *         a new Matrix object otherwise.
+     * @param output    A reference to a Matrix in which to store the
+     *                  result. If this is null, a new Matrix will be
+     *                  constructed and returned.
+     * @return          The Matrix passed into output, or a
+     *                  new Matrix, with the calculated result. If source
+     *                  has a width or height of zero, returns
+     *                  null.
      */
     public static function getRectTransform(source:Rectangle, target:Rectangle, outMatrix:Matrix = null):Matrix
     {


Transferred from the Adobe Open Source Subversion Repository

Revision: 15083
Author:   klin@adobe.com
Date:     2010-03-26T22:14:52.263931Z

Log Message:
-----------
Merge 15082 from 4.x to trunk.

Fix for http://bugs.adobe.com/jira/browse/SDK-25997. The knob in a dividedBox is incorrectly positioned. This is the result of a couple of things in BitmapAsset and SpriteAsset.

-Changed rotation setter to set super.rotation when not mirrored.
-width/height are now always positive regardless of whether scaleX/Y is negative.
-width/height getters now take the full transform into account. Basically, they return the bounding box size now.
-Also, BoxDivider sets the layoutDirection of its knob to null (inheriting) in order to be positioned correctly.

QE notes: No
Doc notes: No
Bugs: SDK-25997
Reviewer: Carol, Jason
Tests run: checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/SpriteAsset.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/dividedBoxClasses/BoxDivider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/BitmapAsset.as</path>

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

--- frameworks/projects/framework/src/mx/core/BitmapAsset.as
+++ frameworks/projects/framework/src/mx/core/BitmapAsset.as
@@ -18,6 +18,7 @@
 import flash.geom.Matrix;

 import mx.core.AdvancedLayoutFeatures;
+import mx.utils.MatrixUtil;

 /**
  *  BitmapAsset is a subclass of the flash.display.Bitmap class
@@ -248,7 +249,9 @@
      */
     override public function get width():Number
     {
-        return (layoutFeatures == null) ? super.width : layoutFeatures.layoutWidth;
+        // Return bounding box width in mirroring case
+        return (layoutFeatures == null) ? super.width :
+               MatrixUtil.transformSize(layoutFeatures.layoutWidth, _height, transform.matrix).x;
     }

     /**
@@ -285,7 +288,9 @@
      */
     override public function get height():Number
     {
-        return (layoutFeatures == null) ? super.height : _height;
+        // Return bounding box height in mirroring case
+        return (layoutFeatures == null) ? super.height :
+               MatrixUtil.transformSize(layoutFeatures.layoutWidth, _height, transform.matrix).y;
     }

     /**
@@ -408,7 +413,18 @@
      */
     override public function set rotation(value:Number):void
     {
-        rotationZ = value;
+        if (rotation == value)
+            return;
+
+        if (layoutFeatures == null)
+        {
+            super.rotation = value;
+        }
+        else
+        {
+            layoutFeatures.layoutRotationZ = value;
+            validateTransformMatrix();
+        }
     }

     //----------------------------------
@@ -438,7 +454,7 @@
         else
         {
             layoutFeatures.layoutScaleX = value;
-            layoutFeatures.layoutWidth = value * measuredWidth;
+            layoutFeatures.layoutWidth = Math.abs(value) * measuredWidth;
             validateTransformMatrix();
         }
     }
@@ -470,7 +486,7 @@
         else
         {
             layoutFeatures.layoutScaleY = value;
-            _height = value * measuredHeight;
+            _height = Math.abs(value) * measuredHeight;
             validateTransformMatrix();
         }
     }


FLEX-33740 made removedFromStageHandler protected so it could be overridden

--- frameworks/projects/framework/src/mx/core/UIComponent.as
+++ frameworks/projects/framework/src/mx/core/UIComponent.as
@@ -12665,9 +12665,17 @@
     }

     /**
-     *  @private
-     */
-    private function removedFromStageHandler(event:Event):void
+     *
+	 * Called when a component is removed from the stage.
+	 *
+     *  @param event The event object.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 4.11
+     */
+    protected function removedFromStageHandler(event:Event):void
     {
         _systemManagerDirty = true;
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 13756
Author:   hmuller@adobe.com
Date:     2010-01-25T19:42:14.082913Z

Log Message:
-----------
Mirroring changes, fixes.

- Removed ILayout interface, added mirroring API to IVisualElement.
- Moved layoutDirection="ltr" initialization from TextBase to defaults.css.   Removed similar initialization from DefaultItemRenderer (it wasn't needed).
- The 'get layoutDirection()' method for UIMovieClip, GraphicElement, and SpriteVisualElement now queries the parent if the local value is "inherit".
- Use @inheritDoc instead of explicitly @copying interface methods' ASDoc.   Don't call invalidateLayoutDirection() if FlexVersion.compatibilityVersion is < 4.0.
- Don't call invalidateLayout() for a child unless either its layoutDirection has changed, or its parent's layoutDirection has changed.

QE notes: These changes were cycloned.
Doc notes:
Bugs: sdk-25204, sdk-25209
Reviewer: Evtim
Tests run:
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElement.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ILayoutDirection.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/DefaultItemRenderer.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/spark/defaults.css</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/core/AdvancedLayoutFeatures.as</path>

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

--- frameworks/projects/framework/src/mx/core/UIComponent.as
+++ frameworks/projects/framework/src/mx/core/UIComponent.as
@@ -5833,7 +5833,16 @@
     //----------------------------------

     /**
-     *  @copy mx.core.ILayoutDirection#layoutDirection
+     *  Checked at commitProperties() time to see if our layoutDirection has changed,
+     *  or our parent's layoutDirection has changed.  This variable is reset after the
+     *  entire validateProperties() phase is complete so that it's possible for a child
+     *  to check if its parent's layoutDirection has changed, see commitProperties().
+     *  The flag is cleared in validateDisplayList().
+     */
+    private var oldLayoutDirection:String = null;
+
+    /**
+     *  @inheritDoc
      */
     public function get layoutDirection():String
     {
@@ -7564,11 +7573,11 @@
     }

     /**
-     * @copy mx.core.ILayoutDirection#invalidateLayoutDirection()
+     * @inheritDoc
      */
     public function invalidateLayoutDirection():void
     {
-        const parentElt:ILayoutDirection = parent as ILayoutDirection;
+        const parentElt:IVisualElement = parent as IVisualElement;
         const thisLayoutDirection:String = layoutDirection;

         // If this element's layoutDirection doesn't match its parent's, then
@@ -7589,7 +7598,8 @@

         //  If this is a leaf node, then we're done.  If not, the styleChanged() machinery
         //  (via commitProperties()) will deal with UIComponent children.   We have to
-        //  deal with other ILayoutDirection children, like GraphicElements, here.
+        //  deal with IVisualElement children that don't support styles, like
+        //  GraphicElements, here.

         if (!(this is IVisualElementContainer))
             return;
@@ -7599,9 +7609,9 @@

         for (var i:int = 0; i < thisContainerNumElements; i++)
         {
-            var elt:ILayoutDirection = thisContainer.getElementAt(i) as ILayoutDirection
-            if (!(elt is UIComponent))  // FIXME(hmuller) - should check for style clients
-                ILayoutDirection(elt).invalidateLayoutDirection();
+            var elt:IVisualElement = thisContainer.getElementAt(i);
+            if (!(elt is IStyleClient))
+                elt.invalidateLayoutDirection();
         }
     }

@@ -7929,12 +7939,17 @@
             oldScaleY = scaleY;
         }

-        // FIXME(hmuller) - if this component's layout has changed, or its parent
-        // layout has changed, or if its layout no longer matches one of
-        // its non-UIComponent children, then we need to validateLayoutDirection().
-        if (true)
-        {
-            invalidateLayoutDirection();
+        if (FlexVersion.compatibilityVersion >= FlexVersion.VERSION_4_0)
+        {
+            // If this component's layout direction has changed, or its parent's layoutDirection
+            // has changed, then call invalidateLayoutDirection().
+
+            const thisLayoutDirection:String = layoutDirection;
+            const parentUIC:UIComponent = parent as UIComponent;
+
+            if ((oldLayoutDirection != layoutDirection) ||
+                (parentUIC && (parentUIC.layoutDirection != parentUIC.oldLayoutDirection)))
+                invalidateLayoutDirection();
         }

         // Typically state changes occur immediately, but during
@@ -8560,7 +8575,7 @@
      *  @private
      */
     protected function validateMatrix():void
-    {
+    {
         if (_layoutFeatures != null && _layoutFeatures.updatePending == true)
         {
             applyComputedMatrix();
@@ -8586,6 +8601,7 @@
     public function validateDisplayList():void
     {
         validateMatrix();
+        oldLayoutDirection = layoutDirection;

         if (invalidateDisplayListFlag)
         {


Transferred from the Adobe Open Source Subversion Repository

Revision: 19060
Author:   harishs@adobe.com
Date:     2010-12-06T17:34:15.020965Z

Log Message:
-----------
QE notes: Did checkintests, performed full cyclone run. There were 19 failures in mustella report. QE Judy (Mingzhou Gao and Joann Chung Anderson) confirmed that they are known problems.
Doc notes: As part of Sort and Sortfield updates, the asdoc comments were updated to reflect globalization changes.
Bugs: Fixed sdk-28493, 28691,28494, 28345, 28320, 28387, 28314, 28145
Reviewer: Gordon Smith
Tests run: cyclone, checkintests, bugs testfiles
Is noteworthy for integration: Sort and Sortfield updated with globalization support using the new spark globalization sort classes.
Number and CurrencyValidators support national digits and unicode minus symbols.
groupingPattern property dropped for Number and Currency Validators.

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/BasicTests-config.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/collections/SortField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/validators/supportClasses/NumberValidatorBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/collections/ICollectionView.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/collections/ISort.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/spark-manifest.xml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/collections/ISortField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/BasicTests.mxml</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="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/collections/Sort.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/validators/NumberValidator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/advancedgrids/src/mx/olap/OLAPCube.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/validators/CurrencyValidator.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/collections/SortField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/bundles/en_US/validators.properties</path>
<path kind="dir" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/collections</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/treeClasses/HierarchicalCollectionView.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/collections/ListCollectionView.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/validators/supportClasses/GlobalizationUtils.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/advancedgrids/src/mx/olap/DefaultCubeImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGridBaseEx.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/scripts/SortTestScript.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/advancedgrids/src/mx/collections/HierarchicalCollectionView.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/collections/Sort.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/collections/ModifiedCollectionView.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/views/SortTests.mxml</path>

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

--- frameworks/projects/framework/src/mx/core/UIComponent.as
+++ frameworks/projects/framework/src/mx/core/UIComponent.as
@@ -11313,7 +11313,7 @@
     /**
      *  @private
      */
-    private var advanceStyleClientChildren:Vector.<IAdvancedStyleClient> = null;
+    protected var advanceStyleClientChildren:Vector.<IAdvancedStyleClient> = null;

     /**
      *  Adds a non-visual style client to this component instance. Once


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/mx/src/mx/controls/NumericStepper.as
+++ frameworks/projects/mx/src/mx/controls/NumericStepper.as
@@ -48,6 +48,11 @@
  *  as a result of user interaction.
  *
  *  @eventType mx.events.NumericStepperEvent.CHANGE
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Event(name="change", type="mx.events.NumericStepperEvent")]

@@ -60,6 +65,11 @@
  *  when the data property changes.

  *
  *  @eventType mx.events.FlexEvent.DATA_CHANGE
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Event(name="dataChange", type="mx.events.FlexEvent")]

@@ -78,6 +88,11 @@
  *  Name of the class to use as the default skin for the down arrow.
  *
  *  @default mx.skins.halo.NumericStepperDownSkin
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="downArrowSkin", type="Class", inherit="no", states="up, over, down, disabled")]

@@ -86,6 +101,11 @@
  *  when the arrow is disabled.
  *
  *  @default mx.skins.halo.NumericStepperDownSkin
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="downArrowDisabledSkin", type="Class", inherit="no")]

@@ -94,6 +114,11 @@
  *  when the arrow is enabled and a user presses the mouse button over the arrow.
  *
  *  @default mx.skins.halo.NumericStepperDownSkin
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="downArrowDownSkin", type="Class", inherit="no")]

@@ -102,6 +127,11 @@
  *  when the arrow is enabled and the mouse pointer is over the arrow.
  *
  *  @default mx.skins.halo.NumericStepperDownSkin
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="downArrowOverSkin", type="Class", inherit="no")]

@@ -109,6 +139,11 @@
  *  Name of the class to use as the skin for the Down arrow
  *  when the arrow is enabled and the mouse pointer is not on the arrow.
  *  There is no default.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="downArrowUpSkin", type="Class", inherit="no")]

@@ -116,6 +151,11 @@
  *  Alphas used for the highlight fill of controls.
  *
  *  @default [ 0.3, 0.0 ]
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="highlightAlphas", type="Array", arrayType="Number", inherit="no")]

@@ -123,6 +163,11 @@
  *  Name of the class to use as the default skin for the up arrow.
  *
  *  @default mx.skins.halo.NumericStepperUpSkin
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="upArrowSkin", type="Class", inherit="no", states="up, over, down, disabled")]

@@ -131,6 +176,11 @@
  *  when the arrow is disabled.
  *
  *  @default mx.skins.halo.NumericStepperUpSkin
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="upArrowDisabledSkin", type="Class", inherit="no")]

@@ -139,6 +189,11 @@
  *  when the arrow is enabled and a user presses the mouse button over the arrow.
  *
  *  @default mx.skins.halo.NumericStepperUpSkin
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="upArrowDownSkin", type="Class", inherit="no")]

@@ -147,6 +202,11 @@
  *  when the arrow is enabled and the mouse pointer is over the arrow.
  *
  *  @default mx.skins.halo.NumericStepperUpSkin
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="upArrowOverSkin", type="Class", inherit="no")]

@@ -155,6 +215,11 @@
  *  when the arrow is enabled and the mouse pointer is not on the arrow.
  *
  *  @default mx.skins.halo.NumericStepperUpSkin
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="upArrowUpSkin", type="Class", inherit="no")]

@@ -264,6 +329,11 @@
  *
  *  @includeExample examples/NumericStepperExample.mxml
  *
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class NumericStepper extends UIComponent
                             implements IDataRenderer, IDropInListItemRenderer,
@@ -280,6 +350,11 @@

     /**
      *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function NumericStepper()
     {
@@ -445,6 +520,11 @@
      *
      *  @default null
      *  @see mx.core.IDataRenderer
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get data():Object
     {
@@ -477,6 +557,11 @@
     /**
      *  Set of styles to pass from the NumericStepper to the down arrow.
      *  @see mx.styles.StyleProxy
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     protected function get downArrowStyleFilters():Object
     {
@@ -520,6 +605,11 @@
      *  @see flash.system.IMEConversionMode
      *
      *  @default null
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get imeMode():String
     {
@@ -544,6 +634,11 @@
     /**
      *  Set of styles to pass from the NumericStepper to the input field.
      *  @see mx.styles.StyleProxy
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     protected function get inputFieldStyleFilters():Object
     {
@@ -604,6 +699,11 @@
      *
      *  @default null
      *  @see mx.controls.listClasses.IDropInListItemRenderer
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get listData():BaseListData
     {
@@ -640,6 +740,11 @@
      *  A value of 0 means that any number of characters can be entered.
      *
      *  @default 0
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get maxChars():int
     {
@@ -677,6 +782,11 @@
      *  The maximum can be any number, including a fractional value.
      *
      *  @default 10
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get maximum():Number
     {
@@ -715,6 +825,11 @@
      *  The minimum can be any number, including a fractional value.
      *
      *  @default 0
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get minimum():Number
     {
@@ -748,6 +863,11 @@
     /**
      *  The value that is one step larger than the current value
      *  property and not greater than the maximum property value.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get nextValue():Number
     {
@@ -770,6 +890,11 @@
     /**
      *  The value that is one step smaller than the current value
      *  property and not smaller than the maximum property value.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get previousValue():Number
     {
@@ -797,6 +922,11 @@
      *  The value property must be a multiple of this number.
      *
      *  @default 1
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get stepSize():Number
     {
@@ -827,6 +957,11 @@
     /**
      *  Set of styles to pass from the NumericStepper to the up arrow.
      *  @see mx.styles.StyleProxy
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     protected function get upArrowStyleFilters():Object
     {
@@ -889,6 +1024,11 @@
      *  this property is set to the closest valid value.
      *
      *  @default 0
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get value():Number
     {


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

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

 package mx.rpc.wsdl
 {


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

--- frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransformInstance.as
+++ frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransformInstance.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 spark.effects.supportClasses
 {


This all seems to work, so let's tidy it up.

git-svn-id: a1a4b28b82a3276cc491891159dd9963a0a72fae@5605 542714f4-19e9-0310-aa3c-eee0fc999fb1

--- src/as/com/threerings/util/CommandEvent.as
+++ src/as/com/threerings/util/CommandEvent.as
@@ -55,28 +55,9 @@
             }

             // now trying calling it
-            var err :Error = null;
             try {
                 fn.apply(null, args);
-
-// Commented out 2008-12-09 by Ray. I'm not sure we need this, it seems you can pass args
-// to an argless function without error.
-//            } catch (ae :ArgumentError) {
-//                if (arg is Boolean) {
-//                    // try with no args
-//                    try {
-//                        fn();
-//                    } catch (e2 :Error) {
-//                        err = e2;
-//                    }
-//                } else {
-//                    err = ae;
-//                }
-
-            } catch (e :Error) {
-                err = e;
-            }
-            if (err != null) {
+            } catch (err :Error) {
                 Log.getLog(CommandEvent).warning("Unable to call callback.", err);
             }


Transferred from the Adobe Open Source Subversion Repository

Revision: 16489
Author:   clucier@adobe.com
Date:     2010-06-07T23:56:58.881239Z

Log Message:
-----------
Merge revisions 16409 and 16410 from trunk.

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/primitives/BitmapImage.as</path>
<path kind="dir" action="M">/private/flex/sdk/branches/hero_private</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/graphics/BitmapSmoothingQuality.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/utils/LinkedList.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/defaults.css</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/core/ContentCache.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Image.as</path>

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

--- frameworks/projects/framework/src/mx/utils/LinkedList.as
+++ frameworks/projects/framework/src/mx/utils/LinkedList.as
@@ -140,6 +140,31 @@
         _length++;
         return node;
     }
+
+    /**
+     *  Inserts new node before a previously existing node.
+     *
+     *  @param value Value to insert. If the value is not a LinkedListNode
+     *  one will be created.
+     *  @param prev The node to insert relative to.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4.5
+     */
+    public function insertBefore(value:*, next:LinkedListNode):LinkedListNode
+    {
+        var node:LinkedListNode = makeNode(value);
+
+        node.prev = next.prev;
+        node.next = next;
+        node.prev.next = node;
+        node.next.prev = node;
+
+        _length++;
+        return node;
+    }

     /**
      *  Searches through all nodes for the given value.


Transferred from the Adobe Open Source Subversion Repository

Revision: 3563
Author:   jimurphy@adobe.com
Date:     2008-10-10T13:41:29.904903Z

Log Message:
-----------
Merged 3.0.x revisions 3421,3427,3442,3455,3457,3474,3477,3493,3500,3503,3513,3520,3531,3544 -> trunk
Integrate:
player 10.0.r12.036
lcds: 4.0.0.3542
coretech: 1.360354

Modified Paths:
--------------
<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/frameworks/projects/framework/src/mx/controls/RadioButton.as</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/modules/debugger/src/java/flash/tools/debugger/concrete/DLocation.java</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/utils/LoaderUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/lib/rideau.jar</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/RSLItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/libs/tcal_conversion.swc</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/libs/tcal_edit.swc</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/CrossDomainRSLItem.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/dataGridClasses/DataGridBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/libs/tcal_core.swc</path>
<path kind="dir" action="M">/flex/sdk/trunk</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/in/player/10/lnx/install_flash_player_10_linux.tar.gz</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/controls/SWFLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/in/player/10/mac/Flash Player.app.zip</path>
<path kind="file" action="M">/flex/sdk/trunk/lib/afe.jar</path>

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

--- frameworks/projects/framework/src/mx/utils/LoaderUtil.as
+++ frameworks/projects/framework/src/mx/utils/LoaderUtil.as
@@ -40,5 +40,48 @@
         return results[0];
     }

+    /**
+     *  @private
+     *
+     *  Use this method when you want to load resources with relative URLs.
+     *
+     *  Combine a root url with a possibly relative url to get a absolute url.
+     *  Use this method to convert a relative url to an absolute URL that is
+     *  relative to a root URL.
+     *
+     *  @param rootURL An url that will form the root of the absolute url.
+     *  This is typically the url of the application loading the url.
+     *
+     *  @param url The url of the resource to load (may be relative).
+     *
+     *  @return If url is already an absolute URL, then it is
+     *  returned as is. If url is relative, then an absolute URL is
+     *  returned where url is relative to rootURL.
+     */
+    public static function createAbsoluteURL(rootURL:String, url:String):String
+    {
+        var absoluteURL:String = url;
+
+        // make relative paths relative to the SWF loading it, not the top-level SWF
+        if (!(url.indexOf(":") > -1 || url.indexOf("/") == 0 || url.indexOf("\\") == 0))
+        {
+            if (rootURL)
+            {
+                var lastIndex:int = Math.max(rootURL.lastIndexOf("\\"), rootURL.lastIndexOf("/"));
+                if (lastIndex <= 8)
+                {
+                    rootURL += "/";
+                    lastIndex = rootURL.length - 1;  // adding one later
+                }
+
+                if (lastIndex != -1)
+                    absoluteURL = rootURL.substr(0, lastIndex + 1) + url;
+            }
+        }
+
+        return absoluteURL;
+    }
+
+
     }
 }


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

--- frameworks/projects/spark/src/spark/effects/AddAction.as
+++ frameworks/projects/spark/src/spark/effects/AddAction.as
@@ -9,7 +9,7 @@
 //
 ////////////////////////////////////////////////////////////////////////////////

-package mx.effects
+package spark.effects
 {

 import flash.display.DisplayObjectContainer;
@@ -17,7 +17,9 @@
 import mx.core.IVisualElement;
 import mx.core.IVisualElementContainer;
 import mx.core.mx_internal;
-import mx.effects.effectClasses.AddActionInstance;
+import spark.effects.supportClasses.AddActionInstance;
+import mx.effects.IEffectInstance;
+import mx.effects.Effect;
 import mx.effects.effectClasses.PropertyChanges;

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


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 23243
Author:   cframpto@adobe.com
Date:     2011-12-20T00:59:57.384047Z

Log Message:
-----------
In frameworks, remove Adobe headers from all files except xml/mxml file types.  There are also a few .txt files that are license files that I didn't touch yet.

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

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

--- frameworks/projects/spark/src/spark/effects/easing/Bounce.as
+++ frameworks/projects/spark/src/spark/effects/easing/Bounce.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.effects.easing
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 19674
Author:   cframpto@adobe.com
Date:     2011-01-10T21:50:40.535000Z

Log Message:
-----------
Add sortChanging and sortChange events to DataGrid for interactive sorting.  For now, until PARB'ed, change sortByColumns() signature to
    public function sortByColumns(columnIndices:Vector.<int>, isInteractive:Boolean=false):Boolean
Fix some doc nits in the other grid events.

QE notes:
Doc notes:
Bugs: SDK-28617
Reviewer: Hans, Kevin
Tests run: cyclone
Is noteworthy for integration:

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/events/GridCaretEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/events/GridSelectionEvent.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/events/GridSortEvent.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@1284509 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/events/GridCaretEvent.as
+++ frameworks/projects/spark/src/spark/events/GridCaretEvent.as
@@ -119,7 +119,7 @@
      *  @langversion 3.0
      *  @playerversion Flash 10
      *  @playerversion AIR 2.5
-     *  @productversion Flex 4
+     *  @productversion Flex 4.5
      */
     public function GridCaretEvent(type:String,
                                        bubbles:Boolean = false,


Avoid recursing into certain directories.

--- exporter/src/main/as/flump/export/Exporter.as
+++ exporter/src/main/as/flump/export/Exporter.as
@@ -172,6 +172,9 @@
                 }
             }
             for each (file in files) {
+                if (StringUtil.startsWith(file.name, ".", "RECOVER_")) {
+                    continue; // Ignore hidden VCS directories, and recovered backups created by Flash
+                }
                 if (file.isDirectory) findFlashDocuments(file, exec);
                 else if (Files.hasExtension(file, "fla")) addFlashDocument(file);
             }


We're parsing all movies now, not just exported ones.

Maybe we should defer parsing of un-exported movies until an exported
movie references them?

--- exporter/src/main/as/flump/xfl/XflKeyframe.as
+++ exporter/src/main/as/flump/xfl/XflKeyframe.as
@@ -32,8 +32,7 @@
                         "a time in a keyframe.");
                 } else symbolXml = frameEl;
             } else {
-                lib.addError(kf, ParseError.CRIT, "Non-symbols may not be in exported movie " +
-                    "layers");
+                lib.addError(kf, ParseError.CRIT, "Non-symbols may not be in movie layers");
             }
         }


Fix for layering when using a key property other than 'id'

--- WeaveData/src/weave/data/DataSources/GraphMLDataSource.as
+++ WeaveData/src/weave/data/DataSources/GraphMLDataSource.as
@@ -196,6 +196,7 @@

             var raw_data_column:Array = getPropertyArray(raw_rows, metadata[COLUMNNAME_META], data_remap_src);
             var raw_key_column:Array = getPropertyArray(raw_rows, GraphMLConverter.ID, key_remap_src);
+            var raw_id_column:Array = getPropertyArray(raw_rows, GraphMLConverter.ID, null);

             var data_column:Array = new Array();
             var key_column:Array = new Array();
@@ -206,10 +207,11 @@

                 for (var idx:int = raw_data_column.length - 1; idx >= 0; idx--)
                 {
+                    var id:String = raw_id_column[idx];
                     var key:String = raw_key_column[idx];
                     var value:String = raw_data_column[idx];

-                    if (VectorUtils.intersection(layer, [key]).length == 1)
+                    if (VectorUtils.intersection(layer, [id]).length == 1)
                     {
                         data_column.push(value);
                         key_column.push(key);
@@ -512,6 +514,7 @@

     public function getChildren():Array
     {
+        var idx:int;
         if (children == null)
         {
             children = [];
@@ -519,7 +522,7 @@

             if (layerNames.length > 0)
             {
-                for (var idx:int = layerNames.length - 1; idx >= 0; idx--)
+                for (idx = layerNames.length - 1; idx >= 0; idx--)
                 {
                     children.push(new GraphMLLayerNode(this, layerNames[idx]));
                 }
@@ -529,7 +532,7 @@
                     graph.source.nodeProperties.getSessionState() as Array :
                     graph.source.edgeProperties.getSessionState() as Array;

-            for (var idx:int = columns.length - 1; idx >= 0; idx--)
+            for (idx = columns.length - 1; idx >= 0; idx--)
             {
                 children.push(new GraphMLColumnNode(this, columns[idx]));
             }


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

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

 package mx.automation.delegates
 {