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

--- frameworks/projects/spark/src/spark/effects/AnimateFilter.as
+++ frameworks/projects/spark/src/spark/effects/AnimateFilter.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2008 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.
 //
 ////////////////////////////////////////////////////////////////////////////////
 package spark.effects


Transferred from the Adobe Open Source Subversion Repository

Revision: 3509
Author:   jimurphy@adobe.com
Date:     2008-10-07T18:19:17.646255Z

Log Message:
-----------
Rename of flex -> mx.

For compatibility reasons it was decided that the new functionality remain integrated with the old framework, although we will continue to build two separate SWCs, one with primarily existing framework classes, and one with new Flex 4 classes. This change removes duplicate names from the Flex 4 framework to avoid class name overlapping with the old framework code.  The naming overlap consists of two major areas:  New Components, and New Effects

Modified Paths:
--------------
386 paths were modified

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

--- frameworks/projects/spark/src/spark/components/TextArea.as
+++ frameworks/projects/spark/src/spark/components/TextArea.as
@@ -9,18 +9,18 @@
 //
 ////////////////////////////////////////////////////////////////////////////////

-package flex.component
+package mx.components
 {

 import flash.events.Event;
 import flash.events.FocusEvent;
-
-import flex.component.TextView;
-import flex.events.TextOperationEvent;
-
+import flashx.tcal.formats.LineBreak;
+
+import mx.events.TextOperationEvent;
 import mx.core.ScrollPolicy;
-
-import flashx.tcal.formats.LineBreak;
+import mx.components.TextView;
+import mx.components.baseClasses.FxScrollBar;
+import mx.components.baseClasses.FxTextBase;

 //--------------------------------------
 //  Other metadata
@@ -36,7 +36,7 @@
 /**
  *  Documentation is not currently available.
  */
-public class TextArea extends TextBase
+public class FxTextArea extends FxTextBase
 {
     include "../core/Version.as";

@@ -49,7 +49,7 @@
     /**
      *  Constructor.
      */
-	public function TextArea()
+	public function FxTextArea()
 	{
 		super();
 	}
@@ -148,7 +148,7 @@
 	 *  The ScrollBar for horizontal scrolling that may be present
 	 *  in skins assigned to this TextArea.
 	 */
-	public var horizontalScrollBar:ScrollBar;
+	public var horizontalScrollBar:FxScrollBar;

 	//----------------------------------
 	//  horizontalScrollPolicy
@@ -190,7 +190,7 @@
 	 *  The ScrollBar for vertical scrolling that may be present
 	 *  in skins assigned to this TextArea.
 	 */
-	public var verticalScrollBar:ScrollBar;
+	public var verticalScrollBar:FxScrollBar;

 	//----------------------------------
 	//  verticalScrollPolicy


Transferred from the Adobe Open Source Subversion Repository

Revision: 23243
Author:   cframpto@adobe.com
Date:     2011-12-20T00:59:57.384047Z

Log Message:
-----------
In frameworks, remove Adobe headers from all files except xml/mxml file types.  There are also a few .txt files that are license files that I didn't touch yet.

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

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

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

 package spark.automation.delegates.components
 {


Convert ACC ane to instantiable from singleton

--- actionscript/src/com/freshplanet/ane/AirAACPlayer/AirAACPlayer.as
+++ actionscript/src/com/freshplanet/ane/AirAACPlayer/AirAACPlayer.as
@@ -43,31 +43,16 @@

         public function AirAACPlayer()
         {
-            if (!_instance)
+            _context = ExtensionContext.createExtensionContext(EXTENSION_ID, null);
+            if (!_context)
             {
-                _context = ExtensionContext.createExtensionContext(EXTENSION_ID, null);
-                if (!_context)
-                {
-                    log("ERROR - Extension context is null. Please check if extension.xml is setup correctly.");
-                    return;
-                }
-                _context.addEventListener(StatusEvent.STATUS, onStatus);
-
-                _instance = this;
+                log("ERROR - Extension context is null. Please check if extension.xml is setup correctly.");
+                return;
             }
-            else
-            {
-                throw Error("This is a singleton, use getInstance(), do not call the constructor directly.");
-            }
-        }
-
-        public static function getInstance():AirAACPlayer
-        {
-            return _instance ? _instance:new AirAACPlayer();
+            _context.addEventListener(StatusEvent.STATUS, onStatus);
         }

         public var logEnabled:Boolean = true;
-

         /**
         * Load a music stream url


Better fix for RCE-952. Set list='true' even when no other attrs

--- as3/xobjas3/src/com/rpath/xobj/XObjXMLEncoder.as
+++ as3/xobjas3/src/com/rpath/xobj/XObjXMLEncoder.as
@@ -669,18 +669,23 @@
                     {
                     }
                 }
-
-                // handle list attr specially
-                // fix for https://issues.rpath.com/browse/RCE-952
-                if (meta && meta.isList)
-                    attributes["list"] = "true";

                 node.attributes = attributes;
-
+
                 count++;
             }
         }
-
+
+
+        // handle list attr specially. Need to do this outside loop above since there
+        // may be no other attributes after all...
+        // fix for https://issues.rpath.com/browse/RCE-952
+        if (meta && meta.isList)
+        {
+            attributes["list"] = "true";
+            node.attributes = attributes;
+        }
+
         return attrNames;
     }


Modifications for Minko Studio Camera

Modifications for Minko Studio Camera

--- src/aerys/minko/scene/controller/camera/ArcBallController.as
+++ src/aerys/minko/scene/controller/camera/ArcBallController.as
@@ -16,24 +16,23 @@
 	{
 		private static const TMP_MATRIX : Matrix4x4 = new Matrix4x4();

-		private var _mouseDown		: Boolean	= false;
-		private var _mousePosition	: Point		= new Point();
+		protected var _mousePosition	: Point		= new Point();

-		private var _distance		: Number	= 0;
-		private var _theta			: Number	= 0;
-		private var _phi			: Number	= 0;
-		private var _update			: Boolean	= true;
+		private var _distance			: Number	= 0;
+		private var _theta				: Number	= 0;
+		private var _phi				: Number	= 0;
+		private var _update				: Boolean	= true;

-		private var _position		: Vector4	= new Vector4(0, 0, 0, 1);
-		private var _lookAt			: Vector4	= new Vector4(0, 0, 0, 1);
-		private var _up				: Vector4	= new Vector4(0, 1, 0, 1);
+		private var _position			: Vector4	= new Vector4(0, 0, 0, 1);
+		private var _lookAt				: Vector4	= new Vector4(0, 0, 0, 1);
+		private var _up					: Vector4	= new Vector4(0, 1, 0, 1);

-		private var _minDistance	: Number	= 0.1;
-		private var _maxDistance	: Number	= 1000;
+		private var _minDistance		: Number	= 0.1;
+		private var _maxDistance		: Number	= 1000;

-		private var _distanceStep	: Number	= 1;
-		private var _thetaStep		: Number	= 0.01;
-		private var _phiStep		: Number	= 0.01;
+		private var _distanceStep		: Number	= 1;
+		private var _thetaStep			: Number	= 0.01;
+		private var _phiStep			: Number	= 0.01;

 		public function get distance()		: Number	{ return _distance;		}
 		public function get theta()			: Number	{ return _theta;		}
@@ -67,16 +66,12 @@

 		public function bindDefaultControls(dispatcher : IEventDispatcher) : void
 		{
-			dispatcher.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
-			dispatcher.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
 			dispatcher.addEventListener(MouseEvent.MOUSE_WHEEL, mouseWheelHandler);
 			dispatcher.addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler);
 		}

 		public function unbindDefaultControls(dispatcher : IEventDispatcher) : void
 		{
-			dispatcher.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
-			dispatcher.removeEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
 			dispatcher.removeEventListener(MouseEvent.MOUSE_WHEEL, mouseWheelHandler);
 			dispatcher.removeEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler);
 		}
@@ -93,7 +88,8 @@
 														   destination	: BitmapData,
 														   time			: Number) : void
 		{
-			if (_update)
+			//FIXME : find why updates are shifted
+			if (1)//_update)
 			{
 				_distance	< _minDistance	&& (_distance = _minDistance);
 				_distance	> _maxDistance	&& (_distance = _maxDistance);
@@ -116,26 +112,16 @@
 			}
 		}

-		private function mouseDownHandler(e : MouseEvent) : void
-		{
-			_mouseDown = true;
-		}
-
-		private function mouseUpHandler(e : MouseEvent) : void
-		{
-			_mouseDown = false;
-		}
-
 		private function mouseWheelHandler(e : MouseEvent) : void
 		{
 			_distance	-=	e.delta;
 			_update		=	true;
 		}

-		private function mouseMoveHandler(e : MouseEvent) : void
+		protected function mouseMoveHandler(e : MouseEvent) : void
 		{
 			// compute position
-			if (_mouseDown)
+			if (e.buttonDown)
 			{
 				_theta	+= (_mousePosition.x - e.stageX) / 100;
 				_phi	+= (_mousePosition.y - e.stageY) / 100;


Transferred from the Adobe Open Source Subversion Repository

Revision: 16822
Author:   deeptika@adobe.com
Date:     2010-07-07T06:16:32.586582Z

Log Message:
-----------
Removing deprecated API and their usage.

QE notes:
Doc notes:
Bugs: FLEXDMV-2463 (LineaSeries legendData marker are not working if the series has lineStroke to a SolidColorStroke)
FLEXDMV-2470 (Remove deprecation or Remove deprecated properties in charting)
Reviewer:
Tests run:
Is noteworthy for integration:

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/BarChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_dmv/src/mx/automation/delegates/charts/CartesianChartAutomationImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/renderers/AreaRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/AreaChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/series/HLOCSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/series/LineSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/PlotChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/series/BubbleSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/series/ColumnSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation/src/mx/automation/tabularData/CartesianChartTabularData.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/CandlestickChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/HLOCChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/chartClasses/StackedSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/series/BarSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/LineChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/chartClasses/HLOCSeriesBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/chartClasses/CartesianChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/chartClasses/ChartBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/BubbleChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/series/AreaSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/chartClasses/PolarChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/ColumnChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/series/PlotSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/renderers/HLOCItemRenderer.as</path>

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

--- frameworks/projects/charts/src/mx/charts/PlotChart.as
+++ frameworks/projects/charts/src/mx/charts/PlotChart.as
@@ -160,11 +160,7 @@
 			this.calloutStroke = new Stroke(0x888888,2);
 			this.fontSize = 10;
 			this.gridLinesStyleName = "bothGridLines";
-			this.horizontalAxisStyleName = "blockNumericAxis";
-			this.secondHorizontalAxisStyleName = "blockNumericAxis";
-			this.secondVerticalAxisStyleName = "blockNumericAxis";
 			this.textAlign = "left";
-			this.verticalAxisStyleName = "blockNumericAxis";
 			this.horizontalAxisStyleNames = ["blockNumericAxis"];
 			this.verticalAxisStyleNames = ["blockNumericAxis"];
 		}
@@ -193,35 +189,6 @@
 		// our style settings
 		initStyles();
 	}
-
-	//--------------------------------------------------------------------------
-	//
-	//  Overridden methods: CartesianChart
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  @private
-	 */
-	override protected function initSecondaryMode():void
-	{
-		super.initSecondaryMode();
-
-		if (!secondVerticalAxis)
-			secondVerticalAxis = new LinearAxis();
-
-		if (!secondHorizontalAxis)
-			secondHorizontalAxis = new LinearAxis();
-
-		if (!secondVerticalAxisRenderer)
-			secondVerticalAxisRenderer = new AxisRenderer();
-
-		if (!secondHorizontalAxis)
-			secondHorizontalAxis = new LinearAxis();
-
-		if (!secondHorizontalAxisRenderer)
-			secondHorizontalAxisRenderer = new AxisRenderer();
-	}
 }

 }


added an optional "name" parameter for SceneBackground

--- src/aerys/minko/scene/node/background/SceneBackground.as
+++ src/aerys/minko/scene/node/background/SceneBackground.as
@@ -14,9 +14,9 @@
 		private var _texture	: TextureResource	= new TextureResource(2048, 2048);
 		private var _material	: BasicMaterial		= new BasicMaterial();

-		public function SceneBackground()
+		public function SceneBackground(aName : String = "scene_background")
 		{
-			super (QuadGeometry.doubleSidedQuadGeometry, _material);
+			super (QuadGeometry.doubleSidedQuadGeometry, _material, aName);

 			frustumCulling = FrustumCulling.DISABLED;
 			_material.effect = new Effect(new BackgroundLayerShader());


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

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


Allow drag-drop of generic (unrecognized) XML files from resource browser into attribute edit fields. Do not put slash in beginning of root folder resources in resource browser. Closes #1539.

--- bin/Data/Scripts/Editor/EditorResourceBrowser.as
+++ bin/Data/Scripts/Editor/EditorResourceBrowser.as
@@ -51,9 +51,11 @@
 const int RESOURCE_TYPE_CUBEMAP = 20;
 const int RESOURCE_TYPE_PARTICLEEMITTER = 21;
 const int RESOURCE_TYPE_2D_ANIMATION_SET = 22;
+const int RESOURCE_TYPE_GENERIC_XML = 23;
+const int RESOURCE_TYPE_GENERIC_JSON = 24;

 // any resource type > 0 is valid
-const int NUMBER_OF_VALID_RESOURCE_TYPES = 22;
+const int NUMBER_OF_VALID_RESOURCE_TYPES = 24;

 const StringHash XML_TYPE_SCENE("scene");
 const StringHash XML_TYPE_NODE("node");
@@ -71,6 +73,7 @@
 const StringHash XML_TYPE_TEXTURE_3D("texture3d");
 const StringHash XML_TYPE_CUBEMAP("cubemap");
 const StringHash XML_TYPE_SPRITER_DATA("spriter_data");
+const StringHash XML_TYPE_GENERIC("xml");

 const StringHash JSON_TYPE_SCENE("scene");
 const StringHash JSON_TYPE_NODE("node");
@@ -88,6 +91,7 @@
 const StringHash JSON_TYPE_TEXTURE_3D("texture3d");
 const StringHash JSON_TYPE_CUBEMAP("cubemap");
 const StringHash JSON_TYPE_SPRITER_DATA("spriter_data");
+const StringHash JSON_TYPE_GENERIC("json");

 const StringHash BINARY_TYPE_SCENE("USCN");
 const StringHash BINARY_TYPE_PACKAGE("UPAK");
@@ -1075,10 +1079,9 @@
     return RESOURCE_TYPE_UNKNOWN;
 }

-
 int GetResourceType(StringHash fileType)
 {
-    // binary fileTypes
+    // Binary filetypes
     if (fileType == BINARY_TYPE_SCENE)
         return RESOURCE_TYPE_SCENE;
     else if (fileType == BINARY_TYPE_PACKAGE)
@@ -1094,7 +1097,7 @@
     else if (fileType == BINARY_TYPE_ANIMATION)
         return RESOURCE_TYPE_ANIMATION;

-    // xml fileTypes
+    // XML filetypes
     else if (fileType == XML_TYPE_SCENE)
         return RESOURCE_TYPE_SCENE;
     else if (fileType == XML_TYPE_NODE)
@@ -1127,8 +1130,10 @@
         return RESOURCE_TYPE_CUBEMAP;
     else if (fileType == XML_TYPE_SPRITER_DATA)
         return RESOURCE_TYPE_2D_ANIMATION_SET;
-
-    // JSON fileTypes
+    else if (fileType == XML_TYPE_GENERIC)
+        return RESOURCE_TYPE_GENERIC_XML;
+
+    // JSON filetypes
     else if (fileType == JSON_TYPE_SCENE)
         return RESOURCE_TYPE_SCENE;
     else if (fileType == JSON_TYPE_NODE)
@@ -1161,8 +1166,10 @@
         return RESOURCE_TYPE_CUBEMAP;
     else if (fileType == JSON_TYPE_SPRITER_DATA)
         return RESOURCE_TYPE_2D_ANIMATION_SET;
-
-    // extension fileTypes
+    else if (fileType == JSON_TYPE_GENERIC)
+        return RESOURCE_TYPE_GENERIC_JSON;
+
+    // Extension filetypes
     else if (fileType == EXTENSION_TYPE_TTF)
         return RESOURCE_TYPE_FONT;
     else if (fileType == EXTENSION_TYPE_OTF)
@@ -1235,7 +1242,7 @@
     else if(type == EXTENSION_TYPE_JPEG)
         fileType = EXTENSION_TYPE_JPEG;
     else if(type == EXTENSION_TYPE_HDR)
-        fileType =  EXTENSION_TYPE_HDR;
+        fileType =  EXTENSION_TYPE_HDR;
     else if(type == EXTENSION_TYPE_BMP)
         fileType = EXTENSION_TYPE_BMP;
     else if(type == EXTENSION_TYPE_TGA)
@@ -1387,7 +1394,7 @@
         else if (type == XML_TYPE_SPRITER_DATA)
             fileType = XML_TYPE_SPRITER_DATA;
         else
-            found = false;
+            fileType = XML_TYPE_GENERIC;
     }
     return found;
 }
@@ -1472,7 +1479,8 @@

     BrowserFile@ AddFile(String name, uint resourceSourceIndex, uint sourceType)
     {
-        String path = resourceKey + "/" + name;
+        String path = resourceKey.length > 0 ? (resourceKey + "/" + name) : name;
+
         BrowserFile@ file = BrowserFile(path, resourceSourceIndex, sourceType);
         files.Push(file);
         return file;


better loadProgress, loaded methods

better loadProgress, loaded methods

--- src/com/IndabaSound.as
+++ src/com/IndabaSound.as
@@ -17,7 +17,6 @@

 		public var position:Number;
 		public var duration:Number;
-		public var loadProgress:Number;
 		public var _volume:Number = 1;

 		public var error:String;
@@ -47,10 +46,16 @@
 			return this._volume;
 		}

+		public function get loadProgress():Number
+		{
+			if (!this.bytesLoaded || this.bytesLoaded === 0) return 0;
+			if (!this.bytesTotal || this.bytesTotal === 0) return 0;
+			return this.bytesLoaded / this.bytesTotal * 100;
+		}

 		public function loaded():Boolean
 		{
-			return this.bytesLoaded >= this.bytesTotal;
+			return this.loadProgress >= 100;
 		}

 		public function forEvent():Object
@@ -60,7 +65,7 @@
 				playing: 		this.playing || false,
 				loaded: 		this.loaded(),
 				position:		this.position || 0,
-				loadProgress: 	this.bytesLoaded / this.bytesTotal * 100,
+				loadProgress: 	this.loadProgress,
 				error:			this.error || false,
 				length:			this.length,
 				volume:			this.volume


Transferred from the Adobe Open Source Subversion Repository

Revision: 23243
Author:   cframpto@adobe.com
Date:     2011-12-20T00:59:57.384047Z

Log Message:
-----------
In frameworks, remove Adobe headers from all files except xml/mxml file types.  There are also a few .txt files that are license files that I didn't touch yet.

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

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

--- frameworks/projects/framework/src/mx/core/IAssetLayoutFeatures.as
+++ frameworks/projects/framework/src/mx/core/IAssetLayoutFeatures.as
@@ -1,13 +1,3 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2003-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 mx.core
 {
 import flash.geom.Matrix;


Transferred from the Adobe Open Source Subversion Repository

Revision: 4702
Author:   egreenfi@adobe.com
Date:     2009-01-28T02:56:33.810360Z

Log Message:
-----------
Fixes to FxRotate3D.  FxRotate3D now correctly captures before and after values for both rotation and offset.rotation values when used as a transition.  the affectLayout flag now controls whether the individual overrides are to specify before/after values for either the target.rotation or target.offset.rotation values.

Included a missing check for scrollbar to make sure its thumb exists before trying to set cacheHeuristic on it.

QA: Yes
DOC: Yes
CHECKINTESTS: passed

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/scrollClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimate3DInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxRotate3DInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxAnimate3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxRotate3D.as</path>

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

--- frameworks/projects/mx/src/mx/controls/scrollClasses/ScrollBar.as
+++ frameworks/projects/mx/src/mx/controls/scrollClasses/ScrollBar.as
@@ -1047,7 +1047,11 @@
         // off whenever we resize the scrollbar (because caching hurts
         // performance during a resize animation)
         if (cacheAsBitmap)
-            cacheHeuristic = scrollThumb.cacheHeuristic = false;
+        {
+            cacheHeuristic = false;
+            if(scrollThumb)
+            	scrollThumb.cacheHeuristic = false;
+        }

         upArrow.setActualSize(upArrow.getExplicitOrMeasuredWidth(),
                               upArrow.getExplicitOrMeasuredHeight());


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

--- frameworks/projects/spark/src/spark/formatters/NumberFormatter.as
+++ frameworks/projects/spark/src/spark/formatters/NumberFormatter.as
@@ -19,39 +19,44 @@
 import mx.core.mx_internal;
 import mx.formatters.IFormatter;

-import spark.formatters.supportClasses.NumberBase;
+import spark.formatters.supportClasses.NumberFormatterBase;
 import spark.globalization.LastOperationStatus;
+import mx.resources.ResourceManager;
+import mx.resources.IResourceManager;

 use namespace mx_internal;

+[ResourceBundle("core")]
+
 /**
- *  The NumberFormatter class provides locale-sensitive formatting and
- *  parsing of numeric values. It can format int,
+ *  The NumberFormatter class provides locale-sensitive formatting
+ *  and parsing of numeric values. It can format int,
  *  uint, and Number objects.
  *
- *
This class is a wrapper class around the flash.globalization.
- *  NumberFormatter. Therefore the locale-specific formatting
+ *
This class is a wrapper class around the
+ *  flash.globalization.NumberFormatter.
+ *  Therefore, the locale-specific formatting
  *  is provided by the flash.globalization.NumberFormatter.
- *  However this NumberFormatter class can be used in MXML declartions,
+ *  However, this NumberFormatter 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.
+ *  methods and properties that are bindable.
  *

- *  The flash.globalization.NumberFormatter class use the underlying
- *  operating system for the formatting functionality and
+ *  The flash.globalization.NumberFormatter class use 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.
- *

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

+ *
+ *  @includeExample examples/NumberFormatterExample1.mxml
+ *  @includeExample examples/NumberFormatterExample2.mxml
  *
  *  @see flash.globalization.NumberFormatter
  *  @langversion 3.0
- *  @playerversion Flash 10
- *  @playerversion AIR 1.5
+ *  @playerversion Flash 10.1
+ *  @playerversion AIR 2.5
  *  @productversion Flex 4.5
  */
-public class NumberFormatter extends NumberBase implements IFormatter
+public class NumberFormatter extends NumberFormatterBase implements IFormatter
 {
     include "../core/Version.as";

@@ -77,16 +82,13 @@
      *  The locale style can be set in several ways:
      *

      *

-     *
         *
-     *  Inheriting the style from a UIComponent by calling the UIComponent's
-     *  addStyleClient method.
-     *

      *

      *  By using the class in an MXML declaration and inheriting the
      *  locale from the document that contains the declaration.
      *  <listing version="3.0" >
-     *  <fx:Declarations>
-     *         <s:NumberFormatter id="nf" />
+     *  Example:

+     *  <fx:Declarations>

+     *         <s:NumberFormatter id="nf" />

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

@@ -94,8 +96,9 @@
      *  By using an MXML declaration and specifying the locale value in
      *  the list of assignments.
      *  <listing version="3.0" >
-     *  <fx:Declarations>
-     *      <s:NumberFormatter id="nf_French_France" locale="fr_FR" />
+     *  Example:

+     *  <fx:Declarations>

+     *      <s:NumberFormatter id="nf_French_France" locale="fr_FR" />

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

@@ -103,23 +106,50 @@
      *  Calling the setStyle method, e.g.
      *  nf.setStyle("locale", "fr-FR")
      *

+     *

+     *  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 throw an error.
-     *
         *
-     *
+     *  will set lastOperationStatus to
+     *  LastOperationStatus.LOCALE_UNDEFINED_ERROR.
+     *

+     *
+     *
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 #lastOperationsStatus
+     *
+     *  @langversion 3.0
      *  @playerversion Flash 10.1
-     *  @langversion 3.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
-     *  @productversion Flash CS5
      */
     public function NumberFormatter()
     {
         super();
     }

+    //--------------------------------------------------------------------------
+    //
+    //  Variables
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    private var resourceManager:IResourceManager =
+        ResourceManager.getInstance();
+
     //--------------------------------------------------------------------------
     //
     //  Overridden Properties
@@ -138,9 +168,9 @@
      *  @see flash.globalization.NumberFormatter.actualLocaleIDName
      *  @see #NumberFormatter()
      *
+     *  @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
@@ -162,7 +192,7 @@

         return "en-US";
     }
-
+
     //--------------------------------------------------------------------------
     //
     //  Properties
@@ -217,7 +247,7 @@
      *

      *
      *
-     *  @default dependent on the locale and operating system.
+     *  The default value is dependent on the locale and operating system.
      *
      *  @throws ArgumentError if the assigned value is not a number
      *  between 0 and 4.
@@ -225,9 +255,9 @@
      *  @see #negativeSymbol
      *  @see #format()
      *
+     *  @langversion 3.0
      *  @playerversion Flash 10.1
-     *  @playerversion AIR 2
-     *  @langversion 3.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function get negativeNumberFormat():uint
@@ -240,7 +270,12 @@
         if (!g11nWorkingInstance)
         {
             if (4 < value)
-                throw new TypeError();
+            {
+                const message:String =
+                    resourceManager.getString("core","badIndex",
+                        [ negativeNumberFormat ]);
+                throw new ArgumentError(message);
+            }
         }

         setBasicProperty(properties, NEGATIVE_NUMBER_FORMAT, value);
@@ -310,24 +345,37 @@
      *  If the properties are not modified after the locale style is set, the
      *  numbers are formatted according to the locale-specific conventions
      *  provided by the operating system for the locale identified
-     *  by actualLocaleIDName.
+     *  by actualLocaleIDName.
      *  To customize the format, the properties
      *  can be altered to control specific aspects of formatting a number.

      *
      *
Very large numbers and very small magnitude numbers can be
      *  formatted with this function. However, the
      *  number of significant digits is limited to the precision provided
-     *  by the Number object. Scientific notation is not supported.

-     *
-     *    @param    value    A Number value to format.
-     *    @return            A formatted number string.
-     *
-     *  @see NumberFormatter
-     *
+     *  by the Number object. Scientific notation is not
+     *  supported.

+     *
+     *
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 An object containing a number value to format. If the
+     *  object is not a Number then it will be converted
+     *  to a number using the Number() conversion function.
+     *
+     *  @return A formatted number string.
+     *
+     *  @see #NumberFormatter
+     *  @see spark.formatters.supportClasses.NumberFormatterBase#errorText
+     *  @see #lastOperationStatus
+     *
+     *  @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
     {
@@ -360,7 +408,7 @@

             const retVal:String = g11nFormatter.formatNumber(number);

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

@@ -379,10 +427,10 @@
     [Bindable("change")]

     /**
-     *  Parses a string and returns a NumberParseResult object containing
-     *  the parsed elements.
-     *
-     *
The NumberParseResult object contains
+     *  Parses a string and returns a NumberParseResult object
+     *  containing the parsed elements.
+     *
+     *
The NumberParseResult object contains
      *  the value of the first number found in the input string, the
      *  starting index for the number within the string, and the index
      *  of the first character after the number in the string.

@@ -402,7 +450,7 @@
      *  how negative values are represented.

      *
      *
The following table identifies the result of strings parsed
-     *  for the various NegativeNumberFormat values:

+     *  for the various NegativeNumberFormat values:

      *

      *

      *            NegativeNumberFormat
@@ -437,13 +485,16 @@
      *

      *
      *
A single white space is allowed between the number and the
-     *  minus sign or parenthesis.

+     *  minus sign or parenthesis. A white space
+     *  character is a character that has a Space Separator (Zs) property
+     *  in the Unicode Character Database (see http://www.unicode.org/ucd/).

      *
      *
Other properties are ignored when determining a valid number.
      *  Specifically the value of the
      *  digitsType property is ignored and the digits can be
      *  from any of
-     *  the digit sets that are enumerated in the NationalDigitsType class.
+     *  the digit sets that are enumerated in the
+     *  NationalDigitsType class.
      *  The values of the groupingPattern
      *  and useGrouping properties do not influence the
      *  parsing of the number.
@@ -461,7 +512,8 @@
      *  @example The following code parses a number from a string and
      *  retrieves the prefix and suffix:
      *  <listing version="3.0" >
-     *  var nf:NumberFormatter = new NumberFormatter("fr-FR");
+     *  var nf:NumberFormatter = new NumberFormatter();
+     *  nf.setStyle("locale","fr-FR");
      *  var str:String = "1,56 mètre"
      *  var result:NumberParseResult = nf.parse(str);
      *  trace(result.value) // 1.56
@@ -472,8 +524,8 @@
      *
      *  @param inputString The input string to parse.
      *
-     *  @return A NumberParseResult object containing the numeric value
-     *  and the indices for the start and end of the portion of the string
+     *  @return A NumberParseResult object containing the numeric
+     *  value and the indices for the start and end of the portion of the string
      *  that contains the number.
      *
      *  @throws TypeError if the inputString parameter is null.
@@ -482,9 +534,9 @@
      *  @see #parseNumber()
      *  @see flash.globalization.NationalDigitsType
      *
+     *  @langversion 3.0
      *  @playerversion Flash 10.1
-     *  @playerversion AIR 2
-     *  @langversion 3.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function parse(inputString:String):NumberParseResult
@@ -515,9 +567,7 @@
      *  with a number or contains characters other than whitespace that
      *  are not part of the number, then this method returns
      *  NaN. White space before or after
-     *  the numeric digits is ignored. A white space
-     *  character is a character that has a Space Separator (Zs) property
-     *  in the Unicode Character Database (see http://www.unicode.org/ucd/).
+     *  the numeric digits is ignored.
      *
      *
If the numeric digit is preceded or followed by a
      *  plus sign '+' it is treated as a non-whitespace character.
@@ -528,14 +578,14 @@
      *  about number parsing and what constitutes a valid number.
      *

      *
-     *  @throws TypeError if the parseString is null
+     *  @throws TypeError if the parseString is null
      *
      *  @see #parse()
      *  @see flash.globalization.NationalDigitsType
      *
+     *  @langversion 3.0
      *  @playerversion Flash 10.1
-     *  @playerversion AIR 2
-     *  @langversion 3.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public function parseNumber(parseString:String):Number
@@ -543,7 +593,7 @@
         if (g11nWorkingInstance)
         {
             return (g11nWorkingInstance
-                as flash.globalization.NumberFormatter).parseNumber(parseString);
+               as flash.globalization.NumberFormatter).parseNumber(parseString);
         }

         if ((localeStyle === undefined) || (localeStyle === null))
@@ -553,17 +603,23 @@
             return undefined;
         }

-        fallbackLastOperationStatus = LastOperationStatus.NO_ERROR;
-
-        return fallbackParseNumber(parseString);
-    }
-
-    /**
-     *  @copy spark.globalization.supportClasses.CollatorBase#getAvailableLocaleIDNames
-     *
+        const number:Number = fallbackParseNumber(parseString);
+
+        fallbackLastOperationStatus = isNaN(number) ?
+                LastOperationStatus.PARSE_ERROR : LastOperationStatus.NO_ERROR;
+
+        return number;
+    }
+
+    /**
+     *  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
      */
     static public function getAvailableLocaleIDNames():Vector.<String>


skipping strings in DynamicStateArrays found in removeTypeFromState()

--- WeaveJS/src/weavejs/api/core/DynamicState.as
+++ WeaveJS/src/weavejs/api/core/DynamicState.as
@@ -134,7 +134,8 @@
 			{
 				var newState:Object = {};
 				for each (var typedState:Object in state)
-					newState[typedState[OBJECT_NAME] || ''] = removeTypeFromState(typedState[SESSION_STATE]);
+					if (typeof typedState === 'object')
+						newState[typedState[OBJECT_NAME] || ''] = removeTypeFromState(typedState[SESSION_STATE]);
 				return newState;
 			}


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

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

 package mx.containers
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 7573
Author:   gosmith@adobe.com
Date:     2009-06-05T06:20:06.217095Z

Log Message:
-----------
More changes to text styles.

The global selector for Flex 4 now sets the default value for 'kerning' to "off" instead of false. The legal values in Halo components are true and false. The legal values in Spark components are "on", "off", and "auto". In order to support any of these five values in a selector that affects both Halo and Spark components, Halo components map "on" and "auto" to true and "off" to false, and Spark components map true to "on" and false to "off".

We will decide later whether to switch the default to "auto", which is FTE and TLF's default.

The global selector for Flex 4 now sets the default value for 'textAlign' to "start" instead of "left". The legal values in Halo components are "left", "center", "right", and "justify", but Spark components add "start" and "end" to support RTL text. In order to support any of these six values in a selector that affects both Halo and Spark components, Halo components map "start" to "left" and "end" to "right".

QE Notes: Some tests may need updating due to these changes.
Doc Notes: None
Bugs: SDK-21624
Reviewer: Carol

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Button.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/defaults.css</path>

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

--- frameworks/projects/mx/src/mx/controls/Button.as
+++ frameworks/projects/mx/src/mx/controls/Button.as
@@ -18,6 +18,7 @@
 import flash.events.KeyboardEvent;
 import flash.events.MouseEvent;
 import flash.events.TimerEvent;
+import flash.text.TextFormatAlign;
 import flash.text.TextLineMetrics;
 import flash.ui.Keyboard;
 import flash.utils.Timer;
@@ -2290,6 +2291,12 @@
         var n:Number = offset ? buttonOffset : 0;

         var textAlign:String = getStyle("textAlign");
+        // Map new Spark values that might be set in a selector
+		// affecting both Halo and Spark components.
+        if (textAlign == "start")
+            textAlign = TextFormatAlign.LEFT;
+        else if (textAlign == "end")
+            textAlign = TextFormatAlign.RIGHT;

         var bm:EdgeMetrics = currentSkin &&
                              currentSkin is IRectangularBorder ?
@@ -2542,6 +2549,12 @@
         var n:Number = offset ? buttonOffset : 0;

         var textAlign:String = getStyle("textAlign");
+        // Map new Spark values that might be set in a selector
+		// affecting both Halo and Spark components.
+		if (textAlign == "start")
+            textAlign = TextFormatAlign.LEFT;
+        else if (textAlign == "end")
+            textAlign = TextFormatAlign.RIGHT;

         var viewWidth:Number = unscaledWidth;
         var viewHeight:Number = unscaledHeight;


Proper air resistance

Proper air resistance

--- src/tire/TirePhysics.as
+++ src/tire/TirePhysics.as
@@ -68,19 +68,29 @@
     public var longSlipRatios:Vector.<Number>  = new <Number>[ -1.0, -0.333, -0.20, -0.133, -0.066, -0.033, 0,  0.01,  0.02,  0.04,  0.06,  0.10,  0.30,  0.50];
     public var longForceRatios:Vector.<Number> = new <Number>[0.625,  0.875, 0.999,  0.981,  0.875,  0.625, 0, 0.625, 0.875, 0.981, 0.999, 0.875, 0.625, 0.525];

+    public var staticForceRatio:Number              = 0.8;
+    public var kineticSlipRatios:Vector.<Number>    = new <Number>[0,  0.02,  0.04,  0.08, 0.1,  0.15,  0.40,  0.75, 1.25, 2.0];
+    public var kineticForceRatios:Vector.<Number>   = new <Number>[0, 0.625, 0.875, 0.981, 1.0, 0.875, 0.625, 0.525, 0.45, 0.4];
+    public var kineticPeakSlipRatio:Number          = 0.06;
+
     public function TirePhysics() {
-        for(var i:Number = 0; i < 1.2; i += 0.05)
-            trace(i + ":", getKineticForceRatio(i, -1));
-
-        trace();
-
-        for(var i:Number = 0; i < 1.2; i += 0.05)
-            trace(i + ":", getKineticForceRatio(i, 0));
-
-        trace();
-
-        for(var i:Number = 0; i < 1.2; i += 0.05)
-            trace(i + ":", getKineticForceRatio(i, 1));
+        var maxForce:Number     = kineticForceRatios[0];
+        kineticPeakSlipRatio    = kineticSlipRatios[0];
+
+        var count:int = kineticSlipRatios.length;
+        for(var i:int = 1; i < count; ++i) {
+            var slip:Number     = kineticSlipRatios[i];
+            var force:Number    = kineticForceRatios[i];
+
+            if(force <= maxForce)
+                continue;
+
+            kineticPeakSlipRatio    = slip;
+            maxForce                = force;
+        }
+
+//                for(var a:Number = 0; a < 1.2; a += 0.05)
+//                    trace(a + ":", getKineticForceRatio(a));
     }

     public function step(dt:Number, subStepCount:int):void {
@@ -88,7 +98,7 @@

         for(var i:int = 0; i < subStepCount; ++i) {
             var normalForce:Number          = (carMass + wheelMass) * gravity;
-            var staticLimit:Number          = 0.8 * normalForce * coefSF;
+            var tireStaticLimit:Number      = staticForceRatio * normalForce * coefSF;

             var appliedTorque:Number        = wheelTorque * throttle * direction;
             var torqueForce:Number          = -appliedTorque / wheelRadius;
@@ -103,57 +113,91 @@
             airDragTorque                   = -airDragForce * wheelRadius;
             rollingDragForce                = dragForceSign * coefRollingDrag * normalForce;
             rollingDragTorque               = -rollingDragForce * wheelRadius;
-            totalDragForce                  = airDragForce + rollingDragForce;
-            totalDragTorque                 = airDragTorque + rollingDragTorque;
-
-            // A tire has a staticLimit, which is how much force can it transfer without slipping - this is
-            // described by staticForce. If it slips just a little bit, it can transfer even more force, but
-            // if it stats to slip too much, it'll go below its staticLimit. This is described by kineticLimit.
-            // Any force over staticLimit but below kineticLimit accelerates the body and decelerates the wheel
+            totalDragForce                  = rollingDragForce;
+            totalDragTorque                 = rollingDragTorque;
+
+            // Total forces acting on the body, not created by the tire.
+            // It transfers onto a tire (and from the tire back onto the body) up to a static limit. The excess force
+            // does not make the tire spin more, but still acts on the body (changing the acceleration)
+            var bodyTotalForce:Number       = airDragForce;
+            var bodyStaticForce:Number      = Math.abs(bodyTotalForce) > tireStaticLimit ? sign(bodyTotalForce) * tireStaticLimit : bodyTotalForce;
+            var bodyExcessForce:Number      = bodyTotalForce - bodyStaticForce;
+
+            // TODO: edit this
+            // A tire has a tireStaticLimit, which is how much force can it transfer without slipping - this is
+            // described by tireStaticForce. If it slips just a little bit, it can transfer even more force, but
+            // if it stats to slip too much, it'll go below its tireStaticLimit. This is described by tireKineticLimit.
+            // Any force over tireStaticLimit but below tireKineticLimit accelerates the body and decelerates the wheel
             // (it creates a kinetic force pushing body forward and a torque which tries to slow down the wheel).
-            // Anything above kineticLimit contributes only to increasing tire slip (which will in turn contribute
-            // to changing the kineticLimit in the next iteration) - this is stored as excessForce.
-            // First, we calculate the staticForce and excessForce. Then the currently available kineticLimit
-            // and using it we calculate kineticForce and eventually decrease excessForce (some of it might increase
-            // the kineticForce - all depending on the kineticLimit available).
-            var totalForce:Number   = torqueForce + brakingForce + totalDragForce;
-            var staticForce:Number  = Math.abs(totalForce) > staticLimit ? sign(totalForce) * staticLimit : totalForce;
-            var excessForce:Number  = totalForce - staticForce;
-            var kineticLimit:Number = slipRatio != 0 ? -getKineticForceRatio(slipRatio, totalForce) * normalForce * coefSF : staticForce;
-            var kineticForce:Number = 0;
-
-            // both forces push opposite directions
-            if(! sameSign(staticForce, kineticLimit, false)) {
-                kineticForce = kineticLimit;
+            // Anything above tireKineticLimit contributes only to increasing tire slip (which will in turn contribute
+            // to changing the tireKineticLimit in the next iteration) - this is stored as tireExcessForce.
+            // First, we calculate the tireStaticForce and tireExcessForce. Then the currently available tireKineticLimit
+            // and using it we calculate tireKineticForce and eventually decrease tireExcessForce (some of it might increase
+            // the tireKineticForce - all depending on the tireKineticLimit available).
+            var tireTotalForce:Number   = torqueForce + brakingForce + bodyStaticForce + totalDragForce;
+            var tireStaticForce:Number  = Math.abs(tireTotalForce) > tireStaticLimit ? sign(tireTotalForce) * tireStaticLimit : tireTotalForce;
+            var tireExcessForce:Number  = tireTotalForce - tireStaticForce;
+
+            var surfaceVel:Number       = wheelPosVel + wheelAngVel * wheelRadius;
+            var tireKineticLimit:Number = -sign(surfaceVel) * getKineticForceRatio(slipRatio) * normalForce * coefSF;
+            var tireKineticForce:Number;
+
+            // static friction only
+            if(tireKineticLimit == 0) {
+                tireKineticForce = 0;
             }
-            // both push the same direction
+            // kinetic friction, kinetic force pushes the opposite direction (or static force is 0)
+            else if(! sameSign(tireStaticForce, tireKineticLimit, false)) {
+                tireKineticForce = tireKineticLimit;
+            }
+            // kinetic friction, both forces push the same direction
             else {
-                var diff:Number = kineticLimit - staticForce;
-
-                if(diff > 0) {
-                    kineticForce    = diff;
-                    excessForce    -= diff;
-
-                    if(excessForce < 0)
-                        excessForce = 0;
+                // slip ratio at or about to reach its optimum
+                if(Math.abs(slipRatio) <= kineticPeakSlipRatio) {
+                    var maxKineticLimit:Number  = getKineticForceRatio(sign(slipRatio) * kineticPeakSlipRatio) * normalForce * coefSF;
+                    var boostRatio:Number       = tireKineticLimit / maxKineticLimit;
+                    var kineticBoostLeft:Number = maxKineticLimit - tireStaticForce;
+
+                    tireKineticForce                = kineticBoostLeft * boostRatio;
+                    tireExcessForce                -= tireKineticForce;
+
+                    // was all excess force used up
+                    if(sign(maxKineticLimit) * tireExcessForce < 0)
+                        tireExcessForce = 0;
                 }
+                // sub-optimal slip, past the optimum
                 else {
-                    kineticForce    = 0;
-                    staticForce    += diff;
-                    excessForce    -= diff;
+                    tireKineticForce = tireKineticLimit - tireStaticForce;
+
+                    // static force higher than kinetic limit
+                    if(sign(tireKineticLimit) * tireKineticForce < 0) {
+                        tireStaticForce    -= sign(tireKineticLimit) * tireKineticForce;
+                        tireExcessForce    += sign(tireKineticLimit) * tireKineticForce;
+                        tireKineticForce    = 0;
+                    }
+                    else {
+                        tireExcessForce    -= sign(tireKineticLimit) * tireKineticForce;
+
+                        // was all excess force used up
+                        if(sign(tireKineticLimit) * tireExcessForce < 0)
+                            tireExcessForce = 0;
+                    }
                 }
             }

-            // compute longitudinal and angular accelerations based on staticForce (no slipping)
-            var acc:Number      = staticForce / (carMass + wheelMass);
+            // compute longitudinal and angular accelerations based on tireStaticForce (no slipping)
+            var acc:Number      = tireStaticForce / (carMass + wheelMass);
             var angAcc:Number   = -acc / wheelRadius;

-            // add kineticForce to both - acc increases, angAcc decreases
-            acc                += kineticForce / (carMass + wheelMass);
-            angAcc             += kineticForce * wheelRadius / wheelInertia;
-
-            // finally add excessForce to increase angular acceleration
-            angAcc             += -excessForce * wheelRadius / wheelInertia;
+            // add bodyExcessForce (like huge air resistance, e.g. wind)
+            acc                += bodyExcessForce / (carMass + wheelMass);
+
+            // add tireKineticForce to both - acc increases, angAcc decreases
+            acc                += tireKineticForce / (carMass + wheelMass);
+            angAcc             += tireKineticForce * wheelRadius / wheelInertia;
+
+            // finally add tireExcessForce to increase angular acceleration
+            angAcc             += -tireExcessForce * wheelRadius / wheelInertia;

             //compute new velocities
             var oldPosVel:Number = wheelPosVel;
@@ -173,13 +217,13 @@
             wheelPos   += wheelPosVel * dt;
             wheelAngle += wheelAngVel * dt;

-            wasStaticFriction   = false;
-            forceRatio          = getKineticForceRatio(slipRatio, totalForce);
+            wasStaticFriction   = tireKineticForce != 0;
+            forceRatio          = getKineticForceRatio(slipRatio);
             acceleration        = acc;
             angAcceleration     = angAcc;
             responseTorque      = -(appliedTorque - angAcc * wheelInertia);

-            const minVel:Number = 0.05;
+            const minVel:Number = 0.15;

             if(Math.abs(wheelPosVel) < minVel)
                 slipRatio = 0;
@@ -304,28 +348,33 @@
         throw new Error("slip ratio not found?");
     }

-    private function getKineticForceRatio(slipRatio:Number, dir:Number):Number {
+    private function getKineticForceRatio(slipRatio:Number):Number {
+        if(slipRatio == 0)
+            return 0;
+
         var sr:Number = Math.abs(slipRatio);

-        if(sr == 0)
-            if(! sameSign(-dir, slipRatio, true))
-                return 0.0;
-            else
-                return 0.8;
-
-        if(sr <= 0.1)
-            if(! sameSign(-dir, slipRatio, false))
-                return sign(slipRatio) * (sr / 0.1);
-            else
-                return sign(slipRatio) * (0.8 + 0.2 * (sr / 0.1));
-
-        if(sr <= 0.3)
-            return sign(slipRatio) * (1 + 0.2 * ((0.1 - sr) / (0.3 - 0.1)));
-
-        if(sr <= 1)
-            return sign(slipRatio) * (0.8 + 0.2 * ((0.3 - sr) / (1 - 0.3)));
-
-        return sign(slipRatio) * 0.6;
+        if(sr > kineticSlipRatios[kineticSlipRatios.length - 1])
+            return kineticForceRatios[kineticForceRatios.length - 1];
+
+        var count:int = kineticSlipRatios.length;
+        for(var i:int = 0; i < count; ++i) {
+            var maxSlipRatio:Number = kineticSlipRatios[i];
+
+            if(maxSlipRatio == sr)       return kineticForceRatios[i];
+            else if (maxSlipRatio < sr)  continue;
+
+            var minSlipRatio:Number     = kineticSlipRatios[i - 1];
+            var ratio:Number            = (sr - minSlipRatio) / (maxSlipRatio - minSlipRatio);
+
+            var maxForceRatio:Number    = kineticForceRatios[i];
+            var minForceRatio:Number    = kineticForceRatios[i - 1];
+            var forceRatio:Number       = minForceRatio + (maxForceRatio - minForceRatio) * ratio;
+
+            return forceRatio;
+        }
+
+        throw new Error("slip ratio not found?");
     }
 }
 }


Updated test suite template from invalid as3 source to as2

--- bundles/as2/lib/sprout/generators/test/templates/TestSuite.as
+++ bundles/as2/lib/sprout/generators/test/templates/TestSuite.as
@@ -1,18 +1,15 @@
-package {
-	/**
-	 * This file has been automatically created using
-	 * #!/usr/bin/ruby script/generate suite
-	 * If you modify it and run this script, your
-	 * modifications will be lost!
-	 */
+/**
+ * This file has been automatically created using
+ * #!/usr/bin/ruby asclass -s
+ * If you modify it and run this script, your
+ * modifications will be lost!
+ */

-	import asunit.framework.TestSuite;<% test_case_classes.each do |test_case|  %>
-	import <%= test_case %>;<% end  %>
+import asunit.framework.TestSuite;

-	public class AllTests extends TestSuite {
+class AllTests extends TestSuite {

-		public function AllTests() {<% test_case_classes.each do |test_case|  %>
-			addTest(new <%= test_case %>());<% end  %>
-		}
+	public function AllTests() {<% test_case_classes.each do |test_case| %>
+		addTest(new <%=test_case%>());<% end %>
 	}
 }


Fixed a bug that caused a DocumentView's baseURL to be overwritten by the empty string on each invocation of DocumentView#initFromXML


Transferred from the Adobe Open Source Subversion Repository

Revision: 5119
Author:   smgilson@adobe.com
Date:     2009-03-01T15:19:39.936226Z

Log Message:
-----------
Clean up some ASDoc tags from the addition of the @productversion/@playerversion tags

QE Notes: None
Doc Notes: None
Bugs: -

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/HaloBorder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ToolTip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/ResultEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/remoting/Operation.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/rpc/src/mx/messaging/config/ServerConfig.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/HTTPChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/messages/HTTPRequestMessage.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/CalendarLayout.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/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/halo/src/mx/skins/halo/HaloBorder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/videoClasses/NCManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/AbstractConsumer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/Base64Encoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/validators/StringValidator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/SchemaMarshaller.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/core/IInteractiveObjectInterface.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/flex4/src/mx/components/TextView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ContainerRawChildrenList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/AMFChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/FaultEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/wsdl/WSDL.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AbstractOperation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/SparkSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Tween.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxResizeInstance.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/videoClasses/VideoPlayer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/HistoryManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/Schema.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/utils/HexEncoder.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/rpc/src/mx/rpc/soap/Operation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IDisplayObjectInterface.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/AbstractOperation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IDisplayObjectContainerInterface.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/effects/effectClasses/SoundEffectInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/SequenceInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Text.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ISpriteInterface.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/haloclassic/src/haloclassic/HaloRectBorder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/mxml/Operation.as</path>

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

--- frameworks/projects/framework/src/mx/core/ISpriteInterface.as
+++ frameworks/projects/framework/src/mx/core/ISpriteInterface.as
@@ -12,11 +12,6 @@
 /*
  *  The ISprite interface defines the basic set of APIs
  *  for web version of flash.display.Sprite
- *
- *  @langversion 3.0
- *  @playerversion Flash 9
- *  @playerversion AIR 1.1
- *  @productversion Flex 3
  */

 import flash.display.DisplayObject;


Transferred from the Adobe Open Source Subversion Repository

Revision: 9930
Author:   smgilson@adobe.com
Date:     2009-09-02T18:18:40.643031Z

Log Message:
-----------
Add ASDoc version tags to new or untagged 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/rpc/src/mx/rpc/mxml/IMXMLSupport.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/IMarshalSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/BaseDimensionFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AbstractService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/AbstractWebService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/easing/Bounce.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/IBitmapFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/DefaultTileListEffect.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/INavigatorContent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/DefaultListEffect.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/easing/Elastic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/HTTPService.as</path>

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

--- frameworks/projects/framework/src/mx/filters/IBitmapFilter.as
+++ frameworks/projects/framework/src/mx/filters/IBitmapFilter.as
@@ -1,9 +1,16 @@
 package mx.filters
 {
-	import flash.filters.BitmapFilter;
-
-	public interface IBitmapFilter
-	{
-		function clone():BitmapFilter;
-	}
+    import flash.filters.BitmapFilter;
+
+   /**
+    *
+    *  @langversion 3.0
+    *  @playerversion Flash 10
+    *  @playerversion AIR 1.5
+    *  @productversion Flex 4
+    */
+    public interface IBitmapFilter
+    {
+        function clone():BitmapFilter;
+    }
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 20844
Author:   jimurphy@adobe.com
Date:     2011-03-14T15:10:07.899037Z

Log Message:
-----------
block hero_private revs 20698,20699,20702 from being merged into trunk
revert 20839,20841,20842,20843

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/spark/formatters/NumberFormatter.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSCondition.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/ISortField.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/spark/formatters/CurrencyFormatter.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/BitmapFill.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/spark/formatters/DateTimeFormatter.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/charts/src/mx/charts/chartClasses/CartesianChart.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/GradientStroke.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/ArrayList.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/GradientBase.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/charts/src/mx/charts/chartClasses/PolarChart.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/ColorDodgeShader.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/charts/src/mx/charts/chartClasses/PolarDataCanvas.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/OnDemandEventDispatcher.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/charts/src/mx/charts/series/PlotSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TabBar.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/SolidColorStroke.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/Transform.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/advancedgrids/src/mx/collections/HierarchicalCollectionViewCursor.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSStyleDeclaration.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/FlexEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/charts/src/mx/charts/series/CandlestickSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/StringUtil.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/spark/globalization/StringTools.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/CompoundTransform.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/AdvancedStyleClient.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/binding/utils/ChangeWatcher.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/LinearGradientStroke.as</path>

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 10950
Author:   jimurphy@adobe.com
Date:     2009-10-09T15:05:04.160257Z

Log Message:
-----------
Merge 3.x revs 10470,10689,10819
blocked 10775,10868

Modified Paths:
--------------
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileBase.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/managers/FocusManager.as</path>

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

--- frameworks/projects/framework/src/mx/managers/FocusManager.as
+++ frameworks/projects/framework/src/mx/managers/FocusManager.as
@@ -1334,6 +1334,9 @@
                 // came around and found the original
                 if (start == i)
                     break;
+                // if start is -1, set start to first valid value of i
+                if (start == -1)
+                    start = i;
             }
             // trace("testing " + focusableCandidates[i]);
             if (isValidFocusCandidate(focusableCandidates[i], groupName))


Transferred from the Adobe Open Source Subversion Repository

Revision: 21686
Author:   chiedozi@adobe.com
Date:     2011-07-22T05:42:53.262906Z

Log Message:
-----------
Prevent non iOS devices from doing custom screen size caching during orientation changes

QE notes:
Doc notes:
Bugs: SDK-30831
Reviewer:  Tom
Tests run: mustella, checkintests
Is noteworthy for integration:

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

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

--- frameworks/projects/spark/src/spark/components/Application.as
+++ frameworks/projects/spark/src/spark/components/Application.as
@@ -1336,10 +1336,8 @@
         // for orientationChanging events dispatched by iOS AIR applications.
         // In the handler, the stage's width and height are swapped, and a validation
         // pass is forced to allow the application to resize and re-layout itself before the
-        // orientation change animation occurs.  These events are only dispatched on iOS
-        // devices.  These events are not wrapped by iOS version checks so that they still
-        // execute in ADL
-        if (sm && sm.stage && sm.isTopLevelRoot())
+        // orientation change animation occurs
+        if (isIOS && sm && sm.stage && sm.isTopLevelRoot())
         {
             sm.stage.addEventListener("orientationChanging", stage_orientationChangingHandler);
             sm.stage.addEventListener("orientationChange", stage_orientationChange);
@@ -1369,8 +1367,8 @@
      *  This is the event handler for the stage's orientationChanging event.  It
      *  cancels the orientation animation and manually swaps the width and height
      *  of the application to allow the application to validate itself before
-     *  the orientation change occurs.  The orientaitonChanging event is only
-     *  dispatched on iOS devices.
+     *  the orientation change occurs.  The orientaitonChanging is only listened
+     *  for on iOS devices.
      */
     private function stage_orientationChangingHandler(event:Event):void
     {
@@ -1496,7 +1494,6 @@
             };
         }
     }
-

     /**


FIX - FLEX-25962 PopupAnchor needs modal functionality (patch by Lee Burrows)

--- frameworks/projects/spark/src/spark/components/PopUpAnchor.as
+++ frameworks/projects/spark/src/spark/components/PopUpAnchor.as
@@ -19,7 +19,7 @@

 package spark.components
 {
-
+
 import flash.display.DisplayObject;
 import flash.events.Event;
 import flash.geom.Matrix;
@@ -333,7 +333,31 @@
     //  Public Methods
     //
     //--------------------------------------------------------------------------
-
+
+    private var _isModal:Boolean = false;
+
+    /**
+     *  Flag indicating whether the popup should be modal.
+     *  A modal container takes all keyboard and mouse input until it is closed.
+     *  A non-modal container allows other components to accept input while the pop-up window is open.
+     *
+     *  @default false
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4.12
+     */
+    public function get isModal():Boolean
+    {
+        return _isModal;
+    }
+
+    public function set isModal(value:Boolean):void
+    {
+        _isModal = value;
+    }
+
     /**
      *  Updates the popUp control's transform matrix. Typically,
      *  you would call this function while performing an effect on the PopUpAnchor.
@@ -491,7 +515,7 @@

         if (DisplayObject(popUp).parent == null && displayPopUp)
         {
-            PopUpManager.addPopUp(popUp,this,false);
+            PopUpManager.addPopUp(popUp,this,_isModal);
 			if (popUp is IUIComponent)
 				IUIComponent(popUp).owner = this;
             popUpIsDisplayed = true;


Transferred from the Adobe Open Source Subversion Repository

Revision: 9376
Author:   rfrishbe@adobe.com
Date:     2009-08-18T22:20:39.185125Z

Log Message:
-----------
Adding a "loop" property to VideoElement/VideoPlayer.  This is a true/false value and will determine whether the video loops or not.

Also changing VideoElement to be a UIComponent, rather than a GraphicElement.  This gives VideoElement all of the lifecycle events, which are useful to a full-fledged component.  The name/packaging will probably change in a future checkin as the OSMF names get settled upon.

QE notes: -
Doc notes: -
Bugs: SDK-22175
Reviewer: Deepa
Tests run: checkintests, Matt ran mustella and excluded some tests
Is noteworthy for integration: Yes

Modified Paths:
--------------
<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/spark/src/spark/primitives/VideoElement.as</path>

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

--- frameworks/projects/spark/src/spark/components/VideoPlayer.as
+++ frameworks/projects/spark/src/spark/components/VideoPlayer.as
@@ -385,7 +385,8 @@
  *    autoPlay="true"
  *    autoRewind="false"
  *    enabled=""
- *    maintainAspectRatio="<i>No default</i>"
+ *    loop="false"
+ *    maintainAspectRatio="true"
  *    muted="false"
  *    source=""
  *    volume=".75"
@@ -427,22 +428,27 @@
     /**
      *  @private
      */
-    private static const MAINTAIN_ASPECT_RATIO_PROPERTY_FLAG:uint = 1 << 2;
-
-    /**
-     *  @private
-     */
-    private static const MUTED_PROPERTY_FLAG:uint = 1 << 3;
-
-    /**
-     *  @private
-     */
-    private static const SOURCE_PROPERTY_FLAG:uint = 1 << 4;
-
-    /**
-     *  @private
-     */
-    private static const VOLUME_PROPERTY_FLAG:uint = 1 << 5;
+    private static const LOOP_PROPERTY_FLAG:uint = 1 << 2;
+
+    /**
+     *  @private
+     */
+    private static const MAINTAIN_ASPECT_RATIO_PROPERTY_FLAG:uint = 1 << 3;
+
+    /**
+     *  @private
+     */
+    private static const MUTED_PROPERTY_FLAG:uint = 1 << 4;
+
+    /**
+     *  @private
+     */
+    private static const SOURCE_PROPERTY_FLAG:uint = 1 << 5;
+
+    /**
+     *  @private
+     */
+    private static const VOLUME_PROPERTY_FLAG:uint = 1 << 6;

     //--------------------------------------------------------------------------
     //
@@ -781,6 +787,54 @@
         else
         {
             videoElementProperties = {autoRewind: value};
+        }
+    }
+
+    //----------------------------------
+    //  loop
+    //----------------------------------
+
+    [Inspectable(Category="General", defaultValue="false")]
+
+    /**
+     *  @copy spark.primitives.VideoElement#loop
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function get loop():Boolean
+    {
+        if (videoElement)
+        {
+            return videoElement.loop;
+        }
+        else
+        {
+            var v:* = videoElementProperties.loop;
+            return (v === undefined) ? false : v;
+        }
+    }
+
+    /**
+     *  @private
+     */
+    public function set loop(value:Boolean):void
+    {
+        if (videoElement)
+        {
+            videoElement.loop = value;
+            videoElementProperties = BitFlagUtil.update(videoElementProperties as uint,
+                LOOP_PROPERTY_FLAG, true);
+        }
+        else if (videoElementProperties)
+        {
+            videoElementProperties.loop = value;
+        }
+        else
+        {
+            videoElementProperties = {loop: value};
         }
     }

@@ -1176,6 +1230,13 @@
                     videoElement.autoRewind = videoElementProperties.autoRewind;
                     newVideoProperties = BitFlagUtil.update(newVideoProperties as uint,
                                                             AUTO_REWIND_PROPERTY_FLAG, true);
+                }
+
+                if (videoElementProperties.loop !== undefined)
+                {
+                    videoElement.loop = videoElementProperties.loop;
+                    newVideoProperties = BitFlagUtil.update(newVideoProperties as uint,
+                        LOOP_PROPERTY_FLAG, true);
                 }

                 if (videoElementProperties.maintainAspectRatio !== undefined)
@@ -1371,6 +1432,12 @@
                 propertySet = true;
             }

+            if (BitFlagUtil.isSet(videoElementProperties as uint, LOOP_PROPERTY_FLAG))
+            {
+                newVideoProperties.loop = videoElement.loop;
+                propertySet = true;
+            }
+
             if (BitFlagUtil.isSet(videoElementProperties as uint, MAINTAIN_ASPECT_RATIO_PROPERTY_FLAG))
             {
                 newVideoProperties.maintainAspectRatio = videoElement.maintainAspectRatio;


Transferred from the Adobe Open Source Subversion Repository

Revision: 7198
Author:   hmuller@adobe.com
Date:     2009-05-21T22:27:07.016124Z

Log Message:
-----------
If a DataGroup changes its itemRenderer or dataProvider it needs to ensure that the
state cached for the sake of virtual layout is cleared.  Added
LayoutBase::clearVirtualLayoutState() for this.

BasicLayout.useVirtualLayout=false is now ignored (generates a warning).

QE Notes: API Change: added LayoutBase::clearVirtualLayoutState()
Doc Notes:
Bugs: sdk-19397, sdk-20443, sdk-20930
Reviewer: Evtim

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

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

--- frameworks/projects/spark/src/spark/layouts/VerticalLayout.as
+++ frameworks/projects/spark/src/spark/layouts/VerticalLayout.as
@@ -85,6 +85,14 @@
 {
     include "../core/Version.as";

+    /**
+     *  @private
+     *  Cached row heights, max column width for virtual layout.   Not used unless
+     *  useVirtualLayout=true.   See updateLLV(), resetCachedVirtualLayoutState(),
+     *  etc.
+     */
+    private var llv:LinearLayoutVector = new LinearLayoutVector();
+
     //--------------------------------------------------------------------------
     //
     //  Class methods
@@ -655,14 +663,21 @@
         _lastIndexInView = lastIndex;
         dispatchEvent(new Event("indexInViewChanged"));
     }
-
-
+
     //--------------------------------------------------------------------------
     //
     //  Methods
     //
     //--------------------------------------------------------------------------

+    /**
+     * @private
+     */
+    override public function clearCachedVirtualLayoutState():void
+    {
+        llv.clear();
+    }
+
     /**
      *  @private
      */
@@ -1030,8 +1045,6 @@
         layoutTarget.measuredMinWidth  = minWidth + hPadding;
     }

-    private var llv:LinearLayoutVector = new LinearLayoutVector();
-
     /**
      *  @private
      *
@@ -1725,6 +1738,7 @@
         g.invalidateSize();
         g.invalidateDisplayList();
     }
+
 }
 }


FLEX-33523 Change so scaling works in fill and crop modes. Mustella tests pass no objections to fix on list.

--- frameworks/projects/spark/src/spark/primitives/BitmapImage.as
+++ frameworks/projects/spark/src/spark/primitives/BitmapImage.as
@@ -221,6 +221,7 @@
     private var previousUnscaledHeight:Number;
     private var sourceInvalid:Boolean;
     private var loadFailed:Boolean;
+	private var dpiScale:Number = 1;

     //----------------------------------
     //  bitmapData
@@ -949,7 +950,6 @@
      */
     override protected function measure():void
     {
-        var dpiScale:Number = 1;
         var app:Object = FlexGlobals.topLevelApplication;
         if ("applicationDPI" in app && "runtimeDPI" in app && source is MultiDPIBitmapSource)
             dpiScale = app.runtimeDPI / app.applicationDPI;
@@ -1107,8 +1107,8 @@

         g.lineStyle();
         var repeatBitmap:Boolean = false;
-        var fillScaleX:Number = 1;
-        var fillScaleY:Number = 1;
+        var fillScaleX:Number = 1/dpiScale;
+        var fillScaleY:Number = 1/dpiScale;
         var roundedDrawX:Number = Math.round(drawX);
         var roundedDrawY:Number = Math.round(drawY);
         var fillWidth:Number = adjustedWidth;


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

--- frameworks/projects/charts/src/mx/styles/metadata/PaddingStyles.as
+++ frameworks/projects/charts/src/mx/styles/metadata/PaddingStyles.as
@@ -0,0 +1,36 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+/**
+ *  Number of pixels between the control's left border
+ *  and the left edge of its content area.
+ *
+ *  @default 2
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="paddingLeft", type="Number", format="Length", inherit="no")]
+
+/**
+ *  Number of pixels between the control's right border
+ *  and the right edge of its content area.
+ *
+ *  @default 0
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="paddingRight", type="Number", format="Length", inherit="no")]