Transferred from the Adobe Open Source Subversion Repository

Revision: 8031
Author:   egeorgie@adobe.com
Date:     2009-06-20T01:10:03.288554Z

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

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

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

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

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

-    // TODO: Make this a style property?
+    // FIXME (gruehle): Make this a style property?
     private const FOCUS_THICKNESS:int = 2;

     //--------------------------------------------------------------------------
@@ -152,7 +152,7 @@

         // Temporary solution for focus drawing on CheckBox and RadioButton components.
         // Hide the label before drawing the focus.
-        // TODO: Figure out a better solution.
+        // FIXME (gruehle): Figure out a better solution.
         var hidLabelElement:Boolean = false;
         if ((weakIsCheck(focusObject, "spark.components::CheckBox") ||
              weakIsCheck(focusObject, "spark.components::RadioButton"))
@@ -175,7 +175,7 @@
             Object(focusObject).labelDisplay.displayObject.visible = true;

         // Special case for Scroller - fill the entire rect.
-        // TODO: Figure out a better solution.
+        // FIXME (gruehle): Figure out a better solution.
         if (weakIsCheck(focusObject, "spark.components::Scroller"))
         {
             rect.x = rect.y = FOCUS_THICKNESS;


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

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


fix client code to send partnerId from client config by default

--- as3FlexClient/src/com/kaltura/delegates/WebDelegateBase.as
+++ as3FlexClient/src/com/kaltura/delegates/WebDelegateBase.as
@@ -169,7 +169,7 @@

 		protected function formatRequest():void {
 			//The configuration is stronger then the args
-			if (_config.partnerId != null && _call.args["partnerId"] == -1)
+			if (_config.partnerId != null && (!_call.args["partnerId"] || _call.args["partnerId"]==-1))
 				_call.setRequestArgument("partnerId", _config.partnerId);

 			if (_config.ks != null)


Transferred from the Adobe Open Source Subversion Repository

Revision: 19635
Author:   aharui@adobe.com
Date:     2011-01-07T00:25:18.039632Z

Log Message:
-----------
revert the layout changes from svn 18635.  Management feels that there isn't enough time to thoroughly test the changes.

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/TileLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/layoutClasses/PriorityQueue.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ScrollerLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/core/Application.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewNavigatorApplicationSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/SkinnableContainerSkin.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="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/RichEditableText.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/primitives/BitmapImage.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/BasicLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/IconItemRenderer.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/mobiletheme/src/spark/skins/mobile/ViewNavigatorSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/PopUpAnchor.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/supportClasses/LinearLayoutVector.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/events/FlexEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/airspark/src/spark/components/Window.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/IContainerInvalidating.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="D">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/ILayoutManagerContainerClient.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGrid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/VerticalLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TabbedViewNavigatorApplicationSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/IStyleManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/ILayoutElement.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/gridClasses/GridLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/TextFieldGridItemRendererInclude.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/core/Container.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/LayoutManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Application.as</path>

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

--- frameworks/projects/framework/src/mx/controls/SWFLoader.as
+++ frameworks/projects/framework/src/mx/controls/SWFLoader.as
@@ -497,11 +497,6 @@
      */
     private var unloadAndStopGC:Boolean;

-    /**
-     *  @private
-     */
-    private var dispatchedSizePreliminary:Boolean;
-
     //--------------------------------------------------------------------------
     //
     //  Properties
@@ -1405,15 +1400,6 @@

             contentHolder.scaleX = oldScaleX;
             contentHolder.scaleY = oldScaleY;
-
-            if (FlexVersion.compatibilityVersion >= FlexVersion.VERSION_4_5)
-            {
-                if (dispatchedSizePreliminary)
-                {
-                    dispatchEvent(new FlexEvent(FlexEvent.MEASURED_SIZE_FINAL, true, true));
-                    dispatchedSizePreliminary = false;
-                }
-            }
         }
         else
         {
@@ -1427,11 +1413,6 @@
                 measuredWidth = 0;
                 measuredHeight = 0;
             }
-            if (FlexVersion.compatibilityVersion >= FlexVersion.VERSION_4_5)
-            {
-                dispatchEvent(new FlexEvent(FlexEvent.MEASURED_SIZE_PRELIMINARY, true, true));
-                dispatchedSizePreliminary = true;
-            }
         }
     }

@@ -1466,24 +1447,8 @@
                 doSmoothBitmapContent();
                 smoothBitmapContentChanged = false;
             }
-            if (FlexVersion.compatibilityVersion >= FlexVersion.VERSION_4_5)
-            {
-                if (dispatchedSizePreliminary)
-                {
-                    dispatchEvent(new FlexEvent(FlexEvent.MEASURED_SIZE_FINAL, true, true));
-                    dispatchedSizePreliminary = false;
-                }
-            }
-        }
-        else
-        {
-            if (FlexVersion.compatibilityVersion >= FlexVersion.VERSION_4_5)
-            {
-                dispatchEvent(new FlexEvent(FlexEvent.MEASURED_SIZE_PRELIMINARY, true, true));
-                dispatchedSizePreliminary = true;
-            }
-        }
-
+        }
+
         if (brokenImage && !brokenImageBorder)
         {
             var skinClass:Class = getStyle("brokenImageBorderSkin");


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

--- frameworks/projects/framework/src/mx/utils/GraphicsUtil.as
+++ frameworks/projects/framework/src/mx/utils/GraphicsUtil.as
@@ -0,0 +1,121 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2005-2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.utils
+{
+
+import flash.display.Graphics;
+
+/**
+ *  The Graphics class is an all-static class with utility methods
+ *  related to the Graphics class.
+ *  You do not create instances of GraphicsUtil;
+ *  instead you simply call methods such as the
+ *  GraphicsUtil.drawRoundRectComplex() method.
+ */
+public class GraphicsUtil
+{
+	include "../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Class methods
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 * Draws a rounded rectangle using the size of a radius to draw the rounded corners.
+	 * You must set the line style, fill, or both
+	 * on the Graphics object before
+	 * you call the drawRoundRectComplex() method
+	 * by calling the linestyle(),
+	 * lineGradientStyle(), beginFill(),
+	 * beginGradientFill(), or
+	 * beginBitmapFill() method.
+	 *
+     * @param graphics The Graphics object that draws the rounded rectangle.
+     *
+     * @param x The horizontal position relative to the
+     * registration point of the parent display object, in pixels.
+     *
+     * @param y The vertical position relative to the
+     * registration point of the parent display object, in pixels.
+     *
+     * @param width The width of the round rectangle, in pixels.
+     *
+     * @param height The height of the round rectangle, in pixels.
+     *
+     * @param topLeftRadius The radius of the upper-left corner, in pixels.
+     *
+     * @param toRightRadius The radius of the upper-right corner, in pixels.
+     *
+     * @param bottomLeftRadius The radius of the bottom-left corner, in pixels.
+     *
+     * @param bottomRightRadius The radius of the bottom-right corner, in pixels.
+     *
+     */
+	public static function drawRoundRectComplex(graphics:Graphics, x:Number, y:Number,
+							  width:Number, height:Number,
+                              topLeftRadius:Number, topRightRadius:Number,
+                              bottomLeftRadius:Number, bottomRightRadius:Number):void
+	{
+		var xw:Number = x + width;
+		var yh:Number = y + height;
+
+		// Make sure none of the radius values are greater than w/h.
+		// These are all inlined to avoid function calling overhead
+		var minSize:Number = width < height ? width * 2 : height * 2;
+		topLeftRadius = topLeftRadius < minSize ? topLeftRadius : minSize;
+		topRightRadius = topRightRadius < minSize ? topRightRadius : minSize;
+		bottomLeftRadius = bottomLeftRadius < minSize ? bottomLeftRadius : minSize;
+		bottomRightRadius = bottomRightRadius < minSize ? bottomRightRadius : minSize;
+
+		// Math.sin and Math,tan values for optimal performance.
+		// Math.rad = Math.PI / 180 = 0.0174532925199433
+		// r * Math.sin(45 * Math.rad) =  (r * 0.707106781186547);
+		// r * Math.tan(22.5 * Math.rad) = (r * 0.414213562373095);
+		//
+		// We can save further cycles by precalculating
+		// 1.0 - 0.707106781186547 = 0.292893218813453 and
+		// 1.0 - 0.414213562373095 = 0.585786437626905
+
+		// bottom-right corner
+		var a:Number = bottomRightRadius * 0.292893218813453;		// radius - anchor pt;
+		var s:Number = bottomRightRadius * 0.585786437626905; 	// radius - control pt;
+		graphics.moveTo(xw, yh - bottomRightRadius);
+		graphics.curveTo(xw, yh - s, xw - a, yh - a);
+		graphics.curveTo(xw - s, yh, xw - bottomRightRadius, yh);
+
+		// bottom-left corner
+		a = bottomLeftRadius * 0.292893218813453;
+		s = bottomLeftRadius * 0.585786437626905;
+		graphics.lineTo(x + bottomLeftRadius, yh);
+		graphics.curveTo(x + s, yh, x + a, yh - a);
+		graphics.curveTo(x, yh - s, x, yh - bottomLeftRadius);
+
+		// top-left corner
+		a = topLeftRadius * 0.292893218813453;
+		s = topLeftRadius * 0.585786437626905;
+		graphics.lineTo(x, y + topLeftRadius);
+		graphics.curveTo(x, y + s, x + a, y + a);
+		graphics.curveTo(x + s, y, x + topLeftRadius, y);
+
+		// top-right corner
+		a = topRightRadius * 0.292893218813453;
+		s = topRightRadius * 0.585786437626905;
+		graphics.lineTo(xw - topRightRadius, y);
+		graphics.curveTo(xw - s, y, xw - a, y + a);
+		graphics.curveTo(xw, y + s, xw, y + topRightRadius);
+		graphics.lineTo(xw, yh - bottomRightRadius);
+	}
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 18066
Author:   klin@adobe.com
Date:     2010-10-07T17:07:52.957013Z

Log Message:
-----------
Fix ensureCellIsVisible() and arrow key navigation to take into account columns with column.visible=false. The ensureCellIsVisible() method now checks to see if either the specified column is column.visible=true or if no column is specified, if any of the columns are visible=true.

QE notes: No
Doc notes: No
Bugs: SDK-28106
Reviewer: Hans
Tests run: cyclone server
Is noteworthy for integration: No

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

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

--- frameworks/projects/spark/src/spark/components/DataGrid.as
+++ frameworks/projects/spark/src/spark/components/DataGrid.as
@@ -514,6 +514,7 @@
         if (!grid)
             return;

+        // FIXME (klin): what if alternatingRowColorsBackground is set to null?
         if ((getStyle("alternatingRowColors") as Array) && alternatingRowColorsBackground)
             grid.rowBackground = alternatingRowColorsBackground;
     }
@@ -3060,7 +3061,7 @@
                 if (isCellSelectionMode())
                 {
                     if (grid.caretColumnIndex > 0)
-                        caretColumnIndex--;
+                        caretColumnIndex = grid.getPreviousVisibleColumnIndex(caretColumnIndex);
                 }
                 break;
             }
@@ -3070,7 +3071,7 @@
                 if (isCellSelectionMode())
                 {
                     if (grid.caretColumnIndex + 1 < columnCount)
-                        caretColumnIndex++;
+                        caretColumnIndex = grid.getNextVisibleColumnIndex(caretColumnIndex);
                 }
                 break;
             }
@@ -3198,14 +3199,14 @@
             case NavigationUnit.HOME:
             {
                 caretRowIndex = 0;
-                caretColumnIndex = isCellSelectionMode() ? 0 : -1;
+                caretColumnIndex = isCellSelectionMode() ? grid.getNextVisibleColumnIndex(-1) : -1;
                 break;
             }

             case NavigationUnit.END:
             {
                 caretRowIndex = rowCount - 1;
-                caretColumnIndex = isCellSelectionMode() ? columnCount - 1 : -1;
+                caretColumnIndex = isCellSelectionMode() ? grid.getPreviousVisibleColumnIndex(columnCount) : -1;

                 // The heights of any rows that have not been rendered yet are
                 // estimated.  Force them to draw so the heights are accurate.


Transferred from the Adobe Open Source Subversion Repository

Revision: 13289
Author:   hmuller@adobe.com
Date:     2010-01-05T23:37:54.220562Z

Log Message:
-----------
Initial value of RichText.source is now "".

QE notes: should fix the recent raft of RichText Mustella failures
Doc notes:
Bugs:
Reviewer: Carol
Tests run:
Is noteworthy for integration: no

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

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

--- frameworks/projects/spark/src/spark/components/RichText.as
+++ frameworks/projects/spark/src/spark/components/RichText.as
@@ -407,7 +407,7 @@
 	 *  @private
 	 *  Source of text: one of "text", "textFlow" or "content".*
 	 */
-    private var source:String = "text";
+    private var source:String = "";

 	/**
      *  @private


Transferred from the Adobe Open Source Subversion Repository

Revision: 3665
Author:   hmuller@adobe.com
Date:     2008-10-15T20:42:18.087020Z

Log Message:
-----------
Fixed 17335, completed Scrollbar viewport property, fixed an FxRange::setValue() problem.

Added a special case for zero-height rows/columns to
Vertical,HorizontalLayout::updateDisplayList(),::inView()
to fix 17335.

Fixed FxRange: now FlexEvent.VALUE_COMMIT event handlers
will see the final constrained value, per
FxRange::nearestValidValue(), as they should.

Completed the ScrollBar viewport property implementation.   Now
all of the synchronization between scrollbars and a their viewport
is handled by the scrollbar.   Previously it was handled by both
FxScroller, ScrollerSkin, and the layout classes.

ScrollBar now tracks its viewport's actual size, content size, and
scroll positions.  The corresonding code and protected API has been
removed from FxScroller, notably:

  protected function vsb_valueCommitHandler(event:Event):void
  protected function hsb_valueCommitHandler(event:Event):void
  protected function viewportContentWidthChanged(event:PropertyChangeEvent):void
  protected function viewportContentHeightChanged(event:PropertyChangeEvent):void
  protected function viewportHorizontalScrollPositionChanged(event:PropertyChangeEvent):void
  protected function viewportVerticalScrollPositionChanged(event:PropertyChangeEvent):void

The protected methods for tracking the viewport have moved,
with slightly different names, to FxScrollBar:

  protected function viewportResizeHandler(event:ResizeEvent):void
  protected function viewportContentWidthChangeHandler(event:PropertyChangeEvent):void
  protected function viewportContentHeightChangeHandler(event:PropertyChangeEvent):void
  protected function viewportHorizontalScrollPositionChangeHandler(event:PropertyChangeEvent):void
  protected function viewportVerticalScrollPositionChangeHandler(event:PropertyChangeEvent):void

QE: I've made API changes
Doc: No
Checkintests: Pass
Reviewer: Ryan
Bugs:
    SDK-17335 - inView reports incorrectly when setting rowHeight to zero on a VerticalLayout

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxRange.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxScroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxScrollerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxVScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxHScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/VerticalLayout.as</path>

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

--- frameworks/projects/spark/src/spark/components/Scroller.as
+++ frameworks/projects/spark/src/spark/components/Scroller.as
@@ -265,90 +265,18 @@
     // Event Handlers
     //
     //--------------------------------------------------------------------------
-
-    /**
-     *  @private
-     *  Called when the vertical scrollbar value changes; updates
-     *  the viewport's verticalScrollPosition.
-     */
-    protected function vsb_valueCommitHandler(event:Event):void
-    {
-        if (viewport)
-            viewport.verticalScrollPosition = verticalScrollBar.value;
-    }
-
-    /**
-     *  @private
-     *  Called when the horizontal scrollbar value changes; updates
-     *  the viewport's horizontalScrollPosition.
-     */
-    protected function hsb_valueCommitHandler(event:Event):void
-    {
-        if (viewport)
-           viewport.horizontalScrollPosition = horizontalScrollBar.value;
-    }
+

     private function viewport_propertyChangeHandler(event:PropertyChangeEvent):void
     {
-        switch(event.property) {
-            case "contentWidth":
-                viewportContentWidthChanged(event);
-                break;
-
-            case "contentHeight":
-                viewportContentHeightChanged(event);
-                break;
-
-            case "horizontalScrollPosition":
-                viewportHorizontalScrollPositionChanged(event);
-                break;
-
-            case "verticalScrollPosition":
-                viewportVerticalScrollPositionChanged(event);
-                break;
-        }
-    }
-
-   /**
-    *  @private
-    *  Called when the viewport's contentWidth changes; invalidates
-    *  the skin's size and display list.
-    */
-    protected function viewportContentWidthChanged(event:PropertyChangeEvent):void
-    {
-        invalidateSkin();
-    }
-    /**
-     *  @private
-     *  Called when the viewport's contentHeight changes; invalidates
-     *  the skin's size and display list.
-     */
-    protected function viewportContentHeightChanged(event:PropertyChangeEvent):void
-    {
-        invalidateSkin();
-    }
-
-    /**
-     *  @private
-     *  Called when the viewport's horizontalScrollPosition changes; sets the
-     *  horizontal scrollbar's value.
-     */
-    protected function viewportHorizontalScrollPositionChanged(event:PropertyChangeEvent):void
-    {
-       if (horizontalScrollBar)
-           horizontalScrollBar.value = viewport.horizontalScrollPosition;
-    }
-
-    /**
-     *  @private
-     *  Called when the viewport's verticalScrollPosition changes; sets the
-     *  vertical scrollbar's value.
-     */
-    protected function viewportVerticalScrollPositionChanged(event:PropertyChangeEvent):void
-    {
-       if (verticalScrollBar)
-           verticalScrollBar.value = viewport.verticalScrollPosition;
-    }
+    	switch(event.property)
+    	{
+    		case "contentWidth":
+    		case "contentHeight":
+                invalidateSkin();
+    		    break;
+        }
+    }

     //--------------------------------------------------------------------------
     //
@@ -382,16 +310,10 @@
         super.partAdded(partName, instance);

         if (instance == verticalScrollBar)
-        {
             verticalScrollBar.viewport = viewport;
-            verticalScrollBar.addEventListener("valueCommit", vsb_valueCommitHandler);
-        }

         if (instance == horizontalScrollBar)
-        {
             horizontalScrollBar.viewport = viewport;
-            horizontalScrollBar.addEventListener("valueCommit", hsb_valueCommitHandler);
-        }
     }

     /**
@@ -402,16 +324,10 @@
         super.partRemoved(partName, instance);

         if (instance == verticalScrollBar)
-        {
             verticalScrollBar.viewport = null;
-            verticalScrollBar.removeEventListener("valueCommit", vsb_valueCommitHandler);
-        }

         if (instance == horizontalScrollBar)
-        {
             horizontalScrollBar.viewport = null;
-            horizontalScrollBar.removeEventListener("valueCommit", hsb_valueCommitHandler);
-        }
     }

     /**


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

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


Urapportert bug fikset. Sikrer at man ikke får feilmelding ved kalkuleringer dersom man har spesifisert reisen i steg 2, men ingen spesifikasjoner i steg 3.

--- app/src/no/makingwaves/cust/dss/code/TravelExpenceCalculator.as
+++ app/src/no/makingwaves/cust/dss/code/TravelExpenceCalculator.as
@@ -142,7 +142,7 @@
 			var num24hours:Number = travelPeriode.total_24hours;
 			if (num24hours > 0 && travelPeriode.hours >= 6) { num24hours++; }

-			if (travelPeriode.total_min != 0) {
+			if (travelPeriode.total_min != 0 && specificationList.length > 0) {
 				// set start date and first periode
 				var msPerDay:int = 1000 * 60 * 60 * 24;
 				var msPerHour:int = 1000 * 60 * 60;
@@ -268,7 +268,9 @@
 						}
 					}
 					// get the rate
-					intRate = this.getInternationalRate(maxTimeframeObject.country, maxTimeframeObject.city);
+					try {
+						intRate = this.getInternationalRate(maxTimeframeObject.country, maxTimeframeObject.city);
+					} catch (e:Error) { intRate = null; }
 					if (intRate == null) {
 						// active 'rate' is in home country - find domestic rate
 						intRate = new TravelRateInternationalVO();


Transferred from the Adobe Open Source Subversion Repository

Revision: 2806
Author:   chaase@adobe.com
Date:     2008-08-11T20:45:03.948593Z

Log Message:
-----------
Fix to build failure (referenced old/nonexistent file in Animation.as), plus added copyright headers to new classes

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/easing/IEaser.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/easing/Constant.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/easing/Linear.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/easing/Power.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/interpolation/ArrayInterpolator.as</path>

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

--- frameworks/projects/spark/src/spark/effects/interpolation/MultiValueInterpolator.as
+++ frameworks/projects/spark/src/spark/effects/interpolation/MultiValueInterpolator.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2008 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
 package flex.effects.interpolation
 {
 /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 17445
Author:   jszeto@adobe.com
Date:     2010-08-23T18:47:40.166311Z

Log Message:
-----------
Button icon support changes

Changed the icon support in Button. Icon is now a property instead of a style. I've added an optional skin part called iconDisplay:BitmapImage.

ButtonSkinBase does not use this skin part because BitmapImage can not be added as a child of a UIComponent. I renamed ButtonSkinBase.iconDisplay to iconInstance to avoid any confusion with the skin part name.

ButtonSkinBase listens for the "iconChange" event from the ButtonBase instead of relying on ButtonBase to push the icon to the iconDisplay.

QE notes: Need to update tests
Doc notes: none
Bugs: none
Reviewer: Corey
Tests run: checkintests
Is noteworthy for integration: yes, icon is a property now instead of a style

Modified Paths:
--------------
<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/mobiletheme/src/spark/skins/mobile/supportClasses/ButtonSkinBase.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="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/projects/mobiletheme/src/spark/skins/mobile/CheckBoxSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.as</path>

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

--- frameworks/projects/spark/src/spark/components/CheckBox.as
+++ frameworks/projects/spark/src/spark/components/CheckBox.as
@@ -42,6 +42,7 @@
 //--------------------------------------

 [Exclude(name="cornerRadius", kind="style")]
+[Exclude(name="icon", kind="property")]

 //--------------------------------------
 //  Other metadata


Transferred from the Adobe Open Source Subversion Repository

Revision: 18323
Author:   smgilson@adobe.com
Date:     2010-10-26T17:50:12.524532Z

Log Message:
-----------
Fix invalid HTML in ASDoc comments for the [DiscouragedForProfile] metadata tag

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/NumericStepper.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/ComboBox.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/VSlider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/TitleWindow.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/ToggleButton.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Spinner.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/BorderContainer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/FormHeading.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/VideoPlayer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/controls/ProgressBar.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/HSlider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/TabBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/VideoDisplay.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/ButtonBarButton.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Panel.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Form.as</path>

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

--- frameworks/projects/spark/src/spark/components/ComboBox.as
+++ frameworks/projects/spark/src/spark/components/ComboBox.as
@@ -103,7 +103,7 @@
  * Because this component does not define a skin for the mobile theme, Adobe
  * recommends that you not use it in a mobile application. Alternatively, you
  * can define your own mobile skin for the component. For more information,
- * see Spark Skinning.
+ * see Spark Skinning.
  */
 [DiscouragedForProfile("mobileDevice")]


FLEX-34222 fix selection reverting to previous typed values when second value (not in list) is entered

--- frameworks/projects/spark/src/spark/components/ComboBox.as
+++ frameworks/projects/spark/src/spark/components/ComboBox.as
@@ -672,6 +672,7 @@
             }
             else
             {
+				selectedItem = textInput.text;
                 super.changeHighlightedSelection(CUSTOM_SELECTED_ITEM);
             }
         }
@@ -980,7 +981,7 @@
                 if (selectedItem != null)
                     textInput.text = itemToLabel(selectedItem);
                 else
-                textInput.text = "";
+                	textInput.text = "";
             }
             changeHighlightedSelection(selectedIndex);
         }


Transferred from the Adobe Open Source Subversion Repository

Revision: 20149
Author:   klin@adobe.com
Date:     2011-02-04T21:39:31.000080Z

Log Message:
-----------
Add and update [Inspectable] metadata across spark components.

QE notes: No
Doc notes: No
Bugs: SDK-28942
Reviewer: Carol
Tests run: cyclone server, checkintests
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/HGroup.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/NumericStepper.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/SliderBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ScrollBarBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/ComboBox.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/TileGroup.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/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/DropDownListBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Spinner.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGrid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/VGroup.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/Scroller.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Grid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBarBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/Range.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/TrackBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Panel.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/modules/ModuleLoader.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/mediaClasses/DynamicStreamingVideoItem.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ToggleButtonBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/SkinnableDataContainer.as</path>

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

--- frameworks/projects/spark/src/spark/components/DataGrid.as
+++ frameworks/projects/spark/src/spark/components/DataGrid.as
@@ -585,6 +585,8 @@
 [AccessibilityClass(implementation="spark.accessibility.DataGridAccImpl")]

 [DefaultProperty("dataProvider")]
+
+[DefaultTriggerEvent("selectionChange")]

 [DiscouragedForProfile("mobileDevice")]

@@ -1204,6 +1206,7 @@
     //----------------------------------

     [Bindable("dataProviderChanged")]
+    [Inspectable(category="Data")]

     /**
      *  @copy spark.components.Grid#dataProvider
@@ -1253,6 +1256,7 @@
     //----------------------------------

     [Bindable("dataTipFieldChanged")]
+    [Inspectable(category="Data", defaultValue="null")]

     /**
      *  @copy spark.components.Grid#dataTipField
@@ -1283,6 +1287,7 @@
     //----------------------------------

     [Bindable("dataTipFunctionChanged")]
+    [Inspectable(category="Data")]

     /**
      *  @copy spark.components.Grid#dataTipFunction
@@ -1318,7 +1323,7 @@
      */
     private var _editable:Boolean = false;

-    [Inspectable(category="General")]
+    [Inspectable(category="General", defaultValue="false")]

     /**
      *  The default value for the GridColumn editable property, which
@@ -1552,6 +1557,7 @@
     //----------------------------------

     [Bindable("itemRendererChanged")]
+    [Inspectable(category="Data")]

     /**
      *  @copy spark.components.Grid#itemRenderer
@@ -1583,6 +1589,8 @@
     //  preserveSelection (delegates to grid.preserveSelection)
     //----------------------------------

+    [Inspectable(category="General", defaultValue="true")]
+
     /**
      *  @copy spark.components.Grid#preserveSelection
      *
@@ -1616,10 +1624,12 @@
     //  requireSelection (delegates to grid.requireSelection)
     //----------------------------------

+    [Inspectable(category="General", defaultValue="false")]
+
     /**
      *  @copy spark.components.Grid#requireSelection
      *
-     *  @default true
+     *  @default false
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -1649,6 +1659,8 @@
     //  requestedRowCount (delegates to grid.requestedRowCount)
     //----------------------------------

+    [Inspectable(category="General", minValue="-1")]
+
     /**
      *  @copy spark.components.Grid#requestedRowCount
      *
@@ -1676,6 +1688,8 @@
     //  requestedColumnCount (delegates to grid.requestedColumnCount)
     //----------------------------------

+    [Inspectable(category="General", minValue="-1")]
+
     /**
      *  @copy spark.components.Grid#requestedColumnCount
      *
@@ -1703,6 +1717,8 @@
     //  requestedMaxRowCount (delegates to grid.requestedMaxRowCount)
     //----------------------------------

+    [Inspectable(category="General", defaultValue="10", minValue="-1")]
+
     /**
      *  @copy spark.components.Grid#requestedMaxRowCount
      *
@@ -1730,6 +1746,8 @@
     //  requestedMinRowCount (delegates to grid.requestedMinRowCount)
     //----------------------------------

+    [Inspectable(category="General", minValue="-1")]
+
     /**
      *  @copy spark.components.Grid#requestedMinRowCount
      *
@@ -1757,6 +1775,8 @@
     //  requestedMinColumnCount (delegates to grid.requestedMinColumnCount)
     //----------------------------------

+    [Inspectable(category="General", minValue="-1")]
+
     /**
      *  @copy spark.components.Grid#requestedMinColumnCount
      *
@@ -1785,6 +1805,7 @@
     //----------------------------------

     [Bindable("resizableColumnsChanged")]
+    [Inspectable(category="General", defaultValue="true")]

     /**
      *  @copy spark.components.Grid#resizableColumns
@@ -1815,6 +1836,7 @@
     //----------------------------------

     [Bindable("rowHeightChanged")]
+    [Inspectable(category="General", minValue="0.0")]

     /**
      *  @copy spark.components.Grid#rowHeight
@@ -1943,7 +1965,7 @@
     private var _sortableColumns:Boolean = true;

     [Bindable("sortableColumnsChanged")]
-    [Inspectable(category="General")]
+    [Inspectable(category="General", defaultValue="true")]

     /**
      *  Specifies whether the user can interactively sort columns.
@@ -1982,6 +2004,7 @@
     //----------------------------------

     [Bindable("typicalItemChanged")]
+    [Inspectable(category="Data")]

     /**
      *  @copy spark.components.Grid#typicalItem
@@ -2026,6 +2049,7 @@
     //----------------------------------

     [Bindable("variableRowHeightChanged")]
+    [Inspectable(category="General", defaultValue="false")]

     /**
      *  @copy spark.components.Grid#variableRowHeight
@@ -2734,6 +2758,7 @@

     [Bindable("selectionChange")]
     [Bindable("valueCommit")]
+    [Inspectable(category="General", defaultValue="-1")]

     /**
      *  @copy spark.components.Grid#selectedIndex
@@ -2776,6 +2801,7 @@

     [Bindable("selectionChange")]
     [Bindable("valueCommit")]
+    [Inspectable(category="General")]

     /**
      *  @copy spark.components.Grid#selectedIndices
@@ -2814,6 +2840,7 @@

     [Bindable("selectionChange")]
     [Bindable("valueCommit")]
+    [Inspectable(category="General", defaultValue="null")]

     /**
      *  @copy spark.components.Grid#selectedItem
@@ -2857,6 +2884,7 @@

     [Bindable("selectionChange")]
     [Bindable("valueCommit")]
+    [Inspectable(category="General")]

     /**
      *  @copy spark.components.Grid#selectedItems
@@ -4701,4 +4729,4 @@
     }

 }
-}
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 3935
Author:   hmuller@adobe.com
Date:     2008-10-28T23:06:19.450100Z

Log Message:
-----------
Fix for 17281, 17751, 17765, and PARB changes: ClipContent now defaults to false, defined ScrollUnit enum and changed IViewport ScrollPositionDelta methods to use it.   Added "get" prefix to the ScrollPositionDelta methods.

Changed the default value of the clipContent property in GroupBase
and FxContainer from true to false.

Scroller now sets the clipContent of its viewport to true.

Removed clipContent="false" from spark skins, since false is
now the default.

Removed a clipContent="false" hack from CircularScrollbar test.

Removed calls to updateScrollRect from layout updateDisplayList()
methods, since the scrollRect is no longer contingent on
the value of the contentWidth,Height properties.  To keep
the scrollRect in sync with a component's size, we call
layout.updateScrollRect() in GroupBase::updateDisplayList()
and FxContainer::updateDisplayList().

Revised (simplified) the LayoutBase::updateScrollRect ASDoc.

Provisional change to make the FxContainer clipContent property work
correctly.

LayoutBase method renames per PARB feedback:
verticalScrollPositionDelta() => getVerticalScrollPositionDelta()
horizontalScrollPositionDelta() => getHorizontalScrollPositionDelta()

Defined a new mx.core.ScrollUnit enum per PARB feedback.  The
IViewport getHorizontal,VerticalScrollPositionDelta() methods now take
a ScrollUnit type argument, instead of a (character code) uint.

QE Notes: clipContent and ScrollUnit changes will break tests
Doc Notes: None
Bugs: sdk-17751, sdk-17257, sdk-17765
Reviewer: Ryan

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxScroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxVSliderThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxHScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/core/IViewport.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxToggleButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/LayoutBase.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/core/ScrollUnit.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxCheckBoxSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxVScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/BasicLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxHSliderThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxRadioButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/TextView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxContainer.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/BasicLayout.as
+++ frameworks/projects/spark/src/spark/layouts/BasicLayout.as
@@ -277,7 +277,6 @@
         }

         layoutTarget.setContentSize(maxX, maxY);
-        updateScrollRect(unscaledWidth, unscaledHeight);
     }
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 10606
Author:   egeorgie@adobe.com
Date:     2009-09-25T23:01:50.455888Z

Log Message:
-----------
White space cleanup.

Doc notes: None
Bugs: None
Reviewer: Evtim
Tests run: build
Is noteworthy for integration: Nope

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/TransformOffsets.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/states/AddItems.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/OnDemandEventDispatcher.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/VideoDisplay.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/PopUpAnchor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/MatrixUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/supportClasses/Block.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ViewStack.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ToggleButtonBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/CompoundTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Effect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/LayoutElementUIComponentUtils.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/BitmapFill.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/ArrayList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/GradientBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/DropDownController.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/BasicLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/ListCollectionView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/Transform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/scrollClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/supportClasses/LinearLayoutVector.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/Path.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/DescribeTypeCache.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/sparkTest/src/testWheel.mxml</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/layouts/TileLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/SparkSkin.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/spark/src/spark/effects/supportClasses/AnimateTransformInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/AdvancedLayoutFeatures.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/BasicLayout.as
+++ frameworks/projects/spark/src/spark/layouts/BasicLayout.as
@@ -344,12 +344,12 @@

             return totalSize - 2 * Math.abs(center);
         }
-        else if(!isNaN(lowConstraint))
+        else if (!isNaN(lowConstraint))
         {
             // childWidth + left <= totalSize
             return totalSize - lowConstraint;
         }
-        else if(!isNaN(highConstraint))
+        else if (!isNaN(highConstraint))
         {
             // childWidth + right <= totalSize
             return totalSize - highConstraint;


Fix the last commit; we must actually instantiate the ByteArrays.

--- swfcat.as
+++ swfcat.as
@@ -44,9 +44,10 @@
                 puts("s1 Security error: " + e.text + ".");
             });
             s1.addEventListener(ProgressEvent.SOCKET_DATA, function (e:ProgressEvent):void {
-                var bytes:ByteArray;
+                var bytes:ByteArray = new ByteArray();
                 puts("s1 progress: " + e.bytesLoaded + ".");
                 s1.readBytes(bytes, 0, e.bytesLoaded);
+                puts("s1 bytes length: " + bytes.length + ".");
                 s2.writeBytes(bytes);
             });

@@ -63,9 +64,10 @@
                 puts("s2 Security error: " + e.text + ".");
             });
             s2.addEventListener(ProgressEvent.SOCKET_DATA, function (e:ProgressEvent):void {
-                var bytes:ByteArray;
+                var bytes:ByteArray = new ByteArray();
                 puts("s2 progress: " + e.bytesLoaded + ".");
                 s2.readBytes(bytes, 0, e.bytesLoaded);
+                puts("s2 bytes length: " + bytes.length + ".");
                 s1.writeBytes(bytes);
             });


Change socket variable names and point them at a real Tor relay and a hardcoded client.

--- swfcat.as
+++ swfcat.as
@@ -11,6 +11,11 @@

     public class swfcat extends Sprite
     {
+        private const TOR_ADDRESS:String = "upload.bamsoftware.com";
+        private const TOR_PORT:int = 9001;
+        private const CLIENT_ADDRESS:String = "192.168.0.2";
+        private const CLIENT_PORT:int = 9001;
+
         private var output_text:TextField;

         private function puts(s:String):void
@@ -28,55 +33,51 @@
             output_text.textColor = 0x44CC44;
             addChild(output_text);

-            var s1:Socket = new Socket();
-            var s2:Socket = new Socket();
+            var s_t:Socket = new Socket();
+            var s_c:Socket = new Socket();

-            s1.addEventListener(Event.CONNECT, function (e:Event):void {
-                puts("s1 Connected.");
+            s_t.addEventListener(Event.CONNECT, function (e:Event):void {
+                puts("Tor: connected.");
             });
-            s1.addEventListener(Event.CLOSE, function (e:Event):void {
-                puts("s1 Closed.");
+            s_t.addEventListener(Event.CLOSE, function (e:Event):void {
+                puts("Tor: closed.");
             });
-            s1.addEventListener(IOErrorEvent.IO_ERROR, function (e:IOErrorEvent):void {
-                puts("s1 IO error: " + e.text + ".");
+            s_t.addEventListener(IOErrorEvent.IO_ERROR, function (e:IOErrorEvent):void {
+                puts("Tor: I/O error: " + e.text + ".");
             });
-            s1.addEventListener(SecurityErrorEvent.SECURITY_ERROR, function (e:SecurityErrorEvent):void {
-                puts("s1 Security error: " + e.text + ".");
+            s_t.addEventListener(SecurityErrorEvent.SECURITY_ERROR, function (e:SecurityErrorEvent):void {
+                puts("Tor: security error: " + e.text + ".");
             });
-            s1.addEventListener(ProgressEvent.SOCKET_DATA, function (e:ProgressEvent):void {
+            s_t.addEventListener(ProgressEvent.SOCKET_DATA, function (e:ProgressEvent):void {
                 var bytes:ByteArray = new ByteArray();
-                puts("s1 progress: " + e.bytesLoaded + ".");
-                s1.readBytes(bytes, 0, e.bytesLoaded);
-                puts("s1 bytes length: " + bytes.length + ".");
-                s2.writeBytes(bytes);
+                s_t.readBytes(bytes, 0, e.bytesLoaded);
+                puts("Tor: read " + bytes.length + ".");
+                s_c.writeBytes(bytes);
             });

-            s2.addEventListener(Event.CONNECT, function (e:Event):void {
-                puts("s2 Connected.");
+            s_c.addEventListener(Event.CONNECT, function (e:Event):void {
+                puts("Client: connected.");
             });
-            s2.addEventListener(Event.CLOSE, function (e:Event):void {
-                puts("s2 Closed.");
+            s_c.addEventListener(Event.CLOSE, function (e:Event):void {
+                puts("Client: closed.");
             });
-            s2.addEventListener(IOErrorEvent.IO_ERROR, function (e:IOErrorEvent):void {
-                puts("s2 IO error: " + e.text + ".");
+            s_c.addEventListener(IOErrorEvent.IO_ERROR, function (e:IOErrorEvent):void {
+                puts("Client: I/O error: " + e.text + ".");
             });
-            s2.addEventListener(SecurityErrorEvent.SECURITY_ERROR, function (e:SecurityErrorEvent):void {
-                puts("s2 Security error: " + e.text + ".");
+            s_c.addEventListener(SecurityErrorEvent.SECURITY_ERROR, function (e:SecurityErrorEvent):void {
+                puts("Client: security error: " + e.text + ".");
             });
-            s2.addEventListener(ProgressEvent.SOCKET_DATA, function (e:ProgressEvent):void {
+            s_c.addEventListener(ProgressEvent.SOCKET_DATA, function (e:ProgressEvent):void {
                 var bytes:ByteArray = new ByteArray();
-                puts("s2 progress: " + e.bytesLoaded + ".");
-                s2.readBytes(bytes, 0, e.bytesLoaded);
-                puts("s2 bytes length: " + bytes.length + ".");
-                s1.writeBytes(bytes);
+                s_c.readBytes(bytes, 0, e.bytesLoaded);
+                puts("Client: read " + bytes.length + ".");
+                s_t.writeBytes(bytes);
             });

-            puts("Requesting connection.");
-
-            s1.connect("10.32.16.133", 9998);
-            s2.connect("10.32.16.133", 9999);
-
-            puts("Connection requested.");
+            puts("Tor: connecting.");
+            s_t.connect(TOR_ADDRESS, TOR_PORT);
+            puts("Client: connecting.");
+            s_c.connect(CLIENT_ADDRESS, CLIENT_PORT);
         }
     }
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 13693
Author:   hmuller@adobe.com
Date:     2010-01-21T20:25:54.403160Z

Log Message:
-----------
Initial version of the mirroring layout code.  Only Spark is supported.  API revisions for this feature are very likely to follow.

QE notes:
Doc notes:
Bugs:
Reviewer: Evtim
Tests run: All Mustella tests pass
Is noteworthy for integration: yes

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/MatrixUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/PopUpAnchor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/CheckBoxSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElement.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ILayoutDirection.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/DefaultItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/PanelSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/utils/BitmapUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/AdvancedLayoutFeatures.as</path>

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

--- frameworks/projects/spark/src/spark/core/SpriteVisualElement.as
+++ frameworks/projects/spark/src/spark/core/SpriteVisualElement.as
@@ -32,6 +32,7 @@
 import mx.core.IFlexModule;
 import mx.core.IFlexModuleFactory;
 import mx.core.IInvalidating;
+import mx.core.ILayoutDirection;
 import mx.core.IMXMLObject;
 import mx.core.IUIComponent;
 import mx.core.IVisualElement;
@@ -153,6 +154,7 @@
         features.layoutX = x;
         features.layoutY = y;
         features.layoutZ = z;
+		features.layoutWidth = _width;  // for the mirror transform

         // Initialize the internal variable last,
         // since the transform getters depend on it.
@@ -216,6 +218,12 @@
      */
     private function setActualSize(width:Number, height:Number):void
     {
+		if ((_width != width)  && _layoutFeatures)
+		{
+			_layoutFeatures.layoutWidth = width;
+			invalidateTransform();
+		}
+
         _width = width;
         _height = height;

@@ -1940,6 +1948,53 @@
         invalidateParentSizeAndDisplayList();
     }

+	//----------------------------------
+	//  layoutDirection
+	//----------------------------------
+
+	private var _layoutDirection:String = "inherit";
+
+	public function get layoutDirection():String
+	{
+		return _layoutDirection;
+	}
+
+	/**
+	 *  @copy mx.core.IVisualElement#layoutDirection
+	 */
+	public function set layoutDirection(value:String):void
+	{
+		if (_layoutDirection == value)
+			return;
+
+		_layoutDirection = value;
+        invalidateLayoutDirection();
+	}
+
+    /**
+     * @copy mx.core.ILayoutDirection#invalidateLayoutDirection()
+     */
+    public function invalidateLayoutDirection():void
+    {
+        const parentElt:ILayoutDirection = parent as ILayoutDirection;
+        if (!parentElt)
+            return;
+
+        // If this element's layoutDirection doesn't match its parent's, then
+        // set the _layoutFeatures.mirror flag.  Similarly, if mirroring isn't
+        // required, then clear the _layoutFeatures.mirror flag.
+
+        const mirror:Boolean = (_layoutDirection != "inherit") && (_layoutDirection != parentElt.layoutDirection);
+        if ((_layoutFeatures) ? (mirror != _layoutFeatures.mirror) : mirror)
+        {
+            if (_layoutFeatures == null)
+                initAdvancedLayoutFeatures();
+            _layoutFeatures.mirror = mirror;
+            invalidateTransform();
+            invalidateParentSizeAndDisplayList();
+        }
+    }
+
     //--------------------------------------------------------------------------
     //
     //  Overridden methods


Transferred from the Adobe Open Source Subversion Repository

Revision: 3339
Author:   hmuller@adobe.com
Date:     2008-09-24T20:46:33.738343Z

Log Message:
-----------
Added Vertical,HorizontalLayout::updateScrollPosition() overrides
that reset first,lastIndexInView.

QE: No
Doc: No
Checkintests: Pass
Reviewer: Ryan

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/VerticalLayout.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
+++ frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
@@ -12,6 +12,7 @@
 package flex.layout
 {
 import flash.display.DisplayObject;
+import flash.geom.Point;
 import flash.geom.Rectangle;
 import flash.events.Event;
 import flash.events.EventDispatcher;
@@ -386,11 +387,11 @@
      */
    public function inView(index:int):Number
     {
-        var vp:GroupBase = GroupBase(target);
-        if (!vp)
+        var g:GroupBase = GroupBase(target);
+        if (!g)
             return 0.0;

-        var li:ILayoutItem = vp.getLayoutItemAt(index);
+        var li:ILayoutItem = g.getLayoutItemAt(index);
         if ((li == null) || !li.includeInLayout)
             return 0.0;

@@ -406,8 +407,8 @@
             return 1.0;

         // index is first (c0) or last (c1) visible column
-        var x0:Number = vp.horizontalScrollPosition;
-        var x1:Number = x0 + vp.width;
+        var x0:Number = g.horizontalScrollPosition;
+        var x1:Number = x0 + g.width;
         var ix0:Number = li.actualPosition.x;
         var ix1:Number = ix0 + li.actualSize.x;
         if (ix0 >= ix1)  // item has 0 or negative height
@@ -419,6 +420,75 @@
         else
             return (x1 - ix0) / (ix1 - ix0);
     }
+
+    /**
+     *  Binary search for the first layout item that contains y.
+     *
+     *  This function considers both the item's actual bounds and
+     *  the gap that follows it to be part of the item.  The search
+     *  covers index i0 through i1 (inclusive).
+     *
+     *  This function is intended for variable height items.
+     *
+     *  Returns the index of the item that contains x, or -1.
+     *
+     *  Implementation note: currently the inclusion test is slightly
+     *  incorrect, since we're comparing y with the _closed_ interval
+     *  from p.x to p.x + s.x + gap.  This is to accomodate checking the
+     *  "right" of the scrollRect, see the computation of i1 in
+     *  scrollPositionChanged.  One alternative that would restore
+     *  the more correct open ended interval, would be to check
+     *  the right of the scrollRect less some infintesimally small
+     *  amount.
+     *
+     * @private
+     */
+    private static function findIndexAt(x:Number, gap:int, g:GroupBase, i0:int, i1:int):int
+    {
+        var index:int = (i0 + i1) / 2;
+        var item:ILayoutItem = g.getLayoutItemAt(index);
+        var p:Point = item.actualPosition;
+        var s:Point = item.actualSize;
+        // TBD: deal with null item, includeInLayout false.
+        if ((x >= p.x) && (x <= p.x + s.x + gap))
+            return index;
+        else if (i0 == i1)
+            return -1;
+        else if (x < p.x)
+            return findIndexAt(x, gap, g, i0, Math.max(i0, index-1));
+        else
+            return findIndexAt(x, gap, g, Math.min(index+1, i1), i1);
+    }
+
+   /**
+    *  Updates the first,lastIndexInView properties per the new
+    *  scroll position.
+    *
+    *  @see setIndexInView
+    */
+    override protected function scrollPositionChanged():void
+    {
+        super.scrollPositionChanged();
+
+        var g:GroupBase = target;
+        if (!g)
+            return;
+
+        var r:Rectangle = g.scrollRect;
+        if (!r)
+        {
+            // TBD: find first/last non-null includeInLayout items
+        }
+        // TBD: special case for variableRowHeight false
+        else
+        {
+            var n:int = Math.max(g.numLayoutItems - 1, 0);
+            var i0:int = findIndexAt(r.x + gap, gap, g, 0, n);
+            var i1:int = findIndexAt(r.right, gap, g, 0, n);
+            setIndexInView(i0, i1);
+        }
+    }
+

     public function variableColumnWidthMeasure(layoutTarget:GroupBase):void


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

--- frameworks/projects/mobilecomponents/src/spark/core/ContainerDestructionPolicy.as
+++ frameworks/projects/mobilecomponents/src/spark/core/ContainerDestructionPolicy.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: 20097
Author:   jasonsj@adobe.com
Date:     2011-02-03T17:48:25.773740Z

Log Message:
-----------
Remove use of minWidth and minHeight where possible from mobile skins to fix constraint use cases. Replace usage of minWidth/minHeight and layoutMeasuredWidth/layoutMeasuredHeight with MobileSkin property measuredDefaultWidth/measuredDefaultHeight.

Use minWidth/minHeight for skins that do not scale down: Beveled buttons, CheckBox, RadioButton, and scroll bars.

Doc notes:
Bugs:
SDK-28715 Cannot size and position button correctly in i4 build.
Reviewer: egeorgie
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/BeveledActionButtonSkin.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/src/spark/skins/mobile/ActionBarSkin.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/ButtonBarFirstButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/HSliderDataTip.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaVScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/VScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonBarMiddleButtonSkin.as</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/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/supportClasses/TabbedViewNavigatorTabBarTabSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderTrackSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonBarLastButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ImageSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/BeveledBackButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ActionBarButtonSkinBase.as</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/TextAreaHScrollBarSkin.as</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/HSliderThumbSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HScrollBarSkin.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonBarLastButtonSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonBarLastButtonSkin.as
@@ -72,7 +72,7 @@
             }
             default:
             {
-                // default PPI160
+                // default DPI_160
                 upBorderSkin = spark.skins.mobile160.assets.ButtonBarLastButton_up;
                 downBorderSkin = spark.skins.mobile160.assets.ButtonBarLastButton_down;
                 selectedBorderSkin = spark.skins.mobile160.assets.ButtonBarLastButton_selected;


Transferred from the Adobe Open Source Subversion Repository

Revision: 12193
Author:   jszeto@adobe.com
Date:     2009-11-25T01:04:24.199745Z

Log Message:
-----------
DropDownList bug fix

http://bugs.adobe.com/jira/browse/SDK-24036 - DropDownList doesn't support arrowKeysWrapFocus when closed

Fixed case when there is no selection or a custom selection.

QE notes: Add tests for these use cases
Doc notes: None
Bugs: SDK-24036
Reviewer: Deepa
Tests run: DropDownList, ComboBox
Is noteworthy for integration: No

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

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

--- frameworks/projects/spark/src/spark/components/supportClasses/DropDownListBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/DropDownListBase.as
@@ -758,7 +758,7 @@

             var proposedNewIndex:int = NO_SELECTION;
             var currentIndex:int;
-
+
             if (isDropDownOpen)
             {
                 // Normalize the proposed index for getNavigationDestinationIndex
@@ -773,6 +773,8 @@
             }
             else if (dataProvider)
             {
+                var maxIndex:int = dataProvider.length - 1;
+
                 // Normalize the proposed index for getNavigationDestinationIndex
                 currentIndex = caretIndex < NO_SELECTION ? NO_SELECTION : caretIndex;

@@ -780,20 +782,26 @@
                 {
                     case NavigationUnit.UP:
                     {
-                        if (arrowKeysWrapFocus && currentIndex == 0)
-                            proposedNewIndex = dataProvider.length - 1;
+                        if (arrowKeysWrapFocus &&
+                            (currentIndex == 0 ||
+                             currentIndex == NO_SELECTION ||
+                             currentIndex == CUSTOM_SELECTED_ITEM))
+                            proposedNewIndex = maxIndex;
                         else
-                        proposedNewIndex = currentIndex - 1;
+                            proposedNewIndex = currentIndex - 1;
                         event.preventDefault();
                         break;
                     }

                     case NavigationUnit.DOWN:
                     {
-                        if (arrowKeysWrapFocus && currentIndex == (dataProvider.length - 1))
+                        if (arrowKeysWrapFocus &&
+                            (currentIndex == maxIndex ||
+                             currentIndex == NO_SELECTION ||
+                             currentIndex == CUSTOM_SELECTED_ITEM))
                             proposedNewIndex = 0;
                         else
-                        proposedNewIndex = currentIndex + 1;
+                            proposedNewIndex = currentIndex + 1;
                         event.preventDefault();
                         break;
                     }
@@ -823,14 +831,14 @@

                     case NavigationUnit.END:
                     {
-                        proposedNewIndex = dataProvider.length - 1;
+                        proposedNewIndex = maxIndex;
                         event.preventDefault();
                         break;
                     }

                 }

-                proposedNewIndex = Math.min(proposedNewIndex, dataProvider.length - 1);
+                proposedNewIndex = Math.min(proposedNewIndex, maxIndex);

                 if (proposedNewIndex >= 0)
                     selectedIndex = proposedNewIndex;


Transferred from the Adobe Open Source Subversion Repository

Revision: 17235
Author:   tkraikit@adobe.com
Date:     2010-08-09T20:37:04.664627Z

Log Message:
-----------
Fix for bug 26801: changing wireframe theme from blue to grayscale

QE notes: will require significant updates to mustella tests; already notified Peter DeHaan
Doc notes: -
Bugs: SDK-26801
Reviewer: Corey Lucier
Tests run: checkintests
Is noteworthy for integration: -

Modified Paths:
--------------
115 paths were modified

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

--- frameworks/projects/wireframe/src/mx/skins/wireframe/ProgressIndeterminateSkin.as
+++ frameworks/projects/wireframe/src/mx/skins/wireframe/ProgressIndeterminateSkin.as
@@ -104,7 +104,7 @@
 		// Hatches
 		for (var i:int = 0; i < w; i += hatchInterval)
 		{
-			g.beginFill(0xE2E6F6, 1);
+			g.beginFill(0xEEEEEE, 1);
 			g.moveTo(i, 1);
 			g.lineTo(Math.min(i + 7, w), 2);
 			g.lineTo(Math.min(i + 3, w), h - 2);