Transferred from the Adobe Open Source Subversion Repository

Revision: 19270
Author:   cframpto@adobe.com
Date:     2010-12-10T18:21:34.150045Z

Log Message:
-----------
Add mouseWheelChanging event to VScrollBar, HScrollBar and Scroller.  The event is dispatched before the mouseWheel event modifies the scroll position.  The event can be canceled to prevent the mouseWheel handler's default behavior or the event's delta can be modified and that value will be used by the mouseWheel handler when calculating the new scroll position.  In RichEditableText, when pasting, add null check before accessing the TextScrap.  There is a bug in one or more version of the player such that this can be null at times.

QE notes: Hans said we will do a PARB review by email for the new event
Doc notes:
Bugs: SDK-27106, SDK-26432
Reviewer: Hans (scroller), Darrell (RET)
Tests run: cyclone
Is noteworthy for integration: yes - new mouseWheelChanging event on VScrollBar, HScrollBar and Scroller

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/RichEditableText.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/events/FlexMouseEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/VScrollBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/HScrollBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/utils/MouseEventUtil.as</path>

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

--- frameworks/projects/spark/src/spark/utils/MouseEventUtil.as
+++ frameworks/projects/spark/src/spark/utils/MouseEventUtil.as
@@ -15,8 +15,10 @@
     import flash.events.Event;
     import flash.events.IEventDispatcher;
     import flash.events.MouseEvent;
-
+    import flash.display.InteractiveObject;
+
     import mx.core.UIComponent;
+    import mx.events.FlexMouseEvent;
     import mx.events.SandboxMouseEvent;

     [ExcludeClass]
@@ -133,12 +135,22 @@
                 new RemoveHandlerEvent(handleDown, handleDrag, handleUp));
         }

-        //--------------------------------------------------------------------------
-        //
-        //  Class properties
-        //
-        //--------------------------------------------------------------------------
-
+        /**
+         *  Create a 'mouseWheelChanging' FlexMouseEvent from a 'mouseWheel'
+         *  MouseEvent.
+         */
+        public static function createMouseWheelChangingEvent(event:MouseEvent):FlexMouseEvent
+        {
+            const flexEvent:FlexMouseEvent = new FlexMouseEvent(
+                FlexMouseEvent.MOUSE_WHEEL_CHANGING,
+                true, true,     // bubbles and cancelable
+                event.localX, event.localY,
+                InteractiveObject(event.target),
+                event.ctrlKey, event.altKey, event.shiftKey,
+                event.buttonDown, event.delta);
+
+            return flexEvent;
+        }
     }
 }


Actualize default values of properties of CopyableCloneableClass.

--- dolly-framework/src/test/resources/dolly/data/CopyableCloneableClass.as
+++ dolly-framework/src/test/resources/dolly/data/CopyableCloneableClass.as
@@ -4,16 +4,11 @@
 [Copyable]
 public class CopyableCloneableClass {

-	public static var staticProperty1:String;
-	public static var staticProperty2:String;
-	public static var staticProperty3:String;
+	public static var staticProperty1:String = "Value of first-level static property.";

-	private var _writableField:String;
-	private var _readOnlyField:String = "read-only field value";
+	private var _writableField:String = "Value of first-level writable field.";

-	public var property1:String;
-	public var property2:String;
-	public var property3:String;
+	public var property1:String = "Value of first-level public property.";

 	public function CopyableCloneableClass() {
 	}
@@ -27,7 +22,7 @@
 	}

 	public function get readOnlyField():String {
-		return _readOnlyField;
+		return "Value of first-level read-only field.";
 	}
 }
 }


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

--- frameworks/projects/framework/src/mx/events/Request.as
+++ frameworks/projects/framework/src/mx/events/Request.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2008 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: 8
Author:   open-source-svn-admin@adobe.com
Date:     2007-12-15T01:49:31.087529Z

Log Message:
-----------
The beginning of the open-source Flex SDK.

Populated the flex/sdk/trunk directory with an open-source subset of files from //depot/flex/sdk/...@191097 in the Faramir Perforce server. This changelist is a bit past the 3.0rc0 build.

The Ant scripts will not successfully build yet. They need to be adapted to the open-source subset.

Modified Paths:
--------------
2532 paths were modified

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

--- frameworks/projects/mx/src/mx/skins/halo/HaloBorder.as
+++ frameworks/projects/mx/src/mx/skins/halo/HaloBorder.as
@@ -0,0 +1,1003 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2003-2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.skins.halo
+{
+
+import flash.display.GradientType;
+import flash.display.Graphics;
+import mx.core.IContainer;
+import mx.core.EdgeMetrics;
+import mx.core.FlexVersion;
+import mx.core.IUIComponent;
+import mx.core.mx_internal;
+import mx.graphics.RectangularDropShadow;
+import mx.skins.RectangularBorder;
+import mx.styles.IStyleClient;
+import mx.styles.StyleManager;
+import mx.utils.ColorUtil;
+import mx.graphics.GradientEntry;
+
+use namespace mx_internal;
+
+/**
+ *  Defines the appearance of the default border for the Halo theme.
+ */
+public class HaloBorder extends RectangularBorder
+{
+	include "../../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Class constants
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 *  A look up table for the offsets.
+	 */
+	private static var BORDER_WIDTHS:Object =
+	{
+		none: 0,
+		solid: 1,
+		inset: 2,
+		outset: 2,
+		alert: 3,
+		dropdown: 2,
+		menuBorder: 1,
+		comboNonEdit: 2
+	};
+
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Constructor.
+	 */
+	public function HaloBorder()
+	{
+		super();
+
+		// 'default' is a keyword; setting it this way avoids a compiler error
+		BORDER_WIDTHS["default"] = 3;
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Fields
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 *  A reference to the object used to cast a drop shadow.
+	 *  See the drawDropShadow() method for details.
+	 */
+	private var dropShadow:RectangularDropShadow;
+
+	mx_internal var backgroundColor:Object;
+	mx_internal var backgroundAlphaName:String;
+	mx_internal var backgroundHole:Object;
+	mx_internal var bRoundedCorners:Boolean;
+	mx_internal var radius:Number;
+	mx_internal var radiusObj:Object;
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden properties
+	//
+	//--------------------------------------------------------------------------
+
+	//----------------------------------
+	//  borderMetrics
+	//----------------------------------
+
+	/**
+	 *  @private
+	 *  Internal object that contains the thickness of each edge
+	 *  of the border
+	 */
+	protected var _borderMetrics:EdgeMetrics;
+
+	/**
+	 *  @private
+	 *  Return the thickness of the border edges.
+	 *
+	 *  @return Object	top, bottom, left, right thickness in pixels
+	 */
+	override public function get borderMetrics():EdgeMetrics
+	{
+		if (_borderMetrics)
+			return _borderMetrics;
+
+		var borderThickness:Number;
+
+		// Add support for "custom" style type here when we support it.
+		var borderStyle:String = getStyle("borderStyle");
+
+ 		if (borderStyle == "default" ||
+			borderStyle == "alert")
+ 		{
+ 			if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0)
+	        	_borderMetrics = new EdgeMetrics(0, 0, 0, 0);
+	        else
+	        	return EdgeMetrics.EMPTY;
+ 		}
+
+		else if (borderStyle == "controlBar" ||
+				 borderStyle == "applicationControlBar")
+		{
+			_borderMetrics = new EdgeMetrics(1, 1, 1, 1);
+		}
+
+		else if (borderStyle == "solid")
+		{
+			borderThickness = getStyle("borderThickness");
+			if (isNaN(borderThickness))
+				borderThickness = 0;
+
+			_borderMetrics = new EdgeMetrics(borderThickness,
+											  borderThickness,
+											  borderThickness,
+											  borderThickness);
+
+			var borderSides:String = getStyle("borderSides");
+			if (borderSides != "left top right bottom")
+			{
+				// Adjust metrics based on which sides we have
+				if (borderSides.indexOf("left") == -1)
+					_borderMetrics.left = 0;
+
+				if (borderSides.indexOf("top") == -1)
+					_borderMetrics.top = 0;
+
+				if (borderSides.indexOf("right") == -1)
+					_borderMetrics.right = 0;
+
+				if (borderSides.indexOf("bottom") == -1)
+					_borderMetrics.bottom = 0;
+			}
+		}
+
+		else
+		{
+			borderThickness = BORDER_WIDTHS[borderStyle];
+			if (isNaN(borderThickness))
+				borderThickness = 0;
+
+			_borderMetrics = new EdgeMetrics(borderThickness,
+											 borderThickness,
+											 borderThickness,
+											 borderThickness);
+		}
+
+		return _borderMetrics;
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden methods
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 *  If borderStyle may have changed, clear the cached border metrics.
+	 */
+	override public function styleChanged(styleProp:String):void
+	{
+		if (styleProp == null ||
+			styleProp == "styleName" ||
+			styleProp == "borderStyle" ||
+			styleProp == "borderThickness" ||
+			styleProp == "borderSides")
+		{
+			_borderMetrics = null;
+		}
+
+		invalidateDisplayList();
+	}
+
+	/**
+	 *  @private
+	 *  Draw the border, either 3D or 2D or nothing at all.
+	 */
+	override protected function updateDisplayList(w:Number, h:Number):void
+	{
+		if (isNaN(w) || isNaN(h))
+			return;
+
+		super.updateDisplayList(w, h);
+
+		// Store background color in an object,
+		// so that null is distinct from black.
+		backgroundColor = getBackgroundColor();
+		bRoundedCorners = false;
+		backgroundAlphaName = "backgroundAlpha";
+		backgroundHole = null;
+		radius = 0;
+		radiusObj = null;
+
+		drawBorder(w,h);
+		drawBackground(w,h);
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Methods
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	mx_internal function drawBorder(w:Number, h:Number):void
+	{
+		var borderStyle:String = getStyle("borderStyle");
+
+		// Other styles that we may fetch.
+		var highlightAlphas:Array = getStyle("highlightAlphas");
+
+		var backgroundAlpha:Number;
+
+		var borderCapColor:uint;
+		var borderColor:uint;
+		var borderSides:String;
+		var borderThickness:Number;
+		var buttonColor:uint;
+		var docked:Boolean;
+		var dropdownBorderColor:uint;
+		var fillColors:Array;
+		var footerColors:Array;
+		var highlightColor:uint;
+		var shadowCapColor:uint;
+		var shadowColor:uint;
+		var themeColor:uint;
+		var translucent:Boolean;
+
+		var hole:Object;
+		var drawTopHighlight:Boolean = false;
+
+		var borderColorDrk1:Number
+		var borderColorDrk2:Number
+		var borderColorLt1:Number
+
+		var borderInnerColor:Object;
+
+		var g:Graphics = graphics;
+		g.clear();
+
+		if (borderStyle)
+		{
+			switch (borderStyle)
+			{
+				case "none":
+				{
+					break;
+				}
+
+				case "inset": // used for text input & numeric stepper
+				{
+					borderColor = getStyle("borderColor");
+					borderColorDrk1 =
+						ColorUtil.adjustBrightness2(borderColor, -40);
+					borderColorDrk2 =
+						ColorUtil.adjustBrightness2(borderColor, +25);
+					borderColorLt1 =
+						ColorUtil.adjustBrightness2(borderColor, +40);
+
+					borderInnerColor = backgroundColor;
+					if (borderInnerColor === null ||
+						borderInnerColor === "")
+					{
+						borderInnerColor = borderColor;
+					}
+
+					draw3dBorder(borderColorDrk2, borderColorDrk1, borderColorLt1,
+								 Number(borderInnerColor),
+								 Number(borderInnerColor),
+								 Number(borderInnerColor));
+					break;
+				}
+
+				case "outset":
+				{
+					borderColor = getStyle("borderColor");
+					borderColorDrk1 =
+						ColorUtil.adjustBrightness2(borderColor, -40);
+					borderColorDrk2 =
+						ColorUtil.adjustBrightness2(borderColor, -25);
+					borderColorLt1 =
+						ColorUtil.adjustBrightness2(borderColor, +40);
+
+					borderInnerColor = backgroundColor;
+					if (borderInnerColor === null ||
+						borderInnerColor === "")
+					{
+						borderInnerColor = borderColor;
+					}
+
+					draw3dBorder(borderColorDrk2, borderColorLt1, borderColorDrk1,
+								 Number(borderInnerColor),
+								 Number(borderInnerColor),
+								 Number(borderInnerColor));
+					break;
+				}
+
+				case "alert":
+				case "default":
+				{
+					if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0)
+					{
+						// For Panel/Alert, "borderAlpha" is the alpha for the
+						// title/control/gutter area and "backgroundAlpha"
+						// is the alpha for the content area.
+						// We flip-flop the variables here so the "borderAlpha"
+						// is applied by the background drawing code at the bottom.
+						var contentAlpha:Number = getStyle("backgroundAlpha");
+						backgroundAlpha = getStyle("borderAlpha");
+						backgroundAlphaName = "borderAlpha";
+
+						radius = getStyle("cornerRadius");
+						bRoundedCorners =
+							getStyle("roundedBottomCorners").toString().toLowerCase() == "true";
+						var br:Number = bRoundedCorners ? radius : 0;
+
+						drawDropShadow(0, 0, w, h, radius, radius, br, br);
+
+						// If we don't have rounded corners we need to initialize
+						// the complex radius object so the background fill code
+						// below works correctly.
+						if (!bRoundedCorners)
+							radiusObj = {};
+
+						var parentContainer:IContainer = parent as IContainer;
+
+						if (parentContainer)
+						{
+							var vm:EdgeMetrics = parentContainer.viewMetrics;
+
+							// The backgroundHole is the content area
+							backgroundHole = {x:vm.left, y:vm.top,
+											  w: Math.max(0, w - vm.left - vm.right),
+											  h: Math.max(0, h - vm.top - vm.bottom),
+											  r:0};
+
+							if (backgroundHole.w > 0 && backgroundHole.h > 0)
+							{
+								// Draw a shadow around the content
+								// if the content and panel alpha are different.
+								// This could be a style property if needed
+								if (contentAlpha != backgroundAlpha)
+								{
+									drawDropShadow(backgroundHole.x, backgroundHole.y,
+											backgroundHole.w, backgroundHole.h,
+											0, 0, 0, 0);
+								}
+
+								// Fill in the content area
+								g.beginFill(Number(backgroundColor), contentAlpha);
+								g.drawRect(backgroundHole.x, backgroundHole.y,
+										backgroundHole.w, backgroundHole.h);
+								g.endFill();
+							}
+						}
+
+						// When the content and panel alpha are different, the border
+						// of the panel is drawn using borderColor. We've already
+						// drawn the content background so we set backgroundColor to
+						// borderColor here so the drawing code below is done with the
+						// border color.
+						backgroundColor = getStyle("borderColor");
+					}
+
+					break;
+				}
+
+				case "dropdown": // never used
+				{
+					// The dropdownBorderColor is currently only used
+					// when displaying an error state.
+					dropdownBorderColor = getStyle("dropdownBorderColor");
+
+					drawDropShadow(0, 0, w, h, 4, 0, 0, 4);
+
+					// frame
+					drawRoundRect(
+						0, 0, w, h,
+						{ tl: 4, tr: 0, br: 0, bl: 4 },
+						0x4D555E, 1);
+
+					// gradient
+					drawRoundRect(
+						0, 0, w, h,
+						{ tl: 4, tr: 0, br: 0, bl: 4},
+						[ 0xFFFFFF, 0xFFFFFF ], [ 0.7, 0 ],
+						verticalGradientMatrix(0, 0, w, h));
+
+					// button top higlight edge
+					drawRoundRect(
+						1, 1, w - 1, h - 2,
+						{ tl: 3, tr: 0, br: 0, bl: 3 },
+						0xFFFFFF, 1);
+
+					// button face
+					drawRoundRect(
+						1, 2, w - 1, h - 3,
+						{ tl: 3, tr: 0, br: 0, bl: 3 },
+						[ 0xEEEEEE, 0xFFFFFF ], 1,
+						verticalGradientMatrix(0, 0, w - 1, h - 3));
+
+					if (!isNaN(dropdownBorderColor))
+					{
+						// combo background in error state
+						drawRoundRect(
+							0, 0, w + 1, h,
+							{ tl: 4, tr: 0, br: 0, bl: 4 },
+							dropdownBorderColor, 0.5);
+
+						// button top higlight edge
+						drawRoundRect(
+							1, 1, w - 1, h - 2,
+							{ tl: 3, tr: 0, br: 0, bl: 3 },
+							0xFFFFFF, 1);
+
+						//button face
+						drawRoundRect(
+							1, 2, w - 1, h - 3,
+							{ tl: 3, tr: 0, br: 0, bl: 3 },
+							[ 0xEEEEEE, 0xFFFFFF ], 1,
+							verticalGradientMatrix(0, 0, w - 1, h - 3));
+					}
+
+					// Make sure the border isn't filled in down below.
+					backgroundColor = null;
+
+					break;
+				}
+
+				case "menuBorder":
+				{
+					borderColor = getStyle("borderColor");
+					drawRoundRect(
+						0, 0, w, h, 0,
+						borderColor, 1);
+					drawDropShadow(1, 1, w - 2, h - 2, 0, 0, 0, 0);
+					break;
+				}
+
+				case "comboNonEdit":
+				{
+					break;
+				}
+
+				case "controlBar":
+				{
+					if (w == 0 || h == 0)
+					{
+						// If the width or height is 0, don't draw anything.
+						backgroundColor = null;
+						break;
+					}
+
+					footerColors = getStyle("footerColors");
+					var showChrome:Boolean = footerColors != null;
+					var borderAlpha:Number = getStyle("borderAlpha");
+
+					if (showChrome)
+					{
+						g.lineStyle(0, footerColors.length > 0 ?
+									footerColors[1] : footerColors[0], borderAlpha);
+						g.moveTo(0, 0);
+						g.lineTo(w, 0);
+						g.lineStyle(0, 0, 0);
+
+						// cornerRadius is defined on our parent container. Reach up
+						// and grab it. Yes, this is cheating...
+						if (parent && parent.parent && parent.parent is IStyleClient)
+						{
+							radius =
+								IStyleClient(parent.parent).getStyle("cornerRadius");
+							borderAlpha =
+								IStyleClient(parent.parent).getStyle("borderAlpha");
+						}
+
+						if (isNaN(radius))
+							radius = 0;
+
+						// If our parent has square bottom corners,
+						// use square corners.
+						if (IStyleClient(parent.parent).
+							getStyle("roundedBottomCorners").toString().toLowerCase() != "true")
+						{
+							radius = 0;
+						}
+
+						drawRoundRect(
+							0, 1, w, h - 1,
+							{ tl: 0, tr: 0, bl:radius, br: radius },
+							footerColors, borderAlpha,
+							verticalGradientMatrix(0, 0, w, h));
+
+						if (footerColors.length > 1 &&
+							footerColors[0] != footerColors[1])
+						{
+							drawRoundRect(
+								0, 1, w, h - 1,
+								{ tl: 0, tr: 0, bl: radius, br: radius },
+								[ 0xFFFFFF, 0xFFFFFF ], highlightAlphas,
+								verticalGradientMatrix(0, 0, w, h));
+
+							drawRoundRect(
+								1, 2, w - 2, h - 3,
+								{ tl: 0, tr: 0, bl: radius - 1, br: radius - 1 },
+								footerColors, borderAlpha,
+								verticalGradientMatrix(0, 0, w, h));
+						}
+					}
+
+					// Don't draw the background color below.
+					// We've already handled it here.
+					backgroundColor = null;
+					break;
+				}
+
+				case "applicationControlBar":
+				{
+					fillColors = getStyle("fillColors");
+					backgroundAlpha = getStyle("backgroundAlpha");
+					highlightAlphas = getStyle("highlightAlphas");
+					var fillAlphas:Array = getStyle("fillAlphas");
+					docked = getStyle("docked");
+
+					// background color of the bar
+					var backgroundColorNum:uint = uint(backgroundColor);
+
+					radius = getStyle("cornerRadius");
+					if (!radius)
+						radius = 0;
+
+					drawDropShadow(0, 1, w, h - 1,
+								   radius, radius, radius, radius);
+
+					if (backgroundColor !== null && StyleManager.isValidStyleValue(backgroundColor))
+					{
+						drawRoundRect(
+							0, 1, w, h - 1, radius,
+							backgroundColorNum, backgroundAlpha,
+							verticalGradientMatrix(0, 0, w, h));
+					}
+
+					// surface
+					drawRoundRect(
+						0, 1, w, h - 1, radius,
+						fillColors, fillAlphas,
+						verticalGradientMatrix(0, 0, w, h));
+
+					// highlight
+					drawRoundRect(
+						0, 1, w, (h / 2) - 1,
+						{ tl: radius, tr: radius, bl: 0, br: 0 },
+						[ 0xFFFFFF, 0xFFFFFF ], highlightAlphas,
+						verticalGradientMatrix(0, 0, w, h / 2 - 1));
+
+					// edge
+					drawRoundRect(
+						0, 1, w, h - 1,
+						{ tl: radius, tr: radius, bl: 0, br: 0 },
+						0xFFFFFF, 0.3, null,
+						GradientType.LINEAR, null,
+						{ x: 0, y: 2, w: w, h: h - 2,
+						  r: { tl: radius, tr: radius, bl: 0, br: 0 } });
+
+					// Don't draw the background color below.
+					// We've already handled it here.
+					backgroundColor = null;
+
+					break;
+				}
+
+				default: // ((borderStyle == "solid") || (borderStyle == null))
+				{
+					borderColor = getStyle("borderColor");
+					borderThickness = getStyle("borderThickness");
+					borderSides = getStyle("borderSides");
+					var bHasAllSides:Boolean = true;
+					radius = getStyle("cornerRadius");
+
+					bRoundedCorners =
+						getStyle("roundedBottomCorners").toString().toLowerCase() == "true";
+
+					var holeRadius:Number =
+						Math.max(radius - borderThickness, 0);
+
+					hole = { x: borderThickness,
+							 y: borderThickness,
+							 w: w - borderThickness * 2,
+							 h: h - borderThickness * 2,
+							 r: holeRadius };
+
+					if (!bRoundedCorners)
+					{
+						radiusObj = {tl:radius, tr:radius, bl:0, br:0};
+						hole.r = {tl:holeRadius, tr:holeRadius, bl:0, br:0};
+					}
+
+					if (borderSides != "left top right bottom")
+					{
+						// Convert the radius values from a scalar to an object
+						// because we need to adjust individual radius values
+						// if we are missing any sides.
+						hole.r = { tl: holeRadius,
+								   tr: holeRadius,
+								   bl: bRoundedCorners ? holeRadius : 0,
+								   br: bRoundedCorners ? holeRadius : 0 };
+
+						radiusObj = { tl: radius,
+									  tr: radius,
+									  bl: bRoundedCorners ? radius : 0,
+									  br: bRoundedCorners ? radius : 0};
+
+						borderSides = borderSides.toLowerCase();
+
+						if (borderSides.indexOf("left") == -1)
+						{
+							hole.x = 0;
+							hole.w += borderThickness;
+							hole.r.tl = 0;
+							hole.r.bl = 0;
+							radiusObj.tl = 0;
+							radiusObj.bl = 0;
+							bHasAllSides = false;
+						}
+
+						if (borderSides.indexOf("top") == -1)
+						{
+							hole.y = 0;
+							hole.h += borderThickness;
+							hole.r.tl = 0;
+							hole.r.tr = 0;
+							radiusObj.tl = 0;
+							radiusObj.tr = 0;
+							bHasAllSides = false;
+						}
+
+						if (borderSides.indexOf("right") == -1)
+						{
+							hole.w += borderThickness;
+							hole.r.tr = 0;
+							hole.r.br = 0;
+							radiusObj.tr = 0;
+							radiusObj.br = 0;
+							bHasAllSides = false;
+						}
+
+						if (borderSides.indexOf("bottom") == -1)
+						{
+							hole.h += borderThickness;
+							hole.r.bl = 0;
+							hole.r.br = 0;
+							radiusObj.bl = 0;
+							radiusObj.br = 0;
+							bHasAllSides = false;
+						}
+					}
+
+					if (radius == 0 && bHasAllSides)
+					{
+						drawDropShadow(0, 0, w, h, 0, 0, 0, 0);
+
+						g.beginFill(borderColor);
+						g.drawRect(0, 0, w, h);
+						g.drawRect(borderThickness, borderThickness,
+								   w - 2 * borderThickness,
+								   h - 2 * borderThickness);
+						g.endFill();
+					}
+					else if (radiusObj)
+					{
+						drawDropShadow(0, 0, w, h,
+									   radiusObj.tl, radiusObj.tr,
+									   radiusObj.br, radiusObj.bl);
+
+						drawRoundRect(
+							0, 0, w, h, radiusObj,
+							borderColor, 1,
+							null, null, null, hole);
+
+						// Reset radius here so background drawing
+						// below is correct.
+						radiusObj.tl = Math.max(radius - borderThickness, 0);
+						radiusObj.tr = Math.max(radius - borderThickness, 0);
+						radiusObj.bl = bRoundedCorners ? Math.max(radius - borderThickness, 0) : 0;
+						radiusObj.br = bRoundedCorners ? Math.max(radius - borderThickness, 0) : 0;
+					}
+					else
+					{
+						drawDropShadow(0, 0, w, h,
+									   radius, radius, radius, radius);
+
+						drawRoundRect(
+							0, 0, w, h, radius,
+							borderColor, 1,
+							null, null, null, hole);
+
+						// Reset radius here so background drawing
+						// below is correct.
+						radius = Math.max(getStyle("cornerRadius") -
+								 borderThickness, 0);
+					}
+				}
+			} // switch
+		}
+	}
+
+
+	/**
+	 *  @private
+	 *  Draw a 3D border.
+	 */
+	mx_internal function draw3dBorder(c1:Number, c2:Number, c3:Number,
+								  c4:Number, c5:Number, c6:Number):void
+	{
+		var w:Number = width;
+		var h:Number = height;
+
+		/*
+		// temp color override to verify layout of lines
+		var c1:Number = 0x919999;
+		var c2:Number = 0x6F7777;
+		var c3:Number = 0xD5DDDD;
+		var c4:Number = 0xC4CCCC;
+		var c5:Number = 0xEEEEEE;
+		var c6:Number = 0xD5DDDD;
+		*/
+
+		drawDropShadow(0, 0, width, height, 0, 0, 0, 0);
+
+		var g:Graphics = graphics;
+
+		// outside sides
+		g.beginFill(c1);
+		g.drawRect(0, 0, w, h);
+		g.drawRect(1, 0, w - 2, h);
+		g.endFill();
+
+		// outside top
+		g.beginFill(c2);
+		g.drawRect(1, 0, w - 2, 1);
+		g.endFill();
+
+		// outside bottom
+		g.beginFill(c3);
+		g.drawRect(1, h - 1, w - 2, 1);
+		g.endFill();
+
+		// inside top
+		g.beginFill(c4);
+		g.drawRect(1, 1, w - 2, 1);
+		g.endFill();
+
+		// inside bottom
+		g.beginFill(c5);
+		g.drawRect(1, h - 2, w - 2, 1);
+		g.endFill();
+
+		// inside sides
+		g.beginFill(c6);
+		g.drawRect(1, 2, w - 2, h - 4);
+		g.drawRect(2, 2, w - 4, h - 4);
+		g.endFill();
+	}
+
+	/**
+	 *  @private
+	 */
+	mx_internal function drawBackground(w:Number, h:Number):void
+	{
+		// The behavior used to be that we always create a background
+		// regardless of whether we have a background color or not.
+		// Now we only create a background if we have a color
+		// or if the mouseShield or mouseShieldChildren styles are true.
+		// Look at Container.addEventListener and Container.isBorderNeeded
+		// for the mouseShield logic. JCS 6/24/05
+		if ((backgroundColor !== null &&
+		     backgroundColor !== "") ||
+			getStyle("mouseShield") ||
+			getStyle("mouseShieldChildren"))
+		{
+			var nd:Number = Number(backgroundColor);
+			var alpha:Number = 1.0;
+			var bm:EdgeMetrics = getBackgroundColorMetrics();
+			var g:Graphics = graphics;
+
+			if (isNaN(nd) ||
+				backgroundColor === "" ||
+				backgroundColor === null)
+			{
+				alpha = 0;
+				nd = 0xFFFFFF;
+			}
+			else
+			{
+				alpha = getStyle(backgroundAlphaName);
+			}
+
+			// If we have a non-zero radius, use drawRoundRect()
+			// to fill in the background.
+			if (radius != 0 || backgroundHole)
+			{
+				var bottom:Number = bm.bottom;
+
+				if (radiusObj)
+				{
+					var bottomRadius:Number =
+						bRoundedCorners ? radius : 0;
+
+					radiusObj = { tl: radius,
+							      tr: radius,
+							      bl: bottomRadius,
+							      br: bottomRadius };
+
+					drawRoundRect(
+						bm.left, bm.top,
+						width - (bm.left + bm.right),
+						height - (bm.top + bottom),
+						radiusObj,
+						nd, alpha, null,
+						GradientType.LINEAR, null,
+						backgroundHole);
+				}
+				else
+				{
+					drawRoundRect(
+						bm.left, bm.top,
+						width - (bm.left + bm.right),
+						height - (bm.top + bottom),
+						radius,
+						nd, alpha, null,
+						GradientType.LINEAR, null,
+						backgroundHole);
+				}
+			}
+			else
+			{
+				g.beginFill(nd, alpha);
+				g.drawRect(bm.left, bm.top,
+						   w - bm.right - bm.left, h - bm.bottom - bm.top);
+				g.endFill();
+			}
+		}
+
+		var borderStyle:String = getStyle("borderStyle");
+
+		if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0 && (borderStyle == "alert" || borderStyle == "default") && getStyle("headerColors") == null)
+ 		{
+ 			var highlightAlphas:Array = getStyle("highlightAlphas");
+ 			var highlightAlpha:Number = highlightAlphas ? highlightAlphas[0] : 0.3;
+ 			// edge
+ 			drawRoundRect(
+ 				0, 0, w, h,
+ 				{ tl: radius, tr: radius, bl: 0, br: 0 },
+ 				0xFFFFFF, highlightAlpha, null,
+ 				GradientType.LINEAR, null,
+ 				{ x: 0, y: 1, w: w, h: h - 1,
+ 				  r: { tl: radius, tr: radius, bl: 0, br: 0 } });
+ 		}
+	}
+
+	/**
+	 *  @private
+	 *  Apply a drop shadow using a bitmap filter.
+	 *
+	 *  Bitmap filters are slow, and their slowness is proportional
+	 *  to the number of pixels being filtered.
+	 *  For a large HaloBorder, it's wasteful to create a big shadow.
+	 *  Instead, we'll create the shadow offscreen
+	 *  and stretch it to fit the HaloBorder.
+	 */
+	mx_internal function drawDropShadow(x:Number, y:Number,
+									width:Number, height:Number,
+									tlRadius:Number, trRadius:Number,
+									brRadius:Number, blRadius:Number):void
+	{
+		// Do I need a drop shadow in the first place?  If not, return
+		// immediately.
+		if (getStyle("dropShadowEnabled") == false ||
+		    getStyle("dropShadowEnabled") == "false" ||
+			width == 0 ||
+			height == 0)
+		{
+			return;
+		}
+
+		// Calculate the angle and distance for the shadow
+		var distance:Number = getStyle("shadowDistance");
+		var direction:String = getStyle("shadowDirection");
+		var angle:Number;
+		if (getStyle("borderStyle") == "applicationControlBar")
+		{
+			var docked:Boolean = getStyle("docked");
+			angle = docked ? 90 : getDropShadowAngle(distance, direction);
+			distance = Math.abs(distance);
+		}
+		else
+		{
+			angle = getDropShadowAngle(distance, direction);
+			distance = Math.abs(distance) + 2;
+		}
+
+		// Create a RectangularDropShadow object, set its properties,
+		// and draw the shadow
+		if (!dropShadow)
+			dropShadow = new RectangularDropShadow();
+
+		dropShadow.distance = distance;
+		dropShadow.angle = angle;
+		dropShadow.color = getStyle("dropShadowColor");
+		dropShadow.alpha = 0.4;
+
+		dropShadow.tlRadius = tlRadius;
+		dropShadow.trRadius = trRadius;
+		dropShadow.blRadius = blRadius;
+		dropShadow.brRadius = brRadius;
+
+		dropShadow.drawShadow(graphics, x, y, width, height);
+	}
+
+	/**
+	 *  @private
+	 *  Convert the value of the shadowDirection property
+	 *  into a shadow angle.
+	 */
+	mx_internal function getDropShadowAngle(distance:Number,
+										direction:String):Number
+	{
+		if (direction == "left")
+			return distance >= 0 ? 135 : 225;
+
+		else if (direction == "right")
+			return distance >= 0 ? 45 : 315;
+
+		else // direction == "center"
+			return distance >= 0 ? 90 : 270;
+	}
+
+	/**
+	 *  @private
+	 */
+	mx_internal function getBackgroundColor():Object
+	{
+		var p:IUIComponent = parent as IUIComponent;
+		if (p && !p.enabled)
+		{
+			var color:Object = getStyle("backgroundDisabledColor");
+			if (color !== null && StyleManager.isValidStyleValue(color))
+				return color;
+		}
+
+		return getStyle("backgroundColor");
+	}
+
+	/**
+	 *  @private
+	 */
+	mx_internal function getBackgroundColorMetrics():EdgeMetrics
+	{
+		return borderMetrics;
+	}
+}
+
+}


Whitespace - Change CRLF line endings to LF only. (r=me)

--- test/acceptance/regress/bug_599357.as
+++ test/acceptance/regress/bug_599357.as
@@ -50,284 +50,284 @@
 var testcases = getTestCases();
 test();

-    function getArrayAddII(a:Array, b:int, c:int){
-        try {
-            return (a[(b + c)]);
-        } catch(e) {
-            return (grabError(e, e.toString()));
-        };
-    };
-    function getArrayIntToNumber(_arg1:Array, _arg2:int){
-        var arr:Number = _arg2;
-        return (_arg1[arr]);
-    };
-    function getArrayUintToNumber(_arg1:Array, _arg2:uint){
-        var _local3:Number = _arg2;
-        return (_arg1[_local3]);
-    };
-    function getArrayConstToNumber(_arg1:Array){
-        var _local2:Number = 1;
-        return (_arg1[_local2]);
-    };
-    function getArrayAddIC(a:Array, b:int){
-        try {
-            return (a[(b + 1)]);
-        } catch(e) {
-            return (grabError(e, e.toString()));
-        };
-    };
-    function getArrayAddCI(a:Array, b:int){
-        try {
-            return (a[(1 + b)]);
-        } catch(e) {
-            return (grabError(e, e.toString()));
-        };
-    };
-    function getArraySubII(a:Array, b:int, c:int){
-        try {
-            return (a[(b - c)]);
-        } catch(e) {
-            return (grabError(e, e.toString()));
-        };
-    };
-    function getArraySubIC(a:Array, b:int){
-        try {
-            return (a[(b - 1)]);
-        } catch(e) {
-            return (grabError(e, e.toString()));
-        };
-    };
-    function getArraySubCI(a:Array, b:int){
-        try {
-            return (a[(1 - b)]);
-        } catch(e) {
-            return (grabError(e, e.toString()));
-        };
-    };
-    function getVectorAddII(a:Vector.<int>, b:int, c:int){
-        try {
-            return (a[(b + c)]);
-        } catch(e) {
-            return (grabError(e, e.toString()));
-        };
-    };
-    function getVectorAddIC(a:Vector.<int>, b:int){
-        try {
-            return (a[(b + 1)]);
-        } catch(e) {
-            return (grabError(e, e.toString()));
-        };
-    };
-    function getVectorAddCI(a:Vector.<int>, b:int){
-        try {
-            return (a[(1 + b)]);
-        } catch(e) {
-            return (grabError(e, e.toString()));
-        };
-    };
-    function getVectorSubII(a:Vector.<int>, b:int, c:int){
-        try {
-            return (a[(b - c)]);
-        } catch(e) {
-            return (grabError(e, e.toString()));
-        };
-    };
-    function getVectorSubIC(a:Vector.<int>, b:int){
-        try {
-            return (a[(b - 1)]);
-        } catch(e) {
-            return (grabError(e, e.toString()));
-        };
-    };
-    function getVectorSubCI(a:Vector.<int>, b:int){
-        try {
-            return (a[(1 - b)]);
-        } catch(e) {
-            return (grabError(e, e.toString()));
-        };
-    };
-    function setArrayAddII(a:Array, b:int, c:int, d:int){
-        try {
-            a[(b + c)] = d;
-            return (a[(b + c)]);
-        } catch(e) {
-            return (grabError(e, e.toString()));
-        };
-    };
-    function setArrayIntToNumber(a:Array, b:int, c:int){
-        var d:Number = b;
-        a[d] = c;
-        return (a[d]);
-    };
-    function setArrayUintToNumber(a:Array, b:uint, c:int){
-        var d:Number = b;
-        a[d] = c;
-        return (a[d]);
-    };
-    function setArrayConstToNumber(a:Array, b:int){
-        var d:Number = 1;
-        a[d] = b;
-        return (a[d]);
-    };
-    function setArrayAddIC(a:Array, b:int, d:int){
-        try {
-            a[(b + 1)] = d;
-            return (a[(b + 1)]);
-        } catch(e) {
-            return (grabError(e, e.toString()));
-        };
-    };
-    function setArrayAddCI(a:Array, b:int, d:int){
-        try {
-            a[(1 + b)] = d;
-            return (a[(1 + b)]);
-        } catch(e) {
-            return (grabError(e, e.toString()));
-        };
-    };
-    function setArraySubII(a:Array, b:int, c:int, d:int){
-        try {
-            a[(b - c)] = d;
-            return (a[(b - c)]);
-        } catch(e) {
-            return (grabError(e, e.toString()));
-        };
-    };
-    function setArraySubIC(a:Array, b:int, d:int){
-        try {
-            a[(b - 1)] = d;
-            return (a[(b - 1)]);
-        } catch(e) {
-            return (grabError(e, e.toString()));
-        };
-    };
-    function setArraySubCI(a:Array, b:int, d:int){
-        try {
-            a[(1 - b)] = d;
-            return (a[(1 - b)]);
-        } catch(e) {
-            return (grabError(e, e.toString()));
-        };
-    };
-    function setVectorAddII(a:Vector.<int>, b:int, c:int, d:int){
-        try {
-            a[(b + c)] = d;
-            return (a[(b + c)]);
-        } catch(e) {
-            return (grabError(e, e.toString()));
-        };
-    };
-    function setVectorAddIC(a:Vector.<int>, b:int, d:int){
-        try {
-            a[(b + 1)] = d;
-            return (a[(b + 1)]);
-        } catch(e) {
-            return (grabError(e, e.toString()));
-        };
-    };
-    function setVectorAddCI(a:Vector.<int>, b:int, d:int){
-        try {
-            a[(1 + b)] = d;
-            return (a[(1 + b)]);
-        } catch(e) {
-            return (grabError(e, e.toString()));
-        };
-    };
-    function setVectorSubII(a:Vector.<int>, b:int, c:int, d:int){
-        try {
-            a[(b - c)] = d;
-            return (a[(b - c)]);
-        } catch(e) {
-            return (grabError(e, e.toString()));
-        };
-    };
-    function setVectorSubIC(a:Vector.<int>, b:int, d:int){
-        try {
-            a[(b - 1)] = d;
-            return (a[(b - 1)]);
-        } catch(e) {
-            return (grabError(e, e.toString()));
-        };
-    };
-    function setVectorSubCI(a:Vector.<int>, b:int, d:int){
-        try {
-            a[(1 - b)] = d;
-            return (a[(1 - b)]);
-        } catch(e) {
-            return (grabError(e, e.toString()));
-        };
-    };
+    function getArrayAddII(a:Array, b:int, c:int){
+        try {
+            return (a[(b + c)]);
+        } catch(e) {
+            return (grabError(e, e.toString()));
+        };
+    };
+    function getArrayIntToNumber(_arg1:Array, _arg2:int){
+        var arr:Number = _arg2;
+        return (_arg1[arr]);
+    };
+    function getArrayUintToNumber(_arg1:Array, _arg2:uint){
+        var _local3:Number = _arg2;
+        return (_arg1[_local3]);
+    };
+    function getArrayConstToNumber(_arg1:Array){
+        var _local2:Number = 1;
+        return (_arg1[_local2]);
+    };
+    function getArrayAddIC(a:Array, b:int){
+        try {
+            return (a[(b + 1)]);
+        } catch(e) {
+            return (grabError(e, e.toString()));
+        };
+    };
+    function getArrayAddCI(a:Array, b:int){
+        try {
+            return (a[(1 + b)]);
+        } catch(e) {
+            return (grabError(e, e.toString()));
+        };
+    };
+    function getArraySubII(a:Array, b:int, c:int){
+        try {
+            return (a[(b - c)]);
+        } catch(e) {
+            return (grabError(e, e.toString()));
+        };
+    };
+    function getArraySubIC(a:Array, b:int){
+        try {
+            return (a[(b - 1)]);
+        } catch(e) {
+            return (grabError(e, e.toString()));
+        };
+    };
+    function getArraySubCI(a:Array, b:int){
+        try {
+            return (a[(1 - b)]);
+        } catch(e) {
+            return (grabError(e, e.toString()));
+        };
+    };
+    function getVectorAddII(a:Vector.<int>, b:int, c:int){
+        try {
+            return (a[(b + c)]);
+        } catch(e) {
+            return (grabError(e, e.toString()));
+        };
+    };
+    function getVectorAddIC(a:Vector.<int>, b:int){
+        try {
+            return (a[(b + 1)]);
+        } catch(e) {
+            return (grabError(e, e.toString()));
+        };
+    };
+    function getVectorAddCI(a:Vector.<int>, b:int){
+        try {
+            return (a[(1 + b)]);
+        } catch(e) {
+            return (grabError(e, e.toString()));
+        };
+    };
+    function getVectorSubII(a:Vector.<int>, b:int, c:int){
+        try {
+            return (a[(b - c)]);
+        } catch(e) {
+            return (grabError(e, e.toString()));
+        };
+    };
+    function getVectorSubIC(a:Vector.<int>, b:int){
+        try {
+            return (a[(b - 1)]);
+        } catch(e) {
+            return (grabError(e, e.toString()));
+        };
+    };
+    function getVectorSubCI(a:Vector.<int>, b:int){
+        try {
+            return (a[(1 - b)]);
+        } catch(e) {
+            return (grabError(e, e.toString()));
+        };
+    };
+    function setArrayAddII(a:Array, b:int, c:int, d:int){
+        try {
+            a[(b + c)] = d;
+            return (a[(b + c)]);
+        } catch(e) {
+            return (grabError(e, e.toString()));
+        };
+    };
+    function setArrayIntToNumber(a:Array, b:int, c:int){
+        var d:Number = b;
+        a[d] = c;
+        return (a[d]);
+    };
+    function setArrayUintToNumber(a:Array, b:uint, c:int){
+        var d:Number = b;
+        a[d] = c;
+        return (a[d]);
+    };
+    function setArrayConstToNumber(a:Array, b:int){
+        var d:Number = 1;
+        a[d] = b;
+        return (a[d]);
+    };
+    function setArrayAddIC(a:Array, b:int, d:int){
+        try {
+            a[(b + 1)] = d;
+            return (a[(b + 1)]);
+        } catch(e) {
+            return (grabError(e, e.toString()));
+        };
+    };
+    function setArrayAddCI(a:Array, b:int, d:int){
+        try {
+            a[(1 + b)] = d;
+            return (a[(1 + b)]);
+        } catch(e) {
+            return (grabError(e, e.toString()));
+        };
+    };
+    function setArraySubII(a:Array, b:int, c:int, d:int){
+        try {
+            a[(b - c)] = d;
+            return (a[(b - c)]);
+        } catch(e) {
+            return (grabError(e, e.toString()));
+        };
+    };
+    function setArraySubIC(a:Array, b:int, d:int){
+        try {
+            a[(b - 1)] = d;
+            return (a[(b - 1)]);
+        } catch(e) {
+            return (grabError(e, e.toString()));
+        };
+    };
+    function setArraySubCI(a:Array, b:int, d:int){
+        try {
+            a[(1 - b)] = d;
+            return (a[(1 - b)]);
+        } catch(e) {
+            return (grabError(e, e.toString()));
+        };
+    };
+    function setVectorAddII(a:Vector.<int>, b:int, c:int, d:int){
+        try {
+            a[(b + c)] = d;
+            return (a[(b + c)]);
+        } catch(e) {
+            return (grabError(e, e.toString()));
+        };
+    };
+    function setVectorAddIC(a:Vector.<int>, b:int, d:int){
+        try {
+            a[(b + 1)] = d;
+            return (a[(b + 1)]);
+        } catch(e) {
+            return (grabError(e, e.toString()));
+        };
+    };
+    function setVectorAddCI(a:Vector.<int>, b:int, d:int){
+        try {
+            a[(1 + b)] = d;
+            return (a[(1 + b)]);
+        } catch(e) {
+            return (grabError(e, e.toString()));
+        };
+    };
+    function setVectorSubII(a:Vector.<int>, b:int, c:int, d:int){
+        try {
+            a[(b - c)] = d;
+            return (a[(b - c)]);
+        } catch(e) {
+            return (grabError(e, e.toString()));
+        };
+    };
+    function setVectorSubIC(a:Vector.<int>, b:int, d:int){
+        try {
+            a[(b - 1)] = d;
+            return (a[(b - 1)]);
+        } catch(e) {
+            return (grabError(e, e.toString()));
+        };
+    };
+    function setVectorSubCI(a:Vector.<int>, b:int, d:int){
+        try {
+            a[(1 - b)] = d;
+            return (a[(1 - b)]);
+        } catch(e) {
+            return (grabError(e, e.toString()));
+        };
+    };

 	function getTestCases() {
-        var array:Array = new Array();
-        var index:int = 0;
-        var arr:Array = [1, 2, 3, 4, 5];
-        var vec:Vector.<int> = new Vector.<int>();
-        vec.fixed = false;
-        vec[0] = 1;
-        vec[1] = 2;
-        vec[2] = 3;
-        vec[3] = 4;
-        vec[4] = 5;
-        array[index++] = new TestCase(SECTION, "array[1+2]", 4, getArrayAddII(arr, 1, 2));
-        array[index++] = new TestCase(SECTION, "array[1+ -2]", undefined, getArrayAddII(arr, 1, -2));
-        array[index++] = new TestCase(SECTION, "array[0x7fffffff+0x7fffffff]", undefined, getArrayAddII(arr, 0x7fffffff, 0x7fffffff));
-        array[index++] = new TestCase(SECTION, "array[0x7fffffff+ -0x7fffffff]", 1, getArrayAddII(arr, 0x7fffffff, -0x7fffffff));
-        array[index++] = new TestCase(SECTION, "array[-0x7fffffff+ -0x7fffffff]", undefined, getArrayAddII(arr, -0x7fffffff, -0x7fffffff));
-        array[index++] = new TestCase(SECTION, "array[2+1], where 1 is const", 4, getArrayAddIC(arr, 2));
-        array[index++] = new TestCase(SECTION, "array[2-1], where 1 is const", 2, getArraySubIC(arr, 2));
-        array[index++] = new TestCase(SECTION, "array[1+2], where 1 is const", 4, getArrayAddCI(arr, 2));
-        array[index++] = new TestCase(SECTION, "array[1-2], where 1 is const", undefined, getArraySubCI(arr, 2));
-        array[index++] = new TestCase(SECTION, "array[2-1]", 2, getArraySubII(arr, 2, 1));
-        array[index++] = new TestCase(SECTION, "array[0x80000000-0x80000000]", 1, getArraySubII(arr, 0x80000000, 0x80000000));
-        array[index++] = new TestCase(SECTION, "array[0x80000000+0x80000000]", undefined, getArrayAddII(arr, 0x80000000, 0x80000000));
-
-        array[index++] = new TestCase(SECTION, "vector[1+2]", 4, getVectorAddII(vec, 1, 2));
-        array[index++] = new TestCase(SECTION, "vector[1+ -2]", "Error #1069", getVectorAddII(vec, 1, -2));
-        array[index++] = new TestCase(SECTION, "vector[0x7fffffff+0x7fffffff]", "Error #1125", getVectorAddII(vec, 0x7fffffff, 0x7fffffff));
-        array[index++] = new TestCase(SECTION, "vector[0x7fffffff+ -0x7fffffff]", 1, getVectorAddII(vec, 0x7fffffff, -0x7fffffff));
-        array[index++] = new TestCase(SECTION, "vector[-0x7fffffff+ -0x7fffffff]", "Error #1069", getVectorAddII(vec, -0x7fffffff, -0x7fffffff));
-        array[index++] = new TestCase(SECTION, "vector[2+1], where 1 is const", 4, getVectorAddIC(vec, 2));
-        array[index++] = new TestCase(SECTION, "vector[2-1], where 1 is const", 2, getVectorSubIC(vec, 2));
-        array[index++] = new TestCase(SECTION, "vector[1+2], where 1 is const", 4, getVectorAddCI(vec, 2));
-        array[index++] = new TestCase(SECTION, "vector[1-2], where 1 is const", "Error #1069", getVectorSubCI(vec, 2));
-        array[index++] = new TestCase(SECTION, "vector[2-1]", 2, getVectorSubII(vec, 2, 1));
-        array[index++] = new TestCase(SECTION, "vector[0x80000000-0x80000000]", 1, getVectorSubII(vec, 0x80000000, 0x80000000));
-        array[index++] = new TestCase(SECTION, "vector[0x80000000+0x80000000]", "Error #1069", getVectorAddII(vec, 0x80000000, 0x80000000));
-
-        array[index++] = new TestCase(SECTION, "array[1], where 1 is a const stored in a Number var", 2, getArrayConstToNumber(arr));
-        array[index++] = new TestCase(SECTION, "array[1], where 1 is a int stored in a Number var", 2, getArrayIntToNumber(arr, 1));
-        array[index++] = new TestCase(SECTION, "array[1], where 1 is a uint stored in a Number var", 2, getArrayUintToNumber(arr, 1));
-
-        array[index++] = new TestCase(SECTION, "set array[1], where 1 is a const stored in a Number var", 100, setArrayConstToNumber(arr, 100));
-        array[index++] = new TestCase(SECTION, "set array[1], where 1 is a int stored in a Number var", 101, setArrayIntToNumber(arr, 1, 101));
-        array[index++] = new TestCase(SECTION, "set array[1], where 1 is a uint stored in a Number var", 102, setArrayUintToNumber(arr, 1, 102));
-
-        array[index++] = new TestCase(SECTION, "set array[1+2]", 10, setArrayAddII(arr, 1, 2, 10));
-        array[index++] = new TestCase(SECTION, "set array[1+ -2]", 11, setArrayAddII(arr, 1, -2, 11));
-        array[index++] = new TestCase(SECTION, "set array[0x7fffffff+0x7fffffff]", 12, setArrayAddII(arr, 0x7fffffff, 0x7fffffff, 12));
-        array[index++] = new TestCase(SECTION, "set array[0x7fffffff+ -0x7fffffff]", 13, setArrayAddII(arr, 0x7fffffff, -0x7fffffff, 13));
-        array[index++] = new TestCase(SECTION, "set array[-0x7fffffff+ -0x7fffffff]", 14, setArrayAddII(arr, -0x7fffffff, -0x7fffffff, 14));
-        array[index++] = new TestCase(SECTION, "set array[2+1], where 1 is const", 15, setArrayAddIC(arr, 2, 15));
-        array[index++] = new TestCase(SECTION, "set array[1+2], where 1 is const", 17, setArrayAddCI(arr, 2, 17));
-        array[index++] = new TestCase(SECTION, "set array[2-1], where 1 is const", 16, setArraySubIC(arr, 2, 16));
-        array[index++] = new TestCase(SECTION, "set array[1-2], where 1 is const", 18, setArraySubCI(arr, 2, 18));
-        array[index++] = new TestCase(SECTION, "set array[2-1]", 19, setArraySubII(arr, 2, 1, 19));
-        array[index++] = new TestCase(SECTION, "set array[-0x7fffffff- 0x7fffffff]", 20, setArraySubII(arr, -0x7fffffff, 0x7fffffff, 20));
-
-        array[index++] = new TestCase(SECTION, "set vector[1+2]", 10, setVectorAddII(vec, 1, 2, 10));
-        array[index++] = new TestCase(SECTION, "set vector[1+ -2]", "Error #1056", setVectorAddII(vec, 1, -2, 11));
-        array[index++] = new TestCase(SECTION, "set vector[0x7fffffff+0x7fffffff]", "Error #1125", setVectorAddII(vec, 0x7fffffff, 0x7fffffff, 12));
-        array[index++] = new TestCase(SECTION, "set vector[0x7fffffff+ -0x7fffffff]", 13, setVectorAddII(vec, 0x7fffffff, -0x7fffffff, 13));
-        array[index++] = new TestCase(SECTION, "set vector[-0x7fffffff+ -0x7fffffff]", "Error #1056", setVectorAddII(vec, -0x7fffffff, -0x7fffffff, 14));
-        array[index++] = new TestCase(SECTION, "set vector[2+1], where 1 is const", 15, setVectorAddIC(vec, 2, 15));
-        array[index++] = new TestCase(SECTION, "set vector[2-1], where 1 is const", 16, setVectorSubIC(vec, 2, 16));
-        array[index++] = new TestCase(SECTION, "set vector[1+2], where 1 is const", 17, setVectorAddCI(vec, 2, 17));
-        array[index++] = new TestCase(SECTION, "set vector[1-2], where 1 is const", "Error #1056", setVectorSubCI(vec, 2, 18));
-        array[index++] = new TestCase(SECTION, "set vector[1-1], where 1 is const", 18, setVectorSubCI(vec, 1, 18));
-        array[index++] = new TestCase(SECTION, "set vector[2-1]", 19, setVectorSubII(vec, 2, 1, 19));
-        array[index++] = new TestCase(SECTION, "set vector[-0x7fffffff- 0x7fffffff]", "Error #1056", setVectorSubII(vec, -0x7fffffff, 0x7fffffff, 19));
-
+        var array:Array = new Array();
+        var index:int = 0;
+        var arr:Array = [1, 2, 3, 4, 5];
+        var vec:Vector.<int> = new Vector.<int>();
+        vec.fixed = false;
+        vec[0] = 1;
+        vec[1] = 2;
+        vec[2] = 3;
+        vec[3] = 4;
+        vec[4] = 5;
+        array[index++] = new TestCase(SECTION, "array[1+2]", 4, getArrayAddII(arr, 1, 2));
+        array[index++] = new TestCase(SECTION, "array[1+ -2]", undefined, getArrayAddII(arr, 1, -2));
+        array[index++] = new TestCase(SECTION, "array[0x7fffffff+0x7fffffff]", undefined, getArrayAddII(arr, 0x7fffffff, 0x7fffffff));
+        array[index++] = new TestCase(SECTION, "array[0x7fffffff+ -0x7fffffff]", 1, getArrayAddII(arr, 0x7fffffff, -0x7fffffff));
+        array[index++] = new TestCase(SECTION, "array[-0x7fffffff+ -0x7fffffff]", undefined, getArrayAddII(arr, -0x7fffffff, -0x7fffffff));
+        array[index++] = new TestCase(SECTION, "array[2+1], where 1 is const", 4, getArrayAddIC(arr, 2));
+        array[index++] = new TestCase(SECTION, "array[2-1], where 1 is const", 2, getArraySubIC(arr, 2));
+        array[index++] = new TestCase(SECTION, "array[1+2], where 1 is const", 4, getArrayAddCI(arr, 2));
+        array[index++] = new TestCase(SECTION, "array[1-2], where 1 is const", undefined, getArraySubCI(arr, 2));
+        array[index++] = new TestCase(SECTION, "array[2-1]", 2, getArraySubII(arr, 2, 1));
+        array[index++] = new TestCase(SECTION, "array[0x80000000-0x80000000]", 1, getArraySubII(arr, 0x80000000, 0x80000000));
+        array[index++] = new TestCase(SECTION, "array[0x80000000+0x80000000]", undefined, getArrayAddII(arr, 0x80000000, 0x80000000));
+
+        array[index++] = new TestCase(SECTION, "vector[1+2]", 4, getVectorAddII(vec, 1, 2));
+        array[index++] = new TestCase(SECTION, "vector[1+ -2]", "Error #1069", getVectorAddII(vec, 1, -2));
+        array[index++] = new TestCase(SECTION, "vector[0x7fffffff+0x7fffffff]", "Error #1125", getVectorAddII(vec, 0x7fffffff, 0x7fffffff));
+        array[index++] = new TestCase(SECTION, "vector[0x7fffffff+ -0x7fffffff]", 1, getVectorAddII(vec, 0x7fffffff, -0x7fffffff));
+        array[index++] = new TestCase(SECTION, "vector[-0x7fffffff+ -0x7fffffff]", "Error #1069", getVectorAddII(vec, -0x7fffffff, -0x7fffffff));
+        array[index++] = new TestCase(SECTION, "vector[2+1], where 1 is const", 4, getVectorAddIC(vec, 2));
+        array[index++] = new TestCase(SECTION, "vector[2-1], where 1 is const", 2, getVectorSubIC(vec, 2));
+        array[index++] = new TestCase(SECTION, "vector[1+2], where 1 is const", 4, getVectorAddCI(vec, 2));
+        array[index++] = new TestCase(SECTION, "vector[1-2], where 1 is const", "Error #1069", getVectorSubCI(vec, 2));
+        array[index++] = new TestCase(SECTION, "vector[2-1]", 2, getVectorSubII(vec, 2, 1));
+        array[index++] = new TestCase(SECTION, "vector[0x80000000-0x80000000]", 1, getVectorSubII(vec, 0x80000000, 0x80000000));
+        array[index++] = new TestCase(SECTION, "vector[0x80000000+0x80000000]", "Error #1069", getVectorAddII(vec, 0x80000000, 0x80000000));
+
+        array[index++] = new TestCase(SECTION, "array[1], where 1 is a const stored in a Number var", 2, getArrayConstToNumber(arr));
+        array[index++] = new TestCase(SECTION, "array[1], where 1 is a int stored in a Number var", 2, getArrayIntToNumber(arr, 1));
+        array[index++] = new TestCase(SECTION, "array[1], where 1 is a uint stored in a Number var", 2, getArrayUintToNumber(arr, 1));
+
+        array[index++] = new TestCase(SECTION, "set array[1], where 1 is a const stored in a Number var", 100, setArrayConstToNumber(arr, 100));
+        array[index++] = new TestCase(SECTION, "set array[1], where 1 is a int stored in a Number var", 101, setArrayIntToNumber(arr, 1, 101));
+        array[index++] = new TestCase(SECTION, "set array[1], where 1 is a uint stored in a Number var", 102, setArrayUintToNumber(arr, 1, 102));
+
+        array[index++] = new TestCase(SECTION, "set array[1+2]", 10, setArrayAddII(arr, 1, 2, 10));
+        array[index++] = new TestCase(SECTION, "set array[1+ -2]", 11, setArrayAddII(arr, 1, -2, 11));
+        array[index++] = new TestCase(SECTION, "set array[0x7fffffff+0x7fffffff]", 12, setArrayAddII(arr, 0x7fffffff, 0x7fffffff, 12));
+        array[index++] = new TestCase(SECTION, "set array[0x7fffffff+ -0x7fffffff]", 13, setArrayAddII(arr, 0x7fffffff, -0x7fffffff, 13));
+        array[index++] = new TestCase(SECTION, "set array[-0x7fffffff+ -0x7fffffff]", 14, setArrayAddII(arr, -0x7fffffff, -0x7fffffff, 14));
+        array[index++] = new TestCase(SECTION, "set array[2+1], where 1 is const", 15, setArrayAddIC(arr, 2, 15));
+        array[index++] = new TestCase(SECTION, "set array[1+2], where 1 is const", 17, setArrayAddCI(arr, 2, 17));
+        array[index++] = new TestCase(SECTION, "set array[2-1], where 1 is const", 16, setArraySubIC(arr, 2, 16));
+        array[index++] = new TestCase(SECTION, "set array[1-2], where 1 is const", 18, setArraySubCI(arr, 2, 18));
+        array[index++] = new TestCase(SECTION, "set array[2-1]", 19, setArraySubII(arr, 2, 1, 19));
+        array[index++] = new TestCase(SECTION, "set array[-0x7fffffff- 0x7fffffff]", 20, setArraySubII(arr, -0x7fffffff, 0x7fffffff, 20));
+
+        array[index++] = new TestCase(SECTION, "set vector[1+2]", 10, setVectorAddII(vec, 1, 2, 10));
+        array[index++] = new TestCase(SECTION, "set vector[1+ -2]", "Error #1056", setVectorAddII(vec, 1, -2, 11));
+        array[index++] = new TestCase(SECTION, "set vector[0x7fffffff+0x7fffffff]", "Error #1125", setVectorAddII(vec, 0x7fffffff, 0x7fffffff, 12));
+        array[index++] = new TestCase(SECTION, "set vector[0x7fffffff+ -0x7fffffff]", 13, setVectorAddII(vec, 0x7fffffff, -0x7fffffff, 13));
+        array[index++] = new TestCase(SECTION, "set vector[-0x7fffffff+ -0x7fffffff]", "Error #1056", setVectorAddII(vec, -0x7fffffff, -0x7fffffff, 14));
+        array[index++] = new TestCase(SECTION, "set vector[2+1], where 1 is const", 15, setVectorAddIC(vec, 2, 15));
+        array[index++] = new TestCase(SECTION, "set vector[2-1], where 1 is const", 16, setVectorSubIC(vec, 2, 16));
+        array[index++] = new TestCase(SECTION, "set vector[1+2], where 1 is const", 17, setVectorAddCI(vec, 2, 17));
+        array[index++] = new TestCase(SECTION, "set vector[1-2], where 1 is const", "Error #1056", setVectorSubCI(vec, 2, 18));
+        array[index++] = new TestCase(SECTION, "set vector[1-1], where 1 is const", 18, setVectorSubCI(vec, 1, 18));
+        array[index++] = new TestCase(SECTION, "set vector[2-1]", 19, setVectorSubII(vec, 2, 1, 19));
+        array[index++] = new TestCase(SECTION, "set vector[-0x7fffffff- 0x7fffffff]", "Error #1056", setVectorSubII(vec, -0x7fffffff, 0x7fffffff, 19));
+
         return (array);
 }


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

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

 package mx.effects.effectClasses
 {


Session bits.

Session bits.

git-svn-id: 41360ad359616a519dfba9f2f48af1afe653c9f7@20 be230a1c-449f-4488-b524-6273046f66f0


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

--- frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkImageAutomationImpl.as
+++ frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkImageAutomationImpl.as
@@ -1,13 +1,3 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2010 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.automation.delegates.components
 {


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

--- frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkImageAutomationImpl.as
+++ frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkImageAutomationImpl.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2010 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.automation.delegates.components
 {


added Weave.getObject()

added Weave.getObject()


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

--- frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkFormItemAutomationImpl.as
+++ frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkFormItemAutomationImpl.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2010 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.automation.delegates.components
 {


Checking if interval timer exists before stopping it

--- src/org/openvv/OVVAsset.as
+++ src/org/openvv/OVVAsset.as
@@ -586,9 +586,11 @@
 			switch(event.type){
 				case VPAIDEvent.AdVideoComplete:
 					// stop time on ad completion
-					_intervalTimer.stop();
-					_intervalTimer.removeEventListener(TimerEvent.TIMER, onIntervalCheck);
-					_intervalTimer = null;
+					if (_intervalTimer) {
+						_intervalTimer.stop();
+						_intervalTimer.removeEventListener(TimerEvent.TIMER, onIntervalCheck);
+						_intervalTimer = null;
+					}
 					break;
 				case VPAIDEvent.AdImpression:
 					adStarted = true;


Transferred from the Adobe Open Source Subversion Repository

Revision: 13741
Author:   rbhat@adobe.com
Date:     2010-01-25T04:51:01.548340Z

Log Message:
-----------
Changes made by sbannur. Removed patent related comments from the files.
Reviewed By: Sameer Bhatt

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/datavisualization/src/mx/charts/chartClasses/IDataCanvas.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/datavisualization/src/mx/charts/chartClasses/CartesianDataCanvas.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/datavisualization/src/mx/charts/chartClasses/CartesianCanvasValue.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/datavisualization/src/mx/charts/chartClasses/PolarDataCanvas.as</path>

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

--- frameworks/projects/charts/src/mx/charts/chartClasses/PolarDataCanvas.as
+++ frameworks/projects/charts/src/mx/charts/chartClasses/PolarDataCanvas.as
@@ -7,10 +7,6 @@
 //  NOTICE: Adobe permits you to use, modify, and distribute this file
 //  in accordance with the terms of the license agreement accompanying it.
 //
-//  Adobe Patent or Adobe Patent Pending Invention Included Within this File
-//  Adobe patent application tracking B503, entitled Charting Data Graphics -
-//  graphics drawing API that allows to draw in data space, inventors Ely Greenfield.
-//  AdobePatentID="B503"
 //
 ////////////////////////////////////////////////////////////////////////////////////////


Transferred from the Adobe Open Source Subversion Repository

Revision: 17428
Author:   cframpto@adobe.com
Date:     2010-08-20T17:38:41.133995Z

Log Message:
-----------
updateTypicalCellSizes was calling gridDimensions.setTypicalCellWidth if an explicit column width was used.

Doc that GridColumn.labelFunction needs to be an idempotent function.

QE notes: grid dimensions may change if explicit column widths - tests have been excluded already
Doc notes:
Bugs: SDK-27503, SDK-27506, SDK-27466
Reviewer: Kevin
Tests run: checkintests, cyclone
Is noteworthy for integration: no

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

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

--- frameworks/projects/spark/src/spark/components/gridClasses/GridColumn.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridColumn.as
@@ -399,7 +399,7 @@
     [Bindable("labelFunctionChanged")]

     /**
-     *  A function that converts a dataProvider item into a column-specific string
+     *  A idempotent function that converts a dataProvider item into a column-specific string
      *  that's used to initialize the item renderer's label property.
      *  A labelFunction can be use to combine the values of several dataProvider item
      *  properties into a single string.  If specified, this property is used by the


Transferred from the Adobe Open Source Subversion Repository

Revision: 18038
Author:   hmuller@adobe.com
Date:     2010-10-06T20:10:48.132975Z

Log Message:
-----------
Added DataGrid rowBackground skin part.

Added DataGrid/resizableColumns cover property for the Grid resizableColumns property.

Updated DataGrid skin part ASDoc.

Removed ColumnHeaderBarSkin.

Changed GridEvent itemRenderer property type from IVisualElement to IGridItemRenderer.

Added ColumnHeaderBar support for dispatching separator click/double-click events.

QE notes:
Doc notes:
Bugs:
Reviewer: Kevin
Tests run: checkin, mustella cyclone
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Grid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/events/GridEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/SparkClasses.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/ColumnHeaderBar.as</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/ColumnHeaderBarSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridColumn.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGrid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DataGridSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ColumnHeaderBarLayout.as</path>

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

--- frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as
@@ -971,13 +971,13 @@
         return index;
     }

-    public function getVisibleItemRenderer(rowIndex:int, columnIndex:int):IVisualElement
+    public function getVisibleItemRenderer(rowIndex:int, columnIndex:int):IGridItemRenderer
     {
         const index:int = getVisibleItemRendererIndex(rowIndex, columnIndex);
         if (index == -1 || index >= visibleItemRenderers.length)
             return null;

-        const renderer:IVisualElement = visibleItemRenderers[index];
+        const renderer:IGridItemRenderer = visibleItemRenderers[index];
         return renderer;
     }


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

--- frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkTitleWindowAutomationImpl.as
+++ frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkTitleWindowAutomationImpl.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.automation.delegates.components
 {


Added getCellCount() and getCellAt(), inspired by SimpleGrid.

git-svn-id: b675b909355d5cf946977f44a8ec5a6ceb3782e4@618 ed5b42cb-e716-0410-a449-f6a68f950b19

--- src/as/com/threerings/flex/GridUtil.as
+++ src/as/com/threerings/flex/GridUtil.as
@@ -84,5 +84,34 @@
         row.addChild(item);
         return item;
     }
+
+    /**
+     * Get the number of cells in a grid.
+     */
+    public static function getCellCount (grid :Grid) :int
+    {
+        var count :int = 0;
+        for (var ii :int = 0; ii < grid.numChildren; ii++) {
+            count += (grid.getChildAt(ii) as GridRow).numChildren;
+        }
+        return count;
+    }
+
+    /**
+     * Return the contents of the specified cell. Not super fast, as it
+     * checks each row in order.
+     */
+    public static function getCellAt (grid :Grid, index :int) :UIComponent
+    {
+        for (var ii :int = 0; ii < grid.numChildren; ii++) {
+            var row :GridRow = grid.getChildAt(ii) as GridRow;
+            if (index < row.numChildren) {
+                return (row.getChildAt(index) as GridItem).getChildAt(0) as UIComponent;
+            } else {
+                index -= row.numChildren; // and then on to the next row
+            }
+        }
+        return null; // never found it. throw an out-of-range error?
+    }
 }
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 4363
Author:   dloverin@adobe.com
Date:     2008-12-19T15:44:31.082489Z

Log Message:
-----------
Remove FxApplication properties: application, historyManagementEnabled, resetHistory.

QE Notes: None
Doc Notes: None
Bugs: SDK-16418
Reviewer: Alex
tests: checkintests, Application, controls, containers/Accordion, containers/ApplicationControlBar, containers/ControlBar

FxApplication.as
    Remove application, historyManagementEnabled, resetHistory properties.
UIComponentAccImpl.as
FlexPrintJob.as
BrowserManagerImpl.as
HistoryManagerImpl.as
IBrowserManager.as
    Recode references to historyManagementEnabled and resetHistory.
ControlBar.as
    Fix SDK-16418, ApplicationControlBar does not work in Gumbo in 2009 namespace

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/HistoryManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/BrowserManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/UIComponentAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/printing/FlexPrintJob.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/IBrowserManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ControlBar.as</path>

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

--- frameworks/projects/framework/src/mx/managers/IBrowserManager.as
+++ frameworks/projects/framework/src/mx/managers/IBrowserManager.as
@@ -107,7 +107,7 @@
      *  Initializes the BrowserManager. The BrowserManager will get the initial URL. If it
      *  has a fragment, it will dispatch a BROWSER_URL_CHANGE event.
      *
-     *  This method sets the value of the Application.application.historyManagementEnabled
+     *  This method sets the value of the ApplicationGlobals.application.historyManagementEnabled
      *  property to false because the HistoryManager generally interferes with your
      *  application's handling of URL fragments.
      *
@@ -121,7 +121,7 @@
      *  prepare the BrowserManager for further calls from the HistoryManager. You cannot use
      *  the HistoryManager and call the setFragment() method from the application.
      *  As a result, the init() method usually sets
-     *  the value of the Application.application.historyManagementEnabled property to false to disable
+     *  the value of the ApplicationGlobals.application.historyManagementEnabled property to false to disable
      *  the HistoryManager.
      */
     function initForHistoryManager():void;


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

--- frameworks/projects/mx/src/mx/controls/videoClasses/NCManager.as
+++ frameworks/projects/mx/src/mx/controls/videoClasses/NCManager.as
@@ -47,6 +47,11 @@
      *  Default connection timeout in milliseconds.
      *
      *  @see #timeout
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static const DEFAULT_TIMEOUT:Number = 60000;

@@ -116,6 +121,11 @@
      *
The second way is the user can directly set this by
      * accessing the ncMgr property in FLVPlayback or VideoPlayer and
      * set fallbackServerName property directly.

+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public var fallbackServerName:String;

@@ -245,6 +255,11 @@

     /*
      *  @see INCManager#timeout
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get timeout():uint
 	{
@@ -273,6 +288,11 @@
      *  not value set via bitrate.
      *
      *  @see INCManager#bitrate
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get bitrate():Number
 	{
@@ -284,6 +304,11 @@
      *  RTMP streaming uses autodetection.
      *
      *  @see INCManager#bitrate
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function set bitrate(b:Number):void
 	{
@@ -297,6 +322,11 @@

     /**
      *  @see INCManager#videoPlayer
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get videoPlayer():VideoPlayer
 	{
@@ -322,6 +352,11 @@

     /**
      *  @see INCManagernetConnection
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get netConnection():NetConnection
 	{
@@ -340,6 +375,11 @@

     /**
      *  @see INCManager#streamName
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get streamName():String
 	{
@@ -358,6 +398,11 @@

     /**
      *  @see INCManager#streamLength
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get streamLength():Number
 	{
@@ -376,6 +421,11 @@

     /**
      *  @see INCManager#streamWidth
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get streamWidth():Number
 	{
@@ -394,6 +444,11 @@

     /**
      *  @see INCManager#streamHeight
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get streamHeight():Number
 	{
@@ -408,6 +463,11 @@

     /**
      *  @see INCManager#isRTMP
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function isRTMP():Boolean
     {
@@ -416,6 +476,11 @@

     /**
      *  @see INCManager#connectToURL()
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function connectToURL(url:String):Boolean
     {
@@ -459,6 +524,11 @@

 	/**
 	 *  @see INCManager#connectAgain()
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function connectAgain():Boolean
 	{
@@ -493,6 +563,11 @@

     /**
      * INCManager#reconnect
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function reconnect():void
     {
@@ -510,6 +585,11 @@

     /**
      *  @see INCManager#close
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function close():void
     {


- bugfix: changed defintion of UIObject#m_isRendered to default to true. As it turns out, there's actually no way this ever gets set to true for a UIObject afterwards, causing every validation to hide the element.

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

--- src/reprise/ui/UIObject.as
+++ src/reprise/ui/UIObject.as
@@ -49,7 +49,7 @@
 		protected var m_initialized : Boolean;
 		protected var m_firstDraw : Boolean;
 		protected var m_visible : Boolean = true;
-		protected var m_isRendered : Boolean;
+		protected var m_isRendered : Boolean = true;
 		protected var m_isInvalidated : Boolean;
 		protected var m_isValidating : Boolean;


- bugfix: Moved dispatching of DisplayEvent.REMOVED_FROM_DOCUMENT up so that it gets dispatched before removing the element from the display list, allowing the event to bubble.

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

--- src/reprise/ui/UIObject.as
+++ src/reprise/ui/UIObject.as
@@ -930,10 +930,10 @@
 			{
 				m_children.splice(index, 1);
 			}
+			child.dispatchEvent(new DisplayEvent(DisplayEvent.REMOVED_FROM_DOCUMENT, true));
 			child.parent && child.parent.removeChild(child);
 			child.m_parentElement = null;
 			child.setRootElement(null);
-			child.dispatchEvent(new DisplayEvent(DisplayEvent.REMOVED_FROM_DOCUMENT, true));
 			invalidate();
 		}


Removing all type info from RectUtil as having widely-typed return values means the calling syntax is full of casting

--- raw/src/org/yellcorp/lib/geom/RectUtil.as
+++ raw/src/org/yellcorp/lib/geom/RectUtil.as
@@ -24,7 +24,7 @@
      * @return  The object containing the multiplied rectangle.
      */
     public static function multiply(
-        rect:Object, factor:Number, out:Object = null):Object
+        rect:*, factor:Number, out:* = null):*
     {
         if (!out) out = new Rectangle();
         out.x = rect.x * factor;
@@ -56,10 +56,10 @@
      * @return  The object containing the transformed rectangle.
      */
     public static function transform(
-        rect:Object,
+        rect:*,
         xFactor:Number, yFactor:Number,
         xOffset:Number, yOffset:Number,
-        out:Object = null):Object
+        out:* = null):*
     {
         if (!out) out = new Rectangle();
         out.x = rect.x * xFactor + xOffset;
@@ -97,12 +97,12 @@
      * @return  The object containing the result of fitting source
      *          to target.
      */
-    public static function fit(source:Object, target:Object,
+    public static function fit(source:*, target:*,
                                    fitMode:String,
                                    xAlign:Number = 0.5,
                                    yAlign:Number = 0.5,
                                    rounding:Boolean = false,
-                                   out:Object = null):Object
+                                   out:* = null):*
     {
         // copy values to guard against aliasing
         var sw:Number = source.width, sh:Number = source.height;
@@ -184,9 +184,9 @@
      *          rectangle.
      */
     public static function align(
-        source:Object, sourceNormX:Number, sourceNormY:Number,
-        target:Object, targetNormX:Number, targetNormY:Number,
-        out:Object = null):Object
+        source:*, sourceNormX:Number, sourceNormY:Number,
+        target:*, targetNormX:Number, targetNormY:Number,
+        out:* = null):*
     {
         if (!out) out = new Rectangle();
         out.x = target.x + targetNormX * target.width - sourceNormX * source.width;
@@ -211,14 +211,14 @@
      * @return  The object containing the calculated Matrix.
      */
     public static function getTransform(
-        source:Object, target:Object,
+        source:*, target:*,
         out:Matrix = null):Matrix
     {
         if (source.width == 0 || source.height == 0) return null;
         if (!out) out = new Matrix();

-        out.tx = target.left - source.left;
-        out.ty = target.top - source.top;
+        out.tx = target.x - source.x;
+        out.ty = target.y - source.y;
         out.a = target.width / source.width;
         out.b =
         out.c = 0;
@@ -240,7 +240,7 @@
      * @return  The object containing the rectangle with integral coordinates.
      */
     public static function roundOut(
-        rect:Object, out:Object = null):Object
+        rect:*, out:* = null):*
     {
         if (!out) out = new Rectangle();

@@ -267,7 +267,7 @@
      * @return  The object containing the rectangle with integral coordinates.
      */
     public static function roundIn(
-        rect:Object, out:Object = null):Object
+        rect:*, out:* = null):*
     {
         if (!out) out = new Rectangle();

@@ -293,8 +293,8 @@
      *
      * @return  The object containing the mapped point.
      */
-    public static function mapPoint(point:Object,
-        source:Object, target:Object, out:Object = null):Object
+    public static function mapPoint(point:*,
+        source:*, target:*, out:* = null):*
     {
         if (!out) out = new Rectangle();
         out.x = target.x + target.width * (point.x - source.x) / source.width;
@@ -315,7 +315,7 @@
      * @return  The object containing the mapped rectangle.
      */
     public static function mapRect(
-        rect:Object, source:Object, target:Object, out:Object = null):Object
+        rect:*, source:*, target:*, out:* = null):*
     {
         if (!out) out = new Rectangle();
         out.x = target.x + target.width * (rect.x - source.x) / source.width;
@@ -338,7 +338,7 @@
      * @return  The object containing the clamped point.
      */
     public static function clampPoint(
-        point:Object, rect:Object, out:Object = null):Object
+        point:*, rect:*, out:* = null):*
     {
         if (!out) out = new Point();

@@ -346,7 +346,7 @@
         else if (point.x > rect.x + rect.width)  {  out.x = rect.x + rect.width;  }
         else  {  out.x = point.x;  }

-        if (point.y < rect.top)  {  out.y = rect.top;  }
+        if (point.y < rect.y)  {  out.y = rect.y;  }
         else if (point.y > rect.y + rect.height)  {  out.y = rect.y + rect.height;  }
         else  {  out.y = point.y;  }

@@ -370,7 +370,7 @@
      * @return  The object containing the point.
      */
     public static function getNormalizedPoint(
-        rect:Object, xParam:Number, yParam:Number, out:Object = null):Object
+        rect:*, xParam:Number, yParam:Number, out:* = null):*
     {
         if (!out) out = new Point();
         out.x = rect.x + xParam * rect.width;
@@ -391,7 +391,7 @@
      * @return  The object containing the rectangle with the desired area.
      */
     public static function scaleToArea(
-        rect:Object, area:Number, out:Object = null):Object
+        rect:*, area:Number, out:* = null):*
     {
         if (!out) out = new Rectangle();
         var areaRatio:Number = Math.sqrt(area / (rect.width * rect.height));


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

--- frameworks/projects/automation_flashflexkit/src/mx/automation/delegates/flashflexkit/UIMovieClipAutomationImpl.as
+++ frameworks/projects/automation_flashflexkit/src/mx/automation/delegates/flashflexkit/UIMovieClipAutomationImpl.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2009 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: 4205
Author:   clucier@adobe.com
Date:     2008-12-01T19:48:53.571431Z

Log Message:
-----------
Initial baselinePosition support for our new skinnable components.
QE Notes: Please wait until Evtim completes his baseline support in our new layouts to test.
Doc Notes: None
Reviewer: Glenn, Evtim

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxDefaultItemRenderer.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/ItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxHSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxPanel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextGraphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxNumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxTextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/TextView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.as</path>

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

--- frameworks/projects/framework/src/mx/core/IVisualElement.as
+++ frameworks/projects/framework/src/mx/core/IVisualElement.as
@@ -84,6 +84,11 @@
      */
      function get offsets():TransformOffsets;
      function set offsets(value:TransformOffsets):void;
+
+    /**
+     * Documentation is not currently available.
+     */
+     function get baselinePosition():Number;

     /**
      *  The horizontal distance in pixels from the left edge of the component to the


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

--- frameworks/projects/automation/src/mx/automation/delegates/controls/TreeAutomationImpl.as
+++ frameworks/projects/automation/src/mx/automation/delegates/controls/TreeAutomationImpl.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2009 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.
 //
 ////////////////////////////////////////////////////////////////////////////////


Ignore guide layers, just like authoring tool publishing.

--- runtime/src/main/as/flump/xfl/XflMovie.as
+++ runtime/src/main/as/flump/xfl/XflMovie.as
@@ -30,7 +30,9 @@
         } else {
             layers = new Array();
             for each (var layerEl :XML in layerEls) {
-                layers.push(new XflLayer(location, layerEl, _errors, false));
+                if (new XmlConverter(layerEl).getStringAttr("layerType", "") != "guide") {
+                    layers.push(new XflLayer(location, layerEl, _errors, false));
+                }
             }
         }
     }


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

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