Transferred from the Adobe Open Source Subversion Repository

Revision: 19328
Author:   mhorn@adobe.com
Date:     2010-12-13T20:45:00.405533Z

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/MobileSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextInputSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/NavigationAngledButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/VScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/VScrollBarThumbSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/TextSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TabbedViewNavigatorApplicationSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderDataTip.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderTrackSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ActionBarButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/SelectableButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/CheckBoxSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TabbedViewNavigatorSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderThumbSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/RadioButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HScrollBarThumbSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/NavigationButtonSkin.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ActionBarButtonSkinBase.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ActionBarButtonSkinBase.as
@@ -49,6 +49,15 @@
     //  Constructor
     //
     //--------------------------------------------------------------------------
+    /**
+     *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     *
+     */
     public function ActionBarButtonSkinBase()
     {
         super();
@@ -117,6 +126,9 @@
     //
     //--------------------------------------------------------------------------

+    /**
+     *  @private
+     */
     override protected function measure():void
     {
         super.measure();


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

TabbedViewNavigator
No longer dispatches complete, instead dispatches IndexChangeEvent.CHANGE

ViewProxy
ViewProxy renamed to ViewDescriptor
persistedData renamed to persistenceData

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/core/ContainerDestructionPolicy.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/View.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/MobileApplication.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewReturnObject.as</path>
<path kind="dir" action="M">/private/flex/sdk/branches/hero_private</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/TabbedMobileApplication.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/defaults.css</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/NavigationStack.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewNavigatorSkin.as</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewProxy.as" copyfrom-rev="18044" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewDescriptor.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/events/FlexEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewProxy.as</path>

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

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

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

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

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


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

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

--- frameworks/projects/automation_dmv/src/mx/automation/delegates/charts/LineSeriesAutomationImpl.as
+++ frameworks/projects/automation_dmv/src/mx/automation/delegates/charts/LineSeriesAutomationImpl.as
@@ -0,0 +1,144 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2009 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.automation.delegates.charts
+{
+	import flash.display.DisplayObject;
+	import flash.geom.Point;
+
+	import mx.automation.Automation;
+	import mx.charts.ChartItem;
+	import mx.charts.series.LineSeries;
+	import mx.core.IFlexDisplayObject;
+	import mx.charts.series.items.LineSeriesItem;
+
+	[Mixin]
+	/**
+	 *
+	 *  Defines the methods and properties required to perform instrumentation for the
+	 *  LineSeries class.
+	 *
+	 *  @see mx.charts.series.LineSeries
+	 *
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public class LineSeriesAutomationImpl extends SeriesAutomationImpl
+	{
+		include "../../../core/Version.as";
+
+		//--------------------------------------------------------------------------
+		//
+		//  Class methods
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  Registers the delegate class for a component class with automation manager.
+		 *
+		 *  @param root The SystemManger of the application.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public static function init(root:DisplayObject):void
+		{
+			Automation.registerDelegateClass(LineSeries, LineSeriesAutomationImpl);
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Constructor
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  Constructor.
+		 *  @param obj LineSeries object to be automated.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public function LineSeriesAutomationImpl(obj:LineSeries)
+		{
+			super(obj);
+
+			lineSeries = obj;
+		}
+
+
+		/**
+		 *  @private
+		 */
+		private var lineSeries:LineSeries;
+
+		//--------------------------------------------------------------------------
+		//
+		//  Overridden properties
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  @private
+		 */
+		override public function get automationName():String
+		{
+			var name:Array = [] ;
+			if (lineSeries.xField)
+				name.push(lineSeries.xField);
+			if (lineSeries.yField)
+				name.push(lineSeries.yField);
+
+			if (name.length)
+				return name.join("|");
+
+			return super.automationName;
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Overridden methods
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  @private
+		 */
+		override protected function getChartItemLocation(item:ChartItem):Point
+		{
+			if (item is LineSeriesItem)
+			{
+				var aItem:LineSeriesItem = item as LineSeriesItem;
+
+				// chart edge points are not getting picked without -1.
+				// (dataRegion containment check fails)
+				var x:int = aItem.x-1;
+				var y:int = aItem.y;
+
+				var p:Point = new Point(x,y);
+				p = lineSeries.localToGlobal(p);
+				p = lineSeries.owner.globalToLocal(p);
+				return p;
+			}
+
+			return super.getChartItemLocation(item);
+		}
+
+	}
+
+}


def: 6866 draw bitmap data only for mixes.

--- plugins/captureThumbnailPlugin/src/com/kaltura/kdpfl/plugin/component/CaptureThumbnailMediator.as
+++ plugins/captureThumbnailPlugin/src/com/kaltura/kdpfl/plugin/component/CaptureThumbnailMediator.as
@@ -77,20 +77,19 @@
 						else
 							return; //can't capture the player if the view is unreachable

-
-						var videoWidth : Number = playerView["videoWidth"];
-						var videoHeight : Number = playerView["videoHeight"]
-
-						bitmapData  = new BitmapData( videoWidth  , videoHeight , false , 0x000000);
-						var a : Number = videoWidth/(playerView.width/playerView.scaleX); // videoWidth/unscaledWidth
-						var d : Number = videoHeight/(playerView.height/playerView.scaleY);// videoHeight/unscaledHeight
-						var matrix : Matrix = new Matrix( a , 0 , 0 , d );
-						bitmapData.draw( playerView , matrix , null , null, null , true);
-				        var encoder : JPGEncoder = new JPGEncoder(85);
-						var thumbnail : ByteArray = encoder.encode( bitmapData );
 						var updateThumbnailJpeg : KalturaCall;
 						if (mediaProxy.vo.entry is KalturaMixEntry)
 						{
+							var videoWidth : Number = playerView["videoWidth"];
+							var videoHeight : Number = playerView["videoHeight"]
+
+							bitmapData  = new BitmapData( videoWidth  , videoHeight , false , 0x000000);
+							var a : Number = videoWidth/(playerView.width/playerView.scaleX); // videoWidth/unscaledWidth
+							var d : Number = videoHeight/(playerView.height/playerView.scaleY);// videoHeight/unscaledHeight
+							var matrix : Matrix = new Matrix( a , 0 , 0 , d );
+							bitmapData.draw( playerView , matrix , null , null, null , true);
+							var encoder : JPGEncoder = new JPGEncoder(85);
+							var thumbnail : ByteArray = encoder.encode( bitmapData );
 							updateThumbnailJpeg  = new ThumbAssetAddFromImage (mediaProxy.vo.entry.id, thumbnail);
 						}
 						else
@@ -119,7 +118,8 @@
 			sendNotification("thumbnailSaved");
 			sendNotification( NotificationType.REMOVE_ALERTS );
 			AlertManager.showButtonIfEmpty = true;
-			bitmapData.dispose();
+			if (bitmapData)
+				bitmapData.dispose();
 			if ((viewComponent as captureThumbnailPluginCode).shouldSetAsDefault == "true")
 			{
 				var servicesProxy : Object =  facade.retrieveProxy("servicesProxy");


Transferred from the Adobe Open Source Subversion Repository

Revision: 8
Author:   open-source-svn-admin@adobe.com
Date:     2007-12-15T01:49:31.087529Z

Log Message:
-----------
The beginning of the open-source Flex SDK.

Populated the flex/sdk/trunk directory with an open-source subset of files from //depot/flex/sdk/...@191097 in the Faramir Perforce server. This changelist is a bit past the 3.0rc0 build.

The Ant scripts will not successfully build yet. They need to be adapted to the open-source subset.

Modified Paths:
--------------
2532 paths were modified

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

--- frameworks/projects/airframework/src/mx/skins/halo/ApplicationTitleBarBackgroundSkin.as
+++ frameworks/projects/airframework/src/mx/skins/halo/ApplicationTitleBarBackgroundSkin.as
@@ -0,0 +1,76 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.skins.halo
+{
+
+import mx.skins.ProgrammaticSkin;
+import mx.styles.StyleManager;
+
+/**
+ *  The skin for the TitleBar of a WindowedApplication or Window.
+ */
+public class ApplicationTitleBarBackgroundSkin extends ProgrammaticSkin
+{
+    include "../../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Constructor.
+	 */
+	public function ApplicationTitleBarBackgroundSkin()
+	{
+		super();
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden methods: Programmatic Skin
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	override protected function updateDisplayList(unscaledWidth:Number,
+									  			  unscaledHeight:Number):void
+	{
+		super.updateDisplayList(unscaledWidth, unscaledHeight);
+
+		var cornerRadius:Number = getStyle("cornerRadius");
+		var titleBarColors:Array = getStyle("titleBarColors");
+		StyleManager.getColorNames(titleBarColors);
+		graphics.clear();
+		drawRoundRect(
+			0, 0, unscaledWidth, unscaledHeight, {tl: cornerRadius,
+			tr: cornerRadius, bl: 0, br: 0},
+			titleBarColors, [ 1.0, 1.0 ],
+			verticalGradientMatrix(0, 0, unscaledWidth, unscaledHeight));
+		graphics.lineStyle(1, 0xFFFFFF, 0.2);
+		graphics.moveTo(0, unscaledHeight - 1);
+		graphics.lineTo(0, cornerRadius);
+		graphics.curveTo(0, 0, cornerRadius, 0);
+		graphics.lineTo(unscaledWidth-1 - cornerRadius, 0);
+		graphics.curveTo(unscaledWidth-1, 0, unscaledWidth - 1, cornerRadius);
+		graphics.lineTo(unscaledWidth-1, unscaledHeight - 1);
+		graphics.moveTo(0, unscaledHeight - 1);
+		graphics.lineStyle(1, 0x000000, 0.35);
+		graphics.lineTo(unscaledWidth, unscaledHeight - 1);
+
+	}
+}
+
+}


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

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

 package mx.automation.tabularData
 {


check IndexStream.length in IndexStream.invalidate() in order to fail early

--- src/aerys/minko/render/geometry/stream/IndexStream.as
+++ src/aerys/minko/render/geometry/stream/IndexStream.as
@@ -61,6 +61,9 @@
 		{
 			_data.position = 0;
 			_length = _data.length >>> 1;
+
+            if (_length % 3 != 0)
+                throw new Error('Invalid size');

 			if (!_locked)
 				_changed.execute(this);
@@ -84,7 +87,7 @@
 				if (length == 0)
 					length = data.bytesAvailable;
 				if (length % 6 != 0)
-					throw new Error();
+					throw new Error('Invalid size');

 				data.readBytes(_data, 0, length);
 			}


Add static properties to CloneableSubclass.

--- dolly-framework/src/test/resources/dolly/data/CloneableSubclass.as
+++ dolly-framework/src/test/resources/dolly/data/CloneableSubclass.as
@@ -2,6 +2,10 @@

 [Cloneable]
 public class CloneableSubclass extends CloneableClass {
+
+	public static var staticProperty1:String;
+	public static var staticProperty2:String;
+	public static var staticProperty3:String;

 	private var _writableField2:String;


Transferred from the Adobe Open Source Subversion Repository

Revision: 15087
Author:   deeptika@adobe.com
Date:     2010-03-29T07:19:07.418097Z

Log Message:
-----------
Merging revision 14933 from 4.x branch
Drag proxy should be stored always irrespective of whether drag is started in root application or not. However proxy is stored in the automation manager of the root app and root will return the proxy when it is asked for.
Fix: Earlier we were storing the proxy only if the application that initiated the application is root. Removed that check now.
QE notes:
Doc notes:
Bugs: FLEXENT-1244 (Main app loads sub app1 in same app domain which loads sub app2 in different app domain drag and drop of list from sub app1 to sub app2 does not get replayed)
Reviewer: Rani
Tests run: checkintests
Is noteworthy for integration:

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation/src/mx/automation/delegates/DragManagerAutomationImpl.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>

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

--- frameworks/projects/automation/src/mx/automation/delegates/DragManagerAutomationImpl.as
+++ frameworks/projects/automation/src/mx/automation/delegates/DragManagerAutomationImpl.as
@@ -17,10 +17,11 @@
 	import flash.events.IEventDispatcher;
 	import flash.events.MouseEvent;
 	import flash.geom.Point;
-	import flash.utils.*;
+	import flash.utils.*;

 	import mx.automation.Automation;
 	import mx.automation.AutomationHelper;
+	import mx.automation.AutomationManager;
 	import mx.automation.IAutomationManager;
 	import mx.automation.IAutomationObject;
 	import mx.automation.IAutomationObjectHelper;
@@ -35,9 +36,9 @@
 	import mx.events.DragEvent;
 	import mx.events.InterManagerRequest;
 	import mx.managers.DragManager;
+	import mx.managers.IMarshalSystemManager;
 	import mx.managers.ISystemManager;
 	import mx.managers.dragClasses.DragProxy;
-	import mx.automation.AutomationManager;

 	// for air

@@ -109,8 +110,11 @@
 		public function DragManagerAutomationImpl(proxy:UIComponent)
 		{
 			super(proxy);
-			if(sm.getSandboxRoot() == sm)
-				Automation.automationManager2.storeDragProxy(proxy);
+			//if(sm.getSandboxRoot() == sm)
+			/* This check is not needed because, though we store the proxy in the root, we can trigger
+			the storage from any sub application. But while retrieving, we should ask only the root app
+			to give the proxy. http://bugs.adobe.com/jira/browse/FLEXENT-1244*/
+			Automation.automationManager2.storeDragProxy(proxy);
 		}

 		//--------------------------------------------------------------------------
@@ -871,6 +875,7 @@
 					if (rootSm )
 					{
 						rootSm.addEventListener(MarshalledAutomationEvent.DRAG_DROP_PROXY_RETRIEVE_REPLY, proxyRetrieveReplyHandler);
+
 						var dragProxyRetrievalRequestMarshalEvent:MarshalledAutomationEvent
 						= new MarshalledAutomationEvent(MarshalledAutomationEvent.DRAG_DROP_PROXY_RETRIEVE_REQUEST);
 						_inDragProxyRequestProcessing = true;


Transferred from the Adobe Open Source Subversion Repository

Revision: 18357
Author:   jasonsj@adobe.com
Date:     2010-10-28T22:43:40.124825Z

Log Message:
-----------
Mobile Theme feature work:
Implemented borderVisible and prompt for mobile TextInputSkin
Fixed focus exclusions for CheckBox and RadioButton
Fixed promptDisplay bug in TextInput
Moved textShadowAlpha and textShadowColor to BasicInheritingTextStyles from ActionBar and Button
Added leading and letterSpacing to BasicInheritingTextStyles

QE notes: Update mustella bitmaps for Button and RadioButton
Doc notes:
Bugs:
SDK-28239 Fixed visuals for Button and RadioButton skin
Reviewer: gruehle, aharui
Tests run: checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/RadioButton_up.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/Button_down.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/MobileSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/defaults.css</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Button.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextInputSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/RadioButton_upSelected.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/styles/metadata/StyleableTextFieldTextStyles.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/Button_up.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/RadioButton_down.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/styles/metadata/BasicInheritingTextStyles.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/CheckBoxSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ActionBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/RadioButton_downSelected.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/CheckBox_up.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/RadioButtonSkin.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ButtonSkinBase.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ButtonSkinBase.as
@@ -99,7 +99,7 @@
      */
     public var labelDisplay:StyleableTextField;

-    protected var labelDisplayShadow:StyleableTextField;
+    public var labelDisplayShadow:StyleableTextField;

     /**
      *  If true, then create the iconDisplay using the icon style


Transferred from the Adobe Open Source Subversion Repository

Revision: 23247
Author:   cframpto@adobe.com
Date:     2011-12-20T19:21:13.134833Z

Log Message:
-----------
Remove ADOBE SYSTEMS license and replace with Apache license in headers - frameworks.  A 2nd pass will be needed to get the files not handled up by the scripts.

Modified Paths:
--------------
4959 paths were modified

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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 13666
Author:   jimurphy@adobe.com
Date:     2010-01-20T19:05:30.983340Z

Log Message:
-----------
Merge /branches/4.0.0 revs 13595,13601,13613,13614,13615,13616,13619,13638,13644,13646,13647,13652,13653,13654,13665 -> trunk

checkintests pass

4.0.0 changes:
------------------------------------------------------------------------
r13665 | jimurphy@adobe.com

remove the call to clean-temp before the package staging starts.  Removing the temp directory before the copy was removing the config updates that happen before this target is called.
SDK-25160

------------------------------------------------------------------------
r13595 | jimurphy@adobe.com | 2010-01-18 18:24:33 -0500 (Mon, 18 Jan 2010) | 15 lines

split airframework from airspark docs
-delete airframework/bundles/[locale]/docs/spark xml's
-add airspark/bundles/[locale]/docs/spark xml's
-added airspark/bundles/en_US/ english properties
-modified airspark/build to:
  -use en_US properties for each of the locales until localized
  -use the localized spark doc files for each locale in the fat-swc target

SDK-25065
------------------------------------------------------------------------

------------------------------------------------------------------------
r13601 | preilly@adobe.com | 2010-01-18 19:54:16 -0500 (Mon, 18 Jan 2010) | 25 lines

* Fixed a regression caused by revision 13531.

SDK-25115 Code-level description of changes:

  StyleDef.java

    Modified extractImports() by adding a "null" value check for
    ClassReferences.

    Modified processReference() to use Reference's updated
    constructor.

  Reference.java

    Modified constructor by adding a isClassReference parameter.

    Removed setClassReference(), because it's no longer used.

------------------------------------------------------------------------

------------------------------------------------------------------------
r13613 | jimurphy@adobe.com | 2010-01-18 22:23:05 -0500 (Mon, 18 Jan 2010) | 14 lines

Integration:
from branch: releases/ct/yuki/sonoma/...
afe.jar: 62.418002
rideau.jar: 62.417355

https://bugs.adobe.com/jira/browse/SDK-25018
SDK-25018 https://bugs.adobe.com/jira/browse/SDK-25012
SDK-25012
------------------------------------------------------------------------

------------------------------------------------------------------------
r13614 | jimurphy@adobe.com | 2010-01-18 22:56:49 -0500 (Mon, 18 Jan 2010) | 9 lines

additional update for airspark, added packages.dita to svn and instead of unzipping properties from airspark_rb the locales will simply use the files from the en_US directory until the localized files are submitted.

SDK-25065
------------------------------------------------------------------------

------------------------------------------------------------------------
r13615 | jimurphy@adobe.com | 2010-01-18 23:59:14 -0500 (Mon, 18 Jan 2010) | 12 lines

fix airframework/build.xml so the en_US _rb does not become corrupt when the other.locales target is run.
-removed the redundant en_US call in the other.locales target
-added a clean for locales that will only remove the locale being built before rebuild - not all of the locales
-add updated dita that does not contain spark references

------------------------------------------------------------------------

------------------------------------------------------------------------
r13616 | rfrishbe@adobe.com | 2010-01-19 00:01:44 -0500 (Tue, 19 Jan 2010) | 10 lines

Fixing a VideoPlayer bug, SDK-25116 (When switching the video source while another video is loading, the switch doesn't always work).  It's similar to SDK-24933.  In the previous fix, we cleaned up the asynchronous load when we decided we wanted to just play the video.  However, we should also clean up this asynchronous load when the source changes.  This code could be refactored later, and I put a TODO in for that.
SDK-25116 SDK-24933
Also, I'm cleaning up some docs around some scenarios when the source is switched that explicitly won't work.  At some point, we could make these work, but I don't think it's worth the extra effort/code given how likely these are that a developer or user would run in to them.

SDK-25116
------------------------------------------------------------------------

------------------------------------------------------------------------
r13619 | egeorgie@adobe.com | 2010-01-19 01:23:05 -0500 (Tue, 19 Jan 2010) | 11 lines

Fix bug: Scaling a DateChooser inside a Canvas causes RTE http://bugs.adobe.com/jira/browse/SDK-25087
SDK-25087
The offending code was in the PostScaleAdapter - missing check for zero when dividing by the scale.

SDK-25087
------------------------------------------------------------------------

------------------------------------------------------------------------
r13638 | jimurphy@adobe.com | 2010-01-19 17:51:32 -0500 (Tue, 19 Jan 2010) | 14 lines

update to ensure fat-swcs contain a proper packages.dita file.
-removed all packages.dita files from all langs where it was checked in
-at the end of asdoc task we now copy the packages.dita out to the en_US project dir being built.  This is where the fat-swc task will pick up this file and place it in the docs directory of the _rb.swc
-had to change the order of the build process slightly - old order: ant clean main other.locales doc - new order: ant clean main doc other.locales
 - I removed other.locales from main in the root/build.xml and made it it's own task and also removed the property locales.  so to build other.locales, the doc target needs to run first (will add a depends at some point).
 -in the internal build.xml I have changed to use the new order

------------------------------------------------------------------------

------------------------------------------------------------------------
r13644 | jimurphy@adobe.com | 2010-01-19 18:55:59 -0500 (Tue, 19 Jan 2010) | 11 lines

fix the build.
-make sure the bundles do not get deleted before they are about to be updated, this holds especially true for swcs we are checking in
-make sure we don't try and rebuild osmf.swc as it should not change b/c it is in src

------------------------------------------------------------------------

------------------------------------------------------------------------
r13646 | jimurphy@adobe.com | 2010-01-19 19:29:21 -0500 (Tue, 19 Jan 2010) | 8 lines

fix the build take 2  Don't call other.locales for osmf since there aren't any other locales to build - I am hoping this is why the osmf_rb is losing the catalog

------------------------------------------------------------------------

------------------------------------------------------------------------
r13647 | jimurphy@adobe.com | 2010-01-19 20:04:22 -0500 (Tue, 19 Jan 2010) | 8 lines

this should actually fix the build - call the modified main target to call the bundle task for osmf and actually make the call from frameworks/build.xml

------------------------------------------------------------------------

------------------------------------------------------------------------
r13652 | rfrishbe@adobe.com | 2010-01-19 21:31:18 -0500 (Tue, 19 Jan 2010) | 8 lines

Fixing an MX TextArea bug.  It's caused by MX ScrollControlBase pushing the enabled property down in to the BorderSkin and also caused by some enabled/alpha issues in GroupBase.  For now, we're fixing the ScrollControlBase issue and no longer pushing the enabled property down in to the skin.

SDK-25109
------------------------------------------------------------------------

------------------------------------------------------------------------
r13653 | jimurphy@adobe.com | 2010-01-19 22:12:19 -0500 (Tue, 19 Jan 2010) | 11 lines

fix airspark_rb so it is localized properly.
-point to framework/bundles/[locale] localized files instead of using the english files we had in arispark
-remove en_US property files from airspark

------------------------------------------------------------------------

------------------------------------------------------------------------
r13654 | aharui@adobe.com | 2010-01-19 23:44:34 -0500 (Tue, 19 Jan 2010) | 8 lines

Replace an IPE defense I took out in svn 10058

SDK-25081
------------------------------------------------------------------------

Modified Paths:
--------------
104 paths were modified

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

--- frameworks/projects/mx/src/mx/controls/listClasses/ListBase.as
+++ frameworks/projects/mx/src/mx/controls/listClasses/ListBase.as
@@ -1788,8 +1788,9 @@
         listContent.bottomOffset = (offscreenExtraRowsBottom > 0) ?
             listItems[listItems.length-1][0].y + rowHeight - oldContentHeight + listContent.topOffset :
             0;
-
-        iterator.seek(cursorPos, 0);
+
+        if (iteratorValid)
+            iterator.seek(cursorPos, 0);

         // make sure list content is moved to the appropriate place.
         // might be able to optimize and not do this every time


Transferred from the Adobe Open Source Subversion Repository

Revision: 23247
Author:   cframpto@adobe.com
Date:     2011-12-20T19:21:13.134833Z

Log Message:
-----------
Remove ADOBE SYSTEMS license and replace with Apache license in headers - frameworks.  A 2nd pass will be needed to get the files not handled up by the scripts.

Modified Paths:
--------------
4959 paths were modified

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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 2246
Author:   jimurphy@adobe.com
Date:     2008-06-26T14:32:58.899755Z

Log Message:
-----------
Merged 3.0.x revisions [2190,2200,2206,2209-2210,2215,2218,2225,2245] -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/build.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/templates/html-templates/client-side-detection-with-history/history/history.js</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/templates/html-templates/no-player-detection-with-history/history/history.js</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/javascript/FABridge/samples/srcview/source/fabridge/javascript/FABridge.js</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools_en.properties</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/javascript/FABridge/src/bridge/FABridge.js</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/CursorManagerImpl.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/templates/html-templates/express-installation-with-history/history/history.js</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/videoClasses/VideoPlayer.as</path>

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

--- frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as
+++ frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as
@@ -135,16 +135,18 @@
      */
 	private var listenForContextMenu:Boolean = false;

-    /**
-     *  @private
-     */
-    private var overTextField:Boolean = false;
-
-    /**
-     *  @private
-     */
-    private var overLink:Boolean = false;
-
+    /*******************************************************************
+     * Regarding overTextField, showSystemCursor, and showCustomCursor:
+     *    Don't modify or read these variables unless you are certain
+     *    you will not create race conditions. E.g. you may get the
+     *    wrong (or no) cursor, and get stuck in an inconsistent state.
+     */
+
+    /**
+     *  @private
+     */
+     private var overTextField:Boolean = false;
+
     /**
      *  @private
      */
@@ -154,6 +156,8 @@
      *  @private
      */
     private var showCustomCursor:Boolean = false;
+
+    /*******************************************************************/

     /**
      *  @private
@@ -313,20 +317,6 @@
                                      xOffset:Number = 0,
                                      yOffset:Number = 0):int
     {
-        /*
-        if (!cursorHolder._target)
-        {
-            // We may have been reloaded by a shell so reset everything.
-            currentCursorID = CursorManager.NO_CURSOR;
-            nextCursorID = 1;
-            cursorList = [];
-            busyCursorList = [];
-            initialized = false;
-            overTextField = false;
-            overLink = false;
-        }
-        */
-
         var cursorID:int = nextCursorID++;

         // Create a new CursorQueueItem.
@@ -400,7 +390,6 @@
     public function removeAllCursors():void
     {
         cursorList.splice(0);
-
         showCurrentCursor();
     }

@@ -445,7 +434,8 @@
     {
         var app:InteractiveObject;
         var sm:InteractiveObject;
-
+
+        // if there are custom cursors...
         if (cursorList.length > 0)
         {
             if (!initialized)
@@ -455,7 +445,6 @@
                 cursorHolder = new FlexSprite();
                 cursorHolder.name = "cursorHolder";
                 cursorHolder.mouseEnabled = false;
-          //      systemManager.cursorChildren.addChild(cursorHolder);

                 initialized = true;
             }
@@ -533,9 +522,12 @@
                 currentCursorXOffset = item.x;
                 currentCursorYOffset = item.y;
             }
-        }
-        else
-        {
+        }
+        // else: there are no custom cursors
+        else
+        {
+            showCustomCursor = false;
+
             if (currentCursorID != CursorManager.NO_CURSOR)
             {
                 // There is no cursor in the cursor list to display,
@@ -600,7 +592,12 @@
      */
     private function contextMenu_menuSelectHandler(event:ContextMenuEvent):void
     {
-    	showCustomCursor = true; // Restore the custom cursor
+        // Restore the custom cursor...
+        // In AIR, the cursor doesn't get restored until a mouse move event is issued.
+        // Don't change this logic without testing that you didn't modify existing behavior
+        // in the Flash Player in Flex 3. It's very delicate, and sort of black magic.
+    	showCustomCursor = true;
+
     	// Standalone player doesn't initially send mouseMove when the contextMenu is closed,
     	// so we need to listen for mouseOver as well.
     	systemManager.stage.addEventListener(MouseEvent.MOUSE_OVER, mouseOverHandler);
@@ -677,6 +674,8 @@
         }

         // Handle switching between system and custom cursor.
+        // these variables are mutually exclusive, unless they are modified oustide
+        // of this function, in which case you should make sure they stay that way
         if (showSystemCursor)
         {
             showSystemCursor = false;
@@ -794,4 +793,3 @@
      */
     public var y:Number;
 }
-