qnd: support in xml:id attribute

qnd: support in xml:id attribute

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

--- plugins/closedcaptionsFlexible_plugin/src/com/kaltura/kdpfl/plugin/component/ClosedCaptions.as
+++ plugins/closedcaptionsFlexible_plugin/src/com/kaltura/kdpfl/plugin/component/ClosedCaptions.as
@@ -47,8 +47,7 @@

 		private var xmlns : Namespace;
 		private var xmlns_tts :Namespace;
-		private var xmlns_xml:Namespace;
-
+
 		private var _label:TextField;
 		private var _captionsURLLoader:URLLoader;
 		//map between captions URL and the parsed lines array of the file
@@ -62,8 +61,9 @@
 		private var _heightBeforeResize : Number;
 		private var _fontBeforeResize : int;
 		private var _fontFamily : String = "Arial";
-
-
+		//How ID key will look like in case it was passed as "xml:id"
+		private const defaultIdIdentifier:String = 'aaa:id="';
+
 		private var _fullScreenRatio : Number;

 		//ABC- specific
@@ -295,8 +295,18 @@
 						stylingObject = new Object();
 						for each (var style:XML in styles) {
 							var sname:String = style.@id.toString();
+
+							//in case id was passed as "xml:id" flash will turn it to "aaa:id". extract id value:
 							if (!sname) {
-								sname = style.@xmlns_xml::id.toString();// @xmlns_xml::id.toString();
+								//string represantation of the current style node
+								var styleSt:String = style.toXMLString();
+								//starting index of style id value
+								var startIndex:int = styleSt.indexOf(defaultIdIdentifier);
+								if (startIndex!=-1)
+								{
+									var styleSubSt:String = styleSt.substr(startIndex + defaultIdIdentifier.length);
+									sname = styleSubSt.substring(0, styleSubSt.indexOf('"'));
+								}
 							}
 							stylingObject[sname] = {tf: xmlToTextFormat(style), backgroundColor: xmlToBGColor(style), showBGColor: shouldShowBGColor(style)};
 						}


Transferred from the Adobe Open Source Subversion Repository

Revision: 10358
Author:   dloverin@adobe.com
Date:     2009-09-17T21:18:43.345800Z

Log Message:
-----------
Change Application.application so it can return spark Applications and spark WindowedApplications.

Application.application is still deprecated but this change makes the transition to using Spark Applications easier.

QE notes: None.
Doc notes: None.
Bugs: SDK-21898
Reviewer: Gordon
Tests run: checkintests, Application
Is noteworthy for integration: no.

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Application.as

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

--- frameworks/projects/mx/src/mx/core/Application.as
+++ frameworks/projects/mx/src/mx/core/Application.as
@@ -280,9 +280,10 @@
      *  and to walk up the hierarchy to the top-level Application.

      *
      *
This property has been deprecated starting in Flex4. Note that this
-     *  property will return applications of type Application and
-     *  WindowedApplication as before but will return null for applications
-     *  of type FxApplication or FxWindowedApplication.

+     *  property will still return applications of type mx.core.Application and
+     *  mx.core.WindowedApplication as in previous versions. Starting in Flex 4
+     *  it will also return applications of type spark.components.Application or
+     *  spark.components.WindowedApplication.

      *
      *  @langversion 3.0
      *  @playerversion Flash 9
@@ -307,7 +308,7 @@

     public static function get application():Object
     {
-        return FlexGlobals.topLevelApplication as Application;
+        return FlexGlobals.topLevelApplication;
     }

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


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

--- frameworks/projects/automation/src/mx/automation/delegates/containers/FormItemAutomationImpl.as
+++ frameworks/projects/automation/src/mx/automation/delegates/containers/FormItemAutomationImpl.as
@@ -0,0 +1,247 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.containers
+{
+	import flash.display.DisplayObject;
+
+	import mx.automation.Automation;
+	import mx.automation.AutomationIDPart;
+	import mx.automation.IAutomationObject;
+	import mx.automation.IAutomationObjectHelper;
+	import mx.automation.delegates.core.ContainerAutomationImpl;
+	import mx.containers.FormItem;
+	import mx.core.mx_internal;
+
+	use namespace mx_internal;
+
+	[Mixin]
+	/**
+	 *
+	 *  Defines the methods and properties required to perform instrumentation for the
+	 *  FormItem class.
+	 *
+	 *  @see mx.containers.FormItem
+	 *
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public class FormItemAutomationImpl extends ContainerAutomationImpl
+	{
+		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(FormItem, FormItemAutomationImpl);
+		}
+
+		/**
+		 *  @private
+		 *  storage for the owner component
+		 */
+		protected function get formItem():FormItem
+		{
+			return uiComponent as FormItem;
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Constructor
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  Constructor.
+		 *
+		 *  @param obj The FormItem object to be automated.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public function FormItemAutomationImpl(obj:FormItem)
+		{
+			super(obj);
+
+		}
+
+
+		//----------------------------------
+		//  automationValue
+		//----------------------------------
+
+		/**
+		 *  @private
+		 */
+		override public function get automationValue():Array
+		{
+			var label:IAutomationObject = formItem.itemLabel as IAutomationObject;
+			var result:Array = [ label ? label.automationName : null ];
+			/*
+			for (var i:int = 0; i < numAutomationChildren; i++)
+			{
+			var child:IAutomationObject = getAutomationChildAt(i);
+			if (child == label)
+			continue;
+			var x:Array = child.automationValue;
+			if (x && x.length != 0)
+			result.push(x);
+			}*/
+			// changing the above code to avoid the usage of getAutomationChildAt.
+			var childArray:Array = getAutomationChildren();
+			if (childArray)
+			{
+				var n:int = childArray.length;
+				for (var i:int = 0; i < n; i++)
+				{
+					var child:IAutomationObject = childArray[i] as IAutomationObject;
+					if (child == label)
+						continue;
+					var x:Array = child.automationValue;
+					if (x && x.length != 0)
+						result.push(x);
+				}
+			}
+			return result;
+		}
+
+		//----------------------------------
+		//  numAutomationChildren
+		//----------------------------------
+
+		/**
+		 *  @private
+		 */
+		override public function get numAutomationChildren():int
+		{
+			return formItem.numChildren + (formItem.itemLabel != null ? 1 : 0);
+		}
+
+		/**
+		 *  @private
+		 */
+		override public function createAutomationIDPart(child:IAutomationObject):Object
+		{
+			var help:IAutomationObjectHelper = Automation.automationObjectHelper;
+			return help.helpCreateIDPart(uiAutomationObject, child, getItemAutomationName);
+		}
+
+		override public function createAutomationIDPartWithRequiredProperties(child:IAutomationObject, properties:Array):Object
+		{
+			var help:IAutomationObjectHelper = Automation.automationObjectHelper;
+			return help.helpCreateIDPartWithRequiredProperties(uiAutomationObject, child,properties, getItemAutomationName);
+		}
+
+		/**
+		 *  @private
+		 */
+		override public function getAutomationChildAt(index:int):IAutomationObject
+		{
+			var labelObj:IAutomationObject = formItem.itemLabel as IAutomationObject;
+			return (index == formItem.numChildren && labelObj != null
+				? (labelObj)
+				: super.getAutomationChildAt(index));
+		}
+
+		/**
+		 * @private
+		 */
+		override public function getAutomationChildren():Array
+		{
+			var childList:Array = new Array();
+			var labelObj:IAutomationObject = formItem.itemLabel as IAutomationObject;
+			// we need to add the label object and the children of the form also
+
+			var tempArray1:Array = super.getAutomationChildren();
+			if(tempArray1)
+			{
+				var n:int = tempArray1.length;
+				for (var i:int = 0; i < n ; i++)
+				{
+					childList.push(tempArray1[i]);
+				}
+			}
+
+			if(labelObj)
+				childList.push(labelObj);
+
+			return childList;
+		}
+		/**
+		 * @private
+		 */
+		private function getItemAutomationName(child:IAutomationObject):String
+		{
+			var labelObj:IAutomationObject = formItem.itemLabel as IAutomationObject;
+			var label:String = labelObj ? labelObj.automationName : "";
+			var result:String = null;
+			if (child.automationName && child.automationName.length != 0)
+				result = (((label)&&(label.length != 0))
+					? label + ":" + child.automationName
+					: child.automationName);
+			else
+			{
+				/*
+				for (var i:uint = 0; !result && i < numAutomationChildren; i++)
+				{
+				if (getAutomationChildAt(i) == child)
+				{
+				result = (i == 0 &&
+				numAutomationChildren == (labelObj ? 2 : 1)
+				? label
+				: label + ":" + i);
+				}
+				}
+				*/
+				// changing the above code to avoid the usage of getAutomationChildAt.
+				var childArray:Array = getAutomationChildren();
+				if (childArray)
+				{
+					var n:int = childArray.length;
+					for (var i:uint = 0; !result && i < n; i++)
+					{
+						if (childArray[i] == child)
+						{
+							result = (i == 0 &&
+								n == (labelObj ? 2 : 1)
+								? label
+								: label + ":" + i);
+						}
+					}
+				}
+			}
+			return result;
+		}
+
+
+
+	}
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 19940
Author:   chiedozi@adobe.com
Date:     2011-01-25T22:15:05.923796Z

Log Message:
-----------
Removing Flash @playerversion tags from ASDocs for ViewNavigator components

QE notes:
Doc notes:
Bugs: SDK-29208
Reviewer: Ryan
Tests run:
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/View.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigatorApplication.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewReturnObject.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorAction.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewNavigatorSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TabbedViewNavigatorSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewDescriptor.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewNavigatorApplicationSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/events/ViewNavigatorEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TabbedViewNavigatorApplicationSkin.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorAction.as
+++ frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorAction.as
@@ -18,7 +18,6 @@
      *  @see spark.events.ViewNavigatorEvent
      *
      *  @langversion 3.0
-     *  @playerversion Flash 10
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
@@ -34,7 +33,6 @@
          *  Constant indicating that no action was performed by the navigator.
          *
          *  @langversion 3.0
-         *  @playerversion Flash 10
          *  @playerversion AIR 2.5
          *  @productversion Flex 4.5
          */
@@ -45,7 +43,6 @@
          *  to a navigator.
          *
          *  @langversion 3.0
-         *  @playerversion Flash 10
          *  @playerversion AIR 2.5
          *  @productversion Flex 4.5
          */
@@ -56,7 +53,6 @@
          *  removed from the navigator.
          *
          *  @langversion 3.0
-         *  @playerversion Flash 10
          *  @playerversion AIR 2.5
          *  @productversion Flex 4.5
          */
@@ -67,7 +63,6 @@
          *  were removed from the navigator.
          *
          *  @langversion 3.0
-         *  @playerversion Flash 10
          *  @playerversion AIR 2.5
          *  @productversion Flex 4.5
          */
@@ -78,7 +73,6 @@
          *  first view are removed from the navigator.
          *
          *  @langversion 3.0
-         *  @playerversion Flash 10
          *  @playerversion AIR 2.5
          *  @productversion Flex 4.5
          */
@@ -89,7 +83,6 @@
          *  is replaced with another.
          *
          *  @langversion 3.0
-         *  @playerversion Flash 10
          *  @playerversion AIR 2.5
          *  @productversion Flex 4.5
          */


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

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

 package mx.automation.delegates.charts
 {


update the Preview and Export buttons when the "valid" status changes

--- exporter/src/main/as/flump/export/Exporter.as
+++ exporter/src/main/as/flump/export/Exporter.as
@@ -27,6 +27,7 @@
 import flump.xfl.XflMovie;

 import mx.collections.ArrayCollection;
+import mx.events.PropertyChangeEvent;

 import spark.components.DataGrid;
 import spark.components.DropDownList;
@@ -71,19 +72,33 @@
             _settings.data[AUTHORED_RESOLUTION] = selectedType.name();
         });

-        function updateExportEnabled (..._) :void {
+        function updatePreviewAndExport (..._) :void {
             _win.export.enabled = _exportChooser.dir != null && _libraries.selectionLength > 0 &&
-              _libraries.selectedItems.some(function (status :DocStatus, ..._) :Boolean {
-                return status.isValid;
-            });
+                _libraries.selectedItems.some(function (status :DocStatus, ..._) :Boolean {
+                    return status.isValid;
+            });
+
+            var status :DocStatus = _libraries.selectedItem as DocStatus;
+            _win.preview.enabled = (status != null && status.isValid);
         }
+
+        var curSelection :DocStatus = null;
         _libraries.addEventListener(GridSelectionEvent.SELECTION_CHANGE, function (..._) :void {
             log.info("Changed", "selected", _libraries.selectedIndices);
-            updateExportEnabled();
-            _win.preview.enabled = _libraries.selectedItem.isValid;
+            updatePreviewAndExport();
+
+            if (curSelection != null) {
+                curSelection.removeEventListener(PropertyChangeEvent.PROPERTY_CHANGE, updatePreviewAndExport);
+            }
+            var newSelection :DocStatus = _libraries.selectedItem as DocStatus;
+            if (newSelection != null) {
+                newSelection.addEventListener(PropertyChangeEvent.PROPERTY_CHANGE, updatePreviewAndExport);
+            }
+            curSelection = newSelection;
         });
         _win.reload.addEventListener(MouseEvent.CLICK, function (..._) :void {
             setImport(_importChooser.dir);
+            updatePreviewAndExport();
         });
         _win.export.addEventListener(MouseEvent.CLICK, function (..._) :void {
             for each (var status :DocStatus in _libraries.selectedItems) {
@@ -99,7 +114,7 @@
         setImport(_importChooser.dir);
         _exportChooser =
             new DirChooser(_settings, "EXPORT_ROOT", _win.exportRoot, _win.browseExport);
-        _exportChooser.changed.add(updateExportEnabled);
+        _exportChooser.changed.add(updatePreviewAndExport);
         function updatePublisher (..._) :void {
             if (_exportChooser.dir == null) _publisher = null;
             else {


Transferred from the Adobe Open Source Subversion Repository

Revision: 5825
Author:   hmuller@adobe.com
Date:     2009-03-31T22:02:45.612486Z

Log Message:
-----------
Bug fixes: virtualization, scrolling, layers.  These bug fixes were gating the virtualization implementation sign-off.

QE Notes:
Doc Notes:
Bugs: sdk-20141, sdk-19347, sdk-19984
Reviewer: Ryan

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

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

--- frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as
+++ frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as
@@ -148,10 +148,11 @@
         if (_useVirtualLayout == value)
             return;

+        dispatchEvent(new Event("useVirtualLayoutChanged"));
         _useVirtualLayout = value;
         if (target)
             target.invalidateDisplayList();
-    }
+    }

     //----------------------------------
     //  horizontalScrollPosition


Transferred from the Adobe Open Source Subversion Repository

Revision: 6266
Author:   egeorgie@adobe.com
Date:     2009-04-24T23:09:01.304621Z

Log Message:
-----------
Layout PARB changes

Major (most probably will require updates):
- LayoutBase.getScrollPositionDelta() -> getScrollPositionDeltaToElement()
- HorizontalLayout, VerticalLayout method inView() -> fractionOfElementInView()
- LayoutElementFactory is deleted, interface ILayoutElement is implemented by UIComponent, GraphicElement, VisualSprite, no need for casting in those cases, cast to ILayoutElement in case of type Object.
- TileLayout.elementHorizontalAlign -> horizontalAlign
- TileLayout.elementVerticalAlign -> verticalAlign
- TileJustifyRows -> RowAlign
- TileJustifyColumsn > ColumnAlign
- TileLayout.justifyRows -> rowAlign
- TileLayout.justifyColumns -> columnAling
- TileJustifyRows.NONE, "none" -> TOP, "top"
- TileJustifyRows.GAP_SIZE, "gapSize" -> JUSTIFY_USING_GAP, "justifyUsingGap"
- TileJustifyRows.ROW_SIZE, "rowSize" -> JUSTIFY_USING_HEIGHT, "justifyUsingHeight"
- TileJustifyColumns.NONE, "none" -> LEFT, "left"
- TileJustifyColumns.GAP_SIZE, "gapSize" -> JUSTIFY_USING_GAP, "justifyUsingGap"
- TileJustifyColumns.COLUMN_SIZE, "columnSize" -> JUSTIFY_USING_WIDTH, "justifyUsingWidth"
- TileLayout.set rowCount -> set requestedRowCount
- add TileLayout.get requestedRowCount
- TileLayout.set columnCount -> set requestedColumnCount
- add TileLayout.get requestedColumnCount

Minor (may require updates, but not that probable):
- get baselinePosition() is moved from IVisualElement to ILayoutElement.
- setLayoutBoundsSize() does not have default NaN values for width & height (but still logic is the same).
- name of ILayoutInterface methods' parameter "postTransform" is renamed to "postLayoutTransform".
- name of ILayoutInterface methods' parameter "triggerLayout" is renamed to "invalidateLayout".
- LayoutBase methods invalidateTargetSizeAndDisplayList() and invalidateTargetSize() are removed.
- LayoutBase method getTargetScrollRect() is renamed to getScrollRect().

QE Notes: None
Doc Notes: None
Bugs: None
Reviewer: Hans, Ryan
tests: checkintests, mustella (gumbo/layout, gumbo/group, gumbo/dataGroup)

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/layout/layout_tester.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/supportClasses/LayoutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/TextGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Ellipse.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElement.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/RowAlign.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/spark-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/LayoutElementUIComponentUtils.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/TileJustifyRows.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/Animate3DInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ILayoutElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/TileLayout.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/flex4/src/spark/components/HScrollBar.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/ColumnAlign.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/supportClasses/LayoutElementFactory.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ButtonBarHorizontalLayout.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="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/TileJustifyColumns.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/BasicLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/core/TextBaseClass.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/VScrollBar.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/flex4/src/spark/layout/supportClasses/Block.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/supportClasses/LinearLayoutVector.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ScrollerLayout.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as
+++ frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as
@@ -22,7 +22,7 @@
 import mx.utils.OnDemandEventDispatcher;

 /**
-*  The base class for all layouts.
+ *  The base class for all layouts.
  *
  *  To create a custom layout that works with the Spark containers,
  *  you must extend LayoutBase or one of its subclasses.
@@ -39,7 +39,7 @@
  *
Subclasses that support virtualization must respect the
  *  useVirtualLayout property and should only retrieve
  *  layout elements within the scrollRect (the value of
- *  getTargetScrollRect()) using getVirtualElementAt()
+ *  getScrollRect()) using getVirtualElementAt()
  *  from within updateDisplayList().

  */
 public class LayoutBase extends OnDemandEventDispatcher
@@ -128,7 +128,7 @@
      *
      *  @default false
      *
-     *  @see #getTargetScrollRect
+     *  @see #getScrollRect
      *  @see #typicalLayoutElement
      *
      *  @langversion 3.0
@@ -412,66 +412,6 @@
     {
     }

-    /**
-     *  Convenience function for subclasses that invalidates the
-     *  target's size and displayList so that both layout's measure()
-     *  and updateDisplayList methods get called.
-     *
-     *
Typically a layout invalidates the target's size and display list so that
-     *  it gets a chance to recalculate the target's default size and also size and
-     *  position the target's elements. For example changing the gap
-     *  property on a VerticalLayout will internally call this method
-     *  to ensure that the elements are re-arranged with the new setting and the
-     *  target's default size is recomputed.

-     *
-     *  @see #invalidateTargetDisplayList
-     *  @see mx.core.UIComponent#invalidateSize
-     *  @see mx.core.UIComponent#invalidateDisplayList
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-     */
-    protected function invalidateTargetSizeAndDisplayList():void
-    {
-        var g:GroupBase = target;
-        if (!g)
-            return;
-
-        g.invalidateSize();
-        g.invalidateDisplayList();
-    }
-
-    /**
-     *  Convenience function for subclasses that invalidates the
-     *  target's displayList so that the layout's updateDisplayList()
-     *  gets called.
-     *
-     *
Typically a layout invalidates the target's display list so that
-     *  it gets a chance to size and position the target's elements, but doesn't need to
-     *  recompute the target's default size. For example changing the horizontalAlign
-     *  property on a VerticalLayout will internally call this method
-     *  to ensure that the elements are re-arranged with the new setting.
-     *  The horizontalAlign does not affect the target's default size.

-     *
-     *  @see #invalidateTargetSizeAndDisplayList
-     *  @see mx.core.UIComponent#invalidateDisplayList
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-     */
-    protected function invalidateTargetDisplayList():void
-    {
-        var g:GroupBase = target;
-        if (!g)
-            return;
-
-        g.invalidateDisplayList();
-    }
-
     /**
      *  This method must is called by the target after a layout element
      *  has been added and before the target's size and display list are
@@ -597,7 +537,7 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    protected function getTargetScrollRect():Rectangle
+    protected function getScrollRect():Rectangle
     {
         var g:GroupBase = target;
         if (!g || !g.clipAndEnableScrolling)
@@ -827,7 +767,7 @@
         if (!g)
             return 0;

-        var scrollRect:Rectangle = getTargetScrollRect();
+        var scrollRect:Rectangle = getScrollRect();
         if (!scrollRect)
             return 0;

@@ -984,7 +924,7 @@
         if (!g)
             return 0;

-        var scrollRect:Rectangle = getTargetScrollRect();
+        var scrollRect:Rectangle = getScrollRect();
         if (!scrollRect)
             return 0;

@@ -1072,7 +1012,7 @@
     }

     /**
-     *  LayoutBase::getScrollPositionDelta() computes the
+     *  LayoutBase::getScrollPositionDeltaToElement() computes the
      *  vertical and horizontalScrollPosition deltas needed to
      *  scroll the element at the specified index into view.
      *
@@ -1110,7 +1050,7 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-     public function getScrollPositionDelta(index:int):Point
+     public function getScrollPositionDeltaToElement(index:int):Point
      {
         var g:GroupBase = target;
         if (!g || !clipAndEnableScrolling)
@@ -1124,7 +1064,7 @@
          if (!element || !element.includeInLayout)
             return null;

-         var scrollR:Rectangle = getTargetScrollRect();
+         var scrollR:Rectangle = getScrollRect();
          if (!scrollR)
             return null;


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

--- frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as
+++ frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as
@@ -535,9 +535,9 @@
      *  @playerversion AIR 2.0
      *  @productversion Flex 4.5
      */
-	public function setEstimatedSize(estimatedWidth:Number = NaN,
-									 estimatedHeight:Number = NaN,
-									 invalidateSize:Boolean = true):void
+    public function setEstimatedSize(estimatedWidth:Number = NaN,
+                                     estimatedHeight:Number = NaN,
+                                     invalidateSize:Boolean = true):void
     {

     }
@@ -1222,7 +1222,7 @@
      *  The implementation calls getElementBoundsLeftOfScrollRect() and
      *  getElementBoundsRightOfScrollRect() to determine the bounds of
      *  the elements.  Layout classes usually override those methods instead of
-     *  getHorizontalScrollPositionDelta().
+     *  the getHorizontalScrollPositionDelta() method.
      *
      *  @see spark.core.NavigationUnit
      *  @see #getElementBoundsLeftOfScrollRect
@@ -1330,7 +1330,7 @@
     }

     /**
-     *  Returns the change to the horizontal scroll position to handle
+     *  Returns the change to the vertical scroll position to handle
      *  different scrolling options.
      *  These options are defined by the NavigationUnit class:
      *  DOWN,  END, HOME,
@@ -1382,8 +1382,8 @@
      *
      *  The implementation calls getElementBoundsAboveScrollRect() and
      *  getElementBoundsBelowScrollRect() to determine the bounds of
-     *  the elements.  Layout classes usually override those methods instead of
-     *  getVerticalScrollPositionDelta().
+     *  the elements. Layout classes usually override those methods instead of
+     *  the getVerticalScrollPositionDelta() method.
      *
      *  @see spark.core.NavigationUnit
      *  @see #getElementBoundsAboveScrollRect


Fix pause issue.  When track is played and then paused, paused state was not reset.

--- src/SoundManager2_SMSound_AS3.as
+++ src/SoundManager2_SMSound_AS3.as
@@ -278,9 +278,11 @@
         if (this.paused) {
           this.ns.resume(); // get the sound going again
           if (!this.didLoad) this.didLoad = true;
+          this.paused = false;
         } else if (!this.didLoad) {
           this.ns.play(this.sURL);
           this.didLoad = true;
+          this.paused = false;
         }
         // this.ns.addEventListener(Event.SOUND_COMPLETE, _onfinish);
         this.applyTransform();


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

--- frameworks/projects/advancedgrids/src/mx/olap/IOLAPResult.as
+++ frameworks/projects/advancedgrids/src/mx/olap/IOLAPResult.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: 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@1273431 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/rpc/src/mx/messaging/AbstractProducer.as
+++ frameworks/projects/rpc/src/mx/messaging/AbstractProducer.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.messaging
 {


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 7287
Author:   chaase@adobe.com
Date:     2009-05-26T21:29:39.221182Z

Log Message:
-----------
Changed fixedThumbSize and smoothScrolling properties on ScrollBar to be styles instead, per a recent ARB decision.

QE Notes: None
Doc Notes: None
Bugs: sdk-21031
Reviewer: Glenn
tests: checkintests mustella gumbo/ScrollBar gumbo/Scroller

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Scroller.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/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/HScrollBar.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/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/GroupBase.as</path>

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

--- frameworks/projects/spark/src/spark/components/VScrollBar.as
+++ frameworks/projects/spark/src/spark/components/VScrollBar.as
@@ -150,7 +150,9 @@
         if (!thumb)
             return super.calculateThumbSize();

-        var size:Number = (fixedThumbSize) ? thumb.getPreferredBoundsHeight() : super.calculateThumbSize();
+        var size:Number = (getStyle("fixedThumbSize")) ?
+            thumb.getPreferredBoundsHeight() :
+            super.calculateThumbSize();
         return Math.max(thumb.minHeight, size);
     }

@@ -167,7 +169,9 @@
             return;

         thumb.setLayoutBoundsSize(NaN, thumbSize);
-        var calculatedThumbSize:Number = (fixedThumbSize) ? super.calculateThumbSize() : thumbSize;
+        var calculatedThumbSize:Number = (getStyle("fixedThumbSize")) ?
+            super.calculateThumbSize() :
+            thumbSize;
         thumb.visible = calculatedThumbSize < trackSize;
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 7929
Author:   hmuller@adobe.com
Date:     2009-06-17T23:06:42.698986Z

Log Message:
-----------
Range et al PARB changes, Opus #1.   In addition to the changes listed below, updated
flex4tests, notably ScrollBarFrenzy, for the new API.   These changes will break
performance test suite (TwoThumbSlider.as).

Range
  valueInterval => snapInterval
  step() => changeValueByStep()
  remove protected nearestValidSize() method

Slider
  Add protected pendingValue property
  Remove protected pointClickToPosition() method

TrackBase
  Add two new protected methods: updateSkinDisplayList(), pointToValue()
  Remove the following protected properties: get trackSize:Number, thumbSize:Number
  Remove the following protected methods:
      clickOffset()
      positionToValue()
      valueToPosition()
      pointToPosition()
      positionThumb()
      sizeThumb()
      calculateThumbSize()
      calculateNewValue()

ScrollBar
  page() => changeValueByPage()

Spinner
  valueWrap => allowValueWrap

NumericStepper
  displayFormatFunction => valueFormatFunction
  extractValueFunction => valueParseFunction
  commitTextInput => make private

QE Notes: Most Mustella tests passed after the protected API changes but prior to the renames.
Doc Notes:
Bugs:
Reviewer: Jason, Chet

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/Range.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/TrackBase.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/flex4/src/spark/components/HScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/mediaClasses/ScrubBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/VideoPlayerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/spark/VideoPlayerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/SkinTest.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/testWheel.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/NumericStepper.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/VScrollBar.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/TextArea.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/development/eclipse/flex/flex4test/src/ScrollbarFrenzy.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/flex4test.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/components/CircularScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/skins/CircularScrollBarSkin.mxml</path>

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

--- frameworks/projects/spark/src/spark/components/VScrollBar.as
+++ frameworks/projects/spark/src/spark/components/VScrollBar.as
@@ -11,7 +11,6 @@

 package spark.components
 {
-import mx.core.ILayoutElement;
 import mx.events.PropertyChangeEvent;
 import mx.events.ResizeEvent;

@@ -69,22 +68,6 @@
     //
     //--------------------------------------------------------------------------

-    /**
-     *  The size of the track, which equals the height of the track.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-     */
-    override protected function get trackSize():Number
-    {
-        if (track)
-            return track.height;
-        else
-            return 0;
-    }
-
     override public function set viewport(newViewport:IViewport):void
     {
         super.viewport = newViewport;
@@ -108,6 +91,44 @@
     //--------------------------------------------------------------------------

     /**
+     *  @private
+     */
+    override protected function pointToValue(x:Number, y:Number):Number
+    {
+        var r:Number = track.getLayoutBoundsHeight() - thumb.getLayoutBoundsHeight();
+        return minimum + ((r != 0) ? (y / r) * (maximum - minimum) : 0);
+    }
+
+    /**
+     *  @private
+     */
+    override protected function updateSkinDisplayList():void
+    {
+        if (!thumb || !track)
+            return;
+
+        var trackPos:Number = track.getLayoutBoundsY();
+        var trackSize:Number = track.getLayoutBoundsHeight();
+        var range:Number = maximum - minimum;
+
+        var thumbPos:Number = 0;
+        var thumbSize:Number = trackSize;
+        if (range > 0)
+        {
+            thumbSize = Math.min((pageSize / (range + pageSize)) * trackSize, trackSize)
+            thumbSize = Math.max(thumb.minHeight, thumbSize);
+            thumbPos = (value - minimum) * ((trackSize - thumbSize) / range);
+        }
+
+        if (getStyle("fixedThumbSize") === false)
+            thumb.setLayoutBoundsSize(NaN, thumbSize);
+        if (getStyle("autoThumbVisibility") === true)
+            thumb.visible = thumbSize < trackSize;
+        thumb.setLayoutBoundsPosition(thumb.getLayoutBoundsX(), Math.round(trackPos + thumbPos));
+    }
+
+
+    /**
      *  Update the value property and, if viewport is non null, then set
      *  its verticalScrollPosition to value.
      *
@@ -126,82 +147,6 @@
             viewport.verticalScrollPosition = value;
     }

-    /**
-     *  Position the thumb button according to the given thumbPos parameter,
-     *  relative to the current y location of the track in the scrollbar control.
-     *
-     *  @param thumbPos A number representing the new position of the thumb
-     *  button in the control.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-     */
-    override protected function positionThumb(thumbPos:Number):void
-    {
-        if (!thumb)
-            return;
-
-        var trackPos:Number = track ? track.y : 0;
-        thumb.setLayoutBoundsPosition(thumb.getLayoutBoundsX(), Math.round(trackPos + thumbPos));
-    }
-
-    /**
-     *  @private
-     */
-    override protected function calculateThumbSize():Number
-    {
-        if (!thumb)
-            return super.calculateThumbSize();
-
-        var size:Number = (getStyle("fixedThumbSize")) ?
-            thumb.getPreferredBoundsHeight() :
-            super.calculateThumbSize();
-        return Math.max(thumb.minHeight, size);
-    }
-
-    /**
-     *  @private
-     *  Note: we're comparing the "calculated", not fixed, size of the thumb with the trackSize
-     *  to decide if the thumb should be visible.  We want to know if the thumb needs to be visible,
-     *  and the comparison would fail if we always compared the track size and the fixed thumb size.
-     *  See calculateThumbSize().
-     */
-    override protected function sizeThumb(thumbSize:Number):void
-    {
-        if (!thumb)
-            return;
-
-        thumb.setLayoutBoundsSize(NaN, thumbSize);
-        var calculatedThumbSize:Number = (getStyle("fixedThumbSize")) ?
-            super.calculateThumbSize() :
-            thumbSize;
-        if (getStyle("autoThumbVisibility"))
-            thumb.visible = calculatedThumbSize < trackSize;
-    }
-
-    /**
-     *  Returns the position of the thumb button on an VScrollBar control,
-     *  which is equal to the localY parameter.
-     *
-     *  @param localX The X position relative to the scrollbar control.
-     *
-     *  @param localY The Y position relative to the scrollbar control.
-     *
-     *  @return The position of the thumb button.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-     */
-    override protected function pointToPosition(localX:Number,
-                                                localY:Number):Number
-    {
-        return localY;
-    }
-
     /**
      *  If viewport is not null,
      *  change the vertical scroll position for page up or page down by
@@ -216,28 +161,28 @@
      *
      *
If viewport is null,
      *  change the vertical scroll position for page up or page down by calling
-     *  the page() method.

+     *  the changeValueByPage() method.

      *
      *  @param increase Whether the page scroll is up (true) or
      *  down (false).
      *
-     *  @see mx.components.baseClasses.TrackBase#page()
+     *  @see mx.components.baseClasses.TrackBase#changeValueByPage()
      *  @see mx.components.baseClasses.TrackBase#setValue()
      *  @see spark.core.IViewport
      *  @see spark.core.IViewport#verticalScrollPosition
      *  @see spark.core.IViewport#getVerticalScrollPositionDelta()
-    *
-    *  @langversion 3.0
-    *  @playerversion Flash 10
-    *  @playerversion AIR 1.5
-    *  @productversion Flex 4
-    */
-     override public function page(increase:Boolean = true):void
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    override public function changeValueByPage(increase:Boolean = true):void
     {
         var oldPageSize:Number;
         if (viewport)
         {
-            // Want to use ScrollBar's page() implementation to get the same
+            // Want to use ScrollBar's changeValueByPage() implementation to get the same
             // animated behavior for scrollbars with and without viewports.
             // For now, just change pageSize temporarily and call the superclass
             // implementation.
@@ -245,7 +190,7 @@
             pageSize = Math.abs(viewport.getVerticalScrollPositionDelta(
                 (increase) ? NavigationUnit.PAGE_DOWN : NavigationUnit.PAGE_UP));
         }
-        super.page(increase);
+        super.changeValueByPage(increase);
         if (viewport)
             pageSize = oldPageSize;
     }
@@ -279,12 +224,12 @@
      *
      *
If viewport is null,
      *  change the vertical scroll position for line up or line down by calling
-     *  the step() method.

+     *  the changeValueByStep() method.

      *
      *  @param increase Whether the line scoll is up (true) or
      *  down (false).
      *
-     *  @see mx.components.baseClasses.TrackBase#step()
+     *  @see mx.components.baseClasses.TrackBase#changeValueByStep()
      *  @see mx.components.baseClasses.TrackBase#setValue()
      *  @see spark.core.IViewport
      *  @see spark.core.IViewport#verticalScrollPosition
@@ -295,12 +240,12 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-     override public function step(increase:Boolean = true):void
+     override public function changeValueByStep(increase:Boolean = true):void
     {
         var oldStepSize:Number;
         if (viewport)
         {
-            // Want to use ScrollBar's step() implementation to get the same
+            // Want to use ScrollBar's changeValueByStep() implementation to get the same
             // animated behavior for scrollbars with and without viewports.
             // For now, just change pageSize temporarily and call the superclass
             // implementation.
@@ -308,7 +253,7 @@
             stepSize = Math.abs(viewport.getVerticalScrollPositionDelta(
                 (increase) ? NavigationUnit.DOWN : NavigationUnit.UP));
         }
-        super.step(increase);
+        super.changeValueByStep(increase);
         if (viewport)
             stepSize = oldStepSize;
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 6221
Author:   mhorn@adobe.com
Date:     2009-04-23T19:28:12.018527Z

Log Message:
-----------
add ASDoc class level descriptions

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/projects/flex4/src/spark/skins/default/SkinnableDataContainerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/ApplicationSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerPlayPauseButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/ButtonBarFirstButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/DefaultItemRenderer.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/FocusSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/ScrollBarDownButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VSliderSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VSliderThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/SkinnableContainerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VScrollBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/ListSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/HSliderTrackSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/ButtonBarLastButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/DefaultButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/ScrollBarUpButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/ScrollerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/SpinnerIncrButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/DropDownListSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/HScrollBarThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VSliderTrackSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/TextInputSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/NumericStepperSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/SpinnerDecrButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VScrollBarThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerMuteButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/ButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/ButtonBarMiddleButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/ToggleButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/TextAreaSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/ScrollBarRightButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/SpinnerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/HScrollBarTrackSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/DropDownListButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/CheckBoxSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/ScrollBarLeftButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/RadioButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/NumericStepperTextInputSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/HSliderThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/HSliderSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/HScrollBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/DefaultComplexItemRenderer.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VScrollBarTrackSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/PanelSkin.mxml</path>

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

--- frameworks/projects/spark/src/spark/skins/spark/FocusSkin.as
+++ frameworks/projects/spark/src/spark/skins/spark/FocusSkin.as
@@ -27,7 +27,7 @@
 import flash.utils.Dictionary;

 /**
- *  Focus skins for Fx components.
+ *  Focus skins for Spark components.
  *
  *  @langversion 3.0
  *  @playerversion Flash 10


Transferred from the Adobe Open Source Subversion Repository

Revision: 13136
Author:   deeptika@adobe.com
Date:     2009-12-22T01:40:28.524956Z

Log Message:
-----------
Fix for FLEXENT-1196 (Replay of click on NavigatorContent does not close the combobox)

We need not record OPEN event when it is triggered from a KeyBoard event that types a character. Replaying the type event would automatically open the drop down.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkComboBoxAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkDropDownListBaseAutomationImpl.as</path>

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

--- frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkComboBoxAutomationImpl.as
+++ frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkComboBoxAutomationImpl.as
@@ -122,6 +122,10 @@
 			)

 				recordAutomatableEvent(event);
+			else	//Pressing any key other than the above keys opens dropDown automatically.
+					// So we need not record the open event in that case as replay of the input character
+					// automatically opens the dropDown
+				isKeyTypeEvent = true;
 		}

 		/**


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

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


def: 2899 handle autoPlayDelay=0 properly

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

--- plugins/relatedEntriesPlugin/src/relatedEntriesPluginCode.as
+++ plugins/relatedEntriesPlugin/src/relatedEntriesPluginCode.as
@@ -321,21 +321,28 @@
 		 */
 		public function startTimer():void
 		{
-			if (!_timeRemainingTimer)
-			{
-				_timeRemainingTimer = new Timer(1000, autoPlayDelay);
-				_timeRemainingTimer.addEventListener(TimerEvent.TIMER, onTimer, false, 0, true);
-				_timeRemainingTimer.addEventListener(TimerEvent.TIMER_COMPLETE, onTimerComplete, false, 0, true);
+			if (autoPlayDelay==0)
+			{
+				onTimerComplete();
 			}
 			else
 			{
-				_timeRemainingTimer.repeatCount = autoPlayDelay;
-				_timeRemainingTimer.reset();
-			}
-
-			timeRemaining = autoPlayDelay;
-			_timeRemainingTimer.start();
-			isTimerRunning = true;
+				if (!_timeRemainingTimer)
+				{
+					_timeRemainingTimer = new Timer(1000, autoPlayDelay);
+					_timeRemainingTimer.addEventListener(TimerEvent.TIMER, onTimer, false, 0, true);
+					_timeRemainingTimer.addEventListener(TimerEvent.TIMER_COMPLETE, onTimerComplete, false, 0, true);
+				}
+				else
+				{
+					_timeRemainingTimer.repeatCount = autoPlayDelay;
+					_timeRemainingTimer.reset();
+				}
+
+				timeRemaining = autoPlayDelay;
+				_timeRemainingTimer.start();
+				isTimerRunning = true;
+			}
 		}

 		/**
@@ -369,7 +376,7 @@
 			timeRemaining = _timeRemainingTimer.repeatCount - _timeRemainingTimer.currentCount;
 		}

-		private function onTimerComplete(event:TimerEvent):void
+		private function onTimerComplete(event:TimerEvent = null):void
 		{
 			timeRemaining = 0;
 			isTimerRunning = false;


* Set background color based on chromeColor style value (apply same fix to Android4 skins) Fix for https://issues.apache.org/jira/browse/FLEX-34748

--- frameworks/projects/mobiletheme/src/spark/skins/android4/ActionBarSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/android4/ActionBarSkin.as
@@ -549,20 +549,8 @@

         var chromeColor:uint = getStyle("chromeColor");
         var backgroundAlphaValue:Number = getStyle("backgroundAlpha");
-        var colors:Array = [];
-
-        // apply alpha to chromeColor fill only
-        var backgroundAlphas:Array = [backgroundAlphaValue, backgroundAlphaValue];
-
-        // exclude top and bottom 1px borders
-        colorMatrix.createGradientBox(unscaledWidth, unscaledHeight - (borderSize * 2), Math.PI / 2, 0, 0);
-
-        colors[0] = ColorUtil.adjustBrightness2(chromeColor, 20);
-        colors[1] = chromeColor;
-
-        graphics.beginGradientFill(GradientType.LINEAR, colors, backgroundAlphas, ACTIONBAR_CHROME_COLOR_RATIOS, colorMatrix);
-        graphics.drawRect(0, borderSize, unscaledWidth, unscaledHeight - (borderSize * 2));
-        graphics.endFill();
+
+		applyColorTransform(this.border, 0xFFFFFF, chromeColor);
     }

 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 4794
Author:   rfrishbe@adobe.com
Date:     2009-02-02T19:29:07.168067Z

Log Message:
-----------
Fixing a bug found by Paul.  Missed a spot when doing a method rename earlierl.

QE Notes: Should add tests that use List.baselinePosition.
Doc Notes: None
Bugs: None
Reviewer: Paul, Hans
tests: checkintests

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxListBase.as

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

--- frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
@@ -316,7 +316,7 @@

         // Obtain reference to newly generated item element which will be used
         // to compute the baseline.
-        var listItem:Object = dataGroup.mx_internal::getItemRenderer(0);
+        var listItem:Object = dataGroup.getRendererForItemAt(0);
         if (!listItem)
             return super.baselinePosition;


Transferred from the Adobe Open Source Subversion Repository

Revision: 18670
Author:   rfrishbe@adobe.com
Date:     2010-11-17T19:55:37.597379Z

Log Message:
-----------
Fixing some issues with the caret index, specifically how it relates to selectedIndex.  When the selectedIndex gets set, it would short-circuit if the value was the same as the current selected index.  However, we also rely on that setter to change the caret index for us.  So, I added some logic in there to do just that and also cleaned up some places where we were setting caret index directly when the selectedIndex setter can just handle it for us.

There are still some places where we set selectedIndex and then set caretIndex.  Those shouldn't be necessary, but I didn't see a real reason to go through the code and remove them all.

QE notes:
Doc notes:
Bugs: SDK-27707
Reviewer: Jason SZ
Tests run: checkintests, mustella cyclone server run
Is noteworthy for integration: No

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

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

--- frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
@@ -643,7 +643,14 @@
     mx_internal function setSelectedIndex(value:int, dispatchChangeEvent:Boolean = false):void
     {
         if (value == selectedIndex)
+		{
+			// this should short-circuit, but we should check to make sure
+			// that caret doesn't need to be changed either, as that's a side
+			// effect of setting selectedIndex
+			setCurrentCaretIndex(selectedIndex);
+
             return;
+		}

         if (dispatchChangeEvent)
             dispatchChangeAfterSelection = dispatchChangeEvent;


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

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

-package mx.graphics.baseClasses
+package spark.primitives.supportClasses
 {

 import flash.display.DisplayObjectContainer;


Transferred from the Adobe Open Source Subversion Repository

Revision: 13046
Author:   hneelu@adobe.com
Date:     2009-12-17T12:34:07.695337Z

Log Message:
-----------
Updating automation sources..

Modified Paths:
--------------
451 paths were modified

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

--- frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkListAutomationImpl.as
+++ frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkListAutomationImpl.as
@@ -37,7 +37,7 @@
 	import spark.components.List;
 	import spark.components.Scroller;
 	import spark.components.supportClasses.ScrollBarBase;
-    import spark.layouts.HorizontalLayout;
+	import spark.layouts.HorizontalLayout;
 	import spark.layouts.VerticalLayout;

 	use namespace mx_internal;
@@ -186,30 +186,30 @@

 			for (var i:int = 0; i < n; i++)
 			{
-
+
 				var selectedIndex:int  =  selItems[i];

 				if (selectedIndex < firstVisibleIndex)
-			{
-			selectedItemsAboveView = true;
-			}
+				{
+					selectedItemsAboveView = true;
+				}
 				else if (selectedIndex > lastVisibleIndex)
-			{
-			selectedItemsBelowView = true;
-			}
-			else
-			{
+				{
+					selectedItemsBelowView = true;
+				}
+				else
+				{
 					var item:IVisualElement = sparkList.dataGroup.getElementAt(selectedIndex);
 					if(item is IAutomationObject)
-			result.push(IAutomationObject(item).automationValue);
-			}
+						result.push(IAutomationObject(item).automationValue);
+				}
 			}

 			if (selectedItemsAboveView)
-			result.unshift("...");
+				result.unshift("...");

 			if (selectedItemsBelowView)
-			result.push("...");
+				result.push("...");

 			return result;
 		}
@@ -259,8 +259,14 @@
 		 */
 		protected function dragDropHandler(event:DragEvent):void
 		{
-			var dragDropVScrollPos:Number = sparkList.layout.verticalScrollPosition;
-			var dragDropHScrollPos:Number = sparkList.layout.horizontalScrollPosition;
+
+			var dragDropVScrollPos:Number = -1;
+			var dragDropHScrollPos:Number = -1;
+			if(sparkList.layout != null)
+			{
+				dragDropVScrollPos = sparkList.layout.verticalScrollPosition;
+				dragDropHScrollPos = sparkList.layout.horizontalScrollPosition;
+			}
 			var am:IAutomationManager = Automation.automationManager;

 			// Scrolling on the list while dragging is not dispatching any event.
@@ -319,8 +325,16 @@
 			// So we are storing the scroll positions at the time of drag enter
 			// so that we can record a value change event if we find that the scroll positions
 			// at the time of drag drop are different from those at the time of drag enter.
-			dragEnterVScrollPos = sparkList.layout.verticalScrollPosition;
-			dragEnterHScrollPos = sparkList.layout.horizontalScrollPosition;
+			if(sparkList.layout != null)
+			{
+				dragEnterVScrollPos = sparkList.layout.verticalScrollPosition;
+				dragEnterHScrollPos = sparkList.layout.horizontalScrollPosition;
+			}
+			else
+			{
+				dragEnterVScrollPos = -1;
+				dragEnterHScrollPos = -1;
+			}
 		}

 		/**


Use a URLLoader to query the HTTP facilitator.

--- swfcat.as
+++ swfcat.as
@@ -6,6 +6,9 @@
     import flash.text.TextField;
     import flash.text.TextFormat;
     import flash.net.Socket;
+    import flash.net.URLLoader;
+    import flash.net.URLLoaderDataFormat;
+    import flash.net.URLRequest;
     import flash.events.Event;
     import flash.events.IOErrorEvent;
     import flash.events.ProgressEvent;
@@ -35,9 +38,6 @@
         public const RATE_LIMIT:Number = undefined;
         // Seconds.
         private const RATE_LIMIT_HISTORY:Number = 5.0;
-
-        // Socket to facilitator.
-        private var s_f:Socket;

         /* TextField for debug output. */
         private var output_text:TextField;
@@ -183,45 +183,49 @@
         /* The main logic begins here, after start-up issues are taken care of. */
         private function main():void
         {
+            var fac_url:String;
+            var loader:URLLoader;
+
             if (num_proxy_pairs >= MAX_NUM_PROXY_PAIRS) {
                 setTimeout(main, FACILITATOR_POLL_INTERVAL);
                 return;
             }

-            s_f = new Socket();
-
-            s_f.addEventListener(Event.CONNECT, fac_connected);
-            s_f.addEventListener(Event.CLOSE, function (e:Event):void {
-                puts("Facilitator: closed connection.");
-                setTimeout(main, FACILITATOR_POLL_INTERVAL);
-            });
-            s_f.addEventListener(IOErrorEvent.IO_ERROR, function (e:IOErrorEvent):void {
+            loader = new URLLoader();
+            /* Get the x-www-form-urlencoded values. */
+            loader.dataFormat = URLLoaderDataFormat.VARIABLES;
+            loader.addEventListener(Event.COMPLETE, fac_complete);
+            loader.addEventListener(IOErrorEvent.IO_ERROR, function (e:IOErrorEvent):void {
                 puts("Facilitator: I/O error: " + e.text + ".");
             });
-            s_f.addEventListener(SecurityErrorEvent.SECURITY_ERROR, function (e:SecurityErrorEvent):void {
+            loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, function (e:SecurityErrorEvent):void {
                 puts("Facilitator: security error: " + e.text + ".");
             });

-            puts("Facilitator: connecting to " + fac_addr.host + ":" + fac_addr.port + ".");
-            s_f.connect(fac_addr.host, fac_addr.port);
-        }
-
-        private function fac_connected(e:Event):void
-        {
-            puts("Facilitator: connected.");
-
-            s_f.addEventListener(ProgressEvent.SOCKET_DATA, fac_data);
-
-            s_f.writeUTFBytes("GET / HTTP/1.0\r\n\r\n");
-        }
-
-        private function fac_data(e:ProgressEvent):void
-        {
+            fac_url = "http://" + encodeURIComponent(fac_addr.host)
+                + ":" + encodeURIComponent(fac_addr.port) + "/";
+            puts("Facilitator: connecting to " + fac_url + ".");
+            loader.load(new URLRequest(fac_url));
+        }
+
+        private function fac_complete(e:Event):void
+        {
+            var loader:URLLoader;
             var client_spec:String;
             var client_addr:Object;
             var proxy_pair:Object;

-            client_spec = s_f.readMultiByte(e.bytesLoaded, "utf-8");
+            setTimeout(main, FACILITATOR_POLL_INTERVAL);
+
+            loader = e.target as URLLoader;
+            client_spec = loader.data.client;
+            if (client_spec == "") {
+                puts("No clients.");
+                return;
+            } else if (!client_spec) {
+                puts("Error: missing \"client\" in response.");
+                return;
+            }
             puts("Facilitator: got \"" + client_spec + "\".");

             client_addr = parse_addr_spec(client_spec);


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

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

 package mx.controls.advancedDataGridClasses
 {


Removing unused constants.

Removing unused constants.

We may want to bring back the PARAM_CHANGE event eventually, but
this is not the right place for the constant anyway.

--- driver/src/main/flex/org/postgresql/db/Connection.as
+++ driver/src/main/flex/org/postgresql/db/Connection.as
@@ -13,9 +13,6 @@
     import org.postgresql.febe.MessageBroker;

     public class Connection extends EventDispatcher implements IConnection, IConnectionHandler {
-
-        public static const PARAM_CHANGE:String = 'paramChange';
-        public static const READY_FOR_QUERY:String = 'readyForQuery';

         private var _queryHandlerFactory:QueryHandlerFactory;
         private var _baseConn:FEBEConnection;


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 5099
Author:   gauravj@adobe.com
Date:     2009-02-27T03:43:02.639229Z

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:
--------------
147 paths were modified

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

--- frameworks/projects/rpc/src/mx/rpc/xml/XMLLoader.as
+++ frameworks/projects/rpc/src/mx/rpc/xml/XMLLoader.as
@@ -45,6 +45,11 @@

     /**
      * Asynchronously loads an XML document for the given URL.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function load(url:String):void
     {
@@ -98,6 +103,11 @@
     /**
      * If a fault occured trying to load the XML document, a FaultEvent
      * is simply redispatched.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     protected function faultHandler(event:FaultEvent):void
     {
@@ -108,6 +118,11 @@
     /**
      * Dispatches an XMLLoadEvent with the XML formatted result
      * and location (if known).
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     protected function resultHandler(event:ResultEvent):void
     {


Transferred from the Adobe Open Source Subversion Repository

Revision: 7953
Author:   chaase@adobe.com
Date:     2009-06-18T15:27:47.178122Z

Log Message:
-----------
Small PARB effects change (oversight, should have been in Monday's commit). This removes the Fade.affectVisibility property. We used to automatically side-effect the 'visible' property on target objects when they were faded out or in, and exposed the affectVisibility flag to allow the developer to deny this side-effect. PARB requested that we just have that behavior but not allow the developer to tweak it. Now, an object that is not visible will be set to visible if Fade fades it in (when manually played - transitions are a different situation). We do not, however, set the visible flag to false automatically when fading it out, because that seems just wrong.

QE Notes: Should have no impact - this flag was new, and we knew when it went in that we were probably removing it soon. No tests exist for it.
Doc Notes:
Bugs:
Reviewer: Hans
Tests: checkintests

Modified Paths:
--------------
<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/effects/Fade.as</path>

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

--- frameworks/projects/spark/src/spark/effects/Fade.as
+++ frameworks/projects/spark/src/spark/effects/Fade.as
@@ -16,7 +16,16 @@
 import spark.effects.supportClasses.FadeInstance;

 /**
- *  The Fade effect animates the alpha property of a component.
+ *  The Fade effect animates the alpha property of a component.
+ *  If played manually (outside of a transition) on an object whose
+ *  visible property is set to false, and told to animate
+ *  alpha from zero to a nonzero value, it will set visible
+ *  to true as a side-effect of fading it in. When run as part of a
+ *  transition, it will respect state-specified values, but may use
+ *  the visible property as well as whether the object
+ *  is parented in the before/after states to determine the
+ *  values to animate alpha from and to if alphaFrom
+ *  and alphaTo are not specified for the effect.
  *
  *  @mxml
  *
@@ -111,41 +120,6 @@
      */
     public var alphaTo:Number;

-    //----------------------------------
-    //  affectVisibility
-    //----------------------------------
-
-    [Inspectable(category="General", defaultValue="true")]
-
-    /**
-     *  Fade animates the alpha value of its target
-     *  objects. But it may also be desirable for Fade to automatically
-     *  affect the visible property as well, setting that
-     *  property to false when fading out a visible object
-     *  or setting it to true when fading in a non-visible
-     *  object. The setting of this flag determines whether that side-effect
-     *  will persist after the Fade is complete.
-     *
-     *
For example, an object which is not visible when a fade-in
-     *  operation is run on it will become visible when the effect runs and
-     *  stay visible when the effect finishes.

-     *
-     *
Note that if the visible property is specified
-     *  explicitly in state values, this behavior will not counter the
-     *  instructions when going into that state. For example, an object
-     *  which is not visible and which has a visible value
-     *  of false in some state "StateX" will remain non-visible
-     *  after any Fade effect runs on it, even if that Fade effect
-     *  explicitly faded the object in.

-     *
-     *  @default true
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-     */
-    public var affectVisibility:Boolean = true;

     //--------------------------------------------------------------------------
     //
@@ -164,7 +138,6 @@

         fadeInstance.alphaFrom = alphaFrom;
         fadeInstance.alphaTo = alphaTo;
-        fadeInstance.affectVisibility = affectVisibility;
     }

     /**


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

--- frameworks/projects/automation_flashflexkit/src/mx/automation/delegates/flashflexkit/ContainerMovieClipAutomationImpl.as
+++ frameworks/projects/automation_flashflexkit/src/mx/automation/delegates/flashflexkit/ContainerMovieClipAutomationImpl.as
@@ -0,0 +1,208 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.flashflexkit
+{
+	import flash.display.DisplayObject;
+
+	import mx.automation.Automation;
+	import mx.automation.IAutomationObject;
+	import mx.automation.IAutomationObjectHelper;
+	import mx.core.IUIComponent;
+	import mx.core.mx_internal;
+	import mx.flash.ContainerMovieClip;
+	use namespace mx_internal;
+
+	[Mixin]
+	/**
+	 *
+	 *  Defines methods and properties required to perform instrumentation for the
+	 *  ContainerMovieClip control.
+	 *
+	 *  @see mx.flash.ContainerMovieClip;
+	 *
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public class  ContainerMovieClipAutomationImpl  extends UIMovieClipAutomationImpl
+	{
+		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(ContainerMovieClip, ContainerMovieClipAutomationImpl);
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Constructor
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  Constructor.
+		 * @param obj Panel object to be automated.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public function ContainerMovieClipAutomationImpl(obj:ContainerMovieClip)
+		{
+			super(obj);
+			recordClick = true;
+		}
+
+
+		/**
+		 *  @private
+		 *  storage for the owner component
+		 */
+		protected function get containerMovieClip():ContainerMovieClip
+		{
+			return movieClip as ContainerMovieClip;
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Overridden properties
+		//
+		//--------------------------------------------------------------------------
+
+		//----------------------------------
+		//  automationName
+		//----------------------------------
+
+		/**
+		 *  @private
+		 */
+		override public function get automationName():String
+		{
+			return super.automationName;
+		}
+
+		/**
+		 *  @private
+		 */
+		override public function get automationValue():Array
+		{
+			return [ automationName ];
+		}
+
+		//----------------------------------
+		//  numAutomationChildren
+		//----------------------------------
+
+		/**
+		 *  @private
+		 */
+		override public function get numAutomationChildren():int
+		{
+			// Always the Flash container can have only one child which is the
+			// Flex ContentHolder. It is always like this.
+			// So there is only automationChild for the ContainerMovieClip
+			return 1;
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Overridden methods
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  @private
+		 */
+		override public function getAutomationChildAt(index:int):IAutomationObject
+		{
+			// there is only one AutomationChild for the CotnainerMoovieClip
+			// which is FlexContentHolder
+			// there is no mehtod to get this directly. Content reurns the flex object
+			// which is added to the FlexContentHolder. So we need to get the child by
+			// getting the parent of the the content.
+			// once we have a direct method in UIMovieClip to get the FlexContent holder
+			// we need to call that
+			if (index == 0)
+			{
+				var contentObj:IUIComponent = containerMovieClip.content as IUIComponent;
+				return contentObj.parent as IAutomationObject;
+			}
+
+			return null;
+		}
+
+		/**
+		 *  @private
+		 */
+		override public function getAutomationChildren():Array
+		{
+			// there is only one AutomationChild for the CotnainerMoovieClip
+			// which is FlexContentHolder
+			// there is no mehtod to get this directly. Content reurns the flex object
+			// which is added to the FlexContentHolder. So we need to get the child by
+			// getting the parent of the the content.
+			// once we have a direct method in UIMovieClip to get the FlexContent holder
+			// we need to call that
+			var contentObj:IUIComponent = containerMovieClip.content as IUIComponent;
+			return [contentObj.parent as IAutomationObject];
+		}
+
+		/**
+		 *  @private
+		 */
+		override public function createAutomationIDPart(child:IAutomationObject):Object
+		{
+			var help:IAutomationObjectHelper = Automation.automationObjectHelper;
+			return help.helpCreateIDPart(uiAutomationObject, child);
+		}
+
+		/**
+		 *  @private
+		 */
+		override public function createAutomationIDPartWithRequiredProperties(child:IAutomationObject, properties:Array):Object
+		{
+			var help:IAutomationObjectHelper = Automation.automationObjectHelper;
+			return help.helpCreateIDPartWithRequiredProperties(uiAutomationObject, child,properties);
+		}
+
+		/**
+		 *  @private
+		 */
+		override public function resolveAutomationIDPart(part:Object):Array
+		{
+			var help:IAutomationObjectHelper = Automation.automationObjectHelper;
+			return help.helpResolveIDPart(uiAutomationObject, part);
+		}
+	}
+}
+
+


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

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


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

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