Transferred from the Adobe Open Source Subversion Repository

Revision: 16670
Author:   deeptika@adobe.com
Date:     2010-06-25T08:08:02.259649Z

Log Message:
-----------
Automation support for spark Form and Image.

QE notes: Yes. Need SDK-26784 to be fixed
Doc notes:
Bugs:
Reviewer:
Tests run:
Is noteworthy for integration:

Modified Paths:
--------------
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkFormAutomationImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/manifest_automation_spark.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/AutomationSparkClasses.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkFormItemAutomationImpl.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkImageAutomationImpl.as</path>

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

--- frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkFormAutomationImpl.as
+++ frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkFormAutomationImpl.as
@@ -0,0 +1,80 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2010 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package spark.automation.delegates.components
+{
+	import flash.display.DisplayObject;
+
+	import mx.automation.Automation;
+
+	import spark.components.Form;
+
+	[Mixin]
+	/**
+	 *
+	 *  Defines the methods and properties required to perform instrumentation for the
+	 *  Form class.
+	 *
+	 *  @see spark.components.Form
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 2.5
+	 *  @productversion Flex 4.5
+	 *
+	 */
+	public class SparkFormAutomationImpl extends SparkSkinnableContainerAutomationImpl
+	{
+		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 10
+		 *  @playerversion AIR 2.5
+		 *  @productversion Flex 4.5
+		 */
+		public static function init(root:DisplayObject):void
+		{
+			Automation.registerDelegateClass(spark.components.Form, SparkFormAutomationImpl);
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Constructor
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  Constructor.
+		 *  @param obj Form object to be automated.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10
+		 *  @playerversion AIR 2.5
+		 *  @productversion Flex 4.5
+		 */
+		public function SparkFormAutomationImpl(obj:spark.components.Form)
+		{
+			super(obj);
+			recordClick = true;
+		}
+	}
+}


Improve error handling

Improve error handling

--- lib/src_linux/com/amanitadesign/steam/FRESteamWorks.as
+++ lib/src_linux/com/amanitadesign/steam/FRESteamWorks.as
@@ -22,6 +22,7 @@
 		private var _file:File;
 		private var _process:NativeProcess;
 		private var _tm:int;
+		private var _error:Boolean = false;

 		public var isReady:Boolean = false;

@@ -49,6 +50,8 @@
 		public function FRESteamWorks (target:IEventDispatcher = null) {
 			_file = File.applicationDirectory.resolvePath(PATH);
 			_process = new NativeProcess();
+			_process.addEventListener(ProgressEvent.STANDARD_ERROR_DATA, eventDispatched);
+			_process.addEventListener(IOErrorEvent.STANDARD_INPUT_IO_ERROR, errorCallback);
 			super(target);
 		}

@@ -66,8 +69,6 @@
 			startupInfo.executable = _file;

 			_process.start(startupInfo);
-			_process.addEventListener(ProgressEvent.STANDARD_ERROR_DATA, eventDispatched);
-			_process.addEventListener(IOErrorEvent.STANDARD_OUTPUT_IO_ERROR, errorCallback);
 		}

 		public function init():Boolean {
@@ -75,36 +76,56 @@
 			startProcess();
 			if(!_process.running) return false;

-			callWrapper(AIRSteam_Init);
+			if(!callWrapper(AIRSteam_Init)) return false;
 			isReady = readBoolResponse();
 			if(isReady) _tm = setInterval(runCallbacks, 100);
 			return isReady;
 		}

-		private function callWrapper(funcName:int, params:Array = null):void{
-			if(!_process.running) startProcess();
+		private function errorCallback(e:IOErrorEvent):void {
+			_error = true;
+			// the process doesn't accept our input anymore, so just stop it
+			clearInterval(_tm);
+
+			if(_process.running) {
+				try {
+					_process.closeInput();
+				} catch(e:*) {
+					// no-op
+				}
+
+				_process.exit();
+			}
+		}
+
+		private function callWrapper(funcName:int, params:Array = null):Boolean {
+			_error = false;
+			if(!_process.running) return false;

 			var stdin:IDataOutput = _process.standardInput;
 			stdin.writeUTFBytes(funcName + "\n");

-			if(!params) return;
-
-			for(var i:int = 0; i < params.length; ++i) {
-				if(params[i] is ByteArray) {
-					var length:uint = params[i].length;
-					// length + 1 for the added newline
-					stdin.writeUTFBytes(String(length + 1) + "\n");
-					stdin.writeBytes(params[i]);
-					stdin.writeUTFBytes("\n");
-				} else {
-					stdin.writeUTFBytes(String(params[i]) + "\n");
+			if (params) {
+				for(var i:int = 0; i < params.length; ++i) {
+					if(params[i] is ByteArray) {
+						var length:uint = params[i].length;
+						// length + 1 for the added newline
+						stdin.writeUTFBytes(String(length + 1) + "\n");
+						stdin.writeBytes(params[i]);
+						stdin.writeUTFBytes("\n");
+					} else {
+						stdin.writeUTFBytes(String(params[i]) + "\n");
+					}
 				}
 			}
+
+			return !_error;
 		}

 		private function waitForData(output:IDataInput):uint {
 			while(!output.bytesAvailable) {
 				// wait
+				if(!_process.running) return 0;
 			}

 			return output.bytesAvailable;
@@ -161,93 +182,83 @@
 			}
 		}

-		private function errorCallback(e:IOErrorEvent):void {
-			// the process doesn't accept our input anymore, try to restart it
-			if(_process.running) {
-				_process.closeInput();
-				_process.exit();
-			}
-
-			startProcess();
-		}
-
 		public function requestStats():Boolean {
-			callWrapper(AIRSteam_RequestStats);
+			if(!callWrapper(AIRSteam_RequestStats)) return false;
 			return readBoolResponse();
 		}

 		public function runCallbacks():Boolean {
-			callWrapper(AIRSteam_RunCallbacks);
+			if(!callWrapper(AIRSteam_RunCallbacks)) return false;
 			return true;
 		}

 		public function setAchievement(id:String):Boolean {
-			callWrapper(AIRSteam_SetAchievement, [id]);
+			if(!callWrapper(AIRSteam_SetAchievement, [id])) return false;
 			return readBoolResponse();
 		}

 		public function clearAchievement(id:String):Boolean {
-			callWrapper(AIRSteam_ClearAchievement, [id]);
+			if(!callWrapper(AIRSteam_ClearAchievement, [id])) return false;
 			return readBoolResponse();
 		}

 		public function isAchievement(id:String):Boolean {
-			callWrapper(AIRSteam_IsAchievement, [id]);
+			if(!callWrapper(AIRSteam_IsAchievement, [id])) return false;
 			return readBoolResponse();
 		}

 		public function getStatInt(id:String):int {
-			callWrapper(AIRSteam_GetStatInt, [id]);
+			if(!callWrapper(AIRSteam_GetStatInt, [id])) return 0;
 			return readIntResponse();
 		}

 		public function getStatFloat(id:String):Number {
-			callWrapper(AIRSteam_GetStatFloat, [id]);
+			if(!callWrapper(AIRSteam_GetStatFloat, [id])) return 0.0;
 			return readFloatResponse();
 		}

 		public function setStatInt(id:String, value:int):Boolean {
-			callWrapper(AIRSteam_SetStatInt, [id, value]);
+			if(!callWrapper(AIRSteam_SetStatInt, [id, value])) return false;
 			return readBoolResponse();
 		}

 		public function setStatFloat(id:String, value:Number):Boolean {
-			callWrapper(AIRSteam_SetStatFloat, [id, value]);
+			if(!callWrapper(AIRSteam_SetStatFloat, [id, value])) return false;
 			return readBoolResponse();
 		}

 		public function storeStats():Boolean {
-			callWrapper(AIRSteam_StoreStats);
+			if(!callWrapper(AIRSteam_StoreStats)) return false;
 			return readBoolResponse();
 		}

 		public function resetAllStats(bAchievementsToo:Boolean):Boolean {
-			callWrapper(AIRSteam_ResetAllStats, [bAchievementsToo]);
+			if(!callWrapper(AIRSteam_ResetAllStats, [bAchievementsToo])) return false;
 			return readBoolResponse();
 		}

 		public function getFileCount():int {
-			callWrapper(AIRSteam_GetFileCount);
+			if(!callWrapper(AIRSteam_GetFileCount)) return 0;
 			return readIntResponse();
 		}

 		public function getFileSize(fileName:String):int {
-			callWrapper(AIRSteam_GetFileSize, [fileName]);
+			if(!callWrapper(AIRSteam_GetFileSize, [fileName])) return 0;
 			return readIntResponse();
 		}

 		public function fileExists(fileName:String):Boolean {
-			callWrapper(AIRSteam_FileExists, [fileName]);
+			if(!callWrapper(AIRSteam_FileExists, [fileName])) return false;
 			return readBoolResponse();
 		}

 		public function fileWrite(fileName:String, data:ByteArray):Boolean {
-			callWrapper(AIRSteam_FileWrite, [fileName, data]);
+			if(!callWrapper(AIRSteam_FileWrite, [fileName, data])) return false;
 			return readBoolResponse();
 		}

 		public function fileRead(fileName:String, data:ByteArray):Boolean {
-			callWrapper(AIRSteam_FileRead, [fileName]);
+			if(!callWrapper(AIRSteam_FileRead, [fileName])) return false;

 			var success:Boolean = readBoolResponse();
 			if(success) {
@@ -260,17 +271,17 @@
 		}

 		public function fileDelete(fileName:String):Boolean {
-			callWrapper(AIRSteam_FileDelete, [fileName]);
+			if(!callWrapper(AIRSteam_FileDelete, [fileName])) return false;
 			return readBoolResponse();
 		}

 		public function isCloudEnabledForApp():Boolean {
-			callWrapper(AIRSteam_IsCloudEnabledForApp);
+			if(!callWrapper(AIRSteam_IsCloudEnabledForApp)) return false;
 			return readBoolResponse();
 		}

 		public function setCloudEnabledForApp(enabled:Boolean):Boolean {
-			callWrapper(AIRSteam_SetCloudEnabledForApp, [enabled]);
+			if(!callWrapper(AIRSteam_SetCloudEnabledForApp, [enabled])) return false;
 			return readBoolResponse();
 		}
 	}


oops. renamed union() -> intersection()

oops. renamed union() -> intersection()

--- WeaveData/src/weave/utils/VectorUtils.as
+++ WeaveData/src/weave/utils/VectorUtils.as
@@ -33,11 +33,11 @@
 	public class VectorUtils
 	{
 		/**
-		 * Computes the union of a list of Arrays.
+		 * Computes the intersection of a list of Arrays.
 		 * @param arrays A list of Arrays.
-		 * @return The union of the items in both Arrays, in the order that they appear in the first Array.
-		 */
-		public static function union(...arrays):Array
+		 * @return The intersection of the items in both Arrays, in the order that they appear in the first Array.
+		 */
+		public static function intersection(...arrays):Array
 		{
 			if (arrays.length == 0)
 				return arrays;
@@ -49,26 +49,26 @@
 			var firstArray:* = arrays.shift();
 			var lastArray:* = arrays.pop();

-			_unionId++;
+			_lookupId++;
 			for each (item in lastArray)
-				_unionLookup[item] = _unionId;
+				_lookup[item] = _lookupId;

 			for each (var array:* in arrays)
 			{
 				for each (item in array)
-					if (_unionLookup[item] === _unionId)
-						_unionLookup[item] = _unionId + 1;
-				_unionId++;
+					if (_lookup[item] === _lookupId)
+						_lookup[item] = _lookupId + 1;
+				_lookupId++;
 			}

 			for each (item in firstArray)
-				if (_unionLookup[item] === _unionId)
+				if (_lookup[item] === _lookupId)
 					result.push(item);

 			return result;
 		}
-		private static var _unionLookup:Dictionary = new Dictionary(true);
-		private static var _unionId:int = 0;
+		private static var _lookup:Dictionary = new Dictionary(true);
+		private static var _lookupId:int = 0;

 		/**
 		 * This function copies the contents of the source to the destination.


Transferred from the Adobe Open Source Subversion Repository

Revision: 10832
Author:   hmuller@adobe.com
Date:     2009-10-02T19:24:10.789875Z

Log Message:
-----------
If Application.preloaderBaseColor is formatted like an HTML color, "#......",
SparkDownloadProgressBar converts it to a proper hex string before converting
to a uint (Color).

QE Notes:
Doc Notes:
Bugs: sdk-22620
Reviewer: Glenn

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/framework/src/mx/preloaders/SparkDownloadProgressBar.as

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

--- frameworks/projects/framework/src/mx/preloaders/SparkDownloadProgressBar.as
+++ frameworks/projects/framework/src/mx/preloaders/SparkDownloadProgressBar.as
@@ -560,19 +560,7 @@
                       totalWidth,
                       totalHeight);

-
-        var DEFAULT_COLOR:uint = 0xCCCCCC;
-        var DEFAULT_COLOR_VALUE:uint = 0xCC;
-
-        // We don't have a reliable way to get the system manager for the currently
-        // loading application. During normal progres bar instantiation, the parent.parent
-        // is the system manager loading the app, so that is what we'll use.
-        // This is only needed to grab the "preloaderBaseColor" property from the info()
-        // structure.
-        var sm:ISystemManager = parent.parent as ISystemManager;
-        var baseColorObj:Object = sm ? sm.info()["preloaderBaseColor"] : null;
-        var baseColor:uint = baseColorObj != null ? uint(baseColorObj) : DEFAULT_COLOR;
-
+        var baseColor:uint = getPreloaderBaseColor();
         if (baseColor != DEFAULT_COLOR)
         {
             var colorTransform:ColorTransform = new ColorTransform();
@@ -587,6 +575,28 @@
         }
     }

+    private static const DEFAULT_COLOR:uint = 0xCCCCCC;
+    private static const DEFAULT_COLOR_VALUE:uint = 0xCC;
+
+    /**
+     *  @private
+     *  We don't have a reliable way to get the system manager for the currently
+     *  loading application. During normal progres bar instantiation, the parent.parent
+     *  is the system manager loading the app, so that is what we'll use.
+     *  This is only needed to grab the "preloaderBaseColor" property from the info()
+     *  structure.
+     */
+    private function getPreloaderBaseColor():uint
+    {
+        const sm:ISystemManager = parent.parent as ISystemManager;
+        const valueObject:Object = (sm) ? sm.info()["preloaderBaseColor"] : null;
+
+        var valueString:String = valueObject as String;
+        if (valueString && (valueString.charAt(0) == "#"))
+            valueString = "0x" + valueString.substring(1);
+
+        return (valueString) ? uint(valueString) : DEFAULT_COLOR;
+    }

     /**
      *  Updates the outer portion of the download progress bar to


Transferred from the Adobe Open Source Subversion Repository

Revision: 11811
Author:   dsubrama@adobe.com
Date:     2009-11-14T20:14:54.284449Z

Log Message:
-----------
Fixes for FXG 2.0.

SDK-23790 - We now set the blendMode correctly when switching from an AIM blendMode to a native Flash one.

SDK-24039 - We hoisted the AIM blendMode support up to UIComponent as per Catalyst's request.

SDK-23715 - Positioning of radial gradient strokes is now correct.

As part of this change, the spark.primitives.supportClasses.shaders packaged move into the framework swc/project, specifically mx.graphics.shaderClasses.

QE notes: Regression and re-gening of so many bitmaps.
Doc notes: None
Bugs: SDK-23790, SDK-24039, SDK-23715
Reviewer: Jason/Evtim/Pete
Tests run: Checkintests - known failures with bitmaps
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="dir" action="D">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/shaders</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/LuminosityMaskFilter.pbk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/ColorDodgeShader.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/HueShader.as</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/SoftLight.pbj</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/fxg/FlexFXG2SWFTranscoder.java</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/SoftLight.pbk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/ColorBurn.pbj</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/ColorBurn.pbk</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses/examples/ExclusionShaderExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/frameworkSwcExceptionsList.txt</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses/examples/ColorShaderExample.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses/examples/HueShaderExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/FilledElement.as</path>
<path kind="dir" action="D">/flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/primitives/supportClasses</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/SoftLightShader.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/ColorBurnShader.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses/examples/SaturationShaderExample.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/Saturation.pbj</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/Saturation.pbk</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/LuminosityShader.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/framework/src/mx/graphics/shaderClasses/ColorShader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/SparkClasses.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses/examples/SoftLightShaderExample.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses/examples/ks5792.jpg</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses/examples/ColorBurnShaderExample.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/LuminosityMaskShader.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/SaturationShader.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/Exclusion.pbj</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/Exclusion.pbk</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses/examples/LuminosityShaderExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/Path.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/Luminosity.pbj</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/Luminosity.pbk</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/Color.pbj</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/Color.pbk</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses/examples</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses/examples/ColorDodgeShaderExample.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/Hue.pbj</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/ColorDodge.pbj</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/Hue.pbk</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/ColorDodge.pbk</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses/examples/LuminosityMaskShaderExample.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/ExclusionShader.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/FrameworkClasses.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/StrokedElement.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/LuminosityMaskFilter.pbj</path>

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

--- frameworks/projects/framework/src/FrameworkClasses.as
+++ frameworks/projects/framework/src/FrameworkClasses.as
@@ -76,6 +76,15 @@
 	import mx.graphics.ImageSnapshot; ImageSnapshot;
 	import mx.graphics.codec.PNGEncoder; PNGEncoder;
 	import mx.graphics.codec.JPEGEncoder; JPEGEncoder;
+    import mx.graphics.shaderClasses.ColorBurnShader; ColorBurnShader;
+    import mx.graphics.shaderClasses.ColorDodgeShader; ColorDodgeShader;
+    import mx.graphics.shaderClasses.ColorShader; ColorShader;
+    import mx.graphics.shaderClasses.ExclusionShader; ExclusionShader;
+    import mx.graphics.shaderClasses.HueShader; HueShader;
+    import mx.graphics.shaderClasses.LuminosityShader; LuminosityShader;
+    import mx.graphics.shaderClasses.LuminosityMaskShader; LuminosityMaskShader;
+    import mx.graphics.shaderClasses.SaturationShader; SaturationShader;
+    import mx.graphics.shaderClasses.SoftLightShader; SoftLightShader;
 	import mx.logging.ILogger; ILogger;
 	import mx.logging.Log; Log;
 	import mx.logging.targets.TraceTarget; TraceTarget;


Transferred from the Adobe Open Source Subversion Repository

Revision: 2033
Author:   aharui@adobe.com
Date:     2008-06-10T23:54:19.474932Z

Log Message:
-----------
First cut at getting RemoteObject to work.  Modified compiler to not register classes unless nobody else has registered.  Sanitized RemoteObject messages so they can go in a bootstrap.  Added generalized marshaling method to SystemManager.

Note that the compiler change could affect modules with RemoteClasses.

Modified Paths:
--------------
<path kind="file" action="A">/private/flex/sdk/branches/marshall-plan-3.0.x/frameworks/projects/rpc/src/mx/utils/RPCObjectUtil.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/marshall-plan-3.0.x/frameworks/projects/rpc/src/mx/utils/RPCStringUtil.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/marshall-plan-3.0.x/frameworks/projects/rpc/src/mx/messaging/messages/AbstractMessage.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/marshall-plan-3.0.x/frameworks/projects/framework/src/mx/managers/ISystemManager2.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/marshall-plan-3.0.x/frameworks/projects/rpc/src/mx/messaging/messages/HTTPRequestMessage.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/marshall-plan-3.0.x/frameworks/projects/rpc/src/mx/utils/RPCUIDUtil.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/marshall-plan-3.0.x/modules/compiler/src/java/flex2/tools/PreLink.java</path>
<path kind="file" action="M">/private/flex/sdk/branches/marshall-plan-3.0.x/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/marshall-plan-3.0.x/frameworks/projects/framework/src/mx/events/MarshalEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/marshall-plan-3.0.x/frameworks/projects/rpc/src/mx/messaging/messages/AsyncMessage.as</path>

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

--- frameworks/projects/rpc/src/mx/utils/RPCStringUtil.as
+++ frameworks/projects/rpc/src/mx/utils/RPCStringUtil.as
@@ -0,0 +1,174 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.utils
+{
+
+/**
+ *  The RPCStringUtil class is a subset of StringUtil, removing methods
+ *  that create dependency issues when RPC messages are in a bootstrap loader.
+ */
+public class RPCStringUtil
+{
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Class methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Removes all whitespace characters from the beginning and end
+     *  of the specified string.
+     *
+     *  @param str The String whose whitespace should be trimmed.
+     *
+     *  @return Updated String where whitespace was removed from the
+     *  beginning and end.
+     */
+    public static function trim(str:String):String
+    {
+        if (str == null) return '';
+
+        var startIndex:int = 0;
+        while (isWhitespace(str.charAt(startIndex)))
+            ++startIndex;
+
+        var endIndex:int = str.length - 1;
+        while (isWhitespace(str.charAt(endIndex)))
+            --endIndex;
+
+        if (endIndex >= startIndex)
+            return str.slice(startIndex, endIndex + 1);
+        else
+            return "";
+    }
+
+    /**
+     *  Removes all whitespace characters from the beginning and end
+     *  of each element in an Array, where the Array is stored as a String.
+     *
+     *  @param value The String whose whitespace should be trimmed.
+     *
+     *  @param separator The String that delimits each Array element in the string.
+     *
+     *  @return Updated String where whitespace was removed from the
+     *  beginning and end of each element.
+     */
+    public static function trimArrayElements(value:String, delimiter:String):String
+    {
+        if (value != "" && value != null)
+        {
+            var items:Array = value.split(delimiter);
+
+            var len:int = items.length;
+            for (var i:int = 0; i < len; i++)
+            {
+                items[i] = trim(items[i]);
+            }
+
+            if (len > 0)
+            {
+                value = items.join(delimiter);
+            }
+        }
+
+        return value;
+    }
+
+    /**
+     *  Returns true if the specified string is
+     *  a single space, tab, carriage return, newline, or formfeed character.
+     *
+     *  @param str The String that is is being queried.
+     *
+     *  @return true if the specified string is
+     *  a single space, tab, carriage return, newline, or formfeed character.
+     */
+    public static function isWhitespace(character:String):Boolean
+    {
+        switch (character)
+        {
+            case " ":
+            case "\t":
+            case "\r":
+            case "\n":
+            case "\f":
+                return true;
+
+            default:
+                return false;
+        }
+    }
+
+    /**
+     *  Substitutes "{n}" tokens within the specified string
+     *  with the respective arguments passed in.
+     *
+     *  @param str The string to make substitutions in.
+     *  This string can contain special tokens of the form
+     *  {n}, where n is a zero based index,
+     *  that will be replaced with the additional parameters
+     *  found at that index if specified.
+     *
+     *  @param rest Additional parameters that can be substituted
+     *  in the str parameter at each {n}
+     *  location, where n is an integer (zero based)
+     *  index value into the array of values specified.
+     *  If the first parameter is an array this array will be used as
+     *  a parameter list.
+     *  This allows reuse of this routine in other methods that want to
+     *  use the ... rest signature.
+     *  For example

+     *     public function myTracer(str:String, ... rest):void
+     *     {
+     *         label.text += StringUtil.substitute(str, rest) + "\n";
+     *     }

+     *
+     *  @return New string with all of the {n} tokens
+     *  replaced with the respective arguments specified.
+     *
+     *  @example
+     *
+     *  var str:String = "here is some info '{0}' and {1}";
+     *  trace(StringUtil.substitute(str, 15.4, true));
+     *
+     *  // this will output the following string:
+     *  // "here is some info '15.4' and true"
+     */
+    public static function substitute(str:String, ... rest):String
+    {
+        if (str == null) return '';
+
+        // Replace all of the parameters in the msg string.
+        var len:uint = rest.length;
+        var args:Array;
+        if (len == 1 && rest[0] is Array)
+        {
+            args = rest[0] as Array;
+            len = args.length;
+        }
+        else
+        {
+            args = rest;
+        }
+
+        for (var i:int = 0; i < len; i++)
+        {
+            str = str.replace(new RegExp("\\{"+i+"\\}", "g"), args[i]);
+        }
+
+        return str;
+    }
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 3109
Author:   hmuller@adobe.com
Date:     2008-09-05T04:22:32.753328Z

Log Message:
-----------
Substantially revised the Scroller component.  This version supports
the vertical,horizontalScrollPolicy properties (as in Halo) and no
longer includes a vestigal "viewportHolder" skin part.  Layout is
now handled programatically, instead of with MXML constraints.

There are still some limitations for the "auto" scroll policies, and
some other minor layout problems.  There is no documentation (yet).

Corrected minimum size calculation in Vertical,HorizontalLayout
for the cases where an explicit rowCount or columnCount was specified.
The measured min sizes are now only based on the first rowCount
or columnCount (visible) layout items.

QE: Scroller can now be tested
Doc: No
Checkintests: Pass
Reviewer: Ryan

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/Scroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/intf/IViewport.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/ScrollerSkin.mxml</path>

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

--- frameworks/projects/spark/src/spark/core/IViewport.as
+++ frameworks/projects/spark/src/spark/core/IViewport.as
@@ -11,13 +11,21 @@

 package flex.intf
 {
+import flash.events.IEventDispatcher;

-public interface IViewport
+public interface IViewport extends IEventDispatcher
 {
     function get width():Number;
     function get height():Number;
+
     function get contentWidth():Number;
     function get contentHeight():Number;
+
+    function get verticalScrollPosition():Number;
+    function set verticalScrollPosition(value:Number):void;
+
+    function get horizontalScrollPosition():Number;
+    function set horizontalScrollPosition(value:Number):void;
 }

 }


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

--- frameworks/projects/advancedgrids/src/mx/olap/IOLAPAttribute.as
+++ frameworks/projects/advancedgrids/src/mx/olap/IOLAPAttribute.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: 7743
Author:   clucier@adobe.com
Date:     2009-06-11T13:53:10.203664Z

Log Message:
-----------
Moving away from using namespace qualifiers in most cases in the SDK.  We've run into a few cases now where the use of qualifiers in code that is called excessively can slow things down.
Bugs: SDK-21337
Reviewer: Ryan, Paul
QE Notes: None
Tests: Ran several random Mustella test groups, checkintests.

Modified Paths:
--------------
106 paths were modified

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

--- frameworks/projects/framework/src/mx/graphics/LinearGradient.as
+++ frameworks/projects/framework/src/mx/graphics/LinearGradient.as
@@ -15,8 +15,11 @@
 import flash.display.GradientType;
 import flash.display.Graphics;
 import flash.geom.Matrix;
-import flash.geom.Point;
 import flash.geom.Rectangle;
+
+import mx.core.mx_internal;
+
+use namespace mx_internal;

 /**
  *  The LinearGradient class lets you specify the fill of a graphical element,
@@ -226,8 +229,7 @@
 	    	// to scale the y direction because it is infinite
 	    	commonMatrix.scale (length / GRADIENT_DIMENSION, 1);

-		    commonMatrix.rotate (!isNaN(mx_internal::_angle) ?
-										mx_internal::_angle : mx_internal::rotationInRadians);
+		    commonMatrix.rotate (!isNaN(_angle) ? _angle : rotationInRadians);
 		    if (isNaN(tx))
 		    	tx = rc.width / 2;
 		    if (isNaN(ty))
@@ -241,9 +243,8 @@
 			commonMatrix.concat(compoundTransform.matrix);
 		}

-		target.beginGradientFill(GradientType.LINEAR, mx_internal::colors,
-								 mx_internal::alphas, mx_internal::ratios,
-								 commonMatrix, spreadMethod, interpolationMethod);
+		target.beginGradientFill(GradientType.LINEAR, colors, alphas, ratios,
+            commonMatrix, spreadMethod, interpolationMethod);
 	}

 	/**


Transferred from the Adobe Open Source Subversion Repository

Revision: 16267
Author:   klin@adobe.com
Date:     2010-05-20T22:24:53.614033Z

Log Message:
-----------
Added better baseline support for ConstraintLayout. ConstraintRow's now have a baseline property. It can either be a number or of the form "maxAscent:x". In the first case, it will position elements at that y-pixel value in the row based on their baseline position.  Otherwise, it first aligns elements to the maximum baseline position of the elements in the row, and then, positions elements based on the pixel value provided. This support allows elements with different baselinePositions to be aligned more easily.

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/ConstraintLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/utilityClasses/ConstraintRow.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/bundles/en_US/layout.properties</path>

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

--- frameworks/projects/spark/src/spark/layouts/ConstraintLayout.as
+++ frameworks/projects/spark/src/spark/layouts/ConstraintLayout.as
@@ -190,6 +190,14 @@
     private var rowSpanElements:Vector.<ElementConstraintInfo> = null;
     private var otherElements:Vector.<ElementConstraintInfo> = null;

+    /**
+     *  @private
+     *  Vectors to store the baseline property of the rows, and
+     *  the maximum ascent of the elements in each row.
+     */
+    private var rowBaselines:Vector.<Array> = null;
+    private var rowMaxAscents:Vector.<Number> = null;
+
     private var constraintCache:Dictionary = null;

     //--------------------------------------------------------------------------
@@ -301,12 +309,19 @@
         var row:ConstraintRow;
         var temp:Vector.<ConstraintRow> = value.slice();
         var obj:Object = new Object();
+        var baselines:Vector.<Array> = new Vector.<Array>(n, true);

         for (var i:int = 0; i < n; i++)
         {
             row = temp[i];
             row.container = this.target;
             obj[row.id] = i;
+            baselines[i] = LayoutElementHelper.parseConstraintExp(row.baseline);
+
+            var maxAscentStr:String = baselines[i][1];
+            if (maxAscentStr && maxAscentStr != "maxAscent")
+                throw new Error(ResourceManager.getInstance().getString("layout", "invalidBaselineOnRow",
+                                                                        [ row.id, row.baseline ]));

             if (!isNaN(row.percentHeight))
                 throw new Error(ResourceManager.getInstance().getString("layout", "percentHeightRow"));
@@ -314,6 +329,7 @@

         _constraintRows = temp;
         rowsObject = obj;
+        rowBaselines = baselines;

         if (target)
         {
@@ -598,8 +614,16 @@

         if (baselineBoundary)
         {
-            row = _constraintRows[elementInfo.baselineIndex];
-            baselineHolder = row.y;
+            var baselineIndex:Number = elementInfo.baselineIndex;
+            var rowBaseline:Array = rowBaselines[baselineIndex];
+            row = _constraintRows[baselineIndex];
+
+            // add baseline offset from row.
+            baselineHolder = row.y + Number(rowBaseline[0]);
+
+            // add maxAscent. maxAscent defaults to 0 if not specified.
+            if (rowMaxAscents)
+                baselineHolder += rowMaxAscents[baselineIndex];

             // If bottom doesn't exist, then the bottom should be restricted to the
             // baseline row.
@@ -683,7 +707,7 @@

         // Vertical Position
         if (!isNaN(baseline))
-            elementY = baselineHolder + Math.round(baseline - layoutElement.baselinePosition);
+            elementY = baselineHolder + baseline - layoutElement.baselinePosition;
         else if (!isNaN(top))
             elementY = topHolder + top;
         else if (!isNaN(bottom))
@@ -1004,9 +1028,20 @@
                         extY -= elementInfo.top;

                     if (elementInfo.baselineBoundary)
+                    {
                         topIndex = elementInfo.baselineIndex;
+
+                        // add baseline offset.
+                        extY += Number(rowBaselines[topIndex][0]);
+
+                        // add maxAscent. maxAscent is 0 if not specified on the row.
+                        if (rowMaxAscents)
+                            extY += rowMaxAscents[topIndex];
+                    }
                     else
+                    {
                         topIndex = 0;
+                    }
                 }

                 maxExtent = extY + preferredHeight;
@@ -1382,7 +1417,6 @@
         }

         // match rows.
-        var numRows:Number = _constraintRows.length;
         if (topBoundary || bottomBoundary || baselineBoundary)
         {
             var rowIndex:Object;
@@ -1425,7 +1459,7 @@
             }

             if (baselineBoundary)
-            {
+            {
                 rowIndex = rowsObject[baselineBoundary];

                 if (rowIndex != null)
@@ -1437,6 +1471,19 @@
                     message = ResourceManager.getInstance().getString(
                         "layout", "rowNotFound", [ baselineBoundary ]);
                     throw new ConstraintError(message);
+                }
+
+                // when using maxAscent, calculate maximum baselinePosition for this row.
+                var bIndex:int = elementInfo.baselineIndex;
+                var numRows:Number = _constraintRows.length;
+
+                if (rowBaselines[bIndex][1])
+                {
+                    // maxAscents will all default to 0.
+                    if (!rowMaxAscents)
+                        rowMaxAscents = new Vector.<Number>(numRows, true);
+
+                    rowMaxAscents[bIndex] = Math.max(rowMaxAscents[bIndex], layoutElement.baselinePosition);
                 }
             }
         }


Transferred from the Adobe Open Source Subversion Repository

Revision: 8483
Author:   smgilson@adobe.com
Date:     2009-07-09T17:52:48.367800Z

Log Message:
-----------
Second checkin to update the namespace in ASDoc MXML syntax descriptions for Spark components

QE Notes: None
Doc Notes: None
Bugs: -
Checkintests: passed

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/easing/EaseInOutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Fade.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/animation/MotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/ColorMatrixFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/easing/Power.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/BlurFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/DisplacementMapFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/ShaderFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/DropShadowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/CallAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GradientBevelFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateColor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Scale3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Animate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransitionShader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Rotate3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AddAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Scale.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/Graphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Move3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Rotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/BasicLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Resize.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransform3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Wipe.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/easing/Sine.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Move.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GlowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/TileLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/ConvolutionFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/easing/Linear.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/animation/Keyframe.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GradientGlowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/SetAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/RemoveAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/BevelFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GradientFilter.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
+++ frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
@@ -89,7 +89,7 @@
  *  attributes of its superclass and adds the following tag attributes:

  *
  *

- *  <HorizontalLayout
+ *  <s:HorizontalLayout
  *    Properties
  *    columnWidth="calculated"
  *    gap="6"


Transferred from the Adobe Open Source Subversion Repository

Revision: 22472
Author:   smgilson@adobe.com
Date:     2011-09-09T20:02:08.616329Z

Log Message:
-----------
Fix for ASDoc bug Watson #2839836

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

Modified Paths:
--------------
/private/flex/sdk/branches/4.y/frameworks/projects/framework/src/mx/collections/ISortField.as

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

--- frameworks/projects/framework/src/mx/collections/ISortField.as
+++ frameworks/projects/framework/src/mx/collections/ISortField.as
@@ -30,7 +30,8 @@
     //--------------------------------------------------------------------------

     /**
-     *  This helper property is used internally the findItem() and sort() methods. Other uses of this property are not
+     *  This helper property is used internally by the findItem()
+     *  and sort() methods. Other uses of this property are not
      *  supported.
      *  Returns -1 if this ISortField shouldn't be used by the Sort
      *  class to sort the field (there is no compareFunction or no name). Otherwise, returns a bitmask of sort options..


Fix regression issue. Turns out LabelUtil.itemToLabel has side effects and text was not updated on control unless called

--- frameworks/projects/spark/src/spark/components/DropDownList.as
+++ frameworks/projects/spark/src/spark/components/DropDownList.as
@@ -367,11 +367,13 @@
     {
         if (labelDisplay)
         {
-            if (displayItem == undefined)
-                displayItem = selectedItem;
-            else
-                labelDisplay.text = displayItem != null ? LabelUtil.itemToLabel(displayItem, labelField, labelFunction) : prompt;
-        }
+              if (displayItem == undefined)
+                  displayItem = selectedItem;
+              if (displayItem != null && displayItem != undefined)
+                  labelDisplay.text = LabelUtil.itemToLabel(displayItem, labelField, labelFunction);
+              else
+                  labelDisplay.text = prompt;
+		}
     }
 }
 }


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

--- frameworks/projects/spark/src/spark/layouts/TileOrientation.as
+++ frameworks/projects/spark/src/spark/layouts/TileOrientation.as
@@ -9,7 +9,7 @@
 //
 ////////////////////////////////////////////////////////////////////////////////

-package mx.layout
+package spark.layout
 {

 /**


fixed in compare function returning a boolean rather than a Number

--- WeaveUISpark/src/weave/visualization/plotters/AnchorPlotter.as
+++ WeaveUISpark/src/weave/visualization/plotters/AnchorPlotter.as
@@ -408,7 +408,8 @@
 			var graphics:Graphics = g;
 			var anchor1:AnchorPoint;
 			var anchor2:AnchorPoint;
-			var anchors:Array = [];
+			var anchor:AnchorPoint;
+			var _anchors:Array = [];
 			var index:int;
 			var p1:Point = new Point();
 			var p2:Point = new Point();0
@@ -420,23 +421,22 @@
 			// convert the array of record keys into array of anchors
 			for(index = 0; index < recordKeys.length; index++)
 			{
-				var anchor:AnchorPoint = recordKeys[index] as AnchorPoint;
+				 anchor = anchors.getObject(recordKeys[index].localName) as AnchorPoint;

 				if (recordKeys[index].keyType != ANCHOR_KEYTYPE || !anchor)
 					continue;

-				anchors.push(anchor);
+				_anchors.push(anchor);
 			}

 			// sort by polar angle
-			anchors.sort(anchorCompareFunctionByPolarAngle);
+			_anchors.sort(anchorCompareFunctionByPolarAngle);

 			// draw convex hull
-			for(index = 0; index < anchors.length - 1; index++)
-			{
-				anchor1 = anchors[index];
-				anchor2 = anchors[index];
-
+			for(index = 0; index < _anchors.length - 1; index++)
+			{
+				anchor1 = _anchors[index];
+				anchor2 = _anchors[index + 1];
 				p1.x = anchor1.x.value; p1.y = anchor1.y.value;
 				p2.x = anchor2.x.value;p2.y = anchor2.y.value;
 				dataBounds.projectPointTo(p1, screenBounds);
@@ -447,8 +447,8 @@
 			}

 			// draw the last connecting line between the last anchor and the first one.
-			p1.x = anchors[anchors.length - 1].x.value; p1.y = anchors[anchors.length - 1].y.value;
-			p2.x = anchors[0].x.value; p2.y = anchors[0].y.value;
+			p1.x = _anchors[_anchors.length - 1].x.value; p1.y = _anchors[_anchors.length - 1].y.value;
+			p2.x = _anchors[0].x.value; p2.y = _anchors[0].y.value;

 			dataBounds.projectPointTo(p1, screenBounds);
 			dataBounds.projectPointTo(p2, screenBounds);
@@ -457,9 +457,17 @@

 			graphics.endFill();

-			function anchorCompareFunctionByPolarAngle(a1:AnchorPoint, a2:AnchorPoint):Boolean
-			{
-				return a1.polarRadians.value > a2.polarRadians.value;
+			function anchorCompareFunctionByPolarAngle(a1:AnchorPoint, a2:AnchorPoint):Number
+			{
+				if(a1.polarRadians.value < a2.polarRadians.value)
+				{
+					return -1;
+				} else if (a1.polarRadians.value > a2.polarRadians.value)
+				{
+					return 1;
+				} else {
+					return 0;
+				}
 			}

 		}


Transferred from the Adobe Open Source Subversion Repository

Revision: 18561
Author:   klin@adobe.com
Date:     2010-11-12T19:56:05.261580Z

Log Message:
-----------
Add down state to IGridItemRenderer. Added down state support in GridColumnHeaderGroup for UI feedback. Also, fixed various bugs relating to the header renderers.

IGridItemRenderer.as, GridItemRenderer.as, TextFieldGridItemRendererInclude.as
-Add down property

DefaultGridColumnHeaderRenderer.mxml (Both spark and wireframe)
-Add back missing showTruncationTip property.
-Modified the states to be GridItemRenderer states. This gives us the UI feedback like a Button
-Only include the sort indicator in the layout when its visible so that the sort indicator doesn’t overlap the header text.

GridColumnHeaderGroup.as
-Added downColumnIndex, hoverColumnIndex to support the header renderer states. I modified the mouse handlers to handle these cases.

GridColumnHeaderGroupLayout.as
-Added initalizeItemRenderer to set the properties on the header renderers using the down/hoverColumnIndex from GCHG.
-Fixed a bug in getHeaderIndex() so that we return the correct header if the x is past the end of the grid but still over the vertical scroll bar.

QE notes: No
Doc notes: No
Bugs: SDK-28299, SDK-28431, SDK-28442, SDK-28450
Reviewer: Hans
Tests run: cyclone, checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DefaultGridHeaderRenderer.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/IGridItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/wireframe/src/spark/skins/wireframe/DefaultGridHeaderRenderer.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/GridColumnHeaderGroup.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridColumnHeaderGroupLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/TextFieldGridItemRendererInclude.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridItemRenderer.as</path>

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

--- frameworks/projects/spark/src/spark/components/gridClasses/IGridItemRenderer.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/IGridItemRenderer.as
@@ -38,6 +38,26 @@
      */
     function get rowIndex():int;
     function set rowIndex(value:int):void;
+
+    /**
+     *  This property is set to true when one of two input gestures occurs within a
+     *  grid cell:  either the mouse button or the touch screen is pressed.   The down
+     *  property is reset to false when the mouse button goes up, the user lifts off
+     *  the touch screen, or the mouse/touch is dragged out of the grid cell.
+     *
+     *
Unlike a List item renderer, grid item renderers do not have exclusive
+     *  responsibility for displaying the down indicator.  The Grid itself
+     *  renders the down indicator for the selected row or cell.
+     *  The item renderer can also change its visual properties to emphasize
+     *  that it's being pressed.

+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.0
+     *  @productversion Flex 4.5
+     */
+    function get down():Boolean;
+    function set down(value:Boolean):void;

     /**
      *  True if the item renderer is being dragged, typically as part of a drag and drop operation.
@@ -160,5 +180,4 @@
      */
     function discard(willBeRecycled:Boolean):void;
 }
-
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 4889
Author:   jszeto@adobe.com
Date:     2009-02-07T01:21:29.010759Z

Log Message:
-----------
Reverting revision 4885

Something in this checkin is causing an ASDoc compile failure. I will track this down later and resubmit the changes.

Modified Paths:
--------------
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/BaseDimensionFilter.as" copyfrom-rev="4884" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/BaseDimensionFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/BevelFilter.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/GradientFilter.as" copyfrom-rev="4884" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/GradientFilter.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/IBitmapFilter.as" copyfrom-rev="4884" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/IBitmapFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/ColorMatrixFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/BlurFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/DisplacementMapFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/ShaderFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/StrokedElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/GlowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/DropShadowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/GradientBevelFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/Parser.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/IFlexBitmapFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/ConvolutionFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimateFilterInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxAnimateFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/FrameworkClasses.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/BaseFilter.as" copyfrom-rev="4884" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/BaseFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/GradientGlowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.as</path>

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

--- frameworks/projects/spark/src/spark/primitives/supportClasses/StrokedElement.as
+++ frameworks/projects/spark/src/spark/primitives/supportClasses/StrokedElement.as
@@ -22,6 +22,8 @@

 import mx.core.mx_internal;
 import mx.events.PropertyChangeEvent;
+import mx.filters.BaseFilter;
+import mx.filters.IBitmapFilter;
 import mx.graphics.IStroke;

 use namespace mx_internal;


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/framework/src/mx/core/IFactory.as
+++ frameworks/projects/framework/src/mx/core/IFactory.as
@@ -24,6 +24,11 @@
  *  the cells for a particular column of the DataGrid.</p>
  *
  *  @see mx.core.ClassFactory
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public interface IFactory
 {
@@ -38,6 +43,11 @@
 	 *  implements IFactory).
 	 *
 	 *  @return The newly created instance.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	function newInstance():*;
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 2462
Author:   jimurphy@adobe.com
Date:     2008-07-14T19:13:06.620116Z

Log Message:
-----------
gumbo push to trunk

Modified Paths:
--------------
214 paths were modified

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

--- frameworks/projects/mx/src/mx/controls/PopUpButton.as
+++ frameworks/projects/mx/src/mx/controls/PopUpButton.as
@@ -770,7 +770,7 @@
         else
         {
             showingPopUp = show;
-
+
             if (_popUp.parent == null)
                 return;


Transferred from the Adobe Open Source Subversion Repository

Revision: 11163
Author:   dloverin@adobe.com
Date:     2009-10-26T20:35:33.260693Z

Log Message:
-----------
Changes to turn on the per-module style feature by default.

The feature can be turned off by compiling with -isolateStyles=false.

QE notes: None.
Doc notes: None.
Bugs:
Reviewer: Alex, Paul
Tests run: checkintests, all mustella
Is noteworthy for integration: Yes.

Summary of changes:

frameworks/projects/flash-integration/src/mx/flash/FlexContentHolder.as
Propagate the module factory in setFlexContent.

frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as
Implement IFlexModule

frameworks/projects/framework/src/mx/containers/ApplicationControlBar.as
Move getting style declaration from the constructor to the override of the module factory setter.

frameworks/projects/framework/src/mx/controls/Alert.as
Set moduleFactory to parent if parent is an IFlexModuleFactory.

frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridItemRenderer.as
Pass styleManager in CSSStyleDeclaration.

frameworks/projects/framework/src/mx/controls/menuClasses/MenuBarItem.as
Pass styleManager in CSSStyleDeclaration.

frameworks/projects/framework/src/mx/controls/RadioButton.as
Move getting style declaration from the constructor to the override of the module factory setter.

frameworks/projects/framework/src/mx/controls/SWFLoader.as
Handle the “get parent module factory” request from an embedded swf.

frameworks/projects/framework/src/mx/core/Container.as
Pass styleManager in CSSStyleDeclaration.

frameworks/projects/framework/src/mx/core/UIComponent.as
Defer setting styles until a module factory is set.

frameworks/projects/framework/src/mx/managers/systemClasses/ChildManager.as
Set the module factory of an added child.

frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl.as
Set the module factory of the tooltip to be the same as the target.

frameworks/projects/framework/src/mx/styles/CSSStyleDeclaration.as
Rename parameter based on PARB feedback.

frameworks/projects/framework/src/mx/styles/IStyleModule.as
Add setStyleDeclarations per spec.

frameworks/projects/framework/src/mx/styles/StyleManager.as
Deprecate old static StyleManager API.

frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as
Use IStyleModule.setStyleDeclarations.

frameworks/projects/framework/src/mx/styles/StyleProtoChain.as
A fix to get the correct style manager and pass styleManager in CSSStyleDeclaration.

frameworks/projects/spark/src/mx/controls/dataGridClasses/FTEDataGridItemRenderer.as
Pass styleManager in CSSStyleDeclaration.

frameworks/projects/spark/src/spark/components/Group.as
Propagate moduleFactory in elementAdded().

modules/compiler/src/java/flex2/compiler/common/CompilerConfiguration.java
Rename –create-style-manager option to –isloateStyles. The option has been changed from hidden to advanced.

modules/compiler/src/java/flex2/compiler/css/StyleDef.vm
Fix bug to not add a default factory that is not needed.

modules/compiler/src/java/flex2/compiler/mxml/gen/ClassDef.vm
Initialize styles in a module factory setter override.

modules/compiler/src/java/flex2/compiler/mxml/gen/ClassDefLib.vm
Changed emitComponentInitializers_1 to not emit style related code if the document implements IFlexModule. Created emitComponentStyleInitializers to emit those styles.

modules/compiler/src/java/flex2/compiler/mxml/ImplementationGenerator.java
Generate code to match ClassDef.vm and ClassDefLib.vm changes.

modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java
Add IFlexModuleFactory to standard imports.

modules/compiler/src/java/flex2/configuration_en.properties
Rename –create-style-manager option to –isloateStyles.

modules/compiler/src/java/flex2/tools/PreLink.java
Rename –create-style-manager option to –isloateStyles.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/gen/ClassDef.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/RadioButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/menuClasses/MenuBarItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ApplicationControlBar.as</path>
<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/framework/src/mx/styles/StyleManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSStyleDeclaration.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/IStyleModule.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/framework/src/mx/managers/ToolTipManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/FlexContentHolder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/dataGridClasses/FTEDataGridItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Alert.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/CompilerConfiguration.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/configuration_en.properties</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/PreLink.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/ChildManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/gen/ClassDefLib.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/modules/ModuleManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleDef.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationGenerator.java</path>

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

--- frameworks/projects/mx/src/mx/controls/RadioButton.as
+++ frameworks/projects/mx/src/mx/controls/RadioButton.as
@@ -17,6 +17,7 @@
 import flash.events.MouseEvent;
 import flash.ui.Keyboard;
 import mx.core.IFlexDisplayObject;
+import mx.core.IFlexModuleFactory;
 import mx.core.mx_internal;
 import mx.events.FlexEvent;
 import mx.core.FlexVersion;
@@ -174,18 +175,6 @@
         // Old padding logic variables
         centerContent = false;
         extraSpacing = 8;
-
-        if (FlexVersion.compatibilityVersion >= FlexVersion.VERSION_4_0)
-        {
-            var typeSelector:CSSStyleDeclaration =
-                StyleManager.getStyleDeclaration("mx.controls.RadioButton");
-
-            if (typeSelector)
-            {
-                if (typeSelector.getStyle("cornerRadius") === undefined)
-                    typeSelector.setStyle("cornerRadius", 7);
-            }
-        }
     }

     //--------------------------------------------------------------------------
@@ -260,6 +249,26 @@
         return value;
     }

+    /**
+     *  @private
+     */
+    override public function set moduleFactory(factory:IFlexModuleFactory):void
+    {
+        super.moduleFactory = factory;
+
+        if (FlexVersion.compatibilityVersion >= FlexVersion.VERSION_4_0)
+        {
+            var typeSelector:CSSStyleDeclaration =
+                styleManager.getStyleDeclaration("mx.controls.RadioButton");
+
+            if (typeSelector)
+            {
+                if (typeSelector.getStyle("cornerRadius") === undefined)
+                    typeSelector.setStyle("cornerRadius", 7);
+            }
+        }
+    }
+
     //----------------------------------
     //  toggle
     //----------------------------------


Transferred from the Adobe Open Source Subversion Repository

Revision: 5808
Author:   clucier@adobe.com
Date:     2009-03-31T17:18:12.735949Z

Log Message:
-----------
Scrubbing the SDK for incorrectly used ArrayElementType metadata.
Bugs: SDK-15607
QE Notes: None
Doc Notes: None
Reviewer: Chet

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Canvas.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/LayoutContainer.as</path>

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

--- frameworks/projects/mx/src/mx/core/LayoutContainer.as
+++ frameworks/projects/mx/src/mx/core/LayoutContainer.as
@@ -230,16 +230,16 @@
     //----------------------------------
     //  constraintColumns
     //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the constraintColumns property.
+     */
+    private var _constraintColumns:Array = [];

     [ArrayElementType("mx.containers.utilityClasses.ConstraintColumn")]
     [Inspectable(arrayType="mx.containers.utilityClasses.ConstraintColumn")]
-
-    /**
-     *  @private
-     *  Storage for the constraintColumns property.
-     */
-    private var _constraintColumns:Array = [];
-
+
     /**
      *  @copy mx.containers.utilityClasses.IConstraintLayout#constraintColumns
      *
@@ -275,16 +275,16 @@
     //----------------------------------
     //  constraintRows
     //----------------------------------
-
-	[ArrayElementType("mx.containers.utilityClasses.ConstraintRow")]
+
+    /**
+     *  @private
+     *  Storage for the constraintRows property.
+     */
+    private var _constraintRows:Array = [];
+
+    [ArrayElementType("mx.containers.utilityClasses.ConstraintRow")]
     [Inspectable(arrayType="mx.containers.utilityClasses.ConstraintRow")]
-
-    /**
-     *  @private
-     *  Storage for the constraintRows property.
-     */
-    private var _constraintRows:Array = [];
-
+
     /**
      *  @copy mx.containers.utilityClasses.IConstraintLayout#constraintRows
      *


Transferred from the Adobe Open Source Subversion Repository

Revision: 6384
Author:   smgilson@adobe.com
Date:     2009-04-29T17:35:57.804487Z

Log Message:
-----------
First pass on ASDoc for containers

QE Notes: None
Doc Notes: None
Bugs:
Checkintests: passed

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/styles/metadata/SelectionFormatTextStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/core/IViewport.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/SkinnableDataContainer.as</path>

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

--- frameworks/projects/spark/src/spark/core/IViewport.as
+++ frameworks/projects/spark/src/spark/core/IViewport.as
@@ -14,37 +14,69 @@

 import mx.core.IVisualElement;

+/**
+ *  The IViewport interface is implemented by components that support a viewport.
+ *  If a component's children are larger than the component,
+ *  and you want to clip the children to the component boundaries, you can define a viewport and scroll bars.
+ *  A viewport is a rectangular subset of the area of a component that you want to display,
+ *  rather than displaying the entire component.
+ *
+ *
A viewport on its own is not movable by the application user.
+ *  However, you can combine a viewport with scroll bars so the user can scroll
+ *  the viewport to see the entire content of the component.
+ *  Use the Scroller component to add scrolbars to the component.

+ *
+ *  @see spark.components.Scroller
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
 public interface IViewport extends IVisualElement
 {
+    /**
+     *  The width of the component.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
     function get width():Number;
+
+    /**
+     *  The height of the component.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
     function get height():Number;

     /**
-     *  The positive extent of the content, relative to the 0,0
-     *  origin, along the X axis.
-     *
+     *  The width of the viewport along the x axis.
+     *  The value of this property is defined relative to the component's
+     *  coordinate system.
+     *
+     *
Implementations of this property must be Bindable and
+     *  must generate events of type propertyChange.

+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    function get contentWidth():Number;
+
+    /**
+     *  The height of the viewport along the y axis.
      *  The value of this property is defined relative to the container's
      *  coordinate system.
-     *
-     *  Implementations of this property must be Bindable and
-     *  they must generate events of type "propertyChange".
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-     */
-    function get contentWidth():Number;
-
-    /**
-     *  The positive extent of the content, relative to the 0,0
-     *  origin, along the Y axis.
-     *
-     *  The value of this property is defined relative to the container's
-     *  coordinate system.
-     *
-     *  Implementations of this property must be Bindable and
-     *  they must generate events of type "propertyChange".
+     *
+     *
Implementations of this property must be Bindable and
+     *  must generate events of type propertyChange.

      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -54,19 +86,20 @@
     function get contentHeight():Number;

     /**
-     *  The X coordinate of the origin of the region the target is
-     *  scrolled to.
-     *
-     *  If clipAndEnableScrolling is true, setting this property typically causes
-     *  scrollRect to be set to:
+     *  The x coordinate of the origin of the viewport in the component's coordinate system,
+     *  where the default value is (0,0) corresponding to the upper-left corner of the component.
+     *
+     *  If clipAndEnableScrolling is true, setting this property
+     *  typically causes the viewport to be set to:
      *

      *  new Rectangle(horizontalScrollPosition, verticalScrollPosition, width, height)
      *

      *
      *  Implementations of this property must be Bindable and
-     *  they must generate events of type "propertyChange".
+     *  must generate events of type propertyChange.
      *
      *  @default 0
+     *
      *  @see target
      *  @see verticalScrollPosition
      *
@@ -79,19 +112,20 @@
     function set horizontalScrollPosition(value:Number):void;

      /**
-     *  The Y coordinate of the origin of the region this Group is
-     *  scrolled to.
-     *
-     *  If clipAndEnableScrolling is true, setting this property typically causes
-     *  the scrollRect to be set to:
+     *  The y coordinate of the origin of the viewport in the component's coordinate system,
+     *  where the default value is (0,0) corresponding to the upper-left corner of the component.
+     *
+     *  If clipAndEnableScrolling is true, setting this property
+     *  typically causes the viewport to be set to:
      *

      *  new Rectangle(horizontalScrollPosition, verticalScrollPosition, width, height)
-     *

+     *

      *
      *  Implementations of this property must be Bindable and
-     *  they must generate events of type "propertyChange".
+     *  must generate events of type propertyChange.
      *
      *  @default 0
+     *
      *  @see horizontalScrollPosition
      *
      *  @langversion 3.0
@@ -103,14 +137,17 @@
     function set verticalScrollPosition(value:Number):void;

     /**
-     *  Returns the amount one would have to add to the viewport's current
-     *  horizontalScrollPosition to scroll by the requested "scrolling" unit.
-     *
+     *  Returns the amount to add to the viewport's current
+     *  horizontalScrollPosition to scroll by the requested scrolling unit.
+     *
+     *  @param scrollUnit The amount to scroll.
      *  The value of unit must be one of the following spark.core.ScrollUnit
-     *  constants: LEFT, RIGHT, PAGE_LEFT, PAGE_RIGHT, HOME, END.
-     *
-     *  To scroll by a single column use LEFT or RIGHT and to scroll to the
-     *  first or last column, use HOME or END.
+     *  constants: LEFT, RIGHT, PAGE_LEFT,
+     *  PAGE_RIGHT, HOME, or END.
+     *  To scroll by a single column, use LEFT or RIGHT.
+     *  To scroll to the first or last column, use HOME or END.
+     *
+     *  @return The number of pixels to add to horizontalScrollPosition.
      *
      *  @see ScrollUnit
      *
@@ -122,14 +159,17 @@
     function getHorizontalScrollPositionDelta(scrollUnit:uint):Number;

     /**
-     *  Returns the amount one would have to add to the viewport's current
-     *  verticalScrollPosition to scroll by the requested "scrolling" unit.
-     *
+     *  Returns the amount to add to the viewport's current
+     *  verticalScrollPosition to scroll by the requested scrolling unit.
+     *
+     *  @param scrollUnit The amount to scroll.
      *  The value of unit must be one of the following spark.core.ScrollUnit
-     *  constants: UP, DOWN, PAGE_UP, PAGE_DOWN, HOME, END.
-     *
-     *  To scroll by a single row use UP or DOWN and to scroll to the
-     *  first or last row, use HOME or END.
+     *  constants: UP, DOWN, PAGE_UP,
+     *  PAGE_DOWN, HOME, or END.
+     *  To scroll by a single row use UP or DOWN.
+     *  To scroll to the first or last row, use HOME or END.
+     *
+     *  @return The number of pixels to add to verticalScrollPosition.
      *
      *  @see ScrollUnit
      *
@@ -141,17 +181,12 @@
     function getVerticalScrollPositionDelta(scrollUnit:uint):Number;

     /**
-     *  This flag must set to true to enable scrolling via the
-     *  vertical and horizontalScrollPosition properties.
-     *
-     *  If true then viewport's contents are clipped by setting its scrollRect
-     *  to a rectangle with origin at horizontalScrollPosition,
-     *  verticalScrollPosition and width and height equal to the
-     *  viewport's width and height.
-     *
-     *  If false, the scrollRect is set to null.
-     *
+     *  If true, specifies to clip the children to the boundaries of the viewport.
+     *  If false, the container children extend past the container boundaries,
+     *  regardless of the size specification of the component.
+     *
      *  @default false
+     *
      *  @see LayoutBase#updateScrollRect
      *  @see verticalScrollPosition
      *  @see horizontalScrollPosition


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

--- frameworks/projects/spark/src/spark/core/IViewport.as
+++ frameworks/projects/spark/src/spark/core/IViewport.as
@@ -27,6 +27,8 @@
  *  Use the Scroller component to add scrolbars to the component.</p>
  *
  *  @see spark.components.Scroller
+ *
+ *  @includeExample examples/IViewportExample.mxml
  *
  *  @langversion 3.0
  *  @playerversion Flash 10


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

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


Remove trace.

Remove trace.

--- src/main/flex/org/servebox/cafe/core/bootstrap/impl/DefaultBootstrapImpl.as
+++ src/main/flex/org/servebox/cafe/core/bootstrap/impl/DefaultBootstrapImpl.as
@@ -31,7 +31,6 @@
 			{
 				if ( o is clazz )
 				{
-					trace ( "return " + 0 );
 					return o;
 				}
 			}


simplifying code

simplifying code

Change-Id: I4c33c6e9def8e78b6cea704f4aeda5a48b68ec36

--- WeaveData/src/weave/data/DataSources/FREDDataSource.as
+++ WeaveData/src/weave/data/DataSources/FREDDataSource.as
@@ -82,8 +82,6 @@
 			jsonCache.getJsonObject(getUrl(method, params), handler);
 		}

-		private var functionCache:Dictionary2D = new Dictionary2D();
-
 		public function createCategoryNode(data:Object = null):ColumnTreeNode
 		{
 			if (!data)
@@ -91,46 +89,41 @@
 				var name:String = WeaveAPI.globalHashMap.getName(this);
 				data = {id: 0, name: name};
 			}
-			var node:ColumnTreeNode = functionCache.get(createCategoryNode, data.id);
-			if (!node)
-			{
-				node = new ColumnTreeNode({
-					data: data,
-					label: data.name,
-					isBranch: true,
-					hasChildBranches: true,
-					children: function(node:ColumnTreeNode):Array {
-						var children:Array = node.data.childNodes;
-						if (!children)
-						{
-							node.data.childNodes = children = [];
-							getJson('category/children', {category_id: node.data.id}, function(result:Object):void {
-								var nodes:Array = [];
-								for each (var item:Object in result.categories)
-									nodes.push(createCategoryNode(item));
-								// put categories first in the list
-								children.splice.apply(null, [0, 0].concat(nodes));
-							});
-							getJson('category/series', {category_id: node.data.id}, function(result:Object):void {
-								for each (var item:Object in result.seriess)
-									children.push(createSeriesNode(item));
-							});
-						}
-						return children;
-					}
-				});
-				functionCache.set(createCategoryNode, data.id, node);
-			}
-			return node;
-		}
-
+			return new ColumnTreeNode({
+				data: data,
+				label: data.name,
+				isBranch: true,
+				hasChildBranches: true,
+				children: function(node:ColumnTreeNode):Array {
+					var children:Array = node.data.childNodes;
+					if (!children)
+					{
+						node.data.childNodes = children = [];
+						getJson('category/children', {category_id: node.data.id}, function(result:Object):void {
+							var nodes:Array = [];
+							for each (var item:Object in result.categories)
+								nodes.push(createCategoryNode(item));
+							// put categories first in the list
+							children.splice.apply(null, [0, 0].concat(nodes));
+						});
+						getJson('category/series', {category_id: node.data.id}, function(result:Object):void {
+							for each (var item:Object in result.seriess)
+								children.push(createSeriesNode(item));
+						});
+					}
+					return children;
+				}
+			});
+		}
+
+		private var csvCache:Object = {};
 		public function getObservationsCSV(series_id:String):CSVDataSource
 		{
-			var csv:CSVDataSource = functionCache.get(getObservationsCSV, series_id);
+			var csv:CSVDataSource = csvCache[series_id];
 			if (!csv)
 			{
 				csv = newLinkableChild(this, CSVDataSource);
-				functionCache.set(getObservationsCSV, series_id, csv);
+				csvCache[series_id] = csv;

 				var request1:URLRequest = new URLRequest(getUrl('series', {series_id: series_id}));
 				addAsyncResponder(
@@ -144,15 +137,17 @@
 							function(event:ResultEvent, csv:CSVDataSource):void
 							{
 								var result:Object = JsonCache.parseJSON(event.result.toString());
-								var columnOrder:Array = ['date', 'realtime_start', 'realtime_end', 'value'];
+								var columnOrder:Array = ['date', 'value', 'realtime_start', 'realtime_end'];
 								var rows:Array = WeaveAPI.CSVParser.convertRecordsToRows(result.observations, columnOrder);
-								csv.csvData.setSessionState(rows);
+								csv.csvData.setSessionState(rows);
+								csv.keyColName.value = 'date';
+								csv.keyType.value = DataType.DATE;
 								var valueTitle:String = lang("{0} ({1})", data.title, data.units);
 								var metadataArray:Array = [
-									{title: 'date', dataType: DataType.DATE, dateFormat: 'YYYY-MM-DD'},
-									{title: 'realtime_start', dataType: DataType.DATE, dateFormat: 'YYYY-MM-DD'},
-									{title: 'realtime_end', dataType: DataType.DATE, dateFormat: 'YYYY-MM-DD'},
+									{title: 'Date', dataType: DataType.DATE},
 									{title: valueTitle, dataType: DataType.NUMBER},
+									{title: 'realtime_start', dataType: DataType.DATE},
+									{title: 'realtime_end', dataType: DataType.DATE},
 								];
 								csv.metadata.setSessionState(metadataArray);
 							},
@@ -173,40 +168,29 @@

 		public function createSeriesNode(data:Object):IWeaveTreeNode
 		{
-			var node:IWeaveTreeNode = functionCache.get(createSeriesNode, data.id);
-			if (!node)
-			{
-				node = new ColumnTreeNode({
-					label: data.title,
-					data: data,
-					isBranch: true,
-					hasChildBranches: false,
-					children: function(node:ColumnTreeNode):Array {
-						var csv:CSVDataSource = getObservationsCSV(data.id);
-						var csvRoot:IWeaveTreeNode = csv.getHierarchyRoot();
-						node.dependency = csv;
-						return csvRoot.getChildren().map(function(csvNode:IColumnReference, ..._):IWeaveTreeNode {
-							var meta:Object = csvNode.getColumnMetadata();
-							meta[META_SERIES_ID] = data.id;
-							meta[META_COLUMN_NAME] = meta[CSVDataSource.METADATA_COLUMN_NAME];
-							return generateHierarchyNode(meta);
-						});
-					}
-				});
-				functionCache.set(createSeriesNode, data.id, node);
-			}
-			return node;
-		}
-
+			return new ColumnTreeNode({
+				label: data.title,
+				data: data,
+				isBranch: true,
+				hasChildBranches: false,
+				children: function(node:ColumnTreeNode):Array {
+					var csv:CSVDataSource = getObservationsCSV(data.id);
+					var csvRoot:IWeaveTreeNode = csv.getHierarchyRoot();
+					node.dependency = csv;
+					return csvRoot.getChildren().map(function(csvNode:IColumnReference, ..._):IWeaveTreeNode {
+						var meta:Object = csvNode.getColumnMetadata();
+						meta[META_SERIES_ID] = data.id;
+						meta[META_COLUMN_NAME] = meta[CSVDataSource.METADATA_COLUMN_NAME];
+						return generateHierarchyNode(meta);
+					});
+				}
+			});
+		}

         override public function getHierarchyRoot():IWeaveTreeNode
         {
-
             if (!_rootNode)
-            {
-                var source:FREDDataSource = this;
                 _rootNode = createCategoryNode();
-            }
             return _rootNode;
         }


fix type error

fix type error

--- frameworks/as/src/org/apache/flex/html/staticControls/beads/TextInputBead.as
+++ frameworks/as/src/org/apache/flex/html/staticControls/beads/TextInputBead.as
@@ -59,7 +59,7 @@
 			sizeChangedHandler(null);
 		}

-		private function inputChangeHandler(event:Event):void
+		private function inputChangeHandler(event:flash.events.Event):void
 		{
 			textModel.text = textField.text;
 		}