Transferred from the Adobe Open Source Subversion Repository

Revision: 6609
Author:   gruehle@adobe.com
Date:     2009-05-04T22:47:31.285324Z

Log Message:
-----------
Add theme attribute to theme-specific style metadata.

Example of a halo-specific style:
[Style(name="cornerRadius", type="Number", format="Length", inherit="no", theme="halo")]

Example of a spark-specific style:
[Style(name="baseColor", type="uint", format="Color", inherit="yes", theme="spark")]

Style metadata without a theme attribute is theme-agnostic, and works with either spark or halo.

Bugs: SDK-20606

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ProgressBar.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/styles/metadata/FillStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateChooser.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/SkinStyles.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/controls/ColorPicker.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/BorderStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Spinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/BarColorStyle.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/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/flex4/src/spark/components/CheckBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/IconColorStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/RadioButton.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/scrollClasses/ScrollBar.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/styles/metadata/SelectedFillColorsStyle.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/colorPickerClasses/SwatchPanel.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/flex4/src/spark/components/SkinnableDataContainer.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/flex4/src/spark/components/SkinnableContainer.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/components/List.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/core/ScrollControlBase.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/flex4/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/SkinnableComponent.as</path>

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

--- frameworks/projects/mx/src/mx/styles/metadata/SkinStyles.as
+++ frameworks/projects/mx/src/mx/styles/metadata/SkinStyles.as
@@ -23,7 +23,7 @@
  *  @playerversion AIR 1.1
  *  @productversion Flex 3
  */
-[Style(name="borderColor", type="uint", format="Color", inherit="no")]
+[Style(name="borderColor", type="uint", format="Color", inherit="no", theme="halo")]

 /**
  *  Radius of component corners.
@@ -39,7 +39,7 @@
  *  @playerversion AIR 1.1
  *  @productversion Flex 3
  */
-[Style(name="cornerRadius", type="Number", format="Length", inherit="no")]
+[Style(name="cornerRadius", type="Number", format="Length", inherit="no", theme="halo")]

 /**
  *  Alphas used for the background fill of controls. Use [1, 1] to make the control background
@@ -52,7 +52,7 @@
  *  @playerversion AIR 1.1
  *  @productversion Flex 3
  */
-[Style(name="fillAlphas", type="Array", arrayType="Number", inherit="no")]
+[Style(name="fillAlphas", type="Array", arrayType="Number", inherit="no", theme="halo")]

 /**
  *  Colors used to tint the background of the control.
@@ -65,7 +65,7 @@
  *  @playerversion AIR 1.1
  *  @productversion Flex 3
  */
-[Style(name="fillColors", type="Array", arrayType="uint", format="Color", inherit="no")]
+[Style(name="fillColors", type="Array", arrayType="uint", format="Color", inherit="no", theme="halo")]

 /**
  *  Alpha transparencies used for the highlight fill of controls.
@@ -79,4 +79,4 @@
  *  @playerversion AIR 1.1
  *  @productversion Flex 3
  */
-[Style(name="highlightAlphas", type="Array", arrayType="Number", inherit="no")]
+[Style(name="highlightAlphas", type="Array", arrayType="Number", inherit="no", theme="halo")]


Transferred from the Adobe Open Source Subversion Repository

Revision: 19120
Author:   cframpto@adobe.com
Date:     2010-12-07T22:05:32.680097Z

Log Message:
-----------
In DataGroup, when doing a virtual layout, there is no need to set the data and label in the IR again if it wasn't just created or recycled.  The collectionChangeHandler will handle updates to data.

QE notes:
Doc notes:
Bugs: SDK-28656
Reviewer: Ryan, Hans
Tests run: cyclone
Is noteworthy for integration:

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/IconItemRenderer.as</path>

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

--- frameworks/projects/spark/src/spark/components/DataGroup.as
+++ frameworks/projects/spark/src/spark/components/DataGroup.as
@@ -1467,10 +1467,16 @@
                 }

                 indexToRenderer[index] = elt;
-            }
-
-            addItemRendererToDisplayList(DisplayObject(elt));
-            setUpItemRenderer(elt, index, item);
+
+                addItemRendererToDisplayList(DisplayObject(elt));
+                setUpItemRenderer(elt, index, item);
+            }
+            else
+            {
+                // No need to set the data and label in the IR again.
+                // The collectionChangeHandler will handle updates to data.
+                addItemRendererToDisplayList(DisplayObject(elt));
+            }

             if (!isNaN(eltWidth) || !isNaN(eltHeight))
             {


Transferred from the Adobe Open Source Subversion Repository

Revision: 10486
Author:   rfrishbe@adobe.com
Date:     2009-09-22T03:30:00.821190Z

Log Message:
-----------
Merge gumbo_beta2 revision 10485 -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as</path>

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

--- frameworks/projects/airframework/src/mx/core/Window.as
+++ frameworks/projects/airframework/src/mx/core/Window.as
@@ -1096,11 +1096,14 @@
      */
     override public function get visible():Boolean
     {
-        if (!nativeWindow.closed)
-            return _nativeWindow.visible;
+        if (nativeWindow && nativeWindow.closed)
+            return false;
+        if (nativeWindow)
+            return nativeWindow.visible;
         else
-            return false;
-    }
+            return _nativeWindowVisible;
+    }
+
     /**
      *  @private
      */
@@ -1130,8 +1133,8 @@
                 else
                 {
                     _nativeWindow.visible = value;
-                    dispatchEvent(e);
                 }
+                dispatchEvent(e);
             }
         }
     }
@@ -3097,9 +3100,9 @@
      */
     private function hideEffectEndHandler(event:Event):void
     {
-        _nativeWindow.visible = false;
-
-        dispatchEvent(new FlexEvent(FlexEvent.HIDE));
+        if (!_nativeWindow.closed)
+            _nativeWindow.visible = false;
+        removeEventListener(EffectEvent.EFFECT_END, hideEffectEndHandler);
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 19242
Author:   aharui@adobe.com
Date:     2010-12-09T22:27:31.442236Z

Log Message:
-----------
Disable MEASURED_SIZE_PRELIMINARY if icon not used.  All fix up propagation of estimatedSizes

QE notes: none
Doc notes: none
Bugs: SDK-28658
Reviewer: Evtim
Tests run: checkintests mustella full run
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/IconItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewNavigatorSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/core/Application.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/SkinnableContainerSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewNavigatorApplicationSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/airspark/src/spark/components/Window.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TabbedViewNavigatorApplicationSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Application.as</path>

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

--- frameworks/projects/airframework/src/mx/core/Window.as
+++ frameworks/projects/airframework/src/mx/core/Window.as
@@ -32,6 +32,7 @@
 import mx.controls.Button;
 import mx.controls.FlexNativeMenu;
 import mx.core.FlexGlobals;
+import mx.core.FlexVersion;
 import mx.core.windowClasses.StatusBar;
 import mx.core.windowClasses.TitleBar;
 import mx.events.AIREvent;
@@ -2769,6 +2770,22 @@
         return result;
     }

+    /**
+     *  @private
+     *  Applications set estimated sizes for their children
+     */
+    override public function setActualSize(w:Number, h:Number):void
+    {
+        if (FlexVersion.compatibilityVersion >= FlexVersion.VERSION_4_5)
+        {
+            setEstimatedSize(w, h, false);
+            invalidateEstimatedSizesOfChildren();
+            validateEstimatedSizesOfChildren();
+        }
+
+        super.setActualSize(w, h);
+    }
+
     //--------------------------------------------------------------------------
     //
     //  Methods


Transferred from the Adobe Open Source Subversion Repository

Revision: 11468
Author:   smgilson@adobe.com
Date:     2009-11-05T16:54:31.738281Z

Log Message:
-----------
Part 1 of ASDoc localization bug fixes

QE notes: -
Doc notes: -
Bugs: - FLEXDOCS-934, FLEXDOCS-909, FLEXDOCS-908, FLEXDOCS-906, FLEXDOCS-882, FLEXDOCS-883, FLEXDOCS-881
Reviewer: -
Tests run: - checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Pause.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/effects/WipeLeft.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/Tween.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/easing/Quadratic.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/effects/WipeDown.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/HSBColor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/ArrayUtil.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/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/effects/DefaultListEffect.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/WipeUp.as</path>

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

--- frameworks/projects/framework/src/mx/utils/HSBColor.as
+++ frameworks/projects/framework/src/mx/utils/HSBColor.as
@@ -25,7 +25,7 @@
 public final class HSBColor
 {
     /**
-     * Constructs an HSVColor with optional parameters
+     * Constructs an HSBColor with optional parameters
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -42,8 +42,8 @@

     private var _hue:Number;
     /**
-     * The hue value for the HSV color. This represents an angle, in
-     * degrees, around the HSV cone. The supplied value will be modulated
+     * The hue value for the HSB color. This represents an angle, in
+     * degrees, around the HSB cone. The supplied value will be modulated
      * by 360 so that the stored value of hue will be in the range [0,360).
      *
      *  @langversion 3.0
@@ -62,9 +62,9 @@

     private var _saturation:Number;
     /**
-     * The saturation parameter for this HSV color. This is a value between
+     * The saturation parameter for this HSB color. This is a value between
      * 0 (black) and 1 (full saturation), which represents the distance
-     * from the center in the HSV cone.
+     * from the center in the HSB cone.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10


Transferred from the Adobe Open Source Subversion Repository

Revision: 8741
Author:   jimurphy@adobe.com
Date:     2009-07-22T21:00:56.965677Z

Log Message:
-----------
Merged 3.x revisions 8623,8685,8740 -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/mxml/IMXMLSupport.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/SimpleXMLDecoder.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/AbstractOperation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/remoting/mxml/RemoteObject.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/ISOAPDecoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AbstractService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/remoting/Operation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/AbstractWebService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/messages/MessagePerformanceUtils.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/HTTPMultiService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/SimpleXMLEncoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/HTTPService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/Operation.as</path>

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

--- frameworks/projects/rpc/src/mx/rpc/http/HTTPService.as
+++ frameworks/projects/rpc/src/mx/rpc/http/HTTPService.as
@@ -61,18 +61,19 @@
 [ResourceBundle("rpc")]

 /**
-  * You use the <mx:HTTPService> tag to represent an
-  * HTTPService object in an MXML file. When you call the HTTPService object's
-  * send() method, it makes an HTTP request to the
-  * specified URL, and an HTTP response is returned. Optionally, you can pass
-  * parameters to the specified URL. When you do not go through the server-based
-  * proxy service, you can use only HTTP GET or POST methods. However, when you set
-  * the useProxy  property to true and you use the server-based proxy service, you
- * can also use the HTTP HEAD, OPTIONS, TRACE, and DELETE methods.
- *
- *
Note: Due to a software limitation, HTTPService does not generate user-friendly
- *  error messages when using GET.

- *  @see mx.rpc.http.mxml.HTTPService
+  *  You use the HTTPService class to represent an
+  *  HTTPService object in ActionScript. When you call the HTTPService object's
+  *  send() method, it makes an HTTP request to the
+  *  specified URL, and an HTTP response is returned. Optionally, you can pass
+  *  parameters to the specified URL. When you do not go through the server-based
+  *  proxy service, you can use only HTTP GET or POST methods. However, when you set
+  *  the useProxy  property to true and you use the server-based proxy service, you
+  *  can also use the HTTP HEAD, OPTIONS, TRACE, and DELETE methods.
+  *
+  *
Note: Due to a software limitation, HTTPService does not generate user-friendly
+  *  error messages when using GET.

+  *
+  *  @see mx.rpc.http.mxml.HTTPService
  *
  *  @langversion 3.0
  *  @playerversion Flash 9
@@ -270,6 +271,7 @@

     /**
+     * @private
      * Propagate event listeners down to the operation since it is firing some of the
      * events.
      *
@@ -782,6 +784,9 @@
         return operation.lastResult;
     }

+    /**
+     *  @inheritDoc
+     */
     override public function clearResult(fireBindingEvent:Boolean = true):void
     {
         operation.clearResult(fireBindingEvent);
@@ -925,6 +930,9 @@
         asyncRequest.setRemoteCredentials(remoteUsername, remotePassword, charset);
     }

+    /**
+     *  @inheritDoc
+     */
     override public function cancel(id:String = null):AsyncToken
     {
         return operation.cancel(id);


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

--- frameworks/projects/rpc/src/mx/rpc/mxml/Concurrency.as
+++ frameworks/projects/rpc/src/mx/rpc/mxml/Concurrency.as
@@ -15,6 +15,11 @@
 /**
  * Concurrency is set via MXML based access to RPC services to indicate how to handle multiple
  * calls to the same service. The default concurrency value is multiple.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public final class Concurrency
 {
@@ -23,12 +28,22 @@
      * Only the result or fault for the most recent request will be dispatched on the client.
      * This may simplify event handling in the client application, but care should be taken to only use
      * this mode when results or faults for requests may be safely ignored.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static const LAST:String = "last";

     /**
      * Existing requests are not cancelled, and the developer is responsible for ensuring
      * the consistency of returned data by carefully managing the event stream.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static const MULTIPLE:String = "multiple";

@@ -36,6 +51,11 @@
     /**
      * Making only one request at a time is allowed on the method; additional requests made
      * while a request is outstanding are immediately faulted on the client and are not sent to the server.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static const SINGLE:String = "single";
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 11050
Author:   jimurphy@adobe.com
Date:     2009-10-21T16:12:53.014279Z

Log Message:
-----------
Merged 3.x revisions 10953,10964,10974,11007,11026 to Trunk

  r10953 | aharui@adobe.com | 2009-10-09 13:50:37 -0400 (Fri, 09 Oct 2009) | 11 lines

  Get rid of a try/catch block that was generating a lot of noise on the heap.

  QE Notes: None
  Doc Notes: None
  Bugs: SDK-23563
  Reviewer: Ryan
  API Change: no
  Is noteworthy for integration: No
  tests: checkintests mustella/Managers/DragManager
........

 r10964 | rfrishbe@adobe.com | 2009-10-09 19:23:26 -0400 (Fri, 09 Oct 2009) | 8 lines

  In DividedBox we mutate a childÆs percentWidth/percentHeight values.  This is so we can utilize the default BoxLayout algorithm.  However, after the algorithm has finished running, we should reset the values to what they were so when children get added it works correctly.

  QE notes: -
  Doc notes: -
  Bugs: SDK-15876
  Reviewer: Alex
  Tests run: checkintests, mustella DividedBox
  Is noteworthy for integration: no
........

  r10974 | pfarland@adobe.com | 2009-10-12 17:56:48 -0400 (Mon, 12 Oct 2009) | 9 lines

  Submitting customer patch for SDK-19188. Correcting XSD scope lookup while decoding wrapped style document literal responses.

  QE notes: Please add a regression test for this scenario.
  Doc notes: N/A
  Bugs: SDK-19188
  Reviewer: Pete
  Tests run: Checkintests, webtier mxunit, flexunit
  Is noteworthy for integration: No
........

  r11007 | pfarland@adobe.com | 2009-10-19 14:26:21 -0400 (Mon, 19 Oct 2009) | 17 lines

  Adding support for <xsd:any /> deserialization to include attributes as properties in addition to child elements.

  Just as with multiple child elements of the same name, an attribute and child element sharing the same name will be promoted to an Array of values (or ArrayCollection if makeObjectsBindable is true).

  Since dynamic ActionScript objects can only have public properties added at runtime, attribute namespaces will be ignored and only the localName will be used for the property name.

  Simple values that have attributes are supported - a special dynamic SimpleContent type is used to hold the value (the simple content value can be retrieved using toString() or valueOf()) and attributes become dynamic properties on this instance.

  Mixed content is still not supported and the cdata content is ignored.

  QE notes: Yes, please add a test case that uses attributes in the SOAP response data for <xsd:any> deserialization.
  Doc notes: We may want to add a release note that fixing this bug includes attributes during generic SOAP deserialization for the <xsd:any> scenario.
  Bugs: SDK-23140 - No data while using "Object" as "resultFormat" for Sharepoint WebService
  Reviewer: Svetlin, Tom J
  Tests run: Checkintests, bug test case
  Is noteworthy for integration: No
........

  r11026 | jimurphy@adobe.com | 2009-10-20 11:47:03 -0400 (Tue, 20 Oct 2009) | 8 lines

  update 3.x with most recent release of AIR: 1.5.2.8900

  QE notes:
  Doc notes:
  Bugs: no
  Reviewer: n/a
  Tests run: yes
  Is noteworthy for integration: no
........

Modified Paths:
--------------
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/XMLDecoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/in/air/win/AIR Integration Kit.zip</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/SOAPDecoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/in/air/mac/AIR Integration Kit.tbz2</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/DividedBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/dragClasses/DragProxy.as</path>

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

--- frameworks/projects/rpc/src/mx/rpc/soap/SOAPDecoder.as
+++ frameworks/projects/rpc/src/mx/rpc/soap/SOAPDecoder.as
@@ -395,6 +395,16 @@
         }
         else if (outputEncoding.useStyle == SOAPConstants.USE_LITERAL && wsdlOperation.outputMessage.isWrapped == true)
         {
+            // Get the outputMessage definition and (more importantly) move
+            // down a level into the schema stack.
+            var wrappedDefinition:XML = schemaManager.getNamedDefinition(wsdlOperation.outputMessage.wrappedQName,
+                                                  constants.complexTypeQName,
+                                                  constants.elementTypeQName);
+
+            // TODO: Ensure that throwing this error doesn't break compatibility
+            // if (wrappedDefinition == null)
+            //    throw new Error("Cannot find definition for wrapped response type '" + wsdlOperation.outputMessage.wrappedQName + "'");
+
             // Unwrap the output message only if this is wrapped literal.
             outputMessageXML = outputMessageXML.elements()[0];
         }


Transferred from the Adobe Open Source Subversion Repository

Revision: 16983
Author:   hmuller@adobe.com
Date:     2010-07-20T20:41:11.955924Z

Log Message:
-----------
The following change applies to DataGrid only.

Grid/dataProvider_collectionChangeHandler() now fixes caret/hover highlights.

QE notes: changes apply to Spark DataGrid only
Doc notes:
Bugs: sdk-26845
Reviewer: Kevin
Tests run: none
Is noteworthy for integration: no

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

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

--- frameworks/projects/spark/src/spark/components/Grid.as
+++ frameworks/projects/spark/src/spark/components/Grid.as
@@ -25,7 +25,7 @@
     import mx.events.CollectionEvent;
     import mx.events.CollectionEventKind;
     import mx.events.FlexEvent;
-    import mx.utils.ObjectUtil;
+    import mx.utils.ObjectUtil;

     import spark.components.supportClasses.GridColumn;
     import spark.components.supportClasses.GridDimensions;
@@ -435,6 +435,8 @@
          */
         public function set caretColumnIndex(value:int):void
         {
+            // TBD(hmuller): this short-circuit doens't seem right.  Don't update the _caretColumnIndex
+            // if selectionMode == ROW,ROWS?  What if the selectionMode has changed at commitProperties time?
             if (caretColumnIndex == value ||
                 selectionMode == GridSelectionMode.SINGLE_ROW ||
                 selectionMode == GridSelectionMode.MULTIPLE_ROWS)
@@ -2282,7 +2284,6 @@
             return gridLayout.getItemRendererAt(rowIndex, columnIndex);
         }

-
         //--------------------------------------------------------------------------
         //
         //  Method Overrides
@@ -2317,6 +2318,7 @@
             // setters because the gridSelection and gridDimensions might not
             // be set yet, depending on the order they are initialized when the
             // grid skin part is added to the data grid.
+
             if (dataProviderChanged || columnsChanged)
             {
                 // Remove the current selection and, if requireSelection, make
@@ -2339,6 +2341,9 @@
                         gridDimensions.columnCount = _columns.length;
                 }

+                caretRowIndex = -1;
+                caretColumnIndex = -1;
+
                 dataProviderChanged = false;
                 columnsChanged = false;
             }
@@ -2628,6 +2633,88 @@
         //  IList listeners: columns, dataProvider
         //
         //--------------------------------------------------------------------------
+
+        /**
+         *  @private
+         *  Update caretRowIndex if necessary.  This method should only be called when
+         *  caretRowIndex is valid, i.e. != -1.
+         */
+        private function updateCaretForDataProviderChange(event:CollectionEvent):void
+        {
+            const oldCaretRowIndex:int = caretRowIndex;
+            const location:int = event.location;
+            var itemsLength:int;
+
+            switch (event.kind)
+            {
+                case CollectionEventKind.ADD:
+                    if (oldCaretRowIndex >= location)
+                        caretRowIndex += event.items.length;
+                    break;
+
+                case CollectionEventKind.REMOVE:
+                    if (oldCaretRowIndex >= location)
+                    {
+                        itemsLength = event.items.length;
+                        if (oldCaretRowIndex < (location + itemsLength))
+                            caretRowIndex = -1;
+                        else
+                            caretRowIndex -= itemsLength;
+                    }
+
+                    break;
+
+                case CollectionEventKind.MOVE:
+                    {
+                        const oldLocation:int = event.oldLocation;
+                        itemsLength = event.items.length;
+                        if ((oldCaretRowIndex >= oldLocation) && (oldCaretRowIndex < (oldLocation + itemsLength)))
+                            caretRowIndex += location - oldLocation;
+                    }
+                    break;
+
+                case CollectionEventKind.REPLACE:
+                case CollectionEventKind.UPDATE:
+                    break;
+
+                case CollectionEventKind.REFRESH:
+                case CollectionEventKind.RESET:
+                    caretRowIndex = -1;
+                    caretColumnIndex = -1;
+                    break;
+            }
+
+        }
+
+        /**
+         *  @private
+         *  Update hoverRowIndex if necessary.  This method should only be called when
+         *  hoverRowIndex is valid, i.e. != -1.
+         */
+        private function updateHoverForDataProviderChange(event:CollectionEvent):void
+        {
+            const oldHoverRowIndex:int = hoverRowIndex;
+            const location:int = event.location;
+
+            switch (event.kind)
+            {
+                case CollectionEventKind.ADD:
+                case CollectionEventKind.REMOVE:
+                case CollectionEventKind.REPLACE:
+                case CollectionEventKind.UPDATE:
+                case CollectionEventKind.MOVE:
+                    if (oldHoverRowIndex >= location)
+                        hoverRowIndex = gridDimensions.getRowIndexAt(mouseX, mouseY);
+                    break;
+
+
+                case CollectionEventKind.REFRESH:
+                case CollectionEventKind.RESET:
+                    hoverRowIndex = gridDimensions.getRowIndexAt(mouseX, mouseY);
+                    break;
+            }
+
+        }

         /**
          *  @private
@@ -2636,13 +2723,19 @@
         {
             if (gridDimensions)
                 gridDimensions.dataProviderCollectionChanged(event);
+
             if (gridLayout)
                 gridLayout.dataProviderCollectionChanged(event);
+
             if (gridSelection)
                 gridSelection.dataProviderCollectionChanged(event);

-            // TBD: hover and caretIndex
-
+            if (caretRowIndex != -1)
+                updateCaretForDataProviderChange(event);
+
+            if (gridDimensions && (hoverRowIndex != -1))
+                updateHoverForDataProviderChange(event);
+
             invalidateSize();
             invalidateDisplayList();
         }


Missing header showed up in RAT report

Missing header showed up in RAT report

git-svn-id: 8abe1d02b055b1c3ad2747e884e38fb9e7cebddd@1425422 13f79535-47bb-0310-9956-ffa450edef68

--- mustella/as3/src/mustella/ErrorArray.as
+++ mustella/as3/src/mustella/ErrorArray.as
@@ -1,3 +1,21 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
 package {
     public class ErrorArray {
         private var _parts:Array;


Test for PropertyUtil.copyArrayList() method.

--- dolly-framework/src/test/actionscript/dolly/utils/PropertyUtilTests.as
+++ dolly-framework/src/test/actionscript/dolly/utils/PropertyUtilTests.as
@@ -5,6 +5,9 @@
 import mx.collections.ArrayList;

 import org.flexunit.assertThat;
+import org.flexunit.asserts.assertEquals;
+import org.flexunit.asserts.assertFalse;
+import org.flexunit.asserts.assertNotNull;
 import org.flexunit.asserts.assertTrue;
 import org.hamcrest.collection.array;
 import org.hamcrest.collection.arrayWithSize;
@@ -44,5 +47,21 @@
 		assertThat(targetObj.array, everyItem(isA(Number)));
 		assertThat(targetObj.array, array(equalTo(0), equalTo(1), equalTo(2), equalTo(3), equalTo(4)));
 	}
+
+	[Test]
+	public function copyingOfArrayList():void {
+		PropertyUtil.copyArrayList(sourceObj, targetObj, "arrayList");
+
+		const targetArrayList:ArrayList = targetObj.arrayList;
+
+		assertNotNull(targetArrayList);
+		assertFalse(targetObj.arrayList == sourceObj.arrayList);
+		assertEquals(targetArrayList.length, 5);
+		assertEquals(targetArrayList.getItemAt(0), 0);
+		assertEquals(targetArrayList.getItemAt(1), 1);
+		assertEquals(targetArrayList.getItemAt(2), 2);
+		assertEquals(targetArrayList.getItemAt(3), 3);
+		assertEquals(targetArrayList.getItemAt(4), 4);
+	}
 }
 }


changed local variable so it doesn't conflict with static variable

--- WeaveJS/src/weavejs/util/DateUtils.as
+++ WeaveJS/src/weavejs/util/DateUtils.as
@@ -49,9 +49,8 @@
 					if (!fmt)
 						continue;

-					var moment:* = new moment(date, fmt, true);
-
-					if (!moment.isValid())
+					var m:Object = new moment(date, fmt, true);
+					if (!m.isValid())
 					{
 						validFormatsSparse[fmtIdx] = null;
 					}
@@ -59,7 +58,6 @@
 			}

 			var validFormats:Array = [];
-
 			for each (fmt in validFormatsSparse)
 			{
 				if (fmt !== null)


Transferred from the Adobe Open Source Subversion Repository

Revision: 12850
Author:   jimurphy@adobe.com
Date:     2009-12-11T14:57:14.623098Z

Log Message:
-----------
add 6 new DMV projects to the SDK:
automation
automation_air
automation_dmv
automation_flashflexkit
automation_spark
datavisualization

These projects are setup to build in an ant main call.  There are currently several warnings in the datavisualization project that will be cleaned up.  No checkintests exist for these projects as of yet.

I also modified the exisitng projects build files for easier management of the localization targets, bundle and fat-swc. If the projects that I updated:airframework,airspark,framework,playerglobal,rpc,and spark.  All the new projects have been implemented this same way.

QE notes: DMV folks should run through their tests
Doc notes: probably
Bugs: nope
Reviewer:
Tests run: ran the following targets: compile,checkintests,other.locales and doc
Is noteworthy for integration: no

Modified Paths:
--------------
1404 paths were modified

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

--- frameworks/projects/charts/src/mx/charts/renderers/HLOCItemRenderer.as
+++ frameworks/projects/charts/src/mx/charts/renderers/HLOCItemRenderer.as
@@ -0,0 +1,348 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2009 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.charts.renderers
+{
+
+import flash.display.Graphics;
+
+import mx.charts.ChartItem;
+import mx.charts.series.items.HLOCSeriesItem;
+import mx.core.IDataRenderer;
+import mx.graphics.IStroke;
+import mx.graphics.LinearGradientStroke;
+import mx.graphics.Stroke;
+import mx.skins.ProgrammaticSkin;
+import mx.utils.ColorUtil;
+
+/**
+ *  The default item renderer for an HLOCSeries object.
+ *  This class renders a vertical line from high to low
+ *  with tick marks at the open and close points of the chart item.
+ *
+ *
The vertical line is rendered by using the value of the owning series's
+ *  stroke style.
+ *  The open and close tick marks are rendered by using the owning series's
+ *  openTickStroke and closeTickStroke styles,
+ *  respectively.
+ *  The lengths of the open and close tick marks are determined by the
+ *  owning series's openTickLength and
+ *  closeTickLengthstyles, respectively.

+ *
+ *
Both the open tick and close tick values are optional;
+ *  an HLOCItemRenderer only renders the tick marks if the open and close
+ *  values on the associated chart item are non-NaN values.

+ *
+ *  @see mx.charts.series.HLOCSeries
+ *  @see mx.charts.series.HLOCSeriesItem
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public class HLOCItemRenderer extends ProgrammaticSkin implements IDataRenderer
+{
+    include "../../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function HLOCItemRenderer()
+    {
+        super();
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  data
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the data property.
+     */
+    private var _data:HLOCSeriesItem;
+
+    [Inspectable(environment="none")]
+
+    /**
+     *  The chart item that this renderer represents.
+     *  HLOCItemRenderers assume this value
+     *  is an instance of HLOCSeriesItem.
+     *  This value is assigned by the owning series.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function get data():Object
+    {
+        return _data;
+    }
+
+    /**
+     *  @private
+     */
+    public function set data(value:Object):void
+    {
+        _data = value as HLOCSeriesItem;
+
+        invalidateDisplayList();
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    override protected function updateDisplayList(unscaledWidth:Number,
+                                                  unscaledHeight:Number):void
+    {
+        super.updateDisplayList(unscaledWidth, unscaledHeight);
+
+        var istroke:IStroke = getStyle("stroke");
+
+        var stroke:Stroke;
+        var lgstroke:LinearGradientStroke;
+
+        if (istroke is Stroke)
+        	stroke = Stroke(istroke);
+        else if (istroke is LinearGradientStroke)
+        	lgstroke = LinearGradientStroke(istroke);
+        else
+        	stroke = new Stroke(getStyle('hlocColor'), istroke.weight);
+
+        var iOpenTickStroke:IStroke = getStyle("openTickStroke");
+
+        var openTickStroke:Stroke;
+        var lgOpenTickStroke:LinearGradientStroke;
+
+        if (iOpenTickStroke is Stroke)
+        	openTickStroke = Stroke(iOpenTickStroke);
+       else if (iOpenTickStroke is LinearGradientStroke)
+        	lgOpenTickStroke = LinearGradientStroke(iOpenTickStroke);
+        else
+        	openTickStroke = new Stroke(getStyle('hlocColor'), iOpenTickStroke.weight, 1, false, "normal", "none");
+
+        var iCloseTickStroke:IStroke = getStyle("closeTickStroke");
+
+        var closeTickStroke:Stroke;
+        var lgCloseTickStroke:LinearGradientStroke;
+
+        if (iCloseTickStroke is Stroke)
+        	closeTickStroke = Stroke(iCloseTickStroke);
+        else if (iCloseTickStroke is LinearGradientStroke)
+        	lgCloseTickStroke = LinearGradientStroke(iCloseTickStroke);
+        else
+        	closeTickStroke = new Stroke(getStyle('hlocColor'), iCloseTickStroke.weight, 1, false, "normal", "none");
+
+        var w2:Number = unscaledWidth / 2;
+
+        var openTickLen:Number = Math.min(w2, getStyle("openTickLength"));
+        var closeTickLen:Number = Math.min(w2, getStyle("closeTickLength"));
+
+        var openTick:Number;
+        var closeTick:Number;
+
+        var state:String = "";
+        var oldColor:uint;
+        var oldOpenTickColor:uint;
+        var oldCloseTickColor:uint;
+        var strokeColor:uint;
+        var openTickColor:uint;
+        var closeTickColor:uint;
+
+        if (_data)
+        {
+            var lowValue:Number = Math.max(_data.low,Math.max(_data.high,_data.close));
+            var highValue:Number = Math.min(_data.low,Math.min(_data.high,_data.close));
+            if (!isNaN(_data.open))
+            {
+                lowValue = Math.max(lowValue,_data.open);
+                highValue = Math.min(highValue,_data.open);
+            }
+
+            var HLOCHeight:Number = lowValue - highValue;
+            var heightScaleFactor:Number = (HLOCHeight > 0)? (height / HLOCHeight):0;
+
+            openTick = (_data.open - highValue) *
+                       heightScaleFactor;
+            closeTick = (_data.close - highValue) *
+                        heightScaleFactor;
+
+            state = _data.currentState;
+
+            if (state && state != "")
+        	{
+        		if (stroke)
+        		{
+               		strokeColor = stroke.color;
+               		oldColor = stroke.color;
+          		}
+            	else if (lgstroke.entries.length > 0)
+            	{
+            		strokeColor = lgstroke.entries[0].color;
+            		oldColor = lgstroke.entries[0].color;
+            	}
+            	if (openTickStroke)
+            	{
+            		openTickColor = openTickStroke.color;
+            		oldOpenTickColor = openTickStroke.color;
+            	}
+            	else if (lgOpenTickStroke.entries.length > 0)
+            	{
+                	openTickColor = lgOpenTickStroke.entries[0].color;
+                	oldOpenTickColor = lgOpenTickStroke.entries[0].color;
+             	}
+            	if (closeTickStroke)
+            	{
+                	closeTickColor = closeTickStroke.color;
+                	oldCloseTickColor = closeTickStroke.color;
+             	}
+            	else if (lgCloseTickStroke.entries.length > 0)
+            	{
+                	closeTickColor = lgCloseTickStroke.entries[0].color;
+                	oldCloseTickColor = lgCloseTickStroke.entries[0].color;
+             	}
+         	}
+            switch (state)
+            {
+                case ChartItem.FOCUSED:
+                case ChartItem.ROLLOVER:
+                    if (styleManager.isValidStyleValue(getStyle('itemRollOverColor')))
+                    {
+                    	strokeColor = getStyle('itemRollOverColor');
+                    }
+                    else
+                    {
+                    	strokeColor = ColorUtil.adjustBrightness2(strokeColor, -20);
+                    }
+                    openTickColor = ColorUtil.adjustBrightness2(openTickColor, -20);
+                    closeTickColor = ColorUtil.adjustBrightness2(closeTickColor, -20);
+                    break;
+
+                case ChartItem.DISABLED:
+                    if (styleManager.isValidStyleValue(getStyle('itemDisabledColor')))
+                    {
+                    	strokeColor = getStyle('itemDisabledColor');
+                    }
+                    else
+                    {
+                    	strokeColor = ColorUtil.adjustBrightness2(strokeColor, 20);
+                    }
+                    openTickColor = ColorUtil.adjustBrightness2(openTickColor, 20);
+                    closeTickColor = ColorUtil.adjustBrightness2(closeTickColor, 20);
+                    break;
+
+                case ChartItem.FOCUSEDSELECTED:
+                case ChartItem.SELECTED:
+                    if (styleManager.isValidStyleValue(getStyle('itemSelectionColor')))
+                    {
+                    	strokeColor = getStyle('itemSelectionColor');
+                    }
+                    else
+                    {
+                    	strokeColor = ColorUtil.adjustBrightness2(strokeColor, -30);
+                    }
+                    openTickColor = ColorUtil.adjustBrightness2(openTickColor, -30);
+                    closeTickColor = ColorUtil.adjustBrightness2(closeTickColor, -30);
+                    break;
+            }
+        }
+        else
+        {
+            openTick = 0.75 * height;
+            closeTick = 0.25 * height;
+        }
+        if (state && state != "")
+        {
+        	if (stroke)
+           		stroke.color = strokeColor;
+        	else if (lgstroke.entries.length > 0)
+           		lgstroke.entries[0].color = strokeColor;
+        	if (openTickStroke)
+            	openTickStroke.color = openTickColor;
+        	else if (lgOpenTickStroke.entries.length > 0)
+            	lgOpenTickStroke.entries[0].color = openTickColor;
+        	if (closeTickStroke)
+            	closeTickStroke.color = closeTickColor;
+        	else if (lgCloseTickStroke.entries.length > 0)
+            	lgCloseTickStroke.entries[0].color = closeTickColor;
+        }
+        var g:Graphics = graphics;
+        g.clear();
+        if (stroke)
+        	stroke.apply(g,null,null);
+        else
+        	lgstroke.apply(g,null,null);
+        g.moveTo(w2, 0);
+        g.lineTo(w2, height);
+        if (!isNaN(openTick))
+        {
+            if (openTickStroke)
+            	openTickStroke.apply(g,null,null);
+            else
+            	lgOpenTickStroke.apply(g,null,null);
+            g.moveTo(w2, openTick);
+            g.lineTo(w2 - openTickLen, openTick);
+        }
+        if (!isNaN(closeTick))
+        {
+            if (closeTickStroke)
+            	closeTickStroke.apply(g,null,null);
+            else
+            	lgCloseTickStroke.apply(g,null,null);
+            g.moveTo(w2, closeTick);
+            g.lineTo(w2 + closeTickLen, closeTick);
+        }
+
+        // Restore to old colors - after selection drawing is done.
+        if (state && state != "")
+        {
+        	if (stroke)
+               	stroke.color = oldColor;
+            else if (lgstroke.entries.length > 0)
+               	lgstroke.entries[0].color = oldColor;
+            if (openTickStroke)
+                openTickStroke.color = oldOpenTickColor;
+            else if (lgOpenTickStroke.entries.length > 0)
+                lgOpenTickStroke.entries[0].color = oldOpenTickColor;
+            if (closeTickStroke)
+                closeTickStroke.color = oldCloseTickColor;
+            else if (lgCloseTickStroke.entries.length > 0)
+                lgCloseTickStroke.entries[0].color = oldCloseTickColor;
+        }
+    }
+}
+
+}


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 2586
Author:   jimurphy@adobe.com
Date:     2008-07-23T15:42:56.370538Z

Log Message:
-----------
Merged 3.0.x rev. [2567,2582,2584] -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/ModalWindowRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerAPI.java</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/frameworkSwcExceptionsList.txt</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/DragManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/dragClasses/DragProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/CrossDomainRSLItem.as</path>

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

--- frameworks/projects/framework/src/mx/managers/dragClasses/DragProxy.as
+++ frameworks/projects/framework/src/mx/managers/dragClasses/DragProxy.as
@@ -37,6 +37,7 @@
 import mx.managers.CursorManager;
 import mx.managers.DragManager;
 import mx.managers.ISystemManager2;
+import mx.managers.SystemManager;
 import mx.styles.CSSStyleDeclaration;
 import mx.styles.StyleManager;

@@ -344,7 +345,7 @@
 		// in untrusted mode, the mouse events shouldn't work so we shouldn't be here

 		// same domain
-		if (isSameSandbox(target))
+		if (isSameOrChildApplicationDomain(target))
 			target.dispatchEvent(event);
 		else
 		{
@@ -359,19 +360,10 @@
 		}
 	}

-	private function isSameSandbox(target:Object):Boolean
+	private function isSameOrChildApplicationDomain(target:Object):Boolean
 	{
-		var ad:ApplicationDomain = ApplicationDomain.currentDomain;
-
-		var cn:String = getQualifiedClassName(target);
-
-		if (ad.hasDefinition(cn))
-		{
-			var c:Class = Class(ad.getDefinition(cn));
-			if (target is c)
-				return true;
-		}
-		return false;
+		var swfRoot:DisplayObject = SystemManager.getSWFRoot(target);
+		return (swfRoot != null);
 	}

     /**


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

--- frameworks/projects/spark/src/spark/components/supportClasses/Range.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/Range.as
@@ -9,13 +9,13 @@
 //
 ////////////////////////////////////////////////////////////////////////////////

-package mx.components.baseClasses
+package spark.components.supportClasses
 {

 import mx.events.FlexEvent;

 /**
- *  The FxRange class holds a value and an allowed range for that
+ *  The Range class holds a value and an allowed range for that
  *  value, defined by a minimum and maximum properties.
  *  The value property
  *  is always constrained to be between the current minimum and
@@ -27,18 +27,18 @@
  *  then value is also constrained to be a multiple of
  *  valueInterval.
  *
- *
FxRange is a base class for various controls that require range
- *  functionality, including FxTrackBase and FxSpinner.

+ *
Range is a base class for various controls that require range
+ *  functionality, including TrackBase and Spinner.

  *
- *  @see mx.components.baseClasses.FxTrackBase
- *  @see mx.components.FxSpinner
+ *  @see mx.components.baseClasses.TrackBase
+ *  @see mx.components.Spinner
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
  *  @productversion Flex 4
  */
-public class FxRange extends FxComponent
+public class Range extends SkinnableComponent
 {
     include "../../core/Version.as";

@@ -56,7 +56,7 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    public function FxRange():void
+    public function Range():void
     {
         super();
     }
@@ -347,7 +347,7 @@
     /**
      *  Rounds a value to the closest multiple of
      *  the specified interval, and constrains the result to the range
-     *  defined by the FxRange object.
+     *  defined by the Range object.
      *
      *  @param value The value to round.
      *


DisplayUtil.sortDisplayChildren takes a comparison function returning -1, 0, or 1, rather than a Boolean lessEqual function

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

--- src/as/com/threerings/flash/DisplayUtil.as
+++ src/as/com/threerings/flash/DisplayUtil.as
@@ -35,39 +35,41 @@
     /**
      * Quicksorts container's children.
      *
-     * lessEqualComp is a function that takes two DisplayObjects, and returns Boolean 'true' if the
-     * first object is less than or equal to the second.
+     * comp is a function that takes two DisplayObjects, and returns int -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. (Since quicksort is not a stable sort algorithm,
+     * returning 0 in the compare function is equivalent to returning -1).
      *
-     * If lessEqualComp is null, sortDisplayChildren will sort container so that objects with smaller
+     * If comp is null, sortDisplayChildren will sort container so that objects with smaller
      * y-values appear before objects with larger y-values.
      */
-    public static function sortDisplayChildren (container :DisplayObjectContainer, lessEqualComp :Function = null) :void
-    {
-        qsortDisplayChildren(container, 0, container.numChildren - 1, (null != lessEqualComp ? lessEqualComp : displayObjectYLessEqual));
-    }
-
-    private static function displayObjectYLessEqual (a :DisplayObject, b :DisplayObject) :Boolean
-    {
-        return (a.y <= b.y);
+    public static function sortDisplayChildren (container :DisplayObjectContainer, comp :Function = null) :void
+    {
+        qsortDisplayChildren(container, 0, container.numChildren - 1, (null != comp ? comp : displayObjectYLessEqual));
+    }
+
+    private static function displayObjectYLessEqual (a :DisplayObject, b :DisplayObject) :int
+    {
+        return (a.y <= b.y ? -1 : 1);
     }

     /** Helper function for sortDisplayChildren. */
-    private static function qsortDisplayChildren (container :DisplayObjectContainer, left :int, right :int, lessEqualComp :Function) :void
+    private static function qsortDisplayChildren (container :DisplayObjectContainer, left :int, right :int, comp :Function) :void
     {
         if (right - left > 1) { // containers of size 0 or 1 are already sorted

             // arbitrarily choose the element in the middle of the sort list as the pivot element
             var pivotIndex :int = left + ((right - left) * 0.5);

-            pivotIndex = partitionDisplayChildren(container, left, right, pivotIndex, lessEqualComp);
-            qsortDisplayChildren(container, left, pivotIndex - 1, lessEqualComp);
-            qsortDisplayChildren(container, pivotIndex + 1, right, lessEqualComp);
+            pivotIndex = partitionDisplayChildren(container, left, right, pivotIndex, comp);
+            qsortDisplayChildren(container, left, pivotIndex - 1, comp);
+            qsortDisplayChildren(container, pivotIndex + 1, right, comp);
         }
     }

     /** Helper function for qsortDisplayChildren. */
     private static function partitionDisplayChildren (
-        container :DisplayObjectContainer, left :int, right :int, pivotIndex :int, lessEqualComp :Function) :int
+        container :DisplayObjectContainer, left :int, right :int, pivotIndex :int, comp :Function) :int
     {
         var pivotObj :DisplayObject = container.getChildAt(pivotIndex);

@@ -77,7 +79,7 @@

         for (var i :int = left; i < right; ++i) {
             var thisObj :DisplayObject = container.getChildAt(i);
-            if (lessEqualComp(thisObj, pivotObj)) {
+            if (1 != comp(thisObj, pivotObj)) {
                 container.swapChildrenAt(i, storeIndex);
                 storeIndex += 1;
             }


_collection is now typed as ListCollectionView

_collection is now null if dataProvider is not set

--- src/com/jabbypanda/controls/InputAssist.as
+++ src/com/jabbypanda/controls/InputAssist.as
@@ -8,12 +8,14 @@
 	import flash.display.DisplayObjectContainer;
 	import flash.events.Event;
 	import flash.events.FocusEvent;
+	import flash.events.IEventDispatcher;
 	import flash.events.KeyboardEvent;
 	import flash.ui.Keyboard;

 	import mx.collections.ArrayCollection;
 	import mx.collections.ArrayList;
 	import mx.collections.IList;
+	import mx.collections.ListCollectionView;
 	import mx.core.FlexGlobals;
 	import mx.core.mx_internal;
 	import mx.events.CollectionEvent;
@@ -96,16 +98,20 @@

         [Bindable]
         public function set dataProvider(value : Object) : void {
+            if (dataProvider && dataProvider is IList) {
+                dataProvider.removeEventListener(CollectionEvent.COLLECTION_CHANGE, onDataProviderCollectionChange);
+            }
+
             if (value is Array) {
-        		_collection = new ArrayCollection(value as Array);
+        		_collection = new ListCollectionView(new ArrayList(value as Array));
             } else if (value is ArrayList) {
-                _collection = new ArrayCollection(ArrayList(value).source);
                 ArrayList(value).addEventListener(CollectionEvent.COLLECTION_CHANGE, onDataProviderCollectionChange, false, 0, true);
+                _collection = new ListCollectionView(value as ArrayList);
             } else if (value is ArrayCollection) {
-                _collection = new ArrayCollection((value as ArrayCollection).source);
                 ArrayCollection(value).addEventListener(CollectionEvent.COLLECTION_CHANGE, onDataProviderCollectionChange, false, 0, true);
+                _collection = new ListCollectionView((value as ArrayCollection).list);
         	} else {
-                _collection = new ArrayCollection();
+                _collection = new ListCollectionView();
             }

             //reset previously selected item
@@ -245,7 +251,6 @@
             }

             if (instance == list) {
-                list.dataProvider = _collection;
                 list.labelField = labelField;
                 list.labelFunction = labelFunction;
                 list.searchMode = searchMode;
@@ -259,7 +264,7 @@
         override protected function commitProperties():void {
             if (_dataProviderChanged) {
                 list.dataProvider = _collection;
-
+
                 if (!dataProvider || dataProvider.length == 0) {
                     enabled = false;
                     displayErrorMessage();
@@ -327,8 +332,10 @@
         }

         protected function filterData() : void {
-            _collection.filterFunction = filterFunction;
-            _collection.refresh();
+            if (_collection) {
+                _collection.filterFunction = filterFunction;
+                _collection.refresh();
+            }
         }

         protected function itemToLabel(item : Object) : String {
@@ -427,11 +434,11 @@
             return popUp.displayPopUp;
         }

-        private function onDataProviderCollectionChange(event : CollectionEvent) : void {
+        private function onDataProviderCollectionChange(event : CollectionEvent) : void {
             _dataProviderChanged = true;
             invalidateProperties();
         }
-
+
         private function onInputFieldChange(event : TextOperationEvent = null) : void {
             _completionAccepted = false;
             enteredText = inputTxt.text;
@@ -495,9 +502,9 @@
             if (!mouseDownInsideComponent) {
                 showPreviousTextAndHidePopUp(!_completionAccepted);
             }
-        }
+        }

-        private var _collection : ArrayCollection = new ArrayCollection();
+        private var _collection : ListCollectionView;

         private var _completionAccepted : Boolean;


Transferred from the Adobe Open Source Subversion Repository

Revision: 4335
Author:   jszeto@adobe.com
Date:     2008-12-17T00:52:56.919040Z

Log Message:
-----------
GraphicElement Optimization

- Changed how a shared displayObject is positioned in a GraphicElement. Previously, it was always placed at (x,y). Now, it is placed at (0,0) if the displayObject can be shared (ie. it has no transforms). This solves the problem of a sharedDisplayObject getting repositioned without the GraphicElement being aware of it.

- Optimized Group.updateDisplayList so that we only redraw the GraphicElement's that share a displayObject that needs to be updated. Added a new class called InvalidatingSprite which has a single property called "invalid". If a GraphicElement needs to be redrawn, it marks its shared or unshared displayObject as invalid. Group will then only update the GraphicElements whose displayObject is marked invalid. Added invalidateDisplayList calls in a few missing places.

QE Notes: Some of the mustella bitmaps need to be regenerated. The player renders differently two transformed sprites that draw the same visuals. For example, a rotated sprite at (0,0) with a drawRect at (20,20) will look from a rotated sprite at (20,20) with a drawRect at (0,0).
Doc Notes: None
Bugs: SDK-18053
Reviewer: Evtim

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/Line.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/core/InvalidatingSprite.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxTrackBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/Path.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxVSliderSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/TrackBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/TrackBase.as
@@ -442,8 +442,8 @@
     {
         var pt:Point = new Point(event.stageX, event.stageY);
         pt = track.globalToLocal(pt);
-        var movePos:Number = pointToPosition(pt.x - _clickOffset.x,
-                                             pt.y - _clickOffset.y);
+        var movePos:Number = pointToPosition(pt.x - clickOffset.x,
+                                             pt.y - clickOffset.y);
         var newValue:Number = positionToValue(movePos);
         var roundedValue:Number = nearestValidValue(newValue, valueInterval);
         return roundedValue;


make private members private

make private members private

--- src/org/hola/FlashFetchBin.as
+++ src/org/hola/FlashFetchBin.as
@@ -8,8 +8,8 @@
     import org.hola.ZExternalInterface;

     public class FlashFetchBin {
-        public static var inited:Boolean = false;
-        public static var free_id:Number = 0;
+        private static var inited:Boolean = false;
+        private static var free_id:Number = 0;
         public static var req_list:Object = {};
         public static function init():Boolean{
             if (inited)
@@ -24,7 +24,7 @@
             inited = true;
             return inited;
         }
-        public static function hola_fetchBin(o:Object):Object{
+        private static function hola_fetchBin(o:Object):Object{
             var id:String = 'fetch_bin_'+free_id;
             free_id++;
             var url:String = o.url;
@@ -53,14 +53,14 @@
                 clearTimeout(req.timer);
             delete req_list[id];
         }
-        public static function hola_fetchBinAbort(id:String):void{
+        private static function hola_fetchBinAbort(id:String):void{
             var req:Object = req_list[id];
             if (!req)
                 return;
             if (req.stream.connected)
                 req.stream.close();
         }
-        public static function getReqFromStream(stream:Object):Object{
+        private static function getReqFromStream(stream:Object):Object{
             // XXX arik/bahaa: implement without loop
             for (var n:String in req_list)
             {
@@ -70,19 +70,19 @@
             return null;
         }
         // XXX arik/bahaa: mv to org.hola.util
-        public static function jsPostMessage(id:String, data:Object):void{
+        private static function jsPostMessage(id:String, data:Object):void{
             if (!ZExternalInterface.avail())
                 return;
             ExternalInterface.call('window.postMessage',
                 {id: id, ts: new Date().getTime(), data: data}, '*');
         }
-        public static function streamOpen(e:Event):void{
+        private static function streamOpen(e:Event):void{
             var req:Object = getReqFromStream(e.target);
             if (!req)
                 return ZErr.log('req not found streamOpen');
             jsPostMessage('holaflash.streamOpen', {id: req.id});
         }
-        public static function streamProgress(e:ProgressEvent):void{
+        private static function streamProgress(e:ProgressEvent):void{
             var req:Object = getReqFromStream(e.target);
             if (!req)
                 return ZErr.log('req not found streamProgress');
@@ -96,21 +96,21 @@
                     bytesLoaded: e.bytesLoaded, bytesTotal: e.bytesTotal});
             }
         }
-        public static function streamHttpStatus(e:HTTPStatusEvent):void{
+        private static function streamHttpStatus(e:HTTPStatusEvent):void{
             var req:Object = getReqFromStream(e.target);
             if (!req)
                 return ZErr.log('req not found streamHttpStatus');
             jsPostMessage('holaflash.streamHttpStatus', {id: req.id,
                 status: e.status});
         }
-        public static function streamComplete(e:Event):void{
+        private static function streamComplete(e:Event):void{
             var req:Object = getReqFromStream(e.target);
             if (!req)
                 return ZErr.log('req not found streamComplete');
             jsPostMessage('holaflash.streamComplete', {id: req.id,
                 bytesTotal: req.bytesTotal});
         }
-        public static function streamError(e:ErrorEvent):void{
+        private static function streamError(e:ErrorEvent):void{
             var req:Object = getReqFromStream(e.target);
             if (!req)
                 return ZErr.log('req not found streamError');


[VectorCommon] fix feature rendering bug

git-svn-id: adbdea8fc1759bd16b0eaf24a244a7e5f870a654@280 fe3f0490-d73e-11de-a956-c71e7d3a9d2f

--- VectorCommon/src/org/jbei/components/sequenceClasses/FeatureRenderer.as
+++ VectorCommon/src/org/jbei/components/sequenceClasses/FeatureRenderer.as
@@ -103,8 +103,12 @@
 						startBP = row.rowData.start;
 					}
 				} else {
-					startBP = (feature.start < row.rowData.start) ? row.rowData.start : feature.start;
-					endBP = (feature.end - 1 < row.rowData.end) ? feature.end - 1 : row.rowData.end;
+                    if (feature.start < row.rowData.start && feature.end <= row.rowData.start) {
+                        continue; // the feature is outside of the current row
+                    } else {
+    					startBP = (feature.start < row.rowData.start) ? row.rowData.start : feature.start;
+    					endBP = (feature.end - 1 < row.rowData.end) ? feature.end - 1 : row.rowData.end;
+                    }
 				}

 				/* Case when start and end are in the same row
@@ -157,7 +161,7 @@
 					if(feature.strand == StrandType.UNKNOWN) {
 						drawFeatureRect(g, featureX, featureY, featureRowWidth, featureRowHeight);
 					} else if(feature.strand == StrandType.FORWARD) {
-						if(feature.end >= row.rowData.start && feature.end <= row.rowData.end) {
+						if(feature.end >= row.rowData.start && feature.end <= row.rowData.end + 1) {
 							drawFeatureForwardArrow(g, featureX, featureY, featureRowWidth, featureRowHeight);
 						} else {
 							drawFeatureForwardRect(g, featureX, featureY, featureRowWidth, featureRowHeight);


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

--- frameworks/projects/charts/src/mx/charts/series/items/ColumnSeriesItem.as
+++ frameworks/projects/charts/src/mx/charts/series/items/ColumnSeriesItem.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.
 //
 ////////////////////////////////////////////////////////////////////////////////


Added package creating method.

Added package creating method.

--- src/com/epolyakov/linkreportanalyzer/data/LinkReport.as
+++ src/com/epolyakov/linkreportanalyzer/data/LinkReport.as
@@ -161,10 +161,7 @@
 		private function createPackages():void
 		{
 			var tempPackages:Object = {};
-			var topmostPackage:Definition = new Definition();
-			topmostPackage.id = "";
-			topmostPackage.name = "";
-			topmostPackage.isPackage = true;
+			var topmostPackage:Definition = newPackageDefinition("");
 			topmostPackage.isExternal = true;
 			tempPackages[topmostPackage.id] = topmostPackage;

@@ -183,10 +180,7 @@
 					packageDefinition = tempPackages[packageName];
 					if (packageDefinition == null)
 					{
-						packageDefinition = new Definition();
-						packageDefinition.id = packageName;
-						packageDefinition.name = packageName.slice(packageName.lastIndexOf(".") + 1);
-						packageDefinition.isPackage = true;
+						packageDefinition = newPackageDefinition(packageName);
 						packageDefinition.isExternal = true;
 						tempPackages[packageName] = packageDefinition;
 					}
@@ -326,5 +320,14 @@
 			d.isExternal = true;
 			return d;
 		}
+
+		private function newPackageDefinition(packageName:String):Definition
+		{
+			var d:Definition = new Definition();
+			d.id = packageName;
+			d.name = packageName.length > 0 ? packageName.slice(packageName.lastIndexOf(".") + 1) : packageName;
+			d.isPackage = true;
+			return d;
+		}
 	}
 }


Lock hand

Lock hand


add a few more styles

add a few more styles

--- frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/SimpleCSSStyles.as
+++ frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/SimpleCSSStyles.as
@@ -88,6 +88,8 @@
         public var fontFamily:*;
         public var fontSize:*;
         public var color:*;
+        public var fontWeight:*;
+        public var fontStyle:*;
         public var backgroundAlpha:*;
         public var backgroundColor:*;
         public var backgroundImage:*;


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 12539
Author:   mhorn@adobe.com
Date:     2009-12-04T18:26:28.712292Z

Log Message:
-----------
asdoc updates in prep for l10n

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RichText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextSelectionHighlighting.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/events/TextOperationEvent.as</path>

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

--- frameworks/projects/spark/src/spark/components/TextSelectionHighlighting.as
+++ frameworks/projects/spark/src/spark/components/TextSelectionHighlighting.as
@@ -21,6 +21,8 @@
  *  @see spark.components.RichEditableText
  *  @see spark.components.TextArea
  *  @see spark.components.TextInput
+ *
+ *  @includeExample TraceSelectionRanges
  *
  *  @langversion 3.0
  *  @playerversion Flash 10


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

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

 package spark.skins.mobile
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 17668
Author:   hmuller@adobe.com
Date:     2010-09-10T22:52:09.156291Z

Log Message:
-----------
Grid layers are now defined as type GridLayer (a private class), instead of Group.

GridLayer type no longer extends Group, it's now an object that has Group valued root property.   This makes the type's API relatively tiny - only two methods - and makes it possible for GridLayer to encapsulate the Grid itself as a layer (the item renderer layer).

Grid item renders are now consistently typed as IGridItemRenderer, rather than IVisualElement.

DefaultGridItemRenderer is now a UIFTETextField subclass and no longer supports the "textFieldClass" style.  A new UITextField based item renderer has been added, it's UITextFieldGridItemRenderer.

Support for the module implications of embedded fonts is now GridColumn's responsiblity.  GridColumn/itemToRenderer() now wraps item renderer ClassFactory item renders with a local ClassFactory subclass that delegates the newInstance() operation to the grid's moduleFactory.

QE notes:
Doc notes:
Bugs:
Reviewer: Carol, Kevin
Tests run: checkin, mustella cyclone
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/IGridItemRenderer.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/UITextFieldGridItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Grid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/SparkClasses.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/TextFieldGridItemRendererInclude.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/ColumnHeaderBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridLayer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridColumn.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGrid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/IGridItemRendererOwner.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/defaults.css</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DefaultGridItemRenderer.as</path>

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

--- frameworks/projects/spark/src/spark/components/gridClasses/GridLayer.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridLayer.as
@@ -1,6 +1,18 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2010 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.supportClasses
 {
-
+
+import mx.core.IVisualElement;
 import mx.core.mx_internal;

 import spark.components.Grid;
@@ -11,9 +23,76 @@

 [ExcludeClass]

-public class GridLayer extends Group
+/**
+ *  @private
+ *  A simple no-layout container for Grid visual elements.   This class has-a Group, rather than
+ *  being one, to accomodate using the Grid itself as a layer.
+ */
+public class GridLayer
 {
-    public function GridLayer()
+    public function GridLayer(layerRoot:Group = null)
+    {
+        super();
+        _root = (layerRoot) ? layerRoot : new LayerGroup();
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    private var _root:Group;
+
+
+    /**
+     *  The root of the hierarchy that addGridElement() adds visual elements to and
+     *  removeGridElement() removes them from.   To add a GridLayer to another Group,
+     *  add its root: myGroup.add(myGridLayer.root).
+     */
+    public function get root():Group
+    {
+        return _root;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Add the specified element to this GridLayer.  The relative order of elements
+     *  is not guaranteed.
+     */
+    public function addGridElement(elt:IVisualElement):void
+    {
+        if (elt.parent != root)
+            root.addElement(elt);
+    }
+
+    /**
+     *  Remove the specified element from this GridLayer.
+     */
+    public function removeGridElement(elt:IVisualElement):void
+    {
+        if (elt.parent == root)
+            root.removeElement(elt);
+    }
+}
+}
+
+import mx.core.mx_internal;
+
+import spark.components.Grid;
+import spark.components.Group;
+import spark.layouts.supportClasses.LayoutBase;
+
+use namespace mx_internal;
+
+class LayerGroup extends Group
+{
+    public function LayerGroup()
     {
         super();
         layout = new LayoutBase();
@@ -35,7 +114,5 @@
             return;

         super.invalidateSize();
-    }
+    }
 }
-
-}


Revert of commit test.

Revert of commit test.

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

--- test/org/igniterealtime/xiff/util/DateTimeParserTest.as
+++ test/org/igniterealtime/xiff/util/DateTimeParserTest.as
@@ -34,7 +34,7 @@
 		{
 			var date:Date = new Date( 2000, 10, 30, 0, 0 );
 			var dateAsString:String = DateTimeParser.date2string( date );
-			assertEquals( "2000-12-30", dateAsString );
+			assertEquals( "2000-11-30", dateAsString );
 		}
 	}
 }


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

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