Transferred from the Adobe Open Source Subversion Repository

Revision: 22555
Author:   tkraikit@adobe.com
Date:     2011-09-14T18:20:24.548658Z

Log Message:
-----------
moving DateSelectorDisplayMode.as to spark project (make available for DateChooser) - part 1

QE notes: none
Doc notes: none
Bugs: n/a
Reviewer: jasonsj
Tests run: checkintests
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="dir" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/calendarClasses</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/SparkClasses.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/calendarClasses/DateSelectorDisplayMode.as</path>

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

--- frameworks/projects/spark/src/SparkClasses.as
+++ frameworks/projects/spark/src/SparkClasses.as
@@ -32,6 +32,7 @@
 import spark.core.SpriteVisualElement; SpriteVisualElement;
 import spark.collections.OnDemandDataProvider; OnDemandDataProvider;
 import spark.components.IconPlacement; IconPlacement;
+import spark.components.calendarClasses.DateSelectorDisplayMode; DateSelectorDisplayMode;
 import spark.components.gridClasses.CellPosition; CellPosition;
 import spark.components.gridClasses.CellRegion; CellRegion;
 import spark.components.supportClasses.ListItemDragProxy; ListItemDragProxy;


Transferred from the Adobe Open Source Subversion Repository

Revision: 4460
Author:   gosmith@adobe.com
Date:     2009-01-09T01:53:33.590972Z

Log Message:
-----------
Renamed UIComponentAccImpl to UIComponentAccProps because it extends AccessibilityProperties, not AccessibilityImplementation.

Added comments with the identifier for each magic role constant, so that it is easier to understand what roles our components are using.

Moved two static methods from UIComponentAccProperties to AccImpl because they make more sense there.

QE Notes: None
Doc Notes: None
Bugs: None
Reviewer: None (no functional changes)

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ColorPickerAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/DataGridAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/DateFieldAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/SliderAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/CheckBoxAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/LinkButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/MenuBarAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ComboBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/RadioButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TabBarAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TreeAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/PanelAccImpl.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/UIComponentAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/DateChooserAccImpl.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/UIComponentAccImpl.as" copyfrom-rev="4437" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/UIComponentAccProps.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/MenuAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ListBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AlertAccImpl.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/accessibility/AccordionHeaderAccImpl.as</path>

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

--- frameworks/projects/mx/src/mx/accessibility/ButtonAccImpl.as
+++ frameworks/projects/mx/src/mx/accessibility/ButtonAccImpl.as
@@ -128,7 +128,7 @@
 	{
 		super(master);

-		role = 0x2B;
+		role = 0x2B; // ROLE_SYSTEM_PUSHBUTTON
 	}

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 9894
Author:   egreenfi@adobe.com
Date:     2009-09-02T00:35:45.048694Z

Log Message:
-----------
Removed the special case code from FocusSkin for RadioButton and Checkbox skins.
Added a focusSkinExclusions property to Skin to allow components to specify which parts are excluded from the focus ring.

Reviewed by Glenn
QA:  none.
DOC: none.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/CheckBoxSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/RadioButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Skin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/FocusSkin.as</path>

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

--- frameworks/projects/spark/src/spark/skins/spark/FocusSkin.as
+++ frameworks/projects/spark/src/spark/skins/spark/FocusSkin.as
@@ -14,6 +14,7 @@

 import flash.display.Bitmap;
 import flash.display.BitmapData;
+import flash.display.DisplayObject;
 import flash.display.IBitmapDrawable;
 import flash.events.Event;
 import flash.filters.GlowFilter;
@@ -27,7 +28,10 @@
 import mx.core.mx_internal;
 import mx.events.FlexEvent;

+import spark.components.supportClasses.Skin;
 import spark.components.supportClasses.SkinnableComponent;
+import spark.core.DisplayObjectSharingMode;
+import spark.core.IGraphicElement;

 use namespace mx_internal;

@@ -159,18 +163,58 @@
             focusObject.$transform.matrix3D = null;
         }

-        // Temporary solution for focus drawing on CheckBox and RadioButton components.
-        // Hide the label before drawing the focus.
-        // FIXME (gruehle): Figure out a better solution.
-        var hidLabelElement:Boolean = false;
-        if ((weakIsCheck(focusObject, "spark.components::CheckBox") ||
-             weakIsCheck(focusObject, "spark.components::RadioButton"))
-             && Object(focusObject).labelDisplay)
-        {
-            Object(focusObject).labelDisplay.displayObject.visible = false;
-            hidLabelElement = true;
-        }
-
+		/* Some skins may have elements inside of them that they don't
+		want considered for the focus skins.  if they list any sub elements
+		using the focusSkinExclusions property, we need to first set them to
+		invisible before we render our bitmap
+		*/
+		var skin:Skin = focusObject.skin;
+		var exclusions:Array = skin.focusSkinExclusions;
+		var exclusionCount:Number = (exclusions == null)? 0:exclusions.length;
+		/* we'll store off the previous visibility of the exclusions so we
+		can restore them when we're done
+		*/
+		var exclusionVisibilityValues:Array = [];
+		var needRedraw:Boolean = false;
+		for(var i:int = 0;i<exclusionCount;i++)
+		{
+			var ex:Object = exclusions[i];
+			/* we're going to go under the covers here to try and modify visibility with the least
+			amount of disruption to the component.  For UIComponents, we go to Sprite's visibile property;
+			*/
+			if(ex is UIComponent)
+			{
+				exclusionVisibilityValues[i] = (ex as UIComponent).$visible;
+				(ex as UIComponent).$visible = false;
+			}
+			else if (ex is DisplayObject)
+			{
+				exclusionVisibilityValues[i] = (ex as UIComponent).visible;
+				(ex as UIComponent).visible = false;
+			}
+			else if (ex is IGraphicElement)
+			{
+				/* if we're lucky, the IGE has its own DisplayObject, and we can just trip its visibility.
+				If not, we're going to have to set it to invisible, and force a redraw of the whole component */
+				var ge:IGraphicElement = ex as IGraphicElement;
+				if(ge.displayObjectSharingMode == DisplayObjectSharingMode.OWNS_UNSHARED_OBJECT)
+				{
+					exclusionVisibilityValues[i] = ge.displayObject.visible;
+					ge.displayObject.visible = false;
+				}
+				else
+				{
+					exclusionVisibilityValues[i] = ge.visible;
+					ge.visible = false;
+					needRedraw = true;
+				}
+			}
+
+		}
+		/* if we excluded an IGE without its own DO, we need to update the component before grabbing the bitmap */
+		if(needRedraw)
+			skin.validateNow();
+
         m.tx = FOCUS_THICKNESS;
         m.ty = FOCUS_THICKNESS;
         bitmapData.draw(focusObject as IBitmapDrawable, m);
@@ -179,10 +223,39 @@
         if (focusObject.focusObj)
             focusObject.focusObj.visible = true;

-        // Show the label, if needed.
-        if (hidLabelElement)
-            Object(focusObject).labelDisplay.displayObject.visible = true;
-
+		/* now go through and reverse our visibility modifications.  For any excluded component
+		that we made invisible, set it back to its previous value
+		*/
+		needRedraw = false;
+		for(i=0;i<exclusionCount;i++)
+		{
+			ex = exclusions[i];
+			if(ex is UIComponent)
+			{
+				(ex as UIComponent).$visible = exclusionVisibilityValues[i];
+			}
+			else if (ex is DisplayObject)
+			{
+				(ex as UIComponent).visible = exclusionVisibilityValues[i];
+			}
+			else if (ex is IGraphicElement)
+			{
+				ge  = ex as IGraphicElement;
+				if(ge.displayObjectSharingMode == DisplayObjectSharingMode.OWNS_UNSHARED_OBJECT)
+				{
+					ge.displayObject.visible = exclusionVisibilityValues[i];
+				}
+				else
+				{
+					/* note that this is using a public API of GraphicElements that will, in fact,
+					trigger another update pass on the graphic element
+					*/
+					ge.visible = exclusionVisibilityValues[i];
+				}
+			}
+
+		}
+
         // Special case for Scroller - fill the entire rect.
         // FIXME (gruehle): Figure out a better solution.
         if (weakIsCheck(focusObject, "spark.components::Scroller"))


parse off units and do conversions

parse off units and do conversions

--- frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/SimpleCSSValuesImpl.as
+++ frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/SimpleCSSValuesImpl.as
@@ -504,7 +504,22 @@
                 {
                     var n:Number = Number(value);
                     if (isNaN(n))
-                        obj[pieces[0]] = value;
+                    {
+                        if (value.charAt(0) == "#")
+                        {
+                            value = value.replace("#", "0x");
+                            n = parseInt(value);
+                            obj[pieces[0]] = n;
+                        }
+                        else
+                        {
+                            if (value.charAt(0) == "'")
+                                value = value.substr(1, value.length - 2);
+                            else if (value.charAt(0) == '"')
+                                value = value.substr(1, value.length - 2);
+                            obj[pieces[0]] = value;
+                        }
+                    }
                     else
                         obj[pieces[0]] = n;
                 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 21974
Author:   jszeto@adobe.com
Date:     2011-08-13T04:39:10.916633Z

Log Message:
-----------
SpinnerList Bug Fixes

SDK-31149 - SpinnerListSkin should split updateDisplayList into layoutContents and drawBackground

SDK-31148 - SpinnerListContainer layout should have verticalAlign="center" by default

SDK-31075 - Date spinner in DATE_TIME mode is sluggish

Optimize VerticalSpinnerLayout to move the scrollRect and only update when a new item is needed

SDK-31053 - SpinnerList does not dispatch change event when user taps on item to have it snap into selection

Added dispatchChangeEvent parameter to animateToSelectedIndex and set it to true on item click

SDK-31001 - NumericDataProvider only supports sequences of increasing values

StepSize now supports negative values. If stepSize is negative, then the maximum is the first value

SDK-30892 - SpinnerListContainer doesn't respect the backgroundColor/backgroundAlpha styles

Exclude these two styles

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/SpinnerListSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/SpinnerListContainerSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SpinnerList.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SpinnerListContainer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/framework/bundles/en_US/collections.properties</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/layouts/VerticalSpinnerLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/collections/NumericDataProvider.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/layouts/VerticalSpinnerLayout.as
+++ frameworks/projects/mobilecomponents/src/spark/layouts/VerticalSpinnerLayout.as
@@ -164,44 +164,33 @@
         if (forceNoWrapElements != oldForceNoWrapElements)
             dispatchEvent(new Event(FORCE_NO_WRAP_ELEMENTS_CHANGE));

-        var scrollPosition:Number = wrapElements ?
-            normalizeScrollPosition(verticalScrollPosition) :
-            verticalScrollPosition;
+        var scrollPosition:Number = verticalScrollPosition;

         var itemIndex:int = Math.floor(scrollPosition / rowHeight);
         var yPos:Number = 0;
+        var yPosMax:Number;

         var foundLastVisibleElement:Boolean = false;
         var numVisibleElements:int = 0;
         var numVisitedElements:int = 0;

         // Translate the vsp to the item index
-        if (wrapElements)
-        {
-            // The top item might only be partially visible.
-            yPos = -(scrollPosition % rowHeight);
-        }
-        else
+        if (!wrapElements)
         {
             if (!useVirtualLayout)
                 itemIndex = 0;
-
-            // If itemIndex is either the first or last element
-            // then position using -scrollPosition
-            if (itemIndex >= numElements)
-            {
-                itemIndex = numElements - 1;
-                yPos = -scrollPosition;
-            }
-            else if (itemIndex > 0)
-            {
-                yPos = -(scrollPosition % rowHeight);
-            }
-            else // itemIndex == 0
-            {
-                yPos = -scrollPosition;
-            }
-        }
+            else
+                itemIndex = Math.max(Math.min(itemIndex, numElements - 1), 0);
+        }
+
+        yPos = itemIndex * rowHeight;
+
+        // Calculate the y position of the bottom of the viewable area
+        yPosMax = yPos + height;
+
+        // Normalize the itemIndex
+        if (wrapElements)
+            itemIndex = normalizeItemIndex(itemIndex);

         // Start at the top index
         var iter:LayoutIterator = new LayoutIterator(target, itemIndex);
@@ -220,7 +209,7 @@

                 // If we are using virtual layout, only size and position
                 // the visible elements
-                if (yPos > height && !foundLastVisibleElement)
+                if (yPos > yPosMax && !foundLastVisibleElement)
                 {
                     foundLastVisibleElement = true;
                     // Keep track of the number of elements visible in the viewing area
@@ -255,26 +244,73 @@
 	//
 	//--------------------------------------------------------------------------

-	override public function updateScrollRect(w:Number, h:Number):void
-	{
-		var g:GroupBase = target;
-		if (!g)
-			return;
-
-		// Instead of moving the scrollRect position, we reposition the elements
-		if (clipAndEnableScrolling)
-			g.scrollRect = new Rectangle(0, 0, w, h);
-		else
-			g.scrollRect = null;
-	}
-
 	override protected function scrollPositionChanged():void
-	{
-		if (target)
-		{
-			target.invalidateDisplayList();
-			setIndexInView(0, target.numElements - 1);
-		}
+	{
+        var g:GroupBase = target;
+        if (!g)
+            return;
+
+        updateScrollRect(g.width, g.height);
+
+        var n:int = g.numElements - 1;
+        if (n < 0)
+        {
+            setIndexInView(-1, -1);
+            return;
+        }
+
+        var scrollR:Rectangle = getScrollRect();
+        if (!scrollR)
+        {
+            setIndexInView(0, n);
+            return;
+        }
+
+        var y0:Number = scrollR.top;
+        var y1:Number = scrollR.bottom - .0001;
+        if (y1 <= y0)
+        {
+            setIndexInView(-1, -1);
+            return;
+        }
+
+        var i0:int;
+        var i1:int;
+
+        if (wrapElements)
+        {
+            i0 = normalizeItemIndex(Math.floor(y0 / rowHeight));
+            i1 = normalizeItemIndex(Math.floor(y1 / rowHeight));
+        }
+        else
+        {
+            i0 = Math.min(Math.max(Math.floor(y0 / rowHeight), 0),n);
+            i1 = Math.min(Math.max(Math.floor(y1 / rowHeight), 0),n);
+        }
+
+        setIndexInView(i0, i1);
+
+        var firstElement:ILayoutElement = g.getElementAt(firstIndexInView);
+        var lastElement:ILayoutElement = g.getElementAt(lastIndexInView);
+
+        if (wrapElements)
+        {
+            if (!firstElement || !lastElement ||
+                scrollR.top < firstElement.getLayoutBoundsY() ||
+                scrollR.bottom >= (lastElement.getLayoutBoundsY() + lastElement.getLayoutBoundsHeight()))
+            {
+                g.invalidateDisplayList();
+            }
+        }
+        else
+        {
+            if (!firstElement || !lastElement ||
+                (scrollR.top < firstElement.getLayoutBoundsY() && firstIndexInView != 0) ||
+                (scrollR.bottom >= (lastElement.getLayoutBoundsY() + lastElement.getLayoutBoundsHeight()) && lastIndexInView != n))
+            {
+                g.invalidateDisplayList();
+            }
+        }
 	}

 	override public function getHorizontalScrollPositionDelta(navigationUnit:uint):Number
@@ -290,7 +326,6 @@
 	override mx_internal function getElementNearestScrollPosition(
 		position:Point,elementComparePoint:String = "center"):int
 	{
-
 		var index:int = Math.floor(position.y / rowHeight); // may be larger than numElements to indicate wrapping

 		var element:ILayoutElement;
@@ -389,6 +424,20 @@
 		return vsp;
 	}

+    // Helper function to normalize the item index
+    private function normalizeItemIndex(index:int):int
+    {
+        if (target)
+        {
+            index %= target.numElements;
+
+            if (index < 0)
+                index += target.numElements;
+        }
+
+        return index;
+    }
+
     // Helper function to return whether an element is enabled or not
     private function isElementEnabled(element:Object):Boolean
     {


Transferred from the Adobe Open Source Subversion Repository

Revision: 3634
Author:   mhorn@adobe.com
Date:     2008-10-14T20:28:10.010975Z

Log Message:
-----------
asdoc updates

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/FilledElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/Graphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/IGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/QuadraticBezierSegment.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/StrokedElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.as</path>

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

--- frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
+++ frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
@@ -51,6 +51,21 @@

 use namespace mx_internal;

+/**
+ *  A base class for defining individual graphic elements. Types of graphic elements include:
+ *

+ *
Shapes

+ *
Text

+ *
Raster images

+ *

+ *
+ *
When defining a graphic element, you specify an explicit size for the element;
+ *  that is, you cannot use percentage sizing as you can when specifying the size of a control.

+ *
+ *
The TBounds are the boundaries of an
+ *  object in the object's parent coordinate space. The UBounds are the boundaries
+ *  of an object in its own coordinate space.

+ */
 public class GraphicElement extends EventDispatcher
     implements IGraphicElement, ILayoutItem, IConstraintClient,
     IInvalidating, IVisualItem
@@ -130,7 +145,7 @@
     /**
      *  @private
      */
-	private var _layer:Number = 0;
+    private var _layer:Number = 0;

     /**
      *  @private
@@ -157,56 +172,59 @@
     /**
      *  Documentation is not currently available.
      */
-	protected var layoutFeatures:AdvancedLayoutFeatures;
+    protected var layoutFeatures:AdvancedLayoutFeatures;
     //--------------------------------------------------------------------------
     //
     //  Properties: IGraphicElement
     //
     //--------------------------------------------------------------------------
-
-    [Bindable("propertyChange")]
-	/**
-	 * Documentation is not currently available
-	 */
- 	public function set offsets(value:CompoundTransform):void
-	{
-		var oldValue:CompoundTransform = layoutFeatures.offsets;
-
-		if(layoutFeatures.offsets != null)
-			layoutFeatures.offsets.removeEventListener(Event.CHANGE,transformOffsetsChangedHandler);
-		layoutFeatures.offsets = value;
-		if(layoutFeatures.offsets != null)
-			layoutFeatures.offsets.addEventListener(Event.CHANGE,transformOffsetsChangedHandler);
+
+    [Bindable("propertyChange")]
+    /**
+     * Documentation is not currently available
+     */
+    public function set offsets(value:CompoundTransform):void
+    {
+        var oldValue:CompoundTransform = layoutFeatures.offsets;
+
+        if(layoutFeatures.offsets != null)
+            layoutFeatures.offsets.removeEventListener(Event.CHANGE,transformOffsetsChangedHandler);
+        layoutFeatures.offsets = value;
+        if(layoutFeatures.offsets != null)
+            layoutFeatures.offsets.addEventListener(Event.CHANGE,transformOffsetsChangedHandler);
         dispatchPropertyChangeEvent("offsets", oldValue, value);
-	}
-
-	/**
-	 * @private
-	 */
-	public function get offsets():CompoundTransform
-	{
-		return layoutFeatures.offsets;
-	}
-
-
-
-	protected function invalidateTransform(changeInvalidatesLayering:Boolean = true,triggerLayout:Boolean = true):void
-	{
+    }
+
+    /**
+     * @private
+     */
+    public function get offsets():CompoundTransform
+    {
+        return layoutFeatures.offsets;
+    }
+
+
+
+    protected function invalidateTransform(changeInvalidatesLayering:Boolean = true,triggerLayout:Boolean = true):void
+    {
         if(changeInvalidatesLayering)
-        	notifyElementLayerChanged();
+            notifyElementLayerChanged();
         if(triggerLayout)
         {
-    	    invalidateParentSizeAndDisplayList();
-	       	invalidateProperties();
+            invalidateParentSizeAndDisplayList();
+            invalidateProperties();
         }
         layoutFeatures.updatePending = true;
-	}
-
+    }
+
+    /**
+     * @private
+     */
     private function transformOffsetsChangedHandler(e:Event):void
-	{
-		invalidateTransform();
-	}
-
+    {
+        invalidateTransform();
+    }
+
     //----------------------------------
     //  alpha
     //----------------------------------
@@ -226,7 +244,7 @@
     [Inspectable(category="General")]

     /**
-     *  Documentation is not currently available.
+     *  @inheritDoc
      */
     public function get alpha():Number
     {
@@ -306,12 +324,12 @@
     [Inspectable(category="General", enumeration="add,alpha,darken,difference,erase,hardlight,invert,layer,lighten,multiply,normal,subtract,screen,overlay", defaultValue="normal")]

     /**
-     *  Documentation is not currently available.
+     *  @inheritDoc
      */
     public function get blendMode():String
     {
-    	if (blendModeExplicitlySet)
-        	return _blendMode;
+        if (blendModeExplicitlySet)
+            return _blendMode;
         else return BlendMode.LAYER;
     }

@@ -327,7 +345,7 @@
         _blendMode = value;
         dispatchPropertyChangeEvent("blendMode", oldValue, value);

-		blendModeExplicitlySet = true;
+        blendModeExplicitlySet = true;

         blendModeChanged = true;
         notifyElementLayerChanged();
@@ -381,8 +399,7 @@
     protected var _host:IGraphicElementHost;

     /**
-     *  The host of this element.
-     *  This is the Group or Graphic tag that contains this element.
+     *  The Group or Graphic tag that contains this element.
      */
     public function get elementHost():IGraphicElementHost
     {
@@ -422,7 +439,7 @@
     [Inspectable(category="General")]

     /**
-     *  Documentation is not currently available.
+     *  @copy mx.core.UIComponent#explicitHeight
      */
     public function get explicitHeight():Number
     {
@@ -463,7 +480,7 @@
     [Inspectable(category="General")]

     /**
-     *  Documentation is not currently available.
+     *  @copy mx.core.UIComponent#explicitHeight
      */
     public function get explicitWidth():Number
     {
@@ -514,7 +531,8 @@
     [Inspectable(category="General")]

     /**
-     *  Documentation is not currently available.
+     *  An indexed array that contains each filter object currently associated with the graphic element.
+     *  The mx.filters.* package contains several classes that define specific filters you can use.
      */
     public function get filters():Array
     {
@@ -706,7 +724,7 @@
     [Inspectable(category="General")]

     /**
-     *  Documentation is not currently available.
+     *  @inheritDoc
      */
     public function get mask():DisplayObject
     {
@@ -751,7 +769,7 @@
     [Inspectable(category="General", enumeration="clip,alpha", defaultValue="clip")]

     /**
-     *  Documentation is not currently available.
+     *  @inheritDoc
      */
     public function get maskType():String
     {
@@ -788,7 +806,7 @@
     [Inspectable(category="General")]

     /**
-     *  Documentation is not currently available.
+     *  @copy mx.core.UIComponent#maxHeight
      */
     public function get maxHeight():Number
     {
@@ -826,7 +844,7 @@
     [Inspectable(category="General")]

     /**
-     *  Documentation is not currently available.
+     *  @copy mx.core.UIComponent#maxWidth
      */
     public function get maxWidth():Number
     {
@@ -861,7 +879,7 @@
     private var _measuredHeight:Number = 0;

     /**
-     *  Documentation is not currently available.
+     *  @copy mx.core.UIComponent#measuredHeight
      */
     public function get measuredHeight():Number
     {
@@ -887,7 +905,7 @@
     private var _measuredWidth:Number = 0;

     /**
-     *  Documentation is not currently available.
+     *  @copy mx.core.UIComponent#measuredWidth
      */
     public function get measuredWidth():Number
     {
@@ -913,7 +931,7 @@
     private var _measuredX:Number = 0;

     /**
-     *  Documentation is not currently available.
+     *  The default measured bounds top-left corner relative to the origin of the element.
      */
     public function get measuredX():Number
     {
@@ -939,7 +957,7 @@
     private var _measuredY:Number = 0;

     /**
-     *  Documentation is not currently available.
+     *  The default measured bounds top-left corner relative to the origin of the element.
      */
     public function get measuredY():Number
     {
@@ -968,7 +986,7 @@
     [Inspectable(category="General")]

     /**
-     *  Documentation is not currently available.
+     *  @copy mx.core.UIComponent#minHeight
      */
     public function get minHeight():Number
     {
@@ -1006,7 +1024,7 @@
     [Inspectable(category="General")]

     /**
-     *  Documentation is not currently available.
+     *  @copy mx.core.UIComponent#minWidth
      */
     public function get minWidth():Number
     {
@@ -1044,7 +1062,7 @@
     [Inspectable(category="General")]

     /**
-     *  Documentation is not currently available.
+     *  @copy mx.core.UIComponent#percentHeight
      */
     public function get percentHeight():Number
     {
@@ -1083,7 +1101,7 @@
     [Inspectable(category="General")]

     /**
-     *  Documentation is not currently available.
+     *  @copy mx.core.UIComponent#percentWidth
      */
     public function get percentWidth():Number
     {
@@ -1172,7 +1190,7 @@

         layoutFeatures.layoutRotationX = value;
         dispatchPropertyChangeEvent("rotationX", oldValue, value);
-		invalidateTransform();
+        invalidateTransform();
     }

     [Bindable("propertyChange")]
@@ -1198,7 +1216,7 @@

         layoutFeatures.layoutRotationY = value;
         dispatchPropertyChangeEvent("rotationY", oldValue, value);
-		invalidateTransform();
+        invalidateTransform();
     }

     [Bindable("propertyChange")]
@@ -1225,7 +1243,7 @@
         layoutFeatures.layoutRotationZ = value;
         dispatchPropertyChangeEvent("rotationZ", oldValue, value);
         dispatchPropertyChangeEvent("rotation", oldValue, value);
-		invalidateTransform();
+        invalidateTransform();
     }

     [Bindable("propertyChange")]
@@ -1239,9 +1257,13 @@
     {
         return layoutFeatures.layoutRotationZ;
     }
+
+    /**
+     *  @private
+     */
     public function set rotation(value:Number):void
     {
-    	rotationZ = value;
+        rotationZ = value;
     }

     //----------------------------------
@@ -1271,7 +1293,7 @@

         layoutFeatures.layoutScaleX = value;
         dispatchPropertyChangeEvent("scaleX", oldValue, value);
-		invalidateTransform();
+        invalidateTransform();
     }

     //----------------------------------
@@ -1282,7 +1304,7 @@
     [Inspectable(category="General")]

     /**
-     *  Indicates the vertical scale (percentage) of the element
+     *  The vertical scale (percentage) of the element
      *  as applied from the transform point.
      */
     public function get scaleY():Number
@@ -1301,7 +1323,7 @@

         layoutFeatures.layoutScaleY = value;
         dispatchPropertyChangeEvent("scaleY", oldValue, value);
-		invalidateTransform();
+        invalidateTransform();
     }

     //----------------------------------
@@ -1331,7 +1353,7 @@

         layoutFeatures.layoutScaleZ = value;
         dispatchPropertyChangeEvent("scaleZ", oldValue, value);
-		invalidateTransform();
+        invalidateTransform();
     }

     //----------------------------------
@@ -1381,7 +1403,7 @@
     private var _transform:flash.geom.Transform;

     /**
-     *  Documentation is not currently available.
+     *  @copy mx.core.UIComponent#transform
      */
     public function get transform():flash.geom.Transform
     {
@@ -1437,47 +1459,50 @@
         _transform = value;
     }

-	/**
-	 * Documentation is not currently available.  the matrix of a component is the transform matrix used to calculate its layout
-	 * relative to its siblings. This matrix is modified by the values of the offset property to determine its final, computed matrix.
-	 */
-	public function get matrix():Matrix
-	{
-		return layoutFeatures.layoutMatrix;
-	}
-
-	/**
-	 * @private
-	 */
-	public function set matrix(value:Matrix):void
-	{
-		layoutFeatures.layoutMatrix = value;
-		invalidateTransform();
-	}
-
-	/**
-	 * Documentation is not currently available.  the matrix of a component is the transform matrix used to calculate its layout
-	 * relative to its siblings. This matrix is modified by the values of the offset property to determine its final, computed matrix.
-	 */
-	public function set matrix3D(value:Matrix3D):void
-	{
-		layoutFeatures.layoutMatrix3D = value;
-		invalidateTransform();
-	}
-
-	/**
-	 * @private
-	 */
-	public function get matrix3D():Matrix3D
-	{
-		return layoutFeatures.layoutMatrix3D;
-	}
-
-	public function transformAround(rx:Number,ry:Number,rz:Number,sx:Number,sy:Number,sz:Number,tx:Number,ty:Number,tz:Number):void
-	{
-		layoutFeatures.transformAround(rx,ry,rz,sx,sy,sz,tx,ty,tz,true);
-		invalidateTransform();
-	}
+    /**
+     *  The transform matrix that is used to calculate the component's layout relative to its siblings.
+     *  This matrix is modified by the values of the offset property to determine its final, computed matrix.
+     */
+    public function get matrix():Matrix
+    {
+        return layoutFeatures.layoutMatrix;
+    }
+
+    /**
+     * @private
+     */
+    public function set matrix(value:Matrix):void
+    {
+        layoutFeatures.layoutMatrix = value;
+        invalidateTransform();
+    }
+
+    /**
+     *  The transform matrix that is used to calculate a component's layout relative to its siblings.
+     *  This matrix is modified by the values of the offset property to determine its final, computed matrix.
+     */
+    public function set matrix3D(value:Matrix3D):void
+    {
+        layoutFeatures.layoutMatrix3D = value;
+        invalidateTransform();
+    }
+
+    /**
+     * @private
+     */
+    public function get matrix3D():Matrix3D
+    {
+        return layoutFeatures.layoutMatrix3D;
+    }
+
+    /**
+     *
+     */
+    public function transformAround(rx:Number,ry:Number,rz:Number,sx:Number,sy:Number,sz:Number,tx:Number,ty:Number,tz:Number):void
+    {
+        layoutFeatures.transformAround(rx,ry,rz,sx,sy,sz,tx,ty,tz,true);
+        invalidateTransform();
+    }

     //----------------------------------
     //  transformX
@@ -1505,7 +1530,7 @@

         layoutFeatures.transformX = value;
         dispatchPropertyChangeEvent("transformX", oldValue, value);
-		invalidateTransform(false);
+        invalidateTransform(false);
     }

     //----------------------------------
@@ -1534,7 +1559,7 @@
             return;
         layoutFeatures.transformY = value;
         dispatchPropertyChangeEvent("transformY", oldValue, value);
-		invalidateTransform(false);
+        invalidateTransform(false);
     }

     //----------------------------------
@@ -1563,7 +1588,7 @@
             return;
         layoutFeatures.transformZ = value;
         dispatchPropertyChangeEvent("transformZ", oldValue, value);
-		invalidateTransform();
+        invalidateTransform();
     }

     //----------------------------------
@@ -1650,19 +1675,25 @@
     //----------------------------------
     //  layer
     //----------------------------------
-	public function get layer():Number
-	{
-		return layoutFeatures.layer;
-	}
-
-	public function set layer(value:Number):void
-	{
-		if(value == layer)
-			return;
-		 layoutFeatures.layer = value;
-		if(_host != null && _host is UIComponent)
-			(_host as UIComponent).invalidateLayering();
-	}
+    /**
+     *  @inheritDoc
+     */
+    public function get layer():Number
+    {
+        return layoutFeatures.layer;
+    }
+
+    /**
+     *  @private
+     */
+    public function set layer(value:Number):void
+    {
+        if(value == layer)
+            return;
+         layoutFeatures.layer = value;
+        if(_host != null && _host is UIComponent)
+            (_host as UIComponent).invalidateLayering();
+    }

     //----------------------------------
     //  x
@@ -1718,7 +1749,7 @@

         layoutFeatures.layoutY = value;
         dispatchPropertyChangeEvent("y", oldValue, value);
-		invalidateTransform(false);
+        invalidateTransform(false);
     }

     //----------------------------------
@@ -1744,10 +1775,10 @@
         var oldValue:Number = layoutFeatures.layoutZ;
         if (oldValue == value)
             return;
-
+
         layoutFeatures.layoutZ = value;
         dispatchPropertyChangeEvent("z", oldValue, value);
-		invalidateTransform();
+        invalidateTransform();
     }

     //----------------------------------
@@ -1769,7 +1800,7 @@
     [Inspectable(category="General")]

     /**
-     *  The visible flag for this element.
+     *  @inheritDoc
      */
     public function get visible():Boolean
     {
@@ -1834,11 +1865,11 @@

         var oldValue:DisplayObject = _displayObject;

-		//esg: matrix3D's are owned by a DO, so we need to reclaim any
-		// matrix3D we might have assigned.
-		if(oldValue != null)
-			oldValue.transform.matrix3D = null;
-
+        //esg: matrix3D's are owned by a DO, so we need to reclaim any
+        // matrix3D we might have assigned.
+        if(oldValue != null)
+            oldValue.transform.matrix3D = null;
+
         _displayObject = value;
         dispatchPropertyChangeEvent("displayObject", oldValue, value);

@@ -1861,7 +1892,7 @@
     //----------------------------------

     /**
-     *  The item TBounds top left corner coordinates.
+     *  The item TBounds top left corner coordinates.
      */
     public function get actualPosition():Point
     {
@@ -1877,8 +1908,8 @@
         }
         else
         {
-        	topLeft.x += layoutFeatures.layoutX;
-        	topLeft.y += layoutFeatures.layoutY;
+            topLeft.x += layoutFeatures.layoutX;
+            topLeft.y += layoutFeatures.layoutY;
         }

         // Take stroke into account:
@@ -1896,7 +1927,7 @@
     //----------------------------------

     /**
-     *  The item TBounds size.
+     *  The item TBounds size.
      */
     public function get actualSize():Point
     {
@@ -1908,17 +1939,17 @@
     //----------------------------------

     /**
-     *  The x-position where the element should be drawn
+     *  The x position where the element should be drawn.
      */
     protected function get drawX():Number
     {
         // Draw position depends upon which coordinate space we are located in.
         // TODO!!! We need to apply all of the transforms of our ancestors
-    	if(displayObject != null)
-    		return 0;
-    	var result:Number = layoutFeatures.layoutX;
-    	if(layoutFeatures.offsets != null)
-    		result +=  layoutFeatures.offsets.x;
+        if(displayObject != null)
+            return 0;
+        var result:Number = layoutFeatures.layoutX;
+        if(layoutFeatures.offsets != null)
+            result +=  layoutFeatures.offsets.x;
         return sharedDisplayObject && sharedDisplayObject != elementHost ? result - sharedDisplayObject.x : result;
     }

@@ -1927,17 +1958,17 @@
     //----------------------------------

     /**
-     *  The y-position where the element should be drawn
+     *  The y position where the element should be drawn.
      */
     protected function get drawY():Number
     {
         // Draw position depends upon which coordinate space we are located in.
         // TODO!!! We need to apply all of the transforms of our ancestors
-    	if(displayObject != null)
-    		return 0;
-    	var result:Number = layoutFeatures.layoutY;
-    	if(layoutFeatures.offsets != null)
-    		result +=  layoutFeatures.offsets.y;
+        if(displayObject != null)
+            return 0;
+        var result:Number = layoutFeatures.layoutY;
+        if(layoutFeatures.offsets != null)
+            result +=  layoutFeatures.offsets.y;
         return sharedDisplayObject && sharedDisplayObject != elementHost ? result - sharedDisplayObject.y : result;
     }

@@ -2069,24 +2100,24 @@
      */
     public function get needsDisplayObject():Boolean
     {
-    	var result:Boolean;
-    	result = ((_filters && _filters.length > 0) ||
-    		_blendMode != BlendMode.NORMAL || _mask ||
-    		layoutFeatures.layoutScaleX != 1 || layoutFeatures.layoutScaleY != 1 || layoutFeatures.layoutScaleZ != 1 ||
-    		layoutFeatures.layoutRotationX != 0 || layoutFeatures.layoutRotationY != 0 || layoutFeatures.layoutRotationZ != 0 ||
-    		layoutFeatures.layoutZ  != 0 ||
-    		_colorTransform != null ||
-    		_alpha != 1 ||
-    		_layer != 0);
-
-		if(layoutFeatures.offsets != null)
-		{
-			var o:CompoundTransform = layoutFeatures.offsets;
-    		result = result || (o.scaleX != 1 || o.scaleY != 1 || o.scaleZ != 1 ||
-    		o.rotationX != 0 || o.rotationY != 0 || o.rotationZ != 0 || o.z  != 0);
-
-		}
-		return result;
+        var result:Boolean;
+        result = ((_filters && _filters.length > 0) ||
+            _blendMode != BlendMode.NORMAL || _mask ||
+            layoutFeatures.layoutScaleX != 1 || layoutFeatures.layoutScaleY != 1 || layoutFeatures.layoutScaleZ != 1 ||
+            layoutFeatures.layoutRotationX != 0 || layoutFeatures.layoutRotationY != 0 || layoutFeatures.layoutRotationZ != 0 ||
+            layoutFeatures.layoutZ  != 0 ||
+            _colorTransform != null ||
+            _alpha != 1 ||
+            _layer != 0);
+
+        if(layoutFeatures.offsets != null)
+        {
+            var o:CompoundTransform = layoutFeatures.offsets;
+            result = result || (o.scaleX != 1 || o.scaleY != 1 || o.scaleZ != 1 ||
+            o.rotationX != 0 || o.rotationY != 0 || o.rotationZ != 0 || o.z  != 0);
+
+        }
+        return result;
     }

     public function get nextSiblingNeedsDisplayObject():Boolean
@@ -2350,7 +2381,7 @@
     protected function commitProperties():void
     {
         //trace("GraphicElement.commitProperties displayObject",displayObject,"this",this);
-    	var updateTransform:Boolean = false;
+        var updateTransform:Boolean = false;
         if (displayObject)
         {
             if (alphaChanged)
@@ -2399,7 +2430,7 @@
                 displayObject.visible = _visible;
             }

-			updateTransform = true;
+            updateTransform = true;
             displayObjectChanged = false;
         }
         else
@@ -2497,7 +2528,7 @@
      *
In your override of this method, you must set the
      *  measuredWidth and measuredHeight properties
      *  to define the default size.
-     *  You may optionally set the measuredX and
+     *  You can optionally set the measuredX and
      *  measuredY properties to define the default measured bounds
      *  top-left corner relative to the origin of the element.

      *
@@ -2519,8 +2550,8 @@
      *  might be too time-consuming to be worthwhile.

      *
      *
The default implementation of measure()
-     *  sets measuredWidth, measuredHeight,
-     *  measuredX, measuredY
+     *  sets the values of the measuredWidth, measuredHeight,
+     *  measuredX, and measuredY properties
      *  to 0.

      */
     protected function measure():void
@@ -2543,16 +2574,16 @@
             return; */
         invalidateDisplayListFlag = false;

-		// we commit our transform in two places. First, during commit properties, because our size depends on it,
-		// and our parent will most likely take it into account during layout. Secondly, here, because our parent will likely
-		// change our xform as a result of layout, and we need to commit it before we end up on screen.
+        // we commit our transform in two places. First, during commit properties, because our size depends on it,
+        // and our parent will most likely take it into account during layout. Secondly, here, because our parent will likely
+        // change our xform as a result of layout, and we need to commit it before we end up on screen.
         if (layoutFeatures.updatePending)
         {
             applyComputedTransform();
         }

-		if (visible)
-        	updateDisplayList(_width, _height);
+        if (visible)
+            updateDisplayList(_width, _height);

         // If we aren't doing any more invalidation, send out an UpdateComplete event
         if (!invalidatePropertiesFlag && !invalidateSizeFlag && !invalidateDisplayListFlag)
@@ -2618,7 +2649,7 @@
     {
         if (!displayObject)
             return null;
-
+
         var m:Matrix = layoutFeatures.layoutMatrix;
         return MatrixUtil.isDeltaIdentity(m) ? null : m;
     }
@@ -2698,19 +2729,19 @@
         }
         else
         {
-	        x -= measuredX;
-    	    y -= measuredY;
-        }
-
-
-       	if(x != layoutFeatures.layoutX || y != layoutFeatures.layoutY)
-       	{
-			layoutFeatures.layoutX = x;
-			layoutFeatures.layoutY = y;
-			// note that we don't want to call invalidateTransform, because
-			// this is in the middle of an update pass. Instead, we just note that the
-			// transform has an update pending, so we can apply it later.
-			layoutFeatures.updatePending = true;
+            x -= measuredX;
+            y -= measuredY;
+        }
+
+
+        if(x != layoutFeatures.layoutX || y != layoutFeatures.layoutY)
+        {
+            layoutFeatures.layoutX = x;
+            layoutFeatures.layoutY = y;
+            // note that we don't want to call invalidateTransform, because
+            // this is in the middle of an update pass. Instead, we just note that the
+            // transform has an update pending, so we can apply it later.
+            layoutFeatures.updatePending = true;
             invalidateDisplayList();
         }
     }
@@ -2834,7 +2865,7 @@
      *  Applies the transform to the display object.
      */
     protected function applyComputedTransform():void
-    {
+    {
         layoutFeatures.updatePending = false;

         if(displayObject == null)
@@ -2957,7 +2988,7 @@
                 if (_transform)
                 {
                     layoutFeatures.layoutMatrix = _transform.matrix.clone();
-					invalidateTransform();
+                    invalidateTransform();
                 }
             }
             else if (event.property == "colorTransform")


Transferred from the Adobe Open Source Subversion Repository

Revision: 8625
Author:   jszeto@adobe.com
Date:     2009-07-16T17:59:26.132133Z

Log Message:
-----------
Updating copyright text

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/FilledElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/SolidColorStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/Line.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/RadialGradientStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/GradientStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/Path.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/Ellipse.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/Graphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/Rect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/BitmapImage.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/StrokedElement.as</path>

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

--- frameworks/projects/spark/src/spark/primitives/supportClasses/StrokedElement.as
+++ frameworks/projects/spark/src/spark/primitives/supportClasses/StrokedElement.as
@@ -1,7 +1,7 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
 //  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2003-2006 Adobe Systems Incorporated
+//  Copyright 2008 Adobe Systems Incorporated
 //  All Rights Reserved.
 //
 //  NOTICE: Adobe permits you to use, modify, and distribute this file


Transferred from the Adobe Open Source Subversion Repository

Revision: 17372
Author:   gruehle@adobe.com
Date:     2010-08-18T23:23:45.776465Z

Log Message:
-----------
More mobile text feature work:
* Address all remaining TODOs in the code
* Alphabetize the properties in IEditableText and MobileTextField
* Add support for embedded fonts

QE notes: No
Doc notes: No
Bugs: SDK-27474
Reviewer: Jason Szeto
Tests run: checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/RichEditableText.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/TextInput.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/MobileTextField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/TextInput_border.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/core/IEditableText.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextInputSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as
@@ -1288,8 +1288,10 @@
      */
     mx_internal function getHeightInLines():Number
     {
-        if (textDisplay)
-            return textDisplay.heightInLines;
+        var richEditableText:RichEditableText = textDisplay as RichEditableText;
+
+        if (richEditableText)
+            return richEditableText.heightInLines;

         // want the default to be NaN
         var v:* = textDisplayProperties.heightInLines;
@@ -1303,7 +1305,10 @@
     {
         if (textDisplay)
         {
-            textDisplay.heightInLines = value;
+            var richEditableText:RichEditableText = textDisplay as RichEditableText;
+
+            if (richEditableText)
+                richEditableText.heightInLines = value;
             textDisplayProperties = BitFlagUtil.update(
                 uint(textDisplayProperties),
                 HEIGHT_IN_LINES_PROPERTY_FLAG, true);
@@ -1375,8 +1380,10 @@
      */
     mx_internal function getWidthInChars():Number
     {
-        if (textDisplay)
-            return textDisplay.widthInChars
+        var richEditableText:RichEditableText = textDisplay as RichEditableText;
+
+        if (richEditableText)
+            return richEditableText.widthInChars

         // want the default to be NaN
         var v:* = textDisplayProperties.widthInChars;
@@ -1390,7 +1397,10 @@
     {
         if (textDisplay)
         {
-            textDisplay.widthInChars = value;
+            var richEditableText:RichEditableText = textDisplay as RichEditableText;
+
+            if (richEditableText)
+                richEditableText.widthInChars = value;
             textDisplayProperties = BitFlagUtil.update(
                 uint(textDisplayProperties),
                 WIDTH_IN_CHARS_PROPERTY_FLAG, true);
@@ -1437,9 +1447,9 @@
                 uint(newTextDisplayProperties), EDITABLE_PROPERTY_FLAG, true);
         }

-        if (textDisplayProperties.heightInLines !== undefined)
-        {
-            textDisplay.heightInLines = textDisplayProperties.heightInLines;
+        if (textDisplayProperties.heightInLines !== undefined && richEditableText)
+        {
+            richEditableText.heightInLines = textDisplayProperties.heightInLines;
             newTextDisplayProperties = BitFlagUtil.update(
                 uint(newTextDisplayProperties),
                 HEIGHT_IN_LINES_PROPERTY_FLAG, true);
@@ -1510,9 +1520,9 @@
                 uint(newTextDisplayProperties), TEXT_FLOW_PROPERTY_FLAG, true);
         }

-        if (textDisplayProperties.widthInChars !== undefined)
-        {
-            textDisplay.widthInChars = textDisplayProperties.widthInChars;
+        if (textDisplayProperties.widthInChars !== undefined && richEditableText)
+        {
+            richEditableText.widthInChars = textDisplayProperties.widthInChars;
             newTextDisplayProperties = BitFlagUtil.update(
                 uint(newTextDisplayProperties),
                 WIDTH_IN_CHARS_PROPERTY_FLAG, true);
@@ -1546,9 +1556,9 @@
         }

         if (BitFlagUtil.isSet(uint(textDisplayProperties),
-                              HEIGHT_IN_LINES_PROPERTY_FLAG))
-        {
-            newTextDisplayProperties.heightInLines = textDisplay.heightInLines;
+                              HEIGHT_IN_LINES_PROPERTY_FLAG) && richEditableText)
+        {
+            newTextDisplayProperties.heightInLines = richEditableText.heightInLines;
         }

         if (BitFlagUtil.isSet(uint(textDisplayProperties),
@@ -1609,9 +1619,9 @@
         }

         if (BitFlagUtil.isSet(uint(textDisplayProperties),
-                              WIDTH_IN_CHARS_PROPERTY_FLAG))
-        {
-            newTextDisplayProperties.widthInChars = textDisplay.widthInChars;
+                              WIDTH_IN_CHARS_PROPERTY_FLAG) && richEditableText)
+        {
+            newTextDisplayProperties.widthInChars = richEditableText.widthInChars;
         }

         // Switch from storing bit mask to storing properties.


Transferred from the Adobe Open Source Subversion Repository

Revision: 22550
Author:   eday@adobe.com
Date:     2011-09-14T06:27:45.444596Z

Log Message:
-----------
Ignore mouseUp event timing/position for touch interaction velocity calculation.

We were already doing this for iOS, but recent changes in the runtime mean that it's a good
thing to do unconditionally.  This fixes a few problems wherein the velocity calculation was way
off.

Also adapted ListPaging mobile checkintest to mouseUp-less velocity calculations.

QE notes:
Doc notes:
Bugs: SDK-31023, SDK-31438
Reviewer: Glenn (SDK change)
Tests run: checkintests, full mobile cyclone via Steve
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/tests/airMobileBasicTests/src/mobile/scripts/ListPagingTestScript.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/supportClasses/TouchScrollHelper.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/TouchScrollHelper.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/TouchScrollHelper.as
@@ -642,15 +642,10 @@
             dragTimer = null;
         }

-        // Note that on iOS we essentially ignore the delta position and time of the mouseUp event.
-        // This is because this last event seems to not reliably track with the actual velocity of the
-        // gesture, and causes problem for our velocity calculation.
-        // TODO (eday): determine the right cross-platform approach here.
-        // We check for "MouseEvent" because this could be a SanboxMouseEvent
-        if (!isIOS && event is MouseEvent)
-            addMouseEventHistory(MouseEvent(event).stageX, MouseEvent(event).stageY, GetTimerUtil.getTimer());
-
-        // decide about throw
+
+        // Note that we do not add the time and position of the mouseUp event to
+        // our event history.  This is because the timing of this event is unreliable
+        // and causes problems for our velocity calculation.

         // pad click and timeHistory if needed
         var currentTime:Number = GetTimerUtil.getTimer();


Transferred from the Adobe Open Source Subversion Repository

Revision: 3021
Author:   gosmith@adobe.com
Date:     2008-08-28T01:56:25.254704Z

Log Message:
-----------
Integrated TCAL SWCs from Build 159 to get scrolling improvements.

Reviewer: Glenn
Bugs: -
QA: No
Doc: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/TextView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/libs/text_importExport.swc</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/libs/text_model.swc</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/libs/text_edit.swc</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/events/TextOperationEvent.as</path>

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

--- frameworks/projects/spark/src/spark/components/NumericStepper.as
+++ frameworks/projects/spark/src/spark/components/NumericStepper.as
@@ -159,8 +159,8 @@
         }

         // Select all the text.
-        textInput.selectionAnchorIndex = 0;
-        textInput.selectionActiveIndex = int.MAX_VALUE;
+        textInput.selectionAnchorPosition = 0;
+        textInput.selectionActivePosition = int.MAX_VALUE;
     }

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


Readable arguments

Readable arguments

--- InfantiumLib/src/com/infantium/adobe/ane/InfantiumController.as
+++ InfantiumLib/src/com/infantium/adobe/ane/InfantiumController.as
@@ -32,9 +32,9 @@
 			return _instance;
 		}

-		public function initInfantium(s1:String, s2:String, int1:int, int2:int, contentAppUUID:String = "3336498c39414e7ea4488b61011038c8"):void{
+		public function initInfantium(api_user:String, api_key:String, w_dev:int, h_dev:int, contentAppUUID:String = "3336498c39414e7ea4488b61011038c8"):void{
 			onResumeInfantium();
-			var isInited:* = extContext.call("initFunction", s1, s2, int1, int2);
+			var isInited:* = extContext.call("initFunction", api_user, api_key, w_dev, h_dev);
 			if(isInited){
 				extContext.call(InfantiumEvent.setContentAppUUID, contentAppUUID);
 			}


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

--- frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkButtonBarBaseAutomationImpl.as
+++ frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkButtonBarBaseAutomationImpl.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 spark.automation.delegates.components.supportClasses
 {


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

--- frameworks/projects/automation_air/src/mx/automation/air/AirFunctionsHelper.as
+++ frameworks/projects/automation_air/src/mx/automation/air/AirFunctionsHelper.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.automation.air
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 18685
Author:   chiedozi@adobe.com
Date:     2010-11-17T23:41:28.244847Z

Log Message:
-----------
MobileApplication classes have been renamed to ViewNavigatorApplication.  Specific file changes are:
MobileApplicationBase  -->  ViewNavigatorApplicationBase
MobileApplication --> ViewNavigatorApplication
MobileApplicationSkin -->  ViewNavigatorApplicationSkin
TabbedMobileApplication -->  TabbedViewNavigatorApplication
TabbedMobileApplicationSkin --> TabbedViewNavigatorApplicationSkin

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/manifest.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/performance/mobile/TwitterSearch/src/TwitterSearchVirtualizedASTextField.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/performance/mobile/TwitterSearch/src/TwitterSearchVirtualizedMXMLLabel.mxml</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/TabbedMobileApplication.as" copyfrom-rev="18641" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigatorApplication.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/defaults.css</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ViewMenuItem.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/performance/mobile/RadioStations/src/RadioStations.mxml</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/MobileApplicationBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/performance/mobile/TwitterSearch/src/TwitterSearchVirtualizedMXMLTextField.mxml</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/MobileApplicationSkin.as" copyfrom-rev="18641" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewNavigatorApplicationSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/managers/PersistenceManager.as</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/MobileApplication.as</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/MobileApplicationBase.as" copyfrom-rev="18641" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorApplicationBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ViewMenu.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ActionBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/performance/mobile/ComponentCatalog/src/ComponentCatalog.mxml</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TabbedMobileApplicationSkin.as</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/MobileApplication.as" copyfrom-rev="18641" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ViewNavigatorApplication.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/performance/mobile/TwitterSearch/src/TwitterSearchASLabel.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/MobileThemeClasses.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/performance/mobile/TextTest/src/TextTest.mxml</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TabbedMobileApplicationSkin.as" copyfrom-rev="18641" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TabbedViewNavigatorApplicationSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/performance/mobile/TwitterSearch/src/TwitterSearchASTextField.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/performance/mobile/TwitterSearch/src/TwitterSearchMXMLLabel.mxml</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/TabbedMobileApplication.as</path>
<path kind="dir" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/core/managers</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/managers/IPersistenceManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/performance/mobile/TwitterSearch/src/TwitterSearchMXMLTextField.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/performance/mobile/TwitterSearch/src/TwitterSearchVirtualizedASLabel.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/performance/mobile/TransitionTests/src/TransitionTests.mxml</path>
<path kind="dir" copyfrom-path="/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/core/managers" copyfrom-rev="18641" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/managers</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/MobileApplicationSkin.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/managers/IPersistenceManager.as
+++ frameworks/projects/mobilecomponents/src/spark/managers/IPersistenceManager.as
@@ -9,7 +9,7 @@
 //
 ////////////////////////////////////////////////////////////////////////////////

-package spark.core.managers
+package spark.managers
 {

 /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 7862
Author:   jszeto@adobe.com
Date:     2009-06-15T22:06:23.250745Z

Log Message:
-----------
GraphicElement PARB Changes

mx.core.AdvancedLayoutFeatures
•	Rename layer -> depth
•	Rename offsets -> postLayoutTransformOffsets

mx.core.IVisualElement
•	Rename layer -> depth

mx.core.UIComponent
•	Rename offsets -> postLayoutTransformOffsets
•	Rename layer -> depth

mx.graphics.GradientBase
•	Remove scaleX

mx.graphics.GradientStroke
•	Add apply(g:Graphics, bounds:Rectangle)

mx.graphics.IStroke
•	Remove draw
•	Change apply(g:Graphics) -> apply(g:Graphics, bounds:Rectangle)

mx.graphics.LinearGradient
•	Add scaleX

mx.graphics.LinearGradientStroke
•	Add scaleX
•	Remove draw
•	Change apply(g:Graphics) -> apply(g:Graphics, bounds:Rectangle)

mx.graphics.RadialGradient
•	Add scaleX

mx.graphics.RadialGradientStroke
•	Add scaleX
•	Remove draw
•	Change apply(g:Graphics) -> apply(g:Graphics, bounds:Rectangle)

mx.graphics.SolidColorStroke
•	Remove draw
•	Change apply(g:Graphics) -> apply(g:Graphics, bounds:Rectangle)

mx.flash.UIMovieClip
•	Rename offsets -> postLayoutTransformOffsets
•	Rename layer -> depth

spark.components.PopUpAnchor
•	Change popUp type from UIComponent -> IFlexDisplayObject
•	Rename positionPopUp -> calculatePopUpPosition
•	Rename autoSizePopUpWidth -> popUpWidthMatchesAnchorWidth
•	Rename autoSizePopUpHeight -> popUpHeightMatchesAnchorHeight

spark.core.RelativePosition
•	Rename and move spark.core.RelativePosition -> spark.components.PopUpPosition
•	Rename EXACT -> TOP_LEFT (topLeft)

spark.core.SpriteVisualElement
•	Rename layer -> depth
•	Remove computeMatrix

spark.primitives.BitmapImage
•	Change _NORMAL_UINT from protected -> private
•	Change _REPEAT_UINT from protected -> private
•	Change _SCALE_UINT from protected -> private
•	Change resizeModeToUINT from protected -> private
•	Rename drawElement -> draw

spark.primitives.Line
•	Rename skipMeasure -> canSkipMeasurement
•	Rename drawElement -> draw

spark.primitives.Path
•	Change graphicsPath fro protected -> mx_internal
•	Rename skipMeasure -> canSkipMeasurement
•	Rename drawElement -> draw
•	Rename renderGraphicsAtScale -> generateGraphicsPath
•	Change generateGraphicsPath from protected -> mx_internal
•	Rename notifyElementLayerChanged -> invalidateDisplayObjectSharing

spark.primitives.Rect
•	Rename drawElement -> draw

spark.primitives.supportClasses.GraphicElement
•	Rename layer -> depth
•	Rename offsets -> postLayoutTransformOffsets
•	Rename getBitmapData -> captureBitmapData
•	Rename notifyElementLayerChanged -> invalidateDisplayObjectSharing
•	Rename skipMeasure -> canSkipMeasurement
•	Add protected hasComplexLayoutMatrix:Boolean getter
•	Remove target
•	Remove computeMatrix
•	Change DEFAULT_MAX_WIDTH from public -> private
•	Change DEFAULT_MAX_HEIGHT from public -> private
•	Change DEFAULT_MIN_WIDTH from public -> private
•	Change DEFAULT_MIN_HEIGHT from public -> private
•	Change allocateLayoutFeatures from protected -> mx_internal
•	Change invalidateTransform from protected -> private
•	Change captureBitmapData from public -> mx_internal
•	Change applyMaskType from protected -> mx_internal
•	Change dispatchPropertyChangeEvent from protected -> private
•	Change applyComputedTransform from protected -> mx_internal
•	Change filterChangedHandler from protected -> private

spark.supportClasses.StrokedElement
•	Rename drawElement -> draw
•	Remove getStroke()
•	Add getStrokeExtents() override

QE Notes: None
Doc Notes: None
Bugs: N/A
Reviewer: Glenn

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/StrokedElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/BitmapImage.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/TransformOffsets.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/TextGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Line.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Ellipse.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/FilledElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransitionShader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/BitmapFill.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/GradientStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/GradientBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateTransitionShaderInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/IFill.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/SolidColorStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/RadialGradientStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Path.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Rect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/SolidColor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/RadialGradient.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/IStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/LinearGradientStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/LinearGradient.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/AdvancedLayoutFeatures.as</path>

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

--- frameworks/projects/spark/src/spark/primitives/supportClasses/FilledElement.as
+++ frameworks/projects/spark/src/spark/primitives/supportClasses/FilledElement.as
@@ -13,11 +13,15 @@
 {

 import flash.display.Graphics;
+import flash.events.Event;
 import flash.events.EventDispatcher;
-import flash.events.Event;
 import flash.geom.Rectangle;
+
+import mx.core.mx_internal;
 import mx.events.PropertyChangeEvent;
 import mx.graphics.IFill;
+
+use namespace mx_internal;

 /**
  *  The FilledElement class is the base class for graphics elements that contain a stroke
@@ -106,7 +110,7 @@
             fillEventDispatcher.addEventListener(
                 PropertyChangeEvent.PROPERTY_CHANGE,
                 fill_propertyChangeHandler);
-
+
         dispatchPropertyChangeEvent("fill", oldValue, _fill);
         invalidateDisplayList();
     }
@@ -132,7 +136,7 @@

         var bounds:Rectangle = new Rectangle(drawX, drawY, width, height);
         if (stroke)
-            stroke.draw(g, bounds);
+            stroke.apply(g, bounds);
         else
             g.lineStyle();


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

--- frameworks/projects/advancedgrids/src/mx/collections/IHierarchicalCollectionView.as
+++ frameworks/projects/advancedgrids/src/mx/collections/IHierarchicalCollectionView.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  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.
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
 //
 ////////////////////////////////////////////////////////////////////////////////


Added abort()

Added abort()

--- WeaveCore/src/weave/utils/AsyncSort.as
+++ WeaveCore/src/weave/utils/AsyncSort.as
@@ -127,7 +127,7 @@
 		 * The given Array (or Vector) will be modified in-place.
 		 * @param arrayToSort The Array (or Vector) to sort.
 		 * @param compareFunction A function that compares two items and returns -1, 0, or 1.
-		 * @see mx.utils.ObjectUtil#compare
+		 * @see mx.utils.ObjectUtil#compare()
 		 */
 		public function beginSort(arrayToSort:*, compareFunction:Function = null):void
 		{
@@ -158,6 +158,16 @@
 			{
 				WeaveAPI.StageUtils.startTask(this, iterate, WeaveAPI.TASK_PRIORITY_2_BUILDING, done);
 			}
+		}
+
+		/**
+		 * Aborts the current async sort operation.
+		 */
+		public function abort():void
+		{
+			compare = null;
+			source = original = destination = null;
+			length = subArraySize = iLeft = iRight = middle = end = elapsed = 0;
 		}

 		private function iterate(stopTime:int):Number


created separate function for simplifying session state

--- WeaveUI/src/weave/ui/FlexibleLayout.as
+++ WeaveUI/src/weave/ui/FlexibleLayout.as
@@ -12,7 +12,6 @@
 	import mx.core.UIComponent;
 	import mx.core.mx_internal;
 	import mx.events.ChildExistenceChangedEvent;
-	import mx.utils.ObjectUtil;

 	import avmplus.getQualifiedClassName;

@@ -22,6 +21,7 @@
 	import weave.api.registerLinkableChild;
 	import weave.api.core.DynamicState;
 	import weave.api.core.ILinkableVariable;
+	import weave.compiler.Compiler;
 	import weave.compiler.StandardLib;
 	import weave.core.LinkableDynamicDisplayObject;
 	import weave.core.LinkableHashMap;
@@ -165,46 +165,66 @@
 				state[CHILDREN] = children;
 			return state;
 		}
+
+		private function simplifyState(state:Object):Object
+		{
+			var children:Array = state[CHILDREN] as Array;
+			if (!children)
+				return state;
+			if (children.length == 1)
+				return simplifyState(children[0]);
+
+			var simpleChildren:Array = [];
+			for (var i:int = 0; i < children.length; i++)
+			{
+				var child:Object = simplifyState(children[i]);
+				if (child[CHILDREN] is Array && child[DIRECTION] === state[DIRECTION])
+				{
+					var childChildren:Array = child[CHILDREN] as Array;
+					for (var ii:int = 0; ii < childChildren.length; ii++)
+					{
+						var childChild:Object = childChildren[ii];
+						childChild[FLEX] *= child[FLEX];
+						simpleChildren.push(childChild);
+					}
+				}
+				else
+				{
+					simpleChildren.push(child);
+				}
+			}
+			state[CHILDREN] = simpleChildren;
+			return state;
+		}

 		public function setSessionState(state:Object):void
 		{
 			if (!state)
 				state = {};
+
+			try
+			{
+				state = simplifyState(state);
+			}
+			catch (e:Error)
+			{
+				trace(debugId(this), 'received invalid state:', Compiler.stringify(state, null, '\t'));
+			}

 			var id:Array = state[ID] is String ? [state[ID] as String] : state[ID] as Array;
 			var flex:Number = state[FLEX];
 			var direction:String = state[DIRECTION] as String;
 			var children:Array = id ? [id] : (state[CHILDREN] as Array || []).concat();

-			if (children.length == 1 && !id)
-			{
-				setSessionState(children[0]);
-				return;
-			}
-
 			for (var i:int = 0; i < children.length; i++)
 			{
 				var objectName:String = 'child' + i;
 				var child:Object = children[i];
 				if (child is Array)
-				{
-					children[i] = DynamicState.create(objectName, LinkableDynamicDisplayObject_QName, child);
-				}
-				else if (child[DIRECTION] == direction && child[CHILDREN] is Array)
-				{
-					var spliceArgs:Array = [i--, 1];
-					for each (var obj:Object in child[CHILDREN])
-					{
-						var newObj:Object = ObjectUtil.copy(obj);
-						newObj[FLEX] *= child[FLEX];
-						spliceArgs.push(newObj);
-					}
-					children.splice.apply(children, spliceArgs);
-				}
+					child = DynamicState.create(objectName, LinkableDynamicDisplayObject_QName, child);
 				else
-				{
-					children[i] = DynamicState.create(objectName, FlexibleLayout_QName, children[i]);
-				}
+					child = DynamicState.create(objectName, FlexibleLayout_QName, child);
+				children[i] = child;
 			}

 			getCallbackCollection(this).delayCallbacks();


Simplified code to check for empty bitmap

--- WeaveUI/src/weave/utils/BitmapUtils.as
+++ WeaveUI/src/weave/utils/BitmapUtils.as
@@ -94,12 +94,10 @@
 			var w:int = Math.round(source.width * scale);
 			var h:int = Math.round(source.height * scale);

-			if (w <= 0 || h <= 0)
-				return new BitmapData(0, 0);
-
-			// upscale source width,height to the target w,h times a power of 2
-			while (w < source.width || h < source.height)
-				w *= 2, h *= 2;
+			// upscale source width,height to the target w,h times a power of 2
+			if (w > 0 && h > 0)
+				while (w < source.width || h < source.height)
+					w *= 2, h *= 2;
 			var result:BitmapData = new BitmapData(w, h);
 			tempMatrix.identity();
 			tempMatrix.scale(w/source.width, h/source.height);


- bugfix: Label rasterization bitmaps were never created for Labels that have opacity: 0 when they are filled with content and then later only change their opacity

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

--- src/reprise/controls/Label.as
+++ src/reprise/controls/Label.as
@@ -787,6 +787,7 @@
 				m_labelDisplay.visible = false;
 				if (m_currentStyles.opacity == 0)
 				{
+					m_cacheInvalid = true;
 					return;
 				}
 				var bitmap : BitmapData = new BitmapData(


Modification of the ArcBallController for the Studio Camera Controller

--- src/aerys/minko/scene/controller/camera/ArcBallController.as
+++ src/aerys/minko/scene/controller/camera/ArcBallController.as
@@ -112,7 +112,7 @@
 			}
 		}

-		private function mouseWheelHandler(e : MouseEvent) : void
+		protected function mouseWheelHandler(e : MouseEvent) : void
 		{
 			_distance	-=	e.delta;
 			_update		=	true;


I changed how the visapplication handles saves in that the user no longer has to retype the file name after a subsequent save.

--- WeaveUI/src/weave/application/VisApplication.as
+++ WeaveUI/src/weave/application/VisApplication.as
@@ -55,11 +55,11 @@
 	import weave.Weave;
 	import weave.WeaveProperties;
 	import weave.api.WeaveAPI;
+	import weave.api.getCallbackCollection;
+	import weave.api.reportError;
 	import weave.api.core.ILinkableObject;
 	import weave.api.data.ICSVExportable;
 	import weave.api.data.IDataSource;
-	import weave.api.getCallbackCollection;
-	import weave.api.reportError;
 	import weave.api.ui.IVisTool;
 	import weave.compiler.StandardLib;
 	import weave.core.ExternalSessionStateInterface;
@@ -536,6 +536,8 @@
 		}

 		private var _useWeaveExtensionWhenSavingToServer:Boolean;
+		private var _firstTimeSaveToServer:Boolean=true;
+		private var _previousFileNameStore:String;
 		private function saveSessionStateToServer(useWeaveExtension:Boolean):void
 		{
 			if (adminService == null)
@@ -548,6 +550,8 @@

 			var fileName:String = getFlashVarFile().split("/").pop();
 			fileName = Weave.fixWeaveFileName(fileName, _useWeaveExtensionWhenSavingToServer);
+			if (!_firstTimeSaveToServer)
+				fileName=_previousFileNameStore;

 			var fileSaveDialogBox:AlertTextBox;
 			fileSaveDialogBox = PopUpManager.createPopUp(this,AlertTextBox) as AlertTextBox;
@@ -562,8 +566,10 @@
 		{
 			if (event.confirm)
 			{
+				_firstTimeSaveToServer=false;
 				var fileName:String = event.textInput;
 				fileName = Weave.fixWeaveFileName(fileName, _useWeaveExtensionWhenSavingToServer);
+				_previousFileNameStore = fileName;

 				var content:ByteArray;
 				if (_useWeaveExtensionWhenSavingToServer)


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

--- frameworks/projects/mx/src/mx/accessibility/LinkButtonAccImpl.as
+++ frameworks/projects/mx/src/mx/accessibility/LinkButtonAccImpl.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2003-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.accessibility
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 17331
Author:   jasonsj@adobe.com
Date:     2010-08-16T17:37:24.374535Z

Log Message:
-----------
Added DiscouragedForProfile metadata for use with FB mobile projects.

QE notes: DiscouragedForProfile features should now be visible in FB
Doc notes: ASDoc content omitted for DiscouragedForProfile where the boilerplate comment is desired
Bugs:
Reviewer: gruehle
Tests run: checkintests
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/NumericStepper.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/VSlider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/ComboBox.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/TitleWindow.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/ToggleButton.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Spinner.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGrid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/BorderContainer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/FormHeading.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/VideoPlayer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/RichEditableText.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/RichText.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/HSlider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/TabBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/VideoDisplay.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Panel.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Form.as</path>

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

--- frameworks/projects/spark/src/spark/components/NumericStepper.as
+++ frameworks/projects/spark/src/spark/components/NumericStepper.as
@@ -104,6 +104,14 @@
 [DefaultTriggerEvent("change")]

 [IconFile("NumericStepper.png")]
+
+/**
+ * Because this component does not define a skin for the mobile theme, Adobe
+ * recommends that you not use it in a mobile application. Alternatively, you
+ * can define your own mobile skin for the component. For more information,
+ * see Spark Skinning.
+ */
+[DiscouragedForProfile("mobileDevice")]

 /**
  *  The NumericStepper control lets you select


Fixed bug in linkBinableProperty that would clear the custom errorString of a UIComponent.

--- WeaveCore/src/weave/core/SessionManager.as
+++ WeaveCore/src/weave/core/SessionManager.as
@@ -1052,7 +1052,9 @@

 		/******************************************************
 		 * linking sessioned objects with bindable properties
-		 ******************************************************/
+		 ******************************************************/
+
+		private const VALUE_NOT_ACCEPTED:String = 'Value not accepted.'; // errorString used by linkBindableProperty

 		/*private function debugLink(linkVal:Object, bindVal:Object, useLinkableBefore:Boolean, useLinkableAfter:Boolean, callingLater:Boolean):void
 		{
@@ -1158,15 +1160,15 @@
 							{
 								if ((linkableVariable as LinkableVariable).verifyValue(bindableValue))
 								{
-									// clear any existing error string
-									if (uiComponent.errorString)
+									// clear previous error string
+									if (uiComponent.errorString == VALUE_NOT_ACCEPTED)
 										uiComponent.errorString = '';
 								}
 								else
 								{
 									// show error string if not already shown
 									if (!uiComponent.errorString)
-										uiComponent.errorString = 'Value not accepted.';
+										uiComponent.errorString = VALUE_NOT_ACCEPTED;
 								}
 							}

@@ -1226,8 +1228,8 @@
 					if (bindableValue != linkableValue)
 						bindableParent[bindablePropertyName] = linkableValue;

-					// clear any existing error string
-					if (uiComponent && linkableVariable is LinkableVariable && uiComponent.errorString)
+					// clear previous error string
+					if (uiComponent && linkableVariable is LinkableVariable && uiComponent.errorString == VALUE_NOT_ACCEPTED)
 						uiComponent.errorString = '';
 				}
 				else


Transferred from the Adobe Open Source Subversion Repository

Revision: 7306
Author:   aharui@adobe.com
Date:     2009-05-27T14:54:00.080376Z

Log Message:
-----------
Fix another pair of mustella failures from the frame1 cleanup

QE Notes: None
Doc Notes: None
Bugs: SDK-21386
Reviewer: corey
tests: checkintests mustella/MarshallPlan

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/ActiveWindowManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/ChildManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/MarshallPlan.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSStyleDeclaration.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>

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

--- frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as
+++ frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as
@@ -762,7 +762,7 @@
         {
         	// Type as Object to avoid dependency on SystemManager or WindowedSystemManager
             var sm:ISystemManager = sms[i];
-			var cm:Object = sm.getImplementation("mx.managers.ISystemManagerChildManager");
+			var cm:Object = sm.getImplementation("mx.managers::ISystemManagerChildManager");
             Object(cm).regenerateStyleCache(true);
             Object(cm).notifyStyleChangeInChildren(null, true);
         }


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

--- frameworks/projects/spark/src/spark/components/IItemRenderer.as
+++ frameworks/projects/spark/src/spark/components/IItemRenderer.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 spark.components
 {