Transferred from the Adobe Open Source Subversion Repository

Revision: 14483
Author:   smgilson@adobe.com
Date:     2010-03-01T19:01:18.459430Z

Log Message:
-----------
merge 14456: Adding ASDoc version tags classes

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/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkRangeAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkRadioButtonAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkPanelAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkButtonBaseAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkButtonBarAutomationImpl.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_air/src/mx/automation/air/AirFunctionsHelper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkSkinnableContainerAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/events/SparkValueChangeAutomationEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkButtonBarBaseAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkNavigatorContentAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkDataGroupAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkTrackBaseAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation/src/mx/automation/events/EventDetails.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/events/SparkListItemSelectEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkTabBarAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkButtonBarButtonAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkGroupAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkSkinnableContainerBaseAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/mediaClasses/SparkMuteButtonAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_air/src/mx/automation/air/AirDragManagerAutomationHandler.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/SOAPResult.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkTextBaseAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkTitleWindowAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkTileGroupAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkButtonAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkToggleButtonAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkSpinnerAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AccConst.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkLabelAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkBorderContainerAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkGroupBaseAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkVideoPlayerAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkSkinnableComponentAutomationImpl.as</path>

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

--- frameworks/projects/automation_air/src/mx/automation/air/AirDragManagerAutomationHandler.as
+++ frameworks/projects/automation_air/src/mx/automation/air/AirDragManagerAutomationHandler.as
@@ -11,289 +11,367 @@

 package mx.automation.air
 {
-	import flash.desktop.Clipboard;
-	import flash.desktop.NativeDragOptions;
-	import flash.display.DisplayObject;
-	import flash.events.EventDispatcher;
-	import flash.events.IEventDispatcher;
-	import flash.events.NativeDragEvent;
-
-	import mx.automation.IAutomationObject;
-	import mx.automation.events.AutomationDragEvent;
-	import mx.core.DragSource;
-	import mx.managers.ISystemManager;
-
-	[Mixin]
-
-	public class AirDragManagerAutomationHandler
-	{
-		private static var sm:ISystemManager;
-		private static  var dragStartHappened:Boolean = false;
-		private static var _lastClipBoardObject:Clipboard;
-		private static var _lastFormat:String;
-		private static var dragOptions:NativeDragOptions;
-		private static var lastDragStartObj:IAutomationObject ;
-		private static var _lastDragSource:DragSource;
-
-		public function AirDragManagerAutomationHandler()
-		{
-		}
-
-		public static function init(root:DisplayObject):void
-		{
-			sm = root as ISystemManager;
-		}
-
-
-
-		public static function getlastDragStartObj():IAutomationObject
-		{
-			return lastDragStartObj;
-		}
-
-		public static function getLastDragStartFormat():String
-		{
-			return _lastFormat;
-		}
-
-		public static function storeAIRDragSourceDetails(dragSource:DragSource):void
-		{
-			dragOptions = new NativeDragOptions();
-			dragOptions.allowCopy = true;
-			dragOptions.allowMove = true;
-			dragOptions.allowLink = false;
-
-			_lastClipBoardObject = null;
-			dragStartHappened = true;
-
-			_lastDragSource = dragSource;
-		}
-
-
-		private static function formClipboard(dragSource:DragSource):Clipboard
-		{
-			var clipboardObj:Clipboard = new Clipboard();
-
-			var formatsArr:Array = dragSource.formats;
-			if (formatsArr)
-			{
-				//var dataArray:Array = new Array();
-				var count: int  = formatsArr.length;
-				var index:int  = 0;
-				while (index < count)
-				{
-					// get the data object
-					//var currentDataObject:Object = dragSource.dataForFormat(formatsArr[index]);
-					//clipboardObj.setData(formatsArr[index],currentDataObject,false);
-					// The above commented part was throwing an RTE if currentDataObject is null.
-					// http://bugs.adobe.com/jira/browse/FLEXENT-1069
-					// So we are using setDataHandler() method of ClipBoard instead of setData()
-					// in the same way how NativeDragManager constructs a clipboard object in doDrag()
-					var dataFetcher:DragDataFormatFetcher = new DragDataFormatFetcher();
-					dataFetcher.dragSource = dragSource;
-					dataFetcher.format = formatsArr[index];
-					clipboardObj.setDataHandler(formatsArr[index],dataFetcher.getDragSourceData,false);
-					index++;
-				}
-			}
-			return clipboardObj;
-		}
-
-		public static function replayAIRDragStartEvent(realTarget:EventDispatcher , dragEvent:AutomationDragEvent, draggedItems:IAutomationObject):void
-		{
-			lastDragStartObj = realTarget as IAutomationObject;
-			//dragStartHappened = false;
-			if (dragStartHappened == false)
-			{
-				_lastClipBoardObject = new Clipboard();
-				_lastClipBoardObject.setData("items",new Object(),false);
-				if (!dragOptions)
-					dragOptions = new NativeDragOptions();
-				dragOptions.allowCopy = true;
-				dragOptions.allowMove = true;
-				dragOptions.allowLink = false;
-
-				// we need to crete a native drag enter event and then a drag drop event and dispatch on our component.
-				var dragStartEvent:NativeDragEvent = new NativeDragEvent(NativeDragEvent.NATIVE_DRAG_START);
-				dragStartEvent.clipboard = _lastClipBoardObject;
-				dragStartEvent.allowedActions = dragOptions;
-				dragStartEvent.dropAction = dragEvent.action;
-				dragStartEvent.localX = dragEvent.localX;
-				dragStartEvent.localY = dragEvent.localY;
-				dragStartEvent.buttonDown = true;
-				if (dragStartEvent.isDefaultPrevented())
-					trace  ('here-x');
-				realTarget.dispatchEvent(dragStartEvent);
-			}
-		}
-
-		public static function replayAIRDragDropEvent(realTarget:EventDispatcher , dragEvent:AutomationDragEvent/*,dragSource:DragSource*/):void
-		{
-			// we should have 	dragStartHappened as true,_lastClipBoardObject and dragOptions as non null values.
-			// in the case marhshalled application drag start and drag drop can be in different application domain.
-			if (!dragStartHappened)
-			{
-				// we need to get the details from the application where the current dragStart happened.
-			}
-			else
-			{
-				_lastClipBoardObject = formClipboard(_lastDragSource);
-				if (_lastClipBoardObject && dragOptions)
-				{
-					// we need to crete a native drag enter event and then a drag drop event and dispatch on our component.
-					var dragEnterEvent:NativeDragEvent = new NativeDragEvent(NativeDragEvent.NATIVE_DRAG_ENTER);
-					dragEnterEvent.clipboard = _lastClipBoardObject;
-					dragEnterEvent.allowedActions = dragOptions;
-					dragEnterEvent.dropAction = dragEvent.action;
-					dragEnterEvent.localX = dragEvent.localX;
-					dragEnterEvent.localY = dragEvent.localY;
-					dragEnterEvent.buttonDown = true;
-					realTarget.dispatchEvent(dragEnterEvent);
-
-					var dragDropEvent:NativeDragEvent = new NativeDragEvent(NativeDragEvent.NATIVE_DRAG_DROP);
-					dragDropEvent.clipboard = _lastClipBoardObject;
-					dragDropEvent.allowedActions = dragOptions;
-					dragDropEvent.dropAction = dragEvent.action;
-					dragDropEvent.localX = dragEvent.localX;
-					dragDropEvent.localY = dragEvent.localY;
-					realTarget.dispatchEvent(dragDropEvent);
-
-					// we need to dispatch the dragComplete on the dragStart object.
-					if (lastDragStartObj as IEventDispatcher)
-					{
-						var dragCompleteEvent:NativeDragEvent = new NativeDragEvent(NativeDragEvent.NATIVE_DRAG_COMPLETE);
-						dragCompleteEvent.clipboard = _lastClipBoardObject;
-						dragCompleteEvent.allowedActions = dragOptions;
-						dragCompleteEvent.dropAction = dragEvent.action;
-						dragCompleteEvent.localX = dragEvent.localX;
-						dragCompleteEvent.localY = dragEvent.localY;
-						(lastDragStartObj as IEventDispatcher).dispatchEvent(dragCompleteEvent);
-					}
-
-
-				}
-			}
-
-			dragStartHappened = false;
-
-			_lastDragSource = null;
-
-		}
-
-
-		public static function replayAIRDragDropMarshalledEvent(realTarget:Object , dragEvent:Object/*,dragSource:DragSource*/):void
-		{
-			// we should have 	dragStartHappened as true,_lastClipBoardObject and dragOptions as non null values.
-			// in the case marhshalled application drag start and drag drop can be in different application domain.
-			if (dragStartHappened == false)
-			{
-				// we need to get the details from the application where the current dragStart happened.
-			}
-			else
-			{
-				_lastClipBoardObject = formClipboard(_lastDragSource);
-				if (_lastClipBoardObject && dragOptions)
-				{
-					// we need to crete a native drag enter event and then a drag drop event and dispatch on our component.
-					var dragEnterEvent:NativeDragEvent = new NativeDragEvent(NativeDragEvent.NATIVE_DRAG_ENTER);
-					dragEnterEvent.clipboard = _lastClipBoardObject;
-					dragEnterEvent.allowedActions = dragOptions;
-					dragEnterEvent.dropAction = dragEvent["action"];
-					dragEnterEvent.localX = dragEvent["localX"];
-					dragEnterEvent.localY = dragEvent["localY"];
-					dragEnterEvent.buttonDown = true;
-					realTarget.dispatchEvent(dragEnterEvent);
-
-					var dragDropEvent:NativeDragEvent = new NativeDragEvent(NativeDragEvent.NATIVE_DRAG_DROP);
-					dragDropEvent.clipboard = _lastClipBoardObject;
-					dragDropEvent.allowedActions = dragOptions;
-					dragDropEvent.dropAction = dragEvent["action"];
-					dragDropEvent.localX = dragEvent["localX"];
-					dragDropEvent.localY = dragEvent["localY"];
-					realTarget.dispatchEvent(dragDropEvent);
-
-					// we need to dispatch the dragComplete on the dragStart object.
-					if (lastDragStartObj as IEventDispatcher)
-					{
-						var dragCompleteEvent:NativeDragEvent = new NativeDragEvent(NativeDragEvent.NATIVE_DRAG_COMPLETE);
-						dragCompleteEvent.clipboard = _lastClipBoardObject;
-						dragCompleteEvent.allowedActions = dragOptions;
-						dragCompleteEvent.dropAction = dragEvent["action"];
-						dragCompleteEvent.localX = dragEvent["localX"];
-						dragCompleteEvent.localY = dragEvent["localY"];
-						(lastDragStartObj as IEventDispatcher).dispatchEvent(dragCompleteEvent);
-					}
-
-
-				}
-			}
-
-			dragStartHappened = false;
-			_lastDragSource = null;
-
-		}
-
-		public static function replayAIRDragCancelEvent(realTarget:EventDispatcher,dragEvent:AutomationDragEvent ):void
-		{
-			_lastClipBoardObject = formClipboard(_lastDragSource);
-			var dragCancelEvent:NativeDragEvent = new NativeDragEvent(NativeDragEvent.NATIVE_DRAG_COMPLETE);
-			dragCancelEvent.clipboard = _lastClipBoardObject;
-			dragCancelEvent.allowedActions = dragOptions;
-			dragCancelEvent.dropAction = dragEvent.action;
-			dragCancelEvent.localX = dragEvent.localX;
-			dragCancelEvent.localY = dragEvent.localY;
-			(lastDragStartObj as IEventDispatcher).dispatchEvent(dragCancelEvent);
-
-			dragStartHappened = false;
-			_lastDragSource = null;
-
-		}
-		public static function  get lastClipBoardObject():Clipboard
-		{
-			return lastClipBoardObject;
-		}
-	}
+    import flash.desktop.Clipboard;
+    import flash.desktop.NativeDragOptions;
+    import flash.display.DisplayObject;
+    import flash.events.EventDispatcher;
+    import flash.events.IEventDispatcher;
+    import flash.events.NativeDragEvent;
+
+    import mx.automation.IAutomationObject;
+    import mx.automation.events.AutomationDragEvent;
+    import mx.core.DragSource;
+    import mx.managers.ISystemManager;
+
+    [Mixin]
+
+    /**
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2
+     *  @productversion Flex 4.1
+     */
+    public class AirDragManagerAutomationHandler
+    {
+        private static var sm:ISystemManager;
+        private static  var dragStartHappened:Boolean = false;
+        private static var _lastClipBoardObject:Clipboard;
+        private static var _lastFormat:String;
+        private static var dragOptions:NativeDragOptions;
+        private static var lastDragStartObj:IAutomationObject ;
+        private static var _lastDragSource:DragSource;
+
+       /**
+        *
+        *  @langversion 3.0
+        *  @playerversion Flash 10
+        *  @playerversion AIR 2
+        *  @productversion Flex 4.1
+        */
+        public function AirDragManagerAutomationHandler()
+        {
+        }
+
+       /**
+        *
+        *  @langversion 3.0
+        *  @playerversion Flash 10
+        *  @playerversion AIR 2
+        *  @productversion Flex 4.1
+        */
+        public static function init(root:DisplayObject):void
+        {
+            sm = root as ISystemManager;
+        }
+
+
+
+       /**
+        *
+        *  @langversion 3.0
+        *  @playerversion Flash 10
+        *  @playerversion AIR 2
+        *  @productversion Flex 4.1
+        */
+        public static function getlastDragStartObj():IAutomationObject
+        {
+            return lastDragStartObj;
+        }
+
+       /**
+        *
+        *  @langversion 3.0
+        *  @playerversion Flash 10
+        *  @playerversion AIR 2
+        *  @productversion Flex 4.1
+        */
+        public static function getLastDragStartFormat():String
+        {
+            return _lastFormat;
+        }
+
+       /**
+        *
+        *  @langversion 3.0
+        *  @playerversion Flash 10
+        *  @playerversion AIR 2
+        *  @productversion Flex 4.1
+        */
+        public static function storeAIRDragSourceDetails(dragSource:DragSource):void
+        {
+            dragOptions = new NativeDragOptions();
+            dragOptions.allowCopy = true;
+            dragOptions.allowMove = true;
+            dragOptions.allowLink = false;
+
+            _lastClipBoardObject = null;
+            dragStartHappened = true;
+
+            _lastDragSource = dragSource;
+        }
+
+
+        private static function formClipboard(dragSource:DragSource):Clipboard
+        {
+            var clipboardObj:Clipboard = new Clipboard();
+
+            var formatsArr:Array = dragSource.formats;
+            if (formatsArr)
+            {
+                //var dataArray:Array = new Array();
+                var count: int  = formatsArr.length;
+                var index:int  = 0;
+                while (index < count)
+                {
+                    // get the data object
+                    //var currentDataObject:Object = dragSource.dataForFormat(formatsArr[index]);
+                    //clipboardObj.setData(formatsArr[index],currentDataObject,false);
+                    // The above commented part was throwing an RTE if currentDataObject is null.
+                    // http://bugs.adobe.com/jira/browse/FLEXENT-1069
+                    // So we are using setDataHandler() method of ClipBoard instead of setData()
+                    // in the same way how NativeDragManager constructs a clipboard object in doDrag()
+                    var dataFetcher:DragDataFormatFetcher = new DragDataFormatFetcher();
+                    dataFetcher.dragSource = dragSource;
+                    dataFetcher.format = formatsArr[index];
+                    clipboardObj.setDataHandler(formatsArr[index],dataFetcher.getDragSourceData,false);
+                    index++;
+                }
+            }
+            return clipboardObj;
+        }
+
+       /**
+        *
+        *  @langversion 3.0
+        *  @playerversion Flash 10
+        *  @playerversion AIR 2
+        *  @productversion Flex 4.1
+        */
+        public static function replayAIRDragStartEvent(realTarget:EventDispatcher , dragEvent:AutomationDragEvent, draggedItems:IAutomationObject):void
+        {
+            lastDragStartObj = realTarget as IAutomationObject;
+            //dragStartHappened = false;
+            if (dragStartHappened == false)
+            {
+                _lastClipBoardObject = new Clipboard();
+                _lastClipBoardObject.setData("items",new Object(),false);
+                if (!dragOptions)
+                    dragOptions = new NativeDragOptions();
+                dragOptions.allowCopy = true;
+                dragOptions.allowMove = true;
+                dragOptions.allowLink = false;
+
+                // we need to crete a native drag enter event and then a drag drop event and dispatch on our component.
+                var dragStartEvent:NativeDragEvent = new NativeDragEvent(NativeDragEvent.NATIVE_DRAG_START);
+                dragStartEvent.clipboard = _lastClipBoardObject;
+                dragStartEvent.allowedActions = dragOptions;
+                dragStartEvent.dropAction = dragEvent.action;
+                dragStartEvent.localX = dragEvent.localX;
+                dragStartEvent.localY = dragEvent.localY;
+                dragStartEvent.buttonDown = true;
+                if (dragStartEvent.isDefaultPrevented())
+                    trace  ('here-x');
+                realTarget.dispatchEvent(dragStartEvent);
+            }
+        }
+
+       /**
+        *
+        *  @langversion 3.0
+        *  @playerversion Flash 10
+        *  @playerversion AIR 2
+        *  @productversion Flex 4.1
+        */
+        public static function replayAIRDragDropEvent(realTarget:EventDispatcher , dragEvent:AutomationDragEvent/*,dragSource:DragSource*/):void
+        {
+            // we should have   dragStartHappened as true,_lastClipBoardObject and dragOptions as non null values.
+            // in the case marhshalled application drag start and drag drop can be in different application domain.
+            if (!dragStartHappened)
+            {
+                // we need to get the details from the application where the current dragStart happened.
+            }
+            else
+            {
+                _lastClipBoardObject = formClipboard(_lastDragSource);
+                if (_lastClipBoardObject && dragOptions)
+                {
+                    // we need to crete a native drag enter event and then a drag drop event and dispatch on our component.
+                    var dragEnterEvent:NativeDragEvent = new NativeDragEvent(NativeDragEvent.NATIVE_DRAG_ENTER);
+                    dragEnterEvent.clipboard = _lastClipBoardObject;
+                    dragEnterEvent.allowedActions = dragOptions;
+                    dragEnterEvent.dropAction = dragEvent.action;
+                    dragEnterEvent.localX = dragEvent.localX;
+                    dragEnterEvent.localY = dragEvent.localY;
+                    dragEnterEvent.buttonDown = true;
+                    realTarget.dispatchEvent(dragEnterEvent);
+
+                    var dragDropEvent:NativeDragEvent = new NativeDragEvent(NativeDragEvent.NATIVE_DRAG_DROP);
+                    dragDropEvent.clipboard = _lastClipBoardObject;
+                    dragDropEvent.allowedActions = dragOptions;
+                    dragDropEvent.dropAction = dragEvent.action;
+                    dragDropEvent.localX = dragEvent.localX;
+                    dragDropEvent.localY = dragEvent.localY;
+                    realTarget.dispatchEvent(dragDropEvent);
+
+                    // we need to dispatch the dragComplete on the dragStart object.
+                    if (lastDragStartObj as IEventDispatcher)
+                    {
+                        var dragCompleteEvent:NativeDragEvent = new NativeDragEvent(NativeDragEvent.NATIVE_DRAG_COMPLETE);
+                        dragCompleteEvent.clipboard = _lastClipBoardObject;
+                        dragCompleteEvent.allowedActions = dragOptions;
+                        dragCompleteEvent.dropAction = dragEvent.action;
+                        dragCompleteEvent.localX = dragEvent.localX;
+                        dragCompleteEvent.localY = dragEvent.localY;
+                        (lastDragStartObj as IEventDispatcher).dispatchEvent(dragCompleteEvent);
+                    }
+
+
+                }
+            }
+
+            dragStartHappened = false;
+
+            _lastDragSource = null;
+
+        }
+
+
+       /**
+        *
+        *  @langversion 3.0
+        *  @playerversion Flash 10
+        *  @playerversion AIR 2
+        *  @productversion Flex 4.1
+        */
+        public static function replayAIRDragDropMarshalledEvent(realTarget:Object , dragEvent:Object/*,dragSource:DragSource*/):void
+        {
+            // we should have   dragStartHappened as true,_lastClipBoardObject and dragOptions as non null values.
+            // in the case marhshalled application drag start and drag drop can be in different application domain.
+            if (dragStartHappened == false)
+            {
+                // we need to get the details from the application where the current dragStart happened.
+            }
+            else
+            {
+                _lastClipBoardObject = formClipboard(_lastDragSource);
+                if (_lastClipBoardObject && dragOptions)
+                {
+                    // we need to crete a native drag enter event and then a drag drop event and dispatch on our component.
+                    var dragEnterEvent:NativeDragEvent = new NativeDragEvent(NativeDragEvent.NATIVE_DRAG_ENTER);
+                    dragEnterEvent.clipboard = _lastClipBoardObject;
+                    dragEnterEvent.allowedActions = dragOptions;
+                    dragEnterEvent.dropAction = dragEvent["action"];
+                    dragEnterEvent.localX = dragEvent["localX"];
+                    dragEnterEvent.localY = dragEvent["localY"];
+                    dragEnterEvent.buttonDown = true;
+                    realTarget.dispatchEvent(dragEnterEvent);
+
+                    var dragDropEvent:NativeDragEvent = new NativeDragEvent(NativeDragEvent.NATIVE_DRAG_DROP);
+                    dragDropEvent.clipboard = _lastClipBoardObject;
+                    dragDropEvent.allowedActions = dragOptions;
+                    dragDropEvent.dropAction = dragEvent["action"];
+                    dragDropEvent.localX = dragEvent["localX"];
+                    dragDropEvent.localY = dragEvent["localY"];
+                    realTarget.dispatchEvent(dragDropEvent);
+
+                    // we need to dispatch the dragComplete on the dragStart object.
+                    if (lastDragStartObj as IEventDispatcher)
+                    {
+                        var dragCompleteEvent:NativeDragEvent = new NativeDragEvent(NativeDragEvent.NATIVE_DRAG_COMPLETE);
+                        dragCompleteEvent.clipboard = _lastClipBoardObject;
+                        dragCompleteEvent.allowedActions = dragOptions;
+                        dragCompleteEvent.dropAction = dragEvent["action"];
+                        dragCompleteEvent.localX = dragEvent["localX"];
+                        dragCompleteEvent.localY = dragEvent["localY"];
+                        (lastDragStartObj as IEventDispatcher).dispatchEvent(dragCompleteEvent);
+                    }
+
+
+                }
+            }
+
+            dragStartHappened = false;
+            _lastDragSource = null;
+
+        }
+
+       /**
+        *
+        *  @langversion 3.0
+        *  @playerversion Flash 10
+        *  @playerversion AIR 2
+        *  @productversion Flex 4.1
+        */
+        public static function replayAIRDragCancelEvent(realTarget:EventDispatcher,dragEvent:AutomationDragEvent ):void
+        {
+            _lastClipBoardObject = formClipboard(_lastDragSource);
+            var dragCancelEvent:NativeDragEvent = new NativeDragEvent(NativeDragEvent.NATIVE_DRAG_COMPLETE);
+            dragCancelEvent.clipboard = _lastClipBoardObject;
+            dragCancelEvent.allowedActions = dragOptions;
+            dragCancelEvent.dropAction = dragEvent.action;
+            dragCancelEvent.localX = dragEvent.localX;
+            dragCancelEvent.localY = dragEvent.localY;
+            (lastDragStartObj as IEventDispatcher).dispatchEvent(dragCancelEvent);
+
+            dragStartHappened = false;
+            _lastDragSource = null;
+
+        }
+
+       /**
+        *
+        *  @langversion 3.0
+        *  @playerversion Flash 10
+        *  @playerversion AIR 2
+        *  @productversion Flex 4.1
+        */
+        public static function  get lastClipBoardObject():Clipboard
+        {
+            return lastClipBoardObject;
+        }
+    }
 }
 import mx.core.DragSource;

 class DragDataFormatFetcher
 {
-
-	include "../../core/Version.as";
-
-	//--------------------------------------------------------------------------
-	//
-	//  Constructor
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  Constructor.
-	 */
-	public function DragDataFormatFetcher()
-	{
-		super();
-	}
-
-	/**
-	 *  @private
-	 */
-	public var dragSource:DragSource;
-
-	/**
-	 *  @private
-	 */
-	public var format:String;
-
-	/**
-	 *  @private
-	 */
-	public function getDragSourceData():Object
-	{
-		if (dragSource)
-			return dragSource.dataForFormat(format);
-		else
-			return null;
-	}
+
+    include "../../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     */
+    public function DragDataFormatFetcher()
+    {
+        super();
+    }
+
+    /**
+     *  @private
+     */
+    public var dragSource:DragSource;
+
+    /**
+     *  @private
+     */
+    public var format:String;
+
+    /**
+     *  @private
+     */
+    public function getDragSourceData():Object
+    {
+        if (dragSource)
+            return dragSource.dataForFormat(format);
+        else
+            return null;
+    }
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 8574
Author:   aharui@adobe.com
Date:     2009-07-15T05:33:44.225721Z

Log Message:
-----------
Bugs related to TLF and focus.  Also TLF Marshall Plan adjustments, and some IME fixes

QE Notes: None
Doc Notes: None
Bugs: SDK-21278, SDK-21686, SDK-21375, SDK-18516, SDK-15093, SDK-21335
Reviewer: darrell, carol
tests: checkintests mustella/gumbo mustella/components

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/FlexHTMLLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/IFocusManagerComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/HTML.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/core/IIMESupport.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SWFBridgeEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/alertClasses/AlertForm.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework_textLayout/src/mx/core/UITLFTextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/TabNavigator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/RichEditableTextContainerManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoPlayer.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/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridColumn.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/FlexEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Accordion.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/sliderClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses/FocusManagerMarshalMixin.as</path>

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

--- frameworks/projects/framework/src/mx/events/SWFBridgeEvent.as
+++ frameworks/projects/framework/src/mx/events/SWFBridgeEvent.as
@@ -134,6 +134,32 @@
 	 */
     public static const BRIDGE_WINDOW_DEACTIVATE:String =
 		"brdigeWindowDeactivate";
+
+	/**
+	 *	Dispatched to a parent bridge or sandbox root to notify it that
+	 *  the AIR window was activated.
+	 *
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 1.5
+	 *  @productversion Flex 4
+	 */
+    public static const BRIDGE_AIR_WINDOW_ACTIVATE:String =
+		"bridgeAIRWindowActivate";
+
+	/**
+	 *	Dispatched to a parent bridge or sandbox root to notify it that
+	 *	the AIR window was deactivated.
+	 *
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 1.5
+	 *  @productversion Flex 4
+	 */
+    public static const BRIDGE_AIR_WINDOW_DEACTIVATE:String =
+		"bridgeAIRWindowDeactivate";

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


FLEX-33860: Support for iOS7 status bar fix : do not display status bar on ios7 for fullScreen apps

--- frameworks/projects/spark/src/spark/components/Application.as
+++ frameworks/projects/spark/src/spark/components/Application.as
@@ -388,7 +388,7 @@
      *  @private
      */
     private static var _softKeyboardBehavior:String = null;
-
+
     /**
      *  @private
      */
@@ -1368,6 +1368,11 @@
             sm.stage.addEventListener("orientationChanging", stage_orientationChangingHandler);
             sm.stage.addEventListener("orientationChange", stage_orientationChange);
             sm.stage.addEventListener(FullScreenEvent.FULL_SCREEN, stage_fullScreenHandler)  ;
+
+            // if full screen app,  clear status bar height
+            if ( sm.stage.displayState == StageDisplayState.FULL_SCREEN || sm.stage.displayState == StageDisplayState.FULL_SCREEN_INTERACTIVE )  {
+                setStyle("osStatusBarHeight", 0);
+            }
         }

         _url = LoaderUtil.normalizeURL(sm.loaderInfo);


Transferred from the Adobe Open Source Subversion Repository

Revision: 2599
Author:   jszeto@adobe.com
Date:     2008-07-23T22:17:33.696916Z

Log Message:
-----------
FXG Bug Fix

MXMLG-116 only edge pixels expand when resize this bitmapGraphic

In BitmapGraphic we constrain the dimensions of the rectangle that hold the bitmap fill to be the minimum of either the image's dimensions or the drawing dimensions. This occurs only when repeat is false.

Bug: MXMLG-116
QA: Yes
Doc: Yes
Review: Ryan

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/BitmapGraphic.as

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

--- frameworks/projects/spark/src/spark/primitives/BitmapImage.as
+++ frameworks/projects/spark/src/spark/primitives/BitmapImage.as
@@ -290,8 +290,17 @@
 		_fill.offsetY = 0;
 		_fill.repeat = repeat;
 		_fill.smooth = smooth;
-		_fill.begin(g, new Rectangle(drawWidth, drawHeight));
-		g.drawRect(0, 0, drawWidth, drawHeight);
+		var w:Number = drawWidth;
+		var h:Number = drawHeight;
+
+		if (!repeat)
+		{
+			w = Math.min(w, source.width);
+			h = Math.min(h, source.height);
+		}
+
+		_fill.begin(g, new Rectangle(w, h));
+		g.drawRect(0, 0, w, h);
 		_fill.end(g);

 		applyDisplayObjectProperties();


Transferred from the Adobe Open Source Subversion Repository

Revision: 3594
Author:   pfarland@adobe.com
Date:     2008-10-13T18:00:52.025975Z

Log Message:
-----------
Initial check-in for Advanced CSS selector support. Note that since direct AST generation for advanced styles (i.e. equivalent code of StyleModule.vm, StyleDef.vm, ClassDefLib.vm) is not yet implemented and as such advanced selector support is only enabled when the compiler -keep=true is enabled at this time. Direct AST generation to follow.

This change adds support for descendant type selectors (e.g. Panel VBox Button), non-global class selectors (e.g. Button.special), id selectors (e.g. Button#button14), and combinations of these types of selectors (e.e. Panel.special VBox.box12 Button.cancel). Pseudo selector awareness is included but it is not yet wired up to the runtime states mechanism as an efficient method of reacting to state changes is still being developed. Combinator conditional global selectors will be supported soon (i.e. the scenario of combining both an id and class selector at the top level, e.g. .foo#foo12, this requires a more expensive search of global class selectors).

This change juggles both the introduction of advanced selector support while retaining legacy styles APIs. The major difference with advanced styles is that multiple styles need to be considered for a type. This requires new data structures to keep track of selectors by subject. Performance analysis will be conducted to ensure these new data structures do not add unacceptable overhead to the style subsystem.

For the compiler this change consolidates styles processing in the base StyleModule class and then MXML-specific overrides (i.e. inline <Styles> nodes and SWC defaults.css) are in the StylesContainer.java class, which now extends StyleModule. The existing structure for legacy simple style codegen was retained and advanced style codegen wedged in.

QA: Yes
Doc: Not yet
Checkintests: Pass 100%
mxunit styles tests: Pass 100% (note that styles modules include tests you need to manually compile the .css files to swf and they're currently cleaned out each time a build runs... QE please correct this).
mustella styles tests: QE's select list of components testsuites pass 100%. Any failures in the full suite will be addressed in the next-checkin.
Reviewers: Glenn (framework), Paul (compiler)

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/CssCompiler.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StylesContainer.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/MxmlDocument.java</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/src/mx/styles/IStyleManager3.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/config/ConfigMap.as</path>
<path kind="file" action="A">/flex/sdk/trunk/modules/compiler/src/java/flash/css/StyleSelector.java</path>
<path kind="file" action="A">/flex/sdk/trunk/modules/compiler/src/java/flash/css/StyleProperty.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flash/css/StyleDeclaration.java</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSSelectorKind.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/styles/CSSConditionKind.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flash/css/FontFaceRule.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationGenerator.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/IStyleClient.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/modules/compiler/src/java/flash/css/StyleSheet.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flash/css/StyleDocumentHandler.java</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/modules/compiler/src/java/flex2/tools/PreLink.java</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSSelector.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManager.as</path>
<path kind="file" action="D">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleProperty.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleModule.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleModule.vm</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/IAdvancedStyleClient.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSCondition.as</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/modules/compiler/src/java/flash/css/Rule.java</path>
<path kind="file" action="A">/flex/sdk/trunk/modules/compiler/src/java/flash/css/StyleCondition.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/FrameworkClasses.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleDef.java</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/flash/css/StyleParser.java</path>

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 18514
Author:   dthakkar@adobe.com
Date:     2010-11-10T00:38:39.528767Z

Log Message:
-----------
QE notes: Some testcases in spark formatters are failing because of behavior change. These testcases are excluded prior to submission. Globalization QE team has been informed about this.
Doc notes: Spark Formatters ASDocs are updated and also added samples for the spark formatters.
Bugs: SDK-28145, SDK-28345 ,SDK-28320 ,SDK-28287,SDK-28314
Reviewer: Gordon , Craig, Masa, Xie
Tests run: checkintests
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/AdvancedStyleClient.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/asdoc/en_US/spark/globalization/MatchingCollatorExample.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/scripts/NumberValidatorTestScript.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/scripts/CurrencyValidatorTestScript.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/views/NumberValidatorTests.mxml</path>
<path kind="dir" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/asdoc/en_US/spark/formatters</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/views/CurrencyValidatorTests.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/supportClasses/CollatorBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters/NumberFormatter.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/asdoc/en_US/spark/formatters/examples/NumberFormatterExample1.mxml</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters/supportClasses/NumberBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/BasicTests.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/asdoc/en_US/spark/formatters/examples/CurrencyFormatterExample1.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters/CurrencyFormatter.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters/DateTimeFormatter.as</path>
<path kind="dir" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/asdoc/en_US/spark/globalization</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/bundles/en_US/validators.properties</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/SortingCollator.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/asdoc/en_US/spark/globalization/SortingCollatorExample.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/StringTools.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/asdoc/en_US/spark/globalization/StringToolsExample.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/validators/IValidator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/BasicTests-config.xml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/validators/supportClasses/NumberValidatorBase.as</path>
<path kind="dir" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/validators/supportClasses</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/spark-manifest.xml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/validators/supportClasses/GlobalizationValidatorBase.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/asdoc/en_US/spark/formatters/examples/NumberFormatterExample2.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/asdoc/en_US/spark/formatters/examples/CurrencyFormatterExample2.mxml</path>
<path kind="dir" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/validators</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/validators/NumberValidator.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/validators/CurrencyValidator.as</path>
<path kind="dir" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/asdoc/en_US/spark/formatters/examples</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/validators/Validator.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/validators/supportClasses/GlobalizationUtils.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/supportClasses/GlobalizationBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/formatters/IFormatter.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/asdoc/en_US/spark/formatters/examples/DateTimeFormatterExample.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/LastOperationStatus.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters/supportClasses/NumberFormatterBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/MatchingCollator.as</path>

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

--- frameworks/projects/spark/src/spark/formatters/DateTimeFormatter.as
+++ frameworks/projects/spark/src/spark/formatters/DateTimeFormatter.as
@@ -21,8 +21,12 @@

 import spark.globalization.LastOperationStatus;
 import spark.globalization.supportClasses.GlobalizationBase;
+import mx.resources.IResourceManager;
+import mx.resources.ResourceManager;

 use namespace mx_internal;
+
+[ResourceBundle("core")]

 /**
  *  The DateTimeFormatter class provides locale-sensitve
@@ -30,21 +34,21 @@
  *
  *
This class is a wrapper class around the
  *  flash.globalization.DateTimeFormatter.
- *  Therefore the locale-specific formatting functionality and the month
+ *  Therefore, the locale-specific formatting functionality and the month
  *  names, day names and the first day of the week are provided by the
  *  flash.globalization.DateTimeFormatter.
- *  However this DateTimeFormatter class can be used in MXML declartions,
+ *  However, this DateTimeFormatter class can be used in MXML declartions,
  *  uses the locale style for the requested Locale ID name, and has methods
- *  and properties that are bindable.
- *  Additionally events are generated if there is an error or warning
- *  generated by the flash.globalization class.

+ *  and properties that are bindable.

  *
- *
The flash.globalization.DateTimeFormatter class use the
+ *
The flash.globalization.DateTimeFormatter class uses the
  *  underlying operating system for the formatting functionality and to
  *  supply the locale-specific data.
  *  On some operating systems, the flash.globalization classes
- *  are unsupported, this wrapper class provides a fallback functionality in
- *  this case.

+ *  are unsupported, on these systems, this wrapper class provides
+ *  fallback functionality.

+ *
+ *  @includeExample examples/DateTimeFormatterExample.mxml
  *
  *  @see flash.globalization.DateTimeFormatter
  */
@@ -77,68 +81,62 @@
      *  dates and times according to the conventions of the specified locale
      *  and the provided date and time formatting styles.
      *
-     *  Date and time styles are used to set date and time formatting
-     *  patterns to predefined, locale dependent patterns from the operating
-     *  system.
-     *
-     *
This constructor will determine if the current operating system
-     *  supports the requested locale ID name.
-     *  If it is not supported then a fallback locale will be used instead.
-     *  The name of the fallback locale ID can be determined from the
-     *  actualLocaleIDName property.

-     *
-     *
To format based on the user's current operating system
-     *  preferences, pass the value LocaleID.DEFAULT in the
-     *  locale parameter to the constructor.

-     *
-     *
The constructor will dispatch a
-     *  GlobalizationStatusEvent.LAST_OPERATION_STATUS event in
-     *  cases where the flash.globalization.DateTimeFormatter
-     *  class set the LastOperationStatus property to something
-     *  other than LastOperationStatus.NO_ERROR.
-     *  For example if the locale, dateStyle, or timeStyle result in the use
-     *  of a fallback being used, the
-     *  GlobalizationStatusEvent.LAST_OPERATION_STATUS event
-     *  will be dispatched.

-     *
-     *  @param locale The preferred locale ID name to use when determining
-     *         date or time formats.
-     *  @param dateStyle Specifies the style to use when formatting dates.
-     *         The value should correspond to one of the values enumerated
-     *         by the DateTimeStyle class:
-     *

-     *
DateTimeStyle.LONG

-     *
DateTimeStyle.MEDIUM

-     *
DateTimeStyle.SHORT

-     *
DateTimeStyle.NONE

-     *

-     *  @param timeStyle Specifies the style to use when formatting times.
-     *         The value should correspond to one of the values enumerated
-     *         by the DateTimeStyle class:
-     *

-     *
DateTimeStyle.LONG

-     *
DateTimeStyle.MEDIUM

-     *
DateTimeStyle.SHORT

-     *
DateTimeStyle.NONE

-     *

-     *
-     *  @throws ArgumentError if the dateStyle or
-     *          timeStyle parameter is not a valid
-     *          DateTimeStyle constant.
-     *  @throws TypeError if the locale, dateStyle
-     *          or timeStyle parameter is null.
-     *
-     *  @see #locale
+     *
The locale for this class is supplied by the locale style. The
+     *  locale style can be set in several ways:
+     *

+     *

+     *

+     *  By using the class in an MXML declaration and inheriting the
+     *  locale from the document that contains the declaration.
+     *

+     *  Example:
+     *  <listing version="3.0" >
+     *  <fx:Declarations>

+     *         <s:DateTimeFormatter id="df" />

+     *  </fx:Declarations>
+     *  </listing>
+     *

+     *  By using an MXML declaration and specifying the locale value
+     *  in the list of assignments.
+     *

+     *  Example:
+     *  <listing version="3.0" >
+     *  <fx:Declarations>

+     *      <s:DateTimeFormatter id="df_Japanese" locale="ja-JP" />

+     *  </fx:Declarations>
+     *  </listing>
+     *

+     *  Calling the setStyle method,
+     *  e.g. df.setStyle("locale", "ja-JP")
+     *

+     *

+     *  Inheriting the style from a UIComponent by calling the
+     *  UIComponent's addStyleClient() method.
+     *

+     *

+     *

+     *  If the locale style is not set by one of the above techniques,
+     *  the methods of this class that depend on the locale
+     *  will set lastOperationStatus to
+     *  LastOperationStatus.LOCALE_UNDEFINED_ERROR
+     *  and depending on the return type the methods will return
+     *  null, 0, or undefined.

+     *
+     *
Most of the properties of
+     *  this class are automatically set based on the locale style. If the
+     *  locale style is changed, any properties that have not been explicitly
+     *  set will also be updated based on the new locale. Note that the
+     *  actual locale that is used is specified by the actualLocaleIDName
+     *  property.

+     *
+     *
      *  @see #actualLocaleIDName
-     *  @see #dateStyle
-     *  @see #timeStyle
-     *  @see #dateTimePattern
-     *  @see spark.events.GlobalizationStatusEvent.LAST_OPERATION_STATUS
-     *
+     *  @see #lastOperationsStatus
+     *
+     *  @langversion 3.0
      *  @playerversion Flash 10.1
-     *  @langversion 3.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
-     *  @productversion Flash CS5
      */
     public function DateTimeFormatter()
     {
@@ -151,6 +149,12 @@
     //
     //--------------------------------------------------------------------------

+    /**
+     *  @private
+     */
+    private var resourceManager:IResourceManager =
+        ResourceManager.getInstance();
+
     /**
      *  @private
      *  Basic properies of the actual underlying working instance.
@@ -197,9 +201,9 @@
      *  @see flash.globalization.DateTimeFormatter.actualLocaleIDName
      *  @see #DateTimeFormatter()
      *
+     *  @langversion 3.0
      *  @playerversion Flash 10.1
-     *  @langversion 3.0
-     *  @productversion Flash CS5
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     override public function get actualLocaleIDName():String
@@ -228,9 +232,9 @@
     /**
      *  @inheritDoc
      *
+     *  @langversion 3.0
      *  @playerversion Flash 10.1
-     *  @langversion 3.0
-     *  @productversion Flash CS5
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     override public function get lastOperationStatus():String
@@ -277,12 +281,11 @@
      *  timeStyle and the dateStyle properties
      *  determine the format of the date.
      *
-     *  The date style value can be set in the following three ways:
-     *  assigning a value to dateStyle property,
-     *  dateTimePattern property, or the dateStyle parameter in
-     *  the DateTimeFormatter() constructor.
-     *
-     *
Possible values for the timeStyle property are:

+     *  The date style value can be set in the following two ways:
+     *  assigning a value to either the dateStyle property or
+     *  the dateTimePattern property.
+     *
+     *
Possible values for the dateStyle property are:

      *
      *

      *
DateTimeStyle.LONG

@@ -291,14 +294,18 @@
      *
DateTimeStyle.NONE

      *
DateTimeStyle.CUSTOM

      *

+     *
+     *
If the dateTimePattern
+     *  property is assigned a value, as a side effect, the dateStyle property
+     *  is set to DateTimeStyle.CUSTOM

      *
      *  @default DateTimeStyle.LONG
      *
      *  @throws ArgumentError if the assigned value is not a valid
      *          DateTimeStyle constant or is
-     *          DateTimeStyle.CUSTOM .
+     *          DateTimeStyle.CUSTOM.
      *  @throws TypeError if the dateStyle or
-     *          timeStyle parameter is null.
+     *          is set to null.
      *
      *  @see #dateStyle
      *  @see #dateTimePattern
@@ -306,10 +313,10 @@
      *  @see flash.globalization.DateTimeStyle
      *  @see #DateTimeFormatter()
      *
+     *  @langversion 3.0
      *  @playerversion Flash 10.1
-     *  @langversion 3.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
-     *  @productversion Flash CS5
      */
     public function get dateStyle():String
     {
@@ -340,7 +347,12 @@
         else
         {
             if (!FallbackDateTimeFormatter.validDateTimeStyle(value))
-                throw new TypeError();
+            {
+                const message:String =
+                 resourceManager.getString("core","badParameter",[ dateStyle ]);
+                throw new ArgumentError(message);
+            }
+

             if (fallbackFormatter)
                 fallbackFormatter.dateStyle = value;
@@ -360,12 +372,10 @@
      *  The pattern string used by the DateTimeFormatter object to format
      *  dates and times.
      *
-     *
This pattern can be set in one of three ways:

+     *
This pattern can be set in one of two ways:

      *
      *

-     *
By the dateStyle and timeStyle
-     *     parameters used in the constructor

-     *
By the dateSytl() and timeStyle
+     *
By the dateSytle() and timeStyle
      *     properties

      *
By the dateTimePattern() property.

      *

@@ -382,14 +392,13 @@
      *  @return A string containing the pattern used by this
      *  DateTimeFormatter object to format dates and times.
      *
-     *  @see DateTimeFormatter
-     *  @see #dateStyle()
-     *  @see #timeStyle()
-     *
+     *  @see #dateStyle
+     *  @see #timeStyle
+     *
+     *  @langversion 3.0
      *  @playerversion Flash 10.1
-     *  @langversion 3.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
-     *  @productversion Flash CS5
      */
     public function get dateTimePattern():String
     {
@@ -417,7 +426,12 @@
         else
         {
             if (!value)
-                throw new TypeError();
+            {
+                const message:String =
+                    resourceManager.getString("core","nullParameter",
+                        [ dateTimePattern ]);
+                throw new TypeError(message);
+            }

             if (fallbackFormatter)
                 fallbackFormatter.dateTimePattern = value;
@@ -436,7 +450,8 @@
     [Bindable("change")]

     /**
-     *  Replacement string returned by the format method when an error occurs.
+     *  Replacement string returned by the format() method
+     *  when an error occurs.
      *
      *
If errorText is non-null and an error occurs
      *  while formatting a date, the format method
@@ -454,9 +469,9 @@
      *
      *  @see spark.globalization.LastOperationStatus
      *
+     *  @langversion 3.0
      *  @playerversion Flash 10.1
-     *  @playerversion AIR 2
-     *  @langversion 3.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function get errorText():String
@@ -491,10 +506,9 @@
      *  timeStyle and the dateStyle properties
      *  determine the format of the date.
      *
-     *  The time style value can be set in the following three ways:
-     *  assigning a value to timeStyle property,
-     *  dateTimePattern property, or the timeStyle parameter in
-     *  the DateTimeFormatter() constructor.
+     *  The time style value can be set in the following two ways:
+     *  assigning a value to either the timeStyle property or
+     *  the dateTimePattern property.
      *
      *
Possible values for the timeStyle property are:

      *
@@ -505,10 +519,15 @@
      *
DateTimeStyle.NONE

      *
DateTimeStyle.CUSTOM

      *

+     *
+     *
If the dateTimePattern
+     *  property is assigned a value, as a side effect, the dateStyle property
+     *  is set to DateTimeStyle.CUSTOM

      *
      *  @default DateTimeStyle.LONG
      *
-     *  @throws ArgumentError if the a not a valid DateTimeStyle
+     *  @throws ArgumentError if the assigned value is not a valid
+     *          DateTimeStyle
      *          constant or is DateTimeStyle.CUSTOM .
      *
      *  @throws TypeError if the dateStyle or
@@ -519,10 +538,10 @@
      *  @see flash.globalization.DateTimeStyle
      *  @see #DateTimeFormatter()
      *
+     *  @langversion 3.0
      *  @playerversion Flash 10.1
-     *  @langversion 3.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
-     *  @productversion Flash CS5
      */
     public function get timeStyle():String
     {
@@ -553,7 +572,12 @@
         else
         {
             if (!FallbackDateTimeFormatter.validDateTimeStyle(value))
-                throw new TypeError();
+            {
+                const message:String =
+                    resourceManager.getString("core","badParameter",
+                        [ timeStyle ]);
+                throw new ArgumentError(message);
+            }

             if (fallbackFormatter)
                 fallbackFormatter.timeStyle = value;
@@ -578,18 +602,20 @@
     [Bindable("change")]

     /**
-     *  A boolean flag to control whethor the local or the UTC date and time
+     *  A boolean flag to control whether the local or the UTC date and time
      *  values are used when the formatting a date.
      *
-     *  If useUTC is set to true then the UTC values are used.
-     *  If the value is false, then the date time values of the operating
-     *  system's current time zone is used.
-     *
-     *  @see #format
-     *
+     *  If useUTC is set to true then the UTC values
+     *  are used. If the value is set tofalse, then the
+     *  date time values of the operating system's current time zone is used.
+     *
+     *  @default false
+     *
+     *  @see #format()
+     *
+     *  @langversion 3.0
      *  @playerversion Flash 10.1
-     *  @langversion 3.0
-     *  @productversion Flash CS5
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function get useUTC():Boolean
@@ -664,13 +690,16 @@
     [Bindable("change")]

     /**
-     *  Formats a display string for a Date object in either the user's local
-     *  time or UTC time.
-     *
-     *  A Date object has two sets of date and time values,
-     *  those in the user's local time (date, day, fullYear, hours, minutes,
-     *  month, and seconds) and those in UTC time (dateUTC, dayUTC,
-     *  fullYearUTC, hoursUTC, minutesUTC, monthUTC, and secondsUTC).
+     * Formats a display string for an object that specifies a date in either
+     * the user's local time or UTC time.
+     *
+     *
+     *
A Date object has two sets of date and time values,
+     *  those in the user's local time (date, day, fullYear, hours,
+     *  minutes, month, and seconds) and those in UTC
+     *  time (dateUTC, dayUTC,
+     *  fullYearUTC, hoursUTC, minutesUTC, monthUTC, and
+     *  secondsUTC).
      *  The boolean property useUTC controls which set of
      *  date and time components are used when formatting the date.
      *  The formatting will be done using the conventions of the locale as
@@ -678,19 +707,30 @@
      *  dateStyle and timeStyle properties, or the
      *  dateTimePattern, specified for this
      *  DateTimeFormatter instance.
-     *
-     *  @param value A Date value to be formatted.
+     *

+     *
+     *
If there is an error when formatting, due to an illegal input value
+     *  or other error, by default the format() method will
+     *  return null. However if the errorText property
+     *  is non-null, then the value of the errorText property will
+     *  be returned. The lastOperationStatus property will be
+     *  set to indicate the error that occurred.

+     *
+     *  @param value A Date value to be formatted. If the
+     *  object is not a Date then it will be converted
+     *  to a date using the Date() constructor.
      *  @return A formatted string representing the date or time value.
      *
      *  @see #dateStyle
      *  @see #timeStyle
+     *  @see Date
      *  @see #dateTimePattern
      *  @see DateTimeFormatter
      *
+     *  @langversion 3.0
      *  @playerversion Flash 10.1
-     *  @langversion 3.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
-     *  @productversion Flash CS5
      */
     public function format(value:Object):String
     {
@@ -722,7 +762,7 @@
                 g11nWorkingInstance.formatUTC(dateTime) :
                 g11nWorkingInstance.format(dateTime);

-            return errorText && LastOperationStatus.isFatalError(
+            return errorText && LastOperationStatus.isError(
                 g11nWorkingInstance.lastOperationStatus) ? errorText : retVal;
         }

@@ -769,7 +809,8 @@
      *

      *
      *  @return A vector of localized strings containing the month names for
-     *          the specified locale, name style and context.
+     *          the current locale (specified by the locale style),
+     *          name style and context.
      *          The first element in the vector, at index 0, is the name for
      *          the first month of the year; the next element is the name
      *          for the second month of the year; and so forth.
@@ -779,10 +820,10 @@
      *  @see flash.globalization.DateTimeNameContext
      *  @see flash.globalization.DateTimeNameStyle
      *
+     *  @langversion 3.0
      *  @playerversion Flash 10.1
-     *  @langversion 3.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
-     *  @productversion Flash CS5
      */
     public function getMonthNames(nameStyle:String = "full",
                             context:String = "standalone"):Vector.<String>
@@ -832,7 +873,8 @@
      *

      *
      *  @return A vector of localized strings containing the month names for
-     *          the specified locale, name style and context.
+     *          the current locale (specified by the locale style),
+     *          name style and context.
      *          The first element in the vector, at index 0, is the name for
      *          Sunday; the next element is the name for Monday; and so
      *          forth.
@@ -842,10 +884,10 @@
      *  @see flash.globalization.DateTimeNameContext
      *  @see flash.globalization.DateTimeNameStyle
      *
+     *  @langversion 3.0
      *  @playerversion Flash 10.1
-     *  @langversion 3.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
-     *  @productversion Flash CS5
      */
     public function getWeekdayNames(nameStyle:String = "full",
                             context:String = "standalone"):Vector.<String>
@@ -877,10 +919,10 @@
      *  @return An integer corresponding to the first day of the week for
      *  this locale and calendar system.
      *
+     *  @langversion 3.0
      *  @playerversion Flash 10.1
-     *  @langversion 3.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
-     *  @productversion Flash CS5
      */
     public function getFirstWeekday():int
     {
@@ -900,11 +942,14 @@
     }

     /**
-     *  @copy spark.utils.Collator#getAvailableLocaleIDNames
-     *
+     *  Lists all of the locale ID names supported by this class.
+     *
+     *  @return A vector of strings containing all of the locale ID names
+     *         supported by this class and operating system.
+     *
+     *  @langversion 3.0
      *  @playerversion Flash 10.1
-     *  @langversion 3.0
-     *  @productversion Flash CS5
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public static function getAvailableLocaleIDNames():Vector.<String>


added support for multiple dataTypes in EquationColumn

--- WeaveData/src/weave/data/AttributeColumns/EquationColumn.as
+++ WeaveData/src/weave/data/AttributeColumns/EquationColumn.as
@@ -42,6 +42,7 @@
 	import weave.core.LinkableString;
 	import weave.core.UntypedLinkableVariable;
 	import weave.utils.ColumnUtils;
+	import weave.utils.Dictionary2D;
 	import weave.utils.EquationColumnLib;

 	/**
@@ -124,7 +125,7 @@
 		/**
 		 * This is a mapping from keys to cached data values.
 		 */
-		private var _equationResultCache:Dictionary = new Dictionary();
+		private const _equationResultCache:Dictionary2D = new Dictionary2D();
 		/**
 		 * This is used to determine when to clear the cache.
 		 */
@@ -314,7 +315,7 @@
 					{
 						// save the constant result of the function
 						_equationIsConstant = true;
-						_equationResultCache = null; // we don't need a cache
+						_equationResultCache.dictionary = null; // we don't need a cache
 						_constantResult = (compiledObject as CompiledConstant).value;
 					}
 					else
@@ -322,7 +323,7 @@
 						// compile into a function
 						compiledEquation = compiler.compileObjectToFunction(compiledObject, _symbolTableProxy, errorHandler, false, ['key', 'dataType']);
 						_equationIsConstant = false;
-						_equationResultCache = new Dictionary(); // create a new cache
+						_equationResultCache.dictionary = new Dictionary(); // create a new cache
 						_constantResult = undefined;
 					}
 				}
@@ -338,12 +339,12 @@
 			if (!_equationIsConstant)
 			{
 				// check the cache
-				value = _equationResultCache[key];
+				value = _equationResultCache.get(key, dataType);
 				// define cached value if missing
 				if (value === undefined)
 				{
 					// prevent recursion caused by compiledEquation
-					_equationResultCache[key] = UNDEFINED;
+					_equationResultCache.set(key, dataType, UNDEFINED);

 					// prepare EquationColumnLib static parameter before calling the compiled equation
 					EquationColumnLib.currentRecordKey = key;
@@ -351,7 +352,7 @@
 					{
 						value = compiledEquation.apply(this, arguments);
 						if (debug)
-							trace(this,key.localName,value);
+							trace(this,key.localName,dataType,value);
 					}
 					catch (e:Error)
 					{
@@ -364,7 +365,7 @@
 					}

 					// save value in cache
-					_equationResultCache[key] = value;
+					_equationResultCache.set(key, dataType, value);
 					//trace('('+equation.value+')@"'+key+'" = '+value);
 				}
 				else if (value === UNDEFINED)


Update menuColourIdiomes.as

Update menuColourIdiomes.as

--- com/segonquart/menuColourIdiomes.as
+++ com/segonquart/menuColourIdiomes.as
@@ -19,7 +19,7 @@

 		}

-		private function mOver():Void
+		private function mOver()

 		{

@@ -27,7 +27,7 @@

 		}

-		private function mOut():Void
+		private function mOut()

 		{


Transferred from the Adobe Open Source Subversion Repository

Revision: 23246
Author:   cframpto@adobe.com
Date:     2011-12-20T17:40:08.069454Z

Log Message:
-----------
Rollback 23243.  If comment followed header it was stripped as well.

Modified Paths:
--------------
2361 paths were modified

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

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

 package mx.charts.series
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 23246
Author:   cframpto@adobe.com
Date:     2011-12-20T17:40:08.069454Z

Log Message:
-----------
Rollback 23243.  If comment followed header it was stripped as well.

Modified Paths:
--------------
2361 paths were modified

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

--- frameworks/projects/framework/src/mx/collections/SortField.as
+++ frameworks/projects/framework/src/mx/collections/SortField.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2005-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 mx.collections
 {


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

--- frameworks/projects/mx/src/mx/containers/FormItemDirection.as
+++ frameworks/projects/mx/src/mx/containers/FormItemDirection.as
@@ -17,6 +17,11 @@
  *  for the direction property of the FormItem class.
  *
  *  @see mx.containers.FormItem
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public final class FormItemDirection
 {
@@ -31,12 +36,22 @@
     /**
      *  Specifies that the children of the FormItem container
      *  are laid out horizontally.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static const HORIZONTAL:String = "horizontal";

     /**
      *  Specifies that the children of the FormItem container
      *  are laid out vertically.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static const VERTICAL:String = "vertical";
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 14869
Author:   cframpto@adobe.com
Date:     2010-03-19T02:24:27.434644Z

Log Message:
-----------
Merge mirroring changes 14728-14730, 14772-14775, 14806 from 4.x to trunk.

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/MenuBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/HScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/mx/core/UIFTETextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/PopUpAnchor.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/airspark/src/spark/components/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Menu.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/CheckBoxSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VSlider.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ColorPicker.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/sliderClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/CheckBoxSkin.mxml</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/dataGridClasses/DataGridHeader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Scroller.as</path>

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

--- frameworks/projects/spark/src/spark/components/PopUpAnchor.as
+++ frameworks/projects/spark/src/spark/components/PopUpAnchor.as
@@ -22,6 +22,7 @@
 import flash.geom.Rectangle;

 import mx.core.IFlexDisplayObject;
+import mx.core.LayoutDirection;
 import mx.core.UIComponent;
 import mx.core.mx_internal;
 import mx.managers.PopUpManager;
@@ -458,7 +459,7 @@
         // If we're mirroring, then the implicit assumption that x=left will fail,
         // so we compensate here.

-        if (layoutDirection == "rtl")
+        if (layoutDirection == LayoutDirection.RTL)
             regPoint.x += popUpBounds.width;
         return MatrixUtil.getConcatenatedComputedMatrix(this).transformPoint(regPoint);
     }


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

--- frameworks/projects/spark/src/spark/components/RadioButton.as
+++ frameworks/projects/spark/src/spark/components/RadioButton.as
@@ -0,0 +1,37 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2008 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package flex.component
+{
+
+/**
+ *  Documentation is not currently available.
+ */
+public class RadioButton extends ToggleButton
+{
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     */
+	public function RadioButton()
+	{
+		super();
+	}
+}
+
+}


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

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

-package mx.components
+package spark.components
 {
 import flash.display.DisplayObject;
 import flash.events.Event;
@@ -17,7 +17,7 @@
 import flash.events.MouseEvent;
 import flash.ui.Keyboard;

-import mx.components.baseClasses.ToggleButtonBase;
+import spark.components.supportClasses.ToggleButtonBase;
 import mx.core.IFlexDisplayObject;
 import mx.core.UIComponent;
 import mx.core.mx_internal;
@@ -48,22 +48,22 @@
 //  Other metadata
 //--------------------------------------

-[IconFile("FxRadioButton.png")]
+[IconFile("RadioButton.png")]

 /**
- *  The FxRadioButton control lets the user make a single choice
+ *  The RadioButton control lets the user make a single choice
  *  within a set of mutually exclusive choices.
- *  A FxRadioButton group is composed of two or more FxRadioButton controls
+ *  A RadioButton group is composed of two or more RadioButton controls
  *  with the same groupName property.
- *  The FxRadioButton group can refer to a group created by the
- *  <mx:FxRadioButtonGroup> tag.
+ *  The RadioButton group can refer to a group created by the
+ *  <mx:RadioButtonGroup> tag.
  *  The user selects only one member of the group at a time.
  *  Selecting an unselected group member deselects the currently selected
- *  FxRadioButton control within that group.
+ *  RadioButton control within that group.
  *
- *
The FxRadioButton control has the following default characteristics:

+ *
The RadioButton control has the following default characteristics:

  *

  *

  *           Characteristic
@@ -85,24 +85,24 @@
  *
  *  @mxml
  *
- *
The <mx:FxRadioButton> tag inherits all of the tag
+ *
The <mx:RadioButton> tag inherits all of the tag
  *  attributes of its superclass, and adds the following tag attributes:

  *
  *

- *  <mx:FxRadioButton
+ *  <mx:RadioButton
  *    Properties
  *    groupName=""
  *  />
  *

  *
- *  @see mx.components.FxRadioButtonGroup
+ *  @see mx.components.RadioButtonGroup
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
  *  @productversion Flex 4
  */
-public class FxRadioButton extends ToggleButtonBase implements IFocusManagerGroup
+public class RadioButton extends ToggleButtonBase implements IFocusManagerGroup
 {
     include "../core/Version.as";

@@ -120,7 +120,7 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    public function FxRadioButton()
+    public function RadioButton()
     {
         super();

@@ -145,14 +145,14 @@

     /**
      *  @private
-     *  The FxRadioButtonGroup that this radio button is in.  The group property
+     *  The RadioButtonGroup that this radio button is in.  The group property
      *  should not be used to keep track of the radio button group for this radio
      *  button.  During state transitions, the radio button may come
      *  and go from the group and the group property is not reset.  The group
      *  property, if initially set, is needed when the radio button is readded
      *  to the group.
      */
-    mx_internal var radioButtonGroup:FxRadioButtonGroup = null;
+    mx_internal var radioButtonGroup:RadioButtonGroup = null;

     //--------------------------------------------------------------------------
     //
@@ -174,16 +174,16 @@
      *  @private
      *  Storage for the group property.
      */
-    private var _group:FxRadioButtonGroup;
-
-    /**
-     *  The FxRadioButtonGroup object to which this FxRadioButton belongs.
-     *  When creating radio buttons to put in a FxRadioButtonGroup, it is
+    private var _group:RadioButtonGroup;
+
+    /**
+     *  The RadioButtonGroup object to which this RadioButton belongs.
+     *  When creating radio buttons to put in a RadioButtonGroup, it is
      *  advisable to use group for all of the buttons or groupName for all of
      *  the buttons.  The groupName will be set to the generated name of the
-     *  FxRadioButtonGroup object.
+     *  RadioButtonGroup object.
      *
-     *  @default the default FxRadioButtonGroup
+     *  @default the default RadioButtonGroup
      *  @see #groupName
      *
      *  @langversion 3.0
@@ -191,7 +191,7 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    public function get group():FxRadioButtonGroup
+    public function get group():RadioButtonGroup
     {
         // Debugger asks too soon.
         if (!document)
@@ -203,10 +203,10 @@
             // group until it is first accessed.
             if (groupName && groupName != "")
             {
-                var g:FxRadioButtonGroup;
+                var g:RadioButtonGroup;
                 try
                 {
-                    g = FxRadioButtonGroup(document[groupName]);
+                    g = RadioButtonGroup(document[groupName]);
                 }
                 catch(e:Error)
                 {
@@ -216,19 +216,19 @@
                     if (document.mx_internal::automaticRadioButtonGroups &&
                         document.mx_internal::automaticRadioButtonGroups[autoGroupIndex])
                     {
-                        g = FxRadioButtonGroup(
+                        g = RadioButtonGroup(
                             document.mx_internal::automaticRadioButtonGroups[autoGroupIndex]);
                     }
                 }
                 if (!g)
                 {
-                    g = new FxRadioButtonGroup(IFlexDisplayObject(document));
+                    g = new RadioButtonGroup(IFlexDisplayObject(document));

                     if (!document.mx_internal::automaticRadioButtonGroups)
                         document.mx_internal::automaticRadioButtonGroups = [];
                     document.mx_internal::automaticRadioButtonGroups[autoGroupIndex] = g;
                 }
-                else if (!(g is FxRadioButtonGroup))
+                else if (!(g is RadioButtonGroup))
                 {
                     return null;
                 }
@@ -243,7 +243,7 @@
     /**
      *  @private
      */
-    public function set group(value:FxRadioButtonGroup):void
+    public function set group(value:RadioButtonGroup):void
     {
         if (_group == value)
             return;
@@ -258,7 +258,7 @@
         // default group so this button will move back to that group.
         _groupName = value ? group.mx_internal::name : "radioGroup";

-        // Make sure this gets added to it's FxRadioButtonGroup
+        // Make sure this gets added to it's RadioButtonGroup
         groupChanged = true;

         invalidateProperties();
@@ -283,15 +283,15 @@
     [Inspectable(category="General", defaultValue="radioGroup")]

     /**
-     *  Specifies the name of the group to which this FxRadioButton control belongs, or
-     *  specifies the value of the id property of a FxRadioButtonGroup control
-     *  if this FxRadioButton is part of a group defined by a FxRadioButtonGroup control.
+     *  Specifies the name of the group to which this RadioButton control belongs, or
+     *  specifies the value of the id property of a RadioButtonGroup control
+     *  if this RadioButton is part of a group defined by a RadioButtonGroup control.
      *  All radio buttons with the same groupName will be in the same tab group
      *  even if they belong to different radio button groups.  When creating
-     *  radio buttons to put in a FxRadioButtonGroup, it is advisable to
+     *  radio buttons to put in a RadioButtonGroup, it is advisable to
      *  use group for all of the buttons or groupName for all of the buttons.
      *
-     *  @default "FxRadioButtonGroup_number" where number is an integer greater
+     *  @default "RadioButtonGroup_number" where number is an integer greater
      *  than or equal to 0.
      *  @see #group
      *
@@ -323,7 +323,7 @@
         // Make sure get group recalculates the group.
         _group = null;

-        // Make sure this gets added to it's FxRadioButtonGroup
+        // Make sure this gets added to it's RadioButtonGroup
         groupChanged = true;

         invalidateProperties();
@@ -362,7 +362,7 @@

     /**
      *  Optional user-defined value
-     *  that is associated with a FxRadioButton control.
+     *  that is associated with a RadioButton control.
      *
      *  @default null
      *
@@ -447,9 +447,9 @@
      *  Create radio button group if it does not exist
      *  and add the instance to the group.
      */
-    private function addToGroup():FxRadioButtonGroup
+    private function addToGroup():RadioButtonGroup
     {
-        var g:FxRadioButtonGroup = group; // Trigger getting the group
+        var g:RadioButtonGroup = group; // Trigger getting the group
         if (g)
             g.mx_internal::addInstance(this);

@@ -466,8 +466,8 @@

         // It's possible that the radio button was in the auto group.  If so,
         // delete the group if there are no other radio buttons still in it.
-        // The radio button also could have been in an explicit FxRadioButtonGroup
-        // specified via group or in a FxRadioButtonGroup that was in the document,
+        // The radio button also could have been in an explicit RadioButtonGroup
+        // specified via group or in a RadioButtonGroup that was in the document,
         // specified by groupName.
         try
         {
@@ -487,7 +487,7 @@
      */
     private function setPrev(moveSelection:Boolean = true):void
     {
-        var g:FxRadioButtonGroup = group;
+        var g:RadioButtonGroup = group;

         var fm:IFocusManager = focusManager;
         if (fm)
@@ -495,7 +495,7 @@

         for (var i:int = 1; i <= mx_internal::indexNumber; i++)
         {
-            var radioButton:FxRadioButton =
+            var radioButton:RadioButton =
                     g.getRadioButtonAt(mx_internal::indexNumber - i);
             if (radioButton && isRadioButtonEnabled(radioButton))
             {
@@ -518,7 +518,7 @@
      */
     private function setNext(moveSelection:Boolean = true):void
     {
-        var g:FxRadioButtonGroup = group;
+        var g:RadioButtonGroup = group;

         var fm:IFocusManager = focusManager;
         if (fm)
@@ -526,7 +526,7 @@

         for (var i:int = mx_internal::indexNumber + 1; i < g.numRadioButtons; i++)
         {
-            var radioButton:FxRadioButton = g.getRadioButtonAt(i);
+            var radioButton:RadioButton = g.getRadioButtonAt(i);
             if (radioButton && isRadioButtonEnabled(radioButton))
             {
                 if (moveSelection)
@@ -547,7 +547,7 @@
      *  a radio button that's not enabled because it's in a different
      *  container that isn't enabled.
      */
-    private function isRadioButtonEnabled(rb:FxRadioButton):Boolean
+    private function isRadioButtonEnabled(rb:RadioButton):Boolean
     {
         if (!rb.enabled)
             return false;
@@ -575,7 +575,7 @@
         if (!mx_internal::radioButtonGroup)
             addToGroup();

-        var g:FxRadioButtonGroup = group;
+        var g:RadioButtonGroup = group;
         if (g.selection != this)
             g.mx_internal::setSelection(this);
     }
@@ -707,7 +707,7 @@

         group.mx_internal::setSelection(this);

-        // Dispatch an itemClick event from the FxRadioButtonGroup.
+        // Dispatch an itemClick event from the RadioButtonGroup.
         var itemClickEvent:ItemClickEvent =
             new ItemClickEvent(ItemClickEvent.ITEM_CLICK);
         itemClickEvent.label = label;