Transferred from the Adobe Open Source Subversion Repository

Revision: 1098
Author:   jimurphy@adobe.com
Date:     2008-04-03T21:50:39.896200Z

Log Message:
-----------
Merge 3.0.x -- 362:394, 427:429, 603:608, 644:645, 651:663, 672:676, 755:756, 763:766, 785:790, 812:814, 854:861, 862:866, 866:933,971:1009, 1050:1056 --> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileListItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/treeClasses/DefaultDataDescriptor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/VRule.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AsyncRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/IList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/LayoutManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/StreamingConnectionHandler.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IRepeaterClient.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/videoClasses/VideoError.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/ObjectProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/messages/HTTPRequestMessage.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/resources/Locale.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/ParallelInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/Responder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/errors/MessageSerializationError.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/messages/SOAPMessage.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/IBrowserManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ComponentDescriptor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/FaultEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridColumn.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/IViewCursor.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/effects/Tween.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/DragManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/menuClasses/IMenuItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/MessageResponder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/preloaders/Preloader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ILayoutManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Spacer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/Fault.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/XMLListCollection.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectTargetFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SliderEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AsyncToken.as</path>
<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/framework/src/mx/resources/ResourceManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/ScrollEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/mxml/HTTPService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/videoClasses/CuePointManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/CrossDomainRSLItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/NumericStepperEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/BrowserManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/events/ChannelFaultEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/CursorBookmark.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/IXMLEncoder.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/events/WSDLLoadEvent.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/rpc/src/mx/rpc/soap/LoadEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/ListCollectionView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/FlexClient.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/SubscriptionInfo.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/DescribeTypeCache.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/logging/LogLogger.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/MessageAgent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/build_framework.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/HeaderEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/build.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridDragProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/preloaders/DownloadProgressBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/treeClasses/ITreeDataDescriptor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/remoting/RemoteObject.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListItemDragProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/ChannelSet.as</path>

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

--- frameworks/projects/framework/src/mx/collections/IViewCursor.as
+++ frameworks/projects/framework/src/mx/collections/IViewCursor.as
@@ -139,19 +139,18 @@
      *  in a non-unique index, use the findFirst() or
      *  findLast() method.

      *
-     *
The values in the parameter must be configured as name-value pairs,
-     *  as in an associative array (or be the actual object to search for).
-     *  The values of the names specified must match properties
-     *  specified in the sort.
-     *  For example, if properties x, y, and
+     *
If the data is not local and an asynchronous operation must be
+     *  performed, an ItemPendingError is thrown.

+     *
+     *  @param values The search criteria. The values in the Object must be configured as name-value pairs,
+     *  as in an associative array (or be the actual object to search for). The values of the names specified must match properties
+     *  specified in the sort. For example, if properties x, y, and
      *  z are in the current sort, the values specified should be
-     *  {x: x-value, y: y-value, z: z-value}.

-     *
-     *
When all of the data is local this method returns
+     *  {x: x-value, y: y-value, z: z-value}.
+     *
+     *  @return When all of the data is local this method returns
      *  true if the item can be found and false
-     *  otherwise.
-     *  If the data is not local and an asynchronous operation must be
-     *  performed, an ItemPendingError is thrown.

+     *  otherwise.
      *
      *  @see #findFirst()
      *  @see #findLast()
@@ -176,20 +175,19 @@
      *  in a non-unique index, use findAny(), which may be
      *  a little faster than the findFirst() method.

      *
-     *
The values specified must be configured as name-value pairs,
-     *  as in an associative array (or be the actual object to search for).
-     *  The values of the names specified must match properties
-     *  specified in the sort.
-     *  For example, if properties x, y, and
+     *
If the data is not local and an asynchronous operation must be
+     *  performed, an ItemPendingError is thrown.

+     *
+     *  @param values The search criteria. The values in the Object must be configured as name-value pairs,
+     *  as in an associative array (or be the actual object to search for). The values of the names specified must match properties
+     *  specified in the sort. For example, if properties x, y, and
      *  z are in the current sort, the values specified should be
-     *  {x: x-value, y: y-value, z: z-value}.

-     *
-     *
When all of the data is local this method returns
+     *  {x: x-value, y: y-value, z: z-value}.
+     *
+     *  @return When all of the data is local this method returns
      *  true if the item can be found and false
-     *  otherwise.
-     *  If the data is not local and an asynchronous operation must be
-     *  performed, an ItemPendingError is thrown.

-     *
+     *  otherwise.
+     *
      *  @see #findAny()
      *  @see #findLast()
      *  @see mx.collections.errors.ItemPendingError
@@ -213,20 +211,19 @@
      *  in a non-unique index, use the findAny() method, which
      *  may be a little faster.

      *
-     *
The values specified must be configured as name-value pairs,
-     *  as in an associative array (or be the actual object to search for).
-     *  The values of the names specified must match properties
-     *  specified in the sort.
-     *  For example, if properties x, y, and
+     *
If the data is not local and an asynchronous operation must be
+     *  performed, an ItemPendingError is thrown.

+     *
+     *  @param values The search criteria. The values in the Object must be configured as name-value pairs,
+     *  as in an associative array (or be the actual object to search for). The values of the names specified must match properties
+     *  specified in the sort. For example, if properties x, y, and
      *  z are in the current sort, the values specified should be
-     *  {x: x-value, y: y-value, z: z-value}.

-     *
-     *
When all of the data is local this method returns
+     *  {x: x-value, y: y-value, z: z-value}.
+     *
+     *  @return When all of the data is local this method returns
      *  true if the item can be found and false
-     *  otherwise.
-     *  If the data is not local and an asynchronous operation must be
-     *  performed, an ItemPendingError is thrown.

-     *
+     *  otherwise.
+     *
      *  @see #findAny()
      *  @see #findFirst()
      *  @see mx.collections.errors.ItemPendingError
@@ -239,6 +236,8 @@
      *  the insertion occurs at the end of the view.
      *  If the cursor is beforeFirst on a non-empty view,
      *  an error is thrown.
+     *
+     *  @param item The item to insert before the cursor's current position.
      */
     function insert(item:Object):void;

@@ -319,12 +318,13 @@
      *  the cursor moves to the next item. If you remove the last item, the
      *  cursor is at the AFTER_LAST bookmark.
      *
-     *
      *
If the item after the removed item is not local and an asynchronous
      *  operation must be performed, an ItemPendingError is thrown.
      *  See the ItemPendingError documentation and the collections
      *  documentation  for more information on using the ItemPendingError.

      *
+     *  @return The item that was removed.
+     *
      *  @see mx.collections.errors.ItemPendingError
      */
     function remove():Object;


Transferred from the Adobe Open Source Subversion Repository

Revision: 15173
Author:   cframpto@adobe.com
Date:     2010-03-31T18:00:24.547225Z

Log Message:
-----------
Merge 15171 SpriteVisualElement change from 4.x to trunk.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>

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

--- frameworks/projects/spark/src/spark/core/SpriteVisualElement.as
+++ frameworks/projects/spark/src/spark/core/SpriteVisualElement.as
@@ -34,6 +34,7 @@
 import mx.core.ILayoutDirectionElement;
 import mx.core.IMXMLObject;
 import mx.core.IUIComponent;
+import mx.core.IUITextField;
 import mx.core.IVisualElement;
 import mx.core.LayoutDirection;
 import mx.core.mx_internal;
@@ -2103,6 +2104,8 @@
         // concept of nestLevel for SVE
         if (child is ILayoutManagerClient)
             ILayoutManagerClient(child).nestLevel = 2;
+        else if (child is IUITextField)
+            IUITextField(child).nestLevel = 2;
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 6137
Author:   egeorgie@adobe.com
Date:     2009-04-10T23:58:54.405311Z

Log Message:
-----------
Fix bugs: http://bugs.adobe.com/jira/browse/SDK-20513 distributeHeight() method should be protected or private for VerticalLayout;
http://bugs.adobe.com/jira/browse/SDK-20514 distributeWidth() method should be private or protected for HorizontalLayout;
http://bugs.adobe.com/jira/browse/SDK-20460 typo in Flex 4 language reference for requestedRowCount property of VerticalLayout;
http://bugs.adobe.com/jira/browse/SDK-18713 Layouts are missing enum metadata for alignment

Fix: update the layouts, add initial padding support.

QE Notes: None
Doc Notes: None
Bugs: SDK-20513, SDK-20514, SDK-20460, SDK-18713
Reviewer: Hans
tests: checkintests, mustella (layout, group, datagroup)

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/supportClasses/LayoutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/supportClasses/LinearLayoutVector.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/VerticalLayout.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
+++ frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
@@ -11,17 +11,17 @@

 package spark.layout
 {
-import flash.display.DisplayObject;
+import flash.display.DisplayObject;
+import flash.events.Event;
+import flash.events.EventDispatcher;
 import flash.geom.Point;
 import flash.geom.Rectangle;
-import flash.events.Event;
-import flash.events.EventDispatcher;
+
+import mx.containers.utilityClasses.Flex;
+import mx.core.ILayoutElement;
+import mx.events.PropertyChangeEvent;

 import spark.components.supportClasses.GroupBase;
-import mx.core.ILayoutElement;
-
-import mx.containers.utilityClasses.Flex;
-import mx.events.PropertyChangeEvent;
 import spark.layout.supportClasses.LayoutBase;
 import spark.layout.supportClasses.LayoutElementHelper;
 import spark.layout.supportClasses.LinearLayoutVector;
@@ -168,21 +168,12 @@
     }

     /**
+     *  @private
+     *
      *  Sets the columnCount property and dispatches
      *  a PropertyChangeEvent.
-     *
-     *  This method is intended to be used by subclass updateDisplayList()
-     *  methods to sync the columnCount property with the actual number
-     *  of columns in view.
-     *
-     *  @param value The number of columns in view.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-     */
-    protected function setColumnCount(value:int):void
+     */
+    private function setColumnCount(value:int):void
     {
         if (_columnCount == value)
             return;
@@ -191,6 +182,149 @@
         dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "columnCount", oldValue, value));
     }

+    //----------------------------------
+    //  paddingLeft
+    //----------------------------------
+
+    private var _paddingLeft:Number = 0;
+
+    [Inspectable(category="General")]
+
+    /**
+     *  Number of pixels between the container's left border
+     *  and the left edge of the first layout element.
+     *
+     *  @default 0
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function get paddingLeft():Number
+    {
+        return _paddingLeft;
+    }
+
+    /**
+     *  @private
+     */
+    public function set paddingLeft(value:Number):void
+    {
+        if (_paddingLeft == value)
+            return;
+
+        _paddingLeft = value;
+        invalidateTargetSizeAndDisplayList();
+    }
+
+    //----------------------------------
+    //  paddingRight
+    //----------------------------------
+
+    private var _paddingRight:Number = 0;
+
+    [Inspectable(category="General")]
+
+    /**
+     *  Number of pixels between the container's right border
+     *  and the right edge of the last layout element.
+     *
+     *  @default 0
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function get paddingRight():Number
+    {
+        return _paddingRight;
+    }
+
+    /**
+     *  @private
+     */
+    public function set paddingRight(value:Number):void
+    {
+        if (_paddingRight == value)
+            return;
+
+        _paddingRight = value;
+        invalidateTargetSizeAndDisplayList();
+    }
+
+    //----------------------------------
+    //  paddingTop
+    //----------------------------------
+
+    private var _paddingTop:Number = 0;
+
+    [Inspectable(category="General")]
+
+    /**
+     *  All layout elements will have at least this much space
+     *  above them.
+     *
+     *  @default 0
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function get paddingTop():Number
+    {
+        return _paddingTop;
+    }
+
+    /**
+     *  @private
+     */
+    public function set paddingTop(value:Number):void
+    {
+        if (_paddingTop == value)
+            return;
+
+        _paddingTop = value;
+        invalidateTargetSizeAndDisplayList();
+    }
+
+    //----------------------------------
+    //  paddingBottom
+    //----------------------------------
+
+    private var _paddingBottom:Number = 0;
+
+    [Inspectable(category="General")]
+
+    /**
+     *  All layout elements will have at least this much space
+     *  below them.
+     *
+     *  @default 0
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function get paddingBottom():Number
+    {
+        return _paddingBottom;
+    }
+
+    /**
+     *  @private
+     */
+    public function set paddingBottom(value:Number):void
+    {
+        if (_paddingBottom == value)
+            return;
+
+        _paddingBottom = value;
+        invalidateTargetSizeAndDisplayList();
+    }

     //----------------------------------
     //  requestedColumnCount
@@ -204,7 +338,7 @@
      *  The measured size of this layout will be big enough to display
      *  the first requestedColumnCount layout elements.
      *
-     *  If requesteColumnCount is -1, then the measured
+     *  If requestedColumnCount is -1, then the measured
      *  size will be big enough for all of the layout elements.
      *
      *  This property implies the layout target's measuredWidth.
@@ -445,26 +579,19 @@
     }

     /**
+     *  @private
+     *
      *  Sets the firstIndexInView and lastIndexInView
      *  properties and dispatches a "indexInViewChanged"
      *  event.
      *
-     *  This method is intended to be used by subclasses that
-     *  override updateDisplayList() to sync the first and
-     *  last indexInView properties with the current display.
-     *
      *  @param firstIndex The new value for firstIndexInView.
      *  @param lastIndex The new value for lastIndexInView.
      *
      *  @see firstIndexInView
      *  @see lastIndexInview
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-     */
-    protected function setIndexInView(firstIndex:int, lastIndex:int):void
+     */
+    private function setIndexInView(firstIndex:int, lastIndex:int):void
     {
         if ((_firstIndexInView == firstIndex) && (_lastIndexInView == lastIndex))
             return;
@@ -555,6 +682,8 @@
     }

     /**
+     *  @private
+     *
      *  Binary search for the first layout element that contains y.
      *
      *  This function considers both the element's actual bounds and
@@ -564,8 +693,6 @@
      *  This function is intended for variable height elements.
      *
      *  Returns the index of the element that contains x, or -1.
-     *
-     * @private
      */
     private static function findIndexAt(x:Number, gap:int, g:GroupBase, i0:int, i1:int):int
     {
@@ -583,14 +710,14 @@
             return findIndexAt(x, gap, g, Math.min(index+1, i1), i1);
     }

-   /**
-    *  Returns the index of the first non-null includeInLayout element,
-    *  beginning with the element at index i.
-    *
-    *  Returns -1 if no such element can be found.
-    *
-    *  @private
-    */
+    /**
+     *  @private
+     *
+     *  Returns the index of the first non-null includeInLayout element,
+     *  beginning with the element at index i.
+     *
+     *  Returns -1 if no such element can be found.
+     */
     private static function findLayoutElementIndex(g:GroupBase, i:int, dir:int):int
     {
         var n:int = g.numElements;
@@ -606,17 +733,14 @@
         return -1;
     }

-  /**
-    *  Updates the first,lastIndexInView properties per the new
-    *  scroll position.
-    *
-    *  @see setIndexInView
-    *
-    *  @langversion 3.0
-    *  @playerversion Flash 10
-    *  @playerversion AIR 1.5
-    *  @productversion Flex 4
-    */
+    /**
+     *  @private
+     *
+     *  Updates the first,lastIndexInView properties per the new
+     *  scroll position.
+     *
+     *  @see setIndexInView
+     */
     override protected function scrollPositionChanged():void
     {
         super.scrollPositionChanged();
@@ -702,10 +826,10 @@
     }

     /**
+     *  @private
+     *
      *  If the element at index i is non-null and includeInLayout,
      *  then return it's actual bounds, otherwise return null.
-     *
-     *  @private
      */
     private function layoutElementBounds(g:GroupBase, i:int):Rectangle
     {
@@ -725,6 +849,8 @@
     }

     /**
+     *  @private
+     *
      *  Returns the actual position/size Rectangle of the first partially
      *  visible or not-visible, non-null includeInLayout element, beginning
      *  with the element at index i, searching in direction dir (dir must
@@ -732,15 +858,22 @@
      *  guaranteed to be non-null.
      *
      *  Returns null if no such element can be found.
-     *
-     *  @private
      */
     private function findLayoutElementBounds(g:GroupBase, i:int, dir:int, r:Rectangle):Rectangle
     {
         var n:int = g.numElements;

         if (inView(i) >= 1)
-            i = Math.max(0, Math.min(n - 1, i + dir));
+        {
+            // Special case: if we hit the first/last element,
+            // then return the area of the padding so that we
+            // can scroll all the way to the start/end.
+            i += dir;
+            if (i < 0)
+                return new Rectangle(0, 0, paddingLeft, 0);
+            if (i >= n)
+                return new Rectangle(layoutElementBounds(g, n-1).right, 0, paddingRight, 0);
+        }

         while((i >= 0) && (i < n))
         {
@@ -779,6 +912,7 @@

     /**
      *  @private
+     *
      *  Compute exact values for measuredWidth,Height and  measuredMinWidth,Height.
      *
      *  If requestedColumnCount is not -1, measure as many layout elements,
@@ -829,17 +963,21 @@
             preferredWidth += hgap;
             minWidth += hgap;
         }
-
-        layoutTarget.measuredHeight = preferredHeight;
-        layoutTarget.measuredWidth = preferredWidth;
-        layoutTarget.measuredMinHeight = minHeight;
-        layoutTarget.measuredMinWidth  = minWidth;
+
+        var hPadding:Number = paddingLeft + paddingRight;
+        var vPadding:Number = paddingTop + paddingBottom;
+
+        layoutTarget.measuredHeight = preferredHeight + vPadding;
+        layoutTarget.measuredWidth = preferredWidth + hPadding;
+        layoutTarget.measuredMinHeight = minHeight + vPadding;
+        layoutTarget.measuredMinWidth  = minWidth + hPadding;
     }

     private var llv:LinearLayoutVector = new LinearLayoutVector(LinearLayoutVector.HORIZONTAL);

     /**
      *  @private
+     *
      *  Syncs the LinearLayoutVector llv with typicalLayoutElement and
      *  the target's numElements.  Calling this function accounts
      *  for the possibility that the typicalLayoutElement has changed, or
@@ -858,6 +996,7 @@
         if (layoutTarget)
             llv.length = layoutTarget.numElements;
         llv.gap = gap;
+        llv.majorAxisOffset = paddingLeft;
      }

     /**
@@ -879,7 +1018,8 @@
      }

     /**
-     *  @private
+     *  @private
+     *
      *  Compute potentially approximate values for measuredWidth,Height and
      *  measuredMinWidth,Height.
      *
@@ -896,10 +1036,13 @@
         var eltCount:uint = layoutTarget.numElements;
         var measuredEltCount:int = (requestedColumnCount != -1) ? requestedColumnCount : eltCount;

+        var hPadding:Number = paddingLeft + paddingRight;
+        var vPadding:Number = paddingTop + paddingBottom;
+
         if (measuredEltCount <= 0)
         {
-            layoutTarget.measuredWidth = layoutTarget.measuredHeight = 0;
-            layoutTarget.measuredMinWidth = layoutTarget.measuredMinHeight = 0;
+            layoutTarget.measuredWidth = layoutTarget.measuredMinWidth = hPadding;
+            layoutTarget.measuredHeight = layoutTarget.measuredMinHeight = vPadding;
             return;
         }

@@ -913,23 +1056,26 @@
             {
                 oldLength = llv.length;
                 llv.length = measuredEltCount;
-            }
-            layoutTarget.measuredWidth = llv.end(measuredEltCount - 1);
+            }
+            // paddingLeft is already taken into account as the majorAxisOffset of the llv
+            layoutTarget.measuredWidth = llv.end(measuredEltCount - 1) + paddingRight;
             if (oldLength != -1)
                 llv.length = oldLength;
         }
         else
         {
             var hgap:Number = (measuredEltCount > 1) ? (measuredEltCount - 1) * gap : 0;
-            layoutTarget.measuredWidth = (measuredEltCount * columnWidth) + hgap;
-        }
-        layoutTarget.measuredHeight = llv.minorSize;
-
+            layoutTarget.measuredWidth = (measuredEltCount * columnWidth) + hgap + hPadding;
+        }
+        layoutTarget.measuredHeight = llv.minorSize + vPadding;
+
         layoutTarget.measuredMinWidth = layoutTarget.measuredWidth;
         layoutTarget.measuredMinHeight = layoutTarget.measuredHeight;
     }

     /**
+     *  @private
+     *
      *  If requestedColumnCount is specified then as many layout elements
      *  or "columns" are measured, starting with element 0, otherwise all of the
      *  layout elements are measured.
@@ -964,25 +1110,20 @@
      *
      *  As before the difference is due to the fact that flexible items are only
      *  guaranteed their minHeight.
-     *
-    *
-    *  @langversion 3.0
-    *  @playerversion Flash 10
-    *  @playerversion AIR 1.5
-    *  @productversion Flex 4
-    */
+     */
     override public function measure():void
     {
         var layoutTarget:GroupBase = target;
         if (!layoutTarget)
             return;

+        var hPadding:Number = paddingLeft + paddingRight;
+        var vPadding:Number = paddingTop + paddingBottom;
+
         if (layoutTarget.numElements == 0)
         {
-            layoutTarget.measuredWidth = 0;
-            layoutTarget.measuredHeight = 0;
-            layoutTarget.measuredMinWidth = 0;
-            layoutTarget.measuredMinHeight = 0;
+            layoutTarget.measuredWidth = layoutTarget.measuredMinWidth = hPadding;
+            layoutTarget.measuredHeight = layoutTarget.measuredMinHeight = vPadding;
         }
         else if (useVirtualLayout)
             measureVirtual(layoutTarget);
@@ -990,7 +1131,11 @@
             measureReal(layoutTarget);
     }

-    //  - virtual layout only -
+    /**
+     *  @private
+     *
+     *  Used only for virtual layout.
+     */
     private function calculateElementHeight(elt:ILayoutElement, targetHeight:Number, containerHeight:Number):Number
     {
        // If percentHeight is specified then the element's height is the percentage
@@ -1011,7 +1156,11 @@
        return NaN; // not constrained
     }

-    //  - virtual layout only -
+    /**
+     *  @private
+     *
+     *  Used only for virtual layout.
+     */
     private function calculateElementY(elt:ILayoutElement, eltHeight:Number, containerHeight:Number):Number
     {
        switch(verticalAlign)
@@ -1026,6 +1175,7 @@

     /**
      *  @private
+     *
      *  Update the layout of the virtualized elements that overlap
      *  the scrollRect's horizontal extent.
      *
@@ -1070,7 +1220,7 @@
     {
         var layoutTarget:GroupBase = target;
         var eltCount:int = layoutTarget.numElements;
-        var targetHeight:Number = layoutTarget.height;
+        var targetHeight:Number = Math.max(0, layoutTarget.height - paddingTop - paddingBottom);
         var minVisibleX:Number = layoutTarget.horizontalScrollPosition;
         var maxVisibleX:Number = minVisibleX + layoutTarget.width;

@@ -1087,6 +1237,7 @@
         var containerHeight:Number = Math.max(contentHeight, targetHeight);
         var x:Number = llv.start(startIndex);
         var index:int = startIndex;
+        var y0:Number = paddingTop;

         // First pass: compute element x,y,width,height based on
         // current contentHeight; cache computed widths/heights in llv.
@@ -1098,7 +1249,7 @@
             elt.setLayoutBoundsSize(w, h);
             w = elt.getLayoutBoundsWidth();
             h = elt.getLayoutBoundsHeight();
-            var y:Number = calculateElementY(elt, h, containerHeight);
+            var y:Number = y0 + calculateElementY(elt, h, containerHeight);
             elt.setLayoutBoundsPosition(x, y);
             llv.cacheDimensions(index, elt);
             x += w + gap;
@@ -1119,7 +1270,7 @@
                     h = calculateElementHeight(elt, targetHeight, containerHeight); // can be NaN
                     elt.setLayoutBoundsSize(elt.getLayoutBoundsWidth(), h);
                     h = elt.getLayoutBoundsHeight();
-                    y = calculateElementY(elt, h, containerHeight);
+                    y = y0 + calculateElementY(elt, h, containerHeight);
                     elt.setLayoutBoundsPosition(elt.getLayoutBoundsX(), y);
                 }
              }
@@ -1127,14 +1278,17 @@

         setColumnCount(index - startIndex);
         setIndexInView(startIndex, endIndex);
-        layoutTarget.setContentSize(llv.end(llv.length - 1), contentHeight);
-    }
-
+        layoutTarget.setContentSize(llv.end(llv.length - 1) + paddingRight, contentHeight + paddingTop + paddingBottom);
+    }
+
+    /**
+     *  @private
+     */
     private function updateDisplayListReal():void
     {
         var layoutTarget:GroupBase = target;
-        var targetWidth:Number = layoutTarget.width;
-        var targetHeight:Number = layoutTarget.height;
+        var targetWidth:Number = Math.max(0, layoutTarget.width - paddingLeft - paddingRight);
+        var targetHeight:Number = Math.max(0, layoutTarget.height - paddingTop - paddingBottom);

         var layoutElement:ILayoutElement;
         var count:uint = layoutTarget.numElements;
@@ -1194,9 +1348,10 @@
         // Finally, position the LayoutElements and find the first/last
         // visible indices, the content size, and the number of
         // visible elements.
-        var x:Number = 0;
-        var maxX:Number = 0;
-        var maxY:Number = 0;
+        var x:Number = paddingLeft;
+        var y0:Number = paddingTop;
+        var maxX:Number = paddingLeft;
+        var maxY:Number = paddingTop;
         var firstColInView:int = -1;
         var lastColInView:int = -1;

@@ -1207,7 +1362,7 @@
                 continue;

             // Set the layout element's position
-            var y:Number = (containerHeight - layoutElement.getLayoutBoundsHeight()) * vAlign;
+            var y:Number = y0 + (containerHeight - layoutElement.getLayoutBoundsHeight()) * vAlign;
             // In case we have VerticalAlign.MIDDLE we have to round
             if (vAlign == 0.5)
                 y = Math.round(y);
@@ -1233,11 +1388,13 @@

         setColumnCount(visibleColumns);
         setIndexInView(firstColInView, lastColInView);
-        layoutTarget.setContentSize(maxX, maxY);
-    }
-
-
-    /**
+        layoutTarget.setContentSize(maxX + paddingRight, maxY + paddingBottom);
+    }
+
+
+    /**
+     *  @private
+     *
      *  This function sets the width of each child
      *  so that the widths add up to width.
      *  Each child is set to its preferred width
@@ -1248,15 +1405,10 @@
      *
      *  The return value is any extra space that's left over
      *  after growing all children to their maxWidth.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-     */
-    public function distributeWidth(width:Number,
-                                    height:Number,
-                                    restrictedHeight:Number):Number
+     */
+    private function distributeWidth(width:Number,
+                                     height:Number,
+                                     restrictedHeight:Number):Number
     {
         var spaceToDistribute:Number = width;
         var totalPercentWidth:Number = 0;
@@ -1328,6 +1480,9 @@
         return spaceToDistribute;
     }

+    /**
+     *  @private
+     */
     override public function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
     {
         super.updateDisplayList(unscaledWidth, unscaledHeight);
@@ -1341,7 +1496,7 @@
             setColumnCount(0);
             setIndexInView(-1, -1);
             if (layoutTarget.numElements == 0)
-                layoutTarget.setContentSize(0, 0);
+                layoutTarget.setContentSize(paddingLeft + paddingRight, paddingTop + paddingBottom);
             return;
         }


Transferred from the Adobe Open Source Subversion Repository

Revision: 7531
Author:   jimurphy@adobe.com
Date:     2009-06-03T19:20:35.382331Z

Log Message:
-----------
Merge 3.x revisions 7044,7172,7175,7177,7197,7475,7477,7479,7488,7495,7499 -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/Channel.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/messages/CommandMessage.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/VideoDisplay.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ViewStack.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/config/ServerConfig.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/MessageAgent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/ChannelSet.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ContainerRawChildrenList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/Application.java</path>

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

--- frameworks/projects/rpc/src/mx/messaging/Channel.as
+++ frameworks/projects/rpc/src/mx/messaging/Channel.as
@@ -113,6 +113,7 @@
     private static const FALSE:String = "false";
     private static const RECORD_MESSAGE_TIMES:String = "record-message-times";
     private static const RECORD_MESSAGE_SIZES:String = "record-message-sizes";
+    private static const REQUEST_TIMEOUT_SECONDS:String = "request-timeout-seconds";
     private static const SERIALIZATION:String = "serialization";
     private static const TRUE:String = "true";

@@ -727,6 +728,8 @@
                 _recordMessageTimes = props[RECORD_MESSAGE_TIMES].toString() == TRUE;
             if (props[RECORD_MESSAGE_SIZES].length() != 0)
                 _recordMessageSizes = props[RECORD_MESSAGE_SIZES].toString()== TRUE;
+            if (props[REQUEST_TIMEOUT_SECONDS].length() != 0)
+                requestTimeout = props[REQUEST_TIMEOUT_SECONDS].toString();
             var serializationProps:XMLList = props[SERIALIZATION];
             if (serializationProps.length() != 0 && serializationProps[ENABLE_SMALL_MESSAGES].toString()== FALSE)
            		    enableSmallMessages = false;
@@ -1017,14 +1020,13 @@

     /**
      *  @private
-     *  This is a hook for ChannelSet (not a MessageAgent) to send requests for
-     *  clustered endpoints for a clustered destination and provide its own
-     *  custom responder, rather than relying on the generic responders used by
-     *  Channel implemenations.
+     *  This is a hook for ChannelSet (not a MessageAgent) to send internal messages.
+     *  This is used for fetching info on clustered endpoints for a clustered destination
+     *  as well as for optional heartbeats, etc.
      *
-     *  @param msgResp The message responder to use for the cluster request response.
-     */
-	mx_internal function sendClusterRequest(msgResp:MessageResponder):void
+     *  @param msgResp The message responder to use for the internal message.
+     */
+    mx_internal function sendInternalMessage(msgResp:MessageResponder):void
 	{
 	    internalSend(msgResp);
 	}


Transferred from the Adobe Open Source Subversion Repository

Revision: 7163
Author:   aharui@adobe.com
Date:     2009-05-21T02:19:55.813792Z

Log Message:
-----------
Initial checkin of frame 1 cleanup.  In an RSL linkage, more classes will now come from the RSL because they are no longer needed in frame 1, and the size of the application SWF will be smaller.

QE Notes: None
Doc Notes: Maybe.  All new classes should be undocumented, but it might be worth checking that and any changes to interfaces
Bugs:
Reviewer: darrell
tests: checkintests mustella/MarshallPlan

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileListItemRenderer.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/ActiveWindowManager.as</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/LayoutManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/RSLEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Menu.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses/MarshalPopUpData.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IEmbeddedFontRegistry.as</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/controls/ColorPicker.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/EventProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextFormat.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/flex/tools/dependencychecker/FrameworkSwcDependencyRules.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/DragManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridColumn.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/EmbeddedFontRegistry.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/EmbeddedFont.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/PreLink.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/preloaders/Preloader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/resources/ResourceManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ResourceModuleRSLItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/FrameworkClasses.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ISWFBridgeProvider.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses/FocusManagerMarshalMixin.as</path>
<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/framework/src/mx/resources/ResourceManager.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/IMarshalSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/EventListenerRequest.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses/ToolTipManagerMarshalMixin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/frameworkSwcExceptionsList.txt</path>
<path kind="file" action="M">/flex/sdk/trunk/mustella/MustellaResultsParser.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Alert.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/ChildManager.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/MarshallPlan.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManagerGlobals.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/SWFBridgeGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/alertClasses/AlertForm.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/treeClasses/TreeItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ISystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework_textLayout/src/mx/core/UITLFTextField.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses/DragManagerMarshalMixin.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/SWFLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/MenuBar.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/Request.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSStyleDeclaration.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/events/FlexEvent.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/IActiveWindowManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/SimpleText.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses/PopUpManagerMarshalMixin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/messaging/config/LoaderConfig.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/IFocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/preloaders/DownloadProgressBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ScrollControlBase.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ISystemManagerChildManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridItemRenderer.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses/CursorManagerMarshalMixin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/PopUpData.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ISWFBridgeGroup.as</path>

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

--- frameworks/projects/framework/src/mx/managers/IActiveWindowManager.as
+++ frameworks/projects/framework/src/mx/managers/IActiveWindowManager.as
@@ -0,0 +1,92 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2005-2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.managers
+{
+
+import mx.managers.IFocusManagerContainer;
+
+[ExcludeClass]
+
+/**
+ *  Interface for subsystem that manages which focus manager is active
+ *  when there is more than one IFocusManagerContainer on screen.
+ */
+public interface IActiveWindowManager
+{
+	//--------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  numModalWindows
+    //----------------------------------
+
+	/**
+	 *  The number of modal windows.
+	 *
+	 *
Modal windows don't allow
+	 *  clicking in another windows which would normally
+	 *  activate the FocusManager in that window.  The PopUpManager
+	 *  modifies this count as it creates and destroy modal windows.

+	 */
+	function get numModalWindows():int;
+
+	/**
+	 *  @private
+	 */
+	function set numModalWindows(value:int):void;
+
+
+	//--------------------------------------------------------------------------
+	//
+	//  Methods
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Registers a top-level window containing a FocusManager.
+	 *  Called by the FocusManager, generally not called by application code.
+	 *
+	 *  @param f The top-level window in the application.
+	 */
+	function addFocusManager(f:IFocusManagerContainer):void;
+
+	/**
+	 *  Unregisters a top-level window containing a FocusManager.
+	 *  Called by the FocusManager, generally not called by application code.
+	 *
+	 *  @param f The top-level window in the application.
+	 */
+	function removeFocusManager(f:IFocusManagerContainer):void;
+
+	/**
+	 *  Activates the FocusManager in an IFocusManagerContainer.
+	 *
+	 *  @param f IFocusManagerContainer the top-level window
+	 *  whose FocusManager should be activated.
+	 */
+	function activate(f:Object):void;
+
+	/**
+	 *  Deactivates the FocusManager in an IFocusManagerContainer, and activate
+	 *  the FocusManager of the next highest window that is an IFocusManagerContainer.
+	 *
+	 *  @param f IFocusManagerContainer the top-level window
+	 *  whose FocusManager should be deactivated.
+	 */
+	function deactivate(f:Object):void;
+
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 22608
Author:   smgilson@adobe.com
Date:     2011-09-16T17:19:03.985309Z

Log Message:
-----------
- Add ViewMenu example, add image to ViewMenu.as

- fix typos in ASDoc comments

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

Modified Paths:
--------------
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/asdoc/en_US/spark/components/examples/ViewMenuExampleHome.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/View.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/asdoc/en_US/spark/components/examples/ViewMenuExample.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/ViewMenuItem.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/BusyIndicator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/CalloutButton.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/ViewMenu.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SplitViewNavigator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/ActionBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/Callout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/ToggleSwitch.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/ViewMenu.as
+++ frameworks/projects/mobilecomponents/src/spark/components/ViewMenu.as
@@ -68,7 +68,7 @@
  *  You can also use the ViewNavigatorApplicationBase.viewMenuOpen property
  *  to open the menu programmatically.
  *
- *
The following images shows a ViewMenu at the bottom of the screen
+ *
The following image shows a ViewMenu at the bottom of the screen
  *  with five menu items:

  *
  *

@@ -107,6 +107,9 @@
  *  @see spark.layouts.ViewMenuLayout
  *  @see spark.components.supportClasses.ViewNavigatorApplicationBase
  *  @see spark.skins.mobile.ViewMenuSkin
+ *
+ *  @includeExample examples/ViewMenuExampleHome.mxml -noswf
+ *  @includeExample examples/ViewMenuExample.mxml -noswf
  *
  *  @langversion 3.0
  *  @playerversion AIR 2.5


Transferred from the Adobe Open Source Subversion Repository

Revision: 19321
Author:   mhorn@adobe.com
Date:     2010-12-13T19:48:59.851835Z

Log Message:
-----------
ASDoc updates

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/ILayoutElement.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/supportClasses/CollatorBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/Skin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/StringTools.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/mediaClasses/DynamicStreamingVideoSource.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/Skin.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/Skin.as
@@ -12,7 +12,7 @@
 // AdobePatentID="B976"

 package spark.components.supportClasses
-{
+{

 import flash.display.DisplayObject;

@@ -74,10 +74,10 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-	public function Skin()
-	{
-		super();
-	}
+    public function Skin()
+    {
+        super();
+    }

     /**
      *  List of id's of items that should be excluded when rendering the focus ring.
@@ -99,69 +99,73 @@
     /**
      *  Called before a bitmap capture is made for this skin. The default implementation
      *  excludes items in the focusSkinExclusions array.
+     *
+     *   @return true if the component must be redrawn. Otherwise, false.
      */
     public function beginHighlightBitmapCapture():Boolean
     {
-		var exclusions:Array = focusSkinExclusions;
+        var exclusions:Array = focusSkinExclusions;
         if (!exclusions)
         {
             if (("hostComponent" in this) && this["hostComponent"] is SkinnableComponent)
                 exclusions = SkinnableComponent(this["hostComponent"]).suggestedFocusSkinExclusions;
         }
-		var exclusionCount:Number = (exclusions == null) ? 0 : exclusions.length;
-
-		/* we'll store off the previous alpha of the exclusions so we
-		can restore them when we're done
-		*/
-		exclusionAlphaValues = [];
-		var needRedraw:Boolean = false;
-
-		for (var i:int = 0; i < exclusionCount; i++)
-		{
+        var exclusionCount:Number = (exclusions == null) ? 0 : exclusions.length;
+
+        /* we'll store off the previous alpha of the exclusions so we
+        can restore them when we're done
+        */
+        exclusionAlphaValues = [];
+        var needRedraw:Boolean = false;
+
+        for (var i:int = 0; i < exclusionCount; i++)
+        {
             // skip if the part isn't there
             if (!(exclusions[i] in this))
                 continue;

-			var ex:Object = this[exclusions[i]];
-			/* we're going to go under the covers here to try and modify alpha with the least
-			amount of disruption to the component.  For UIComponents, we go to Sprite's alpha property;
-			*/
-			if (ex is UIComponent)
-			{
+            var ex:Object = this[exclusions[i]];
+            /* we're going to go under the covers here to try and modify alpha with the least
+            amount of disruption to the component.  For UIComponents, we go to Sprite's alpha property;
+            */
+            if (ex is UIComponent)
+            {
                 exclusionAlphaValues[i] = (ex as UIComponent).$alpha;
-				(ex as UIComponent).$alpha = 0;
-			}
-			else if (ex is DisplayObject)
-			{
+                (ex as UIComponent).$alpha = 0;
+            }
+            else if (ex is DisplayObject)
+            {
                 exclusionAlphaValues[i] = (ex as DisplayObject).alpha;
-				(ex as DisplayObject).alpha = 0;
-			}
-			else if (ex is IGraphicElement)
-			{
-				/* if we're lucky, the IGE has its own DisplayObject, and we can just trip its alpha.
-				If not, we're going to have to set it to 0, and force a redraw of the whole component */
-				var ge:IGraphicElement = ex as IGraphicElement;
-				if (ge.displayObjectSharingMode == DisplayObjectSharingMode.OWNS_UNSHARED_OBJECT)
-				{
+                (ex as DisplayObject).alpha = 0;
+            }
+            else if (ex is IGraphicElement)
+            {
+                /* if we're lucky, the IGE has its own DisplayObject, and we can just trip its alpha.
+                If not, we're going to have to set it to 0, and force a redraw of the whole component */
+                var ge:IGraphicElement = ex as IGraphicElement;
+                if (ge.displayObjectSharingMode == DisplayObjectSharingMode.OWNS_UNSHARED_OBJECT)
+                {
                     exclusionAlphaValues[i] = ge.displayObject.alpha;
-					ge.displayObject.alpha = 0;
-				}
-				else
-				{
+                    ge.displayObject.alpha = 0;
+                }
+                else
+                {
                     exclusionAlphaValues[i] = ge.alpha;
-					ge.alpha = 0;
-					needRedraw = true;
-				}
-			}
-        }
-
-		/* if we excluded an IGE without its own DO, we need to update the component before grabbing the bitmap */
-		return needRedraw;
+                    ge.alpha = 0;
+                    needRedraw = true;
+                }
+            }
+        }
+
+        /* if we excluded an IGE without its own DO, we need to update the component before grabbing the bitmap */
+        return needRedraw;
     }

     /**
      *  Called after a bitmap capture is made for this skin. The default implementation
      *  restores the items in the focusSkinExclusions array.
+     *
+     *   @return true if the component must be redrawn. Otherwise, false.
      */
     public function endHighlightBitmapCapture():Boolean
     {
@@ -174,35 +178,35 @@
         var exclusionCount:Number = (exclusions == null) ? 0 : exclusions.length;
         var needRedraw:Boolean = false;

-        for (var i:int=0; i < exclusionCount; i++)
-		{
+        for (var i:int=0; i < exclusionCount; i++)
+        {
             // skip if the part isn't there
             if (!(exclusions[i] in this))
                 continue;

             var ex:Object = this[exclusions[i]];
-			if (ex is UIComponent)
-			{
-				(ex as UIComponent).$alpha = exclusionAlphaValues[i];
-			}
-			else if (ex is DisplayObject)
-			{
-				(ex as DisplayObject).alpha = exclusionAlphaValues[i];
-			}
-			else if (ex is IGraphicElement)
-			{
-				var ge:IGraphicElement = ex as IGraphicElement;
-				if (ge.displayObjectSharingMode == DisplayObjectSharingMode.OWNS_UNSHARED_OBJECT)
-				{
-					ge.displayObject.alpha = exclusionAlphaValues[i];
-				}
-				else
-				{
-					ge.alpha = exclusionAlphaValues[i];
+            if (ex is UIComponent)
+            {
+                (ex as UIComponent).$alpha = exclusionAlphaValues[i];
+            }
+            else if (ex is DisplayObject)
+            {
+                (ex as DisplayObject).alpha = exclusionAlphaValues[i];
+            }
+            else if (ex is IGraphicElement)
+            {
+                var ge:IGraphicElement = ex as IGraphicElement;
+                if (ge.displayObjectSharingMode == DisplayObjectSharingMode.OWNS_UNSHARED_OBJECT)
+                {
+                    ge.displayObject.alpha = exclusionAlphaValues[i];
+                }
+                else
+                {
+                    ge.alpha = exclusionAlphaValues[i];
                     needRedraw = true;
-				}
-			}
-		}
+                }
+            }
+        }

         exclusionAlphaValues = null;


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

--- frameworks/projects/spark/src/spark/components/supportClasses/Skin.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/Skin.as
@@ -1,4 +1,15 @@
-
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2008 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+// AdobePatentID="B976"

 package spark.components.supportClasses
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 5925
Author:   gruehle@adobe.com
Date:     2009-04-03T23:32:32.942708Z

Log Message:
-----------
A bunch of skin related work items and bug fixes.

Bugs:
SDK-19961 - The ControlBar default contentBackgroundColor in its Spark skin needs to be updated.
SDK-19659 - Indeterminate Halo ProgressBar with Gumbo skin draws over the border
SDK-19823 - Halo HSlider and VSlider with Gumbo skins dont look right when specifying track highlight
SDK-19767 - Halo ColorPicker with Spark skin draws stray lines when setting larger width/height
SDK-19764 - enabled and disabled Halo ColorPicker control with Gumbo skins look inconsistent
SDK-20152 - Spark FxPanel container doesnt look very wireframey
SDK-19591 - If you compile FxButtonBar with the wireframe skin, it does not use Wireframe FxToggleButtons
SDK-20151 - wireframe FxList skin item selection highlight looks inconsistent with Spark skins
SDK-20153 - scrollbar position on wireframe FxTextArea skin is inconsistent with scrollbar position on spark FxTextArea skin
SDK-19955 - Spark FxCheckBox skin includes reference to unused namespace, "geom"

Modified Paths:
--------------
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/ButtonBarFirstButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/PanelBorderSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/WireframeClasses.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/SliderTrackHighlightSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/ButtonBarMiddleButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/ListSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/TextAreaSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/ProgressIndeterminateSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/defaults.css</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/ProgressMaskSkin.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/ButtonBarLastButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/SparkSkinsClasses.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/ColorPickerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/CheckBoxSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/defaults.css</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/PanelSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/ButtonBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/PanelSkin.mxml</path>

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

--- frameworks/projects/sparkskins/src/mx/skins/spark/ProgressMaskSkin.as
+++ frameworks/projects/sparkskins/src/mx/skins/spark/ProgressMaskSkin.as
@@ -0,0 +1,76 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.skins.spark
+{
+
+import flash.display.Graphics;
+import mx.skins.ProgrammaticSkin;
+
+/**
+ *  The skin for the mask of the ProgressBar's determinate and indeterminate bars.
+ *  The mask defines the area in which the progress bar or
+ *  indeterminate progress bar is displayed.
+ *  By default, the mask defines the progress bar to be inset 1 pixel from the track.
+ *
+ *  @see mx.controls.ProgressBar
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+public class ProgressMaskSkin extends ProgrammaticSkin
+{
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 1.5
+	 *  @productversion Flex 4
+     */
+    public function ProgressMaskSkin()
+    {
+        super();
+    }
+
+     //--------------------------------------------------------------------------
+    //
+    //  Overridden methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    override protected function updateDisplayList(w:Number, h:Number):void
+    {
+        super.updateDisplayList(w, h);
+
+        // draw the mask
+        var g:Graphics = graphics;
+        g.clear();
+        g.beginFill(0xFFFF00);
+        g.drawRect(2, 1, w - 4, h - 2);
+        g.endFill();
+    }
+
+
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/framework/src/mx/binding/XMLWatcher.as
+++ frameworks/projects/framework/src/mx/binding/XMLWatcher.as
@@ -35,6 +35,11 @@

     /**
 	 *  Constructor.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function XMLWatcher(propertyName:String, listeners:Array)
     {
@@ -51,6 +56,11 @@

 	/**
      *  The parent object of this property.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     private var parentObj:Object;

@@ -66,11 +76,21 @@

 	/**
      *  Storage for the propertyName property.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     private var _propertyName:String;

     /**
      *  The name of the property this Watcher is watching.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get propertyName():String
     {
@@ -85,6 +105,11 @@

     /**
      *  If the parent has changed we need to update ourselves
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     override public function updateParent(parent:Object):void
     {
@@ -120,6 +145,11 @@
     /**
      *  Gets the actual property then updates
 	 *  the Watcher's children appropriately.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     private function updateProperty():void
     {


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 4869
Author:   hmuller@adobe.com
Date:     2009-02-05T23:15:39.033654Z

Log Message:
-----------
Added import flash.events.Event to FxScroller.

QE Notes:
Doc Notes: None
Bugs:
Reviewer:

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

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

--- frameworks/projects/spark/src/spark/components/Scroller.as
+++ frameworks/projects/spark/src/spark/components/Scroller.as
@@ -12,6 +12,7 @@

 package mx.components
 {
+import flash.events.Event;
 import flash.events.FocusEvent;
 import flash.events.MouseEvent;
 import flash.events.KeyboardEvent;


Transferred from the Adobe Open Source Subversion Repository

Revision: 3020
Author:   hmuller@adobe.com
Date:     2008-08-27T23:15:11.883082Z

Log Message:
-----------
Group/Viewport changes per feedback from the kick-off meeting.

Group contentWidth,Height properties are now read-only.  Layouts
must set them with new method Group::setContentSize().

Layouts call setContentSize at both measure and updateDisplayList
time.  Doing so at measure time may be unnecessary although
the measured size of scrollbar thumbs can depend indirectly on
a Group's content size.

Group now updates its own scrollRect at updateDisplayList time, rather
than having each layout do so

QE: Yes
Doc: No
Checkintests: Pass
Reviewer: Ryan

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/BasicLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/VerticalLayout.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/BasicLayout.as
+++ frameworks/projects/spark/src/spark/layouts/BasicLayout.as
@@ -12,12 +12,12 @@
 package flex.layout
 {

+import flash.geom.Point;
+import flash.geom.Rectangle;
+
+import flex.core.Group;
 import flex.intf.ILayout;
 import flex.intf.ILayoutItem;
-import flash.geom.Point;
-import flash.geom.Rectangle;
-
-import flex.core.Group;

 /**
  *  Documentation is not currently available.
@@ -31,38 +31,18 @@
     //  Class methods
     //
     //--------------------------------------------------------------------------
-
-    /**
-     * Layout class utility function used by updateDisplayList functions.
-     * Conditionally sets the origin of the specified Group's scrollRect to
-     * verticalScrollPosition,horizontalScrollPosition and its width
-     * width,height to unscaledWidth,unscaledHeight.  We avoid setting
-     * the scrollRect (and therefore clipping) when scrolling isn't indicated:
-     * if the scrollRect is currently null and the scrollPosition properties
-     * are 0, and the Group's contentWidth,Height is <= to unscaledWidth,Height,
-     * then the scrollRect is not set.
-     */
-    static function setScrollRect(g:Group, unscaledWidth:Number, unscaledHeight:Number):void
-    {
-        var r:Rectangle = g.scrollRect;
-        if (r != null)
-        {
-            r.width = unscaledWidth;
-            r.height = unscaledHeight;
-            g.scrollRect = r;
-        }
-        else // scrollRect wasn't set
-        {
-            var hsp:Number = g.horizontalScrollPosition;
-            var vsp:Number = g.verticalScrollPosition;
-            var cw:Number = g.contentWidth;
-            var ch:Number = g.contentHeight;
-            // don't set the scrollRect needlessly
-            if ((hsp != 0) || (vsp != 0) || (cw > unscaledWidth) || (ch > unscaledHeight))
-                g.scrollRect = new Rectangle(hsp, vsp, unscaledWidth, unscaledHeight);
-        }
-    }
-
+
+    private static function constraintsDetermineWidth(layoutItem:ILayoutItem):Boolean
+    {
+        return !isNaN(LayoutItemHelper.getConstraint(layoutItem, "left")) &&
+               !isNaN(LayoutItemHelper.getConstraint(layoutItem, "right"));
+    }
+
+    private static function constraintsDetermineHeight(layoutItem:ILayoutItem):Boolean
+    {
+        return !isNaN(LayoutItemHelper.getConstraint(layoutItem, "top")) &&
+               !isNaN(LayoutItemHelper.getConstraint(layoutItem, "bottom"));
+    }

     //--------------------------------------------------------------------------
     //
@@ -84,6 +64,10 @@
     //
     //--------------------------------------------------------------------------

+    //----------------------------------
+    // target
+    //----------------------------------
+
     private var _target:Group;

     public function get target():Group
@@ -96,21 +80,10 @@
         _target = value;
     }

-    private static function constraintsDetermineWidth(layoutItem:ILayoutItem):Boolean
-    {
-        return !isNaN(LayoutItemHelper.getConstraint(layoutItem, "left")) &&
-               !isNaN(LayoutItemHelper.getConstraint(layoutItem, "right"));
-    }
-
-    private static function constraintsDetermineHeight(layoutItem:ILayoutItem):Boolean
-    {
-        return !isNaN(LayoutItemHelper.getConstraint(layoutItem, "top")) &&
-               !isNaN(LayoutItemHelper.getConstraint(layoutItem, "bottom"));
-    }
-
-    //--------------------------------------------------------------------------
-    //
-    //  ILayout
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods: ILayout
     //
     //--------------------------------------------------------------------------

@@ -174,10 +147,11 @@

         layoutTarget.measuredWidth = Math.max(width, minWidth);
         layoutTarget.measuredHeight = Math.max(height, minHeight);
+
         layoutTarget.measuredMinWidth = minWidth;
         layoutTarget.measuredMinHeight = minHeight;
-        layoutTarget.contentWidth = layoutTarget.measuredWidth;
-        layoutTarget.contentHeight = layoutTarget.measuredHeight;
+
+        layoutTarget.setContentSize(layoutTarget.measuredWidth, layoutTarget.measuredHeight);
     }

     public function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
@@ -205,6 +179,8 @@
             // Calculate size
             var childWidth:Number = NaN;
             var childHeight:Number = NaN;
+            var maxX:Number = 0;
+            var maxY:Number = 0;

             if (!isNaN(left) && !isNaN(right))
                 childWidth = unscaledWidth - right - left;
@@ -246,9 +222,13 @@

             // Set position
             layoutItem.setActualPosition(childX, childY);
+
+            // update content limits
+            maxX = Math.max(maxX, childX + childWidth);
+            maxY = Math.max(maxY, childY + childHeight);
         }

-        setScrollRect(layoutTarget, unscaledWidth, unscaledHeight);
+        layoutTarget.setContentSize(maxX, maxY);
     }
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 20029
Author:   deeptika@adobe.com
Date:     2011-02-01T10:57:03.644814Z

Log Message:
-----------
Adding asdoc to EventDetails.as

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

Modified Paths:
--------------
/private/flex/sdk/branches/hero_private/frameworks/projects/automation/src/mx/automation/events/EventDetails.as

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

--- frameworks/projects/automation/src/mx/automation/events/EventDetails.as
+++ frameworks/projects/automation/src/mx/automation/events/EventDetails.as
@@ -16,7 +16,8 @@
     import flash.events.Event;

     /**
-     *
+     *  Holds the details of an event like its type, handler etc...
+	 *
      *  @langversion 3.0
      *  @playerversion Flash 10
      *  @playerversion AIR 1.5
@@ -25,7 +26,8 @@
     public class EventDetails
     {
        /**
-        *
+        *  Type of the event
+		*
         *  @langversion 3.0
         *  @playerversion Flash 10
         *  @playerversion AIR 1.5
@@ -34,7 +36,8 @@
         public var eventType:String;

        /**
-        *
+        *  Handler function that processes the event
+		*
         *  @langversion 3.0
         *  @playerversion Flash 10
         *  @playerversion AIR 1.5
@@ -43,7 +46,9 @@
         public var handlerFunction:Function;

        /**
-        *
+        *  Determines whether the listener works in the capture phase or the target and bubbling phases.
+		*  @default false
+		*
         *  @langversion 3.0
         *  @playerversion Flash 10
         *  @playerversion AIR 1.5
@@ -52,7 +57,9 @@
         public var useCapture:Boolean;

        /**
-        *
+        *  The priority level of the event listener.
+		*  @default 0
+		*
         *  @langversion 3.0
         *  @playerversion Flash 10
         *  @playerversion AIR 1.5
@@ -61,7 +68,11 @@
         public var priority:int;

        /**
-        *
+        *  Determines whether the reference to the listener is strong or weak.
+		*  strong reference (the default) prevents your listener from being garbage-collected.
+		*  weak reference does not.
+		*  @default false
+		*
         *  @langversion 3.0
         *  @playerversion Flash 10
         *  @playerversion AIR 1.5
@@ -70,21 +81,33 @@
         public var useWeekRef:Boolean;

        /**
+        *  Constructor
+		*  @param type The event type; indicates the action that caused the event.
         *
-        *  @langversion 3.0
+        *  @param handler Handler function that processes the event.
+		*
+		*  @param useCapture Determines whether the listener works in the capture phase or the target and bubbling phases.
+        *
+        *  @param priority The priority level of the event listener.
+        *
+        *  @param useWeakReference Determines whether the reference to the listener is strong or weak.
+		*  strong reference (the default) prevents your listener from being garbage-collected.
+		*  weak reference does not.
+        *
+		*  @langversion 3.0
         *  @playerversion Flash 10
         *  @playerversion AIR 1.5
         *  @productversion Flex 4
         */
         public function EventDetails(type:String, handler:Function,
                                      useCapture:Boolean= false,
-                                     priority:int = 0, useWeekReferance:Boolean= false )
+                                     priority:int = 0, useWeakReference:Boolean= false )
         {
             this.eventType = type;
             this.handlerFunction = handler;
             this.useCapture = useCapture;
             this.priority = priority;
-            this.useWeekRef = useWeekReferance;
+            this.useWeekRef = useWeakReference;
         }

     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 23243
Author:   cframpto@adobe.com
Date:     2011-12-20T00:59:57.384047Z

Log Message:
-----------
In frameworks, remove Adobe headers from all files except xml/mxml file types.  There are also a few .txt files that are license files that I didn't touch yet.

Modified Paths:
--------------
2361 paths were modified

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

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

 package mx.charts.chartClasses
 {


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 23243
Author:   cframpto@adobe.com
Date:     2011-12-20T00:59:57.384047Z

Log Message:
-----------
In frameworks, remove Adobe headers from all files except xml/mxml file types.  There are also a few .txt files that are license files that I didn't touch yet.

Modified Paths:
--------------
2361 paths were modified

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

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

 package spark.components
 {


OptionsFormatter: added new utility function for setting paths

--- src/com/nextgenactionscript/asconfigc/utils/OptionsFormatter.as
+++ src/com/nextgenactionscript/asconfigc/utils/OptionsFormatter.as
@@ -26,6 +26,24 @@
 		{
 			var boolString:String = value ? "true" : "false";
 			result.push("--" + optionName + "=" + boolString);
+		}
+
+		public static function setPathValue(optionName:String, value:Object, result:Array):void
+		{
+			var pathValue:String = value.toString();
+			if(!fs.existsSync(pathValue))
+			{
+				console.error("Path for option \"" + optionName + "\" not found: " + pathValue);
+				process.exit(1);
+			}
+			if(pathValue.indexOf(" ") !== -1)
+			{
+				result.push("--" + optionName + "=\"" + pathValue + "\"");
+			}
+			else
+			{
+				result.push("--" + optionName + "=" + pathValue);
+			}
 		}

 		public static function setValues(optionName:String, values:Array, result:Array):void


No longer running code in PlotManager.updateZoom() immediately.

--- WeaveUISpark/src/weave/visualization/layers/PlotManager.as
+++ WeaveUISpark/src/weave/visualization/layers/PlotManager.as
@@ -204,11 +204,19 @@
 			hack_updateZoom_callbacks.push(callback);
 		}

+		private var _shouldUpdateZoom:Boolean = false;
+
 		/**
 		 * This function will update the fullDataBounds and zoomBounds based on the current state of the layers.
 		 */
-		protected function updateZoom():void
-		{
+		protected function updateZoom(now:Boolean = false):void
+		{
+			if (!now)
+			{
+				_shouldUpdateZoom = true;
+				return;
+			}
+
 			// make sure callbacks only trigger once
 			getCallbackCollection(this).delayCallbacks();
 			getCallbackCollection(zoomBounds).delayCallbacks();
@@ -686,6 +694,9 @@
 					}
 				}
 			}
+
+			if (_shouldUpdateZoom)
+				updateZoom(true);

 			if (shouldRender)
 				refreshLayers(true);


remove "format" from kalsig calculation

remove "format" from kalsig calculation

--- as3FlexClient/src/com/kaltura/delegates/WebDelegateBase.as
+++ as3FlexClient/src/com/kaltura/delegates/WebDelegateBase.as
@@ -181,7 +181,7 @@

 			_call.setRequestArgument("ignoreNull", _config.ignoreNull);
 			_call.setRequestArgument("apiVersion", KalturaClient.API_VERSION);
-			_call.setRequestArgument("format", KalturaResponseType.RESPONSE_TYPE_XML);
+			//_call.setRequestArgument("format", KalturaResponseType.RESPONSE_TYPE_XML);

 			//Create signature hash.
 			//call.setRequestArgument("kalsig", getMD5Checksum(call));


agent sends binary hello message

agent sends binary hello message

--- Agent.as
+++ Agent.as
@@ -31,7 +31,7 @@
     	    _host = loaderInfo.parameters["host"] || HOST;
     	    _port = loaderInfo.parameters["port"] || PORT;

-	        _socket = new XMLSocket();
+	        _socket = new Socket();

             _socket.addEventListener(SecurityErrorEvent.SECURITY_ERROR, fail);
             _socket.addEventListener(IOErrorEvent.IO_ERROR, fail);
@@ -182,14 +182,17 @@

     	   trace(PREFIX, "Connected");

-           var now:Date = new Date();
+           var now:uint = new Date().time;
            var seconds:uint = now / 1000;
+           var timer:uint = getTimer();

            _socket.writeShort(0x4201);
            _socket.writeUnsignedInt(seconds);
            _socket.writeShort(now - (seconds * 1000));
-           _socket.writeUnsignedInt(getTimer());
+           _socket.writeUnsignedInt(timer);
            _socket.flush();
+
+           trace(PREFIX, seconds, now - (seconds * 1000), timer);
     	}

     	private function close(e:Event):void {
@@ -199,9 +202,10 @@
     	}

     	private function fail(e:Event):void {
+            trace(PREFIX, "Communication failure", e);
+
     	    _socket.close();
     	    _connected = false;
-            trace(PREFIX, "Communication failure", e);
     	}
     }
 }