Transferred from the Adobe Open Source Subversion Repository

Revision: 20013
Author:   harishs@adobe.com
Date:     2011-01-31T15:32:09.255609Z

Log Message:
-----------
QE notes: Globalization changes. Full cyclone run has been done. Default locale changes and sort bug fixes since Dec 14 2010
Doc notes: ASDOC comments for all classes have been updated.
Bugs: SDK-29132 SDK-29127 SDK-28163  SDK-29075 SDK-28600 SDK-28492 SDK-28856

Reviewer: Gordon Smith, Xie Fang, Zhigang Qi
Tests run: cyclone and checkintests
Is noteworthy for integration:

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/AdvancedStyleClient.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/collections/SortField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/validators/supportClasses/NumberValidatorBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/collections/ISort.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/validators/supportClasses/GlobalizationValidatorBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/supportClasses/CollatorBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters/NumberFormatter.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/collections/ISortField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters/CurrencyFormatter.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/collections/Sort.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/validators/NumberValidator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters/DateTimeFormatter.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/validators/CurrencyValidator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/collections/SortField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/supportClasses/GlobalizationBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/validators/supportClasses/GlobalizationUtils.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/SortingCollator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/StringTools.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/LastOperationStatus.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/collections/Sort.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters/supportClasses/NumberFormatterBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/MatchingCollator.as</path>

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

--- frameworks/projects/spark/src/spark/formatters/DateTimeFormatter.as
+++ frameworks/projects/spark/src/spark/formatters/DateTimeFormatter.as
@@ -130,12 +130,14 @@
      *

      *

      *

-     *  If the locale style is not set by one of the above techniques,
-     *  the methods of this class that depend on the locale
-     *  will set lastOperationStatus to
-     *  LastOperationStatus.LOCALE_UNDEFINED_ERROR
-     *  and depending on the return type the methods will return
-     *  null, 0, or undefined.

+     *  If the locale style is not set by one of the above
+     *  techniques, the instance of this class will be added as a
+     *  StyleClient to the topLevelApplication and
+     *  will therefore inherit the locale style from the
+     *  topLevelApplication object when the locale
+     *  dependent property getter or locale dependent method is
+     *  called.
+     *

      *
      *
Most of the properties of
      *  this class are automatically set based on the locale style. If the
@@ -172,32 +174,55 @@

     /**
      *  @private
-     *  Basic properties of the actual underlying working instance.
-     */
-    mx_internal var properties:Object = null;
+     */
+    private var timeStyleOverride:String = DateTimeStyle.LONG;

     /**
      *  @private
      */
-    private var timeStyleOverride:String = DateTimeStyle.LONG;
+    private var dateStyleOverride:String = DateTimeStyle.LONG;

     /**
      *  @private
      */
-    private var dateStyleOverride:String = DateTimeStyle.LONG;
+    private var dateTimePatternOverride:String = null;

     /**
      *  @private
      */
-    private var dateTimePatternOverride:String = null;
+    private var fallbackFormatter:FallbackDateTimeFormatter = null;

     /**
      *  @private
      */
-    private var g11nWorkingInstance:flash.globalization.DateTimeFormatter
-                                                                        = null;
-    private var fallbackFormatter:FallbackDateTimeFormatter = null;
-
+    private var _g11nWorkingInstance:flash.globalization.DateTimeFormatter
+        = null;
+
+    /**
+     *  @private
+     *  If the g11nWorkingInstance has not been defined. Call
+     *  ensureStyleSource to ensure that there is a styleParent. If there is
+     *  not a style parent, then this instance will be added as a style client
+     *  to the topLevelApplication. As a side effect of this, the styleChanged
+     *  method will be called and if there is a locale style defined for the
+     *  topLevelApplication, the createWorkingInstance method will be
+     *  executed creating a g11nWorkingInstance.
+     */
+    private function get g11nWorkingInstance ():
+        flash.globalization.DateTimeFormatter
+    {
+        if (!_g11nWorkingInstance)
+             ensureStyleSource();
+
+        return _g11nWorkingInstance;
+    }
+
+    private function set g11nWorkingInstance
+        (flashFormatter:flash.globalization.DateTimeFormatter): void
+    {
+        _g11nWorkingInstance = flashFormatter;
+    }
+
     //--------------------------------------------------------------------------
     //
     //  Overridden Properties
@@ -337,8 +362,10 @@
      */
     public function get dateStyle():String
     {
+
         if (g11nWorkingInstance)
             return g11nWorkingInstance.getDateStyle();
+

         if ((localeStyle === undefined) || (localeStyle === null))
         {
@@ -436,7 +463,7 @@
         if (dateTimePatternOverride && (dateTimePatternOverride == value))
             return;
         dateTimePatternOverride = value;
-
+
         if (g11nWorkingInstance)
             g11nWorkingInstance.setDateTimePattern(value);
         else
@@ -563,7 +590,7 @@
      */
     public function get timeStyle():String
     {
-        if (g11nWorkingInstance)
+         if (g11nWorkingInstance)
             return g11nWorkingInstance.getTimeStyle();

         if ((localeStyle === undefined) || (localeStyle === null))


Restore facilitator polling interval of 10 s (was 1 s).

1 s was for running the local experiments, but it's obnoxious to request
so frequently when we have to poll.

--- swfcat.as
+++ swfcat.as
@@ -35,7 +35,7 @@
         private const MAX_NUM_PROXY_PAIRS:uint = 100;

         // Milliseconds.
-        private const FACILITATOR_POLL_INTERVAL:int = 1000;
+        private const FACILITATOR_POLL_INTERVAL:int = 10000;

         // Bytes per second. Set to undefined to disable limit.
         public static const RATE_LIMIT:Number = undefined;


Transferred from the Adobe Open Source Subversion Repository

Revision: 18927
Author:   mhorn@adobe.com
Date:     2010-12-01T22:09:53.707641Z

Log Message:
-----------
update asdoc

Modified Paths:
--------------
/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/styles/metadata/BasicInheritingTextStyles.as

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

--- frameworks/projects/spark/src/spark/styles/metadata/BasicInheritingTextStyles.as
+++ frameworks/projects/spark/src/spark/styles/metadata/BasicInheritingTextStyles.as
@@ -10,10 +10,10 @@
 ////////////////////////////////////////////////////////////////////////////////

 /**
+ *  TLF styles are not supported in the mobile theme.
+ *
  *  @copy flashx.textLayout.formats.ITextLayoutFormat#alignmentBaseline
  *
- *
TLF styles are not supported in the mobile theme.

- *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
@@ -22,10 +22,10 @@
 [Style(name="alignmentBaseline", type="String", enumeration="useDominantBaseline,roman,ascent,descent,ideographicTop,ideographicCenter,ideographicBottom", inherit="yes")]

 /**
+ *  TLF styles are not supported in the mobile theme.
+ *
  *  @copy flashx.textLayout.formats.ITextLayoutFormat#baselineShift
  *
- *
TLF styles are not supported in the mobile theme.

- *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
@@ -34,10 +34,10 @@
 [Style(name="baselineShift", type="Object", inherit="yes")]

 /**
+ *  TLF styles are not supported in the mobile theme.
+ *
  *  @copy flashx.textLayout.formats.ITextLayoutFormat#cffHinting
  *
- *
TLF styles are not supported in the mobile theme.

- *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
@@ -56,10 +56,10 @@
 [Style(name="color", type="uint", format="Color", inherit="yes")]

 /**
+ *  TLF styles are not supported in the mobile theme.
+ *
  *  @copy flashx.textLayout.formats.ITextLayoutFormat#digitCase
  *
- *
TLF styles are not supported in the mobile theme.

- *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
@@ -68,10 +68,10 @@
 [Style(name="digitCase", type="String", enumeration="default,lining,oldStyle", inherit="yes")]

 /**
+ *  TLF styles are not supported in the mobile theme.
+ *
  *  @copy flashx.textLayout.formats.ITextLayoutFormat#digitWidth
  *
- *
TLF styles are not supported in the mobile theme.

- *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
@@ -80,10 +80,10 @@
 [Style(name="digitWidth", type="String", enumeration="default,proportional,tabular", inherit="yes")]

 /**
+ *  TLF styles are not supported in the mobile theme.
+ *
  *  @copy flashx.textLayout.formats.ITextLayoutFormat#direction
  *
- *
TLF styles are not supported in the mobile theme.

- *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
@@ -92,10 +92,10 @@
 [Style(name="direction", type="String", enumeration="ltr,rtl", inherit="yes")]

 /**
+ *  TLF styles are not supported in the mobile theme.
+ *
  *  @copy flashx.textLayout.formats.ITextLayoutFormat#dominantBaseline
  *
- *
TLF styles are not supported in the mobile theme.

- *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
@@ -114,10 +114,10 @@
 [Style(name="fontFamily", type="String", inherit="yes")]

 /**
+ *  TLF styles are not supported in the mobile theme.
+ *
  *  @copy flashx.textLayout.formats.ITextLayoutFormat#fontLookup
  *
- *
TLF styles are not supported in the mobile theme.

- *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
@@ -156,10 +156,10 @@
 [Style(name="fontWeight", type="String", enumeration="normal,bold", inherit="yes")]

 /**
+ *  TLF styles are not supported in the mobile theme.
+ *
  *  @copy flashx.textLayout.formats.ITextLayoutFormat#justificationRule
  *
- *
TLF styles are not supported in the mobile theme.

- *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
@@ -168,10 +168,10 @@
 [Style(name="justificationRule", type="String", enumeration="auto,space,eastAsian", inherit="yes")]

 /**
+ *  TLF styles are not supported in the mobile theme.
+ *
  *  @copy flashx.textLayout.formats.ITextLayoutFormat#justificationStyle
  *
- *
TLF styles are not supported in the mobile theme.

- *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
@@ -180,13 +180,13 @@
 [Style(name="justificationStyle", type="String", enumeration="auto,prioritizeLeastAdjustment,pushInKinsoku,pushOutOnly", inherit="yes")]

 /**
- *  @copy flashx.textLayout.formats.ITextLayoutFormat#kerning
- *
  *
Kerning is enabled by default for Spark components, but is disabled by default for MX components.
  *  Spark components interpret default as auto,
  *  while MX components interpret default as false.

  *
- *
TLF styles are not supported in the mobile theme.

+ *  TLF styles are not supported in the mobile theme.
+ *
+ *  @copy flashx.textLayout.formats.ITextLayoutFormat#kerning
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -196,10 +196,10 @@
 [Style(name="kerning", type="String", enumeration="auto,on,off", inherit="yes")]

 /**
+ *  TLF styles are not supported in the mobile theme.
+ *
  *  @copy flashx.textLayout.formats.ITextLayoutFormat#ligatureLevel
  *
- *
TLF styles are not supported in the mobile theme.

- *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
@@ -208,10 +208,10 @@
 [Style(name="ligatureLevel", type="String", enumeration="common,minimum,uncommon,exotic", inherit="yes")]

 /**
+ *  TLF styles are not supported in the mobile theme.
+ *
  *  @copy flashx.textLayout.formats.ITextLayoutFormat#lineHeight
  *
- *
TLF styles are not supported in the mobile theme.

- *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
@@ -220,10 +220,10 @@
 [Style(name="lineHeight", type="Object", inherit="yes")]

 /**
+ *  TLF styles are not supported in the mobile theme.
+ *
  *  @copy flashx.textLayout.formats.ITextLayoutFormat#lineThrough
  *
- *
TLF styles are not supported in the mobile theme.

- *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
@@ -232,10 +232,11 @@
 [Style(name="lineThrough", type="Boolean", inherit="yes")]

 /**
- *  @copy flashx.textLayout.formats.ITextLayoutFormat#locale
- *
- *
TLF styles are not supported in the mobile theme.

- *
+ * The locale of the text. Controls case transformations and shaping. Uses standard locale identifiers as described in Unicode Technical Standard #35. For example "en", "en_US" and "en-US" are all English, "ja" is Japanese.
+ *
+ *
The default value is undefined. This property inherits its value from an ancestor; if still undefined, it inherits from the global locale style.
+ * During the application initialization, if the global locale style is undefined, then the default value is set to "en".

+ *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
@@ -244,10 +245,10 @@
 [Style(name="locale", type="String", inherit="yes")]

 /**
+ *  TLF styles are not supported in the mobile theme.
+ *
  *  @copy flashx.textLayout.formats.ITextLayoutFormat#renderingMode
  *
- *
TLF styles are not supported in the mobile theme.

- *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
@@ -266,10 +267,10 @@
 [Style(name="textAlign", type="String", enumeration="start,end,left,right,center,justify", inherit="yes")]

 /**
+ *  TLF styles are not supported in the mobile theme.
+ *
  *  @copy flashx.textLayout.formats.ITextLayoutFormat#textAlignLast
  *
- *
TLF styles are not supported in the mobile theme.

- *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
@@ -278,10 +279,10 @@
 [Style(name="textAlignLast", type="String", enumeration="start,end,left,right,center,justify", inherit="yes")]

 /**
+ *  TLF styles are not supported in the mobile theme.
+ *
  *  @copy flashx.textLayout.formats.ITextLayoutFormat#textAlpha
  *
- *
TLF styles are not supported in the mobile theme.

- *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
@@ -300,10 +301,10 @@
 [Style(name="textDecoration", type="String", enumeration="none,underline", inherit="yes")]

 /**
+ *  TLF styles are not supported in the mobile theme.
+ *
  *  @copy flashx.textLayout.formats.ITextLayoutFormat#textJustify
  *
- *
TLF styles are not supported in the mobile theme.

- *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
@@ -312,10 +313,10 @@
 [Style(name="textJustify", type="String", enumeration="interWord,distribute", inherit="yes")]

 /**
+ *  TLF styles are not supported in the mobile theme.
+ *
  *  @copy flashx.textLayout.formats.ITextLayoutFormat#trackingLeft
  *
- *
TLF styles are not supported in the mobile theme.

- *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
@@ -324,10 +325,10 @@
 [Style(name="trackingLeft", type="Object", inherit="yes")]

 /**
+ *  TLF styles are not supported in the mobile theme.
+ *
  *  @copy flashx.textLayout.formats.ITextLayoutFormat#trackingRight
  *
- *
TLF styles are not supported in the mobile theme.

- *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
@@ -336,9 +337,9 @@
 [Style(name="trackingRight", type="Object", inherit="yes")]

 /**
+ *  TLF styles are not supported in the mobile theme.
+ *
  *  @copy flashx.textLayout.formats.ITextLayoutFormat#typographicCase
- *
- *
TLF styles are not supported in the mobile theme.

  *
  *  @langversion 3.0
  *  @playerversion Flash 10


New RTMFP research directory holding testing code and packet captures

--- com/rtmfpcat/rtmfpcat.as
+++ com/rtmfpcat/rtmfpcat.as
@@ -65,7 +65,7 @@
         this.loaderInfo.addEventListener(Event.COMPLETE, onLoaderInfoComplete);
       }

-      protected function puts(s:String):void
+      private function puts(s:String):void
       {
           output_text.appendText(s + "\n");
           output_text.scrollV = output_text.maxScrollV;


Fixed keyboard shortcuts of debug interface

--- src/reprise/debug/DebugInterface.as
+++ src/reprise/debug/DebugInterface.as
@@ -252,24 +252,34 @@
 		{
 			if (event.shiftKey && event.ctrlKey)
 			{
-				if (event.keyCode == 4) //'d'
+				var key : String = String.fromCharCode(event.keyCode).toLowerCase();
+				if (key == 'd')
 				{
 					toggleDebuggingMode();
 					return;
 				}
-				if (event.keyCode == 19 && m_currentDebugElement) //'s'
+				if (key == 's' && m_currentDebugElement)
 				{
 					log('Complex styles:\n' + m_currentDebugElement.valueForKey('m_complexStyles'));
 					return;
 				}
-				if (event.keyCode == 18) //'r'
+				if (key == 'r')
 				{
 					reloadStyles();
 					return;
 				}
-				if (event.keyCode == 23) //'w'
+				if (key == 'w')
 				{
 					startWatchingStylesheets();
+					return;
+				}
+				if (key == 'h')
+				{
+					log('debug keys:\n' +
+						'd - toggle debug mode\n' +
+							's - log currently debugged element\'s complex styles\n' +
+							'r - reload stylesheets\n' +
+							'w - start watching stylesheets');
 					return;
 				}
 			}


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/framework/src/mx/events/ValidationResultEvent.as
+++ frameworks/projects/framework/src/mx/events/ValidationResultEvent.as
@@ -22,6 +22,11 @@
  *  @see mx.validators.Validator
  *  @see mx.validators.ValidationResult
  *  @see mx.validators.RegExpValidationResult
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class ValidationResultEvent extends Event
 {
@@ -59,6 +64,11 @@
 	 *  </table>
 	 *
      *  @eventType invalid
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public static const INVALID:String = "invalid";

@@ -86,6 +96,11 @@
 	 *  </table>
 	 *
      *  @eventType valid
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public static const VALID:String = "valid";

@@ -108,6 +123,11 @@
 	 *  @param field The name of the field that failed validation and triggered the event.
 	 *
 	 *  @param results An array of ValidationResult objects, one per validated field.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
     public function ValidationResultEvent(type:String, bubbles:Boolean = false,
 										  cancelable:Boolean = false,
@@ -132,6 +152,11 @@

 	/**
 	 *  The name of the field that failed validation and triggered the event.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
     public var field:String;

@@ -142,6 +167,11 @@
 	/**
 	 *  A single string that contains every error message from all
 	 *  of the ValidationResult objects in the results Array.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
     public function get message():String
     {
@@ -168,6 +198,11 @@
 	 *  An array of ValidationResult objects, one per validated field.
 	 *
 	 *  @see mx.validators.ValidationResult
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
     public var results:Array;


Transferred from the Adobe Open Source Subversion Repository

Revision: 10032
Author:   gruehle@adobe.com
Date:     2009-09-04T21:49:35.649623Z

Log Message:
-----------
Set redrawRequested in BorderSkin.updateDisplayList. This clears out any lingering drop shadows and forces a redraw of the border/background.

QE notes: -
Doc notes: -
Bugs: SDK-23029, SDK-23032
Reviewer: Jason
Tests run: checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/BorderSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/BorderStyles.as</path>

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

--- frameworks/projects/framework/src/mx/styles/metadata/BorderStyles.as
+++ frameworks/projects/framework/src/mx/styles/metadata/BorderStyles.as
@@ -240,6 +240,23 @@
 [Style(name="dropShadowEnabled", type="Boolean", inherit="no", theme="halo")]

 /**
+ *  Boolean property that specifies whether the component has a visible
+ *  drop shadow.
+ *  The default value is false.
+ *
+ *
Note: For drop shadows to appear on containers, set
+ *  contentBackgroundColor property.
+ *  Otherwise, the shadow appears behind the container because
+ *  the default background of a container is transparent.

+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+[Style(name="dropShadowVisible", type="Boolean", inherit="no", theme="spark")]
+
+/**
  *  Color of the drop shadow.
  *
  *  @default 0x000000


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

--- frameworks/projects/rpc/src/mx/messaging/events/MessageFaultEvent.as
+++ frameworks/projects/rpc/src/mx/messaging/events/MessageFaultEvent.as
@@ -17,6 +17,12 @@

 /**
  * The MessageFaultEvent class is used to propagate fault messages within the messaging system.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion BlazeDS 4
+ *  @productversion LCDS 3
  */
 public class MessageFaultEvent extends Event
 {
@@ -54,6 +60,12 @@
      *       Object listening for the event.

      *

      *  @eventType fault
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion BlazeDS 4
+     *  @productversion LCDS 3
      */
     public static const FAULT:String = "fault";

@@ -70,6 +82,12 @@
      *  @param message The ErrorMessage associated with the fault.
      *
      *  @return New MessageFaultEvent.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion BlazeDS 4
+     *  @productversion LCDS 3
      */
     public static function createEvent(msg:ErrorMessage):MessageFaultEvent
     {
@@ -95,6 +113,12 @@
      *  event can be prevented.
      *
      *  @param message The ErrorMessage associated with the fault.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion BlazeDS 4
+     *  @productversion LCDS 3
      */
     public function MessageFaultEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false,
             message:ErrorMessage = null)
@@ -112,6 +136,12 @@

     /**
      *  The ErrorMessage for this event.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion BlazeDS 4
+     *  @productversion LCDS 3
      */
     public var message:ErrorMessage;

@@ -136,6 +166,12 @@
      *
      *  @see #faultString
      *  @see #faultDetail
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion BlazeDS 4
+     *  @productversion LCDS 3
      */
     public function get faultCode():String
     {
@@ -154,6 +190,12 @@
      *
      *  @see #faultString
      *  @see #faultCode
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion BlazeDS 4
+     *  @productversion LCDS 3
      */
     public function get faultDetail():String
     {
@@ -169,6 +211,12 @@
      *
      *  @see #faultCode
      *  @see #faultDetail
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion BlazeDS 4
+     *  @productversion LCDS 3
      */
     public function get faultString():String
     {
@@ -187,6 +235,12 @@
      *  ErrorMessage.
      *
      *  @see MessageFaultEvent#rootCause
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion BlazeDS 4
+     *  @productversion LCDS 3
      */
     public function get rootCause():Object
     {
@@ -203,6 +257,12 @@
      *  Clones the MessageFaultEvent.
      *
      *  @return Copy of this MessageFaultEvent.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion BlazeDS 4
+     *  @productversion LCDS 3
      */
     override public function clone():Event
     {
@@ -213,6 +273,12 @@
      *  Returns a string representation of the MessageFaultEvent.
      *
      *  @return String representation of the MessageFaultEvent.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion BlazeDS 4
+     *  @productversion LCDS 3
      */
     override public function toString():String
     {


Transferred from the Adobe Open Source Subversion Repository

Revision: 13013
Author:   gosmith@adobe.com
Date:     2009-12-16T23:05:06.067124Z

Log Message:
-----------
Added ASDoc for the Spark ListBaseAccImpl, ListAccImpl, DropDownListAccImpl, ComboBoxAccImpl, ButtonBarBaseAccImpl, and TabBarAccImpl, based on the opensource specs.

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/DropDownListBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ListBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ComboBoxAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ButtonBarBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ListAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/TabBarAccImpl.as</path>

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

--- frameworks/projects/spark/src/spark/accessibility/ComboBoxAccImpl.as
+++ frameworks/projects/spark/src/spark/accessibility/ComboBoxAccImpl.as
@@ -28,8 +28,130 @@
 use namespace mx_internal;

 /**
- *  ComboBoxAccImpl is a subclass of AccessibilityImplementation
- *  which implements accessibility for the ComboBox class.
+ *  ComboBoxAccImpl is the accessibility implementation class
+ *  for spark.components.ComboBox.
+ *
+ *
When a Spark ComboBox is created,
+ *  its accessibilityImplementation property
+ *  is set to an instance of this class.
+ *  The Flash Player then uses this class to allow MSAA clients
+ *  such as screen readers to see and manipulate the ComboBox.
+ *  See the mx.accessibility.AccImpl and
+ *  flash.accessibility.AccessibilityImplementation classes
+ *  for background information about accessibility implementation
+ *  classes and MSAA.

+ *
+ *
Children

+ *
+ *
The MSAA children of a ComboBox are its editable TextInput
+ *  (with childID 1) and its list items (with childIDs 2, 3, ... n).
+ *  The number of children is one plus the number of items
+ *  in the dataProvider
+ *  (not one plus the the number of visible renderers).

+ *
+ *
As described below, the accessibility of the TextInput
+ *  and the list items is managed by the ComboBox;
+ *  their accessibilityImplementation
+ *  and accessibilityProperties
+ *  are ignored by the Flash Player.

+ *
+ *
Role

+ *
+ *
The MSAA Role of a ComboBox is ROLE_SYSTEM_COMBOBOX.

+ *
+ *
The MSAA Role of the editable TextInput is ROLE_SYSTEM_TEXT.

+ *
+ *
The Role of each list item is ROLE_SYSTEM_LISTITEM.

+ *
+ *
Name

+ *
+ *
The MSAA Name of a ComboBox (as well as its editable TextInput)
+ *  is, by default, an empty string.
+ *  When wrapped in a FormItem element, the Name is the FormItem's label.
+ *  To override this behavior, set the ComboBox's
+ *  accessibilityName property.

+ *
+ *
The Name of each list item is determined by the ComboBox's
+ *  itemToLabel() method

+ *
+ *
When the Name of the ComboBox or one of its items changes,
+ *  a ComboBox dispatches the MSAA event EVENT_OBJECT_NAMECHANGE
+ *  with the proper childID for a list item or 0 for itself.

+ *
+ *
Description

+ *
+ *
The MSAA Description of a ComboBox, by default, an empty string,
+ *  but you can set the ComboBox's accessibilityDescription
+ *  property.

+ *
+ *
The Description of each list item is the empty string.

+ *
+ *
State

+ *
+ *
The MSAA State of a ComboBox is a combination of:
+ *

+ *
STATE_SYSTEM_UNAVAILABLE (when enabled is false)

+ *
STATE_SYSTEM_FOCUSABLE (when enabled is true)

+ *
STATE_SYSTEM_FOCUSED
+ *    (when enabled is true and the ComboBox has focus)

+ *
STATE_SYSTEM_EXPANDED (when it is open)

+ *
STATE_SYSTEM_COLLAPSED (when it is closed)

+ *

+ *
+ *
The State of the editable TextInput is a combination of:
+ *

+ *
STATE_SYSTEM_UNAVAILABLE (when enabled is false)

+ *
STATE_SYSTEM_FOCUSABLE (when enabled is true)

+ *
STATE_SYSTEM_FOCUSED
+ *    (when enabled is true and the ComboBox has focus)

+ *

+ *
+ *
The State of a list item is a combination of:
+ *

+ *
STATE_SYSTEM_FOCUSABLE

+ *
STATE_SYSTEM_FOCUSED (when it has focus)

+ *
STATE_SYSTEM_SELECTABLE

+ *
STATE_SYSTEM_SELECTED (when it is selected)

+ *

+ *
+ *
When the State of the ComboBox, its TextInput,
+ *  or one of its list items changes,
+ *  a ComboBox dispatches the MSAA event EVENT_OBJECT_STATECHANGE
+ *  with the proper childID for the TextInput or list item,
+ *  or 0 for itself.

+ *
+ *
Value

+ *
+ *
The MSAA Value of a ComboBox is the MSAA Name
+ *  of the currently selected list item
+ *  or the text entered into the TextInput.

+ *
+ *
The Value of a list item is always the empty string.

+ *
+ *
When the Value of the ComboBox changes,
+ *  a ComboBox dispatches the MSAA event EVENT_OBJECT_VALUECHANGE.

+ *
+ *
Location

+ *
+ *
The MSAA Location of a ComboBox, its TextInput, or one of its
+ *  list items is its bounding rectangle.

+ *
+ *
Default Action

+ *
+ *
Neither the ComboBox or it's TextInput have an MSAA DefaultAction.

+ *
+ *
The DefaultAction of a list item is "Double Click".
+ *  Performing this action will select the item.

+ *
+ *
Focus

+ *
+ *
The ComboBox itself can receive focus, as well as its list items
+ *  (either while the ComboBox is collapsed or expanded).

+ *
+ *
Selection

+ *
+ *
The ComboBox allows a single item to be selected,
+ *  in which case an EVENT_OBJECT_SELECTION event is fired.

  *
  *  @langversion 3.0
  *  @playerversion Flash 10


Transferred from the Adobe Open Source Subversion Repository

Revision: 12401
Author:   gruehle@adobe.com
Date:     2009-12-03T00:55:48.080560Z

Log Message:
-----------
Spark (SkinnableContainer) creationPolicy was a simple property. The mx (Container) creationPolicy property had logic to inherit the parent's creation policy if not explicitly specified, but this only worked if the parent was also a Container.

This change makes SkinnableContainer.creationPolicy an inheriting property, and fixes mx Containers so they can inherit creationPolicy from SkinnableContainer parents. This is all done behind the scenes by using a private inheriting style for backing storage.

QE notes: Yes, tests need updating for new behavior
Doc notes: No
Bugs: SDK-23955
Reviewer: Ryan
Tests run: checkintests, extensive cyclone testing
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NavigatorContent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>

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

--- frameworks/projects/spark/src/spark/components/SkinnableContainer.as
+++ frameworks/projects/spark/src/spark/components/SkinnableContainer.as
@@ -11,27 +11,19 @@

 package spark.components
 {
-import mx.collections.IList;
-import spark.components.Group;
-import mx.core.mx_internal;
-import spark.components.supportClasses.SkinnableComponent;
-import spark.components.supportClasses.SkinnableContainerBase;
 import mx.core.ContainerCreationPolicy;
 import mx.core.IDeferredContentOwner;
 import mx.core.IDeferredInstance;
-import mx.core.IFactory;
-import mx.core.INavigatorContent;
+import mx.core.IFlexModuleFactory;
 import mx.core.IVisualElement;
 import mx.core.IVisualElementContainer;
-import mx.core.IUIComponent;
-import spark.core.IViewport;
+import mx.core.mx_internal;
 import mx.events.FlexEvent;
+import mx.utils.BitFlagUtil;
+
+import spark.components.supportClasses.SkinnableContainerBase;
 import spark.events.ElementExistenceEvent;
-import mx.events.PropertyChangeEvent;
-import spark.layouts.BasicLayout;
 import spark.layouts.supportClasses.LayoutBase;
-import mx.managers.IFocusManagerContainer;
-import mx.utils.BitFlagUtil;

 use namespace mx_internal;

@@ -372,6 +364,27 @@

     //--------------------------------------------------------------------------
     //
+    //  Overridden Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  moduleFactory
+    //----------------------------------
+    /**
+     *  @private
+     */
+    override public function set moduleFactory(moduleFactory:IFlexModuleFactory):void
+    {
+        super.moduleFactory = moduleFactory;
+
+        // Register the _creationPolicy style as inheriting. See the creationPolicy
+        // getter for details on usage of this style.
+        styleManager.registerInheritingStyle("_creationPolicy");
+    }
+
+    //--------------------------------------------------------------------------
+    //
     //  Properties
     //
     //--------------------------------------------------------------------------
@@ -412,9 +425,12 @@
     //  creationPolicy
     //----------------------------------

-    private var _creationPolicy:String = "auto";
-
     [Inspectable(enumeration="auto,all,none", defaultValue="auto")]
+
+    // Internal flag used when creationPolicy="none".
+    // When set, the value of the backing store _creationPolicy
+    // style is "auto" so descendants inherit the correct value.
+    private var creationPolicyNone:Boolean = false;

     /**
      *  @inheritDoc
@@ -428,7 +444,21 @@
      */
     public function get creationPolicy():String
     {
-        return _creationPolicy;
+        // Use an inheriting style as the backing storage for this property.
+        // This allows the property to be inherited by either mx or spark
+        // containers, and also to correctly cascade through containers that
+        // don't have this property (ie Group).
+        // This style is an implementation detail and should be considered
+        // private. Do not set it from CSS.
+        var result:String = getStyle("_creationPolicy");
+
+        if (result == null)
+            result = ContainerCreationPolicy.AUTO;
+
+        if (creationPolicyNone)
+            result = ContainerCreationPolicy.NONE;
+
+        return result;
     }

     /**
@@ -436,10 +466,20 @@
      */
     public function set creationPolicy(value:String):void
     {
-        if (value == _creationPolicy)
-            return;
-
-        _creationPolicy = value;
+        if (value == ContainerCreationPolicy.NONE)
+        {
+            // creationPolicy of none is not inherited by descendants.
+            // In this case, set the style to "auto" and set a local
+            // flag for subsequent access to the creationPolicy property.
+            creationPolicyNone = true;
+            value = ContainerCreationPolicy.AUTO;
+        }
+        else
+        {
+            creationPolicyNone = false;
+        }
+
+        setStyle("_creationPolicy", value);
     }

     //--------------------------------------------------------------------------


Minor comment changes

Minor comment changes

--- com/zehfernando/input/binding/KeyActionBinder.as
+++ com/zehfernando/input/binding/KeyActionBinder.as
@@ -16,9 +16,9 @@

 		// Provides universal input control for game controllers and keyboard
 		// http://zehfernando.com/2013/abstracting-key-and-game-controller-inputs-in-adobe-air/
+		// http://zehfernando.com/2013/keyactionbinder-updates-time-sensitive-activations-new-constants/

 		// TODO:
-		// * isActionActivated() must properly support time tolerance
 		// * Allow sensitive controls to be treated as normal controls
 		// * think of a way to avoid axis injecting button pressed
 		// * Add gamepad index to return signals
@@ -443,6 +443,8 @@
 		 *     player.moveRight();
 		 * }
 		 * </pre>
+		 *
+		 * @see http://zehfernando.com/2013/keyactionbinder-updates-time-sensitive-activations-new-constants/
 		 */
 		public function isActionActivated(__action:String, __timeToleranceSeconds:Number = 0):Boolean {
 			if (actionsActivations.hasOwnProperty(__action) && (actionsActivations[__action] as ActivationInfo).activations.length > 0) {


Transferred from the Adobe Open Source Subversion Repository

Revision: 13965
Author:   build@adobe.com
Date:     2010-02-03T20:37:12.428300Z

Log Message:
-----------
Version update to 4.5.0

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

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

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


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/mx/src/mx/containers/ViewStack.as
+++ frameworks/projects/mx/src/mx/containers/ViewStack.as
@@ -117,6 +117,8 @@
 //--------------------------------------

 [IconFile("ViewStack.png")]
+
+[Alternative(replacement="spark.components.Group", since="4.0")]

 /**
  *  A ViewStack navigator container consists of a collection of child


Transferred from the Adobe Open Source Subversion Repository

Revision: 5797
Author:   jimurphy@adobe.com
Date:     2009-03-31T15:35:34.544076Z

Log Message:
-----------
Merged revisions 3.x 5505,5526-5527,5535,5540,5542,5572,5616-5617,5656-5657,5671,5674,5683,5687-5688,5690,5698,5708-5709,5713-5716,5719-5723,5726,5728-5729,5736,5752,5754,5761,5774,5780,5784 -> trunk

most of these are user submitted patches! very cool.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/VideoDisplay.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/resources/IResourceManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ToggleButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Menu.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/controls/CalendarLayout.as</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/airframework/src/mx/controls/FileSystemComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/NavBar.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="D">/flex/sdk/trunk/modules/compiler/FlexCompilerShell-license.txt</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/formatters/DateFormatter.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/controls/SWFLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.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/validators/PhoneNumberValidator.as</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/3.x/frameworks/projects/framework/src/mx/validators/NumberValidatorDomainType.as" copyfrom-rev="5784" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/validators/NumberValidatorDomainType.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/PopUpButton.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/managers/ToolTipManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/ObjectUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/validators/NumberValidator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/validators/CurrencyValidator.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/controls/dataGridClasses/DataGridBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/resources/ResourceManagerImpl.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/frameworks/projects/framework/src/mx/events/CalendarLayoutChangeEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/DataGridEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/sliderClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/PopUpMenuButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Text.as</path>

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

--- frameworks/projects/framework/src/mx/validators/CurrencyValidator.as
+++ frameworks/projects/framework/src/mx/validators/CurrencyValidator.as
@@ -347,6 +347,20 @@
                     input = left + right;
                 }
             }
+
+            // Translate the value back into standard english
+            // If the decimalSeperator is not '.' we need to change it to '.'
+            // so that the number casting will work properly
+            if (validator.decimalSeparator != '.')
+            {
+                var dIndex:int = input.indexOf( validator.decimalSeparator );
+                if (dIndex != -1)
+                {
+                    var dLeft:String = input.substring(0, dIndex);
+                    var dRight:String = input.substring(dIndex + 1);
+                    input = dLeft + '.' + dRight;
+                }
+            }

             // Check bounds


More logging around Connection errors for sanity's sake

--- driver/src/main/flex/org/postgresql/db/Connection.as
+++ driver/src/main/flex/org/postgresql/db/Connection.as
@@ -47,10 +47,12 @@
         }

         public function handleProtocolError(error:ProtocolError):void {
+            LOGGER.error("Protocol error: " + error.message);
             dispatchEvent(new ProtocolErrorEvent(ProtocolErrorEvent.PROTOCOL_ERROR, error));
         }

         public function handleCodecError(error:CodecError):void {
+            LOGGER.warn("Codec error: " + error.message);
             dispatchEvent(new CodecErrorEvent(CodecErrorEvent.CODEC_ERROR, error));
         }


Changed Storage package LocalStorage class to use same function names as web storage API for better cross-compatibility. Also changed storage data type to String from Object to maintain that compatibility and provide a concrete data type.

--- frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/LocalStorage.as
+++ frameworks/projects/Storage/src/main/flex/org/apache/flex/storage/LocalStorage.as
@@ -26,7 +26,7 @@
  *  The LocalStorage class allows apps to store small amounts of data
  *  locally, in the browser's permitted storage area. This data will persist
  *  between browser invocations. The data is stored in key=value pairs.
- *
+ *
  *  @langversion 3.0
  *  @playerversion Flash 10.2
  *  @playerversion AIR 2.6
@@ -35,17 +35,17 @@
  */
 public class LocalStorage
 {
-
+
 	/**
 	 * Constructor.
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 10.2
-	 *  @playerversion AIR 2.6
-	 *  @productversion FlexJS 0.0
-	 *  @flexjsignoreimport window
-	 */
-	public function LocalStorage()
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion FlexJS 0.0
+	 *  @flexjsignoreimport window
+	 */
+	public function LocalStorage()
 	{
 		COMPILE::AS3 {
 			try {
@@ -55,13 +55,13 @@
 			}
 		}
 	}
-
+
 	COMPILE::AS3
 	private var sharedObject:SharedObject;
-
+
 	/**
 	 * Returns true if the platform provides local storage.
-	 *
+	 *
 	 *  @langversion 3.0
 	 *  @playerversion Flash 10.2
 	 *  @playerversion AIR 2.6
@@ -71,11 +71,11 @@
 	public function storageAvailable():Boolean
 	{
 		var result:Boolean = false;
-
+
 		COMPILE::AS3 {
 			result = (sharedObject != null);
 		}
-
+
 		COMPILE::JS {
 			try {
 				result = 'localStorage' in window && window['localStorage'] !== null;
@@ -83,115 +83,137 @@
 				result = false;
 			}
 		}
-
+
 		return result;
 	}
-
+
 	/**
 	 * Stores a value with a key. The value may be converted to a String, depending
 	 * on the platform.
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 10.2
-	 *  @playerversion AIR 2.6
-	 *  @productversion FlexJS 0.0
-	 *  @flexjsignoreimport window
-	 */
-	public function setValue(key:String, value:Object) : Boolean
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion FlexJS 0.0
+	 *  @flexjsignoreimport window
+	 */
+	public function setItem(key:String, value:String) : Boolean
 	{
 		if (!storageAvailable()) return false;
-
+
 		COMPILE::AS3 {
 			sharedObject.data[key] = value;
 			sharedObject.flush();
 		}
-
-		COMPILE::JS {
-			window.localStorage[key] = value;
-		}
-
+
+		COMPILE::JS {
+			window.localStorage.setItem(key, value);
+		}
+
 		return true;
 	}
-
+
 	/**
 	 * Returns the value associated with the key, or undefined if there is
 	 * no value stored. Note that a String version of the value may have been
 	 * stored, depending on the platform.
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 10.2
-	 *  @playerversion AIR 2.6
-	 *  @productversion FlexJS 0.0
-	 *  @flexjsignoreimport window
-	 */
-	public function getValue(key:String) : Object
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion FlexJS 0.0
+	 *  @flexjsignoreimport window
+	 */
+	public function getItem(key:String) : String
 	{
 		if (!storageAvailable()) return null;
-
-		var result:Object = null;
-
-		COMPILE::AS3 {
-			result = sharedObject.data[key];
-		}
-
-		COMPILE::JS {
-			result = window.localStorage[key];
-		}
-
+
+		var result:String = null;
+
+		COMPILE::AS3 {
+			result = sharedObject.data[key] as String;
+		}
+
+		COMPILE::JS {
+			result = window.localStorage.getItem(key);
+		}
+
 		return result;
 	}
-
+
 	/**
 	 * Removed the value and, possibly, the key from local storage. On some
 	 * platforms, retriving the value after removing it will be an error, on
 	 * others it may return undefined or null.
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 10.2
-	 *  @playerversion AIR 2.6
-	 *  @productversion FlexJS 0.0
-	 *  @flexjsignoreimport window
-	 */
-	public function removeValue(key:String) : Boolean
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion FlexJS 0.0
+	 *  @flexjsignoreimport window
+	 */
+	public function removeItem(key:String) : Boolean
 	{
 		if (!storageAvailable()) return null;
-
+
 		COMPILE::AS3 {
 			delete sharedObject.data[key];
 			sharedObject.flush();
 		}
-
-		COMPILE::JS {
-			window.localStorage[key] = null;
-		}
-
+
+		COMPILE::JS {
+			window.localStorage.removeItem(key);
+		}
+
 		return true;
 	}
-
+
 	/**
 	 * Returns true if there is a value stored for the key.
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 10.2
-	 *  @playerversion AIR 2.6
-	 *  @productversion FlexJS 0.0
-	 *  @flexjsignoreimport window
-	 */
-	public function hasValue(key:String) : Boolean
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion FlexJS 0.0
+	 *  @flexjsignoreimport window
+	 */
+	public function hasItem(key:String) : Boolean
 	{
 		if (!storageAvailable()) return false;
-
+
 		var result:Boolean = false;
-
+
 		COMPILE::AS3 {
 			result = sharedObject.data.hasOwnProperty(key);
 		}
-
+
 		COMPILE::JS {
 			result = (window.localStorage[key] !== null);
 		}
-
+
 		return result;
 	}
+
+	/**
+	 * Clears all values from local storage.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion FlexJS 0.0
+	 *  @flexjsignoreimport window
+	 */
+	public function clear() : void
+	{
+		if (!storageAvailable()) return;
+
+		COMPILE::AS3 {
+			sharedObject.clear();
+		}
+
+		COMPILE::JS {
+			window.localStorage.clear();
+		}
+	}
 }
-}+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 4795
Author:   preilly@adobe.com
Date:     2009-02-02T20:00:32.064859Z

Log Message:
-----------
* Fixed data binding bug caused by ASC issue.

  Note: Be on the lookout for new compile errors.  Most likely they
  are valid, but were unreported in the past, due to this bug.

tests Passed: checkintests

Needs QA: YES

Needs DOC: NO

Bug fixes: SDK-17798

API Change: NO

Reviewer: Erik, Ryan

Code-level description of changes:

  frameworks/projects/flash-integration/src/mx/flash/FlexContentHolder.as

    Removed unnecessary line with previously unreported error.

  modules/asc/src/java/macromedia/asc/semantics/FlowAnalyzer.java

    Modified evaluate(Context, QualifiedIdentifierNode) to use a
    unresolved namespace for the node's ReferenceValue instead of
    leaving it null, when the qualifier is unresolved.  This allows it
    to be resolved later after the namespace is resolved.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/modules/asc/src/java/macromedia/asc/semantics/FlowAnalyzer.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/FlexContentHolder.as</path>

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

--- frameworks/projects/flash-integration/src/mx/flash/FlexContentHolder.as
+++ frameworks/projects/flash-integration/src/mx/flash/FlexContentHolder.as
@@ -269,8 +269,6 @@
                 // then reinitialize the children's proto chains.
                 if (flexContent is uiComponentClass)
                 {
-                    flexContent.mx_internal::_parent = this;
-
                     var child:Object = flexContent;

                     // Set the nestLevel of the child to be one greater


Transferred from the Adobe Open Source Subversion Repository

Revision: 5797
Author:   jimurphy@adobe.com
Date:     2009-03-31T15:35:34.544076Z

Log Message:
-----------
Merged revisions 3.x 5505,5526-5527,5535,5540,5542,5572,5616-5617,5656-5657,5671,5674,5683,5687-5688,5690,5698,5708-5709,5713-5716,5719-5723,5726,5728-5729,5736,5752,5754,5761,5774,5780,5784 -> trunk

most of these are user submitted patches! very cool.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/VideoDisplay.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/resources/IResourceManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ToggleButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Menu.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/controls/CalendarLayout.as</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/airframework/src/mx/controls/FileSystemComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/NavBar.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="D">/flex/sdk/trunk/modules/compiler/FlexCompilerShell-license.txt</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/formatters/DateFormatter.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/controls/SWFLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.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/validators/PhoneNumberValidator.as</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/3.x/frameworks/projects/framework/src/mx/validators/NumberValidatorDomainType.as" copyfrom-rev="5784" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/validators/NumberValidatorDomainType.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/PopUpButton.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/managers/ToolTipManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/ObjectUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/validators/NumberValidator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/validators/CurrencyValidator.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/controls/dataGridClasses/DataGridBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/resources/ResourceManagerImpl.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/frameworks/projects/framework/src/mx/events/CalendarLayoutChangeEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/DataGridEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/sliderClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/PopUpMenuButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Text.as</path>

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

--- frameworks/projects/mx/src/mx/containers/FormItem.as
+++ frameworks/projects/mx/src/mx/containers/FormItem.as
@@ -1088,7 +1088,7 @@
         var numColumns:int = calcNumColumns(controlWidth);
         var col:int = 0;

-        if (numColumns != guessedNumColumns)
+        if (numColumns != guessedNumColumns && isNaN(explicitWidth))
         {
             if (numberOfGuesses < 2)
             {


Only do cycle checking for actual pointers -- otherwise two of the same integers or strings in sequence trigger it, which is briefly amusing but ultimately quite undesirable.

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

--- src/as/com/threerings/util/StringUtil.as
+++ src/as/com/threerings/util/StringUtil.as
@@ -283,36 +283,38 @@
             return String(obj);
         }

-        if (refs == null) {
-            refs = new Dictionary();
-
-        } else if (refs[obj] !== undefined) {
-            return "[cyclic reference]";
-        }
-        refs[obj] = true;
-
-        var s :String;
-        if (obj is Array) {
-            var arr :Array = (obj as Array);
-            s = "";
-            for (var ii :int = 0; ii < arr.length; ii++) {
-                if (ii > 0) {
-                    s += ", ";
+        if (obj is Array || Util.isPlainObject(obj)) {
+            if (refs == null) {
+                refs = new Dictionary();
+
+            } else if (refs[obj] !== undefined) {
+                return "[cyclic reference]";
+            }
+            refs[obj] = true;
+
+            var s :String;
+            if (obj is Array) {
+                var arr :Array = (obj as Array);
+                s = "";
+                for (var ii :int = 0; ii < arr.length; ii++) {
+                    if (ii > 0) {
+                        s += ", ";
+                    }
+                    s += (ii + ": " + toString(arr[ii], refs));
                 }
-                s += (ii + ": " + toString(arr[ii], refs));
-            }
-            return "Array(" + s + ")";
-
-        } else if (Util.isPlainObject(obj)) {
-            // TODO: maybe do this for any dynamic object? (would have to use describeType)
-            s = "";
-            for (var prop :String in obj) {
-                if (s.length > 0) {
-                    s += ", ";
+                return "Array(" + s + ")";
+
+            } else {
+                // TODO: maybe do this for any dynamic object? (would have to use describeType)
+                s = "";
+                for (var prop :String in obj) {
+                    if (s.length > 0) {
+                        s += ", ";
+                    }
+                    s += prop + "=>" + toString(obj[prop], refs);
                 }
-                s += prop + "=>" + toString(obj[prop], refs);
-            }
-            return "Object(" + s + ")";
+                return "Object(" + s + ")";
+            }

         } else if (obj is XML) {
             return Util.XMLtoXMLString(obj as XML);


Fixed bloc move undo

Fixed bloc move undo

--- src/Actions/MoveBlocAction.as
+++ src/Actions/MoveBlocAction.as
@@ -39,7 +39,7 @@
 			var oldLoc:Point = cLastAction.oldLoc;

 			if (newLoc.equals(oldLoc)) {
-				execute();
+				bloc.place(newLoc);
 				return;
 			}


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

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

 package mx.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@1278776 13f79535-47bb-0310-9956-ffa450edef68

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

 package spark.components
 {


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

--- frameworks/projects/spark/src/spark/effects/RemoveAction.as
+++ frameworks/projects/spark/src/spark/effects/RemoveAction.as
@@ -9,13 +9,14 @@
 //
 ////////////////////////////////////////////////////////////////////////////////

-package mx.effects
+package spark.effects
 {
 import mx.core.IVisualElement;
 import mx.core.IVisualElementContainer;
 import mx.core.mx_internal;
+import mx.effects.Effect;
 import mx.effects.effectClasses.PropertyChanges;
-import mx.effects.effectClasses.RemoveActionInstance;
+import spark.effects.supportClasses.RemoveActionInstance;

 use namespace mx_internal;


Fixed deleteHint bug

Fixed deleteHint bug

--- src/LevelStates/LevelState.as
+++ src/LevelStates/LevelState.as
@@ -730,7 +730,7 @@
 			undoButton.setAlpha(undoAlpha);
 			redoButton.setAlpha(undoAlpha);

-			deleteHint.exists = !currentWire && !currentBloc && !currentModule && !selectionArea && !runningDisplayTest && (findMousedModule() || findMousedWire());
+			deleteHint.exists = canDelete();

 			if (loadButton) {
 				var successSave:String = findSuccessSave();
@@ -741,6 +741,15 @@
 			checkCursorState();

 			checkModuleListState();
+		}
+
+		private function canDelete():Boolean {
+			if (currentWire || currentBloc || currentModule || selectionArea || runningDisplayTest)
+				return false;
+			if (findMousedWire())
+				return true;
+			var module:Module = findMousedModule();
+			return module && !module.FIXED;
 		}

 		private var cursor:Cursor;


renamed ShaderSettings.enableDepthWrite to ShaderSettings.depthWriteEnabled

--- src/aerys/minko/render/shader/ShaderSettings.as
+++ src/aerys/minko/render/shader/ShaderSettings.as
@@ -74,11 +74,11 @@
 			_rectangle = value;
 		}

-		public function get enableDepthWrite() : Boolean
+		public function get depthWriteEnabled() : Boolean
 		{
 			return _enableDepthWrite;
 		}
-		public function set enableDepthWrite(value : Boolean) : void
+		public function set depthWriteEnabled(value : Boolean) : void
 		{
 			_enableDepthWrite = value;
 		}
@@ -139,7 +139,7 @@
 			blending			= Blending.NORMAL;
 			triangleCulling		= TriangleCulling.BACK;
 			renderTarget		= null;
-			enableDepthWrite	= true;
+			depthWriteEnabled	= true;
 			scissorRectangle	= null;
 		}

@@ -161,7 +161,7 @@
 			clone.blending			= blending;
 			clone.triangleCulling	= triangleCulling;
 			clone.renderTarget		= renderTarget;
-			clone.enableDepthWrite	= enableDepthWrite;
+			clone.depthWriteEnabled	= depthWriteEnabled;
 			clone.scissorRectangle	= scissorRectangle;

 			return clone;
@@ -188,10 +188,10 @@
 				var color 	: uint 	= rt.backgroundColor;

 				context.clear(
+					((color >> 24) & 0xff) / 255.,
 					((color >> 16) & 0xff) / 255.,
 					((color >> 8) & 0xff) / 255.,
-					(color & 0xff) / 255.,
-					((color >> 24) & 0xff) / 255.
+					(color & 0xff) / 255.
 				);
 			}


allow the use of subdomains, if wished

allow the use of subdomains, if wished

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

--- src/as/com/threerings/util/EmbeddedSwfLoader.as
+++ src/as/com/threerings/util/EmbeddedSwfLoader.as
@@ -52,8 +52,9 @@
  */
 public class EmbeddedSwfLoader extends EventDispatcher
 {
-    public function EmbeddedSwfLoader ()
+    public function EmbeddedSwfLoader (useSubDomain :Boolean = false)
     {
+        _useSubDomain = useSubDomain;
         _loader = new Loader();
         _loader.contentLoaderInfo.addEventListener(Event.COMPLETE, dispatchEvent);
         _loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, dispatchEvent);
@@ -78,7 +79,9 @@
     public function load (byteArray :ByteArray) :void
     {
         var context :LoaderContext = new LoaderContext();
-        context.applicationDomain = ApplicationDomain.currentDomain;
+        context.applicationDomain = _useSubDomain ?
+            new ApplicationDomain(ApplicationDomain.currentDomain) :
+            ApplicationDomain.currentDomain;
         _loader.loadBytes(byteArray, context);
     }

@@ -154,5 +157,6 @@
     }

     protected var _loader :Loader;
+    protected var _useSubDomain :Boolean;
 }
 }


Fixed compiler warning.

Fixed compiler warning.

--- examples/flexjs/DesktopMap/src/models/MyModel.as
+++ examples/flexjs/DesktopMap/src/models/MyModel.as
@@ -38,6 +38,8 @@
 		}

 		private var _cities:Array = ["Sydney", "NYC", "Mexico City", "London", "Rio de Janeiro"];
+
+		[Bindable]
 		public function get cities():Array
 		{
 			return _cities;


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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


Clutch test

Clutch test

--- src/drive/Drivetrain.as
+++ src/drive/Drivetrain.as
@@ -123,9 +123,59 @@
         Connection.connect(clutchRatio.output, clutchRatioConsumer.input);

         //var time:int = getTimer();
-        const stepCount:int = 11;
-        for(var i:int = 0; i < stepCount; ++i) {
-            clutchRatio.value = Number(i) / (stepCount - 1);
+        const stepCount:int = 15;
+        for(var i:int = 0, c:Number = 0.0; i < stepCount; ++i, c = Math.abs(c - 1) > 0.1 ? c + 0.1 : 1) {
+            clutchRatio.value = c;
+
+            timeStepper.pushTimeStep(0.1);
+
+            trace("Clutch[" + i + "]:");
+            clutchRatioConsumer.pullData();
+
+            trace("Inertia[" + i + "]:");
+            engineEffectiveInertia.pullData();
+            clutchEffectiveInertia.pullData();
+            wheelEffectiveInertia.pullData();
+
+            trace("Torque[" + i + "]:");
+            engineTotalTorque.pullData();
+            clutchTotalTorque.pullData();
+            wheelTotalTorque.pullData();
+
+            trace("Velocity[" + i + "]:");
+            engineAngularVelocity.pullData();
+            clutchAngularVelocity.pullData();
+            wheelAngularVelocity.pullData();
+        }
+
+        c = 0;
+
+        for(i = 0; i < stepCount + stepCount / 2; ++i) {
+            clutchRatio.value = c;
+
+            timeStepper.pushTimeStep(0.1);
+
+            trace("Clutch[" + i + "]:");
+            clutchRatioConsumer.pullData();
+
+            trace("Inertia[" + i + "]:");
+            engineEffectiveInertia.pullData();
+            clutchEffectiveInertia.pullData();
+            wheelEffectiveInertia.pullData();
+
+            trace("Torque[" + i + "]:");
+            engineTotalTorque.pullData();
+            clutchTotalTorque.pullData();
+            wheelTotalTorque.pullData();
+
+            trace("Velocity[" + i + "]:");
+            engineAngularVelocity.pullData();
+            clutchAngularVelocity.pullData();
+            wheelAngularVelocity.pullData();
+        }
+
+        for(i = 0; i < stepCount + stepCount; ++i, c = Math.abs(c - 1) > 0.1 ? c + 0.1 : 1) {
+            clutchRatio.value = c;

             timeStepper.pushTimeStep(0.1);


Made the Comparator optional.
Match the coding style already present in file (use ii for loop counter..)

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

--- src/as/com/threerings/util/ArrayUtil.as
+++ src/as/com/threerings/util/ArrayUtil.as
@@ -53,27 +53,27 @@
      * Perform a stable sort on the specified array.
      * @param comp a function that takes two objects in the array and returns -1 if the first
      * object should appear before the second in the container, 1 if it should appear after,
-     * and 0 if the order does not matter.
-     */
-    public static function stableSort (arr :Array, comp :Function) :void
-    {
+     * and 0 if the order does not matter. If omitted, Comparators.COMPARABLE is used and
+     * the array elements should be Comparable objects.
+     */
+    public static function stableSort (arr :Array, comp :Function = null) :void
+    {
+        if (comp == null) {
+            comp = Comparators.COMPARABLE;
+        }
         // insertion sort implementation
-
-        var n :int = arr.length;
-        for (var i :int = 1; i < n; ++i) {
-            var val :* = arr[i];
-            var j :int = i - 1;
-            while (j >= 0) {
-                var compVal :* = arr[j];
+        var nn :int = arr.length;
+        for (var ii :int = 1; ii < nn; ii++) {
+            var val :* = arr[ii];
+            var jj :int = ii - 1;
+            for (; jj >= 0; jj--) {
+                var compVal :* = arr[jj];
                 if (comp(val, compVal) < 0) {
                     break;
                 }
-
-                arr[j + 1] = compVal;
-                --j;
-            }
-
-            arr[j + 1] = val;
+                arr[jj + 1] = compVal;
+            }
+            arr[jj + 1] = val;
         }
     }


ArrayUtil.create()

ArrayUtil.create()

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

--- src/as/com/threerings/util/ArrayUtil.as
+++ src/as/com/threerings/util/ArrayUtil.as
@@ -30,6 +30,21 @@
  */
 public class ArrayUtil
 {
+    /**
+     * Creates a new Array and fills it with a default value.
+     * @param size the size of the array
+     * @param val the value to store at each index of the Array
+     */
+    public static function create (size :uint, val :* = null) :Array
+    {
+        var arr :Array = new Array(size);
+        for (var ii :uint = 0; ii < size; ii++) {
+            arr[ii] = val;
+        }
+
+        return arr;
+    }
+
     /**
      * Creates a shallow copy of the array.
      *


Transferred from the Adobe Open Source Subversion Repository

Revision: 6792
Author:   jimurphy@adobe.com
Date:     2009-05-11T18:24:09.346026Z

Log Message:
-----------
Merged revisions 6729,6731,6746,6755,6757,6765,6767-6768,6770-6772,6775,6784-6786,6790 from http://p01weblab02.corp.adobe.com/svn/opensource/flex/sdk/branches/beta1

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/utilities/src/FlashContainerPlaceholder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/fxg/FlexFXG2SWFTranscoder.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/TextGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/FlexContentHolder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/ContainerMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Effect.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/WindowedApplication.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/framework/src/mx/containers/TabNavigator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/swf/TypeHelper.java</path>
<path kind="dir" copyfrom-path="/flex/sdk/branches/beta1/modules/fxgutils/src/java/com/adobe/internal/fxg/swf/types" copyfrom-rev="6790" action="A">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/swf/types</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Resize.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/ButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/fxg/swf/FXG2SWFTranscoder.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/SimpleText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/TileLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/TextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/ResizeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ScrollerLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/supportClasses/LayoutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/RadioButtonSkin.mxml</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/beta1/modules/fxgutils/src/java/com/adobe/internal/fxg/swf/types/FXGMatrix.java" copyfrom-rev="6790" action="R">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/swf/types/FXGMatrix.java</path>

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

--- frameworks/projects/authoringsupport/src/FlashContainerPlaceholder.as
+++ frameworks/projects/authoringsupport/src/FlashContainerPlaceholder.as
@@ -11,6 +11,8 @@

 package
 {
+    import flash.display.Shape;
+
     import mx.containers.Canvas;
     import mx.controls.Image;
     import mx.flash.ContainerMovieClip;
@@ -25,13 +27,13 @@
         {
             super();

-            fillContentToSize = true;
-
             // 151, 151 is the size of the flex content holder image,
             // so I'm going to make it that size by default.
-            graphics.beginFill(0, 0);
-            graphics.drawRect(0, 0, 151, 151);
-            graphics.endFill();
+            var shape:Shape = new Shape();
+            shape.graphics.beginFill(0, 0);
+            shape.graphics.drawRect(0, 0, 151, 151);
+            shape.graphics.endFill();
+            addChild(shape);

             var fch:FlexContentHolder = new MyFlexContentHolder();


Transferred from the Adobe Open Source Subversion Repository

Revision: 12208
Author:   jszeto@adobe.com
Date:     2009-11-25T20:22:04.512857Z

Log Message:
-----------
AIR DragManager enhancement

http://bugs.adobe.com/jira/browse/SDK-24302 - Allow AIR DragManager to use a different implementation class

Added switch to WindowedApplication to allow developers to use the DragManagerImpl when running on the AIR Player.

QE notes: Add tests for this flag
Doc notes: Add documentation for this flag. Include in DragManager docs
Bugs: SDK-24302
Reviewer: Glenn
Tests run: checkintests
Is noteworthy for integration: Yes

Modified Paths:
--------------
<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/airspark/src/spark/components/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as</path>

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

--- frameworks/projects/airspark/src/spark/components/WindowedApplication.as
+++ frameworks/projects/airspark/src/spark/components/WindowedApplication.as
@@ -1601,6 +1601,30 @@
         // The initial window is always of type "normal".
         return NativeWindowType.NORMAL;
     }
+
+
+    //----------------------------------
+    //  useNativeDragManager
+    //----------------------------------
+
+    [Inspectable(defaultValue="true")]
+
+    /**
+     *  Specifies if the DragManager should use the NativeDragManagerImpl implementation class.
+     *  If false, then the DragManagerImpl class will be used.
+     *
+     *
Note: This property cannot be set by ActionScript code; it must be set in MXML code.

+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+
+    /*  This property is not directly read by the systemManager. It is here so that it gets
+     *  picked up by the compiler and included in the info() structure
+     *  for the generated system manager.  */
+    public var useNativeDragManager:Boolean = true;

     //--------------------------------------------------------------------------
     //


Made showControls a true getter/setter and modified showCloseButton to affect includeInLayout as well as visibility

--- src/flexlib/mdi/containers/MDIWindow.as
+++ src/flexlib/mdi/containers/MDIWindow.as
@@ -364,6 +364,12 @@
 		private var _showCloseButton:Boolean = true;

 		/**
+		 * @private
+		 * Flag to determine whether or not window controls are visible.
+		 */
+		private var _showControls:Boolean = true;
+
+		/**
 		 * Height of window when minimized.
 		 */
 		private var _minimizeHeight:Number;
@@ -1193,7 +1199,7 @@
 			_showCloseButton = value;
 			if(closeBtn && closeBtn.visible != value)
 			{
-				closeBtn.visible = value;
+				closeBtn.visible = closeBtn.includeInLayout = value;
 				invalidateDisplayList();
 			}
 		}
@@ -1632,9 +1638,17 @@
 			}
 		}

+		public function get showControls():Boolean
+		{
+			return _showControls;
+		}
+
 		public function set showControls(value:Boolean):void
 		{
-			Container(windowControls).visible = value;
+			if(value != _showControls)
+			{
+				_showControls = Container(windowControls).visible = value;
+			}
 		}

 		private function get windowState():int


Removed circular dependency from TodoListSample.

--- examples/flexjs/TodoListSampleApp/src/sample/todo/controllers/TodoListController.as
+++ examples/flexjs/TodoListSampleApp/src/sample/todo/controllers/TodoListController.as
@@ -20,16 +20,16 @@
 	import org.apache.flex.core.Application;
 	import org.apache.flex.core.IDocument;
 	import org.apache.flex.events.Event;
-
+
 	import sample.todo.events.TodoListEvent;
 	import sample.todo.models.TodoListModel;

 	public class TodoListController implements IDocument {
-		private var app:TodoListSampleApp;
+		private var app:Application;

 		public function TodoListController(app:Application = null) {
 			if (app != null) {
-				app = app as TodoListSampleApp;
+				this.app = app;
 			}
 		}

@@ -37,7 +37,7 @@
 		 *
 		 */
 		public function setDocument(document:Object, id:String = null):void {
-			app = document as TodoListSampleApp;
+			app = document as Application;
 			app.addEventListener("viewChanged", viewChangeHandler);
 		}

@@ -61,12 +61,12 @@
 			//todoModel.todos.push({title: evt.todo, selected: false});
 			todoModel.addTodo(evt.todo);
 		}
-
+
 		public function handleItemChecked(event:TodoListEvent):void {
 			var model: TodoListModel = app.model as TodoListModel;
 			model.toggleItemCheck(event.item);
 		}
-
+
 		public function handleItemRemove(event:TodoListEvent):void {
 			var model: TodoListModel = app.model as TodoListModel;
 			model.removeItem(event.item);


添加一个getParent方法到DeepVO

添加一个getParent方法到DeepVO

--- src/net/manaca/utils/DeepVO.as
+++ src/net/manaca/utils/DeepVO.as
@@ -68,5 +68,17 @@
     {
         return params.length;
     }
+
+    /**
+     * 获得父级VO
+     * @return
+     *
+     */
+    public function getParent():DeepVO
+    {
+        var p:Array = params.concat();
+        p.pop();
+        return new DeepVO("/" + p.join("/"));
+    }
 }
 }


- changed warning trace to log

- changed warning trace to log

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

--- src/reprise/ui/UIComponent.as
+++ src/reprise/ui/UIComponent.as
@@ -2135,7 +2135,7 @@
 				}
 				else
 				{
-					trace ("f No handler found for node: " + childNode.toXMLString());
+					log("f No handler found for node: " + childNode.toXMLString());
 				}
 			}
 		}


Formatting changes.

Formatting changes.


added change event to TextInput to be dispatched when textChange fires. This need revision since is not working as expected.

--- frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/staticControls/TextInput.as
+++ frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/staticControls/TextInput.as
@@ -19,7 +19,19 @@
 {
 	import org.apache.flex.core.ITextModel;
 	import org.apache.flex.core.UIBase;
+	import org.apache.flex.core.IStrand;
+	import org.apache.flex.events.Event;

+	/**
+     *  Dispatched when the user changes the text.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.6
+     *  @productversion FlexJS 0.0
+     */
+	[Event(name="change", type="org.apache.flex.events.Event")]
+
     /**
      *  The TextInput class implements the basic control for
      *  single-line text input.
@@ -86,5 +98,37 @@
 			ITextModel(model).html = value;
 		}

+		private var _strand:IStrand;
+
+        /**
+         *  @copy org.apache.flex.core.IBead#strand
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion FlexJS 0.0
+         */
+        public function set strand(value:IStrand):void
+        {
+            _strand = value;
+
+	        // this is not working as expected
+            model = UIBase(_strand).model as ITextModel;
+            model.addEventListener("textChange", textChangeHandler);
+        }
+
+		/**
+		 * @dispatch change event in response to a textChange event
+		 *
+		 *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion FlexJS 0.0
+		 */
+		public function textChangeHandler(event:Event):void
+		{
+            // this is not working as expected
+			dispatchEvent(new Event("change"));
+		}
 	}
 }