Made the Overlay controls disappear when needed

git-svn-id: 02605e11d3a461bc7e12f3f3880edf4b0c8dcfd0@4335 3e7533ad-8678-4d30-8e38-00a379d3f0d0

--- src/laml/display/Component.as
+++ src/laml/display/Component.as
@@ -800,11 +800,15 @@
 			return model.skin;
 		}

+		// TODO: This throws an exception with 200 milliseconds
+		// TODO: This doesn't respect previously-set alphas.
 		public function show(milliseconds:Number = 0):void {
 			visible = true;
+			this.view.alpha = 1;
 			if(milliseconds != 0) {
 				clearInterval(showHideInterval);
 				var interval:Number = milliseconds * this.view.alpha * .01;
+				interval = Math.max(1, interval);
 				showHideInterval = setInterval(showInterval, interval);
 			}
 		}


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

--- frameworks/projects/rpc/src/mx/rpc/AbstractInvoker.as
+++ frameworks/projects/rpc/src/mx/rpc/AbstractInvoker.as
@@ -41,6 +41,11 @@
 /**
  * An invoker is an object that actually executes a remote procedure call (RPC).
  * For example, RemoteObject, HTTPService, and WebService objects are invokers.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class AbstractInvoker extends EventDispatcher
 {
@@ -82,6 +87,11 @@

     /**
      *  The result of the last invocation.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get lastResult():Object
     {
@@ -92,6 +102,11 @@

     /**
      * When this value is true, anonymous objects returned are forced to bindable objects.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get makeObjectsBindable():Boolean
     {
@@ -116,6 +131,11 @@
      * of the result.  Typically the called function will at some point clear this
      * property temporarily, then invoke the operation again actually sending it to
      * the server this time.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public var operationManager:Function;

@@ -123,6 +143,11 @@
      * Specifies an optional return type for the operation.  Used in situations where
      * you want to coerce the over-the-wire information into a specific ActionScript class
      * or to provide metadata for other services as to the return type of this operation.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public var resultType:Class;

@@ -133,12 +158,22 @@
      * array or array collection.   When you set resultElementType, you do not have to set
      * resultType.  In that case, the operation returns an Array if makeObjectsbindable is
      * false and an ArrayCollection otherwise.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public var resultElementType:Class;

     /**
     *  Event dispatched for binding when the result property
     *  changes.
+    *
+    *  @langversion 3.0
+    *  @playerversion Flash 9
+    *  @playerversion AIR 1.1
+    *  @productversion Flex 3
     */
     mx_internal static const BINDING_RESULT:String = "resultForBinding";

@@ -157,6 +192,11 @@
      *         last service invocation is canceled.
      *
      *  @return The AsyncToken associated with the call that is cancelled or null if no call was cancelled.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function cancel(id:String = null):AsyncToken
     {
@@ -175,6 +215,11 @@
      *          bound to the result to update. Otherwise, set to
      *          false.
      *          The default value is true
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function clearResult(fireBindingEvent:Boolean = true):void
     {
@@ -192,6 +237,11 @@
      *  the service returns a new copy of the same object.
      *
      *  @param the new value for the lastResult property.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function setResult(result:Object):void
     {
@@ -223,6 +273,11 @@

     /**
      * Monitor an rpc event that is being dispatched
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     mx_internal function monitorRpcEvent(event:AbstractEvent):void
     {


Transferred from the Adobe Open Source Subversion Repository

Revision: 10872
Author:   cframpto@adobe.com
Date:     2009-10-05T19:39:47.041984Z

Log Message:
-----------
Most changes already approved by PARB and a few are pending.  Given the two reviewers are at MAX and then there is a shutdown week we decided to take a chance that these changes will actually stick.

TLFText.css -> MXFTEText.css
TLFTextField -> FTETextField
UITLFTextField -> UIFTETextField
TLFDataGridItemRenderer -> FTEDataGridItemRenderer
TLFTextInput -> MXFTETextInput

UITextFormat.useTLF -> UITextFormat.useFTE

QE notes:
Doc notes:
Bugs: SDK-22909
Reviewer: Gordon
Tests run: checkintests
Is noteworthy for integration: yes

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/TextStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/SparkClasses.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/TLFTextInput.as" copyfrom-rev="10865" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/MXFTETextInput.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/spark/src/mx/core/UITLFTextField.as" copyfrom-rev="10865" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/mx/core/UIFTETextField.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/TLFTextInput.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/spark/src/mx/core/TLFTextField.as" copyfrom-rev="10865" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/mx/core/FTETextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/colorPickerClasses/SwatchPanel.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/spark/src/mx/core/UITLFTextField.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/dataGridClasses/TLFDataGridItemRenderer.as" copyfrom-rev="10865" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/dataGridClasses/FTEDataGridItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/TextFieldFactory.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/spark/src/mx/core/TLFTextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/CSSTextLayoutFormat.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextField.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/dataGridClasses/TLFDataGridItemRenderer.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/framework/src/mx/core/ITextFieldFactory.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/spark/src/spark/components/Label.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/spark/TLFText.css" copyfrom-rev="10865" action="A">/flex/sdk/trunk/frameworks/projects/spark/MXFTEText.css</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/spark/TLFText.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>

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

--- frameworks/projects/spark/src/mx/core/FTETextField.as
+++ frameworks/projects/spark/src/mx/core/FTETextField.as
@@ -63,14 +63,14 @@
 use namespace mx_internal;

 /**
- *  TLFTextField is a Sprite which displays text by using the new
+ *  FTETextField is a Sprite which displays text by using the new
  *  Text Layout Framework to implement the old TextField API.
  *
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
  *  @langversion 3.0
  */
-public class TLFTextField extends Sprite
+public class FTETextField extends Sprite
 {
 	// Current slot count: 21
 	// (1 for every type except 2 for Number)
@@ -380,12 +380,12 @@
 	 *  @playerversion AIR 1.5
 	 *  @langversion 3.0
 	 */
-	public function TLFTextField()
+	public function FTETextField()
 	{
 		super();

 		// The mouse should not be aware of the TextLines.
-		// Otherwise, TLFTextField will dispatch mouseOver and mouseOut
+		// Otherwise, FTETextField will dispatch mouseOver and mouseOut
 		// events over each line, thich TextField doesn't do.
 		mouseChildren = false;

@@ -407,7 +407,7 @@

 	/**
 	 *  @private
-	 *  Apps are likely to create thousands of instances of TLFTextField,
+	 *  Apps are likely to create thousands of instances of FTETextField,
 	 *  so in order to minimize memory usage we store flags as 1 bit
 	 *  inside a uint instead of making each one a 4-byte Boolean var.
 	 */
@@ -590,8 +590,8 @@
 	//----------------------------------

 	/**
-	 *  This property is not implemented in TLFTextField
-	 *  because TLFTextField does not support selection.
+	 *  This property is not implemented in FTETextField
+	 *  because FTETextField does not support selection.
 	 *  Accessing it will throw a runtime error.
 	 *
 	 *  @see flash.text.TextField#alwaysShowSelection
@@ -618,7 +618,7 @@
 	//----------------------------------

 	/**
-	 *  This property has no effect in TLFTextField.
+	 *  This property has no effect in FTETextField.
 	 *  because FTE uses a newer font renderer than TextField.
 	 *  Getting it will always return null
 	 *  and setting it will do nothing.
@@ -832,8 +832,8 @@
 	//----------------------------------

 	/**
-	 *  This property has not been implemented in TLFTextField
-	 *  because TLFTextField does not support scrolling.
+	 *  This property has not been implemented in FTETextField
+	 *  because FTETextField does not support scrolling.
 	 *  Accessing it will throw a runtime error.
 	 *
 	 *  @see flash.text.TextField#bottomScrollV
@@ -852,8 +852,8 @@
 	//----------------------------------

 	/**
-	 *  This property has not been implemented in TLFTextField
-	 *  because TLFTextField does not support editing.
+	 *  This property has not been implemented in FTETextField
+	 *  because FTETextField does not support editing.
 	 *  Accessing it will throw a runtime error.
 	 *
 	 *  @copy flash.text.TextField#caretIndex
@@ -955,8 +955,8 @@
 	//----------------------------------

 	/**
-	 *  This property has not been implemented in TLFTextField
-	 *  because TLFTextField does not support editing.
+	 *  This property has not been implemented in FTETextField
+	 *  because FTETextField does not support editing.
 	 *  Accessing it will throw a runtime error.
 	 *
 	 *  @copy flash.text.TextField#displayAsPassword
@@ -1022,7 +1022,7 @@
 	//----------------------------------

 	/**
-	 *  This property has no effect in TLFTextField.
+	 *  This property has no effect in FTETextField.
 	 *  because FTE uses a newer font renderer than TextField.
 	 *  Getting it will always return null
 	 *  and setting it will do nothing.
@@ -1151,8 +1151,8 @@
 	//----------------------------------

 	/**
-	 *  This property has not been implemented in TLFTextField
-	 *  because TLFTextField does not support editing.
+	 *  This property has not been implemented in FTETextField
+	 *  because FTETextField does not support editing.
 	 *  Accessing it will throw a runtime error.
 	 *
 	 *  @see flash.text.TextField#maxChars
@@ -1179,8 +1179,8 @@
 	//----------------------------------

 	/**
-	 *  This property has not been implemented in TLFTextField
-	 *  because TLFTextField does not support scrolling.
+	 *  This property has not been implemented in FTETextField
+	 *  because FTETextField does not support scrolling.
 	 *  Accessing it will throw a runtime error.
 	 *
 	 *  @see flash.text.TextField#maxScrollH
@@ -1199,8 +1199,8 @@
 	//----------------------------------

 	/**
-	 *  This property has not been implemented in TLFTextField
-	 *  because TLFTextField does not support scrolling.
+	 *  This property has not been implemented in FTETextField
+	 *  because FTETextField does not support scrolling.
 	 *  Accessing it will throw a runtime error.
 	 *
 	 *  @see flash.text.TextField#maxScrollV
@@ -1219,8 +1219,8 @@
 	//----------------------------------

 	/**
-	 *  This property has not been implemented in TLFTextField
-	 *  because TLFTextField does not support scrolling.
+	 *  This property has not been implemented in FTETextField
+	 *  because FTETextField does not support scrolling.
 	 *  Getting it will always return false
 	 *  and setting it will do nothing.
 	 *
@@ -1247,8 +1247,8 @@
 	//----------------------------------

 	/**
-	 *  This property has no effect in TLFTextField
-	 *  because TLFTextField does not support editing.
+	 *  This property has no effect in FTETextField
+	 *  because FTETextField does not support editing.
 	 *  However, you can get and set it.
 	 *
 	 *  @see flash.text.TextField#multiline
@@ -1289,7 +1289,7 @@
 		// so the number of lines is the number of children.
 		// TextContainerManager can create Shapes as well,
 		// but only when using TLF's backgroundColor and backgroundAlpha
-		// formatting on spans, which TLFTextField doesn't use.
+		// formatting on spans, which FTETextField doesn't use.
 		return numChildren;
 	}

@@ -1298,8 +1298,8 @@
 	//----------------------------------

 	/**
-	 *  This property has not been implemented in TLFTextField
-	 *  because TLFTextField does not support scrolling.
+	 *  This property has not been implemented in FTETextField
+	 *  because FTETextField does not support scrolling.
 	 *  Accessing it will throw a runtime error.
 	 *
 	 *  @see flash.text.TextField#restrict
@@ -1326,8 +1326,8 @@
 	//----------------------------------

 	/**
-	 *  This property has not been implemented in TLFTextField
-	 *  because TLFTextField does not support scrolling.
+	 *  This property has not been implemented in FTETextField
+	 *  because FTETextField does not support scrolling.
 	 *  Accessing it will throw a runtime error.
 	 *
 	 *  @see flash.text.TextField#scrollH
@@ -1354,8 +1354,8 @@
 	//----------------------------------

 	/**
-	 *  This property has not been implemented in TLFTextField
-	 *  because TLFTextField does not support scrolling.
+	 *  This property has not been implemented in FTETextField
+	 *  because FTETextField does not support scrolling.
 	 *  Accessing it will throw a runtime error.
 	 *
 	 *  @copy flash.text.TextField#scrollV
@@ -1382,8 +1382,8 @@
 	//----------------------------------

 	/**
-	 *  Setting this property has no effect in TLFTextField
-	 *  because TLFTextField does not support selection.
+	 *  Setting this property has no effect in FTETextField
+	 *  because FTETextField does not support selection.
 	 *  If you get it, it will always be false.
 	 *
 	 *  @see flash.text.TextField#selectable
@@ -1409,8 +1409,8 @@
 	//----------------------------------

 	/**
-	 *  This property has not been implemented in TLFTextField
-	 *  because TLFTextField does not support selection.
+	 *  This property has not been implemented in FTETextField
+	 *  because FTETextField does not support selection.
 	 *  Accessing it will throw a runtime error.
 	 *
 	 *  @see flash.text.TextField#selectionBeginIndex
@@ -1429,8 +1429,8 @@
 	//----------------------------------

 	/**
-	 *  This property has not been implemented in TLFTextField
-	 *  because TLFTextField does not support selection.
+	 *  This property has not been implemented in FTETextField
+	 *  because FTETextField does not support selection.
 	 *  Accessing it will throw a runtime error.
 	 *
 	 *  @see flash.text.TextField#selectionEndIndex
@@ -1449,7 +1449,7 @@
 	//----------------------------------

 	/**
-	 *  This property has no effect in TLFTextField.
+	 *  This property has no effect in FTETextField.
 	 *  because FTE uses a newer font renderer than TextField.
 	 *  Getting it will always return NaN
 	 *  and setting it will do nothing.
@@ -1676,7 +1676,7 @@
 	//----------------------------------

 	/**
-	 *  This property has no effect in TLFTextField.
+	 *  This property has no effect in FTETextField.
 	 *  because FTE uses a newer font renderer than TextField.
 	 *  Getting it will always return NaN
 	 *  and setting it will do nothing.
@@ -1728,7 +1728,7 @@
 		}

 		if (value == TextFieldType.INPUT)
-			throw new Error("TLFTextField does not support setting type to \"input\".");
+			throw new Error("FTETextField does not support setting type to \"input\".");
 	}

 	//----------------------------------
@@ -1736,8 +1736,8 @@
 	//----------------------------------

 	/**
-	 *  This property is not implemented in TLFTextField
-	 *  because TLFTextField does not support selection
+	 *  This property is not implemented in FTETextField
+	 *  because FTETextField does not support selection
 	 *  or clipboard operations.
 	 *  Accessing it will throw a runtime error.
 	 *
@@ -1816,7 +1816,7 @@
 	private var _direction:String = "ltr";

 	/**
-	 *  The directionality of the text displayed by TLFTextField.
+	 *  The directionality of the text displayed by FTETextField.
 	 *
 	 *
The allowed values are "ltr" for left-to-right text,
 	 *  as in Latin-style scripts,
@@ -1874,7 +1874,7 @@
 	private var _locale:String = "en";

 	/**
-	 *  The locale of the text displayed by TLFTextField.
+	 *  The locale of the text displayed by FTETextField.
 	 *
 	 *
FTE and TLF use this locale to map Unicode characters
 	 *  to font glyphs and to find fallback fonts.

@@ -1918,7 +1918,7 @@
 	private var _textLineCreator:ITextLineCreator;

 	/**
-	 *  The ITextLineCreator instance that TLFTextField
+	 *  The ITextLineCreator instance that FTETextField
 	 *  uses for creating TextLines.
 	 *
 	 *
Set this if you need lines to be created in a different
@@ -1943,7 +1943,7 @@
 	 */
 	public function set textLineCreator(value:ITextLineCreator):void
 	{
-		// TLFTextField allows a null value to be set;
+		// FTETextField allows a null value to be set;
 		// in fact, this is the default.

 		if (value == _textLineCreator)
@@ -1991,7 +1991,7 @@
 	//--------------------------------------------------------------------------

 	/**
-	 *  This method has not been implemented in TLFTextField
+	 *  This method has not been implemented in FTETextField
 	 *  because very few components use it in TextField.
 	 *  It will throw a runtime error if called.
 	 *
@@ -2007,7 +2007,7 @@
 	}

 	/**
-	 *  This method has not been implemented in TLFTextField
+	 *  This method has not been implemented in FTETextField
 	 *  because very few components use it in TextField.
 	 *  It will throw a runtime error if called.
 	 *
@@ -2023,7 +2023,7 @@
 	}

 	/**
-	 *  This method has not been implemented in TLFTextField
+	 *  This method has not been implemented in FTETextField
 	 *  because very few components use it in TextField.
 	 *  It will throw a runtime error if called.
 	 *
@@ -2039,7 +2039,7 @@
 	}

 	/**
-	 *  This method has not been implemented in TLFTextField
+	 *  This method has not been implemented in FTETextField
 	 *  because very few components use it in TextField.
 	 *  It will throw a runtime error if called.
 	 *
@@ -2055,7 +2055,7 @@
 	}

 	/**
-	 *  This method has not been implemented in TLFTextField
+	 *  This method has not been implemented in FTETextField
 	 *  because very few components use it in TextField.
 	 *  It will throw a runtime error if called.
 	 *
@@ -2071,7 +2071,7 @@
 	}

 	/**
-	 *  This method has not been implemented in TLFTextField
+	 *  This method has not been implemented in FTETextField
 	 *  because very few components use it in TextField.
 	 *  It will throw a runtime error if called.
 	 *
@@ -2087,7 +2087,7 @@
 	}

 	/**
-	 *  This method has not been implemented in TLFTextField
+	 *  This method has not been implemented in FTETextField
 	 *  because very few components use it in TextField.
 	 *  It will throw a runtime error if called.
 	 *
@@ -2131,7 +2131,7 @@
 	}

 	/**
-	 *  This method has not been implemented in TLFTextField
+	 *  This method has not been implemented in FTETextField
 	 *  because very few components use it in TextField.
 	 *  It will throw a runtime error if called.
 	 *
@@ -2147,7 +2147,7 @@
 	}

 	/**
-	 *  This method has not been implemented in TLFTextField
+	 *  This method has not been implemented in FTETextField
 	 *  because very few components use it in TextField.
 	 *  It will throw a runtime error if called.
 	 *
@@ -2163,7 +2163,7 @@
 	}

 	/**
-	 *  This method has not been implemented in TLFTextField
+	 *  This method has not been implemented in FTETextField
 	 *  because very few components use it in TextField.
 	 *  It will throw a runtime error if called.
 	 *
@@ -2179,9 +2179,9 @@
 	}

 	/**
-	 *  This method has been implemented in TLFTextField
+	 *  This method has been implemented in FTETextField
 	 *  to simply return a copy of the defaultTextFormat,
-	 *  because TLFTextField does not support formatting a range.
+	 *  because FTETextField does not support formatting a range.
 	 *
 	 *  @see flash.text.TextField#getTextFormat()
 	 *
@@ -2200,7 +2200,7 @@
 	}

 	/**
-	 *  This method has not been implemented in TLFTextField
+	 *  This method has not been implemented in FTETextField
 	 *  because very few components use it in TextField.
 	 *  It will throw a runtime error if called.
 	 *
@@ -2216,7 +2216,7 @@
 	}

 	/**
-	 *  This method has not been implemented in TLFTextField
+	 *  This method has not been implemented in FTETextField
 	 *  because very few components use it in TextField.
 	 *  It will throw a runtime error if called.
 	 *
@@ -2233,8 +2233,8 @@
 	}

 	/**
-	 *  This method has not been implemented in TLFTextField
-	 *  because TLFTextField does not support selection.
+	 *  This method has not been implemented in FTETextField
+	 *  because FTETextField does not support selection.
 	 *  It will throw a runtime error if called.
 	 *
 	 *  @see flash.text.TextField#setSelection()
@@ -2249,9 +2249,9 @@
 	}

 	/**
-	 *  This method has no effect on a TLFTextField if beginIndex
+	 *  This method has no effect on a FTETextField if beginIndex
      *  or endIndex != -1
-	 *  because TLFTextField does not support formatting a range.
+	 *  because FTETextField does not support formatting a range.
 	 *
 	 *  @see flash.text.TextField#setTextFormat()
 	 *
@@ -2271,7 +2271,7 @@
 	}

 	/**
-	 *  This method has not been implemented in TLFTextField
+	 *  This method has not been implemented in FTETextField
 	 *  because very few components use it in TextField.
 	 *  It will throw a runtime error if called.
 	 *
@@ -2298,7 +2298,7 @@
 	private function notImplemented(name:String):String
 	{
 		// FIXME (gosmith) Make this an other RTE messages localizable.
-		return "'" + name + "' is not implemented TLFTextField.";
+		return "'" + name + "' is not implemented FTETextField.";
 	}

 	/**
@@ -2345,7 +2345,7 @@

 	/**
 	 *  @private
-	 *  This method is the workhorse of TLFTextField.
+	 *  This method is the workhorse of FTETextField.
 	 *  It puts it into a state where all properties are consistent
 	 *  with each other and where it is rendering what the properties
 	 *  specify.
@@ -2447,7 +2447,7 @@
 			// This is because TextField actually does something strange --- it expands itselft 1 pixel right and down when drawing a border
 			// and fill without the stroke with the required stroking path does not match the "background sans border" behavior of TextField.

-			// Width/Height rounding differences between TextField and TLFTextField...
+			// Width/Height rounding differences between TextField and FTETextField...
 			// For width or height of the form E.5 where E is a positive even integer, Flash 10 on Windows seems to
 			// "round to even", i.e., round the dimension down to E rather than up to E+1. However we currently just
 			// round consistently up to E+1 using Math.round() here since for now are willing to live with this difference.
@@ -2513,7 +2513,7 @@
 	 */
 	private function createHostFormat():void
 	{
-		hostFormat = new TLFTextFieldHostFormat(this);
+		hostFormat = new FTETextFieldHostFormat(this);
 	}

 	/**
@@ -2806,7 +2806,7 @@
 			inlineGraphicStatusChangeHandler);

 		if (!textContainerManager)
-			textContainerManager = new TLFTextFieldTextContainerManager(this);
+			textContainerManager = new FTETextFieldTextContainerManager(this);

 		textContainerManager.compositionWidth = compositionWidth;
 		textContainerManager.compositionHeight = compositionHeight;
@@ -2912,7 +2912,7 @@
 import flashx.textLayout.formats.TextDecoration;
 import flashx.textLayout.formats.TextLayoutFormatValueHolder;

-import mx.core.TLFTextField;
+import mx.core.FTETextField;
 import mx.core.mx_internal;

 use namespace mx_internal;
@@ -2920,12 +2920,12 @@
 /**
  *  @private
  */
-class TLFTextFieldTextContainerManager extends TextContainerManager
+class FTETextFieldTextContainerManager extends TextContainerManager
 {
 	/**
 	 *  @private
 	 */
-	public function TLFTextFieldTextContainerManager(container:Sprite, configuration:IConfiguration = null)
+	public function FTETextFieldTextContainerManager(container:Sprite, configuration:IConfiguration = null)
 	{
 		super(container, configuration);
 	}
@@ -2942,16 +2942,16 @@
 /**
  *  @private
  */
-class TLFTextFieldHostFormat implements ITextLayoutFormat
+class FTETextFieldHostFormat implements ITextLayoutFormat
 {
-	public function TLFTextFieldHostFormat(textField:TLFTextField)
+	public function FTETextFieldHostFormat(textField:FTETextField)
 	{
 		super();

 		this.textField = textField;
 	}

-	private var textField:TLFTextField;
+	private var textField:FTETextField;

 	public function get alignmentBaseline():*
 	{
@@ -3115,22 +3115,22 @@

 	public function get paddingBottom():*
 	{
-		return TLFTextField.PADDING_BOTTOM;
+		return FTETextField.PADDING_BOTTOM;
 	}

 	public function get paddingLeft():*
 	{
-		return TLFTextField.PADDING_LEFT;
+		return FTETextField.PADDING_LEFT;
 	}

 	public function get paddingRight():*
 	{
-		return TLFTextField.PADDING_RIGHT;
+		return FTETextField.PADDING_RIGHT;
 	}

 	public function get paddingTop():*
 	{
-		return TLFTextField.PADDING_TOP;
+		return FTETextField.PADDING_TOP;
 	}

 	public function get paragraphEndIndent():*
@@ -3246,7 +3246,7 @@
     private static const textFieldToTLFStyleMap:Object =
 	{
         // FIXME (gosmith): when mapping leading to lineHeight does this need
-        // the same adjustment as TLFTextFieldHostFormat.lineHeight?
+        // the same adjustment as FTETextFieldHostFormat.lineHeight?
         "leading": "lineHeight",
         "letterSpacing": "trackingRight",
         "marginLeft": "paragraphStartIndent",


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

--- frameworks/projects/spark/src/spark/utils/TextUtil.as
+++ frameworks/projects/spark/src/spark/utils/TextUtil.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.utils
 {


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

--- frameworks/projects/advancedgrids/src/mx/olap/OLAPResult.as
+++ frameworks/projects/advancedgrids/src/mx/olap/OLAPResult.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.olap
 {


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

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


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

--- frameworks/projects/framework/src/mx/effects/easing/Back.as
+++ frameworks/projects/framework/src/mx/effects/easing/Back.as
@@ -1,13 +1,3 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2004-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.effects.easing
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 11465
Author:   chaase@adobe.com
Date:     2009-11-05T15:58:29.615490Z

Log Message:
-----------
Fix for AnimateColor. When used in transitions, his effect only worked when operating on the default 'colorPropertyName' of "color". If you set a different colorPropertyName, it would ignore that property when detecting state changes. The fix was to return that property name from getAffectedProperties/getAffectedStyles so that the transitions machinery would detect changes to that property.

QE notes: None
Doc notes:  None
Bugs:  sdk-24022
Reviewer: Hans
Tests run: checkintests, Mustella spark/effects/AnimateColor
Is noteworthy for integration: No

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateColor.as

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

--- frameworks/projects/spark/src/spark/effects/AnimateColor.as
+++ frameworks/projects/spark/src/spark/effects/AnimateColor.as
@@ -123,7 +123,7 @@
      */
     override public function getAffectedProperties():Array /* of String */
     {
-        return AFFECTED_PROPERTIES;
+        return (colorPropertyName == "color") ? AFFECTED_PROPERTIES : [colorPropertyName];
     }

     /**
@@ -131,7 +131,7 @@
      */
     override public function get relevantStyles():Array /* of String */
     {
-        return RELEVANT_STYLES;
+        return (colorPropertyName == "color") ? RELEVANT_STYLES : [colorPropertyName];
     }

     /**
@@ -146,10 +146,10 @@
     {
         super.initInstance(instance);

-        var tintInstance:AnimateColorInstance = AnimateColorInstance(instance);
-        tintInstance.colorFrom = colorFrom;
-        tintInstance.colorTo = colorTo;
-        tintInstance.colorPropertyName = colorPropertyName;
+        var animateColorInstance:AnimateColorInstance = AnimateColorInstance(instance);
+        animateColorInstance.colorFrom = colorFrom;
+        animateColorInstance.colorTo = colorTo;
+        animateColorInstance.colorPropertyName = colorPropertyName;
     }
 }
 }


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

--- frameworks/projects/framework/src/mx/utils/Base64Decoder.as
+++ frameworks/projects/framework/src/mx/utils/Base64Decoder.as
@@ -1,13 +1,3 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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: 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@1267441 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/mx/src/mx/accessibility/PanelAccImpl.as
+++ frameworks/projects/mx/src/mx/accessibility/PanelAccImpl.as
@@ -0,0 +1,300 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2004-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.accessibility
+{
+
+import mx.containers.Panel;
+import mx.core.UIComponent;
+import mx.core.mx_internal;
+
+use namespace mx_internal;
+
+/**
+ *  The PanelAccImpl class is the accessibility class for Panel.
+ *
+ *  @helpid 3011
+ *  @tiptext This is the Panel Accessibility Class.
+ *  @review
+ */
+public class PanelAccImpl extends AccImpl
+{
+    include "../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Class initialization
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 *  Static variable triggering the hookAccessibility() method.
+	 *  This is used for initializing PanelAccImpl class to hook its
+	 *  createAccessibilityImplementation() method to Panel class
+	 *  before it gets called from UIComponent.
+	 */
+	private static var accessibilityHooked:Boolean = hookAccessibility();
+
+	/**
+	 *  @private
+	 *  Static Method for swapping the
+	 *  createAccessibilityImplementation method of Panel with
+	 *  the PanelAccImpl class.
+	 */
+	private static function hookAccessibility():Boolean
+	{
+		Panel.createAccessibilityImplementation =
+			createAccessibilityImplementation;
+
+		return true;
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Class constants
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	private static const ROLE_SYSTEM_DIALOG:uint = 0x12;
+
+	/**
+	 *  @private
+	 */
+	private static const ROLE_SYSTEM_TITLEBAR:uint = 0x01;
+
+	/**
+	 *  @private
+	 */
+	private static const STATE_SYSTEM_FOCUSED:uint = 0x00000004;
+
+	//--------------------------------------------------------------------------
+	//
+	//  Class methods
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 *  Method for creating the Accessibility class.
+	 *  This method is called from UIComponent.
+	 *  @review
+	 */
+	mx_internal static function createAccessibilityImplementation(
+								component:UIComponent):void
+	{
+		Panel(component).getTitleBar().accessibilityImplementation =
+			new PanelAccImpl(component);
+	}
+
+	/**
+	 *  Method call for enabling accessibility for a component.
+	 *  This method is required for the compiler to activate
+	 *  the accessibility classes for a component.
+	 */
+	public static function enableAccessibility():void
+	{
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Constructor.
+	 *
+	 *  @param master The UIComponent instance that this AccImpl instance
+	 *  is making accessible.
+	 */
+	public function PanelAccImpl(master:UIComponent)
+	{
+		super(master);
+
+		role = 0x09;
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden methods: AccessibilityImplementation
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 *  Gets the role for the component.
+	 *
+	 *  @param childID children of the component
+	 */
+	override public function get_accRole(childID:uint):uint
+	{
+		var accRole:uint = role;
+
+		switch (childID)
+		{
+			case 1:
+			{
+				accRole = ROLE_SYSTEM_TITLEBAR;
+				break;
+			}
+
+			case 2:
+			{
+				accRole = ROLE_SYSTEM_DIALOG;
+				break;
+			}
+
+			default:
+				accRole = role;
+				break;
+		}
+
+		return accRole;
+	}
+
+	/**
+	 *  @private
+	 *  IAccessible method for returning the state of the Panel.
+	 *  States are predefined for all the components in MSAA. Values are assigned to each state.
+	 *  Depending upon the Panel being Focusable, Focused and Moveable, a value is returned.
+	 *
+	 *  @param childID:int
+	 *
+	 *  @return State:uint
+	 */
+	override public function get_accState(childID:uint):uint
+	{
+		var accState:uint = getState(childID);
+
+		switch (childID)
+		{
+			case 1:
+			{
+				break;
+			}
+
+			case 2:
+			{
+				accState |= STATE_SYSTEM_FOCUSED;
+				break;
+			}
+
+			default:
+			{
+				break;
+			}
+		}
+
+		return accState;
+	}
+
+	/**
+	 *  @private
+	 *  Method to return an array of childIDs of Panel component
+	 *
+	 *  @return Array
+	 */
+	override public function getChildIDArray():Array
+	{
+		var childIDs:Array = [];
+
+		for (var i:int = 0; i < 2; ++i)
+		{
+			childIDs[i] = i + 1;
+		}
+
+		return childIDs;
+	}
+	/**
+	 *  @private
+	 *  IAccessible method for returning the bounding box of the Panel.
+	 *
+	 *  @param childID:uint
+	 *
+	 *  @return Location:Object
+	 */
+	override public function accLocation(childID:uint):*
+	{
+		var location:Object = master;
+
+		switch (childID)
+		{
+			case 1:
+			{
+				location = Panel(master).getTitleBar();
+				break;
+			}
+
+			case 2:
+			{
+				location = Panel(master).contentPane;
+				break;
+			}
+
+			default:
+			{
+				break;
+			}
+		}
+
+		return location;
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden methods: AccImpl
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 *  method for returning the name of the Panel
+	 *  which is spoken out by the screen reader
+	 *  The Panel should return the Title as the name.
+	 *
+	 *  @param childID:uint
+	 *
+	 *  @return Name:String
+	 */
+	override protected function getName(childID:uint):String
+	{
+		var name:String = Panel(master).title;
+
+		switch (childID)
+		{
+			case 1:
+			{
+				name = "";
+				break;
+			}
+
+			case 2:
+			{
+				name = "";
+				break
+			}
+
+			default:
+			{
+				name = Panel(master).title + " " + Panel(master).className;
+				break;
+			}
+		}
+
+		return name;
+	}
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 22032
Author:   chiedozi@adobe.com
Date:     2011-08-16T21:08:55.666603Z

Log Message:
-----------
ViewNavigator automatically register's the class aliases for NavigationStack and ViewDescriptor to support PersistenceManager

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/manifest.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorApplicationBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SplitViewNavigator.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorApplicationBase.as
+++ frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorApplicationBase.as
@@ -830,11 +830,6 @@
      */
     private function initializePersistenceManager():void
     {
-        // Register aliases for custom classes that will be written to
-        // persistence store by navigator
-        registerClassAlias("ViewDescriptor", ViewDescriptor);
-        registerClassAlias("NavigationStack", NavigationStack);
-
         // Initialize and load the persisted data.
         _persistenceManager = createPersistenceManager();
         _persistenceManager.load();


added 'Restart Weave' menu item

added 'Restart Weave' menu item

Change-Id: I776ab5ead4ee9b2703943273d2f2aa00cd50bfbf

--- WeaveClient/src/weave/VisApplication.as
+++ WeaveClient/src/weave/VisApplication.as
@@ -372,7 +372,7 @@
 			{
 				var urlParams:URLVariables = new URLVariables(ExternalInterface.call("window.location.search.substring", 1)); // text after '?'
 				for (var key:String in urlParams)
-					if (!_flashVars.hasOwnProperty(key))
+					if (!_flashVars.hasOwnProperty(key)) // flashvars take precedence over url params
 						_flashVars[key] = urlParams[key];

 				// backwards compatibility with old param name
@@ -822,6 +822,8 @@
 					_weaveMenu.addSeparatorToMenu(_sessionMenu);
 					_weaveMenu.addMenuItemToMenu(_sessionMenu, new WeaveMenuItem(lang("Manage plugins..."), managePlugins));
 				}
+				_weaveMenu.addSeparatorToMenu(_sessionMenu);
+				_weaveMenu.addMenuItemToMenu(_sessionMenu, new WeaveMenuItem(lang('Restart Weave'), Weave.externalReload));
 				if (Weave.properties.showCollaborationMenuItem.value)
 				{
 					_weaveMenu.addSeparatorToMenu(_sessionMenu);


remove double ;

remove double ;

--- src/aerys/minko/scene/controller/PickingController.as
+++ src/aerys/minko/scene/controller/PickingController.as
@@ -408,7 +408,7 @@
 			_lastMouseOver = _currentMouseOver;
 			if ((pixelColor >>> 24) == 0xFF)
 			{
-				var mesh	: Mesh	= _pickingIdToMesh[pixelColor & 0xFFFFFF];;
+				var mesh	: Mesh	= _pickingIdToMesh[pixelColor & 0xFFFFFF];

 				_currentMouseOver	= mesh.tag & _tag ? mesh : null;
 			}


- Updated timing in SlotPoolTest - Added comment to SlotPoolTest why it is currently not very reliable

--- tests/org/osflash/signals/SlotPoolTest.as
+++ tests/org/osflash/signals/SlotPoolTest.as
@@ -8,6 +8,7 @@
 	public final class SlotPoolTest
 	{
 		//todo how to use IAsync correct to continue after EXIT_FRAME?
+		//todo this test might fail if setTimeout is not called after EXIT_FRAME ...

 		[Inject]
 	    public var async:IAsync;
@@ -42,7 +43,7 @@

 			setTimeout(async.add(function():void{
 				 assertEquals(SlotPool.POOL_GROWTH_RATE, SlotPool.numAvailable);
-		 	}, 50), 1);
+		 	}, 50), 5);
 		}

 		[Test]
@@ -66,7 +67,7 @@

 			setTimeout(async.add(function():void{
 				 assertNull(slot.listener);
-		 	}, 50), 1);
+		 	}, 50), 5);
 		}

 		[Test]
@@ -82,7 +83,7 @@

 			setTimeout(async.add(function():void{
 				assertEquals(n, SlotPool.numAvailable);
-		 	}, 50), 1);
+		 	}, 50), 5);
 		}

 		[Test]


update ConfigFileHelper docs

update ConfigFileHelper docs


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

--- frameworks/projects/advancedgrids/src/mx/olap/IOLAPTuple.as
+++ frameworks/projects/advancedgrids/src/mx/olap/IOLAPTuple.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.olap
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 3590
Author:   smgilson@adobe.com
Date:     2008-10-13T14:29:43.093204Z

Log Message:
-----------
Replace invalid html characters

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

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/ILayoutItem.as

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

--- frameworks/projects/framework/src/mx/core/ILayoutElement.as
+++ frameworks/projects/framework/src/mx/core/ILayoutElement.as
@@ -65,13 +65,13 @@

     /**
      *  The TBounds of the minimum item size.
-     *  minSize <= preferredSize must be true.
+     *  minSize <= preferredSize must be true.
      */
     function get minSize():Point;

     /**
      *  The TBounds of the maximum item size.
-     *  preferredSize <= maxSize must be true.
+     *  preferredSize <= maxSize must be true.
      */
     function get maxSize():Point;


Transferred from the Adobe Open Source Subversion Repository

Revision: 19781
Author:   dloverin@adobe.com
Date:     2011-01-17T19:16:47.981652Z

Log Message:
-----------
Fix module leak.

styleModuleDictionary kept hard references to style managers in other modules.

QE notes: None.
Doc notes: None.
Bugs: SDK-29120
Reviewer: Glenn
Tests run: cyclone server
Is noteworthy for integration: No

Modified Paths:
--------------
/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/StyleManager.as

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

--- frameworks/projects/framework/src/mx/styles/StyleManager.as
+++ frameworks/projects/framework/src/mx/styles/StyleManager.as
@@ -129,12 +129,14 @@
             // trace("no style manager specified, using top-level style manager");
         }

-		if (!styleManagerDictionary)
+        if (!styleManagerDictionary)
 			styleManagerDictionary = new Dictionary(true);

-		if (styleManagerDictionary[moduleFactory] == null)
+        var styleManager:IStyleManager2;
+        var dictionary:Dictionary = styleManagerDictionary[moduleFactory];
+		if (dictionary == null)
 		{
-	        var styleManager:IStyleManager2 = IStyleManager2(moduleFactory.getImplementation("mx.styles::IStyleManager2"));
+	        styleManager = IStyleManager2(moduleFactory.getImplementation("mx.styles::IStyleManager2"));
 	        if (styleManager == null)
 	        {
 	            // All Flex 4 swfs should have a style manager.
@@ -143,10 +145,20 @@
 	            styleManager = impl;
 	        }

-			styleManagerDictionary[moduleFactory] = styleManager;
+            dictionary = new Dictionary(true);
+			styleManagerDictionary[moduleFactory] = dictionary;
+            dictionary[styleManager] = 1;
 		}
+        else
+        {
+            for (var o:Object in dictionary)
+            {
+                styleManager = o as IStyleManager2;
+                break;
+            }
+        }

-        return styleManagerDictionary[moduleFactory];
+        return styleManager;
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 10633
Author:   dloverin@adobe.com
Date:     2009-09-28T13:24:30.559033Z

Log Message:
-----------
Use styleManager instance instead of StyleManager singleton (framework and compiler generated code)

Modified compiler generated style code for the FlexInit class. The style related changes are only available with the -keep option. AST generation is coming later.

Only the framework project is changed here. The other projects are will be changed soon.

QE notes: None.
Doc notes: None.
Bugs:
Reviewer: Alex and Paul
Tests run: checkintests, all Mustella tests(no new failures)
Is noteworthy for integration: no.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ButtonBarButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/HaloBorder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/accordionClasses/AccordionHeader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/utilityClasses/CanvasLayout.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/controls/DateChooser.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/dragClasses/DragProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ScrollArrowSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/configuration_en.properties</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/CompilerConfiguration.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ProgressIndeterminateSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/DateChooserMonthArrowSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/SliderThumbSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/DividedBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/DragManagerImpl.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/skins/halo/ScrollThumbSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridColumn.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/IStyleModule.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/framework/src/mx/containers/Form.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/IStyleManager2.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/modules/compiler/src/java/flex2/tools/PreLink.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/gen/ClassDefLib.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ProgressTrackSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/TitleBackground.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/NumericStepperDownSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/PopUpButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/ProgrammaticSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/TabSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/textClasses/TextRange.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/LayoutContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/AccordionHeaderSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/CheckBoxIcon.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/NumericStepperUpSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/RadioButtonIcon.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/states/SetStyle.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ComboBoxArrowSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridHeaderBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/FormItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridHeader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/MenuBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ProgressBarSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/BusyCursor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/Request.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/MenuBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Tree.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSStyleDeclaration.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Accordion.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/SliderTrackSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleModule.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ScrollTrackSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/DataGridHeaderBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/modules/ModuleManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/SetStyleActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleDef.vm</path>

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

--- frameworks/projects/mx/src/mx/skins/halo/SliderThumbSkin.as
+++ frameworks/projects/mx/src/mx/skins/halo/SliderThumbSkin.as
@@ -236,7 +236,7 @@
 		var borderColor:uint = getStyle("borderColor");
 		var fillAlphas:Array = getStyle("fillAlphas");
 		var fillColors:Array = getStyle("fillColors");
-		StyleManager.getColorNames(fillColors);
+        styleManager.getColorNames(fillColors);
 		var themeColor:uint = getStyle("themeColor");

 		// Derivative styles.


Transferred from the Adobe Open Source Subversion Repository

Revision: 4096
Author:   aharui@adobe.com
Date:     2008-11-13T05:53:00.515677Z

Log Message:
-----------
FxButtonBar initial checkin.
Also implemented IDataRenderer in FxButton.

QE Notes: None
Doc Notes: None
Bugs: None
Reviewer: Glenn
tests: checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/Flex4Classes.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/defaults.css</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxButtonBar.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxButtonBar.png</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxButtonBarSkin.mxml</path>

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

--- frameworks/projects/spark/src/spark/components/ButtonBar.as
+++ frameworks/projects/spark/src/spark/components/ButtonBar.as
@@ -0,0 +1,316 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 mx.components
+{
+import flash.display.DisplayObject;
+import flash.events.FocusEvent;
+import flash.events.KeyboardEvent;
+import flash.events.MouseEvent;
+import flash.ui.Keyboard;
+
+import mx.components.baseClasses.FxListBase;
+import mx.core.ClassFactory;
+import mx.core.IFactory;
+import mx.events.ItemExistenceChangedEvent;
+import mx.layout.HorizontalLayout;
+import mx.layout.VerticalLayout;
+import mx.managers.IFocusManagerComponent;
+
+[IconFile("FxButtonBar.png")]
+
+/**
+ *  The FxButtonBar control displays a set of Buttons
+ *
+ *  @includeExample examples/FxButtonBarExample.mxml
+ */
+public class FxButtonBar extends FxListBase
+{
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constants
+    //
+    //--------------------------------------------------------------------------
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     */
+    public function FxButtonBar()
+    {
+        super();
+        itemRendererFunction = defaultButtonBarItemRendererFunction;
+
+        //Add a keyDown event listener so we can adjust
+        //selection accordingly.
+        addEventListener(KeyboardEvent.KEY_DOWN, buttonBar_keyDownHandler, true);
+
+		// add a focusIn handler to move the focused button to the top layer
+        addEventListener(FocusEvent.FOCUS_IN, buttonBar_focusInHandler);
+
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  firstButton
+    //----------------------------------
+
+    [SkinPart(required="false")]
+    /**
+     * A skin part that defines the first button.
+     */
+    public var firstButton:IFactory;
+
+    //----------------------------------
+    //  lastButton
+    //----------------------------------
+
+    [SkinPart(required="false")]
+    /**
+     * A skin part that defines the last button.
+     */
+    public var lastButton:IFactory;
+
+    //----------------------------------
+    //  middleButton
+    //----------------------------------
+
+    [SkinPart]
+    /**
+     * A skin part that defines the middle button(s).
+     */
+    public var middleButton:IFactory;
+
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    override protected function itemSelected(item:Object, selected:Boolean):void
+    {
+        var item:Object = dataGroup.getItemRenderer(item);
+
+        if (item)
+        {
+            if ("selected" in item)
+                item.selected = selected;
+            else
+            {
+                // TODO: localize below (and other messages)
+                throw new Error("The item needs to support the \"selected\" property " +
+                        "for selection to work.  An easy way to accomplish this is by wrapping " +
+                        "your component in a DefaultComplexItemRenderer");
+            }
+        }
+    }
+
+    /**
+     *  Returns true if the item is selected.
+     */
+    public function isItemSelected(item:Object):Boolean
+    {
+        return item == selectedItem;
+    }
+
+    /**
+     *  @inheritDoc
+     */
+    override protected function partAdded(partName:String, instance:Object):void
+    {
+        super.partAdded(partName, instance);
+        if (instance == dataGroup)
+        {
+            dataGroup.addEventListener(
+                ItemExistenceChangedEvent.ITEM_ADD, dataGroup_itemAddHandler);
+            dataGroup.addEventListener(
+                ItemExistenceChangedEvent.ITEM_REMOVE, dataGroup_itemRemoveHandler);
+        }
+    }
+
+    /**
+     *  @inheritDoc
+     */
+    override protected function partRemoved(partName:String, instance:Object):void
+    {
+        if (instance == dataGroup)
+        {
+            dataGroup.removeEventListener(
+                ItemExistenceChangedEvent.ITEM_ADD, dataGroup_itemAddHandler);
+            dataGroup.removeEventListener(
+                ItemExistenceChangedEvent.ITEM_REMOVE, dataGroup_itemRemoveHandler);
+        }
+
+        super.partRemoved(partName, instance);
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+    //--------------------------------------------------------------------------
+    //
+    //  Private Methods
+    //
+    //--------------------------------------------------------------------------
+
+    private function defaultButtonBarItemRendererFunction(data:Object):IFactory
+	{
+		var i:int = dataProvider.getItemIndex(data);
+		if (i == 0)
+			return firstButton ? firstButton : middleButton;
+
+		var n:int = dataProvider.length - 1;
+		if (i == n)
+			return lastButton ? lastButton : middleButton;
+
+		return middleButton;
+	}
+
+
+    //--------------------------------------------------------------------------
+    //
+    //  Event Handlers
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     *  Called when an item has been added to this component.
+     */
+    private function dataGroup_itemAddHandler(event:ItemExistenceChangedEvent):void
+    {
+        var renderer:Object = dataGroup.getItemRenderer(event.relatedObject);
+
+        if (renderer)
+            renderer.addEventListener("click", item_clickHandler);
+
+        if (isItemSelected(event.relatedObject))
+            itemSelected(event.relatedObject, true);
+    }
+
+    /**
+     *  @private
+     *  Called when an item has been removed from this component.
+     */
+    private function dataGroup_itemRemoveHandler(event:ItemExistenceChangedEvent):void
+    {
+        var renderer:Object = dataGroup.getItemRenderer(event.relatedObject);
+
+        if (renderer)
+            renderer.removeEventListener("click", item_clickHandler);
+    }
+
+    /**
+     *  @private
+     *  Called when an item is clicked.
+     */
+    private function item_clickHandler(event:MouseEvent):void
+    {
+        var item:Object = dataGroup.getRendererItem(DisplayObject(event.currentTarget));
+
+		selectedItem = item;
+    }
+
+    /**
+     *  @private
+	 *  Attempt to lift the focused button above the others
+	 *  so that the focus ring can show.
+     */
+    private function buttonBar_focusInHandler(event:FocusEvent):void
+    {
+		var currentButton:IFocusManagerComponent;
+		var item:Object;
+		var index:int;
+		var renderer:Object;
+
+		currentButton = focusManager.getFocus();
+		item = dataGroup.getRendererItem(DisplayObject(currentButton));
+		index = dataProvider.getItemIndex(item);
+
+		var n:int = dataProvider.length;
+		var zz:int = 0;
+		for (var i:int = 0; i < n; i++)
+		{
+			renderer = dataGroup.getItemRenderer(dataProvider.getItemAt(i));
+			if (renderer == currentButton)
+				renderer.layer = n - 1;
+			else
+				renderer.layer = zz++;
+		}
+	}
+
+    /**
+     *  @private
+     */
+    private function buttonBar_keyDownHandler(event:KeyboardEvent):void
+    {
+		var currentButton:IFocusManagerComponent;
+		var item:Object;
+		var index:int;
+		var renderer:Object;
+
+        switch (event.keyCode)
+        {
+            case Keyboard.UP:
+            case Keyboard.LEFT:
+            {
+				focusManager.showFocusIndicator = true;
+				currentButton = focusManager.getFocus();
+		        item = dataGroup.getRendererItem(DisplayObject(currentButton));
+				index = dataProvider.getItemIndex(item);
+				if (index > 0)
+				{
+					renderer = dataGroup.getItemRenderer(dataProvider.getItemAt(index - 1));
+					IFocusManagerComponent(renderer).setFocus();
+				}
+
+                break;
+            }
+            case Keyboard.DOWN:
+            case Keyboard.RIGHT:
+            {
+				focusManager.showFocusIndicator = true;
+				currentButton = focusManager.getFocus();
+		        item = dataGroup.getRendererItem(DisplayObject(currentButton));
+				index = dataProvider.getItemIndex(item);
+				if (index < dataProvider.length - 1)
+				{
+					renderer = dataGroup.getItemRenderer(dataProvider.getItemAt(index + 1));
+					IFocusManagerComponent(renderer).setFocus();
+				}
+
+            }
+        }
+    }
+
+}
+
+}
+


Transferred from the Adobe Open Source Subversion Repository

Revision: 14009
Author:   cframpto@adobe.com
Date:     2010-02-05T20:53:05.085991Z

Log Message:
-----------
DataGroup.getVirtualElementAt() needs to revalidate the element when the IR already exists but the data changes.

The element also needs to revalidate if it is resized, whether or not the IR existed before.  This wasn't part of the bug but Hans realized this when he did the code review.

QE notes:
Doc notes:
Bugs: SDK-25354
Reviewer: Hans
Tests run: checkintests
Is noteworthy for integration:

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

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

--- frameworks/projects/spark/src/spark/components/DataGroup.as
+++ frameworks/projects/spark/src/spark/components/DataGroup.as
@@ -1386,22 +1386,15 @@
                 virtualRendererIndices.push(index);

             var createdIR:Boolean = false;
-            var recycledIR:Boolean = false;
-
-            // If the IR for index already exists, it may not be associated with the
-            // right item if the dataProvider has changed
-            if (elt)
-                setUpItemRenderer(elt, index, dataProvider.getItemAt(index));
-            else
-            {
-                const item:Object = dataProvider.getItemAt(index);
-
+            const item:Object = dataProvider.getItemAt(index);
+
+            if (!elt)
+            {
                 if (isRecyclingOK() && (freeRenderers.length > 0))
                 {
                     elt = freeRenderers.pop();
                     elt.visible = true;
                     elt.includeInLayout = true;
-                    recycledIR = true;
                 }
                 else
                 {
@@ -1412,23 +1405,22 @@
                 indexToRenderer[index] = elt;
             }

-            addItemRendererToDisplayList(DisplayObject(elt));
-
-            if (createdIR || recycledIR)
-            {
-                setUpItemRenderer(elt, index, item);
-                if (!isNaN(eltWidth) || !isNaN(eltHeight))
-                {
-                    // If we're going to set the width or height of this
-                    // layout element, first force it to initialize its
-                    // measuredWidth,Height.
-                    if (elt is IInvalidating)
-                        IInvalidating(elt).validateNow();
-                    elt.setLayoutBoundsSize(eltWidth, eltHeight);
-                }
-                if (elt is IInvalidating)
+            addItemRendererToDisplayList(DisplayObject(elt));
+            setUpItemRenderer(elt, index, item);
+
+            if (!isNaN(eltWidth) || !isNaN(eltHeight))
+            {
+                // If we're going to set the width or height of this
+                // layout element, first force it to initialize its
+                // measuredWidth,Height.
+                if (elt is IInvalidating)
                     IInvalidating(elt).validateNow();
-            }
+                elt.setLayoutBoundsSize(eltWidth, eltHeight);
+            }
+
+            if (elt is IInvalidating)
+                IInvalidating(elt).validateNow();
+
             if (createdIR)
                 dispatchEvent(new RendererExistenceEvent(RendererExistenceEvent.RENDERER_ADD, false, false, elt, index, item));
         }


Transferred from the Adobe Open Source Subversion Repository

Revision: 4919
Author:   gosmith@adobe.com
Date:     2009-02-10T21:57:24.277259Z

Log Message:
-----------
The widthInChars property in TextView, FxTextInput, and FxTextArea is now a Number rather than an int; ditto for the heightInRows property in TextView and FxTextArea.

QE Notes: None
Doc Notes: None
Bugs: None
Reviewer: Jason

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxTextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxTextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/TextView.as</path>

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

--- frameworks/projects/spark/src/spark/components/TextInput.as
+++ frameworks/projects/spark/src/spark/components/TextInput.as
@@ -87,7 +87,7 @@
     /**
      *  @private
      */
-    private var _widthInChars:int = 20;
+    private var _widthInChars:Number = 20;

     /**
      *  @private
@@ -103,7 +103,7 @@
      *
      *  @default
      */
-    public function get widthInChars():int
+    public function get widthInChars():Number
     {
         return _widthInChars;
     }
@@ -111,7 +111,7 @@
     /**
      *  @private
      */
-    public function set widthInChars(value:int):void
+    public function set widthInChars(value:Number):void
     {
         if (value == _widthInChars)
             return;


Transferred from the Adobe Open Source Subversion Repository

Revision: 7154
Author:   srahim@adobe.com
Date:     2009-05-20T21:20:01.377159Z

Log Message:
-----------
ASDoc updates; bug fix.
QE Notes: None
Doc Notes: None
Bugs: FLEXDOCS-831 (for the filter classes and RichEditableTextContainerManager.as)
Checkintests: passed

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/TextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/filters/GradientGlowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/filters/ShaderFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/RichEditableTextContainerManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/TextInput.as</path>

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

--- frameworks/projects/spark/src/spark/filters/ShaderFilter.as
+++ frameworks/projects/spark/src/spark/filters/ShaderFilter.as
@@ -31,7 +31,7 @@

 /**
  * The Flex ShaderFilter class abstracts away many of the details of using
- * the stock Flash ShaderFilter, Shader, and ShaderData classes to apply a
+ * the Flash ShaderFilter, Shader, and ShaderData classes to apply a
  * Pixel Bender shader as a filter.
  *
  *
The ShaderFilter class must be initialized with either an instance of a Shader
@@ -40,35 +40,37 @@
  * mechanism for accessing both scalar and multi-dimensional shader input parameters
  * directly as simple named properties.

  *
- *
To set a simple scalar shader input parameter (e.g. of type FLOAT or INT), you can simply
- * refer to the property directly, e.g. myFilter.radius.

- *
- *
To set or animate an individual component of a  multidimensional shader input parameter (such as
- * FLOAT2) you can use a property suffix convention to address the individual value directly. For
- * instance the following are equivalent means of settting the first and second components of the FLOAT2
- * property 'center':
+ *
To set a simple scalar shader input parameter, such as of type FLOAT or INT, you can
+ * refer to the property directly, for example, myFilter.radius.

+ *
+ *
To set or animate an individual component of a multidimensional shader input parameter, such as
+ * FLOAT2, you can use a property suffix convention to access the individual value directly.
+ * The following code shows two ways to set the first and second components of the FLOAT2
+ * property center:
  *

  *     // 'center' is an input parameter of type FLOAT2.
  *     shader.center = [10,20];
  *

  *

- *     // Alternate means of addressing the first and second component of 'center'.
+ *     // Use property suffix convention to access the first and second component of 'center'.
  *     shader.center_x = 10;
  *     shader.center_y = 20;
  *

  *
- *
The full set of supported convenience suffixes are as follows:

- *
- *
For shader input parameters of type BOOL2, BOOL3, BOOL4, FLOAT2, FLOAT3, FLOAT4, INT2,
- * INT3, or INT4, either "r g b a", "x y z w", or "s t p q" may be utilized as convenience suffixes
- * to access the 1st, 2nd, 3rd and 4th component respectively.

- *
- *
For shader input parameters of type MATRIX2x2, MATRIX3x3, or MATRIX4x4,
- * 'a b c d e f g h i j k l m n o p" may be used as property suffixes to access the
- * 1st - 16th component of a given matrix.

- *
- *
Note that as properties on the ShaderFilter change (such as during animation), the
- * ShaderFilter will automatically re-apply itself to the filters array of the visual
+ *
The full set of supported property suffixes that you can use are as follows:

+ *
+ *

+ *
For shader input parameters of type BOOL2, BOOL3, BOOL4, FLOAT2, FLOAT3, FLOAT4, INT2,
+ * INT3, or INT4, you can use "r g b a", "x y z w", or "s t p q"
+ * to access the 1st, 2nd, 3rd and 4th component, respectively.

+ *
+ *
For shader input parameters of type MATRIX2x2, MATRIX3x3, or MATRIX4x4, you can use
+ * "a b c d e f g h i j k l m n o p" to access the
+ * 1st - 16th component of a given matrix, respectively.

+ *

+ *
+ *
As properties on the ShaderFilter change (such as during animation), the
+ * ShaderFilter automatically reapplies itself to the filters array of the visual
  * component it is applied to.

  *
  * @see mx.effects.AnimateFilter
@@ -177,7 +179,7 @@
     private var _shaderClass:Class;

     /**
-     * An object representing the Shader to use with this filter, either a Class
+     * An object representing the Shader to use with this filter. Either a Class
      * or Shader instance is allowed.
      *
      *  @langversion 3.0
@@ -209,7 +211,7 @@
     }

     /**
-     * flash.display.Shader instance.
+     * A flash.display.Shader instance.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -348,6 +350,7 @@
      * by the constants in the ShaderPrecision class.
      *
      *  @see flash.display.Shader
+     *  @see flash.display.ShaderPrecision
      *
      *  @langversion 3.0
      *  @playerversion Flash 10


Transferred from the Adobe Open Source Subversion Repository

Revision: 4889
Author:   jszeto@adobe.com
Date:     2009-02-07T01:21:29.010759Z

Log Message:
-----------
Reverting revision 4885

Something in this checkin is causing an ASDoc compile failure. I will track this down later and resubmit the changes.

Modified Paths:
--------------
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/BaseDimensionFilter.as" copyfrom-rev="4884" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/BaseDimensionFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/BevelFilter.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/GradientFilter.as" copyfrom-rev="4884" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/GradientFilter.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/IBitmapFilter.as" copyfrom-rev="4884" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/IBitmapFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/ColorMatrixFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/BlurFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/DisplacementMapFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/ShaderFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/StrokedElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/GlowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/DropShadowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/GradientBevelFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/Parser.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/IFlexBitmapFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/ConvolutionFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimateFilterInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxAnimateFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/FrameworkClasses.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/BaseFilter.as" copyfrom-rev="4884" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/BaseFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/GradientGlowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.as</path>

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

--- frameworks/projects/spark/src/spark/filters/ShaderFilter.as
+++ frameworks/projects/spark/src/spark/filters/ShaderFilter.as
@@ -24,15 +24,10 @@
 import flash.utils.Proxy;
 import flash.utils.flash_proxy;

-import mx.filters.IFlexBitmapFilter;
+import mx.filters.BaseFilter;
+import mx.filters.IBitmapFilter;

 use namespace flash_proxy;
-
-/**
- *  @review
- *  Dispatched when a property value has changed.
- */
-[Event(name="change", type="flash.events.Event")]

 /**
  * The Flex ShaderFilter class abstracts away many of the details of using
@@ -112,9 +107,19 @@
  * </listing>
  */
 public dynamic class ShaderFilter extends Proxy
-    implements IEventDispatcher, IFlexBitmapFilter
+    implements IBitmapFilter, IEventDispatcher
 {
-	include "../core/Version.as";
+    //--------------------------------------------------------------------------
+    //
+    //  Variables
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     * Private storage for incoming properties, queued until
+     * shader is initialized and available.
+     */
+    private var propertyQueue:Object;

     //--------------------------------------------------------------------------
     //
@@ -133,18 +138,6 @@
         eventDispatcher = new EventDispatcher();
         this.shader = shader;
     }
-
-    //--------------------------------------------------------------------------
-    //
-    //  Variables
-    //
-    //--------------------------------------------------------------------------
-
-    /**
-     * Private storage for incoming properties, queued until
-     * shader is initialized and available.
-     */
-    private var propertyQueue:Object;

     //--------------------------------------------------------------------------
     //
@@ -535,9 +528,9 @@
      * Notify of a change to our filter, so that filter stack is ultimately
      * re-applied by the framework.
      */
-    private function notifyFilterChanged():void
-    {
-        dispatchEvent(new Event(Event.CHANGE));
+    public function notifyFilterChanged():void
+    {
+        dispatchEvent(new Event(BaseFilter.CHANGE));
     }

     /**
@@ -545,7 +538,7 @@
      * Returns a native flash.filters.ShaderFilter instance suitable
      * for application in a DisplayObject filter stack.
      */
-    public function createBitmapFilter():BitmapFilter
+    public function clone():BitmapFilter
     {
         var instance:flash.filters.ShaderFilter;
         if (_shader)


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

--- frameworks/projects/advancedgrids/src/mx/core/Version.as
+++ frameworks/projects/advancedgrids/src/mx/core/Version.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.
-//
-////////////////////////////////////////////////////////////////////////////////

 import mx.core.mx_internal;


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

--- frameworks/projects/framework/src/mx/core/FlexGlobals.as
+++ frameworks/projects/framework/src/mx/core/FlexGlobals.as
@@ -0,0 +1,36 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.core
+{
+
+[ExcludeClass]
+
+/**
+ *  @private
+ */
+public class ApplicationGlobals
+{
+    //--------------------------------------------------------------------------
+    //
+    //  Class variables
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     *  Storage for the application property.
+     *  Set in the constructor.
+     */
+	public static var application:Object;
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 11587
Author:   smgilson@adobe.com
Date:     2009-11-09T21:54:52.485227Z

Log Message:
-----------
ASDoc bug fixes:

FLEXDOCS-1065 mx tile should list TileGroup as its Spark replacement
FLEXDOCS-1042 remove old refs to Flex Builder
FLEXDOCS-1049 doc spar.components.CheckBox.focusColor
FLEXDOCS-1100 fix fx:Library example

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/FlexVersion.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponentGlobals.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Tile.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Panel.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/spark/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/netmon/NetworkMonitor.as</path>

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

--- frameworks/projects/framework/src/mx/core/FlexVersion.as
+++ frameworks/projects/framework/src/mx/core/FlexVersion.as
@@ -304,7 +304,7 @@
     /**
      *  @private
      *  A back door for changing the compatibility version.
-     *  This is provided for FlexBuilder's Design View,
+     *  This is provided for Flash Builder's Design View,
      *  which needs to be able to change compatibility mode.
      *  In general, we won't support late changes to compatibility,
      *  because the framework won't watch for changes.


Transferred from the Adobe Open Source Subversion Repository

Revision: 10392
Author:   chaase@adobe.com
Date:     2009-09-18T15:56:33.892460Z

Log Message:
-----------
Fix for weird transition behavior when setting a component's state from its container's state. The fix is to defer the state setting that happens as part of SetProperty overrides, so that it only gets set to its final value, not transient values as the currentState gets removed and then applied.

QE notes: None
Doc notes: None
Bugs: sdk-23251
Reviewer: Corey
Tests run: checkintests, Mustella spark/effects mx/states States
Is noteworthy for integration: Yes, fix requested by downstream teams

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/states/SetProperty.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>

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

--- frameworks/projects/framework/src/mx/core/UIComponent.as
+++ frameworks/projects/framework/src/mx/core/UIComponent.as
@@ -5741,6 +5741,37 @@
         setCurrentState(value, true);
     }

+    /**
+     *  @private
+     *  Backing variable for currentStateDeferred property
+     */
+    private var _currentStateDeferred:String;
+
+    /**
+     *  @private
+     *  Version of currentState property that defers setting currentState
+     *  until commitProperties() time. This is used by SetProperty.remove()
+     *  to avoid causing state transitions when currentState is being rolled
+     *  back in a state change operation just to be set immediately after to the
+     *  actual new currentState value. This avoids unnecessary, and sometimes
+     *  incorrect, use of transitions based on this transient state of currentState.
+     */
+    mx_internal function get currentStateDeferred():String
+    {
+        return currentState;
+    }
+
+    /**
+     *  @private
+     */
+    mx_internal function set currentStateDeferred(value:String):void
+    {
+        _currentStateDeferred = value;
+        if (value != null)
+            invalidateProperties();
+    }
+
+
     //----------------------------------
     //  states
     //----------------------------------
@@ -7452,6 +7483,14 @@
         }
         else
         {
+            // Handle a deferred state change request.
+            if (_currentStateDeferred != null)
+            {
+                var newState:String = _currentStateDeferred;
+                _currentStateDeferred = null;
+                currentState = newState;
+            }
+
             oldScaleX = scaleX;
             oldScaleY = scaleY;
         }


Transferred from the Adobe Open Source Subversion Repository

Revision: 17
Author:   open-source-svn-admin@adobe.com
Date:     2007-12-17T17:11:45.662879Z

Log Message:
-----------
Change 191210 by mhorn@MHORN-T43P on 2007/12/17 12:10:34 bug fix https://bugs.adobe.com/jira/browse/FLEXDOCS-300 Affected files ...

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/NumericStepper.as

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

--- frameworks/projects/mx/src/mx/controls/NumericStepper.as
+++ frameworks/projects/mx/src/mx/controls/NumericStepper.as
@@ -1213,7 +1213,7 @@

     /**
      *  @private
-     *  Increase/decrease the step value.
+     *  Increase/decrease the current value.
      */
     private function buttonPress(button:Button, trigger:Event = null):void
     {


FLEX-28401 Changes so that small numbers > 0.0000001 are supported and display correctly without scientific notation

--- frameworks/projects/mx/src/mx/controls/NumericStepper.as
+++ frameworks/projects/mx/src/mx/controls/NumericStepper.as
@@ -1123,6 +1123,12 @@
      *  _value will hold uncommitted values as well
      */
     private var lastValue:Number = 0;
+
+	/**
+	 *  @private
+	 */
+	private var lastField:String = "";
+

     /**
      *  @private
@@ -1455,7 +1461,17 @@
             return;

         lastValue = _value = v;
-        inputField.text = v.toString();
+
+		var numStr:String =  v.toString();
+		if (numStr.indexOf("e") >= 0) {
+			var parts:Array = (new String(1 + stepSize)).split(".");
+
+			if (parts.length == 2)
+				numStr = v.toFixed(parts[1].length).toString();
+		}
+
+        inputField.text = numStr;
+		lastField = numStr;

         if (sendEvent)
         {
@@ -1478,10 +1494,11 @@
     private function takeValueFromTextField(trigger:Event = null):void
     {
         var inputValue:Number = Number(inputField.text);
+
         if ((inputValue != lastValue &&
-            (Math.abs(inputValue - lastValue) >= 0.000001 || isNaN(inputValue))) ||
-            inputField.text == "" || (inputField.text &&
-           inputField.text.length != lastValue.toString().length))
+            (Math.abs(inputValue - lastValue) >= 0.000001 || isNaN(inputValue)))
+            || inputField.text == ""
+			|| (inputField.text && inputField.text.length != lastField.length))
         {
             var newValue:Number = checkValidValue(Number(inputField.text));
             inputField.text = newValue.toString();
@@ -1642,7 +1659,7 @@
                 if (inputValue != lastValue &&
                     (Math.abs(inputValue - lastValue) >= 0.000001 ||
                      isNaN(inputValue)) || (inputField.text &&
-                    inputField.text.length != lastValue.toString().length))
+                    inputField.text.length != lastField.length))
                 {
                     var newValue:Number = checkValidValue(Number(inputField.text));