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

--- frameworks/projects/automation/src/mx/automation/delegates/core/RepeaterAutomationImpl.as
+++ frameworks/projects/automation/src/mx/automation/delegates/core/RepeaterAutomationImpl.as
@@ -0,0 +1,291 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.core
+{
+	import flash.display.DisplayObject;
+
+	import mx.automation.Automation;
+	import mx.automation.AutomationIDPart;
+	import mx.automation.tabularData.ContainerTabularData;
+	import mx.automation.IAutomationObject;
+	import mx.automation.IAutomationObjectHelper;
+	import mx.automation.delegates.core.UIComponentAutomationImpl;
+	import mx.core.mx_internal;
+	import mx.core.Repeater;
+
+	use namespace mx_internal;
+
+	[Mixin]
+	/**
+	 *
+	 *  Defines the methods and properties required to perform instrumentation for the
+	 *  Repeater class.
+	 *
+	 *  @see mx.core.Repeater
+	 *
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public class RepeaterAutomationImpl extends UIComponentAutomationImpl
+	{
+		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(Repeater, RepeaterAutomationImpl);
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Constructor
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  Constructor.
+		 * @param obj Repeater object to be automated.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public function RepeaterAutomationImpl(obj:Repeater)
+		{
+			super(obj);
+		}
+
+		/**
+		 *  @private
+		 *  storage for the owner component
+		 */
+		protected function get repeater():Repeater
+		{
+			return uiComponent as Repeater;
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Overridden properties
+		//
+		//--------------------------------------------------------------------------
+
+		//----------------------------------
+		//  automationValue
+		//----------------------------------
+
+		/**
+		 *  @private
+		 */
+		override public function get automationValue():Array
+		{
+			var result:Array = [];
+
+			var components:Array = repeater.createdComponents;
+			if (components)
+			{
+				var n:int = components.length;
+				for (var i:int = 0; i < n; i++)
+				{
+					var delegate:IAutomationObject =
+						(components[i] as IAutomationObject);
+					if (delegate)
+						result.push(delegate.automationValue);
+				}
+			}
+			return result;
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Properties
+		//
+		//--------------------------------------------------------------------------
+
+		//----------------------------------
+		//  itemAutomationNameFunction
+		//----------------------------------
+
+		[Bindable]
+
+		/**
+		 *  @private
+		 */
+		mx_internal var itemAutomationNameFunction:Function = getItemAutomationValue;
+
+
+		/**
+		 *  @private
+		 */
+		public function getItemAutomationValue(item:IAutomationObject):String
+		{
+			return getItemAutomationNameOrValueHelper(item, false);
+		}
+
+		/**
+		 *  @private
+		 */
+		public function getItemAutomationName(item:IAutomationObject):String
+		{
+			return getItemAutomationNameOrValueHelper(item, true);
+		}
+
+		/**
+		 *  @private
+		 */
+		private function getItemAutomationNameOrValueHelper(item:IAutomationObject,
+															useName:Boolean):String
+		{
+			var components:Array = repeater.createdComponents;
+			// Find this component's 'row'.
+			var n:int = components.length;
+			for (var i:int = 0; i < n; i++)
+			{
+				if (components[i] == item)
+					break;
+			}
+
+			var row:int = i / repeater.childDescriptors.length;
+			var result:Array = [];
+
+			var s:String = (useName
+				? item.automationName
+				: item.automationValue.join(" | "));
+
+			var beginIndex:int = row * repeater.childDescriptors.length;
+			var endIndex:int = beginIndex + repeater.childDescriptors.length;
+			for (var col:int = beginIndex; col < endIndex; ++col)
+			{
+				result.push(col == i && repeater.childDescriptors.length > 1
+					? "*" + s + "*"
+					: s);
+			}
+			return result.join(" | ");
+		}
+
+		/**
+		 *  @private
+		 */
+		public function getItemAutomationIndex(item:IAutomationObject):String
+		{
+			var components:Array = repeater.createdComponents;
+			//find this component's 'row'
+			var n:int = components.length;
+			for (var i:int = 0; i < n; i++)
+			{
+				if (components[i] == item)
+					return ("index:" + i.toString());
+			}
+			return "index:-1";
+		}
+
+		/**
+		 *  @private
+		 */
+		override public function createAutomationIDPart(child:IAutomationObject):Object
+		{
+			var help:IAutomationObjectHelper = Automation.automationObjectHelper;
+			return help.helpCreateIDPart(uiAutomationObject, child, itemAutomationNameFunction,
+				getItemAutomationIndex);
+		}
+
+		/**
+		 *  @private
+		 */
+		override public function createAutomationIDPartWithRequiredProperties(child:IAutomationObject, properties:Array):Object
+		{
+			var help:IAutomationObjectHelper = Automation.automationObjectHelper;
+			return help.helpCreateIDPartWithRequiredProperties(uiAutomationObject, child,properties,itemAutomationNameFunction,
+				getItemAutomationIndex);
+		}
+
+
+		/**
+		 *  @private
+		 */
+		override public function resolveAutomationIDPart(criteria:Object):Array
+		{
+			var help:IAutomationObjectHelper = Automation.automationObjectHelper;
+			return help.helpResolveIDPart(uiAutomationObject, criteria);
+		}
+
+		//----------------------------------
+		//  numAutomationChildren
+		//----------------------------------
+
+		/**
+		 *  @private
+		 */
+		override public function get numAutomationChildren():int
+		{
+			var components:Array = repeater.createdComponents;
+			return components ? components.length : 0;
+		}
+
+		/**
+		 *  @private
+		 */
+		override public function getAutomationChildAt(index:int):IAutomationObject
+		{
+			var o:Object = repeater.createdComponents[index];
+			return o as IAutomationObject;
+		}
+
+
+
+		/**
+		 * @private
+		 */
+		override public function getAutomationChildren():Array
+		{
+			return repeater.createdComponents;
+		}
+
+		//----------------------------------
+		//  automationTabularData
+		//----------------------------------
+
+		/**
+		 *  An array of all components within this repeater
+		 *  found in the automation hierarchy.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		override public function get automationTabularData():Object
+		{
+			return new ContainerTabularData(uiAutomationObject);
+		}
+
+	}
+
+}


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

--- frameworks/projects/automation/src/mx/automation/tabularData/CartesianChartTabularData.as
+++ frameworks/projects/automation/src/mx/automation/tabularData/CartesianChartTabularData.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  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.
+//  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
+//
+//      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.
 //
 ////////////////////////////////////////////////////////////////////////////////


path() now returning null if path cannot be found for an ILinkableObject

--- WeaveJS/src/Weave.as
+++ WeaveJS/src/Weave.as
@@ -67,7 +67,7 @@
 			// handle path(linkableObject)
 			if (basePath.length == 1 && isLinkable(basePath[0]))
 				basePath = findPath(root, basePath[0]);
-			return new WeavePathUI(this, basePath);
+			return basePath ? new WeavePathUI(this, basePath) : null;
 		}

 		/**


Add test for unset environment variable.

--- test/src/FRESteamWorksTest.as
+++ test/src/FRESteamWorksTest.as
@@ -151,6 +151,7 @@
 				log("isDLCInstalled(999999) == " + Steamworks.isDLCInstalled(999999));
 				log("findLeaderboard('Feet Traveled') == " + Steamworks.findLeaderboard('Feet Traveled'));
 				log("getEnv('SteamTenfoot') == " + Steamworks.getEnv("SteamTenfoot"));
+				log("getEnv('HopefullyNotSet') == " + Steamworks.getEnv('HopefullyNotSet'));

 				var quota:Array = Steamworks.getQuota();
 				log("getQuota() == " + (quota ? "[" + quota.join(", ") + "]" : "null"));


Fixed Geometry.merge for last commit

Fixed Geometry.merge for last commit

--- src/aerys/minko/render/geometry/Geometry.as
+++ src/aerys/minko/render/geometry/Geometry.as
@@ -983,14 +983,17 @@
 				_vertexStreams = vertexStreamsToConcat;
 			}

-			var indexStream = _indexStream != null
+			var indexStream : IndexStream = _indexStream != null
 				? _indexStream.clone(indexStreamUsage)
 				: new IndexStream(indexStreamUsage);

-			_indexStream.disposeLocalData();
-			_indexStream.dispose();
-
-			if (geometry._indexStream != null)
+			if (_indexStream)
+			{
+				_indexStream.disposeLocalData();
+				_indexStream.dispose();
+			}
+
+			if (geometry._indexStream)
 				_indexStream = indexStream.concat(geometry._indexStream, 0, 0, indexOffset);
 			else
 				_indexStream = indexStream;


Transferred from the Adobe Open Source Subversion Repository

Revision: 18072
Author:   chiedozi@adobe.com
Date:     2010-10-07T21:09:04.099363Z

Log Message:
-----------
PARB Changes to ViewNavigator feature set.  Changes summarized below:

View
active getter renamed to isActive
Removed context property from View and moved it to ViewNavigator

ViewNavigator
context property is now typed Object
navigationStack property now mx_internal in ViewNavigatorBase
factory parameter for push operations renamed to  viewClass
NavigationStack push and pop api names changed to match ViewNavigator methods
active getter renamed isActive
viewNavigator no longer dispatches a COMPLETE event
defaultTransitions are no longer skin parts.  They are now  mx_internal vars.

TabbedViewNavigator
No longer dispatches complete, instead dispatches IndexChangeEvent.CHANGE

ViewProxy
ViewProxy renamed to ViewDescriptor
persistedData renamed to persistenceData

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/core/ContainerDestructionPolicy.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/MobileApplication.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="dir" action="M">/private/flex/sdk/branches/hero_private</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/TabbedMobileApplication.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/defaults.css</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/NavigationStack.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" copyfrom-path="/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewProxy.as" copyfrom-rev="18044" action="A">/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/framework/src/mx/events/FlexEvent.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="D">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewProxy.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigatorApplication.as
+++ frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigatorApplication.as
@@ -22,7 +22,7 @@

 import spark.components.supportClasses.MobileApplicationBase;
 import spark.components.supportClasses.NavigationStack;
-import spark.components.supportClasses.ViewProxy;
+import spark.components.supportClasses.ViewDescriptor;
 import spark.components.supportClasses.ViewNavigatorBase;

 use namespace mx_internal;
@@ -274,7 +274,7 @@

         // Register aliases for custom classes that will be written to
         // persistence store by navigator
-        registerClassAlias("ViewProxy", ViewProxy);
+        registerClassAlias("ViewDescriptor", ViewDescriptor);
         registerClassAlias("NavigationStack", NavigationStack);
     }


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

--- frameworks/projects/advancedgrids/src/mx/controls/advancedDataGridClasses/AdvancedDataGridColumn.as
+++ frameworks/projects/advancedgrids/src/mx/controls/advancedDataGridClasses/AdvancedDataGridColumn.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.
 //
 ////////////////////////////////////////////////////////////////////////////////


first draft of simple upload

first draft of simple upload

--- src/flash/plupload/src/com/plupload/File.as
+++ src/flash/plupload/src/com/plupload/File.as
@@ -97,6 +97,65 @@
 		 * @param settings Settings object.
 		 */
 		public function upload(url:String, settings:Object):void {
+			if(this.canUseSimpleUpload(settings)) {
+				this.simpleUpload(url, settings);
+			} else {
+				this.advancedUpload(url, settings);
+			}
+		}
+
+		// Private methods
+
+		public function canUseSimpleUpload(settings:Object):Boolean {
+			var multipart:Boolean = new Boolean(settings["multipart"]);
+			var resize:Boolean = (settings["width"] || settings["height"]);
+			var chunking:Boolean = (settings["chunk_size"] > 0);
+			//return !multipart && !resize;
+			return true;
+		}
+
+		public function simpleUpload(url:String, settings:Object):void {
+
+			var request:URLRequest, postData:URLVariables, fileDataName:String;
+
+			this._postvars = settings["multipart_params"];
+
+			postData = new URLVariables();
+
+			for (var key:String in this._postvars) {
+				postData[key] = this._postvars[key];
+			}
+
+			request = new URLRequest();
+			request.method = URLRequestMethod.POST;
+			request.url = url;
+			request.data = postData;
+
+			fileDataName = new String(settings["file_data_name"]);
+
+			this._fileRef.addEventListener(DataEvent.UPLOAD_COMPLETE_DATA, function(e:DataEvent):void {
+				dispatchEvent(e);
+			});
+
+			// Delegate upload IO errors
+			this._fileRef.addEventListener(IOErrorEvent.IO_ERROR, function(e:IOErrorEvent):void {
+				dispatchEvent(e);
+			});
+
+			// Delegate secuirty errors
+			this._fileRef.addEventListener(SecurityErrorEvent.SECURITY_ERROR, function(e:SecurityErrorEvent):void {
+				dispatchEvent(e);
+			});
+
+			// Delegate progress
+			this._fileRef.addEventListener(ProgressEvent.PROGRESS, function(e:ProgressEvent):void {
+				dispatchEvent(e);
+			});
+
+			this._fileRef.upload(request, fileDataName, false);
+		}
+
+		public function advancedUpload(url:String, settings:Object):void {
 			var file:File = this, width:int, height:int, quality:int, multipart:Boolean, chunking:Boolean, fileDataName:String;
 			var chunk:int, chunks:int, chunkSize:int, postvars:Object;

@@ -253,8 +312,6 @@
 			this._fileRef.load();
 		}

-		// Private methods
-
 		/**
 		 * Uploads the next chunk or terminates the upload loop if all chunks are done.
 		 */


Ignore symbols that haven't been exported for AS.

--- exporter/src/main/as/flump/export/XflLoader.as
+++ exporter/src/main/as/flump/export/XflLoader.as
@@ -84,6 +84,12 @@
                     "Skipping file since its root element isn't DOMSymbolItem");
                 return;
             }
+
+            // Skip non-exported symbols
+            if (!XmlUtil.getBooleanAttr(xml, "linkageExportForAS", false)) {
+                return;
+            }
+
             const isSprite :Boolean = XmlUtil.getBooleanAttr(xml, "isSpriteSubclass", false);
             const md5 :String = MD5.hashBytes(file.data);
             log.debug("Parsing for library", "file", file.nativePath, "isSprite", isSprite,


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

--- frameworks/projects/automation/src/mx/automation/delegates/containers/PanelAutomationImpl.as
+++ frameworks/projects/automation/src/mx/automation/delegates/containers/PanelAutomationImpl.as
@@ -0,0 +1,205 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.IAutomationObject;
+	import mx.automation.delegates.core.ContainerAutomationImpl;
+	import mx.containers.Panel;
+	import mx.core.mx_internal;
+
+	use namespace mx_internal;
+
+	[Mixin]
+	/**
+	 *
+	 *  Defines the methods and properties required to perform instrumentation for the
+	 *  Panel class.
+	 *
+	 *  @see mx.containers.Panel
+	 *
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public class PanelAutomationImpl 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(Panel, PanelAutomationImpl);
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Constructor
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  Constructor.
+		 * @param obj Panel object to be automated.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public function PanelAutomationImpl(obj:Panel)
+		{
+			super(obj);
+			recordClick = true;
+		}
+
+
+		/**
+		 *  @private
+		 *  storage for the owner component
+		 */
+		protected function get panel():Panel
+		{
+			return uiComponent as Panel;
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Overridden properties
+		//
+		//--------------------------------------------------------------------------
+
+		//----------------------------------
+		//  automationName
+		//----------------------------------
+
+		/**
+		 *  @private
+		 */
+		override public function get automationName():String
+		{
+			return panel.title || super.automationName;
+		}
+
+		/**
+		 *  @private
+		 */
+		override public function get automationValue():Array
+		{
+			return [ panel.title ];
+		}
+
+		//----------------------------------
+		//  numAutomationChildren
+		//----------------------------------
+
+		/**
+		 *  @private
+		 */
+		override public function get numAutomationChildren():int
+		{
+			var result:int = super.numAutomationChildren;
+
+			var controlBar:Object = panel.getControlBar();
+
+			if (controlBar && (controlBar is IAutomationObject))
+				++result;
+
+			if (panel._showCloseButton)
+				++result;
+
+			return result;
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Overridden methods
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  @private
+		 */
+		override public function getAutomationChildAt(index:int):IAutomationObject
+		{
+			var result:int = super.numAutomationChildren;
+			var controlBar:Object = panel.getControlBar();
+			if (index < result)
+			{
+				return super.getAutomationChildAt(index);
+			}
+
+			if (controlBar)
+			{
+				if(index == result)
+					return (controlBar as IAutomationObject);
+				++result;
+			}
+
+			if (panel._showCloseButton && index == result)
+				return (panel.closeButton as IAutomationObject);
+
+			return null;
+		}
+
+		/**
+		 *  @private
+		 */
+		override public function getAutomationChildren():Array
+		{
+			// get the basic children
+			var childList:Array = new Array();
+			var tempArray1:Array = super.getAutomationChildren();
+			if (tempArray1)
+			{
+				var n:int = tempArray1.length;
+				for (var i:int = 0; i< n ; i++)
+				{
+					childList.push(tempArray1[i]);
+				}
+			}
+
+
+			// add the control bar
+			var controlBar:Object = panel.getControlBar();
+			if (controlBar)
+				childList.push(controlBar as IAutomationObject);
+
+			// add close button
+			if (panel._showCloseButton)
+				childList.push(panel.closeButton as IAutomationObject);
+
+			return childList;
+		}
+
+	}
+
+}


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

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


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

--- frameworks/projects/automation/src/mx/automation/delegates/controls/MenuItemRendererAutomationImpl.as
+++ frameworks/projects/automation/src/mx/automation/delegates/controls/MenuItemRendererAutomationImpl.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.controls
 {


OFC-230 ClassCastException when focus out from input fields

--- collect-flex/collect-flex-client/src/generated/flex/org/openforis/collect/model/proxy/AttributeProxy.as
+++ collect-flex/collect-flex-client/src/generated/flex/org/openforis/collect/model/proxy/AttributeProxy.as
@@ -9,6 +9,7 @@
 	import mx.collections.IList;

 	import org.openforis.collect.i18n.Message;
+	import org.openforis.collect.metamodel.proxy.LanguageSpecificTextProxy;
 	import org.openforis.collect.util.CollectionUtil;
 	import org.openforis.collect.util.StringUtil;

@@ -33,7 +34,7 @@
 			if(results != null) {
 				var parts:Array = new Array();
 				for each (var r:ValidationResultProxy in results) {
-					var message:String = r.localizedMessage;
+					var message:String = LanguageSpecificTextProxy.getLocalizedText(r.messages);
 					if(StringUtil.isBlank(message)) {
 						switch(r.ruleName) {
 							case "SpecifiedValidator":
@@ -42,8 +43,8 @@
 							default:
 								message = r.ruleName;
 						}
+						parts.push(message);
 					}
-					parts.push(message);
 				}
 				if(parts.length > 0) {
 					return StringUtil.concat(";\n", parts);


moving default desiredId to function signature.

Change-Id: Ic28173d051b0bb97b9418596e81d77d3b9af4658

--- WeaveAPI/src/JavaScript.as
+++ WeaveAPI/src/JavaScript.as
@@ -107,7 +107,7 @@
 		public static function get objectID():String
 		{
 			if (!_objectID)
-				_objectID = getExternalObjectID("flash");
+				_objectID = getExternalObjectID();
 			return _objectID;
 		}

@@ -138,7 +138,7 @@
 		 * @param desiredId If the flash application really has no id, this will be used as a base for creating a new unique id.
 		 * @return The id of the flash application.
 		 */
-		private static function getExternalObjectID(desiredId:String = null):String
+		private static function getExternalObjectID(desiredId:String = "flash"):String
 		{
 			var id:String = ExternalInterface.objectID;
 			if (!id) // if we don't know our ID
@@ -156,7 +156,7 @@
 								return elements[i].id || (elements[i].id = newId);\
 					}",
 					JSON_SUFFIX,
-					desiredId || JSON_SUFFIX
+					desiredId
 				);
 			}
 			return id;


Transferred from the Adobe Open Source Subversion Repository

Revision: 20603
Author:   sameer@adobe.com
Date:     2011-03-04T13:14:11.376259Z

Log Message:
-----------
Remove an unwanted check that was causing an rte on focus-in in an editable AdvancedDataGrid

QE notes: Test tabbing behavior in an editable AdvancedDataGrid
Doc notes:  NA
Bugs: http://bugs.adobe.com/jira/browse/FLEXDMV-2571
Reviewer: Sreeni
Tests run: checkintests, some manual testing, cyclone build to QE
Is noteworthy for integration:

Modified Paths:
--------------
/private/flex/sdk/branches/hero_private/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGridBaseEx.as

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

--- frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGridBaseEx.as
+++ frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGridBaseEx.as
@@ -7299,7 +7299,7 @@
         {
             _editedItemPosition = lastEditedItemPosition;

-            var foundOne:Boolean = editedItemPosition != null;
+            var foundOne:Boolean = false;

             // start somewhere
             if (!_editedItemPosition)
@@ -7314,12 +7314,8 @@
 	                if (_columns[_editedItemPosition.columnIndex].editable &&
 	                    _columns[_editedItemPosition.columnIndex].visible)
 	                {
-	                    var row:Array = listItems[_editedItemPosition.rowIndex];
-	                    if (row && row[_editedItemPosition.columnIndex])
-	                    {
-	                        foundOne = true;
-	                        break;
-	                    }
+                        foundOne = true;
+                        break;
 	                }
 	            }


Transferred from the Adobe Open Source Subversion Repository

Revision: 12392
Author:   smgilson@adobe.com
Date:     2009-12-02T22:32:51.640117Z

Log Message:
-----------
ASDoc localization prep, and added a new example

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airspark/src/spark/components/windowClasses/TitleBar.as</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/core/examples</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/core/examples/IViewportExample.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/core/examples/assets/logo.jpg</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/IViewport.as</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/core</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/core/examples/assets</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/events/TrackBaseEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/events/TextOperationEvent.as</path>

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

--- frameworks/projects/airspark/src/spark/components/windowClasses/TitleBar.as
+++ frameworks/projects/airspark/src/spark/components/windowClasses/TitleBar.as
@@ -467,7 +467,6 @@
      *  @return A string specifying the name of the state to apply to the skin.
      *
      *  @langversion 3.0
-     *  @playerversion Flash 10
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */


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

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

 package mx.managers.systemClasses
 {


Commit from Versions App

Commit from Versions App

--- src/milkshape/media/flash/src/Main.as
+++ src/milkshape/media/flash/src/Main.as
@@ -28,7 +28,6 @@
 		private const DEFAULT_CONTAINER_POSX:int = 20;
 		private const DEFAULT_CONTAINER_POSY:int = 100;
 		private const BAR_BG_COLOR:int = 0x0a0a0a;
-		private var _parameters:Object;
 		private var _equalizer:Equalizer;
 		private var _menu:Menu;
 		private var _subMenu:SubMenu;


replace utils Version class by uri.version class

--- src/com/google/analytics/API.as
+++ src/com/google/analytics/API.as
@@ -19,7 +19,7 @@

 package com.google.analytics
 {
-    import com.google.analytics.utils.Version;
+    import core.version;

     public class API
     {
@@ -30,7 +30,7 @@
         * note:
         * each components share the same code base and so the same version
         */
-        public static var version:Version = new Version();
+        public static var version:core.version = new core.version();
         include "version.properties"
         version.revision = "$Rev$ ".split( " " )[1];


wip on making Natural Jenks asynch

wip on making Natural Jenks asynch

Change-Id: I148c21d8e4cbe980e79ef9d9df807d8d4041f502

--- WeaveData/src/weave/data/BinningDefinitions/NaturalJenksBinningDefinition.as
+++ WeaveData/src/weave/data/BinningDefinitions/NaturalJenksBinningDefinition.as
@@ -1,35 +1,39 @@
 /*
-Weave (Web-based Analysis and Visualization Environment)
-Copyright (C) 2008-2011 University of Massachusetts Lowell
-
-This file is a part of Weave.
-
-Weave is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License, Version 3,
-as published by the Free Software Foundation.
-
-Weave is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with Weave.  If not, see <http://www.gnu.org/licenses/>.
+	Weave (Web-based Analysis and Visualization Environment)
+	Copyright (C) 2008-2011 University of Massachusetts Lowell
+
+	This file is a part of Weave.
+
+	Weave is free software: you can redistribute it and/or modify
+	it under the terms of the GNU General Public License, Version 3,
+	as published by the Free Software Foundation.
+
+	Weave is distributed in the hope that it will be useful,
+	but WITHOUT ANY WARRANTY; without even the implied warranty of
+	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+	GNU General Public License for more details.
+
+	You should have received a copy of the GNU General Public License
+	along with Weave.  If not, see <http://www.gnu.org/licenses/>.
 */

 package weave.data.BinningDefinitions
 {
+	import flash.utils.getTimer;
+
 	import mx.utils.ObjectUtil;

+	import weave.api.WeaveAPI;
+	import weave.api.registerLinkableChild;
+	import weave.api.reportError;
+	import weave.api.core.ILinkableHashMap;
 	import weave.api.data.IAttributeColumn;
 	import weave.api.data.IPrimitiveColumn;
 	import weave.api.data.IQualifiedKey;
-	import weave.api.registerLinkableChild;
-	import weave.api.reportError;
 	import weave.core.LinkableNumber;
 	import weave.data.BinClassifiers.NumberClassifier;
 	import weave.utils.AsyncSort;
-	import weave.utils.VectorUtils;
+	import weave.utils.VectorUtils;

 	/**
 	 * Implemented from Doug Curl (javascript) and Daniel J Lewis (python implementation) and  Simon Georget (Geostats)
@@ -51,129 +55,24 @@
 		// reusable temporary object
 		private static const _tempNumberClassifier:NumberClassifier = new NumberClassifier();

-
+		private var _output:ILinkableHashMap = null;
+		private var _column:IAttributeColumn = null;
 		override public function generateBinClassifiersForColumn(column:IAttributeColumn):void
 		{
-			var name:String;
+			_output = output;
+			_column = column;
 			// clear any existing bin classifiers
-			output.removeAllObjects();
-
-			var breaks:Array = getJenksBreak(column);
-
-			var binMin:Number;
-			var binMax:Number;
-
-
-			for (var iBin:int = 0; iBin < numOfBins.value; iBin++)
-			{
-				var minIndex:Number;
-				if(iBin == 0)
-				{
-					minIndex = 0;
-				}
-				else
-				{
-					minIndex = _previousSortedValues.lastIndexOf(_previousBreaks[iBin]);
-					minIndex = minIndex +1;
-				}
-
-				_tempNumberClassifier.min.value = _previousSortedValues[minIndex];
-
-				var maxIndex:Number;
-				if(iBin == numOfBins.value -1)
-				{
-					maxIndex = _previousSortedValues.length -1;
-				}
-				else
-				{
-					/* Get the index of the next break */
-					maxIndex = _previousSortedValues.lastIndexOf(_previousBreaks[iBin+1]);
-				}
-				_tempNumberClassifier.max.value = _previousSortedValues[maxIndex];
-				_tempNumberClassifier.minInclusive.value = true;
-				_tempNumberClassifier.maxInclusive.value = true;
-
-				//first get name from overrideBinNames
-				name = getOverrideNames()[iBin];
-				//if it is empty string set it from generateBinLabel
-				if(!name)
-					name = _tempNumberClassifier.generateBinLabel(column as IPrimitiveColumn);
-				output.requestObjectCopy(name, _tempNumberClassifier);
-			}
-
-			// trigger callbacks now because we're done updating the output
-			asyncResultCallbacks.triggerCallbacks();
-		}
-
-		/* This function returns the Good Fit Value for the breaks. Not used but just in case*/
-		private function getGVF(column:IAttributeColumn):Number
-		{
-			var listMean:Number = getSumOfNumbers(_previousSortedValues);
-
-			var SDAM:Number = 0;
-			var sqDev:Number = 0;
-
-			for(var i:int =0; i < _previousSortedValues.length; i++)
-			{
-				sqDev = Math.pow((_previousSortedValues[i]- listMean), 2);
-				SDAM += sqDev;
-			}
-
-
-			var SDCM:Number = 0;
-			var preSDCM:Number;
-			var classStart:Number;
-			var classEnd:Number;
-			var classValues:Array;
-			var classMean:Number;
-			var sqDev2:Number;
-
-			for(var j:int =0; j < numOfBins.value; j++)
-			{
-				if(_previousBreaks[j] ==0)
-				{
-					classStart = 0;
-				}
-				else
-				{
-					classStart = _previousSortedValues.indexOf(_previousBreaks[j]);
-					classStart += 1;
-				}
-
-				classEnd = _previousSortedValues.indexOf(_previousBreaks[j+1]);
-
-				classValues = _previousSortedValues.slice(classStart,classEnd);
-
-				classMean = getSumOfNumbers(classValues)/classValues.length;
-
-				for(var k:int =0; k < classValues.length; k++)
-				{
-					sqDev2 = Math.pow((classValues[k] - classMean),2);
-					preSDCM += sqDev2;
-				}
-
-				SDCM += preSDCM;
-			}
-
-			return (SDAM - SDCM)/SDAM;
-
-		}
-
-		private var _previousSortedValues:Array = [];
-		private var _previousBreaks:Array = [];
-
-		private function getJenksBreak(column:IAttributeColumn):Array
-		{
-			_previousBreaks.length = 0;
+			_output.removeAllObjects();
+
 			_previousSortedValues.length = 0;

-			var sortedValues:Array = getSortedNumbersFromColumn(column);
-
-			VectorUtils.copy(sortedValues,_previousSortedValues);
-
-			var mat1:Array = [];
-			var mat2:Array = [];
-			for (var i:int = 0; i < sortedValues.length+1; i++)
+			_sortedValues = getSortedNumbersFromColumn(_column);
+
+			VectorUtils.copy(_sortedValues,_previousSortedValues);
+
+			_mat1 = [];
+			_mat2 = [];
+			for (var i:int = 0; i < _sortedValues.length+1; i++)
 			{
 				var temp1:Array = [];
 				var temp2:Array = [];
@@ -183,79 +82,105 @@
 					temp1.push(0);
 					temp2.push(0);
 				}
-				mat1.push(temp1);
-				mat2.push(temp2);
+				_mat1.push(temp1);
+				_mat2.push(temp2);
 			}

 			for (var k:int =1; k < numOfBins.value + 1; k++)
 			{
-				mat1[0][k] = 1;
-				mat2[0][k] = 0;
-
-				for (var t:int =1; t<sortedValues.length+1; t++)
-				{
-					mat2[t][k] = Number.POSITIVE_INFINITY;
-				}
-			}
-
-			var v:Number = 0;
-
-			for (var count:int = 2; count < sortedValues.length + 1; count++)
-			{
-				var s1:Number = 0;
-				var s2:Number = 0;
-
-				var w:Number = 0;
-
-				for(var m:int = 1; m < count + 1; m++)
-				{
-					var i3:Number = count - m +1;
-					var val:Number = sortedValues[i3-1];
+				_mat1[0][k] = 1;
+				_mat2[0][k] = 0;
+
+				for (var t:int =1; t<_sortedValues.length+1; t++)
+				{
+					_mat2[t][k] = Number.POSITIVE_INFINITY;
+				}
+			}
+
+			_v = 0;
+			_count = 2;
+
+			WeaveAPI.StageUtils.startTask(this,_iterateJenksBreaks,WeaveAPI.TASK_PRIORITY_PARSING,_handleJenksBreaks);
+
+		}
+
+		private var _previousSortedValues:Array = [];
+		private var _sortedValues:Array = [];
+		private var _mat1:Array = [];
+		private var _mat2:Array = [];
+		private var _count:int = 2;
+		private var _m:int = 1;
+		private var _v:Number = 0;
+		private var _s1:Number = 0;
+		private var _s2:Number = 0;
+
+		private var _w:Number = 0;
+		private function _iterateJenksBreaks(returnTime:int):Number
+		{
+			for (; _count < _sortedValues.length + 1; _count++)
+			{
+				_s1= 0;
+				_s2= 0;
+				_w= 0;
+				_m =1;
+
+				for(; _m < _count + 1; _m++)
+				{
+					if(getTimer()>returnTime)
+					{
+						return 0;
+					}
+					var i3:Number = _count - _m +1;
+					var val:Number = _sortedValues[i3-1];

-					s2 += val * val;
-					s1 += val;
+					_s2 += val * val;
+					_s1 += val;

-					w += 1;
-					v = s2 - (s1 * s1) / w;
+					_w += 1;
+					_v = _s2 - (_s1 * _s1) / _w;
 					var i4:Number= i3 -1;
 					if(i4 !=0)
 					{
 						for (var p:Number = 2; p < numOfBins.value + 1; p++)
 						{
-							if((mat2[count][p]) >= (v + mat2[i4][p-1]))
+							if((_mat2[_count][p]) >= (_v + _mat2[i4][p-1]))
 							{
-								mat1[count][p] = i3;
-								mat2[count][p] = v + mat2[i4][p-1];
+								_mat1[_count][p] = i3;
+								_mat2[_count][p] = _v +_mat2[i4][p-1];
 							}
 						}
 					}
 				}
-				mat1[count][1] = 1;
-				mat2[count][1] = v;
-			}
-
-			var kClassCount:Number =  sortedValues.length;
+				_mat1[_count][1] = 1;
+				_mat2[_count][1] = _v;
+			}
+			return 1;
+		}
+
+		private function _handleJenksBreaks():void
+		{
+			var kClassCount:Number =  _sortedValues.length;
 			var kClass:Array = [];

-			for(i = 0; i < numOfBins.value +1; i++)
+			for(var i:int = 0; i < numOfBins.value +1; i++)
 			{
 				kClass.push(0);
 			}

 			//this is the last number in the array
-			kClass[numOfBins.value] = sortedValues[sortedValues.length -1];
+			kClass[numOfBins.value] = _sortedValues[_sortedValues.length -1];

 			//this is the first numer in the array
-			kClass[0] = sortedValues[0];
+			kClass[0] = _sortedValues[0];

 			var countNum:Number = numOfBins.value;

 			while (countNum >=2)
 			{
-				var id:Number = mat1[kClassCount][countNum] -2;
-				kClass[countNum -1] = sortedValues[id];
-				kClassCount = mat1[kClassCount][countNum] -1;
+				var id:Number = _mat1[kClassCount][countNum] -2;
+				kClass[countNum -1] = _sortedValues[id];
+				kClassCount = _mat1[kClassCount][countNum] -1;
 				// spits out the rank and value of the break values:
 				// console.log("id="+id,"rank = " + String(mat1[k][countNum]),"val =
 				// " + String(dataList[id]))
@@ -270,8 +195,49 @@
 				kClass[0] = 0
 			}

-			VectorUtils.copy(kClass,_previousBreaks);
-			return kClass;
+			var binMin:Number;
+			var binMax:Number;
+
+
+			for (var iBin:int = 0; iBin < numOfBins.value; iBin++)
+			{
+				var minIndex:Number;
+				if(iBin == 0)
+				{
+					minIndex = 0;
+				}
+				else
+				{
+					minIndex = _previousSortedValues.lastIndexOf(kClass[iBin]);
+					minIndex = minIndex +1;
+				}
+
+				_tempNumberClassifier.min.value = _previousSortedValues[minIndex];
+
+				var maxIndex:Number;
+				if(iBin == numOfBins.value -1)
+				{
+					maxIndex = _previousSortedValues.length -1;
+				}
+				else
+				{
+					/* Get the index of the next break */
+					maxIndex = _previousSortedValues.lastIndexOf(kClass[iBin+1]);
+				}
+				_tempNumberClassifier.max.value = _previousSortedValues[maxIndex];
+				_tempNumberClassifier.minInclusive.value = true;
+				_tempNumberClassifier.maxInclusive.value = true;
+
+				//first get name from overrideBinNames
+				var name:String = getOverrideNames()[iBin];
+				//if it is empty string set it from generateBinLabel
+				if(!name)
+					name = _tempNumberClassifier.generateBinLabel(_column as IPrimitiveColumn);
+				_output.requestObjectCopy(name, _tempNumberClassifier);
+			}
+
+			// trigger callbacks now because we're done updating the output
+			asyncResultCallbacks.triggerCallbacks();
 		}

 		private function getSumOfNumbers(list:Array):Number
@@ -311,5 +277,59 @@
 			return sortedColumn;
 		}

+		/* This function returns the Good Fit Value for the breaks. Not used but just in case*/
+//		private function getGVF(column:IAttributeColumn):Number
+//		{
+//			var listMean:Number = getSumOfNumbers(_previousSortedValues);
+//
+//			var SDAM:Number = 0;
+//			var sqDev:Number = 0;
+//
+//			for(var i:int =0; i < _previousSortedValues.length; i++)
+//			{
+//				sqDev = Math.pow((_previousSortedValues[i]- listMean), 2);
+//				SDAM += sqDev;
+//			}
+//
+//
+//			var SDCM:Number = 0;
+//			var preSDCM:Number;
+//			var classStart:Number;
+//			var classEnd:Number;
+//			var classValues:Array;
+//			var classMean:Number;
+//			var sqDev2:Number;
+//
+//			for(var j:int =0; j < numOfBins.value; j++)
+//			{
+//				if(_previousBreaks[j] ==0)
+//				{
+//					classStart = 0;
+//				}
+//				else
+//				{
+//					classStart = _previousSortedValues.indexOf(_previousBreaks[j]);
+//					classStart += 1;
+//				}
+//
+//				classEnd = _previousSortedValues.indexOf(_previousBreaks[j+1]);
+//
+//				classValues = _previousSortedValues.slice(classStart,classEnd);
+//
+//				classMean = getSumOfNumbers(classValues)/classValues.length;
+//
+//				for(var k:int =0; k < classValues.length; k++)
+//				{
+//					sqDev2 = Math.pow((classValues[k] - classMean),2);
+//					preSDCM += sqDev2;
+//				}
+//
+//				SDCM += preSDCM;
+//			}
+//
+//			return (SDAM - SDCM)/SDAM;
+//
+//		}
+
 	}
 }


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

--- frameworks/projects/advancedgrids/src/mx/controls/olapDataGridClasses/OLAPDataGridHeaderRenderer.as
+++ frameworks/projects/advancedgrids/src/mx/controls/olapDataGridClasses/OLAPDataGridHeaderRenderer.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.olapDataGridClasses
 {


- finished prototyping
- start application controlling

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

--- src/reprise/ui/DocumentView.as
+++ src/reprise/ui/DocumentView.as
@@ -357,7 +357,7 @@
 //					trace("d skip validation of: " + path);
 					continue;
 				}
-//				trace("d validate " + path);
+				log("d validate " + path);
 				lastValidatedPath = path;
 				var element : UIObject = UIObject(sortedElements[i].element);
 				element.validation_execute();


ToggleButtonModel is also ITextModel

ToggleButtonModel is also ITextModel

--- frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/models/ToggleButtonModel.as
+++ frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/models/ToggleButtonModel.as
@@ -20,6 +20,7 @@
 {
 	import org.apache.flex.core.IBead;
 	import org.apache.flex.core.IStrand;
+    import org.apache.flex.core.ITextModel;
 	import org.apache.flex.core.IToggleButtonModel;
 	import org.apache.flex.events.Event;
 	import org.apache.flex.events.EventDispatcher;
@@ -33,7 +34,7 @@
 	 *  @playerversion AIR 2.6
 	 *  @productversion FlexJS 0.0
 	 */
-	public class ToggleButtonModel extends EventDispatcher implements IBead, IToggleButtonModel
+	public class ToggleButtonModel extends EventDispatcher implements IBead, IToggleButtonModel, ITextModel
 	{
 		/**
 		 *  constructor.


Added SELECTION_CHANGED to payloadEvent

Added SELECTION_CHANGED to payloadEvent

git-svn-id: 02605e11d3a461bc7e12f3f3880edf4b0c8dcfd0@4483 3e7533ad-8678-4d30-8e38-00a379d3f0d0

--- src/laml/events/PayloadEvent.as
+++ src/laml/events/PayloadEvent.as
@@ -8,6 +8,7 @@
 		public static const ERROR:String 				= 'error';
 		public static const LOADING_COMPLETED:String 	= 'loadingCompleted';
 		public static const REMOVED:String 				= 'removed';
+		public static const SELECTION_CHANGED:String	= 'selectionChanged';

 		public var payload:Object;


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

--- frameworks/projects/advancedgrids/src/mx/olap/aggregators/CountAggregator.as
+++ frameworks/projects/advancedgrids/src/mx/olap/aggregators/CountAggregator.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.olap.aggregators
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 18871
Author:   smgilson@adobe.com
Date:     2010-11-30T20:10:44.561987Z

Log Message:
-----------
Fix ASDoc version tags

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/tabularData/SparkDataGridTabularData.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/skins/spark/SparkDefaultComplexItemRendererAutomationImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkScrollBarBaseAutomationImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkComboBoxAutomationImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/skins/spark/SparkDefaultItemRendererAutomationImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/skins/spark/SparkDefaultGridHeaderRendererAutomationImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SprakTextAreaAutomationImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridItemEditor.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkItemRendererAutomationImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkDataGridAutomationImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/MobileIconItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/skins/spark/SparkDefaultGridItemRendererAutomationImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableTextField.as</path>
<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/styles/metadata/GapStyles.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkButtonBarBaseAutomationImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/components/mediaClasses/SparkVolumeBarAutomationImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkButtonBarAutomationImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SprakSkinnableTextBaseAutomationImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/preloaders/SplashScreen.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/events/ViewNavigatorEvent.as</path>

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

--- frameworks/projects/spark/src/spark/components/gridClasses/GridItemEditor.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridItemEditor.as
@@ -221,9 +221,9 @@
      *  @default null
      *
      *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
      */
     public function get imeMode():String
     {


Transferred from the Adobe Open Source Subversion Repository

Revision: 21500
Author:   dloverin@adobe.com
Date:     2011-06-29T19:46:17.441619Z

Log Message:
-----------
GridItemEditor fixes.

QE notes: None.
Doc notes: None.
Bugs: SDK-30558,SDK-30562,SDK-30088
Reviewer: Hans
Tests run: cyclone
Is noteworthy for integration: No.

Modified Paths:
--------------
/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/gridClasses/GridItemEditor.as

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

--- frameworks/projects/spark/src/spark/components/gridClasses/GridItemEditor.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridItemEditor.as
@@ -13,9 +13,12 @@
 {
 import flash.events.Event;
 import flash.events.MouseEvent;
+import flash.geom.Point;
 import flash.utils.describeType;

+import mx.collections.ICollectionView;
+import mx.collections.ISort;
 import mx.core.IIMESupport;
 import mx.core.IInvalidating;
 import mx.core.IVisualElement;
@@ -27,7 +30,6 @@
 import spark.components.gridClasses.GridColumn;
 import spark.components.DataGrid;
 import spark.components.Group;
-import flash.geom.Point;

 use namespace mx_internal;

@@ -494,9 +496,25 @@

         if (property && data[property] !== newData)
         {
+            // If the data is sorted, turn off the sort for the edited data.
+            var sort:ISort = null;
+            if (dataGrid.dataProvider is ICollectionView)
+            {
+                var dataProvider:ICollectionView = ICollectionView(dataGrid.dataProvider);
+                if (dataProvider.sort)
+                {
+                    sort = dataProvider.sort;
+                    dataProvider.sort = null;
+                }
+            }
+
+            var oldData:Object = data[property];
             data[property] = newData;
-            dataGrid.dataProvider.itemUpdated(data, property, data[property], newData);
-            dataGrid.validateNow();
+            dataGrid.dataProvider.itemUpdated(data, property, oldData, newData);
+
+            // Restore the sort. The data will not be sorted due to this change.
+            if (sort)
+                ICollectionView(dataGrid.dataProvider).sort = sort;
         }

         return true;


Transferred from the Adobe Open Source Subversion Repository

Revision: 5220
Author:   chaase@adobe.com
Date:     2009-03-10T15:55:06.496289Z

Log Message:
-----------
New Transform effects to handle correctly doing Move, Rotate, and Scale operations simultaneously. Also, added keyframe capabilities to new effects system (necessary for the transform effects, shouldn't affect operation of other effects). Fixed various issues with effects/transition infrastructure as necessary. Added transform utility functions to UIComponent, AdvancedLayoutFeatures, and GraphicElement.

QE Notes: This will break existing new effects tests due to changes in core Animation and AnimationEvent classes, QE is disabling them for now and will add them back in as changes are made.
Doc Notes: None
Bugs:
Reviewer: Ely (transform utilities) and Jason (the rest)
tests: checkintests, Mustella tests/Effects, tests/ListDataEffects

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/TransformOffsets.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/CompositeEffect.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformMove.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/KeyFrame.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/mxml-2009-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimate3DInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/PropertyChanges.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxAnimate3D.as</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/effectClasses</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformScale3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Effect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimateColorInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxAnimate.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformScale.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxRotate3DInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxRotate3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxRotateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/baseClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxMoveInstance.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/effectClasses/AnimateTransformInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/events/AnimationEvent.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransform.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformRotate3D.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/MotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/AnimationProperty.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformMove3D.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformRotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/AdvancedLayoutFeatures.as</path>

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

--- frameworks/projects/spark/src/spark/effects/supportClasses/RotateInstance.as
+++ frameworks/projects/spark/src/spark/effects/supportClasses/RotateInstance.as
@@ -308,7 +308,7 @@
         if (Math.abs(newY - targetY) > 0.1)
             centerY = targetY + originalOffsetY;

-        var rotateValue:Number = Number(event.value);
+        var rotateValue:Number = Number(event.animation.currentValue[0]);
         var radVal:Number = Math.PI * rotateValue / 180;

         newX = centerX - originX * Math.cos(radVal) + originY * Math.sin(radVal);


PlayingDataForSingleSoundGenerator 再生時に音量と定位の初期値が適用されてなかったのを修正

--- project/SoundConductor/src/jp/hiiragi/managers/soundConductor/PlayingDataForSingleSoundGenerator.as
+++ project/SoundConductor/src/jp/hiiragi/managers/soundConductor/PlayingDataForSingleSoundGenerator.as
@@ -24,6 +24,7 @@

 package jp.hiiragi.managers.soundConductor
 {
+	import flash.media.SoundTransform;

 //--------------------------------------
 //  Events
@@ -134,6 +135,7 @@
 		override protected function play_internal():void
 		{
 			_soundGenerator.addPlayingData(this);
+			_soundGenerator.soundChannel.soundTransform = new SoundTransform(initVolume, initPan);

 			var groupVolumeController:ParameterController;
 			if (soundGroupController != null)


store error in errorMessage

store error in errorMessage

--- actionscript/src/com/freshplanet/ane/AirPushNotification/PushNotification.as
+++ actionscript/src/com/freshplanet/ane/AirPushNotification/PushNotification.as
@@ -451,7 +451,8 @@
 					event = new PushNotificationEvent(PushNotificationEvent.OPEN_APP_NOTIFICATION_SETTINGS);
 					break;
 				case "LOG_ISSUE":
-					event = new PushNotificationEvent(PushNotificationEvent.LOG_ISSUE, data);
+					event = new PushNotificationEvent(PushNotificationEvent.LOG_ISSUE);
+					event.errorMessage = data;
 					break;
                 case "LOGGING":
                     trace(e, e.level);


Transferred from the Adobe Open Source Subversion Repository

Revision: 20821
Author:   dloverin@adobe.com
Date:     2011-03-11T20:53:58.779880Z

Log Message:
-----------
Merging r20792 through r20795 from hero_private.

Fix for GridItemEditor.save().
ASDoc change for DataGrid.startItemEditorSession().

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/gridClasses/GridItemEditor.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DataGrid.as</path>
<path kind="dir" action="M">/private/flex/sdk/trunk</path>

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

--- frameworks/projects/spark/src/spark/components/gridClasses/GridItemEditor.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridItemEditor.as
@@ -435,20 +435,6 @@
             }
         }

-        if (typeInfo == "" && newData != null)
-        {
-            if (data[property] is String)
-                typeInfo = "String";
-            else if (data[property] is uint)
-                typeInfo = "uint";
-            else if (data[property] is int)
-                typeInfo = "int";
-            else if (data[property] is Number)
-                typeInfo = "Number";
-            else if (data[property] is Boolean)
-                typeInfo = "Boolean";
-        }
-
         if (typeInfo == "String")
         {
             if (!(newData is String))
@@ -481,7 +467,7 @@
             }
         }

-        if (property && data[property] != newData)
+        if (property && data[property] !== newData)
         {
             data[property] = newData;
             dataGrid.dataProvider.itemUpdated(data, property, data[property], newData);


Added selectByField method to CustomComboBox

--- WeaveUI/src/weave/ui/CustomComboBox.as
+++ WeaveUI/src/weave/ui/CustomComboBox.as
@@ -40,27 +40,40 @@
 		[Bindable]
 		public function set selectedLabel(value:String):void
 		{
-			// save current iterator bookmark
-			var bookmark:CursorBookmark = iterator.bookmark;
-
-			// find desired label
-			var newSelectedItem:Object = null;
-			iterator.seek(CursorBookmark.FIRST, 0);
-			while (iterator.moveNext())
-			{
-				if (itemToLabel(iterator.current) == value)
-				{
-					newSelectedItem = iterator.current;
-					break;
-				}
-			}
-
-			// restore iterator bookmark
-			iterator.seek(bookmark, 0);
-
-			// if label was found, set selected item
-			if (newSelectedItem != null)
-				selectedItem = newSelectedItem;
+			selectByField("label", value);
+		}
+
+		public function selectByField(field:String, value:*):void
+		{
+			// save current iterator bookmark
+			var bookmark:CursorBookmark = iterator.bookmark;
+
+			// find desired label
+			var newSelectedItem:Object = null;
+			iterator.seek(CursorBookmark.FIRST, 0);
+			while (iterator.moveNext())
+			{
+				var item_value:* = null;
+
+				if (field == "label")
+					item_value = itemToLabel(iterator.current);
+				else
+					if (iterator.current)
+						item_value = iterator.current[field];
+
+				if (item_value == value)
+				{
+					newSelectedItem = iterator.current;
+					break;
+				}
+			}
+
+			// restore iterator bookmark
+			iterator.seek(bookmark, 0);
+
+			// if label was found, set selected item
+			if (newSelectedItem != null)
+				selectedItem = newSelectedItem;
 		}
 	}
 }


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

--- frameworks/projects/automation_dmv/src/mx/automation/delegates/advancedDataGrid/AdvancedDataGridAutomationImpl.as
+++ frameworks/projects/automation_dmv/src/mx/automation/delegates/advancedDataGrid/AdvancedDataGridAutomationImpl.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: 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@1251958 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/automation_flashflexkit/src/mx/automation/delegates/flashflexkit/FlexContentHolderAutomationImpl.as
+++ frameworks/projects/automation_flashflexkit/src/mx/automation/delegates/flashflexkit/FlexContentHolderAutomationImpl.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.automation.delegates.flashflexkit


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

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


fix asdoc issue

fix asdoc issue

--- frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/TitleBarView.as
+++ frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/TitleBarView.as
@@ -53,8 +53,6 @@
 			return closeButton;
 		}

-		private var _strand:IStrand;
-
 		/**
 		 *  @copy org.apache.flex.core.IBead#strand
 		 *
@@ -66,7 +64,6 @@
 		override public function set strand(value:IStrand):void
 		{
 			super.strand = value;
-			_strand = value;

 			// add the label for the title and the button for the close
 			_titleLabel = createTitle();


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

--- frameworks/projects/framework/src/mx/effects/effectClasses/DissolveInstance.as
+++ frameworks/projects/framework/src/mx/effects/effectClasses/DissolveInstance.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: 19942
Author:   rfrishbe@adobe.com
Date:     2011-01-25T22:49:40.674586Z

Log Message:
-----------
Cleaning up some FIXMEs assigned to me in various locations.

Also exposing some private variables as mx_internal: messageText, labelText, and oldUnscaledWidth.

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableTextField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/IconItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ListSkin.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/IconItemRenderer.as
+++ frameworks/projects/mobilecomponents/src/spark/components/IconItemRenderer.as
@@ -253,7 +253,7 @@
      *
We can't just use labelDisplay.text because it may contain
      *  a truncated value.

      */
-    private var labelText:String = "";
+    mx_internal var labelText:String = "";

     /**
      *  @private
@@ -267,7 +267,7 @@
      *  how we deal with labels, so we still keep this "extra"
      *  variable around even though technically it's not needed).

      */
-    private var messageText:String = "";
+    mx_internal var messageText:String = "";

     /**
      *  @private
@@ -312,7 +312,7 @@
      *
      *  In the constructor, this is actually set based on the DPI.
      */
-    private var oldUnscaledWidth:Number;
+    mx_internal var oldUnscaledWidth:Number;

     /**
      *  @private


Transferred from the Adobe Open Source Subversion Repository

Revision: 11171
Author:   egeorgie@adobe.com
Date:     2009-10-26T23:24:13.720443Z

Log Message:
-----------
Add overlay property to GroupBase. Note, names of class and APIs will change, since it's still in review.

QE notes: Ready testing, names will change after the APIs review.
Doc notes: None
Bugs: None
Reviewer: Deepa
Tests run: checkintests, mustella (all gumbo tests)
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/DisplayPlane.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/OverlayDepth.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ViewStack.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Accordion.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/events/DisplayPlaneObjectExistenceEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DataGroup.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/DisplayLayer.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/DisplayLayer.as
@@ -0,0 +1,172 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2009 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package spark.components.supportClasses
+{
+import flash.display.DisplayObject;
+import flash.events.EventDispatcher;
+
+import mx.resources.ResourceManager;
+
+import spark.events.DisplayPlaneObjectExistenceEvent;
+
+/**
+ *  A DisplayPlane class maintains ordered list of DisplayObjects sorted on
+ *  depth.
+ *  Developers don't instantiate this class, but use the overlay
+ *  property of Group and DataGroup.
+ *
+ *  @see spark.components.Group#overlay
+ *  @see spark.components.DataGroup#overlay
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+public class DisplayPlane extends EventDispatcher
+{
+	/**
+	 *  Constructor.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 1.5
+	 *  @productversion Flex 4
+	 */
+	public function DisplayPlane()
+	{
+		super();
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Variables
+	//
+	//--------------------------------------------------------------------------
+
+	private var _depth:Vector.<Number>;
+	private var _objects:Vector.<DisplayObject>;
+
+	//--------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Number of objects in the DisplayPlane.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 1.5
+	 *  @productversion Flex 4
+	 */
+	public function get numDisplayObjects():int
+	{
+		return _objects ? _objects.length : 0;
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Methods
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Returns the requested object with the specified index in the
+	 *  ordered list.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 1.5
+	 *  @productversion Flex 4
+	 */
+	public function getDisplayObjectAt(index:int):DisplayObject
+	{
+		if (!_objects || index < 0 || index >= _objects.length)
+			throw new RangeError(ResourceManager.getInstance().getString("components", "indexOutOfRange", [index]));
+
+		return _objects[index];
+	}
+
+	/**
+	 *  Adds a displayObject with the specified depth to the ordered list.
+	 *  The position of the displayObject in the sorted lists is based on
+	 *  its depth, the object will be inserted after all objects with less than or equal
+	 *  depth value.
+	 *
+	 *  @return Returns the index of the object.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 1.5
+	 *  @productversion Flex 4
+	 */
+	public function addDisplayObject(displayObject:DisplayObject, depth:Number = OverlayDepth.TOPMOST):int
+	{
+		// Find index to insert
+		var index:int = 0;
+		if (!_depth)
+		{
+			_depth = new Vector.<Number>;
+			_objects = new Vector.<DisplayObject>;
+		}
+		else
+		{
+			// Simple linear search
+			var count:int = _depth.length;
+			for (; index < count; index++)
+				if (depth < _depth[index])
+					break;
+		}
+
+		// Insert at index:
+		_depth.splice(index, 0, depth);
+		_objects.splice(index, 0, displayObject);
+
+		// Notify that the object has been added
+		dispatchEvent(new DisplayPlaneObjectExistenceEvent(DisplayPlaneObjectExistenceEvent.OBJECT_ADD,
+   	                  false /*bubbles*/,
+					  false /*cancelable*/,
+					  displayObject,
+					  index));
+
+		return index;
+	}
+
+	/**
+	 *  Removes the specified displayObject from the sorted list.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 1.5
+	 *  @productversion Flex 4
+	 */
+	public function removeDisplayObject(displayObject:DisplayObject):void
+	{
+		// FIXME (egeorgie): add null checks
+
+		var index:int = _objects.indexOf(displayObject);
+		// FIXME (egeorgie): add check for index
+
+		// Notify that the object is to be deleted
+		dispatchEvent(new DisplayPlaneObjectExistenceEvent(DisplayPlaneObjectExistenceEvent.OBJECT_REMOVE,
+													       false /*bubbles*/,
+													       false /*cancelable*/,
+													       displayObject,
+													       index));
+		_depth.splice(index, 1);
+		_objects.splice(index, 1);
+	}
+
+}
+}