Transferred from the Adobe Open Source Subversion Repository

Revision: 7929
Author:   hmuller@adobe.com
Date:     2009-06-17T23:06:42.698986Z

Log Message:
-----------
Range et al PARB changes, Opus #1.   In addition to the changes listed below, updated
flex4tests, notably ScrollBarFrenzy, for the new API.   These changes will break
performance test suite (TwoThumbSlider.as).

Range
  valueInterval => snapInterval
  step() => changeValueByStep()
  remove protected nearestValidSize() method

Slider
  Add protected pendingValue property
  Remove protected pointClickToPosition() method

TrackBase
  Add two new protected methods: updateSkinDisplayList(), pointToValue()
  Remove the following protected properties: get trackSize:Number, thumbSize:Number
  Remove the following protected methods:
      clickOffset()
      positionToValue()
      valueToPosition()
      pointToPosition()
      positionThumb()
      sizeThumb()
      calculateThumbSize()
      calculateNewValue()

ScrollBar
  page() => changeValueByPage()

Spinner
  valueWrap => allowValueWrap

NumericStepper
  displayFormatFunction => valueFormatFunction
  extractValueFunction => valueParseFunction
  commitTextInput => make private

QE Notes: Most Mustella tests passed after the protected API changes but prior to the renames.
Doc Notes:
Bugs:
Reviewer: Jason, Chet

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/Range.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/TrackBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/HSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/HScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/mediaClasses/ScrubBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/VideoPlayerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/spark/VideoPlayerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/SkinTest.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/testWheel.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/TextArea.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/development/eclipse/flex/flex4test/src/ScrollbarFrenzy.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/flex4test.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/components/CircularScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/skins/CircularScrollBarSkin.mxml</path>

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

--- frameworks/projects/spark/src/spark/components/VSlider.as
+++ frameworks/projects/spark/src/spark/components/VSlider.as
@@ -17,8 +17,6 @@
 import flash.geom.Rectangle;

 import spark.components.supportClasses.Slider;
-import mx.core.UIComponent;
-import mx.core.ILayoutElement;

 //--------------------------------------
 //  Other metadata
@@ -62,114 +60,37 @@

     //--------------------------------------------------------------------------
     //
-    //  Overridden properties
-    //
-    //--------------------------------------------------------------------------
-
-    /**
-     *  The size of the track, which equals the height of the track.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-     */
-    override protected function get trackSize():Number
-    {
-        return track ? track.getLayoutBoundsHeight() : 0;
-    }
-
-    /**
-     *  The size of the thumb button, which equals the height of the thumb button.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-     */
-    override protected function calculateThumbSize():Number
-    {
-        return thumb ? thumb.getLayoutBoundsHeight() : 0;
-    }
-
-    //--------------------------------------------------------------------------
-    //
     // Methods
     //
     //--------------------------------------------------------------------------

     /**
-     *  Position the thumb button based on the specified thumb position,
-     *  relative to the current Y location of the track
-     *  in the control.
-     *
-     *  @param thumbPos A number representing the new position of
-     *  the thumb button in the control.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
+     *  @private
+     *  Note that this method is slightly different than the HSlider version because
+     *  the minimum occurs at the bottom of the VSlider, where y is largest.
      */
-    override protected function positionThumb(thumbPos:Number):void
+    override protected function pointToValue(x:Number, y:Number):Number
     {
-        if (thumb)
-        {
-            var trackPos:Number = 0;
-            var trackLen:Number = 0;
-
-            if (track)
-            {
-                trackLen = track.getLayoutBoundsHeight();
-                trackPos = track.getLayoutBoundsY();
-            }
-
-            thumb.setLayoutBoundsPosition(thumb.getLayoutBoundsX(),
-                                          Math.round(trackPos + trackLen - thumbPos
-                                          - thumb.getLayoutBoundsHeight()));
-        }
+        if (!thumb || !track)
+            return 0;
+
+        var thumbRange:Number = track.getLayoutBoundsHeight() - thumb.getLayoutBoundsHeight();
+        var range:Number = maximum - minimum;
+        return minimum + ((thumbRange != 0) ? ((thumbRange - y) / thumbRange) * range : 0);
     }

     /**
-     *  Return the position of the thumb button on a VSlider component.
-     *  This value is equal to the
-     *  track height subtracted by the Y position of the thumb button
-     *  relative to the track, and subtracted by the height of the thumb button.
-     *
-     *  @param localX The x position relative to the track.
-     *
-     *  @param localY The y position relative to the track.
-     *
-     *  @return The position of the thumb button.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
+     *  @private
      */
-    override protected function pointToPosition(localX:Number,
-                                                localY:Number):Number
+    override protected function updateSkinDisplayList():void
     {
-        var trackLen:Number = track.getLayoutBoundsHeight();
-        var thumbH:Number = thumb.getLayoutBoundsHeight();
-
-        return trackLen - localY - thumbH;
-    }
-
-    /**
-     *  @inheritDoc
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-     */
-    override protected function pointClickToPosition(localX:Number,
-                                                     localY:Number):Number
-    {
-        var thumbH:Number = thumb.getLayoutBoundsHeight();
+        if (!thumb || !track)
+            return;

-        return pointToPosition(localX, localY) + (thumbH / 2);
+        var thumbRange:Number = track.getLayoutBoundsHeight() - thumb.getLayoutBoundsHeight();
+        var range:Number = maximum - minimum;
+        var thumbPos:Number = (range > 0) ? thumbRange - (((pendingValue - minimum) / range) * thumbRange) : 0;
+        thumb.setLayoutBoundsPosition(thumb.getLayoutBoundsX(), Math.round(track.getLayoutBoundsY() + thumbPos));
     }

     /**
@@ -179,7 +100,7 @@
     {
     	var tipAsDisplayObject:DisplayObject = dataTipInstance as DisplayObject;

-    	if (tipAsDisplayObject)
+    	if (tipAsDisplayObject && thumb)
     	{
 			var relY:Number = thumb.y + (thumb.height - tipAsDisplayObject.height) / 2;
 	        var o:Point = new Point(dataTipOriginalPosition.x, relY);


Revert test code.

Revert test code.

--- Bin/Data/Scripts/NinjaSnowWar.as
+++ Bin/Data/Scripts/NinjaSnowWar.as
@@ -217,7 +217,7 @@
     sight.SetSize(height, height);
     ui.root.AddChild(sight);

-    Font@ font = cache.GetResource("Font", "Fonts/Arial.fnt");
+    Font@ font = cache.GetResource("Font", "Fonts/BlueHighway.ttf");

     scoreText = Text();
     scoreText.SetFont(font, 17);


Show profiler by default in TestSceneOld.

--- Bin/Data/Scripts/TestSceneOld.as
+++ Bin/Data/Scripts/TestSceneOld.as
@@ -283,7 +283,7 @@

     DebugHud@ hud = engine.CreateDebugHud();
     debugHud.style = uiStyle;
-    debugHud.mode = DEBUGHUD_SHOW_STATS | DEBUGHUD_SHOW_MODE;
+    debugHud.mode = DEBUGHUD_SHOW_ALL;
 }

 void InitUI()


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

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

 package mx.controls.dataGridClasses
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 12074
Author:   gruehle@adobe.com
Date:     2009-11-21T01:02:03.186839Z

Log Message:
-----------
Change baseColor to chromeColor.

QE notes: Tests need to be updated.
Doc notes: ASDoc has been updated. Other docs need updating.
Bugs: SDK-24298
Reviewer: Ely
Tests run: checkintests, qe cyclone
Is noteworthy for integration: Yes

Modified Paths:
--------------
112 paths were modified

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

--- frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as
@@ -80,7 +80,7 @@
  *  @playerversion AIR 1.5
  *  @productversion Flex 4
  */
-[Style(name="baseColor", type="uint", format="Color", inherit="yes", theme="spark")]
+[Style(name="chromeColor", type="uint", format="Color", inherit="yes", theme="spark")]

 /**
  *  The alpha of the content background for this component.


Transferred from the Adobe Open Source Subversion Repository

Revision: 8574
Author:   aharui@adobe.com
Date:     2009-07-15T05:33:44.225721Z

Log Message:
-----------
Bugs related to TLF and focus.  Also TLF Marshall Plan adjustments, and some IME fixes

QE Notes: None
Doc Notes: None
Bugs: SDK-21278, SDK-21686, SDK-21375, SDK-18516, SDK-15093, SDK-21335
Reviewer: darrell, carol
tests: checkintests mustella/gumbo mustella/components

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/FlexHTMLLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/IFocusManagerComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/HTML.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IIMESupport.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/NumericStepper.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/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SWFBridgeEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/alertClasses/AlertForm.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework_textLayout/src/mx/core/UITLFTextField.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/spark/src/spark/primitives/supportClasses/RichEditableTextContainerManager.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/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridColumn.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/FlexEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Accordion.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.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/SkinnableContainer.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/framework/src/mx/controls/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/sliderClasses/Slider.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/framework/src/mx/managers/marshalClasses/FocusManagerMarshalMixin.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as
@@ -184,7 +184,6 @@
     public function GroupBase()
     {
         super();
-        tabChildren = true;
     }

     //--------------------------------------------------------------------------


Facade bugs fixed

Facade bugs fixed

--- src/ru/whitered/mvc/Facade.as
+++ src/ru/whitered/mvc/Facade.as
@@ -56,7 +56,7 @@
 			if(!registerNotifier(mediator)) return;

 			const subscriptions:Vector.<NotificationType> = mediator.listSubscriptions();
-			const subscriptionsLength:int = subscriptionsLength;
+			const subscriptionsLength:int = subscriptions.length;

 			for (var i:int = 0; i < subscriptionsLength; i++)
 			{
@@ -100,7 +100,7 @@

 		private function subscribeMediator(mediator:Mediator, notificationType:NotificationType):void
 		{
-			mediatorsMap[notificationType] ||= new Vector.<Mediator>;
+			mediatorsMap[notificationType] ||= new Vector.<Mediator>();
 			mediatorsMap[notificationType].push(mediator);
 		}


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

--- frameworks/projects/advancedgrids/src/mx/olap/OLAPSet.as
+++ frameworks/projects/advancedgrids/src/mx/olap/OLAPSet.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
 {


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

 package mx.olap
 {


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

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

 package mx.core
 {


Transferred from the Adobe Open Source Subversion Repository

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

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

 package mx.core
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 12435
Author:   clucier@adobe.com
Date:     2009-12-03T15:26:54.202179Z

Log Message:
-----------
Followup to the recent event dispatching change.  As it turns out we do require capture phase listeners on both FlexEvent.MOVE and FlexEvent.RESIZE.  Will make the change to always dispatch these event types but if it proves too much of a performance loss (as measured by our performance suite), we will find a way to work around the need for capturing.  Currently UIComponent listens for MOVE,RESIZE that it may update the focus rectangle.  DataGrid listens for RESIZE globally to dismiss any active item renderers.

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

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

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

--- frameworks/projects/framework/src/mx/core/UIComponent.as
+++ frameworks/projects/framework/src/mx/core/UIComponent.as
@@ -223,9 +223,6 @@
  *  In all other situations, the move event is not dispatched
  *  until after the property changes.

  *
- *
This event will only be dispatched when there are one or more
- *  relevant listeners attached to the dispatching object.

- *
  *  @eventType mx.events.MoveEvent.MOVE
  *
  *  @langversion 3.0
@@ -298,9 +295,6 @@
  *
  *
The resize event is not
  *  dispatched until after the property changes.

- *
- *
This event will only be dispatched when there are one or more
- *  relevant listeners attached to the dispatching object.

  *
  *  @eventType mx.events.ResizeEvent.RESIZE
  *
@@ -9598,14 +9592,11 @@
      */
     private function dispatchMoveEvent():void
     {
-        if (hasEventListener(MoveEvent.MOVE))
-        {
-            var moveEvent:MoveEvent = new MoveEvent(MoveEvent.MOVE);
-            moveEvent.oldX = oldX;
-            moveEvent.oldY = oldY;
-            dispatchEvent(moveEvent);
-        }
-
+        var moveEvent:MoveEvent = new MoveEvent(MoveEvent.MOVE);
+        moveEvent.oldX = oldX;
+        moveEvent.oldY = oldY;
+        dispatchEvent(moveEvent);
+
         oldX = x;
         oldY = y;
     }
@@ -9615,13 +9606,10 @@
      */
     private function dispatchResizeEvent():void
     {
-        if (hasEventListener(ResizeEvent.RESIZE))
-        {
-            var resizeEvent:ResizeEvent = new ResizeEvent(ResizeEvent.RESIZE);
-            resizeEvent.oldWidth = oldWidth;
-            resizeEvent.oldHeight = oldHeight;
-            dispatchEvent(resizeEvent);
-        }
+        var resizeEvent:ResizeEvent = new ResizeEvent(ResizeEvent.RESIZE);
+        resizeEvent.oldWidth = oldWidth;
+        resizeEvent.oldHeight = oldHeight;
+        dispatchEvent(resizeEvent);

         oldWidth = width;
         oldHeight = height;


Transferred from the Adobe Open Source Subversion Repository

Revision: 17822
Author:   egeorgie@adobe.com
Date:     2010-09-23T19:10:16.481689Z

Log Message:
-----------
Fix SDK-22368 A baseline alignment should be added to HorizontalLayout

In this change:
- add new properties to HGroup, HorizontalLayout - alignmentBaseline and actualAlignmentBaseline

QE notes:  Ready for testing, names could change after PARB
Doc notes: None
Bugs: SDK-22368
Reviewer: Hans
Tests run: full 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/HGroup.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/VerticalAlign.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as</path>

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

--- frameworks/projects/spark/src/spark/components/HGroup.as
+++ frameworks/projects/spark/src/spark/components/HGroup.as
@@ -98,6 +98,78 @@
     //--------------------------------------------------------------------------

     //----------------------------------
+    //  actualBaseline
+    //----------------------------------
+
+    [Bindable("propertyChange")]
+    [Inspectable(category="General")]
+
+    /**
+     *  The computed base line, in pixels, relative to the top edge
+     *  of the group plus any paddingTop.
+     *
+     *  The base line is the virtual horizontal line to which child elements's text is aligned.
+     *
+     *  The value is computed in the group's updateDisplayList()
+     *  and is based on the alignmentBaseline property as well as the baselinePosition
+     *  and baseline properties of the group's elements.
+     *
+     *  Note that actualAlignmentBaseline is computed only when verticalAlign
+     *  is set to "baseline".
+     *
+     *  @see #baseline
+     *  @see #verticalAlign
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    public function get actualAlignmentBaseline():Number
+    {
+        return horizontalLayout.actualAlignmentBaseline;
+    }
+
+    //----------------------------------
+    //  baseline
+    //----------------------------------
+
+    [Inspectable(category="General")]
+
+    /**
+     *  The base line of the layout, in pixels.
+     *
+     *  The base line is the virtual horizontal line to which layout elements' text is aligned,
+     *  it is relative to the top edge of the group plus any paddingTop.
+     *
+     *  The base line can be specified as either an explicit number, or as a numberical offset to
+     *  the computed maximum of the childrens' text ascent by using the "maxAscent:offset" syntax.
+     *
+     *  Note that baseline has an effect only when verticalAlign
+     *  is set to "baseline".
+     *
+     *  @default "maxAscent:0"
+     *  @see #verticalAlign
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    public function get alignmentBaseline():Object
+    {
+        return horizontalLayout.alignmentBaseline;
+    }
+
+    /**
+     *  @private
+     */
+    public function set alignmentBaseline(value:Object):void
+    {
+        horizontalLayout.alignmentBaseline = value;
+    }
+
+    //----------------------------------
     //  gap
     //----------------------------------

@@ -382,7 +454,7 @@
     //  verticalAlign
     //----------------------------------

-    [Inspectable(category="General", enumeration="top,bottom,middle,justify,contentJustify", defaultValue="top")]
+    [Inspectable(category="General", enumeration="top,bottom,middle,justify,contentJustify,baseline", defaultValue="top")]

     /**
      *  @copy spark.layouts.HorizontalLayout#verticalAlign


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

--- frameworks/projects/spark/src/spark/components/HGroup.as
+++ frameworks/projects/spark/src/spark/components/HGroup.as
@@ -9,11 +9,11 @@
 //
 ////////////////////////////////////////////////////////////////////////////////

-package mx.components
+package spark.components
 {
 import flash.events.Event;
-import mx.components.Group;
-import mx.layout.HorizontalLayout;
+import spark.components.Group;
+import spark.layout.HorizontalLayout;

 [IconFile("HGroup.png")]


Transferred from the Adobe Open Source Subversion Repository

Revision: 16390
Author:   clucier@adobe.com
Date:     2010-06-02T00:31:33.544783Z

Log Message:
-----------
PARB changes and bug fixes for Image and BitmapImage.

QE notes:  None
Doc notes:  None
Bugs: SDK-26596, SDK-26594, SDK-26561, SDK-26562, SDK-26567, SDK-26568, SDK-26571, SDK-26572, SDK-26575, SDK-26583, SDK-26584
Reviewer:  Ryan
Tests run:  Checkin
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/contentLoader/LoaderInvalidationEvent.as" copyfrom-rev="16350" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/events/LoaderInvalidationEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/SparkClasses.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/spark-manifest.xml</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/contentLoader/IContentLoader.as" copyfrom-rev="16350" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/IContentLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/defaults.css</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/contentLoader/ContentCache.as" copyfrom-rev="16350" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/ContentCache.as</path>
<path kind="dir" action="D">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/contentLoader</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Image.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ImageSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/BitmapImage.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/contentLoader/ContentRequest.as" copyfrom-rev="16350" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/ContentRequest.as</path>

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

--- frameworks/projects/spark/src/spark/core/ContentCache.as
+++ frameworks/projects/spark/src/spark/core/ContentCache.as
@@ -9,12 +9,8 @@
 //
 ////////////////////////////////////////////////////////////////////////////////

-package spark.core.contentLoader
+package spark.core
 {
-
-import mx.core.mx_internal;
-import mx.utils.LinkedList;
-import mx.utils.LinkedListNode;

 import flash.display.Loader;
 import flash.display.LoaderInfo;
@@ -23,6 +19,12 @@
 import flash.net.URLRequest;
 import flash.system.LoaderContext;
 import flash.utils.Dictionary;
+
+import mx.core.mx_internal;
+import mx.utils.LinkedList;
+import mx.utils.LinkedListNode;
+
+import spark.events.LoaderInvalidationEvent;

 use namespace mx_internal;

@@ -39,14 +41,14 @@
  *  Each content request notified then attempts instead re-requests the
  *  asset.
  *
- *  @eventType spark.core.contentLoader.LoaderInvalidationEvent
+ *  @eventType spark.events.LoaderInvalidationEvent
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 2.0
  *  @productversion Flex 4.5
  */
-[Event(name="invalidateLoader", type="spark.core.contentLoader.LoaderInvalidationEvent")]
+[Event(name="invalidateLoader", type="spark.events.LoaderInvalidationEvent")]

 /**
  *  Provides a caching and queuing image content loader suitable for using
@@ -118,7 +120,7 @@
     //  Properties
     //
     //--------------------------------------------------------------------------
-
+
     //----------------------------------
     //  enableQueuing
     //----------------------------------
@@ -126,32 +128,67 @@
     /**
      *  @private
      */
-    private var _enableQueuing:Boolean;
+    private var _enableCaching:Boolean = true;
+
+    /**
+     *  Enables caching behavior and functionality.
+     *
+     *  @default true
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4.5
+     */
+    public function get enableCaching():Boolean
+    {
+        return _enableCaching;
+    }
+
+    /**
+     *  @private
+     */
+    public function set enableCaching(value:Boolean):void
+    {
+        if (value != _enableCaching)
+            _enableCaching = value;
+    }
+
+    //----------------------------------
+    //  enableQueuing
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    private var _enableQueueing:Boolean = false;

     /**
      *  Enables queuing behavior and functionality.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4.5
-     */
-    public function get enableQueuing():Boolean
-    {
-        return _enableQueuing;
-    }
-
-    /**
-     *  @private
-     */
-    public function set enableQueuing(value:Boolean):void
-    {
-        if (value != _enableQueuing)
-            _enableQueuing = value;
+     *
+     *  @default false;
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4.5
+     */
+    public function get enableQueueing():Boolean
+    {
+        return _enableQueueing;
+    }
+
+    /**
+     *  @private
+     */
+    public function set enableQueueing(value:Boolean):void
+    {
+        if (value != _enableQueueing)
+            _enableQueueing = value;
     }

     //----------------------------------
-    //  numEntries
+    //  numCacheEntries
     //----------------------------------

     /**
@@ -162,7 +199,7 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4.5
      */
-    public function get numEntries():Number
+    public function get numCacheEntries():int
     {
         return cacheEntries.length;
     }
@@ -174,7 +211,7 @@
     /**
      *  @private
      */
-    private var _maxActiveRequests:Number = 2;
+    private var _maxActiveRequests:int = 2;

     /**
      *  Maximum simultaneous active requests when queuing is
@@ -187,7 +224,7 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4.5
      */
-    public function get maxActiveRequests():Number
+    public function get maxActiveRequests():int
     {
         return _maxActiveRequests;
     }
@@ -195,24 +232,24 @@
     /**
      *  @private
      */
-    public function set maxActiveRequests(value:Number):void
+    public function set maxActiveRequests(value:int):void
     {
         if (value != _maxActiveRequests)
             _maxActiveRequests = value;
     }

     //----------------------------------
-    //  maximumEntries
-    //----------------------------------
-
-    /**
-     *  @private
-     */
-    private var _maxEntries:Number = 100;
-
-    /**
-     *  Maximum size of MRU based cache.  When numEntries exceeds
-     *  maxEntries the least recently used are pruned to fit.
+    //  maxCacheEntries
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    private var _maxCacheEntries:int = 100;
+
+    /**
+     *  Maximum size of MRU based cache.  When numCacheEntries exceeds
+     *  maxCacheEntries the least recently used are pruned to fit.
      *
      *  @default 100
      *
@@ -221,19 +258,19 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4.5
      */
-    public function get maxEntries():Number
-    {
-        return _maxEntries;
-    }
-
-    /**
-     *  @private
-     */
-    public function set maxEntries(value:Number):void
-    {
-        if (value != _maxEntries)
+    public function get maxCacheEntries():int
+    {
+        return _maxCacheEntries;
+    }
+
+    /**
+     *  @private
+     */
+    public function set maxCacheEntries(value:int):void
+    {
+        if (value != _maxCacheEntries)
         {
-            _maxEntries = value;
+            _maxCacheEntries = value;
             enforceMaximumEntries();
         }
     }
@@ -245,14 +282,15 @@
     //--------------------------------------------------------------------------

     /**
-     *  @copy spark.core.contentLoader.IContentLoader#load
-     */
-    public function load(source:Object, contentGrouping:String=null):ContentRequest
+     *  @copy spark.core.IContentLoader#load()
+     */
+    public function load(source:Object, contentLoaderGrouping:String=null):ContentRequest
     {
-        var cacheEntry:CacheEntryNode = cachedData[source];
+        var key:Object = source is URLRequest ? URLRequest(source).url : source;
+        var cacheEntry:CacheEntryNode = cachedData[key];
         var contentRequest:ContentRequest;

-        if (!cacheEntry || cacheEntry.value == UNTRUSTED)
+        if (!cacheEntry || cacheEntry.value == UNTRUSTED || !enableCaching)
         {
             // No previously cached entry or the entry is marked as
             // unshareable (untrusted).
@@ -265,12 +303,15 @@
 			loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loader_completeHandler,
 				false, 0, true);

-            loader.load(new URLRequest(source as String), loaderContext);
+            var urlRequest:URLRequest = source is URLRequest ?
+                source as URLRequest : new URLRequest(source as String);
+
+            loader.load(urlRequest, loaderContext);
             contentRequest = new ContentRequest(this, loader.contentLoaderInfo);

             // Now cache our new loader info.
-            if (!cacheEntry)
-                addEntry(source, loader.contentLoaderInfo);
+            if (!cacheEntry && enableCaching)
+                addCacheEntry(source, loader.contentLoaderInfo);
         }
         else
         {
@@ -283,34 +324,21 @@

         return contentRequest;
     }
-
-    /**
-     *  @private
-     *  Invalidation method to invalidate entire cache.
-     */
-    mx_internal function invalidateAll():void
-    {
-        removeAll();
-    }
-
-    /**
-     *  Invalidation method to invalidate single cache entry.
-     *  @private
-     */
-	mx_internal function invalidateEntry(source:Object):void
-    {
-        removeEntry(source);
-    }
-
+
     /**
      *  Obtain an entry for the given key if one exists.
      *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4.5
-     */
-    public function getEntry(source:Object):*
+     *  @param source Unique key used to represent the requested content resource.
+     *
+     *  @return A value being stored by the cache for the provided key. Returns
+     *  null if not found or in the likely case the value was stored as null.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4.5
+     */
+    public function getCacheEntry(source:Object):Object
     {
         var cacheEntry:CacheEntryNode = cachedData[source];
         return cacheEntry ? cacheEntry.value : null;
@@ -324,7 +352,7 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4.5
      */
-    public function removeAll():void
+    public function removeAllCacheEntries():void
     {
         cachedData = new Dictionary();
         cacheEntries = new LinkedList();
@@ -333,37 +361,44 @@
     /**
      *  Remove specific entry from cache.
      *
+     *  @param source Unique key for value to remove from cache.
+     *
      *  @langversion 3.0
      *  @playerversion Flash 10
      *  @playerversion AIR 1.5
      *  @productversion Flex 4.5
      */
-    public function removeEntry(source:Object):void
-    {
-        var node:CacheEntryNode = cachedData[source];
+    public function removeCacheEntry(source:Object):void
+    {
+        var key:Object = source is URLRequest ? URLRequest(source).url : source;
+        var node:CacheEntryNode = cachedData[key];
         if (node)
         {
             cacheEntries.remove(node);
-            delete cachedData[source];
+            delete cachedData[key];
         }
     }

     /**
      *  Adds new entry to cache (or replaces existing entry).
      *
+     *  @param source Unique key to associate provided value with in cache.
+     *  @param value Value to cache for given key.
+     *
      *  @langversion 3.0
      *  @playerversion Flash 10
      *  @playerversion AIR 1.5
      *  @productversion Flex 4.5
      */
-    public function addEntry(source:Object, value:*):void
-    {
-        var node:CacheEntryNode = cachedData[source];
+    public function addCacheEntry(source:Object, value:Object):void
+    {
+        var key:Object = source is URLRequest ? URLRequest(source).url : source;
+        var node:CacheEntryNode = cachedData[key];

         if (node)
             cacheEntries.remove(node);

-        node = new CacheEntryNode(source, value);
+        node = new CacheEntryNode(key, value);
         cachedData[source] = node;
         cacheEntries.unshift(node);
         enforceMaximumEntries();
@@ -372,12 +407,16 @@
     /**
      *  Promotes a content grouping to the head of the loading queue.
      *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4.5
-     */
-    public function prioritizeContentGrouping(contentGrouping:String):void
+     *  @param contentLoaderGrouping Name of content grouping to promote
+     *  in the loading queue. All queued requests with matching
+     *  contentLoaderGroup will be shifted to the head of the queue.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4.5
+     */
+    public function prioritize(contentLoaderGrouping:String):void
     {
         // TODO (crl)
     }
@@ -390,10 +429,10 @@
      */
     mx_internal function enforceMaximumEntries():void
     {
-        if (_maxEntries <= 0 || cacheEntries.length <= _maxEntries)
+        if (_maxCacheEntries <= 0 || cacheEntries.length <= _maxCacheEntries)
             return;

-        while (cacheEntries.length > _maxEntries)
+        while (cacheEntries.length > _maxCacheEntries)
         {
             var node:CacheEntryNode = cacheEntries.pop() as CacheEntryNode;
             delete cachedData[node.source];
@@ -421,7 +460,7 @@
         {
             // Detected that our loader cannot be shared or cached. Mark
             // as such and notify and possibly active content requests.
-            addEntry(loaderInfo.url, UNTRUSTED);
+            addCacheEntry(loaderInfo.url, UNTRUSTED);
             dispatchEvent(new LoaderInvalidationEvent(LoaderInvalidationEvent.INVALIDATE_LOADER, loaderInfo));
         }
         loaderInfo.removeEventListener(Event.COMPLETE, loader_completeHandler);
@@ -437,7 +476,7 @@
  */
 class CacheEntryNode extends LinkedListNode
 {
-    public function CacheEntryNode(source:Object, value:*):void
+    public function CacheEntryNode(source:Object, value:Object):void
     {
         super(value);
         this.source = source;


Transferred from the Adobe Open Source Subversion Repository

Revision: 16801
Author:   klin@adobe.com
Date:     2010-07-02T20:37:29.786242Z

Log Message:
-----------
The following changes apply to Spark DataGrid only.   Code reviews have been deferred until the implementation is closer to completion.

-Update GridDimensions to account for changes to the defaultRowHeight through setting the typical cell height. The defaultRowHeight is now calculated as the max of the typicalCellHeights. Also, added a method "clearTypicalCellWidthsAndHeights()" to allow the typical item to be reset.
-Fixed a bug in GridLayout so that it now sets explicit width columns in updateTypicalCellSizes, while returning only an array of the column indices that are natural size.
-Fixed a bug in GridLayout so it cleans up the visible items when dataProvider == null.
-Grid now clears GridDimensions whenever columns or dataProvider is set. It also clears the typical cell widths and heights when the typical item changes.

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

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

--- frameworks/projects/spark/src/spark/components/Grid.as
+++ frameworks/projects/spark/src/spark/components/Grid.as
@@ -722,6 +722,12 @@
             invalidateProperties();
             invalidateSize();
             invalidateDisplayList();
+
+            gridDimensions.clear();
+            if (_columns)
+                gridDimensions.columnCount = _columns.length;
+            if (_dataProvider) // clearing the gridDimensions resets rowCount
+                gridDimensions.rowCount = _dataProvider.length;

             dispatchChangeEvent("columnsChanged");
         }
@@ -808,6 +814,10 @@
             invalidateSize();
             invalidateDisplayList();

+            gridDimensions.clear();
+            if (_dataProvider)
+                gridDimensions.rowCount = _dataProvider.length;
+
             dispatchChangeEvent("dataProviderChanged");
         }

@@ -1437,7 +1447,8 @@
                 return;

             _typicalItem = value;
-            dispatchChangeEvent("typicalItemChanged");
+            gridDimensions.clearTypicalCellWidthsAndHeights();
+			dispatchChangeEvent("typicalItemChanged");

             invalidateSize();
             invalidateDisplayList();


Transferred from the Adobe Open Source Subversion Repository

Revision: 17611
Author:   klin@adobe.com
Date:     2010-09-08T19:01:35.509943Z

Log Message:
-----------
Fix for rotation issues with explicit width and explicit height for Catalyst. The issue is that when we try to solve width and height such that the post transform bounds satisfy the layout constraints, we only took into account the measured width/height even when there was an explicit size specified. In the case of rotation, it is possible at times to use the explicit width/height to find a fit. Thus, the fix is to try to find a solution first using the explicit size. If no solution exists, then we relax the constraint on the size and try to find other solutions.

QE notes: No
Doc notes: No
Bugs: SDK-26614
Reviewer: Evtim
Tests run: checkintests, full cyclone
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/LayoutElementUIComponentUtils.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/utils/MatrixUtil.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/primitives/Path.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/primitives/Ellipse.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/primitives/Rect.as</path>

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

--- frameworks/projects/spark/src/spark/primitives/Path.as
+++ frameworks/projects/spark/src/spark/primitives/Path.as
@@ -725,6 +725,8 @@
             var newSize:Point = MatrixUtil.fitBounds(width,
                 height,
                 m,
+                explicitWidth,
+                explicitHeight,
                 newWidth,
                 newHeight,
                 minWidth, minHeight,


Transferred from the Adobe Open Source Subversion Repository

Revision: 2672
Author:   egeorgie@adobe.com
Date:     2008-07-30T22:52:27.741630Z

Log Message:
-----------
Remove GraphicElement.bounds APIs in favor of measure

Reviewed by Glenn

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/Path.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/Ellipse.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/Graphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/Rect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/TextBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/graphics/GraphicTags_checkintests.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/IGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/TextGraphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/StrokedElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/graphicsClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/graphicsClasses/GraphicElementHostImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/Line.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/BitmapGraphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/graphicsClasses/TextGraphicElement.as</path>

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

--- frameworks/projects/spark/src/spark/primitives/Rect.as
+++ frameworks/projects/spark/src/spark/primitives/Rect.as
@@ -112,13 +112,6 @@
 	//
 	//--------------------------------------------------------------------------

-	override public function get bounds():Rectangle
-	{
-		return new Rectangle(0, 0,
-		                     isNaN(explicitWidth) ? 0 : explicitWidth,
-		                     isNaN(explicitHeight) ? 0 : explicitHeight);
-	}
-
 	/**
 	 *  @inheritDoc
 	 */


no bug: Minor ASDoc updates (p=ranielse)
* Fixed version info for LZMA

integrate CL 1092104

CL@1092586

--- core/ByteArray.as
+++ core/ByteArray.as
@@ -50,6 +50,7 @@
  * @see flash.utils.ByteArray#compress()
  * @see flash.utils.ByteArray#uncompress()
  *
+ * @playerversion Flash 10
  * @playerversion AIR 1.0
  * @langversion 3.0
  *
@@ -59,6 +60,7 @@
     /**
      * Defines the string to use for the zlib compression algorithm.
      *
+     * @playerversion Flash 10
      * @playerversion AIR 1.0
      * @langversion 3.0
      *
@@ -67,6 +69,7 @@
     /**
      * Defines the string to use for the deflate compression algorithm.
      *
+     * @playerversion Flash 10
      * @playerversion AIR 1.0
      * @langversion 3.0
      *
@@ -75,7 +78,8 @@
     /**
      * Defines the string to use for the lzma compression algorithm.
      *
-     * @playerversion AIR 3.3
+     * @playerversion Flash 11.4
+     * @playerversion AIR 3.4
      * @langversion 3.0
      *
      */
@@ -113,7 +117,7 @@
  * It also can be read and written to as an in-memory file, using
  * methods similar to those in the URLStream and Socket classes.

  *
- *
In addition, zlib compression and decompression are supported, as
+ *
In addition, zlib and lzma compression and decompression are supported, as
  * well as Action Message Format (AMF) object serialization.

  *
  *
Possible uses of the ByteArray class include the following:
@@ -737,6 +741,9 @@
      *
      *
The deflate compression algorithm is described at
      * http://www.ietf.org/rfc/rfc1951.txt.

+     *
+     *
The lzma compression algorithm is described at
+     * http://www.7-zip.org/7z.html.

      *
      *
The deflate compression algorithm is used in several compression
      * formats, such as zlib, gzip, some zip implementations, and others. When data is


Transferred from the Adobe Open Source Subversion Repository

Revision: 18871
Author:   smgilson@adobe.com
Date:     2010-11-30T20:10:44.561987Z

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

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/automation_spark/src/spark/automation/tabularData/SparkDataGridTabularData.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/skins/spark/SparkDefaultComplexItemRendererAutomationImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkScrollBarBaseAutomationImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkComboBoxAutomationImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/skins/spark/SparkDefaultItemRendererAutomationImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/skins/spark/SparkDefaultGridHeaderRendererAutomationImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SprakTextAreaAutomationImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridItemEditor.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkItemRendererAutomationImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkDataGridAutomationImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/MobileIconItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/skins/spark/SparkDefaultGridItemRendererAutomationImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableTextField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/styles/metadata/GapStyles.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkButtonBarBaseAutomationImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/components/mediaClasses/SparkVolumeBarAutomationImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkButtonBarAutomationImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SprakSkinnableTextBaseAutomationImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/preloaders/SplashScreen.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/events/ViewNavigatorEvent.as</path>

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

--- frameworks/projects/automation_spark/src/spark/automation/tabularData/SparkDataGridTabularData.as
+++ frameworks/projects/automation_spark/src/spark/automation/tabularData/SparkDataGridTabularData.as
@@ -11,200 +11,200 @@

 package spark.automation.tabularData
 {
-	import flash.display.DisplayObject;
-
-	import mx.automation.Automation;
-	import mx.automation.IAutomationObject;
-	import mx.automation.IAutomationTabularData;
-	import mx.automation.delegates.controls.DataGridAutomationImpl;
-	import mx.collections.CursorBookmark;
-	import mx.collections.errors.ItemPendingError;
-	import mx.controls.listClasses.ListBaseContentHolder;
-	import mx.core.mx_internal;
-
-	import spark.automation.delegates.components.SparkDataGridAutomationImpl;
-	import spark.components.DataGrid;
-	import spark.components.gridClasses.IGridItemRenderer;
-	import spark.components.gridClasses.GridColumn;
-
-	use namespace mx_internal;
-
-	public class SparkDataGridTabularData implements IAutomationTabularData
-	{
-		/**
-		 *  Constructor
-		 *
-		 *  @langversion 3.0
-		 *  @playerversion Flash 9
-		 *  @playerversion AIR 1.1
-		 *  @productversion Flex 4
-		 */
-		public function SparkDataGridTabularData(dg:spark.components.DataGrid)
-		{
-			super();
-			this.dg = dg;
-		}
-
-		/**
-		 *  @private
-		 */
-		private var dg:spark.components.DataGrid;
-
-		/**
-		 *  @private
-		 */
-		public function get numColumns():int
-		{
-			return dg.columns.length;
-		}
-
-		/**
-		 *  @inheritDoc
-		 *
-		 *  @langversion 3.0
-		 *  @playerversion Flash 9
-		 *  @playerversion AIR 1.1
-		 *  @productversion Flex 3
-		 */
-		public function get lastVisibleRow():int
-		{
-			/*var listItems:Array = ((dg.automationDelegate) as SparkDataGridAutomationImpl).getCompleteRenderersArray();
-
-			if (listItems && listItems.length && listItems[0].length)
-			{
-				var row:int = listItems.length - 1;
-				var col:int = listItems[0].length - 1;
-				while (!listItems[row][col] && row >= 0 && col >= 0)
-				{
-					if (col != 0)
-					{
-						col --;
-					}
-					else if (row != 0)
-					{
-						row--;
-						col = listItems[0].length - 1;
-					}
-				}
-
-				return (row >= 0 && col >= 0
-					? listItems[row][col].rowIndex
-					: numRows);
-			}
-
-			return 0;*/
-			var start:int = dg.grid.getVisibleRowIndices().length -1;
-			return dg.grid.getVisibleRowIndices().slice(start).pop();
-		}
-
-		/**
-		 *  @inheritDoc
-		 *
-		 *  @langversion 3.0
-		 *  @playerversion Flash 9
-		 *  @playerversion AIR 1.1
-		 *  @productversion Flex 3
-		 */
-		public function get numRows():int
-		{
-			return (dg.dataProvider? dg.dataProvider.length : 0);
-		}
-
-		/**
-		 *  @inheritDoc
-		 *
-		 *  @langversion 3.0
-		 *  @playerversion Flash 9
-		 *  @playerversion AIR 1.1
-		 *  @productversion Flex 3
-		 */
-		public function getValues(start:uint = 0, end:uint = 0):Array
-		{
-			//empty list of column names for list, dg overrides
-			var values:Array = [ ];
-			var renderers:Array = (dg.automationDelegate as SparkDataGridAutomationImpl).getCompleteRenderersArray();
-
-			var len:int = renderers.length;
-			var col:int = dg.columns.length;
-			for(var i:int = start ; i <= end; i++)
-			{
-				var autValue:String ="";
-				var colValues:Array = [];
-				for(var j:int = 0; j < col; j++)
-				{
-					var autObj:IAutomationObject = renderers[i+1][j] as IAutomationObject;	//i+1 in order to by pass header item
-					if(autObj)
-					{
-						colValues.push(autObj.automationValue.join(" | "));
-
-					}
-				}
-				values.push(colValues);
-			}
-
-			return values;
-		}
-		/**
-		 *  @private
-		 */
-		public function get columnNames():Array
-		{
-			//override to provide the column names
-			var result:Array = [];
-			var colCount:int = dg.columns.length;
-			var columns:Array = dg.columns.toArray();
-			for (var i:int = 0; i < colCount; ++i)
-			{
-				if (columns[i].dataField)
-					result.push(columns[i].dataField);
-				else
-					result.push(columns[i].headerText);
-				//for FileSystemDataGrid of AIR, the dataFiled is empty and the headerText
-				// is directly assigned. To get the headerHeader text in those cases the above
-				// is added.
-			}
-			return result;
-		}
-
-		/**
-		 *  @private
-		 */
-
-
-		public function get firstVisibleRow():int
-		{
-			return dg.grid.getVisibleRowIndices().slice(0,1).pop();
-		}
-
-
-		/**
-		 *  @private
-		 */
-		public function getAutomationValueForData(data:Object):Array
-		{
-			var ret:Array = [];
-			var colCount:int = dg.columns.length;
-			var rowCount:int = dg.requestedRowCount;
-			for (var colNo:int = 0; colNo < colCount; ++colNo)
-			{
-				//since visibleData data is only keyed per row
-				//and doesn't include renderers for each column
-				//we can't optimize by using it
-				//var item:IListItemRenderer = visibleData[itemToUID(data)];
-				var item:IGridItemRenderer;
-
-				var c:GridColumn = dg.columns[colNo];
-				//item = c.getMeasuringRenderer(false,data);
-				/*item = c.itemToRenderer(data);
-				if (item.owner == null)
-					(dg.grid).addChild(DisplayObject(item));
-				dg.setupRendererFromData(c, item, data);
-
-				if(item is IAutomationObject)
-					ret.push(IAutomationObject(item).automationValue.join(" | "));*/
-			}
-
-			return ret;
-		}
-	}
+    import flash.display.DisplayObject;
+
+    import mx.automation.Automation;
+    import mx.automation.IAutomationObject;
+    import mx.automation.IAutomationTabularData;
+    import mx.automation.delegates.controls.DataGridAutomationImpl;
+    import mx.collections.CursorBookmark;
+    import mx.collections.errors.ItemPendingError;
+    import mx.controls.listClasses.ListBaseContentHolder;
+    import mx.core.mx_internal;
+
+    import spark.automation.delegates.components.SparkDataGridAutomationImpl;
+    import spark.components.DataGrid;
+    import spark.components.gridClasses.IGridItemRenderer;
+    import spark.components.gridClasses.GridColumn;
+
+    use namespace mx_internal;
+
+    public class SparkDataGridTabularData implements IAutomationTabularData
+    {
+        /**
+         *  Constructor
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10
+         *  @playerversion AIR 2.5
+         *  @productversion Flex 4.5
+         */
+        public function SparkDataGridTabularData(dg:spark.components.DataGrid)
+        {
+            super();
+            this.dg = dg;
+        }
+
+        /**
+         *  @private
+         */
+        private var dg:spark.components.DataGrid;
+
+        /**
+         *  @private
+         */
+        public function get numColumns():int
+        {
+            return dg.columns.length;
+        }
+
+        /**
+         *  @inheritDoc
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10
+         *  @playerversion AIR 2.5
+         *  @productversion Flex 4.5
+         */
+        public function get lastVisibleRow():int
+        {
+            /*var listItems:Array = ((dg.automationDelegate) as SparkDataGridAutomationImpl).getCompleteRenderersArray();
+
+            if (listItems && listItems.length && listItems[0].length)
+            {
+                var row:int = listItems.length - 1;
+                var col:int = listItems[0].length - 1;
+                while (!listItems[row][col] && row >= 0 && col >= 0)
+                {
+                    if (col != 0)
+                    {
+                        col --;
+                    }
+                    else if (row != 0)
+                    {
+                        row--;
+                        col = listItems[0].length - 1;
+                    }
+                }
+
+                return (row >= 0 && col >= 0
+                    ? listItems[row][col].rowIndex
+                    : numRows);
+            }
+
+            return 0;*/
+            var start:int = dg.grid.getVisibleRowIndices().length -1;
+            return dg.grid.getVisibleRowIndices().slice(start).pop();
+        }
+
+        /**
+         *  @inheritDoc
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10
+         *  @playerversion AIR 2.5
+         *  @productversion Flex 4.5
+         */
+        public function get numRows():int
+        {
+            return (dg.dataProvider? dg.dataProvider.length : 0);
+        }
+
+        /**
+         *  @inheritDoc
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10
+         *  @playerversion AIR 2.5
+         *  @productversion Flex 4.5
+         */
+        public function getValues(start:uint = 0, end:uint = 0):Array
+        {
+            //empty list of column names for list, dg overrides
+            var values:Array = [ ];
+            var renderers:Array = (dg.automationDelegate as SparkDataGridAutomationImpl).getCompleteRenderersArray();
+
+            var len:int = renderers.length;
+            var col:int = dg.columns.length;
+            for(var i:int = start ; i <= end; i++)
+            {
+                var autValue:String ="";
+                var colValues:Array = [];
+                for(var j:int = 0; j < col; j++)
+                {
+                    var autObj:IAutomationObject = renderers[i+1][j] as IAutomationObject;  //i+1 in order to by pass header item
+                    if(autObj)
+                    {
+                        colValues.push(autObj.automationValue.join(" | "));
+
+                    }
+                }
+                values.push(colValues);
+            }
+
+            return values;
+        }
+        /**
+         *  @private
+         */
+        public function get columnNames():Array
+        {
+            //override to provide the column names
+            var result:Array = [];
+            var colCount:int = dg.columns.length;
+            var columns:Array = dg.columns.toArray();
+            for (var i:int = 0; i < colCount; ++i)
+            {
+                if (columns[i].dataField)
+                    result.push(columns[i].dataField);
+                else
+                    result.push(columns[i].headerText);
+                //for FileSystemDataGrid of AIR, the dataFiled is empty and the headerText
+                // is directly assigned. To get the headerHeader text in those cases the above
+                // is added.
+            }
+            return result;
+        }
+
+        /**
+         *  @private
+         */
+
+
+        public function get firstVisibleRow():int
+        {
+            return dg.grid.getVisibleRowIndices().slice(0,1).pop();
+        }
+
+
+        /**
+         *  @private
+         */
+        public function getAutomationValueForData(data:Object):Array
+        {
+            var ret:Array = [];
+            var colCount:int = dg.columns.length;
+            var rowCount:int = dg.requestedRowCount;
+            for (var colNo:int = 0; colNo < colCount; ++colNo)
+            {
+                //since visibleData data is only keyed per row
+                //and doesn't include renderers for each column
+                //we can't optimize by using it
+                //var item:IListItemRenderer = visibleData[itemToUID(data)];
+                var item:IGridItemRenderer;
+
+                var c:GridColumn = dg.columns[colNo];
+                //item = c.getMeasuringRenderer(false,data);
+                /*item = c.itemToRenderer(data);
+                if (item.owner == null)
+                    (dg.grid).addChild(DisplayObject(item));
+                dg.setupRendererFromData(c, item, data);
+
+                if(item is IAutomationObject)
+                    ret.push(IAutomationObject(item).automationValue.join(" | "));*/
+            }
+
+            return ret;
+        }
+    }
 }


- change: Label device font rasterizing now smoothes the resulting bitmap to allow for high quality transforms

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

--- src/reprise/controls/Label.as
+++ src/reprise/controls/Label.as
@@ -780,8 +780,8 @@
 				}
 				var bitmap : BitmapData = new BitmapData(
 					m_labelDisplay.width, m_labelDisplay.height, true, 0);
-				bitmap.draw(m_labelDisplay);
-				m_bitmapCache = new Bitmap(bitmap);
+				bitmap.draw(m_labelDisplay, null, null, null, null, true);
+				m_bitmapCache = new Bitmap(bitmap, 'auto', true);
 				m_contentDisplay.addChild(m_bitmapCache);
 				m_bitmapCache.x = -2;
 				m_bitmapCache.y = -2;


Moved SquareArrows into the proper package.

--- tests/SquareArrows/src/SquareArrows.as
+++ tests/SquareArrows/src/SquareArrows.as
@@ -1,4 +1,4 @@
-package
+package tests.SquareArrows.src
 {
 	import flash.display.Shape;
 	import flash.display.Sprite;


escape fix becuse XSS risk like

escape fix becuse XSS risk like

--- ZeroClipboard.as
+++ ZeroClipboard.as
@@ -28,7 +28,7 @@
 			// import flashvars
 			var flashvars:Object = LoaderInfo( this.root.loaderInfo ).parameters;
 			id = flashvars.id;
-
+			id = id.split("\\").join("\\\\");
 			// invisible button covers entire stage
 			button = new Sprite();
 			button.buttonMode = true;


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

 package mx.automation.delegates.core
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 2724
Author:   egeorgie@adobe.com
Date:     2008-08-04T17:33:18.787713Z

Log Message:
-----------
Add target property to ILayoutItem
Make ILayoutItemUIC work with IUIComponent
Switch Group.GetLayoutItemAt() to return ILayoutItem

Reviewed by Ryan, Gordon

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/BasicLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/LayoutItemFactory.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/LayoutItemFDO.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/graphicsClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/intf/ILayoutItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/LayoutItemHelper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/LayoutItemUIC.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutElementHelper.as
+++ frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutElementHelper.as
@@ -50,7 +50,7 @@
      */
     public static function getConstraint(item:ILayoutItem, name:String):Number
     {
-        var constraintClient:IConstraintClient = item as IConstraintClient;
+        var constraintClient:IConstraintClient = item.target as IConstraintClient;
         if (!constraintClient)
             return NaN;


ENT-253

ENT-253

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

--- src/org/jivesoftware/xiff/im/Roster.as
+++ src/org/jivesoftware/xiff/im/Roster.as
@@ -622,11 +622,12 @@
 			return _presenceMap[jid];
 		}

-		public function changePresence(show:String, status:String):void
+		public function changePresence(show:String, status:String, priority:Number):void
 		{
 			var presence:Presence = new Presence();
 			presence.type = Presence.AVAILABLE_TYPE;
 			presence.show = show;
+			presence.priority = priority;
 			presence.status = status;
 			connection.send(presence);
 			updateRosterItemPresence(me, presence);


Test getPublishedItemVoteDetails{,Result}

--- test/src/FRESteamWorksTest.as
+++ test/src/FRESteamWorksTest.as
@@ -302,9 +302,11 @@
 						log(i + ": " + userRes.publishedFileId[i]);
 					}

-					if(userRes.resultsReturned > 0)
+					if(userRes.resultsReturned > 0) {
 						file = userRes.publishedFileId[0];
-
+						apiCall = Steamworks.getPublishedItemVoteDetails(file);
+						log("getPublishedItemVoteDetails(" + file + ") == " + apiCall);
+					}
 					break;
 				case SteamConstants.RESPONSE_OnEnumeratePublishedWorkshopFiles:
 					log("RESPONSE_OnEnumeratePublishedWorkshopFiles: " + e.response);
@@ -350,6 +352,18 @@
 						}
 					}
 					break;
+				case SteamConstants.RESPONSE_OnGetPublishedItemVoteDetails:
+					log("RESPONSE_OnGetPublishedItemVoteDetails: " + e.response);
+					if(e.response != SteamResults.OK) return;
+
+					var voteDetails:ItemVoteDetailsResult = Steamworks.getPublishedItemVoteDetailsResult();
+					log("getPublishedItemVoteDetails() == " + (voteDetails ? voteDetails.result : "null"));
+					if(!voteDetails) return;
+
+					// no native JSON support for Linux ...
+					log("votes: " + voteDetails.votesFor + "//" + voteDetails.votesAgainst +
+						", score: " + voteDetails.score + ", reports: " + voteDetails.reports);
+					break;
 				default:
 					log("STEAMresponse type:"+e.req_type+" response:"+e.response);
 			}


Transferred from the Adobe Open Source Subversion Repository

Revision: 7251
Author:   aharui@adobe.com
Date:     2009-05-23T03:19:17.775369Z

Log Message:
-----------
workaround SWFObject bug that reports stage size of 0 under certain circumstances, especially page refreshes

QE Notes: None
Doc Notes: None
Bugs: SDK-21103
Reviewer: glenn
tests: checkintests

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/framework/src/mx/preloaders/SparkDownloadProgressBar.as

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

--- frameworks/projects/framework/src/mx/preloaders/SparkDownloadProgressBar.as
+++ frameworks/projects/framework/src/mx/preloaders/SparkDownloadProgressBar.as
@@ -123,6 +123,11 @@
 	/**
 	 *  @private
 	 */
+	private var _downloadComplete:Boolean = false;
+
+	/**
+	 *  @private
+	 */
 	private var _displayStartCount:uint = 0;

 	/**
@@ -594,6 +599,9 @@
 	 */
 	protected function setDownloadProgress(completed:Number, total:Number):void
 	{
+        if (!_barFrameSprite)
+            return;
+
 		const outerHighlightColors:Array = [0xFFFFFF, 0xFFFFFF];
 		const outerHighlightAlphas:Array = [0.12, 0.80];
 		const fillColors:Array = [0xA9A9A9, 0xBDBDBD];
@@ -626,6 +634,9 @@
 		g.lineTo(2, 2);
 		g.lineTo(w - 2, 2);
 		g.lineTo(w - 2, h - 1);
+
+        if (completed == total)
+            _downloadComplete = true
 	}

@@ -678,6 +689,24 @@
 	 */
 	private function show():void
 	{
+        // swfobject reports 0 sometimes at startup
+        // if we get zero, wait and try on next attempt
+        if (stageWidth == 0 && stageHeight == 0)
+        {
+            try
+            {
+                stageWidth = stage.stageWidth;
+                stageHeight = stage.stageHeight
+            }
+            catch (e:Error)
+            {
+                stageWidth = loaderInfo.width;
+                stageHeight = loaderInfo.height;
+            }
+            if (stageWidth == 0 && stageHeight == 0)
+                return;
+        }
+
 		_showingDisplay = true;
 		createChildren();
 	}
@@ -1003,6 +1032,11 @@

 		if (_showingDisplay)
 		{
+            // if show() did not actually show because of SWFObject bug
+            // then we may need to draw the download bar background here
+            if (!_downloadComplete)
+    			setDownloadProgress(100, 100);
+
 			setInitProgress(_initProgressCount, initProgressTotal);
 		}
 	}


Transferred from the Adobe Open Source Subversion Repository

Revision: 17169
Author:   chiedozi@adobe.com
Date:     2010-08-03T19:06:37.348954Z

Log Message:
-----------
Added the ability to show and hide the action bar and tab bar in ViewNavigator and View
Added the ability for a navigator to swtich between overlay modes
Added tabBar and overlay support to SlideViewTransition
Added overlay support to default ViewNavigatorSkin

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/effects/IViewTransition.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/View.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/effects/FlipViewTransition.as</path>
<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/effects/SlideViewTransition.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewNavigatorSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewNavigatorSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewNavigatorSkin.as
@@ -1,107 +1,164 @@
 package spark.skins.mobile
 {
-    import spark.components.ActionBar;
-    import spark.components.ButtonBar;
-    import spark.components.Group;
-    import spark.components.ViewNavigator;
-    import spark.effects.IViewTransition;
-    import spark.effects.SlideViewTransition;
+import mx.effects.IEffect;
+import mx.states.State;
+import mx.states.Transition;
+
+import spark.components.ActionBar;
+import spark.components.ButtonBar;
+import spark.components.Group;
+import spark.components.ViewNavigator;
+import spark.effects.IViewTransition;
+import spark.effects.Move;
+import spark.effects.SlideViewTransition;
+
+public class ViewNavigatorSkin extends SliderSkin
+{
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+    public function ViewNavigatorSkin()
+    {
+        super();
+
+        states = [
+            new State({name:"portrait"}),
+            new State({name:"portraitAndOverlay"}),
+            new State({name:"landscape"}),
+            new State({name:"landscapeAndOverlay"})
+            ];
+    }

-    public class ViewNavigatorSkin extends SliderSkin
+    //--------------------------------------------------------------------------
+    //
+    //  Variables
+    //
+    //--------------------------------------------------------------------------
+    public var hostComponent:ViewNavigator;
+
+    // Groups and UI Controls
+    public var contentGroup:Group;
+    public var actionBar:ActionBar;
+    public var tabBar:ButtonBar;
+
+    // Transitions
+    public var defaultPushTransition:IViewTransition;
+    public var defaultPopTransition:IViewTransition;
+
+    //--------------------------------------------------------------------------
+    //
+    // Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.1
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    override protected function createChildren():void
     {
-        //--------------------------------------------------------------------------
-        //
-        //  Constructor
-        //
-        //--------------------------------------------------------------------------
-        public function ViewNavigatorSkin()
+        contentGroup = new Group();
+        contentGroup.minHeight = 0;
+
+        tabBar = new ButtonBar();
+        tabBar.requireSelection = true;
+        tabBar.height = 40;
+
+        actionBar = new ActionBar();
+
+        addChild(contentGroup);
+        addChild(actionBar);
+        addChild(tabBar);
+
+        defaultPushTransition = new SlideViewTransition(300, SlideViewTransition.SLIDE_LEFT);
+        defaultPopTransition = new SlideViewTransition(300, SlideViewTransition.SLIDE_RIGHT);
+    }
+
+    /**
+     *
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.1
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    override public function set currentState(value:String):void
+    {
+        if (super.currentState != value)
         {
-            super();
+            super.currentState = value;
+
+            // Force a layout pass on the components
+            invalidateDisplayList();
+        }
+    }
+
+    /**
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.1
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
+    {
+        var top:Number = 0;
+        var bottom:Number = unscaledHeight;
+        var componentHeight:Number;
+
+        if (tabBar.includeInLayout)
+        {
+            tabBar.alpha = .5;
+            componentHeight = tabBar.getExplicitOrMeasuredHeight();
+            tabBar.setLayoutBoundsSize(unscaledWidth, componentHeight);
+            tabBar.setLayoutBoundsPosition(0, top);
+
+            top += componentHeight;
         }

-        //--------------------------------------------------------------------------
-        //
-        //  Variables
-        //
-        //--------------------------------------------------------------------------
-        public var hostComponent:ViewNavigator;
-
-        // Groups and UIControls
-        public var contentGroup:Group;
-        public var actionBar:ActionBar;
-        public var tabBar:ButtonBar;
-
-        // Transitions
-        public var defaultPushTransition:IViewTransition;
-        public var defaultPopTransition:IViewTransition;
-
-        //--------------------------------------------------------------------------
-        //
-        // Methods
-        //
-        //--------------------------------------------------------------------------
-
-        /**
-         *
-         */
-        override protected function createChildren():void
+        if (actionBar.includeInLayout)
         {
-            contentGroup = new Group();
-            contentGroup.minHeight = 0;
-
-            tabBar = new ButtonBar();
-            tabBar.requireSelection = true;
-            tabBar.height = 40;
+            actionBar.alpha = .5;
+            componentHeight = actionBar.getExplicitOrMeasuredHeight();

-            actionBar = new ActionBar();
+            actionBar.setLayoutBoundsSize(unscaledWidth, componentHeight);
+            actionBar.setLayoutBoundsPosition(0, top);

-            addChild(contentGroup);
-            addChild(actionBar);
-            addChild(tabBar);
-
-            tabBar.dataProvider = hostComponent;
-
-            defaultPushTransition = new SlideViewTransition(300, SlideViewTransition.SLIDE_LEFT);
-            defaultPopTransition = new SlideViewTransition(300, SlideViewTransition.SLIDE_RIGHT);
+            top += componentHeight;
         }

-        /**
-         *
-         */
-        override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
+        if (hostComponent.overlayControls)
         {
-            var top:Number = 0;
-            var bottom:Number = unscaledHeight;
+            tabBar.alpha = .5;
+            actionBar.alpha = .5;

-            if (tabBar.includeInLayout)
+            if (contentGroup.includeInLayout)
             {
-                var tabBarHeight:Number = tabBar.getExplicitOrMeasuredHeight();
-                tabBar.setLayoutBoundsSize(unscaledWidth, tabBarHeight);
-                tabBar.setLayoutBoundsPosition(0, top);
-
-                top += tabBarHeight;
+                contentGroup.setLayoutBoundsPosition(0, 0);
+                contentGroup.setLayoutBoundsSize(unscaledWidth, unscaledHeight);
             }
+        }
+        else
+        {
+            tabBar.alpha = 1.0;
+            actionBar.alpha = 1.0;

-            if (actionBar.includeInLayout)
-            {
-                var actionBarHeight:Number = actionBar.getExplicitOrMeasuredHeight();
-
-                actionBar.setLayoutBoundsSize(unscaledWidth, actionBarHeight);
-                actionBar.setLayoutBoundsPosition(0, top);
-
-                top += actionBarHeight;
-            }
-
-			if (contentGroup.includeInLayout)
-			{
-				var contentGroupHeight:Number = bottom - top;
-
-				if (contentGroupHeight < contentGroup.minHeight)
-					contentGroupHeight = contentGroup.minHeight;
-
-	            contentGroup.setLayoutBoundsPosition(0, top);
-	            contentGroup.setLayoutBoundsSize(unscaledWidth, contentGroupHeight);
-			}
+    		if (contentGroup.includeInLayout)
+    		{
+    			var contentGroupHeight:Number = bottom - top;
+
+    			if (contentGroupHeight < contentGroup.minHeight)
+    				contentGroupHeight = contentGroup.minHeight;
+
+                contentGroup.setLayoutBoundsPosition(0, top);
+                contentGroup.setLayoutBoundsSize(unscaledWidth, contentGroupHeight);
+    		}
         }
     }
+}
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 16236
Author:   jszeto@adobe.com
Date:     2010-05-20T00:54:54.963159Z

Log Message:
-----------
Form Feature Work

Merging in Form classes from the private sandbox. All spec'ed functionality has been implemented.

QE notes: none
Doc notes: Needs ASDoc comments
Bugs: none
Reviewer: Hans, Kevin
Tests run: checkintests
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/SparkClasses.as</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/layouts/FormItemLayout.as" copyfrom-rev="15875" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/FormItemLayout.as</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/skins/spark/assets/ErrorIndicator.png" copyfrom-rev="16235" action="R">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/assets/ErrorIndicator.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutElementHelper.as</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/layouts/ConstraintLayout.as" copyfrom-rev="15875" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/ConstraintLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/defaults.css</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/supportClasses/SkinnableTextBase.as</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/skins/spark/StackedFormItemSkin.mxml" copyfrom-rev="15875" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/StackedFormItemSkin.mxml</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/components/Form.as" copyfrom-rev="15875" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Form.as</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/skins/spark/FormItemSkin.mxml" copyfrom-rev="15875" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/FormItemSkin.mxml</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/skins/spark/StackedFormHeadingSkin.mxml" copyfrom-rev="16047" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/StackedFormHeadingSkin.mxml</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/skins/spark/FormHeadingSkin.mxml" copyfrom-rev="15875" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/FormHeadingSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/layouts/FormLayout.as" copyfrom-rev="15875" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/FormLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/spark-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/bundles/en_US/layout.properties</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/skins/spark/assets/RequiredIndicator.png" copyfrom-rev="16235" action="R">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/assets/RequiredIndicator.png</path>
<path kind="dir" copyfrom-path="/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/skins/spark/assets" copyfrom-rev="16235" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/assets</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/components/FormItem.as" copyfrom-rev="15875" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/FormItem.as</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/components/FormHeading.as" copyfrom-rev="15875" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/FormHeading.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/skins/spark/FormSkin.mxml" copyfrom-rev="15875" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/FormSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/FocusSkin.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.as
@@ -349,7 +349,7 @@
     //----------------------------------
     //  baselinePosition
     //----------------------------------
-
+
     /**
      *  @private
      */


Transferred from the Adobe Open Source Subversion Repository

Revision: 8654
Author:   jszeto@adobe.com
Date:     2009-07-17T00:20:24.630989Z

Log Message:
-----------
TrackBase mouse handling

http://bugs.adobe.com/jira/browse/SDK-22044 - SkinnableComponent mouse handling needs to be MarshallPlan compliant

I have updated the track based components mouse handlers to be Marshall Plan compliant. The previous code was using the SkinnableComponent.addSystemHandlers which listen for the event on both the systemManager and the stage. I removed addSystemHandler/removeSystemHandler and added the listeners to the sandbox. I also added listeners for the SandboxMouseEvents for MOUSE_UP_SOMEWHERE.

QE notes: Need marshall plan tests for Slider and ScrollBar
Doc notes: None
Bugs: SDK-22044
Reviewer: Glenn, Alex
Tests run: ScrollBar, Scroller, Slider
Is noteworthy for integration: No

Modified Paths:
--------------
<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/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/supportClasses/SkinnableComponent.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/SliderBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/SliderBase.as
@@ -517,7 +517,7 @@
     /**
      *  @private
      */
-    override protected function system_mouseUpHandler(event:MouseEvent):void
+    override protected function system_mouseUpHandler(event:Event):void
     {
         if ((getStyle("liveDragging") === false) && (value != pendingValue))
         {


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

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

 package mx.events
 {