Transferred from the Adobe Open Source Subversion Repository

Revision: 8679
Author:   jimurphy@adobe.com
Date:     2009-07-20T13:23:31.007823Z

Log Message:
-----------
These are Asdoc edit from 3.x rev 8623.  I somehow missed committing these when they were supposed to be committed during my previous merge.

bug: no
qa: no
doc: no
checkintests: pass

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/AMFChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/PollingChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AbstractService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AbstractOperation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/Consumer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/MultiTopicProducer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/SecureAMFChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/StreamingAMFChannel.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/rpc/src/mx/messaging/channels/HTTPChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/CallResponder.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/rpc/src/mx/messaging/MultiTopicConsumer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AsyncResponder.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/rpc/src/mx/messaging/channels/SecureStreamingAMFChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/config/ConfigMap.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AbstractInvoker.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/Responder.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/channels/SecureHTTPChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/AbstractOperation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/StreamingHTTPChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/XMLLoadEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/IResponder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/Producer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/SecureStreamingHTTPChannel.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/rpc/src/mx/rpc/events/WSDLLoadEvent.as</path>

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

--- frameworks/projects/rpc/src/mx/messaging/channels/StreamingConnectionHandler.as
+++ frameworks/projects/rpc/src/mx/messaging/channels/StreamingConnectionHandler.as
@@ -182,7 +182,7 @@
     //--------------------------------------------------------------------------

     /**
-     *  Creates an new StreamingConnectionHandler instance.
+     *  Constructor.
      *
 	 *  @param channel The Channel that uses this class.
 	 *  @param log Reference to the logger for the associated Channel.


Transferred from the Adobe Open Source Subversion Repository

Revision: 20649
Author:   smgilson@adobe.com
Date:     2011-03-07T20:19:16.700368Z

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

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

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/effects/animation/SimpleMotionPath.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/core/ContentRequest.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/effects/animation/Animation.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/effects/Fade.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/effects/animation/MotionPath.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/effects/interpolation/NumberInterpolator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/effects/interpolation/RGBInterpolator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/core/ContentCache.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/core/NavigationUnit.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/core/IGraphicElement.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransformInstance.as</path>

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

--- frameworks/projects/spark/src/spark/effects/interpolation/NumberInterpolator.as
+++ frameworks/projects/spark/src/spark/effects/interpolation/NumberInterpolator.as
@@ -1,4 +1,4 @@
-		////////////////////////////////////////////////////////////////////////////////
+        ////////////////////////////////////////////////////////////////////////////////
 //
 //  ADOBE SYSTEMS INCORPORATED
 //  Copyright 2008 Adobe Systems Incorporated
@@ -57,6 +57,8 @@
      *  Returns the singleton of this class.
      *  Since all NumberInterpolators
      *  have the same behavior, there is no need for more than one instance.
+     *
+     *  @return The singleton of this class.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10


Transferred from the Adobe Open Source Subversion Repository

Revision: 6266
Author:   egeorgie@adobe.com
Date:     2009-04-24T23:09:01.304621Z

Log Message:
-----------
Layout PARB changes

Major (most probably will require updates):
- LayoutBase.getScrollPositionDelta() -> getScrollPositionDeltaToElement()
- HorizontalLayout, VerticalLayout method inView() -> fractionOfElementInView()
- LayoutElementFactory is deleted, interface ILayoutElement is implemented by UIComponent, GraphicElement, VisualSprite, no need for casting in those cases, cast to ILayoutElement in case of type Object.
- TileLayout.elementHorizontalAlign -> horizontalAlign
- TileLayout.elementVerticalAlign -> verticalAlign
- TileJustifyRows -> RowAlign
- TileJustifyColumsn > ColumnAlign
- TileLayout.justifyRows -> rowAlign
- TileLayout.justifyColumns -> columnAling
- TileJustifyRows.NONE, "none" -> TOP, "top"
- TileJustifyRows.GAP_SIZE, "gapSize" -> JUSTIFY_USING_GAP, "justifyUsingGap"
- TileJustifyRows.ROW_SIZE, "rowSize" -> JUSTIFY_USING_HEIGHT, "justifyUsingHeight"
- TileJustifyColumns.NONE, "none" -> LEFT, "left"
- TileJustifyColumns.GAP_SIZE, "gapSize" -> JUSTIFY_USING_GAP, "justifyUsingGap"
- TileJustifyColumns.COLUMN_SIZE, "columnSize" -> JUSTIFY_USING_WIDTH, "justifyUsingWidth"
- TileLayout.set rowCount -> set requestedRowCount
- add TileLayout.get requestedRowCount
- TileLayout.set columnCount -> set requestedColumnCount
- add TileLayout.get requestedColumnCount

Minor (may require updates, but not that probable):
- get baselinePosition() is moved from IVisualElement to ILayoutElement.
- setLayoutBoundsSize() does not have default NaN values for width & height (but still logic is the same).
- name of ILayoutInterface methods' parameter "postTransform" is renamed to "postLayoutTransform".
- name of ILayoutInterface methods' parameter "triggerLayout" is renamed to "invalidateLayout".
- LayoutBase methods invalidateTargetSizeAndDisplayList() and invalidateTargetSize() are removed.
- LayoutBase method getTargetScrollRect() is renamed to getScrollRect().

QE Notes: None
Doc Notes: None
Bugs: None
Reviewer: Hans, Ryan
tests: checkintests, mustella (gumbo/layout, gumbo/group, gumbo/dataGroup)

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/layout/layout_tester.mxml</path>
<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/primitives/supportClasses/GraphicElement.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/primitives/supportClasses/TextGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Ellipse.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElement.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/RowAlign.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/spark-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/LayoutElementUIComponentUtils.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/TileJustifyRows.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/Animate3DInstance.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/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ILayoutElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/TileLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/HSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/HScrollBar.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/ColumnAlign.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/supportClasses/LayoutElementFactory.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ButtonBarHorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Path.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Rect.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/TileJustifyColumns.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/BasicLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/core/TextBaseClass.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/supportClasses/Block.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/components/supportClasses/ScrollerLayout.as</path>

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

--- frameworks/projects/framework/src/mx/core/UIComponent.as
+++ frameworks/projects/framework/src/mx/core/UIComponent.as
@@ -11479,7 +11479,7 @@
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
      */
-    public function setLayoutMatrix(value:Matrix, triggerLayout:Boolean):void
+    public function setLayoutMatrix(value:Matrix, invalidateLayout:Boolean):void
     {
         hasDeltaIdentityTransform = false;
         if (_layoutFeatures == null)
@@ -11497,7 +11497,7 @@

         invalidateProperties();

-        if (triggerLayout)
+        if (invalidateLayout)
             invalidateParentSizeAndDisplayList();
     }

@@ -11510,7 +11510,7 @@
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
      */
-    public function setLayoutMatrix3D(value:Matrix3D, triggerLayout:Boolean):void
+    public function setLayoutMatrix3D(value:Matrix3D, invalidateLayout:Boolean):void
     {
         if (_layoutFeatures == null)
             initAdvancedLayoutFeatures();
@@ -11521,7 +11521,7 @@

         invalidateProperties();

-        if (triggerLayout)
+        if (invalidateLayout)
             invalidateParentSizeAndDisplayList();
     }

@@ -11784,14 +11784,14 @@
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
      */
-    public function getPreferredBoundsWidth(postTransform:Boolean=true):Number
-    {
-        return LayoutElementUIComponentUtils.getPreferredBoundsWidth(this,postTransform? nonDeltaLayoutMatrix():null);
-    }
-
-    public function getPreferredBoundsHeight(postTransform:Boolean=true):Number
-    {
-        return LayoutElementUIComponentUtils.getPreferredBoundsHeight(this,postTransform? nonDeltaLayoutMatrix():null);
+    public function getPreferredBoundsWidth(postLayoutTransform:Boolean=true):Number
+    {
+        return LayoutElementUIComponentUtils.getPreferredBoundsWidth(this,postLayoutTransform? nonDeltaLayoutMatrix():null);
+    }
+
+    public function getPreferredBoundsHeight(postLayoutTransform:Boolean=true):Number
+    {
+        return LayoutElementUIComponentUtils.getPreferredBoundsHeight(this,postLayoutTransform? nonDeltaLayoutMatrix():null);
     }

     /**
@@ -11802,14 +11802,14 @@
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
      */
-    public function getMinBoundsWidth(postTransform:Boolean=true):Number
-    {
-        return LayoutElementUIComponentUtils.getMinBoundsWidth(this,postTransform? nonDeltaLayoutMatrix():null);
-    }
-
-    public function getMinBoundsHeight(postTransform:Boolean=true):Number
-    {
-        return LayoutElementUIComponentUtils.getMinBoundsHeight(this,postTransform? nonDeltaLayoutMatrix():null);
+    public function getMinBoundsWidth(postLayoutTransform:Boolean=true):Number
+    {
+        return LayoutElementUIComponentUtils.getMinBoundsWidth(this,postLayoutTransform? nonDeltaLayoutMatrix():null);
+    }
+
+    public function getMinBoundsHeight(postLayoutTransform:Boolean=true):Number
+    {
+        return LayoutElementUIComponentUtils.getMinBoundsHeight(this,postLayoutTransform? nonDeltaLayoutMatrix():null);
     }

     /**
@@ -11820,14 +11820,14 @@
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
      */
-    public function getMaxBoundsWidth(postTransform:Boolean=true):Number
-    {
-        return LayoutElementUIComponentUtils.getMaxBoundsWidth(this,postTransform? nonDeltaLayoutMatrix():null);
-    }
-
-    public function getMaxBoundsHeight(postTransform:Boolean=true):Number
-    {
-        return LayoutElementUIComponentUtils.getMaxBoundsHeight(this,postTransform? nonDeltaLayoutMatrix():null);
+    public function getMaxBoundsWidth(postLayoutTransform:Boolean=true):Number
+    {
+        return LayoutElementUIComponentUtils.getMaxBoundsWidth(this,postLayoutTransform? nonDeltaLayoutMatrix():null);
+    }
+
+    public function getMaxBoundsHeight(postLayoutTransform:Boolean=true):Number
+    {
+        return LayoutElementUIComponentUtils.getMaxBoundsHeight(this,postLayoutTransform? nonDeltaLayoutMatrix():null);
     }

     /**
@@ -11838,10 +11838,10 @@
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
      */
-    public function getBoundsXAtSize(width:Number, height:Number, postTransform:Boolean = true):Number
+    public function getBoundsXAtSize(width:Number, height:Number, postLayoutTransform:Boolean = true):Number
     {
         return LayoutElementUIComponentUtils.getBoundsXAtSize(this, width, height,
-                                                              postTransform ? nonDeltaLayoutMatrix() : null);
+                                                              postLayoutTransform ? nonDeltaLayoutMatrix() : null);
     }

     /**
@@ -11852,10 +11852,10 @@
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
      */
-    public function getBoundsYAtSize(width:Number, height:Number, postTransform:Boolean = true):Number
+    public function getBoundsYAtSize(width:Number, height:Number, postLayoutTransform:Boolean = true):Number
     {
         return LayoutElementUIComponentUtils.getBoundsYAtSize(this, width, height,
-                                                              postTransform ? nonDeltaLayoutMatrix() : null);
+                                                              postLayoutTransform ? nonDeltaLayoutMatrix() : null);
     }

     /**
@@ -11866,14 +11866,14 @@
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
      */
-    public function getLayoutBoundsWidth(postTransform:Boolean=true):Number
-    {
-        return LayoutElementUIComponentUtils.getLayoutBoundsWidth(this,postTransform? nonDeltaLayoutMatrix():null);
-    }
-
-    public function getLayoutBoundsHeight(postTransform:Boolean=true):Number
-    {
-        return LayoutElementUIComponentUtils.getLayoutBoundsHeight(this,postTransform? nonDeltaLayoutMatrix():null);
+    public function getLayoutBoundsWidth(postLayoutTransform:Boolean=true):Number
+    {
+        return LayoutElementUIComponentUtils.getLayoutBoundsWidth(this,postLayoutTransform? nonDeltaLayoutMatrix():null);
+    }
+
+    public function getLayoutBoundsHeight(postLayoutTransform:Boolean=true):Number
+    {
+        return LayoutElementUIComponentUtils.getLayoutBoundsHeight(this,postLayoutTransform? nonDeltaLayoutMatrix():null);
     }

     /**
@@ -11884,14 +11884,14 @@
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
      */
-    public function getLayoutBoundsX(postTransform:Boolean=true):Number
-    {
-        return LayoutElementUIComponentUtils.getLayoutBoundsX(this,postTransform? nonDeltaLayoutMatrix():null);
-    }
-
-    public function getLayoutBoundsY(postTransform:Boolean=true):Number
-    {
-        return LayoutElementUIComponentUtils.getLayoutBoundsY(this,postTransform? nonDeltaLayoutMatrix():null);
+    public function getLayoutBoundsX(postLayoutTransform:Boolean=true):Number
+    {
+        return LayoutElementUIComponentUtils.getLayoutBoundsX(this,postLayoutTransform? nonDeltaLayoutMatrix():null);
+    }
+
+    public function getLayoutBoundsY(postLayoutTransform:Boolean=true):Number
+    {
+        return LayoutElementUIComponentUtils.getLayoutBoundsY(this,postLayoutTransform? nonDeltaLayoutMatrix():null);
     }

     /**
@@ -11902,9 +11902,9 @@
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
      */
-    public function setLayoutBoundsPosition(x:Number, y:Number, postTransform:Boolean=true):void
-    {
-        LayoutElementUIComponentUtils.setLayoutBoundsPosition(this,x,y,postTransform? nonDeltaLayoutMatrix():null);
+    public function setLayoutBoundsPosition(x:Number, y:Number, postLayoutTransform:Boolean=true):void
+    {
+        LayoutElementUIComponentUtils.setLayoutBoundsPosition(this,x,y,postLayoutTransform? nonDeltaLayoutMatrix():null);
     }

     /**
@@ -11915,11 +11915,11 @@
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
      */
-    public function setLayoutBoundsSize(width:Number = Number.NaN,
-                                  height:Number = Number.NaN,
-                                  postTransform:Boolean=true):void
-    {
-        LayoutElementUIComponentUtils.setLayoutBoundsSize(this,width,height,postTransform? nonDeltaLayoutMatrix():null);
+    public function setLayoutBoundsSize(width:Number,
+                                        height:Number,
+                                        postLayoutTransform:Boolean = true):void
+    {
+        LayoutElementUIComponentUtils.setLayoutBoundsSize(this,width,height,postLayoutTransform? nonDeltaLayoutMatrix():null);
     }

     /**


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

--- frameworks/projects/framework/src/mx/core/UIComponent.as
+++ frameworks/projects/framework/src/mx/core/UIComponent.as
@@ -1267,6 +1267,8 @@
     //  embeddedFontRegistry
     //----------------------------------

+	private static var noEmbeddedFonts:Boolean;
+
     /**
      *  @private
      *  Storage for the _embeddedFontRegistry property.
@@ -1284,10 +1286,17 @@
      */
     private static function get embeddedFontRegistry():IEmbeddedFontRegistry
     {
-        if (!_embeddedFontRegistry)
-        {
-            _embeddedFontRegistry = IEmbeddedFontRegistry(
-                Singleton.getInstance("mx.core::IEmbeddedFontRegistry"));
+        if (!_embeddedFontRegistry && !noEmbeddedFonts)
+        {
+			try
+			{
+				_embeddedFontRegistry = IEmbeddedFontRegistry(
+					Singleton.getInstance("mx.core::IEmbeddedFontRegistry"));
+			}
+			catch (e:Error)
+			{
+				noEmbeddedFonts = true;
+			}
         }

         return _embeddedFontRegistry;
@@ -1712,13 +1721,6 @@
     /**
      * @private
      *
-     * Cache last value of embedded font.
-     */
-    private var cachedEmbeddedFont:EmbeddedFont = null;
-
-    /**
-     * @private
-     *
      * storage for advanced layout and transform properties.
      */
     private var _layoutFeatures:AdvancedLayoutFeatures;
@@ -1802,6 +1804,34 @@
      *  document.automaticRadioButtonGroups[groupName] = theRadioButtonGroup;
      */
     mx_internal var automaticRadioButtonGroups:Object;
+
+	private var _usingBridge:int = -1;
+
+	/**
+	 *  @private
+	 */
+	private function get usingBridge():Boolean
+	{
+		if (_usingBridge == 0) return false;
+		if (_usingBridge == 1) return true;
+
+		if (!_systemManager) return false;
+
+		// no types so no dependencies
+		var mp:Object = _systemManager.getImplementation("mx.managers.IMarshallPlanSystemManager");
+		if (!mp)
+		{
+			_usingBridge = 0;
+			return false;
+		}
+		if (mp.useSWFBridge())
+		{
+			_usingBridge = 1;
+			return true;
+		}
+		_usingBridge = 0;
+		return false;
+	}

     //--------------------------------------------------------------------------
     //
@@ -3299,7 +3329,7 @@
         if (!_systemManager || _systemManagerDirty)
         {
             var r:DisplayObject = root;
-            if (_systemManager is SystemManagerProxy)
+            if (_systemManager && _systemManager.isProxy)
             {
                 // keep the existing proxy
             }
@@ -6270,7 +6300,7 @@
         // if it is null. Hence a call to the getter is necessary.
         // Stage can be null when an untrusted application is loaded by an application
         // that isn't on stage yet.
-        if (systemManager && (_systemManager.stage || _systemManager.useSWFBridge()))
+        if (systemManager && (_systemManager.stage || usingBridge))
         {
             if (methodQueue.length > 0 && !listeningForRender)
             {
@@ -6960,7 +6990,7 @@

         // Stage can be null when an untrusted application is loaded by an application
         // that isn't on stage yet.
-        if (sm && (sm.stage || sm.useSWFBridge()))
+        if (sm && (sm.stage || usingBridge))
         {
             if (!listeningForRender)
             {
@@ -6988,7 +7018,7 @@

         // Stage can be null when an untrusted application is loaded by an application
         // that isn't on stage yet.
-        if (sm && (sm.stage || sm.useSWFBridge()))
+        if (sm && (sm.stage || usingBridge))
         {
             if (listeningForRender)
             {
@@ -7671,7 +7701,7 @@
             var sm:ISystemManager = parent as ISystemManager;
             if (sm)
             {
-                if (sm is SystemManagerProxy || (sm == systemManager.topLevelSystemManager &&
+                if (sm.isProxy || (sm == systemManager.topLevelSystemManager &&
                     sm.document != this))
                 {
                     // Size ourself to the new measured width/height
@@ -8510,7 +8540,7 @@
     public function setFocus():void
     {
         var sm:ISystemManager = systemManager;
-        if (sm && (sm.stage || sm.useSWFBridge()))
+        if (sm && (sm.stage || usingBridge))
         {
             if (UIComponentGlobals.callLaterDispatcherCount == 0)
             {
@@ -10388,7 +10418,7 @@

         // Stage can be null when an untrusted application is loaded by an application
         // that isn't on stage yet.
-        if (sm && (sm.stage || sm.useSWFBridge()) && listeningForRender)
+        if (sm && (sm.stage || usingBridge) && listeningForRender)
         {
             // trace("  removed");
             sm.removeEventListener(FlexEvent.RENDER, callLaterDispatcher);
@@ -10832,28 +10862,6 @@
     }

     /**
-     * @private
-     *
-     * Get the embedded font for a set of font attributes.
-     */
-    mx_internal function getEmbeddedFont(fontName:String, bold:Boolean, italic:Boolean):EmbeddedFont
-    {
-        // Check if we can reuse a cached value.
-        if (cachedEmbeddedFont)
-        {
-            if (cachedEmbeddedFont.fontName == fontName &&
-                cachedEmbeddedFont.fontStyle == EmbeddedFontRegistry.getFontStyle(bold, italic))
-            {
-                return cachedEmbeddedFont;
-            }
-        }
-
-        cachedEmbeddedFont = new EmbeddedFont(fontName, bold, italic);
-
-        return cachedEmbeddedFont;
-    }
-
-    /**
      *  @private
      *  Finds a module factory that can create a TextField
      *  that can display the given font.
@@ -10873,8 +10881,13 @@
     mx_internal function getFontContext(fontName:String, bold:Boolean,
                                         italic:Boolean):IFlexModuleFactory
     {
-        return embeddedFontRegistry.getAssociatedModuleFactory(
-               getEmbeddedFont(fontName, bold, italic), moduleFactory);
+		if (noEmbeddedFonts)
+			return null;
+
+		var registry:IEmbeddedFontRegistry = embeddedFontRegistry;
+
+        return registry ? registry.getAssociatedModuleFactory(
+			fontName, bold, italic, this, moduleFactory) : null;
     }

     /**
@@ -11006,11 +11019,9 @@
         var fontStyle:String = getStyle("fontStyle");
         var bold:Boolean = fontWeight == "bold";
         var italic:Boolean = fontStyle == "italic";
-        var embeddedFont:EmbeddedFont =
-            getEmbeddedFont(fontName, bold, italic);
-        var fontContext:IFlexModuleFactory =
+        var fontContext:IFlexModuleFactory = noEmbeddedFonts ? null :
             embeddedFontRegistry.getAssociatedModuleFactory(
-                embeddedFont, moduleFactory);
+                fontName, bold, italic, this, moduleFactory);
         return fontContext != oldEmbeddedFontContext;
     }


FLEX-12749 Changed date maths to use real days so it works across daylight saving boundaries

--- frameworks/projects/mx/src/mx/controls/CalendarLayout.as
+++ frameworks/projects/mx/src/mx/controls/CalendarLayout.as
@@ -941,12 +941,12 @@
                 if (dayOffset < 0)
                     dayOffset += 7;

-                tempDate = incrementDate(tempDate,dayOffset)
+                tempDate = addSubtractDays(tempDate, dayOffset);

                 while (tempDate < maxDate)
                 {
-                    removeRangeFromSelection(tempDate,tempDate);
-                    tempDate = incrementDate(tempDate,7)
+                    removeRangeFromSelection(tempDate, tempDate);
+                    tempDate = addSubtractDays(tempDate, 7);
                 }
             }
         }
@@ -1969,12 +1969,11 @@
      *  Increments/decrements a date by 'No. of days'
      *  specified by amount and returns the new date.
      */
-    mx_internal function incrementDate(value:Date, amount:int = 1):Date
+    mx_internal function addSubtractDays(value:Date, amount:int):Date
     {
         var newDate:Date = new Date(value);
-        var time:Number = newDate.getTime();
-        newDate.setTime(time + amount * 86400000);
-        return newDate;
+
+        return new Date(newDate.fullYear, newDate.month, newDate.date + amount);
     }

     /**
@@ -2021,7 +2020,7 @@
 			{
 				if (endDate < rangeEnd)
 				{
-					_selectedRanges[n].rangeStart = incrementDate(endDate);
+					_selectedRanges[n].rangeStart = addSubtractDays(endDate, 1);
 				}
 				else
 				{
@@ -2037,18 +2036,18 @@
 				{
 					var temp:Date = _selectedRanges[n].rangeEnd;

-					_selectedRanges[n].rangeEnd = incrementDate(startDate, -1);
+					_selectedRanges[n].rangeEnd = addSubtractDays(startDate, -1);

 					_selectedRanges[selectedRangeCount] = {};
 					_selectedRanges[selectedRangeCount].rangeStart =
-						incrementDate(endDate);
+						addSubtractDays(endDate, 1);
 					_selectedRanges[selectedRangeCount].rangeEnd = temp;

 					selectedRangeCount += 1;
 				}
 				else
 				{
-					_selectedRanges[n].rangeEnd = incrementDate(startDate, -1);
+					_selectedRanges[n].rangeEnd = addSubtractDays(startDate, -1);
 				}
 			}
 		}


Transferred from the Adobe Open Source Subversion Repository

Revision: 3399
Author:   jimurphy@adobe.com
Date:     2008-09-29T15:51:24.666752Z

Log Message:
-----------
Merged 3.0.x revisions 3361,3364-3365,3367,3370,3381 -> trunk

Modified Paths:
--------------
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/ResultEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/XMLDecoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/scrollClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/validators/CurrencyValidator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/SortField.as</path>

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

--- frameworks/projects/rpc/src/mx/rpc/events/ResultEvent.as
+++ frameworks/projects/rpc/src/mx/rpc/events/ResultEvent.as
@@ -160,7 +160,7 @@
      */
     override public function toString():String
     {
-        return formatToString("ResultEvent", "messageId", "type", "bubbles", "cancelable", "eventPhase", "httpStatus");
+        return formatToString("ResultEvent", "messageId", "type", "bubbles", "cancelable", "eventPhase");
     }

     /*


Transferred from the Adobe Open Source Subversion Repository

Revision: 4427
Author:   dloverin@adobe.com
Date:     2009-01-07T20:41:49.302696Z

Log Message:
-----------
Fix security error when FxButton is used in untrusted application.
The security error was caused by trying to add a listener to the stage. The fix was to listen for a SandboxMouseEvent.MOUSE_UP_SOMEWHERE on the sandbox root instead listening for a MOUSE_LEAVE on the stage.

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

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

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

--- frameworks/projects/spark/src/spark/components/Button.as
+++ frameworks/projects/spark/src/spark/components/Button.as
@@ -22,6 +22,7 @@

 import mx.components.baseClasses.FxComponent;
 import mx.events.FlexEvent;
+import mx.events.SandboxMouseEvent;
 import mx.core.IDataRenderer;
 import mx.graphics.graphicsClasses.TextGraphicElement;
 import mx.managers.IFocusManagerComponent;
@@ -488,8 +489,8 @@
      */
     private function addSystemMouseHandlers():void
     {
-        systemManager.addEventListener(MouseEvent.MOUSE_UP, mouseEventHandler, true /*useCapture*/);
-        systemManager.stage.addEventListener(Event.MOUSE_LEAVE, mouseEventHandler);
+        systemManager.getSandboxRoot().addEventListener(MouseEvent.MOUSE_UP, mouseEventHandler, true /*useCapture*/);
+        systemManager.getSandboxRoot().addEventListener(SandboxMouseEvent.MOUSE_UP_SOMEWHERE, mouseEventHandler);
     }

     /**
@@ -499,8 +500,8 @@
      */
     private function removeSystemMouseHandlers():void
     {
-        systemManager.removeEventListener(MouseEvent.MOUSE_UP, mouseEventHandler, true /*useCapture*/);
-        systemManager.stage.removeEventListener(Event.MOUSE_LEAVE, mouseEventHandler);
+        systemManager.getSandboxRoot().removeEventListener(MouseEvent.MOUSE_UP, mouseEventHandler, true /*useCapture*/);
+        systemManager.getSandboxRoot().removeEventListener(SandboxMouseEvent.MOUSE_UP_SOMEWHERE, mouseEventHandler);
     }

     /**
@@ -508,11 +509,12 @@
      *  where appropriate and updates the hoveredOver and
      *  mouseCaptured properties.
      *
This method gets called to handle MouseEvent.ROLL_OVER, MouseEvent.ROLL_OUT,
-     *  MouseEvent.MOUSE_DOWN, MouseEvent.MOUSE_UP, MouseEvent.CLICK and Event.MOUSE_LEAVE.

-     *
For MouseEvent.MOUSE_UP and Event.MOUSE_LEAVE, the event target can be other than the
-     *  FxButton - for example when the user presses the FxButton, we listen for MOUSE_UP
-     *  on the stage to handle cases where the user drags outside the FxButton and releases
-     *  the mouse.

+     *  MouseEvent.MOUSE_DOWN, MouseEvent.MOUSE_UP, MouseEvent.CLICK and
+     *  SandboxMouseEvent.MOUSE_UP_SOMEWHERE.

+     *
For MouseEvent.MOUSE_UP and SandboxMouseEvent.MOUSE_UP_SOMEWHERE, the event
+     *  target can be other than the FxButton - for example when the user presses the
+     *  FxButton, we listen for MOUSE_UP and MOUSE_UP_SOMEWHERE to handle cases where the user drags
+     *  outside the FxButton and releases the mouse.

      */
     protected function mouseEventHandler(event:Event):void
     {
@@ -549,7 +551,7 @@
                 if (event.currentTarget == this)
                     hoveredOver = true;
             } //fallthrough:
-            case Event.MOUSE_LEAVE:
+            case SandboxMouseEvent.MOUSE_UP_SOMEWHERE:
             {
                 mouseCaptured = false;
                 break;


Transferred from the Adobe Open Source Subversion Repository

Revision: 5098
Author:   gauravj@adobe.com
Date:     2009-02-27T02:21:27.489350Z

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:
--------------
151 paths were modified

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

--- frameworks/projects/spark/src/spark/components/VGroup.as
+++ frameworks/projects/spark/src/spark/components/VGroup.as
@@ -26,6 +26,11 @@
  *  The layout property should not be set or configured directly.
  *
  *  @see mx.layout.VerticalLayout
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
  */
 public class VGroup extends Group
 {
@@ -39,6 +44,11 @@
      *
      *  @see mx.layout.VerticalLayout
      *  @see mx.components.HGroup
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
 	public function VGroup():void
 	{
@@ -63,6 +73,11 @@

     /**
      * @copy mx.layout.VerticalLayout#gap
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get gap():int
     {
@@ -83,6 +98,11 @@

     /**
      * @copy mx.layout.VerticalLayout#horizontalAlign
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get horizontalAlign():String
     {
@@ -105,6 +125,11 @@

     /**
      * @copy mx.layout.VerticalLayout#rowCount
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get rowCount():int
     {
@@ -117,6 +142,11 @@

     /**
      * @copy mx.layout.VerticalLayout#requestedRowCount
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get requestedRowCount():int
     {
@@ -139,6 +169,11 @@

     /**
      * @copy mx.layout.VerticalLayout#rowHeight
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get rowHeight():Number
     {
@@ -161,6 +196,11 @@

     /**
      * @copy mx.layout.VerticalLayout#variableRowHeight
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get variableRowHeight():Boolean
     {
@@ -183,6 +223,11 @@

     /**
      * @copy mx.layout.VerticalLayout#firstIndexInView
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get firstIndexInView():int
     {
@@ -197,6 +242,11 @@

     /**
      * @copy mx.layout.VerticalLayout#lastIndexInview
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get lastIndexInView():int
     {


M Fix goToAndStop whille the animation isn't playing

--- src/aerys/minko/scene/controller/AnimationController.as
+++ src/aerys/minko/scene/controller/AnimationController.as
@@ -161,13 +161,11 @@

 		public function gotoAndStop(time : Object) : void
 		{
-			var timeValue : uint = getAnimationTime(time);
-
-			if (timeValue < _loopBeginTime || timeValue > _loopEndTime)
-				throw new Error('Time value is outside of playback window. To reset playback window, call resetPlaybackWindow.');
-
-			_currentTime = timeValue;
+			gotoAndPlay(time);
 			stop();
+
+			// force refresh for next frame
+			_updateOneTime = true;
 		}

 		public function play() : void


Set buffering = false when streaming stops.


Only include subtitle text.

Only include subtitle text.

--- HLSPlugin/src/com/kaltura/hls/m2ts/M2TSFileHandler.as
+++ HLSPlugin/src/com/kaltura/hls/m2ts/M2TSFileHandler.as
@@ -395,7 +395,7 @@
 					cue = potentials[potentials.length - 1];
 					if(cue != _lastCue)
 					{
-						_parser.createAndSendCaptionMessage( cue.startTime, cue.buffer, subtitleTrait.language );
+						_parser.createAndSendCaptionMessage( cue.startTime, cue.text, subtitleTrait.language );
 						_lastInjectedSubtitleTime = cue.startTime;
 						_lastCue = cue;
 					}


Added putColumn()

Added putColumn()

--- WeaveData/src/weave/data/DataSources/CSVDataSource.as
+++ WeaveData/src/weave/data/DataSources/CSVDataSource.as
@@ -44,9 +44,11 @@
 	import weave.api.newLinkableChild;
 	import weave.api.registerLinkableChild;
 	import weave.api.reportError;
+	import weave.core.ExternalSessionStateInterface;
 	import weave.core.LinkableString;
 	import weave.core.LinkableVariable;
 	import weave.core.UntypedLinkableVariable;
+	import weave.data.AttributeColumns.DynamicColumn;
 	import weave.data.AttributeColumns.NumberColumn;
 	import weave.data.AttributeColumns.ProxyColumn;
 	import weave.data.AttributeColumns.ReferencedColumn;
@@ -208,15 +210,48 @@

 			getCallbackCollection(destinationHashMap).delayCallbacks();
 			var refCol:ReferencedColumn = destinationHashMap.requestObject(null, ReferencedColumn, false);
-			var hierarchyColRef1:HierarchyColumnReference =  refCol.dynamicColumnReference.requestLocalObject(HierarchyColumnReference, false);
-
-			getCallbackCollection(hierarchyColRef1).delayCallbacks();
-			hierarchyColRef1.hierarchyPath.value = <attribute title={csvColumnName} csvColumn={ csvColumnName }/>;
-			hierarchyColRef1.dataSourceName.value = sourceOwner.getName(this);
-			getCallbackCollection(hierarchyColRef1).resumeCallbacks();
+			var hcr:HierarchyColumnReference =  refCol.dynamicColumnReference.requestLocalObject(HierarchyColumnReference, false);
+
+			getCallbackCollection(hcr).delayCallbacks();
+			hcr.hierarchyPath.value = <attribute title={csvColumnName} csvColumn={ csvColumnName }/>;
+			hcr.dataSourceName.value = sourceOwner.getName(this);
+			getCallbackCollection(hcr).resumeCallbacks();

 			getCallbackCollection(destinationHashMap).resumeCallbacks();
 			return refCol;
+		}
+
+		/**
+		 * This will modify a column object in the session state to refer to a column in this CSVDataSource.
+		 * @param columnNameOrIndex Either a column name or zero-based column index.
+		 * @param columnPath A DynamicColumn or the path in the session state that refers to a DynamicColumn.
+		 * @return A value of true if successful, false if not.
+		 * @see weave.api.IExternalSessionStateInterface
+		 */
+		public function putColumn(columnNameOrIndex:Object, dynamicColumnOrPath:Object):Boolean
+		{
+			var sourceOwner:ILinkableHashMap = getLinkableOwner(this) as ILinkableHashMap;
+			if (!sourceOwner)
+				return false;
+			var columnName:String = columnNameOrIndex as String || getColumnNames()[columnNameOrIndex] as String;
+			var dc:DynamicColumn = dynamicColumnOrPath as DynamicColumn;
+			if (!dc)
+				dc = (WeaveAPI.ExternalSessionStateInterface as ExternalSessionStateInterface).getObject(dynamicColumnOrPath as Array) as DynamicColumn;
+			if (!columnName || !dc)
+				return false;
+
+			getCallbackCollection(dc).delayCallbacks();
+			var refCol:ReferencedColumn = dc.requestLocalObject(ReferencedColumn, false);
+			var hcr:HierarchyColumnReference =  refCol.dynamicColumnReference.requestLocalObject(HierarchyColumnReference, false);
+
+			getCallbackCollection(hcr).delayCallbacks();
+			hcr.hierarchyPath.value = <attribute title={columnName} csvColumn={columnName}/>;
+			hcr.dataSourceName.value = sourceOwner.getName(this);
+			getCallbackCollection(hcr).resumeCallbacks();
+
+			getCallbackCollection(dc).resumeCallbacks();
+
+			return true;
 		}


improved error messages and fixed bug with disposing old service

--- WeaveData/src/weave/data/DataSources/WFSDataSource.as
+++ WeaveData/src/weave/data/DataSources/WFSDataSource.as
@@ -25,14 +25,14 @@
 	import mx.utils.ObjectUtil;

 	import weave.api.WeaveAPI;
-	import weave.api.disposeObjects;
-	import weave.api.registerLinkableChild;
-	import weave.api.reportError;
 	import weave.api.data.ColumnMetadata;
 	import weave.api.data.DataTypes;
 	import weave.api.data.IAttributeColumn;
 	import weave.api.data.IColumnReference;
 	import weave.api.data.IQualifiedKey;
+	import weave.api.disposeObjects;
+	import weave.api.registerLinkableChild;
+	import weave.api.reportError;
 	import weave.core.LinkableBoolean;
 	import weave.data.AttributeColumns.GeometryColumn;
 	import weave.data.AttributeColumns.NumberColumn;
@@ -68,7 +68,7 @@
 		{
 			if (url.value == null)
 				url.value = '/geoserver/wfs';
-			disposeObjects(WFSDataSource);
+			disposeObjects(wfsDataService);

 			//TODO: dispose of all old columns, too

@@ -307,8 +307,10 @@
 				return null;
 			var prefix:String = array[0];
 			var localName:String = array[1];
-			var uri:String = xmlContainingNamespaceInfo.namespace(prefix).uri;
-			return new QName(uri, localName);
+			var ns:* = xmlContainingNamespaceInfo.namespace(prefix);
+			if (ns)
+				return new QName(ns.uri, localName);
+			return null;
 		}

 		private function handleColumnDownload(event:ResultEvent, request:ColumnRequestToken):void
@@ -357,7 +359,7 @@
 				var keyQName:QName = getQName(result, featureTypeName);
 				if (keyQName == null)
 				{
-					trace('handleColumnDownload(): Unable to continue because featureTypeName does not have a valid namespace: "'+featureTypeName+'"');
+					reportError('WFS response did not contain namespace of featureTypeName: ' + hierarchyNode.toXMLString());
 					return;
 				}
 				var dataQName:QName = new QName(keyQName.uri, propertyName); // use same namespace as keyQName


Key change not allowed only for root entity keys

--- collect-client/src/main/flex/org/openforis/collect/presenter/InputFieldPresenter.as
+++ collect-client/src/main/flex/org/openforis/collect/presenter/InputFieldPresenter.as
@@ -419,7 +419,7 @@
 			dispatchFocusOutEvent();
 		}

-		protected function dispatchVisitedEvent():void {
+		protected function dispatchVisitedEvent():void {
 			view.visited = true;
 			var inputFieldEvent:InputFieldEvent = new InputFieldEvent(InputFieldEvent.VISITED);
 			inputFieldEvent.inputField = view;
@@ -569,11 +569,12 @@
 		}

 		protected function updateView():void {
+			var attrDef:AttributeDefinitionProxy = view.attributeDefinition;
 			view.editable = Application.activeRecordEditable
-				&& ! view.attributeDefinition.calculated
-				&& view.attributeDefinition.editable
+				&& ! attrDef.calculated
+				&& attrDef.editable
 				&& (Application.activeRecord.newRecord
-					|| ! view.attributeDefinition.key
+					|| ! (attrDef.key && attrDef.nearestParentMultipleEntity == attrDef.rootEntity)
 					|| Application.activeSurvey.keyChangeAllowed);

 			//update view according to attribute (generic text value)


Transferred from the Adobe Open Source Subversion Repository

Revision: 2862
Author:   rfrishbe@adobe.com
Date:     2008-08-16T01:18:35.179682Z

Log Message:
-----------
Change a comment on SkinnableComponent.as

Fixed an issue on UIComponent where initially setting the state of a component would slow down runtime performance by quite a lot (proportional to how many total components are on the screen).  This affected Halo as well, but it affects Gumbo a lot because the default state of a component usually needs to be set.  For the case of 2000 Gumbo buttons, this speeds up creation time by about 50%.

QE: Yes
Doc: No
Bugs: -
Reviewer: Glenn and Corey

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

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

--- frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as
@@ -414,13 +414,13 @@
         }
     }

-	/**
-	 *  Unload the skin for this component. This method should not be called
-	 *  directly. Typically, subclasses will not need to override this method.
-	 *
-	 *  This method is called whenever a skin is changed at runtime. It removes the skin,
-	 *  clears all part associations, and calls unloadingSkin().
-	 */
+    /**
+     *  Unload the skin for this component. This method should not be called
+     *  directly. Typically, subclasses will not need to override this method.
+     *
+     *  This method is called whenever a skin is changed at runtime. It calls
+     *  unloadingSkin(), removes the skin, and clears all part associations.
+     */
     protected function unloadSkin():void
     {
         if (skinObject)


Transferred from the Adobe Open Source Subversion Repository

Revision: 2478
Author:   clucier@adobe.com
Date:     2008-07-14T21:57:30.401666Z

Log Message:
-----------
Removed idAssigned dispatching logic.
Bugs: SDK-16023
QA: Yes
Reviewer: Glenn

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/SkinnableComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4/.project</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/init/ValueInitializer.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as
@@ -326,7 +326,7 @@
      */
     protected function attachBehaviors():void
     {
-        skinObject.addEventListener("idAssigned", skin_idAssignedHandler);
+        skinObject.addEventListener(PropertyChangeEvent.PROPERTY_CHANGE, skin_propertyChangeHandler);

         // Declarative behaviors get attached here
     }
@@ -337,7 +337,7 @@
      */
     protected function removeBehaviors():void
     {
-        skinObject.removeEventListener("idAssigned", skin_idAssignedHandler);
+        skinObject.removeEventListener(PropertyChangeEvent.PROPERTY_CHANGE, skin_propertyChangeHandler);

         // Declarative behaviors get removed here
     }
@@ -591,7 +591,7 @@
      * Called when a slot on the skin has been assigned a value. Deferred parts
      * may be instantiated long after the skin has been created.
      */
-    private function skin_idAssignedHandler(event:PropertyChangeEvent):void
+    private function skin_propertyChangeHandler(event:PropertyChangeEvent):void
     {
         var className:String = getQualifiedClassName(this);
         var parts:Array = getSkinPartMetadata(className);


Transferred from the Adobe Open Source Subversion Repository

Revision: 3509
Author:   jimurphy@adobe.com
Date:     2008-10-07T18:19:17.646255Z

Log Message:
-----------
Rename of flex -> mx.

For compatibility reasons it was decided that the new functionality remain integrated with the old framework, although we will continue to build two separate SWCs, one with primarily existing framework classes, and one with new Flex 4 classes. This change removes duplicate names from the Flex 4 framework to avoid class name overlapping with the old framework code.  The naming overlap consists of two major areas:  New Components, and New Effects

Modified Paths:
--------------
386 paths were modified

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

--- frameworks/projects/spark/src/spark/effects/interpolation/MultiValueInterpolator.as
+++ frameworks/projects/spark/src/spark/effects/interpolation/MultiValueInterpolator.as
@@ -8,7 +8,7 @@
 //  in accordance with the terms of the license agreement accompanying it.
 //
 ////////////////////////////////////////////////////////////////////////////////
-package flex.effects.interpolation
+package mx.effects.interpolation
 {
 /**
  * ArrayInterpolator interpolates each element of start/end array


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

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

 package spark.transitions
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 11915
Author:   gosmith@adobe.com
Date:     2009-11-18T00:01:12.483185Z

Log Message:
-----------
Tweaked metadata for two Spark text styles.

The 'baselineShift' style should not declare any enumerated values, because this makes the MXML compiler not allow numeric values like baselineShift="10".

The 'direction' style should not have "inherit" in its enumeration. TLF FlowElements have formatting properties which can be set to an "inherit" value, but this does not make sense at the level of Flex components and their CSS styles. Flex styles either inherit or don't and you can't specify them to do the other. The 'direction' style is inherently inheriting due to inherit="yes".

QE notes: None
Doc notes: None
Bugs: SDK-23929
Reviewer: Evtim
Tests run: ant checkintests
Is noteworthy for integration: No

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

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

--- frameworks/projects/spark/src/spark/styles/metadata/BasicInheritingTextStyles.as
+++ frameworks/projects/spark/src/spark/styles/metadata/BasicInheritingTextStyles.as
@@ -27,7 +27,7 @@
  *  @playerversion AIR 1.5
  *  @productversion Flex 4
  */
-[Style(name="baselineShift", type="Object", inherit="yes", enumeration="superscript,subscript,inherit")]
+[Style(name="baselineShift", type="Object", inherit="yes")]

 /**
  *  @copy flashx.textLayout.formats.ITextLayoutFormat#cffHinting
@@ -77,7 +77,7 @@
  *  @playerversion AIR 1.5
  *  @productversion Flex 4
  */
-[Style(name="direction", type="String", enumeration="ltr,rtl,inherit", inherit="yes")]
+[Style(name="direction", type="String", enumeration="ltr,rtl", inherit="yes")]

 /**
  *  @copy flashx.textLayout.formats.ITextLayoutFormat#dominantBaseline


Transferred from the Adobe Open Source Subversion Repository

Revision: 19363
Author:   mhorn@adobe.com
Date:     2010-12-14T16:57:25.600360Z

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/styles/metadata/BasicInheritingTextStyles.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/graphics/GradientEntry.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/MenuBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/primitives/Path.as</path>

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

--- frameworks/projects/spark/src/spark/styles/metadata/BasicInheritingTextStyles.as
+++ frameworks/projects/spark/src/spark/styles/metadata/BasicInheritingTextStyles.as
@@ -237,6 +237,9 @@
  *
The default value is undefined. This property inherits its value from an ancestor; if still undefined, it inherits from the global locale style.
  * During the application initialization, if the global locale style is undefined, then the default value is set to "en".

  *
+ *
When using the Spark formatters and globalization classes, you can set this style on the root application to the value of the LocaleID.DEFAULT constant.
+ * Those classes will then use the client operating system's international preferences.

+ *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5


Added wire support

Added wire support

--- src/Components/Wire.as
+++ src/Components/Wire.as
@@ -1,5 +1,6 @@
 package Components {
 	import flash.geom.Point;
+	import flash.utils.ByteArray;
 	import Layouts.PortLayout;
 	import Modules.Module;
 	/**
@@ -431,33 +432,7 @@
 			return this;
 		}

-		public function toString():String {
-			return "WIRE: " + path[0].x + ", " + path[0].y + " -> " + path[path.length - 1].x + ", " + path[path.length -1].y;
-		}
-
-		protected function log(...args):void {
-			if (DEBUG.PRINT_CONNECTIONS)
-				C.log(args);
-		}
-
-		public function saveString():String {
-			var pointStrings:Vector.<String> = new Vector.<String>;
-			for each (var p:Point in path)
-				pointStrings.push(p.x + U.COORD_DELIM + p.y);
-			return pointStrings.join(U.POINT_DELIM);
-		}
-
-		public static function fromString(str:String):Wire {
-			if (!str.length) return null;
-			var path:Vector.<Point> = new Vector.<Point>;
-			for each (var strPoint:String in str.split(U.POINT_DELIM)) {
-				var strCoords:Array = strPoint.split(U.COORD_DELIM);
-				path.push(new Point(int(strCoords[0]), int(strCoords[1])));
-			}
-			var wire:Wire = new Wire(path[0]);
-			wire.path = path;
-			return wire;
-		}
+

 		public static function wireBetween(Start:Point, End:Point):Wire {
 			var w:Wire = new Wire(Start);
@@ -468,6 +443,92 @@
 			return w;
 		}

+
+
+
+		public function toString():String {
+			return "WIRE: " + path[0].x + ", " + path[0].y + " -> " + path[path.length - 1].x + ", " + path[path.length -1].y;
+		}
+
+		protected function log(...args):void {
+			if (DEBUG.PRINT_CONNECTIONS)
+				C.log(args);
+		}
+
+		public function saveString():String {
+			var pointStrings:Vector.<String> = new Vector.<String>;
+			for each (var p:Point in path)
+				pointStrings.push(p.x + U.COORD_DELIM + p.y);
+			return pointStrings.join(U.POINT_DELIM);
+		}
+
+		public function getBytes():ByteArray {
+			//format: byte-length (int), start (int, int), h-delta (int), v-delta (int) ...
+			var bytes:ByteArray = new ByteArray;
+
+			var deltas:Vector.<int> = new Vector.<int>;
+			var switchbackPoint:Point = path[0];
+			for (var i:int = 1; i < path.length; i++) {
+				var currentPoint:Point = path[i];
+				var delta:Point = currentPoint.subtract(switchbackPoint);
+				if (delta.x && delta.y) {
+					var lastPoint:Point = path[i - 1];
+					var lastDelta:Point = lastPoint.subtract(switchbackPoint);
+					if (!deltas.length && lastDelta.y)
+						deltas.push(0);
+					deltas.push(lastDelta.x ? lastDelta.x : lastDelta.y);
+					switchbackPoint = lastPoint;
+				}
+			}
+			deltas.push(path[path.length - 1].subtract(switchbackPoint).length);
+
+			var length:int = 4 + 4 + 4 + deltas.length * 4;
+			bytes.writeInt(length);
+			bytes.writeInt(path[0].x);
+			bytes.writeInt(path[0].y);
+			for each (var deltaV:int in deltas)
+				bytes.writeInt(deltaV);
+
+			if (bytes.length != length)
+				throw new Error("Error in calculating length!");
+
+			return bytes;
+		}
+
+		public static function fromString(str:String):Wire {
+			if (!str.length) return null;
+			var path:Vector.<Point> = new Vector.<Point>;
+			for each (var strPoint:String in str.split(U.POINT_DELIM)) {
+				var strCoords:Array = strPoint.split(U.COORD_DELIM);
+				path.push(new Point(int(strCoords[0]), int(strCoords[1])));
+			}
+			var wire:Wire = new Wire(path[0]);
+			wire.path = path;
+			return wire;
+		}
+
+		public static function fromBytes(bytes:ByteArray, end:int):Wire {
+			var start:Point = new Point(bytes.readInt(), bytes.readInt());
+			var wire:Wire = new Wire(start);
+			var horizontal:Boolean = true;
+			while (bytes.position < end) {
+				var delta:int = bytes.readInt();
+				var absoluteDelta:int = Math.abs(delta);
+				var switchbackPoint:Point = wire.path[wire.path.length - 1];
+
+				for (var absd:int = 1; absd <= absoluteDelta; absd++) {
+					var del:int = (delta > 0 ? 1 : -1) * absd;
+					if (horizontal)
+						wire.path.push(new Point(switchbackPoint.x + del, switchbackPoint.y));
+					else
+						wire.path.push(new Point(switchbackPoint.x, switchbackPoint.y + del));
+				}
+
+				horizontal = !horizontal;
+			}
+			return wire;
+		}
+
 		private const LEFT_DELTA:Point = new Point( -1, 0);
 		private const RIGHT_DELTA:Point = new Point( 1, 0);
 		private const UP_DELTA:Point = new Point( 0, -1);


blender mode add strafe in ortho w shift & ctrl

--- bin/Data/Scripts/Editor/EditorView.as
+++ bin/Data/Scripts/Editor/EditorView.as
@@ -1273,17 +1273,25 @@
         else if (hotKeyMode == HOTKEYS_MODE_BLENDER)
         {
             if (mouseWheelCameraPosition && !camera.orthographic )
-            {   if (input.keyDown[KEY_LSHIFT])
-                    cameraNode.Translate(Vector3(0, -cameraBaseSpeed, 0) * -input.mouseMoveWheel* 5* timeStep * speedMultiplier);
+            {
+                if (input.keyDown[KEY_LSHIFT])
+                    cameraNode.Translate(Vector3(0, -cameraBaseSpeed, 0) * -input.mouseMoveWheel*5* timeStep * speedMultiplier);
                 else if (input.keyDown[KEY_LCTRL])
                     cameraNode.Translate(Vector3(-cameraBaseSpeed,0, 0) * -input.mouseMoveWheel*20 * timeStep * speedMultiplier);
                 else
                     cameraNode.Translate(Vector3(0, 0, -cameraBaseSpeed) * -input.mouseMoveWheel*20 * timeStep * speedMultiplier);
             }
             else
-            {
-                float zoom = camera.zoom + -input.mouseMoveWheel *.1 * speedMultiplier;
-                camera.zoom = Clamp(zoom, .1, 30);
+            {
+                if (input.keyDown[KEY_LSHIFT])
+                    cameraNode.Translate(Vector3(0, -cameraBaseSpeed, 0) * -input.mouseMoveWheel*5* timeStep * speedMultiplier);
+                else if (input.keyDown[KEY_LCTRL])
+                    cameraNode.Translate(Vector3(-cameraBaseSpeed,0, 0) * -input.mouseMoveWheel*20 * timeStep * speedMultiplier);
+                else
+                {
+                    float zoom = camera.zoom + -input.mouseMoveWheel *.1 * speedMultiplier;
+                    camera.zoom = Clamp(zoom, .1, 30);
+                }
             }
         }


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

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

 package mx.core
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 5331
Author:   dloverin@adobe.com
Date:     2009-03-16T20:29:20.872892Z

Log Message:
-----------
FxApplication related API changes.

1. Rename ApplicationGlobals.application -> FlexGlobals.topLevelApplication
2. Application.application will be deprecated. FlexGlobals.topLevelApplication will be the recommend alternative.
3. Application.application will return null if the top-level application is not of type Application or a subclass of Application.
4. Change the FxApplication.backgroundColor property from type Object to uint.

QE Notes: None
Doc Notes: None
Bugs: sdk-19677
Reviewer: Ryan
tests: checkintests, Application mustella tests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ActivatorSkin.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/core/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/BrowserManagerImpl.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ApplicationGlobals.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/LayoutManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Menu.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/haloclassic/src/haloclassic/ActivatorSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Alert.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/RadioButtonGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/HistoryManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxApplication.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/effects/effectClasses/ResizeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxRadioButtonGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/halo/src/mx/skins/halo/ActivatorSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/checkinapp/ProductDetail.mxml</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/effects/Glow.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ApplicationGlobals.as" copyfrom-rev="5314" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/FlexGlobals.as</path>

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

--- frameworks/projects/airframework/src/mx/core/Window.as
+++ frameworks/projects/airframework/src/mx/core/Window.as
@@ -30,10 +30,12 @@

 import mx.controls.Button;
 import mx.controls.FlexNativeMenu;
+import mx.core.FlexGlobals;
 import mx.core.windowClasses.StatusBar;
 import mx.core.windowClasses.TitleBar;
 import mx.events.AIREvent;
 import mx.events.FlexEvent;
+
 import mx.events.FlexNativeWindowBoundsEvent;
 import mx.events.WindowExistenceEvent;
 import mx.managers.CursorManagerImpl;
@@ -2996,9 +2998,9 @@

             // Event for Automation so we know when windows
             // are created or destroyed.
-            if (ApplicationGlobals.application)
-            {
-                ApplicationGlobals.application.dispatchEvent(
+            if (FlexGlobals.topLevelApplication)
+            {
+                FlexGlobals.topLevelApplication.dispatchEvent(
                     new WindowExistenceEvent(WindowExistenceEvent.WINDOW_CREATE,
                                              false, false, this));
             }
@@ -3423,9 +3425,9 @@

         // Event for Automation so we know when windows
         // are created or destroyed.
-        if (ApplicationGlobals.application)
-        {
-            ApplicationGlobals.application.dispatchEvent(
+        if (FlexGlobals.topLevelApplication)
+        {
+            FlexGlobals.topLevelApplication.dispatchEvent(
                 new WindowExistenceEvent(WindowExistenceEvent.WINDOW_CLOSE,
                                          false, false, this));
         }


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

--- frameworks/projects/mx/src/mx/skins/halo/SwatchSkin.as
+++ frameworks/projects/mx/src/mx/skins/halo/SwatchSkin.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2004-2006 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.halo
 {