Transferred from the Adobe Open Source Subversion Repository

Revision: 6443
Author:   rfrishbe@adobe.com
Date:     2009-04-30T22:46:07.257552Z

Log Message:
-----------
Renaming SkinnableComponent's loadSkin() and unloadSkin() skinning lifecycle methods to createSkin() and destroySkin() as no loading actually occurs here.

Also fixing up a few ASDoc bugs in the videoplayer stuff.  Also, checking in modifications to TrackBase, which was a file I missed yesterday when checking in.  The changes add 3 new events to TrackBase and clean it up so the setters don't do any extra work if it's being set to the same value as it was before.

QE Notes: -
Doc Notes: -
Bugs: SDK-19779
Reviewer: Jason
tests: checkintests, mustella SkinnableComponent tests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/VideoElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VideoPlayerScrubBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VideoPlayerVolumeBarMuteButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/TrackBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VideoPlayerVolumeBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/windowClasses/TitleBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VideoPlayer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/SkinnableComponent.as</path>

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

--- frameworks/projects/spark/src/spark/components/VideoDisplay.as
+++ frameworks/projects/spark/src/spark/components/VideoDisplay.as
@@ -597,7 +597,7 @@
     //----------------------------------

     /**
-     *  The underlying video object.
+     *  The underlying flash player flash.media.Video object
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -628,7 +628,7 @@
      */
     public function get volume():Number
     {
-            return mx_internal::videoPlayer.volume;
+        return mx_internal::videoPlayer.volume;
     }

     /**


minor typing fix.

minor typing fix.

--- api/actionscript/AS2/swhx/Serializer.as
+++ api/actionscript/AS2/swhx/Serializer.as
@@ -193,7 +193,7 @@
         this.scache.push(value);
         this.buf += "y";
         value = escape(value);
-        this.buf += value.length;
+        this.buf = this.buf + value.length;
         this.buf += ":";
         this.buf += value;
     };


Transferred from the Adobe Open Source Subversion Repository

Revision: 17305
Author:   gruehle@adobe.com
Date:     2010-08-12T21:18:50.910120Z

Log Message:
-----------
This revision includes the following changes:
* Text skin parts for Spark components changed from TextBase and RichEditableText to IDisplayText and IEditableText
* TextBase implements IDisplayText
* RichEditableText implements IEditableText
* New mobile skins for TextInput and TextArea (TextArea appearance is placeholder for now)
* Add a TOUCH_SCROLL_STARTING handler to SkinnableTextBase. This handler prevents the touch scroll from happening if the text is selectable or editable.
* Change global contentBackgroundColor to #3F3F3F and mobile application backgroundColor to #484848

Now that text skin parts are interfaces they need to be cast to concrete types in a bunch of places. There are two general approaches taken here:
* For required functionality, cast to a known type like InteractiveObject
* For optional functionality, cast to the desired type using “as” and wrap the code with a null check.

QE notes: Mobile TextInput is ready for testing. TextArea has some issues with resizing, so testing should wait for now.
Doc notes: -
Bugs: -
Reviewer: Jason Szeto, Corey L.
Tests run: full mustella pass (thank you cyclone server!), checkintests
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextInput_border.fxg</path>
<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/mobilecomponents/src/spark/components/supportClasses/MobileTextField.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/automation_spark/src/spark/automation/delegates/components/SparkComboBoxAutomationImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/defaults.css</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextInputSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/MobileThemeClasses.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/TextArea.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/accessibility/VideoPlayerAccImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/FormItem.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/FormHeading.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/MobileComponentsClasses.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/RichEditableText.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaSkin.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/spark/src/spark/accessibility/PanelAccImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/DefaultColumnHeaderRenderer.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/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkSkinnableTextBaseAutomationImpl.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ButtonSkinBase.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ButtonSkinBase.as
@@ -27,11 +27,13 @@
     import mx.core.UIComponent;
     import mx.core.UITextField;
     import mx.core.mx_internal;
+    import mx.events.FlexEvent;
     import mx.states.SetProperty;
     import mx.states.State;
     import mx.utils.ColorUtil;

     import spark.components.supportClasses.ButtonBase;
+    import spark.components.supportClasses.MobileTextField;
     import spark.skins.MobileSkin;

     use namespace mx_internal;
@@ -66,6 +68,10 @@
         public function ButtonSkinBase()
         {
             super();
+
+            setStyle("textAlign", "center");
+            // TODO (jszeto) Ask XD if shadow color is dependant upon text color
+            setStyle("textShadowColor", 0x000000);
         }

         //--------------------------------------------------------------------------
@@ -76,8 +82,12 @@

         private var iconClassChanged:Boolean = true;

-        protected var textField:IUITextField;
-        protected var textFieldShadow:IUITextField;
+        /**
+         *  labelDisplay skin part.
+         */
+        public var labelDisplay:MobileTextField;
+
+        protected var labelDisplayShadow:MobileTextField;

         // Holds the icon
         protected var iconDisplay:DisplayObject;
@@ -113,26 +123,18 @@
          */
         override protected function createChildren():void
         {
-            textField = IUITextField(createInFontContext(UITextField));
-            textFieldShadow = IUITextField(createInFontContext(UITextField));
-
-            // TODO (jszeto) Ask XD if shadow color is dependant upon text color
-            textFieldShadow.setColor(0x000000);
-            textFieldShadow.alpha = .20;
-
-            addChild(UITextField(textFieldShadow));
-            addChild(UITextField(textField));
-
-            updateLabel();
-
-            // SkinnableComponent doesn't notify us if we have been removed
-            // from the hostComponent, so we use a weak reference
-            if (hostComponent != null)
-            {
-                hostComponent.addEventListener("contentChange",
-                    hostComponent_contentChangeHandler,
-                    false, 0, true);
-            }
+            labelDisplay = MobileTextField(createInFontContext(MobileTextField));
+            labelDisplay.styleProvider = this;
+            labelDisplay.addEventListener(FlexEvent.VALUE_COMMIT, labelDisplay_valueCommitHandler);
+
+            labelDisplayShadow = MobileTextField(createInFontContext(MobileTextField));
+            labelDisplayShadow.styleProvider = this;
+
+            labelDisplayShadow.colorName = "textShadowColor";
+            labelDisplayShadow.alpha = .30;
+
+            addChild(labelDisplayShadow);
+            addChild(labelDisplay);
         }

         /**
@@ -148,6 +150,11 @@
             }

             super.styleChanged(styleProp);
+
+            if (labelDisplay)
+                labelDisplay.styleChanged(styleProp);
+            if (labelDisplayShadow)
+                labelDisplayShadow.styleChanged(styleProp);
         }

         override protected function commitProperties():void
@@ -389,15 +396,19 @@
                 }
             }

-            textField.x = Math.round(labelX);
-            textField.y = Math.round(labelY);
-            textField.height = labelHeight;
-            textField.width = labelWidth;
-
-            textFieldShadow.x = Math.round(labelX);
-            textFieldShadow.y = Math.round(labelY + 1);
-            textFieldShadow.height = labelHeight;
-            textFieldShadow.width = labelWidth;
+            labelDisplay.commitStyles();
+            labelDisplay.x = Math.round(labelX);
+            labelDisplay.y = Math.round(labelY);
+            labelDisplay.height = labelHeight;
+            labelDisplay.width = labelWidth;
+            labelDisplay.truncateToFit();
+
+            labelDisplayShadow.commitStyles();
+            labelDisplayShadow.x = Math.round(labelX);
+            labelDisplayShadow.y = Math.round(labelY + 1);
+            labelDisplayShadow.height = labelHeight;
+            labelDisplayShadow.width = labelWidth;
+            labelDisplayShadow.truncateToFit();

             if (iconDisplay)
             {
@@ -415,25 +426,10 @@
         /**
          *  @private
          */
-        private function hostComponent_contentChangeHandler(event:Event):void
+        private function labelDisplay_valueCommitHandler(event:Event):void
         {
-            updateLabel();
-        }
-
-        /**
-         *  @private
-         */
-        private function updateLabel():void
-        {
-            if (hostComponent != null && textField)
-            {
-                textField.text = hostComponent.label;
-                textFieldShadow.text = hostComponent.label;
-                invalidateSize();
-            }
-        }
-
-
+            labelDisplayShadow.text = labelDisplay.text;
+        }

     }
 }


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

--- frameworks/projects/mx/src/mx/controls/textClasses/TextRange.as
+++ frameworks/projects/mx/src/mx/controls/textClasses/TextRange.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.controls.textClasses
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 9779
Author:   chaase@adobe.com
Date:     2009-08-29T01:17:24.968838Z

Log Message:
-----------
Fixed bug with transform effects acting on optimized FXG objects. We did not have some of the required functionality on SpriteVisualElement that would allow objects of that type (optimized FXG objects) to be animated by the flex 4 transform effects. We have added that functionality and pushed that common property (postLayoutTransformOffsets) and function (transformAround()) into interfaces implemented by  the objects that can be so transformed.
Also fixed some unrelated bugs lurking in the transformAround() and AnimateTransform code.

QE notes: None
Doc notes: None
Bugs: sdk-22576
Reviewer: Ely
Tests run: checkintests, Mustella (tests/spark/effects/AnimateTransform, Move, Rotate, Rotate3D)
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="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/spark/src/spark/effects/supportClasses/AnimateTransformInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ILayoutElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransform.as</path>

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

--- frameworks/projects/spark/src/spark/core/SpriteVisualElement.as
+++ frameworks/projects/spark/src/spark/core/SpriteVisualElement.as
@@ -13,6 +13,7 @@
 {

 import flash.display.DisplayObjectContainer;
+import flash.events.Event;
 import flash.geom.ColorTransform;
 import flash.geom.Matrix;
 import flash.geom.Matrix3D;
@@ -29,6 +30,7 @@
 import mx.core.mx_internal;
 import mx.events.PropertyChangeEvent;
 import mx.geom.Transform;
+import mx.geom.TransformOffsets;
 import mx.utils.MatrixUtil;

 import spark.components.ResizeMode;
@@ -251,6 +253,42 @@
     //--------------------------------------------------------------------------

     //----------------------------------
+    //  postLayoutTransformOffsets
+    //----------------------------------
+
+    /**
+     *  @copy mx.core.ILayoutElement#postLayoutTransformOffsets
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function get postLayoutTransformOffsets():TransformOffsets
+    {
+        return (_layoutFeatures == null)?
+            null :
+            _layoutFeatures.postLayoutTransformOffsets;
+    }
+
+    /**
+     * @private
+     */
+    public function set postLayoutTransformOffsets(value:TransformOffsets):void
+    {
+        if(value != null && _layoutFeatures == null)
+            initAdvancedLayoutFeatures();
+
+        if(_layoutFeatures.postLayoutTransformOffsets != null)
+            _layoutFeatures.postLayoutTransformOffsets.removeEventListener
+                (Event.CHANGE,transformOffsetsChangedHandler);
+        _layoutFeatures.postLayoutTransformOffsets = value;
+        if(_layoutFeatures.postLayoutTransformOffsets != null)
+            _layoutFeatures.postLayoutTransformOffsets.addEventListener
+                (Event.CHANGE,transformOffsetsChangedHandler);
+    }
+
+    //----------------------------------
     //  alpha
     //----------------------------------

@@ -1348,6 +1386,14 @@
     //  Methods
     //
     //--------------------------------------------------------------------------
+
+    /**
+     * @private
+     */
+    private function transformOffsetsChangedHandler(e:Event):void
+    {
+        invalidateTransform();
+    }

     private function get preferredWidth():Number
     {
@@ -1747,7 +1793,94 @@
 			invalidateParentSizeAndDisplayList();
 	}

-	public function transformPointToParent(transformCenter:Vector3D,position:Vector3D,postLayoutPosition:Vector3D):void
+    /**
+     * @copy mx.core.ILayoutElement#transformAround
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function transformAround(transformCenter:Vector3D,
+                                    scale:Vector3D = null,
+                                    rotation:Vector3D = null,
+                                    translation:Vector3D = null,
+                                    postLayoutScale:Vector3D = null,
+                                    postLayoutRotation:Vector3D = null,
+                                    postLayoutTranslation:Vector3D = null):void
+    {
+        if (_layoutFeatures == null)
+        {
+            var needAdvancedLayout:Boolean =
+                (scale != null && scale.z != 1 && !isNaN(scale.z)) ||
+                (rotation != null && ((!isNaN(rotation.x) && rotation.x != 0) ||
+                    (!isNaN(rotation.y) && rotation.y != 0))) ||
+                (translation != null && translation.z != 0 && !isNaN(translation.z)) ||
+                postLayoutScale != null ||
+                postLayoutRotation != null ||
+                (postLayoutTranslation != null &&
+                    (postLayoutTranslation.x != translation.x ||
+                     postLayoutTranslation.y != translation.y ||
+                     postLayoutTranslation.z != translation.z));
+            if (needAdvancedLayout)
+                initAdvancedLayoutFeatures();
+        }
+        if (_layoutFeatures)
+        {
+            _layoutFeatures.transformAround(transformCenter, scale, rotation, translation,
+                postLayoutScale, postLayoutRotation, postLayoutTranslation);
+            invalidateTransform();
+            invalidateParentSizeAndDisplayList();
+        }
+        else
+        {
+            if (translation == null && transformCenter != null)
+            {
+                if (xformPt == null)
+                    xformPt = new Point();
+                xformPt.x = transformCenter.x;
+                xformPt.y = transformCenter.y;
+                var xformedPt:Point =
+                    super.transform.matrix.transformPoint(xformPt);
+            }
+            if (rotation != null && !isNaN(rotation.z))
+                this.rotation = rotation.z;
+            if (scale != null)
+            {
+                scaleX = scale.x;
+                scaleY = scale.y;
+            }
+            if (transformCenter == null)
+            {
+                if (translation != null)
+                {
+                    x = translation.x;
+                    y = translation.y;
+                }
+            }
+            else
+            {
+                if (xformPt == null)
+                    xformPt = new Point();
+                xformPt.x = transformCenter.x;
+                xformPt.y = transformCenter.y;
+                var postXFormPoint:Point =
+                    super.transform.matrix.transformPoint(xformPt);
+                if (translation != null)
+                {
+                    x += translation.x - postXFormPoint.x;
+                    y += translation.y - postXFormPoint.y;
+                }
+                else
+                {
+                    x += xformedPt.x - postXFormPoint.x;
+                    y += xformedPt.y - postXFormPoint.y;
+                }
+            }
+        }
+    }
+
+    public function transformPointToParent(transformCenter:Vector3D,position:Vector3D,postLayoutPosition:Vector3D):void
 	{
 		if (_layoutFeatures != null)
 		{


Transferred from the Adobe Open Source Subversion Repository

Revision: 3109
Author:   hmuller@adobe.com
Date:     2008-09-05T04:22:32.753328Z

Log Message:
-----------
Substantially revised the Scroller component.  This version supports
the vertical,horizontalScrollPolicy properties (as in Halo) and no
longer includes a vestigal "viewportHolder" skin part.  Layout is
now handled programatically, instead of with MXML constraints.

There are still some limitations for the "auto" scroll policies, and
some other minor layout problems.  There is no documentation (yet).

Corrected minimum size calculation in Vertical,HorizontalLayout
for the cases where an explicit rowCount or columnCount was specified.
The measured min sizes are now only based on the first rowCount
or columnCount (visible) layout items.

QE: Scroller can now be tested
Doc: No
Checkintests: Pass
Reviewer: Ryan

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/Scroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/intf/IViewport.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/ScrollerSkin.mxml</path>

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

--- frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
+++ frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
@@ -288,7 +288,6 @@
         }
     }

-

     public function variableColumnWidthMeasure(layoutTarget:Group):void
     {
@@ -300,40 +299,41 @@
         var visibleColumns:uint = 0;
         var explicitColumnCount:int = explicitColumnCount;

-
         var count:uint = layoutTarget.numLayoutItems;
         var totalCount:uint = count; // How many items will be laid out
         for (var i:int = 0; i < count; i++)
         {
-            var layoutItem:ILayoutItem = layoutTarget.getLayoutItemAt(i);
-            if (!layoutItem || !layoutItem.includeInLayout)
+            var li:ILayoutItem = layoutTarget.getLayoutItemAt(i);
+            if (!li || !li.includeInLayout)
             {
             	totalCount--;
                 continue;
             }

-            preferredHeight = Math.max(preferredHeight, layoutItem.preferredSize.y);
-            preferredWidth += layoutItem.preferredSize.x;
-
-            var itemMinWidth:Number = hasPercentWidth(layoutItem) ? layoutItem.minSize.x : layoutItem.preferredSize.x;
-            var itemMinHeight:Number = hasPercentHeight(layoutItem) ? layoutItem.minSize.y : layoutItem.preferredSize.y;
-            minHeight = Math.max(minHeight, itemMinHeight);
-            minWidth += itemMinWidth;
+            preferredHeight = Math.max(preferredHeight, li.preferredSize.y);
+            preferredWidth += li.preferredSize.x;

-            if ((explicitColumnCount != -1) && (visibleColumns < explicitColumnCount))
+            var vcr:Boolean = (explicitColumnCount != -1) && (visibleColumns < explicitColumnCount);
+            if (vcr || (explicitColumnCount == -1))
+            {
+                var mw:Number =  hasPercentWidth(li) ? li.minSize.x : li.preferredSize.x;
+                var mh:Number = hasPercentHeight(li) ? li.minSize.y : li.preferredSize.y;
+                minWidth += mw;
+                minHeight = Math.max(minHeight, mh);
+            }
+            if (vcr)
             {
             	visibleWidth = preferredWidth;
             	visibleColumns += 1;
             }
-
         }

         if (totalCount > 1)
         {
-            var gapSpace:Number = gap * (totalCount - 1);
-            minWidth += gapSpace;
-            preferredWidth += gapSpace;
-            visibleWidth += (visibleColumns < 2) ? 0 : ((visibleColumns - 1) * gap);
+            preferredWidth += gap * (totalCount - 1);
+            var vgap:Number = (visibleColumns > 1) ? ((visibleColumns - 1) * gap) : 0;
+            visibleWidth +=  vgap;
+            minWidth += vgap;
         }

         layoutTarget.measuredWidth = (explicitColumnCount == -1) ? preferredWidth : visibleWidth;
@@ -383,7 +383,7 @@
         layoutTarget.measuredWidth = visibleWidth;
         layoutTarget.measuredHeight = rowHeight;

-        layoutTarget.measuredMinWidth = columnWidth;
+        layoutTarget.measuredMinWidth = visibleWidth;
         layoutTarget.measuredMinHeight = minRowHeight;

         layoutTarget.setContentSize(contentWidth, rowHeight);


fix Matrix4x4.interpolateTo() to invalidate the interpolated components

--- src/aerys/minko/type/math/Matrix4x4.as
+++ src/aerys/minko/type/math/Matrix4x4.as
@@ -532,8 +532,12 @@

 		public function interpolateTo(target : Matrix4x4, ratio : Number, withScale : Boolean = true) : Matrix4x4
 		{
+			_invalidComponents = COMPONENT_ROTATION | COMPONENT_TRANSLATION;
+
 			if (withScale)
 			{
+				_invalidComponents |= COMPONENT_SCALE;
+
 				var scale	: Vector4	= getScale(TMP_VECTOR4);
 				var sx		: Number	= scale.x;
 				var sy		: Number	= scale.y;


I had fallen into a sketchy pattern in GamePlayerList and my hashCode() implementation, and this
works fine (better, really) with a Dictionary and pure object equality, so lets just do that.

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

--- src/as/com/threerings/flex/PlayerList.as
+++ src/as/com/threerings/flex/PlayerList.as
@@ -21,6 +21,8 @@

 package com.threerings.flex {

+import flash.utils.Dictionary;
+
 import mx.collections.ArrayCollection;
 import mx.collections.Sort;

@@ -30,8 +32,6 @@
 import mx.core.ScrollPolicy;

 import com.threerings.util.Comparable;
-import com.threerings.util.Hashable;
-import com.threerings.util.HashMap;

 public class PlayerList extends VBox
 {
@@ -69,13 +69,13 @@

     /**
      * The PlayerList is meant to include data that is at least as complicated as a Name, so to
-     * keep things simple and extendable, we require Hashables.  This allows the issue of passing
+     * keep things simple and extendable, we require Comparable.  This allows the issue of passing
      * the NameLabelCreator into the player renderer to be kept simple and straightforward and still
      * allow efficient item updating.
      */
-    public function addItem (value :Hashable) :void
-    {
-        var currentValue :Array = _values.get(value) as Array;
+    public function addItem (value :Comparable) :void
+    {
+        var currentValue :Array = _values[value] as Array;
         if (currentValue != null) {
             currentValue[1] = value;
             // this is the same array already contained in the list, so the proper renderer should
@@ -83,26 +83,28 @@
             _players.itemUpdated(currentValue);
         } else {
             currentValue = [_labelCreator, value];
-            _values.put(value, currentValue);
+            _values[value] = currentValue;
             _players.addItem(currentValue);
         }
     }

-    public function removeItem (value :Hashable) :void
-    {
-        var currentValue :Array = _values.remove(value) as Array;
+    public function removeItem (value :Comparable) :void
+    {
+        var currentValue :Array = _values[value] as Array;
         if (currentValue != null) {
             _players.removeItemAt(_players.getItemIndex(currentValue));
         }
+
+        delete _values[value];
     }

     /**
      * Notify the list that this value has changed internally, and the renderer should be told to
      * redraw its contents.
      */
-    public function itemUpdated (value :Hashable) :void
-    {
-        var currentValue :Array = _values.get(value) as Array;
+    public function itemUpdated (value :Comparable) :void
+    {
+        var currentValue :Array = _values[value] as Array;
         if (currentValue != null) {
             currentValue[1] = value;
             _players.itemUpdated(currentValue);
@@ -133,7 +135,7 @@
     protected var _labelCreator :NameLabelCreator;
     protected var _list :AmbidextrousList;
     protected var _players :ArrayCollection = new ArrayCollection();
-    protected var _values :HashMap = new HashMap();
+    protected var _values :Dictionary = new Dictionary();
 }
 }


- handles pauses better and still sends progress updates

--- src/flash/htmlelements/VideoElement.as
+++ src/flash/htmlelements/VideoElement.as
@@ -103,7 +103,8 @@
 			_bytesLoaded = _stream.bytesLoaded;
 			_bytesTotal = _stream.bytesTotal;

-			sendEvent(HtmlMediaEvent.TIMEUPDATE);
+			if (!_isPaused)
+				sendEvent(HtmlMediaEvent.TIMEUPDATE);

 			trace("bytes", _bytesLoaded, _bytesTotal);

@@ -301,7 +302,10 @@

 			_stream.pause();
 			_isPaused = true;
-			_timer.stop();
+
+			if (_bytesLoaded == _bytesTotal) {
+				_timer.stop();
+			}

 			_isPaused = true;
 			sendEvent(HtmlMediaEvent.PAUSE);


+ Fix the build

+ Fix the build

git-svn-id: d62bde4b5aa582fdf07c8d403e53e0399a7ed285@11352 fa20e4f9-1d0a-0410-b5f3-dc9c16b8b17c

--- WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
+++ WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
@@ -714,7 +714,7 @@
       /** setX( Number:x )
           o Moves the sprite to the specified x coordinate
       */
-      public function setX ( x:String ):void {
+      public function setX ( x:Number ):void {
           this.x = x;
       }


verify function now checks for valid xml

--- WeaveCore/src/weave/core/LinkableXML.as
+++ WeaveCore/src/weave/core/LinkableXML.as
@@ -33,13 +33,24 @@
 	public class LinkableXML extends LinkableVariable
 	{
 		public function LinkableXML(allowNull:Boolean = true)
-		{
-			super(String, allowNull ? null : notNull);
+		{
+			super(String, verifyXMLString);
+			_allowNull = allowNull;
 		}

-		private function notNull(value:Object):Boolean
+		private var _allowNull:Boolean;
+
+		private function verifyXMLString(value:String):Boolean
 		{
-			return value != null;
+			if (value == null)
+				return _allowNull;
+
+			try {
+				XML(value);
+				return true;
+			}
+			catch (e:*) { }
+			return false;
 		}

 		/**


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

--- frameworks/projects/framework/src/mx/preloaders/Preloader.as
+++ frameworks/projects/framework/src/mx/preloaders/Preloader.as
@@ -47,6 +47,11 @@
  *
  *  @see mx.preloaders.DownloadProgressBar
  *  @see mx.preloaders.Preloader
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class Preloader extends Sprite
 {
@@ -60,6 +65,11 @@

 	/**
 	 *	Constructor.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function Preloader()
 	{
@@ -139,6 +149,11 @@
 	 *
 	 *  @param resourceModuleURLs Array of Strings specifying URLs
 	 *  from which to preload resource modules.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function initialize(showDisplay:Boolean,
 							   displayClassName:Class,
@@ -247,6 +262,11 @@
 	 *  do not call it yourself.
 	 *
 	 *  @param app The application object.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function registerApplication(app:IEventDispatcher):void
 	{


Transferred from the Adobe Open Source Subversion Repository

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

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

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

Modified Paths:
--------------
151 paths were modified

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

--- frameworks/projects/spark/src/spark/effects/easing/IEaser.as
+++ frameworks/projects/spark/src/spark/effects/easing/IEaser.as
@@ -25,6 +25,11 @@
  * specific object types.</p>
  *
  * @see mx.effects.Animation
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
  */
 public interface IEaser
 {
@@ -45,6 +50,11 @@
      * and end point without a problem, but other value types (such as color)
      * may not result in desired effects if they use time values that cause
      * them to surpass their endpoint values.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     function ease(fraction:Number):Number;
 }


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 9292
Author:   rfrishbe@adobe.com
Date:     2009-08-13T23:44:55.824541Z

Log Message:
-----------
In a SkinnableContainer, if no content has been explicitly specified (via MXML or addElement and the other mutation APIs), then the SkinnableContainer, doesn't own the content, and the default specified in the skin will be left as-is.  This already happens for other proxied properties, so for the content, we now do it as well.

QE notes: -
Doc notes: -
Bugs: SDK-22688
Reviewer: Glenn
Tests run: checkintests, mustella SkinnableComponent, SkinnableContainer
Is noteworthy for integration: No

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableContainer.as

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

--- frameworks/projects/spark/src/spark/components/SkinnableContainer.as
+++ frameworks/projects/spark/src/spark/components/SkinnableContainer.as
@@ -194,12 +194,12 @@
     /**
      *  @private
      */
-    private static const CLIP_AND_ENABLE_SCROLLING_PROPERTY_FLAG:uint = 1 << 0;
-
-    /**
-     *  @private
-     */
-    private static const LAYOUT_PROPERTY_FLAG:uint = 1 << 1;
+    private static const AUTO_LAYOUT_PROPERTY_FLAG:uint = 1 << 0;
+
+    /**
+     *  @private
+     */
+    private static const CLIP_AND_ENABLE_SCROLLING_PROPERTY_FLAG:uint = 1 << 1;

     /**
      *  @private
@@ -209,12 +209,12 @@
     /**
      *  @private
      */
-    private static const VERTICAL_SCROLL_POSITION_PROPERTY_FLAG:uint = 1 << 3;
-
-    /**
-     *  @private
-     */
-    private static const AUTO_LAYOUT_PROPERTY_FLAG:uint = 1 << 4;
+    private static const LAYOUT_PROPERTY_FLAG:uint = 1 << 3;
+
+    /**
+     *  @private
+     */
+    private static const VERTICAL_SCROLL_POSITION_PROPERTY_FLAG:uint = 1 << 4;

     //--------------------------------------------------------------------------
     //
@@ -550,7 +550,21 @@
     //  mxmlContent
     //----------------------------------

+    /**
+     *  @private
+     *  Variable used to store the mxmlContent when the contentGroup is
+     *  not around, and there hasnt' been a need yet for the placeHolderGroup.
+     */
     private var _mxmlContent:Array;
+
+    /**
+     *  @private
+     *  Variable that represents whether the content has been explicitely set
+     *  (via mxmlContent setter or with the mutation APIs, like addElement).
+     *  This is used to figure out whether we should override the default "content"
+     *  that is in the contentGroup of a skin.
+     */
+    private var _contentModified:Boolean = false;

     [ArrayElementType("mx.core.IVisualElement")]

@@ -570,6 +584,9 @@
             _placeHolderGroup.mxmlContent = value;
         else
             _mxmlContent = value;
+
+        if (value != null)
+            _contentModified = true;
     }

     //----------------------------------
@@ -703,6 +720,7 @@
      */
     public function addElement(element:IVisualElement):IVisualElement
     {
+        _contentModified = true;
         return currentContentGroup.addElement(element);
     }

@@ -716,6 +734,7 @@
      */
     public function addElementAt(element:IVisualElement, index:int):IVisualElement
     {
+        _contentModified = true;
         return currentContentGroup.addElementAt(element, index);
     }

@@ -729,6 +748,7 @@
      */
     public function removeElement(element:IVisualElement):IVisualElement
     {
+        _contentModified = true;
         return currentContentGroup.removeElement(element);
     }

@@ -742,6 +762,7 @@
      */
     public function removeElementAt(index:int):IVisualElement
     {
+        _contentModified = true;
         return currentContentGroup.removeElementAt(index);
     }

@@ -755,6 +776,7 @@
      */
     public function removeAllElements():void
     {
+        _contentModified = true;
         currentContentGroup.removeAllElements();
     }

@@ -763,6 +785,7 @@
      */
     public function setElementIndex(element:IVisualElement, index:int):void
     {
+        _contentModified = true;
         currentContentGroup.setElementIndex(element, index);
     }

@@ -776,6 +799,7 @@
      */
     public function swapElements(element1:IVisualElement, element2:IVisualElement):void
     {
+        _contentModified = true;
         currentContentGroup.swapElements(element1, element2);
     }

@@ -789,6 +813,7 @@
      */
     public function swapElementsAt(index1:int, index2:int):void
     {
+        _contentModified = true;
         currentContentGroup.swapElementsAt(index1, index2);
     }

@@ -862,32 +887,35 @@
     {
         if (instance == contentGroup)
         {
-            if (_placeHolderGroup != null)
-            {
-                var sourceContent:Array = _placeHolderGroup.getMXMLContent();
-
-                // FIXME (rfrishbe): investigate why we need this, especially if these elements shouldn't
-                // be added to the place holder Group's display list
-                // (aharui) They are added via calls to addElement if no other mxmlContent has been
-                // set.  This is a typical pattern when creating views from AS.  Create the child,
-                // create the parent, addElement the child to the parent.
-
-                // FIXME (rfrishbe): Also look at why we need a defensive copy for mxmlContent in Group,
-                // especially if we make it mx_internal.
-
-                // Temporary workaround because copying content from one Group to another throws RTE
-                for (var i:int = _placeHolderGroup.numElements; i > 0; i--)
+            if (_contentModified)
+            {
+                if (_placeHolderGroup != null)
                 {
-                    _placeHolderGroup.removeElementAt(0);
+                    var sourceContent:Array = _placeHolderGroup.getMXMLContent();
+
+                    // FIXME (rfrishbe): investigate why we need this, especially if these elements shouldn't
+                    // be added to the place holder Group's display list
+                    // (aharui) They are added via calls to addElement if no other mxmlContent has been
+                    // set.  This is a typical pattern when creating views from AS.  Create the child,
+                    // create the parent, addElement the child to the parent.
+
+                    // FIXME (rfrishbe): Also look at why we need a defensive copy for mxmlContent in Group,
+                    // especially if we make it mx_internal.
+
+                    // Temporary workaround because copying content from one Group to another throws RTE
+                    for (var i:int = _placeHolderGroup.numElements; i > 0; i--)
+                    {
+                        _placeHolderGroup.removeElementAt(0);
+                    }
+
+                    contentGroup.mxmlContent = sourceContent ? sourceContent.slice() : null;
+
                 }
-
-                contentGroup.mxmlContent = sourceContent ? sourceContent.slice() : null;
-
-            }
-            else if (_mxmlContent != null)
-            {
-                contentGroup.mxmlContent = _mxmlContent;
-                _mxmlContent = null;
+                else if (_mxmlContent != null)
+                {
+                    contentGroup.mxmlContent = _mxmlContent;
+                    _mxmlContent = null;
+                }
             }

             // copy proxied values from contentGroupProperties (if set) to contentGroup
@@ -998,7 +1026,7 @@

             var myMxmlContent:Array = contentGroup.getMXMLContent();

-            if (myMxmlContent)
+            if (_contentModified && myMxmlContent)
             {
                 _placeHolderGroup = new Group();


single time request update sending

single time request update sending

--- collect-flex/collect-flex-client/src/main/flex/org/openforis/collect/client/DataClient.as
+++ collect-flex/collect-flex-client/src/main/flex/org/openforis/collect/client/DataClient.as
@@ -30,7 +30,7 @@
 		public function DataClient() {
 			super("dataService");

-			this._updateQueueProcessor = new RemoteCallQueueProcessor(3, faultHandler);
+			this._updateQueueProcessor = new RemoteCallQueueProcessor(1);
 			this._updateActiveRecordOperation = getOperation("updateActiveRecord");
 			this._saveActiveRecordOperation = getOperation("saveActiveRecord");
 			this._createNewRecordOperation = getOperation("createNewRecord");


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

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

 package spark.skins.mobile
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 17840
Author:   matamel@adobe.com
Date:     2010-09-24T15:12:07.260023Z

Log Message:
-----------
Bug: BLZ-552 - AMFX should support Dictionary type
QA: Yes
Doc: Yes - document that the new Dictionary type is supported in AMFX (HTTPChannel) as well.

Details: Added the new Dictionary type to AMFX. This is the client side of the fix.

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/rpc/src/mx/messaging/channels/amfx/AMFXDecoder.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/rpc/src/mx/messaging/channels/amfx/AMFXEncoder.as</path>

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

--- frameworks/projects/rpc/src/mx/messaging/channels/amfx/AMFXDecoder.as
+++ frameworks/projects/rpc/src/mx/messaging/channels/amfx/AMFXDecoder.as
@@ -14,8 +14,9 @@

 import flash.net.getClassByAlias;
 import flash.utils.ByteArray;
+import flash.utils.Dictionary;
+import flash.utils.IExternalizable;
 import flash.utils.getDefinitionByName;
-import flash.utils.IExternalizable;

 import mx.logging.Log;
 import mx.messaging.errors.ChannelError;
@@ -234,6 +235,10 @@
         {
             result = decodeRef(xml, context);
         }
+        else if (name == "dictionary")
+        {
+            result = decodeDictionary(xml, context);
+        }
         else if (name == "double")
         {
             var n:String = xml.text().toString();
@@ -304,6 +309,28 @@
         }

         return array;
+    }
+
+    private static function decodeDictionary(xml:XML, context:AMFXContext):Dictionary
+    {
+        var dictionary:Dictionary = new Dictionary();
+
+        context.addObject(dictionary); // Remember the dictionary.
+
+        var entries:XMLList = xml.*;
+        if (entries == null)
+            return dictionary;
+
+        for (var i:uint = 0; i < entries.length(); i = i + 2)
+        {
+            var keyXml:XML = entries[i];
+            var valueXml:XML = entries[i + 1];
+            var key:Object= decodeValue(keyXml, context);
+            var value:Object = decodeValue(valueXml, context);
+            dictionary[key] = value;
+        }
+
+        return dictionary;
     }

     private static function decodeByteArray(xml:XML):ByteArray


Don't know what that was doing in there

Don't know what that was doing in there

--- raw/src/test/yellcorp/tools/StringConstants/StringConstantsTestRun.as
+++ raw/src/test/yellcorp/tools/StringConstants/StringConstantsTestRun.as
@@ -1,8 +1,6 @@
 package test.yellcorp.tools.StringConstants
 {
 import asunit.textui.TestRunner;
-
-import org.yellcorp.tools.StringConstants;

 public class StringConstantsTestRun extends TestRunner
@@ -10,9 +8,6 @@
     public function StringConstantsTestRun()
     {
         start(StringConstantsTest, null, SHOW_TRACE);
-        trace(StringConstants.valuesToCode([
-            "complete", "httpError", "ioError", "enterFrame"
-        ]).join("\n"));
     }
 }
 }


fixed compiler warning

fixed compiler warning

Change-Id: I66f87aeaa34419d485af5897267cf0389f47bbfc

--- WeaveUISpark/src/weave/visualization/plotters/GraphPlotter.as
+++ WeaveUISpark/src/weave/visualization/plotters/GraphPlotter.as
@@ -306,7 +306,7 @@

 			return;
 		}
-		private function lineEdge(srcX:Number, srcY:Number, destX:Number, destY:Number, isBidirectional:Boolean) /* Expects screen coords */
+		private function lineEdge(srcX:Number, srcY:Number, destX:Number, destY:Number, isBidirectional:Boolean):void /* Expects screen coords */
 		{
 			edgesShape.graphics.moveTo(srcX, srcY);

@@ -342,7 +342,6 @@
 					edgesShape.graphics.lineTo(xMid, yMid);
 				}
 			}
-			return;
 		}

 		private function drawEdge(srcNode:IGraphNode, destNode:IGraphNode, dataBounds:IBounds2D, screenBounds:IBounds2D, destination:BitmapData):void


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

--- frameworks/projects/framework/src/mx/core/DragSource.as
+++ frameworks/projects/framework/src/mx/core/DragSource.as
@@ -29,6 +29,11 @@
  *  if you have raw sound data you can add an MP3 format handler. The MP3
  *  conversion will only be done if the MP3 data is requested.

  *
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class DragSource
 {
@@ -42,6 +47,11 @@

 	/**
 	 *  Constructor.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function DragSource()
 	{
@@ -86,6 +96,11 @@
 	 *  or addHandler() methods.
 	 *  The default value depends on data added to the DragSource object.
 	 *
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function get formats():Array /* of String */
 	{
@@ -107,6 +122,11 @@
 	 *
 	 *  @param format String that specifies a label that describes
 	 *  the format for this data.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function addData(data:Object, format:String):void
 	{
@@ -127,6 +147,11 @@
 	 *  This function must return the data in the specified format.
 	 *
 	 *  @param format String that specifies the format for this data.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function addHandler(handler:Function,
 							   format:String):void
@@ -158,6 +183,11 @@
 	 *  If you drag multiple items, the returned value is an Array.
 	 *  For a List-based control, the returned value is always an Array,
 	 *  even if it contains a single item.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function dataForFormat(format:String):Object
 	{
@@ -180,6 +210,11 @@
 	 *
 	 *  @return true if the data source contains
 	 *  the requested format.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function hasFormat(format:String):Boolean
 	{


Transferred from the Adobe Open Source Subversion Repository

Revision: 2713
Author:   dloverin@adobe.com
Date:     2008-08-01T21:59:17.603743Z

Log Message:
-----------
Show Alerts using existing modal window code instead of using ShowAlertRequest.

QE:YES. Test alerts from all application nodes types. Alerts should be centered in the

visible portion of the sandbox root. Test showing alerts where the parent argument is a

 sandbox root, a UIComponent, and a display object that is not a UIComponent.
Doc:
Checkintests: Standard plus PopUpManager.
Reviewer: Alex
Bugs:

WindowedSystemManager:
	Implement getVisibleApplicationRect().

Alert.as
	Remove ShowAlertRequest. Modifiy centerPopUp() to send within the visible

portion of the sandbox root.

SWFLoader.as
	Implement IApplicationLoader.

UIComponent.as
	getVisibleRect() returns the rectangle in global coordinates.

SandboxBridgeRequest.as
	Add GET_VISIBLE_RECT request.

FocusManager.as
	Remove request handling for the showAlertRequest. Replace IFocusManagerBridge

is IApplicationLoader. IFocusManagerBridge will be removed.

ISystemManager2.as
   add new method:

   function getVisibleApplicationRect(bounds:Rectangle = null):Rectangle;

PopUpManagerImpl:
   Modify centerPopUp() to center within the visible portion of the parent.
   Allow the parent of a dialog to be the sandbox root.
   Move preProcessModalWindowRequest to SystemManager so PopUpManager only need to be

in the sandbox root.

SystemChildrenList.as
   Fix RTE when owner == child.

SystemManager.as
   Implement getVisibleApplicationRect().
   Handle requests for SandboxBridgeRequest.GET_VISIBLE_RECT.
   Add sandboxRoot requests: "isTopLevelRoot" and "getVisibleApplicationRect".

SystemManagerProxy.as
   override getVisibleApplicationRect().

Modified Paths:
--------------
<path kind="file" action="D">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/ShowAlertRequest.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/SystemChildrenList.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/ISystemManager2.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/SandboxBridgeRequest.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/controls/Alert.as</path>
<path kind="file" action="A">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/core/IApplicationLoader.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as</path>
<path kind="file" action="D">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/IFocusManagerBridge.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as</path>

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

--- frameworks/projects/framework/src/mx/core/ISWFLoader.as
+++ frameworks/projects/framework/src/mx/core/ISWFLoader.as
@@ -0,0 +1,68 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2008 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.core
+{
+import flash.geom.Rectangle;
+
+import mx.sandbox.ISandboxBridgeProvider;
+
+/**
+ *  The IApplicationLoader interface defines an API with special properties
+ *  and method required when loading compatible applications and untrusted applications.
+ */
+public interface IApplicationLoader extends ISandboxBridgeProvider
+{
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  compatibleLoad
+    //----------------------------------
+
+    /**
+     *  A flag that indictes whether content is loaded into a peer
+     *  AppicationDomain. Loading into a peer ApplicationDomain
+     *  will allow the loaded application to interop with applications build with other verions of Flex.
+     *  This flag is not respected if the content needs to be loaded into differnt
+     *  SecurityDomain.
+     *  If true, the content loads into a peer ApplicationDomain.
+     *  If false, the content loaded into a child ApplicationDomain.
+     *
+     *  @default false
+     */
+    function get compatibleLoad():Boolean;
+
+    /**
+     *  @private
+     */
+    function set compatibleLoad(value:Boolean):void;
+
+    /**
+     *  Get the bounds of the loaded application that are visible to the user
+     *  on the screen.
+     *
+     *  @param allApplications Control if the visible rect is calculated based only on the
+     *  display objects in this application or all parent applications as well.
+     *  Including more parent applications may reduce the visible area returned.
+     *  If true then all applications are used to find the visible
+     *  area, otherwise only the display objects in this application are used.
+     *
+     *  @return a Rectangle including the visible portion of the this
+     *  object. The rectangle is in global coordinates.
+     */
+    function getVisibleApplicationRect(allApplications:Boolean=false):Rectangle;
+
+}
+}


FLEX-33235
Fix made as per the task description to line 228.

git-svn-id: 4b4e2596707ef7e0312603b789aa270d64561f39@1405001 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/framework/src/mx/utils/PopUpUtil.as
+++ frameworks/projects/framework/src/mx/utils/PopUpUtil.as
@@ -225,8 +225,8 @@
         {
             tmpColorTransform.alphaMultiplier = oldAlpha;
             tmpColorTransform.alphaOffset = 0;
-        }
-        DisplayObject(popUp).transform.colorTransform = tmpColorTransform;
+            DisplayObject(popUp).transform.colorTransform = tmpColorTransform;
+        }
     }
 }
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 4205
Author:   clucier@adobe.com
Date:     2008-12-01T19:48:53.571431Z

Log Message:
-----------
Initial baselinePosition support for our new skinnable components.
QE Notes: Please wait until Evtim completes his baseline support in our new layouts to test.
Doc Notes: None
Reviewer: Glenn, Evtim

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxDefaultItemRenderer.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/ItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxHSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxPanel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextGraphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxNumericStepper.as</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/flex4/src/mx/components/baseClasses/FxTextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextBox.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/projects/flex4/src/mx/components/FxList.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/components/TextView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.as</path>

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