Transferred from the Adobe Open Source Subversion Repository

Revision: 14744
Author:   klin@adobe.com
Date:     2010-03-12T23:33:39.865284Z

Log Message:
-----------
Merge revision 14741 from 4.x to trunk.

Adding ILayoutDirectionElement to address issues with non-styled components such as embedded bitmaps. Also, addressed issues with changing layoutDirection at runtime.

-Added ILayoutDirectionElement.as with the layoutDirection property and invalidateLayoutDirection(). I took them out of IVisualElement.
-Moved the mirroring code from FlexBitmap to BitmapAsset as well as SpriteAsset. Also, implemented ILayoutDirectionElement in both.
-Addressed issues with layoutDirection changing at runtime by adding logic in UIComponent and Container to call invalidateLayoutDirection() on all of their ILayoutDirectionElement children.
-Updated various other components to use the new interface.
-Updated the dependency checker.

QE notes: No
Doc notes: No
Bugs: SDK-25656, SDK-25685, SDK-25726, SDK-25758 , SDK-25776 , SDK-25784 , SDK-25791, SDK-25806
Reviewer: Jason, Carol
Tests run: checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/SpriteAsset.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/FlexBitmap.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/BitmapAsset.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/LayoutDirection.as</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/frameworkSwcExceptionsList.txt</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/DragManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/core/ILayoutDirectionElement.as" copyfrom-rev="14741" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ILayoutDirectionElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>

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

--- frameworks/projects/framework/src/mx/core/UIComponent.as
+++ frameworks/projects/framework/src/mx/core/UIComponent.as
@@ -7593,7 +7593,7 @@
      */
     public function invalidateLayoutDirection():void
     {
-        const parentElt:IVisualElement = parent as IVisualElement;
+        const parentElt:ILayoutDirectionElement = parent as ILayoutDirectionElement;
         const thisLayoutDirection:String = layoutDirection;

         // If this element's layoutDirection doesn't match its parent's, then
@@ -7612,28 +7612,38 @@
             invalidateTransform();
         }

-        //  If this is a leaf node, then we're done.  If not, the styleChanged() machinery
-        //  (via commitProperties()) will deal with UIComponent children.   We have to
-        //  deal with IVisualElement children that don't support styles, like
-        //  GraphicElements, here.
-
-        if (!(this is IVisualElementContainer))
-            return;
-
-
         // Children are notified only if the component's layoutDirection has changed.
         if (oldLayoutDirection != layoutDirection)
         {
-            const thisContainer:IVisualElementContainer = IVisualElementContainer(this);
-            const thisContainerNumElements:int = thisContainer.numElements;
+            var i:int;

-            for (var i:int = 0; i < thisContainerNumElements; i++)
+            //  If we have children, the styleChanged() machinery (via commitProperties()) will
+            //  deal with UIComponent children. We have to deal with IVisualElement and
+            //  ILayoutDirectionElement children that don't support styles, like GraphicElements, here.
+            if (this is IVisualElementContainer)
             {
-                var elt:IVisualElement = thisContainer.getElementAt(i);
-                // Can be null if IUITextField or IUIFTETextField.
-                if (elt && !(elt is IStyleClient))
-                    elt.invalidateLayoutDirection();
-            }
+                const thisContainer:IVisualElementContainer = IVisualElementContainer(this);
+                const thisContainerNumElements:int = thisContainer.numElements;
+
+                for (i = 0; i < thisContainerNumElements; i++)
+                {
+                    var elt:IVisualElement = thisContainer.getElementAt(i);
+                    // Can be null if IUITextField or IUIFTETextField.
+                    if (elt && !(elt is IStyleClient))
+                        elt.invalidateLayoutDirection();
+                }
+            }
+            else
+            {
+                const thisNumChildren:int = numChildren;
+
+                for (i = 0; i < thisNumChildren; i++)
+                {
+                    var child:DisplayObject = getChildAt(i);
+                    if (!(child is IStyleClient) && child is ILayoutDirectionElement)
+                        ILayoutDirectionElement(child).invalidateLayoutDirection();
+                }
+            }
         }
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 3934
Author:   egeorgie@adobe.com
Date:     2008-10-28T22:17:08.892489Z

Log Message:
-----------
Fix bug http://bugs.adobe.com/jira/browse/SDK-17282 focus rectangle is not working correctly if Gumbo FxButton has a modified scaleX or scaleY

UIComponent adjustFocusRect was using width and height properties. I had to change those to use unscaledWidth, unscaledHeight and multiply by the abs(scaleX), abs(scaleY)

QE Notes: Affects focus on components with scale. Zoom effects on components in focus.
Doc Notes: None
Bugs: SDK-17282
Reviewer: Ryan
tests: checkintests, Mustella (UIComponent methods)

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as

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

--- frameworks/projects/framework/src/mx/core/UIComponent.as
+++ frameworks/projects/framework/src/mx/core/UIComponent.as
@@ -7467,9 +7467,24 @@
     {
         if (!obj)
             obj = this;
+
+        // Make sure that when we calculate the size of the Focus rect we
+        // work with post-scale width & height.
+        var width:Number;
+        var height:Number;
+        if (obj is UIComponent)
+        {
+            width = UIComponent(obj).unscaledWidth * Math.abs(obj.scaleX);
+            height = UIComponent(obj).unscaledHeight * Math.abs(obj.scaleY);
+        }
+        else
+        {
+            width = obj.width;
+            height = obj.height;
+        }

         // Something inside the lisder has a width and height of NaN
-        if (isNaN(obj.width) || isNaN(obj.height))
+        if (isNaN(width) || isNaN(height))
             return;

         var fm:IFocusManager = focusManager;
@@ -7494,8 +7509,8 @@
             //if (getStyle("focusColor") != rectCol)
             //  setStyle("focusColor", rectCol);

-            focusObj.setActualSize(obj.width + 2 * thickness,
-                             obj.height + 2 * thickness);
+            focusObj.setActualSize(width + 2 * thickness,
+                                   height + 2 * thickness);

             var pt:Point;


Transferred from the Adobe Open Source Subversion Repository

Revision: 16663
Author:   egeorgie@adobe.com
Date:     2010-06-24T21:23:01.776267Z

Log Message:
-----------
Tweak framework perf instrumentation

- Replace .toString() calls with name, since it's cheaper
- Add tolerance of 2 ms.

QE notes: None
Doc notes: None
Bugs: N/A
Reviewer: Ryan
Tests run: ant main, doc, checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/utils/PerfUtil.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/LayoutManager.as</path>

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

--- frameworks/projects/framework/src/mx/core/UIComponent.as
+++ frameworks/projects/framework/src/mx/core/UIComponent.as
@@ -7391,7 +7391,7 @@

         CONFIG::performanceInstrumentation
         {
-            perfUtil.markEnd(this.toString() + ".createChildren()", token, 0 /*tolerance*/);
+            perfUtil.markEnd(".createChildren()", token, 2 /*tolerance*/, this);
         }

         childrenCreated();


Transferred from the Adobe Open Source Subversion Repository

Revision: 9209
Author:   egeorgie@adobe.com
Date:     2009-08-10T21:19:44.304070Z

Log Message:
-----------
Fix bug http://bugs.adobe.com/jira/browse/SDK-22457 [Gumbo_Priority] Layout bounds for FXG items are incorrect

Fix:
1. Add resizeMode property with default of 'scale' to SpriteVisualElement
2. Switch the Graphic class default for the resizeMode property to 'scale'
3. Beef up the transformation and sizing logic of the SpriteVisualElement.as
4. Minor clean-up and fixes for UIComponent and UIMovieClip transformations

QE notes: None
Doc notes: None
Bugs: SDK-22457
Reviewer: Ryan
Tests run: checkintests, spark/primitives/graphic, graphics, graphicTags

Is noteworthy for integration: Yes, bug came from Thermo.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/MatrixUtil.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/framework/src/mx/geom/CompoundTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/Graphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>

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

--- frameworks/projects/framework/src/mx/core/UIComponent.as
+++ frameworks/projects/framework/src/mx/core/UIComponent.as
@@ -81,6 +81,7 @@
 import mx.styles.StyleProtoChain;
 import mx.utils.ColorUtil;
 import mx.utils.GraphicsUtil;
+import mx.utils.MatrixUtil;
 import mx.utils.NameUtil;
 import mx.utils.StringUtil;
 import mx.validators.IValidatorListener;
@@ -1949,7 +1950,7 @@
         if (x == value)
             return;

-        if(_layoutFeatures == null)
+        if (_layoutFeatures == null)
         {
             super.x  = value;
         }
@@ -1971,8 +1972,8 @@
      *  @inheritDoc
      *
      *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
      *  @productversion Flex 3
      */
     override public function get z():Number
@@ -2122,7 +2123,9 @@
     {
         if (transformZ == value)
             return;
-        if(_layoutFeatures == null) initAdvancedLayoutFeatures();
+		if (_layoutFeatures == null)
+			initAdvancedLayoutFeatures();
+
         _layoutFeatures.transformZ = value;
         invalidateTransform();
         invalidateProperties();
@@ -2159,24 +2162,14 @@
             return;

         hasDeltaIdentityTransform = false;
-        if(_layoutFeatures == null)
+        if (_layoutFeatures == null)
         {
             // clamp the rotation value between -180 and 180.  This is what
             // the Flash player does and what we mimic in CompoundTransform;
             // however, the Flash player doesn't handle values larger than
             // 2^15 - 1 (FP-749), so we need to clamp even when we're
             // just setting super.rotation.
-            if (value > 180 || value < -180)
-            {
-                value = value % 360;
-
-                if (value > 180)
-                    value = value - 360;
-                else if (value < -180)
-                    value = value + 360;
-            }
-
-            super.rotation = value;
+            super.rotation = MatrixUtil.clampRotation(value);
         }
         else
         {
@@ -2217,8 +2210,8 @@
      * This property is ignored during calculation by any of Flex's 2D layouts.
      *
      *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 1.5
      *  @productversion Flex 3
      */
     override public function get rotationX():Number
@@ -2316,7 +2309,7 @@
         if (y == value)
             return;

-        if(_layoutFeatures == null)
+        if (_layoutFeatures == null)
         {
             super.y  = value;
         }
@@ -2537,7 +2530,7 @@
             hasDeltaIdentityTransform = false;

             // trace("set scaleX:" + this + "value = " + value);
-            if(_layoutFeatures == null)
+            if (_layoutFeatures == null)
                 super.scaleX = value;
             else
             {
@@ -2618,7 +2611,7 @@
                 return;

             hasDeltaIdentityTransform = false;
-            if(_layoutFeatures == null)
+            if (_layoutFeatures == null)
                 super.scaleY = value;
             else
             {
@@ -2675,9 +2668,12 @@
             return;
         if (_layoutFeatures == null)
             initAdvancedLayoutFeatures();
-        _layoutFeatures.layoutScaleZ = value;
+
+		hasDeltaIdentityTransform = false;
+		_layoutFeatures.layoutScaleZ = value;
         invalidateTransform();
         invalidateProperties();
+		invalidateParentSizeAndDisplayList();
         dispatchEvent(new Event("scaleZChanged"));
     }

@@ -7785,7 +7781,7 @@
      */
     protected function validateMatrix():void
     {
-        if(_layoutFeatures != null && _layoutFeatures.updatePending == true)
+        if (_layoutFeatures != null && _layoutFeatures.updatePending == true)
         {
             applyComputedMatrix();
         }
@@ -7793,7 +7789,7 @@
         if (_maintainProjectionCenter)
         {
             var pmatrix:PerspectiveProjection = super.transform.perspectiveProjection;
-            if(pmatrix != null)
+            if (pmatrix != null)
             {
                 pmatrix.projectionCenter = new Point(unscaledWidth/2,unscaledHeight/2);
             }
@@ -8409,7 +8405,7 @@

         if (x != this.x)
         {
-            if(_layoutFeatures == null)
+            if (_layoutFeatures == null)
                 super.x  = x;
             else
                 _layoutFeatures.layoutX = x;
@@ -8420,7 +8416,7 @@

         if (y != this.y)
         {
-            if(_layoutFeatures == null)
+            if (_layoutFeatures == null)
                 super.y  = y;
             else
                 _layoutFeatures.layoutY = y;
@@ -11539,7 +11535,7 @@
      */
     override public function get transform():flash.geom.Transform
     {
-        if(_transform == null)
+        if (_transform == null)
         {
             setTransform(new mx.geom.Transform(this));
         }
@@ -11547,7 +11543,7 @@
     }

     /**
-     * @private
+     *  @private
      */
     override public function set transform(value:flash.geom.Transform):void
     {
@@ -11568,9 +11564,9 @@

         setTransform(value);

-        if(m != null)
+        if (m != null)
             setLayoutMatrix(m.clone(), true /*triggerLayoutPass*/);
-        else if(m3 != null)
+        else if (m3 != null)
             setLayoutMatrix3D(m3.clone(), true /*triggerLayoutPass*/);

         super.transform.colorTransform = ct;
@@ -11593,12 +11589,13 @@
      */
     public function set postLayoutTransformOffsets(value:TransformOffsets):void
     {
-        if(_layoutFeatures == null) initAdvancedLayoutFeatures();
+		if (_layoutFeatures == null)
+			initAdvancedLayoutFeatures();

-        if(_layoutFeatures.postLayoutTransformOffsets != null)
+        if (_layoutFeatures.postLayoutTransformOffsets != null)
             _layoutFeatures.postLayoutTransformOffsets.removeEventListener(Event.CHANGE,transformOffsetsChangedHandler);
         _layoutFeatures.postLayoutTransformOffsets = value;
-        if(_layoutFeatures.postLayoutTransformOffsets != null)
+        if (_layoutFeatures.postLayoutTransformOffsets != null)
             _layoutFeatures.postLayoutTransformOffsets.addEventListener(Event.CHANGE,transformOffsetsChangedHandler);
     }

@@ -11628,7 +11625,7 @@
     public function set maintainProjectionCenter(value:Boolean):void
     {
         _maintainProjectionCenter = value;
-        if(value && super.transform.perspectiveProjection == null)
+        if (value && super.transform.perspectiveProjection == null)
         {
             super.transform.perspectiveProjection = new PerspectiveProjection();
         }
@@ -11795,7 +11792,7 @@
         }
         else
         {
-            if(xformPt == null)
+            if (xformPt == null)
                 xformPt = new Point();
             if (transformCenter)
             {
@@ -11842,7 +11839,8 @@
      */
     public function set layoutMatrix3D(value:Matrix3D):void
     {
-        if(_layoutFeatures == null) initAdvancedLayoutFeatures();
+		if (_layoutFeatures == null)
+			initAdvancedLayoutFeatures();

         // layout features will internally make a copy of this matrix rather than
         // holding onto a reference to it.
@@ -11870,12 +11868,14 @@
      */
     public function set depth(value:Number):void
     {
-        if(value == depth)
+        if (value == depth)
             return;
-        if(_layoutFeatures == null) initAdvancedLayoutFeatures();
+		if (_layoutFeatures == null)
+			initAdvancedLayoutFeatures();
+
         _layoutFeatures.depth = value;
         dispatchEvent(new FlexEvent("layerChange"));
-        if(parent != null && parent is UIComponent)
+        if (parent != null && parent is UIComponent)
             (parent as UIComponent).invalidateLayering();
     }

@@ -11906,7 +11906,7 @@
     protected function applyComputedMatrix():void
     {
         _layoutFeatures.updatePending = false;
-        if(_layoutFeatures.is3D)
+        if (_layoutFeatures.is3D)
         {
             super.transform.matrix3D = _layoutFeatures.computedMatrix3D;
         }
@@ -12150,7 +12150,7 @@
      */
     public function getLayoutMatrix():Matrix
     {
-        if(_layoutFeatures != null)
+        if (_layoutFeatures != null)
         {
             // esg: _layoutFeatures keeps a single internal copy of the layoutMatrix.
             // since this is an internal class, we don't need to worry about developers


Transferred from the Adobe Open Source Subversion Repository

Revision: 18323
Author:   smgilson@adobe.com
Date:     2010-10-26T17:50:12.524532Z

Log Message:
-----------
Fix invalid HTML in ASDoc comments for the [DiscouragedForProfile] metadata tag

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/spark/src/spark/components/NumericStepper.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/ComboBox.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/VSlider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/TitleWindow.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/ToggleButton.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Spinner.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/BorderContainer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/FormHeading.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/VideoPlayer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/controls/ProgressBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/controls/ToolTip.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/HSlider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/TabBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/VideoDisplay.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/ButtonBarButton.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Panel.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Form.as</path>

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

--- frameworks/projects/spark/src/spark/components/TabBar.as
+++ frameworks/projects/spark/src/spark/components/TabBar.as
@@ -56,7 +56,7 @@
  * Because this component does not define a skin for the mobile theme, Adobe
  * recommends that you not use it in a mobile application. Alternatively, you
  * can define your own mobile skin for the component. For more information,
- * see Spark Skinning.
+ * see Spark Skinning.
  */
 [DiscouragedForProfile("mobileDevice")]


Transferred from the Adobe Open Source Subversion Repository

Revision: 11675
Author:   hmuller@adobe.com
Date:     2009-11-12T00:25:39.300334Z

Log Message:
-----------
Added minValue,maxValue,etc Style/Inspectable metadata tags for tools.

QE notes:
Doc notes:
Bugs: sdk-24100
Reviewer: Glenn
Tests run:
Is noteworthy for integration: yes

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/easing/EaseInOutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/styles/metadata/BasicInheritingTextStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Fade.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Effect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Spinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AddAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/GradientStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/VerticalLayout.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/spark/src/spark/primitives/VideoElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/animation/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/SolidColorStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/Rect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/styles/metadata/BasicNonInheritingTextStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/SolidColor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/TileLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/GradientEntry.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/animation/Keyframe.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/styles/metadata/AdvancedInheritingTextStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Range.as</path>

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

--- frameworks/projects/spark/src/spark/effects/AddAction.as
+++ frameworks/projects/spark/src/spark/effects/AddAction.as
@@ -175,7 +175,7 @@
     //  index
     //----------------------------------

-    [Inspectable(category="General")]
+    [Inspectable(category="General", minValue="-1")]

     /**
      *  The index of the child within the parent.


When copying AIR files, exits with error if dest path is ., unless the file is a directory

--- src/ASConfigC.as
+++ src/ASConfigC.as
@@ -1719,15 +1719,22 @@
 				{
 					srcFilePath = path.resolve(process.cwd(), srcFilePath);
 				}
+				var srcIsDir:Boolean = fs.statSync(srcFilePath).isDirectory();
 				//ensures that path formatting is consistent
 				destFilePath = path.relative(outputDir, path.resolve(outputDir, destFilePath));
-				if(destFilePath.startsWith(".."))
+				if(destFilePath.length === 0)
+				{
+					//if paths are equal, path.relative() returns an empty
+					//string, but this is what we need to use later
+					destFilePath = ".";
+				}
+				if(destFilePath.startsWith("..") || (!srcIsDir && destFilePath === "."))
 				{
 					console.error("Invalid destination path for file in Adobe AIR application. Source: " + srcFilePath + ", Destination: " + destFilePath);
 					process.exit(1);
 				}

-				if(fs.statSync(srcFilePath).isDirectory())
+				if(srcIsDir)
 				{
 					var assetDirList:Vector.<String> = new <String>[srcFilePath];
 					var assetPaths:Array = findSourcePathAssets(null, assetDirList, outputDir, null);


Transferred from the Adobe Open Source Subversion Repository

Revision: 8
Author:   open-source-svn-admin@adobe.com
Date:     2007-12-15T01:49:31.087529Z

Log Message:
-----------
The beginning of the open-source Flex SDK.

Populated the flex/sdk/trunk directory with an open-source subset of files from //depot/flex/sdk/...@191097 in the Faramir Perforce server. This changelist is a bit past the 3.0rc0 build.

The Ant scripts will not successfully build yet. They need to be adapted to the open-source subset.

Modified Paths:
--------------
2532 paths were modified

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

--- frameworks/projects/airframework/src/mx/events/FlexNativeWindowBoundsEvent.as
+++ frameworks/projects/airframework/src/mx/events/FlexNativeWindowBoundsEvent.as
@@ -0,0 +1,79 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.events
+{
+
+import flash.geom.Rectangle;
+import flash.events.Event;
+import flash.events.NativeWindowBoundsEvent;
+
+public class FlexNativeWindowBoundsEvent extends NativeWindowBoundsEvent
+{
+
+	/**
+	 *  dispatched when the underlying NativeWindow resizes
+	 *
+	 *  @eventType windowResize
+	 */
+	public static const WINDOW_RESIZE:String = "windowResize";
+
+	/**
+	 *  dispatched when the underlying NativeWindow changes
+	 *
+	 *  @eventType windowMove
+	 */
+	public static const WINDOW_MOVE:String = "windowMove";
+
+	//--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *
+     *  @param type The event type; indicates the action that caused the event.
+     *
+     *  @param bubbles Specifies whether the event can bubble up
+     *  the display list hierarchy.
+     *
+     *  @param cancelable Specifies whether the behavior
+     *  associated with the event can be prevented.
+     *
+     *  @param beforeBounds The bounds of the window before the resize.
+     *
+     *  @param afterBounds The bounds of the window before the resize.
+     */
+	public function FlexNativeWindowBoundsEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false,
+					beforeBounds:Rectangle = null, afterBounds:Rectangle = null)
+	{
+		super(type, bubbles, cancelable, beforeBounds, afterBounds);
+	}
+
+
+
+	//--------------------------------------------------------------------------
+    //
+    //  Overridden methods: Event
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    override public function clone():Event
+    {
+        return new FlexNativeWindowBoundsEvent(type, bubbles, cancelable, beforeBounds, afterBounds);
+    }
+}
+}


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

--- frameworks/projects/framework/src/mx/validators/ZipCodeValidatorDomainType.as
+++ frameworks/projects/framework/src/mx/validators/ZipCodeValidatorDomainType.as
@@ -18,6 +18,11 @@
  *  which you use to specify the type of ZIP code to validate.
  *
  *  @see mx.validators.ZipCodeValidator
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public final class ZipCodeValidatorDomainType
 {
@@ -31,16 +36,31 @@

 	/**
 	 *  Specifies to validate a United States or Canadian ZIP code.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public static const US_OR_CANADA:String = "US or Canada";

 	/**
 	 *  Specifies to validate a United States ZIP code.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public static const US_ONLY:String = "US Only";

 	/**
 	 *  Specifies to validate a Canadian ZIP code.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public static const CANADA_ONLY:String = "Canada Only";
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 7274
Author:   chaase@adobe.com
Date:     2009-05-26T17:35:32.210331Z

Log Message:
-----------
Fixed several feature-complete effects bugs, plus one ScrollBar bug.

QE Notes: None
Doc Notes: None
Bugs: sdk-21093, sdk-21130, sdk-21243, sdk-21128, sdk-20698, sdk-20125, sdk-21138
Reviewer: Jason
tests: checkintests mustella effects cyclone

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Effect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/IAnimationTarget.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/FadeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/CompositeEffect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Fade.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Resize.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/AnimationTarget.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/flex4/src/spark/effects/AnimateTransform.as</path>

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

--- frameworks/projects/spark/src/spark/effects/supportClasses/AnimateInstance.as
+++ frameworks/projects/spark/src/spark/effects/supportClasses/AnimateInstance.as
@@ -703,23 +703,43 @@
         dispatchEvent(event);
     }

-    /**
-     *  @private
-     *  Called internally to handle end events for the animation.
-     *  If you override this method, ensure that you call the super method.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-     */
-    public function animationEnd(animation:Animation):void
+    private function animationCleanup():void
     {
         if (disableConstraints)
             reenableConstraints();
         if (disableLayout)
             setupParentLayout(true);
+    }
+
+    /**
+     *  @private
+     *  Called internally to handle end events for the animation.
+     *  If you override this method, ensure that you call the super method.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function animationEnd(animation:Animation):void
+    {
+        animationCleanup();
         finishEffect();
+    }
+
+    /**
+     *  @private
+     *  Called internally to handle stop events for the animation.
+     *  If you override this method, ensure that you call the super method.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function animationStop(animation:Animation):void
+    {
+        animationCleanup();
     }

     private function noopAnimationHandler(event:TimerEvent):void


fixed a bug, where length() could throw an exception

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

--- src/reprise/commands/CompositeCommand.as
+++ src/reprise/commands/CompositeCommand.as
@@ -154,6 +154,10 @@
 		*/
 		public function length():uint
 		{
+			if (!m_pendingCommands)
+			{
+				return 0;
+			}
 			return m_pendingCommands.length + m_currentCommands.length;
 		}


Let's actually set _pctx.

Let's actually set _pctx.

git-svn-id: a3e1eb16dde062992de22c830ed8045c8013209a@44 c613c5cb-e716-0410-b11b-feb51c14d237

--- src/as/com/threerings/parlor/game/client/GameController.as
+++ src/as/com/threerings/parlor/game/client/GameController.as
@@ -68,7 +68,7 @@
         // cast our references before we call super.init() so that when
         // super.init() calls createPlaceView(), we have our casted
         // references already in place
-        _ctx = (ctx as ParlorContext);
+        _pctx = (ctx as ParlorContext);
         _gconfig = (config as GameConfig);

         super.init(ctx, config);


Removed unused ragdoll code.

Removed unused ragdoll code.

--- Bin/Data/Scripts/Terrain.as
+++ Bin/Data/Scripts/Terrain.as
@@ -33,7 +33,6 @@
     SubscribeToEvent("MouseButtonUp", "HandleMouseButtonUp");
     SubscribeToEvent("PostRenderUpdate", "HandlePostRenderUpdate");
     SubscribeToEvent("SpawnBox", "HandleSpawnBox");
-    SubscribeToEvent("PhysicsCollision", "HandlePhysicsCollision");

     network.RegisterRemoteEvent("SpawnBox");

@@ -466,103 +465,6 @@
     connection.logStatistics = true;
 }

-void HandlePhysicsCollision(StringHash eventType, VariantMap& eventData)
-{
-    // Check if either of the nodes has an AnimatedModel component
-    Node@ nodeA = eventData["NodeA"].GetNode();
-    Node@ nodeB = eventData["NodeB"].GetNode();
-    if (nodeA.HasComponent("AnimatedModel"))
-    {
-        // Remove the trigger physics shape, and create the ragdoll
-        nodeA.RemoveComponent("RigidBody");
-        nodeA.RemoveComponent("CollisionShape");
-        CreateRagdoll(nodeA.GetComponent("AnimatedModel"));
-    }
-    else if (nodeB.HasComponent("AnimatedModel"))
-    {
-        nodeB.RemoveComponent("RigidBody");
-        nodeB.RemoveComponent("CollisionShape");
-        CreateRagdoll(nodeB.GetComponent("AnimatedModel"));
-    }
-}
-
-void CreateRagdoll(AnimatedModel@ model)
-{
-    Node@ root = model.node;
-
-    CreateRagdollBone(root, "Bip01_Pelvis", SHAPE_CAPSULE, Vector3(0.3, 0.3, 0.3), Vector3(0.0, 0, 0), Quaternion(0, 0, 0));
-    CreateRagdollBone(root, "Bip01_Spine1", SHAPE_CAPSULE, Vector3(0.3, 0.4, 0.3), Vector3(0.15, 0, 0), Quaternion(0, 0, 90));
-    CreateRagdollBone(root, "Bip01_L_Thigh", SHAPE_CAPSULE, Vector3(0.175, 0.45, 0.175), Vector3(0.25, 0, 0), Quaternion(0, 0, 90));
-    CreateRagdollBone(root, "Bip01_R_Thigh", SHAPE_CAPSULE, Vector3(0.175, 0.45, 0.175), Vector3(0.25, 0, 0), Quaternion(0, 0, 90));
-    CreateRagdollBone(root, "Bip01_L_Calf", SHAPE_CAPSULE, Vector3(0.15, 0.55, 0.15), Vector3(0.25, 0, 0), Quaternion(0, 0, 90));
-    CreateRagdollBone(root, "Bip01_R_Calf", SHAPE_CAPSULE, Vector3(0.15, 0.55, 0.15), Vector3(0.25, 0, 0), Quaternion(0, 0, 90));
-    CreateRagdollBone(root, "Bip01_Head", SHAPE_SPHERE, Vector3(0.25, 0.25, 0.25), Vector3(0.1, 0, 0), Quaternion(0, 0, 0));
-    CreateRagdollBone(root, "Bip01_L_UpperArm", SHAPE_CAPSULE, Vector3(0.125, 0.35, 0.125), Vector3(0.1, 0, 0), Quaternion(0, 0, 90));
-    CreateRagdollBone(root, "Bip01_R_UpperArm", SHAPE_CAPSULE, Vector3(0.125, 0.35, 0.125), Vector3(0.1, 0, 0), Quaternion(0, 0, 90));
-    CreateRagdollBone(root, "Bip01_L_Forearm", SHAPE_CAPSULE, Vector3(0.1, 0.3, 0.1), Vector3(0.15, 0, 0), Quaternion(0, 0, 90));
-    CreateRagdollBone(root, "Bip01_R_Forearm", SHAPE_CAPSULE, Vector3(0.1, 0.3, 0.1), Vector3(0.15, 0, 0), Quaternion(0, 0, 90));
-
-    CreateRagdollConstraint(root, "Bip01_L_Thigh", "Bip01_Pelvis", CONSTRAINT_CONETWIST, Vector3(0, 0, -1), Vector3(0, 0, 1), Vector2(45, 25), Vector2(0, 0));
-    CreateRagdollConstraint(root, "Bip01_R_Thigh", "Bip01_Pelvis", CONSTRAINT_CONETWIST, Vector3(0, 0, -1), Vector3(0, 0, 1), Vector2(45, 25), Vector2(0, 0));
-    CreateRagdollConstraint(root, "Bip01_L_Calf", "Bip01_L_Thigh", CONSTRAINT_HINGE, Vector3(0, 0, -1), Vector3(0, 0, -1), Vector2(90, 0), Vector2(0, 0));
-    CreateRagdollConstraint(root, "Bip01_R_Calf", "Bip01_R_Thigh", CONSTRAINT_HINGE, Vector3(0, 0, -1), Vector3(0, 0, -1), Vector2(90, 0), Vector2(0, 0));
-    CreateRagdollConstraint(root, "Bip01_Spine1", "Bip01_Pelvis", CONSTRAINT_HINGE, Vector3(0, 0, 1), Vector3(0, 0, 1), Vector2(90, 0), Vector2(-25, 0));
-    CreateRagdollConstraint(root, "Bip01_Head", "Bip01_Spine1", CONSTRAINT_CONETWIST, Vector3(0, 0, 1), Vector3(0, 0, 1), Vector2(45, 25), Vector2(0, 0));
-    CreateRagdollConstraint(root, "Bip01_L_UpperArm", "Bip01_Spine1", CONSTRAINT_CONETWIST, Vector3(0, -1, 0), Vector3(0, 1, 0), Vector2(45, 45), Vector2(0, 0));
-    CreateRagdollConstraint(root, "Bip01_R_UpperArm", "Bip01_Spine1", CONSTRAINT_CONETWIST, Vector3(0, -1, 0), Vector3(0, 1, 0), Vector2(45, 45), Vector2(0, 0));
-    CreateRagdollConstraint(root, "Bip01_L_Forearm", "Bip01_L_UpperArm", CONSTRAINT_HINGE, Vector3(0, 0, -1), Vector3(0, 0, -1), Vector2(90, 0), Vector2(0, 0));
-    CreateRagdollConstraint(root, "Bip01_R_Forearm", "Bip01_R_UpperArm", CONSTRAINT_HINGE, Vector3(0, 0, -1), Vector3(0, 0, -1), Vector2(90, 0), Vector2(0, 0));
-
-    // Disable animation from all bones (both physical and non-physical) to not interfere
-    Skeleton@ skel = model.skeleton;
-    for (uint i = 0; i < skel.numBones; ++i)
-        skel.bones[i].animated = false;
-}
-
-void CreateRagdollBone(Node@ root, const String&in boneName, ShapeType type, const Vector3&in size, const Vector3&in position,
-    const Quaternion&in rotation)
-{
-    Node@ boneNode = root.GetChild(boneName, true);
-    if (boneNode is null || boneNode.HasComponent("RigidBody"))
-        return;
-
-    // In networked operation both client and server detect collisions separately, and create ragdolls on their own
-    // (bones are not synced over network.) To prevent replicated component ID range clashes when the client creates
-    // any components, it is important that the LOCAL creation mode is specified.
-    RigidBody@ body = boneNode.CreateComponent("RigidBody", LOCAL);
-    body.mass = 1.0;
-    body.linearDamping = 0.05;
-    body.angularDamping = 0.85;
-    body.linearRestThreshold = 1.5;
-    body.angularRestThreshold = 2.5;
-
-    CollisionShape@ shape = boneNode.CreateComponent("CollisionShape", LOCAL);
-    shape.shapeType = type;
-    shape.size = size;
-    shape.position = position;
-    shape.rotation = rotation;
-}
-
-void CreateRagdollConstraint(Node@ root, const String&in boneName, const String&in parentName, ConstraintType type,
-    const Vector3&in axis, const Vector3&in parentAxis, const Vector2&in highLimit, const Vector2&in lowLimit)
-{
-    Node@ boneNode = root.GetChild(boneName, true);
-    Node@ parentNode = root.GetChild(parentName, true);
-    if (boneNode is null || parentNode is null || boneNode.HasComponent("Constraint"))
-        return;
-
-    Constraint@ constraint = boneNode.CreateComponent("Constraint", LOCAL);
-    constraint.constraintType = type;
-    constraint.disableCollision = true;
-    // The connected body must be specified before setting the world position
-    constraint.otherBody = parentNode.GetComponent("RigidBody");
-    constraint.worldPosition = boneNode.worldPosition;
-    constraint.axis = axis;
-    constraint.otherAxis = parentAxis;
-    constraint.highLimit = highLimit;
-    constraint.lowLimit = lowLimit;
-}
-
 void ToggleLiquid()
 {
     Node@ liquidNode = testScene.GetChild("Liquid");


XIFF-53: More work based on http://community.igniterealtime.org/people/mani

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

--- src/org/igniterealtime/xiff/util/Zlib.as
+++ src/org/igniterealtime/xiff/util/Zlib.as
@@ -47,6 +47,7 @@
 		{
 			data.position = 0;
 			var uncompressed:ByteArray = new ByteArray();
+			var chunk:ByteArray = new ByteArray();
 			var outBytesLength:int = data.length * 2;

 			var err:int;
@@ -62,7 +63,7 @@
 			stream.next_in = data;
 			stream.next_in_index = 0;

-			stream.next_out = uncompressed;
+			stream.next_out = chunk;
 			stream.next_out_index = 0;

 			stream.avail_out = outBytesLength;
@@ -72,13 +73,13 @@
 			err = stream.inflateInit();
 			checkError(stream, err, "inflateInit");

-			var outcount:int = 0;
 			while (true)
 			{
 				// force small buffers
 				stream.avail_in = 1;
 				stream.avail_out = 1;

+				//err = stream.inflate(JZlib.Z_SYNC_FLUSH);
 				err = stream.inflate(JZlib.Z_NO_FLUSH);
 				switch (err)
 				{
@@ -87,6 +88,7 @@
 						trace("Zlib.uncompress. inflation stream ended");
 						break;
 					case JZlib.Z_BUF_ERROR:
+						emptyByteArrayIntoByteArray(chunk, uncompressed);
 						stream.next_out_index = 0;
 						stream.avail_out = outBytesLength;
 						break;
@@ -94,18 +96,24 @@
 						// unknown error
 						if (err != JZlib.Z_OK)
 						{
-							if (stream.msg == null) {
-								trace("Unknown error. Error code : " + err);
+							if (stream.msg == null)
+							{
+								trace("Zlib.uncompress. Unknown error. Error code : " + err);
 							}
-							else {
-								trace("Unknown error. Error code : " + err + " and message : " + stream.msg);
+							else
+							{
+								trace("Zlib.uncompress. Unknown error. Error code : " + err + " and message : " + stream.msg);
 							}
 						}
 				}
+				stream.avail_in = 1;

-				outcount++;
-				//trace("Zlib.uncompress. outcount: " + outcount + ", stream.total_out: " + stream.total_out);
-
+				if (stream.total_in >= data.length)
+				{
+					emptyByteArrayIntoByteArray(chunk, uncompressed);
+					break;
+				}
+
 				if (!checkError(stream, err, "inflate"))
 				{
 					break;
@@ -134,12 +142,13 @@
 			data.position = 0;
 			var compressed:ByteArray = new ByteArray();
 			var err:int;
-			var i:int = 0;
-			var j:int = 0;

 			trace("Zlib.compress. data.length: " + data.length);
 			trace("Zlib.compress. data: " + data.toString());

+			// How is this number build?
+			var outLen:int = Math.round(data.length * 1.001) + 1 + 12;
+
 			var stream:ZStream = new ZStream();

 			err = stream.deflateInit(JZlib.Z_BEST_COMPRESSION);
@@ -147,41 +156,35 @@

 			stream.next_in = data;
 			stream.next_in_index = 0;
+			stream.avail_in = data.length;

 			stream.next_out = compressed;
 			stream.next_out_index = 0;
-
-
-			// ----
-
-			var comprLen:int = 40000;
-			while (stream.total_in != data.length && stream.total_out < comprLen)
-			{
-				// force small buffers
-				stream.avail_in = 1;
-				stream.avail_out = 1;
-
-				err = stream.deflate(JZlib.Z_NO_FLUSH);
-				checkError(stream, err, "deflate");
-			}
-
-			while (true)
-			{
-				stream.avail_out = 1;
-				err = stream.deflate(JZlib.Z_FINISH);
-				if (err == JZlib.Z_STREAM_END)
-				{
-					break;
-				}
-
-				compressed.position = 0;
-
-				checkError(stream, err, "deflate");
-			}
-
-			err = stream.deflateEnd();
-			checkError(stream, err, "deflateEnd");
-
+			stream.avail_out = outLen;
+
+
+
+
+
+			err = stream.deflate(JZlib.Z_SYNC_FLUSH);
+
+			if (err != JZlib.Z_OK)
+			{
+				compressed = null;
+				trace("Zlib.compress. Compression failed with return value : " + err);
+			}
+
+
+			// TODO: we need this, but why? zlib must be missing something
+
+			if (compressed.length > 2)
+			{
+				compressed.position = compressed.length - 2;
+				compressed.writeByte(0xFF);
+				compressed.writeByte(0xFF);
+			}
+
+

 			trace("Zlib.compress. compressed.length: " + compressed.length);
 			trace("Zlib.compress. compressed: " + compressed.toString());
@@ -211,5 +214,14 @@
 			}
 			return true;
 		}
+
+		private function emptyByteArrayIntoByteArray(chunk:ByteArray, target:ByteArray):void
+		{
+			for (var j:uint = 0; j < chunk.length; j++)
+			{
+				target.writeByte(chunk.readByte());
+			}
+			chunk.clear();
+		}
 	}
 }


Finished adjusting the coefficients for the regression line equations.

--- WeaveUISpark/src/weave/visualization/plotters/RegressionLinePlotter.as
+++ WeaveUISpark/src/weave/visualization/plotters/RegressionLinePlotter.as
@@ -125,7 +125,7 @@

 			if (currentTrendline.value == POWER)
 			{
-				Rstring = "fit <- lm( log(y) ~ x )\n"
+				Rstring = "fit <- lm( log(y) ~ log(x) )\n"
 					+"coef <- coefficients(fit)\n"
 					+"rSquared <- summary(fit)$r.squared\n";
 			}
@@ -163,9 +163,14 @@
 			// R only returns coefficients and rSquared
 			if (RresultArray.length == 2)
 			{
-				coefficients = ((RresultArray[0] as RResult).value as Array != coefficients) ? (RresultArray[0] as RResult).value as Array : null;
+
+				//coefficients = ((RresultArray[0] as RResult).value as Array != coefficients) ? (RresultArray[0] as RResult).value as Array : null;
+				coefficients = (RresultArray[0] as RResult).value as Array;
+
 				// Preprocess coefficients ==> It might return NaN in higher degree
 				// where it should in fact be 0.
+
+				// problem arises sometimes, when coefficients is null, meaning the R calls are not done yet? May be create a busy loop?
 				for (var i:int = 0; i < coefficients.length; i++)
 				{
 					if (isNaN(coefficients[i]))
@@ -322,6 +327,9 @@
 		 **/
 		private function evalFunction(type:String, coefficients:Array, xValue:Number):Number
 		{
+
+			var b:Number = coefficients[0];
+			var a:Number = coefficients[1];

 			if (type == POLYNOMIAL)
 			{
@@ -335,19 +343,25 @@

 				return result;
 			}
+
+			// For the other types, we know that coefficients only has 2 entries.
+
+			//
 			else if (type == LOGARITHMIC)
-			{
-				return coefficients[0]*Math.log(xValue) + coefficients[1];
-			}
-
-
+			{
+				return a*Math.log(xValue) + b;
+			}
+
 			else if (type == EXPONENTIAL)
 			{
-				return Math.exp(coefficients[0])*Math.exp(xValue*coefficients[1]);
+				trace(coefficients);
+				return Math.exp(b)*Math.exp(a*xValue);
+				//return Math.exp(coefficients[0])*Math.exp(xValue*coefficients[1]);
 			}
 			else if (type == POWER)
 			{
-				return Math.exp(coefficients[0])*Math.pow(xValue, coefficients[1]);
+				trace(coefficients);
+				return Math.exp(b) * Math.pow(xValue, a);
 			}
 			else
 			{


Initial working version with multiple CMs and pretty much everything that was part of the spec for GEC6

--- protogeni/demo/shared/com/mattism/http/xmlrpc/Parser.as
+++ protogeni/demo/shared/com/mattism/http/xmlrpc/Parser.as
@@ -1,16 +1,16 @@
-	/**
-* @author	Matt Shaw <xmlrpc@mattism.com>
-* @url		http://sf.net/projects/xmlrpcflash
-* 			http://www.osflash.org/doku.php?id=xmlrpcflash
-*
-* @author   Daniel Mclaren (http://danielmclaren.net)
-* @note     Updated to Actionscript 3.0
-*/
-
-package com.mattism.http.xmlrpc
-{
-	public interface Parser {
-
-		function parse( node:XML ):Object;
-	}
+	/**
+* @author	Matt Shaw <xmlrpc@mattism.com>
+* @url		http://sf.net/projects/xmlrpcflash
+* 			http://www.osflash.org/doku.php?id=xmlrpcflash
+*
+* @author   Daniel Mclaren (http://danielmclaren.net)
+* @note     Updated to Actionscript 3.0
+*/
+
+package com.mattism.http.xmlrpc
+{
+	public interface Parser {
+
+		function parse( node:XML ):Object;
+	}
 }


automatically scroll when corner dragging

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

--- EntryBulkImport/src/org/jbei/view/components/GridHolder.as
+++ EntryBulkImport/src/org/jbei/view/components/GridHolder.as
@@ -122,6 +122,24 @@
 			if( cell.index != this._startCell.index )
 				cell = this._grid.cellAt( cell.row, this._startCell.index );

+			// TODO : uses the same logic as autoscrollvertical should be folded in
+			var visibleCount:int = ( ( this.height - 30 ) / GridCell.DEFAULT_HEIGHT ) ;
+			var row:int = cell.row;
+			var start:Number = this.verticalScrollPosition / GridCell.DEFAULT_HEIGHT;
+
+			// is current index visible (NOTE: this is the key determining factor in auto scrolling)
+			var isIndexVisible:Boolean = ( row >= start ) && ( row < (start + visibleCount) );
+
+			if( !isIndexVisible )
+			{
+				this._grid.height = this.grid.rowSize() * GridCell.DEFAULT_HEIGHT + 1;
+				this.verticalScrollPosition += GridCell.DEFAULT_HEIGHT;
+				this.invalidateDisplayList();	// causes updatedisplayList to be called
+				this._grid.y = ( -1 * this.verticalScrollPosition );
+				dispatchEvent( new GridScrollEvent( GridScrollEvent.VSCROLL, this._grid.y ) );
+			}
+			// / TODO
+
 			// clear current "dashed"
 			for each ( var dashed:GridCell in this._affected )
 			{


Docs.

Docs.

--- driver/src/main/flex/org/postgresql/Oid.as
+++ driver/src/main/flex/org/postgresql/Oid.as
@@ -1,7 +1,9 @@
 package org.postgresql {

     /**
-     * OIDs for all the main PostgreSQL data types.
+     * OIDs for all the main PostgreSQL data types. Note that this
+     * is not an exhaustive list--it's merely a convenient
+     * way to reference the most common OIDs.
      */
     public class Oid {
         public static const UNSPECIFIED:int = 0;


Changed !isNaN() check in Bounds2D.includeCoords to isFinite()- fixes
bug where zooming to extent in the scatterplot zooms to infinity when
there are missing values

Change-Id: I1f8153ae81b1298f59978c074d62cebd266c01e8

--- WeaveData/src/weave/primitives/Bounds2D.as
+++ WeaveData/src/weave/primitives/Bounds2D.as
@@ -267,7 +267,7 @@
 		 */
 		public function includeCoords(newX:Number, newY:Number):void
 		{
-			if (!isNaN(newX))
+			if (isFinite(newX))
 			{
 				// If x coordinates are undefined, define them now.
 				if (isNaN(this.xMin))
@@ -291,7 +291,7 @@
 					if (newX > xMax) xMax = newX; // xMax = Math.max(xMax, newX);
 				}
 			}
-			if (!isNaN(newY))
+			if (isFinite(newY))
 			{
 				// If y coordinates are undefined, define them now.
 				if (isNaN(this.yMin))


Removed autoloading success for the moment

--- src/LevelStates/LevelState.as
+++ src/LevelStates/LevelState.as
@@ -824,8 +824,8 @@

 			if (saveString == null)
 				saveString = U.save.data[level.name];
-			if (saveString == null)
-				saveString = findSuccessSave();
+			//if (saveString == null)
+				//saveString = findSuccessSave();
 			if (saveString) {
 				var saveArray:Array = saveString.split(U.SAVE_DELIM + U.SAVE_DELIM);


Using images in place of points now fully properly works. Changes in this update include removing some redundant variables and adding comments.

--- WeaveUI/src/weave/visualization/plotters/GeometryPlotter.as
+++ WeaveUI/src/weave/visualization/plotters/GeometryPlotter.as
@@ -94,7 +94,7 @@
 		 */
 		public const geometryColumn:ReprojectedGeometryColumn = newSpatialProperty(ReprojectedGeometryColumn);
 		/**
-		 *  This is meant to contain URL links to an image to use in place of points on the map.
+		 *  This is the default URL path for images, when using images in place of points.
 		 */
 		public const imagePointColumn:AlwaysDefinedColumn = new AlwaysDefinedColumn( "http://www.helpexamples.com/flash/images/image2.jpg" );

@@ -104,14 +104,15 @@
 		private static var _missingImageClass:Class;
 		private static const _missingImage:BitmapData = Bitmap(new _missingImageClass()).bitmapData;

-		public const useImages:LinkableBoolean = registerLinkableChild(this, new LinkableBoolean(false), updatePoints);
-
+		/**
+		 * Boolean to indicate whether the user desires to use images or not.
+		 */
+		public const useImages:LinkableBoolean = registerLinkableChild(this, new LinkableBoolean(false));
+
+		/**
+		 * This variable contains whatever the user entered image URL is, should they enter one.
+		 */
 		public const urlString:LinkableString = registerLinkableChild(this, new LinkableString(""));
-
-		private function updatePoints():void
-		{
-			trace( "Changed, now " + useImages.value );
-		}

 		/**
 		 * This is the image cache.
@@ -238,18 +239,19 @@
 		private var circleBitmapDataRectangle:Rectangle = new Rectangle(0,0,0,0);

 		// this is the offset used to draw a circle onto a cached BitmapData
-		private var pointOffset:Number;
-		private var _urlToImageMap:Object = new Object();
+		private var pointOffset:Number;

 		// this function returns the BitmapData associated with the given key
 		private function drawCircle(destination:BitmapData, color:Number, x:Number, y:Number):void
 		{
+			var _imageURL:String = new String();
+
 			if( useImages.value == true )
 			{
 				if( urlString.value != "")
-					var _imageURL:String = urlString.value;
+					_imageURL = urlString.value;
 				else
-					var _imageURL:String = imagePointColumn.defaultValue.value as String;
+					_imageURL = imagePointColumn.defaultValue.value as String;
 				if( _urlToImageMap[_imageURL] == undefined ){
 					_urlToImageMap[_imageURL] = _missingImage;
 					WeaveAPI.URLRequestUtils.getContent(new URLRequest(_imageURL), handleImageDownload, handleFault, _imageURL);


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

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

--- frameworks/projects/advancedgrids/src/mx/olap/OLAPResult.as
+++ frameworks/projects/advancedgrids/src/mx/olap/OLAPResult.as
@@ -0,0 +1,256 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2009 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.olap
+{
+
+import mx.core.mx_internal;
+
+use namespace mx_internal;
+
+/**
+ *  The OLAPResult class represents the result of a query on an OLAP cube.
+ *
+ *  @see mx.olap.IOLAPResult
+ *  @see mx.olap.OLAPQuery
+ *  @see mx.olap.OLAPQueryAxis
+ *  @see mx.olap.IOLAPResultAxis
+ *  @see mx.olap.OLAPResultAxis
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public class OLAPResult implements IOLAPResult
+{
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Class constants
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Specifies a column axis.
+     *  Use this property as a value of the axisOrdinal argument
+     *  to the getAxis() method.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public static var COLUMN_AXIS:int = 0;
+
+    /**
+     *  Specifies a row axis.
+     *  Use this property as a value of the axisOrdinal argument
+     *  to the getAxis() method.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public static var ROW_AXIS:int = 1;
+
+    /**
+     *  Specifies a slicer axis.
+     *  Use this property as a value of the axisOrdinal argument
+     *  to the getAxis() method.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public static var SLICER_AXIS:int = 2;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Variables
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  An Array of Arrays that contains the value of each cell of the result.
+     *  A cell is an intersection of a row and a column axis position.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    protected var cellData:Array = [];
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    // axes
+    //----------------------------------
+
+    private var _axes:Array = [];
+
+    /**
+     *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function get axes():Array
+    {
+        return _axes;
+    }
+
+    //----------------------------------
+    // query
+    //----------------------------------
+
+    private var _query:IOLAPQuery;
+
+    /**
+     *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function get query():IOLAPQuery
+    {
+        return _query;
+    }
+
+    /**
+     *  @private
+     */
+    public function set query(q:IOLAPQuery):void
+    {
+        _query = q;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function getAxis(axisOrdinal:int):IOLAPResultAxis
+    {
+        return axes[axisOrdinal];
+    }
+
+    /**
+     *  @private
+     *  Sets an axis of the query result.
+     *
+     *  @param axisOrdinal Specify OLAPResult.COLUMN AXIS for a column axis,
+     *  OLAPResult.ROW_AXIS for a row axis,
+     *  and OLAPResult.SLICER_AXIS for a slicer axis.
+     *
+     *  @param axis The IOLAPResultAxis instance.
+     */
+    mx_internal function setAxis(axisOrdinal:int, axis:IOLAPResultAxis):void
+    {
+        axes[axisOrdinal] = axis;
+    }
+
+    /**
+     *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function getCell(x:int, y:int):IOLAPCell
+    {
+        if (cellData[x])
+            return new OLAPCell(cellData[x][y]);
+        return new OLAPCell(NaN);
+    }
+
+    /**
+     * private
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    mx_internal function setCell(x:int, y:int, value:Number):void
+    {
+        if (!cellData[x])
+            cellData[x] = [];
+        cellData[x][y] = value;
+    }
+
+    /**
+     *  Returns true if the row contains data.
+     *
+     *  @param rowIndex The index of the row in the result.
+     *
+     *  @return true if the row contains data,
+     *  and false if not.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function hasRowData(rowIndex:int):Boolean
+    {
+        return cellData[rowIndex] != undefined;
+    }
+
+    /**
+     *  @private
+     *  Removes a row of data from the result.
+     *
+     *  @param y The index of the row in the result.
+     */
+    mx_internal function removeRowData(y:int):void
+    {
+        cellData.splice(y, 1);
+    }
+
+    /**
+     *  @private
+     *  Removes a column of data from the result.
+     *
+     *  @param x The index of the column in the result.
+     */
+    mx_internal function removeColumnData(x:int):void
+    {
+        for each (var a:Array in cellData)
+        {
+            a.splice(x, 1);
+        }
+    }
+
+}
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 15514
Author:   dloverin@adobe.com
Date:     2010-04-16T18:39:29.012835Z

Log Message:
-----------
Add code hinting metadata for the systemChrome property of Spark Window and Halo Window.

QE notes: None
Doc notes: None
Bugs: SDK-25809
Reviewer: Corey
Tests run: checkintests
Is noteworthy for integration: No

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

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

--- frameworks/projects/airspark/src/spark/components/Window.as
+++ frameworks/projects/airspark/src/spark/components/Window.as
@@ -1476,6 +1476,8 @@
      */
     private var _systemChrome:String = NativeWindowSystemChrome.STANDARD;

+    [Inspectable(enumeration="none,standard", defaultValue="standard" )]
+
     /**
      *  Specifies the type of system chrome (if any) the window has.
      *  The set of possible values is defined by the constants


Transferred from the Adobe Open Source Subversion Repository

Revision: 11198
Author:   dloverin@adobe.com
Date:     2009-10-27T20:52:45.565681Z

Log Message:
-----------
Set the module factory for a Window if one is not set

QE notes: None.
Doc notes: None.
Bugs: SDK-23852
Reviewer: Alex
Tests run: checkintests, apollo/spark/components/Window/properties
Is noteworthy for integration: No.

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

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

--- frameworks/projects/airspark/src/spark/components/Window.as
+++ frameworks/projects/airspark/src/spark/components/Window.as
@@ -47,6 +47,7 @@
 import mx.managers.ICursorManager;
 import mx.managers.ISystemManager;
 import mx.managers.NativeDragManagerImpl;
+import mx.managers.SystemManagerGlobals;
 import mx.managers.WindowedSystemManager;
 import mx.managers.systemClasses.ActiveWindowManager;
 import mx.styles.CSSStyleDeclaration;
@@ -1763,6 +1764,10 @@
         {
             flagForOpen = false;

+            // Set up our module factory if we don't have one.
+            if (moduleFactory == null)
+                moduleFactory = SystemManagerGlobals.topLevelSystemManagers[0];
+
             var init:NativeWindowInitOptions = new NativeWindowInitOptions();
             init.maximizable = _maximizable;
             init.minimizable = _minimizable;


Further module fixes

Further module fixes

--- src/LevelStates/LevelState.as
+++ src/LevelStates/LevelState.as
@@ -447,11 +447,12 @@
 		private function createNewModule(moduleType:Class):void {
 			var archetype:Module = Module.getArchetype(moduleType);
 			if (!archetype.writesToMemory || !level.writerLimit || numMemoryWriters() < level.writerLimit) {
+				var gridLoc:Point = U.pointToGrid(U.mouseLoc);
 				var newModule:Module;
 				if (archetype.getConfiguration())
-					newModule = new moduleType( -1, -1, archetype.getConfiguration().value);
+					newModule = new moduleType(gridLoc.x, gridLoc.y, archetype.getConfiguration().value);
 				else
-					newModule = new moduleType( -1, -1);
+					newModule = new moduleType(gridLoc.x, gridLoc.y);
 				newModule.initialize();

 				modules.push(newModule);


Transferred from the Adobe Open Source Subversion Repository

Revision: 15032
Author:   cframpto@adobe.com
Date:     2010-03-25T19:08:49.115920Z

Log Message:
-----------
Integrate spark window mirroring fix 15030 from 4.x to trunk.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airspark/src/spark/components/windowClasses/TitleBar.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airspark/src/spark/components/Window.as</path>

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

--- frameworks/projects/airspark/src/spark/components/Window.as
+++ frameworks/projects/airspark/src/spark/components/Window.as
@@ -1843,6 +1843,10 @@
                 systemChrome == NativeWindowSystemChrome.STANDARD)
                 nativeWindow.height = chromeHeight() + _bounds.height;

+            // Set _width and _height.  This will update the mirroring
+            // transform if applicable.
+            setActualSize(_bounds.width, _bounds.height);
+
             // We use temporary variables because when we set stageWidth or
             // stageHeight _bounds will be overwritten when we receive
             // a RESIZE event.
@@ -2689,6 +2693,10 @@
         bounds.width = stage.stageWidth;
         bounds.height = stage.stageHeight;

+        // Set _width and _height.  This will update the mirroring
+        // transform if applicable.
+        setActualSize(_bounds.width, _bounds.height);
+
         validateNow();
         var e:FlexNativeWindowBoundsEvent =
             new FlexNativeWindowBoundsEvent(FlexNativeWindowBoundsEvent.WINDOW_RESIZE, event.bubbles, event.cancelable,


Transferred from the Adobe Open Source Subversion Repository

Revision: 9447
Author:   clucier@adobe.com
Date:     2009-08-21T14:21:19.506883Z

Log Message:
-----------
Now to actually make the change I intended...

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElement.as

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

--- frameworks/projects/framework/src/mx/core/IVisualElement.as
+++ frameworks/projects/framework/src/mx/core/IVisualElement.as
@@ -216,7 +216,7 @@
      *
      *
This property should not be set within MXML directly.

      *
-     *
The layer property is not used for z-order control,
+     *
The designLayer property is not used for z-order control,
      *  please see depth.

      *
      *  @see #depth


Transferred from the Adobe Open Source Subversion Repository

Revision: 9708
Author:   cframpto@adobe.com
Date:     2009-08-27T20:22:38.464977Z

Log Message:
-----------
Add TLFTextInput which allows Halo controls to use the spark FTE/TLF-based TextInput component wherever a Halo TextInput can be used.

This is done by introducing a new style for Halo called textInputClass.  In the global selector, in defaults.css, it defaults to mx.controls.TextInput.  This style only applies for Flex version 4 and up.

To use TLFText apply the new TLFText.css style sheet as a theme to your application.  Alternatively you may apply this style sheet in your application but you will see compiler warnings for any unused selectors.

Note that mx.controls.TLFTextInput lives in spark.swc since it is build on spark.components.TextInput.

Modified ColorPicker, DateField, ComboBox, NumericStepper and TextInput to look at the textInputClass field to determine whether to use a Halo TextInput or a Spark TextInput.

QE notes:
Doc notes:
Bugs:
Reviewer: Gordon
Tests run: mx ColorPicker,DateField,ComboBox,NumericStepper and TextInput as well as checkintests
one ColorPicker_events_toolTipHide failed - the timer does fire eventually but it seems to take much longer than the hideDelay=10000.
Is noteworthy for integration: yes

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBase.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/TLFTextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/defaults.css</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/mx</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/IFocusManagerComponent.as</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ITextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/colorPickerClasses/SwatchPanel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextInput.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/TLFText.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/NumericStepper.as</path>

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

--- frameworks/projects/spark/src/mx/controls/MXFTETextInput.as
+++ frameworks/projects/spark/src/mx/controls/MXFTETextInput.as
@@ -0,0 +1,293 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.controls
+{
+
+import mx.controls.listClasses.BaseListData;
+import mx.core.IFlexModuleFactory;
+import mx.core.ITextInput;
+import mx.core.mx_internal;
+import mx.events.FlexEvent;
+import mx.managers.IFocusManagerComponent;
+
+import spark.components.TextInput;
+
+use namespace mx_internal;
+
+//--------------------------------------
+//  Events
+//--------------------------------------
+
+/**
+ *  Dispatched when the data property changes.
+ *
+ *
When you use a component as an item renderer,
+ *  the data property contains the data to display.
+ *  You can listen for this event and update the component
+ *  when the data property changes.

+ *
+ *  @eventType mx.events..DATA_CHANGE
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Event(name="dataChange", type="mx.events.")]
+
+
+/**
+ *  TLFTextInput is a UIComponent which is used to support TLF text
+ *  in Halo controls and data grid renderers.  It can be used in place
+ *  of a Halo TextInput control.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+public class TLFTextInput extends TextInput implements ITextInput
+{
+    include "../../spark/core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+	/**
+	 *  Constructor.
+	 */
+	public function TLFTextInput()
+	{
+		super();
+	}
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  data
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the data property.
+     */
+    private var _data:Object;
+
+    [Bindable("dataChange")]
+    [Inspectable(environment="none")]
+
+    /**
+     *  Lets you pass a value to the component
+     *  when you use it in an item renderer or item editor.
+     *  You typically use data binding to bind a field of the data
+     *  property to a property of this component.
+     *
+     *
When you use the control as a drop-in item renderer or drop-in
+     *  item editor, Flex automatically writes the current value of the item
+     *  to the text property of this control.

+     *
+     *
You do not set this property in MXML.

+     *
+     *  @default null
+     *  @see mx.core.IDataRenderer
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function get data():Object
+    {
+        return _data;
+    }
+
+    /**
+     *  @private
+     */
+    public function set data(value:Object):void
+    {
+        var newText:*;
+
+        _data = value;
+
+        if (_listData)
+        {
+            newText = _listData.label;
+        }
+        else if (_data != null)
+        {
+            if (_data is String)
+                newText = String(_data);
+            else
+                newText = _data.toString();
+        }
+
+        if (newText !== undefined)
+            text = newText;
+
+        dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));
+    }
+
+
+	//----------------------------------
+	//  fontContext
+	//----------------------------------
+
+	/**
+	 *  Documentation is not currently available.
+	 */
+	public function get fontContext():IFlexModuleFactory
+	{
+		return null;
+	}
+
+	/**
+	 *  @private
+	 */
+	public function set fontContext(value:IFlexModuleFactory):void
+	{
+        // not used for DefineFont4
+	}
+
+    //----------------------------------
+    //  horizontalScrollPosition
+    //----------------------------------
+
+    /**
+     *  Documentation is not currently available.
+     */
+    public function get horizontalScrollPosition():Number
+    {
+        return textDisplay ? textDisplay.horizontalScrollPosition : 0;
+    }
+
+    /**
+     *  @private
+     */
+    public function set horizontalScrollPosition(value:Number):void
+    {
+        if (textDisplay)
+            textDisplay.horizontalScrollPosition = value;
+    }
+
+    //----------------------------------
+    //  listData
+    //----------------------------------
+
+    private var _listData:BaseListData;
+
+    [Bindable("dataChange")]
+    [Inspectable(environment="none")]
+
+    /**
+     *  When a component is used as a drop-in item renderer or drop-in
+     *  item editor, Flex initializes the listData property
+     *  of the component with the appropriate data from the list control.
+     *  The component can then use the listData property
+     *  to initialize the data property of the drop-in
+     *  item renderer or drop-in item editor.
+     *
+     *
You do not set this property in MXML or ActionScript;
+     *  Flex sets it when the component is used as a drop-in item renderer
+     *  or drop-in item editor.

+     *
+     *  @default null
+     *  @see mx.controls.listClasses.IDropInListItemRenderer
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function get listData():BaseListData
+    {
+        return _listData;
+    }
+
+    /**
+     *  @private
+     */
+    public function set listData(value:BaseListData):void
+    {
+        _listData = value;
+    }
+
+	//----------------------------------
+	//  parentDrawsFocus
+	//----------------------------------
+
+    private var _parentDrawsFocus:Boolean = false;
+
+	/**
+	 *  Documentation is not currently available.
+	 */
+	public function get parentDrawsFocus():Boolean
+	{
+		return _parentDrawsFocus;
+	}
+
+	/**
+	 *  @private
+	 */
+	public function set parentDrawsFocus(value:Boolean):void
+	{
+	    _parentDrawsFocus = value;
+	}
+
+	//--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  border
+    //----------------------------------
+
+    /**
+     *  Documentation is not currently available.
+     */
+    public function showBorder(visible:Boolean):void
+    {
+        trace("TLFTextInput showBorder", visible, "noop");
+    }
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     *  Forward the drawFocus to the parent, if requested
+     */
+    override public function drawFocus(isFocused:Boolean):void
+    {
+        if (_parentDrawsFocus)
+        {
+            IFocusManagerComponent(parent).drawFocus(isFocused);
+            return;
+        }
+
+        super.drawFocus(isFocused);
+    }
+
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 21901
Author:   jszeto@adobe.com
Date:     2011-08-08T22:37:12.584468Z

Log Message:
-----------
DataGroup performance fix

Only call dataProvider.getItemAt when needed.

QE notes: none
Doc notes: none
Bugs: none
Reviewer: Evtim
Tests run: cyclone, checkintests
Is noteworthy for integration: no

Modified Paths:
--------------
/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/DataGroup.as

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

--- frameworks/projects/spark/src/spark/components/DataGroup.as
+++ frameworks/projects/spark/src/spark/components/DataGroup.as
@@ -1517,11 +1517,12 @@
             if (virtualRendererIndices.indexOf(index) == -1)
                 virtualRendererIndices.push(index);

-            const item:Object = dataProvider.getItemAt(index);
+            var item:Object;

             addedVirtualRenderer = false;  // set by createVirtualRendererForItem()
             if (!elt)
             {
+                item = dataProvider.getItemAt(index);
                 elt = createVirtualRendererForItem(item);
                 elt.visible = true;
                 elt.includeInLayout = true;


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

--- frameworks/projects/spark/src/spark/components/DataGroup.as
+++ frameworks/projects/spark/src/spark/components/DataGroup.as
@@ -1,10 +1,10 @@
-package mx.components
+package spark.components
 {
 import flash.display.DisplayObject;
 import flash.utils.Dictionary;

 import mx.collections.IList;
-import mx.components.baseClasses.GroupBase;
+import spark.components.supportClasses.GroupBase;
 import mx.core.IDataRenderer;
 import mx.core.IFactory;
 import mx.core.IInvalidating;
@@ -14,9 +14,9 @@
 import mx.core.UIComponent;
 import mx.events.CollectionEvent;
 import mx.events.CollectionEventKind;
-import mx.events.RendererExistenceEvent;
-import mx.layout.LayoutBase;
-import mx.layout.LayoutElementFactory;
+import spark.events.RendererExistenceEvent;
+import spark.layout.supportClasses.LayoutBase;
+import spark.layout.supportClasses.LayoutElementFactory;

 use namespace mx_internal;  // for mx_internal property contentChangeDelta


Transferred from the Adobe Open Source Subversion Repository

Revision: 4111
Author:   chaase@adobe.com
Date:     2008-11-14T16:39:46.711628Z

Log Message:
-----------
Makes auto-reversal of transitions work more completely and correctly, fixing some API issues and other related animation/effect issues along the way. Seeking behavior in effects is improved (although still far from perfect, especially for non-playing effects), and dynamic behavior of effects (picking up values dynamically from the environment) is improved.

QE Notes: better seek() behavior, can just call it on non-playing effects and it will automatically play/pause the effect if necessary
Doc Notes: None
Bugs: sdk-17294, sdk-16595, sdk-18104, sdk-18105, sdk-18106, sdk-18107
Reviewer: Jason
tests: checkintests, Mustella: tests/Effects, tests/gumbo/effects tests/ListDataEffects

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/states/Transition.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/CompositeEffect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/RemoveAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/EffectEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxResizeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxMoveInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/IEffectInstance.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/framework/src/mx/effects/Effect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Parallel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/CallAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxAnimate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/IEffect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/SequenceInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Sequence.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/flex4/src/mx/effects/AddAction.as</path>

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

--- frameworks/projects/spark/src/spark/effects/RemoveAction.as
+++ frameworks/projects/spark/src/spark/effects/RemoveAction.as
@@ -82,7 +82,7 @@
 	public function RemoveAction(target:Object = null)
 	{
 		super(target);
-
+        duration = 0;
 		instanceClass = RemoveActionInstance;
 	}


Transferred from the Adobe Open Source Subversion Repository

Revision: 21492
Author:   jimurphy@adobe.com
Date:     2011-06-29T17:01:58.935652Z

Log Message:
-----------
apply security fix patch

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/framework/src/mx/modules/ModuleManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mx/src/mx/modules/ModuleLoader.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/modules/ModuleLoader.as</path>

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

--- frameworks/projects/spark/src/spark/modules/ModuleLoader.as
+++ frameworks/projects/spark/src/spark/modules/ModuleLoader.as
@@ -13,6 +13,7 @@
 {
 import flash.events.Event;
 import flash.system.ApplicationDomain;
+import flash.system.SecurityDomain;
 import flash.utils.ByteArray;
 import mx.core.ContainerCreationPolicy;
 import mx.core.FlexVersion;
@@ -140,6 +141,22 @@
  *  only a single copy of the module SWF file is transferred over the network by using the
  *  ModuleManager singleton.

  *
+ *

+ *  <s:ModuleLoader
+ *    Properties
+ *    url="No default"
+ *    trustContent="false|true"
+ *
+ *    Events
+ *    error="No default"
+ *    loading="No default"
+ *    progress="No default"
+ *    ready="No default"
+ *    setup="No default"
+ *    unload="No default"
+ *  />
+ *

+ *
  *  @see mx.modules.ModuleManager
  *  @see spark.modules.Module
  *  @see mx.controls.SWFLoader
@@ -234,6 +251,66 @@
     public var child:IVisualElement;

     //----------------------------------
+    //  trustContent
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the trustContent property.
+     */
+    private var _trustContent:Boolean = false;
+
+    [Bindable("trustContentChanged")]
+    [Inspectable(defaultValue="false")]
+
+    /**
+     *  If true, the content is loaded
+     *  into your security domain.
+     *  This means that the load fails if the content is in another domain
+     *  and that domain does not have a crossdomain.xml file allowing your
+     *  domain to access it.
+     *  This property only has an affect on the next load,
+     *  it will not start a new load on already loaded content.
+     *
+     *
The default value is false, which means load
+     *  any content without failing, but you cannot access the content.
+     *  Most importantly, the loaded content cannot
+     *  access your objects and code, which is the safest scenario.
+     *  Do not set this property to true unless you are absolutely sure of the safety
+     *  of the loaded content

+     *
+     *  @default false
+     *  @see flash.system.SecurityDomain
+     *  @see flash.system.ApplicationDomain
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.6
+     *  @productversion Flex 4.5.1
+     */
+    public function get trustContent():Boolean
+    {
+        return _trustContent;
+    }
+
+    /**
+     *  @private
+     */
+    public function set trustContent(value:Boolean):void
+    {
+        if (_trustContent != value)
+        {
+            _trustContent = value;
+
+            invalidateProperties();
+            invalidateSize();
+            invalidateDisplayList();
+
+            dispatchEvent(new Event("trustContentChanged"));
+        }
+    }
+
+    //----------------------------------
     //  url
     //----------------------------------

@@ -616,7 +693,10 @@
             tempApplicationDomain = new ApplicationDomain(currentDomain);
         }

-        module.load(tempApplicationDomain, null, bytes, moduleFactory);
+        module.load(tempApplicationDomain,
+                    trustContent ? SecurityDomain.currentDomain : null,
+                    bytes,
+                    moduleFactory);
     }

     /**


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

--- frameworks/projects/framework/src/mx/core/FlexTextField.as
+++ frameworks/projects/framework/src/mx/core/FlexTextField.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 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: 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@1274104 13f79535-47bb-0310-9956-ffa450edef68

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 5223
Author:   egeorgie@adobe.com
Date:     2009-03-10T20:10:07.223108Z

Log Message:
-----------
Introduce ButtonBase and ToggleButtonBase classes and make FxButton extend ButtonBase, ToggleButtonBase extend ButtonBase, FxToggleButton, FxCheckBox, FxRadioButton extend ToggleButtonBase.as.
The emphasized property and IButton are pushed down to the FxButton, so the rest of the buttons don't have them.

QE Notes: None
Doc Notes:
Bugs: SDK-19671, SDK-19670
Reviewer: Glenn
tests: checkintests, mustella (gumbo/components)

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxCheckBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxRadioButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/mxml-2009-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxToggleButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/ButtonBarButton.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/ButtonBase.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/ToggleButtonBase.as</path>

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

--- frameworks/projects/spark/src/spark/components/CheckBox.as
+++ frameworks/projects/spark/src/spark/components/CheckBox.as
@@ -14,6 +14,8 @@

 import flash.events.Event;
 import flash.events.MouseEvent;
+
+import mx.components.baseClasses.ToggleButtonBase;

 /**
  *  @copy mx.components.baseClasses.GroupBase#symbolColor
@@ -44,7 +46,7 @@
  *  @playerversion AIR 1.5
  *  @productversion Flex 4
  */
-public class FxCheckBox extends FxToggleButton
+public class FxCheckBox extends ToggleButtonBase
 {
     include "../core/Version.as";