Transferred from the Adobe Open Source Subversion Repository

Revision: 13208
Author:   chaase@adobe.com
Date:     2009-12-23T21:49:14.524642Z

Log Message:
-----------
Dealt with my FIXMEs in the code. Some went away (no longer issues), some became TODOs (still issues, but nothing that we have to solve in this release), a couple were actually resolved in this change (like the bug filed/fixed: 24848).

QE notes: 10 failures in Mustella of tests that need to be changed. They're excluded for now and QE has local fixes.
Doc notes: None
Bugs: SDK-24848
Reviewer: Jason
Tests run: checkintests, Mustella (spark/effects, mx/effects)
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/AnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Move3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/animation/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Rotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransitionShaderInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/CompositeEffect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/animation/MotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Move.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/PropertyChanges.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SliderBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Effect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Scale3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Rotate3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/animation/Timeline.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/MoveInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AddAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Scale.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/SequenceInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransformInstance.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/effects/EffectTargetFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/RemoveAction.as</path>

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

--- frameworks/projects/spark/src/spark/effects/animation/Animation.as
+++ frameworks/projects/spark/src/spark/effects/animation/Animation.as
@@ -70,16 +70,6 @@
  */
 public final class Animation
 {
-    /**
-     *  FIXME (chaase):
-     *  - seek? reverse?
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-     */
-
     include "../../core/Version.as";

     //--------------------------------------------------------------------------
@@ -149,7 +139,7 @@
     private static var intervalTime:Number = NaN;

     // A single Timer object runs all animations in the process
-    private static var activeAnimations:Array = [];
+    private static var activeAnimations:Vector.<Animation> = new Vector.<Animation>;
     private static var timer:Timer = null;

     /**
@@ -158,14 +148,9 @@
      */
     private static var linearEaser:IEaser;

-    // FIXME (chaase): more efficient way to store/remove these than in an array?
-    // Dictionary, perhaps (although that may be unordered and less
-    // efficient to access)
     private var id:int = -1;
-    // FIXME (chaase): re-think this variable in seeking
     private var _doSeek:Boolean = false;
     private var _isPlaying:Boolean = false;
-    // FIXME (chaase): rethink how we do reversing
     private var _doReverse:Boolean = false;
     private var _invertValues:Boolean = false;
     // Original start time of animation
@@ -801,9 +786,9 @@
             }
             else
             {
-                sendUpdateEvent();
                 if (repeated)
                     sendAnimationEvent(EffectEvent.EFFECT_REPEAT);
+                sendUpdateEvent();
             }
         }
         return animationEnded;
@@ -931,11 +916,6 @@
         // interpolators should be written to just send back the end value
         // instead of trying to calculate it for the end time.

-        // FIXME (chaase): Check whether we already send out a final
-        // UPDATE event with the end value; if so, this dup should be
-        // removed
-        // FIXME (chaase): this will snap paused and startDelayed animations
-        // to their end values. Seems correct, but should check this.
         if (!started)
             sendAnimationEvent(EffectEvent.EFFECT_START);
         if (repeatCount > 1 && repeatBehavior == "reverse" && (repeatCount % 2 == 0))
@@ -1054,7 +1034,7 @@
         //playheadTime = Math.min(Math.max(playheadTime, 0), duration);

         // Reset the start time
-        // FIXME (chaase): Redundant for cases that set this again below
+        // TODO (chaase): Redundant for cases that set this again below
         // Should only do this for playing animation, as the stopped animations
         // do it for themselves
         startTime = cycleStartTime = intervalTime - playheadTime;
@@ -1063,12 +1043,11 @@
         if (!_isPlaying)
         {
             intervalTime = Timeline.currentTime;
-            // FIXME (chaase): comments...
             if (includeStartDelay && startDelay > 0)
             {
                 if (delayedStartTimes[this])
                 {
-                    // FIXME (chaase): refactor removal/addition into utility functions
+                    // TODO (chaase): refactor removal/addition into utility functions
                     // Still sleeping - reduce the delay time by the seek time
                     var animPendingTime:int = delayedStartTimes[this];
                     for (var i:int = 0; i < delayedStartAnims.length; ++i)
@@ -1138,7 +1117,7 @@
                 motionPaths[i].interpolator = interpolator;
     }

-    // FIXME (chaase): should eventually remove this function, since it
+    // TODO (chaase): should eventually remove this function, since it
     // overlaps with playReverse property. Just leaving it mx_internal
     // for now to avoid perturbing the code too much
     /**
@@ -1272,10 +1251,8 @@
         if (repeatBehavior == RepeatBehavior.REVERSE)
             _invertValues = !_invertValues;
         calculateValue(0);
-        // FIXME (chaase): Make sure we're not already sending out an UPDATE
-        // event with this value
+        sendAnimationEvent(EffectEvent.EFFECT_REPEAT);
         sendUpdateEvent();
-        sendAnimationEvent(EffectEvent.EFFECT_REPEAT);
         Animation.addAnimation(this);
     }

@@ -1294,7 +1271,7 @@
         // actualStartTime accounts for overrun in desired startDelay
         var actualStartTime:int = 0;

-        // FIXME (chaase): call removal utility instead of this code
+        // TODO (chaase): call removal utility instead of this code
         // Make sure to remove any references on the delayed lists
         for (var i:int = 0; i < delayedStartAnims.length; ++i)
         {
@@ -1324,8 +1301,6 @@
         }
         else
         {
-            // FIXME (chaase): Make sure we're not already sending out an
-            // UPDATE event with this start value
             sendUpdateEvent();
             Animation.addAnimation(this);
             startTime = cycleStartTime;


Transferred from the Adobe Open Source Subversion Repository

Revision: 22086
Author:   jszeto@adobe.com
Date:     2011-08-19T00:14:47.664747Z

Log Message:
-----------
SpinnerList bug fixes and visual update

Tweaked the SpinnerListContainer visuals based on XD and PM feedback

SDK-31201 - DateSpinner: when setting a big year like 9999 year as selectedDate , no date in Date list in dateAndTime mode .

We were hitting a Player limitation for the x/y values. The solution is to offset the y value if we exceed that maximum number.

SDK-31178 - Application freezes when SpinnerList does not have a dataProvider

Added check to VerticalSpinnerLayout and gave the SpinnerList a minimum height to draw

SDK-31096 - DateSpinner doesn't support text styles like fontWeight and color

Added the text style metadata

SDK-30969 - fontSize style isn't respected by SpinnerList

Moved fontSize style from SpinnerListItemRenderer type selector to SpinnerList type selector. Made sure typicalLayoutElement is remeasured after a text style change

QE notes: none
Doc notes: none
Bugs: listed above
Reviewer: Tom K
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/spark/src/spark/components/DataGroup.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/mobiletheme/src/spark/skins/mobile320/assets/SpinnerListContainerBackground.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile240/assets/SpinnerListContainerBackground.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/DateSpinner.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile160/assets/SpinnerListContainerBackground.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/defaults.css</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile320/assets/SpinnerListContainerSelectionIndicator.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile240/assets/SpinnerListContainerSelectionIndicator.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile160/assets/SpinnerListContainerSelectionIndicator.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile320/assets/SpinnerListContainerShadow.fxg</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/mobiletheme/src/spark/skins/mobile240/assets/SpinnerListContainerShadow.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile160/assets/SpinnerListContainerShadow.fxg</path>

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

--- frameworks/projects/mobilecomponents/src/spark/layouts/VerticalSpinnerLayout.as
+++ frameworks/projects/mobilecomponents/src/spark/layouts/VerticalSpinnerLayout.as
@@ -52,6 +52,14 @@
 	mx_internal var autoScrollAscending:Boolean = false;

 	mx_internal static const FORCE_NO_WRAP_ELEMENTS_CHANGE:String = "forceNoWrapElementsChange";
+
+    // If the scrollPosition is too small or large, we need to shift the y positions
+    // of the item renderers or else we hit a player limitation.
+    private var yOffset:Number = 0;
+
+    // The max value for x/y seems to be 2^30 / 10. int.MAX_VALUE = 2^31;
+    private static const MAX_Y_VALUE:Number = int.MAX_VALUE / 20;
+    private static const MIN_Y_VALUE:Number = int.MIN_VALUE / 20;

 	//--------------------------------------------------------------------------
 	//
@@ -167,7 +175,7 @@
         var scrollPosition:Number = verticalScrollPosition;

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

         var foundLastVisibleElement:Boolean = false;
@@ -183,7 +191,7 @@
                 itemIndex = Math.max(Math.min(itemIndex, numElements - 1), 0);
         }

-        yPos = itemIndex * rowHeight;
+        yPos = itemIndex * rowHeight + yOffset;

         // Calculate the y position of the bottom of the viewable area
         yPosMax = yPos + height;
@@ -195,42 +203,68 @@
         // Start at the top index
         var iter:LayoutIterator = new LayoutIterator(target, itemIndex);

-        do
-        {
-            element = iter.getCurrentElement();
-            if (element && element.includeInLayout)
+        if (numElements > 0)
+        {
+            do
             {
-                numVisitedElements++;
-
-                element.setLayoutBoundsSize(width, rowHeight);
-                element.setLayoutBoundsPosition(0, yPos);
-
-                yPos += rowHeight;
-
-                // If we are using virtual layout, only size and position
-                // the visible elements
-                if (yPos > yPosMax && !foundLastVisibleElement)
+                element = iter.getCurrentElement();
+                if (element && element.includeInLayout)
                 {
-                    foundLastVisibleElement = true;
-                    // Keep track of the number of elements visible in the viewing area
-                    numVisibleElements = numVisitedElements;
-                    if (useVirtualLayout)
-                        break;
+                    numVisitedElements++;
+
+                    element.setLayoutBoundsSize(width, rowHeight);
+                    element.setLayoutBoundsPosition(0, yPos);
+
+                    yPos += rowHeight;
+
+                    // If we are using virtual layout, only size and position
+                    // the visible elements
+                    if (yPos > yPosMax && !foundLastVisibleElement)
+                    {
+                        foundLastVisibleElement = true;
+                        // Keep track of the number of elements visible in the viewing area
+                        numVisibleElements = numVisitedElements;
+                        if (useVirtualLayout)
+                            break;
+                    }
                 }
-            }
-
-            // Make sure to not wrap if wrapElements = false
-            if (!wrapElements && iter.currentIndex == numElements - 1)
-                break;
-
-            iter.next();
-        }
-        while (itemIndex != iter.currentIndex)
+
+                // Make sure to not wrap if wrapElements = false
+                if (!wrapElements && iter.currentIndex == numElements - 1)
+                    break;
+
+                iter.next();
+            }
+            while (itemIndex != iter.currentIndex)
+        }

         setRowCount(numVisibleElements);

         // Set the contentWidth and contentHeight
         target.setContentSize(target.width, Math.ceil(numElements * rowHeight));
+    }
+
+    override public function updateScrollRect(w:Number, h:Number):void
+    {
+        var g:GroupBase = target;
+        if (!g)
+            return;
+
+        if (clipAndEnableScrolling)
+        {
+            var hsp:Number = horizontalScrollPosition;
+            var vsp:Number = verticalScrollPosition;
+
+            // If the verticalScrollPosition exceeds the max/min y value, then the
+            // renderers will not be properly positioned. In which case,
+            // we offset the y position of the renderers by the verticalScrollPosition
+            if (((vsp + yOffset + g.getPreferredBoundsHeight()) > MAX_Y_VALUE) ||
+                ((vsp + yOffset) < MIN_Y_VALUE))
+                yOffset = -vsp;
+            g.scrollRect = new Rectangle(hsp, vsp + yOffset, w, h);
+        }
+        else
+            g.scrollRect = null;
     }

 	override public function getElementBounds(index:int):Rectangle
@@ -266,8 +300,9 @@
             return;
         }

-        var y0:Number = scrollR.top;
-        var y1:Number = scrollR.bottom - .0001;
+        // Apply the offset
+        var y0:Number = scrollR.top + yOffset;
+        var y1:Number = scrollR.bottom + yOffset - .0001;
         if (y1 <= y0)
         {
             setIndexInView(-1, -1);
@@ -296,8 +331,8 @@
         if (wrapElements)
         {
             if (!firstElement || !lastElement ||
-                scrollR.top < firstElement.getLayoutBoundsY() ||
-                scrollR.bottom >= (lastElement.getLayoutBoundsY() + lastElement.getLayoutBoundsHeight()))
+                y0 < firstElement.getLayoutBoundsY() ||
+                y1 >= (lastElement.getLayoutBoundsY() + lastElement.getLayoutBoundsHeight()))
             {
                 g.invalidateDisplayList();
             }
@@ -305,8 +340,8 @@
         else
         {
             if (!firstElement || !lastElement ||
-                (scrollR.top < firstElement.getLayoutBoundsY() && firstIndexInView != 0) ||
-                (scrollR.bottom >= (lastElement.getLayoutBoundsY() + lastElement.getLayoutBoundsHeight()) && lastIndexInView != n))
+                (y0 < firstElement.getLayoutBoundsY() && firstIndexInView != 0) ||
+                (y1 >= (lastElement.getLayoutBoundsY() + lastElement.getLayoutBoundsHeight()) && lastIndexInView != n))
             {
                 g.invalidateDisplayList();
             }


fix for endless loop and RTE 1502 when resizing text

--- frameworks/projects/spark/src/spark/components/supportClasses/ScrollerLayout.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ScrollerLayout.as
@@ -72,12 +72,18 @@
     //
     //--------------------------------------------------------------------------

-    /**
-     *  @private
-     *  Used by updateDisplayList() to prevent looping.
-     */
-    private var invalidationCount:int = 0;
-
+	/**
+	 *  @private
+	 *  Used by updateDisplayList() to prevent looping.
+	 */
+	private var invalidationCount:int = 0;
+
+	/**
+	 *  @private
+	 *  Used by updateDisplayList() to prevent looping.
+	 */
+	private var removeCount:int = 0;
+
     /**
      *  @private
      */
@@ -224,7 +230,7 @@
      *  the horizontal scrollbar (hsb) at its minimum size.   The HSB is assumed
      *  to be non-null and visible.
      *
-     *  If includeVSB is false we check to see if the HSB woudl fit if the
+     *  If includeVSB is false we check to see if the HSB would fit if the
      *  VSB wasn't visible.
      */
     private function hsbFits(w:Number, h:Number, includeVSB:Boolean=true):Boolean
@@ -347,6 +353,8 @@
         const scroller:Scroller = getScroller();
         if (!scroller)
             return;
+
+		removeCount = 0;

         const minViewportInset:Number = scroller.minViewportInset;
         const measuredSizeIncludesScrollBars:Boolean = scroller.measuredSizeIncludesScrollBars && (scroller.getStyle("interactionMode") == InteractionMode.MOUSE);
@@ -449,6 +457,7 @@
         g.measuredMinWidth = Math.ceil(minW);
         g.measuredMinHeight = Math.ceil(minH);
     }
+

     /**
      *  @private
@@ -607,18 +616,28 @@

                 if (hsbIsDependent)
                 {
-                    if (vsbFits(w, h, false))  // VSB will fit if HSB isn't shown
+                    if (removeCount < 2 && vsbFits(w, h, false))  // VSB will fit if HSB isn't shown
+					{
+						removeCount++;
                         hsbVisible = false;
-                    else
+					}
+                    else
+					{
                         vsbVisible = hsbVisible = false;
+					}

                 }
                 else if (vsbIsDependent)
                 {
-                    if (hsbFits(w, h, false)) // HSB will fit if VSB isn't shown
+                    if (removeCount < 2 && hsbFits(w, h, false)) // HSB will fit if VSB isn't shown
+					{
+						removeCount++;
                         vsbVisible = false;
+					}
                     else
+					{
                         hsbVisible = vsbVisible = false;
+					}
                 }
                 else if (vsbFits(w, h, false)) // VSB will fit if HSB isn't shown
                     hsbVisible = false;
@@ -652,20 +671,18 @@
         else
             viewportH = explicitViewportH;

-        // Layout the viewport and scrollbars.
-
-        if (viewport)
-        {
-            viewport.setLayoutBoundsSize(viewportW, viewportH);
-            viewport.setLayoutBoundsPosition(minViewportInset, minViewportInset);
-        }
-
+		// Layout the viewport and scrollbars.
+		if (viewport)
+		{
+			viewport.setLayoutBoundsSize(viewportW, viewportH);
+			viewport.setLayoutBoundsPosition(minViewportInset, minViewportInset);
+		}
+
         if (hsbVisible)
         {
 			var hsbH:Number = hsb.getPreferredBoundsHeight();
             var hsbW:Number = vsbVisible ? w - vsb.getPreferredBoundsWidth() : w;
-            hsb.setLayoutBoundsSize(Math.max(hsb.getMinBoundsWidth(), hsbW), hsbH);
-
+            hsb.setLayoutBoundsSize(Math.max(hsb.getMinBoundsWidth(), hsbW), hsbH);
 			hsb.setLayoutBoundsPosition(0, h - hsbH);
         }

@@ -673,8 +690,7 @@
         {
             var vsbW:Number = vsb.getPreferredBoundsWidth();
             var vsbH:Number = hsbVisible ? h - hsb.getPreferredBoundsHeight() : h;
-			vsb.setLayoutBoundsSize(vsbW, Math.max(vsb.getMinBoundsHeight(), vsbH));
-
+			vsb.setLayoutBoundsSize(vsbW, Math.max(vsb.getMinBoundsHeight(), vsbH));
 			vsb.setLayoutBoundsPosition(w - vsbW, 0);
         }

@@ -691,11 +707,11 @@
             if (viewportGroup && viewportGroup.layout && viewportGroup.layout.useVirtualLayout)
                 viewportGroup.invalidateSize();

-            invalidationCount += 1;
+            invalidationCount++;
         }
         else
             invalidationCount = 0;
-
+
         target.setContentSize(w, h);
     }


Fixed bug where the label coloring wasn't working if there was only
one height column.

Change-Id: Ie323b1d8494bb6722b52bb596ecf328e9410abf3

--- WeaveUI/src/weave/visualization/plotters/CompoundBarChartPlotter.as
+++ WeaveUI/src/weave/visualization/plotters/CompoundBarChartPlotter.as
@@ -412,15 +412,19 @@
 						var color:Number = chartColors.getColorFromNorm(colorNorm);

 						// if there is one column, act like a regular bar chart and color in with a chosen color
-						if (_heightColumns.length == 1)
-							fillStyle.beginFillStyle(recordKey, graphics);
-						// otherwise use a pre-defined set of colors for each bar segment
-						else
+						if (_heightColumns.length == 1)
+						{
+							// this might introduce a little overhead...
+							color = fillStyle.color.getValueFromKey(recordKey, Number) as Number;
+
+							fillStyle.beginFillStyle(recordKey, graphics);
+						}
+						else // otherwise use a pre-defined set of colors for each bar segment
 							graphics.beginFill(color, 1);

 						lineStyle.beginLineStyle(recordKey, graphics);
-						if(tempBounds.getHeight() == 0)
+						if (tempBounds.getHeight() == 0)
 							graphics.lineStyle(0,0,0);

 						graphics.drawRect(tempBounds.getXMin(), tempBounds.getYMin(), tempBounds.getWidth(), tempBounds.getHeight());


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

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

 package mx.controls.fileSystemClasses
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 18173
Author:   jasonsj@adobe.com
Date:     2010-10-15T17:03:20.801634Z

Log Message:
-----------
Mobile Theme Initial check-in

* New light-look visuals from XD
* Changed airmobile-config.xml to use standalone Mobile theme instead of Spark overlay
* Added theme="spark, mobile" where spark was already white-listed and support is implemented and/or planned for Mobile/spark.css (see https://zerowing.corp.adobe.com/display/flexmobile/Mobile+Theme+Styles+Spec)
* MobileSkin has symbolColor and chromeColor support. Override beginChromeColorFill and drawChromeColor when defining custom chromeColor visuals.
* CheckBox and RadioButton now have chromeColor and symbolColor support
* Added textShadowColor and textShadowAlpha support to Button and ActionBar
* Added chromeColor support to HScrollBar and VScrollBar

QE notes: All mobile skins have been updaetd.
Doc notes: Update mobile skinning documentation for new APIs
Bugs:
SDK-28043 Investigate usage of "viewWidth", "viewHeight" for the Flex Mobile Skin Assets
SDK-27609 Mobile scroll bar skins should use chromeColor
SDK-27646 cornerradius has no effect on button in mobile application
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/mobiletheme/src/spark/skins/mobile/VScrollBarTrackSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/MobileSkin.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/mobiletheme/src/spark/skins/mobile/ActionBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Button.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/metadata/BorderStyles.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/CheckBox_symbol.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Image.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/RadioButton_symbol.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/Button_up.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/metadata/ContainerBackgroundStyles.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/CheckBox.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ActionBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/CheckBox_up.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionBarButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HScrollBarThumbSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/SkinnableDataContainer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/RadioButton_up.fxg</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/components/supportClasses/SliderBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/Button_down.fxg</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/CheckBox_upSelected.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DefaultItemRenderer.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/mobiletheme/src/spark/skins/mobile/assets/RadioButton_upSelected.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/VScrollBarThumbSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/CheckBox_down.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonSkin.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/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewMenuItemSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/RadioButton_down.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HScrollBarTrackSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/controls/ToolTip.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/RadioButton.as</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/CheckBox_downSelected.fxg</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/themes/Mobile/spark.css</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/SelectableButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/airmobile-config.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/CheckBoxSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/RadioButton_downSelected.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/RadioButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/NavigationButtonSkin.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ActionBarButtonSkinBase.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ActionBarButtonSkinBase.as
@@ -13,7 +13,7 @@
 {
 import flash.display.DisplayObject;
 import flash.display.GradientType;
-import flash.geom.ColorTransform;
+import flash.display.Graphics;
 import flash.geom.Matrix;

 import mx.utils.ColorUtil;
@@ -79,16 +79,14 @@
         positionPart(bgImg, 0, 0);
     }

-    override protected function drawBackground(unscaledWidth:Number, unscaledHeight:Number):void
+    override protected function drawChromeColor(chromeColorGraphics:Graphics, unscaledWidth:Number, unscaledHeight:Number):void
     {
-        drawBackgroundOffset(0, unscaledWidth, unscaledHeight);
+        drawBackgroundOffset(chromeColorGraphics, 0, unscaledWidth, unscaledHeight);
     }

-    protected function drawBackgroundOffset(xOffset:Number, backgroundWidth:Number, backgroundHeight:Number):void
+    protected function drawBackgroundOffset(chromeColorGraphics:Graphics, xOffset:Number, backgroundWidth:Number, backgroundHeight:Number):void
     {
         var colors:Array = [];
-
-        graphics.clear();

         // Draw the gradient background
         matrix.createGradientBox(backgroundWidth, backgroundHeight, Math.PI / 2, 0, 0);
@@ -97,11 +95,11 @@
         colors[1] = chromeColor;
         colors[2] = ColorUtil.adjustBrightness2(chromeColor, -20);

-        graphics.beginGradientFill(GradientType.LINEAR, colors, alphas, ratios, matrix);
+        chromeColorGraphics.beginGradientFill(GradientType.LINEAR, colors, alphas, ratios, matrix);

         // adjust for separator
-        graphics.drawRect(xOffset, 0, backgroundWidth, backgroundHeight);
-        graphics.endFill();
+        chromeColorGraphics.drawRect(xOffset, 0, backgroundWidth, backgroundHeight);
+        chromeColorGraphics.endFill();
     }
 }
 }


Solved bug opening remarks popup

Solved bug opening remarks popup

--- collect-flex/collect-flex-client/src/main/flex/org/openforis/collect/presenter/RemarksPopUpPresenter.as
+++ collect-flex/collect-flex-client/src/main/flex/org/openforis/collect/presenter/RemarksPopUpPresenter.as
@@ -91,10 +91,10 @@
 			if(firstOpen) {
 				view = new RemarksPopUp();
 			}
-			//popUp.showReasonBlank = inputField.canShowReasonBlankOnPopUp() && PhaseUtil.currentPhaseCode == PhaseUtil.DATA_ENTRY_CODE;
-
+			_showReasonBlank = _inputField != null && (_inputField.isEmpty() ||	_inputField.hasBlankReasonSpecified());
+			_inputField = inputField;
+
 			if(! popUpOpened) {
-				this._inputField = inputField;
 				PopUpManager.addPopUp(view, inputField);

 				if(firstOpen) {
@@ -134,7 +134,6 @@
 					}
 				}
 			}
-			_showReasonBlank = _inputField != null && (_inputField.isEmpty() ||	_inputField.hasBlankReasonSpecified());
 			if(_showReasonBlank) {
 				view.currentState = RemarksPopUp.STATE_CAN_SPECIFY_REASON_BLANK;
 			} else {


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 9724
Author:   jszeto@adobe.com
Date:     2009-08-27T22:59:23.259654Z

Log Message:
-----------
Border checkin

The Border class provides a container class that can be styled with a border and a background fill or image. It has many of the same styles as HaloBorder and is used in a similar way to the Halo container classes such as Box and Canvas. Examples of styles that are supported are borderWeight, borderColor, backgroundColor, backgroundImage, cornerRadius and dropShadowVisible. The class also supports directly setting a fill or stroke instance.

Border consists of a component class and a skin class called BorderSkin. Border declares the available styles and the backgroundFill and borderStroke properties. It serves as a proxy for the styles and properties in BorderSkin. BorderSkin draws the border and background using these styles and properties. The Border class is not meant to be skinned by a different skin class. All of the style drawing logic is held in the BorderSkin class.

QE notes: None
Doc notes: ASDoc comments need review
Bugs: N/A
Reviewer: Glenn
Tests run: Added Border to checkintests
Is noteworthy for integration: Yes. Border is a new container.

Modified Paths:
--------------
<path kind="file" action="A">/flex/sdk/trunk/frameworks/tests/basicTests/spark/views/BorderTests.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/SparkClasses.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/spark-manifest.xml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Border.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/basicTests/BasicTests.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/defaults.css</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/BorderSkin.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/tests/basicTests/spark/scripts/BorderTestScript.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/basicTests/BasicTests-config.xml</path>

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

--- frameworks/projects/spark/src/SparkClasses.as
+++ frameworks/projects/spark/src/SparkClasses.as
@@ -25,6 +25,7 @@
  */
 import spark.core.SpriteVisualElement; SpriteVisualElement;
 import spark.skins.spark.ApplicationSkin; ApplicationSkin;
+import spark.skins.spark.BorderSkin; BorderSkin;
 import spark.skins.spark.ButtonSkin; ButtonSkin;
 import spark.skins.spark.DefaultButtonSkin; DefaultButtonSkin;
 import spark.skins.spark.ButtonBarSkin; ButtonBarSkin;


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

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

--- frameworks/projects/charts/src/mx/charts/chartClasses/ChartState.as
+++ frameworks/projects/charts/src/mx/charts/chartClasses/ChartState.as
@@ -0,0 +1,89 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.charts.chartClasses
+{
+
+/**
+ *  Describes the current state of a chart.
+ *  Series implementations can examine the Chart.state value
+ *  to determine whether the chart is showing or hiding data,
+ *	and how to render in response.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public final class ChartState
+{
+	include "../../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Class constants
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  No state. The chart is simply showing its data.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public static const NONE:uint = 0;
+
+	/**
+	 *  The display of data has changed in the chart,
+	 *  and it is about to begin a transition to hide the current data.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public static const PREPARING_TO_HIDE_DATA:uint = 1;
+
+	/**
+	 *  The chart is currently running transitions to hide the old chart data.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public static const HIDING_DATA:uint = 2;
+
+	/**
+	 *  The chart has finished any transitions to hide the old data,
+	 *  and is preparing to run transitions to display the new data
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public static const PREPARING_TO_SHOW_DATA:uint = 3;
+
+	/**
+	 *  The chart is currently running transitions to show the new chart data.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public static const SHOWING_DATA:uint = 4;
+}
+
+}


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 3057
Author:   jimurphy@adobe.com
Date:     2008-09-02T15:18:38.819662Z

Log Message:
-----------
Merged 3.0.x revisions [2966,2969,2995,3004,3018-3019,3023,3029-3030,3046,3049,3052] -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileListItemRenderer.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/ModalWindowRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Menu.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/dragClasses/DragProxy.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ColorPicker.as</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/InterDragManagerEvent.as" copyfrom-rev="3052" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/InterDragManagerEvent.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/PopUpRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManagerGlobals.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SWFBridgeEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/EventProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ISystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/flex/tools/dependencychecker/FrameworkSwcDependencyRules.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/sliderClasses/SliderThumb.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/treeClasses/TreeItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/DividedBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/DragManagerImpl.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SizeRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridHeader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/InterManagerRequest.as" copyfrom-rev="3052" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/InterManagerRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/FocusRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/wsdl/WSDL.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/PopUpButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/scrollClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/dividedBoxClasses/BoxDivider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SandboxRootDragEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/SandboxMouseEvent.as" copyfrom-rev="3052" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SandboxMouseEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SandboxRootRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/EventUtil.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SandboxRootMouseEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ScrollControlBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/sliderClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SWFBridgeRequest.as</path>

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

--- frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as
+++ frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as
@@ -156,7 +156,7 @@
                 SecurityUtil.hasMutualTrustBetweenParentAndChild(ISWFBridgeProvider(_systemManager));

 			var bridgeEvent:SWFBridgeEvent = new SWFBridgeEvent(
-                SWFBridgeEvent.NOTIFY_WINDOW_ACTIVATED,
+                SWFBridgeEvent.BRIDGE_WINDOW_ACTIVATE,
                 false, false,
 				mutualTrust ? this : NameUtil.displayObjectToString(this));

@@ -184,7 +184,7 @@
                 SecurityUtil.hasMutualTrustBetweenParentAndChild(ISWFBridgeProvider(_systemManager));

             var bridgeEvent:SWFBridgeEvent = new SWFBridgeEvent(
-                SWFBridgeEvent.NOTIFY_WINDOW_DEACTIVATED,
+                SWFBridgeEvent.BRIDGE_WINDOW_DEACTIVATE,
 				false, false,
 				mutualTrust ? this : NameUtil.displayObjectToString(this));


FLEX-33604 Stop tooltips from showing before object is visible.

--- frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl.as
+++ frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl.as
@@ -33,11 +33,13 @@
 import mx.controls.ToolTip;
 import mx.core.FlexGlobals;
 import mx.core.FlexVersion;
+import mx.core.IFlexDisplayObject;
 import mx.core.IFlexModule;
 import mx.core.IInvalidating;
 import mx.core.ILayoutDirectionElement;
 import mx.core.IToolTip;
 import mx.core.IUIComponent;
+import mx.core.IVisualElement;
 import mx.core.LayoutDirection;
 import mx.core.mx_internal;
 import mx.effects.EffectManager;
@@ -702,6 +704,12 @@

         if (target is ILayoutManagerClient && !ILayoutManagerClient(target).initialized)
             return false;
+
+		if (target is IVisualElement && !IVisualElement(target).visible)
+			return false;
+
+		if (target is IFlexDisplayObject && !IFlexDisplayObject(target).visible)
+			return false;

     	return target.hitTestPoint(target.stage.mouseX,
     							   target.stage.mouseY, true);


check just for iOS

check just for iOS

--- actionscript/src/com/freshplanet/ane/AirCapabilities/AirCapabilities.as
+++ actionscript/src/com/freshplanet/ane/AirCapabilities/AirCapabilities.as
@@ -375,7 +375,7 @@

 		public function get iOSAppOnMac():Boolean
 		{
-			if(Capabilities.os.toLowerCase().indexOf("mac os") < 0 && Capabilities.manufacturer.indexOf("iOS") < 0)
+			if(Capabilities.manufacturer.indexOf("iOS") < 0)
 				return false;

 			return _extContext.call("iOSAppOnMac") as Boolean;


fix bug when selectedIndex == -1

fix bug when selectedIndex == -1

--- frameworks/as/src/org/apache/flex/html/staticControls/beads/ListBead.as
+++ frameworks/as/src/org/apache/flex/html/staticControls/beads/ListBead.as
@@ -94,8 +94,11 @@
 				var ir:IItemRenderer = dataGroup.getItemRendererForIndex(lastSelectedIndex) as IItemRenderer;
                 ir.selected = false;
 			}
-            ir = dataGroup.getItemRendererForIndex(listModel.selectedIndex);
-            ir.selected = true;
+			if (listModel.selectedIndex != -1)
+			{
+	            ir = dataGroup.getItemRendererForIndex(listModel.selectedIndex);
+	            ir.selected = true;
+			}
             lastSelectedIndex = listModel.selectedIndex;
 		}


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

 package spark.skins.mobile
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 5067
Author:   smgilson@adobe.com
Date:     2009-02-25T16:21:22.849704Z

Log Message:
-----------
In preparation for adding ASDoc version tags for Flex, remove old tags from AIR files

QE Notes: None
Doc Notes: None
Bugs: -

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FlexNativeMenuEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/FlexHTMLLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemEnumerationMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowMinimizeButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemHistoryButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowRestoreButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowMaximizeButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/StatusBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemTree.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/HTML.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/IWindow.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/utils/DirectoryEnumeration.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/airframework/src/mx/controls/FileSystemSizeDisplayMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FlexNativeWindowBoundsEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/utils/DirectoryEnumerationMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/AIREvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowBackground.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/windowClasses/TitleBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/windowClasses/StatusBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FileEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/WindowExistenceEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemDataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowCloseButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/ApplicationTitleBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FlexNativeMenu.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.as</path>

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

--- frameworks/projects/airframework/src/mx/skins/halo/WindowMaximizeButtonSkin.as
+++ frameworks/projects/airframework/src/mx/skins/halo/WindowMaximizeButtonSkin.as
@@ -22,31 +22,30 @@
  *  The skin for the maximize button in the TitleBar
  *  of a WindowedApplication or Window.
  *
- *  @playerversion AIR 1.1
  */
 public class WindowMaximizeButtonSkin extends UIComponent
 {
     include "../../core/Version.as";

-	//--------------------------------------------------------------------------
-	//
-	//  Class assets
-	//
-	//--------------------------------------------------------------------------
-
-	[Embed(source="../../../../assets/mac_max_up.png")]
+    //--------------------------------------------------------------------------
+    //
+    //  Class assets
+    //
+    //--------------------------------------------------------------------------
+
+    [Embed(source="../../../../assets/mac_max_up.png")]
     private static var macMaxUpSkin:Class;

     [Embed(source="../../../../assets/win_max_up.png")]
     private static var winMaxUpSkin:Class;
-
-	[Embed(source="../../../../assets/mac_max_over.png")]
-	private static var macMaxOverSkin:Class;
-
-	[Embed(source="../../../../assets/win_max_over.png")]
-	private static var winMaxOverSkin:Class;
-
-  	[Embed(source="../../../../assets/mac_max_down.png")]
+
+    [Embed(source="../../../../assets/mac_max_over.png")]
+    private static var macMaxOverSkin:Class;
+
+    [Embed(source="../../../../assets/win_max_over.png")]
+    private static var winMaxOverSkin:Class;
+
+    [Embed(source="../../../../assets/mac_max_down.png")]
     private static var macMaxDownSkin:Class;

     [Embed(source="../../../../assets/win_max_down.png")]
@@ -61,147 +60,147 @@
     [Embed(source="../../../../assets/win_restore_up.png")]
     private static var winRestoreUpSkin:Class;

-   	[Embed(source="../../../../assets/win_restore_down.png")]
+    [Embed(source="../../../../assets/win_restore_down.png")]
     private static var winRestoreDownSkin:Class;

     [Embed(source="../../../../assets/win_restore_over.png")]
     private static var winRestoreOverSkin:Class;
-
-	//--------------------------------------------------------------------------
-	//
-	//  Constructor
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  Constructor.
-	 */
-	public function WindowMaximizeButtonSkin()
-	{
-		super();
-
-		isMac = Capabilities.os.substring(0,3) == "Mac";
-	}
-
-	//--------------------------------------------------------------------------
-	//
-	//  Variables
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  @private
-	 */
-	private var isMac:Boolean;
-
-	/**
-	 *  @private
-	 */
-	private var skinImage:Image;
-
-	//--------------------------------------------------------------------------
-	//
-	//  Overridden properties: UIComponent
-	//
-	//--------------------------------------------------------------------------
-
-	//----------------------------------
-	//  measuredHeight
-	//----------------------------------
-
-	/**
-	 *  @private
-	 */
-	override public function get measuredHeight():Number
-	{
-		if (skinImage.measuredHeight)
-			return skinImage.measuredHeight;
-		else
-			return 13;
-	}
-
-	//----------------------------------
-	//  measuredWidth
-	//----------------------------------
-
-	/**
-	 *  @private
-	 */
-	override public function get measuredWidth():Number
-	{
-		if (skinImage.measuredWidth)
-			return skinImage.measuredWidth;
-		else
-			return 12;
-	}
-
-	//--------------------------------------------------------------------------
-	//
-	//  Overridden methods: UIComponent
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  @private
-	 */
-	override protected function createChildren():void
-	{
-		skinImage = new Image();
-		addChild(skinImage);
-
-		initializeStates();
-
-		skinImage.setActualSize(12, 13);
-		skinImage.move(0, 0);
-	}
-
-	//--------------------------------------------------------------------------
-	//
-	//  Methods
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  @private
-	 */
-	private function initializeStates():void
-	{
-		var upState:State = new State();
-		upState.name = "up";
-		var upProp:SetProperty = new SetProperty();
-		upProp.name = "source";
-		upProp.target = skinImage;
-		upProp.value = isMac ? macMaxUpSkin : winMaxUpSkin;
-		upState.overrides.push(upProp);
-		states.push(upState);
-
-		var downState:State = new State();
-		downState.name = "down";
-		var downProp:SetProperty = new SetProperty();
-		downProp.name = "source";
-		downProp.target = skinImage;
-		downProp.value = isMac ? macMaxDownSkin : winMaxDownSkin;
-		downState.overrides.push(downProp);
-		states.push(downState);
-
-		var overState:State = new State();
-		overState.name = "over";
-		var overProp:SetProperty = new SetProperty();
-		overProp.name = "source";
-		overProp.target = skinImage;
-		overProp.value = isMac ? macMaxOverSkin : winMaxOverSkin;
-		overState.overrides.push(overProp);
-		states.push(overState);
-
-		var disabledState:State = new State();
-		disabledState.name = "disabled";
-		var disabledProp:SetProperty = new SetProperty();
-		disabledProp.name = "source";
-		disabledProp.target = skinImage;
-		disabledProp.value = isMac ? macMaxDisabledSkin : winMaxDisabledSkin;
-		disabledState.overrides.push(disabledProp);
-		states.push(disabledState);
-	}
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     */
+    public function WindowMaximizeButtonSkin()
+    {
+        super();
+
+        isMac = Capabilities.os.substring(0,3) == "Mac";
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Variables
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    private var isMac:Boolean;
+
+    /**
+     *  @private
+     */
+    private var skinImage:Image;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden properties: UIComponent
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  measuredHeight
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    override public function get measuredHeight():Number
+    {
+        if (skinImage.measuredHeight)
+            return skinImage.measuredHeight;
+        else
+            return 13;
+    }
+
+    //----------------------------------
+    //  measuredWidth
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    override public function get measuredWidth():Number
+    {
+        if (skinImage.measuredWidth)
+            return skinImage.measuredWidth;
+        else
+            return 12;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden methods: UIComponent
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    override protected function createChildren():void
+    {
+        skinImage = new Image();
+        addChild(skinImage);
+
+        initializeStates();
+
+        skinImage.setActualSize(12, 13);
+        skinImage.move(0, 0);
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    private function initializeStates():void
+    {
+        var upState:State = new State();
+        upState.name = "up";
+        var upProp:SetProperty = new SetProperty();
+        upProp.name = "source";
+        upProp.target = skinImage;
+        upProp.value = isMac ? macMaxUpSkin : winMaxUpSkin;
+        upState.overrides.push(upProp);
+        states.push(upState);
+
+        var downState:State = new State();
+        downState.name = "down";
+        var downProp:SetProperty = new SetProperty();
+        downProp.name = "source";
+        downProp.target = skinImage;
+        downProp.value = isMac ? macMaxDownSkin : winMaxDownSkin;
+        downState.overrides.push(downProp);
+        states.push(downState);
+
+        var overState:State = new State();
+        overState.name = "over";
+        var overProp:SetProperty = new SetProperty();
+        overProp.name = "source";
+        overProp.target = skinImage;
+        overProp.value = isMac ? macMaxOverSkin : winMaxOverSkin;
+        overState.overrides.push(overProp);
+        states.push(overState);
+
+        var disabledState:State = new State();
+        disabledState.name = "disabled";
+        var disabledProp:SetProperty = new SetProperty();
+        disabledProp.name = "source";
+        disabledProp.target = skinImage;
+        disabledProp.value = isMac ? macMaxDisabledSkin : winMaxDisabledSkin;
+        disabledState.overrides.push(disabledProp);
+        states.push(disabledState);
+    }
 }

 }


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 12864
Author:   mhorn@adobe.com
Date:     2009-12-11T21:35:24.243046Z

Log Message:
-----------
asdoc minor fixes

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/SpriteAsset.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/MovieClipAsset.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/BitmapAsset.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/TabNavigator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>

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

--- frameworks/projects/mx/src/mx/controls/Button.as
+++ frameworks/projects/mx/src/mx/controls/Button.as
@@ -554,7 +554,7 @@
  *  embed the bold typeface; for example:

  *
  *

- *  <mx:style>
+ *  <fx:style>
  *    @font-face {
  *      src:url("../MyFont-Bold.ttf");
  *      fontFamily: myFont;
@@ -564,7 +564,7 @@
  *      fontFamily: myFont;
  *      fontWeight: bold;
  *    }
- *  </mx:style>
+ *  </fx:style>
  *  ...
  *  <mx:Button ... styleName="myBoldStyle"/>
  *


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

--- frameworks/projects/framework/src/mx/graphics/RadialGradient.as
+++ frameworks/projects/framework/src/mx/graphics/RadialGradient.as
@@ -0,0 +1,274 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2004-2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.graphics
+{
+
+import flash.display.GradientType;
+import flash.display.Graphics;
+import flash.geom.Matrix;
+import flash.geom.Rectangle;
+
+/**
+ *  The RadialGradient class lets you specify a gradual color transition
+ *  in the fill color.
+ *  A radial gradient defines a fill pattern
+ *  that radiates out from the center of a graphical element.
+ *  You add a series of GradientEntry objects
+ *  to the RadialGradient object's entries Array
+ *  to define the colors that make up the gradient fill.
+ *
+ *
In MXML, you define a RadialGradient by adding a series
+ *  of GradientEntry objects, as the following example shows:
+ *

+ *  <mx:fill>
+ *      <mx:RadialGradient>
+ *          <mx:entries>
+ *              <mx:GradientEntry color="0xC5C551" ratio="0.00" alpha="0.5"/>
+ *              <mx:GradientEntry color="0xFEFE24" ratio="0.33" alpha="0.5"/>
+ *              <mx:GradientEntry color="0xECEC21" ratio="0.66" alpha="0.5"/>
+ *          </mx:entries>
+ *      </mx:RadialGradient>
+ *  </mx:fill>
+ *

+ *

+ *
+ *
You can also define a RadialGradient as a fill for any graphic element
+ *  in ActionScript, as the following example shows:
+ *

+ *
+ *  <?xml version="1.0"?>
+ *  <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="init()">
+ *      <mx:Script>
+ *      import flash.display.Graphics;
+ *      import flash.geom.Rectangle;
+ *      import mx.graphics.GradientEntry;
+ *      import mx.graphics.RadialGradient;
+ *
+ *      private function init():void
+ *      {
+ *          var w:Number = 200;
+ *          var h:Number = 200;
+ *
+ *          var s:Sprite = new Sprite();
+ *          // Add the new Sprite to the display list.
+ *          rawChildren.addChild(s);
+ *
+ *          var g:Graphics = s.graphics;
+ *          g.lineStyle(1, 0x33CCFF, 1.0);
+ *
+ *          var fill:RadialGradient = new RadialGradient();
+ *
+ *          var g1:GradientEntry = new GradientEntry(0xFFCC66, 0.00, 0.5);
+ *          var g2:GradientEntry = new GradientEntry(0x000000, 0.33, 0.5);
+ *          var g3:GradientEntry = new GradientEntry(0x99FF33, 0.66, 0.5);
+ *
+ *          fill.entries = [ g1, g2, g3 ];
+ *
+ *          // Set focal point to upper left corner.
+ *          fill.angle = 45;
+ *          fill.focalPointRatio = -0.8;
+ *
+ *          // Draw a box and fill it with the RadialGradient.
+ *          g.moveTo(0, 0);
+ *          fill.begin(g,new Rectangle(0, 0, w, h));
+ *          g.lineTo(w, 0);
+ *          g.lineTo(w, h);
+ *          g.lineTo(0, h);
+ *          g.lineTo(0, 0);
+ *          fill.end(g);
+ *      }
+ *      </mx:Script>
+ *  </mx:Application>
+ *

+ *

+ *
+ *  @mxml
+ *
+ *
The <mx:RadialGradient> tag
+ *  inherits all the tag attributes of its superclass,
+ *  and adds the following tag attributes:

+ *
+ *

+ *  <mx:RadialGradient
+ *    Properties
+ *    angle="0"
+ *    focalPointRatio="0"
+ *  />
+ *

+ *
+ *  @see mx.graphics.GradientEntry
+ *  @see mx.graphics.LinearGradient
+ *  @see mx.graphics.IFill
+ */
+public class RadialGradient extends GradientBase implements IFill
+{
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     */
+    public function RadialGradient()
+    {
+        super();
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Variables
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    private var matrix:Matrix = new Matrix();
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  angle
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the angle property.
+     */
+    private var _rotation:Number = 0.0;
+
+    [Bindable("propertyChange")]
+    [Inspectable(category="General")]
+
+    /**
+     *  Sets the location of the start of the radial fill.
+     *
+     *
Use the focalPointRatio property in conjunction
+     *  with this property to adjust the location and distance
+     *  from the center point of the bounding Rectangle to the focal point.

+     *
+     *
Valid values are from 0.0 to 360.0.

+     *
+     *  @default 0
+     */
+    public function get angle():Number
+    {
+        return _rotation / Math.PI * 180;
+    }
+
+    /**
+     *  @private
+     */
+    public function set angle(value:Number):void
+    {
+        var oldValue:Number = _rotation;
+        _rotation = value / 180 * Math.PI;
+
+        mx_internal::dispatchGradientChangedEvent("angle", oldValue, _rotation);
+    }
+
+    //----------------------------------
+    //  focalPointRatio
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the focalPointRatio property.
+     */
+    private var _focalPointRatio:Number = 0.0;
+
+    [Bindable("propertyChange")]
+    [Inspectable(category="General")]
+
+    /**
+     *  Sets the location of the start of the radial fill.
+     *
+     *
Valid values are from -1.0 to 1.0.
+     *  A value of -1.0 sets the focal point
+     *  (or, start of the gradient fill)
+     *  on the left of the bounding Rectangle.
+     *  A value of 1.0 sets the focal point
+     *  on the right of the bounding Rectangle.
+     *
+     *
If you use this property in conjunction
+     *  with the angle property,
+     *  this value specifies the degree of distance
+     *  from the center that the focal point occurs.
+     *  For example, with an angle of 45
+     *  and focalPointRatio of 0.25,
+     *  the focal point is slightly lower and to the right of center.
+     *  If you set focalPointRatio to 0,
+     *  the focal point is in the middle of the bounding Rectangle.

+     *  If you set focalPointRatio to 1,
+     *  the focal point is all the way to the bottom right corner
+     *  of the bounding Rectangle.

+     *
+     *  @default 0.0
+     */
+    public function get focalPointRatio():Number
+    {
+        return _focalPointRatio;
+    }
+
+    /**
+     *  @private
+     */
+    public function set focalPointRatio(value:Number):void
+    {
+        var oldValue:Number = _focalPointRatio;
+        if (value != oldValue)
+        {
+            _focalPointRatio = value;
+
+            mx_internal::dispatchGradientChangedEvent("focalPointRatio",
+                                                      oldValue, value);
+        }
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @inheritDoc
+     */
+    public function begin(target:Graphics, rc:Rectangle):void
+    {
+        matrix.createGradientBox(rc.width, rc.height, _rotation,
+                                 rc.left, rc.top);
+
+        target.beginGradientFill(GradientType.RADIAL, mx_internal::colors,
+                                 mx_internal::alphas, mx_internal::ratios,
+                                 matrix, null, null, focalPointRatio);
+    }
+
+    /**
+     *  @inheritDoc
+     */
+    public function end(target:Graphics):void
+    {
+        target.endFill();
+    }
+
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 5762
Author:   jimurphy@adobe.com
Date:     2009-03-30T19:25:21.583080Z

Log Message:
-----------
airframework update:
mx.core.FxWindowApplication -> spark.components.windowClasses.WindowedApplication
should have been:
mx.core.FxWindowApplication -> spark.components.WindowedApplication

add back classes to spark-manifest.xml that got nixed during the manifest merge and update related effects classes that were not being compiled because of this omission.

Modified Paths:
--------------
<path kind="dir" action="M">/flex/sdk/trunk/frameworks</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformMove.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/windowClasses/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/default/WindowedApplicationSkin.mxml</path>
<path kind="dir" action="M">/flex/sdk/trunk/frameworks/projects/flex4</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformScale3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/effectClasses/AnimateTransformInstance.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/airframework/spark-air-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/AIRFrameworkClasses.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/spark-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformRotate3D.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/windowClasses/WindowedApplication.as" copyfrom-rev="5757" action="A">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformScale.as</path>
<path kind="dir" action="M">/flex/sdk/trunk/frameworks/projects/framework</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformMove3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformRotate.as</path>

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

--- frameworks/projects/spark/src/spark/effects/AnimateTransform.as
+++ frameworks/projects/spark/src/spark/effects/AnimateTransform.as
@@ -90,7 +90,7 @@
  */
 public class AnimateTransform extends Animate
 {
-    include "../../spark.core.Version.as";
+    include "../core/Version.as";

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


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

 package
 {


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

 package spark.components.gridClasses
 {


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

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


- bugfix: DocumentView was a little too eager in assigning the focused element, even if it was null. In cases where the newly focused element resides in another security sandbox, this lead to the focus being set to null. Now, we just set our internal focus to null and let the Flashplayer deal with the real focus itself in these cases.

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

--- src/reprise/ui/DocumentView.as
+++ src/reprise/ui/DocumentView.as
@@ -253,12 +253,13 @@
 				m_focus.setFocus(false, method);
 			}
 			m_focus = element;
-			stage.focus = element;
 			if (element)
 			{
+				stage.focus = element;
 				element.setFocus(true, method);
-			}
-			return true;
+				return true;
+			}
+			return false;
 		}


Transferred from the Adobe Open Source Subversion Repository

Revision: 7743
Author:   clucier@adobe.com
Date:     2009-06-11T13:53:10.203664Z

Log Message:
-----------
Moving away from using namespace qualifiers in most cases in the SDK.  We've run into a few cases now where the use of qualifiers in code that is called excessively can slow things down.
Bugs: SDK-21337
Reviewer: Ryan, Paul
QE Notes: None
Tests: Ran several random Mustella test groups, checkintests.

Modified Paths:
--------------
106 paths were modified

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

--- frameworks/projects/framework/src/mx/managers/SystemChildrenList.as
+++ frameworks/projects/framework/src/mx/managers/SystemChildrenList.as
@@ -16,6 +16,8 @@
 import flash.geom.Point;
 import mx.core.IChildList;
 import mx.core.mx_internal;
+
+use namespace mx_internal;

 [ExcludeClass]

@@ -122,7 +124,7 @@
 	 */
 	public function addChild(child:DisplayObject):DisplayObject
 	{
-		owner.mx_internal::rawChildren_addChildAt(
+		owner.rawChildren_addChildAt(
 			child, owner[upperBoundReference]);
 		owner[upperBoundReference]++;
 		return child;
@@ -138,7 +140,7 @@
 	 */
 	public function addChildAt(child:DisplayObject, index:int):DisplayObject
 	{
-		owner.mx_internal::rawChildren_addChildAt(
+		owner.rawChildren_addChildAt(
 			child, owner[lowerBoundReference] + index);
 		owner[upperBoundReference]++;
 		return child;
@@ -154,11 +156,11 @@
 	 */
 	public function removeChild(child:DisplayObject):DisplayObject
 	{
-		var index:int = owner.mx_internal::rawChildren_getChildIndex(child);
+		var index:int = owner.rawChildren_getChildIndex(child);
 		if (owner[lowerBoundReference] <= index &&
 			index < owner[upperBoundReference])
 		{
-			owner.mx_internal::rawChildren_removeChild(child);
+			owner.rawChildren_removeChild(child);
 			owner[upperBoundReference]--;
 		}
 		return child;
@@ -175,7 +177,7 @@
 	public function removeChildAt(index:int):DisplayObject
 	{
 		var child:DisplayObject =
-			owner.mx_internal::rawChildren_removeChildAt(
+			owner.rawChildren_removeChildAt(
 				index + owner[lowerBoundReference]);
 		owner[upperBoundReference]--;
 		return child;
@@ -192,7 +194,7 @@
   	public function getChildAt(index:int):DisplayObject
   	{
 		var retval:DisplayObject =
-			owner.mx_internal::rawChildren_getChildAt(
+			owner.rawChildren_getChildAt(
 				owner[lowerBoundReference] + index);
 		return retval;
   	}
@@ -207,7 +209,7 @@
 	 */
   	public function getChildByName(name:String):DisplayObject
   	{
-		return owner.mx_internal::rawChildren_getChildByName(name);
+		return owner.rawChildren_getChildByName(name);
   	}

 	/**
@@ -220,7 +222,7 @@
 	 */
   	public function getChildIndex(child:DisplayObject):int
   	{
-		var retval:int = owner.mx_internal::rawChildren_getChildIndex(child);
+		var retval:int = owner.rawChildren_getChildIndex(child);
 		retval -= owner[lowerBoundReference];
 		return retval;
 	}
@@ -235,7 +237,7 @@
 	 */
 	public function setChildIndex(child:DisplayObject, newIndex:int):void
 	{
-		owner.mx_internal::rawChildren_setChildIndex(
+		owner.rawChildren_setChildIndex(
 			child, owner[lowerBoundReference] + newIndex);
 	}

@@ -249,7 +251,7 @@
 	 */
 	public function getObjectsUnderPoint(point:Point):Array
 	{
-		return owner.mx_internal::rawChildren_getObjectsUnderPoint(point);
+		return owner.rawChildren_getObjectsUnderPoint(point);
 	}

 	/**
@@ -262,13 +264,13 @@
 	 */
 	public function contains(child:DisplayObject):Boolean
 	{
-		if (child != owner && owner.mx_internal::rawChildren_contains(child))
+		if (child != owner && owner.rawChildren_contains(child))
 		{
 			while (child.parent != owner)
 			{
 				child = child.parent;
 			}
-			var childIndex:int = owner.mx_internal::rawChildren_getChildIndex(child);
+			var childIndex:int = owner.rawChildren_getChildIndex(child);
 			if (childIndex >= owner[lowerBoundReference] &&
 				childIndex < owner[upperBoundReference])
 			{


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

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

 package
 {