Cleanup to DescribeTypeJSONReflector to remove temporary instance variables

--- src/org/swiftsuspenders/DescribeTypeJSONReflector.as
+++ src/org/swiftsuspenders/DescribeTypeJSONReflector.as
@@ -22,16 +22,9 @@
 	public class DescribeTypeJSONReflector extends ReflectorBase implements Reflector
 	{
 		//----------------------       Private / Protected Properties       ----------------------//
-		private var _descriptor : DescribeTypeJSON;
-		private var _rawDescription : Object;
-		private var _traits : Object;
+		private const _descriptor : DescribeTypeJSON = new DescribeTypeJSON();

 		//----------------------               Public Methods               ----------------------//
-		public function DescribeTypeJSONReflector()
-		{
-			_descriptor = new DescribeTypeJSON();
-		}
-
 		public function typeImplements(type : Class, superType : Class) : Boolean
 		{
 			if (type == superType)
@@ -47,42 +40,43 @@

 		public function describeInjections(type : Class) : TypeDescription
 		{
-			_rawDescription = _descriptor.getInstanceDescription(type);
-			_traits = _rawDescription.traits;
+			var rawDescription : Object = _descriptor.getInstanceDescription(type);
+			const traits : Object = rawDescription.traits;
+			const typeName : String = rawDescription.name;
 			const description : TypeDescription = new TypeDescription();
-			addCtorInjectionPoint(description);
-			addFieldInjectionPoints(description, _traits.variables);
-			addFieldInjectionPoints(description, _traits.accessors);
-			addMethodInjectionPoints(description);
-			addPostConstructMethodPoints(description);
-			addPreDestroyMethodPoints(description);
-			_rawDescription = null;
-			_traits = null;
+			addCtorInjectionPoint(description, traits, typeName);
+			addFieldInjectionPoints(description, traits.variables);
+			addFieldInjectionPoints(description, traits.accessors);
+			addMethodInjectionPoints(description, traits.methods, typeName);
+			addPostConstructMethodPoints(description, traits.methods, typeName);
+			addPreDestroyMethodPoints(description, traits.methods, typeName);
 			return description;
 		}

 		//----------------------         Private / Protected Methods        ----------------------//
-		private function addCtorInjectionPoint(description : TypeDescription) : void
-		{
-			const parameters : Array = _traits.constructor;
+		private function addCtorInjectionPoint(
+			description : TypeDescription, traits : Object, typeName : String) : void
+		{
+			const parameters : Array = traits.constructor;
 			if (!parameters)
 			{
-				description.ctor =  _traits.bases.length > 0
+				description.ctor =  traits.bases.length > 0
 					? new NoParamsConstructorInjectionPoint()
 					: null;
 				return;
 			}
 			const injectParameters : Object =
-					_traits.metadata && extractTagParameters('Inject', _traits.metadata);
+					traits.metadata && extractTagParameters('Inject', traits.metadata);
 			const parameterNames : Array =
 				(injectParameters && injectParameters.name || '').split(',');
-			const requiredParameters : int = gatherMethodParameters(parameters, parameterNames);
+			const requiredParameters : int =
+				gatherMethodParameters(parameters, parameterNames, typeName);
 			description.ctor = new ConstructorInjectionPoint(parameters, requiredParameters);
 		}

-		private function addMethodInjectionPoints(description : TypeDescription) : void
-		{
-			const methods : Array = _traits.methods;
+		private function addMethodInjectionPoints(
+			description : TypeDescription, methods : Array, typeName : String) : void
+		{
 			if (!methods)
 			{
 				return;
@@ -101,27 +95,29 @@
 				var parameterNames : Array = (injectParameters.name || '').split(',');
 				var parameters : Array = method.parameters;
 				const requiredParameters : uint =
-						gatherMethodParameters(parameters, parameterNames);
+						gatherMethodParameters(parameters, parameterNames, typeName);
 				var injectionPoint : MethodInjectionPoint = new MethodInjectionPoint(
 						method.name, parameters, requiredParameters, optional);
 				description.addInjectionPoint(injectionPoint);
 			}
 		}

-		private function addPostConstructMethodPoints(description : TypeDescription) : void
+		private function addPostConstructMethodPoints(
+			description : TypeDescription, methods : Array, typeName : String) : void
 		{
 			var injectionPoints : Array = gatherOrderedInjectionPointsForTag(
-				PostConstructInjectionPoint, 'PostConstruct');
+				PostConstructInjectionPoint, 'PostConstruct', methods, typeName);
 			for (var i : int = 0, length : int = injectionPoints.length; i < length; i++)
 			{
 				description.addInjectionPoint(injectionPoints[i]);
 			}
 		}

-		private function addPreDestroyMethodPoints(description : TypeDescription) : void
+		private function addPreDestroyMethodPoints(
+			description : TypeDescription, methods : Array, typeName : String) : void
 		{
 			var injectionPoints : Array = gatherOrderedInjectionPointsForTag(
-				PreDestroyInjectionPoint, 'PreDestroy');
+				PreDestroyInjectionPoint, 'PreDestroy', methods, typeName);
 			if (!injectionPoints.length)
 			{
 				return;
@@ -160,7 +156,8 @@
 			}
 		}

-		private function gatherMethodParameters(parameters : Array, parameterNames : Array) : uint
+		private function gatherMethodParameters(
+			parameters : Array, parameterNames : Array, typeName : String) : uint
 		{
 			var requiredLength : uint = 0;
 			const length : uint = parameters.length;
@@ -174,7 +171,7 @@
 					if (!parameter.optional)
 					{
 						throw new InjectorError('Error in method definition of injectee "' +
-								_rawDescription.name + '. Required parameters can\'t have type "*".');
+								typeName + '. Required parameters can\'t have type "*".');
 					}
 					else
 					{
@@ -191,10 +188,9 @@
 		}

 		private function gatherOrderedInjectionPointsForTag(
-				injectionPointClass : Class, tag : String) : Array
+			injectionPointClass : Class, tag : String, methods : Array, typeName : String) : Array
 		{
 			const injectionPoints : Array = [];
-			const methods : Array = _traits.methods;
 			if (!methods)
 			{
 				return injectionPoints;
@@ -212,7 +208,7 @@
 				var parameterNames : Array = (injectParameters.name || '').split(',');
 				var parameters : Array = method.parameters;
 				const requiredParameters : uint =
-					gatherMethodParameters(parameters, parameterNames);
+					gatherMethodParameters(parameters, parameterNames, typeName);
 				var order : int = parseInt(injectParameters.order, 10);
 				//int can't be NaN, so we have to verify that parsing succeeded by comparison
 				if (order.toString(10) != injectParameters.order)


FIX: Trouble with mapValue values that evaluate to false.

Closes #17

--- src/org/swiftsuspenders/injectionpoints/PropertyInjectionPoint.as
+++ src/org/swiftsuspenders/injectionpoints/PropertyInjectionPoint.as
@@ -34,7 +34,7 @@
 		override public function applyInjection(target : Object) : Object
 		{
 			var injection : Object = m_injectionConfig.getResponse();
-			if (!injection)
+			if (injection == null)
 			{
 				throw(
 					new InjectorError(


Whoops, patch got confused here. Fix the build

git-svn-id: c197267f952b24206666de142881703007ca05d5@10540 b35dd754-fafc-0310-a699-88a17e54d16e

--- src/org/jivesoftware/xiff/auth/External.as
+++ src/org/jivesoftware/xiff/auth/External.as
@@ -41,89 +41,3 @@
     	}
 	}
 }
-package org.jivesoftware.xiff.auth
-{
-	import flash.xml.XMLNode;
-
-	import mx.utils.Base64Encoder;
-
-	import org.jivesoftware.xiff.core.JID;
-	import org.jivesoftware.xiff.core.XMPPConnection;
-
-	public class External extends SASLAuth
-	{
-		public function External(connection:XMPPConnection):void
-		{
-			var jid:JID = connection.jid;
-			var authContent:String = jid.node;
-
-			var b64coder:Base64Encoder = new Base64Encoder();
-			b64coder.insertNewLines = false;
-			b64coder.encode(authContent);
-			authContent = b64coder.flush();
-
-		    var attrs:Object = {
-		        mechanism: "EXTERNAL",
-		        xmlns: "urn:ietf:params:xml:ns:xmpp-sasl"
-		    };
-
-		    req = new XMLNode(1, "auth");
-		    req.appendChild(new XMLNode(3, authContent));
-		    req.attributes = attrs;
-
-		    stage = 0;
-		}
-
-		public override function handleResponse(stage:int, response:XMLNode):Object {
-        	var success:Boolean = response.nodeName == "success";
-       		return {
-        		authComplete: true,
-            	authSuccess: success,
-           		authStage: stage++
-        	};
-    	}
-	}
-}
-package org.jivesoftware.xiff.auth
-{
-	import flash.xml.XMLNode;
-
-	import mx.utils.Base64Encoder;
-
-	import org.jivesoftware.xiff.core.JID;
-	import org.jivesoftware.xiff.core.XMPPConnection;
-
-	public class External extends SASLAuth
-	{
-		public function External(connection:XMPPConnection):void
-		{
-			var jid:JID = connection.jid;
-			var authContent:String = jid.node;
-
-			var b64coder:Base64Encoder = new Base64Encoder();
-			b64coder.insertNewLines = false;
-			b64coder.encode(authContent);
-			authContent = b64coder.flush();
-
-		    var attrs:Object = {
-		        mechanism: "EXTERNAL",
-		        xmlns: "urn:ietf:params:xml:ns:xmpp-sasl"
-		    };
-
-		    req = new XMLNode(1, "auth");
-		    req.appendChild(new XMLNode(3, authContent));
-		    req.attributes = attrs;
-
-		    stage = 0;
-		}
-
-		public override function handleResponse(stage:int, response:XMLNode):Object {
-        	var success:Boolean = response.nodeName == "success";
-       		return {
-        		authComplete: true,
-            	authSuccess: success,
-           		authStage: stage++
-        	};
-    	}
-	}
-}


finally: form auto-submits work, fire 'submitted' NetStatusEvent, with event.info containing the Response object

--- src/metafas3/reaction_view/helpers/FormHelper.as
+++ src/metafas3/reaction_view/helpers/FormHelper.as
@@ -168,7 +168,9 @@
 		// >>> EVENTS
 		private function after_submit (e:Event) :void
 		{
-			logger.info('after_submit!');
+			var event:NetStatusEvent = new NetStatusEvent('submitted');
+			event.info = e.target.response;
+			display_object.dispatchEvent(event);
 		}

 		private function after_submit_failed (e:Event) :void


パラメータを弄った際の連携ロジックを修正

パラメータを弄った際の連携ロジックを修正

--- project/SoundConductor/src/jp/hiiragi/managers/soundConductor/ParameterController.as
+++ project/SoundConductor/src/jp/hiiragi/managers/soundConductor/ParameterController.as
@@ -84,6 +84,7 @@
 			if (!_tweening && value == currentValue)
 			{
 				// 値は変わらないので、何もしない
+				dispatchEvent(new Event(Event.CHANGE));
 				dispatchEvent(new Event(Event.COMPLETE));
 			}
 			else
@@ -158,7 +159,8 @@
 			if (t < _d)
 			{
 				// トゥイーン続行
-				setValue_internal(_easing(t, _b, _c, _d));
+				var calcuratedValue:Number = _easing(t, _b, _c, _d);
+				setValue_internal(calcuratedValue);
 				dispatchEvent(new Event(Event.CHANGE));
 			}
 			else
@@ -168,6 +170,7 @@

 				_ticker.removeEventListener(Event.ENTER_FRAME, update);
 				_tweening = false;
+				dispatchEvent(new Event(Event.CHANGE));
 				dispatchEvent(new Event(Event.COMPLETE));
 			}


fixed Matrix4x4.lookAt() mixing Vector4 reference by using the same TMP_VECTOR4 as Matrix4x4.view()

--- src/aerys/minko/type/math/Matrix4x4.as
+++ src/aerys/minko/type/math/Matrix4x4.as
@@ -715,8 +715,10 @@
 			if ((x_axis_X == 0 && x_axis_Y == 0 && x_axis_Z == 0)
 				|| (y_axis_X == 0 && y_axis_Y == 0 && y_axis_Z == 0))
 			{
-				throw new Error('Invalid argument(s): the eye direction (look at - eye position) '
-					+ 'and the up vector appear to be the same.');
+				throw new Error(
+					'Invalid argument(s): the eye direction (look at - eye position) '
+					+ 'and the up vector appear to be the same.'
+				);
 			}

 			var	m41	: Number	= - (x_axis_X * eye_X + x_axis_Y * eye_Y + x_axis_Z * eye_Z);
@@ -737,7 +739,7 @@
 							   position	: Vector4	= null,
 							   up		: Vector4 	= null) : Matrix4x4
 		{
-			return view(position || getTranslation(TMP_VECTOR4), target, up).invert();
+			return view(position || getTranslation(), target, up).invert();
 		}

 		/**
@@ -761,9 +763,9 @@
 							 lookAt : Vector4,
 							 up		: Vector4	= null) : Matrix4x4
 		{
-			Vector4.subtract(lookAt, eye, TMP_VECTOR4);
-
-			return orient(eye, TMP_VECTOR4, up);
+			var direction : Vector4 = Vector4.subtract(lookAt, eye, TMP_VECTOR4);
+
+			return orient(eye, direction, up);
 		}

 		public function perspectiveFoV(fov		: Number,


added support for columns as opposed to paths in retrieveRecords

--- WeaveJS/src/weavejs/path/WeavePathData.as
+++ WeaveJS/src/weavejs/path/WeavePathData.as
@@ -414,14 +414,16 @@

 		    for (var key:String in obj)
 		    {
-		        var item:Object = obj[key];
-		        if (item is WeavePath)
+		        var item:Object = obj[key];
+		        if (item is WeavePath)
+					item = item.getObject();
+
+				if (item is ILinkableObject)
 		        {
-					var column:ILinkableObject = item.getObject();
-		            if (column is IAttributeColumn)
+		            if (item is IAttributeColumn)
 		            {
 		                output.chains.push(prefix.concat(key));
-		                output.columns.push(column);
+		                output.columns.push(item);
 		            }
 		        }
 		        else


Fixed invalid request saving (ref #7)

Fixed invalid request saving (ref #7)

Replaced built-in AMF serialization with manual data saving/loading

--- actionscript/src/com/bugsnag/RequestQueue.as
+++ actionscript/src/com/bugsnag/RequestQueue.as
@@ -7,7 +7,7 @@
 	import flash.filesystem.FileStream;
 	import flash.net.URLLoader;
 	import flash.net.URLRequest;
-	import flash.net.registerClassAlias;
+	import flash.net.URLRequestMethod;
 	import flash.utils.ByteArray;
 	import flash.utils.setTimeout;

@@ -28,8 +28,6 @@
 			_urlLoader = new URLLoader();
 			_urlLoader.addEventListener(Event.COMPLETE, requestComplete, false, 0, true);
 			_urlLoader.addEventListener(IOErrorEvent.IO_ERROR, requestError, false, 0, true);
-
-			registerClassAlias('UrlRequest', URLRequest);

 			load();
 		}
@@ -91,10 +89,32 @@
 		{
 			try
 			{
+				var file:File = File.applicationStorageDirectory.resolvePath(FILENAME);
+
+				// If there are no requests to save then we can delete the file if it exists
+				if(_requests.length == 0)
+				{
+					if(file.exists)
+					{
+						file.deleteFileAsync();
+					}
+					return;
+				}
+
+				// Serialize the list of URLRequests manually
 				var byteArray:ByteArray = new ByteArray();
-				byteArray.writeObject(_requests);

-				var file:File = File.applicationStorageDirectory.resolvePath(FILENAME);
+				// First write the number of requests that the file will contain
+				byteArray.writeUnsignedInt(_requests.length);
+
+				// Now write each request's url and data
+				for each(var request:URLRequest in _requests)
+				{
+					byteArray.writeUTF(request.url);
+					byteArray.writeUTF(request.data as String);
+				}
+
+				// Finally, write the bytes to the file
 				file.preventBackup = true;

 				var fileStream:FileStream = new FileStream();
@@ -124,9 +144,27 @@
 					fileStream.readBytes(byteArray);
 					fileStream.close();

-					if(byteArray != null && byteArray.readObject() != null)
+					// First read the number of requests saved
+					var numRequests:uint = byteArray.readUnsignedInt();
+
+					// The file is invalid, there will never be 0 requests saved
+					if(numRequests == 0)
 					{
-						_requests = byteArray.readObject() as Vector.<URLRequest>;
+						file.deleteFileAsync();
+					}
+					else
+					{
+						// Reconstruct the list of URLRequests
+						_requests = new <URLRequest>[];
+						for (var i:int = 0; i < numRequests; ++i)
+						{
+							// Read request's url, followed by data
+							var savedRequest:URLRequest = new URLRequest();
+							savedRequest.method = URLRequestMethod.POST;
+							savedRequest.url = byteArray.readUTF();
+							savedRequest.data = byteArray.readUTF();
+							_requests[i] = savedRequest;
+						}
 					}
 				}
 				catch(error:Error)


mereg

mereg

--- as3/xobjas3/src/com/rpath/xobj/XObjXMLDecoder.as
+++ as3/xobjas3/src/com/rpath/xobj/XObjXMLDecoder.as
@@ -668,6 +668,13 @@
                                     objectFactory.trackObjectById(partObj, partID);
                                 }
                             }
+
+                            // use whatever class info we were given
+                            if (partObj)
+                            {
+                                partClass = XObjUtils.getClass(partObj);
+                                partClassName = XObjUtils.getClassName(partObj);
+                            }
                         }
                         else
                         {


Recognize OTF files without going to XML parsing (which fails). Closes #830.

--- bin/Data/Scripts/Editor/EditorResourceBrowser.as
+++ bin/Data/Scripts/Editor/EditorResourceBrowser.as
@@ -1136,6 +1136,8 @@
     StringHash type = StringHash(GetExtension(path));
     if (type == EXTENSION_TYPE_TTF)
         fileType = EXTENSION_TYPE_TTF;
+    else if (type == EXTENSION_TYPE_OTF)
+        fileType = EXTENSION_TYPE_OTF;
     else if (type == EXTENSION_TYPE_OGG)
         fileType = EXTENSION_TYPE_OGG;
     else if(type == EXTENSION_TYPE_WAV)


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

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


Bring back the import for mx_internal

Bring back the import for mx_internal

--- frameworks/projects/spark/src/spark/components/RichEditableText.as
+++ frameworks/projects/spark/src/spark/components/RichEditableText.as
@@ -80,6 +80,7 @@
     import mx.core.IIMESupport;
     import mx.core.ISystemCursorClient;
     import mx.core.UIComponent;
+	import mx.core.mx_internal;
     import mx.events.FlexEvent;
     import mx.managers.IFocusManager;
     import mx.managers.IFocusManagerComponent;


[CEXP-257] SampleCalculator: Unit tests.

--- src/test/actionscript/SampleCalculatorTest.as
+++ src/test/actionscript/SampleCalculatorTest.as
@@ -30,5 +30,56 @@
 			// then
 			assertThat( level, equalTo(0) );
 		}
+
+    [Test]
+  public function should_give_highest_value_from_buffer_of_floats():void {
+    // given
+    var highestFloat:Number = 0.8;
+    var floatBuffer:ByteArray = new ByteArray();
+    floatBuffer.writeFloat(0);
+    floatBuffer.writeFloat(0.1);
+    floatBuffer.writeFloat(highestFloat);
+    floatBuffer.writeFloat(0.6);
+
+    // when
+    var level:Number = sampleCalculator.getHighestSample(floatBuffer);
+
+    // then
+    assertThat( level.toFixed(3), equalTo(highestFloat));
+  }
+
+    [Test]
+    public function should_give_highest_value_from_buffer_which_position_has_been_changed():void {
+      // given
+      var highestFloat:Number = 0.7;
+      var floatBuffer:ByteArray = new ByteArray();
+      floatBuffer.writeFloat(highestFloat);
+      floatBuffer.writeFloat(0);
+      floatBuffer.writeFloat(0.1);
+      floatBuffer.writeFloat(0.6);
+
+      // when
+      floatBuffer.position = 2;
+      var level:Number = sampleCalculator.getHighestSample(floatBuffer);
+
+      // then
+      assertThat( level.toFixed(3), equalTo(highestFloat));
+    }
+
+
+    [Test]
+    public function should_leave_buffer_with_position_set_to_zero():void {
+      // given
+      var floatBuffer:ByteArray = new ByteArray();
+      floatBuffer.writeFloat(0);
+      floatBuffer.writeFloat(0.1);
+      floatBuffer.writeFloat(0.6);
+
+      // when
+      var level:Number = sampleCalculator.getHighestSample(floatBuffer);
+
+      // then
+      assertThat( floatBuffer.position, equalTo(0));
+    }
 	}
 }


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

--- frameworks/projects/airframework/src/mx/managers/WindowedSystemChildrenList.as
+++ frameworks/projects/airframework/src/mx/managers/WindowedSystemChildrenList.as
@@ -0,0 +1,222 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.managers
+{
+
+import flash.display.DisplayObject;
+import flash.geom.Point;
+import mx.core.IChildList;
+import mx.core.mx_internal;
+
+[ExcludeClass]
+
+/**
+ *  @private
+ *  A SystemManager has various types of children,
+ *  such as the Application, popups, tooltips, and custom cursors.
+ *
+ *  You can access all the children via the rawChildren property.
+ *  You can access just the popups via popUpChildren,
+ *  the tooltips via toolTipChildren,
+ *  and the custom cursors via cursorChildren.
+ *  Each of these returns a SystemChildrenList which implements IChildList.
+ *
+ *  The SystemChildrenList is given two indices that map
+ *  to a subset of the indices of children within the entire
+ *  set of child indices in the SystemManager.
+ *  It manages the children within those two indices.
+ */
+public class WindowedSystemChildrenList implements IChildList
+{
+    include "../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Constructor.
+	 */
+	public function WindowedSystemChildrenList(owner:WindowedSystemManager,
+									   lowerBoundReference:QName,
+									   upperBoundReference:QName)
+	{
+		super();
+
+		this.owner = owner;
+		this.lowerBoundReference = lowerBoundReference;
+		this.upperBoundReference = upperBoundReference;
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	private var owner:WindowedSystemManager;
+
+	/**
+	 *  @private
+	 *  Either "noTopMostIndex", "topMostIndex", or "toolTipIndex".
+	 *  The popUpChildren extends from noTopMostIndex to topMostIndex.
+	 *  The toolTips extends from topMostIndex to toolTipIndex.
+	 *  The cursors extends from toolTipIndex to cursorIndex.
+	 */
+	private var lowerBoundReference:QName;
+
+	/**
+	 *  @private
+	 *  Either "topMostIndex", "toolTipIndex", or "cursorIndex".
+	 *  The popUpChildren extends from noTopMostIndex to topMostIndex.
+	 *  The toolTips extends from topMostIndex to toolTipIndex.
+	 *  The cursors extends from toolTipIndex to cursorIndex.
+	 */
+	private var upperBoundReference:QName;
+
+	//--------------------------------------------------------------------------
+	//
+	//  Methods
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @copy mx.core.IChildList#numChildren
+	 */
+	public function get numChildren():int
+	{
+		return owner[upperBoundReference] - owner[lowerBoundReference];
+	}
+
+	/**
+	 *  @copy mx.core.IChildList#addChild
+	 */
+	public function addChild(child:DisplayObject):DisplayObject
+	{
+		owner.mx_internal::rawChildren_addChildAt(
+			child, owner[upperBoundReference]);
+		owner[upperBoundReference]++;
+		return child;
+	}
+
+	/**
+	 *  @copy mx.core.IChildList#addChildAt
+	 */
+	public function addChildAt(child:DisplayObject, index:int):DisplayObject
+	{
+		owner.mx_internal::rawChildren_addChildAt(
+			child, owner[lowerBoundReference] + index);
+		owner[upperBoundReference]++;
+		return child;
+	}
+
+	/**
+	 *  @copy mx.core.IChildList#removeChild
+	 */
+	public function removeChild(child:DisplayObject):DisplayObject
+	{
+		var index:int = owner.mx_internal::rawChildren_getChildIndex(child);
+		if (owner[lowerBoundReference] <= index &&
+			index < owner[upperBoundReference])
+		{
+			owner.mx_internal::rawChildren_removeChild(child);
+			owner[upperBoundReference]--;
+		}
+		return child;
+	}
+
+	/**
+	 *  @copy mx.core.IChildList#removeChildAt
+	 */
+	public function removeChildAt(index:int):DisplayObject
+	{
+		var child:DisplayObject =
+			owner.mx_internal::rawChildren_removeChildAt(
+				index + owner[lowerBoundReference]);
+		owner[upperBoundReference]--;
+		return child;
+	}
+
+	/**
+	 *  @copy mx.core.IChildList#getChildAt
+	 */
+  	public function getChildAt(index:int):DisplayObject
+  	{
+		var retval:DisplayObject =
+			owner.mx_internal::rawChildren_getChildAt(
+				owner[lowerBoundReference] + index);
+		return retval;
+  	}
+
+	/**
+	 *  @copy mx.core.IChildList#getChildByName
+	 */
+  	public function getChildByName(name:String):DisplayObject
+  	{
+		return owner.mx_internal::rawChildren_getChildByName(name);
+  	}
+
+	/**
+	 *  @copy mx.core.IChildList#getChildIndex
+	 */
+  	public function getChildIndex(child:DisplayObject):int
+  	{
+		var retval:int = owner.mx_internal::rawChildren_getChildIndex(child);
+		retval -= owner[lowerBoundReference];
+		return retval;
+	}
+
+	/**
+	 *  @copy mx.core.IChildList#setChildIndex
+	 */
+	public function setChildIndex(child:DisplayObject, newIndex:int):void
+	{
+		owner.mx_internal::rawChildren_setChildIndex(
+			child, owner[lowerBoundReference] + newIndex);
+	}
+
+	/**
+	 *  @copy mx.core.IChildList#getObjectsUnderPoint
+	 */
+	public function getObjectsUnderPoint(point:Point):Array
+	{
+		return owner.mx_internal::rawChildren_getObjectsUnderPoint(point);
+	}
+
+	/**
+	 *  @copy mx.core.IChildList#contains
+	 */
+	public function contains(child:DisplayObject):Boolean
+	{
+		if (owner.mx_internal::rawChildren_contains(child))
+		{
+			while (child.parent != owner && child.parent != child.stage)
+			{
+				child = child.parent;
+			}
+			var childIndex:int = owner.mx_internal::rawChildren_getChildIndex(child);
+			if (childIndex >= owner[lowerBoundReference] &&
+				childIndex < owner[upperBoundReference])
+			{
+				return true;
+			}
+		}
+		return false;
+	}
+}
+
+}


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

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

 package mx.automation.events
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 6441
Author:   chaase@adobe.com
Date:     2009-04-30T22:28:01.444147Z

Log Message:
-----------
Fixed various bugs in the transform effects, plus an unrelated namespace bug where TransformOffsets was still living only in the halo namespace.

QE Notes: Fixes projection bugs that were holdups to 3D effects testing
Doc Notes: None
Bugs: sdk-20169, sdk-20807, sdk-20846
Reviewer: Jason
Tests: checkintests, Musteall spark/effects/Move spark/effects/AnimateTransform spark/effects/Rotate spark/effects/AnimateTransform mx/states/Transition

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/spark-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateTransformInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransform.as</path>

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

--- frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransformInstance.as
+++ frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransformInstance.as
@@ -16,18 +16,17 @@
 import flash.geom.Point;
 import flash.geom.Vector3D;

-import mx.core.ILayoutElement;
+import mx.core.IUIComponent;
+import mx.core.UIComponent;
 import mx.core.mx_internal;
+import mx.effects.Effect;
+
+import spark.effects.Animate;
+import spark.effects.KeyFrame;
+import spark.effects.MotionPath;
 import spark.effects.animation.Animation;
-import mx.effects.Effect;
-import spark.effects.Animate;
 import spark.effects.easing.IEaser;
 import spark.effects.easing.Linear;
-
-import mx.core.UIComponent;
-
-import spark.effects.KeyFrame;
-import spark.effects.MotionPath;

 use namespace mx_internal;

@@ -365,8 +364,7 @@
             var parent:UIComponent = target.parent;

             if(parent != null)
-            {
-
+            {
                 originalProjection = parent.$transform.perspectiveProjection;
                 var p:PerspectiveProjection = new PerspectiveProjection();
                 if(!isNaN(fieldOfView))
@@ -374,17 +372,17 @@
                 if(!isNaN(focalLength))
                     p.focalLength = focalLength;

-                if(autoCenterProjection)
-                {
-                    var le:ILayoutElement = target as ILayoutElement;
-                    p.projectionCenter = new Point(le.getLayoutBoundsX() + le.getLayoutBoundsWidth()/2,
-                                                   le.getLayoutBoundsY() + le.getLayoutBoundsHeight()/2);
-                }
+                var projectionPoint:Point;
+                // Get the location in local coordinates and then get
+                // that location in the parent's coordinate system
+                if (autoCenterProjection)
+                    projectionPoint = new Point(target.getLayoutBoundsWidth(false)/2,
+                        target.getLayoutBoundsHeight(false)/2);
                 else
-                {
-                    p.projectionCenter = new Point(projectionX, projectionY);
-                }
-
+                    projectionPoint = new Point(projectionX, projectionY);
+                projectionPoint = target.localToGlobal(projectionPoint);
+                p.projectionCenter = parent.globalToLocal(projectionPoint);
+
                 parent.$transform.perspectiveProjection = p;
             }
         }
@@ -510,6 +508,7 @@
      */
     override public function animationEnd(animation:Animation):void
     {
+        started = false;
         removeProjection();
         super.animationEnd(animation);
     }


Moved scrollbar in infobox down

Moved scrollbar in infobox down

--- src/Displays/Infobox.as
+++ src/Displays/Infobox.as
@@ -33,7 +33,7 @@
 			if (scrollbar)
 				lastScrollFraction = scrollbar.scrollFraction;
 			add(scrollbar = new Scrollbar(bg.x + bg.width - 48/2 - RAISED_BORDER_WIDTH * 3,
-										  pageTop + INNER_BORDER, pageBottom - pageTop - INNER_BORDER * 2));
+										  pageTop + INNER_BORDER + 36, pageBottom - pageTop - INNER_BORDER * 2 - 36));
 			if (!isNaN(lastScrollFraction))
 				scrollbar.scrollFraction = lastScrollFraction;


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

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

 import mx.core.mx_internal;


Don't re-add if already added.

Don't re-add if already added.

git-svn-id: f8d5f742b420a6a114b58659a4f85f335318e53c@1437098 13f79535-47bb-0310-9956-ffa450edef68

--- mustella/as3/src/mustella/FakeSoftKeyboard.as
+++ mustella/as3/src/mustella/FakeSoftKeyboard.as
@@ -87,7 +87,8 @@
 			}

 			// root is actually a systemManager
-			root["popUpChildren"].addChild(kbd);
+			if (kbd.parent == null)
+				root["popUpChildren"].addChild(kbd);
 			if (root.stage.stageHeight > root.stage.stageWidth)
 			{
 				kbd.height = portraitHeight;


Fix error handling for the "local" parameter.

get_param_addr already handles a default value. It signals a parsing
error if the supplied value has a syntax error.

--- swfcat.as
+++ swfcat.as
@@ -106,10 +106,11 @@
                 return;
             }

-            if (this.loaderInfo.parameters["local"])
-                local_addr = get_param_addr("local", DEFAULT_LOCAL_TOR_CLIENT_ADDR);
-            else
-                local_addr = DEFAULT_LOCAL_TOR_CLIENT_ADDR;
+            local_addr = get_param_addr("local", DEFAULT_LOCAL_TOR_CLIENT_ADDR);
+            if (!local_addr) {
+                puts("Error: Local spec must be in the form \"host:port\".");
+                return;
+            }

             if (this.loaderInfo.parameters["client"])
                 client_main();


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

--- frameworks/projects/mx/src/mx/events/CuePointEvent.as
+++ frameworks/projects/mx/src/mx/events/CuePointEvent.as
@@ -0,0 +1,144 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2005-2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.events
+{
+
+import flash.events.Event;
+
+/**
+ *  The CuePointEvent class represents the event object passed to the event listener for
+ *  cue point events dispatched by the VideoDisplay control.
+ *
+ *  @see mx.controls.VideoDisplay
+ */
+public class CuePointEvent extends Event
+{
+    include "../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	// Class constants
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  The CuePointEvent.CUE_POINT constant defines the value of the
+	 *  type property of the event object for a cuePoint event.
+	 *
+     *
The properties of the event object have the following values:

+	 *

+	 *
Property	Value

+     *
bubbles	false

+     *
cancelable	false

+     *
cuePointName	The name of the cue point.

+     *
cuePointTime	The time of the cue point, in seconds.

+     *
cuePointType	The string
+     *       "actionscript".

+     *
currentTarget	The Object that defines the
+     *       event listener that handles the event. For example, if you use
+     *       myButton.addEventListener() to register an event listener,
+     *       myButton is the value of the currentTarget.

+     *
target	The Object that dispatched the event;
+     *       it is not always the Object listening for the event.
+     *       Use the currentTarget property to always access the
+     *       Object listening for the event.

+	 *

+	 *
+	 *  @eventType cuePoint
+	 */
+	public static const CUE_POINT:String = "cuePoint";
+
+	//--------------------------------------------------------------------------
+	//
+	// Constructor
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Constructor.
+	 *
+	 *  @param type The event type; indicates the action that caused the event.
+	 *
+	 *  @param bubbles Specifies whether the event can bubble up the display list hierarchy.
+	 *
+	 *  @param cancelable Specifies whether the behavior associated with
+	 *  the event can be prevented.
+	 *
+	 *  @param cuePointName The name of the cue point.
+	 *
+	 *  @param cuePointTime The time of the cue point, in seconds.
+	 *
+	 *  @param cuePointType The string "actionscript".
+	 */
+	public function CuePointEvent(type:String, bubbles:Boolean = false,
+								  cancelable:Boolean = false,
+								  cuePointName:String = null,
+								  cuePointTime:Number = NaN,
+								  cuePointType:String = null)
+	{
+		super(type, bubbles, cancelable);
+
+		this.cuePointName = cuePointName;
+		this.cuePointTime = cuePointTime;
+		this.cuePointType = cuePointType;
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------
+
+	//----------------------------------
+	//  cuePointName
+	//----------------------------------
+
+	/**
+	 *  The name of the cue point that caused the event.
+	 */
+	public var cuePointName:String;
+
+	//----------------------------------
+	//  cuePointTime
+	//----------------------------------
+
+	/**
+	 *  The time of the cue point that caused the event, in seconds.
+	 */
+	public var cuePointTime:Number;
+
+	//----------------------------------
+	//  cuePointType
+	//----------------------------------
+
+	/**
+	 *  The string "actionscript".
+	 */
+	public var cuePointType:String;
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden methods: Event
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	override public function clone():Event
+	{
+		return new CuePointEvent(type, bubbles, cancelable,
+								 cuePointName, cuePointTime, cuePointType);
+	}
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/mx/src/mx/events/CuePointEvent.as
+++ frameworks/projects/mx/src/mx/events/CuePointEvent.as
@@ -19,6 +19,11 @@
  *  cue point events dispatched by the VideoDisplay control.
  *
  *  @see mx.controls.VideoDisplay
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class CuePointEvent extends Event
 {
@@ -54,6 +59,11 @@
 	 *

 	 *
 	 *  @eventType cuePoint
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public static const CUE_POINT:String = "cuePoint";

@@ -78,6 +88,11 @@
 	 *  @param cuePointTime The time of the cue point, in seconds.
 	 *
 	 *  @param cuePointType The string "actionscript".
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function CuePointEvent(type:String, bubbles:Boolean = false,
 								  cancelable:Boolean = false,
@@ -104,6 +119,11 @@

 	/**
 	 *  The name of the cue point that caused the event.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public var cuePointName:String;

@@ -113,6 +133,11 @@

 	/**
 	 *  The time of the cue point that caused the event, in seconds.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public var cuePointTime:Number;

@@ -122,6 +147,11 @@

 	/**
 	 *  The string "actionscript".
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public var cuePointType:String;


Transferred from the Adobe Open Source Subversion Repository

Revision: 5099
Author:   gauravj@adobe.com
Date:     2009-02-27T03:43:02.639229Z

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

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

Modified Paths:
--------------
147 paths were modified

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

--- frameworks/projects/rpc/src/mx/rpc/wsdl/WSDLLoader.as
+++ frameworks/projects/rpc/src/mx/rpc/wsdl/WSDLLoader.as
@@ -81,6 +81,11 @@
     /**
      * Asynchronously loads a WSDL for a given URL, including resolving all
      * WSDL imports and includes and XML Schema imports and includes.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     override public function load(url:String):void
     {
@@ -170,6 +175,11 @@
      * This handler is triggered when all schema imports and
      * includes have loaded. This is necessary as the WSDL imports and
      * includes are likely to be finished before the schema sections.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     private function schemaLoadHandler(event:SchemaLoadEvent):void
     {
@@ -179,6 +189,11 @@
     /**
      * Checks whether a WSDL and all of its Schemas have finished loading.
      * If there are no loads outstanding, a WSDL load event will be dispatched.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     private function checkLoadsOutstanding():void
     {
@@ -208,6 +223,11 @@
      *
      * The WSDLLoader attempts to keep track of imports to avoid cyclic
      * dependencies.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     private function wsdlImports(wsdl:WSDL, parentLocation:String):void
     {


Transferred from the Adobe Open Source Subversion Repository

Revision: 5545
Author:   jimurphy@adobe.com
Date:     2009-03-25T19:00:52.330680Z

Log Message:
-----------
1st pass of rename according to the spec http://opensource.adobe.com/wiki/display/flexsdk/Dropping+the+Fx+Prefix

Flex now requires CSS Style declarations to declare @namespace rules and disambiguate between halo and spark components using CSS 3 namespace prefixes on type selectors. At compile time, this namespace information will be used to map type names to qualified ActionScript class names. At runtime, type selectors are matched on qualified ActionScript class name (for example mx.controls.Button rather than just Button). Flex 3 applications must be compiled with -compatibility-version=3.0.0 to get unqualified CSS type selector behavior.

QE: Yes, this build may help in updating test cases to use the new namespaces and class names.
Dev: Not yet
Doc: Not yet

Modified Paths:
--------------
748 paths were modified

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

--- frameworks/projects/spark/src/spark/core/IViewport.as
+++ frameworks/projects/spark/src/spark/core/IViewport.as
@@ -9,8 +9,10 @@
 //
 ////////////////////////////////////////////////////////////////////////////////

-package mx.core
+package spark.core
 {
+
+import mx.core.IVisualElement;

 public interface IViewport extends IVisualElement
 {


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

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


Missing timezone definition where it is required, http://xmpp.org/extensions/xep-0082.html#sect-id143999

git-svn-id: c197267f952b24206666de142881703007ca05d5@13244 b35dd754-fafc-0310-a699-88a17e54d16e

--- src/org/igniterealtime/xiff/util/DateTimeParser.as
+++ src/org/igniterealtime/xiff/util/DateTimeParser.as
@@ -135,6 +135,7 @@
 		{
 			var value:String = date2string(dateTime) + "T";
 			value += time2string(dateTime, ms);
+			value += "Z"; // Always UTC
 			return value;
 		}


- added constant for POSITION_FIXED

- added constant for POSITION_FIXED

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

--- src/reprise/css/propertyparsers/DisplayPosition.as
+++ src/reprise/css/propertyparsers/DisplayPosition.as
@@ -59,6 +59,7 @@
 		public static var POSITION_STATIC 			: String 	= "static";
 		public static var POSITION_ABSOLUTE 		: String 	= "absolute";
 		public static var POSITION_RELATIVE 		: String 	= "relative";
+		public static var POSITION_FIXED	 		: String 	= "fixed";

 		public static var OVERFLOW_VISIBLE 			: String 	= "visible";
 		public static var OVERFLOW_HIDDEN 			: String 	= "hidden";


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

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

 package spark.components
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 8505
Author:   hmuller@adobe.com
Date:     2009-07-10T15:13:56.033287Z

Log Message:
-----------
Guard SVN 84955 against optional null scrollbar skin parts.

QE Notes:
Doc Notes:
Bugs:  sdk-22184
Reviewer: Chet

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ScrollerLayout.as

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

--- frameworks/projects/spark/src/spark/components/supportClasses/ScrollerLayout.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ScrollerLayout.as
@@ -315,7 +315,7 @@
             hsb.setLayoutBoundsSize(Math.max(hsb.getMinBoundsWidth(), hsbW), hsbH);
             hsb.setLayoutBoundsPosition(0, h - hsbH);
         }
-        else
+        else if (hsb)
         {
             if (hsb.scaleX != 0) hsbScaleX = hsb.scaleX;
             if (hsb.scaleY != 0) hsbScaleY = hsb.scaleY;
@@ -331,7 +331,7 @@
             vsb.setLayoutBoundsSize(vsbW, Math.max(vsb.getMinBoundsHeight(), vsbH));
             vsb.setLayoutBoundsPosition(w - vsbW, 0);
         }
-        else
+        else if (vsb)
         {
             if (vsb.scaleX != 0) vsbScaleX = vsb.scaleX;
             if (vsb.scaleY != 0) vsbScaleY = vsb.scaleY;


Transferred from the Adobe Open Source Subversion Repository

Revision: 19239
Author:   rfrishbe@adobe.com
Date:     2010-12-09T22:02:33.221533Z

Log Message:
-----------
Fixing bug in ScrollerLayout where it assumed a horizontal and vertical scrollbar were there, and if not, it wouldn't allow touch scrolling.  The ability to touch scroll should be independent of whether the scrollbars exist.

QE notes:
Doc notes:
Bugs: SDK-28793
Reviewer: Eric
Tests run: checkintests, mustella Scroller
Is noteworthy for integration: No

Modified Paths:
--------------
/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ScrollerLayout.as

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

--- frameworks/projects/spark/src/spark/components/supportClasses/ScrollerLayout.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ScrollerLayout.as
@@ -566,42 +566,46 @@
         switch(scroller.getStyle("horizontalScrollPolicy"))
         {
             case ScrollPolicy.ON:
+				_canScrollHorizontally = true;
                 hsbVisible = true;
                 break;

             case ScrollPolicy.AUTO:
-                if (hsb && viewport)
+                if (viewport)
                 {
                     hAuto = true;
-                    hsbVisible = (contentW >= (viewportW + SDT));
+					_canScrollHorizontally = (contentW >= (viewportW + SDT));
+                    hsbVisible = (hsb && _canScrollHorizontally);
                 }
                 break;

             default:
+				_canScrollHorizontally = false;
                 hsbVisible = false;
         }
-        _canScrollHorizontally = hsbVisible;

         var vAuto:Boolean = false;
         var vsbTakeUpSpace:Boolean = true; // if visible
         switch(scroller.getStyle("verticalScrollPolicy"))
         {
            case ScrollPolicy.ON:
-                vsbVisible = true;
+                _canScrollVertically = true;
+                vsbVisible = true;
                 break;

             case ScrollPolicy.AUTO:
-                if (vsb && viewport)
+                if (viewport)
                 {
                     vAuto = true;
-                    vsbVisible = (contentH >= (viewportH + SDT));
+					_canScrollVertically = (contentH >= (viewportH + SDT));
+                    vsbVisible = (vsb && _canScrollVertically);
                 }
                 break;

             default:
+                _canScrollVertically = false;
                 vsbVisible = false;
         }
-        _canScrollVertically = vsbVisible;

         // if in touch mode, only show scrollbars if a scroll is currently in progress
         if (scroller.getStyle("interactionMode") == InteractionMode.TOUCH)


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

--- frameworks/projects/spark/src/spark/effects/supportClasses/AddActionInstance.as
+++ frameworks/projects/spark/src/spark/effects/supportClasses/AddActionInstance.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2005-2006 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.effects.supportClasses
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 7743
Author:   clucier@adobe.com
Date:     2009-06-11T13:53:10.203664Z

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

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

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

--- frameworks/projects/spark/src/spark/effects/supportClasses/SetActionInstance.as
+++ frameworks/projects/spark/src/spark/effects/supportClasses/SetActionInstance.as
@@ -16,6 +16,8 @@

 import mx.effects.effectClasses.ActionEffectInstance;
 import mx.styles.StyleManager;
+
+use namespace mx_internal;

 /**
  *  The SetActionInstance class implements the instance class
@@ -101,7 +103,7 @@
     {
         var val:*;

-        if (mx_internal::playReversed)
+        if (playReversed)
         {
              val = getStartValue();
              if (val !== undefined)


Transferred from the Adobe Open Source Subversion Repository

Revision: 17502
Author:   egeorgie@adobe.com
Date:     2010-08-27T20:50:45.488217Z

Log Message:
-----------
Fix SDK-27319 Left and right properties on a path with miter limit results in incorrect layout bounds.

In this change:
- iterate till the bounds converge for the non-rotation, miter joint case.

QE notes:  None
Doc notes: None
Bugs: SDK-27319
Reviewer: Kevin
Tests run: cyclone
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/primitives/Path.as</path>

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

--- frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
+++ frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
@@ -4355,7 +4355,15 @@
                 height = minHeight;
             }
         }
-
+
+        setActualSize(width, height);
+    }
+
+    /**
+     *  @private
+     */
+    mx_internal function setActualSize(width:Number, height:Number):void
+    {
         if (_width != width || _height != height)
         {
             var oldWidth:Number = _width;
@@ -4363,10 +4371,10 @@

             _width = width;
             _height = height;
-
-			if (layoutFeatures)  // mirroring transform depends on width
+
+            if (layoutFeatures)  // mirroring transform depends on width
             {
-				layoutFeatures.layoutWidth = width;
+                layoutFeatures.layoutWidth = width;
                 invalidateTransform();
             }

@@ -4374,7 +4382,7 @@
                 dispatchPropertyChangeEvent("width", oldWidth, width);
             if (height != oldHeight)
                 dispatchPropertyChangeEvent("height", oldHeight, height);
-
+
             invalidateDisplayList();
         }
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 7155
Author:   jszeto@adobe.com
Date:     2009-05-20T21:39:39.764544Z

Log Message:
-----------
Line bug fixes when using gradient strokes

SDK-21272 - Lines with gradient (LinearGradientStroke) draw as solid color if perfectly vertical / horizontal

StrokedElement was not taking the stroke weight into account when passing the bounds to the stroke. The gradient strokes rely on the bounds to help them transform the gradient to fit the shape of the stroke.

SDK-21274 - Line with gradient stroke does not draw properly

This bug occurs when the Line has a non-zero x and/or y values and is sharing a DisplayObject. StrokedElement was passing the stroke the measuredX and measuredY position as part of the bounds. Instead, I've changed it to pass in drawX + measuredX and drawY + measuredY which accounts for the drawing offset position.

QE Notes: Test Line w/ gradient strokes
Doc Notes: None
Bugs: SDK-21272, SDK-21274
Reviewer: Evtim

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/StrokedElement.as

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

--- frameworks/projects/spark/src/spark/primitives/supportClasses/StrokedElement.as
+++ frameworks/projects/spark/src/spark/primitives/supportClasses/StrokedElement.as
@@ -167,7 +167,10 @@
     protected function beginDraw(g:Graphics):void
     {
         if (stroke)
-            stroke.draw(g,new Rectangle(measuredX, measuredY, width, height));
+            stroke.draw(g,new Rectangle(drawX + measuredX,
+            						    drawY + measuredY,
+            						    Math.max(width, stroke.weight),
+            						    Math.max(height, stroke.weight)));
         else
             g.lineStyle();


Fix dialog centering in the editor to use UI root size instead of screen size, which may not be the same.

--- bin/Data/Scripts/Editor/EditorUI.as
+++ bin/Data/Scripts/Editor/EditorUI.as
@@ -1114,7 +1114,7 @@
 void CenterDialog(UIElement@ element)
 {
     IntVector2 size = element.size;
-    element.SetPosition((graphics.width - size.x) / 2, (graphics.height - size.y) / 2);
+    element.SetPosition((ui.root.width - size.x) / 2, (ui.root.height - size.y) / 2);
 }

 void CreateContextMenu()


Store references to proxy pairs to avoid garbage collection.

Adding an event listener is not enough to keep a proxy pair alive. Pairs
could be garbage-collected at unpredictable times. We were able to
provoke this by running more than one pair at a time with servers on
localhost; perhaps it was the greater memory pressure (64 KB blocks at a
time) that exposed it.

--- swfcat.as
+++ swfcat.as
@@ -50,6 +50,9 @@
         /* Number of proxy pairs currently connected (up to
            MAX_NUM_PROXY_PAIRS). */
         private var num_proxy_pairs:int = 0;
+        /* References to active proxy pairs, to prevent them from being
+           garbage collected. */
+        private var proxy_pairs:Array;

         private var fac_addr:Object;

@@ -72,6 +75,8 @@
             stage.align = StageAlign.TOP_LEFT;

             badge = new Badge();
+
+            proxy_pairs = [];

             if (RATE_LIMIT)
                 rate_limit = new BucketRateLimit(RATE_LIMIT * RATE_LIMIT_HISTORY, RATE_LIMIT_HISTORY);
@@ -189,9 +194,12 @@
                 puts("Error: " + e);
                 return;
             }
+            proxy_pairs.push(proxy_pair);
             proxy_pair.addEventListener(Event.COMPLETE, function(e:Event):void {
                 proxy_pair.log("Complete.");
                 num_proxy_pairs--;
+                /* Delete from the list of active proxy pairs. */
+                proxy_pairs.splice(proxy_pairs.indexOf(proxy_pair), 1);
                 badge.proxy_end();
             });
             proxy_pair.connect();


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

--- frameworks/projects/framework/src/mx/binding/utils/ChangeWatcher.as
+++ frameworks/projects/framework/src/mx/binding/utils/ChangeWatcher.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2006-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.binding.utils
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 14999
Author:   klin@adobe.com
Date:     2010-03-24T20:33:13.171795Z

Log Message:
-----------
Merge revision 14996 from 4.x to trunk.

Update for implementing ILayoutDirectionElement in BitmapAsset and SpriteAsset. Instead of trying to handle transforming the assets directly, we leverage AdvancedLayoutFeatures to update the transform matrix of the assets. The main difference between the asset implementations and other ones is that width/height and scaleX/Y are tied to each other. The setters of each of those properties will set the backing value of their respective property. Another change is that we use the existence of layoutFeatures to keep track of whether the asset needs to de-mirror instead of using the mirror variable.

Also, I removed a FIXME from AdvancedLayoutFeatures. We already short-circuit this in the classes that own the AdvancedLayoutFeatures. I changed the FIXMEs for the x getters to TODOs.

QE notes: No
Doc notes: No
Bugs: SDK-25879, SDK-25894
Reviewer: Hans, Carol, Evtim
Tests run: checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/SpriteAsset.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/spark/src/mx/core/UIFTETextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/BitmapAsset.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/AdvancedLayoutFeatures.as</path>

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

--- frameworks/projects/framework/src/mx/core/AdvancedLayoutFeatures.as
+++ frameworks/projects/framework/src/mx/core/AdvancedLayoutFeatures.as
@@ -621,7 +621,6 @@
 	 */
 	public function set mirror(value:Boolean):void
 	{
-		// FIXME(hmuller) is it safe to short-circuit this?
 		_mirror = value;
 		invalidate();
 	}


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

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

 package mx.managers
 {


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

--- frameworks/projects/framework/src/mx/managers/IFocusManagerGroup.as
+++ frameworks/projects/framework/src/mx/managers/IFocusManagerGroup.as
@@ -0,0 +1,62 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2005-2006 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.managers
+{
+
+/**
+ *  The IFocusManagerGroup interface defines the interface that
+ *  any component must implement if it is grouped in sets,
+ *  where only one member of the set can be selected at any given time.
+ *  For example, a RadioButton implements IFocusManagerGroup
+ *  because a set of RadioButtons in the same group
+ *  can only have one RadioButton selected at any one time,
+ *  and the FocusManager will make sure not to give focus to the RadioButtons
+ *  that are not selected in response to moving focus via the Tab key.
+ */
+public interface IFocusManagerGroup
+{
+	//--------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------
+
+	//----------------------------------
+	//  groupName
+	//----------------------------------
+
+	/**
+	 *	The name of the group of controls to which the control belongs.
+	 */
+	function get groupName():String;
+
+	/**
+	 *  @private
+	 */
+	function set groupName(value:String):void;
+
+	//----------------------------------
+	//  selected
+	//----------------------------------
+
+	/**
+	 *	A flag that indicates whether this control is selected.
+	 */
+	function get selected():Boolean;
+
+	/**
+	 *  @private
+	 */
+	function set selected(value:Boolean):void;
+}
+
+}


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

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

 package mx.skins.halo
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 3063
Author:   smgilson@adobe.com
Date:     2008-09-02T20:13:48.488342Z

Log Message:
-----------
Fix invalid HTML char code in ASDoc comment: %64; should have been @

Checkin Test Passed: Yes
QA: No
Bug:
Doc: No

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/TreeEvent.as

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

--- frameworks/projects/mx/src/mx/events/TreeEvent.as
+++ frameworks/projects/mx/src/mx/events/TreeEvent.as
@@ -214,7 +214,7 @@
      *  Storage for the item property.
      *  If you populate the Tree from XML data, access
      *  the properties for the node as
-     *  event.item.&64;attribute_name.
+     *  event.item.@attribute_name.
      */
     public var item:Object;


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

--- frameworks/projects/mx/src/mx/controls/List.as
+++ frameworks/projects/mx/src/mx/controls/List.as
@@ -1,13 +1,3 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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.controls
 {


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

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

 package mx.managers
 {


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/framework/src/mx/effects/effectClasses/TweenEffectInstance.as
+++ frameworks/projects/framework/src/mx/effects/effectClasses/TweenEffectInstance.as
@@ -29,6 +29,11 @@
  *
  *  @see mx.effects.Tween
  *  @see mx.effects.TweenEffect
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class TweenEffectInstance extends EffectInstance
 {
@@ -44,6 +49,11 @@
 	 *  Constructor.
 	 *
 	 *  @param target The Object to animate with this effect.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function TweenEffectInstance(target:Object)
 	{
@@ -84,6 +94,11 @@
 	 *  as the TweenEffect class.
 	 *
 	 *  @see mx.effects.TweenEffect#easingFunction
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public var easingFunction:Function;

@@ -111,6 +126,11 @@
 	 *  This value is between 0 and the value of the
 	 *  duration property.
 	 *  Use the seek() method to change the position of the effect.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	override public function get playheadTime():Number
 	{
@@ -130,6 +150,11 @@
 	 *  in the override of the EffectInstance.play() method
 	 *  and assign it to the tween property.
 	 *  Use the createTween() method to create your Tween object.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public var tween:Tween;

@@ -190,6 +215,11 @@
   	 *
   	 *  @param playheadTime The position, in milliseconds, between 0
 	 *  and the value of the duration property.
+  	 *
+  	 *  @langversion 3.0
+  	 *  @playerversion Flash 9
+  	 *  @playerversion AIR 1.1
+  	 *  @productversion Flex 3
   	 */
     override public function seek(playheadTime:Number):void
 	{
@@ -212,6 +242,11 @@
 	 *
The effect dispatches the effectEnd event.

 	 *
 	 *  @see mx.effects.EffectInstance#end()
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	override public function end():void
 	{
@@ -280,6 +315,11 @@
 	 *  where it left off, instead of suddenly jumping ahead.
 	 *
 	 *  @return The newly created Tween instance.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	protected function createTween(listener:Object,
 						  		     startValue:Object,
@@ -349,6 +389,11 @@
 	 *  a Tween object that plays the effect over a time period.
 	 *  The value argument can be either a Number
 	 *  or an Array of Numbers.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function onTweenUpdate(value:Object):void
 	{
@@ -378,6 +423,11 @@
 	 *  a Tween object that plays the effect over a time period.
      *  The value argument can be either a Number
 	 *  or an Array of Numbers.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function onTweenEnd(value:Object):void
 	{


fixed typo

fixed typo

--- WeaveJS/src/weavejs/data/source/CachedDataSource.as
+++ WeaveJS/src/weavejs/data/source/CachedDataSource.as
@@ -1,4 +1,4 @@
-\/* ***** BEGIN LICENSE BLOCK *****
+/* ***** BEGIN LICENSE BLOCK *****
  *
  * This file is part of Weave.
  *


Transferred from the Adobe Open Source Subversion Repository

Revision: 18602
Author:   chiedozi@adobe.com
Date:     2010-11-16T01:12:30.896435Z

Log Message:
-----------
The navigator skinpart is now bindable on MobileApplication and TabbedMobileApplicaiton
ViewNavigator.length is now bindable
ViewNavigator now ignores push and replace operations that don't provide a view factory class

QE notes:
Doc notes:
Bugs: SDK-28531
Reviewer: Ryan
Tests run: checkintests
Is noteworthy for integration:

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/MobileApplication.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/TabbedMobileApplication.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/MobileApplicationBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorApplicationBase.as
+++ frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorApplicationBase.as
@@ -416,7 +416,6 @@
      */
     protected function backKeyHandler(event:KeyboardEvent):void
     {
-
     }

     /**
@@ -550,6 +549,18 @@

     /**
      *  @private
+     *  The key model employeed by MobileApplication is to listen for the down
+     *  event but run the back key handling logic on up.  The reasoning for this
+     *  is that the down event is dispatched multiple times while the user
+     *  presses it down.  But the desired back logic should only happen once.
+     *  So when a down event is received, the application only tracks if it has been
+     *  canceled by the developer.
+     *
+     *  It is still necessary to listen to the down key because the application
+     *  needs to cancel the device's default back logic at this stage.  For example,
+     *  on android, when the back key is pressed, the default behavior is to
+     *  suspend the application and return to the home screen.  This functionality
+     *  can only be canceled when the down event is received.
      */
     private function deviceKeyDownHandler(event:KeyboardEvent):void
     {


XIFF-40: Added clone functionality to RoomEvent.

--- src/org/jivesoftware/xiff/events/RoomEvent.as
+++ src/org/jivesoftware/xiff/events/RoomEvent.as
@@ -24,8 +24,6 @@
 package org.jivesoftware.xiff.events
 {
 	import flash.events.Event;
-
-	import org.jivesoftware.xiff.data.Message;

 	public class RoomEvent extends Event
 	{
@@ -136,5 +134,21 @@
 		{
 			return _reason;
 		}
+
+		public override function clone():Event
+		{
+			var event:RoomEvent = new RoomEvent(this.type, this.bubbles, this.cancelable);
+			event._subject = this._subject;
+			event._data = this._data;
+			event._errorCondition = this._errorCondition;
+			event._errorMessage = this._errorMessage;
+			event._errorType = this._errorType;
+			event._errorCode = this._errorCode;
+			event._nickname = this._nickname;
+			event._from = this._from;
+			event._reason = this._reason;
+
+			return event;
+		}
 	}
 }


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

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


Use Log.dumpStack() where the Java source used Thread.dumpStack().

git-svn-id: a1a4b28b82a3276cc491891159dd9963a0a72fae@4633 542714f4-19e9-0310-aa3c-eee0fc999fb1

--- src/as/com/threerings/presents/util/SafeSubscriber.as
+++ src/as/com/threerings/presents/util/SafeSubscriber.as
@@ -118,6 +118,7 @@
                 return;
             }
             log.warning("Inactive safesub asked to unsubscribe " + this + ".");
+            Log.dumpStack();
         }

         // note that we no longer desire to be subscribed
@@ -128,6 +129,7 @@
             if (_object != null) {
                 log.warning("Incroyable! A safesub has an object and is " +
                             "pending!? " + this + ".");
+                Log.dumpStack();
             } else {
                 // nothing to do but wait for the subscription to complete
                 // at which point we'll pitch the object post-haste
@@ -139,6 +141,7 @@
         if (_object == null) {
             log.warning("Zut alors! A safesub _was_ active and not " +
                         "pending yet has no object!? " + this + ".");
+            Log.dumpStack();
             // nothing to do since we're apparently already unsubscribed
             return;
         }


Dispatch a COMPLETE event when we finish loading media.

git-svn-id: b675b909355d5cf946977f44a8ec5a6ceb3782e4@679 ed5b42cb-e716-0410-a449-f6a68f950b19

--- src/as/com/threerings/flash/MediaContainer.as
+++ src/as/com/threerings/flash/MediaContainer.as
@@ -79,6 +79,13 @@
 [Event(name="init", type="flash.events.Event")]

 /**
+ * Dispatched when we've shown new media.
+ *
+ * @eventType flash.events.Event.COMPLETE
+ */
+[Event(name="complete", type="flash.events.Event")]
+
+/**
  * Dispatched when we've unloaded our content... always. The LoaderInfo's UNLOAD event
  * is only dispatched if the INIT event has already been dispatched and not if you cancel a
  * load before it INIT.
@@ -231,7 +238,7 @@
      */
     protected function didShowNewMedia () :void
     {
-        // nothing right now, but call super() you overriders.
+        dispatchEvent(new Event(Event.COMPLETE));
     }

     /**


removed multiple calls to toLowerCase

removed multiple calls to toLowerCase

--- src/com/pblabs/networking/elements/NetRoot.as
+++ src/com/pblabs/networking/elements/NetRoot.as
@@ -69,6 +69,8 @@
          return nr;
       }

+	  private static var newElemName:String; //temp object
+
       private static function parseFromXML(x:XML, container:INetElementContainer):void
       {
          for each(var e:XML in x.*)
@@ -76,31 +78,31 @@
             var ne:INetElement = null;

             // Identify the kind of element we need to add...
-            var newElemName:String  = e.name().toString();
-
-            if(newElemName.toLowerCase() == "string")
+            newElemName  = e.name().toString().toLowerCase(); //store toLowerCase result in static var to reduce calls to toLowerCase (it uses a lot of memory allocation )
+
+            if(newElemName == "string")
             {
                ne = new StringElement();
             }
-            else if(newElemName.toLowerCase() == "cachedstring")
+            else if(newElemName == "cachedstring")
             {
                ne = new CachedStringElement();
             }
-            else if(newElemName.toLowerCase() == "float")
+            else if(newElemName == "float")
             {
                ne = new FloatElement();
             }
-            else if(newElemName.toLowerCase() == "flag")
+            else if(newElemName == "flag")
             {
                ne = new FlagElement();
                parseFromXML(e, ne as INetElementContainer);
             }
-            else if(newElemName.toLowerCase() == "dirtyflag")
+            else if(newElemName == "dirtyflag")
             {
                ne = new DirtyFlagElement();
                parseFromXML(e, ne as INetElementContainer);
             }
-            else if(newElemName.toLowerCase() == "rangedint")
+            else if(newElemName == "rangedint")
             {
                ne = new RangedIntElement();
             }


Fixed doc.

Fixed doc.

git-svn-id: a3e1eb16dde062992de22c830ed8045c8013209a@167 c613c5cb-e716-0410-b11b-feb51c14d237

--- src/as/com/threerings/ezgame/EZGameControl.as
+++ src/as/com/threerings/ezgame/EZGameControl.as
@@ -42,7 +42,7 @@
  *
  * @eventType com.threerings.ezgame.StateChangedEvent.GAME_ENDED
  */
-[Event(name="GameStarted", type="com.threerings.ezgame.StateChangedEvent")]
+[Event(name="GameEnded", type="com.threerings.ezgame.StateChangedEvent")]

 /**
  * Dispatched when a property has changed in the shared game state.


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

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

 package mx.utils
 {


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

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

 package mx.skins.halo
 {