Transferred from the Adobe Open Source Subversion Repository

Revision: 6753
Author:   srahim@adobe.com
Date:     2009-05-08T14:46:34.979202Z

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/CheckBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/ResizeMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/PopUpAnchor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/MXMLComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VideoPlayer.as</path>

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

--- frameworks/projects/spark/src/spark/components/Button.as
+++ frameworks/projects/spark/src/spark/components/Button.as
@@ -36,7 +36,19 @@
  *  rollOut, mouseDown, and
  *  mouseUp events whether enabled or disabled.

  *
+ *  @mxml
The <Button> tag inherits all of the tag
+ *  attributes of its superclass and adds the following tag attributes:

+ *
+ *

+ *  <Button
+
+ *    Properties
+ *    emphasized="false"
+ *  />
+ *

+ *
  *  @includeExample examples/ButtonExample.mxml
+ *  @see spark.skins.default.ButtonSkin
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -86,11 +98,16 @@
     [Inspectable(category="General", defaultValue="false")]

     /**
-     *  Reflect the default/emphasized as potentially requested by the
-     *  focus manager.
+     * Reflects the default button as requested by the
+     * focus manager. This property is typically set
+     * by the focus manager when a button serves as the
+     * default button in a container or form.
+     * When set to true, the emphasized style
+     * is appended to the button's styleName
+     * property.
      *
      *  @default false
-     *
+     *  @see mx.managers.FocusManager.defaultButton
      *  @langversion 3.0
      *  @playerversion Flash 10
      *  @playerversion AIR 1.5


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 20764
Author:   smgilson@adobe.com
Date:     2011-03-10T17:16:24.059260Z

Log Message:
-----------
Merge 20761 - ASDoc updates

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/LinkedList.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/Base64Encoder.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/ObjectUtil.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/rpc/src/mx/utils/URLUtil.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/LinkedListNode.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/ObjectProxy.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/HSBColor.as</path>
<path kind="dir" action="M">/private/flex/sdk/trunk</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/NameUtil.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/rpc/src/mx/utils/RpcClassAliasInitializer.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/XMLNotifier.as</path>

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

--- frameworks/projects/rpc/src/mx/utils/RpcClassAliasInitializer.as
+++ frameworks/projects/rpc/src/mx/utils/RpcClassAliasInitializer.as
@@ -46,6 +46,13 @@
 import mx.messaging.messages.SOAPMessage;
 import mx.utils.ObjectProxy;

+/**
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 2.5
+ *  @productversion Flex 4.5
+ */
 public class RpcClassAliasInitializer
 {
     /**
@@ -54,8 +61,8 @@
      * classes for AMF serialization needed by the flex rpc library.
      *
      *  @langversion 3.0
-     *  @playerversion Flash 10.1
-     *  @playerversion AIR 2.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public static function registerClassAliases():void


creates the output directory for the AIR application descriptor, if necessary (closes #17)

--- src/ASConfigC.as
+++ src/ASConfigC.as
@@ -764,17 +764,20 @@
 			{
 				var debugOutputDir:String = path.join(outputDir, "bin", "js-debug");
 				var debugDescriptorOutputPath:String = path.resolve(debugOutputDir, path.basename(this._airDescriptor));
+				mkdirp["sync"](path.dirname(debugDescriptorOutputPath));
 				fs.writeFileSync(debugDescriptorOutputPath, descriptor, "utf8");
 				if(!this._debugBuild)
 				{
 					var releaseOutputDir:String = path.join(outputDir, "bin", "js-release");
 					var releaseDescriptorOutputPath:String = path.resolve(releaseOutputDir, path.basename(this._airDescriptor));
+					mkdirp["sync"](path.dirname(releaseDescriptorOutputPath));
 					fs.writeFileSync(releaseDescriptorOutputPath, descriptor, "utf8");
 				}
 			}
 			else //swf
 			{
 				var descriptorOutputPath:String = findAIRDescriptorOutputPath(this._mainFile, this._airDescriptor, this._outputPath, true);
+				mkdirp["sync"](path.dirname(descriptorOutputPath));
 				fs.writeFileSync(descriptorOutputPath, descriptor, "utf8");
 			}
 		}


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

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

 package spark.skins.spark
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 6221
Author:   mhorn@adobe.com
Date:     2009-04-23T19:28:12.018527Z

Log Message:
-----------
add ASDoc class level descriptions

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/ButtonBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/SkinnableDataContainerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/ApplicationSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerPlayPauseButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/ButtonBarFirstButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/DefaultItemRenderer.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/FocusSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/ScrollBarDownButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VSliderSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VSliderThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/SkinnableContainerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VScrollBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/ListSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/HSliderTrackSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/ButtonBarLastButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/DefaultButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/ScrollBarUpButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/ScrollerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/SpinnerIncrButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/DropDownListSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/HScrollBarThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VSliderTrackSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/TextInputSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/NumericStepperSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/SpinnerDecrButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VScrollBarThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerMuteButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/ButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/ButtonBarMiddleButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/ToggleButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/TextAreaSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/ScrollBarRightButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/SpinnerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/HScrollBarTrackSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/DropDownListButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/CheckBoxSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/ScrollBarLeftButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/RadioButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/NumericStepperTextInputSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/HSliderThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/HSliderSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/HScrollBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/DefaultComplexItemRenderer.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VScrollBarTrackSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/PanelSkin.mxml</path>

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

--- frameworks/projects/spark/src/spark/skins/spark/DefaultItemRenderer.as
+++ frameworks/projects/spark/src/spark/skins/spark/DefaultItemRenderer.as
@@ -11,6 +11,7 @@

 -->

+<!--- The default skin class for a Spark DefaultItemRenderer class. -->
 <s:ItemRenderer focusEnabled="false" xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark">

 	<fx:Script>


sorton

sorton

--- test/src/TestSortOn.as
+++ test/src/TestSortOn.as
@@ -7,38 +7,65 @@
 	 */
 	public class TestSortOn extends Sprite
 	{
-		private var opt:int;
 		private var sortNames:Array;
+		private var sortNamesOne:Array = [];
+		private var muler:Number;
+		private var zeroStr:String = String.fromCharCode(0);
 		public function TestSortOn()
 		{
 			var arr:Array = [
-				{a:1},
+				{a:1,b:2},
 				{a:2},
 				{a:3},
-				{a:1},
+				{a:1,b:4},
 				{a:13}
 			];
-			//arr.sortOn("a");
-			sortOn(arr, "a", 0);
+			sortOn(arr, ["a","b"],Array.NUMERIC|Array.DESCENDING);
+			trace(JSON.stringify(arr, null, 4));
+			arr.sortOn(["a","b"],Array.NUMERIC|Array.DESCENDING);
 			trace(JSON.stringify(arr, null, 4));
 		}

-		private function sortOn(arr:Array,names:Object,opt:int):void{
-			this.opt = opt;
+		private function sortOn(arr:Array,names:Object,opt:int=0):void{
 			if (names is Array){
 				sortNames = names as Array;
 			}else{
-				sortNames = [names];
+				sortNamesOne[0] = names;
+				sortNames = sortNamesOne;
 			}
-			arr.sort(compare);
+			muler = (Array.DESCENDING & opt) > 0?-1: 1;
+			if(opt&Array.NUMERIC){
+				arr.sort(compareNumber);
+			}else if (opt&Array.CASEINSENSITIVE){
+				arr.sort(compareStringCaseinsensitive);
+			}else{
+				arr.sort(compareString);
+			}
+		}
+		private function compareStringCaseinsensitive(a:Object, b:Object):int{
+			for each(var n:String in sortNames){
+				var v:int = (a[n]||zeroStr).toString().toLowerCase().localeCompare((b[n]||zeroStr).toString().toLowerCase());
+				if (v != 0){
+					return v*muler;
+				}
+			}
+			return 0;
+		}
+		private function compareString(a:Object, b:Object):int{
+			for each(var n:String in sortNames){
+				var v:int = (a[n]||zeroStr).toString().localeCompare((b[n]||zeroStr).toString());
+				if (v != 0){
+					return v*muler;
+				}
+			}
+			return 0;
 		}

-		private function compare(a:Object, b:Object):int{
+		private function compareNumber(a:Object, b:Object):int{
 			for each(var n:String in sortNames){
-				if (a[n]>b[n]){
-					return 1;
-				}else {
-					return -1;
+				var v:int = a[n] - b[n];
+				if (v!=0){
+					return v*muler;
 				}
 			}
 			return 0;


fixed null pointer error.

fixed null pointer error.

Change-Id: Ibf4b3b22d28bd69aa48bed70e9d8129281a121fd

--- WeaveUI/src/weave/visualization/tools/SimpleVisTool.as
+++ WeaveUI/src/weave/visualization/tools/SimpleVisTool.as
@@ -164,7 +164,7 @@
 		}
 		private function updateTitleLabel():void
 		{
-			if (!parent)
+			if (!createdChildren)
 				return callLater(updateTitleLabel);

 			LinkableTextFormat.defaultTextFormat.copyToStyle(visTitle);
@@ -198,7 +198,7 @@

 		private function handleTitleToggleChange():void
 		{
-			if (!parent)
+			if (!createdChildren)
 			{
 				callLater(handleTitleToggleChange);
 				return;


Fix bug in new XObjArrayCollection class

--- as3/xobjas3/src/com/rpath/xobj/XObjArrayCollection.as
+++ as3/xobjas3/src/com/rpath/xobj/XObjArrayCollection.as
@@ -63,12 +63,17 @@

     public function addItemIfAbsent(value:Object):Boolean
     {
-        return XObjUtils.addItemIfAbsent(this, value);
+        if (getItemIndex(value) == -1)
+        {
+            addItem(value);
+            return true;
+        }
+        return false;
     }

     public function removeItemIfPresent(object:Object):Boolean
     {
-        return XObjUtils.removeItemIfPresent(this, public);
+        return XObjUtils.removeItemIfPresent(this, object);
     }

     public function isElementMember(propName:String):Boolean


use Mesh.DEFAULT_EFFECT as the fallback value for ParserOptions.effect

--- src/aerys/minko/type/loader/parser/ParserOptions.as
+++ src/aerys/minko/type/loader/parser/ParserOptions.as
@@ -1,6 +1,7 @@
 package aerys.minko.type.loader.parser
 {
 	import aerys.minko.render.effect.Effect;
+	import aerys.minko.scene.node.mesh.Mesh;
 	import aerys.minko.type.loader.ILoader;
 	import aerys.minko.type.loader.SceneLoader;
 	import aerys.minko.type.loader.TextureLoader;
@@ -133,7 +134,7 @@
 			_dependencyLoaderClosure	= dependencyLoaderClosure || _dependencyLoaderClosure;
             _loadSkin                   = loadSkin;
 			_mipmapTextures				= mipmapTextures;
-			_meshEffect					= meshEffect;
+			_meshEffect					= meshEffect || Mesh.DEFAULT_EFFECT;
 			_vertexStreamUsage			= vertexStreamUsage;
 			_indexStreamUsage			= indexStreamUsage;
 			_parser						= parser;


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 5770
Author:   gruehle@adobe.com
Date:     2009-03-30T20:58:54.529722Z

Log Message:
-----------
Add [Alternative] metadata to the Halo components that have a Gumbo replacement.

Bugs: SDK-20190
QA notes: none
Doc notes: Additional ASDoc comments added for many of the classes. These should all be reviewed.
Reviewer: Chet

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TileList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/RadioButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/HSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Zoom.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ToggleButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/HBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ViewStack.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/RadioButtonGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ControlBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Cubic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/VSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Fade.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/framework/src/mx/effects/RemoveChildAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/TweenEffect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/WipeRight.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Sine.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/VBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Glow.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/CheckBox.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/framework/src/mx/effects/easing/Quartic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Box.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/WipeLeft.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/HScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ApplicationControlBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Linear.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Quintic.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/framework/src/mx/containers/Tile.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Quadratic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/AddChildAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/WipeDown.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Rotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/SetPropertyAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Canvas.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Resize.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/Blur.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/LinkBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Move.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/controls/HorizontalList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/WipeUp.as</path>

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

--- frameworks/projects/framework/src/mx/effects/Tween.as
+++ frameworks/projects/framework/src/mx/effects/Tween.as
@@ -22,6 +22,13 @@
 import mx.events.TweenEvent;

 use namespace mx_internal;
+
+/**
+ *  Tween is the underlying animation class for the effects in Flex 3. As of Flex 4, the new
+ *  effects use the new Animation class to provide similar functionality.
+ */
+[Alternative(replacement="spark.effects.Animation", since="4.0")]
+
 /**
  *  The Tween class defines a tween, a property animation performed
  *  on a target object over a period of time.


Transferred from the Adobe Open Source Subversion Repository

Revision: 3222
Author:   jimurphy@adobe.com
Date:     2008-09-16T14:09:08.134976Z

Log Message:
-----------
Merged 3.0.x revisions 3157,3162,3165-3166,3168,3177,3180-3183,3185,3187,3189,3199 -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TileList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/RadioButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.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/managers/LayoutManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/build_framework.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</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/framework/src/mx/events/InterDragManagerEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextFormat.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridHeader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/InterManagerRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.as</path>

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

--- frameworks/projects/mx/src/mx/controls/RadioButton.as
+++ frameworks/projects/mx/src/mx/controls/RadioButton.as
@@ -604,6 +604,9 @@
      */
     override protected function keyDownHandler(event:KeyboardEvent):void
     {
+    	if (!enabled)
+    		return;
+
         switch (event.keyCode)
         {
             case Keyboard.DOWN:


Transferred from the Adobe Open Source Subversion Repository

Revision: 7274
Author:   chaase@adobe.com
Date:     2009-05-26T17:35:32.210331Z

Log Message:
-----------
Fixed several feature-complete effects bugs, plus one ScrollBar bug.

QE Notes: None
Doc Notes: None
Bugs: sdk-21093, sdk-21130, sdk-21243, sdk-21128, sdk-20698, sdk-20125, sdk-21138
Reviewer: Jason
tests: checkintests mustella effects cyclone

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Effect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateInstance.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/projects/flex4/src/spark/effects/animation/IAnimationTarget.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/FadeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/CompositeEffect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Fade.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Resize.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/AnimationTarget.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/spark/effects/AnimateTransform.as</path>

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

--- frameworks/projects/spark/src/spark/effects/Resize.as
+++ frameworks/projects/spark/src/spark/effects/Resize.as
@@ -261,7 +261,7 @@
      * we need to restore explicit height/width values.
      */
     override mx_internal function captureValues(propChanges:Array,
-        setStartValues:Boolean):Array
+        setStartValues:Boolean, targetsToCapture:Array = null):Array
     {
         var propertyChanges:Array = super.captureValues(propChanges, setStartValues);

@@ -269,7 +269,13 @@
         {
             var n:int = propertyChanges.length;
             for (var i:int = 0; i < n; i++)
-                propertyChanges[i].stripUnchangedValues = false;
+            {
+                if (targetsToCapture != null &&
+                    targetsToCapture.indexOf(propChanges[i].target) >= 0)
+                {
+                    propertyChanges[i].stripUnchangedValues = false;
+                }
+            }
         }
         return propertyChanges;
     }


Widened.

Widened.

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

--- src/as/com/threerings/crowd/chat/client/ChatDirector.as
+++ src/as/com/threerings/crowd/chat/client/ChatDirector.as
@@ -57,25 +57,21 @@
 import com.threerings.crowd.chat.data.UserSystemMessage;

 /**
- * The chat director is the client side coordinator of all chat related
- * services. It handles both place constrained chat as well as direct
- * messaging.
+ * The chat director is the client side coordinator of all chat related services. It handles both
+ * place constrained chat as well as direct messaging.
  */
 public class ChatDirector extends BasicDirector
     implements LocationObserver, MessageListener
 {
     /**
-     * Creates a chat director and initializes it with the supplied
-     * context. The chat director will register itself as a location
-     * observer so that it can automatically process place constrained
-     * chat.
+     * Creates a chat director and initializes it with the supplied context. The chat director will
+     * register itself as a location observer so that it can automatically process place
+     * constrained chat.
      *
      * @param msgmgr the message manager via which we do our translations.
-     * @param bundle the message bundle from which we obtain our
-     * chat-related translation strings.
-     */
-    public function ChatDirector (
-            ctx :CrowdContext, msgmgr :MessageManager, bundle :String)
+     * @param bundle the message bundle from which we obtain our chat-related translation strings.
+     */
+    public function ChatDirector (ctx :CrowdContext, msgmgr :MessageManager, bundle :String)
     {
         super(ctx);

@@ -88,8 +84,7 @@
         _cctx.getLocationDirector().addLocationObserver(this);

         if (_bundle == null || _msgmgr == null) {
-            Log.getLog(this).warning(
-                "Null bundle or message manager given to ChatDirector");
+            Log.getLog(this).warning("Null bundle or message manager given to ChatDirector");
             return;
         }
         var msg :MessageBundle = _msgmgr.getBundle(_bundle);
@@ -104,9 +99,8 @@
     }

     /**
-     * Adds the supplied chat display to the front of the chat display list. It
-     * will subsequently be notified of incoming chat messages as well as tell
-     * responses.
+     * Adds the supplied chat display to the front of the chat display list. It will subsequently
+     * be notified of incoming chat messages as well as tell responses.
      */
     public function pushChatDisplay (display :ChatDisplay) :void
     {
@@ -114,9 +108,8 @@
     }

     /**
-     * Adds the supplied chat display to the chat display list. It will
-     * subsequently be notified of incoming chat messages as well as tell
-     * responses.
+     * Adds the supplied chat display to the chat display list. It will subsequently be notified of
+     * incoming chat messages as well as tell responses.
      */
     public function addChatDisplay (display :ChatDisplay) :void
     {
@@ -124,8 +117,8 @@
     }

     /**
-     * Removes the specified chat display from the chat display list. The
-     * display will no longer receive chat related notifications.
+     * Removes the specified chat display from the chat display list. The display will no longer
+     * receive chat related notifications.
      */
     public function removeChatDisplay (display :ChatDisplay) :void
     {
@@ -133,9 +126,8 @@
     }

     /**
-     * Adds the specified chat filter to the list of filters.  All
-     * chat requests and receipts will be filtered with all filters
-     * before they being sent or dispatched locally.
+     * Adds the specified chat filter to the list of filters.  All chat requests and receipts will
+     * be filtered with all filters before they being sent or dispatched locally.
      */
     public function addChatFilter (filter :ChatFilter) :void
     {
@@ -151,8 +143,7 @@
     }

     /**
-     * Adds an observer that watches the chatters list, and updates it
-     * immediately.
+     * Adds an observer that watches the chatters list, and updates it immediately.
      */
     public function addChatterObserver (co :ChatterObserver) :void
     {
@@ -169,8 +160,8 @@
     }

     /**
-     * Sets the validator that decides if a username is valid to be
-     * added to the chatter list, or null if no such filtering is desired.
+     * Sets the validator that decides if a username is valid to be added to the chatter list, or
+     * null if no such filtering is desired.
      */
     public function setChatterValidator (validator :ChatterValidator) :void
     {
@@ -178,8 +169,8 @@
     }

     /**
-     * Get a list of the recent users with whom we've chatted. The most recent
-     * users will be listed first.
+     * Get a list of the recent users with whom we've chatted. The most recent users will be listed
+     * first.
      */
     public function getChatters () :Array
     {
@@ -187,16 +178,14 @@
     }

     /**
-     * Adds a chatter to our list of recent chatters. This is normally done
-     * automatically by the ChatDirector, but may be called to also to
-     * forcibly add a chatter. The ChatterValidator will have to approve
-     * of the chatter.
+     * Adds a chatter to our list of recent chatters. This is normally done automatically by the
+     * ChatDirector, but may be called to also to forcibly add a chatter. The ChatterValidator will
+     * have to approve of the chatter.
      */
     public function addChatter (name :Name) :void
     {
         // check to see if the chatter validator approves..
-        if ((_chatterValidator != null) &&
-            (!_chatterValidator.isChatterValid(name))) {
+        if ((_chatterValidator != null) && (!_chatterValidator.isChatterValid(name))) {
             return;
         }

@@ -216,16 +205,15 @@
     /**
      * Registers a chat command handler.
      *
-     * @param msg the message bundle via which the slash command will be
-     * translated (as c.command). If no translation
-     * exists the command will be /command.
-     * @param command the name of the command that will be used to invoke
-     * this handler (e.g. tell if the command will be invoked
-     * as /tell).
+     * @param msg the message bundle via which the slash command will be translated (as
+     * c.command). If no translation exists the command will be
+     * /command.
+     * @param command the name of the command that will be used to invoke this handler
+     * (e.g. tell if the command will be invoked as /tell).
      * @param handler the chat command handler itself.
      */
     public function registerCommandHandler (
-            msg :MessageBundle, command :String, handler :CommandHandler) :void
+        msg :MessageBundle, command :String, handler :CommandHandler) :void
     {
         var key :String = "c." + command;
         if (msg.exists(key)) {
@@ -248,8 +236,7 @@
     }

     /**
-     * Get the chat history entry at the specified index,
-     * with 0 being the oldest.
+     * Get the chat history entry at the specified index, with 0 being the oldest.
      */
     public function getCommandHistory (index :int) :String
     {
@@ -277,11 +264,10 @@
     /**
      * Display a system INFO message as if it had come from the server.
      *
-     * Info messages are sent when something happens that was neither
-     * directly triggered by the user, nor requires direct action.
-     */
-    public function displayInfo (
-            bundle :String, message :String, localtype :String = null) :void
+     * Info messages are sent when something happens that was neither directly triggered by the
+     * user, nor requires direct action.
+     */
+    public function displayInfo (bundle :String, message :String, localtype :String = null) :void
     {
         if (localtype == null) {
             localtype = ChatCodes.PLACE_CHAT_TYPE;
@@ -290,29 +276,27 @@
     }

     /**
-     * Display a system FEEDBACK message as if it had come from the server.
-     * The localtype of the message will be PLACE_CHAT_TYPE.
-     *
-     * Feedback messages are sent in direct response to a user action,
-     * usually to indicate success or failure of the user's action.
+     * Display a system FEEDBACK message as if it had come from the server.  The localtype of the
+     * message will be PLACE_CHAT_TYPE.
+     *
+     * Feedback messages are sent in direct response to a user action, usually to indicate success
+     * or failure of the user's action.
      */
     public function displayFeedback (bundle :String, message :String) :void
     {
-        displaySystem(
-            bundle, message, SystemMessage.FEEDBACK, ChatCodes.PLACE_CHAT_TYPE);
-    }
-
-    /**
-     * Display a system ATTENTION message as if it had come from the server.
-     * The localtype of the message will be PLACE_CHAT_TYPE.
-     *
-     * Attention messages are sent when something requires user action
-     * that did not result from direct action by the user.
+        displaySystem(bundle, message, SystemMessage.FEEDBACK, ChatCodes.PLACE_CHAT_TYPE);
+    }
+
+    /**
+     * Display a system ATTENTION message as if it had come from the server.  The localtype of the
+     * message will be PLACE_CHAT_TYPE.
+     *
+     * Attention messages are sent when something requires user action that did not result from
+     * direct action by the user.
      */
     public function displayAttention (bundle :String, message :String) :void
     {
-        displaySystem(
-            bundle, message, SystemMessage.ATTENTION, ChatCodes.PLACE_CHAT_TYPE);
+        displaySystem(bundle, message, SystemMessage.ATTENTION, ChatCodes.PLACE_CHAT_TYPE);
     }

     /**
@@ -329,21 +313,18 @@
     }

     /**
-     * Parses and delivers the supplied chat message. Slash command
-     * processing and mogrification are performed and the message is added
-     * to the chat history if appropriate.
-     *
-     * @param speakSvc the SpeakService representing the target dobj of
-     * the speak or null if we should speak in the "default" way.
+     * Parses and delivers the supplied chat message. Slash command processing and mogrification
+     * are performed and the message is added to the chat history if appropriate.
+     *
+     * @param speakSvc the SpeakService representing the target dobj of the speak or null if we
+     * should speak in the "default" way.
      * @param text the text to be parsed and sent.
      * @param record if text is a command, should it be added to the history?
      *
-     * @return ChatCodes#SUCCESS if the message was parsed
-     * and sent correctly, a translatable error string if there was some
-     * problem.
-     */
-    public function requestChat (
-            speakSvc :SpeakService, text :String, record :Boolean) :String
+     * @return ChatCodes#SUCCESS if the message was parsed and sent correctly, a
+     * translatable error string if there was some problem.
+     */
+    public function requestChat (speakSvc :SpeakService, text :String, record :Boolean) :String
     {
         if (text.indexOf("/") == 0) {
             // split the text up into a command and arguments
@@ -359,15 +340,12 @@
             var possibleCommands :Map = getCommandHandlers(command);
             switch (possibleCommands.size()) {
             case 0:
-                return MessageBundle.tcompose(
-                    "m.unknown_command", text.split(/\s/)[0]);
+                return MessageBundle.tcompose("m.unknown_command", text.split(/\s/)[0]);

             case 1:
                 var cmdName :String = possibleCommands.keys()[0];
-                var cmd :CommandHandler =
-                    (possibleCommands.get(cmdName) as CommandHandler);
-                var result :String =
-                    cmd.handleCommand(_cctx, speakSvc, cmdName, args, hist);
+                var cmd :CommandHandler = (possibleCommands.get(cmdName) as CommandHandler);
+                var result :String = cmd.handleCommand(_cctx, speakSvc, cmdName, args, hist);
                 if (result != ChatCodes.SUCCESS) {
                     return result;
                 }
@@ -376,8 +354,7 @@
                     // get the final history-ready command string
                     hist[0] = "/" + ((hist[0] == null) ? command : hist[0]);

-                    // remove from history if it was present and
-                    // add it to the end
+                    // remove from history if it was present and add it to the end
                     addToHistory(hist[0]);
                 }
                 return result;
@@ -385,37 +362,32 @@
             default:
                 var cmds :Array = possibleCommands.keys();
                 var alternativeCommands :String = "/" + cmds.join(", /");
-                return MessageBundle.tcompose(
-                    "m.unspecific_command", alternativeCommands);
+                return MessageBundle.tcompose("m.unspecific_command", alternativeCommands);
             }
         }

         // if not a command then just speak
         var message :String = StringUtil.trim(text);
         if (StringUtil.isBlank(message)) {
-            // report silent failure for now
-            return ChatCodes.SUCCESS;
+            return ChatCodes.SUCCESS; // report silent failure for now
         }

         return deliverChat(speakSvc, message, ChatCodes.DEFAULT_MODE);
     }

     /**
-     * Requests that a speak message with the specified mode be generated
-     * and delivered via the supplied speak service instance (which will
-     * be associated with a particular "speak object"). The message will
-     * first be validated by all registered {@link ChatFilter}s (and
-     * possibly vetoed) before being dispatched.
-     *
-     * @param speakService the speak service to use when generating the
-     * speak request or null if we should speak in the current "place".
+     * Requests that a speak message with the specified mode be generated and delivered via the
+     * supplied speak service instance (which will be associated with a particular "speak object").
+     * The message will first be validated by all registered {@link ChatFilter}s (and possibly
+     * vetoed) before being dispatched.
+     *
+     * @param speakService the speak service to use when generating the speak request or null if we
+     * should speak in the current "place".
      * @param message the contents of the speak message.
-     * @param mode a speech mode that will be interpreted by the {@link
-     * ChatDisplay} implementations that eventually display this speak
-     * message.
-     */
-    public function requestSpeak (
-            speakService :SpeakService, message :String, mode :int) :void
+     * @param mode a speech mode that will be interpreted by the {@link ChatDisplay}
+     * implementations that eventually display this speak message.
+     */
+    public function requestSpeak (speakService :SpeakService, message :String, mode :int) :void
     {
         if (speakService == null) {
             if (_place == null) {
@@ -443,33 +415,25 @@
     {
         message = filter(message, null, true);
         if (message == null) {
-            displayFeedback(_bundle,
-                MessageBundle.compose("m.broadcast_failed", "m.filtered"));
+            displayFeedback(_bundle, MessageBundle.compose("m.broadcast_failed", "m.filtered"));
             return;
         }

-        var failure :Function = function (reason :String) :void
-        {
+        var failure :Function = function (reason :String) :void {
             reason = MessageBundle.compose("m.broadcast_failed", reason);
             displayFeedback(_bundle, reason);
         };
-
-        _cservice.broadcast(_cctx.getClient(), message,
-            new InvocationAdapter(failure));
-    }
-
-    /**
-     * Requests that a tell message be delivered to the specified target
-     * user.
-     *
-     * @param target the username of the user to which the tell message
-     * should be delivered.
+        _cservice.broadcast(_cctx.getClient(), message, new InvocationAdapter(failure));
+    }
+
+    /**
+     * Requests that a tell message be delivered to the specified target user.
+     *
+     * @param target the username of the user to which the tell message should be delivered.
      * @param msg the contents of the tell message.
-     * @param rl an optional result listener if you'd like to be notified
-     * of success or failure.
-     */
-    public function requestTell (
-            target :Name, msg :String, rl :ResultListener) :void
+     * @param rl an optional result listener if you'd like to be notified of success or failure.
+     */
+    public function requestTell (target :Name, msg :String, rl :ResultListener) :void
     {
         // make sure they can say what they want to say
         var message :String = filter(msg, target, true);
@@ -480,8 +444,7 @@
             return;
         }

-        var failure :Function = function (reason :String) :void
-        {
+        var failure :Function = function (reason :String) :void {
             var msg :String = MessageBundle.compose(
                 "m.tell_failed", MessageBundle.taint(target), reason);
             displayFeedback(_bundle, msg);
@@ -489,9 +452,7 @@
                 rl.requestFailed(null);
             }
         };
-        var success :Function = function (
-                idleTime :Long, awayMessage :String) :void
-        {
+        var success :Function = function (idleTime :Long, awayMessage :String) :void {
             dispatchMessage(new TellFeedbackMessage(target, message));
             addChatter(target);
             if (rl != null) {
@@ -519,23 +480,19 @@
 //                displayFeedback(_bundle, msg);
 //            }
         };
-
-        _cservice.tell(_cctx.getClient(), target, message,
-            new TellAdapter(failure, success));
-    }
-
-    /**
-     * Configures a message that will be automatically reported to anyone
-     * that sends a tell message to this client to indicate that we are
-     * busy or away from the keyboard.
+        _cservice.tell(_cctx.getClient(), target, message, new TellAdapter(failure, success));
+    }
+
+    /**
+     * Configures a message that will be automatically reported to anyone that sends a tell message
+     * to this client to indicate that we are busy or away from the keyboard.
      */
     public function setAwayMessage (message :String) :void
     {
         if (message != null) {
             message = filter(message, null, true);
             if (message == null) {
-                // they filtered away their own away message..
-                // change it to something
+                // they filtered away their own away message..  change it to something
                 message = "...";
             }
         }
@@ -544,13 +501,12 @@
     }

     /**
-     * Adds an additional object via which chat messages may arrive. The
-     * chat director assumes the caller will be managing the subscription
-     * to this object and will remain subscribed to it for as long as it
-     * remains in effect as an auxiliary chat source.
-     *
-     * @param localtype a type to be associated with all chat messages
-     * that arrive on the specified DObject.
+     * Adds an additional object via which chat messages may arrive. The chat director assumes the
+     * caller will be managing the subscription to this object and will remain subscribed to it for
+     * as long as it remains in effect as an auxiliary chat source.
+     *
+     * @param localtype a type to be associated with all chat messages that arrive on the specified
+     * DObject.
      */
     public function addAuxiliarySource (source :DObject, localtype :String) :void
     {
@@ -570,8 +526,7 @@
     /**
      * Run a message through all the currently registered filters.
      */
-    public function filter (
-        msg :String, otherUser :Name, outgoing :Boolean) :String
+    public function filter (msg :String, otherUser :Name, outgoing :Boolean) :String
     {
         // TODO: needs testing
         _filters.apply(function (observer :ChatFilter) :void {
@@ -645,14 +600,12 @@
                     return;
                 }

-                if (ChatCodes.USER_CHAT_TYPE == localtype &&
-                        mode == ChatCodes.DEFAULT_MODE) {
+                if (ChatCodes.USER_CHAT_TYPE == localtype && mode == ChatCodes.DEFAULT_MODE) {
                     // if it was a tell, add the speaker as a chatter
                     addChatter(speaker);

                     // note whether or not we have an auto-response
-                    var self :BodyObject =
-                        (_cctx.getClient().getClientObject() as BodyObject);
+                    var self :BodyObject = (_cctx.getClient().getClientObject() as BodyObject);
                     if (!StringUtil.isBlank(self.awayMessage)) {
                         autoResponse = self.awayMessage;
                     }
@@ -680,8 +633,7 @@
         super.clientDidLogon(event);

         // listen on the client object for tells
-        addAuxiliarySource(_clobj = event.getClient().getClientObject(),
-            ChatCodes.USER_CHAT_TYPE);
+        addAuxiliarySource(_clobj = event.getClient().getClientObject(), ChatCodes.USER_CHAT_TYPE);
     }

     // documentation inherited
@@ -691,8 +643,7 @@

         // change what we're listening to for tells
         removeAuxiliarySource(_clobj);
-        addAuxiliarySource(_clobj = event.getClient().getClientObject(),
-            ChatCodes.USER_CHAT_TYPE);
+        addAuxiliarySource(_clobj = event.getClient().getClientObject(), ChatCodes.USER_CHAT_TYPE);

         clearDisplays();
     }
@@ -724,43 +675,38 @@
     }

     /**
-     * Called to determine whether we are permitted to post the supplied
-     * chat message. Derived classes may wish to throttle chat or restrict
-     * certain types in certain circumstances for whatever reason.
-     *
-     * @return null if the chat is permitted, SUCCESS if the chat is permitted
-     * and has already been dealt with, or a translatable string
-     * indicating the reason for rejection if not.
-     */
-    protected function checkCanChat (
-        speakSvc :SpeakService , message :String, mode :int) :String
+     * Called to determine whether we are permitted to post the supplied chat message. Derived
+     * classes may wish to throttle chat or restrict certain types in certain circumstances for
+     * whatever reason.
+     *
+     * @return null if the chat is permitted, SUCCESS if the chat is permitted and has already been
+     * dealt with, or a translatable string indicating the reason for rejection if not.
+     */
+    protected function checkCanChat (speakSvc :SpeakService , message :String, mode :int) :String
     {
         return null;
     }

     /**
-     * Delivers a plain chat message (not a slash command) on the
-     * specified speak service in the specified mode. The message will be
-     * mogrified and filtered prior to delivery.
-     *
-     * @return {@link ChatCodes#SUCCESS} if the message was delivered or a
-     * string indicating why it failed.
-     */
-    internal function deliverChat (
-        speakSvc :SpeakService, message :String, mode :int) :String
+     * Delivers a plain chat message (not a slash command) on the specified speak service in the
+     * specified mode. The message will be mogrified and filtered prior to delivery.
+     *
+     * @return {@link ChatCodes#SUCCESS} if the message was delivered or a string indicating why it
+     * failed.
+     */
+    internal function deliverChat (speakSvc :SpeakService, message :String, mode :int) :String
     {
         // run the message through our mogrification process
         message = mogrifyChatImpl(message, true, mode != ChatCodes.EMOTE_MODE);

-        // mogrification may result in something being turned into a slash
-        // command, in which case we have to run everything through again
-        // from the start
+        // mogrification may result in something being turned into a slash command, in which case
+        // we have to run everything through again from the start
         if (message.indexOf("/") == 0) {
             return requestChat(speakSvc, message, false);
         }

-        // make sure this client is not restricted from performing this
-        // chat message for some reason or other
+        // make sure this client is not restricted from performing this chat message for some
+        // reason or other
         var errmsg :String = checkCanChat(speakSvc, message, mode);
         if (errmsg != null) {
             return errmsg;
@@ -790,13 +736,12 @@
     }

     /**
-     * Mogrify common literary crutches into more appealing chat or
-     * commands.
-     *
-     * @param transformsAllowed if true, the chat may transformed into a
-     * different mode. (lol -> /emote laughs)
-     * @param capFirst if true, the first letter of the text is
-     * capitalized. This is not desired if the chat is already an emote.
+     * Mogrify common literary crutches into more appealing chat or commands.
+     *
+     * @param transformsAllowed if true, the chat may transformed into a different mode. (lol ->
+     * /emote laughs)
+     * @param capFirst if true, the first letter of the text is capitalized. This is not desired if
+     * the chat is already an emote.
      */
     protected function mogrifyChatImpl (
         text :String, transformsAllowed :Boolean, capFirst :Boolean) :String
@@ -811,9 +756,8 @@
             var caps :int = 0;
             for (var ii :int = 0; ii < tlen; ii++) {
                 var ch :String = text.charAt(ii);
-                // do a fucked-up test to see if it's uppercase
-                // make sure the uppercase version is the same as the orig
-                // and the lowercase version is different
+                // do a fucked-up test to see if it's uppercase make sure the uppercase version is
+                // the same as the orig and the lowercase version is different
                 var chU :String = ch.toUpperCase();
                 if (ch == chU && chU != ch.toLowerCase()) {
                     caps++;
@@ -831,7 +775,7 @@

     /** Helper function for {@link #mogrifyChat}. */
     protected function mogrifyChatText (
-            text :String, transformsAllowed :Boolean, capFirst :Boolean) :String
+        text :String, transformsAllowed :Boolean, capFirst :Boolean) :String
     {
         // do the generic mogrifications and translations
         text = translatedReplacements("x.mogrifies", text);
@@ -863,11 +807,10 @@
     }

     /**
-     * Do all the replacements (mogrifications) specified in the
-     * translation string specified by the key.
-     */
-    protected function translatedReplacements (
-            key :String, text :String) :String
+     * Do all the replacements (mogrifications) specified in the translation string specified by
+     * the key.
+     */
+    protected function translatedReplacements (key :String, text :String) :String
     {
         var bundle :MessageBundle = _msgmgr.getBundle(_bundle);
         if (!bundle.exists(key)) {
@@ -893,15 +836,13 @@
     }

     /**
-     * Returns a hashmap containing all command handlers that match the
-     * specified command (i.e. the specified command is a prefix of their
-     * registered command string).
+     * Returns a hashmap containing all command handlers that match the specified command (i.e. the
+     * specified command is a prefix of their registered command string).
      */
     internal function getCommandHandlers (command :String) :Map
     {
         var matches :Map = new HashMap();
-        var user :BodyObject =
-            (_cctx.getClient().getClientObject() as BodyObject);
+        var user :BodyObject = (_cctx.getClient().getClientObject() as BodyObject);
         var keys :Array = _handlers.keys();
         for (var ii :int = 0; ii < keys.length; ii++) {
             var cmd :String = (keys[ii] as String);
@@ -922,8 +863,7 @@
     }

     /**
-     * Notifies all registered {@link ChatterObserver}s that the list of
-     * chatters has changed.
+     * Notifies all registered {@link ChatterObserver}s that the list of chatters has changed.
      */
     protected function notifyChatterObservers () :void
     {
@@ -931,8 +871,7 @@
     }

     /**
-     * A function to be called by our _chatterObservers list to apply
-     * updates to each observer.
+     * A function to be called by our _chatterObservers list to apply updates to each observer.
      */
     protected function chatterObserverNotify (obs :ChatterObserver) :void
     {
@@ -947,9 +886,8 @@
         if (bundle != null && _msgmgr != null) {
             var msgb :MessageBundle = _msgmgr.getBundle(bundle);
             if (msgb == null) {
-                Log.getLog(this).warning(
-                    "No message bundle available to translate message " +
-                    "[bundle=" + bundle + ", message=" + message + "].");
+                Log.getLog(this).warning("No message bundle available to translate message " +
+                                         "[bundle=" + bundle + ", message=" + message + "].");
             } else {
                 message = msgb.xlate(message);
             }
@@ -961,11 +899,9 @@
      * Display the specified system message as if it had come from the server.
      */
     protected function displaySystem (
-            bundle :String, message :String, attLevel :int,
-            localtype :String) :void
-    {
-        // nothing should be untranslated, so pass the default bundle if need
-        // be.
+        bundle :String, message :String, attLevel :int, localtype :String) :void
+    {
+        // nothing should be untranslated, so pass the default bundle if need be.
         if (bundle == null) {
             bundle = _bundle;
         }
@@ -976,8 +912,7 @@
     }

     /**
-     * Looks up and returns the message type associated with the specified
-     * oid.
+     * Looks up and returns the message type associated with the specified oid.
      */
     protected function getLocalType (oid :int) :String
     {
@@ -1022,8 +957,7 @@
     /** A list of registered chat filters. */
     protected var _filters :ObserverList = new ObserverList();

-    /** A mapping from auxiliary chat objects to the types under which
-     * they are registered. */
+    /** A mapping from auxiliary chat objects to the types under which they are registered. */
     protected var _auxes :HashMap = new HashMap();

     /** Validator of who may be added to the chatters list. */


Fix double getter on totalTime and isPlaying after the merge

--- src/aerys/minko/scene/controller/AnimationController.as
+++ src/aerys/minko/scene/controller/AnimationController.as
@@ -16,16 +16,6 @@
 	 */
 	public class AnimationController extends AbstractController
 	{
-
-		public function get currentTime():int
-		{
-			return _currentTime;
-		}
-
-		public function get isPlaying():Boolean
-		{
-			return _isPlaying;
-		}

 		public static var DEFAULT_TIME_FUNCTION	: Function = getTimer;


Transferred from the Adobe Open Source Subversion Repository

Revision: 21544
Author:   aglosban@adobe.com
Date:     2011-07-12T15:21:24.414340Z

Log Message:
-----------
QE notes: Check in rpc.swc fixes for Watson bugs 2779465, 2780176 and 2890317.
Doc notes: N/A
Bugs:
@WATSON: #2779465
@WATSON: #2780176
@WATSON: #2890317
Reviewer:
Tests run: LCDS checkintests passed.
Is noteworthy for integration:

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/rpc/src/mx/messaging/channels/StreamingAMFChannel.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/rpc/src/mx/messaging/ChannelSet.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/rpc/src/mx/messaging/channels/StreamingHTTPChannel.as</path>

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

--- frameworks/projects/rpc/src/mx/messaging/ChannelSet.as
+++ frameworks/projects/rpc/src/mx/messaging/ChannelSet.as
@@ -1510,6 +1510,7 @@
         var command:CommandMessage = CommandMessage(token.message);
         var handlingLogin:Boolean = (command.operation == CommandMessage.LOGIN_OPERATION);
         var creds:String = (handlingLogin) ? String(command.body) : null;
+        var delay:Number = 0;

         if (handlingLogin)
         {
@@ -1538,6 +1539,10 @@
             // Shutdown the current logged out agent.
             agent.state = AuthenticationAgent.SHUTDOWN_STATE;
             _authAgent = null;
+            // Slight delay is used to make sure the disconnect message makes it
+            // to the server before result is dispatched to avoid duplicate session
+            // errors. See Watson 2780176 for details.
+            delay = 250;
             disconnect(agent);

             // Flip current channel to *not* authenticated; this percolates
@@ -1547,7 +1552,10 @@

         // Notify.
         var resultEvent:ResultEvent = ResultEvent.createEvent(ackMessage.body, token, ackMessage);
-        dispatchRPCEvent(resultEvent);
+        if (delay > 0)
+            new AsyncDispatcher(dispatchRPCEvent, [resultEvent], delay);
+        else
+            dispatchRPCEvent(resultEvent);
     }

     /**
@@ -1627,9 +1635,7 @@
      */
     protected function messageHandler(event:MessageEvent):void
     {
-        unscheduleHeartbeat();
         dispatchEvent(event);
-        scheduleHeartbeat();
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 17637
Author:   klin@adobe.com
Date:     2010-09-09T22:59:01.772676Z

Log Message:
-----------
Add invalidateDisplayList calls for when different parts of the Grid change so that the Grid updates correctly.

QE notes: No
Doc notes: No
Bugs: SDK-27607
Reviewer: Hans
Tests run: checkintests, DataGrid
Is noteworthy for integration: No

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

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

--- frameworks/projects/spark/src/spark/components/Grid.as
+++ frameworks/projects/spark/src/spark/components/Grid.as
@@ -451,6 +451,7 @@
             return;

         _caretIndicator = value;
+        invalidateDisplayList();
         dispatchChangeEvent("caretIndicatorChanged");
     }

@@ -603,6 +604,7 @@
             return;

         _hoverIndicator = value;
+        invalidateDisplayList();
         dispatchChangeEvent("hoverIndicatorChanged");
     }

@@ -1007,6 +1009,7 @@
             return;

         _columnSeparator = value;
+        invalidateDisplayList();
         dispatchChangeEvent("columnSeparatorChanged");
     }

@@ -1369,6 +1372,7 @@
             return;

         _rowBackground = value;
+        invalidateDisplayList();
         dispatchChangeEvent("rowBackgroundChanged");
     }

@@ -1458,6 +1462,7 @@
             return;

         _rowSeparator = value;
+        invalidateDisplayList();
         dispatchChangeEvent("rowSeparatorChanged");
     }

@@ -1881,6 +1886,7 @@
             return;

         _selectionIndicator = value;
+        invalidateDisplayList();
         dispatchChangeEvent("selectionIndicatorChanged");
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 4935
Author:   dsubrama@adobe.com
Date:     2009-02-12T01:40:00.647704Z

Log Message:
-----------
Fix for SDK-17826. Add in metadata as requested by FB team.

Reviewer: Jason
Checkintests: Pass

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxList.as

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

--- frameworks/projects/spark/src/spark/components/List.as
+++ frameworks/projects/spark/src/spark/components/List.as
@@ -51,7 +51,12 @@
  */
 [Style(name="symbolColor", type="uint", format="Color", inherit="yes")]

+//--------------------------------------
+//  Other metadata
+//--------------------------------------
+
 [IconFile("FxList.png")]
+[DefaultTriggerEvent("selectionChanged")]

 /**
  *  The FxList control displays a vertical list of items.


Transferred from the Adobe Open Source Subversion Repository

Revision: 2644
Author:   egeorgie@adobe.com
Date:     2008-07-28T23:58:09.872940Z

Log Message:
-----------
First pass at unifying layout APIs between UIComponent and GraphicElement, more to come with additional check-ins.

reviewed by Ryan, Glenn, Gordon, Chet

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/Path.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/Ellipse.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/Rect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/TextBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/IGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/TextGraphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/StrokedElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/graphicsClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/Line.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/FilledElement.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/flex/graphics/BitmapGraphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/graphicsClasses/TextGraphicElement.as</path>

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

--- frameworks/projects/spark/src/spark/primitives/Line.as
+++ frameworks/projects/spark/src/spark/primitives/Line.as
@@ -72,7 +72,7 @@
 		{
 			_xFrom = value;
 			dispatchPropertyChangeEvent("xFrom", oldValue, value);
-			notifyElementChanged();
+			invalidateSize();
 		}
 	}

@@ -105,7 +105,7 @@
 		{
 			_xTo = value;
 			dispatchPropertyChangeEvent("xTo", oldValue, value);
-			notifyElementChanged();
+			invalidateSize();
 		}
 	}

@@ -137,7 +137,7 @@
 		{
 			_yFrom = value;
 			dispatchPropertyChangeEvent("yFrom", oldValue, value);
-			notifyElementChanged();
+			invalidateSize();
 		}
 	}

@@ -169,7 +169,7 @@
 		{
 			_yTo = value;
 			dispatchPropertyChangeEvent("yTo", oldValue, value);
-			notifyElementChanged();
+			invalidateSize();
 		}
 	}

@@ -181,8 +181,8 @@

     override public function get bounds():Rectangle
 	{
-	    var w:Number = isNaN(_explicitWidth) ? Math.abs(xFrom - xTo) : _explicitWidth;
-	    var h:Number = isNaN(_explicitHeight) ? Math.abs(yFrom - yTo) : _explicitHeight;
+	    var w:Number = isNaN(explicitWidth) ? Math.abs(xFrom - xTo) : explicitWidth;
+	    var h:Number = isNaN(explicitHeight) ? Math.abs(yFrom - yTo) : explicitHeight;
 		return new Rectangle(Math.min(xTo, xFrom), Math.min(yTo, yFrom),
 		                     w, h);
 	}
@@ -192,8 +192,8 @@
 	 */
 	override protected function drawElement(g:Graphics):void
 	{
-        var drawToX:Number = xFrom <= xTo ? drawWidth : -drawWidth;
-        var drawToY:Number = yFrom <= yTo ? drawHeight : -drawHeight;
+        var drawToX:Number = xFrom <= xTo ? width : -width;
+        var drawToY:Number = yFrom <= yTo ? height : -height;

         drawToX += xFrom;
         drawToY += yFrom;


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

--- frameworks/projects/framework/src/mx/managers/IToolTipManager2.as
+++ frameworks/projects/framework/src/mx/managers/IToolTipManager2.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  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.
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
 //
 ////////////////////////////////////////////////////////////////////////////////


Transferred from the Adobe Open Source Subversion Repository

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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 20920
Author:   build@adobe.com
Date:     2011-03-18T19:54:14.958635Z

Log Message:
-----------
Version update to 4.5.1

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/airspark/src/spark/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/automation_air/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/flex-config.xml</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/automation_spark/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/automation/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark_dmv/src/spark/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/rpc/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/mx/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/charts/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/automation_flashflexkit/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/automation_dmv/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/VersionInfo.java</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/advancedgrids/src/mx/core/Version.as</path>

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

--- frameworks/projects/advancedgrids/src/mx/core/Version.as
+++ frameworks/projects/advancedgrids/src/mx/core/Version.as
@@ -15,4 +15,4 @@
  *  @private
  *  Version string for this class.
  */
-mx_internal static const VERSION:String = "4.5.0.0";
+mx_internal static const VERSION:String = "4.5.1.0";