Transferred from the Adobe Open Source Subversion Repository

Revision: 18880
Author:   tkraikit@adobe.com
Date:     2010-11-30T23:22:18.931945Z

Log Message:
-----------
HSliderSkin for mobile: 240ppi and 160ppi implementations.

See https://zerowing.corp.adobe.com/display/xdplatform/Slider for XD spec.

QE notes: "disabled" state still requires work -- awaiting XD input
Doc notes: n/a
Bugs: n/a
Reviewer: Jason Szeto and Jason San Jose
Tests run: checkintests, mustella(cyclone)
Is noteworthy for integration: n/a

Modified Paths:
--------------
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderDataTip.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderTrackSkin.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/mobile240/assets/HSliderThumb_pressed.fxg</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile240/assets/HSliderTrack.fxg</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile160/assets/HSliderThumb_pressed.fxg</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile160/assets/HSliderTrack.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/MobileThemeClasses.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile240/assets/HSliderThumb_normal.fxg</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile160/assets/HSliderThumb_normal.fxg</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderSkin.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderThumbSkin.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderThumbSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderThumbSkin.as
@@ -0,0 +1,324 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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
+{
+import flash.display.DisplayObject;
+import flash.display.Graphics;
+
+import spark.components.Button;
+import spark.primitives.Graphic;
+import spark.skins.mobile.supportClasses.MobileSkin;
+import spark.skins.mobile160.assets.HSliderThumb_normal;
+import spark.skins.mobile160.assets.HSliderThumb_pressed;
+import spark.skins.mobile240.assets.HSliderThumb_normal;
+import spark.skins.mobile240.assets.HSliderThumb_pressed;
+
+/**
+ *  Actionscript based skin for the HSlider thumb skin part on mobile applications.
+ *
+ *  Note that this particular implementation provides separate chromeColorEllipse*
+ *  properties in order to handle a visible thumb image which is smaller than the
+ *  actual thumb FXG asset being used. In this case, the FXG asset specifies a larger
+ *  transparent background that acts as a larger "hit zone" for better usability on
+ *  mobile screens.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 2.5
+ *  @productversion Flex 4.5
+ */
+public class HSliderThumbSkin extends MobileSkin
+{
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     *
+     */
+	public function HSliderThumbSkin()
+	{
+		super();
+
+        useChromeColor = true;
+
+        // set the right assets and dimensions to use based on the screen density
+        switch (targetDensity)
+        {
+            case MobileSkin.PPI240:
+            {
+                thumbImageWidth = 65;
+                thumbImageHeight = 65;
+
+                thumbNormalClass = spark.skins.mobile240.assets.HSliderThumb_normal;
+                thumbPressedClass = spark.skins.mobile240.assets.HSliderThumb_pressed;
+
+                // the actual thumb ellipse is inset into the overall thumb FXG asset
+                chromeColorEllipseWidth = 42;
+                chromeColorEllipseHeight = 42;
+                chromeColorEllipseX = 11;
+                chromeColorEllipseY = 10;
+
+                break;
+            }
+            default:
+            {
+                // default PPI160
+                thumbImageWidth = 40;
+                thumbImageHeight = 40;
+
+                thumbNormalClass = spark.skins.mobile160.assets.HSliderThumb_normal;
+                thumbPressedClass = spark.skins.mobile160.assets.HSliderThumb_pressed;
+
+                // the actual thumb ellipse is inset into the overall thumb FXG asset
+                chromeColorEllipseWidth = chromeColorEllipseHeight = 28;
+                chromeColorEllipseX = chromeColorEllipseY = 6;
+
+                break;
+            }
+
+        }
+	}
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     * @copy spark.skins.spark.ApplicationSkin#hostComponent
+     */
+	public var hostComponent:Button;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Variables
+    //
+    //--------------------------------------------------------------------------
+
+    // FXG thumb classes
+    /**
+     *  Specifies the FXG class to use when the thumb is in the normal state
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    protected var thumbNormalClass:Class;
+
+    /**
+     *  Specifies the FXG class to use when the thumb is in the pressed state
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    protected var thumbPressedClass:Class;
+
+    /**
+     *  Specifies the DisplayObject to use when the thumb is in the normal state
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    protected var thumbSkin_normal:DisplayObject;
+
+    /**
+     *  Specifies the DisplayObject to use when the thumb is in the pressed state
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    protected var thumbSkin_pressed:DisplayObject;
+
+    /**
+     *  Specifies the current DisplayObject that should be shown
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    protected var currentThumbSkin:DisplayObject;
+
+    /**
+     *  Width of the overall thumb image
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    protected var thumbImageWidth:int;
+
+    /**
+     *  Height of the overall thumb image
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    protected var thumbImageHeight:int;
+
+    /**
+     *  Width of the chromeColor ellipse
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    protected var chromeColorEllipseWidth:int;
+
+    /**
+     *  Height of the chromeColor ellipse
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    protected var chromeColorEllipseHeight:int;
+
+
+    /**
+     *  X position of the chromeColor ellipse
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    protected var chromeColorEllipseX:int;
+
+    /**
+     *  Y position of the chromeColor ellipse
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    protected var chromeColorEllipseY:int;
+
+    /**
+     *  @private
+     *  Remember which state is currently being displayed
+     */
+    private var displayedState:String;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    override protected function commitCurrentState():void
+    {
+        if (currentState == "up" || currentState == "disabled")
+        {
+            // show the normal button
+            if (!thumbSkin_normal)
+            {
+                thumbSkin_normal = new thumbNormalClass();
+                addChild(thumbSkin_normal);
+            }
+            else
+            {
+                thumbSkin_normal.visible = true;
+            }
+            currentThumbSkin = thumbSkin_normal;
+
+            // hide the pressed button
+            if (thumbSkin_pressed)
+                thumbSkin_pressed.visible = false;
+        }
+        else if (currentState == "down")
+        {
+            // show the pressed button
+            if (!thumbSkin_pressed)
+            {
+                thumbSkin_pressed = new thumbPressedClass();
+                addChild(thumbSkin_pressed);
+            }
+            else
+            {
+                thumbSkin_pressed.visible = true;
+            }
+            currentThumbSkin = thumbSkin_pressed;
+
+            // hide the normal button
+            if (thumbSkin_normal)
+                thumbSkin_normal.visible = false;
+        }
+        else if (currentState == "disabled")
+        {
+            // TODO: (Tom) add opaque thumb in disabled state here
+        }
+
+        displayedState = currentState;
+
+        invalidateDisplayList();
+    }
+
+    /**
+     *  @private
+     */
+	override protected function measure():void
+	{
+        measuredWidth = thumbImageWidth;
+        measuredHeight = thumbImageHeight;
+	}
+
+    /**
+     *  @private
+     */
+	override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
+	{
+		resizeElement(currentThumbSkin, unscaledWidth, unscaledHeight);
+		positionElement(currentThumbSkin, 0, 0)
+
+        super.updateDisplayList(unscaledWidth, unscaledHeight);
+    }
+
+    /**
+     *  @private
+     */
+    override protected function drawChromeColor(chromeColorGraphics:Graphics, unscaledWidth:Number, unscaledHeight:Number):void
+    {
+        var chromeColor:uint = getChromeColor();
+        chromeColorGraphics.beginFill(chromeColor, 1);
+
+        chromeColorGraphics.drawEllipse(chromeColorEllipseX, chromeColorEllipseY,
+                                        chromeColorEllipseWidth, chromeColorEllipseHeight);
+        chromeColorGraphics.endFill();
+    }
+}
+}


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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/ToggleSwitchSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/ToggleSwitchSkin.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2011 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: 8031
Author:   egeorgie@adobe.com
Date:     2009-06-20T01:10:03.288554Z

Log Message:
-----------
Scrub the TODOs in the framework, convert to FIXMEs in the new convention and assigning an owner.

Doc Notes: N/A
Bugs: N/A
Reviewer: Deepa
tests: build, checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/StrokedElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ProgressBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/layouts/WheelLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateChooser.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/FadeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Spinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/Timeline.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AddAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Scale.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/Rotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/mediaClasses/VolumeBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/DropDownController.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/HSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/ModifiedCollectionView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/spark/ErrorSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Move.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/SkinnableDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/MoveInstance.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/EffectTargetFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/SkinnableComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateTransformInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/RemoveAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/utils/BitmapUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/spark/FocusSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DropDownList.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/animation/MotionPath.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/flex4/src/spark/layouts/supportClasses/LayoutElementHelper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/TextGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/PopUpAnchor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/mediaClasses/StreamingVideoSource.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/PropertyChanges.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ToggleButtonBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/RemoveActionInstance.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/flex4/src/spark/layouts/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/pathSegments/LineSegment.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/components/VideoPlayer.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/supportClasses/AnimateTransitionShaderInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/Transform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/ObjectUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AddActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Path.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Rect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/SimpleText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as
@@ -202,8 +202,7 @@
      */
     override public function get baselinePosition():Number
     {
-        // TODO
-        // The baselinePosition calculation in UIComponent
+        // FIXME (clucier): The baselinePosition calculation in UIComponent
         // works only for TextField-based components.
         return 0;
     }
@@ -940,7 +939,7 @@

                 if (!_mask.parent)
                 {
-                    // TODO!!! This needs to be a sibling because alpha
+                    // FIXME (jszeto): This needs to be a sibling because alpha
                     super.addChild(_mask);
                     var maskComp:UIComponent = _mask as UIComponent;
                     if (maskComp)
@@ -1220,7 +1219,7 @@

     [Inspectable(environment="none")]

-    // TODO (rfrishbe): only reason we need to override focusPane getter/setter
+    // FIXME (rfrishbe): only reason we need to override focusPane getter/setter
     // is because addChild/removeChild for Groups throw an RTE.
     // This is the same as UIComponent's focusPane getter/setter but it uses
     // super.add/removeChild.
@@ -1252,7 +1251,7 @@
         {
              super.removeChild(_focusPane);

-             // TODO: remove mask?  SDK-15310
+             // FIXME (jszeto): remove mask?  SDK-15310
             _focusPane = null;
         }
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 3341
Author:   rfrishbe@adobe.com
Date:     2008-09-24T23:10:20.245436Z

Log Message:
-----------
Changing the definition of some methods in SkinnableComponent.  So instead of:

protected function partAdded(partName:String, instance:*):void

We now have:

protected function partAdded(partName:String, instance:Object):void

Technically this just means we can't support the value of "undefined" anymore.  This change was made to partAdded(), partRemoved(), createPartInstance(), removePartInstance(), and getDyanamicPartAt().

As I was making these changes in all the files that override these methods, I noticed Slider should have a partRemoved() method, so I added it.

I also made a minor change in Selector where there was a bug in the dataProvider collectionChange eventHandler.  Basically we were doing remove code on replace rather than remove.

QE: Yes - This will break (as in, it won't compile) some tests in SkinnableComponent.  Joann will change them soon after I checkin.
Doc: Yes
Bugs: SDK-16640, SDK-16709
Reviewer: Hans

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/DataComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/Spinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/TextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/TrackBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/SkinnableComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/Selector.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/ItemsComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/Scroller.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/TrackBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/TrackBase.as
@@ -219,7 +219,7 @@
     /**
      *  Adds event handlers to the track and thumb for mouse events.
      */
-    override protected function partAdded(partName:String, instance:*):void
+    override protected function partAdded(partName:String, instance:Object):void
     {
         if (instance == thumb)
         {
@@ -242,7 +242,7 @@
     /**
      *  Remove event handlers from skin parts.
      */
-    override protected function partRemoved(partName:String, instance:*):void
+    override protected function partRemoved(partName:String, instance:Object):void
     {
         if (instance == thumb)
         {


Issue fix 153

Issue fix 153

--- src/flexlib/scheduling/scheduleClasses/layout/AbstractEntryLayout.as
+++ src/flexlib/scheduling/scheduleClasses/layout/AbstractEntryLayout.as
@@ -144,7 +144,7 @@
 		{
 			var rowLocatorItem : RowLocatorItem = new RowLocatorItem();
 			rowLocatorItem.row = row;
-			rowLocatorItem.rowItem = row;
+			rowLocatorItem.rowItem = rowItem;
 			setRowLocatorItem( item, rowLocatorItem );
 		}


Transferred from the Adobe Open Source Subversion Repository

Revision: 13076
Author:   aharui@adobe.com
Date:     2009-12-17T22:12:18.834205Z

Log Message:
-----------
It turns out that embedded fonts don't clip when you shrink the height of a TextField so we'll use masks in that case

QE Notes: None
Doc Notes: None
Bugs: SDK-24561
Reviewer: Corey
API Change: No
Is noteworthy for integration: No
tests: checkintests mustella/components/DataGrid

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridBase.as

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

--- frameworks/projects/mx/src/mx/controls/dataGridClasses/DataGridBase.as
+++ frameworks/projects/mx/src/mx/controls/dataGridClasses/DataGridBase.as
@@ -2255,7 +2255,7 @@
         {
             var item:DisplayObject = lastRowItems[i];
             var yOffset:Number = item.y - rowY;
-            if (item is IUITextField)
+            if (item is IUITextField && !IUITextField(item).embedFonts)
                 item.height = Math.max(rowHeight - yOffset, 0);
             else
                 item.mask = createItemMask(0, rowY + yOffset, rowWidth, Math.max(rowHeight - yOffset, 0));
@@ -2269,7 +2269,7 @@
             {
                 item = lastRowItems[i];
                 yOffset = item.y - rowY;
-                if (item is IUITextField)
+                if (item is IUITextField && !IUITextField(item).embedFonts)
                     item.height = Math.max(rowHeight - yOffset, 0);
                 else
                     item.mask = createItemMask(0, rowY + yOffset, rowWidth, Math.max(rowHeight - yOffset, 0), lockedColumnContent);
@@ -2303,7 +2303,7 @@
             for (var i:int = 0; i < numColumns; i++)
             {
                 var item:DisplayObject = lastRowItems[i];
-                if (item is IUITextField)
+                if (item is IUITextField && !IUITextField(item).embedFonts)
                 {
                     if (item.height != rowHeight - (item.y - lastRowInfo.y))
                         item.height = rowHeight - (item.y - lastRowInfo.y);


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

--- frameworks/projects/advancedgrids/src/mx/olap/aggregators/MinAggregator.as
+++ frameworks/projects/advancedgrids/src/mx/olap/aggregators/MinAggregator.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.aggregators


Transferred from the Adobe Open Source Subversion Repository

Revision: 6003
Author:   egeorgie@adobe.com
Date:     2009-04-07T22:44:37.670097Z

Log Message:
-----------
Fix bug http://bugs.adobe.com/jira/browse/SDK-19154 layoutBounds for group that has a path with a larger stroke weight is incorrect

Fix: Modify BasicLayout to use the new ILayoutElement APIs getLayoutBoundsXAtSize, getLayoutBoundsYAtSize.

QE Notes: None
Doc Notes: None
Bugs: SDK-19154
Reviewer: Ely
tests: checkintests, mustella (group, layout)

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/mxml-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/BasicLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/LayoutElementUIComponentUtils.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Path.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/flex4/src/spark/primitives/Ellipse.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Rect.as</path>

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

--- frameworks/projects/framework/src/mx/core/LayoutElementUIComponentUtils.as
+++ frameworks/projects/framework/src/mx/core/LayoutElementUIComponentUtils.as
@@ -243,7 +243,7 @@
         return width;
     }

-    public static function getMaxBoundsHeight(obj:IUIComponent,transformMatrix:Matrix):Number
+    public static function getMaxBoundsHeight(obj:IUIComponent, transformMatrix:Matrix):Number
     {
         var height:Number = getMaxUBoundsHeight(obj);
         if (transformMatrix)
@@ -252,6 +252,70 @@
         }

         return height;
+    }
+
+    /**
+     *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public static function getBoundsXAtSize(obj:IUIComponent, width:Number, height:Number, transformMatrix:Matrix):Number
+    {
+        if (!transformMatrix)
+            return obj.x;
+
+        var fitSize:Point = MatrixUtil.fitBounds(width, height, transformMatrix,
+                                                 getPreferredUBoundsWidth(obj),
+                                                 getPreferredUBoundsHeight(obj),
+                                                 getMinUBoundsWidth(obj),
+                                                 getMinUBoundsHeight(obj),
+                                                 getMaxUBoundsWidth(obj),
+                                                 getMaxUBoundsHeight(obj));
+
+        // If we couldn't fit at all, default to the minimum size
+        if (!fitSize)
+            fitSize = new Point(getMinUBoundsWidth(obj), getMinUBoundsHeight(obj));
+
+        var pos:Point = new Point();
+        MatrixUtil.transformBounds(fitSize,
+                                   transformMatrix,
+                                   pos);
+        return pos.x;
+    }
+
+    /**
+     *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public static function getBoundsYAtSize(obj:IUIComponent, width:Number, height:Number, transformMatrix:Matrix):Number
+    {
+        if (!transformMatrix)
+            return obj.y;
+
+        var fitSize:Point = MatrixUtil.fitBounds(width, height, transformMatrix,
+                                                 getPreferredUBoundsWidth(obj),
+                                                 getPreferredUBoundsHeight(obj),
+                                                 getMinUBoundsWidth(obj),
+                                                 getMinUBoundsHeight(obj),
+                                                 getMaxUBoundsWidth(obj),
+                                                 getMaxUBoundsHeight(obj));
+
+        // If we couldn't fit at all, default to the minimum size
+        if (!fitSize)
+            fitSize = new Point(getMinUBoundsWidth(obj), getMinUBoundsHeight(obj));
+
+        var pos:Point = new Point();
+        MatrixUtil.transformBounds(fitSize,
+                                   transformMatrix,
+                                   pos);
+        return pos.y;
     }

     /**
@@ -406,8 +470,8 @@
      *  @productversion Flex 3
      */
     public static function setLayoutBoundsSize(obj:IUIComponent,width:Number,
-                                  height:Number,
-                                  transformMatrix:Matrix):void
+                                               height:Number,
+                                               transformMatrix:Matrix):void
     {
         if (!transformMatrix)
         {
@@ -427,13 +491,13 @@
             return;
         }

-        var fitSize:Point = MatrixUtil.fitBounds( width, height, transformMatrix,
-                                               getPreferredUBoundsWidth(obj),
-                                               getPreferredUBoundsHeight(obj),
-                                               getMinUBoundsWidth(obj),
-                                               getMinUBoundsHeight(obj),
-                                               getMaxUBoundsWidth(obj),
-                                               getMaxUBoundsHeight(obj));
+        var fitSize:Point = MatrixUtil.fitBounds(width, height, transformMatrix,
+                                                 getPreferredUBoundsWidth(obj),
+                                                 getPreferredUBoundsHeight(obj),
+                                                 getMinUBoundsWidth(obj),
+                                                 getMinUBoundsHeight(obj),
+                                                 getMaxUBoundsWidth(obj),
+                                                 getMaxUBoundsHeight(obj));

         // If we couldn't fit at all, default to the minimum size
         if (!fitSize)


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

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


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

--- frameworks/projects/framework/src/mx/effects/effectClasses/MoveInstance.as
+++ frameworks/projects/framework/src/mx/effects/effectClasses/MoveInstance.as
@@ -0,0 +1,422 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.effects.effectClasses
+{
+
+import flash.events.Event;
+import mx.core.Container;
+import mx.core.EdgeMetrics;
+import mx.core.IUIComponent;
+import mx.core.mx_internal;
+import mx.effects.EffectManager;
+import mx.events.MoveEvent;
+import mx.styles.IStyleClient;
+
+/**
+ *  The MoveInstance class implements the instance class
+ *  for the Move effect.
+ *  Flex creates an instance of this class when it plays a Move effect;
+ *  you do not create one yourself.
+ *
+ *
Every effect class that is a subclass of the TweenEffect class
+ *  supports the following events:

+ *
+ *

+ *
tweenEnd: Dispatched when the tween effect ends.

+ *
+ *
tweenUpdate: Dispatched every time a TweenEffect
+ *      class calculates a new value.

+ *

+ *
+ *
The event object passed to the event listener for these events is of type TweenEvent.
+ *  The TweenEvent class  defines the property value, which contains
+ *  the tween value calculated by the effect.
+ *  For the Move effect,
+ *  the TweenEvent.value property contains a 2-item Array, where:

+ *

+ *
value[0]:Number  A value between the values of the Move.xFrom
+ *    and Move.xTo property.

+ *
+ *
value[1]:Number  A value between the values of the Move.yFrom
+ *    and Move.yTo property.

+ *

+ *
+ *  @see mx.effects.Move
+ *  @see mx.events.TweenEvent
+ */
+public class MoveInstance extends TweenEffectInstance
+{
+    include "../../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Constructor.
+	 *
+	 *  @param target The Object to animate with this effect.
+	 */
+	public function MoveInstance(target:Object)
+	{
+		super(target);
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Variables
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 *  Stores the left style of the target
+	 */
+	private var left:*;
+
+	/**
+	 *  @private
+	 *  Stores the right style of the target
+	 */
+	private var right:*;
+
+	/**
+	 *  @private
+	 *  Stores the top style of the target
+	 */
+	private var top:*;
+
+	/**
+	 *  @private
+	 *  Stores the bottom style of the target
+	 */
+	private var bottom:*;
+
+	/**
+	 *  @private
+	 *  Stores the horizontalCenter style of the target
+	 */
+	private var horizontalCenter:*;
+
+	/**
+	 *  @private
+	 *  Stores the verticalCenter style of the target
+	 */
+	private var verticalCenter:*;
+
+	/**
+	 *  @private
+	 */
+	private var forceClipping:Boolean = false;
+
+	/**
+	 *  @private
+	 */
+	private var checkClipping:Boolean = true;
+
+	private var oldWidth:Number;
+	private var oldHeight:Number;
+
+	//--------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------
+
+	//----------------------------------
+	//  xBy
+	//----------------------------------
+
+	/**
+	 *  Number of pixels to move the components along the x axis.
+	 *  Values can be negative.
+	 */
+	public var xBy:Number;
+
+	//----------------------------------
+	//  xFrom
+	//----------------------------------
+
+	/**
+	 *  Initial position's x coordinate.
+	 */
+	public var xFrom:Number;
+
+	//----------------------------------
+	//  xTo
+	//----------------------------------
+
+	/**
+	 *  Destination position's x coordinate.
+	 */
+	public var xTo:Number;
+
+	//----------------------------------
+	//  yBy
+	//----------------------------------
+
+	/**
+	 *  Number of pixels to move the components along the y axis.
+	 *  Values can be negative.
+	 */
+	public var yBy:Number;
+
+	//----------------------------------
+	//  yFrom
+	//----------------------------------
+
+	/**
+	 *  Initial position's y coordinate.
+	 */
+	public var yFrom:Number;
+
+	//----------------------------------
+	//  yTo
+	//----------------------------------
+
+	/**
+	 *  Destination position's y coordinate.
+	 */
+	public var yTo:Number;
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden methods
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	override public function initEffect(event:Event):void
+	{
+		super.initEffect(event);
+
+		if (event is MoveEvent && event.type == MoveEvent.MOVE)
+		{
+
+			if (isNaN(xFrom) &&
+				isNaN(xTo) &&
+				isNaN(xBy) &&
+				isNaN(yFrom) &&
+				isNaN(yTo) &&
+				isNaN(yBy))
+			{
+				xFrom = MoveEvent(event).oldX;
+				xTo = target.x;
+				yFrom = MoveEvent(event).oldY;
+				yTo = target.y;
+			}
+		}
+	}
+
+	/**
+	 *  @private
+	 */
+	override public function play():void
+	{
+		// Dispatch an effectStart event from the target.
+		super.play();
+
+		// Try to cache the target as a bitmap.
+		EffectManager.mx_internal::startBitmapEffect(IUIComponent(target));
+
+		// The user may have supplied some combination of xFrom, xTo, and xBy.
+		// If either xFrom or xTo is not explicitly defined, calculate its
+		// value based on the other two values.
+		if (isNaN(xFrom))
+			xFrom = (!isNaN(xTo) && !isNaN(xBy)) ? xTo - xBy : target.x;
+		if (isNaN(xTo))
+		{
+			if (isNaN(xBy) &&
+				propertyChanges &&
+				propertyChanges.end["x"] !== undefined)
+			{
+				xTo = propertyChanges.end["x"];
+			}
+			else
+			{
+				xTo = (!isNaN(xBy)) ? xFrom + xBy : target.x;
+			}
+		}
+
+		// Ditto for yFrom, yTo, and yBy.
+		if (isNaN(yFrom))
+			yFrom = (!isNaN(yTo) && !isNaN(yBy)) ? yTo - yBy : target.y;
+		if (isNaN(yTo))
+		{
+			if (isNaN(yBy) &&
+				propertyChanges &&
+				propertyChanges.end["y"] !== undefined)
+			{
+				yTo = propertyChanges.end["y"];
+			}
+			else
+			{
+				yTo = (!isNaN(yBy)) ? yFrom + yBy : target.y;
+			}
+		}
+
+		// Create a tween to move the object
+		tween = createTween(this, [ xFrom, yFrom ],
+										 [ xTo, yTo ], duration);
+
+		// Set back to initial position before the screen refreshes
+		var p:Container = target.parent as Container;
+
+		if (p)
+		{
+			var vm:EdgeMetrics = p.viewMetrics;
+			var l:Number = vm.left;
+			var r:Number = p.width - vm.right;
+			var t:Number = vm.top;
+			var b:Number = p.height - vm.bottom;
+
+			if (xFrom < l || xTo < l ||
+				xFrom + target.width > r || xTo + target.width > r ||
+				yFrom < t || yTo < t ||
+				yFrom + target.height > b || yTo + target.height > b)
+			{
+				forceClipping = true;
+				p.mx_internal::forceClipping = true;
+			}
+
+		}
+
+		mx_internal::applyTweenStartValues();
+
+		if (target is IStyleClient)
+		{
+			left = target.getStyle("left");
+			if (left != undefined)
+				target.setStyle("left", undefined);
+
+			right = target.getStyle("right");
+			if (right != undefined)
+				target.setStyle("right", undefined);
+
+			top = target.getStyle("top");
+			if (top != undefined)
+				target.setStyle("top", undefined);
+
+			bottom = target.getStyle("bottom");
+			if (bottom != undefined)
+				target.setStyle("bottom", undefined);
+
+			horizontalCenter = target.getStyle("horizontalCenter");
+			if (horizontalCenter != undefined)
+				target.setStyle("horizontalCenter", undefined);
+
+			verticalCenter = target.getStyle("verticalCenter");
+			if (verticalCenter != undefined)
+				target.setStyle("verticalCenter", undefined);
+
+			if (left != undefined && right != undefined)
+			{
+				var w:Number = target.width;
+				oldWidth = target.explicitWidth;
+				target.width = w;
+			}
+
+			if (top != undefined && bottom != undefined)
+			{
+				var h:Number = target.height;
+				oldHeight = target.explicitHeight;
+				target.height = h;
+			}
+		}
+	}
+
+	/**
+	 *  @private
+	 */
+	override public function onTweenUpdate(value:Object):void
+	{
+		// Tell the EffectManager not to listen to the "move" event.
+		// Otherwise, moveEffect="Move" would cause a new Move effect
+		// to be create with each onTweenUpdate.
+		EffectManager.suspendEventHandling();
+
+		if (!forceClipping && checkClipping)
+		{
+			var p:Container = target.parent as Container;
+
+			if (p)
+			{
+				var vm:EdgeMetrics = p.viewMetrics;
+				var l:Number = vm.left;
+				var r:Number = p.width - vm.right;
+				var t:Number = vm.top;
+				var b:Number = p.height - vm.bottom;
+
+				if (value[0] < l || value[0] + target.width > r ||
+					value[1] < t || value[1] + target.height > b)
+				{
+					forceClipping = true;
+					p.mx_internal::forceClipping = true;
+				}
+			}
+		}
+
+		target.move(value[0], value[1]);
+		EffectManager.resumeEventHandling();
+	}
+
+	/**
+	 *  @private
+	 */
+	override public function onTweenEnd(value:Object):void
+	{
+		EffectManager.mx_internal::endBitmapEffect(IUIComponent(target));
+
+		if (left != undefined)
+			target.setStyle("left", left);
+		if (right != undefined)
+			target.setStyle("right", right);
+		if (top != undefined)
+			target.setStyle("top", top);
+		if (bottom != undefined)
+			target.setStyle("bottom", bottom);
+		if (horizontalCenter != undefined)
+			target.setStyle("horizontalCenter", horizontalCenter);
+		if (verticalCenter != undefined)
+			target.setStyle("verticalCenter", verticalCenter);
+
+		if (left != undefined && right != undefined)
+		{
+			target.explicitWidth = oldWidth;
+		}
+
+		if (top != undefined && bottom != undefined)
+		{
+			target.explicitHeight = oldHeight;
+		}
+
+		if (forceClipping)
+		{
+			var p:Container = target.parent as Container;
+
+			if (p)
+			{
+				forceClipping = false;
+				p.mx_internal::forceClipping = false;
+			}
+		}
+
+		checkClipping = false;
+		super.onTweenEnd(value);
+	}
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 22564
Author:   tkraikit@adobe.com
Date:     2011-09-14T19:50:07.656843Z

Log Message:
-----------
Update ASDoc "@productversion Flex 4.5.2" => "@productversion Flex 4.6"

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/SpinnerListSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/LabelItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/collections/OnDemandDataProvider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DateSpinnerSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/framework/src/mx/graphics/BitmapScaleMode.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/ContentBackgroundAppearance.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/framework/src/mx/core/FlexVersion.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/ArrowDirection.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/globalization/supportClasses/FormatPattern.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultTransparentNavigationButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/supportClasses/DropDownController.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/core/ISoftKeyboardHintClient.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/CalloutArrow.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/CalloutButton.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/CalloutActionBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/calendarClasses/YearProvider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/calendarClasses/DateSelectorDisplayMode.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/ToggleSwitch.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultBeveledBackButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/SpinnerListScrollerSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/ScrollSnappingMode.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/StageTextSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultTransparentActionButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/StageTextAreaSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SpinnerListContainer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/ToggleSwitchSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/calendarClasses/DateAndTimeProvider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/CalloutViewNavigatorSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/SpinnerListContainerSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/CalloutPosition.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/preloaders/SplashScreenImageSource.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/SkinnablePopUpContainer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SplitViewNavigator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/Callout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/StageTextInputSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/collections/NumericDataProvider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableStageText.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/preloaders/SplashScreenImage.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/calendarClasses/DateSpinnerItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SpinnerList.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/DateSpinner.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/globalization/supportClasses/CalendarDate.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/CalloutSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultBeveledActionButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SpinnerListItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/globalization/supportClasses/DateTimeFormatterEx.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/CalloutButton.as
+++ frameworks/projects/mobilecomponents/src/spark/components/CalloutButton.as
@@ -50,7 +50,7 @@
  *
  *  @langversion 3.0
  *  @playerversion AIR 3
- *  @productversion Flex 4.5.2
+ *  @productversion Flex 4.6
  */
 [Event(name="close", type="spark.events.DropDownEvent")]

@@ -62,7 +62,7 @@
  *
  *  @langversion 3.0
  *  @playerversion AIR 3
- *  @productversion Flex 4.5.2
+ *  @productversion Flex 4.6
  */
 [Event(name="open", type="spark.events.DropDownEvent")]

@@ -145,7 +145,7 @@
  *
  *  @langversion 3.0
  *  @playerversion AIR 3
- *  @productversion Flex 4.5.2
+ *  @productversion Flex 4.6
  */
 public class CalloutButton extends Button
 {
@@ -186,7 +186,7 @@
      *
      *  @langversion 3.0
      *  @playerversion AIR 3
-     *  @productversion Flex 4.5.2
+     *  @productversion Flex 4.6
      */
     public function CalloutButton()
     {
@@ -213,7 +213,7 @@
      *
      *  @langversion 3.0
      *  @playerversion AIR 3
-     *  @productversion Flex 4.5.2
+     *  @productversion Flex 4.6
      */
     public var dropDown:IFactory;

@@ -263,7 +263,7 @@
      *
      *  @langversion 3.0
      *  @playerversion AIR 3
-     *  @productversion Flex 4.5.2
+     *  @productversion Flex 4.6
      */
     public function get calloutContent():Array
     {
@@ -299,7 +299,7 @@
      *
      *  @langversion 3.0
      *  @playerversion AIR 3
-     *  @productversion Flex 4.5.2
+     *  @productversion Flex 4.6
      */
     public function get calloutLayout():LayoutBase
     {
@@ -332,7 +332,7 @@
      *
      *  @langversion 3.0
      *  @playerversion AIR 3
-     *  @productversion Flex 4.5.2
+     *  @productversion Flex 4.6
      */
     public function get horizontalPosition():String
     {
@@ -368,7 +368,7 @@
      *
      *  @langversion 3.0
      *  @playerversion AIR 3
-     *  @productversion Flex 4.5.2
+     *  @productversion Flex 4.6
      */
     public function get verticalPosition():String
     {
@@ -419,7 +419,7 @@
      *
      *  @langversion 3.0
      *  @playerversion AIR 3
-     *  @productversion Flex 4.5.2
+     *  @productversion Flex 4.6
      */
     public function get callout():Callout
     {
@@ -458,7 +458,7 @@
      *
      *  @langversion 3.0
      *  @playerversion AIR 3
-     *  @productversion Flex 4.5.2
+     *  @productversion Flex 4.6
      */
     protected function get dropDownController():DropDownController
     {
@@ -494,7 +494,7 @@
      *
      *  @langversion 3.0
      *  @playerversion AIR 3
-     *  @productversion Flex 4.5.2
+     *  @productversion Flex 4.6
      */
     public function get isDropDownOpen():Boolean
     {
@@ -524,7 +524,7 @@
      *
      *  @langversion 3.0
      *  @playerversion AIR 3
-     *  @productversion Flex 4.5.2
+     *  @productversion Flex 4.6
      */
     public function get calloutDestructionPolicy():String
     {
@@ -675,7 +675,7 @@
      *
      *  @langversion 3.0
      *  @playerversion AIR 3
-     *  @productversion Flex 4.5.2
+     *  @productversion Flex 4.6
      */
     public function openDropDown():void
     {
@@ -687,7 +687,7 @@
      *
      *  @langversion 3.0
      *  @playerversion AIR 3
-     *  @productversion Flex 4.5.2
+     *  @productversion Flex 4.6
      */
     public function closeDropDown():void
     {


Transferred from the Adobe Open Source Subversion Repository

Revision: 19177
Author:   chiedozi@adobe.com
Date:     2010-12-08T22:37:17.773980Z

Log Message:
-----------
Fixed an issue where some data for deactivated navigators was not persisted to disk when used inside a TabbedViewNavigatorApplication

QE notes:
Doc notes:
Bugs:SDK-28803
Reviewer: Jason SJ
Tests run:
Is noteworthy for integration: No

Modified Paths:
--------------
/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as

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

--- frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as
+++ frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as
@@ -378,8 +378,11 @@
                 var canDestroy:Boolean = (activeView.destructionPolicy != ContainerDestructionPolicy.NEVER) &&
                                          (destructionPolicy != ContainerDestructionPolicy.NEVER);

+				// If the instance of the view is being destroyed but our navigationStack is
+				// maintained, the active view needs to serialize its data is application
+				// persistence is enabled.
                 if (canDestroy || clearNavigationStack)
-                    destroyViewInstance(navigationStack.topView);
+                    destroyViewInstance(navigationStack.topView, !clearNavigationStack);
             }
         }

@@ -1915,7 +1918,7 @@
     /**
      *  @private
      */
-    private function destroyViewInstance(viewProxy:ViewDescriptor):void
+    private function destroyViewInstance(viewProxy:ViewDescriptor, forceDataPersist:Boolean = false):void
     {
         var currentView:View = viewProxy.instance;

@@ -1932,7 +1935,7 @@
             view_propertyChangeHandler);

         // Grab the data from the old view and persist it
-        if (lastAction == ViewNavigatorAction.PUSH)
+        if (lastAction == ViewNavigatorAction.PUSH || forceDataPersist)
         {
             viewProxy.data = currentView.data;
             viewProxy.persistenceData = currentView.serializeData();


Transferred from the Adobe Open Source Subversion Repository

Revision: 17104
Author:   chiedozi@adobe.com
Date:     2010-07-28T21:42:36.912385Z

Log Message:
-----------
ViewNavigator now dispatches ElementExistenceEvents instead of ViewNavigatorEvents (PARB)

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/mobilecomponents/src/spark/components/MobileApplication.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/events/ViewNavigatorEvent.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as
+++ frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as
@@ -17,7 +17,6 @@
 import spark.effects.SlideViewTransition;
 import spark.effects.ViewTransition;
 import spark.events.IndexChangeEvent;
-import spark.events.ViewNavigatorEvent;
 import spark.layouts.supportClasses.LayoutBase;

 use namespace mx_internal;
@@ -51,32 +50,6 @@
  */
 [Event(name="valueCommit", type="mx.events.FlexEvent")]

-/**
- *  Dispatched when a new view has been added to the display
- *  list.
- *
- *  @eventType spark.events.ViewNavigatorEvent.VIEW_ADD
- *
- *  @langversion 3.0
- *  @playerversion Flash 9
- *  @playerversion AIR 1.1
- *  @productversion Flex 3
- */
-[Event(name="viewAdd", type="spark.events.ViewNavigatorEvent")]
-
-/**
- *  Dispatched when a view has been removed from the display
- *  list.
- *
- *  @eventType spark.events.ViewNavigatorEvent.VIEW_REMOVE
- *
- *  @langversion 3.0
- *  @playerversion Flash 9
- *  @playerversion AIR 1.1
- *  @productversion Flex 3
- */
-[Event(name="viewRemove", type="spark.events.ViewNavigatorEvent")]
-
 //--------------------------------------
 //  SkinStates
 //--------------------------------------
@@ -906,10 +879,6 @@
                 currentViewData.persistedData = currentView.getPersistenceData();
             }

-            // Notify listeners that the current view will be removed
-            if (hasEventListener(ViewNavigatorEvent.VIEW_REMOVE))
-                dispatchEvent(new ViewNavigatorEvent(ViewNavigatorEvent.VIEW_REMOVE, false, false, currentView));
-
             // Check if we can delete the reference for the view instance
             if (lastAction == POP_ACTION || currentView.destructionPolicy == "auto")
             {
@@ -994,13 +963,6 @@
             view.navigator = this;
             view.data = pendingViewData.data;

-            // TODO: I Needed an event that occurred before view was added to the display list
-            // so that I could change its orientation state in MobileApplication.  Otherwise, it would
-            // happen later.  Would it be a problem if this happened on viewAdded?
-            // Notify listeners that a new view has been successfully initialized but not added to stage
-            if (hasEventListener(ViewNavigatorEvent.VIEW_INITIALIZED))
-                dispatchEvent(new ViewNavigatorEvent(ViewNavigatorEvent.VIEW_INITIALIZED, false, false, view, pendingViewTransition));
-
             addElement(view);
         }

@@ -1080,10 +1042,6 @@
         if (actionBar)
             updateActionBarProperties(pendingView, true);

-        // Notify listeners that a new view has been successfully added to the stage
-        if (hasEventListener(ViewNavigatorEvent.VIEW_ADD))
-            dispatchEvent(new ViewNavigatorEvent(ViewNavigatorEvent.VIEW_ADD, false, false, pendingView, transition));
-
         // Need to validate my children now to prevent flicker when no transition,
         // or so sizes can be measured before transition
         validateNow();
@@ -1092,8 +1050,8 @@
         if (transition)
         {
             // Notify listeners that a new view has been successfully added to the stage
-            if (hasEventListener(ViewNavigatorEvent.VIEW_TRANSITION_START))
-                dispatchEvent(new ViewNavigatorEvent(ViewNavigatorEvent.VIEW_TRANSITION_START, false, false, pendingView, transition));
+            if (hasEventListener("transitionStart"))
+                dispatchEvent(new Event("transitionStart", false, false));

             transition.play();
         }
@@ -1113,8 +1071,8 @@
         ViewTransition(event.target).removeEventListener(Event.COMPLETE, transitionComplete);

         // Notify listeners that a new view has been successfully added to the stage
-        if (hasEventListener(ViewNavigatorEvent.VIEW_TRANSITION_END))
-            dispatchEvent(new ViewNavigatorEvent(ViewNavigatorEvent.VIEW_TRANSITION_END, false, false));
+        if (hasEventListener("transitionEnd"))
+            dispatchEvent(new Event("transitionEnd", false, false));

         endViewChange();
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 17392
Author:   cframpto@adobe.com
Date:     2010-08-19T20:21:06.978032Z

Log Message:
-----------
When the scroll rect is set the container background needs to be redrawn if mouseEnabledWhereTransparent and hasMouseListeners.  The hsp and vsp may have changed.  This is already done when either the width or height is changed.  Fix AsDoc in drawBackground header.

QE notes:
Doc notes:
Bugs: SDK-27444 and dup SDK-27470
Reviewer: Ryan, Corey, Hans
Tests run: checkintests, cyclone
Is noteworthy for integration: no

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

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

--- frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as
@@ -936,7 +936,7 @@
     /**
      *  @private
      *  Renders a background for the container, if necessary.  It is used to fill in
-     *  a transparent background fill as necessary to support the mouseOpaque flag.  It
+     *  a transparent background fill as necessary to support the _mouseEnabledWhereTransparent flag.  It
      *  is also used in ItemRenderers when handleBackgroundColor is set to true.
      *  We assume for now that we are the first layer to be rendered into the graphics
      *  context.


Transferred from the Adobe Open Source Subversion Repository

Revision: 8207
Author:   smgilson@adobe.com
Date:     2009-06-24T22:55:28.494485Z

Log Message:
-----------
Fix ASDoc version tags

QE Notes: None
Doc Notes: None
Bugs: -

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/spark/src/spark/primitives/RectangularDropShadow.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/TrackBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/events/DropDownEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/events/TrackBaseEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/Path.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoPlayer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/Ellipse.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/airframework/src/spark/components/windowClasses/TitleBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/VideoElement.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/TrackBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/TrackBase.as
@@ -58,9 +58,9 @@
  *  @eventType spark.events.TrackBaseEvent
  *
  *  @langversion 3.0
- *  @playerversion Flash 9
- *  @playerversion AIR 1.1
- *  @productversion Flex 3
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
  */
 [Event(name="thumbDrag", type="spark.events.TrackBaseEvent")]

@@ -71,9 +71,9 @@
  *  @eventType mx.events.SliderEvent
  *
  *  @langversion 3.0
- *  @playerversion Flash 9
- *  @playerversion AIR 1.1
- *  @productversion Flex 3
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
  */
 [Event(name="thumbPress", type="spark.events.TrackBaseEvent")]

@@ -85,9 +85,9 @@
  *  @eventType mx.events.SliderEvent
  *
  *  @langversion 3.0
- *  @playerversion Flash 9
- *  @playerversion AIR 1.1
- *  @productversion Flex 3
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
  */
 [Event(name="thumbRelease", type="spark.events.TrackBaseEvent")]

@@ -218,7 +218,7 @@
     //
     //--------------------------------------------------------------------------

-	private var mouseDownTarget:DisplayObject;
+    private var mouseDownTarget:DisplayObject;

     //--------------------------------------------------------------------------
     //
@@ -418,7 +418,7 @@
     {
         super.focusInHandler(event);

-    	addSystemHandlers(MouseEvent.MOUSE_WHEEL, system_mouseWheelHandler, stage_mouseWheelHandler);
+        addSystemHandlers(MouseEvent.MOUSE_WHEEL, system_mouseWheelHandler, stage_mouseWheelHandler);
     }

     /**
@@ -428,7 +428,7 @@
     {
         super.focusOutHandler(event);

-    	removeSystemHandlers(MouseEvent.MOUSE_WHEEL, system_mouseWheelHandler, stage_mouseWheelHandler);
+        removeSystemHandlers(MouseEvent.MOUSE_WHEEL, system_mouseWheelHandler, stage_mouseWheelHandler);
     }

     /**
@@ -507,9 +507,9 @@
      */
     protected function system_mouseWheelHandler(event:MouseEvent):void
     {
-    	var newValue:Number = nearestValidValue(value + event.delta * stepSize, stepSize);
+        var newValue:Number = nearestValidValue(value + event.delta * stepSize, stepSize);
         setValue(newValue);
-        event.preventDefault();
+        event.preventDefault();
     }

     /**
@@ -519,7 +519,7 @@
      */
     private function stage_mouseWheelHandler(event:MouseEvent):void
     {
-    	if (event.target != stage)
+        if (event.target != stage)
             return;

         system_mouseWheelHandler(event);
@@ -622,42 +622,42 @@
      *  Capture any mouse down event and listen for a mouse up event
      */
     private function mouseDownHandler(event:MouseEvent):void
-	{
-		systemManager.getSandboxRoot().addEventListener(MouseEvent.MOUSE_UP,
-														system_mouseUpSomewhereHandler);
-		systemManager.getSandboxRoot().addEventListener(SandboxMouseEvent.MOUSE_UP_SOMEWHERE,
-														system_mouseUpSomewhereHandler);
-
-		mouseDownTarget = DisplayObject(event.target);
-	}
-
-	/**
-     *  @private
-     */
-	private function system_mouseUpSomewhereHandler(event:Event):void
-	{
-		systemManager.getSandboxRoot().removeEventListener(MouseEvent.MOUSE_UP,
-														   system_mouseUpSomewhereHandler);
-		systemManager.getSandboxRoot().removeEventListener(SandboxMouseEvent.MOUSE_UP_SOMEWHERE,
-														   system_mouseUpSomewhereHandler);
-
-		// If we got a mouse down followed by a mouse up on a different target in the skin,
-		// we want to dispatch a click event.
-		if (mouseDownTarget != event.target && event is MouseEvent && contains(DisplayObject(event.target)))
-		{
-			var mEvent:MouseEvent = event as MouseEvent;
-			// Convert the mouse coordinates from the target to the TrackBase
-			var mousePoint:Point = new Point(mEvent.localX, mEvent.localY);
-			mousePoint = globalToLocal(DisplayObject(event.target).localToGlobal(mousePoint));
-
-			dispatchEvent(new MouseEvent(MouseEvent.CLICK, mEvent.bubbles, mEvent.cancelable, mousePoint.x,
-									 mousePoint.y, mEvent.relatedObject, mEvent.ctrlKey, mEvent.altKey,
-									 mEvent.shiftKey, mEvent.buttonDown, mEvent.delta));
-		}
-
-		mouseDownTarget = null;
-
-	}
+    {
+        systemManager.getSandboxRoot().addEventListener(MouseEvent.MOUSE_UP,
+                                                        system_mouseUpSomewhereHandler);
+        systemManager.getSandboxRoot().addEventListener(SandboxMouseEvent.MOUSE_UP_SOMEWHERE,
+                                                        system_mouseUpSomewhereHandler);
+
+        mouseDownTarget = DisplayObject(event.target);
+    }
+
+    /**
+     *  @private
+     */
+    private function system_mouseUpSomewhereHandler(event:Event):void
+    {
+        systemManager.getSandboxRoot().removeEventListener(MouseEvent.MOUSE_UP,
+                                                           system_mouseUpSomewhereHandler);
+        systemManager.getSandboxRoot().removeEventListener(SandboxMouseEvent.MOUSE_UP_SOMEWHERE,
+                                                           system_mouseUpSomewhereHandler);
+
+        // If we got a mouse down followed by a mouse up on a different target in the skin,
+        // we want to dispatch a click event.
+        if (mouseDownTarget != event.target && event is MouseEvent && contains(DisplayObject(event.target)))
+        {
+            var mEvent:MouseEvent = event as MouseEvent;
+            // Convert the mouse coordinates from the target to the TrackBase
+            var mousePoint:Point = new Point(mEvent.localX, mEvent.localY);
+            mousePoint = globalToLocal(DisplayObject(event.target).localToGlobal(mousePoint));
+
+            dispatchEvent(new MouseEvent(MouseEvent.CLICK, mEvent.bubbles, mEvent.cancelable, mousePoint.x,
+                                     mousePoint.y, mEvent.relatedObject, mEvent.ctrlKey, mEvent.altKey,
+                                     mEvent.shiftKey, mEvent.buttonDown, mEvent.delta));
+        }
+
+        mouseDownTarget = null;
+
+    }
 }

 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 8481
Author:   smgilson@adobe.com
Date:     2009-07-09T17:28:31.741329Z

Log Message:
-----------
First of several checkins to update the namespace in ASDoc MXML syntax descriptions for Spark components

QE Notes: None
Doc Notes: None
Bugs: -
Checkintests: passed

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/PopUpAnchor.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/DataRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Button.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/ToggleButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Spinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoPlayer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/CheckBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/TrackBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Application.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/components/VSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VScrollBar.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/spark/src/spark/components/supportClasses/ItemRenderer.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/Scroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Range.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DataGroup.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/TrackBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/TrackBase.as
@@ -149,7 +149,7 @@
  *  attributes of its superclass and adds the following tag attributes:

  *
  *

- *  <TrackBase
+ *  <s:TrackBase
  *    Styles
  *    slideDuration="300"
  *


Transferred from the Adobe Open Source Subversion Repository

Revision: 17320
Author:   tkraikit@adobe.com
Date:     2010-08-13T21:50:12.856724Z

Log Message:
-----------
Feature commit: MovieClipSWFLoader, new class to support Catalyst use case. Note that the new class is in the mx package structure and framework.swc, but is exposed in MXML via s: namespace.

QE notes: new class, will need incorporation into tests; Peter DeHaan already notified and working on this
Doc notes: n/a
Bugs: n/a
Reviewer: Corey Lucier
Tests run: checkintests, mustella
Is noteworthy for integration: yes; Catalyst is waiting on this

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/spark-manifest.xml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/controls/MovieClipSWFLoader.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/FrameworkClasses.as</path>

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

--- frameworks/projects/framework/src/FrameworkClasses.as
+++ frameworks/projects/framework/src/FrameworkClasses.as
@@ -44,6 +44,7 @@
 	import mx.containers.utilityClasses.FlexChildInfo; FlexChildInfo;
 	import mx.containers.utilityClasses.IConstraintLayout; IConstraintLayout;
 	import mx.controls.ButtonLabelPlacement; ButtonLabelPlacement;
+    import mx.controls.MovieClipSWFLoader; MovieClipSWFLoader;
 	import mx.controls.colorPickerClasses.WebSafePalette; WebSafePalette;
 	import mx.controls.listClasses.IDropInListItemRenderer; IDropInListItemRenderer;
 	import mx.controls.listClasses.IListItemRenderer; IListItemRenderer;


Transferred from the Adobe Open Source Subversion Repository

Revision: 5019
Author:   smgilson@adobe.com
Date:     2009-02-19T21:17:21.579153Z

Log Message:
-----------
ASDoc updates to indicate that some Halo containers do not work with the Spark equiv (ControlBar does not work with Spark Panel/AppControlBar does not work with Spark Application), and indicate that Canvas, Box, Tile, Panel have Spark equivs

QE Notes: None
Doc Notes: None
Bugs: -

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Box.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ApplicationControlBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Canvas.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Tile.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/VBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/HBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ViewStack.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Accordion.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/TabNavigator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ControlBar.as</path>

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

--- frameworks/projects/mx/src/mx/containers/ViewStack.as
+++ frameworks/projects/mx/src/mx/containers/ViewStack.as
@@ -105,11 +105,16 @@

 /**
  *  A ViewStack navigator container consists of a collection of child
- *  containers stacked on top of each other, where only one child
+ *  Halo containers stacked on top of each other, where only one child
  *  at a time is visible.
  *  When a different child container is selected, it seems to replace
  *  the old one because it appears in the same location.
  *  However, the old child container still exists; it is just invisible.
+ *
+ *
Note: The direct children of a Halo navigator container must be
+ *  Halo containers, either Halo layout or Halo navigator containers.
+ *  You cannot directly nest a control or a Spark container within a navigator;
+ *  they must be children of a child Halo container.

  *
  *
A ViewStack container does not provide a user interface
  *  for selecting which child container is currently visible.


Transferred from the Adobe Open Source Subversion Repository

Revision: 12966
Author:   dloverin@adobe.com
Date:     2009-12-15T18:59:54.493877Z

Log Message:
-----------
Fix sub-applications loading RSLs into the wrong application domain.

projects/framework/src/mx/controls/SWFLoader.as
Fix loading sub-applications as well. Load sub-applications into a child application domain of their parent.

projects/framework/src/mx/core/CrossDomainRSLItem.as
projects/framework/src/mx/core/FlexModuleFactory.as
projects/framework/src/mx/core/RSLItem.as
projects/framework/src/mx/managers/SystemManager.as
    Pass a module factory from SystemManager and FlexModuleFactory to CrossDomainRSLItem/RSLItem. Use the moduleFactory to find the application domain of the app/modules loading the RSLs. Use this application domain to load RSLs into.

projects/framework/src/mx/modules/ModuleLoader.as
    “currentDomain” is never null so remove null check.

projects/airframework/src/mx/managers/WindowedSystemManager.as
    Added a info().currentDomain object to WindowedSystemManager.

QE notes: None.
Doc notes: None.
Bugs: SDK-24698
Reviewer: Alex
Tests run: checkintests, MarshallPlan, Modules
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/FlexModuleFactory.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/modules/ModuleLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/RSLItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/CrossDomainRSLItem.as</path>

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

--- frameworks/projects/mx/src/mx/modules/ModuleLoader.as
+++ frameworks/projects/mx/src/mx/modules/ModuleLoader.as
@@ -389,8 +389,7 @@
             FlexVersion.compatibilityVersion >= FlexVersion.VERSION_4_0)
         {
             var currentDomain:ApplicationDomain = moduleFactory.info()["currentDomain"];
-            if (currentDomain)
-                tempApplicationDomain = new ApplicationDomain(currentDomain);
+            tempApplicationDomain = new ApplicationDomain(currentDomain);
         }

         module.load(tempApplicationDomain, null, bytes, moduleFactory);


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

--- frameworks/projects/rpc/src/mx/rpc/xml/IXMLDecoder.as
+++ frameworks/projects/rpc/src/mx/rpc/xml/IXMLDecoder.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: 3605
Author:   shodgson@adobe.com
Date:     2008-10-13T22:51:11.374492Z

Log Message:
-----------
Removed [ExcludeClass] metadata from several classes per doc request.

Bug: LCDS-386 - Remove [ExcludeClass] from several classes
QA: No
Doc: Yes
Checkintests Pass: Yes

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/ISOAPDecoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/XMLLoadEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/IXMLEncoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/ISOAPEncoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/WSDLLoadEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/IXMLDecoder.as</path>

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

--- frameworks/projects/rpc/src/mx/rpc/xml/IXMLEncoder.as
+++ frameworks/projects/rpc/src/mx/rpc/xml/IXMLEncoder.as
@@ -11,8 +11,6 @@

 package mx.rpc.xml
 {
-
-[ExcludeClass]

 /**
  * Encodes an ActionScript object graph to XML based on an XML schema.


Transferred from the Adobe Open Source Subversion Repository

Revision: 19792
Author:   clucier@adobe.com
Date:     2011-01-18T13:20:31.873835Z

Log Message:
-----------
Effectively reverting changelist 19786. Unfortunately there was logic depending on the original broken behavior.

QE notes: None
Doc notes: None
Bugs: SDK-29146
Reviewer: Jason
Tests run: Checkin
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/effects/Move3D.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/effects/Scale3D.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/effects/Rotate3D.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/effects/Move.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/effects/Scale.as</path>

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

--- frameworks/projects/spark/src/spark/effects/Move3D.as
+++ frameworks/projects/spark/src/spark/effects/Move3D.as
@@ -333,14 +333,9 @@
         var yProp:String = applyChangesPostLayout ? "postLayoutTranslationY" : "translationY";
         var zProp:String = applyChangesPostLayout ? "postLayoutTranslationZ" : "translationZ";

-        if (!(isNaN(xFrom) && isNaN(xTo) && isNaN(xBy)))
-            addMotionPath(xProp, xFrom, xTo, xBy);
-
-        if (!(isNaN(yFrom) && isNaN(yTo) && isNaN(yBy)))
-            addMotionPath(yProp, yFrom, yTo, yBy);
-
-        if (!(isNaN(zFrom) && isNaN(zTo) && isNaN(zBy)))
-            addMotionPath(zProp, zFrom, zTo, zBy);
+        addMotionPath(xProp, xFrom, xTo, xBy);
+        addMotionPath(yProp, yFrom, yTo, yBy);
+        addMotionPath(zProp, zFrom, zTo, zBy);

         super.initInstance(instance);
     }


add an optional StreamUsage argument to IndexStream.clone() and the possibility to "wait for upload" when calling IndexStream.disposeLocalData()

--- src/aerys/minko/render/geometry/stream/IndexStream.as
+++ src/aerys/minko/render/geometry/stream/IndexStream.as
@@ -10,7 +10,8 @@
 	{
 		use namespace minko_stream;

-		minko_stream var _data	: Vector.<uint>			= null;
+		minko_stream var _data			: Vector.<uint>		= null;
+		minko_stream var _localDispose	: Boolean			= false;

 		private var _usage		: uint					= 0;
 		private var _resource	: IndexBuffer3DResource	= null;
@@ -136,9 +137,9 @@
 			invalidate();
 		}

-		public function clone() : IndexStream
-		{
-			return new IndexStream(_usage, _data, length);
+		public function clone(usage : uint = 0) : IndexStream
+		{
+			return new IndexStream(usage || _usage, _data, length);
 		}

 		public function toString() : String
@@ -184,18 +185,15 @@
 			invalidate();
 		}

-		public function disposeLocalData() : void
-		{
-			if (length != resource.numIndices)
+		public function disposeLocalData(waitForUpload : Boolean = true) : void
+		{
+			if (waitForUpload && _length != resource.numIndices)
+				_localDispose = true;
+			else
 			{
-				throw new Error(
-					"Unable to dispose local data: "
-					+ "some indices have not been uploaded."
-				);
+				_data = null;
+				_usage = StreamUsage.STATIC;
 			}
-
-			_data = null;
-			_usage = StreamUsage.STATIC;
 		}

 		public function dispose() : void


DisplayUtil.transformPoint convenience function

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

--- src/as/com/threerings/flash/DisplayUtil.as
+++ src/as/com/threerings/flash/DisplayUtil.as
@@ -31,6 +31,15 @@

 public class DisplayUtil
 {
+    /**
+     * Transforms a point from one DisplayObject's coordinate space to another's.
+     */
+    public static function transformPoint (p :Point, fromDisp :DisplayObject, toDisp :DisplayObject)
+        :Point
+    {
+        return toDisp.globalToLocal(fromDisp.localToGlobal(p));
+    }
+
     /**
      * Adds newChild to container, directly below another child of the container.
      */