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

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


minor changes

minor changes

--- Arguments/src/components/PublishMapPopUpPanel.as
+++ Arguments/src/components/PublishMapPopUpPanel.as
@@ -13,6 +13,7 @@

 	import ValueObjects.CategoryDataV0;

+	import classes.AgoraMap;
 	import classes.Language;

 	import components.AGORAMenu;


fix SFloat.setProperty()

fix SFloat.setProperty()

--- src/aerys/minko/render/shader/SFloat.as
+++ src/aerys/minko/render/shader/SFloat.as
@@ -117,14 +117,52 @@

 		override flash_proxy function setProperty(name : *, value : *) : void
 		{
+			var propertyName		: String		= String(name);
+			var propertyComponent	: uint			= getPropertyWriteComponentMask(propertyName);
+			var propertyNode		: AbstractNode	= getNode(value);
 			var nodeComponent		: uint 			= Components.createContinuous(0, 0, _node.size, _node.size);
-			var propertyComponent	: uint			= Components.stringToComponent(name);
-			var propertyNode		: AbstractNode	= getNode(value);
+
+			propertyNode = new Overwriter(
+				new <AbstractNode>[propertyNode],
+				new <uint>[Components.createContinuous(0, 0, 4, propertyNode.size)]
+			);

 			_node = new Overwriter(
-				new <AbstractNode>[_node, propertyNode],
+				new <AbstractNode>[_node, propertyNode],
 				new <uint>[nodeComponent, propertyComponent]
 			);
+		}
+
+		public static function getPropertyWriteComponentMask(string : String) : uint
+		{
+			var result : uint = 0x04040404;
+
+			for (var i : uint = 0; i < 4; ++i)
+				if (i < string.length)
+					switch (string.charAt(i))
+					{
+						case 'x': case 'X': case 'r': case 'R':
+							result = (0xffffff00 & result) | i;
+							result |= i << (8 * 0);
+							break;
+
+						case 'y': case 'Y': case 'g': case 'G':
+							result = (0xffff00ff & result) | i << 8;
+							break;
+
+						case 'z': case 'Z': case 'b': case 'B':
+							result = (0xff00ffff & result) | i << 16;
+							break;
+
+						case 'w': case 'W': case 'a': case 'A':
+							result = (0x00ffffff & result) | i << 24;
+							break;
+
+						default:
+							throw new Error('Invalid string.');
+					}
+
+			return result;
 		}

 		private function getNode(value : Object) : AbstractNode


Added a fix to removeNulls() to avoid freezing when the last Entity in a World is removed.

--- net/flashpunk/World.as
+++ net/flashpunk/World.as
@@ -884,6 +884,11 @@
 		{
 			var i:int = 0,
 				j:int = a.length;
+			if (j == 1 && a[0] == null)
+			{
+				a.length = 0;
+				return;
+			}
 			while (i < j)
 			{
 				while (a[i] != null) i ++;
@@ -1011,6 +1016,7 @@
 		private var _layerList:Array = [];
 		private var _layerCount:Array = [];
 		private var _layerSort:Boolean;
+		private var _tempArray:Array = [];

 		/** @private */	private var _classCount:Dictionary = new Dictionary;
 		/** @private */	internal var _typeFirst:Object = { };


constant for keep-as3-metadata

constant for keep-as3-metadata

--- source/com/nextgenactionscript/asconfigc/CompilerOptions.as
+++ source/com/nextgenactionscript/asconfigc/CompilerOptions.as
@@ -25,6 +25,7 @@
 		public static const DUMP_CONFIG:String = "dump-config";
 		public static const EXTERNAL_LIBRARY_PATH:String = "external-library-path";
 		public static const JS_OUTPUT_TYPE:String = "js-output-type";
+		public static const KEEP_AS3_METADATA:String = "keep-as3-metadata";
 		public static const LIBRARY_PATH:String = "library-path";
 		public static const LINK_REPORT:String = "link-report";
 		public static const LOAD_CONFIG:String = "load-config";


Transferred from the Adobe Open Source Subversion Repository

Revision: 12850
Author:   jimurphy@adobe.com
Date:     2009-12-11T14:57:14.623098Z

Log Message:
-----------
add 6 new DMV projects to the SDK:
automation
automation_air
automation_dmv
automation_flashflexkit
automation_spark
datavisualization

These projects are setup to build in an ant main call.  There are currently several warnings in the datavisualization project that will be cleaned up.  No checkintests exist for these projects as of yet.

I also modified the exisitng projects build files for easier management of the localization targets, bundle and fat-swc. If the projects that I updated:airframework,airspark,framework,playerglobal,rpc,and spark.  All the new projects have been implemented this same way.

QE notes: DMV folks should run through their tests
Doc notes: probably
Bugs: nope
Reviewer:
Tests run: ran the following targets: compile,checkintests,other.locales and doc
Is noteworthy for integration: no

Modified Paths:
--------------
1404 paths were modified

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

--- frameworks/projects/automation/src/mx/automation/delegates/controls/MenuAutomationImpl.as
+++ frameworks/projects/automation/src/mx/automation/delegates/controls/MenuAutomationImpl.as
@@ -0,0 +1,487 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2009 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.automation.delegates.controls
+{
+	import flash.display.DisplayObject;
+	import flash.events.Event;
+	import flash.events.KeyboardEvent;
+	import flash.events.MouseEvent;
+	import flash.ui.Keyboard;
+	import flash.utils.getTimer;
+
+	import mx.automation.Automation;
+	import mx.automation.IAutomationManager;
+	import mx.automation.IAutomationObject;
+	import mx.automation.IAutomationObjectHelper;
+	import mx.automation.events.ListItemSelectEvent;
+	import mx.controls.Menu;
+	import mx.controls.listClasses.IListItemRenderer;
+	import mx.controls.menuClasses.IMenuItemRenderer;
+	import mx.core.EventPriority;
+	import mx.core.mx_internal;
+	import mx.events.MenuEvent;
+
+	use namespace mx_internal;
+
+	[Mixin]
+	/**
+	 *
+	 *  Defines methods and properties required to perform instrumentation for the
+	 *  Menu control.
+	 *
+	 *  @see mx.controls.Menu
+	 *
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public class MenuAutomationImpl extends ListAutomationImpl {
+
+		include "../../../core/Version.as";
+
+		//--------------------------------------------------------------------------
+		//
+		//  Class methods
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  Registers the delegate class for a component class with automation manager.
+		 *
+		 *  @param root The SystemManger of the application.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public static function init(root:DisplayObject):void
+		{
+			Automation.registerDelegateClass(Menu, MenuAutomationImpl);
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Constructor
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  Constructor.
+		 * @param obj Menu object to be automated.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public function MenuAutomationImpl(obj:Menu)
+		{
+			super(obj);
+
+			var rootMenu:Menu = obj.getRootMenu();
+			// attach event listeners only on the root menu
+			if (rootMenu == obj)
+			{
+				rootMenu.addEventListener(MenuEvent.ITEM_CLICK, menuItemClickHandler, false, 0, true);
+				rootMenu.addEventListener(MenuEvent.MENU_SHOW, menuShowHandler, false, 0, true);
+				rootMenu.addEventListener(MenuEvent.MENU_HIDE, menuHideHandler, false, EventPriority+1, true);
+			}
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Variables
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  @private
+		 *  storage for the owner component
+		 */
+		protected function get  menu():Menu
+		{
+			return uiComponent as Menu;
+		}
+
+		//----------------------------------
+		//  dontRecordShow
+		//----------------------------------
+
+		/**
+		 *  Flag indicating whehter to record the show event or not.
+		 *  We should use triggerEvent property on MenuEvent.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public var showHideFromKeys:Boolean = false;
+
+		//--------------------------------------------------------------------------
+		//
+		//  Overridden properties
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  @private
+		 */
+		override public function get automationName():String
+		{
+			var menuItem:IAutomationObject = associatedMenuItem;
+			if (menuItem != null && menuItem.automationName != null)
+				return menuItem.automationName;
+			else
+				return super.automationName;
+		}
+
+		/**
+		 *  @private
+		 */
+		override public function get automationValue():Array
+		{
+			var menuItem:IAutomationObject = associatedMenuItem;
+			if (menuItem != null && menuItem.automationName != null)
+				return [menuItem.automationName];
+			else
+				return super.automationValue;
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Methods
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  @private
+		 */
+		private function getMenusRenderer(menu:Menu):IListItemRenderer
+		{
+			var itemRenderer:IListItemRenderer;
+			var delegate:MenuAutomationImpl = menu.automationDelegate as MenuAutomationImpl;
+			if (delegate)
+			{
+				var itemDelegate:IAutomationObject = delegate.associatedMenuItem;
+				if (itemDelegate)
+					itemRenderer = itemDelegate as IListItemRenderer;
+			}
+			return itemRenderer;
+		}
+
+		/**
+		 *  @private
+		 */
+		private function setEventsRenderer(menuEvent:MenuEvent):Boolean
+		{
+			if (!menuEvent.itemRenderer)
+			{
+				menuEvent.itemRenderer = getMenusRenderer(menuEvent.menu);
+			}
+
+			if (menuEvent.itemRenderer)
+				return true;
+			return false;
+		}
+
+
+		/**
+		 *  @private
+		 */
+		private function recordAutomatableMenuEvent(type:String,
+													source:Menu,
+													renderer:Object = null,
+													label:String = null,
+													item:Object = null
+		):void
+		{
+			var am:IAutomationManager = Automation.automationManager;
+			if (am) //&& am.recording)
+			{
+				var menuEvent:MenuEvent = new MenuEvent(type);
+				menuEvent.menu = source;
+				menuEvent.label = label;
+				menuEvent.item = item;
+				menuEvent.itemRenderer = IListItemRenderer(renderer);
+
+				recordAutomatableEvent(menuEvent);
+			}
+		}
+
+		/**
+		 *  @private
+		 */
+		private function get associatedMenuItem():IAutomationObject
+		{
+			var parentMenu:Menu = menu.parentMenu;
+			if (parentMenu)
+			{
+				var listItems:Array = parentMenu.rendererArray;
+				// do this search column-major, since unless it's a grid we should
+				// find the child in the first column
+				for (var col:int = 0; col < listItems[0].length; col++)
+				{
+					for (var vOffset:int = 0; vOffset < listItems.length; vOffset++)
+					{
+						if ((listItems[vOffset][col] as IMenuItemRenderer).menu == menu)
+						{
+							var obj:Object = listItems[vOffset][col];
+							return obj as IAutomationObject;
+						}
+					}
+				}
+				return null;
+			}
+			else if (menu.sourceMenuBarItem)
+			{
+				return menu.sourceMenuBarItem as IAutomationObject;
+			}
+			else
+			{
+				return null;
+			}
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Overridden methods
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  @private
+		 */
+		override public function getAutomationChildAt(index:int):IAutomationObject
+		{
+			var result:IAutomationObject = super.getAutomationChildAt(index);
+			var menu:Menu = IMenuItemRenderer(result).menu;
+			var delegate:IAutomationObject = menu as IAutomationObject;
+			return (delegate || result);
+		}
+
+		/**
+		 *  @private
+		 */
+		override public function getAutomationChildren():Array
+		{
+			var childList:Array = new Array();
+
+			var tempArray1:Array = super.getAutomationChildren();
+			var n:int = 0;
+			var i:int = 0
+			if (tempArray1)
+			{
+				n = tempArray1.length;
+				for(i = 0; i < n ; i++)
+				{
+					childList.push(tempArray1[i]);
+				}
+			}
+
+			if (childList)
+			{
+				n = childList.length;
+				for (i = 0; i < n ; i++)
+				{
+					var menu:Menu = IMenuItemRenderer(childList[i]).menu;
+					var delegate:IAutomationObject = menu? menu as IAutomationObject:null;
+					if(delegate)
+						childList[i] = delegate;
+				}
+			}
+			return childList;
+
+		}
+
+		/**
+		 *  @private
+		 */
+		override public function recordAutomatableEvent(event:Event,
+														cacheable:Boolean = false):void
+		{
+			// don't dispatch select events.  we dispatch our own change events.
+			if (! (event is ListItemSelectEvent))
+				super.recordAutomatableEvent(event, cacheable);
+		}
+
+		/**
+		 * @private
+		 * Replays ITEM_CLICK, [sub]MENU_SHOW, and MENU_HIDE events. CHANGE is
+		 * replayed as a mouse up on the item in question. MENU_SHOW is replayed
+		 * as a mouse over on the item of this menu that spawns the submenu in
+		 * question. MENU_HIDE is replayed by calling hide().
+		 */
+		override public function replayAutomatableEvent(interaction:Event):Boolean
+		{
+			var completeTime:Number;
+			var help:IAutomationObjectHelper = Automation.automationObjectHelper;
+			if (interaction is MenuEvent)
+			{
+				var me:MenuEvent = MenuEvent(interaction);
+				var target:IListItemRenderer = me.itemRenderer;
+				var mouseEvent:MouseEvent;
+				switch (interaction.type)
+				{
+					case MenuEvent.ITEM_CLICK:
+					{
+						// replay as mouse up
+						//                mouseEvent = new MouseEvent(MouseEvent.MOUSE_UP);
+						// dispatch the event
+
+						completeTime = getTimer() +
+							menu.getStyle("selectionDuration") as Number;
+						help.addSynchronization(function():Boolean
+						{
+							return getTimer() >= completeTime;
+						});
+						return help.replayClick(target);
+					}
+
+					case MenuEvent.MENU_HIDE:
+					{
+						menu.hide();
+						return true;
+					}
+
+					case MenuEvent.MENU_SHOW:
+					{
+
+						completeTime = getTimer() +
+							menu.getStyle("openDuration") as Number;
+						help.addSynchronization(function():Boolean
+						{
+							return getTimer() >= completeTime;
+						});
+
+						// don't have to worry about non-submenus since they either come
+						// from a MenuBar, which has its own replay, or from
+						// programmatic calls, which we don't need to replay
+
+						// replay as mouse over on the item that spawns this menu
+						mouseEvent = new MouseEvent(MouseEvent.MOUSE_OVER);
+						var item:IListItemRenderer =
+							(target is Menu
+								? getMenusRenderer(target as Menu)
+								: target) as IListItemRenderer;
+						return item.dispatchEvent(mouseEvent);
+					}
+
+					default:
+						return false;
+				}
+			}
+			return super.replayAutomatableEvent(interaction);
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Event handlers
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  @private
+		 */
+		override protected function keyDownHandler(event:KeyboardEvent):void
+		{
+			var delegate:MenuAutomationImpl
+			= menu.getRootMenu().automationDelegate as MenuAutomationImpl;
+			if (event.keyCode == Keyboard.LEFT ||
+				event.keyCode == Keyboard.RIGHT)
+			{
+				recordAutomatableEvent(event);
+				delegate.showHideFromKeys = true;
+			}
+			else if (event.keyCode == Keyboard.ESCAPE)
+			{
+				delegate.showHideFromKeys = true;
+				recordAutomatableEvent(event);
+			}
+			else if (event.keyCode == Keyboard.UP ||
+				event.keyCode == Keyboard.DOWN)
+			{
+				recordAutomatableEvent(event);
+			}
+			else if (event.keyCode == Keyboard.TAB)
+			{
+				recordAutomatableMenuEvent(MenuEvent.MENU_HIDE,
+					menu.getRootMenu(), getMenusRenderer(menu));
+			}
+		}
+
+		/**
+		 *  @private
+		 */
+		private function menuItemClickHandler(menuEvent:MenuEvent):void
+		{
+			if (menuEvent.index != -1)
+			{
+				var delegate:IAutomationObject = menuEvent.menu as IAutomationObject;
+				var am:IAutomationManager = Automation.automationManager;
+				am.recordAutomatableEvent(delegate,menuEvent);
+			}
+		}
+
+		private function menuHideHandler(menuEvent:MenuEvent):void
+		{
+			var delegate:MenuAutomationImpl
+			= (menu.getRootMenu().automationDelegate) as MenuAutomationImpl;
+
+			if (delegate.showHideFromKeys)
+			{
+				delegate.showHideFromKeys = false;
+				return;
+			}
+
+			if (!setEventsRenderer(menuEvent))
+				return;
+
+			if (menuEvent.menu)
+			{
+				var am:IAutomationManager = Automation.automationManager;
+				am.recordAutomatableEvent(menuEvent.menu as IAutomationObject, menuEvent, true);
+			}
+		}
+
+		/**
+		 *  @private
+		 */
+		private function menuShowHandler(menuEvent:MenuEvent):void
+		{
+			var delegate:MenuAutomationImpl
+			= (menu.getRootMenu().automationDelegate) as MenuAutomationImpl;
+
+			if (delegate.showHideFromKeys)
+			{
+				delegate.showHideFromKeys = false;
+				return;
+			}
+
+			if (!setEventsRenderer(menuEvent))
+				return;
+
+			// if menu doesn't have a parent menu the
+			// MenuBar will record the show event
+			if (menuEvent.menu.parentMenu)
+			{
+				var replayer:IAutomationObject = (menuEvent.menu.parentMenu as IAutomationObject);
+				var am:IAutomationManager = Automation.automationManager;
+				am.recordAutomatableEvent(replayer, menuEvent);
+			}
+
+		}
+	}
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 6037
Author:   egeorgie@adobe.com
Date:     2009-04-08T18:26:09.299383Z

Log Message:
-----------
Fix bug http://bugs.adobe.com/jira/browse/SDK-19432 FxButtonBar should have options to resize buttons to fit text labels, rather than always truncate

Fix: Implement a special layout - the ButtonBarHorizontalLayout.as - that incorporates the buttonBar specific resizing logic. Modify the default skin to use this layout.

QE Notes: None
Doc Notes: None
Bugs: SDK-19432
Reviewer: Hans
tests: checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/ButtonBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/spark-manifest.xml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ButtonBarHorizontalLayout.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/ButtonBarHorizontalLayout.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ButtonBarHorizontalLayout.as
@@ -0,0 +1,261 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2008 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package spark.components.supportClasses
+{
+
+import spark.components.supportClasses.GroupBase;
+import mx.core.ILayoutElement;
+import spark.layout.supportClasses.LayoutBase;
+
+/**
+ *  The ButtonBarHorizontalLayout is a layout specifically designed for the
+ *  Spark ButtonBar skins.
+ *
+ *  The layout lays out the children horizontally, left to right.
+ *
+ *  The layout measures such that all children are sized at their preferred size.
+ *
+ *  If there is enough space, each child is set to its preferred size, plus any
+ *  excess space evenly distributed between the children.
+ *
+ *  If there is not enough space for all the children to be sized to their
+ *  preferred size, then the children that are smaller than the average width
+ *  will be allocated their preferred size and the rest of the elements will be
+ *  reduced equally.
+ *
+ *  All children are set to the height of the parent.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+public class ButtonBarHorizontalLayout extends LayoutBase
+{
+    include "../../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function ButtonBarHorizontalLayout():void
+    {
+        super();
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  gap
+    //----------------------------------
+
+    private var _gap:int = 0;
+
+    [Inspectable(category="General")]
+
+    /**
+     *  The horizontal space between layout elements.
+     *
+     *  Note that the gap is only applied between layout elements, so if there's
+     *  just one element, the gap has no effect on the layout.
+     *
+     *  @default 0
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function get gap():int
+    {
+        return _gap;
+    }
+
+    /**
+     *  @private
+     */
+    public function set gap(value:int):void
+    {
+        if (_gap == value)
+            return;
+
+        _gap = value;
+        invalidateTargetSizeAndDisplayList();
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    override public function measure():void
+    {
+        super.measure();
+
+        var layoutTarget:GroupBase = target;
+        if (!layoutTarget)
+            return;
+
+        var width:Number = 0;
+        var height:Number = 0;
+
+        var count:int = layoutTarget.numElements;
+        for (var i:int = 0; i < count; i++)
+        {
+            var layoutElement:ILayoutElement = layoutTarget.getElementAt(i);
+            if (!layoutElement || !layoutElement.includeInLayout)
+                continue;
+
+            width += layoutElement.getPreferredBoundsWidth();
+            height = Math.max(height, layoutElement.getPreferredBoundsHeight());
+
+        }
+
+        layoutTarget.measuredWidth = width;
+        layoutTarget.measuredHeight = height;
+    }
+
+    /**
+     *  @private
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    override public function updateDisplayList(width:Number, height:Number):void
+    {
+        var gap:Number = this.gap;
+        super.updateDisplayList(width, height);
+
+        var layoutTarget:GroupBase = target;
+        if (!layoutTarget)
+            return;
+
+        // Pass one: calculate the excess space
+        var totalPreferredWidth:Number = 0;
+        var count:int = layoutTarget.numElements;
+        var elementCount:int = count;
+        var layoutElement:ILayoutElement;
+        for (var i:int = 0; i < count; i++)
+        {
+            layoutElement = layoutTarget.getElementAt(i);
+            if (!layoutElement || !layoutElement.includeInLayout)
+            {
+                elementCount--;
+                continue;
+            }
+            totalPreferredWidth += layoutElement.getPreferredBoundsWidth();
+        }
+
+        // Special case for no elements
+        if (elementCount == 0)
+        {
+            layoutTarget.setContentSize(0, 0);
+            return;
+        }
+
+        // The content size is always the parent size
+        layoutTarget.setContentSize(width, height);
+
+        // Special case: if width is zero, make the gap zero as well
+        if (width == 0)
+            gap = 0;
+
+        // excessSpace can be negative
+        var excessSpace:Number = width - totalPreferredWidth - gap * (elementCount - 1);
+        var widthToDistribute:Number = width - gap * (elementCount - 1);
+
+        // Special case: when we don't have enough space we need to count
+        // the number of children smaller than the averager size.
+        var averageWidth:Number;
+        var largeChildrenCount:int = elementCount;
+        if (excessSpace < 0)
+        {
+            averageWidth = width / elementCount;
+            for (i = 0; i < count; i++)
+            {
+                layoutElement = layoutTarget.getElementAt(i);
+                if (!layoutElement || !layoutElement.includeInLayout)
+                    continue;
+
+                var preferredWidth:Number = layoutElement.getPreferredBoundsWidth();
+                if (preferredWidth <= averageWidth)
+                {
+                    widthToDistribute -= preferredWidth;
+                    largeChildrenCount--;
+                    continue;
+                }
+            }
+            widthToDistribute = Math.max(0, widthToDistribute);
+        }
+
+        // Resize and position children
+        var x:Number = 0;
+        var childWidth:Number = NaN;
+        var childWidthRounded:Number = NaN;
+        var roundOff:Number = 0;
+        for (i = 0; i < count; i++)
+        {
+            layoutElement = layoutTarget.getElementAt(i);
+            if (!layoutElement || !layoutElement.includeInLayout)
+                continue;
+
+            if (excessSpace > 0)
+            {
+                childWidth = widthToDistribute * layoutElement.getPreferredBoundsWidth() / totalPreferredWidth;
+            }
+            else if (excessSpace < 0)
+            {
+                childWidth = (averageWidth < layoutElement.getPreferredBoundsWidth()) ? widthToDistribute / largeChildrenCount : NaN;
+            }
+
+            if (!isNaN(childWidth))
+            {
+                // Round, we want integer values
+                childWidthRounded = Math.round(childWidth + roundOff);
+                roundOff += childWidth - childWidthRounded;
+            }
+
+            layoutElement.setLayoutBoundsSize(childWidthRounded, height);
+            layoutElement.setLayoutBoundsPosition(x, 0);
+
+            // No need to round, width should be an integer number
+            x += gap + layoutElement.getLayoutBoundsWidth();
+        }
+    }
+}
+
+}


378 EventTask now throws if calling listen() more than once

--- raw/src/org/yellcorp/lib/events/EventTask.as
+++ raw/src/org/yellcorp/lib/events/EventTask.as
@@ -2,6 +2,7 @@
 {
 import org.yellcorp.lib.core.Set;

+import flash.errors.IllegalOperationError;
 import flash.events.Event;
 import flash.events.IEventDispatcher;

@@ -12,7 +13,7 @@

     private var listeners:Array; // <ListenerDescriptor>
     private var terminatingEventTypes:Set;
-    private var active:Boolean;
+    private var listened:Boolean;

     public function EventTask(target:IEventDispatcher)
     {
@@ -24,6 +25,9 @@
     public function handleOnce(eventType:String, listener:Function,
         useCapture:Boolean = false, priority:int = 0):EventTask
     {
+        if (listened)
+            throw new IllegalOperationError("listen() must be the last method called");
+
         listeners.push(new ListenerDescriptor(eventType, listener, useCapture, priority));
         terminatingEventTypes.add(eventType);
         return this;
@@ -32,6 +36,9 @@
     public function handle(eventType:String, listener:Function,
         useCapture:Boolean = false, priority:int = 0):EventTask
     {
+        if (listened)
+            throw new IllegalOperationError("listen() must be the last method called");
+
         listeners.push(new ListenerDescriptor(eventType, listener, useCapture, priority));
         return this;
     }
@@ -47,7 +54,7 @@
         {
             target.addEventListener(eventType, onTerminate, false, int.MIN_VALUE);
         }
-        active = true;
+        listened = true;
         return this;
     }

@@ -62,13 +69,12 @@
         {
             target.removeEventListener(eventType, onTerminate, false);
         }
-        active = false;
         return this;
     }

     private function onTerminate(event:Event):void
     {
-        if (active)
+        if (listened)
         {
             unlisten();
             destroy();


Add test for FileUpdate stuff (only description so far)

--- test/src/FRESteamWorksTest.as
+++ test/src/FRESteamWorksTest.as
@@ -50,6 +50,7 @@
 			addButton("List subscribed files", enumerateSubscribedFiles);
 			addButton("List shared files", enumerateSharedFiles);
 			addButton("List workshop files", enumerateWorkshopFiles);
+			addButton("Change file description", updateFile);

 			Steamworks.addEventListener(SteamEvent.STEAM_RESPONSE, onSteamResponse);
 			Steamworks.addOverlayWorkaround(stage, true);
@@ -195,12 +196,28 @@
 			log("enumerateSharedFiles(...) == " + res);
 		}

+		private function updateFile(e:Event = null):void {
+			if(!file) {
+				log("No file handle set, publish or enumerate first");
+				return;
+			}
+
+			var handle:String = Steamworks.createPublishedFileUpdateRequest(file);
+			var res:Boolean = Steamworks.updatePublishedFileDescription(handle,
+				"Test updated description");
+			log("updatePublishedFileDescription(" + handle + ", ...) == " + res);
+			if(!res) return;
+
+			res = Steamworks.commitPublishedFileUpdate(handle);
+			log("commitPublishedFileUpdate(...) == " + res);
+		}
+
 		private var id:String;
 		private var handle:String;
+		private var file:String;
 		private function onSteamResponse(e:SteamEvent):void{
 			var apiCall:Boolean;
 			var i:int;
-			var file:String;
 			switch(e.req_type){
 				case SteamConstants.RESPONSE_OnUserStatsStored:
 					log("RESPONSE_OnUserStatsStored: "+e.response);
@@ -289,7 +306,7 @@
 		private function addButton(label:String, callback:Function):void {
 			var button:Sprite = new Sprite();
 			button.graphics.beginFill(0xaaaaaa);
-			button.graphics.drawRoundRect(0, 0, 150, 30, 5, 5);
+			button.graphics.drawRoundRect(0, 0, 150, 25, 5, 5);
 			button.graphics.endFill();
 			button.buttonMode = true;
 			button.useHandCursor = true;
@@ -301,14 +318,14 @@
 			button.addEventListener(MouseEvent.MOUSE_OVER, function(e:MouseEvent):void {
 				button.graphics.clear();
 				button.graphics.beginFill(0xccccccc);
-				button.graphics.drawRoundRect(0, 0, 150, 30, 5, 5);
+				button.graphics.drawRoundRect(0, 0, 150, 25, 5, 5);
 				button.graphics.endFill();
 			});

 			button.addEventListener(MouseEvent.MOUSE_OUT, function(e:MouseEvent):void {
 				button.graphics.clear();
 				button.graphics.beginFill(0xaaaaaa);
-				button.graphics.drawRoundRect(0, 0, 150, 30, 5, 5);
+				button.graphics.drawRoundRect(0, 0, 150, 25, 5, 5);
 				button.graphics.endFill();
 			});


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

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

 package mx.core
 {


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/mx/src/mx/accessibility/TreeAccImpl.as
+++ frameworks/projects/mx/src/mx/accessibility/TreeAccImpl.as
@@ -15,6 +15,7 @@
 import flash.accessibility.Accessibility;
 import flash.events.Event;

+import mx.accessibility.AccConst;
 import mx.collections.CursorBookmark;
 import mx.collections.ICollectionView;
 import mx.collections.IViewCursor;
@@ -42,63 +43,6 @@

 	//--------------------------------------------------------------------------
 	//
-	//  Class constants
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  @private
-	 *  Role of treeItem.
-	 */
-	private static const ROLE_SYSTEM_OUTLINEITEM:uint = 0x24;
-
-	/**
-	 *  @private
-	 */
-	private static const STATE_SYSTEM_COLLAPSED:uint = 0x00000400;
-
-	/**
-	 *  @private
-	 */
-	private static const STATE_SYSTEM_EXPANDED:uint = 0x00000200;
-
-	/**
-	 *  @private
-	 */
-	private static const STATE_SYSTEM_FOCUSED:uint = 0x00000004;
-
-	/**
-	 *  @private
-	 */
-	private static const STATE_SYSTEM_INVISIBLE:uint = 0x00008000;
-
-	/**
-	 *  @private
-	 */
-	private static const STATE_SYSTEM_SELECTABLE:uint = 0x00200000;
-
-	/**
-	 *  @private
-	 */
-	private static const STATE_SYSTEM_SELECTED:uint = 0x00000002;
-
-	/**
-	 *  @private
-	 */
-	private static const EVENT_OBJECT_FOCUS:uint = 0x8005;
-
-	/**
-	 *  @private
-	 */
-	private static const EVENT_OBJECT_SELECTION:uint = 0x8006;
-
-	/**
-	 *  @private
-	 */
-	private static const EVENT_OBJECT_STATECHANGE:uint = 0x800A;
-
-	//--------------------------------------------------------------------------
-	//
 	//  Class methods
 	//
 	//--------------------------------------------------------------------------
@@ -157,7 +101,7 @@
 	{
 		super(master);

-		role = 0x23; // ROLE_SYSTEM_OUTLINE
+		role = AccConst.ROLE_SYSTEM_OUTLINE;
 	}

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

 	/**
@@ -257,27 +201,27 @@
 			if (index < tree.verticalScrollPosition ||
 				index >= tree.verticalScrollPosition + tree.rowCount)
 			{
-				accState |= STATE_SYSTEM_INVISIBLE;
+				accState |= AccConst.STATE_SYSTEM_INVISIBLE;
 			}
 			else
 			{
-				accState |= STATE_SYSTEM_SELECTABLE;
+				accState |= AccConst.STATE_SYSTEM_SELECTABLE;

 				var item:Object = getItemAt(index);

 				if (item && tree.dataDescriptor.isBranch(item, tree.dataProvider))
 				{
 					if (tree.isItemOpen(item))
-						accState |= STATE_SYSTEM_EXPANDED;
+						accState |= AccConst.STATE_SYSTEM_EXPANDED;
 					else
-						accState |= STATE_SYSTEM_COLLAPSED;
+						accState |= AccConst.STATE_SYSTEM_COLLAPSED;
 				}

 				var renderer:IListItemRenderer =
 					tree.itemToItemRenderer(item);

 				if (renderer != null && tree.isItemSelected(renderer.data))
-					accState |= STATE_SYSTEM_SELECTED | STATE_SYSTEM_FOCUSED;
+					accState |= AccConst.STATE_SYSTEM_SELECTED | AccConst.STATE_SYSTEM_FOCUSED;
 			}
 		}
 		return accState;
@@ -465,10 +409,10 @@
 				if (index >= 0)
 				{
 					Accessibility.sendEvent(master, childID,
-											EVENT_OBJECT_FOCUS);
+											AccConst.EVENT_OBJECT_FOCUS);

 					Accessibility.sendEvent(master, childID,
-											EVENT_OBJECT_SELECTION);
+											AccConst.EVENT_OBJECT_SELECTION);
 				}
 				break;
 			}
@@ -479,7 +423,7 @@
 				if (index >= 0)
 				{
 					Accessibility.sendEvent(master, childID,
-											EVENT_OBJECT_STATECHANGE);
+											AccConst.EVENT_OBJECT_STATECHANGE);
 				}
 				break;
 			}


Transferred from the Adobe Open Source Subversion Repository

Revision: 20507
Author:   cframpto@adobe.com
Date:     2011-03-01T18:59:41.009129Z

Log Message:
-----------
Update DataGrid ASdoc examples.  Remove DataGridRollOverExample.mxml

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/asdoc/en_US/spark/components/gridClasses/examples/GridItemRendererExample.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/asdoc/en_US/spark/components/examples/DataGridRowHeightExample.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGrid.as</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/asdoc/en_US/spark/components/examples/DataGridRollOverExample.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/asdoc/en_US/spark/components/examples/DataGridTypicalItemExample.mxml</path>

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

--- frameworks/projects/spark/src/spark/components/DataGrid.as
+++ frameworks/projects/spark/src/spark/components/DataGrid.as
@@ -629,7 +629,6 @@
  *  @includeExample examples/DataGridRowHeightExample.mxml
  *  @includeExample examples/DataGridSelectionExample.mxml
  *  @includeExample examples/DataGridInvalidateCellExample.mxml
- *  @includeExample examples/DataGridRollOverExample.mxml
  *
  *  @langversion 3.0
  *  @playerversion Flash 10


Transferred from the Adobe Open Source Subversion Repository

Revision: 2464
Author:   jimurphy@adobe.com
Date:     2008-07-14T19:50:33.449468Z

Log Message:
-----------
add flex 4 to trunk

Modified Paths:
--------------
134 paths were modified

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

--- frameworks/projects/spark/src/spark/filters/BevelFilter.as
+++ frameworks/projects/spark/src/spark/filters/BevelFilter.as
@@ -0,0 +1,219 @@
+package flex.filters
+{
+import flash.events.IEventDispatcher;
+import flash.filters.BevelFilter;
+import flash.filters.BitmapFilter;
+import flash.filters.BitmapFilterType;
+
+public class BevelFilter extends BaseDimensionFilter implements IBitmapFilter
+{
+	public function BevelFilter(distance:Number = 4.0, angle:Number = 45,
+								highlightColor:uint = 0xFFFFFF, highlightAlpha:Number = 1.0,
+								shadowColor:uint = 0x000000, shadowAlpha:Number = 1.0,
+								blurX:Number = 4.0, blurY:Number = 4.0, strength:Number = 1,
+								quality:int = 1, type:String = "inner",
+								knockout:Boolean = false)
+	{
+		this.distance = distance;
+		this.angle = angle;
+		this.highlightColor = highlightColor;
+		this.highlightAlpha = highlightAlpha;
+		this.shadowColor = shadowColor;
+		this.shadowAlpha = shadowAlpha;
+		this.blurX = blurX;
+		this.blurY = blurY;
+		this.strength = strength;
+		this.quality = quality;
+		this.type = type;
+		this.knockout = knockout;
+	}
+
+	//----------------------------------
+    //  angle
+    //----------------------------------
+
+	private var _angle:Number = 45;
+
+	/**
+	 *   The angle of the bevel. Valid values are from 0 to 360°.
+	 *   The angle value represents the angle of the theoretical light source falling on the
+	 *   object and determines the placement of the effect relative to the object.
+	 *   If the distance property is set to 0, the effect is not offset from the object and,
+	 *   therefore, the angle property has no effect.
+	 *
+	 *   @default 45
+	 */
+	public function get angle():Number
+	{
+		return _angle;
+	}
+
+	public function set angle(value:Number):void
+	{
+		if (value != _angle)
+		{
+			_angle = value;
+			notifyFilterChanged();
+		}
+	}
+
+	//----------------------------------
+    //  distance
+    //----------------------------------
+
+	private var _distance:Number = 4.0;
+
+	/**
+	 *  The offset distance of the bevel. Valid values are in pixels (floating point).
+	 * 	@default 4
+	 */
+	public function get distance():Number
+	{
+		return _distance;
+	}
+
+	public function set distance(value:Number):void
+	{
+		if (value != _distance)
+		{
+			_distance = value;
+			notifyFilterChanged();
+		}
+	}
+
+	//----------------------------------
+    //  highlightAlpha
+    //----------------------------------
+
+	private var _highlightAlpha:Number = 1.0;
+
+	/**
+	 *  The alpha transparency value of the highlight color. The value is specified as a normalized
+	 *  value from 0 to 1. For example, .25 sets a transparency value of 25%.
+	 *  @default 1
+	 */
+	public function get highlightAlpha():Number
+	{
+		return _highlightAlpha;
+	}
+
+	public function set highlightAlpha(value:Number):void
+	{
+		if (value != _highlightAlpha)
+		{
+			_highlightAlpha = value;
+			notifyFilterChanged();
+		}
+	}
+
+	//----------------------------------
+    //  highlightColor
+    //----------------------------------
+
+	private var _highlightColor:uint = 0xFFFFFF;
+
+	/**
+	 *  The highlight color of the bevel. Valid values are in hexadecimal format, 0xRRGGBB.
+	 *  @default 0xFFFFFF
+	 */
+	public function get highlightColor():uint
+	{
+		return _highlightColor;
+	}
+
+	public function set highlightColor(value:uint):void
+	{
+		if (value != _highlightColor)
+		{
+			_highlightColor = value;
+			notifyFilterChanged();
+		}
+	}
+
+	//----------------------------------
+    //  shadowAlpha
+    //----------------------------------
+
+	private var _shadowAlpha:Number = 1.0;
+
+	/**
+	 *  The alpha transparency value of the shadow color. This value is specified as a
+	 *  normalized value from 0 to 1. For example, .25 sets a transparency value of 25%.
+	 *
+	 *  @default 1
+	 */
+	public function get shadowAlpha():Number
+	{
+		return _shadowAlpha;
+	}
+
+	public function set shadowAlpha(value:Number):void
+	{
+		if (value != _shadowAlpha)
+		{
+			_shadowAlpha = value;
+			notifyFilterChanged();
+		}
+	}
+
+	//----------------------------------
+    //  shadowColor
+    //----------------------------------
+
+	private var _shadowColor:uint = 0x000000;
+
+	/**
+	 *  The shadow color of the bevel. Valid values are in hexadecimal format, 0xRRGGBB.
+	 *  @default 0x000000
+	 */
+	public function get shadowColor():uint
+	{
+		return _shadowColor;
+	}
+
+	public function set shadowColor(value:uint):void
+	{
+		if (value != _shadowColor)
+		{
+			_shadowColor = value;
+			notifyFilterChanged();
+		}
+	}
+
+	//----------------------------------
+    //  type
+    //----------------------------------
+
+	private var _type:String = BitmapFilterType.INNER;
+
+	/**
+	 *  The placement of the filter effect. Possible values are
+	 *  flash.filters.BitmapFilterType constants:
+ 	 *  BitmapFilterType.OUTER — Glow on the outer edge of the object
+	 *  BitmapFilterType.INNER — Glow on the inner edge of the object; the default.
+	 *  BitmapFilterType.FULL — Glow on top of the object
+	 */
+	public function get type():String
+	{
+		return _type;
+	}
+
+	public function set type(value:String):void
+	{
+		if (value != _type)
+		{
+			_type = value;
+			notifyFilterChanged();
+		}
+	}
+
+	public function clone():BitmapFilter
+	{
+		return new flash.filters.BevelFilter(distance, angle, highlightColor, highlightAlpha,
+											 shadowColor, shadowAlpha, blurX, blurY, strength,
+											 quality, type, knockout);
+	}
+
+}
+
+}


Unused

Unused

--- collect-flex/collect-flex-client/src/main/flex/org/openforis/collect/event/FormItemEvent.as
+++ collect-flex/collect-flex-client/src/main/flex/org/openforis/collect/event/FormItemEvent.as
@@ -1,29 +0,0 @@
-package org.openforis.collect.event
-{
-	import org.openforis.collect.ui.component.detail.CollectFormItem;
-	import org.openforis.collect.ui.component.input.InputField;
-
-	/**
-	 * @author S. Ricci
-	 */
-	public class FormItemEvent extends UIEvent
-	{
-		public static const FORM_ITEM_MOUSE_OVER:String = "formItemMouseOver";
-		public static const FORM_ITEM_MOUSE_OUT:String = "formItemMouseOut";
-
-		private var _formItem:CollectFormItem;
-
-		public function FormItemEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false) {
-			super(type, bubbles, cancelable);
-		}
-
-		public function get formItem():CollectFormItem {
-			return _formItem;
-		}
-
-		public function set formItem(value:CollectFormItem):void {
-			_formItem = value;
-		}
-
-	}
-}


Added utility method updateMap

Added utility method updateMap


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

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

 package mx.containers.utilityClasses
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 21589
Author:   aaltman@adobe.com
Date:     2011-07-15T23:40:33.904445Z

Log Message:
-----------
Fixed build: Removed '@' from asdoc comments

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableStageText.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/core/ISoftKeyboardHintClient.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as
@@ -1546,7 +1546,7 @@
      *      "contact" - puts the keyboard into a mode appropriate for
      *          entering contact information
      *      "email" - puts the keyboard into e-mail addres entry mode, which
-     *          may make it easier to enter '@' or '.com'
+     *          may make it easier to enter the at sign or '.com'
      *
      *
For the Desktop theme, this is not supported.

      *


Oops. The C++ code still expects an optional argument to handle creating domains with parent domains. Let's retain that functionality internally even though we don't use it.

--- tamarin-central/thane/as3src/avmplus/Domain.as
+++ tamarin-central/thane/as3src/avmplus/Domain.as
@@ -50,7 +50,7 @@

         initNewDomain();
     }
-    private native function initNewDomain () :void;
+    private native function initNewDomain (parentDomain :Domain = null) :void;

 	public function loadBytes (byteArray :ByteArray)
     {


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

--- frameworks/projects/charts/src/mx/charts/series/AreaSet.as
+++ frameworks/projects/charts/src/mx/charts/series/AreaSet.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: 3341
Author:   rfrishbe@adobe.com
Date:     2008-09-24T23:10:20.245436Z

Log Message:
-----------
Changing the definition of some methods in SkinnableComponent.  So instead of:

protected function partAdded(partName:String, instance:*):void

We now have:

protected function partAdded(partName:String, instance:Object):void

Technically this just means we can't support the value of "undefined" anymore.  This change was made to partAdded(), partRemoved(), createPartInstance(), removePartInstance(), and getDyanamicPartAt().

As I was making these changes in all the files that override these methods, I noticed Slider should have a partRemoved() method, so I added it.

I also made a minor change in Selector where there was a bug in the dataProvider collectionChange eventHandler.  Basically we were doing remove code on replace rather than remove.

QE: Yes - This will break (as in, it won't compile) some tests in SkinnableComponent.  Joann will change them soon after I checkin.
Doc: Yes
Bugs: SDK-16640, SDK-16709
Reviewer: Hans

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/DataComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/Spinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/TextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/TrackBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/SkinnableComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/Selector.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/ItemsComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/Scroller.as</path>

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

--- frameworks/projects/spark/src/spark/components/TextArea.as
+++ frameworks/projects/spark/src/spark/components/TextArea.as
@@ -300,7 +300,7 @@
 	/**
 	 *  @private
 	 */
-	override protected function partAdded(partName:String, instance:*):void
+	override protected function partAdded(partName:String, instance:Object):void
 	{
         super.partAdded(partName, instance);


fix return type

fix return type

--- frameworks/projects/Core/as/src/org/apache/flex/utils/Language.as
+++ frameworks/projects/Core/as/src/org/apache/flex/utils/Language.as
@@ -82,7 +82,7 @@
 		 * @param {?} value The value to be cast.
 		 * @return {number}
 		 */
-		static public function _int(value:Number):int
+		static public function _int(value:Number):Number
 		{
 			return value >> 0;
 		}
@@ -315,7 +315,7 @@
 		 * @param {?} value The value to be cast.
 		 * @return {number}
 		 */
-		static public function uint(value:Number):uint
+		static public function uint(value:Number):Number
 		{
 			return value >>> 0;
 		}


Transferred from the Adobe Open Source Subversion Repository

Revision: 17356
Author:   clucier@adobe.com
Date:     2010-08-17T21:33:40.209855Z

Log Message:
-----------
Quick fix for build blocking issue.
When time permits we should consider just having the compiler avoid setting mx_internal::_document.

QE notes: None
Doc notes: None
Bugs: SDK-27460
Reviewer: Glenn
Tests run: Checkin
Is noteworthy for integration: No

Modified Paths:
--------------
/private/flex/sdk/branches/hero_private/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as

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

--- frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as
+++ frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as
@@ -1517,7 +1517,7 @@
     //  document
     //----------------------------------

-    private var _document:Object;
+    mx_internal var _document:Object;

     /**
      *  @copy mx.core.IUIComponent#document


Another small changes in hard ai.

Another small changes in hard ai.

--- bin/Data/AngelScript/Components/HardAi.as
+++ bin/Data/AngelScript/Components/HardAi.as
@@ -19,7 +19,7 @@
                 processingNode.vars ["ObjectType"].GetInt () ==
                 SerializationConstants__OBJECT_TYPE_PLAYER and
                 not processingNode.HasTag ("Died") and
-                (processingNode.position - node.position).length < 25.0f)
+                (processingNode.position - node.position).length < 30.0f)

                 enemiesNear.Push (processingNode);
         }
@@ -29,10 +29,8 @@
     protected void RunAway ()
     {
         float randomNumber = Random ();
-        if (randomNumber < 1.0f / 3.0f)
+        if (randomNumber < 0.5f)
             normalizedMoveRequest_.x = -1.0f;
-        else if (randomNumber < 2.0f / 3.0f)
-            normalizedMoveRequest_.x = 0.0f;
         else
             normalizedMoveRequest_.x = 1.0f;

@@ -85,7 +83,7 @@
             {
                 int myExp = node.vars ["Exp"].GetInt ();
                 int enemyExp = processingEnemy.vars ["Exp"].GetInt ();
-                runAwayDecisionPoints += 20.0f * (10.0f + enemyExp - myExp);
+                runAwayDecisionPoints += 30.0f * (10.0f + enemyExp - myExp);
             }
         }
         return runAwayDecisionPoints;
@@ -104,7 +102,7 @@
             Node @processingEnemy = enemiesNear [index];
             float decisionPoints;

-            decisionPoints += 150.0f / (processingEnemy.position - node.position).length;
+            decisionPoints += 200.0f / (processingEnemy.position - node.position).length;
             decisionPoints += 500.0f * (GameplayConstants__BASIC_SHELL_DAMAGE *
                                         (1 + GameplayConstants__SHELL_DAMAGE_INCREASE_PER_EXP) /
                                         processingEnemy.vars ["Health"].GetFloat ()) ;
@@ -137,7 +135,7 @@
         ray.direction = node.worldRotation * Vector3 (0, 0, 1);

         PhysicsRaycastResult result =
-            physicsWorld.RaycastSingle (ray, 25.0f);
+            physicsWorld.RaycastSingle (ray, 30.0f);

         if (result.body !is null and
             result.body.node.vars ["ObjectType"].GetInt () ==


FLEX-34885 Adding unit tests to show that IList/ICollectionView.itemUpdated() creates the same unexpected results as dispatching generic PropertyChangeEvents from list items.


Taking out Oid checks to allow using TextOut as a default decoder.

--- driver/src/main/flex/org/postgresql/codec/decode/TextOut.as
+++ driver/src/main/flex/org/postgresql/codec/decode/TextOut.as
@@ -11,17 +11,7 @@
         public function decode(bytes:ICDataInput, format:IFieldInfo, serverParams:Object):Object {
             switch (format.format) {
                 case EncodingFormat.TEXT:
-                    switch (format.typeOid) {
-                        // TODO: we make the assumption that the driver won't send data
-                        // that doesn't match the type attributes
-                        case Oid.BPCHAR:
-                        case Oid.VARCHAR:
-                        case Oid.TEXT:
-                        case Oid.CHAR:
-                            return bytes.readUTFBytes(bytes.bytesAvailable);
-                        default:
-                            throw new ArgumentError("Unable to decode oid: " + format.typeOid);
-                    }
+                    return bytes.readUTFBytes(bytes.bytesAvailable);
                 case EncodingFormat.BINARY:
                     throw new ArgumentError("Unsupported format: " + format.format);
                 default:


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

--- frameworks/projects/framework/src/mx/core/TextFieldAsset.as
+++ frameworks/projects/framework/src/mx/core/TextFieldAsset.as
@@ -0,0 +1,120 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2005-2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.core
+{
+
+/**
+ *  TextFieldAsset is a subclass of the flash.text.TextField class
+ *  which represents TextField symbols that you embed in a Flex
+ *  application from a SWF file produced by Flash.
+ *  It implements the IFlexDisplayObject interface, which makes it
+ *  possible for a TextFieldAsset to be displayed in an Image control,
+ *  or to be used as a container background or a component skin.
+ *
+ *
This class is included in Flex for completeness, so that any kind
+ *  of symbol in a SWF file produced by Flash can be embedded
+ *  in a Flex application.
+ *  However, Flex applications do not typically use embedded TextFields.
+ *  Refer to more commonly-used asset classes such as BitmapAsset
+ *  for more information about how embedded assets work in Flex.

+ */
+public class TextFieldAsset extends FlexTextField
+                            implements IFlexAsset, IFlexDisplayObject
+{
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     */
+    public function TextFieldAsset()
+    {
+        super();
+
+        // Remember initial size as our measured size.
+        _measuredWidth = width;
+        _measuredHeight = height;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  measuredHeight
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the measuredHeight property.
+     */
+    private var _measuredHeight:Number;
+
+    /**
+     *  @inheritDoc
+     */
+    public function get measuredHeight():Number
+    {
+        return _measuredHeight;
+    }
+
+    //----------------------------------
+    //  measuredWidth
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the measuredWidth property.
+     */
+    private var _measuredWidth:Number;
+
+    /**
+     *  @inheritDoc
+     */
+    public function get measuredWidth():Number
+    {
+        return _measuredWidth;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @inheritDoc
+     */
+    public function move(x:Number, y:Number):void
+    {
+        this.x = x;
+        this.y = y;
+    }
+
+    /**
+     *  @inheritDoc
+     */
+    public function setActualSize(newWidth:Number, newHeight:Number):void
+    {
+        width = newWidth;
+        height = newHeight;
+    }
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 9932
Author:   smgilson@adobe.com
Date:     2009-09-02T19:17:26.077257Z

Log Message:
-----------
Add ASDoc version tags to new or untagged classes - Part 2

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/SimpleXMLDecoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/Request.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/RectangularBorder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/Responder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/RectangularDropShadow.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/states/OverrideBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/RichTextEditor.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/remoting/mxml/RemoteObject.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/remoting/Operation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/SparkChromeWindowedApplicationSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/WindowedApplicationSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Text.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/IXMLSchemaInstance.as</path>

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

--- frameworks/projects/framework/src/mx/states/OverrideBase.as
+++ frameworks/projects/framework/src/mx/states/OverrideBase.as
@@ -11,15 +11,18 @@

 package mx.states
 {
-
+
 import flash.events.EventDispatcher;

 import mx.core.UIComponent;
 import mx.utils.OnDemandEventDispatcher;

+/**
+ * @private
+ */
 public class OverrideBase extends OnDemandEventDispatcher
 {
-	//--------------------------------------------------------------------------
+    //--------------------------------------------------------------------------
     //
     //  Constructor
     //


Transferred from the Adobe Open Source Subversion Repository

Revision: 10276
Author:   smgilson@adobe.com
Date:     2009-09-15T19:36:00.969262Z

Log Message:
-----------
ASDoc edits on the Spark ButtonBar support for ViewStack feature

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

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

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

--- frameworks/projects/spark/src/spark/components/ButtonBar.as
+++ frameworks/projects/spark/src/spark/components/ButtonBar.as
@@ -55,6 +55,28 @@
  *  The ButtonBar control automatically adds or removes the necessary children based on
  *  changes to the dataProvider property.

  *
+ *
You can use the ButtonBar control to set the active child of a ViewStack container,
+ *  as the following example shows:

+ *
+ *

+ *  <s:ButtonBar dataProvider="{myViewStack}"/>
+ *
+ *  <mx:ViewStack id="myViewStack"
+ *      borderStyle="solid">
+ *
+ *      <s:NavigatorContent id="search" label="Search">
+ *          <s:Label text="Search Screen"/>
+ *          </s:NavigatorContent>
+ *
+ *      <s:NavigatorContent id="custInfo" label="Customer Info">
+ *          <s:Label text="Customer Info"/>
+ *          </s:NavigatorContent>
+ *
+ *      <s:NavigatorContent id="accountInfo" label="Account Info">
+ *          <s:Label text="Account Info"/>
+ *          </s:NavigatorContent>
+ *      </mx:ViewStack>

+ *
  *  @mxml
The <s:ButtonBar> tag inherits all of the tag
  *  attributes of its superclass and adds the following tag attributes:

  *
@@ -64,6 +86,7 @@
  *  />
  *

  *
+ *  @see mx.containers.ViewStack
  *  @see spark.components.ButtonBarButton
  *  @see spark.skins.spark.ButtonBarSkin
  *


Transferred from the Adobe Open Source Subversion Repository

Revision: 8031
Author:   egeorgie@adobe.com
Date:     2009-06-20T01:10:03.288554Z

Log Message:
-----------
Scrub the TODOs in the framework, convert to FIXMEs in the new convention and assigning an owner.

Doc Notes: N/A
Bugs: N/A
Reviewer: Deepa
tests: build, checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/StrokedElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ProgressBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/layouts/WheelLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateChooser.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/FadeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Spinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/Timeline.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AddAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Scale.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Rotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/mediaClasses/VolumeBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/DropDownController.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/HSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/ModifiedCollectionView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/spark/ErrorSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Move.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/SkinnableDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/MoveInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/SequenceInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectTargetFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/SkinnableComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateTransformInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/RemoveAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/utils/BitmapUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/spark/FocusSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/CompositeEffect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/MotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/MatrixUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/supportClasses/LayoutElementHelper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/TextGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/PopUpAnchor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/mediaClasses/StreamingVideoSource.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/PropertyChanges.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ToggleButtonBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/RemoveActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Effect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/pathSegments/LineSegment.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/spark/components/VideoPlayer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateTransitionShaderInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/Transform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/ObjectUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AddActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Path.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Rect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/SimpleText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as</path>

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

--- frameworks/projects/spark/src/spark/components/DataGroup.as
+++ frameworks/projects/spark/src/spark/components/DataGroup.as
@@ -486,7 +486,7 @@
             {
                 for (index = indexToRenderer.length - 1; index >= 0; index--)
                 {
-                    // TODO (rfrishbe): we can't key off of the oldDataProvider for
+                    // FIXME (rfrishbe): we can't key off of the oldDataProvider for
                     // the item because it might not be there anymore (for instance,
                     // in a dataProvider reset where the new data is loaded into
                     // the dataProvider--the dataProvider doesn't actually change,
@@ -511,7 +511,7 @@
                 var startIndex:int = virtualLayoutStartIndex; // itemRemoved decrements virtualLayoutStartIndex
                 for (index = endIndex; (index >= 0) && (index >= startIndex); index--)
                 {
-                    // TODO (rfrishbe): same as above
+                    // FIXME (rfrishbe): same as above

                     renderer = indexToRenderer[index] as IVisualElement;
                     if (renderer is IDataRenderer && (itemRenderer != null || itemRendererFunction != null))


Transferred from the Adobe Open Source Subversion Repository

Revision: 21744
Author:   aaltman@adobe.com
Date:     2011-07-28T01:12:55.468490Z

Log Message:
-----------
Removed padding from SDK StageText size calculations to match new runtime behavior

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableStageText.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/StageTextSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/StageTextAreaSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/StageTextInputSkin.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/StageTextSkinBase.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/StageTextSkinBase.as
@@ -341,10 +341,10 @@
      */
     protected function measureTextComponent(hostComponent:SkinnableTextBase):void
     {
-        var paddingLeft:Number = getCorrectedPadding("paddingLeft");
-        var paddingRight:Number = getCorrectedPadding("paddingRight");
-        var paddingTop:Number = getCorrectedPadding("paddingTop");
-        var paddingBottom:Number = getCorrectedPadding("paddingBottom");
+        var paddingLeft:Number = getStyle("paddingLeft");
+        var paddingRight:Number = getStyle("paddingRight");
+        var paddingTop:Number = getStyle("paddingTop");
+        var paddingBottom:Number = getStyle("paddingBottom");
         var textHeight:Number = getStyle("fontSize");

         if (textDisplay)
@@ -364,29 +364,6 @@
         measuredHeight = paddingTop + textHeight + paddingBottom;
     }

-    /**
-     *  @private
-     *  Utility function used to get the value of any of the left, right, top,
-     *  or bottom padding styles modified to take any internal padding of the
-     *  platform text control into account.
-     */
-    protected function getCorrectedPadding(paddingStyleName:String):Number
-    {
-        var padding:Number = getStyle(paddingStyleName);
-
-        if (textDisplay)
-        {
-            var internalPadding:Point = textDisplay.calculateInternalPadding();
-
-            if (paddingStyleName == "paddingLeft" || paddingStyleName == "paddingRight")
-                padding = Math.max(0, padding - internalPadding.x);
-            else if (paddingStyleName == "paddingTop" || paddingStyleName == "paddingBottom")
-                padding = Math.max(0, padding - internalPadding.y);
-        }
-
-        return padding;
-    }
-
     //--------------------------------------------------------------------------
     //
     //  Event handlers


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

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

 package mx.containers
 {